@zernio/node 0.2.28 → 0.2.30
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 +16 -16
- package/dist/index.d.ts +16 -16
- package/package.json +1 -1
- package/src/generated/types.gen.ts +16 -16
package/dist/index.d.mts
CHANGED
|
@@ -2487,7 +2487,7 @@ type WebhookPayloadTest = {
|
|
|
2487
2487
|
};
|
|
2488
2488
|
type event7 = 'webhook.test';
|
|
2489
2489
|
type WhatsAppBodyComponent = {
|
|
2490
|
-
type: '
|
|
2490
|
+
type: 'body';
|
|
2491
2491
|
/**
|
|
2492
2492
|
* Body text with optional {{n}} variables
|
|
2493
2493
|
*/
|
|
@@ -2504,11 +2504,11 @@ type WhatsAppBodyComponent = {
|
|
|
2504
2504
|
};
|
|
2505
2505
|
};
|
|
2506
2506
|
type WhatsAppButtonsComponent = {
|
|
2507
|
-
type: '
|
|
2507
|
+
type: 'buttons';
|
|
2508
2508
|
buttons: Array<WhatsAppTemplateButton>;
|
|
2509
2509
|
};
|
|
2510
2510
|
type WhatsAppFooterComponent = {
|
|
2511
|
-
type: '
|
|
2511
|
+
type: 'footer';
|
|
2512
2512
|
/**
|
|
2513
2513
|
* Static footer text
|
|
2514
2514
|
*/
|
|
@@ -2519,8 +2519,8 @@ type WhatsAppFooterComponent = {
|
|
|
2519
2519
|
code_expiration_minutes?: number;
|
|
2520
2520
|
};
|
|
2521
2521
|
type WhatsAppHeaderComponent = {
|
|
2522
|
-
type: '
|
|
2523
|
-
format: '
|
|
2522
|
+
type: 'header';
|
|
2523
|
+
format: 'text' | 'image' | 'video' | 'gif' | 'document' | 'location';
|
|
2524
2524
|
/**
|
|
2525
2525
|
* Header text (may include {{1}} variable). Used when format is TEXT.
|
|
2526
2526
|
*/
|
|
@@ -2531,16 +2531,16 @@ type WhatsAppHeaderComponent = {
|
|
|
2531
2531
|
*/
|
|
2532
2532
|
header_text?: Array<(string)>;
|
|
2533
2533
|
/**
|
|
2534
|
-
* When the header format is a media type (
|
|
2534
|
+
* When the header format is a media type (image, video, gif, document), provide a public URL here. Zernio will download and upload it to WhatsApp on your behalf, replacing it with the internal file handle before creating the template.
|
|
2535
2535
|
*/
|
|
2536
2536
|
header_handle?: [
|
|
2537
2537
|
string
|
|
2538
2538
|
];
|
|
2539
2539
|
};
|
|
2540
2540
|
};
|
|
2541
|
-
type format = '
|
|
2541
|
+
type format = 'text' | 'image' | 'video' | 'gif' | 'document' | 'location';
|
|
2542
2542
|
type WhatsAppTemplateButton = {
|
|
2543
|
-
type: '
|
|
2543
|
+
type: 'quick_reply' | 'url' | 'phone_number' | 'otp' | 'flow' | 'mpm' | 'catalog';
|
|
2544
2544
|
text: string;
|
|
2545
2545
|
/**
|
|
2546
2546
|
* Required when type is URL
|
|
@@ -2551,13 +2551,13 @@ type WhatsAppTemplateButton = {
|
|
|
2551
2551
|
*/
|
|
2552
2552
|
example?: Array<(string)>;
|
|
2553
2553
|
/**
|
|
2554
|
-
* Required when type is
|
|
2554
|
+
* Required when type is phone_number
|
|
2555
2555
|
*/
|
|
2556
2556
|
phone_number?: string;
|
|
2557
2557
|
/**
|
|
2558
|
-
* Required when type is
|
|
2558
|
+
* Required when type is otp
|
|
2559
2559
|
*/
|
|
2560
|
-
otp_type?: '
|
|
2560
|
+
otp_type?: 'copy_code' | 'one_tap' | 'zero_tap';
|
|
2561
2561
|
autofill_text?: string;
|
|
2562
2562
|
package_name?: string;
|
|
2563
2563
|
signature_hash?: string;
|
|
@@ -2567,11 +2567,11 @@ type WhatsAppTemplateButton = {
|
|
|
2567
2567
|
flow_action?: string;
|
|
2568
2568
|
navigate_screen?: string;
|
|
2569
2569
|
};
|
|
2570
|
-
type type4 = '
|
|
2570
|
+
type type4 = 'quick_reply' | 'url' | 'phone_number' | 'otp' | 'flow' | 'mpm' | 'catalog';
|
|
2571
2571
|
/**
|
|
2572
|
-
* Required when type is
|
|
2572
|
+
* Required when type is otp
|
|
2573
2573
|
*/
|
|
2574
|
-
type otp_type = '
|
|
2574
|
+
type otp_type = 'copy_code' | 'one_tap' | 'zero_tap';
|
|
2575
2575
|
type WhatsAppTemplateComponent = WhatsAppHeaderComponent | WhatsAppBodyComponent | WhatsAppFooterComponent | WhatsAppButtonsComponent;
|
|
2576
2576
|
type YouTubeDailyViewsResponse = {
|
|
2577
2577
|
success?: boolean;
|
|
@@ -8478,7 +8478,7 @@ type CreateWhatsAppTemplateData = {
|
|
|
8478
8478
|
*/
|
|
8479
8479
|
language: string;
|
|
8480
8480
|
/**
|
|
8481
|
-
* Template components (
|
|
8481
|
+
* Template components (header, body, footer, buttons). Required for custom templates, omit when using library_template_name.
|
|
8482
8482
|
*/
|
|
8483
8483
|
components?: Array<WhatsAppTemplateComponent>;
|
|
8484
8484
|
/**
|
|
@@ -8503,7 +8503,7 @@ type CreateWhatsAppTemplateData = {
|
|
|
8503
8503
|
*
|
|
8504
8504
|
*/
|
|
8505
8505
|
library_template_button_inputs?: Array<{
|
|
8506
|
-
type?: '
|
|
8506
|
+
type?: 'quick_reply' | 'url' | 'phone_number';
|
|
8507
8507
|
url?: {
|
|
8508
8508
|
base_url?: string;
|
|
8509
8509
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -2487,7 +2487,7 @@ type WebhookPayloadTest = {
|
|
|
2487
2487
|
};
|
|
2488
2488
|
type event7 = 'webhook.test';
|
|
2489
2489
|
type WhatsAppBodyComponent = {
|
|
2490
|
-
type: '
|
|
2490
|
+
type: 'body';
|
|
2491
2491
|
/**
|
|
2492
2492
|
* Body text with optional {{n}} variables
|
|
2493
2493
|
*/
|
|
@@ -2504,11 +2504,11 @@ type WhatsAppBodyComponent = {
|
|
|
2504
2504
|
};
|
|
2505
2505
|
};
|
|
2506
2506
|
type WhatsAppButtonsComponent = {
|
|
2507
|
-
type: '
|
|
2507
|
+
type: 'buttons';
|
|
2508
2508
|
buttons: Array<WhatsAppTemplateButton>;
|
|
2509
2509
|
};
|
|
2510
2510
|
type WhatsAppFooterComponent = {
|
|
2511
|
-
type: '
|
|
2511
|
+
type: 'footer';
|
|
2512
2512
|
/**
|
|
2513
2513
|
* Static footer text
|
|
2514
2514
|
*/
|
|
@@ -2519,8 +2519,8 @@ type WhatsAppFooterComponent = {
|
|
|
2519
2519
|
code_expiration_minutes?: number;
|
|
2520
2520
|
};
|
|
2521
2521
|
type WhatsAppHeaderComponent = {
|
|
2522
|
-
type: '
|
|
2523
|
-
format: '
|
|
2522
|
+
type: 'header';
|
|
2523
|
+
format: 'text' | 'image' | 'video' | 'gif' | 'document' | 'location';
|
|
2524
2524
|
/**
|
|
2525
2525
|
* Header text (may include {{1}} variable). Used when format is TEXT.
|
|
2526
2526
|
*/
|
|
@@ -2531,16 +2531,16 @@ type WhatsAppHeaderComponent = {
|
|
|
2531
2531
|
*/
|
|
2532
2532
|
header_text?: Array<(string)>;
|
|
2533
2533
|
/**
|
|
2534
|
-
* When the header format is a media type (
|
|
2534
|
+
* When the header format is a media type (image, video, gif, document), provide a public URL here. Zernio will download and upload it to WhatsApp on your behalf, replacing it with the internal file handle before creating the template.
|
|
2535
2535
|
*/
|
|
2536
2536
|
header_handle?: [
|
|
2537
2537
|
string
|
|
2538
2538
|
];
|
|
2539
2539
|
};
|
|
2540
2540
|
};
|
|
2541
|
-
type format = '
|
|
2541
|
+
type format = 'text' | 'image' | 'video' | 'gif' | 'document' | 'location';
|
|
2542
2542
|
type WhatsAppTemplateButton = {
|
|
2543
|
-
type: '
|
|
2543
|
+
type: 'quick_reply' | 'url' | 'phone_number' | 'otp' | 'flow' | 'mpm' | 'catalog';
|
|
2544
2544
|
text: string;
|
|
2545
2545
|
/**
|
|
2546
2546
|
* Required when type is URL
|
|
@@ -2551,13 +2551,13 @@ type WhatsAppTemplateButton = {
|
|
|
2551
2551
|
*/
|
|
2552
2552
|
example?: Array<(string)>;
|
|
2553
2553
|
/**
|
|
2554
|
-
* Required when type is
|
|
2554
|
+
* Required when type is phone_number
|
|
2555
2555
|
*/
|
|
2556
2556
|
phone_number?: string;
|
|
2557
2557
|
/**
|
|
2558
|
-
* Required when type is
|
|
2558
|
+
* Required when type is otp
|
|
2559
2559
|
*/
|
|
2560
|
-
otp_type?: '
|
|
2560
|
+
otp_type?: 'copy_code' | 'one_tap' | 'zero_tap';
|
|
2561
2561
|
autofill_text?: string;
|
|
2562
2562
|
package_name?: string;
|
|
2563
2563
|
signature_hash?: string;
|
|
@@ -2567,11 +2567,11 @@ type WhatsAppTemplateButton = {
|
|
|
2567
2567
|
flow_action?: string;
|
|
2568
2568
|
navigate_screen?: string;
|
|
2569
2569
|
};
|
|
2570
|
-
type type4 = '
|
|
2570
|
+
type type4 = 'quick_reply' | 'url' | 'phone_number' | 'otp' | 'flow' | 'mpm' | 'catalog';
|
|
2571
2571
|
/**
|
|
2572
|
-
* Required when type is
|
|
2572
|
+
* Required when type is otp
|
|
2573
2573
|
*/
|
|
2574
|
-
type otp_type = '
|
|
2574
|
+
type otp_type = 'copy_code' | 'one_tap' | 'zero_tap';
|
|
2575
2575
|
type WhatsAppTemplateComponent = WhatsAppHeaderComponent | WhatsAppBodyComponent | WhatsAppFooterComponent | WhatsAppButtonsComponent;
|
|
2576
2576
|
type YouTubeDailyViewsResponse = {
|
|
2577
2577
|
success?: boolean;
|
|
@@ -8478,7 +8478,7 @@ type CreateWhatsAppTemplateData = {
|
|
|
8478
8478
|
*/
|
|
8479
8479
|
language: string;
|
|
8480
8480
|
/**
|
|
8481
|
-
* Template components (
|
|
8481
|
+
* Template components (header, body, footer, buttons). Required for custom templates, omit when using library_template_name.
|
|
8482
8482
|
*/
|
|
8483
8483
|
components?: Array<WhatsAppTemplateComponent>;
|
|
8484
8484
|
/**
|
|
@@ -8503,7 +8503,7 @@ type CreateWhatsAppTemplateData = {
|
|
|
8503
8503
|
*
|
|
8504
8504
|
*/
|
|
8505
8505
|
library_template_button_inputs?: Array<{
|
|
8506
|
-
type?: '
|
|
8506
|
+
type?: 'quick_reply' | 'url' | 'phone_number';
|
|
8507
8507
|
url?: {
|
|
8508
8508
|
base_url?: string;
|
|
8509
8509
|
};
|
package/package.json
CHANGED
|
@@ -2065,7 +2065,7 @@ export type WebhookPayloadTest = {
|
|
|
2065
2065
|
export type event7 = 'webhook.test';
|
|
2066
2066
|
|
|
2067
2067
|
export type WhatsAppBodyComponent = {
|
|
2068
|
-
type: '
|
|
2068
|
+
type: 'body';
|
|
2069
2069
|
/**
|
|
2070
2070
|
* Body text with optional {{n}} variables
|
|
2071
2071
|
*/
|
|
@@ -2083,12 +2083,12 @@ export type WhatsAppBodyComponent = {
|
|
|
2083
2083
|
};
|
|
2084
2084
|
|
|
2085
2085
|
export type WhatsAppButtonsComponent = {
|
|
2086
|
-
type: '
|
|
2086
|
+
type: 'buttons';
|
|
2087
2087
|
buttons: Array<WhatsAppTemplateButton>;
|
|
2088
2088
|
};
|
|
2089
2089
|
|
|
2090
2090
|
export type WhatsAppFooterComponent = {
|
|
2091
|
-
type: '
|
|
2091
|
+
type: 'footer';
|
|
2092
2092
|
/**
|
|
2093
2093
|
* Static footer text
|
|
2094
2094
|
*/
|
|
@@ -2100,8 +2100,8 @@ export type WhatsAppFooterComponent = {
|
|
|
2100
2100
|
};
|
|
2101
2101
|
|
|
2102
2102
|
export type WhatsAppHeaderComponent = {
|
|
2103
|
-
type: '
|
|
2104
|
-
format: '
|
|
2103
|
+
type: 'header';
|
|
2104
|
+
format: 'text' | 'image' | 'video' | 'gif' | 'document' | 'location';
|
|
2105
2105
|
/**
|
|
2106
2106
|
* Header text (may include {{1}} variable). Used when format is TEXT.
|
|
2107
2107
|
*/
|
|
@@ -2112,7 +2112,7 @@ export type WhatsAppHeaderComponent = {
|
|
|
2112
2112
|
*/
|
|
2113
2113
|
header_text?: Array<(string)>;
|
|
2114
2114
|
/**
|
|
2115
|
-
* When the header format is a media type (
|
|
2115
|
+
* When the header format is a media type (image, video, gif, document), provide a public URL here. Zernio will download and upload it to WhatsApp on your behalf, replacing it with the internal file handle before creating the template.
|
|
2116
2116
|
*/
|
|
2117
2117
|
header_handle?: [
|
|
2118
2118
|
string
|
|
@@ -2120,10 +2120,10 @@ export type WhatsAppHeaderComponent = {
|
|
|
2120
2120
|
};
|
|
2121
2121
|
};
|
|
2122
2122
|
|
|
2123
|
-
export type format = '
|
|
2123
|
+
export type format = 'text' | 'image' | 'video' | 'gif' | 'document' | 'location';
|
|
2124
2124
|
|
|
2125
2125
|
export type WhatsAppTemplateButton = {
|
|
2126
|
-
type: '
|
|
2126
|
+
type: 'quick_reply' | 'url' | 'phone_number' | 'otp' | 'flow' | 'mpm' | 'catalog';
|
|
2127
2127
|
text: string;
|
|
2128
2128
|
/**
|
|
2129
2129
|
* Required when type is URL
|
|
@@ -2134,13 +2134,13 @@ export type WhatsAppTemplateButton = {
|
|
|
2134
2134
|
*/
|
|
2135
2135
|
example?: Array<(string)>;
|
|
2136
2136
|
/**
|
|
2137
|
-
* Required when type is
|
|
2137
|
+
* Required when type is phone_number
|
|
2138
2138
|
*/
|
|
2139
2139
|
phone_number?: string;
|
|
2140
2140
|
/**
|
|
2141
|
-
* Required when type is
|
|
2141
|
+
* Required when type is otp
|
|
2142
2142
|
*/
|
|
2143
|
-
otp_type?: '
|
|
2143
|
+
otp_type?: 'copy_code' | 'one_tap' | 'zero_tap';
|
|
2144
2144
|
autofill_text?: string;
|
|
2145
2145
|
package_name?: string;
|
|
2146
2146
|
signature_hash?: string;
|
|
@@ -2151,12 +2151,12 @@ export type WhatsAppTemplateButton = {
|
|
|
2151
2151
|
navigate_screen?: string;
|
|
2152
2152
|
};
|
|
2153
2153
|
|
|
2154
|
-
export type type4 = '
|
|
2154
|
+
export type type4 = 'quick_reply' | 'url' | 'phone_number' | 'otp' | 'flow' | 'mpm' | 'catalog';
|
|
2155
2155
|
|
|
2156
2156
|
/**
|
|
2157
|
-
* Required when type is
|
|
2157
|
+
* Required when type is otp
|
|
2158
2158
|
*/
|
|
2159
|
-
export type otp_type = '
|
|
2159
|
+
export type otp_type = 'copy_code' | 'one_tap' | 'zero_tap';
|
|
2160
2160
|
|
|
2161
2161
|
export type WhatsAppTemplateComponent = WhatsAppHeaderComponent | WhatsAppBodyComponent | WhatsAppFooterComponent | WhatsAppButtonsComponent;
|
|
2162
2162
|
|
|
@@ -8576,7 +8576,7 @@ export type CreateWhatsAppTemplateData = {
|
|
|
8576
8576
|
*/
|
|
8577
8577
|
language: string;
|
|
8578
8578
|
/**
|
|
8579
|
-
* Template components (
|
|
8579
|
+
* Template components (header, body, footer, buttons). Required for custom templates, omit when using library_template_name.
|
|
8580
8580
|
*/
|
|
8581
8581
|
components?: Array<WhatsAppTemplateComponent>;
|
|
8582
8582
|
/**
|
|
@@ -8601,7 +8601,7 @@ export type CreateWhatsAppTemplateData = {
|
|
|
8601
8601
|
*
|
|
8602
8602
|
*/
|
|
8603
8603
|
library_template_button_inputs?: Array<{
|
|
8604
|
-
type?: '
|
|
8604
|
+
type?: 'quick_reply' | 'url' | 'phone_number';
|
|
8605
8605
|
url?: {
|
|
8606
8606
|
base_url?: string;
|
|
8607
8607
|
};
|