sandbox0 0.4.1 → 0.4.4

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.
Files changed (114) hide show
  1. package/dist/apispec/src/apis/FilesApi.d.ts +16 -1
  2. package/dist/apispec/src/apis/FilesApi.d.ts.map +1 -1
  3. package/dist/apispec/src/apis/FilesApi.js +47 -1
  4. package/dist/apispec/src/apis/FunctionsApi.d.ts +12 -10
  5. package/dist/apispec/src/apis/FunctionsApi.d.ts.map +1 -1
  6. package/dist/apispec/src/apis/FunctionsApi.js +12 -10
  7. package/dist/apispec/src/apis/SandboxesApi.d.ts +1 -0
  8. package/dist/apispec/src/apis/SandboxesApi.d.ts.map +1 -1
  9. package/dist/apispec/src/apis/SandboxesApi.js +2 -1
  10. package/dist/apispec/src/models/Function.d.ts +7 -0
  11. package/dist/apispec/src/models/Function.d.ts.map +1 -1
  12. package/dist/apispec/src/models/Function.js +5 -0
  13. package/dist/apispec/src/models/FunctionAutoscaling.d.ts +51 -0
  14. package/dist/apispec/src/models/FunctionAutoscaling.d.ts.map +1 -0
  15. package/dist/apispec/src/models/FunctionAutoscaling.js +55 -0
  16. package/dist/apispec/src/models/FunctionCreateRequest.d.ts +7 -0
  17. package/dist/apispec/src/models/FunctionCreateRequest.d.ts.map +1 -1
  18. package/dist/apispec/src/models/FunctionCreateRequest.js +3 -0
  19. package/dist/apispec/src/models/FunctionEnvRef.d.ts +39 -0
  20. package/dist/apispec/src/models/FunctionEnvRef.d.ts.map +1 -0
  21. package/dist/apispec/src/models/FunctionEnvRef.js +47 -0
  22. package/dist/apispec/src/models/FunctionRecord.d.ts +7 -0
  23. package/dist/apispec/src/models/FunctionRecord.d.ts.map +1 -1
  24. package/dist/apispec/src/models/FunctionRecord.js +5 -0
  25. package/dist/apispec/src/models/FunctionRevision.d.ts +30 -8
  26. package/dist/apispec/src/models/FunctionRevision.d.ts.map +1 -1
  27. package/dist/apispec/src/models/FunctionRevision.js +14 -10
  28. package/dist/apispec/src/models/FunctionRevisionInputSourceType.d.ts +26 -0
  29. package/dist/apispec/src/models/FunctionRevisionInputSourceType.d.ts.map +1 -0
  30. package/dist/apispec/src/models/FunctionRevisionInputSourceType.js +43 -0
  31. package/dist/apispec/src/models/FunctionRevisionMount.d.ts +66 -0
  32. package/dist/apispec/src/models/FunctionRevisionMount.d.ts.map +1 -0
  33. package/dist/apispec/src/models/FunctionRevisionMount.js +61 -0
  34. package/dist/apispec/src/models/FunctionRevisionMountSource.d.ts +72 -0
  35. package/dist/apispec/src/models/FunctionRevisionMountSource.d.ts.map +1 -0
  36. package/dist/apispec/src/models/FunctionRevisionMountSource.js +61 -0
  37. package/dist/apispec/src/models/FunctionRevisionSourceType.d.ts +27 -0
  38. package/dist/apispec/src/models/FunctionRevisionSourceType.d.ts.map +1 -0
  39. package/dist/apispec/src/models/FunctionRevisionSourceType.js +44 -0
  40. package/dist/apispec/src/models/FunctionRevisionSpec.d.ts +61 -0
  41. package/dist/apispec/src/models/FunctionRevisionSpec.d.ts.map +1 -0
  42. package/dist/apispec/src/models/FunctionRevisionSpec.js +57 -0
  43. package/dist/apispec/src/models/FunctionRuntimeEvent.d.ts +107 -0
  44. package/dist/apispec/src/models/FunctionRuntimeEvent.d.ts.map +1 -0
  45. package/dist/apispec/src/models/FunctionRuntimeEvent.js +81 -0
  46. package/dist/apispec/src/models/FunctionRuntimeInstance.d.ts +131 -0
  47. package/dist/apispec/src/models/FunctionRuntimeInstance.d.ts.map +1 -0
  48. package/dist/apispec/src/models/FunctionRuntimeInstance.js +93 -0
  49. package/dist/apispec/src/models/FunctionRuntimeInstanceState.d.ts +28 -0
  50. package/dist/apispec/src/models/FunctionRuntimeInstanceState.d.ts.map +1 -0
  51. package/dist/apispec/src/models/FunctionRuntimeInstanceState.js +45 -0
  52. package/dist/apispec/src/models/FunctionRuntimePhase.d.ts +31 -0
  53. package/dist/apispec/src/models/FunctionRuntimePhase.d.ts.map +1 -0
  54. package/dist/apispec/src/models/FunctionRuntimePhase.js +48 -0
  55. package/dist/apispec/src/models/FunctionRuntimeReadinessState.d.ts +28 -0
  56. package/dist/apispec/src/models/FunctionRuntimeReadinessState.d.ts.map +1 -0
  57. package/dist/apispec/src/models/FunctionRuntimeReadinessState.js +45 -0
  58. package/dist/apispec/src/models/FunctionRuntimeStatus.d.ts +55 -2
  59. package/dist/apispec/src/models/FunctionRuntimeStatus.d.ts.map +1 -1
  60. package/dist/apispec/src/models/FunctionRuntimeStatus.js +27 -0
  61. package/dist/apispec/src/models/FunctionSandboxServiceSource.d.ts +39 -0
  62. package/dist/apispec/src/models/FunctionSandboxServiceSource.d.ts.map +1 -0
  63. package/dist/apispec/src/models/FunctionSandboxServiceSource.js +47 -0
  64. package/dist/apispec/src/models/FunctionSourceRequest.d.ts +33 -3
  65. package/dist/apispec/src/models/FunctionSourceRequest.d.ts.map +1 -1
  66. package/dist/apispec/src/models/FunctionSourceRequest.js +13 -6
  67. package/dist/apispec/src/models/FunctionStaticAsset.d.ts +45 -0
  68. package/dist/apispec/src/models/FunctionStaticAsset.d.ts.map +1 -0
  69. package/dist/apispec/src/models/FunctionStaticAsset.js +49 -0
  70. package/dist/apispec/src/models/FunctionUpdateRequest.d.ts +7 -0
  71. package/dist/apispec/src/models/FunctionUpdateRequest.d.ts.map +1 -1
  72. package/dist/apispec/src/models/FunctionUpdateRequest.js +3 -0
  73. package/dist/apispec/src/models/MCPProtocolRule.d.ts +34 -0
  74. package/dist/apispec/src/models/MCPProtocolRule.d.ts.map +1 -0
  75. package/dist/apispec/src/models/MCPProtocolRule.js +42 -0
  76. package/dist/apispec/src/models/MCPToolPolicy.d.ts +39 -0
  77. package/dist/apispec/src/models/MCPToolPolicy.d.ts.map +1 -0
  78. package/dist/apispec/src/models/MCPToolPolicy.js +43 -0
  79. package/dist/apispec/src/models/NetworkEgressPolicy.d.ts +9 -0
  80. package/dist/apispec/src/models/NetworkEgressPolicy.d.ts.map +1 -1
  81. package/dist/apispec/src/models/NetworkEgressPolicy.js +3 -0
  82. package/dist/apispec/src/models/ProtocolRule.d.ts +74 -0
  83. package/dist/apispec/src/models/ProtocolRule.d.ts.map +1 -0
  84. package/dist/apispec/src/models/ProtocolRule.js +60 -0
  85. package/dist/apispec/src/models/ProtocolRuleProtocol.d.ts +25 -0
  86. package/dist/apispec/src/models/ProtocolRuleProtocol.d.ts.map +1 -0
  87. package/dist/apispec/src/models/ProtocolRuleProtocol.js +42 -0
  88. package/dist/apispec/src/models/SandboxAppServiceRuntime.d.ts +3 -3
  89. package/dist/apispec/src/models/SandboxPowerState.d.ts +2 -2
  90. package/dist/apispec/src/models/SandboxPowerState.js +2 -2
  91. package/dist/apispec/src/models/SandboxSummary.d.ts +1 -0
  92. package/dist/apispec/src/models/SandboxSummary.d.ts.map +1 -1
  93. package/dist/apispec/src/models/SandboxSummary.js +2 -1
  94. package/dist/apispec/src/models/SuccessVolumeFileArchiveImportResponse.d.ts +40 -0
  95. package/dist/apispec/src/models/SuccessVolumeFileArchiveImportResponse.d.ts.map +1 -0
  96. package/dist/apispec/src/models/SuccessVolumeFileArchiveImportResponse.js +46 -0
  97. package/dist/apispec/src/models/VolumeFileArchiveImportResponse.d.ts +51 -0
  98. package/dist/apispec/src/models/VolumeFileArchiveImportResponse.d.ts.map +1 -0
  99. package/dist/apispec/src/models/VolumeFileArchiveImportResponse.js +55 -0
  100. package/dist/apispec/src/models/index.d.ts +20 -0
  101. package/dist/apispec/src/models/index.d.ts.map +1 -1
  102. package/dist/apispec/src/models/index.js +20 -0
  103. package/dist/apispec_compat.d.ts +145 -2
  104. package/dist/apispec_compat.d.ts.map +1 -1
  105. package/dist/index.d.ts +2 -2
  106. package/dist/index.d.ts.map +1 -1
  107. package/dist/index.js +1 -1
  108. package/dist/resources/functions.d.ts +6 -1
  109. package/dist/resources/functions.d.ts.map +1 -1
  110. package/dist/resources/functions.js +33 -3
  111. package/dist/resources/volumes.d.ts +2 -1
  112. package/dist/resources/volumes.d.ts.map +1 -1
  113. package/dist/resources/volumes.js +9 -0
  114. package/package.json +1 -1
@@ -0,0 +1,44 @@
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
+ *
16
+ * @export
17
+ */
18
+ export const FunctionRevisionSourceType = {
19
+ SandboxService: 'sandbox_service',
20
+ RevisionSpec: 'revision_spec',
21
+ Artifact: 'artifact'
22
+ };
23
+ export function instanceOfFunctionRevisionSourceType(value) {
24
+ for (const key in FunctionRevisionSourceType) {
25
+ if (Object.prototype.hasOwnProperty.call(FunctionRevisionSourceType, key)) {
26
+ if (FunctionRevisionSourceType[key] === value) {
27
+ return true;
28
+ }
29
+ }
30
+ }
31
+ return false;
32
+ }
33
+ export function FunctionRevisionSourceTypeFromJSON(json) {
34
+ return FunctionRevisionSourceTypeFromJSONTyped(json, false);
35
+ }
36
+ export function FunctionRevisionSourceTypeFromJSONTyped(json, ignoreDiscriminator) {
37
+ return json;
38
+ }
39
+ export function FunctionRevisionSourceTypeToJSON(value) {
40
+ return value;
41
+ }
42
+ export function FunctionRevisionSourceTypeToJSONTyped(value, ignoreDiscriminator) {
43
+ return value;
44
+ }
@@ -0,0 +1,61 @@
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 { SandboxAppService } from './SandboxAppService.js';
13
+ import type { FunctionRevisionMount } from './FunctionRevisionMount.js';
14
+ import type { FunctionEnvRef } from './FunctionEnvRef.js';
15
+ import type { FunctionStaticAsset } from './FunctionStaticAsset.js';
16
+ /**
17
+ * Immutable execution contract used by Function Gateway to serve a revision.
18
+ * @export
19
+ * @interface FunctionRevisionSpec
20
+ */
21
+ export interface FunctionRevisionSpec {
22
+ /**
23
+ * SandboxTemplate ID used to claim runtime sandboxes for this revision.
24
+ * @type {string}
25
+ * @memberof FunctionRevisionSpec
26
+ */
27
+ templateId: string;
28
+ /**
29
+ *
30
+ * @type {SandboxAppService}
31
+ * @memberof FunctionRevisionSpec
32
+ */
33
+ runtimeService: SandboxAppService;
34
+ /**
35
+ * Volume or artifact mounts attached when runtime sandboxes are claimed.
36
+ * @type {Array<FunctionRevisionMount>}
37
+ * @memberof FunctionRevisionSpec
38
+ */
39
+ mounts?: Array<FunctionRevisionMount>;
40
+ /**
41
+ * Static asset artifacts associated with the revision for future direct serving paths.
42
+ * @type {Array<FunctionStaticAsset>}
43
+ * @memberof FunctionRevisionSpec
44
+ */
45
+ staticAssets?: Array<FunctionStaticAsset>;
46
+ /**
47
+ * Environment references resolved by future deployment flows.
48
+ * @type {Array<FunctionEnvRef>}
49
+ * @memberof FunctionRevisionSpec
50
+ */
51
+ envRefs?: Array<FunctionEnvRef>;
52
+ }
53
+ /**
54
+ * Check if a given object implements the FunctionRevisionSpec interface.
55
+ */
56
+ export declare function instanceOfFunctionRevisionSpec(value: object): value is FunctionRevisionSpec;
57
+ export declare function FunctionRevisionSpecFromJSON(json: any): FunctionRevisionSpec;
58
+ export declare function FunctionRevisionSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): FunctionRevisionSpec;
59
+ export declare function FunctionRevisionSpecToJSON(json: any): FunctionRevisionSpec;
60
+ export declare function FunctionRevisionSpecToJSONTyped(value?: FunctionRevisionSpec | null, ignoreDiscriminator?: boolean): any;
61
+ //# sourceMappingURL=FunctionRevisionSpec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FunctionRevisionSpec.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/FunctionRevisionSpec.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAO7D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAOrE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAOvD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAQjE;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACjC;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,cAAc,EAAE,iBAAiB,CAAC;IAClC;;;;OAIG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,qBAAqB,CAAC,CAAC;IACtC;;;;OAIG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,mBAAmB,CAAC,CAAC;IAC1C;;;;OAIG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC;CACnC;AAED;;GAEG;AACH,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,oBAAoB,CAI3F;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,GAAG,oBAAoB,CAE5E;AAED,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,oBAAoB,CAY/G;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,GAAG,oBAAoB,CAE1E;AAED,wBAAgB,+BAA+B,CAAC,KAAK,CAAC,EAAE,oBAAoB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAa9H"}
@@ -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
+ import { SandboxAppServiceFromJSON, SandboxAppServiceToJSON, } from './SandboxAppService.js';
15
+ import { FunctionRevisionMountFromJSON, FunctionRevisionMountToJSON, } from './FunctionRevisionMount.js';
16
+ import { FunctionEnvRefFromJSON, FunctionEnvRefToJSON, } from './FunctionEnvRef.js';
17
+ import { FunctionStaticAssetFromJSON, FunctionStaticAssetToJSON, } from './FunctionStaticAsset.js';
18
+ /**
19
+ * Check if a given object implements the FunctionRevisionSpec interface.
20
+ */
21
+ export function instanceOfFunctionRevisionSpec(value) {
22
+ if (!('templateId' in value) || value['templateId'] === undefined)
23
+ return false;
24
+ if (!('runtimeService' in value) || value['runtimeService'] === undefined)
25
+ return false;
26
+ return true;
27
+ }
28
+ export function FunctionRevisionSpecFromJSON(json) {
29
+ return FunctionRevisionSpecFromJSONTyped(json, false);
30
+ }
31
+ export function FunctionRevisionSpecFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'templateId': json['template_id'],
37
+ 'runtimeService': SandboxAppServiceFromJSON(json['runtime_service']),
38
+ 'mounts': json['mounts'] == null ? undefined : (json['mounts'].map(FunctionRevisionMountFromJSON)),
39
+ 'staticAssets': json['static_assets'] == null ? undefined : (json['static_assets'].map(FunctionStaticAssetFromJSON)),
40
+ 'envRefs': json['env_refs'] == null ? undefined : (json['env_refs'].map(FunctionEnvRefFromJSON)),
41
+ };
42
+ }
43
+ export function FunctionRevisionSpecToJSON(json) {
44
+ return FunctionRevisionSpecToJSONTyped(json, false);
45
+ }
46
+ export function FunctionRevisionSpecToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'template_id': value['templateId'],
52
+ 'runtime_service': SandboxAppServiceToJSON(value['runtimeService']),
53
+ 'mounts': value['mounts'] == null ? undefined : (value['mounts'].map(FunctionRevisionMountToJSON)),
54
+ 'static_assets': value['staticAssets'] == null ? undefined : (value['staticAssets'].map(FunctionStaticAssetToJSON)),
55
+ 'env_refs': value['envRefs'] == null ? undefined : (value['envRefs'].map(FunctionEnvRefToJSON)),
56
+ };
57
+ }
@@ -0,0 +1,107 @@
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 { FunctionRuntimePhase } from './FunctionRuntimePhase.js';
13
+ import type { FunctionRuntimeReadinessState } from './FunctionRuntimeReadinessState.js';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface FunctionRuntimeEvent
18
+ */
19
+ export interface FunctionRuntimeEvent {
20
+ /**
21
+ *
22
+ * @type {string}
23
+ * @memberof FunctionRuntimeEvent
24
+ */
25
+ id: string;
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof FunctionRuntimeEvent
30
+ */
31
+ teamId: string;
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof FunctionRuntimeEvent
36
+ */
37
+ functionId: string;
38
+ /**
39
+ *
40
+ * @type {string}
41
+ * @memberof FunctionRuntimeEvent
42
+ */
43
+ revisionId: string;
44
+ /**
45
+ *
46
+ * @type {string}
47
+ * @memberof FunctionRuntimeEvent
48
+ */
49
+ runtimeInstanceId?: string;
50
+ /**
51
+ *
52
+ * @type {string}
53
+ * @memberof FunctionRuntimeEvent
54
+ */
55
+ runtimeSandboxId?: string;
56
+ /**
57
+ *
58
+ * @type {string}
59
+ * @memberof FunctionRuntimeEvent
60
+ */
61
+ runtimeContextId?: string;
62
+ /**
63
+ *
64
+ * @type {FunctionRuntimePhase}
65
+ * @memberof FunctionRuntimeEvent
66
+ */
67
+ phase: FunctionRuntimePhase;
68
+ /**
69
+ *
70
+ * @type {FunctionRuntimeReadinessState}
71
+ * @memberof FunctionRuntimeEvent
72
+ */
73
+ readinessState: FunctionRuntimeReadinessState;
74
+ /**
75
+ *
76
+ * @type {string}
77
+ * @memberof FunctionRuntimeEvent
78
+ */
79
+ reason?: string;
80
+ /**
81
+ *
82
+ * @type {string}
83
+ * @memberof FunctionRuntimeEvent
84
+ */
85
+ message?: string;
86
+ /**
87
+ *
88
+ * @type {number}
89
+ * @memberof FunctionRuntimeEvent
90
+ */
91
+ startupDurationMs?: number;
92
+ /**
93
+ *
94
+ * @type {Date}
95
+ * @memberof FunctionRuntimeEvent
96
+ */
97
+ createdAt: Date;
98
+ }
99
+ /**
100
+ * Check if a given object implements the FunctionRuntimeEvent interface.
101
+ */
102
+ export declare function instanceOfFunctionRuntimeEvent(value: object): value is FunctionRuntimeEvent;
103
+ export declare function FunctionRuntimeEventFromJSON(json: any): FunctionRuntimeEvent;
104
+ export declare function FunctionRuntimeEventFromJSONTyped(json: any, ignoreDiscriminator: boolean): FunctionRuntimeEvent;
105
+ export declare function FunctionRuntimeEventToJSON(json: any): FunctionRuntimeEvent;
106
+ export declare function FunctionRuntimeEventToJSONTyped(value?: FunctionRuntimeEvent | null, ignoreDiscriminator?: boolean): any;
107
+ //# sourceMappingURL=FunctionRuntimeEvent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FunctionRuntimeEvent.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/FunctionRuntimeEvent.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAOnE,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAQrF;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACjC;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,KAAK,EAAE,oBAAoB,CAAC;IAC5B;;;;OAIG;IACH,cAAc,EAAE,6BAA6B,CAAC;IAC9C;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;;;OAIG;IACH,SAAS,EAAE,IAAI,CAAC;CACnB;AAID;;GAEG;AACH,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,oBAAoB,CAS3F;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,GAAG,oBAAoB,CAE5E;AAED,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,oBAAoB,CAoB/G;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,GAAG,oBAAoB,CAE1E;AAED,wBAAgB,+BAA+B,CAAC,KAAK,CAAC,EAAE,oBAAoB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAqB9H"}
@@ -0,0 +1,81 @@
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 { FunctionRuntimePhaseFromJSON, FunctionRuntimePhaseToJSON, } from './FunctionRuntimePhase.js';
15
+ import { FunctionRuntimeReadinessStateFromJSON, FunctionRuntimeReadinessStateToJSON, } from './FunctionRuntimeReadinessState.js';
16
+ /**
17
+ * Check if a given object implements the FunctionRuntimeEvent interface.
18
+ */
19
+ export function instanceOfFunctionRuntimeEvent(value) {
20
+ if (!('id' in value) || value['id'] === undefined)
21
+ return false;
22
+ if (!('teamId' in value) || value['teamId'] === undefined)
23
+ return false;
24
+ if (!('functionId' in value) || value['functionId'] === undefined)
25
+ return false;
26
+ if (!('revisionId' in value) || value['revisionId'] === undefined)
27
+ return false;
28
+ if (!('phase' in value) || value['phase'] === undefined)
29
+ return false;
30
+ if (!('readinessState' in value) || value['readinessState'] === undefined)
31
+ return false;
32
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
33
+ return false;
34
+ return true;
35
+ }
36
+ export function FunctionRuntimeEventFromJSON(json) {
37
+ return FunctionRuntimeEventFromJSONTyped(json, false);
38
+ }
39
+ export function FunctionRuntimeEventFromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'id': json['id'],
45
+ 'teamId': json['team_id'],
46
+ 'functionId': json['function_id'],
47
+ 'revisionId': json['revision_id'],
48
+ 'runtimeInstanceId': json['runtime_instance_id'] == null ? undefined : json['runtime_instance_id'],
49
+ 'runtimeSandboxId': json['runtime_sandbox_id'] == null ? undefined : json['runtime_sandbox_id'],
50
+ 'runtimeContextId': json['runtime_context_id'] == null ? undefined : json['runtime_context_id'],
51
+ 'phase': FunctionRuntimePhaseFromJSON(json['phase']),
52
+ 'readinessState': FunctionRuntimeReadinessStateFromJSON(json['readiness_state']),
53
+ 'reason': json['reason'] == null ? undefined : json['reason'],
54
+ 'message': json['message'] == null ? undefined : json['message'],
55
+ 'startupDurationMs': json['startup_duration_ms'] == null ? undefined : json['startup_duration_ms'],
56
+ 'createdAt': (new Date(json['created_at'])),
57
+ };
58
+ }
59
+ export function FunctionRuntimeEventToJSON(json) {
60
+ return FunctionRuntimeEventToJSONTyped(json, false);
61
+ }
62
+ export function FunctionRuntimeEventToJSONTyped(value, ignoreDiscriminator = false) {
63
+ if (value == null) {
64
+ return value;
65
+ }
66
+ return {
67
+ 'id': value['id'],
68
+ 'team_id': value['teamId'],
69
+ 'function_id': value['functionId'],
70
+ 'revision_id': value['revisionId'],
71
+ 'runtime_instance_id': value['runtimeInstanceId'],
72
+ 'runtime_sandbox_id': value['runtimeSandboxId'],
73
+ 'runtime_context_id': value['runtimeContextId'],
74
+ 'phase': FunctionRuntimePhaseToJSON(value['phase']),
75
+ 'readiness_state': FunctionRuntimeReadinessStateToJSON(value['readinessState']),
76
+ 'reason': value['reason'],
77
+ 'message': value['message'],
78
+ 'startup_duration_ms': value['startupDurationMs'],
79
+ 'created_at': value['createdAt'].toISOString(),
80
+ };
81
+ }
@@ -0,0 +1,131 @@
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 { FunctionRuntimeReadinessState } from './FunctionRuntimeReadinessState.js';
13
+ import type { FunctionRuntimeInstanceState } from './FunctionRuntimeInstanceState.js';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface FunctionRuntimeInstance
18
+ */
19
+ export interface FunctionRuntimeInstance {
20
+ /**
21
+ *
22
+ * @type {string}
23
+ * @memberof FunctionRuntimeInstance
24
+ */
25
+ id: string;
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof FunctionRuntimeInstance
30
+ */
31
+ teamId: string;
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof FunctionRuntimeInstance
36
+ */
37
+ functionId: string;
38
+ /**
39
+ *
40
+ * @type {string}
41
+ * @memberof FunctionRuntimeInstance
42
+ */
43
+ revisionId: string;
44
+ /**
45
+ *
46
+ * @type {string}
47
+ * @memberof FunctionRuntimeInstance
48
+ */
49
+ sandboxId: string;
50
+ /**
51
+ *
52
+ * @type {string}
53
+ * @memberof FunctionRuntimeInstance
54
+ */
55
+ contextId?: string;
56
+ /**
57
+ *
58
+ * @type {FunctionRuntimeInstanceState}
59
+ * @memberof FunctionRuntimeInstance
60
+ */
61
+ state: FunctionRuntimeInstanceState;
62
+ /**
63
+ *
64
+ * @type {FunctionRuntimeReadinessState}
65
+ * @memberof FunctionRuntimeInstance
66
+ */
67
+ readinessState: FunctionRuntimeReadinessState;
68
+ /**
69
+ *
70
+ * @type {number}
71
+ * @memberof FunctionRuntimeInstance
72
+ */
73
+ startupDurationMs?: number;
74
+ /**
75
+ *
76
+ * @type {string}
77
+ * @memberof FunctionRuntimeInstance
78
+ */
79
+ lastError?: string;
80
+ /**
81
+ *
82
+ * @type {Date}
83
+ * @memberof FunctionRuntimeInstance
84
+ */
85
+ lastErrorAt?: Date;
86
+ /**
87
+ *
88
+ * @type {Date}
89
+ * @memberof FunctionRuntimeInstance
90
+ */
91
+ readyAt?: Date;
92
+ /**
93
+ *
94
+ * @type {Date}
95
+ * @memberof FunctionRuntimeInstance
96
+ */
97
+ lastUsedAt?: Date;
98
+ /**
99
+ *
100
+ * @type {Date}
101
+ * @memberof FunctionRuntimeInstance
102
+ */
103
+ drainingAt?: Date;
104
+ /**
105
+ *
106
+ * @type {Date}
107
+ * @memberof FunctionRuntimeInstance
108
+ */
109
+ failedAt?: Date;
110
+ /**
111
+ *
112
+ * @type {Date}
113
+ * @memberof FunctionRuntimeInstance
114
+ */
115
+ createdAt: Date;
116
+ /**
117
+ *
118
+ * @type {Date}
119
+ * @memberof FunctionRuntimeInstance
120
+ */
121
+ updatedAt: Date;
122
+ }
123
+ /**
124
+ * Check if a given object implements the FunctionRuntimeInstance interface.
125
+ */
126
+ export declare function instanceOfFunctionRuntimeInstance(value: object): value is FunctionRuntimeInstance;
127
+ export declare function FunctionRuntimeInstanceFromJSON(json: any): FunctionRuntimeInstance;
128
+ export declare function FunctionRuntimeInstanceFromJSONTyped(json: any, ignoreDiscriminator: boolean): FunctionRuntimeInstance;
129
+ export declare function FunctionRuntimeInstanceToJSON(json: any): FunctionRuntimeInstance;
130
+ export declare function FunctionRuntimeInstanceToJSONTyped(value?: FunctionRuntimeInstance | null, ignoreDiscriminator?: boolean): any;
131
+ //# sourceMappingURL=FunctionRuntimeInstance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FunctionRuntimeInstance.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/FunctionRuntimeInstance.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAOrF,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAQnF;;;;GAIG;AACH,MAAM,WAAW,uBAAuB;IACpC;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,KAAK,EAAE,4BAA4B,CAAC;IACpC;;;;OAIG;IACH,cAAc,EAAE,6BAA6B,CAAC;IAC9C;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,WAAW,CAAC,EAAE,IAAI,CAAC;IACnB;;;;OAIG;IACH,OAAO,CAAC,EAAE,IAAI,CAAC;IACf;;;;OAIG;IACH,UAAU,CAAC,EAAE,IAAI,CAAC;IAClB;;;;OAIG;IACH,UAAU,CAAC,EAAE,IAAI,CAAC;IAClB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,IAAI,CAAC;IAChB;;;;OAIG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;;;OAIG;IACH,SAAS,EAAE,IAAI,CAAC;CACnB;AAID;;GAEG;AACH,wBAAgB,iCAAiC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,uBAAuB,CAWjG;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,GAAG,GAAG,uBAAuB,CAElF;AAED,wBAAgB,oCAAoC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,uBAAuB,CAwBrH;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,GAAG,uBAAuB,CAEhF;AAED,wBAAgB,kCAAkC,CAAC,KAAK,CAAC,EAAE,uBAAuB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAyBpI"}
@@ -0,0 +1,93 @@
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 { FunctionRuntimeReadinessStateFromJSON, FunctionRuntimeReadinessStateToJSON, } from './FunctionRuntimeReadinessState.js';
15
+ import { FunctionRuntimeInstanceStateFromJSON, FunctionRuntimeInstanceStateToJSON, } from './FunctionRuntimeInstanceState.js';
16
+ /**
17
+ * Check if a given object implements the FunctionRuntimeInstance interface.
18
+ */
19
+ export function instanceOfFunctionRuntimeInstance(value) {
20
+ if (!('id' in value) || value['id'] === undefined)
21
+ return false;
22
+ if (!('teamId' in value) || value['teamId'] === undefined)
23
+ return false;
24
+ if (!('functionId' in value) || value['functionId'] === undefined)
25
+ return false;
26
+ if (!('revisionId' in value) || value['revisionId'] === undefined)
27
+ return false;
28
+ if (!('sandboxId' in value) || value['sandboxId'] === undefined)
29
+ return false;
30
+ if (!('state' in value) || value['state'] === undefined)
31
+ return false;
32
+ if (!('readinessState' in value) || value['readinessState'] === undefined)
33
+ return false;
34
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
35
+ return false;
36
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
37
+ return false;
38
+ return true;
39
+ }
40
+ export function FunctionRuntimeInstanceFromJSON(json) {
41
+ return FunctionRuntimeInstanceFromJSONTyped(json, false);
42
+ }
43
+ export function FunctionRuntimeInstanceFromJSONTyped(json, ignoreDiscriminator) {
44
+ if (json == null) {
45
+ return json;
46
+ }
47
+ return {
48
+ 'id': json['id'],
49
+ 'teamId': json['team_id'],
50
+ 'functionId': json['function_id'],
51
+ 'revisionId': json['revision_id'],
52
+ 'sandboxId': json['sandbox_id'],
53
+ 'contextId': json['context_id'] == null ? undefined : json['context_id'],
54
+ 'state': FunctionRuntimeInstanceStateFromJSON(json['state']),
55
+ 'readinessState': FunctionRuntimeReadinessStateFromJSON(json['readiness_state']),
56
+ 'startupDurationMs': json['startup_duration_ms'] == null ? undefined : json['startup_duration_ms'],
57
+ 'lastError': json['last_error'] == null ? undefined : json['last_error'],
58
+ 'lastErrorAt': json['last_error_at'] == null ? undefined : (new Date(json['last_error_at'])),
59
+ 'readyAt': json['ready_at'] == null ? undefined : (new Date(json['ready_at'])),
60
+ 'lastUsedAt': json['last_used_at'] == null ? undefined : (new Date(json['last_used_at'])),
61
+ 'drainingAt': json['draining_at'] == null ? undefined : (new Date(json['draining_at'])),
62
+ 'failedAt': json['failed_at'] == null ? undefined : (new Date(json['failed_at'])),
63
+ 'createdAt': (new Date(json['created_at'])),
64
+ 'updatedAt': (new Date(json['updated_at'])),
65
+ };
66
+ }
67
+ export function FunctionRuntimeInstanceToJSON(json) {
68
+ return FunctionRuntimeInstanceToJSONTyped(json, false);
69
+ }
70
+ export function FunctionRuntimeInstanceToJSONTyped(value, ignoreDiscriminator = false) {
71
+ if (value == null) {
72
+ return value;
73
+ }
74
+ return {
75
+ 'id': value['id'],
76
+ 'team_id': value['teamId'],
77
+ 'function_id': value['functionId'],
78
+ 'revision_id': value['revisionId'],
79
+ 'sandbox_id': value['sandboxId'],
80
+ 'context_id': value['contextId'],
81
+ 'state': FunctionRuntimeInstanceStateToJSON(value['state']),
82
+ 'readiness_state': FunctionRuntimeReadinessStateToJSON(value['readinessState']),
83
+ 'startup_duration_ms': value['startupDurationMs'],
84
+ 'last_error': value['lastError'],
85
+ 'last_error_at': value['lastErrorAt'] == null ? value['lastErrorAt'] : value['lastErrorAt'].toISOString(),
86
+ 'ready_at': value['readyAt'] == null ? value['readyAt'] : value['readyAt'].toISOString(),
87
+ 'last_used_at': value['lastUsedAt'] == null ? value['lastUsedAt'] : value['lastUsedAt'].toISOString(),
88
+ 'draining_at': value['drainingAt'] == null ? value['drainingAt'] : value['drainingAt'].toISOString(),
89
+ 'failed_at': value['failedAt'] == null ? value['failedAt'] : value['failedAt'].toISOString(),
90
+ 'created_at': value['createdAt'].toISOString(),
91
+ 'updated_at': value['updatedAt'].toISOString(),
92
+ };
93
+ }
@@ -0,0 +1,28 @@
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
+ */
16
+ export declare const FunctionRuntimeInstanceState: {
17
+ readonly Starting: "starting";
18
+ readonly Ready: "ready";
19
+ readonly Draining: "draining";
20
+ readonly Failed: "failed";
21
+ };
22
+ export type FunctionRuntimeInstanceState = typeof FunctionRuntimeInstanceState[keyof typeof FunctionRuntimeInstanceState];
23
+ export declare function instanceOfFunctionRuntimeInstanceState(value: any): boolean;
24
+ export declare function FunctionRuntimeInstanceStateFromJSON(json: any): FunctionRuntimeInstanceState;
25
+ export declare function FunctionRuntimeInstanceStateFromJSONTyped(json: any, ignoreDiscriminator: boolean): FunctionRuntimeInstanceState;
26
+ export declare function FunctionRuntimeInstanceStateToJSON(value?: FunctionRuntimeInstanceState | null): any;
27
+ export declare function FunctionRuntimeInstanceStateToJSONTyped(value: any, ignoreDiscriminator: boolean): FunctionRuntimeInstanceState;
28
+ //# sourceMappingURL=FunctionRuntimeInstanceState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FunctionRuntimeInstanceState.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/FunctionRuntimeInstanceState.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;GAGG;AACH,eAAO,MAAM,4BAA4B;;;;;CAK/B,CAAC;AACX,MAAM,MAAM,4BAA4B,GAAG,OAAO,4BAA4B,CAAC,MAAM,OAAO,4BAA4B,CAAC,CAAC;AAG1H,wBAAgB,sCAAsC,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CAS1E;AAED,wBAAgB,oCAAoC,CAAC,IAAI,EAAE,GAAG,GAAG,4BAA4B,CAE5F;AAED,wBAAgB,yCAAyC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,4BAA4B,CAE/H;AAED,wBAAgB,kCAAkC,CAAC,KAAK,CAAC,EAAE,4BAA4B,GAAG,IAAI,GAAG,GAAG,CAEnG;AAED,wBAAgB,uCAAuC,CAAC,KAAK,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,4BAA4B,CAE9H"}
@@ -0,0 +1,45 @@
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
+ *
16
+ * @export
17
+ */
18
+ export const FunctionRuntimeInstanceState = {
19
+ Starting: 'starting',
20
+ Ready: 'ready',
21
+ Draining: 'draining',
22
+ Failed: 'failed'
23
+ };
24
+ export function instanceOfFunctionRuntimeInstanceState(value) {
25
+ for (const key in FunctionRuntimeInstanceState) {
26
+ if (Object.prototype.hasOwnProperty.call(FunctionRuntimeInstanceState, key)) {
27
+ if (FunctionRuntimeInstanceState[key] === value) {
28
+ return true;
29
+ }
30
+ }
31
+ }
32
+ return false;
33
+ }
34
+ export function FunctionRuntimeInstanceStateFromJSON(json) {
35
+ return FunctionRuntimeInstanceStateFromJSONTyped(json, false);
36
+ }
37
+ export function FunctionRuntimeInstanceStateFromJSONTyped(json, ignoreDiscriminator) {
38
+ return json;
39
+ }
40
+ export function FunctionRuntimeInstanceStateToJSON(value) {
41
+ return value;
42
+ }
43
+ export function FunctionRuntimeInstanceStateToJSONTyped(value, ignoreDiscriminator) {
44
+ return value;
45
+ }