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,6 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../../../core/resource';
|
|
4
|
+
import * as BatchDetailRecordsAPI from './batch-detail-records';
|
|
4
5
|
import { APIPromise } from '../../../../core/api-promise';
|
|
5
6
|
import { RequestOptions } from '../../../../internal/request-options';
|
|
6
7
|
import { path } from '../../../../internal/utils/path';
|
|
@@ -81,424 +82,115 @@ export class Voice extends APIResource {
|
|
|
81
82
|
}
|
|
82
83
|
}
|
|
83
84
|
|
|
84
|
-
|
|
85
|
+
/**
|
|
86
|
+
* Response object for CDR detailed report
|
|
87
|
+
*/
|
|
88
|
+
export interface CdrDetailedReqResponse {
|
|
85
89
|
/**
|
|
86
|
-
*
|
|
90
|
+
* Unique identifier for the report
|
|
87
91
|
*/
|
|
88
|
-
|
|
89
|
-
}
|
|
92
|
+
id?: string;
|
|
90
93
|
|
|
91
|
-
export namespace VoiceCreateResponse {
|
|
92
94
|
/**
|
|
93
|
-
*
|
|
95
|
+
* List of call types (Inbound = 1, Outbound = 2)
|
|
94
96
|
*/
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* Unique identifier for the report
|
|
98
|
-
*/
|
|
99
|
-
id?: string;
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* List of call types (Inbound = 1, Outbound = 2)
|
|
103
|
-
*/
|
|
104
|
-
call_types?: Array<number>;
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* List of connections
|
|
108
|
-
*/
|
|
109
|
-
connections?: Array<number>;
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* Creation date of the report
|
|
113
|
-
*/
|
|
114
|
-
created_at?: string;
|
|
115
|
-
|
|
116
|
-
/**
|
|
117
|
-
* End time in ISO format
|
|
118
|
-
*/
|
|
119
|
-
end_time?: string;
|
|
120
|
-
|
|
121
|
-
/**
|
|
122
|
-
* List of filters
|
|
123
|
-
*/
|
|
124
|
-
filters?: Array<Data.Filter>;
|
|
125
|
-
|
|
126
|
-
/**
|
|
127
|
-
* List of managed accounts
|
|
128
|
-
*/
|
|
129
|
-
managed_accounts?: Array<string>;
|
|
130
|
-
|
|
131
|
-
record_type?: string;
|
|
132
|
-
|
|
133
|
-
/**
|
|
134
|
-
* List of record types (Complete = 1, Incomplete = 2, Errors = 3)
|
|
135
|
-
*/
|
|
136
|
-
record_types?: Array<number>;
|
|
137
|
-
|
|
138
|
-
/**
|
|
139
|
-
* Name of the report
|
|
140
|
-
*/
|
|
141
|
-
report_name?: string;
|
|
142
|
-
|
|
143
|
-
/**
|
|
144
|
-
* URL to download the report
|
|
145
|
-
*/
|
|
146
|
-
report_url?: string;
|
|
147
|
-
|
|
148
|
-
/**
|
|
149
|
-
* Number of retries
|
|
150
|
-
*/
|
|
151
|
-
retry?: number;
|
|
152
|
-
|
|
153
|
-
/**
|
|
154
|
-
* Source of the report. Valid values: calls (default), call-control, fax-api,
|
|
155
|
-
* webrtc
|
|
156
|
-
*/
|
|
157
|
-
source?: string;
|
|
158
|
-
|
|
159
|
-
/**
|
|
160
|
-
* Start time in ISO format
|
|
161
|
-
*/
|
|
162
|
-
start_time?: string;
|
|
163
|
-
|
|
164
|
-
/**
|
|
165
|
-
* Status of the report (Pending = 1, Complete = 2, Failed = 3, Expired = 4)
|
|
166
|
-
*/
|
|
167
|
-
status?: number;
|
|
168
|
-
|
|
169
|
-
/**
|
|
170
|
-
* Timezone for the report
|
|
171
|
-
*/
|
|
172
|
-
timezone?: string;
|
|
173
|
-
|
|
174
|
-
/**
|
|
175
|
-
* Last update date of the report
|
|
176
|
-
*/
|
|
177
|
-
updated_at?: string;
|
|
178
|
-
}
|
|
97
|
+
call_types?: Array<number>;
|
|
179
98
|
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
99
|
+
/**
|
|
100
|
+
* List of connections
|
|
101
|
+
*/
|
|
102
|
+
connections?: Array<number>;
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Creation date of the report
|
|
106
|
+
*/
|
|
107
|
+
created_at?: string;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* End time in ISO format
|
|
111
|
+
*/
|
|
112
|
+
end_time?: string;
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* List of filters
|
|
116
|
+
*/
|
|
117
|
+
filters?: Array<BatchDetailRecordsAPI.Filter>;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* List of managed accounts
|
|
121
|
+
*/
|
|
122
|
+
managed_accounts?: Array<string>;
|
|
123
|
+
|
|
124
|
+
record_type?: string;
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* List of record types (Complete = 1, Incomplete = 2, Errors = 3)
|
|
128
|
+
*/
|
|
129
|
+
record_types?: Array<number>;
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Name of the report
|
|
133
|
+
*/
|
|
134
|
+
report_name?: string;
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* URL to download the report
|
|
138
|
+
*/
|
|
139
|
+
report_url?: string;
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Number of retries
|
|
143
|
+
*/
|
|
144
|
+
retry?: number;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Source of the report. Valid values: calls (default), call-control, fax-api,
|
|
148
|
+
* webrtc
|
|
149
|
+
*/
|
|
150
|
+
source?: string;
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Start time in ISO format
|
|
154
|
+
*/
|
|
155
|
+
start_time?: string;
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Status of the report (Pending = 1, Complete = 2, Failed = 3, Expired = 4)
|
|
159
|
+
*/
|
|
160
|
+
status?: number;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Timezone for the report
|
|
164
|
+
*/
|
|
165
|
+
timezone?: string;
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Last update date of the report
|
|
169
|
+
*/
|
|
170
|
+
updated_at?: string;
|
|
222
171
|
}
|
|
223
172
|
|
|
224
|
-
export interface
|
|
173
|
+
export interface VoiceCreateResponse {
|
|
225
174
|
/**
|
|
226
175
|
* Response object for CDR detailed report
|
|
227
176
|
*/
|
|
228
|
-
data?:
|
|
177
|
+
data?: CdrDetailedReqResponse;
|
|
229
178
|
}
|
|
230
179
|
|
|
231
|
-
export
|
|
180
|
+
export interface VoiceRetrieveResponse {
|
|
232
181
|
/**
|
|
233
182
|
* Response object for CDR detailed report
|
|
234
183
|
*/
|
|
235
|
-
|
|
236
|
-
/**
|
|
237
|
-
* Unique identifier for the report
|
|
238
|
-
*/
|
|
239
|
-
id?: string;
|
|
240
|
-
|
|
241
|
-
/**
|
|
242
|
-
* List of call types (Inbound = 1, Outbound = 2)
|
|
243
|
-
*/
|
|
244
|
-
call_types?: Array<number>;
|
|
245
|
-
|
|
246
|
-
/**
|
|
247
|
-
* List of connections
|
|
248
|
-
*/
|
|
249
|
-
connections?: Array<number>;
|
|
250
|
-
|
|
251
|
-
/**
|
|
252
|
-
* Creation date of the report
|
|
253
|
-
*/
|
|
254
|
-
created_at?: string;
|
|
255
|
-
|
|
256
|
-
/**
|
|
257
|
-
* End time in ISO format
|
|
258
|
-
*/
|
|
259
|
-
end_time?: string;
|
|
260
|
-
|
|
261
|
-
/**
|
|
262
|
-
* List of filters
|
|
263
|
-
*/
|
|
264
|
-
filters?: Array<Data.Filter>;
|
|
265
|
-
|
|
266
|
-
/**
|
|
267
|
-
* List of managed accounts
|
|
268
|
-
*/
|
|
269
|
-
managed_accounts?: Array<string>;
|
|
270
|
-
|
|
271
|
-
record_type?: string;
|
|
272
|
-
|
|
273
|
-
/**
|
|
274
|
-
* List of record types (Complete = 1, Incomplete = 2, Errors = 3)
|
|
275
|
-
*/
|
|
276
|
-
record_types?: Array<number>;
|
|
277
|
-
|
|
278
|
-
/**
|
|
279
|
-
* Name of the report
|
|
280
|
-
*/
|
|
281
|
-
report_name?: string;
|
|
282
|
-
|
|
283
|
-
/**
|
|
284
|
-
* URL to download the report
|
|
285
|
-
*/
|
|
286
|
-
report_url?: string;
|
|
287
|
-
|
|
288
|
-
/**
|
|
289
|
-
* Number of retries
|
|
290
|
-
*/
|
|
291
|
-
retry?: number;
|
|
292
|
-
|
|
293
|
-
/**
|
|
294
|
-
* Source of the report. Valid values: calls (default), call-control, fax-api,
|
|
295
|
-
* webrtc
|
|
296
|
-
*/
|
|
297
|
-
source?: string;
|
|
298
|
-
|
|
299
|
-
/**
|
|
300
|
-
* Start time in ISO format
|
|
301
|
-
*/
|
|
302
|
-
start_time?: string;
|
|
303
|
-
|
|
304
|
-
/**
|
|
305
|
-
* Status of the report (Pending = 1, Complete = 2, Failed = 3, Expired = 4)
|
|
306
|
-
*/
|
|
307
|
-
status?: number;
|
|
308
|
-
|
|
309
|
-
/**
|
|
310
|
-
* Timezone for the report
|
|
311
|
-
*/
|
|
312
|
-
timezone?: string;
|
|
313
|
-
|
|
314
|
-
/**
|
|
315
|
-
* Last update date of the report
|
|
316
|
-
*/
|
|
317
|
-
updated_at?: string;
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
export namespace Data {
|
|
321
|
-
/**
|
|
322
|
-
* Query filter criteria. Note: The first filter object must specify filter_type as
|
|
323
|
-
* 'and'. You cannot follow an 'or' with another 'and'.
|
|
324
|
-
*/
|
|
325
|
-
export interface Filter {
|
|
326
|
-
/**
|
|
327
|
-
* Billing group UUID to filter by
|
|
328
|
-
*/
|
|
329
|
-
billing_group?: string;
|
|
330
|
-
|
|
331
|
-
/**
|
|
332
|
-
* Called line identification (destination number)
|
|
333
|
-
*/
|
|
334
|
-
cld?: string;
|
|
335
|
-
|
|
336
|
-
/**
|
|
337
|
-
* Filter type for CLD matching
|
|
338
|
-
*/
|
|
339
|
-
cld_filter?: 'contains' | 'starts_with' | 'ends_with';
|
|
340
|
-
|
|
341
|
-
/**
|
|
342
|
-
* Calling line identification (caller ID)
|
|
343
|
-
*/
|
|
344
|
-
cli?: string;
|
|
345
|
-
|
|
346
|
-
/**
|
|
347
|
-
* Filter type for CLI matching
|
|
348
|
-
*/
|
|
349
|
-
cli_filter?: 'contains' | 'starts_with' | 'ends_with';
|
|
350
|
-
|
|
351
|
-
/**
|
|
352
|
-
* Logical operator for combining filters
|
|
353
|
-
*/
|
|
354
|
-
filter_type?: 'and' | 'or';
|
|
355
|
-
|
|
356
|
-
/**
|
|
357
|
-
* Tag name to filter by
|
|
358
|
-
*/
|
|
359
|
-
tags_list?: string;
|
|
360
|
-
}
|
|
361
|
-
}
|
|
184
|
+
data?: CdrDetailedReqResponse;
|
|
362
185
|
}
|
|
363
186
|
|
|
364
187
|
export interface VoiceListResponse {
|
|
365
|
-
data?: Array<
|
|
188
|
+
data?: Array<CdrDetailedReqResponse>;
|
|
366
189
|
|
|
367
190
|
meta?: VoiceListResponse.Meta;
|
|
368
191
|
}
|
|
369
192
|
|
|
370
193
|
export namespace VoiceListResponse {
|
|
371
|
-
/**
|
|
372
|
-
* Response object for CDR detailed report
|
|
373
|
-
*/
|
|
374
|
-
export interface Data {
|
|
375
|
-
/**
|
|
376
|
-
* Unique identifier for the report
|
|
377
|
-
*/
|
|
378
|
-
id?: string;
|
|
379
|
-
|
|
380
|
-
/**
|
|
381
|
-
* List of call types (Inbound = 1, Outbound = 2)
|
|
382
|
-
*/
|
|
383
|
-
call_types?: Array<number>;
|
|
384
|
-
|
|
385
|
-
/**
|
|
386
|
-
* List of connections
|
|
387
|
-
*/
|
|
388
|
-
connections?: Array<number>;
|
|
389
|
-
|
|
390
|
-
/**
|
|
391
|
-
* Creation date of the report
|
|
392
|
-
*/
|
|
393
|
-
created_at?: string;
|
|
394
|
-
|
|
395
|
-
/**
|
|
396
|
-
* End time in ISO format
|
|
397
|
-
*/
|
|
398
|
-
end_time?: string;
|
|
399
|
-
|
|
400
|
-
/**
|
|
401
|
-
* List of filters
|
|
402
|
-
*/
|
|
403
|
-
filters?: Array<Data.Filter>;
|
|
404
|
-
|
|
405
|
-
/**
|
|
406
|
-
* List of managed accounts
|
|
407
|
-
*/
|
|
408
|
-
managed_accounts?: Array<string>;
|
|
409
|
-
|
|
410
|
-
record_type?: string;
|
|
411
|
-
|
|
412
|
-
/**
|
|
413
|
-
* List of record types (Complete = 1, Incomplete = 2, Errors = 3)
|
|
414
|
-
*/
|
|
415
|
-
record_types?: Array<number>;
|
|
416
|
-
|
|
417
|
-
/**
|
|
418
|
-
* Name of the report
|
|
419
|
-
*/
|
|
420
|
-
report_name?: string;
|
|
421
|
-
|
|
422
|
-
/**
|
|
423
|
-
* URL to download the report
|
|
424
|
-
*/
|
|
425
|
-
report_url?: string;
|
|
426
|
-
|
|
427
|
-
/**
|
|
428
|
-
* Number of retries
|
|
429
|
-
*/
|
|
430
|
-
retry?: number;
|
|
431
|
-
|
|
432
|
-
/**
|
|
433
|
-
* Source of the report. Valid values: calls (default), call-control, fax-api,
|
|
434
|
-
* webrtc
|
|
435
|
-
*/
|
|
436
|
-
source?: string;
|
|
437
|
-
|
|
438
|
-
/**
|
|
439
|
-
* Start time in ISO format
|
|
440
|
-
*/
|
|
441
|
-
start_time?: string;
|
|
442
|
-
|
|
443
|
-
/**
|
|
444
|
-
* Status of the report (Pending = 1, Complete = 2, Failed = 3, Expired = 4)
|
|
445
|
-
*/
|
|
446
|
-
status?: number;
|
|
447
|
-
|
|
448
|
-
/**
|
|
449
|
-
* Timezone for the report
|
|
450
|
-
*/
|
|
451
|
-
timezone?: string;
|
|
452
|
-
|
|
453
|
-
/**
|
|
454
|
-
* Last update date of the report
|
|
455
|
-
*/
|
|
456
|
-
updated_at?: string;
|
|
457
|
-
}
|
|
458
|
-
|
|
459
|
-
export namespace Data {
|
|
460
|
-
/**
|
|
461
|
-
* Query filter criteria. Note: The first filter object must specify filter_type as
|
|
462
|
-
* 'and'. You cannot follow an 'or' with another 'and'.
|
|
463
|
-
*/
|
|
464
|
-
export interface Filter {
|
|
465
|
-
/**
|
|
466
|
-
* Billing group UUID to filter by
|
|
467
|
-
*/
|
|
468
|
-
billing_group?: string;
|
|
469
|
-
|
|
470
|
-
/**
|
|
471
|
-
* Called line identification (destination number)
|
|
472
|
-
*/
|
|
473
|
-
cld?: string;
|
|
474
|
-
|
|
475
|
-
/**
|
|
476
|
-
* Filter type for CLD matching
|
|
477
|
-
*/
|
|
478
|
-
cld_filter?: 'contains' | 'starts_with' | 'ends_with';
|
|
479
|
-
|
|
480
|
-
/**
|
|
481
|
-
* Calling line identification (caller ID)
|
|
482
|
-
*/
|
|
483
|
-
cli?: string;
|
|
484
|
-
|
|
485
|
-
/**
|
|
486
|
-
* Filter type for CLI matching
|
|
487
|
-
*/
|
|
488
|
-
cli_filter?: 'contains' | 'starts_with' | 'ends_with';
|
|
489
|
-
|
|
490
|
-
/**
|
|
491
|
-
* Logical operator for combining filters
|
|
492
|
-
*/
|
|
493
|
-
filter_type?: 'and' | 'or';
|
|
494
|
-
|
|
495
|
-
/**
|
|
496
|
-
* Tag name to filter by
|
|
497
|
-
*/
|
|
498
|
-
tags_list?: string;
|
|
499
|
-
}
|
|
500
|
-
}
|
|
501
|
-
|
|
502
194
|
export interface Meta {
|
|
503
195
|
page_number?: number;
|
|
504
196
|
|
|
@@ -514,140 +206,7 @@ export interface VoiceDeleteResponse {
|
|
|
514
206
|
/**
|
|
515
207
|
* Response object for CDR detailed report
|
|
516
208
|
*/
|
|
517
|
-
data?:
|
|
518
|
-
}
|
|
519
|
-
|
|
520
|
-
export namespace VoiceDeleteResponse {
|
|
521
|
-
/**
|
|
522
|
-
* Response object for CDR detailed report
|
|
523
|
-
*/
|
|
524
|
-
export interface Data {
|
|
525
|
-
/**
|
|
526
|
-
* Unique identifier for the report
|
|
527
|
-
*/
|
|
528
|
-
id?: string;
|
|
529
|
-
|
|
530
|
-
/**
|
|
531
|
-
* List of call types (Inbound = 1, Outbound = 2)
|
|
532
|
-
*/
|
|
533
|
-
call_types?: Array<number>;
|
|
534
|
-
|
|
535
|
-
/**
|
|
536
|
-
* List of connections
|
|
537
|
-
*/
|
|
538
|
-
connections?: Array<number>;
|
|
539
|
-
|
|
540
|
-
/**
|
|
541
|
-
* Creation date of the report
|
|
542
|
-
*/
|
|
543
|
-
created_at?: string;
|
|
544
|
-
|
|
545
|
-
/**
|
|
546
|
-
* End time in ISO format
|
|
547
|
-
*/
|
|
548
|
-
end_time?: string;
|
|
549
|
-
|
|
550
|
-
/**
|
|
551
|
-
* List of filters
|
|
552
|
-
*/
|
|
553
|
-
filters?: Array<Data.Filter>;
|
|
554
|
-
|
|
555
|
-
/**
|
|
556
|
-
* List of managed accounts
|
|
557
|
-
*/
|
|
558
|
-
managed_accounts?: Array<string>;
|
|
559
|
-
|
|
560
|
-
record_type?: string;
|
|
561
|
-
|
|
562
|
-
/**
|
|
563
|
-
* List of record types (Complete = 1, Incomplete = 2, Errors = 3)
|
|
564
|
-
*/
|
|
565
|
-
record_types?: Array<number>;
|
|
566
|
-
|
|
567
|
-
/**
|
|
568
|
-
* Name of the report
|
|
569
|
-
*/
|
|
570
|
-
report_name?: string;
|
|
571
|
-
|
|
572
|
-
/**
|
|
573
|
-
* URL to download the report
|
|
574
|
-
*/
|
|
575
|
-
report_url?: string;
|
|
576
|
-
|
|
577
|
-
/**
|
|
578
|
-
* Number of retries
|
|
579
|
-
*/
|
|
580
|
-
retry?: number;
|
|
581
|
-
|
|
582
|
-
/**
|
|
583
|
-
* Source of the report. Valid values: calls (default), call-control, fax-api,
|
|
584
|
-
* webrtc
|
|
585
|
-
*/
|
|
586
|
-
source?: string;
|
|
587
|
-
|
|
588
|
-
/**
|
|
589
|
-
* Start time in ISO format
|
|
590
|
-
*/
|
|
591
|
-
start_time?: string;
|
|
592
|
-
|
|
593
|
-
/**
|
|
594
|
-
* Status of the report (Pending = 1, Complete = 2, Failed = 3, Expired = 4)
|
|
595
|
-
*/
|
|
596
|
-
status?: number;
|
|
597
|
-
|
|
598
|
-
/**
|
|
599
|
-
* Timezone for the report
|
|
600
|
-
*/
|
|
601
|
-
timezone?: string;
|
|
602
|
-
|
|
603
|
-
/**
|
|
604
|
-
* Last update date of the report
|
|
605
|
-
*/
|
|
606
|
-
updated_at?: string;
|
|
607
|
-
}
|
|
608
|
-
|
|
609
|
-
export namespace Data {
|
|
610
|
-
/**
|
|
611
|
-
* Query filter criteria. Note: The first filter object must specify filter_type as
|
|
612
|
-
* 'and'. You cannot follow an 'or' with another 'and'.
|
|
613
|
-
*/
|
|
614
|
-
export interface Filter {
|
|
615
|
-
/**
|
|
616
|
-
* Billing group UUID to filter by
|
|
617
|
-
*/
|
|
618
|
-
billing_group?: string;
|
|
619
|
-
|
|
620
|
-
/**
|
|
621
|
-
* Called line identification (destination number)
|
|
622
|
-
*/
|
|
623
|
-
cld?: string;
|
|
624
|
-
|
|
625
|
-
/**
|
|
626
|
-
* Filter type for CLD matching
|
|
627
|
-
*/
|
|
628
|
-
cld_filter?: 'contains' | 'starts_with' | 'ends_with';
|
|
629
|
-
|
|
630
|
-
/**
|
|
631
|
-
* Calling line identification (caller ID)
|
|
632
|
-
*/
|
|
633
|
-
cli?: string;
|
|
634
|
-
|
|
635
|
-
/**
|
|
636
|
-
* Filter type for CLI matching
|
|
637
|
-
*/
|
|
638
|
-
cli_filter?: 'contains' | 'starts_with' | 'ends_with';
|
|
639
|
-
|
|
640
|
-
/**
|
|
641
|
-
* Logical operator for combining filters
|
|
642
|
-
*/
|
|
643
|
-
filter_type?: 'and' | 'or';
|
|
644
|
-
|
|
645
|
-
/**
|
|
646
|
-
* Tag name to filter by
|
|
647
|
-
*/
|
|
648
|
-
tags_list?: string;
|
|
649
|
-
}
|
|
650
|
-
}
|
|
209
|
+
data?: CdrDetailedReqResponse;
|
|
651
210
|
}
|
|
652
211
|
|
|
653
212
|
/**
|
|
@@ -704,7 +263,7 @@ export interface VoiceCreateParams {
|
|
|
704
263
|
/**
|
|
705
264
|
* List of filters to apply
|
|
706
265
|
*/
|
|
707
|
-
filters?: Array<
|
|
266
|
+
filters?: Array<BatchDetailRecordsAPI.Filter>;
|
|
708
267
|
|
|
709
268
|
/**
|
|
710
269
|
* Whether to include all metadata
|
|
@@ -743,51 +302,9 @@ export interface VoiceCreateParams {
|
|
|
743
302
|
timezone?: string;
|
|
744
303
|
}
|
|
745
304
|
|
|
746
|
-
export namespace VoiceCreateParams {
|
|
747
|
-
/**
|
|
748
|
-
* Query filter criteria. Note: The first filter object must specify filter_type as
|
|
749
|
-
* 'and'. You cannot follow an 'or' with another 'and'.
|
|
750
|
-
*/
|
|
751
|
-
export interface Filter {
|
|
752
|
-
/**
|
|
753
|
-
* Billing group UUID to filter by
|
|
754
|
-
*/
|
|
755
|
-
billing_group?: string;
|
|
756
|
-
|
|
757
|
-
/**
|
|
758
|
-
* Called line identification (destination number)
|
|
759
|
-
*/
|
|
760
|
-
cld?: string;
|
|
761
|
-
|
|
762
|
-
/**
|
|
763
|
-
* Filter type for CLD matching
|
|
764
|
-
*/
|
|
765
|
-
cld_filter?: 'contains' | 'starts_with' | 'ends_with';
|
|
766
|
-
|
|
767
|
-
/**
|
|
768
|
-
* Calling line identification (caller ID)
|
|
769
|
-
*/
|
|
770
|
-
cli?: string;
|
|
771
|
-
|
|
772
|
-
/**
|
|
773
|
-
* Filter type for CLI matching
|
|
774
|
-
*/
|
|
775
|
-
cli_filter?: 'contains' | 'starts_with' | 'ends_with';
|
|
776
|
-
|
|
777
|
-
/**
|
|
778
|
-
* Logical operator for combining filters
|
|
779
|
-
*/
|
|
780
|
-
filter_type?: 'and' | 'or';
|
|
781
|
-
|
|
782
|
-
/**
|
|
783
|
-
* Tag name to filter by
|
|
784
|
-
*/
|
|
785
|
-
tags_list?: string;
|
|
786
|
-
}
|
|
787
|
-
}
|
|
788
|
-
|
|
789
305
|
export declare namespace Voice {
|
|
790
306
|
export {
|
|
307
|
+
type CdrDetailedReqResponse as CdrDetailedReqResponse,
|
|
791
308
|
type VoiceCreateResponse as VoiceCreateResponse,
|
|
792
309
|
type VoiceRetrieveResponse as VoiceRetrieveResponse,
|
|
793
310
|
type VoiceListResponse as VoiceListResponse,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
export { BatchDetailRecords } from './batch-detail-records/index';
|
|
3
|
+
export { BatchDetailRecords, type Filter } from './batch-detail-records/index';
|
|
4
4
|
export { Reporting } from './reporting';
|
|
5
5
|
export {
|
|
6
6
|
UsageReports,
|