@zernio/node 0.2.920 → 0.2.922
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 +194 -108
- package/dist/index.d.ts +194 -108
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/types.gen.ts +196 -107
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.922",
|
|
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.922",
|
|
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
|
@@ -1620,10 +1620,13 @@ export type AnalyticsListResponse = {
|
|
|
1620
1620
|
*/
|
|
1621
1621
|
isAd?: boolean;
|
|
1622
1622
|
profileId?: (string) | null;
|
|
1623
|
+
/**
|
|
1624
|
+
* Cover image URL. Facebook and Instagram covers whose Meta CDN link expired are re-read from Meta and served from Zernio storage, so that URL does not expire and can be cached.
|
|
1625
|
+
*/
|
|
1623
1626
|
thumbnailUrl?: string;
|
|
1624
1627
|
mediaType?: 'image' | 'video' | 'gif' | 'document' | 'carousel' | 'text';
|
|
1625
1628
|
/**
|
|
1626
|
-
* All media items for this post. Carousel posts contain one entry per slide.
|
|
1629
|
+
* All media items for this post. Carousel posts contain one entry per slide. Facebook and Instagram images and video covers whose Meta CDN links expired are re-read and served from Zernio storage (non-expiring). Facebook and Instagram video file URLs, and LinkedIn media URLs, stay the platform's signed links and are refreshed on read once they lapse.
|
|
1627
1630
|
*/
|
|
1628
1631
|
mediaItems?: Array<{
|
|
1629
1632
|
type?: 'image' | 'video';
|
|
@@ -1711,10 +1714,13 @@ export type AnalyticsSinglePostResponse = {
|
|
|
1711
1714
|
* Human-readable status message for pending, partial, or failed states
|
|
1712
1715
|
*/
|
|
1713
1716
|
message?: (string) | null;
|
|
1717
|
+
/**
|
|
1718
|
+
* Cover image URL. Facebook and Instagram covers whose Meta CDN link expired are re-read from Meta and served from Zernio storage, so that URL does not expire and can be cached.
|
|
1719
|
+
*/
|
|
1714
1720
|
thumbnailUrl?: (string) | null;
|
|
1715
1721
|
mediaType?: ('image' | 'video' | 'carousel' | 'text') | null;
|
|
1716
1722
|
/**
|
|
1717
|
-
* All media items for this post. Carousel posts contain one entry per slide.
|
|
1723
|
+
* All media items for this post. Carousel posts contain one entry per slide. Facebook and Instagram images and video covers whose Meta CDN links expired are re-read and served from Zernio storage (non-expiring). Facebook and Instagram video file URLs, and LinkedIn media URLs, stay the platform's signed links and are refreshed on read once they lapse.
|
|
1718
1724
|
*/
|
|
1719
1725
|
mediaItems?: Array<{
|
|
1720
1726
|
type?: 'image' | 'video';
|
|
@@ -6578,6 +6584,181 @@ export type MoneyAmount = {
|
|
|
6578
6584
|
currencyCode: string;
|
|
6579
6585
|
};
|
|
6580
6586
|
|
|
6587
|
+
/**
|
|
6588
|
+
* A number you bought or ported. Null fields are omitted, except `socialAccountId` and `ownerAccountId`. Credentials stored for the number (such as the SIP digest password) are never returned; `sipAuthUsername` is the only SIP credential field exposed.
|
|
6589
|
+
*/
|
|
6590
|
+
export type OwnedPhoneNumber = {
|
|
6591
|
+
_id?: string;
|
|
6592
|
+
phoneNumber?: string;
|
|
6593
|
+
country?: string;
|
|
6594
|
+
/**
|
|
6595
|
+
* For example local, mobile, national or toll_free.
|
|
6596
|
+
*/
|
|
6597
|
+
numberType?: string;
|
|
6598
|
+
status?: 'pending_payment' | 'pending_regulatory' | 'regulatory_declined' | 'provisioning' | 'verifying' | 'active' | 'suspended' | 'releasing' | 'released';
|
|
6599
|
+
/**
|
|
6600
|
+
* The profile the number belongs to: `{ _id, name }` when the profile exists, otherwise its id.
|
|
6601
|
+
*/
|
|
6602
|
+
profileId?: ({
|
|
6603
|
+
_id?: string;
|
|
6604
|
+
name?: (string) | null;
|
|
6605
|
+
} | string);
|
|
6606
|
+
createdAt?: string;
|
|
6607
|
+
updatedAt?: string;
|
|
6608
|
+
/**
|
|
6609
|
+
* Present once the number order has been placed (i.e. the requirement group was approved). Absent while still in identity review.
|
|
6610
|
+
*/
|
|
6611
|
+
telnyxOrderId?: (string) | null;
|
|
6612
|
+
/**
|
|
6613
|
+
* Present on a pre-order: the carrier request placed for a number with no stock yet.
|
|
6614
|
+
*/
|
|
6615
|
+
telnyxAdvancedOrderId?: string;
|
|
6616
|
+
/**
|
|
6617
|
+
* For regulated numbers, who it's registered for (company or person), set from the submitted KYC.
|
|
6618
|
+
*/
|
|
6619
|
+
registrantName?: (string) | null;
|
|
6620
|
+
endUserFirstName?: (string) | null;
|
|
6621
|
+
endUserLastName?: (string) | null;
|
|
6622
|
+
/**
|
|
6623
|
+
* Reviewer rejection reason when status is regulatory_declined.
|
|
6624
|
+
*/
|
|
6625
|
+
regulatoryDeclineReason?: (string) | null;
|
|
6626
|
+
/**
|
|
6627
|
+
* The latest reviewer comment on a regulated number still in review.
|
|
6628
|
+
*/
|
|
6629
|
+
regulatoryReviewComment?: string;
|
|
6630
|
+
/**
|
|
6631
|
+
* `action_required` when the reviewer is waiting on you.
|
|
6632
|
+
*/
|
|
6633
|
+
regulatoryInfoStatus?: string;
|
|
6634
|
+
/**
|
|
6635
|
+
* For regulated (Tier 3/4) numbers with an Onfido ID-verification step: the link to forward to the end user. Set once the order is placed; null otherwise. Poll this field after submitting KYC.
|
|
6636
|
+
*/
|
|
6637
|
+
onfidoVerificationUrl?: (string) | null;
|
|
6638
|
+
/**
|
|
6639
|
+
* Stable redirect to the live Onfido session. Prefer it over `onfidoVerificationUrl`, since it always resolves to a fresh session.
|
|
6640
|
+
*/
|
|
6641
|
+
verifyUrl?: (string) | null;
|
|
6642
|
+
/**
|
|
6643
|
+
* True once the verify link has been opened at least once.
|
|
6644
|
+
*/
|
|
6645
|
+
onfidoOpened?: boolean;
|
|
6646
|
+
metaPreverifiedId?: string;
|
|
6647
|
+
metaVerificationStatus?: 'pending' | 'code_requested' | 'verified' | 'expired';
|
|
6648
|
+
metaVerifiedAt?: string;
|
|
6649
|
+
metaVerificationExpiresAt?: string;
|
|
6650
|
+
/**
|
|
6651
|
+
* The WhatsApp account the number is linked to; null when WhatsApp is not connected.
|
|
6652
|
+
*/
|
|
6653
|
+
socialAccountId?: (string) | null;
|
|
6654
|
+
/**
|
|
6655
|
+
* The telephony account that owns Calls and SMS on the number.
|
|
6656
|
+
*/
|
|
6657
|
+
ownerAccountId?: (string) | null;
|
|
6658
|
+
/**
|
|
6659
|
+
* SIP trunk the number is attached to; null when not trunked. While attached, enabling Calls or WhatsApp calling, requesting WhatsApp verification, and releasing the number all return 409.
|
|
6660
|
+
*/
|
|
6661
|
+
sipTrunkId?: (string) | null;
|
|
6662
|
+
/**
|
|
6663
|
+
* False for a standalone phone bought for Calls or SMS only.
|
|
6664
|
+
*/
|
|
6665
|
+
whatsAppRequested?: boolean;
|
|
6666
|
+
smsRequested?: boolean;
|
|
6667
|
+
provisionedAt?: string;
|
|
6668
|
+
activatedAt?: string;
|
|
6669
|
+
connectedAt?: string;
|
|
6670
|
+
suspendedAt?: string;
|
|
6671
|
+
releasedAt?: string;
|
|
6672
|
+
/**
|
|
6673
|
+
* Meta's Embedded Signup error from the last failed connect attempt (raw text, often localized).
|
|
6674
|
+
*/
|
|
6675
|
+
signupError?: string;
|
|
6676
|
+
signupErrorAt?: string;
|
|
6677
|
+
signupErrorStep?: string;
|
|
6678
|
+
/**
|
|
6679
|
+
* What this number bills each month, in cents. Stamped when the number was bought, so an existing number keeps its price when the rate card changes.
|
|
6680
|
+
*/
|
|
6681
|
+
monthlyCents?: number;
|
|
6682
|
+
/**
|
|
6683
|
+
* False for numbers you brought yourself (connected via Meta embedded signup). They live on your own carrier, so SMS/Calls can't be enabled on them.
|
|
6684
|
+
*/
|
|
6685
|
+
hostedByZernio?: boolean;
|
|
6686
|
+
/**
|
|
6687
|
+
* Whether the number can send SMS. Absent while unknown.
|
|
6688
|
+
*/
|
|
6689
|
+
smsCapable?: boolean;
|
|
6690
|
+
/**
|
|
6691
|
+
* Whether the number can send MMS. Absent while unknown.
|
|
6692
|
+
*/
|
|
6693
|
+
mmsCapable?: boolean;
|
|
6694
|
+
/**
|
|
6695
|
+
* True when the number can only text numbers in its own country. Absent while unknown.
|
|
6696
|
+
*/
|
|
6697
|
+
domesticOnly?: boolean;
|
|
6698
|
+
/**
|
|
6699
|
+
* True while a 10DLC registration covering this number is in review.
|
|
6700
|
+
*/
|
|
6701
|
+
smsRegistrationPending?: boolean;
|
|
6702
|
+
/**
|
|
6703
|
+
* True when outbound SMS is unlocked: an approved 10DLC covers the number, or the number is outside the US.
|
|
6704
|
+
*/
|
|
6705
|
+
smsSendApproved?: boolean;
|
|
6706
|
+
/**
|
|
6707
|
+
* Brand of the 10DLC registration covering the number.
|
|
6708
|
+
*/
|
|
6709
|
+
smsBrandName?: (string) | null;
|
|
6710
|
+
features?: {
|
|
6711
|
+
calls?: boolean;
|
|
6712
|
+
whatsapp?: boolean;
|
|
6713
|
+
smsPending?: boolean;
|
|
6714
|
+
};
|
|
6715
|
+
/**
|
|
6716
|
+
* Whether WhatsApp Business Calling is enabled on this number (manage via /v1/whatsapp/phone-numbers/{id}/calling).
|
|
6717
|
+
*/
|
|
6718
|
+
callingEnabled?: boolean;
|
|
6719
|
+
/**
|
|
6720
|
+
* WhatsApp calling forward destination.
|
|
6721
|
+
*/
|
|
6722
|
+
forwardTo?: string;
|
|
6723
|
+
/**
|
|
6724
|
+
* SIP digest username for a sip: forward destination. The password is never returned.
|
|
6725
|
+
*/
|
|
6726
|
+
sipAuthUsername?: string;
|
|
6727
|
+
callerIdVerifiedAt?: string;
|
|
6728
|
+
maxCallDurationSeconds?: number;
|
|
6729
|
+
recordingEnabled?: boolean;
|
|
6730
|
+
transcriptionEnabled?: boolean;
|
|
6731
|
+
transcriptionLanguage?: 'auto' | 'en' | 'es';
|
|
6732
|
+
callIconCountries?: Array<(string)>;
|
|
6733
|
+
forwardCallerId?: 'business' | 'caller';
|
|
6734
|
+
/**
|
|
6735
|
+
* Whether Calls (PSTN voice) is on.
|
|
6736
|
+
*/
|
|
6737
|
+
pstnVoiceEnabled?: boolean;
|
|
6738
|
+
pstnForwardTo?: string;
|
|
6739
|
+
voicemailEnabled?: boolean;
|
|
6740
|
+
voicemailGreeting?: string;
|
|
6741
|
+
businessHoursEnabled?: boolean;
|
|
6742
|
+
businessHoursTimezone?: string;
|
|
6743
|
+
businessHours?: Array<{
|
|
6744
|
+
day?: number;
|
|
6745
|
+
open?: string;
|
|
6746
|
+
close?: string;
|
|
6747
|
+
}>;
|
|
6748
|
+
blockedCallers?: Array<(string)>;
|
|
6749
|
+
ivrEnabled?: boolean;
|
|
6750
|
+
ivrPrompt?: string;
|
|
6751
|
+
ivrOptions?: Array<{
|
|
6752
|
+
digit?: string;
|
|
6753
|
+
forwardTo?: string;
|
|
6754
|
+
label?: string;
|
|
6755
|
+
}>;
|
|
6756
|
+
};
|
|
6757
|
+
|
|
6758
|
+
export type status13 = 'pending_payment' | 'pending_regulatory' | 'regulatory_declined' | 'provisioning' | 'verifying' | 'active' | 'suspended' | 'releasing' | 'released';
|
|
6759
|
+
|
|
6760
|
+
export type metaVerificationStatus = 'pending' | 'code_requested' | 'verified' | 'expired';
|
|
6761
|
+
|
|
6581
6762
|
export type Pagination = {
|
|
6582
6763
|
page?: number;
|
|
6583
6764
|
limit?: number;
|
|
@@ -6699,7 +6880,7 @@ export type PlatformAnalytics = {
|
|
|
6699
6880
|
errorMessage?: (string) | null;
|
|
6700
6881
|
};
|
|
6701
6882
|
|
|
6702
|
-
export type
|
|
6883
|
+
export type status14 = 'published' | 'failed';
|
|
6703
6884
|
|
|
6704
6885
|
/**
|
|
6705
6886
|
* Sync state of analytics for this platform
|
|
@@ -7101,7 +7282,7 @@ export type Product = {
|
|
|
7101
7282
|
|
|
7102
7283
|
export type platform8 = 'shopify';
|
|
7103
7284
|
|
|
7104
|
-
export type
|
|
7285
|
+
export type status15 = 'active' | 'draft' | 'archived';
|
|
7105
7286
|
|
|
7106
7287
|
export type ProductImage = {
|
|
7107
7288
|
url?: string;
|
|
@@ -8377,7 +8558,7 @@ export type UploadTokenResponse = {
|
|
|
8377
8558
|
status?: 'pending' | 'completed' | 'expired';
|
|
8378
8559
|
};
|
|
8379
8560
|
|
|
8380
|
-
export type
|
|
8561
|
+
export type status16 = 'pending' | 'completed' | 'expired';
|
|
8381
8562
|
|
|
8382
8563
|
export type UploadTokenStatusResponse = {
|
|
8383
8564
|
token?: string;
|
|
@@ -8853,7 +9034,7 @@ export type Verification = {
|
|
|
8853
9034
|
resend?: boolean;
|
|
8854
9035
|
};
|
|
8855
9036
|
|
|
8856
|
-
export type
|
|
9037
|
+
export type status17 = 'pending' | 'approved' | 'expired' | 'max_attempts_reached' | 'canceled' | 'delivery_failed';
|
|
8857
9038
|
|
|
8858
9039
|
export type channel3 = 'sms';
|
|
8859
9040
|
|
|
@@ -8980,7 +9161,7 @@ export type WebhookLog = {
|
|
|
8980
9161
|
/**
|
|
8981
9162
|
* Delivery outcome
|
|
8982
9163
|
*/
|
|
8983
|
-
export type
|
|
9164
|
+
export type status18 = 'success' | 'failed';
|
|
8984
9165
|
|
|
8985
9166
|
/**
|
|
8986
9167
|
* Webhook payload for `account.ads.initial_sync_completed` events.
|
|
@@ -9092,7 +9273,7 @@ export type event = 'account.ads.initial_sync_completed';
|
|
|
9092
9273
|
/**
|
|
9093
9274
|
* Overall outcome of the initial sync.
|
|
9094
9275
|
*/
|
|
9095
|
-
export type
|
|
9276
|
+
export type status19 = 'success' | 'failure';
|
|
9096
9277
|
|
|
9097
9278
|
/**
|
|
9098
9279
|
* Stable category for UX branching. New values may be added; existing ones are
|
|
@@ -10999,7 +11180,7 @@ export type event22 = 'post.platform.published' | 'post.platform.failed' | 'post
|
|
|
10999
11180
|
/**
|
|
11000
11181
|
* Terminal status this event fires on. Matches the event suffix.
|
|
11001
11182
|
*/
|
|
11002
|
-
export type
|
|
11183
|
+
export type status20 = 'published' | 'failed' | 'deleted';
|
|
11003
11184
|
|
|
11004
11185
|
/**
|
|
11005
11186
|
* Webhook payload for reaction received events (WhatsApp, Telegram, Slack, Instagram, Facebook Messenger)
|
|
@@ -11264,7 +11445,7 @@ export type platform15 = 'whatsapp';
|
|
|
11264
11445
|
/**
|
|
11265
11446
|
* Normalized from Meta's `decision` (REJECTED -> DECLINED, DEFERRED -> PENDING_REVIEW; the review is still open on DEFERRED, not a rejection).
|
|
11266
11447
|
*/
|
|
11267
|
-
export type
|
|
11448
|
+
export type status21 = 'APPROVED' | 'DECLINED' | 'PENDING_REVIEW';
|
|
11268
11449
|
|
|
11269
11450
|
/**
|
|
11270
11451
|
* Webhook payload for the `whatsapp.template.category_updated` event.
|
|
@@ -11413,7 +11594,7 @@ export type event30 = 'whatsapp.template.status_updated';
|
|
|
11413
11594
|
* request before the template is actually removed.
|
|
11414
11595
|
*
|
|
11415
11596
|
*/
|
|
11416
|
-
export type
|
|
11597
|
+
export type status22 = 'APPROVED' | 'REJECTED' | 'PENDING' | 'PAUSED' | 'DISABLED' | 'IN_APPEAL' | 'PENDING_DELETION';
|
|
11417
11598
|
|
|
11418
11599
|
export type WhatsAppBodyComponent = {
|
|
11419
11600
|
type: 'body';
|
|
@@ -11567,7 +11748,7 @@ export type WhatsAppSandboxSession = {
|
|
|
11567
11748
|
* list responses.
|
|
11568
11749
|
*
|
|
11569
11750
|
*/
|
|
11570
|
-
export type
|
|
11751
|
+
export type status23 = 'pending' | 'active';
|
|
11571
11752
|
|
|
11572
11753
|
export type WhatsAppTemplateButton = {
|
|
11573
11754
|
type: 'quick_reply' | 'url' | 'phone_number' | 'otp' | 'copy_code' | 'flow' | 'mpm' | 'catalog';
|
|
@@ -11725,7 +11906,7 @@ export type WorkflowExecutionEvent = {
|
|
|
11725
11906
|
|
|
11726
11907
|
export type action2 = 'execution_started' | 'execution_completed' | 'execution_exited' | 'execution_paused' | 'execution_resumed' | 'node_started' | 'node_completed' | 'node_failed' | 'node_skipped';
|
|
11727
11908
|
|
|
11728
|
-
export type
|
|
11909
|
+
export type status24 = 'success' | 'failed' | 'pending';
|
|
11729
11910
|
|
|
11730
11911
|
/**
|
|
11731
11912
|
* A node in a workflow graph. `config` shape depends on `type`.
|
|
@@ -28762,53 +28943,7 @@ export type ListPhoneNumbersData = {
|
|
|
28762
28943
|
};
|
|
28763
28944
|
|
|
28764
28945
|
export type ListPhoneNumbersResponse = ({
|
|
28765
|
-
numbers?: Array<
|
|
28766
|
-
_id?: string;
|
|
28767
|
-
phoneNumber?: string;
|
|
28768
|
-
country?: string;
|
|
28769
|
-
status?: 'pending_payment' | 'pending_regulatory' | 'regulatory_declined' | 'provisioning' | 'verifying' | 'active' | 'suspended' | 'releasing' | 'released';
|
|
28770
|
-
/**
|
|
28771
|
-
* For regulated numbers, who it's registered for (company or person), set from the submitted KYC.
|
|
28772
|
-
*/
|
|
28773
|
-
registrantName?: (string) | null;
|
|
28774
|
-
/**
|
|
28775
|
-
* Present once the number order has been placed (i.e. the requirement group was approved). Absent while still in identity review.
|
|
28776
|
-
*/
|
|
28777
|
-
telnyxOrderId?: (string) | null;
|
|
28778
|
-
/**
|
|
28779
|
-
* What this number bills each month, in cents. Stamped when the number was bought, so an existing number keeps its price when the rate card changes.
|
|
28780
|
-
*/
|
|
28781
|
-
monthlyCents?: number;
|
|
28782
|
-
/**
|
|
28783
|
-
* False for numbers you brought yourself (connected via Meta embedded signup). They live on your own carrier, so SMS/Calls can't be enabled on them.
|
|
28784
|
-
*/
|
|
28785
|
-
hostedByZernio?: boolean;
|
|
28786
|
-
/**
|
|
28787
|
-
* SIP trunk the number is attached to; null when not trunked. While attached, enabling Calls or WhatsApp calling, requesting WhatsApp verification, and releasing the number all return 409.
|
|
28788
|
-
*/
|
|
28789
|
-
sipTrunkId?: (string) | null;
|
|
28790
|
-
profileId?: {
|
|
28791
|
-
[key: string]: unknown;
|
|
28792
|
-
};
|
|
28793
|
-
provisionedAt?: string;
|
|
28794
|
-
metaPreverifiedId?: string;
|
|
28795
|
-
metaVerificationStatus?: string;
|
|
28796
|
-
/**
|
|
28797
|
-
* For regulated (Tier 3/4) numbers with an Onfido ID-verification step: the link to forward to the end user. Set once the order is placed; null otherwise. Poll this field after submitting KYC.
|
|
28798
|
-
*/
|
|
28799
|
-
onfidoVerificationUrl?: (string) | null;
|
|
28800
|
-
endUserFirstName?: (string) | null;
|
|
28801
|
-
endUserLastName?: (string) | null;
|
|
28802
|
-
/**
|
|
28803
|
-
* Reviewer rejection reason when status is regulatory_declined.
|
|
28804
|
-
*/
|
|
28805
|
-
regulatoryDeclineReason?: (string) | null;
|
|
28806
|
-
/**
|
|
28807
|
-
* Whether WhatsApp Business Calling is enabled on this number (manage via /v1/whatsapp/phone-numbers/{id}/calling).
|
|
28808
|
-
*/
|
|
28809
|
-
callingEnabled?: boolean;
|
|
28810
|
-
createdAt?: string;
|
|
28811
|
-
}>;
|
|
28946
|
+
numbers?: Array<OwnedPhoneNumber>;
|
|
28812
28947
|
/**
|
|
28813
28948
|
* Connected (bring-your-own) WhatsApp numbers: your own WABA
|
|
28814
28949
|
* numbers linked via Embedded Signup. Not provisioned or billed
|
|
@@ -29349,53 +29484,7 @@ export type GetWhatsAppPhoneNumbersData = {
|
|
|
29349
29484
|
};
|
|
29350
29485
|
|
|
29351
29486
|
export type GetWhatsAppPhoneNumbersResponse = ({
|
|
29352
|
-
numbers?: Array<
|
|
29353
|
-
_id?: string;
|
|
29354
|
-
phoneNumber?: string;
|
|
29355
|
-
country?: string;
|
|
29356
|
-
status?: 'pending_payment' | 'pending_regulatory' | 'regulatory_declined' | 'provisioning' | 'verifying' | 'active' | 'suspended' | 'releasing' | 'released';
|
|
29357
|
-
/**
|
|
29358
|
-
* For regulated numbers, who it's registered for (company or person), set from the submitted KYC.
|
|
29359
|
-
*/
|
|
29360
|
-
registrantName?: (string) | null;
|
|
29361
|
-
/**
|
|
29362
|
-
* Present once the number order has been placed (i.e. the requirement group was approved). Absent while still in identity review.
|
|
29363
|
-
*/
|
|
29364
|
-
telnyxOrderId?: (string) | null;
|
|
29365
|
-
/**
|
|
29366
|
-
* What this number bills each month, in cents. Stamped when the number was bought, so an existing number keeps its price when the rate card changes.
|
|
29367
|
-
*/
|
|
29368
|
-
monthlyCents?: number;
|
|
29369
|
-
/**
|
|
29370
|
-
* False for numbers you brought yourself (connected via Meta embedded signup). They live on your own carrier, so SMS/Calls can't be enabled on them.
|
|
29371
|
-
*/
|
|
29372
|
-
hostedByZernio?: boolean;
|
|
29373
|
-
/**
|
|
29374
|
-
* SIP trunk the number is attached to; null when not trunked. While attached, enabling Calls or WhatsApp calling, requesting WhatsApp verification, and releasing the number all return 409.
|
|
29375
|
-
*/
|
|
29376
|
-
sipTrunkId?: (string) | null;
|
|
29377
|
-
profileId?: {
|
|
29378
|
-
[key: string]: unknown;
|
|
29379
|
-
};
|
|
29380
|
-
provisionedAt?: string;
|
|
29381
|
-
metaPreverifiedId?: string;
|
|
29382
|
-
metaVerificationStatus?: string;
|
|
29383
|
-
/**
|
|
29384
|
-
* For regulated (Tier 3/4) numbers with an Onfido ID-verification step: the link to forward to the end user. Set once the order is placed; null otherwise. Poll this field after submitting KYC.
|
|
29385
|
-
*/
|
|
29386
|
-
onfidoVerificationUrl?: (string) | null;
|
|
29387
|
-
endUserFirstName?: (string) | null;
|
|
29388
|
-
endUserLastName?: (string) | null;
|
|
29389
|
-
/**
|
|
29390
|
-
* Reviewer rejection reason when status is regulatory_declined.
|
|
29391
|
-
*/
|
|
29392
|
-
regulatoryDeclineReason?: (string) | null;
|
|
29393
|
-
/**
|
|
29394
|
-
* Whether WhatsApp Business Calling is enabled on this number (manage via /v1/whatsapp/phone-numbers/{id}/calling).
|
|
29395
|
-
*/
|
|
29396
|
-
callingEnabled?: boolean;
|
|
29397
|
-
createdAt?: string;
|
|
29398
|
-
}>;
|
|
29487
|
+
numbers?: Array<OwnedPhoneNumber>;
|
|
29399
29488
|
/**
|
|
29400
29489
|
* Connected (bring-your-own) WhatsApp numbers: your own WABA
|
|
29401
29490
|
* numbers linked via Embedded Signup. Not provisioned or billed
|