@nirvana-labs/nirvana 1.98.8 → 2.0.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 (127) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/package.json +1 -1
  3. package/resources/api-keys/api-keys.d.mts +1 -1
  4. package/resources/api-keys/api-keys.d.mts.map +1 -1
  5. package/resources/api-keys/api-keys.d.ts +1 -1
  6. package/resources/api-keys/api-keys.d.ts.map +1 -1
  7. package/resources/networking/index.d.mts +0 -1
  8. package/resources/networking/index.d.mts.map +1 -1
  9. package/resources/networking/index.d.ts +0 -1
  10. package/resources/networking/index.d.ts.map +1 -1
  11. package/resources/networking/index.js +3 -5
  12. package/resources/networking/index.js.map +1 -1
  13. package/resources/networking/index.mjs +0 -1
  14. package/resources/networking/index.mjs.map +1 -1
  15. package/resources/networking/networking.d.mts +0 -4
  16. package/resources/networking/networking.d.mts.map +1 -1
  17. package/resources/networking/networking.d.ts +0 -4
  18. package/resources/networking/networking.d.ts.map +1 -1
  19. package/resources/networking/networking.js +0 -4
  20. package/resources/networking/networking.js.map +1 -1
  21. package/resources/networking/networking.mjs +0 -4
  22. package/resources/networking/networking.mjs.map +1 -1
  23. package/resources/projects/projects.d.mts +0 -4
  24. package/resources/projects/projects.d.mts.map +1 -1
  25. package/resources/projects/projects.d.ts +0 -4
  26. package/resources/projects/projects.d.ts.map +1 -1
  27. package/resources/quotas/quotas.d.mts +0 -4
  28. package/resources/quotas/quotas.d.mts.map +1 -1
  29. package/resources/quotas/quotas.d.ts +0 -4
  30. package/resources/quotas/quotas.d.ts.map +1 -1
  31. package/resources/regions/regions.d.mts +0 -8
  32. package/resources/regions/regions.d.mts.map +1 -1
  33. package/resources/regions/regions.d.ts +0 -8
  34. package/resources/regions/regions.d.ts.map +1 -1
  35. package/resources/usage/usage.d.mts +2 -2
  36. package/resources/usage/usage.d.mts.map +1 -1
  37. package/resources/usage/usage.d.ts +2 -2
  38. package/resources/usage/usage.d.ts.map +1 -1
  39. package/src/resources/api-keys/api-keys.ts +0 -1
  40. package/src/resources/networking/api.md +0 -35
  41. package/src/resources/networking/index.ts +0 -12
  42. package/src/resources/networking/networking.ts +0 -24
  43. package/src/resources/projects/projects.ts +0 -5
  44. package/src/resources/quotas/quotas.ts +0 -5
  45. package/src/resources/regions/regions.ts +0 -10
  46. package/src/resources/usage/usage.ts +1 -9
  47. package/src/version.ts +1 -1
  48. package/version.d.mts +1 -1
  49. package/version.d.mts.map +1 -1
  50. package/version.d.ts +1 -1
  51. package/version.d.ts.map +1 -1
  52. package/version.js +1 -1
  53. package/version.js.map +1 -1
  54. package/version.mjs +1 -1
  55. package/version.mjs.map +1 -1
  56. package/resources/networking/connect/connect.d.mts +0 -145
  57. package/resources/networking/connect/connect.d.mts.map +0 -1
  58. package/resources/networking/connect/connect.d.ts +0 -145
  59. package/resources/networking/connect/connect.d.ts.map +0 -1
  60. package/resources/networking/connect/connect.js +0 -21
  61. package/resources/networking/connect/connect.js.map +0 -1
  62. package/resources/networking/connect/connect.mjs +0 -16
  63. package/resources/networking/connect/connect.mjs.map +0 -1
  64. package/resources/networking/connect/connections/connections.d.mts +0 -170
  65. package/resources/networking/connect/connections/connections.d.mts.map +0 -1
  66. package/resources/networking/connect/connections/connections.d.ts +0 -170
  67. package/resources/networking/connect/connections/connections.d.ts.map +0 -1
  68. package/resources/networking/connect/connections/connections.js +0 -96
  69. package/resources/networking/connect/connections/connections.js.map +0 -1
  70. package/resources/networking/connect/connections/connections.mjs +0 -91
  71. package/resources/networking/connect/connections/connections.mjs.map +0 -1
  72. package/resources/networking/connect/connections/cost.d.mts +0 -85
  73. package/resources/networking/connect/connections/cost.d.mts.map +0 -1
  74. package/resources/networking/connect/connections/cost.d.ts +0 -85
  75. package/resources/networking/connect/connections/cost.d.ts.map +0 -1
  76. package/resources/networking/connect/connections/cost.js +0 -47
  77. package/resources/networking/connect/connections/cost.js.map +0 -1
  78. package/resources/networking/connect/connections/cost.mjs +0 -43
  79. package/resources/networking/connect/connections/cost.mjs.map +0 -1
  80. package/resources/networking/connect/connections/index.d.mts +0 -3
  81. package/resources/networking/connect/connections/index.d.mts.map +0 -1
  82. package/resources/networking/connect/connections/index.d.ts +0 -3
  83. package/resources/networking/connect/connections/index.d.ts.map +0 -1
  84. package/resources/networking/connect/connections/index.js +0 -9
  85. package/resources/networking/connect/connections/index.js.map +0 -1
  86. package/resources/networking/connect/connections/index.mjs +0 -4
  87. package/resources/networking/connect/connections/index.mjs.map +0 -1
  88. package/resources/networking/connect/connections.d.mts +0 -2
  89. package/resources/networking/connect/connections.d.mts.map +0 -1
  90. package/resources/networking/connect/connections.d.ts +0 -2
  91. package/resources/networking/connect/connections.d.ts.map +0 -1
  92. package/resources/networking/connect/connections.js +0 -6
  93. package/resources/networking/connect/connections.js.map +0 -1
  94. package/resources/networking/connect/connections.mjs +0 -3
  95. package/resources/networking/connect/connections.mjs.map +0 -1
  96. package/resources/networking/connect/index.d.mts +0 -4
  97. package/resources/networking/connect/index.d.mts.map +0 -1
  98. package/resources/networking/connect/index.d.ts +0 -4
  99. package/resources/networking/connect/index.d.ts.map +0 -1
  100. package/resources/networking/connect/index.js +0 -11
  101. package/resources/networking/connect/index.js.map +0 -1
  102. package/resources/networking/connect/index.mjs +0 -5
  103. package/resources/networking/connect/index.mjs.map +0 -1
  104. package/resources/networking/connect/routes.d.mts +0 -43
  105. package/resources/networking/connect/routes.d.mts.map +0 -1
  106. package/resources/networking/connect/routes.d.ts +0 -43
  107. package/resources/networking/connect/routes.d.ts.map +0 -1
  108. package/resources/networking/connect/routes.js +0 -27
  109. package/resources/networking/connect/routes.js.map +0 -1
  110. package/resources/networking/connect/routes.mjs +0 -23
  111. package/resources/networking/connect/routes.mjs.map +0 -1
  112. package/resources/networking/connect.d.mts +0 -2
  113. package/resources/networking/connect.d.mts.map +0 -1
  114. package/resources/networking/connect.d.ts +0 -2
  115. package/resources/networking/connect.d.ts.map +0 -1
  116. package/resources/networking/connect.js +0 -6
  117. package/resources/networking/connect.js.map +0 -1
  118. package/resources/networking/connect.mjs +0 -3
  119. package/resources/networking/connect.mjs.map +0 -1
  120. package/src/resources/networking/connect/connect.ts +0 -200
  121. package/src/resources/networking/connect/connections/connections.ts +0 -231
  122. package/src/resources/networking/connect/connections/cost.ts +0 -111
  123. package/src/resources/networking/connect/connections/index.ts +0 -9
  124. package/src/resources/networking/connect/connections.ts +0 -3
  125. package/src/resources/networking/connect/index.ts +0 -21
  126. package/src/resources/networking/connect/routes.ts +0 -59
  127. package/src/resources/networking/connect.ts +0 -3
@@ -1,200 +0,0 @@
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 RoutesAPI from './routes';
6
- import { RouteListParams, Routes } from './routes';
7
- import * as ConnectionsAPI from './connections/connections';
8
- import {
9
- ConnectionCreateParams,
10
- ConnectionListParams,
11
- ConnectionUpdateParams,
12
- Connections,
13
- } from './connections/connections';
14
- import { Cursor } from '../../../core/pagination';
15
-
16
- export class Connect extends APIResource {
17
- connections: ConnectionsAPI.Connections = new ConnectionsAPI.Connections(this._client);
18
- routes: RoutesAPI.Routes = new RoutesAPI.Routes(this._client);
19
- }
20
-
21
- export type ConnectConnectionsCursor = Cursor<ConnectConnection>;
22
-
23
- export type ConnectRoutesCursor = Cursor<ConnectRoute>;
24
-
25
- /**
26
- * Connect Connection speed in Mbps
27
- */
28
- export type ConnectBandwidthMbps = 50 | 200 | 500 | 1000 | 2000;
29
-
30
- /**
31
- * Connect Connection details.
32
- */
33
- export interface ConnectConnection {
34
- /**
35
- * Unique identifier for the Connect Connection
36
- */
37
- id: string;
38
-
39
- /**
40
- * ASN
41
- */
42
- asn: number | null;
43
-
44
- /**
45
- * AWS provider configuration
46
- */
47
- aws: ConnectConnectionAWSConfig | null;
48
-
49
- /**
50
- * Connect Connection speed in Mbps
51
- */
52
- bandwidth_mbps: ConnectBandwidthMbps;
53
-
54
- /**
55
- * CIDRs for the Connect Connection
56
- */
57
- cidrs: Array<string>;
58
-
59
- /**
60
- * When the Connect Connection was created
61
- */
62
- created_at: string;
63
-
64
- /**
65
- * Name of the Connect Connection
66
- */
67
- name: string;
68
-
69
- /**
70
- * Project ID the Connect Connection belongs to
71
- */
72
- project_id: string;
73
-
74
- /**
75
- * Provider ASN
76
- */
77
- provider_asn: number | null;
78
-
79
- /**
80
- * Provider CIDRs for the Connect Connection
81
- */
82
- provider_cidrs: Array<string>;
83
-
84
- /**
85
- * Provider Router IP for the Connect Connection
86
- */
87
- provider_router_ip: string | null;
88
-
89
- /**
90
- * Region the resource is in.
91
- */
92
- region: Shared.RegionName;
93
-
94
- /**
95
- * Router IP
96
- */
97
- router_ip: string | null;
98
-
99
- /**
100
- * Status of the resource.
101
- */
102
- status: Shared.ResourceStatus;
103
-
104
- /**
105
- * Tags to attach to the Connect Connection
106
- */
107
- tags: Array<string>;
108
-
109
- /**
110
- * When the Connect Connection was updated
111
- */
112
- updated_at: string;
113
- }
114
-
115
- /**
116
- * AWS provider configuration
117
- */
118
- export interface ConnectConnectionAWSConfig {
119
- /**
120
- * AWS region where the connection is established
121
- */
122
- region: string;
123
- }
124
-
125
- /**
126
- * AWS provider configuration
127
- */
128
- export interface ConnectConnectionAWSConfigRequest {
129
- /**
130
- * AWS account id
131
- */
132
- account_id: string;
133
-
134
- /**
135
- * AWS region where the connection will be established
136
- */
137
- region: string;
138
- }
139
-
140
- export interface ConnectConnectionList {
141
- items: Array<ConnectConnection>;
142
-
143
- /**
144
- * Pagination response details.
145
- */
146
- pagination: Shared.Pagination;
147
- }
148
-
149
- /**
150
- * Routes supported for Connect.
151
- */
152
- export interface ConnectRoute {
153
- /**
154
- * Region the resource is in.
155
- */
156
- nirvana_region: Shared.RegionName;
157
-
158
- /**
159
- * Provider name.
160
- */
161
- provider: string;
162
-
163
- /**
164
- * Provider region name.
165
- */
166
- provider_region: string;
167
- }
168
-
169
- export interface ConnectRouteList {
170
- items: Array<ConnectRoute>;
171
-
172
- /**
173
- * Pagination response details.
174
- */
175
- pagination: Shared.Pagination;
176
- }
177
-
178
- Connect.Connections = Connections;
179
- Connect.Routes = Routes;
180
-
181
- export declare namespace Connect {
182
- export {
183
- type ConnectBandwidthMbps as ConnectBandwidthMbps,
184
- type ConnectConnection as ConnectConnection,
185
- type ConnectConnectionAWSConfig as ConnectConnectionAWSConfig,
186
- type ConnectConnectionAWSConfigRequest as ConnectConnectionAWSConfigRequest,
187
- type ConnectConnectionList as ConnectConnectionList,
188
- type ConnectRoute as ConnectRoute,
189
- type ConnectRouteList as ConnectRouteList,
190
- };
191
-
192
- export {
193
- Connections as Connections,
194
- type ConnectionCreateParams as ConnectionCreateParams,
195
- type ConnectionUpdateParams as ConnectionUpdateParams,
196
- type ConnectionListParams as ConnectionListParams,
197
- };
198
-
199
- export { Routes as Routes, type RouteListParams as RouteListParams };
200
- }
@@ -1,231 +0,0 @@
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 OperationsAPI from '../../../operations/operations';
6
- import * as ConnectAPI from '../connect';
7
- import { ConnectConnectionsCursor } from '../connect';
8
- import * as CostAPI from './cost';
9
- import { Cost, CostCreateParams, CostUpdateParams } from './cost';
10
- import { APIPromise } from '../../../../core/api-promise';
11
- import { Cursor, type CursorParams, PagePromise } from '../../../../core/pagination';
12
- import { RequestOptions } from '../../../../internal/request-options';
13
- import { path } from '../../../../internal/utils/path';
14
-
15
- export class Connections extends APIResource {
16
- cost: CostAPI.Cost = new CostAPI.Cost(this._client);
17
-
18
- /**
19
- * Create a Connect Connection
20
- *
21
- * @example
22
- * ```ts
23
- * const operation =
24
- * await client.networking.connect.connections.create({
25
- * bandwidth_mbps: 50,
26
- * cidrs: ['10.0.0.0/16'],
27
- * name: 'my-connect-connection',
28
- * project_id: '123e4567-e89b-12d3-a456-426614174000',
29
- * provider_cidrs: ['172.16.0.0/16'],
30
- * region: 'us-sva-2',
31
- * });
32
- * ```
33
- */
34
- create(body: ConnectionCreateParams, options?: RequestOptions): APIPromise<OperationsAPI.Operation> {
35
- return this._client.post('/v1/networking/connect/connections', { body, ...options });
36
- }
37
-
38
- /**
39
- * Get Connect Connection details
40
- *
41
- * @example
42
- * ```ts
43
- * const connectConnection =
44
- * await client.networking.connect.connections.get(
45
- * 'connection_id',
46
- * );
47
- * ```
48
- */
49
- get(connectionID: string, options?: RequestOptions): APIPromise<ConnectAPI.ConnectConnection> {
50
- return this._client.get(path`/v1/networking/connect/connections/${connectionID}`, options);
51
- }
52
-
53
- /**
54
- * Update Connect Connection details
55
- *
56
- * @example
57
- * ```ts
58
- * const operation =
59
- * await client.networking.connect.connections.update(
60
- * 'connection_id',
61
- * );
62
- * ```
63
- */
64
- update(
65
- connectionID: string,
66
- body: ConnectionUpdateParams,
67
- options?: RequestOptions,
68
- ): APIPromise<OperationsAPI.Operation> {
69
- return this._client.patch(path`/v1/networking/connect/connections/${connectionID}`, { body, ...options });
70
- }
71
-
72
- /**
73
- * Delete Connect Connection
74
- *
75
- * @example
76
- * ```ts
77
- * const operation =
78
- * await client.networking.connect.connections.delete(
79
- * 'connection_id',
80
- * );
81
- * ```
82
- */
83
- delete(connectionID: string, options?: RequestOptions): APIPromise<OperationsAPI.Operation> {
84
- return this._client.delete(path`/v1/networking/connect/connections/${connectionID}`, options);
85
- }
86
-
87
- /**
88
- * List all Connect Connections
89
- *
90
- * @example
91
- * ```ts
92
- * // Automatically fetches more pages as needed.
93
- * for await (const connectConnection of client.networking.connect.connections.list(
94
- * { project_id: 'project_id' },
95
- * )) {
96
- * // ...
97
- * }
98
- * ```
99
- */
100
- list(
101
- query: ConnectionListParams,
102
- options?: RequestOptions,
103
- ): PagePromise<ConnectConnectionsCursor, ConnectAPI.ConnectConnection> {
104
- return this._client.getAPIList(
105
- '/v1/networking/connect/connections',
106
- Cursor<ConnectAPI.ConnectConnection>,
107
- { query, ...options },
108
- );
109
- }
110
- }
111
-
112
- export interface ConnectionCreateParams {
113
- /**
114
- * Connect Connection speed in Mbps
115
- */
116
- bandwidth_mbps: ConnectAPI.ConnectBandwidthMbps;
117
-
118
- /**
119
- * CIDRs for the Connect Connection. Must be in network-aligned/canonical form.
120
- */
121
- cidrs: Array<string>;
122
-
123
- /**
124
- * Name of the Connect Connection
125
- */
126
- name: string;
127
-
128
- /**
129
- * Project ID the Connect Connection belongs to
130
- */
131
- project_id: string;
132
-
133
- /**
134
- * Provider CIDRs. Must be in network-aligned/canonical form.
135
- */
136
- provider_cidrs: Array<string>;
137
-
138
- /**
139
- * Region the resource is in.
140
- */
141
- region: Shared.RegionName;
142
-
143
- /**
144
- * AWS provider configuration
145
- */
146
- aws?: ConnectAPI.ConnectConnectionAWSConfigRequest;
147
-
148
- /**
149
- * Tags to attach to the Connect Connection
150
- */
151
- tags?: Array<string>;
152
- }
153
-
154
- export interface ConnectionUpdateParams {
155
- /**
156
- * Name of the Connect Connection.
157
- */
158
- name?: string;
159
-
160
- /**
161
- * Tags to attach to the Connect Connection
162
- */
163
- tags?: Array<string>;
164
- }
165
-
166
- export interface ConnectionListParams extends CursorParams {
167
- /**
168
- * Project ID of resources to request
169
- */
170
- project_id: string;
171
-
172
- /**
173
- * Filter by provisioned bandwidth in Mbps
174
- */
175
- bandwidth_mbps?: 50 | 200 | 500 | 1000 | 2000;
176
-
177
- /**
178
- * Filter by a case-insensitive substring of the Connect Connection name
179
- */
180
- name?: string;
181
-
182
- /**
183
- * Filter by provider
184
- */
185
- provider?: string;
186
-
187
- /**
188
- * Filter by the provider's own region
189
- */
190
- provider_region?: string;
191
-
192
- /**
193
- * Filter by Nirvana region
194
- */
195
- region?: string;
196
-
197
- /**
198
- * Comma-separated sort terms in precedence order, each field:asc or field:desc.
199
- * Fields: created_at, updated_at, name, status, bandwidth_mbps
200
- */
201
- sort?: string;
202
-
203
- /**
204
- * Filter by Connect Connection status
205
- */
206
- status?: 'pending' | 'creating' | 'updating' | 'ready' | 'deleting' | 'error';
207
-
208
- /**
209
- * Filter by tags. Repeat the parameter to require several tags; a Connect
210
- * Connection must carry all of them.
211
- */
212
- tags?: Array<string>;
213
- }
214
-
215
- Connections.Cost = Cost;
216
-
217
- export declare namespace Connections {
218
- export {
219
- type ConnectionCreateParams as ConnectionCreateParams,
220
- type ConnectionUpdateParams as ConnectionUpdateParams,
221
- type ConnectionListParams as ConnectionListParams,
222
- };
223
-
224
- export {
225
- Cost as Cost,
226
- type CostCreateParams as CostCreateParams,
227
- type CostUpdateParams as CostUpdateParams,
228
- };
229
- }
230
-
231
- export { type ConnectConnectionsCursor };
@@ -1,111 +0,0 @@
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 ConnectAPI from '../connect';
6
- import { APIPromise } from '../../../../core/api-promise';
7
- import { RequestOptions } from '../../../../internal/request-options';
8
- import { path } from '../../../../internal/utils/path';
9
-
10
- export class Cost extends APIResource {
11
- /**
12
- * Return a priced cost quote for the proposed Connect Connection.
13
- *
14
- * @example
15
- * ```ts
16
- * const costQuote =
17
- * await client.networking.connect.connections.cost.create({
18
- * bandwidth_mbps: 50,
19
- * cidrs: ['10.0.0.0/16'],
20
- * name: 'my-connect-connection',
21
- * project_id: '123e4567-e89b-12d3-a456-426614174000',
22
- * provider_cidrs: ['172.16.0.0/16'],
23
- * region: 'us-sva-2',
24
- * });
25
- * ```
26
- */
27
- create(body: CostCreateParams, options?: RequestOptions): APIPromise<Shared.CostQuote> {
28
- return this._client.post('/v1/networking/connect/connections/cost', { body, ...options });
29
- }
30
-
31
- /**
32
- * Return a priced cost quote for the proposed Connect Connection update plus a
33
- * diff against the current state.
34
- *
35
- * @example
36
- * ```ts
37
- * const costQuoteUpdate =
38
- * await client.networking.connect.connections.cost.update(
39
- * 'connection_id',
40
- * );
41
- * ```
42
- */
43
- update(
44
- connectionID: string,
45
- body: CostUpdateParams,
46
- options?: RequestOptions,
47
- ): APIPromise<Shared.CostQuoteUpdate> {
48
- return this._client.patch(path`/v1/networking/connect/connections/${connectionID}/cost`, {
49
- body,
50
- ...options,
51
- });
52
- }
53
- }
54
-
55
- export interface CostCreateParams {
56
- /**
57
- * Connect Connection speed in Mbps
58
- */
59
- bandwidth_mbps: ConnectAPI.ConnectBandwidthMbps;
60
-
61
- /**
62
- * CIDRs for the Connect Connection. Must be in network-aligned/canonical form.
63
- */
64
- cidrs: Array<string>;
65
-
66
- /**
67
- * Name of the Connect Connection
68
- */
69
- name: string;
70
-
71
- /**
72
- * Project ID the Connect Connection belongs to
73
- */
74
- project_id: string;
75
-
76
- /**
77
- * Provider CIDRs. Must be in network-aligned/canonical form.
78
- */
79
- provider_cidrs: Array<string>;
80
-
81
- /**
82
- * Region the resource is in.
83
- */
84
- region: Shared.RegionName;
85
-
86
- /**
87
- * AWS provider configuration
88
- */
89
- aws?: ConnectAPI.ConnectConnectionAWSConfigRequest;
90
-
91
- /**
92
- * Tags to attach to the Connect Connection
93
- */
94
- tags?: Array<string>;
95
- }
96
-
97
- export interface CostUpdateParams {
98
- /**
99
- * Name of the Connect Connection.
100
- */
101
- name?: string;
102
-
103
- /**
104
- * Tags to attach to the Connect Connection
105
- */
106
- tags?: Array<string>;
107
- }
108
-
109
- export declare namespace Cost {
110
- export { type CostCreateParams as CostCreateParams, type CostUpdateParams as CostUpdateParams };
111
- }
@@ -1,9 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- export {
4
- Connections,
5
- type ConnectionCreateParams,
6
- type ConnectionUpdateParams,
7
- type ConnectionListParams,
8
- } from './connections';
9
- export { Cost, type CostCreateParams, type CostUpdateParams } from './cost';
@@ -1,3 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- export * from './connections/index';
@@ -1,21 +0,0 @@
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
- type ConnectConnectionsCursor,
13
- type ConnectRoutesCursor,
14
- } from './connect';
15
- export {
16
- Connections,
17
- type ConnectionCreateParams,
18
- type ConnectionUpdateParams,
19
- type ConnectionListParams,
20
- } from './connections/index';
21
- export { Routes, type RouteListParams } from './routes';
@@ -1,59 +0,0 @@
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 { ConnectRoutesCursor } from './connect';
6
- import { Cursor, type CursorParams, PagePromise } from '../../../core/pagination';
7
- import { RequestOptions } from '../../../internal/request-options';
8
-
9
- export class Routes extends APIResource {
10
- /**
11
- * List all supported routes with regions for Connect.
12
- *
13
- * @example
14
- * ```ts
15
- * // Automatically fetches more pages as needed.
16
- * for await (const connectRoute of client.networking.connect.routes.list()) {
17
- * // ...
18
- * }
19
- * ```
20
- */
21
- list(
22
- query: RouteListParams | null | undefined = {},
23
- options?: RequestOptions,
24
- ): PagePromise<ConnectRoutesCursor, ConnectAPI.ConnectRoute> {
25
- return this._client.getAPIList('/v1/networking/connect/routes', Cursor<ConnectAPI.ConnectRoute>, {
26
- query,
27
- ...options,
28
- });
29
- }
30
- }
31
-
32
- export interface RouteListParams extends CursorParams {
33
- /**
34
- * Filter by provider
35
- */
36
- provider?: string;
37
-
38
- /**
39
- * Filter by the provider's own region
40
- */
41
- provider_region?: string;
42
-
43
- /**
44
- * Filter by the Nirvana region the route reaches
45
- */
46
- region?: string;
47
-
48
- /**
49
- * Comma-separated sort terms in precedence order, each field:asc or field:desc.
50
- * Fields: created_at, provider_region, region
51
- */
52
- sort?: string;
53
- }
54
-
55
- export declare namespace Routes {
56
- export { type RouteListParams as RouteListParams };
57
- }
58
-
59
- export { type ConnectRoutesCursor };
@@ -1,3 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- export * from './connect/index';