@zernio/node 0.2.954 → 0.2.955

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.
@@ -2042,6 +2042,180 @@ export type BlueskyPlatformData = {
2042
2042
  }>;
2043
2043
  };
2044
2044
 
2045
+ export type BrandedCallingAddress = {
2046
+ streetAddress: string;
2047
+ extendedAddress?: string;
2048
+ city: string;
2049
+ /**
2050
+ * State or province code (IL, ON).
2051
+ */
2052
+ administrativeArea: string;
2053
+ postalCode: string;
2054
+ /**
2055
+ * ISO 3166-1 alpha-2 (US or CA).
2056
+ */
2057
+ country: string;
2058
+ };
2059
+
2060
+ export type BrandedCallingContact = {
2061
+ firstName: string;
2062
+ lastName: string;
2063
+ email: string;
2064
+ /**
2065
+ * Required on organizationContact.
2066
+ */
2067
+ jobTitle?: string;
2068
+ /**
2069
+ * E.164 with a leading +.
2070
+ */
2071
+ phoneNumber: string;
2072
+ };
2073
+
2074
+ export type BrandedCallingEnterprise = {
2075
+ id?: string;
2076
+ legalName?: string;
2077
+ doingBusinessAs?: string;
2078
+ organizationType?: 'commercial' | 'government' | 'non_profit';
2079
+ organizationLegalType?: 'corporation' | 'llc' | 'partnership' | 'nonprofit' | 'other';
2080
+ countryCode?: 'US' | 'CA';
2081
+ jurisdictionOfIncorporation?: string;
2082
+ website?: string;
2083
+ /**
2084
+ * Last four digits of the tax id; the full id is never returned.
2085
+ */
2086
+ feinLast4?: string;
2087
+ industry?: string;
2088
+ numberOfEmployees?: '1-10' | '11-50' | '51-200' | '201-500' | '501-2000' | '2001-10000' | '10001+';
2089
+ organizationContact?: BrandedCallingContact;
2090
+ billingContact?: BrandedCallingContact;
2091
+ physicalAddress?: BrandedCallingAddress;
2092
+ billingAddress?: BrandedCallingAddress;
2093
+ /**
2094
+ * True once the business exists at the carrier (happens when its first identity passes review).
2095
+ */
2096
+ registered?: boolean;
2097
+ createdAt?: (string) | null;
2098
+ };
2099
+
2100
+ export type organizationType = 'commercial' | 'government' | 'non_profit';
2101
+
2102
+ export type organizationLegalType = 'corporation' | 'llc' | 'partnership' | 'nonprofit' | 'other';
2103
+
2104
+ export type countryCode = 'US' | 'CA';
2105
+
2106
+ export type numberOfEmployees = '1-10' | '11-50' | '51-200' | '201-500' | '501-2000' | '2001-10000' | '10001+';
2107
+
2108
+ export type BrandedCallingIdentity = {
2109
+ id?: string;
2110
+ enterpriseId?: string;
2111
+ displayName?: string;
2112
+ callReasons?: Array<(string)>;
2113
+ /**
2114
+ * Every call reason matches the carrier catalogue (GET /v1/branded-calling/call-reasons); anything else is vetted by hand and takes longer.
2115
+ */
2116
+ callReasonsPreApproved?: boolean;
2117
+ /**
2118
+ * The image you sent. Zernio hosts the 256x256 BMP the carriers require.
2119
+ */
2120
+ logoUrl?: (string) | null;
2121
+ authorizer?: {
2122
+ name?: string;
2123
+ email?: string;
2124
+ };
2125
+ references?: BrandedCallingReferences;
2126
+ /**
2127
+ * requested = in Zernio review; changes_requested = answer the review (PATCH); pending_email_verification = confirm the code emailed to the authorizer; in_review = with the carrier vetting team; verified = attach numbers; rejected = fix and PATCH to resubmit; suspended = an infringement claim is open; expired = the yearly verification lapsed; permanently_rejected = terminal.
2128
+ */
2129
+ status?: 'requested' | 'changes_requested' | 'rejected' | 'pending_email_verification' | 'in_review' | 'verified' | 'suspended' | 'expired' | 'permanently_rejected';
2130
+ rejectionReasons?: Array<{
2131
+ code?: string;
2132
+ title?: string;
2133
+ detail?: string;
2134
+ /**
2135
+ * Free-text note from the vetting team, on the first entry only.
2136
+ */
2137
+ message?: (string) | null;
2138
+ }>;
2139
+ /**
2140
+ * The open change request, as text.
2141
+ */
2142
+ reviewNote?: (string) | null;
2143
+ /**
2144
+ * The open change request as points; answer each by id in reviewAnswers on PATCH.
2145
+ */
2146
+ reviewRequest?: {
2147
+ id?: string;
2148
+ intro?: string;
2149
+ points?: Array<{
2150
+ id?: string;
2151
+ title?: string;
2152
+ detail?: string;
2153
+ answer?: 'text' | 'link' | 'file' | 'link_or_file';
2154
+ }>;
2155
+ } | null;
2156
+ emailVerifiedAt?: (string) | null;
2157
+ submittedAt?: (string) | null;
2158
+ verifiedAt?: (string) | null;
2159
+ /**
2160
+ * Verification lasts one year; Zernio resubmits 30 days before this date.
2161
+ */
2162
+ expiringAt?: (string) | null;
2163
+ numbers?: Array<BrandedCallingIdentityNumber>;
2164
+ createdAt?: (string) | null;
2165
+ updatedAt?: (string) | null;
2166
+ };
2167
+
2168
+ /**
2169
+ * requested = in Zernio review; changes_requested = answer the review (PATCH); pending_email_verification = confirm the code emailed to the authorizer; in_review = with the carrier vetting team; verified = attach numbers; rejected = fix and PATCH to resubmit; suspended = an infringement claim is open; expired = the yearly verification lapsed; permanently_rejected = terminal.
2170
+ */
2171
+ export type status4 = 'requested' | 'changes_requested' | 'rejected' | 'pending_email_verification' | 'in_review' | 'verified' | 'suspended' | 'expired' | 'permanently_rejected';
2172
+
2173
+ export type BrandedCallingIdentityNumber = {
2174
+ phoneNumberId?: string;
2175
+ phoneNumber?: string;
2176
+ /**
2177
+ * verified = the identity shows on calls from this number. permanently_rejected cannot be attached again anywhere.
2178
+ */
2179
+ status?: 'submitted' | 'in_review' | 'verified' | 'unsuccessful' | 'suspended' | 'expired' | 'permanently_rejected';
2180
+ rejectionReason?: {
2181
+ code?: string;
2182
+ title?: string;
2183
+ detail?: string;
2184
+ message?: (string) | null;
2185
+ } | null;
2186
+ verifiedAt?: (string) | null;
2187
+ addedAt?: (string) | null;
2188
+ };
2189
+
2190
+ /**
2191
+ * verified = the identity shows on calls from this number. permanently_rejected cannot be attached again anywhere.
2192
+ */
2193
+ export type status5 = 'submitted' | 'in_review' | 'verified' | 'unsuccessful' | 'suspended' | 'expired' | 'permanently_rejected';
2194
+
2195
+ /**
2196
+ * A person the carrier vetting team phones to confirm the business. Business references are senior contacts at a vendor, partner or client; the financial reference is a CPA or a bank contact. Calls are placed in the reference's local 8am-9pm window.
2197
+ */
2198
+ export type BrandedCallingReference = {
2199
+ fullName: string;
2200
+ jobTitle?: string;
2201
+ organization?: string;
2202
+ relationshipToRegistrant?: string;
2203
+ /**
2204
+ * E.164 with a leading +.
2205
+ */
2206
+ phoneNumber: string;
2207
+ email: string;
2208
+ /**
2209
+ * IANA timezone id, e.g. America/New_York.
2210
+ */
2211
+ timezone: string;
2212
+ };
2213
+
2214
+ export type BrandedCallingReferences = {
2215
+ business: Array<BrandedCallingReference>;
2216
+ financial: BrandedCallingReference;
2217
+ };
2218
+
2045
2219
  /**
2046
2220
  * Result of a CSV bulk upload. The same shape is returned for `200` (all rows
2047
2221
  * succeeded or all failed) and `207` (mixed). Per-row outcomes live in `results`;
@@ -2248,7 +2422,7 @@ export type BusinessAgentEventStatus = {
2248
2422
  updated_at: string;
2249
2423
  };
2250
2424
 
2251
- export type status4 = 'request_received' | 'processing' | 'sent' | 'failed' | 'skipped' | 'success';
2425
+ export type status6 = 'request_received' | 'processing' | 'sent' | 'failed' | 'skipped' | 'success';
2252
2426
 
2253
2427
  export type BusinessAgentFaq = BusinessAgentFaqInput & {
2254
2428
  id: string;
@@ -2345,7 +2519,7 @@ export type BusinessAgentSkill = BusinessAgentSkillInput & {
2345
2519
  /**
2346
2520
  * pending_review right after a write; blocked means Meta content review rejected it and the agent never applies it.
2347
2521
  */
2348
- export type status5 = 'active' | 'pending_review' | 'blocked';
2522
+ export type status7 = 'active' | 'pending_review' | 'blocked';
2349
2523
 
2350
2524
  export type BusinessAgentSkillInput = {
2351
2525
  /**
@@ -2447,7 +2621,7 @@ export type BusinessAgentUiSkillInput = {
2447
2621
 
2448
2622
  export type component_type = 'carousel_quick_reply' | 'carousel_url' | 'cta_url' | 'flow' | 'image' | 'interactive_list' | 'interactive_reply_buttons' | 'location' | 'location_request';
2449
2623
 
2450
- export type status6 = 'enabled' | 'disabled';
2624
+ export type status8 = 'enabled' | 'disabled';
2451
2625
 
2452
2626
  export type BusinessAgentWebsite = BusinessAgentWebsiteInput & {
2453
2627
  id: string;
@@ -2638,7 +2812,7 @@ export type channel = 'whatsapp' | 'pstn';
2638
2812
 
2639
2813
  export type direction = 'inbound' | 'outbound';
2640
2814
 
2641
- export type status7 = 'ringing' | 'answered' | 'ended' | 'failed';
2815
+ export type status9 = 'ringing' | 'answered' | 'ended' | 'failed';
2642
2816
 
2643
2817
  /**
2644
2818
  * Caller ID presented on the forwarded leg.
@@ -3022,7 +3196,7 @@ export type ConversionDestination = {
3022
3196
  * For LinkedIn, `inactive` means the rule is soft-deleted (`enabled: false`).
3023
3197
  *
3024
3198
  */
3025
- export type status8 = 'active' | 'inactive';
3199
+ export type status10 = 'active' | 'inactive';
3026
3200
 
3027
3201
  /**
3028
3202
  * A single conversion event to relay to the ad platform. All PII fields
@@ -3701,7 +3875,7 @@ export type objective = 'OUTCOME_ENGAGEMENT' | 'OUTCOME_SALES' | 'OUTCOME_LEADS'
3701
3875
  * newly created ad(s) after Meta accepts them.
3702
3876
  *
3703
3877
  */
3704
- export type status9 = 'ACTIVE' | 'PAUSED';
3878
+ export type status11 = 'ACTIVE' | 'PAUSED';
3705
3879
 
3706
3880
  /**
3707
3881
  * Campaign-level status, same semantics as `POST /v1/ads/create`. Defaults
@@ -4069,7 +4243,7 @@ export type privacy_level = 2;
4069
4243
  /**
4070
4244
  * 1=SCHEDULED, 2=ACTIVE, 3=COMPLETED, 4=CANCELED
4071
4245
  */
4072
- export type status10 = 1 | 2 | 3 | 4;
4246
+ export type status12 = 1 | 2 | 3 | 4;
4073
4247
 
4074
4248
  /**
4075
4249
  * 1=STAGE_INSTANCE, 2=VOICE, 3=EXTERNAL
@@ -4597,7 +4771,7 @@ export type FeedbackReceipt = {
4597
4771
  duplicate?: boolean;
4598
4772
  };
4599
4773
 
4600
- export type status11 = 'received';
4774
+ export type status13 = 'received';
4601
4775
 
4602
4776
  export type FollowerStatsResponse = {
4603
4777
  accounts?: Array<AccountWithFollowerStats>;
@@ -4722,7 +4896,7 @@ export type GoogleAdLabel = {
4722
4896
  description?: (string) | null;
4723
4897
  };
4724
4898
 
4725
- export type status12 = 'ENABLED' | 'REMOVED' | 'UNKNOWN';
4899
+ export type status14 = 'ENABLED' | 'REMOVED' | 'UNKNOWN';
4726
4900
 
4727
4901
  /**
4728
4902
  * At least one id across the four target lists. Up to 1000 ids per list.
@@ -4820,7 +4994,7 @@ export type GoogleAdsManagerLink = {
4820
4994
  /**
4821
4995
  * Status the link has after this call.
4822
4996
  */
4823
- export type status13 = 'PENDING' | 'ACTIVE' | 'REFUSED' | 'CANCELED' | 'INACTIVE';
4997
+ export type status15 = 'PENDING' | 'ACTIVE' | 'REFUSED' | 'CANCELED' | 'INACTIVE';
4824
4998
 
4825
4999
  /**
4826
5000
  * Link one asset to the asset group. Send exactly one of asset (an existing asset), text, imageUrl or youtubeVideoId (new content, created in the same request).
@@ -5541,7 +5715,7 @@ export type GoogleRecommendationResult = {
5541
5715
  error?: string;
5542
5716
  };
5543
5717
 
5544
- export type status14 = 'applied' | 'dismissed' | 'failed';
5718
+ export type status16 = 'applied' | 'dismissed' | 'failed';
5545
5719
 
5546
5720
  export type GoogleRsaDescription = {
5547
5721
  text: string;
@@ -5673,7 +5847,7 @@ export type kind = 'phone' | 'email';
5673
5847
 
5674
5848
  export type region = 'US' | 'GB';
5675
5849
 
5676
- export type status15 = 'ordering' | 'activating' | 'active' | 'suspended' | 'canceled' | 'failed';
5850
+ export type status17 = 'ordering' | 'activating' | 'active' | 'suspended' | 'canceled' | 'failed';
5677
5851
 
5678
5852
  /**
5679
5853
  * Attachment snapshot inside an edit-history entry.
@@ -5745,7 +5919,7 @@ export type InboxWebhookConversation = {
5745
5919
  contactId?: string;
5746
5920
  };
5747
5921
 
5748
- export type status16 = 'active' | 'archived';
5922
+ export type status18 = 'active' | 'archived';
5749
5923
 
5750
5924
  /**
5751
5925
  * The conversation object included in conversation lifecycle webhook payloads (conversation.started, conversation.control_changed).
@@ -7332,7 +7506,7 @@ export type OwnedPhoneNumber = {
7332
7506
  }>;
7333
7507
  };
7334
7508
 
7335
- export type status17 = 'pending_payment' | 'pending_regulatory' | 'regulatory_declined' | 'provisioning' | 'verifying' | 'active' | 'suspended' | 'releasing' | 'released';
7509
+ export type status19 = 'pending_payment' | 'pending_regulatory' | 'regulatory_declined' | 'provisioning' | 'verifying' | 'active' | 'suspended' | 'releasing' | 'released';
7336
7510
 
7337
7511
  export type metaVerificationStatus = 'pending' | 'code_requested' | 'verified' | 'expired';
7338
7512
 
@@ -7457,7 +7631,7 @@ export type PlatformAnalytics = {
7457
7631
  errorMessage?: (string) | null;
7458
7632
  };
7459
7633
 
7460
- export type status18 = 'published' | 'failed';
7634
+ export type status20 = 'published' | 'failed';
7461
7635
 
7462
7636
  /**
7463
7637
  * Sync state of analytics for this platform
@@ -7859,7 +8033,7 @@ export type Product = {
7859
8033
 
7860
8034
  export type platform8 = 'shopify';
7861
8035
 
7862
- export type status19 = 'active' | 'draft' | 'archived';
8036
+ export type status21 = 'active' | 'draft' | 'archived';
7863
8037
 
7864
8038
  export type ProductImage = {
7865
8039
  url?: string;
@@ -9135,7 +9309,7 @@ export type UploadTokenResponse = {
9135
9309
  status?: 'pending' | 'completed' | 'expired';
9136
9310
  };
9137
9311
 
9138
- export type status20 = 'pending' | 'completed' | 'expired';
9312
+ export type status22 = 'pending' | 'completed' | 'expired';
9139
9313
 
9140
9314
  export type UploadTokenStatusResponse = {
9141
9315
  token?: string;
@@ -9634,7 +9808,7 @@ export type Verification = {
9634
9808
  resend?: boolean;
9635
9809
  };
9636
9810
 
9637
- export type status21 = 'pending' | 'approved' | 'expired' | 'max_attempts_reached' | 'canceled' | 'delivery_failed';
9811
+ export type status23 = 'pending' | 'approved' | 'expired' | 'max_attempts_reached' | 'canceled' | 'delivery_failed';
9638
9812
 
9639
9813
  export type channel4 = 'sms';
9640
9814
 
@@ -9783,7 +9957,7 @@ export type WebhookLog = {
9783
9957
  /**
9784
9958
  * Delivery outcome
9785
9959
  */
9786
- export type status22 = 'success' | 'failed';
9960
+ export type status24 = 'success' | 'failed';
9787
9961
 
9788
9962
  /**
9789
9963
  * Webhook payload for `account.ads.initial_sync_completed` events.
@@ -9895,7 +10069,7 @@ export type event = 'account.ads.initial_sync_completed';
9895
10069
  /**
9896
10070
  * Overall outcome of the initial sync.
9897
10071
  */
9898
- export type status23 = 'success' | 'failure';
10072
+ export type status25 = 'success' | 'failure';
9899
10073
 
9900
10074
  /**
9901
10075
  * Stable category for UX branching. New values may be added; existing ones are
@@ -11927,7 +12101,7 @@ export type event24 = 'post.platform.published' | 'post.platform.failed' | 'post
11927
12101
  /**
11928
12102
  * Terminal status this event fires on. Matches the event suffix.
11929
12103
  */
11930
- export type status24 = 'published' | 'failed' | 'deleted';
12104
+ export type status26 = 'published' | 'failed' | 'deleted';
11931
12105
 
11932
12106
  /**
11933
12107
  * Webhook payload for reaction received events (WhatsApp, Telegram, Slack, Instagram, Facebook Messenger, TikTok)
@@ -12193,7 +12367,7 @@ export type platform15 = 'whatsapp';
12193
12367
  /**
12194
12368
  * Normalized from Meta's `decision` (REJECTED -> DECLINED, DEFERRED -> PENDING_REVIEW; the review is still open on DEFERRED, not a rejection).
12195
12369
  */
12196
- export type status25 = 'APPROVED' | 'DECLINED' | 'PENDING_REVIEW';
12370
+ export type status27 = 'APPROVED' | 'DECLINED' | 'PENDING_REVIEW';
12197
12371
 
12198
12372
  /**
12199
12373
  * Webhook payload for the `whatsapp.template.category_updated` event.
@@ -12342,7 +12516,7 @@ export type event32 = 'whatsapp.template.status_updated';
12342
12516
  * request before the template is actually removed.
12343
12517
  *
12344
12518
  */
12345
- export type status26 = 'APPROVED' | 'REJECTED' | 'PENDING' | 'PAUSED' | 'DISABLED' | 'IN_APPEAL' | 'PENDING_DELETION';
12519
+ export type status28 = 'APPROVED' | 'REJECTED' | 'PENDING' | 'PAUSED' | 'DISABLED' | 'IN_APPEAL' | 'PENDING_DELETION';
12346
12520
 
12347
12521
  export type WhatsAppBodyComponent = {
12348
12522
  type: 'body';
@@ -12496,7 +12670,7 @@ export type WhatsAppSandboxSession = {
12496
12670
  * list responses.
12497
12671
  *
12498
12672
  */
12499
- export type status27 = 'pending' | 'active';
12673
+ export type status29 = 'pending' | 'active';
12500
12674
 
12501
12675
  export type WhatsAppTemplateButton = {
12502
12676
  type: 'quick_reply' | 'url' | 'phone_number' | 'otp' | 'copy_code' | 'flow' | 'mpm' | 'catalog';
@@ -12654,7 +12828,7 @@ export type WorkflowExecutionEvent = {
12654
12828
 
12655
12829
  export type action2 = 'execution_started' | 'execution_completed' | 'execution_exited' | 'execution_paused' | 'execution_resumed' | 'node_started' | 'node_completed' | 'node_failed' | 'node_skipped';
12656
12830
 
12657
- export type status28 = 'success' | 'failed' | 'pending';
12831
+ export type status30 = 'success' | 'failed' | 'pending';
12658
12832
 
12659
12833
  /**
12660
12834
  * A node in a workflow graph. `config` shape depends on `type`.
@@ -28490,6 +28664,300 @@ export type DeleteSmsSenderIdError = (ErrorResponse | {
28490
28664
  error?: string;
28491
28665
  } | unknown);
28492
28666
 
28667
+ export type CreateBrandedCallingEnterpriseData = {
28668
+ body: {
28669
+ /**
28670
+ * Exactly as on the tax record.
28671
+ */
28672
+ legalName: string;
28673
+ doingBusinessAs: string;
28674
+ organizationType: 'commercial' | 'government' | 'non_profit';
28675
+ organizationLegalType: 'corporation' | 'llc' | 'partnership' | 'nonprofit' | 'other';
28676
+ /**
28677
+ * ISO 3166-1 alpha-2. US or CA.
28678
+ */
28679
+ countryCode: string;
28680
+ /**
28681
+ * State, province or country of registration.
28682
+ */
28683
+ jurisdictionOfIncorporation: string;
28684
+ website: string;
28685
+ /**
28686
+ * US Federal Employer Identification Number (NN-NNNNNNN) or the Canadian equivalent. Stored encrypted; only the last four digits are ever returned.
28687
+ */
28688
+ fein: string;
28689
+ /**
28690
+ * One of the carrier industry labels, e.g. technology, healthcare, retail, finance, legal, insurance, real estate, logistics, education.
28691
+ */
28692
+ industry: string;
28693
+ numberOfEmployees: '1-10' | '11-50' | '51-200' | '201-500' | '501-2000' | '2001-10000' | '10001+';
28694
+ organizationContact: BrandedCallingContact;
28695
+ billingContact: BrandedCallingContact;
28696
+ physicalAddress: BrandedCallingAddress;
28697
+ billingAddress: BrandedCallingAddress;
28698
+ };
28699
+ };
28700
+
28701
+ export type CreateBrandedCallingEnterpriseResponse = (BrandedCallingEnterprise);
28702
+
28703
+ export type CreateBrandedCallingEnterpriseError = (ErrorResponse | {
28704
+ error?: string;
28705
+ } | unknown);
28706
+
28707
+ export type ListBrandedCallingEnterprisesResponse = ({
28708
+ enterprises?: Array<BrandedCallingEnterprise>;
28709
+ });
28710
+
28711
+ export type ListBrandedCallingEnterprisesError = ({
28712
+ error?: string;
28713
+ });
28714
+
28715
+ export type GetBrandedCallingEnterpriseData = {
28716
+ path: {
28717
+ id: string;
28718
+ };
28719
+ };
28720
+
28721
+ export type GetBrandedCallingEnterpriseResponse = (BrandedCallingEnterprise);
28722
+
28723
+ export type GetBrandedCallingEnterpriseError = (ErrorResponse | {
28724
+ error?: string;
28725
+ } | unknown);
28726
+
28727
+ export type DeleteBrandedCallingEnterpriseData = {
28728
+ path: {
28729
+ id: string;
28730
+ };
28731
+ };
28732
+
28733
+ export type DeleteBrandedCallingEnterpriseResponse = ({
28734
+ status?: 'deleted';
28735
+ });
28736
+
28737
+ export type DeleteBrandedCallingEnterpriseError = (ErrorResponse | {
28738
+ error?: string;
28739
+ } | unknown);
28740
+
28741
+ export type ListBrandedCallingCallReasonsResponse = ({
28742
+ callReasons?: Array<(string)>;
28743
+ });
28744
+
28745
+ export type ListBrandedCallingCallReasonsError = ({
28746
+ error?: string;
28747
+ });
28748
+
28749
+ export type CreateBrandedCallingIdentityData = {
28750
+ body: {
28751
+ /**
28752
+ * A business from POST /v1/branded-calling/enterprises.
28753
+ */
28754
+ enterpriseId: string;
28755
+ /**
28756
+ * Shown on the callee's screen. No emoji.
28757
+ */
28758
+ displayName: string;
28759
+ /**
28760
+ * 1 to 10 reasons you call, each up to 64 characters. Pick from GET /v1/branded-calling/call-reasons to skip manual vetting.
28761
+ */
28762
+ callReasons: Array<(string)>;
28763
+ /**
28764
+ * HTTPS URL of a PNG, JPEG, WebP or SVG logo. Zernio converts it to the 256x256 BMP the carriers require and hosts it.
28765
+ */
28766
+ logoUrl?: string;
28767
+ authorizer: {
28768
+ /**
28769
+ * A real person at the business who authorizes the registration.
28770
+ */
28771
+ name: string;
28772
+ /**
28773
+ * The carrier emails a 6-digit code here once the identity passes review.
28774
+ */
28775
+ email: string;
28776
+ };
28777
+ references: BrandedCallingReferences;
28778
+ };
28779
+ };
28780
+
28781
+ export type CreateBrandedCallingIdentityResponse = (BrandedCallingIdentity);
28782
+
28783
+ export type CreateBrandedCallingIdentityError = (ErrorResponse | {
28784
+ error?: string;
28785
+ } | unknown);
28786
+
28787
+ export type ListBrandedCallingIdentitiesResponse = ({
28788
+ identities?: Array<BrandedCallingIdentity>;
28789
+ });
28790
+
28791
+ export type ListBrandedCallingIdentitiesError = ({
28792
+ error?: string;
28793
+ });
28794
+
28795
+ export type GetBrandedCallingIdentityData = {
28796
+ path: {
28797
+ id: string;
28798
+ };
28799
+ };
28800
+
28801
+ export type GetBrandedCallingIdentityResponse = (BrandedCallingIdentity);
28802
+
28803
+ export type GetBrandedCallingIdentityError = (ErrorResponse | {
28804
+ error?: string;
28805
+ } | unknown);
28806
+
28807
+ export type UpdateBrandedCallingIdentityData = {
28808
+ body: {
28809
+ /**
28810
+ * Shown on the callee's screen. No emoji.
28811
+ */
28812
+ displayName?: string;
28813
+ /**
28814
+ * 1 to 10 reasons you call, each up to 64 characters. Pick from GET /v1/branded-calling/call-reasons to skip manual vetting.
28815
+ */
28816
+ callReasons?: Array<(string)>;
28817
+ /**
28818
+ * HTTPS URL of a PNG, JPEG, WebP or SVG logo. Zernio converts it to the 256x256 BMP the carriers require and hosts it.
28819
+ */
28820
+ logoUrl?: string;
28821
+ authorizer?: {
28822
+ /**
28823
+ * A real person at the business who authorizes the registration.
28824
+ */
28825
+ name: string;
28826
+ /**
28827
+ * The carrier emails a 6-digit code here once the identity passes review.
28828
+ */
28829
+ email: string;
28830
+ };
28831
+ references?: BrandedCallingReferences;
28832
+ /**
28833
+ * One entry per point id of the open reviewRequest.
28834
+ */
28835
+ reviewAnswers?: {
28836
+ [key: string]: {
28837
+ text?: string;
28838
+ url?: string;
28839
+ };
28840
+ };
28841
+ reviewNote?: string;
28842
+ };
28843
+ path: {
28844
+ id: string;
28845
+ };
28846
+ };
28847
+
28848
+ export type UpdateBrandedCallingIdentityResponse = (BrandedCallingIdentity);
28849
+
28850
+ export type UpdateBrandedCallingIdentityError = (ErrorResponse | {
28851
+ error?: string;
28852
+ } | unknown);
28853
+
28854
+ export type DeleteBrandedCallingIdentityData = {
28855
+ path: {
28856
+ id: string;
28857
+ };
28858
+ };
28859
+
28860
+ export type DeleteBrandedCallingIdentityResponse = ({
28861
+ status?: 'deleted';
28862
+ });
28863
+
28864
+ export type DeleteBrandedCallingIdentityError = (ErrorResponse | {
28865
+ error?: string;
28866
+ } | unknown);
28867
+
28868
+ export type ResendBrandedCallingAuthorizerCodeData = {
28869
+ path: {
28870
+ id: string;
28871
+ };
28872
+ };
28873
+
28874
+ export type ResendBrandedCallingAuthorizerCodeResponse = ({
28875
+ status?: 'sent';
28876
+ });
28877
+
28878
+ export type ResendBrandedCallingAuthorizerCodeError = (ErrorResponse | {
28879
+ error?: string;
28880
+ } | unknown);
28881
+
28882
+ export type ConfirmBrandedCallingAuthorizerEmailData = {
28883
+ body: {
28884
+ code: string;
28885
+ };
28886
+ path: {
28887
+ id: string;
28888
+ };
28889
+ };
28890
+
28891
+ export type ConfirmBrandedCallingAuthorizerEmailResponse = (BrandedCallingIdentity);
28892
+
28893
+ export type ConfirmBrandedCallingAuthorizerEmailError = (unknown | {
28894
+ error?: string;
28895
+ });
28896
+
28897
+ export type ListBrandedCallingIdentityNumbersData = {
28898
+ path: {
28899
+ id: string;
28900
+ };
28901
+ };
28902
+
28903
+ export type ListBrandedCallingIdentityNumbersResponse = ({
28904
+ numbers?: Array<BrandedCallingIdentityNumber>;
28905
+ });
28906
+
28907
+ export type ListBrandedCallingIdentityNumbersError = (ErrorResponse | {
28908
+ error?: string;
28909
+ } | unknown);
28910
+
28911
+ export type AttachBrandedCallingNumbersData = {
28912
+ body: {
28913
+ /**
28914
+ * Phone number record ids (from GET /v1/phone-numbers). Active US numbers only.
28915
+ */
28916
+ phoneNumberIds: Array<(string)>;
28917
+ signature: {
28918
+ /**
28919
+ * The signer's drawn signature as a PNG, base64 (a data:image/png;base64 prefix is accepted).
28920
+ */
28921
+ imageBase64: string;
28922
+ /**
28923
+ * Printed under the signature. Defaults to the business contact's name.
28924
+ */
28925
+ signerName?: string;
28926
+ };
28927
+ };
28928
+ path: {
28929
+ id: string;
28930
+ };
28931
+ };
28932
+
28933
+ export type AttachBrandedCallingNumbersResponse = ({
28934
+ numbers?: Array<BrandedCallingIdentityNumber>;
28935
+ });
28936
+
28937
+ export type AttachBrandedCallingNumbersError = (ErrorResponse | {
28938
+ error?: string;
28939
+ } | unknown);
28940
+
28941
+ export type DetachBrandedCallingNumbersData = {
28942
+ body: {
28943
+ /**
28944
+ * E.164 numbers currently on this identity.
28945
+ */
28946
+ phoneNumbers: Array<(string)>;
28947
+ };
28948
+ path: {
28949
+ id: string;
28950
+ };
28951
+ };
28952
+
28953
+ export type DetachBrandedCallingNumbersResponse = ({
28954
+ removed?: Array<(string)>;
28955
+ });
28956
+
28957
+ export type DetachBrandedCallingNumbersError = (ErrorResponse | {
28958
+ error?: string;
28959
+ } | unknown);
28960
+
28493
28961
  export type StartSmsRegistrationData = {
28494
28962
  body: {
28495
28963
  registrationType: 'standard_10dlc' | 'sole_prop_10dlc' | 'toll_free';