@squidcloud/local-backend 1.0.268 → 1.0.270
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/internal-common/src/public-types/ai-chatbot.public-types.d.ts +19 -0
- package/dist/internal-common/src/public-types/ai-chatbot.public-types.js.map +1 -1
- package/dist/internal-common/src/public-types/bundle-data.public-types.d.ts +1 -0
- package/dist/internal-common/src/public-types/integration.public-types.d.ts +1 -0
- package/dist/internal-common/src/public-types/integration.public-types.js +1 -0
- package/dist/internal-common/src/public-types/integration.public-types.js.map +1 -1
- package/dist/internal-common/src/public-types-backend/bundle-api.public-types.d.ts +3 -1
- package/dist/internal-common/src/public-types-backend/metric.public-context.d.ts +5 -0
- package/dist/internal-common/src/public-types-backend/metric.public-context.js +3 -0
- package/dist/internal-common/src/public-types-backend/metric.public-context.js.map +1 -0
- package/dist/internal-common/src/types/ai-chatbot.types.d.ts +5 -0
- package/dist/internal-common/src/types/backend-run.types.d.ts +1 -1
- package/dist/internal-common/src/types/backend-run.types.js +7 -6
- package/dist/internal-common/src/types/backend-run.types.js.map +1 -1
- package/dist/internal-common/src/types/bundle-data.types.d.ts +8 -1
- package/dist/internal-common/src/types/integrations/schemas.d.ts +2 -1
- package/dist/internal-common/src/types/integrations/schemas.js.map +1 -1
- package/dist/internal-common/src/types/integrations/storage-types.d.ts +11 -0
- package/dist/internal-common/src/utils/http.js +1 -0
- package/dist/internal-common/src/utils/http.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { FunctionName } from './bundle-data.public-types';
|
|
2
|
+
import { IntegrationId } from './communication.public-types';
|
|
2
3
|
export declare const OPENAI_CHAT_MODEL_NAMES: readonly ["gpt-3.5-turbo", "gpt-3.5-turbo-1106", "gpt-4", "gpt-4-turbo-preview", "gpt-4o", "gpt-4o-mini", "gpt-4o-2024-08-06", "gpt-4-turbo"];
|
|
3
4
|
export declare const GEMINI_CHAT_MODEL_NAMES: readonly ["gemini-pro"];
|
|
4
5
|
export declare const ANTHROPIC_CHAT_MODEL_NAMES: readonly ["claude-3-opus-20240229", "claude-3-sonnet-20240229", "claude-3-haiku-20240307", "claude-3-5-sonnet-20240620"];
|
|
@@ -71,6 +72,16 @@ export interface AiChatbotChatOptions {
|
|
|
71
72
|
instructions?: Array<string>;
|
|
72
73
|
contextMetadataFilter?: AiContextMetadataFilter;
|
|
73
74
|
}
|
|
75
|
+
export interface AiSearchOptions {
|
|
76
|
+
prompt: string;
|
|
77
|
+
contextMetadataFilter?: AiContextMetadataFilter;
|
|
78
|
+
limit?: number;
|
|
79
|
+
}
|
|
80
|
+
export interface AiSearchRequest {
|
|
81
|
+
options: AiSearchOptions;
|
|
82
|
+
profileId: string;
|
|
83
|
+
integrationId: IntegrationId;
|
|
84
|
+
}
|
|
74
85
|
export type AiChatbotMutationType = 'insert' | 'update' | 'delete';
|
|
75
86
|
export type AiChatbotResourceType = 'instruction' | 'context' | 'profile';
|
|
76
87
|
export type AiChatbotContextType = 'text' | 'url' | 'file';
|
|
@@ -79,6 +90,14 @@ export interface AiChatbotContextBase {
|
|
|
79
90
|
data: string;
|
|
80
91
|
metadata?: AiContextMetadata;
|
|
81
92
|
}
|
|
93
|
+
export interface AiSearchResponse {
|
|
94
|
+
chunks: Array<AiSearchResultChunk>;
|
|
95
|
+
}
|
|
96
|
+
export interface AiSearchResultChunk {
|
|
97
|
+
data: string;
|
|
98
|
+
metadata?: AiContextMetadata;
|
|
99
|
+
score: number;
|
|
100
|
+
}
|
|
82
101
|
export interface AiChatbotTextContext extends AiChatbotContextBase {
|
|
83
102
|
type: 'text';
|
|
84
103
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai-chatbot.public-types.js","sourceRoot":"","sources":["../../../../../internal-common/src/public-types/ai-chatbot.public-types.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"ai-chatbot.public-types.js","sourceRoot":"","sources":["../../../../../internal-common/src/public-types/ai-chatbot.public-types.ts"],"names":[],"mappings":";;;AAIa,QAAA,uBAAuB,GAAG;IACrC,eAAe;IACf,oBAAoB;IACpB,OAAO;IACP,qBAAqB;IACrB,QAAQ;IACR,aAAa;IACb,mBAAmB;IACnB,aAAa;CACL,CAAC;AAEE,QAAA,uBAAuB,GAAG,CAAC,YAAY,CAAU,CAAC;AAElD,QAAA,0BAA0B,GAAG;IACxC,wBAAwB;IACxB,0BAA0B;IAC1B,yBAAyB;IACzB,4BAA4B;CACpB,CAAC;AAGE,QAAA,mBAAmB,GAAG;IACjC,GAAG,+BAAuB;IAC1B,GAAG,kCAA0B;IAC7B,GAAG,+BAAuB;CAClB,CAAC;AAEE,QAAA,6BAA6B,GAAG;IAC3C,wBAAwB;IACxB,wBAAwB;IACxB,wBAAwB;CAChB,CAAC;AAEE,QAAA,yBAAyB,GAAG,CAAC,GAAG,qCAA6B,CAAU,CAAC;AAGxE,QAAA,wBAAwB,GAAG,CAAC,UAAU,CAAU,CAAC;AACjD,QAAA,wBAAwB,GAAG,CAAC,WAAW,CAAU,CAAC;AAClD,QAAA,4BAA4B,GAAG,CAAC,uBAAuB,CAAU,CAAC;AAClE,QAAA,oBAAoB,GAAG,CAAC,GAAG,gCAAwB,EAAE,GAAG,oCAA4B,CAAU,CAAC;AAC/F,QAAA,oBAAoB,GAAG,CAAC,GAAG,gCAAwB,CAAU,CAAC;AAoK3E,MAAa,oBAAoB;IAO/B,YAAY,SAA+B;QACzC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC,SAAS,CAAC;QACrC,IAAI,CAAC,MAAM,GAAG,SAAS,CAAC,MAAM,CAAC;IACjC,CAAC;CACF;AAXD,oDAWC;AAyED,MAAM,sBAAsB,GAAG,CAAC,SAAS,EAAE,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,EAAE,kBAAkB,CAAC,CAAC;AAGvH,SAAgB,yBAAyB,C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AAM,IAAI,KAAK,CAAC,+BAA+B,GAAG,uDAAuD,CAAC,CAAC;YAC7G,CAAC;YAED,IAAI,sBAAsB,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;gBACzC,MAAM,IAAI,KAAK,CACb,+BAA+B,GAAG,gDAAgD,sBAAsB,CAAC,IAAI,CAC3G,IAAI,CACL,EAAE,CACJ,CAAC;YACJ,CAAC;YACD,MAAM,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;YAC1B,IACE,OAAO,KAAK,KAAK,QAAQ;gBACzB,OAAO,KAAK,KAAK,QAAQ;gBACzB,OAAO,KAAK,KAAK,QAAQ;gBACzB,OAAO,KAAK,KAAK,SAAS,EAC1B,CAAC;gBACD,MAAM,IAAI,KAAK,CAAC,yCAAyC,GAAG,wBAAwB,OAAO,KAAK,EAAE,CAAC,CAAC;YACtG,CAAC;QACH,CAAC;IACH,CAAC;AACH,CAAC;AAlCD,0EAkCC;AAED,SAAS,WAAW,CAAC,MAA+B;IAClD,OAAO,MAAM,IAAI,MAAM,CAAC;AAC1B,CAAC;AAED,SAAS,UAAU,CAAC,MAA+B;IACjD,OAAO,KAAK,IAAI,MAAM,CAAC;AACzB,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export type DatabaseActionType = 'read' | 'write' | 'update' | 'insert' | 'delete' | 'all';
|
|
2
2
|
export type StorageActionType = 'read' | 'write' | 'update' | 'insert' | 'delete' | 'all';
|
|
3
3
|
export type TopicActionType = 'read' | 'write' | 'all';
|
|
4
|
+
export type MetricActionType = 'write' | 'all';
|
|
4
5
|
export type AiChatbotActionType = 'chat' | 'mutate' | 'all';
|
|
5
6
|
export type AiFunctionParamType = 'string' | 'number' | 'boolean' | 'date';
|
|
6
7
|
export type FunctionName = string;
|
|
@@ -26,6 +26,7 @@ export declare enum IntegrationType {
|
|
|
26
26
|
'gcs' = "gcs",
|
|
27
27
|
'built_in_s3' = "built_in_s3",
|
|
28
28
|
'built_in_gcs' = "built_in_gcs",
|
|
29
|
+
'google_drive' = "google_drive",
|
|
29
30
|
'algolia' = "algolia",
|
|
30
31
|
'elastic_observability' = "elastic_observability",
|
|
31
32
|
'elastic_search' = "elastic_search",
|
|
@@ -30,6 +30,7 @@ var IntegrationType;
|
|
|
30
30
|
IntegrationType["gcs"] = "gcs";
|
|
31
31
|
IntegrationType["built_in_s3"] = "built_in_s3";
|
|
32
32
|
IntegrationType["built_in_gcs"] = "built_in_gcs";
|
|
33
|
+
IntegrationType["google_drive"] = "google_drive";
|
|
33
34
|
IntegrationType["algolia"] = "algolia";
|
|
34
35
|
IntegrationType["elastic_observability"] = "elastic_observability";
|
|
35
36
|
IntegrationType["elastic_search"] = "elastic_search";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integration.public-types.js","sourceRoot":"","sources":["../../../../../internal-common/src/public-types/integration.public-types.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"integration.public-types.js","sourceRoot":"","sources":["../../../../../internal-common/src/public-types/integration.public-types.ts"],"names":[],"mappings":";;;AAAA,IAAY,eA6DX;AA7DD,WAAY,eAAe;IACzB,8CAA6B,CAAA;IAC7B,kCAAiB,CAAA;IACjB,kCAAiB,CAAA;IACjB,4CAA2B,CAAA;IAC3B,kCAAiB,CAAA;IACjB,wCAAuB,CAAA;IACvB,0CAAyB,CAAA;IACzB,8BAAa,CAAA;IACb,sCAAqB,CAAA;IACrB,0CAAyB,CAAA;IACzB,sCAAqB,CAAA;IACrB,wCAAuB,CAAA;IACvB,kCAAiB,CAAA;IACjB,sCAAqB,CAAA;IACrB,wCAAuB,CAAA;IACvB,4CAA2B,CAAA;IAC3B,sCAAqB,CAAA;IACrB,gCAAe,CAAA;IACf,sCAAqB,CAAA;IACrB,kDAAiC,CAAA;IACjC,kCAAiB,CAAA;IACjB,0CAAyB,CAAA;IACzB,oDAAmC,CAAA;IACnC,4BAAW,CAAA;IACX,8BAAa,CAAA;IACb,8CAA6B,CAAA;IAC7B,gDAA+B,CAAA;IAC/B,gDAA+B,CAAA;IAE/B,sCAAqB,CAAA;IACrB,kEAAiD,CAAA;IACjD,oDAAmC,CAAA;IACnC,0EAAyD,CAAA;IACzD,oCAAmB,CAAA;IACnB,wCAAuB,CAAA;IACvB,oDAAmC,CAAA;IACnC,4CAA2B,CAAA;IAC3B,wCAAuB,CAAA;IACvB,0CAAyB,CAAA;IACzB,sCAAqB,CAAA;IACrB,sCAAqB,CAAA;IACrB,8BAAa,CAAA;IACb,sCAAqB,CAAA;IACrB,wCAAuB,CAAA;IACvB,kCAAiB,CAAA;IACjB,gCAAe,CAAA;IACf,0CAAyB,CAAA;IACzB,wDAAuC,CAAA;IACvC,oDAAmC,CAAA;IACnC,0CAAyB,CAAA;IACzB,wCAAuB,CAAA;IACvB,wCAAuB,CAAA;IACvB,kCAAiB,CAAA;IACjB,sCAAqB,CAAA;IACrB,oCAAmB,CAAA;IACnB,8CAA6B,CAAA;IAC7B,wCAAuB,CAAA;IACvB,sCAAqB,CAAA;IACrB,oCAAmB,CAAA;IACnB,wCAAuB,CAAA;AACzB,CAAC,EA7DW,eAAe,+BAAf,eAAe,QA6D1B;AAED,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAC/B,sCAAe,CAAA;IACf,oCAAa,CAAA;IACb,4CAAqB,CAAA;AACvB,CAAC,EAJW,qBAAqB,qCAArB,qBAAqB,QAIhC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MutationContext } from './mutation.public-context';
|
|
2
2
|
import { ApiCallContext } from './api-call.public-context';
|
|
3
3
|
import { QueryContext } from './query.public-context';
|
|
4
|
-
import { AiChatbotActionType, DatabaseActionType, StorageActionType, TopicActionType } from '../public-types/bundle-data.public-types';
|
|
4
|
+
import { AiChatbotActionType, DatabaseActionType, MetricActionType, StorageActionType, TopicActionType } from '../public-types/bundle-data.public-types';
|
|
5
5
|
import { ClientConnectionState } from '../public-types/socket.public-types';
|
|
6
6
|
import { DocumentData } from '../public-types/document.public-types';
|
|
7
7
|
import { MutationType } from '../public-types/mutation.public-types';
|
|
@@ -13,9 +13,11 @@ import { AiChatbotMutationContext } from './ai-chatbot.public-context';
|
|
|
13
13
|
import { StorageContext } from '../public-types/storage.types';
|
|
14
14
|
import { NativeQueryContext } from './native-query.public-context';
|
|
15
15
|
import { AiChatbotChatContext } from '../public-types/ai-chatbot.public-types';
|
|
16
|
+
import { SecureMetricContext } from './metric.public-context';
|
|
16
17
|
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>);
|
|
17
18
|
export type SecureStorageAction<T extends StorageActionType> = T extends 'all' ? () => boolean | Promise<boolean> : (context: StorageContext) => boolean | Promise<boolean>;
|
|
18
19
|
export type SecureTopicAction<T extends TopicActionType> = T extends 'all' ? () => boolean | Promise<boolean> : T extends 'read' ? ((context: TopicReadContext) => boolean | Promise<boolean>) | (() => boolean | Promise<boolean>) : ((context: TopicWriteContext<T>) => boolean | Promise<boolean>) | (() => boolean | Promise<boolean>);
|
|
20
|
+
export type SecureMetricAction<T extends MetricActionType> = T extends 'all' ? ((context: SecureMetricContext) => boolean | Promise<boolean>) | (() => boolean | Promise<boolean>) : T extends 'write' ? ((context: SecureMetricContext) => boolean | Promise<boolean>) | (() => boolean | Promise<boolean>) : never;
|
|
19
21
|
export type SecureApiAction = ((context: ApiCallContext) => boolean | Promise<boolean>) | (() => boolean | Promise<boolean>);
|
|
20
22
|
export type SecureNativeQueryAction = ((context: NativeQueryContext) => boolean | Promise<boolean>) | (() => boolean | Promise<boolean>);
|
|
21
23
|
export type SecureDistributedLockAction = ((context: DistributedLockContext) => boolean | Promise<boolean>) | (() => boolean | Promise<boolean>);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"metric.public-context.js","sourceRoot":"","sources":["../../../../../internal-common/src/public-types-backend/metric.public-context.ts"],"names":[],"mappings":""}
|
|
@@ -106,6 +106,11 @@ export interface AiChatbotDeleteRequest extends BaseAiChatbotMutateRequest {
|
|
|
106
106
|
export type AiChatbotInsertRequest = AiChatbotInsertProfileRequest | AiChatbotInsertInstructionRequest | AiChatbotInsertContextRequest;
|
|
107
107
|
export type AiChatbotUpdateRequest = AiChatbotUpdateProfileRequest | AiChatbotUpdateInstructionRequest | AiChatbotUpdateContextRequest;
|
|
108
108
|
export type AiChatbotMutateRequest = AiChatbotInsertRequest | AiChatbotUpdateRequest | AiChatbotDeleteRequest;
|
|
109
|
+
export interface AiMutateResponse {
|
|
110
|
+
groupId?: string;
|
|
111
|
+
instructionId?: string;
|
|
112
|
+
profileId?: string;
|
|
113
|
+
}
|
|
109
114
|
export interface AiChatbotMetricTag extends Record<string, string> {
|
|
110
115
|
integrationId: string;
|
|
111
116
|
profileId: string;
|
|
@@ -22,7 +22,7 @@ export interface RunConfiguration {
|
|
|
22
22
|
export interface LoadJsPayload {
|
|
23
23
|
codeUrl: string;
|
|
24
24
|
}
|
|
25
|
-
export declare const ExecuteFunctionSecureAnnotations: readonly ["
|
|
25
|
+
export declare const ExecuteFunctionSecureAnnotations: readonly ["secureAiChatbotChat", "secureAiChatbotMutation", "secureApi", "secureDistributedLock", "secureGraphQL", "secureMetricsReport", "secureMutation", "secureNamedQuery", "secureNativeQuery", "secureQuery", "secureQueueRead", "secureQueueWrite", "secureStorage"];
|
|
26
26
|
export type ExecuteFunctionSecureAnnotationType = (typeof ExecuteFunctionSecureAnnotations)[number];
|
|
27
27
|
export type ExecuteFunctionAnnotationType = 'aiFunction' | 'executable' | 'metadata' | 'openapi' | 'scheduler' | 'transformRead' | 'transformWrite' | 'trigger' | 'webhook' | ExecuteFunctionSecureAnnotationType;
|
|
28
28
|
export interface ExecuteFunctionPayload {
|
|
@@ -4,17 +4,18 @@ exports.convertToRunSecrets = exports.ExecuteFunctionSecureAnnotations = void 0;
|
|
|
4
4
|
const secret_types_1 = require("./secret.types");
|
|
5
5
|
const assertic_1 = require("assertic");
|
|
6
6
|
exports.ExecuteFunctionSecureAnnotations = [
|
|
7
|
+
'secureAiChatbotChat',
|
|
8
|
+
'secureAiChatbotMutation',
|
|
9
|
+
'secureApi',
|
|
7
10
|
'secureDistributedLock',
|
|
8
|
-
'
|
|
11
|
+
'secureGraphQL',
|
|
12
|
+
'secureMetricsReport',
|
|
9
13
|
'secureMutation',
|
|
10
14
|
'secureNamedQuery',
|
|
11
15
|
'secureNativeQuery',
|
|
12
|
-
'
|
|
13
|
-
'secureApi',
|
|
14
|
-
'secureAiChatbotChat',
|
|
15
|
-
'secureAiChatbotMutation',
|
|
16
|
-
'secureQueueWrite',
|
|
16
|
+
'secureQuery',
|
|
17
17
|
'secureQueueRead',
|
|
18
|
+
'secureQueueWrite',
|
|
18
19
|
'secureStorage',
|
|
19
20
|
];
|
|
20
21
|
function convertToRunSecrets(appSecrets) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"backend-run.types.js","sourceRoot":"","sources":["../../../../../internal-common/src/types/backend-run.types.ts"],"names":[],"mappings":";;;AACA,iDAAqE;AACrE,uCAAkC;AAmCrB,QAAA,gCAAgC,GAAG;IAC9C,uBAAuB;IACvB,
|
|
1
|
+
{"version":3,"file":"backend-run.types.js","sourceRoot":"","sources":["../../../../../internal-common/src/types/backend-run.types.ts"],"names":[],"mappings":";;;AACA,iDAAqE;AACrE,uCAAkC;AAmCrB,QAAA,gCAAgC,GAAG;IAC9C,qBAAqB;IACrB,yBAAyB;IACzB,WAAW;IACX,uBAAuB;IACvB,eAAe;IACf,qBAAqB;IACrB,gBAAgB;IAChB,kBAAkB;IAClB,mBAAmB;IACnB,aAAa;IACb,iBAAiB;IACjB,kBAAkB;IAClB,eAAe;CACP,CAAC;AA0DX,SAAgB,mBAAmB,CAAC,UAA8B;IAChE,MAAM,MAAM,GAAe;QACzB,aAAa,EAAE,IAAA,iBAAM,EAAC,UAAU,CAAC,OAAO,CAAC,8BAAe,CAAC,CAAC,KAAK,EAAE,6BAA6B,CAAW;QACzG,MAAM,EAAE,EAAE;KACX,CAAC;IAEF,KAAK,MAAM,CAAC,GAAG,EAAE,YAAY,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,CAAC;QACpE,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,YAAY,CAAC,KAAK,CAAC;IAC1C,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAVD,kDAUC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SchedulerId, TriggerId, WebhookId } from '../public-types/application.public-types';
|
|
2
2
|
import { ApiEndpointId } from '../public-types/integrations/api.public-types';
|
|
3
3
|
import { OpenApiController } from './openapi.types';
|
|
4
|
-
import { AiChatbotActionType, AiFunctionParam, DatabaseActionType, FunctionName, StorageActionType, TopicActionType, TopicName } from '../public-types/bundle-data.public-types';
|
|
4
|
+
import { AiChatbotActionType, AiFunctionParam, DatabaseActionType, FunctionName, MetricActionType, StorageActionType, TopicActionType, TopicName } from '../public-types/bundle-data.public-types';
|
|
5
5
|
import { IntegrationId } from '../public-types/communication.public-types';
|
|
6
6
|
import { CollectionName } from '../public-types/document.public-types';
|
|
7
7
|
import { SchedulerConfig, TriggerConfig, WebhookConfig } from './application.types';
|
|
@@ -33,6 +33,7 @@ export interface ApplicationBundleData {
|
|
|
33
33
|
aiFunctions?: Record<FunctionName, AiFunctionMetadata>;
|
|
34
34
|
openApiControllers?: Array<OpenApiController>;
|
|
35
35
|
queues?: Record<IntegrationId, QueueMetadata>;
|
|
36
|
+
metrics?: MetricsApplicationBundleData;
|
|
36
37
|
limits?: Record<ServiceFunctionName, LimiterOptions>;
|
|
37
38
|
}
|
|
38
39
|
export interface LocalBackendData {
|
|
@@ -60,6 +61,12 @@ export interface QueueMetadata {
|
|
|
60
61
|
export interface TopicMetadata {
|
|
61
62
|
security?: Record<TopicActionType, Array<ServiceFunctionName>>;
|
|
62
63
|
}
|
|
64
|
+
export interface MetricsApplicationBundleData {
|
|
65
|
+
security: Record<MetricActionType, Array<{
|
|
66
|
+
namePrefix: string;
|
|
67
|
+
serviceFunction: string;
|
|
68
|
+
}>>;
|
|
69
|
+
}
|
|
63
70
|
export interface CollectionMetadata {
|
|
64
71
|
security?: Record<DatabaseActionType, Array<ServiceFunctionName>>;
|
|
65
72
|
transform?: Record<DatabaseActionType, DatabaseTransformMetadata>;
|
|
@@ -6,13 +6,14 @@ import { BuiltInQueueIntegrationConfig, ConfluentIntegrationConfig, KafkaIntegra
|
|
|
6
6
|
import { IntegrationId } from '../../public-types/communication.public-types';
|
|
7
7
|
import { AiChatbotIntegrationConfig } from './ai_chatbot.types';
|
|
8
8
|
import { GraphQLIntegrationConfig, HttpApiIntegrationConfig, IntegrationApiSchema, IntegrationGraphQLSchema } from './api.types';
|
|
9
|
-
import { BuiltInGcsIntegrationConfig, BuiltInS3IntegrationConfig, GcsIntegrationConfig, S3IntegrationConfig } from './storage-types';
|
|
9
|
+
import { BuiltInGcsIntegrationConfig, BuiltInS3IntegrationConfig, GcsIntegrationConfig, GoogleDriveIntegrationConfig, S3IntegrationConfig } from './storage-types';
|
|
10
10
|
export interface IntegrationConfigTypes {
|
|
11
11
|
[IntegrationType.built_in_db]: InternalIntegrationConfig;
|
|
12
12
|
[IntegrationType.built_in_s3]: BuiltInS3IntegrationConfig;
|
|
13
13
|
[IntegrationType.built_in_gcs]: BuiltInGcsIntegrationConfig;
|
|
14
14
|
[IntegrationType.s3]: S3IntegrationConfig;
|
|
15
15
|
[IntegrationType.gcs]: GcsIntegrationConfig;
|
|
16
|
+
[IntegrationType.google_drive]: GoogleDriveIntegrationConfig;
|
|
16
17
|
[IntegrationType.mongo]: MongoIntegrationConfig;
|
|
17
18
|
[IntegrationType.mysql]: MySqlIntegrationConfig;
|
|
18
19
|
[IntegrationType.clickhouse]: ClickHouseIntegrationConfig;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../../../../internal-common/src/types/integrations/schemas.ts"],"names":[],"mappings":";;;AAuBA,0FAAqG;
|
|
1
|
+
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../../../../internal-common/src/types/integrations/schemas.ts"],"names":[],"mappings":";;;AAuBA,0FAAqG;AA+ExF,QAAA,wBAAwB,GAAG;IACtC,0CAAe,CAAC,WAAW;IAC3B,0CAAe,CAAC,KAAK;IACrB,0CAAe,CAAC,KAAK;IACrB,0CAAe,CAAC,UAAU;IAC1B,0CAAe,CAAC,QAAQ;IACxB,0CAAe,CAAC,KAAK;IACrB,0CAAe,CAAC,QAAQ;IACxB,0CAAe,CAAC,SAAS;IACzB,0CAAe,CAAC,SAAS;IACzB,0CAAe,CAAC,QAAQ;CAChB,CAAC;AAQE,QAAA,oBAAoB,GAAG;IAClC,0CAAe,CAAC,KAAK;IACrB,0CAAe,CAAC,OAAO;IACvB,0CAAe,CAAC,QAAQ;IACxB,0CAAe,CAAC,OAAO;IACvB,0CAAe,CAAC,IAAI;IACpB,0CAAe,CAAC,OAAO;IACvB,0CAAe,CAAC,aAAa;CACrB,CAAC;AAQX,SAAgB,qBAAqB,CAAC,IAAa;IACjD,OAAO,gCAAwB,CAAC,QAAQ,CAAC,IAA+B,CAAC,CAAC;AAC5E,CAAC;AAFD,sDAEC;AAGD,SAAgB,qBAAqB,CAAC,IAAa;IACjD,OAAQ,4BAAmD,CAAC,QAAQ,CAAC,IAAuB,CAAC,CAAC;AAChG,CAAC;AAFD,sDAEC;AAGD,SAAgB,iBAAiB,CAAC,WAAoB;IACpD,OAAO,qBAAqB,CAAE,WAAqC,aAArC,WAAW,uBAAX,WAAW,CAA4B,IAAI,CAAC,CAAC;AAC7E,CAAC;AAFD,8CAEC;AAgBD,SAAgB,eAAe,CAAC,IAAqB;IACnD,OAAO,IAAI,KAAK,0CAAe,CAAC,KAAK,IAAI,IAAI,KAAK,0CAAe,CAAC,WAAW,CAAC;AAChF,CAAC;AAFD,0CAEC"}
|
|
@@ -29,3 +29,14 @@ export interface GcsIntegrationConfig extends BaseStorageIntegrationConfig {
|
|
|
29
29
|
}
|
|
30
30
|
export interface BuiltInGcsIntegrationConfig extends BaseStorageIntegrationConfig {
|
|
31
31
|
}
|
|
32
|
+
export interface GoogleDriveIntegrationConfig extends BaseStorageIntegrationConfig {
|
|
33
|
+
configuration: GoogleDriveConfiguration;
|
|
34
|
+
}
|
|
35
|
+
export interface GoogleDriveConfiguration {
|
|
36
|
+
clientId: string;
|
|
37
|
+
redirectUri: string;
|
|
38
|
+
secrets: GoogleDriveConfigurationSecrets;
|
|
39
|
+
}
|
|
40
|
+
export interface GoogleDriveConfigurationSecrets {
|
|
41
|
+
clientSecret: string;
|
|
42
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.js","sourceRoot":"","sources":["../../../../../internal-common/src/utils/http.ts"],"names":[],"mappings":";;;AAAA,MAAM,iBAAiB,GAAG;IACxB,QAAQ;IACR,KAAK;IACL,aAAa;IACb,oBAAoB;IACpB,kBAAkB;IAClB,YAAY;IACZ,kBAAkB;IAClB,sBAAsB;IACtB,UAAU;IACV,aAAa;IACb,cAAc;IACd,eAAe;IACf,SAAS;IACT,OAAO;IACP,OAAO;IACP,OAAO;IACP,QAAQ;IACR,SAAS;IACT,UAAU;IACV,IAAI;
|
|
1
|
+
{"version":3,"file":"http.js","sourceRoot":"","sources":["../../../../../internal-common/src/utils/http.ts"],"names":[],"mappings":";;;AAAA,MAAM,iBAAiB,GAAG;IACxB,QAAQ;IACR,KAAK;IACL,aAAa;IACb,oBAAoB;IACpB,kBAAkB;IAClB,YAAY;IACZ,kBAAkB;IAClB,sBAAsB;IACtB,UAAU;IACV,aAAa;IACb,cAAc;IACd,eAAe;IACf,SAAS;IACT,OAAO;IACP,OAAO;IACP,OAAO;IACP,QAAQ;IACR,SAAS;IACT,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