Files
Nabeel Alam 59c6f2d1b2 Feature: Airtable Analyzer for Personal Access Tokens (#3941)
* added airtable personal access token analyzer

* updated airtable oauth and pat analyzers

* updated airtable entry in analyzer mapping

* updated airtablepat error checking, table shape

* added more error checks in analyzer code

* updated airtable pat analyzer; incorporated feedback; fixed formating issues; improved code readability

* updated analyzer type int of planetscale expected output json

* fixed spelling in comment

* updated expected output analyzer type numbers
2025-03-04 03:33:19 +05:00

24 lines
443 B
Go

package common
type AirtableUserInfo struct {
ID string `json:"id"`
Email *string `json:"email,omitempty"`
Scopes []string `json:"scopes"`
}
type AirtableBases struct {
Bases []struct {
ID string `json:"id"`
Name string `json:"name"`
Schema *Schema `json:"schema,omitempty"`
} `json:"bases"`
}
type Schema struct {
Tables []AirtableEntity `json:"tables"`
}
type AirtableEntity struct {
ID string `json:"id"`
}