@getlatedev/node 0.2.941 → 0.2.942
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 +3 -0
- package/dist/index.d.mts +206 -16
- package/dist/index.d.ts +206 -16
- package/dist/index.js +28 -1
- package/dist/index.mjs +28 -1
- package/package.json +1 -1
- package/src/client.ts +12 -0
- package/src/generated/sdk.gen.ts +34 -1
- package/src/generated/types.gen.ts +209 -15
|
@@ -4737,6 +4737,69 @@ export type GoogleAdLabelAssignments = {
|
|
|
4737
4737
|
keywordIds?: Array<(string)>;
|
|
4738
4738
|
};
|
|
4739
4739
|
|
|
4740
|
+
/**
|
|
4741
|
+
* A Google Ads account inside a manager tree.
|
|
4742
|
+
*/
|
|
4743
|
+
export type GoogleAdsHierarchyClient = {
|
|
4744
|
+
/**
|
|
4745
|
+
* Native Google Ads customer id, digits only.
|
|
4746
|
+
*/
|
|
4747
|
+
customerId?: string;
|
|
4748
|
+
/**
|
|
4749
|
+
* Null for a pending invitation.
|
|
4750
|
+
*/
|
|
4751
|
+
name?: (string) | null;
|
|
4752
|
+
currency?: (string) | null;
|
|
4753
|
+
timeZone?: (string) | null;
|
|
4754
|
+
/**
|
|
4755
|
+
* True for a sub-manager account.
|
|
4756
|
+
*/
|
|
4757
|
+
manager?: boolean;
|
|
4758
|
+
testAccount?: boolean;
|
|
4759
|
+
/**
|
|
4760
|
+
* Hidden in the manager's Google Ads UI.
|
|
4761
|
+
*/
|
|
4762
|
+
hidden?: boolean;
|
|
4763
|
+
/**
|
|
4764
|
+
* Distance from the root (1 = direct client of the root).
|
|
4765
|
+
*/
|
|
4766
|
+
level?: number;
|
|
4767
|
+
/**
|
|
4768
|
+
* Google customer status: ENABLED, CANCELED, SUSPENDED or CLOSED. Null for a pending invitation.
|
|
4769
|
+
*/
|
|
4770
|
+
status?: (string) | null;
|
|
4771
|
+
/**
|
|
4772
|
+
* Direct manager of this account. Null only when more than 50 managers under the root were skipped.
|
|
4773
|
+
*/
|
|
4774
|
+
parentCustomerId?: (string) | null;
|
|
4775
|
+
/**
|
|
4776
|
+
* Id of the link to the parent, used by PATCH /v1/ads/accounts/manager-links.
|
|
4777
|
+
*/
|
|
4778
|
+
managerLinkId?: (string) | null;
|
|
4779
|
+
linkStatus?: ('ACTIVE' | 'PENDING') | null;
|
|
4780
|
+
};
|
|
4781
|
+
|
|
4782
|
+
export type linkStatus = 'ACTIVE' | 'PENDING';
|
|
4783
|
+
|
|
4784
|
+
export type GoogleAdsManagerLink = {
|
|
4785
|
+
managerCustomerId?: string;
|
|
4786
|
+
clientCustomerId?: string;
|
|
4787
|
+
/**
|
|
4788
|
+
* Null on a validateOnly invitation, where Google creates nothing.
|
|
4789
|
+
*/
|
|
4790
|
+
managerLinkId?: (string) | null;
|
|
4791
|
+
/**
|
|
4792
|
+
* Status the link has after this call.
|
|
4793
|
+
*/
|
|
4794
|
+
status?: 'PENDING' | 'ACTIVE' | 'REFUSED' | 'CANCELED' | 'INACTIVE';
|
|
4795
|
+
validateOnly?: boolean;
|
|
4796
|
+
};
|
|
4797
|
+
|
|
4798
|
+
/**
|
|
4799
|
+
* Status the link has after this call.
|
|
4800
|
+
*/
|
|
4801
|
+
export type status12 = 'PENDING' | 'ACTIVE' | 'REFUSED' | 'CANCELED' | 'INACTIVE';
|
|
4802
|
+
|
|
4740
4803
|
/**
|
|
4741
4804
|
* Link one asset to the asset group. Send exactly one of asset (an existing asset), text, imageUrl or youtubeVideoId (new content, created in the same request).
|
|
4742
4805
|
*/
|
|
@@ -5244,7 +5307,7 @@ export type GoogleRecommendationResult = {
|
|
|
5244
5307
|
error?: string;
|
|
5245
5308
|
};
|
|
5246
5309
|
|
|
5247
|
-
export type
|
|
5310
|
+
export type status13 = 'applied' | 'dismissed' | 'failed';
|
|
5248
5311
|
|
|
5249
5312
|
export type GoogleRsaDescription = {
|
|
5250
5313
|
text: string;
|
|
@@ -5376,7 +5439,7 @@ export type kind = 'phone' | 'email';
|
|
|
5376
5439
|
|
|
5377
5440
|
export type region = 'US' | 'GB';
|
|
5378
5441
|
|
|
5379
|
-
export type
|
|
5442
|
+
export type status14 = 'ordering' | 'activating' | 'active' | 'suspended' | 'canceled' | 'failed';
|
|
5380
5443
|
|
|
5381
5444
|
/**
|
|
5382
5445
|
* Attachment snapshot inside an edit-history entry.
|
|
@@ -5448,7 +5511,7 @@ export type InboxWebhookConversation = {
|
|
|
5448
5511
|
contactId?: string;
|
|
5449
5512
|
};
|
|
5450
5513
|
|
|
5451
|
-
export type
|
|
5514
|
+
export type status15 = 'active' | 'archived';
|
|
5452
5515
|
|
|
5453
5516
|
/**
|
|
5454
5517
|
* The conversation object included in conversation lifecycle webhook payloads (conversation.started, conversation.control_changed).
|
|
@@ -7035,7 +7098,7 @@ export type OwnedPhoneNumber = {
|
|
|
7035
7098
|
}>;
|
|
7036
7099
|
};
|
|
7037
7100
|
|
|
7038
|
-
export type
|
|
7101
|
+
export type status16 = 'pending_payment' | 'pending_regulatory' | 'regulatory_declined' | 'provisioning' | 'verifying' | 'active' | 'suspended' | 'releasing' | 'released';
|
|
7039
7102
|
|
|
7040
7103
|
export type metaVerificationStatus = 'pending' | 'code_requested' | 'verified' | 'expired';
|
|
7041
7104
|
|
|
@@ -7160,7 +7223,7 @@ export type PlatformAnalytics = {
|
|
|
7160
7223
|
errorMessage?: (string) | null;
|
|
7161
7224
|
};
|
|
7162
7225
|
|
|
7163
|
-
export type
|
|
7226
|
+
export type status17 = 'published' | 'failed';
|
|
7164
7227
|
|
|
7165
7228
|
/**
|
|
7166
7229
|
* Sync state of analytics for this platform
|
|
@@ -7562,7 +7625,7 @@ export type Product = {
|
|
|
7562
7625
|
|
|
7563
7626
|
export type platform8 = 'shopify';
|
|
7564
7627
|
|
|
7565
|
-
export type
|
|
7628
|
+
export type status18 = 'active' | 'draft' | 'archived';
|
|
7566
7629
|
|
|
7567
7630
|
export type ProductImage = {
|
|
7568
7631
|
url?: string;
|
|
@@ -8838,7 +8901,7 @@ export type UploadTokenResponse = {
|
|
|
8838
8901
|
status?: 'pending' | 'completed' | 'expired';
|
|
8839
8902
|
};
|
|
8840
8903
|
|
|
8841
|
-
export type
|
|
8904
|
+
export type status19 = 'pending' | 'completed' | 'expired';
|
|
8842
8905
|
|
|
8843
8906
|
export type UploadTokenStatusResponse = {
|
|
8844
8907
|
token?: string;
|
|
@@ -9337,7 +9400,7 @@ export type Verification = {
|
|
|
9337
9400
|
resend?: boolean;
|
|
9338
9401
|
};
|
|
9339
9402
|
|
|
9340
|
-
export type
|
|
9403
|
+
export type status20 = 'pending' | 'approved' | 'expired' | 'max_attempts_reached' | 'canceled' | 'delivery_failed';
|
|
9341
9404
|
|
|
9342
9405
|
export type channel4 = 'sms';
|
|
9343
9406
|
|
|
@@ -9464,7 +9527,7 @@ export type WebhookLog = {
|
|
|
9464
9527
|
/**
|
|
9465
9528
|
* Delivery outcome
|
|
9466
9529
|
*/
|
|
9467
|
-
export type
|
|
9530
|
+
export type status21 = 'success' | 'failed';
|
|
9468
9531
|
|
|
9469
9532
|
/**
|
|
9470
9533
|
* Webhook payload for `account.ads.initial_sync_completed` events.
|
|
@@ -9576,7 +9639,7 @@ export type event = 'account.ads.initial_sync_completed';
|
|
|
9576
9639
|
/**
|
|
9577
9640
|
* Overall outcome of the initial sync.
|
|
9578
9641
|
*/
|
|
9579
|
-
export type
|
|
9642
|
+
export type status22 = 'success' | 'failure';
|
|
9580
9643
|
|
|
9581
9644
|
/**
|
|
9582
9645
|
* Stable category for UX branching. New values may be added; existing ones are
|
|
@@ -11529,7 +11592,7 @@ export type event22 = 'post.platform.published' | 'post.platform.failed' | 'post
|
|
|
11529
11592
|
/**
|
|
11530
11593
|
* Terminal status this event fires on. Matches the event suffix.
|
|
11531
11594
|
*/
|
|
11532
|
-
export type
|
|
11595
|
+
export type status23 = 'published' | 'failed' | 'deleted';
|
|
11533
11596
|
|
|
11534
11597
|
/**
|
|
11535
11598
|
* Webhook payload for reaction received events (WhatsApp, Telegram, Slack, Instagram, Facebook Messenger, TikTok)
|
|
@@ -11795,7 +11858,7 @@ export type platform15 = 'whatsapp';
|
|
|
11795
11858
|
/**
|
|
11796
11859
|
* Normalized from Meta's `decision` (REJECTED -> DECLINED, DEFERRED -> PENDING_REVIEW; the review is still open on DEFERRED, not a rejection).
|
|
11797
11860
|
*/
|
|
11798
|
-
export type
|
|
11861
|
+
export type status24 = 'APPROVED' | 'DECLINED' | 'PENDING_REVIEW';
|
|
11799
11862
|
|
|
11800
11863
|
/**
|
|
11801
11864
|
* Webhook payload for the `whatsapp.template.category_updated` event.
|
|
@@ -11944,7 +12007,7 @@ export type event30 = 'whatsapp.template.status_updated';
|
|
|
11944
12007
|
* request before the template is actually removed.
|
|
11945
12008
|
*
|
|
11946
12009
|
*/
|
|
11947
|
-
export type
|
|
12010
|
+
export type status25 = 'APPROVED' | 'REJECTED' | 'PENDING' | 'PAUSED' | 'DISABLED' | 'IN_APPEAL' | 'PENDING_DELETION';
|
|
11948
12011
|
|
|
11949
12012
|
export type WhatsAppBodyComponent = {
|
|
11950
12013
|
type: 'body';
|
|
@@ -12098,7 +12161,7 @@ export type WhatsAppSandboxSession = {
|
|
|
12098
12161
|
* list responses.
|
|
12099
12162
|
*
|
|
12100
12163
|
*/
|
|
12101
|
-
export type
|
|
12164
|
+
export type status26 = 'pending' | 'active';
|
|
12102
12165
|
|
|
12103
12166
|
export type WhatsAppTemplateButton = {
|
|
12104
12167
|
type: 'quick_reply' | 'url' | 'phone_number' | 'otp' | 'copy_code' | 'flow' | 'mpm' | 'catalog';
|
|
@@ -12256,7 +12319,7 @@ export type WorkflowExecutionEvent = {
|
|
|
12256
12319
|
|
|
12257
12320
|
export type action2 = 'execution_started' | 'execution_completed' | 'execution_exited' | 'execution_paused' | 'execution_resumed' | 'node_started' | 'node_completed' | 'node_failed' | 'node_skipped';
|
|
12258
12321
|
|
|
12259
|
-
export type
|
|
12322
|
+
export type status27 = 'success' | 'failed' | 'pending';
|
|
12260
12323
|
|
|
12261
12324
|
/**
|
|
12262
12325
|
* A node in a workflow graph. `config` shape depends on `type`.
|
|
@@ -40731,6 +40794,137 @@ export type RemoveAccountStructuredSnippetError = (ErrorResponse | {
|
|
|
40731
40794
|
error?: string;
|
|
40732
40795
|
} | unknown);
|
|
40733
40796
|
|
|
40797
|
+
export type GetAdAccountHierarchyData = {
|
|
40798
|
+
query: {
|
|
40799
|
+
/**
|
|
40800
|
+
* Google ads SocialAccount id.
|
|
40801
|
+
*/
|
|
40802
|
+
accountId: string;
|
|
40803
|
+
/**
|
|
40804
|
+
* Only return the tree rooted at this customer id (digits only). It must be an account the Google user accesses directly. Omit to list every tree.
|
|
40805
|
+
*/
|
|
40806
|
+
adAccountId?: string;
|
|
40807
|
+
/**
|
|
40808
|
+
* Alias of adAccountId, kept for consistency with the other Google Ads account endpoints.
|
|
40809
|
+
* @deprecated
|
|
40810
|
+
*/
|
|
40811
|
+
customerId?: string;
|
|
40812
|
+
};
|
|
40813
|
+
};
|
|
40814
|
+
|
|
40815
|
+
export type GetAdAccountHierarchyResponse = ({
|
|
40816
|
+
accountId?: string;
|
|
40817
|
+
roots?: Array<{
|
|
40818
|
+
/**
|
|
40819
|
+
* Native Google Ads customer id, digits only.
|
|
40820
|
+
*/
|
|
40821
|
+
customerId?: string;
|
|
40822
|
+
name?: (string) | null;
|
|
40823
|
+
/**
|
|
40824
|
+
* ISO 4217 code.
|
|
40825
|
+
*/
|
|
40826
|
+
currency?: (string) | null;
|
|
40827
|
+
/**
|
|
40828
|
+
* IANA time zone, e.g. Europe/Madrid.
|
|
40829
|
+
*/
|
|
40830
|
+
timeZone?: (string) | null;
|
|
40831
|
+
/**
|
|
40832
|
+
* True for a manager (MCC) account.
|
|
40833
|
+
*/
|
|
40834
|
+
manager?: boolean;
|
|
40835
|
+
testAccount?: boolean;
|
|
40836
|
+
/**
|
|
40837
|
+
* Google customer status: ENABLED, CANCELED, SUSPENDED or CLOSED.
|
|
40838
|
+
*/
|
|
40839
|
+
status?: (string) | null;
|
|
40840
|
+
/**
|
|
40841
|
+
* Managers linked to this account, ACTIVE or PENDING.
|
|
40842
|
+
*/
|
|
40843
|
+
managerLinks?: Array<{
|
|
40844
|
+
managerCustomerId?: string;
|
|
40845
|
+
managerLinkId?: string;
|
|
40846
|
+
status?: 'ACTIVE' | 'PENDING';
|
|
40847
|
+
}>;
|
|
40848
|
+
/**
|
|
40849
|
+
* Every account under this root at any depth, in Google's order, followed by pending invitations.
|
|
40850
|
+
*/
|
|
40851
|
+
clients?: Array<GoogleAdsHierarchyClient>;
|
|
40852
|
+
}>;
|
|
40853
|
+
unavailable?: Array<{
|
|
40854
|
+
customerId?: string;
|
|
40855
|
+
/**
|
|
40856
|
+
* Google's error message and code.
|
|
40857
|
+
*/
|
|
40858
|
+
reason?: string;
|
|
40859
|
+
}>;
|
|
40860
|
+
truncated?: boolean;
|
|
40861
|
+
/**
|
|
40862
|
+
* When this data was fetched from Google. Null on a live read.
|
|
40863
|
+
*/
|
|
40864
|
+
cachedAt?: (string) | null;
|
|
40865
|
+
/**
|
|
40866
|
+
* True when Google's quota was exhausted and this is the last successful fetch.
|
|
40867
|
+
*/
|
|
40868
|
+
stale?: boolean;
|
|
40869
|
+
});
|
|
40870
|
+
|
|
40871
|
+
export type GetAdAccountHierarchyError = (ErrorResponse | {
|
|
40872
|
+
error?: string;
|
|
40873
|
+
} | unknown);
|
|
40874
|
+
|
|
40875
|
+
export type InviteAdAccountToManagerData = {
|
|
40876
|
+
body: {
|
|
40877
|
+
/**
|
|
40878
|
+
* Google ads SocialAccount id.
|
|
40879
|
+
*/
|
|
40880
|
+
accountId: string;
|
|
40881
|
+
/**
|
|
40882
|
+
* Manager customer id, digits only.
|
|
40883
|
+
*/
|
|
40884
|
+
managerCustomerId: string;
|
|
40885
|
+
/**
|
|
40886
|
+
* Client customer id to invite, digits only.
|
|
40887
|
+
*/
|
|
40888
|
+
clientCustomerId: string;
|
|
40889
|
+
validateOnly?: boolean;
|
|
40890
|
+
};
|
|
40891
|
+
};
|
|
40892
|
+
|
|
40893
|
+
export type InviteAdAccountToManagerResponse = (GoogleAdsManagerLink);
|
|
40894
|
+
|
|
40895
|
+
export type InviteAdAccountToManagerError = (ErrorResponse | {
|
|
40896
|
+
error?: string;
|
|
40897
|
+
} | unknown);
|
|
40898
|
+
|
|
40899
|
+
export type UpdateAdAccountManagerLinkData = {
|
|
40900
|
+
body: {
|
|
40901
|
+
/**
|
|
40902
|
+
* Google ads SocialAccount id.
|
|
40903
|
+
*/
|
|
40904
|
+
accountId: string;
|
|
40905
|
+
/**
|
|
40906
|
+
* Manager customer id, digits only.
|
|
40907
|
+
*/
|
|
40908
|
+
managerCustomerId: string;
|
|
40909
|
+
/**
|
|
40910
|
+
* Client customer id, digits only.
|
|
40911
|
+
*/
|
|
40912
|
+
clientCustomerId: string;
|
|
40913
|
+
/**
|
|
40914
|
+
* Numeric link id from GET /v1/ads/accounts/hierarchy.
|
|
40915
|
+
*/
|
|
40916
|
+
managerLinkId: string;
|
|
40917
|
+
action: 'accept' | 'decline' | 'cancel' | 'unlink';
|
|
40918
|
+
validateOnly?: boolean;
|
|
40919
|
+
};
|
|
40920
|
+
};
|
|
40921
|
+
|
|
40922
|
+
export type UpdateAdAccountManagerLinkResponse = (GoogleAdsManagerLink);
|
|
40923
|
+
|
|
40924
|
+
export type UpdateAdAccountManagerLinkError = (ErrorResponse | {
|
|
40925
|
+
error?: string;
|
|
40926
|
+
} | unknown);
|
|
40927
|
+
|
|
40734
40928
|
export type GetAdAccountFinanceData = {
|
|
40735
40929
|
query: {
|
|
40736
40930
|
/**
|