sandbox0 0.3.2 → 0.3.3
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/SandboxesApi.d.ts +26 -1
- package/dist/apispec/src/apis/SandboxesApi.d.ts.map +1 -1
- package/dist/apispec/src/apis/SandboxesApi.js +74 -1
- package/dist/apispec/src/models/PublicGatewayAuth.d.ts +60 -0
- package/dist/apispec/src/models/PublicGatewayAuth.d.ts.map +1 -0
- package/dist/apispec/src/models/PublicGatewayAuth.js +57 -0
- package/dist/apispec/src/models/PublicGatewayCORS.d.ts +63 -0
- package/dist/apispec/src/models/PublicGatewayCORS.d.ts.map +1 -0
- package/dist/apispec/src/models/PublicGatewayCORS.js +51 -0
- package/dist/apispec/src/models/PublicGatewayConfig.d.ts +40 -0
- package/dist/apispec/src/models/PublicGatewayConfig.d.ts.map +1 -0
- package/dist/apispec/src/models/PublicGatewayConfig.js +46 -0
- package/dist/apispec/src/models/PublicGatewayRateLimit.d.ts +39 -0
- package/dist/apispec/src/models/PublicGatewayRateLimit.d.ts.map +1 -0
- package/dist/apispec/src/models/PublicGatewayRateLimit.js +47 -0
- package/dist/apispec/src/models/PublicGatewayRoute.d.ts +92 -0
- package/dist/apispec/src/models/PublicGatewayRoute.d.ts.map +1 -0
- package/dist/apispec/src/models/PublicGatewayRoute.js +68 -0
- package/dist/apispec/src/models/Sandbox.d.ts +7 -0
- package/dist/apispec/src/models/Sandbox.d.ts.map +1 -1
- package/dist/apispec/src/models/Sandbox.js +3 -0
- package/dist/apispec/src/models/SandboxConfig.d.ts +7 -0
- package/dist/apispec/src/models/SandboxConfig.d.ts.map +1 -1
- package/dist/apispec/src/models/SandboxConfig.js +3 -0
- package/dist/apispec/src/models/SandboxUpdateConfig.d.ts +7 -0
- package/dist/apispec/src/models/SandboxUpdateConfig.d.ts.map +1 -1
- package/dist/apispec/src/models/SandboxUpdateConfig.js +3 -0
- package/dist/apispec/src/models/SuccessPublicGatewayResponse.d.ts +40 -0
- package/dist/apispec/src/models/SuccessPublicGatewayResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessPublicGatewayResponse.js +46 -0
- package/dist/apispec/src/models/SuccessPublicGatewayResponseAllOfData.d.ts +46 -0
- package/dist/apispec/src/models/SuccessPublicGatewayResponseAllOfData.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessPublicGatewayResponseAllOfData.js +50 -0
- package/dist/apispec/src/models/index.d.ts +7 -0
- package/dist/apispec/src/models/index.d.ts.map +1 -1
- package/dist/apispec/src/models/index.js +7 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/models.d.ts +6 -0
- package/dist/models.d.ts.map +1 -1
- package/dist/sandbox_public_gateway.d.ts +10 -0
- package/dist/sandbox_public_gateway.d.ts.map +1 -0
- package/dist/sandbox_public_gateway.js +31 -0
- package/package.json +1 -1
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime.js';
|
|
13
|
-
import type { ClaimRequest, SandboxNetworkPolicy, SandboxRefreshRequest, SandboxUpdateRequest, SuccessClaimResponse, SuccessExposedPortsResponse, SuccessMessageResponse, SuccessPauseSandboxResponse, SuccessRefreshResponse, SuccessResumeSandboxResponse, SuccessSandboxListResponse, SuccessSandboxNetworkPolicyResponse, SuccessSandboxResponse, SuccessSandboxStatusResponse, UpdateExposedPortsRequest } from '../models/index.js';
|
|
13
|
+
import type { ClaimRequest, PublicGatewayConfig, SandboxNetworkPolicy, SandboxRefreshRequest, SandboxUpdateRequest, SuccessClaimResponse, SuccessExposedPortsResponse, SuccessMessageResponse, SuccessPauseSandboxResponse, SuccessPublicGatewayResponse, SuccessRefreshResponse, SuccessResumeSandboxResponse, SuccessSandboxListResponse, SuccessSandboxNetworkPolicyResponse, SuccessSandboxResponse, SuccessSandboxStatusResponse, UpdateExposedPortsRequest } from '../models/index.js';
|
|
14
14
|
export interface ApiV1SandboxesGetRequest {
|
|
15
15
|
status?: ApiV1SandboxesGetStatusEnum;
|
|
16
16
|
templateId?: string;
|
|
@@ -58,6 +58,13 @@ export interface ApiV1SandboxesIdNetworkPutRequest {
|
|
|
58
58
|
export interface ApiV1SandboxesIdPausePostRequest {
|
|
59
59
|
id: string;
|
|
60
60
|
}
|
|
61
|
+
export interface ApiV1SandboxesIdPublicGatewayGetRequest {
|
|
62
|
+
id: string;
|
|
63
|
+
}
|
|
64
|
+
export interface ApiV1SandboxesIdPublicGatewayPutRequest {
|
|
65
|
+
id: string;
|
|
66
|
+
publicGatewayConfig: PublicGatewayConfig;
|
|
67
|
+
}
|
|
61
68
|
export interface ApiV1SandboxesIdPutRequest {
|
|
62
69
|
id: string;
|
|
63
70
|
sandboxUpdateRequest: SandboxUpdateRequest;
|
|
@@ -173,6 +180,24 @@ export declare class SandboxesApi extends runtime.BaseAPI {
|
|
|
173
180
|
* Pause a sandbox
|
|
174
181
|
*/
|
|
175
182
|
apiV1SandboxesIdPausePost(requestParameters: ApiV1SandboxesIdPausePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessPauseSandboxResponse>;
|
|
183
|
+
/**
|
|
184
|
+
* Get sandbox public gateway policy
|
|
185
|
+
*/
|
|
186
|
+
apiV1SandboxesIdPublicGatewayGetRaw(requestParameters: ApiV1SandboxesIdPublicGatewayGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessPublicGatewayResponse>>;
|
|
187
|
+
/**
|
|
188
|
+
* Get sandbox public gateway policy
|
|
189
|
+
*/
|
|
190
|
+
apiV1SandboxesIdPublicGatewayGet(requestParameters: ApiV1SandboxesIdPublicGatewayGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessPublicGatewayResponse>;
|
|
191
|
+
/**
|
|
192
|
+
* Replaces the request-level public gateway policy for sandbox public traffic. When enabled, matching routes control method, path, authentication, CORS, per-route rate limits, timeout, rewrite, and paused sandbox auto-resume.
|
|
193
|
+
* Update sandbox public gateway policy
|
|
194
|
+
*/
|
|
195
|
+
apiV1SandboxesIdPublicGatewayPutRaw(requestParameters: ApiV1SandboxesIdPublicGatewayPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessPublicGatewayResponse>>;
|
|
196
|
+
/**
|
|
197
|
+
* Replaces the request-level public gateway policy for sandbox public traffic. When enabled, matching routes control method, path, authentication, CORS, per-route rate limits, timeout, rewrite, and paused sandbox auto-resume.
|
|
198
|
+
* Update sandbox public gateway policy
|
|
199
|
+
*/
|
|
200
|
+
apiV1SandboxesIdPublicGatewayPut(requestParameters: ApiV1SandboxesIdPublicGatewayPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessPublicGatewayResponse>;
|
|
176
201
|
/**
|
|
177
202
|
* Update sandbox configuration
|
|
178
203
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SandboxesApi.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/apis/SandboxesApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,YAAY,EAEZ,oBAAoB,EACpB,qBAAqB,EACrB,oBAAoB,EACpB,oBAAoB,EACpB,2BAA2B,EAC3B,sBAAsB,EACtB,2BAA2B,EAC3B,sBAAsB,EACtB,4BAA4B,EAC5B,0BAA0B,EAC1B,mCAAmC,EACnC,sBAAsB,EACtB,4BAA4B,EAC5B,yBAAyB,EAC1B,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"SandboxesApi.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/apis/SandboxesApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAA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;IAkC/M;;OAEG;IACG,yBAAyB,CAAC,iBAAiB,EAAE,gCAAgC,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,4BAA4B,CAAC;IAKvL;;OAEG;IACG,qBAAqB,CAAC,iBAAiB,EAAE,yBAAyB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,oBAAoB,CAAC,CAAC;IAoCzL;;OAEG;IACG,kBAAkB,CAAC,iBAAiB,EAAE,yBAAyB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,oBAAoB,CAAC;CAKpK;AAED;;GAEG;AACH,eAAO,MAAM,2BAA2B;;;;;CAK9B,CAAC;AACX,MAAM,MAAM,2BAA2B,GAAG,OAAO,2BAA2B,CAAC,MAAM,OAAO,2BAA2B,CAAC,CAAC"}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import * as runtime from '../runtime.js';
|
|
15
|
-
import { ClaimRequestToJSON, SandboxNetworkPolicyToJSON, SandboxRefreshRequestToJSON, SandboxUpdateRequestToJSON, SuccessClaimResponseFromJSON, SuccessExposedPortsResponseFromJSON, SuccessMessageResponseFromJSON, SuccessPauseSandboxResponseFromJSON, SuccessRefreshResponseFromJSON, SuccessResumeSandboxResponseFromJSON, SuccessSandboxListResponseFromJSON, SuccessSandboxNetworkPolicyResponseFromJSON, SuccessSandboxResponseFromJSON, SuccessSandboxStatusResponseFromJSON, UpdateExposedPortsRequestToJSON, } from '../models/index.js';
|
|
15
|
+
import { ClaimRequestToJSON, PublicGatewayConfigToJSON, SandboxNetworkPolicyToJSON, SandboxRefreshRequestToJSON, SandboxUpdateRequestToJSON, SuccessClaimResponseFromJSON, SuccessExposedPortsResponseFromJSON, SuccessMessageResponseFromJSON, SuccessPauseSandboxResponseFromJSON, SuccessPublicGatewayResponseFromJSON, SuccessRefreshResponseFromJSON, SuccessResumeSandboxResponseFromJSON, SuccessSandboxListResponseFromJSON, SuccessSandboxNetworkPolicyResponseFromJSON, SuccessSandboxResponseFromJSON, SuccessSandboxStatusResponseFromJSON, UpdateExposedPortsRequestToJSON, } from '../models/index.js';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
@@ -437,6 +437,79 @@ export class SandboxesApi extends runtime.BaseAPI {
|
|
|
437
437
|
const response = await this.apiV1SandboxesIdPausePostRaw(requestParameters, initOverrides);
|
|
438
438
|
return await response.value();
|
|
439
439
|
}
|
|
440
|
+
/**
|
|
441
|
+
* Get sandbox public gateway policy
|
|
442
|
+
*/
|
|
443
|
+
async apiV1SandboxesIdPublicGatewayGetRaw(requestParameters, initOverrides) {
|
|
444
|
+
if (requestParameters['id'] == null) {
|
|
445
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1SandboxesIdPublicGatewayGet().');
|
|
446
|
+
}
|
|
447
|
+
const queryParameters = {};
|
|
448
|
+
const headerParameters = {};
|
|
449
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
450
|
+
const token = this.configuration.accessToken;
|
|
451
|
+
const tokenString = await token("bearerAuth", []);
|
|
452
|
+
if (tokenString) {
|
|
453
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
let urlPath = `/api/v1/sandboxes/{id}/public-gateway`;
|
|
457
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
458
|
+
const response = await this.request({
|
|
459
|
+
path: urlPath,
|
|
460
|
+
method: 'GET',
|
|
461
|
+
headers: headerParameters,
|
|
462
|
+
query: queryParameters,
|
|
463
|
+
}, initOverrides);
|
|
464
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessPublicGatewayResponseFromJSON(jsonValue));
|
|
465
|
+
}
|
|
466
|
+
/**
|
|
467
|
+
* Get sandbox public gateway policy
|
|
468
|
+
*/
|
|
469
|
+
async apiV1SandboxesIdPublicGatewayGet(requestParameters, initOverrides) {
|
|
470
|
+
const response = await this.apiV1SandboxesIdPublicGatewayGetRaw(requestParameters, initOverrides);
|
|
471
|
+
return await response.value();
|
|
472
|
+
}
|
|
473
|
+
/**
|
|
474
|
+
* Replaces the request-level public gateway policy for sandbox public traffic. When enabled, matching routes control method, path, authentication, CORS, per-route rate limits, timeout, rewrite, and paused sandbox auto-resume.
|
|
475
|
+
* Update sandbox public gateway policy
|
|
476
|
+
*/
|
|
477
|
+
async apiV1SandboxesIdPublicGatewayPutRaw(requestParameters, initOverrides) {
|
|
478
|
+
if (requestParameters['id'] == null) {
|
|
479
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1SandboxesIdPublicGatewayPut().');
|
|
480
|
+
}
|
|
481
|
+
if (requestParameters['publicGatewayConfig'] == null) {
|
|
482
|
+
throw new runtime.RequiredError('publicGatewayConfig', 'Required parameter "publicGatewayConfig" was null or undefined when calling apiV1SandboxesIdPublicGatewayPut().');
|
|
483
|
+
}
|
|
484
|
+
const queryParameters = {};
|
|
485
|
+
const headerParameters = {};
|
|
486
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
487
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
488
|
+
const token = this.configuration.accessToken;
|
|
489
|
+
const tokenString = await token("bearerAuth", []);
|
|
490
|
+
if (tokenString) {
|
|
491
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
let urlPath = `/api/v1/sandboxes/{id}/public-gateway`;
|
|
495
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
496
|
+
const response = await this.request({
|
|
497
|
+
path: urlPath,
|
|
498
|
+
method: 'PUT',
|
|
499
|
+
headers: headerParameters,
|
|
500
|
+
query: queryParameters,
|
|
501
|
+
body: PublicGatewayConfigToJSON(requestParameters['publicGatewayConfig']),
|
|
502
|
+
}, initOverrides);
|
|
503
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessPublicGatewayResponseFromJSON(jsonValue));
|
|
504
|
+
}
|
|
505
|
+
/**
|
|
506
|
+
* Replaces the request-level public gateway policy for sandbox public traffic. When enabled, matching routes control method, path, authentication, CORS, per-route rate limits, timeout, rewrite, and paused sandbox auto-resume.
|
|
507
|
+
* Update sandbox public gateway policy
|
|
508
|
+
*/
|
|
509
|
+
async apiV1SandboxesIdPublicGatewayPut(requestParameters, initOverrides) {
|
|
510
|
+
const response = await this.apiV1SandboxesIdPublicGatewayPutRaw(requestParameters, initOverrides);
|
|
511
|
+
return await response.value();
|
|
512
|
+
}
|
|
440
513
|
/**
|
|
441
514
|
* Update sandbox configuration
|
|
442
515
|
*/
|
|
@@ -0,0 +1,60 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
/**
|
|
15
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const PublicGatewayAuthModeEnum = {
|
|
18
|
+
None: 'none',
|
|
19
|
+
Bearer: 'bearer',
|
|
20
|
+
Header: 'header'
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the PublicGatewayAuth interface.
|
|
24
|
+
*/
|
|
25
|
+
export function instanceOfPublicGatewayAuth(value) {
|
|
26
|
+
if (!('mode' in value) || value['mode'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
export function PublicGatewayAuthFromJSON(json) {
|
|
31
|
+
return PublicGatewayAuthFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
export function PublicGatewayAuthFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'mode': json['mode'],
|
|
39
|
+
'bearerTokenSha256': json['bearer_token_sha256'] == null ? undefined : json['bearer_token_sha256'],
|
|
40
|
+
'headerName': json['header_name'] == null ? undefined : json['header_name'],
|
|
41
|
+
'headerValueSha256': json['header_value_sha256'] == null ? undefined : json['header_value_sha256'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
export function PublicGatewayAuthToJSON(json) {
|
|
45
|
+
return PublicGatewayAuthToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
export function PublicGatewayAuthToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'mode': value['mode'],
|
|
53
|
+
'bearer_token_sha256': value['bearerTokenSha256'],
|
|
54
|
+
'header_name': value['headerName'],
|
|
55
|
+
'header_value_sha256': value['headerValueSha256'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,51 @@
|
|
|
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
|
+
/**
|
|
15
|
+
* Check if a given object implements the PublicGatewayCORS interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfPublicGatewayCORS(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function PublicGatewayCORSFromJSON(json) {
|
|
21
|
+
return PublicGatewayCORSFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function PublicGatewayCORSFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'allowedOrigins': json['allowed_origins'] == null ? undefined : json['allowed_origins'],
|
|
29
|
+
'allowedMethods': json['allowed_methods'] == null ? undefined : json['allowed_methods'],
|
|
30
|
+
'allowedHeaders': json['allowed_headers'] == null ? undefined : json['allowed_headers'],
|
|
31
|
+
'exposeHeaders': json['expose_headers'] == null ? undefined : json['expose_headers'],
|
|
32
|
+
'allowCredentials': json['allow_credentials'] == null ? undefined : json['allow_credentials'],
|
|
33
|
+
'maxAgeSeconds': json['max_age_seconds'] == null ? undefined : json['max_age_seconds'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function PublicGatewayCORSToJSON(json) {
|
|
37
|
+
return PublicGatewayCORSToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function PublicGatewayCORSToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'allowed_origins': value['allowedOrigins'],
|
|
45
|
+
'allowed_methods': value['allowedMethods'],
|
|
46
|
+
'allowed_headers': value['allowedHeaders'],
|
|
47
|
+
'expose_headers': value['exposeHeaders'],
|
|
48
|
+
'allow_credentials': value['allowCredentials'],
|
|
49
|
+
'max_age_seconds': value['maxAgeSeconds'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,46 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
/**
|
|
15
|
+
* Check if a given object implements the PublicGatewayRateLimit interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfPublicGatewayRateLimit(value) {
|
|
18
|
+
if (!('rps' in value) || value['rps'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('burst' in value) || value['burst'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function PublicGatewayRateLimitFromJSON(json) {
|
|
25
|
+
return PublicGatewayRateLimitFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function PublicGatewayRateLimitFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'rps': json['rps'],
|
|
33
|
+
'burst': json['burst'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function PublicGatewayRateLimitToJSON(json) {
|
|
37
|
+
return PublicGatewayRateLimitToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function PublicGatewayRateLimitToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'rps': value['rps'],
|
|
45
|
+
'burst': value['burst'],
|
|
46
|
+
};
|
|
47
|
+
}
|