telnyx 6.53.0 → 6.55.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 (147) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/client.d.mts +4 -5
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +4 -5
  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 +12 -10
  11. package/resources/ai/ai.d.mts.map +1 -1
  12. package/resources/ai/ai.d.ts +12 -10
  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 +322 -110
  17. package/resources/ai/assistants/assistants.d.mts.map +1 -1
  18. package/resources/ai/assistants/assistants.d.ts +322 -110
  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 +241 -70
  23. package/resources/ai/assistants/canary-deploys.d.mts.map +1 -1
  24. package/resources/ai/assistants/canary-deploys.d.ts +241 -70
  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/scheduled-events.d.mts +43 -0
  33. package/resources/ai/assistants/scheduled-events.d.mts.map +1 -1
  34. package/resources/ai/assistants/scheduled-events.d.ts +43 -0
  35. package/resources/ai/assistants/scheduled-events.d.ts.map +1 -1
  36. package/resources/ai/assistants/versions.d.mts +212 -6
  37. package/resources/ai/assistants/versions.d.mts.map +1 -1
  38. package/resources/ai/assistants/versions.d.ts +212 -6
  39. package/resources/ai/assistants/versions.d.ts.map +1 -1
  40. package/resources/ai/index.d.mts +2 -2
  41. package/resources/ai/index.d.mts.map +1 -1
  42. package/resources/ai/index.d.ts +2 -2
  43. package/resources/ai/index.d.ts.map +1 -1
  44. package/resources/ai/index.js.map +1 -1
  45. package/resources/ai/index.mjs +1 -1
  46. package/resources/ai/index.mjs.map +1 -1
  47. package/resources/ai/openai/openai.d.mts +9 -2
  48. package/resources/ai/openai/openai.d.mts.map +1 -1
  49. package/resources/ai/openai/openai.d.ts +9 -2
  50. package/resources/ai/openai/openai.d.ts.map +1 -1
  51. package/resources/ai/openai/openai.js.map +1 -1
  52. package/resources/ai/openai/openai.mjs.map +1 -1
  53. package/resources/calls/actions.d.mts +119 -41
  54. package/resources/calls/actions.d.mts.map +1 -1
  55. package/resources/calls/actions.d.ts +119 -41
  56. package/resources/calls/actions.d.ts.map +1 -1
  57. package/resources/calls/calls.d.mts +2 -2
  58. package/resources/calls/calls.d.mts.map +1 -1
  59. package/resources/calls/calls.d.ts +2 -2
  60. package/resources/calls/calls.d.ts.map +1 -1
  61. package/resources/calls/calls.js.map +1 -1
  62. package/resources/calls/calls.mjs.map +1 -1
  63. package/resources/calls/index.d.mts +1 -1
  64. package/resources/calls/index.d.mts.map +1 -1
  65. package/resources/calls/index.d.ts +1 -1
  66. package/resources/calls/index.d.ts.map +1 -1
  67. package/resources/calls/index.js.map +1 -1
  68. package/resources/calls/index.mjs.map +1 -1
  69. package/resources/conferences/actions.d.mts +11 -1
  70. package/resources/conferences/actions.d.mts.map +1 -1
  71. package/resources/conferences/actions.d.ts +11 -1
  72. package/resources/conferences/actions.d.ts.map +1 -1
  73. package/resources/index.d.mts +2 -2
  74. package/resources/index.d.mts.map +1 -1
  75. package/resources/index.d.ts +2 -2
  76. package/resources/index.d.ts.map +1 -1
  77. package/resources/index.js.map +1 -1
  78. package/resources/index.mjs +1 -1
  79. package/resources/index.mjs.map +1 -1
  80. package/resources/networks/networks.d.mts +2 -25
  81. package/resources/networks/networks.d.mts.map +1 -1
  82. package/resources/networks/networks.d.ts +2 -25
  83. package/resources/networks/networks.d.ts.map +1 -1
  84. package/resources/networks/networks.js.map +1 -1
  85. package/resources/networks/networks.mjs.map +1 -1
  86. package/resources/public-internet-gateways.d.mts +6 -116
  87. package/resources/public-internet-gateways.d.mts.map +1 -1
  88. package/resources/public-internet-gateways.d.ts +6 -116
  89. package/resources/public-internet-gateways.d.ts.map +1 -1
  90. package/resources/public-internet-gateways.js.map +1 -1
  91. package/resources/public-internet-gateways.mjs.map +1 -1
  92. package/resources/shared.d.mts +0 -10
  93. package/resources/shared.d.mts.map +1 -1
  94. package/resources/shared.d.ts +0 -10
  95. package/resources/shared.d.ts.map +1 -1
  96. package/resources/uac-connections/index.d.mts +1 -1
  97. package/resources/uac-connections/index.d.mts.map +1 -1
  98. package/resources/uac-connections/index.d.ts +1 -1
  99. package/resources/uac-connections/index.d.ts.map +1 -1
  100. package/resources/uac-connections/index.js.map +1 -1
  101. package/resources/uac-connections/index.mjs.map +1 -1
  102. package/resources/uac-connections/uac-connections.d.mts +1861 -211
  103. package/resources/uac-connections/uac-connections.d.mts.map +1 -1
  104. package/resources/uac-connections/uac-connections.d.ts +1861 -211
  105. package/resources/uac-connections/uac-connections.d.ts.map +1 -1
  106. package/resources/uac-connections/uac-connections.js +1 -1
  107. package/resources/uac-connections/uac-connections.js.map +1 -1
  108. package/resources/uac-connections/uac-connections.mjs +1 -1
  109. package/resources/uac-connections/uac-connections.mjs.map +1 -1
  110. package/resources/virtual-cross-connects.d.mts +237 -161
  111. package/resources/virtual-cross-connects.d.mts.map +1 -1
  112. package/resources/virtual-cross-connects.d.ts +237 -161
  113. package/resources/virtual-cross-connects.d.ts.map +1 -1
  114. package/resources/virtual-cross-connects.js.map +1 -1
  115. package/resources/virtual-cross-connects.mjs.map +1 -1
  116. package/resources/wireguard-interfaces.d.mts +6 -117
  117. package/resources/wireguard-interfaces.d.mts.map +1 -1
  118. package/resources/wireguard-interfaces.d.ts +6 -117
  119. package/resources/wireguard-interfaces.d.ts.map +1 -1
  120. package/resources/wireguard-interfaces.js.map +1 -1
  121. package/resources/wireguard-interfaces.mjs.map +1 -1
  122. package/src/client.ts +5 -21
  123. package/src/resources/ai/ai.ts +11 -20
  124. package/src/resources/ai/assistants/assistants.ts +350 -131
  125. package/src/resources/ai/assistants/canary-deploys.ts +266 -75
  126. package/src/resources/ai/assistants/index.ts +0 -10
  127. package/src/resources/ai/assistants/scheduled-events.ts +56 -0
  128. package/src/resources/ai/assistants/versions.ts +234 -6
  129. package/src/resources/ai/index.ts +1 -12
  130. package/src/resources/ai/openai/openai.ts +13 -2
  131. package/src/resources/calls/actions.ts +192 -76
  132. package/src/resources/calls/calls.ts +0 -4
  133. package/src/resources/calls/index.ts +0 -2
  134. package/src/resources/conferences/actions.ts +13 -1
  135. package/src/resources/index.ts +3 -13
  136. package/src/resources/networks/networks.ts +4 -31
  137. package/src/resources/public-internet-gateways.ts +6 -144
  138. package/src/resources/shared.ts +0 -12
  139. package/src/resources/uac-connections/index.ts +2 -6
  140. package/src/resources/uac-connections/uac-connections.ts +2377 -378
  141. package/src/resources/virtual-cross-connects.ts +249 -176
  142. package/src/resources/wireguard-interfaces.ts +8 -145
  143. package/src/version.ts +1 -1
  144. package/version.d.mts +1 -1
  145. package/version.d.ts +1 -1
  146. package/version.js +1 -1
  147. package/version.mjs +1 -1
@@ -1,5 +1,6 @@
1
1
  import { APIResource } from "../core/resource.mjs";
2
- import * as NetworksAPI from "./networks/networks.mjs";
2
+ import * as GlobalIPAssignmentsAPI from "./global-ip-assignments.mjs";
3
+ import * as PublicInternetGatewaysAPI from "./public-internet-gateways.mjs";
3
4
  import { APIPromise } from "../core/api-promise.mjs";
4
5
  import { DefaultFlatPagination, type DefaultFlatPaginationParams, PagePromise } from "../core/pagination.mjs";
5
6
  import { RequestOptions } from "../internal/request-options.mjs";
@@ -84,18 +85,20 @@ export interface VirtualCrossConnectCreateResponse {
84
85
  data?: VirtualCrossConnectCreateResponse.Data;
85
86
  }
86
87
  export declare namespace VirtualCrossConnectCreateResponse {
87
- interface Data {
88
+ interface Data extends GlobalIPAssignmentsAPI.Record, PublicInternetGatewaysAPI.NetworkInterface {
88
89
  /**
89
- * Identifies the resource.
90
+ * The region interface is deployed to.
90
91
  */
91
- id?: string;
92
+ region_code: string;
92
93
  /**
93
94
  * The desired throughput in Megabits per Second (Mbps) for your Virtual Cross
94
- * Connect.
95
+ * Connect.<br /><br />The available bandwidths can be found using the
96
+ * /virtual_cross_connect_regions endpoint.
95
97
  */
96
98
  bandwidth_mbps?: number;
97
99
  /**
98
- * The Border Gateway Protocol (BGP) Autonomous System Number (ASN).
100
+ * The Border Gateway Protocol (BGP) Autonomous System Number (ASN). If null, value
101
+ * will be assigned by Telnyx.
99
102
  */
100
103
  bgp_asn?: number;
101
104
  /**
@@ -104,62 +107,75 @@ export declare namespace VirtualCrossConnectCreateResponse {
104
107
  */
105
108
  cloud_provider?: 'aws' | 'azure' | 'gce';
106
109
  /**
107
- * The region where your Virtual Private Cloud hosts are located.
110
+ * The region where your Virtual Private Cloud hosts are located.<br /><br />The
111
+ * available regions can be found using the /virtual_cross_connect_regions
112
+ * endpoint.
108
113
  */
109
114
  cloud_provider_region?: string;
110
- /**
111
- * ISO 8601 formatted date-time indicating when the resource was created.
112
- */
113
- created_at?: string;
114
- /**
115
- * A user specified name for the interface.
116
- */
117
- name?: string;
118
- /**
119
- * The id of the network associated with the interface.
120
- */
121
- network_id?: string;
122
115
  /**
123
116
  * The authentication key for BGP peer configuration.
124
117
  */
125
118
  primary_bgp_key?: string;
126
119
  /**
127
- * The identifier for your Virtual Private Cloud.
120
+ * The identifier for your Virtual Private Cloud. The number will be different
121
+ * based upon your Cloud provider.
128
122
  */
129
123
  primary_cloud_account_id?: string;
130
124
  /**
131
- * The IP address assigned for your side of the Virtual Cross Connect.
125
+ * The IP address assigned for your side of the Virtual Cross
126
+ * Connect.<br /><br />If none is provided, one will be generated for
127
+ * you.<br /><br />This value can not be patched once the VXC has bene provisioned.
132
128
  */
133
129
  primary_cloud_ip?: string;
134
130
  /**
135
- * Indicates whether the primary circuit is enabled.
131
+ * Indicates whether the primary circuit is enabled. Setting this to `false` will
132
+ * disable the circuit.
136
133
  */
137
134
  primary_enabled?: boolean;
138
135
  /**
139
- * Whether
136
+ * Whether the primary BGP route is being announced.
140
137
  */
141
138
  primary_routing_announcement?: boolean;
142
139
  /**
143
- * The IP address assigned to the Telnyx side of the Virtual Cross Connect.
140
+ * The IP address assigned to the Telnyx side of the Virtual Cross
141
+ * Connect.<br /><br />If none is provided, one will be generated for
142
+ * you.<br /><br />This value should be null for GCE as Google will only inform you
143
+ * of your assigned IP once the connection has been accepted.
144
144
  */
145
145
  primary_telnyx_ip?: string;
146
+ region?: Data.Region;
146
147
  /**
147
- * Identifies the type of the resource.
148
+ * The authentication key for BGP peer configuration.
148
149
  */
149
- record_type?: string;
150
- region?: Data.Region;
150
+ secondary_bgp_key?: string;
151
151
  /**
152
- * The region interface is deployed to.
152
+ * The identifier for your Virtual Private Cloud. The number will be different
153
+ * based upon your Cloud provider.<br /><br />This attribute is only necessary for
154
+ * GCE.
155
+ */
156
+ secondary_cloud_account_id?: string;
157
+ /**
158
+ * The IP address assigned for your side of the Virtual Cross
159
+ * Connect.<br /><br />If none is provided, one will be generated for
160
+ * you.<br /><br />This value can not be patched once the VXC has bene provisioned.
153
161
  */
154
- region_code?: string;
162
+ secondary_cloud_ip?: string;
155
163
  /**
156
- * The current status of the interface deployment.
164
+ * Indicates whether the secondary circuit is enabled. Setting this to `false` will
165
+ * disable the circuit.
157
166
  */
158
- status?: NetworksAPI.InterfaceStatus;
167
+ secondary_enabled?: boolean;
159
168
  /**
160
- * ISO 8601 formatted date-time indicating when the resource was updated.
169
+ * Whether the secondary BGP route is being announced.
161
170
  */
162
- updated_at?: string;
171
+ secondary_routing_announcement?: boolean;
172
+ /**
173
+ * The IP address assigned to the Telnyx side of the Virtual Cross
174
+ * Connect.<br /><br />If none is provided, one will be generated for
175
+ * you.<br /><br />This value should be null for GCE as Google will only inform you
176
+ * of your assigned IP once the connection has been accepted.
177
+ */
178
+ secondary_telnyx_ip?: string;
163
179
  }
164
180
  namespace Data {
165
181
  interface Region {
@@ -182,18 +198,20 @@ export interface VirtualCrossConnectRetrieveResponse {
182
198
  data?: VirtualCrossConnectRetrieveResponse.Data;
183
199
  }
184
200
  export declare namespace VirtualCrossConnectRetrieveResponse {
185
- interface Data {
201
+ interface Data extends GlobalIPAssignmentsAPI.Record, PublicInternetGatewaysAPI.NetworkInterface {
186
202
  /**
187
- * Identifies the resource.
203
+ * The region interface is deployed to.
188
204
  */
189
- id?: string;
205
+ region_code: string;
190
206
  /**
191
207
  * The desired throughput in Megabits per Second (Mbps) for your Virtual Cross
192
- * Connect.
208
+ * Connect.<br /><br />The available bandwidths can be found using the
209
+ * /virtual_cross_connect_regions endpoint.
193
210
  */
194
211
  bandwidth_mbps?: number;
195
212
  /**
196
- * The Border Gateway Protocol (BGP) Autonomous System Number (ASN).
213
+ * The Border Gateway Protocol (BGP) Autonomous System Number (ASN). If null, value
214
+ * will be assigned by Telnyx.
197
215
  */
198
216
  bgp_asn?: number;
199
217
  /**
@@ -202,62 +220,75 @@ export declare namespace VirtualCrossConnectRetrieveResponse {
202
220
  */
203
221
  cloud_provider?: 'aws' | 'azure' | 'gce';
204
222
  /**
205
- * The region where your Virtual Private Cloud hosts are located.
223
+ * The region where your Virtual Private Cloud hosts are located.<br /><br />The
224
+ * available regions can be found using the /virtual_cross_connect_regions
225
+ * endpoint.
206
226
  */
207
227
  cloud_provider_region?: string;
208
- /**
209
- * ISO 8601 formatted date-time indicating when the resource was created.
210
- */
211
- created_at?: string;
212
- /**
213
- * A user specified name for the interface.
214
- */
215
- name?: string;
216
- /**
217
- * The id of the network associated with the interface.
218
- */
219
- network_id?: string;
220
228
  /**
221
229
  * The authentication key for BGP peer configuration.
222
230
  */
223
231
  primary_bgp_key?: string;
224
232
  /**
225
- * The identifier for your Virtual Private Cloud.
233
+ * The identifier for your Virtual Private Cloud. The number will be different
234
+ * based upon your Cloud provider.
226
235
  */
227
236
  primary_cloud_account_id?: string;
228
237
  /**
229
- * The IP address assigned for your side of the Virtual Cross Connect.
238
+ * The IP address assigned for your side of the Virtual Cross
239
+ * Connect.<br /><br />If none is provided, one will be generated for
240
+ * you.<br /><br />This value can not be patched once the VXC has bene provisioned.
230
241
  */
231
242
  primary_cloud_ip?: string;
232
243
  /**
233
- * Indicates whether the primary circuit is enabled.
244
+ * Indicates whether the primary circuit is enabled. Setting this to `false` will
245
+ * disable the circuit.
234
246
  */
235
247
  primary_enabled?: boolean;
236
248
  /**
237
- * Whether
249
+ * Whether the primary BGP route is being announced.
238
250
  */
239
251
  primary_routing_announcement?: boolean;
240
252
  /**
241
- * The IP address assigned to the Telnyx side of the Virtual Cross Connect.
253
+ * The IP address assigned to the Telnyx side of the Virtual Cross
254
+ * Connect.<br /><br />If none is provided, one will be generated for
255
+ * you.<br /><br />This value should be null for GCE as Google will only inform you
256
+ * of your assigned IP once the connection has been accepted.
242
257
  */
243
258
  primary_telnyx_ip?: string;
259
+ region?: Data.Region;
244
260
  /**
245
- * Identifies the type of the resource.
261
+ * The authentication key for BGP peer configuration.
246
262
  */
247
- record_type?: string;
248
- region?: Data.Region;
263
+ secondary_bgp_key?: string;
249
264
  /**
250
- * The region interface is deployed to.
265
+ * The identifier for your Virtual Private Cloud. The number will be different
266
+ * based upon your Cloud provider.<br /><br />This attribute is only necessary for
267
+ * GCE.
251
268
  */
252
- region_code?: string;
269
+ secondary_cloud_account_id?: string;
253
270
  /**
254
- * The current status of the interface deployment.
271
+ * The IP address assigned for your side of the Virtual Cross
272
+ * Connect.<br /><br />If none is provided, one will be generated for
273
+ * you.<br /><br />This value can not be patched once the VXC has bene provisioned.
255
274
  */
256
- status?: NetworksAPI.InterfaceStatus;
275
+ secondary_cloud_ip?: string;
257
276
  /**
258
- * ISO 8601 formatted date-time indicating when the resource was updated.
277
+ * Indicates whether the secondary circuit is enabled. Setting this to `false` will
278
+ * disable the circuit.
259
279
  */
260
- updated_at?: string;
280
+ secondary_enabled?: boolean;
281
+ /**
282
+ * Whether the secondary BGP route is being announced.
283
+ */
284
+ secondary_routing_announcement?: boolean;
285
+ /**
286
+ * The IP address assigned to the Telnyx side of the Virtual Cross
287
+ * Connect.<br /><br />If none is provided, one will be generated for
288
+ * you.<br /><br />This value should be null for GCE as Google will only inform you
289
+ * of your assigned IP once the connection has been accepted.
290
+ */
291
+ secondary_telnyx_ip?: string;
261
292
  }
262
293
  namespace Data {
263
294
  interface Region {
@@ -280,18 +311,20 @@ export interface VirtualCrossConnectUpdateResponse {
280
311
  data?: VirtualCrossConnectUpdateResponse.Data;
281
312
  }
282
313
  export declare namespace VirtualCrossConnectUpdateResponse {
283
- interface Data {
314
+ interface Data extends GlobalIPAssignmentsAPI.Record, PublicInternetGatewaysAPI.NetworkInterface {
284
315
  /**
285
- * Identifies the resource.
316
+ * The region interface is deployed to.
286
317
  */
287
- id?: string;
318
+ region_code: string;
288
319
  /**
289
320
  * The desired throughput in Megabits per Second (Mbps) for your Virtual Cross
290
- * Connect.
321
+ * Connect.<br /><br />The available bandwidths can be found using the
322
+ * /virtual_cross_connect_regions endpoint.
291
323
  */
292
324
  bandwidth_mbps?: number;
293
325
  /**
294
- * The Border Gateway Protocol (BGP) Autonomous System Number (ASN).
326
+ * The Border Gateway Protocol (BGP) Autonomous System Number (ASN). If null, value
327
+ * will be assigned by Telnyx.
295
328
  */
296
329
  bgp_asn?: number;
297
330
  /**
@@ -300,62 +333,75 @@ export declare namespace VirtualCrossConnectUpdateResponse {
300
333
  */
301
334
  cloud_provider?: 'aws' | 'azure' | 'gce';
302
335
  /**
303
- * The region where your Virtual Private Cloud hosts are located.
336
+ * The region where your Virtual Private Cloud hosts are located.<br /><br />The
337
+ * available regions can be found using the /virtual_cross_connect_regions
338
+ * endpoint.
304
339
  */
305
340
  cloud_provider_region?: string;
306
- /**
307
- * ISO 8601 formatted date-time indicating when the resource was created.
308
- */
309
- created_at?: string;
310
- /**
311
- * A user specified name for the interface.
312
- */
313
- name?: string;
314
- /**
315
- * The id of the network associated with the interface.
316
- */
317
- network_id?: string;
318
341
  /**
319
342
  * The authentication key for BGP peer configuration.
320
343
  */
321
344
  primary_bgp_key?: string;
322
345
  /**
323
- * The identifier for your Virtual Private Cloud.
346
+ * The identifier for your Virtual Private Cloud. The number will be different
347
+ * based upon your Cloud provider.
324
348
  */
325
349
  primary_cloud_account_id?: string;
326
350
  /**
327
- * The IP address assigned for your side of the Virtual Cross Connect.
351
+ * The IP address assigned for your side of the Virtual Cross
352
+ * Connect.<br /><br />If none is provided, one will be generated for
353
+ * you.<br /><br />This value can not be patched once the VXC has bene provisioned.
328
354
  */
329
355
  primary_cloud_ip?: string;
330
356
  /**
331
- * Indicates whether the primary circuit is enabled.
357
+ * Indicates whether the primary circuit is enabled. Setting this to `false` will
358
+ * disable the circuit.
332
359
  */
333
360
  primary_enabled?: boolean;
334
361
  /**
335
- * Whether
362
+ * Whether the primary BGP route is being announced.
336
363
  */
337
364
  primary_routing_announcement?: boolean;
338
365
  /**
339
- * The IP address assigned to the Telnyx side of the Virtual Cross Connect.
366
+ * The IP address assigned to the Telnyx side of the Virtual Cross
367
+ * Connect.<br /><br />If none is provided, one will be generated for
368
+ * you.<br /><br />This value should be null for GCE as Google will only inform you
369
+ * of your assigned IP once the connection has been accepted.
340
370
  */
341
371
  primary_telnyx_ip?: string;
372
+ region?: Data.Region;
342
373
  /**
343
- * Identifies the type of the resource.
374
+ * The authentication key for BGP peer configuration.
344
375
  */
345
- record_type?: string;
346
- region?: Data.Region;
376
+ secondary_bgp_key?: string;
347
377
  /**
348
- * The region interface is deployed to.
378
+ * The identifier for your Virtual Private Cloud. The number will be different
379
+ * based upon your Cloud provider.<br /><br />This attribute is only necessary for
380
+ * GCE.
381
+ */
382
+ secondary_cloud_account_id?: string;
383
+ /**
384
+ * The IP address assigned for your side of the Virtual Cross
385
+ * Connect.<br /><br />If none is provided, one will be generated for
386
+ * you.<br /><br />This value can not be patched once the VXC has bene provisioned.
349
387
  */
350
- region_code?: string;
388
+ secondary_cloud_ip?: string;
351
389
  /**
352
- * The current status of the interface deployment.
390
+ * Indicates whether the secondary circuit is enabled. Setting this to `false` will
391
+ * disable the circuit.
353
392
  */
354
- status?: NetworksAPI.InterfaceStatus;
393
+ secondary_enabled?: boolean;
355
394
  /**
356
- * ISO 8601 formatted date-time indicating when the resource was updated.
395
+ * Whether the secondary BGP route is being announced.
357
396
  */
358
- updated_at?: string;
397
+ secondary_routing_announcement?: boolean;
398
+ /**
399
+ * The IP address assigned to the Telnyx side of the Virtual Cross
400
+ * Connect.<br /><br />If none is provided, one will be generated for
401
+ * you.<br /><br />This value should be null for GCE as Google will only inform you
402
+ * of your assigned IP once the connection has been accepted.
403
+ */
404
+ secondary_telnyx_ip?: string;
359
405
  }
360
406
  namespace Data {
361
407
  interface Region {
@@ -374,18 +420,20 @@ export declare namespace VirtualCrossConnectUpdateResponse {
374
420
  }
375
421
  }
376
422
  }
377
- export interface VirtualCrossConnectListResponse {
423
+ export interface VirtualCrossConnectListResponse extends GlobalIPAssignmentsAPI.Record, PublicInternetGatewaysAPI.NetworkInterface {
378
424
  /**
379
- * Identifies the resource.
425
+ * The region interface is deployed to.
380
426
  */
381
- id?: string;
427
+ region_code: string;
382
428
  /**
383
429
  * The desired throughput in Megabits per Second (Mbps) for your Virtual Cross
384
- * Connect.
430
+ * Connect.<br /><br />The available bandwidths can be found using the
431
+ * /virtual_cross_connect_regions endpoint.
385
432
  */
386
433
  bandwidth_mbps?: number;
387
434
  /**
388
- * The Border Gateway Protocol (BGP) Autonomous System Number (ASN).
435
+ * The Border Gateway Protocol (BGP) Autonomous System Number (ASN). If null, value
436
+ * will be assigned by Telnyx.
389
437
  */
390
438
  bgp_asn?: number;
391
439
  /**
@@ -394,62 +442,75 @@ export interface VirtualCrossConnectListResponse {
394
442
  */
395
443
  cloud_provider?: 'aws' | 'azure' | 'gce';
396
444
  /**
397
- * The region where your Virtual Private Cloud hosts are located.
445
+ * The region where your Virtual Private Cloud hosts are located.<br /><br />The
446
+ * available regions can be found using the /virtual_cross_connect_regions
447
+ * endpoint.
398
448
  */
399
449
  cloud_provider_region?: string;
400
- /**
401
- * ISO 8601 formatted date-time indicating when the resource was created.
402
- */
403
- created_at?: string;
404
- /**
405
- * A user specified name for the interface.
406
- */
407
- name?: string;
408
- /**
409
- * The id of the network associated with the interface.
410
- */
411
- network_id?: string;
412
450
  /**
413
451
  * The authentication key for BGP peer configuration.
414
452
  */
415
453
  primary_bgp_key?: string;
416
454
  /**
417
- * The identifier for your Virtual Private Cloud.
455
+ * The identifier for your Virtual Private Cloud. The number will be different
456
+ * based upon your Cloud provider.
418
457
  */
419
458
  primary_cloud_account_id?: string;
420
459
  /**
421
- * The IP address assigned for your side of the Virtual Cross Connect.
460
+ * The IP address assigned for your side of the Virtual Cross
461
+ * Connect.<br /><br />If none is provided, one will be generated for
462
+ * you.<br /><br />This value can not be patched once the VXC has bene provisioned.
422
463
  */
423
464
  primary_cloud_ip?: string;
424
465
  /**
425
- * Indicates whether the primary circuit is enabled.
466
+ * Indicates whether the primary circuit is enabled. Setting this to `false` will
467
+ * disable the circuit.
426
468
  */
427
469
  primary_enabled?: boolean;
428
470
  /**
429
- * Whether
471
+ * Whether the primary BGP route is being announced.
430
472
  */
431
473
  primary_routing_announcement?: boolean;
432
474
  /**
433
- * The IP address assigned to the Telnyx side of the Virtual Cross Connect.
475
+ * The IP address assigned to the Telnyx side of the Virtual Cross
476
+ * Connect.<br /><br />If none is provided, one will be generated for
477
+ * you.<br /><br />This value should be null for GCE as Google will only inform you
478
+ * of your assigned IP once the connection has been accepted.
434
479
  */
435
480
  primary_telnyx_ip?: string;
481
+ region?: VirtualCrossConnectListResponse.Region;
436
482
  /**
437
- * Identifies the type of the resource.
483
+ * The authentication key for BGP peer configuration.
438
484
  */
439
- record_type?: string;
440
- region?: VirtualCrossConnectListResponse.Region;
485
+ secondary_bgp_key?: string;
441
486
  /**
442
- * The region interface is deployed to.
487
+ * The identifier for your Virtual Private Cloud. The number will be different
488
+ * based upon your Cloud provider.<br /><br />This attribute is only necessary for
489
+ * GCE.
443
490
  */
444
- region_code?: string;
491
+ secondary_cloud_account_id?: string;
445
492
  /**
446
- * The current status of the interface deployment.
493
+ * The IP address assigned for your side of the Virtual Cross
494
+ * Connect.<br /><br />If none is provided, one will be generated for
495
+ * you.<br /><br />This value can not be patched once the VXC has bene provisioned.
447
496
  */
448
- status?: NetworksAPI.InterfaceStatus;
497
+ secondary_cloud_ip?: string;
449
498
  /**
450
- * ISO 8601 formatted date-time indicating when the resource was updated.
499
+ * Indicates whether the secondary circuit is enabled. Setting this to `false` will
500
+ * disable the circuit.
451
501
  */
452
- updated_at?: string;
502
+ secondary_enabled?: boolean;
503
+ /**
504
+ * Whether the secondary BGP route is being announced.
505
+ */
506
+ secondary_routing_announcement?: boolean;
507
+ /**
508
+ * The IP address assigned to the Telnyx side of the Virtual Cross
509
+ * Connect.<br /><br />If none is provided, one will be generated for
510
+ * you.<br /><br />This value should be null for GCE as Google will only inform you
511
+ * of your assigned IP once the connection has been accepted.
512
+ */
513
+ secondary_telnyx_ip?: string;
453
514
  }
454
515
  export declare namespace VirtualCrossConnectListResponse {
455
516
  interface Region {
@@ -471,18 +532,20 @@ export interface VirtualCrossConnectDeleteResponse {
471
532
  data?: VirtualCrossConnectDeleteResponse.Data;
472
533
  }
473
534
  export declare namespace VirtualCrossConnectDeleteResponse {
474
- interface Data {
535
+ interface Data extends GlobalIPAssignmentsAPI.Record, PublicInternetGatewaysAPI.NetworkInterface {
475
536
  /**
476
- * Identifies the resource.
537
+ * The region interface is deployed to.
477
538
  */
478
- id?: string;
539
+ region_code: string;
479
540
  /**
480
541
  * The desired throughput in Megabits per Second (Mbps) for your Virtual Cross
481
- * Connect.
542
+ * Connect.<br /><br />The available bandwidths can be found using the
543
+ * /virtual_cross_connect_regions endpoint.
482
544
  */
483
545
  bandwidth_mbps?: number;
484
546
  /**
485
- * The Border Gateway Protocol (BGP) Autonomous System Number (ASN).
547
+ * The Border Gateway Protocol (BGP) Autonomous System Number (ASN). If null, value
548
+ * will be assigned by Telnyx.
486
549
  */
487
550
  bgp_asn?: number;
488
551
  /**
@@ -491,62 +554,75 @@ export declare namespace VirtualCrossConnectDeleteResponse {
491
554
  */
492
555
  cloud_provider?: 'aws' | 'azure' | 'gce';
493
556
  /**
494
- * The region where your Virtual Private Cloud hosts are located.
557
+ * The region where your Virtual Private Cloud hosts are located.<br /><br />The
558
+ * available regions can be found using the /virtual_cross_connect_regions
559
+ * endpoint.
495
560
  */
496
561
  cloud_provider_region?: string;
497
- /**
498
- * ISO 8601 formatted date-time indicating when the resource was created.
499
- */
500
- created_at?: string;
501
- /**
502
- * A user specified name for the interface.
503
- */
504
- name?: string;
505
- /**
506
- * The id of the network associated with the interface.
507
- */
508
- network_id?: string;
509
562
  /**
510
563
  * The authentication key for BGP peer configuration.
511
564
  */
512
565
  primary_bgp_key?: string;
513
566
  /**
514
- * The identifier for your Virtual Private Cloud.
567
+ * The identifier for your Virtual Private Cloud. The number will be different
568
+ * based upon your Cloud provider.
515
569
  */
516
570
  primary_cloud_account_id?: string;
517
571
  /**
518
- * The IP address assigned for your side of the Virtual Cross Connect.
572
+ * The IP address assigned for your side of the Virtual Cross
573
+ * Connect.<br /><br />If none is provided, one will be generated for
574
+ * you.<br /><br />This value can not be patched once the VXC has bene provisioned.
519
575
  */
520
576
  primary_cloud_ip?: string;
521
577
  /**
522
- * Indicates whether the primary circuit is enabled.
578
+ * Indicates whether the primary circuit is enabled. Setting this to `false` will
579
+ * disable the circuit.
523
580
  */
524
581
  primary_enabled?: boolean;
525
582
  /**
526
- * Whether
583
+ * Whether the primary BGP route is being announced.
527
584
  */
528
585
  primary_routing_announcement?: boolean;
529
586
  /**
530
- * The IP address assigned to the Telnyx side of the Virtual Cross Connect.
587
+ * The IP address assigned to the Telnyx side of the Virtual Cross
588
+ * Connect.<br /><br />If none is provided, one will be generated for
589
+ * you.<br /><br />This value should be null for GCE as Google will only inform you
590
+ * of your assigned IP once the connection has been accepted.
531
591
  */
532
592
  primary_telnyx_ip?: string;
593
+ region?: Data.Region;
533
594
  /**
534
- * Identifies the type of the resource.
595
+ * The authentication key for BGP peer configuration.
535
596
  */
536
- record_type?: string;
537
- region?: Data.Region;
597
+ secondary_bgp_key?: string;
538
598
  /**
539
- * The region interface is deployed to.
599
+ * The identifier for your Virtual Private Cloud. The number will be different
600
+ * based upon your Cloud provider.<br /><br />This attribute is only necessary for
601
+ * GCE.
602
+ */
603
+ secondary_cloud_account_id?: string;
604
+ /**
605
+ * The IP address assigned for your side of the Virtual Cross
606
+ * Connect.<br /><br />If none is provided, one will be generated for
607
+ * you.<br /><br />This value can not be patched once the VXC has bene provisioned.
608
+ */
609
+ secondary_cloud_ip?: string;
610
+ /**
611
+ * Indicates whether the secondary circuit is enabled. Setting this to `false` will
612
+ * disable the circuit.
540
613
  */
541
- region_code?: string;
614
+ secondary_enabled?: boolean;
542
615
  /**
543
- * The current status of the interface deployment.
616
+ * Whether the secondary BGP route is being announced.
544
617
  */
545
- status?: NetworksAPI.InterfaceStatus;
618
+ secondary_routing_announcement?: boolean;
546
619
  /**
547
- * ISO 8601 formatted date-time indicating when the resource was updated.
620
+ * The IP address assigned to the Telnyx side of the Virtual Cross
621
+ * Connect.<br /><br />If none is provided, one will be generated for
622
+ * you.<br /><br />This value should be null for GCE as Google will only inform you
623
+ * of your assigned IP once the connection has been accepted.
548
624
  */
549
- updated_at?: string;
625
+ secondary_telnyx_ip?: string;
550
626
  }
551
627
  namespace Data {
552
628
  interface Region {