@getlatedev/node 0.2.939 → 0.2.940

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.
@@ -4682,6 +4682,61 @@ export type GeoRestriction = {
4682
4682
  countries: Array<(string)>;
4683
4683
  };
4684
4684
 
4685
+ export type GoogleAdLabel = {
4686
+ /**
4687
+ * Google label id
4688
+ */
4689
+ id?: string;
4690
+ resourceName?: string;
4691
+ name?: string;
4692
+ status?: 'ENABLED' | 'REMOVED' | 'UNKNOWN';
4693
+ /**
4694
+ * #RRGGBB
4695
+ */
4696
+ backgroundColor?: (string) | null;
4697
+ /**
4698
+ * Null when empty.
4699
+ */
4700
+ description?: (string) | null;
4701
+ };
4702
+
4703
+ export type status11 = 'ENABLED' | 'REMOVED' | 'UNKNOWN';
4704
+
4705
+ /**
4706
+ * At least one id across the four target lists. Up to 1000 ids per list.
4707
+ */
4708
+ export type GoogleAdLabelAssignments = {
4709
+ /**
4710
+ * Zernio SocialAccount id (Google Ads)
4711
+ */
4712
+ accountId: string;
4713
+ /**
4714
+ * Google customer id. Required when the connection has multiple customers.
4715
+ */
4716
+ adAccountId?: string;
4717
+ /**
4718
+ * Alias of adAccountId
4719
+ * @deprecated
4720
+ */
4721
+ customerId?: string;
4722
+ /**
4723
+ * Google campaign ids
4724
+ */
4725
+ campaignIds?: Array<(string)>;
4726
+ /**
4727
+ * Google ad group ids
4728
+ */
4729
+ adSetIds?: Array<(string)>;
4730
+ /**
4731
+ * Google ad group ad ids, {adGroupId}~{adId}
4732
+ */
4733
+ adIds?: Array<(string)>;
4734
+ /**
4735
+ * Google keyword criterion ids, {adGroupId}~{criterionId}
4736
+ */
4737
+ keywordIds?: Array<(string)>;
4738
+ };
4739
+
4685
4740
  /**
4686
4741
  * 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).
4687
4742
  */
@@ -5265,7 +5320,7 @@ export type kind = 'phone' | 'email';
5265
5320
 
5266
5321
  export type region = 'US' | 'GB';
5267
5322
 
5268
- export type status11 = 'ordering' | 'activating' | 'active' | 'suspended' | 'canceled' | 'failed';
5323
+ export type status12 = 'ordering' | 'activating' | 'active' | 'suspended' | 'canceled' | 'failed';
5269
5324
 
5270
5325
  /**
5271
5326
  * Attachment snapshot inside an edit-history entry.
@@ -5337,7 +5392,7 @@ export type InboxWebhookConversation = {
5337
5392
  contactId?: string;
5338
5393
  };
5339
5394
 
5340
- export type status12 = 'active' | 'archived';
5395
+ export type status13 = 'active' | 'archived';
5341
5396
 
5342
5397
  /**
5343
5398
  * The conversation object included in conversation lifecycle webhook payloads (conversation.started, conversation.control_changed).
@@ -6924,7 +6979,7 @@ export type OwnedPhoneNumber = {
6924
6979
  }>;
6925
6980
  };
6926
6981
 
6927
- export type status13 = 'pending_payment' | 'pending_regulatory' | 'regulatory_declined' | 'provisioning' | 'verifying' | 'active' | 'suspended' | 'releasing' | 'released';
6982
+ export type status14 = 'pending_payment' | 'pending_regulatory' | 'regulatory_declined' | 'provisioning' | 'verifying' | 'active' | 'suspended' | 'releasing' | 'released';
6928
6983
 
6929
6984
  export type metaVerificationStatus = 'pending' | 'code_requested' | 'verified' | 'expired';
6930
6985
 
@@ -7049,7 +7104,7 @@ export type PlatformAnalytics = {
7049
7104
  errorMessage?: (string) | null;
7050
7105
  };
7051
7106
 
7052
- export type status14 = 'published' | 'failed';
7107
+ export type status15 = 'published' | 'failed';
7053
7108
 
7054
7109
  /**
7055
7110
  * Sync state of analytics for this platform
@@ -7451,7 +7506,7 @@ export type Product = {
7451
7506
 
7452
7507
  export type platform8 = 'shopify';
7453
7508
 
7454
- export type status15 = 'active' | 'draft' | 'archived';
7509
+ export type status16 = 'active' | 'draft' | 'archived';
7455
7510
 
7456
7511
  export type ProductImage = {
7457
7512
  url?: string;
@@ -8727,7 +8782,7 @@ export type UploadTokenResponse = {
8727
8782
  status?: 'pending' | 'completed' | 'expired';
8728
8783
  };
8729
8784
 
8730
- export type status16 = 'pending' | 'completed' | 'expired';
8785
+ export type status17 = 'pending' | 'completed' | 'expired';
8731
8786
 
8732
8787
  export type UploadTokenStatusResponse = {
8733
8788
  token?: string;
@@ -9226,7 +9281,7 @@ export type Verification = {
9226
9281
  resend?: boolean;
9227
9282
  };
9228
9283
 
9229
- export type status17 = 'pending' | 'approved' | 'expired' | 'max_attempts_reached' | 'canceled' | 'delivery_failed';
9284
+ export type status18 = 'pending' | 'approved' | 'expired' | 'max_attempts_reached' | 'canceled' | 'delivery_failed';
9230
9285
 
9231
9286
  export type channel4 = 'sms';
9232
9287
 
@@ -9353,7 +9408,7 @@ export type WebhookLog = {
9353
9408
  /**
9354
9409
  * Delivery outcome
9355
9410
  */
9356
- export type status18 = 'success' | 'failed';
9411
+ export type status19 = 'success' | 'failed';
9357
9412
 
9358
9413
  /**
9359
9414
  * Webhook payload for `account.ads.initial_sync_completed` events.
@@ -9465,7 +9520,7 @@ export type event = 'account.ads.initial_sync_completed';
9465
9520
  /**
9466
9521
  * Overall outcome of the initial sync.
9467
9522
  */
9468
- export type status19 = 'success' | 'failure';
9523
+ export type status20 = 'success' | 'failure';
9469
9524
 
9470
9525
  /**
9471
9526
  * Stable category for UX branching. New values may be added; existing ones are
@@ -11418,7 +11473,7 @@ export type event22 = 'post.platform.published' | 'post.platform.failed' | 'post
11418
11473
  /**
11419
11474
  * Terminal status this event fires on. Matches the event suffix.
11420
11475
  */
11421
- export type status20 = 'published' | 'failed' | 'deleted';
11476
+ export type status21 = 'published' | 'failed' | 'deleted';
11422
11477
 
11423
11478
  /**
11424
11479
  * Webhook payload for reaction received events (WhatsApp, Telegram, Slack, Instagram, Facebook Messenger, TikTok)
@@ -11684,7 +11739,7 @@ export type platform15 = 'whatsapp';
11684
11739
  /**
11685
11740
  * Normalized from Meta's `decision` (REJECTED -> DECLINED, DEFERRED -> PENDING_REVIEW; the review is still open on DEFERRED, not a rejection).
11686
11741
  */
11687
- export type status21 = 'APPROVED' | 'DECLINED' | 'PENDING_REVIEW';
11742
+ export type status22 = 'APPROVED' | 'DECLINED' | 'PENDING_REVIEW';
11688
11743
 
11689
11744
  /**
11690
11745
  * Webhook payload for the `whatsapp.template.category_updated` event.
@@ -11833,7 +11888,7 @@ export type event30 = 'whatsapp.template.status_updated';
11833
11888
  * request before the template is actually removed.
11834
11889
  *
11835
11890
  */
11836
- export type status22 = 'APPROVED' | 'REJECTED' | 'PENDING' | 'PAUSED' | 'DISABLED' | 'IN_APPEAL' | 'PENDING_DELETION';
11891
+ export type status23 = 'APPROVED' | 'REJECTED' | 'PENDING' | 'PAUSED' | 'DISABLED' | 'IN_APPEAL' | 'PENDING_DELETION';
11837
11892
 
11838
11893
  export type WhatsAppBodyComponent = {
11839
11894
  type: 'body';
@@ -11987,7 +12042,7 @@ export type WhatsAppSandboxSession = {
11987
12042
  * list responses.
11988
12043
  *
11989
12044
  */
11990
- export type status23 = 'pending' | 'active';
12045
+ export type status24 = 'pending' | 'active';
11991
12046
 
11992
12047
  export type WhatsAppTemplateButton = {
11993
12048
  type: 'quick_reply' | 'url' | 'phone_number' | 'otp' | 'copy_code' | 'flow' | 'mpm' | 'catalog';
@@ -12145,7 +12200,7 @@ export type WorkflowExecutionEvent = {
12145
12200
 
12146
12201
  export type action2 = 'execution_started' | 'execution_completed' | 'execution_exited' | 'execution_paused' | 'execution_resumed' | 'node_started' | 'node_completed' | 'node_failed' | 'node_skipped';
12147
12202
 
12148
- export type status24 = 'success' | 'failed' | 'pending';
12203
+ export type status25 = 'success' | 'failed' | 'pending';
12149
12204
 
12150
12205
  /**
12151
12206
  * A node in a workflow graph. `config` shape depends on `type`.
@@ -39162,40 +39217,229 @@ export type ListMetaBusinessesError = (unknown | {
39162
39217
  export type ListAdLabelsData = {
39163
39218
  query: {
39164
39219
  /**
39165
- * Zernio SocialAccount id (posting or ads variant) used to resolve the Meta token.
39220
+ * Zernio SocialAccount id. For Meta, the posting or ads variant used to resolve the token.
39166
39221
  */
39167
39222
  accountId: string;
39168
39223
  /**
39169
- * Meta ad account id (act_<n>).
39224
+ * Meta ad account id (act_<n>), or the Google Ads customer id (digits only).
39170
39225
  */
39171
- adAccountId: string;
39226
+ adAccountId?: string;
39172
39227
  /**
39173
- * Cursor from paging.after of the previous page.
39228
+ * Meta only. Cursor from paging.after of the previous page.
39174
39229
  */
39175
39230
  after?: string;
39176
39231
  /**
39177
- * Rows per page
39232
+ * Google only. Alias of adAccountId, kept for existing callers.
39233
+ * @deprecated
39234
+ */
39235
+ customerId?: string;
39236
+ /**
39237
+ * Meta only. Rows per page.
39178
39238
  */
39179
39239
  limit?: number;
39180
39240
  };
39181
39241
  };
39182
39242
 
39183
39243
  export type ListAdLabelsResponse = ({
39244
+ /**
39245
+ * Meta act_<n>, or the resolved Google customer id
39246
+ */
39184
39247
  adAccountId?: string;
39185
- data?: Array<{
39186
- [key: string]: unknown;
39187
- }>;
39248
+ data?: Array<(GoogleAdLabel | {
39249
+ [key: string]: unknown;
39250
+ })>;
39188
39251
  paging?: {
39189
39252
  /**
39190
- * Cursor for the next page; null when exhausted.
39253
+ * Cursor for the next page; null when exhausted (always null on Google).
39191
39254
  */
39192
39255
  after?: (string) | null;
39193
39256
  };
39257
+ /**
39258
+ * Google only. When the served list was fetched from Google.
39259
+ */
39260
+ cachedAt?: (string) | null;
39261
+ /**
39262
+ * Google only. True when Google quota was exhausted and the last cached list was served.
39263
+ */
39264
+ stale?: boolean;
39194
39265
  });
39195
39266
 
39196
- export type ListAdLabelsError = (unknown | {
39267
+ export type ListAdLabelsError = (ErrorResponse | {
39197
39268
  error?: string;
39198
- } | ErrorResponse);
39269
+ } | unknown);
39270
+
39271
+ export type CreateAdLabelData = {
39272
+ body: {
39273
+ /**
39274
+ * Zernio SocialAccount id (Google Ads)
39275
+ */
39276
+ accountId: string;
39277
+ /**
39278
+ * Google customer id. Required when the connection has multiple customers.
39279
+ */
39280
+ adAccountId?: string;
39281
+ /**
39282
+ * Alias of adAccountId
39283
+ * @deprecated
39284
+ */
39285
+ customerId?: string;
39286
+ /**
39287
+ * Trimmed before sending.
39288
+ */
39289
+ name: string;
39290
+ /**
39291
+ * #RRGGBB. Google picks a color when omitted.
39292
+ */
39293
+ backgroundColor?: string;
39294
+ description?: string;
39295
+ };
39296
+ };
39297
+
39298
+ export type CreateAdLabelResponse = ({
39299
+ customerId?: string;
39300
+ /**
39301
+ * Google label id
39302
+ */
39303
+ id?: string;
39304
+ /**
39305
+ * customers/{customerId}/labels/{id}
39306
+ */
39307
+ resourceName?: string;
39308
+ });
39309
+
39310
+ export type CreateAdLabelError = (ErrorResponse | {
39311
+ error?: string;
39312
+ } | unknown);
39313
+
39314
+ export type UpdateAdLabelData = {
39315
+ body: {
39316
+ /**
39317
+ * Zernio SocialAccount id (Google Ads)
39318
+ */
39319
+ accountId: string;
39320
+ /**
39321
+ * Google customer id. Required when the connection has multiple customers.
39322
+ */
39323
+ adAccountId?: string;
39324
+ /**
39325
+ * Alias of adAccountId
39326
+ * @deprecated
39327
+ */
39328
+ customerId?: string;
39329
+ name?: string;
39330
+ backgroundColor?: string;
39331
+ /**
39332
+ * Send "" to clear it.
39333
+ */
39334
+ description?: string;
39335
+ };
39336
+ path: {
39337
+ /**
39338
+ * Google label id
39339
+ */
39340
+ labelId: string;
39341
+ };
39342
+ };
39343
+
39344
+ export type UpdateAdLabelResponse = ({
39345
+ customerId?: string;
39346
+ label?: GoogleAdLabel;
39347
+ });
39348
+
39349
+ export type UpdateAdLabelError = (ErrorResponse | {
39350
+ error?: string;
39351
+ } | unknown);
39352
+
39353
+ export type RemoveAdLabelData = {
39354
+ path: {
39355
+ /**
39356
+ * Google label id
39357
+ */
39358
+ labelId: string;
39359
+ };
39360
+ query: {
39361
+ /**
39362
+ * Zernio SocialAccount id (Google Ads)
39363
+ */
39364
+ accountId: string;
39365
+ /**
39366
+ * Google customer id. Required when the connection has multiple customers.
39367
+ */
39368
+ adAccountId?: string;
39369
+ /**
39370
+ * Alias of adAccountId
39371
+ * @deprecated
39372
+ */
39373
+ customerId?: string;
39374
+ };
39375
+ };
39376
+
39377
+ export type RemoveAdLabelResponse = ({
39378
+ customerId?: string;
39379
+ labelId?: string;
39380
+ /**
39381
+ * Always true on success
39382
+ */
39383
+ removed?: boolean;
39384
+ });
39385
+
39386
+ export type RemoveAdLabelError = (ErrorResponse | {
39387
+ error?: string;
39388
+ } | unknown);
39389
+
39390
+ export type AttachAdLabelData = {
39391
+ body: GoogleAdLabelAssignments;
39392
+ path: {
39393
+ /**
39394
+ * Google label id
39395
+ */
39396
+ labelId: string;
39397
+ };
39398
+ };
39399
+
39400
+ export type AttachAdLabelResponse = ({
39401
+ customerId?: string;
39402
+ labelId?: string;
39403
+ /**
39404
+ * Links created by this call
39405
+ */
39406
+ attached?: number;
39407
+ /**
39408
+ * Targets that already carried the label
39409
+ */
39410
+ unchanged?: number;
39411
+ });
39412
+
39413
+ export type AttachAdLabelError = (ErrorResponse | {
39414
+ error?: string;
39415
+ } | unknown);
39416
+
39417
+ export type DetachAdLabelData = {
39418
+ body: GoogleAdLabelAssignments;
39419
+ path: {
39420
+ /**
39421
+ * Google label id
39422
+ */
39423
+ labelId: string;
39424
+ };
39425
+ };
39426
+
39427
+ export type DetachAdLabelResponse = ({
39428
+ customerId?: string;
39429
+ labelId?: string;
39430
+ /**
39431
+ * Links removed by this call
39432
+ */
39433
+ detached?: number;
39434
+ /**
39435
+ * Targets that did not carry the label
39436
+ */
39437
+ unchanged?: number;
39438
+ });
39439
+
39440
+ export type DetachAdLabelError = (ErrorResponse | {
39441
+ error?: string;
39442
+ } | unknown);
39199
39443
 
39200
39444
  export type ListHighDemandPeriodsData = {
39201
39445
  query: {