telnyx 7.5.0 → 7.7.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 +14 -0
- package/client.d.mts +3 -1
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -1
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/core/pagination.d.mts +21 -0
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts +21 -0
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.js +25 -1
- package/core/pagination.js.map +1 -1
- package/core/pagination.mjs +23 -0
- package/core/pagination.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/ai/assistants/assistants.d.mts +3 -1
- package/resources/ai/assistants/assistants.d.mts.map +1 -1
- package/resources/ai/assistants/assistants.d.ts +3 -1
- 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/calls/actions.d.mts +3 -1
- package/resources/calls/actions.d.mts.map +1 -1
- package/resources/calls/actions.d.ts +3 -1
- package/resources/calls/actions.d.ts.map +1 -1
- package/resources/speech-to-text/speech-to-text.d.mts +4 -4
- package/resources/speech-to-text/speech-to-text.d.mts.map +1 -1
- package/resources/speech-to-text/speech-to-text.d.ts +4 -4
- package/resources/speech-to-text/speech-to-text.d.ts.map +1 -1
- package/resources/speech-to-text/speech-to-text.js +1 -1
- package/resources/speech-to-text/speech-to-text.mjs +1 -1
- package/resources/storage/kvs/index.d.mts +1 -1
- package/resources/storage/kvs/index.d.mts.map +1 -1
- package/resources/storage/kvs/index.d.ts +1 -1
- package/resources/storage/kvs/index.d.ts.map +1 -1
- package/resources/storage/kvs/index.js.map +1 -1
- package/resources/storage/kvs/index.mjs.map +1 -1
- package/resources/storage/kvs/keys.d.mts +21 -46
- package/resources/storage/kvs/keys.d.mts.map +1 -1
- package/resources/storage/kvs/keys.d.ts +21 -46
- package/resources/storage/kvs/keys.d.ts.map +1 -1
- package/resources/storage/kvs/keys.js +23 -12
- package/resources/storage/kvs/keys.js.map +1 -1
- package/resources/storage/kvs/keys.mjs +23 -12
- package/resources/storage/kvs/keys.mjs.map +1 -1
- package/resources/storage/kvs/kvs.d.mts +2 -2
- package/resources/storage/kvs/kvs.d.mts.map +1 -1
- package/resources/storage/kvs/kvs.d.ts +2 -2
- package/resources/storage/kvs/kvs.d.ts.map +1 -1
- package/resources/storage/kvs/kvs.js.map +1 -1
- package/resources/storage/kvs/kvs.mjs.map +1 -1
- package/resources/uac-connections/uac-connections.d.mts +10 -0
- package/resources/uac-connections/uac-connections.d.mts.map +1 -1
- package/resources/uac-connections/uac-connections.d.ts +10 -0
- package/resources/uac-connections/uac-connections.d.ts.map +1 -1
- package/resources/uac-connections/uac-connections.js.map +1 -1
- package/resources/uac-connections/uac-connections.mjs.map +1 -1
- package/src/client.ts +8 -0
- package/src/core/pagination.ts +60 -0
- package/src/resources/ai/assistants/assistants.ts +3 -0
- package/src/resources/calls/actions.ts +3 -0
- package/src/resources/speech-to-text/speech-to-text.ts +13 -3
- package/src/resources/storage/kvs/index.ts +1 -0
- package/src/resources/storage/kvs/keys.ts +38 -58
- package/src/resources/storage/kvs/kvs.ts +2 -0
- package/src/resources/uac-connections/uac-connections.ts +12 -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
|
@@ -2465,6 +2465,8 @@ export interface TranscriptionSettings {
|
|
|
2465
2465
|
* - `xai/grok-stt` is a multilingual Grok STT model.
|
|
2466
2466
|
* - `soniox/stt-rt-v4` is a multilingual streaming model with automatic language
|
|
2467
2467
|
* detection and configurable endpointing.
|
|
2468
|
+
* - `parakeet/tdt-0.6b-v3` is a multilingual transcription model with automatic
|
|
2469
|
+
* language detection.
|
|
2468
2470
|
*/
|
|
2469
2471
|
model?:
|
|
2470
2472
|
| 'deepgram/flux'
|
|
@@ -2474,6 +2476,7 @@ export interface TranscriptionSettings {
|
|
|
2474
2476
|
| 'assemblyai/universal-streaming'
|
|
2475
2477
|
| 'xai/grok-stt'
|
|
2476
2478
|
| 'soniox/stt-rt-v4'
|
|
2479
|
+
| 'parakeet/tdt-0.6b-v3'
|
|
2477
2480
|
| 'distil-whisper/distil-large-v2'
|
|
2478
2481
|
| 'openai/whisper-large-v3-turbo';
|
|
2479
2482
|
|
|
@@ -1604,6 +1604,8 @@ export interface TranscriptionConfig {
|
|
|
1604
1604
|
* - `xai/grok-stt` for live streaming transcription.
|
|
1605
1605
|
* - `soniox/stt-rt-v4` for live streaming multilingual transcription with
|
|
1606
1606
|
* automatic language detection.
|
|
1607
|
+
* - `parakeet/tdt-0.6b-v3` for multilingual transcription with automatic language
|
|
1608
|
+
* detection.
|
|
1607
1609
|
* - `azure/fast` and `azure/realtime`; Azure models require `region`, and
|
|
1608
1610
|
* unsupported regions require `api_key_ref`.
|
|
1609
1611
|
* - `google/latest_long` for non-streaming multilingual transcription.
|
|
@@ -1622,6 +1624,7 @@ export interface TranscriptionConfig {
|
|
|
1622
1624
|
| 'assemblyai/universal-streaming'
|
|
1623
1625
|
| 'xai/grok-stt'
|
|
1624
1626
|
| 'soniox/stt-rt-v4'
|
|
1627
|
+
| 'parakeet/tdt-0.6b-v3'
|
|
1625
1628
|
| 'azure/fast'
|
|
1626
1629
|
| 'azure/realtime'
|
|
1627
1630
|
| 'google/latest_long'
|
|
@@ -43,7 +43,7 @@ export class SpeechToText extends APIResource {
|
|
|
43
43
|
* `Authorization: Bearer <API_KEY>` header.
|
|
44
44
|
*
|
|
45
45
|
* Supported engines: `Azure`, `Deepgram`, `Google`, `Telnyx`, `xAI`,
|
|
46
|
-
* `Speechmatics`, `Soniox`.
|
|
46
|
+
* `Speechmatics`, `Soniox`, `Parakeet`.
|
|
47
47
|
*
|
|
48
48
|
* **Connection flow:**
|
|
49
49
|
*
|
|
@@ -213,6 +213,7 @@ export interface SpeechToTextListProvidersParams {
|
|
|
213
213
|
| 'assemblyai'
|
|
214
214
|
| 'xai'
|
|
215
215
|
| 'soniox'
|
|
216
|
+
| 'parakeet'
|
|
216
217
|
| 'azure'
|
|
217
218
|
| 'openai'
|
|
218
219
|
| 'google'
|
|
@@ -238,7 +239,15 @@ export interface SpeechToTextRetrieveTranscriptionParams {
|
|
|
238
239
|
/**
|
|
239
240
|
* The transcription engine to use for processing the audio stream.
|
|
240
241
|
*/
|
|
241
|
-
transcription_engine:
|
|
242
|
+
transcription_engine:
|
|
243
|
+
| 'Azure'
|
|
244
|
+
| 'Deepgram'
|
|
245
|
+
| 'Google'
|
|
246
|
+
| 'Telnyx'
|
|
247
|
+
| 'xAI'
|
|
248
|
+
| 'Speechmatics'
|
|
249
|
+
| 'Soniox'
|
|
250
|
+
| 'Parakeet';
|
|
242
251
|
|
|
243
252
|
/**
|
|
244
253
|
* Silence duration (in milliseconds) that triggers end-of-speech detection. When
|
|
@@ -290,7 +299,8 @@ export interface SpeechToTextRetrieveTranscriptionParams {
|
|
|
290
299
|
| 'openai/whisper-large-v3-turbo'
|
|
291
300
|
| 'xai/grok-stt'
|
|
292
301
|
| 'speechmatics/standard'
|
|
293
|
-
| 'soniox/stt-rt-v4'
|
|
302
|
+
| 'soniox/stt-rt-v4'
|
|
303
|
+
| 'parakeet/tdt-0.6b-v3';
|
|
294
304
|
|
|
295
305
|
/**
|
|
296
306
|
* Enable redaction of sensitive information (e.g., PCI data, SSN) from
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../../core/resource';
|
|
4
4
|
import { APIPromise } from '../../../core/api-promise';
|
|
5
|
-
import { type
|
|
5
|
+
import { CursorFlatPagination, type CursorFlatPaginationParams, PagePromise } from '../../../core/pagination';
|
|
6
6
|
import { buildHeaders } from '../../../internal/headers';
|
|
7
7
|
import { RequestOptions } from '../../../internal/request-options';
|
|
8
8
|
import { path } from '../../../internal/utils/path';
|
|
@@ -17,17 +17,23 @@ export class Keys extends APIResource {
|
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
* ```ts
|
|
20
|
-
*
|
|
20
|
+
* // Automatically fetches more pages as needed.
|
|
21
|
+
* for await (const keyListResponse of client.storage.kvs.keys.list(
|
|
21
22
|
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
22
|
-
* )
|
|
23
|
+
* )) {
|
|
24
|
+
* // ...
|
|
25
|
+
* }
|
|
23
26
|
* ```
|
|
24
27
|
*/
|
|
25
28
|
list(
|
|
26
29
|
id: string,
|
|
27
30
|
query: KeyListParams | null | undefined = {},
|
|
28
31
|
options?: RequestOptions,
|
|
29
|
-
):
|
|
30
|
-
return this._client.
|
|
32
|
+
): PagePromise<KeyListResponsesCursorFlatPagination, KeyListResponse> {
|
|
33
|
+
return this._client.getAPIList(path`/storage/kvs/${id}/keys`, CursorFlatPagination<KeyListResponse>, {
|
|
34
|
+
query,
|
|
35
|
+
...options,
|
|
36
|
+
});
|
|
31
37
|
}
|
|
32
38
|
|
|
33
39
|
/**
|
|
@@ -68,7 +74,7 @@ export class Keys extends APIResource {
|
|
|
68
74
|
const { id } = params;
|
|
69
75
|
return this._client.get(path`/storage/kvs/${id}/keys/${key}`, {
|
|
70
76
|
...options,
|
|
71
|
-
headers: buildHeaders([{ Accept: '
|
|
77
|
+
headers: buildHeaders([{ Accept: 'application/octet-stream' }, options?.headers]),
|
|
72
78
|
__binaryResponse: true,
|
|
73
79
|
});
|
|
74
80
|
}
|
|
@@ -81,68 +87,46 @@ export class Keys extends APIResource {
|
|
|
81
87
|
*
|
|
82
88
|
* @example
|
|
83
89
|
* ```ts
|
|
84
|
-
* await client.storage.kvs.keys.update(
|
|
85
|
-
*
|
|
86
|
-
*
|
|
87
|
-
* }
|
|
90
|
+
* await client.storage.kvs.keys.update(
|
|
91
|
+
* 'key',
|
|
92
|
+
* fs.createReadStream('path/to/file'),
|
|
93
|
+
* { id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e' },
|
|
94
|
+
* );
|
|
88
95
|
* ```
|
|
89
96
|
*/
|
|
90
|
-
update(
|
|
91
|
-
|
|
97
|
+
update(
|
|
98
|
+
key: string,
|
|
99
|
+
body: string | ArrayBuffer | ArrayBufferView | Blob | DataView,
|
|
100
|
+
params: KeyUpdateParams,
|
|
101
|
+
options?: RequestOptions,
|
|
102
|
+
): APIPromise<void> {
|
|
103
|
+
const { id, ttl_secs } = params;
|
|
92
104
|
return this._client.put(path`/storage/kvs/${id}/keys/${key}`, {
|
|
93
|
-
query: { ttl_secs },
|
|
94
105
|
body: body,
|
|
106
|
+
query: { ttl_secs },
|
|
95
107
|
...options,
|
|
96
|
-
headers: buildHeaders([
|
|
108
|
+
headers: buildHeaders([
|
|
109
|
+
{ 'Content-Type': 'application/octet-stream', Accept: '*/*' },
|
|
110
|
+
options?.headers,
|
|
111
|
+
]),
|
|
97
112
|
});
|
|
98
113
|
}
|
|
99
114
|
}
|
|
100
115
|
|
|
101
|
-
export
|
|
102
|
-
data?: Array<KeyListResponse.Data>;
|
|
103
|
-
|
|
104
|
-
meta?: KeyListResponse.Meta;
|
|
105
|
-
|
|
106
|
-
record_type?: string;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
export namespace KeyListResponse {
|
|
110
|
-
export interface Data {
|
|
111
|
-
key?: string;
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* Size of the stored value in bytes.
|
|
115
|
-
*/
|
|
116
|
-
size_bytes?: number;
|
|
117
|
-
|
|
118
|
-
updated_at?: string;
|
|
119
|
-
}
|
|
116
|
+
export type KeyListResponsesCursorFlatPagination = CursorFlatPagination<KeyListResponse>;
|
|
120
117
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
* Opaque cursor for the next page; pass it back as the `cursor` query parameter.
|
|
124
|
-
* Omitted when there are no further results.
|
|
125
|
-
*/
|
|
126
|
-
cursor?: string;
|
|
127
|
-
|
|
128
|
-
/**
|
|
129
|
-
* Whether more results are available on a following page.
|
|
130
|
-
*/
|
|
131
|
-
has_more?: boolean;
|
|
132
|
-
}
|
|
133
|
-
}
|
|
118
|
+
export interface KeyListResponse {
|
|
119
|
+
key?: string;
|
|
134
120
|
|
|
135
|
-
export interface KeyListParams {
|
|
136
121
|
/**
|
|
137
|
-
*
|
|
122
|
+
* Size of the stored value in bytes.
|
|
138
123
|
*/
|
|
139
|
-
|
|
124
|
+
size_bytes?: number;
|
|
140
125
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
*/
|
|
144
|
-
limit?: number;
|
|
126
|
+
updated_at?: string;
|
|
127
|
+
}
|
|
145
128
|
|
|
129
|
+
export interface KeyListParams extends CursorFlatPaginationParams {
|
|
146
130
|
/**
|
|
147
131
|
* Return only keys that start with this prefix.
|
|
148
132
|
*/
|
|
@@ -169,11 +153,6 @@ export interface KeyUpdateParams {
|
|
|
169
153
|
*/
|
|
170
154
|
id: string;
|
|
171
155
|
|
|
172
|
-
/**
|
|
173
|
-
* Body param: Raw value bytes, stored verbatim.
|
|
174
|
-
*/
|
|
175
|
-
body: Uploadable;
|
|
176
|
-
|
|
177
156
|
/**
|
|
178
157
|
* Query param: Time-to-live in seconds. When set, the key expires and is deleted
|
|
179
158
|
* after this duration. Requires a namespace provisioned with TTL support;
|
|
@@ -185,6 +164,7 @@ export interface KeyUpdateParams {
|
|
|
185
164
|
export declare namespace Keys {
|
|
186
165
|
export {
|
|
187
166
|
type KeyListResponse as KeyListResponse,
|
|
167
|
+
type KeyListResponsesCursorFlatPagination as KeyListResponsesCursorFlatPagination,
|
|
188
168
|
type KeyListParams as KeyListParams,
|
|
189
169
|
type KeyDeleteParams as KeyDeleteParams,
|
|
190
170
|
type KeyRetrieveParams as KeyRetrieveParams,
|
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
KeyDeleteParams,
|
|
7
7
|
KeyListParams,
|
|
8
8
|
KeyListResponse,
|
|
9
|
+
KeyListResponsesCursorFlatPagination,
|
|
9
10
|
KeyRetrieveParams,
|
|
10
11
|
KeyUpdateParams,
|
|
11
12
|
Keys,
|
|
@@ -139,6 +140,7 @@ export declare namespace Kvs {
|
|
|
139
140
|
export {
|
|
140
141
|
Keys as Keys,
|
|
141
142
|
type KeyListResponse as KeyListResponse,
|
|
143
|
+
type KeyListResponsesCursorFlatPagination as KeyListResponsesCursorFlatPagination,
|
|
142
144
|
type KeyListParams as KeyListParams,
|
|
143
145
|
type KeyDeleteParams as KeyDeleteParams,
|
|
144
146
|
type KeyRetrieveParams as KeyRetrieveParams,
|
|
@@ -435,6 +435,12 @@ export interface UacInbound {
|
|
|
435
435
|
*/
|
|
436
436
|
sip_compact_headers_enabled?: boolean;
|
|
437
437
|
|
|
438
|
+
/**
|
|
439
|
+
* Selects which `sip_region` to receive inbound calls from. If null, the default
|
|
440
|
+
* region (US) will be used.
|
|
441
|
+
*/
|
|
442
|
+
sip_region?: 'US' | 'Europe' | 'Australia';
|
|
443
|
+
|
|
438
444
|
/**
|
|
439
445
|
* The Telnyx-generated SIP subdomain for this UAC connection.
|
|
440
446
|
*/
|
|
@@ -524,6 +530,12 @@ export interface UacInboundRequest {
|
|
|
524
530
|
*/
|
|
525
531
|
sip_compact_headers_enabled?: boolean;
|
|
526
532
|
|
|
533
|
+
/**
|
|
534
|
+
* Selects which `sip_region` to receive inbound calls from. If null, the default
|
|
535
|
+
* region (US) will be used.
|
|
536
|
+
*/
|
|
537
|
+
sip_region?: 'US' | 'Europe' | 'Australia';
|
|
538
|
+
|
|
527
539
|
/**
|
|
528
540
|
* Time(sec) before aborting if connection is not made.
|
|
529
541
|
*/
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '7.
|
|
1
|
+
export const VERSION = '7.7.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "7.
|
|
1
|
+
export declare const VERSION = "7.7.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "7.
|
|
1
|
+
export declare const VERSION = "7.7.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '7.
|
|
1
|
+
export const VERSION = '7.7.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|