telnyx 6.52.0 → 6.53.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 (142) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/client.d.mts +5 -4
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +5 -4
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs +1 -1
  8. package/client.mjs.map +1 -1
  9. package/package.json +1 -1
  10. package/resources/ai/ai.d.mts +10 -12
  11. package/resources/ai/ai.d.mts.map +1 -1
  12. package/resources/ai/ai.d.ts +10 -12
  13. package/resources/ai/ai.d.ts.map +1 -1
  14. package/resources/ai/ai.js.map +1 -1
  15. package/resources/ai/ai.mjs.map +1 -1
  16. package/resources/ai/assistants/assistants.d.mts +110 -322
  17. package/resources/ai/assistants/assistants.d.mts.map +1 -1
  18. package/resources/ai/assistants/assistants.d.ts +110 -322
  19. package/resources/ai/assistants/assistants.d.ts.map +1 -1
  20. package/resources/ai/assistants/assistants.js.map +1 -1
  21. package/resources/ai/assistants/assistants.mjs.map +1 -1
  22. package/resources/ai/assistants/canary-deploys.d.mts +70 -241
  23. package/resources/ai/assistants/canary-deploys.d.mts.map +1 -1
  24. package/resources/ai/assistants/canary-deploys.d.ts +70 -241
  25. package/resources/ai/assistants/canary-deploys.d.ts.map +1 -1
  26. package/resources/ai/assistants/index.d.mts +2 -2
  27. package/resources/ai/assistants/index.d.mts.map +1 -1
  28. package/resources/ai/assistants/index.d.ts +2 -2
  29. package/resources/ai/assistants/index.d.ts.map +1 -1
  30. package/resources/ai/assistants/index.js.map +1 -1
  31. package/resources/ai/assistants/index.mjs.map +1 -1
  32. package/resources/ai/assistants/versions.d.mts +6 -212
  33. package/resources/ai/assistants/versions.d.mts.map +1 -1
  34. package/resources/ai/assistants/versions.d.ts +6 -212
  35. package/resources/ai/assistants/versions.d.ts.map +1 -1
  36. package/resources/ai/index.d.mts +2 -2
  37. package/resources/ai/index.d.mts.map +1 -1
  38. package/resources/ai/index.d.ts +2 -2
  39. package/resources/ai/index.d.ts.map +1 -1
  40. package/resources/ai/index.js.map +1 -1
  41. package/resources/ai/index.mjs +1 -1
  42. package/resources/ai/index.mjs.map +1 -1
  43. package/resources/ai/openai/openai.d.mts +2 -9
  44. package/resources/ai/openai/openai.d.mts.map +1 -1
  45. package/resources/ai/openai/openai.d.ts +2 -9
  46. package/resources/ai/openai/openai.d.ts.map +1 -1
  47. package/resources/ai/openai/openai.js.map +1 -1
  48. package/resources/ai/openai/openai.mjs.map +1 -1
  49. package/resources/calls/actions.d.mts +41 -119
  50. package/resources/calls/actions.d.mts.map +1 -1
  51. package/resources/calls/actions.d.ts +41 -119
  52. package/resources/calls/actions.d.ts.map +1 -1
  53. package/resources/calls/calls.d.mts +2 -2
  54. package/resources/calls/calls.d.mts.map +1 -1
  55. package/resources/calls/calls.d.ts +2 -2
  56. package/resources/calls/calls.d.ts.map +1 -1
  57. package/resources/calls/calls.js.map +1 -1
  58. package/resources/calls/calls.mjs.map +1 -1
  59. package/resources/calls/index.d.mts +1 -1
  60. package/resources/calls/index.d.mts.map +1 -1
  61. package/resources/calls/index.d.ts +1 -1
  62. package/resources/calls/index.d.ts.map +1 -1
  63. package/resources/calls/index.js.map +1 -1
  64. package/resources/calls/index.mjs.map +1 -1
  65. package/resources/conferences/actions.d.mts +1 -11
  66. package/resources/conferences/actions.d.mts.map +1 -1
  67. package/resources/conferences/actions.d.ts +1 -11
  68. package/resources/conferences/actions.d.ts.map +1 -1
  69. package/resources/index.d.mts +2 -2
  70. package/resources/index.d.mts.map +1 -1
  71. package/resources/index.d.ts +2 -2
  72. package/resources/index.d.ts.map +1 -1
  73. package/resources/index.js.map +1 -1
  74. package/resources/index.mjs +1 -1
  75. package/resources/index.mjs.map +1 -1
  76. package/resources/networks/networks.d.mts +25 -2
  77. package/resources/networks/networks.d.mts.map +1 -1
  78. package/resources/networks/networks.d.ts +25 -2
  79. package/resources/networks/networks.d.ts.map +1 -1
  80. package/resources/networks/networks.js.map +1 -1
  81. package/resources/networks/networks.mjs.map +1 -1
  82. package/resources/public-internet-gateways.d.mts +116 -6
  83. package/resources/public-internet-gateways.d.mts.map +1 -1
  84. package/resources/public-internet-gateways.d.ts +116 -6
  85. package/resources/public-internet-gateways.d.ts.map +1 -1
  86. package/resources/public-internet-gateways.js.map +1 -1
  87. package/resources/public-internet-gateways.mjs.map +1 -1
  88. package/resources/shared.d.mts +10 -0
  89. package/resources/shared.d.mts.map +1 -1
  90. package/resources/shared.d.ts +10 -0
  91. package/resources/shared.d.ts.map +1 -1
  92. package/resources/uac-connections/index.d.mts +1 -1
  93. package/resources/uac-connections/index.d.mts.map +1 -1
  94. package/resources/uac-connections/index.d.ts +1 -1
  95. package/resources/uac-connections/index.d.ts.map +1 -1
  96. package/resources/uac-connections/index.js.map +1 -1
  97. package/resources/uac-connections/index.mjs.map +1 -1
  98. package/resources/uac-connections/uac-connections.d.mts +211 -1861
  99. package/resources/uac-connections/uac-connections.d.mts.map +1 -1
  100. package/resources/uac-connections/uac-connections.d.ts +211 -1861
  101. package/resources/uac-connections/uac-connections.d.ts.map +1 -1
  102. package/resources/uac-connections/uac-connections.js +1 -1
  103. package/resources/uac-connections/uac-connections.js.map +1 -1
  104. package/resources/uac-connections/uac-connections.mjs +1 -1
  105. package/resources/uac-connections/uac-connections.mjs.map +1 -1
  106. package/resources/virtual-cross-connects.d.mts +161 -237
  107. package/resources/virtual-cross-connects.d.mts.map +1 -1
  108. package/resources/virtual-cross-connects.d.ts +161 -237
  109. package/resources/virtual-cross-connects.d.ts.map +1 -1
  110. package/resources/virtual-cross-connects.js.map +1 -1
  111. package/resources/virtual-cross-connects.mjs.map +1 -1
  112. package/resources/wireguard-interfaces.d.mts +117 -6
  113. package/resources/wireguard-interfaces.d.mts.map +1 -1
  114. package/resources/wireguard-interfaces.d.ts +117 -6
  115. package/resources/wireguard-interfaces.d.ts.map +1 -1
  116. package/resources/wireguard-interfaces.js.map +1 -1
  117. package/resources/wireguard-interfaces.mjs.map +1 -1
  118. package/src/client.ts +21 -5
  119. package/src/resources/ai/ai.ts +20 -11
  120. package/src/resources/ai/assistants/assistants.ts +131 -350
  121. package/src/resources/ai/assistants/canary-deploys.ts +75 -266
  122. package/src/resources/ai/assistants/index.ts +10 -0
  123. package/src/resources/ai/assistants/versions.ts +6 -234
  124. package/src/resources/ai/index.ts +12 -1
  125. package/src/resources/ai/openai/openai.ts +2 -13
  126. package/src/resources/calls/actions.ts +76 -192
  127. package/src/resources/calls/calls.ts +4 -0
  128. package/src/resources/calls/index.ts +2 -0
  129. package/src/resources/conferences/actions.ts +1 -13
  130. package/src/resources/index.ts +13 -3
  131. package/src/resources/networks/networks.ts +31 -4
  132. package/src/resources/public-internet-gateways.ts +144 -6
  133. package/src/resources/shared.ts +12 -0
  134. package/src/resources/uac-connections/index.ts +6 -2
  135. package/src/resources/uac-connections/uac-connections.ts +397 -2396
  136. package/src/resources/virtual-cross-connects.ts +176 -249
  137. package/src/resources/wireguard-interfaces.ts +145 -8
  138. package/src/version.ts +1 -1
  139. package/version.d.mts +1 -1
  140. package/version.d.ts +1 -1
  141. package/version.js +1 -1
  142. package/version.mjs +1 -1
@@ -1,8 +1,6 @@
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 PublicInternetGatewaysAPI from './public-internet-gateways';
5
- import * as GlobalIPAssignmentsAPI from './global-ip-assignments';
6
4
  import * as NetworksAPI from './networks/networks';
7
5
  import { APIPromise } from '../core/api-promise';
8
6
  import { DefaultFlatPagination, type DefaultFlatPaginationParams, PagePromise } from '../core/pagination';
@@ -114,16 +112,51 @@ export interface PublicInternetGatewayCreateResponse {
114
112
  }
115
113
 
116
114
  export namespace PublicInternetGatewayCreateResponse {
117
- export interface Data extends GlobalIPAssignmentsAPI.Record, PublicInternetGatewaysAPI.NetworkInterface {
115
+ export interface Data {
116
+ /**
117
+ * Identifies the resource.
118
+ */
119
+ id?: string;
120
+
121
+ /**
122
+ * ISO 8601 formatted date-time indicating when the resource was created.
123
+ */
124
+ created_at?: string;
125
+
126
+ /**
127
+ * A user specified name for the interface.
128
+ */
129
+ name?: string;
130
+
131
+ /**
132
+ * The id of the network associated with the interface.
133
+ */
134
+ network_id?: string;
135
+
118
136
  /**
119
137
  * The publically accessible ip for this interface.
120
138
  */
121
139
  public_ip?: string;
122
140
 
141
+ /**
142
+ * Identifies the type of the resource.
143
+ */
144
+ record_type?: string;
145
+
123
146
  /**
124
147
  * The region interface is deployed to.
125
148
  */
126
149
  region_code?: string;
150
+
151
+ /**
152
+ * The current status of the interface deployment.
153
+ */
154
+ status?: NetworksAPI.InterfaceStatus;
155
+
156
+ /**
157
+ * ISO 8601 formatted date-time indicating when the resource was updated.
158
+ */
159
+ updated_at?: string;
127
160
  }
128
161
  }
129
162
 
@@ -132,29 +165,99 @@ export interface PublicInternetGatewayRetrieveResponse {
132
165
  }
133
166
 
134
167
  export namespace PublicInternetGatewayRetrieveResponse {
135
- export interface Data extends GlobalIPAssignmentsAPI.Record, PublicInternetGatewaysAPI.NetworkInterface {
168
+ export interface Data {
169
+ /**
170
+ * Identifies the resource.
171
+ */
172
+ id?: string;
173
+
174
+ /**
175
+ * ISO 8601 formatted date-time indicating when the resource was created.
176
+ */
177
+ created_at?: string;
178
+
179
+ /**
180
+ * A user specified name for the interface.
181
+ */
182
+ name?: string;
183
+
184
+ /**
185
+ * The id of the network associated with the interface.
186
+ */
187
+ network_id?: string;
188
+
136
189
  /**
137
190
  * The publically accessible ip for this interface.
138
191
  */
139
192
  public_ip?: string;
140
193
 
194
+ /**
195
+ * Identifies the type of the resource.
196
+ */
197
+ record_type?: string;
198
+
141
199
  /**
142
200
  * The region interface is deployed to.
143
201
  */
144
202
  region_code?: string;
203
+
204
+ /**
205
+ * The current status of the interface deployment.
206
+ */
207
+ status?: NetworksAPI.InterfaceStatus;
208
+
209
+ /**
210
+ * ISO 8601 formatted date-time indicating when the resource was updated.
211
+ */
212
+ updated_at?: string;
145
213
  }
146
214
  }
147
215
 
148
- export interface PublicInternetGatewayListResponse extends GlobalIPAssignmentsAPI.Record, NetworkInterface {
216
+ export interface PublicInternetGatewayListResponse {
217
+ /**
218
+ * Identifies the resource.
219
+ */
220
+ id?: string;
221
+
222
+ /**
223
+ * ISO 8601 formatted date-time indicating when the resource was created.
224
+ */
225
+ created_at?: string;
226
+
227
+ /**
228
+ * A user specified name for the interface.
229
+ */
230
+ name?: string;
231
+
232
+ /**
233
+ * The id of the network associated with the interface.
234
+ */
235
+ network_id?: string;
236
+
149
237
  /**
150
238
  * The publically accessible ip for this interface.
151
239
  */
152
240
  public_ip?: string;
153
241
 
242
+ /**
243
+ * Identifies the type of the resource.
244
+ */
245
+ record_type?: string;
246
+
154
247
  /**
155
248
  * The region interface is deployed to.
156
249
  */
157
250
  region_code?: string;
251
+
252
+ /**
253
+ * The current status of the interface deployment.
254
+ */
255
+ status?: NetworksAPI.InterfaceStatus;
256
+
257
+ /**
258
+ * ISO 8601 formatted date-time indicating when the resource was updated.
259
+ */
260
+ updated_at?: string;
158
261
  }
159
262
 
160
263
  export interface PublicInternetGatewayDeleteResponse {
@@ -162,16 +265,51 @@ export interface PublicInternetGatewayDeleteResponse {
162
265
  }
163
266
 
164
267
  export namespace PublicInternetGatewayDeleteResponse {
165
- export interface Data extends GlobalIPAssignmentsAPI.Record, PublicInternetGatewaysAPI.NetworkInterface {
268
+ export interface Data {
269
+ /**
270
+ * Identifies the resource.
271
+ */
272
+ id?: string;
273
+
274
+ /**
275
+ * ISO 8601 formatted date-time indicating when the resource was created.
276
+ */
277
+ created_at?: string;
278
+
279
+ /**
280
+ * A user specified name for the interface.
281
+ */
282
+ name?: string;
283
+
284
+ /**
285
+ * The id of the network associated with the interface.
286
+ */
287
+ network_id?: string;
288
+
166
289
  /**
167
290
  * The publically accessible ip for this interface.
168
291
  */
169
292
  public_ip?: string;
170
293
 
294
+ /**
295
+ * Identifies the type of the resource.
296
+ */
297
+ record_type?: string;
298
+
171
299
  /**
172
300
  * The region interface is deployed to.
173
301
  */
174
302
  region_code?: string;
303
+
304
+ /**
305
+ * The current status of the interface deployment.
306
+ */
307
+ status?: NetworksAPI.InterfaceStatus;
308
+
309
+ /**
310
+ * ISO 8601 formatted date-time indicating when the resource was updated.
311
+ */
312
+ updated_at?: string;
175
313
  }
176
314
  }
177
315
 
@@ -1423,6 +1423,18 @@ export namespace WhatsappTemplateData {
1423
1423
  }
1424
1424
  }
1425
1425
 
1426
+ export interface XaiVoiceSettings {
1427
+ /**
1428
+ * Voice settings provider type
1429
+ */
1430
+ type: 'xai';
1431
+
1432
+ /**
1433
+ * Language code, or `auto` to detect automatically.
1434
+ */
1435
+ language?: string;
1436
+ }
1437
+
1426
1438
  export type MessagingHostedNumberOrdersDefaultFlatPagination =
1427
1439
  DefaultFlatPagination<MessagingHostedNumberOrder>;
1428
1440
 
@@ -3,13 +3,17 @@
3
3
  export { Actions, type ActionCheckRegistrationStatusResponse } from './actions';
4
4
  export {
5
5
  UacConnections,
6
+ type UacConnection,
7
+ type UacExternalSettings,
8
+ type UacInbound,
9
+ type UacInternalSettings,
10
+ type UacOutbound,
6
11
  type UacConnectionCreateResponse,
7
12
  type UacConnectionRetrieveResponse,
8
13
  type UacConnectionUpdateResponse,
9
- type UacConnectionListResponse,
10
14
  type UacConnectionDeleteResponse,
11
15
  type UacConnectionCreateParams,
12
16
  type UacConnectionUpdateParams,
13
17
  type UacConnectionListParams,
14
- type UacConnectionListResponsesDefaultFlatPagination,
18
+ type UacConnectionsDefaultFlatPagination,
15
19
  } from './uac-connections';