@nirvana-labs/nirvana 1.17.3 → 1.18.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.
- package/CHANGELOG.md +50 -0
- package/bin/cli +4 -10
- package/client.d.mts +1 -1
- package/client.d.ts +1 -1
- package/client.js +3 -3
- package/client.js.map +1 -1
- package/client.mjs +3 -3
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/api-keys.d.mts +25 -13
- package/resources/api-keys.d.mts.map +1 -1
- package/resources/api-keys.d.ts +25 -13
- package/resources/api-keys.d.ts.map +1 -1
- package/resources/compute/vms/availability.d.mts +3 -3
- package/resources/compute/vms/availability.d.ts +3 -3
- package/resources/compute/vms/vms.d.mts +3 -3
- package/resources/compute/vms/vms.d.ts +3 -3
- package/resources/compute/volumes/availability.d.mts +5 -5
- package/resources/compute/volumes/availability.d.ts +5 -5
- package/resources/compute/volumes/volumes.d.mts +14 -14
- package/resources/compute/volumes/volumes.d.ts +14 -14
- package/resources/connect/connect.d.mts +4 -4
- package/resources/connect/connect.d.mts.map +1 -1
- package/resources/connect/connect.d.ts +4 -4
- package/resources/connect/connect.d.ts.map +1 -1
- package/resources/connect/connect.js +4 -4
- package/resources/connect/connect.js.map +1 -1
- package/resources/connect/connect.mjs +4 -4
- package/resources/connect/connect.mjs.map +1 -1
- package/resources/connect/flux/flux.d.mts +204 -0
- package/resources/connect/flux/flux.d.mts.map +1 -0
- package/resources/connect/flux/flux.d.ts +204 -0
- package/resources/connect/flux/flux.d.ts.map +1 -0
- package/resources/connect/flux/flux.js +83 -0
- package/resources/connect/flux/flux.js.map +1 -0
- package/resources/connect/flux/flux.mjs +78 -0
- package/resources/connect/flux/flux.mjs.map +1 -0
- package/resources/connect/flux/index.d.mts +3 -0
- package/resources/connect/flux/index.d.mts.map +1 -0
- package/resources/connect/flux/index.d.ts +3 -0
- package/resources/connect/flux/index.d.ts.map +1 -0
- package/resources/connect/flux/index.js +9 -0
- package/resources/connect/flux/index.js.map +1 -0
- package/resources/connect/flux/index.mjs +4 -0
- package/resources/connect/flux/index.mjs.map +1 -0
- package/resources/connect/flux/providers.d.mts +17 -0
- package/resources/connect/flux/providers.d.mts.map +1 -0
- package/resources/connect/flux/providers.d.ts +17 -0
- package/resources/connect/flux/providers.d.ts.map +1 -0
- package/resources/connect/flux/providers.js +21 -0
- package/resources/connect/flux/providers.js.map +1 -0
- package/resources/connect/flux/providers.mjs +17 -0
- package/resources/connect/flux/providers.mjs.map +1 -0
- package/resources/connect/flux.d.mts +1 -69
- package/resources/connect/flux.d.mts.map +1 -1
- package/resources/connect/flux.d.ts +1 -69
- package/resources/connect/flux.d.ts.map +1 -1
- package/resources/connect/flux.js +2 -18
- package/resources/connect/flux.js.map +1 -1
- package/resources/connect/flux.mjs +1 -16
- package/resources/connect/flux.mjs.map +1 -1
- package/resources/connect/index.d.mts +1 -1
- package/resources/connect/index.d.mts.map +1 -1
- package/resources/connect/index.d.ts +1 -1
- package/resources/connect/index.d.ts.map +1 -1
- package/resources/connect/index.js +3 -3
- package/resources/connect/index.js.map +1 -1
- package/resources/connect/index.mjs +1 -1
- package/resources/connect/index.mjs.map +1 -1
- package/resources/networking/firewall-rules.d.mts +19 -19
- package/resources/networking/firewall-rules.d.ts +19 -19
- package/resources/networking/vpcs/vpcs.d.mts +5 -5
- package/resources/networking/vpcs/vpcs.d.ts +5 -5
- package/resources/operations.d.mts +10 -10
- package/resources/operations.d.ts +10 -10
- package/resources/rpc-nodes/dedicated/blockchains.d.mts +1 -1
- package/resources/rpc-nodes/dedicated/blockchains.d.mts.map +1 -1
- package/resources/rpc-nodes/dedicated/blockchains.d.ts +1 -1
- package/resources/rpc-nodes/dedicated/blockchains.d.ts.map +1 -1
- package/resources/rpc-nodes/dedicated/dedicated.d.mts +12 -12
- package/resources/rpc-nodes/dedicated/dedicated.d.mts.map +1 -1
- package/resources/rpc-nodes/dedicated/dedicated.d.ts +12 -12
- package/resources/rpc-nodes/dedicated/dedicated.d.ts.map +1 -1
- package/resources/rpc-nodes/dedicated/dedicated.js +4 -4
- package/resources/rpc-nodes/dedicated/dedicated.js.map +1 -1
- package/resources/rpc-nodes/dedicated/dedicated.mjs +2 -2
- package/resources/rpc-nodes/dedicated/dedicated.mjs.map +1 -1
- package/resources/rpc-nodes/dedicated/index.d.mts +1 -1
- package/resources/rpc-nodes/dedicated/index.d.mts.map +1 -1
- package/resources/rpc-nodes/dedicated/index.d.ts +1 -1
- package/resources/rpc-nodes/dedicated/index.d.ts.map +1 -1
- package/resources/rpc-nodes/dedicated/index.js +2 -2
- package/resources/rpc-nodes/dedicated/index.js.map +1 -1
- package/resources/rpc-nodes/dedicated/index.mjs +1 -1
- package/resources/rpc-nodes/dedicated/index.mjs.map +1 -1
- package/resources/rpc-nodes/flex/blockchains.d.mts +1 -1
- package/resources/rpc-nodes/flex/blockchains.d.mts.map +1 -1
- package/resources/rpc-nodes/flex/blockchains.d.ts +1 -1
- package/resources/rpc-nodes/flex/blockchains.d.ts.map +1 -1
- package/resources/rpc-nodes/flex/flex.d.mts +12 -12
- package/resources/rpc-nodes/flex/flex.d.mts.map +1 -1
- package/resources/rpc-nodes/flex/flex.d.ts +12 -12
- package/resources/rpc-nodes/flex/flex.d.ts.map +1 -1
- package/resources/rpc-nodes/flex/flex.js +4 -4
- package/resources/rpc-nodes/flex/flex.js.map +1 -1
- package/resources/rpc-nodes/flex/flex.mjs +2 -2
- package/resources/rpc-nodes/flex/flex.mjs.map +1 -1
- package/resources/rpc-nodes/flex/index.d.mts +1 -1
- package/resources/rpc-nodes/flex/index.d.mts.map +1 -1
- package/resources/rpc-nodes/flex/index.d.ts +1 -1
- package/resources/rpc-nodes/flex/index.d.ts.map +1 -1
- package/resources/rpc-nodes/flex/index.js +2 -2
- package/resources/rpc-nodes/flex/index.js.map +1 -1
- package/resources/rpc-nodes/flex/index.mjs +1 -1
- package/resources/rpc-nodes/flex/index.mjs.map +1 -1
- package/resources/rpc-nodes/index.d.mts +2 -2
- package/resources/rpc-nodes/index.d.mts.map +1 -1
- package/resources/rpc-nodes/index.d.ts +2 -2
- package/resources/rpc-nodes/index.d.ts.map +1 -1
- package/resources/rpc-nodes/index.js +3 -3
- package/resources/rpc-nodes/index.js.map +1 -1
- package/resources/rpc-nodes/index.mjs +2 -2
- package/resources/rpc-nodes/index.mjs.map +1 -1
- package/resources/rpc-nodes/rpc-nodes.d.mts +6 -6
- package/resources/rpc-nodes/rpc-nodes.d.mts.map +1 -1
- package/resources/rpc-nodes/rpc-nodes.d.ts +6 -6
- package/resources/rpc-nodes/rpc-nodes.d.ts.map +1 -1
- package/resources/rpc-nodes/rpc-nodes.js +4 -4
- package/resources/rpc-nodes/rpc-nodes.js.map +1 -1
- package/resources/rpc-nodes/rpc-nodes.mjs +6 -6
- package/resources/rpc-nodes/rpc-nodes.mjs.map +1 -1
- package/resources/user.d.mts +6 -3
- package/resources/user.d.mts.map +1 -1
- package/resources/user.d.ts +6 -3
- package/resources/user.d.ts.map +1 -1
- package/src/client.ts +3 -3
- package/src/resources/api-keys.ts +28 -13
- package/src/resources/compute/vms/availability.ts +3 -3
- package/src/resources/compute/vms/vms.ts +3 -3
- package/src/resources/compute/volumes/availability.ts +5 -5
- package/src/resources/compute/volumes/volumes.ts +14 -14
- package/src/resources/connect/connect.ts +25 -5
- package/src/resources/connect/flux/flux.ts +267 -0
- package/src/resources/connect/flux/index.ts +14 -0
- package/src/resources/connect/flux/providers.ts +21 -0
- package/src/resources/connect/flux.ts +1 -89
- package/src/resources/connect/index.ts +11 -1
- package/src/resources/networking/firewall-rules.ts +19 -19
- package/src/resources/networking/vpcs/vpcs.ts +5 -5
- package/src/resources/operations.ts +10 -10
- package/src/resources/rpc-nodes/dedicated/blockchains.ts +1 -1
- package/src/resources/rpc-nodes/dedicated/dedicated.ts +16 -16
- package/src/resources/rpc-nodes/dedicated/index.ts +5 -5
- package/src/resources/rpc-nodes/flex/blockchains.ts +1 -1
- package/src/resources/rpc-nodes/flex/flex.ts +16 -16
- package/src/resources/rpc-nodes/flex/index.ts +1 -7
- package/src/resources/rpc-nodes/index.ts +10 -10
- package/src/resources/rpc-nodes/rpc-nodes.ts +19 -25
- package/src/resources/user.ts +6 -3
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -33,25 +33,25 @@ export type AvailabilityCreateResponse = string;
|
|
|
33
33
|
export type AvailabilityUpdateResponse = string;
|
|
34
34
|
export interface AvailabilityCreateParams {
|
|
35
35
|
/**
|
|
36
|
-
* Name of the
|
|
36
|
+
* Name of the Volume.
|
|
37
37
|
*/
|
|
38
38
|
name: string;
|
|
39
39
|
/**
|
|
40
|
-
* Size of the
|
|
40
|
+
* Size of the Volume in GB.
|
|
41
41
|
*/
|
|
42
42
|
size: number;
|
|
43
43
|
/**
|
|
44
|
-
* ID of the VM the
|
|
44
|
+
* ID of the VM the Volume is attached to.
|
|
45
45
|
*/
|
|
46
46
|
vm_id: string;
|
|
47
47
|
}
|
|
48
48
|
export interface AvailabilityUpdateParams {
|
|
49
49
|
/**
|
|
50
|
-
* Name of the
|
|
50
|
+
* Name of the Volume.
|
|
51
51
|
*/
|
|
52
52
|
name?: string;
|
|
53
53
|
/**
|
|
54
|
-
* Size of the
|
|
54
|
+
* Size of the Volume in GB.
|
|
55
55
|
*/
|
|
56
56
|
size?: number;
|
|
57
57
|
}
|
|
@@ -33,25 +33,25 @@ export type AvailabilityCreateResponse = string;
|
|
|
33
33
|
export type AvailabilityUpdateResponse = string;
|
|
34
34
|
export interface AvailabilityCreateParams {
|
|
35
35
|
/**
|
|
36
|
-
* Name of the
|
|
36
|
+
* Name of the Volume.
|
|
37
37
|
*/
|
|
38
38
|
name: string;
|
|
39
39
|
/**
|
|
40
|
-
* Size of the
|
|
40
|
+
* Size of the Volume in GB.
|
|
41
41
|
*/
|
|
42
42
|
size: number;
|
|
43
43
|
/**
|
|
44
|
-
* ID of the VM the
|
|
44
|
+
* ID of the VM the Volume is attached to.
|
|
45
45
|
*/
|
|
46
46
|
vm_id: string;
|
|
47
47
|
}
|
|
48
48
|
export interface AvailabilityUpdateParams {
|
|
49
49
|
/**
|
|
50
|
-
* Name of the
|
|
50
|
+
* Name of the Volume.
|
|
51
51
|
*/
|
|
52
52
|
name?: string;
|
|
53
53
|
/**
|
|
54
|
-
* Size of the
|
|
54
|
+
* Size of the Volume in GB.
|
|
55
55
|
*/
|
|
56
56
|
size?: number;
|
|
57
57
|
}
|
|
@@ -64,7 +64,7 @@ export declare class Volumes extends APIResource {
|
|
|
64
64
|
get(volumeID: string, options?: RequestOptions): APIPromise<Volume>;
|
|
65
65
|
}
|
|
66
66
|
/**
|
|
67
|
-
* Storage type the
|
|
67
|
+
* Storage type the Volume is using.
|
|
68
68
|
*/
|
|
69
69
|
export type StorageType = 'nvme';
|
|
70
70
|
/**
|
|
@@ -72,11 +72,11 @@ export type StorageType = 'nvme';
|
|
|
72
72
|
*/
|
|
73
73
|
export interface Volume {
|
|
74
74
|
/**
|
|
75
|
-
* Unique identifier for the
|
|
75
|
+
* Unique identifier for the Volume.
|
|
76
76
|
*/
|
|
77
77
|
id: string;
|
|
78
78
|
/**
|
|
79
|
-
* When the
|
|
79
|
+
* When the Volume was created.
|
|
80
80
|
*/
|
|
81
81
|
created_at: string;
|
|
82
82
|
/**
|
|
@@ -84,11 +84,11 @@ export interface Volume {
|
|
|
84
84
|
*/
|
|
85
85
|
kind: VolumeKind;
|
|
86
86
|
/**
|
|
87
|
-
* Name of the
|
|
87
|
+
* Name of the Volume.
|
|
88
88
|
*/
|
|
89
89
|
name: string;
|
|
90
90
|
/**
|
|
91
|
-
* Size of the
|
|
91
|
+
* Size of the Volume in GB.
|
|
92
92
|
*/
|
|
93
93
|
size: number;
|
|
94
94
|
/**
|
|
@@ -96,19 +96,19 @@ export interface Volume {
|
|
|
96
96
|
*/
|
|
97
97
|
status: Shared.ResourceStatus;
|
|
98
98
|
/**
|
|
99
|
-
* Storage type the
|
|
99
|
+
* Storage type the Volume is using.
|
|
100
100
|
*/
|
|
101
101
|
type: StorageType;
|
|
102
102
|
/**
|
|
103
|
-
* When the
|
|
103
|
+
* When the Volume was updated.
|
|
104
104
|
*/
|
|
105
105
|
updated_at: string;
|
|
106
106
|
/**
|
|
107
|
-
* ID of the VM the
|
|
107
|
+
* ID of the VM the Volume is attached to.
|
|
108
108
|
*/
|
|
109
109
|
vm_id: string | null;
|
|
110
110
|
/**
|
|
111
|
-
* Name of the VM the
|
|
111
|
+
* Name of the VM the Volume is attached to.
|
|
112
112
|
*/
|
|
113
113
|
vm_name: string | null;
|
|
114
114
|
}
|
|
@@ -121,25 +121,25 @@ export interface VolumeList {
|
|
|
121
121
|
}
|
|
122
122
|
export interface VolumeCreateParams {
|
|
123
123
|
/**
|
|
124
|
-
* Name of the
|
|
124
|
+
* Name of the Volume.
|
|
125
125
|
*/
|
|
126
126
|
name: string;
|
|
127
127
|
/**
|
|
128
|
-
* Size of the
|
|
128
|
+
* Size of the Volume in GB.
|
|
129
129
|
*/
|
|
130
130
|
size: number;
|
|
131
131
|
/**
|
|
132
|
-
* ID of the VM the
|
|
132
|
+
* ID of the VM the Volume is attached to.
|
|
133
133
|
*/
|
|
134
134
|
vm_id: string;
|
|
135
135
|
}
|
|
136
136
|
export interface VolumeUpdateParams {
|
|
137
137
|
/**
|
|
138
|
-
* Name of the
|
|
138
|
+
* Name of the Volume.
|
|
139
139
|
*/
|
|
140
140
|
name?: string;
|
|
141
141
|
/**
|
|
142
|
-
* Size of the
|
|
142
|
+
* Size of the Volume in GB.
|
|
143
143
|
*/
|
|
144
144
|
size?: number;
|
|
145
145
|
}
|
|
@@ -64,7 +64,7 @@ export declare class Volumes extends APIResource {
|
|
|
64
64
|
get(volumeID: string, options?: RequestOptions): APIPromise<Volume>;
|
|
65
65
|
}
|
|
66
66
|
/**
|
|
67
|
-
* Storage type the
|
|
67
|
+
* Storage type the Volume is using.
|
|
68
68
|
*/
|
|
69
69
|
export type StorageType = 'nvme';
|
|
70
70
|
/**
|
|
@@ -72,11 +72,11 @@ export type StorageType = 'nvme';
|
|
|
72
72
|
*/
|
|
73
73
|
export interface Volume {
|
|
74
74
|
/**
|
|
75
|
-
* Unique identifier for the
|
|
75
|
+
* Unique identifier for the Volume.
|
|
76
76
|
*/
|
|
77
77
|
id: string;
|
|
78
78
|
/**
|
|
79
|
-
* When the
|
|
79
|
+
* When the Volume was created.
|
|
80
80
|
*/
|
|
81
81
|
created_at: string;
|
|
82
82
|
/**
|
|
@@ -84,11 +84,11 @@ export interface Volume {
|
|
|
84
84
|
*/
|
|
85
85
|
kind: VolumeKind;
|
|
86
86
|
/**
|
|
87
|
-
* Name of the
|
|
87
|
+
* Name of the Volume.
|
|
88
88
|
*/
|
|
89
89
|
name: string;
|
|
90
90
|
/**
|
|
91
|
-
* Size of the
|
|
91
|
+
* Size of the Volume in GB.
|
|
92
92
|
*/
|
|
93
93
|
size: number;
|
|
94
94
|
/**
|
|
@@ -96,19 +96,19 @@ export interface Volume {
|
|
|
96
96
|
*/
|
|
97
97
|
status: Shared.ResourceStatus;
|
|
98
98
|
/**
|
|
99
|
-
* Storage type the
|
|
99
|
+
* Storage type the Volume is using.
|
|
100
100
|
*/
|
|
101
101
|
type: StorageType;
|
|
102
102
|
/**
|
|
103
|
-
* When the
|
|
103
|
+
* When the Volume was updated.
|
|
104
104
|
*/
|
|
105
105
|
updated_at: string;
|
|
106
106
|
/**
|
|
107
|
-
* ID of the VM the
|
|
107
|
+
* ID of the VM the Volume is attached to.
|
|
108
108
|
*/
|
|
109
109
|
vm_id: string | null;
|
|
110
110
|
/**
|
|
111
|
-
* Name of the VM the
|
|
111
|
+
* Name of the VM the Volume is attached to.
|
|
112
112
|
*/
|
|
113
113
|
vm_name: string | null;
|
|
114
114
|
}
|
|
@@ -121,25 +121,25 @@ export interface VolumeList {
|
|
|
121
121
|
}
|
|
122
122
|
export interface VolumeCreateParams {
|
|
123
123
|
/**
|
|
124
|
-
* Name of the
|
|
124
|
+
* Name of the Volume.
|
|
125
125
|
*/
|
|
126
126
|
name: string;
|
|
127
127
|
/**
|
|
128
|
-
* Size of the
|
|
128
|
+
* Size of the Volume in GB.
|
|
129
129
|
*/
|
|
130
130
|
size: number;
|
|
131
131
|
/**
|
|
132
|
-
* ID of the VM the
|
|
132
|
+
* ID of the VM the Volume is attached to.
|
|
133
133
|
*/
|
|
134
134
|
vm_id: string;
|
|
135
135
|
}
|
|
136
136
|
export interface VolumeUpdateParams {
|
|
137
137
|
/**
|
|
138
|
-
* Name of the
|
|
138
|
+
* Name of the Volume.
|
|
139
139
|
*/
|
|
140
140
|
name?: string;
|
|
141
141
|
/**
|
|
142
|
-
* Size of the
|
|
142
|
+
* Size of the Volume in GB.
|
|
143
143
|
*/
|
|
144
144
|
size?: number;
|
|
145
145
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
-
import * as FluxAPI from "./flux.mjs";
|
|
3
|
-
import {
|
|
2
|
+
import * as FluxAPI from "./flux/flux.mjs";
|
|
3
|
+
import { Flux, FluxCreateParams, FluxList, FluxProvider, FluxProviderAWSConfig, FluxProviderAWSConfigRequest, FluxProviderList, FluxResource, FluxUpdateParams } from "./flux/flux.mjs";
|
|
4
4
|
export declare class Connect extends APIResource {
|
|
5
|
-
flux: FluxAPI.
|
|
5
|
+
flux: FluxAPI.FluxResource;
|
|
6
6
|
}
|
|
7
7
|
export declare namespace Connect {
|
|
8
|
-
export { Flux as Flux, type
|
|
8
|
+
export { FluxResource as FluxResource, type Flux as Flux, type FluxList as FluxList, type FluxProvider as FluxProvider, type FluxProviderAWSConfig as FluxProviderAWSConfig, type FluxProviderAWSConfigRequest as FluxProviderAWSConfigRequest, type FluxProviderList as FluxProviderList, type FluxCreateParams as FluxCreateParams, type FluxUpdateParams as FluxUpdateParams, };
|
|
9
9
|
}
|
|
10
10
|
//# sourceMappingURL=connect.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connect.d.mts","sourceRoot":"","sources":["../../src/resources/connect/connect.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,
|
|
1
|
+
{"version":3,"file":"connect.d.mts","sourceRoot":"","sources":["../../src/resources/connect/connect.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EACL,IAAI,EACJ,gBAAgB,EAChB,QAAQ,EACR,YAAY,EACZ,qBAAqB,EACrB,4BAA4B,EAC5B,gBAAgB,EAChB,YAAY,EACZ,gBAAgB,EACjB;AAED,qBAAa,OAAQ,SAAQ,WAAW;IACtC,IAAI,EAAE,OAAO,CAAC,YAAY,CAA0C;CACrE;AAID,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,YAAY,IAAI,YAAY,EAC5B,KAAK,IAAI,IAAI,IAAI,EACjB,KAAK,QAAQ,IAAI,QAAQ,EACzB,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.js";
|
|
2
|
-
import * as FluxAPI from "./flux.js";
|
|
3
|
-
import {
|
|
2
|
+
import * as FluxAPI from "./flux/flux.js";
|
|
3
|
+
import { Flux, FluxCreateParams, FluxList, FluxProvider, FluxProviderAWSConfig, FluxProviderAWSConfigRequest, FluxProviderList, FluxResource, FluxUpdateParams } from "./flux/flux.js";
|
|
4
4
|
export declare class Connect extends APIResource {
|
|
5
|
-
flux: FluxAPI.
|
|
5
|
+
flux: FluxAPI.FluxResource;
|
|
6
6
|
}
|
|
7
7
|
export declare namespace Connect {
|
|
8
|
-
export { Flux as Flux, type
|
|
8
|
+
export { FluxResource as FluxResource, type Flux as Flux, type FluxList as FluxList, type FluxProvider as FluxProvider, type FluxProviderAWSConfig as FluxProviderAWSConfig, type FluxProviderAWSConfigRequest as FluxProviderAWSConfigRequest, type FluxProviderList as FluxProviderList, type FluxCreateParams as FluxCreateParams, type FluxUpdateParams as FluxUpdateParams, };
|
|
9
9
|
}
|
|
10
10
|
//# sourceMappingURL=connect.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connect.d.ts","sourceRoot":"","sources":["../../src/resources/connect/connect.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,
|
|
1
|
+
{"version":3,"file":"connect.d.ts","sourceRoot":"","sources":["../../src/resources/connect/connect.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EACL,IAAI,EACJ,gBAAgB,EAChB,QAAQ,EACR,YAAY,EACZ,qBAAqB,EACrB,4BAA4B,EAC5B,gBAAgB,EAChB,YAAY,EACZ,gBAAgB,EACjB;AAED,qBAAa,OAAQ,SAAQ,WAAW;IACtC,IAAI,EAAE,OAAO,CAAC,YAAY,CAA0C;CACrE;AAID,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,YAAY,IAAI,YAAY,EAC5B,KAAK,IAAI,IAAI,IAAI,EACjB,KAAK,QAAQ,IAAI,QAAQ,EACzB,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
|
@@ -4,14 +4,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.Connect = void 0;
|
|
5
5
|
const tslib_1 = require("../../internal/tslib.js");
|
|
6
6
|
const resource_1 = require("../../core/resource.js");
|
|
7
|
-
const FluxAPI = tslib_1.__importStar(require("./flux.js"));
|
|
8
|
-
const flux_1 = require("./flux.js");
|
|
7
|
+
const FluxAPI = tslib_1.__importStar(require("./flux/flux.js"));
|
|
8
|
+
const flux_1 = require("./flux/flux.js");
|
|
9
9
|
class Connect extends resource_1.APIResource {
|
|
10
10
|
constructor() {
|
|
11
11
|
super(...arguments);
|
|
12
|
-
this.flux = new FluxAPI.
|
|
12
|
+
this.flux = new FluxAPI.FluxResource(this._client);
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
exports.Connect = Connect;
|
|
16
|
-
Connect.
|
|
16
|
+
Connect.FluxResource = flux_1.FluxResource;
|
|
17
17
|
//# sourceMappingURL=connect.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connect.js","sourceRoot":"","sources":["../../src/resources/connect/connect.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,
|
|
1
|
+
{"version":3,"file":"connect.js","sourceRoot":"","sources":["../../src/resources/connect/connect.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,gEAAuC;AACvC,yCAUqB;AAErB,MAAa,OAAQ,SAAQ,sBAAW;IAAxC;;QACE,SAAI,GAAyB,IAAI,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACtE,CAAC;CAAA;AAFD,0BAEC;AAED,OAAO,CAAC,YAAY,GAAG,mBAAY,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
-
import * as FluxAPI from "./flux.mjs";
|
|
4
|
-
import {
|
|
3
|
+
import * as FluxAPI from "./flux/flux.mjs";
|
|
4
|
+
import { FluxResource, } from "./flux/flux.mjs";
|
|
5
5
|
export class Connect extends APIResource {
|
|
6
6
|
constructor() {
|
|
7
7
|
super(...arguments);
|
|
8
|
-
this.flux = new FluxAPI.
|
|
8
|
+
this.flux = new FluxAPI.FluxResource(this._client);
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
-
Connect.
|
|
11
|
+
Connect.FluxResource = FluxResource;
|
|
12
12
|
//# sourceMappingURL=connect.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connect.mjs","sourceRoot":"","sources":["../../src/resources/connect/connect.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,
|
|
1
|
+
{"version":3,"file":"connect.mjs","sourceRoot":"","sources":["../../src/resources/connect/connect.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EAQL,YAAY,GAEb;AAED,MAAM,OAAO,OAAQ,SAAQ,WAAW;IAAxC;;QACE,SAAI,GAAyB,IAAI,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACtE,CAAC;CAAA;AAED,OAAO,CAAC,YAAY,GAAG,YAAY,CAAC"}
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
+
import * as OperationsAPI from "../../operations.mjs";
|
|
3
|
+
import * as Shared from "../../shared.mjs";
|
|
4
|
+
import * as ProvidersAPI from "./providers.mjs";
|
|
5
|
+
import { Providers } from "./providers.mjs";
|
|
6
|
+
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
7
|
+
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
8
|
+
export declare class FluxResource extends APIResource {
|
|
9
|
+
providers: ProvidersAPI.Providers;
|
|
10
|
+
/**
|
|
11
|
+
* Create a Connect Flux
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const operation = await client.connect.flux.create({
|
|
16
|
+
* bandwidth_mbps: 50,
|
|
17
|
+
* cidrs: ['10.0.0.0/16'],
|
|
18
|
+
* name: 'my-connect-flux',
|
|
19
|
+
* provider_cidrs: ['172.16.0.0/16'],
|
|
20
|
+
* region: 'us-wdc-1',
|
|
21
|
+
* });
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
create(body: FluxCreateParams, options?: RequestOptions): APIPromise<OperationsAPI.Operation>;
|
|
25
|
+
/**
|
|
26
|
+
* Update Connect Flux details
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```ts
|
|
30
|
+
* const operation = await client.connect.flux.update(
|
|
31
|
+
* 'flux_id',
|
|
32
|
+
* );
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
update(fluxID: string, body: FluxUpdateParams, options?: RequestOptions): APIPromise<OperationsAPI.Operation>;
|
|
36
|
+
/**
|
|
37
|
+
* List all Connect Flux
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```ts
|
|
41
|
+
* const fluxList = await client.connect.flux.list();
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
list(options?: RequestOptions): APIPromise<FluxList>;
|
|
45
|
+
/**
|
|
46
|
+
* Delete Connect Flux
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* ```ts
|
|
50
|
+
* const operation = await client.connect.flux.delete(
|
|
51
|
+
* 'flux_id',
|
|
52
|
+
* );
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
delete(fluxID: string, options?: RequestOptions): APIPromise<OperationsAPI.Operation>;
|
|
56
|
+
/**
|
|
57
|
+
* Get Connect Flux details
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
* ```ts
|
|
61
|
+
* const flux = await client.connect.flux.get('flux_id');
|
|
62
|
+
* ```
|
|
63
|
+
*/
|
|
64
|
+
get(fluxID: string, options?: RequestOptions): APIPromise<Flux>;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Connect flux details.
|
|
68
|
+
*/
|
|
69
|
+
export interface Flux {
|
|
70
|
+
/**
|
|
71
|
+
* Unique identifier for the Connect Flux
|
|
72
|
+
*/
|
|
73
|
+
id: string;
|
|
74
|
+
/**
|
|
75
|
+
* ASN
|
|
76
|
+
*/
|
|
77
|
+
asn: number | null;
|
|
78
|
+
/**
|
|
79
|
+
* AWS provider configuration
|
|
80
|
+
*/
|
|
81
|
+
aws: FluxProviderAWSConfig | null;
|
|
82
|
+
/**
|
|
83
|
+
* Connect Flux speed in Mbps
|
|
84
|
+
*/
|
|
85
|
+
bandwidth_mbps: 50 | 200 | 500 | 1000 | 2000;
|
|
86
|
+
/**
|
|
87
|
+
* CIDRs for the Connect Flux
|
|
88
|
+
*/
|
|
89
|
+
cidrs: Array<string>;
|
|
90
|
+
/**
|
|
91
|
+
* When the Connect Flux was created
|
|
92
|
+
*/
|
|
93
|
+
created_at: string;
|
|
94
|
+
/**
|
|
95
|
+
* Name of the Connect Flux
|
|
96
|
+
*/
|
|
97
|
+
name: string;
|
|
98
|
+
/**
|
|
99
|
+
* Provider ASN
|
|
100
|
+
*/
|
|
101
|
+
provider_asn: number | null;
|
|
102
|
+
/**
|
|
103
|
+
* Provider CIDRs for the Connect Flux
|
|
104
|
+
*/
|
|
105
|
+
provider_cidrs: Array<string>;
|
|
106
|
+
/**
|
|
107
|
+
* Provider Router IP
|
|
108
|
+
*/
|
|
109
|
+
provider_router_ip: string | null;
|
|
110
|
+
/**
|
|
111
|
+
* Region the resource is in.
|
|
112
|
+
*/
|
|
113
|
+
region: Shared.RegionName;
|
|
114
|
+
/**
|
|
115
|
+
* Router IP
|
|
116
|
+
*/
|
|
117
|
+
router_ip: string | null;
|
|
118
|
+
/**
|
|
119
|
+
* Status of the resource.
|
|
120
|
+
*/
|
|
121
|
+
status: Shared.ResourceStatus;
|
|
122
|
+
/**
|
|
123
|
+
* When the Connect Flux was updated
|
|
124
|
+
*/
|
|
125
|
+
updated_at: string;
|
|
126
|
+
}
|
|
127
|
+
export interface FluxList {
|
|
128
|
+
items: Array<Flux>;
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Provider supported for Connect Flux.
|
|
132
|
+
*/
|
|
133
|
+
export interface FluxProvider {
|
|
134
|
+
/**
|
|
135
|
+
* Provider name.
|
|
136
|
+
*/
|
|
137
|
+
name: string;
|
|
138
|
+
/**
|
|
139
|
+
* Provider region name.
|
|
140
|
+
*/
|
|
141
|
+
region: string;
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* AWS provider configuration
|
|
145
|
+
*/
|
|
146
|
+
export interface FluxProviderAWSConfig {
|
|
147
|
+
/**
|
|
148
|
+
* AWS region where the connection is established
|
|
149
|
+
*/
|
|
150
|
+
region: string;
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* AWS provider configuration
|
|
154
|
+
*/
|
|
155
|
+
export interface FluxProviderAWSConfigRequest {
|
|
156
|
+
/**
|
|
157
|
+
* AWS account number
|
|
158
|
+
*/
|
|
159
|
+
account_number: string;
|
|
160
|
+
/**
|
|
161
|
+
* AWS region where the connection will be established
|
|
162
|
+
*/
|
|
163
|
+
region: string;
|
|
164
|
+
}
|
|
165
|
+
export interface FluxProviderList {
|
|
166
|
+
items: Array<FluxProvider>;
|
|
167
|
+
}
|
|
168
|
+
export interface FluxCreateParams {
|
|
169
|
+
/**
|
|
170
|
+
* Connect Flux speed in Mbps
|
|
171
|
+
*/
|
|
172
|
+
bandwidth_mbps: 50 | 200 | 500 | 1000 | 2000;
|
|
173
|
+
/**
|
|
174
|
+
* CIDRs for the Connect Flux
|
|
175
|
+
*/
|
|
176
|
+
cidrs: Array<string>;
|
|
177
|
+
/**
|
|
178
|
+
* Name of the Connect Flux
|
|
179
|
+
*/
|
|
180
|
+
name: string;
|
|
181
|
+
/**
|
|
182
|
+
* Provider CIDRs
|
|
183
|
+
*/
|
|
184
|
+
provider_cidrs: Array<string>;
|
|
185
|
+
/**
|
|
186
|
+
* Region the resource is in.
|
|
187
|
+
*/
|
|
188
|
+
region: Shared.RegionName;
|
|
189
|
+
/**
|
|
190
|
+
* AWS provider configuration
|
|
191
|
+
*/
|
|
192
|
+
aws?: FluxProviderAWSConfigRequest;
|
|
193
|
+
}
|
|
194
|
+
export interface FluxUpdateParams {
|
|
195
|
+
/**
|
|
196
|
+
* Name of the Connect Flux.
|
|
197
|
+
*/
|
|
198
|
+
name?: string;
|
|
199
|
+
}
|
|
200
|
+
export declare namespace FluxResource {
|
|
201
|
+
export { type Flux as Flux, type FluxList as FluxList, type FluxProvider as FluxProvider, type FluxProviderAWSConfig as FluxProviderAWSConfig, type FluxProviderAWSConfigRequest as FluxProviderAWSConfigRequest, type FluxProviderList as FluxProviderList, type FluxCreateParams as FluxCreateParams, type FluxUpdateParams as FluxUpdateParams, };
|
|
202
|
+
export { Providers as Providers };
|
|
203
|
+
}
|
|
204
|
+
//# sourceMappingURL=flux.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flux.d.mts","sourceRoot":"","sources":["../../../src/resources/connect/flux/flux.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,aAAa;OAClB,KAAK,MAAM;OACX,KAAK,YAAY;OACjB,EAAE,SAAS,EAAE;OACb,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C,SAAS,EAAE,YAAY,CAAC,SAAS,CAA4C;IAE7E;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,aAAa,CAAC,SAAS,CAAC;IAI7F;;;;;;;;;OASG;IACH,MAAM,CACJ,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,gBAAgB,EACtB,OAAO,CAAC,EAAE,cAAc,G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