@nirvana-labs/nirvana 1.20.3 → 1.21.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 +37 -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 +2 -2
- package/resources/compute/vms/index.d.mts.map +1 -1
- package/resources/compute/vms/index.d.ts +2 -2
- 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/vms.d.mts +16 -5
- package/resources/compute/vms/vms.d.mts.map +1 -1
- package/resources/compute/vms/vms.d.ts +16 -5
- 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 +4 -0
- package/src/resources/compute/vms/index.ts +3 -1
- package/src/resources/compute/vms/vms.ts +20 -5
- 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
|
@@ -4,6 +4,7 @@ import * as Shared from "../../shared.mjs";
|
|
|
4
4
|
import * as AvailabilityAPI from "./availability.mjs";
|
|
5
5
|
import { Availability, AvailabilityCreateParams, AvailabilityCreateResponse, AvailabilityUpdateParams, AvailabilityUpdateResponse } from "./availability.mjs";
|
|
6
6
|
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
7
|
+
import { Cursor, type CursorParams, PagePromise } from "../../../core/pagination.mjs";
|
|
7
8
|
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
8
9
|
export declare class VPCs extends APIResource {
|
|
9
10
|
availability: AvailabilityAPI.Availability;
|
|
@@ -36,10 +37,13 @@ export declare class VPCs extends APIResource {
|
|
|
36
37
|
*
|
|
37
38
|
* @example
|
|
38
39
|
* ```ts
|
|
39
|
-
*
|
|
40
|
+
* // Automatically fetches more pages as needed.
|
|
41
|
+
* for await (const vpc of client.networking.vpcs.list()) {
|
|
42
|
+
* // ...
|
|
43
|
+
* }
|
|
40
44
|
* ```
|
|
41
45
|
*/
|
|
42
|
-
list(options?: RequestOptions):
|
|
46
|
+
list(query?: VPCListParams | null | undefined, options?: RequestOptions): PagePromise<VPCsCursor, VPC>;
|
|
43
47
|
/**
|
|
44
48
|
* Delete a VPC
|
|
45
49
|
*
|
|
@@ -61,6 +65,7 @@ export declare class VPCs extends APIResource {
|
|
|
61
65
|
*/
|
|
62
66
|
get(vpcID: string, options?: RequestOptions): APIPromise<VPC>;
|
|
63
67
|
}
|
|
68
|
+
export type VPCsCursor = Cursor<VPC>;
|
|
64
69
|
/**
|
|
65
70
|
* Subnet of the VPC.
|
|
66
71
|
*/
|
|
@@ -129,6 +134,10 @@ export interface VPC {
|
|
|
129
134
|
}
|
|
130
135
|
export interface VPCList {
|
|
131
136
|
items: Array<VPC>;
|
|
137
|
+
/**
|
|
138
|
+
* Pagination response details.
|
|
139
|
+
*/
|
|
140
|
+
pagination: Shared.Pagination;
|
|
132
141
|
}
|
|
133
142
|
export interface VPCCreateParams {
|
|
134
143
|
/**
|
|
@@ -162,8 +171,10 @@ export interface VPCUpdateParams {
|
|
|
162
171
|
*/
|
|
163
172
|
tags?: Array<string>;
|
|
164
173
|
}
|
|
174
|
+
export interface VPCListParams extends CursorParams {
|
|
175
|
+
}
|
|
165
176
|
export declare namespace VPCs {
|
|
166
|
-
export { type Subnet as Subnet, type VPC as VPC, type VPCList as VPCList, type VPCCreateParams as VPCCreateParams, type VPCUpdateParams as VPCUpdateParams, };
|
|
177
|
+
export { type Subnet as Subnet, type VPC as VPC, type VPCList as VPCList, type VPCsCursor as VPCsCursor, type VPCCreateParams as VPCCreateParams, type VPCUpdateParams as VPCUpdateParams, type VPCListParams as VPCListParams, };
|
|
167
178
|
export { Availability as Availability, type AvailabilityCreateResponse as AvailabilityCreateResponse, type AvailabilityUpdateResponse as AvailabilityUpdateResponse, type AvailabilityCreateParams as AvailabilityCreateParams, type AvailabilityUpdateParams as AvailabilityUpdateParams, };
|
|
168
179
|
}
|
|
169
180
|
//# sourceMappingURL=vpcs.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vpcs.d.mts","sourceRoot":"","sources":["../../../src/resources/networking/vpcs/vpcs.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,K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AAED,MAAM,WAAW,OAAO;IACtB,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IAElB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC,UAAU,CAAC;CAC/B;AAED,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,UAAU,CAAC;IAE1B;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACtB;AAED,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACtB;AAED,MAAM,WAAW,aAAc,SAAQ,YAAY;CAAG;AAItD,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,MAAM,IAAI,MAAM,EACrB,KAAK,GAAG,IAAI,GAAG,EACf,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,aAAa,IAAI,aAAa,GACpC,CAAC;IAEF,OAAO,EACL,YAAY,IAAI,YAAY,EAC5B,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -4,6 +4,7 @@ import * as Shared from "../../shared.js";
|
|
|
4
4
|
import * as AvailabilityAPI from "./availability.js";
|
|
5
5
|
import { Availability, AvailabilityCreateParams, AvailabilityCreateResponse, AvailabilityUpdateParams, AvailabilityUpdateResponse } from "./availability.js";
|
|
6
6
|
import { APIPromise } from "../../../core/api-promise.js";
|
|
7
|
+
import { Cursor, type CursorParams, PagePromise } from "../../../core/pagination.js";
|
|
7
8
|
import { RequestOptions } from "../../../internal/request-options.js";
|
|
8
9
|
export declare class VPCs extends APIResource {
|
|
9
10
|
availability: AvailabilityAPI.Availability;
|
|
@@ -36,10 +37,13 @@ export declare class VPCs extends APIResource {
|
|
|
36
37
|
*
|
|
37
38
|
* @example
|
|
38
39
|
* ```ts
|
|
39
|
-
*
|
|
40
|
+
* // Automatically fetches more pages as needed.
|
|
41
|
+
* for await (const vpc of client.networking.vpcs.list()) {
|
|
42
|
+
* // ...
|
|
43
|
+
* }
|
|
40
44
|
* ```
|
|
41
45
|
*/
|
|
42
|
-
list(options?: RequestOptions):
|
|
46
|
+
list(query?: VPCListParams | null | undefined, options?: RequestOptions): PagePromise<VPCsCursor, VPC>;
|
|
43
47
|
/**
|
|
44
48
|
* Delete a VPC
|
|
45
49
|
*
|
|
@@ -61,6 +65,7 @@ export declare class VPCs extends APIResource {
|
|
|
61
65
|
*/
|
|
62
66
|
get(vpcID: string, options?: RequestOptions): APIPromise<VPC>;
|
|
63
67
|
}
|
|
68
|
+
export type VPCsCursor = Cursor<VPC>;
|
|
64
69
|
/**
|
|
65
70
|
* Subnet of the VPC.
|
|
66
71
|
*/
|
|
@@ -129,6 +134,10 @@ export interface VPC {
|
|
|
129
134
|
}
|
|
130
135
|
export interface VPCList {
|
|
131
136
|
items: Array<VPC>;
|
|
137
|
+
/**
|
|
138
|
+
* Pagination response details.
|
|
139
|
+
*/
|
|
140
|
+
pagination: Shared.Pagination;
|
|
132
141
|
}
|
|
133
142
|
export interface VPCCreateParams {
|
|
134
143
|
/**
|
|
@@ -162,8 +171,10 @@ export interface VPCUpdateParams {
|
|
|
162
171
|
*/
|
|
163
172
|
tags?: Array<string>;
|
|
164
173
|
}
|
|
174
|
+
export interface VPCListParams extends CursorParams {
|
|
175
|
+
}
|
|
165
176
|
export declare namespace VPCs {
|
|
166
|
-
export { type Subnet as Subnet, type VPC as VPC, type VPCList as VPCList, type VPCCreateParams as VPCCreateParams, type VPCUpdateParams as VPCUpdateParams, };
|
|
177
|
+
export { type Subnet as Subnet, type VPC as VPC, type VPCList as VPCList, type VPCsCursor as VPCsCursor, type VPCCreateParams as VPCCreateParams, type VPCUpdateParams as VPCUpdateParams, type VPCListParams as VPCListParams, };
|
|
167
178
|
export { Availability as Availability, type AvailabilityCreateResponse as AvailabilityCreateResponse, type AvailabilityUpdateResponse as AvailabilityUpdateResponse, type AvailabilityCreateParams as AvailabilityCreateParams, type AvailabilityUpdateParams as AvailabilityUpdateParams, };
|
|
168
179
|
}
|
|
169
180
|
//# sourceMappingURL=vpcs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vpcs.d.ts","sourceRoot":"","sources":["../../../src/resources/networking/vpcs/vpcs.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,aAAa;OAClB,KAAK,MAAM;OACX,KAAK,eAAe;OACpB,EACL,YAAY,EACZ,wBAAwB,EACxB,0BAA0B,EAC1B,wBAAwB,EACxB,0BAA0B,EAC3B;OACM,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,IAAK,SAAQ,WAAW;IACnC,YAAY,EAAE,eAAe,CAAC,YAAY,CAAkD;IAE5F;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,IAAI,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,aAAa,CAAC,SAAS,CAAC;IAI5F;;;;;;;;;OASG;IACH,MAAM,CACJ,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,eAAe,EACrB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,aAAa,CAAC,SAAS,CAAC;IAItC
|
|
1
|
+
{"version":3,"file":"vpcs.d.ts","sourceRoot":"","sources":["../../../src/resources/networking/vp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,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,MAAM,IAAI,MAAM,EACrB,KAAK,GAAG,IAAI,GAAG,EACf,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,aAAa,IAAI,aAAa,GACpC,CAAC;IAEF,OAAO,EACL,YAAY,IAAI,YAAY,EAC5B,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -6,6 +6,7 @@ const tslib_1 = require("../../../internal/tslib.js");
|
|
|
6
6
|
const resource_1 = require("../../../core/resource.js");
|
|
7
7
|
const AvailabilityAPI = tslib_1.__importStar(require("./availability.js"));
|
|
8
8
|
const availability_1 = require("./availability.js");
|
|
9
|
+
const pagination_1 = require("../../../core/pagination.js");
|
|
9
10
|
const path_1 = require("../../../internal/utils/path.js");
|
|
10
11
|
class VPCs extends resource_1.APIResource {
|
|
11
12
|
constructor() {
|
|
@@ -45,11 +46,14 @@ class VPCs extends resource_1.APIResource {
|
|
|
45
46
|
*
|
|
46
47
|
* @example
|
|
47
48
|
* ```ts
|
|
48
|
-
*
|
|
49
|
+
* // Automatically fetches more pages as needed.
|
|
50
|
+
* for await (const vpc of client.networking.vpcs.list()) {
|
|
51
|
+
* // ...
|
|
52
|
+
* }
|
|
49
53
|
* ```
|
|
50
54
|
*/
|
|
51
|
-
list(options) {
|
|
52
|
-
return this._client.
|
|
55
|
+
list(query = {}, options) {
|
|
56
|
+
return this._client.getAPIList('/v1/networking/vpcs', (pagination_1.Cursor), { query, ...options });
|
|
53
57
|
}
|
|
54
58
|
/**
|
|
55
59
|
* Delete a VPC
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vpcs.js","sourceRoot":"","sources":["../../../src/resources/networking/vpcs/vpcs.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AAGrD,2EAAkD;AAClD,oDAMwB;
|
|
1
|
+
{"version":3,"file":"vpcs.js","sourceRoot":"","sources":["../../../src/resources/networking/vpcs/vpcs.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AAGrD,2EAAkD;AAClD,oDAMwB;AAExB,4DAAkF;AAElF,0DAAoD;AAEpD,MAAa,IAAK,SAAQ,sBAAW;IAArC;;QACE,iBAAY,GAAiC,IAAI,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA4E9F,CAAC;IA1EC;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,IAAqB,EAAE,OAAwB;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CACJ,KAAa,EACb,IAAqB,EACrB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,uBAAuB,KAAK,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtF,CAAC;IAED;;;;;;;;;;OAUG;IACH,IAAI,CAAC,QAA0C,EAAE,EAAE,OAAwB;QACzE,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,qBAAqB,EAAE,CAAA,mBAAW,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5F,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CAAC,KAAa,EAAE,OAAwB;QAC5C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,uBAAuB,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;IAED;;;;;;;OAOG;IACH,GAAG,CAAC,KAAa,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,uBAAuB,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;CACF;AA7ED,oBA6EC;AAsID,IAAI,CAAC,YAAY,GAAG,2BAAY,CAAC"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { APIResource } from "../../../core/resource.mjs";
|
|
3
3
|
import * as AvailabilityAPI from "./availability.mjs";
|
|
4
4
|
import { Availability, } from "./availability.mjs";
|
|
5
|
+
import { Cursor } from "../../../core/pagination.mjs";
|
|
5
6
|
import { path } from "../../../internal/utils/path.mjs";
|
|
6
7
|
export class VPCs extends APIResource {
|
|
7
8
|
constructor() {
|
|
@@ -41,11 +42,14 @@ export class VPCs extends APIResource {
|
|
|
41
42
|
*
|
|
42
43
|
* @example
|
|
43
44
|
* ```ts
|
|
44
|
-
*
|
|
45
|
+
* // Automatically fetches more pages as needed.
|
|
46
|
+
* for await (const vpc of client.networking.vpcs.list()) {
|
|
47
|
+
* // ...
|
|
48
|
+
* }
|
|
45
49
|
* ```
|
|
46
50
|
*/
|
|
47
|
-
list(options) {
|
|
48
|
-
return this._client.
|
|
51
|
+
list(query = {}, options) {
|
|
52
|
+
return this._client.getAPIList('/v1/networking/vpcs', (Cursor), { query, ...options });
|
|
49
53
|
}
|
|
50
54
|
/**
|
|
51
55
|
* Delete a VPC
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vpcs.mjs","sourceRoot":"","sources":["../../../src/resources/networking/vpcs/vpcs.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,KAAK,eAAe;OACpB,EACL,YAAY,GAKb;
|
|
1
|
+
{"version":3,"file":"vpcs.mjs","sourceRoot":"","sources":["../../../src/resources/networking/vpc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AC,CAAC;IACvE,CAAC;CACF;AAsID,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC"}
|
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import * as Shared from "./shared.mjs";
|
|
2
3
|
import { APIPromise } from "../core/api-promise.mjs";
|
|
4
|
+
import { Cursor, type CursorParams, PagePromise } from "../core/pagination.mjs";
|
|
3
5
|
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
6
|
export declare class Operations extends APIResource {
|
|
5
7
|
/**
|
|
6
8
|
* List all operations
|
|
7
9
|
*/
|
|
8
|
-
list(options?: RequestOptions):
|
|
10
|
+
list(query?: OperationListParams | null | undefined, options?: RequestOptions): PagePromise<OperationsCursor, Operation>;
|
|
9
11
|
/**
|
|
10
12
|
* Get details about a specific operation
|
|
11
13
|
*/
|
|
12
14
|
get(operationID: string, options?: RequestOptions): APIPromise<Operation>;
|
|
13
15
|
}
|
|
16
|
+
export type OperationsCursor = Cursor<Operation>;
|
|
14
17
|
/**
|
|
15
18
|
* Operation details.
|
|
16
19
|
*/
|
|
@@ -50,6 +53,10 @@ export interface Operation {
|
|
|
50
53
|
export type OperationKind = 'vm' | 'volume' | 'vpc' | 'firewall_rule';
|
|
51
54
|
export interface OperationList {
|
|
52
55
|
items: Array<Operation>;
|
|
56
|
+
/**
|
|
57
|
+
* Pagination response details.
|
|
58
|
+
*/
|
|
59
|
+
pagination: Shared.Pagination;
|
|
53
60
|
}
|
|
54
61
|
/**
|
|
55
62
|
* Status of the Operation.
|
|
@@ -59,7 +66,9 @@ export type OperationStatus = 'pending' | 'running' | 'done' | 'failed' | 'unkno
|
|
|
59
66
|
* Type of Operation.
|
|
60
67
|
*/
|
|
61
68
|
export type OperationType = 'create' | 'update' | 'delete' | 'restart';
|
|
69
|
+
export interface OperationListParams extends CursorParams {
|
|
70
|
+
}
|
|
62
71
|
export declare namespace Operations {
|
|
63
|
-
export { type Operation as Operation, type OperationKind as OperationKind, type OperationList as OperationList, type OperationStatus as OperationStatus, type OperationType as OperationType, };
|
|
72
|
+
export { type Operation as Operation, type OperationKind as OperationKind, type OperationList as OperationList, type OperationStatus as OperationStatus, type OperationType as OperationType, type OperationsCursor as OperationsCursor, type OperationListParams as OperationListParams, };
|
|
64
73
|
}
|
|
65
74
|
//# sourceMappingURL=operations.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.d.mts","sourceRoot":"","sources":["../src/resources/operations.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,UAAW,SAAQ,WAAW;IACzC;;OAEG;IACH,IAAI,
|
|
1
|
+
{"version":3,"file":"operations.d.mts","sourceRoot":"","sources":["../src/resources/operations.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE;OAC1C,EAAE,cAAc,EAAE;AAGzB,qBAAa,UAAW,SAAQ,WAAW;IACzC;;OAEG;IACH,IAAI,CACF,KAAK,GAAE,mBAAmB,GAAG,IAAI,GAAG,SAAc,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,gBAAgB,EAAE,SAAS,CAAC;IAI3C;;OAEG;IACH,GAAG,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC;CAG1E;AAED,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;AAEjD;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,IAAI,EAAE,aAAa,CAAC;IAEpB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,MAAM,EAAE,eAAe,CAAC;IAExB;;OAEG;IACH,IAAI,EAAE,aAAa,CAAC;IAEpB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,IAAI,GAAG,QAAQ,GAAG,KAAK,GAAG,eAAe,CAAC;AAEtE,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IAExB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC,UAAU,CAAC;CAC/B;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAC;AAEpF;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;AAEvE,MAAM,WAAW,mBAAoB,SAAQ,YAAY;CAAG;AAE5D,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import * as Shared from "./shared.js";
|
|
2
3
|
import { APIPromise } from "../core/api-promise.js";
|
|
4
|
+
import { Cursor, type CursorParams, PagePromise } from "../core/pagination.js";
|
|
3
5
|
import { RequestOptions } from "../internal/request-options.js";
|
|
4
6
|
export declare class Operations extends APIResource {
|
|
5
7
|
/**
|
|
6
8
|
* List all operations
|
|
7
9
|
*/
|
|
8
|
-
list(options?: RequestOptions):
|
|
10
|
+
list(query?: OperationListParams | null | undefined, options?: RequestOptions): PagePromise<OperationsCursor, Operation>;
|
|
9
11
|
/**
|
|
10
12
|
* Get details about a specific operation
|
|
11
13
|
*/
|
|
12
14
|
get(operationID: string, options?: RequestOptions): APIPromise<Operation>;
|
|
13
15
|
}
|
|
16
|
+
export type OperationsCursor = Cursor<Operation>;
|
|
14
17
|
/**
|
|
15
18
|
* Operation details.
|
|
16
19
|
*/
|
|
@@ -50,6 +53,10 @@ export interface Operation {
|
|
|
50
53
|
export type OperationKind = 'vm' | 'volume' | 'vpc' | 'firewall_rule';
|
|
51
54
|
export interface OperationList {
|
|
52
55
|
items: Array<Operation>;
|
|
56
|
+
/**
|
|
57
|
+
* Pagination response details.
|
|
58
|
+
*/
|
|
59
|
+
pagination: Shared.Pagination;
|
|
53
60
|
}
|
|
54
61
|
/**
|
|
55
62
|
* Status of the Operation.
|
|
@@ -59,7 +66,9 @@ export type OperationStatus = 'pending' | 'running' | 'done' | 'failed' | 'unkno
|
|
|
59
66
|
* Type of Operation.
|
|
60
67
|
*/
|
|
61
68
|
export type OperationType = 'create' | 'update' | 'delete' | 'restart';
|
|
69
|
+
export interface OperationListParams extends CursorParams {
|
|
70
|
+
}
|
|
62
71
|
export declare namespace Operations {
|
|
63
|
-
export { type Operation as Operation, type OperationKind as OperationKind, type OperationList as OperationList, type OperationStatus as OperationStatus, type OperationType as OperationType, };
|
|
72
|
+
export { type Operation as Operation, type OperationKind as OperationKind, type OperationList as OperationList, type OperationStatus as OperationStatus, type OperationType as OperationType, type OperationsCursor as OperationsCursor, type OperationListParams as OperationListParams, };
|
|
64
73
|
}
|
|
65
74
|
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../src/resources/operations.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB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AAe,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAC;AAEpF;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;AAEvE,MAAM,WAAW,mBAAoB,SAAQ,YAAY;CAAG;AAE5D,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
package/resources/operations.js
CHANGED
|
@@ -3,13 +3,14 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.Operations = void 0;
|
|
5
5
|
const resource_1 = require("../core/resource.js");
|
|
6
|
+
const pagination_1 = require("../core/pagination.js");
|
|
6
7
|
const path_1 = require("../internal/utils/path.js");
|
|
7
8
|
class Operations extends resource_1.APIResource {
|
|
8
9
|
/**
|
|
9
10
|
* List all operations
|
|
10
11
|
*/
|
|
11
|
-
list(options) {
|
|
12
|
-
return this._client.
|
|
12
|
+
list(query = {}, options) {
|
|
13
|
+
return this._client.getAPIList('/v1/operations', (pagination_1.Cursor), { query, ...options });
|
|
13
14
|
}
|
|
14
15
|
/**
|
|
15
16
|
* Get details about a specific operation
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../src/resources/operations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAA8C;AAE9C,MAAa,UAAW,SAAQ,sBAAW;IACzC;;OAEG;IACH,IAAI,
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../src/resources/operations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,sDAA4E;AAE5E,oDAA8C;AAE9C,MAAa,UAAW,SAAQ,sBAAW;IACzC;;OAEG;IACH,IAAI,CACF,QAAgD,EAAE,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,gBAAgB,EAAE,CAAA,mBAAiB,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;IAED;;OAEG;IACH,GAAG,CAAC,WAAmB,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,kBAAkB,WAAW,EAAE,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;CACF;AAjBD,gCAiBC"}
|
package/resources/operations.mjs
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
import { Cursor } from "../core/pagination.mjs";
|
|
3
4
|
import { path } from "../internal/utils/path.mjs";
|
|
4
5
|
export class Operations extends APIResource {
|
|
5
6
|
/**
|
|
6
7
|
* List all operations
|
|
7
8
|
*/
|
|
8
|
-
list(options) {
|
|
9
|
-
return this._client.
|
|
9
|
+
list(query = {}, options) {
|
|
10
|
+
return this._client.getAPIList('/v1/operations', (Cursor), { query, ...options });
|
|
10
11
|
}
|
|
11
12
|
/**
|
|
12
13
|
* Get details about a specific operation
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.mjs","sourceRoot":"","sources":["../src/resources/operations.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC;;OAEG;IACH,IAAI,
|
|
1
|
+
{"version":3,"file":"operations.mjs","sourceRoot":"","sources":["../src/resources/operations.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,MAAM,EAAkC;OAE1C,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC;;OAEG;IACH,IAAI,CACF,QAAgD,EAAE,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,gBAAgB,EAAE,CAAA,MAAiB,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;IAED;;OAEG;IACH,GAAG,CAAC,WAAmB,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,kBAAkB,WAAW,EAAE,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;CACF"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { APIResource } from "../../../core/resource.mjs";
|
|
2
2
|
import * as DedicatedAPI from "./dedicated.mjs";
|
|
3
|
-
import {
|
|
3
|
+
import { DedicatedBlockchainsCursor } from "./dedicated.mjs";
|
|
4
|
+
import { type CursorParams, PagePromise } from "../../../core/pagination.mjs";
|
|
4
5
|
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
5
6
|
export declare class Blockchains extends APIResource {
|
|
6
7
|
/**
|
|
@@ -8,10 +9,18 @@ export declare class Blockchains extends APIResource {
|
|
|
8
9
|
*
|
|
9
10
|
* @example
|
|
10
11
|
* ```ts
|
|
11
|
-
*
|
|
12
|
-
*
|
|
12
|
+
* // Automatically fetches more pages as needed.
|
|
13
|
+
* for await (const dedicatedBlockchain of client.rpcNodes.dedicated.blockchains.list()) {
|
|
14
|
+
* // ...
|
|
15
|
+
* }
|
|
13
16
|
* ```
|
|
14
17
|
*/
|
|
15
|
-
list(options?: RequestOptions):
|
|
18
|
+
list(query?: BlockchainListParams | null | undefined, options?: RequestOptions): PagePromise<DedicatedBlockchainsCursor, DedicatedAPI.DedicatedBlockchain>;
|
|
16
19
|
}
|
|
20
|
+
export interface BlockchainListParams extends CursorParams {
|
|
21
|
+
}
|
|
22
|
+
export declare namespace Blockchains {
|
|
23
|
+
export { type BlockchainListParams as BlockchainListParams };
|
|
24
|
+
}
|
|
25
|
+
export { type DedicatedBlockchainsCursor };
|
|
17
26
|
//# sourceMappingURL=blockchains.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockchains.d.mts","sourceRoot":"","sources":["../../../src/resources/rpc-nodes/dedicated/blockchains.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,EAAE,
|
|
1
|
+
{"version":3,"file":"blockchains.d.mts","sourceRoot":"","sources":["../../../src/resources/rpc-nodes/dedicated/blockchains.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,EAAE,0BAA0B,EAAE;OAC9B,EAAU,KAAK,YAAY,EAAE,WAAW,EAAE;OAC1C,EAAE,cAAc,EAAE;AAEzB,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;OAUG;IACH,IAAI,CACF,KAAK,GAAE,oBAAoB,GAAG,IAAI,GAAG,SAAc,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,0BAA0B,EAAE,YAAY,CAAC,mBAAmB,CAAC;CAO7E;AAED,MAAM,WAAW,oBAAqB,SAAQ,YAAY;CAAG;AAE7D,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EAAE,KAAK,oBAAoB,IAAI,oBAAoB,EAAE,CAAC;CAC9D;AAED,OAAO,EAAE,KAAK,0BAA0B,EAAE,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { APIResource } from "../../../core/resource.js";
|
|
2
2
|
import * as DedicatedAPI from "./dedicated.js";
|
|
3
|
-
import {
|
|
3
|
+
import { DedicatedBlockchainsCursor } from "./dedicated.js";
|
|
4
|
+
import { type CursorParams, PagePromise } from "../../../core/pagination.js";
|
|
4
5
|
import { RequestOptions } from "../../../internal/request-options.js";
|
|
5
6
|
export declare class Blockchains extends APIResource {
|
|
6
7
|
/**
|
|
@@ -8,10 +9,18 @@ export declare class Blockchains extends APIResource {
|
|
|
8
9
|
*
|
|
9
10
|
* @example
|
|
10
11
|
* ```ts
|
|
11
|
-
*
|
|
12
|
-
*
|
|
12
|
+
* // Automatically fetches more pages as needed.
|
|
13
|
+
* for await (const dedicatedBlockchain of client.rpcNodes.dedicated.blockchains.list()) {
|
|
14
|
+
* // ...
|
|
15
|
+
* }
|
|
13
16
|
* ```
|
|
14
17
|
*/
|
|
15
|
-
list(options?: RequestOptions):
|
|
18
|
+
list(query?: BlockchainListParams | null | undefined, options?: RequestOptions): PagePromise<DedicatedBlockchainsCursor, DedicatedAPI.DedicatedBlockchain>;
|
|
16
19
|
}
|
|
20
|
+
export interface BlockchainListParams extends CursorParams {
|
|
21
|
+
}
|
|
22
|
+
export declare namespace Blockchains {
|
|
23
|
+
export { type BlockchainListParams as BlockchainListParams };
|
|
24
|
+
}
|
|
25
|
+
export { type DedicatedBlockchainsCursor };
|
|
17
26
|
//# sourceMappingURL=blockchains.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockchains.d.ts","sourceRoot":"","sources":["../../../src/resources/rpc-nodes/dedicated/blockchains.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,EAAE,
|
|
1
|
+
{"version":3,"file":"blockchains.d.ts","sourceRoot":"","sources":["../../../src/resources/rpc-nodes/dedicated/blockchains.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,EAAE,0BAA0B,EAAE;OAC9B,EAAU,KAAK,YAAY,EAAE,WAAW,EAAE;OAC1C,EAAE,cAAc,EAAE;AAEzB,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;OAUG;IACH,IAAI,CACF,KAAK,GAAE,oBAAoB,GAAG,IAAI,GAAG,SAAc,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,0BAA0B,EAAE,YAAY,CAAC,mBAAmB,CAAC;CAO7E;AAED,MAAM,WAAW,oBAAqB,SAAQ,YAAY;CAAG;AAE7D,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EAAE,KAAK,oBAAoB,IAAI,oBAAoB,EAAE,CAAC;CAC9D;AAED,OAAO,EAAE,KAAK,0BAA0B,EAAE,CAAC"}
|
|
@@ -3,18 +3,21 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.Blockchains = void 0;
|
|
5
5
|
const resource_1 = require("../../../core/resource.js");
|
|
6
|
+
const pagination_1 = require("../../../core/pagination.js");
|
|
6
7
|
class Blockchains extends resource_1.APIResource {
|
|
7
8
|
/**
|
|
8
9
|
* List all Dedicated Blockchains
|
|
9
10
|
*
|
|
10
11
|
* @example
|
|
11
12
|
* ```ts
|
|
12
|
-
*
|
|
13
|
-
*
|
|
13
|
+
* // Automatically fetches more pages as needed.
|
|
14
|
+
* for await (const dedicatedBlockchain of client.rpcNodes.dedicated.blockchains.list()) {
|
|
15
|
+
* // ...
|
|
16
|
+
* }
|
|
14
17
|
* ```
|
|
15
18
|
*/
|
|
16
|
-
list(options) {
|
|
17
|
-
return this._client.
|
|
19
|
+
list(query = {}, options) {
|
|
20
|
+
return this._client.getAPIList('/v1/rpc_nodes/dedicated/blockchains', (pagination_1.Cursor), { query, ...options });
|
|
18
21
|
}
|
|
19
22
|
}
|
|
20
23
|
exports.Blockchains = Blockchains;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockchains.js","sourceRoot":"","sources":["../../../src/resources/rpc-nodes/dedicated/blockchains.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;
|
|
1
|
+
{"version":3,"file":"blockchains.js","sourceRoot":"","sources":["../../../src/resources/rpc-nodes/dedicated/blockchains.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAGrD,4DAAkF;AAGlF,MAAa,WAAY,SAAQ,sBAAW;IAC1C;;;;;;;;;;OAUG;IACH,IAAI,CACF,QAAiD,EAAE,EACnD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,qCAAqC,EACrC,CAAA,mBAAwC,CAAA,EACxC,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;CACF;AAtBD,kCAsBC"}
|
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
+
import { Cursor } from "../../../core/pagination.mjs";
|
|
3
4
|
export class Blockchains extends APIResource {
|
|
4
5
|
/**
|
|
5
6
|
* List all Dedicated Blockchains
|
|
6
7
|
*
|
|
7
8
|
* @example
|
|
8
9
|
* ```ts
|
|
9
|
-
*
|
|
10
|
-
*
|
|
10
|
+
* // Automatically fetches more pages as needed.
|
|
11
|
+
* for await (const dedicatedBlockchain of client.rpcNodes.dedicated.blockchains.list()) {
|
|
12
|
+
* // ...
|
|
13
|
+
* }
|
|
11
14
|
* ```
|
|
12
15
|
*/
|
|
13
|
-
list(options) {
|
|
14
|
-
return this._client.
|
|
16
|
+
list(query = {}, options) {
|
|
17
|
+
return this._client.getAPIList('/v1/rpc_nodes/dedicated/blockchains', (Cursor), { query, ...options });
|
|
15
18
|
}
|
|
16
19
|
}
|
|
17
20
|
//# sourceMappingURL=blockchains.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockchains.mjs","sourceRoot":"","sources":["../../../src/resources/rpc-nodes/dedicated/blockchains.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"blockchains.mjs","sourceRoot":"","sources":["../../../src/resources/rpc-nodes/dedicated/blockchains.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,MAAM,EAAkC;AAGjD,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;OAUG;IACH,IAAI,CACF,QAAiD,EAAE,EACnD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,qCAAqC,EACrC,CAAA,MAAwC,CAAA,EACxC,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
+
import * as Shared from "../../shared.mjs";
|
|
2
3
|
import * as BlockchainsAPI from "./blockchains.mjs";
|
|
3
|
-
import { Blockchains } from "./blockchains.mjs";
|
|
4
|
+
import { BlockchainListParams, Blockchains } from "./blockchains.mjs";
|
|
4
5
|
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
6
|
+
import { Cursor, type CursorParams, PagePromise } from "../../../core/pagination.mjs";
|
|
5
7
|
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
6
8
|
export declare class DedicatedResource extends APIResource {
|
|
7
9
|
blockchains: BlockchainsAPI.Blockchains;
|
|
@@ -10,11 +12,13 @@ export declare class DedicatedResource extends APIResource {
|
|
|
10
12
|
*
|
|
11
13
|
* @example
|
|
12
14
|
* ```ts
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
+
* // Automatically fetches more pages as needed.
|
|
16
|
+
* for await (const dedicated of client.rpcNodes.dedicated.list()) {
|
|
17
|
+
* // ...
|
|
18
|
+
* }
|
|
15
19
|
* ```
|
|
16
20
|
*/
|
|
17
|
-
list(options?: RequestOptions):
|
|
21
|
+
list(query?: DedicatedListParams | null | undefined, options?: RequestOptions): PagePromise<DedicatedsCursor, Dedicated>;
|
|
18
22
|
/**
|
|
19
23
|
* Get details about an RPC Node Dedicated
|
|
20
24
|
*
|
|
@@ -27,6 +31,8 @@ export declare class DedicatedResource extends APIResource {
|
|
|
27
31
|
*/
|
|
28
32
|
get(nodeID: string, options?: RequestOptions): APIPromise<Dedicated>;
|
|
29
33
|
}
|
|
34
|
+
export type DedicatedsCursor = Cursor<Dedicated>;
|
|
35
|
+
export type DedicatedBlockchainsCursor = Cursor<DedicatedBlockchain>;
|
|
30
36
|
/**
|
|
31
37
|
* RPC Node Dedicated details.
|
|
32
38
|
*/
|
|
@@ -79,12 +85,22 @@ export interface DedicatedBlockchain {
|
|
|
79
85
|
}
|
|
80
86
|
export interface DedicatedBlockchainList {
|
|
81
87
|
items: Array<DedicatedBlockchain>;
|
|
88
|
+
/**
|
|
89
|
+
* Pagination response details.
|
|
90
|
+
*/
|
|
91
|
+
pagination: Shared.Pagination;
|
|
82
92
|
}
|
|
83
93
|
export interface DedicatedList {
|
|
84
94
|
items: Array<Dedicated>;
|
|
95
|
+
/**
|
|
96
|
+
* Pagination response details.
|
|
97
|
+
*/
|
|
98
|
+
pagination: Shared.Pagination;
|
|
99
|
+
}
|
|
100
|
+
export interface DedicatedListParams extends CursorParams {
|
|
85
101
|
}
|
|
86
102
|
export declare namespace DedicatedResource {
|
|
87
|
-
export { type Dedicated as Dedicated, type DedicatedBlockchain as DedicatedBlockchain, type DedicatedBlockchainList as DedicatedBlockchainList, type DedicatedList as DedicatedList, };
|
|
88
|
-
export { Blockchains as Blockchains };
|
|
103
|
+
export { type Dedicated as Dedicated, type DedicatedBlockchain as DedicatedBlockchain, type DedicatedBlockchainList as DedicatedBlockchainList, type DedicatedList as DedicatedList, type DedicatedsCursor as DedicatedsCursor, type DedicatedListParams as DedicatedListParams, };
|
|
104
|
+
export { Blockchains as Blockchains, type BlockchainListParams as BlockchainListParams };
|
|
89
105
|
}
|
|
90
106
|
//# sourceMappingURL=dedicated.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dedicated.d.mts","sourceRoot":"","sources":["../../../src/resources/rpc-nodes/dedicated/dedicated.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;OACnB,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"dedicated.d.mts","sourceRoot":"","sources":["../../../src/resources/rpc-nodes/dedicated/dedicated.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,KAAK,cAAc;OACnB,EAAE,oBAAoB,EAAE,WAAW,EAAE;OACrC,EAAE,UAAU,EAAE;OACd,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE;OAC1C,EAAE,cAAc,EAAE;AAGzB,qBAAa,iBAAkB,SAAQ,WAAW;IAChD,WAAW,EAAE,cAAc,CAAC,WAAW,CAAgD;IAEvF;;;;;;;;;;OAUG;IACH,IAAI,CACF,KAAK,GAAE,mBAAmB,GAAG,IAAI,GAAG,SAAc,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,gBAAgB,EAAE,SAAS,CAAC;IAI3C;;;;;;;;;OASG;IACH,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC;CAGrE;AAED,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;AAEjD,MAAM,MAAM,0BAA0B,GAAG,MAAM,CAAC,mBAAmB,CAAC,CAAC;AAErE;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,IAAI,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