sandbox0 0.5.3 → 0.6.0

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 (99) hide show
  1. package/README.md +0 -1
  2. package/dist/apispec/src/apis/index.d.ts +0 -1
  3. package/dist/apispec/src/apis/index.d.ts.map +1 -1
  4. package/dist/apispec/src/apis/index.js +0 -1
  5. package/dist/apispec/src/models/AppArmorProfile.d.ts +48 -0
  6. package/dist/apispec/src/models/AppArmorProfile.d.ts.map +1 -0
  7. package/dist/apispec/src/models/AppArmorProfile.js +53 -0
  8. package/dist/apispec/src/models/Capabilities.d.ts +6 -0
  9. package/dist/apispec/src/models/Capabilities.d.ts.map +1 -1
  10. package/dist/apispec/src/models/Capabilities.js +2 -0
  11. package/dist/apispec/src/models/EmptyDirMountSpec.d.ts +39 -0
  12. package/dist/apispec/src/models/EmptyDirMountSpec.d.ts.map +1 -0
  13. package/dist/apispec/src/models/EmptyDirMountSpec.js +45 -0
  14. package/dist/apispec/src/models/PauseSandboxResponse.d.ts +0 -7
  15. package/dist/apispec/src/models/PauseSandboxResponse.d.ts.map +1 -1
  16. package/dist/apispec/src/models/PauseSandboxResponse.js +0 -5
  17. package/dist/apispec/src/models/PodSpecOverride.d.ts +7 -0
  18. package/dist/apispec/src/models/PodSpecOverride.d.ts.map +1 -1
  19. package/dist/apispec/src/models/PodSpecOverride.js +3 -0
  20. package/dist/apispec/src/models/ResourceQuota.d.ts +6 -0
  21. package/dist/apispec/src/models/ResourceQuota.d.ts.map +1 -1
  22. package/dist/apispec/src/models/ResourceQuota.js +2 -0
  23. package/dist/apispec/src/models/ResumeSandboxResponse.d.ts +0 -7
  24. package/dist/apispec/src/models/ResumeSandboxResponse.d.ts.map +1 -1
  25. package/dist/apispec/src/models/ResumeSandboxResponse.js +0 -5
  26. package/dist/apispec/src/models/Sandbox.d.ts +13 -8
  27. package/dist/apispec/src/models/Sandbox.d.ts.map +1 -1
  28. package/dist/apispec/src/models/Sandbox.js +8 -5
  29. package/dist/apispec/src/models/SandboxAppService.d.ts +2 -2
  30. package/dist/apispec/src/models/SandboxAppService.d.ts.map +1 -1
  31. package/dist/apispec/src/models/SandboxAppService.js +1 -3
  32. package/dist/apispec/src/models/SandboxAppServiceRuntime.d.ts +5 -4
  33. package/dist/apispec/src/models/SandboxAppServiceRuntime.d.ts.map +1 -1
  34. package/dist/apispec/src/models/SandboxAppServiceRuntime.js +5 -4
  35. package/dist/apispec/src/models/SandboxAppServiceView.d.ts +2 -2
  36. package/dist/apispec/src/models/SandboxAppServiceView.d.ts.map +1 -1
  37. package/dist/apispec/src/models/SandboxAppServiceView.js +1 -3
  38. package/dist/apispec/src/models/SandboxConfig.d.ts +2 -2
  39. package/dist/apispec/src/models/SandboxFunction.d.ts +53 -0
  40. package/dist/apispec/src/models/SandboxFunction.d.ts.map +1 -0
  41. package/dist/apispec/src/models/SandboxFunction.js +56 -0
  42. package/dist/apispec/src/models/SandboxFunctionSource.d.ts +46 -0
  43. package/dist/apispec/src/models/SandboxFunctionSource.d.ts.map +1 -0
  44. package/dist/apispec/src/models/SandboxFunctionSource.js +53 -0
  45. package/dist/apispec/src/models/SandboxLifecycleStatus.d.ts +4 -3
  46. package/dist/apispec/src/models/SandboxLifecycleStatus.d.ts.map +1 -1
  47. package/dist/apispec/src/models/SandboxLifecycleStatus.js +4 -3
  48. package/dist/apispec/src/models/SandboxSummary.d.ts +10 -5
  49. package/dist/apispec/src/models/SandboxSummary.d.ts.map +1 -1
  50. package/dist/apispec/src/models/SandboxSummary.js +7 -4
  51. package/dist/apispec/src/models/SandboxTemplateSpec.d.ts +0 -7
  52. package/dist/apispec/src/models/SandboxTemplateSpec.d.ts.map +1 -1
  53. package/dist/apispec/src/models/SandboxTemplateSpec.js +0 -3
  54. package/dist/apispec/src/models/SandboxUpdateConfig.d.ts +2 -2
  55. package/dist/apispec/src/models/SeccompProfile.d.ts +48 -0
  56. package/dist/apispec/src/models/SeccompProfile.d.ts.map +1 -0
  57. package/dist/apispec/src/models/SeccompProfile.js +53 -0
  58. package/dist/apispec/src/models/SecurityContext.d.ts +38 -0
  59. package/dist/apispec/src/models/SecurityContext.d.ts.map +1 -1
  60. package/dist/apispec/src/models/SecurityContext.js +14 -0
  61. package/dist/apispec/src/models/index.d.ts +5 -7
  62. package/dist/apispec/src/models/index.d.ts.map +1 -1
  63. package/dist/apispec/src/models/index.js +5 -7
  64. package/dist/apispec_compat.d.ts +1 -1507
  65. package/dist/apispec_compat.d.ts.map +1 -1
  66. package/dist/apispec_compat.js +1 -10
  67. package/dist/client.d.ts +0 -1
  68. package/dist/client.d.ts.map +1 -1
  69. package/dist/client.js +0 -1
  70. package/dist/index.d.ts +0 -1
  71. package/dist/index.d.ts.map +1 -1
  72. package/dist/index.js +0 -1
  73. package/dist/response_normalize.d.ts.map +1 -1
  74. package/dist/response_normalize.js +0 -1
  75. package/dist/template_helpers.d.ts +1 -9
  76. package/dist/template_helpers.d.ts.map +1 -1
  77. package/dist/template_helpers.js +0 -10
  78. package/package.json +1 -1
  79. package/dist/apispec/src/apis/FunctionsApi.d.ts +0 -34
  80. package/dist/apispec/src/apis/FunctionsApi.d.ts.map +0 -1
  81. package/dist/apispec/src/apis/FunctionsApi.js +0 -64
  82. package/dist/apispec/src/models/FunctionInvokeRequest.d.ts +0 -73
  83. package/dist/apispec/src/models/FunctionInvokeRequest.d.ts.map +0 -1
  84. package/dist/apispec/src/models/FunctionInvokeRequest.js +0 -53
  85. package/dist/apispec/src/models/FunctionInvokeResponse.d.ts +0 -47
  86. package/dist/apispec/src/models/FunctionInvokeResponse.d.ts.map +0 -1
  87. package/dist/apispec/src/models/FunctionInvokeResponse.js +0 -47
  88. package/dist/apispec/src/models/SandboxPowerState.d.ts +0 -82
  89. package/dist/apispec/src/models/SandboxPowerState.d.ts.map +0 -1
  90. package/dist/apispec/src/models/SandboxPowerState.js +0 -81
  91. package/dist/apispec/src/models/SuccessFunctionInvokeResponse.d.ts +0 -40
  92. package/dist/apispec/src/models/SuccessFunctionInvokeResponse.d.ts.map +0 -1
  93. package/dist/apispec/src/models/SuccessFunctionInvokeResponse.js +0 -46
  94. package/dist/apispec/src/models/WarmProcessSpec.d.ts +0 -80
  95. package/dist/apispec/src/models/WarmProcessSpec.d.ts.map +0 -1
  96. package/dist/apispec/src/models/WarmProcessSpec.js +0 -63
  97. package/dist/sandbox_functions.d.ts +0 -7
  98. package/dist/sandbox_functions.d.ts.map +0 -1
  99. package/dist/sandbox_functions.js +0 -22
@@ -1 +1 @@
1
- {"version":3,"file":"apispec_compat.d.ts","sourceRoot":"","sources":["../src/apispec_compat.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,0BAA0B,CAAC;AACvD,OAAO,KAAK,YAAY,MAAM,4BAA4B,CAAC;AAC3D,OAAO,KAAK,aAAa,MAAM,uBAAuB,CAAC;AAUvD,eAAO,MAAM,OAAO,sBAA8B,CAAC;AACnD,eAAO,MAAM,IAAI,mBAA2B,CAAC;AAK7C,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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
+ {"version":3,"file":"apispec_compat.d.ts","sourceRoot":"","sources":["../src/apispec_compat.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,0BAA0B,CAAC;AACvD,OAAO,KAAK,YAAY,MAAM,4BAA4B,CAAC;AAC3D,OAAO,KAAK,aAAa,MAAM,uBAAuB,CAAC;AAUvD,eAAO,MAAM,OAAO,sBAA8B,CAAC;AACnD,eAAO,MAAM,IAAI,mBAA2B,CAAC;AAC7C,eAAO,MAAM,MAAM,qBAA6B,CAAC"}
@@ -7,13 +7,4 @@ function unwrapModule(mod) {
7
7
  }
8
8
  export const runtime = unwrapModule(runtimeImport);
9
9
  export const apis = unwrapModule(apisImport);
10
- const rawModels = unwrapModule(modelsImport);
11
- const warmProcessSpecTypeEnum = rawModels.WarmProcessSpecTypeEnum;
12
- export const models = {
13
- ...rawModels,
14
- WarmProcessSpecTypeEnum: {
15
- ...warmProcessSpecTypeEnum,
16
- Repl: warmProcessSpecTypeEnum.Repl ?? warmProcessSpecTypeEnum.WarmProcessSpecTypeRepl,
17
- Cmd: warmProcessSpecTypeEnum.Cmd ?? warmProcessSpecTypeEnum.WarmProcessSpecTypeCmd,
18
- },
19
- };
10
+ export const models = unwrapModule(modelsImport);
package/dist/client.d.ts CHANGED
@@ -23,7 +23,6 @@ export declare class Client {
23
23
  readonly apispec: {
24
24
  sandboxes: apisTypes.SandboxesApi;
25
25
  contexts: apisTypes.ContextsApi;
26
- functions: apisTypes.FunctionsApi;
27
26
  files: apisTypes.FilesApi;
28
27
  sandboxVolumes: apisTypes.SandboxVolumesApi;
29
28
  snapshots: apisTypes.SnapshotsApi;
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,YAAY,MAAM,uBAAuB,CAAC;AAC3D,OAAO,KAAK,KAAK,SAAS,MAAM,0BAA0B,CAAC;AAG3D,OAAO,EAAE,iBAAiB,EAAE,MAA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C3B,OAAO,CAAC,WAAW,CAAC;IAiBjB,iBAAiB,CACrB,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,kBAAkB,GAC3B,OAAO,CAAC,iBAAiB,CAAC;IA6B7B,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;IAc5B,SAAS,IAAI,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;YAWpC,QAAQ;CAiCvB"}
package/dist/client.js CHANGED
@@ -44,7 +44,6 @@ export class Client {
44
44
  this.apispec = {
45
45
  sandboxes: new apis.SandboxesApi(this.configuration),
46
46
  contexts: new apis.ContextsApi(this.configuration),
47
- functions: new apis.FunctionsApi(this.configuration),
48
47
  files: new apis.FilesApi(this.configuration),
49
48
  sandboxVolumes: new apis.SandboxVolumesApi(this.configuration),
50
49
  snapshots: new apis.SnapshotsApi(this.configuration),
package/dist/index.d.ts CHANGED
@@ -8,7 +8,6 @@ export * from "./sessions.js";
8
8
  export { apis, models, runtime } from "./apispec_compat.js";
9
9
  export * as apispec from "./apispec_compat.js";
10
10
  import "./sandbox_contexts.js";
11
- import "./sandbox_functions.js";
12
11
  import "./sandbox_files.js";
13
12
  import "./sandbox_network.js";
14
13
  import "./sandbox_services.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,aAAa,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AACxE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACpC,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,oBAAoB,CAAC;AAC5B,OAAO,qBAAqB,CAAC;AAC7B,OAAO,iBAAiB,CAAC;AACzB,OAAO,mBAAmB,CAAC;AAC3B,OAAO,oBAAoB,CAAC;AAC5B,OAAO,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,aAAa,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AACxE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACpC,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,oBAAoB,CAAC;AAC5B,OAAO,iBAAiB,CAAC;AACzB,OAAO,mBAAmB,CAAC;AAC3B,OAAO,oBAAoB,CAAC;AAC5B,OAAO,gBAAgB,CAAC"}
package/dist/index.js CHANGED
@@ -8,7 +8,6 @@ export * from "./sessions.js";
8
8
  export { apis, models, runtime } from "./apispec_compat.js";
9
9
  export * as apispec from "./apispec_compat.js";
10
10
  import "./sandbox_contexts.js";
11
- import "./sandbox_functions.js";
12
11
  import "./sandbox_files.js";
13
12
  import "./sandbox_network.js";
14
13
  import "./sandbox_services.js";
@@ -1 +1 @@
1
- {"version":3,"file":"response_normalize.d.ts","sourceRoot":"","sources":["../src/response_normalize.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAmB,MAAM,uBAAuB,CAAC;AA8HzE,wBAAgB,0BAA0B,IAAI,UAAU,CAIvD"}
1
+ {"version":3,"file":"response_normalize.d.ts","sourceRoot":"","sources":["../src/response_normalize.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAmB,MAAM,uBAAuB,CAAC;AA6HzE,wBAAgB,0BAA0B,IAAI,UAAU,CAIvD"}
@@ -40,7 +40,6 @@ const NULL_ARRAY_KEYS = new Set([
40
40
  "templates",
41
41
  "tolerations",
42
42
  "values",
43
- "warmProcesses",
44
43
  ]);
45
44
  function normalizeNullStringMap(value) {
46
45
  let changed = false;
@@ -1,9 +1,8 @@
1
- import type { ContainerSpec, EnvVar, LifecyclePolicy, PoolStrategy, ResourceQuota, SandboxNetworkPolicy, SandboxTemplateSpec, TemplateCreateRequest, TemplateUpdateRequest, WarmProcessSpec } from "./apispec/src/models/index.js";
1
+ import type { ContainerSpec, EnvVar, LifecyclePolicy, PoolStrategy, ResourceQuota, SandboxNetworkPolicy, SandboxTemplateSpec, TemplateCreateRequest, TemplateUpdateRequest } from "./apispec/src/models/index.js";
2
2
  export interface TemplateSpecInit {
3
3
  description?: string;
4
4
  displayName?: string;
5
5
  tags?: string[];
6
- warmProcesses?: WarmProcessSpec[];
7
6
  pod?: SandboxTemplateSpec["pod"];
8
7
  network?: SandboxNetworkPolicy;
9
8
  pool?: PoolStrategy;
@@ -18,15 +17,8 @@ export interface ContainerInit {
18
17
  env?: EnvVar[];
19
18
  securityContext?: ContainerSpec["securityContext"];
20
19
  }
21
- export interface WarmProcessInit {
22
- alias?: string;
23
- command?: string[];
24
- cwd?: string;
25
- envVars?: Record<string, string>;
26
- }
27
20
  export declare function resources(cpu: string, memory: string): ResourceQuota;
28
21
  export declare function container(image: string, containerResources: ResourceQuota, init?: ContainerInit): ContainerSpec;
29
- export declare function warmProcess(type: WarmProcessSpec["type"], init?: WarmProcessInit): WarmProcessSpec;
30
22
  export declare function templateSpec(mainContainer: ContainerSpec, init?: TemplateSpecInit): SandboxTemplateSpec;
31
23
  export declare function templateCreateRequest(templateId: string, spec: SandboxTemplateSpec): TemplateCreateRequest;
32
24
  export declare function templateUpdateRequest(spec: SandboxTemplateSpec): TemplateUpdateRequest;
@@ -1 +1 @@
1
- {"version":3,"file":"template_helpers.d.ts","sourceRoot":"","sources":["../src/template_helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,MAAM,EACN,eAAe,EACf,YAAY,EACZ,aAAa,EACb,oBAAoB,EACpB,mBAAmB,EACnB,qBAAqB,EACrB,qBAAqB,EACrB,eAAe,EAChB,MAAM,4BAA4B,CAAC;AAEpC,MAAM,WAAW,gBAAgB;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,aAAa,CAAC,EAAE,eAAe,EAAE,CAAC;IAClC,GAAG,CAAC,EAAE,mBAAmB,CAAC,KAAK,CAAC,CAAC;IACjC,OAAO,CAAC,EAAE,oBAAoB,CAAC;IAC/B,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,aAAa;IAC5B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC;IACf,eAAe,CAAC,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAC;CACpD;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,E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ACjC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,aAAa;IAC5B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC;IACf,eAAe,CAAC,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAC;CACpD;AAED,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,aAAa,CAEpE;AAED,wBAAgB,SAAS,CACvB,KAAK,EAAE,MAAM,EACb,kBAAkB,EAAE,aAAa,EACjC,IAAI,GAAE,aAAkB,GACvB,aAAa,CAQf;AAED,wBAAgB,YAAY,CAC1B,aAAa,EAAE,aAAa,EAC5B,IAAI,GAAE,gBAAqB,GAC1B,mBAAmB,CAerB;AAED,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,mBAAmB,GACxB,qBAAqB,CAEvB;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,mBAAmB,GAAG,qBAAqB,CAEtF"}
@@ -10,22 +10,12 @@ export function container(image, containerResources, init = {}) {
10
10
  ...(init.securityContext ? { securityContext: init.securityContext } : {}),
11
11
  };
12
12
  }
13
- export function warmProcess(type, init = {}) {
14
- return {
15
- type,
16
- ...(init.alias ? { alias: init.alias } : {}),
17
- ...(init.command ? { command: [...init.command] } : {}),
18
- ...(init.cwd ? { cwd: init.cwd } : {}),
19
- ...(init.envVars ? { envVars: { ...init.envVars } } : {}),
20
- };
21
- }
22
13
  export function templateSpec(mainContainer, init = {}) {
23
14
  return {
24
15
  mainContainer,
25
16
  ...(init.description ? { description: init.description } : {}),
26
17
  ...(init.displayName ? { displayName: init.displayName } : {}),
27
18
  ...(init.tags ? { tags: [...init.tags] } : {}),
28
- ...(init.warmProcesses ? { warmProcesses: [...init.warmProcesses] } : {}),
29
19
  ...(init.pod ? { pod: init.pod } : {}),
30
20
  ...(init.network ? { network: init.network } : {}),
31
21
  ...(init.pool ? { pool: init.pool } : {}),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sandbox0",
3
- "version": "0.5.3",
3
+ "version": "0.6.0",
4
4
  "description": "Sandbox0 JavaScript/TypeScript SDK",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Sandbox0 Team",
@@ -1,34 +0,0 @@
1
- /**
2
- * Sandbox0 API
3
- * Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
4
- *
5
- * The version of the OpenAPI document: 0.1.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import * as runtime from '../runtime.js';
13
- import type { FunctionInvokeRequest, SuccessFunctionInvokeResponse } from '../models/index.js';
14
- export interface ApiV1SandboxesIdFunctionsNameInvokePostRequest {
15
- id: string;
16
- name: string;
17
- functionInvokeRequest: FunctionInvokeRequest;
18
- }
19
- /**
20
- *
21
- */
22
- export declare class FunctionsApi extends runtime.BaseAPI {
23
- /**
24
- * Invokes /workspace/functions/{name}.py through the Python function runtime. The default handler is `handler`.
25
- * Invoke a sandbox function
26
- */
27
- apiV1SandboxesIdFunctionsNameInvokePostRaw(requestParameters: ApiV1SandboxesIdFunctionsNameInvokePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessFunctionInvokeResponse>>;
28
- /**
29
- * Invokes /workspace/functions/{name}.py through the Python function runtime. The default handler is `handler`.
30
- * Invoke a sandbox function
31
- */
32
- apiV1SandboxesIdFunctionsNameInvokePost(requestParameters: ApiV1SandboxesIdFunctionsNameInvokePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessFunctionInvokeResponse>;
33
- }
34
- //# sourceMappingURL=FunctionsApi.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FunctionsApi.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/apis/FunctionsApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EAEV,qBAAqB,EACrB,6BAA6B,EAC9B,MAAM,iBAAiB,CAAC;AAUzB,MAAM,WAAW,8CAA8C;IAC3D,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,qBAAqB,EAAE,qBAAqB,CAAC;CAChD;AAED;;GAEG;AACH,qBAAa,YAAa,SAAQ,OAAO,CAAC,OAAO;IAE7C;;;OAGG;IACG,0CAA0C,CAAC,iBAAiB,EAAE,8CAA8C,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,6BAA6B,CAAC,CAAC;IAoD5O;;;OAGG;IACG,uCAAuC,CAAC,iBAAiB,EAAE,8CAA8C,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,6BAA6B,CAAC;CAKvN"}
@@ -1,64 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Sandbox0 API
5
- * Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
6
- *
7
- * The version of the OpenAPI document: 0.1.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- import * as runtime from '../runtime.js';
15
- import { FunctionInvokeRequestToJSON, SuccessFunctionInvokeResponseFromJSON, } from '../models/index.js';
16
- /**
17
- *
18
- */
19
- export class FunctionsApi extends runtime.BaseAPI {
20
- /**
21
- * Invokes /workspace/functions/{name}.py through the Python function runtime. The default handler is `handler`.
22
- * Invoke a sandbox function
23
- */
24
- async apiV1SandboxesIdFunctionsNameInvokePostRaw(requestParameters, initOverrides) {
25
- if (requestParameters['id'] == null) {
26
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1SandboxesIdFunctionsNameInvokePost().');
27
- }
28
- if (requestParameters['name'] == null) {
29
- throw new runtime.RequiredError('name', 'Required parameter "name" was null or undefined when calling apiV1SandboxesIdFunctionsNameInvokePost().');
30
- }
31
- if (requestParameters['functionInvokeRequest'] == null) {
32
- throw new runtime.RequiredError('functionInvokeRequest', 'Required parameter "functionInvokeRequest" was null or undefined when calling apiV1SandboxesIdFunctionsNameInvokePost().');
33
- }
34
- const queryParameters = {};
35
- const headerParameters = {};
36
- headerParameters['Content-Type'] = 'application/json';
37
- if (this.configuration && this.configuration.accessToken) {
38
- const token = this.configuration.accessToken;
39
- const tokenString = await token("bearerAuth", []);
40
- if (tokenString) {
41
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
42
- }
43
- }
44
- let urlPath = `/api/v1/sandboxes/{id}/functions/{name}/invoke`;
45
- urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
46
- urlPath = urlPath.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters['name'])));
47
- const response = await this.request({
48
- path: urlPath,
49
- method: 'POST',
50
- headers: headerParameters,
51
- query: queryParameters,
52
- body: FunctionInvokeRequestToJSON(requestParameters['functionInvokeRequest']),
53
- }, initOverrides);
54
- return new runtime.JSONApiResponse(response, (jsonValue) => SuccessFunctionInvokeResponseFromJSON(jsonValue));
55
- }
56
- /**
57
- * Invokes /workspace/functions/{name}.py through the Python function runtime. The default handler is `handler`.
58
- * Invoke a sandbox function
59
- */
60
- async apiV1SandboxesIdFunctionsNameInvokePost(requestParameters, initOverrides) {
61
- const response = await this.apiV1SandboxesIdFunctionsNameInvokePostRaw(requestParameters, initOverrides);
62
- return await response.value();
63
- }
64
- }
@@ -1,73 +0,0 @@
1
- /**
2
- * Sandbox0 API
3
- * Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
4
- *
5
- * The version of the OpenAPI document: 0.1.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
13
- *
14
- * @export
15
- * @interface FunctionInvokeRequest
16
- */
17
- export interface FunctionInvokeRequest {
18
- /**
19
- * Logical request method passed to the function. Defaults to POST.
20
- * @type {string}
21
- * @memberof FunctionInvokeRequest
22
- */
23
- method?: string;
24
- /**
25
- * Logical request path passed to the function. Defaults to /.
26
- * @type {string}
27
- * @memberof FunctionInvokeRequest
28
- */
29
- path?: string;
30
- /**
31
- *
32
- * @type {{ [key: string]: Array<string>; }}
33
- * @memberof FunctionInvokeRequest
34
- */
35
- query?: {
36
- [key: string]: Array<string>;
37
- };
38
- /**
39
- *
40
- * @type {{ [key: string]: Array<string>; }}
41
- * @memberof FunctionInvokeRequest
42
- */
43
- headers?: {
44
- [key: string]: Array<string>;
45
- };
46
- /**
47
- * Base64-encoded request body passed to the function.
48
- * @type {string}
49
- * @memberof FunctionInvokeRequest
50
- */
51
- bodyBase64?: string;
52
- /**
53
- * Python handler name inside the function module. Defaults to handler.
54
- * @type {string}
55
- * @memberof FunctionInvokeRequest
56
- */
57
- handler?: string;
58
- /**
59
- * Per-invocation timeout in milliseconds. Defaults to 30000 and must not exceed 120000.
60
- * @type {number}
61
- * @memberof FunctionInvokeRequest
62
- */
63
- timeoutMs?: number;
64
- }
65
- /**
66
- * Check if a given object implements the FunctionInvokeRequest interface.
67
- */
68
- export declare function instanceOfFunctionInvokeRequest(value: object): value is FunctionInvokeRequest;
69
- export declare function FunctionInvokeRequestFromJSON(json: any): FunctionInvokeRequest;
70
- export declare function FunctionInvokeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): FunctionInvokeRequest;
71
- export declare function FunctionInvokeRequestToJSON(json: any): FunctionInvokeRequest;
72
- export declare function FunctionInvokeRequestToJSONTyped(value?: FunctionInvokeRequest | null, ignoreDiscriminator?: boolean): any;
73
- //# sourceMappingURL=FunctionInvokeRequest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FunctionInvokeRequest.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/FunctionInvokeRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,KAAK,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;KAAE,CAAC;IAC1C;;;;OAIG;IACH,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;KAAE,CAAC;IAC5C;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,qBAAqB,CAE7F;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,GAAG,qBAAqB,CAE9E;AAED,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,qBAAqB,CAcjH;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,CAehI"}
@@ -1,53 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Sandbox0 API
5
- * Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
6
- *
7
- * The version of the OpenAPI document: 0.1.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- /**
15
- * Check if a given object implements the FunctionInvokeRequest interface.
16
- */
17
- export function instanceOfFunctionInvokeRequest(value) {
18
- return true;
19
- }
20
- export function FunctionInvokeRequestFromJSON(json) {
21
- return FunctionInvokeRequestFromJSONTyped(json, false);
22
- }
23
- export function FunctionInvokeRequestFromJSONTyped(json, ignoreDiscriminator) {
24
- if (json == null) {
25
- return json;
26
- }
27
- return {
28
- 'method': json['method'] == null ? undefined : json['method'],
29
- 'path': json['path'] == null ? undefined : json['path'],
30
- 'query': json['query'] == null ? undefined : json['query'],
31
- 'headers': json['headers'] == null ? undefined : json['headers'],
32
- 'bodyBase64': json['body_base64'] == null ? undefined : json['body_base64'],
33
- 'handler': json['handler'] == null ? undefined : json['handler'],
34
- 'timeoutMs': json['timeout_ms'] == null ? undefined : json['timeout_ms'],
35
- };
36
- }
37
- export function FunctionInvokeRequestToJSON(json) {
38
- return FunctionInvokeRequestToJSONTyped(json, false);
39
- }
40
- export function FunctionInvokeRequestToJSONTyped(value, ignoreDiscriminator = false) {
41
- if (value == null) {
42
- return value;
43
- }
44
- return {
45
- 'method': value['method'],
46
- 'path': value['path'],
47
- 'query': value['query'],
48
- 'headers': value['headers'],
49
- 'body_base64': value['bodyBase64'],
50
- 'handler': value['handler'],
51
- 'timeout_ms': value['timeoutMs'],
52
- };
53
- }
@@ -1,47 +0,0 @@
1
- /**
2
- * Sandbox0 API
3
- * Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
4
- *
5
- * The version of the OpenAPI document: 0.1.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
13
- *
14
- * @export
15
- * @interface FunctionInvokeResponse
16
- */
17
- export interface FunctionInvokeResponse {
18
- /**
19
- * Function-level HTTP-style status code.
20
- * @type {number}
21
- * @memberof FunctionInvokeResponse
22
- */
23
- status: number;
24
- /**
25
- *
26
- * @type {{ [key: string]: Array<string>; }}
27
- * @memberof FunctionInvokeResponse
28
- */
29
- headers?: {
30
- [key: string]: Array<string>;
31
- };
32
- /**
33
- * Base64-encoded function response body.
34
- * @type {string}
35
- * @memberof FunctionInvokeResponse
36
- */
37
- bodyBase64?: string;
38
- }
39
- /**
40
- * Check if a given object implements the FunctionInvokeResponse interface.
41
- */
42
- export declare function instanceOfFunctionInvokeResponse(value: object): value is FunctionInvokeResponse;
43
- export declare function FunctionInvokeResponseFromJSON(json: any): FunctionInvokeResponse;
44
- export declare function FunctionInvokeResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FunctionInvokeResponse;
45
- export declare function FunctionInvokeResponseToJSON(json: any): FunctionInvokeResponse;
46
- export declare function FunctionInvokeResponseToJSONTyped(value?: FunctionInvokeResponse | null, ignoreDiscriminator?: boolean): any;
47
- //# sourceMappingURL=FunctionInvokeResponse.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FunctionInvokeResponse.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/FunctionInvokeResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACnC;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;KAAE,CAAC;IAC5C;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,wBAAgB,gCAAgC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,sBAAsB,CAG/F;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,GAAG,sBAAsB,CAEhF;AAED,wBAAgB,mCAAmC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,sBAAsB,CAUnH;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,GAAG,sBAAsB,CAE9E;AAED,wBAAgB,iCAAiC,CAAC,KAAK,CAAC,EAAE,sBAAsB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAWlI"}
@@ -1,47 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Sandbox0 API
5
- * Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
6
- *
7
- * The version of the OpenAPI document: 0.1.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- /**
15
- * Check if a given object implements the FunctionInvokeResponse interface.
16
- */
17
- export function instanceOfFunctionInvokeResponse(value) {
18
- if (!('status' in value) || value['status'] === undefined)
19
- return false;
20
- return true;
21
- }
22
- export function FunctionInvokeResponseFromJSON(json) {
23
- return FunctionInvokeResponseFromJSONTyped(json, false);
24
- }
25
- export function FunctionInvokeResponseFromJSONTyped(json, ignoreDiscriminator) {
26
- if (json == null) {
27
- return json;
28
- }
29
- return {
30
- 'status': json['status'],
31
- 'headers': json['headers'] == null ? undefined : json['headers'],
32
- 'bodyBase64': json['body_base64'] == null ? undefined : json['body_base64'],
33
- };
34
- }
35
- export function FunctionInvokeResponseToJSON(json) {
36
- return FunctionInvokeResponseToJSONTyped(json, false);
37
- }
38
- export function FunctionInvokeResponseToJSONTyped(value, ignoreDiscriminator = false) {
39
- if (value == null) {
40
- return value;
41
- }
42
- return {
43
- 'status': value['status'],
44
- 'headers': value['headers'],
45
- 'body_base64': value['bodyBase64'],
46
- };
47
- }
@@ -1,82 +0,0 @@
1
- /**
2
- * Sandbox0 API
3
- * Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
4
- *
5
- * The version of the OpenAPI document: 0.1.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
13
- *
14
- * @export
15
- * @interface SandboxPowerState
16
- */
17
- export interface SandboxPowerState {
18
- /**
19
- *
20
- * @type {string}
21
- * @memberof SandboxPowerState
22
- */
23
- desired: SandboxPowerStateDesiredEnum;
24
- /**
25
- *
26
- * @type {number}
27
- * @memberof SandboxPowerState
28
- */
29
- desiredGeneration: number;
30
- /**
31
- *
32
- * @type {string}
33
- * @memberof SandboxPowerState
34
- */
35
- observed: SandboxPowerStateObservedEnum;
36
- /**
37
- *
38
- * @type {number}
39
- * @memberof SandboxPowerState
40
- */
41
- observedGeneration: number;
42
- /**
43
- *
44
- * @type {string}
45
- * @memberof SandboxPowerState
46
- */
47
- phase: SandboxPowerStatePhaseEnum;
48
- }
49
- /**
50
- * @export
51
- */
52
- export declare const SandboxPowerStateDesiredEnum: {
53
- readonly Active: "active";
54
- readonly Paused: "paused";
55
- };
56
- export type SandboxPowerStateDesiredEnum = typeof SandboxPowerStateDesiredEnum[keyof typeof SandboxPowerStateDesiredEnum];
57
- /**
58
- * @export
59
- */
60
- export declare const SandboxPowerStateObservedEnum: {
61
- readonly SandboxPowerStateObservedActive: "active";
62
- readonly SandboxPowerStateObservedPaused: "paused";
63
- };
64
- export type SandboxPowerStateObservedEnum = typeof SandboxPowerStateObservedEnum[keyof typeof SandboxPowerStateObservedEnum];
65
- /**
66
- * @export
67
- */
68
- export declare const SandboxPowerStatePhaseEnum: {
69
- readonly Stable: "stable";
70
- readonly Pausing: "pausing";
71
- readonly Resuming: "resuming";
72
- };
73
- export type SandboxPowerStatePhaseEnum = typeof SandboxPowerStatePhaseEnum[keyof typeof SandboxPowerStatePhaseEnum];
74
- /**
75
- * Check if a given object implements the SandboxPowerState interface.
76
- */
77
- export declare function instanceOfSandboxPowerState(value: object): value is SandboxPowerState;
78
- export declare function SandboxPowerStateFromJSON(json: any): SandboxPowerState;
79
- export declare function SandboxPowerStateFromJSONTyped(json: any, ignoreDiscriminator: boolean): SandboxPowerState;
80
- export declare function SandboxPowerStateToJSON(json: any): SandboxPowerState;
81
- export declare function SandboxPowerStateToJSONTyped(value?: SandboxPowerState | null, ignoreDiscriminator?: boolean): any;
82
- //# sourceMappingURL=SandboxPowerState.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SandboxPowerState.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SandboxPowerState.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;OAIG;IACH,OAAO,EAAE,4BAA4B,CAAC;IACtC;;;;OAIG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,QAAQ,EAAE,6BAA6B,CAAC;IACxC;;;;OAIG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAC3B;;;;OAIG;IACH,KAAK,EAAE,0BAA0B,CAAC;CACrC;AAGD;;GAEG;AACH,eAAO,MAAM,4BAA4B;;;CAG/B,CAAC;AACX,MAAM,MAAM,4BAA4B,GAAG,OAAO,4BAA4B,CAAC,MAAM,OAAO,4BAA4B,CAAC,CAAC;AAE1H;;GAEG;AACH,eAAO,MAAM,6BAA6B;;;CAGhC,CAAC;AACX,MAAM,MAAM,6BAA6B,GAAG,OAAO,6BAA6B,CAAC,MAAM,OAAO,6BAA6B,CAAC,CAAC;AAE7H;;GAEG;AACH,eAAO,MAAM,0BAA0B;;;;CAI7B,CAAC;AACX,MAAM,MAAM,0BAA0B,GAAG,OAAO,0BAA0B,CAAC,MAAM,OAAO,0BAA0B,CAAC,CAAC;AAGpH;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,KA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