@zernio/node 0.2.721 → 0.2.722
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 +32 -4
- package/dist/index.d.ts +32 -4
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +2 -2
- package/src/generated/types.gen.ts +32 -4
package/dist/index.d.mts
CHANGED
|
@@ -22654,6 +22654,10 @@ type GetWhatsAppTemplatesResponse = ({
|
|
|
22654
22654
|
status?: 'APPROVED' | 'PENDING' | 'REJECTED';
|
|
22655
22655
|
category?: 'AUTHENTICATION' | 'MARKETING' | 'UTILITY';
|
|
22656
22656
|
language?: string;
|
|
22657
|
+
/**
|
|
22658
|
+
* Only when a custom TTL is set; absent while the category default applies.
|
|
22659
|
+
*/
|
|
22660
|
+
message_send_ttl_seconds?: number;
|
|
22657
22661
|
components?: Array<{
|
|
22658
22662
|
[key: string]: unknown;
|
|
22659
22663
|
}>;
|
|
@@ -22716,6 +22720,10 @@ type CreateWhatsAppTemplateData = {
|
|
|
22716
22720
|
};
|
|
22717
22721
|
phone_number?: string;
|
|
22718
22722
|
}>;
|
|
22723
|
+
/**
|
|
22724
|
+
* 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 restores 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).
|
|
22725
|
+
*/
|
|
22726
|
+
message_send_ttl_seconds?: number;
|
|
22719
22727
|
};
|
|
22720
22728
|
};
|
|
22721
22729
|
type CreateWhatsAppTemplateResponse = ({
|
|
@@ -22729,6 +22737,10 @@ type CreateWhatsAppTemplateResponse = ({
|
|
|
22729
22737
|
status?: string;
|
|
22730
22738
|
category?: string;
|
|
22731
22739
|
language?: string;
|
|
22740
|
+
/**
|
|
22741
|
+
* Echoed when supplied on the request.
|
|
22742
|
+
*/
|
|
22743
|
+
message_send_ttl_seconds?: number;
|
|
22732
22744
|
};
|
|
22733
22745
|
});
|
|
22734
22746
|
type CreateWhatsAppTemplateError = (unknown | {
|
|
@@ -22769,6 +22781,10 @@ type GetWhatsAppTemplateResponse = ({
|
|
|
22769
22781
|
components?: Array<{
|
|
22770
22782
|
[key: string]: unknown;
|
|
22771
22783
|
}>;
|
|
22784
|
+
/**
|
|
22785
|
+
* Only when a custom TTL is set; absent while the category default applies.
|
|
22786
|
+
*/
|
|
22787
|
+
message_send_ttl_seconds?: number;
|
|
22772
22788
|
/**
|
|
22773
22789
|
* Only when status is REJECTED.
|
|
22774
22790
|
*/
|
|
@@ -22803,9 +22819,13 @@ type UpdateWhatsAppTemplateData = {
|
|
|
22803
22819
|
*/
|
|
22804
22820
|
language?: string;
|
|
22805
22821
|
/**
|
|
22806
|
-
* Updated template components
|
|
22822
|
+
* Updated template components. Optional when only message_send_ttl_seconds changes; at least one of the two is required.
|
|
22807
22823
|
*/
|
|
22808
|
-
components
|
|
22824
|
+
components?: Array<WhatsAppTemplateComponent>;
|
|
22825
|
+
/**
|
|
22826
|
+
* 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 restores 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).
|
|
22827
|
+
*/
|
|
22828
|
+
message_send_ttl_seconds?: number;
|
|
22809
22829
|
};
|
|
22810
22830
|
path: {
|
|
22811
22831
|
/**
|
|
@@ -22915,6 +22935,10 @@ type GetWhatsAppTemplateByIdResponse = ({
|
|
|
22915
22935
|
components?: Array<{
|
|
22916
22936
|
[key: string]: unknown;
|
|
22917
22937
|
}>;
|
|
22938
|
+
/**
|
|
22939
|
+
* Only when a custom TTL is set; absent while the category default applies.
|
|
22940
|
+
*/
|
|
22941
|
+
message_send_ttl_seconds?: number;
|
|
22918
22942
|
/**
|
|
22919
22943
|
* Only when status is REJECTED.
|
|
22920
22944
|
*/
|
|
@@ -22937,9 +22961,13 @@ type UpdateWhatsAppTemplateByIdData = {
|
|
|
22937
22961
|
*/
|
|
22938
22962
|
accountId: string;
|
|
22939
22963
|
/**
|
|
22940
|
-
* Updated template components
|
|
22964
|
+
* Updated template components. Optional when only message_send_ttl_seconds changes; at least one of the two is required.
|
|
22965
|
+
*/
|
|
22966
|
+
components?: Array<WhatsAppTemplateComponent>;
|
|
22967
|
+
/**
|
|
22968
|
+
* 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 restores 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).
|
|
22941
22969
|
*/
|
|
22942
|
-
|
|
22970
|
+
message_send_ttl_seconds?: number;
|
|
22943
22971
|
};
|
|
22944
22972
|
path: {
|
|
22945
22973
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -22654,6 +22654,10 @@ type GetWhatsAppTemplatesResponse = ({
|
|
|
22654
22654
|
status?: 'APPROVED' | 'PENDING' | 'REJECTED';
|
|
22655
22655
|
category?: 'AUTHENTICATION' | 'MARKETING' | 'UTILITY';
|
|
22656
22656
|
language?: string;
|
|
22657
|
+
/**
|
|
22658
|
+
* Only when a custom TTL is set; absent while the category default applies.
|
|
22659
|
+
*/
|
|
22660
|
+
message_send_ttl_seconds?: number;
|
|
22657
22661
|
components?: Array<{
|
|
22658
22662
|
[key: string]: unknown;
|
|
22659
22663
|
}>;
|
|
@@ -22716,6 +22720,10 @@ type CreateWhatsAppTemplateData = {
|
|
|
22716
22720
|
};
|
|
22717
22721
|
phone_number?: string;
|
|
22718
22722
|
}>;
|
|
22723
|
+
/**
|
|
22724
|
+
* 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 restores 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).
|
|
22725
|
+
*/
|
|
22726
|
+
message_send_ttl_seconds?: number;
|
|
22719
22727
|
};
|
|
22720
22728
|
};
|
|
22721
22729
|
type CreateWhatsAppTemplateResponse = ({
|
|
@@ -22729,6 +22737,10 @@ type CreateWhatsAppTemplateResponse = ({
|
|
|
22729
22737
|
status?: string;
|
|
22730
22738
|
category?: string;
|
|
22731
22739
|
language?: string;
|
|
22740
|
+
/**
|
|
22741
|
+
* Echoed when supplied on the request.
|
|
22742
|
+
*/
|
|
22743
|
+
message_send_ttl_seconds?: number;
|
|
22732
22744
|
};
|
|
22733
22745
|
});
|
|
22734
22746
|
type CreateWhatsAppTemplateError = (unknown | {
|
|
@@ -22769,6 +22781,10 @@ type GetWhatsAppTemplateResponse = ({
|
|
|
22769
22781
|
components?: Array<{
|
|
22770
22782
|
[key: string]: unknown;
|
|
22771
22783
|
}>;
|
|
22784
|
+
/**
|
|
22785
|
+
* Only when a custom TTL is set; absent while the category default applies.
|
|
22786
|
+
*/
|
|
22787
|
+
message_send_ttl_seconds?: number;
|
|
22772
22788
|
/**
|
|
22773
22789
|
* Only when status is REJECTED.
|
|
22774
22790
|
*/
|
|
@@ -22803,9 +22819,13 @@ type UpdateWhatsAppTemplateData = {
|
|
|
22803
22819
|
*/
|
|
22804
22820
|
language?: string;
|
|
22805
22821
|
/**
|
|
22806
|
-
* Updated template components
|
|
22822
|
+
* Updated template components. Optional when only message_send_ttl_seconds changes; at least one of the two is required.
|
|
22807
22823
|
*/
|
|
22808
|
-
components
|
|
22824
|
+
components?: Array<WhatsAppTemplateComponent>;
|
|
22825
|
+
/**
|
|
22826
|
+
* 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 restores 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).
|
|
22827
|
+
*/
|
|
22828
|
+
message_send_ttl_seconds?: number;
|
|
22809
22829
|
};
|
|
22810
22830
|
path: {
|
|
22811
22831
|
/**
|
|
@@ -22915,6 +22935,10 @@ type GetWhatsAppTemplateByIdResponse = ({
|
|
|
22915
22935
|
components?: Array<{
|
|
22916
22936
|
[key: string]: unknown;
|
|
22917
22937
|
}>;
|
|
22938
|
+
/**
|
|
22939
|
+
* Only when a custom TTL is set; absent while the category default applies.
|
|
22940
|
+
*/
|
|
22941
|
+
message_send_ttl_seconds?: number;
|
|
22918
22942
|
/**
|
|
22919
22943
|
* Only when status is REJECTED.
|
|
22920
22944
|
*/
|
|
@@ -22937,9 +22961,13 @@ type UpdateWhatsAppTemplateByIdData = {
|
|
|
22937
22961
|
*/
|
|
22938
22962
|
accountId: string;
|
|
22939
22963
|
/**
|
|
22940
|
-
* Updated template components
|
|
22964
|
+
* Updated template components. Optional when only message_send_ttl_seconds changes; at least one of the two is required.
|
|
22965
|
+
*/
|
|
22966
|
+
components?: Array<WhatsAppTemplateComponent>;
|
|
22967
|
+
/**
|
|
22968
|
+
* 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 restores 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).
|
|
22941
22969
|
*/
|
|
22942
|
-
|
|
22970
|
+
message_send_ttl_seconds?: number;
|
|
22943
22971
|
};
|
|
22944
22972
|
path: {
|
|
22945
22973
|
/**
|
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.722",
|
|
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.722",
|
|
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
|
@@ -4472,7 +4472,7 @@ export const getWhatsAppTemplate = <ThrowOnError extends boolean = false>(option
|
|
|
4472
4472
|
|
|
4473
4473
|
/**
|
|
4474
4474
|
* Update template
|
|
4475
|
-
* Update one variant's components. Name, language and category cannot change after creation.
|
|
4475
|
+
* Update one variant's components and/or its message_send_ttl_seconds. Name, language and category cannot change after creation.
|
|
4476
4476
|
*
|
|
4477
4477
|
* Meta stores one template per **name + language**, so a name identifies a family of variants,
|
|
4478
4478
|
* each with its own Meta id. Pass `language` to address one variant. Without it, a name with a
|
|
@@ -4528,7 +4528,7 @@ export const getWhatsAppTemplateById = <ThrowOnError extends boolean = false>(op
|
|
|
4528
4528
|
|
|
4529
4529
|
/**
|
|
4530
4530
|
* Update template by id
|
|
4531
|
-
* Update one variant's components by its Meta id. Name, language and category cannot change.
|
|
4531
|
+
* Update one variant's components and/or its message_send_ttl_seconds by its Meta id. Name, language and category cannot change.
|
|
4532
4532
|
*
|
|
4533
4533
|
* Meta only allows editing templates in `APPROVED`, `REJECTED` or `PAUSED` state; an approved
|
|
4534
4534
|
* template can be edited once per 24 hours and up to 10 times per 30 days. A successful update
|
|
@@ -22402,6 +22402,10 @@ export type GetWhatsAppTemplatesResponse = ({
|
|
|
22402
22402
|
status?: 'APPROVED' | 'PENDING' | 'REJECTED';
|
|
22403
22403
|
category?: 'AUTHENTICATION' | 'MARKETING' | 'UTILITY';
|
|
22404
22404
|
language?: string;
|
|
22405
|
+
/**
|
|
22406
|
+
* Only when a custom TTL is set; absent while the category default applies.
|
|
22407
|
+
*/
|
|
22408
|
+
message_send_ttl_seconds?: number;
|
|
22405
22409
|
components?: Array<{
|
|
22406
22410
|
[key: string]: unknown;
|
|
22407
22411
|
}>;
|
|
@@ -22466,6 +22470,10 @@ export type CreateWhatsAppTemplateData = {
|
|
|
22466
22470
|
};
|
|
22467
22471
|
phone_number?: string;
|
|
22468
22472
|
}>;
|
|
22473
|
+
/**
|
|
22474
|
+
* 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 restores 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).
|
|
22475
|
+
*/
|
|
22476
|
+
message_send_ttl_seconds?: number;
|
|
22469
22477
|
};
|
|
22470
22478
|
};
|
|
22471
22479
|
|
|
@@ -22480,6 +22488,10 @@ export type CreateWhatsAppTemplateResponse = ({
|
|
|
22480
22488
|
status?: string;
|
|
22481
22489
|
category?: string;
|
|
22482
22490
|
language?: string;
|
|
22491
|
+
/**
|
|
22492
|
+
* Echoed when supplied on the request.
|
|
22493
|
+
*/
|
|
22494
|
+
message_send_ttl_seconds?: number;
|
|
22483
22495
|
};
|
|
22484
22496
|
});
|
|
22485
22497
|
|
|
@@ -22523,6 +22535,10 @@ export type GetWhatsAppTemplateResponse = ({
|
|
|
22523
22535
|
components?: Array<{
|
|
22524
22536
|
[key: string]: unknown;
|
|
22525
22537
|
}>;
|
|
22538
|
+
/**
|
|
22539
|
+
* Only when a custom TTL is set; absent while the category default applies.
|
|
22540
|
+
*/
|
|
22541
|
+
message_send_ttl_seconds?: number;
|
|
22526
22542
|
/**
|
|
22527
22543
|
* Only when status is REJECTED.
|
|
22528
22544
|
*/
|
|
@@ -22559,9 +22575,13 @@ export type UpdateWhatsAppTemplateData = {
|
|
|
22559
22575
|
*/
|
|
22560
22576
|
language?: string;
|
|
22561
22577
|
/**
|
|
22562
|
-
* Updated template components
|
|
22578
|
+
* Updated template components. Optional when only message_send_ttl_seconds changes; at least one of the two is required.
|
|
22563
22579
|
*/
|
|
22564
|
-
components
|
|
22580
|
+
components?: Array<WhatsAppTemplateComponent>;
|
|
22581
|
+
/**
|
|
22582
|
+
* 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 restores 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).
|
|
22583
|
+
*/
|
|
22584
|
+
message_send_ttl_seconds?: number;
|
|
22565
22585
|
};
|
|
22566
22586
|
path: {
|
|
22567
22587
|
/**
|
|
@@ -22678,6 +22698,10 @@ export type GetWhatsAppTemplateByIdResponse = ({
|
|
|
22678
22698
|
components?: Array<{
|
|
22679
22699
|
[key: string]: unknown;
|
|
22680
22700
|
}>;
|
|
22701
|
+
/**
|
|
22702
|
+
* Only when a custom TTL is set; absent while the category default applies.
|
|
22703
|
+
*/
|
|
22704
|
+
message_send_ttl_seconds?: number;
|
|
22681
22705
|
/**
|
|
22682
22706
|
* Only when status is REJECTED.
|
|
22683
22707
|
*/
|
|
@@ -22702,9 +22726,13 @@ export type UpdateWhatsAppTemplateByIdData = {
|
|
|
22702
22726
|
*/
|
|
22703
22727
|
accountId: string;
|
|
22704
22728
|
/**
|
|
22705
|
-
* Updated template components
|
|
22729
|
+
* Updated template components. Optional when only message_send_ttl_seconds changes; at least one of the two is required.
|
|
22730
|
+
*/
|
|
22731
|
+
components?: Array<WhatsAppTemplateComponent>;
|
|
22732
|
+
/**
|
|
22733
|
+
* 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 restores 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).
|
|
22706
22734
|
*/
|
|
22707
|
-
|
|
22735
|
+
message_send_ttl_seconds?: number;
|
|
22708
22736
|
};
|
|
22709
22737
|
path: {
|
|
22710
22738
|
/**
|