@getlatedev/node 0.2.1245 → 0.2.1246

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.
@@ -6680,6 +6680,11 @@ export type GoogleAdLabelAssignments = {
6680
6680
  keywordIds?: Array<(string)>;
6681
6681
  };
6682
6682
 
6683
+ /**
6684
+ * ADMIN manages the account and its users, STANDARD edits campaigns, READ_ONLY views them, EMAIL_ONLY only receives the account's emails.
6685
+ */
6686
+ export type GoogleAdsAccessRole = 'ADMIN' | 'STANDARD' | 'READ_ONLY' | 'EMAIL_ONLY';
6687
+
6683
6688
  /**
6684
6689
  * A Google Ads account inside a manager tree.
6685
6690
  */
@@ -6743,6 +6748,45 @@ export type GoogleAdsManagerLink = {
6743
6748
  */
6744
6749
  export type status18 = 'PENDING' | 'ACTIVE' | 'REFUSED' | 'CANCELED' | 'INACTIVE';
6745
6750
 
6751
+ export type GoogleAdsUserAccessInvitation = {
6752
+ invitationId?: string;
6753
+ emailAddress?: string;
6754
+ accessRole?: 'ADMIN' | 'STANDARD' | 'READ_ONLY' | 'EMAIL_ONLY' | 'UNKNOWN';
6755
+ status?: 'PENDING' | 'DECLINED' | 'EXPIRED' | 'UNKNOWN';
6756
+ /**
6757
+ * Google's creation time, yyyy-MM-dd HH:mm:ss.ssssss in the account's time zone.
6758
+ */
6759
+ createdAt?: (string) | null;
6760
+ };
6761
+
6762
+ export type accessRole = 'ADMIN' | 'STANDARD' | 'READ_ONLY' | 'EMAIL_ONLY' | 'UNKNOWN';
6763
+
6764
+ export type status19 = 'PENDING' | 'DECLINED' | 'EXPIRED' | 'UNKNOWN';
6765
+
6766
+ export type GoogleAdsUserAccessInvitationResult = {
6767
+ customerId?: string;
6768
+ emailAddress?: string;
6769
+ accessRole?: GoogleAdsAccessRole;
6770
+ /**
6771
+ * PENDING once the email is sent; PENDING_APPROVAL while Google waits for a second admin's multi-party approval.
6772
+ */
6773
+ status?: 'PENDING' | 'PENDING_APPROVAL';
6774
+ /**
6775
+ * Null on validateOnly and while the invitation awaits multi-party approval.
6776
+ */
6777
+ invitationId?: (string) | null;
6778
+ /**
6779
+ * Google's multi-party approval review id when status is PENDING_APPROVAL.
6780
+ */
6781
+ multiPartyAuthReviewId?: (string) | null;
6782
+ validateOnly?: boolean;
6783
+ };
6784
+
6785
+ /**
6786
+ * PENDING once the email is sent; PENDING_APPROVAL while Google waits for a second admin's multi-party approval.
6787
+ */
6788
+ export type status20 = 'PENDING' | 'PENDING_APPROVAL';
6789
+
6746
6790
  /**
6747
6791
  * 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).
6748
6792
  */
@@ -7486,7 +7530,7 @@ export type GoogleRecommendationResult = {
7486
7530
  error?: string;
7487
7531
  };
7488
7532
 
7489
- export type status19 = 'applied' | 'dismissed' | 'failed';
7533
+ export type status21 = 'applied' | 'dismissed' | 'failed';
7490
7534
 
7491
7535
  export type GoogleRsaDescription = {
7492
7536
  text: string;
@@ -7621,7 +7665,7 @@ export type ImessageSandboxContact = {
7621
7665
  createdAt?: string;
7622
7666
  };
7623
7667
 
7624
- export type status20 = 'pending' | 'active';
7668
+ export type status22 = 'pending' | 'active';
7625
7669
 
7626
7670
  /**
7627
7671
  * An iMessage sender registered as an account on a profile.
@@ -7696,7 +7740,7 @@ export type region = 'US' | 'GB';
7696
7740
  /**
7697
7741
  * `awaiting_payment`: the first-month charge is still being confirmed by the card; the number is ordered automatically once it is paid (usually under 5 minutes), or the order fails with `failureReason` when the card declines or nothing confirms within 30 minutes.
7698
7742
  */
7699
- export type status21 = 'ordering' | 'awaiting_payment' | 'activating' | 'active' | 'suspended' | 'canceled' | 'failed';
7743
+ export type status23 = 'ordering' | 'awaiting_payment' | 'activating' | 'active' | 'suspended' | 'canceled' | 'failed';
7700
7744
 
7701
7745
  /**
7702
7746
  * Attachment snapshot inside an edit-history entry.
@@ -7768,7 +7812,7 @@ export type InboxWebhookConversation = {
7768
7812
  contactId?: string;
7769
7813
  };
7770
7814
 
7771
- export type status22 = 'active' | 'archived';
7815
+ export type status24 = 'active' | 'archived';
7772
7816
 
7773
7817
  /**
7774
7818
  * The conversation object included in conversation lifecycle webhook payloads (conversation.started, conversation.control_changed).
@@ -9670,7 +9714,7 @@ export type OwnedPhoneNumber = {
9670
9714
  }>;
9671
9715
  };
9672
9716
 
9673
- export type status23 = 'pending_payment' | 'pending_regulatory' | 'regulatory_declined' | 'provisioning' | 'verifying' | 'active' | 'suspended' | 'releasing' | 'released';
9717
+ export type status25 = 'pending_payment' | 'pending_regulatory' | 'regulatory_declined' | 'provisioning' | 'verifying' | 'active' | 'suspended' | 'releasing' | 'released';
9674
9718
 
9675
9719
  export type metaVerificationStatus = 'pending' | 'code_requested' | 'verified' | 'expired';
9676
9720
 
@@ -9808,7 +9852,7 @@ export type PlatformAnalytics = {
9808
9852
  isOwner?: (boolean) | null;
9809
9853
  };
9810
9854
 
9811
- export type status24 = 'published' | 'failed';
9855
+ export type status26 = 'published' | 'failed';
9812
9856
 
9813
9857
  /**
9814
9858
  * Sync state of analytics for this platform
@@ -10243,7 +10287,7 @@ export type Product = {
10243
10287
  publishedAt?: (string) | null;
10244
10288
  };
10245
10289
 
10246
- export type status25 = 'active' | 'draft' | 'archived';
10290
+ export type status27 = 'active' | 'draft' | 'archived';
10247
10291
 
10248
10292
  export type ProductImage = {
10249
10293
  url?: string;
@@ -10462,7 +10506,7 @@ export type RcsAgent = {
10462
10506
  createdAt?: string;
10463
10507
  };
10464
10508
 
10465
- export type status26 = 'requested' | 'changes_requested' | 'brand_vetting' | 'agent_review' | 'testing' | 'launch_review' | 'launching' | 'live' | 'rejected' | 'deactivated';
10509
+ export type status28 = 'requested' | 'changes_requested' | 'brand_vetting' | 'agent_review' | 'testing' | 'launch_review' | 'launching' | 'live' | 'rejected' | 'deactivated';
10466
10510
 
10467
10511
  export type useCase = 'MULTI_USE' | 'PROMOTIONAL' | 'TRANSACTIONAL' | 'OTP';
10468
10512
 
@@ -10514,7 +10558,7 @@ export type RcsBrand = RcsBrandInput & {
10514
10558
  /**
10515
10559
  * draft = not filed yet (still editable).
10516
10560
  */
10517
- export type status27 = 'draft' | 'vetting' | 'verified' | 'rejected';
10561
+ export type status29 = 'draft' | 'vetting' | 'verified' | 'rejected';
10518
10562
 
10519
10563
  export type RcsBrandInput = {
10520
10564
  displayName: string;
@@ -10601,7 +10645,7 @@ export type RcsCarrierApproval = {
10601
10645
 
10602
10646
  export type scope2 = 'carrier' | 'hub' | 'bot';
10603
10647
 
10604
- export type status28 = 'PENDING' | 'SUBMITTED' | 'APPROVED' | 'REJECTED';
10648
+ export type status30 = 'PENDING' | 'SUBMITTED' | 'APPROVED' | 'REJECTED';
10605
10649
 
10606
10650
  /**
10607
10651
  * Message content. `suggestions` (max 11) render as chips under the message.
@@ -11434,7 +11478,7 @@ export type SupportRun = {
11434
11478
  /**
11435
11479
  * queued and running are in progress. needs_human means the assistant handed the question to a person instead of answering; when `supportTicket` is set, a Zernio teammate has been notified and will follow up by email.
11436
11480
  */
11437
- export type status29 = 'queued' | 'running' | 'completed' | 'needs_human' | 'failed';
11481
+ export type status31 = 'queued' | 'running' | 'completed' | 'needs_human' | 'failed';
11438
11482
 
11439
11483
  /**
11440
11484
  * Why the run stopped. Null while it is in progress.
@@ -12304,7 +12348,7 @@ export type UploadTokenResponse = {
12304
12348
  status?: 'pending' | 'completed' | 'expired';
12305
12349
  };
12306
12350
 
12307
- export type status30 = 'pending' | 'completed' | 'expired';
12351
+ export type status32 = 'pending' | 'completed' | 'expired';
12308
12352
 
12309
12353
  export type UploadTokenStatusResponse = {
12310
12354
  token?: string;
@@ -12811,7 +12855,7 @@ export type Verification = {
12811
12855
  resend?: boolean;
12812
12856
  };
12813
12857
 
12814
- export type status31 = 'pending' | 'approved' | 'expired' | 'max_attempts_reached' | 'canceled' | 'delivery_failed';
12858
+ export type status33 = 'pending' | 'approved' | 'expired' | 'max_attempts_reached' | 'canceled' | 'delivery_failed';
12815
12859
 
12816
12860
  export type channel5 = 'sms' | 'whatsapp';
12817
12861
 
@@ -12969,7 +13013,7 @@ export type WebhookLog = {
12969
13013
  /**
12970
13014
  * Delivery outcome
12971
13015
  */
12972
- export type status32 = 'success' | 'failed';
13016
+ export type status34 = 'success' | 'failed';
12973
13017
 
12974
13018
  /**
12975
13019
  * Webhook payload for `account.ads.initial_sync_completed` events.
@@ -13086,7 +13130,7 @@ export type event = 'account.ads.initial_sync_completed';
13086
13130
  /**
13087
13131
  * Overall outcome of the initial sync.
13088
13132
  */
13089
- export type status33 = 'success' | 'failure';
13133
+ export type status35 = 'success' | 'failure';
13090
13134
 
13091
13135
  /**
13092
13136
  * Stable category for UX branching. New values may be added; existing ones are
@@ -13477,7 +13521,7 @@ export type event7 = 'ad.video.processed';
13477
13521
  /**
13478
13522
  * `ready`: usable as `video.id` on the create endpoints. `error`: Meta could not process it; upload again.
13479
13523
  */
13480
- export type status34 = 'ready' | 'error';
13524
+ export type status36 = 'ready' | 'error';
13481
13525
 
13482
13526
  /**
13483
13527
  * Webhook payload for `analytics.synced`. Fired once per connected account each
@@ -15584,7 +15628,7 @@ export type event30 = 'post.platform.published' | 'post.platform.failed' | 'post
15584
15628
  /**
15585
15629
  * Terminal status this event fires on. Matches the event suffix.
15586
15630
  */
15587
- export type status35 = 'published' | 'failed' | 'deleted';
15631
+ export type status37 = 'published' | 'failed' | 'deleted';
15588
15632
 
15589
15633
  /**
15590
15634
  * Webhook payload for reaction received events (WhatsApp, Telegram, Slack, Instagram, Facebook Messenger, TikTok)
@@ -15981,7 +16025,7 @@ export type event39 = 'whatsapp.account.name_status_updated';
15981
16025
  /**
15982
16026
  * Normalized from Meta's `decision` (REJECTED -> DECLINED, DEFERRED -> PENDING_REVIEW; the review is still open on DEFERRED, not a rejection).
15983
16027
  */
15984
- export type status36 = 'APPROVED' | 'DECLINED' | 'PENDING_REVIEW';
16028
+ export type status38 = 'APPROVED' | 'DECLINED' | 'PENDING_REVIEW';
15985
16029
 
15986
16030
  /**
15987
16031
  * Webhook payload for `whatsapp.account.quality_updated`. Fired when a connected
@@ -16115,7 +16159,7 @@ export type event41 = 'whatsapp.account.status_updated';
16115
16159
  /**
16116
16160
  * `active` only on a reinstatement (DISABLED_UPDATE with ban state REINSTATE).
16117
16161
  */
16118
- export type status37 = 'restricted' | 'active';
16162
+ export type status39 = 'restricted' | 'active';
16119
16163
 
16120
16164
  /**
16121
16165
  * Webhook payload for the `whatsapp.contact.identity_changed` event. Fired when
@@ -16331,7 +16375,7 @@ export type event44 = 'whatsapp.template.status_updated';
16331
16375
  * request before the template is actually removed.
16332
16376
  *
16333
16377
  */
16334
- export type status38 = 'APPROVED' | 'REJECTED' | 'PENDING' | 'PAUSED' | 'DISABLED' | 'IN_APPEAL' | 'PENDING_DELETION';
16378
+ export type status40 = 'APPROVED' | 'REJECTED' | 'PENDING' | 'PAUSED' | 'DISABLED' | 'IN_APPEAL' | 'PENDING_DELETION';
16335
16379
 
16336
16380
  export type WebhookPayloadWorkflowRun = {
16337
16381
  /**
@@ -16395,7 +16439,7 @@ export type event45 = 'workflow.run.started' | 'workflow.run.completed' | 'workf
16395
16439
  /**
16396
16440
  * running on workflow.run.started; completed or exited (ended on purpose before the last node, e.g. a handoff) on workflow.run.completed; failed on workflow.run.failed.
16397
16441
  */
16398
- export type status39 = 'running' | 'waiting' | 'completed' | 'exited' | 'failed';
16442
+ export type status41 = 'running' | 'waiting' | 'completed' | 'exited' | 'failed';
16399
16443
 
16400
16444
  /**
16401
16445
  * The profiles this event belongs to, each with the externalId you set on it (null when none is set). Present on every event tied to a profile and absent on events that belong to none. Events spanning several profiles (a post published to accounts of different profiles) list each once. Use it to route the event to your tenant without storing Zernio profile ids.
@@ -16792,7 +16836,7 @@ export type WorkflowExecutionEvent = {
16792
16836
 
16793
16837
  export type action2 = 'execution_started' | 'execution_completed' | 'execution_exited' | 'execution_paused' | 'execution_resumed' | 'node_started' | 'node_completed' | 'node_failed' | 'node_skipped';
16794
16838
 
16795
- export type status40 = 'success' | 'failed' | 'pending';
16839
+ export type status42 = 'success' | 'failed' | 'pending';
16796
16840
 
16797
16841
  /**
16798
16842
  * A node in a workflow graph. `config` shape depends on `type`.
@@ -47731,6 +47775,82 @@ export type UpdateAdAccountManagerLinkResponse = (GoogleAdsManagerLink);
47731
47775
 
47732
47776
  export type UpdateAdAccountManagerLinkError = (ErrorResponse | unknown);
47733
47777
 
47778
+ export type ListAdAccountUserInvitationsData = {
47779
+ query: {
47780
+ /**
47781
+ * Google ads SocialAccount id.
47782
+ */
47783
+ accountId: string;
47784
+ /**
47785
+ * Google Ads customer id, digits only. Defaults to the connection's selected customer.
47786
+ */
47787
+ adAccountId?: string;
47788
+ };
47789
+ };
47790
+
47791
+ export type ListAdAccountUserInvitationsResponse = ({
47792
+ customerId?: string;
47793
+ invitations?: Array<GoogleAdsUserAccessInvitation>;
47794
+ /**
47795
+ * When this data was fetched from Google. Null on a live read.
47796
+ */
47797
+ cachedAt?: (string) | null;
47798
+ /**
47799
+ * True when Google's quota was exhausted and this is the last successful fetch.
47800
+ */
47801
+ stale?: boolean;
47802
+ });
47803
+
47804
+ export type ListAdAccountUserInvitationsError = (ErrorResponse | unknown);
47805
+
47806
+ export type InviteAdAccountUserData = {
47807
+ body: {
47808
+ /**
47809
+ * Google ads SocialAccount id.
47810
+ */
47811
+ accountId: string;
47812
+ /**
47813
+ * Google Ads customer id to invite the user to, digits only.
47814
+ */
47815
+ adAccountId: string;
47816
+ emailAddress: string;
47817
+ accessRole: GoogleAdsAccessRole;
47818
+ validateOnly?: boolean;
47819
+ };
47820
+ };
47821
+
47822
+ export type InviteAdAccountUserResponse = (GoogleAdsUserAccessInvitationResult);
47823
+
47824
+ export type InviteAdAccountUserError = (ErrorResponse | unknown);
47825
+
47826
+ export type RevokeAdAccountUserInvitationData = {
47827
+ query: {
47828
+ /**
47829
+ * Google ads SocialAccount id.
47830
+ */
47831
+ accountId: string;
47832
+ /**
47833
+ * Google Ads customer id, digits only.
47834
+ */
47835
+ adAccountId: string;
47836
+ /**
47837
+ * Numeric invitation id from GET /v1/ads/accounts/user-invitations.
47838
+ */
47839
+ invitationId: string;
47840
+ };
47841
+ };
47842
+
47843
+ export type RevokeAdAccountUserInvitationResponse = ({
47844
+ customerId?: string;
47845
+ invitationId?: string;
47846
+ /**
47847
+ * Always true.
47848
+ */
47849
+ revoked?: boolean;
47850
+ });
47851
+
47852
+ export type RevokeAdAccountUserInvitationError = (ErrorResponse | unknown);
47853
+
47734
47854
  export type ListAdAccountUsersData = {
47735
47855
  query: {
47736
47856
  /**