@nirvana-labs/nirvana 1.2.0 → 1.3.1

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 (60) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/internal/detect-platform.js +3 -3
  3. package/internal/detect-platform.js.map +1 -1
  4. package/internal/detect-platform.mjs +3 -3
  5. package/internal/detect-platform.mjs.map +1 -1
  6. package/package.json +1 -1
  7. package/resources/networking/index.d.mts +1 -1
  8. package/resources/networking/index.d.ts +1 -1
  9. package/resources/networking/index.js +2 -2
  10. package/resources/networking/index.js.map +1 -1
  11. package/resources/networking/index.mjs +1 -1
  12. package/resources/networking/networking.d.mts +2 -2
  13. package/resources/networking/networking.d.ts +2 -2
  14. package/resources/networking/networking.js +2 -2
  15. package/resources/networking/networking.js.map +1 -1
  16. package/resources/networking/networking.mjs +2 -2
  17. package/resources/networking/vpcs/availability.d.mts +62 -0
  18. package/resources/networking/vpcs/availability.d.mts.map +1 -0
  19. package/resources/networking/vpcs/availability.d.ts +62 -0
  20. package/resources/networking/vpcs/availability.d.ts.map +1 -0
  21. package/resources/networking/vpcs/availability.js +40 -0
  22. package/resources/networking/vpcs/availability.js.map +1 -0
  23. package/resources/networking/vpcs/availability.mjs +36 -0
  24. package/resources/networking/vpcs/availability.mjs.map +1 -0
  25. package/resources/networking/vpcs/index.d.mts +3 -0
  26. package/resources/networking/vpcs/index.d.mts.map +1 -0
  27. package/resources/networking/vpcs/index.d.ts +3 -0
  28. package/resources/networking/vpcs/index.d.ts.map +1 -0
  29. package/resources/networking/vpcs/index.js +9 -0
  30. package/resources/networking/vpcs/index.js.map +1 -0
  31. package/resources/networking/vpcs/index.mjs +4 -0
  32. package/resources/networking/vpcs/index.mjs.map +1 -0
  33. package/resources/networking/vpcs/vpcs.d.mts +157 -0
  34. package/resources/networking/vpcs/vpcs.d.mts.map +1 -0
  35. package/resources/networking/vpcs/vpcs.d.ts +157 -0
  36. package/resources/networking/vpcs/vpcs.d.ts.map +1 -0
  37. package/resources/networking/vpcs/vpcs.js +81 -0
  38. package/resources/networking/vpcs/vpcs.js.map +1 -0
  39. package/resources/networking/vpcs/vpcs.mjs +76 -0
  40. package/resources/networking/vpcs/vpcs.mjs.map +1 -0
  41. package/resources/networking/vpcs.d.mts +1 -152
  42. package/resources/networking/vpcs.d.mts.map +1 -1
  43. package/resources/networking/vpcs.d.ts +1 -152
  44. package/resources/networking/vpcs.d.ts.map +1 -1
  45. package/resources/networking/vpcs.js +2 -69
  46. package/resources/networking/vpcs.js.map +1 -1
  47. package/resources/networking/vpcs.mjs +1 -67
  48. package/resources/networking/vpcs.mjs.map +1 -1
  49. package/src/internal/detect-platform.ts +3 -3
  50. package/src/resources/networking/index.ts +1 -1
  51. package/src/resources/networking/networking.ts +2 -2
  52. package/src/resources/networking/vpcs/availability.ts +83 -0
  53. package/src/resources/networking/vpcs/index.ts +17 -0
  54. package/src/resources/networking/vpcs/vpcs.ts +220 -0
  55. package/src/resources/networking/vpcs.ts +1 -198
  56. package/src/version.ts +1 -1
  57. package/version.d.mts +1 -1
  58. package/version.d.ts +1 -1
  59. package/version.js +1 -1
  60. package/version.mjs +1 -1
@@ -1,200 +1,3 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- import { APIResource } from '../../core/resource';
4
- import * as OperationsAPI from '../operations';
5
- import * as Shared from '../shared';
6
- import { APIPromise } from '../../core/api-promise';
7
- import { RequestOptions } from '../../internal/request-options';
8
- import { path } from '../../internal/utils/path';
9
-
10
- export class VPCs extends APIResource {
11
- /**
12
- * Create a VPC
13
- *
14
- * @example
15
- * ```ts
16
- * const operation = await client.networking.vpcs.create({
17
- * name: 'my-vpc',
18
- * region: 'us-wdc-1',
19
- * subnet_name: 'my-subnet',
20
- * });
21
- * ```
22
- */
23
- create(body: VPCCreateParams, options?: RequestOptions): APIPromise<OperationsAPI.Operation> {
24
- return this._client.post('/v1/networking/vpcs', { body, ...options });
25
- }
26
-
27
- /**
28
- * Update a VPC
29
- *
30
- * @example
31
- * ```ts
32
- * const operation = await client.networking.vpcs.update(
33
- * 'vpc_id',
34
- * );
35
- * ```
36
- */
37
- update(
38
- vpcID: string,
39
- body: VPCUpdateParams,
40
- options?: RequestOptions,
41
- ): APIPromise<OperationsAPI.Operation> {
42
- return this._client.patch(path`/v1/networking/vpcs/${vpcID}`, { body, ...options });
43
- }
44
-
45
- /**
46
- * List all VPCs
47
- *
48
- * @example
49
- * ```ts
50
- * const vpcList = await client.networking.vpcs.list();
51
- * ```
52
- */
53
- list(options?: RequestOptions): APIPromise<VPCList> {
54
- return this._client.get('/v1/networking/vpcs', options);
55
- }
56
-
57
- /**
58
- * Delete a VPC
59
- *
60
- * @example
61
- * ```ts
62
- * const operation = await client.networking.vpcs.delete(
63
- * 'vpc_id',
64
- * );
65
- * ```
66
- */
67
- delete(vpcID: string, options?: RequestOptions): APIPromise<OperationsAPI.Operation> {
68
- return this._client.delete(path`/v1/networking/vpcs/${vpcID}`, options);
69
- }
70
-
71
- /**
72
- * Get details about a VPC
73
- *
74
- * @example
75
- * ```ts
76
- * const vpc = await client.networking.vpcs.get('vpc_id');
77
- * ```
78
- */
79
- get(vpcID: string, options?: RequestOptions): APIPromise<VPC> {
80
- return this._client.get(path`/v1/networking/vpcs/${vpcID}`, options);
81
- }
82
- }
83
-
84
- /**
85
- * Subnet of the VPC.
86
- */
87
- export interface Subnet {
88
- /**
89
- * Unique identifier for the subnet.
90
- */
91
- id: string;
92
-
93
- /**
94
- * CIDR block for the subnet.
95
- */
96
- cidr: string;
97
-
98
- /**
99
- * When the subnet was created.
100
- */
101
- created_at: string;
102
-
103
- /**
104
- * Name of the subnet.
105
- */
106
- name: string;
107
-
108
- /**
109
- * When the subnet was updated.
110
- */
111
- updated_at: string;
112
- }
113
-
114
- /**
115
- * VPC details.
116
- */
117
- export interface VPC {
118
- /**
119
- * Unique identifier for the VPC.
120
- */
121
- id: string;
122
-
123
- /**
124
- * When the VPC was created.
125
- */
126
- created_at: string;
127
-
128
- /**
129
- * IDs of the firewall rules associated with the VPC.
130
- */
131
- firewall_rule_ids: Array<string>;
132
-
133
- /**
134
- * Name of the VPC.
135
- */
136
- name: string;
137
-
138
- /**
139
- * Region the resource is in.
140
- */
141
- region: Shared.RegionName;
142
-
143
- /**
144
- * Status of the resource.
145
- */
146
- status: Shared.ResourceStatus;
147
-
148
- /**
149
- * Subnet of the VPC.
150
- */
151
- subnet: Subnet;
152
-
153
- /**
154
- * When the VPC was updated.
155
- */
156
- updated_at: string;
157
- }
158
-
159
- export interface VPCList {
160
- items: Array<VPC>;
161
- }
162
-
163
- export interface VPCCreateParams {
164
- /**
165
- * Name of the VPC.
166
- */
167
- name: string;
168
-
169
- /**
170
- * Region the resource is in.
171
- */
172
- region: Shared.RegionName;
173
-
174
- /**
175
- * Name of the subnet to create.
176
- */
177
- subnet_name: string;
178
- }
179
-
180
- export interface VPCUpdateParams {
181
- /**
182
- * Name of the VPC.
183
- */
184
- name?: string;
185
-
186
- /**
187
- * Name of the subnet to create.
188
- */
189
- subnet_name?: string;
190
- }
191
-
192
- export declare namespace VPCs {
193
- export {
194
- type Subnet as Subnet,
195
- type VPC as VPC,
196
- type VPCList as VPCList,
197
- type VPCCreateParams as VPCCreateParams,
198
- type VPCUpdateParams as VPCUpdateParams,
199
- };
200
- }
3
+ export * from './vpcs/index';
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '1.2.0'; // x-release-please-version
1
+ export const VERSION = '1.3.1'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.2.0";
1
+ export declare const VERSION = "1.3.1";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.2.0";
1
+ export declare const VERSION = "1.3.1";
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.2.0'; // x-release-please-version
4
+ exports.VERSION = '1.3.1'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '1.2.0'; // x-release-please-version
1
+ export const VERSION = '1.3.1'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map