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.
Files changed (149) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/client.d.mts +10 -11
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +10 -11
  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/ai/ai.d.mts +116 -114
  10. package/resources/ai/ai.d.mts.map +1 -1
  11. package/resources/ai/ai.d.ts +116 -114
  12. package/resources/ai/ai.d.ts.map +1 -1
  13. package/resources/ai/ai.js.map +1 -1
  14. package/resources/ai/ai.mjs.map +1 -1
  15. package/resources/ai/assistants/assistants.d.mts +332 -112
  16. package/resources/ai/assistants/assistants.d.mts.map +1 -1
  17. package/resources/ai/assistants/assistants.d.ts +332 -112
  18. package/resources/ai/assistants/assistants.d.ts.map +1 -1
  19. package/resources/ai/assistants/assistants.js.map +1 -1
  20. package/resources/ai/assistants/assistants.mjs.map +1 -1
  21. package/resources/ai/assistants/canary-deploys.d.mts +241 -70
  22. package/resources/ai/assistants/canary-deploys.d.mts.map +1 -1
  23. package/resources/ai/assistants/canary-deploys.d.ts +241 -70
  24. package/resources/ai/assistants/canary-deploys.d.ts.map +1 -1
  25. package/resources/ai/assistants/index.d.mts +2 -2
  26. package/resources/ai/assistants/index.d.mts.map +1 -1
  27. package/resources/ai/assistants/index.d.ts +2 -2
  28. package/resources/ai/assistants/index.d.ts.map +1 -1
  29. package/resources/ai/assistants/index.js.map +1 -1
  30. package/resources/ai/assistants/index.mjs.map +1 -1
  31. package/resources/ai/assistants/versions.d.mts +220 -6
  32. package/resources/ai/assistants/versions.d.mts.map +1 -1
  33. package/resources/ai/assistants/versions.d.ts +220 -6
  34. package/resources/ai/assistants/versions.d.ts.map +1 -1
  35. package/resources/ai/index.d.mts +2 -2
  36. package/resources/ai/index.d.mts.map +1 -1
  37. package/resources/ai/index.d.ts +2 -2
  38. package/resources/ai/index.d.ts.map +1 -1
  39. package/resources/ai/index.js.map +1 -1
  40. package/resources/ai/index.mjs.map +1 -1
  41. package/resources/ai/openai/openai.d.mts +113 -2
  42. package/resources/ai/openai/openai.d.mts.map +1 -1
  43. package/resources/ai/openai/openai.d.ts +113 -2
  44. package/resources/ai/openai/openai.d.ts.map +1 -1
  45. package/resources/ai/openai/openai.js.map +1 -1
  46. package/resources/ai/openai/openai.mjs.map +1 -1
  47. package/resources/calls/actions.d.mts +398 -41
  48. package/resources/calls/actions.d.mts.map +1 -1
  49. package/resources/calls/actions.d.ts +398 -41
  50. package/resources/calls/actions.d.ts.map +1 -1
  51. package/resources/calls/actions.js +46 -0
  52. package/resources/calls/actions.js.map +1 -1
  53. package/resources/calls/actions.mjs +46 -0
  54. package/resources/calls/actions.mjs.map +1 -1
  55. package/resources/calls/calls.d.mts +2 -2
  56. package/resources/calls/calls.d.mts.map +1 -1
  57. package/resources/calls/calls.d.ts +2 -2
  58. package/resources/calls/calls.d.ts.map +1 -1
  59. package/resources/calls/calls.js.map +1 -1
  60. package/resources/calls/calls.mjs.map +1 -1
  61. package/resources/calls/index.d.mts +1 -1
  62. package/resources/calls/index.d.mts.map +1 -1
  63. package/resources/calls/index.d.ts +1 -1
  64. package/resources/calls/index.d.ts.map +1 -1
  65. package/resources/calls/index.js.map +1 -1
  66. package/resources/calls/index.mjs.map +1 -1
  67. package/resources/conferences/actions.d.mts +11 -1
  68. package/resources/conferences/actions.d.mts.map +1 -1
  69. package/resources/conferences/actions.d.ts +11 -1
  70. package/resources/conferences/actions.d.ts.map +1 -1
  71. package/resources/index.d.mts +5 -5
  72. package/resources/index.d.mts.map +1 -1
  73. package/resources/index.d.ts +5 -5
  74. package/resources/index.d.ts.map +1 -1
  75. package/resources/index.js.map +1 -1
  76. package/resources/index.mjs.map +1 -1
  77. package/resources/networks/networks.d.mts +2 -25
  78. package/resources/networks/networks.d.mts.map +1 -1
  79. package/resources/networks/networks.d.ts +2 -25
  80. package/resources/networks/networks.d.ts.map +1 -1
  81. package/resources/networks/networks.js.map +1 -1
  82. package/resources/networks/networks.mjs.map +1 -1
  83. package/resources/public-internet-gateways.d.mts +50 -40
  84. package/resources/public-internet-gateways.d.mts.map +1 -1
  85. package/resources/public-internet-gateways.d.ts +50 -40
  86. package/resources/public-internet-gateways.d.ts.map +1 -1
  87. package/resources/public-internet-gateways.js +1 -1
  88. package/resources/public-internet-gateways.js.map +1 -1
  89. package/resources/public-internet-gateways.mjs +1 -1
  90. package/resources/public-internet-gateways.mjs.map +1 -1
  91. package/resources/shared.d.mts +0 -10
  92. package/resources/shared.d.mts.map +1 -1
  93. package/resources/shared.d.ts +0 -10
  94. package/resources/shared.d.ts.map +1 -1
  95. package/resources/uac-connections/index.d.mts +1 -1
  96. package/resources/uac-connections/index.d.mts.map +1 -1
  97. package/resources/uac-connections/index.d.ts +1 -1
  98. package/resources/uac-connections/index.d.ts.map +1 -1
  99. package/resources/uac-connections/index.js.map +1 -1
  100. package/resources/uac-connections/index.mjs.map +1 -1
  101. package/resources/uac-connections/uac-connections.d.mts +1861 -211
  102. package/resources/uac-connections/uac-connections.d.mts.map +1 -1
  103. package/resources/uac-connections/uac-connections.d.ts +1861 -211
  104. package/resources/uac-connections/uac-connections.d.ts.map +1 -1
  105. package/resources/uac-connections/uac-connections.js +1 -1
  106. package/resources/uac-connections/uac-connections.js.map +1 -1
  107. package/resources/uac-connections/uac-connections.mjs +1 -1
  108. package/resources/uac-connections/uac-connections.mjs.map +1 -1
  109. package/resources/virtual-cross-connects.d.mts +504 -48
  110. package/resources/virtual-cross-connects.d.mts.map +1 -1
  111. package/resources/virtual-cross-connects.d.ts +504 -48
  112. package/resources/virtual-cross-connects.d.ts.map +1 -1
  113. package/resources/virtual-cross-connects.js +1 -1
  114. package/resources/virtual-cross-connects.js.map +1 -1
  115. package/resources/virtual-cross-connects.mjs +1 -1
  116. package/resources/virtual-cross-connects.mjs.map +1 -1
  117. package/resources/wireguard-interfaces.d.mts +127 -43
  118. package/resources/wireguard-interfaces.d.mts.map +1 -1
  119. package/resources/wireguard-interfaces.d.ts +127 -43
  120. package/resources/wireguard-interfaces.d.ts.map +1 -1
  121. package/resources/wireguard-interfaces.js +2 -5
  122. package/resources/wireguard-interfaces.js.map +1 -1
  123. package/resources/wireguard-interfaces.mjs +2 -5
  124. package/resources/wireguard-interfaces.mjs.map +1 -1
  125. package/src/client.ts +16 -27
  126. package/src/resources/ai/ai.ts +130 -139
  127. package/src/resources/ai/assistants/assistants.ts +362 -133
  128. package/src/resources/ai/assistants/canary-deploys.ts +266 -75
  129. package/src/resources/ai/assistants/index.ts +0 -10
  130. package/src/resources/ai/assistants/versions.ts +244 -6
  131. package/src/resources/ai/index.ts +0 -6
  132. package/src/resources/ai/openai/openai.ts +131 -2
  133. package/src/resources/calls/actions.ts +543 -76
  134. package/src/resources/calls/calls.ts +8 -4
  135. package/src/resources/calls/index.ts +4 -2
  136. package/src/resources/conferences/actions.ts +13 -1
  137. package/src/resources/index.ts +8 -13
  138. package/src/resources/networks/networks.ts +4 -31
  139. package/src/resources/public-internet-gateways.ts +55 -46
  140. package/src/resources/shared.ts +0 -12
  141. package/src/resources/uac-connections/index.ts +2 -6
  142. package/src/resources/uac-connections/uac-connections.ts +2377 -378
  143. package/src/resources/virtual-cross-connects.ts +595 -54
  144. package/src/resources/wireguard-interfaces.ts +158 -53
  145. package/src/version.ts +1 -1
  146. package/version.d.mts +1 -1
  147. package/version.d.ts +1 -1
  148. package/version.js +1 -1
  149. 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 NetworksAPI from './networks/networks';
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 wireguardInterfaceRead of client.wireguardInterfaces.list()) {
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<WireguardInterfaceReadsDefaultFlatPagination, WireguardInterfaceRead> {
63
- return this._client.getAPIList('/wireguard_interfaces', DefaultFlatPagination<WireguardInterfaceRead>, {
64
- query,
65
- ...options,
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 WireguardInterfaceReadsDefaultFlatPagination = DefaultFlatPagination<WireguardInterfaceRead>;
87
+ export type WireguardInterfaceListResponsesDefaultFlatPagination =
88
+ DefaultFlatPagination<WireguardInterfaceListResponse>;
86
89
 
87
- export interface WireguardInterfaceRead {
88
- /**
89
- * Identifies the resource.
90
- */
91
- id?: string;
90
+ export interface WireguardInterfaceCreateResponse {
91
+ data?: WireguardInterfaceCreateResponse.Data;
92
+ }
92
93
 
93
- /**
94
- * ISO 8601 formatted date-time indicating when the resource was created.
95
- */
96
- created_at?: string;
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 WireguardInterfaceRead {
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 WireguardInterfaceCreateResponse {
166
- data?: WireguardInterfaceRead;
233
+ export interface WireguardInterfaceDeleteResponse {
234
+ data?: WireguardInterfaceDeleteResponse.Data;
167
235
  }
168
236
 
169
- export interface WireguardInterfaceRetrieveResponse {
170
- data?: WireguardInterfaceRead;
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
- export interface WireguardInterfaceDeleteResponse {
174
- data?: WireguardInterfaceRead;
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 WireguardInterfaceReadsDefaultFlatPagination as WireguardInterfaceReadsDefaultFlatPagination,
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.64.0'; // x-release-please-version
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.64.0";
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.64.0";
1
+ export declare const VERSION = "6.65.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '6.64.0'; // x-release-please-version
4
+ exports.VERSION = '6.65.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '6.64.0'; // x-release-please-version
1
+ export const VERSION = '6.65.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map