@nirvana-labs/nirvana 1.20.3 → 1.22.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/README.md +31 -0
- package/client.d.mts +7 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +7 -0
- package/client.d.ts.map +1 -1
- package/client.js +8 -0
- package/client.js.map +1 -1
- package/client.mjs +8 -0
- package/client.mjs.map +1 -1
- package/core/pagination.d.mts +61 -0
- package/core/pagination.d.mts.map +1 -0
- package/core/pagination.d.ts +61 -0
- package/core/pagination.d.ts.map +1 -0
- package/core/pagination.js +101 -0
- package/core/pagination.js.map +1 -0
- package/core/pagination.mjs +95 -0
- package/core/pagination.mjs.map +1 -0
- package/index.d.mts +1 -0
- package/index.d.mts.map +1 -1
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/index.mjs +1 -0
- package/index.mjs.map +1 -1
- package/internal/tslib.js +18 -18
- package/package.json +11 -1
- package/pagination.d.mts +2 -0
- package/pagination.d.mts.map +1 -0
- package/pagination.d.ts +2 -0
- package/pagination.d.ts.map +1 -0
- package/pagination.js +6 -0
- package/pagination.js.map +1 -0
- package/pagination.mjs +2 -0
- package/pagination.mjs.map +1 -0
- package/resources/api-keys.d.mts +16 -4
- package/resources/api-keys.d.mts.map +1 -1
- package/resources/api-keys.d.ts +16 -4
- package/resources/api-keys.d.ts.map +1 -1
- package/resources/api-keys.js +8 -4
- package/resources/api-keys.js.map +1 -1
- package/resources/api-keys.mjs +8 -4
- package/resources/api-keys.mjs.map +1 -1
- package/resources/compute/compute.d.mts +4 -4
- package/resources/compute/compute.d.mts.map +1 -1
- package/resources/compute/compute.d.ts +4 -4
- package/resources/compute/compute.d.ts.map +1 -1
- package/resources/compute/compute.js.map +1 -1
- package/resources/compute/compute.mjs.map +1 -1
- package/resources/compute/index.d.mts +2 -2
- package/resources/compute/index.d.mts.map +1 -1
- package/resources/compute/index.d.ts +2 -2
- package/resources/compute/index.d.ts.map +1 -1
- package/resources/compute/index.js.map +1 -1
- package/resources/compute/index.mjs.map +1 -1
- package/resources/compute/vms/index.d.mts +3 -3
- package/resources/compute/vms/index.d.mts.map +1 -1
- package/resources/compute/vms/index.d.ts +3 -3
- package/resources/compute/vms/index.d.ts.map +1 -1
- package/resources/compute/vms/index.js.map +1 -1
- package/resources/compute/vms/index.mjs.map +1 -1
- package/resources/compute/vms/os-images.d.mts +11 -5
- package/resources/compute/vms/os-images.d.mts.map +1 -1
- package/resources/compute/vms/os-images.d.ts +11 -5
- package/resources/compute/vms/os-images.d.ts.map +1 -1
- package/resources/compute/vms/os-images.js +10 -3
- package/resources/compute/vms/os-images.js.map +1 -1
- package/resources/compute/vms/os-images.mjs +10 -3
- package/resources/compute/vms/os-images.mjs.map +1 -1
- package/resources/compute/vms/vms.d.mts +19 -7
- package/resources/compute/vms/vms.d.mts.map +1 -1
- package/resources/compute/vms/vms.d.ts +19 -7
- package/resources/compute/vms/vms.d.ts.map +1 -1
- package/resources/compute/vms/vms.js +7 -3
- package/resources/compute/vms/vms.js.map +1 -1
- package/resources/compute/vms/vms.mjs +7 -3
- package/resources/compute/vms/vms.mjs.map +1 -1
- package/resources/compute/vms/volumes.d.mts +15 -5
- package/resources/compute/vms/volumes.d.mts.map +1 -1
- package/resources/compute/vms/volumes.d.ts +15 -5
- package/resources/compute/vms/volumes.d.ts.map +1 -1
- package/resources/compute/vms/volumes.js +11 -4
- package/resources/compute/vms/volumes.js.map +1 -1
- package/resources/compute/vms/volumes.mjs +11 -4
- package/resources/compute/vms/volumes.mjs.map +1 -1
- package/resources/compute/volumes/index.d.mts +1 -1
- package/resources/compute/volumes/index.d.mts.map +1 -1
- package/resources/compute/volumes/index.d.ts +1 -1
- package/resources/compute/volumes/index.d.ts.map +1 -1
- package/resources/compute/volumes/index.js.map +1 -1
- package/resources/compute/volumes/index.mjs.map +1 -1
- package/resources/compute/volumes/volumes.d.mts +14 -3
- package/resources/compute/volumes/volumes.d.mts.map +1 -1
- package/resources/compute/volumes/volumes.d.ts +14 -3
- package/resources/compute/volumes/volumes.d.ts.map +1 -1
- package/resources/compute/volumes/volumes.js +7 -3
- package/resources/compute/volumes/volumes.js.map +1 -1
- package/resources/compute/volumes/volumes.mjs +7 -3
- package/resources/compute/volumes/volumes.mjs.map +1 -1
- package/resources/networking/connect/connect.d.mts +15 -4
- package/resources/networking/connect/connect.d.mts.map +1 -1
- package/resources/networking/connect/connect.d.ts +15 -4
- package/resources/networking/connect/connect.d.ts.map +1 -1
- package/resources/networking/connect/connect.js.map +1 -1
- package/resources/networking/connect/connect.mjs +1 -1
- package/resources/networking/connect/connect.mjs.map +1 -1
- package/resources/networking/connect/connections.d.mts +11 -4
- package/resources/networking/connect/connections.d.mts.map +1 -1
- package/resources/networking/connect/connections.d.ts +11 -4
- package/resources/networking/connect/connections.d.ts.map +1 -1
- package/resources/networking/connect/connections.js +7 -4
- package/resources/networking/connect/connections.js.map +1 -1
- package/resources/networking/connect/connections.mjs +7 -4
- package/resources/networking/connect/connections.mjs.map +1 -1
- package/resources/networking/connect/index.d.mts +3 -3
- package/resources/networking/connect/index.d.mts.map +1 -1
- package/resources/networking/connect/index.d.ts +3 -3
- package/resources/networking/connect/index.d.ts.map +1 -1
- package/resources/networking/connect/index.js.map +1 -1
- package/resources/networking/connect/index.mjs +1 -1
- package/resources/networking/connect/index.mjs.map +1 -1
- package/resources/networking/connect/routes.d.mts +13 -4
- package/resources/networking/connect/routes.d.mts.map +1 -1
- package/resources/networking/connect/routes.d.ts +13 -4
- package/resources/networking/connect/routes.d.ts.map +1 -1
- package/resources/networking/connect/routes.js +10 -4
- package/resources/networking/connect/routes.js.map +1 -1
- package/resources/networking/connect/routes.mjs +10 -4
- package/resources/networking/connect/routes.mjs.map +1 -1
- package/resources/networking/firewall-rules.d.mts +16 -4
- package/resources/networking/firewall-rules.d.mts.map +1 -1
- package/resources/networking/firewall-rules.d.ts +16 -4
- package/resources/networking/firewall-rules.d.ts.map +1 -1
- package/resources/networking/firewall-rules.js +12 -4
- package/resources/networking/firewall-rules.js.map +1 -1
- package/resources/networking/firewall-rules.mjs +12 -4
- package/resources/networking/firewall-rules.mjs.map +1 -1
- package/resources/networking/index.d.mts +3 -3
- package/resources/networking/index.d.mts.map +1 -1
- package/resources/networking/index.d.ts +3 -3
- package/resources/networking/index.d.ts.map +1 -1
- package/resources/networking/index.js.map +1 -1
- package/resources/networking/index.mjs.map +1 -1
- package/resources/networking/networking.d.mts +4 -4
- package/resources/networking/networking.d.mts.map +1 -1
- package/resources/networking/networking.d.ts +4 -4
- package/resources/networking/networking.d.ts.map +1 -1
- package/resources/networking/networking.js.map +1 -1
- package/resources/networking/networking.mjs +1 -1
- package/resources/networking/networking.mjs.map +1 -1
- package/resources/networking/vpcs/index.d.mts +1 -1
- package/resources/networking/vpcs/index.d.mts.map +1 -1
- package/resources/networking/vpcs/index.d.ts +1 -1
- package/resources/networking/vpcs/index.d.ts.map +1 -1
- package/resources/networking/vpcs/index.js.map +1 -1
- package/resources/networking/vpcs/index.mjs.map +1 -1
- package/resources/networking/vpcs/vpcs.d.mts +14 -3
- package/resources/networking/vpcs/vpcs.d.mts.map +1 -1
- package/resources/networking/vpcs/vpcs.d.ts +14 -3
- package/resources/networking/vpcs/vpcs.d.ts.map +1 -1
- package/resources/networking/vpcs/vpcs.js +7 -3
- package/resources/networking/vpcs/vpcs.js.map +1 -1
- package/resources/networking/vpcs/vpcs.mjs +7 -3
- package/resources/networking/vpcs/vpcs.mjs.map +1 -1
- package/resources/operations.d.mts +11 -2
- package/resources/operations.d.mts.map +1 -1
- package/resources/operations.d.ts +11 -2
- package/resources/operations.d.ts.map +1 -1
- package/resources/operations.js +3 -2
- package/resources/operations.js.map +1 -1
- package/resources/operations.mjs +3 -2
- package/resources/operations.mjs.map +1 -1
- package/resources/rpc-nodes/dedicated/blockchains.d.mts +13 -4
- package/resources/rpc-nodes/dedicated/blockchains.d.mts.map +1 -1
- package/resources/rpc-nodes/dedicated/blockchains.d.ts +13 -4
- package/resources/rpc-nodes/dedicated/blockchains.d.ts.map +1 -1
- package/resources/rpc-nodes/dedicated/blockchains.js +7 -4
- package/resources/rpc-nodes/dedicated/blockchains.js.map +1 -1
- package/resources/rpc-nodes/dedicated/blockchains.mjs +7 -4
- package/resources/rpc-nodes/dedicated/blockchains.mjs.map +1 -1
- package/resources/rpc-nodes/dedicated/dedicated.d.mts +22 -6
- package/resources/rpc-nodes/dedicated/dedicated.d.mts.map +1 -1
- package/resources/rpc-nodes/dedicated/dedicated.d.ts +22 -6
- package/resources/rpc-nodes/dedicated/dedicated.d.ts.map +1 -1
- package/resources/rpc-nodes/dedicated/dedicated.js +7 -4
- package/resources/rpc-nodes/dedicated/dedicated.js.map +1 -1
- package/resources/rpc-nodes/dedicated/dedicated.mjs +7 -4
- package/resources/rpc-nodes/dedicated/dedicated.mjs.map +1 -1
- package/resources/rpc-nodes/dedicated/index.d.mts +2 -2
- package/resources/rpc-nodes/dedicated/index.d.mts.map +1 -1
- package/resources/rpc-nodes/dedicated/index.d.ts +2 -2
- package/resources/rpc-nodes/dedicated/index.d.ts.map +1 -1
- package/resources/rpc-nodes/dedicated/index.js.map +1 -1
- package/resources/rpc-nodes/dedicated/index.mjs.map +1 -1
- package/resources/rpc-nodes/flex/blockchains.d.mts +13 -4
- package/resources/rpc-nodes/flex/blockchains.d.mts.map +1 -1
- package/resources/rpc-nodes/flex/blockchains.d.ts +13 -4
- package/resources/rpc-nodes/flex/blockchains.d.ts.map +1 -1
- package/resources/rpc-nodes/flex/blockchains.js +10 -4
- package/resources/rpc-nodes/flex/blockchains.js.map +1 -1
- package/resources/rpc-nodes/flex/blockchains.mjs +10 -4
- package/resources/rpc-nodes/flex/blockchains.mjs.map +1 -1
- package/resources/rpc-nodes/flex/flex.d.mts +22 -5
- package/resources/rpc-nodes/flex/flex.d.mts.map +1 -1
- package/resources/rpc-nodes/flex/flex.d.ts +22 -5
- package/resources/rpc-nodes/flex/flex.d.ts.map +1 -1
- package/resources/rpc-nodes/flex/flex.js +7 -3
- package/resources/rpc-nodes/flex/flex.js.map +1 -1
- package/resources/rpc-nodes/flex/flex.mjs +7 -3
- package/resources/rpc-nodes/flex/flex.mjs.map +1 -1
- package/resources/rpc-nodes/flex/index.d.mts +2 -2
- package/resources/rpc-nodes/flex/index.d.mts.map +1 -1
- package/resources/rpc-nodes/flex/index.d.ts +2 -2
- 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.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.map +1 -1
- package/resources/rpc-nodes/index.mjs.map +1 -1
- package/resources/rpc-nodes/rpc-nodes.d.mts +4 -4
- package/resources/rpc-nodes/rpc-nodes.d.mts.map +1 -1
- package/resources/rpc-nodes/rpc-nodes.d.ts +4 -4
- 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.map +1 -1
- package/resources/shared.d.mts +8 -0
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +8 -0
- package/resources/shared.d.ts.map +1 -1
- package/src/client.ts +25 -0
- package/src/core/pagination.ts +167 -0
- package/src/index.ts +1 -0
- package/src/pagination.ts +2 -0
- package/src/resources/api-keys.ts +23 -4
- package/src/resources/compute/compute.ts +8 -0
- package/src/resources/compute/index.ts +5 -0
- package/src/resources/compute/vms/index.ts +5 -2
- package/src/resources/compute/vms/os-images.ts +18 -6
- package/src/resources/compute/vms/vms.ts +24 -7
- package/src/resources/compute/vms/volumes.ts +25 -6
- package/src/resources/compute/volumes/index.ts +2 -0
- package/src/resources/compute/volumes/volumes.ts +21 -3
- package/src/resources/networking/connect/connect.ts +24 -3
- package/src/resources/networking/connect/connections.ts +20 -4
- package/src/resources/networking/connect/index.ts +9 -2
- package/src/resources/networking/connect/routes.ts +22 -5
- package/src/resources/networking/firewall-rules.ts +27 -4
- package/src/resources/networking/index.ts +6 -0
- package/src/resources/networking/networking.ts +16 -1
- package/src/resources/networking/vpcs/index.ts +2 -0
- package/src/resources/networking/vpcs/vpcs.ts +18 -3
- package/src/resources/operations.ts +18 -2
- package/src/resources/rpc-nodes/dedicated/blockchains.ts +23 -5
- package/src/resources/rpc-nodes/dedicated/dedicated.ts +31 -6
- package/src/resources/rpc-nodes/dedicated/index.ts +4 -1
- package/src/resources/rpc-nodes/flex/blockchains.ts +22 -5
- package/src/resources/rpc-nodes/flex/flex.ts +31 -5
- package/src/resources/rpc-nodes/flex/index.ts +4 -1
- package/src/resources/rpc-nodes/index.ts +6 -0
- package/src/resources/rpc-nodes/rpc-nodes.ts +8 -0
- package/src/resources/shared.ts +11 -0
- 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
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../../core/resource';
|
|
4
4
|
import * as DedicatedAPI from './dedicated';
|
|
5
|
-
import {
|
|
5
|
+
import { DedicatedBlockchainsCursor } from './dedicated';
|
|
6
|
+
import { Cursor, type CursorParams, PagePromise } from '../../../core/pagination';
|
|
6
7
|
import { RequestOptions } from '../../../internal/request-options';
|
|
7
8
|
|
|
8
9
|
export class Blockchains extends APIResource {
|
|
@@ -11,11 +12,28 @@ export class Blockchains extends APIResource {
|
|
|
11
12
|
*
|
|
12
13
|
* @example
|
|
13
14
|
* ```ts
|
|
14
|
-
*
|
|
15
|
-
*
|
|
15
|
+
* // Automatically fetches more pages as needed.
|
|
16
|
+
* for await (const dedicatedBlockchain of client.rpcNodes.dedicated.blockchains.list()) {
|
|
17
|
+
* // ...
|
|
18
|
+
* }
|
|
16
19
|
* ```
|
|
17
20
|
*/
|
|
18
|
-
list(
|
|
19
|
-
|
|
21
|
+
list(
|
|
22
|
+
query: BlockchainListParams | null | undefined = {},
|
|
23
|
+
options?: RequestOptions,
|
|
24
|
+
): PagePromise<DedicatedBlockchainsCursor, DedicatedAPI.DedicatedBlockchain> {
|
|
25
|
+
return this._client.getAPIList(
|
|
26
|
+
'/v1/rpc_nodes/dedicated/blockchains',
|
|
27
|
+
Cursor<DedicatedAPI.DedicatedBlockchain>,
|
|
28
|
+
{ query, ...options },
|
|
29
|
+
);
|
|
20
30
|
}
|
|
21
31
|
}
|
|
32
|
+
|
|
33
|
+
export interface BlockchainListParams extends CursorParams {}
|
|
34
|
+
|
|
35
|
+
export declare namespace Blockchains {
|
|
36
|
+
export { type BlockchainListParams as BlockchainListParams };
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export { type DedicatedBlockchainsCursor };
|
|
@@ -1,9 +1,11 @@
|
|
|
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 Shared from '../../shared';
|
|
4
5
|
import * as BlockchainsAPI from './blockchains';
|
|
5
|
-
import { Blockchains } from './blockchains';
|
|
6
|
+
import { BlockchainListParams, Blockchains } from './blockchains';
|
|
6
7
|
import { APIPromise } from '../../../core/api-promise';
|
|
8
|
+
import { Cursor, type CursorParams, PagePromise } from '../../../core/pagination';
|
|
7
9
|
import { RequestOptions } from '../../../internal/request-options';
|
|
8
10
|
import { path } from '../../../internal/utils/path';
|
|
9
11
|
|
|
@@ -15,12 +17,17 @@ export class DedicatedResource extends APIResource {
|
|
|
15
17
|
*
|
|
16
18
|
* @example
|
|
17
19
|
* ```ts
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
+
* // Automatically fetches more pages as needed.
|
|
21
|
+
* for await (const dedicated of client.rpcNodes.dedicated.list()) {
|
|
22
|
+
* // ...
|
|
23
|
+
* }
|
|
20
24
|
* ```
|
|
21
25
|
*/
|
|
22
|
-
list(
|
|
23
|
-
|
|
26
|
+
list(
|
|
27
|
+
query: DedicatedListParams | null | undefined = {},
|
|
28
|
+
options?: RequestOptions,
|
|
29
|
+
): PagePromise<DedicatedsCursor, Dedicated> {
|
|
30
|
+
return this._client.getAPIList('/v1/rpc_nodes/dedicated', Cursor<Dedicated>, { query, ...options });
|
|
24
31
|
}
|
|
25
32
|
|
|
26
33
|
/**
|
|
@@ -38,6 +45,10 @@ export class DedicatedResource extends APIResource {
|
|
|
38
45
|
}
|
|
39
46
|
}
|
|
40
47
|
|
|
48
|
+
export type DedicatedsCursor = Cursor<Dedicated>;
|
|
49
|
+
|
|
50
|
+
export type DedicatedBlockchainsCursor = Cursor<DedicatedBlockchain>;
|
|
51
|
+
|
|
41
52
|
/**
|
|
42
53
|
* RPC Node Dedicated details.
|
|
43
54
|
*/
|
|
@@ -100,12 +111,24 @@ export interface DedicatedBlockchain {
|
|
|
100
111
|
|
|
101
112
|
export interface DedicatedBlockchainList {
|
|
102
113
|
items: Array<DedicatedBlockchain>;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Pagination response details.
|
|
117
|
+
*/
|
|
118
|
+
pagination: Shared.Pagination;
|
|
103
119
|
}
|
|
104
120
|
|
|
105
121
|
export interface DedicatedList {
|
|
106
122
|
items: Array<Dedicated>;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Pagination response details.
|
|
126
|
+
*/
|
|
127
|
+
pagination: Shared.Pagination;
|
|
107
128
|
}
|
|
108
129
|
|
|
130
|
+
export interface DedicatedListParams extends CursorParams {}
|
|
131
|
+
|
|
109
132
|
DedicatedResource.Blockchains = Blockchains;
|
|
110
133
|
|
|
111
134
|
export declare namespace DedicatedResource {
|
|
@@ -114,7 +137,9 @@ export declare namespace DedicatedResource {
|
|
|
114
137
|
type DedicatedBlockchain as DedicatedBlockchain,
|
|
115
138
|
type DedicatedBlockchainList as DedicatedBlockchainList,
|
|
116
139
|
type DedicatedList as DedicatedList,
|
|
140
|
+
type DedicatedsCursor as DedicatedsCursor,
|
|
141
|
+
type DedicatedListParams as DedicatedListParams,
|
|
117
142
|
};
|
|
118
143
|
|
|
119
|
-
export { Blockchains as Blockchains };
|
|
144
|
+
export { Blockchains as Blockchains, type BlockchainListParams as BlockchainListParams };
|
|
120
145
|
}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
export { Blockchains } from './blockchains';
|
|
3
|
+
export { Blockchains, type BlockchainListParams } from './blockchains';
|
|
4
4
|
export {
|
|
5
5
|
DedicatedResource,
|
|
6
6
|
type Dedicated,
|
|
7
7
|
type DedicatedBlockchain,
|
|
8
8
|
type DedicatedBlockchainList,
|
|
9
9
|
type DedicatedList,
|
|
10
|
+
type DedicatedListParams,
|
|
11
|
+
type DedicatedBlockchainsCursor,
|
|
12
|
+
type DedicatedsCursor,
|
|
10
13
|
} from './dedicated';
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../../core/resource';
|
|
4
4
|
import * as FlexAPI from './flex';
|
|
5
|
-
import {
|
|
5
|
+
import { FlexBlockchainsCursor } from './flex';
|
|
6
|
+
import { Cursor, type CursorParams, PagePromise } from '../../../core/pagination';
|
|
6
7
|
import { RequestOptions } from '../../../internal/request-options';
|
|
7
8
|
|
|
8
9
|
export class Blockchains extends APIResource {
|
|
@@ -11,11 +12,27 @@ export class Blockchains extends APIResource {
|
|
|
11
12
|
*
|
|
12
13
|
* @example
|
|
13
14
|
* ```ts
|
|
14
|
-
*
|
|
15
|
-
*
|
|
15
|
+
* // Automatically fetches more pages as needed.
|
|
16
|
+
* for await (const flexBlockchain of client.rpcNodes.flex.blockchains.list()) {
|
|
17
|
+
* // ...
|
|
18
|
+
* }
|
|
16
19
|
* ```
|
|
17
20
|
*/
|
|
18
|
-
list(
|
|
19
|
-
|
|
21
|
+
list(
|
|
22
|
+
query: BlockchainListParams | null | undefined = {},
|
|
23
|
+
options?: RequestOptions,
|
|
24
|
+
): PagePromise<FlexBlockchainsCursor, FlexAPI.FlexBlockchain> {
|
|
25
|
+
return this._client.getAPIList('/v1/rpc_nodes/flex/blockchains', Cursor<FlexAPI.FlexBlockchain>, {
|
|
26
|
+
query,
|
|
27
|
+
...options,
|
|
28
|
+
});
|
|
20
29
|
}
|
|
21
30
|
}
|
|
31
|
+
|
|
32
|
+
export interface BlockchainListParams extends CursorParams {}
|
|
33
|
+
|
|
34
|
+
export declare namespace Blockchains {
|
|
35
|
+
export { type BlockchainListParams as BlockchainListParams };
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export { type FlexBlockchainsCursor };
|
|
@@ -1,9 +1,11 @@
|
|
|
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 Shared from '../../shared';
|
|
4
5
|
import * as BlockchainsAPI from './blockchains';
|
|
5
|
-
import { Blockchains } from './blockchains';
|
|
6
|
+
import { BlockchainListParams, Blockchains } from './blockchains';
|
|
6
7
|
import { APIPromise } from '../../../core/api-promise';
|
|
8
|
+
import { Cursor, type CursorParams, PagePromise } from '../../../core/pagination';
|
|
7
9
|
import { buildHeaders } from '../../../internal/headers';
|
|
8
10
|
import { RequestOptions } from '../../../internal/request-options';
|
|
9
11
|
import { path } from '../../../internal/utils/path';
|
|
@@ -44,11 +46,17 @@ export class FlexResource extends APIResource {
|
|
|
44
46
|
*
|
|
45
47
|
* @example
|
|
46
48
|
* ```ts
|
|
47
|
-
*
|
|
49
|
+
* // Automatically fetches more pages as needed.
|
|
50
|
+
* for await (const flex of client.rpcNodes.flex.list()) {
|
|
51
|
+
* // ...
|
|
52
|
+
* }
|
|
48
53
|
* ```
|
|
49
54
|
*/
|
|
50
|
-
list(
|
|
51
|
-
|
|
55
|
+
list(
|
|
56
|
+
query: FlexListParams | null | undefined = {},
|
|
57
|
+
options?: RequestOptions,
|
|
58
|
+
): PagePromise<FlexesCursor, Flex> {
|
|
59
|
+
return this._client.getAPIList('/v1/rpc_nodes/flex', Cursor<Flex>, { query, ...options });
|
|
52
60
|
}
|
|
53
61
|
|
|
54
62
|
/**
|
|
@@ -79,6 +87,10 @@ export class FlexResource extends APIResource {
|
|
|
79
87
|
}
|
|
80
88
|
}
|
|
81
89
|
|
|
90
|
+
export type FlexesCursor = Cursor<Flex>;
|
|
91
|
+
|
|
92
|
+
export type FlexBlockchainsCursor = Cursor<FlexBlockchain>;
|
|
93
|
+
|
|
82
94
|
/**
|
|
83
95
|
* RPC Node Flex details.
|
|
84
96
|
*/
|
|
@@ -141,10 +153,20 @@ export interface FlexBlockchain {
|
|
|
141
153
|
|
|
142
154
|
export interface FlexBlockchainList {
|
|
143
155
|
items: Array<FlexBlockchain>;
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Pagination response details.
|
|
159
|
+
*/
|
|
160
|
+
pagination: Shared.Pagination;
|
|
144
161
|
}
|
|
145
162
|
|
|
146
163
|
export interface FlexList {
|
|
147
164
|
items: Array<Flex>;
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Pagination response details.
|
|
168
|
+
*/
|
|
169
|
+
pagination: Shared.Pagination;
|
|
148
170
|
}
|
|
149
171
|
|
|
150
172
|
export interface FlexCreateParams {
|
|
@@ -181,6 +203,8 @@ export interface FlexUpdateParams {
|
|
|
181
203
|
tags?: Array<string>;
|
|
182
204
|
}
|
|
183
205
|
|
|
206
|
+
export interface FlexListParams extends CursorParams {}
|
|
207
|
+
|
|
184
208
|
FlexResource.Blockchains = Blockchains;
|
|
185
209
|
|
|
186
210
|
export declare namespace FlexResource {
|
|
@@ -189,9 +213,11 @@ export declare namespace FlexResource {
|
|
|
189
213
|
type FlexBlockchain as FlexBlockchain,
|
|
190
214
|
type FlexBlockchainList as FlexBlockchainList,
|
|
191
215
|
type FlexList as FlexList,
|
|
216
|
+
type FlexesCursor as FlexesCursor,
|
|
192
217
|
type FlexCreateParams as FlexCreateParams,
|
|
193
218
|
type FlexUpdateParams as FlexUpdateParams,
|
|
219
|
+
type FlexListParams as FlexListParams,
|
|
194
220
|
};
|
|
195
221
|
|
|
196
|
-
export { Blockchains as Blockchains };
|
|
222
|
+
export { Blockchains as Blockchains, type BlockchainListParams as BlockchainListParams };
|
|
197
223
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
export { Blockchains } from './blockchains';
|
|
3
|
+
export { Blockchains, type BlockchainListParams } from './blockchains';
|
|
4
4
|
export {
|
|
5
5
|
FlexResource,
|
|
6
6
|
type Flex,
|
|
@@ -9,4 +9,7 @@ export {
|
|
|
9
9
|
type FlexList,
|
|
10
10
|
type FlexCreateParams,
|
|
11
11
|
type FlexUpdateParams,
|
|
12
|
+
type FlexListParams,
|
|
13
|
+
type FlexBlockchainsCursor,
|
|
14
|
+
type FlexesCursor,
|
|
12
15
|
} from './flex';
|
|
@@ -6,6 +6,9 @@ export {
|
|
|
6
6
|
type DedicatedBlockchain,
|
|
7
7
|
type DedicatedBlockchainList,
|
|
8
8
|
type DedicatedList,
|
|
9
|
+
type DedicatedListParams,
|
|
10
|
+
type DedicatedBlockchainsCursor,
|
|
11
|
+
type DedicatedsCursor,
|
|
9
12
|
} from './dedicated/index';
|
|
10
13
|
export {
|
|
11
14
|
FlexResource,
|
|
@@ -15,5 +18,8 @@ export {
|
|
|
15
18
|
type FlexList,
|
|
16
19
|
type FlexCreateParams,
|
|
17
20
|
type FlexUpdateParams,
|
|
21
|
+
type FlexListParams,
|
|
22
|
+
type FlexBlockchainsCursor,
|
|
23
|
+
type FlexesCursor,
|
|
18
24
|
} from './flex/index';
|
|
19
25
|
export { RPCNodes } from './rpc-nodes';
|
|
@@ -7,7 +7,9 @@ import {
|
|
|
7
7
|
DedicatedBlockchain,
|
|
8
8
|
DedicatedBlockchainList,
|
|
9
9
|
DedicatedList,
|
|
10
|
+
DedicatedListParams,
|
|
10
11
|
DedicatedResource,
|
|
12
|
+
DedicatedsCursor,
|
|
11
13
|
} from './dedicated/dedicated';
|
|
12
14
|
import * as FlexAPI from './flex/flex';
|
|
13
15
|
import {
|
|
@@ -16,8 +18,10 @@ import {
|
|
|
16
18
|
FlexBlockchainList,
|
|
17
19
|
FlexCreateParams,
|
|
18
20
|
FlexList,
|
|
21
|
+
FlexListParams,
|
|
19
22
|
FlexResource,
|
|
20
23
|
FlexUpdateParams,
|
|
24
|
+
FlexesCursor,
|
|
21
25
|
} from './flex/flex';
|
|
22
26
|
|
|
23
27
|
export class RPCNodes extends APIResource {
|
|
@@ -35,8 +39,10 @@ export declare namespace RPCNodes {
|
|
|
35
39
|
type FlexBlockchain as FlexBlockchain,
|
|
36
40
|
type FlexBlockchainList as FlexBlockchainList,
|
|
37
41
|
type FlexList as FlexList,
|
|
42
|
+
type FlexesCursor as FlexesCursor,
|
|
38
43
|
type FlexCreateParams as FlexCreateParams,
|
|
39
44
|
type FlexUpdateParams as FlexUpdateParams,
|
|
45
|
+
type FlexListParams as FlexListParams,
|
|
40
46
|
};
|
|
41
47
|
|
|
42
48
|
export {
|
|
@@ -45,5 +51,7 @@ export declare namespace RPCNodes {
|
|
|
45
51
|
type DedicatedBlockchain as DedicatedBlockchain,
|
|
46
52
|
type DedicatedBlockchainList as DedicatedBlockchainList,
|
|
47
53
|
type DedicatedList as DedicatedList,
|
|
54
|
+
type DedicatedsCursor as DedicatedsCursor,
|
|
55
|
+
type DedicatedListParams as DedicatedListParams,
|
|
48
56
|
};
|
|
49
57
|
}
|
package/src/resources/shared.ts
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* Pagination response details.
|
|
5
|
+
*/
|
|
6
|
+
export interface Pagination {
|
|
7
|
+
next_cursor: string | null;
|
|
8
|
+
|
|
9
|
+
previous_cursor: string | null;
|
|
10
|
+
|
|
11
|
+
total_count: number;
|
|
12
|
+
}
|
|
13
|
+
|
|
3
14
|
/**
|
|
4
15
|
* Region the resource is in.
|
|
5
16
|
*/
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '1.
|
|
1
|
+
export const VERSION = '1.22.0'; // 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.22.0";
|
|
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.22.0";
|
|
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.22.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|