@squidcloud/local-backend 1.0.66 → 1.0.68
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 +3 -8
- package/dist/common/src/ai-assistant.types.js.map +1 -1
- package/dist/common/src/integrations/ai_assistant.types.d.ts +3 -1
- package/dist/common/src/integrations/index.d.ts +3 -1
- package/dist/common/src/integrations/index.js +2 -0
- package/dist/common/src/integrations/index.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ClientRequestId, IntegrationId } from './communication.types';
|
|
2
|
+
import { AiAssistantProfileMetadata } from './integrations';
|
|
2
3
|
export type OpenAiModelName = 'gpt-3.5-turbo' | 'gpt-4';
|
|
3
4
|
type ModelDataType = {
|
|
4
5
|
tokens: number;
|
|
@@ -19,10 +20,7 @@ export interface BaseAiAssistantMutateRequest extends BaseAiAssistantRequest {
|
|
|
19
20
|
export interface AiAssistantInsertProfileRequest extends BaseAiAssistantMutateRequest {
|
|
20
21
|
type: 'insert';
|
|
21
22
|
resource: 'profile';
|
|
22
|
-
payload:
|
|
23
|
-
modelName: OpenAiModelName;
|
|
24
|
-
strictContext: boolean;
|
|
25
|
-
};
|
|
23
|
+
payload: Omit<AiAssistantProfileMetadata, 'instructions'>;
|
|
26
24
|
}
|
|
27
25
|
export interface AiAssistantInsertInstructionRequest extends BaseAiAssistantMutateRequest {
|
|
28
26
|
type: 'insert';
|
|
@@ -54,10 +52,7 @@ export interface AiAssistantInsertContextRequest extends BaseAiAssistantMutateRe
|
|
|
54
52
|
export interface AiAssistantUpdateProfileRequest extends BaseAiAssistantMutateRequest {
|
|
55
53
|
type: 'update';
|
|
56
54
|
resource: 'profile';
|
|
57
|
-
payload:
|
|
58
|
-
modelName?: OpenAiModelName;
|
|
59
|
-
strictContext?: boolean;
|
|
60
|
-
};
|
|
55
|
+
payload: Partial<Omit<AiAssistantProfileMetadata, 'instructions'>>;
|
|
61
56
|
}
|
|
62
57
|
export interface AiAssistantUpdateInstructionRequest extends BaseAiAssistantMutateRequest {
|
|
63
58
|
type: 'update';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai-assistant.types.js","sourceRoot":"","sources":["../../../../common/src/ai-assistant.types.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"ai-assistant.types.js","sourceRoot":"","sources":["../../../../common/src/ai-assistant.types.ts"],"names":[],"mappings":";;;AAWa,QAAA,eAAe,GAA2C;IACrE,OAAO,EAAE;QACP,MAAM,EAAE,IAAI;KACb;IACD,eAAe,EAAE;QACf,MAAM,EAAE,IAAI;KACb;CACF,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { BaseIntegrationConfig, IntegrationType } from './index';
|
|
2
|
+
import { OpenAiModelName } from '../ai-assistant.types';
|
|
2
3
|
export interface AiAssistantIntegrationConfig extends BaseIntegrationConfig {
|
|
3
4
|
type: IntegrationType.ai_assistant;
|
|
4
5
|
configuration: AiAssistantConfiguration;
|
|
@@ -7,7 +8,8 @@ export type AiAssistantConfiguration = {
|
|
|
7
8
|
apiKey?: string;
|
|
8
9
|
};
|
|
9
10
|
export type AiAssistantProfileMetadata = {
|
|
10
|
-
modelName:
|
|
11
|
+
modelName: OpenAiModelName;
|
|
12
|
+
isPublic: boolean;
|
|
11
13
|
strictContext: boolean;
|
|
12
14
|
instructions: Record<string, string>;
|
|
13
15
|
};
|
|
@@ -53,7 +53,9 @@ export declare enum IntegrationType {
|
|
|
53
53
|
'oracledb' = "oracledb",
|
|
54
54
|
'redis' = "redis",
|
|
55
55
|
'xata' = "xata",
|
|
56
|
-
'azure_sql' = "azure_sql"
|
|
56
|
+
'azure_sql' = "azure_sql",
|
|
57
|
+
'azure_postgresql' = "azure_postgresql",
|
|
58
|
+
'azure_cosmosdb' = "azure_cosmosdb"
|
|
57
59
|
}
|
|
58
60
|
export declare enum IntegrationSchemaType {
|
|
59
61
|
'data' = "data",
|
|
@@ -67,6 +67,8 @@ var IntegrationType;
|
|
|
67
67
|
IntegrationType["redis"] = "redis";
|
|
68
68
|
IntegrationType["xata"] = "xata";
|
|
69
69
|
IntegrationType["azure_sql"] = "azure_sql";
|
|
70
|
+
IntegrationType["azure_postgresql"] = "azure_postgresql";
|
|
71
|
+
IntegrationType["azure_cosmosdb"] = "azure_cosmosdb";
|
|
70
72
|
})(IntegrationType = exports.IntegrationType || (exports.IntegrationType = {}));
|
|
71
73
|
var IntegrationSchemaType;
|
|
72
74
|
(function (IntegrationSchemaType) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../common/src/integrations/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,8CAA4B;AAC5B,+CAA6B;AAC7B,mDAAiC;AACjC,wDAAsC;AAiCtC,IAAY,mBAOX;AAPD,WAAY,mBAAmB;IAC7B,4CAAuB,CAAA;IACvB,kCAAa,CAAA;IACb,sDAAiC,CAAA;IACjC,kCAAa,CAAA;IACb,oCAAe,CAAA;IACf,gCAAW,CAAA;AACb,CAAC,EAPW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAO9B;AAED,IAAY,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../common/src/integrations/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,8CAA4B;AAC5B,+CAA6B;AAC7B,mDAAiC;AACjC,wDAAsC;AAiCtC,IAAY,mBAOX;AAPD,WAAY,mBAAmB;IAC7B,4CAAuB,CAAA;IACvB,kCAAa,CAAA;IACb,sDAAiC,CAAA;IACjC,kCAAa,CAAA;IACb,oCAAe,CAAA;IACf,gCAAW,CAAA;AACb,CAAC,EAPW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAO9B;AAED,IAAY,eAw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