@nirvana-labs/nirvana 1.18.3 → 1.20.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 (229) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/README.md +7 -7
  3. package/package.json +1 -1
  4. package/resources/compute/vms/availability.d.mts +17 -1
  5. package/resources/compute/vms/availability.d.mts.map +1 -1
  6. package/resources/compute/vms/availability.d.ts +17 -1
  7. package/resources/compute/vms/availability.d.ts.map +1 -1
  8. package/resources/compute/vms/availability.js +1 -1
  9. package/resources/compute/vms/availability.mjs +1 -1
  10. package/resources/compute/vms/vms.d.mts +21 -1
  11. package/resources/compute/vms/vms.d.mts.map +1 -1
  12. package/resources/compute/vms/vms.d.ts +21 -1
  13. package/resources/compute/vms/vms.d.ts.map +1 -1
  14. package/resources/compute/vms/vms.js +1 -1
  15. package/resources/compute/vms/vms.js.map +1 -1
  16. package/resources/compute/vms/vms.mjs +1 -1
  17. package/resources/compute/vms/vms.mjs.map +1 -1
  18. package/resources/compute/volumes/availability.d.mts +8 -0
  19. package/resources/compute/volumes/availability.d.mts.map +1 -1
  20. package/resources/compute/volumes/availability.d.ts +8 -0
  21. package/resources/compute/volumes/availability.d.ts.map +1 -1
  22. package/resources/compute/volumes/volumes.d.mts +12 -0
  23. package/resources/compute/volumes/volumes.d.mts.map +1 -1
  24. package/resources/compute/volumes/volumes.d.ts +12 -0
  25. package/resources/compute/volumes/volumes.d.ts.map +1 -1
  26. package/resources/compute/volumes/volumes.js.map +1 -1
  27. package/resources/compute/volumes/volumes.mjs.map +1 -1
  28. package/resources/connect/connect.d.mts +3 -3
  29. package/resources/connect/connect.d.mts.map +1 -1
  30. package/resources/connect/connect.d.ts +3 -3
  31. package/resources/connect/connect.d.ts.map +1 -1
  32. package/resources/connect/connect.js +2 -2
  33. package/resources/connect/connect.js.map +1 -1
  34. package/resources/connect/connect.mjs +3 -3
  35. package/resources/connect/connect.mjs.map +1 -1
  36. package/resources/connect/flux/flux.d.mts +6 -204
  37. package/resources/connect/flux/flux.d.mts.map +1 -1
  38. package/resources/connect/flux/flux.d.ts +6 -204
  39. package/resources/connect/flux/flux.d.ts.map +1 -1
  40. package/resources/connect/flux/flux.js +7 -73
  41. package/resources/connect/flux/flux.js.map +1 -1
  42. package/resources/connect/flux/flux.mjs +5 -71
  43. package/resources/connect/flux/flux.mjs.map +1 -1
  44. package/resources/connect/flux/index.d.mts +2 -2
  45. package/resources/connect/flux/index.d.mts.map +1 -1
  46. package/resources/connect/flux/index.d.ts +2 -2
  47. package/resources/connect/flux/index.d.ts.map +1 -1
  48. package/resources/connect/flux/index.js +4 -4
  49. package/resources/connect/flux/index.js.map +1 -1
  50. package/resources/connect/flux/index.mjs +2 -2
  51. package/resources/connect/flux/index.mjs.map +1 -1
  52. package/resources/connect/flux/routes.d.mts +4 -0
  53. package/resources/connect/flux/routes.d.mts.map +1 -0
  54. package/resources/connect/flux/routes.d.ts +4 -0
  55. package/resources/connect/flux/routes.d.ts.map +1 -0
  56. package/resources/connect/flux/routes.js +9 -0
  57. package/resources/connect/flux/routes.js.map +1 -0
  58. package/resources/connect/flux/routes.mjs +5 -0
  59. package/resources/connect/flux/routes.mjs.map +1 -0
  60. package/resources/connect/index.d.mts +1 -1
  61. package/resources/connect/index.d.mts.map +1 -1
  62. package/resources/connect/index.d.ts +1 -1
  63. package/resources/connect/index.d.ts.map +1 -1
  64. package/resources/connect/index.js +2 -2
  65. package/resources/connect/index.js.map +1 -1
  66. package/resources/connect/index.mjs +1 -1
  67. package/resources/connect/index.mjs.map +1 -1
  68. package/resources/networking/connect/connect.d.mts +130 -0
  69. package/resources/networking/connect/connect.d.mts.map +1 -0
  70. package/resources/networking/connect/connect.d.ts +130 -0
  71. package/resources/networking/connect/connect.d.ts.map +1 -0
  72. package/resources/networking/connect/connect.js +21 -0
  73. package/resources/networking/connect/connect.js.map +1 -0
  74. package/resources/networking/connect/connect.mjs +16 -0
  75. package/resources/networking/connect/connect.mjs.map +1 -0
  76. package/resources/networking/connect/connections.d.mts +114 -0
  77. package/resources/networking/connect/connections.d.mts.map +1 -0
  78. package/resources/networking/connect/connections.d.ts +114 -0
  79. package/resources/networking/connect/connections.d.ts.map +1 -0
  80. package/resources/networking/connect/connections.js +82 -0
  81. package/resources/networking/connect/connections.js.map +1 -0
  82. package/resources/networking/connect/connections.mjs +78 -0
  83. package/resources/networking/connect/connections.mjs.map +1 -0
  84. package/resources/networking/connect/index.d.mts +4 -0
  85. package/resources/networking/connect/index.d.mts.map +1 -0
  86. package/resources/networking/connect/index.d.ts +4 -0
  87. package/resources/networking/connect/index.d.ts.map +1 -0
  88. package/resources/networking/connect/index.js +11 -0
  89. package/resources/networking/connect/index.js.map +1 -0
  90. package/resources/networking/connect/index.mjs +5 -0
  91. package/resources/networking/connect/index.mjs.map +1 -0
  92. package/resources/networking/connect/routes.d.mts +17 -0
  93. package/resources/networking/connect/routes.d.mts.map +1 -0
  94. package/resources/networking/connect/routes.d.ts +17 -0
  95. package/resources/networking/connect/routes.d.ts.map +1 -0
  96. package/resources/networking/connect/routes.js +21 -0
  97. package/resources/networking/connect/routes.js.map +1 -0
  98. package/resources/networking/connect/routes.mjs +17 -0
  99. package/resources/networking/connect/routes.mjs.map +1 -0
  100. package/resources/networking/connect.d.mts +2 -0
  101. package/resources/networking/connect.d.mts.map +1 -0
  102. package/resources/networking/connect.d.ts +2 -0
  103. package/resources/networking/connect.d.ts.map +1 -0
  104. package/resources/networking/connect.js +6 -0
  105. package/resources/networking/connect.js.map +1 -0
  106. package/resources/networking/connect.mjs +3 -0
  107. package/resources/networking/connect.mjs.map +1 -0
  108. package/resources/networking/firewall-rules.d.mts +12 -0
  109. package/resources/networking/firewall-rules.d.mts.map +1 -1
  110. package/resources/networking/firewall-rules.d.ts +12 -0
  111. package/resources/networking/firewall-rules.d.ts.map +1 -1
  112. package/resources/networking/index.d.mts +1 -0
  113. package/resources/networking/index.d.mts.map +1 -1
  114. package/resources/networking/index.d.ts +1 -0
  115. package/resources/networking/index.d.ts.map +1 -1
  116. package/resources/networking/index.js +5 -3
  117. package/resources/networking/index.js.map +1 -1
  118. package/resources/networking/index.mjs +1 -0
  119. package/resources/networking/index.mjs.map +1 -1
  120. package/resources/networking/networking.d.mts +4 -0
  121. package/resources/networking/networking.d.mts.map +1 -1
  122. package/resources/networking/networking.d.ts +4 -0
  123. package/resources/networking/networking.d.ts.map +1 -1
  124. package/resources/networking/networking.js +4 -0
  125. package/resources/networking/networking.js.map +1 -1
  126. package/resources/networking/networking.mjs +4 -0
  127. package/resources/networking/networking.mjs.map +1 -1
  128. package/resources/networking/vpcs/availability.d.mts +8 -0
  129. package/resources/networking/vpcs/availability.d.mts.map +1 -1
  130. package/resources/networking/vpcs/availability.d.ts +8 -0
  131. package/resources/networking/vpcs/availability.d.ts.map +1 -1
  132. package/resources/networking/vpcs/vpcs.d.mts +12 -0
  133. package/resources/networking/vpcs/vpcs.d.mts.map +1 -1
  134. package/resources/networking/vpcs/vpcs.d.ts +12 -0
  135. package/resources/networking/vpcs/vpcs.d.ts.map +1 -1
  136. package/resources/networking/vpcs/vpcs.js.map +1 -1
  137. package/resources/networking/vpcs/vpcs.mjs.map +1 -1
  138. package/resources/rpc-nodes/dedicated/blockchains.d.mts +6 -0
  139. package/resources/rpc-nodes/dedicated/blockchains.d.mts.map +1 -1
  140. package/resources/rpc-nodes/dedicated/blockchains.d.ts +6 -0
  141. package/resources/rpc-nodes/dedicated/blockchains.d.ts.map +1 -1
  142. package/resources/rpc-nodes/dedicated/blockchains.js +6 -0
  143. package/resources/rpc-nodes/dedicated/blockchains.js.map +1 -1
  144. package/resources/rpc-nodes/dedicated/blockchains.mjs +6 -0
  145. package/resources/rpc-nodes/dedicated/blockchains.mjs.map +1 -1
  146. package/resources/rpc-nodes/dedicated/dedicated.d.mts +17 -0
  147. package/resources/rpc-nodes/dedicated/dedicated.d.mts.map +1 -1
  148. package/resources/rpc-nodes/dedicated/dedicated.d.ts +17 -0
  149. package/resources/rpc-nodes/dedicated/dedicated.d.ts.map +1 -1
  150. package/resources/rpc-nodes/dedicated/dedicated.js +13 -0
  151. package/resources/rpc-nodes/dedicated/dedicated.js.map +1 -1
  152. package/resources/rpc-nodes/dedicated/dedicated.mjs +13 -0
  153. package/resources/rpc-nodes/dedicated/dedicated.mjs.map +1 -1
  154. package/resources/rpc-nodes/flex/blockchains.d.mts +6 -0
  155. package/resources/rpc-nodes/flex/blockchains.d.mts.map +1 -1
  156. package/resources/rpc-nodes/flex/blockchains.d.ts +6 -0
  157. package/resources/rpc-nodes/flex/blockchains.d.ts.map +1 -1
  158. package/resources/rpc-nodes/flex/blockchains.js +6 -0
  159. package/resources/rpc-nodes/flex/blockchains.js.map +1 -1
  160. package/resources/rpc-nodes/flex/blockchains.mjs +6 -0
  161. package/resources/rpc-nodes/flex/blockchains.mjs.map +1 -1
  162. package/resources/rpc-nodes/flex/flex.d.mts +74 -1
  163. package/resources/rpc-nodes/flex/flex.d.mts.map +1 -1
  164. package/resources/rpc-nodes/flex/flex.d.ts +74 -1
  165. package/resources/rpc-nodes/flex/flex.d.ts.map +1 -1
  166. package/resources/rpc-nodes/flex/flex.js +51 -0
  167. package/resources/rpc-nodes/flex/flex.js.map +1 -1
  168. package/resources/rpc-nodes/flex/flex.mjs +51 -0
  169. package/resources/rpc-nodes/flex/flex.mjs.map +1 -1
  170. package/resources/rpc-nodes/flex/index.d.mts +1 -1
  171. package/resources/rpc-nodes/flex/index.d.mts.map +1 -1
  172. package/resources/rpc-nodes/flex/index.d.ts +1 -1
  173. package/resources/rpc-nodes/flex/index.d.ts.map +1 -1
  174. package/resources/rpc-nodes/flex/index.js.map +1 -1
  175. package/resources/rpc-nodes/flex/index.mjs +1 -1
  176. package/resources/rpc-nodes/flex/index.mjs.map +1 -1
  177. package/resources/rpc-nodes/index.d.mts +1 -1
  178. package/resources/rpc-nodes/index.d.mts.map +1 -1
  179. package/resources/rpc-nodes/index.d.ts +1 -1
  180. package/resources/rpc-nodes/index.d.ts.map +1 -1
  181. package/resources/rpc-nodes/index.js.map +1 -1
  182. package/resources/rpc-nodes/index.mjs.map +1 -1
  183. package/resources/rpc-nodes/rpc-nodes.d.mts +2 -2
  184. package/resources/rpc-nodes/rpc-nodes.d.mts.map +1 -1
  185. package/resources/rpc-nodes/rpc-nodes.d.ts +2 -2
  186. package/resources/rpc-nodes/rpc-nodes.d.ts.map +1 -1
  187. package/resources/rpc-nodes/rpc-nodes.js.map +1 -1
  188. package/resources/rpc-nodes/rpc-nodes.mjs +1 -1
  189. package/resources/rpc-nodes/rpc-nodes.mjs.map +1 -1
  190. package/src/resources/compute/vms/availability.ts +21 -1
  191. package/src/resources/compute/vms/vms.ts +26 -1
  192. package/src/resources/compute/volumes/availability.ts +10 -0
  193. package/src/resources/compute/volumes/volumes.ts +15 -0
  194. package/src/resources/connect/connect.ts +4 -26
  195. package/src/resources/connect/flux/flux.ts +7 -265
  196. package/src/resources/connect/flux/index.ts +2 -13
  197. package/src/resources/connect/flux/routes.ts +5 -0
  198. package/src/resources/connect/index.ts +1 -12
  199. package/src/resources/networking/connect/connect.ts +174 -0
  200. package/src/resources/networking/connect/connections.ts +148 -0
  201. package/src/resources/networking/connect/index.ts +14 -0
  202. package/src/resources/networking/connect/routes.ts +21 -0
  203. package/src/resources/networking/connect.ts +3 -0
  204. package/src/resources/networking/firewall-rules.ts +15 -0
  205. package/src/resources/networking/index.ts +10 -0
  206. package/src/resources/networking/networking.ts +24 -0
  207. package/src/resources/networking/vpcs/availability.ts +10 -0
  208. package/src/resources/networking/vpcs/vpcs.ts +15 -0
  209. package/src/resources/rpc-nodes/dedicated/blockchains.ts +6 -0
  210. package/src/resources/rpc-nodes/dedicated/dedicated.ts +18 -0
  211. package/src/resources/rpc-nodes/flex/blockchains.ts +6 -0
  212. package/src/resources/rpc-nodes/flex/flex.ts +95 -0
  213. package/src/resources/rpc-nodes/flex/index.ts +9 -1
  214. package/src/resources/rpc-nodes/index.ts +2 -0
  215. package/src/resources/rpc-nodes/rpc-nodes.ts +11 -1
  216. package/src/version.ts +1 -1
  217. package/version.d.mts +1 -1
  218. package/version.d.ts +1 -1
  219. package/version.js +1 -1
  220. package/version.mjs +1 -1
  221. package/resources/connect/flux/providers.d.mts +0 -17
  222. package/resources/connect/flux/providers.d.mts.map +0 -1
  223. package/resources/connect/flux/providers.d.ts +0 -17
  224. package/resources/connect/flux/providers.d.ts.map +0 -1
  225. package/resources/connect/flux/providers.js +0 -21
  226. package/resources/connect/flux/providers.js.map +0 -1
  227. package/resources/connect/flux/providers.mjs +0 -17
  228. package/resources/connect/flux/providers.mjs.map +0 -1
  229. package/src/resources/connect/flux/providers.ts +0 -21
@@ -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';
@@ -0,0 +1,21 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../../core/resource';
4
+ import * as ConnectAPI from './connect';
5
+ import { APIPromise } from '../../../core/api-promise';
6
+ import { RequestOptions } from '../../../internal/request-options';
7
+
8
+ export class Routes extends APIResource {
9
+ /**
10
+ * List all supported routes with regions for Connect.
11
+ *
12
+ * @example
13
+ * ```ts
14
+ * const connectRouteList =
15
+ * await client.networking.connect.routes.list();
16
+ * ```
17
+ */
18
+ list(options?: RequestOptions): APIPromise<ConnectAPI.ConnectRouteList> {
19
+ return this._client.get('/v1/networking/connect/routes', options);
20
+ }
21
+ }
@@ -0,0 +1,3 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ export * from './connect/index';
@@ -156,6 +156,11 @@ export interface FirewallRule {
156
156
  */
157
157
  status: Shared.ResourceStatus;
158
158
 
159
+ /**
160
+ * Tags to attach to the Firewall Rule.
161
+ */
162
+ tags: Array<string>;
163
+
159
164
  /**
160
165
  * When the Firewall Rule was updated.
161
166
  */
@@ -197,6 +202,11 @@ export interface FirewallRuleCreateParams {
197
202
  * of 0.
198
203
  */
199
204
  source_address: string;
205
+
206
+ /**
207
+ * Tags to attach to the Firewall Rule.
208
+ */
209
+ tags?: Array<string>;
200
210
  }
201
211
 
202
212
  export interface FirewallRuleUpdateParams {
@@ -231,6 +241,11 @@ export interface FirewallRuleUpdateParams {
231
241
  * CIDR mask of 0.
232
242
  */
233
243
  source_address?: string;
244
+
245
+ /**
246
+ * Body param: Tags to attach to the Firewall Rule.
247
+ */
248
+ tags?: Array<string>;
234
249
  }
235
250
 
236
251
  export interface FirewallRuleDeleteParams {
@@ -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
  }
@@ -68,6 +68,11 @@ export interface AvailabilityCreateParams {
68
68
  * Name of the subnet to create.
69
69
  */
70
70
  subnet_name: string;
71
+
72
+ /**
73
+ * Tags to attach to the VPC.
74
+ */
75
+ tags?: Array<string>;
71
76
  }
72
77
 
73
78
  export interface AvailabilityUpdateParams {
@@ -80,6 +85,11 @@ export interface AvailabilityUpdateParams {
80
85
  * Name of the subnet to create.
81
86
  */
82
87
  subnet_name?: string;
88
+
89
+ /**
90
+ * Tags to attach to the VPC.
91
+ */
92
+ tags?: Array<string>;
83
93
  }
84
94
 
85
95
  export declare namespace Availability {
@@ -160,6 +160,11 @@ export interface VPC {
160
160
  */
161
161
  subnet: Subnet;
162
162
 
163
+ /**
164
+ * Tags to attach to the VPC.
165
+ */
166
+ tags: Array<string>;
167
+
163
168
  /**
164
169
  * When the VPC was updated.
165
170
  */
@@ -185,6 +190,11 @@ export interface VPCCreateParams {
185
190
  * Name of the subnet to create.
186
191
  */
187
192
  subnet_name: string;
193
+
194
+ /**
195
+ * Tags to attach to the VPC.
196
+ */
197
+ tags?: Array<string>;
188
198
  }
189
199
 
190
200
  export interface VPCUpdateParams {
@@ -197,6 +207,11 @@ export interface VPCUpdateParams {
197
207
  * Name of the subnet to create.
198
208
  */
199
209
  subnet_name?: string;
210
+
211
+ /**
212
+ * Tags to attach to the VPC.
213
+ */
214
+ tags?: Array<string>;
200
215
  }
201
216
 
202
217
  VPCs.Availability = Availability;
@@ -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);
@@ -59,6 +72,11 @@ export interface Dedicated {
59
72
  */
60
73
  network: string;
61
74
 
75
+ /**
76
+ * Tags to attach to the RPC Node Dedicated.
77
+ */
78
+ tags: Array<string>;
79
+
62
80
  /**
63
81
  * When the RPC Node Dedicated was updated.
64
82
  */
@@ -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);