@nirvana-labs/nirvana 1.18.3 → 1.20.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 (229) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/README.md +7 -7
  3. package/package.json +1 -1
  4. package/resources/compute/vms/availability.d.mts +17 -1
  5. package/resources/compute/vms/availability.d.mts.map +1 -1
  6. package/resources/compute/vms/availability.d.ts +17 -1
  7. package/resources/compute/vms/availability.d.ts.map +1 -1
  8. package/resources/compute/vms/availability.js +1 -1
  9. package/resources/compute/vms/availability.mjs +1 -1
  10. package/resources/compute/vms/vms.d.mts +21 -1
  11. package/resources/compute/vms/vms.d.mts.map +1 -1
  12. package/resources/compute/vms/vms.d.ts +21 -1
  13. package/resources/compute/vms/vms.d.ts.map +1 -1
  14. package/resources/compute/vms/vms.js +1 -1
  15. package/resources/compute/vms/vms.js.map +1 -1
  16. package/resources/compute/vms/vms.mjs +1 -1
  17. package/resources/compute/vms/vms.mjs.map +1 -1
  18. package/resources/compute/volumes/availability.d.mts +8 -0
  19. package/resources/compute/volumes/availability.d.mts.map +1 -1
  20. package/resources/compute/volumes/availability.d.ts +8 -0
  21. package/resources/compute/volumes/availability.d.ts.map +1 -1
  22. package/resources/compute/volumes/volumes.d.mts +12 -0
  23. package/resources/compute/volumes/volumes.d.mts.map +1 -1
  24. package/resources/compute/volumes/volumes.d.ts +12 -0
  25. package/resources/compute/volumes/volumes.d.ts.map +1 -1
  26. package/resources/compute/volumes/volumes.js.map +1 -1
  27. package/resources/compute/volumes/volumes.mjs.map +1 -1
  28. package/resources/connect/connect.d.mts +3 -3
  29. package/resources/connect/connect.d.mts.map +1 -1
  30. package/resources/connect/connect.d.ts +3 -3
  31. package/resources/connect/connect.d.ts.map +1 -1
  32. package/resources/connect/connect.js +2 -2
  33. package/resources/connect/connect.js.map +1 -1
  34. package/resources/connect/connect.mjs +3 -3
  35. package/resources/connect/connect.mjs.map +1 -1
  36. package/resources/connect/flux/flux.d.mts +6 -204
  37. package/resources/connect/flux/flux.d.mts.map +1 -1
  38. package/resources/connect/flux/flux.d.ts +6 -204
  39. package/resources/connect/flux/flux.d.ts.map +1 -1
  40. package/resources/connect/flux/flux.js +7 -73
  41. package/resources/connect/flux/flux.js.map +1 -1
  42. package/resources/connect/flux/flux.mjs +5 -71
  43. package/resources/connect/flux/flux.mjs.map +1 -1
  44. package/resources/connect/flux/index.d.mts +2 -2
  45. package/resources/connect/flux/index.d.mts.map +1 -1
  46. package/resources/connect/flux/index.d.ts +2 -2
  47. package/resources/connect/flux/index.d.ts.map +1 -1
  48. package/resources/connect/flux/index.js +4 -4
  49. package/resources/connect/flux/index.js.map +1 -1
  50. package/resources/connect/flux/index.mjs +2 -2
  51. package/resources/connect/flux/index.mjs.map +1 -1
  52. package/resources/connect/flux/routes.d.mts +4 -0
  53. package/resources/connect/flux/routes.d.mts.map +1 -0
  54. package/resources/connect/flux/routes.d.ts +4 -0
  55. package/resources/connect/flux/routes.d.ts.map +1 -0
  56. package/resources/connect/flux/routes.js +9 -0
  57. package/resources/connect/flux/routes.js.map +1 -0
  58. package/resources/connect/flux/routes.mjs +5 -0
  59. package/resources/connect/flux/routes.mjs.map +1 -0
  60. package/resources/connect/index.d.mts +1 -1
  61. package/resources/connect/index.d.mts.map +1 -1
  62. package/resources/connect/index.d.ts +1 -1
  63. package/resources/connect/index.d.ts.map +1 -1
  64. package/resources/connect/index.js +2 -2
  65. package/resources/connect/index.js.map +1 -1
  66. package/resources/connect/index.mjs +1 -1
  67. package/resources/connect/index.mjs.map +1 -1
  68. package/resources/networking/connect/connect.d.mts +130 -0
  69. package/resources/networking/connect/connect.d.mts.map +1 -0
  70. package/resources/networking/connect/connect.d.ts +130 -0
  71. package/resources/networking/connect/connect.d.ts.map +1 -0
  72. package/resources/networking/connect/connect.js +21 -0
  73. package/resources/networking/connect/connect.js.map +1 -0
  74. package/resources/networking/connect/connect.mjs +16 -0
  75. package/resources/networking/connect/connect.mjs.map +1 -0
  76. package/resources/networking/connect/connections.d.mts +114 -0
  77. package/resources/networking/connect/connections.d.mts.map +1 -0
  78. package/resources/networking/connect/connections.d.ts +114 -0
  79. package/resources/networking/connect/connections.d.ts.map +1 -0
  80. package/resources/networking/connect/connections.js +82 -0
  81. package/resources/networking/connect/connections.js.map +1 -0
  82. package/resources/networking/connect/connections.mjs +78 -0
  83. package/resources/networking/connect/connections.mjs.map +1 -0
  84. package/resources/networking/connect/index.d.mts +4 -0
  85. package/resources/networking/connect/index.d.mts.map +1 -0
  86. package/resources/networking/connect/index.d.ts +4 -0
  87. package/resources/networking/connect/index.d.ts.map +1 -0
  88. package/resources/networking/connect/index.js +11 -0
  89. package/resources/networking/connect/index.js.map +1 -0
  90. package/resources/networking/connect/index.mjs +5 -0
  91. package/resources/networking/connect/index.mjs.map +1 -0
  92. package/resources/networking/connect/routes.d.mts +17 -0
  93. package/resources/networking/connect/routes.d.mts.map +1 -0
  94. package/resources/networking/connect/routes.d.ts +17 -0
  95. package/resources/networking/connect/routes.d.ts.map +1 -0
  96. package/resources/networking/connect/routes.js +21 -0
  97. package/resources/networking/connect/routes.js.map +1 -0
  98. package/resources/networking/connect/routes.mjs +17 -0
  99. package/resources/networking/connect/routes.mjs.map +1 -0
  100. package/resources/networking/connect.d.mts +2 -0
  101. package/resources/networking/connect.d.mts.map +1 -0
  102. package/resources/networking/connect.d.ts +2 -0
  103. package/resources/networking/connect.d.ts.map +1 -0
  104. package/resources/networking/connect.js +6 -0
  105. package/resources/networking/connect.js.map +1 -0
  106. package/resources/networking/connect.mjs +3 -0
  107. package/resources/networking/connect.mjs.map +1 -0
  108. package/resources/networking/firewall-rules.d.mts +12 -0
  109. package/resources/networking/firewall-rules.d.mts.map +1 -1
  110. package/resources/networking/firewall-rules.d.ts +12 -0
  111. package/resources/networking/firewall-rules.d.ts.map +1 -1
  112. package/resources/networking/index.d.mts +1 -0
  113. package/resources/networking/index.d.mts.map +1 -1
  114. package/resources/networking/index.d.ts +1 -0
  115. package/resources/networking/index.d.ts.map +1 -1
  116. package/resources/networking/index.js +5 -3
  117. package/resources/networking/index.js.map +1 -1
  118. package/resources/networking/index.mjs +1 -0
  119. package/resources/networking/index.mjs.map +1 -1
  120. package/resources/networking/networking.d.mts +4 -0
  121. package/resources/networking/networking.d.mts.map +1 -1
  122. package/resources/networking/networking.d.ts +4 -0
  123. package/resources/networking/networking.d.ts.map +1 -1
  124. package/resources/networking/networking.js +4 -0
  125. package/resources/networking/networking.js.map +1 -1
  126. package/resources/networking/networking.mjs +4 -0
  127. package/resources/networking/networking.mjs.map +1 -1
  128. package/resources/networking/vpcs/availability.d.mts +8 -0
  129. package/resources/networking/vpcs/availability.d.mts.map +1 -1
  130. package/resources/networking/vpcs/availability.d.ts +8 -0
  131. package/resources/networking/vpcs/availability.d.ts.map +1 -1
  132. package/resources/networking/vpcs/vpcs.d.mts +12 -0
  133. package/resources/networking/vpcs/vpcs.d.mts.map +1 -1
  134. package/resources/networking/vpcs/vpcs.d.ts +12 -0
  135. package/resources/networking/vpcs/vpcs.d.ts.map +1 -1
  136. package/resources/networking/vpcs/vpcs.js.map +1 -1
  137. package/resources/networking/vpcs/vpcs.mjs.map +1 -1
  138. package/resources/rpc-nodes/dedicated/blockchains.d.mts +6 -0
  139. package/resources/rpc-nodes/dedicated/blockchains.d.mts.map +1 -1
  140. package/resources/rpc-nodes/dedicated/blockchains.d.ts +6 -0
  141. package/resources/rpc-nodes/dedicated/blockchains.d.ts.map +1 -1
  142. package/resources/rpc-nodes/dedicated/blockchains.js +6 -0
  143. package/resources/rpc-nodes/dedicated/blockchains.js.map +1 -1
  144. package/resources/rpc-nodes/dedicated/blockchains.mjs +6 -0
  145. package/resources/rpc-nodes/dedicated/blockchains.mjs.map +1 -1
  146. package/resources/rpc-nodes/dedicated/dedicated.d.mts +17 -0
  147. package/resources/rpc-nodes/dedicated/dedicated.d.mts.map +1 -1
  148. package/resources/rpc-nodes/dedicated/dedicated.d.ts +17 -0
  149. package/resources/rpc-nodes/dedicated/dedicated.d.ts.map +1 -1
  150. package/resources/rpc-nodes/dedicated/dedicated.js +13 -0
  151. package/resources/rpc-nodes/dedicated/dedicated.js.map +1 -1
  152. package/resources/rpc-nodes/dedicated/dedicated.mjs +13 -0
  153. package/resources/rpc-nodes/dedicated/dedicated.mjs.map +1 -1
  154. package/resources/rpc-nodes/flex/blockchains.d.mts +6 -0
  155. package/resources/rpc-nodes/flex/blockchains.d.mts.map +1 -1
  156. package/resources/rpc-nodes/flex/blockchains.d.ts +6 -0
  157. package/resources/rpc-nodes/flex/blockchains.d.ts.map +1 -1
  158. package/resources/rpc-nodes/flex/blockchains.js +6 -0
  159. package/resources/rpc-nodes/flex/blockchains.js.map +1 -1
  160. package/resources/rpc-nodes/flex/blockchains.mjs +6 -0
  161. package/resources/rpc-nodes/flex/blockchains.mjs.map +1 -1
  162. package/resources/rpc-nodes/flex/flex.d.mts +74 -1
  163. package/resources/rpc-nodes/flex/flex.d.mts.map +1 -1
  164. package/resources/rpc-nodes/flex/flex.d.ts +74 -1
  165. package/resources/rpc-nodes/flex/flex.d.ts.map +1 -1
  166. package/resources/rpc-nodes/flex/flex.js +51 -0
  167. package/resources/rpc-nodes/flex/flex.js.map +1 -1
  168. package/resources/rpc-nodes/flex/flex.mjs +51 -0
  169. package/resources/rpc-nodes/flex/flex.mjs.map +1 -1
  170. package/resources/rpc-nodes/flex/index.d.mts +1 -1
  171. package/resources/rpc-nodes/flex/index.d.mts.map +1 -1
  172. package/resources/rpc-nodes/flex/index.d.ts +1 -1
  173. package/resources/rpc-nodes/flex/index.d.ts.map +1 -1
  174. package/resources/rpc-nodes/flex/index.js.map +1 -1
  175. package/resources/rpc-nodes/flex/index.mjs +1 -1
  176. package/resources/rpc-nodes/flex/index.mjs.map +1 -1
  177. package/resources/rpc-nodes/index.d.mts +1 -1
  178. package/resources/rpc-nodes/index.d.mts.map +1 -1
  179. package/resources/rpc-nodes/index.d.ts +1 -1
  180. package/resources/rpc-nodes/index.d.ts.map +1 -1
  181. package/resources/rpc-nodes/index.js.map +1 -1
  182. package/resources/rpc-nodes/index.mjs.map +1 -1
  183. package/resources/rpc-nodes/rpc-nodes.d.mts +2 -2
  184. package/resources/rpc-nodes/rpc-nodes.d.mts.map +1 -1
  185. package/resources/rpc-nodes/rpc-nodes.d.ts +2 -2
  186. package/resources/rpc-nodes/rpc-nodes.d.ts.map +1 -1
  187. package/resources/rpc-nodes/rpc-nodes.js.map +1 -1
  188. package/resources/rpc-nodes/rpc-nodes.mjs +1 -1
  189. package/resources/rpc-nodes/rpc-nodes.mjs.map +1 -1
  190. package/src/resources/compute/vms/availability.ts +21 -1
  191. package/src/resources/compute/vms/vms.ts +26 -1
  192. package/src/resources/compute/volumes/availability.ts +10 -0
  193. package/src/resources/compute/volumes/volumes.ts +15 -0
  194. package/src/resources/connect/connect.ts +4 -26
  195. package/src/resources/connect/flux/flux.ts +7 -265
  196. package/src/resources/connect/flux/index.ts +2 -13
  197. package/src/resources/connect/flux/routes.ts +5 -0
  198. package/src/resources/connect/index.ts +1 -12
  199. package/src/resources/networking/connect/connect.ts +174 -0
  200. package/src/resources/networking/connect/connections.ts +148 -0
  201. package/src/resources/networking/connect/index.ts +14 -0
  202. package/src/resources/networking/connect/routes.ts +21 -0
  203. package/src/resources/networking/connect.ts +3 -0
  204. package/src/resources/networking/firewall-rules.ts +15 -0
  205. package/src/resources/networking/index.ts +10 -0
  206. package/src/resources/networking/networking.ts +24 -0
  207. package/src/resources/networking/vpcs/availability.ts +10 -0
  208. package/src/resources/networking/vpcs/vpcs.ts +15 -0
  209. package/src/resources/rpc-nodes/dedicated/blockchains.ts +6 -0
  210. package/src/resources/rpc-nodes/dedicated/dedicated.ts +18 -0
  211. package/src/resources/rpc-nodes/flex/blockchains.ts +6 -0
  212. package/src/resources/rpc-nodes/flex/flex.ts +95 -0
  213. package/src/resources/rpc-nodes/flex/index.ts +9 -1
  214. package/src/resources/rpc-nodes/index.ts +2 -0
  215. package/src/resources/rpc-nodes/rpc-nodes.ts +11 -1
  216. package/src/version.ts +1 -1
  217. package/version.d.mts +1 -1
  218. package/version.d.ts +1 -1
  219. package/version.js +1 -1
  220. package/version.mjs +1 -1
  221. package/resources/connect/flux/providers.d.mts +0 -17
  222. package/resources/connect/flux/providers.d.mts.map +0 -1
  223. package/resources/connect/flux/providers.d.ts +0 -17
  224. package/resources/connect/flux/providers.d.ts.map +0 -1
  225. package/resources/connect/flux/providers.js +0 -21
  226. package/resources/connect/flux/providers.js.map +0 -1
  227. package/resources/connect/flux/providers.mjs +0 -17
  228. package/resources/connect/flux/providers.mjs.map +0 -1
  229. package/src/resources/connect/flux/providers.ts +0 -21
@@ -3,7 +3,7 @@ import { APIResource } from "../../core/resource.mjs";
3
3
  import * as DedicatedAPI from "./dedicated/dedicated.mjs";
4
4
  import { DedicatedResource, } from "./dedicated/dedicated.mjs";
5
5
  import * as FlexAPI from "./flex/flex.mjs";
6
- import { FlexResource } from "./flex/flex.mjs";
6
+ import { FlexResource, } from "./flex/flex.mjs";
7
7
  export class RPCNodes extends APIResource {
8
8
  constructor() {
9
9
  super(...arguments);
@@ -1 +1 @@
1
- {"version":3,"file":"rpc-nodes.mjs","sourceRoot":"","sources":["../../src/resources/rpc-nodes/rpc-nodes.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,EAKL,iBAAiB,GAClB;OACM,KAAK,OAAO;OACZ,EAAsD,YAAY,EAAE;AAE3E,MAAM,OAAO,QAAS,SAAQ,WAAW;IAAzC;;QACE,SAAI,GAAyB,IAAI,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACpE,cAAS,GAAmC,IAAI,YAAY,CAAC,iBAAiB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC/F,CAAC;CAAA;AAED,QAAQ,CAAC,YAAY,GAAG,YAAY,CAAC;AACrC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC"}
1
+ {"version":3,"file":"rpc-nodes.mjs","sourceRoot":"","sources":["../../src/resources/rpc-nodes/rpc-nodes.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,EAKL,iBAAiB,GAClB;OACM,KAAK,OAAO;OACZ,EAML,YAAY,GAEb;AAED,MAAM,OAAO,QAAS,SAAQ,WAAW;IAAzC;;QACE,SAAI,GAAyB,IAAI,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACpE,cAAS,GAAmC,IAAI,YAAY,CAAC,iBAAiB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC/F,CAAC;CAAA;AAED,QAAQ,CAAC,YAAY,GAAG,YAAY,CAAC;AACrC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC"}
@@ -20,7 +20,7 @@ export class Availability extends APIResource {
20
20
  * cpu_config: { vcpu: 2 },
21
21
  * memory_config: { size: 2 },
22
22
  * name: 'my-vm',
23
- * os_image_name: 'ubuntu-noble-2025-04-03',
23
+ * os_image_name: 'ubuntu-noble-2025-10-01',
24
24
  * public_ip_enabled: true,
25
25
  * region: 'us-wdc-1',
26
26
  * ssh_key: {
@@ -111,6 +111,11 @@ export interface AvailabilityCreateParams {
111
111
  * Data volumes for the VM.
112
112
  */
113
113
  data_volumes?: Array<AvailabilityCreateParams.DataVolume>;
114
+
115
+ /**
116
+ * Tags to attach to the VM.
117
+ */
118
+ tags?: Array<string>;
114
119
  }
115
120
 
116
121
  export namespace AvailabilityCreateParams {
@@ -122,6 +127,11 @@ export namespace AvailabilityCreateParams {
122
127
  * Size of the Volume in GB.
123
128
  */
124
129
  size: number;
130
+
131
+ /**
132
+ * Tags to attach to the Volume.
133
+ */
134
+ tags?: Array<string>;
125
135
  }
126
136
 
127
137
  /**
@@ -137,6 +147,11 @@ export namespace AvailabilityCreateParams {
137
147
  * Size of the Volume in GB.
138
148
  */
139
149
  size: number;
150
+
151
+ /**
152
+ * Tags to attach to the Volume.
153
+ */
154
+ tags?: Array<string>;
140
155
  }
141
156
  }
142
157
 
@@ -160,6 +175,11 @@ export interface AvailabilityUpdateParams {
160
175
  * Whether to enable public IP for the VM.
161
176
  */
162
177
  public_ip_enabled?: boolean;
178
+
179
+ /**
180
+ * Tags to attach to the VM.
181
+ */
182
+ tags?: Array<string>;
163
183
  }
164
184
 
165
185
  export declare namespace Availability {
@@ -34,7 +34,7 @@ export class VMs extends APIResource {
34
34
  * cpu_config: { vcpu: 2 },
35
35
  * memory_config: { size: 2 },
36
36
  * name: 'my-vm',
37
- * os_image_name: 'ubuntu-noble-2025-04-03',
37
+ * os_image_name: 'ubuntu-noble-2025-10-01',
38
38
  * public_ip_enabled: true,
39
39
  * region: 'us-wdc-1',
40
40
  * ssh_key: {
@@ -249,6 +249,11 @@ export interface VM {
249
249
  */
250
250
  subnet_id: string;
251
251
 
252
+ /**
253
+ * Tags to attach to the VM.
254
+ */
255
+ tags: Array<string>;
256
+
252
257
  /**
253
258
  * When the VM was updated.
254
259
  */
@@ -319,6 +324,11 @@ export interface VMCreateParams {
319
324
  * Data volumes for the VM.
320
325
  */
321
326
  data_volumes?: Array<VMCreateParams.DataVolume>;
327
+
328
+ /**
329
+ * Tags to attach to the VM.
330
+ */
331
+ tags?: Array<string>;
322
332
  }
323
333
 
324
334
  export namespace VMCreateParams {
@@ -330,6 +340,11 @@ export namespace VMCreateParams {
330
340
  * Size of the Volume in GB.
331
341
  */
332
342
  size: number;
343
+
344
+ /**
345
+ * Tags to attach to the Volume.
346
+ */
347
+ tags?: Array<string>;
333
348
  }
334
349
 
335
350
  /**
@@ -345,6 +360,11 @@ export namespace VMCreateParams {
345
360
  * Size of the Volume in GB.
346
361
  */
347
362
  size: number;
363
+
364
+ /**
365
+ * Tags to attach to the Volume.
366
+ */
367
+ tags?: Array<string>;
348
368
  }
349
369
  }
350
370
 
@@ -368,6 +388,11 @@ export interface VMUpdateParams {
368
388
  * Whether to enable public IP for the VM.
369
389
  */
370
390
  public_ip_enabled?: boolean;
391
+
392
+ /**
393
+ * Tags to attach to the VM.
394
+ */
395
+ tags?: Array<string>;
371
396
  }
372
397
 
373
398
  VMs.Availability = Availability;
@@ -67,6 +67,11 @@ export interface AvailabilityCreateParams {
67
67
  * ID of the VM the Volume is attached to.
68
68
  */
69
69
  vm_id: string;
70
+
71
+ /**
72
+ * Tags to attach to the Volume.
73
+ */
74
+ tags?: Array<string>;
70
75
  }
71
76
 
72
77
  export interface AvailabilityUpdateParams {
@@ -79,6 +84,11 @@ export interface AvailabilityUpdateParams {
79
84
  * Size of the Volume in GB.
80
85
  */
81
86
  size?: number;
87
+
88
+ /**
89
+ * Tags to attach to the Volume.
90
+ */
91
+ tags?: Array<string>;
82
92
  }
83
93
 
84
94
  export declare namespace Availability {
@@ -132,6 +132,11 @@ export interface Volume {
132
132
  */
133
133
  status: Shared.ResourceStatus;
134
134
 
135
+ /**
136
+ * Tags to attach to the Volume.
137
+ */
138
+ tags: Array<string>;
139
+
135
140
  /**
136
141
  * Storage type the Volume is using.
137
142
  */
@@ -177,6 +182,11 @@ export interface VolumeCreateParams {
177
182
  * ID of the VM the Volume is attached to.
178
183
  */
179
184
  vm_id: string;
185
+
186
+ /**
187
+ * Tags to attach to the Volume.
188
+ */
189
+ tags?: Array<string>;
180
190
  }
181
191
 
182
192
  export interface VolumeUpdateParams {
@@ -189,6 +199,11 @@ export interface VolumeUpdateParams {
189
199
  * Size of the Volume in GB.
190
200
  */
191
201
  size?: number;
202
+
203
+ /**
204
+ * Tags to attach to the Volume.
205
+ */
206
+ tags?: Array<string>;
192
207
  }
193
208
 
194
209
  Volumes.Availability = Availability;
@@ -2,36 +2,14 @@
2
2
 
3
3
  import { APIResource } from '../../core/resource';
4
4
  import * as FluxAPI from './flux/flux';
5
- import {
6
- Flux,
7
- FluxBandwidthMbps,
8
- FluxCreateParams,
9
- FluxList,
10
- FluxProvider,
11
- FluxProviderAWSConfig,
12
- FluxProviderAWSConfigRequest,
13
- FluxProviderList,
14
- FluxResource,
15
- FluxUpdateParams,
16
- } from './flux/flux';
5
+ import { Flux } from './flux/flux';
17
6
 
18
7
  export class Connect extends APIResource {
19
- flux: FluxAPI.FluxResource = new FluxAPI.FluxResource(this._client);
8
+ flux: FluxAPI.Flux = new FluxAPI.Flux(this._client);
20
9
  }
21
10
 
22
- Connect.FluxResource = FluxResource;
11
+ Connect.Flux = Flux;
23
12
 
24
13
  export declare namespace Connect {
25
- export {
26
- FluxResource as FluxResource,
27
- type Flux as Flux,
28
- type FluxBandwidthMbps as FluxBandwidthMbps,
29
- type FluxList as FluxList,
30
- type FluxProvider as FluxProvider,
31
- type FluxProviderAWSConfig as FluxProviderAWSConfig,
32
- type FluxProviderAWSConfigRequest as FluxProviderAWSConfigRequest,
33
- type FluxProviderList as FluxProviderList,
34
- type FluxCreateParams as FluxCreateParams,
35
- type FluxUpdateParams as FluxUpdateParams,
36
- };
14
+ export { Flux as Flux };
37
15
  }
@@ -1,273 +1,15 @@
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 OperationsAPI from '../../operations';
5
- import * as Shared from '../../shared';
6
- import * as ProvidersAPI from './providers';
7
- import { Providers } from './providers';
8
- import { APIPromise } from '../../../core/api-promise';
9
- import { RequestOptions } from '../../../internal/request-options';
10
- import { path } from '../../../internal/utils/path';
4
+ import * as RoutesAPI from './routes';
5
+ import { Routes } from './routes';
11
6
 
12
- export class FluxResource extends APIResource {
13
- providers: ProvidersAPI.Providers = new ProvidersAPI.Providers(this._client);
14
-
15
- /**
16
- * Create a Connect Flux
17
- *
18
- * @example
19
- * ```ts
20
- * const operation = await client.connect.flux.create({
21
- * bandwidth_mbps: 50,
22
- * cidrs: ['10.0.0.0/16'],
23
- * name: 'my-connect-flux',
24
- * provider_cidrs: ['172.16.0.0/16'],
25
- * region: 'us-wdc-1',
26
- * });
27
- * ```
28
- */
29
- create(body: FluxCreateParams, options?: RequestOptions): APIPromise<OperationsAPI.Operation> {
30
- return this._client.post('/v1/connect/flux', { body, ...options });
31
- }
32
-
33
- /**
34
- * Update Connect Flux details
35
- *
36
- * @example
37
- * ```ts
38
- * const operation = await client.connect.flux.update(
39
- * 'flux_id',
40
- * );
41
- * ```
42
- */
43
- update(
44
- fluxID: string,
45
- body: FluxUpdateParams,
46
- options?: RequestOptions,
47
- ): APIPromise<OperationsAPI.Operation> {
48
- return this._client.patch(path`/v1/connect/flux/${fluxID}`, { body, ...options });
49
- }
50
-
51
- /**
52
- * List all Connect Flux
53
- *
54
- * @example
55
- * ```ts
56
- * const fluxList = await client.connect.flux.list();
57
- * ```
58
- */
59
- list(options?: RequestOptions): APIPromise<FluxList> {
60
- return this._client.get('/v1/connect/flux', options);
61
- }
62
-
63
- /**
64
- * Delete Connect Flux
65
- *
66
- * @example
67
- * ```ts
68
- * const operation = await client.connect.flux.delete(
69
- * 'flux_id',
70
- * );
71
- * ```
72
- */
73
- delete(fluxID: string, options?: RequestOptions): APIPromise<OperationsAPI.Operation> {
74
- return this._client.delete(path`/v1/connect/flux/${fluxID}`, options);
75
- }
76
-
77
- /**
78
- * Get Connect Flux details
79
- *
80
- * @example
81
- * ```ts
82
- * const flux = await client.connect.flux.get('flux_id');
83
- * ```
84
- */
85
- get(fluxID: string, options?: RequestOptions): APIPromise<Flux> {
86
- return this._client.get(path`/v1/connect/flux/${fluxID}`, options);
87
- }
88
- }
89
-
90
- /**
91
- * Connect flux details.
92
- */
93
- export interface Flux {
94
- /**
95
- * Unique identifier for the Connect Flux
96
- */
97
- id: string;
98
-
99
- /**
100
- * ASN
101
- */
102
- asn: number | null;
103
-
104
- /**
105
- * AWS provider configuration
106
- */
107
- aws: FluxProviderAWSConfig | null;
108
-
109
- /**
110
- * Connect Flux speed in Mbps
111
- */
112
- bandwidth_mbps: FluxBandwidthMbps;
113
-
114
- /**
115
- * CIDRs for the Connect Flux
116
- */
117
- cidrs: Array<string>;
118
-
119
- /**
120
- * When the Connect Flux was created
121
- */
122
- created_at: string;
123
-
124
- /**
125
- * Name of the Connect Flux
126
- */
127
- name: string;
128
-
129
- /**
130
- * Provider ASN
131
- */
132
- provider_asn: number | null;
133
-
134
- /**
135
- * Provider CIDRs for the Connect Flux
136
- */
137
- provider_cidrs: Array<string>;
138
-
139
- /**
140
- * Provider Router IP
141
- */
142
- provider_router_ip: string | null;
143
-
144
- /**
145
- * Region the resource is in.
146
- */
147
- region: Shared.RegionName;
148
-
149
- /**
150
- * Router IP
151
- */
152
- router_ip: string | null;
153
-
154
- /**
155
- * Status of the resource.
156
- */
157
- status: Shared.ResourceStatus;
158
-
159
- /**
160
- * When the Connect Flux was updated
161
- */
162
- updated_at: string;
7
+ export class Flux extends APIResource {
8
+ routes: RoutesAPI.Routes = new RoutesAPI.Routes(this._client);
163
9
  }
164
10
 
165
- /**
166
- * Connect Flux speed in Mbps
167
- */
168
- export type FluxBandwidthMbps = 50 | 200 | 500 | 1000 | 2000;
169
-
170
- export interface FluxList {
171
- items: Array<Flux>;
172
- }
173
-
174
- /**
175
- * Provider supported for Connect Flux.
176
- */
177
- export interface FluxProvider {
178
- /**
179
- * Provider name.
180
- */
181
- name: string;
182
-
183
- /**
184
- * Provider region name.
185
- */
186
- region: string;
187
- }
188
-
189
- /**
190
- * AWS provider configuration
191
- */
192
- export interface FluxProviderAWSConfig {
193
- /**
194
- * AWS region where the connection is established
195
- */
196
- region: string;
197
- }
198
-
199
- /**
200
- * AWS provider configuration
201
- */
202
- export interface FluxProviderAWSConfigRequest {
203
- /**
204
- * AWS account id
205
- */
206
- account_id: string;
207
-
208
- /**
209
- * AWS region where the connection will be established
210
- */
211
- region: string;
212
- }
213
-
214
- export interface FluxProviderList {
215
- items: Array<FluxProvider>;
216
- }
217
-
218
- export interface FluxCreateParams {
219
- /**
220
- * Connect Flux speed in Mbps
221
- */
222
- bandwidth_mbps: FluxBandwidthMbps;
223
-
224
- /**
225
- * CIDRs for the Connect Flux
226
- */
227
- cidrs: Array<string>;
228
-
229
- /**
230
- * Name of the Connect Flux
231
- */
232
- name: string;
233
-
234
- /**
235
- * Provider CIDRs
236
- */
237
- provider_cidrs: Array<string>;
238
-
239
- /**
240
- * Region the resource is in.
241
- */
242
- region: Shared.RegionName;
243
-
244
- /**
245
- * AWS provider configuration
246
- */
247
- aws?: FluxProviderAWSConfigRequest;
248
- }
249
-
250
- export interface FluxUpdateParams {
251
- /**
252
- * Name of the Connect Flux.
253
- */
254
- name?: string;
255
- }
256
-
257
- FluxResource.Providers = Providers;
258
-
259
- export declare namespace FluxResource {
260
- export {
261
- type Flux as Flux,
262
- type FluxBandwidthMbps as FluxBandwidthMbps,
263
- type FluxList as FluxList,
264
- type FluxProvider as FluxProvider,
265
- type FluxProviderAWSConfig as FluxProviderAWSConfig,
266
- type FluxProviderAWSConfigRequest as FluxProviderAWSConfigRequest,
267
- type FluxProviderList as FluxProviderList,
268
- type FluxCreateParams as FluxCreateParams,
269
- type FluxUpdateParams as FluxUpdateParams,
270
- };
11
+ Flux.Routes = Routes;
271
12
 
272
- export { Providers as Providers };
13
+ export declare namespace Flux {
14
+ export { Routes as Routes };
273
15
  }
@@ -1,15 +1,4 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- export {
4
- FluxResource,
5
- type Flux,
6
- type FluxBandwidthMbps,
7
- type FluxList,
8
- type FluxProvider,
9
- type FluxProviderAWSConfig,
10
- type FluxProviderAWSConfigRequest,
11
- type FluxProviderList,
12
- type FluxCreateParams,
13
- type FluxUpdateParams,
14
- } from './flux';
15
- export { Providers } from './providers';
3
+ export { Flux } from './flux';
4
+ export { Routes } from './routes';
@@ -0,0 +1,5 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../../core/resource';
4
+
5
+ export class Routes extends APIResource {}
@@ -1,15 +1,4 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  export { Connect } from './connect';
4
- export {
5
- FluxResource,
6
- type Flux,
7
- type FluxBandwidthMbps,
8
- type FluxList,
9
- type FluxProvider,
10
- type FluxProviderAWSConfig,
11
- type FluxProviderAWSConfigRequest,
12
- type FluxProviderList,
13
- type FluxCreateParams,
14
- type FluxUpdateParams,
15
- } from './flux/index';
4
+ export { Flux } from './flux/index';