@zernio/node 0.2.748 → 0.2.750
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 +43 -4
- package/dist/index.d.ts +43 -4
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +9 -5
- package/src/generated/types.gen.ts +43 -4
package/dist/index.d.mts
CHANGED
|
@@ -2951,6 +2951,14 @@ type AnalyticsDeltaEntry = {
|
|
|
2951
2951
|
* Instagram Reels skip rate, 0 to 1
|
|
2952
2952
|
*/
|
|
2953
2953
|
reelsSkipRate: number;
|
|
2954
|
+
/**
|
|
2955
|
+
* TikTok business lane: share of viewers who watched to the end, 0 to 1
|
|
2956
|
+
*/
|
|
2957
|
+
completionRate: number;
|
|
2958
|
+
/**
|
|
2959
|
+
* TikTok business lane: profile views attributed to the post
|
|
2960
|
+
*/
|
|
2961
|
+
profileViews: number;
|
|
2954
2962
|
};
|
|
2955
2963
|
};
|
|
2956
2964
|
type AnalyticsDeltaResponse = {
|
|
@@ -7424,6 +7432,14 @@ type PostAnalytics = {
|
|
|
7424
7432
|
* Instagram Reels only: percentage (0-100) of initial views that skipped the reel within its first 3 seconds, as reported by Meta. Meta labels the metric estimated and in development, so it can move between syncs. 0 for non-Reels media and other platforms. When a post is published to several accounts, the aggregate is weighted by views.
|
|
7425
7433
|
*/
|
|
7426
7434
|
reelsSkipRate?: number;
|
|
7435
|
+
/**
|
|
7436
|
+
* TikTok accounts connected through the TikTok for Business app only: share of viewers who watched the video to the end, 0 to 1, as TikTok reports it (T+24-48h, only for posts active in the last 7 days). 0 for other platforms. When a post is published to several accounts, the aggregate is weighted by views.
|
|
7437
|
+
*/
|
|
7438
|
+
completionRate?: number;
|
|
7439
|
+
/**
|
|
7440
|
+
* TikTok accounts connected through the TikTok for Business app only: profile views from users who reached the profile through this post (T+24-48h). 0 for other platforms.
|
|
7441
|
+
*/
|
|
7442
|
+
profileViews?: number;
|
|
7427
7443
|
/**
|
|
7428
7444
|
* Instagram accounts connected with Facebook Login only: reposts of the media by other users, minus deleted reposts, on feed posts, reels and stories. Meta does not expose this metric for accounts connected with Instagram Login, so those always report 0. 0 for other platforms, including Threads, where reposts are counted in shares instead.
|
|
7429
7445
|
*/
|
|
@@ -12426,9 +12442,9 @@ type GetAnalyticsData = {
|
|
|
12426
12442
|
*/
|
|
12427
12443
|
profileId?: string;
|
|
12428
12444
|
/**
|
|
12429
|
-
* Sort by date, engagement, or a specific metric.
|
|
12445
|
+
* Sort by date, engagement, or a specific metric. Platform-specific metrics (follows, reposts, reels_skip_rate, ig_reels_*, completion_rate, profile_views) sort a null value as 0.
|
|
12430
12446
|
*/
|
|
12431
|
-
sortBy?: 'date' | 'engagement' | 'impressions' | 'reach' | 'likes' | 'comments' | 'shares' | 'saves' | 'clicks' | 'views' | 'follows' | 'ig_reels_avg_watch_time' | 'ig_reels_video_view_total_time' | 'reposts' | 'reels_skip_rate';
|
|
12447
|
+
sortBy?: 'date' | 'engagement' | 'impressions' | 'reach' | 'likes' | 'comments' | 'shares' | 'saves' | 'clicks' | 'views' | 'follows' | 'ig_reels_avg_watch_time' | 'ig_reels_video_view_total_time' | 'reposts' | 'reels_skip_rate' | 'completion_rate' | 'profile_views';
|
|
12432
12448
|
/**
|
|
12433
12449
|
* Filter by post source: late (posted via Zernio API), external (synced from platform), all (default)
|
|
12434
12450
|
*/
|
|
@@ -26532,6 +26548,11 @@ type PurchasePhoneNumberData = {
|
|
|
26532
26548
|
*
|
|
26533
26549
|
*/
|
|
26534
26550
|
areaCode?: string;
|
|
26551
|
+
/**
|
|
26552
|
+
* One exact number to buy, in E.164, taken from GET /v1/phone-numbers/available. Hard constraint: when it is no longer available (bought by someone else, or WhatsApp's buy-time check rejects it) the purchase fails with 409 code PHONE_NUMBER_UNAVAILABLE instead of assigning another number; search again and pick another. Only for countries and types that activate instantly: a regulated one (202 kyc_required) returns 400 when phoneNumber is set.
|
|
26553
|
+
*
|
|
26554
|
+
*/
|
|
26555
|
+
phoneNumber?: string;
|
|
26535
26556
|
/**
|
|
26536
26557
|
* A phone number is the unit; WhatsApp is one optional feature. Pass false to buy a STANDALONE number (Calls/SMS only): provisioning skips the Meta pre-verify/OTP steps and the number activates immediately. Omitted defaults to the WhatsApp provisioning path. WhatsApp can be connected to a standalone number later from the connect flow.
|
|
26537
26558
|
*
|
|
@@ -26598,7 +26619,7 @@ type PurchasePhoneNumberError = (unknown | {
|
|
|
26598
26619
|
error?: string;
|
|
26599
26620
|
} | {
|
|
26600
26621
|
error?: string;
|
|
26601
|
-
code?: 'PURCHASE_VELOCITY' | 'AREA_CODE_UNAVAILABLE';
|
|
26622
|
+
code?: 'PURCHASE_VELOCITY' | 'AREA_CODE_UNAVAILABLE' | 'PHONE_NUMBER_UNAVAILABLE';
|
|
26602
26623
|
});
|
|
26603
26624
|
type ListPhoneNumberCountriesResponse = ({
|
|
26604
26625
|
countries?: Array<{
|
|
@@ -26706,11 +26727,22 @@ type SearchAvailablePhoneNumbersResponse = ({
|
|
|
26706
26727
|
*/
|
|
26707
26728
|
requireSms?: boolean;
|
|
26708
26729
|
numbers?: Array<{
|
|
26730
|
+
/**
|
|
26731
|
+
* E.164. Pass it as `phoneNumber` on POST /v1/phone-numbers/purchase to buy this exact number.
|
|
26732
|
+
*/
|
|
26709
26733
|
phoneNumber?: string;
|
|
26710
26734
|
/**
|
|
26711
26735
|
* Provider capability list for this number (e.g. voice, sms, mms).
|
|
26712
26736
|
*/
|
|
26713
26737
|
features?: Array<(string)>;
|
|
26738
|
+
/**
|
|
26739
|
+
* Town or rate center the number belongs to, as the carrier names it (e.g. WACO).
|
|
26740
|
+
*/
|
|
26741
|
+
locality?: string;
|
|
26742
|
+
/**
|
|
26743
|
+
* true when the carrier added this number because too few matched your filters, so it may be outside the requested prefix or locality.
|
|
26744
|
+
*/
|
|
26745
|
+
bestEffort?: boolean;
|
|
26714
26746
|
}>;
|
|
26715
26747
|
});
|
|
26716
26748
|
type SearchAvailablePhoneNumbersError = (unknown | {
|
|
@@ -26889,6 +26921,11 @@ type PurchaseWhatsAppPhoneNumberData = {
|
|
|
26889
26921
|
*
|
|
26890
26922
|
*/
|
|
26891
26923
|
country?: string;
|
|
26924
|
+
/**
|
|
26925
|
+
* One exact number to buy, in E.164, taken from GET /v1/phone-numbers/available. Fails with 409 code PHONE_NUMBER_UNAVAILABLE when it is no longer available.
|
|
26926
|
+
*
|
|
26927
|
+
*/
|
|
26928
|
+
phoneNumber?: string;
|
|
26892
26929
|
/**
|
|
26893
26930
|
* 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.
|
|
26894
26931
|
*
|
|
@@ -26932,7 +26969,7 @@ type PurchaseWhatsAppPhoneNumberError = (unknown | {
|
|
|
26932
26969
|
error?: string;
|
|
26933
26970
|
} | {
|
|
26934
26971
|
error?: string;
|
|
26935
|
-
code?: 'PURCHASE_VELOCITY' | 'AREA_CODE_UNAVAILABLE';
|
|
26972
|
+
code?: 'PURCHASE_VELOCITY' | 'AREA_CODE_UNAVAILABLE' | 'PHONE_NUMBER_UNAVAILABLE';
|
|
26936
26973
|
});
|
|
26937
26974
|
type ListWhatsAppNumberCountriesResponse = ({
|
|
26938
26975
|
countries?: Array<{
|
|
@@ -26979,6 +27016,8 @@ type SearchAvailableWhatsAppNumbersResponse = ({
|
|
|
26979
27016
|
numberType?: string;
|
|
26980
27017
|
numbers?: Array<{
|
|
26981
27018
|
phoneNumber?: string;
|
|
27019
|
+
locality?: string;
|
|
27020
|
+
bestEffort?: boolean;
|
|
26982
27021
|
}>;
|
|
26983
27022
|
});
|
|
26984
27023
|
type SearchAvailableWhatsAppNumbersError = (unknown | {
|
package/dist/index.d.ts
CHANGED
|
@@ -2951,6 +2951,14 @@ type AnalyticsDeltaEntry = {
|
|
|
2951
2951
|
* Instagram Reels skip rate, 0 to 1
|
|
2952
2952
|
*/
|
|
2953
2953
|
reelsSkipRate: number;
|
|
2954
|
+
/**
|
|
2955
|
+
* TikTok business lane: share of viewers who watched to the end, 0 to 1
|
|
2956
|
+
*/
|
|
2957
|
+
completionRate: number;
|
|
2958
|
+
/**
|
|
2959
|
+
* TikTok business lane: profile views attributed to the post
|
|
2960
|
+
*/
|
|
2961
|
+
profileViews: number;
|
|
2954
2962
|
};
|
|
2955
2963
|
};
|
|
2956
2964
|
type AnalyticsDeltaResponse = {
|
|
@@ -7424,6 +7432,14 @@ type PostAnalytics = {
|
|
|
7424
7432
|
* Instagram Reels only: percentage (0-100) of initial views that skipped the reel within its first 3 seconds, as reported by Meta. Meta labels the metric estimated and in development, so it can move between syncs. 0 for non-Reels media and other platforms. When a post is published to several accounts, the aggregate is weighted by views.
|
|
7425
7433
|
*/
|
|
7426
7434
|
reelsSkipRate?: number;
|
|
7435
|
+
/**
|
|
7436
|
+
* TikTok accounts connected through the TikTok for Business app only: share of viewers who watched the video to the end, 0 to 1, as TikTok reports it (T+24-48h, only for posts active in the last 7 days). 0 for other platforms. When a post is published to several accounts, the aggregate is weighted by views.
|
|
7437
|
+
*/
|
|
7438
|
+
completionRate?: number;
|
|
7439
|
+
/**
|
|
7440
|
+
* TikTok accounts connected through the TikTok for Business app only: profile views from users who reached the profile through this post (T+24-48h). 0 for other platforms.
|
|
7441
|
+
*/
|
|
7442
|
+
profileViews?: number;
|
|
7427
7443
|
/**
|
|
7428
7444
|
* Instagram accounts connected with Facebook Login only: reposts of the media by other users, minus deleted reposts, on feed posts, reels and stories. Meta does not expose this metric for accounts connected with Instagram Login, so those always report 0. 0 for other platforms, including Threads, where reposts are counted in shares instead.
|
|
7429
7445
|
*/
|
|
@@ -12426,9 +12442,9 @@ type GetAnalyticsData = {
|
|
|
12426
12442
|
*/
|
|
12427
12443
|
profileId?: string;
|
|
12428
12444
|
/**
|
|
12429
|
-
* Sort by date, engagement, or a specific metric.
|
|
12445
|
+
* Sort by date, engagement, or a specific metric. Platform-specific metrics (follows, reposts, reels_skip_rate, ig_reels_*, completion_rate, profile_views) sort a null value as 0.
|
|
12430
12446
|
*/
|
|
12431
|
-
sortBy?: 'date' | 'engagement' | 'impressions' | 'reach' | 'likes' | 'comments' | 'shares' | 'saves' | 'clicks' | 'views' | 'follows' | 'ig_reels_avg_watch_time' | 'ig_reels_video_view_total_time' | 'reposts' | 'reels_skip_rate';
|
|
12447
|
+
sortBy?: 'date' | 'engagement' | 'impressions' | 'reach' | 'likes' | 'comments' | 'shares' | 'saves' | 'clicks' | 'views' | 'follows' | 'ig_reels_avg_watch_time' | 'ig_reels_video_view_total_time' | 'reposts' | 'reels_skip_rate' | 'completion_rate' | 'profile_views';
|
|
12432
12448
|
/**
|
|
12433
12449
|
* Filter by post source: late (posted via Zernio API), external (synced from platform), all (default)
|
|
12434
12450
|
*/
|
|
@@ -26532,6 +26548,11 @@ type PurchasePhoneNumberData = {
|
|
|
26532
26548
|
*
|
|
26533
26549
|
*/
|
|
26534
26550
|
areaCode?: string;
|
|
26551
|
+
/**
|
|
26552
|
+
* One exact number to buy, in E.164, taken from GET /v1/phone-numbers/available. Hard constraint: when it is no longer available (bought by someone else, or WhatsApp's buy-time check rejects it) the purchase fails with 409 code PHONE_NUMBER_UNAVAILABLE instead of assigning another number; search again and pick another. Only for countries and types that activate instantly: a regulated one (202 kyc_required) returns 400 when phoneNumber is set.
|
|
26553
|
+
*
|
|
26554
|
+
*/
|
|
26555
|
+
phoneNumber?: string;
|
|
26535
26556
|
/**
|
|
26536
26557
|
* A phone number is the unit; WhatsApp is one optional feature. Pass false to buy a STANDALONE number (Calls/SMS only): provisioning skips the Meta pre-verify/OTP steps and the number activates immediately. Omitted defaults to the WhatsApp provisioning path. WhatsApp can be connected to a standalone number later from the connect flow.
|
|
26537
26558
|
*
|
|
@@ -26598,7 +26619,7 @@ type PurchasePhoneNumberError = (unknown | {
|
|
|
26598
26619
|
error?: string;
|
|
26599
26620
|
} | {
|
|
26600
26621
|
error?: string;
|
|
26601
|
-
code?: 'PURCHASE_VELOCITY' | 'AREA_CODE_UNAVAILABLE';
|
|
26622
|
+
code?: 'PURCHASE_VELOCITY' | 'AREA_CODE_UNAVAILABLE' | 'PHONE_NUMBER_UNAVAILABLE';
|
|
26602
26623
|
});
|
|
26603
26624
|
type ListPhoneNumberCountriesResponse = ({
|
|
26604
26625
|
countries?: Array<{
|
|
@@ -26706,11 +26727,22 @@ type SearchAvailablePhoneNumbersResponse = ({
|
|
|
26706
26727
|
*/
|
|
26707
26728
|
requireSms?: boolean;
|
|
26708
26729
|
numbers?: Array<{
|
|
26730
|
+
/**
|
|
26731
|
+
* E.164. Pass it as `phoneNumber` on POST /v1/phone-numbers/purchase to buy this exact number.
|
|
26732
|
+
*/
|
|
26709
26733
|
phoneNumber?: string;
|
|
26710
26734
|
/**
|
|
26711
26735
|
* Provider capability list for this number (e.g. voice, sms, mms).
|
|
26712
26736
|
*/
|
|
26713
26737
|
features?: Array<(string)>;
|
|
26738
|
+
/**
|
|
26739
|
+
* Town or rate center the number belongs to, as the carrier names it (e.g. WACO).
|
|
26740
|
+
*/
|
|
26741
|
+
locality?: string;
|
|
26742
|
+
/**
|
|
26743
|
+
* true when the carrier added this number because too few matched your filters, so it may be outside the requested prefix or locality.
|
|
26744
|
+
*/
|
|
26745
|
+
bestEffort?: boolean;
|
|
26714
26746
|
}>;
|
|
26715
26747
|
});
|
|
26716
26748
|
type SearchAvailablePhoneNumbersError = (unknown | {
|
|
@@ -26889,6 +26921,11 @@ type PurchaseWhatsAppPhoneNumberData = {
|
|
|
26889
26921
|
*
|
|
26890
26922
|
*/
|
|
26891
26923
|
country?: string;
|
|
26924
|
+
/**
|
|
26925
|
+
* One exact number to buy, in E.164, taken from GET /v1/phone-numbers/available. Fails with 409 code PHONE_NUMBER_UNAVAILABLE when it is no longer available.
|
|
26926
|
+
*
|
|
26927
|
+
*/
|
|
26928
|
+
phoneNumber?: string;
|
|
26892
26929
|
/**
|
|
26893
26930
|
* 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.
|
|
26894
26931
|
*
|
|
@@ -26932,7 +26969,7 @@ type PurchaseWhatsAppPhoneNumberError = (unknown | {
|
|
|
26932
26969
|
error?: string;
|
|
26933
26970
|
} | {
|
|
26934
26971
|
error?: string;
|
|
26935
|
-
code?: 'PURCHASE_VELOCITY' | 'AREA_CODE_UNAVAILABLE';
|
|
26972
|
+
code?: 'PURCHASE_VELOCITY' | 'AREA_CODE_UNAVAILABLE' | 'PHONE_NUMBER_UNAVAILABLE';
|
|
26936
26973
|
});
|
|
26937
26974
|
type ListWhatsAppNumberCountriesResponse = ({
|
|
26938
26975
|
countries?: Array<{
|
|
@@ -26979,6 +27016,8 @@ type SearchAvailableWhatsAppNumbersResponse = ({
|
|
|
26979
27016
|
numberType?: string;
|
|
26980
27017
|
numbers?: Array<{
|
|
26981
27018
|
phoneNumber?: string;
|
|
27019
|
+
locality?: string;
|
|
27020
|
+
bestEffort?: boolean;
|
|
26982
27021
|
}>;
|
|
26983
27022
|
});
|
|
26984
27023
|
type SearchAvailableWhatsAppNumbersError = (unknown | {
|
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.750",
|
|
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.750",
|
|
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
|
@@ -5797,8 +5797,9 @@ export const releasePhoneNumber = <ThrowOnError extends boolean = false>(options
|
|
|
5797
5797
|
|
|
5798
5798
|
/**
|
|
5799
5799
|
* Purchase phone number
|
|
5800
|
-
* Payment-first:
|
|
5801
|
-
*
|
|
5800
|
+
* Payment-first: the system provisions a number and auto-assigns it, unless you pass
|
|
5801
|
+
* `phoneNumber` to buy one exact number from `GET /v1/phone-numbers/available`. With
|
|
5802
|
+
* usage-based billing active and a payment method on file, the
|
|
5802
5803
|
* number provisions inline and bills per month on your usage-based invoice (there is
|
|
5803
5804
|
* no checkout redirect). No payment method on file returns `402 PAYMENT_REQUIRED`;
|
|
5804
5805
|
* a regulated country returns `202` with `status: "kyc_required"` and a `kycUrl`.
|
|
@@ -5840,7 +5841,9 @@ export const listPhoneNumberCountries = <ThrowOnError extends boolean = false>(o
|
|
|
5840
5841
|
* country (default US). Optional filters narrow the results. The country
|
|
5841
5842
|
* must be offerable (see GET /v1/phone-numbers/countries). Voice
|
|
5842
5843
|
* capability is always required; pass `sms=true` to only see numbers that
|
|
5843
|
-
* can also text (SMS support is per-number, not per-country).
|
|
5844
|
+
* can also text (SMS support is per-number, not per-country). Numbers a
|
|
5845
|
+
* purchase would refuse are left out, and any result's `phoneNumber` can
|
|
5846
|
+
* be bought exactly by passing it to POST /v1/phone-numbers/purchase.
|
|
5844
5847
|
*
|
|
5845
5848
|
*/
|
|
5846
5849
|
export const searchAvailablePhoneNumbers = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<SearchAvailablePhoneNumbersData, ThrowOnError>) => {
|
|
@@ -5895,8 +5898,9 @@ export const getWhatsAppPhoneNumbers = <ThrowOnError extends boolean = false>(op
|
|
|
5895
5898
|
* Deprecated alias of `/v1/phone-numbers/purchase`; same contract. New
|
|
5896
5899
|
* integrations should use that path.
|
|
5897
5900
|
*
|
|
5898
|
-
* Payment-first:
|
|
5899
|
-
*
|
|
5901
|
+
* Payment-first: the system provisions a number and auto-assigns it, unless you pass
|
|
5902
|
+
* `phoneNumber` to buy one exact number from `GET /v1/phone-numbers/available`. With
|
|
5903
|
+
* usage-based billing active and a payment method on file, the
|
|
5900
5904
|
* number provisions inline and bills per month on your usage-based invoice (there is
|
|
5901
5905
|
* no checkout redirect). No payment method on file returns `402 PAYMENT_REQUIRED`;
|
|
5902
5906
|
* a regulated country returns `202` with `status: "kyc_required"` and a `kycUrl`.
|
|
@@ -1407,6 +1407,14 @@ export type AnalyticsDeltaEntry = {
|
|
|
1407
1407
|
* Instagram Reels skip rate, 0 to 1
|
|
1408
1408
|
*/
|
|
1409
1409
|
reelsSkipRate: number;
|
|
1410
|
+
/**
|
|
1411
|
+
* TikTok business lane: share of viewers who watched to the end, 0 to 1
|
|
1412
|
+
*/
|
|
1413
|
+
completionRate: number;
|
|
1414
|
+
/**
|
|
1415
|
+
* TikTok business lane: profile views attributed to the post
|
|
1416
|
+
*/
|
|
1417
|
+
profileViews: number;
|
|
1410
1418
|
};
|
|
1411
1419
|
};
|
|
1412
1420
|
|
|
@@ -6082,6 +6090,14 @@ export type PostAnalytics = {
|
|
|
6082
6090
|
* Instagram Reels only: percentage (0-100) of initial views that skipped the reel within its first 3 seconds, as reported by Meta. Meta labels the metric estimated and in development, so it can move between syncs. 0 for non-Reels media and other platforms. When a post is published to several accounts, the aggregate is weighted by views.
|
|
6083
6091
|
*/
|
|
6084
6092
|
reelsSkipRate?: number;
|
|
6093
|
+
/**
|
|
6094
|
+
* TikTok accounts connected through the TikTok for Business app only: share of viewers who watched the video to the end, 0 to 1, as TikTok reports it (T+24-48h, only for posts active in the last 7 days). 0 for other platforms. When a post is published to several accounts, the aggregate is weighted by views.
|
|
6095
|
+
*/
|
|
6096
|
+
completionRate?: number;
|
|
6097
|
+
/**
|
|
6098
|
+
* TikTok accounts connected through the TikTok for Business app only: profile views from users who reached the profile through this post (T+24-48h). 0 for other platforms.
|
|
6099
|
+
*/
|
|
6100
|
+
profileViews?: number;
|
|
6085
6101
|
/**
|
|
6086
6102
|
* Instagram accounts connected with Facebook Login only: reposts of the media by other users, minus deleted reposts, on feed posts, reels and stories. Meta does not expose this metric for accounts connected with Instagram Login, so those always report 0. 0 for other platforms, including Threads, where reposts are counted in shares instead.
|
|
6087
6103
|
*/
|
|
@@ -11298,9 +11314,9 @@ export type GetAnalyticsData = {
|
|
|
11298
11314
|
*/
|
|
11299
11315
|
profileId?: string;
|
|
11300
11316
|
/**
|
|
11301
|
-
* Sort by date, engagement, or a specific metric.
|
|
11317
|
+
* Sort by date, engagement, or a specific metric. Platform-specific metrics (follows, reposts, reels_skip_rate, ig_reels_*, completion_rate, profile_views) sort a null value as 0.
|
|
11302
11318
|
*/
|
|
11303
|
-
sortBy?: 'date' | 'engagement' | 'impressions' | 'reach' | 'likes' | 'comments' | 'shares' | 'saves' | 'clicks' | 'views' | 'follows' | 'ig_reels_avg_watch_time' | 'ig_reels_video_view_total_time' | 'reposts' | 'reels_skip_rate';
|
|
11319
|
+
sortBy?: 'date' | 'engagement' | 'impressions' | 'reach' | 'likes' | 'comments' | 'shares' | 'saves' | 'clicks' | 'views' | 'follows' | 'ig_reels_avg_watch_time' | 'ig_reels_video_view_total_time' | 'reposts' | 'reels_skip_rate' | 'completion_rate' | 'profile_views';
|
|
11304
11320
|
/**
|
|
11305
11321
|
* Filter by post source: late (posted via Zernio API), external (synced from platform), all (default)
|
|
11306
11322
|
*/
|
|
@@ -26388,6 +26404,11 @@ export type PurchasePhoneNumberData = {
|
|
|
26388
26404
|
*
|
|
26389
26405
|
*/
|
|
26390
26406
|
areaCode?: string;
|
|
26407
|
+
/**
|
|
26408
|
+
* One exact number to buy, in E.164, taken from GET /v1/phone-numbers/available. Hard constraint: when it is no longer available (bought by someone else, or WhatsApp's buy-time check rejects it) the purchase fails with 409 code PHONE_NUMBER_UNAVAILABLE instead of assigning another number; search again and pick another. Only for countries and types that activate instantly: a regulated one (202 kyc_required) returns 400 when phoneNumber is set.
|
|
26409
|
+
*
|
|
26410
|
+
*/
|
|
26411
|
+
phoneNumber?: string;
|
|
26391
26412
|
/**
|
|
26392
26413
|
* A phone number is the unit; WhatsApp is one optional feature. Pass false to buy a STANDALONE number (Calls/SMS only): provisioning skips the Meta pre-verify/OTP steps and the number activates immediately. Omitted defaults to the WhatsApp provisioning path. WhatsApp can be connected to a standalone number later from the connect flow.
|
|
26393
26414
|
*
|
|
@@ -26456,7 +26477,7 @@ export type PurchasePhoneNumberError = (unknown | {
|
|
|
26456
26477
|
error?: string;
|
|
26457
26478
|
} | {
|
|
26458
26479
|
error?: string;
|
|
26459
|
-
code?: 'PURCHASE_VELOCITY' | 'AREA_CODE_UNAVAILABLE';
|
|
26480
|
+
code?: 'PURCHASE_VELOCITY' | 'AREA_CODE_UNAVAILABLE' | 'PHONE_NUMBER_UNAVAILABLE';
|
|
26460
26481
|
});
|
|
26461
26482
|
|
|
26462
26483
|
export type ListPhoneNumberCountriesResponse = ({
|
|
@@ -26568,11 +26589,22 @@ export type SearchAvailablePhoneNumbersResponse = ({
|
|
|
26568
26589
|
*/
|
|
26569
26590
|
requireSms?: boolean;
|
|
26570
26591
|
numbers?: Array<{
|
|
26592
|
+
/**
|
|
26593
|
+
* E.164. Pass it as `phoneNumber` on POST /v1/phone-numbers/purchase to buy this exact number.
|
|
26594
|
+
*/
|
|
26571
26595
|
phoneNumber?: string;
|
|
26572
26596
|
/**
|
|
26573
26597
|
* Provider capability list for this number (e.g. voice, sms, mms).
|
|
26574
26598
|
*/
|
|
26575
26599
|
features?: Array<(string)>;
|
|
26600
|
+
/**
|
|
26601
|
+
* Town or rate center the number belongs to, as the carrier names it (e.g. WACO).
|
|
26602
|
+
*/
|
|
26603
|
+
locality?: string;
|
|
26604
|
+
/**
|
|
26605
|
+
* true when the carrier added this number because too few matched your filters, so it may be outside the requested prefix or locality.
|
|
26606
|
+
*/
|
|
26607
|
+
bestEffort?: boolean;
|
|
26576
26608
|
}>;
|
|
26577
26609
|
});
|
|
26578
26610
|
|
|
@@ -26759,6 +26791,11 @@ export type PurchaseWhatsAppPhoneNumberData = {
|
|
|
26759
26791
|
*
|
|
26760
26792
|
*/
|
|
26761
26793
|
country?: string;
|
|
26794
|
+
/**
|
|
26795
|
+
* One exact number to buy, in E.164, taken from GET /v1/phone-numbers/available. Fails with 409 code PHONE_NUMBER_UNAVAILABLE when it is no longer available.
|
|
26796
|
+
*
|
|
26797
|
+
*/
|
|
26798
|
+
phoneNumber?: string;
|
|
26762
26799
|
/**
|
|
26763
26800
|
* 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.
|
|
26764
26801
|
*
|
|
@@ -26804,7 +26841,7 @@ export type PurchaseWhatsAppPhoneNumberError = (unknown | {
|
|
|
26804
26841
|
error?: string;
|
|
26805
26842
|
} | {
|
|
26806
26843
|
error?: string;
|
|
26807
|
-
code?: 'PURCHASE_VELOCITY' | 'AREA_CODE_UNAVAILABLE';
|
|
26844
|
+
code?: 'PURCHASE_VELOCITY' | 'AREA_CODE_UNAVAILABLE' | 'PHONE_NUMBER_UNAVAILABLE';
|
|
26808
26845
|
});
|
|
26809
26846
|
|
|
26810
26847
|
export type ListWhatsAppNumberCountriesResponse = ({
|
|
@@ -26855,6 +26892,8 @@ export type SearchAvailableWhatsAppNumbersResponse = ({
|
|
|
26855
26892
|
numberType?: string;
|
|
26856
26893
|
numbers?: Array<{
|
|
26857
26894
|
phoneNumber?: string;
|
|
26895
|
+
locality?: string;
|
|
26896
|
+
bestEffort?: boolean;
|
|
26858
26897
|
}>;
|
|
26859
26898
|
});
|
|
26860
26899
|
|