@nirvana-labs/nirvana 1.17.3 → 1.18.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 (164) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/bin/cli +4 -10
  3. package/client.d.mts +1 -1
  4. package/client.d.ts +1 -1
  5. package/client.js +3 -3
  6. package/client.js.map +1 -1
  7. package/client.mjs +3 -3
  8. package/client.mjs.map +1 -1
  9. package/package.json +1 -1
  10. package/resources/api-keys.d.mts +25 -13
  11. package/resources/api-keys.d.mts.map +1 -1
  12. package/resources/api-keys.d.ts +25 -13
  13. package/resources/api-keys.d.ts.map +1 -1
  14. package/resources/compute/vms/availability.d.mts +3 -3
  15. package/resources/compute/vms/availability.d.ts +3 -3
  16. package/resources/compute/vms/vms.d.mts +3 -3
  17. package/resources/compute/vms/vms.d.ts +3 -3
  18. package/resources/compute/volumes/availability.d.mts +5 -5
  19. package/resources/compute/volumes/availability.d.ts +5 -5
  20. package/resources/compute/volumes/volumes.d.mts +14 -14
  21. package/resources/compute/volumes/volumes.d.ts +14 -14
  22. package/resources/connect/connect.d.mts +4 -4
  23. package/resources/connect/connect.d.mts.map +1 -1
  24. package/resources/connect/connect.d.ts +4 -4
  25. package/resources/connect/connect.d.ts.map +1 -1
  26. package/resources/connect/connect.js +4 -4
  27. package/resources/connect/connect.js.map +1 -1
  28. package/resources/connect/connect.mjs +4 -4
  29. package/resources/connect/connect.mjs.map +1 -1
  30. package/resources/connect/flux/flux.d.mts +204 -0
  31. package/resources/connect/flux/flux.d.mts.map +1 -0
  32. package/resources/connect/flux/flux.d.ts +204 -0
  33. package/resources/connect/flux/flux.d.ts.map +1 -0
  34. package/resources/connect/flux/flux.js +83 -0
  35. package/resources/connect/flux/flux.js.map +1 -0
  36. package/resources/connect/flux/flux.mjs +78 -0
  37. package/resources/connect/flux/flux.mjs.map +1 -0
  38. package/resources/connect/flux/index.d.mts +3 -0
  39. package/resources/connect/flux/index.d.mts.map +1 -0
  40. package/resources/connect/flux/index.d.ts +3 -0
  41. package/resources/connect/flux/index.d.ts.map +1 -0
  42. package/resources/connect/flux/index.js +9 -0
  43. package/resources/connect/flux/index.js.map +1 -0
  44. package/resources/connect/flux/index.mjs +4 -0
  45. package/resources/connect/flux/index.mjs.map +1 -0
  46. package/resources/connect/flux/providers.d.mts +17 -0
  47. package/resources/connect/flux/providers.d.mts.map +1 -0
  48. package/resources/connect/flux/providers.d.ts +17 -0
  49. package/resources/connect/flux/providers.d.ts.map +1 -0
  50. package/resources/connect/flux/providers.js +21 -0
  51. package/resources/connect/flux/providers.js.map +1 -0
  52. package/resources/connect/flux/providers.mjs +17 -0
  53. package/resources/connect/flux/providers.mjs.map +1 -0
  54. package/resources/connect/flux.d.mts +1 -69
  55. package/resources/connect/flux.d.mts.map +1 -1
  56. package/resources/connect/flux.d.ts +1 -69
  57. package/resources/connect/flux.d.ts.map +1 -1
  58. package/resources/connect/flux.js +2 -18
  59. package/resources/connect/flux.js.map +1 -1
  60. package/resources/connect/flux.mjs +1 -16
  61. package/resources/connect/flux.mjs.map +1 -1
  62. package/resources/connect/index.d.mts +1 -1
  63. package/resources/connect/index.d.mts.map +1 -1
  64. package/resources/connect/index.d.ts +1 -1
  65. package/resources/connect/index.d.ts.map +1 -1
  66. package/resources/connect/index.js +3 -3
  67. package/resources/connect/index.js.map +1 -1
  68. package/resources/connect/index.mjs +1 -1
  69. package/resources/connect/index.mjs.map +1 -1
  70. package/resources/networking/firewall-rules.d.mts +19 -19
  71. package/resources/networking/firewall-rules.d.ts +19 -19
  72. package/resources/networking/vpcs/vpcs.d.mts +5 -5
  73. package/resources/networking/vpcs/vpcs.d.ts +5 -5
  74. package/resources/operations.d.mts +10 -10
  75. package/resources/operations.d.ts +10 -10
  76. package/resources/rpc-nodes/dedicated/blockchains.d.mts +1 -1
  77. package/resources/rpc-nodes/dedicated/blockchains.d.mts.map +1 -1
  78. package/resources/rpc-nodes/dedicated/blockchains.d.ts +1 -1
  79. package/resources/rpc-nodes/dedicated/blockchains.d.ts.map +1 -1
  80. package/resources/rpc-nodes/dedicated/dedicated.d.mts +12 -12
  81. package/resources/rpc-nodes/dedicated/dedicated.d.mts.map +1 -1
  82. package/resources/rpc-nodes/dedicated/dedicated.d.ts +12 -12
  83. package/resources/rpc-nodes/dedicated/dedicated.d.ts.map +1 -1
  84. package/resources/rpc-nodes/dedicated/dedicated.js +4 -4
  85. package/resources/rpc-nodes/dedicated/dedicated.js.map +1 -1
  86. package/resources/rpc-nodes/dedicated/dedicated.mjs +2 -2
  87. package/resources/rpc-nodes/dedicated/dedicated.mjs.map +1 -1
  88. package/resources/rpc-nodes/dedicated/index.d.mts +1 -1
  89. package/resources/rpc-nodes/dedicated/index.d.mts.map +1 -1
  90. package/resources/rpc-nodes/dedicated/index.d.ts +1 -1
  91. package/resources/rpc-nodes/dedicated/index.d.ts.map +1 -1
  92. package/resources/rpc-nodes/dedicated/index.js +2 -2
  93. package/resources/rpc-nodes/dedicated/index.js.map +1 -1
  94. package/resources/rpc-nodes/dedicated/index.mjs +1 -1
  95. package/resources/rpc-nodes/dedicated/index.mjs.map +1 -1
  96. package/resources/rpc-nodes/flex/blockchains.d.mts +1 -1
  97. package/resources/rpc-nodes/flex/blockchains.d.mts.map +1 -1
  98. package/resources/rpc-nodes/flex/blockchains.d.ts +1 -1
  99. package/resources/rpc-nodes/flex/blockchains.d.ts.map +1 -1
  100. package/resources/rpc-nodes/flex/flex.d.mts +12 -12
  101. package/resources/rpc-nodes/flex/flex.d.mts.map +1 -1
  102. package/resources/rpc-nodes/flex/flex.d.ts +12 -12
  103. package/resources/rpc-nodes/flex/flex.d.ts.map +1 -1
  104. package/resources/rpc-nodes/flex/flex.js +4 -4
  105. package/resources/rpc-nodes/flex/flex.js.map +1 -1
  106. package/resources/rpc-nodes/flex/flex.mjs +2 -2
  107. package/resources/rpc-nodes/flex/flex.mjs.map +1 -1
  108. package/resources/rpc-nodes/flex/index.d.mts +1 -1
  109. package/resources/rpc-nodes/flex/index.d.mts.map +1 -1
  110. package/resources/rpc-nodes/flex/index.d.ts +1 -1
  111. package/resources/rpc-nodes/flex/index.d.ts.map +1 -1
  112. package/resources/rpc-nodes/flex/index.js +2 -2
  113. package/resources/rpc-nodes/flex/index.js.map +1 -1
  114. package/resources/rpc-nodes/flex/index.mjs +1 -1
  115. package/resources/rpc-nodes/flex/index.mjs.map +1 -1
  116. package/resources/rpc-nodes/index.d.mts +2 -2
  117. package/resources/rpc-nodes/index.d.mts.map +1 -1
  118. package/resources/rpc-nodes/index.d.ts +2 -2
  119. package/resources/rpc-nodes/index.d.ts.map +1 -1
  120. package/resources/rpc-nodes/index.js +3 -3
  121. package/resources/rpc-nodes/index.js.map +1 -1
  122. package/resources/rpc-nodes/index.mjs +2 -2
  123. package/resources/rpc-nodes/index.mjs.map +1 -1
  124. package/resources/rpc-nodes/rpc-nodes.d.mts +6 -6
  125. package/resources/rpc-nodes/rpc-nodes.d.mts.map +1 -1
  126. package/resources/rpc-nodes/rpc-nodes.d.ts +6 -6
  127. package/resources/rpc-nodes/rpc-nodes.d.ts.map +1 -1
  128. package/resources/rpc-nodes/rpc-nodes.js +4 -4
  129. package/resources/rpc-nodes/rpc-nodes.js.map +1 -1
  130. package/resources/rpc-nodes/rpc-nodes.mjs +6 -6
  131. package/resources/rpc-nodes/rpc-nodes.mjs.map +1 -1
  132. package/resources/user.d.mts +6 -3
  133. package/resources/user.d.mts.map +1 -1
  134. package/resources/user.d.ts +6 -3
  135. package/resources/user.d.ts.map +1 -1
  136. package/src/client.ts +3 -3
  137. package/src/resources/api-keys.ts +28 -13
  138. package/src/resources/compute/vms/availability.ts +3 -3
  139. package/src/resources/compute/vms/vms.ts +3 -3
  140. package/src/resources/compute/volumes/availability.ts +5 -5
  141. package/src/resources/compute/volumes/volumes.ts +14 -14
  142. package/src/resources/connect/connect.ts +25 -5
  143. package/src/resources/connect/flux/flux.ts +267 -0
  144. package/src/resources/connect/flux/index.ts +14 -0
  145. package/src/resources/connect/flux/providers.ts +21 -0
  146. package/src/resources/connect/flux.ts +1 -89
  147. package/src/resources/connect/index.ts +11 -1
  148. package/src/resources/networking/firewall-rules.ts +19 -19
  149. package/src/resources/networking/vpcs/vpcs.ts +5 -5
  150. package/src/resources/operations.ts +10 -10
  151. package/src/resources/rpc-nodes/dedicated/blockchains.ts +1 -1
  152. package/src/resources/rpc-nodes/dedicated/dedicated.ts +16 -16
  153. package/src/resources/rpc-nodes/dedicated/index.ts +5 -5
  154. package/src/resources/rpc-nodes/flex/blockchains.ts +1 -1
  155. package/src/resources/rpc-nodes/flex/flex.ts +16 -16
  156. package/src/resources/rpc-nodes/flex/index.ts +1 -7
  157. package/src/resources/rpc-nodes/index.ts +10 -10
  158. package/src/resources/rpc-nodes/rpc-nodes.ts +19 -25
  159. package/src/resources/user.ts +6 -3
  160. package/src/version.ts +1 -1
  161. package/version.d.mts +1 -1
  162. package/version.d.ts +1 -1
  163. package/version.js +1 -1
  164. package/version.mjs +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"rpc-nodes.d.ts","sourceRoot":"","sources":["../../src/resources/rpc-nodes/rpc-nodes.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,EACL,SAAS,EACT,iBAAiB,EACjB,2BAA2B,EAC3B,+BAA+B,EAC/B,qBAAqB,EACtB;OACM,KAAK,OAAO;OACZ,EACL,IAAI,EACJ,YAAY,EACZ,sBAAsB,EACtB,0BAA0B,EAC1B,gBAAgB,EACjB;AAED,qBAAa,QAAS,SAAQ,WAAW;IACvC,IAAI,EAAE,OAAO,CAAC,IAAI,CAAkC;IACpD,SAAS,EAAE,YAAY,CAAC,SAAS,CAA4C;CAC9E;AAKD,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,IAAI,IAAI,IAAI,EACZ,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;IAEF,OAAO,EACL,SAAS,IAAI,SAAS,EACtB,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"}
1
+ {"version":3,"file":"rpc-nodes.d.ts","sourceRoot":"","sources":["../../src/resources/rpc-nodes/rpc-nodes.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,EACL,SAAS,EACT,mBAAmB,EACnB,uBAAuB,EACvB,aAAa,EACb,iBAAiB,EAClB;OACM,KAAK,OAAO;OACZ,EAAE,IAAI,EAAE,cAAc,EAAE,kBAAkB,EAAE,QAAQ,EAAE,YAAY,EAAE;AAE3E,qBAAa,QAAS,SAAQ,WAAW;IACvC,IAAI,EAAE,OAAO,CAAC,YAAY,CAA0C;IACpE,SAAS,EAAE,YAAY,CAAC,iBAAiB,CAAoD;CAC9F;AAKD,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,YAAY,IAAI,YAAY,EAC5B,KAAK,IAAI,IAAI,IAAI,EACjB,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,QAAQ,IAAI,QAAQ,GAC1B,CAAC;IAEF,OAAO,EACL,iBAAiB,IAAI,iBAAiB,EACtC,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,aAAa,IAAI,aAAa,GACpC,CAAC;CACH"}
@@ -11,11 +11,11 @@ const flex_1 = require("./flex/flex.js");
11
11
  class RPCNodes extends resource_1.APIResource {
12
12
  constructor() {
13
13
  super(...arguments);
14
- this.flex = new FlexAPI.Flex(this._client);
15
- this.dedicated = new DedicatedAPI.Dedicated(this._client);
14
+ this.flex = new FlexAPI.FlexResource(this._client);
15
+ this.dedicated = new DedicatedAPI.DedicatedResource(this._client);
16
16
  }
17
17
  }
18
18
  exports.RPCNodes = RPCNodes;
19
- RPCNodes.Flex = flex_1.Flex;
20
- RPCNodes.Dedicated = dedicated_1.Dedicated;
19
+ RPCNodes.FlexResource = flex_1.FlexResource;
20
+ RPCNodes.DedicatedResource = dedicated_1.DedicatedResource;
21
21
  //# sourceMappingURL=rpc-nodes.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"rpc-nodes.js","sourceRoot":"","sources":["../../src/resources/rpc-nodes/rpc-nodes.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,+EAAsD;AACtD,wDAM+B;AAC/B,gEAAuC;AACvC,yCAMqB;AAErB,MAAa,QAAS,SAAQ,sBAAW;IAAzC;;QACE,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACpD,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC/E,CAAC;CAAA;AAHD,4BAGC;AAED,QAAQ,CAAC,IAAI,GAAG,WAAI,CAAC;AACrB,QAAQ,CAAC,SAAS,GAAG,qBAAS,CAAC"}
1
+ {"version":3,"file":"rpc-nodes.js","sourceRoot":"","sources":["../../src/resources/rpc-nodes/rpc-nodes.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,+EAAsD;AACtD,wDAM+B;AAC/B,gEAAuC;AACvC,yCAA+F;AAE/F,MAAa,QAAS,SAAQ,sBAAW;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;AAHD,4BAGC;AAED,QAAQ,CAAC,YAAY,GAAG,mBAAY,CAAC;AACrC,QAAQ,CAAC,iBAAiB,GAAG,6BAAiB,CAAC"}
@@ -1,16 +1,16 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
  import { APIResource } from "../../core/resource.mjs";
3
3
  import * as DedicatedAPI from "./dedicated/dedicated.mjs";
4
- import { Dedicated, } from "./dedicated/dedicated.mjs";
4
+ import { DedicatedResource, } from "./dedicated/dedicated.mjs";
5
5
  import * as FlexAPI from "./flex/flex.mjs";
6
- import { Flex, } 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);
10
- this.flex = new FlexAPI.Flex(this._client);
11
- this.dedicated = new DedicatedAPI.Dedicated(this._client);
10
+ this.flex = new FlexAPI.FlexResource(this._client);
11
+ this.dedicated = new DedicatedAPI.DedicatedResource(this._client);
12
12
  }
13
13
  }
14
- RPCNodes.Flex = Flex;
15
- RPCNodes.Dedicated = Dedicated;
14
+ RPCNodes.FlexResource = FlexResource;
15
+ RPCNodes.DedicatedResource = DedicatedResource;
16
16
  //# sourceMappingURL=rpc-nodes.mjs.map
@@ -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,EACL,SAAS,GAKV;OACM,KAAK,OAAO;OACZ,EACL,IAAI,GAKL;AAED,MAAM,OAAO,QAAS,SAAQ,WAAW;IAAzC;;QACE,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACpD,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC/E,CAAC;CAAA;AAED,QAAQ,CAAC,IAAI,GAAG,IAAI,CAAC;AACrB,QAAQ,CAAC,SAAS,GAAG,SAAS,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,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"}
@@ -7,9 +7,12 @@ export declare class UserResource extends APIResource {
7
7
  */
8
8
  get(options?: RequestOptions): APIPromise<User>;
9
9
  }
10
+ /**
11
+ * User details.
12
+ */
10
13
  export interface User {
11
14
  /**
12
- * Unique identifier for the user.
15
+ * Unique identifier for the User.
13
16
  */
14
17
  id: string;
15
18
  /**
@@ -17,13 +20,13 @@ export interface User {
17
20
  */
18
21
  email: string;
19
22
  /**
20
- * Services that the user has access to.
23
+ * Services that the User has access to.
21
24
  */
22
25
  services: User.Services;
23
26
  }
24
27
  export declare namespace User {
25
28
  /**
26
- * Services that the user has access to.
29
+ * Services that the User has access to.
27
30
  */
28
31
  interface Services {
29
32
  cloud?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"user.d.mts","sourceRoot":"","sources":["../src/resources/user.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,GAAG,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAGhD;AAED,MAAM,WAAW,IAAI;IACnB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;CACzB;AAED,yBAAiB,IAAI,CAAC;IACpB;;OAEG;IACH,UAAiB,QAAQ;QACvB,KAAK,CAAC,EAAE,OAAO,CAAC;KACjB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EAAE,KAAK,IAAI,IAAI,IAAI,EAAE,CAAC;CAC9B"}
1
+ {"version":3,"file":"user.d.mts","sourceRoot":"","sources":["../src/resources/user.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,GAAG,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAGhD;AAED;;GAEG;AACH,MAAM,WAAW,IAAI;IACnB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;CACzB;AAED,yBAAiB,IAAI,CAAC;IACpB;;OAEG;IACH,UAAiB,QAAQ;QACvB,KAAK,CAAC,EAAE,OAAO,CAAC;KACjB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EAAE,KAAK,IAAI,IAAI,IAAI,EAAE,CAAC;CAC9B"}
@@ -7,9 +7,12 @@ export declare class UserResource extends APIResource {
7
7
  */
8
8
  get(options?: RequestOptions): APIPromise<User>;
9
9
  }
10
+ /**
11
+ * User details.
12
+ */
10
13
  export interface User {
11
14
  /**
12
- * Unique identifier for the user.
15
+ * Unique identifier for the User.
13
16
  */
14
17
  id: string;
15
18
  /**
@@ -17,13 +20,13 @@ export interface User {
17
20
  */
18
21
  email: string;
19
22
  /**
20
- * Services that the user has access to.
23
+ * Services that the User has access to.
21
24
  */
22
25
  services: User.Services;
23
26
  }
24
27
  export declare namespace User {
25
28
  /**
26
- * Services that the user has access to.
29
+ * Services that the User has access to.
27
30
  */
28
31
  interface Services {
29
32
  cloud?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../src/resources/user.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,GAAG,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAGhD;AAED,MAAM,WAAW,IAAI;IACnB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;CACzB;AAED,yBAAiB,IAAI,CAAC;IACpB;;OAEG;IACH,UAAiB,QAAQ;QACvB,KAAK,CAAC,EAAE,OAAO,CAAC;KACjB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EAAE,KAAK,IAAI,IAAI,IAAI,EAAE,CAAC;CAC9B"}
1
+ {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../src/resources/user.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,GAAG,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAGhD;AAED;;GAEG;AACH,MAAM,WAAW,IAAI;IACnB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;CACzB;AAED,yBAAiB,IAAI,CAAC;IACpB;;OAEG;IACH,UAAiB,QAAQ;QACvB,KAAK,CAAC,EAAE,OAAO,CAAC;KACjB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EAAE,KAAK,IAAI,IAAI,IAAI,EAAE,CAAC;CAC9B"}
package/src/client.ts CHANGED
@@ -134,7 +134,7 @@ export class NirvanaLabs {
134
134
  * API Client for interfacing with the Nirvana Labs API.
135
135
  *
136
136
  * @param {string | undefined} [opts.apiKey=process.env['NIRVANA_LABS_API_KEY'] ?? undefined]
137
- * @param {string} [opts.baseURL=process.env['NIRVANA_LABS_BASE_URL'] ?? https://api.nirvanalabs.io/] - Override the default base URL for the API.
137
+ * @param {string} [opts.baseURL=process.env['NIRVANA_LABS_BASE_URL'] ?? https://api.nirvanalabs.io] - Override the default base URL for the API.
138
138
  * @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
139
139
  * @param {MergedRequestInit} [opts.fetchOptions] - Additional `RequestInit` options to be passed to `fetch` calls.
140
140
  * @param {Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
@@ -156,7 +156,7 @@ export class NirvanaLabs {
156
156
  const options: ClientOptions = {
157
157
  apiKey,
158
158
  ...opts,
159
- baseURL: baseURL || `https://api.nirvanalabs.io/`,
159
+ baseURL: baseURL || `https://api.nirvanalabs.io`,
160
160
  };
161
161
 
162
162
  this.baseURL = options.baseURL!;
@@ -202,7 +202,7 @@ export class NirvanaLabs {
202
202
  * Check whether the base URL is set to its default.
203
203
  */
204
204
  #baseURLOverridden(): boolean {
205
- return this.baseURL !== 'https://api.nirvanalabs.io/';
205
+ return this.baseURL !== 'https://api.nirvanalabs.io';
206
206
  }
207
207
 
208
208
  protected defaultQuery(): Record<string, string | undefined> | undefined {
@@ -75,46 +75,51 @@ export class APIKeys extends APIResource {
75
75
  }
76
76
 
77
77
  /**
78
- * API key response.
78
+ * API Key response.
79
79
  */
80
80
  export interface APIKey {
81
81
  /**
82
- * API key ID.
82
+ * API Key ID.
83
83
  */
84
84
  id: string;
85
85
 
86
86
  /**
87
- * When the API key was created.
87
+ * When the API Key was created.
88
88
  */
89
89
  created_at: string;
90
90
 
91
91
  /**
92
- * When the API key expires and is no longer valid.
92
+ * When the API Key expires and is no longer valid.
93
93
  */
94
94
  expires_at: string;
95
95
 
96
96
  /**
97
- * API key name.
97
+ * API Key name.
98
98
  */
99
99
  name: string;
100
100
 
101
101
  /**
102
- * Status of the API key.
102
+ * Status of the API Key.
103
103
  */
104
104
  status: 'active' | 'inactive' | 'expired';
105
105
 
106
106
  /**
107
- * When the API key was updated.
107
+ * Tags to attach to the API Key.
108
+ */
109
+ tags: Array<string>;
110
+
111
+ /**
112
+ * When the API Key was updated.
108
113
  */
109
114
  updated_at: string;
110
115
 
111
116
  /**
112
- * API key. Only returned on creation.
117
+ * API Key. Only returned on creation.
113
118
  */
114
119
  key?: string;
115
120
 
116
121
  /**
117
- * When the API key starts to be valid.
122
+ * When the API Key starts to be valid.
118
123
  */
119
124
  starts_at?: string;
120
125
  }
@@ -125,26 +130,36 @@ export interface APIKeyList {
125
130
 
126
131
  export interface APIKeyCreateParams {
127
132
  /**
128
- * When the API key expires and is no longer valid.
133
+ * When the API Key expires and is no longer valid.
129
134
  */
130
135
  expires_at: string;
131
136
 
132
137
  /**
133
- * API key name.
138
+ * API Key name.
134
139
  */
135
140
  name: string;
136
141
 
137
142
  /**
138
- * When the API key starts to be valid.
143
+ * When the API Key starts to be valid.
139
144
  */
140
145
  starts_at?: string;
146
+
147
+ /**
148
+ * Tags to attach to the API Key.
149
+ */
150
+ tags?: Array<string>;
141
151
  }
142
152
 
143
153
  export interface APIKeyUpdateParams {
144
154
  /**
145
- * API key name.
155
+ * API Key name.
146
156
  */
147
157
  name?: string;
158
+
159
+ /**
160
+ * Tags to attach to the API Key.
161
+ */
162
+ tags?: Array<string>;
148
163
  }
149
164
 
150
165
  export declare namespace APIKeys {
@@ -119,7 +119,7 @@ export namespace AvailabilityCreateParams {
119
119
  */
120
120
  export interface BootVolume {
121
121
  /**
122
- * Size of the volume in GB.
122
+ * Size of the Volume in GB.
123
123
  */
124
124
  size: number;
125
125
  }
@@ -129,12 +129,12 @@ export namespace AvailabilityCreateParams {
129
129
  */
130
130
  export interface DataVolume {
131
131
  /**
132
- * Name of the volume.
132
+ * Name of the Volume.
133
133
  */
134
134
  name: string;
135
135
 
136
136
  /**
137
- * Size of the volume in GB.
137
+ * Size of the Volume in GB.
138
138
  */
139
139
  size: number;
140
140
  }
@@ -327,7 +327,7 @@ export namespace VMCreateParams {
327
327
  */
328
328
  export interface BootVolume {
329
329
  /**
330
- * Size of the volume in GB.
330
+ * Size of the Volume in GB.
331
331
  */
332
332
  size: number;
333
333
  }
@@ -337,12 +337,12 @@ export namespace VMCreateParams {
337
337
  */
338
338
  export interface DataVolume {
339
339
  /**
340
- * Name of the volume.
340
+ * Name of the Volume.
341
341
  */
342
342
  name: string;
343
343
 
344
344
  /**
345
- * Size of the volume in GB.
345
+ * Size of the Volume in GB.
346
346
  */
347
347
  size: number;
348
348
  }
@@ -54,29 +54,29 @@ export type AvailabilityUpdateResponse = string;
54
54
 
55
55
  export interface AvailabilityCreateParams {
56
56
  /**
57
- * Name of the volume.
57
+ * Name of the Volume.
58
58
  */
59
59
  name: string;
60
60
 
61
61
  /**
62
- * Size of the volume in GB.
62
+ * Size of the Volume in GB.
63
63
  */
64
64
  size: number;
65
65
 
66
66
  /**
67
- * ID of the VM the volume is attached to.
67
+ * ID of the VM the Volume is attached to.
68
68
  */
69
69
  vm_id: string;
70
70
  }
71
71
 
72
72
  export interface AvailabilityUpdateParams {
73
73
  /**
74
- * Name of the volume.
74
+ * Name of the Volume.
75
75
  */
76
76
  name?: string;
77
77
 
78
78
  /**
79
- * Size of the volume in GB.
79
+ * Size of the Volume in GB.
80
80
  */
81
81
  size?: number;
82
82
  }
@@ -94,7 +94,7 @@ export class Volumes extends APIResource {
94
94
  }
95
95
 
96
96
  /**
97
- * Storage type the volume is using.
97
+ * Storage type the Volume is using.
98
98
  */
99
99
  export type StorageType = 'nvme';
100
100
 
@@ -103,12 +103,12 @@ export type StorageType = 'nvme';
103
103
  */
104
104
  export interface Volume {
105
105
  /**
106
- * Unique identifier for the volume.
106
+ * Unique identifier for the Volume.
107
107
  */
108
108
  id: string;
109
109
 
110
110
  /**
111
- * When the volume was created.
111
+ * When the Volume was created.
112
112
  */
113
113
  created_at: string;
114
114
 
@@ -118,12 +118,12 @@ export interface Volume {
118
118
  kind: VolumeKind;
119
119
 
120
120
  /**
121
- * Name of the volume.
121
+ * Name of the Volume.
122
122
  */
123
123
  name: string;
124
124
 
125
125
  /**
126
- * Size of the volume in GB.
126
+ * Size of the Volume in GB.
127
127
  */
128
128
  size: number;
129
129
 
@@ -133,22 +133,22 @@ export interface Volume {
133
133
  status: Shared.ResourceStatus;
134
134
 
135
135
  /**
136
- * Storage type the volume is using.
136
+ * Storage type the Volume is using.
137
137
  */
138
138
  type: StorageType;
139
139
 
140
140
  /**
141
- * When the volume was updated.
141
+ * When the Volume was updated.
142
142
  */
143
143
  updated_at: string;
144
144
 
145
145
  /**
146
- * ID of the VM the volume is attached to.
146
+ * ID of the VM the Volume is attached to.
147
147
  */
148
148
  vm_id: string | null;
149
149
 
150
150
  /**
151
- * Name of the VM the volume is attached to.
151
+ * Name of the VM the Volume is attached to.
152
152
  */
153
153
  vm_name: string | null;
154
154
  }
@@ -164,29 +164,29 @@ export interface VolumeList {
164
164
 
165
165
  export interface VolumeCreateParams {
166
166
  /**
167
- * Name of the volume.
167
+ * Name of the Volume.
168
168
  */
169
169
  name: string;
170
170
 
171
171
  /**
172
- * Size of the volume in GB.
172
+ * Size of the Volume in GB.
173
173
  */
174
174
  size: number;
175
175
 
176
176
  /**
177
- * ID of the VM the volume is attached to.
177
+ * ID of the VM the Volume is attached to.
178
178
  */
179
179
  vm_id: string;
180
180
  }
181
181
 
182
182
  export interface VolumeUpdateParams {
183
183
  /**
184
- * Name of the volume.
184
+ * Name of the Volume.
185
185
  */
186
186
  name?: string;
187
187
 
188
188
  /**
189
- * Size of the volume in GB.
189
+ * Size of the Volume in GB.
190
190
  */
191
191
  size?: number;
192
192
  }
@@ -1,15 +1,35 @@
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 FluxAPI from './flux';
5
- import { ConnectFlux, ConnectFluxList, Flux } from './flux';
4
+ import * as FluxAPI from './flux/flux';
5
+ import {
6
+ Flux,
7
+ FluxCreateParams,
8
+ FluxList,
9
+ FluxProvider,
10
+ FluxProviderAWSConfig,
11
+ FluxProviderAWSConfigRequest,
12
+ FluxProviderList,
13
+ FluxResource,
14
+ FluxUpdateParams,
15
+ } from './flux/flux';
6
16
 
7
17
  export class Connect extends APIResource {
8
- flux: FluxAPI.Flux = new FluxAPI.Flux(this._client);
18
+ flux: FluxAPI.FluxResource = new FluxAPI.FluxResource(this._client);
9
19
  }
10
20
 
11
- Connect.Flux = Flux;
21
+ Connect.FluxResource = FluxResource;
12
22
 
13
23
  export declare namespace Connect {
14
- export { Flux as Flux, type ConnectFlux as ConnectFlux, type ConnectFluxList as ConnectFluxList };
24
+ export {
25
+ FluxResource as FluxResource,
26
+ type Flux as Flux,
27
+ type FluxList as FluxList,
28
+ type FluxProvider as FluxProvider,
29
+ type FluxProviderAWSConfig as FluxProviderAWSConfig,
30
+ type FluxProviderAWSConfigRequest as FluxProviderAWSConfigRequest,
31
+ type FluxProviderList as FluxProviderList,
32
+ type FluxCreateParams as FluxCreateParams,
33
+ type FluxUpdateParams as FluxUpdateParams,
34
+ };
15
35
  }