telnyx 6.64.0 → 6.65.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 +8 -0
- package/client.d.mts +10 -11
- package/client.d.mts.map +1 -1
- package/client.d.ts +10 -11
- 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/ai/ai.d.mts +116 -114
- package/resources/ai/ai.d.mts.map +1 -1
- package/resources/ai/ai.d.ts +116 -114
- package/resources/ai/ai.d.ts.map +1 -1
- package/resources/ai/ai.js.map +1 -1
- package/resources/ai/ai.mjs.map +1 -1
- package/resources/ai/assistants/assistants.d.mts +332 -112
- package/resources/ai/assistants/assistants.d.mts.map +1 -1
- package/resources/ai/assistants/assistants.d.ts +332 -112
- 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/assistants/canary-deploys.d.mts +241 -70
- package/resources/ai/assistants/canary-deploys.d.mts.map +1 -1
- package/resources/ai/assistants/canary-deploys.d.ts +241 -70
- package/resources/ai/assistants/canary-deploys.d.ts.map +1 -1
- package/resources/ai/assistants/index.d.mts +2 -2
- package/resources/ai/assistants/index.d.mts.map +1 -1
- package/resources/ai/assistants/index.d.ts +2 -2
- package/resources/ai/assistants/index.d.ts.map +1 -1
- package/resources/ai/assistants/index.js.map +1 -1
- package/resources/ai/assistants/index.mjs.map +1 -1
- package/resources/ai/assistants/versions.d.mts +220 -6
- package/resources/ai/assistants/versions.d.mts.map +1 -1
- package/resources/ai/assistants/versions.d.ts +220 -6
- package/resources/ai/assistants/versions.d.ts.map +1 -1
- package/resources/ai/index.d.mts +2 -2
- package/resources/ai/index.d.mts.map +1 -1
- package/resources/ai/index.d.ts +2 -2
- package/resources/ai/index.d.ts.map +1 -1
- package/resources/ai/index.js.map +1 -1
- package/resources/ai/index.mjs.map +1 -1
- package/resources/ai/openai/openai.d.mts +113 -2
- package/resources/ai/openai/openai.d.mts.map +1 -1
- package/resources/ai/openai/openai.d.ts +113 -2
- package/resources/ai/openai/openai.d.ts.map +1 -1
- package/resources/ai/openai/openai.js.map +1 -1
- package/resources/ai/openai/openai.mjs.map +1 -1
- package/resources/calls/actions.d.mts +398 -41
- package/resources/calls/actions.d.mts.map +1 -1
- package/resources/calls/actions.d.ts +398 -41
- package/resources/calls/actions.d.ts.map +1 -1
- package/resources/calls/actions.js +46 -0
- package/resources/calls/actions.js.map +1 -1
- package/resources/calls/actions.mjs +46 -0
- package/resources/calls/actions.mjs.map +1 -1
- package/resources/calls/calls.d.mts +2 -2
- package/resources/calls/calls.d.mts.map +1 -1
- package/resources/calls/calls.d.ts +2 -2
- 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 +1 -1
- package/resources/calls/index.d.mts.map +1 -1
- package/resources/calls/index.d.ts +1 -1
- 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 +11 -1
- package/resources/conferences/actions.d.mts.map +1 -1
- package/resources/conferences/actions.d.ts +11 -1
- package/resources/conferences/actions.d.ts.map +1 -1
- package/resources/index.d.mts +5 -5
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +5 -5
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/networks/networks.d.mts +2 -25
- package/resources/networks/networks.d.mts.map +1 -1
- package/resources/networks/networks.d.ts +2 -25
- package/resources/networks/networks.d.ts.map +1 -1
- package/resources/networks/networks.js.map +1 -1
- package/resources/networks/networks.mjs.map +1 -1
- package/resources/public-internet-gateways.d.mts +50 -40
- package/resources/public-internet-gateways.d.mts.map +1 -1
- package/resources/public-internet-gateways.d.ts +50 -40
- package/resources/public-internet-gateways.d.ts.map +1 -1
- package/resources/public-internet-gateways.js +1 -1
- package/resources/public-internet-gateways.js.map +1 -1
- package/resources/public-internet-gateways.mjs +1 -1
- package/resources/public-internet-gateways.mjs.map +1 -1
- package/resources/shared.d.mts +0 -10
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +0 -10
- package/resources/shared.d.ts.map +1 -1
- package/resources/uac-connections/index.d.mts +1 -1
- package/resources/uac-connections/index.d.mts.map +1 -1
- package/resources/uac-connections/index.d.ts +1 -1
- package/resources/uac-connections/index.d.ts.map +1 -1
- package/resources/uac-connections/index.js.map +1 -1
- package/resources/uac-connections/index.mjs.map +1 -1
- package/resources/uac-connections/uac-connections.d.mts +1861 -211
- package/resources/uac-connections/uac-connections.d.mts.map +1 -1
- package/resources/uac-connections/uac-connections.d.ts +1861 -211
- package/resources/uac-connections/uac-connections.d.ts.map +1 -1
- package/resources/uac-connections/uac-connections.js +1 -1
- package/resources/uac-connections/uac-connections.js.map +1 -1
- package/resources/uac-connections/uac-connections.mjs +1 -1
- package/resources/uac-connections/uac-connections.mjs.map +1 -1
- package/resources/virtual-cross-connects.d.mts +504 -48
- package/resources/virtual-cross-connects.d.mts.map +1 -1
- package/resources/virtual-cross-connects.d.ts +504 -48
- package/resources/virtual-cross-connects.d.ts.map +1 -1
- package/resources/virtual-cross-connects.js +1 -1
- package/resources/virtual-cross-connects.js.map +1 -1
- package/resources/virtual-cross-connects.mjs +1 -1
- package/resources/virtual-cross-connects.mjs.map +1 -1
- package/resources/wireguard-interfaces.d.mts +127 -43
- package/resources/wireguard-interfaces.d.mts.map +1 -1
- package/resources/wireguard-interfaces.d.ts +127 -43
- package/resources/wireguard-interfaces.d.ts.map +1 -1
- package/resources/wireguard-interfaces.js +2 -5
- package/resources/wireguard-interfaces.js.map +1 -1
- package/resources/wireguard-interfaces.mjs +2 -5
- package/resources/wireguard-interfaces.mjs.map +1 -1
- package/src/client.ts +16 -27
- package/src/resources/ai/ai.ts +130 -139
- package/src/resources/ai/assistants/assistants.ts +362 -133
- package/src/resources/ai/assistants/canary-deploys.ts +266 -75
- package/src/resources/ai/assistants/index.ts +0 -10
- package/src/resources/ai/assistants/versions.ts +244 -6
- package/src/resources/ai/index.ts +0 -6
- package/src/resources/ai/openai/openai.ts +131 -2
- package/src/resources/calls/actions.ts +543 -76
- package/src/resources/calls/calls.ts +8 -4
- package/src/resources/calls/index.ts +4 -2
- package/src/resources/conferences/actions.ts +13 -1
- package/src/resources/index.ts +8 -13
- package/src/resources/networks/networks.ts +4 -31
- package/src/resources/public-internet-gateways.ts +55 -46
- package/src/resources/shared.ts +0 -12
- package/src/resources/uac-connections/index.ts +2 -6
- package/src/resources/uac-connections/uac-connections.ts +2377 -378
- package/src/resources/virtual-cross-connects.ts +595 -54
- package/src/resources/wireguard-interfaces.ts +158 -53
- 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,7 +1,8 @@
|
|
|
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
|
|
4
|
+
import * as GlobalIPAssignmentsAPI from './global-ip-assignments';
|
|
5
|
+
import * as PublicInternetGatewaysAPI from './public-internet-gateways';
|
|
5
6
|
import { APIPromise } from '../core/api-promise';
|
|
6
7
|
import { DefaultFlatPagination, type DefaultFlatPaginationParams, PagePromise } from '../core/pagination';
|
|
7
8
|
import { RequestOptions } from '../internal/request-options';
|
|
@@ -51,7 +52,7 @@ export class WireguardInterfaces extends APIResource {
|
|
|
51
52
|
* @example
|
|
52
53
|
* ```ts
|
|
53
54
|
* // Automatically fetches more pages as needed.
|
|
54
|
-
* for await (const
|
|
55
|
+
* for await (const wireguardInterfaceListResponse of client.wireguardInterfaces.list()) {
|
|
55
56
|
* // ...
|
|
56
57
|
* }
|
|
57
58
|
* ```
|
|
@@ -59,11 +60,12 @@ export class WireguardInterfaces extends APIResource {
|
|
|
59
60
|
list(
|
|
60
61
|
query: WireguardInterfaceListParams | null | undefined = {},
|
|
61
62
|
options?: RequestOptions,
|
|
62
|
-
): PagePromise<
|
|
63
|
-
return this._client.getAPIList(
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
63
|
+
): PagePromise<WireguardInterfaceListResponsesDefaultFlatPagination, WireguardInterfaceListResponse> {
|
|
64
|
+
return this._client.getAPIList(
|
|
65
|
+
'/wireguard_interfaces',
|
|
66
|
+
DefaultFlatPagination<WireguardInterfaceListResponse>,
|
|
67
|
+
{ query, ...options },
|
|
68
|
+
);
|
|
67
69
|
}
|
|
68
70
|
|
|
69
71
|
/**
|
|
@@ -82,19 +84,110 @@ export class WireguardInterfaces extends APIResource {
|
|
|
82
84
|
}
|
|
83
85
|
}
|
|
84
86
|
|
|
85
|
-
export type
|
|
87
|
+
export type WireguardInterfaceListResponsesDefaultFlatPagination =
|
|
88
|
+
DefaultFlatPagination<WireguardInterfaceListResponse>;
|
|
86
89
|
|
|
87
|
-
export interface
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
*/
|
|
91
|
-
id?: string;
|
|
90
|
+
export interface WireguardInterfaceCreateResponse {
|
|
91
|
+
data?: WireguardInterfaceCreateResponse.Data;
|
|
92
|
+
}
|
|
92
93
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
94
|
+
export namespace WireguardInterfaceCreateResponse {
|
|
95
|
+
export interface Data extends GlobalIPAssignmentsAPI.Record, PublicInternetGatewaysAPI.NetworkInterface {
|
|
96
|
+
/**
|
|
97
|
+
* Enable SIP traffic forwarding over VPN interface.
|
|
98
|
+
*/
|
|
99
|
+
enable_sip_trunking?: boolean;
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* The Telnyx WireGuard peers `Peer.endpoint` value.
|
|
103
|
+
*/
|
|
104
|
+
endpoint?: string;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* The Telnyx WireGuard peers `Peer.PublicKey`.
|
|
108
|
+
*/
|
|
109
|
+
public_key?: string;
|
|
110
|
+
|
|
111
|
+
region?: Data.Region;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* The region interface is deployed to.
|
|
115
|
+
*/
|
|
116
|
+
region_code?: string;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export namespace Data {
|
|
120
|
+
export interface Region {
|
|
121
|
+
/**
|
|
122
|
+
* Region code of the interface.
|
|
123
|
+
*/
|
|
124
|
+
code?: string;
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Region name of the interface.
|
|
128
|
+
*/
|
|
129
|
+
name?: string;
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Identifies the type of the resource.
|
|
133
|
+
*/
|
|
134
|
+
record_type?: string;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export interface WireguardInterfaceRetrieveResponse {
|
|
140
|
+
data?: WireguardInterfaceRetrieveResponse.Data;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export namespace WireguardInterfaceRetrieveResponse {
|
|
144
|
+
export interface Data extends GlobalIPAssignmentsAPI.Record, PublicInternetGatewaysAPI.NetworkInterface {
|
|
145
|
+
/**
|
|
146
|
+
* Enable SIP traffic forwarding over VPN interface.
|
|
147
|
+
*/
|
|
148
|
+
enable_sip_trunking?: boolean;
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* The Telnyx WireGuard peers `Peer.endpoint` value.
|
|
152
|
+
*/
|
|
153
|
+
endpoint?: string;
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* The Telnyx WireGuard peers `Peer.PublicKey`.
|
|
157
|
+
*/
|
|
158
|
+
public_key?: string;
|
|
159
|
+
|
|
160
|
+
region?: Data.Region;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* The region interface is deployed to.
|
|
164
|
+
*/
|
|
165
|
+
region_code?: string;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export namespace Data {
|
|
169
|
+
export interface Region {
|
|
170
|
+
/**
|
|
171
|
+
* Region code of the interface.
|
|
172
|
+
*/
|
|
173
|
+
code?: string;
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Region name of the interface.
|
|
177
|
+
*/
|
|
178
|
+
name?: string;
|
|
97
179
|
|
|
180
|
+
/**
|
|
181
|
+
* Identifies the type of the resource.
|
|
182
|
+
*/
|
|
183
|
+
record_type?: string;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
export interface WireguardInterfaceListResponse
|
|
189
|
+
extends GlobalIPAssignmentsAPI.Record,
|
|
190
|
+
PublicInternetGatewaysAPI.NetworkInterface {
|
|
98
191
|
/**
|
|
99
192
|
* Enable SIP traffic forwarding over VPN interface.
|
|
100
193
|
*/
|
|
@@ -105,45 +198,20 @@ export interface WireguardInterfaceRead {
|
|
|
105
198
|
*/
|
|
106
199
|
endpoint?: string;
|
|
107
200
|
|
|
108
|
-
/**
|
|
109
|
-
* A user specified name for the interface.
|
|
110
|
-
*/
|
|
111
|
-
name?: string;
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* The id of the network associated with the interface.
|
|
115
|
-
*/
|
|
116
|
-
network_id?: string;
|
|
117
|
-
|
|
118
201
|
/**
|
|
119
202
|
* The Telnyx WireGuard peers `Peer.PublicKey`.
|
|
120
203
|
*/
|
|
121
204
|
public_key?: string;
|
|
122
205
|
|
|
123
|
-
|
|
124
|
-
* Identifies the type of the resource.
|
|
125
|
-
*/
|
|
126
|
-
record_type?: string;
|
|
127
|
-
|
|
128
|
-
region?: WireguardInterfaceRead.Region;
|
|
206
|
+
region?: WireguardInterfaceListResponse.Region;
|
|
129
207
|
|
|
130
208
|
/**
|
|
131
209
|
* The region interface is deployed to.
|
|
132
210
|
*/
|
|
133
211
|
region_code?: string;
|
|
134
|
-
|
|
135
|
-
/**
|
|
136
|
-
* The current status of the interface deployment.
|
|
137
|
-
*/
|
|
138
|
-
status?: NetworksAPI.InterfaceStatus;
|
|
139
|
-
|
|
140
|
-
/**
|
|
141
|
-
* ISO 8601 formatted date-time indicating when the resource was updated.
|
|
142
|
-
*/
|
|
143
|
-
updated_at?: string;
|
|
144
212
|
}
|
|
145
213
|
|
|
146
|
-
export namespace
|
|
214
|
+
export namespace WireguardInterfaceListResponse {
|
|
147
215
|
export interface Region {
|
|
148
216
|
/**
|
|
149
217
|
* Region code of the interface.
|
|
@@ -162,16 +230,53 @@ export namespace WireguardInterfaceRead {
|
|
|
162
230
|
}
|
|
163
231
|
}
|
|
164
232
|
|
|
165
|
-
export interface
|
|
166
|
-
data?:
|
|
233
|
+
export interface WireguardInterfaceDeleteResponse {
|
|
234
|
+
data?: WireguardInterfaceDeleteResponse.Data;
|
|
167
235
|
}
|
|
168
236
|
|
|
169
|
-
export
|
|
170
|
-
|
|
171
|
-
|
|
237
|
+
export namespace WireguardInterfaceDeleteResponse {
|
|
238
|
+
export interface Data extends GlobalIPAssignmentsAPI.Record, PublicInternetGatewaysAPI.NetworkInterface {
|
|
239
|
+
/**
|
|
240
|
+
* Enable SIP traffic forwarding over VPN interface.
|
|
241
|
+
*/
|
|
242
|
+
enable_sip_trunking?: boolean;
|
|
172
243
|
|
|
173
|
-
|
|
174
|
-
|
|
244
|
+
/**
|
|
245
|
+
* The Telnyx WireGuard peers `Peer.endpoint` value.
|
|
246
|
+
*/
|
|
247
|
+
endpoint?: string;
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* The Telnyx WireGuard peers `Peer.PublicKey`.
|
|
251
|
+
*/
|
|
252
|
+
public_key?: string;
|
|
253
|
+
|
|
254
|
+
region?: Data.Region;
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* The region interface is deployed to.
|
|
258
|
+
*/
|
|
259
|
+
region_code?: string;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
export namespace Data {
|
|
263
|
+
export interface Region {
|
|
264
|
+
/**
|
|
265
|
+
* Region code of the interface.
|
|
266
|
+
*/
|
|
267
|
+
code?: string;
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* Region name of the interface.
|
|
271
|
+
*/
|
|
272
|
+
name?: string;
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* Identifies the type of the resource.
|
|
276
|
+
*/
|
|
277
|
+
record_type?: string;
|
|
278
|
+
}
|
|
279
|
+
}
|
|
175
280
|
}
|
|
176
281
|
|
|
177
282
|
export interface WireguardInterfaceCreateParams {
|
|
@@ -217,11 +322,11 @@ export namespace WireguardInterfaceListParams {
|
|
|
217
322
|
|
|
218
323
|
export declare namespace WireguardInterfaces {
|
|
219
324
|
export {
|
|
220
|
-
type WireguardInterfaceRead as WireguardInterfaceRead,
|
|
221
325
|
type WireguardInterfaceCreateResponse as WireguardInterfaceCreateResponse,
|
|
222
326
|
type WireguardInterfaceRetrieveResponse as WireguardInterfaceRetrieveResponse,
|
|
327
|
+
type WireguardInterfaceListResponse as WireguardInterfaceListResponse,
|
|
223
328
|
type WireguardInterfaceDeleteResponse as WireguardInterfaceDeleteResponse,
|
|
224
|
-
type
|
|
329
|
+
type WireguardInterfaceListResponsesDefaultFlatPagination as WireguardInterfaceListResponsesDefaultFlatPagination,
|
|
225
330
|
type WireguardInterfaceCreateParams as WireguardInterfaceCreateParams,
|
|
226
331
|
type WireguardInterfaceListParams as WireguardInterfaceListParams,
|
|
227
332
|
};
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '6.
|
|
1
|
+
export const VERSION = '6.65.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.65.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.65.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.65.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|