sandbox0 0.3.7 → 0.4.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/dist/apispec/src/apis/FunctionsApi.d.ts +98 -1
- package/dist/apispec/src/apis/FunctionsApi.d.ts.map +1 -1
- package/dist/apispec/src/apis/FunctionsApi.js +284 -1
- package/dist/apispec/src/apis/SandboxesApi.d.ts +5 -30
- package/dist/apispec/src/apis/SandboxesApi.d.ts.map +1 -1
- package/dist/apispec/src/apis/SandboxesApi.js +5 -78
- package/dist/apispec/src/models/CreateSandboxVolumeRequest.d.ts +6 -0
- package/dist/apispec/src/models/CreateSandboxVolumeRequest.d.ts.map +1 -1
- package/dist/apispec/src/models/CreateSandboxVolumeRequest.js +2 -0
- package/dist/apispec/src/models/EgressAuthProtocol.d.ts +8 -8
- package/dist/apispec/src/models/EgressAuthProtocol.js +8 -8
- package/dist/apispec/src/models/EgressProxyPolicy.d.ts +46 -0
- package/dist/apispec/src/models/EgressProxyPolicy.d.ts.map +1 -0
- package/dist/apispec/src/models/EgressProxyPolicy.js +50 -0
- package/dist/apispec/src/models/EgressProxyType.d.ts +25 -0
- package/dist/apispec/src/models/EgressProxyType.d.ts.map +1 -0
- package/dist/apispec/src/models/EgressProxyType.js +42 -0
- package/dist/apispec/src/models/Function.d.ts +12 -0
- package/dist/apispec/src/models/Function.d.ts.map +1 -1
- package/dist/apispec/src/models/Function.js +6 -0
- package/dist/apispec/src/models/FunctionRecord.d.ts +12 -0
- package/dist/apispec/src/models/FunctionRecord.d.ts.map +1 -1
- package/dist/apispec/src/models/FunctionRecord.js +6 -0
- package/dist/apispec/src/models/FunctionRestoreMount.d.ts +13 -1
- package/dist/apispec/src/models/FunctionRestoreMount.d.ts.map +1 -1
- package/dist/apispec/src/models/FunctionRestoreMount.js +4 -0
- package/dist/apispec/src/models/FunctionRuntimeState.d.ts +27 -0
- package/dist/apispec/src/models/FunctionRuntimeState.d.ts.map +1 -0
- package/dist/apispec/src/models/FunctionRuntimeState.js +44 -0
- package/dist/apispec/src/models/FunctionRuntimeStatus.d.ts +70 -0
- package/dist/apispec/src/models/FunctionRuntimeStatus.d.ts.map +1 -0
- package/dist/apispec/src/models/FunctionRuntimeStatus.js +62 -0
- package/dist/apispec/src/models/FunctionUpdateRequest.d.ts +39 -0
- package/dist/apispec/src/models/FunctionUpdateRequest.d.ts.map +1 -0
- package/dist/apispec/src/models/FunctionUpdateRequest.js +43 -0
- package/dist/apispec/src/models/NetworkEgressPolicy.d.ts +7 -0
- package/dist/apispec/src/models/NetworkEgressPolicy.d.ts.map +1 -1
- package/dist/apispec/src/models/NetworkEgressPolicy.js +3 -0
- package/dist/apispec/src/models/Sandbox.d.ts +0 -7
- package/dist/apispec/src/models/Sandbox.d.ts.map +1 -1
- package/dist/apispec/src/models/Sandbox.js +0 -3
- package/dist/apispec/src/models/SandboxAppServiceRoute.d.ts +9 -9
- package/dist/apispec/src/models/SandboxAppServiceRoute.d.ts.map +1 -1
- package/dist/apispec/src/models/SandboxAppServiceRoute.js +9 -9
- package/dist/apispec/src/models/SandboxAppServiceRouteAuth.d.ts +60 -0
- package/dist/apispec/src/models/SandboxAppServiceRouteAuth.d.ts.map +1 -0
- package/dist/apispec/src/models/{PublicGatewayAuth.js → SandboxAppServiceRouteAuth.js} +9 -9
- package/dist/apispec/src/models/SandboxAppServiceRouteCORS.d.ts +63 -0
- package/dist/apispec/src/models/SandboxAppServiceRouteCORS.d.ts.map +1 -0
- package/dist/apispec/src/models/{PublicGatewayCORS.js → SandboxAppServiceRouteCORS.js} +8 -8
- package/dist/apispec/src/models/SandboxAppServiceRouteRateLimit.d.ts +39 -0
- package/dist/apispec/src/models/SandboxAppServiceRouteRateLimit.d.ts.map +1 -0
- package/dist/apispec/src/models/{PublicGatewayRateLimit.js → SandboxAppServiceRouteRateLimit.js} +8 -8
- package/dist/apispec/src/models/SandboxConfig.d.ts +0 -7
- package/dist/apispec/src/models/SandboxConfig.d.ts.map +1 -1
- package/dist/apispec/src/models/SandboxConfig.js +0 -3
- package/dist/apispec/src/models/SandboxUpdateConfig.d.ts +0 -7
- package/dist/apispec/src/models/SandboxUpdateConfig.d.ts.map +1 -1
- package/dist/apispec/src/models/SandboxUpdateConfig.js +0 -3
- package/dist/apispec/src/models/SuccessFunctionAliasListResponse.d.ts +40 -0
- package/dist/apispec/src/models/SuccessFunctionAliasListResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessFunctionAliasListResponse.js +46 -0
- package/dist/apispec/src/models/SuccessFunctionAliasListResponseAllOfData.d.ts +34 -0
- package/dist/apispec/src/models/SuccessFunctionAliasListResponseAllOfData.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessFunctionAliasListResponseAllOfData.js +44 -0
- package/dist/apispec/src/models/SuccessFunctionRevisionResponse.d.ts +40 -0
- package/dist/apispec/src/models/SuccessFunctionRevisionResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessFunctionRevisionResponse.js +46 -0
- package/dist/apispec/src/models/SuccessFunctionRevisionResponseAllOfData.d.ts +34 -0
- package/dist/apispec/src/models/SuccessFunctionRevisionResponseAllOfData.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessFunctionRevisionResponseAllOfData.js +44 -0
- package/dist/apispec/src/models/SuccessFunctionRuntimeResponse.d.ts +40 -0
- package/dist/apispec/src/models/SuccessFunctionRuntimeResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessFunctionRuntimeResponse.js +46 -0
- package/dist/apispec/src/models/SuccessFunctionRuntimeResponseAllOfData.d.ts +34 -0
- package/dist/apispec/src/models/SuccessFunctionRuntimeResponseAllOfData.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessFunctionRuntimeResponseAllOfData.js +44 -0
- package/dist/apispec/src/models/SuccessSandboxServicesResponseAllOfData.d.ts +6 -0
- package/dist/apispec/src/models/SuccessSandboxServicesResponseAllOfData.d.ts.map +1 -1
- package/dist/apispec/src/models/SuccessSandboxServicesResponseAllOfData.js +2 -0
- package/dist/apispec/src/models/TrafficRuleAppProtocol.d.ts +10 -10
- package/dist/apispec/src/models/TrafficRuleAppProtocol.js +10 -10
- package/dist/apispec/src/models/index.d.ts +14 -7
- package/dist/apispec/src/models/index.d.ts.map +1 -1
- package/dist/apispec/src/models/index.js +14 -7
- package/dist/apispec_compat.d.ts +101 -58
- package/dist/apispec_compat.d.ts.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -1
- package/dist/models.d.ts +1 -6
- package/dist/models.d.ts.map +1 -1
- package/dist/resources/functions.d.ts +9 -1
- package/dist/resources/functions.d.ts.map +1 -1
- package/dist/resources/functions.js +49 -0
- package/package.json +1 -1
- package/dist/apispec/src/models/PublicGatewayAuth.d.ts +0 -60
- package/dist/apispec/src/models/PublicGatewayAuth.d.ts.map +0 -1
- package/dist/apispec/src/models/PublicGatewayCORS.d.ts +0 -63
- package/dist/apispec/src/models/PublicGatewayCORS.d.ts.map +0 -1
- package/dist/apispec/src/models/PublicGatewayConfig.d.ts +0 -40
- package/dist/apispec/src/models/PublicGatewayConfig.d.ts.map +0 -1
- package/dist/apispec/src/models/PublicGatewayConfig.js +0 -46
- package/dist/apispec/src/models/PublicGatewayRateLimit.d.ts +0 -39
- package/dist/apispec/src/models/PublicGatewayRateLimit.d.ts.map +0 -1
- package/dist/apispec/src/models/PublicGatewayRoute.d.ts +0 -92
- package/dist/apispec/src/models/PublicGatewayRoute.d.ts.map +0 -1
- package/dist/apispec/src/models/PublicGatewayRoute.js +0 -68
- package/dist/apispec/src/models/SuccessPublicGatewayResponse.d.ts +0 -40
- package/dist/apispec/src/models/SuccessPublicGatewayResponse.d.ts.map +0 -1
- package/dist/apispec/src/models/SuccessPublicGatewayResponse.js +0 -46
- package/dist/apispec/src/models/SuccessPublicGatewayResponseAllOfData.d.ts +0 -46
- package/dist/apispec/src/models/SuccessPublicGatewayResponseAllOfData.d.ts.map +0 -1
- package/dist/apispec/src/models/SuccessPublicGatewayResponseAllOfData.js +0 -50
- package/dist/sandbox_public_gateway.d.ts +0 -10
- package/dist/sandbox_public_gateway.d.ts.map +0 -1
- package/dist/sandbox_public_gateway.js +0 -31
package/dist/models.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../src/models.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,SAAS;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,SAAS;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE5D,MAAM,WAAW,WAAW;IAC1B,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,UAAU;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../src/models.ts"],"names":[],"mappings":"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ctionRevisionCreateRequest, FunctionSourceRequest } from "../apispec/src/models/index.js";
|
|
1
|
+
import type { FunctionAlias, FunctionCreateRequest, FunctionRecord, FunctionRuntimeStatus, FunctionRevision, FunctionRevisionCreateRequest, FunctionSourceRequest, FunctionUpdateRequest } from "../apispec/src/models/index.js";
|
|
2
2
|
import type { Client } from "../client.js";
|
|
3
3
|
export interface FunctionCreateResult {
|
|
4
4
|
function: FunctionRecord;
|
|
@@ -21,11 +21,19 @@ export declare class Functions {
|
|
|
21
21
|
constructor(client: Client);
|
|
22
22
|
list(): Promise<FunctionRecord[]>;
|
|
23
23
|
get(functionId: string): Promise<FunctionRecord>;
|
|
24
|
+
update(functionId: string, request: FunctionUpdateRequest): Promise<FunctionRecord>;
|
|
25
|
+
delete(functionId: string): Promise<FunctionRecord>;
|
|
24
26
|
create(request: FunctionCreateRequest): Promise<FunctionCreateResult>;
|
|
25
27
|
createFromSandbox(sandboxId: string, serviceId: string, options?: CreateFunctionFromSandboxOptions): Promise<FunctionCreateResult>;
|
|
26
28
|
listRevisions(functionId: string): Promise<FunctionRevision[]>;
|
|
29
|
+
getRevision(functionId: string, revisionNumber: number): Promise<FunctionRevision>;
|
|
27
30
|
createRevision(functionId: string, request: FunctionRevisionCreateRequest): Promise<FunctionRevisionCreateResult>;
|
|
28
31
|
createRevisionFromSandbox(functionId: string, sandboxId: string, serviceId: string, options?: CreateFunctionRevisionFromSandboxOptions): Promise<FunctionRevisionCreateResult>;
|
|
32
|
+
listAliases(functionId: string): Promise<FunctionAlias[]>;
|
|
33
|
+
getAlias(functionId: string, alias: string): Promise<FunctionAlias>;
|
|
29
34
|
setAlias(functionId: string, alias: string, revisionNumber: number): Promise<FunctionAlias>;
|
|
35
|
+
getRuntime(functionId: string): Promise<FunctionRuntimeStatus>;
|
|
36
|
+
restartRuntime(functionId: string): Promise<FunctionRuntimeStatus>;
|
|
37
|
+
recycleRuntime(functionId: string): Promise<FunctionRuntimeStatus>;
|
|
30
38
|
}
|
|
31
39
|
//# sourceMappingURL=functions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"functions.d.ts","sourceRoot":"","sources":["../../src/resources/functions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EAEb,qBAAqB,EACrB,cAAc,EACd,gBAAgB,EAChB,6BAA6B,EAC7B,qBAAqB,EAGtB,MAAM,6BAA6B,CAAC;AAGrC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAExC,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,cAAc,CAAC;IACzB,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,KAAK,EAAE,aAAa,CAAC;CACtB;AAED,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,gCAAgC;IAC/C,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,wCAAwC;IACvD,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,wBAAgB,cAAc,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,qBAAqB,CAK1F;AAED,qBAAa,SAAS;IACR,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAAN,MAAM,EAAE,MAAM;IAErC,IAAI,IAAI,OAAO,CAAC,cAAc,EAAE,CAAC;IAQjC,GAAG,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC;IAQhD,MAAM,CAAC,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAWrE,iBAAiB,CACrB,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,EACjB,OAAO,GAAE,gCAAqC,GAC7C,OAAO,CAAC,oBAAoB,CAAC;IAO1B,aAAa,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC;IAQ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AO,CAAC,qBAAqB,CAAC;IAQlE,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,qBAAqB,CAAC;CAOzE"}
|
|
@@ -21,6 +21,19 @@ export class Functions {
|
|
|
21
21
|
const data = ensureData(response, "get function returned empty response");
|
|
22
22
|
return data._function;
|
|
23
23
|
}
|
|
24
|
+
async update(functionId, request) {
|
|
25
|
+
const response = await wrapApiCall(() => this.client.apispec.functions.apiV1FunctionsIdPut({
|
|
26
|
+
id: functionId,
|
|
27
|
+
functionUpdateRequest: request,
|
|
28
|
+
}));
|
|
29
|
+
const data = ensureData(response, "update function returned empty response");
|
|
30
|
+
return data._function;
|
|
31
|
+
}
|
|
32
|
+
async delete(functionId) {
|
|
33
|
+
const response = await wrapApiCall(() => this.client.apispec.functions.apiV1FunctionsIdDelete({ id: functionId }));
|
|
34
|
+
const data = ensureData(response, "delete function returned empty response");
|
|
35
|
+
return data._function;
|
|
36
|
+
}
|
|
24
37
|
async create(request) {
|
|
25
38
|
const response = await wrapApiCall(() => this.client.apispec.functions.apiV1FunctionsPost({
|
|
26
39
|
functionCreateRequest: request,
|
|
@@ -38,6 +51,14 @@ export class Functions {
|
|
|
38
51
|
const data = ensureData(response, "list function revisions returned empty response");
|
|
39
52
|
return data.revisions ?? [];
|
|
40
53
|
}
|
|
54
|
+
async getRevision(functionId, revisionNumber) {
|
|
55
|
+
const response = await wrapApiCall(() => this.client.apispec.functions.apiV1FunctionsIdRevisionsRevisionNumberGet({
|
|
56
|
+
id: functionId,
|
|
57
|
+
revisionNumber,
|
|
58
|
+
}));
|
|
59
|
+
const data = ensureData(response, "get function revision returned empty response");
|
|
60
|
+
return data.revision;
|
|
61
|
+
}
|
|
41
62
|
async createRevision(functionId, request) {
|
|
42
63
|
const response = await wrapApiCall(() => this.client.apispec.functions.apiV1FunctionsIdRevisionsPost({
|
|
43
64
|
id: functionId,
|
|
@@ -51,6 +72,19 @@ export class Functions {
|
|
|
51
72
|
promote: options.promote,
|
|
52
73
|
});
|
|
53
74
|
}
|
|
75
|
+
async listAliases(functionId) {
|
|
76
|
+
const response = await wrapApiCall(() => this.client.apispec.functions.apiV1FunctionsIdAliasesGet({ id: functionId }));
|
|
77
|
+
const data = ensureData(response, "list function aliases returned empty response");
|
|
78
|
+
return data.aliases ?? [];
|
|
79
|
+
}
|
|
80
|
+
async getAlias(functionId, alias) {
|
|
81
|
+
const response = await wrapApiCall(() => this.client.apispec.functions.apiV1FunctionsIdAliasesAliasGet({
|
|
82
|
+
id: functionId,
|
|
83
|
+
alias,
|
|
84
|
+
}));
|
|
85
|
+
const data = ensureData(response, "get function alias returned empty response");
|
|
86
|
+
return data.alias;
|
|
87
|
+
}
|
|
54
88
|
async setAlias(functionId, alias, revisionNumber) {
|
|
55
89
|
const request = {
|
|
56
90
|
revisionNumber,
|
|
@@ -63,6 +97,21 @@ export class Functions {
|
|
|
63
97
|
const data = ensureData(response, "set function alias returned empty response");
|
|
64
98
|
return data.alias;
|
|
65
99
|
}
|
|
100
|
+
async getRuntime(functionId) {
|
|
101
|
+
const response = await wrapApiCall(() => this.client.apispec.functions.apiV1FunctionsIdRuntimeGet({ id: functionId }));
|
|
102
|
+
const data = ensureData(response, "get function runtime returned empty response");
|
|
103
|
+
return data.runtime;
|
|
104
|
+
}
|
|
105
|
+
async restartRuntime(functionId) {
|
|
106
|
+
const response = await wrapApiCall(() => this.client.apispec.functions.apiV1FunctionsIdRuntimeRestartPost({ id: functionId }));
|
|
107
|
+
const data = ensureData(response, "restart function runtime returned empty response");
|
|
108
|
+
return data.runtime;
|
|
109
|
+
}
|
|
110
|
+
async recycleRuntime(functionId) {
|
|
111
|
+
const response = await wrapApiCall(() => this.client.apispec.functions.apiV1FunctionsIdRuntimeRecyclePost({ id: functionId }));
|
|
112
|
+
const data = ensureData(response, "recycle function runtime returned empty response");
|
|
113
|
+
return data.runtime;
|
|
114
|
+
}
|
|
66
115
|
}
|
|
67
116
|
function toFunctionCreateResult(data) {
|
|
68
117
|
return {
|
package/package.json
CHANGED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Sandbox0 API
|
|
3
|
-
* Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 0.1.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface PublicGatewayAuth
|
|
16
|
-
*/
|
|
17
|
-
export interface PublicGatewayAuth {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof PublicGatewayAuth
|
|
22
|
-
*/
|
|
23
|
-
mode: PublicGatewayAuthModeEnum;
|
|
24
|
-
/**
|
|
25
|
-
* Hex SHA-256 of the accepted bearer token. Required when mode is bearer.
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof PublicGatewayAuth
|
|
28
|
-
*/
|
|
29
|
-
bearerTokenSha256?: string;
|
|
30
|
-
/**
|
|
31
|
-
* Required header name when mode is header.
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof PublicGatewayAuth
|
|
34
|
-
*/
|
|
35
|
-
headerName?: string;
|
|
36
|
-
/**
|
|
37
|
-
* Hex SHA-256 of the required header value when mode is header.
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof PublicGatewayAuth
|
|
40
|
-
*/
|
|
41
|
-
headerValueSha256?: string;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* @export
|
|
45
|
-
*/
|
|
46
|
-
export declare const PublicGatewayAuthModeEnum: {
|
|
47
|
-
readonly None: "none";
|
|
48
|
-
readonly Bearer: "bearer";
|
|
49
|
-
readonly Header: "header";
|
|
50
|
-
};
|
|
51
|
-
export type PublicGatewayAuthModeEnum = typeof PublicGatewayAuthModeEnum[keyof typeof PublicGatewayAuthModeEnum];
|
|
52
|
-
/**
|
|
53
|
-
* Check if a given object implements the PublicGatewayAuth interface.
|
|
54
|
-
*/
|
|
55
|
-
export declare function instanceOfPublicGatewayAuth(value: object): value is PublicGatewayAuth;
|
|
56
|
-
export declare function PublicGatewayAuthFromJSON(json: any): PublicGatewayAuth;
|
|
57
|
-
export declare function PublicGatewayAuthFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicGatewayAuth;
|
|
58
|
-
export declare function PublicGatewayAuthToJSON(json: any): PublicGatewayAuth;
|
|
59
|
-
export declare function PublicGatewayAuthToJSONTyped(value?: PublicGatewayAuth | null, ignoreDiscriminator?: boolean): any;
|
|
60
|
-
//# sourceMappingURL=PublicGatewayAuth.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PublicGatewayAuth.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/PublicGatewayAuth.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;OAIG;IACH,IAAI,EAAE,yBAAyB,CAAC;IAChC;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAGD;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;;CAI5B,CAAC;AACX,MAAM,MAAM,yBAAyB,GAAG,OAAO,yBAAyB,CAAC,MAAM,OAAO,yBAAyB,CAAC,CAAC;AAGjH;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,iBAAiB,CAGrF;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEtE;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,iBAAiB,CAWzG;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEpE;AAED,wBAAgB,4BAA4B,CAAC,KAAK,CAAC,EAAE,iBAAiB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAYxH"}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Sandbox0 API
|
|
3
|
-
* Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 0.1.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface PublicGatewayCORS
|
|
16
|
-
*/
|
|
17
|
-
export interface PublicGatewayCORS {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {Array<string>}
|
|
21
|
-
* @memberof PublicGatewayCORS
|
|
22
|
-
*/
|
|
23
|
-
allowedOrigins?: Array<string>;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {Array<string>}
|
|
27
|
-
* @memberof PublicGatewayCORS
|
|
28
|
-
*/
|
|
29
|
-
allowedMethods?: Array<string>;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {Array<string>}
|
|
33
|
-
* @memberof PublicGatewayCORS
|
|
34
|
-
*/
|
|
35
|
-
allowedHeaders?: Array<string>;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {Array<string>}
|
|
39
|
-
* @memberof PublicGatewayCORS
|
|
40
|
-
*/
|
|
41
|
-
exposeHeaders?: Array<string>;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {boolean}
|
|
45
|
-
* @memberof PublicGatewayCORS
|
|
46
|
-
*/
|
|
47
|
-
allowCredentials?: boolean;
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @type {number}
|
|
51
|
-
* @memberof PublicGatewayCORS
|
|
52
|
-
*/
|
|
53
|
-
maxAgeSeconds?: number;
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* Check if a given object implements the PublicGatewayCORS interface.
|
|
57
|
-
*/
|
|
58
|
-
export declare function instanceOfPublicGatewayCORS(value: object): value is PublicGatewayCORS;
|
|
59
|
-
export declare function PublicGatewayCORSFromJSON(json: any): PublicGatewayCORS;
|
|
60
|
-
export declare function PublicGatewayCORSFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicGatewayCORS;
|
|
61
|
-
export declare function PublicGatewayCORSToJSON(json: any): PublicGatewayCORS;
|
|
62
|
-
export declare function PublicGatewayCORSToJSONTyped(value?: PublicGatewayCORS | null, ignoreDiscriminator?: boolean): any;
|
|
63
|
-
//# sourceMappingURL=PublicGatewayCORS.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PublicGatewayCORS.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/PublicGatewayCORS.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;OAIG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC/B;;;;OAIG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC/B;;;;OAIG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC/B;;;;OAIG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC9B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,iBAAiB,CAErF;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEtE;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,iBAAiB,CAazG;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEpE;AAED,wBAAgB,4BAA4B,CAAC,KAAK,CAAC,EAAE,iBAAiB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAcxH"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Sandbox0 API
|
|
3
|
-
* Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 0.1.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import type { PublicGatewayRoute } from './PublicGatewayRoute.js';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface PublicGatewayConfig
|
|
17
|
-
*/
|
|
18
|
-
export interface PublicGatewayConfig {
|
|
19
|
-
/**
|
|
20
|
-
* Enables request-level public gateway enforcement for sandbox public traffic.
|
|
21
|
-
* @type {boolean}
|
|
22
|
-
* @memberof PublicGatewayConfig
|
|
23
|
-
*/
|
|
24
|
-
enabled: boolean;
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @type {Array<PublicGatewayRoute>}
|
|
28
|
-
* @memberof PublicGatewayConfig
|
|
29
|
-
*/
|
|
30
|
-
routes?: Array<PublicGatewayRoute>;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Check if a given object implements the PublicGatewayConfig interface.
|
|
34
|
-
*/
|
|
35
|
-
export declare function instanceOfPublicGatewayConfig(value: object): value is PublicGatewayConfig;
|
|
36
|
-
export declare function PublicGatewayConfigFromJSON(json: any): PublicGatewayConfig;
|
|
37
|
-
export declare function PublicGatewayConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicGatewayConfig;
|
|
38
|
-
export declare function PublicGatewayConfigToJSON(json: any): PublicGatewayConfig;
|
|
39
|
-
export declare function PublicGatewayConfigToJSONTyped(value?: PublicGatewayConfig | null, ignoreDiscriminator?: boolean): any;
|
|
40
|
-
//# sourceMappingURL=PublicGatewayConfig.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PublicGatewayConfig.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/PublicGatewayConfig.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAQ/D;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;OAIG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,kBAAkB,CAAC,CAAC;CACtC;AAED;;GAEG;AACH,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,mBAAmB,CAGzF;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAE1E;AAED,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,mBAAmB,CAS7G;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAExE;AAED,wBAAgB,8BAA8B,CAAC,KAAK,CAAC,EAAE,mBAAmB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAU5H"}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Sandbox0 API
|
|
5
|
-
* Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 0.1.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
import { PublicGatewayRouteFromJSON, PublicGatewayRouteToJSON, } from './PublicGatewayRoute.js';
|
|
15
|
-
/**
|
|
16
|
-
* Check if a given object implements the PublicGatewayConfig interface.
|
|
17
|
-
*/
|
|
18
|
-
export function instanceOfPublicGatewayConfig(value) {
|
|
19
|
-
if (!('enabled' in value) || value['enabled'] === undefined)
|
|
20
|
-
return false;
|
|
21
|
-
return true;
|
|
22
|
-
}
|
|
23
|
-
export function PublicGatewayConfigFromJSON(json) {
|
|
24
|
-
return PublicGatewayConfigFromJSONTyped(json, false);
|
|
25
|
-
}
|
|
26
|
-
export function PublicGatewayConfigFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
-
if (json == null) {
|
|
28
|
-
return json;
|
|
29
|
-
}
|
|
30
|
-
return {
|
|
31
|
-
'enabled': json['enabled'],
|
|
32
|
-
'routes': json['routes'] == null ? undefined : (json['routes'].map(PublicGatewayRouteFromJSON)),
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
export function PublicGatewayConfigToJSON(json) {
|
|
36
|
-
return PublicGatewayConfigToJSONTyped(json, false);
|
|
37
|
-
}
|
|
38
|
-
export function PublicGatewayConfigToJSONTyped(value, ignoreDiscriminator = false) {
|
|
39
|
-
if (value == null) {
|
|
40
|
-
return value;
|
|
41
|
-
}
|
|
42
|
-
return {
|
|
43
|
-
'enabled': value['enabled'],
|
|
44
|
-
'routes': value['routes'] == null ? undefined : (value['routes'].map(PublicGatewayRouteToJSON)),
|
|
45
|
-
};
|
|
46
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Sandbox0 API
|
|
3
|
-
* Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 0.1.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface PublicGatewayRateLimit
|
|
16
|
-
*/
|
|
17
|
-
export interface PublicGatewayRateLimit {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {number}
|
|
21
|
-
* @memberof PublicGatewayRateLimit
|
|
22
|
-
*/
|
|
23
|
-
rps: number;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {number}
|
|
27
|
-
* @memberof PublicGatewayRateLimit
|
|
28
|
-
*/
|
|
29
|
-
burst: number;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Check if a given object implements the PublicGatewayRateLimit interface.
|
|
33
|
-
*/
|
|
34
|
-
export declare function instanceOfPublicGatewayRateLimit(value: object): value is PublicGatewayRateLimit;
|
|
35
|
-
export declare function PublicGatewayRateLimitFromJSON(json: any): PublicGatewayRateLimit;
|
|
36
|
-
export declare function PublicGatewayRateLimitFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicGatewayRateLimit;
|
|
37
|
-
export declare function PublicGatewayRateLimitToJSON(json: any): PublicGatewayRateLimit;
|
|
38
|
-
export declare function PublicGatewayRateLimitToJSONTyped(value?: PublicGatewayRateLimit | null, ignoreDiscriminator?: boolean): any;
|
|
39
|
-
//# sourceMappingURL=PublicGatewayRateLimit.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PublicGatewayRateLimit.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/PublicGatewayRateLimit.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACnC;;;;OAIG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,wBAAgB,gCAAgC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,sBAAsB,CAI/F;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,GAAG,sBAAsB,CAEhF;AAED,wBAAgB,mCAAmC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,sBAAsB,CASnH;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,GAAG,sBAAsB,CAE9E;AAED,wBAAgB,iCAAiC,CAAC,KAAK,CAAC,EAAE,sBAAsB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAUlI"}
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Sandbox0 API
|
|
3
|
-
* Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 0.1.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import type { PublicGatewayRateLimit } from './PublicGatewayRateLimit.js';
|
|
13
|
-
import type { PublicGatewayCORS } from './PublicGatewayCORS.js';
|
|
14
|
-
import type { PublicGatewayAuth } from './PublicGatewayAuth.js';
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
* @export
|
|
18
|
-
* @interface PublicGatewayRoute
|
|
19
|
-
*/
|
|
20
|
-
export interface PublicGatewayRoute {
|
|
21
|
-
/**
|
|
22
|
-
* Stable route id. Must be a DNS label and unique within the sandbox policy.
|
|
23
|
-
* @type {string}
|
|
24
|
-
* @memberof PublicGatewayRoute
|
|
25
|
-
*/
|
|
26
|
-
id: string;
|
|
27
|
-
/**
|
|
28
|
-
*
|
|
29
|
-
* @type {number}
|
|
30
|
-
* @memberof PublicGatewayRoute
|
|
31
|
-
*/
|
|
32
|
-
port: number;
|
|
33
|
-
/**
|
|
34
|
-
* Request path prefix matched before proxying to the sandbox port.
|
|
35
|
-
* @type {string}
|
|
36
|
-
* @memberof PublicGatewayRoute
|
|
37
|
-
*/
|
|
38
|
-
pathPrefix?: string;
|
|
39
|
-
/**
|
|
40
|
-
* Allowed HTTP methods. Empty allows every method.
|
|
41
|
-
* @type {Array<string>}
|
|
42
|
-
* @memberof PublicGatewayRoute
|
|
43
|
-
*/
|
|
44
|
-
methods?: Array<string>;
|
|
45
|
-
/**
|
|
46
|
-
* Optional replacement prefix applied before proxying.
|
|
47
|
-
* @type {string}
|
|
48
|
-
* @memberof PublicGatewayRoute
|
|
49
|
-
*/
|
|
50
|
-
rewritePrefix?: string | null;
|
|
51
|
-
/**
|
|
52
|
-
*
|
|
53
|
-
* @type {PublicGatewayAuth}
|
|
54
|
-
* @memberof PublicGatewayRoute
|
|
55
|
-
*/
|
|
56
|
-
auth?: PublicGatewayAuth;
|
|
57
|
-
/**
|
|
58
|
-
*
|
|
59
|
-
* @type {PublicGatewayCORS}
|
|
60
|
-
* @memberof PublicGatewayRoute
|
|
61
|
-
*/
|
|
62
|
-
cors?: PublicGatewayCORS;
|
|
63
|
-
/**
|
|
64
|
-
*
|
|
65
|
-
* @type {PublicGatewayRateLimit}
|
|
66
|
-
* @memberof PublicGatewayRoute
|
|
67
|
-
*/
|
|
68
|
-
rateLimit?: PublicGatewayRateLimit;
|
|
69
|
-
/**
|
|
70
|
-
* Per-route upstream timeout in seconds. Zero disables the route override.
|
|
71
|
-
* @type {number}
|
|
72
|
-
* @memberof PublicGatewayRoute
|
|
73
|
-
*/
|
|
74
|
-
timeoutSeconds?: number;
|
|
75
|
-
/**
|
|
76
|
-
* Route-level resume gate for public gateway traffic. Evaluated only when
|
|
77
|
-
* sandbox auto_resume is true.
|
|
78
|
-
*
|
|
79
|
-
* @type {boolean}
|
|
80
|
-
* @memberof PublicGatewayRoute
|
|
81
|
-
*/
|
|
82
|
-
resume: boolean;
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
* Check if a given object implements the PublicGatewayRoute interface.
|
|
86
|
-
*/
|
|
87
|
-
export declare function instanceOfPublicGatewayRoute(value: object): value is PublicGatewayRoute;
|
|
88
|
-
export declare function PublicGatewayRouteFromJSON(json: any): PublicGatewayRoute;
|
|
89
|
-
export declare function PublicGatewayRouteFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicGatewayRoute;
|
|
90
|
-
export declare function PublicGatewayRouteToJSON(json: any): PublicGatewayRoute;
|
|
91
|
-
export declare function PublicGatewayRouteToJSONTyped(value?: PublicGatewayRoute | null, ignoreDiscriminator?: boolean): any;
|
|
92
|
-
//# sourceMappingURL=PublicGatewayRoute.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PublicGatewayRoute.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/PublicGatewayRoute.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAOvE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,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gateways and the global gateway.
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 0.1.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
import { PublicGatewayRateLimitFromJSON, PublicGatewayRateLimitToJSON, } from './PublicGatewayRateLimit.js';
|
|
15
|
-
import { PublicGatewayCORSFromJSON, PublicGatewayCORSToJSON, } from './PublicGatewayCORS.js';
|
|
16
|
-
import { PublicGatewayAuthFromJSON, PublicGatewayAuthToJSON, } from './PublicGatewayAuth.js';
|
|
17
|
-
/**
|
|
18
|
-
* Check if a given object implements the PublicGatewayRoute interface.
|
|
19
|
-
*/
|
|
20
|
-
export function instanceOfPublicGatewayRoute(value) {
|
|
21
|
-
if (!('id' in value) || value['id'] === undefined)
|
|
22
|
-
return false;
|
|
23
|
-
if (!('port' in value) || value['port'] === undefined)
|
|
24
|
-
return false;
|
|
25
|
-
if (!('resume' in value) || value['resume'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
return true;
|
|
28
|
-
}
|
|
29
|
-
export function PublicGatewayRouteFromJSON(json) {
|
|
30
|
-
return PublicGatewayRouteFromJSONTyped(json, false);
|
|
31
|
-
}
|
|
32
|
-
export function PublicGatewayRouteFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
-
if (json == null) {
|
|
34
|
-
return json;
|
|
35
|
-
}
|
|
36
|
-
return {
|
|
37
|
-
'id': json['id'],
|
|
38
|
-
'port': json['port'],
|
|
39
|
-
'pathPrefix': json['path_prefix'] == null ? undefined : json['path_prefix'],
|
|
40
|
-
'methods': json['methods'] == null ? undefined : json['methods'],
|
|
41
|
-
'rewritePrefix': json['rewrite_prefix'] == null ? undefined : json['rewrite_prefix'],
|
|
42
|
-
'auth': json['auth'] == null ? undefined : PublicGatewayAuthFromJSON(json['auth']),
|
|
43
|
-
'cors': json['cors'] == null ? undefined : PublicGatewayCORSFromJSON(json['cors']),
|
|
44
|
-
'rateLimit': json['rate_limit'] == null ? undefined : PublicGatewayRateLimitFromJSON(json['rate_limit']),
|
|
45
|
-
'timeoutSeconds': json['timeout_seconds'] == null ? undefined : json['timeout_seconds'],
|
|
46
|
-
'resume': json['resume'],
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
export function PublicGatewayRouteToJSON(json) {
|
|
50
|
-
return PublicGatewayRouteToJSONTyped(json, false);
|
|
51
|
-
}
|
|
52
|
-
export function PublicGatewayRouteToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
-
if (value == null) {
|
|
54
|
-
return value;
|
|
55
|
-
}
|
|
56
|
-
return {
|
|
57
|
-
'id': value['id'],
|
|
58
|
-
'port': value['port'],
|
|
59
|
-
'path_prefix': value['pathPrefix'],
|
|
60
|
-
'methods': value['methods'],
|
|
61
|
-
'rewrite_prefix': value['rewritePrefix'],
|
|
62
|
-
'auth': PublicGatewayAuthToJSON(value['auth']),
|
|
63
|
-
'cors': PublicGatewayCORSToJSON(value['cors']),
|
|
64
|
-
'rate_limit': PublicGatewayRateLimitToJSON(value['rateLimit']),
|
|
65
|
-
'timeout_seconds': value['timeoutSeconds'],
|
|
66
|
-
'resume': value['resume'],
|
|
67
|
-
};
|
|
68
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Sandbox0 API
|
|
3
|
-
* Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 0.1.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import type { SuccessPublicGatewayResponseAllOfData } from './SuccessPublicGatewayResponseAllOfData.js';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface SuccessPublicGatewayResponse
|
|
17
|
-
*/
|
|
18
|
-
export interface SuccessPublicGatewayResponse {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {boolean}
|
|
22
|
-
* @memberof SuccessPublicGatewayResponse
|
|
23
|
-
*/
|
|
24
|
-
success: boolean;
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @type {SuccessPublicGatewayResponseAllOfData}
|
|
28
|
-
* @memberof SuccessPublicGatewayResponse
|
|
29
|
-
*/
|
|
30
|
-
data?: SuccessPublicGatewayResponseAllOfData;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Check if a given object implements the SuccessPublicGatewayResponse interface.
|
|
34
|
-
*/
|
|
35
|
-
export declare function instanceOfSuccessPublicGatewayResponse(value: object): value is SuccessPublicGatewayResponse;
|
|
36
|
-
export declare function SuccessPublicGatewayResponseFromJSON(json: any): SuccessPublicGatewayResponse;
|
|
37
|
-
export declare function SuccessPublicGatewayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SuccessPublicGatewayResponse;
|
|
38
|
-
export declare function SuccessPublicGatewayResponseToJSON(json: any): SuccessPublicGatewayResponse;
|
|
39
|
-
export declare function SuccessPublicGatewayResponseToJSONTyped(value?: SuccessPublicGatewayResponse | null, ignoreDiscriminator?: boolean): any;
|
|
40
|
-
//# sourceMappingURL=SuccessPublicGatewayResponse.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SuccessPublicGatewayResponse.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SuccessPublicGatewayResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,qCAAqC,EAAE,MAAM,yCAAyC,CAAC;AAQrG;;;;GAIG;AACH,MAAM,WAAW,4BAA4B;IACzC;;;;OAIG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,IAAI,CAAC,EAAE,qCAAqC,CAAC;CAChD;AAED;;GAEG;AACH,wBAAgB,sCAAsC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,4BAA4B,CAG3G;AAED,wBAAgB,oCAAoC,CAAC,IAAI,EAAE,GAAG,GAAG,4BAA4B,CAE5F;AAED,wBAAgB,yCAAyC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,4BAA4B,CAS/H;AAED,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,GAAG,GAAG,4BAA4B,CAE1F;AAED,wBAAgB,uCAAuC,CAAC,KAAK,CAAC,EAAE,4BAA4B,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAU9I"}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Sandbox0 API
|
|
5
|
-
* Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 0.1.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
import { SuccessPublicGatewayResponseAllOfDataFromJSON, SuccessPublicGatewayResponseAllOfDataToJSON, } from './SuccessPublicGatewayResponseAllOfData.js';
|
|
15
|
-
/**
|
|
16
|
-
* Check if a given object implements the SuccessPublicGatewayResponse interface.
|
|
17
|
-
*/
|
|
18
|
-
export function instanceOfSuccessPublicGatewayResponse(value) {
|
|
19
|
-
if (!('success' in value) || value['success'] === undefined)
|
|
20
|
-
return false;
|
|
21
|
-
return true;
|
|
22
|
-
}
|
|
23
|
-
export function SuccessPublicGatewayResponseFromJSON(json) {
|
|
24
|
-
return SuccessPublicGatewayResponseFromJSONTyped(json, false);
|
|
25
|
-
}
|
|
26
|
-
export function SuccessPublicGatewayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
-
if (json == null) {
|
|
28
|
-
return json;
|
|
29
|
-
}
|
|
30
|
-
return {
|
|
31
|
-
'success': json['success'],
|
|
32
|
-
'data': json['data'] == null ? undefined : SuccessPublicGatewayResponseAllOfDataFromJSON(json['data']),
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
export function SuccessPublicGatewayResponseToJSON(json) {
|
|
36
|
-
return SuccessPublicGatewayResponseToJSONTyped(json, false);
|
|
37
|
-
}
|
|
38
|
-
export function SuccessPublicGatewayResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
39
|
-
if (value == null) {
|
|
40
|
-
return value;
|
|
41
|
-
}
|
|
42
|
-
return {
|
|
43
|
-
'success': value['success'],
|
|
44
|
-
'data': SuccessPublicGatewayResponseAllOfDataToJSON(value['data']),
|
|
45
|
-
};
|
|
46
|
-
}
|