telnyx 7.27.0 → 7.28.0
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/CHANGELOG.md +7 -0
- package/client.d.mts +11 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +11 -2
- package/client.d.ts.map +1 -1
- package/client.js +9 -0
- package/client.js.map +1 -1
- package/client.mjs +9 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/ai/assistants/assistants.d.mts +11 -0
- package/resources/ai/assistants/assistants.d.mts.map +1 -1
- package/resources/ai/assistants/assistants.d.ts +11 -0
- package/resources/ai/assistants/assistants.d.ts.map +1 -1
- package/resources/ai/assistants/assistants.js.map +1 -1
- package/resources/ai/assistants/assistants.mjs.map +1 -1
- package/resources/ai/audio.d.mts +22 -11
- package/resources/ai/audio.d.mts.map +1 -1
- package/resources/ai/audio.d.ts +22 -11
- package/resources/ai/audio.d.ts.map +1 -1
- package/resources/compute/compute.d.mts +75 -2
- package/resources/compute/compute.d.mts.map +1 -1
- package/resources/compute/compute.d.ts +75 -2
- package/resources/compute/compute.d.ts.map +1 -1
- package/resources/compute/compute.js +17 -0
- package/resources/compute/compute.js.map +1 -1
- package/resources/compute/compute.mjs +17 -0
- package/resources/compute/compute.mjs.map +1 -1
- package/resources/compute/funcs/export.d.mts +3 -0
- package/resources/compute/funcs/export.d.mts.map +1 -1
- package/resources/compute/funcs/export.d.ts +3 -0
- package/resources/compute/funcs/export.d.ts.map +1 -1
- package/resources/compute/funcs/export.js +3 -0
- package/resources/compute/funcs/export.js.map +1 -1
- package/resources/compute/funcs/export.mjs +3 -0
- package/resources/compute/funcs/export.mjs.map +1 -1
- package/resources/compute/funcs/funcs.d.mts +60 -1
- package/resources/compute/funcs/funcs.d.mts.map +1 -1
- package/resources/compute/funcs/funcs.d.ts +60 -1
- package/resources/compute/funcs/funcs.d.ts.map +1 -1
- package/resources/compute/funcs/funcs.js +24 -0
- package/resources/compute/funcs/funcs.js.map +1 -1
- package/resources/compute/funcs/funcs.mjs +24 -0
- package/resources/compute/funcs/funcs.mjs.map +1 -1
- package/resources/compute/funcs/index.d.mts +1 -1
- package/resources/compute/funcs/index.d.mts.map +1 -1
- package/resources/compute/funcs/index.d.ts +1 -1
- package/resources/compute/funcs/index.d.ts.map +1 -1
- package/resources/compute/funcs/index.js.map +1 -1
- package/resources/compute/funcs/index.mjs.map +1 -1
- package/resources/compute/index.d.mts +2 -2
- package/resources/compute/index.d.mts.map +1 -1
- package/resources/compute/index.d.ts +2 -2
- package/resources/compute/index.d.ts.map +1 -1
- package/resources/compute/index.js.map +1 -1
- package/resources/compute/index.mjs.map +1 -1
- package/resources/index.d.mts +2 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/network-coverage.d.mts +1 -1
- package/resources/network-coverage.d.mts.map +1 -1
- package/resources/network-coverage.d.ts +1 -1
- package/resources/network-coverage.d.ts.map +1 -1
- package/resources/number-lookup.d.mts +122 -4
- package/resources/number-lookup.d.mts.map +1 -1
- package/resources/number-lookup.d.ts +122 -4
- package/resources/number-lookup.d.ts.map +1 -1
- package/resources/tailscale-subnet-routers.d.mts +233 -0
- package/resources/tailscale-subnet-routers.d.mts.map +1 -0
- package/resources/tailscale-subnet-routers.d.ts +233 -0
- package/resources/tailscale-subnet-routers.d.ts.map +1 -0
- package/resources/tailscale-subnet-routers.js +105 -0
- package/resources/tailscale-subnet-routers.js.map +1 -0
- package/resources/tailscale-subnet-routers.mjs +101 -0
- package/resources/tailscale-subnet-routers.mjs.map +1 -0
- package/src/client.ts +35 -2
- package/src/resources/ai/assistants/assistants.ts +12 -0
- package/src/resources/ai/audio.ts +23 -11
- package/src/resources/compute/compute.ts +105 -0
- package/src/resources/compute/funcs/export.ts +3 -0
- package/src/resources/compute/funcs/funcs.ts +99 -0
- package/src/resources/compute/funcs/index.ts +3 -0
- package/src/resources/compute/index.ts +4 -1
- package/src/resources/index.ts +13 -1
- package/src/resources/network-coverage.ts +5 -1
- package/src/resources/number-lookup.ts +154 -4
- package/src/resources/tailscale-subnet-routers.ts +303 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -5,9 +5,17 @@ import * as FuncsAPI from './funcs';
|
|
|
5
5
|
import * as ExportAPI from './export';
|
|
6
6
|
import { Export, ExportCreateParams, FuncLogExportConfigResponse } from './export';
|
|
7
7
|
import { APIPromise } from '../../../core/api-promise';
|
|
8
|
+
import {
|
|
9
|
+
DefaultFlatPagination,
|
|
10
|
+
type DefaultFlatPaginationParams,
|
|
11
|
+
PagePromise,
|
|
12
|
+
} from '../../../core/pagination';
|
|
8
13
|
import { RequestOptions } from '../../../internal/request-options';
|
|
9
14
|
import { path } from '../../../internal/utils/path';
|
|
10
15
|
|
|
16
|
+
/**
|
|
17
|
+
* Manage Edge Compute functions
|
|
18
|
+
*/
|
|
11
19
|
export class Funcs extends APIResource {
|
|
12
20
|
export: ExportAPI.Export = new ExportAPI.Export(this._client);
|
|
13
21
|
|
|
@@ -91,8 +99,34 @@ export class Funcs extends APIResource {
|
|
|
91
99
|
): APIPromise<FuncRetrieveShipInspectionResponse> {
|
|
92
100
|
return this._client.get(path`/compute/funcs/${id}/ship_inspection`, options);
|
|
93
101
|
}
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* List functions for the authenticated organization. Each function includes its
|
|
105
|
+
* persisted function-scoped bindings. Actor bindings expose actor_type and
|
|
106
|
+
* env_name, allowing clients to identify every function attached to a Stateful
|
|
107
|
+
* Actor type.
|
|
108
|
+
*
|
|
109
|
+
* @example
|
|
110
|
+
* ```ts
|
|
111
|
+
* // Automatically fetches more pages as needed.
|
|
112
|
+
* for await (const funcListResponse of client.compute.funcs.list()) {
|
|
113
|
+
* // ...
|
|
114
|
+
* }
|
|
115
|
+
* ```
|
|
116
|
+
*/
|
|
117
|
+
list(
|
|
118
|
+
query: FuncListParams | null | undefined = {},
|
|
119
|
+
options?: RequestOptions,
|
|
120
|
+
): PagePromise<FuncListResponsesDefaultFlatPagination, FuncListResponse> {
|
|
121
|
+
return this._client.getAPIList('/compute/funcs', DefaultFlatPagination<FuncListResponse>, {
|
|
122
|
+
query,
|
|
123
|
+
...options,
|
|
124
|
+
});
|
|
125
|
+
}
|
|
94
126
|
}
|
|
95
127
|
|
|
128
|
+
export type FuncListResponsesDefaultFlatPagination = DefaultFlatPagination<FuncListResponse>;
|
|
129
|
+
|
|
96
130
|
export interface FunctionsObservabilityPaginationMeta {
|
|
97
131
|
page_number?: number;
|
|
98
132
|
|
|
@@ -109,6 +143,66 @@ export interface LogsMeta {
|
|
|
109
143
|
partial?: boolean;
|
|
110
144
|
}
|
|
111
145
|
|
|
146
|
+
export interface FuncListResponse {
|
|
147
|
+
id?: string;
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Always present; empty when the function has no bindings.
|
|
151
|
+
*/
|
|
152
|
+
bindings?: Array<FuncListResponse.Binding>;
|
|
153
|
+
|
|
154
|
+
created_at?: string;
|
|
155
|
+
|
|
156
|
+
invoke_url?: string;
|
|
157
|
+
|
|
158
|
+
message?: string;
|
|
159
|
+
|
|
160
|
+
name?: string;
|
|
161
|
+
|
|
162
|
+
record_type?: string;
|
|
163
|
+
|
|
164
|
+
status?: string;
|
|
165
|
+
|
|
166
|
+
status_detail?: string;
|
|
167
|
+
|
|
168
|
+
updated_at?: string;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
export namespace FuncListResponse {
|
|
172
|
+
/**
|
|
173
|
+
* A function-scoped binding persisted at ship time. For binding_type=actor,
|
|
174
|
+
* actor_type is the referenced Stateful Actor type and env_name is the binding
|
|
175
|
+
* name exposed to the function.
|
|
176
|
+
*/
|
|
177
|
+
export interface Binding {
|
|
178
|
+
actor_type?: string;
|
|
179
|
+
|
|
180
|
+
binding_id?: string;
|
|
181
|
+
|
|
182
|
+
binding_type?: string;
|
|
183
|
+
|
|
184
|
+
bucket_id?: string;
|
|
185
|
+
|
|
186
|
+
created_at?: string;
|
|
187
|
+
|
|
188
|
+
env_name?: string;
|
|
189
|
+
|
|
190
|
+
func_id?: string;
|
|
191
|
+
|
|
192
|
+
kv_id?: string;
|
|
193
|
+
|
|
194
|
+
record_type?: string;
|
|
195
|
+
|
|
196
|
+
secret_name?: string;
|
|
197
|
+
|
|
198
|
+
sqldb_id?: string;
|
|
199
|
+
|
|
200
|
+
status?: string;
|
|
201
|
+
|
|
202
|
+
updated_at?: string;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
|
|
112
206
|
export type FuncRetrieveLogsResponse =
|
|
113
207
|
| FuncRetrieveLogsResponse.FuncRuntimeLogsResponse
|
|
114
208
|
| FuncRetrieveLogsResponse.FuncInvocationLogsResponse;
|
|
@@ -318,19 +412,24 @@ export interface FuncRetrieveRevisionsParams {
|
|
|
318
412
|
'page[size]'?: number;
|
|
319
413
|
}
|
|
320
414
|
|
|
415
|
+
export interface FuncListParams extends DefaultFlatPaginationParams {}
|
|
416
|
+
|
|
321
417
|
Funcs.Export = Export;
|
|
322
418
|
|
|
323
419
|
export declare namespace Funcs {
|
|
324
420
|
export {
|
|
325
421
|
type FunctionsObservabilityPaginationMeta as FunctionsObservabilityPaginationMeta,
|
|
326
422
|
type LogsMeta as LogsMeta,
|
|
423
|
+
type FuncListResponse as FuncListResponse,
|
|
327
424
|
type FuncRetrieveLogsResponse as FuncRetrieveLogsResponse,
|
|
328
425
|
type FuncRetrieveMetricAggregatesResponse as FuncRetrieveMetricAggregatesResponse,
|
|
329
426
|
type FuncRetrieveRevisionsResponse as FuncRetrieveRevisionsResponse,
|
|
330
427
|
type FuncRetrieveShipInspectionResponse as FuncRetrieveShipInspectionResponse,
|
|
428
|
+
type FuncListResponsesDefaultFlatPagination as FuncListResponsesDefaultFlatPagination,
|
|
331
429
|
type FuncRetrieveLogsParams as FuncRetrieveLogsParams,
|
|
332
430
|
type FuncRetrieveMetricAggregatesParams as FuncRetrieveMetricAggregatesParams,
|
|
333
431
|
type FuncRetrieveRevisionsParams as FuncRetrieveRevisionsParams,
|
|
432
|
+
type FuncListParams as FuncListParams,
|
|
334
433
|
};
|
|
335
434
|
|
|
336
435
|
export {
|
|
@@ -5,6 +5,7 @@ export {
|
|
|
5
5
|
Funcs,
|
|
6
6
|
type FunctionsObservabilityPaginationMeta,
|
|
7
7
|
type LogsMeta,
|
|
8
|
+
type FuncListResponse,
|
|
8
9
|
type FuncRetrieveLogsResponse,
|
|
9
10
|
type FuncRetrieveMetricAggregatesResponse,
|
|
10
11
|
type FuncRetrieveRevisionsResponse,
|
|
@@ -12,4 +13,6 @@ export {
|
|
|
12
13
|
type FuncRetrieveLogsParams,
|
|
13
14
|
type FuncRetrieveMetricAggregatesParams,
|
|
14
15
|
type FuncRetrieveRevisionsParams,
|
|
16
|
+
type FuncListParams,
|
|
17
|
+
type FuncListResponsesDefaultFlatPagination,
|
|
15
18
|
} from './funcs';
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
export { Compute } from './compute';
|
|
3
|
+
export { Compute, type ComputeRetrieveResponse } from './compute';
|
|
4
4
|
export {
|
|
5
5
|
Funcs,
|
|
6
6
|
type FunctionsObservabilityPaginationMeta,
|
|
7
7
|
type LogsMeta,
|
|
8
|
+
type FuncListResponse,
|
|
8
9
|
type FuncRetrieveLogsResponse,
|
|
9
10
|
type FuncRetrieveMetricAggregatesResponse,
|
|
10
11
|
type FuncRetrieveRevisionsResponse,
|
|
@@ -12,4 +13,6 @@ export {
|
|
|
12
13
|
type FuncRetrieveLogsParams,
|
|
13
14
|
type FuncRetrieveMetricAggregatesParams,
|
|
14
15
|
type FuncRetrieveRevisionsParams,
|
|
16
|
+
type FuncListParams,
|
|
17
|
+
type FuncListResponsesDefaultFlatPagination,
|
|
15
18
|
} from './funcs/index';
|
package/src/resources/index.ts
CHANGED
|
@@ -197,7 +197,7 @@ export {
|
|
|
197
197
|
type CommentListParams,
|
|
198
198
|
type CommentCreateParams,
|
|
199
199
|
} from './comments';
|
|
200
|
-
export { Compute } from './compute/compute';
|
|
200
|
+
export { Compute, type ComputeRetrieveResponse } from './compute/compute';
|
|
201
201
|
export {
|
|
202
202
|
Conferences,
|
|
203
203
|
type Conference,
|
|
@@ -1411,6 +1411,18 @@ export {
|
|
|
1411
1411
|
type SubNumberOrdersReportDownloadResponse,
|
|
1412
1412
|
type SubNumberOrdersReportCreateParams,
|
|
1413
1413
|
} from './sub-number-orders-report';
|
|
1414
|
+
export {
|
|
1415
|
+
TailscaleSubnetRouters,
|
|
1416
|
+
type TailscaleSubnetRouter,
|
|
1417
|
+
type TailscaleSubnetRouterCreateResponse,
|
|
1418
|
+
type TailscaleSubnetRouterRetrieveResponse,
|
|
1419
|
+
type TailscaleSubnetRouterUpdateResponse,
|
|
1420
|
+
type TailscaleSubnetRouterDeleteResponse,
|
|
1421
|
+
type TailscaleSubnetRouterListParams,
|
|
1422
|
+
type TailscaleSubnetRouterCreateParams,
|
|
1423
|
+
type TailscaleSubnetRouterUpdateParams,
|
|
1424
|
+
type TailscaleSubnetRoutersDefaultFlatPagination,
|
|
1425
|
+
} from './tailscale-subnet-routers';
|
|
1414
1426
|
export {
|
|
1415
1427
|
TelephonyCredentials,
|
|
1416
1428
|
type TelephonyCredential,
|
|
@@ -23,7 +23,11 @@ export class NetworkCoverage extends APIResource {
|
|
|
23
23
|
export type NetworkCoverageListResponsesDefaultFlatPagination =
|
|
24
24
|
DefaultFlatPagination<NetworkCoverageListResponse>;
|
|
25
25
|
|
|
26
|
-
export type AvailableService =
|
|
26
|
+
export type AvailableService =
|
|
27
|
+
| 'cloud_vpn'
|
|
28
|
+
| 'private_wireless_gateway'
|
|
29
|
+
| 'tailscale_subnet_router'
|
|
30
|
+
| 'virtual_cross_connect';
|
|
27
31
|
|
|
28
32
|
export interface NetappsLocation17904fcfbc {
|
|
29
33
|
/**
|
|
@@ -27,6 +27,12 @@ export interface NumberLookupRetrieveResponse {
|
|
|
27
27
|
|
|
28
28
|
export namespace NumberLookupRetrieveResponse {
|
|
29
29
|
export interface Data {
|
|
30
|
+
/**
|
|
31
|
+
* Identity information for the phone number's owner, including name and postal
|
|
32
|
+
* address. Populated when `type=caller-identity` is requested.
|
|
33
|
+
*/
|
|
34
|
+
caller_identity?: Data.CallerIdentity;
|
|
35
|
+
|
|
30
36
|
caller_name?: Data.CallerName;
|
|
31
37
|
|
|
32
38
|
carrier?: Data.Carrier;
|
|
@@ -36,6 +42,12 @@ export namespace NumberLookupRetrieveResponse {
|
|
|
36
42
|
*/
|
|
37
43
|
country_code?: string;
|
|
38
44
|
|
|
45
|
+
/**
|
|
46
|
+
* Enhanced caller name for the phone number's owner. Populated when
|
|
47
|
+
* `type=enhanced-caller-name` is requested.
|
|
48
|
+
*/
|
|
49
|
+
enhanced_caller_name?: Data.EnhancedCallerName;
|
|
50
|
+
|
|
39
51
|
/**
|
|
40
52
|
* Unused
|
|
41
53
|
*/
|
|
@@ -47,6 +59,12 @@ export namespace NumberLookupRetrieveResponse {
|
|
|
47
59
|
*/
|
|
48
60
|
national_format?: string;
|
|
49
61
|
|
|
62
|
+
/**
|
|
63
|
+
* Network number ID (NNID) override for the phone number, when one applies
|
|
64
|
+
* (available only to accounts enabled for NNID); otherwise null.
|
|
65
|
+
*/
|
|
66
|
+
nnid_override?: Data.NnidOverride | null;
|
|
67
|
+
|
|
50
68
|
/**
|
|
51
69
|
* E164-formatted phone number
|
|
52
70
|
*/
|
|
@@ -58,9 +76,87 @@ export namespace NumberLookupRetrieveResponse {
|
|
|
58
76
|
* Identifies the type of record
|
|
59
77
|
*/
|
|
60
78
|
record_type?: string;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Indicates whether the phone number is valid.
|
|
82
|
+
*/
|
|
83
|
+
valid_number?: boolean;
|
|
61
84
|
}
|
|
62
85
|
|
|
63
86
|
export namespace Data {
|
|
87
|
+
/**
|
|
88
|
+
* Identity information for the phone number's owner, including name and postal
|
|
89
|
+
* address. Populated when `type=caller-identity` is requested.
|
|
90
|
+
*/
|
|
91
|
+
export interface CallerIdentity {
|
|
92
|
+
/**
|
|
93
|
+
* Postal address associated with the phone number's owner.
|
|
94
|
+
*/
|
|
95
|
+
address?: CallerIdentity.Address;
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* How strongly the phone number is linked to the returned name, on a scale of 50
|
|
99
|
+
* to 90 (higher means more supporting signals). Reflects signal strength, not
|
|
100
|
+
* probability: 70 indicates stronger, more consistent evidence than 60, not a 70%
|
|
101
|
+
* chance of being correct. As a guide, 70+ is high confidence, 60 moderate, and 50
|
|
102
|
+
* limited. Below 50 no name is returned, so scores under 50 are never present.
|
|
103
|
+
*/
|
|
104
|
+
confidence_score?: number | null;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* A lookup-specific error code if the identity could not be resolved; otherwise
|
|
108
|
+
* null.
|
|
109
|
+
*/
|
|
110
|
+
error_code?: string | null;
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* The name associated with the phone number.
|
|
114
|
+
*/
|
|
115
|
+
name?: string | null;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export namespace CallerIdentity {
|
|
119
|
+
/**
|
|
120
|
+
* Postal address associated with the phone number's owner.
|
|
121
|
+
*/
|
|
122
|
+
export interface Address {
|
|
123
|
+
/**
|
|
124
|
+
* City.
|
|
125
|
+
*/
|
|
126
|
+
city?: string | null;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Two-letter ISO 3166-1 country code.
|
|
130
|
+
*/
|
|
131
|
+
country_code?: string | null;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Postal or ZIP code.
|
|
135
|
+
*/
|
|
136
|
+
postal_code?: string | null;
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Two-letter state or province code.
|
|
140
|
+
*/
|
|
141
|
+
state_code?: string | null;
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* First line of the street address.
|
|
145
|
+
*/
|
|
146
|
+
street_line_1?: string | null;
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Second line of the street address, if any.
|
|
150
|
+
*/
|
|
151
|
+
street_line_2?: string | null;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* ZIP+4 extension, if available.
|
|
155
|
+
*/
|
|
156
|
+
zip4?: string | null;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
64
160
|
export interface CallerName {
|
|
65
161
|
/**
|
|
66
162
|
* The name of the requested phone number's owner as per the CNAM database
|
|
@@ -122,6 +218,44 @@ export namespace NumberLookupRetrieveResponse {
|
|
|
122
218
|
| 'unknown';
|
|
123
219
|
}
|
|
124
220
|
|
|
221
|
+
/**
|
|
222
|
+
* Enhanced caller name for the phone number's owner. Populated when
|
|
223
|
+
* `type=enhanced-caller-name` is requested.
|
|
224
|
+
*/
|
|
225
|
+
export interface EnhancedCallerName {
|
|
226
|
+
/**
|
|
227
|
+
* The name associated with the phone number.
|
|
228
|
+
*/
|
|
229
|
+
caller_name?: string | null;
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* A lookup-specific error code if the enhanced caller name could not be resolved;
|
|
233
|
+
* otherwise null.
|
|
234
|
+
*/
|
|
235
|
+
error_code?: string | null;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* Network number ID (NNID) override for the phone number, when one applies
|
|
240
|
+
* (available only to accounts enabled for NNID); otherwise null.
|
|
241
|
+
*/
|
|
242
|
+
export interface NnidOverride {
|
|
243
|
+
/**
|
|
244
|
+
* Name associated with the NNID.
|
|
245
|
+
*/
|
|
246
|
+
name?: string;
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* The network number ID.
|
|
250
|
+
*/
|
|
251
|
+
nnid?: string;
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* The NNID type.
|
|
255
|
+
*/
|
|
256
|
+
type?: string;
|
|
257
|
+
}
|
|
258
|
+
|
|
125
259
|
export interface Portability {
|
|
126
260
|
/**
|
|
127
261
|
* Alternative SPID (Service Provider ID). Often used when a carrier is using a
|
|
@@ -146,9 +280,22 @@ export namespace NumberLookupRetrieveResponse {
|
|
|
146
280
|
city?: string;
|
|
147
281
|
|
|
148
282
|
/**
|
|
149
|
-
*
|
|
283
|
+
* The line type of the phone number. Uses the same value set as carrier.type; see
|
|
284
|
+
* the API reference for the full list.
|
|
150
285
|
*/
|
|
151
|
-
line_type?:
|
|
286
|
+
line_type?:
|
|
287
|
+
| 'fixed line'
|
|
288
|
+
| 'mobile'
|
|
289
|
+
| 'voip'
|
|
290
|
+
| 'fixed line or mobile'
|
|
291
|
+
| 'toll free'
|
|
292
|
+
| 'premium rate'
|
|
293
|
+
| 'shared cost'
|
|
294
|
+
| 'personal number'
|
|
295
|
+
| 'pager'
|
|
296
|
+
| 'uan'
|
|
297
|
+
| 'voicemail'
|
|
298
|
+
| 'unknown';
|
|
152
299
|
|
|
153
300
|
/**
|
|
154
301
|
* Local Routing Number, if assigned to the requested phone number
|
|
@@ -193,9 +340,12 @@ export namespace NumberLookupRetrieveResponse {
|
|
|
193
340
|
|
|
194
341
|
export interface NumberLookupRetrieveParams {
|
|
195
342
|
/**
|
|
196
|
-
* Specifies the type of number lookup to be performed
|
|
343
|
+
* Specifies the type of number lookup to be performed. May be supplied more than
|
|
344
|
+
* once to request several data sources in a single call (for example,
|
|
345
|
+
* `?type=carrier&type=enhanced-caller-name`). Each requested type populates the
|
|
346
|
+
* corresponding object in the response.
|
|
197
347
|
*/
|
|
198
|
-
type?: 'carrier' | 'caller-name';
|
|
348
|
+
type?: 'carrier' | 'caller-name' | 'caller-identity' | 'enhanced-caller-name';
|
|
199
349
|
}
|
|
200
350
|
|
|
201
351
|
export declare namespace NumberLookup {
|