Documentation
¶
Index ¶
- Variables
- func CacheExpires(r *http.Response) time.Time
- type APIClient
- type APIKey
- type APIResponse
- type AdminApiService
- func (a *AdminApiService) Anonymize(ctx context.Context, source string, anonymized bool) (*http.Response, error)
- func (a *AdminApiService) ApiStatus(ctx context.Context) (ApiClassifiersStatusOut, *http.Response, error)
- func (a *AdminApiService) ApiUsage(ctx context.Context) (ApiPeriodUsageOut, *http.Response, error)
- func (a *AdminApiService) ApiUsageHistory(ctx context.Context) (ApiUsageHistoryOut, *http.Response, error)
- func (a *AdminApiService) ApiUsageHistoryAggregate(ctx context.Context) (ApiUsageAggregatedOut, *http.Response, error)
- func (a *AdminApiService) AvailableServices(ctx context.Context) (ApiServicesOut, *http.Response, error)
- func (a *AdminApiService) Disable(ctx context.Context, source string, disabled bool) (*http.Response, error)
- func (a *AdminApiService) Learnable(ctx context.Context, source string, learnable bool) (*http.Response, error)
- func (a *AdminApiService) SoftwareVersion(ctx context.Context) (SoftwareVersionOut, *http.Response, error)
- func (a *AdminApiService) TaxonomyClasses(ctx context.Context, classifierName string) (ApiClassifierTaxonomyOut, *http.Response, error)
- type ApiBillingPeriodUsageOut
- type ApiClassifierOut
- type ApiClassifierTaxonomyOut
- type ApiClassifiersStatusOut
- type ApiCounterV2Out
- type ApiKeyOut
- type ApiPeriodUsageOut
- type ApiPlanOut
- type ApiPlanSubscriptionOut
- type ApiPlansOut
- type ApiServiceOut
- type ApiServicesOut
- type ApiUsageAggregatedOut
- type ApiUsageHistoryOut
- type BasicAuth
- type BatchCorridorIn
- type BatchCorridorOut
- type BatchFirstLastNameDiasporaedOut
- type BatchFirstLastNameGenderIn
- type BatchFirstLastNameGenderedOut
- type BatchFirstLastNameGeoIn
- type BatchFirstLastNameGeoZippedIn
- type BatchFirstLastNameIn
- type BatchFirstLastNameOriginedOut
- type BatchFirstLastNamePhoneCodedOut
- type BatchFirstLastNamePhoneNumberGeoIn
- type BatchFirstLastNamePhoneNumberIn
- type BatchFirstLastNameUsRaceEthnicityOut
- type BatchMatchPersonalFirstLastNameIn
- type BatchNameGeoIn
- type BatchNameIn
- type BatchNameMatchCandidatesOut
- type BatchNameMatchedOut
- type BatchParsedFullNameGeoIn
- type BatchParsedFullNameIn
- type BatchPersonalNameGenderedOut
- type BatchPersonalNameGeoIn
- type BatchPersonalNameGeoOut
- type BatchPersonalNameIn
- type BatchPersonalNameParsedOut
- type BatchProperNounCategorizedOut
- type BillingHistoryOut
- type BillingInfoInOut
- type CacheMetricsOut
- type ChineseApiService
- func (a *ChineseApiService) ChineseNameCandidates(ctx context.Context, chineseSurnameLatin string, chineseGivenNameLatin string) (NameMatchCandidatesOut, *http.Response, error)
- func (a *ChineseApiService) ChineseNameCandidatesBatch(ctx context.Context, localVarOptionals *ChineseNameCandidatesBatchOpts) (BatchNameMatchCandidatesOut, *http.Response, error)
- func (a *ChineseApiService) ChineseNameCandidatesGenderBatch(ctx context.Context, localVarOptionals *ChineseNameCandidatesGenderBatchOpts) (BatchNameMatchCandidatesOut, *http.Response, error)
- func (a *ChineseApiService) ChineseNameGenderCandidates(ctx context.Context, chineseSurnameLatin string, chineseGivenNameLatin string, ...) (NameMatchCandidatesOut, *http.Response, error)
- func (a *ChineseApiService) ChineseNameMatch(ctx context.Context, chineseSurnameLatin string, chineseGivenNameLatin string, ...) (NameMatchedOut, *http.Response, error)
- func (a *ChineseApiService) ChineseNameMatchBatch(ctx context.Context, localVarOptionals *ChineseNameMatchBatchOpts) (BatchNameMatchedOut, *http.Response, error)
- func (a *ChineseApiService) GenderChineseName(ctx context.Context, chineseName string) (PersonalNameGenderedOut, *http.Response, error)
- func (a *ChineseApiService) GenderChineseNameBatch(ctx context.Context, localVarOptionals *GenderChineseNameBatchOpts) (BatchPersonalNameGenderedOut, *http.Response, error)
- func (a *ChineseApiService) GenderChineseNamePinyin(ctx context.Context, chineseSurnameLatin string, chineseGivenNameLatin string) (FirstLastNameGenderedOut, *http.Response, error)
- func (a *ChineseApiService) GenderChineseNamePinyinBatch(ctx context.Context, localVarOptionals *GenderChineseNamePinyinBatchOpts) (BatchFirstLastNameGenderedOut, *http.Response, error)
- func (a *ChineseApiService) ParseChineseName(ctx context.Context, chineseName string) (PersonalNameParsedOut, *http.Response, error)
- func (a *ChineseApiService) ParseChineseNameBatch(ctx context.Context, localVarOptionals *ParseChineseNameBatchOpts) (BatchPersonalNameParsedOut, *http.Response, error)
- func (a *ChineseApiService) PinyinChineseName(ctx context.Context, chineseName string) (PersonalNameParsedOut, *http.Response, error)
- func (a *ChineseApiService) PinyinChineseNameBatch(ctx context.Context, localVarOptionals *PinyinChineseNameBatchOpts) (BatchPersonalNameParsedOut, *http.Response, error)
- type ChineseNameCandidatesBatchOpts
- type ChineseNameCandidatesGenderBatchOpts
- type ChineseNameMatchBatchOpts
- type ClassifierMetricsOut
- type Configuration
- type CorridorBatchOpts
- type CorridorIn
- type CorridorOut
- type CountryBatchOpts
- type CurrenciesOut
- type DeployUiOut
- type DiasporaBatchOpts
- type ExpectedClassMetricsOut
- type FeedbackLoopOut
- type FirstLastNameDiasporaedOut
- type FirstLastNameGenderIn
- type FirstLastNameGenderedOut
- type FirstLastNameGeoIn
- type FirstLastNameGeoZippedIn
- type FirstLastNameIn
- type FirstLastNameOriginedOut
- type FirstLastNameOut
- type FirstLastNamePhoneCodedOut
- type FirstLastNamePhoneNumberGeoIn
- type FirstLastNamePhoneNumberIn
- type FirstLastNameUsRaceEthnicityOut
- type GenderBatchOpts
- type GenderChineseNameBatchOpts
- type GenderChineseNamePinyinBatchOpts
- type GenderFullBatchOpts
- type GenderFullGeoBatchOpts
- type GenderGeoBatchOpts
- type GenderJapaneseNameFullBatchOpts
- type GenderJapaneseNamePinyinBatchOpts
- type GeneralApiService
- func (a *GeneralApiService) NameType(ctx context.Context, properNoun string) (ProperNounCategorizedOut, *http.Response, error)
- func (a *GeneralApiService) NameTypeBatch(ctx context.Context, localVarOptionals *NameTypeBatchOpts) (BatchProperNounCategorizedOut, *http.Response, error)
- func (a *GeneralApiService) NameTypeGeo(ctx context.Context, properNoun string, countryIso2 string) (ProperNounCategorizedOut, *http.Response, error)
- func (a *GeneralApiService) NameTypeGeoBatch(ctx context.Context, localVarOptionals *NameTypeGeoBatchOpts) (BatchProperNounCategorizedOut, *http.Response, error)
- type GenericOpenAPIError
- type InlineObject
- type InvoiceItemOut
- type InvoiceOut
- type JapaneseApiService
- func (a *JapaneseApiService) GenderJapaneseNameFull(ctx context.Context, japaneseName string) (PersonalNameGenderedOut, *http.Response, error)
- func (a *JapaneseApiService) GenderJapaneseNameFullBatch(ctx context.Context, localVarOptionals *GenderJapaneseNameFullBatchOpts) (BatchPersonalNameGenderedOut, *http.Response, error)
- func (a *JapaneseApiService) GenderJapaneseNamePinyin(ctx context.Context, japaneseSurname string, japaneseGivenName string) (FirstLastNameGenderedOut, *http.Response, error)
- func (a *JapaneseApiService) GenderJapaneseNamePinyinBatch(ctx context.Context, localVarOptionals *GenderJapaneseNamePinyinBatchOpts) (BatchFirstLastNameGenderedOut, *http.Response, error)
- func (a *JapaneseApiService) JapaneseNameGenderKanjiCandidatesBatch(ctx context.Context, ...) (BatchNameMatchCandidatesOut, *http.Response, error)
- func (a *JapaneseApiService) JapaneseNameKanjiCandidates(ctx context.Context, japaneseSurnameLatin string, ...) (NameMatchCandidatesOut, *http.Response, error)
- func (a *JapaneseApiService) JapaneseNameKanjiCandidates1(ctx context.Context, japaneseSurnameLatin string, ...) (NameMatchCandidatesOut, *http.Response, error)
- func (a *JapaneseApiService) JapaneseNameKanjiCandidatesBatch(ctx context.Context, localVarOptionals *JapaneseNameKanjiCandidatesBatchOpts) (BatchNameMatchCandidatesOut, *http.Response, error)
- func (a *JapaneseApiService) JapaneseNameLatinCandidates(ctx context.Context, japaneseSurnameKanji string, ...) (NameMatchCandidatesOut, *http.Response, error)
- func (a *JapaneseApiService) JapaneseNameLatinCandidatesBatch(ctx context.Context, localVarOptionals *JapaneseNameLatinCandidatesBatchOpts) (BatchNameMatchCandidatesOut, *http.Response, error)
- func (a *JapaneseApiService) JapaneseNameMatch(ctx context.Context, japaneseSurnameLatin string, ...) (NameMatchedOut, *http.Response, error)
- func (a *JapaneseApiService) JapaneseNameMatchBatch(ctx context.Context, localVarOptionals *JapaneseNameMatchBatchOpts) (BatchNameMatchedOut, *http.Response, error)
- func (a *JapaneseApiService) JapaneseNameMatchFeedbackLoop(ctx context.Context, japaneseSurnameLatin string, ...) (FeedbackLoopOut, *http.Response, error)
- func (a *JapaneseApiService) ParseJapaneseName(ctx context.Context, japaneseName string) (PersonalNameParsedOut, *http.Response, error)
- func (a *JapaneseApiService) ParseJapaneseNameBatch(ctx context.Context, localVarOptionals *ParseJapaneseNameBatchOpts) (BatchPersonalNameParsedOut, *http.Response, error)
- type JapaneseNameGenderKanjiCandidatesBatchOpts
- type JapaneseNameKanjiCandidatesBatchOpts
- type JapaneseNameLatinCandidatesBatchOpts
- type JapaneseNameMatchBatchOpts
- type MatchPersonalFirstLastNameIn
- type NamSorCounterOut
- type NameGeoIn
- type NameIn
- type NameMatchCandidateOut
- type NameMatchCandidatesOut
- type NameMatchedOut
- type NameTypeBatchOpts
- type NameTypeGeoBatchOpts
- type OriginBatchOpts
- type ParseChineseNameBatchOpts
- type ParseJapaneseNameBatchOpts
- type ParseNameBatchOpts
- type ParseNameGeoBatchOpts
- type ParsedFullNameGeoIn
- type ParsedFullNameIn
- type PersonalApiService
- func (a *PersonalApiService) Corridor(ctx context.Context, countryIso2From string, firstNameFrom string, ...) (CorridorOut, *http.Response, error)
- func (a *PersonalApiService) CorridorBatch(ctx context.Context, localVarOptionals *CorridorBatchOpts) (BatchCorridorOut, *http.Response, error)
- func (a *PersonalApiService) Country(ctx context.Context, personalNameFull string) (PersonalNameGeoOut, *http.Response, error)
- func (a *PersonalApiService) CountryBatch(ctx context.Context, localVarOptionals *CountryBatchOpts) (BatchPersonalNameGeoOut, *http.Response, error)
- func (a *PersonalApiService) Diaspora(ctx context.Context, countryIso2 string, firstName string, lastName string) (FirstLastNameDiasporaedOut, *http.Response, error)
- func (a *PersonalApiService) DiasporaBatch(ctx context.Context, localVarOptionals *DiasporaBatchOpts) (BatchFirstLastNameDiasporaedOut, *http.Response, error)
- func (a *PersonalApiService) Gender(ctx context.Context, firstName string, lastName string) (FirstLastNameGenderedOut, *http.Response, error)
- func (a *PersonalApiService) GenderBatch(ctx context.Context, localVarOptionals *GenderBatchOpts) (BatchFirstLastNameGenderedOut, *http.Response, error)
- func (a *PersonalApiService) GenderFull(ctx context.Context, fullName string) (PersonalNameGenderedOut, *http.Response, error)
- func (a *PersonalApiService) GenderFullBatch(ctx context.Context, localVarOptionals *GenderFullBatchOpts) (BatchPersonalNameGenderedOut, *http.Response, error)
- func (a *PersonalApiService) GenderFullGeo(ctx context.Context, fullName string, countryIso2 string) (PersonalNameGenderedOut, *http.Response, error)
- func (a *PersonalApiService) GenderFullGeoBatch(ctx context.Context, localVarOptionals *GenderFullGeoBatchOpts) (BatchPersonalNameGenderedOut, *http.Response, error)
- func (a *PersonalApiService) GenderGeo(ctx context.Context, firstName string, lastName string, countryIso2 string) (FirstLastNameGenderedOut, *http.Response, error)
- func (a *PersonalApiService) GenderGeoBatch(ctx context.Context, localVarOptionals *GenderGeoBatchOpts) (BatchFirstLastNameGenderedOut, *http.Response, error)
- func (a *PersonalApiService) Origin(ctx context.Context, firstName string, lastName string) (FirstLastNameOriginedOut, *http.Response, error)
- func (a *PersonalApiService) OriginBatch(ctx context.Context, localVarOptionals *OriginBatchOpts) (BatchFirstLastNameOriginedOut, *http.Response, error)
- func (a *PersonalApiService) ParseName(ctx context.Context, nameFull string) (PersonalNameParsedOut, *http.Response, error)
- func (a *PersonalApiService) ParseNameBatch(ctx context.Context, localVarOptionals *ParseNameBatchOpts) (BatchPersonalNameParsedOut, *http.Response, error)
- func (a *PersonalApiService) ParseNameGeo(ctx context.Context, nameFull string, countryIso2 string) (PersonalNameParsedOut, *http.Response, error)
- func (a *PersonalApiService) ParseNameGeoBatch(ctx context.Context, localVarOptionals *ParseNameGeoBatchOpts) (BatchPersonalNameParsedOut, *http.Response, error)
- func (a *PersonalApiService) UsRaceEthnicity(ctx context.Context, firstName string, lastName string) (FirstLastNameUsRaceEthnicityOut, *http.Response, error)
- func (a *PersonalApiService) UsRaceEthnicityBatch(ctx context.Context, localVarOptionals *UsRaceEthnicityBatchOpts) (BatchFirstLastNameUsRaceEthnicityOut, *http.Response, error)
- func (a *PersonalApiService) UsRaceEthnicityZIP5(ctx context.Context, firstName string, lastName string, zip5Code string) (FirstLastNameUsRaceEthnicityOut, *http.Response, error)
- func (a *PersonalApiService) UsZipRaceEthnicityBatch(ctx context.Context, localVarOptionals *UsZipRaceEthnicityBatchOpts) (BatchFirstLastNameUsRaceEthnicityOut, *http.Response, error)
- type PersonalNameGenderedOut
- type PersonalNameGeoIn
- type PersonalNameGeoOut
- type PersonalNameIn
- type PersonalNameParsedOut
- type PhoneCodeBatchOpts
- type PhoneCodeGeoBatchOpts
- type PinyinChineseNameBatchOpts
- type ProperNounCategorizedOut
- type RomanizedNameOut
- type SocialApiService
- func (a *SocialApiService) PhoneCode(ctx context.Context, firstName string, lastName string, phoneNumber string) (FirstLastNamePhoneCodedOut, *http.Response, error)
- func (a *SocialApiService) PhoneCodeBatch(ctx context.Context, localVarOptionals *PhoneCodeBatchOpts) (BatchFirstLastNamePhoneCodedOut, *http.Response, error)
- func (a *SocialApiService) PhoneCodeGeo(ctx context.Context, firstName string, lastName string, phoneNumber string, ...) (FirstLastNamePhoneCodedOut, *http.Response, error)
- func (a *SocialApiService) PhoneCodeGeoBatch(ctx context.Context, localVarOptionals *PhoneCodeGeoBatchOpts) (BatchFirstLastNamePhoneCodedOut, *http.Response, error)
- func (a *SocialApiService) PhoneCodeGeoFeedbackLoop(ctx context.Context, firstName string, lastName string, phoneNumber string, ...) (FirstLastNamePhoneCodedOut, *http.Response, error)
- type SoftwareVersionOut
- type SourceDetailedMetricsOut
- type SourceMetricsOut
- type StripeCardOut
- type StripeCustomerOut
- type SystemMetricsOut
- type UsRaceEthnicityBatchOpts
- type UsZipRaceEthnicityBatchOpts
- type UserInfoOut
Constants ¶
This section is empty.
Variables ¶
var ( // ContextOAuth2 takes an oauth2.TokenSource as authentication for the request. ContextOAuth2 = contextKey("token") // ContextBasicAuth takes BasicAuth as authentication for the request. ContextBasicAuth = contextKey("basic") // ContextAccessToken takes a string oauth2 access token as authentication for the request. ContextAccessToken = contextKey("accesstoken") // ContextAPIKey takes an APIKey as authentication for the request ContextAPIKey = contextKey("apikey") )
Functions ¶
Types ¶
type APIClient ¶
type APIClient struct {
AdminApi *AdminApiService
ChineseApi *ChineseApiService
GeneralApi *GeneralApiService
JapaneseApi *JapaneseApiService
PersonalApi *PersonalApiService
SocialApi *SocialApiService
// contains filtered or unexported fields
}
APIClient manages communication with the NamSor API v2 API v2.0.15 In most cases there should be only one, shared, APIClient.
func NewAPIClient ¶
func NewAPIClient(cfg *Configuration) *APIClient
NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.
func (*APIClient) ChangeBasePath ¶
Change base path to allow switching to mocks
type APIKey ¶
APIKey provides API key based authentication to a request passed via context using ContextAPIKey
type APIResponse ¶
type APIResponse struct {
*http.Response `json:"-"`
Message string `json:"message,omitempty"`
// Operation is the name of the OpenAPI operation.
Operation string `json:"operation,omitempty"`
// RequestURL is the request URL. This value is always available, even if the
// embedded *http.Response is nil.
RequestURL string `json:"url,omitempty"`
// Method is the HTTP method used for the request. This value is always
// available, even if the embedded *http.Response is nil.
Method string `json:"method,omitempty"`
// Payload holds the contents of the response body (which may be nil or empty).
// This is provided here as the raw response.Body() reader will have already
// been drained.
Payload []byte `json:"-"`
}
func NewAPIResponse ¶
func NewAPIResponse(r *http.Response) *APIResponse
func NewAPIResponseWithError ¶
func NewAPIResponseWithError(errorMessage string) *APIResponse
type AdminApiService ¶
type AdminApiService service
func (*AdminApiService) Anonymize ¶
func (a *AdminApiService) Anonymize(ctx context.Context, source string, anonymized bool) (*http.Response, error)
AdminApiService Activate/deactivate anonymization for a source.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param source
- @param anonymized
func (*AdminApiService) ApiStatus ¶
func (a *AdminApiService) ApiStatus(ctx context.Context) (ApiClassifiersStatusOut, *http.Response, error)
AdminApiService Prints the current status of the classifiers. A classifier name in apiStatus corresponds to a service name in apiServices.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiClassifiersStatusOut
func (*AdminApiService) ApiUsage ¶
func (a *AdminApiService) ApiUsage(ctx context.Context) (ApiPeriodUsageOut, *http.Response, error)
AdminApiService Print current API usage.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiPeriodUsageOut
func (*AdminApiService) ApiUsageHistory ¶
func (a *AdminApiService) ApiUsageHistory(ctx context.Context) (ApiUsageHistoryOut, *http.Response, error)
AdminApiService Print historical API usage.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiUsageHistoryOut
func (*AdminApiService) ApiUsageHistoryAggregate ¶
func (a *AdminApiService) ApiUsageHistoryAggregate(ctx context.Context) (ApiUsageAggregatedOut, *http.Response, error)
AdminApiService Print historical API usage (in an aggregated view, by service, by day/hour/min).
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiUsageAggregatedOut
func (*AdminApiService) AvailableServices ¶
func (a *AdminApiService) AvailableServices(ctx context.Context) (ApiServicesOut, *http.Response, error)
AdminApiService List of classification services and usage cost in Units per classification (default is 1=ONE Unit). Some API endpoints (ex. Corridor) combine multiple classifiers.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiServicesOut
func (*AdminApiService) Disable ¶
func (a *AdminApiService) Disable(ctx context.Context, source string, disabled bool) (*http.Response, error)
AdminApiService Activate/deactivate an API Key.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param source The API Key to set as enabled/disabled.
- @param disabled
func (*AdminApiService) Learnable ¶
func (a *AdminApiService) Learnable(ctx context.Context, source string, learnable bool) (*http.Response, error)
AdminApiService Activate/deactivate learning from a source.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param source The API Key to set as learnable/non learnable.
- @param learnable
func (*AdminApiService) SoftwareVersion ¶
func (a *AdminApiService) SoftwareVersion(ctx context.Context) (SoftwareVersionOut, *http.Response, error)
AdminApiService Get the current software version
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return SoftwareVersionOut
func (*AdminApiService) TaxonomyClasses ¶
func (a *AdminApiService) TaxonomyClasses(ctx context.Context, classifierName string) (ApiClassifierTaxonomyOut, *http.Response, error)
AdminApiService Print the taxonomy classes valid for the given classifier.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param classifierName
@return ApiClassifierTaxonomyOut
type ApiBillingPeriodUsageOut ¶
type ApiBillingPeriodUsageOut struct {
// User API Key.
ApiKey string `json:"apiKey,omitempty"`
// Datetime when the user subscribed to the plan.
SubscriptionStarted int64 `json:"subscriptionStarted,omitempty"`
// Datetime when the the plan's current period started.
PeriodStarted int64 `json:"periodStarted,omitempty"`
// Datetime when the the plan's current period endend.
PeriodEnded int64 `json:"periodEnded,omitempty"`
// Datetime when the the plan's current period endend (in Stripe). Internal and Stripe periodicity should ~coincide.
StripeCurrentPeriodEnd int64 `json:"stripeCurrentPeriodEnd,omitempty"`
// Datetime when the the plan's current period started (in Stripe). Internal and Stripe periodicity should ~coincide.
StripeCurrentPeriodStart int64 `json:"stripeCurrentPeriodStart,omitempty"`
// Current period billing status ex OPEN.
BillingStatus string `json:"billingStatus,omitempty"`
// Current period usage in units (NB some API endpoints use more than one unit).
Usage int64 `json:"usage,omitempty"`
// Current period soft limit (reaching the limit sends an email notification).
SoftLimit int64 `json:"softLimit,omitempty"`
// Current period hard limit (reaching the limit sends an email notification and blocks the API Key).
HardLimit int64 `json:"hardLimit,omitempty"`
}
The current billing period.
type ApiClassifierOut ¶
type ApiClassifierOut struct {
// The classifier name
ClassifierName string `json:"classifierName,omitempty"`
// True if the classifier is serving requests (has reached minimal learning, is not shutting down)
Serving bool `json:"serving,omitempty"`
// True if the classifier is learning
Learning bool `json:"learning,omitempty"`
// True if the classifier is shutting down
ShuttingDown bool `json:"shuttingDown,omitempty"`
// True if the classifier has finished the initial learning and calibrated probabilities (meanwhile, during initial learning, probabilities will be equal to -1)
ProbabilityCalibrated bool `json:"probabilityCalibrated,omitempty"`
}
The list of classifiers and versions.
type ApiClassifierTaxonomyOut ¶
type ApiClassifierTaxonomyOut struct {
// Name of the classifier as per apiStatus (corresponds also to the name of the service in apiServices)
ClassifierName string `json:"classifierName,omitempty"`
// The taxonomy classes this classifier classifies to
TaxonomyClasses []string `json:"taxonomyClasses,omitempty"`
}
type ApiClassifiersStatusOut ¶
type ApiClassifiersStatusOut struct {
SoftwareVersion SoftwareVersionOut `json:"softwareVersion,omitempty"`
// The list of classifiers and versions.
Classifiers []ApiClassifierOut `json:"classifiers,omitempty"`
}
type ApiCounterV2Out ¶
type ApiCounterV2Out struct {
ApiKey ApiKeyOut `json:"apiKey,omitempty"`
// The apiService corresponds to the classifier name.
ApiService string `json:"apiService,omitempty"`
// The create datetime of the counter.
CreatedDateTime int64 `json:"createdDateTime,omitempty"`
// The usage of the counter.
TotalUsage int64 `json:"totalUsage,omitempty"`
// The flush datetime of the counter.
LastFlushedDateTime int64 `json:"lastFlushedDateTime,omitempty"`
// The last usage datetime of the counter.
LastUsedDateTime int64 `json:"lastUsedDateTime,omitempty"`
// Usage of special features, such as Chinese, Japanese.
ServiceFeaturesUsage map[string]int64 `json:"serviceFeaturesUsage,omitempty"`
}
Detailed usage as reported by the deduplicating API counter.
type ApiKeyOut ¶
type ApiKeyOut struct {
// The user API Key.
ApiKey string `json:"apiKey,omitempty"`
// The user identifier.
UserId string `json:"userId,omitempty"`
// The API Key has admin role.
Admin bool `json:"admin,omitempty"`
// The API Key is vetted (assumed truthful) for machine learning.
Vetted bool `json:"vetted,omitempty"`
// The API Key is learnable (without assuming truthfulness) for machine learning. Set learnable=false and anonymized=true for highest privacy (ie. to forget data as it's processed).
Learnable bool `json:"learnable,omitempty"`
// The API Key is anonymized (using SHA-252 digest for logging). Set learnable=false and anonymized=true for highest privacy (ie. to forget data as it's processed).
Anonymized bool `json:"anonymized,omitempty"`
// The API Key has partner role.
Partner bool `json:"partner,omitempty"`
// The API Key is associated to a valid Stripe account.
Striped bool `json:"striped,omitempty"`
// The API Key has role corporate (ex SWIFT payments instead of Stripe payments).
Corporate bool `json:"corporate,omitempty"`
// The API Key is temporarily or permanently disabled.
Disabled bool `json:"disabled,omitempty"`
}
The API Key.
type ApiPeriodUsageOut ¶
type ApiPeriodUsageOut struct {
Subscription ApiPlanSubscriptionOut `json:"subscription,omitempty"`
BillingPeriod ApiBillingPeriodUsageOut `json:"billingPeriod,omitempty"`
// Overage amount including any tax.
OverageExclTax float64 `json:"overageExclTax,omitempty"`
// Overage amount including tax (if applicable).
OverageInclTax float64 `json:"overageInclTax,omitempty"`
// Currency of the overage amount.
OverageCurrency string `json:"overageCurrency,omitempty"`
// Quantity above monthly quota of the current subscritpion, in units.
OverageQuantity int64 `json:"overageQuantity,omitempty"`
}
type ApiPlanOut ¶
type ApiPlanSubscriptionOut ¶
type ApiPlanSubscriptionOut struct {
// User API Key.
ApiKey string `json:"apiKey,omitempty"`
// Datetime when the user subscribed to the current plan.
PlanStarted int64 `json:"planStarted,omitempty"`
// Datetime when the user subscribed to the prior plan.
PriorPlanStarted int64 `json:"priorPlanStarted,omitempty"`
// Datetime when the user ended the plan.
PlanEnded int64 `json:"planEnded,omitempty"`
// Applicable tax rate for the plan.
TaxRate float64 `json:"taxRate,omitempty"`
// Current plan name.
PlanName string `json:"planName,omitempty"`
// Current plan key (as in Stripe product).
PlanBaseFeesKey string `json:"planBaseFeesKey,omitempty"`
// Plan status.
PlanStatus string `json:"planStatus,omitempty"`
// Current plan quota in quantity of units (NB: some API use several units per name).
PlanQuota int64 `json:"planQuota,omitempty"`
// Current plan monthly price expressed in USD (includes a free quota).
PriceUSD float64 `json:"priceUSD,omitempty"`
// Current plan price for overages expressed in USD (extra price per unit above the free quota).
PriceOverageUSD float64 `json:"priceOverageUSD,omitempty"`
// Current plan price for overages expressed in Currency (extra price per unit above the free quota).
Price float64 `json:"price,omitempty"`
// Current plan price for overages expressed in Currency (extra price per unit above the free quota).
PriceOverage float64 `json:"priceOverage,omitempty"`
// Current plan Currency for prices.
Currency string `json:"currency,omitempty"`
// For USD, GBP, EUR - the factor is 1.
CurrencyFactor float64 `json:"currencyFactor,omitempty"`
// Stripe customer identifier.
StripeCustomerId string `json:"stripeCustomerId,omitempty"`
// Stripe status ex active.
StripeStatus string `json:"stripeStatus,omitempty"`
// Stripe subscription identifier.
StripeSubscription string `json:"stripeSubscription,omitempty"`
// Internal user identifier.
UserId string `json:"userId,omitempty"`
}
The API Plan governing the subscription.
type ApiPlansOut ¶
type ApiPlansOut struct {
UsageRatioForDupplicates int64 `json:"usageRatioForDupplicates,omitempty"`
CurrencyIso3 string `json:"currencyIso3,omitempty"`
CurrencySymbol string `json:"currencySymbol,omitempty"`
Plans []ApiPlanOut `json:"plans,omitempty"`
}
type ApiServiceOut ¶
type ApiServiceOut struct {
// A service name corresponds to classifier name in apiStatus (ex. personalname_gender or personalfullname_gender)
ServiceName string `json:"serviceName,omitempty"`
// Groups together classifiers providing a similar service (ex. gender groups personalname_gender and personalfullname_gender)
ServiceGroup string `json:"serviceGroup,omitempty"`
// Indicates how many units per call this service costs (ex. the number of units per name)
CostInUnits int32 `json:"costInUnits,omitempty"`
}
List of API Services
type ApiServicesOut ¶
type ApiServicesOut struct {
// List of API Services
ApiServices []ApiServiceOut `json:"apiServices,omitempty"`
}
type ApiUsageAggregatedOut ¶
type ApiUsageAggregatedOut struct {
// Time unit is DAY, WEEK or MONTH depending on prior usage
TimeUnit string `json:"timeUnit,omitempty"`
// Start datetime of the reporting period
PeriodStart int64 `json:"periodStart,omitempty"`
// End datetime of the reporting period
PeriodEnd int64 `json:"periodEnd,omitempty"`
// Total usage in the current period
TotalUsage int64 `json:"totalUsage,omitempty"`
// If the history was truncaded due to data limit
HistoryTruncated bool `json:"historyTruncated,omitempty"`
// Data points : usage per DAY, WEEK or MONTH and per apiService
Data [][]int32 `json:"data,omitempty"`
// apiServices as column headers
ColHeaders []string `json:"colHeaders,omitempty"`
// dates as row headers
RowHeaders []string `json:"rowHeaders,omitempty"`
}
type ApiUsageHistoryOut ¶
type ApiUsageHistoryOut struct {
// Detailed usage as reported by the deduplicating API counter.
DetailedUsage []ApiCounterV2Out `json:"detailedUsage,omitempty"`
}
type BasicAuth ¶
type BasicAuth struct {
UserName string `json:"userName,omitempty"`
Password string `json:"password,omitempty"`
}
BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth
type BatchCorridorIn ¶
type BatchCorridorIn struct {
CorridorFromTo []CorridorIn `json:"corridorFromTo,omitempty"`
}
type BatchCorridorOut ¶
type BatchCorridorOut struct {
// Classified corridors
CorridorFromTo []CorridorOut `json:"corridorFromTo,omitempty"`
}
type BatchFirstLastNameDiasporaedOut ¶
type BatchFirstLastNameDiasporaedOut struct {
// Classified diaspora names
PersonalNames []FirstLastNameDiasporaedOut `json:"personalNames,omitempty"`
}
Represents the output of inferring the LIKELY ethnicity from a personal name, given an country of residence.
type BatchFirstLastNameGenderIn ¶
type BatchFirstLastNameGenderIn struct {
PersonalNames []FirstLastNameGenderIn `json:"personalNames,omitempty"`
}
type BatchFirstLastNameGenderedOut ¶
type BatchFirstLastNameGenderedOut struct {
// Classified genderized names
PersonalNames []FirstLastNameGenderedOut `json:"personalNames,omitempty"`
}
Represents the output of inferring the LIKELY gender from a list of personal names.
type BatchFirstLastNameGeoIn ¶
type BatchFirstLastNameGeoIn struct {
PersonalNames []FirstLastNameGeoIn `json:"personalNames,omitempty"`
}
type BatchFirstLastNameGeoZippedIn ¶
type BatchFirstLastNameGeoZippedIn struct {
PersonalNames []FirstLastNameGeoZippedIn `json:"personalNames,omitempty"`
}
type BatchFirstLastNameIn ¶
type BatchFirstLastNameIn struct {
PersonalNames []FirstLastNameIn `json:"personalNames,omitempty"`
}
type BatchFirstLastNameOriginedOut ¶
type BatchFirstLastNameOriginedOut struct {
// Classified origined names
PersonalNames []FirstLastNameOriginedOut `json:"personalNames,omitempty"`
}
Represents the output of inferring the LIKELY origin from a list of personal names.
type BatchFirstLastNamePhoneCodedOut ¶
type BatchFirstLastNamePhoneCodedOut struct {
// Classified phone-coded names
PersonalNamesWithPhoneNumbers []FirstLastNamePhoneCodedOut `json:"personalNamesWithPhoneNumbers,omitempty"`
}
Represents the output of inferring the LIKELY country and phone code of personal names+phones.
type BatchFirstLastNamePhoneNumberGeoIn ¶
type BatchFirstLastNamePhoneNumberGeoIn struct {
PersonalNamesWithPhoneNumbers []FirstLastNamePhoneNumberGeoIn `json:"personalNamesWithPhoneNumbers,omitempty"`
}
type BatchFirstLastNamePhoneNumberIn ¶
type BatchFirstLastNamePhoneNumberIn struct {
PersonalNamesWithPhoneNumbers []FirstLastNamePhoneNumberIn `json:"personalNamesWithPhoneNumbers,omitempty"`
}
type BatchFirstLastNameUsRaceEthnicityOut ¶
type BatchFirstLastNameUsRaceEthnicityOut struct {
// Classified US 'race'/ethnicized names
PersonalNames []FirstLastNameUsRaceEthnicityOut `json:"personalNames,omitempty"`
}
Represents the output of inferring the LIKELY US 'race/ethnicity' from a personal name, given US country of residence and (optionally) a ZIP5 code.
type BatchMatchPersonalFirstLastNameIn ¶
type BatchMatchPersonalFirstLastNameIn struct {
PersonalNames []MatchPersonalFirstLastNameIn `json:"personalNames,omitempty"`
}
type BatchNameGeoIn ¶
type BatchNameGeoIn struct {
ProperNouns []NameGeoIn `json:"properNouns,omitempty"`
}
type BatchNameIn ¶
type BatchNameIn struct {
ProperNouns []NameIn `json:"properNouns,omitempty"`
}
type BatchNameMatchCandidatesOut ¶
type BatchNameMatchCandidatesOut struct {
// Classified matched names
NamesAndMatchCandidates []NameMatchCandidatesOut `json:"namesAndMatchCandidates,omitempty"`
}
type BatchNameMatchedOut ¶
type BatchNameMatchedOut struct {
// Classified matched names
MatchedNames []NameMatchedOut `json:"matchedNames,omitempty"`
}
type BatchParsedFullNameGeoIn ¶
type BatchParsedFullNameGeoIn struct {
PersonalNames []ParsedFullNameGeoIn `json:"personalNames,omitempty"`
}
type BatchParsedFullNameIn ¶
type BatchParsedFullNameIn struct {
PersonalNames []ParsedFullNameIn `json:"personalNames,omitempty"`
}
type BatchPersonalNameGenderedOut ¶
type BatchPersonalNameGenderedOut struct {
// Classified genderized names
PersonalNames []PersonalNameGenderedOut `json:"personalNames,omitempty"`
}
type BatchPersonalNameGeoIn ¶
type BatchPersonalNameGeoIn struct {
PersonalNames []PersonalNameGeoIn `json:"personalNames,omitempty"`
}
type BatchPersonalNameGeoOut ¶
type BatchPersonalNameGeoOut struct {
// Classified geo names
PersonalNames []PersonalNameGeoOut `json:"personalNames,omitempty"`
}
type BatchPersonalNameIn ¶
type BatchPersonalNameIn struct {
PersonalNames []PersonalNameIn `json:"personalNames,omitempty"`
}
type BatchPersonalNameParsedOut ¶
type BatchPersonalNameParsedOut struct {
// Classified parsed names
PersonalNames []PersonalNameParsedOut `json:"personalNames,omitempty"`
}
type BatchProperNounCategorizedOut ¶
type BatchProperNounCategorizedOut struct {
// Classified typed proper names
ProperNouns []ProperNounCategorizedOut `json:"properNouns,omitempty"`
}
Represents the output of inferring the common type (anthroponym, toponym, brand, etc.) from a list of proper names.
type BillingHistoryOut ¶
type BillingHistoryOut struct {
StripeInvoices []InvoiceOut `json:"stripeInvoices,omitempty"`
CorporateInvoices []InvoiceOut `json:"corporateInvoices,omitempty"`
}
type BillingInfoInOut ¶
type BillingInfoInOut struct {
BillingEmail string `json:"billingEmail,omitempty"`
PreferredCurrency string `json:"preferredCurrency,omitempty"`
CustomerName string `json:"customerName,omitempty"`
CustomerPhone string `json:"customerPhone,omitempty"`
AddressLine1 string `json:"addressLine1,omitempty"`
AddressLine2 string `json:"addressLine2,omitempty"`
AddressCity string `json:"addressCity,omitempty"`
AddressPostalCode string `json:"addressPostalCode,omitempty"`
AddressState string `json:"addressState,omitempty"`
AddressCountry string `json:"addressCountry,omitempty"`
VatID string `json:"vatID,omitempty"`
}
type CacheMetricsOut ¶
type CacheMetricsOut struct {
CacheName string `json:"cacheName,omitempty"`
CacheStats string `json:"cacheStats,omitempty"`
}
Simple metrics system caches
type ChineseApiService ¶
type ChineseApiService service
func (*ChineseApiService) ChineseNameCandidates ¶
func (a *ChineseApiService) ChineseNameCandidates(ctx context.Context, chineseSurnameLatin string, chineseGivenNameLatin string) (NameMatchCandidatesOut, *http.Response, error)
ChineseApiService Identify Chinese name candidates, based on the romanized name ex. Wang Xiaoming
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param chineseSurnameLatin
- @param chineseGivenNameLatin
@return NameMatchCandidatesOut
func (*ChineseApiService) ChineseNameCandidatesBatch ¶
func (a *ChineseApiService) ChineseNameCandidatesBatch(ctx context.Context, localVarOptionals *ChineseNameCandidatesBatchOpts) (BatchNameMatchCandidatesOut, *http.Response, error)
func (*ChineseApiService) ChineseNameCandidatesGenderBatch ¶
func (a *ChineseApiService) ChineseNameCandidatesGenderBatch(ctx context.Context, localVarOptionals *ChineseNameCandidatesGenderBatchOpts) (BatchNameMatchCandidatesOut, *http.Response, error)
func (*ChineseApiService) ChineseNameGenderCandidates ¶
func (a *ChineseApiService) ChineseNameGenderCandidates(ctx context.Context, chineseSurnameLatin string, chineseGivenNameLatin string, knownGender string) (NameMatchCandidatesOut, *http.Response, error)
ChineseApiService Identify Chinese name candidates, based on the romanized name ex. Wang Xiaoming - having a known gender ('male' or 'female')
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param chineseSurnameLatin
- @param chineseGivenNameLatin
- @param knownGender
@return NameMatchCandidatesOut
func (*ChineseApiService) ChineseNameMatch ¶
func (a *ChineseApiService) ChineseNameMatch(ctx context.Context, chineseSurnameLatin string, chineseGivenNameLatin string, chineseName string) (NameMatchedOut, *http.Response, error)
ChineseApiService Return a score for matching Chinese name ex. 王晓明 with a romanized name ex. Wang Xiaoming
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param chineseSurnameLatin
- @param chineseGivenNameLatin
- @param chineseName
@return NameMatchedOut
func (*ChineseApiService) ChineseNameMatchBatch ¶
func (a *ChineseApiService) ChineseNameMatchBatch(ctx context.Context, localVarOptionals *ChineseNameMatchBatchOpts) (BatchNameMatchedOut, *http.Response, error)
func (*ChineseApiService) GenderChineseName ¶
func (a *ChineseApiService) GenderChineseName(ctx context.Context, chineseName string) (PersonalNameGenderedOut, *http.Response, error)
ChineseApiService Infer the likely gender of a Chinese full name ex. 王晓明
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param chineseName
@return PersonalNameGenderedOut
func (*ChineseApiService) GenderChineseNameBatch ¶
func (a *ChineseApiService) GenderChineseNameBatch(ctx context.Context, localVarOptionals *GenderChineseNameBatchOpts) (BatchPersonalNameGenderedOut, *http.Response, error)
func (*ChineseApiService) GenderChineseNamePinyin ¶
func (a *ChineseApiService) GenderChineseNamePinyin(ctx context.Context, chineseSurnameLatin string, chineseGivenNameLatin string) (FirstLastNameGenderedOut, *http.Response, error)
ChineseApiService Infer the likely gender of a Chinese name in LATIN (Pinyin).
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param chineseSurnameLatin
- @param chineseGivenNameLatin
@return FirstLastNameGenderedOut
func (*ChineseApiService) GenderChineseNamePinyinBatch ¶
func (a *ChineseApiService) GenderChineseNamePinyinBatch(ctx context.Context, localVarOptionals *GenderChineseNamePinyinBatchOpts) (BatchFirstLastNameGenderedOut, *http.Response, error)
func (*ChineseApiService) ParseChineseName ¶
func (a *ChineseApiService) ParseChineseName(ctx context.Context, chineseName string) (PersonalNameParsedOut, *http.Response, error)
ChineseApiService Infer the likely first/last name structure of a name, ex. 王晓明 -> 王(surname) 晓明(given name)
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param chineseName
@return PersonalNameParsedOut
func (*ChineseApiService) ParseChineseNameBatch ¶
func (a *ChineseApiService) ParseChineseNameBatch(ctx context.Context, localVarOptionals *ParseChineseNameBatchOpts) (BatchPersonalNameParsedOut, *http.Response, error)
func (*ChineseApiService) PinyinChineseName ¶
func (a *ChineseApiService) PinyinChineseName(ctx context.Context, chineseName string) (PersonalNameParsedOut, *http.Response, error)
ChineseApiService Romanize the Chinese name to Pinyin, ex. 王晓明 -> Wang (surname) Xiaoming (given name)
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param chineseName
@return PersonalNameParsedOut
func (*ChineseApiService) PinyinChineseNameBatch ¶
func (a *ChineseApiService) PinyinChineseNameBatch(ctx context.Context, localVarOptionals *PinyinChineseNameBatchOpts) (BatchPersonalNameParsedOut, *http.Response, error)
type ClassifierMetricsOut ¶
type ClassifierMetricsOut struct {
SoftwareVersion string `json:"softwareVersion,omitempty"`
HostAddress string `json:"hostAddress,omitempty"`
LearnQueueSize int32 `json:"learnQueueSize,omitempty"`
BufferSize int32 `json:"bufferSize,omitempty"`
PreClassifyQueueSize int32 `json:"preClassifyQueueSize,omitempty"`
FactKeysSize int32 `json:"factKeysSize,omitempty"`
FactsLearned int64 `json:"factsLearned,omitempty"`
ClassifyDurationsCurrent float64 `json:"classifyDurationsCurrent,omitempty"`
ClassifyDurationsSummary float64 `json:"classifyDurationsSummary,omitempty"`
LearnDurationsCurrent float64 `json:"learnDurationsCurrent,omitempty"`
LearnDurationsSummary float64 `json:"learnDurationsSummary,omitempty"`
ClassifierName string `json:"classifierName,omitempty"`
FeaturesSize int64 `json:"featuresSize,omitempty"`
AiVettedEstimateTotal int64 `json:"aiVettedEstimateTotal,omitempty"`
AiVettedEstimatePrecision float64 `json:"aiVettedEstimatePrecision,omitempty"`
AiVettedEstimateRecall float64 `json:"aiVettedEstimateRecall,omitempty"`
AiVettedLearnTotal int64 `json:"aiVettedLearnTotal,omitempty"`
AiNonVettedEstimateTotal int64 `json:"aiNonVettedEstimateTotal,omitempty"`
AiNonVettedEstimatePrecision float64 `json:"aiNonVettedEstimatePrecision,omitempty"`
AiNonVettedEstimateRecall float64 `json:"aiNonVettedEstimateRecall,omitempty"`
AiNonVettedLearnTotal int64 `json:"aiNonVettedLearnTotal,omitempty"`
MetricTimeStamp int64 `json:"metricTimeStamp,omitempty"`
AiStartTime int64 `json:"aiStartTime,omitempty"`
AiVettedExpectedClassMetrics []ExpectedClassMetricsOut `json:"aiVettedExpectedClassMetrics,omitempty"`
AiNonVettedExpectedClassMetrics []ExpectedClassMetricsOut `json:"aiNonVettedExpectedClassMetrics,omitempty"`
}
Simple metrics on a classifier
type Configuration ¶
type Configuration struct {
BasePath string `json:"basePath,omitempty"`
Host string `json:"host,omitempty"`
Scheme string `json:"scheme,omitempty"`
DefaultHeader map[string]string `json:"defaultHeader,omitempty"`
UserAgent string `json:"userAgent,omitempty"`
HTTPClient *http.Client
}
func NewConfiguration ¶
func NewConfiguration() *Configuration
func (*Configuration) AddDefaultHeader ¶
func (c *Configuration) AddDefaultHeader(key string, value string)
type CorridorBatchOpts ¶
type CorridorIn ¶
type CorridorIn struct {
Id string `json:"id,omitempty"`
FirstLastNameGeoFrom FirstLastNameGeoIn `json:"firstLastNameGeoFrom,omitempty"`
FirstLastNameGeoTo FirstLastNameGeoIn `json:"firstLastNameGeoTo,omitempty"`
}
Represent any transnational interaction between names (ex. remittance, communication, cross-border investment, airline travel
type CorridorOut ¶
type CorridorOut struct {
Id string `json:"id,omitempty"`
FirstLastNameGenderedOut FirstLastNameGenderedOut `json:"FirstLastNameGenderedOut,omitempty"`
FirstLastNameOriginedOut FirstLastNameOriginedOut `json:"FirstLastNameOriginedOut,omitempty"`
FirstLastNameDiasporaedOut FirstLastNameDiasporaedOut `json:"FirstLastNameDiasporaedOut,omitempty"`
Script string `json:"script,omitempty"`
}
Represent multiple classifications for corridor sender and receiver (gender, country, origin, diaspora)
type CountryBatchOpts ¶
type CurrenciesOut ¶
type CurrenciesOut struct {
CurrenciesIso3 []string `json:"currenciesIso3,omitempty"`
}
type DeployUiOut ¶
type DiasporaBatchOpts ¶
type ExpectedClassMetricsOut ¶
type ExpectedClassMetricsOut struct {
ClassifierName string `json:"classifierName,omitempty"`
ExpectedClass string `json:"expectedClass,omitempty"`
AiEstimateTotal int64 `json:"aiEstimateTotal,omitempty"`
AiEstimatePrecision float64 `json:"aiEstimatePrecision,omitempty"`
AiEstimateRecall float64 `json:"aiEstimateRecall,omitempty"`
AiLearnTotal int64 `json:"aiLearnTotal,omitempty"`
}
Simple metrics on a classifier, for a given expected class
type FeedbackLoopOut ¶
type FeedbackLoopOut struct {
// Number of units recredited as per feedback loop successful classification
FeedbackCredits int64 `json:"feedbackCredits,omitempty"`
}
type FirstLastNameDiasporaedOut ¶
type FirstLastNameDiasporaedOut struct {
Script string `json:"script,omitempty"`
Id string `json:"id,omitempty"`
// The first name (also known as given name)
FirstName string `json:"firstName,omitempty"`
// The last name (also known as family name, or surname)
LastName string `json:"lastName,omitempty"`
// Compatibility to NamSor_v1 Diaspora score value. Higher score is better, but score is not normalized. Use calibratedProbability if available.
Score float64 `json:"score,omitempty"`
// The second best alternative ethnicity
EthnicityAlt string `json:"ethnicityAlt,omitempty"`
// The most likely ethnicity
Ethnicity string `json:"ethnicity,omitempty"`
// Indicates if the output ethnicity is based on machine learning only, or further lifted as a known fact by a country-specific rule. Let us know if you believe ethnicity is incorrect on a specific case where lifted is true.
Lifted bool `json:"lifted,omitempty"`
// From input data, the countryIso2 of geographic context (US,CA etc.)
CountryIso2 string `json:"countryIso2,omitempty"`
// List most likely ethnicities (top 10)
EthnicitiesTop []string `json:"ethnicitiesTop,omitempty"`
}
Represents the output of inferring the LIKELY ethnicity from a personal name, given an country of residence.
type FirstLastNameGenderIn ¶
type FirstLastNameGenderedOut ¶
type FirstLastNameGenderedOut struct {
Script string `json:"script,omitempty"`
Id string `json:"id,omitempty"`
// The first name (also known as given name)
FirstName string `json:"firstName,omitempty"`
// The last name (also known as family name, or surname)
LastName string `json:"lastName,omitempty"`
// Most likely gender
LikelyGender string `json:"likelyGender,omitempty"`
// Compatibility to NamSor_v1 Gender Scale M[-1..U..+1]F value
GenderScale float64 `json:"genderScale,omitempty"`
// Compatibility to NamSor_v1 Gender score value. Higher score is better, but score is not normalized. Use calibratedProbability if available.
Score float64 `json:"score,omitempty"`
// The calibrated probability for inferred gender to have been guessed correctly.
ProbabilityCalibrated float64 `json:"probabilityCalibrated,omitempty"`
}
Represents the output of inferring the LIKELY gender from a personal name.
type FirstLastNameGeoIn ¶
type FirstLastNameIn ¶
type FirstLastNameOriginedOut ¶
type FirstLastNameOriginedOut struct {
Script string `json:"script,omitempty"`
Id string `json:"id,omitempty"`
// The first name (also known as given name)
FirstName string `json:"firstName,omitempty"`
// The last name (also known as family name, or surname)
LastName string `json:"lastName,omitempty"`
// Most likely country of Origin
CountryOrigin string `json:"countryOrigin,omitempty"`
// Second best alternative : country of Origin
CountryOriginAlt string `json:"countryOriginAlt,omitempty"`
// List countries of Origin (top 10)
CountriesOriginTop []string `json:"countriesOriginTop,omitempty"`
// Compatibility to NamSor_v1 Origin score value. Higher score is better, but score is not normalized. Use calibratedProbability if available.
Score float64 `json:"score,omitempty"`
// Most likely region of Origin (based on countryOrigin ISO2 code)
RegionOrigin string `json:"regionOrigin,omitempty"`
// Most likely top region of Origin (based on countryOrigin ISO2 code)
TopRegionOrigin string `json:"topRegionOrigin,omitempty"`
// Most likely sub region of Origin (based on countryOrigin ISO2 code)
SubRegionOrigin string `json:"subRegionOrigin,omitempty"`
// The calibrated probability for countryOrigin to have been guessed correctly.
ProbabilityCalibrated float64 `json:"probabilityCalibrated,omitempty"`
// The calibrated probability for countryOrigin OR countryOriginAlt to have been guessed correctly.
ProbabilityAltCalibrated float64 `json:"probabilityAltCalibrated,omitempty"`
}
Represents the output of inferring the LIKELY country of Origin from a personal name.
type FirstLastNameOut ¶
type FirstLastNameOut struct {
Script string `json:"script,omitempty"`
Id string `json:"id,omitempty"`
// The first name (also known as given name)
FirstName string `json:"firstName,omitempty"`
// The last name (also known as family name, or surname)
LastName string `json:"lastName,omitempty"`
}
First / last name structure corresponding to the most likely parsing.
type FirstLastNamePhoneCodedOut ¶
type FirstLastNamePhoneCodedOut struct {
Script string `json:"script,omitempty"`
Id string `json:"id,omitempty"`
// The first name (also known as given name)
FirstName string `json:"firstName,omitempty"`
// The last name (also known as family name, or surname)
LastName string `json:"lastName,omitempty"`
// The normalized phone number, verified using libphonenumber.
InternationalPhoneNumberVerified string `json:"internationalPhoneNumberVerified,omitempty"`
// The phone ISO2 country code, verified using libphonenumber.
PhoneCountryIso2Verified string `json:"phoneCountryIso2Verified,omitempty"`
// The phone country code of the phone number, verified using libphonenumber.
PhoneCountryCode int32 `json:"phoneCountryCode,omitempty"`
// The best alternative phone country code of the phone number.
PhoneCountryCodeAlt int32 `json:"phoneCountryCodeAlt,omitempty"`
// The likely country of the phone number.
PhoneCountryIso2 string `json:"phoneCountryIso2,omitempty"`
// The best alternative country of the phone number.
PhoneCountryIso2Alt string `json:"phoneCountryIso2Alt,omitempty"`
// The likely country of origin of the name.
OriginCountryIso2 string `json:"originCountryIso2,omitempty"`
// The best alternative country of origin of the name.
OriginCountryIso2Alt string `json:"originCountryIso2Alt,omitempty"`
// The input phone number.
PhoneNumber string `json:"phoneNumber,omitempty"`
// Indicates if the phone number could be positively verified using libphonenumber.
Verified bool `json:"verified,omitempty"`
// Higher score is better, but score is not normalized. Use calibratedProbability if available.
Score float64 `json:"score,omitempty"`
CountryIso2 string `json:"countryIso2,omitempty"`
}
Represents the output of inferring the LIKELY country and phone code from a personal name and phone number.
type FirstLastNamePhoneNumberGeoIn ¶
type FirstLastNamePhoneNumberGeoIn struct {
Id string `json:"id,omitempty"`
FirstName string `json:"firstName,omitempty"`
LastName string `json:"lastName,omitempty"`
PhoneNumber string `json:"phoneNumber,omitempty"`
FirstLastNameOriginedOut FirstLastNameOriginedOut `json:"FirstLastNameOriginedOut,omitempty"`
CountryIso2 string `json:"countryIso2,omitempty"`
CountryIso2Alt string `json:"countryIso2Alt,omitempty"`
}
type FirstLastNamePhoneNumberIn ¶
type FirstLastNamePhoneNumberIn struct {
Id string `json:"id,omitempty"`
FirstName string `json:"firstName,omitempty"`
LastName string `json:"lastName,omitempty"`
PhoneNumber string `json:"phoneNumber,omitempty"`
FirstLastNameOriginedOut FirstLastNameOriginedOut `json:"FirstLastNameOriginedOut,omitempty"`
}
type FirstLastNameUsRaceEthnicityOut ¶
type FirstLastNameUsRaceEthnicityOut struct {
Script string `json:"script,omitempty"`
Id string `json:"id,omitempty"`
// The first name (also known as given name)
FirstName string `json:"firstName,omitempty"`
// The last name (also known as family name, or surname)
LastName string `json:"lastName,omitempty"`
// Second most likely US 'race'/ethnicity
RaceEthnicityAlt string `json:"raceEthnicityAlt,omitempty"`
// Most likely US 'race'/ethnicity
RaceEthnicity string `json:"raceEthnicity,omitempty"`
// Higher score is better, but score is not normalized. Use calibratedProbability if available.
Score float64 `json:"score,omitempty"`
// List 'race'/ethnicities
RaceEthnicitiesTop []string `json:"raceEthnicitiesTop,omitempty"`
// The calibrated probability for raceEthnicity to have been guessed correctly.
ProbabilityCalibrated float64 `json:"probabilityCalibrated,omitempty"`
// The calibrated probability for raceEthnicity OR raceEthnicityAlt to have been guessed correctly.
ProbabilityAltCalibrated float64 `json:"probabilityAltCalibrated,omitempty"`
}
Represents the output of inferring the LIKELY US 'race/ethnicity' from a personal name, given US country of residence and (optionally) a ZIP5 code.
type GenderBatchOpts ¶
type GenderFullBatchOpts ¶
type GenderFullGeoBatchOpts ¶
type GenderGeoBatchOpts ¶
type GeneralApiService ¶
type GeneralApiService service
func (*GeneralApiService) NameType ¶
func (a *GeneralApiService) NameType(ctx context.Context, properNoun string) (ProperNounCategorizedOut, *http.Response, error)
GeneralApiService Infer the likely type of a proper noun (personal name, brand name, place name etc.)
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param properNoun
@return ProperNounCategorizedOut
func (*GeneralApiService) NameTypeBatch ¶
func (a *GeneralApiService) NameTypeBatch(ctx context.Context, localVarOptionals *NameTypeBatchOpts) (BatchProperNounCategorizedOut, *http.Response, error)
func (*GeneralApiService) NameTypeGeo ¶
func (a *GeneralApiService) NameTypeGeo(ctx context.Context, properNoun string, countryIso2 string) (ProperNounCategorizedOut, *http.Response, error)
GeneralApiService Infer the likely type of a proper noun (personal name, brand name, place name etc.)
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param properNoun
- @param countryIso2
@return ProperNounCategorizedOut
func (*GeneralApiService) NameTypeGeoBatch ¶
func (a *GeneralApiService) NameTypeGeoBatch(ctx context.Context, localVarOptionals *NameTypeGeoBatchOpts) (BatchProperNounCategorizedOut, *http.Response, error)
type GenericOpenAPIError ¶
type GenericOpenAPIError struct {
// contains filtered or unexported fields
}
GenericOpenAPIError Provides access to the body, error and model on returned errors.
func (GenericOpenAPIError) Body ¶
func (e GenericOpenAPIError) Body() []byte
Body returns the raw bytes of the response
func (GenericOpenAPIError) Error ¶
func (e GenericOpenAPIError) Error() string
Error returns non-empty string if there was an error.
func (GenericOpenAPIError) Model ¶
func (e GenericOpenAPIError) Model() interface{}
Model returns the unpacked model of the error
type InlineObject ¶
type InvoiceItemOut ¶
type InvoiceItemOut struct {
ItemId string `json:"itemId,omitempty"`
Amount int64 `json:"amount,omitempty"`
Currency string `json:"currency,omitempty"`
Description string `json:"description,omitempty"`
Quantity int64 `json:"quantity,omitempty"`
Subscription string `json:"subscription,omitempty"`
SubscriptionItem string `json:"subscriptionItem,omitempty"`
InvoiceItemType string `json:"invoiceItemType,omitempty"`
PlanNickname string `json:"planNickname,omitempty"`
PlanDesc string `json:"planDesc,omitempty"`
PlanName string `json:"planName,omitempty"`
}
type InvoiceOut ¶
type InvoiceOut struct {
Items []InvoiceItemOut `json:"items,omitempty"`
UserId string `json:"userId,omitempty"`
InvoiceId string `json:"invoiceId,omitempty"`
IsStriped bool `json:"isStriped,omitempty"`
StripeCustomerId string `json:"stripeCustomerId,omitempty"`
AmountDue int64 `json:"amountDue,omitempty"`
AmountPaid int64 `json:"amountPaid,omitempty"`
AmountRemaining int64 `json:"amountRemaining,omitempty"`
Attempted bool `json:"attempted,omitempty"`
Currency string `json:"currency,omitempty"`
InvoiceDate time.Time `json:"invoiceDate,omitempty"`
DueDate time.Time `json:"dueDate,omitempty"`
Description string `json:"description,omitempty"`
InvoicePdf string `json:"invoicePdf,omitempty"`
PeriodStart time.Time `json:"periodStart,omitempty"`
PeriodEnd time.Time `json:"periodEnd,omitempty"`
ReceiptNumber string `json:"receiptNumber,omitempty"`
InvoiceStatus string `json:"invoiceStatus,omitempty"`
SubTotal int64 `json:"subTotal,omitempty"`
Tax int64 `json:"tax,omitempty"`
TaxPercent int64 `json:"taxPercent,omitempty"`
Total int64 `json:"total,omitempty"`
}
type JapaneseApiService ¶
type JapaneseApiService service
func (*JapaneseApiService) GenderJapaneseNameFull ¶
func (a *JapaneseApiService) GenderJapaneseNameFull(ctx context.Context, japaneseName string) (PersonalNameGenderedOut, *http.Response, error)
JapaneseApiService Infer the likely gender of a Japanese full name ex. 王晓明
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param japaneseName
@return PersonalNameGenderedOut
func (*JapaneseApiService) GenderJapaneseNameFullBatch ¶
func (a *JapaneseApiService) GenderJapaneseNameFullBatch(ctx context.Context, localVarOptionals *GenderJapaneseNameFullBatchOpts) (BatchPersonalNameGenderedOut, *http.Response, error)
func (*JapaneseApiService) GenderJapaneseNamePinyin ¶
func (a *JapaneseApiService) GenderJapaneseNamePinyin(ctx context.Context, japaneseSurname string, japaneseGivenName string) (FirstLastNameGenderedOut, *http.Response, error)
JapaneseApiService Infer the likely gender of a Japanese name in LATIN (Pinyin).
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param japaneseSurname
- @param japaneseGivenName
@return FirstLastNameGenderedOut
func (*JapaneseApiService) GenderJapaneseNamePinyinBatch ¶
func (a *JapaneseApiService) GenderJapaneseNamePinyinBatch(ctx context.Context, localVarOptionals *GenderJapaneseNamePinyinBatchOpts) (BatchFirstLastNameGenderedOut, *http.Response, error)
func (*JapaneseApiService) JapaneseNameGenderKanjiCandidatesBatch ¶
func (a *JapaneseApiService) JapaneseNameGenderKanjiCandidatesBatch(ctx context.Context, localVarOptionals *JapaneseNameGenderKanjiCandidatesBatchOpts) (BatchNameMatchCandidatesOut, *http.Response, error)
func (*JapaneseApiService) JapaneseNameKanjiCandidates ¶
func (a *JapaneseApiService) JapaneseNameKanjiCandidates(ctx context.Context, japaneseSurnameLatin string, japaneseGivenNameLatin string, knownGender string) (NameMatchCandidatesOut, *http.Response, error)
JapaneseApiService Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae - and a known gender.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param japaneseSurnameLatin
- @param japaneseGivenNameLatin
- @param knownGender
@return NameMatchCandidatesOut
func (*JapaneseApiService) JapaneseNameKanjiCandidates1 ¶
func (a *JapaneseApiService) JapaneseNameKanjiCandidates1(ctx context.Context, japaneseSurnameLatin string, japaneseGivenNameLatin string) (NameMatchCandidatesOut, *http.Response, error)
JapaneseApiService Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param japaneseSurnameLatin
- @param japaneseGivenNameLatin
@return NameMatchCandidatesOut
func (*JapaneseApiService) JapaneseNameKanjiCandidatesBatch ¶
func (a *JapaneseApiService) JapaneseNameKanjiCandidatesBatch(ctx context.Context, localVarOptionals *JapaneseNameKanjiCandidatesBatchOpts) (BatchNameMatchCandidatesOut, *http.Response, error)
func (*JapaneseApiService) JapaneseNameLatinCandidates ¶
func (a *JapaneseApiService) JapaneseNameLatinCandidates(ctx context.Context, japaneseSurnameKanji string, japaneseGivenNameKanji string) (NameMatchCandidatesOut, *http.Response, error)
JapaneseApiService Romanize japanese name, based on the name in Kanji.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param japaneseSurnameKanji
- @param japaneseGivenNameKanji
@return NameMatchCandidatesOut
func (*JapaneseApiService) JapaneseNameLatinCandidatesBatch ¶
func (a *JapaneseApiService) JapaneseNameLatinCandidatesBatch(ctx context.Context, localVarOptionals *JapaneseNameLatinCandidatesBatchOpts) (BatchNameMatchCandidatesOut, *http.Response, error)
func (*JapaneseApiService) JapaneseNameMatch ¶
func (a *JapaneseApiService) JapaneseNameMatch(ctx context.Context, japaneseSurnameLatin string, japaneseGivenNameLatin string, japaneseName string) (NameMatchedOut, *http.Response, error)
JapaneseApiService Return a score for matching Japanese name in KANJI ex. 山本 早苗 with a romanized name ex. Yamamoto Sanae
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param japaneseSurnameLatin
- @param japaneseGivenNameLatin
- @param japaneseName
@return NameMatchedOut
func (*JapaneseApiService) JapaneseNameMatchBatch ¶
func (a *JapaneseApiService) JapaneseNameMatchBatch(ctx context.Context, localVarOptionals *JapaneseNameMatchBatchOpts) (BatchNameMatchedOut, *http.Response, error)
func (*JapaneseApiService) JapaneseNameMatchFeedbackLoop ¶
func (a *JapaneseApiService) JapaneseNameMatchFeedbackLoop(ctx context.Context, japaneseSurnameLatin string, japaneseGivenNameLatin string, japaneseName string) (FeedbackLoopOut, *http.Response, error)
JapaneseApiService [CREDITS 1 UNIT] Feedback loop to better perform matching Japanese name in KANJI ex. 山本 早苗 with a romanized name ex. Yamamoto Sanae
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param japaneseSurnameLatin
- @param japaneseGivenNameLatin
- @param japaneseName
@return FeedbackLoopOut
func (*JapaneseApiService) ParseJapaneseName ¶
func (a *JapaneseApiService) ParseJapaneseName(ctx context.Context, japaneseName string) (PersonalNameParsedOut, *http.Response, error)
JapaneseApiService Infer the likely first/last name structure of a name, ex. 山本 早苗 or Yamamoto Sanae
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param japaneseName
@return PersonalNameParsedOut
func (*JapaneseApiService) ParseJapaneseNameBatch ¶
func (a *JapaneseApiService) ParseJapaneseNameBatch(ctx context.Context, localVarOptionals *ParseJapaneseNameBatchOpts) (BatchPersonalNameParsedOut, *http.Response, error)
type MatchPersonalFirstLastNameIn ¶
type MatchPersonalFirstLastNameIn struct {
Id string `json:"id,omitempty"`
Name1 FirstLastNameIn `json:"name1,omitempty"`
Name2 PersonalNameIn `json:"name2,omitempty"`
}
type NamSorCounterOut ¶
type NamSorCounterOut struct {
Counter int64 `json:"counter,omitempty"`
}
type NameMatchCandidateOut ¶
type NameMatchCandidateOut struct {
// The name matching candidate name
CandidateName string `json:"candidateName,omitempty"`
// The name matching estimated probability.
Probability float64 `json:"probability,omitempty"`
// The given name prediction score.
PredScoreGivenName float64 `json:"predScoreGivenName,omitempty"`
// The family name prediction score.
PredScoreFamilyName float64 `json:"predScoreFamilyName,omitempty"`
}
The ordered list of name matching candidates
type NameMatchCandidatesOut ¶
type NameMatchCandidatesOut struct {
Script string `json:"script,omitempty"`
Id string `json:"id,omitempty"`
// The first name (also known as given name)
FirstName string `json:"firstName,omitempty"`
// The last name (also known as family name, or surname)
LastName string `json:"lastName,omitempty"`
// The option for ordering
OrderOption string `json:"orderOption,omitempty"`
// The ordered list of name matching candidates
MatchCandidates []NameMatchCandidateOut `json:"matchCandidates,omitempty"`
}
Classified matched names
type NameMatchedOut ¶
type NameMatchedOut struct {
Script string `json:"script,omitempty"`
Id string `json:"id,omitempty"`
// The name matching status.
MatchStatus string `json:"matchStatus,omitempty"`
Score float64 `json:"score,omitempty"`
}
Classified matched names
type NameTypeBatchOpts ¶
type NameTypeGeoBatchOpts ¶
type OriginBatchOpts ¶
type ParseNameBatchOpts ¶
type ParseNameGeoBatchOpts ¶
type ParsedFullNameGeoIn ¶
type ParsedFullNameGeoIn struct {
Id string `json:"id,omitempty"`
FirstName string `json:"firstName,omitempty"`
LastName string `json:"lastName,omitempty"`
PrefixOrTitle string `json:"prefixOrTitle,omitempty"`
Suffix string `json:"suffix,omitempty"`
MiddleName string `json:"middleName,omitempty"`
CountryIso2 string `json:"countryIso2,omitempty"`
}
type ParsedFullNameIn ¶
type PersonalApiService ¶
type PersonalApiService service
func (*PersonalApiService) Corridor ¶
func (a *PersonalApiService) Corridor(ctx context.Context, countryIso2From string, firstNameFrom string, lastNameFrom string, countryIso2To string, firstNameTo string, lastNameTo string) (CorridorOut, *http.Response, error)
PersonalApiService [USES 20 UNITS PER NAME COUPLE] Infer several classifications for a cross border interaction between names (ex. remit, travel, intl com)
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param countryIso2From
- @param firstNameFrom
- @param lastNameFrom
- @param countryIso2To
- @param firstNameTo
- @param lastNameTo
@return CorridorOut
func (*PersonalApiService) CorridorBatch ¶
func (a *PersonalApiService) CorridorBatch(ctx context.Context, localVarOptionals *CorridorBatchOpts) (BatchCorridorOut, *http.Response, error)
func (*PersonalApiService) Country ¶
func (a *PersonalApiService) Country(ctx context.Context, personalNameFull string) (PersonalNameGeoOut, *http.Response, error)
PersonalApiService [USES 10 UNITS PER NAME] Infer the likely country of residence of a personal full name, or one surname. Assumes names as they are in the country of residence OR the country of origin.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param personalNameFull
@return PersonalNameGeoOut
func (*PersonalApiService) CountryBatch ¶
func (a *PersonalApiService) CountryBatch(ctx context.Context, localVarOptionals *CountryBatchOpts) (BatchPersonalNameGeoOut, *http.Response, error)
func (*PersonalApiService) Diaspora ¶
func (a *PersonalApiService) Diaspora(ctx context.Context, countryIso2 string, firstName string, lastName string) (FirstLastNameDiasporaedOut, *http.Response, error)
PersonalApiService [USES 20 UNITS PER NAME] Infer the likely ethnicity/diaspora of a personal name, given a country of residence ISO2 code (ex. US, CA, AU, NZ etc.)
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param countryIso2
- @param firstName
- @param lastName
@return FirstLastNameDiasporaedOut
func (*PersonalApiService) DiasporaBatch ¶
func (a *PersonalApiService) DiasporaBatch(ctx context.Context, localVarOptionals *DiasporaBatchOpts) (BatchFirstLastNameDiasporaedOut, *http.Response, error)
func (*PersonalApiService) Gender ¶
func (a *PersonalApiService) Gender(ctx context.Context, firstName string, lastName string) (FirstLastNameGenderedOut, *http.Response, error)
PersonalApiService Infer the likely gender of a name.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param firstName
- @param lastName
@return FirstLastNameGenderedOut
func (*PersonalApiService) GenderBatch ¶
func (a *PersonalApiService) GenderBatch(ctx context.Context, localVarOptionals *GenderBatchOpts) (BatchFirstLastNameGenderedOut, *http.Response, error)
func (*PersonalApiService) GenderFull ¶
func (a *PersonalApiService) GenderFull(ctx context.Context, fullName string) (PersonalNameGenderedOut, *http.Response, error)
PersonalApiService Infer the likely gender of a full name, ex. John H. Smith
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param fullName
@return PersonalNameGenderedOut
func (*PersonalApiService) GenderFullBatch ¶
func (a *PersonalApiService) GenderFullBatch(ctx context.Context, localVarOptionals *GenderFullBatchOpts) (BatchPersonalNameGenderedOut, *http.Response, error)
func (*PersonalApiService) GenderFullGeo ¶
func (a *PersonalApiService) GenderFullGeo(ctx context.Context, fullName string, countryIso2 string) (PersonalNameGenderedOut, *http.Response, error)
PersonalApiService Infer the likely gender of a full name, given a local context (ISO2 country code).
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param fullName
- @param countryIso2
@return PersonalNameGenderedOut
func (*PersonalApiService) GenderFullGeoBatch ¶
func (a *PersonalApiService) GenderFullGeoBatch(ctx context.Context, localVarOptionals *GenderFullGeoBatchOpts) (BatchPersonalNameGenderedOut, *http.Response, error)
func (*PersonalApiService) GenderGeo ¶
func (a *PersonalApiService) GenderGeo(ctx context.Context, firstName string, lastName string, countryIso2 string) (FirstLastNameGenderedOut, *http.Response, error)
PersonalApiService Infer the likely gender of a name, given a local context (ISO2 country code).
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param firstName
- @param lastName
- @param countryIso2
@return FirstLastNameGenderedOut
func (*PersonalApiService) GenderGeoBatch ¶
func (a *PersonalApiService) GenderGeoBatch(ctx context.Context, localVarOptionals *GenderGeoBatchOpts) (BatchFirstLastNameGenderedOut, *http.Response, error)
func (*PersonalApiService) Origin ¶
func (a *PersonalApiService) Origin(ctx context.Context, firstName string, lastName string) (FirstLastNameOriginedOut, *http.Response, error)
PersonalApiService [USES 10 UNITS PER NAME] Infer the likely country of origin of a personal name. Assumes names as they are in the country of origin. For US, CA, AU, NZ and other melting-pots : use 'diaspora' instead.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param firstName
- @param lastName
@return FirstLastNameOriginedOut
func (*PersonalApiService) OriginBatch ¶
func (a *PersonalApiService) OriginBatch(ctx context.Context, localVarOptionals *OriginBatchOpts) (BatchFirstLastNameOriginedOut, *http.Response, error)
func (*PersonalApiService) ParseName ¶
func (a *PersonalApiService) ParseName(ctx context.Context, nameFull string) (PersonalNameParsedOut, *http.Response, error)
PersonalApiService Infer the likely first/last name structure of a name, ex. John Smith or SMITH, John or SMITH; John.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param nameFull
@return PersonalNameParsedOut
func (*PersonalApiService) ParseNameBatch ¶
func (a *PersonalApiService) ParseNameBatch(ctx context.Context, localVarOptionals *ParseNameBatchOpts) (BatchPersonalNameParsedOut, *http.Response, error)
func (*PersonalApiService) ParseNameGeo ¶
func (a *PersonalApiService) ParseNameGeo(ctx context.Context, nameFull string, countryIso2 string) (PersonalNameParsedOut, *http.Response, error)
PersonalApiService Infer the likely first/last name structure of a name, ex. John Smith or SMITH, John or SMITH; John. For better accuracy, provide a geographic context.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param nameFull
- @param countryIso2
@return PersonalNameParsedOut
func (*PersonalApiService) ParseNameGeoBatch ¶
func (a *PersonalApiService) ParseNameGeoBatch(ctx context.Context, localVarOptionals *ParseNameGeoBatchOpts) (BatchPersonalNameParsedOut, *http.Response, error)
func (*PersonalApiService) UsRaceEthnicity ¶
func (a *PersonalApiService) UsRaceEthnicity(ctx context.Context, firstName string, lastName string) (FirstLastNameUsRaceEthnicityOut, *http.Response, error)
PersonalApiService [USES 10 UNITS PER NAME] Infer a US resident's likely race/ethnicity according to US Census taxonomy W_NL (white, non latino), HL (hispano latino), A (asian, non latino), B_NL (black, non latino). Optionally add header X-OPTION-USRACEETHNICITY-TAXONOMY: USRACEETHNICITY-6CLASSES for two additional classes, AI_AN (American Indian or Alaskan Native) and PI (Pacific Islander).
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param firstName
- @param lastName
@return FirstLastNameUsRaceEthnicityOut
func (*PersonalApiService) UsRaceEthnicityBatch ¶
func (a *PersonalApiService) UsRaceEthnicityBatch(ctx context.Context, localVarOptionals *UsRaceEthnicityBatchOpts) (BatchFirstLastNameUsRaceEthnicityOut, *http.Response, error)
func (*PersonalApiService) UsRaceEthnicityZIP5 ¶
func (a *PersonalApiService) UsRaceEthnicityZIP5(ctx context.Context, firstName string, lastName string, zip5Code string) (FirstLastNameUsRaceEthnicityOut, *http.Response, error)
PersonalApiService [USES 10 UNITS PER NAME] Infer a US resident's likely race/ethnicity according to US Census taxonomy, using (optional) ZIP5 code info. Output is W_NL (white, non latino), HL (hispano latino), A (asian, non latino), B_NL (black, non latino). Optionally add header X-OPTION-USRACEETHNICITY-TAXONOMY: USRACEETHNICITY-6CLASSES for two additional classes, AI_AN (American Indian or Alaskan Native) and PI (Pacific Islander).
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param firstName
- @param lastName
- @param zip5Code
@return FirstLastNameUsRaceEthnicityOut
func (*PersonalApiService) UsZipRaceEthnicityBatch ¶
func (a *PersonalApiService) UsZipRaceEthnicityBatch(ctx context.Context, localVarOptionals *UsZipRaceEthnicityBatchOpts) (BatchFirstLastNameUsRaceEthnicityOut, *http.Response, error)
type PersonalNameGenderedOut ¶
type PersonalNameGenderedOut struct {
Script string `json:"script,omitempty"`
Id string `json:"id,omitempty"`
// The input name
Name string `json:"name,omitempty"`
// Most likely gender
LikelyGender string `json:"likelyGender,omitempty"`
// Compatibility to NamSor_v1 Gender Scale M[-1..U..+1]F value
GenderScale float64 `json:"genderScale,omitempty"`
// Compatibility to NamSor_v1 Gender score value. Higher score is better, but score is not normalized. Use calibratedProbability if available.
Score float64 `json:"score,omitempty"`
// The calibrated probability for inferred gender to have been guessed correctly.
ProbabilityCalibrated float64 `json:"probabilityCalibrated,omitempty"`
}
Classified genderized names
type PersonalNameGeoIn ¶
type PersonalNameGeoOut ¶
type PersonalNameGeoOut struct {
Script string `json:"script,omitempty"`
Id string `json:"id,omitempty"`
// The input name.
Name string `json:"name,omitempty"`
// Higher score is better, but score is not normalized. Use calibratedProbability if available.
Score float64 `json:"score,omitempty"`
// Most likely country
Country string `json:"country,omitempty"`
// Second best alternative : country
CountryAlt string `json:"countryAlt,omitempty"`
// Most likely region (based on country ISO2 code)
Region string `json:"region,omitempty"`
// Most likely top region (based on country ISO2 code)
TopRegion string `json:"topRegion,omitempty"`
// Most likely sub region (based on country ISO2 code)
SubRegion string `json:"subRegion,omitempty"`
// List countries (top 10)
CountriesTop []string `json:"countriesTop,omitempty"`
// The calibrated probability for country to have been guessed correctly.
ProbabilityCalibrated float64 `json:"probabilityCalibrated,omitempty"`
// The calibrated probability for country OR countryAlt to have been guessed correctly.
ProbabilityAltCalibrated float64 `json:"probabilityAltCalibrated,omitempty"`
}
Classified geo names
type PersonalNameIn ¶
type PersonalNameParsedOut ¶
type PersonalNameParsedOut struct {
Script string `json:"script,omitempty"`
Id string `json:"id,omitempty"`
// The input name
Name string `json:"name,omitempty"`
// Name parsing is addressed as a classification problem, for example FN1LN1 means a first then last name order.
NameParserType string `json:"nameParserType,omitempty"`
// Second best alternative parsing. Name parsing is addressed as a classification problem, for example FN1LN1 means a first then last name order.
NameParserTypeAlt string `json:"nameParserTypeAlt,omitempty"`
FirstLastName FirstLastNameOut `json:"firstLastName,omitempty"`
// Higher score is better, but score is not normalized. Use calibratedProbability if available.
Score float64 `json:"score,omitempty"`
}
type PhoneCodeBatchOpts ¶
type PhoneCodeGeoBatchOpts ¶
type ProperNounCategorizedOut ¶
type ProperNounCategorizedOut struct {
Script string `json:"script,omitempty"`
Id string `json:"id,omitempty"`
// The input name
Name string `json:"name,omitempty"`
// The most likely common name type
CommonType string `json:"commonType,omitempty"`
// Best alternative for : The most likely common name type
CommonTypeAlt string `json:"commonTypeAlt,omitempty"`
// Higher score is better, but score is not normalized. Use calibratedProbability if available.
Score float64 `json:"score,omitempty"`
}
Classified typed proper names
type RomanizedNameOut ¶
type RomanizedNameOut struct {
Script string `json:"script,omitempty"`
Id string `json:"id,omitempty"`
LatinName string `json:"latinName,omitempty"`
OriginalName string `json:"originalName,omitempty"`
SourceLanguage string `json:"sourceLanguage,omitempty"`
TargetLanguage string `json:"targetLanguage,omitempty"`
SourceScript string `json:"sourceScript,omitempty"`
TargetScript string `json:"targetScript,omitempty"`
Score float64 `json:"score,omitempty"`
Category string `json:"category,omitempty"`
}
type SocialApiService ¶
type SocialApiService service
func (*SocialApiService) PhoneCode ¶
func (a *SocialApiService) PhoneCode(ctx context.Context, firstName string, lastName string, phoneNumber string) (FirstLastNamePhoneCodedOut, *http.Response, error)
SocialApiService [USES 11 UNITS PER NAME] Infer the likely country and phone prefix, given a personal name and formatted / unformatted phone number.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param firstName
- @param lastName
- @param phoneNumber
@return FirstLastNamePhoneCodedOut
func (*SocialApiService) PhoneCodeBatch ¶
func (a *SocialApiService) PhoneCodeBatch(ctx context.Context, localVarOptionals *PhoneCodeBatchOpts) (BatchFirstLastNamePhoneCodedOut, *http.Response, error)
func (*SocialApiService) PhoneCodeGeo ¶
func (a *SocialApiService) PhoneCodeGeo(ctx context.Context, firstName string, lastName string, phoneNumber string, countryIso2 string) (FirstLastNamePhoneCodedOut, *http.Response, error)
SocialApiService [USES 11 UNITS PER NAME] Infer the likely phone prefix, given a personal name and formatted / unformatted phone number, with a local context (ISO2 country of residence).
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param firstName
- @param lastName
- @param phoneNumber
- @param countryIso2
@return FirstLastNamePhoneCodedOut
func (*SocialApiService) PhoneCodeGeoBatch ¶
func (a *SocialApiService) PhoneCodeGeoBatch(ctx context.Context, localVarOptionals *PhoneCodeGeoBatchOpts) (BatchFirstLastNamePhoneCodedOut, *http.Response, error)
func (*SocialApiService) PhoneCodeGeoFeedbackLoop ¶
func (a *SocialApiService) PhoneCodeGeoFeedbackLoop(ctx context.Context, firstName string, lastName string, phoneNumber string, phoneNumberE164 string, countryIso2 string) (FirstLastNamePhoneCodedOut, *http.Response, error)
SocialApiService [CREDITS 1 UNIT] Feedback loop to better infer the likely phone prefix, given a personal name and formatted / unformatted phone number, with a local context (ISO2 country of residence).
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param firstName
- @param lastName
- @param phoneNumber
- @param phoneNumberE164
- @param countryIso2
@return FirstLastNamePhoneCodedOut
type SoftwareVersionOut ¶
type SoftwareVersionOut struct {
// The software version
SoftwareNameAndVersion string `json:"softwareNameAndVersion,omitempty"`
// The software version major minor build
SoftwareVersion []int32 `json:"softwareVersion,omitempty"`
}
The software version.
type SourceDetailedMetricsOut ¶
type SourceDetailedMetricsOut struct {
ClassifierName string `json:"classifierName,omitempty"`
Source ApiKeyOut `json:"source,omitempty"`
AiEstimateTotal int64 `json:"aiEstimateTotal,omitempty"`
AiEstimatePrecision float64 `json:"aiEstimatePrecision,omitempty"`
AiEstimateRecall float64 `json:"aiEstimateRecall,omitempty"`
MetricTimeStamp int64 `json:"metricTimeStamp,omitempty"`
AiStartTime int64 `json:"aiStartTime,omitempty"`
AiLearnTotal int64 `json:"aiLearnTotal,omitempty"`
SnapshotDate int64 `json:"snapshotDate,omitempty"`
ExpectedClassMetrics []ExpectedClassMetricsOut `json:"expectedClassMetrics,omitempty"`
}
Simple metrics on source, with details by classifier.
type SourceMetricsOut ¶
type SourceMetricsOut struct {
ClassifierName string `json:"classifierName,omitempty"`
Source ApiKeyOut `json:"source,omitempty"`
AiEstimateTotal int64 `json:"aiEstimateTotal,omitempty"`
AiEstimatePrecision float64 `json:"aiEstimatePrecision,omitempty"`
AiEstimateRecall float64 `json:"aiEstimateRecall,omitempty"`
MetricTimeStamp int64 `json:"metricTimeStamp,omitempty"`
AiStartTime int64 `json:"aiStartTime,omitempty"`
AiLearnTotal int64 `json:"aiLearnTotal,omitempty"`
SnapshotDate int64 `json:"snapshotDate,omitempty"`
}
Simple metrics on a classifier, for a given source
type StripeCardOut ¶
type StripeCustomerOut ¶
type StripeCustomerOut struct {
StripeCustomerId string `json:"stripeCustomerId,omitempty"`
SourceCountry string `json:"sourceCountry,omitempty"`
SourceCurrency string `json:"sourceCurrency,omitempty"`
StripedCards []StripeCardOut `json:"stripedCards,omitempty"`
}
type SystemMetricsOut ¶
type SystemMetricsOut struct {
CacheMetrics []CacheMetricsOut `json:"cacheMetrics,omitempty"`
ClassifierMetrics []ClassifierMetricsOut `json:"classifierMetrics,omitempty"`
SourceMetrics []SourceMetricsOut `json:"sourceMetrics,omitempty"`
TotalMem int64 `json:"totalMem,omitempty"`
FreeMem int64 `json:"freeMem,omitempty"`
MaxMem int64 `json:"maxMem,omitempty"`
}
type UserInfoOut ¶
type UserInfoOut struct {
Uid string `json:"uid,omitempty"`
Email string `json:"email,omitempty"`
PhoneNumber string `json:"phoneNumber,omitempty"`
EmailVerified bool `json:"emailVerified,omitempty"`
DisplayName string `json:"displayName,omitempty"`
PhotoUrl string `json:"photoUrl,omitempty"`
Disabled bool `json:"disabled,omitempty"`
FirstKnownIpAddress string `json:"firstKnownIpAddress,omitempty"`
ProviderId string `json:"providerId,omitempty"`
TimeStamp int64 `json:"timeStamp,omitempty"`
VerifyToken string `json:"verifyToken,omitempty"`
ApiKey string `json:"apiKey,omitempty"`
StripePerishableKey string `json:"stripePerishableKey,omitempty"`
StripeCustomerId string `json:"stripeCustomerId,omitempty"`
OtherInfos []UserInfoOut `json:"otherInfos,omitempty"`
}
Source Files
¶
- api_admin.go
- api_chinese.go
- api_general.go
- api_japanese.go
- api_personal.go
- api_social.go
- client.go
- configuration.go
- model_api_billing_period_usage_out.go
- model_api_classifier_out.go
- model_api_classifier_taxonomy_out.go
- model_api_classifiers_status_out.go
- model_api_counter_v2_out.go
- model_api_key_out.go
- model_api_period_usage_out.go
- model_api_plan_out.go
- model_api_plan_subscription_out.go
- model_api_plans_out.go
- model_api_service_out.go
- model_api_services_out.go
- model_api_usage_aggregated_out.go
- model_api_usage_history_out.go
- model_batch_corridor_in.go
- model_batch_corridor_out.go
- model_batch_first_last_name_diasporaed_out.go
- model_batch_first_last_name_gender_in.go
- model_batch_first_last_name_gendered_out.go
- model_batch_first_last_name_geo_in.go
- model_batch_first_last_name_geo_zipped_in.go
- model_batch_first_last_name_in.go
- model_batch_first_last_name_origined_out.go
- model_batch_first_last_name_phone_coded_out.go
- model_batch_first_last_name_phone_number_geo_in.go
- model_batch_first_last_name_phone_number_in.go
- model_batch_first_last_name_us_race_ethnicity_out.go
- model_batch_match_personal_first_last_name_in.go
- model_batch_name_geo_in.go
- model_batch_name_in.go
- model_batch_name_match_candidates_out.go
- model_batch_name_matched_out.go
- model_batch_parsed_full_name_geo_in.go
- model_batch_parsed_full_name_in.go
- model_batch_personal_name_gendered_out.go
- model_batch_personal_name_geo_in.go
- model_batch_personal_name_geo_out.go
- model_batch_personal_name_in.go
- model_batch_personal_name_parsed_out.go
- model_batch_proper_noun_categorized_out.go
- model_billing_history_out.go
- model_billing_info_in_out.go
- model_cache_metrics_out.go
- model_classifier_metrics_out.go
- model_corridor_in.go
- model_corridor_out.go
- model_currencies_out.go
- model_deploy_ui_out.go
- model_expected_class_metrics_out.go
- model_feedback_loop_out.go
- model_first_last_name_diasporaed_out.go
- model_first_last_name_gender_in.go
- model_first_last_name_gendered_out.go
- model_first_last_name_geo_in.go
- model_first_last_name_geo_zipped_in.go
- model_first_last_name_in.go
- model_first_last_name_origined_out.go
- model_first_last_name_out.go
- model_first_last_name_phone_coded_out.go
- model_first_last_name_phone_number_geo_in.go
- model_first_last_name_phone_number_in.go
- model_first_last_name_us_race_ethnicity_out.go
- model_inline_object.go
- model_invoice_item_out.go
- model_invoice_out.go
- model_match_personal_first_last_name_in.go
- model_nam_sor_counter_out.go
- model_name_geo_in.go
- model_name_in.go
- model_name_match_candidate_out.go
- model_name_match_candidates_out.go
- model_name_matched_out.go
- model_parsed_full_name_geo_in.go
- model_parsed_full_name_in.go
- model_personal_name_gendered_out.go
- model_personal_name_geo_in.go
- model_personal_name_geo_out.go
- model_personal_name_in.go
- model_personal_name_parsed_out.go
- model_proper_noun_categorized_out.go
- model_romanized_name_out.go
- model_software_version_out.go
- model_source_detailed_metrics_out.go
- model_source_metrics_out.go
- model_stripe_card_out.go
- model_stripe_customer_out.go
- model_system_metrics_out.go
- model_user_info_out.go
- response.go