@getlatedev/node 0.2.1700 → 0.2.1702
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/index.d.mts +99 -1
- package/dist/index.d.ts +99 -1
- package/dist/index.js +8 -1
- package/dist/index.mjs +8 -1
- package/package.json +1 -1
- package/src/client.ts +2 -0
- package/src/generated/sdk.gen.ts +17 -1
- package/src/generated/types.gen.ts +100 -0
|
@@ -35306,6 +35306,13 @@ export type GetConnectUrlData = {
|
|
|
35306
35306
|
*
|
|
35307
35307
|
*/
|
|
35308
35308
|
brandName?: string;
|
|
35309
|
+
/**
|
|
35310
|
+
* WhatsApp with `signup=hosted` only; ignored on other flows. The number (E.164) the user must connect. If they pick a different number in Meta's popup, the hosted page ends with a 409 `NUMBER_MISMATCH` naming the number they picked, and nothing is saved.
|
|
35311
|
+
*
|
|
35312
|
+
* Use it to reconnect a known number safely. For a number bought from Zernio, the hosted page already expects that number and this value is ignored.
|
|
35313
|
+
*
|
|
35314
|
+
*/
|
|
35315
|
+
expectedPhoneNumber?: string;
|
|
35309
35316
|
/**
|
|
35310
35317
|
* Only connect if the login lands on this platform account. Any other account ends the flow with `error=account_mismatch` (a 409 `account_mismatch` on POST /v1/connect/instagram/select-account) and nothing is written.
|
|
35311
35318
|
*
|
|
@@ -39595,6 +39602,99 @@ export type ConnectOpenAiAdsCredentialsError = (ErrorResponse | unknown | {
|
|
|
39595
39602
|
};
|
|
39596
39603
|
});
|
|
39597
39604
|
|
|
39605
|
+
export type ConnectAppLovinAdsCredentialsData = {
|
|
39606
|
+
body: {
|
|
39607
|
+
/**
|
|
39608
|
+
* Conversion API key from the Keys page of Axon Ads Manager.
|
|
39609
|
+
*/
|
|
39610
|
+
apiKey: string;
|
|
39611
|
+
/**
|
|
39612
|
+
* Event Key from the Keys page of Axon Ads Manager: 8 to 128 letters, digits, dots, dashes or underscores.
|
|
39613
|
+
*/
|
|
39614
|
+
eventKey: string;
|
|
39615
|
+
/**
|
|
39616
|
+
* Optional display name for the account.
|
|
39617
|
+
*/
|
|
39618
|
+
name?: string;
|
|
39619
|
+
/**
|
|
39620
|
+
* Your Zernio profile ID
|
|
39621
|
+
*/
|
|
39622
|
+
profileId: string;
|
|
39623
|
+
/**
|
|
39624
|
+
* Optional state passthrough for the connect flow.
|
|
39625
|
+
*/
|
|
39626
|
+
state?: string;
|
|
39627
|
+
/**
|
|
39628
|
+
* Optional URL to redirect to after a successful connection, echoed back as redirectUrl.
|
|
39629
|
+
*/
|
|
39630
|
+
redirect_url?: string;
|
|
39631
|
+
};
|
|
39632
|
+
};
|
|
39633
|
+
|
|
39634
|
+
export type ConnectAppLovinAdsCredentialsResponse = ({
|
|
39635
|
+
accountId?: string;
|
|
39636
|
+
eventKey?: string;
|
|
39637
|
+
accountName?: string;
|
|
39638
|
+
redirectUrl?: string;
|
|
39639
|
+
});
|
|
39640
|
+
|
|
39641
|
+
export type ConnectAppLovinAdsCredentialsError = (ErrorResponse | unknown | {
|
|
39642
|
+
/**
|
|
39643
|
+
* Human-readable error message suitable for end-user display.
|
|
39644
|
+
*/
|
|
39645
|
+
error: string;
|
|
39646
|
+
/**
|
|
39647
|
+
* Machine-readable error code. Stable across versions.
|
|
39648
|
+
*/
|
|
39649
|
+
code: 'PAYMENT_REQUIRED';
|
|
39650
|
+
/**
|
|
39651
|
+
* Discriminator for which gate fired.
|
|
39652
|
+
*/
|
|
39653
|
+
reason: 'free_tier_exceeded' | 'twitter_passthrough' | 'enterprise_required' | 'card_verification_required';
|
|
39654
|
+
/**
|
|
39655
|
+
* Link to the relevant documentation page.
|
|
39656
|
+
*/
|
|
39657
|
+
documentation_url?: string;
|
|
39658
|
+
/**
|
|
39659
|
+
* Deep-link to send the end-user to. For
|
|
39660
|
+
* `free_tier_exceeded` and `twitter_passthrough` this opens
|
|
39661
|
+
* the add-payment-method drawer on the Zernio billing page.
|
|
39662
|
+
* For `enterprise_required` this is the Zernio enterprise
|
|
39663
|
+
* contact page.
|
|
39664
|
+
*
|
|
39665
|
+
*/
|
|
39666
|
+
dashboard_url?: string;
|
|
39667
|
+
/**
|
|
39668
|
+
* Structured context for SDK clients that want to render their own UX. Keys vary by `reason`.
|
|
39669
|
+
*/
|
|
39670
|
+
details?: {
|
|
39671
|
+
/**
|
|
39672
|
+
* How many accounts the free tier allows. Only set when reason=free_tier_exceeded.
|
|
39673
|
+
*/
|
|
39674
|
+
free_tier_account_limit?: number;
|
|
39675
|
+
/**
|
|
39676
|
+
* How many accounts the team currently has connected. Set when reason=free_tier_exceeded or reason=enterprise_required.
|
|
39677
|
+
*/
|
|
39678
|
+
current_account_count?: number;
|
|
39679
|
+
/**
|
|
39680
|
+
* Whether the team currently has a card on file in Stripe. Set when reason=free_tier_exceeded or reason=twitter_passthrough.
|
|
39681
|
+
*/
|
|
39682
|
+
has_payment_method?: boolean;
|
|
39683
|
+
/**
|
|
39684
|
+
* One-time card verification charge in USD cents, credited to usage. Only set when reason=card_verification_required.
|
|
39685
|
+
*/
|
|
39686
|
+
verification_amount_cents?: number;
|
|
39687
|
+
/**
|
|
39688
|
+
* The negotiated connected-account cap from the
|
|
39689
|
+
* team's enterprise contract. Self-service teams
|
|
39690
|
+
* have no cap and never receive this reason. Only
|
|
39691
|
+
* set when reason=enterprise_required.
|
|
39692
|
+
*
|
|
39693
|
+
*/
|
|
39694
|
+
effective_account_limit?: number;
|
|
39695
|
+
};
|
|
39696
|
+
});
|
|
39697
|
+
|
|
39598
39698
|
export type ConnectWhopAdsCredentialsData = {
|
|
39599
39699
|
body: {
|
|
39600
39700
|
/**
|