@squidcloud/local-backend 1.0.158 → 1.0.160
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 +27 -0
- package/dist/internal-common/src/public-types/ai-chatbot.public-types.js +11 -0
- package/dist/internal-common/src/public-types/ai-chatbot.public-types.js.map +1 -0
- package/dist/internal-common/src/public-types/application.types.d.ts +3 -1
- package/dist/internal-common/src/public-types/backend-run.types.d.ts +1 -1
- package/dist/internal-common/src/public-types/backend-run.types.js +2 -0
- package/dist/internal-common/src/public-types/backend-run.types.js.map +1 -1
- package/dist/internal-common/src/public-types/bundle-api.types.d.ts +4 -2
- package/dist/internal-common/src/public-types/bundle-data.types.d.ts +11 -0
- package/dist/internal-common/src/public-types/integration-types.d.ts +4 -0
- package/dist/internal-common/src/public-types/integration-types.js +4 -0
- package/dist/internal-common/src/public-types/integration-types.js.map +1 -1
- package/dist/internal-common/src/public-types/integrations/ai_chatbot.types.d.ts +1 -1
- package/dist/internal-common/src/public-types/integrations/queue-types.d.ts +40 -0
- package/dist/internal-common/src/public-types/integrations/queue-types.js +3 -0
- package/dist/internal-common/src/public-types/integrations/queue-types.js.map +1 -0
- package/dist/internal-common/src/public-types/integrations/schemas.d.ts +6 -1
- package/dist/internal-common/src/public-types/integrations/schemas.js +6 -1
- package/dist/internal-common/src/public-types/integrations/schemas.js.map +1 -1
- package/dist/internal-common/src/public-types/native-query.context.js.map +1 -1
- package/dist/internal-common/src/public-types/socket.types.d.ts +8 -2
- package/dist/internal-common/src/public-types/socket.types.js.map +1 -1
- package/dist/internal-common/src/public-types/topic.context.d.ts +10 -0
- package/dist/internal-common/src/public-types/topic.context.js +3 -0
- package/dist/internal-common/src/public-types/topic.context.js.map +1 -0
- package/dist/internal-common/src/types/ai-chatbot.context.js.map +1 -0
- package/dist/internal-common/src/{public-types → types}/ai-chatbot.types.d.ts +3 -28
- package/dist/internal-common/src/{public-types → types}/ai-chatbot.types.js +1 -8
- package/dist/internal-common/src/types/ai-chatbot.types.js.map +1 -0
- package/dist/internal-common/src/utils/backend-transforms.js +1 -1
- package/dist/internal-common/src/utils/backend-transforms.js.map +1 -1
- package/dist/internal-common/src/utils/http.js +1 -0
- package/dist/internal-common/src/utils/http.js.map +1 -1
- package/dist/local-backend/package.json +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/internal-common/src/public-types/ai-chatbot.context.js.map +0 -1
- package/dist/internal-common/src/public-types/ai-chatbot.types.js.map +0 -1
- /package/dist/internal-common/src/{public-types → types}/ai-chatbot.context.d.ts +0 -0
- /package/dist/internal-common/src/{public-types → types}/ai-chatbot.context.js +0 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare const AI_MODEL_NAMES: readonly ["gpt-3.5-turbo", "gpt-3.5-turbo-1106", "gpt-4", "claude-2", "gpt-4-1106-preview"];
|
|
2
|
+
export type AiModelName = (typeof AI_MODEL_NAMES)[number];
|
|
3
|
+
export type ApiKeySource = 'user' | 'system';
|
|
4
|
+
export type AiChatbotContextType = 'text' | 'url' | 'file';
|
|
5
|
+
interface AiChatbotContextBase {
|
|
6
|
+
type: AiChatbotContextType;
|
|
7
|
+
data: string;
|
|
8
|
+
}
|
|
9
|
+
export interface AiChatbotTextContext extends AiChatbotContextBase {
|
|
10
|
+
type: 'text';
|
|
11
|
+
}
|
|
12
|
+
export interface AiChatbotUrlContext extends AiChatbotContextBase {
|
|
13
|
+
type: 'url';
|
|
14
|
+
}
|
|
15
|
+
export interface AiChatbotFileContext extends AiChatbotContextBase {
|
|
16
|
+
type: 'file';
|
|
17
|
+
}
|
|
18
|
+
export type AiChatbotContext = AiChatbotTextContext | AiChatbotUrlContext | AiChatbotFileContext;
|
|
19
|
+
export type OpenAiResponseFormat = 'text' | 'json_object';
|
|
20
|
+
export interface AiChatbotChatOptions {
|
|
21
|
+
maxTokens?: number;
|
|
22
|
+
chatId?: string;
|
|
23
|
+
disableHistory?: boolean;
|
|
24
|
+
includeReference?: boolean;
|
|
25
|
+
responseFormat?: OpenAiResponseFormat;
|
|
26
|
+
}
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AI_MODEL_NAMES = void 0;
|
|
4
|
+
exports.AI_MODEL_NAMES = [
|
|
5
|
+
'gpt-3.5-turbo',
|
|
6
|
+
'gpt-3.5-turbo-1106',
|
|
7
|
+
'gpt-4',
|
|
8
|
+
'claude-2',
|
|
9
|
+
'gpt-4-1106-preview',
|
|
10
|
+
];
|
|
11
|
+
//# sourceMappingURL=ai-chatbot.public-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai-chatbot.public-types.js","sourceRoot":"","sources":["../../../../../internal-common/src/public-types/ai-chatbot.public-types.ts"],"names":[],"mappings":";;;AACa,QAAA,cAAc,GAAG;IAC5B,eAAe;IACf,oBAAoB;IACpB,OAAO;IACP,UAAU;IACV,oBAAoB;CACZ,CAAC"}
|
|
@@ -172,11 +172,13 @@ type ConfigurationTypes = {
|
|
|
172
172
|
type UpsertIntegrationRequests = {
|
|
173
173
|
[K in IntegrationTypeWithConfig]: BaseUpsertIntegrationRequest<K, ConfigurationTypes[K]>;
|
|
174
174
|
};
|
|
175
|
-
export type UpsertIntegrationRequest = UpsertDataIntegrationRequest | UpsertGraphQLIntegrationRequest | UpsertApiIntegrationRequest | UpsertAiChatbotIntegrationRequest | UpsertAuthIntegrationRequest;
|
|
175
|
+
export type UpsertIntegrationRequest = UpsertDataIntegrationRequest | UpsertGraphQLIntegrationRequest | UpsertApiIntegrationRequest | UpsertAiChatbotIntegrationRequest | UpsertConfluentIntegrationRequest | UpsertKafkaIntegrationRequest | UpsertAuthIntegrationRequest;
|
|
176
176
|
export type UpsertDataIntegrationRequest = UpsertIntegrationRequests[DatabaseIntegrationType];
|
|
177
177
|
export type UpsertGraphQLIntegrationRequest = UpsertIntegrationRequests[IntegrationType.graphql];
|
|
178
178
|
export type UpsertApiIntegrationRequest = UpsertIntegrationRequests[IntegrationType.api];
|
|
179
179
|
export type UpsertAiChatbotIntegrationRequest = UpsertIntegrationRequests[IntegrationType.ai_chatbot];
|
|
180
|
+
export type UpsertKafkaIntegrationRequest = UpsertIntegrationRequests[IntegrationType.kafka];
|
|
181
|
+
export type UpsertConfluentIntegrationRequest = UpsertIntegrationRequests[IntegrationType.confluent];
|
|
180
182
|
export type UpsertAuthIntegrationRequest = UpsertIntegrationRequests[AuthIntegrationType];
|
|
181
183
|
interface BaseUpsertIntegrationSchemaRequest<T extends IntegrationType, S extends IntegrationSchema> {
|
|
182
184
|
id: IntegrationId;
|
|
@@ -21,7 +21,7 @@ export interface RunConfiguration {
|
|
|
21
21
|
export interface LoadJsPayload {
|
|
22
22
|
codeUrl: string;
|
|
23
23
|
}
|
|
24
|
-
export declare const ExecuteFunctionSecureAnnotations: readonly ["secureDistributedLock", "secureQuery", "secureMutation", "secureNamedQuery", "secureNativeQuery", "secureGraphQL", "secureApi", "secureAiChatbotChat", "secureAiChatbotMutation"];
|
|
24
|
+
export declare const ExecuteFunctionSecureAnnotations: readonly ["secureDistributedLock", "secureQuery", "secureMutation", "secureNamedQuery", "secureNativeQuery", "secureGraphQL", "secureApi", "secureAiChatbotChat", "secureAiChatbotMutation", "secureQueueWrite", "secureQueueRead"];
|
|
25
25
|
export type ExecuteFunctionSecureAnnotationType = (typeof ExecuteFunctionSecureAnnotations)[number];
|
|
26
26
|
export type ExecuteFunctionAnnotationType = 'executable' | 'webhook' | 'scheduler' | 'trigger' | 'transformRead' | 'transformWrite' | 'metadata' | 'aiFunction' | 'openapi' | ExecuteFunctionSecureAnnotationType;
|
|
27
27
|
export interface ExecuteFunctionPayload {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"backend-run.types.js","sourceRoot":"","sources":["../../../../../internal-common/src/public-types/backend-run.types.ts"],"names":[],"mappings":";;;AACA,iDAA6F;AAC7F,uCAAkC;AAkCrB,QAAA,gCAAgC,GAAG;IAC9C,uBAAuB;IACvB,aAAa;IACb,gBAAgB;IAChB,kBAAkB;IAClB,mBAAmB;IACnB,eAAe;IACf,WAAW;IACX,qBAAqB;IACrB,yBAAyB;
|
|
1
|
+
{"version":3,"file":"backend-run.types.js","sourceRoot":"","sources":["../../../../../internal-common/src/public-types/backend-run.types.ts"],"names":[],"mappings":";;;AACA,iDAA6F;AAC7F,uCAAkC;AAkCrB,QAAA,gCAAgC,GAAG;IAC9C,uBAAuB;IACvB,aAAa;IACb,gBAAgB;IAChB,kBAAkB;IAClB,mBAAmB;IACnB,eAAe;IACf,WAAW;IACX,qBAAqB;IACrB,yBAAyB;IACzB,kBAAkB;IAClB,iBAAiB;CACT,CAAC;AAyDX,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;QACnE,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,YAAY,CAAC,KAAK,CAAC;KACzC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAVD,kDAUC"}
|
|
@@ -3,14 +3,16 @@ import { ApiCallContext } from './api-call.context';
|
|
|
3
3
|
import { GraphqlContext } from './graphql.context';
|
|
4
4
|
import { DistributedLockContext } from './distributed-lock.context';
|
|
5
5
|
import { NativeQueryContext } from './native-query.context';
|
|
6
|
-
import { AiChatbotChatContext, AiChatbotMutationContext } from './ai-chatbot.context';
|
|
7
6
|
import { QueryContext } from './query-context';
|
|
8
|
-
import { AiChatbotActionType, DatabaseActionType } from './bundle-data.types';
|
|
7
|
+
import { AiChatbotActionType, DatabaseActionType, TopicActionType } from './bundle-data.types';
|
|
9
8
|
import { ClientId } from './communication.types';
|
|
10
9
|
import { DocumentData, SquidDocId } from './document.types';
|
|
11
10
|
import { MutationType } from './mutation.types';
|
|
12
11
|
import { ClientConnectionState } from './socket.types';
|
|
12
|
+
import { TopicReadContext, TopicWriteContext } from './topic.context';
|
|
13
|
+
import { AiChatbotChatContext, AiChatbotMutationContext } from '../types/ai-chatbot.context';
|
|
13
14
|
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>);
|
|
15
|
+
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>);
|
|
14
16
|
export type SecureApiAction = ((context: ApiCallContext) => boolean | Promise<boolean>) | (() => boolean | Promise<boolean>);
|
|
15
17
|
export type SecureNativeQueryAction = ((context: NativeQueryContext) => boolean | Promise<boolean>) | (() => boolean | Promise<boolean>);
|
|
16
18
|
export type SecureDistributedLockAction = ((context: DistributedLockContext) => boolean | Promise<boolean>) | (() => boolean | Promise<boolean>);
|
|
@@ -4,7 +4,9 @@ import { CollectionName } from './document.types';
|
|
|
4
4
|
import { ApiEndpointId } from './integrations/api.types';
|
|
5
5
|
import { OpenApiController } from './openapi.types';
|
|
6
6
|
export type DatabaseActionType = 'read' | 'write' | 'update' | 'insert' | 'delete' | 'all';
|
|
7
|
+
export type TopicActionType = 'read' | 'write' | 'all';
|
|
7
8
|
export type AiChatbotActionType = 'chat' | 'mutate' | 'all';
|
|
9
|
+
export type TopicName = string;
|
|
8
10
|
export type ServiceName = string;
|
|
9
11
|
export type FunctionName = string;
|
|
10
12
|
export type ServiceFunctionName = `${ServiceName}:${FunctionName}`;
|
|
@@ -31,6 +33,7 @@ export interface ApplicationBundleData {
|
|
|
31
33
|
clientConnectionStateChangeHandlers?: Array<ServiceFunctionName>;
|
|
32
34
|
aiFunctions?: Record<FunctionName, AiFunctionMetadata>;
|
|
33
35
|
openApiControllers?: Array<OpenApiController>;
|
|
36
|
+
queues?: Record<IntegrationId, QueueMetadata>;
|
|
34
37
|
}
|
|
35
38
|
export interface LocalBackendData {
|
|
36
39
|
applicationBundleData: ApplicationBundleData;
|
|
@@ -53,6 +56,14 @@ export interface DatabaseMetadata {
|
|
|
53
56
|
security?: Record<DatabaseActionType, Array<ServiceFunctionName>>;
|
|
54
57
|
transform?: Record<DatabaseActionType, DatabaseTransformMetadata>;
|
|
55
58
|
}
|
|
59
|
+
export interface QueueMetadata {
|
|
60
|
+
topics: Record<TopicName, TopicMetadata>;
|
|
61
|
+
security?: Record<DatabaseActionType, Array<ServiceFunctionName>>;
|
|
62
|
+
transform?: Record<DatabaseActionType, DatabaseTransformMetadata>;
|
|
63
|
+
}
|
|
64
|
+
export interface TopicMetadata {
|
|
65
|
+
security?: Record<TopicActionType, Array<ServiceFunctionName>>;
|
|
66
|
+
}
|
|
56
67
|
export interface CollectionMetadata {
|
|
57
68
|
security?: Record<DatabaseActionType, Array<ServiceFunctionName>>;
|
|
58
69
|
transform?: Record<DatabaseActionType, DatabaseTransformMetadata>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare enum IntegrationCategory {
|
|
2
2
|
'database' = "database",
|
|
3
|
+
'queue' = "queue",
|
|
3
4
|
'api' = "api",
|
|
4
5
|
'observability' = "observability",
|
|
5
6
|
'crm' = "crm",
|
|
@@ -25,6 +26,9 @@ export declare enum IntegrationType {
|
|
|
25
26
|
'cognito' = "cognito",
|
|
26
27
|
'okta' = "okta",
|
|
27
28
|
'descope' = "descope",
|
|
29
|
+
'kafka' = "kafka",
|
|
30
|
+
'confluent' = "confluent",
|
|
31
|
+
'built_in_queue' = "built_in_queue",
|
|
28
32
|
'algolia' = "algolia",
|
|
29
33
|
'elastic_observability' = "elastic_observability",
|
|
30
34
|
'elastic_search' = "elastic_search",
|
|
@@ -4,6 +4,7 @@ exports.IntegrationSchemaType = exports.IntegrationType = exports.IntegrationCat
|
|
|
4
4
|
var IntegrationCategory;
|
|
5
5
|
(function (IntegrationCategory) {
|
|
6
6
|
IntegrationCategory["database"] = "database";
|
|
7
|
+
IntegrationCategory["queue"] = "queue";
|
|
7
8
|
IntegrationCategory["api"] = "api";
|
|
8
9
|
IntegrationCategory["observability"] = "observability";
|
|
9
10
|
IntegrationCategory["crm"] = "crm";
|
|
@@ -30,6 +31,9 @@ var IntegrationType;
|
|
|
30
31
|
IntegrationType["cognito"] = "cognito";
|
|
31
32
|
IntegrationType["okta"] = "okta";
|
|
32
33
|
IntegrationType["descope"] = "descope";
|
|
34
|
+
IntegrationType["kafka"] = "kafka";
|
|
35
|
+
IntegrationType["confluent"] = "confluent";
|
|
36
|
+
IntegrationType["built_in_queue"] = "built_in_queue";
|
|
33
37
|
IntegrationType["algolia"] = "algolia";
|
|
34
38
|
IntegrationType["elastic_observability"] = "elastic_observability";
|
|
35
39
|
IntegrationType["elastic_search"] = "elastic_search";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integration-types.js","sourceRoot":"","sources":["../../../../../internal-common/src/public-types/integration-types.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"integration-types.js","sourceRoot":"","sources":["../../../../../internal-common/src/public-types/integration-types.ts"],"names":[],"mappings":";;;AAAA,IAAY,mBAQX;AARD,WAAY,mBAAmB;IAC7B,4CAAuB,CAAA;IACvB,sCAAiB,CAAA;IACjB,kCAAa,CAAA;IACb,sDAAiC,CAAA;IACjC,kCAAa,CAAA;IACb,oCAAe,CAAA;IACf,g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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseIntegrationConfig } from './schemas';
|
|
2
|
-
import { AiModelName } from '../ai-chatbot.types';
|
|
2
|
+
import { AiModelName } from '../ai-chatbot.public-types';
|
|
3
3
|
import { IntegrationId } from '../communication.types';
|
|
4
4
|
import { IntegrationType } from '../integration-types';
|
|
5
5
|
export interface AiChatbotIntegrationConfig extends BaseIntegrationConfig {
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { IntegrationType } from '../integration-types';
|
|
2
|
+
import { BaseIntegrationConfig, QueueIntegrationTypes } from './schemas';
|
|
3
|
+
export type QueueIntegrationType = (typeof QueueIntegrationTypes)[number];
|
|
4
|
+
export interface BaseQueueIntegrationConfig extends BaseIntegrationConfig {
|
|
5
|
+
type: QueueIntegrationType;
|
|
6
|
+
}
|
|
7
|
+
export interface KafkaConnectionSecretOptions {
|
|
8
|
+
password?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface KafkaConnectionOptions {
|
|
11
|
+
secrets?: KafkaConnectionSecretOptions;
|
|
12
|
+
username?: string;
|
|
13
|
+
bootstrapServers: string;
|
|
14
|
+
}
|
|
15
|
+
export interface KafkaIntegrationConfiguration {
|
|
16
|
+
connectionOptions: KafkaConnectionOptions;
|
|
17
|
+
}
|
|
18
|
+
export interface KafkaIntegrationConfig extends BaseQueueIntegrationConfig {
|
|
19
|
+
type: IntegrationType.kafka;
|
|
20
|
+
configuration: KafkaIntegrationConfiguration;
|
|
21
|
+
}
|
|
22
|
+
export interface ConfluentIntegrationConfig extends BaseQueueIntegrationConfig {
|
|
23
|
+
type: IntegrationType.confluent;
|
|
24
|
+
configuration: KafkaIntegrationConfiguration;
|
|
25
|
+
}
|
|
26
|
+
export interface BuiltInQueueIntegrationConfig extends BaseQueueIntegrationConfig {
|
|
27
|
+
type: IntegrationType.built_in_queue;
|
|
28
|
+
}
|
|
29
|
+
export interface TestKafkaConnectionRequest {
|
|
30
|
+
type: IntegrationType.kafka;
|
|
31
|
+
configuration: {
|
|
32
|
+
connectionOptions: KafkaConnectionOptions;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export interface TestConfluentConnectionRequest {
|
|
36
|
+
type: IntegrationType.confluent;
|
|
37
|
+
configuration: {
|
|
38
|
+
connectionOptions: KafkaConnectionOptions;
|
|
39
|
+
};
|
|
40
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"queue-types.js","sourceRoot":"","sources":["../../../../../../internal-common/src/public-types/integrations/queue-types.ts"],"names":[],"mappings":""}
|
|
@@ -5,6 +5,7 @@ import { BaseDatabaseIntegrationConfig, BigQueryIntegrationConfig, CockroachInte
|
|
|
5
5
|
import { DatadogIntegrationConfig, NewRelicIntegrationConfig } from './observability.types';
|
|
6
6
|
import { IntegrationId } from '../communication.types';
|
|
7
7
|
import { IntegrationSchemaType, IntegrationType } from '../integration-types';
|
|
8
|
+
import { BuiltInQueueIntegrationConfig, ConfluentIntegrationConfig, KafkaIntegrationConfig, TestConfluentConnectionRequest, TestKafkaConnectionRequest } from './queue-types';
|
|
8
9
|
export interface IntegrationConfigTypes {
|
|
9
10
|
[IntegrationType.built_in_db]: InternalIntegrationConfig;
|
|
10
11
|
[IntegrationType.mongo]: MongoIntegrationConfig;
|
|
@@ -26,6 +27,9 @@ export interface IntegrationConfigTypes {
|
|
|
26
27
|
[IntegrationType.ai_chatbot]: AiChatbotIntegrationConfig;
|
|
27
28
|
[IntegrationType.cognito]: CognitoIntegrationConfig;
|
|
28
29
|
[IntegrationType.okta]: OktaIntegrationConfig;
|
|
30
|
+
[IntegrationType.kafka]: KafkaIntegrationConfig;
|
|
31
|
+
[IntegrationType.confluent]: ConfluentIntegrationConfig;
|
|
32
|
+
[IntegrationType.built_in_queue]: BuiltInQueueIntegrationConfig;
|
|
29
33
|
[IntegrationType.descope]: DescopeIntegrationConfig;
|
|
30
34
|
}
|
|
31
35
|
export interface IntegrationSchemaTypes {
|
|
@@ -52,6 +56,7 @@ export type DatabaseIntegrationConfig = IntegrationConfigTypes[DatabaseIntegrati
|
|
|
52
56
|
export declare const ApiIntegrationTypes: readonly [IntegrationType.api, IntegrationType.graphql];
|
|
53
57
|
export declare const ObservabilityIntegrationTypes: readonly [IntegrationType.datadog, IntegrationType.newrelic];
|
|
54
58
|
export declare const AuthIntegrationTypes: readonly [IntegrationType.auth0, IntegrationType.jwt_rsa, IntegrationType.jwt_hmac, IntegrationType.cognito, IntegrationType.okta, IntegrationType.descope];
|
|
59
|
+
export declare const QueueIntegrationTypes: readonly [IntegrationType.built_in_queue, IntegrationType.kafka, IntegrationType.confluent];
|
|
55
60
|
export type ApiIntegrationType = (typeof ApiIntegrationTypes)[number];
|
|
56
61
|
export type ApiIntegrationConfig = IntegrationConfigTypes[ApiIntegrationType];
|
|
57
62
|
export type ObservabilityIntegrationType = (typeof ObservabilityIntegrationTypes)[number];
|
|
@@ -71,4 +76,4 @@ export interface BaseIntegrationConfig {
|
|
|
71
76
|
export interface BaseIntegrationSchema {
|
|
72
77
|
type: IntegrationSchemaType;
|
|
73
78
|
}
|
|
74
|
-
export type TestConnectionRequest = TestDataConnectionRequest | TestGraphQLDataConnectionRequest;
|
|
79
|
+
export type TestConnectionRequest = TestDataConnectionRequest | TestGraphQLDataConnectionRequest | TestKafkaConnectionRequest | TestConfluentConnectionRequest;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isAuthIntegration = exports.isAuthIntegrationType = exports.isDataIntegration = exports.isDataIntegrationType = exports.AuthIntegrationTypes = exports.ObservabilityIntegrationTypes = exports.ApiIntegrationTypes = exports.DatabaseIntegrationTypes = void 0;
|
|
3
|
+
exports.isAuthIntegration = exports.isAuthIntegrationType = exports.isDataIntegration = exports.isDataIntegrationType = exports.QueueIntegrationTypes = exports.AuthIntegrationTypes = exports.ObservabilityIntegrationTypes = exports.ApiIntegrationTypes = exports.DatabaseIntegrationTypes = void 0;
|
|
4
4
|
const integration_types_1 = require("../integration-types");
|
|
5
5
|
exports.DatabaseIntegrationTypes = [
|
|
6
6
|
integration_types_1.IntegrationType.built_in_db,
|
|
@@ -24,6 +24,11 @@ exports.AuthIntegrationTypes = [
|
|
|
24
24
|
integration_types_1.IntegrationType.okta,
|
|
25
25
|
integration_types_1.IntegrationType.descope,
|
|
26
26
|
];
|
|
27
|
+
exports.QueueIntegrationTypes = [
|
|
28
|
+
integration_types_1.IntegrationType.built_in_queue,
|
|
29
|
+
integration_types_1.IntegrationType.kafka,
|
|
30
|
+
integration_types_1.IntegrationType.confluent,
|
|
31
|
+
];
|
|
27
32
|
function isDataIntegrationType(type) {
|
|
28
33
|
return exports.DatabaseIntegrationTypes.includes(type);
|
|
29
34
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../../../../internal-common/src/public-types/integrations/schemas.ts"],"names":[],"mappings":";;;AAiCA,4DAA8E;
|
|
1
|
+
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../../../../internal-common/src/public-types/integrations/schemas.ts"],"names":[],"mappings":";;;AAiCA,4DAA8E;AAyDjE,QAAA,wBAAwB,GAAG;IACtC,mCAAe,CAAC,WAAW;IAC3B,mCAAe,CAAC,KAAK;IACrB,mCAAe,CAAC,KAAK;IACrB,mCAAe,CAAC,QAAQ;IACxB,mCAAe,CAAC,KAAK;IACrB,mCAAe,CAAC,QAAQ;IACxB,mCAAe,CAAC,SAAS;IACzB,mCAAe,CAAC,SAAS;IACzB,mCAAe,CAAC,QAAQ;IACxB,mCAAe,CAAC,KAAK;CACb,CAAC;AAKE,QAAA,mBAAmB,GAAG,CAAC,mCAAe,CAAC,GAAG,EAAE,mCAAe,CAAC,OAAO,CAAU,CAAC;AAE9E,QAAA,6BAA6B,GAAG,CAAC,mCAAe,CAAC,OAAO,EAAE,mCAAe,CAAC,QAAQ,CAAU,CAAC;AAE7F,QAAA,oBAAoB,GAAG;IAClC,mCAAe,CAAC,KAAK;IACrB,mCAAe,CAAC,OAAO;IACvB,mCAAe,CAAC,QAAQ;IACxB,mCAAe,CAAC,OAAO;IACvB,mCAAe,CAAC,IAAI;IACpB,mCAAe,CAAC,OAAO;CACf,CAAC;AAEE,QAAA,qBAAqB,GAAG;IACnC,mCAAe,CAAC,cAAc;IAC9B,mCAAe,CAAC,KAAK;IACrB,mCAAe,CAAC,SAAS;CACjB,CAAC;AAWX,SAAgB,qBAAqB,CAAC,IAAa;IACjD,OAAO,gCAAwB,CAAC,QAAQ,CAAC,IAA+B,CAAC,CAAC;AAC5E,CAAC;AAFD,sDAEC;AAED,SAAgB,iBAAiB,CAAC,WAAgB;IAChD,OAAO,qBAAqB,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;AACjD,CAAC;AAFD,8CAEC;AAED,SAAgB,qBAAqB,CAAC,IAAqB;IACzD,OAAQ,4BAAmD,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AAC7E,CAAC;AAFD,sDAEC;AAED,SAAgB,iBAAiB,CAAC,WAAgB;IAChD,OAAO,qBAAqB,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;AACjD,CAAC;AAFD,8CAEC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"native-query.context.js","sourceRoot":"","sources":["../../../../../internal-common/src/public-types/native-query.context.ts"],"names":[],"mappings":";;;AAGA,MAAa,kBAAkB;IAE7B,
|
|
1
|
+
{"version":3,"file":"native-query.context.js","sourceRoot":"","sources":["../../../../../internal-common/src/public-types/native-query.context.ts"],"names":[],"mappings":";;;AAGA,MAAa,kBAAkB;IAE7B,YACW,KAAa,EACb,MAA2B,EAC3B,QAAkB;QAFlB,UAAK,GAAL,KAAK,CAAQ;QACb,WAAM,GAAN,MAAM,CAAqB;QAC3B,aAAQ,GAAR,QAAQ,CAAU;IAC1B,CAAC;CACL;AAPD,gDAOC"}
|
|
@@ -34,7 +34,7 @@ export interface ReleaseLockMessage extends BaseMessageFromClient {
|
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
36
|
export type MessageFromClient = AcknowledgeMessage | CatchupMessage | KillMessage | AcquireLockMessage | ReleaseLockMessage;
|
|
37
|
-
export type MessageToClientType = 'mutations' | 'query' | 'backendFunction' | 'api' | 'namedQuery' | 'lockAcquired' | 'lockReleased' | 'aiChatbot' | 'ping';
|
|
37
|
+
export type MessageToClientType = 'mutations' | 'query' | 'backendFunction' | 'api' | 'namedQuery' | 'lockAcquired' | 'lockReleased' | 'aiChatbot' | 'ping' | 'queue';
|
|
38
38
|
interface BaseMessageToClient {
|
|
39
39
|
type: MessageToClientType;
|
|
40
40
|
messageId: MessageId;
|
|
@@ -73,7 +73,13 @@ export interface AiChatbotMessageToClient extends BaseMessageToClient {
|
|
|
73
73
|
complete: boolean;
|
|
74
74
|
};
|
|
75
75
|
}
|
|
76
|
-
export
|
|
76
|
+
export interface QueueMessageToClient extends BaseMessageToClient {
|
|
77
|
+
type: 'queue';
|
|
78
|
+
integrationId: IntegrationId;
|
|
79
|
+
topicName: string;
|
|
80
|
+
payload: string[];
|
|
81
|
+
}
|
|
82
|
+
export type MessageToClient = MutationsMessageToClient | PingMessageToClient | QueryResultMessageToClient | BackendFunctionMessageToClient | NamedQueryMessageToClient | LockAcquiredResponseMessageToClient | LockReleasedResponseMessageToClient | AiChatbotMessageToClient | QueueMessageToClient;
|
|
77
83
|
export interface MutationsMessageToClient extends BaseMessageToClient {
|
|
78
84
|
type: 'mutations';
|
|
79
85
|
payload: Array<MutationResultData>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"socket.types.js","sourceRoot":"","sources":["../../../../../internal-common/src/public-types/socket.types.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"socket.types.js","sourceRoot":"","sources":["../../../../../internal-common/src/public-types/socket.types.ts"],"names":[],"mappings":";;;AAgNA,IAAY,qBAOX;AAPD,WAAY,qBAAqB;IAE/B,gDAAuB,CAAA;IAEvB,sDAA6B,CAAA;IAE7B,4CAAmB,CAAA;AACrB,CAAC,EAPW,qBAAqB,qCAArB,qBAAqB,QAOhC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IntegrationId } from './communication.types';
|
|
2
|
+
export interface TopicReadContext {
|
|
3
|
+
integrationId: IntegrationId;
|
|
4
|
+
topicName: string;
|
|
5
|
+
}
|
|
6
|
+
export interface TopicWriteContext<T> {
|
|
7
|
+
integrationId: IntegrationId;
|
|
8
|
+
topicName: string;
|
|
9
|
+
messages: Array<T>;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"topic.context.js","sourceRoot":"","sources":["../../../../../internal-common/src/public-types/topic.context.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai-chatbot.context.js","sourceRoot":"","sources":["../../../../../internal-common/src/types/ai-chatbot.context.ts"],"names":[],"mappings":";;;AAOA,MAAa,oBAAoB;IAO/B,YAAY,OAA6B;QACvC,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;QACnC,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAC/B,CAAC;CACF;AAXD,oDAWC;AAGD,MAAa,wBAAwB;IASnC,YAAY,OAA+B;QACzC,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;QACnC,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;QACzB,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC;QACjC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;IACjC,CAAC;CACF;AAfD,4DAeC"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export type AiModelName = (typeof AI_MODEL_NAMES)[number];
|
|
5
|
-
export type ApiKeySource = 'user' | 'system';
|
|
1
|
+
import { AiChatbotChatOptions, AiChatbotContext, AiModelName, ApiKeySource, OpenAiResponseFormat } from '../public-types/ai-chatbot.public-types';
|
|
2
|
+
import { ClientRequestId, IntegrationId } from '../public-types/communication.types';
|
|
3
|
+
import { AiChatbotProfileMetadata } from '../public-types/integrations/ai_chatbot.types';
|
|
6
4
|
type ModelDataType = {
|
|
7
5
|
tokens: number;
|
|
8
6
|
};
|
|
@@ -50,21 +48,6 @@ export interface AiChatbotInsertInstructionRequest extends BaseAiChatbotMutateRe
|
|
|
50
48
|
instruction: string;
|
|
51
49
|
};
|
|
52
50
|
}
|
|
53
|
-
export type AiChatbotContextType = 'text' | 'url' | 'file';
|
|
54
|
-
interface AiChatbotContextBase {
|
|
55
|
-
type: AiChatbotContextType;
|
|
56
|
-
data: string;
|
|
57
|
-
}
|
|
58
|
-
export interface AiChatbotTextContext extends AiChatbotContextBase {
|
|
59
|
-
type: 'text';
|
|
60
|
-
}
|
|
61
|
-
export interface AiChatbotUrlContext extends AiChatbotContextBase {
|
|
62
|
-
type: 'url';
|
|
63
|
-
}
|
|
64
|
-
export interface AiChatbotFileContext extends AiChatbotContextBase {
|
|
65
|
-
type: 'file';
|
|
66
|
-
}
|
|
67
|
-
export type AiChatbotContext = AiChatbotTextContext | AiChatbotUrlContext | AiChatbotFileContext;
|
|
68
51
|
export interface AiChatbotInsertContextRequest extends BaseAiChatbotMutateRequest {
|
|
69
52
|
type: 'insert';
|
|
70
53
|
resource: 'context';
|
|
@@ -88,14 +71,6 @@ export interface AiChatbotUpdateInstructionRequest extends BaseAiChatbotMutateRe
|
|
|
88
71
|
instruction: string;
|
|
89
72
|
};
|
|
90
73
|
}
|
|
91
|
-
export type OpenAiResponseFormat = 'text' | 'json_object';
|
|
92
|
-
export interface AiChatbotChatOptions {
|
|
93
|
-
maxTokens?: number;
|
|
94
|
-
chatId?: string;
|
|
95
|
-
disableHistory?: boolean;
|
|
96
|
-
includeReference?: boolean;
|
|
97
|
-
responseFormat?: OpenAiResponseFormat;
|
|
98
|
-
}
|
|
99
74
|
export interface AiChatbotUpdateContextRequest extends BaseAiChatbotMutateRequest {
|
|
100
75
|
type: 'update';
|
|
101
76
|
resource: 'context';
|
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AiModelData =
|
|
4
|
-
exports.AI_MODEL_NAMES = [
|
|
5
|
-
'gpt-3.5-turbo',
|
|
6
|
-
'gpt-3.5-turbo-1106',
|
|
7
|
-
'gpt-4',
|
|
8
|
-
'claude-2',
|
|
9
|
-
'gpt-4-1106-preview',
|
|
10
|
-
];
|
|
3
|
+
exports.AiModelData = void 0;
|
|
11
4
|
exports.AiModelData = {
|
|
12
5
|
'gpt-4': {
|
|
13
6
|
tokens: 8192,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai-chatbot.types.js","sourceRoot":"","sources":["../../../../../internal-common/src/types/ai-chatbot.types.ts"],"names":[],"mappings":";;;AAea,QAAA,WAAW,GAAuC;IAC7D,OAAO,EAAE;QACP,MAAM,EAAE,IAAI;KACb;IACD,eAAe,EAAE;QACf,MAAM,EAAE,IAAI;KACb;IACD,oBAAoB,EAAE;QACpB,MAAM,EAAE,KAAM;KACf;IACD,UAAU,EAAE;QACV,MAAM,EAAE,MAAO;KAChB;IACD,oBAAoB,EAAE;QACpB,MAAM,EAAE,IAAI;KACb;CACF,CAAC"}
|
|
@@ -8,7 +8,7 @@ const distributed_lock_context_1 = require("../public-types/distributed-lock.con
|
|
|
8
8
|
const graphql_context_1 = require("../public-types/graphql.context");
|
|
9
9
|
const api_call_context_1 = require("../public-types/api-call.context");
|
|
10
10
|
const backend_run_types_1 = require("../public-types/backend-run.types");
|
|
11
|
-
const ai_chatbot_context_1 = require("../
|
|
11
|
+
const ai_chatbot_context_1 = require("../types/ai-chatbot.context");
|
|
12
12
|
function transformParams(params, executeFunctionAnnotationType) {
|
|
13
13
|
switch (executeFunctionAnnotationType) {
|
|
14
14
|
case 'scheduler':
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"backend-transforms.js","sourceRoot":"","sources":["../../../../../internal-common/src/utils/backend-transforms.ts"],"names":[],"mappings":";;;AAAA,iEAA6D;AAC7D,uEAAmE;AACnE,+EAA0E;AAC1E,uFAAkF;AAClF,qEAAiE;AACjE,uEAAkE;AAElE,yEAI2C;
|
|
1
|
+
{"version":3,"file":"backend-transforms.js","sourceRoot":"","sources":["../../../../../internal-common/src/utils/backend-transforms.ts"],"names":[],"mappings":";;;AAAA,iEAA6D;AAC7D,uEAAmE;AACnE,+EAA0E;AAC1E,uFAAkF;AAClF,qEAAiE;AACjE,uEAAkE;AAElE,yEAI2C;AAE3C,oEAA6F;AAG7F,SAAgB,eAAe,CAC7B,MAAkB,EAClB,6BAA4D;IAE5D,QAAQ,6BAA6B,EAAE;QACrC,KAAK,WAAW;YACd,OAAO,EAAE,CAAC;QACZ,KAAK,aAAa;YAChB,OAAO,CAAC,IAAI,4BAAY,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;QAC7C,KAAK,gBAAgB;YACnB,OAAO,CAAC,IAAI,kCAAe,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,oBAAoB,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC;QAClH,KAAK,mBAAmB;YACtB,OAAO,CAAC,IAAI,yCAAkB,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACnE,KAAK,uBAAuB;YAC1B,OAAO,CAAC,IAAI,iDAAsB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;QACvD,KAAK,eA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,CAAC,qBAAqB,CAAC;AACpD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.js","sourceRoot":"","sources":["../../../../../internal-common/src/utils/http.ts"],"names":[],"mappings":";;;AAAA,MAAM,iBAAiB,GAAG;IACxB,OAAO;IACP,QAAQ;IACR,KAAK;IACL,kBAAkB;IAClB,UAAU;IACV,IAAI;IACJ,OAAO;IACP,aAAa;IACb,cAAc;IACd,oBAAoB;IACpB,SAAS;IACT,QAAQ;
|
|
1
|
+
{"version":3,"file":"http.js","sourceRoot":"","sources":["../../../../../internal-common/src/utils/http.ts"],"names":[],"mappings":";;;AAAA,MAAM,iBAAiB,GAAG;IACxB,OAAO;IACP,QAAQ;IACR,KAAK;IACL,kBAAkB;IAClB,UAAU;IACV,IAAI;IACJ,OAAO;IACP,aAAa;IACb,cAAc;IACd,oBAAoB;IACpB,SAAS;IACT,QAAQ;IACR,OAAO;CACR,CAAC;AAEF,SAAgB,iBAAiB,CAAC,YAAoB,EAAE,KAAa,EAAE,IAAY;IACjF,MAAM,OAAO,GAAG,qBAAqB,CAAC;IACtC,MAAM,aAAa,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,CAAC;IACvC,aAAa,CAAC,IAAI,GAAG,GAAG,KAAK,IAAI,YAAY,IAAI,aAAa,CAAC,IAAI,EAAE,CAAC;IACtE,MAAM,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;IAEhE,IAAI,OAAO,CAAC,YAAY,CAAC,EAAE;QACzB,aAAa,CAAC,QAAQ,GAAG,MAAM,CAAC;QAChC,aAAa,CAAC,IAAI,GAAG,iBAAiB,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC;QAC9E,IAAI,SAAS,CAAC,YAAY,CAAC,EAAE;YA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