@zernio/node 0.2.950 → 0.2.952
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -0
- package/dist/index.d.mts +88 -17
- package/dist/index.d.ts +88 -17
- package/dist/index.js +13 -1
- package/dist/index.mjs +13 -1
- package/package.json +1 -1
- package/src/client.ts +8 -0
- package/src/generated/sdk.gen.ts +23 -1
- package/src/generated/types.gen.ts +86 -16
|
@@ -4585,6 +4585,20 @@ export type FacebookSettings = {
|
|
|
4585
4585
|
textFormatPresetId?: string;
|
|
4586
4586
|
};
|
|
4587
4587
|
|
|
4588
|
+
export type FeedbackReceipt = {
|
|
4589
|
+
/**
|
|
4590
|
+
* Feedback id. Quote it if you follow up with support.
|
|
4591
|
+
*/
|
|
4592
|
+
id?: string;
|
|
4593
|
+
status?: 'received';
|
|
4594
|
+
/**
|
|
4595
|
+
* True when this matched a submission with the same summary from the last 24 hours.
|
|
4596
|
+
*/
|
|
4597
|
+
duplicate?: boolean;
|
|
4598
|
+
};
|
|
4599
|
+
|
|
4600
|
+
export type status11 = 'received';
|
|
4601
|
+
|
|
4588
4602
|
export type FollowerStatsResponse = {
|
|
4589
4603
|
accounts?: Array<AccountWithFollowerStats>;
|
|
4590
4604
|
stats?: {
|
|
@@ -4708,7 +4722,7 @@ export type GoogleAdLabel = {
|
|
|
4708
4722
|
description?: (string) | null;
|
|
4709
4723
|
};
|
|
4710
4724
|
|
|
4711
|
-
export type
|
|
4725
|
+
export type status12 = 'ENABLED' | 'REMOVED' | 'UNKNOWN';
|
|
4712
4726
|
|
|
4713
4727
|
/**
|
|
4714
4728
|
* At least one id across the four target lists. Up to 1000 ids per list.
|
|
@@ -4806,7 +4820,7 @@ export type GoogleAdsManagerLink = {
|
|
|
4806
4820
|
/**
|
|
4807
4821
|
* Status the link has after this call.
|
|
4808
4822
|
*/
|
|
4809
|
-
export type
|
|
4823
|
+
export type status13 = 'PENDING' | 'ACTIVE' | 'REFUSED' | 'CANCELED' | 'INACTIVE';
|
|
4810
4824
|
|
|
4811
4825
|
/**
|
|
4812
4826
|
* Link one asset to the asset group. Send exactly one of asset (an existing asset), text, imageUrl or youtubeVideoId (new content, created in the same request).
|
|
@@ -5603,7 +5617,7 @@ export type kind = 'phone' | 'email';
|
|
|
5603
5617
|
|
|
5604
5618
|
export type region = 'US' | 'GB';
|
|
5605
5619
|
|
|
5606
|
-
export type
|
|
5620
|
+
export type status14 = 'ordering' | 'activating' | 'active' | 'suspended' | 'canceled' | 'failed';
|
|
5607
5621
|
|
|
5608
5622
|
/**
|
|
5609
5623
|
* Attachment snapshot inside an edit-history entry.
|
|
@@ -5675,7 +5689,7 @@ export type InboxWebhookConversation = {
|
|
|
5675
5689
|
contactId?: string;
|
|
5676
5690
|
};
|
|
5677
5691
|
|
|
5678
|
-
export type
|
|
5692
|
+
export type status15 = 'active' | 'archived';
|
|
5679
5693
|
|
|
5680
5694
|
/**
|
|
5681
5695
|
* The conversation object included in conversation lifecycle webhook payloads (conversation.started, conversation.control_changed).
|
|
@@ -7262,7 +7276,7 @@ export type OwnedPhoneNumber = {
|
|
|
7262
7276
|
}>;
|
|
7263
7277
|
};
|
|
7264
7278
|
|
|
7265
|
-
export type
|
|
7279
|
+
export type status16 = 'pending_payment' | 'pending_regulatory' | 'regulatory_declined' | 'provisioning' | 'verifying' | 'active' | 'suspended' | 'releasing' | 'released';
|
|
7266
7280
|
|
|
7267
7281
|
export type metaVerificationStatus = 'pending' | 'code_requested' | 'verified' | 'expired';
|
|
7268
7282
|
|
|
@@ -7387,7 +7401,7 @@ export type PlatformAnalytics = {
|
|
|
7387
7401
|
errorMessage?: (string) | null;
|
|
7388
7402
|
};
|
|
7389
7403
|
|
|
7390
|
-
export type
|
|
7404
|
+
export type status17 = 'published' | 'failed';
|
|
7391
7405
|
|
|
7392
7406
|
/**
|
|
7393
7407
|
* Sync state of analytics for this platform
|
|
@@ -7789,7 +7803,7 @@ export type Product = {
|
|
|
7789
7803
|
|
|
7790
7804
|
export type platform8 = 'shopify';
|
|
7791
7805
|
|
|
7792
|
-
export type
|
|
7806
|
+
export type status18 = 'active' | 'draft' | 'archived';
|
|
7793
7807
|
|
|
7794
7808
|
export type ProductImage = {
|
|
7795
7809
|
url?: string;
|
|
@@ -9065,7 +9079,7 @@ export type UploadTokenResponse = {
|
|
|
9065
9079
|
status?: 'pending' | 'completed' | 'expired';
|
|
9066
9080
|
};
|
|
9067
9081
|
|
|
9068
|
-
export type
|
|
9082
|
+
export type status19 = 'pending' | 'completed' | 'expired';
|
|
9069
9083
|
|
|
9070
9084
|
export type UploadTokenStatusResponse = {
|
|
9071
9085
|
token?: string;
|
|
@@ -9564,7 +9578,7 @@ export type Verification = {
|
|
|
9564
9578
|
resend?: boolean;
|
|
9565
9579
|
};
|
|
9566
9580
|
|
|
9567
|
-
export type
|
|
9581
|
+
export type status20 = 'pending' | 'approved' | 'expired' | 'max_attempts_reached' | 'canceled' | 'delivery_failed';
|
|
9568
9582
|
|
|
9569
9583
|
export type channel4 = 'sms';
|
|
9570
9584
|
|
|
@@ -9691,7 +9705,7 @@ export type WebhookLog = {
|
|
|
9691
9705
|
/**
|
|
9692
9706
|
* Delivery outcome
|
|
9693
9707
|
*/
|
|
9694
|
-
export type
|
|
9708
|
+
export type status21 = 'success' | 'failed';
|
|
9695
9709
|
|
|
9696
9710
|
/**
|
|
9697
9711
|
* Webhook payload for `account.ads.initial_sync_completed` events.
|
|
@@ -9803,7 +9817,7 @@ export type event = 'account.ads.initial_sync_completed';
|
|
|
9803
9817
|
/**
|
|
9804
9818
|
* Overall outcome of the initial sync.
|
|
9805
9819
|
*/
|
|
9806
|
-
export type
|
|
9820
|
+
export type status22 = 'success' | 'failure';
|
|
9807
9821
|
|
|
9808
9822
|
/**
|
|
9809
9823
|
* Stable category for UX branching. New values may be added; existing ones are
|
|
@@ -11756,7 +11770,7 @@ export type event22 = 'post.platform.published' | 'post.platform.failed' | 'post
|
|
|
11756
11770
|
/**
|
|
11757
11771
|
* Terminal status this event fires on. Matches the event suffix.
|
|
11758
11772
|
*/
|
|
11759
|
-
export type
|
|
11773
|
+
export type status23 = 'published' | 'failed' | 'deleted';
|
|
11760
11774
|
|
|
11761
11775
|
/**
|
|
11762
11776
|
* Webhook payload for reaction received events (WhatsApp, Telegram, Slack, Instagram, Facebook Messenger, TikTok)
|
|
@@ -12022,7 +12036,7 @@ export type platform15 = 'whatsapp';
|
|
|
12022
12036
|
/**
|
|
12023
12037
|
* Normalized from Meta's `decision` (REJECTED -> DECLINED, DEFERRED -> PENDING_REVIEW; the review is still open on DEFERRED, not a rejection).
|
|
12024
12038
|
*/
|
|
12025
|
-
export type
|
|
12039
|
+
export type status24 = 'APPROVED' | 'DECLINED' | 'PENDING_REVIEW';
|
|
12026
12040
|
|
|
12027
12041
|
/**
|
|
12028
12042
|
* Webhook payload for the `whatsapp.template.category_updated` event.
|
|
@@ -12171,7 +12185,7 @@ export type event30 = 'whatsapp.template.status_updated';
|
|
|
12171
12185
|
* request before the template is actually removed.
|
|
12172
12186
|
*
|
|
12173
12187
|
*/
|
|
12174
|
-
export type
|
|
12188
|
+
export type status25 = 'APPROVED' | 'REJECTED' | 'PENDING' | 'PAUSED' | 'DISABLED' | 'IN_APPEAL' | 'PENDING_DELETION';
|
|
12175
12189
|
|
|
12176
12190
|
export type WhatsAppBodyComponent = {
|
|
12177
12191
|
type: 'body';
|
|
@@ -12325,7 +12339,7 @@ export type WhatsAppSandboxSession = {
|
|
|
12325
12339
|
* list responses.
|
|
12326
12340
|
*
|
|
12327
12341
|
*/
|
|
12328
|
-
export type
|
|
12342
|
+
export type status26 = 'pending' | 'active';
|
|
12329
12343
|
|
|
12330
12344
|
export type WhatsAppTemplateButton = {
|
|
12331
12345
|
type: 'quick_reply' | 'url' | 'phone_number' | 'otp' | 'copy_code' | 'flow' | 'mpm' | 'catalog';
|
|
@@ -12483,7 +12497,7 @@ export type WorkflowExecutionEvent = {
|
|
|
12483
12497
|
|
|
12484
12498
|
export type action2 = 'execution_started' | 'execution_completed' | 'execution_exited' | 'execution_paused' | 'execution_resumed' | 'node_started' | 'node_completed' | 'node_failed' | 'node_skipped';
|
|
12485
12499
|
|
|
12486
|
-
export type
|
|
12500
|
+
export type status27 = 'success' | 'failed' | 'pending';
|
|
12487
12501
|
|
|
12488
12502
|
/**
|
|
12489
12503
|
* A node in a workflow graph. `config` shape depends on `type`.
|
|
@@ -16508,6 +16522,58 @@ export type VerifyCredentialError = ({
|
|
|
16508
16522
|
error?: string;
|
|
16509
16523
|
});
|
|
16510
16524
|
|
|
16525
|
+
export type SubmitFeedbackData = {
|
|
16526
|
+
body: {
|
|
16527
|
+
/**
|
|
16528
|
+
* What kind of feedback this is.
|
|
16529
|
+
*/
|
|
16530
|
+
type: 'bug' | 'missing_feature' | 'docs' | 'other';
|
|
16531
|
+
/**
|
|
16532
|
+
* One line describing the problem or the missing capability. Also the dedup key.
|
|
16533
|
+
*/
|
|
16534
|
+
summary: string;
|
|
16535
|
+
/**
|
|
16536
|
+
* Longer explanation: what you were trying to do, steps to reproduce, the use case.
|
|
16537
|
+
*/
|
|
16538
|
+
details?: string;
|
|
16539
|
+
/**
|
|
16540
|
+
* The endpoint involved, e.g. `POST /v1/posts`.
|
|
16541
|
+
*/
|
|
16542
|
+
endpoint?: string;
|
|
16543
|
+
/**
|
|
16544
|
+
* The `x-request-id` header of the failing response, if any.
|
|
16545
|
+
*/
|
|
16546
|
+
requestId?: string;
|
|
16547
|
+
/**
|
|
16548
|
+
* What you expected to happen.
|
|
16549
|
+
*/
|
|
16550
|
+
expected?: string;
|
|
16551
|
+
/**
|
|
16552
|
+
* What actually happened, e.g. the error message.
|
|
16553
|
+
*/
|
|
16554
|
+
actual?: string;
|
|
16555
|
+
/**
|
|
16556
|
+
* Optional identification of the agent submitting the feedback.
|
|
16557
|
+
*/
|
|
16558
|
+
agent?: {
|
|
16559
|
+
/**
|
|
16560
|
+
* Agent or tool name, e.g. `claude-code`.
|
|
16561
|
+
*/
|
|
16562
|
+
name?: string;
|
|
16563
|
+
/**
|
|
16564
|
+
* Model powering the agent.
|
|
16565
|
+
*/
|
|
16566
|
+
model?: string;
|
|
16567
|
+
};
|
|
16568
|
+
};
|
|
16569
|
+
};
|
|
16570
|
+
|
|
16571
|
+
export type SubmitFeedbackResponse = (FeedbackReceipt);
|
|
16572
|
+
|
|
16573
|
+
export type SubmitFeedbackError = (ErrorResponse | {
|
|
16574
|
+
error?: string;
|
|
16575
|
+
});
|
|
16576
|
+
|
|
16511
16577
|
export type ListApiKeysResponse = ({
|
|
16512
16578
|
apiKeys?: Array<ApiKey>;
|
|
16513
16579
|
});
|
|
@@ -37395,6 +37461,10 @@ export type GetAdTreeData = {
|
|
|
37395
37461
|
* Profile ID
|
|
37396
37462
|
*/
|
|
37397
37463
|
profileId?: string;
|
|
37464
|
+
/**
|
|
37465
|
+
* Case-insensitive substring match on campaign, ad set and ad names (`_`, `%` and spaces match literally), or an exact platform campaign, ad set or ad id. A campaign whose name matches returns with all its ad sets and ads; a match on an ad set or ad name returns only the matching branch. Filters the campaign set itself, so `pagination.total` counts only matching campaigns.
|
|
37466
|
+
*/
|
|
37467
|
+
search?: string;
|
|
37398
37468
|
/**
|
|
37399
37469
|
* Campaign-level sort order. `newest` (default) / `oldest` order by the campaign's newest-ad createdAt. `spend_desc` / `spend_asc` order by aggregated spend in the requested date range; campaigns with no spend land at the end.
|
|
37400
37470
|
*/
|