@nirvana-labs/nirvana 1.98.3 → 1.98.4

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 (71) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/package.json +1 -1
  3. package/resources/api-keys/api-keys.d.mts +18 -0
  4. package/resources/api-keys/api-keys.d.mts.map +1 -1
  5. package/resources/api-keys/api-keys.d.ts +18 -0
  6. package/resources/api-keys/api-keys.d.ts.map +1 -1
  7. package/resources/audit-logs/audit-logs.d.mts +53 -0
  8. package/resources/audit-logs/audit-logs.d.mts.map +1 -1
  9. package/resources/audit-logs/audit-logs.d.ts +53 -0
  10. package/resources/audit-logs/audit-logs.d.ts.map +1 -1
  11. package/resources/compute/vms/metrics.d.mts +1 -1
  12. package/resources/compute/vms/metrics.d.mts.map +1 -1
  13. package/resources/compute/vms/metrics.d.ts +1 -1
  14. package/resources/compute/vms/metrics.d.ts.map +1 -1
  15. package/resources/operations/operations.d.mts +29 -0
  16. package/resources/operations/operations.d.mts.map +1 -1
  17. package/resources/operations/operations.d.ts +29 -0
  18. package/resources/operations/operations.d.ts.map +1 -1
  19. package/resources/organizations/billing/billing.d.mts +27 -1
  20. package/resources/organizations/billing/billing.d.mts.map +1 -1
  21. package/resources/organizations/billing/billing.d.ts +27 -1
  22. package/resources/organizations/billing/billing.d.ts.map +1 -1
  23. package/resources/organizations/billing/billing.js.map +1 -1
  24. package/resources/organizations/billing/billing.mjs.map +1 -1
  25. package/resources/organizations/memberships.d.mts +13 -0
  26. package/resources/organizations/memberships.d.mts.map +1 -1
  27. package/resources/organizations/memberships.d.ts +13 -0
  28. package/resources/organizations/memberships.d.ts.map +1 -1
  29. package/resources/organizations/organizations.d.mts +13 -0
  30. package/resources/organizations/organizations.d.mts.map +1 -1
  31. package/resources/organizations/organizations.d.ts +13 -0
  32. package/resources/organizations/organizations.d.ts.map +1 -1
  33. package/resources/organizations/organizations.js.map +1 -1
  34. package/resources/organizations/organizations.mjs.map +1 -1
  35. package/resources/projects/projects.d.mts +14 -0
  36. package/resources/projects/projects.d.mts.map +1 -1
  37. package/resources/projects/projects.d.ts +14 -0
  38. package/resources/projects/projects.d.ts.map +1 -1
  39. package/resources/rpc-nodes/dedicated/blockchains.d.mts +13 -0
  40. package/resources/rpc-nodes/dedicated/blockchains.d.mts.map +1 -1
  41. package/resources/rpc-nodes/dedicated/blockchains.d.ts +13 -0
  42. package/resources/rpc-nodes/dedicated/blockchains.d.ts.map +1 -1
  43. package/resources/rpc-nodes/flex/blockchains.d.mts +13 -0
  44. package/resources/rpc-nodes/flex/blockchains.d.mts.map +1 -1
  45. package/resources/rpc-nodes/flex/blockchains.d.ts +13 -0
  46. package/resources/rpc-nodes/flex/blockchains.d.ts.map +1 -1
  47. package/resources/shared.d.mts +1 -1
  48. package/resources/shared.d.mts.map +1 -1
  49. package/resources/shared.d.ts +1 -1
  50. package/resources/shared.d.ts.map +1 -1
  51. package/resources/usage/usage.d.mts +30 -0
  52. package/resources/usage/usage.d.mts.map +1 -1
  53. package/resources/usage/usage.d.ts +30 -0
  54. package/resources/usage/usage.d.ts.map +1 -1
  55. package/src/resources/api-keys/api-keys.ts +23 -1
  56. package/src/resources/audit-logs/audit-logs.ts +67 -1
  57. package/src/resources/compute/vms/metrics.ts +6 -0
  58. package/src/resources/operations/operations.ts +45 -0
  59. package/src/resources/organizations/billing/billing.ts +33 -1
  60. package/src/resources/organizations/memberships.ts +17 -1
  61. package/src/resources/organizations/organizations.ts +17 -1
  62. package/src/resources/projects/projects.ts +18 -1
  63. package/src/resources/rpc-nodes/dedicated/blockchains.ts +17 -1
  64. package/src/resources/rpc-nodes/flex/blockchains.ts +17 -1
  65. package/src/resources/shared.ts +1 -1
  66. package/src/resources/usage/usage.ts +45 -1
  67. package/src/version.ts +1 -1
  68. package/version.d.mts +1 -1
  69. package/version.d.ts +1 -1
  70. package/version.js +1 -1
  71. package/version.mjs +1 -1
@@ -137,6 +137,51 @@ export interface OperationListParams extends CursorParams {
137
137
  * Project ID of resources to request
138
138
  */
139
139
  project_id: string;
140
+
141
+ /**
142
+ * Only operations started at or before this RFC 3339 instant
143
+ */
144
+ created_at_max?: string;
145
+
146
+ /**
147
+ * Only operations started at or after this RFC 3339 instant
148
+ */
149
+ created_at_min?: string;
150
+
151
+ /**
152
+ * Filter by the kind of resource the operation acts on
153
+ */
154
+ kind?:
155
+ | 'vm'
156
+ | 'volume'
157
+ | 'vpc'
158
+ | 'firewall_rule'
159
+ | 'connect_connection'
160
+ | 'nks_cluster'
161
+ | 'nks_node_pool'
162
+ | 'nks_load_balancer'
163
+ | 'nks_node';
164
+
165
+ /**
166
+ * Filter by the resource the operation acts on
167
+ */
168
+ resource_id?: string;
169
+
170
+ /**
171
+ * Comma-separated sort terms in precedence order, each field:asc or field:desc.
172
+ * Fields: created_at, updated_at
173
+ */
174
+ sort?: string;
175
+
176
+ /**
177
+ * Filter by operation status
178
+ */
179
+ status?: 'pending' | 'running' | 'done' | 'failed' | 'unknown';
180
+
181
+ /**
182
+ * Filter by operation type
183
+ */
184
+ type?: 'create' | 'update' | 'delete' | 'restart';
140
185
  }
141
186
 
142
187
  export declare namespace Operations {
@@ -431,7 +431,23 @@ export interface BillingCostParams {
431
431
 
432
432
  export interface BillingHistoryParams {
433
433
  /**
434
- * Pagination cursor returned by a previous request
434
+ * Only entries at or before this RFC 3339 instant
435
+ */
436
+ created_at_max?: string;
437
+
438
+ /**
439
+ * Only entries at or after this RFC 3339 instant
440
+ */
441
+ created_at_min?: string;
442
+
443
+ /**
444
+ * Filter by currency, as an ISO 4217 code. Case-insensitive.
445
+ */
446
+ currency?: string;
447
+
448
+ /**
449
+ * Pagination cursor returned by a previous request. Only valid for the same
450
+ * filters and sort order.
435
451
  */
436
452
  cursor?: string;
437
453
 
@@ -439,6 +455,22 @@ export interface BillingHistoryParams {
439
455
  * Maximum number of items to return
440
456
  */
441
457
  limit?: number;
458
+
459
+ /**
460
+ * Filter by the funding flow a credit came from
461
+ */
462
+ purpose?: string;
463
+
464
+ /**
465
+ * Comma-separated sort terms in precedence order, each field:asc or field:desc.
466
+ * Fields: created_at, amount
467
+ */
468
+ sort?: string;
469
+
470
+ /**
471
+ * Filter by entry type
472
+ */
473
+ type?: string;
442
474
  }
443
475
 
444
476
  export interface BillingTopUpParams {
@@ -108,7 +108,23 @@ export interface MembershipGetParams {
108
108
  organization_id: string;
109
109
  }
110
110
 
111
- export interface MembershipListParams extends CursorParams {}
111
+ export interface MembershipListParams extends CursorParams {
112
+ /**
113
+ * Filter by membership role
114
+ */
115
+ role?: 'owner' | 'member';
116
+
117
+ /**
118
+ * Comma-separated sort terms in precedence order, each field:asc or field:desc.
119
+ * Fields: created_at, updated_at, role
120
+ */
121
+ sort?: string;
122
+
123
+ /**
124
+ * Filter by the member's user ID
125
+ */
126
+ user_id?: string;
127
+ }
112
128
 
113
129
  export declare namespace Memberships {
114
130
  export {
@@ -290,7 +290,23 @@ export interface OrganizationUpdateParams {
290
290
  name?: string;
291
291
  }
292
292
 
293
- export interface OrganizationListParams extends CursorParams {}
293
+ export interface OrganizationListParams extends CursorParams {
294
+ /**
295
+ * Filter by a case-insensitive substring of the organization name
296
+ */
297
+ name?: string;
298
+
299
+ /**
300
+ * Comma-separated sort terms in precedence order, each field:asc or field:desc.
301
+ * Fields: created_at, updated_at, name
302
+ */
303
+ sort?: string;
304
+
305
+ /**
306
+ * Filter by organization type
307
+ */
308
+ type?: 'personal' | 'company';
309
+ }
294
310
 
295
311
  Organizations.Memberships = Memberships;
296
312
  Organizations.Address = Address;
@@ -216,7 +216,24 @@ export interface ProjectUpdateParams {
216
216
  tags?: Array<string>;
217
217
  }
218
218
 
219
- export interface ProjectListParams extends CursorParams {}
219
+ export interface ProjectListParams extends CursorParams {
220
+ /**
221
+ * Filter by a case-insensitive substring of the Project name
222
+ */
223
+ name?: string;
224
+
225
+ /**
226
+ * Comma-separated sort terms in precedence order, each field:asc or field:desc.
227
+ * Fields: created_at, updated_at, name
228
+ */
229
+ sort?: string;
230
+
231
+ /**
232
+ * Filter by tags. Repeat the parameter to require several tags; a Project must
233
+ * carry all of them.
234
+ */
235
+ tags?: Array<string>;
236
+ }
220
237
 
221
238
  export declare namespace Projects {
222
239
  export {
@@ -30,7 +30,23 @@ export class Blockchains extends APIResource {
30
30
  }
31
31
  }
32
32
 
33
- export interface BlockchainListParams extends CursorParams {}
33
+ export interface BlockchainListParams extends CursorParams {
34
+ /**
35
+ * Filter by blockchain
36
+ */
37
+ blockchain?: string;
38
+
39
+ /**
40
+ * Filter by network
41
+ */
42
+ network?: string;
43
+
44
+ /**
45
+ * Comma-separated sort terms in precedence order, each field:asc or field:desc.
46
+ * Fields: created_at, blockchain, network
47
+ */
48
+ sort?: string;
49
+ }
34
50
 
35
51
  export declare namespace Blockchains {
36
52
  export { type BlockchainListParams as BlockchainListParams };
@@ -29,7 +29,23 @@ export class Blockchains extends APIResource {
29
29
  }
30
30
  }
31
31
 
32
- export interface BlockchainListParams extends CursorParams {}
32
+ export interface BlockchainListParams extends CursorParams {
33
+ /**
34
+ * Filter by blockchain
35
+ */
36
+ blockchain?: string;
37
+
38
+ /**
39
+ * Filter by network
40
+ */
41
+ network?: string;
42
+
43
+ /**
44
+ * Comma-separated sort terms in precedence order, each field:asc or field:desc.
45
+ * Fields: created_at, blockchain, network
46
+ */
47
+ sort?: string;
48
+ }
33
49
 
34
50
  export declare namespace Blockchains {
35
51
  export { type BlockchainListParams as BlockchainListParams };
@@ -390,4 +390,4 @@ export interface SourceIPRuleResponse {
390
390
  /**
391
391
  * Unit the values are expressed in.
392
392
  */
393
- export type VMMetricUnit = 'ratio' | 'bytes' | 'cores';
393
+ export type VMMetricUnit = 'ratio' | 'bytes' | 'cores' | 'bytes_per_second' | 'operations_per_second';
@@ -123,7 +123,51 @@ export type UsageResourceType =
123
123
  | 'nks_node_pool'
124
124
  | 'nks_load_balancer';
125
125
 
126
- export interface UsageListParams extends CursorParams {}
126
+ export interface UsageListParams extends CursorParams {
127
+ /**
128
+ * Only resources metered at or before this RFC 3339 instant
129
+ */
130
+ active_at_max?: string;
131
+
132
+ /**
133
+ * Only resources metered at or after this RFC 3339 instant; a window a usage row
134
+ * must overlap
135
+ */
136
+ active_at_min?: string;
137
+
138
+ /**
139
+ * Only resources with usage in this dimension
140
+ */
141
+ dimension?: string;
142
+
143
+ /**
144
+ * Filter by region
145
+ */
146
+ region?: string;
147
+
148
+ /**
149
+ * Filter by a single resource
150
+ */
151
+ resource_id?: string;
152
+
153
+ /**
154
+ * Filter by the kind of resource metered
155
+ */
156
+ resource_type?:
157
+ | 'vm'
158
+ | 'volume'
159
+ | 'vpc'
160
+ | 'connect_connection'
161
+ | 'nks_cluster'
162
+ | 'nks_node_pool'
163
+ | 'nks_load_balancer';
164
+
165
+ /**
166
+ * Sort term as field:asc or field:desc. Field: created_at, the resource's earliest
167
+ * usage row matching the filters
168
+ */
169
+ sort?: string;
170
+ }
127
171
 
128
172
  export declare namespace UsageResource {
129
173
  export {
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '1.98.3'; // x-release-please-version
1
+ export const VERSION = '1.98.4'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.98.3";
1
+ export declare const VERSION = "1.98.4";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.98.3";
1
+ export declare const VERSION = "1.98.4";
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.98.3'; // x-release-please-version
4
+ exports.VERSION = '1.98.4'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '1.98.3'; // x-release-please-version
1
+ export const VERSION = '1.98.4'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map