telnyx 3.3.3 → 3.4.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 +15 -0
- package/client.d.mts +6 -6
- package/client.d.mts.map +1 -1
- package/client.d.ts +6 -6
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/calls/actions.d.mts +183 -6
- package/resources/calls/actions.d.mts.map +1 -1
- package/resources/calls/actions.d.ts +183 -6
- package/resources/calls/actions.d.ts.map +1 -1
- package/resources/calls/actions.js.map +1 -1
- package/resources/calls/actions.mjs.map +1 -1
- package/resources/index.d.mts +3 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/legacy/reporting/batch-detail-records/batch-detail-records.d.mts +41 -6
- package/resources/legacy/reporting/batch-detail-records/batch-detail-records.d.mts.map +1 -1
- package/resources/legacy/reporting/batch-detail-records/batch-detail-records.d.ts +41 -6
- package/resources/legacy/reporting/batch-detail-records/batch-detail-records.d.ts.map +1 -1
- package/resources/legacy/reporting/batch-detail-records/batch-detail-records.js.map +1 -1
- package/resources/legacy/reporting/batch-detail-records/batch-detail-records.mjs.map +1 -1
- package/resources/legacy/reporting/batch-detail-records/index.d.mts +4 -4
- package/resources/legacy/reporting/batch-detail-records/index.d.mts.map +1 -1
- package/resources/legacy/reporting/batch-detail-records/index.d.ts +4 -4
- package/resources/legacy/reporting/batch-detail-records/index.d.ts.map +1 -1
- package/resources/legacy/reporting/batch-detail-records/index.js.map +1 -1
- package/resources/legacy/reporting/batch-detail-records/index.mjs.map +1 -1
- package/resources/legacy/reporting/batch-detail-records/messaging.d.mts +29 -280
- package/resources/legacy/reporting/batch-detail-records/messaging.d.mts.map +1 -1
- package/resources/legacy/reporting/batch-detail-records/messaging.d.ts +29 -280
- package/resources/legacy/reporting/batch-detail-records/messaging.d.ts.map +1 -1
- package/resources/legacy/reporting/batch-detail-records/messaging.js.map +1 -1
- package/resources/legacy/reporting/batch-detail-records/messaging.mjs.map +1 -1
- package/resources/legacy/reporting/batch-detail-records/speech-to-text.d.mts +20 -73
- package/resources/legacy/reporting/batch-detail-records/speech-to-text.d.mts.map +1 -1
- package/resources/legacy/reporting/batch-detail-records/speech-to-text.d.ts +20 -73
- package/resources/legacy/reporting/batch-detail-records/speech-to-text.d.ts.map +1 -1
- package/resources/legacy/reporting/batch-detail-records/voice.d.mts +75 -473
- package/resources/legacy/reporting/batch-detail-records/voice.d.mts.map +1 -1
- package/resources/legacy/reporting/batch-detail-records/voice.d.ts +75 -473
- package/resources/legacy/reporting/batch-detail-records/voice.d.ts.map +1 -1
- package/resources/legacy/reporting/batch-detail-records/voice.js.map +1 -1
- package/resources/legacy/reporting/batch-detail-records/voice.mjs.map +1 -1
- package/resources/legacy/reporting/index.d.mts +1 -1
- package/resources/legacy/reporting/index.d.mts.map +1 -1
- package/resources/legacy/reporting/index.d.ts +1 -1
- package/resources/legacy/reporting/index.d.ts.map +1 -1
- package/resources/legacy/reporting/index.js.map +1 -1
- package/resources/legacy/reporting/index.mjs.map +1 -1
- package/resources/legacy/reporting/reporting.d.mts +2 -2
- package/resources/legacy/reporting/reporting.d.mts.map +1 -1
- package/resources/legacy/reporting/reporting.d.ts +2 -2
- package/resources/legacy/reporting/reporting.d.ts.map +1 -1
- package/resources/legacy/reporting/reporting.js.map +1 -1
- package/resources/legacy/reporting/reporting.mjs.map +1 -1
- package/resources/legacy/reporting/usage-reports/index.d.mts +2 -2
- package/resources/legacy/reporting/usage-reports/index.d.mts.map +1 -1
- package/resources/legacy/reporting/usage-reports/index.d.ts +2 -2
- package/resources/legacy/reporting/usage-reports/index.d.ts.map +1 -1
- package/resources/legacy/reporting/usage-reports/index.js.map +1 -1
- package/resources/legacy/reporting/usage-reports/index.mjs.map +1 -1
- package/resources/legacy/reporting/usage-reports/messaging.d.mts +31 -124
- package/resources/legacy/reporting/usage-reports/messaging.d.mts.map +1 -1
- package/resources/legacy/reporting/usage-reports/messaging.d.ts +31 -124
- package/resources/legacy/reporting/usage-reports/messaging.d.ts.map +1 -1
- package/resources/legacy/reporting/usage-reports/usage-reports.d.mts +4 -4
- package/resources/legacy/reporting/usage-reports/usage-reports.d.mts.map +1 -1
- package/resources/legacy/reporting/usage-reports/usage-reports.d.ts +4 -4
- package/resources/legacy/reporting/usage-reports/usage-reports.d.ts.map +1 -1
- package/resources/legacy/reporting/usage-reports/usage-reports.js.map +1 -1
- package/resources/legacy/reporting/usage-reports/usage-reports.mjs.map +1 -1
- package/resources/legacy/reporting/usage-reports/voice.d.mts +32 -128
- package/resources/legacy/reporting/usage-reports/voice.d.mts.map +1 -1
- package/resources/legacy/reporting/usage-reports/voice.d.ts +32 -128
- package/resources/legacy/reporting/usage-reports/voice.d.ts.map +1 -1
- package/resources/oauth-clients.d.mts +71 -275
- package/resources/oauth-clients.d.mts.map +1 -1
- package/resources/oauth-clients.d.ts +71 -275
- package/resources/oauth-clients.d.ts.map +1 -1
- package/resources/oauth-grants.d.mts +30 -86
- package/resources/oauth-grants.d.mts.map +1 -1
- package/resources/oauth-grants.d.ts +30 -86
- package/resources/oauth-grants.d.ts.map +1 -1
- package/resources/verify-profiles.d.mts +8 -22
- package/resources/verify-profiles.d.mts.map +1 -1
- package/resources/verify-profiles.d.ts +8 -22
- package/resources/verify-profiles.d.ts.map +1 -1
- package/src/client.ts +6 -0
- package/src/resources/calls/actions.ts +555 -6
- package/src/resources/index.ts +3 -0
- package/src/resources/legacy/reporting/batch-detail-records/batch-detail-records.ts +49 -0
- package/src/resources/legacy/reporting/batch-detail-records/index.ts +4 -1
- package/src/resources/legacy/reporting/batch-detail-records/messaging.ts +30 -357
- package/src/resources/legacy/reporting/batch-detail-records/speech-to-text.ts +21 -94
- package/src/resources/legacy/reporting/batch-detail-records/voice.ts +89 -572
- package/src/resources/legacy/reporting/index.ts +1 -1
- package/src/resources/legacy/reporting/reporting.ts +2 -2
- package/src/resources/legacy/reporting/usage-reports/index.ts +2 -0
- package/src/resources/legacy/reporting/usage-reports/messaging.ts +31 -159
- package/src/resources/legacy/reporting/usage-reports/usage-reports.ts +4 -0
- package/src/resources/legacy/reporting/usage-reports/voice.ts +32 -163
- package/src/resources/oauth-clients.ts +72 -323
- package/src/resources/oauth-grants.ts +31 -98
- package/src/resources/verify-profiles.ts +10 -27
- 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
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { APIResource } from "../../../../core/resource.mjs";
|
|
2
|
+
import * as BatchDetailRecordsAPI from "./batch-detail-records.mjs";
|
|
2
3
|
import { APIPromise } from "../../../../core/api-promise.mjs";
|
|
3
4
|
import { RequestOptions } from "../../../../internal/request-options.mjs";
|
|
4
5
|
export declare class Voice extends APIResource {
|
|
@@ -62,348 +63,94 @@ export declare class Voice extends APIResource {
|
|
|
62
63
|
*/
|
|
63
64
|
retrieveFields(options?: RequestOptions): APIPromise<VoiceRetrieveFieldsResponse>;
|
|
64
65
|
}
|
|
65
|
-
|
|
66
|
+
/**
|
|
67
|
+
* Response object for CDR detailed report
|
|
68
|
+
*/
|
|
69
|
+
export interface CdrDetailedReqResponse {
|
|
66
70
|
/**
|
|
67
|
-
*
|
|
71
|
+
* Unique identifier for the report
|
|
68
72
|
*/
|
|
69
|
-
|
|
70
|
-
}
|
|
71
|
-
export declare namespace VoiceCreateResponse {
|
|
73
|
+
id?: string;
|
|
72
74
|
/**
|
|
73
|
-
*
|
|
75
|
+
* List of call types (Inbound = 1, Outbound = 2)
|
|
74
76
|
*/
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
* Timezone for the report
|
|
136
|
-
*/
|
|
137
|
-
timezone?: string;
|
|
138
|
-
/**
|
|
139
|
-
* Last update date of the report
|
|
140
|
-
*/
|
|
141
|
-
updated_at?: string;
|
|
142
|
-
}
|
|
143
|
-
namespace Data {
|
|
144
|
-
/**
|
|
145
|
-
* Query filter criteria. Note: The first filter object must specify filter_type as
|
|
146
|
-
* 'and'. You cannot follow an 'or' with another 'and'.
|
|
147
|
-
*/
|
|
148
|
-
interface Filter {
|
|
149
|
-
/**
|
|
150
|
-
* Billing group UUID to filter by
|
|
151
|
-
*/
|
|
152
|
-
billing_group?: string;
|
|
153
|
-
/**
|
|
154
|
-
* Called line identification (destination number)
|
|
155
|
-
*/
|
|
156
|
-
cld?: string;
|
|
157
|
-
/**
|
|
158
|
-
* Filter type for CLD matching
|
|
159
|
-
*/
|
|
160
|
-
cld_filter?: 'contains' | 'starts_with' | 'ends_with';
|
|
161
|
-
/**
|
|
162
|
-
* Calling line identification (caller ID)
|
|
163
|
-
*/
|
|
164
|
-
cli?: string;
|
|
165
|
-
/**
|
|
166
|
-
* Filter type for CLI matching
|
|
167
|
-
*/
|
|
168
|
-
cli_filter?: 'contains' | 'starts_with' | 'ends_with';
|
|
169
|
-
/**
|
|
170
|
-
* Logical operator for combining filters
|
|
171
|
-
*/
|
|
172
|
-
filter_type?: 'and' | 'or';
|
|
173
|
-
/**
|
|
174
|
-
* Tag name to filter by
|
|
175
|
-
*/
|
|
176
|
-
tags_list?: string;
|
|
177
|
-
}
|
|
178
|
-
}
|
|
77
|
+
call_types?: Array<number>;
|
|
78
|
+
/**
|
|
79
|
+
* List of connections
|
|
80
|
+
*/
|
|
81
|
+
connections?: Array<number>;
|
|
82
|
+
/**
|
|
83
|
+
* Creation date of the report
|
|
84
|
+
*/
|
|
85
|
+
created_at?: string;
|
|
86
|
+
/**
|
|
87
|
+
* End time in ISO format
|
|
88
|
+
*/
|
|
89
|
+
end_time?: string;
|
|
90
|
+
/**
|
|
91
|
+
* List of filters
|
|
92
|
+
*/
|
|
93
|
+
filters?: Array<BatchDetailRecordsAPI.Filter>;
|
|
94
|
+
/**
|
|
95
|
+
* List of managed accounts
|
|
96
|
+
*/
|
|
97
|
+
managed_accounts?: Array<string>;
|
|
98
|
+
record_type?: string;
|
|
99
|
+
/**
|
|
100
|
+
* List of record types (Complete = 1, Incomplete = 2, Errors = 3)
|
|
101
|
+
*/
|
|
102
|
+
record_types?: Array<number>;
|
|
103
|
+
/**
|
|
104
|
+
* Name of the report
|
|
105
|
+
*/
|
|
106
|
+
report_name?: string;
|
|
107
|
+
/**
|
|
108
|
+
* URL to download the report
|
|
109
|
+
*/
|
|
110
|
+
report_url?: string;
|
|
111
|
+
/**
|
|
112
|
+
* Number of retries
|
|
113
|
+
*/
|
|
114
|
+
retry?: number;
|
|
115
|
+
/**
|
|
116
|
+
* Source of the report. Valid values: calls (default), call-control, fax-api,
|
|
117
|
+
* webrtc
|
|
118
|
+
*/
|
|
119
|
+
source?: string;
|
|
120
|
+
/**
|
|
121
|
+
* Start time in ISO format
|
|
122
|
+
*/
|
|
123
|
+
start_time?: string;
|
|
124
|
+
/**
|
|
125
|
+
* Status of the report (Pending = 1, Complete = 2, Failed = 3, Expired = 4)
|
|
126
|
+
*/
|
|
127
|
+
status?: number;
|
|
128
|
+
/**
|
|
129
|
+
* Timezone for the report
|
|
130
|
+
*/
|
|
131
|
+
timezone?: string;
|
|
132
|
+
/**
|
|
133
|
+
* Last update date of the report
|
|
134
|
+
*/
|
|
135
|
+
updated_at?: string;
|
|
179
136
|
}
|
|
180
|
-
export interface
|
|
137
|
+
export interface VoiceCreateResponse {
|
|
181
138
|
/**
|
|
182
139
|
* Response object for CDR detailed report
|
|
183
140
|
*/
|
|
184
|
-
data?:
|
|
141
|
+
data?: CdrDetailedReqResponse;
|
|
185
142
|
}
|
|
186
|
-
export
|
|
143
|
+
export interface VoiceRetrieveResponse {
|
|
187
144
|
/**
|
|
188
145
|
* Response object for CDR detailed report
|
|
189
146
|
*/
|
|
190
|
-
|
|
191
|
-
/**
|
|
192
|
-
* Unique identifier for the report
|
|
193
|
-
*/
|
|
194
|
-
id?: string;
|
|
195
|
-
/**
|
|
196
|
-
* List of call types (Inbound = 1, Outbound = 2)
|
|
197
|
-
*/
|
|
198
|
-
call_types?: Array<number>;
|
|
199
|
-
/**
|
|
200
|
-
* List of connections
|
|
201
|
-
*/
|
|
202
|
-
connections?: Array<number>;
|
|
203
|
-
/**
|
|
204
|
-
* Creation date of the report
|
|
205
|
-
*/
|
|
206
|
-
created_at?: string;
|
|
207
|
-
/**
|
|
208
|
-
* End time in ISO format
|
|
209
|
-
*/
|
|
210
|
-
end_time?: string;
|
|
211
|
-
/**
|
|
212
|
-
* List of filters
|
|
213
|
-
*/
|
|
214
|
-
filters?: Array<Data.Filter>;
|
|
215
|
-
/**
|
|
216
|
-
* List of managed accounts
|
|
217
|
-
*/
|
|
218
|
-
managed_accounts?: Array<string>;
|
|
219
|
-
record_type?: string;
|
|
220
|
-
/**
|
|
221
|
-
* List of record types (Complete = 1, Incomplete = 2, Errors = 3)
|
|
222
|
-
*/
|
|
223
|
-
record_types?: Array<number>;
|
|
224
|
-
/**
|
|
225
|
-
* Name of the report
|
|
226
|
-
*/
|
|
227
|
-
report_name?: string;
|
|
228
|
-
/**
|
|
229
|
-
* URL to download the report
|
|
230
|
-
*/
|
|
231
|
-
report_url?: string;
|
|
232
|
-
/**
|
|
233
|
-
* Number of retries
|
|
234
|
-
*/
|
|
235
|
-
retry?: number;
|
|
236
|
-
/**
|
|
237
|
-
* Source of the report. Valid values: calls (default), call-control, fax-api,
|
|
238
|
-
* webrtc
|
|
239
|
-
*/
|
|
240
|
-
source?: string;
|
|
241
|
-
/**
|
|
242
|
-
* Start time in ISO format
|
|
243
|
-
*/
|
|
244
|
-
start_time?: string;
|
|
245
|
-
/**
|
|
246
|
-
* Status of the report (Pending = 1, Complete = 2, Failed = 3, Expired = 4)
|
|
247
|
-
*/
|
|
248
|
-
status?: number;
|
|
249
|
-
/**
|
|
250
|
-
* Timezone for the report
|
|
251
|
-
*/
|
|
252
|
-
timezone?: string;
|
|
253
|
-
/**
|
|
254
|
-
* Last update date of the report
|
|
255
|
-
*/
|
|
256
|
-
updated_at?: string;
|
|
257
|
-
}
|
|
258
|
-
namespace Data {
|
|
259
|
-
/**
|
|
260
|
-
* Query filter criteria. Note: The first filter object must specify filter_type as
|
|
261
|
-
* 'and'. You cannot follow an 'or' with another 'and'.
|
|
262
|
-
*/
|
|
263
|
-
interface Filter {
|
|
264
|
-
/**
|
|
265
|
-
* Billing group UUID to filter by
|
|
266
|
-
*/
|
|
267
|
-
billing_group?: string;
|
|
268
|
-
/**
|
|
269
|
-
* Called line identification (destination number)
|
|
270
|
-
*/
|
|
271
|
-
cld?: string;
|
|
272
|
-
/**
|
|
273
|
-
* Filter type for CLD matching
|
|
274
|
-
*/
|
|
275
|
-
cld_filter?: 'contains' | 'starts_with' | 'ends_with';
|
|
276
|
-
/**
|
|
277
|
-
* Calling line identification (caller ID)
|
|
278
|
-
*/
|
|
279
|
-
cli?: string;
|
|
280
|
-
/**
|
|
281
|
-
* Filter type for CLI matching
|
|
282
|
-
*/
|
|
283
|
-
cli_filter?: 'contains' | 'starts_with' | 'ends_with';
|
|
284
|
-
/**
|
|
285
|
-
* Logical operator for combining filters
|
|
286
|
-
*/
|
|
287
|
-
filter_type?: 'and' | 'or';
|
|
288
|
-
/**
|
|
289
|
-
* Tag name to filter by
|
|
290
|
-
*/
|
|
291
|
-
tags_list?: string;
|
|
292
|
-
}
|
|
293
|
-
}
|
|
147
|
+
data?: CdrDetailedReqResponse;
|
|
294
148
|
}
|
|
295
149
|
export interface VoiceListResponse {
|
|
296
|
-
data?: Array<
|
|
150
|
+
data?: Array<CdrDetailedReqResponse>;
|
|
297
151
|
meta?: VoiceListResponse.Meta;
|
|
298
152
|
}
|
|
299
153
|
export declare namespace VoiceListResponse {
|
|
300
|
-
/**
|
|
301
|
-
* Response object for CDR detailed report
|
|
302
|
-
*/
|
|
303
|
-
interface Data {
|
|
304
|
-
/**
|
|
305
|
-
* Unique identifier for the report
|
|
306
|
-
*/
|
|
307
|
-
id?: string;
|
|
308
|
-
/**
|
|
309
|
-
* List of call types (Inbound = 1, Outbound = 2)
|
|
310
|
-
*/
|
|
311
|
-
call_types?: Array<number>;
|
|
312
|
-
/**
|
|
313
|
-
* List of connections
|
|
314
|
-
*/
|
|
315
|
-
connections?: Array<number>;
|
|
316
|
-
/**
|
|
317
|
-
* Creation date of the report
|
|
318
|
-
*/
|
|
319
|
-
created_at?: string;
|
|
320
|
-
/**
|
|
321
|
-
* End time in ISO format
|
|
322
|
-
*/
|
|
323
|
-
end_time?: string;
|
|
324
|
-
/**
|
|
325
|
-
* List of filters
|
|
326
|
-
*/
|
|
327
|
-
filters?: Array<Data.Filter>;
|
|
328
|
-
/**
|
|
329
|
-
* List of managed accounts
|
|
330
|
-
*/
|
|
331
|
-
managed_accounts?: Array<string>;
|
|
332
|
-
record_type?: string;
|
|
333
|
-
/**
|
|
334
|
-
* List of record types (Complete = 1, Incomplete = 2, Errors = 3)
|
|
335
|
-
*/
|
|
336
|
-
record_types?: Array<number>;
|
|
337
|
-
/**
|
|
338
|
-
* Name of the report
|
|
339
|
-
*/
|
|
340
|
-
report_name?: string;
|
|
341
|
-
/**
|
|
342
|
-
* URL to download the report
|
|
343
|
-
*/
|
|
344
|
-
report_url?: string;
|
|
345
|
-
/**
|
|
346
|
-
* Number of retries
|
|
347
|
-
*/
|
|
348
|
-
retry?: number;
|
|
349
|
-
/**
|
|
350
|
-
* Source of the report. Valid values: calls (default), call-control, fax-api,
|
|
351
|
-
* webrtc
|
|
352
|
-
*/
|
|
353
|
-
source?: string;
|
|
354
|
-
/**
|
|
355
|
-
* Start time in ISO format
|
|
356
|
-
*/
|
|
357
|
-
start_time?: string;
|
|
358
|
-
/**
|
|
359
|
-
* Status of the report (Pending = 1, Complete = 2, Failed = 3, Expired = 4)
|
|
360
|
-
*/
|
|
361
|
-
status?: number;
|
|
362
|
-
/**
|
|
363
|
-
* Timezone for the report
|
|
364
|
-
*/
|
|
365
|
-
timezone?: string;
|
|
366
|
-
/**
|
|
367
|
-
* Last update date of the report
|
|
368
|
-
*/
|
|
369
|
-
updated_at?: string;
|
|
370
|
-
}
|
|
371
|
-
namespace Data {
|
|
372
|
-
/**
|
|
373
|
-
* Query filter criteria. Note: The first filter object must specify filter_type as
|
|
374
|
-
* 'and'. You cannot follow an 'or' with another 'and'.
|
|
375
|
-
*/
|
|
376
|
-
interface Filter {
|
|
377
|
-
/**
|
|
378
|
-
* Billing group UUID to filter by
|
|
379
|
-
*/
|
|
380
|
-
billing_group?: string;
|
|
381
|
-
/**
|
|
382
|
-
* Called line identification (destination number)
|
|
383
|
-
*/
|
|
384
|
-
cld?: string;
|
|
385
|
-
/**
|
|
386
|
-
* Filter type for CLD matching
|
|
387
|
-
*/
|
|
388
|
-
cld_filter?: 'contains' | 'starts_with' | 'ends_with';
|
|
389
|
-
/**
|
|
390
|
-
* Calling line identification (caller ID)
|
|
391
|
-
*/
|
|
392
|
-
cli?: string;
|
|
393
|
-
/**
|
|
394
|
-
* Filter type for CLI matching
|
|
395
|
-
*/
|
|
396
|
-
cli_filter?: 'contains' | 'starts_with' | 'ends_with';
|
|
397
|
-
/**
|
|
398
|
-
* Logical operator for combining filters
|
|
399
|
-
*/
|
|
400
|
-
filter_type?: 'and' | 'or';
|
|
401
|
-
/**
|
|
402
|
-
* Tag name to filter by
|
|
403
|
-
*/
|
|
404
|
-
tags_list?: string;
|
|
405
|
-
}
|
|
406
|
-
}
|
|
407
154
|
interface Meta {
|
|
408
155
|
page_number?: number;
|
|
409
156
|
page_size?: number;
|
|
@@ -415,116 +162,7 @@ export interface VoiceDeleteResponse {
|
|
|
415
162
|
/**
|
|
416
163
|
* Response object for CDR detailed report
|
|
417
164
|
*/
|
|
418
|
-
data?:
|
|
419
|
-
}
|
|
420
|
-
export declare namespace VoiceDeleteResponse {
|
|
421
|
-
/**
|
|
422
|
-
* Response object for CDR detailed report
|
|
423
|
-
*/
|
|
424
|
-
interface Data {
|
|
425
|
-
/**
|
|
426
|
-
* Unique identifier for the report
|
|
427
|
-
*/
|
|
428
|
-
id?: string;
|
|
429
|
-
/**
|
|
430
|
-
* List of call types (Inbound = 1, Outbound = 2)
|
|
431
|
-
*/
|
|
432
|
-
call_types?: Array<number>;
|
|
433
|
-
/**
|
|
434
|
-
* List of connections
|
|
435
|
-
*/
|
|
436
|
-
connections?: Array<number>;
|
|
437
|
-
/**
|
|
438
|
-
* Creation date of the report
|
|
439
|
-
*/
|
|
440
|
-
created_at?: string;
|
|
441
|
-
/**
|
|
442
|
-
* End time in ISO format
|
|
443
|
-
*/
|
|
444
|
-
end_time?: string;
|
|
445
|
-
/**
|
|
446
|
-
* List of filters
|
|
447
|
-
*/
|
|
448
|
-
filters?: Array<Data.Filter>;
|
|
449
|
-
/**
|
|
450
|
-
* List of managed accounts
|
|
451
|
-
*/
|
|
452
|
-
managed_accounts?: Array<string>;
|
|
453
|
-
record_type?: string;
|
|
454
|
-
/**
|
|
455
|
-
* List of record types (Complete = 1, Incomplete = 2, Errors = 3)
|
|
456
|
-
*/
|
|
457
|
-
record_types?: Array<number>;
|
|
458
|
-
/**
|
|
459
|
-
* Name of the report
|
|
460
|
-
*/
|
|
461
|
-
report_name?: string;
|
|
462
|
-
/**
|
|
463
|
-
* URL to download the report
|
|
464
|
-
*/
|
|
465
|
-
report_url?: string;
|
|
466
|
-
/**
|
|
467
|
-
* Number of retries
|
|
468
|
-
*/
|
|
469
|
-
retry?: number;
|
|
470
|
-
/**
|
|
471
|
-
* Source of the report. Valid values: calls (default), call-control, fax-api,
|
|
472
|
-
* webrtc
|
|
473
|
-
*/
|
|
474
|
-
source?: string;
|
|
475
|
-
/**
|
|
476
|
-
* Start time in ISO format
|
|
477
|
-
*/
|
|
478
|
-
start_time?: string;
|
|
479
|
-
/**
|
|
480
|
-
* Status of the report (Pending = 1, Complete = 2, Failed = 3, Expired = 4)
|
|
481
|
-
*/
|
|
482
|
-
status?: number;
|
|
483
|
-
/**
|
|
484
|
-
* Timezone for the report
|
|
485
|
-
*/
|
|
486
|
-
timezone?: string;
|
|
487
|
-
/**
|
|
488
|
-
* Last update date of the report
|
|
489
|
-
*/
|
|
490
|
-
updated_at?: string;
|
|
491
|
-
}
|
|
492
|
-
namespace Data {
|
|
493
|
-
/**
|
|
494
|
-
* Query filter criteria. Note: The first filter object must specify filter_type as
|
|
495
|
-
* 'and'. You cannot follow an 'or' with another 'and'.
|
|
496
|
-
*/
|
|
497
|
-
interface Filter {
|
|
498
|
-
/**
|
|
499
|
-
* Billing group UUID to filter by
|
|
500
|
-
*/
|
|
501
|
-
billing_group?: string;
|
|
502
|
-
/**
|
|
503
|
-
* Called line identification (destination number)
|
|
504
|
-
*/
|
|
505
|
-
cld?: string;
|
|
506
|
-
/**
|
|
507
|
-
* Filter type for CLD matching
|
|
508
|
-
*/
|
|
509
|
-
cld_filter?: 'contains' | 'starts_with' | 'ends_with';
|
|
510
|
-
/**
|
|
511
|
-
* Calling line identification (caller ID)
|
|
512
|
-
*/
|
|
513
|
-
cli?: string;
|
|
514
|
-
/**
|
|
515
|
-
* Filter type for CLI matching
|
|
516
|
-
*/
|
|
517
|
-
cli_filter?: 'contains' | 'starts_with' | 'ends_with';
|
|
518
|
-
/**
|
|
519
|
-
* Logical operator for combining filters
|
|
520
|
-
*/
|
|
521
|
-
filter_type?: 'and' | 'or';
|
|
522
|
-
/**
|
|
523
|
-
* Tag name to filter by
|
|
524
|
-
*/
|
|
525
|
-
tags_list?: string;
|
|
526
|
-
}
|
|
527
|
-
}
|
|
165
|
+
data?: CdrDetailedReqResponse;
|
|
528
166
|
}
|
|
529
167
|
/**
|
|
530
168
|
* Available CDR report fields grouped by category
|
|
@@ -571,7 +209,7 @@ export interface VoiceCreateParams {
|
|
|
571
209
|
/**
|
|
572
210
|
* List of filters to apply
|
|
573
211
|
*/
|
|
574
|
-
filters?: Array<
|
|
212
|
+
filters?: Array<BatchDetailRecordsAPI.Filter>;
|
|
575
213
|
/**
|
|
576
214
|
* Whether to include all metadata
|
|
577
215
|
*/
|
|
@@ -602,43 +240,7 @@ export interface VoiceCreateParams {
|
|
|
602
240
|
*/
|
|
603
241
|
timezone?: string;
|
|
604
242
|
}
|
|
605
|
-
export declare namespace VoiceCreateParams {
|
|
606
|
-
/**
|
|
607
|
-
* Query filter criteria. Note: The first filter object must specify filter_type as
|
|
608
|
-
* 'and'. You cannot follow an 'or' with another 'and'.
|
|
609
|
-
*/
|
|
610
|
-
interface Filter {
|
|
611
|
-
/**
|
|
612
|
-
* Billing group UUID to filter by
|
|
613
|
-
*/
|
|
614
|
-
billing_group?: string;
|
|
615
|
-
/**
|
|
616
|
-
* Called line identification (destination number)
|
|
617
|
-
*/
|
|
618
|
-
cld?: string;
|
|
619
|
-
/**
|
|
620
|
-
* Filter type for CLD matching
|
|
621
|
-
*/
|
|
622
|
-
cld_filter?: 'contains' | 'starts_with' | 'ends_with';
|
|
623
|
-
/**
|
|
624
|
-
* Calling line identification (caller ID)
|
|
625
|
-
*/
|
|
626
|
-
cli?: string;
|
|
627
|
-
/**
|
|
628
|
-
* Filter type for CLI matching
|
|
629
|
-
*/
|
|
630
|
-
cli_filter?: 'contains' | 'starts_with' | 'ends_with';
|
|
631
|
-
/**
|
|
632
|
-
* Logical operator for combining filters
|
|
633
|
-
*/
|
|
634
|
-
filter_type?: 'and' | 'or';
|
|
635
|
-
/**
|
|
636
|
-
* Tag name to filter by
|
|
637
|
-
*/
|
|
638
|
-
tags_list?: string;
|
|
639
|
-
}
|
|
640
|
-
}
|
|
641
243
|
export declare namespace Voice {
|
|
642
|
-
export { type VoiceCreateResponse as VoiceCreateResponse, type VoiceRetrieveResponse as VoiceRetrieveResponse, type VoiceListResponse as VoiceListResponse, type VoiceDeleteResponse as VoiceDeleteResponse, type VoiceRetrieveFieldsResponse as VoiceRetrieveFieldsResponse, type VoiceCreateParams as VoiceCreateParams, };
|
|
244
|
+
export { type CdrDetailedReqResponse as CdrDetailedReqResponse, type VoiceCreateResponse as VoiceCreateResponse, type VoiceRetrieveResponse as VoiceRetrieveResponse, type VoiceListResponse as VoiceListResponse, type VoiceDeleteResponse as VoiceDeleteResponse, type VoiceRetrieveFieldsResponse as VoiceRetrieveFieldsResponse, type VoiceCreateParams as VoiceCreateParams, };
|
|
643
245
|
}
|
|
644
246
|
//# sourceMappingURL=voice.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"voice.d.mts","sourceRoot":"","sources":["../../../../src/resources/legacy/reporting/batch-detail-records/voice.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;IAI1F;;;;;;;;;;OAU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