Files
trufflehog/pkg/analyzer/analyzers/plaid/models.go
Nabeel AlamandKashif Khan 5b3d6155ca [Feat] Plaid API Analyzer (#4004)
* added plaid api analyzer

* updated plaid analyzer and detector

* updated plaidkey detector verify loop

* added requested changes

* added build tags into detector integration test

* updated plaid analyzer and implemented suggestions

---------

Co-authored-by: Kashif Khan <[email protected]>
2025-04-11 19:36:05 +05:00

26 lines
522 B
Go

package plaid
type account struct {
AccountID string `json:"account_id"`
Name string `json:"name"`
OfficialName string `json:"official_name"`
Subtype string `json:"subtype"`
Type string `json:"type"`
}
type item struct {
Products []string `json:"products"`
ItemID string `json:"item_id"`
}
type accountsResponse struct {
Accounts []account `json:"accounts"`
Item item `json:"item"`
}
type secretInfo struct {
Item item
Accounts []account
Environment string
}