sandbox0 0.5.3 → 0.5.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.
- package/dist/apispec/src/apis/index.d.ts +0 -1
- package/dist/apispec/src/apis/index.d.ts.map +1 -1
- package/dist/apispec/src/apis/index.js +0 -1
- package/dist/apispec/src/models/SandboxAppService.d.ts +1 -1
- package/dist/apispec/src/models/SandboxAppServiceRuntime.d.ts +7 -0
- package/dist/apispec/src/models/SandboxAppServiceRuntime.d.ts.map +1 -1
- package/dist/apispec/src/models/SandboxAppServiceRuntime.js +5 -1
- package/dist/apispec/src/models/SandboxAppServiceView.d.ts +1 -1
- package/dist/apispec/src/models/SandboxFunction.d.ts +53 -0
- package/dist/apispec/src/models/SandboxFunction.d.ts.map +1 -0
- package/dist/apispec/src/models/SandboxFunction.js +56 -0
- package/dist/apispec/src/models/SandboxFunctionSource.d.ts +52 -0
- package/dist/apispec/src/models/SandboxFunctionSource.d.ts.map +1 -0
- package/dist/apispec/src/models/SandboxFunctionSource.js +55 -0
- package/dist/apispec/src/models/index.d.ts +2 -3
- package/dist/apispec/src/models/index.d.ts.map +1 -1
- package/dist/apispec/src/models/index.js +2 -3
- package/dist/apispec_compat.d.ts +17 -15
- package/dist/apispec_compat.d.ts.map +1 -1
- package/dist/client.d.ts +0 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -1
- package/package.json +1 -1
- package/dist/apispec/src/apis/FunctionsApi.d.ts +0 -34
- package/dist/apispec/src/apis/FunctionsApi.d.ts.map +0 -1
- package/dist/apispec/src/apis/FunctionsApi.js +0 -64
- package/dist/apispec/src/models/FunctionInvokeRequest.d.ts +0 -73
- package/dist/apispec/src/models/FunctionInvokeRequest.d.ts.map +0 -1
- package/dist/apispec/src/models/FunctionInvokeRequest.js +0 -53
- package/dist/apispec/src/models/FunctionInvokeResponse.d.ts +0 -47
- package/dist/apispec/src/models/FunctionInvokeResponse.d.ts.map +0 -1
- package/dist/apispec/src/models/FunctionInvokeResponse.js +0 -47
- package/dist/apispec/src/models/SuccessFunctionInvokeResponse.d.ts +0 -40
- package/dist/apispec/src/models/SuccessFunctionInvokeResponse.d.ts.map +0 -1
- package/dist/apispec/src/models/SuccessFunctionInvokeResponse.js +0 -46
- package/dist/sandbox_functions.d.ts +0 -7
- package/dist/sandbox_functions.d.ts.map +0 -1
- package/dist/sandbox_functions.js +0 -22
|
@@ -3,7 +3,6 @@ export * from './AuthApi.js';
|
|
|
3
3
|
export * from './ContextsApi.js';
|
|
4
4
|
export * from './CredentialSourcesApi.js';
|
|
5
5
|
export * from './FilesApi.js';
|
|
6
|
-
export * from './FunctionsApi.js';
|
|
7
6
|
export * from './HealthApi.js';
|
|
8
7
|
export * from './QuotasApi.js';
|
|
9
8
|
export * from './RegionsApi.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/apis/index.ts"],"names":[],"mappings":"AAEA,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,wBAAwB,CAAC;AACvC,cAAc,YAAY,CAAC;AAC3B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/apis/index.ts"],"names":[],"mappings":"AAEA,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,wBAAwB,CAAC;AACvC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC"}
|
|
@@ -5,7 +5,6 @@ export * from './AuthApi.js';
|
|
|
5
5
|
export * from './ContextsApi.js';
|
|
6
6
|
export * from './CredentialSourcesApi.js';
|
|
7
7
|
export * from './FilesApi.js';
|
|
8
|
-
export * from './FunctionsApi.js';
|
|
9
8
|
export * from './HealthApi.js';
|
|
10
9
|
export * from './QuotasApi.js';
|
|
11
10
|
export * from './RegionsApi.js';
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { SandboxFunction } from './SandboxFunction.js';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -47,6 +48,11 @@ export interface SandboxAppServiceRuntime {
|
|
|
47
48
|
* @memberof SandboxAppServiceRuntime
|
|
48
49
|
*/
|
|
49
50
|
warmProcessName?: string;
|
|
51
|
+
/**
|
|
52
|
+
* @type {SandboxFunction}
|
|
53
|
+
* @memberof SandboxAppServiceRuntime
|
|
54
|
+
*/
|
|
55
|
+
_function?: SandboxFunction;
|
|
50
56
|
}
|
|
51
57
|
/**
|
|
52
58
|
* @export
|
|
@@ -55,6 +61,7 @@ export declare const SandboxAppServiceRuntimeTypeEnum: {
|
|
|
55
61
|
readonly WarmProcess: "warm_process";
|
|
56
62
|
readonly Cmd: "cmd";
|
|
57
63
|
readonly Manual: "manual";
|
|
64
|
+
readonly Function: "function";
|
|
58
65
|
};
|
|
59
66
|
export type SandboxAppServiceRuntimeTypeEnum = typeof SandboxAppServiceRuntimeTypeEnum[keyof typeof SandboxAppServiceRuntimeTypeEnum];
|
|
60
67
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SandboxAppServiceRuntime.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SandboxAppServiceRuntime.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;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,eAAe,CAAC,EAAE,MAAM,CAAC;
|
|
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,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;OAGG;IACH,SAAS,CAAC,EAAE,eAAe,CAAC;CAC/B;AAGD;;GAEG;AACH,eAAO,MAAM,gCAAgC;;;;;CAKnC,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,CAavH;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,CActI"}
|
|
@@ -11,13 +11,15 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { SandboxFunctionFromJSON, SandboxFunctionToJSON, } from './SandboxFunction.js';
|
|
14
15
|
/**
|
|
15
16
|
* @export
|
|
16
17
|
*/
|
|
17
18
|
export const SandboxAppServiceRuntimeTypeEnum = {
|
|
18
19
|
WarmProcess: 'warm_process',
|
|
19
20
|
Cmd: 'cmd',
|
|
20
|
-
Manual: 'manual'
|
|
21
|
+
Manual: 'manual',
|
|
22
|
+
Function: 'function'
|
|
21
23
|
};
|
|
22
24
|
/**
|
|
23
25
|
* Check if a given object implements the SandboxAppServiceRuntime interface.
|
|
@@ -40,6 +42,7 @@ export function SandboxAppServiceRuntimeFromJSONTyped(json, ignoreDiscriminator)
|
|
|
40
42
|
'cwd': json['cwd'] == null ? undefined : json['cwd'],
|
|
41
43
|
'envVars': json['env_vars'] == null ? undefined : json['env_vars'],
|
|
42
44
|
'warmProcessName': json['warm_process_name'] == null ? undefined : json['warm_process_name'],
|
|
45
|
+
'_function': json['function'] == null ? undefined : SandboxFunctionFromJSON(json['function']),
|
|
43
46
|
};
|
|
44
47
|
}
|
|
45
48
|
export function SandboxAppServiceRuntimeToJSON(json) {
|
|
@@ -55,5 +58,6 @@ export function SandboxAppServiceRuntimeToJSONTyped(value, ignoreDiscriminator =
|
|
|
55
58
|
'cwd': value['cwd'],
|
|
56
59
|
'env_vars': value['envVars'],
|
|
57
60
|
'warm_process_name': value['warmProcessName'],
|
|
61
|
+
'function': SandboxFunctionToJSON(value['_function']),
|
|
58
62
|
};
|
|
59
63
|
}
|
|
@@ -0,0 +1,53 @@
|
|
|
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 { SandboxFunctionSource } from './SandboxFunctionSource.js';
|
|
13
|
+
/**
|
|
14
|
+
* Function code executed by procd for a sandbox service request. cluster-gateway owns public ingress and carries this source to procd.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface SandboxFunction
|
|
17
|
+
*/
|
|
18
|
+
export interface SandboxFunction {
|
|
19
|
+
/**
|
|
20
|
+
* Function runtime. Only python is supported in this version.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof SandboxFunction
|
|
23
|
+
*/
|
|
24
|
+
runtime: SandboxFunctionRuntimeEnum;
|
|
25
|
+
/**
|
|
26
|
+
* Python callable name. Defaults to handler.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof SandboxFunction
|
|
29
|
+
*/
|
|
30
|
+
handler?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {SandboxFunctionSource}
|
|
34
|
+
* @memberof SandboxFunction
|
|
35
|
+
*/
|
|
36
|
+
source: SandboxFunctionSource;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* @export
|
|
40
|
+
*/
|
|
41
|
+
export declare const SandboxFunctionRuntimeEnum: {
|
|
42
|
+
readonly Python: "python";
|
|
43
|
+
};
|
|
44
|
+
export type SandboxFunctionRuntimeEnum = typeof SandboxFunctionRuntimeEnum[keyof typeof SandboxFunctionRuntimeEnum];
|
|
45
|
+
/**
|
|
46
|
+
* Check if a given object implements the SandboxFunction interface.
|
|
47
|
+
*/
|
|
48
|
+
export declare function instanceOfSandboxFunction(value: object): value is SandboxFunction;
|
|
49
|
+
export declare function SandboxFunctionFromJSON(json: any): SandboxFunction;
|
|
50
|
+
export declare function SandboxFunctionFromJSONTyped(json: any, ignoreDiscriminator: boolean): SandboxFunction;
|
|
51
|
+
export declare function SandboxFunctionToJSON(json: any): SandboxFunction;
|
|
52
|
+
export declare function SandboxFunctionToJSONTyped(value?: SandboxFunction | null, ignoreDiscriminator?: boolean): any;
|
|
53
|
+
//# sourceMappingURL=SandboxFunction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SandboxFunction.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SandboxFunction.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAQrE;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC5B;;;;OAIG;IACH,OAAO,EAAE,0BAA0B,CAAC;IACpC;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,MAAM,EAAE,qBAAqB,CAAC;CACjC;AAGD;;GAEG;AACH,eAAO,MAAM,0BAA0B;;CAE7B,CAAC;AACX,MAAM,MAAM,0BAA0B,GAAG,OAAO,0BAA0B,CAAC,MAAM,OAAO,0BAA0B,CAAC,CAAC;AAGpH;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,eAAe,CAIjF;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,eAAe,CAElE;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,eAAe,CAUrG;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,eAAe,CAEhE;AAED,wBAAgB,0BAA0B,CAAC,KAAK,CAAC,EAAE,eAAe,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAWpH"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sandbox0 API
|
|
5
|
+
* Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { SandboxFunctionSourceFromJSON, SandboxFunctionSourceToJSON, } from './SandboxFunctionSource.js';
|
|
15
|
+
/**
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const SandboxFunctionRuntimeEnum = {
|
|
19
|
+
Python: 'python'
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the SandboxFunction interface.
|
|
23
|
+
*/
|
|
24
|
+
export function instanceOfSandboxFunction(value) {
|
|
25
|
+
if (!('runtime' in value) || value['runtime'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('source' in value) || value['source'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
export function SandboxFunctionFromJSON(json) {
|
|
32
|
+
return SandboxFunctionFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
export function SandboxFunctionFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'runtime': json['runtime'],
|
|
40
|
+
'handler': json['handler'] == null ? undefined : json['handler'],
|
|
41
|
+
'source': SandboxFunctionSourceFromJSON(json['source']),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
export function SandboxFunctionToJSON(json) {
|
|
45
|
+
return SandboxFunctionToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
export function SandboxFunctionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'runtime': value['runtime'],
|
|
53
|
+
'handler': value['handler'],
|
|
54
|
+
'source': SandboxFunctionSourceToJSON(value['source']),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
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
|
+
* Function source code stored in sandbox service config.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SandboxFunctionSource
|
|
16
|
+
*/
|
|
17
|
+
export interface SandboxFunctionSource {
|
|
18
|
+
/**
|
|
19
|
+
* Source transport. Only inline source is supported in this version.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SandboxFunctionSource
|
|
22
|
+
*/
|
|
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
|
+
/**
|
|
31
|
+
* Inline source code. Limited to 256 KiB.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SandboxFunctionSource
|
|
34
|
+
*/
|
|
35
|
+
code: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export declare const SandboxFunctionSourceTypeEnum: {
|
|
41
|
+
readonly Inline: "inline";
|
|
42
|
+
};
|
|
43
|
+
export type SandboxFunctionSourceTypeEnum = typeof SandboxFunctionSourceTypeEnum[keyof typeof SandboxFunctionSourceTypeEnum];
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the SandboxFunctionSource interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfSandboxFunctionSource(value: object): value is SandboxFunctionSource;
|
|
48
|
+
export declare function SandboxFunctionSourceFromJSON(json: any): SandboxFunctionSource;
|
|
49
|
+
export declare function SandboxFunctionSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): SandboxFunctionSource;
|
|
50
|
+
export declare function SandboxFunctionSourceToJSON(json: any): SandboxFunctionSource;
|
|
51
|
+
export declare function SandboxFunctionSourceToJSONTyped(value?: SandboxFunctionSource | null, ignoreDiscriminator?: boolean): any;
|
|
52
|
+
//# sourceMappingURL=SandboxFunctionSource.d.ts.map
|
|
@@ -0,0 +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,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;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,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"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sandbox0 API
|
|
5
|
+
* Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const SandboxFunctionSourceTypeEnum = {
|
|
18
|
+
Inline: 'inline'
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the SandboxFunctionSource interface.
|
|
22
|
+
*/
|
|
23
|
+
export function instanceOfSandboxFunctionSource(value) {
|
|
24
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('code' in value) || value['code'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
export function SandboxFunctionSourceFromJSON(json) {
|
|
31
|
+
return SandboxFunctionSourceFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
export function SandboxFunctionSourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'type': json['type'],
|
|
39
|
+
'filename': json['filename'] == null ? undefined : json['filename'],
|
|
40
|
+
'code': json['code'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
export function SandboxFunctionSourceToJSON(json) {
|
|
44
|
+
return SandboxFunctionSourceToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
export function SandboxFunctionSourceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'type': value['type'],
|
|
52
|
+
'filename': value['filename'],
|
|
53
|
+
'code': value['code'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -64,8 +64,6 @@ export * from './FileWatchSubscribed.js';
|
|
|
64
64
|
export * from './FileWatchUnsubscribeRequest.js';
|
|
65
65
|
export * from './FileWatchUnsubscribed.js';
|
|
66
66
|
export * from './ForkVolumeRequest.js';
|
|
67
|
-
export * from './FunctionInvokeRequest.js';
|
|
68
|
-
export * from './FunctionInvokeResponse.js';
|
|
69
67
|
export * from './GRPCAction.js';
|
|
70
68
|
export * from './GatewayMetadata.js';
|
|
71
69
|
export * from './HTTPGetAction.js';
|
|
@@ -135,6 +133,8 @@ export * from './SandboxAppServiceRouteRateLimit.js';
|
|
|
135
133
|
export * from './SandboxAppServiceRuntime.js';
|
|
136
134
|
export * from './SandboxAppServiceView.js';
|
|
137
135
|
export * from './SandboxConfig.js';
|
|
136
|
+
export * from './SandboxFunction.js';
|
|
137
|
+
export * from './SandboxFunctionSource.js';
|
|
138
138
|
export * from './SandboxLifecycleStatus.js';
|
|
139
139
|
export * from './SandboxNetworkPolicy.js';
|
|
140
140
|
export * from './SandboxPowerState.js';
|
|
@@ -187,7 +187,6 @@ export * from './SuccessFileReadResponse.js';
|
|
|
187
187
|
export * from './SuccessFileReadResponseAllOfData.js';
|
|
188
188
|
export * from './SuccessFileReadResponseAllOfDataOneOf.js';
|
|
189
189
|
export * from './SuccessFileStatResponse.js';
|
|
190
|
-
export * from './SuccessFunctionInvokeResponse.js';
|
|
191
190
|
export * from './SuccessGatewayMetadataResponse.js';
|
|
192
191
|
export * from './SuccessHealthResponse.js';
|
|
193
192
|
export * from './SuccessHealthResponseAllOfData.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/index.ts"],"names":[],"mappings":"AAEA,cAAc,UAAU,CAAC;AACzB,cAAc,wBAAwB,CAAC;AACvC,cAAc,YAAY,CAAC;AAC3B,cAAc,uCAAuC,CAAC;AACtD,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC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+B,CAAC;AAC9C,cAAc,wCAAwC,CAAC;AACvD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,0CAA0C,CAAC;AACzD,cAAc,0BAA0B,CAAC;AACzC,cAAc,mCAAmC,CAAC;AAClD,cAAc,mBAAmB,CAAC;AAClC,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,QAAQ,CAAC;AACvB,cAAc,oBAAoB,CAAC;AACnC,cAAc,mCAAmC,CAAC;AAClD,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iBAAiB,CAAC;AAChC,cAAc,2BAA2B,CAAC"}
|
|
@@ -66,8 +66,6 @@ export * from './FileWatchSubscribed.js';
|
|
|
66
66
|
export * from './FileWatchUnsubscribeRequest.js';
|
|
67
67
|
export * from './FileWatchUnsubscribed.js';
|
|
68
68
|
export * from './ForkVolumeRequest.js';
|
|
69
|
-
export * from './FunctionInvokeRequest.js';
|
|
70
|
-
export * from './FunctionInvokeResponse.js';
|
|
71
69
|
export * from './GRPCAction.js';
|
|
72
70
|
export * from './GatewayMetadata.js';
|
|
73
71
|
export * from './HTTPGetAction.js';
|
|
@@ -137,6 +135,8 @@ export * from './SandboxAppServiceRouteRateLimit.js';
|
|
|
137
135
|
export * from './SandboxAppServiceRuntime.js';
|
|
138
136
|
export * from './SandboxAppServiceView.js';
|
|
139
137
|
export * from './SandboxConfig.js';
|
|
138
|
+
export * from './SandboxFunction.js';
|
|
139
|
+
export * from './SandboxFunctionSource.js';
|
|
140
140
|
export * from './SandboxLifecycleStatus.js';
|
|
141
141
|
export * from './SandboxNetworkPolicy.js';
|
|
142
142
|
export * from './SandboxPowerState.js';
|
|
@@ -189,7 +189,6 @@ export * from './SuccessFileReadResponse.js';
|
|
|
189
189
|
export * from './SuccessFileReadResponseAllOfData.js';
|
|
190
190
|
export * from './SuccessFileReadResponseAllOfDataOneOf.js';
|
|
191
191
|
export * from './SuccessFileStatResponse.js';
|
|
192
|
-
export * from './SuccessFunctionInvokeResponse.js';
|
|
193
192
|
export * from './SuccessGatewayMetadataResponse.js';
|
|
194
193
|
export * from './SuccessHealthResponse.js';
|
|
195
194
|
export * from './SuccessHealthResponseAllOfData.js';
|
package/dist/apispec_compat.d.ts
CHANGED
|
@@ -428,16 +428,6 @@ export declare const models: {
|
|
|
428
428
|
ForkVolumeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): modelsImport.ForkVolumeRequest;
|
|
429
429
|
ForkVolumeRequestToJSON(json: any): modelsImport.ForkVolumeRequest;
|
|
430
430
|
ForkVolumeRequestToJSONTyped(value?: modelsImport.ForkVolumeRequest | null, ignoreDiscriminator?: boolean): any;
|
|
431
|
-
instanceOfFunctionInvokeRequest(value: object): value is modelsImport.FunctionInvokeRequest;
|
|
432
|
-
FunctionInvokeRequestFromJSON(json: any): modelsImport.FunctionInvokeRequest;
|
|
433
|
-
FunctionInvokeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): modelsImport.FunctionInvokeRequest;
|
|
434
|
-
FunctionInvokeRequestToJSON(json: any): modelsImport.FunctionInvokeRequest;
|
|
435
|
-
FunctionInvokeRequestToJSONTyped(value?: modelsImport.FunctionInvokeRequest | null, ignoreDiscriminator?: boolean): any;
|
|
436
|
-
instanceOfFunctionInvokeResponse(value: object): value is modelsImport.FunctionInvokeResponse;
|
|
437
|
-
FunctionInvokeResponseFromJSON(json: any): modelsImport.FunctionInvokeResponse;
|
|
438
|
-
FunctionInvokeResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): modelsImport.FunctionInvokeResponse;
|
|
439
|
-
FunctionInvokeResponseToJSON(json: any): modelsImport.FunctionInvokeResponse;
|
|
440
|
-
FunctionInvokeResponseToJSONTyped(value?: modelsImport.FunctionInvokeResponse | null, ignoreDiscriminator?: boolean): any;
|
|
441
431
|
instanceOfGRPCAction(value: object): value is modelsImport.GRPCAction;
|
|
442
432
|
GRPCActionFromJSON(json: any): modelsImport.GRPCAction;
|
|
443
433
|
GRPCActionFromJSONTyped(json: any, ignoreDiscriminator: boolean): modelsImport.GRPCAction;
|
|
@@ -812,6 +802,7 @@ export declare const models: {
|
|
|
812
802
|
readonly WarmProcess: "warm_process";
|
|
813
803
|
readonly Cmd: "cmd";
|
|
814
804
|
readonly Manual: "manual";
|
|
805
|
+
readonly Function: "function";
|
|
815
806
|
};
|
|
816
807
|
instanceOfSandboxAppServiceView(value: object): value is modelsImport.SandboxAppServiceView;
|
|
817
808
|
SandboxAppServiceViewFromJSON(json: any): modelsImport.SandboxAppServiceView;
|
|
@@ -823,6 +814,22 @@ export declare const models: {
|
|
|
823
814
|
SandboxConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): modelsImport.SandboxConfig;
|
|
824
815
|
SandboxConfigToJSON(json: any): modelsImport.SandboxConfig;
|
|
825
816
|
SandboxConfigToJSONTyped(value?: modelsImport.SandboxConfig | null, ignoreDiscriminator?: boolean): any;
|
|
817
|
+
instanceOfSandboxFunction(value: object): value is modelsImport.SandboxFunction;
|
|
818
|
+
SandboxFunctionFromJSON(json: any): modelsImport.SandboxFunction;
|
|
819
|
+
SandboxFunctionFromJSONTyped(json: any, ignoreDiscriminator: boolean): modelsImport.SandboxFunction;
|
|
820
|
+
SandboxFunctionToJSON(json: any): modelsImport.SandboxFunction;
|
|
821
|
+
SandboxFunctionToJSONTyped(value?: modelsImport.SandboxFunction | null, ignoreDiscriminator?: boolean): any;
|
|
822
|
+
SandboxFunctionRuntimeEnum: {
|
|
823
|
+
readonly Python: "python";
|
|
824
|
+
};
|
|
825
|
+
instanceOfSandboxFunctionSource(value: object): value is modelsImport.SandboxFunctionSource;
|
|
826
|
+
SandboxFunctionSourceFromJSON(json: any): modelsImport.SandboxFunctionSource;
|
|
827
|
+
SandboxFunctionSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): modelsImport.SandboxFunctionSource;
|
|
828
|
+
SandboxFunctionSourceToJSON(json: any): modelsImport.SandboxFunctionSource;
|
|
829
|
+
SandboxFunctionSourceToJSONTyped(value?: modelsImport.SandboxFunctionSource | null, ignoreDiscriminator?: boolean): any;
|
|
830
|
+
SandboxFunctionSourceTypeEnum: {
|
|
831
|
+
readonly Inline: "inline";
|
|
832
|
+
};
|
|
826
833
|
instanceOfSandboxLifecycleStatus(value: any): boolean;
|
|
827
834
|
SandboxLifecycleStatusFromJSON(json: any): modelsImport.SandboxLifecycleStatus;
|
|
828
835
|
SandboxLifecycleStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): modelsImport.SandboxLifecycleStatus;
|
|
@@ -1107,11 +1114,6 @@ export declare const models: {
|
|
|
1107
1114
|
SuccessFileStatResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): modelsImport.SuccessFileStatResponse;
|
|
1108
1115
|
SuccessFileStatResponseToJSON(json: any): modelsImport.SuccessFileStatResponse;
|
|
1109
1116
|
SuccessFileStatResponseToJSONTyped(value?: modelsImport.SuccessFileStatResponse | null, ignoreDiscriminator?: boolean): any;
|
|
1110
|
-
instanceOfSuccessFunctionInvokeResponse(value: object): value is modelsImport.SuccessFunctionInvokeResponse;
|
|
1111
|
-
SuccessFunctionInvokeResponseFromJSON(json: any): modelsImport.SuccessFunctionInvokeResponse;
|
|
1112
|
-
SuccessFunctionInvokeResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): modelsImport.SuccessFunctionInvokeResponse;
|
|
1113
|
-
SuccessFunctionInvokeResponseToJSON(json: any): modelsImport.SuccessFunctionInvokeResponse;
|
|
1114
|
-
SuccessFunctionInvokeResponseToJSONTyped(value?: modelsImport.SuccessFunctionInvokeResponse | null, ignoreDiscriminator?: boolean): any;
|
|
1115
1117
|
instanceOfSuccessGatewayMetadataResponse(value: object): value is modelsImport.SuccessGatewayMetadataResponse;
|
|
1116
1118
|
SuccessGatewayMetadataResponseFromJSON(json: any): modelsImport.SuccessGatewayMetadataResponse;
|
|
1117
1119
|
SuccessGatewayMetadataResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): modelsImport.SuccessGatewayMetadataResponse;
|
|
@@ -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
|
|
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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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOlB,CAAC"}
|
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;
|
package/dist/client.d.ts.map
CHANGED
|
@@ -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,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,OAAO,KAAK,EAAE,WAAW,EAAE,kBAAk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E,EAAE,MAAM,GAAG,OAAO;IAItB,cAAc,CAClB,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,kBAAkB,GAC3B,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";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -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,
|
|
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";
|
package/package.json
CHANGED
|
@@ -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,40 +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 type { FunctionInvokeResponse } from './FunctionInvokeResponse.js';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface SuccessFunctionInvokeResponse
|
|
17
|
-
*/
|
|
18
|
-
export interface SuccessFunctionInvokeResponse {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {boolean}
|
|
22
|
-
* @memberof SuccessFunctionInvokeResponse
|
|
23
|
-
*/
|
|
24
|
-
success: boolean;
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @type {FunctionInvokeResponse}
|
|
28
|
-
* @memberof SuccessFunctionInvokeResponse
|
|
29
|
-
*/
|
|
30
|
-
data?: FunctionInvokeResponse;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Check if a given object implements the SuccessFunctionInvokeResponse interface.
|
|
34
|
-
*/
|
|
35
|
-
export declare function instanceOfSuccessFunctionInvokeResponse(value: object): value is SuccessFunctionInvokeResponse;
|
|
36
|
-
export declare function SuccessFunctionInvokeResponseFromJSON(json: any): SuccessFunctionInvokeResponse;
|
|
37
|
-
export declare function SuccessFunctionInvokeResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SuccessFunctionInvokeResponse;
|
|
38
|
-
export declare function SuccessFunctionInvokeResponseToJSON(json: any): SuccessFunctionInvokeResponse;
|
|
39
|
-
export declare function SuccessFunctionInvokeResponseToJSONTyped(value?: SuccessFunctionInvokeResponse | null, ignoreDiscriminator?: boolean): any;
|
|
40
|
-
//# sourceMappingURL=SuccessFunctionInvokeResponse.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SuccessFunctionInvokeResponse.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SuccessFunctionInvokeResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAQvE;;;;GAIG;AACH,MAAM,WAAW,6BAA6B;IAC1C;;;;OAIG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,IAAI,CAAC,EAAE,sBAAsB,CAAC;CACjC;AAED;;GAEG;AACH,wBAAgB,uCAAuC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,6BAA6B,CAG7G;AAED,wBAAgB,qCAAqC,CAAC,IAAI,EAAE,GAAG,GAAG,6BAA6B,CAE9F;AAED,wBAAgB,0CAA0C,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,6BAA6B,CASjI;AAED,wBAAgB,mCAAmC,CAAC,IAAI,EAAE,GAAG,GAAG,6BAA6B,CAE5F;AAED,wBAAgB,wCAAwC,CAAC,KAAK,CAAC,EAAE,6BAA6B,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAUhJ"}
|
|
@@ -1,46 +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 { FunctionInvokeResponseFromJSON, FunctionInvokeResponseToJSON, } from './FunctionInvokeResponse.js';
|
|
15
|
-
/**
|
|
16
|
-
* Check if a given object implements the SuccessFunctionInvokeResponse interface.
|
|
17
|
-
*/
|
|
18
|
-
export function instanceOfSuccessFunctionInvokeResponse(value) {
|
|
19
|
-
if (!('success' in value) || value['success'] === undefined)
|
|
20
|
-
return false;
|
|
21
|
-
return true;
|
|
22
|
-
}
|
|
23
|
-
export function SuccessFunctionInvokeResponseFromJSON(json) {
|
|
24
|
-
return SuccessFunctionInvokeResponseFromJSONTyped(json, false);
|
|
25
|
-
}
|
|
26
|
-
export function SuccessFunctionInvokeResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
-
if (json == null) {
|
|
28
|
-
return json;
|
|
29
|
-
}
|
|
30
|
-
return {
|
|
31
|
-
'success': json['success'],
|
|
32
|
-
'data': json['data'] == null ? undefined : FunctionInvokeResponseFromJSON(json['data']),
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
export function SuccessFunctionInvokeResponseToJSON(json) {
|
|
36
|
-
return SuccessFunctionInvokeResponseToJSONTyped(json, false);
|
|
37
|
-
}
|
|
38
|
-
export function SuccessFunctionInvokeResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
39
|
-
if (value == null) {
|
|
40
|
-
return value;
|
|
41
|
-
}
|
|
42
|
-
return {
|
|
43
|
-
'success': value['success'],
|
|
44
|
-
'data': FunctionInvokeResponseToJSON(value['data']),
|
|
45
|
-
};
|
|
46
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { FunctionInvokeRequest, FunctionInvokeResponse } from "./apispec/src/models/index.js";
|
|
2
|
-
declare module "./sandbox" {
|
|
3
|
-
interface Sandbox {
|
|
4
|
-
invokeFunction(name: string, request?: FunctionInvokeRequest): Promise<FunctionInvokeResponse>;
|
|
5
|
-
}
|
|
6
|
-
}
|
|
7
|
-
//# sourceMappingURL=sandbox_functions.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sandbox_functions.d.ts","sourceRoot":"","sources":["../src/sandbox_functions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACrB,sBAAsB,EACvB,MAAM,4BAA4B,CAAC;AAUpC,OAAO,QAAQ,WAAW,CAAC;IACzB,UAAU,OAAO;QACf,cAAc,CACZ,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,qBAAqB,GAC9B,OAAO,CAAC,sBAAsB,CAAC,CAAC;KACpC;CACF"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { APIError, wrapApiCall } from "./errors.js";
|
|
2
|
-
import { ensureData } from "./response.js";
|
|
3
|
-
import { Sandbox } from "./sandbox.js";
|
|
4
|
-
function getClient(sandbox) {
|
|
5
|
-
return sandbox.client;
|
|
6
|
-
}
|
|
7
|
-
Sandbox.prototype.invokeFunction = async function (name, request = {}) {
|
|
8
|
-
if (!name.trim()) {
|
|
9
|
-
throw new APIError({
|
|
10
|
-
statusCode: 0,
|
|
11
|
-
code: "invalid_argument",
|
|
12
|
-
message: "function name is required",
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
const client = getClient(this);
|
|
16
|
-
const response = await wrapApiCall(() => client.apispec.functions.apiV1SandboxesIdFunctionsNameInvokePost({
|
|
17
|
-
id: this.id,
|
|
18
|
-
name,
|
|
19
|
-
functionInvokeRequest: request,
|
|
20
|
-
}));
|
|
21
|
-
return ensureData(response, "invoke function returned empty response");
|
|
22
|
-
};
|