@zernio/node 0.2.280 → 0.2.282
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 +18 -2
- package/dist/index.d.ts +18 -2
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/types.gen.ts +18 -2
package/dist/index.d.mts
CHANGED
|
@@ -15372,6 +15372,10 @@ type SubmitWhatsAppNumberKycData = {
|
|
|
15372
15372
|
* Idempotency token for this submission attempt. A retry/double-submit with the same token returns the same number; omit and each call creates a new number.
|
|
15373
15373
|
*/
|
|
15374
15374
|
submissionId?: string;
|
|
15375
|
+
/**
|
|
15376
|
+
* Provision several same-country numbers from one submission (1-5). The single verification covers all of them; each number is billed only when it activates. Numbers that fail to order are skipped (best-effort).
|
|
15377
|
+
*/
|
|
15378
|
+
quantity?: number;
|
|
15375
15379
|
/**
|
|
15376
15380
|
* Reuse a prior approved verification for this country (skips document/field collection; places the order immediately).
|
|
15377
15381
|
*/
|
|
@@ -15423,11 +15427,23 @@ type SubmitWhatsAppNumberKycData = {
|
|
|
15423
15427
|
};
|
|
15424
15428
|
type SubmitWhatsAppNumberKycResponse = ({
|
|
15425
15429
|
status?: 'kyc_submitted' | 'kyc_reused' | 'kyc_already_submitted';
|
|
15430
|
+
/**
|
|
15431
|
+
* The first/primary number, kept at the top level for backward compatibility. See `numbers` for the full set when `quantity` > 1.
|
|
15432
|
+
*/
|
|
15426
15433
|
phoneNumber?: {
|
|
15427
15434
|
id?: string;
|
|
15428
15435
|
status?: string;
|
|
15429
15436
|
country?: string;
|
|
15430
15437
|
};
|
|
15438
|
+
/**
|
|
15439
|
+
* Every number provisioned from this submission. Length equals the requested `quantity` on full success (fewer if some orders failed; best-effort). The first element mirrors `phoneNumber`.
|
|
15440
|
+
*/
|
|
15441
|
+
numbers?: Array<{
|
|
15442
|
+
id?: string;
|
|
15443
|
+
status?: string;
|
|
15444
|
+
phoneNumber?: string;
|
|
15445
|
+
country?: string;
|
|
15446
|
+
}>;
|
|
15431
15447
|
});
|
|
15432
15448
|
type SubmitWhatsAppNumberKycError = (unknown | {
|
|
15433
15449
|
error?: string;
|
|
@@ -15505,7 +15521,7 @@ type CreateWhatsAppNumberKycLinkData = {
|
|
|
15505
15521
|
*/
|
|
15506
15522
|
branding?: {
|
|
15507
15523
|
/**
|
|
15508
|
-
* Your company name
|
|
15524
|
+
* Your company name, shown on the hosted page.
|
|
15509
15525
|
*/
|
|
15510
15526
|
companyName?: string;
|
|
15511
15527
|
/**
|
|
@@ -15513,7 +15529,7 @@ type CreateWhatsAppNumberKycLinkData = {
|
|
|
15513
15529
|
*/
|
|
15514
15530
|
logoUrl?: string;
|
|
15515
15531
|
/**
|
|
15516
|
-
* Hex color (e.g.
|
|
15532
|
+
* Hex color (e.g. #1a73e8) used as a brand accent on the page.
|
|
15517
15533
|
*/
|
|
15518
15534
|
brandColor?: string;
|
|
15519
15535
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -15372,6 +15372,10 @@ type SubmitWhatsAppNumberKycData = {
|
|
|
15372
15372
|
* Idempotency token for this submission attempt. A retry/double-submit with the same token returns the same number; omit and each call creates a new number.
|
|
15373
15373
|
*/
|
|
15374
15374
|
submissionId?: string;
|
|
15375
|
+
/**
|
|
15376
|
+
* Provision several same-country numbers from one submission (1-5). The single verification covers all of them; each number is billed only when it activates. Numbers that fail to order are skipped (best-effort).
|
|
15377
|
+
*/
|
|
15378
|
+
quantity?: number;
|
|
15375
15379
|
/**
|
|
15376
15380
|
* Reuse a prior approved verification for this country (skips document/field collection; places the order immediately).
|
|
15377
15381
|
*/
|
|
@@ -15423,11 +15427,23 @@ type SubmitWhatsAppNumberKycData = {
|
|
|
15423
15427
|
};
|
|
15424
15428
|
type SubmitWhatsAppNumberKycResponse = ({
|
|
15425
15429
|
status?: 'kyc_submitted' | 'kyc_reused' | 'kyc_already_submitted';
|
|
15430
|
+
/**
|
|
15431
|
+
* The first/primary number, kept at the top level for backward compatibility. See `numbers` for the full set when `quantity` > 1.
|
|
15432
|
+
*/
|
|
15426
15433
|
phoneNumber?: {
|
|
15427
15434
|
id?: string;
|
|
15428
15435
|
status?: string;
|
|
15429
15436
|
country?: string;
|
|
15430
15437
|
};
|
|
15438
|
+
/**
|
|
15439
|
+
* Every number provisioned from this submission. Length equals the requested `quantity` on full success (fewer if some orders failed; best-effort). The first element mirrors `phoneNumber`.
|
|
15440
|
+
*/
|
|
15441
|
+
numbers?: Array<{
|
|
15442
|
+
id?: string;
|
|
15443
|
+
status?: string;
|
|
15444
|
+
phoneNumber?: string;
|
|
15445
|
+
country?: string;
|
|
15446
|
+
}>;
|
|
15431
15447
|
});
|
|
15432
15448
|
type SubmitWhatsAppNumberKycError = (unknown | {
|
|
15433
15449
|
error?: string;
|
|
@@ -15505,7 +15521,7 @@ type CreateWhatsAppNumberKycLinkData = {
|
|
|
15505
15521
|
*/
|
|
15506
15522
|
branding?: {
|
|
15507
15523
|
/**
|
|
15508
|
-
* Your company name
|
|
15524
|
+
* Your company name, shown on the hosted page.
|
|
15509
15525
|
*/
|
|
15510
15526
|
companyName?: string;
|
|
15511
15527
|
/**
|
|
@@ -15513,7 +15529,7 @@ type CreateWhatsAppNumberKycLinkData = {
|
|
|
15513
15529
|
*/
|
|
15514
15530
|
logoUrl?: string;
|
|
15515
15531
|
/**
|
|
15516
|
-
* Hex color (e.g.
|
|
15532
|
+
* Hex color (e.g. #1a73e8) used as a brand accent on the page.
|
|
15517
15533
|
*/
|
|
15518
15534
|
brandColor?: string;
|
|
15519
15535
|
};
|
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.282",
|
|
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.282",
|
|
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
|
@@ -15533,6 +15533,10 @@ export type SubmitWhatsAppNumberKycData = {
|
|
|
15533
15533
|
* Idempotency token for this submission attempt. A retry/double-submit with the same token returns the same number; omit and each call creates a new number.
|
|
15534
15534
|
*/
|
|
15535
15535
|
submissionId?: string;
|
|
15536
|
+
/**
|
|
15537
|
+
* Provision several same-country numbers from one submission (1-5). The single verification covers all of them; each number is billed only when it activates. Numbers that fail to order are skipped (best-effort).
|
|
15538
|
+
*/
|
|
15539
|
+
quantity?: number;
|
|
15536
15540
|
/**
|
|
15537
15541
|
* Reuse a prior approved verification for this country (skips document/field collection; places the order immediately).
|
|
15538
15542
|
*/
|
|
@@ -15585,11 +15589,23 @@ export type SubmitWhatsAppNumberKycData = {
|
|
|
15585
15589
|
|
|
15586
15590
|
export type SubmitWhatsAppNumberKycResponse = ({
|
|
15587
15591
|
status?: 'kyc_submitted' | 'kyc_reused' | 'kyc_already_submitted';
|
|
15592
|
+
/**
|
|
15593
|
+
* The first/primary number, kept at the top level for backward compatibility. See `numbers` for the full set when `quantity` > 1.
|
|
15594
|
+
*/
|
|
15588
15595
|
phoneNumber?: {
|
|
15589
15596
|
id?: string;
|
|
15590
15597
|
status?: string;
|
|
15591
15598
|
country?: string;
|
|
15592
15599
|
};
|
|
15600
|
+
/**
|
|
15601
|
+
* Every number provisioned from this submission. Length equals the requested `quantity` on full success (fewer if some orders failed; best-effort). The first element mirrors `phoneNumber`.
|
|
15602
|
+
*/
|
|
15603
|
+
numbers?: Array<{
|
|
15604
|
+
id?: string;
|
|
15605
|
+
status?: string;
|
|
15606
|
+
phoneNumber?: string;
|
|
15607
|
+
country?: string;
|
|
15608
|
+
}>;
|
|
15593
15609
|
});
|
|
15594
15610
|
|
|
15595
15611
|
export type SubmitWhatsAppNumberKycError = (unknown | {
|
|
@@ -15675,7 +15691,7 @@ export type CreateWhatsAppNumberKycLinkData = {
|
|
|
15675
15691
|
*/
|
|
15676
15692
|
branding?: {
|
|
15677
15693
|
/**
|
|
15678
|
-
* Your company name
|
|
15694
|
+
* Your company name, shown on the hosted page.
|
|
15679
15695
|
*/
|
|
15680
15696
|
companyName?: string;
|
|
15681
15697
|
/**
|
|
@@ -15683,7 +15699,7 @@ export type CreateWhatsAppNumberKycLinkData = {
|
|
|
15683
15699
|
*/
|
|
15684
15700
|
logoUrl?: string;
|
|
15685
15701
|
/**
|
|
15686
|
-
* Hex color (e.g.
|
|
15702
|
+
* Hex color (e.g. #1a73e8) used as a brand accent on the page.
|
|
15687
15703
|
*/
|
|
15688
15704
|
brandColor?: string;
|
|
15689
15705
|
};
|