@getlatedev/node 0.2.1245 → 0.2.1247
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 +146 -29
- package/dist/index.d.ts +146 -29
- 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 +40 -1
- package/src/generated/types.gen.ts +151 -28
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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.
|
|
@@ -16735,6 +16779,7 @@ export type WorkflowEdge = {
|
|
|
16735
16779
|
* - **condition**: a rule's `id`, or `'default'` (no rule matched)
|
|
16736
16780
|
* - **wait_for_reply**: `'reply'` (contact replied) | `'timeout'` (no reply in window)
|
|
16737
16781
|
* - **webhook**: `'success'` (2xx) | `'error'` (non-2xx / fetch failed)
|
|
16782
|
+
* - **hubspot_upsert_contact**: `'success'` | `'error'` (not connected / HubSpot refused)
|
|
16738
16783
|
* - **ai**: `'success'` (text/JSON response) | `'tool:<toolName>'` (model invoked
|
|
16739
16784
|
* that tool) | `'error'` (upstream failure / non-JSON in JSON mode)
|
|
16740
16785
|
* - **start_call**: `'success'` | `'permission_required'` | `'failed'`
|
|
@@ -16792,7 +16837,7 @@ export type WorkflowExecutionEvent = {
|
|
|
16792
16837
|
|
|
16793
16838
|
export type action2 = 'execution_started' | 'execution_completed' | 'execution_exited' | 'execution_paused' | 'execution_resumed' | 'node_started' | 'node_completed' | 'node_failed' | 'node_skipped';
|
|
16794
16839
|
|
|
16795
|
-
export type
|
|
16840
|
+
export type status42 = 'success' | 'failed' | 'pending';
|
|
16796
16841
|
|
|
16797
16842
|
/**
|
|
16798
16843
|
* A node in a workflow graph. `config` shape depends on `type`.
|
|
@@ -16803,14 +16848,14 @@ export type WorkflowNode = {
|
|
|
16803
16848
|
*/
|
|
16804
16849
|
id: string;
|
|
16805
16850
|
/**
|
|
16806
|
-
* Node kind. The
|
|
16851
|
+
* Node kind. The 17 supported types break into four groups:
|
|
16807
16852
|
* messaging (send_message),
|
|
16808
16853
|
* control flow (trigger, condition, delay, wait_for_reply, a_b_split, end),
|
|
16809
16854
|
* data ops (set_variable, set_field, add_tag, remove_tag, enroll_sequence),
|
|
16810
|
-
* integrations (webhook, ai, handoff, start_call).
|
|
16855
|
+
* integrations (webhook, hubspot_upsert_contact, ai, handoff, start_call).
|
|
16811
16856
|
*
|
|
16812
16857
|
*/
|
|
16813
|
-
type: 'trigger' | 'send_message' | 'wait_for_reply' | 'condition' | 'set_variable' | 'delay' | 'webhook' | 'ai' | 'handoff' | 'start_call' | 'a_b_split' | 'set_field' | 'enroll_sequence' | 'add_tag' | 'remove_tag' | 'end';
|
|
16858
|
+
type: 'trigger' | 'send_message' | 'wait_for_reply' | 'condition' | 'set_variable' | 'delay' | 'webhook' | 'hubspot_upsert_contact' | 'ai' | 'handoff' | 'start_call' | 'a_b_split' | 'set_field' | 'enroll_sequence' | 'add_tag' | 'remove_tag' | 'end';
|
|
16814
16859
|
/**
|
|
16815
16860
|
* Type-specific settings. All string fields support `{{variable}}` interpolation against the run's variable bag (resolved at execution time).
|
|
16816
16861
|
*
|
|
@@ -16831,6 +16876,8 @@ export type WorkflowNode = {
|
|
|
16831
16876
|
*
|
|
16832
16877
|
* **webhook**: `{ url, method: GET|POST|PUT|PATCH|DELETE, headers, bodyTemplate, saveAs }`. SSRF-guarded (private/loopback/metadata IPs rejected). Response saved as `{ status, ok, body }` to `vars[saveAs]`. Edge: `'success'` on 2xx, `'error'` otherwise.
|
|
16833
16878
|
*
|
|
16879
|
+
* **hubspot_upsert_contact**: `{ email, phone, firstName, lastName, properties, saveAs }`. Creates or updates the run contact in the profile's connected HubSpot portal: the contact already linked by inbox sync, else one matching by email, then phone, is updated; otherwise one is created. An existing contact gets only the fields the node sets (a value that resolves to an empty string is skipped); a new one also takes the Zernio contact's name, email and phone for anything left out. `properties` maps HubSpot internal property names to values (at most 50). Saves `{ id, created }` (or `{ error }`) to `vars[saveAs]` (default `hubspotContact`). Edges: `'success'` | `'error'` (HubSpot not connected, or HubSpot refused the write).
|
|
16880
|
+
*
|
|
16834
16881
|
* **ai**: `{ provider: anthropic|openai|google|mistral|groq|openrouter, model, preset: smart|tools|cheap, systemPrompt, userPromptTemplate, saveAs, temperature, maxTokens, outputType: text|json, tools:[{ name, description, parameters }] }`. Set `provider` + `model` for BYOK (uses your stored API key); omit `provider` for the legacy Telnyx path. Edges: `'success'`, `'tool:<name>'` (model picked a tool), `'error'`.
|
|
16835
16882
|
*
|
|
16836
16883
|
* **handoff**: `{ note, assignTo }`. Terminates the run as `exited`, flags the conversation for a human operator.
|
|
@@ -16865,14 +16912,14 @@ export type WorkflowNode = {
|
|
|
16865
16912
|
};
|
|
16866
16913
|
|
|
16867
16914
|
/**
|
|
16868
|
-
* Node kind. The
|
|
16915
|
+
* Node kind. The 17 supported types break into four groups:
|
|
16869
16916
|
* messaging (send_message),
|
|
16870
16917
|
* control flow (trigger, condition, delay, wait_for_reply, a_b_split, end),
|
|
16871
16918
|
* data ops (set_variable, set_field, add_tag, remove_tag, enroll_sequence),
|
|
16872
|
-
* integrations (webhook, ai, handoff, start_call).
|
|
16919
|
+
* integrations (webhook, hubspot_upsert_contact, ai, handoff, start_call).
|
|
16873
16920
|
*
|
|
16874
16921
|
*/
|
|
16875
|
-
export type type21 = 'trigger' | 'send_message' | 'wait_for_reply' | 'condition' | 'set_variable' | 'delay' | 'webhook' | 'ai' | 'handoff' | 'start_call' | 'a_b_split' | 'set_field' | 'enroll_sequence' | 'add_tag' | 'remove_tag' | 'end';
|
|
16922
|
+
export type type21 = 'trigger' | 'send_message' | 'wait_for_reply' | 'condition' | 'set_variable' | 'delay' | 'webhook' | 'hubspot_upsert_contact' | 'ai' | 'handoff' | 'start_call' | 'a_b_split' | 'set_field' | 'enroll_sequence' | 'add_tag' | 'remove_tag' | 'end';
|
|
16876
16923
|
|
|
16877
16924
|
/**
|
|
16878
16925
|
* A single X API operation with its per-call price and the Zernio platform methods that trigger it.
|
|
@@ -47731,6 +47778,82 @@ export type UpdateAdAccountManagerLinkResponse = (GoogleAdsManagerLink);
|
|
|
47731
47778
|
|
|
47732
47779
|
export type UpdateAdAccountManagerLinkError = (ErrorResponse | unknown);
|
|
47733
47780
|
|
|
47781
|
+
export type ListAdAccountUserInvitationsData = {
|
|
47782
|
+
query: {
|
|
47783
|
+
/**
|
|
47784
|
+
* Google ads SocialAccount id.
|
|
47785
|
+
*/
|
|
47786
|
+
accountId: string;
|
|
47787
|
+
/**
|
|
47788
|
+
* Google Ads customer id, digits only. Defaults to the connection's selected customer.
|
|
47789
|
+
*/
|
|
47790
|
+
adAccountId?: string;
|
|
47791
|
+
};
|
|
47792
|
+
};
|
|
47793
|
+
|
|
47794
|
+
export type ListAdAccountUserInvitationsResponse = ({
|
|
47795
|
+
customerId?: string;
|
|
47796
|
+
invitations?: Array<GoogleAdsUserAccessInvitation>;
|
|
47797
|
+
/**
|
|
47798
|
+
* When this data was fetched from Google. Null on a live read.
|
|
47799
|
+
*/
|
|
47800
|
+
cachedAt?: (string) | null;
|
|
47801
|
+
/**
|
|
47802
|
+
* True when Google's quota was exhausted and this is the last successful fetch.
|
|
47803
|
+
*/
|
|
47804
|
+
stale?: boolean;
|
|
47805
|
+
});
|
|
47806
|
+
|
|
47807
|
+
export type ListAdAccountUserInvitationsError = (ErrorResponse | unknown);
|
|
47808
|
+
|
|
47809
|
+
export type InviteAdAccountUserData = {
|
|
47810
|
+
body: {
|
|
47811
|
+
/**
|
|
47812
|
+
* Google ads SocialAccount id.
|
|
47813
|
+
*/
|
|
47814
|
+
accountId: string;
|
|
47815
|
+
/**
|
|
47816
|
+
* Google Ads customer id to invite the user to, digits only.
|
|
47817
|
+
*/
|
|
47818
|
+
adAccountId: string;
|
|
47819
|
+
emailAddress: string;
|
|
47820
|
+
accessRole: GoogleAdsAccessRole;
|
|
47821
|
+
validateOnly?: boolean;
|
|
47822
|
+
};
|
|
47823
|
+
};
|
|
47824
|
+
|
|
47825
|
+
export type InviteAdAccountUserResponse = (GoogleAdsUserAccessInvitationResult);
|
|
47826
|
+
|
|
47827
|
+
export type InviteAdAccountUserError = (ErrorResponse | unknown);
|
|
47828
|
+
|
|
47829
|
+
export type RevokeAdAccountUserInvitationData = {
|
|
47830
|
+
query: {
|
|
47831
|
+
/**
|
|
47832
|
+
* Google ads SocialAccount id.
|
|
47833
|
+
*/
|
|
47834
|
+
accountId: string;
|
|
47835
|
+
/**
|
|
47836
|
+
* Google Ads customer id, digits only.
|
|
47837
|
+
*/
|
|
47838
|
+
adAccountId: string;
|
|
47839
|
+
/**
|
|
47840
|
+
* Numeric invitation id from GET /v1/ads/accounts/user-invitations.
|
|
47841
|
+
*/
|
|
47842
|
+
invitationId: string;
|
|
47843
|
+
};
|
|
47844
|
+
};
|
|
47845
|
+
|
|
47846
|
+
export type RevokeAdAccountUserInvitationResponse = ({
|
|
47847
|
+
customerId?: string;
|
|
47848
|
+
invitationId?: string;
|
|
47849
|
+
/**
|
|
47850
|
+
* Always true.
|
|
47851
|
+
*/
|
|
47852
|
+
revoked?: boolean;
|
|
47853
|
+
});
|
|
47854
|
+
|
|
47855
|
+
export type RevokeAdAccountUserInvitationError = (ErrorResponse | unknown);
|
|
47856
|
+
|
|
47734
47857
|
export type ListAdAccountUsersData = {
|
|
47735
47858
|
query: {
|
|
47736
47859
|
/**
|