@nirvana-labs/nirvana 1.19.0 → 1.20.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.
- package/CHANGELOG.md +18 -0
- package/README.md +7 -7
- package/client.d.mts +0 -3
- package/client.d.mts.map +1 -1
- package/client.d.ts +0 -3
- package/client.d.ts.map +1 -1
- package/client.js +0 -3
- package/client.js.map +1 -1
- package/client.mjs +0 -3
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/index.d.mts +0 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +0 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +0 -1
- package/resources/index.mjs.map +1 -1
- package/resources/networking/connect/connect.d.mts +130 -0
- package/resources/networking/connect/connect.d.mts.map +1 -0
- package/resources/networking/connect/connect.d.ts +130 -0
- package/resources/networking/connect/connect.d.ts.map +1 -0
- package/resources/networking/connect/connect.js +21 -0
- package/resources/networking/connect/connect.js.map +1 -0
- package/resources/networking/connect/connect.mjs +16 -0
- package/resources/networking/connect/connect.mjs.map +1 -0
- package/resources/networking/connect/connections.d.mts +114 -0
- package/resources/networking/connect/connections.d.mts.map +1 -0
- package/resources/networking/connect/connections.d.ts +114 -0
- package/resources/networking/connect/connections.d.ts.map +1 -0
- package/resources/networking/connect/connections.js +82 -0
- package/resources/networking/connect/connections.js.map +1 -0
- package/resources/networking/connect/connections.mjs +78 -0
- package/resources/networking/connect/connections.mjs.map +1 -0
- package/resources/networking/connect/index.d.mts +4 -0
- package/resources/networking/connect/index.d.mts.map +1 -0
- package/resources/networking/connect/index.d.ts +4 -0
- package/resources/networking/connect/index.d.ts.map +1 -0
- package/resources/networking/connect/index.js +11 -0
- package/resources/networking/connect/index.js.map +1 -0
- package/resources/{connect/flux → networking/connect}/index.mjs +2 -1
- package/resources/networking/connect/index.mjs.map +1 -0
- package/resources/networking/connect/routes.d.mts +17 -0
- package/resources/networking/connect/routes.d.mts.map +1 -0
- package/resources/networking/connect/routes.d.ts +17 -0
- package/resources/networking/connect/routes.d.ts.map +1 -0
- package/resources/{connect/flux → networking/connect}/routes.js +4 -4
- package/resources/networking/connect/routes.js.map +1 -0
- package/resources/{connect/flux → networking/connect}/routes.mjs +4 -4
- package/resources/networking/connect/routes.mjs.map +1 -0
- package/resources/networking/connect.d.mts.map +1 -0
- package/resources/networking/connect.d.ts.map +1 -0
- package/resources/{connect.js → networking/connect.js} +1 -1
- package/resources/networking/connect.js.map +1 -0
- package/resources/networking/connect.mjs.map +1 -0
- package/resources/networking/index.d.mts +1 -0
- package/resources/networking/index.d.mts.map +1 -1
- package/resources/networking/index.d.ts +1 -0
- package/resources/networking/index.d.ts.map +1 -1
- package/resources/networking/index.js +5 -3
- package/resources/networking/index.js.map +1 -1
- package/resources/networking/index.mjs +1 -0
- package/resources/networking/index.mjs.map +1 -1
- package/resources/networking/networking.d.mts +4 -0
- package/resources/networking/networking.d.mts.map +1 -1
- package/resources/networking/networking.d.ts +4 -0
- package/resources/networking/networking.d.ts.map +1 -1
- package/resources/networking/networking.js +4 -0
- package/resources/networking/networking.js.map +1 -1
- package/resources/networking/networking.mjs +4 -0
- package/resources/networking/networking.mjs.map +1 -1
- package/resources/rpc-nodes/dedicated/blockchains.d.mts +6 -0
- package/resources/rpc-nodes/dedicated/blockchains.d.mts.map +1 -1
- package/resources/rpc-nodes/dedicated/blockchains.d.ts +6 -0
- package/resources/rpc-nodes/dedicated/blockchains.d.ts.map +1 -1
- package/resources/rpc-nodes/dedicated/blockchains.js +6 -0
- package/resources/rpc-nodes/dedicated/blockchains.js.map +1 -1
- package/resources/rpc-nodes/dedicated/blockchains.mjs +6 -0
- package/resources/rpc-nodes/dedicated/blockchains.mjs.map +1 -1
- package/resources/rpc-nodes/dedicated/dedicated.d.mts +13 -0
- package/resources/rpc-nodes/dedicated/dedicated.d.mts.map +1 -1
- package/resources/rpc-nodes/dedicated/dedicated.d.ts +13 -0
- package/resources/rpc-nodes/dedicated/dedicated.d.ts.map +1 -1
- package/resources/rpc-nodes/dedicated/dedicated.js +13 -0
- package/resources/rpc-nodes/dedicated/dedicated.js.map +1 -1
- package/resources/rpc-nodes/dedicated/dedicated.mjs +13 -0
- package/resources/rpc-nodes/dedicated/dedicated.mjs.map +1 -1
- package/resources/rpc-nodes/flex/blockchains.d.mts +6 -0
- package/resources/rpc-nodes/flex/blockchains.d.mts.map +1 -1
- package/resources/rpc-nodes/flex/blockchains.d.ts +6 -0
- package/resources/rpc-nodes/flex/blockchains.d.ts.map +1 -1
- package/resources/rpc-nodes/flex/blockchains.js +6 -0
- package/resources/rpc-nodes/flex/blockchains.js.map +1 -1
- package/resources/rpc-nodes/flex/blockchains.mjs +6 -0
- package/resources/rpc-nodes/flex/blockchains.mjs.map +1 -1
- package/resources/rpc-nodes/flex/flex.d.mts +70 -1
- package/resources/rpc-nodes/flex/flex.d.mts.map +1 -1
- package/resources/rpc-nodes/flex/flex.d.ts +70 -1
- package/resources/rpc-nodes/flex/flex.d.ts.map +1 -1
- package/resources/rpc-nodes/flex/flex.js +51 -0
- package/resources/rpc-nodes/flex/flex.js.map +1 -1
- package/resources/rpc-nodes/flex/flex.mjs +51 -0
- 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.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 +1 -1
- package/resources/rpc-nodes/index.d.mts.map +1 -1
- package/resources/rpc-nodes/index.d.ts +1 -1
- package/resources/rpc-nodes/index.d.ts.map +1 -1
- package/resources/rpc-nodes/index.js.map +1 -1
- package/resources/rpc-nodes/index.mjs.map +1 -1
- package/resources/rpc-nodes/rpc-nodes.d.mts +2 -2
- package/resources/rpc-nodes/rpc-nodes.d.mts.map +1 -1
- package/resources/rpc-nodes/rpc-nodes.d.ts +2 -2
- package/resources/rpc-nodes/rpc-nodes.d.ts.map +1 -1
- package/resources/rpc-nodes/rpc-nodes.js.map +1 -1
- package/resources/rpc-nodes/rpc-nodes.mjs +1 -1
- package/resources/rpc-nodes/rpc-nodes.mjs.map +1 -1
- package/src/client.ts +0 -5
- package/src/resources/index.ts +0 -1
- package/src/resources/networking/connect/connect.ts +174 -0
- package/src/resources/networking/connect/connections.ts +148 -0
- package/src/resources/networking/connect/index.ts +14 -0
- package/src/resources/{connect/flux → networking/connect}/routes.ts +6 -6
- package/src/resources/networking/index.ts +10 -0
- package/src/resources/networking/networking.ts +24 -0
- package/src/resources/rpc-nodes/dedicated/blockchains.ts +6 -0
- package/src/resources/rpc-nodes/dedicated/dedicated.ts +13 -0
- package/src/resources/rpc-nodes/flex/blockchains.ts +6 -0
- package/src/resources/rpc-nodes/flex/flex.ts +90 -0
- package/src/resources/rpc-nodes/flex/index.ts +9 -1
- package/src/resources/rpc-nodes/index.ts +2 -0
- package/src/resources/rpc-nodes/rpc-nodes.ts +11 -1
- 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
- package/resources/connect/connect.d.mts +0 -10
- package/resources/connect/connect.d.mts.map +0 -1
- package/resources/connect/connect.d.ts +0 -10
- package/resources/connect/connect.d.ts.map +0 -1
- package/resources/connect/connect.js +0 -17
- package/resources/connect/connect.js.map +0 -1
- package/resources/connect/connect.mjs +0 -12
- package/resources/connect/connect.mjs.map +0 -1
- package/resources/connect/flux/flux.d.mts +0 -224
- package/resources/connect/flux/flux.d.mts.map +0 -1
- package/resources/connect/flux/flux.d.ts +0 -224
- package/resources/connect/flux/flux.d.ts.map +0 -1
- package/resources/connect/flux/flux.js +0 -83
- package/resources/connect/flux/flux.js.map +0 -1
- package/resources/connect/flux/flux.mjs +0 -78
- package/resources/connect/flux/flux.mjs.map +0 -1
- package/resources/connect/flux/index.d.mts +0 -3
- package/resources/connect/flux/index.d.mts.map +0 -1
- package/resources/connect/flux/index.d.ts +0 -3
- package/resources/connect/flux/index.d.ts.map +0 -1
- package/resources/connect/flux/index.js +0 -9
- package/resources/connect/flux/index.js.map +0 -1
- package/resources/connect/flux/index.mjs.map +0 -1
- package/resources/connect/flux/routes.d.mts +0 -17
- package/resources/connect/flux/routes.d.mts.map +0 -1
- package/resources/connect/flux/routes.d.ts +0 -17
- package/resources/connect/flux/routes.d.ts.map +0 -1
- package/resources/connect/flux/routes.js.map +0 -1
- package/resources/connect/flux/routes.mjs.map +0 -1
- package/resources/connect/flux.d.mts +0 -2
- package/resources/connect/flux.d.mts.map +0 -1
- package/resources/connect/flux.d.ts +0 -2
- package/resources/connect/flux.d.ts.map +0 -1
- package/resources/connect/flux.js +0 -6
- package/resources/connect/flux.js.map +0 -1
- package/resources/connect/flux.mjs +0 -3
- package/resources/connect/flux.mjs.map +0 -1
- package/resources/connect/index.d.mts +0 -3
- package/resources/connect/index.d.mts.map +0 -1
- package/resources/connect/index.d.ts +0 -3
- package/resources/connect/index.d.ts.map +0 -1
- package/resources/connect/index.js +0 -9
- package/resources/connect/index.js.map +0 -1
- package/resources/connect/index.mjs +0 -4
- package/resources/connect/index.mjs.map +0 -1
- package/resources/connect.d.mts.map +0 -1
- package/resources/connect.d.ts.map +0 -1
- package/resources/connect.js.map +0 -1
- package/resources/connect.mjs.map +0 -1
- package/src/resources/connect/connect.ts +0 -37
- package/src/resources/connect/flux/flux.ts +0 -293
- package/src/resources/connect/flux/index.ts +0 -15
- package/src/resources/connect/flux.ts +0 -3
- package/src/resources/connect/index.ts +0 -15
- /package/resources/{connect.d.mts → networking/connect.d.mts} +0 -0
- /package/resources/{connect.d.ts → networking/connect.d.ts} +0 -0
- /package/resources/{connect.mjs → networking/connect.mjs} +0 -0
- /package/src/resources/{connect.ts → networking/connect.ts} +0 -0
|
@@ -0,0 +1,174 @@
|
|
|
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 * as ConnectionsAPI from './connections';
|
|
6
|
+
import { ConnectionCreateParams, ConnectionUpdateParams, Connections } from './connections';
|
|
7
|
+
import * as RoutesAPI from './routes';
|
|
8
|
+
import { Routes } from './routes';
|
|
9
|
+
|
|
10
|
+
export class Connect extends APIResource {
|
|
11
|
+
connections: ConnectionsAPI.Connections = new ConnectionsAPI.Connections(this._client);
|
|
12
|
+
routes: RoutesAPI.Routes = new RoutesAPI.Routes(this._client);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Connect Connection speed in Mbps
|
|
17
|
+
*/
|
|
18
|
+
export type ConnectBandwidthMbps = 50 | 200 | 500 | 1000 | 2000;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Connect Connection details.
|
|
22
|
+
*/
|
|
23
|
+
export interface ConnectConnection {
|
|
24
|
+
/**
|
|
25
|
+
* Unique identifier for the Connect Connection
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* ASN
|
|
31
|
+
*/
|
|
32
|
+
asn: number | null;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* AWS provider configuration
|
|
36
|
+
*/
|
|
37
|
+
aws: ConnectConnectionAWSConfig | null;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Connect Connection speed in Mbps
|
|
41
|
+
*/
|
|
42
|
+
bandwidth_mbps: ConnectBandwidthMbps;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* CIDRs for the Connect Connection
|
|
46
|
+
*/
|
|
47
|
+
cidrs: Array<string>;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* When the Connect Connection was created
|
|
51
|
+
*/
|
|
52
|
+
created_at: string;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Name of the Connect Connection
|
|
56
|
+
*/
|
|
57
|
+
name: string;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Provider ASN
|
|
61
|
+
*/
|
|
62
|
+
provider_asn: number | null;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Provider CIDRs for the Connect Connection
|
|
66
|
+
*/
|
|
67
|
+
provider_cidrs: Array<string>;
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Provider Router IP for the Connect Connection
|
|
71
|
+
*/
|
|
72
|
+
provider_router_ip: string | null;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Region the resource is in.
|
|
76
|
+
*/
|
|
77
|
+
region: Shared.RegionName;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Router IP
|
|
81
|
+
*/
|
|
82
|
+
router_ip: string | null;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Status of the resource.
|
|
86
|
+
*/
|
|
87
|
+
status: Shared.ResourceStatus;
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Tags to attach to the Connect Connection
|
|
91
|
+
*/
|
|
92
|
+
tags: Array<string>;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* When the Connect Connection was updated
|
|
96
|
+
*/
|
|
97
|
+
updated_at: string;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* AWS provider configuration
|
|
102
|
+
*/
|
|
103
|
+
export interface ConnectConnectionAWSConfig {
|
|
104
|
+
/**
|
|
105
|
+
* AWS region where the connection is established
|
|
106
|
+
*/
|
|
107
|
+
region: string;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* AWS provider configuration
|
|
112
|
+
*/
|
|
113
|
+
export interface ConnectConnectionAWSConfigRequest {
|
|
114
|
+
/**
|
|
115
|
+
* AWS account id
|
|
116
|
+
*/
|
|
117
|
+
account_id: string;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* AWS region where the connection will be established
|
|
121
|
+
*/
|
|
122
|
+
region: string;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export interface ConnectConnectionList {
|
|
126
|
+
items: Array<ConnectConnection>;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Routes supported for Connect.
|
|
131
|
+
*/
|
|
132
|
+
export interface ConnectRoute {
|
|
133
|
+
/**
|
|
134
|
+
* Region the resource is in.
|
|
135
|
+
*/
|
|
136
|
+
nirvana_region: Shared.RegionName;
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Provider name.
|
|
140
|
+
*/
|
|
141
|
+
provider: string;
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Provider region name.
|
|
145
|
+
*/
|
|
146
|
+
provider_region: string;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export interface ConnectRouteList {
|
|
150
|
+
items: Array<ConnectRoute>;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
Connect.Connections = Connections;
|
|
154
|
+
Connect.Routes = Routes;
|
|
155
|
+
|
|
156
|
+
export declare namespace Connect {
|
|
157
|
+
export {
|
|
158
|
+
type ConnectBandwidthMbps as ConnectBandwidthMbps,
|
|
159
|
+
type ConnectConnection as ConnectConnection,
|
|
160
|
+
type ConnectConnectionAWSConfig as ConnectConnectionAWSConfig,
|
|
161
|
+
type ConnectConnectionAWSConfigRequest as ConnectConnectionAWSConfigRequest,
|
|
162
|
+
type ConnectConnectionList as ConnectConnectionList,
|
|
163
|
+
type ConnectRoute as ConnectRoute,
|
|
164
|
+
type ConnectRouteList as ConnectRouteList,
|
|
165
|
+
};
|
|
166
|
+
|
|
167
|
+
export {
|
|
168
|
+
Connections as Connections,
|
|
169
|
+
type ConnectionCreateParams as ConnectionCreateParams,
|
|
170
|
+
type ConnectionUpdateParams as ConnectionUpdateParams,
|
|
171
|
+
};
|
|
172
|
+
|
|
173
|
+
export { Routes as Routes };
|
|
174
|
+
}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import * as OperationsAPI from '../../operations';
|
|
5
|
+
import * as Shared from '../../shared';
|
|
6
|
+
import * as ConnectAPI from './connect';
|
|
7
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
8
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
9
|
+
import { path } from '../../../internal/utils/path';
|
|
10
|
+
|
|
11
|
+
export class Connections extends APIResource {
|
|
12
|
+
/**
|
|
13
|
+
* Create a Connect Connection
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* const operation =
|
|
18
|
+
* await client.networking.connect.connections.create({
|
|
19
|
+
* bandwidth_mbps: 50,
|
|
20
|
+
* cidrs: ['10.0.0.0/16'],
|
|
21
|
+
* name: 'my-connect-connection',
|
|
22
|
+
* provider_cidrs: ['172.16.0.0/16'],
|
|
23
|
+
* region: 'us-wdc-1',
|
|
24
|
+
* });
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
create(body: ConnectionCreateParams, options?: RequestOptions): APIPromise<OperationsAPI.Operation> {
|
|
28
|
+
return this._client.post('/v1/networking/connect/connections', { body, ...options });
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Update Connect Connection details
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```ts
|
|
36
|
+
* const operation =
|
|
37
|
+
* await client.networking.connect.connections.update(
|
|
38
|
+
* 'connection_id',
|
|
39
|
+
* );
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
update(
|
|
43
|
+
connectionID: string,
|
|
44
|
+
body: ConnectionUpdateParams,
|
|
45
|
+
options?: RequestOptions,
|
|
46
|
+
): APIPromise<OperationsAPI.Operation> {
|
|
47
|
+
return this._client.patch(path`/v1/networking/connect/connections/${connectionID}`, { body, ...options });
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* List all Connect Connections
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* ```ts
|
|
55
|
+
* const connectConnectionList =
|
|
56
|
+
* await client.networking.connect.connections.list();
|
|
57
|
+
* ```
|
|
58
|
+
*/
|
|
59
|
+
list(options?: RequestOptions): APIPromise<ConnectAPI.ConnectConnectionList> {
|
|
60
|
+
return this._client.get('/v1/networking/connect/connections', options);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Delete Connect Connection
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* ```ts
|
|
68
|
+
* const operation =
|
|
69
|
+
* await client.networking.connect.connections.delete(
|
|
70
|
+
* 'connection_id',
|
|
71
|
+
* );
|
|
72
|
+
* ```
|
|
73
|
+
*/
|
|
74
|
+
delete(connectionID: string, options?: RequestOptions): APIPromise<OperationsAPI.Operation> {
|
|
75
|
+
return this._client.delete(path`/v1/networking/connect/connections/${connectionID}`, options);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Get Connect Connection details
|
|
80
|
+
*
|
|
81
|
+
* @example
|
|
82
|
+
* ```ts
|
|
83
|
+
* const connectConnection =
|
|
84
|
+
* await client.networking.connect.connections.get(
|
|
85
|
+
* 'connection_id',
|
|
86
|
+
* );
|
|
87
|
+
* ```
|
|
88
|
+
*/
|
|
89
|
+
get(connectionID: string, options?: RequestOptions): APIPromise<ConnectAPI.ConnectConnection> {
|
|
90
|
+
return this._client.get(path`/v1/networking/connect/connections/${connectionID}`, options);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export interface ConnectionCreateParams {
|
|
95
|
+
/**
|
|
96
|
+
* Connect Connection speed in Mbps
|
|
97
|
+
*/
|
|
98
|
+
bandwidth_mbps: ConnectAPI.ConnectBandwidthMbps;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* CIDRs for the Connect Connection
|
|
102
|
+
*/
|
|
103
|
+
cidrs: Array<string>;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Name of the Connect Connection
|
|
107
|
+
*/
|
|
108
|
+
name: string;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Provider CIDRs
|
|
112
|
+
*/
|
|
113
|
+
provider_cidrs: Array<string>;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Region the resource is in.
|
|
117
|
+
*/
|
|
118
|
+
region: Shared.RegionName;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* AWS provider configuration
|
|
122
|
+
*/
|
|
123
|
+
aws?: ConnectAPI.ConnectConnectionAWSConfigRequest;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Tags to attach to the Connect Connection
|
|
127
|
+
*/
|
|
128
|
+
tags?: Array<string>;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export interface ConnectionUpdateParams {
|
|
132
|
+
/**
|
|
133
|
+
* Name of the Connect Connection.
|
|
134
|
+
*/
|
|
135
|
+
name?: string;
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Tags to attach to the Connect Connection
|
|
139
|
+
*/
|
|
140
|
+
tags?: Array<string>;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export declare namespace Connections {
|
|
144
|
+
export {
|
|
145
|
+
type ConnectionCreateParams as ConnectionCreateParams,
|
|
146
|
+
type ConnectionUpdateParams as ConnectionUpdateParams,
|
|
147
|
+
};
|
|
148
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export {
|
|
4
|
+
Connect,
|
|
5
|
+
type ConnectBandwidthMbps,
|
|
6
|
+
type ConnectConnection,
|
|
7
|
+
type ConnectConnectionAWSConfig,
|
|
8
|
+
type ConnectConnectionAWSConfigRequest,
|
|
9
|
+
type ConnectConnectionList,
|
|
10
|
+
type ConnectRoute,
|
|
11
|
+
type ConnectRouteList,
|
|
12
|
+
} from './connect';
|
|
13
|
+
export { Connections, type ConnectionCreateParams, type ConnectionUpdateParams } from './connections';
|
|
14
|
+
export { Routes } from './routes';
|
|
@@ -1,21 +1,21 @@
|
|
|
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
|
|
4
|
+
import * as ConnectAPI from './connect';
|
|
5
5
|
import { APIPromise } from '../../../core/api-promise';
|
|
6
6
|
import { RequestOptions } from '../../../internal/request-options';
|
|
7
7
|
|
|
8
8
|
export class Routes extends APIResource {
|
|
9
9
|
/**
|
|
10
|
-
* List all supported routes with regions for Connect
|
|
10
|
+
* List all supported routes with regions for Connect.
|
|
11
11
|
*
|
|
12
12
|
* @example
|
|
13
13
|
* ```ts
|
|
14
|
-
* const
|
|
15
|
-
* await client.connect.
|
|
14
|
+
* const connectRouteList =
|
|
15
|
+
* await client.networking.connect.routes.list();
|
|
16
16
|
* ```
|
|
17
17
|
*/
|
|
18
|
-
list(options?: RequestOptions): APIPromise<
|
|
19
|
-
return this._client.get('/v1/connect/
|
|
18
|
+
list(options?: RequestOptions): APIPromise<ConnectAPI.ConnectRouteList> {
|
|
19
|
+
return this._client.get('/v1/networking/connect/routes', options);
|
|
20
20
|
}
|
|
21
21
|
}
|
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
+
export {
|
|
4
|
+
Connect,
|
|
5
|
+
type ConnectBandwidthMbps,
|
|
6
|
+
type ConnectConnection,
|
|
7
|
+
type ConnectConnectionAWSConfig,
|
|
8
|
+
type ConnectConnectionAWSConfigRequest,
|
|
9
|
+
type ConnectConnectionList,
|
|
10
|
+
type ConnectRoute,
|
|
11
|
+
type ConnectRouteList,
|
|
12
|
+
} from './connect/index';
|
|
3
13
|
export {
|
|
4
14
|
FirewallRules,
|
|
5
15
|
type FirewallRule,
|
|
@@ -11,16 +11,29 @@ import {
|
|
|
11
11
|
FirewallRuleUpdateParams,
|
|
12
12
|
FirewallRules,
|
|
13
13
|
} from './firewall-rules';
|
|
14
|
+
import * as ConnectAPI from './connect/connect';
|
|
15
|
+
import {
|
|
16
|
+
Connect,
|
|
17
|
+
ConnectBandwidthMbps,
|
|
18
|
+
ConnectConnection,
|
|
19
|
+
ConnectConnectionAWSConfig,
|
|
20
|
+
ConnectConnectionAWSConfigRequest,
|
|
21
|
+
ConnectConnectionList,
|
|
22
|
+
ConnectRoute,
|
|
23
|
+
ConnectRouteList,
|
|
24
|
+
} from './connect/connect';
|
|
14
25
|
import * as VPCsAPI from './vpcs/vpcs';
|
|
15
26
|
import { Subnet, VPC, VPCCreateParams, VPCList, VPCUpdateParams, VPCs } from './vpcs/vpcs';
|
|
16
27
|
|
|
17
28
|
export class Networking extends APIResource {
|
|
18
29
|
vpcs: VPCsAPI.VPCs = new VPCsAPI.VPCs(this._client);
|
|
19
30
|
firewallRules: FirewallRulesAPI.FirewallRules = new FirewallRulesAPI.FirewallRules(this._client);
|
|
31
|
+
connect: ConnectAPI.Connect = new ConnectAPI.Connect(this._client);
|
|
20
32
|
}
|
|
21
33
|
|
|
22
34
|
Networking.VPCs = VPCs;
|
|
23
35
|
Networking.FirewallRules = FirewallRules;
|
|
36
|
+
Networking.Connect = Connect;
|
|
24
37
|
|
|
25
38
|
export declare namespace Networking {
|
|
26
39
|
export {
|
|
@@ -41,4 +54,15 @@ export declare namespace Networking {
|
|
|
41
54
|
type FirewallRuleDeleteParams as FirewallRuleDeleteParams,
|
|
42
55
|
type FirewallRuleGetParams as FirewallRuleGetParams,
|
|
43
56
|
};
|
|
57
|
+
|
|
58
|
+
export {
|
|
59
|
+
Connect as Connect,
|
|
60
|
+
type ConnectBandwidthMbps as ConnectBandwidthMbps,
|
|
61
|
+
type ConnectConnection as ConnectConnection,
|
|
62
|
+
type ConnectConnectionAWSConfig as ConnectConnectionAWSConfig,
|
|
63
|
+
type ConnectConnectionAWSConfigRequest as ConnectConnectionAWSConfigRequest,
|
|
64
|
+
type ConnectConnectionList as ConnectConnectionList,
|
|
65
|
+
type ConnectRoute as ConnectRoute,
|
|
66
|
+
type ConnectRouteList as ConnectRouteList,
|
|
67
|
+
};
|
|
44
68
|
}
|
|
@@ -8,6 +8,12 @@ import { RequestOptions } from '../../../internal/request-options';
|
|
|
8
8
|
export class Blockchains extends APIResource {
|
|
9
9
|
/**
|
|
10
10
|
* List all Dedicated Blockchains
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const dedicatedBlockchainList =
|
|
15
|
+
* await client.rpcNodes.dedicated.blockchains.list();
|
|
16
|
+
* ```
|
|
11
17
|
*/
|
|
12
18
|
list(options?: RequestOptions): APIPromise<DedicatedAPI.DedicatedBlockchainList> {
|
|
13
19
|
return this._client.get('/v1/rpc_nodes/dedicated/blockchains', options);
|
|
@@ -12,6 +12,12 @@ export class DedicatedResource extends APIResource {
|
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* List all RPC Node Dedicated you created
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```ts
|
|
18
|
+
* const dedicatedList =
|
|
19
|
+
* await client.rpcNodes.dedicated.list();
|
|
20
|
+
* ```
|
|
15
21
|
*/
|
|
16
22
|
list(options?: RequestOptions): APIPromise<DedicatedList> {
|
|
17
23
|
return this._client.get('/v1/rpc_nodes/dedicated', options);
|
|
@@ -19,6 +25,13 @@ export class DedicatedResource extends APIResource {
|
|
|
19
25
|
|
|
20
26
|
/**
|
|
21
27
|
* Get details about an RPC Node Dedicated
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```ts
|
|
31
|
+
* const dedicated = await client.rpcNodes.dedicated.get(
|
|
32
|
+
* 'node_id',
|
|
33
|
+
* );
|
|
34
|
+
* ```
|
|
22
35
|
*/
|
|
23
36
|
get(nodeID: string, options?: RequestOptions): APIPromise<Dedicated> {
|
|
24
37
|
return this._client.get(path`/v1/rpc_nodes/dedicated/${nodeID}`, options);
|
|
@@ -8,6 +8,12 @@ import { RequestOptions } from '../../../internal/request-options';
|
|
|
8
8
|
export class Blockchains extends APIResource {
|
|
9
9
|
/**
|
|
10
10
|
* List all Flex Blockchains
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const flexBlockchainList =
|
|
15
|
+
* await client.rpcNodes.flex.blockchains.list();
|
|
16
|
+
* ```
|
|
11
17
|
*/
|
|
12
18
|
list(options?: RequestOptions): APIPromise<FlexAPI.FlexBlockchainList> {
|
|
13
19
|
return this._client.get('/v1/rpc_nodes/flex/blockchains', options);
|
|
@@ -4,21 +4,75 @@ import { APIResource } from '../../../core/resource';
|
|
|
4
4
|
import * as BlockchainsAPI from './blockchains';
|
|
5
5
|
import { Blockchains } from './blockchains';
|
|
6
6
|
import { APIPromise } from '../../../core/api-promise';
|
|
7
|
+
import { buildHeaders } from '../../../internal/headers';
|
|
7
8
|
import { RequestOptions } from '../../../internal/request-options';
|
|
8
9
|
import { path } from '../../../internal/utils/path';
|
|
9
10
|
|
|
10
11
|
export class FlexResource extends APIResource {
|
|
11
12
|
blockchains: BlockchainsAPI.Blockchains = new BlockchainsAPI.Blockchains(this._client);
|
|
12
13
|
|
|
14
|
+
/**
|
|
15
|
+
* Create a new RPC Node Flex
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* const flex = await client.rpcNodes.flex.create({
|
|
20
|
+
* blockchain: 'ethereum',
|
|
21
|
+
* name: 'my-ethereum-node',
|
|
22
|
+
* network: 'mainnet',
|
|
23
|
+
* });
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
create(body: FlexCreateParams, options?: RequestOptions): APIPromise<Flex> {
|
|
27
|
+
return this._client.post('/v1/rpc_nodes/flex', { body, ...options });
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Update an existing RPC Node Flex
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```ts
|
|
35
|
+
* const flex = await client.rpcNodes.flex.update('node_id');
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
update(nodeID: string, body: FlexUpdateParams, options?: RequestOptions): APIPromise<Flex> {
|
|
39
|
+
return this._client.patch(path`/v1/rpc_nodes/flex/${nodeID}`, { body, ...options });
|
|
40
|
+
}
|
|
41
|
+
|
|
13
42
|
/**
|
|
14
43
|
* List all RPC Node Flex you created
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```ts
|
|
47
|
+
* const flexList = await client.rpcNodes.flex.list();
|
|
48
|
+
* ```
|
|
15
49
|
*/
|
|
16
50
|
list(options?: RequestOptions): APIPromise<FlexList> {
|
|
17
51
|
return this._client.get('/v1/rpc_nodes/flex', options);
|
|
18
52
|
}
|
|
19
53
|
|
|
54
|
+
/**
|
|
55
|
+
* Delete an RPC Node Flex
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* ```ts
|
|
59
|
+
* await client.rpcNodes.flex.delete('node_id');
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
62
|
+
delete(nodeID: string, options?: RequestOptions): APIPromise<void> {
|
|
63
|
+
return this._client.delete(path`/v1/rpc_nodes/flex/${nodeID}`, {
|
|
64
|
+
...options,
|
|
65
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
|
|
20
69
|
/**
|
|
21
70
|
* Get details about an RPC Node Flex
|
|
71
|
+
*
|
|
72
|
+
* @example
|
|
73
|
+
* ```ts
|
|
74
|
+
* const flex = await client.rpcNodes.flex.get('node_id');
|
|
75
|
+
* ```
|
|
22
76
|
*/
|
|
23
77
|
get(nodeID: string, options?: RequestOptions): APIPromise<Flex> {
|
|
24
78
|
return this._client.get(path`/v1/rpc_nodes/flex/${nodeID}`, options);
|
|
@@ -93,6 +147,40 @@ export interface FlexList {
|
|
|
93
147
|
items: Array<Flex>;
|
|
94
148
|
}
|
|
95
149
|
|
|
150
|
+
export interface FlexCreateParams {
|
|
151
|
+
/**
|
|
152
|
+
* Blockchain.
|
|
153
|
+
*/
|
|
154
|
+
blockchain: string;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Name of the RPC Node Flex.
|
|
158
|
+
*/
|
|
159
|
+
name: string;
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* Network type (e.g., mainnet, testnet).
|
|
163
|
+
*/
|
|
164
|
+
network: string;
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Tags to attach to the RPC Node Flex (optional, max 50).
|
|
168
|
+
*/
|
|
169
|
+
tags?: Array<string>;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
export interface FlexUpdateParams {
|
|
173
|
+
/**
|
|
174
|
+
* Name of the RPC Node Flex.
|
|
175
|
+
*/
|
|
176
|
+
name?: string;
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* Tags to attach to the RPC Node Flex (optional, max 50).
|
|
180
|
+
*/
|
|
181
|
+
tags?: Array<string>;
|
|
182
|
+
}
|
|
183
|
+
|
|
96
184
|
FlexResource.Blockchains = Blockchains;
|
|
97
185
|
|
|
98
186
|
export declare namespace FlexResource {
|
|
@@ -101,6 +189,8 @@ export declare namespace FlexResource {
|
|
|
101
189
|
type FlexBlockchain as FlexBlockchain,
|
|
102
190
|
type FlexBlockchainList as FlexBlockchainList,
|
|
103
191
|
type FlexList as FlexList,
|
|
192
|
+
type FlexCreateParams as FlexCreateParams,
|
|
193
|
+
type FlexUpdateParams as FlexUpdateParams,
|
|
104
194
|
};
|
|
105
195
|
|
|
106
196
|
export { Blockchains as Blockchains };
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
export { Blockchains } from './blockchains';
|
|
4
|
-
export {
|
|
4
|
+
export {
|
|
5
|
+
FlexResource,
|
|
6
|
+
type Flex,
|
|
7
|
+
type FlexBlockchain,
|
|
8
|
+
type FlexBlockchainList,
|
|
9
|
+
type FlexList,
|
|
10
|
+
type FlexCreateParams,
|
|
11
|
+
type FlexUpdateParams,
|
|
12
|
+
} from './flex';
|
|
@@ -10,7 +10,15 @@ import {
|
|
|
10
10
|
DedicatedResource,
|
|
11
11
|
} from './dedicated/dedicated';
|
|
12
12
|
import * as FlexAPI from './flex/flex';
|
|
13
|
-
import {
|
|
13
|
+
import {
|
|
14
|
+
Flex,
|
|
15
|
+
FlexBlockchain,
|
|
16
|
+
FlexBlockchainList,
|
|
17
|
+
FlexCreateParams,
|
|
18
|
+
FlexList,
|
|
19
|
+
FlexResource,
|
|
20
|
+
FlexUpdateParams,
|
|
21
|
+
} from './flex/flex';
|
|
14
22
|
|
|
15
23
|
export class RPCNodes extends APIResource {
|
|
16
24
|
flex: FlexAPI.FlexResource = new FlexAPI.FlexResource(this._client);
|
|
@@ -27,6 +35,8 @@ export declare namespace RPCNodes {
|
|
|
27
35
|
type FlexBlockchain as FlexBlockchain,
|
|
28
36
|
type FlexBlockchainList as FlexBlockchainList,
|
|
29
37
|
type FlexList as FlexList,
|
|
38
|
+
type FlexCreateParams as FlexCreateParams,
|
|
39
|
+
type FlexUpdateParams as FlexUpdateParams,
|
|
30
40
|
};
|
|
31
41
|
|
|
32
42
|
export {
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '1.
|
|
1
|
+
export const VERSION = '1.20.1'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "1.
|
|
1
|
+
export declare const VERSION = "1.20.1";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "1.
|
|
1
|
+
export declare const VERSION = "1.20.1";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '1.
|
|
1
|
+
export const VERSION = '1.20.1'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|