@zernio/node 0.2.658 → 0.2.660

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.
@@ -4578,6 +4578,16 @@ export type ParameterIdempotencyKeyHeader = string;
4578
4578
  */
4579
4579
  export type ParameterPageParam = number;
4580
4580
 
4581
+ export type PhoneNumberStockWatch = {
4582
+ id: string;
4583
+ /**
4584
+ * ISO 3166-1 alpha-2.
4585
+ */
4586
+ country: string;
4587
+ countryName: string;
4588
+ createdAt: string;
4589
+ };
4590
+
4581
4591
  export type PinterestPlatformData = {
4582
4592
  /**
4583
4593
  * Pin title. Defaults to first line of content or "Pin". Must be ≤ 100 characters.
@@ -6424,7 +6434,7 @@ export type Webhook = {
6424
6434
  /**
6425
6435
  * Events subscribed to
6426
6436
  */
6427
- events?: Array<('post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'post.cancelled' | 'post.recycled' | 'post.platform.published' | 'post.platform.failed' | 'post.platform.deleted' | 'post.tiktok.url_resolved' | 'post.external.created' | 'post.external.updated' | 'post.external.deleted' | 'account.connected' | 'account.disconnected' | 'account.ads.initial_sync_completed' | 'message.received' | 'conversation.started' | 'call.received' | 'call.ended' | 'call.failed' | 'call.permission_request' | 'message.sent' | 'message.edited' | 'message.deleted' | 'message.delivered' | 'message.read' | 'message.failed' | 'reaction.received' | 'referral.received' | 'comment.received' | 'review.new' | 'review.updated' | 'lead.received' | 'ad.status_changed' | 'whatsapp.template.status_updated' | 'whatsapp.template.category_updated' | 'whatsapp.account.name_status_updated' | 'whatsapp.automatic_event' | 'whatsapp.number.activated' | 'whatsapp.number.declined' | 'whatsapp.number.action_required' | 'whatsapp.number.verification_required' | 'whatsapp.number.suspended' | 'whatsapp.number.reactivated' | 'whatsapp.number.released' | 'whatsapp.number.kyc_submitted' | 'verification.approved' | 'verification.failed')>;
6437
+ events?: Array<('post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'post.cancelled' | 'post.recycled' | 'post.platform.published' | 'post.platform.failed' | 'post.platform.deleted' | 'post.tiktok.url_resolved' | 'post.external.created' | 'post.external.updated' | 'post.external.deleted' | 'account.connected' | 'account.disconnected' | 'account.ads.initial_sync_completed' | 'message.received' | 'conversation.started' | 'call.received' | 'call.ended' | 'call.failed' | 'call.permission_request' | 'message.sent' | 'message.edited' | 'message.deleted' | 'message.delivered' | 'message.read' | 'message.failed' | 'reaction.received' | 'referral.received' | 'comment.received' | 'review.new' | 'review.updated' | 'lead.received' | 'ad.status_changed' | 'whatsapp.template.status_updated' | 'whatsapp.template.category_updated' | 'whatsapp.account.name_status_updated' | 'whatsapp.automatic_event' | 'whatsapp.number.activated' | 'whatsapp.number.declined' | 'whatsapp.number.action_required' | 'whatsapp.number.verification_required' | 'whatsapp.number.suspended' | 'whatsapp.number.reactivated' | 'whatsapp.number.released' | 'whatsapp.number.kyc_submitted' | 'phone_number.stock_available' | 'verification.approved' | 'verification.failed')>;
6428
6438
  /**
6429
6439
  * Whether webhook delivery is enabled
6430
6440
  */
@@ -8044,6 +8054,42 @@ export type platform11 = 'instagram' | 'facebook' | 'telegram' | 'whatsapp' | 't
8044
8054
  */
8045
8055
  export type source3 = 'whatsapp_business_app' | 'cloud_api';
8046
8056
 
8057
+ /**
8058
+ * Webhook payload for phone_number.stock_available events
8059
+ */
8060
+ export type WebhookPayloadPhoneNumberStockAvailable = {
8061
+ /**
8062
+ * Stable webhook event ID
8063
+ */
8064
+ id: string;
8065
+ event: 'phone_number.stock_available';
8066
+ stock: {
8067
+ /**
8068
+ * ISO 3166-1 alpha-2 country code of the watched country.
8069
+ */
8070
+ country: string;
8071
+ /**
8072
+ * Number types deliverable at sweep time. Only types with stock are listed.
8073
+ */
8074
+ types: Array<{
8075
+ /**
8076
+ * local, mobile, national or toll_free.
8077
+ */
8078
+ numberType: string;
8079
+ /**
8080
+ * Deliverable numbers at sweep time; first come, first served.
8081
+ */
8082
+ availableCount: number;
8083
+ }>;
8084
+ };
8085
+ /**
8086
+ * UTC time at which Zernio generated this event (set once when the event payload is built, before delivery is queued). Retries and redeliveries keep the original value, so it reflects the event, not the delivery attempt.
8087
+ */
8088
+ timestamp: string;
8089
+ };
8090
+
8091
+ export type event18 = 'phone_number.stock_available';
8092
+
8047
8093
  /**
8048
8094
  * Webhook payload for post events
8049
8095
  */
@@ -8083,7 +8129,7 @@ export type WebhookPayloadPost = {
8083
8129
  timestamp: string;
8084
8130
  };
8085
8131
 
8086
- export type event18 = 'post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'post.cancelled' | 'post.recycled';
8132
+ export type event19 = 'post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'post.cancelled' | 'post.recycled';
8087
8133
 
8088
8134
  /**
8089
8135
  * Webhook payload for the per-platform terminal events
@@ -8182,7 +8228,7 @@ export type WebhookPayloadPostPlatform = {
8182
8228
  timestamp: string;
8183
8229
  };
8184
8230
 
8185
- export type event19 = 'post.platform.published' | 'post.platform.failed' | 'post.platform.deleted' | 'post.tiktok.url_resolved';
8231
+ export type event20 = 'post.platform.published' | 'post.platform.failed' | 'post.platform.deleted' | 'post.tiktok.url_resolved';
8186
8232
 
8187
8233
  /**
8188
8234
  * Terminal status this event fires on. Matches the event suffix.
@@ -8241,7 +8287,7 @@ export type WebhookPayloadReaction = {
8241
8287
  timestamp: string;
8242
8288
  };
8243
8289
 
8244
- export type event20 = 'reaction.received';
8290
+ export type event21 = 'reaction.received';
8245
8291
 
8246
8292
  export type action = 'added' | 'removed';
8247
8293
 
@@ -8315,7 +8361,7 @@ export type WebhookPayloadReferral = {
8315
8361
  timestamp: string;
8316
8362
  };
8317
8363
 
8318
- export type event21 = 'referral.received';
8364
+ export type event22 = 'referral.received';
8319
8365
 
8320
8366
  /**
8321
8367
  * Webhook payload for the review.new event (new review posted on a connected account).
@@ -8342,7 +8388,7 @@ export type WebhookPayloadReviewNew = {
8342
8388
  timestamp: string;
8343
8389
  };
8344
8390
 
8345
- export type event22 = 'review.new';
8391
+ export type event23 = 'review.new';
8346
8392
 
8347
8393
  /**
8348
8394
  * Webhook payload for the review.updated event. Fired when the reviewer edits
@@ -8373,7 +8419,7 @@ export type WebhookPayloadReviewUpdated = {
8373
8419
  timestamp: string;
8374
8420
  };
8375
8421
 
8376
- export type event23 = 'review.updated';
8422
+ export type event24 = 'review.updated';
8377
8423
 
8378
8424
  /**
8379
8425
  * Webhook payload for test deliveries
@@ -8394,7 +8440,7 @@ export type WebhookPayloadTest = {
8394
8440
  timestamp: string;
8395
8441
  };
8396
8442
 
8397
- export type event24 = 'webhook.test';
8443
+ export type event25 = 'webhook.test';
8398
8444
 
8399
8445
  /**
8400
8446
  * Webhook payload for the `whatsapp.account.name_status_updated` event.
@@ -8443,7 +8489,7 @@ export type WebhookPayloadWhatsAppAccountNameStatusUpdated = {
8443
8489
  timestamp: string;
8444
8490
  };
8445
8491
 
8446
- export type event25 = 'whatsapp.account.name_status_updated';
8492
+ export type event26 = 'whatsapp.account.name_status_updated';
8447
8493
 
8448
8494
  export type platform12 = 'whatsapp';
8449
8495
 
@@ -8514,7 +8560,7 @@ export type WebhookPayloadWhatsAppTemplateCategoryUpdated = {
8514
8560
  timestamp: string;
8515
8561
  };
8516
8562
 
8517
- export type event26 = 'whatsapp.template.category_updated';
8563
+ export type event27 = 'whatsapp.template.category_updated';
8518
8564
 
8519
8565
  /**
8520
8566
  * `scheduled` is Meta's 24h advance notice of an upcoming
@@ -8591,7 +8637,7 @@ export type WebhookPayloadWhatsAppTemplateStatusUpdated = {
8591
8637
  timestamp: string;
8592
8638
  };
8593
8639
 
8594
- export type event27 = 'whatsapp.template.status_updated';
8640
+ export type event28 = 'whatsapp.template.status_updated';
8595
8641
 
8596
8642
  /**
8597
8643
  * New status. Forwarded verbatim from Meta's `event` field.
@@ -17715,7 +17761,7 @@ export type CreateWebhookSettingsData = {
17715
17761
  /**
17716
17762
  * Events to subscribe to (at least one required)
17717
17763
  */
17718
- events: Array<('post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'post.cancelled' | 'post.recycled' | 'post.platform.published' | 'post.platform.failed' | 'post.platform.deleted' | 'post.tiktok.url_resolved' | 'post.external.created' | 'post.external.updated' | 'post.external.deleted' | 'account.connected' | 'account.disconnected' | 'account.ads.initial_sync_completed' | 'message.received' | 'conversation.started' | 'call.received' | 'call.ended' | 'call.failed' | 'call.permission_request' | 'message.sent' | 'message.edited' | 'message.deleted' | 'message.delivered' | 'message.read' | 'message.failed' | 'reaction.received' | 'referral.received' | 'comment.received' | 'review.new' | 'review.updated' | 'lead.received' | 'ad.status_changed' | 'whatsapp.template.status_updated' | 'whatsapp.template.category_updated' | 'whatsapp.account.name_status_updated' | 'whatsapp.automatic_event' | 'whatsapp.number.activated' | 'whatsapp.number.declined' | 'whatsapp.number.action_required' | 'whatsapp.number.verification_required' | 'whatsapp.number.suspended' | 'whatsapp.number.reactivated' | 'whatsapp.number.released' | 'whatsapp.number.kyc_submitted' | 'verification.approved' | 'verification.failed')>;
17764
+ events: Array<('post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'post.cancelled' | 'post.recycled' | 'post.platform.published' | 'post.platform.failed' | 'post.platform.deleted' | 'post.tiktok.url_resolved' | 'post.external.created' | 'post.external.updated' | 'post.external.deleted' | 'account.connected' | 'account.disconnected' | 'account.ads.initial_sync_completed' | 'message.received' | 'conversation.started' | 'call.received' | 'call.ended' | 'call.failed' | 'call.permission_request' | 'message.sent' | 'message.edited' | 'message.deleted' | 'message.delivered' | 'message.read' | 'message.failed' | 'reaction.received' | 'referral.received' | 'comment.received' | 'review.new' | 'review.updated' | 'lead.received' | 'ad.status_changed' | 'whatsapp.template.status_updated' | 'whatsapp.template.category_updated' | 'whatsapp.account.name_status_updated' | 'whatsapp.automatic_event' | 'whatsapp.number.activated' | 'whatsapp.number.declined' | 'whatsapp.number.action_required' | 'whatsapp.number.verification_required' | 'whatsapp.number.suspended' | 'whatsapp.number.reactivated' | 'whatsapp.number.released' | 'whatsapp.number.kyc_submitted' | 'phone_number.stock_available' | 'verification.approved' | 'verification.failed')>;
17719
17765
  /**
17720
17766
  * Enable or disable webhook delivery. Defaults to `true` when omitted.
17721
17767
  */
@@ -17770,7 +17816,7 @@ export type UpdateWebhookSettingsData = {
17770
17816
  /**
17771
17817
  * Events to subscribe to. Must contain at least one event if provided.
17772
17818
  */
17773
- events?: Array<('post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'post.cancelled' | 'post.recycled' | 'post.platform.published' | 'post.platform.failed' | 'post.platform.deleted' | 'post.tiktok.url_resolved' | 'post.external.created' | 'post.external.updated' | 'post.external.deleted' | 'account.connected' | 'account.disconnected' | 'account.ads.initial_sync_completed' | 'message.received' | 'conversation.started' | 'call.received' | 'call.ended' | 'call.failed' | 'call.permission_request' | 'message.sent' | 'message.edited' | 'message.deleted' | 'message.delivered' | 'message.read' | 'message.failed' | 'reaction.received' | 'referral.received' | 'comment.received' | 'review.new' | 'review.updated' | 'lead.received' | 'ad.status_changed' | 'whatsapp.template.status_updated' | 'whatsapp.template.category_updated' | 'whatsapp.account.name_status_updated' | 'whatsapp.automatic_event' | 'whatsapp.number.activated' | 'whatsapp.number.declined' | 'whatsapp.number.action_required' | 'whatsapp.number.verification_required' | 'whatsapp.number.suspended' | 'whatsapp.number.reactivated' | 'whatsapp.number.released' | 'whatsapp.number.kyc_submitted' | 'verification.approved' | 'verification.failed')>;
17819
+ events?: Array<('post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'post.cancelled' | 'post.recycled' | 'post.platform.published' | 'post.platform.failed' | 'post.platform.deleted' | 'post.tiktok.url_resolved' | 'post.external.created' | 'post.external.updated' | 'post.external.deleted' | 'account.connected' | 'account.disconnected' | 'account.ads.initial_sync_completed' | 'message.received' | 'conversation.started' | 'call.received' | 'call.ended' | 'call.failed' | 'call.permission_request' | 'message.sent' | 'message.edited' | 'message.deleted' | 'message.delivered' | 'message.read' | 'message.failed' | 'reaction.received' | 'referral.received' | 'comment.received' | 'review.new' | 'review.updated' | 'lead.received' | 'ad.status_changed' | 'whatsapp.template.status_updated' | 'whatsapp.template.category_updated' | 'whatsapp.account.name_status_updated' | 'whatsapp.automatic_event' | 'whatsapp.number.activated' | 'whatsapp.number.declined' | 'whatsapp.number.action_required' | 'whatsapp.number.verification_required' | 'whatsapp.number.suspended' | 'whatsapp.number.reactivated' | 'whatsapp.number.released' | 'whatsapp.number.kyc_submitted' | 'phone_number.stock_available' | 'verification.approved' | 'verification.failed')>;
17774
17820
  /**
17775
17821
  * Enable or disable webhook delivery
17776
17822
  */
@@ -20280,6 +20326,12 @@ export type ReplyToInboxPostData = {
20280
20326
  */
20281
20327
  rootCid?: string;
20282
20328
  };
20329
+ headers?: {
20330
+ /**
20331
+ * 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.
20332
+ */
20333
+ 'Idempotency-Key'?: string;
20334
+ };
20283
20335
  path: {
20284
20336
  /**
20285
20337
  * Zernio post ID or platform-specific post ID. LinkedIn third-party posts accept full activity URN or numeric ID.
@@ -21160,6 +21212,12 @@ export type ReplyToInboxReviewData = {
21160
21212
  accountId: string;
21161
21213
  message: string;
21162
21214
  };
21215
+ headers?: {
21216
+ /**
21217
+ * 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.
21218
+ */
21219
+ 'Idempotency-Key'?: string;
21220
+ };
21163
21221
  path: {
21164
21222
  /**
21165
21223
  * Review ID (URL-encoded for Google Business)
@@ -25351,6 +25409,43 @@ export type DisableVoiceOnNumberError = ({
25351
25409
  error?: string;
25352
25410
  } | unknown);
25353
25411
 
25412
+ export type CreatePhoneNumberStockWatchData = {
25413
+ body: {
25414
+ /**
25415
+ * ISO 3166-1 alpha-2 code of a country listed by GET /v1/phone-numbers/countries.
25416
+ */
25417
+ country: string;
25418
+ };
25419
+ };
25420
+
25421
+ export type CreatePhoneNumberStockWatchResponse = (PhoneNumberStockWatch);
25422
+
25423
+ export type CreatePhoneNumberStockWatchError = (ErrorResponse | {
25424
+ error?: string;
25425
+ } | unknown);
25426
+
25427
+ export type ListPhoneNumberStockWatchesResponse = ({
25428
+ watches?: Array<PhoneNumberStockWatch>;
25429
+ });
25430
+
25431
+ export type ListPhoneNumberStockWatchesError = ({
25432
+ error?: string;
25433
+ });
25434
+
25435
+ export type DeletePhoneNumberStockWatchData = {
25436
+ path: {
25437
+ id: string;
25438
+ };
25439
+ };
25440
+
25441
+ export type DeletePhoneNumberStockWatchResponse = ({
25442
+ deleted?: boolean;
25443
+ });
25444
+
25445
+ export type DeletePhoneNumberStockWatchError = (ErrorResponse | {
25446
+ error?: string;
25447
+ } | unknown);
25448
+
25354
25449
  export type CreateSipTrunkData = {
25355
25450
  body: {
25356
25451
  /**