@nirvana-labs/nirvana 1.19.0 → 1.20.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/README.md +7 -7
- package/client.d.mts +0 -3
- package/client.d.mts.map +1 -1
- package/client.d.ts +0 -3
- package/client.d.ts.map +1 -1
- package/client.js +0 -3
- package/client.js.map +1 -1
- package/client.mjs +0 -3
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/index.d.mts +0 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +0 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +0 -1
- package/resources/index.mjs.map +1 -1
- package/resources/networking/connect/connect.d.mts +130 -0
- package/resources/networking/connect/connect.d.mts.map +1 -0
- package/resources/networking/connect/connect.d.ts +130 -0
- package/resources/networking/connect/connect.d.ts.map +1 -0
- package/resources/networking/connect/connect.js +21 -0
- package/resources/networking/connect/connect.js.map +1 -0
- package/resources/networking/connect/connect.mjs +16 -0
- package/resources/networking/connect/connect.mjs.map +1 -0
- package/resources/networking/connect/connections.d.mts +114 -0
- package/resources/networking/connect/connections.d.mts.map +1 -0
- package/resources/networking/connect/connections.d.ts +114 -0
- package/resources/networking/connect/connections.d.ts.map +1 -0
- package/resources/networking/connect/connections.js +82 -0
- package/resources/networking/connect/connections.js.map +1 -0
- package/resources/networking/connect/connections.mjs +78 -0
- package/resources/networking/connect/connections.mjs.map +1 -0
- package/resources/networking/connect/index.d.mts +4 -0
- package/resources/networking/connect/index.d.mts.map +1 -0
- package/resources/networking/connect/index.d.ts +4 -0
- package/resources/networking/connect/index.d.ts.map +1 -0
- package/resources/networking/connect/index.js +11 -0
- package/resources/networking/connect/index.js.map +1 -0
- package/resources/{connect/flux → networking/connect}/index.mjs +2 -1
- package/resources/networking/connect/index.mjs.map +1 -0
- package/resources/networking/connect/routes.d.mts +17 -0
- package/resources/networking/connect/routes.d.mts.map +1 -0
- package/resources/networking/connect/routes.d.ts +17 -0
- package/resources/networking/connect/routes.d.ts.map +1 -0
- package/resources/{connect/flux → networking/connect}/routes.js +4 -4
- package/resources/networking/connect/routes.js.map +1 -0
- package/resources/{connect/flux → networking/connect}/routes.mjs +4 -4
- package/resources/networking/connect/routes.mjs.map +1 -0
- package/resources/networking/connect.d.mts.map +1 -0
- package/resources/networking/connect.d.ts.map +1 -0
- package/resources/{connect.js → networking/connect.js} +1 -1
- package/resources/networking/connect.js.map +1 -0
- package/resources/networking/connect.mjs.map +1 -0
- package/resources/networking/index.d.mts +1 -0
- package/resources/networking/index.d.mts.map +1 -1
- package/resources/networking/index.d.ts +1 -0
- package/resources/networking/index.d.ts.map +1 -1
- package/resources/networking/index.js +5 -3
- package/resources/networking/index.js.map +1 -1
- package/resources/networking/index.mjs +1 -0
- package/resources/networking/index.mjs.map +1 -1
- package/resources/networking/networking.d.mts +4 -0
- package/resources/networking/networking.d.mts.map +1 -1
- package/resources/networking/networking.d.ts +4 -0
- package/resources/networking/networking.d.ts.map +1 -1
- package/resources/networking/networking.js +4 -0
- package/resources/networking/networking.js.map +1 -1
- package/resources/networking/networking.mjs +4 -0
- package/resources/networking/networking.mjs.map +1 -1
- package/resources/rpc-nodes/dedicated/blockchains.d.mts +6 -0
- package/resources/rpc-nodes/dedicated/blockchains.d.mts.map +1 -1
- package/resources/rpc-nodes/dedicated/blockchains.d.ts +6 -0
- package/resources/rpc-nodes/dedicated/blockchains.d.ts.map +1 -1
- package/resources/rpc-nodes/dedicated/blockchains.js +6 -0
- package/resources/rpc-nodes/dedicated/blockchains.js.map +1 -1
- package/resources/rpc-nodes/dedicated/blockchains.mjs +6 -0
- package/resources/rpc-nodes/dedicated/blockchains.mjs.map +1 -1
- package/resources/rpc-nodes/dedicated/dedicated.d.mts +13 -0
- package/resources/rpc-nodes/dedicated/dedicated.d.mts.map +1 -1
- package/resources/rpc-nodes/dedicated/dedicated.d.ts +13 -0
- package/resources/rpc-nodes/dedicated/dedicated.d.ts.map +1 -1
- package/resources/rpc-nodes/dedicated/dedicated.js +13 -0
- package/resources/rpc-nodes/dedicated/dedicated.js.map +1 -1
- package/resources/rpc-nodes/dedicated/dedicated.mjs +13 -0
- package/resources/rpc-nodes/dedicated/dedicated.mjs.map +1 -1
- package/resources/rpc-nodes/flex/blockchains.d.mts +6 -0
- package/resources/rpc-nodes/flex/blockchains.d.mts.map +1 -1
- package/resources/rpc-nodes/flex/blockchains.d.ts +6 -0
- package/resources/rpc-nodes/flex/blockchains.d.ts.map +1 -1
- package/resources/rpc-nodes/flex/blockchains.js +6 -0
- package/resources/rpc-nodes/flex/blockchains.js.map +1 -1
- package/resources/rpc-nodes/flex/blockchains.mjs +6 -0
- package/resources/rpc-nodes/flex/blockchains.mjs.map +1 -1
- package/resources/rpc-nodes/flex/flex.d.mts +70 -1
- package/resources/rpc-nodes/flex/flex.d.mts.map +1 -1
- package/resources/rpc-nodes/flex/flex.d.ts +70 -1
- package/resources/rpc-nodes/flex/flex.d.ts.map +1 -1
- package/resources/rpc-nodes/flex/flex.js +51 -0
- package/resources/rpc-nodes/flex/flex.js.map +1 -1
- package/resources/rpc-nodes/flex/flex.mjs +51 -0
- package/resources/rpc-nodes/flex/flex.mjs.map +1 -1
- package/resources/rpc-nodes/flex/index.d.mts +1 -1
- package/resources/rpc-nodes/flex/index.d.mts.map +1 -1
- package/resources/rpc-nodes/flex/index.d.ts +1 -1
- package/resources/rpc-nodes/flex/index.d.ts.map +1 -1
- package/resources/rpc-nodes/flex/index.js.map +1 -1
- package/resources/rpc-nodes/flex/index.mjs +1 -1
- package/resources/rpc-nodes/flex/index.mjs.map +1 -1
- package/resources/rpc-nodes/index.d.mts +1 -1
- package/resources/rpc-nodes/index.d.mts.map +1 -1
- package/resources/rpc-nodes/index.d.ts +1 -1
- package/resources/rpc-nodes/index.d.ts.map +1 -1
- package/resources/rpc-nodes/index.js.map +1 -1
- package/resources/rpc-nodes/index.mjs.map +1 -1
- package/resources/rpc-nodes/rpc-nodes.d.mts +2 -2
- package/resources/rpc-nodes/rpc-nodes.d.mts.map +1 -1
- package/resources/rpc-nodes/rpc-nodes.d.ts +2 -2
- package/resources/rpc-nodes/rpc-nodes.d.ts.map +1 -1
- package/resources/rpc-nodes/rpc-nodes.js.map +1 -1
- package/resources/rpc-nodes/rpc-nodes.mjs +1 -1
- package/resources/rpc-nodes/rpc-nodes.mjs.map +1 -1
- package/src/client.ts +0 -5
- package/src/resources/index.ts +0 -1
- package/src/resources/networking/connect/connect.ts +174 -0
- package/src/resources/networking/connect/connections.ts +148 -0
- package/src/resources/networking/connect/index.ts +14 -0
- package/src/resources/{connect/flux → networking/connect}/routes.ts +6 -6
- package/src/resources/networking/index.ts +10 -0
- package/src/resources/networking/networking.ts +24 -0
- package/src/resources/rpc-nodes/dedicated/blockchains.ts +6 -0
- package/src/resources/rpc-nodes/dedicated/dedicated.ts +13 -0
- package/src/resources/rpc-nodes/flex/blockchains.ts +6 -0
- package/src/resources/rpc-nodes/flex/flex.ts +90 -0
- package/src/resources/rpc-nodes/flex/index.ts +9 -1
- package/src/resources/rpc-nodes/index.ts +2 -0
- package/src/resources/rpc-nodes/rpc-nodes.ts +11 -1
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/connect/connect.d.mts +0 -10
- package/resources/connect/connect.d.mts.map +0 -1
- package/resources/connect/connect.d.ts +0 -10
- package/resources/connect/connect.d.ts.map +0 -1
- package/resources/connect/connect.js +0 -17
- package/resources/connect/connect.js.map +0 -1
- package/resources/connect/connect.mjs +0 -12
- package/resources/connect/connect.mjs.map +0 -1
- package/resources/connect/flux/flux.d.mts +0 -224
- package/resources/connect/flux/flux.d.mts.map +0 -1
- package/resources/connect/flux/flux.d.ts +0 -224
- package/resources/connect/flux/flux.d.ts.map +0 -1
- package/resources/connect/flux/flux.js +0 -83
- package/resources/connect/flux/flux.js.map +0 -1
- package/resources/connect/flux/flux.mjs +0 -78
- package/resources/connect/flux/flux.mjs.map +0 -1
- package/resources/connect/flux/index.d.mts +0 -3
- package/resources/connect/flux/index.d.mts.map +0 -1
- package/resources/connect/flux/index.d.ts +0 -3
- package/resources/connect/flux/index.d.ts.map +0 -1
- package/resources/connect/flux/index.js +0 -9
- package/resources/connect/flux/index.js.map +0 -1
- package/resources/connect/flux/index.mjs.map +0 -1
- package/resources/connect/flux/routes.d.mts +0 -17
- package/resources/connect/flux/routes.d.mts.map +0 -1
- package/resources/connect/flux/routes.d.ts +0 -17
- package/resources/connect/flux/routes.d.ts.map +0 -1
- package/resources/connect/flux/routes.js.map +0 -1
- package/resources/connect/flux/routes.mjs.map +0 -1
- package/resources/connect/flux.d.mts +0 -2
- package/resources/connect/flux.d.mts.map +0 -1
- package/resources/connect/flux.d.ts +0 -2
- package/resources/connect/flux.d.ts.map +0 -1
- package/resources/connect/flux.js +0 -6
- package/resources/connect/flux.js.map +0 -1
- package/resources/connect/flux.mjs +0 -3
- package/resources/connect/flux.mjs.map +0 -1
- package/resources/connect/index.d.mts +0 -3
- package/resources/connect/index.d.mts.map +0 -1
- package/resources/connect/index.d.ts +0 -3
- package/resources/connect/index.d.ts.map +0 -1
- package/resources/connect/index.js +0 -9
- package/resources/connect/index.js.map +0 -1
- package/resources/connect/index.mjs +0 -4
- package/resources/connect/index.mjs.map +0 -1
- package/resources/connect.d.mts.map +0 -1
- package/resources/connect.d.ts.map +0 -1
- package/resources/connect.js.map +0 -1
- package/resources/connect.mjs.map +0 -1
- package/src/resources/connect/connect.ts +0 -37
- package/src/resources/connect/flux/flux.ts +0 -293
- package/src/resources/connect/flux/index.ts +0 -15
- package/src/resources/connect/flux.ts +0 -3
- package/src/resources/connect/index.ts +0 -15
- /package/resources/{connect.d.mts → networking/connect.d.mts} +0 -0
- /package/resources/{connect.d.ts → networking/connect.d.ts} +0 -0
- /package/resources/{connect.mjs → networking/connect.mjs} +0 -0
- /package/src/resources/{connect.ts → networking/connect.ts} +0 -0
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
-
import * as FluxAPI from "./flux/flux.mjs";
|
|
3
|
-
import { Flux, FluxBandwidthMbps, FluxCreateParams, FluxList, FluxProviderAWSConfig, FluxProviderAWSConfigRequest, FluxResource, FluxRoute, FluxRouteList, FluxUpdateParams } from "./flux/flux.mjs";
|
|
4
|
-
export declare class Connect extends APIResource {
|
|
5
|
-
flux: FluxAPI.FluxResource;
|
|
6
|
-
}
|
|
7
|
-
export declare namespace Connect {
|
|
8
|
-
export { FluxResource as FluxResource, type Flux as Flux, type FluxBandwidthMbps as FluxBandwidthMbps, type FluxList as FluxList, type FluxProviderAWSConfig as FluxProviderAWSConfig, type FluxProviderAWSConfigRequest as FluxProviderAWSConfigRequest, type FluxRoute as FluxRoute, type FluxRouteList as FluxRouteList, type FluxCreateParams as FluxCreateParams, type FluxUpdateParams as FluxUpdateParams, };
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=connect.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"connect.d.mts","sourceRoot":"","sources":["../../src/resources/connect/connect.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EACL,IAAI,EACJ,iBAAiB,EACjB,gBAAgB,EAChB,QAAQ,EACR,qBAAqB,EACrB,4BAA4B,EAC5B,YAAY,EACZ,SAAS,EACT,aAAa,EACb,gBAAgB,EACjB;AAED,qBAAa,OAAQ,SAAQ,WAAW;IACtC,IAAI,EAAE,OAAO,CAAC,YAAY,CAA0C;CACrE;AAID,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,YAAY,IAAI,YAAY,EAC5B,KAAK,IAAI,IAAI,IAAI,EACjB,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,QAAQ,IAAI,QAAQ,EACzB,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../core/resource.js";
|
|
2
|
-
import * as FluxAPI from "./flux/flux.js";
|
|
3
|
-
import { Flux, FluxBandwidthMbps, FluxCreateParams, FluxList, FluxProviderAWSConfig, FluxProviderAWSConfigRequest, FluxResource, FluxRoute, FluxRouteList, FluxUpdateParams } from "./flux/flux.js";
|
|
4
|
-
export declare class Connect extends APIResource {
|
|
5
|
-
flux: FluxAPI.FluxResource;
|
|
6
|
-
}
|
|
7
|
-
export declare namespace Connect {
|
|
8
|
-
export { FluxResource as FluxResource, type Flux as Flux, type FluxBandwidthMbps as FluxBandwidthMbps, type FluxList as FluxList, type FluxProviderAWSConfig as FluxProviderAWSConfig, type FluxProviderAWSConfigRequest as FluxProviderAWSConfigRequest, type FluxRoute as FluxRoute, type FluxRouteList as FluxRouteList, type FluxCreateParams as FluxCreateParams, type FluxUpdateParams as FluxUpdateParams, };
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=connect.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"connect.d.ts","sourceRoot":"","sources":["../../src/resources/connect/connect.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EACL,IAAI,EACJ,iBAAiB,EACjB,gBAAgB,EAChB,QAAQ,EACR,qBAAqB,EACrB,4BAA4B,EAC5B,YAAY,EACZ,SAAS,EACT,aAAa,EACb,gBAAgB,EACjB;AAED,qBAAa,OAAQ,SAAQ,WAAW;IACtC,IAAI,EAAE,OAAO,CAAC,YAAY,CAA0C;CACrE;AAID,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,YAAY,IAAI,YAAY,EAC5B,KAAK,IAAI,IAAI,IAAI,EACjB,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,QAAQ,IAAI,QAAQ,EACzB,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Connect = void 0;
|
|
5
|
-
const tslib_1 = require("../../internal/tslib.js");
|
|
6
|
-
const resource_1 = require("../../core/resource.js");
|
|
7
|
-
const FluxAPI = tslib_1.__importStar(require("./flux/flux.js"));
|
|
8
|
-
const flux_1 = require("./flux/flux.js");
|
|
9
|
-
class Connect extends resource_1.APIResource {
|
|
10
|
-
constructor() {
|
|
11
|
-
super(...arguments);
|
|
12
|
-
this.flux = new FluxAPI.FluxResource(this._client);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
exports.Connect = Connect;
|
|
16
|
-
Connect.FluxResource = flux_1.FluxResource;
|
|
17
|
-
//# sourceMappingURL=connect.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"connect.js","sourceRoot":"","sources":["../../src/resources/connect/connect.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,gEAAuC;AACvC,yCAWqB;AAErB,MAAa,OAAQ,SAAQ,sBAAW;IAAxC;;QACE,SAAI,GAAyB,IAAI,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACtE,CAAC;CAAA;AAFD,0BAEC;AAED,OAAO,CAAC,YAAY,GAAG,mBAAY,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
-
import * as FluxAPI from "./flux/flux.mjs";
|
|
4
|
-
import { FluxResource, } from "./flux/flux.mjs";
|
|
5
|
-
export class Connect extends APIResource {
|
|
6
|
-
constructor() {
|
|
7
|
-
super(...arguments);
|
|
8
|
-
this.flux = new FluxAPI.FluxResource(this._client);
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
Connect.FluxResource = FluxResource;
|
|
12
|
-
//# sourceMappingURL=connect.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"connect.mjs","sourceRoot":"","sources":["../../src/resources/connect/connect.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EAOL,YAAY,GAIb;AAED,MAAM,OAAO,OAAQ,SAAQ,WAAW;IAAxC;;QACE,SAAI,GAAyB,IAAI,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACtE,CAAC;CAAA;AAED,OAAO,CAAC,YAAY,GAAG,YAAY,CAAC"}
|
|
@@ -1,224 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
-
import * as OperationsAPI from "../../operations.mjs";
|
|
3
|
-
import * as Shared from "../../shared.mjs";
|
|
4
|
-
import * as RoutesAPI from "./routes.mjs";
|
|
5
|
-
import { Routes } from "./routes.mjs";
|
|
6
|
-
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
7
|
-
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
8
|
-
export declare class FluxResource extends APIResource {
|
|
9
|
-
routes: RoutesAPI.Routes;
|
|
10
|
-
/**
|
|
11
|
-
* Create a Connect Flux
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```ts
|
|
15
|
-
* const operation = await client.connect.flux.create({
|
|
16
|
-
* bandwidth_mbps: 50,
|
|
17
|
-
* cidrs: ['10.0.0.0/16'],
|
|
18
|
-
* name: 'my-connect-flux',
|
|
19
|
-
* provider_cidrs: ['172.16.0.0/16'],
|
|
20
|
-
* region: 'us-wdc-1',
|
|
21
|
-
* });
|
|
22
|
-
* ```
|
|
23
|
-
*/
|
|
24
|
-
create(body: FluxCreateParams, options?: RequestOptions): APIPromise<OperationsAPI.Operation>;
|
|
25
|
-
/**
|
|
26
|
-
* Update Connect Flux details
|
|
27
|
-
*
|
|
28
|
-
* @example
|
|
29
|
-
* ```ts
|
|
30
|
-
* const operation = await client.connect.flux.update(
|
|
31
|
-
* 'flux_id',
|
|
32
|
-
* );
|
|
33
|
-
* ```
|
|
34
|
-
*/
|
|
35
|
-
update(fluxID: string, body: FluxUpdateParams, options?: RequestOptions): APIPromise<OperationsAPI.Operation>;
|
|
36
|
-
/**
|
|
37
|
-
* List all Connect Flux
|
|
38
|
-
*
|
|
39
|
-
* @example
|
|
40
|
-
* ```ts
|
|
41
|
-
* const fluxList = await client.connect.flux.list();
|
|
42
|
-
* ```
|
|
43
|
-
*/
|
|
44
|
-
list(options?: RequestOptions): APIPromise<FluxList>;
|
|
45
|
-
/**
|
|
46
|
-
* Delete Connect Flux
|
|
47
|
-
*
|
|
48
|
-
* @example
|
|
49
|
-
* ```ts
|
|
50
|
-
* const operation = await client.connect.flux.delete(
|
|
51
|
-
* 'flux_id',
|
|
52
|
-
* );
|
|
53
|
-
* ```
|
|
54
|
-
*/
|
|
55
|
-
delete(fluxID: string, options?: RequestOptions): APIPromise<OperationsAPI.Operation>;
|
|
56
|
-
/**
|
|
57
|
-
* Get Connect Flux details
|
|
58
|
-
*
|
|
59
|
-
* @example
|
|
60
|
-
* ```ts
|
|
61
|
-
* const flux = await client.connect.flux.get('flux_id');
|
|
62
|
-
* ```
|
|
63
|
-
*/
|
|
64
|
-
get(fluxID: string, options?: RequestOptions): APIPromise<Flux>;
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Connect flux details.
|
|
68
|
-
*/
|
|
69
|
-
export interface Flux {
|
|
70
|
-
/**
|
|
71
|
-
* Unique identifier for the Connect Flux
|
|
72
|
-
*/
|
|
73
|
-
id: string;
|
|
74
|
-
/**
|
|
75
|
-
* ASN
|
|
76
|
-
*/
|
|
77
|
-
asn: number | null;
|
|
78
|
-
/**
|
|
79
|
-
* AWS provider configuration
|
|
80
|
-
*/
|
|
81
|
-
aws: FluxProviderAWSConfig | null;
|
|
82
|
-
/**
|
|
83
|
-
* Connect Flux speed in Mbps
|
|
84
|
-
*/
|
|
85
|
-
bandwidth_mbps: FluxBandwidthMbps;
|
|
86
|
-
/**
|
|
87
|
-
* CIDRs for the Connect Flux
|
|
88
|
-
*/
|
|
89
|
-
cidrs: Array<string>;
|
|
90
|
-
/**
|
|
91
|
-
* When the Connect Flux was created
|
|
92
|
-
*/
|
|
93
|
-
created_at: string;
|
|
94
|
-
/**
|
|
95
|
-
* Name of the Connect Flux
|
|
96
|
-
*/
|
|
97
|
-
name: string;
|
|
98
|
-
/**
|
|
99
|
-
* Provider ASN
|
|
100
|
-
*/
|
|
101
|
-
provider_asn: number | null;
|
|
102
|
-
/**
|
|
103
|
-
* Provider CIDRs for the Connect Flux
|
|
104
|
-
*/
|
|
105
|
-
provider_cidrs: Array<string>;
|
|
106
|
-
/**
|
|
107
|
-
* Provider Router IP
|
|
108
|
-
*/
|
|
109
|
-
provider_router_ip: string | null;
|
|
110
|
-
/**
|
|
111
|
-
* Region the resource is in.
|
|
112
|
-
*/
|
|
113
|
-
region: Shared.RegionName;
|
|
114
|
-
/**
|
|
115
|
-
* Router IP
|
|
116
|
-
*/
|
|
117
|
-
router_ip: string | null;
|
|
118
|
-
/**
|
|
119
|
-
* Status of the resource.
|
|
120
|
-
*/
|
|
121
|
-
status: Shared.ResourceStatus;
|
|
122
|
-
/**
|
|
123
|
-
* Tags to attach to the Connect Flux
|
|
124
|
-
*/
|
|
125
|
-
tags: Array<string>;
|
|
126
|
-
/**
|
|
127
|
-
* When the Connect Flux was updated
|
|
128
|
-
*/
|
|
129
|
-
updated_at: string;
|
|
130
|
-
}
|
|
131
|
-
/**
|
|
132
|
-
* Connect Flux speed in Mbps
|
|
133
|
-
*/
|
|
134
|
-
export type FluxBandwidthMbps = 50 | 200 | 500 | 1000 | 2000;
|
|
135
|
-
export interface FluxList {
|
|
136
|
-
items: Array<Flux>;
|
|
137
|
-
}
|
|
138
|
-
/**
|
|
139
|
-
* AWS provider configuration
|
|
140
|
-
*/
|
|
141
|
-
export interface FluxProviderAWSConfig {
|
|
142
|
-
/**
|
|
143
|
-
* AWS region where the connection is established
|
|
144
|
-
*/
|
|
145
|
-
region: string;
|
|
146
|
-
}
|
|
147
|
-
/**
|
|
148
|
-
* AWS provider configuration
|
|
149
|
-
*/
|
|
150
|
-
export interface FluxProviderAWSConfigRequest {
|
|
151
|
-
/**
|
|
152
|
-
* AWS account id
|
|
153
|
-
*/
|
|
154
|
-
account_id: string;
|
|
155
|
-
/**
|
|
156
|
-
* AWS region where the connection will be established
|
|
157
|
-
*/
|
|
158
|
-
region: string;
|
|
159
|
-
}
|
|
160
|
-
/**
|
|
161
|
-
* Routes supported for Connect Flux.
|
|
162
|
-
*/
|
|
163
|
-
export interface FluxRoute {
|
|
164
|
-
/**
|
|
165
|
-
* Region the resource is in.
|
|
166
|
-
*/
|
|
167
|
-
nirvana_region: Shared.RegionName;
|
|
168
|
-
/**
|
|
169
|
-
* Provider name.
|
|
170
|
-
*/
|
|
171
|
-
provider: string;
|
|
172
|
-
/**
|
|
173
|
-
* Provider region name.
|
|
174
|
-
*/
|
|
175
|
-
provider_region: string;
|
|
176
|
-
}
|
|
177
|
-
export interface FluxRouteList {
|
|
178
|
-
items: Array<FluxRoute>;
|
|
179
|
-
}
|
|
180
|
-
export interface FluxCreateParams {
|
|
181
|
-
/**
|
|
182
|
-
* Connect Flux speed in Mbps
|
|
183
|
-
*/
|
|
184
|
-
bandwidth_mbps: FluxBandwidthMbps;
|
|
185
|
-
/**
|
|
186
|
-
* CIDRs for the Connect Flux
|
|
187
|
-
*/
|
|
188
|
-
cidrs: Array<string>;
|
|
189
|
-
/**
|
|
190
|
-
* Name of the Connect Flux
|
|
191
|
-
*/
|
|
192
|
-
name: string;
|
|
193
|
-
/**
|
|
194
|
-
* Provider CIDRs
|
|
195
|
-
*/
|
|
196
|
-
provider_cidrs: Array<string>;
|
|
197
|
-
/**
|
|
198
|
-
* Region the resource is in.
|
|
199
|
-
*/
|
|
200
|
-
region: Shared.RegionName;
|
|
201
|
-
/**
|
|
202
|
-
* AWS provider configuration
|
|
203
|
-
*/
|
|
204
|
-
aws?: FluxProviderAWSConfigRequest;
|
|
205
|
-
/**
|
|
206
|
-
* Tags to attach to the Connect Flux
|
|
207
|
-
*/
|
|
208
|
-
tags?: Array<string>;
|
|
209
|
-
}
|
|
210
|
-
export interface FluxUpdateParams {
|
|
211
|
-
/**
|
|
212
|
-
* Name of the Connect Flux.
|
|
213
|
-
*/
|
|
214
|
-
name?: string;
|
|
215
|
-
/**
|
|
216
|
-
* Tags to attach to the Connect Flux
|
|
217
|
-
*/
|
|
218
|
-
tags?: Array<string>;
|
|
219
|
-
}
|
|
220
|
-
export declare namespace FluxResource {
|
|
221
|
-
export { type Flux as Flux, type FluxBandwidthMbps as FluxBandwidthMbps, type FluxList as FluxList, type FluxProviderAWSConfig as FluxProviderAWSConfig, type FluxProviderAWSConfigRequest as FluxProviderAWSConfigRequest, type FluxRoute as FluxRoute, type FluxRouteList as FluxRouteList, type FluxCreateParams as FluxCreateParams, type FluxUpdateParams as FluxUpdateParams, };
|
|
222
|
-
export { Routes as Routes };
|
|
223
|
-
}
|
|
224
|
-
//# sourceMappingURL=flux.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version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c,EAAE,iBAAiB,CAAC;IAElC;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAErB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,cAAc,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE9B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,UAAU,CAAC;IAE1B;;OAEG;IACH,GAAG,CAAC,EAAE,4BAA4B,CAAC;IAEnC;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACtB;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACtB;AAID,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,IAAI,IAAI,IAAI,EACjB,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,QAAQ,IAAI,QAAQ,EACzB,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;IAEF,OAAO,EAAE,MAAM,IAAI,MAAM,EAAE,CAAC;CAC7B"}
|
|
@@ -1,224 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../../core/resource.js";
|
|
2
|
-
import * as OperationsAPI from "../../operations.js";
|
|
3
|
-
import * as Shared from "../../shared.js";
|
|
4
|
-
import * as RoutesAPI from "./routes.js";
|
|
5
|
-
import { Routes } from "./routes.js";
|
|
6
|
-
import { APIPromise } from "../../../core/api-promise.js";
|
|
7
|
-
import { RequestOptions } from "../../../internal/request-options.js";
|
|
8
|
-
export declare class FluxResource extends APIResource {
|
|
9
|
-
routes: RoutesAPI.Routes;
|
|
10
|
-
/**
|
|
11
|
-
* Create a Connect Flux
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```ts
|
|
15
|
-
* const operation = await client.connect.flux.create({
|
|
16
|
-
* bandwidth_mbps: 50,
|
|
17
|
-
* cidrs: ['10.0.0.0/16'],
|
|
18
|
-
* name: 'my-connect-flux',
|
|
19
|
-
* provider_cidrs: ['172.16.0.0/16'],
|
|
20
|
-
* region: 'us-wdc-1',
|
|
21
|
-
* });
|
|
22
|
-
* ```
|
|
23
|
-
*/
|
|
24
|
-
create(body: FluxCreateParams, options?: RequestOptions): APIPromise<OperationsAPI.Operation>;
|
|
25
|
-
/**
|
|
26
|
-
* Update Connect Flux details
|
|
27
|
-
*
|
|
28
|
-
* @example
|
|
29
|
-
* ```ts
|
|
30
|
-
* const operation = await client.connect.flux.update(
|
|
31
|
-
* 'flux_id',
|
|
32
|
-
* );
|
|
33
|
-
* ```
|
|
34
|
-
*/
|
|
35
|
-
update(fluxID: string, body: FluxUpdateParams, options?: RequestOptions): APIPromise<OperationsAPI.Operation>;
|
|
36
|
-
/**
|
|
37
|
-
* List all Connect Flux
|
|
38
|
-
*
|
|
39
|
-
* @example
|
|
40
|
-
* ```ts
|
|
41
|
-
* const fluxList = await client.connect.flux.list();
|
|
42
|
-
* ```
|
|
43
|
-
*/
|
|
44
|
-
list(options?: RequestOptions): APIPromise<FluxList>;
|
|
45
|
-
/**
|
|
46
|
-
* Delete Connect Flux
|
|
47
|
-
*
|
|
48
|
-
* @example
|
|
49
|
-
* ```ts
|
|
50
|
-
* const operation = await client.connect.flux.delete(
|
|
51
|
-
* 'flux_id',
|
|
52
|
-
* );
|
|
53
|
-
* ```
|
|
54
|
-
*/
|
|
55
|
-
delete(fluxID: string, options?: RequestOptions): APIPromise<OperationsAPI.Operation>;
|
|
56
|
-
/**
|
|
57
|
-
* Get Connect Flux details
|
|
58
|
-
*
|
|
59
|
-
* @example
|
|
60
|
-
* ```ts
|
|
61
|
-
* const flux = await client.connect.flux.get('flux_id');
|
|
62
|
-
* ```
|
|
63
|
-
*/
|
|
64
|
-
get(fluxID: string, options?: RequestOptions): APIPromise<Flux>;
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Connect flux details.
|
|
68
|
-
*/
|
|
69
|
-
export interface Flux {
|
|
70
|
-
/**
|
|
71
|
-
* Unique identifier for the Connect Flux
|
|
72
|
-
*/
|
|
73
|
-
id: string;
|
|
74
|
-
/**
|
|
75
|
-
* ASN
|
|
76
|
-
*/
|
|
77
|
-
asn: number | null;
|
|
78
|
-
/**
|
|
79
|
-
* AWS provider configuration
|
|
80
|
-
*/
|
|
81
|
-
aws: FluxProviderAWSConfig | null;
|
|
82
|
-
/**
|
|
83
|
-
* Connect Flux speed in Mbps
|
|
84
|
-
*/
|
|
85
|
-
bandwidth_mbps: FluxBandwidthMbps;
|
|
86
|
-
/**
|
|
87
|
-
* CIDRs for the Connect Flux
|
|
88
|
-
*/
|
|
89
|
-
cidrs: Array<string>;
|
|
90
|
-
/**
|
|
91
|
-
* When the Connect Flux was created
|
|
92
|
-
*/
|
|
93
|
-
created_at: string;
|
|
94
|
-
/**
|
|
95
|
-
* Name of the Connect Flux
|
|
96
|
-
*/
|
|
97
|
-
name: string;
|
|
98
|
-
/**
|
|
99
|
-
* Provider ASN
|
|
100
|
-
*/
|
|
101
|
-
provider_asn: number | null;
|
|
102
|
-
/**
|
|
103
|
-
* Provider CIDRs for the Connect Flux
|
|
104
|
-
*/
|
|
105
|
-
provider_cidrs: Array<string>;
|
|
106
|
-
/**
|
|
107
|
-
* Provider Router IP
|
|
108
|
-
*/
|
|
109
|
-
provider_router_ip: string | null;
|
|
110
|
-
/**
|
|
111
|
-
* Region the resource is in.
|
|
112
|
-
*/
|
|
113
|
-
region: Shared.RegionName;
|
|
114
|
-
/**
|
|
115
|
-
* Router IP
|
|
116
|
-
*/
|
|
117
|
-
router_ip: string | null;
|
|
118
|
-
/**
|
|
119
|
-
* Status of the resource.
|
|
120
|
-
*/
|
|
121
|
-
status: Shared.ResourceStatus;
|
|
122
|
-
/**
|
|
123
|
-
* Tags to attach to the Connect Flux
|
|
124
|
-
*/
|
|
125
|
-
tags: Array<string>;
|
|
126
|
-
/**
|
|
127
|
-
* When the Connect Flux was updated
|
|
128
|
-
*/
|
|
129
|
-
updated_at: string;
|
|
130
|
-
}
|
|
131
|
-
/**
|
|
132
|
-
* Connect Flux speed in Mbps
|
|
133
|
-
*/
|
|
134
|
-
export type FluxBandwidthMbps = 50 | 200 | 500 | 1000 | 2000;
|
|
135
|
-
export interface FluxList {
|
|
136
|
-
items: Array<Flux>;
|
|
137
|
-
}
|
|
138
|
-
/**
|
|
139
|
-
* AWS provider configuration
|
|
140
|
-
*/
|
|
141
|
-
export interface FluxProviderAWSConfig {
|
|
142
|
-
/**
|
|
143
|
-
* AWS region where the connection is established
|
|
144
|
-
*/
|
|
145
|
-
region: string;
|
|
146
|
-
}
|
|
147
|
-
/**
|
|
148
|
-
* AWS provider configuration
|
|
149
|
-
*/
|
|
150
|
-
export interface FluxProviderAWSConfigRequest {
|
|
151
|
-
/**
|
|
152
|
-
* AWS account id
|
|
153
|
-
*/
|
|
154
|
-
account_id: string;
|
|
155
|
-
/**
|
|
156
|
-
* AWS region where the connection will be established
|
|
157
|
-
*/
|
|
158
|
-
region: string;
|
|
159
|
-
}
|
|
160
|
-
/**
|
|
161
|
-
* Routes supported for Connect Flux.
|
|
162
|
-
*/
|
|
163
|
-
export interface FluxRoute {
|
|
164
|
-
/**
|
|
165
|
-
* Region the resource is in.
|
|
166
|
-
*/
|
|
167
|
-
nirvana_region: Shared.RegionName;
|
|
168
|
-
/**
|
|
169
|
-
* Provider name.
|
|
170
|
-
*/
|
|
171
|
-
provider: string;
|
|
172
|
-
/**
|
|
173
|
-
* Provider region name.
|
|
174
|
-
*/
|
|
175
|
-
provider_region: string;
|
|
176
|
-
}
|
|
177
|
-
export interface FluxRouteList {
|
|
178
|
-
items: Array<FluxRoute>;
|
|
179
|
-
}
|
|
180
|
-
export interface FluxCreateParams {
|
|
181
|
-
/**
|
|
182
|
-
* Connect Flux speed in Mbps
|
|
183
|
-
*/
|
|
184
|
-
bandwidth_mbps: FluxBandwidthMbps;
|
|
185
|
-
/**
|
|
186
|
-
* CIDRs for the Connect Flux
|
|
187
|
-
*/
|
|
188
|
-
cidrs: Array<string>;
|
|
189
|
-
/**
|
|
190
|
-
* Name of the Connect Flux
|
|
191
|
-
*/
|
|
192
|
-
name: string;
|
|
193
|
-
/**
|
|
194
|
-
* Provider CIDRs
|
|
195
|
-
*/
|
|
196
|
-
provider_cidrs: Array<string>;
|
|
197
|
-
/**
|
|
198
|
-
* Region the resource is in.
|
|
199
|
-
*/
|
|
200
|
-
region: Shared.RegionName;
|
|
201
|
-
/**
|
|
202
|
-
* AWS provider configuration
|
|
203
|
-
*/
|
|
204
|
-
aws?: FluxProviderAWSConfigRequest;
|
|
205
|
-
/**
|
|
206
|
-
* Tags to attach to the Connect Flux
|
|
207
|
-
*/
|
|
208
|
-
tags?: Array<string>;
|
|
209
|
-
}
|
|
210
|
-
export interface FluxUpdateParams {
|
|
211
|
-
/**
|
|
212
|
-
* Name of the Connect Flux.
|
|
213
|
-
*/
|
|
214
|
-
name?: string;
|
|
215
|
-
/**
|
|
216
|
-
* Tags to attach to the Connect Flux
|
|
217
|
-
*/
|
|
218
|
-
tags?: Array<string>;
|
|
219
|
-
}
|
|
220
|
-
export declare namespace FluxResource {
|
|
221
|
-
export { type Flux as Flux, type FluxBandwidthMbps as FluxBandwidthMbps, type FluxList as FluxList, type FluxProviderAWSConfig as FluxProviderAWSConfig, type FluxProviderAWSConfigRequest as FluxProviderAWSConfigRequest, type FluxRoute as FluxRoute, type FluxRouteList as FluxRouteList, type FluxCreateParams as FluxCreateParams, type FluxUpdateParams as FluxUpdateParams, };
|
|
222
|
-
export { Routes as Routes };
|
|
223
|
-
}
|
|
224
|
-
//# sourceMapp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C;CACzB;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,cAAc,EAAE,iBAAiB,CAAC;IAElC;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAErB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,cAAc,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE9B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,UAAU,CAAC;IAE1B;;OAEG;IACH,GAAG,CAAC,EAAE,4BAA4B,CAAC;IAEnC;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACtB;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACtB;AAID,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,IAAI,IAAI,IAAI,EACjB,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,QAAQ,IAAI,QAAQ,EACzB,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;IAEF,OAAO,EAAE,MAAM,IAAI,MAAM,EAAE,CAAC;CAC7B"}
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.FluxResource = void 0;
|
|
5
|
-
const tslib_1 = require("../../../internal/tslib.js");
|
|
6
|
-
const resource_1 = require("../../../core/resource.js");
|
|
7
|
-
const RoutesAPI = tslib_1.__importStar(require("./routes.js"));
|
|
8
|
-
const routes_1 = require("./routes.js");
|
|
9
|
-
const path_1 = require("../../../internal/utils/path.js");
|
|
10
|
-
class FluxResource extends resource_1.APIResource {
|
|
11
|
-
constructor() {
|
|
12
|
-
super(...arguments);
|
|
13
|
-
this.routes = new RoutesAPI.Routes(this._client);
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Create a Connect Flux
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* ```ts
|
|
20
|
-
* const operation = await client.connect.flux.create({
|
|
21
|
-
* bandwidth_mbps: 50,
|
|
22
|
-
* cidrs: ['10.0.0.0/16'],
|
|
23
|
-
* name: 'my-connect-flux',
|
|
24
|
-
* provider_cidrs: ['172.16.0.0/16'],
|
|
25
|
-
* region: 'us-wdc-1',
|
|
26
|
-
* });
|
|
27
|
-
* ```
|
|
28
|
-
*/
|
|
29
|
-
create(body, options) {
|
|
30
|
-
return this._client.post('/v1/connect/flux', { body, ...options });
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Update Connect Flux details
|
|
34
|
-
*
|
|
35
|
-
* @example
|
|
36
|
-
* ```ts
|
|
37
|
-
* const operation = await client.connect.flux.update(
|
|
38
|
-
* 'flux_id',
|
|
39
|
-
* );
|
|
40
|
-
* ```
|
|
41
|
-
*/
|
|
42
|
-
update(fluxID, body, options) {
|
|
43
|
-
return this._client.patch((0, path_1.path) `/v1/connect/flux/${fluxID}`, { body, ...options });
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* List all Connect Flux
|
|
47
|
-
*
|
|
48
|
-
* @example
|
|
49
|
-
* ```ts
|
|
50
|
-
* const fluxList = await client.connect.flux.list();
|
|
51
|
-
* ```
|
|
52
|
-
*/
|
|
53
|
-
list(options) {
|
|
54
|
-
return this._client.get('/v1/connect/flux', options);
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Delete Connect Flux
|
|
58
|
-
*
|
|
59
|
-
* @example
|
|
60
|
-
* ```ts
|
|
61
|
-
* const operation = await client.connect.flux.delete(
|
|
62
|
-
* 'flux_id',
|
|
63
|
-
* );
|
|
64
|
-
* ```
|
|
65
|
-
*/
|
|
66
|
-
delete(fluxID, options) {
|
|
67
|
-
return this._client.delete((0, path_1.path) `/v1/connect/flux/${fluxID}`, options);
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* Get Connect Flux details
|
|
71
|
-
*
|
|
72
|
-
* @example
|
|
73
|
-
* ```ts
|
|
74
|
-
* const flux = await client.connect.flux.get('flux_id');
|
|
75
|
-
* ```
|
|
76
|
-
*/
|
|
77
|
-
get(fluxID, options) {
|
|
78
|
-
return this._client.get((0, path_1.path) `/v1/connect/flux/${fluxID}`, options);
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
exports.FluxResource = FluxResource;
|
|
82
|
-
FluxResource.Routes = routes_1.Routes;
|
|
83
|
-
//# sourceMappingURL=flux.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"flux.js","sourceRoot":"","sources":["../../../src/resources/connect/flux/flux.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AAGrD,+DAAsC;AACtC,wCAAkC;AAGlC,0DAAoD;AAEpD,MAAa,YAAa,SAAQ,sBAAW;IAA7C;;QACE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA2EhE,CAAC;IAzEC;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,IAAsB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CACJ,MAAc,EACd,IAAsB,EACtB,OAAwB;QAExB,OAAO,IAAI,CAA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