telnyx 7.27.0 → 7.28.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 +7 -0
- package/client.d.mts +11 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +11 -2
- package/client.d.ts.map +1 -1
- package/client.js +9 -0
- package/client.js.map +1 -1
- package/client.mjs +9 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/ai/assistants/assistants.d.mts +11 -0
- package/resources/ai/assistants/assistants.d.mts.map +1 -1
- package/resources/ai/assistants/assistants.d.ts +11 -0
- 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/ai/audio.d.mts +22 -11
- package/resources/ai/audio.d.mts.map +1 -1
- package/resources/ai/audio.d.ts +22 -11
- package/resources/ai/audio.d.ts.map +1 -1
- package/resources/compute/compute.d.mts +75 -2
- package/resources/compute/compute.d.mts.map +1 -1
- package/resources/compute/compute.d.ts +75 -2
- package/resources/compute/compute.d.ts.map +1 -1
- package/resources/compute/compute.js +17 -0
- package/resources/compute/compute.js.map +1 -1
- package/resources/compute/compute.mjs +17 -0
- package/resources/compute/compute.mjs.map +1 -1
- package/resources/compute/funcs/export.d.mts +3 -0
- package/resources/compute/funcs/export.d.mts.map +1 -1
- package/resources/compute/funcs/export.d.ts +3 -0
- package/resources/compute/funcs/export.d.ts.map +1 -1
- package/resources/compute/funcs/export.js +3 -0
- package/resources/compute/funcs/export.js.map +1 -1
- package/resources/compute/funcs/export.mjs +3 -0
- package/resources/compute/funcs/export.mjs.map +1 -1
- package/resources/compute/funcs/funcs.d.mts +60 -1
- package/resources/compute/funcs/funcs.d.mts.map +1 -1
- package/resources/compute/funcs/funcs.d.ts +60 -1
- package/resources/compute/funcs/funcs.d.ts.map +1 -1
- package/resources/compute/funcs/funcs.js +24 -0
- package/resources/compute/funcs/funcs.js.map +1 -1
- package/resources/compute/funcs/funcs.mjs +24 -0
- package/resources/compute/funcs/funcs.mjs.map +1 -1
- package/resources/compute/funcs/index.d.mts +1 -1
- package/resources/compute/funcs/index.d.mts.map +1 -1
- package/resources/compute/funcs/index.d.ts +1 -1
- package/resources/compute/funcs/index.d.ts.map +1 -1
- package/resources/compute/funcs/index.js.map +1 -1
- package/resources/compute/funcs/index.mjs.map +1 -1
- package/resources/compute/index.d.mts +2 -2
- package/resources/compute/index.d.mts.map +1 -1
- package/resources/compute/index.d.ts +2 -2
- package/resources/compute/index.d.ts.map +1 -1
- package/resources/compute/index.js.map +1 -1
- package/resources/compute/index.mjs.map +1 -1
- package/resources/index.d.mts +2 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/network-coverage.d.mts +1 -1
- package/resources/network-coverage.d.mts.map +1 -1
- package/resources/network-coverage.d.ts +1 -1
- package/resources/network-coverage.d.ts.map +1 -1
- package/resources/number-lookup.d.mts +122 -4
- package/resources/number-lookup.d.mts.map +1 -1
- package/resources/number-lookup.d.ts +122 -4
- package/resources/number-lookup.d.ts.map +1 -1
- package/resources/tailscale-subnet-routers.d.mts +233 -0
- package/resources/tailscale-subnet-routers.d.mts.map +1 -0
- package/resources/tailscale-subnet-routers.d.ts +233 -0
- package/resources/tailscale-subnet-routers.d.ts.map +1 -0
- package/resources/tailscale-subnet-routers.js +105 -0
- package/resources/tailscale-subnet-routers.js.map +1 -0
- package/resources/tailscale-subnet-routers.mjs +101 -0
- package/resources/tailscale-subnet-routers.mjs.map +1 -0
- package/src/client.ts +35 -2
- package/src/resources/ai/assistants/assistants.ts +12 -0
- package/src/resources/ai/audio.ts +23 -11
- package/src/resources/compute/compute.ts +105 -0
- package/src/resources/compute/funcs/export.ts +3 -0
- package/src/resources/compute/funcs/funcs.ts +99 -0
- package/src/resources/compute/funcs/index.ts +3 -0
- package/src/resources/compute/index.ts +4 -1
- package/src/resources/index.ts +13 -1
- package/src/resources/network-coverage.ts +5 -1
- package/src/resources/number-lookup.ts +154 -4
- package/src/resources/tailscale-subnet-routers.ts +303 -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
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.TailscaleSubnetRouters = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
const pagination_1 = require("../core/pagination.js");
|
|
7
|
+
const path_1 = require("../internal/utils/path.js");
|
|
8
|
+
/**
|
|
9
|
+
* Tailscale Subnet Router operations
|
|
10
|
+
*/
|
|
11
|
+
class TailscaleSubnetRouters extends resource_1.APIResource {
|
|
12
|
+
/**
|
|
13
|
+
* Returns a paginated list of the Tailscale Subnet Routers on the account, with
|
|
14
|
+
* support for filtering by Network.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```ts
|
|
18
|
+
* // Automatically fetches more pages as needed.
|
|
19
|
+
* for await (const tailscaleSubnetRouter of client.tailscaleSubnetRouters.list()) {
|
|
20
|
+
* // ...
|
|
21
|
+
* }
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
list(query = {}, options) {
|
|
25
|
+
return this._client.getAPIList('/tailscale_subnet_routers', (pagination_1.DefaultFlatPagination), { query, ...options });
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Creates a Tailscale Subnet Router on a Network and enrolls it in the user's
|
|
29
|
+
* tailnet with the auth key. The response returns the router with `status`
|
|
30
|
+
* `provisioning`. Poll `GET /tailscale_subnet_routers/{id}` until it is
|
|
31
|
+
* `provisioned`. Then approve its routes in the tailnet, unless an auto-approver
|
|
32
|
+
* covers them.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```ts
|
|
36
|
+
* const tailscaleSubnetRouter =
|
|
37
|
+
* await client.tailscaleSubnetRouters.create({
|
|
38
|
+
* advertised_routes: ['172.27.0.0/24'],
|
|
39
|
+
* auth_key: 'tskey-auth-k1AbCdEfGh2IjKlMnOpQrStUv',
|
|
40
|
+
* name: 'tailnet-ashburn',
|
|
41
|
+
* network_id: '0de011ae-ee53-4df4-ba96-754728eb5aad',
|
|
42
|
+
* region_code: 'ashburn-va',
|
|
43
|
+
* });
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
create(body, options) {
|
|
47
|
+
return this._client.post('/tailscale_subnet_routers', { body, ...options });
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Removes the router from the Network and logs it out of the tailnet. The response
|
|
51
|
+
* returns the router with `status` `deleting`. The record disappears once removal
|
|
52
|
+
* completes. A machine entry can remain in the tailnet's admin console until it is
|
|
53
|
+
* removed there.
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```ts
|
|
57
|
+
* const tailscaleSubnetRouter =
|
|
58
|
+
* await client.tailscaleSubnetRouters.delete(
|
|
59
|
+
* '6a09cdc3-8948-47f0-aa62-74ac943d6c58',
|
|
60
|
+
* );
|
|
61
|
+
* ```
|
|
62
|
+
*/
|
|
63
|
+
delete(id, options) {
|
|
64
|
+
return this._client.delete((0, path_1.path) `/tailscale_subnet_routers/${id}`, options);
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Returns the details of a single Tailscale Subnet Router by its identifier,
|
|
68
|
+
* including its enrollment state.
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* ```ts
|
|
72
|
+
* const tailscaleSubnetRouter =
|
|
73
|
+
* await client.tailscaleSubnetRouters.retrieve(
|
|
74
|
+
* '6a09cdc3-8948-47f0-aa62-74ac943d6c58',
|
|
75
|
+
* );
|
|
76
|
+
* ```
|
|
77
|
+
*/
|
|
78
|
+
retrieve(id, options) {
|
|
79
|
+
return this._client.get((0, path_1.path) `/tailscale_subnet_routers/${id}`, options);
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Renames the router, changes its advertised routes, or retries a failed
|
|
83
|
+
* enrollment. Any change queues a new provisioning run and returns the router with
|
|
84
|
+
* `status` `provisioning`. The router keeps its machine identity on the tailnet.
|
|
85
|
+
* Send an empty object to retry a `failed` router with its stored auth key.
|
|
86
|
+
* Include a new `auth_key` only while the router has never enrolled. The router's
|
|
87
|
+
* Network and region cannot change: create a new router instead.
|
|
88
|
+
*
|
|
89
|
+
* @example
|
|
90
|
+
* ```ts
|
|
91
|
+
* const tailscaleSubnetRouter =
|
|
92
|
+
* await client.tailscaleSubnetRouters.update(
|
|
93
|
+
* '6a09cdc3-8948-47f0-aa62-74ac943d6c58',
|
|
94
|
+
* {
|
|
95
|
+
* advertised_routes: ['172.27.0.0/24', '172.27.1.0/24'],
|
|
96
|
+
* },
|
|
97
|
+
* );
|
|
98
|
+
* ```
|
|
99
|
+
*/
|
|
100
|
+
update(id, body, options) {
|
|
101
|
+
return this._client.patch((0, path_1.path) `/tailscale_subnet_routers/${id}`, { body, ...options });
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
exports.TailscaleSubnetRouters = TailscaleSubnetRouters;
|
|
105
|
+
//# sourceMappingURL=tailscale-subnet-routers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tailscale-subnet-routers.js","sourceRoot":"","sources":["../src/resources/tailscale-subnet-routers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAA0G;AAE1G,oDAA8C;AAE9C;;GAEG;AACH,MAAa,sBAAuB,SAAQ,sBAAW;IACrD;;;;;;;;;;;OAWG;IACH,IAAI,CACF,QAA4D,EAAE,EAC9D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,2BAA2B,EAC3B,CAAA,kCAA4C,CAAA,EAC5C,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;;;;;;;OAkBG;IACH,MAAM,CACJ,IAAuC,EACvC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,2BAA2B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,6BAA6B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;IAED;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,6BAA6B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;IAED;;;;;;;;;;;;;;;;;;OAkBG;IACH,MAAM,CACJ,EAAU,EACV,IAAuC,EACvC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,6BAA6B,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;CACF;AA9GD,wDA8GC"}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
import { DefaultFlatPagination } from "../core/pagination.mjs";
|
|
4
|
+
import { path } from "../internal/utils/path.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* Tailscale Subnet Router operations
|
|
7
|
+
*/
|
|
8
|
+
export class TailscaleSubnetRouters extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Returns a paginated list of the Tailscale Subnet Routers on the account, with
|
|
11
|
+
* support for filtering by Network.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* // Automatically fetches more pages as needed.
|
|
16
|
+
* for await (const tailscaleSubnetRouter of client.tailscaleSubnetRouters.list()) {
|
|
17
|
+
* // ...
|
|
18
|
+
* }
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
list(query = {}, options) {
|
|
22
|
+
return this._client.getAPIList('/tailscale_subnet_routers', (DefaultFlatPagination), { query, ...options });
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Creates a Tailscale Subnet Router on a Network and enrolls it in the user's
|
|
26
|
+
* tailnet with the auth key. The response returns the router with `status`
|
|
27
|
+
* `provisioning`. Poll `GET /tailscale_subnet_routers/{id}` until it is
|
|
28
|
+
* `provisioned`. Then approve its routes in the tailnet, unless an auto-approver
|
|
29
|
+
* covers them.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```ts
|
|
33
|
+
* const tailscaleSubnetRouter =
|
|
34
|
+
* await client.tailscaleSubnetRouters.create({
|
|
35
|
+
* advertised_routes: ['172.27.0.0/24'],
|
|
36
|
+
* auth_key: 'tskey-auth-k1AbCdEfGh2IjKlMnOpQrStUv',
|
|
37
|
+
* name: 'tailnet-ashburn',
|
|
38
|
+
* network_id: '0de011ae-ee53-4df4-ba96-754728eb5aad',
|
|
39
|
+
* region_code: 'ashburn-va',
|
|
40
|
+
* });
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
create(body, options) {
|
|
44
|
+
return this._client.post('/tailscale_subnet_routers', { body, ...options });
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Removes the router from the Network and logs it out of the tailnet. The response
|
|
48
|
+
* returns the router with `status` `deleting`. The record disappears once removal
|
|
49
|
+
* completes. A machine entry can remain in the tailnet's admin console until it is
|
|
50
|
+
* removed there.
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* ```ts
|
|
54
|
+
* const tailscaleSubnetRouter =
|
|
55
|
+
* await client.tailscaleSubnetRouters.delete(
|
|
56
|
+
* '6a09cdc3-8948-47f0-aa62-74ac943d6c58',
|
|
57
|
+
* );
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
delete(id, options) {
|
|
61
|
+
return this._client.delete(path `/tailscale_subnet_routers/${id}`, options);
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Returns the details of a single Tailscale Subnet Router by its identifier,
|
|
65
|
+
* including its enrollment state.
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* ```ts
|
|
69
|
+
* const tailscaleSubnetRouter =
|
|
70
|
+
* await client.tailscaleSubnetRouters.retrieve(
|
|
71
|
+
* '6a09cdc3-8948-47f0-aa62-74ac943d6c58',
|
|
72
|
+
* );
|
|
73
|
+
* ```
|
|
74
|
+
*/
|
|
75
|
+
retrieve(id, options) {
|
|
76
|
+
return this._client.get(path `/tailscale_subnet_routers/${id}`, options);
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Renames the router, changes its advertised routes, or retries a failed
|
|
80
|
+
* enrollment. Any change queues a new provisioning run and returns the router with
|
|
81
|
+
* `status` `provisioning`. The router keeps its machine identity on the tailnet.
|
|
82
|
+
* Send an empty object to retry a `failed` router with its stored auth key.
|
|
83
|
+
* Include a new `auth_key` only while the router has never enrolled. The router's
|
|
84
|
+
* Network and region cannot change: create a new router instead.
|
|
85
|
+
*
|
|
86
|
+
* @example
|
|
87
|
+
* ```ts
|
|
88
|
+
* const tailscaleSubnetRouter =
|
|
89
|
+
* await client.tailscaleSubnetRouters.update(
|
|
90
|
+
* '6a09cdc3-8948-47f0-aa62-74ac943d6c58',
|
|
91
|
+
* {
|
|
92
|
+
* advertised_routes: ['172.27.0.0/24', '172.27.1.0/24'],
|
|
93
|
+
* },
|
|
94
|
+
* );
|
|
95
|
+
* ```
|
|
96
|
+
*/
|
|
97
|
+
update(id, body, options) {
|
|
98
|
+
return this._client.patch(path `/tailscale_subnet_routers/${id}`, { body, ...options });
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
//# sourceMappingURL=tailscale-subnet-routers.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tailscale-subnet-routers.mjs","sourceRoot":"","sources":["../src/resources/tailscale-subnet-routers.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAE/C,OAAO,EAAE,qBAAqB,EAAiD,+BAA2B;AAE1G,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C;;GAEG;AACH,MAAM,OAAO,sBAAuB,SAAQ,WAAW;IACrD;;;;;;;;;;;OAWG;IACH,IAAI,CACF,QAA4D,EAAE,EAC9D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,2BAA2B,EAC3B,CAAA,qBAA4C,CAAA,EAC5C,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;;;;;;;OAkBG;IACH,MAAM,CACJ,IAAuC,EACvC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,2BAA2B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,6BAA6B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;IAED;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,6BAA6B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;IAED;;;;;;;;;;;;;;;;;;OAkBG;IACH,MAAM,CACJ,EAAU,EACV,IAAuC,EACvC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,6BAA6B,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;CACF"}
|
package/src/client.ts
CHANGED
|
@@ -923,6 +923,18 @@ import {
|
|
|
923
923
|
SubNumberOrdersReportResource,
|
|
924
924
|
SubNumberOrdersReportRetrieveResponse,
|
|
925
925
|
} from './resources/sub-number-orders-report';
|
|
926
|
+
import {
|
|
927
|
+
TailscaleSubnetRouter,
|
|
928
|
+
TailscaleSubnetRouterCreateParams,
|
|
929
|
+
TailscaleSubnetRouterCreateResponse,
|
|
930
|
+
TailscaleSubnetRouterDeleteResponse,
|
|
931
|
+
TailscaleSubnetRouterListParams,
|
|
932
|
+
TailscaleSubnetRouterRetrieveResponse,
|
|
933
|
+
TailscaleSubnetRouterUpdateParams,
|
|
934
|
+
TailscaleSubnetRouterUpdateResponse,
|
|
935
|
+
TailscaleSubnetRouters,
|
|
936
|
+
TailscaleSubnetRoutersDefaultFlatPagination,
|
|
937
|
+
} from './resources/tailscale-subnet-routers';
|
|
926
938
|
import {
|
|
927
939
|
TelephonyCredential,
|
|
928
940
|
TelephonyCredentialCreateParams,
|
|
@@ -1297,7 +1309,7 @@ import {
|
|
|
1297
1309
|
StreamBidirectionalTargetLegs,
|
|
1298
1310
|
StreamCodec,
|
|
1299
1311
|
} from './resources/calls/calls';
|
|
1300
|
-
import { Compute } from './resources/compute/compute';
|
|
1312
|
+
import { Compute, ComputeRetrieveResponse } from './resources/compute/compute';
|
|
1301
1313
|
import {
|
|
1302
1314
|
Conference,
|
|
1303
1315
|
ConferenceCreateParams,
|
|
@@ -3310,6 +3322,9 @@ export class Telnyx {
|
|
|
3310
3322
|
webSearch: API.WebSearch = new API.WebSearch(this);
|
|
3311
3323
|
meetingSessions: API.MeetingSessions = new API.MeetingSessions(this);
|
|
3312
3324
|
externalRequirements: API.ExternalRequirements = new API.ExternalRequirements(this);
|
|
3325
|
+
/**
|
|
3326
|
+
* Inspect Stateful Actor types
|
|
3327
|
+
*/
|
|
3313
3328
|
compute: API.Compute = new API.Compute(this);
|
|
3314
3329
|
/**
|
|
3315
3330
|
* Noise suppression engines that can be selected when configuring noise suppression on voice connections.
|
|
@@ -3351,6 +3366,10 @@ export class Telnyx {
|
|
|
3351
3366
|
*/
|
|
3352
3367
|
dialMetrics: API.DialMetrics = new API.DialMetrics(this);
|
|
3353
3368
|
ttsIntegrations: API.TtsIntegrations = new API.TtsIntegrations(this);
|
|
3369
|
+
/**
|
|
3370
|
+
* Tailscale Subnet Router operations
|
|
3371
|
+
*/
|
|
3372
|
+
tailscaleSubnetRouters: API.TailscaleSubnetRouters = new API.TailscaleSubnetRouters(this);
|
|
3354
3373
|
}
|
|
3355
3374
|
|
|
3356
3375
|
Telnyx.Legacy = Legacy;
|
|
@@ -3546,6 +3565,7 @@ Telnyx.LlmTokenGateway = LlmTokenGateway;
|
|
|
3546
3565
|
Telnyx.SipRegistrationStatus = SipRegistrationStatus;
|
|
3547
3566
|
Telnyx.DialMetrics = DialMetrics;
|
|
3548
3567
|
Telnyx.TtsIntegrations = TtsIntegrations;
|
|
3568
|
+
Telnyx.TailscaleSubnetRouters = TailscaleSubnetRouters;
|
|
3549
3569
|
|
|
3550
3570
|
export declare namespace Telnyx {
|
|
3551
3571
|
export type RequestOptions = Opts.RequestOptions;
|
|
@@ -5596,7 +5616,7 @@ export declare namespace Telnyx {
|
|
|
5596
5616
|
|
|
5597
5617
|
export { ExternalRequirements as ExternalRequirements };
|
|
5598
5618
|
|
|
5599
|
-
export { Compute as Compute };
|
|
5619
|
+
export { Compute as Compute, type ComputeRetrieveResponse as ComputeRetrieveResponse };
|
|
5600
5620
|
|
|
5601
5621
|
export {
|
|
5602
5622
|
NoiseSuppressionEngines as NoiseSuppressionEngines,
|
|
@@ -5656,6 +5676,19 @@ export declare namespace Telnyx {
|
|
|
5656
5676
|
|
|
5657
5677
|
export { TtsIntegrations as TtsIntegrations };
|
|
5658
5678
|
|
|
5679
|
+
export {
|
|
5680
|
+
TailscaleSubnetRouters as TailscaleSubnetRouters,
|
|
5681
|
+
type TailscaleSubnetRouter as TailscaleSubnetRouter,
|
|
5682
|
+
type TailscaleSubnetRouterCreateResponse as TailscaleSubnetRouterCreateResponse,
|
|
5683
|
+
type TailscaleSubnetRouterRetrieveResponse as TailscaleSubnetRouterRetrieveResponse,
|
|
5684
|
+
type TailscaleSubnetRouterUpdateResponse as TailscaleSubnetRouterUpdateResponse,
|
|
5685
|
+
type TailscaleSubnetRouterDeleteResponse as TailscaleSubnetRouterDeleteResponse,
|
|
5686
|
+
type TailscaleSubnetRoutersDefaultFlatPagination as TailscaleSubnetRoutersDefaultFlatPagination,
|
|
5687
|
+
type TailscaleSubnetRouterListParams as TailscaleSubnetRouterListParams,
|
|
5688
|
+
type TailscaleSubnetRouterCreateParams as TailscaleSubnetRouterCreateParams,
|
|
5689
|
+
type TailscaleSubnetRouterUpdateParams as TailscaleSubnetRouterUpdateParams,
|
|
5690
|
+
};
|
|
5691
|
+
|
|
5659
5692
|
export type APIError = API.APIError;
|
|
5660
5693
|
export type AvailablePhoneNumbersMetadata = API.AvailablePhoneNumbersMetadata;
|
|
5661
5694
|
export type AzureVoiceSettings = API.AzureVoiceSettings;
|
|
@@ -3006,6 +3006,18 @@ export interface InsightSettings {
|
|
|
3006
3006
|
* for all the assistant's conversations.
|
|
3007
3007
|
*/
|
|
3008
3008
|
insight_group_id?: string;
|
|
3009
|
+
|
|
3010
|
+
/**
|
|
3011
|
+
* The model that generates the assistant's insights when a conversation ends. It
|
|
3012
|
+
* runs every insight in the group, Telnyx-managed insights included. Must be
|
|
3013
|
+
* `zai-org/GLM-5.3-Flash` or `meta-llama/Llama-3.3-70B-Instruct`; any other model
|
|
3014
|
+
* returns `422`. When omitted on create, it defaults to `zai-org/GLM-5.3-Flash`;
|
|
3015
|
+
* when omitted on update, the current model is kept. `null` uses Telnyx's default
|
|
3016
|
+
* insight models, which assistants created before this setting have. Insights of
|
|
3017
|
+
* messaging conversations, and insights regenerated later, always use Telnyx's
|
|
3018
|
+
* default insight models.
|
|
3019
|
+
*/
|
|
3020
|
+
model?: string | null;
|
|
3009
3021
|
}
|
|
3010
3022
|
|
|
3011
3023
|
export interface MessagingSettings {
|
|
@@ -30,7 +30,7 @@ export class Audio extends APIResource {
|
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
32
|
* Word-level timing detail. Only present when using a `deepgram/*` model with
|
|
33
|
-
* `model_config` options that enable word timestamps
|
|
33
|
+
* `model_config` options that enable word timestamps, or `reson8/prerecorded`.
|
|
34
34
|
*/
|
|
35
35
|
export interface AudioTranscriptionResponseWord {
|
|
36
36
|
/**
|
|
@@ -78,6 +78,9 @@ export interface AudioTranscriptionResponseWord {
|
|
|
78
78
|
* return `text` and, depending on `model_config`, may include `words` with
|
|
79
79
|
* per-word timestamps and speaker labels. The Parakeet models
|
|
80
80
|
* (`nvidia/parakeet-v3`, `omi-health/omi-med-stt-v1`) return `text` only.
|
|
81
|
+
* `reson8/prerecorded` returns `text` and, in `verbose_json` mode, `duration` and
|
|
82
|
+
* `segments` with `words`; with `diarize`, one segment per speaker turn with
|
|
83
|
+
* speaker labels.
|
|
81
84
|
*/
|
|
82
85
|
export interface AudioTranscribeResponse {
|
|
83
86
|
/**
|
|
@@ -139,15 +142,17 @@ export namespace AudioTranscribeResponse {
|
|
|
139
142
|
channel?: number;
|
|
140
143
|
|
|
141
144
|
/**
|
|
142
|
-
* Speaker indices heard in this segment. Returned by the `deepgram/*` models
|
|
143
|
-
* `diarize` is enabled via `model_config`. With
|
|
144
|
-
* numbered per channel from 0, so identify a speaker
|
|
145
|
+
* Speaker indices heard in this segment. Returned by the `deepgram/*` models and
|
|
146
|
+
* `reson8/prerecorded` when `diarize` is enabled via `model_config`. With
|
|
147
|
+
* `multichannel`, speakers are numbered per channel from 0, so identify a speaker
|
|
148
|
+
* by (`channel`, speaker).
|
|
145
149
|
*/
|
|
146
150
|
speakers?: Array<number>;
|
|
147
151
|
|
|
148
152
|
/**
|
|
149
153
|
* Word-level timing detail for this segment. Returned by the `deepgram/*` models
|
|
150
|
-
* when word-level output is enabled via `model_config
|
|
154
|
+
* when word-level output is enabled via `model_config`, and by
|
|
155
|
+
* `reson8/prerecorded`.
|
|
151
156
|
*/
|
|
152
157
|
words?: Array<AudioAPI.AudioTranscriptionResponseWord>;
|
|
153
158
|
}
|
|
@@ -163,6 +168,8 @@ export interface AudioTranscribeParams {
|
|
|
163
168
|
* English only (`en` and its regional variants, e.g. `en-US`, `en-GB`).
|
|
164
169
|
* `nvidia/parakeet-v3` is multilingual with automatic language detection;
|
|
165
170
|
* `omi-health/omi-med-stt-v1` is a medical model, English only.
|
|
171
|
+
* `reson8/prerecorded` covers 10 languages, returns word timestamps, and labels
|
|
172
|
+
* speakers via `model_config`.
|
|
166
173
|
*/
|
|
167
174
|
model:
|
|
168
175
|
| 'distil-whisper/distil-large-v2'
|
|
@@ -172,7 +179,8 @@ export interface AudioTranscribeParams {
|
|
|
172
179
|
| 'deepgram/nova-3'
|
|
173
180
|
| 'deepgram/nova-3-medical'
|
|
174
181
|
| 'nvidia/parakeet-v3'
|
|
175
|
-
| 'omi-health/omi-med-stt-v1'
|
|
182
|
+
| 'omi-health/omi-med-stt-v1'
|
|
183
|
+
| 'reson8/prerecorded';
|
|
176
184
|
|
|
177
185
|
/**
|
|
178
186
|
* The audio file object to transcribe, in one of these formats: flac, mp3, mp4,
|
|
@@ -200,16 +208,20 @@ export interface AudioTranscribeParams {
|
|
|
200
208
|
* `openai/whisper-large-v3-turbo`, supports multiple languages.
|
|
201
209
|
* `distil-whisper/distil-large-v2` does not support language parameter.
|
|
202
210
|
* `nvidia/parakeet-v3` detects the language automatically;
|
|
203
|
-
* `omi-health/omi-med-stt-v1` is English only.
|
|
211
|
+
* `omi-health/omi-med-stt-v1` is English only. `reson8/prerecorded` accepts `nl`,
|
|
212
|
+
* `en`, `fr`, `fy`, `de`, `it`, `pl`, `pt`, `es` and `sv` (regional variants are
|
|
213
|
+
* transcribed as the base language) and detects the language when it is omitted.
|
|
204
214
|
*/
|
|
205
215
|
language?: string;
|
|
206
216
|
|
|
207
217
|
/**
|
|
208
218
|
* Additional model-specific configuration parameters. Only allowed with the
|
|
209
|
-
* `deepgram/*` models
|
|
210
|
-
*
|
|
211
|
-
*
|
|
212
|
-
*
|
|
219
|
+
* `deepgram/*` models and `reson8/prerecorded`. Sent as a JSON string in multipart
|
|
220
|
+
* requests; for the `deepgram/*` models it is passed through to Deepgram as query
|
|
221
|
+
* parameters, while `reson8/prerecorded` accepts only `diarize` (speaker labels)
|
|
222
|
+
* and `max_speakers` (1 to 8). Any other model with `model_config` returns 400.
|
|
223
|
+
* Can include Deepgram-specific options such as `smart_format`, `punctuate`,
|
|
224
|
+
* `diarize` (speaker labels), `multichannel` (transcribe each channel
|
|
213
225
|
* independently; billed duration is file duration multiplied by the number of
|
|
214
226
|
* channels), `utterances`, `numerals`, and `language`. If `language` is provided
|
|
215
227
|
* both as a top-level parameter and in `model_config`, the top-level parameter
|
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import * as FuncsAPI from './funcs/funcs';
|
|
5
5
|
import {
|
|
6
|
+
FuncListParams,
|
|
7
|
+
FuncListResponse,
|
|
8
|
+
FuncListResponsesDefaultFlatPagination,
|
|
6
9
|
FuncRetrieveLogsParams,
|
|
7
10
|
FuncRetrieveLogsResponse,
|
|
8
11
|
FuncRetrieveMetricAggregatesParams,
|
|
@@ -14,24 +17,126 @@ import {
|
|
|
14
17
|
FunctionsObservabilityPaginationMeta,
|
|
15
18
|
LogsMeta,
|
|
16
19
|
} from './funcs/funcs';
|
|
20
|
+
import { APIPromise } from '../../core/api-promise';
|
|
21
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
22
|
+
import { path } from '../../internal/utils/path';
|
|
17
23
|
|
|
24
|
+
/**
|
|
25
|
+
* Inspect Stateful Actor types
|
|
26
|
+
*/
|
|
18
27
|
export class Compute extends APIResource {
|
|
19
28
|
funcs: FuncsAPI.Funcs = new FuncsAPI.Funcs(this._client);
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Retrieve one account-scoped Stateful Actor type. owner_function_id identifies
|
|
32
|
+
* the function that owns and ships the actor class; other functions may reference
|
|
33
|
+
* the same actor type through actor bindings.
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```ts
|
|
37
|
+
* const compute = await client.compute.retrieve('id');
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<ComputeRetrieveResponse> {
|
|
41
|
+
return this._client.get(path`/compute/actors/${id}`, options);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export interface ComputeRetrieveResponse {
|
|
46
|
+
data?: ComputeRetrieveResponse.Data;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export namespace ComputeRetrieveResponse {
|
|
50
|
+
export interface Data {
|
|
51
|
+
id?: string;
|
|
52
|
+
|
|
53
|
+
created_at?: string;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* ID of the function that owns and ships this actor type. Empty when the type is
|
|
57
|
+
* unowned.
|
|
58
|
+
*/
|
|
59
|
+
owner_function_id?: string;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Last deployment fan-out report, not a live probe. Omitted on actor types without
|
|
63
|
+
* a placement-aware deployment.
|
|
64
|
+
*/
|
|
65
|
+
placement?: Data.Placement;
|
|
66
|
+
|
|
67
|
+
record_type?: string;
|
|
68
|
+
|
|
69
|
+
status?: string;
|
|
70
|
+
|
|
71
|
+
type?: string;
|
|
72
|
+
|
|
73
|
+
updated_at?: string;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export namespace Data {
|
|
77
|
+
/**
|
|
78
|
+
* Last deployment fan-out report, not a live probe. Omitted on actor types without
|
|
79
|
+
* a placement-aware deployment.
|
|
80
|
+
*/
|
|
81
|
+
export interface Placement {
|
|
82
|
+
cluster_results?: Array<Placement.ClusterResult>;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Public regions with successful deployment
|
|
86
|
+
*/
|
|
87
|
+
clusters?: Array<string>;
|
|
88
|
+
|
|
89
|
+
excluded_clusters?: Array<string>;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Optional ISO-8601 millisecond timestamp
|
|
93
|
+
*/
|
|
94
|
+
observed_at?: string;
|
|
95
|
+
|
|
96
|
+
partial?: boolean;
|
|
97
|
+
|
|
98
|
+
policy?: 'everywhere' | 'single_site';
|
|
99
|
+
|
|
100
|
+
unchecked_clusters?: Array<string>;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export namespace Placement {
|
|
104
|
+
export interface ClusterResult {
|
|
105
|
+
/**
|
|
106
|
+
* Public region, or unknown when no mapping exists
|
|
107
|
+
*/
|
|
108
|
+
cluster_id?: string;
|
|
109
|
+
|
|
110
|
+
error?: string;
|
|
111
|
+
|
|
112
|
+
error_code?: string;
|
|
113
|
+
|
|
114
|
+
status?: string;
|
|
115
|
+
|
|
116
|
+
success?: boolean;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
20
120
|
}
|
|
21
121
|
|
|
22
122
|
Compute.Funcs = Funcs;
|
|
23
123
|
|
|
24
124
|
export declare namespace Compute {
|
|
125
|
+
export { type ComputeRetrieveResponse as ComputeRetrieveResponse };
|
|
126
|
+
|
|
25
127
|
export {
|
|
26
128
|
Funcs as Funcs,
|
|
27
129
|
type FunctionsObservabilityPaginationMeta as FunctionsObservabilityPaginationMeta,
|
|
28
130
|
type LogsMeta as LogsMeta,
|
|
131
|
+
type FuncListResponse as FuncListResponse,
|
|
29
132
|
type FuncRetrieveLogsResponse as FuncRetrieveLogsResponse,
|
|
30
133
|
type FuncRetrieveMetricAggregatesResponse as FuncRetrieveMetricAggregatesResponse,
|
|
31
134
|
type FuncRetrieveRevisionsResponse as FuncRetrieveRevisionsResponse,
|
|
32
135
|
type FuncRetrieveShipInspectionResponse as FuncRetrieveShipInspectionResponse,
|
|
136
|
+
type FuncListResponsesDefaultFlatPagination as FuncListResponsesDefaultFlatPagination,
|
|
33
137
|
type FuncRetrieveLogsParams as FuncRetrieveLogsParams,
|
|
34
138
|
type FuncRetrieveMetricAggregatesParams as FuncRetrieveMetricAggregatesParams,
|
|
35
139
|
type FuncRetrieveRevisionsParams as FuncRetrieveRevisionsParams,
|
|
140
|
+
type FuncListParams as FuncListParams,
|
|
36
141
|
};
|
|
37
142
|
}
|
|
@@ -6,6 +6,9 @@ import { buildHeaders } from '../../../internal/headers';
|
|
|
6
6
|
import { RequestOptions } from '../../../internal/request-options';
|
|
7
7
|
import { path } from '../../../internal/utils/path';
|
|
8
8
|
|
|
9
|
+
/**
|
|
10
|
+
* Manage Edge Compute functions
|
|
11
|
+
*/
|
|
9
12
|
export class Export extends APIResource {
|
|
10
13
|
/**
|
|
11
14
|
* Stops exporting a function's logs and removes its destination configuration.
|