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
@@ -42,6 +42,8 @@ import {
42
42
  ActionSpeakResponse,
43
43
  ActionStartAIAssistantParams,
44
44
  ActionStartAIAssistantResponse,
45
+ ActionStartConversationRelayParams,
46
+ ActionStartConversationRelayResponse,
45
47
  ActionStartForkingParams,
46
48
  ActionStartForkingResponse,
47
49
  ActionStartNoiseSuppressionParams,
@@ -58,6 +60,8 @@ import {
58
60
  ActionStartTranscriptionResponse,
59
61
  ActionStopAIAssistantParams,
60
62
  ActionStopAIAssistantResponse,
63
+ ActionStopConversationRelayParams,
64
+ ActionStopConversationRelayResponse,
61
65
  ActionStopForkingParams,
62
66
  ActionStopForkingResponse,
63
67
  ActionStopGatherParams,
@@ -95,13 +99,11 @@ import {
95
99
  TelnyxVoiceSettings,
96
100
  TranscriptionConfig,
97
101
  TranscriptionEngineAConfig,
98
- TranscriptionEngineAssemblyaiConfig,
99
102
  TranscriptionEngineAzureConfig,
100
103
  TranscriptionEngineBConfig,
101
104
  TranscriptionEngineDeepgramConfig,
102
105
  TranscriptionEngineGoogleConfig,
103
106
  TranscriptionEngineTelnyxConfig,
104
- TranscriptionEngineXaiConfig,
105
107
  TranscriptionStartRequest,
106
108
  } from './actions';
107
109
  import * as AssistantsAPI from '../ai/assistants/assistants';
@@ -1208,13 +1210,11 @@ export declare namespace Calls {
1208
1210
  type TelnyxVoiceSettings as TelnyxVoiceSettings,
1209
1211
  type TranscriptionConfig as TranscriptionConfig,
1210
1212
  type TranscriptionEngineAConfig as TranscriptionEngineAConfig,
1211
- type TranscriptionEngineAssemblyaiConfig as TranscriptionEngineAssemblyaiConfig,
1212
1213
  type TranscriptionEngineAzureConfig as TranscriptionEngineAzureConfig,
1213
1214
  type TranscriptionEngineBConfig as TranscriptionEngineBConfig,
1214
1215
  type TranscriptionEngineDeepgramConfig as TranscriptionEngineDeepgramConfig,
1215
1216
  type TranscriptionEngineGoogleConfig as TranscriptionEngineGoogleConfig,
1216
1217
  type TranscriptionEngineTelnyxConfig as TranscriptionEngineTelnyxConfig,
1217
- type TranscriptionEngineXaiConfig as TranscriptionEngineXaiConfig,
1218
1218
  type TranscriptionStartRequest as TranscriptionStartRequest,
1219
1219
  type ActionAddAIAssistantMessagesResponse as ActionAddAIAssistantMessagesResponse,
1220
1220
  type ActionAnswerResponse as ActionAnswerResponse,
@@ -1235,6 +1235,7 @@ export declare namespace Calls {
1235
1235
  type ActionSendSipInfoResponse as ActionSendSipInfoResponse,
1236
1236
  type ActionSpeakResponse as ActionSpeakResponse,
1237
1237
  type ActionStartAIAssistantResponse as ActionStartAIAssistantResponse,
1238
+ type ActionStartConversationRelayResponse as ActionStartConversationRelayResponse,
1238
1239
  type ActionStartForkingResponse as ActionStartForkingResponse,
1239
1240
  type ActionStartNoiseSuppressionResponse as ActionStartNoiseSuppressionResponse,
1240
1241
  type ActionStartPlaybackResponse as ActionStartPlaybackResponse,
@@ -1243,6 +1244,7 @@ export declare namespace Calls {
1243
1244
  type ActionStartStreamingResponse as ActionStartStreamingResponse,
1244
1245
  type ActionStartTranscriptionResponse as ActionStartTranscriptionResponse,
1245
1246
  type ActionStopAIAssistantResponse as ActionStopAIAssistantResponse,
1247
+ type ActionStopConversationRelayResponse as ActionStopConversationRelayResponse,
1246
1248
  type ActionStopForkingResponse as ActionStopForkingResponse,
1247
1249
  type ActionStopGatherResponse as ActionStopGatherResponse,
1248
1250
  type ActionStopNoiseSuppressionResponse as ActionStopNoiseSuppressionResponse,
@@ -1273,6 +1275,7 @@ export declare namespace Calls {
1273
1275
  type ActionSendSipInfoParams as ActionSendSipInfoParams,
1274
1276
  type ActionSpeakParams as ActionSpeakParams,
1275
1277
  type ActionStartAIAssistantParams as ActionStartAIAssistantParams,
1278
+ type ActionStartConversationRelayParams as ActionStartConversationRelayParams,
1276
1279
  type ActionStartForkingParams as ActionStartForkingParams,
1277
1280
  type ActionStartNoiseSuppressionParams as ActionStartNoiseSuppressionParams,
1278
1281
  type ActionStartPlaybackParams as ActionStartPlaybackParams,
@@ -1281,6 +1284,7 @@ export declare namespace Calls {
1281
1284
  type ActionStartStreamingParams as ActionStartStreamingParams,
1282
1285
  type ActionStartTranscriptionParams as ActionStartTranscriptionParams,
1283
1286
  type ActionStopAIAssistantParams as ActionStopAIAssistantParams,
1287
+ type ActionStopConversationRelayParams as ActionStopConversationRelayParams,
1284
1288
  type ActionStopForkingParams as ActionStopForkingParams,
1285
1289
  type ActionStopGatherParams as ActionStopGatherParams,
1286
1290
  type ActionStopNoiseSuppressionParams as ActionStopNoiseSuppressionParams,
@@ -16,13 +16,11 @@ export {
16
16
  type TelnyxVoiceSettings,
17
17
  type TranscriptionConfig,
18
18
  type TranscriptionEngineAConfig,
19
- type TranscriptionEngineAssemblyaiConfig,
20
19
  type TranscriptionEngineAzureConfig,
21
20
  type TranscriptionEngineBConfig,
22
21
  type TranscriptionEngineDeepgramConfig,
23
22
  type TranscriptionEngineGoogleConfig,
24
23
  type TranscriptionEngineTelnyxConfig,
25
- type TranscriptionEngineXaiConfig,
26
24
  type TranscriptionStartRequest,
27
25
  type ActionAddAIAssistantMessagesResponse,
28
26
  type ActionAnswerResponse,
@@ -43,6 +41,7 @@ export {
43
41
  type ActionSendSipInfoResponse,
44
42
  type ActionSpeakResponse,
45
43
  type ActionStartAIAssistantResponse,
44
+ type ActionStartConversationRelayResponse,
46
45
  type ActionStartForkingResponse,
47
46
  type ActionStartNoiseSuppressionResponse,
48
47
  type ActionStartPlaybackResponse,
@@ -51,6 +50,7 @@ export {
51
50
  type ActionStartStreamingResponse,
52
51
  type ActionStartTranscriptionResponse,
53
52
  type ActionStopAIAssistantResponse,
53
+ type ActionStopConversationRelayResponse,
54
54
  type ActionStopForkingResponse,
55
55
  type ActionStopGatherResponse,
56
56
  type ActionStopNoiseSuppressionResponse,
@@ -81,6 +81,7 @@ export {
81
81
  type ActionSendSipInfoParams,
82
82
  type ActionSpeakParams,
83
83
  type ActionStartAIAssistantParams,
84
+ type ActionStartConversationRelayParams,
84
85
  type ActionStartForkingParams,
85
86
  type ActionStartNoiseSuppressionParams,
86
87
  type ActionStartPlaybackParams,
@@ -89,6 +90,7 @@ export {
89
90
  type ActionStartStreamingParams,
90
91
  type ActionStartTranscriptionParams,
91
92
  type ActionStopAIAssistantParams,
93
+ type ActionStopConversationRelayParams,
92
94
  type ActionStopForkingParams,
93
95
  type ActionStopGatherParams,
94
96
  type ActionStopNoiseSuppressionParams,
@@ -1020,7 +1020,7 @@ export interface ActionSpeakParams {
1020
1020
  | Shared.RimeVoiceSettings
1021
1021
  | Shared.ResembleVoiceSettings
1022
1022
  | ActionSpeakParams.InworldVoiceSettings
1023
- | Shared.XaiVoiceSettings;
1023
+ | ActionSpeakParams.XaiVoiceSettings;
1024
1024
  }
1025
1025
 
1026
1026
  export namespace ActionSpeakParams {
@@ -1030,6 +1030,18 @@ export namespace ActionSpeakParams {
1030
1030
  */
1031
1031
  type: 'inworld';
1032
1032
  }
1033
+
1034
+ export interface XaiVoiceSettings {
1035
+ /**
1036
+ * Voice settings provider type
1037
+ */
1038
+ type: 'xai';
1039
+
1040
+ /**
1041
+ * Language code, or `auto` to detect automatically.
1042
+ */
1043
+ language?: string;
1044
+ }
1033
1045
  }
1034
1046
 
1035
1047
  export interface ActionStopParams {
@@ -3,7 +3,6 @@
3
3
  export * from './shared';
4
4
  export {
5
5
  AI,
6
- type ModelMetadata,
7
6
  type AICreateResponseResponse,
8
7
  type AIRetrieveModelsResponse,
9
8
  type AISummarizeResponse,
@@ -969,13 +968,13 @@ export {
969
968
  PublicInternetGateways,
970
969
  type NetworkInterface,
971
970
  type NetworkInterfaceRegion,
972
- type PublicInternetGatewayRead,
973
971
  type PublicInternetGatewayCreateResponse,
974
972
  type PublicInternetGatewayRetrieveResponse,
973
+ type PublicInternetGatewayListResponse,
975
974
  type PublicInternetGatewayDeleteResponse,
976
975
  type PublicInternetGatewayCreateParams,
977
976
  type PublicInternetGatewayListParams,
978
- type PublicInternetGatewayReadsDefaultFlatPagination,
977
+ type PublicInternetGatewayListResponsesDefaultFlatPagination,
979
978
  } from './public-internet-gateways';
980
979
  export {
981
980
  Queues,
@@ -1252,19 +1251,15 @@ export {
1252
1251
  } from './traffic-policy-profiles';
1253
1252
  export {
1254
1253
  UacConnections,
1255
- type UacConnection,
1256
- type UacExternalSettings,
1257
- type UacInbound,
1258
- type UacInternalSettings,
1259
- type UacOutbound,
1260
1254
  type UacConnectionCreateResponse,
1261
1255
  type UacConnectionRetrieveResponse,
1262
1256
  type UacConnectionUpdateResponse,
1257
+ type UacConnectionListResponse,
1263
1258
  type UacConnectionDeleteResponse,
1264
1259
  type UacConnectionCreateParams,
1265
1260
  type UacConnectionUpdateParams,
1266
1261
  type UacConnectionListParams,
1267
- type UacConnectionsDefaultFlatPagination,
1262
+ type UacConnectionListResponsesDefaultFlatPagination,
1268
1263
  } from './uac-connections/uac-connections';
1269
1264
  export {
1270
1265
  UsageReports,
@@ -1319,15 +1314,15 @@ export {
1319
1314
  } from './verify-profiles';
1320
1315
  export {
1321
1316
  VirtualCrossConnects,
1322
- type VirtualCrossConnectCombined,
1323
1317
  type VirtualCrossConnectCreateResponse,
1324
1318
  type VirtualCrossConnectRetrieveResponse,
1325
1319
  type VirtualCrossConnectUpdateResponse,
1320
+ type VirtualCrossConnectListResponse,
1326
1321
  type VirtualCrossConnectDeleteResponse,
1327
1322
  type VirtualCrossConnectCreateParams,
1328
1323
  type VirtualCrossConnectUpdateParams,
1329
1324
  type VirtualCrossConnectListParams,
1330
- type VirtualCrossConnectCombinedsDefaultFlatPagination,
1325
+ type VirtualCrossConnectListResponsesDefaultFlatPagination,
1331
1326
  } from './virtual-cross-connects';
1332
1327
  export {
1333
1328
  VirtualCrossConnectsCoverage,
@@ -1508,13 +1503,13 @@ export {
1508
1503
  } from './whatsapp-message-templates';
1509
1504
  export {
1510
1505
  WireguardInterfaces,
1511
- type WireguardInterfaceRead,
1512
1506
  type WireguardInterfaceCreateResponse,
1513
1507
  type WireguardInterfaceRetrieveResponse,
1508
+ type WireguardInterfaceListResponse,
1514
1509
  type WireguardInterfaceDeleteResponse,
1515
1510
  type WireguardInterfaceCreateParams,
1516
1511
  type WireguardInterfaceListParams,
1517
- type WireguardInterfaceReadsDefaultFlatPagination,
1512
+ type WireguardInterfaceListResponsesDefaultFlatPagination,
1518
1513
  } from './wireguard-interfaces';
1519
1514
  export {
1520
1515
  WireguardPeers,
@@ -2,6 +2,7 @@
2
2
 
3
3
  import { APIResource } from '../../core/resource';
4
4
  import * as GlobalIPAssignmentsAPI from '../global-ip-assignments';
5
+ import * as PublicInternetGatewaysAPI from '../public-internet-gateways';
5
6
  import * as DefaultGatewayAPI from './default-gateway';
6
7
  import {
7
8
  DefaultGateway,
@@ -205,27 +206,9 @@ export namespace NetworkDeleteResponse {
205
206
  }
206
207
  }
207
208
 
208
- export interface NetworkListInterfacesResponse {
209
- /**
210
- * Identifies the resource.
211
- */
212
- id?: string;
213
-
214
- /**
215
- * ISO 8601 formatted date-time indicating when the resource was created.
216
- */
217
- created_at?: string;
218
-
219
- /**
220
- * A user specified name for the interface.
221
- */
222
- name?: string;
223
-
224
- /**
225
- * The id of the network associated with the interface.
226
- */
227
- network_id?: string;
228
-
209
+ export interface NetworkListInterfacesResponse
210
+ extends GlobalIPAssignmentsAPI.Record,
211
+ PublicInternetGatewaysAPI.NetworkInterface {
229
212
  /**
230
213
  * Identifies the type of the resource.
231
214
  */
@@ -238,20 +221,10 @@ export interface NetworkListInterfacesResponse {
238
221
  */
239
222
  region_code?: string;
240
223
 
241
- /**
242
- * The current status of the interface deployment.
243
- */
244
- status?: InterfaceStatus;
245
-
246
224
  /**
247
225
  * Identifies the type of the interface.
248
226
  */
249
227
  type?: string;
250
-
251
- /**
252
- * ISO 8601 formatted date-time indicating when the resource was updated.
253
- */
254
- updated_at?: string;
255
228
  }
256
229
 
257
230
  export namespace NetworkListInterfacesResponse {
@@ -1,6 +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 PublicInternetGatewaysAPI from './public-internet-gateways';
5
+ import * as GlobalIPAssignmentsAPI from './global-ip-assignments';
4
6
  import * as NetworksAPI from './networks/networks';
5
7
  import { APIPromise } from '../core/api-promise';
6
8
  import { DefaultFlatPagination, type DefaultFlatPaginationParams, PagePromise } from '../core/pagination';
@@ -48,7 +50,7 @@ export class PublicInternetGateways extends APIResource {
48
50
  * @example
49
51
  * ```ts
50
52
  * // Automatically fetches more pages as needed.
51
- * for await (const publicInternetGatewayRead of client.publicInternetGateways.list()) {
53
+ * for await (const publicInternetGatewayListResponse of client.publicInternetGateways.list()) {
52
54
  * // ...
53
55
  * }
54
56
  * ```
@@ -56,10 +58,10 @@ export class PublicInternetGateways extends APIResource {
56
58
  list(
57
59
  query: PublicInternetGatewayListParams | null | undefined = {},
58
60
  options?: RequestOptions,
59
- ): PagePromise<PublicInternetGatewayReadsDefaultFlatPagination, PublicInternetGatewayRead> {
61
+ ): PagePromise<PublicInternetGatewayListResponsesDefaultFlatPagination, PublicInternetGatewayListResponse> {
60
62
  return this._client.getAPIList(
61
63
  '/public_internet_gateways',
62
- DefaultFlatPagination<PublicInternetGatewayRead>,
64
+ DefaultFlatPagination<PublicInternetGatewayListResponse>,
63
65
  { query, ...options },
64
66
  );
65
67
  }
@@ -80,8 +82,8 @@ export class PublicInternetGateways extends APIResource {
80
82
  }
81
83
  }
82
84
 
83
- export type PublicInternetGatewayReadsDefaultFlatPagination =
84
- DefaultFlatPagination<PublicInternetGatewayRead>;
85
+ export type PublicInternetGatewayListResponsesDefaultFlatPagination =
86
+ DefaultFlatPagination<PublicInternetGatewayListResponse>;
85
87
 
86
88
  export interface NetworkInterface {
87
89
  /**
@@ -107,63 +109,70 @@ export interface NetworkInterfaceRegion {
107
109
  region_code?: string;
108
110
  }
109
111
 
110
- export interface PublicInternetGatewayRead {
111
- /**
112
- * Identifies the resource.
113
- */
114
- id?: string;
112
+ export interface PublicInternetGatewayCreateResponse {
113
+ data?: PublicInternetGatewayCreateResponse.Data;
114
+ }
115
115
 
116
- /**
117
- * ISO 8601 formatted date-time indicating when the resource was created.
118
- */
119
- created_at?: string;
116
+ export namespace PublicInternetGatewayCreateResponse {
117
+ export interface Data extends GlobalIPAssignmentsAPI.Record, PublicInternetGatewaysAPI.NetworkInterface {
118
+ /**
119
+ * The publically accessible ip for this interface.
120
+ */
121
+ public_ip?: string;
120
122
 
121
- /**
122
- * A user specified name for the interface.
123
- */
124
- name?: string;
123
+ /**
124
+ * The region interface is deployed to.
125
+ */
126
+ region_code?: string;
127
+ }
128
+ }
125
129
 
126
- /**
127
- * The id of the network associated with the interface.
128
- */
129
- network_id?: string;
130
+ export interface PublicInternetGatewayRetrieveResponse {
131
+ data?: PublicInternetGatewayRetrieveResponse.Data;
132
+ }
133
+
134
+ export namespace PublicInternetGatewayRetrieveResponse {
135
+ export interface Data extends GlobalIPAssignmentsAPI.Record, PublicInternetGatewaysAPI.NetworkInterface {
136
+ /**
137
+ * The publically accessible ip for this interface.
138
+ */
139
+ public_ip?: string;
130
140
 
141
+ /**
142
+ * The region interface is deployed to.
143
+ */
144
+ region_code?: string;
145
+ }
146
+ }
147
+
148
+ export interface PublicInternetGatewayListResponse extends GlobalIPAssignmentsAPI.Record, NetworkInterface {
131
149
  /**
132
150
  * The publically accessible ip for this interface.
133
151
  */
134
152
  public_ip?: string;
135
153
 
136
- /**
137
- * Identifies the type of the resource.
138
- */
139
- record_type?: string;
140
-
141
154
  /**
142
155
  * The region interface is deployed to.
143
156
  */
144
157
  region_code?: string;
145
-
146
- /**
147
- * The current status of the interface deployment.
148
- */
149
- status?: NetworksAPI.InterfaceStatus;
150
-
151
- /**
152
- * ISO 8601 formatted date-time indicating when the resource was updated.
153
- */
154
- updated_at?: string;
155
158
  }
156
159
 
157
- export interface PublicInternetGatewayCreateResponse {
158
- data?: PublicInternetGatewayRead;
160
+ export interface PublicInternetGatewayDeleteResponse {
161
+ data?: PublicInternetGatewayDeleteResponse.Data;
159
162
  }
160
163
 
161
- export interface PublicInternetGatewayRetrieveResponse {
162
- data?: PublicInternetGatewayRead;
163
- }
164
+ export namespace PublicInternetGatewayDeleteResponse {
165
+ export interface Data extends GlobalIPAssignmentsAPI.Record, PublicInternetGatewaysAPI.NetworkInterface {
166
+ /**
167
+ * The publically accessible ip for this interface.
168
+ */
169
+ public_ip?: string;
164
170
 
165
- export interface PublicInternetGatewayDeleteResponse {
166
- data?: PublicInternetGatewayRead;
171
+ /**
172
+ * The region interface is deployed to.
173
+ */
174
+ region_code?: string;
175
+ }
167
176
  }
168
177
 
169
178
  export interface PublicInternetGatewayCreateParams {
@@ -206,11 +215,11 @@ export declare namespace PublicInternetGateways {
206
215
  export {
207
216
  type NetworkInterface as NetworkInterface,
208
217
  type NetworkInterfaceRegion as NetworkInterfaceRegion,
209
- type PublicInternetGatewayRead as PublicInternetGatewayRead,
210
218
  type PublicInternetGatewayCreateResponse as PublicInternetGatewayCreateResponse,
211
219
  type PublicInternetGatewayRetrieveResponse as PublicInternetGatewayRetrieveResponse,
220
+ type PublicInternetGatewayListResponse as PublicInternetGatewayListResponse,
212
221
  type PublicInternetGatewayDeleteResponse as PublicInternetGatewayDeleteResponse,
213
- type PublicInternetGatewayReadsDefaultFlatPagination as PublicInternetGatewayReadsDefaultFlatPagination,
222
+ type PublicInternetGatewayListResponsesDefaultFlatPagination as PublicInternetGatewayListResponsesDefaultFlatPagination,
214
223
  type PublicInternetGatewayCreateParams as PublicInternetGatewayCreateParams,
215
224
  type PublicInternetGatewayListParams as PublicInternetGatewayListParams,
216
225
  };
@@ -1423,18 +1423,6 @@ 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
-
1438
1426
  export type MessagingHostedNumberOrdersDefaultFlatPagination =
1439
1427
  DefaultFlatPagination<MessagingHostedNumberOrder>;
1440
1428
 
@@ -3,17 +3,13 @@
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,
11
6
  type UacConnectionCreateResponse,
12
7
  type UacConnectionRetrieveResponse,
13
8
  type UacConnectionUpdateResponse,
9
+ type UacConnectionListResponse,
14
10
  type UacConnectionDeleteResponse,
15
11
  type UacConnectionCreateParams,
16
12
  type UacConnectionUpdateParams,
17
13
  type UacConnectionListParams,
18
- type UacConnectionsDefaultFlatPagination,
14
+ type UacConnectionListResponsesDefaultFlatPagination,
19
15
  } from './uac-connections';