@nirvana-labs/nirvana 0.1.0-alpha.10
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 +100 -0
- package/LICENSE +201 -0
- package/README.md +371 -0
- package/_shims/MultipartBody.d.ts +9 -0
- package/_shims/MultipartBody.d.ts.map +1 -0
- package/_shims/MultipartBody.js +16 -0
- package/_shims/MultipartBody.js.map +1 -0
- package/_shims/MultipartBody.mjs +12 -0
- package/_shims/MultipartBody.mjs.map +1 -0
- package/_shims/README.md +46 -0
- package/_shims/auto/runtime-bun.d.ts +5 -0
- package/_shims/auto/runtime-bun.d.ts.map +1 -0
- package/_shims/auto/runtime-bun.js +21 -0
- package/_shims/auto/runtime-bun.js.map +1 -0
- package/_shims/auto/runtime-bun.mjs +2 -0
- package/_shims/auto/runtime-bun.mjs.map +1 -0
- package/_shims/auto/runtime-node.d.ts +5 -0
- package/_shims/auto/runtime-node.d.ts.map +1 -0
- package/_shims/auto/runtime-node.js +21 -0
- package/_shims/auto/runtime-node.js.map +1 -0
- package/_shims/auto/runtime-node.mjs +2 -0
- package/_shims/auto/runtime-node.mjs.map +1 -0
- package/_shims/auto/runtime.d.ts +5 -0
- package/_shims/auto/runtime.d.ts.map +1 -0
- package/_shims/auto/runtime.js +21 -0
- package/_shims/auto/runtime.js.map +1 -0
- package/_shims/auto/runtime.mjs +2 -0
- package/_shims/auto/runtime.mjs.map +1 -0
- package/_shims/auto/types-node.d.ts +5 -0
- package/_shims/auto/types-node.d.ts.map +1 -0
- package/_shims/auto/types-node.js +21 -0
- package/_shims/auto/types-node.js.map +1 -0
- package/_shims/auto/types-node.mjs +2 -0
- package/_shims/auto/types-node.mjs.map +1 -0
- package/_shims/auto/types.d.ts +101 -0
- package/_shims/auto/types.js +3 -0
- package/_shims/auto/types.mjs +3 -0
- package/_shims/bun-runtime.d.ts +6 -0
- package/_shims/bun-runtime.d.ts.map +1 -0
- package/_shims/bun-runtime.js +14 -0
- package/_shims/bun-runtime.js.map +1 -0
- package/_shims/bun-runtime.mjs +10 -0
- package/_shims/bun-runtime.mjs.map +1 -0
- package/_shims/index.d.ts +81 -0
- package/_shims/index.js +13 -0
- package/_shims/index.mjs +7 -0
- package/_shims/manual-types.d.ts +12 -0
- package/_shims/manual-types.js +3 -0
- package/_shims/manual-types.mjs +3 -0
- package/_shims/node-runtime.d.ts +3 -0
- package/_shims/node-runtime.d.ts.map +1 -0
- package/_shims/node-runtime.js +89 -0
- package/_shims/node-runtime.js.map +1 -0
- package/_shims/node-runtime.mjs +56 -0
- package/_shims/node-runtime.mjs.map +1 -0
- package/_shims/node-types.d.ts +42 -0
- package/_shims/node-types.js +3 -0
- package/_shims/node-types.mjs +3 -0
- package/_shims/registry.d.ts +37 -0
- package/_shims/registry.d.ts.map +1 -0
- package/_shims/registry.js +41 -0
- package/_shims/registry.js.map +1 -0
- package/_shims/registry.mjs +37 -0
- package/_shims/registry.mjs.map +1 -0
- package/_shims/web-runtime.d.ts +5 -0
- package/_shims/web-runtime.d.ts.map +1 -0
- package/_shims/web-runtime.js +78 -0
- package/_shims/web-runtime.js.map +1 -0
- package/_shims/web-runtime.mjs +71 -0
- package/_shims/web-runtime.mjs.map +1 -0
- package/_shims/web-types.d.ts +83 -0
- package/_shims/web-types.js +3 -0
- package/_shims/web-types.mjs +3 -0
- package/core.d.ts +241 -0
- package/core.d.ts.map +1 -0
- package/core.js +908 -0
- package/core.js.map +1 -0
- package/core.mjs +876 -0
- package/core.mjs.map +1 -0
- package/error.d.ts +47 -0
- package/error.d.ts.map +1 -0
- package/error.js +113 -0
- package/error.js.map +1 -0
- package/error.mjs +97 -0
- package/error.mjs.map +1 -0
- package/index.d.mts +118 -0
- package/index.d.ts +118 -0
- package/index.d.ts.map +1 -0
- package/index.js +128 -0
- package/index.js.map +1 -0
- package/index.mjs +85 -0
- package/index.mjs.map +1 -0
- package/package.json +103 -0
- package/resource.d.ts +6 -0
- package/resource.d.ts.map +1 -0
- package/resource.js +11 -0
- package/resource.js.map +1 -0
- package/resource.mjs +7 -0
- package/resource.mjs.map +1 -0
- package/resources/compute/compute.d.ts +14 -0
- package/resources/compute/compute.d.ts.map +1 -0
- package/resources/compute/compute.js +43 -0
- package/resources/compute/compute.js.map +1 -0
- package/resources/compute/compute.mjs +16 -0
- package/resources/compute/compute.mjs.map +1 -0
- package/resources/compute/index.d.ts +4 -0
- package/resources/compute/index.d.ts.map +1 -0
- package/resources/compute/index.js +11 -0
- package/resources/compute/index.js.map +1 -0
- package/resources/compute/index.mjs +5 -0
- package/resources/compute/index.mjs.map +1 -0
- package/resources/compute/vms/index.d.ts +3 -0
- package/resources/compute/vms/index.d.ts.map +1 -0
- package/resources/compute/vms/index.js +9 -0
- package/resources/compute/vms/index.js.map +1 -0
- package/resources/compute/vms/index.mjs +4 -0
- package/resources/compute/vms/index.mjs.map +1 -0
- package/resources/compute/vms/os-images.d.ts +14 -0
- package/resources/compute/vms/os-images.d.ts.map +1 -0
- package/resources/compute/vms/os-images.js +15 -0
- package/resources/compute/vms/os-images.js.map +1 -0
- package/resources/compute/vms/os-images.mjs +11 -0
- package/resources/compute/vms/os-images.mjs.map +1 -0
- package/resources/compute/vms/vms.d.ts +164 -0
- package/resources/compute/vms/vms.d.ts.map +1 -0
- package/resources/compute/vms/vms.js +69 -0
- package/resources/compute/vms/vms.js.map +1 -0
- package/resources/compute/vms/vms.mjs +42 -0
- package/resources/compute/vms/vms.mjs.map +1 -0
- package/resources/compute/volumes.d.ts +72 -0
- package/resources/compute/volumes.d.ts.map +1 -0
- package/resources/compute/volumes.js +39 -0
- package/resources/compute/volumes.js.map +1 -0
- package/resources/compute/volumes.mjs +35 -0
- package/resources/compute/volumes.mjs.map +1 -0
- package/resources/index.d.ts +5 -0
- package/resources/index.d.ts.map +1 -0
- package/resources/index.js +26 -0
- package/resources/index.js.map +1 -0
- package/resources/index.mjs +6 -0
- package/resources/index.mjs.map +1 -0
- package/resources/networking/firewall-rules.d.ts +90 -0
- package/resources/networking/firewall-rules.d.ts.map +1 -0
- package/resources/networking/firewall-rules.js +42 -0
- package/resources/networking/firewall-rules.js.map +1 -0
- package/resources/networking/firewall-rules.mjs +38 -0
- package/resources/networking/firewall-rules.mjs.map +1 -0
- package/resources/networking/index.d.ts +4 -0
- package/resources/networking/index.d.ts.map +1 -0
- package/resources/networking/index.js +11 -0
- package/resources/networking/index.js.map +1 -0
- package/resources/networking/index.mjs +5 -0
- package/resources/networking/index.mjs.map +1 -0
- package/resources/networking/networking.d.ts +14 -0
- package/resources/networking/networking.d.ts.map +1 -0
- package/resources/networking/networking.js +43 -0
- package/resources/networking/networking.js.map +1 -0
- package/resources/networking/networking.mjs +16 -0
- package/resources/networking/networking.mjs.map +1 -0
- package/resources/networking/vpcs.d.ts +60 -0
- package/resources/networking/vpcs.d.ts.map +1 -0
- package/resources/networking/vpcs.js +33 -0
- package/resources/networking/vpcs.js.map +1 -0
- package/resources/networking/vpcs.mjs +29 -0
- package/resources/networking/vpcs.mjs.map +1 -0
- package/resources/operations.d.ts +26 -0
- package/resources/operations.d.ts.map +1 -0
- package/resources/operations.js +21 -0
- package/resources/operations.js.map +1 -0
- package/resources/operations.mjs +17 -0
- package/resources/operations.mjs.map +1 -0
- package/resources/shared.d.ts +3 -0
- package/resources/shared.d.ts.map +1 -0
- package/resources/shared.js +4 -0
- package/resources/shared.js.map +1 -0
- package/resources/shared.mjs +3 -0
- package/resources/shared.mjs.map +1 -0
- package/shims/node.d.ts +30 -0
- package/shims/node.d.ts.map +1 -0
- package/shims/node.js +31 -0
- package/shims/node.js.map +1 -0
- package/shims/node.mjs +5 -0
- package/shims/node.mjs.map +1 -0
- package/shims/web.d.ts +26 -0
- package/shims/web.d.ts.map +1 -0
- package/shims/web.js +31 -0
- package/shims/web.js.map +1 -0
- package/shims/web.mjs +5 -0
- package/shims/web.mjs.map +1 -0
- package/src/_shims/MultipartBody.ts +9 -0
- package/src/_shims/README.md +46 -0
- package/src/_shims/auto/runtime-bun.ts +4 -0
- package/src/_shims/auto/runtime-node.ts +4 -0
- package/src/_shims/auto/runtime.ts +4 -0
- package/src/_shims/auto/types-node.ts +4 -0
- package/src/_shims/auto/types.d.ts +101 -0
- package/src/_shims/auto/types.js +3 -0
- package/src/_shims/auto/types.mjs +3 -0
- package/src/_shims/bun-runtime.ts +14 -0
- package/src/_shims/index.d.ts +81 -0
- package/src/_shims/index.js +13 -0
- package/src/_shims/index.mjs +7 -0
- package/src/_shims/manual-types.d.ts +12 -0
- package/src/_shims/manual-types.js +3 -0
- package/src/_shims/manual-types.mjs +3 -0
- package/src/_shims/node-runtime.ts +81 -0
- package/src/_shims/node-types.d.ts +42 -0
- package/src/_shims/node-types.js +3 -0
- package/src/_shims/node-types.mjs +3 -0
- package/src/_shims/registry.ts +67 -0
- package/src/_shims/web-runtime.ts +103 -0
- package/src/_shims/web-types.d.ts +83 -0
- package/src/_shims/web-types.js +3 -0
- package/src/_shims/web-types.mjs +3 -0
- package/src/core.ts +1201 -0
- package/src/error.ts +130 -0
- package/src/index.ts +198 -0
- package/src/lib/.keep +4 -0
- package/src/resource.ts +11 -0
- package/src/resources/compute/compute.ts +49 -0
- package/src/resources/compute/index.ts +24 -0
- package/src/resources/compute/vms/index.ts +14 -0
- package/src/resources/compute/vms/os-images.ts +20 -0
- package/src/resources/compute/vms/vms.ts +239 -0
- package/src/resources/compute/volumes.ts +120 -0
- package/src/resources/index.ts +6 -0
- package/src/resources/networking/firewall-rules.ts +149 -0
- package/src/resources/networking/index.ts +12 -0
- package/src/resources/networking/networking.ts +41 -0
- package/src/resources/networking/vpcs.ts +96 -0
- package/src/resources/operations.ts +41 -0
- package/src/resources/shared.ts +22 -0
- package/src/shims/node.ts +50 -0
- package/src/shims/web.ts +50 -0
- package/src/tsconfig.json +11 -0
- package/src/uploads.ts +255 -0
- package/src/version.ts +1 -0
- package/uploads.d.ts +75 -0
- package/uploads.d.ts.map +1 -0
- package/uploads.js +171 -0
- package/uploads.js.map +1 -0
- package/uploads.mjs +158 -0
- package/uploads.mjs.map +1 -0
- package/version.d.ts +2 -0
- package/version.d.ts.map +1 -0
- package/version.js +5 -0
- package/version.js.map +1 -0
- package/version.mjs +2 -0
- package/version.mjs.map +1 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../resource.mjs";
|
|
3
|
+
export class FirewallRules extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Create a firewall rule
|
|
6
|
+
*/
|
|
7
|
+
create(vpcId, body, options) {
|
|
8
|
+
return this._client.post(`/networking/vpcs/${vpcId}/firewall_rules`, { body, ...options });
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Update a firewall rule
|
|
12
|
+
*/
|
|
13
|
+
update(vpcId, firewallRuleId, body, options) {
|
|
14
|
+
return this._client.patch(`/networking/vpcs/${vpcId}/firewall_rules/${firewallRuleId}`, {
|
|
15
|
+
body,
|
|
16
|
+
...options,
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* List all firewall rules
|
|
21
|
+
*/
|
|
22
|
+
list(vpcId, options) {
|
|
23
|
+
return this._client.get(`/networking/vpcs/${vpcId}/firewall_rules`, options);
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Delete a firewall rule
|
|
27
|
+
*/
|
|
28
|
+
delete(vpcId, firewallRuleId, options) {
|
|
29
|
+
return this._client.delete(`/networking/vpcs/${vpcId}/firewall_rules/${firewallRuleId}`, options);
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Get details about a firewall rule
|
|
33
|
+
*/
|
|
34
|
+
get(vpcId, firewallRuleId, options) {
|
|
35
|
+
return this._client.get(`/networking/vpcs/${vpcId}/firewall_rules/${firewallRuleId}`, options);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=firewall-rules.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"firewall-rules.mjs","sourceRoot":"","sources":["../../src/resources/networking/firewall-rules.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAKtB,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C;;OAEG;IACH,MAAM,CACJ,KAAa,EACb,IAA8B,EAC9B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,KAAK,iBAAiB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,KAAa,EACb,cAAsB,EACtB,IAA8B,EAC9B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,oBAAoB,KAAK,mBAAmB,cAAc,EAAE,EAAE;YACtF,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,KAAa,EAAE,OAA6B;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,KAAK,iBAAiB,EAAE,OAAO,CAAC,CAAC;IAC/E,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,KAAa,EACb,cAAsB,EACtB,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,oBAAoB,KAAK,mBAAmB,cAAc,EAAE,EAAE,OAAO,CAAC,CAAC;IACpG,CAAC;IAED;;OAEG;IACH,GAAG,CAAC,KAAa,EAAE,cAAsB,EAAE,OAA6B;QACtE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,KAAK,mBAAmB,cAAc,EAAE,EAAE,OAAO,CAAC,CAAC;IACjG,CAAC;CACF"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { FirewallRules, type FirewallRule, type FirewallRuleEndpoint, type FirewallRuleList, type FirewallRuleCreateParams, type FirewallRuleUpdateParams, } from "./firewall-rules.js";
|
|
2
|
+
export { Networking } from "./networking.js";
|
|
3
|
+
export { VPCs, type Subnet, type VPC, type VPCList, type VPCCreateParams } from "./vpcs.js";
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/networking/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,aAAa,EACb,KAAK,YAAY,EACjB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,GAC9B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,KAAK,MAAM,EAAE,KAAK,GAAG,EAAE,KAAK,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,QAAQ,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
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.VPCs = exports.Networking = exports.FirewallRules = void 0;
|
|
5
|
+
var firewall_rules_1 = require("./firewall-rules.js");
|
|
6
|
+
Object.defineProperty(exports, "FirewallRules", { enumerable: true, get: function () { return firewall_rules_1.FirewallRules; } });
|
|
7
|
+
var networking_1 = require("./networking.js");
|
|
8
|
+
Object.defineProperty(exports, "Networking", { enumerable: true, get: function () { return networking_1.Networking; } });
|
|
9
|
+
var vpcs_1 = require("./vpcs.js");
|
|
10
|
+
Object.defineProperty(exports, "VPCs", { enumerable: true, get: function () { return vpcs_1.VPCs; } });
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/networking/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sDAO0B;AANxB,+GAAA,aAAa,OAAA;AAOf,8CAA0C;AAAjC,wGAAA,UAAU,OAAA;AACnB,kCAAyF;AAAhF,4FAAA,IAAI,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/networking/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,aAAa,GAMd;OACM,EAAE,UAAU,EAAE;OACd,EAAE,IAAI,EAA6D"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { APIResource } from "../../resource.js";
|
|
2
|
+
import * as FirewallRulesAPI from "./firewall-rules.js";
|
|
3
|
+
import { FirewallRule, FirewallRuleCreateParams, FirewallRuleEndpoint, FirewallRuleList, FirewallRuleUpdateParams, FirewallRules } from "./firewall-rules.js";
|
|
4
|
+
import * as VPCsAPI from "./vpcs.js";
|
|
5
|
+
import { Subnet, VPC, VPCCreateParams, VPCList, VPCs } from "./vpcs.js";
|
|
6
|
+
export declare class Networking extends APIResource {
|
|
7
|
+
vpcs: VPCsAPI.VPCs;
|
|
8
|
+
firewallRules: FirewallRulesAPI.FirewallRules;
|
|
9
|
+
}
|
|
10
|
+
export declare namespace Networking {
|
|
11
|
+
export { VPCs as VPCs, type Subnet as Subnet, type VPC as VPC, type VPCList as VPCList, type VPCCreateParams as VPCCreateParams, };
|
|
12
|
+
export { FirewallRules as FirewallRules, type FirewallRule as FirewallRule, type FirewallRuleEndpoint as FirewallRuleEndpoint, type FirewallRuleList as FirewallRuleList, type FirewallRuleCreateParams as FirewallRuleCreateParams, type FirewallRuleUpdateParams as FirewallRuleUpdateParams, };
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=networking.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"networking.d.ts","sourceRoot":"","sources":["../../src/resources/networking/networking.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,gBAAgB,MAAM,kBAAkB,CAAC;AACrD,OAAO,EACL,YAAY,EACZ,wBAAwB,EACxB,oBAAoB,EACpB,gBAAgB,EAChB,wBAAwB,EACxB,aAAa,EACd,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,OAAO,MAAM,QAAQ,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,eAAe,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAErE,qBAAa,UAAW,SAAQ,WAAW;IACzC,IAAI,EAAE,OAAO,CAAC,IAAI,CAAkC;IACpD,aAAa,EAAE,gBAAgB,CAAC,aAAa,CAAoD;CAClG;AAKD,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,IAAI,IAAI,IAAI,EACZ,KAAK,MAAM,IAAI,MAAM,EACrB,KAAK,GAAG,IAAI,GAAG,EACf,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;IAEF,OAAO,EACL,aAAa,IAAI,aAAa,EAC9B,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
20
|
+
if (mod && mod.__esModule) return mod;
|
|
21
|
+
var result = {};
|
|
22
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
23
|
+
__setModuleDefault(result, mod);
|
|
24
|
+
return result;
|
|
25
|
+
};
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
exports.Networking = void 0;
|
|
28
|
+
const resource_1 = require("../../resource.js");
|
|
29
|
+
const FirewallRulesAPI = __importStar(require("./firewall-rules.js"));
|
|
30
|
+
const firewall_rules_1 = require("./firewall-rules.js");
|
|
31
|
+
const VPCsAPI = __importStar(require("./vpcs.js"));
|
|
32
|
+
const vpcs_1 = require("./vpcs.js");
|
|
33
|
+
class Networking extends resource_1.APIResource {
|
|
34
|
+
constructor() {
|
|
35
|
+
super(...arguments);
|
|
36
|
+
this.vpcs = new VPCsAPI.VPCs(this._client);
|
|
37
|
+
this.firewallRules = new FirewallRulesAPI.FirewallRules(this._client);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
exports.Networking = Networking;
|
|
41
|
+
Networking.VPCs = vpcs_1.VPCs;
|
|
42
|
+
Networking.FirewallRules = firewall_rules_1.FirewallRules;
|
|
43
|
+
//# sourceMappingURL=networking.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"networking.js","sourceRoot":"","sources":["../../src/resources/networking/networking.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,gDAA6C;AAC7C,sEAAqD;AACrD,wDAO0B;AAC1B,mDAAkC;AAClC,oCAAqE;AAErE,MAAa,UAAW,SAAQ,sBAAW;IAA3C;;QACE,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACpD,kBAAa,GAAmC,IAAI,gBAAgB,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACnG,CAAC;CAAA;AAHD,gCAGC;AAED,UAAU,CAAC,IAAI,GAAG,WAAI,CAAC;AACvB,UAAU,CAAC,aAAa,GAAG,8BAAa,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../resource.mjs";
|
|
3
|
+
import * as FirewallRulesAPI from "./firewall-rules.mjs";
|
|
4
|
+
import { FirewallRules, } from "./firewall-rules.mjs";
|
|
5
|
+
import * as VPCsAPI from "./vpcs.mjs";
|
|
6
|
+
import { VPCs } from "./vpcs.mjs";
|
|
7
|
+
export class Networking extends APIResource {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(...arguments);
|
|
10
|
+
this.vpcs = new VPCsAPI.VPCs(this._client);
|
|
11
|
+
this.firewallRules = new FirewallRulesAPI.FirewallRules(this._client);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
Networking.VPCs = VPCs;
|
|
15
|
+
Networking.FirewallRules = FirewallRules;
|
|
16
|
+
//# sourceMappingURL=networking.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"networking.mjs","sourceRoot":"","sources":["../../src/resources/networking/networking.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,gBAAgB;OACrB,EAML,aAAa,GACd;OACM,KAAK,OAAO;OACZ,EAAyC,IAAI,EAAE;AAEtD,MAAM,OAAO,UAAW,SAAQ,WAAW;IAA3C;;QACE,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACpD,kBAAa,GAAmC,IAAI,gBAAgB,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACnG,CAAC;CAAA;AAED,UAAU,CAAC,IAAI,GAAG,IAAI,CAAC;AACvB,UAAU,CAAC,aAAa,GAAG,aAAa,CAAC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { APIResource } from "../../resource.js";
|
|
2
|
+
import * as Core from "../../core.js";
|
|
3
|
+
import * as OperationsAPI from "../operations.js";
|
|
4
|
+
import * as Shared from "../shared.js";
|
|
5
|
+
export declare class VPCs extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Create a VPC
|
|
8
|
+
*/
|
|
9
|
+
create(body: VPCCreateParams, options?: Core.RequestOptions): Core.APIPromise<OperationsAPI.Operation>;
|
|
10
|
+
/**
|
|
11
|
+
* List all VPCs
|
|
12
|
+
*/
|
|
13
|
+
list(options?: Core.RequestOptions): Core.APIPromise<VPCList>;
|
|
14
|
+
/**
|
|
15
|
+
* Delete a VPC
|
|
16
|
+
*/
|
|
17
|
+
delete(vpcId: string, options?: Core.RequestOptions): Core.APIPromise<OperationsAPI.Operation>;
|
|
18
|
+
/**
|
|
19
|
+
* Get details about a VPC
|
|
20
|
+
*/
|
|
21
|
+
get(vpcId: string, options?: Core.RequestOptions): Core.APIPromise<VPC>;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Subnet details.
|
|
25
|
+
*/
|
|
26
|
+
export interface Subnet {
|
|
27
|
+
id: string;
|
|
28
|
+
cidr: string;
|
|
29
|
+
created_at: string;
|
|
30
|
+
name: string;
|
|
31
|
+
updated_at: string;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* VPC details.
|
|
35
|
+
*/
|
|
36
|
+
export interface VPC {
|
|
37
|
+
id: string;
|
|
38
|
+
created_at: string;
|
|
39
|
+
firewall_rule_ids: Array<string>;
|
|
40
|
+
name: string;
|
|
41
|
+
region: Shared.RegionName;
|
|
42
|
+
status: Shared.ResourceStatus;
|
|
43
|
+
/**
|
|
44
|
+
* Subnet details.
|
|
45
|
+
*/
|
|
46
|
+
subnet: Subnet;
|
|
47
|
+
updated_at: string;
|
|
48
|
+
}
|
|
49
|
+
export interface VPCList {
|
|
50
|
+
items: Array<VPC>;
|
|
51
|
+
}
|
|
52
|
+
export interface VPCCreateParams {
|
|
53
|
+
name: string;
|
|
54
|
+
region: Shared.RegionName;
|
|
55
|
+
subnet_name: string;
|
|
56
|
+
}
|
|
57
|
+
export declare namespace VPCs {
|
|
58
|
+
export { type Subnet as Subnet, type VPC as VPC, type VPCList as VPCList, type VPCCreateParams as VPCCreateParams, };
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=vpcs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vpcs.d.ts","sourceRoot":"","sources":["../../src/resources/networking/vpcs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,aAAa,MAAM,eAAe,CAAC;AAC/C,OAAO,KAAK,MAAM,MAAM,WAAW,CAAC;AAEpC,qBAAa,IAAK,SAAQ,WAAW;IACnC;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,SAAS,CAAC;IAItG;;OAEG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC;IAI7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 +1,33 @@
|
|
|
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.VPCs = void 0;
|
|
5
|
+
const resource_1 = require("../../resource.js");
|
|
6
|
+
class VPCs extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Create a VPC
|
|
9
|
+
*/
|
|
10
|
+
create(body, options) {
|
|
11
|
+
return this._client.post('/networking/vpcs', { body, ...options });
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* List all VPCs
|
|
15
|
+
*/
|
|
16
|
+
list(options) {
|
|
17
|
+
return this._client.get('/networking/vpcs', options);
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Delete a VPC
|
|
21
|
+
*/
|
|
22
|
+
delete(vpcId, options) {
|
|
23
|
+
return this._client.delete(`/networking/vpcs/${vpcId}`, options);
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Get details about a VPC
|
|
27
|
+
*/
|
|
28
|
+
get(vpcId, options) {
|
|
29
|
+
return this._client.get(`/networking/vpcs/${vpcId}`, options);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
exports.VPCs = VPCs;
|
|
33
|
+
//# sourceMappingURL=vpcs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vpcs.js","sourceRoot":"","sources":["../../src/resources/networking/vpcs.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAK7C,MAAa,IAAK,SAAQ,sBAAW;IACnC;;OAEG;IACH,MAAM,CAAC,IAAqB,EAAE,OAA6B;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,OAA6B;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kBAAkB,EAAE,OAAO,CAAC,CAAC;IACvD,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,KAAa,EAAE,OAA6B;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,oBAAoB,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;IACnE,CAAC;IAED;;OAEG;IACH,GAAG,CAAC,KAAa,EAAE,OAA6B;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;CACF;AA5BD,oBA4BC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../resource.mjs";
|
|
3
|
+
export class VPCs extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Create a VPC
|
|
6
|
+
*/
|
|
7
|
+
create(body, options) {
|
|
8
|
+
return this._client.post('/networking/vpcs', { body, ...options });
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* List all VPCs
|
|
12
|
+
*/
|
|
13
|
+
list(options) {
|
|
14
|
+
return this._client.get('/networking/vpcs', options);
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Delete a VPC
|
|
18
|
+
*/
|
|
19
|
+
delete(vpcId, options) {
|
|
20
|
+
return this._client.delete(`/networking/vpcs/${vpcId}`, options);
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Get details about a VPC
|
|
24
|
+
*/
|
|
25
|
+
get(vpcId, options) {
|
|
26
|
+
return this._client.get(`/networking/vpcs/${vpcId}`, options);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=vpcs.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vpcs.mjs","sourceRoot":"","sources":["../../src/resources/networking/vpcs.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAKtB,MAAM,OAAO,IAAK,SAAQ,WAAW;IACnC;;OAEG;IACH,MAAM,CAAC,IAAqB,EAAE,OAA6B;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,OAA6B;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kBAAkB,EAAE,OAAO,CAAC,CAAC;IACvD,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,KAAa,EAAE,OAA6B;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,oBAAoB,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;IACnE,CAAC;IAED;;OAEG;IACH,GAAG,CAAC,KAAa,EAAE,OAA6B;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;CACF"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { APIResource } from "../resource.js";
|
|
2
|
+
import * as Core from "../core.js";
|
|
3
|
+
export declare class Operations extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* List all operations
|
|
6
|
+
*/
|
|
7
|
+
list(options?: Core.RequestOptions): Core.APIPromise<OperationListResponse>;
|
|
8
|
+
/**
|
|
9
|
+
* Get details about a specific operation
|
|
10
|
+
*/
|
|
11
|
+
get(operationId: string, options?: Core.RequestOptions): Core.APIPromise<Operation>;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Operation details.
|
|
15
|
+
*/
|
|
16
|
+
export interface Operation {
|
|
17
|
+
id: string;
|
|
18
|
+
created_at: string;
|
|
19
|
+
kind: 'vm' | 'volume' | 'vpc' | 'firewall_rule';
|
|
20
|
+
resource_id: string;
|
|
21
|
+
status: 'pending' | 'running' | 'done' | 'failed' | 'unknown';
|
|
22
|
+
type: 'create' | 'update' | 'delete';
|
|
23
|
+
updated_at: string;
|
|
24
|
+
}
|
|
25
|
+
export type OperationListResponse = Array<Operation>;
|
|
26
|
+
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../src/resources/operations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAEhC,qBAAa,UAAW,SAAQ,WAAW;IACzC;;OAEG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,qBAAqB,CAAC;IAI3E;;OAEG;IACH,GAAG,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC;CAGpF;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IAEX,UAAU,EAAE,MAAM,CAAC;IAEnB,IAAI,EAAE,IAAI,GAAG,QAAQ,GAAG,KAAK,GAAG,eAAe,CAAC;IAEhD,WAAW,EAAE,MAAM,CAAC;IAEpB,MAAM,EAAE,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAC;IAE9D,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC;IAErC,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,MAAM,qBAAqB,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
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.Operations = void 0;
|
|
5
|
+
const resource_1 = require("../resource.js");
|
|
6
|
+
class Operations extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* List all operations
|
|
9
|
+
*/
|
|
10
|
+
list(options) {
|
|
11
|
+
return this._client.get('/operations', options);
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Get details about a specific operation
|
|
15
|
+
*/
|
|
16
|
+
get(operationId, options) {
|
|
17
|
+
return this._client.get(`/operations/${operationId}`, options);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.Operations = Operations;
|
|
21
|
+
//# sourceMappingURL=operations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../src/resources/operations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;AAG1C,MAAa,UAAW,SAAQ,sBAAW;IACzC;;OAEG;IACH,IAAI,CAAC,OAA6B;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;IAClD,CAAC;IAED;;OAEG;IACH,GAAG,CAAC,WAAmB,EAAE,OAA6B;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,WAAW,EAAE,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;CACF;AAdD,gCAcC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../resource.mjs";
|
|
3
|
+
export class Operations extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* List all operations
|
|
6
|
+
*/
|
|
7
|
+
list(options) {
|
|
8
|
+
return this._client.get('/operations', options);
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Get details about a specific operation
|
|
12
|
+
*/
|
|
13
|
+
get(operationId, options) {
|
|
14
|
+
return this._client.get(`/operations/${operationId}`, options);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=operations.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.mjs","sourceRoot":"","sources":["../src/resources/operations.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC;;OAEG;IACH,IAAI,CAAC,OAA6B;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;IAClD,CAAC;IAED;;OAEG;IACH,GAAG,CAAC,WAAmB,EAAE,OAA6B;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,WAAW,EAAE,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;CACF"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export type RegionName = 'us-sea-1' | 'us-sva-1' | 'us-chi-1' | 'us-wdc-1' | 'eu-lon-1' | 'eu-ams-1' | 'eu-frk-1' | 'ap-mum-1' | 'ap-sin-1' | 'ap-tyo-1';
|
|
2
|
+
export type ResourceStatus = 'pending' | 'creating' | 'updating' | 'ready' | 'deleting' | 'deleted' | 'failed';
|
|
3
|
+
//# sourceMappingURL=shared.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,UAAU,GAClB,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,CAAC;AAEf,MAAM,MAAM,cAAc,GACtB,SAAS,GACT,UAAU,GACV,UAAU,GACV,OAAO,GACP,UAAU,GACV,SAAS,GACT,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared.js","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":";AAAA,sFAAsF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared.mjs","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
package/shims/node.d.ts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
import * as types from "../_shims/node-types.js";
|
|
6
|
+
declare module '../_shims/manual-types' {
|
|
7
|
+
namespace manual {
|
|
8
|
+
type Agent = types.Agent;
|
|
9
|
+
export import fetch = types.fetch;
|
|
10
|
+
type Request = types.Request;
|
|
11
|
+
type RequestInfo = types.RequestInfo;
|
|
12
|
+
type RequestInit = types.RequestInit;
|
|
13
|
+
type Response = types.Response;
|
|
14
|
+
type ResponseInit = types.ResponseInit;
|
|
15
|
+
type ResponseType = types.ResponseType;
|
|
16
|
+
type BodyInit = types.BodyInit;
|
|
17
|
+
type Headers = types.Headers;
|
|
18
|
+
type HeadersInit = types.HeadersInit;
|
|
19
|
+
type BlobPropertyBag = types.BlobPropertyBag;
|
|
20
|
+
type FilePropertyBag = types.FilePropertyBag;
|
|
21
|
+
type FileFromPathOptions = types.FileFromPathOptions;
|
|
22
|
+
export import FormData = types.FormData;
|
|
23
|
+
export import File = types.File;
|
|
24
|
+
export import Blob = types.Blob;
|
|
25
|
+
type Readable = types.Readable;
|
|
26
|
+
type FsReadStream = types.FsReadStream;
|
|
27
|
+
export import ReadableStream = types.ReadableStream;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=node.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../src/shims/node.ts"],"names":[],"mappings":";;;;AACA,OAAO,KAAK,KAAK,MAAM,sBAAsB,CAAC;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
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
const types = __importStar(require("../_shims/node-types.js"));
|
|
28
|
+
const registry_1 = require("../_shims/registry.js");
|
|
29
|
+
const node_runtime_1 = require("../_shims/node-runtime.js");
|
|
30
|
+
(0, registry_1.setShims)((0, node_runtime_1.getRuntime)());
|
|
31
|
+
//# sourceMappingURL=node.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node.js","sourceRoot":"","sources":["../src/shims/node.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,aAAa;AACb,+DAA8C;AAC9C,oDAA8C;AAC9C,4DAAoD;AACpD,IAAA,mBAAQ,EAAC,IAAA,yBAAU,GAAE,CAAC,CAAC"}
|
package/shims/node.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node.mjs","sourceRoot":"","sources":["../src/shims/node.ts"],"names":[],"mappings":"OACO,KAAK,KAAK;OACV,EAAE,QAAQ,EAAE;OACZ,EAAE,UAAU,EAAE;AACrB,QAAQ,CAAC,UAAU,EAAE,CAAC,CAAC"}
|
package/shims/web.d.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as types from "../_shims/web-types.js";
|
|
2
|
+
declare module '../_shims/manual-types' {
|
|
3
|
+
namespace manual {
|
|
4
|
+
type Agent = types.Agent;
|
|
5
|
+
export import fetch = types.fetch;
|
|
6
|
+
type Request = types.Request;
|
|
7
|
+
type RequestInfo = types.RequestInfo;
|
|
8
|
+
type RequestInit = types.RequestInit;
|
|
9
|
+
type Response = types.Response;
|
|
10
|
+
type ResponseInit = types.ResponseInit;
|
|
11
|
+
type ResponseType = types.ResponseType;
|
|
12
|
+
type BodyInit = types.BodyInit;
|
|
13
|
+
type Headers = types.Headers;
|
|
14
|
+
type HeadersInit = types.HeadersInit;
|
|
15
|
+
type BlobPropertyBag = types.BlobPropertyBag;
|
|
16
|
+
type FilePropertyBag = types.FilePropertyBag;
|
|
17
|
+
type FileFromPathOptions = types.FileFromPathOptions;
|
|
18
|
+
export import FormData = types.FormData;
|
|
19
|
+
export import File = types.File;
|
|
20
|
+
export import Blob = types.Blob;
|
|
21
|
+
type Readable = types.Readable;
|
|
22
|
+
type FsReadStream = types.FsReadStream;
|
|
23
|
+
export import ReadableStream = types.ReadableStream;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=web.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"web.d.ts","sourceRoot":"","sources":["../src/shims/web.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,qBAAqB,CAAC;AAK7C,OAAO,QAAQ,wBAAwB,CA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|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
const types = __importStar(require("../_shims/web-types.js"));
|
|
28
|
+
const registry_1 = require("../_shims/registry.js");
|
|
29
|
+
const web_runtime_1 = require("../_shims/web-runtime.js");
|
|
30
|
+
(0, registry_1.setShims)((0, web_runtime_1.getRuntime)({ manuallyImported: true }));
|
|
31
|
+
//# sourceMappingURL=web.js.map
|
package/shims/web.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"web.js","sourceRoot":"","sources":["../src/shims/web.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,aAAa;AACb,8DAA6C;AAC7C,oDAA8C;AAC9C,0DAAmD;AACnD,IAAA,mBAAQ,EAAC,IAAA,wBAAU,EAAC,EAAE,gBAAgB,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC"}
|
package/shims/web.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"web.mjs","sourceRoot":"","sources":["../src/shims/web.ts"],"names":[],"mappings":"OACO,KAAK,KAAK;OACV,EAAE,QAAQ,EAAE;OACZ,EAAE,UAAU,EAAE;AACrB,QAAQ,CAAC,UAAU,CAAC,EAAE,gBAAgB,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC"}
|