@zernio/node 0.2.1507 → 0.2.1509
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 +75 -3
- package/dist/index.d.ts +75 -3
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +3 -1
- package/src/generated/types.gen.ts +75 -3
package/dist/index.d.mts
CHANGED
|
@@ -10555,7 +10555,7 @@ type ErrorResponse = {
|
|
|
10555
10555
|
* **Failed Meta ad create** (`POST /v1/ads/create`, `POST /v1/ads/boost`, `POST /v1/ads/ctwa`). Carries `stage` (where it failed), `adAccountId` (on which ad account) and `createdObjects` (every object this request had already created, with what cleanup did to it).
|
|
10556
10556
|
*
|
|
10557
10557
|
* - `left_behind` objects still exist on the ad account (Meta refused the delete, typically on a held account, or the delete hit a network error). Delete them yourself or reuse them.
|
|
10558
|
-
* - `unconfirmedWrite` is set when Meta answered a create with a 5xx or dropped the connection and Zernio could not confirm whether the object exists. Check that parent before creating it again.
|
|
10558
|
+
* - `unconfirmedWrite` is set when Meta answered a create with a 5xx or a non-JSON body, or dropped the connection, and Zernio could not confirm whether the object exists. Check that parent before creating it again.
|
|
10559
10559
|
*
|
|
10560
10560
|
* **Ineligible ad account: 422 `ad_account_unusable`.** When Meta refuses a write because the ad account's status is ineligible to manage ads (Meta subcode 2490592 or 4841021, on the write itself or on a cleanup delete), any Meta ads write answers it.
|
|
10561
10561
|
*
|
|
@@ -10602,12 +10602,22 @@ type ErrorResponse = {
|
|
|
10602
10602
|
*/
|
|
10603
10603
|
id?: string;
|
|
10604
10604
|
/**
|
|
10605
|
-
* `deleted`: Zernio deleted it.
|
|
10605
|
+
* - `deleted`: Zernio deleted it.
|
|
10606
|
+
* - `left_behind`: cleanup could not delete it (Meta refused the delete, or the delete hit a network error), so it still exists.
|
|
10607
|
+
* - `kept`: deliberately not deleted. Either an image (hashes are shared by every upload of the same file), or an object Zernio found by name after Meta lost its answer to the create, which may belong to another request with the same name.
|
|
10608
|
+
*
|
|
10606
10609
|
*/
|
|
10607
10610
|
cleanup?: 'deleted' | 'left_behind' | 'kept';
|
|
10608
10611
|
}>;
|
|
10609
10612
|
/**
|
|
10610
|
-
* Meta ad create failures only
|
|
10613
|
+
* Meta ad create failures only. Set when Meta answered a create with a 5xx or a non-JSON body, or dropped the connection after the request was sent, and reading the parent back by name did not settle it. Zernio did not retry it.
|
|
10614
|
+
*
|
|
10615
|
+
* One of these left it open:
|
|
10616
|
+
*
|
|
10617
|
+
* - The read-back found several objects of the same name.
|
|
10618
|
+
* - The parent could not be read, or the object is a creative, which has no reliable read-back.
|
|
10619
|
+
* - The read-back found no such object, after a dropped connection, a non-JSON body, a 5xx with `retryOnServerError: false`, or a 5xx on a create whose own body is `status: ACTIVE`.
|
|
10620
|
+
*
|
|
10611
10621
|
*/
|
|
10612
10622
|
unconfirmedWrite?: {
|
|
10613
10623
|
type?: 'campaign' | 'adset' | 'creative' | 'ad';
|
|
@@ -14989,6 +14999,8 @@ type ParameterEmailAccountId = string;
|
|
|
14989
14999
|
*
|
|
14990
15000
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
14991
15001
|
*
|
|
15002
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
15003
|
+
*
|
|
14992
15004
|
*/
|
|
14993
15005
|
type ParameterIdempotencyKeyHeader = string;
|
|
14994
15006
|
/**
|
|
@@ -26101,6 +26113,8 @@ type CreateTopupData = {
|
|
|
26101
26113
|
*
|
|
26102
26114
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
26103
26115
|
*
|
|
26116
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
26117
|
+
*
|
|
26104
26118
|
*/
|
|
26105
26119
|
'Idempotency-Key'?: string;
|
|
26106
26120
|
};
|
|
@@ -26892,6 +26906,8 @@ type CreateTransferData = {
|
|
|
26892
26906
|
*
|
|
26893
26907
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
26894
26908
|
*
|
|
26909
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
26910
|
+
*
|
|
26895
26911
|
*/
|
|
26896
26912
|
'Idempotency-Key'?: string;
|
|
26897
26913
|
};
|
|
@@ -29244,6 +29260,8 @@ type CreateProfileData = {
|
|
|
29244
29260
|
*
|
|
29245
29261
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
29246
29262
|
*
|
|
29263
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
29264
|
+
*
|
|
29247
29265
|
*/
|
|
29248
29266
|
'Idempotency-Key'?: string;
|
|
29249
29267
|
};
|
|
@@ -39893,6 +39911,8 @@ type SendInboxMessageData = {
|
|
|
39893
39911
|
*
|
|
39894
39912
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
39895
39913
|
*
|
|
39914
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
39915
|
+
*
|
|
39896
39916
|
*/
|
|
39897
39917
|
'Idempotency-Key'?: string;
|
|
39898
39918
|
};
|
|
@@ -41108,6 +41128,8 @@ type ReplyToInboxPostData = {
|
|
|
41108
41128
|
*
|
|
41109
41129
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
41110
41130
|
*
|
|
41131
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
41132
|
+
*
|
|
41111
41133
|
*/
|
|
41112
41134
|
'Idempotency-Key'?: string;
|
|
41113
41135
|
};
|
|
@@ -41972,6 +41994,8 @@ type ReplyToInboxReviewData = {
|
|
|
41972
41994
|
*
|
|
41973
41995
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
41974
41996
|
*
|
|
41997
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
41998
|
+
*
|
|
41975
41999
|
*/
|
|
41976
42000
|
'Idempotency-Key'?: string;
|
|
41977
42001
|
};
|
|
@@ -42587,6 +42611,8 @@ type InitiateWhatsAppCallData = {
|
|
|
42587
42611
|
*
|
|
42588
42612
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
42589
42613
|
*
|
|
42614
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
42615
|
+
*
|
|
42590
42616
|
*/
|
|
42591
42617
|
'Idempotency-Key'?: string;
|
|
42592
42618
|
};
|
|
@@ -42833,6 +42859,8 @@ type CreateVoiceCallData = {
|
|
|
42833
42859
|
*
|
|
42834
42860
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
42835
42861
|
*
|
|
42862
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
42863
|
+
*
|
|
42836
42864
|
*/
|
|
42837
42865
|
'Idempotency-Key'?: string;
|
|
42838
42866
|
};
|
|
@@ -43438,6 +43466,8 @@ type SendSmsData = {
|
|
|
43438
43466
|
*
|
|
43439
43467
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
43440
43468
|
*
|
|
43469
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
43470
|
+
*
|
|
43441
43471
|
*/
|
|
43442
43472
|
'Idempotency-Key'?: string;
|
|
43443
43473
|
};
|
|
@@ -43496,6 +43526,8 @@ type CreateRcsAgentData = {
|
|
|
43496
43526
|
*
|
|
43497
43527
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
43498
43528
|
*
|
|
43529
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
43530
|
+
*
|
|
43499
43531
|
*/
|
|
43500
43532
|
'Idempotency-Key'?: string;
|
|
43501
43533
|
};
|
|
@@ -43620,6 +43652,8 @@ type SendRcsMessageData = {
|
|
|
43620
43652
|
*
|
|
43621
43653
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
43622
43654
|
*
|
|
43655
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
43656
|
+
*
|
|
43623
43657
|
*/
|
|
43624
43658
|
'Idempotency-Key'?: string;
|
|
43625
43659
|
};
|
|
@@ -43808,6 +43842,8 @@ type CreateBrandedCallingEnterpriseData = {
|
|
|
43808
43842
|
*
|
|
43809
43843
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
43810
43844
|
*
|
|
43845
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
43846
|
+
*
|
|
43811
43847
|
*/
|
|
43812
43848
|
'Idempotency-Key'?: string;
|
|
43813
43849
|
};
|
|
@@ -43895,6 +43931,8 @@ type CreateBrandedCallingIdentityData = {
|
|
|
43895
43931
|
*
|
|
43896
43932
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
43897
43933
|
*
|
|
43934
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
43935
|
+
*
|
|
43898
43936
|
*/
|
|
43899
43937
|
'Idempotency-Key'?: string;
|
|
43900
43938
|
};
|
|
@@ -49618,6 +49656,8 @@ type AskSupportQuestionData = {
|
|
|
49618
49656
|
*
|
|
49619
49657
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
49620
49658
|
*
|
|
49659
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
49660
|
+
*
|
|
49621
49661
|
*/
|
|
49622
49662
|
'Idempotency-Key'?: string;
|
|
49623
49663
|
};
|
|
@@ -59604,6 +59644,8 @@ type BoostPostData = {
|
|
|
59604
59644
|
*
|
|
59605
59645
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
59606
59646
|
*
|
|
59647
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
59648
|
+
*
|
|
59607
59649
|
*/
|
|
59608
59650
|
'Idempotency-Key'?: string;
|
|
59609
59651
|
};
|
|
@@ -61143,6 +61185,8 @@ type CreateStandaloneAdData = {
|
|
|
61143
61185
|
*
|
|
61144
61186
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
61145
61187
|
*
|
|
61188
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
61189
|
+
*
|
|
61146
61190
|
*/
|
|
61147
61191
|
'Idempotency-Key'?: string;
|
|
61148
61192
|
};
|
|
@@ -64643,6 +64687,8 @@ type CreateMessagingAdData = {
|
|
|
64643
64687
|
*
|
|
64644
64688
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
64645
64689
|
*
|
|
64690
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
64691
|
+
*
|
|
64646
64692
|
*/
|
|
64647
64693
|
'Idempotency-Key'?: string;
|
|
64648
64694
|
};
|
|
@@ -64684,6 +64730,8 @@ type CreateCallAdData = {
|
|
|
64684
64730
|
*
|
|
64685
64731
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
64686
64732
|
*
|
|
64733
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
64734
|
+
*
|
|
64687
64735
|
*/
|
|
64688
64736
|
'Idempotency-Key'?: string;
|
|
64689
64737
|
};
|
|
@@ -64702,6 +64750,8 @@ type CreateCtwaAdData = {
|
|
|
64702
64750
|
*
|
|
64703
64751
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
64704
64752
|
*
|
|
64753
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
64754
|
+
*
|
|
64705
64755
|
*/
|
|
64706
64756
|
'Idempotency-Key'?: string;
|
|
64707
64757
|
};
|
|
@@ -66228,6 +66278,8 @@ type CreateBlogArticleData = {
|
|
|
66228
66278
|
*
|
|
66229
66279
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
66230
66280
|
*
|
|
66281
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
66282
|
+
*
|
|
66231
66283
|
*/
|
|
66232
66284
|
'Idempotency-Key'?: string;
|
|
66233
66285
|
};
|
|
@@ -68176,6 +68228,8 @@ type CreateCreatorCampaignData = {
|
|
|
68176
68228
|
*
|
|
68177
68229
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
68178
68230
|
*
|
|
68231
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
68232
|
+
*
|
|
68179
68233
|
*/
|
|
68180
68234
|
'Idempotency-Key'?: string;
|
|
68181
68235
|
};
|
|
@@ -68246,6 +68300,8 @@ type RaiseCreatorCampaignBudgetData = {
|
|
|
68246
68300
|
*
|
|
68247
68301
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
68248
68302
|
*
|
|
68303
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
68304
|
+
*
|
|
68249
68305
|
*/
|
|
68250
68306
|
'Idempotency-Key'?: string;
|
|
68251
68307
|
};
|
|
@@ -68311,6 +68367,8 @@ type CreateCampaignParticipantData = {
|
|
|
68311
68367
|
*
|
|
68312
68368
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
68313
68369
|
*
|
|
68370
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
68371
|
+
*
|
|
68314
68372
|
*/
|
|
68315
68373
|
'Idempotency-Key'?: string;
|
|
68316
68374
|
};
|
|
@@ -68454,6 +68512,8 @@ type ResendCampaignParticipantInviteData = {
|
|
|
68454
68512
|
*
|
|
68455
68513
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
68456
68514
|
*
|
|
68515
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
68516
|
+
*
|
|
68457
68517
|
*/
|
|
68458
68518
|
'Idempotency-Key'?: string;
|
|
68459
68519
|
};
|
|
@@ -68497,6 +68557,8 @@ type SettleCampaignParticipantData = {
|
|
|
68497
68557
|
*
|
|
68498
68558
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
68499
68559
|
*
|
|
68560
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
68561
|
+
*
|
|
68500
68562
|
*/
|
|
68501
68563
|
'Idempotency-Key'?: string;
|
|
68502
68564
|
};
|
|
@@ -68540,6 +68602,8 @@ type CreateCampaignPayoutBatchData = {
|
|
|
68540
68602
|
*
|
|
68541
68603
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
68542
68604
|
*
|
|
68605
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
68606
|
+
*
|
|
68543
68607
|
*/
|
|
68544
68608
|
'Idempotency-Key'?: string;
|
|
68545
68609
|
};
|
|
@@ -68649,6 +68713,8 @@ type ApproveCampaignSubmissionData = {
|
|
|
68649
68713
|
*
|
|
68650
68714
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
68651
68715
|
*
|
|
68716
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
68717
|
+
*
|
|
68652
68718
|
*/
|
|
68653
68719
|
'Idempotency-Key'?: string;
|
|
68654
68720
|
};
|
|
@@ -68681,6 +68747,8 @@ type RejectCampaignSubmissionData = {
|
|
|
68681
68747
|
*
|
|
68682
68748
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
68683
68749
|
*
|
|
68750
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
68751
|
+
*
|
|
68684
68752
|
*/
|
|
68685
68753
|
'Idempotency-Key'?: string;
|
|
68686
68754
|
};
|
|
@@ -68710,6 +68778,8 @@ type ReopenCampaignSubmissionData = {
|
|
|
68710
68778
|
*
|
|
68711
68779
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
68712
68780
|
*
|
|
68781
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
68782
|
+
*
|
|
68713
68783
|
*/
|
|
68714
68784
|
'Idempotency-Key'?: string;
|
|
68715
68785
|
};
|
|
@@ -68759,6 +68829,8 @@ type CreateCampaignAdjustmentData = {
|
|
|
68759
68829
|
*
|
|
68760
68830
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
68761
68831
|
*
|
|
68832
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
68833
|
+
*
|
|
68762
68834
|
*/
|
|
68763
68835
|
'Idempotency-Key'?: string;
|
|
68764
68836
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -10555,7 +10555,7 @@ type ErrorResponse = {
|
|
|
10555
10555
|
* **Failed Meta ad create** (`POST /v1/ads/create`, `POST /v1/ads/boost`, `POST /v1/ads/ctwa`). Carries `stage` (where it failed), `adAccountId` (on which ad account) and `createdObjects` (every object this request had already created, with what cleanup did to it).
|
|
10556
10556
|
*
|
|
10557
10557
|
* - `left_behind` objects still exist on the ad account (Meta refused the delete, typically on a held account, or the delete hit a network error). Delete them yourself or reuse them.
|
|
10558
|
-
* - `unconfirmedWrite` is set when Meta answered a create with a 5xx or dropped the connection and Zernio could not confirm whether the object exists. Check that parent before creating it again.
|
|
10558
|
+
* - `unconfirmedWrite` is set when Meta answered a create with a 5xx or a non-JSON body, or dropped the connection, and Zernio could not confirm whether the object exists. Check that parent before creating it again.
|
|
10559
10559
|
*
|
|
10560
10560
|
* **Ineligible ad account: 422 `ad_account_unusable`.** When Meta refuses a write because the ad account's status is ineligible to manage ads (Meta subcode 2490592 or 4841021, on the write itself or on a cleanup delete), any Meta ads write answers it.
|
|
10561
10561
|
*
|
|
@@ -10602,12 +10602,22 @@ type ErrorResponse = {
|
|
|
10602
10602
|
*/
|
|
10603
10603
|
id?: string;
|
|
10604
10604
|
/**
|
|
10605
|
-
* `deleted`: Zernio deleted it.
|
|
10605
|
+
* - `deleted`: Zernio deleted it.
|
|
10606
|
+
* - `left_behind`: cleanup could not delete it (Meta refused the delete, or the delete hit a network error), so it still exists.
|
|
10607
|
+
* - `kept`: deliberately not deleted. Either an image (hashes are shared by every upload of the same file), or an object Zernio found by name after Meta lost its answer to the create, which may belong to another request with the same name.
|
|
10608
|
+
*
|
|
10606
10609
|
*/
|
|
10607
10610
|
cleanup?: 'deleted' | 'left_behind' | 'kept';
|
|
10608
10611
|
}>;
|
|
10609
10612
|
/**
|
|
10610
|
-
* Meta ad create failures only
|
|
10613
|
+
* Meta ad create failures only. Set when Meta answered a create with a 5xx or a non-JSON body, or dropped the connection after the request was sent, and reading the parent back by name did not settle it. Zernio did not retry it.
|
|
10614
|
+
*
|
|
10615
|
+
* One of these left it open:
|
|
10616
|
+
*
|
|
10617
|
+
* - The read-back found several objects of the same name.
|
|
10618
|
+
* - The parent could not be read, or the object is a creative, which has no reliable read-back.
|
|
10619
|
+
* - The read-back found no such object, after a dropped connection, a non-JSON body, a 5xx with `retryOnServerError: false`, or a 5xx on a create whose own body is `status: ACTIVE`.
|
|
10620
|
+
*
|
|
10611
10621
|
*/
|
|
10612
10622
|
unconfirmedWrite?: {
|
|
10613
10623
|
type?: 'campaign' | 'adset' | 'creative' | 'ad';
|
|
@@ -14989,6 +14999,8 @@ type ParameterEmailAccountId = string;
|
|
|
14989
14999
|
*
|
|
14990
15000
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
14991
15001
|
*
|
|
15002
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
15003
|
+
*
|
|
14992
15004
|
*/
|
|
14993
15005
|
type ParameterIdempotencyKeyHeader = string;
|
|
14994
15006
|
/**
|
|
@@ -26101,6 +26113,8 @@ type CreateTopupData = {
|
|
|
26101
26113
|
*
|
|
26102
26114
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
26103
26115
|
*
|
|
26116
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
26117
|
+
*
|
|
26104
26118
|
*/
|
|
26105
26119
|
'Idempotency-Key'?: string;
|
|
26106
26120
|
};
|
|
@@ -26892,6 +26906,8 @@ type CreateTransferData = {
|
|
|
26892
26906
|
*
|
|
26893
26907
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
26894
26908
|
*
|
|
26909
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
26910
|
+
*
|
|
26895
26911
|
*/
|
|
26896
26912
|
'Idempotency-Key'?: string;
|
|
26897
26913
|
};
|
|
@@ -29244,6 +29260,8 @@ type CreateProfileData = {
|
|
|
29244
29260
|
*
|
|
29245
29261
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
29246
29262
|
*
|
|
29263
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
29264
|
+
*
|
|
29247
29265
|
*/
|
|
29248
29266
|
'Idempotency-Key'?: string;
|
|
29249
29267
|
};
|
|
@@ -39893,6 +39911,8 @@ type SendInboxMessageData = {
|
|
|
39893
39911
|
*
|
|
39894
39912
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
39895
39913
|
*
|
|
39914
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
39915
|
+
*
|
|
39896
39916
|
*/
|
|
39897
39917
|
'Idempotency-Key'?: string;
|
|
39898
39918
|
};
|
|
@@ -41108,6 +41128,8 @@ type ReplyToInboxPostData = {
|
|
|
41108
41128
|
*
|
|
41109
41129
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
41110
41130
|
*
|
|
41131
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
41132
|
+
*
|
|
41111
41133
|
*/
|
|
41112
41134
|
'Idempotency-Key'?: string;
|
|
41113
41135
|
};
|
|
@@ -41972,6 +41994,8 @@ type ReplyToInboxReviewData = {
|
|
|
41972
41994
|
*
|
|
41973
41995
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
41974
41996
|
*
|
|
41997
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
41998
|
+
*
|
|
41975
41999
|
*/
|
|
41976
42000
|
'Idempotency-Key'?: string;
|
|
41977
42001
|
};
|
|
@@ -42587,6 +42611,8 @@ type InitiateWhatsAppCallData = {
|
|
|
42587
42611
|
*
|
|
42588
42612
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
42589
42613
|
*
|
|
42614
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
42615
|
+
*
|
|
42590
42616
|
*/
|
|
42591
42617
|
'Idempotency-Key'?: string;
|
|
42592
42618
|
};
|
|
@@ -42833,6 +42859,8 @@ type CreateVoiceCallData = {
|
|
|
42833
42859
|
*
|
|
42834
42860
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
42835
42861
|
*
|
|
42862
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
42863
|
+
*
|
|
42836
42864
|
*/
|
|
42837
42865
|
'Idempotency-Key'?: string;
|
|
42838
42866
|
};
|
|
@@ -43438,6 +43466,8 @@ type SendSmsData = {
|
|
|
43438
43466
|
*
|
|
43439
43467
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
43440
43468
|
*
|
|
43469
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
43470
|
+
*
|
|
43441
43471
|
*/
|
|
43442
43472
|
'Idempotency-Key'?: string;
|
|
43443
43473
|
};
|
|
@@ -43496,6 +43526,8 @@ type CreateRcsAgentData = {
|
|
|
43496
43526
|
*
|
|
43497
43527
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
43498
43528
|
*
|
|
43529
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
43530
|
+
*
|
|
43499
43531
|
*/
|
|
43500
43532
|
'Idempotency-Key'?: string;
|
|
43501
43533
|
};
|
|
@@ -43620,6 +43652,8 @@ type SendRcsMessageData = {
|
|
|
43620
43652
|
*
|
|
43621
43653
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
43622
43654
|
*
|
|
43655
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
43656
|
+
*
|
|
43623
43657
|
*/
|
|
43624
43658
|
'Idempotency-Key'?: string;
|
|
43625
43659
|
};
|
|
@@ -43808,6 +43842,8 @@ type CreateBrandedCallingEnterpriseData = {
|
|
|
43808
43842
|
*
|
|
43809
43843
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
43810
43844
|
*
|
|
43845
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
43846
|
+
*
|
|
43811
43847
|
*/
|
|
43812
43848
|
'Idempotency-Key'?: string;
|
|
43813
43849
|
};
|
|
@@ -43895,6 +43931,8 @@ type CreateBrandedCallingIdentityData = {
|
|
|
43895
43931
|
*
|
|
43896
43932
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
43897
43933
|
*
|
|
43934
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
43935
|
+
*
|
|
43898
43936
|
*/
|
|
43899
43937
|
'Idempotency-Key'?: string;
|
|
43900
43938
|
};
|
|
@@ -49618,6 +49656,8 @@ type AskSupportQuestionData = {
|
|
|
49618
49656
|
*
|
|
49619
49657
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
49620
49658
|
*
|
|
49659
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
49660
|
+
*
|
|
49621
49661
|
*/
|
|
49622
49662
|
'Idempotency-Key'?: string;
|
|
49623
49663
|
};
|
|
@@ -59604,6 +59644,8 @@ type BoostPostData = {
|
|
|
59604
59644
|
*
|
|
59605
59645
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
59606
59646
|
*
|
|
59647
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
59648
|
+
*
|
|
59607
59649
|
*/
|
|
59608
59650
|
'Idempotency-Key'?: string;
|
|
59609
59651
|
};
|
|
@@ -61143,6 +61185,8 @@ type CreateStandaloneAdData = {
|
|
|
61143
61185
|
*
|
|
61144
61186
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
61145
61187
|
*
|
|
61188
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
61189
|
+
*
|
|
61146
61190
|
*/
|
|
61147
61191
|
'Idempotency-Key'?: string;
|
|
61148
61192
|
};
|
|
@@ -64643,6 +64687,8 @@ type CreateMessagingAdData = {
|
|
|
64643
64687
|
*
|
|
64644
64688
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
64645
64689
|
*
|
|
64690
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
64691
|
+
*
|
|
64646
64692
|
*/
|
|
64647
64693
|
'Idempotency-Key'?: string;
|
|
64648
64694
|
};
|
|
@@ -64684,6 +64730,8 @@ type CreateCallAdData = {
|
|
|
64684
64730
|
*
|
|
64685
64731
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
64686
64732
|
*
|
|
64733
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
64734
|
+
*
|
|
64687
64735
|
*/
|
|
64688
64736
|
'Idempotency-Key'?: string;
|
|
64689
64737
|
};
|
|
@@ -64702,6 +64750,8 @@ type CreateCtwaAdData = {
|
|
|
64702
64750
|
*
|
|
64703
64751
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
64704
64752
|
*
|
|
64753
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
64754
|
+
*
|
|
64705
64755
|
*/
|
|
64706
64756
|
'Idempotency-Key'?: string;
|
|
64707
64757
|
};
|
|
@@ -66228,6 +66278,8 @@ type CreateBlogArticleData = {
|
|
|
66228
66278
|
*
|
|
66229
66279
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
66230
66280
|
*
|
|
66281
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
66282
|
+
*
|
|
66231
66283
|
*/
|
|
66232
66284
|
'Idempotency-Key'?: string;
|
|
66233
66285
|
};
|
|
@@ -68176,6 +68228,8 @@ type CreateCreatorCampaignData = {
|
|
|
68176
68228
|
*
|
|
68177
68229
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
68178
68230
|
*
|
|
68231
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
68232
|
+
*
|
|
68179
68233
|
*/
|
|
68180
68234
|
'Idempotency-Key'?: string;
|
|
68181
68235
|
};
|
|
@@ -68246,6 +68300,8 @@ type RaiseCreatorCampaignBudgetData = {
|
|
|
68246
68300
|
*
|
|
68247
68301
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
68248
68302
|
*
|
|
68303
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
68304
|
+
*
|
|
68249
68305
|
*/
|
|
68250
68306
|
'Idempotency-Key'?: string;
|
|
68251
68307
|
};
|
|
@@ -68311,6 +68367,8 @@ type CreateCampaignParticipantData = {
|
|
|
68311
68367
|
*
|
|
68312
68368
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
68313
68369
|
*
|
|
68370
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
68371
|
+
*
|
|
68314
68372
|
*/
|
|
68315
68373
|
'Idempotency-Key'?: string;
|
|
68316
68374
|
};
|
|
@@ -68454,6 +68512,8 @@ type ResendCampaignParticipantInviteData = {
|
|
|
68454
68512
|
*
|
|
68455
68513
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
68456
68514
|
*
|
|
68515
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
68516
|
+
*
|
|
68457
68517
|
*/
|
|
68458
68518
|
'Idempotency-Key'?: string;
|
|
68459
68519
|
};
|
|
@@ -68497,6 +68557,8 @@ type SettleCampaignParticipantData = {
|
|
|
68497
68557
|
*
|
|
68498
68558
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
68499
68559
|
*
|
|
68560
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
68561
|
+
*
|
|
68500
68562
|
*/
|
|
68501
68563
|
'Idempotency-Key'?: string;
|
|
68502
68564
|
};
|
|
@@ -68540,6 +68602,8 @@ type CreateCampaignPayoutBatchData = {
|
|
|
68540
68602
|
*
|
|
68541
68603
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
68542
68604
|
*
|
|
68605
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
68606
|
+
*
|
|
68543
68607
|
*/
|
|
68544
68608
|
'Idempotency-Key'?: string;
|
|
68545
68609
|
};
|
|
@@ -68649,6 +68713,8 @@ type ApproveCampaignSubmissionData = {
|
|
|
68649
68713
|
*
|
|
68650
68714
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
68651
68715
|
*
|
|
68716
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
68717
|
+
*
|
|
68652
68718
|
*/
|
|
68653
68719
|
'Idempotency-Key'?: string;
|
|
68654
68720
|
};
|
|
@@ -68681,6 +68747,8 @@ type RejectCampaignSubmissionData = {
|
|
|
68681
68747
|
*
|
|
68682
68748
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
68683
68749
|
*
|
|
68750
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
68751
|
+
*
|
|
68684
68752
|
*/
|
|
68685
68753
|
'Idempotency-Key'?: string;
|
|
68686
68754
|
};
|
|
@@ -68710,6 +68778,8 @@ type ReopenCampaignSubmissionData = {
|
|
|
68710
68778
|
*
|
|
68711
68779
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
68712
68780
|
*
|
|
68781
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
68782
|
+
*
|
|
68713
68783
|
*/
|
|
68714
68784
|
'Idempotency-Key'?: string;
|
|
68715
68785
|
};
|
|
@@ -68759,6 +68829,8 @@ type CreateCampaignAdjustmentData = {
|
|
|
68759
68829
|
*
|
|
68760
68830
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
68761
68831
|
*
|
|
68832
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
68833
|
+
*
|
|
68762
68834
|
*/
|
|
68763
68835
|
'Idempotency-Key'?: string;
|
|
68764
68836
|
};
|
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: "@zernio/node",
|
|
39
|
-
version: "0.2.
|
|
39
|
+
version: "0.2.1509",
|
|
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: "@zernio/node",
|
|
8
|
-
version: "0.2.
|
|
8
|
+
version: "0.2.1509",
|
|
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
|
@@ -17435,7 +17435,9 @@ export const browseAdTargeting = <ThrowOnError extends boolean = false>(options:
|
|
|
17435
17435
|
*
|
|
17436
17436
|
* **Meta coverage.** Political and social-issue ads are searchable worldwide. Every other ad is in the archive only if it was delivered to the EU or UK within the last year, so a US-only commercial advertiser is invisible.
|
|
17437
17437
|
*
|
|
17438
|
-
* Spend, impressions and demographics are political-only fields and are left out of the default projection; request them via `fields`.
|
|
17438
|
+
* Spend, impressions and demographics are political-only fields and are left out of the default projection; request them via `fields`.
|
|
17439
|
+
*
|
|
17440
|
+
* **Meta rate limit.** Meta searches are capped at 30 requests per hour per team, because all customers share Zernio's Meta quota. Meta can also throttle that shared quota. Either way you get a `429` with `Retry-After`: wait that long before retrying.
|
|
17439
17441
|
*
|
|
17440
17442
|
* **LinkedIn coverage.** Ads served after June 1 2023, worldwide, kept for a year after their last impression. EU-delivered ads carry impression ranges and the disclosed targeting facets.
|
|
17441
17443
|
*
|
|
@@ -8610,7 +8610,7 @@ export type ErrorResponse = {
|
|
|
8610
8610
|
* **Failed Meta ad create** (`POST /v1/ads/create`, `POST /v1/ads/boost`, `POST /v1/ads/ctwa`). Carries `stage` (where it failed), `adAccountId` (on which ad account) and `createdObjects` (every object this request had already created, with what cleanup did to it).
|
|
8611
8611
|
*
|
|
8612
8612
|
* - `left_behind` objects still exist on the ad account (Meta refused the delete, typically on a held account, or the delete hit a network error). Delete them yourself or reuse them.
|
|
8613
|
-
* - `unconfirmedWrite` is set when Meta answered a create with a 5xx or dropped the connection and Zernio could not confirm whether the object exists. Check that parent before creating it again.
|
|
8613
|
+
* - `unconfirmedWrite` is set when Meta answered a create with a 5xx or a non-JSON body, or dropped the connection, and Zernio could not confirm whether the object exists. Check that parent before creating it again.
|
|
8614
8614
|
*
|
|
8615
8615
|
* **Ineligible ad account: 422 `ad_account_unusable`.** When Meta refuses a write because the ad account's status is ineligible to manage ads (Meta subcode 2490592 or 4841021, on the write itself or on a cleanup delete), any Meta ads write answers it.
|
|
8616
8616
|
*
|
|
@@ -8657,12 +8657,22 @@ export type ErrorResponse = {
|
|
|
8657
8657
|
*/
|
|
8658
8658
|
id?: string;
|
|
8659
8659
|
/**
|
|
8660
|
-
* `deleted`: Zernio deleted it.
|
|
8660
|
+
* - `deleted`: Zernio deleted it.
|
|
8661
|
+
* - `left_behind`: cleanup could not delete it (Meta refused the delete, or the delete hit a network error), so it still exists.
|
|
8662
|
+
* - `kept`: deliberately not deleted. Either an image (hashes are shared by every upload of the same file), or an object Zernio found by name after Meta lost its answer to the create, which may belong to another request with the same name.
|
|
8663
|
+
*
|
|
8661
8664
|
*/
|
|
8662
8665
|
cleanup?: 'deleted' | 'left_behind' | 'kept';
|
|
8663
8666
|
}>;
|
|
8664
8667
|
/**
|
|
8665
|
-
* Meta ad create failures only
|
|
8668
|
+
* Meta ad create failures only. Set when Meta answered a create with a 5xx or a non-JSON body, or dropped the connection after the request was sent, and reading the parent back by name did not settle it. Zernio did not retry it.
|
|
8669
|
+
*
|
|
8670
|
+
* One of these left it open:
|
|
8671
|
+
*
|
|
8672
|
+
* - The read-back found several objects of the same name.
|
|
8673
|
+
* - The parent could not be read, or the object is a creative, which has no reliable read-back.
|
|
8674
|
+
* - The read-back found no such object, after a dropped connection, a non-JSON body, a 5xx with `retryOnServerError: false`, or a 5xx on a create whose own body is `status: ACTIVE`.
|
|
8675
|
+
*
|
|
8666
8676
|
*/
|
|
8667
8677
|
unconfirmedWrite?: {
|
|
8668
8678
|
type?: 'campaign' | 'adset' | 'creative' | 'ad';
|
|
@@ -13251,6 +13261,8 @@ export type ParameterEmailAccountId = string;
|
|
|
13251
13261
|
*
|
|
13252
13262
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
13253
13263
|
*
|
|
13264
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
13265
|
+
*
|
|
13254
13266
|
*/
|
|
13255
13267
|
export type ParameterIdempotencyKeyHeader = string;
|
|
13256
13268
|
|
|
@@ -24880,6 +24892,8 @@ export type CreateTopupData = {
|
|
|
24880
24892
|
*
|
|
24881
24893
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
24882
24894
|
*
|
|
24895
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
24896
|
+
*
|
|
24883
24897
|
*/
|
|
24884
24898
|
'Idempotency-Key'?: string;
|
|
24885
24899
|
};
|
|
@@ -25700,6 +25714,8 @@ export type CreateTransferData = {
|
|
|
25700
25714
|
*
|
|
25701
25715
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
25702
25716
|
*
|
|
25717
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
25718
|
+
*
|
|
25703
25719
|
*/
|
|
25704
25720
|
'Idempotency-Key'?: string;
|
|
25705
25721
|
};
|
|
@@ -28249,6 +28265,8 @@ export type CreateProfileData = {
|
|
|
28249
28265
|
*
|
|
28250
28266
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
28251
28267
|
*
|
|
28268
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
28269
|
+
*
|
|
28252
28270
|
*/
|
|
28253
28271
|
'Idempotency-Key'?: string;
|
|
28254
28272
|
};
|
|
@@ -39587,6 +39605,8 @@ export type SendInboxMessageData = {
|
|
|
39587
39605
|
*
|
|
39588
39606
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
39589
39607
|
*
|
|
39608
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
39609
|
+
*
|
|
39590
39610
|
*/
|
|
39591
39611
|
'Idempotency-Key'?: string;
|
|
39592
39612
|
};
|
|
@@ -40916,6 +40936,8 @@ export type ReplyToInboxPostData = {
|
|
|
40916
40936
|
*
|
|
40917
40937
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
40918
40938
|
*
|
|
40939
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
40940
|
+
*
|
|
40919
40941
|
*/
|
|
40920
40942
|
'Idempotency-Key'?: string;
|
|
40921
40943
|
};
|
|
@@ -41852,6 +41874,8 @@ export type ReplyToInboxReviewData = {
|
|
|
41852
41874
|
*
|
|
41853
41875
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
41854
41876
|
*
|
|
41877
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
41878
|
+
*
|
|
41855
41879
|
*/
|
|
41856
41880
|
'Idempotency-Key'?: string;
|
|
41857
41881
|
};
|
|
@@ -42512,6 +42536,8 @@ export type InitiateWhatsAppCallData = {
|
|
|
42512
42536
|
*
|
|
42513
42537
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
42514
42538
|
*
|
|
42539
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
42540
|
+
*
|
|
42515
42541
|
*/
|
|
42516
42542
|
'Idempotency-Key'?: string;
|
|
42517
42543
|
};
|
|
@@ -42782,6 +42808,8 @@ export type CreateVoiceCallData = {
|
|
|
42782
42808
|
*
|
|
42783
42809
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
42784
42810
|
*
|
|
42811
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
42812
|
+
*
|
|
42785
42813
|
*/
|
|
42786
42814
|
'Idempotency-Key'?: string;
|
|
42787
42815
|
};
|
|
@@ -43471,6 +43499,8 @@ export type SendSmsData = {
|
|
|
43471
43499
|
*
|
|
43472
43500
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
43473
43501
|
*
|
|
43502
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
43503
|
+
*
|
|
43474
43504
|
*/
|
|
43475
43505
|
'Idempotency-Key'?: string;
|
|
43476
43506
|
};
|
|
@@ -43537,6 +43567,8 @@ export type CreateRcsAgentData = {
|
|
|
43537
43567
|
*
|
|
43538
43568
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
43539
43569
|
*
|
|
43570
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
43571
|
+
*
|
|
43540
43572
|
*/
|
|
43541
43573
|
'Idempotency-Key'?: string;
|
|
43542
43574
|
};
|
|
@@ -43688,6 +43720,8 @@ export type SendRcsMessageData = {
|
|
|
43688
43720
|
*
|
|
43689
43721
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
43690
43722
|
*
|
|
43723
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
43724
|
+
*
|
|
43691
43725
|
*/
|
|
43692
43726
|
'Idempotency-Key'?: string;
|
|
43693
43727
|
};
|
|
@@ -43899,6 +43933,8 @@ export type CreateBrandedCallingEnterpriseData = {
|
|
|
43899
43933
|
*
|
|
43900
43934
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
43901
43935
|
*
|
|
43936
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
43937
|
+
*
|
|
43902
43938
|
*/
|
|
43903
43939
|
'Idempotency-Key'?: string;
|
|
43904
43940
|
};
|
|
@@ -44002,6 +44038,8 @@ export type CreateBrandedCallingIdentityData = {
|
|
|
44002
44038
|
*
|
|
44003
44039
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
44004
44040
|
*
|
|
44041
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
44042
|
+
*
|
|
44005
44043
|
*/
|
|
44006
44044
|
'Idempotency-Key'?: string;
|
|
44007
44045
|
};
|
|
@@ -50219,6 +50257,8 @@ export type AskSupportQuestionData = {
|
|
|
50219
50257
|
*
|
|
50220
50258
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
50221
50259
|
*
|
|
50260
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
50261
|
+
*
|
|
50222
50262
|
*/
|
|
50223
50263
|
'Idempotency-Key'?: string;
|
|
50224
50264
|
};
|
|
@@ -60812,6 +60852,8 @@ export type BoostPostData = {
|
|
|
60812
60852
|
*
|
|
60813
60853
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
60814
60854
|
*
|
|
60855
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
60856
|
+
*
|
|
60815
60857
|
*/
|
|
60816
60858
|
'Idempotency-Key'?: string;
|
|
60817
60859
|
};
|
|
@@ -62375,6 +62417,8 @@ export type CreateStandaloneAdData = {
|
|
|
62375
62417
|
*
|
|
62376
62418
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
62377
62419
|
*
|
|
62420
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
62421
|
+
*
|
|
62378
62422
|
*/
|
|
62379
62423
|
'Idempotency-Key'?: string;
|
|
62380
62424
|
};
|
|
@@ -66118,6 +66162,8 @@ export type CreateMessagingAdData = {
|
|
|
66118
66162
|
*
|
|
66119
66163
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
66120
66164
|
*
|
|
66165
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
66166
|
+
*
|
|
66121
66167
|
*/
|
|
66122
66168
|
'Idempotency-Key'?: string;
|
|
66123
66169
|
};
|
|
@@ -66162,6 +66208,8 @@ export type CreateCallAdData = {
|
|
|
66162
66208
|
*
|
|
66163
66209
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
66164
66210
|
*
|
|
66211
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
66212
|
+
*
|
|
66165
66213
|
*/
|
|
66166
66214
|
'Idempotency-Key'?: string;
|
|
66167
66215
|
};
|
|
@@ -66183,6 +66231,8 @@ export type CreateCtwaAdData = {
|
|
|
66183
66231
|
*
|
|
66184
66232
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
66185
66233
|
*
|
|
66234
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
66235
|
+
*
|
|
66186
66236
|
*/
|
|
66187
66237
|
'Idempotency-Key'?: string;
|
|
66188
66238
|
};
|
|
@@ -67961,6 +68011,8 @@ export type CreateBlogArticleData = {
|
|
|
67961
68011
|
*
|
|
67962
68012
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
67963
68013
|
*
|
|
68014
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
68015
|
+
*
|
|
67964
68016
|
*/
|
|
67965
68017
|
'Idempotency-Key'?: string;
|
|
67966
68018
|
};
|
|
@@ -70185,6 +70237,8 @@ export type CreateCreatorCampaignData = {
|
|
|
70185
70237
|
*
|
|
70186
70238
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
70187
70239
|
*
|
|
70240
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
70241
|
+
*
|
|
70188
70242
|
*/
|
|
70189
70243
|
'Idempotency-Key'?: string;
|
|
70190
70244
|
};
|
|
@@ -70267,6 +70321,8 @@ export type RaiseCreatorCampaignBudgetData = {
|
|
|
70267
70321
|
*
|
|
70268
70322
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
70269
70323
|
*
|
|
70324
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
70325
|
+
*
|
|
70270
70326
|
*/
|
|
70271
70327
|
'Idempotency-Key'?: string;
|
|
70272
70328
|
};
|
|
@@ -70344,6 +70400,8 @@ export type CreateCampaignParticipantData = {
|
|
|
70344
70400
|
*
|
|
70345
70401
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
70346
70402
|
*
|
|
70403
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
70404
|
+
*
|
|
70347
70405
|
*/
|
|
70348
70406
|
'Idempotency-Key'?: string;
|
|
70349
70407
|
};
|
|
@@ -70508,6 +70566,8 @@ export type ResendCampaignParticipantInviteData = {
|
|
|
70508
70566
|
*
|
|
70509
70567
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
70510
70568
|
*
|
|
70569
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
70570
|
+
*
|
|
70511
70571
|
*/
|
|
70512
70572
|
'Idempotency-Key'?: string;
|
|
70513
70573
|
};
|
|
@@ -70554,6 +70614,8 @@ export type SettleCampaignParticipantData = {
|
|
|
70554
70614
|
*
|
|
70555
70615
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
70556
70616
|
*
|
|
70617
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
70618
|
+
*
|
|
70557
70619
|
*/
|
|
70558
70620
|
'Idempotency-Key'?: string;
|
|
70559
70621
|
};
|
|
@@ -70600,6 +70662,8 @@ export type CreateCampaignPayoutBatchData = {
|
|
|
70600
70662
|
*
|
|
70601
70663
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
70602
70664
|
*
|
|
70665
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
70666
|
+
*
|
|
70603
70667
|
*/
|
|
70604
70668
|
'Idempotency-Key'?: string;
|
|
70605
70669
|
};
|
|
@@ -70724,6 +70788,8 @@ export type ApproveCampaignSubmissionData = {
|
|
|
70724
70788
|
*
|
|
70725
70789
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
70726
70790
|
*
|
|
70791
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
70792
|
+
*
|
|
70727
70793
|
*/
|
|
70728
70794
|
'Idempotency-Key'?: string;
|
|
70729
70795
|
};
|
|
@@ -70759,6 +70825,8 @@ export type RejectCampaignSubmissionData = {
|
|
|
70759
70825
|
*
|
|
70760
70826
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
70761
70827
|
*
|
|
70828
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
70829
|
+
*
|
|
70762
70830
|
*/
|
|
70763
70831
|
'Idempotency-Key'?: string;
|
|
70764
70832
|
};
|
|
@@ -70791,6 +70859,8 @@ export type ReopenCampaignSubmissionData = {
|
|
|
70791
70859
|
*
|
|
70792
70860
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
70793
70861
|
*
|
|
70862
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
70863
|
+
*
|
|
70794
70864
|
*/
|
|
70795
70865
|
'Idempotency-Key'?: string;
|
|
70796
70866
|
};
|
|
@@ -70846,6 +70916,8 @@ export type CreateCampaignAdjustmentData = {
|
|
|
70846
70916
|
*
|
|
70847
70917
|
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
70848
70918
|
*
|
|
70919
|
+
* On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
|
|
70920
|
+
*
|
|
70849
70921
|
*/
|
|
70850
70922
|
'Idempotency-Key'?: string;
|
|
70851
70923
|
};
|