@zernio/node 0.2.453 → 0.2.455
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/README.md +1 -1
- package/dist/index.d.mts +13 -4
- package/dist/index.d.ts +13 -4
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/types.gen.ts +13 -4
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
</p>
|
|
13
13
|
|
|
14
14
|
<p align="center">
|
|
15
|
-
<strong>One API to post everywhere.
|
|
15
|
+
<strong>One API to post everywhere. 16 platforms, zero headaches.</strong>
|
|
16
16
|
</p>
|
|
17
17
|
|
|
18
18
|
The official Node.js SDK for the [Zernio API](https://zernio.com) — schedule and publish social media posts across Instagram, TikTok, YouTube, LinkedIn, X/Twitter, Facebook, Pinterest, Threads, Bluesky, Reddit, Snapchat, Telegram, WhatsApp, and Google Business Profile with a single integration.
|
package/dist/index.d.mts
CHANGED
|
@@ -2504,7 +2504,7 @@ type ConversionEvent = {
|
|
|
2504
2504
|
*/
|
|
2505
2505
|
sourceUrl?: string;
|
|
2506
2506
|
/**
|
|
2507
|
-
* Where the conversion happened. Used by Meta; Google
|
|
2507
|
+
* Where the conversion happened. Used by Meta. Google also requires an event source internally; omitting this field sends OTHER to Google. Send an explicit value for accurate origin reporting.
|
|
2508
2508
|
*/
|
|
2509
2509
|
actionSource?: 'web' | 'app' | 'offline' | 'crm' | 'phone_call' | 'system_generated';
|
|
2510
2510
|
/**
|
|
@@ -2515,7 +2515,7 @@ type ConversionEvent = {
|
|
|
2515
2515
|
};
|
|
2516
2516
|
};
|
|
2517
2517
|
/**
|
|
2518
|
-
* Where the conversion happened. Used by Meta; Google
|
|
2518
|
+
* Where the conversion happened. Used by Meta. Google also requires an event source internally; omitting this field sends OTHER to Google. Send an explicit value for accurate origin reporting.
|
|
2519
2519
|
*/
|
|
2520
2520
|
type actionSource = 'web' | 'app' | 'offline' | 'crm' | 'phone_call' | 'system_generated';
|
|
2521
2521
|
/**
|
|
@@ -19623,7 +19623,8 @@ type ReleasePhoneNumberError = (unknown | {
|
|
|
19623
19623
|
type PurchasePhoneNumberData = {
|
|
19624
19624
|
body: {
|
|
19625
19625
|
/**
|
|
19626
|
-
*
|
|
19626
|
+
* Preferred profile for the number. One number = one profile, so when the requested profile already holds a number the API assigns the next free profile instead (or creates one) and returns the actual assignment in `profileId` on the response.
|
|
19627
|
+
*
|
|
19627
19628
|
*/
|
|
19628
19629
|
profileId: string;
|
|
19629
19630
|
/**
|
|
@@ -19657,7 +19658,7 @@ type PurchasePhoneNumberData = {
|
|
|
19657
19658
|
*/
|
|
19658
19659
|
wantsWhatsapp?: boolean;
|
|
19659
19660
|
/**
|
|
19660
|
-
* Optional idempotency key. Send the same value when retrying a purchase: if a number was already bought under this key, the API returns { status: "already_purchased", numberId, phoneNumber } instead of provisioning a second number. Generate a fresh key for each genuinely new purchase.
|
|
19661
|
+
* Optional idempotency key. Send the same value when retrying a purchase: if a number was already bought under this key, the API returns { status: "already_purchased", numberId, phoneNumber, profileId } instead of provisioning a second number. Generate a fresh key for each genuinely new purchase.
|
|
19661
19662
|
*
|
|
19662
19663
|
*/
|
|
19663
19664
|
purchaseIntentId?: string;
|
|
@@ -19681,11 +19682,19 @@ type PurchasePhoneNumberResponse = (({
|
|
|
19681
19682
|
provisionedAt?: string;
|
|
19682
19683
|
metaPreverifiedId?: string;
|
|
19683
19684
|
metaVerificationStatus?: string;
|
|
19685
|
+
/**
|
|
19686
|
+
* The profile the number was actually assigned to.
|
|
19687
|
+
*/
|
|
19688
|
+
profileId?: string;
|
|
19684
19689
|
};
|
|
19685
19690
|
} | {
|
|
19686
19691
|
status?: 'already_purchased';
|
|
19687
19692
|
numberId?: string;
|
|
19688
19693
|
phoneNumber?: string;
|
|
19694
|
+
/**
|
|
19695
|
+
* The profile the number was actually assigned to.
|
|
19696
|
+
*/
|
|
19697
|
+
profileId?: string;
|
|
19689
19698
|
}) | {
|
|
19690
19699
|
status?: 'kyc_required';
|
|
19691
19700
|
country?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -2504,7 +2504,7 @@ type ConversionEvent = {
|
|
|
2504
2504
|
*/
|
|
2505
2505
|
sourceUrl?: string;
|
|
2506
2506
|
/**
|
|
2507
|
-
* Where the conversion happened. Used by Meta; Google
|
|
2507
|
+
* Where the conversion happened. Used by Meta. Google also requires an event source internally; omitting this field sends OTHER to Google. Send an explicit value for accurate origin reporting.
|
|
2508
2508
|
*/
|
|
2509
2509
|
actionSource?: 'web' | 'app' | 'offline' | 'crm' | 'phone_call' | 'system_generated';
|
|
2510
2510
|
/**
|
|
@@ -2515,7 +2515,7 @@ type ConversionEvent = {
|
|
|
2515
2515
|
};
|
|
2516
2516
|
};
|
|
2517
2517
|
/**
|
|
2518
|
-
* Where the conversion happened. Used by Meta; Google
|
|
2518
|
+
* Where the conversion happened. Used by Meta. Google also requires an event source internally; omitting this field sends OTHER to Google. Send an explicit value for accurate origin reporting.
|
|
2519
2519
|
*/
|
|
2520
2520
|
type actionSource = 'web' | 'app' | 'offline' | 'crm' | 'phone_call' | 'system_generated';
|
|
2521
2521
|
/**
|
|
@@ -19623,7 +19623,8 @@ type ReleasePhoneNumberError = (unknown | {
|
|
|
19623
19623
|
type PurchasePhoneNumberData = {
|
|
19624
19624
|
body: {
|
|
19625
19625
|
/**
|
|
19626
|
-
*
|
|
19626
|
+
* Preferred profile for the number. One number = one profile, so when the requested profile already holds a number the API assigns the next free profile instead (or creates one) and returns the actual assignment in `profileId` on the response.
|
|
19627
|
+
*
|
|
19627
19628
|
*/
|
|
19628
19629
|
profileId: string;
|
|
19629
19630
|
/**
|
|
@@ -19657,7 +19658,7 @@ type PurchasePhoneNumberData = {
|
|
|
19657
19658
|
*/
|
|
19658
19659
|
wantsWhatsapp?: boolean;
|
|
19659
19660
|
/**
|
|
19660
|
-
* Optional idempotency key. Send the same value when retrying a purchase: if a number was already bought under this key, the API returns { status: "already_purchased", numberId, phoneNumber } instead of provisioning a second number. Generate a fresh key for each genuinely new purchase.
|
|
19661
|
+
* Optional idempotency key. Send the same value when retrying a purchase: if a number was already bought under this key, the API returns { status: "already_purchased", numberId, phoneNumber, profileId } instead of provisioning a second number. Generate a fresh key for each genuinely new purchase.
|
|
19661
19662
|
*
|
|
19662
19663
|
*/
|
|
19663
19664
|
purchaseIntentId?: string;
|
|
@@ -19681,11 +19682,19 @@ type PurchasePhoneNumberResponse = (({
|
|
|
19681
19682
|
provisionedAt?: string;
|
|
19682
19683
|
metaPreverifiedId?: string;
|
|
19683
19684
|
metaVerificationStatus?: string;
|
|
19685
|
+
/**
|
|
19686
|
+
* The profile the number was actually assigned to.
|
|
19687
|
+
*/
|
|
19688
|
+
profileId?: string;
|
|
19684
19689
|
};
|
|
19685
19690
|
} | {
|
|
19686
19691
|
status?: 'already_purchased';
|
|
19687
19692
|
numberId?: string;
|
|
19688
19693
|
phoneNumber?: string;
|
|
19694
|
+
/**
|
|
19695
|
+
* The profile the number was actually assigned to.
|
|
19696
|
+
*/
|
|
19697
|
+
profileId?: string;
|
|
19689
19698
|
}) | {
|
|
19690
19699
|
status?: 'kyc_required';
|
|
19691
19700
|
country?: string;
|
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.455",
|
|
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.455",
|
|
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
|
@@ -1369,7 +1369,7 @@ export type ConversionEvent = {
|
|
|
1369
1369
|
*/
|
|
1370
1370
|
sourceUrl?: string;
|
|
1371
1371
|
/**
|
|
1372
|
-
* Where the conversion happened. Used by Meta; Google
|
|
1372
|
+
* Where the conversion happened. Used by Meta. Google also requires an event source internally; omitting this field sends OTHER to Google. Send an explicit value for accurate origin reporting.
|
|
1373
1373
|
*/
|
|
1374
1374
|
actionSource?: 'web' | 'app' | 'offline' | 'crm' | 'phone_call' | 'system_generated';
|
|
1375
1375
|
/**
|
|
@@ -1381,7 +1381,7 @@ export type ConversionEvent = {
|
|
|
1381
1381
|
};
|
|
1382
1382
|
|
|
1383
1383
|
/**
|
|
1384
|
-
* Where the conversion happened. Used by Meta; Google
|
|
1384
|
+
* Where the conversion happened. Used by Meta. Google also requires an event source internally; omitting this field sends OTHER to Google. Send an explicit value for accurate origin reporting.
|
|
1385
1385
|
*/
|
|
1386
1386
|
export type actionSource = 'web' | 'app' | 'offline' | 'crm' | 'phone_call' | 'system_generated';
|
|
1387
1387
|
|
|
@@ -19613,7 +19613,8 @@ export type ReleasePhoneNumberError = (unknown | {
|
|
|
19613
19613
|
export type PurchasePhoneNumberData = {
|
|
19614
19614
|
body: {
|
|
19615
19615
|
/**
|
|
19616
|
-
*
|
|
19616
|
+
* Preferred profile for the number. One number = one profile, so when the requested profile already holds a number the API assigns the next free profile instead (or creates one) and returns the actual assignment in `profileId` on the response.
|
|
19617
|
+
*
|
|
19617
19618
|
*/
|
|
19618
19619
|
profileId: string;
|
|
19619
19620
|
/**
|
|
@@ -19647,7 +19648,7 @@ export type PurchasePhoneNumberData = {
|
|
|
19647
19648
|
*/
|
|
19648
19649
|
wantsWhatsapp?: boolean;
|
|
19649
19650
|
/**
|
|
19650
|
-
* Optional idempotency key. Send the same value when retrying a purchase: if a number was already bought under this key, the API returns { status: "already_purchased", numberId, phoneNumber } instead of provisioning a second number. Generate a fresh key for each genuinely new purchase.
|
|
19651
|
+
* Optional idempotency key. Send the same value when retrying a purchase: if a number was already bought under this key, the API returns { status: "already_purchased", numberId, phoneNumber, profileId } instead of provisioning a second number. Generate a fresh key for each genuinely new purchase.
|
|
19651
19652
|
*
|
|
19652
19653
|
*/
|
|
19653
19654
|
purchaseIntentId?: string;
|
|
@@ -19672,11 +19673,19 @@ export type PurchasePhoneNumberResponse = (({
|
|
|
19672
19673
|
provisionedAt?: string;
|
|
19673
19674
|
metaPreverifiedId?: string;
|
|
19674
19675
|
metaVerificationStatus?: string;
|
|
19676
|
+
/**
|
|
19677
|
+
* The profile the number was actually assigned to.
|
|
19678
|
+
*/
|
|
19679
|
+
profileId?: string;
|
|
19675
19680
|
};
|
|
19676
19681
|
} | {
|
|
19677
19682
|
status?: 'already_purchased';
|
|
19678
19683
|
numberId?: string;
|
|
19679
19684
|
phoneNumber?: string;
|
|
19685
|
+
/**
|
|
19686
|
+
* The profile the number was actually assigned to.
|
|
19687
|
+
*/
|
|
19688
|
+
profileId?: string;
|
|
19680
19689
|
}) | {
|
|
19681
19690
|
status?: 'kyc_required';
|
|
19682
19691
|
country?: string;
|