@nirvana-labs/nirvana 1.19.0 → 1.20.1

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 (202) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +7 -7
  3. package/client.d.mts +0 -3
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +0 -3
  6. package/client.d.ts.map +1 -1
  7. package/client.js +0 -3
  8. package/client.js.map +1 -1
  9. package/client.mjs +0 -3
  10. package/client.mjs.map +1 -1
  11. package/package.json +1 -1
  12. package/resources/index.d.mts +0 -1
  13. package/resources/index.d.mts.map +1 -1
  14. package/resources/index.d.ts +0 -1
  15. package/resources/index.d.ts.map +1 -1
  16. package/resources/index.js +1 -3
  17. package/resources/index.js.map +1 -1
  18. package/resources/index.mjs +0 -1
  19. package/resources/index.mjs.map +1 -1
  20. package/resources/networking/connect/connect.d.mts +130 -0
  21. package/resources/networking/connect/connect.d.mts.map +1 -0
  22. package/resources/networking/connect/connect.d.ts +130 -0
  23. package/resources/networking/connect/connect.d.ts.map +1 -0
  24. package/resources/networking/connect/connect.js +21 -0
  25. package/resources/networking/connect/connect.js.map +1 -0
  26. package/resources/networking/connect/connect.mjs +16 -0
  27. package/resources/networking/connect/connect.mjs.map +1 -0
  28. package/resources/networking/connect/connections.d.mts +114 -0
  29. package/resources/networking/connect/connections.d.mts.map +1 -0
  30. package/resources/networking/connect/connections.d.ts +114 -0
  31. package/resources/networking/connect/connections.d.ts.map +1 -0
  32. package/resources/networking/connect/connections.js +82 -0
  33. package/resources/networking/connect/connections.js.map +1 -0
  34. package/resources/networking/connect/connections.mjs +78 -0
  35. package/resources/networking/connect/connections.mjs.map +1 -0
  36. package/resources/networking/connect/index.d.mts +4 -0
  37. package/resources/networking/connect/index.d.mts.map +1 -0
  38. package/resources/networking/connect/index.d.ts +4 -0
  39. package/resources/networking/connect/index.d.ts.map +1 -0
  40. package/resources/networking/connect/index.js +11 -0
  41. package/resources/networking/connect/index.js.map +1 -0
  42. package/resources/{connect/flux → networking/connect}/index.mjs +2 -1
  43. package/resources/networking/connect/index.mjs.map +1 -0
  44. package/resources/networking/connect/routes.d.mts +17 -0
  45. package/resources/networking/connect/routes.d.mts.map +1 -0
  46. package/resources/networking/connect/routes.d.ts +17 -0
  47. package/resources/networking/connect/routes.d.ts.map +1 -0
  48. package/resources/{connect/flux → networking/connect}/routes.js +4 -4
  49. package/resources/networking/connect/routes.js.map +1 -0
  50. package/resources/{connect/flux → networking/connect}/routes.mjs +4 -4
  51. package/resources/networking/connect/routes.mjs.map +1 -0
  52. package/resources/networking/connect.d.mts.map +1 -0
  53. package/resources/networking/connect.d.ts.map +1 -0
  54. package/resources/{connect.js → networking/connect.js} +1 -1
  55. package/resources/networking/connect.js.map +1 -0
  56. package/resources/networking/connect.mjs.map +1 -0
  57. package/resources/networking/index.d.mts +1 -0
  58. package/resources/networking/index.d.mts.map +1 -1
  59. package/resources/networking/index.d.ts +1 -0
  60. package/resources/networking/index.d.ts.map +1 -1
  61. package/resources/networking/index.js +5 -3
  62. package/resources/networking/index.js.map +1 -1
  63. package/resources/networking/index.mjs +1 -0
  64. package/resources/networking/index.mjs.map +1 -1
  65. package/resources/networking/networking.d.mts +4 -0
  66. package/resources/networking/networking.d.mts.map +1 -1
  67. package/resources/networking/networking.d.ts +4 -0
  68. package/resources/networking/networking.d.ts.map +1 -1
  69. package/resources/networking/networking.js +4 -0
  70. package/resources/networking/networking.js.map +1 -1
  71. package/resources/networking/networking.mjs +4 -0
  72. package/resources/networking/networking.mjs.map +1 -1
  73. package/resources/rpc-nodes/dedicated/blockchains.d.mts +6 -0
  74. package/resources/rpc-nodes/dedicated/blockchains.d.mts.map +1 -1
  75. package/resources/rpc-nodes/dedicated/blockchains.d.ts +6 -0
  76. package/resources/rpc-nodes/dedicated/blockchains.d.ts.map +1 -1
  77. package/resources/rpc-nodes/dedicated/blockchains.js +6 -0
  78. package/resources/rpc-nodes/dedicated/blockchains.js.map +1 -1
  79. package/resources/rpc-nodes/dedicated/blockchains.mjs +6 -0
  80. package/resources/rpc-nodes/dedicated/blockchains.mjs.map +1 -1
  81. package/resources/rpc-nodes/dedicated/dedicated.d.mts +13 -0
  82. package/resources/rpc-nodes/dedicated/dedicated.d.mts.map +1 -1
  83. package/resources/rpc-nodes/dedicated/dedicated.d.ts +13 -0
  84. package/resources/rpc-nodes/dedicated/dedicated.d.ts.map +1 -1
  85. package/resources/rpc-nodes/dedicated/dedicated.js +13 -0
  86. package/resources/rpc-nodes/dedicated/dedicated.js.map +1 -1
  87. package/resources/rpc-nodes/dedicated/dedicated.mjs +13 -0
  88. package/resources/rpc-nodes/dedicated/dedicated.mjs.map +1 -1
  89. package/resources/rpc-nodes/flex/blockchains.d.mts +6 -0
  90. package/resources/rpc-nodes/flex/blockchains.d.mts.map +1 -1
  91. package/resources/rpc-nodes/flex/blockchains.d.ts +6 -0
  92. package/resources/rpc-nodes/flex/blockchains.d.ts.map +1 -1
  93. package/resources/rpc-nodes/flex/blockchains.js +6 -0
  94. package/resources/rpc-nodes/flex/blockchains.js.map +1 -1
  95. package/resources/rpc-nodes/flex/blockchains.mjs +6 -0
  96. package/resources/rpc-nodes/flex/blockchains.mjs.map +1 -1
  97. package/resources/rpc-nodes/flex/flex.d.mts +70 -1
  98. package/resources/rpc-nodes/flex/flex.d.mts.map +1 -1
  99. package/resources/rpc-nodes/flex/flex.d.ts +70 -1
  100. package/resources/rpc-nodes/flex/flex.d.ts.map +1 -1
  101. package/resources/rpc-nodes/flex/flex.js +51 -0
  102. package/resources/rpc-nodes/flex/flex.js.map +1 -1
  103. package/resources/rpc-nodes/flex/flex.mjs +51 -0
  104. package/resources/rpc-nodes/flex/flex.mjs.map +1 -1
  105. package/resources/rpc-nodes/flex/index.d.mts +1 -1
  106. package/resources/rpc-nodes/flex/index.d.mts.map +1 -1
  107. package/resources/rpc-nodes/flex/index.d.ts +1 -1
  108. package/resources/rpc-nodes/flex/index.d.ts.map +1 -1
  109. package/resources/rpc-nodes/flex/index.js.map +1 -1
  110. package/resources/rpc-nodes/flex/index.mjs +1 -1
  111. package/resources/rpc-nodes/flex/index.mjs.map +1 -1
  112. package/resources/rpc-nodes/index.d.mts +1 -1
  113. package/resources/rpc-nodes/index.d.mts.map +1 -1
  114. package/resources/rpc-nodes/index.d.ts +1 -1
  115. package/resources/rpc-nodes/index.d.ts.map +1 -1
  116. package/resources/rpc-nodes/index.js.map +1 -1
  117. package/resources/rpc-nodes/index.mjs.map +1 -1
  118. package/resources/rpc-nodes/rpc-nodes.d.mts +2 -2
  119. package/resources/rpc-nodes/rpc-nodes.d.mts.map +1 -1
  120. package/resources/rpc-nodes/rpc-nodes.d.ts +2 -2
  121. package/resources/rpc-nodes/rpc-nodes.d.ts.map +1 -1
  122. package/resources/rpc-nodes/rpc-nodes.js.map +1 -1
  123. package/resources/rpc-nodes/rpc-nodes.mjs +1 -1
  124. package/resources/rpc-nodes/rpc-nodes.mjs.map +1 -1
  125. package/src/client.ts +0 -5
  126. package/src/resources/index.ts +0 -1
  127. package/src/resources/networking/connect/connect.ts +174 -0
  128. package/src/resources/networking/connect/connections.ts +148 -0
  129. package/src/resources/networking/connect/index.ts +14 -0
  130. package/src/resources/{connect/flux → networking/connect}/routes.ts +6 -6
  131. package/src/resources/networking/index.ts +10 -0
  132. package/src/resources/networking/networking.ts +24 -0
  133. package/src/resources/rpc-nodes/dedicated/blockchains.ts +6 -0
  134. package/src/resources/rpc-nodes/dedicated/dedicated.ts +13 -0
  135. package/src/resources/rpc-nodes/flex/blockchains.ts +6 -0
  136. package/src/resources/rpc-nodes/flex/flex.ts +90 -0
  137. package/src/resources/rpc-nodes/flex/index.ts +9 -1
  138. package/src/resources/rpc-nodes/index.ts +2 -0
  139. package/src/resources/rpc-nodes/rpc-nodes.ts +11 -1
  140. package/src/version.ts +1 -1
  141. package/version.d.mts +1 -1
  142. package/version.d.ts +1 -1
  143. package/version.js +1 -1
  144. package/version.mjs +1 -1
  145. package/resources/connect/connect.d.mts +0 -10
  146. package/resources/connect/connect.d.mts.map +0 -1
  147. package/resources/connect/connect.d.ts +0 -10
  148. package/resources/connect/connect.d.ts.map +0 -1
  149. package/resources/connect/connect.js +0 -17
  150. package/resources/connect/connect.js.map +0 -1
  151. package/resources/connect/connect.mjs +0 -12
  152. package/resources/connect/connect.mjs.map +0 -1
  153. package/resources/connect/flux/flux.d.mts +0 -224
  154. package/resources/connect/flux/flux.d.mts.map +0 -1
  155. package/resources/connect/flux/flux.d.ts +0 -224
  156. package/resources/connect/flux/flux.d.ts.map +0 -1
  157. package/resources/connect/flux/flux.js +0 -83
  158. package/resources/connect/flux/flux.js.map +0 -1
  159. package/resources/connect/flux/flux.mjs +0 -78
  160. package/resources/connect/flux/flux.mjs.map +0 -1
  161. package/resources/connect/flux/index.d.mts +0 -3
  162. package/resources/connect/flux/index.d.mts.map +0 -1
  163. package/resources/connect/flux/index.d.ts +0 -3
  164. package/resources/connect/flux/index.d.ts.map +0 -1
  165. package/resources/connect/flux/index.js +0 -9
  166. package/resources/connect/flux/index.js.map +0 -1
  167. package/resources/connect/flux/index.mjs.map +0 -1
  168. package/resources/connect/flux/routes.d.mts +0 -17
  169. package/resources/connect/flux/routes.d.mts.map +0 -1
  170. package/resources/connect/flux/routes.d.ts +0 -17
  171. package/resources/connect/flux/routes.d.ts.map +0 -1
  172. package/resources/connect/flux/routes.js.map +0 -1
  173. package/resources/connect/flux/routes.mjs.map +0 -1
  174. package/resources/connect/flux.d.mts +0 -2
  175. package/resources/connect/flux.d.mts.map +0 -1
  176. package/resources/connect/flux.d.ts +0 -2
  177. package/resources/connect/flux.d.ts.map +0 -1
  178. package/resources/connect/flux.js +0 -6
  179. package/resources/connect/flux.js.map +0 -1
  180. package/resources/connect/flux.mjs +0 -3
  181. package/resources/connect/flux.mjs.map +0 -1
  182. package/resources/connect/index.d.mts +0 -3
  183. package/resources/connect/index.d.mts.map +0 -1
  184. package/resources/connect/index.d.ts +0 -3
  185. package/resources/connect/index.d.ts.map +0 -1
  186. package/resources/connect/index.js +0 -9
  187. package/resources/connect/index.js.map +0 -1
  188. package/resources/connect/index.mjs +0 -4
  189. package/resources/connect/index.mjs.map +0 -1
  190. package/resources/connect.d.mts.map +0 -1
  191. package/resources/connect.d.ts.map +0 -1
  192. package/resources/connect.js.map +0 -1
  193. package/resources/connect.mjs.map +0 -1
  194. package/src/resources/connect/connect.ts +0 -37
  195. package/src/resources/connect/flux/flux.ts +0 -293
  196. package/src/resources/connect/flux/index.ts +0 -15
  197. package/src/resources/connect/flux.ts +0 -3
  198. package/src/resources/connect/index.ts +0 -15
  199. /package/resources/{connect.d.mts → networking/connect.d.mts} +0 -0
  200. /package/resources/{connect.d.ts → networking/connect.d.ts} +0 -0
  201. /package/resources/{connect.mjs → networking/connect.mjs} +0 -0
  202. /package/src/resources/{connect.ts → networking/connect.ts} +0 -0
@@ -1,78 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { APIResource } from "../../../core/resource.mjs";
3
- import * as RoutesAPI from "./routes.mjs";
4
- import { Routes } from "./routes.mjs";
5
- import { path } from "../../../internal/utils/path.mjs";
6
- export class FluxResource extends APIResource {
7
- constructor() {
8
- super(...arguments);
9
- this.routes = new RoutesAPI.Routes(this._client);
10
- }
11
- /**
12
- * Create a Connect Flux
13
- *
14
- * @example
15
- * ```ts
16
- * const operation = await client.connect.flux.create({
17
- * bandwidth_mbps: 50,
18
- * cidrs: ['10.0.0.0/16'],
19
- * name: 'my-connect-flux',
20
- * provider_cidrs: ['172.16.0.0/16'],
21
- * region: 'us-wdc-1',
22
- * });
23
- * ```
24
- */
25
- create(body, options) {
26
- return this._client.post('/v1/connect/flux', { body, ...options });
27
- }
28
- /**
29
- * Update Connect Flux details
30
- *
31
- * @example
32
- * ```ts
33
- * const operation = await client.connect.flux.update(
34
- * 'flux_id',
35
- * );
36
- * ```
37
- */
38
- update(fluxID, body, options) {
39
- return this._client.patch(path `/v1/connect/flux/${fluxID}`, { body, ...options });
40
- }
41
- /**
42
- * List all Connect Flux
43
- *
44
- * @example
45
- * ```ts
46
- * const fluxList = await client.connect.flux.list();
47
- * ```
48
- */
49
- list(options) {
50
- return this._client.get('/v1/connect/flux', options);
51
- }
52
- /**
53
- * Delete Connect Flux
54
- *
55
- * @example
56
- * ```ts
57
- * const operation = await client.connect.flux.delete(
58
- * 'flux_id',
59
- * );
60
- * ```
61
- */
62
- delete(fluxID, options) {
63
- return this._client.delete(path `/v1/connect/flux/${fluxID}`, options);
64
- }
65
- /**
66
- * Get Connect Flux details
67
- *
68
- * @example
69
- * ```ts
70
- * const flux = await client.connect.flux.get('flux_id');
71
- * ```
72
- */
73
- get(fluxID, options) {
74
- return this._client.get(path `/v1/connect/flux/${fluxID}`, options);
75
- }
76
- }
77
- FluxResource.Routes = Routes;
78
- //# sourceMappingURL=flux.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"flux.mjs","sourceRoot":"","sources":["../../../src/resources/connect/flux/flux.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,KAAK,SAAS;OACd,EAAE,MAAM,EAAE;OAGV,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,YAAa,SAAQ,WAAW;IAA7C;;QACE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA2EhE,CAAC;IAzEC;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,IAAsB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CACJ,MAAc,EACd,IAAsB,EACtB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,oBAAoB,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpF,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kBAAkB,EAAE,OAAO,CAAC,CAAC;IACvD,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CAAC,MAAc,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,oBAAoB,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;IAED;;;;;;;OAOG;IACH,GAAG,CAAC,MAAc,EAAE,OAAwB;QAC1C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,oBAAoB,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;CACF;AA6LD,YAAY,CAAC,MAAM,GAAG,MAAM,CAAC"}
@@ -1,3 +0,0 @@
1
- export { FluxResource, type Flux, type FluxBandwidthMbps, type FluxList, type FluxProviderAWSConfig, type FluxProviderAWSConfigRequest, type FluxRoute, type FluxRouteList, type FluxCreateParams, type FluxUpdateParams, } from "./flux.mjs";
2
- export { Routes } from "./routes.mjs";
3
- //# sourceMappingURL=index.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/connect/flux/index.ts"],"names":[],"mappings":"OAEO,EACL,YAAY,EACZ,KAAK,IAAI,EACT,KAAK,iBAAiB,EACtB,KAAK,QAAQ,EACb,KAAK,qBAAqB,EAC1B,KAAK,4BAA4B,EACjC,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,GACtB;OACM,EAAE,MAAM,EAAE"}
@@ -1,3 +0,0 @@
1
- export { FluxResource, type Flux, type FluxBandwidthMbps, type FluxList, type FluxProviderAWSConfig, type FluxProviderAWSConfigRequest, type FluxRoute, type FluxRouteList, type FluxCreateParams, type FluxUpdateParams, } from "./flux.js";
2
- export { Routes } from "./routes.js";
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/connect/flux/index.ts"],"names":[],"mappings":"OAEO,EACL,YAAY,EACZ,KAAK,IAAI,EACT,KAAK,iBAAiB,EACtB,KAAK,QAAQ,EACb,KAAK,qBAAqB,EAC1B,KAAK,4BAA4B,EACjC,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,GACtB;OACM,EAAE,MAAM,EAAE"}
@@ -1,9 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Routes = exports.FluxResource = void 0;
5
- var flux_1 = require("./flux.js");
6
- Object.defineProperty(exports, "FluxResource", { enumerable: true, get: function () { return flux_1.FluxResource; } });
7
- var routes_1 = require("./routes.js");
8
- Object.defineProperty(exports, "Routes", { enumerable: true, get: function () { return routes_1.Routes; } });
9
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/connect/flux/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kCAWgB;AAVd,oGAAA,YAAY,OAAA;AAWd,sCAAkC;AAAzB,gGAAA,MAAM,OAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/connect/flux/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,YAAY,GAUb;OACM,EAAE,MAAM,EAAE"}
@@ -1,17 +0,0 @@
1
- import { APIResource } from "../../../core/resource.mjs";
2
- import * as FluxAPI from "./flux.mjs";
3
- import { APIPromise } from "../../../core/api-promise.mjs";
4
- import { RequestOptions } from "../../../internal/request-options.mjs";
5
- export declare class Routes extends APIResource {
6
- /**
7
- * List all supported routes with regions for Connect Flux.
8
- *
9
- * @example
10
- * ```ts
11
- * const fluxRouteList =
12
- * await client.connect.flux.routes.list();
13
- * ```
14
- */
15
- list(options?: RequestOptions): APIPromise<FluxAPI.FluxRouteList>;
16
- }
17
- //# sourceMappingURL=routes.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"routes.d.mts","sourceRoot":"","sources":["../../../src/resources/connect/flux/routes.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;OAQG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC,aAAa,CAAC;CAGlE"}
@@ -1,17 +0,0 @@
1
- import { APIResource } from "../../../core/resource.js";
2
- import * as FluxAPI from "./flux.js";
3
- import { APIPromise } from "../../../core/api-promise.js";
4
- import { RequestOptions } from "../../../internal/request-options.js";
5
- export declare class Routes extends APIResource {
6
- /**
7
- * List all supported routes with regions for Connect Flux.
8
- *
9
- * @example
10
- * ```ts
11
- * const fluxRouteList =
12
- * await client.connect.flux.routes.list();
13
- * ```
14
- */
15
- list(options?: RequestOptions): APIPromise<FluxAPI.FluxRouteList>;
16
- }
17
- //# sourceMappingURL=routes.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../src/resources/connect/flux/routes.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;OAQG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC,aAAa,CAAC;CAGlE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"routes.js","sourceRoot":"","sources":["../../../src/resources/connect/flux/routes.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAKrD,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;;;;;;OAQG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,yBAAyB,EAAE,OAAO,CAAC,CAAC;IAC9D,CAAC;CACF;AAbD,wBAaC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"routes.mjs","sourceRoot":"","sources":["../../../src/resources/connect/flux/routes.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAKtB,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;;;;;;OAQG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,yBAAyB,EAAE,OAAO,CAAC,CAAC;IAC9D,CAAC;CACF"}
@@ -1,2 +0,0 @@
1
- export * from "./flux/index.mjs";
2
- //# sourceMappingURL=flux.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"flux.d.mts","sourceRoot":"","sources":["../../src/resources/connect/flux.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export * from "./flux/index.js";
2
- //# sourceMappingURL=flux.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"flux.d.ts","sourceRoot":"","sources":["../../src/resources/connect/flux.ts"],"names":[],"mappings":""}
@@ -1,6 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- const tslib_1 = require("../../internal/tslib.js");
5
- tslib_1.__exportStar(require("./flux/index.js"), exports);
6
- //# sourceMappingURL=flux.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"flux.js","sourceRoot":"","sources":["../../src/resources/connect/flux.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0DAA6B"}
@@ -1,3 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- export * from "./flux/index.mjs";
3
- //# sourceMappingURL=flux.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"flux.mjs","sourceRoot":"","sources":["../../src/resources/connect/flux.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
@@ -1,3 +0,0 @@
1
- export { Connect } from "./connect.mjs";
2
- export { FluxResource, type Flux, type FluxBandwidthMbps, type FluxList, type FluxProviderAWSConfig, type FluxProviderAWSConfigRequest, type FluxRoute, type FluxRouteList, type FluxCreateParams, type FluxUpdateParams, } from "./flux/index.mjs";
3
- //# sourceMappingURL=index.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/connect/index.ts"],"names":[],"mappings":"OAEO,EAAE,OAAO,EAAE;OACX,EACL,YAAY,EACZ,KAAK,IAAI,EACT,KAAK,iBAAiB,EACtB,KAAK,QAAQ,EACb,KAAK,qBAAqB,EAC1B,KAAK,4BAA4B,EACjC,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,GACtB"}
@@ -1,3 +0,0 @@
1
- export { Connect } from "./connect.js";
2
- export { FluxResource, type Flux, type FluxBandwidthMbps, type FluxList, type FluxProviderAWSConfig, type FluxProviderAWSConfigRequest, type FluxRoute, type FluxRouteList, type FluxCreateParams, type FluxUpdateParams, } from "./flux/index.js";
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/connect/index.ts"],"names":[],"mappings":"OAEO,EAAE,OAAO,EAAE;OACX,EACL,YAAY,EACZ,KAAK,IAAI,EACT,KAAK,iBAAiB,EACtB,KAAK,QAAQ,EACb,KAAK,qBAAqB,EAC1B,KAAK,4BAA4B,EACjC,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,GACtB"}
@@ -1,9 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.FluxResource = exports.Connect = void 0;
5
- var connect_1 = require("./connect.js");
6
- Object.defineProperty(exports, "Connect", { enumerable: true, get: function () { return connect_1.Connect; } });
7
- var index_1 = require("./flux/index.js");
8
- Object.defineProperty(exports, "FluxResource", { enumerable: true, get: function () { return index_1.FluxResource; } });
9
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/connect/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wCAAoC;AAA3B,kGAAA,OAAO,OAAA;AAChB,yCAWsB;AAVpB,qGAAA,YAAY,OAAA"}
@@ -1,4 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- export { Connect } from "./connect.mjs";
3
- export { FluxResource, } from "./flux/index.mjs";
4
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/connect/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,OAAO,EAAE;OACX,EACL,YAAY,GAUb"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"connect.d.mts","sourceRoot":"","sources":["../src/resources/connect.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"connect.d.ts","sourceRoot":"","sources":["../src/resources/connect.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"connect.js","sourceRoot":"","sources":["../src/resources/connect.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6DAAgC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"connect.mjs","sourceRoot":"","sources":["../src/resources/connect.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
@@ -1,37 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- import { APIResource } from '../../core/resource';
4
- import * as FluxAPI from './flux/flux';
5
- import {
6
- Flux,
7
- FluxBandwidthMbps,
8
- FluxCreateParams,
9
- FluxList,
10
- FluxProviderAWSConfig,
11
- FluxProviderAWSConfigRequest,
12
- FluxResource,
13
- FluxRoute,
14
- FluxRouteList,
15
- FluxUpdateParams,
16
- } from './flux/flux';
17
-
18
- export class Connect extends APIResource {
19
- flux: FluxAPI.FluxResource = new FluxAPI.FluxResource(this._client);
20
- }
21
-
22
- Connect.FluxResource = FluxResource;
23
-
24
- 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 FluxProviderAWSConfig as FluxProviderAWSConfig,
31
- type FluxProviderAWSConfigRequest as FluxProviderAWSConfigRequest,
32
- type FluxRoute as FluxRoute,
33
- type FluxRouteList as FluxRouteList,
34
- type FluxCreateParams as FluxCreateParams,
35
- type FluxUpdateParams as FluxUpdateParams,
36
- };
37
- }
@@ -1,293 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- import { APIResource } from '../../../core/resource';
4
- import * as OperationsAPI from '../../operations';
5
- import * as Shared from '../../shared';
6
- import * as RoutesAPI from './routes';
7
- import { Routes } from './routes';
8
- import { APIPromise } from '../../../core/api-promise';
9
- import { RequestOptions } from '../../../internal/request-options';
10
- import { path } from '../../../internal/utils/path';
11
-
12
- export class FluxResource extends APIResource {
13
- routes: RoutesAPI.Routes = new RoutesAPI.Routes(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
- * Tags to attach to the Connect Flux
161
- */
162
- tags: Array<string>;
163
-
164
- /**
165
- * When the Connect Flux was updated
166
- */
167
- updated_at: string;
168
- }
169
-
170
- /**
171
- * Connect Flux speed in Mbps
172
- */
173
- export type FluxBandwidthMbps = 50 | 200 | 500 | 1000 | 2000;
174
-
175
- export interface FluxList {
176
- items: Array<Flux>;
177
- }
178
-
179
- /**
180
- * AWS provider configuration
181
- */
182
- export interface FluxProviderAWSConfig {
183
- /**
184
- * AWS region where the connection is established
185
- */
186
- region: string;
187
- }
188
-
189
- /**
190
- * AWS provider configuration
191
- */
192
- export interface FluxProviderAWSConfigRequest {
193
- /**
194
- * AWS account id
195
- */
196
- account_id: string;
197
-
198
- /**
199
- * AWS region where the connection will be established
200
- */
201
- region: string;
202
- }
203
-
204
- /**
205
- * Routes supported for Connect Flux.
206
- */
207
- export interface FluxRoute {
208
- /**
209
- * Region the resource is in.
210
- */
211
- nirvana_region: Shared.RegionName;
212
-
213
- /**
214
- * Provider name.
215
- */
216
- provider: string;
217
-
218
- /**
219
- * Provider region name.
220
- */
221
- provider_region: string;
222
- }
223
-
224
- export interface FluxRouteList {
225
- items: Array<FluxRoute>;
226
- }
227
-
228
- export interface FluxCreateParams {
229
- /**
230
- * Connect Flux speed in Mbps
231
- */
232
- bandwidth_mbps: FluxBandwidthMbps;
233
-
234
- /**
235
- * CIDRs for the Connect Flux
236
- */
237
- cidrs: Array<string>;
238
-
239
- /**
240
- * Name of the Connect Flux
241
- */
242
- name: string;
243
-
244
- /**
245
- * Provider CIDRs
246
- */
247
- provider_cidrs: Array<string>;
248
-
249
- /**
250
- * Region the resource is in.
251
- */
252
- region: Shared.RegionName;
253
-
254
- /**
255
- * AWS provider configuration
256
- */
257
- aws?: FluxProviderAWSConfigRequest;
258
-
259
- /**
260
- * Tags to attach to the Connect Flux
261
- */
262
- tags?: Array<string>;
263
- }
264
-
265
- export interface FluxUpdateParams {
266
- /**
267
- * Name of the Connect Flux.
268
- */
269
- name?: string;
270
-
271
- /**
272
- * Tags to attach to the Connect Flux
273
- */
274
- tags?: Array<string>;
275
- }
276
-
277
- FluxResource.Routes = Routes;
278
-
279
- export declare namespace FluxResource {
280
- export {
281
- type Flux as Flux,
282
- type FluxBandwidthMbps as FluxBandwidthMbps,
283
- type FluxList as FluxList,
284
- type FluxProviderAWSConfig as FluxProviderAWSConfig,
285
- type FluxProviderAWSConfigRequest as FluxProviderAWSConfigRequest,
286
- type FluxRoute as FluxRoute,
287
- type FluxRouteList as FluxRouteList,
288
- type FluxCreateParams as FluxCreateParams,
289
- type FluxUpdateParams as FluxUpdateParams,
290
- };
291
-
292
- export { Routes as Routes };
293
- }
@@ -1,15 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- export {
4
- FluxResource,
5
- type Flux,
6
- type FluxBandwidthMbps,
7
- type FluxList,
8
- type FluxProviderAWSConfig,
9
- type FluxProviderAWSConfigRequest,
10
- type FluxRoute,
11
- type FluxRouteList,
12
- type FluxCreateParams,
13
- type FluxUpdateParams,
14
- } from './flux';
15
- export { Routes } from './routes';
@@ -1,3 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- export * from './flux/index';
@@ -1,15 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- export { Connect } from './connect';
4
- export {
5
- FluxResource,
6
- type Flux,
7
- type FluxBandwidthMbps,
8
- type FluxList,
9
- type FluxProviderAWSConfig,
10
- type FluxProviderAWSConfigRequest,
11
- type FluxRoute,
12
- type FluxRouteList,
13
- type FluxCreateParams,
14
- type FluxUpdateParams,
15
- } from './flux/index';