sandbox0 0.9.5 → 0.9.7
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 +40 -1
- package/dist/apispec/src/apis/SandboxesApi.d.ts.map +1 -1
- package/dist/apispec/src/apis/SandboxesApi.js +120 -1
- package/dist/apispec/src/models/CreateContextRequest.d.ts +1 -1
- package/dist/apispec/src/models/CreateTeamRequest.d.ts +2 -2
- package/dist/apispec/src/models/RefreshResponse.d.ts +4 -4
- package/dist/apispec/src/models/RefreshResponse.d.ts.map +1 -1
- package/dist/apispec/src/models/RefreshResponse.js +4 -8
- package/dist/apispec/src/models/Sandbox.d.ts +4 -4
- package/dist/apispec/src/models/Sandbox.d.ts.map +1 -1
- package/dist/apispec/src/models/Sandbox.js +4 -8
- package/dist/apispec/src/models/SandboxConfig.d.ts +5 -2
- package/dist/apispec/src/models/SandboxConfig.d.ts.map +1 -1
- package/dist/apispec/src/models/SandboxPreviewCreateRequest.d.ts +59 -0
- package/dist/apispec/src/models/SandboxPreviewCreateRequest.d.ts.map +1 -0
- package/dist/apispec/src/models/SandboxPreviewCreateRequest.js +56 -0
- package/dist/apispec/src/models/SandboxPreviewGrant.d.ts +83 -0
- package/dist/apispec/src/models/SandboxPreviewGrant.d.ts.map +1 -0
- package/dist/apispec/src/models/SandboxPreviewGrant.js +78 -0
- package/dist/apispec/src/models/SandboxPreviewRenewRequest.d.ts +33 -0
- package/dist/apispec/src/models/SandboxPreviewRenewRequest.d.ts.map +1 -0
- package/dist/apispec/src/models/SandboxPreviewRenewRequest.js +41 -0
- package/dist/apispec/src/models/SandboxStatus.d.ts +4 -4
- package/dist/apispec/src/models/SandboxStatus.d.ts.map +1 -1
- package/dist/apispec/src/models/SandboxStatus.js +4 -4
- package/dist/apispec/src/models/SandboxSummary.d.ts +4 -4
- package/dist/apispec/src/models/SandboxSummary.d.ts.map +1 -1
- package/dist/apispec/src/models/SandboxSummary.js +4 -8
- package/dist/apispec/src/models/SandboxUpdateConfig.d.ts +5 -2
- package/dist/apispec/src/models/SandboxUpdateConfig.d.ts.map +1 -1
- package/dist/apispec/src/models/SuccessSandboxPreviewResponse.d.ts +40 -0
- package/dist/apispec/src/models/SuccessSandboxPreviewResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessSandboxPreviewResponse.js +46 -0
- package/dist/apispec/src/models/Team.d.ts +2 -2
- package/dist/apispec/src/models/UpdateTeamRequest.d.ts +2 -2
- package/dist/apispec/src/models/index.d.ts +4 -0
- package/dist/apispec/src/models/index.d.ts.map +1 -1
- package/dist/apispec/src/models/index.js +4 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/sandbox_previews.d.ts +9 -0
- package/dist/sandbox_previews.d.ts.map +1 -0
- package/dist/sandbox_previews.js +30 -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, SandboxLifecycleStatus, SandboxNetworkPolicy, SandboxRefreshRequest, SandboxServicesUpdateRequest, SandboxUpdateRequest, SuccessClaimResponse, SuccessMessageResponse, SuccessPauseSandboxResponse, SuccessRefreshResponse, SuccessResumeSandboxResponse, SuccessSandboxListResponse, SuccessSandboxNetworkPolicyResponse, SuccessSandboxResponse, SuccessSandboxServicesResponse, SuccessSandboxStatusResponse } from '../models/index.js';
|
|
13
|
+
import type { ClaimRequest, SandboxLifecycleStatus, SandboxNetworkPolicy, SandboxPreviewCreateRequest, SandboxPreviewRenewRequest, SandboxRefreshRequest, SandboxServicesUpdateRequest, SandboxUpdateRequest, SuccessClaimResponse, SuccessMessageResponse, SuccessPauseSandboxResponse, SuccessRefreshResponse, SuccessResumeSandboxResponse, SuccessSandboxListResponse, SuccessSandboxNetworkPolicyResponse, SuccessSandboxPreviewResponse, SuccessSandboxResponse, SuccessSandboxServicesResponse, SuccessSandboxStatusResponse } from '../models/index.js';
|
|
14
14
|
export interface ApiV1SandboxesGetRequest {
|
|
15
15
|
status?: SandboxLifecycleStatus;
|
|
16
16
|
templateId?: string;
|
|
@@ -34,6 +34,19 @@ export interface ApiV1SandboxesIdNetworkPutRequest {
|
|
|
34
34
|
export interface ApiV1SandboxesIdPausePostRequest {
|
|
35
35
|
id: string;
|
|
36
36
|
}
|
|
37
|
+
export interface ApiV1SandboxesIdPreviewsPostRequest {
|
|
38
|
+
id: string;
|
|
39
|
+
sandboxPreviewCreateRequest: SandboxPreviewCreateRequest;
|
|
40
|
+
}
|
|
41
|
+
export interface ApiV1SandboxesIdPreviewsPreviewIdDeleteRequest {
|
|
42
|
+
id: string;
|
|
43
|
+
previewId: string;
|
|
44
|
+
}
|
|
45
|
+
export interface ApiV1SandboxesIdPreviewsPreviewIdPutRequest {
|
|
46
|
+
id: string;
|
|
47
|
+
previewId: string;
|
|
48
|
+
sandboxPreviewRenewRequest: SandboxPreviewRenewRequest;
|
|
49
|
+
}
|
|
37
50
|
export interface ApiV1SandboxesIdPutRequest {
|
|
38
51
|
id: string;
|
|
39
52
|
sandboxUpdateRequest: SandboxUpdateRequest;
|
|
@@ -112,6 +125,32 @@ export declare class SandboxesApi extends runtime.BaseAPI {
|
|
|
112
125
|
* Pause a sandbox
|
|
113
126
|
*/
|
|
114
127
|
apiV1SandboxesIdPausePost(requestParameters: ApiV1SandboxesIdPausePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessPauseSandboxResponse>;
|
|
128
|
+
/**
|
|
129
|
+
* Creates a short-lived, sandbox-runtime-bound authorization for previewing a loopback HTTP server through the region public exposure domain. The returned URL performs a one-time browser bootstrap and then redirects to a clean same-origin URL. This does not publish or modify sandbox services.
|
|
130
|
+
* Create a private sandbox preview grant
|
|
131
|
+
*/
|
|
132
|
+
apiV1SandboxesIdPreviewsPostRaw(requestParameters: ApiV1SandboxesIdPreviewsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessSandboxPreviewResponse>>;
|
|
133
|
+
/**
|
|
134
|
+
* Creates a short-lived, sandbox-runtime-bound authorization for previewing a loopback HTTP server through the region public exposure domain. The returned URL performs a one-time browser bootstrap and then redirects to a clean same-origin URL. This does not publish or modify sandbox services.
|
|
135
|
+
* Create a private sandbox preview grant
|
|
136
|
+
*/
|
|
137
|
+
apiV1SandboxesIdPreviewsPost(requestParameters: ApiV1SandboxesIdPreviewsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessSandboxPreviewResponse>;
|
|
138
|
+
/**
|
|
139
|
+
* Revoke a private sandbox preview grant
|
|
140
|
+
*/
|
|
141
|
+
apiV1SandboxesIdPreviewsPreviewIdDeleteRaw(requestParameters: ApiV1SandboxesIdPreviewsPreviewIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessMessageResponse>>;
|
|
142
|
+
/**
|
|
143
|
+
* Revoke a private sandbox preview grant
|
|
144
|
+
*/
|
|
145
|
+
apiV1SandboxesIdPreviewsPreviewIdDelete(requestParameters: ApiV1SandboxesIdPreviewsPreviewIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessMessageResponse>;
|
|
146
|
+
/**
|
|
147
|
+
* Renew a private sandbox preview grant
|
|
148
|
+
*/
|
|
149
|
+
apiV1SandboxesIdPreviewsPreviewIdPutRaw(requestParameters: ApiV1SandboxesIdPreviewsPreviewIdPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessSandboxPreviewResponse>>;
|
|
150
|
+
/**
|
|
151
|
+
* Renew a private sandbox preview grant
|
|
152
|
+
*/
|
|
153
|
+
apiV1SandboxesIdPreviewsPreviewIdPut(requestParameters: ApiV1SandboxesIdPreviewsPreviewIdPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessSandboxPreviewResponse>;
|
|
115
154
|
/**
|
|
116
155
|
* Update sandbox configuration
|
|
117
156
|
*/
|
|
@@ -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,sBAAsB,EACtB,oBAAoB,EACpB,qBAAqB,EACrB,4BAA4B,EAC5B,oBAAoB,EACpB,oBAAoB,EACpB,sBAAsB,EACtB,2BAA2B,EAC3B,sBAAsB,EACtB,4BAA4B,EAC5B,0BAA0B,EAC1B,mCAAmC,EACnC,sBAAsB,EACtB,8BAA8B,EAC9B,4BAA4B,EAC7B,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,KAAK,EACV,YAAY,EAEZ,sBAAsB,EACtB,oBAAoB,EACpB,2BAA2B,EAC3B,0BAA0B,EAC1B,qBAAqB,EACrB,4BAA4B,EAC5B,oBAAoB,EACpB,oBAAoB,EACpB,sBAAsB,EACtB,2BAA2B,EAC3B,sBAAsB,EACtB,4BAA4B,EAC5B,0BAA0B,EAC1B,mCAAmC,EACnC,6BAA6B,EAC7B,sBAAsB,EACtB,8BAA8B,EAC9B,4BAA4B,EAC7B,MAAM,iBAAiB,CAAC;AA4CzB,MAAM,WAAW,wBAAwB;IACrC,MAAM,CAAC,EAAE,sBAAsB,CAAC;IAChC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CA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,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"}
|
|
@@ -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, SandboxServicesUpdateRequestToJSON, SandboxUpdateRequestToJSON, SuccessClaimResponseFromJSON, SuccessMessageResponseFromJSON, SuccessPauseSandboxResponseFromJSON, SuccessRefreshResponseFromJSON, SuccessResumeSandboxResponseFromJSON, SuccessSandboxListResponseFromJSON, SuccessSandboxNetworkPolicyResponseFromJSON, SuccessSandboxResponseFromJSON, SuccessSandboxServicesResponseFromJSON, SuccessSandboxStatusResponseFromJSON, } from '../models/index.js';
|
|
15
|
+
import { ClaimRequestToJSON, SandboxNetworkPolicyToJSON, SandboxPreviewCreateRequestToJSON, SandboxPreviewRenewRequestToJSON, SandboxRefreshRequestToJSON, SandboxServicesUpdateRequestToJSON, SandboxUpdateRequestToJSON, SuccessClaimResponseFromJSON, SuccessMessageResponseFromJSON, SuccessPauseSandboxResponseFromJSON, SuccessRefreshResponseFromJSON, SuccessResumeSandboxResponseFromJSON, SuccessSandboxListResponseFromJSON, SuccessSandboxNetworkPolicyResponseFromJSON, SuccessSandboxPreviewResponseFromJSON, SuccessSandboxResponseFromJSON, SuccessSandboxServicesResponseFromJSON, SuccessSandboxStatusResponseFromJSON, } from '../models/index.js';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
@@ -233,6 +233,125 @@ export class SandboxesApi extends runtime.BaseAPI {
|
|
|
233
233
|
const response = await this.apiV1SandboxesIdPausePostRaw(requestParameters, initOverrides);
|
|
234
234
|
return await response.value();
|
|
235
235
|
}
|
|
236
|
+
/**
|
|
237
|
+
* Creates a short-lived, sandbox-runtime-bound authorization for previewing a loopback HTTP server through the region public exposure domain. The returned URL performs a one-time browser bootstrap and then redirects to a clean same-origin URL. This does not publish or modify sandbox services.
|
|
238
|
+
* Create a private sandbox preview grant
|
|
239
|
+
*/
|
|
240
|
+
async apiV1SandboxesIdPreviewsPostRaw(requestParameters, initOverrides) {
|
|
241
|
+
if (requestParameters['id'] == null) {
|
|
242
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1SandboxesIdPreviewsPost().');
|
|
243
|
+
}
|
|
244
|
+
if (requestParameters['sandboxPreviewCreateRequest'] == null) {
|
|
245
|
+
throw new runtime.RequiredError('sandboxPreviewCreateRequest', 'Required parameter "sandboxPreviewCreateRequest" was null or undefined when calling apiV1SandboxesIdPreviewsPost().');
|
|
246
|
+
}
|
|
247
|
+
const queryParameters = {};
|
|
248
|
+
const headerParameters = {};
|
|
249
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
250
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
251
|
+
const token = this.configuration.accessToken;
|
|
252
|
+
const tokenString = await token("bearerAuth", []);
|
|
253
|
+
if (tokenString) {
|
|
254
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
let urlPath = `/api/v1/sandboxes/{id}/previews`;
|
|
258
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
259
|
+
const response = await this.request({
|
|
260
|
+
path: urlPath,
|
|
261
|
+
method: 'POST',
|
|
262
|
+
headers: headerParameters,
|
|
263
|
+
query: queryParameters,
|
|
264
|
+
body: SandboxPreviewCreateRequestToJSON(requestParameters['sandboxPreviewCreateRequest']),
|
|
265
|
+
}, initOverrides);
|
|
266
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessSandboxPreviewResponseFromJSON(jsonValue));
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* Creates a short-lived, sandbox-runtime-bound authorization for previewing a loopback HTTP server through the region public exposure domain. The returned URL performs a one-time browser bootstrap and then redirects to a clean same-origin URL. This does not publish or modify sandbox services.
|
|
270
|
+
* Create a private sandbox preview grant
|
|
271
|
+
*/
|
|
272
|
+
async apiV1SandboxesIdPreviewsPost(requestParameters, initOverrides) {
|
|
273
|
+
const response = await this.apiV1SandboxesIdPreviewsPostRaw(requestParameters, initOverrides);
|
|
274
|
+
return await response.value();
|
|
275
|
+
}
|
|
276
|
+
/**
|
|
277
|
+
* Revoke a private sandbox preview grant
|
|
278
|
+
*/
|
|
279
|
+
async apiV1SandboxesIdPreviewsPreviewIdDeleteRaw(requestParameters, initOverrides) {
|
|
280
|
+
if (requestParameters['id'] == null) {
|
|
281
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1SandboxesIdPreviewsPreviewIdDelete().');
|
|
282
|
+
}
|
|
283
|
+
if (requestParameters['previewId'] == null) {
|
|
284
|
+
throw new runtime.RequiredError('previewId', 'Required parameter "previewId" was null or undefined when calling apiV1SandboxesIdPreviewsPreviewIdDelete().');
|
|
285
|
+
}
|
|
286
|
+
const queryParameters = {};
|
|
287
|
+
const headerParameters = {};
|
|
288
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
289
|
+
const token = this.configuration.accessToken;
|
|
290
|
+
const tokenString = await token("bearerAuth", []);
|
|
291
|
+
if (tokenString) {
|
|
292
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
let urlPath = `/api/v1/sandboxes/{id}/previews/{preview_id}`;
|
|
296
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
297
|
+
urlPath = urlPath.replace(`{${"preview_id"}}`, encodeURIComponent(String(requestParameters['previewId'])));
|
|
298
|
+
const response = await this.request({
|
|
299
|
+
path: urlPath,
|
|
300
|
+
method: 'DELETE',
|
|
301
|
+
headers: headerParameters,
|
|
302
|
+
query: queryParameters,
|
|
303
|
+
}, initOverrides);
|
|
304
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessMessageResponseFromJSON(jsonValue));
|
|
305
|
+
}
|
|
306
|
+
/**
|
|
307
|
+
* Revoke a private sandbox preview grant
|
|
308
|
+
*/
|
|
309
|
+
async apiV1SandboxesIdPreviewsPreviewIdDelete(requestParameters, initOverrides) {
|
|
310
|
+
const response = await this.apiV1SandboxesIdPreviewsPreviewIdDeleteRaw(requestParameters, initOverrides);
|
|
311
|
+
return await response.value();
|
|
312
|
+
}
|
|
313
|
+
/**
|
|
314
|
+
* Renew a private sandbox preview grant
|
|
315
|
+
*/
|
|
316
|
+
async apiV1SandboxesIdPreviewsPreviewIdPutRaw(requestParameters, initOverrides) {
|
|
317
|
+
if (requestParameters['id'] == null) {
|
|
318
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1SandboxesIdPreviewsPreviewIdPut().');
|
|
319
|
+
}
|
|
320
|
+
if (requestParameters['previewId'] == null) {
|
|
321
|
+
throw new runtime.RequiredError('previewId', 'Required parameter "previewId" was null or undefined when calling apiV1SandboxesIdPreviewsPreviewIdPut().');
|
|
322
|
+
}
|
|
323
|
+
if (requestParameters['sandboxPreviewRenewRequest'] == null) {
|
|
324
|
+
throw new runtime.RequiredError('sandboxPreviewRenewRequest', 'Required parameter "sandboxPreviewRenewRequest" was null or undefined when calling apiV1SandboxesIdPreviewsPreviewIdPut().');
|
|
325
|
+
}
|
|
326
|
+
const queryParameters = {};
|
|
327
|
+
const headerParameters = {};
|
|
328
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
329
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
330
|
+
const token = this.configuration.accessToken;
|
|
331
|
+
const tokenString = await token("bearerAuth", []);
|
|
332
|
+
if (tokenString) {
|
|
333
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
let urlPath = `/api/v1/sandboxes/{id}/previews/{preview_id}`;
|
|
337
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
338
|
+
urlPath = urlPath.replace(`{${"preview_id"}}`, encodeURIComponent(String(requestParameters['previewId'])));
|
|
339
|
+
const response = await this.request({
|
|
340
|
+
path: urlPath,
|
|
341
|
+
method: 'PUT',
|
|
342
|
+
headers: headerParameters,
|
|
343
|
+
query: queryParameters,
|
|
344
|
+
body: SandboxPreviewRenewRequestToJSON(requestParameters['sandboxPreviewRenewRequest']),
|
|
345
|
+
}, initOverrides);
|
|
346
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessSandboxPreviewResponseFromJSON(jsonValue));
|
|
347
|
+
}
|
|
348
|
+
/**
|
|
349
|
+
* Renew a private sandbox preview grant
|
|
350
|
+
*/
|
|
351
|
+
async apiV1SandboxesIdPreviewsPreviewIdPut(requestParameters, initOverrides) {
|
|
352
|
+
const response = await this.apiV1SandboxesIdPreviewsPreviewIdPutRaw(requestParameters, initOverrides);
|
|
353
|
+
return await response.value();
|
|
354
|
+
}
|
|
236
355
|
/**
|
|
237
356
|
* Update sandbox configuration
|
|
238
357
|
*/
|
|
@@ -38,7 +38,7 @@ export interface CreateContextRequest {
|
|
|
38
38
|
*/
|
|
39
39
|
cmd?: CreateCMDContextRequest;
|
|
40
40
|
/**
|
|
41
|
-
*
|
|
41
|
+
* Wait for the context process to finish before returning. For long-running commands, prefer an asynchronous context with a bounded ttl_sec and follow it through the context WebSocket and GET APIs. Use a supervised session when reconnectable, replayable, or restartable execution is required.
|
|
42
42
|
* @type {boolean}
|
|
43
43
|
* @memberof CreateContextRequest
|
|
44
44
|
*/
|
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface CreateTeamRequest {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Display name. Team names are not unique.
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof CreateTeamRequest
|
|
22
22
|
*/
|
|
23
23
|
name: string;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Human-readable alias. Team slugs are not unique.
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof CreateTeamRequest
|
|
28
28
|
*/
|
|
@@ -22,17 +22,17 @@ export interface RefreshResponse {
|
|
|
22
22
|
*/
|
|
23
23
|
sandboxId: string;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Soft expiration timestamp. Omitted or null means disabled or not set.
|
|
26
26
|
* @type {Date}
|
|
27
27
|
* @memberof RefreshResponse
|
|
28
28
|
*/
|
|
29
|
-
expiresAt
|
|
29
|
+
expiresAt?: Date | null;
|
|
30
30
|
/**
|
|
31
|
-
* Hard expiration timestamp.
|
|
31
|
+
* Hard expiration timestamp. Omitted or null means disabled or not set.
|
|
32
32
|
* @type {Date}
|
|
33
33
|
* @memberof RefreshResponse
|
|
34
34
|
*/
|
|
35
|
-
hardExpiresAt
|
|
35
|
+
hardExpiresAt?: Date | null;
|
|
36
36
|
}
|
|
37
37
|
/**
|
|
38
38
|
* Check if a given object implements the RefreshResponse interface.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RefreshResponse.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/RefreshResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC5B;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,SAAS,EAAE,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"RefreshResponse.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/RefreshResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC5B;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB;;;;OAIG;IACH,aAAa,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;CAC/B;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,eAAe,CAGjF;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,eAAe,CAElE;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,eAAe,CAUrG;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,eAAe,CAEhE;AAED,wBAAgB,0BAA0B,CAAC,KAAK,CAAC,EAAE,eAAe,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAWpH"}
|
|
@@ -17,10 +17,6 @@
|
|
|
17
17
|
export function instanceOfRefreshResponse(value) {
|
|
18
18
|
if (!('sandboxId' in value) || value['sandboxId'] === undefined)
|
|
19
19
|
return false;
|
|
20
|
-
if (!('expiresAt' in value) || value['expiresAt'] === undefined)
|
|
21
|
-
return false;
|
|
22
|
-
if (!('hardExpiresAt' in value) || value['hardExpiresAt'] === undefined)
|
|
23
|
-
return false;
|
|
24
20
|
return true;
|
|
25
21
|
}
|
|
26
22
|
export function RefreshResponseFromJSON(json) {
|
|
@@ -32,8 +28,8 @@ export function RefreshResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
28
|
}
|
|
33
29
|
return {
|
|
34
30
|
'sandboxId': json['sandbox_id'],
|
|
35
|
-
'expiresAt': (new Date(json['expires_at'])),
|
|
36
|
-
'hardExpiresAt': (new Date(json['hard_expires_at'])),
|
|
31
|
+
'expiresAt': json['expires_at'] == null ? undefined : (new Date(json['expires_at'])),
|
|
32
|
+
'hardExpiresAt': json['hard_expires_at'] == null ? undefined : (new Date(json['hard_expires_at'])),
|
|
37
33
|
};
|
|
38
34
|
}
|
|
39
35
|
export function RefreshResponseToJSON(json) {
|
|
@@ -45,7 +41,7 @@ export function RefreshResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
45
41
|
}
|
|
46
42
|
return {
|
|
47
43
|
'sandbox_id': value['sandboxId'],
|
|
48
|
-
'expires_at': value['expiresAt'].toISOString(),
|
|
49
|
-
'hard_expires_at': value['hardExpiresAt'].toISOString(),
|
|
44
|
+
'expires_at': value['expiresAt'] == null ? value['expiresAt'] : value['expiresAt'].toISOString(),
|
|
45
|
+
'hard_expires_at': value['hardExpiresAt'] == null ? value['hardExpiresAt'] : value['hardExpiresAt'].toISOString(),
|
|
50
46
|
};
|
|
51
47
|
}
|
|
@@ -99,17 +99,17 @@ export interface Sandbox {
|
|
|
99
99
|
*/
|
|
100
100
|
ssh?: SandboxSSHConnection;
|
|
101
101
|
/**
|
|
102
|
-
* Soft expiration timestamp.
|
|
102
|
+
* Soft expiration timestamp. Omitted or null means disabled or not set.
|
|
103
103
|
* @type {Date}
|
|
104
104
|
* @memberof Sandbox
|
|
105
105
|
*/
|
|
106
|
-
expiresAt
|
|
106
|
+
expiresAt?: Date | null;
|
|
107
107
|
/**
|
|
108
|
-
* Hard expiration timestamp.
|
|
108
|
+
* Hard expiration timestamp. Omitted or null means disabled or not set.
|
|
109
109
|
* @type {Date}
|
|
110
110
|
* @memberof Sandbox
|
|
111
111
|
*/
|
|
112
|
-
hardExpiresAt
|
|
112
|
+
hardExpiresAt?: Date | null;
|
|
113
113
|
/**
|
|
114
114
|
*
|
|
115
115
|
* @type {Date}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sandbox.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/Sandbox.ts"],"names":[],"mappings":"A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;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,OAAO,CAajE;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,GAAG,GAAG,OAAO,CAElD;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,OAAO,CAyBrF;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,GAAG,GAAG,OAAO,CAEhD;AAED,wBAAgB,kBAAkB,CAAC,KAAK,CAAC,EAAE,OAAO,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CA0BpG"}
|
|
@@ -36,10 +36,6 @@ export function instanceOfSandbox(value) {
|
|
|
36
36
|
return false;
|
|
37
37
|
if (!('runtimeGeneration' in value) || value['runtimeGeneration'] === undefined)
|
|
38
38
|
return false;
|
|
39
|
-
if (!('expiresAt' in value) || value['expiresAt'] === undefined)
|
|
40
|
-
return false;
|
|
41
|
-
if (!('hardExpiresAt' in value) || value['hardExpiresAt'] === undefined)
|
|
42
|
-
return false;
|
|
43
39
|
if (!('claimedAt' in value) || value['claimedAt'] === undefined)
|
|
44
40
|
return false;
|
|
45
41
|
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
@@ -69,8 +65,8 @@ export function SandboxFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
69
65
|
'podName': json['pod_name'],
|
|
70
66
|
'runtimeGeneration': json['runtime_generation'],
|
|
71
67
|
'ssh': json['ssh'] == null ? undefined : SandboxSSHConnectionFromJSON(json['ssh']),
|
|
72
|
-
'expiresAt': (new Date(json['expires_at'])),
|
|
73
|
-
'hardExpiresAt': (new Date(json['hard_expires_at'])),
|
|
68
|
+
'expiresAt': json['expires_at'] == null ? undefined : (new Date(json['expires_at'])),
|
|
69
|
+
'hardExpiresAt': json['hard_expires_at'] == null ? undefined : (new Date(json['hard_expires_at'])),
|
|
74
70
|
'claimedAt': (new Date(json['claimed_at'])),
|
|
75
71
|
'createdAt': (new Date(json['created_at'])),
|
|
76
72
|
'updatedAt': (new Date(json['updated_at'])),
|
|
@@ -97,8 +93,8 @@ export function SandboxToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
97
93
|
'pod_name': value['podName'],
|
|
98
94
|
'runtime_generation': value['runtimeGeneration'],
|
|
99
95
|
'ssh': SandboxSSHConnectionToJSON(value['ssh']),
|
|
100
|
-
'expires_at': value['expiresAt'].toISOString(),
|
|
101
|
-
'hard_expires_at': value['hardExpiresAt'].toISOString(),
|
|
96
|
+
'expires_at': value['expiresAt'] == null ? value['expiresAt'] : value['expiresAt'].toISOString(),
|
|
97
|
+
'hard_expires_at': value['hardExpiresAt'] == null ? value['hardExpiresAt'] : value['hardExpiresAt'].toISOString(),
|
|
102
98
|
'claimed_at': value['claimedAt'].toISOString(),
|
|
103
99
|
'created_at': value['createdAt'].toISOString(),
|
|
104
100
|
'updated_at': value['updatedAt'].toISOString(),
|
|
@@ -58,8 +58,11 @@ export interface SandboxConfig {
|
|
|
58
58
|
*/
|
|
59
59
|
webhook?: WebhookConfig;
|
|
60
60
|
/**
|
|
61
|
-
*
|
|
62
|
-
*
|
|
61
|
+
* Controls whether supported inbound API or public exposure requests may automatically
|
|
62
|
+
* make an inactive sandbox available. This setting does not control platform-initiated
|
|
63
|
+
* runtime fault recovery. A supported access request returns `503 unavailable` with
|
|
64
|
+
* `sandbox is waking up` when an accepted resume has not committed yet. It returns
|
|
65
|
+
* `503 sandbox_resume_failed` when that resume attempt has ended unsuccessfully.
|
|
63
66
|
*
|
|
64
67
|
* @type {boolean}
|
|
65
68
|
* @memberof SandboxConfig
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SandboxConfig.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SandboxConfig.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAO7D,OAAO,KA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;IACH,OAAO,CAAC,EAAE,oBAAoB,CAAC;IAC/B;;;;OAIG;IACH,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB;;;;;;;;;OASG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC;CACvC;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,aAAa,CAE7E;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE9D;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,aAAa,CAejG;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE5D;AAED,wBAAgB,wBAAwB,CAAC,KAAK,CAAC,EAAE,aAAa,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAgBhH"}
|
|
@@ -0,0 +1,59 @@
|
|
|
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 SandboxPreviewCreateRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface SandboxPreviewCreateRequest {
|
|
18
|
+
/**
|
|
19
|
+
* Loopback TCP port inside the sandbox runtime.
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof SandboxPreviewCreateRequest
|
|
22
|
+
*/
|
|
23
|
+
port: number;
|
|
24
|
+
/**
|
|
25
|
+
* Protocol spoken by the loopback server. HTTPS permits a self-signed loopback certificate.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SandboxPreviewCreateRequest
|
|
28
|
+
*/
|
|
29
|
+
protocol?: SandboxPreviewCreateRequestProtocolEnum;
|
|
30
|
+
/**
|
|
31
|
+
* Same-origin absolute path, including an optional query or fragment, opened after browser bootstrap.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SandboxPreviewCreateRequest
|
|
34
|
+
*/
|
|
35
|
+
path?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof SandboxPreviewCreateRequest
|
|
40
|
+
*/
|
|
41
|
+
ttlSeconds?: number;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export declare const SandboxPreviewCreateRequestProtocolEnum: {
|
|
47
|
+
readonly Http: "http";
|
|
48
|
+
readonly Https: "https";
|
|
49
|
+
};
|
|
50
|
+
export type SandboxPreviewCreateRequestProtocolEnum = typeof SandboxPreviewCreateRequestProtocolEnum[keyof typeof SandboxPreviewCreateRequestProtocolEnum];
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the SandboxPreviewCreateRequest interface.
|
|
53
|
+
*/
|
|
54
|
+
export declare function instanceOfSandboxPreviewCreateRequest(value: object): value is SandboxPreviewCreateRequest;
|
|
55
|
+
export declare function SandboxPreviewCreateRequestFromJSON(json: any): SandboxPreviewCreateRequest;
|
|
56
|
+
export declare function SandboxPreviewCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SandboxPreviewCreateRequest;
|
|
57
|
+
export declare function SandboxPreviewCreateRequestToJSON(json: any): SandboxPreviewCreateRequest;
|
|
58
|
+
export declare function SandboxPreviewCreateRequestToJSONTyped(value?: SandboxPreviewCreateRequest | null, ignoreDiscriminator?: boolean): any;
|
|
59
|
+
//# sourceMappingURL=SandboxPreviewCreateRequest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SandboxPreviewCreateRequest.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SandboxPreviewCreateRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,2BAA2B;IACxC;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,QAAQ,CAAC,EAAE,uCAAuC,CAAC;IACnD;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAGD;;GAEG;AACH,eAAO,MAAM,uCAAuC;;;CAG1C,CAAC;AACX,MAAM,MAAM,uCAAuC,GAAG,OAAO,uCAAuC,CAAC,MAAM,OAAO,uCAAuC,CAAC,CAAC;AAG3J;;GAEG;AACH,wBAAgB,qCAAqC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,2BAA2B,CAGzG;AAED,wBAAgB,mCAAmC,CAAC,IAAI,EAAE,GAAG,GAAG,2BAA2B,CAE1F;AAED,wBAAgB,wCAAwC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,2BAA2B,CAW7H;AAED,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,GAAG,GAAG,2BAA2B,CAExF;AAED,wBAAgB,sCAAsC,CAAC,KAAK,CAAC,EAAE,2BAA2B,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAY5I"}
|
|
@@ -0,0 +1,56 @@
|
|
|
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 SandboxPreviewCreateRequestProtocolEnum = {
|
|
18
|
+
Http: 'http',
|
|
19
|
+
Https: 'https'
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the SandboxPreviewCreateRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
export function instanceOfSandboxPreviewCreateRequest(value) {
|
|
25
|
+
if (!('port' in value) || value['port'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
export function SandboxPreviewCreateRequestFromJSON(json) {
|
|
30
|
+
return SandboxPreviewCreateRequestFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
export function SandboxPreviewCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'port': json['port'],
|
|
38
|
+
'protocol': json['protocol'] == null ? undefined : json['protocol'],
|
|
39
|
+
'path': json['path'] == null ? undefined : json['path'],
|
|
40
|
+
'ttlSeconds': json['ttl_seconds'] == null ? undefined : json['ttl_seconds'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
export function SandboxPreviewCreateRequestToJSON(json) {
|
|
44
|
+
return SandboxPreviewCreateRequestToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
export function SandboxPreviewCreateRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'port': value['port'],
|
|
52
|
+
'protocol': value['protocol'],
|
|
53
|
+
'path': value['path'],
|
|
54
|
+
'ttl_seconds': value['ttlSeconds'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
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 SandboxPreviewGrant
|
|
16
|
+
*/
|
|
17
|
+
export interface SandboxPreviewGrant {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SandboxPreviewGrant
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SandboxPreviewGrant
|
|
28
|
+
*/
|
|
29
|
+
sandboxId: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof SandboxPreviewGrant
|
|
34
|
+
*/
|
|
35
|
+
port: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof SandboxPreviewGrant
|
|
40
|
+
*/
|
|
41
|
+
protocol: SandboxPreviewGrantProtocolEnum;
|
|
42
|
+
/**
|
|
43
|
+
* One-time browser bootstrap URL for a newly created grant; a clean target URL for a renewal response. The resulting browser cookie is session-scoped while this server-side grant remains authoritative for expiration.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof SandboxPreviewGrant
|
|
46
|
+
*/
|
|
47
|
+
url: string;
|
|
48
|
+
/**
|
|
49
|
+
* Clean preview origin and path without credentials.
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof SandboxPreviewGrant
|
|
52
|
+
*/
|
|
53
|
+
targetUrl: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {Date}
|
|
57
|
+
* @memberof SandboxPreviewGrant
|
|
58
|
+
*/
|
|
59
|
+
expiresAt: Date;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof SandboxPreviewGrant
|
|
64
|
+
*/
|
|
65
|
+
runtimeGeneration: number;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* @export
|
|
69
|
+
*/
|
|
70
|
+
export declare const SandboxPreviewGrantProtocolEnum: {
|
|
71
|
+
readonly Http: "http";
|
|
72
|
+
readonly Https: "https";
|
|
73
|
+
};
|
|
74
|
+
export type SandboxPreviewGrantProtocolEnum = typeof SandboxPreviewGrantProtocolEnum[keyof typeof SandboxPreviewGrantProtocolEnum];
|
|
75
|
+
/**
|
|
76
|
+
* Check if a given object implements the SandboxPreviewGrant interface.
|
|
77
|
+
*/
|
|
78
|
+
export declare function instanceOfSandboxPreviewGrant(value: object): value is SandboxPreviewGrant;
|
|
79
|
+
export declare function SandboxPreviewGrantFromJSON(json: any): SandboxPreviewGrant;
|
|
80
|
+
export declare function SandboxPreviewGrantFromJSONTyped(json: any, ignoreDiscriminator: boolean): SandboxPreviewGrant;
|
|
81
|
+
export declare function SandboxPreviewGrantToJSON(json: any): SandboxPreviewGrant;
|
|
82
|
+
export declare function SandboxPreviewGrantToJSONTyped(value?: SandboxPreviewGrant | null, ignoreDiscriminator?: boolean): any;
|
|
83
|
+
//# sourceMappingURL=SandboxPreviewGrant.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SandboxPreviewGrant.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SandboxPreviewGrant.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,QAAQ,EAAE,+BAA+B,CAAC;IAC1C;;;;OAIG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;;;OAIG;IACH,iBAAiB,EAAE,MAAM,CAAC;CAC7B;AAGD;;GAEG;AACH,eAAO,MAAM,+BAA+B;;;CAGlC,CAAC;AACX,MAAM,MAAM,+BAA+B,GAAG,OAAO,+BAA+B,CAAC,MAAM,OAAO,+BAA+B,CAAC,CAAC;AAGnI;;GAEG;AACH,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,mBAAmB,CAUzF;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAE1E;AAED,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,mBAAmB,CAe7G;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,CAgB5H"}
|