@squidcloud/local-backend 1.0.147 → 1.0.150
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/common/src/ai-assistant.types.d.ts +50 -50
- package/dist/common/src/ai-assistant.types.js +2 -2
- package/dist/common/src/ai-chatbot.context.d.ts +13 -13
- package/dist/common/src/ai-chatbot.context.js +19 -19
- package/dist/common/src/ai-chatbot.schemas.d.ts +18 -18
- package/dist/common/src/ai-chatbot.schemas.js +21 -21
- package/dist/common/src/ai-chatbot.types.d.ts +123 -123
- package/dist/common/src/ai-chatbot.types.js +18 -18
- package/dist/common/src/api-call.context.d.ts +13 -13
- package/dist/common/src/api-call.context.js +16 -16
- package/dist/common/src/api.types.d.ts +22 -22
- package/dist/common/src/api.types.js +2 -2
- package/dist/common/src/application.schemas.d.ts +1648 -1648
- package/dist/common/src/application.schemas.js +948 -948
- package/dist/common/src/application.types.d.ts +192 -193
- package/dist/common/src/application.types.js +89 -89
- package/dist/common/src/application.types.js.map +1 -1
- package/dist/common/src/backend-function.schemas.d.ts +3 -3
- package/dist/common/src/backend-function.schemas.js +11 -11
- package/dist/common/src/backend-function.types.d.ts +4 -4
- package/dist/common/src/backend-function.types.js +2 -2
- package/dist/common/src/backend-run.types.d.ts +54 -54
- package/dist/common/src/backend-run.types.js +92 -95
- package/dist/common/src/backend-run.types.js.map +1 -1
- package/dist/common/src/bundle-api.types.d.ts +65 -69
- package/dist/common/src/bundle-api.types.js +2 -2
- package/dist/common/src/bundle-data.types.d.ts +69 -74
- package/dist/common/src/bundle-data.types.js +2 -2
- package/dist/common/src/communication.types.d.ts +20 -19
- package/dist/common/src/communication.types.js +41 -40
- package/dist/common/src/communication.types.js.map +1 -1
- package/dist/common/src/context.types.d.ts +24 -24
- package/dist/common/src/context.types.js +2 -2
- package/dist/common/src/distributed-lock.context.d.ts +4 -4
- package/dist/common/src/distributed-lock.context.js +9 -9
- package/dist/common/src/document.types.d.ts +32 -32
- package/dist/common/src/document.types.js +50 -50
- package/dist/common/src/graphql.context.d.ts +14 -14
- package/dist/common/src/graphql.context.js +12 -12
- package/dist/common/src/graphql.types.d.ts +11 -11
- package/dist/common/src/graphql.types.js +34 -34
- package/dist/common/src/heartbeat.types.d.ts +4 -4
- package/dist/common/src/heartbeat.types.js +16 -16
- package/dist/common/src/http-status.enum.d.ts +50 -50
- package/dist/common/src/http-status.enum.js +54 -54
- package/dist/common/src/http-status.enum.js.map +1 -1
- package/dist/common/src/index.d.ts +54 -57
- package/dist/common/src/index.js +70 -73
- package/dist/common/src/index.js.map +1 -1
- package/dist/common/src/integrations/ai_chatbot.types.d.ts +31 -31
- package/dist/common/src/integrations/ai_chatbot.types.js +2 -2
- package/dist/common/src/integrations/api.types.d.ts +80 -80
- package/dist/common/src/integrations/api.types.js +2 -2
- package/dist/common/src/integrations/auth.types.d.ts +39 -39
- package/dist/common/src/integrations/auth.types.js +2 -2
- package/dist/common/src/integrations/database.types.d.ts +274 -274
- package/dist/common/src/integrations/database.types.js +2 -2
- package/dist/common/src/integrations/index.d.ts +134 -134
- package/dist/common/src/integrations/index.js +119 -119
- package/dist/common/src/integrations/index.js.map +1 -1
- package/dist/common/src/integrations/observability.types.d.ts +23 -23
- package/dist/common/src/integrations/observability.types.js +23 -23
- package/dist/common/src/logger.types.d.ts +21 -21
- package/dist/common/src/logger.types.js +11 -11
- package/dist/common/src/logger.types.js.map +1 -1
- package/dist/common/src/metrics.types.d.ts +73 -73
- package/dist/common/src/metrics.types.js +11 -11
- package/dist/common/src/mutation.context.d.ts +13 -13
- package/dist/common/src/mutation.context.js +26 -26
- package/dist/common/src/mutation.schemas.d.ts +5 -5
- package/dist/common/src/mutation.schemas.js +114 -114
- package/dist/common/src/mutation.types.d.ts +63 -63
- package/dist/common/src/mutation.types.js +142 -142
- package/dist/common/src/native-query.context.d.ts +7 -7
- package/dist/common/src/native-query.context.js +11 -11
- package/dist/common/src/native-query.types.d.ts +16 -16
- package/dist/common/src/native-query.types.js +2 -2
- package/dist/common/src/query/base-query-builder.d.ts +38 -38
- package/dist/common/src/query/base-query-builder.js +39 -39
- package/dist/common/src/query/index.d.ts +4 -4
- package/dist/common/src/query/index.js +20 -20
- package/dist/common/src/query/pagination.d.ts +46 -46
- package/dist/common/src/query/pagination.js +211 -211
- package/dist/common/src/query/query-context.d.ts +47 -47
- package/dist/common/src/query/query-context.js +159 -159
- package/dist/common/src/query/serialized-query.types.d.ts +24 -24
- package/dist/common/src/query/serialized-query.types.js +2 -2
- package/dist/common/src/query.types.d.ts +86 -86
- package/dist/common/src/query.types.js +97 -97
- package/dist/common/src/regions.d.ts +21 -21
- package/dist/common/src/regions.js +46 -46
- package/dist/common/src/schema/schema.types.d.ts +30 -30
- package/dist/common/src/schema/schema.types.js +173 -173
- package/dist/common/src/secret.schemas.d.ts +4 -4
- package/dist/common/src/secret.schemas.js +17 -17
- package/dist/common/src/secret.types.d.ts +68 -68
- package/dist/common/src/secret.types.js +5 -5
- package/dist/common/src/security.types.d.ts +3 -3
- package/dist/common/src/security.types.js +2 -2
- package/dist/common/src/socket.schemas.d.ts +3 -3
- package/dist/common/src/socket.schemas.js +57 -57
- package/dist/common/src/socket.types.d.ts +126 -126
- package/dist/common/src/socket.types.js +9 -9
- package/dist/common/src/socket.types.js.map +1 -1
- package/dist/common/src/time-units.d.ts +11 -11
- package/dist/common/src/time-units.js +14 -14
- package/dist/common/src/trigger.types.d.ts +15 -15
- package/dist/common/src/trigger.types.js +2 -2
- package/dist/common/src/types.d.ts +21 -21
- package/dist/common/src/types.js +2 -2
- package/dist/common/src/utils/array.d.ts +8 -8
- package/dist/common/src/utils/array.js +54 -54
- package/dist/common/src/utils/assert.d.ts +3 -3
- package/dist/common/src/utils/assert.js +14 -14
- package/dist/common/src/utils/error.d.ts +4 -4
- package/dist/common/src/utils/error.js +10 -10
- package/dist/common/src/utils/global.utils.d.ts +11 -11
- package/dist/common/src/utils/global.utils.js +50 -50
- package/dist/common/src/utils/http.d.ts +2 -2
- package/dist/common/src/utils/http.js +51 -51
- package/dist/common/src/utils/id.d.ts +2 -2
- package/dist/common/src/utils/id.js +21 -21
- package/dist/common/src/utils/lock.manager.d.ts +9 -9
- package/dist/common/src/utils/lock.manager.js +39 -39
- package/dist/common/src/utils/object.d.ts +5 -5
- package/dist/common/src/utils/object.js +75 -75
- package/dist/common/src/utils/serialization.d.ts +5 -6
- package/dist/common/src/utils/serialization.js +73 -77
- package/dist/common/src/utils/serialization.js.map +1 -1
- package/dist/common/src/utils/transforms.d.ts +18 -18
- package/dist/common/src/utils/transforms.js +104 -104
- package/dist/common/src/utils/url.d.ts +1 -1
- package/dist/common/src/utils/url.js +15 -15
- package/dist/common/src/utils/validation.d.ts +17 -17
- package/dist/common/src/utils/validation.js +199 -199
- package/dist/common/src/webhook-response.d.ts +6 -6
- package/dist/common/src/webhook-response.js +2 -2
- package/dist/common/src/websocket.impl.d.ts +21 -21
- package/dist/common/src/websocket.impl.js +79 -79
- package/dist/internal-common/src/code-executor.types.d.ts +13 -13
- package/dist/internal-common/src/code-executor.types.js +2 -2
- package/dist/internal-common/src/local-dev.types.d.ts +35 -35
- package/dist/internal-common/src/local-dev.types.js +2 -2
- package/dist/local-backend/package.json +48 -48
- package/dist/local-backend/src/index.d.ts +4 -4
- package/dist/local-backend/src/index.js +26 -26
- package/dist/local-backend/src/local-backend-socket.service.d.ts +18 -18
- package/dist/local-backend/src/local-backend-socket.service.js +107 -108
- package/dist/local-backend/src/local-backend-socket.service.js.map +1 -1
- package/dist/local-backend/src/local-backend.app.d.ts +2 -2
- package/dist/local-backend/src/local-backend.app.js +19 -19
- package/dist/local-backend/src/local-backend.controller.d.ts +8 -8
- package/dist/local-backend/src/local-backend.controller.js +48 -49
- package/dist/local-backend/src/local-backend.controller.js.map +1 -1
- package/dist/local-backend/src/local-backend.module.d.ts +8 -8
- package/dist/local-backend/src/local-backend.module.js +51 -53
- package/dist/local-backend/src/local-backend.module.js.map +1 -1
- package/dist/local-backend/src/local-backend.service.d.ts +15 -15
- package/dist/local-backend/src/local-backend.service.js +173 -176
- package/dist/local-backend/src/local-backend.service.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/common/src/named-query.context.d.ts +0 -4
- package/dist/common/src/named-query.context.js +0 -10
- package/dist/common/src/named-query.context.js.map +0 -1
- package/dist/common/src/named-query.schemas.d.ts +0 -3
- package/dist/common/src/named-query.schemas.js +0 -14
- package/dist/common/src/named-query.schemas.js.map +0 -1
- package/dist/common/src/named-query.types.d.ts +0 -8
- package/dist/common/src/named-query.types.js +0 -3
- package/dist/common/src/named-query.types.js.map +0 -1
- package/dist/internal-common/src/utils/logger-utils.d.ts +0 -3
- package/dist/internal-common/src/utils/logger-utils.js +0 -29
- package/dist/internal-common/src/utils/logger-utils.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export interface ExecuteBackendFunctionRequest {
|
|
2
|
-
functionName: string;
|
|
3
|
-
paramsArrayStr: string;
|
|
4
|
-
}
|
|
1
|
+
export interface ExecuteBackendFunctionRequest {
|
|
2
|
+
functionName: string;
|
|
3
|
+
paramsArrayStr: string;
|
|
4
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=backend-function.types.js.map
|
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
import { Auth, RunContext } from './context.types';
|
|
2
|
-
import { ApplicationSecrets, SecretKey, SecretValue } from './secret.types';
|
|
3
|
-
export interface RunPermissions {
|
|
4
|
-
hosts: Array<string>;
|
|
5
|
-
}
|
|
6
|
-
export interface ErrorResponse extends GeneralResponse {
|
|
7
|
-
ok: false;
|
|
8
|
-
error: string;
|
|
9
|
-
details?: string;
|
|
10
|
-
functionName: string;
|
|
11
|
-
}
|
|
12
|
-
export interface GeneralResponse {
|
|
13
|
-
ok: boolean;
|
|
14
|
-
}
|
|
15
|
-
export interface RunConfiguration {
|
|
16
|
-
codeUrl: string;
|
|
17
|
-
codeUrlId: string;
|
|
18
|
-
isSecurityRules: boolean;
|
|
19
|
-
permissions: RunPermissions;
|
|
20
|
-
}
|
|
21
|
-
export interface LoadJsPayload {
|
|
22
|
-
codeUrl: string;
|
|
23
|
-
}
|
|
24
|
-
export declare const ExecuteFunctionSecureAnnotations: readonly ["secureDistributedLock", "secureQuery", "secureMutation", "secureNamedQuery", "secureNativeQuery", "secureGraphQL", "secureApi", "secureAiChatbotChat", "secureAiChatbotMutation"];
|
|
25
|
-
export type ExecuteFunctionSecureAnnotationType = (typeof ExecuteFunctionSecureAnnotations)[number];
|
|
26
|
-
export type ExecuteFunctionAnnotationType = 'executable' | 'webhook' | 'scheduler' | 'trigger' | 'transformRead' | 'transformWrite' | 'metadata' | 'aiFunction' | ExecuteFunctionSecureAnnotationType;
|
|
27
|
-
export interface ExecuteFunctionPayload {
|
|
28
|
-
functionName: string;
|
|
29
|
-
params: Array<unknown>;
|
|
30
|
-
context: RunContext;
|
|
31
|
-
auth: Auth | undefined;
|
|
32
|
-
secrets?: Record<SecretKey, SecretValue>;
|
|
33
|
-
backendApiKey: string;
|
|
34
|
-
codeDir: string;
|
|
35
|
-
executeFunctionAnnotationType: ExecuteFunctionAnnotationType;
|
|
36
|
-
}
|
|
37
|
-
export declare function transformParams(params: Array<any>, executeFunctionAnnotationType: ExecuteFunctionAnnotationType): unknown[];
|
|
38
|
-
export declare function transformResponse(functionResponse: any, executeFunctionAnnotationType: ExecuteFunctionAnnotationType): any;
|
|
39
|
-
export type WorkerActionType = 'loadJs' | 'executeFunction' | 'ping' | 'terminate' | 'heartbeat';
|
|
40
|
-
export interface ActionRequest {
|
|
41
|
-
action: WorkerActionType;
|
|
42
|
-
payload?: LoadJsPayload | ExecuteFunctionPayload;
|
|
43
|
-
}
|
|
44
|
-
export type LoadJsResponse = GeneralResponse;
|
|
45
|
-
export type TerminateResponse = GeneralResponse;
|
|
46
|
-
export interface ExecuteFunctionResponse extends GeneralResponse {
|
|
47
|
-
ok: true;
|
|
48
|
-
functionResponse: unknown;
|
|
49
|
-
}
|
|
50
|
-
export interface RunSecrets {
|
|
51
|
-
custom: Record<SecretKey, SecretValue>;
|
|
52
|
-
backendApiKey: string;
|
|
53
|
-
}
|
|
54
|
-
export declare function convertToRunSecrets(appSecrets: ApplicationSecrets): RunSecrets;
|
|
1
|
+
import { Auth, RunContext } from './context.types';
|
|
2
|
+
import { ApplicationSecrets, SecretKey, SecretValue } from './secret.types';
|
|
3
|
+
export interface RunPermissions {
|
|
4
|
+
hosts: Array<string>;
|
|
5
|
+
}
|
|
6
|
+
export interface ErrorResponse extends GeneralResponse {
|
|
7
|
+
ok: false;
|
|
8
|
+
error: string;
|
|
9
|
+
details?: string;
|
|
10
|
+
functionName: string;
|
|
11
|
+
}
|
|
12
|
+
export interface GeneralResponse {
|
|
13
|
+
ok: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface RunConfiguration {
|
|
16
|
+
codeUrl: string;
|
|
17
|
+
codeUrlId: string;
|
|
18
|
+
isSecurityRules: boolean;
|
|
19
|
+
permissions: RunPermissions;
|
|
20
|
+
}
|
|
21
|
+
export interface LoadJsPayload {
|
|
22
|
+
codeUrl: string;
|
|
23
|
+
}
|
|
24
|
+
export declare const ExecuteFunctionSecureAnnotations: readonly ["secureDistributedLock", "secureQuery", "secureMutation", "secureNamedQuery", "secureNativeQuery", "secureGraphQL", "secureApi", "secureAiChatbotChat", "secureAiChatbotMutation"];
|
|
25
|
+
export type ExecuteFunctionSecureAnnotationType = (typeof ExecuteFunctionSecureAnnotations)[number];
|
|
26
|
+
export type ExecuteFunctionAnnotationType = 'executable' | 'webhook' | 'scheduler' | 'trigger' | 'transformRead' | 'transformWrite' | 'metadata' | 'aiFunction' | ExecuteFunctionSecureAnnotationType;
|
|
27
|
+
export interface ExecuteFunctionPayload {
|
|
28
|
+
functionName: string;
|
|
29
|
+
params: Array<unknown>;
|
|
30
|
+
context: RunContext;
|
|
31
|
+
auth: Auth | undefined;
|
|
32
|
+
secrets?: Record<SecretKey, SecretValue>;
|
|
33
|
+
backendApiKey: string;
|
|
34
|
+
codeDir: string;
|
|
35
|
+
executeFunctionAnnotationType: ExecuteFunctionAnnotationType;
|
|
36
|
+
}
|
|
37
|
+
export declare function transformParams(params: Array<any>, executeFunctionAnnotationType: ExecuteFunctionAnnotationType): unknown[];
|
|
38
|
+
export declare function transformResponse(functionResponse: any, executeFunctionAnnotationType: ExecuteFunctionAnnotationType): any;
|
|
39
|
+
export type WorkerActionType = 'loadJs' | 'executeFunction' | 'ping' | 'terminate' | 'heartbeat';
|
|
40
|
+
export interface ActionRequest {
|
|
41
|
+
action: WorkerActionType;
|
|
42
|
+
payload?: LoadJsPayload | ExecuteFunctionPayload;
|
|
43
|
+
}
|
|
44
|
+
export type LoadJsResponse = GeneralResponse;
|
|
45
|
+
export type TerminateResponse = GeneralResponse;
|
|
46
|
+
export interface ExecuteFunctionResponse extends GeneralResponse {
|
|
47
|
+
ok: true;
|
|
48
|
+
functionResponse: unknown;
|
|
49
|
+
}
|
|
50
|
+
export interface RunSecrets {
|
|
51
|
+
custom: Record<SecretKey, SecretValue>;
|
|
52
|
+
backendApiKey: string;
|
|
53
|
+
}
|
|
54
|
+
export declare function convertToRunSecrets(appSecrets: ApplicationSecrets): RunSecrets;
|
|
@@ -1,96 +1,93 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.convertToRunSecrets = exports.transformResponse = exports.transformParams = exports.ExecuteFunctionSecureAnnotations = void 0;
|
|
4
|
-
const api_call_context_1 = require("./api-call.context");
|
|
5
|
-
const distributed_lock_context_1 = require("./distributed-lock.context");
|
|
6
|
-
const graphql_context_1 = require("./graphql.context");
|
|
7
|
-
const mutation_context_1 = require("./mutation.context");
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
'
|
|
17
|
-
'
|
|
18
|
-
'
|
|
19
|
-
'
|
|
20
|
-
'
|
|
21
|
-
'
|
|
22
|
-
'
|
|
23
|
-
'
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
custom
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
function isWebhookResponse(response) {
|
|
94
|
-
return response && response.__isWebhookResponse__;
|
|
95
|
-
}
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.convertToRunSecrets = exports.transformResponse = exports.transformParams = exports.ExecuteFunctionSecureAnnotations = void 0;
|
|
4
|
+
const api_call_context_1 = require("./api-call.context");
|
|
5
|
+
const distributed_lock_context_1 = require("./distributed-lock.context");
|
|
6
|
+
const graphql_context_1 = require("./graphql.context");
|
|
7
|
+
const mutation_context_1 = require("./mutation.context");
|
|
8
|
+
const query_1 = require("./query");
|
|
9
|
+
const secret_types_1 = require("./secret.types");
|
|
10
|
+
const serialization_1 = require("./utils/serialization");
|
|
11
|
+
const assertic_1 = require("assertic");
|
|
12
|
+
const native_query_context_1 = require("./native-query.context");
|
|
13
|
+
const ai_chatbot_context_1 = require("./ai-chatbot.context");
|
|
14
|
+
exports.ExecuteFunctionSecureAnnotations = [
|
|
15
|
+
'secureDistributedLock',
|
|
16
|
+
'secureQuery',
|
|
17
|
+
'secureMutation',
|
|
18
|
+
'secureNamedQuery',
|
|
19
|
+
'secureNativeQuery',
|
|
20
|
+
'secureGraphQL',
|
|
21
|
+
'secureApi',
|
|
22
|
+
'secureAiChatbotChat',
|
|
23
|
+
'secureAiChatbotMutation',
|
|
24
|
+
];
|
|
25
|
+
function transformParams(params, executeFunctionAnnotationType) {
|
|
26
|
+
switch (executeFunctionAnnotationType) {
|
|
27
|
+
case 'scheduler':
|
|
28
|
+
return [];
|
|
29
|
+
case 'secureQuery':
|
|
30
|
+
return [new query_1.QueryContext(params[0].query)];
|
|
31
|
+
case 'secureMutation':
|
|
32
|
+
return [new mutation_context_1.MutationContext(params[0].mutation, params[0]['beforeAndAfterDocs'], params[0]['serverTimestamp'])];
|
|
33
|
+
case 'secureNativeQuery':
|
|
34
|
+
return [new native_query_context_1.NativeQueryContext(params[0], params[1], params[2])];
|
|
35
|
+
case 'secureDistributedLock':
|
|
36
|
+
return [new distributed_lock_context_1.DistributedLockContext(params[0].mutex)];
|
|
37
|
+
case 'secureGraphQL':
|
|
38
|
+
return [new graphql_context_1.GraphqlContext(params[0])];
|
|
39
|
+
case 'secureApi':
|
|
40
|
+
return [new api_call_context_1.ApiCallContext(params[0])];
|
|
41
|
+
case 'secureAiChatbotChat':
|
|
42
|
+
return [new ai_chatbot_context_1.AiChatbotChatContext(params[0])];
|
|
43
|
+
case 'secureAiChatbotMutation':
|
|
44
|
+
return [new ai_chatbot_context_1.AiChatbotMutationContext(params[0])];
|
|
45
|
+
default:
|
|
46
|
+
return params;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
exports.transformParams = transformParams;
|
|
50
|
+
function transformResponse(functionResponse, executeFunctionAnnotationType) {
|
|
51
|
+
if (exports.ExecuteFunctionSecureAnnotations.includes(executeFunctionAnnotationType)) {
|
|
52
|
+
return {
|
|
53
|
+
rulesPassed: functionResponse,
|
|
54
|
+
docsToHash: functionResponse ? {} : undefined,
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
if (executeFunctionAnnotationType === 'webhook') {
|
|
58
|
+
if (isWebhookResponse(functionResponse)) {
|
|
59
|
+
delete functionResponse['__isWebhookResponse__'];
|
|
60
|
+
return functionResponse;
|
|
61
|
+
}
|
|
62
|
+
functionResponse = functionResponse !== null && functionResponse !== void 0 ? functionResponse : null;
|
|
63
|
+
const isStringOrNullBody = functionResponse === null || typeof functionResponse === 'string';
|
|
64
|
+
const headers = {
|
|
65
|
+
'content-type': isStringOrNullBody ? 'text/plain' : 'application/json',
|
|
66
|
+
'cache-control': 'no-cache',
|
|
67
|
+
};
|
|
68
|
+
const body = isStringOrNullBody ? functionResponse || '' : (0, serialization_1.serializeObj)(functionResponse);
|
|
69
|
+
const webhookResponse = {
|
|
70
|
+
headers,
|
|
71
|
+
body,
|
|
72
|
+
statusCode: functionResponse === null ? 204 : 200,
|
|
73
|
+
};
|
|
74
|
+
return webhookResponse;
|
|
75
|
+
}
|
|
76
|
+
return functionResponse;
|
|
77
|
+
}
|
|
78
|
+
exports.transformResponse = transformResponse;
|
|
79
|
+
function convertToRunSecrets(appSecrets) {
|
|
80
|
+
const result = {
|
|
81
|
+
backendApiKey: (0, assertic_1.truthy)(appSecrets.apiKeys[secret_types_1.BACKEND_API_KEY].value, 'Cannot find backend API key'),
|
|
82
|
+
custom: {},
|
|
83
|
+
};
|
|
84
|
+
for (const [key, valueWrapper] of Object.entries(appSecrets.custom)) {
|
|
85
|
+
result.custom[key] = valueWrapper.value;
|
|
86
|
+
}
|
|
87
|
+
return result;
|
|
88
|
+
}
|
|
89
|
+
exports.convertToRunSecrets = convertToRunSecrets;
|
|
90
|
+
function isWebhookResponse(response) {
|
|
91
|
+
return response && response.__isWebhookResponse__;
|
|
92
|
+
}
|
|
96
93
|
//# sourceMappingURL=backend-run.types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"backend-run.types.js","sourceRoot":"","sources":["../../../../common/src/backend-run.types.ts"],"names":[],"mappings":";;;AAAA,yDAAoD;AAEpD,yEAAoE;AACpE,uDAAmD;AACnD,yDAAqD;AACrD
|
|
1
|
+
{"version":3,"file":"backend-run.types.js","sourceRoot":"","sources":["../../../../common/src/backend-run.types.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,69 +1,65 @@
|
|
|
1
|
-
import { AiChatbotActionType, DatabaseActionType } from './bundle-data.types';
|
|
2
|
-
import { Auth, RunContext } from './context.types';
|
|
3
|
-
import { DocumentData, SquidDocId } from './document.types';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
rulesPassed:
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
export type
|
|
35
|
-
export type
|
|
36
|
-
export type
|
|
37
|
-
export type
|
|
38
|
-
export type
|
|
39
|
-
export type
|
|
40
|
-
export type
|
|
41
|
-
export
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
size: number;
|
|
67
|
-
encoding?: string;
|
|
68
|
-
}
|
|
69
|
-
export type ActionMethodDecorator<U> = <T extends U>(target: Object, propertyName: string, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T>;
|
|
1
|
+
import { AiChatbotActionType, DatabaseActionType } from './bundle-data.types';
|
|
2
|
+
import { Auth, RunContext } from './context.types';
|
|
3
|
+
import { DocumentData, SquidDocId } from './document.types';
|
|
4
|
+
import { MutationContext } from './mutation.context';
|
|
5
|
+
import { MutationType } from './mutation.types';
|
|
6
|
+
import { QueryContext } from './query';
|
|
7
|
+
import { SecretKey } from './secret.types';
|
|
8
|
+
import { ApiCallContext } from './api-call.context';
|
|
9
|
+
import { GraphqlContext } from './graphql.context';
|
|
10
|
+
import { DistributedLockContext } from './distributed-lock.context';
|
|
11
|
+
import { ClientId, EnvironmentId, SquidDeveloperId } from './communication.types';
|
|
12
|
+
import { ClientConnectionState } from './socket.types';
|
|
13
|
+
import { NativeQueryContext } from './native-query.context';
|
|
14
|
+
import { AiChatbotChatContext, AiChatbotMutationContext } from './ai-chatbot.context';
|
|
15
|
+
export type DocHash = string;
|
|
16
|
+
export type SecurityResponse = {
|
|
17
|
+
docsToHash: Record<SquidDocId, DocHash | undefined>;
|
|
18
|
+
rulesPassed: true;
|
|
19
|
+
} | {
|
|
20
|
+
rulesPassed: false;
|
|
21
|
+
};
|
|
22
|
+
export interface ServiceConfig {
|
|
23
|
+
context: RunContext;
|
|
24
|
+
secrets: Record<SecretKey, any>;
|
|
25
|
+
backendApiKey: string;
|
|
26
|
+
codeDir: string;
|
|
27
|
+
auth: Auth | undefined;
|
|
28
|
+
squidDeveloperId?: SquidDeveloperId;
|
|
29
|
+
environmentId?: EnvironmentId;
|
|
30
|
+
}
|
|
31
|
+
export type SecureDatabaseAction<T extends DatabaseActionType> = T extends 'all' ? () => boolean | Promise<boolean> : T extends 'read' ? ((context: QueryContext) => boolean | Promise<boolean>) | (() => boolean | Promise<boolean>) : ((context: MutationContext) => boolean | Promise<boolean>) | (() => boolean | Promise<boolean>);
|
|
32
|
+
export type SecureApiAction = ((context: ApiCallContext) => boolean | Promise<boolean>) | (() => boolean | Promise<boolean>);
|
|
33
|
+
export type SecureNativeQueryAction = ((context: NativeQueryContext) => boolean | Promise<boolean>) | (() => boolean | Promise<boolean>);
|
|
34
|
+
export type SecureDistributedLockAction = ((context: DistributedLockContext) => boolean | Promise<boolean>) | (() => boolean | Promise<boolean>);
|
|
35
|
+
export type SecureGraphQLAction = ((context: GraphqlContext) => boolean | Promise<boolean>) | (() => boolean | Promise<boolean>);
|
|
36
|
+
export type SecureAiChatbotAction<T extends AiChatbotActionType> = T extends 'all' ? () => boolean | Promise<boolean> : T extends 'chat' ? ((context: AiChatbotChatContext) => boolean | Promise<boolean>) | (() => boolean | Promise<boolean>) : ((context: AiChatbotMutationContext) => boolean | Promise<boolean>) | (() => boolean | Promise<boolean>);
|
|
37
|
+
export type ClientConnectionStateChangeAction = (clientId: ClientId, clientConnectionState: ClientConnectionState) => Promise<void> | void;
|
|
38
|
+
export type ExecutableAction = (...args: any[]) => any;
|
|
39
|
+
export type AiFunctionAction<T extends Record<string, any> = any> = (params: T) => any;
|
|
40
|
+
export type TriggerAction = ((request: TriggerRequest) => void | Promise<void>) | (() => void | Promise<void>);
|
|
41
|
+
export interface TriggerRequest<T extends DocumentData = any> {
|
|
42
|
+
squidDocId: SquidDocId;
|
|
43
|
+
mutationType: MutationType;
|
|
44
|
+
docBefore?: T;
|
|
45
|
+
docAfter?: T;
|
|
46
|
+
}
|
|
47
|
+
export type SchedulerAction = () => void | Promise<void>;
|
|
48
|
+
export type WebhookAction = ((request: WebhookRequest) => any) | (() => any);
|
|
49
|
+
export interface WebhookRequest {
|
|
50
|
+
body: any;
|
|
51
|
+
rawBody?: string;
|
|
52
|
+
queryParams: Record<string, string>;
|
|
53
|
+
headers: Record<string, string>;
|
|
54
|
+
httpMethod: 'post' | 'get' | 'put' | 'delete';
|
|
55
|
+
files?: Array<SquidFile>;
|
|
56
|
+
}
|
|
57
|
+
export interface SquidFile {
|
|
58
|
+
data: Uint8Array;
|
|
59
|
+
fieldName: string;
|
|
60
|
+
mimetype: string;
|
|
61
|
+
originalName: string;
|
|
62
|
+
size: number;
|
|
63
|
+
encoding?: string;
|
|
64
|
+
}
|
|
65
|
+
export type ActionMethodDecorator<U> = <T extends U>(target: Object, propertyName: string, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=bundle-api.types.js.map
|
|
@@ -1,74 +1,69 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { IntegrationId } from './communication.types';
|
|
3
|
-
import { CollectionName } from './document.types';
|
|
4
|
-
import { ApiEndpointId } from './integrations';
|
|
5
|
-
export type DatabaseActionType = 'read' | 'write' | 'update' | 'insert' | 'delete' | 'all';
|
|
6
|
-
export type AiChatbotActionType = 'chat' | 'mutate' | 'all';
|
|
7
|
-
export type ServiceName = string;
|
|
8
|
-
export type FunctionName = string;
|
|
9
|
-
export type ServiceFunctionName = `${ServiceName}:${FunctionName}`;
|
|
10
|
-
export interface ApplicationBundleData {
|
|
11
|
-
databases: Record<IntegrationId, DatabaseMetadata>;
|
|
12
|
-
apis: Record<IntegrationId, {
|
|
13
|
-
endpoints: Record<ApiEndpointId, ApiMetadata>;
|
|
14
|
-
} & ApiMetadata>;
|
|
15
|
-
graphql: Record<IntegrationId, GraphQLMetadata>;
|
|
16
|
-
executables: Record<FunctionName, ExecutableMetadata>;
|
|
17
|
-
triggers: Record<TriggerId, TriggerConfig>;
|
|
18
|
-
schedulers: Record<SchedulerId, SchedulerConfig>;
|
|
19
|
-
webhooks: Record<WebhookId, WebhookConfig>;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
export
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
}
|
|
71
|
-
export interface AiChatbotMetadata {
|
|
72
|
-
security: Record<AiChatbotActionType, Array<ServiceFunctionName>>;
|
|
73
|
-
}
|
|
74
|
-
export {};
|
|
1
|
+
import { SchedulerConfig, SchedulerId, TriggerConfig, TriggerId, WebhookConfig, WebhookId } from './application.types';
|
|
2
|
+
import { IntegrationId } from './communication.types';
|
|
3
|
+
import { CollectionName } from './document.types';
|
|
4
|
+
import { ApiEndpointId } from './integrations';
|
|
5
|
+
export type DatabaseActionType = 'read' | 'write' | 'update' | 'insert' | 'delete' | 'all';
|
|
6
|
+
export type AiChatbotActionType = 'chat' | 'mutate' | 'all';
|
|
7
|
+
export type ServiceName = string;
|
|
8
|
+
export type FunctionName = string;
|
|
9
|
+
export type ServiceFunctionName = `${ServiceName}:${FunctionName}`;
|
|
10
|
+
export interface ApplicationBundleData {
|
|
11
|
+
databases: Record<IntegrationId, DatabaseMetadata>;
|
|
12
|
+
apis: Record<IntegrationId, {
|
|
13
|
+
endpoints: Record<ApiEndpointId, ApiMetadata>;
|
|
14
|
+
} & ApiMetadata>;
|
|
15
|
+
graphql: Record<IntegrationId, GraphQLMetadata>;
|
|
16
|
+
executables: Record<FunctionName, ExecutableMetadata>;
|
|
17
|
+
triggers: Record<TriggerId, TriggerConfig>;
|
|
18
|
+
schedulers: Record<SchedulerId, SchedulerConfig>;
|
|
19
|
+
webhooks: Record<WebhookId, WebhookConfig>;
|
|
20
|
+
nativeQueries: Record<IntegrationId, Array<ServiceFunctionName>>;
|
|
21
|
+
distributedLocks: {
|
|
22
|
+
security?: Array<ServiceFunctionName>;
|
|
23
|
+
mutexes?: Record<string, {
|
|
24
|
+
security?: Array<ServiceFunctionName>;
|
|
25
|
+
}>;
|
|
26
|
+
};
|
|
27
|
+
aiChatbots: Record<IntegrationId, {
|
|
28
|
+
profiles: Record<string, AiChatbotMetadata>;
|
|
29
|
+
} & AiChatbotMetadata>;
|
|
30
|
+
clientConnectionStateChangeHandlers?: Array<ServiceFunctionName>;
|
|
31
|
+
aiFunctions?: Record<FunctionName, AiFunctionMetadata>;
|
|
32
|
+
}
|
|
33
|
+
export type AiFunctionParamType = 'string' | 'number' | 'boolean' | 'date';
|
|
34
|
+
export interface AiFunctionParam {
|
|
35
|
+
name: string;
|
|
36
|
+
description: string;
|
|
37
|
+
type: AiFunctionParamType;
|
|
38
|
+
required: boolean;
|
|
39
|
+
}
|
|
40
|
+
export interface AiFunctionMetadata {
|
|
41
|
+
description: string;
|
|
42
|
+
params: Array<AiFunctionParam>;
|
|
43
|
+
serviceFunction: ServiceFunctionName;
|
|
44
|
+
}
|
|
45
|
+
export interface DatabaseMetadata {
|
|
46
|
+
collections: Record<CollectionName, CollectionMetadata>;
|
|
47
|
+
security?: Record<DatabaseActionType, Array<ServiceFunctionName>>;
|
|
48
|
+
transform?: Record<DatabaseActionType, DatabaseTransformMetadata>;
|
|
49
|
+
}
|
|
50
|
+
export interface CollectionMetadata {
|
|
51
|
+
security?: Record<DatabaseActionType, Array<ServiceFunctionName>>;
|
|
52
|
+
transform?: Record<DatabaseActionType, DatabaseTransformMetadata>;
|
|
53
|
+
}
|
|
54
|
+
export interface DatabaseTransformMetadata {
|
|
55
|
+
serviceFunction: ServiceFunctionName;
|
|
56
|
+
}
|
|
57
|
+
export interface ExecutableMetadata {
|
|
58
|
+
serviceFunction: ServiceFunctionName;
|
|
59
|
+
}
|
|
60
|
+
export interface ApiMetadata {
|
|
61
|
+
security: Array<ServiceFunctionName>;
|
|
62
|
+
}
|
|
63
|
+
interface GraphQLMetadata {
|
|
64
|
+
security: Array<ServiceFunctionName>;
|
|
65
|
+
}
|
|
66
|
+
export interface AiChatbotMetadata {
|
|
67
|
+
security: Record<AiChatbotActionType, Array<ServiceFunctionName>>;
|
|
68
|
+
}
|
|
69
|
+
export {};
|