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.
Files changed (114) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/client.d.mts +6 -6
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +6 -6
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs.map +1 -1
  8. package/package.json +1 -1
  9. package/resources/calls/actions.d.mts +183 -6
  10. package/resources/calls/actions.d.mts.map +1 -1
  11. package/resources/calls/actions.d.ts +183 -6
  12. package/resources/calls/actions.d.ts.map +1 -1
  13. package/resources/calls/actions.js.map +1 -1
  14. package/resources/calls/actions.mjs.map +1 -1
  15. package/resources/index.d.mts +3 -3
  16. package/resources/index.d.mts.map +1 -1
  17. package/resources/index.d.ts +3 -3
  18. package/resources/index.d.ts.map +1 -1
  19. package/resources/index.js.map +1 -1
  20. package/resources/index.mjs.map +1 -1
  21. package/resources/legacy/reporting/batch-detail-records/batch-detail-records.d.mts +41 -6
  22. package/resources/legacy/reporting/batch-detail-records/batch-detail-records.d.mts.map +1 -1
  23. package/resources/legacy/reporting/batch-detail-records/batch-detail-records.d.ts +41 -6
  24. package/resources/legacy/reporting/batch-detail-records/batch-detail-records.d.ts.map +1 -1
  25. package/resources/legacy/reporting/batch-detail-records/batch-detail-records.js.map +1 -1
  26. package/resources/legacy/reporting/batch-detail-records/batch-detail-records.mjs.map +1 -1
  27. package/resources/legacy/reporting/batch-detail-records/index.d.mts +4 -4
  28. package/resources/legacy/reporting/batch-detail-records/index.d.mts.map +1 -1
  29. package/resources/legacy/reporting/batch-detail-records/index.d.ts +4 -4
  30. package/resources/legacy/reporting/batch-detail-records/index.d.ts.map +1 -1
  31. package/resources/legacy/reporting/batch-detail-records/index.js.map +1 -1
  32. package/resources/legacy/reporting/batch-detail-records/index.mjs.map +1 -1
  33. package/resources/legacy/reporting/batch-detail-records/messaging.d.mts +29 -280
  34. package/resources/legacy/reporting/batch-detail-records/messaging.d.mts.map +1 -1
  35. package/resources/legacy/reporting/batch-detail-records/messaging.d.ts +29 -280
  36. package/resources/legacy/reporting/batch-detail-records/messaging.d.ts.map +1 -1
  37. package/resources/legacy/reporting/batch-detail-records/messaging.js.map +1 -1
  38. package/resources/legacy/reporting/batch-detail-records/messaging.mjs.map +1 -1
  39. package/resources/legacy/reporting/batch-detail-records/speech-to-text.d.mts +20 -73
  40. package/resources/legacy/reporting/batch-detail-records/speech-to-text.d.mts.map +1 -1
  41. package/resources/legacy/reporting/batch-detail-records/speech-to-text.d.ts +20 -73
  42. package/resources/legacy/reporting/batch-detail-records/speech-to-text.d.ts.map +1 -1
  43. package/resources/legacy/reporting/batch-detail-records/voice.d.mts +75 -473
  44. package/resources/legacy/reporting/batch-detail-records/voice.d.mts.map +1 -1
  45. package/resources/legacy/reporting/batch-detail-records/voice.d.ts +75 -473
  46. package/resources/legacy/reporting/batch-detail-records/voice.d.ts.map +1 -1
  47. package/resources/legacy/reporting/batch-detail-records/voice.js.map +1 -1
  48. package/resources/legacy/reporting/batch-detail-records/voice.mjs.map +1 -1
  49. package/resources/legacy/reporting/index.d.mts +1 -1
  50. package/resources/legacy/reporting/index.d.mts.map +1 -1
  51. package/resources/legacy/reporting/index.d.ts +1 -1
  52. package/resources/legacy/reporting/index.d.ts.map +1 -1
  53. package/resources/legacy/reporting/index.js.map +1 -1
  54. package/resources/legacy/reporting/index.mjs.map +1 -1
  55. package/resources/legacy/reporting/reporting.d.mts +2 -2
  56. package/resources/legacy/reporting/reporting.d.mts.map +1 -1
  57. package/resources/legacy/reporting/reporting.d.ts +2 -2
  58. package/resources/legacy/reporting/reporting.d.ts.map +1 -1
  59. package/resources/legacy/reporting/reporting.js.map +1 -1
  60. package/resources/legacy/reporting/reporting.mjs.map +1 -1
  61. package/resources/legacy/reporting/usage-reports/index.d.mts +2 -2
  62. package/resources/legacy/reporting/usage-reports/index.d.mts.map +1 -1
  63. package/resources/legacy/reporting/usage-reports/index.d.ts +2 -2
  64. package/resources/legacy/reporting/usage-reports/index.d.ts.map +1 -1
  65. package/resources/legacy/reporting/usage-reports/index.js.map +1 -1
  66. package/resources/legacy/reporting/usage-reports/index.mjs.map +1 -1
  67. package/resources/legacy/reporting/usage-reports/messaging.d.mts +31 -124
  68. package/resources/legacy/reporting/usage-reports/messaging.d.mts.map +1 -1
  69. package/resources/legacy/reporting/usage-reports/messaging.d.ts +31 -124
  70. package/resources/legacy/reporting/usage-reports/messaging.d.ts.map +1 -1
  71. package/resources/legacy/reporting/usage-reports/usage-reports.d.mts +4 -4
  72. package/resources/legacy/reporting/usage-reports/usage-reports.d.mts.map +1 -1
  73. package/resources/legacy/reporting/usage-reports/usage-reports.d.ts +4 -4
  74. package/resources/legacy/reporting/usage-reports/usage-reports.d.ts.map +1 -1
  75. package/resources/legacy/reporting/usage-reports/usage-reports.js.map +1 -1
  76. package/resources/legacy/reporting/usage-reports/usage-reports.mjs.map +1 -1
  77. package/resources/legacy/reporting/usage-reports/voice.d.mts +32 -128
  78. package/resources/legacy/reporting/usage-reports/voice.d.mts.map +1 -1
  79. package/resources/legacy/reporting/usage-reports/voice.d.ts +32 -128
  80. package/resources/legacy/reporting/usage-reports/voice.d.ts.map +1 -1
  81. package/resources/oauth-clients.d.mts +71 -275
  82. package/resources/oauth-clients.d.mts.map +1 -1
  83. package/resources/oauth-clients.d.ts +71 -275
  84. package/resources/oauth-clients.d.ts.map +1 -1
  85. package/resources/oauth-grants.d.mts +30 -86
  86. package/resources/oauth-grants.d.mts.map +1 -1
  87. package/resources/oauth-grants.d.ts +30 -86
  88. package/resources/oauth-grants.d.ts.map +1 -1
  89. package/resources/verify-profiles.d.mts +8 -22
  90. package/resources/verify-profiles.d.mts.map +1 -1
  91. package/resources/verify-profiles.d.ts +8 -22
  92. package/resources/verify-profiles.d.ts.map +1 -1
  93. package/src/client.ts +6 -0
  94. package/src/resources/calls/actions.ts +555 -6
  95. package/src/resources/index.ts +3 -0
  96. package/src/resources/legacy/reporting/batch-detail-records/batch-detail-records.ts +49 -0
  97. package/src/resources/legacy/reporting/batch-detail-records/index.ts +4 -1
  98. package/src/resources/legacy/reporting/batch-detail-records/messaging.ts +30 -357
  99. package/src/resources/legacy/reporting/batch-detail-records/speech-to-text.ts +21 -94
  100. package/src/resources/legacy/reporting/batch-detail-records/voice.ts +89 -572
  101. package/src/resources/legacy/reporting/index.ts +1 -1
  102. package/src/resources/legacy/reporting/reporting.ts +2 -2
  103. package/src/resources/legacy/reporting/usage-reports/index.ts +2 -0
  104. package/src/resources/legacy/reporting/usage-reports/messaging.ts +31 -159
  105. package/src/resources/legacy/reporting/usage-reports/usage-reports.ts +4 -0
  106. package/src/resources/legacy/reporting/usage-reports/voice.ts +32 -163
  107. package/src/resources/oauth-clients.ts +72 -323
  108. package/src/resources/oauth-grants.ts +31 -98
  109. package/src/resources/verify-profiles.ts +10 -27
  110. package/src/version.ts +1 -1
  111. package/version.d.mts +1 -1
  112. package/version.d.ts +1 -1
  113. package/version.js +1 -1
  114. 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
- export interface VoiceCreateResponse {
85
+ /**
86
+ * Response object for CDR detailed report
87
+ */
88
+ export interface CdrDetailedReqResponse {
85
89
  /**
86
- * Response object for CDR detailed report
90
+ * Unique identifier for the report
87
91
  */
88
- data?: VoiceCreateResponse.Data;
89
- }
92
+ id?: string;
90
93
 
91
- export namespace VoiceCreateResponse {
92
94
  /**
93
- * Response object for CDR detailed report
95
+ * List of call types (Inbound = 1, Outbound = 2)
94
96
  */
95
- export interface Data {
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
- export namespace Data {
181
- /**
182
- * Query filter criteria. Note: The first filter object must specify filter_type as
183
- * 'and'. You cannot follow an 'or' with another 'and'.
184
- */
185
- export interface Filter {
186
- /**
187
- * Billing group UUID to filter by
188
- */
189
- billing_group?: string;
190
-
191
- /**
192
- * Called line identification (destination number)
193
- */
194
- cld?: string;
195
-
196
- /**
197
- * Filter type for CLD matching
198
- */
199
- cld_filter?: 'contains' | 'starts_with' | 'ends_with';
200
-
201
- /**
202
- * Calling line identification (caller ID)
203
- */
204
- cli?: string;
205
-
206
- /**
207
- * Filter type for CLI matching
208
- */
209
- cli_filter?: 'contains' | 'starts_with' | 'ends_with';
210
-
211
- /**
212
- * Logical operator for combining filters
213
- */
214
- filter_type?: 'and' | 'or';
215
-
216
- /**
217
- * Tag name to filter by
218
- */
219
- tags_list?: string;
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 VoiceRetrieveResponse {
173
+ export interface VoiceCreateResponse {
225
174
  /**
226
175
  * Response object for CDR detailed report
227
176
  */
228
- data?: VoiceRetrieveResponse.Data;
177
+ data?: CdrDetailedReqResponse;
229
178
  }
230
179
 
231
- export namespace VoiceRetrieveResponse {
180
+ export interface VoiceRetrieveResponse {
232
181
  /**
233
182
  * Response object for CDR detailed report
234
183
  */
235
- export interface Data {
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<VoiceListResponse.Data>;
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?: VoiceDeleteResponse.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<VoiceCreateParams.Filter>;
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,