@nirvana-labs/nirvana 1.79.1 → 1.80.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 (61) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/client.d.mts +3 -0
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +3 -0
  5. package/client.d.ts.map +1 -1
  6. package/client.js +3 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +3 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/index.d.mts +1 -0
  12. package/resources/index.d.mts.map +1 -1
  13. package/resources/index.d.ts +1 -0
  14. package/resources/index.d.ts.map +1 -1
  15. package/resources/index.js +3 -1
  16. package/resources/index.js.map +1 -1
  17. package/resources/index.mjs +1 -0
  18. package/resources/index.mjs.map +1 -1
  19. package/resources/organizations/organizations.d.mts +9 -1
  20. package/resources/organizations/organizations.d.mts.map +1 -1
  21. package/resources/organizations/organizations.d.ts +9 -1
  22. package/resources/organizations/organizations.d.ts.map +1 -1
  23. package/resources/organizations/organizations.js.map +1 -1
  24. package/resources/organizations/organizations.mjs.map +1 -1
  25. package/resources/quotas/index.d.mts +2 -0
  26. package/resources/quotas/index.d.mts.map +1 -0
  27. package/resources/quotas/index.d.ts +2 -0
  28. package/resources/quotas/index.d.ts.map +1 -0
  29. package/resources/quotas/index.js +7 -0
  30. package/resources/quotas/index.js.map +1 -0
  31. package/resources/quotas/index.mjs +3 -0
  32. package/resources/quotas/index.mjs.map +1 -0
  33. package/resources/quotas/quotas.d.mts +132 -0
  34. package/resources/quotas/quotas.d.mts.map +1 -0
  35. package/resources/quotas/quotas.d.ts +132 -0
  36. package/resources/quotas/quotas.d.ts.map +1 -0
  37. package/resources/quotas/quotas.js +32 -0
  38. package/resources/quotas/quotas.js.map +1 -0
  39. package/resources/quotas/quotas.mjs +28 -0
  40. package/resources/quotas/quotas.mjs.map +1 -0
  41. package/resources/quotas.d.mts +2 -0
  42. package/resources/quotas.d.mts.map +1 -0
  43. package/resources/quotas.d.ts +2 -0
  44. package/resources/quotas.d.ts.map +1 -0
  45. package/resources/quotas.js +6 -0
  46. package/resources/quotas.js.map +1 -0
  47. package/resources/quotas.mjs +3 -0
  48. package/resources/quotas.mjs.map +1 -0
  49. package/src/client.ts +5 -0
  50. package/src/resources/index.ts +1 -0
  51. package/src/resources/organizations/api.md +1 -0
  52. package/src/resources/organizations/organizations.ts +11 -0
  53. package/src/resources/quotas/api.md +16 -0
  54. package/src/resources/quotas/index.ts +3 -0
  55. package/src/resources/quotas/quotas.ts +170 -0
  56. package/src/resources/quotas.ts +3 -0
  57. package/src/version.ts +1 -1
  58. package/version.d.mts +1 -1
  59. package/version.d.ts +1 -1
  60. package/version.js +1 -1
  61. package/version.mjs +1 -1
@@ -0,0 +1,132 @@
1
+ import { APIResource } from "../../core/resource.mjs";
2
+ import * as Shared from "../shared.mjs";
3
+ import { APIPromise } from "../../core/api-promise.mjs";
4
+ import { RequestOptions } from "../../internal/request-options.mjs";
5
+ export declare class Quotas extends APIResource {
6
+ /**
7
+ * List quota usage and limits for the current organization across all regions
8
+ *
9
+ * @example
10
+ * ```ts
11
+ * const quotaList = await client.quotas.list();
12
+ * ```
13
+ */
14
+ list(options?: RequestOptions): APIPromise<QuotaList>;
15
+ /**
16
+ * Get quota usage and limits for the current organization in a single region
17
+ *
18
+ * @example
19
+ * ```ts
20
+ * const quota = await client.quotas.get('us-sva-1');
21
+ * ```
22
+ */
23
+ get(region: 'us-sva-1' | 'us-sva-2' | 'us-chi-1', options?: RequestOptions): APIPromise<Quota>;
24
+ }
25
+ /**
26
+ * Quota response.
27
+ */
28
+ export interface Quota {
29
+ /**
30
+ * Compute quota.
31
+ */
32
+ compute: QuotaCompute;
33
+ /**
34
+ * Networking quota.
35
+ */
36
+ networking: QuotaNetworking;
37
+ /**
38
+ * NKS quota.
39
+ */
40
+ nks: QuotaNKS;
41
+ /**
42
+ * Region the resource is in.
43
+ */
44
+ region: Shared.RegionName;
45
+ /**
46
+ * Storage quota.
47
+ */
48
+ storage: QuotaStorage;
49
+ }
50
+ /**
51
+ * Compute quota.
52
+ */
53
+ export interface QuotaCompute {
54
+ /**
55
+ * Quota resource detail.
56
+ */
57
+ memory_gb: QuotaResourceDetail;
58
+ /**
59
+ * Quota resource detail.
60
+ */
61
+ vcpu: QuotaResourceDetail;
62
+ }
63
+ export interface QuotaList {
64
+ items: Array<Quota>;
65
+ /**
66
+ * Pagination response details.
67
+ */
68
+ pagination: Shared.Pagination;
69
+ }
70
+ /**
71
+ * Networking quota.
72
+ */
73
+ export interface QuotaNetworking {
74
+ /**
75
+ * Quota resource detail.
76
+ */
77
+ connect_connections: QuotaResourceDetail;
78
+ /**
79
+ * Quota resource detail.
80
+ */
81
+ public_ips: QuotaResourceDetail;
82
+ /**
83
+ * Quota resource detail.
84
+ */
85
+ vpcs: QuotaResourceDetail;
86
+ }
87
+ /**
88
+ * NKS quota.
89
+ */
90
+ export interface QuotaNKS {
91
+ /**
92
+ * Quota resource detail.
93
+ */
94
+ clusters: QuotaResourceDetail;
95
+ /**
96
+ * Quota resource detail.
97
+ */
98
+ memory_gb: QuotaResourceDetail;
99
+ /**
100
+ * Quota resource detail.
101
+ */
102
+ public_ips: QuotaResourceDetail;
103
+ /**
104
+ * Quota resource detail.
105
+ */
106
+ vcpu: QuotaResourceDetail;
107
+ }
108
+ /**
109
+ * Quota resource detail.
110
+ */
111
+ export interface QuotaResourceDetail {
112
+ limit: number;
113
+ remaining: number;
114
+ used: number;
115
+ }
116
+ /**
117
+ * Storage quota.
118
+ */
119
+ export interface QuotaStorage {
120
+ /**
121
+ * Quota resource detail.
122
+ */
123
+ abs: QuotaResourceDetail;
124
+ /**
125
+ * Quota resource detail.
126
+ */
127
+ local_nvme: QuotaResourceDetail;
128
+ }
129
+ export declare namespace Quotas {
130
+ export { type Quota as Quota, type QuotaCompute as QuotaCompute, type QuotaList as QuotaList, type QuotaNetworking as QuotaNetworking, type QuotaNKS as QuotaNKS, type QuotaResourceDetail as QuotaResourceDetail, type QuotaStorage as QuotaStorage, };
131
+ }
132
+ //# sourceMappingURL=quotas.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"quotas.d.mts","sourceRoot":"","sources":["../../src/resources/quotas/quotas.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;OAOG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC;IAIrD;;;;;;;OAOG;IACH,GAAG,CAAC,MAAM,EAAE,UAAU,GAAG,UAAU,GAAG,UAAU,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,KAAK,CAAC;CAG/F;AAED;;GAEG;AACH,MAAM,WAAW,KAAK;IACpB;;OAEG;IACH,OAAO,EAAE,YAAY,CAAC;IAEtB;;OAEG;IACH,UAAU,EAAE,eAAe,CAAC;IAE5B;;OAEG;IACH,GAAG,EAAE,QAAQ,CAAC;IAEd;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,UAAU,CAAC;IAE1B;;OAEG;IACH,OAAO,EAAE,YAAY,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,SAAS,EAAE,mBAAmB,CAAC;IAE/B;;OAEG;IACH,IAAI,EAAE,mBAAmB,CAAC;CAC3B;AAED,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IAEpB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC,UAAU,CAAC;CAC/B;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,mBAAmB,EAAE,mBAAmB,CAAC;IAEzC;;OAEG;IACH,UAAU,EAAE,mBAAmB,CAAC;IAEhC;;OAEG;IACH,IAAI,EAAE,mBAAmB,CAAC;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB;;OAEG;IACH,QAAQ,EAAE,mBAAmB,CAAC;IAE9B;;OAEG;IACH,SAAS,EAAE,mBAAmB,CAAC;IAE/B;;OAEG;IACH,UAAU,EAAE,mBAAmB,CAAC;IAEhC;;OAEG;IACH,IAAI,EAAE,mBAAmB,CAAC;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAC;IAEd,SAAS,EAAE,MAAM,CAAC;IAElB,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,GAAG,EAAE,mBAAmB,CAAC;IAEzB;;OAEG;IACH,UAAU,EAAE,mBAAmB,CAAC;CACjC;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,KAAK,IAAI,KAAK,EACnB,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,QAAQ,IAAI,QAAQ,EACzB,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,YAAY,IAAI,YAAY,GAClC,CAAC;CACH"}
@@ -0,0 +1,132 @@
1
+ import { APIResource } from "../../core/resource.js";
2
+ import * as Shared from "../shared.js";
3
+ import { APIPromise } from "../../core/api-promise.js";
4
+ import { RequestOptions } from "../../internal/request-options.js";
5
+ export declare class Quotas extends APIResource {
6
+ /**
7
+ * List quota usage and limits for the current organization across all regions
8
+ *
9
+ * @example
10
+ * ```ts
11
+ * const quotaList = await client.quotas.list();
12
+ * ```
13
+ */
14
+ list(options?: RequestOptions): APIPromise<QuotaList>;
15
+ /**
16
+ * Get quota usage and limits for the current organization in a single region
17
+ *
18
+ * @example
19
+ * ```ts
20
+ * const quota = await client.quotas.get('us-sva-1');
21
+ * ```
22
+ */
23
+ get(region: 'us-sva-1' | 'us-sva-2' | 'us-chi-1', options?: RequestOptions): APIPromise<Quota>;
24
+ }
25
+ /**
26
+ * Quota response.
27
+ */
28
+ export interface Quota {
29
+ /**
30
+ * Compute quota.
31
+ */
32
+ compute: QuotaCompute;
33
+ /**
34
+ * Networking quota.
35
+ */
36
+ networking: QuotaNetworking;
37
+ /**
38
+ * NKS quota.
39
+ */
40
+ nks: QuotaNKS;
41
+ /**
42
+ * Region the resource is in.
43
+ */
44
+ region: Shared.RegionName;
45
+ /**
46
+ * Storage quota.
47
+ */
48
+ storage: QuotaStorage;
49
+ }
50
+ /**
51
+ * Compute quota.
52
+ */
53
+ export interface QuotaCompute {
54
+ /**
55
+ * Quota resource detail.
56
+ */
57
+ memory_gb: QuotaResourceDetail;
58
+ /**
59
+ * Quota resource detail.
60
+ */
61
+ vcpu: QuotaResourceDetail;
62
+ }
63
+ export interface QuotaList {
64
+ items: Array<Quota>;
65
+ /**
66
+ * Pagination response details.
67
+ */
68
+ pagination: Shared.Pagination;
69
+ }
70
+ /**
71
+ * Networking quota.
72
+ */
73
+ export interface QuotaNetworking {
74
+ /**
75
+ * Quota resource detail.
76
+ */
77
+ connect_connections: QuotaResourceDetail;
78
+ /**
79
+ * Quota resource detail.
80
+ */
81
+ public_ips: QuotaResourceDetail;
82
+ /**
83
+ * Quota resource detail.
84
+ */
85
+ vpcs: QuotaResourceDetail;
86
+ }
87
+ /**
88
+ * NKS quota.
89
+ */
90
+ export interface QuotaNKS {
91
+ /**
92
+ * Quota resource detail.
93
+ */
94
+ clusters: QuotaResourceDetail;
95
+ /**
96
+ * Quota resource detail.
97
+ */
98
+ memory_gb: QuotaResourceDetail;
99
+ /**
100
+ * Quota resource detail.
101
+ */
102
+ public_ips: QuotaResourceDetail;
103
+ /**
104
+ * Quota resource detail.
105
+ */
106
+ vcpu: QuotaResourceDetail;
107
+ }
108
+ /**
109
+ * Quota resource detail.
110
+ */
111
+ export interface QuotaResourceDetail {
112
+ limit: number;
113
+ remaining: number;
114
+ used: number;
115
+ }
116
+ /**
117
+ * Storage quota.
118
+ */
119
+ export interface QuotaStorage {
120
+ /**
121
+ * Quota resource detail.
122
+ */
123
+ abs: QuotaResourceDetail;
124
+ /**
125
+ * Quota resource detail.
126
+ */
127
+ local_nvme: QuotaResourceDetail;
128
+ }
129
+ export declare namespace Quotas {
130
+ export { type Quota as Quota, type QuotaCompute as QuotaCompute, type QuotaList as QuotaList, type QuotaNetworking as QuotaNetworking, type QuotaNKS as QuotaNKS, type QuotaResourceDetail as QuotaResourceDetail, type QuotaStorage as QuotaStorage, };
131
+ }
132
+ //# sourceMappingURL=quotas.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"quotas.d.ts","sourceRoot":"","sources":["../../src/resources/quotas/quotas.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;OAOG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC;IAIrD;;;;;;;OAOG;IACH,GAAG,CAAC,MAAM,EAAE,UAAU,GAAG,UAAU,GAAG,UAAU,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,KAAK,CAAC;CAG/F;AAED;;GAEG;AACH,MAAM,WAAW,KAAK;IACpB;;OAEG;IACH,OAAO,EAAE,YAAY,CAAC;IAEtB;;OAEG;IACH,UAAU,EAAE,eAAe,CAAC;IAE5B;;OAEG;IACH,GAAG,EAAE,QAAQ,CAAC;IAEd;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,UAAU,CAAC;IAE1B;;OAEG;IACH,OAAO,EAAE,YAAY,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,SAAS,EAAE,mBAAmB,CAAC;IAE/B;;OAEG;IACH,IAAI,EAAE,mBAAmB,CAAC;CAC3B;AAED,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IAEpB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC,UAAU,CAAC;CAC/B;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,mBAAmB,EAAE,mBAAmB,CAAC;IAEzC;;OAEG;IACH,UAAU,EAAE,mBAAmB,CAAC;IAEhC;;OAEG;IACH,IAAI,EAAE,mBAAmB,CAAC;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB;;OAEG;IACH,QAAQ,EAAE,mBAAmB,CAAC;IAE9B;;OAEG;IACH,SAAS,EAAE,mBAAmB,CAAC;IAE/B;;OAEG;IACH,UAAU,EAAE,mBAAmB,CAAC;IAEhC;;OAEG;IACH,IAAI,EAAE,mBAAmB,CAAC;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAC;IAEd,SAAS,EAAE,MAAM,CAAC;IAElB,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,GAAG,EAAE,mBAAmB,CAAC;IAEzB;;OAEG;IACH,UAAU,EAAE,mBAAmB,CAAC;CACjC;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,KAAK,IAAI,KAAK,EACnB,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,QAAQ,IAAI,QAAQ,EACzB,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,YAAY,IAAI,YAAY,GAClC,CAAC;CACH"}
@@ -0,0 +1,32 @@
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.Quotas = void 0;
5
+ const resource_1 = require("../../core/resource.js");
6
+ const path_1 = require("../../internal/utils/path.js");
7
+ class Quotas extends resource_1.APIResource {
8
+ /**
9
+ * List quota usage and limits for the current organization across all regions
10
+ *
11
+ * @example
12
+ * ```ts
13
+ * const quotaList = await client.quotas.list();
14
+ * ```
15
+ */
16
+ list(options) {
17
+ return this._client.get('/v1/quotas', options);
18
+ }
19
+ /**
20
+ * Get quota usage and limits for the current organization in a single region
21
+ *
22
+ * @example
23
+ * ```ts
24
+ * const quota = await client.quotas.get('us-sva-1');
25
+ * ```
26
+ */
27
+ get(region, options) {
28
+ return this._client.get((0, path_1.path) `/v1/quotas/${region}`, options);
29
+ }
30
+ }
31
+ exports.Quotas = Quotas;
32
+ //# sourceMappingURL=quotas.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"quotas.js","sourceRoot":"","sources":["../../src/resources/quotas/quotas.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,uDAAiD;AAEjD,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;;;;;OAOG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;IACjD,CAAC;IAED;;;;;;;OAOG;IACH,GAAG,CAAC,MAA4C,EAAE,OAAwB;QACxE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,cAAc,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;CACF;AAxBD,wBAwBC"}
@@ -0,0 +1,28 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../core/resource.mjs";
3
+ import { path } from "../../internal/utils/path.mjs";
4
+ export class Quotas extends APIResource {
5
+ /**
6
+ * List quota usage and limits for the current organization across all regions
7
+ *
8
+ * @example
9
+ * ```ts
10
+ * const quotaList = await client.quotas.list();
11
+ * ```
12
+ */
13
+ list(options) {
14
+ return this._client.get('/v1/quotas', options);
15
+ }
16
+ /**
17
+ * Get quota usage and limits for the current organization in a single region
18
+ *
19
+ * @example
20
+ * ```ts
21
+ * const quota = await client.quotas.get('us-sva-1');
22
+ * ```
23
+ */
24
+ get(region, options) {
25
+ return this._client.get(path `/v1/quotas/${region}`, options);
26
+ }
27
+ }
28
+ //# sourceMappingURL=quotas.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"quotas.mjs","sourceRoot":"","sources":["../../src/resources/quotas/quotas.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;;;;;OAOG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;IACjD,CAAC;IAED;;;;;;;OAOG;IACH,GAAG,CAAC,MAA4C,EAAE,OAAwB;QACxE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,cAAc,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;CACF"}
@@ -0,0 +1,2 @@
1
+ export * from "./quotas/index.mjs";
2
+ //# sourceMappingURL=quotas.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"quotas.d.mts","sourceRoot":"","sources":["../src/resources/quotas.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export * from "./quotas/index.js";
2
+ //# sourceMappingURL=quotas.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"quotas.d.ts","sourceRoot":"","sources":["../src/resources/quotas.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
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("./quotas/index.js"), exports);
6
+ //# sourceMappingURL=quotas.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"quotas.js","sourceRoot":"","sources":["../src/resources/quotas.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4DAA+B"}
@@ -0,0 +1,3 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export * from "./quotas/index.mjs";
3
+ //# sourceMappingURL=quotas.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"quotas.mjs","sourceRoot":"","sources":["../src/resources/quotas.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
package/src/client.ts CHANGED
@@ -28,6 +28,7 @@ import { NKS } from './resources/nks/nks';
28
28
  import { Operations } from './resources/operations/operations';
29
29
  import { Organizations } from './resources/organizations/organizations';
30
30
  import { Projects } from './resources/projects/projects';
31
+ import { Quotas } from './resources/quotas/quotas';
31
32
  import { Regions } from './resources/regions/regions';
32
33
  import { RPCNodes } from './resources/rpc-nodes/rpc-nodes';
33
34
  import { UserResource } from './resources/user/user';
@@ -759,6 +760,7 @@ export class NirvanaLabs {
759
760
  apiKeys: API.APIKeys = new API.APIKeys(this);
760
761
  operations: API.Operations = new API.Operations(this);
761
762
  organizations: API.Organizations = new API.Organizations(this);
763
+ quotas: API.Quotas = new API.Quotas(this);
762
764
  auditLogs: API.AuditLogs = new API.AuditLogs(this);
763
765
  projects: API.Projects = new API.Projects(this);
764
766
  regions: API.Regions = new API.Regions(this);
@@ -773,6 +775,7 @@ NirvanaLabs.UserResource = UserResource;
773
775
  NirvanaLabs.APIKeys = APIKeys;
774
776
  NirvanaLabs.Operations = Operations;
775
777
  NirvanaLabs.Organizations = Organizations;
778
+ NirvanaLabs.Quotas = Quotas;
776
779
  NirvanaLabs.AuditLogs = AuditLogs;
777
780
  NirvanaLabs.Projects = Projects;
778
781
  NirvanaLabs.Regions = Regions;
@@ -796,6 +799,8 @@ export declare namespace NirvanaLabs {
796
799
 
797
800
  export { Organizations as Organizations };
798
801
 
802
+ export { Quotas as Quotas };
803
+
799
804
  export { AuditLogs as AuditLogs };
800
805
 
801
806
  export { Projects as Projects };
@@ -10,6 +10,7 @@ export { Networking } from './networking/networking';
10
10
  export { Operations } from './operations';
11
11
  export { Organizations } from './organizations/organizations';
12
12
  export { Projects } from './projects';
13
+ export { Quotas } from './quotas';
13
14
  export { RPCNodes } from './rpc-nodes/rpc-nodes';
14
15
  export { Regions } from './regions';
15
16
  export { UserResource } from './user/user';
@@ -6,6 +6,7 @@ Types:
6
6
  - <code><a href="./src/resources/organizations/organizations.ts">OrganizationDomain</a></code>
7
7
  - <code><a href="./src/resources/organizations/organizations.ts">OrganizationList</a></code>
8
8
  - <code><a href="./src/resources/organizations/organizations.ts">OrganizationServices</a></code>
9
+ - <code><a href="./src/resources/organizations/organizations.ts">OrganizationType</a></code>
9
10
 
10
11
  Methods:
11
12
 
@@ -136,6 +136,11 @@ export interface Organization {
136
136
  */
137
137
  services: OrganizationServices;
138
138
 
139
+ /**
140
+ * Organization type.
141
+ */
142
+ type: OrganizationType;
143
+
139
144
  /**
140
145
  * When the Organization was updated.
141
146
  */
@@ -206,6 +211,11 @@ export interface OrganizationServices {
206
211
  sso: boolean;
207
212
  }
208
213
 
214
+ /**
215
+ * Organization type.
216
+ */
217
+ export type OrganizationType = 'personal' | 'company';
218
+
209
219
  export interface OrganizationCreateParams {
210
220
  /**
211
221
  * Organization name.
@@ -230,6 +240,7 @@ export declare namespace Organizations {
230
240
  type OrganizationDomain as OrganizationDomain,
231
241
  type OrganizationList as OrganizationList,
232
242
  type OrganizationServices as OrganizationServices,
243
+ type OrganizationType as OrganizationType,
233
244
  type OrganizationsCursor as OrganizationsCursor,
234
245
  type OrganizationCreateParams as OrganizationCreateParams,
235
246
  type OrganizationUpdateParams as OrganizationUpdateParams,
@@ -0,0 +1,16 @@
1
+ # Quotas
2
+
3
+ Types:
4
+
5
+ - <code><a href="./src/resources/quotas.ts">Quota</a></code>
6
+ - <code><a href="./src/resources/quotas.ts">QuotaCompute</a></code>
7
+ - <code><a href="./src/resources/quotas.ts">QuotaList</a></code>
8
+ - <code><a href="./src/resources/quotas.ts">QuotaNetworking</a></code>
9
+ - <code><a href="./src/resources/quotas.ts">QuotaNKS</a></code>
10
+ - <code><a href="./src/resources/quotas.ts">QuotaResourceDetail</a></code>
11
+ - <code><a href="./src/resources/quotas.ts">QuotaStorage</a></code>
12
+
13
+ Methods:
14
+
15
+ - <code title="get /v1/quotas">client.quotas.<a href="./src/resources/quotas.ts">list</a>() -> QuotaList</code>
16
+ - <code title="get /v1/quotas/{region}">client.quotas.<a href="./src/resources/quotas.ts">get</a>(region) -> Quota</code>
@@ -0,0 +1,3 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ export { Quotas } from './quotas';
@@ -0,0 +1,170 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../core/resource';
4
+ import * as Shared from '../shared';
5
+ import { APIPromise } from '../../core/api-promise';
6
+ import { RequestOptions } from '../../internal/request-options';
7
+ import { path } from '../../internal/utils/path';
8
+
9
+ export class Quotas extends APIResource {
10
+ /**
11
+ * List quota usage and limits for the current organization across all regions
12
+ *
13
+ * @example
14
+ * ```ts
15
+ * const quotaList = await client.quotas.list();
16
+ * ```
17
+ */
18
+ list(options?: RequestOptions): APIPromise<QuotaList> {
19
+ return this._client.get('/v1/quotas', options);
20
+ }
21
+
22
+ /**
23
+ * Get quota usage and limits for the current organization in a single region
24
+ *
25
+ * @example
26
+ * ```ts
27
+ * const quota = await client.quotas.get('us-sva-1');
28
+ * ```
29
+ */
30
+ get(region: 'us-sva-1' | 'us-sva-2' | 'us-chi-1', options?: RequestOptions): APIPromise<Quota> {
31
+ return this._client.get(path`/v1/quotas/${region}`, options);
32
+ }
33
+ }
34
+
35
+ /**
36
+ * Quota response.
37
+ */
38
+ export interface Quota {
39
+ /**
40
+ * Compute quota.
41
+ */
42
+ compute: QuotaCompute;
43
+
44
+ /**
45
+ * Networking quota.
46
+ */
47
+ networking: QuotaNetworking;
48
+
49
+ /**
50
+ * NKS quota.
51
+ */
52
+ nks: QuotaNKS;
53
+
54
+ /**
55
+ * Region the resource is in.
56
+ */
57
+ region: Shared.RegionName;
58
+
59
+ /**
60
+ * Storage quota.
61
+ */
62
+ storage: QuotaStorage;
63
+ }
64
+
65
+ /**
66
+ * Compute quota.
67
+ */
68
+ export interface QuotaCompute {
69
+ /**
70
+ * Quota resource detail.
71
+ */
72
+ memory_gb: QuotaResourceDetail;
73
+
74
+ /**
75
+ * Quota resource detail.
76
+ */
77
+ vcpu: QuotaResourceDetail;
78
+ }
79
+
80
+ export interface QuotaList {
81
+ items: Array<Quota>;
82
+
83
+ /**
84
+ * Pagination response details.
85
+ */
86
+ pagination: Shared.Pagination;
87
+ }
88
+
89
+ /**
90
+ * Networking quota.
91
+ */
92
+ export interface QuotaNetworking {
93
+ /**
94
+ * Quota resource detail.
95
+ */
96
+ connect_connections: QuotaResourceDetail;
97
+
98
+ /**
99
+ * Quota resource detail.
100
+ */
101
+ public_ips: QuotaResourceDetail;
102
+
103
+ /**
104
+ * Quota resource detail.
105
+ */
106
+ vpcs: QuotaResourceDetail;
107
+ }
108
+
109
+ /**
110
+ * NKS quota.
111
+ */
112
+ export interface QuotaNKS {
113
+ /**
114
+ * Quota resource detail.
115
+ */
116
+ clusters: QuotaResourceDetail;
117
+
118
+ /**
119
+ * Quota resource detail.
120
+ */
121
+ memory_gb: QuotaResourceDetail;
122
+
123
+ /**
124
+ * Quota resource detail.
125
+ */
126
+ public_ips: QuotaResourceDetail;
127
+
128
+ /**
129
+ * Quota resource detail.
130
+ */
131
+ vcpu: QuotaResourceDetail;
132
+ }
133
+
134
+ /**
135
+ * Quota resource detail.
136
+ */
137
+ export interface QuotaResourceDetail {
138
+ limit: number;
139
+
140
+ remaining: number;
141
+
142
+ used: number;
143
+ }
144
+
145
+ /**
146
+ * Storage quota.
147
+ */
148
+ export interface QuotaStorage {
149
+ /**
150
+ * Quota resource detail.
151
+ */
152
+ abs: QuotaResourceDetail;
153
+
154
+ /**
155
+ * Quota resource detail.
156
+ */
157
+ local_nvme: QuotaResourceDetail;
158
+ }
159
+
160
+ export declare namespace Quotas {
161
+ export {
162
+ type Quota as Quota,
163
+ type QuotaCompute as QuotaCompute,
164
+ type QuotaList as QuotaList,
165
+ type QuotaNetworking as QuotaNetworking,
166
+ type QuotaNKS as QuotaNKS,
167
+ type QuotaResourceDetail as QuotaResourceDetail,
168
+ type QuotaStorage as QuotaStorage,
169
+ };
170
+ }
@@ -0,0 +1,3 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ export * from './quotas/index';
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '1.79.1'; // x-release-please-version
1
+ export const VERSION = '1.80.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.79.1";
1
+ export declare const VERSION = "1.80.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.79.1";
1
+ export declare const VERSION = "1.80.0";
2
2
  //# sourceMappingURL=version.d.ts.map