telnyx 6.70.0 → 6.71.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 +11 -0
- package/client.d.mts +11 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +11 -4
- package/client.d.ts.map +1 -1
- package/client.js +6 -0
- package/client.js.map +1 -1
- package/client.mjs +6 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/calls/actions.d.mts +260 -247
- package/resources/calls/actions.d.mts.map +1 -1
- package/resources/calls/actions.d.ts +260 -247
- 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/calls/calls.d.mts +210 -3
- package/resources/calls/calls.d.mts.map +1 -1
- package/resources/calls/calls.d.ts +210 -3
- package/resources/calls/calls.d.ts.map +1 -1
- package/resources/calls/calls.js.map +1 -1
- package/resources/calls/calls.mjs.map +1 -1
- package/resources/calls/index.d.mts +2 -2
- package/resources/calls/index.d.mts.map +1 -1
- package/resources/calls/index.d.ts +2 -2
- package/resources/calls/index.d.ts.map +1 -1
- package/resources/calls/index.js.map +1 -1
- package/resources/calls/index.mjs.map +1 -1
- package/resources/conferences/actions.d.mts +1 -9
- package/resources/conferences/actions.d.mts.map +1 -1
- package/resources/conferences/actions.d.ts +1 -9
- package/resources/conferences/actions.d.ts.map +1 -1
- package/resources/index.d.mts +3 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +4 -2
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/shared.d.mts +6 -0
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +6 -0
- package/resources/shared.d.ts.map +1 -1
- package/resources/speech-to-text.d.mts +81 -0
- package/resources/speech-to-text.d.mts.map +1 -0
- package/resources/speech-to-text.d.ts +81 -0
- package/resources/speech-to-text.d.ts.map +1 -0
- package/resources/speech-to-text.js +36 -0
- package/resources/speech-to-text.js.map +1 -0
- package/resources/speech-to-text.mjs +32 -0
- package/resources/speech-to-text.mjs.map +1 -0
- package/resources/voice-sdk-call-reports.d.mts +30 -105
- package/resources/voice-sdk-call-reports.d.mts.map +1 -1
- package/resources/voice-sdk-call-reports.d.ts +30 -105
- package/resources/voice-sdk-call-reports.d.ts.map +1 -1
- package/resources/voice-sdk-call-reports.js.map +1 -1
- package/resources/voice-sdk-call-reports.mjs.map +1 -1
- package/resources/whatsapp/index.d.mts +1 -1
- package/resources/whatsapp/index.d.mts.map +1 -1
- package/resources/whatsapp/index.d.ts +1 -1
- package/resources/whatsapp/index.d.ts.map +1 -1
- package/resources/whatsapp/index.js.map +1 -1
- package/resources/whatsapp/index.mjs.map +1 -1
- package/resources/whatsapp/user-data.d.mts +16 -33
- package/resources/whatsapp/user-data.d.mts.map +1 -1
- package/resources/whatsapp/user-data.d.ts +16 -33
- package/resources/whatsapp/user-data.d.ts.map +1 -1
- package/resources/whatsapp/whatsapp.d.mts +2 -2
- package/resources/whatsapp/whatsapp.d.mts.map +1 -1
- package/resources/whatsapp/whatsapp.d.ts +2 -2
- package/resources/whatsapp/whatsapp.d.ts.map +1 -1
- package/resources/whatsapp/whatsapp.js.map +1 -1
- package/resources/whatsapp/whatsapp.mjs.map +1 -1
- package/src/client.ts +23 -0
- package/src/resources/calls/actions.ts +331 -320
- package/src/resources/calls/calls.ts +272 -0
- package/src/resources/calls/index.ts +4 -0
- package/src/resources/conferences/actions.ts +1 -10
- package/src/resources/index.ts +8 -0
- package/src/resources/shared.ts +7 -0
- package/src/resources/speech-to-text.ts +114 -0
- package/src/resources/voice-sdk-call-reports.ts +33 -116
- package/src/resources/whatsapp/index.ts +1 -0
- package/src/resources/whatsapp/user-data.ts +17 -38
- package/src/resources/whatsapp/whatsapp.ts +2 -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
|
@@ -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 VoiceSDKCallReportsAPI from './voice-sdk-call-reports';
|
|
4
5
|
import { APIPromise } from '../core/api-promise';
|
|
5
6
|
import { DefaultFlatPagination, type DefaultFlatPaginationParams, PagePromise } from '../core/pagination';
|
|
6
7
|
import { RequestOptions } from '../internal/request-options';
|
|
@@ -39,6 +40,33 @@ export class VoiceSDKCallReports extends APIResource {
|
|
|
39
40
|
export type VoiceSDKCallReportListResponsesDefaultFlatPagination =
|
|
40
41
|
DefaultFlatPagination<VoiceSDKCallReportListResponse>;
|
|
41
42
|
|
|
43
|
+
/**
|
|
44
|
+
* A raw Voice SDK log entry. Additional SDK-specific fields may be present.
|
|
45
|
+
*/
|
|
46
|
+
export interface VoiceSDKCallReportLogEntry {
|
|
47
|
+
/**
|
|
48
|
+
* Raw structured context attached to the log entry.
|
|
49
|
+
*/
|
|
50
|
+
context?: { [key: string]: unknown };
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Log level emitted by the SDK.
|
|
54
|
+
*/
|
|
55
|
+
level?: 'debug' | 'info' | 'warn' | 'error';
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Log message.
|
|
59
|
+
*/
|
|
60
|
+
message?: string;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Time when the log entry was emitted.
|
|
64
|
+
*/
|
|
65
|
+
timestamp?: string;
|
|
66
|
+
|
|
67
|
+
[k: string]: unknown;
|
|
68
|
+
}
|
|
69
|
+
|
|
42
70
|
/**
|
|
43
71
|
* Raw Voice SDK call report stats payloads as stored by voice-sdk-debug.
|
|
44
72
|
*/
|
|
@@ -80,7 +108,7 @@ export namespace VoiceSDKCallReportRetrieveResponse {
|
|
|
80
108
|
* payloads are also allowed for compatibility.
|
|
81
109
|
*/
|
|
82
110
|
logs?:
|
|
83
|
-
| Array<
|
|
111
|
+
| Array<VoiceSDKCallReportsAPI.VoiceSDKCallReportLogEntry>
|
|
84
112
|
| VoiceSDKCallReportRetrieveResponseItem.Entries;
|
|
85
113
|
|
|
86
114
|
/**
|
|
@@ -162,33 +190,6 @@ export namespace VoiceSDKCallReportRetrieveResponse {
|
|
|
162
190
|
}
|
|
163
191
|
|
|
164
192
|
export namespace VoiceSDKCallReportRetrieveResponseItem {
|
|
165
|
-
/**
|
|
166
|
-
* A raw Voice SDK log entry. Additional SDK-specific fields may be present.
|
|
167
|
-
*/
|
|
168
|
-
export interface UnionMember0 {
|
|
169
|
-
/**
|
|
170
|
-
* Raw structured context attached to the log entry.
|
|
171
|
-
*/
|
|
172
|
-
context?: { [key: string]: unknown };
|
|
173
|
-
|
|
174
|
-
/**
|
|
175
|
-
* Log level emitted by the SDK.
|
|
176
|
-
*/
|
|
177
|
-
level?: 'debug' | 'info' | 'warn' | 'error';
|
|
178
|
-
|
|
179
|
-
/**
|
|
180
|
-
* Log message.
|
|
181
|
-
*/
|
|
182
|
-
message?: string;
|
|
183
|
-
|
|
184
|
-
/**
|
|
185
|
-
* Time when the log entry was emitted.
|
|
186
|
-
*/
|
|
187
|
-
timestamp?: string;
|
|
188
|
-
|
|
189
|
-
[k: string]: unknown;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
193
|
/**
|
|
193
194
|
* Raw logs object emitted by the Voice SDK when logs are grouped under an entries
|
|
194
195
|
* field.
|
|
@@ -197,40 +198,11 @@ export namespace VoiceSDKCallReportRetrieveResponse {
|
|
|
197
198
|
/**
|
|
198
199
|
* Raw log entries when the SDK groups logs under an entries field.
|
|
199
200
|
*/
|
|
200
|
-
entries?: Array<
|
|
201
|
+
entries?: Array<VoiceSDKCallReportsAPI.VoiceSDKCallReportLogEntry>;
|
|
201
202
|
|
|
202
203
|
[k: string]: unknown;
|
|
203
204
|
}
|
|
204
205
|
|
|
205
|
-
export namespace Entries {
|
|
206
|
-
/**
|
|
207
|
-
* A raw Voice SDK log entry. Additional SDK-specific fields may be present.
|
|
208
|
-
*/
|
|
209
|
-
export interface Entry {
|
|
210
|
-
/**
|
|
211
|
-
* Raw structured context attached to the log entry.
|
|
212
|
-
*/
|
|
213
|
-
context?: { [key: string]: unknown };
|
|
214
|
-
|
|
215
|
-
/**
|
|
216
|
-
* Log level emitted by the SDK.
|
|
217
|
-
*/
|
|
218
|
-
level?: 'debug' | 'info' | 'warn' | 'error';
|
|
219
|
-
|
|
220
|
-
/**
|
|
221
|
-
* Log message.
|
|
222
|
-
*/
|
|
223
|
-
message?: string;
|
|
224
|
-
|
|
225
|
-
/**
|
|
226
|
-
* Time when the log entry was emitted.
|
|
227
|
-
*/
|
|
228
|
-
timestamp?: string;
|
|
229
|
-
|
|
230
|
-
[k: string]: unknown;
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
|
|
234
206
|
/**
|
|
235
207
|
* Raw stats object emitted by the Voice SDK.
|
|
236
208
|
*/
|
|
@@ -297,7 +269,7 @@ export interface VoiceSDKCallReportListResponse {
|
|
|
297
269
|
* responses commonly return an array of log entries, but object-shaped log
|
|
298
270
|
* payloads are also allowed for compatibility.
|
|
299
271
|
*/
|
|
300
|
-
logs?: Array<
|
|
272
|
+
logs?: Array<VoiceSDKCallReportLogEntry> | VoiceSDKCallReportListResponse.Entries;
|
|
301
273
|
|
|
302
274
|
/**
|
|
303
275
|
* Organization associated with the stored call report when provided by the Voice
|
|
@@ -378,33 +350,6 @@ export interface VoiceSDKCallReportListResponse {
|
|
|
378
350
|
}
|
|
379
351
|
|
|
380
352
|
export namespace VoiceSDKCallReportListResponse {
|
|
381
|
-
/**
|
|
382
|
-
* A raw Voice SDK log entry. Additional SDK-specific fields may be present.
|
|
383
|
-
*/
|
|
384
|
-
export interface UnionMember0 {
|
|
385
|
-
/**
|
|
386
|
-
* Raw structured context attached to the log entry.
|
|
387
|
-
*/
|
|
388
|
-
context?: { [key: string]: unknown };
|
|
389
|
-
|
|
390
|
-
/**
|
|
391
|
-
* Log level emitted by the SDK.
|
|
392
|
-
*/
|
|
393
|
-
level?: 'debug' | 'info' | 'warn' | 'error';
|
|
394
|
-
|
|
395
|
-
/**
|
|
396
|
-
* Log message.
|
|
397
|
-
*/
|
|
398
|
-
message?: string;
|
|
399
|
-
|
|
400
|
-
/**
|
|
401
|
-
* Time when the log entry was emitted.
|
|
402
|
-
*/
|
|
403
|
-
timestamp?: string;
|
|
404
|
-
|
|
405
|
-
[k: string]: unknown;
|
|
406
|
-
}
|
|
407
|
-
|
|
408
353
|
/**
|
|
409
354
|
* Raw logs object emitted by the Voice SDK when logs are grouped under an entries
|
|
410
355
|
* field.
|
|
@@ -413,40 +358,11 @@ export namespace VoiceSDKCallReportListResponse {
|
|
|
413
358
|
/**
|
|
414
359
|
* Raw log entries when the SDK groups logs under an entries field.
|
|
415
360
|
*/
|
|
416
|
-
entries?: Array<
|
|
361
|
+
entries?: Array<VoiceSDKCallReportsAPI.VoiceSDKCallReportLogEntry>;
|
|
417
362
|
|
|
418
363
|
[k: string]: unknown;
|
|
419
364
|
}
|
|
420
365
|
|
|
421
|
-
export namespace Entries {
|
|
422
|
-
/**
|
|
423
|
-
* A raw Voice SDK log entry. Additional SDK-specific fields may be present.
|
|
424
|
-
*/
|
|
425
|
-
export interface Entry {
|
|
426
|
-
/**
|
|
427
|
-
* Raw structured context attached to the log entry.
|
|
428
|
-
*/
|
|
429
|
-
context?: { [key: string]: unknown };
|
|
430
|
-
|
|
431
|
-
/**
|
|
432
|
-
* Log level emitted by the SDK.
|
|
433
|
-
*/
|
|
434
|
-
level?: 'debug' | 'info' | 'warn' | 'error';
|
|
435
|
-
|
|
436
|
-
/**
|
|
437
|
-
* Log message.
|
|
438
|
-
*/
|
|
439
|
-
message?: string;
|
|
440
|
-
|
|
441
|
-
/**
|
|
442
|
-
* Time when the log entry was emitted.
|
|
443
|
-
*/
|
|
444
|
-
timestamp?: string;
|
|
445
|
-
|
|
446
|
-
[k: string]: unknown;
|
|
447
|
-
}
|
|
448
|
-
}
|
|
449
|
-
|
|
450
366
|
/**
|
|
451
367
|
* Raw stats object emitted by the Voice SDK.
|
|
452
368
|
*/
|
|
@@ -490,6 +406,7 @@ export interface VoiceSDKCallReportListParams extends DefaultFlatPaginationParam
|
|
|
490
406
|
|
|
491
407
|
export declare namespace VoiceSDKCallReports {
|
|
492
408
|
export {
|
|
409
|
+
type VoiceSDKCallReportLogEntry as VoiceSDKCallReportLogEntry,
|
|
493
410
|
type VoiceSDKCallReportRetrieveResponse as VoiceSDKCallReportRetrieveResponse,
|
|
494
411
|
type VoiceSDKCallReportListResponse as VoiceSDKCallReportListResponse,
|
|
495
412
|
type VoiceSDKCallReportListResponsesDefaultFlatPagination as VoiceSDKCallReportListResponsesDefaultFlatPagination,
|
|
@@ -33,52 +33,30 @@ export class UserData extends APIResource {
|
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
export interface
|
|
37
|
-
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export namespace UserDataRetrieveResponse {
|
|
41
|
-
export interface Data {
|
|
42
|
-
created_at?: string;
|
|
36
|
+
export interface WhatsappUserData {
|
|
37
|
+
created_at?: string;
|
|
43
38
|
|
|
44
|
-
|
|
39
|
+
record_type?: string;
|
|
45
40
|
|
|
46
|
-
|
|
41
|
+
updated_at?: string;
|
|
47
42
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
43
|
+
/**
|
|
44
|
+
* Failover URL to receive Whatsapp signup events
|
|
45
|
+
*/
|
|
46
|
+
webhook_failover_url?: string;
|
|
52
47
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
}
|
|
48
|
+
/**
|
|
49
|
+
* URL to receive Whatsapp signup events
|
|
50
|
+
*/
|
|
51
|
+
webhook_url?: string;
|
|
58
52
|
}
|
|
59
53
|
|
|
60
|
-
export interface
|
|
61
|
-
data?:
|
|
54
|
+
export interface UserDataRetrieveResponse {
|
|
55
|
+
data?: WhatsappUserData;
|
|
62
56
|
}
|
|
63
57
|
|
|
64
|
-
export
|
|
65
|
-
|
|
66
|
-
created_at?: string;
|
|
67
|
-
|
|
68
|
-
record_type?: string;
|
|
69
|
-
|
|
70
|
-
updated_at?: string;
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* Failover URL to receive Whatsapp signup events
|
|
74
|
-
*/
|
|
75
|
-
webhook_failover_url?: string;
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* URL to receive Whatsapp signup events
|
|
79
|
-
*/
|
|
80
|
-
webhook_url?: string;
|
|
81
|
-
}
|
|
58
|
+
export interface UserDataUpdateResponse {
|
|
59
|
+
data?: WhatsappUserData;
|
|
82
60
|
}
|
|
83
61
|
|
|
84
62
|
export interface UserDataUpdateParams {
|
|
@@ -95,6 +73,7 @@ export interface UserDataUpdateParams {
|
|
|
95
73
|
|
|
96
74
|
export declare namespace UserData {
|
|
97
75
|
export {
|
|
76
|
+
type WhatsappUserData as WhatsappUserData,
|
|
98
77
|
type UserDataRetrieveResponse as UserDataRetrieveResponse,
|
|
99
78
|
type UserDataUpdateResponse as UserDataUpdateResponse,
|
|
100
79
|
type UserDataUpdateParams as UserDataUpdateParams,
|
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
UserDataRetrieveResponse,
|
|
10
10
|
UserDataUpdateParams,
|
|
11
11
|
UserDataUpdateResponse,
|
|
12
|
+
WhatsappUserData,
|
|
12
13
|
} from './user-data';
|
|
13
14
|
import * as BusinessAccountsAPI from './business-accounts/business-accounts';
|
|
14
15
|
import {
|
|
@@ -69,6 +70,7 @@ export declare namespace Whatsapp {
|
|
|
69
70
|
|
|
70
71
|
export {
|
|
71
72
|
UserData as UserData,
|
|
73
|
+
type WhatsappUserData as WhatsappUserData,
|
|
72
74
|
type UserDataRetrieveResponse as UserDataRetrieveResponse,
|
|
73
75
|
type UserDataUpdateResponse as UserDataUpdateResponse,
|
|
74
76
|
type UserDataUpdateParams as UserDataUpdateParams,
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '6.
|
|
1
|
+
export const VERSION = '6.71.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "6.
|
|
1
|
+
export declare const VERSION = "6.71.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "6.
|
|
1
|
+
export declare const VERSION = "6.71.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '6.
|
|
1
|
+
export const VERSION = '6.71.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|