@nirvana-labs/nirvana 1.73.1 → 1.75.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 (105) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +7 -7
  3. package/package.json +1 -1
  4. package/resources/compute/vms/availability.d.mts +1 -1
  5. package/resources/compute/vms/availability.d.ts +1 -1
  6. package/resources/compute/vms/availability.js +1 -1
  7. package/resources/compute/vms/availability.mjs +1 -1
  8. package/resources/compute/vms/vms.d.mts +1 -1
  9. package/resources/compute/vms/vms.d.ts +1 -1
  10. package/resources/compute/vms/vms.js +1 -1
  11. package/resources/compute/vms/vms.mjs +1 -1
  12. package/resources/compute/volumes/availability.d.mts +1 -1
  13. package/resources/compute/volumes/availability.d.ts +1 -1
  14. package/resources/compute/volumes/availability.js +1 -1
  15. package/resources/compute/volumes/availability.mjs +1 -1
  16. package/resources/compute/volumes/volumes.d.mts +1 -1
  17. package/resources/compute/volumes/volumes.d.ts +1 -1
  18. package/resources/compute/volumes/volumes.js +1 -1
  19. package/resources/compute/volumes/volumes.mjs +1 -1
  20. package/resources/instance-types/instance-types.d.mts +1 -1
  21. package/resources/instance-types/instance-types.d.mts.map +1 -1
  22. package/resources/instance-types/instance-types.d.ts +1 -1
  23. package/resources/instance-types/instance-types.d.ts.map +1 -1
  24. package/resources/networking/connect/connections.d.mts +1 -1
  25. package/resources/networking/connect/connections.d.ts +1 -1
  26. package/resources/networking/connect/connections.js +1 -1
  27. package/resources/networking/connect/connections.mjs +1 -1
  28. package/resources/networking/vpcs/availability.d.mts +1 -1
  29. package/resources/networking/vpcs/availability.d.ts +1 -1
  30. package/resources/networking/vpcs/availability.js +1 -1
  31. package/resources/networking/vpcs/availability.mjs +1 -1
  32. package/resources/networking/vpcs/vpcs.d.mts +1 -1
  33. package/resources/networking/vpcs/vpcs.d.ts +1 -1
  34. package/resources/networking/vpcs/vpcs.js +1 -1
  35. package/resources/networking/vpcs/vpcs.mjs +1 -1
  36. package/resources/nks/clusters/availability.d.mts +1 -1
  37. package/resources/nks/clusters/availability.d.ts +1 -1
  38. package/resources/nks/clusters/availability.js +1 -1
  39. package/resources/nks/clusters/availability.mjs +1 -1
  40. package/resources/nks/clusters/clusters.d.mts +5 -12
  41. package/resources/nks/clusters/clusters.d.mts.map +1 -1
  42. package/resources/nks/clusters/clusters.d.ts +5 -12
  43. package/resources/nks/clusters/clusters.d.ts.map +1 -1
  44. package/resources/nks/clusters/clusters.js +4 -2
  45. package/resources/nks/clusters/clusters.js.map +1 -1
  46. package/resources/nks/clusters/clusters.mjs +4 -2
  47. package/resources/nks/clusters/clusters.mjs.map +1 -1
  48. package/resources/nks/clusters/index.d.mts +2 -1
  49. package/resources/nks/clusters/index.d.mts.map +1 -1
  50. package/resources/nks/clusters/index.d.ts +2 -1
  51. package/resources/nks/clusters/index.d.ts.map +1 -1
  52. package/resources/nks/clusters/index.js +3 -1
  53. package/resources/nks/clusters/index.js.map +1 -1
  54. package/resources/nks/clusters/index.mjs +1 -0
  55. package/resources/nks/clusters/index.mjs.map +1 -1
  56. package/resources/nks/clusters/kubeconfig.d.mts +14 -3
  57. package/resources/nks/clusters/kubeconfig.d.mts.map +1 -1
  58. package/resources/nks/clusters/kubeconfig.d.ts +14 -3
  59. package/resources/nks/clusters/kubeconfig.d.ts.map +1 -1
  60. package/resources/nks/clusters/kubeconfig.js +3 -3
  61. package/resources/nks/clusters/kubeconfig.js.map +1 -1
  62. package/resources/nks/clusters/kubeconfig.mjs +1 -1
  63. package/resources/nks/clusters/kubeconfig.mjs.map +1 -1
  64. package/resources/nks/index.d.mts +1 -1
  65. package/resources/nks/index.d.mts.map +1 -1
  66. package/resources/nks/index.d.ts +1 -1
  67. package/resources/nks/index.d.ts.map +1 -1
  68. package/resources/nks/index.js.map +1 -1
  69. package/resources/nks/index.mjs.map +1 -1
  70. package/resources/nks/nks.d.mts +2 -2
  71. package/resources/nks/nks.d.mts.map +1 -1
  72. package/resources/nks/nks.d.ts +2 -2
  73. package/resources/nks/nks.d.ts.map +1 -1
  74. package/resources/nks/nks.js.map +1 -1
  75. package/resources/nks/nks.mjs.map +1 -1
  76. package/resources/regions/regions.d.mts +1 -1
  77. package/resources/regions/regions.d.ts +1 -1
  78. package/resources/regions/regions.js +1 -1
  79. package/resources/regions/regions.mjs +1 -1
  80. package/resources/shared.d.mts +1 -1
  81. package/resources/shared.d.mts.map +1 -1
  82. package/resources/shared.d.ts +1 -1
  83. package/resources/shared.d.ts.map +1 -1
  84. package/src/resources/compute/vms/availability.ts +1 -1
  85. package/src/resources/compute/vms/vms.ts +1 -1
  86. package/src/resources/compute/volumes/availability.ts +1 -1
  87. package/src/resources/compute/volumes/volumes.ts +1 -1
  88. package/src/resources/instance-types/instance-types.ts +1 -1
  89. package/src/resources/networking/connect/connections.ts +1 -1
  90. package/src/resources/networking/vpcs/availability.ts +1 -1
  91. package/src/resources/networking/vpcs/vpcs.ts +1 -1
  92. package/src/resources/nks/api.md +4 -1
  93. package/src/resources/nks/clusters/availability.ts +1 -1
  94. package/src/resources/nks/clusters/clusters.ts +6 -13
  95. package/src/resources/nks/clusters/index.ts +1 -1
  96. package/src/resources/nks/clusters/kubeconfig.ts +16 -3
  97. package/src/resources/nks/index.ts +0 -1
  98. package/src/resources/nks/nks.ts +0 -2
  99. package/src/resources/regions/regions.ts +1 -1
  100. package/src/resources/shared.ts +1 -1
  101. package/src/version.ts +1 -1
  102. package/version.d.mts +1 -1
  103. package/version.d.ts +1 -1
  104. package/version.js +1 -1
  105. package/version.mjs +1 -1
@@ -6,6 +6,7 @@ import * as OperationsAPI from '../../operations/operations';
6
6
  import * as AvailabilityAPI from './availability';
7
7
  import { Availability, AvailabilityCreateParams, AvailabilityUpdateParams } from './availability';
8
8
  import * as KubeconfigAPI from './kubeconfig';
9
+ import { Kubeconfig, KubeconfigResource } from './kubeconfig';
9
10
  import * as LoadBalancersAPI from './load-balancers';
10
11
  import {
11
12
  LoadBalancerGetParams,
@@ -58,7 +59,7 @@ export class Clusters extends APIResource {
58
59
  availability: AvailabilityAPI.Availability = new AvailabilityAPI.Availability(this._client);
59
60
  persistentVolumeClaims: PersistentVolumeClaimsAPI.PersistentVolumeClaims =
60
61
  new PersistentVolumeClaimsAPI.PersistentVolumeClaims(this._client);
61
- kubeconfig: KubeconfigAPI.Kubeconfig = new KubeconfigAPI.Kubeconfig(this._client);
62
+ kubeconfig: KubeconfigAPI.KubeconfigResource = new KubeconfigAPI.KubeconfigResource(this._client);
62
63
  controllers: ControllersAPI.Controllers = new ControllersAPI.Controllers(this._client);
63
64
  loadBalancers: LoadBalancersAPI.LoadBalancers = new LoadBalancersAPI.LoadBalancers(this._client);
64
65
  pools: PoolsAPI.Pools = new PoolsAPI.Pools(this._client);
@@ -71,7 +72,7 @@ export class Clusters extends APIResource {
71
72
  * const operation = await client.nks.clusters.create({
72
73
  * name: 'my-cluster',
73
74
  * project_id: '123e4567-e89b-12d3-a456-426614174000',
74
- * region: 'us-wdc-1',
75
+ * region: 'us-sva-2',
75
76
  * vpc_id: '123e4567-e89b-12d3-a456-426614174000',
76
77
  * });
77
78
  * ```
@@ -142,16 +143,6 @@ export class Clusters extends APIResource {
142
143
 
143
144
  export type NKSClustersCursor = Cursor<NKSCluster>;
144
145
 
145
- /**
146
- * Kubeconfig for an NKS Cluster.
147
- */
148
- export interface Kubeconfig {
149
- /**
150
- * Kubeconfig content for the Cluster.
151
- */
152
- kubeconfig: string;
153
- }
154
-
155
146
  /**
156
147
  * NKS Cluster details.
157
148
  */
@@ -274,13 +265,13 @@ export interface ClusterListParams extends CursorParams {
274
265
 
275
266
  Clusters.Availability = Availability;
276
267
  Clusters.PersistentVolumeClaims = PersistentVolumeClaims;
268
+ Clusters.KubeconfigResource = KubeconfigResource;
277
269
  Clusters.Controllers = Controllers;
278
270
  Clusters.LoadBalancers = LoadBalancers;
279
271
  Clusters.Pools = Pools;
280
272
 
281
273
  export declare namespace Clusters {
282
274
  export {
283
- type Kubeconfig as Kubeconfig,
284
275
  type NKSCluster as NKSCluster,
285
276
  type NKSClusterList as NKSClusterList,
286
277
  type NKSClustersCursor as NKSClustersCursor,
@@ -304,6 +295,8 @@ export declare namespace Clusters {
304
295
  type PersistentVolumeClaimGetParams as PersistentVolumeClaimGetParams,
305
296
  };
306
297
 
298
+ export { KubeconfigResource as KubeconfigResource, type Kubeconfig as Kubeconfig };
299
+
307
300
  export {
308
301
  Controllers as Controllers,
309
302
  type NKSController as NKSController,
@@ -3,7 +3,6 @@
3
3
  export { Availability, type AvailabilityCreateParams, type AvailabilityUpdateParams } from './availability';
4
4
  export {
5
5
  Clusters,
6
- type Kubeconfig,
7
6
  type NKSCluster,
8
7
  type NKSClusterList,
9
8
  type ClusterCreateParams,
@@ -19,6 +18,7 @@ export {
19
18
  type ControllerGetParams,
20
19
  type NKSControllersCursor,
21
20
  } from './controllers/index';
21
+ export { KubeconfigResource, type Kubeconfig } from './kubeconfig';
22
22
  export {
23
23
  LoadBalancers,
24
24
  type NKSLoadBalancer,
@@ -1,12 +1,11 @@
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 ClustersAPI from './clusters';
5
4
  import { APIPromise } from '../../../core/api-promise';
6
5
  import { RequestOptions } from '../../../internal/request-options';
7
6
  import { path } from '../../../internal/utils/path';
8
7
 
9
- export class Kubeconfig extends APIResource {
8
+ export class KubeconfigResource extends APIResource {
10
9
  /**
11
10
  * Get the kubeconfig for an NKS cluster
12
11
  *
@@ -17,7 +16,21 @@ export class Kubeconfig extends APIResource {
17
16
  * );
18
17
  * ```
19
18
  */
20
- get(clusterID: string, options?: RequestOptions): APIPromise<ClustersAPI.Kubeconfig> {
19
+ get(clusterID: string, options?: RequestOptions): APIPromise<Kubeconfig> {
21
20
  return this._client.get(path`/v1/nks/clusters/${clusterID}/kubeconfig`, options);
22
21
  }
23
22
  }
23
+
24
+ /**
25
+ * Kubeconfig for an NKS Cluster.
26
+ */
27
+ export interface Kubeconfig {
28
+ /**
29
+ * Kubeconfig content for the Cluster.
30
+ */
31
+ kubeconfig: string;
32
+ }
33
+
34
+ export declare namespace KubeconfigResource {
35
+ export { type Kubeconfig as Kubeconfig };
36
+ }
@@ -2,7 +2,6 @@
2
2
 
3
3
  export {
4
4
  Clusters,
5
- type Kubeconfig,
6
5
  type NKSCluster,
7
6
  type NKSClusterList,
8
7
  type ClusterCreateParams,
@@ -7,7 +7,6 @@ import {
7
7
  ClusterListParams,
8
8
  ClusterUpdateParams,
9
9
  Clusters,
10
- Kubeconfig,
11
10
  NKSCluster,
12
11
  NKSClusterList,
13
12
  NKSClustersCursor,
@@ -22,7 +21,6 @@ NKS.Clusters = Clusters;
22
21
  export declare namespace NKS {
23
22
  export {
24
23
  Clusters as Clusters,
25
- type Kubeconfig as Kubeconfig,
26
24
  type NKSCluster as NKSCluster,
27
25
  type NKSClusterList as NKSClusterList,
28
26
  type NKSClustersCursor as NKSClustersCursor,
@@ -31,7 +31,7 @@ export class Regions extends APIResource {
31
31
  *
32
32
  * @example
33
33
  * ```ts
34
- * const region = await client.regions.get('us-wdc-1');
34
+ * const region = await client.regions.get('us-sva-2');
35
35
  * ```
36
36
  */
37
37
  get(name: string, options?: RequestOptions): APIPromise<Region> {
@@ -14,7 +14,7 @@ export interface Pagination {
14
14
  /**
15
15
  * Region the resource is in.
16
16
  */
17
- export type RegionName = 'us-sva-1' | 'us-sva-2' | 'us-chi-1' | 'us-wdc-1';
17
+ export type RegionName = 'us-sea-1' | 'us-sva-1' | 'us-sva-2' | 'us-chi-1' | 'ap-sin-1';
18
18
 
19
19
  /**
20
20
  * Status of the resource.
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '1.73.1'; // x-release-please-version
1
+ export const VERSION = '1.75.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.73.1";
1
+ export declare const VERSION = "1.75.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.73.1";
1
+ export declare const VERSION = "1.75.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.73.1'; // x-release-please-version
4
+ exports.VERSION = '1.75.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '1.73.1'; // x-release-please-version
1
+ export const VERSION = '1.75.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map