@getlatedev/node 0.2.1177 → 0.2.1178
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/dist/index.d.mts +51 -29
- package/dist/index.d.ts +51 -29
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +30 -5
- package/src/generated/types.gen.ts +51 -29
package/dist/index.d.mts
CHANGED
|
@@ -6233,7 +6233,9 @@ type CtwaAdRequestBody = {
|
|
|
6233
6233
|
whatsappPhoneNumber?: string;
|
|
6234
6234
|
/**
|
|
6235
6235
|
* Single-creative shape only. Mutually exclusive with
|
|
6236
|
-
* `creatives[]`.
|
|
6236
|
+
* `creatives[]`. Required on a single image or video ad (including
|
|
6237
|
+
* one built with `placementAssets`); not used by a `carouselCards`
|
|
6238
|
+
* ad and not accepted with an existing post reference.
|
|
6237
6239
|
*
|
|
6238
6240
|
*/
|
|
6239
6241
|
headline?: string;
|
|
@@ -6323,7 +6325,9 @@ type CtwaAdRequestBody = {
|
|
|
6323
6325
|
};
|
|
6324
6326
|
/**
|
|
6325
6327
|
* Messaging and CTWA only (a 400 on POST /v1/ads/call). A hand-built carousel
|
|
6326
|
-
* of 2-10 image cards, sent to Meta
|
|
6328
|
+
* of 2-10 image cards, sent to Meta in the order given as
|
|
6329
|
+
* `link_data.child_attachments` (Meta may reorder them for performance, since
|
|
6330
|
+
* `multi_share_optimized` defaults to true and no field fixes the order today); every
|
|
6327
6331
|
* card (and the carousel itself) carries the destination's messaging call to
|
|
6328
6332
|
* action (WHATSAPP_MESSAGE, MESSAGE_PAGE or INSTAGRAM_MESSAGE), so a tap on any
|
|
6329
6333
|
* card opens the conversation. Replaces `imageUrl` / `video` (sending either is
|
|
@@ -6400,7 +6404,7 @@ type CtwaAdRequestBody = {
|
|
|
6400
6404
|
thumbnailUrl?: string;
|
|
6401
6405
|
};
|
|
6402
6406
|
/**
|
|
6403
|
-
* Custom chat welcome message for this entry.
|
|
6407
|
+
* Custom chat welcome message for this entry: `text` plus exactly one of `prefillText` or `quickReplies` (400 otherwise). Same shape as the top-level `welcomeMessage` of the single-creative shape.
|
|
6404
6408
|
*/
|
|
6405
6409
|
welcomeMessage?: {
|
|
6406
6410
|
/**
|
|
@@ -6408,9 +6412,22 @@ type CtwaAdRequestBody = {
|
|
|
6408
6412
|
*/
|
|
6409
6413
|
text: string;
|
|
6410
6414
|
/**
|
|
6411
|
-
* Message put into the user's text input, ready to send. Replaces Meta's default.
|
|
6415
|
+
* Message put into the user's text input, ready to send. Replaces Meta's default. Exactly one of prefillText or quickReplies.
|
|
6412
6416
|
*/
|
|
6413
|
-
prefillText
|
|
6417
|
+
prefillText?: string;
|
|
6418
|
+
/**
|
|
6419
|
+
* Tappable chips under the greeting instead of a prefilled message. Exactly one of prefillText or quickReplies.
|
|
6420
|
+
*/
|
|
6421
|
+
quickReplies?: Array<{
|
|
6422
|
+
/**
|
|
6423
|
+
* Chip label the person taps.
|
|
6424
|
+
*/
|
|
6425
|
+
title: string;
|
|
6426
|
+
/**
|
|
6427
|
+
* Opaque string you choose; delivered on the message.received webhook as interactiveMetadata.quickReplyPayload when the chip is tapped.
|
|
6428
|
+
*/
|
|
6429
|
+
payload: string;
|
|
6430
|
+
}>;
|
|
6414
6431
|
};
|
|
6415
6432
|
/**
|
|
6416
6433
|
* A 2-10 card carousel for this entry instead of `imageUrl` / `video`; `body` is required. Same rules as the top-level `carouselCards`. Carousel and single-media entries can be mixed on one ad set.
|
|
@@ -10717,7 +10734,7 @@ type ParameterCatalogProductId = string;
|
|
|
10717
10734
|
*/
|
|
10718
10735
|
type ParameterCatalogTokenAccountId = string;
|
|
10719
10736
|
/**
|
|
10720
|
-
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409.
|
|
10737
|
+
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409. A request cut off mid-handler (for example by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
10721
10738
|
*/
|
|
10722
10739
|
type ParameterIdempotencyKeyHeader = string;
|
|
10723
10740
|
/**
|
|
@@ -15919,9 +15936,12 @@ type WebhookPayloadMessageSent = {
|
|
|
15919
15936
|
* on the inbox analytics endpoints, and the same value a later
|
|
15920
15937
|
* GET on this message returns.
|
|
15921
15938
|
*
|
|
15922
|
-
* Always present, and `null` whenever the lineage is unknown:
|
|
15923
|
-
* message sent
|
|
15924
|
-
*
|
|
15939
|
+
* Always present, and `null` whenever the lineage is unknown: any
|
|
15940
|
+
* outgoing message not sent through Zernio (one typed in the
|
|
15941
|
+
* platform's own app, a Meta automated reply such as an instant
|
|
15942
|
+
* reply or away message, the echo of a click-to-message ad's
|
|
15943
|
+
* greeting), and every message stored before this field shipped
|
|
15944
|
+
* (2026-08). Existing messages
|
|
15925
15945
|
* are NOT backfilled, so treat `null` as "unknown", never as
|
|
15926
15946
|
* "sent by a human".
|
|
15927
15947
|
*
|
|
@@ -20540,7 +20560,7 @@ type CreateProfileData = {
|
|
|
20540
20560
|
};
|
|
20541
20561
|
headers?: {
|
|
20542
20562
|
/**
|
|
20543
|
-
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409.
|
|
20563
|
+
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409. A request cut off mid-handler (for example by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
20544
20564
|
*/
|
|
20545
20565
|
'Idempotency-Key'?: string;
|
|
20546
20566
|
};
|
|
@@ -29367,7 +29387,7 @@ type SendInboxMessageData = {
|
|
|
29367
29387
|
};
|
|
29368
29388
|
headers?: {
|
|
29369
29389
|
/**
|
|
29370
|
-
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409.
|
|
29390
|
+
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409. A request cut off mid-handler (for example by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
29371
29391
|
*/
|
|
29372
29392
|
'Idempotency-Key'?: string;
|
|
29373
29393
|
};
|
|
@@ -29728,7 +29748,7 @@ type RemoveMessageReactionError = (unknown | ErrorResponse);
|
|
|
29728
29748
|
type UploadMediaDirectData = {
|
|
29729
29749
|
body: {
|
|
29730
29750
|
/**
|
|
29731
|
-
* The file to upload (
|
|
29751
|
+
* The file to upload (about 4.5 MB at most in practice; use POST /v1/media/presign for larger files)
|
|
29732
29752
|
*/
|
|
29733
29753
|
file: (Blob | File);
|
|
29734
29754
|
/**
|
|
@@ -30395,7 +30415,7 @@ type ReplyToInboxPostData = {
|
|
|
30395
30415
|
};
|
|
30396
30416
|
headers?: {
|
|
30397
30417
|
/**
|
|
30398
|
-
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409.
|
|
30418
|
+
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409. A request cut off mid-handler (for example by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
30399
30419
|
*/
|
|
30400
30420
|
'Idempotency-Key'?: string;
|
|
30401
30421
|
};
|
|
@@ -31230,7 +31250,7 @@ type ReplyToInboxReviewData = {
|
|
|
31230
31250
|
};
|
|
31231
31251
|
headers?: {
|
|
31232
31252
|
/**
|
|
31233
|
-
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409.
|
|
31253
|
+
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409. A request cut off mid-handler (for example by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
31234
31254
|
*/
|
|
31235
31255
|
'Idempotency-Key'?: string;
|
|
31236
31256
|
};
|
|
@@ -31811,7 +31831,7 @@ type InitiateWhatsAppCallData = {
|
|
|
31811
31831
|
};
|
|
31812
31832
|
headers?: {
|
|
31813
31833
|
/**
|
|
31814
|
-
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409.
|
|
31834
|
+
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409. A request cut off mid-handler (for example by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
31815
31835
|
*/
|
|
31816
31836
|
'Idempotency-Key'?: string;
|
|
31817
31837
|
};
|
|
@@ -32050,7 +32070,7 @@ type CreateVoiceCallData = {
|
|
|
32050
32070
|
};
|
|
32051
32071
|
headers?: {
|
|
32052
32072
|
/**
|
|
32053
|
-
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409.
|
|
32073
|
+
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409. A request cut off mid-handler (for example by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
32054
32074
|
*/
|
|
32055
32075
|
'Idempotency-Key'?: string;
|
|
32056
32076
|
};
|
|
@@ -32644,7 +32664,7 @@ type SendSmsData = {
|
|
|
32644
32664
|
};
|
|
32645
32665
|
headers?: {
|
|
32646
32666
|
/**
|
|
32647
|
-
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409.
|
|
32667
|
+
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409. A request cut off mid-handler (for example by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
32648
32668
|
*/
|
|
32649
32669
|
'Idempotency-Key'?: string;
|
|
32650
32670
|
};
|
|
@@ -32695,7 +32715,7 @@ type CreateRcsAgentData = {
|
|
|
32695
32715
|
};
|
|
32696
32716
|
headers?: {
|
|
32697
32717
|
/**
|
|
32698
|
-
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409.
|
|
32718
|
+
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409. A request cut off mid-handler (for example by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
32699
32719
|
*/
|
|
32700
32720
|
'Idempotency-Key'?: string;
|
|
32701
32721
|
};
|
|
@@ -32812,7 +32832,7 @@ type SendRcsMessageData = {
|
|
|
32812
32832
|
};
|
|
32813
32833
|
headers?: {
|
|
32814
32834
|
/**
|
|
32815
|
-
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409.
|
|
32835
|
+
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409. A request cut off mid-handler (for example by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
32816
32836
|
*/
|
|
32817
32837
|
'Idempotency-Key'?: string;
|
|
32818
32838
|
};
|
|
@@ -32993,7 +33013,7 @@ type CreateBrandedCallingEnterpriseData = {
|
|
|
32993
33013
|
};
|
|
32994
33014
|
headers?: {
|
|
32995
33015
|
/**
|
|
32996
|
-
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409.
|
|
33016
|
+
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409. A request cut off mid-handler (for example by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
32997
33017
|
*/
|
|
32998
33018
|
'Idempotency-Key'?: string;
|
|
32999
33019
|
};
|
|
@@ -33073,7 +33093,7 @@ type CreateBrandedCallingIdentityData = {
|
|
|
33073
33093
|
};
|
|
33074
33094
|
headers?: {
|
|
33075
33095
|
/**
|
|
33076
|
-
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409.
|
|
33096
|
+
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409. A request cut off mid-handler (for example by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
33077
33097
|
*/
|
|
33078
33098
|
'Idempotency-Key'?: string;
|
|
33079
33099
|
};
|
|
@@ -38693,7 +38713,7 @@ type AskSupportQuestionData = {
|
|
|
38693
38713
|
};
|
|
38694
38714
|
headers?: {
|
|
38695
38715
|
/**
|
|
38696
|
-
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409.
|
|
38716
|
+
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409. A request cut off mid-handler (for example by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
38697
38717
|
*/
|
|
38698
38718
|
'Idempotency-Key'?: string;
|
|
38699
38719
|
};
|
|
@@ -46987,7 +47007,7 @@ type BoostPostData = {
|
|
|
46987
47007
|
};
|
|
46988
47008
|
headers?: {
|
|
46989
47009
|
/**
|
|
46990
|
-
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409.
|
|
47010
|
+
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409. A request cut off mid-handler (for example by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
46991
47011
|
*/
|
|
46992
47012
|
'Idempotency-Key'?: string;
|
|
46993
47013
|
};
|
|
@@ -47885,9 +47905,11 @@ type CreateStandaloneAdData = {
|
|
|
47885
47905
|
* (card `callToAction`, falling back to the top-level one) and caption (card
|
|
47886
47906
|
* `headline`, else `description`). `headline` is still required.
|
|
47887
47907
|
*
|
|
47888
|
-
* Meta only. Hand-built carousel: 2-10 authored cards in
|
|
47908
|
+
* Meta only. Hand-built carousel: 2-10 authored cards, sent in the order given as
|
|
47889
47909
|
* the creative's `link_data.child_attachments`. Unlike `dynamicCreative`,
|
|
47890
|
-
* you
|
|
47910
|
+
* you author every card's copy and link, but Meta may still reorder the cards
|
|
47911
|
+
* for performance (`multi_share_optimized` defaults to true and Zernio does not
|
|
47912
|
+
* send it), and no field fixes the order today. Requires top-level `body`
|
|
47891
47913
|
* and `callToAction`; `linkUrl` is also required UNLESS `leadGenFormId` is set. Those
|
|
47892
47914
|
* become the ad's own Destination and button (`link_data.link` / `link_data.call_to_action`),
|
|
47893
47915
|
* and double as the per-card fallback when a card omits its own.
|
|
@@ -48330,7 +48352,7 @@ type CreateStandaloneAdData = {
|
|
|
48330
48352
|
};
|
|
48331
48353
|
headers?: {
|
|
48332
48354
|
/**
|
|
48333
|
-
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409.
|
|
48355
|
+
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409. A request cut off mid-handler (for example by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
48334
48356
|
*/
|
|
48335
48357
|
'Idempotency-Key'?: string;
|
|
48336
48358
|
};
|
|
@@ -51370,7 +51392,7 @@ type CreateMessagingAdData = {
|
|
|
51370
51392
|
});
|
|
51371
51393
|
headers?: {
|
|
51372
51394
|
/**
|
|
51373
|
-
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409.
|
|
51395
|
+
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409. A request cut off mid-handler (for example by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
51374
51396
|
*/
|
|
51375
51397
|
'Idempotency-Key'?: string;
|
|
51376
51398
|
};
|
|
@@ -51401,7 +51423,7 @@ type CreateCallAdData = {
|
|
|
51401
51423
|
});
|
|
51402
51424
|
headers?: {
|
|
51403
51425
|
/**
|
|
51404
|
-
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409.
|
|
51426
|
+
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409. A request cut off mid-handler (for example by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
51405
51427
|
*/
|
|
51406
51428
|
'Idempotency-Key'?: string;
|
|
51407
51429
|
};
|
|
@@ -51412,7 +51434,7 @@ type CreateCtwaAdData = {
|
|
|
51412
51434
|
body: CtwaAdRequestBody;
|
|
51413
51435
|
headers?: {
|
|
51414
51436
|
/**
|
|
51415
|
-
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409.
|
|
51437
|
+
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409. A request cut off mid-handler (for example by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
51416
51438
|
*/
|
|
51417
51439
|
'Idempotency-Key'?: string;
|
|
51418
51440
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -6233,7 +6233,9 @@ type CtwaAdRequestBody = {
|
|
|
6233
6233
|
whatsappPhoneNumber?: string;
|
|
6234
6234
|
/**
|
|
6235
6235
|
* Single-creative shape only. Mutually exclusive with
|
|
6236
|
-
* `creatives[]`.
|
|
6236
|
+
* `creatives[]`. Required on a single image or video ad (including
|
|
6237
|
+
* one built with `placementAssets`); not used by a `carouselCards`
|
|
6238
|
+
* ad and not accepted with an existing post reference.
|
|
6237
6239
|
*
|
|
6238
6240
|
*/
|
|
6239
6241
|
headline?: string;
|
|
@@ -6323,7 +6325,9 @@ type CtwaAdRequestBody = {
|
|
|
6323
6325
|
};
|
|
6324
6326
|
/**
|
|
6325
6327
|
* Messaging and CTWA only (a 400 on POST /v1/ads/call). A hand-built carousel
|
|
6326
|
-
* of 2-10 image cards, sent to Meta
|
|
6328
|
+
* of 2-10 image cards, sent to Meta in the order given as
|
|
6329
|
+
* `link_data.child_attachments` (Meta may reorder them for performance, since
|
|
6330
|
+
* `multi_share_optimized` defaults to true and no field fixes the order today); every
|
|
6327
6331
|
* card (and the carousel itself) carries the destination's messaging call to
|
|
6328
6332
|
* action (WHATSAPP_MESSAGE, MESSAGE_PAGE or INSTAGRAM_MESSAGE), so a tap on any
|
|
6329
6333
|
* card opens the conversation. Replaces `imageUrl` / `video` (sending either is
|
|
@@ -6400,7 +6404,7 @@ type CtwaAdRequestBody = {
|
|
|
6400
6404
|
thumbnailUrl?: string;
|
|
6401
6405
|
};
|
|
6402
6406
|
/**
|
|
6403
|
-
* Custom chat welcome message for this entry.
|
|
6407
|
+
* Custom chat welcome message for this entry: `text` plus exactly one of `prefillText` or `quickReplies` (400 otherwise). Same shape as the top-level `welcomeMessage` of the single-creative shape.
|
|
6404
6408
|
*/
|
|
6405
6409
|
welcomeMessage?: {
|
|
6406
6410
|
/**
|
|
@@ -6408,9 +6412,22 @@ type CtwaAdRequestBody = {
|
|
|
6408
6412
|
*/
|
|
6409
6413
|
text: string;
|
|
6410
6414
|
/**
|
|
6411
|
-
* Message put into the user's text input, ready to send. Replaces Meta's default.
|
|
6415
|
+
* Message put into the user's text input, ready to send. Replaces Meta's default. Exactly one of prefillText or quickReplies.
|
|
6412
6416
|
*/
|
|
6413
|
-
prefillText
|
|
6417
|
+
prefillText?: string;
|
|
6418
|
+
/**
|
|
6419
|
+
* Tappable chips under the greeting instead of a prefilled message. Exactly one of prefillText or quickReplies.
|
|
6420
|
+
*/
|
|
6421
|
+
quickReplies?: Array<{
|
|
6422
|
+
/**
|
|
6423
|
+
* Chip label the person taps.
|
|
6424
|
+
*/
|
|
6425
|
+
title: string;
|
|
6426
|
+
/**
|
|
6427
|
+
* Opaque string you choose; delivered on the message.received webhook as interactiveMetadata.quickReplyPayload when the chip is tapped.
|
|
6428
|
+
*/
|
|
6429
|
+
payload: string;
|
|
6430
|
+
}>;
|
|
6414
6431
|
};
|
|
6415
6432
|
/**
|
|
6416
6433
|
* A 2-10 card carousel for this entry instead of `imageUrl` / `video`; `body` is required. Same rules as the top-level `carouselCards`. Carousel and single-media entries can be mixed on one ad set.
|
|
@@ -10717,7 +10734,7 @@ type ParameterCatalogProductId = string;
|
|
|
10717
10734
|
*/
|
|
10718
10735
|
type ParameterCatalogTokenAccountId = string;
|
|
10719
10736
|
/**
|
|
10720
|
-
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409.
|
|
10737
|
+
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409. A request cut off mid-handler (for example by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
10721
10738
|
*/
|
|
10722
10739
|
type ParameterIdempotencyKeyHeader = string;
|
|
10723
10740
|
/**
|
|
@@ -15919,9 +15936,12 @@ type WebhookPayloadMessageSent = {
|
|
|
15919
15936
|
* on the inbox analytics endpoints, and the same value a later
|
|
15920
15937
|
* GET on this message returns.
|
|
15921
15938
|
*
|
|
15922
|
-
* Always present, and `null` whenever the lineage is unknown:
|
|
15923
|
-
* message sent
|
|
15924
|
-
*
|
|
15939
|
+
* Always present, and `null` whenever the lineage is unknown: any
|
|
15940
|
+
* outgoing message not sent through Zernio (one typed in the
|
|
15941
|
+
* platform's own app, a Meta automated reply such as an instant
|
|
15942
|
+
* reply or away message, the echo of a click-to-message ad's
|
|
15943
|
+
* greeting), and every message stored before this field shipped
|
|
15944
|
+
* (2026-08). Existing messages
|
|
15925
15945
|
* are NOT backfilled, so treat `null` as "unknown", never as
|
|
15926
15946
|
* "sent by a human".
|
|
15927
15947
|
*
|
|
@@ -20540,7 +20560,7 @@ type CreateProfileData = {
|
|
|
20540
20560
|
};
|
|
20541
20561
|
headers?: {
|
|
20542
20562
|
/**
|
|
20543
|
-
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409.
|
|
20563
|
+
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409. A request cut off mid-handler (for example by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
20544
20564
|
*/
|
|
20545
20565
|
'Idempotency-Key'?: string;
|
|
20546
20566
|
};
|
|
@@ -29367,7 +29387,7 @@ type SendInboxMessageData = {
|
|
|
29367
29387
|
};
|
|
29368
29388
|
headers?: {
|
|
29369
29389
|
/**
|
|
29370
|
-
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409.
|
|
29390
|
+
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409. A request cut off mid-handler (for example by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
29371
29391
|
*/
|
|
29372
29392
|
'Idempotency-Key'?: string;
|
|
29373
29393
|
};
|
|
@@ -29728,7 +29748,7 @@ type RemoveMessageReactionError = (unknown | ErrorResponse);
|
|
|
29728
29748
|
type UploadMediaDirectData = {
|
|
29729
29749
|
body: {
|
|
29730
29750
|
/**
|
|
29731
|
-
* The file to upload (
|
|
29751
|
+
* The file to upload (about 4.5 MB at most in practice; use POST /v1/media/presign for larger files)
|
|
29732
29752
|
*/
|
|
29733
29753
|
file: (Blob | File);
|
|
29734
29754
|
/**
|
|
@@ -30395,7 +30415,7 @@ type ReplyToInboxPostData = {
|
|
|
30395
30415
|
};
|
|
30396
30416
|
headers?: {
|
|
30397
30417
|
/**
|
|
30398
|
-
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409.
|
|
30418
|
+
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409. A request cut off mid-handler (for example by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
30399
30419
|
*/
|
|
30400
30420
|
'Idempotency-Key'?: string;
|
|
30401
30421
|
};
|
|
@@ -31230,7 +31250,7 @@ type ReplyToInboxReviewData = {
|
|
|
31230
31250
|
};
|
|
31231
31251
|
headers?: {
|
|
31232
31252
|
/**
|
|
31233
|
-
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409.
|
|
31253
|
+
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409. A request cut off mid-handler (for example by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
31234
31254
|
*/
|
|
31235
31255
|
'Idempotency-Key'?: string;
|
|
31236
31256
|
};
|
|
@@ -31811,7 +31831,7 @@ type InitiateWhatsAppCallData = {
|
|
|
31811
31831
|
};
|
|
31812
31832
|
headers?: {
|
|
31813
31833
|
/**
|
|
31814
|
-
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409.
|
|
31834
|
+
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409. A request cut off mid-handler (for example by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
31815
31835
|
*/
|
|
31816
31836
|
'Idempotency-Key'?: string;
|
|
31817
31837
|
};
|
|
@@ -32050,7 +32070,7 @@ type CreateVoiceCallData = {
|
|
|
32050
32070
|
};
|
|
32051
32071
|
headers?: {
|
|
32052
32072
|
/**
|
|
32053
|
-
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409.
|
|
32073
|
+
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409. A request cut off mid-handler (for example by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
32054
32074
|
*/
|
|
32055
32075
|
'Idempotency-Key'?: string;
|
|
32056
32076
|
};
|
|
@@ -32644,7 +32664,7 @@ type SendSmsData = {
|
|
|
32644
32664
|
};
|
|
32645
32665
|
headers?: {
|
|
32646
32666
|
/**
|
|
32647
|
-
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409.
|
|
32667
|
+
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409. A request cut off mid-handler (for example by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
32648
32668
|
*/
|
|
32649
32669
|
'Idempotency-Key'?: string;
|
|
32650
32670
|
};
|
|
@@ -32695,7 +32715,7 @@ type CreateRcsAgentData = {
|
|
|
32695
32715
|
};
|
|
32696
32716
|
headers?: {
|
|
32697
32717
|
/**
|
|
32698
|
-
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409.
|
|
32718
|
+
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409. A request cut off mid-handler (for example by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
32699
32719
|
*/
|
|
32700
32720
|
'Idempotency-Key'?: string;
|
|
32701
32721
|
};
|
|
@@ -32812,7 +32832,7 @@ type SendRcsMessageData = {
|
|
|
32812
32832
|
};
|
|
32813
32833
|
headers?: {
|
|
32814
32834
|
/**
|
|
32815
|
-
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409.
|
|
32835
|
+
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409. A request cut off mid-handler (for example by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
32816
32836
|
*/
|
|
32817
32837
|
'Idempotency-Key'?: string;
|
|
32818
32838
|
};
|
|
@@ -32993,7 +33013,7 @@ type CreateBrandedCallingEnterpriseData = {
|
|
|
32993
33013
|
};
|
|
32994
33014
|
headers?: {
|
|
32995
33015
|
/**
|
|
32996
|
-
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409.
|
|
33016
|
+
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409. A request cut off mid-handler (for example by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
32997
33017
|
*/
|
|
32998
33018
|
'Idempotency-Key'?: string;
|
|
32999
33019
|
};
|
|
@@ -33073,7 +33093,7 @@ type CreateBrandedCallingIdentityData = {
|
|
|
33073
33093
|
};
|
|
33074
33094
|
headers?: {
|
|
33075
33095
|
/**
|
|
33076
|
-
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409.
|
|
33096
|
+
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409. A request cut off mid-handler (for example by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
33077
33097
|
*/
|
|
33078
33098
|
'Idempotency-Key'?: string;
|
|
33079
33099
|
};
|
|
@@ -38693,7 +38713,7 @@ type AskSupportQuestionData = {
|
|
|
38693
38713
|
};
|
|
38694
38714
|
headers?: {
|
|
38695
38715
|
/**
|
|
38696
|
-
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409.
|
|
38716
|
+
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409. A request cut off mid-handler (for example by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
38697
38717
|
*/
|
|
38698
38718
|
'Idempotency-Key'?: string;
|
|
38699
38719
|
};
|
|
@@ -46987,7 +47007,7 @@ type BoostPostData = {
|
|
|
46987
47007
|
};
|
|
46988
47008
|
headers?: {
|
|
46989
47009
|
/**
|
|
46990
|
-
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409.
|
|
47010
|
+
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409. A request cut off mid-handler (for example by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
46991
47011
|
*/
|
|
46992
47012
|
'Idempotency-Key'?: string;
|
|
46993
47013
|
};
|
|
@@ -47885,9 +47905,11 @@ type CreateStandaloneAdData = {
|
|
|
47885
47905
|
* (card `callToAction`, falling back to the top-level one) and caption (card
|
|
47886
47906
|
* `headline`, else `description`). `headline` is still required.
|
|
47887
47907
|
*
|
|
47888
|
-
* Meta only. Hand-built carousel: 2-10 authored cards in
|
|
47908
|
+
* Meta only. Hand-built carousel: 2-10 authored cards, sent in the order given as
|
|
47889
47909
|
* the creative's `link_data.child_attachments`. Unlike `dynamicCreative`,
|
|
47890
|
-
* you
|
|
47910
|
+
* you author every card's copy and link, but Meta may still reorder the cards
|
|
47911
|
+
* for performance (`multi_share_optimized` defaults to true and Zernio does not
|
|
47912
|
+
* send it), and no field fixes the order today. Requires top-level `body`
|
|
47891
47913
|
* and `callToAction`; `linkUrl` is also required UNLESS `leadGenFormId` is set. Those
|
|
47892
47914
|
* become the ad's own Destination and button (`link_data.link` / `link_data.call_to_action`),
|
|
47893
47915
|
* and double as the per-card fallback when a card omits its own.
|
|
@@ -48330,7 +48352,7 @@ type CreateStandaloneAdData = {
|
|
|
48330
48352
|
};
|
|
48331
48353
|
headers?: {
|
|
48332
48354
|
/**
|
|
48333
|
-
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409.
|
|
48355
|
+
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409. A request cut off mid-handler (for example by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
48334
48356
|
*/
|
|
48335
48357
|
'Idempotency-Key'?: string;
|
|
48336
48358
|
};
|
|
@@ -51370,7 +51392,7 @@ type CreateMessagingAdData = {
|
|
|
51370
51392
|
});
|
|
51371
51393
|
headers?: {
|
|
51372
51394
|
/**
|
|
51373
|
-
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409.
|
|
51395
|
+
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409. A request cut off mid-handler (for example by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
51374
51396
|
*/
|
|
51375
51397
|
'Idempotency-Key'?: string;
|
|
51376
51398
|
};
|
|
@@ -51401,7 +51423,7 @@ type CreateCallAdData = {
|
|
|
51401
51423
|
});
|
|
51402
51424
|
headers?: {
|
|
51403
51425
|
/**
|
|
51404
|
-
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409.
|
|
51426
|
+
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409. A request cut off mid-handler (for example by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
51405
51427
|
*/
|
|
51406
51428
|
'Idempotency-Key'?: string;
|
|
51407
51429
|
};
|
|
@@ -51412,7 +51434,7 @@ type CreateCtwaAdData = {
|
|
|
51412
51434
|
body: CtwaAdRequestBody;
|
|
51413
51435
|
headers?: {
|
|
51414
51436
|
/**
|
|
51415
|
-
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409.
|
|
51437
|
+
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409. A request cut off mid-handler (for example by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
51416
51438
|
*/
|
|
51417
51439
|
'Idempotency-Key'?: string;
|
|
51418
51440
|
};
|
package/dist/index.js
CHANGED
|
@@ -36,7 +36,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
36
36
|
// package.json
|
|
37
37
|
var package_default = {
|
|
38
38
|
name: "@getlatedev/node",
|
|
39
|
-
version: "0.2.
|
|
39
|
+
version: "0.2.1178",
|
|
40
40
|
description: "The official Node.js library for the Zernio API",
|
|
41
41
|
main: "dist/index.js",
|
|
42
42
|
module: "dist/index.mjs",
|
package/dist/index.mjs
CHANGED
|
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
5
5
|
// package.json
|
|
6
6
|
var package_default = {
|
|
7
7
|
name: "@getlatedev/node",
|
|
8
|
-
version: "0.2.
|
|
8
|
+
version: "0.2.1178",
|
|
9
9
|
description: "The official Node.js library for the Zernio API",
|
|
10
10
|
main: "dist/index.js",
|
|
11
11
|
module: "dist/index.mjs",
|
package/package.json
CHANGED
package/src/generated/sdk.gen.ts
CHANGED
|
@@ -4379,7 +4379,10 @@ export const removeMessageReaction = <ThrowOnError extends boolean = false>(opti
|
|
|
4379
4379
|
* The URL can be used as attachmentUrl when sending inbox messages.
|
|
4380
4380
|
*
|
|
4381
4381
|
* Files are stored in temporary storage and auto-delete after 7 days.
|
|
4382
|
-
*
|
|
4382
|
+
* The effective maximum is about 4.5 MB: the multipart body goes through
|
|
4383
|
+
* the hosting platform's request body limit, which answers 413 before the
|
|
4384
|
+
* endpoint's own 25 MB check is reached. For larger files use
|
|
4385
|
+
* POST /v1/media/presign and upload straight to storage.
|
|
4383
4386
|
*
|
|
4384
4387
|
* Unlike /v1/media/upload (which uses upload tokens for end-user flows),
|
|
4385
4388
|
* this endpoint takes your API key in the Authorization header, for programmatic use.
|
|
@@ -12810,11 +12813,23 @@ export const replaceGoogleListingGroupFilters = <ThrowOnError extends boolean =
|
|
|
12810
12813
|
*
|
|
12811
12814
|
* Per-platform required fields, budget minimums, and video-ad rules are documented on each property below.
|
|
12812
12815
|
*
|
|
12816
|
+
* **Meta required fields per shape** (a missing one is a 400 naming it in `param`):
|
|
12817
|
+
*
|
|
12818
|
+
* - Every shape that builds a new ad set (no `adSetId`, `existingCampaignId` or `buyingType: "RESERVED"`): `budgetAmount` and `budgetType`, plus `endDate` for a lifetime budget.
|
|
12819
|
+
* - Single image or video (the default), also with `adSetId`: `headline` (max 255), `body`, `callToAction`, exactly one of `imageUrl` / `video` (none for goal `catalog_sales`), and `linkUrl` unless the goal is `lead_generation` or `page_visits` or `leadGenFormId` is set.
|
|
12820
|
+
* - `bodies[]` / `headlines[]` text variations: `body`, one list with 2+ items, `callToAction`, `imageUrl` or `video`, and `linkUrl` unless the goal is `lead_generation` or `leadGenFormId` is set. `headline` is not required.
|
|
12821
|
+
* - `placementAssets`: `headline`, `body`, `callToAction`, and `linkUrl` with the same exemptions as the single shape; the media comes from `placementAssets`.
|
|
12822
|
+
* - `carouselCards`: `body`, `callToAction`, and `linkUrl` unless the goal is `lead_generation` or `leadGenFormId` is set. `headline` is not required.
|
|
12823
|
+
* - `creatives[]`: per entry `headline`, `body`, `callToAction`, `imageUrl` or `video`, and `linkUrl` unless the goal is `lead_generation`. Top-level `body` is not required.
|
|
12824
|
+
* - `dynamicCreative`: `imageUrls` or `videoUrls`, `callToActionTypes`, and `linkUrls` unless the goal is `lead_generation`. Top-level `body` is not required.
|
|
12825
|
+
* - `existingCreativeId`: no creative fields. Goal `page_likes`: `body` only.
|
|
12826
|
+
* - Goal `lead_generation` always needs `leadGenFormId`, except with `existingCreativeId`.
|
|
12827
|
+
*
|
|
12813
12828
|
* LinkedIn creates a Single Image or Single Video Ad backed by a Direct Sponsored Content "dark post" authored by a Company Page (see `organizationId`). Supported goals are engagement, traffic, awareness, and video_views (video ads use the `video` field; video_views requires a video), and traffic ads require `linkUrl`.
|
|
12814
12829
|
*
|
|
12815
12830
|
* Reddit Ads (`accountId` of a `redditads` connection, `adAccountId` like `a2_abc123`) creates a campaign, an ad group carrying the budget, schedule, targeting and pixel, and an ad running a new promoted post authored by the ad account's first profile (422 when it has none). The creative format follows the body: `carouselCards` builds a carousel, `video` a video ad, `imageUrl` an image ad, and none of them a text ad, which cannot link out (`linkUrl` is a 400 there; `body` is required). Only the legacy single-creative shape is available: `creatives[]`, `adSetId`, `existingCampaignId` and `validateOnly` are refused. Reddit throttling surfaces as 429 `rate_limited` with `platform: reddit`; retry after a delay. To promote an existing Reddit post use POST /v1/ads/boost.
|
|
12816
12831
|
*
|
|
12817
|
-
* **Idempotency:** this endpoint is not idempotent at the platform level (a blind retry creates a second campaign/ad set/ad). Send an `Idempotency-Key` header to make retries safe: the first request with a given key creates the ad and we store the response; a retry with the same key replays that exact response (with `Idempotent-Replayed: true`) instead of creating duplicates. Reusing a key with a different body returns 422; a key whose first request is still in flight returns 409 (retry after a short backoff). Keys are scoped to your credential and expire after 24h.
|
|
12832
|
+
* **Idempotency:** this endpoint is not idempotent at the platform level (a blind retry creates a second campaign/ad set/ad). Send an `Idempotency-Key` header to make retries safe: the first request with a given key creates the ad and we store the response; a retry with the same key replays that exact response (with `Idempotent-Replayed: true`) instead of creating duplicates. Reusing a key with a different body returns 422; a key whose first request is still in flight returns 409 (retry after a short backoff). If the first request is cut off mid-create (for example by a function timeout), its key can stay in progress and keep returning 409 until it expires; use a new key to retry sooner, after checking whether the ad was created. Keys are scoped to your credential and expire after 24h.
|
|
12818
12833
|
*
|
|
12819
12834
|
*/
|
|
12820
12835
|
export const createStandaloneAd = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<CreateStandaloneAdData, ThrowOnError>) => {
|
|
@@ -14429,9 +14444,19 @@ export const sendWhatsAppConversion = <ThrowOnError extends boolean = false>(opt
|
|
|
14429
14444
|
* `accountId` is a Facebook, Instagram or Meta ads (business login) connection;
|
|
14430
14445
|
* `pageId` picks the Page when that connection was granted several.
|
|
14431
14446
|
*
|
|
14447
|
+
* **Required fields per shape** (a missing one is a 400 naming it in `param`):
|
|
14448
|
+
*
|
|
14449
|
+
* - Always `accountId`, `adAccountId`, `name`, and exactly one of `destination` / `destinations`.
|
|
14450
|
+
* - `budgetAmount` and `budgetType` unless `adSetId` or `existingCampaignId` is set, plus `endDate` for a lifetime budget.
|
|
14451
|
+
* - Single image or video: `headline`, `body`, and exactly one of `imageUrl` / `video`. With `placementAssets`, `headline` and `body` only (the media comes from `placementAssets`).
|
|
14452
|
+
* - `carouselCards`: `body` and the 2-10 cards; `headline` is optional, `imageUrl` / `video` / top-level `description` are a 400.
|
|
14453
|
+
* - Existing post (`platformPostId` or `objectStoryId`): no copy or media fields.
|
|
14454
|
+
* - `creatives[]`: the same rules per entry, with no top-level creative fields.
|
|
14455
|
+
* - `welcomeMessage`, when sent: `text` plus exactly one of `prefillText` / `quickReplies`.
|
|
14456
|
+
*
|
|
14432
14457
|
* **WhatsApp number prerequisite.** For the WhatsApp destination, link the WhatsApp number to the Facebook Page used for the ad before creating it: Meta checks the pairing at creation. Link it from the WhatsApp Business app (Settings > Business tools > Facebook & Instagram) or from the Page settings (Linked accounts > WhatsApp). Linking does not affect the number's WhatsApp connection in Zernio (Cloud API or coexistence), so no reconnect or re-sync is needed. If Meta creates a new ad set without the requested `whatsappPhoneNumber`, the 201 response carries a `warnings` entry. This can happen even when the number is linked (Meta can drop a Page's second linked number).
|
|
14433
14458
|
*
|
|
14434
|
-
* **Idempotency:** this endpoint is not idempotent at the platform level (a blind retry creates a second campaign/ad set/ad). Send an `Idempotency-Key` header to make retries safe: the first request with a given key creates the ad and we store the response; a retry with the same key replays that exact response (with `Idempotent-Replayed: true`) instead of creating duplicates. Reusing a key with a different body returns 422; a key whose first request is still in flight returns 409 (retry after a short backoff). Keys are scoped to your credential and expire after 24h.
|
|
14459
|
+
* **Idempotency:** this endpoint is not idempotent at the platform level (a blind retry creates a second campaign/ad set/ad). Send an `Idempotency-Key` header to make retries safe: the first request with a given key creates the ad and we store the response; a retry with the same key replays that exact response (with `Idempotent-Replayed: true`) instead of creating duplicates. Reusing a key with a different body returns 422; a key whose first request is still in flight returns 409 (retry after a short backoff). If the first request is cut off mid-create (for example by a function timeout), its key can stay in progress and keep returning 409 until it expires; use a new key to retry sooner, after checking whether the ad was created. Keys are scoped to your credential and expire after 24h.
|
|
14435
14460
|
*/
|
|
14436
14461
|
export const createMessagingAd = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<CreateMessagingAdData, ThrowOnError>) => {
|
|
14437
14462
|
return (options?.client ?? client).post<CreateMessagingAdResponse, CreateMessagingAdError, ThrowOnError>({
|
|
@@ -14449,7 +14474,7 @@ export const createMessagingAd = <ThrowOnError extends boolean = false>(options:
|
|
|
14449
14474
|
* and the campaign objective defaults to OUTCOME_LEADS.
|
|
14450
14475
|
* Supports the same single-creative and multi-creative shapes as CTWA.
|
|
14451
14476
|
*
|
|
14452
|
-
* **Idempotency:** this endpoint is not idempotent at the platform level (a blind retry creates a second campaign/ad set/ad). Send an `Idempotency-Key` header to make retries safe: the first request with a given key creates the ad and we store the response; a retry with the same key replays that exact response (with `Idempotent-Replayed: true`) instead of creating duplicates. Reusing a key with a different body returns 422; a key whose first request is still in flight returns 409 (retry after a short backoff). Keys are scoped to your credential and expire after 24h.
|
|
14477
|
+
* **Idempotency:** this endpoint is not idempotent at the platform level (a blind retry creates a second campaign/ad set/ad). Send an `Idempotency-Key` header to make retries safe: the first request with a given key creates the ad and we store the response; a retry with the same key replays that exact response (with `Idempotent-Replayed: true`) instead of creating duplicates. Reusing a key with a different body returns 422; a key whose first request is still in flight returns 409 (retry after a short backoff). If the first request is cut off mid-create (for example by a function timeout), its key can stay in progress and keep returning 409 until it expires; use a new key to retry sooner, after checking whether the ad was created. Keys are scoped to your credential and expire after 24h.
|
|
14453
14478
|
*/
|
|
14454
14479
|
export const createCallAd = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<CreateCallAdData, ThrowOnError>) => {
|
|
14455
14480
|
return (options?.client ?? client).post<CreateCallAdResponse, CreateCallAdError, ThrowOnError>({
|
|
@@ -14481,7 +14506,7 @@ export const createCallAd = <ThrowOnError extends boolean = false>(options: Opti
|
|
|
14481
14506
|
*
|
|
14482
14507
|
* **WhatsApp number prerequisite.** Link the WhatsApp number to the Facebook Page used for the ad before creating it: Meta checks the pairing at creation. Link it from the WhatsApp Business app (Settings > Business tools > Facebook & Instagram) or from the Page settings (Linked accounts > WhatsApp). Linking does not affect the number's WhatsApp connection in Zernio (Cloud API or coexistence), so no reconnect or re-sync is needed. If Meta creates a new ad set without the requested `whatsappPhoneNumber`, the 201 response carries a `warnings` entry. This can happen even when the number is linked (Meta can drop a Page's second linked number).
|
|
14483
14508
|
*
|
|
14484
|
-
* **Idempotency:** this endpoint is not idempotent at the platform level (a blind retry creates a second campaign/ad set/ad). Send an `Idempotency-Key` header to make retries safe: the first request with a given key creates the ad and we store the response; a retry with the same key replays that exact response (with `Idempotent-Replayed: true`) instead of creating duplicates. Reusing a key with a different body returns 422; a key whose first request is still in flight returns 409 (retry after a short backoff). Keys are scoped to your credential and expire after 24h.
|
|
14509
|
+
* **Idempotency:** this endpoint is not idempotent at the platform level (a blind retry creates a second campaign/ad set/ad). Send an `Idempotency-Key` header to make retries safe: the first request with a given key creates the ad and we store the response; a retry with the same key replays that exact response (with `Idempotent-Replayed: true`) instead of creating duplicates. Reusing a key with a different body returns 422; a key whose first request is still in flight returns 409 (retry after a short backoff). If the first request is cut off mid-create (for example by a function timeout), its key can stay in progress and keep returning 409 until it expires; use a new key to retry sooner, after checking whether the ad was created. Keys are scoped to your credential and expire after 24h.
|
|
14485
14510
|
*/
|
|
14486
14511
|
export const createCtwaAd = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<CreateCtwaAdData, ThrowOnError>) => {
|
|
14487
14512
|
return (options?.client ?? client).post<CreateCtwaAdResponse, CreateCtwaAdError, ThrowOnError>({
|
|
@@ -4412,7 +4412,9 @@ export type CtwaAdRequestBody = {
|
|
|
4412
4412
|
whatsappPhoneNumber?: string;
|
|
4413
4413
|
/**
|
|
4414
4414
|
* Single-creative shape only. Mutually exclusive with
|
|
4415
|
-
* `creatives[]`.
|
|
4415
|
+
* `creatives[]`. Required on a single image or video ad (including
|
|
4416
|
+
* one built with `placementAssets`); not used by a `carouselCards`
|
|
4417
|
+
* ad and not accepted with an existing post reference.
|
|
4416
4418
|
*
|
|
4417
4419
|
*/
|
|
4418
4420
|
headline?: string;
|
|
@@ -4502,7 +4504,9 @@ export type CtwaAdRequestBody = {
|
|
|
4502
4504
|
};
|
|
4503
4505
|
/**
|
|
4504
4506
|
* Messaging and CTWA only (a 400 on POST /v1/ads/call). A hand-built carousel
|
|
4505
|
-
* of 2-10 image cards, sent to Meta
|
|
4507
|
+
* of 2-10 image cards, sent to Meta in the order given as
|
|
4508
|
+
* `link_data.child_attachments` (Meta may reorder them for performance, since
|
|
4509
|
+
* `multi_share_optimized` defaults to true and no field fixes the order today); every
|
|
4506
4510
|
* card (and the carousel itself) carries the destination's messaging call to
|
|
4507
4511
|
* action (WHATSAPP_MESSAGE, MESSAGE_PAGE or INSTAGRAM_MESSAGE), so a tap on any
|
|
4508
4512
|
* card opens the conversation. Replaces `imageUrl` / `video` (sending either is
|
|
@@ -4579,7 +4583,7 @@ export type CtwaAdRequestBody = {
|
|
|
4579
4583
|
thumbnailUrl?: string;
|
|
4580
4584
|
};
|
|
4581
4585
|
/**
|
|
4582
|
-
* Custom chat welcome message for this entry.
|
|
4586
|
+
* Custom chat welcome message for this entry: `text` plus exactly one of `prefillText` or `quickReplies` (400 otherwise). Same shape as the top-level `welcomeMessage` of the single-creative shape.
|
|
4583
4587
|
*/
|
|
4584
4588
|
welcomeMessage?: {
|
|
4585
4589
|
/**
|
|
@@ -4587,9 +4591,22 @@ export type CtwaAdRequestBody = {
|
|
|
4587
4591
|
*/
|
|
4588
4592
|
text: string;
|
|
4589
4593
|
/**
|
|
4590
|
-
* Message put into the user's text input, ready to send. Replaces Meta's default.
|
|
4594
|
+
* Message put into the user's text input, ready to send. Replaces Meta's default. Exactly one of prefillText or quickReplies.
|
|
4591
4595
|
*/
|
|
4592
|
-
prefillText
|
|
4596
|
+
prefillText?: string;
|
|
4597
|
+
/**
|
|
4598
|
+
* Tappable chips under the greeting instead of a prefilled message. Exactly one of prefillText or quickReplies.
|
|
4599
|
+
*/
|
|
4600
|
+
quickReplies?: Array<{
|
|
4601
|
+
/**
|
|
4602
|
+
* Chip label the person taps.
|
|
4603
|
+
*/
|
|
4604
|
+
title: string;
|
|
4605
|
+
/**
|
|
4606
|
+
* Opaque string you choose; delivered on the message.received webhook as interactiveMetadata.quickReplyPayload when the chip is tapped.
|
|
4607
|
+
*/
|
|
4608
|
+
payload: string;
|
|
4609
|
+
}>;
|
|
4593
4610
|
};
|
|
4594
4611
|
/**
|
|
4595
4612
|
* A 2-10 card carousel for this entry instead of `imageUrl` / `video`; `body` is required. Same rules as the top-level `carouselCards`. Carousel and single-media entries can be mixed on one ad set.
|
|
@@ -9087,7 +9104,7 @@ export type ParameterCatalogProductId = string;
|
|
|
9087
9104
|
export type ParameterCatalogTokenAccountId = string;
|
|
9088
9105
|
|
|
9089
9106
|
/**
|
|
9090
|
-
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409.
|
|
9107
|
+
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409. A request cut off mid-handler (for example by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
9091
9108
|
*/
|
|
9092
9109
|
export type ParameterIdempotencyKeyHeader = string;
|
|
9093
9110
|
|
|
@@ -14507,9 +14524,12 @@ export type WebhookPayloadMessageSent = {
|
|
|
14507
14524
|
* on the inbox analytics endpoints, and the same value a later
|
|
14508
14525
|
* GET on this message returns.
|
|
14509
14526
|
*
|
|
14510
|
-
* Always present, and `null` whenever the lineage is unknown:
|
|
14511
|
-
* message sent
|
|
14512
|
-
*
|
|
14527
|
+
* Always present, and `null` whenever the lineage is unknown: any
|
|
14528
|
+
* outgoing message not sent through Zernio (one typed in the
|
|
14529
|
+
* platform's own app, a Meta automated reply such as an instant
|
|
14530
|
+
* reply or away message, the echo of a click-to-message ad's
|
|
14531
|
+
* greeting), and every message stored before this field shipped
|
|
14532
|
+
* (2026-08). Existing messages
|
|
14513
14533
|
* are NOT backfilled, so treat `null` as "unknown", never as
|
|
14514
14534
|
* "sent by a human".
|
|
14515
14535
|
*
|
|
@@ -19413,7 +19433,7 @@ export type CreateProfileData = {
|
|
|
19413
19433
|
};
|
|
19414
19434
|
headers?: {
|
|
19415
19435
|
/**
|
|
19416
|
-
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409.
|
|
19436
|
+
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409. A request cut off mid-handler (for example by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
19417
19437
|
*/
|
|
19418
19438
|
'Idempotency-Key'?: string;
|
|
19419
19439
|
};
|
|
@@ -28753,7 +28773,7 @@ export type SendInboxMessageData = {
|
|
|
28753
28773
|
};
|
|
28754
28774
|
headers?: {
|
|
28755
28775
|
/**
|
|
28756
|
-
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409.
|
|
28776
|
+
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409. A request cut off mid-handler (for example by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
28757
28777
|
*/
|
|
28758
28778
|
'Idempotency-Key'?: string;
|
|
28759
28779
|
};
|
|
@@ -29144,7 +29164,7 @@ export type RemoveMessageReactionError = (unknown | ErrorResponse);
|
|
|
29144
29164
|
export type UploadMediaDirectData = {
|
|
29145
29165
|
body: {
|
|
29146
29166
|
/**
|
|
29147
|
-
* The file to upload (
|
|
29167
|
+
* The file to upload (about 4.5 MB at most in practice; use POST /v1/media/presign for larger files)
|
|
29148
29168
|
*/
|
|
29149
29169
|
file: (Blob | File);
|
|
29150
29170
|
/**
|
|
@@ -29877,7 +29897,7 @@ export type ReplyToInboxPostData = {
|
|
|
29877
29897
|
};
|
|
29878
29898
|
headers?: {
|
|
29879
29899
|
/**
|
|
29880
|
-
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409.
|
|
29900
|
+
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409. A request cut off mid-handler (for example by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
29881
29901
|
*/
|
|
29882
29902
|
'Idempotency-Key'?: string;
|
|
29883
29903
|
};
|
|
@@ -30784,7 +30804,7 @@ export type ReplyToInboxReviewData = {
|
|
|
30784
30804
|
};
|
|
30785
30805
|
headers?: {
|
|
30786
30806
|
/**
|
|
30787
|
-
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409.
|
|
30807
|
+
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409. A request cut off mid-handler (for example by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
30788
30808
|
*/
|
|
30789
30809
|
'Idempotency-Key'?: string;
|
|
30790
30810
|
};
|
|
@@ -31410,7 +31430,7 @@ export type InitiateWhatsAppCallData = {
|
|
|
31410
31430
|
};
|
|
31411
31431
|
headers?: {
|
|
31412
31432
|
/**
|
|
31413
|
-
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409.
|
|
31433
|
+
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409. A request cut off mid-handler (for example by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
31414
31434
|
*/
|
|
31415
31435
|
'Idempotency-Key'?: string;
|
|
31416
31436
|
};
|
|
@@ -31673,7 +31693,7 @@ export type CreateVoiceCallData = {
|
|
|
31673
31693
|
};
|
|
31674
31694
|
headers?: {
|
|
31675
31695
|
/**
|
|
31676
|
-
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409.
|
|
31696
|
+
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409. A request cut off mid-handler (for example by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
31677
31697
|
*/
|
|
31678
31698
|
'Idempotency-Key'?: string;
|
|
31679
31699
|
};
|
|
@@ -32351,7 +32371,7 @@ export type SendSmsData = {
|
|
|
32351
32371
|
};
|
|
32352
32372
|
headers?: {
|
|
32353
32373
|
/**
|
|
32354
|
-
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409.
|
|
32374
|
+
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409. A request cut off mid-handler (for example by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
32355
32375
|
*/
|
|
32356
32376
|
'Idempotency-Key'?: string;
|
|
32357
32377
|
};
|
|
@@ -32410,7 +32430,7 @@ export type CreateRcsAgentData = {
|
|
|
32410
32430
|
};
|
|
32411
32431
|
headers?: {
|
|
32412
32432
|
/**
|
|
32413
|
-
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409.
|
|
32433
|
+
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409. A request cut off mid-handler (for example by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
32414
32434
|
*/
|
|
32415
32435
|
'Idempotency-Key'?: string;
|
|
32416
32436
|
};
|
|
@@ -32554,7 +32574,7 @@ export type SendRcsMessageData = {
|
|
|
32554
32574
|
};
|
|
32555
32575
|
headers?: {
|
|
32556
32576
|
/**
|
|
32557
|
-
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409.
|
|
32577
|
+
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409. A request cut off mid-handler (for example by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
32558
32578
|
*/
|
|
32559
32579
|
'Idempotency-Key'?: string;
|
|
32560
32580
|
};
|
|
@@ -32758,7 +32778,7 @@ export type CreateBrandedCallingEnterpriseData = {
|
|
|
32758
32778
|
};
|
|
32759
32779
|
headers?: {
|
|
32760
32780
|
/**
|
|
32761
|
-
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409.
|
|
32781
|
+
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409. A request cut off mid-handler (for example by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
32762
32782
|
*/
|
|
32763
32783
|
'Idempotency-Key'?: string;
|
|
32764
32784
|
};
|
|
@@ -32854,7 +32874,7 @@ export type CreateBrandedCallingIdentityData = {
|
|
|
32854
32874
|
};
|
|
32855
32875
|
headers?: {
|
|
32856
32876
|
/**
|
|
32857
|
-
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409.
|
|
32877
|
+
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409. A request cut off mid-handler (for example by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
32858
32878
|
*/
|
|
32859
32879
|
'Idempotency-Key'?: string;
|
|
32860
32880
|
};
|
|
@@ -38968,7 +38988,7 @@ export type AskSupportQuestionData = {
|
|
|
38968
38988
|
};
|
|
38969
38989
|
headers?: {
|
|
38970
38990
|
/**
|
|
38971
|
-
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409.
|
|
38991
|
+
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409. A request cut off mid-handler (for example by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
38972
38992
|
*/
|
|
38973
38993
|
'Idempotency-Key'?: string;
|
|
38974
38994
|
};
|
|
@@ -47778,7 +47798,7 @@ export type BoostPostData = {
|
|
|
47778
47798
|
};
|
|
47779
47799
|
headers?: {
|
|
47780
47800
|
/**
|
|
47781
|
-
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409.
|
|
47801
|
+
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409. A request cut off mid-handler (for example by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
47782
47802
|
*/
|
|
47783
47803
|
'Idempotency-Key'?: string;
|
|
47784
47804
|
};
|
|
@@ -48700,9 +48720,11 @@ export type CreateStandaloneAdData = {
|
|
|
48700
48720
|
* (card `callToAction`, falling back to the top-level one) and caption (card
|
|
48701
48721
|
* `headline`, else `description`). `headline` is still required.
|
|
48702
48722
|
*
|
|
48703
|
-
* Meta only. Hand-built carousel: 2-10 authored cards in
|
|
48723
|
+
* Meta only. Hand-built carousel: 2-10 authored cards, sent in the order given as
|
|
48704
48724
|
* the creative's `link_data.child_attachments`. Unlike `dynamicCreative`,
|
|
48705
|
-
* you
|
|
48725
|
+
* you author every card's copy and link, but Meta may still reorder the cards
|
|
48726
|
+
* for performance (`multi_share_optimized` defaults to true and Zernio does not
|
|
48727
|
+
* send it), and no field fixes the order today. Requires top-level `body`
|
|
48706
48728
|
* and `callToAction`; `linkUrl` is also required UNLESS `leadGenFormId` is set. Those
|
|
48707
48729
|
* become the ad's own Destination and button (`link_data.link` / `link_data.call_to_action`),
|
|
48708
48730
|
* and double as the per-card fallback when a card omits its own.
|
|
@@ -49145,7 +49167,7 @@ export type CreateStandaloneAdData = {
|
|
|
49145
49167
|
};
|
|
49146
49168
|
headers?: {
|
|
49147
49169
|
/**
|
|
49148
|
-
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409.
|
|
49170
|
+
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409. A request cut off mid-handler (for example by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
49149
49171
|
*/
|
|
49150
49172
|
'Idempotency-Key'?: string;
|
|
49151
49173
|
};
|
|
@@ -52404,7 +52426,7 @@ export type CreateMessagingAdData = {
|
|
|
52404
52426
|
});
|
|
52405
52427
|
headers?: {
|
|
52406
52428
|
/**
|
|
52407
|
-
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409.
|
|
52429
|
+
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409. A request cut off mid-handler (for example by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
52408
52430
|
*/
|
|
52409
52431
|
'Idempotency-Key'?: string;
|
|
52410
52432
|
};
|
|
@@ -52438,7 +52460,7 @@ export type CreateCallAdData = {
|
|
|
52438
52460
|
});
|
|
52439
52461
|
headers?: {
|
|
52440
52462
|
/**
|
|
52441
|
-
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409.
|
|
52463
|
+
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409. A request cut off mid-handler (for example by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
52442
52464
|
*/
|
|
52443
52465
|
'Idempotency-Key'?: string;
|
|
52444
52466
|
};
|
|
@@ -52452,7 +52474,7 @@ export type CreateCtwaAdData = {
|
|
|
52452
52474
|
body: CtwaAdRequestBody;
|
|
52453
52475
|
headers?: {
|
|
52454
52476
|
/**
|
|
52455
|
-
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409.
|
|
52477
|
+
* Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409. A request cut off mid-handler (for example by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
52456
52478
|
*/
|
|
52457
52479
|
'Idempotency-Key'?: string;
|
|
52458
52480
|
};
|