sandbox0 0.5.4 → 0.6.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/README.md +0 -1
- package/dist/apispec/src/models/AppArmorProfile.d.ts +48 -0
- package/dist/apispec/src/models/AppArmorProfile.d.ts.map +1 -0
- package/dist/apispec/src/models/AppArmorProfile.js +53 -0
- package/dist/apispec/src/models/Capabilities.d.ts +6 -0
- package/dist/apispec/src/models/Capabilities.d.ts.map +1 -1
- package/dist/apispec/src/models/Capabilities.js +2 -0
- package/dist/apispec/src/models/EmptyDirMountSpec.d.ts +39 -0
- package/dist/apispec/src/models/EmptyDirMountSpec.d.ts.map +1 -0
- package/dist/apispec/src/models/EmptyDirMountSpec.js +45 -0
- package/dist/apispec/src/models/HTTPMethodPolicy.d.ts +39 -0
- package/dist/apispec/src/models/HTTPMethodPolicy.d.ts.map +1 -0
- package/dist/apispec/src/models/HTTPMethodPolicy.js +43 -0
- package/dist/apispec/src/models/HTTPPathPolicy.d.ts +51 -0
- package/dist/apispec/src/models/HTTPPathPolicy.d.ts.map +1 -0
- package/dist/apispec/src/models/HTTPPathPolicy.js +47 -0
- package/dist/apispec/src/models/HTTPProtocolRule.d.ts +41 -0
- package/dist/apispec/src/models/HTTPProtocolRule.d.ts.map +1 -0
- package/dist/apispec/src/models/HTTPProtocolRule.js +45 -0
- package/dist/apispec/src/models/PauseSandboxResponse.d.ts +0 -7
- package/dist/apispec/src/models/PauseSandboxResponse.d.ts.map +1 -1
- package/dist/apispec/src/models/PauseSandboxResponse.js +0 -5
- package/dist/apispec/src/models/PodSpecOverride.d.ts +7 -0
- package/dist/apispec/src/models/PodSpecOverride.d.ts.map +1 -1
- package/dist/apispec/src/models/PodSpecOverride.js +3 -0
- package/dist/apispec/src/models/ProtocolRule.d.ts +7 -0
- package/dist/apispec/src/models/ProtocolRule.d.ts.map +1 -1
- package/dist/apispec/src/models/ProtocolRule.js +3 -0
- package/dist/apispec/src/models/ProtocolRuleProtocol.d.ts +1 -0
- package/dist/apispec/src/models/ProtocolRuleProtocol.d.ts.map +1 -1
- package/dist/apispec/src/models/ProtocolRuleProtocol.js +1 -0
- package/dist/apispec/src/models/ResourceQuota.d.ts +6 -0
- package/dist/apispec/src/models/ResourceQuota.d.ts.map +1 -1
- package/dist/apispec/src/models/ResourceQuota.js +2 -0
- package/dist/apispec/src/models/ResumeSandboxResponse.d.ts +0 -7
- package/dist/apispec/src/models/ResumeSandboxResponse.d.ts.map +1 -1
- package/dist/apispec/src/models/ResumeSandboxResponse.js +0 -5
- package/dist/apispec/src/models/Sandbox.d.ts +13 -8
- package/dist/apispec/src/models/Sandbox.d.ts.map +1 -1
- package/dist/apispec/src/models/Sandbox.js +8 -5
- package/dist/apispec/src/models/SandboxAppService.d.ts +2 -2
- package/dist/apispec/src/models/SandboxAppService.d.ts.map +1 -1
- package/dist/apispec/src/models/SandboxAppService.js +1 -3
- package/dist/apispec/src/models/SandboxAppServiceRuntime.d.ts +1 -7
- package/dist/apispec/src/models/SandboxAppServiceRuntime.d.ts.map +1 -1
- package/dist/apispec/src/models/SandboxAppServiceRuntime.js +0 -3
- package/dist/apispec/src/models/SandboxAppServiceView.d.ts +2 -2
- package/dist/apispec/src/models/SandboxAppServiceView.d.ts.map +1 -1
- package/dist/apispec/src/models/SandboxAppServiceView.js +1 -3
- package/dist/apispec/src/models/SandboxConfig.d.ts +2 -2
- package/dist/apispec/src/models/SandboxFunctionSource.d.ts +0 -6
- package/dist/apispec/src/models/SandboxFunctionSource.d.ts.map +1 -1
- package/dist/apispec/src/models/SandboxFunctionSource.js +0 -2
- package/dist/apispec/src/models/SandboxLifecycleStatus.d.ts +4 -3
- package/dist/apispec/src/models/SandboxLifecycleStatus.d.ts.map +1 -1
- package/dist/apispec/src/models/SandboxLifecycleStatus.js +4 -3
- package/dist/apispec/src/models/SandboxSummary.d.ts +10 -5
- package/dist/apispec/src/models/SandboxSummary.d.ts.map +1 -1
- package/dist/apispec/src/models/SandboxSummary.js +7 -4
- package/dist/apispec/src/models/SandboxTemplateSpec.d.ts +0 -7
- package/dist/apispec/src/models/SandboxTemplateSpec.d.ts.map +1 -1
- package/dist/apispec/src/models/SandboxTemplateSpec.js +0 -3
- package/dist/apispec/src/models/SandboxUpdateConfig.d.ts +2 -2
- package/dist/apispec/src/models/SeccompProfile.d.ts +48 -0
- package/dist/apispec/src/models/SeccompProfile.d.ts.map +1 -0
- package/dist/apispec/src/models/SeccompProfile.js +53 -0
- package/dist/apispec/src/models/SecurityContext.d.ts +38 -0
- package/dist/apispec/src/models/SecurityContext.d.ts.map +1 -1
- package/dist/apispec/src/models/SecurityContext.js +14 -0
- package/dist/apispec/src/models/index.d.ts +6 -4
- package/dist/apispec/src/models/index.d.ts.map +1 -1
- package/dist/apispec/src/models/index.js +6 -4
- package/dist/apispec_compat.d.ts +1 -1509
- package/dist/apispec_compat.d.ts.map +1 -1
- package/dist/apispec_compat.js +1 -10
- package/dist/response_normalize.d.ts.map +1 -1
- package/dist/response_normalize.js +0 -1
- package/dist/template_helpers.d.ts +1 -9
- package/dist/template_helpers.d.ts.map +1 -1
- package/dist/template_helpers.js +0 -10
- package/package.json +1 -1
- package/dist/apispec/src/models/SandboxPowerState.d.ts +0 -82
- package/dist/apispec/src/models/SandboxPowerState.d.ts.map +0 -1
- package/dist/apispec/src/models/SandboxPowerState.js +0 -81
- package/dist/apispec/src/models/WarmProcessSpec.d.ts +0 -80
- package/dist/apispec/src/models/WarmProcessSpec.d.ts.map +0 -1
- package/dist/apispec/src/models/WarmProcessSpec.js +0 -63
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProtocolRule.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/ProtocolRule.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAO7C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAO3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAOrD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAOzD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAQnE;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,QAAQ,EAAE,oBAAoB,CAAC;IAC/B;;;;OAIG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACxB;;;;OAIG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;IACxB;;;;OAIG;IACH,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB;;;;OAIG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;;;OAIG;IACH,GAAG,CAAC,EAAE,eAAe,CAAC;CACzB;AAID;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,YAAY,CAG3E;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE5D;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,YAAY,
|
|
1
|
+
{"version":3,"file":"ProtocolRule.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/ProtocolRule.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAO7C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAO3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAOrD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAO3D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAOzD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAQnE;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,QAAQ,EAAE,oBAAoB,CAAC;IAC/B;;;;OAIG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACxB;;;;OAIG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;IACxB;;;;OAIG;IACH,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB;;;;OAIG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;;;OAIG;IACH,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACxB;;;;OAIG;IACH,GAAG,CAAC,EAAE,eAAe,CAAC;CACzB;AAID;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,YAAY,CAG3E;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE5D;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,YAAY,CAe/F;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE1D;AAED,wBAAgB,uBAAuB,CAAC,KAAK,CAAC,EAAE,YAAY,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAgB9G"}
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
import { HTTPMatchFromJSON, HTTPMatchToJSON, } from './HTTPMatch.js';
|
|
15
15
|
import { PortSpecFromJSON, PortSpecToJSON, } from './PortSpec.js';
|
|
16
16
|
import { EgressTLSModeFromJSON, EgressTLSModeToJSON, } from './EgressTLSMode.js';
|
|
17
|
+
import { HTTPProtocolRuleFromJSON, HTTPProtocolRuleToJSON, } from './HTTPProtocolRule.js';
|
|
17
18
|
import { MCPProtocolRuleFromJSON, MCPProtocolRuleToJSON, } from './MCPProtocolRule.js';
|
|
18
19
|
import { ProtocolRuleProtocolFromJSON, ProtocolRuleProtocolToJSON, } from './ProtocolRuleProtocol.js';
|
|
19
20
|
/**
|
|
@@ -38,6 +39,7 @@ export function ProtocolRuleFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
39
|
'ports': json['ports'] == null ? undefined : (json['ports'].map(PortSpecFromJSON)),
|
|
39
40
|
'tlsMode': json['tlsMode'] == null ? undefined : EgressTLSModeFromJSON(json['tlsMode']),
|
|
40
41
|
'httpMatch': json['httpMatch'] == null ? undefined : HTTPMatchFromJSON(json['httpMatch']),
|
|
42
|
+
'http': json['http'] == null ? undefined : HTTPProtocolRuleFromJSON(json['http']),
|
|
41
43
|
'mcp': json['mcp'] == null ? undefined : MCPProtocolRuleFromJSON(json['mcp']),
|
|
42
44
|
};
|
|
43
45
|
}
|
|
@@ -55,6 +57,7 @@ export function ProtocolRuleToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
55
57
|
'ports': value['ports'] == null ? undefined : (value['ports'].map(PortSpecToJSON)),
|
|
56
58
|
'tlsMode': EgressTLSModeToJSON(value['tlsMode']),
|
|
57
59
|
'httpMatch': HTTPMatchToJSON(value['httpMatch']),
|
|
60
|
+
'http': HTTPProtocolRuleToJSON(value['http']),
|
|
58
61
|
'mcp': MCPProtocolRuleToJSON(value['mcp']),
|
|
59
62
|
};
|
|
60
63
|
}
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
* @export
|
|
15
15
|
*/
|
|
16
16
|
export declare const ProtocolRuleProtocol: {
|
|
17
|
+
readonly ProtocolRuleProtocolHttp: "http";
|
|
17
18
|
readonly ProtocolRuleProtocolMcp: "mcp";
|
|
18
19
|
};
|
|
19
20
|
export type ProtocolRuleProtocol = typeof ProtocolRuleProtocol[keyof typeof ProtocolRuleProtocol];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProtocolRuleProtocol.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/ProtocolRuleProtocol.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;GAGG;AACH,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"ProtocolRuleProtocol.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/ProtocolRuleProtocol.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;GAGG;AACH,eAAO,MAAM,oBAAoB;;;CAGvB,CAAC;AACX,MAAM,MAAM,oBAAoB,GAAG,OAAO,oBAAoB,CAAC,MAAM,OAAO,oBAAoB,CAAC,CAAC;AAGlG,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CASlE;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,GAAG,oBAAoB,CAE5E;AAED,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,oBAAoB,CAE/G;AAED,wBAAgB,0BAA0B,CAAC,KAAK,CAAC,EAAE,oBAAoB,GAAG,IAAI,GAAG,GAAG,CAEnF;AAED,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,oBAAoB,CAE9G"}
|
|
@@ -27,6 +27,12 @@ export interface ResourceQuota {
|
|
|
27
27
|
* @memberof ResourceQuota
|
|
28
28
|
*/
|
|
29
29
|
memory?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Ephemeral storage limit for the sandbox writable layer and container logs. Defaults to 512Mi when omitted.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ResourceQuota
|
|
34
|
+
*/
|
|
35
|
+
ephemeralStorage?: string;
|
|
30
36
|
}
|
|
31
37
|
/**
|
|
32
38
|
* Check if a given object implements the ResourceQuota interface.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResourceQuota.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/ResourceQuota.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"ResourceQuota.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/ResourceQuota.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC7B;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,CAUjG;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,CAWhH"}
|
|
@@ -27,6 +27,7 @@ export function ResourceQuotaFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
27
27
|
return {
|
|
28
28
|
'cpu': json['cpu'] == null ? undefined : json['cpu'],
|
|
29
29
|
'memory': json['memory'] == null ? undefined : json['memory'],
|
|
30
|
+
'ephemeralStorage': json['ephemeralStorage'] == null ? undefined : json['ephemeralStorage'],
|
|
30
31
|
};
|
|
31
32
|
}
|
|
32
33
|
export function ResourceQuotaToJSON(json) {
|
|
@@ -39,5 +40,6 @@ export function ResourceQuotaToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
39
40
|
return {
|
|
40
41
|
'cpu': value['cpu'],
|
|
41
42
|
'memory': value['memory'],
|
|
43
|
+
'ephemeralStorage': value['ephemeralStorage'],
|
|
42
44
|
};
|
|
43
45
|
}
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { SandboxPowerState } from './SandboxPowerState.js';
|
|
13
12
|
/**
|
|
14
13
|
*
|
|
15
14
|
* @export
|
|
@@ -28,12 +27,6 @@ export interface ResumeSandboxResponse {
|
|
|
28
27
|
* @memberof ResumeSandboxResponse
|
|
29
28
|
*/
|
|
30
29
|
resumed: boolean;
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @type {SandboxPowerState}
|
|
34
|
-
* @memberof ResumeSandboxResponse
|
|
35
|
-
*/
|
|
36
|
-
powerState: SandboxPowerState;
|
|
37
30
|
/**
|
|
38
31
|
*
|
|
39
32
|
* @type {string}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResumeSandboxResponse.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/ResumeSandboxResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH
|
|
1
|
+
{"version":3,"file":"ResumeSandboxResponse.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/ResumeSandboxResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED;;GAEG;AACH,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,qBAAqB,CAI7F;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,GAAG,qBAAqB,CAE9E;AAED,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,qBAAqB,CAUjH;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,qBAAqB,CAE5E;AAED,wBAAgB,gCAAgC,CAAC,KAAK,CAAC,EAAE,qBAAqB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAWhI"}
|
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
import { SandboxPowerStateFromJSON, SandboxPowerStateToJSON, } from './SandboxPowerState.js';
|
|
15
14
|
/**
|
|
16
15
|
* Check if a given object implements the ResumeSandboxResponse interface.
|
|
17
16
|
*/
|
|
@@ -20,8 +19,6 @@ export function instanceOfResumeSandboxResponse(value) {
|
|
|
20
19
|
return false;
|
|
21
20
|
if (!('resumed' in value) || value['resumed'] === undefined)
|
|
22
21
|
return false;
|
|
23
|
-
if (!('powerState' in value) || value['powerState'] === undefined)
|
|
24
|
-
return false;
|
|
25
22
|
return true;
|
|
26
23
|
}
|
|
27
24
|
export function ResumeSandboxResponseFromJSON(json) {
|
|
@@ -34,7 +31,6 @@ export function ResumeSandboxResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
31
|
return {
|
|
35
32
|
'sandboxId': json['sandbox_id'],
|
|
36
33
|
'resumed': json['resumed'],
|
|
37
|
-
'powerState': SandboxPowerStateFromJSON(json['power_state']),
|
|
38
34
|
'restoredMemory': json['restored_memory'] == null ? undefined : json['restored_memory'],
|
|
39
35
|
};
|
|
40
36
|
}
|
|
@@ -48,7 +44,6 @@ export function ResumeSandboxResponseToJSONTyped(value, ignoreDiscriminator = fa
|
|
|
48
44
|
return {
|
|
49
45
|
'sandbox_id': value['sandboxId'],
|
|
50
46
|
'resumed': value['resumed'],
|
|
51
|
-
'power_state': SandboxPowerStateToJSON(value['powerState']),
|
|
52
47
|
'restored_memory': value['restoredMemory'],
|
|
53
48
|
};
|
|
54
49
|
}
|
|
@@ -13,7 +13,6 @@ import type { SandboxAppService } from './SandboxAppService.js';
|
|
|
13
13
|
import type { ClaimMountRequest } from './ClaimMountRequest.js';
|
|
14
14
|
import type { SandboxLifecycleStatus } from './SandboxLifecycleStatus.js';
|
|
15
15
|
import type { SandboxSSHConnection } from './SandboxSSHConnection.js';
|
|
16
|
-
import type { SandboxPowerState } from './SandboxPowerState.js';
|
|
17
16
|
/**
|
|
18
17
|
*
|
|
19
18
|
* @export
|
|
@@ -51,17 +50,11 @@ export interface Sandbox {
|
|
|
51
50
|
*/
|
|
52
51
|
status: SandboxLifecycleStatus;
|
|
53
52
|
/**
|
|
54
|
-
*
|
|
53
|
+
* True when status is paused and no runtime is attached.
|
|
55
54
|
* @type {boolean}
|
|
56
55
|
* @memberof Sandbox
|
|
57
56
|
*/
|
|
58
57
|
paused: boolean;
|
|
59
|
-
/**
|
|
60
|
-
*
|
|
61
|
-
* @type {SandboxPowerState}
|
|
62
|
-
* @memberof Sandbox
|
|
63
|
-
*/
|
|
64
|
-
powerState: SandboxPowerState;
|
|
65
58
|
/**
|
|
66
59
|
*
|
|
67
60
|
* @type {boolean}
|
|
@@ -86,6 +79,12 @@ export interface Sandbox {
|
|
|
86
79
|
* @memberof Sandbox
|
|
87
80
|
*/
|
|
88
81
|
podName: string;
|
|
82
|
+
/**
|
|
83
|
+
* Monotonically increasing runtime generation. Resume starts a new generation.
|
|
84
|
+
* @type {number}
|
|
85
|
+
* @memberof Sandbox
|
|
86
|
+
*/
|
|
87
|
+
runtimeGeneration: number;
|
|
89
88
|
/**
|
|
90
89
|
*
|
|
91
90
|
* @type {SandboxSSHConnection}
|
|
@@ -116,6 +115,12 @@ export interface Sandbox {
|
|
|
116
115
|
* @memberof Sandbox
|
|
117
116
|
*/
|
|
118
117
|
createdAt: Date;
|
|
118
|
+
/**
|
|
119
|
+
*
|
|
120
|
+
* @type {Date}
|
|
121
|
+
* @memberof Sandbox
|
|
122
|
+
*/
|
|
123
|
+
updatedAt: Date;
|
|
119
124
|
}
|
|
120
125
|
/**
|
|
121
126
|
* Check if a given object implements the Sandbox interface.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sandbox.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/Sandbox.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAO7D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAO7D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAOvE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"Sandbox.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/Sandbox.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAO7D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAO7D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAOvE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAQnE;;;;GAIG;AACH,MAAM,WAAW,OAAO;IACpB;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,MAAM,EAAE,sBAAsB,CAAC;IAC/B;;;;OAIG;IACH,MAAM,EAAE,OAAO,CAAC;IAChB;;;;OAIG;IACH,UAAU,EAAE,OAAO,CAAC;IACpB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACpC;;;;OAIG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC;IAClC;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,GAAG,CAAC,EAAE,oBAAoB,CAAC;IAC3B;;;;OAIG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;;;OAIG;IACH,aAAa,EAAE,IAAI,CAAC;IACpB;;;;OAIG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;;;OAIG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;;;OAIG;IACH,SAAS,EAAE,IAAI,CAAC;CACnB;AAID;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,OAAO,CAejE;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,GAAG,GAAG,OAAO,CAElD;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,OAAO,CAwBrF;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,CAyBpG"}
|
|
@@ -15,7 +15,6 @@ import { SandboxAppServiceFromJSON, SandboxAppServiceToJSON, } from './SandboxAp
|
|
|
15
15
|
import { ClaimMountRequestFromJSON, ClaimMountRequestToJSON, } from './ClaimMountRequest.js';
|
|
16
16
|
import { SandboxLifecycleStatusFromJSON, SandboxLifecycleStatusToJSON, } from './SandboxLifecycleStatus.js';
|
|
17
17
|
import { SandboxSSHConnectionFromJSON, SandboxSSHConnectionToJSON, } from './SandboxSSHConnection.js';
|
|
18
|
-
import { SandboxPowerStateFromJSON, SandboxPowerStateToJSON, } from './SandboxPowerState.js';
|
|
19
18
|
/**
|
|
20
19
|
* Check if a given object implements the Sandbox interface.
|
|
21
20
|
*/
|
|
@@ -30,12 +29,12 @@ export function instanceOfSandbox(value) {
|
|
|
30
29
|
return false;
|
|
31
30
|
if (!('paused' in value) || value['paused'] === undefined)
|
|
32
31
|
return false;
|
|
33
|
-
if (!('powerState' in value) || value['powerState'] === undefined)
|
|
34
|
-
return false;
|
|
35
32
|
if (!('autoResume' in value) || value['autoResume'] === undefined)
|
|
36
33
|
return false;
|
|
37
34
|
if (!('podName' in value) || value['podName'] === undefined)
|
|
38
35
|
return false;
|
|
36
|
+
if (!('runtimeGeneration' in value) || value['runtimeGeneration'] === undefined)
|
|
37
|
+
return false;
|
|
39
38
|
if (!('expiresAt' in value) || value['expiresAt'] === undefined)
|
|
40
39
|
return false;
|
|
41
40
|
if (!('hardExpiresAt' in value) || value['hardExpiresAt'] === undefined)
|
|
@@ -44,6 +43,8 @@ export function instanceOfSandbox(value) {
|
|
|
44
43
|
return false;
|
|
45
44
|
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
46
45
|
return false;
|
|
46
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
47
|
+
return false;
|
|
47
48
|
return true;
|
|
48
49
|
}
|
|
49
50
|
export function SandboxFromJSON(json) {
|
|
@@ -60,16 +61,17 @@ export function SandboxFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
60
61
|
'userId': json['user_id'] == null ? undefined : json['user_id'],
|
|
61
62
|
'status': SandboxLifecycleStatusFromJSON(json['status']),
|
|
62
63
|
'paused': json['paused'],
|
|
63
|
-
'powerState': SandboxPowerStateFromJSON(json['power_state']),
|
|
64
64
|
'autoResume': json['auto_resume'],
|
|
65
65
|
'services': json['services'] == null ? undefined : (json['services'].map(SandboxAppServiceFromJSON)),
|
|
66
66
|
'mounts': json['mounts'] == null ? undefined : (json['mounts'].map(ClaimMountRequestFromJSON)),
|
|
67
67
|
'podName': json['pod_name'],
|
|
68
|
+
'runtimeGeneration': json['runtime_generation'],
|
|
68
69
|
'ssh': json['ssh'] == null ? undefined : SandboxSSHConnectionFromJSON(json['ssh']),
|
|
69
70
|
'expiresAt': (new Date(json['expires_at'])),
|
|
70
71
|
'hardExpiresAt': (new Date(json['hard_expires_at'])),
|
|
71
72
|
'claimedAt': (new Date(json['claimed_at'])),
|
|
72
73
|
'createdAt': (new Date(json['created_at'])),
|
|
74
|
+
'updatedAt': (new Date(json['updated_at'])),
|
|
73
75
|
};
|
|
74
76
|
}
|
|
75
77
|
export function SandboxToJSON(json) {
|
|
@@ -86,15 +88,16 @@ export function SandboxToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
86
88
|
'user_id': value['userId'],
|
|
87
89
|
'status': SandboxLifecycleStatusToJSON(value['status']),
|
|
88
90
|
'paused': value['paused'],
|
|
89
|
-
'power_state': SandboxPowerStateToJSON(value['powerState']),
|
|
90
91
|
'auto_resume': value['autoResume'],
|
|
91
92
|
'services': value['services'] == null ? undefined : (value['services'].map(SandboxAppServiceToJSON)),
|
|
92
93
|
'mounts': value['mounts'] == null ? undefined : (value['mounts'].map(ClaimMountRequestToJSON)),
|
|
93
94
|
'pod_name': value['podName'],
|
|
95
|
+
'runtime_generation': value['runtimeGeneration'],
|
|
94
96
|
'ssh': SandboxSSHConnectionToJSON(value['ssh']),
|
|
95
97
|
'expires_at': value['expiresAt'].toISOString(),
|
|
96
98
|
'hard_expires_at': value['hardExpiresAt'].toISOString(),
|
|
97
99
|
'claimed_at': value['claimedAt'].toISOString(),
|
|
98
100
|
'created_at': value['createdAt'].toISOString(),
|
|
101
|
+
'updated_at': value['updatedAt'].toISOString(),
|
|
99
102
|
};
|
|
100
103
|
}
|
|
@@ -31,11 +31,11 @@ export interface SandboxAppService {
|
|
|
31
31
|
*/
|
|
32
32
|
displayName?: string;
|
|
33
33
|
/**
|
|
34
|
-
* Public exposure routing port.
|
|
34
|
+
* Public exposure routing port. Required for manual and cmd services. Omit for function services; Sandbox0 assigns the internal function service port.
|
|
35
35
|
* @type {number}
|
|
36
36
|
* @memberof SandboxAppService
|
|
37
37
|
*/
|
|
38
|
-
port
|
|
38
|
+
port?: number;
|
|
39
39
|
/**
|
|
40
40
|
*
|
|
41
41
|
* @type {SandboxAppServiceRuntime}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SandboxAppService.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SandboxAppService.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAOzE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAO3E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAQ3E;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"SandboxAppService.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SandboxAppService.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAOzE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAO3E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAQ3E;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,OAAO,CAAC,EAAE,wBAAwB,CAAC;IACnC;;;;OAIG;IACH,OAAO,EAAE,wBAAwB,CAAC;IAClC;;;;OAIG;IACH,WAAW,CAAC,EAAE,uBAAuB,CAAC;CACzC;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,iBAAiB,CAIrF;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"}
|
|
@@ -20,8 +20,6 @@ import { SandboxAppServiceRuntimeFromJSON, SandboxAppServiceRuntimeToJSON, } fro
|
|
|
20
20
|
export function instanceOfSandboxAppService(value) {
|
|
21
21
|
if (!('id' in value) || value['id'] === undefined)
|
|
22
22
|
return false;
|
|
23
|
-
if (!('port' in value) || value['port'] === undefined)
|
|
24
|
-
return false;
|
|
25
23
|
if (!('ingress' in value) || value['ingress'] === undefined)
|
|
26
24
|
return false;
|
|
27
25
|
return true;
|
|
@@ -36,7 +34,7 @@ export function SandboxAppServiceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
34
|
return {
|
|
37
35
|
'id': json['id'],
|
|
38
36
|
'displayName': json['display_name'] == null ? undefined : json['display_name'],
|
|
39
|
-
'port': json['port'],
|
|
37
|
+
'port': json['port'] == null ? undefined : json['port'],
|
|
40
38
|
'runtime': json['runtime'] == null ? undefined : SandboxAppServiceRuntimeFromJSON(json['runtime']),
|
|
41
39
|
'ingress': SandboxAppServiceIngressFromJSON(json['ingress']),
|
|
42
40
|
'healthCheck': json['health_check'] == null ? undefined : SandboxAppServiceHealthFromJSON(json['health_check']),
|
|
@@ -43,12 +43,7 @@ export interface SandboxAppServiceRuntime {
|
|
|
43
43
|
[key: string]: string;
|
|
44
44
|
};
|
|
45
45
|
/**
|
|
46
|
-
*
|
|
47
|
-
* @type {string}
|
|
48
|
-
* @memberof SandboxAppServiceRuntime
|
|
49
|
-
*/
|
|
50
|
-
warmProcessName?: string;
|
|
51
|
-
/**
|
|
46
|
+
*
|
|
52
47
|
* @type {SandboxFunction}
|
|
53
48
|
* @memberof SandboxAppServiceRuntime
|
|
54
49
|
*/
|
|
@@ -58,7 +53,6 @@ export interface SandboxAppServiceRuntime {
|
|
|
58
53
|
* @export
|
|
59
54
|
*/
|
|
60
55
|
export declare const SandboxAppServiceRuntimeTypeEnum: {
|
|
61
|
-
readonly WarmProcess: "warm_process";
|
|
62
56
|
readonly Cmd: "cmd";
|
|
63
57
|
readonly Manual: "manual";
|
|
64
58
|
readonly Function: "function";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SandboxAppServiceRuntime.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SandboxAppServiceRuntime.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAQzD;;;;GAIG;AACH,MAAM,WAAW,wBAAwB;IACrC;;;;OAIG;IACH,IAAI,EAAE,gCAAgC,CAAC;IACvC;;;;OAIG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACxB;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;KAAE,CAAC;IACrC;;;;OAIG;IACH,
|
|
1
|
+
{"version":3,"file":"SandboxAppServiceRuntime.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SandboxAppServiceRuntime.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAQzD;;;;GAIG;AACH,MAAM,WAAW,wBAAwB;IACrC;;;;OAIG;IACH,IAAI,EAAE,gCAAgC,CAAC;IACvC;;;;OAIG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACxB;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;KAAE,CAAC;IACrC;;;;OAIG;IACH,SAAS,CAAC,EAAE,eAAe,CAAC;CAC/B;AAGD;;GAEG;AACH,eAAO,MAAM,gCAAgC;;;;CAInC,CAAC;AACX,MAAM,MAAM,gCAAgC,GAAG,OAAO,gCAAgC,CAAC,MAAM,OAAO,gCAAgC,CAAC,CAAC;AAGtI;;GAEG;AACH,wBAAgB,kCAAkC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,wBAAwB,CAGnG;AAED,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,GAAG,GAAG,wBAAwB,CAEpF;AAED,wBAAgB,qCAAqC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,wBAAwB,CAYvH;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,GAAG,wBAAwB,CAElF;AAED,wBAAgB,mCAAmC,CAAC,KAAK,CAAC,EAAE,wBAAwB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAatI"}
|
|
@@ -16,7 +16,6 @@ import { SandboxFunctionFromJSON, SandboxFunctionToJSON, } from './SandboxFuncti
|
|
|
16
16
|
* @export
|
|
17
17
|
*/
|
|
18
18
|
export const SandboxAppServiceRuntimeTypeEnum = {
|
|
19
|
-
WarmProcess: 'warm_process',
|
|
20
19
|
Cmd: 'cmd',
|
|
21
20
|
Manual: 'manual',
|
|
22
21
|
Function: 'function'
|
|
@@ -41,7 +40,6 @@ export function SandboxAppServiceRuntimeFromJSONTyped(json, ignoreDiscriminator)
|
|
|
41
40
|
'command': json['command'] == null ? undefined : json['command'],
|
|
42
41
|
'cwd': json['cwd'] == null ? undefined : json['cwd'],
|
|
43
42
|
'envVars': json['env_vars'] == null ? undefined : json['env_vars'],
|
|
44
|
-
'warmProcessName': json['warm_process_name'] == null ? undefined : json['warm_process_name'],
|
|
45
43
|
'_function': json['function'] == null ? undefined : SandboxFunctionFromJSON(json['function']),
|
|
46
44
|
};
|
|
47
45
|
}
|
|
@@ -57,7 +55,6 @@ export function SandboxAppServiceRuntimeToJSONTyped(value, ignoreDiscriminator =
|
|
|
57
55
|
'command': value['command'],
|
|
58
56
|
'cwd': value['cwd'],
|
|
59
57
|
'env_vars': value['envVars'],
|
|
60
|
-
'warm_process_name': value['warmProcessName'],
|
|
61
58
|
'function': SandboxFunctionToJSON(value['_function']),
|
|
62
59
|
};
|
|
63
60
|
}
|
|
@@ -31,11 +31,11 @@ export interface SandboxAppServiceView {
|
|
|
31
31
|
*/
|
|
32
32
|
displayName?: string;
|
|
33
33
|
/**
|
|
34
|
-
* Public exposure routing port.
|
|
34
|
+
* Public exposure routing port. Required for manual and cmd services. Omit for function services; Sandbox0 assigns the internal function service port.
|
|
35
35
|
* @type {number}
|
|
36
36
|
* @memberof SandboxAppServiceView
|
|
37
37
|
*/
|
|
38
|
-
port
|
|
38
|
+
port?: number;
|
|
39
39
|
/**
|
|
40
40
|
*
|
|
41
41
|
* @type {SandboxAppServiceRuntime}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SandboxAppServiceView.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SandboxAppServiceView.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAOzE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAO3E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAQ3E;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"SandboxAppServiceView.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SandboxAppServiceView.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAOzE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAO3E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAQ3E;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,OAAO,CAAC,EAAE,wBAAwB,CAAC;IACnC;;;;OAIG;IACH,OAAO,EAAE,wBAAwB,CAAC;IAClC;;;;OAIG;IACH,WAAW,CAAC,EAAE,uBAAuB,CAAC;IACtC;;;;OAIG;IACH,WAAW,EAAE,OAAO,CAAC;IACrB;;;;OAIG;IACH,eAAe,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAChC;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,qBAAqB,CAK7F;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,GAAG,qBAAqB,CAE9E;AAED,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,qBAAqB,CAgBjH;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,qBAAqB,CAE5E;AAED,wBAAgB,gCAAgC,CAAC,KAAK,CAAC,EAAE,qBAAqB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAiBhI"}
|
|
@@ -20,8 +20,6 @@ import { SandboxAppServiceRuntimeFromJSON, SandboxAppServiceRuntimeToJSON, } fro
|
|
|
20
20
|
export function instanceOfSandboxAppServiceView(value) {
|
|
21
21
|
if (!('id' in value) || value['id'] === undefined)
|
|
22
22
|
return false;
|
|
23
|
-
if (!('port' in value) || value['port'] === undefined)
|
|
24
|
-
return false;
|
|
25
23
|
if (!('ingress' in value) || value['ingress'] === undefined)
|
|
26
24
|
return false;
|
|
27
25
|
if (!('publishable' in value) || value['publishable'] === undefined)
|
|
@@ -38,7 +36,7 @@ export function SandboxAppServiceViewFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
36
|
return {
|
|
39
37
|
'id': json['id'],
|
|
40
38
|
'displayName': json['display_name'] == null ? undefined : json['display_name'],
|
|
41
|
-
'port': json['port'],
|
|
39
|
+
'port': json['port'] == null ? undefined : json['port'],
|
|
42
40
|
'runtime': json['runtime'] == null ? undefined : SandboxAppServiceRuntimeFromJSON(json['runtime']),
|
|
43
41
|
'ingress': SandboxAppServiceIngressFromJSON(json['ingress']),
|
|
44
42
|
'healthCheck': json['health_check'] == null ? undefined : SandboxAppServiceHealthFromJSON(json['health_check']),
|
|
@@ -27,13 +27,13 @@ export interface SandboxConfig {
|
|
|
27
27
|
[key: string]: string;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* Runtime soft time-to-live in seconds. When it expires, Sandbox0 checkpoints the writable rootfs, pauses the sandbox, and releases runtime compute while preserving durable sandbox state.
|
|
31
31
|
* @type {number}
|
|
32
32
|
* @memberof SandboxConfig
|
|
33
33
|
*/
|
|
34
34
|
ttl?: number;
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* Sandbox hard time-to-live in seconds. When it expires, Sandbox0 deletes the sandbox identity and durable state, including paused rootfs checkpoints.
|
|
37
37
|
* @type {number}
|
|
38
38
|
* @memberof SandboxConfig
|
|
39
39
|
*/
|
|
@@ -21,12 +21,6 @@ export interface SandboxFunctionSource {
|
|
|
21
21
|
* @memberof SandboxFunctionSource
|
|
22
22
|
*/
|
|
23
23
|
type: SandboxFunctionSourceTypeEnum;
|
|
24
|
-
/**
|
|
25
|
-
* Relative Python filename used when materializing the source. Defaults to main.py.
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof SandboxFunctionSource
|
|
28
|
-
*/
|
|
29
|
-
filename?: string;
|
|
30
24
|
/**
|
|
31
25
|
* Inline source code. Limited to 256 KiB.
|
|
32
26
|
* @type {string}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SandboxFunctionSource.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SandboxFunctionSource.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;OAIG;IACH,IAAI,EAAE,6BAA6B,CAAC;IACpC;;;;OAIG;IACH,
|
|
1
|
+
{"version":3,"file":"SandboxFunctionSource.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SandboxFunctionSource.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;OAIG;IACH,IAAI,EAAE,6BAA6B,CAAC;IACpC;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;CAChB;AAGD;;GAEG;AACH,eAAO,MAAM,6BAA6B;;CAEhC,CAAC;AACX,MAAM,MAAM,6BAA6B,GAAG,OAAO,6BAA6B,CAAC,MAAM,OAAO,6BAA6B,CAAC,CAAC;AAG7H;;GAEG;AACH,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,qBAAqB,CAI7F;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,GAAG,qBAAqB,CAE9E;AAED,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,qBAAqB,CASjH;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,qBAAqB,CAE5E;AAED,wBAAgB,gCAAgC,CAAC,KAAK,CAAC,EAAE,qBAAqB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAUhI"}
|
|
@@ -36,7 +36,6 @@ export function SandboxFunctionSourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
36
|
}
|
|
37
37
|
return {
|
|
38
38
|
'type': json['type'],
|
|
39
|
-
'filename': json['filename'] == null ? undefined : json['filename'],
|
|
40
39
|
'code': json['code'],
|
|
41
40
|
};
|
|
42
41
|
}
|
|
@@ -49,7 +48,6 @@ export function SandboxFunctionSourceToJSONTyped(value, ignoreDiscriminator = fa
|
|
|
49
48
|
}
|
|
50
49
|
return {
|
|
51
50
|
'type': value['type'],
|
|
52
|
-
'filename': value['filename'],
|
|
53
51
|
'code': value['code'],
|
|
54
52
|
};
|
|
55
53
|
}
|
|
@@ -16,10 +16,11 @@
|
|
|
16
16
|
export declare const SandboxLifecycleStatus: {
|
|
17
17
|
readonly SandboxLifecycleStatusStarting: "starting";
|
|
18
18
|
readonly SandboxLifecycleStatusRunning: "running";
|
|
19
|
-
readonly
|
|
20
|
-
readonly
|
|
19
|
+
readonly SandboxLifecycleStatusPausing: "pausing";
|
|
20
|
+
readonly SandboxLifecycleStatusPaused: "paused";
|
|
21
|
+
readonly SandboxLifecycleStatusResuming: "resuming";
|
|
21
22
|
readonly SandboxLifecycleStatusTerminating: "terminating";
|
|
22
|
-
readonly
|
|
23
|
+
readonly SandboxLifecycleStatusFailed: "failed";
|
|
23
24
|
};
|
|
24
25
|
export type SandboxLifecycleStatus = typeof SandboxLifecycleStatus[keyof typeof SandboxLifecycleStatus];
|
|
25
26
|
export declare function instanceOfSandboxLifecycleStatus(value: any): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SandboxLifecycleStatus.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SandboxLifecycleStatus.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;GAGG;AACH,eAAO,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"SandboxLifecycleStatus.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SandboxLifecycleStatus.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;GAGG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;CAQzB,CAAC;AACX,MAAM,MAAM,sBAAsB,GAAG,OAAO,sBAAsB,CAAC,MAAM,OAAO,sBAAsB,CAAC,CAAC;AAGxG,wBAAgB,gCAAgC,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CASpE;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,GAAG,sBAAsB,CAEhF;AAED,wBAAgB,mCAAmC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,sBAAsB,CAEnH;AAED,wBAAgB,4BAA4B,CAAC,KAAK,CAAC,EAAE,sBAAsB,GAAG,IAAI,GAAG,GAAG,CAEvF;AAED,wBAAgB,iCAAiC,CAAC,KAAK,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,sBAAsB,CAElH"}
|
|
@@ -18,10 +18,11 @@
|
|
|
18
18
|
export const SandboxLifecycleStatus = {
|
|
19
19
|
SandboxLifecycleStatusStarting: 'starting',
|
|
20
20
|
SandboxLifecycleStatusRunning: 'running',
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
SandboxLifecycleStatusPausing: 'pausing',
|
|
22
|
+
SandboxLifecycleStatusPaused: 'paused',
|
|
23
|
+
SandboxLifecycleStatusResuming: 'resuming',
|
|
23
24
|
SandboxLifecycleStatusTerminating: 'terminating',
|
|
24
|
-
|
|
25
|
+
SandboxLifecycleStatusFailed: 'failed'
|
|
25
26
|
};
|
|
26
27
|
export function instanceOfSandboxLifecycleStatus(value) {
|
|
27
28
|
for (const key in SandboxLifecycleStatus) {
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { SandboxLifecycleStatus } from './SandboxLifecycleStatus.js';
|
|
13
|
-
import type { SandboxPowerState } from './SandboxPowerState.js';
|
|
14
13
|
/**
|
|
15
14
|
*
|
|
16
15
|
* @export
|
|
@@ -36,17 +35,17 @@ export interface SandboxSummary {
|
|
|
36
35
|
*/
|
|
37
36
|
status: SandboxLifecycleStatus;
|
|
38
37
|
/**
|
|
39
|
-
*
|
|
38
|
+
* True when status is paused and no runtime is attached.
|
|
40
39
|
* @type {boolean}
|
|
41
40
|
* @memberof SandboxSummary
|
|
42
41
|
*/
|
|
43
42
|
paused: boolean;
|
|
44
43
|
/**
|
|
45
|
-
*
|
|
46
|
-
* @type {
|
|
44
|
+
* Monotonically increasing runtime generation. Resume starts a new generation.
|
|
45
|
+
* @type {number}
|
|
47
46
|
* @memberof SandboxSummary
|
|
48
47
|
*/
|
|
49
|
-
|
|
48
|
+
runtimeGeneration: number;
|
|
50
49
|
/**
|
|
51
50
|
* Cluster where sandbox runs (multi-cluster only)
|
|
52
51
|
* @type {string}
|
|
@@ -71,6 +70,12 @@ export interface SandboxSummary {
|
|
|
71
70
|
* @memberof SandboxSummary
|
|
72
71
|
*/
|
|
73
72
|
hardExpiresAt: Date;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {Date}
|
|
76
|
+
* @memberof SandboxSummary
|
|
77
|
+
*/
|
|
78
|
+
updatedAt: Date;
|
|
74
79
|
}
|
|
75
80
|
/**
|
|
76
81
|
* Check if a given object implements the SandboxSummary interface.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SandboxSummary.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SandboxSummary.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"SandboxSummary.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SandboxSummary.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAQvE;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC3B;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,MAAM,EAAE,sBAAsB,CAAC;IAC/B;;;;OAIG;IACH,MAAM,EAAE,OAAO,CAAC;IAChB;;;;OAIG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B;;;;OAIG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;;;OAIG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;;;OAIG;IACH,aAAa,EAAE,IAAI,CAAC;IACpB;;;;OAIG;IACH,SAAS,EAAE,IAAI,CAAC;CACnB;AAID;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,cAAc,CAW/E;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,cAAc,CAEhE;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,cAAc,CAiBnG;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,cAAc,CAE9D;AAED,wBAAgB,yBAAyB,CAAC,KAAK,CAAC,EAAE,cAAc,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAkBlH"}
|
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { SandboxLifecycleStatusFromJSON, SandboxLifecycleStatusToJSON, } from './SandboxLifecycleStatus.js';
|
|
15
|
-
import { SandboxPowerStateFromJSON, SandboxPowerStateToJSON, } from './SandboxPowerState.js';
|
|
16
15
|
/**
|
|
17
16
|
* Check if a given object implements the SandboxSummary interface.
|
|
18
17
|
*/
|
|
@@ -25,7 +24,7 @@ export function instanceOfSandboxSummary(value) {
|
|
|
25
24
|
return false;
|
|
26
25
|
if (!('paused' in value) || value['paused'] === undefined)
|
|
27
26
|
return false;
|
|
28
|
-
if (!('
|
|
27
|
+
if (!('runtimeGeneration' in value) || value['runtimeGeneration'] === undefined)
|
|
29
28
|
return false;
|
|
30
29
|
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
31
30
|
return false;
|
|
@@ -33,6 +32,8 @@ export function instanceOfSandboxSummary(value) {
|
|
|
33
32
|
return false;
|
|
34
33
|
if (!('hardExpiresAt' in value) || value['hardExpiresAt'] === undefined)
|
|
35
34
|
return false;
|
|
35
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
36
|
+
return false;
|
|
36
37
|
return true;
|
|
37
38
|
}
|
|
38
39
|
export function SandboxSummaryFromJSON(json) {
|
|
@@ -47,11 +48,12 @@ export function SandboxSummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
48
|
'templateId': json['template_id'],
|
|
48
49
|
'status': SandboxLifecycleStatusFromJSON(json['status']),
|
|
49
50
|
'paused': json['paused'],
|
|
50
|
-
'
|
|
51
|
+
'runtimeGeneration': json['runtime_generation'],
|
|
51
52
|
'clusterId': json['cluster_id'] == null ? undefined : json['cluster_id'],
|
|
52
53
|
'createdAt': (new Date(json['created_at'])),
|
|
53
54
|
'expiresAt': (new Date(json['expires_at'])),
|
|
54
55
|
'hardExpiresAt': (new Date(json['hard_expires_at'])),
|
|
56
|
+
'updatedAt': (new Date(json['updated_at'])),
|
|
55
57
|
};
|
|
56
58
|
}
|
|
57
59
|
export function SandboxSummaryToJSON(json) {
|
|
@@ -66,10 +68,11 @@ export function SandboxSummaryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
66
68
|
'template_id': value['templateId'],
|
|
67
69
|
'status': SandboxLifecycleStatusToJSON(value['status']),
|
|
68
70
|
'paused': value['paused'],
|
|
69
|
-
'
|
|
71
|
+
'runtime_generation': value['runtimeGeneration'],
|
|
70
72
|
'cluster_id': value['clusterId'],
|
|
71
73
|
'created_at': value['createdAt'].toISOString(),
|
|
72
74
|
'expires_at': value['expiresAt'].toISOString(),
|
|
73
75
|
'hard_expires_at': value['hardExpiresAt'].toISOString(),
|
|
76
|
+
'updated_at': value['updatedAt'].toISOString(),
|
|
74
77
|
};
|
|
75
78
|
}
|