@nirvana-labs/nirvana 1.56.0 → 1.57.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 (62) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/client.d.mts +1 -0
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +1 -0
  5. package/client.d.ts.map +1 -1
  6. package/package.json +1 -1
  7. package/resources/api-keys/api-keys.d.mts +1 -16
  8. package/resources/api-keys/api-keys.d.mts.map +1 -1
  9. package/resources/api-keys/api-keys.d.ts +1 -16
  10. package/resources/api-keys/api-keys.d.ts.map +1 -1
  11. package/resources/nks/clusters/clusters.d.mts +2 -2
  12. package/resources/nks/clusters/clusters.d.mts.map +1 -1
  13. package/resources/nks/clusters/clusters.d.ts +2 -2
  14. package/resources/nks/clusters/clusters.d.ts.map +1 -1
  15. package/resources/nks/clusters/clusters.js.map +1 -1
  16. package/resources/nks/clusters/clusters.mjs.map +1 -1
  17. package/resources/nks/clusters/index.d.mts +1 -1
  18. package/resources/nks/clusters/index.d.mts.map +1 -1
  19. package/resources/nks/clusters/index.d.ts +1 -1
  20. package/resources/nks/clusters/index.d.ts.map +1 -1
  21. package/resources/nks/clusters/index.js.map +1 -1
  22. package/resources/nks/clusters/index.mjs.map +1 -1
  23. package/resources/nks/clusters/pools/index.d.mts +1 -1
  24. package/resources/nks/clusters/pools/index.d.mts.map +1 -1
  25. package/resources/nks/clusters/pools/index.d.ts +1 -1
  26. package/resources/nks/clusters/pools/index.d.ts.map +1 -1
  27. package/resources/nks/clusters/pools/index.js.map +1 -1
  28. package/resources/nks/clusters/pools/index.mjs.map +1 -1
  29. package/resources/nks/clusters/pools/pools.d.mts +19 -21
  30. package/resources/nks/clusters/pools/pools.d.mts.map +1 -1
  31. package/resources/nks/clusters/pools/pools.d.ts +19 -21
  32. package/resources/nks/clusters/pools/pools.d.ts.map +1 -1
  33. package/resources/nks/clusters/pools/pools.js.map +1 -1
  34. package/resources/nks/clusters/pools/pools.mjs.map +1 -1
  35. package/resources/projects/projects.d.mts +54 -50
  36. package/resources/projects/projects.d.mts.map +1 -1
  37. package/resources/projects/projects.d.ts +54 -50
  38. package/resources/projects/projects.d.ts.map +1 -1
  39. package/resources/shared.d.mts +14 -1
  40. package/resources/shared.d.mts.map +1 -1
  41. package/resources/shared.d.ts +14 -1
  42. package/resources/shared.d.ts.map +1 -1
  43. package/resources/user/security.d.mts +1 -16
  44. package/resources/user/security.d.mts.map +1 -1
  45. package/resources/user/security.d.ts +1 -16
  46. package/resources/user/security.d.ts.map +1 -1
  47. package/src/client.ts +1 -0
  48. package/src/resources/api-keys/api-keys.ts +1 -18
  49. package/src/resources/nks/api.md +1 -0
  50. package/src/resources/nks/clusters/clusters.ts +2 -0
  51. package/src/resources/nks/clusters/index.ts +1 -0
  52. package/src/resources/nks/clusters/pools/index.ts +1 -0
  53. package/src/resources/nks/clusters/pools/pools.ts +22 -23
  54. package/src/resources/projects/api.md +3 -0
  55. package/src/resources/projects/projects.ts +63 -54
  56. package/src/resources/shared.ts +16 -8
  57. package/src/resources/user/security.ts +1 -18
  58. package/src/version.ts +1 -1
  59. package/version.d.mts +1 -1
  60. package/version.d.ts +1 -1
  61. package/version.js +1 -1
  62. package/version.mjs +1 -1
@@ -105,7 +105,7 @@ export interface Project {
105
105
  /**
106
106
  * Resource counts for the project.
107
107
  */
108
- resources: Project.Resources;
108
+ resources: ProjectResources;
109
109
 
110
110
  /**
111
111
  * Tags attached to the Project.
@@ -118,63 +118,54 @@ export interface Project {
118
118
  updated_at: string;
119
119
  }
120
120
 
121
- export namespace Project {
121
+ /**
122
+ * Blockchain resources.
123
+ */
124
+ export interface ProjectBlockchainResources {
122
125
  /**
123
- * Resource counts for the project.
126
+ * Number of dedicated RPC nodes in the project.
124
127
  */
125
- export interface Resources {
126
- /**
127
- * Blockchain resources.
128
- */
129
- blockchain: Resources.Blockchain;
128
+ rpc_nodes_dedicated: number;
130
129
 
131
- /**
132
- * Cloud infrastructure resources.
133
- */
134
- cloud: Resources.Cloud;
135
- }
130
+ /**
131
+ * Number of flex RPC nodes in the project.
132
+ */
133
+ rpc_nodes_flex: number;
134
+ }
136
135
 
137
- export namespace Resources {
138
- /**
139
- * Blockchain resources.
140
- */
141
- export interface Blockchain {
142
- /**
143
- * Number of dedicated RPC nodes in the project.
144
- */
145
- rpc_nodes_dedicated: number;
146
-
147
- /**
148
- * Number of flex RPC nodes in the project.
149
- */
150
- rpc_nodes_flex: number;
151
- }
152
-
153
- /**
154
- * Cloud infrastructure resources.
155
- */
156
- export interface Cloud {
157
- /**
158
- * Number of Connect connections in the project.
159
- */
160
- connect_connections: number;
161
-
162
- /**
163
- * Number of VMs in the project.
164
- */
165
- vms: number;
166
-
167
- /**
168
- * Number of volumes in the project.
169
- */
170
- volumes: number;
171
-
172
- /**
173
- * Number of VPCs in the project.
174
- */
175
- vpcs: number;
176
- }
177
- }
136
+ /**
137
+ * Cloud infrastructure resources.
138
+ */
139
+ export interface ProjectCloudResources {
140
+ /**
141
+ * Number of Connect connections in the project.
142
+ */
143
+ connect_connections: number;
144
+
145
+ /**
146
+ * Number of NKS clusters in the project.
147
+ */
148
+ nks_clusters: number;
149
+
150
+ /**
151
+ * Number of NKS node pools in the project.
152
+ */
153
+ nks_node_pools: number;
154
+
155
+ /**
156
+ * Number of VMs in the project.
157
+ */
158
+ vms: number;
159
+
160
+ /**
161
+ * Number of volumes in the project.
162
+ */
163
+ volumes: number;
164
+
165
+ /**
166
+ * Number of VPCs in the project.
167
+ */
168
+ vpcs: number;
178
169
  }
179
170
 
180
171
  export interface ProjectList {
@@ -186,6 +177,21 @@ export interface ProjectList {
186
177
  pagination: Shared.Pagination;
187
178
  }
188
179
 
180
+ /**
181
+ * Resource counts for the project.
182
+ */
183
+ export interface ProjectResources {
184
+ /**
185
+ * Blockchain resources.
186
+ */
187
+ blockchain: ProjectBlockchainResources;
188
+
189
+ /**
190
+ * Cloud infrastructure resources.
191
+ */
192
+ cloud: ProjectCloudResources;
193
+ }
194
+
189
195
  export interface ProjectCreateParams {
190
196
  /**
191
197
  * Project name.
@@ -215,7 +221,10 @@ export interface ProjectListParams extends CursorParams {}
215
221
  export declare namespace Projects {
216
222
  export {
217
223
  type Project as Project,
224
+ type ProjectBlockchainResources as ProjectBlockchainResources,
225
+ type ProjectCloudResources as ProjectCloudResources,
218
226
  type ProjectList as ProjectList,
227
+ type ProjectResources as ProjectResources,
219
228
  type ProjectsCursor as ProjectsCursor,
220
229
  type ProjectCreateParams as ProjectCreateParams,
221
230
  type ProjectUpdateParams as ProjectUpdateParams,
@@ -14,14 +14,7 @@ export interface Pagination {
14
14
  /**
15
15
  * Region the resource is in.
16
16
  */
17
- export type RegionName =
18
- | 'us-sea-1'
19
- | 'us-sva-1'
20
- | 'us-sva-2'
21
- | 'us-chi-1'
22
- | 'us-wdc-1'
23
- | 'eu-frk-1'
24
- | 'ap-sin-1';
17
+ export type RegionName = 'us-sea-1' | 'us-sva-1' | 'us-sva-2' | 'us-chi-1' | 'us-wdc-1';
25
18
 
26
19
  /**
27
20
  * Status of the resource.
@@ -42,3 +35,18 @@ export interface SourceIPRule {
42
35
  */
43
36
  blocked?: Array<string>;
44
37
  }
38
+
39
+ /**
40
+ * IP filter rules.
41
+ */
42
+ export interface SourceIPRuleResponse {
43
+ /**
44
+ * List of IPv4 CIDR addresses to allow.
45
+ */
46
+ allowed: Array<string>;
47
+
48
+ /**
49
+ * List of IPv4 CIDR addresses to deny.
50
+ */
51
+ blocked: Array<string>;
52
+ }
@@ -28,7 +28,7 @@ export interface UserSecurity {
28
28
  /**
29
29
  * IP filter rules.
30
30
  */
31
- source_ip_rule: UserSecurity.SourceIPRule;
31
+ source_ip_rule: Shared.SourceIPRuleResponse;
32
32
 
33
33
  /**
34
34
  * When the user security settings were created.
@@ -41,23 +41,6 @@ export interface UserSecurity {
41
41
  updated_at?: string;
42
42
  }
43
43
 
44
- export namespace UserSecurity {
45
- /**
46
- * IP filter rules.
47
- */
48
- export interface SourceIPRule {
49
- /**
50
- * List of IPv4 CIDR addresses to allow.
51
- */
52
- allowed: Array<string>;
53
-
54
- /**
55
- * List of IPv4 CIDR addresses to deny.
56
- */
57
- blocked: Array<string>;
58
- }
59
- }
60
-
61
44
  export interface SecurityUpdateParams {
62
45
  /**
63
46
  * IP filter rules.
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '1.56.0'; // x-release-please-version
1
+ export const VERSION = '1.57.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.56.0";
1
+ export declare const VERSION = "1.57.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.56.0";
1
+ export declare const VERSION = "1.57.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '1.56.0'; // x-release-please-version
4
+ exports.VERSION = '1.57.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '1.56.0'; // x-release-please-version
1
+ export const VERSION = '1.57.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map