@zernio/node 0.2.723 → 0.2.724
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 +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +6 -4
- package/src/generated/types.gen.ts +7 -7
package/dist/index.d.mts
CHANGED
|
@@ -22735,7 +22735,7 @@ type CreateWhatsAppTemplateData = {
|
|
|
22735
22735
|
phone_number?: string;
|
|
22736
22736
|
}>;
|
|
22737
22737
|
/**
|
|
22738
|
-
* Delivery validity window in seconds: a message not delivered within it is dropped. Range depends on category: AUTHENTICATION 30 to 900, UTILITY 30 to 43200 (12h), MARKETING 43200 to 2592000 (30 days); -1
|
|
22738
|
+
* Delivery validity window in seconds: a message not delivered within it is dropped. Range depends on category: AUTHENTICATION 30 to 900, UTILITY 30 to 43200 (12h), MARKETING 43200 to 2592000 (30 days); -1 (create only) keeps the 30-day default on AUTHENTICATION and UTILITY. Meta defaults to 600 for AUTHENTICATION and 30 days otherwise. If Meta later recategorises the template, it clears the TTL (read it back to check).
|
|
22739
22739
|
*/
|
|
22740
22740
|
message_send_ttl_seconds?: number;
|
|
22741
22741
|
};
|
|
@@ -22837,7 +22837,7 @@ type UpdateWhatsAppTemplateData = {
|
|
|
22837
22837
|
*/
|
|
22838
22838
|
components?: Array<WhatsAppTemplateComponent>;
|
|
22839
22839
|
/**
|
|
22840
|
-
* Delivery validity window in seconds: a message not delivered within it is dropped. Range depends on category: AUTHENTICATION 30 to 900, UTILITY 30 to 43200 (12h), MARKETING 43200 to 2592000 (30 days); -1
|
|
22840
|
+
* Delivery validity window in seconds: a message not delivered within it is dropped. Range depends on category: AUTHENTICATION 30 to 900, UTILITY 30 to 43200 (12h), MARKETING 43200 to 2592000 (30 days); -1 is not accepted here (Meta treats it as an empty edit); send a value in range. A TTL-only edit keeps an APPROVED template approved, no re-review. Meta defaults to 600 for AUTHENTICATION and 30 days otherwise. If Meta later recategorises the template, it clears the TTL (read it back to check).
|
|
22841
22841
|
*/
|
|
22842
22842
|
message_send_ttl_seconds?: number;
|
|
22843
22843
|
};
|
|
@@ -22979,7 +22979,7 @@ type UpdateWhatsAppTemplateByIdData = {
|
|
|
22979
22979
|
*/
|
|
22980
22980
|
components?: Array<WhatsAppTemplateComponent>;
|
|
22981
22981
|
/**
|
|
22982
|
-
* Delivery validity window in seconds: a message not delivered within it is dropped. Range depends on category: AUTHENTICATION 30 to 900, UTILITY 30 to 43200 (12h), MARKETING 43200 to 2592000 (30 days); -1
|
|
22982
|
+
* Delivery validity window in seconds: a message not delivered within it is dropped. Range depends on category: AUTHENTICATION 30 to 900, UTILITY 30 to 43200 (12h), MARKETING 43200 to 2592000 (30 days); -1 is not accepted here (Meta treats it as an empty edit); send a value in range. A TTL-only edit keeps an APPROVED template approved, no re-review. Meta defaults to 600 for AUTHENTICATION and 30 days otherwise. If Meta later recategorises the template, it clears the TTL (read it back to check).
|
|
22983
22983
|
*/
|
|
22984
22984
|
message_send_ttl_seconds?: number;
|
|
22985
22985
|
};
|
|
@@ -28064,7 +28064,7 @@ type ListContactsData = {
|
|
|
28064
28064
|
accountId?: string;
|
|
28065
28065
|
isSubscribed?: 'true' | 'false';
|
|
28066
28066
|
limit?: number;
|
|
28067
|
-
platform?: 'instagram' | 'facebook' | 'telegram' | 'twitter' | 'bluesky' | 'reddit' | 'whatsapp' | 'slack';
|
|
28067
|
+
platform?: 'instagram' | 'facebook' | 'telegram' | 'twitter' | 'bluesky' | 'reddit' | 'whatsapp' | 'slack' | 'sms';
|
|
28068
28068
|
/**
|
|
28069
28069
|
* Filter by profile. Omit to list across all profiles. Matches the profile recorded on the contact itself, which is set when the contact is created and is independent of the profile its account currently belongs to. Filter by accountId to list a contact through its channel instead.
|
|
28070
28070
|
*/
|
|
@@ -28134,7 +28134,7 @@ type CreateContactData = {
|
|
|
28134
28134
|
/**
|
|
28135
28135
|
* Channel platform. Only the enum values support contact channels; any other platform is rejected with code platform_not_supported.
|
|
28136
28136
|
*/
|
|
28137
|
-
platform?: 'instagram' | 'facebook' | 'telegram' | 'twitter' | 'bluesky' | 'reddit' | 'whatsapp' | 'slack';
|
|
28137
|
+
platform?: 'instagram' | 'facebook' | 'telegram' | 'twitter' | 'bluesky' | 'reddit' | 'whatsapp' | 'slack' | 'sms';
|
|
28138
28138
|
platformIdentifier?: string;
|
|
28139
28139
|
displayIdentifier?: string;
|
|
28140
28140
|
};
|
|
@@ -28491,7 +28491,7 @@ type CreateBroadcastData = {
|
|
|
28491
28491
|
body: {
|
|
28492
28492
|
profileId: string;
|
|
28493
28493
|
accountId: string;
|
|
28494
|
-
platform: 'instagram' | 'facebook' | 'telegram' | 'twitter' | 'bluesky' | 'reddit' | 'whatsapp';
|
|
28494
|
+
platform: 'instagram' | 'facebook' | 'telegram' | 'twitter' | 'bluesky' | 'reddit' | 'whatsapp' | 'sms' | 'slack';
|
|
28495
28495
|
name: string;
|
|
28496
28496
|
description?: string;
|
|
28497
28497
|
message?: {
|
|
@@ -29221,7 +29221,7 @@ type CreateSequenceData = {
|
|
|
29221
29221
|
body: {
|
|
29222
29222
|
profileId: string;
|
|
29223
29223
|
accountId: string;
|
|
29224
|
-
platform: 'instagram' | 'facebook' | 'telegram' | 'twitter' | 'bluesky' | 'reddit' | 'whatsapp';
|
|
29224
|
+
platform: 'instagram' | 'facebook' | 'telegram' | 'twitter' | 'bluesky' | 'reddit' | 'whatsapp' | 'slack';
|
|
29225
29225
|
name: string;
|
|
29226
29226
|
description?: string;
|
|
29227
29227
|
steps?: Array<{
|
package/dist/index.d.ts
CHANGED
|
@@ -22735,7 +22735,7 @@ type CreateWhatsAppTemplateData = {
|
|
|
22735
22735
|
phone_number?: string;
|
|
22736
22736
|
}>;
|
|
22737
22737
|
/**
|
|
22738
|
-
* Delivery validity window in seconds: a message not delivered within it is dropped. Range depends on category: AUTHENTICATION 30 to 900, UTILITY 30 to 43200 (12h), MARKETING 43200 to 2592000 (30 days); -1
|
|
22738
|
+
* Delivery validity window in seconds: a message not delivered within it is dropped. Range depends on category: AUTHENTICATION 30 to 900, UTILITY 30 to 43200 (12h), MARKETING 43200 to 2592000 (30 days); -1 (create only) keeps the 30-day default on AUTHENTICATION and UTILITY. Meta defaults to 600 for AUTHENTICATION and 30 days otherwise. If Meta later recategorises the template, it clears the TTL (read it back to check).
|
|
22739
22739
|
*/
|
|
22740
22740
|
message_send_ttl_seconds?: number;
|
|
22741
22741
|
};
|
|
@@ -22837,7 +22837,7 @@ type UpdateWhatsAppTemplateData = {
|
|
|
22837
22837
|
*/
|
|
22838
22838
|
components?: Array<WhatsAppTemplateComponent>;
|
|
22839
22839
|
/**
|
|
22840
|
-
* Delivery validity window in seconds: a message not delivered within it is dropped. Range depends on category: AUTHENTICATION 30 to 900, UTILITY 30 to 43200 (12h), MARKETING 43200 to 2592000 (30 days); -1
|
|
22840
|
+
* Delivery validity window in seconds: a message not delivered within it is dropped. Range depends on category: AUTHENTICATION 30 to 900, UTILITY 30 to 43200 (12h), MARKETING 43200 to 2592000 (30 days); -1 is not accepted here (Meta treats it as an empty edit); send a value in range. A TTL-only edit keeps an APPROVED template approved, no re-review. Meta defaults to 600 for AUTHENTICATION and 30 days otherwise. If Meta later recategorises the template, it clears the TTL (read it back to check).
|
|
22841
22841
|
*/
|
|
22842
22842
|
message_send_ttl_seconds?: number;
|
|
22843
22843
|
};
|
|
@@ -22979,7 +22979,7 @@ type UpdateWhatsAppTemplateByIdData = {
|
|
|
22979
22979
|
*/
|
|
22980
22980
|
components?: Array<WhatsAppTemplateComponent>;
|
|
22981
22981
|
/**
|
|
22982
|
-
* Delivery validity window in seconds: a message not delivered within it is dropped. Range depends on category: AUTHENTICATION 30 to 900, UTILITY 30 to 43200 (12h), MARKETING 43200 to 2592000 (30 days); -1
|
|
22982
|
+
* Delivery validity window in seconds: a message not delivered within it is dropped. Range depends on category: AUTHENTICATION 30 to 900, UTILITY 30 to 43200 (12h), MARKETING 43200 to 2592000 (30 days); -1 is not accepted here (Meta treats it as an empty edit); send a value in range. A TTL-only edit keeps an APPROVED template approved, no re-review. Meta defaults to 600 for AUTHENTICATION and 30 days otherwise. If Meta later recategorises the template, it clears the TTL (read it back to check).
|
|
22983
22983
|
*/
|
|
22984
22984
|
message_send_ttl_seconds?: number;
|
|
22985
22985
|
};
|
|
@@ -28064,7 +28064,7 @@ type ListContactsData = {
|
|
|
28064
28064
|
accountId?: string;
|
|
28065
28065
|
isSubscribed?: 'true' | 'false';
|
|
28066
28066
|
limit?: number;
|
|
28067
|
-
platform?: 'instagram' | 'facebook' | 'telegram' | 'twitter' | 'bluesky' | 'reddit' | 'whatsapp' | 'slack';
|
|
28067
|
+
platform?: 'instagram' | 'facebook' | 'telegram' | 'twitter' | 'bluesky' | 'reddit' | 'whatsapp' | 'slack' | 'sms';
|
|
28068
28068
|
/**
|
|
28069
28069
|
* Filter by profile. Omit to list across all profiles. Matches the profile recorded on the contact itself, which is set when the contact is created and is independent of the profile its account currently belongs to. Filter by accountId to list a contact through its channel instead.
|
|
28070
28070
|
*/
|
|
@@ -28134,7 +28134,7 @@ type CreateContactData = {
|
|
|
28134
28134
|
/**
|
|
28135
28135
|
* Channel platform. Only the enum values support contact channels; any other platform is rejected with code platform_not_supported.
|
|
28136
28136
|
*/
|
|
28137
|
-
platform?: 'instagram' | 'facebook' | 'telegram' | 'twitter' | 'bluesky' | 'reddit' | 'whatsapp' | 'slack';
|
|
28137
|
+
platform?: 'instagram' | 'facebook' | 'telegram' | 'twitter' | 'bluesky' | 'reddit' | 'whatsapp' | 'slack' | 'sms';
|
|
28138
28138
|
platformIdentifier?: string;
|
|
28139
28139
|
displayIdentifier?: string;
|
|
28140
28140
|
};
|
|
@@ -28491,7 +28491,7 @@ type CreateBroadcastData = {
|
|
|
28491
28491
|
body: {
|
|
28492
28492
|
profileId: string;
|
|
28493
28493
|
accountId: string;
|
|
28494
|
-
platform: 'instagram' | 'facebook' | 'telegram' | 'twitter' | 'bluesky' | 'reddit' | 'whatsapp';
|
|
28494
|
+
platform: 'instagram' | 'facebook' | 'telegram' | 'twitter' | 'bluesky' | 'reddit' | 'whatsapp' | 'sms' | 'slack';
|
|
28495
28495
|
name: string;
|
|
28496
28496
|
description?: string;
|
|
28497
28497
|
message?: {
|
|
@@ -29221,7 +29221,7 @@ type CreateSequenceData = {
|
|
|
29221
29221
|
body: {
|
|
29222
29222
|
profileId: string;
|
|
29223
29223
|
accountId: string;
|
|
29224
|
-
platform: 'instagram' | 'facebook' | 'telegram' | 'twitter' | 'bluesky' | 'reddit' | 'whatsapp';
|
|
29224
|
+
platform: 'instagram' | 'facebook' | 'telegram' | 'twitter' | 'bluesky' | 'reddit' | 'whatsapp' | 'slack';
|
|
29225
29225
|
name: string;
|
|
29226
29226
|
description?: string;
|
|
29227
29227
|
steps?: Array<{
|
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.724",
|
|
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.724",
|
|
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
|
@@ -4482,8 +4482,9 @@ export const getWhatsAppTemplate = <ThrowOnError extends boolean = false>(option
|
|
|
4482
4482
|
* must match exactly. Variants in `PENDING_DELETION` are not part of the family.
|
|
4483
4483
|
*
|
|
4484
4484
|
* Meta only allows editing templates in `APPROVED`, `REJECTED` or `PAUSED` state; an approved
|
|
4485
|
-
* template can be edited once per 24 hours and up to 10 times per 30 days. A
|
|
4486
|
-
* sends the variant back to Meta for review, so the `status` returned here is normally `PENDING
|
|
4485
|
+
* template can be edited once per 24 hours and up to 10 times per 30 days. A component update
|
|
4486
|
+
* sends the variant back to Meta for review, so the `status` returned here is normally `PENDING`;
|
|
4487
|
+
* a TTL-only update keeps an APPROVED variant approved.
|
|
4487
4488
|
* The final outcome arrives on the `whatsapp.template.status_updated` webhook (which carries the
|
|
4488
4489
|
* variant's `templateId` and `language`). A variant already in `PENDING` cannot be edited again
|
|
4489
4490
|
* until Meta finishes reviewing it.
|
|
@@ -4531,8 +4532,9 @@ export const getWhatsAppTemplateById = <ThrowOnError extends boolean = false>(op
|
|
|
4531
4532
|
* Update one variant's components and/or its message_send_ttl_seconds by its Meta id. Name, language and category cannot change.
|
|
4532
4533
|
*
|
|
4533
4534
|
* Meta only allows editing templates in `APPROVED`, `REJECTED` or `PAUSED` state; an approved
|
|
4534
|
-
* template can be edited once per 24 hours and up to 10 times per 30 days. A
|
|
4535
|
-
* sends the variant back to Meta for review, so the `status` returned here is normally `PENDING
|
|
4535
|
+
* template can be edited once per 24 hours and up to 10 times per 30 days. A component update
|
|
4536
|
+
* sends the variant back to Meta for review, so the `status` returned here is normally `PENDING`;
|
|
4537
|
+
* a TTL-only update keeps an APPROVED variant approved.
|
|
4536
4538
|
* The final outcome arrives on the `whatsapp.template.status_updated` webhook (which carries the
|
|
4537
4539
|
* variant's `templateId` and `language`). A variant already in `PENDING` cannot be edited again
|
|
4538
4540
|
* until Meta finishes reviewing it.
|
|
@@ -22486,7 +22486,7 @@ export type CreateWhatsAppTemplateData = {
|
|
|
22486
22486
|
phone_number?: string;
|
|
22487
22487
|
}>;
|
|
22488
22488
|
/**
|
|
22489
|
-
* Delivery validity window in seconds: a message not delivered within it is dropped. Range depends on category: AUTHENTICATION 30 to 900, UTILITY 30 to 43200 (12h), MARKETING 43200 to 2592000 (30 days); -1
|
|
22489
|
+
* Delivery validity window in seconds: a message not delivered within it is dropped. Range depends on category: AUTHENTICATION 30 to 900, UTILITY 30 to 43200 (12h), MARKETING 43200 to 2592000 (30 days); -1 (create only) keeps the 30-day default on AUTHENTICATION and UTILITY. Meta defaults to 600 for AUTHENTICATION and 30 days otherwise. If Meta later recategorises the template, it clears the TTL (read it back to check).
|
|
22490
22490
|
*/
|
|
22491
22491
|
message_send_ttl_seconds?: number;
|
|
22492
22492
|
};
|
|
@@ -22594,7 +22594,7 @@ export type UpdateWhatsAppTemplateData = {
|
|
|
22594
22594
|
*/
|
|
22595
22595
|
components?: Array<WhatsAppTemplateComponent>;
|
|
22596
22596
|
/**
|
|
22597
|
-
* Delivery validity window in seconds: a message not delivered within it is dropped. Range depends on category: AUTHENTICATION 30 to 900, UTILITY 30 to 43200 (12h), MARKETING 43200 to 2592000 (30 days); -1
|
|
22597
|
+
* Delivery validity window in seconds: a message not delivered within it is dropped. Range depends on category: AUTHENTICATION 30 to 900, UTILITY 30 to 43200 (12h), MARKETING 43200 to 2592000 (30 days); -1 is not accepted here (Meta treats it as an empty edit); send a value in range. A TTL-only edit keeps an APPROVED template approved, no re-review. Meta defaults to 600 for AUTHENTICATION and 30 days otherwise. If Meta later recategorises the template, it clears the TTL (read it back to check).
|
|
22598
22598
|
*/
|
|
22599
22599
|
message_send_ttl_seconds?: number;
|
|
22600
22600
|
};
|
|
@@ -22745,7 +22745,7 @@ export type UpdateWhatsAppTemplateByIdData = {
|
|
|
22745
22745
|
*/
|
|
22746
22746
|
components?: Array<WhatsAppTemplateComponent>;
|
|
22747
22747
|
/**
|
|
22748
|
-
* Delivery validity window in seconds: a message not delivered within it is dropped. Range depends on category: AUTHENTICATION 30 to 900, UTILITY 30 to 43200 (12h), MARKETING 43200 to 2592000 (30 days); -1
|
|
22748
|
+
* Delivery validity window in seconds: a message not delivered within it is dropped. Range depends on category: AUTHENTICATION 30 to 900, UTILITY 30 to 43200 (12h), MARKETING 43200 to 2592000 (30 days); -1 is not accepted here (Meta treats it as an empty edit); send a value in range. A TTL-only edit keeps an APPROVED template approved, no re-review. Meta defaults to 600 for AUTHENTICATION and 30 days otherwise. If Meta later recategorises the template, it clears the TTL (read it back to check).
|
|
22749
22749
|
*/
|
|
22750
22750
|
message_send_ttl_seconds?: number;
|
|
22751
22751
|
};
|
|
@@ -28275,7 +28275,7 @@ export type ListContactsData = {
|
|
|
28275
28275
|
accountId?: string;
|
|
28276
28276
|
isSubscribed?: 'true' | 'false';
|
|
28277
28277
|
limit?: number;
|
|
28278
|
-
platform?: 'instagram' | 'facebook' | 'telegram' | 'twitter' | 'bluesky' | 'reddit' | 'whatsapp' | 'slack';
|
|
28278
|
+
platform?: 'instagram' | 'facebook' | 'telegram' | 'twitter' | 'bluesky' | 'reddit' | 'whatsapp' | 'slack' | 'sms';
|
|
28279
28279
|
/**
|
|
28280
28280
|
* Filter by profile. Omit to list across all profiles. Matches the profile recorded on the contact itself, which is set when the contact is created and is independent of the profile its account currently belongs to. Filter by accountId to list a contact through its channel instead.
|
|
28281
28281
|
*/
|
|
@@ -28348,7 +28348,7 @@ export type CreateContactData = {
|
|
|
28348
28348
|
/**
|
|
28349
28349
|
* Channel platform. Only the enum values support contact channels; any other platform is rejected with code platform_not_supported.
|
|
28350
28350
|
*/
|
|
28351
|
-
platform?: 'instagram' | 'facebook' | 'telegram' | 'twitter' | 'bluesky' | 'reddit' | 'whatsapp' | 'slack';
|
|
28351
|
+
platform?: 'instagram' | 'facebook' | 'telegram' | 'twitter' | 'bluesky' | 'reddit' | 'whatsapp' | 'slack' | 'sms';
|
|
28352
28352
|
platformIdentifier?: string;
|
|
28353
28353
|
displayIdentifier?: string;
|
|
28354
28354
|
};
|
|
@@ -28744,7 +28744,7 @@ export type CreateBroadcastData = {
|
|
|
28744
28744
|
body: {
|
|
28745
28745
|
profileId: string;
|
|
28746
28746
|
accountId: string;
|
|
28747
|
-
platform: 'instagram' | 'facebook' | 'telegram' | 'twitter' | 'bluesky' | 'reddit' | 'whatsapp';
|
|
28747
|
+
platform: 'instagram' | 'facebook' | 'telegram' | 'twitter' | 'bluesky' | 'reddit' | 'whatsapp' | 'sms' | 'slack';
|
|
28748
28748
|
name: string;
|
|
28749
28749
|
description?: string;
|
|
28750
28750
|
message?: {
|
|
@@ -29546,7 +29546,7 @@ export type CreateSequenceData = {
|
|
|
29546
29546
|
body: {
|
|
29547
29547
|
profileId: string;
|
|
29548
29548
|
accountId: string;
|
|
29549
|
-
platform: 'instagram' | 'facebook' | 'telegram' | 'twitter' | 'bluesky' | 'reddit' | 'whatsapp';
|
|
29549
|
+
platform: 'instagram' | 'facebook' | 'telegram' | 'twitter' | 'bluesky' | 'reddit' | 'whatsapp' | 'slack';
|
|
29550
29550
|
name: string;
|
|
29551
29551
|
description?: string;
|
|
29552
29552
|
steps?: Array<{
|