@getlatedev/node 0.2.1263 → 0.2.1265
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 +283 -80
- package/dist/index.d.ts +283 -80
- 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 +45 -1
- package/src/generated/types.gen.ts +284 -79
|
@@ -1061,6 +1061,63 @@ export type adRelevance = 'BELOW_AVERAGE' | 'AVERAGE' | 'ABOVE_AVERAGE';
|
|
|
1061
1061
|
*/
|
|
1062
1062
|
export type landingPageExperience = 'BELOW_AVERAGE' | 'AVERAGE' | 'ABOVE_AVERAGE';
|
|
1063
1063
|
|
|
1064
|
+
export type AdLead = {
|
|
1065
|
+
/**
|
|
1066
|
+
* Zernio lead id.
|
|
1067
|
+
*/
|
|
1068
|
+
id?: string;
|
|
1069
|
+
/**
|
|
1070
|
+
* Meta lead id. On LinkedIn, the leadFormResponse id.
|
|
1071
|
+
*/
|
|
1072
|
+
leadgenId?: string;
|
|
1073
|
+
formId?: string;
|
|
1074
|
+
formName?: (string) | null;
|
|
1075
|
+
accountId?: string;
|
|
1076
|
+
adId?: (string) | null;
|
|
1077
|
+
adsetId?: (string) | null;
|
|
1078
|
+
/**
|
|
1079
|
+
* On LinkedIn, this is the LinkedIn Campaign id, which corresponds to platformAdSetId on GET /v1/ads (LinkedIn's Campaign Group is Zernio's campaign).
|
|
1080
|
+
*/
|
|
1081
|
+
campaignId?: (string) | null;
|
|
1082
|
+
isOrganic?: boolean;
|
|
1083
|
+
/**
|
|
1084
|
+
* ISO 8601.
|
|
1085
|
+
*/
|
|
1086
|
+
createdTime?: (string) | null;
|
|
1087
|
+
/**
|
|
1088
|
+
* Question key → answer. On LinkedIn, the key is the lowercased predefinedField, else the question name, else the numeric questionId; multiple-choice values are option labels (unlike Meta, which returns the option key).
|
|
1089
|
+
*/
|
|
1090
|
+
fields?: {
|
|
1091
|
+
[key: string]: (string);
|
|
1092
|
+
};
|
|
1093
|
+
/**
|
|
1094
|
+
* Raw Meta field_data.
|
|
1095
|
+
*/
|
|
1096
|
+
fieldData?: Array<{
|
|
1097
|
+
[key: string]: unknown;
|
|
1098
|
+
}>;
|
|
1099
|
+
/**
|
|
1100
|
+
* Meta leads only. `contacted` is set when the first WhatsApp message of a lead_received workflow is delivered, `unreachable` when it fails or the phone number is not valid.
|
|
1101
|
+
*/
|
|
1102
|
+
status?: 'new' | 'contacted' | 'unreachable' | 'qualified' | 'converted' | 'disqualified';
|
|
1103
|
+
statusChangedAt?: (string) | null;
|
|
1104
|
+
value?: (number) | null;
|
|
1105
|
+
currency?: (string) | null;
|
|
1106
|
+
/**
|
|
1107
|
+
* The contact a lead_received workflow created or matched for this lead.
|
|
1108
|
+
*/
|
|
1109
|
+
contactId?: (string) | null;
|
|
1110
|
+
/**
|
|
1111
|
+
* When the first WhatsApp message to the lead was delivered.
|
|
1112
|
+
*/
|
|
1113
|
+
firstContactedAt?: (string) | null;
|
|
1114
|
+
};
|
|
1115
|
+
|
|
1116
|
+
/**
|
|
1117
|
+
* Meta leads only. `contacted` is set when the first WhatsApp message of a lead_received workflow is delivered, `unreachable` when it fails or the phone number is not valid.
|
|
1118
|
+
*/
|
|
1119
|
+
export type status2 = 'new' | 'contacted' | 'unreachable' | 'qualified' | 'converted' | 'disqualified';
|
|
1120
|
+
|
|
1064
1121
|
export type AdMetrics = {
|
|
1065
1122
|
spend?: number;
|
|
1066
1123
|
impressions?: number;
|
|
@@ -2101,7 +2158,7 @@ export type AnalyticsSinglePostResponse = {
|
|
|
2101
2158
|
/**
|
|
2102
2159
|
* Overall post status. "partial" when some platforms published and others failed. While any platform is still pending or processing, the post's own status is returned instead (usually scheduled or publishing), even if another platform already published. A post with no published or failed platform (for example every platform cancelled) returns its own status with syncStatus unavailable and no platformAnalytics.
|
|
2103
2160
|
*/
|
|
2104
|
-
export type
|
|
2161
|
+
export type status3 = 'published' | 'failed' | 'partial' | 'scheduled' | 'publishing' | 'draft' | 'cancelled';
|
|
2105
2162
|
|
|
2106
2163
|
/**
|
|
2107
2164
|
* Overall sync state across all platforms
|
|
@@ -2405,7 +2462,7 @@ export type BlogArticle = {
|
|
|
2405
2462
|
/**
|
|
2406
2463
|
* WordPress and Wix. Post status (`future` = scheduled, `pending` = in review on Wix); omitted for Shopify.
|
|
2407
2464
|
*/
|
|
2408
|
-
export type
|
|
2465
|
+
export type status4 = 'publish' | 'future' | 'draft' | 'pending' | 'private';
|
|
2409
2466
|
|
|
2410
2467
|
/**
|
|
2411
2468
|
* Bluesky post settings. Supports text posts with up to 4 images or a single video. threadItems creates a reply chain (Bluesky thread). Images exceeding 1MB are automatically compressed. Alt text supported via mediaItem properties. Use langs to tag post language for feed-generator filtering.
|
|
@@ -2553,7 +2610,7 @@ export type BrandedCallingIdentity = {
|
|
|
2553
2610
|
/**
|
|
2554
2611
|
* requested = in Zernio review; changes_requested = answer the review (PATCH); pending_email_verification = confirm the code emailed to the authorizer; in_review = with the carrier vetting team; verified = attach numbers; rejected = fix and PATCH to resubmit; suspended = an infringement claim is open; expired = the yearly verification lapsed; permanently_rejected = terminal.
|
|
2555
2612
|
*/
|
|
2556
|
-
export type
|
|
2613
|
+
export type status5 = 'requested' | 'changes_requested' | 'rejected' | 'pending_email_verification' | 'in_review' | 'verified' | 'suspended' | 'expired' | 'permanently_rejected';
|
|
2557
2614
|
|
|
2558
2615
|
export type BrandedCallingIdentityNumber = {
|
|
2559
2616
|
phoneNumberId?: string;
|
|
@@ -2575,7 +2632,7 @@ export type BrandedCallingIdentityNumber = {
|
|
|
2575
2632
|
/**
|
|
2576
2633
|
* verified = the identity shows on calls from this number. permanently_rejected cannot be attached again anywhere.
|
|
2577
2634
|
*/
|
|
2578
|
-
export type
|
|
2635
|
+
export type status6 = 'submitted' | 'in_review' | 'verified' | 'unsuccessful' | 'suspended' | 'expired' | 'permanently_rejected';
|
|
2579
2636
|
|
|
2580
2637
|
/**
|
|
2581
2638
|
* A person the carrier vetting team phones to confirm the business. Business references are senior contacts at a vendor, partner or client; the financial reference is a CPA or a bank contact. Calls are placed in the reference's local 8am-9pm window.
|
|
@@ -2807,7 +2864,7 @@ export type BusinessAgentEventStatus = {
|
|
|
2807
2864
|
updated_at: string;
|
|
2808
2865
|
};
|
|
2809
2866
|
|
|
2810
|
-
export type
|
|
2867
|
+
export type status7 = 'request_received' | 'processing' | 'sent' | 'failed' | 'skipped' | 'success';
|
|
2811
2868
|
|
|
2812
2869
|
export type BusinessAgentFaq = BusinessAgentFaqInput & {
|
|
2813
2870
|
id: string;
|
|
@@ -2904,7 +2961,7 @@ export type BusinessAgentSkill = BusinessAgentSkillInput & {
|
|
|
2904
2961
|
/**
|
|
2905
2962
|
* pending_review right after a write; blocked means Meta content review rejected it and the agent never applies it.
|
|
2906
2963
|
*/
|
|
2907
|
-
export type
|
|
2964
|
+
export type status8 = 'active' | 'pending_review' | 'blocked';
|
|
2908
2965
|
|
|
2909
2966
|
export type BusinessAgentSkillInput = {
|
|
2910
2967
|
/**
|
|
@@ -3006,7 +3063,7 @@ export type BusinessAgentUiSkillInput = {
|
|
|
3006
3063
|
|
|
3007
3064
|
export type component_type = 'carousel_quick_reply' | 'carousel_url' | 'cta_url' | 'flow' | 'image' | 'interactive_list' | 'interactive_reply_buttons' | 'location' | 'location_request';
|
|
3008
3065
|
|
|
3009
|
-
export type
|
|
3066
|
+
export type status9 = 'enabled' | 'disabled';
|
|
3010
3067
|
|
|
3011
3068
|
export type BusinessAgentWebsite = BusinessAgentWebsiteInput & {
|
|
3012
3069
|
id: string;
|
|
@@ -3197,7 +3254,7 @@ export type channel = 'whatsapp' | 'pstn';
|
|
|
3197
3254
|
|
|
3198
3255
|
export type direction = 'inbound' | 'outbound';
|
|
3199
3256
|
|
|
3200
|
-
export type
|
|
3257
|
+
export type status10 = 'ringing' | 'answered' | 'ended' | 'failed';
|
|
3201
3258
|
|
|
3202
3259
|
/**
|
|
3203
3260
|
* Caller ID presented on the forwarded leg.
|
|
@@ -3575,7 +3632,7 @@ export type source = 'comment' | 'live_comment' | 'story_reply' | 'story_mention
|
|
|
3575
3632
|
/**
|
|
3576
3633
|
* DM outcome. 'pending' = the automation has a dmDelaySeconds and the response is queued but not sent yet. 'gated' = the follow-gate confirmation DM went out and we are waiting for the tap; it flips to 'sent' or 'skipped' when they tap. 'skipped' also covers repeatPolicy, cooldown and dedupeSameTextHours suppressions, with the reason in error.
|
|
3577
3634
|
*/
|
|
3578
|
-
export type
|
|
3635
|
+
export type status11 = 'pending' | 'sent' | 'failed' | 'skipped' | 'gated';
|
|
3579
3636
|
|
|
3580
3637
|
/**
|
|
3581
3638
|
* How the audience rule resolved. Null on automations without one.
|
|
@@ -3869,7 +3926,7 @@ export type method = 'code' | 'automatic';
|
|
|
3869
3926
|
|
|
3870
3927
|
export type type5 = 'percentage' | 'fixed_amount' | 'free_shipping' | 'buy_x_get_y' | 'app';
|
|
3871
3928
|
|
|
3872
|
-
export type
|
|
3929
|
+
export type status12 = 'active' | 'scheduled' | 'expired';
|
|
3873
3930
|
|
|
3874
3931
|
export type CommerceImage = {
|
|
3875
3932
|
/**
|
|
@@ -3924,7 +3981,7 @@ export type CommerceMarket = {
|
|
|
3924
3981
|
type?: string;
|
|
3925
3982
|
};
|
|
3926
3983
|
|
|
3927
|
-
export type
|
|
3984
|
+
export type status13 = 'active' | 'draft';
|
|
3928
3985
|
|
|
3929
3986
|
export type CommerceMenu = {
|
|
3930
3987
|
id?: string;
|
|
@@ -4480,7 +4537,7 @@ export type ConversionDestination = {
|
|
|
4480
4537
|
* For LinkedIn, `inactive` means the rule is soft-deleted (`enabled: false`).
|
|
4481
4538
|
*
|
|
4482
4539
|
*/
|
|
4483
|
-
export type
|
|
4540
|
+
export type status14 = 'active' | 'inactive';
|
|
4484
4541
|
|
|
4485
4542
|
/**
|
|
4486
4543
|
* A single conversion event to relay to the ad platform. All PII fields
|
|
@@ -5609,7 +5666,7 @@ export type objective = 'OUTCOME_ENGAGEMENT' | 'OUTCOME_SALES' | 'OUTCOME_LEADS'
|
|
|
5609
5666
|
* `adSetId`, the new ads themselves.
|
|
5610
5667
|
*
|
|
5611
5668
|
*/
|
|
5612
|
-
export type
|
|
5669
|
+
export type status15 = 'ACTIVE' | 'PAUSED';
|
|
5613
5670
|
|
|
5614
5671
|
/**
|
|
5615
5672
|
* Campaign-level status, same semantics as `POST /v1/ads/create`. Defaults
|
|
@@ -6001,7 +6058,7 @@ export type privacy_level = 2;
|
|
|
6001
6058
|
/**
|
|
6002
6059
|
* 1=SCHEDULED, 2=ACTIVE, 3=COMPLETED, 4=CANCELED
|
|
6003
6060
|
*/
|
|
6004
|
-
export type
|
|
6061
|
+
export type status16 = 1 | 2 | 3 | 4;
|
|
6005
6062
|
|
|
6006
6063
|
/**
|
|
6007
6064
|
* 1=STAGE_INSTANCE, 2=VOICE, 3=EXTERNAL
|
|
@@ -6544,7 +6601,7 @@ export type FeedbackReceipt = {
|
|
|
6544
6601
|
duplicate?: boolean;
|
|
6545
6602
|
};
|
|
6546
6603
|
|
|
6547
|
-
export type
|
|
6604
|
+
export type status17 = 'received';
|
|
6548
6605
|
|
|
6549
6606
|
export type FollowerStatsResponse = {
|
|
6550
6607
|
accounts?: Array<AccountWithFollowerStats>;
|
|
@@ -6669,7 +6726,7 @@ export type GoogleAdLabel = {
|
|
|
6669
6726
|
description?: (string) | null;
|
|
6670
6727
|
};
|
|
6671
6728
|
|
|
6672
|
-
export type
|
|
6729
|
+
export type status18 = 'ENABLED' | 'REMOVED' | 'UNKNOWN';
|
|
6673
6730
|
|
|
6674
6731
|
/**
|
|
6675
6732
|
* At least one id across the four target lists. Up to 1000 ids per list.
|
|
@@ -6772,7 +6829,7 @@ export type GoogleAdsManagerLink = {
|
|
|
6772
6829
|
/**
|
|
6773
6830
|
* Status the link has after this call.
|
|
6774
6831
|
*/
|
|
6775
|
-
export type
|
|
6832
|
+
export type status19 = 'PENDING' | 'ACTIVE' | 'REFUSED' | 'CANCELED' | 'INACTIVE';
|
|
6776
6833
|
|
|
6777
6834
|
export type GoogleAdsUserAccessInvitation = {
|
|
6778
6835
|
invitationId?: string;
|
|
@@ -6787,7 +6844,7 @@ export type GoogleAdsUserAccessInvitation = {
|
|
|
6787
6844
|
|
|
6788
6845
|
export type accessRole = 'ADMIN' | 'STANDARD' | 'READ_ONLY' | 'EMAIL_ONLY' | 'UNKNOWN';
|
|
6789
6846
|
|
|
6790
|
-
export type
|
|
6847
|
+
export type status20 = 'PENDING' | 'DECLINED' | 'EXPIRED' | 'UNKNOWN';
|
|
6791
6848
|
|
|
6792
6849
|
export type GoogleAdsUserAccessInvitationResult = {
|
|
6793
6850
|
customerId?: string;
|
|
@@ -6811,7 +6868,7 @@ export type GoogleAdsUserAccessInvitationResult = {
|
|
|
6811
6868
|
/**
|
|
6812
6869
|
* PENDING once the email is sent; PENDING_APPROVAL while Google waits for a second admin's multi-party approval.
|
|
6813
6870
|
*/
|
|
6814
|
-
export type
|
|
6871
|
+
export type status21 = 'PENDING' | 'PENDING_APPROVAL';
|
|
6815
6872
|
|
|
6816
6873
|
export type GoogleAdsUserInvitationApproval = {
|
|
6817
6874
|
/**
|
|
@@ -7576,7 +7633,7 @@ export type GoogleRecommendationResult = {
|
|
|
7576
7633
|
error?: string;
|
|
7577
7634
|
};
|
|
7578
7635
|
|
|
7579
|
-
export type
|
|
7636
|
+
export type status22 = 'applied' | 'dismissed' | 'failed';
|
|
7580
7637
|
|
|
7581
7638
|
export type GoogleRsaDescription = {
|
|
7582
7639
|
text: string;
|
|
@@ -7711,7 +7768,7 @@ export type ImessageSandboxContact = {
|
|
|
7711
7768
|
createdAt?: string;
|
|
7712
7769
|
};
|
|
7713
7770
|
|
|
7714
|
-
export type
|
|
7771
|
+
export type status23 = 'pending' | 'active';
|
|
7715
7772
|
|
|
7716
7773
|
/**
|
|
7717
7774
|
* An iMessage sender registered as an account on a profile.
|
|
@@ -7786,7 +7843,7 @@ export type region = 'US' | 'GB';
|
|
|
7786
7843
|
/**
|
|
7787
7844
|
* `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.
|
|
7788
7845
|
*/
|
|
7789
|
-
export type
|
|
7846
|
+
export type status24 = 'ordering' | 'awaiting_payment' | 'activating' | 'active' | 'suspended' | 'canceled' | 'failed';
|
|
7790
7847
|
|
|
7791
7848
|
/**
|
|
7792
7849
|
* Attachment snapshot inside an edit-history entry.
|
|
@@ -7858,7 +7915,7 @@ export type InboxWebhookConversation = {
|
|
|
7858
7915
|
contactId?: string;
|
|
7859
7916
|
};
|
|
7860
7917
|
|
|
7861
|
-
export type
|
|
7918
|
+
export type status25 = 'active' | 'archived';
|
|
7862
7919
|
|
|
7863
7920
|
/**
|
|
7864
7921
|
* The conversation object included in conversation lifecycle webhook payloads (conversation.started, conversation.control_changed).
|
|
@@ -9824,7 +9881,7 @@ export type OwnedPhoneNumber = {
|
|
|
9824
9881
|
}>;
|
|
9825
9882
|
};
|
|
9826
9883
|
|
|
9827
|
-
export type
|
|
9884
|
+
export type status26 = 'pending_payment' | 'pending_regulatory' | 'regulatory_declined' | 'provisioning' | 'verifying' | 'active' | 'suspended' | 'releasing' | 'released';
|
|
9828
9885
|
|
|
9829
9886
|
export type metaVerificationStatus = 'pending' | 'code_requested' | 'verified' | 'expired';
|
|
9830
9887
|
|
|
@@ -9962,7 +10019,7 @@ export type PlatformAnalytics = {
|
|
|
9962
10019
|
isOwner?: (boolean) | null;
|
|
9963
10020
|
};
|
|
9964
10021
|
|
|
9965
|
-
export type
|
|
10022
|
+
export type status27 = 'published' | 'failed';
|
|
9966
10023
|
|
|
9967
10024
|
/**
|
|
9968
10025
|
* Sync state of analytics for this platform
|
|
@@ -10397,7 +10454,7 @@ export type Product = {
|
|
|
10397
10454
|
publishedAt?: (string) | null;
|
|
10398
10455
|
};
|
|
10399
10456
|
|
|
10400
|
-
export type
|
|
10457
|
+
export type status28 = 'active' | 'draft' | 'archived';
|
|
10401
10458
|
|
|
10402
10459
|
export type ProductImage = {
|
|
10403
10460
|
url?: string;
|
|
@@ -10616,7 +10673,7 @@ export type RcsAgent = {
|
|
|
10616
10673
|
createdAt?: string;
|
|
10617
10674
|
};
|
|
10618
10675
|
|
|
10619
|
-
export type
|
|
10676
|
+
export type status29 = 'requested' | 'changes_requested' | 'brand_vetting' | 'agent_review' | 'testing' | 'launch_review' | 'launching' | 'live' | 'rejected' | 'deactivated';
|
|
10620
10677
|
|
|
10621
10678
|
export type useCase = 'MULTI_USE' | 'PROMOTIONAL' | 'TRANSACTIONAL' | 'OTP';
|
|
10622
10679
|
|
|
@@ -10668,7 +10725,7 @@ export type RcsBrand = RcsBrandInput & {
|
|
|
10668
10725
|
/**
|
|
10669
10726
|
* draft = not filed yet (still editable).
|
|
10670
10727
|
*/
|
|
10671
|
-
export type
|
|
10728
|
+
export type status30 = 'draft' | 'vetting' | 'verified' | 'rejected';
|
|
10672
10729
|
|
|
10673
10730
|
export type RcsBrandInput = {
|
|
10674
10731
|
displayName: string;
|
|
@@ -10755,7 +10812,7 @@ export type RcsCarrierApproval = {
|
|
|
10755
10812
|
|
|
10756
10813
|
export type scope2 = 'carrier' | 'hub' | 'bot';
|
|
10757
10814
|
|
|
10758
|
-
export type
|
|
10815
|
+
export type status31 = 'PENDING' | 'SUBMITTED' | 'APPROVED' | 'REJECTED';
|
|
10759
10816
|
|
|
10760
10817
|
/**
|
|
10761
10818
|
* Message content. `suggestions` (max 11) render as chips under the message.
|
|
@@ -11588,7 +11645,7 @@ export type SupportRun = {
|
|
|
11588
11645
|
/**
|
|
11589
11646
|
* 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.
|
|
11590
11647
|
*/
|
|
11591
|
-
export type
|
|
11648
|
+
export type status32 = 'queued' | 'running' | 'completed' | 'needs_human' | 'failed';
|
|
11592
11649
|
|
|
11593
11650
|
/**
|
|
11594
11651
|
* Why the run stopped. Null while it is in progress.
|
|
@@ -12490,7 +12547,7 @@ export type UploadTokenResponse = {
|
|
|
12490
12547
|
status?: 'pending' | 'completed' | 'expired';
|
|
12491
12548
|
};
|
|
12492
12549
|
|
|
12493
|
-
export type
|
|
12550
|
+
export type status33 = 'pending' | 'completed' | 'expired';
|
|
12494
12551
|
|
|
12495
12552
|
export type UploadTokenStatusResponse = {
|
|
12496
12553
|
token?: string;
|
|
@@ -12997,7 +13054,7 @@ export type Verification = {
|
|
|
12997
13054
|
resend?: boolean;
|
|
12998
13055
|
};
|
|
12999
13056
|
|
|
13000
|
-
export type
|
|
13057
|
+
export type status34 = 'pending' | 'approved' | 'expired' | 'max_attempts_reached' | 'canceled' | 'delivery_failed';
|
|
13001
13058
|
|
|
13002
13059
|
export type channel5 = 'sms' | 'whatsapp';
|
|
13003
13060
|
|
|
@@ -13155,7 +13212,7 @@ export type WebhookLog = {
|
|
|
13155
13212
|
/**
|
|
13156
13213
|
* Delivery outcome
|
|
13157
13214
|
*/
|
|
13158
|
-
export type
|
|
13215
|
+
export type status35 = 'success' | 'failed';
|
|
13159
13216
|
|
|
13160
13217
|
/**
|
|
13161
13218
|
* Webhook payload for `account.ads.initial_sync_completed` events.
|
|
@@ -13272,7 +13329,7 @@ export type event = 'account.ads.initial_sync_completed';
|
|
|
13272
13329
|
/**
|
|
13273
13330
|
* Overall outcome of the initial sync.
|
|
13274
13331
|
*/
|
|
13275
|
-
export type
|
|
13332
|
+
export type status36 = 'success' | 'failure';
|
|
13276
13333
|
|
|
13277
13334
|
/**
|
|
13278
13335
|
* Stable category for UX branching. New values may be added; existing ones are
|
|
@@ -13663,7 +13720,7 @@ export type event7 = 'ad.video.processed';
|
|
|
13663
13720
|
/**
|
|
13664
13721
|
* `ready`: usable as `video.id` on the create endpoints. `error`: Meta could not process it; upload again.
|
|
13665
13722
|
*/
|
|
13666
|
-
export type
|
|
13723
|
+
export type status37 = 'ready' | 'error';
|
|
13667
13724
|
|
|
13668
13725
|
/**
|
|
13669
13726
|
* Webhook payload for `analytics.synced`. Fired once per connected account each
|
|
@@ -15770,7 +15827,7 @@ export type event30 = 'post.platform.published' | 'post.platform.failed' | 'post
|
|
|
15770
15827
|
/**
|
|
15771
15828
|
* Terminal status this event fires on. Matches the event suffix.
|
|
15772
15829
|
*/
|
|
15773
|
-
export type
|
|
15830
|
+
export type status38 = 'published' | 'failed' | 'deleted';
|
|
15774
15831
|
|
|
15775
15832
|
/**
|
|
15776
15833
|
* Webhook payload for reaction received events (WhatsApp, Telegram, Slack, Instagram, Facebook Messenger, TikTok)
|
|
@@ -16167,7 +16224,7 @@ export type event39 = 'whatsapp.account.name_status_updated';
|
|
|
16167
16224
|
/**
|
|
16168
16225
|
* Normalized from Meta's `decision` (REJECTED -> DECLINED, DEFERRED -> PENDING_REVIEW; the review is still open on DEFERRED, not a rejection).
|
|
16169
16226
|
*/
|
|
16170
|
-
export type
|
|
16227
|
+
export type status39 = 'APPROVED' | 'DECLINED' | 'PENDING_REVIEW';
|
|
16171
16228
|
|
|
16172
16229
|
/**
|
|
16173
16230
|
* Webhook payload for `whatsapp.account.quality_updated`. Fired when a connected
|
|
@@ -16301,7 +16358,7 @@ export type event41 = 'whatsapp.account.status_updated';
|
|
|
16301
16358
|
/**
|
|
16302
16359
|
* `active` only on a reinstatement (DISABLED_UPDATE with ban state REINSTATE).
|
|
16303
16360
|
*/
|
|
16304
|
-
export type
|
|
16361
|
+
export type status40 = 'restricted' | 'active';
|
|
16305
16362
|
|
|
16306
16363
|
/**
|
|
16307
16364
|
* Webhook payload for the `whatsapp.contact.identity_changed` event. Fired when
|
|
@@ -16517,7 +16574,7 @@ export type event44 = 'whatsapp.template.status_updated';
|
|
|
16517
16574
|
* request before the template is actually removed.
|
|
16518
16575
|
*
|
|
16519
16576
|
*/
|
|
16520
|
-
export type
|
|
16577
|
+
export type status41 = 'APPROVED' | 'REJECTED' | 'PENDING' | 'PAUSED' | 'DISABLED' | 'IN_APPEAL' | 'PENDING_DELETION';
|
|
16521
16578
|
|
|
16522
16579
|
export type WebhookPayloadWorkflowRun = {
|
|
16523
16580
|
/**
|
|
@@ -16581,7 +16638,7 @@ export type event45 = 'workflow.run.started' | 'workflow.run.completed' | 'workf
|
|
|
16581
16638
|
/**
|
|
16582
16639
|
* 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.
|
|
16583
16640
|
*/
|
|
16584
|
-
export type
|
|
16641
|
+
export type status42 = 'running' | 'waiting' | 'completed' | 'exited' | 'failed';
|
|
16585
16642
|
|
|
16586
16643
|
/**
|
|
16587
16644
|
* 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.
|
|
@@ -16979,7 +17036,7 @@ export type WorkflowExecutionEvent = {
|
|
|
16979
17036
|
|
|
16980
17037
|
export type action2 = 'execution_started' | 'execution_completed' | 'execution_exited' | 'execution_paused' | 'execution_resumed' | 'node_started' | 'node_completed' | 'node_failed' | 'node_skipped';
|
|
16981
17038
|
|
|
16982
|
-
export type
|
|
17039
|
+
export type status43 = 'success' | 'failed' | 'pending';
|
|
16983
17040
|
|
|
16984
17041
|
/**
|
|
16985
17042
|
* A node in a workflow graph. `config` shape depends on `type`.
|
|
@@ -17001,9 +17058,9 @@ export type WorkflowNode = {
|
|
|
17001
17058
|
/**
|
|
17002
17059
|
* Type-specific settings. All string fields support `{{variable}}` interpolation against the run's variable bag (resolved at execution time).
|
|
17003
17060
|
*
|
|
17004
|
-
* **trigger**: `{ triggerType: inbound_message|api_call|whatsapp_event|referral|story_mention|comment|reaction, keywords:[string], matchType: any|contains|exact|regex, onlyFirstMessage:boolean, eventType: message_sent|message_delivered|message_read|message_failed|reaction, referral:{ ref, matchType: exact|prefix|any }, reaction:{ emojis:[string] }, comment:{ keywords:[string], matchType: any|contains|exact|regex, platformPostId }, cooldownHours:int (1-720) }`. Default `triggerType` is `inbound_message` for legacy nodes. A workflow starts only on events of its own trigger type: `inbound_message` on a message, `referral` on an ig.me / m.me / click-to-message ad referral (standalone, or the first message carrying one; the two are deduplicated per conversation within 60 seconds), `story_mention` on an Instagram story mention, `reaction` on a reaction (Instagram, Facebook, WhatsApp, Telegram groups), `comment` on an Instagram or Facebook comment (the run starts with no conversation and its first `send_message`, which must be text (with optional buttons or quick replies) or cards and must follow the trigger directly (checked on save; on some Instagram accounts Meta refuses buttons and cards to commenters who do not follow the account), is sent as a private reply to the comment; the run then continues in the conversation that reply opens; when an active comment automation's keywords match the comment, the automation answers and the workflow does not start), `whatsapp_event` on a WhatsApp status of a message we sent (filtered by `eventType`), `api_call` only via `POST /v1/workflows/{workflowId}/trigger`. `referral.matchType` defaults to `any`. `cooldownHours` (inbound_message, referral, story_mention, reaction and
|
|
17061
|
+
* **trigger**: `{ triggerType: inbound_message|api_call|whatsapp_event|referral|story_mention|comment|reaction|lead_received, keywords:[string], matchType: any|contains|exact|regex, onlyFirstMessage:boolean, eventType: message_sent|message_delivered|message_read|message_failed|reaction, referral:{ ref, matchType: exact|prefix|any }, reaction:{ emojis:[string] }, comment:{ keywords:[string], matchType: any|contains|exact|regex, platformPostId }, leadReceived:{ formIds:[string], pageAccountIds:[string], consentCheckboxKey, defaultCountry, allowCrossProfile:boolean }, cooldownHours:int (1-720) }`. Default `triggerType` is `inbound_message` for legacy nodes. A workflow starts only on events of its own trigger type: `inbound_message` on a message, `referral` on an ig.me / m.me / click-to-message ad referral (standalone, or the first message carrying one; the two are deduplicated per conversation within 60 seconds), `story_mention` on an Instagram story mention, `reaction` on a reaction (Instagram, Facebook, WhatsApp, Telegram groups), `comment` on an Instagram or Facebook comment (the run starts with no conversation and its first `send_message`, which must be text (with optional buttons or quick replies) or cards and must follow the trigger directly (checked on save; on some Instagram accounts Meta refuses buttons and cards to commenters who do not follow the account), is sent as a private reply to the comment; the run then continues in the conversation that reply opens; when an active comment automation's keywords match the comment, the automation answers and the workflow does not start), `whatsapp_event` on a WhatsApp status of a message we sent (filtered by `eventType`), `api_call` only via `POST /v1/workflows/{workflowId}/trigger`, and `lead_received` (WhatsApp workflows only) when a Meta lead ad form is submitted. A `lead_received` trigger needs `leadReceived.consentCheckboxKey` and at least one of `formIds` or `pageAccountIds`; a form scope wins over a Page scope, then the earliest activated workflow. It starts only for leads submitted in the last hour and after the workflow was activated, whose consent checkbox (the form's custom disclaimer, see `POST /v1/ads/lead-forms`) is ticked, and whose phone number parses to a valid international number (`defaultCountry`, ISO 3166 alpha-2, defaults to the country of the workflow's WhatsApp number); otherwise the lead is marked `unreachable`. The Page and the WhatsApp number must be in the same profile unless `allowCrossProfile` is true. Every send or call reached first from the trigger must be a WhatsApp template (checked on save). `referral.matchType` defaults to `any`. `cooldownHours` (inbound_message, referral, story_mention, reaction, whatsapp_event and lead_received, where it defaults to 24) stops the same contact from starting the workflow again inside the window. A `whatsapp_event` workflow never starts on the status of a message a workflow, sequence or comment automation sent. A redelivered platform event never starts the same workflow twice.
|
|
17005
17062
|
*
|
|
17006
|
-
* **Variables** available from the start of every run (absent values are `''`): `lastMessage`, `inboundText`, `triggerText`, `conversationId`, `contact.name`, `contact.phone`, `contact.handle`, `contact.tags` (array), `contact.fields` (the contact's custom fields object), `contact.lastInteractionAt` (ISO date), `contact.lastInteractionHoursAgo` (number), `contact.isFollower` (Instagram, from the stored profile: true, false or `''` when unknown), `referral.ref`, `referral.source`, `referral.type`, `referral.adId`, `postback.payload`, `postback.title`, `quickReply.payload`, `quickReply.title`, `story.id`, `story.url`, `comment.id`, `comment.text`, `comment.platformPostId`, `reaction.emoji`, `reaction.action` (added|removed). `api_call` runs also get the request's `variables`, merged over these. An array or object interpolated into text renders as JSON.
|
|
17063
|
+
* **Variables** available from the start of every run (absent values are `''`): `lastMessage`, `inboundText`, `triggerText`, `conversationId`, `contact.name`, `contact.phone`, `contact.handle`, `contact.tags` (array), `contact.fields` (the contact's custom fields object), `contact.lastInteractionAt` (ISO date), `contact.lastInteractionHoursAgo` (number), `contact.isFollower` (Instagram, from the stored profile: true, false or `''` when unknown), `referral.ref`, `referral.source`, `referral.type`, `referral.adId`, `postback.payload`, `postback.title`, `quickReply.payload`, `quickReply.title`, `story.id`, `story.url`, `comment.id`, `comment.text`, `comment.platformPostId`, `reaction.emoji`, `reaction.action` (added|removed). `api_call` runs also get the request's `variables`, merged over these. `lead_received` runs also get `lead.id`, `lead.leadgenId`, `lead.formId`, `lead.formName`, `lead.adId`, `lead.adsetId`, `lead.campaignId` and every form answer by its key (`lead.full_name`, `lead.email`, `lead.phone_number`). Template `variableMapping` entries with `field: custom` interpolate `{{...}}` in `customValue`. An array or object interpolated into text renders as JSON.
|
|
17007
17064
|
*
|
|
17008
17065
|
* **send_message**: `{ messageType: text|template|media|interactive|cards, text, template, media:{mediaType:image|video|audio|document, url,caption}, interactive, buttons, quickReplies, messageTag }`. `template` is `{name,language,variableMapping}` for `messageType: template` and `{ type: generic, elements:[{ title, subtitle, imageUrl, buttons }] }` (1 to 10 cards) for `messageType: cards`. `template` and `interactive` are WhatsApp-only. `interactive.type` is inferred from the payload shape when omitted; payloads with neither `type` nor an inferable shape are rejected.
|
|
17009
17066
|
* Facebook and Instagram only (rejected with a 400 on other platforms; WhatsApp keeps `interactive`): `cards`, plus `buttons` on `text` (cards carry their own buttons) and `quickReplies` / `messageTag` on `text`, `media` and `cards`. `media` takes no `buttons` (a 400 at save). `buttons:[{ type: url|postback|phone, title, url, payload, phone, workflowId }]` (1 to 3, text only and the text then 640 characters at most, sent as Meta's button_template, `phone` Facebook-only, not inside cards), `quickReplies:[{ title, payload, imageUrl, workflowId }]` (1 to 13, not combined with `buttons`) and `messageTag: HUMAN_AGENT|CONFIRMED_EVENT_UPDATE|POST_PURCHASE_UPDATE|ACCOUNT_UPDATE` (Instagram accepts only `HUMAN_AGENT`). Titles are capped at 20 characters (80 for card titles and subtitles). A postback button or quick reply with no `payload` gets `zernio:workflow:<this workflow id>`, so a tap answers this workflow's pending `wait_for_reply` or restarts it; with `workflowId` (a 24-hex workflow id, not combined with `payload`) the tap starts that workflow instead.
|
|
@@ -48169,6 +48226,134 @@ export type UpdateAdAccountManagerLinkResponse = (GoogleAdsManagerLink);
|
|
|
48169
48226
|
|
|
48170
48227
|
export type UpdateAdAccountManagerLinkError = (ErrorResponse | unknown);
|
|
48171
48228
|
|
|
48229
|
+
export type GetAdAccountBillingData = {
|
|
48230
|
+
query: {
|
|
48231
|
+
/**
|
|
48232
|
+
* Google ads SocialAccount id.
|
|
48233
|
+
*/
|
|
48234
|
+
accountId: string;
|
|
48235
|
+
/**
|
|
48236
|
+
* Google Ads customer id, digits only. Defaults to the connection's selected customer.
|
|
48237
|
+
*/
|
|
48238
|
+
adAccountId?: string;
|
|
48239
|
+
};
|
|
48240
|
+
};
|
|
48241
|
+
|
|
48242
|
+
export type GetAdAccountBillingResponse = ({
|
|
48243
|
+
customerId?: string;
|
|
48244
|
+
paymentsAccounts?: Array<{
|
|
48245
|
+
/**
|
|
48246
|
+
* Format 1234-5678-9012-3456. Pass it to POST /v1/ads/accounts/billing.
|
|
48247
|
+
*/
|
|
48248
|
+
paymentsAccountId?: string;
|
|
48249
|
+
name?: (string) | null;
|
|
48250
|
+
currency?: (string) | null;
|
|
48251
|
+
paymentsProfileId?: (string) | null;
|
|
48252
|
+
/**
|
|
48253
|
+
* Manager whose monthly invoice pays this account.
|
|
48254
|
+
*/
|
|
48255
|
+
payingManagerCustomerId?: (string) | null;
|
|
48256
|
+
}>;
|
|
48257
|
+
billingSetups?: Array<{
|
|
48258
|
+
billingSetupId?: string;
|
|
48259
|
+
/**
|
|
48260
|
+
* APPROVED_HELD means approved but waiting for its first account budget to be approved.
|
|
48261
|
+
*/
|
|
48262
|
+
status?: 'PENDING' | 'APPROVED_HELD' | 'APPROVED' | 'CANCELLED' | 'UNKNOWN';
|
|
48263
|
+
paymentsAccountId?: (string) | null;
|
|
48264
|
+
/**
|
|
48265
|
+
* In the account time zone, as Google returns it.
|
|
48266
|
+
*/
|
|
48267
|
+
startDateTime?: (string) | null;
|
|
48268
|
+
endDateTime?: (string) | null;
|
|
48269
|
+
}>;
|
|
48270
|
+
accountBudgets?: Array<{
|
|
48271
|
+
accountBudgetId?: string;
|
|
48272
|
+
status?: 'PENDING' | 'APPROVED' | 'CANCELLED' | 'UNKNOWN';
|
|
48273
|
+
billingSetupId?: (string) | null;
|
|
48274
|
+
approvedSpendingLimitMicros?: (string) | null;
|
|
48275
|
+
/**
|
|
48276
|
+
* INFINITE for an unlimited budget.
|
|
48277
|
+
*/
|
|
48278
|
+
approvedSpendingLimitType?: (string) | null;
|
|
48279
|
+
/**
|
|
48280
|
+
* Account budget proposal still waiting for Google's review.
|
|
48281
|
+
*/
|
|
48282
|
+
pendingProposalId?: (string) | null;
|
|
48283
|
+
}>;
|
|
48284
|
+
/**
|
|
48285
|
+
* New account budgets proposed but not yet approved by Google. A setup with one is not reused by the POST.
|
|
48286
|
+
*/
|
|
48287
|
+
pendingBudgetProposals?: Array<{
|
|
48288
|
+
accountBudgetProposalId?: string;
|
|
48289
|
+
billingSetupId?: (string) | null;
|
|
48290
|
+
}>;
|
|
48291
|
+
/**
|
|
48292
|
+
* When this data was fetched from Google. Null when the cache is unavailable.
|
|
48293
|
+
*/
|
|
48294
|
+
cachedAt?: (string) | null;
|
|
48295
|
+
/**
|
|
48296
|
+
* True when Google's quota was exhausted and this is the last successful fetch.
|
|
48297
|
+
*/
|
|
48298
|
+
stale?: boolean;
|
|
48299
|
+
});
|
|
48300
|
+
|
|
48301
|
+
export type GetAdAccountBillingError = (ErrorResponse | unknown);
|
|
48302
|
+
|
|
48303
|
+
export type SetUpAdAccountBillingData = {
|
|
48304
|
+
body: {
|
|
48305
|
+
/**
|
|
48306
|
+
* Google ads SocialAccount id.
|
|
48307
|
+
*/
|
|
48308
|
+
accountId: string;
|
|
48309
|
+
/**
|
|
48310
|
+
* Google Ads customer id to bill, digits only.
|
|
48311
|
+
*/
|
|
48312
|
+
adAccountId: string;
|
|
48313
|
+
/**
|
|
48314
|
+
* Monthly invoicing payments account from GET /v1/ads/accounts/billing.
|
|
48315
|
+
*/
|
|
48316
|
+
paymentsAccountId: string;
|
|
48317
|
+
/**
|
|
48318
|
+
* Account budget cap in the account currency. Omit for an unlimited budget.
|
|
48319
|
+
*/
|
|
48320
|
+
spendingLimit?: number;
|
|
48321
|
+
budgetName?: string;
|
|
48322
|
+
/**
|
|
48323
|
+
* Printed on the invoice. No effect on delivery.
|
|
48324
|
+
*/
|
|
48325
|
+
purchaseOrderNumber?: string;
|
|
48326
|
+
validateOnly?: boolean;
|
|
48327
|
+
};
|
|
48328
|
+
};
|
|
48329
|
+
|
|
48330
|
+
export type SetUpAdAccountBillingResponse = ({
|
|
48331
|
+
customerId?: string;
|
|
48332
|
+
paymentsAccountId?: string;
|
|
48333
|
+
paymentsAccountName?: (string) | null;
|
|
48334
|
+
billingSetupId?: (string) | null;
|
|
48335
|
+
reusedBillingSetup?: boolean;
|
|
48336
|
+
/**
|
|
48337
|
+
* Always null for validateOnly.
|
|
48338
|
+
*/
|
|
48339
|
+
accountBudgetProposalId?: (string) | null;
|
|
48340
|
+
validateOnly?: boolean;
|
|
48341
|
+
} | {
|
|
48342
|
+
customerId?: string;
|
|
48343
|
+
paymentsAccountId?: string;
|
|
48344
|
+
paymentsAccountName?: (string) | null;
|
|
48345
|
+
billingSetupId?: string;
|
|
48346
|
+
/**
|
|
48347
|
+
* True when an existing setup on the same payments account without a budget was completed.
|
|
48348
|
+
*/
|
|
48349
|
+
reusedBillingSetup?: boolean;
|
|
48350
|
+
accountBudgetProposalId?: (string) | null;
|
|
48351
|
+
validateOnly?: boolean;
|
|
48352
|
+
nextSteps?: string;
|
|
48353
|
+
});
|
|
48354
|
+
|
|
48355
|
+
export type SetUpAdAccountBillingError = (ErrorResponse | unknown);
|
|
48356
|
+
|
|
48172
48357
|
export type ListAdAccountUserInvitationsData = {
|
|
48173
48358
|
query: {
|
|
48174
48359
|
/**
|
|
@@ -50930,42 +51115,7 @@ export type ListLeadsData = {
|
|
|
50930
51115
|
|
|
50931
51116
|
export type ListLeadsResponse = ({
|
|
50932
51117
|
status?: string;
|
|
50933
|
-
leads?: Array<
|
|
50934
|
-
/**
|
|
50935
|
-
* Zernio lead id.
|
|
50936
|
-
*/
|
|
50937
|
-
id?: string;
|
|
50938
|
-
/**
|
|
50939
|
-
* Meta lead id. On LinkedIn, the leadFormResponse id.
|
|
50940
|
-
*/
|
|
50941
|
-
leadgenId?: string;
|
|
50942
|
-
formId?: string;
|
|
50943
|
-
formName?: (string) | null;
|
|
50944
|
-
accountId?: string;
|
|
50945
|
-
adId?: (string) | null;
|
|
50946
|
-
adsetId?: (string) | null;
|
|
50947
|
-
/**
|
|
50948
|
-
* On LinkedIn, this is the LinkedIn Campaign id, which corresponds to platformAdSetId on GET /v1/ads (LinkedIn's Campaign Group is Zernio's campaign).
|
|
50949
|
-
*/
|
|
50950
|
-
campaignId?: (string) | null;
|
|
50951
|
-
isOrganic?: boolean;
|
|
50952
|
-
/**
|
|
50953
|
-
* ISO 8601.
|
|
50954
|
-
*/
|
|
50955
|
-
createdTime?: (string) | null;
|
|
50956
|
-
/**
|
|
50957
|
-
* Question key → answer. On LinkedIn, the key is the lowercased predefinedField, else the question name, else the numeric questionId; multiple-choice values are option labels (unlike Meta, which returns the option key).
|
|
50958
|
-
*/
|
|
50959
|
-
fields?: {
|
|
50960
|
-
[key: string]: (string);
|
|
50961
|
-
};
|
|
50962
|
-
/**
|
|
50963
|
-
* Raw Meta field_data.
|
|
50964
|
-
*/
|
|
50965
|
-
fieldData?: Array<{
|
|
50966
|
-
[key: string]: unknown;
|
|
50967
|
-
}>;
|
|
50968
|
-
}>;
|
|
51118
|
+
leads?: Array<AdLead>;
|
|
50969
51119
|
pagination?: {
|
|
50970
51120
|
hasMore?: boolean;
|
|
50971
51121
|
cursor?: (string) | null;
|
|
@@ -50981,6 +51131,37 @@ export type ListLeadsResponse = ({
|
|
|
50981
51131
|
|
|
50982
51132
|
export type ListLeadsError = (ErrorResponse | unknown);
|
|
50983
51133
|
|
|
51134
|
+
export type UpdateLeadData = {
|
|
51135
|
+
body: {
|
|
51136
|
+
status: 'new' | 'contacted' | 'unreachable' | 'qualified' | 'converted' | 'disqualified';
|
|
51137
|
+
/**
|
|
51138
|
+
* Deal value; requires currency.
|
|
51139
|
+
*/
|
|
51140
|
+
value?: number;
|
|
51141
|
+
/**
|
|
51142
|
+
* ISO 4217 code.
|
|
51143
|
+
*/
|
|
51144
|
+
currency?: string;
|
|
51145
|
+
/**
|
|
51146
|
+
* Required when `{id}` is a Meta leadgenId: the facebook or metaads account that received the lead.
|
|
51147
|
+
*/
|
|
51148
|
+
accountId?: string;
|
|
51149
|
+
};
|
|
51150
|
+
path: {
|
|
51151
|
+
/**
|
|
51152
|
+
* Zernio lead id, or the Meta leadgenId (then accountId is required).
|
|
51153
|
+
*/
|
|
51154
|
+
id: string;
|
|
51155
|
+
};
|
|
51156
|
+
};
|
|
51157
|
+
|
|
51158
|
+
export type UpdateLeadResponse = ({
|
|
51159
|
+
status?: string;
|
|
51160
|
+
lead?: AdLead;
|
|
51161
|
+
});
|
|
51162
|
+
|
|
51163
|
+
export type UpdateLeadError = (ErrorResponse | unknown);
|
|
51164
|
+
|
|
50984
51165
|
export type ListLeadFormsData = {
|
|
50985
51166
|
query: {
|
|
50986
51167
|
/**
|
|
@@ -51137,6 +51318,19 @@ export type CreateLeadFormData = {
|
|
|
51137
51318
|
*/
|
|
51138
51319
|
coverPhoto?: string;
|
|
51139
51320
|
};
|
|
51321
|
+
/**
|
|
51322
|
+
* Consent section with checkboxes (Meta custom_disclaimer). Each lead's answers come back on the lead, and a lead_received workflow only messages leads that ticked its consentCheckboxKey.
|
|
51323
|
+
*/
|
|
51324
|
+
customDisclaimer?: {
|
|
51325
|
+
title: string;
|
|
51326
|
+
body: string;
|
|
51327
|
+
checkboxes: Array<{
|
|
51328
|
+
key: string;
|
|
51329
|
+
text: string;
|
|
51330
|
+
isRequired?: boolean;
|
|
51331
|
+
isCheckedByDefault?: boolean;
|
|
51332
|
+
}>;
|
|
51333
|
+
};
|
|
51140
51334
|
} | {
|
|
51141
51335
|
/**
|
|
51142
51336
|
* LinkedIn ad account id (resolves the owning organization).
|
|
@@ -51264,7 +51458,18 @@ export type ListFormLeadsData = {
|
|
|
51264
51458
|
export type ListFormLeadsResponse = ({
|
|
51265
51459
|
status?: string;
|
|
51266
51460
|
leads?: Array<{
|
|
51461
|
+
/**
|
|
51462
|
+
* Meta leadgenId.
|
|
51463
|
+
*/
|
|
51267
51464
|
id?: string;
|
|
51465
|
+
/**
|
|
51466
|
+
* Zernio lead id, for PATCH /v1/ads/leads/{id}. Only on persisted leads.
|
|
51467
|
+
*/
|
|
51468
|
+
leadId?: string;
|
|
51469
|
+
/**
|
|
51470
|
+
* Lead status (see PATCH /v1/ads/leads/{id}). Only on persisted leads.
|
|
51471
|
+
*/
|
|
51472
|
+
status?: string;
|
|
51268
51473
|
createdTime?: (string) | null;
|
|
51269
51474
|
adId?: (string) | null;
|
|
51270
51475
|
formId?: string;
|