@squidcloud/local-backend 1.0.316 → 1.0.318
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 → ai-agent.public-types.d.ts} +25 -13
- package/dist/internal-common/src/public-types/{ai-chatbot.public-types.js → ai-agent.public-types.js} +4 -4
- package/dist/internal-common/src/public-types/ai-agent.public-types.js.map +1 -0
- package/dist/internal-common/src/public-types/bundle-data.public-types.d.ts +1 -1
- package/dist/internal-common/src/public-types/integrations/{ai_chatbot.public-types.d.ts → ai_agent.public-types.d.ts} +6 -7
- package/dist/internal-common/src/public-types/integrations/{ai_chatbot.public-types.js → ai_agent.public-types.js} +3 -3
- package/dist/internal-common/src/public-types/integrations/ai_agent.public-types.js.map +1 -0
- package/dist/internal-common/src/public-types-backend/ai-chatbot.public-context.d.ts +5 -5
- package/dist/internal-common/src/public-types-backend/ai-chatbot.public-context.js +3 -3
- package/dist/internal-common/src/public-types-backend/ai-chatbot.public-context.js.map +1 -1
- package/dist/internal-common/src/public-types-backend/bundle-api.public-types.d.ts +4 -4
- package/dist/internal-common/src/public-types-backend/query.public-context.js.map +1 -1
- package/dist/internal-common/src/types/ai-agent.types.d.ts +161 -0
- package/dist/internal-common/src/types/{ai-chatbot.types.js → ai-agent.types.js} +1 -1
- package/dist/internal-common/src/types/ai-agent.types.js.map +1 -0
- package/dist/internal-common/src/types/application.types.d.ts +1 -2
- package/dist/internal-common/src/types/bundle-data.types.d.ts +5 -5
- package/dist/internal-common/src/types/integrations/schemas.d.ts +0 -3
- package/dist/internal-common/src/types/integrations/schemas.js.map +1 -1
- package/dist/internal-common/src/utils/backend-transforms.js +3 -3
- package/dist/internal-common/src/utils/backend-transforms.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/internal-common/src/public-types/ai-chatbot.public-types.js.map +0 -1
- package/dist/internal-common/src/public-types/integrations/ai_chatbot.public-types.js.map +0 -1
- package/dist/internal-common/src/types/ai-chatbot.types.d.ts +0 -174
- package/dist/internal-common/src/types/ai-chatbot.types.js.map +0 -1
- package/dist/internal-common/src/types/integrations/ai_chatbot.types.d.ts +0 -17
- package/dist/internal-common/src/types/integrations/ai_chatbot.types.js +0 -3
- package/dist/internal-common/src/types/integrations/ai_chatbot.types.js.map +0 -1
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ai-chatbot.public-types.js","sourceRoot":"","sources":["../../../../../internal-common/src/public-types/ai-chatbot.public-types.ts"],"names":[],"mappings":";;;AAqZA,8DAgBC;AAGD,0EAkCC;AAjcY,QAAA,uBAAuB,GAAG,CAAC,QAAQ,EAAE,aAAa,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,CAAU,CAAC;AAEzF,QAAA,uBAAuB,GAAG,CAAC,gBAAgB,EAAE,kBAAkB,CAAU,CAAC;AAE1E,QAAA,0BAA0B,GAAG,CAAC,yBAAyB,EAAE,0BAA0B,CAAU,CAAC;AAG9F,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,sCAAsC,GAAG,CAAC,WAAW,CAAU,CAAC;AAChE,QAAA,sCAAsC,GAAG,CAAC,OAAO,EAAE,UAAU,CAAU,CAAC;AACxE,QAAA,wBAAwB,GAAG;IACtC,GAAG,8CAAsC;IACzC,GAAG,8CAAsC;CACjC,CAAC;AACE,QAAA,4BAA4B,GAAG,CAAC,uBAAuB,CAAU,CAAC;AAClE,QAAA,gBAAgB,GAAG,CAAC,c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B,OAAO,KAAK,EAAE,CAAC,CAAC;YACtG,CAAC;QACH,CAAC;IACH,CAAC;AACH,CAAC;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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ai_chatbot.public-types.js","sourceRoot":"","sources":["../../../../../../internal-common/src/public-types/integrations/ai_chatbot.public-types.ts"],"names":[],"mappings":";;;AA0Ca,QAAA,0CAA0C,GAAqD;IAC1G,WAAW;IACX,aAAa;IACb,UAAU;IACV,WAAW;IACX,iBAAiB;IACjB,uBAAuB;IACvB,UAAU;CACX,CAAC"}
|
|
@@ -1,174 +0,0 @@
|
|
|
1
|
-
import { AiChatbotChatOptions, AiChatbotContext, AiChatbotMutationType, AiChatbotResourceType, AiChatModelName, AiFileUrl, AiGenerateImageOptions, ApiKeySource } from '../public-types/ai-chatbot.public-types';
|
|
2
|
-
import { AiAgentId, AppId, ClientRequestId, IntegrationId } from '../public-types/communication.public-types';
|
|
3
|
-
import { AiChatbotContextMetadata, AiChatbotProfileMetadata } from '../public-types/integrations/ai_chatbot.public-types';
|
|
4
|
-
import { FunctionName, FunctionNameWithContext } from '../public-types/bundle-data.public-types';
|
|
5
|
-
import { O11Y_TAG_AI_MODEL, O11Y_TAG_AI_PROFILE, O11Y_TAG_API_KEY_SOURCE, O11Y_TAG_INTEGRATION_ID } from './observability.types';
|
|
6
|
-
import { IntegrationType } from '../public-types/integration.public-types';
|
|
7
|
-
export type AiChatResponseFormat = 'text' | 'json_object';
|
|
8
|
-
export interface AiChatOptions {
|
|
9
|
-
maxTokens: number;
|
|
10
|
-
responseFormat: AiChatResponseFormat;
|
|
11
|
-
temperature: number;
|
|
12
|
-
topP: number;
|
|
13
|
-
instructions: Array<string>;
|
|
14
|
-
clientId: string;
|
|
15
|
-
fileUrls: Array<AiFileUrl>;
|
|
16
|
-
reasoningEffort?: 'low' | 'medium' | 'high';
|
|
17
|
-
agentId?: AiAgentId;
|
|
18
|
-
chatId?: string;
|
|
19
|
-
agentContext?: Record<string, unknown>;
|
|
20
|
-
functions?: Array<FunctionName | FunctionNameWithContext>;
|
|
21
|
-
connectedAgents?: Array<AiConnectedAgentMetadata>;
|
|
22
|
-
connectedIntegrations?: Array<AiConnectedIntegrationMetadata>;
|
|
23
|
-
quotas?: AiChatPromptQuotas;
|
|
24
|
-
}
|
|
25
|
-
export interface AiConnectedAgentMetadata {
|
|
26
|
-
agentId: AiAgentId;
|
|
27
|
-
description: string;
|
|
28
|
-
}
|
|
29
|
-
export interface AiConnectedIntegrationMetadata {
|
|
30
|
-
integrationId: IntegrationId;
|
|
31
|
-
integrationType: IntegrationType;
|
|
32
|
-
description?: string;
|
|
33
|
-
}
|
|
34
|
-
type ModelDataType = {
|
|
35
|
-
maxTokens: number;
|
|
36
|
-
defaultTokens: number;
|
|
37
|
-
};
|
|
38
|
-
export declare const AiModelData: Record<AiChatModelName, ModelDataType>;
|
|
39
|
-
export interface BaseAiChatbotRequest {
|
|
40
|
-
profileId: AiAgentId;
|
|
41
|
-
integrationId: IntegrationId;
|
|
42
|
-
}
|
|
43
|
-
export interface AiChatbotChatRequest extends BaseAiChatbotRequest {
|
|
44
|
-
clientRequestId: ClientRequestId;
|
|
45
|
-
prompt?: string;
|
|
46
|
-
options?: AiChatbotChatOptions;
|
|
47
|
-
}
|
|
48
|
-
export interface AiChatbotAskRequest extends BaseAiChatbotRequest {
|
|
49
|
-
prompt?: string;
|
|
50
|
-
options?: AiChatbotChatOptions;
|
|
51
|
-
}
|
|
52
|
-
export interface AiGenerateImageRequest {
|
|
53
|
-
prompt: string;
|
|
54
|
-
options: AiGenerateImageOptions;
|
|
55
|
-
}
|
|
56
|
-
export interface AskQuestionInternalRequest {
|
|
57
|
-
appId: AppId;
|
|
58
|
-
model: AiChatModelName;
|
|
59
|
-
prompt: string;
|
|
60
|
-
options: Partial<AiChatOptions>;
|
|
61
|
-
}
|
|
62
|
-
export interface AskQuestionInternalResponse {
|
|
63
|
-
answer: string;
|
|
64
|
-
}
|
|
65
|
-
export interface ContextSizeRequest {
|
|
66
|
-
appId: AppId;
|
|
67
|
-
integrationId: IntegrationId;
|
|
68
|
-
profileId: AiAgentId;
|
|
69
|
-
}
|
|
70
|
-
export interface ContextSizeResponse {
|
|
71
|
-
sizeBytes: number;
|
|
72
|
-
}
|
|
73
|
-
export interface BaseAiChatbotMutateRequest extends BaseAiChatbotRequest {
|
|
74
|
-
type: AiChatbotMutationType;
|
|
75
|
-
resource: AiChatbotResourceType;
|
|
76
|
-
}
|
|
77
|
-
export interface AiChatbotInsertProfileRequest extends BaseAiChatbotMutateRequest {
|
|
78
|
-
type: 'insert';
|
|
79
|
-
resource: 'profile';
|
|
80
|
-
payload: Omit<AiChatbotProfileMetadata, 'instructions'>;
|
|
81
|
-
}
|
|
82
|
-
export interface AiChatbotInsertInstructionRequest extends BaseAiChatbotMutateRequest {
|
|
83
|
-
type: 'insert';
|
|
84
|
-
resource: 'instruction';
|
|
85
|
-
payload: {
|
|
86
|
-
id: string;
|
|
87
|
-
instruction: string;
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
export interface AiChatbotInsertContextPayload {
|
|
91
|
-
id: string;
|
|
92
|
-
title: string;
|
|
93
|
-
context: AiChatbotContext;
|
|
94
|
-
file?: any;
|
|
95
|
-
}
|
|
96
|
-
export interface UpsertContextInDbPayload {
|
|
97
|
-
id: string;
|
|
98
|
-
contextMetadata: AiChatbotContextMetadata;
|
|
99
|
-
append?: boolean;
|
|
100
|
-
}
|
|
101
|
-
export interface AiChatbotUpdateContextPayload {
|
|
102
|
-
id: string;
|
|
103
|
-
title?: string;
|
|
104
|
-
context?: AiChatbotContext;
|
|
105
|
-
file?: any;
|
|
106
|
-
}
|
|
107
|
-
export interface AiChatbotInsertContextRequest extends BaseAiChatbotMutateRequest {
|
|
108
|
-
type: 'insert';
|
|
109
|
-
resource: 'context';
|
|
110
|
-
payload: AiChatbotInsertContextPayload;
|
|
111
|
-
}
|
|
112
|
-
export interface AiChatbotInsertManyContextsRequest extends BaseAiChatbotMutateRequest {
|
|
113
|
-
type: 'insert';
|
|
114
|
-
resource: 'contexts';
|
|
115
|
-
payload: Array<AiChatbotInsertContextPayload>;
|
|
116
|
-
}
|
|
117
|
-
export interface AiChatbotAppendContextRequest extends BaseAiChatbotMutateRequest {
|
|
118
|
-
type: 'append';
|
|
119
|
-
resource: 'context';
|
|
120
|
-
payload: {
|
|
121
|
-
id: string;
|
|
122
|
-
title: string;
|
|
123
|
-
context: AiChatbotContext;
|
|
124
|
-
file?: any;
|
|
125
|
-
};
|
|
126
|
-
}
|
|
127
|
-
export interface AiChatbotUpdateProfileRequest extends BaseAiChatbotMutateRequest {
|
|
128
|
-
type: 'update';
|
|
129
|
-
resource: 'profile';
|
|
130
|
-
payload: Partial<Omit<AiChatbotProfileMetadata, 'instructions'>>;
|
|
131
|
-
}
|
|
132
|
-
export interface AiChatbotUpdateInstructionRequest extends BaseAiChatbotMutateRequest {
|
|
133
|
-
type: 'update';
|
|
134
|
-
resource: 'instruction';
|
|
135
|
-
payload: {
|
|
136
|
-
id: string;
|
|
137
|
-
instruction: string;
|
|
138
|
-
};
|
|
139
|
-
}
|
|
140
|
-
export interface AiChatbotUpdateContextRequest extends BaseAiChatbotMutateRequest {
|
|
141
|
-
type: 'update';
|
|
142
|
-
resource: 'context';
|
|
143
|
-
payload: AiChatbotUpdateContextPayload;
|
|
144
|
-
}
|
|
145
|
-
export interface AiChatbotDeleteRequest extends BaseAiChatbotMutateRequest {
|
|
146
|
-
type: 'delete';
|
|
147
|
-
payload: {
|
|
148
|
-
id?: string;
|
|
149
|
-
};
|
|
150
|
-
}
|
|
151
|
-
export interface AiChatbotFeedbackRequest extends BaseAiChatbotMutateRequest {
|
|
152
|
-
type: 'feedback';
|
|
153
|
-
payload: {
|
|
154
|
-
feedback: string;
|
|
155
|
-
};
|
|
156
|
-
}
|
|
157
|
-
export type AiChatbotInsertRequest = AiChatbotInsertProfileRequest | AiChatbotInsertInstructionRequest | AiChatbotInsertContextRequest | AiChatbotInsertManyContextsRequest | AiChatbotAppendContextRequest;
|
|
158
|
-
export type AiChatbotUpdateRequest = AiChatbotUpdateProfileRequest | AiChatbotUpdateInstructionRequest | AiChatbotUpdateContextRequest;
|
|
159
|
-
export type AiChatbotMutateRequest = AiChatbotInsertRequest | AiChatbotUpdateRequest | AiChatbotDeleteRequest | AiChatbotFeedbackRequest;
|
|
160
|
-
export interface AiMutateResponse {
|
|
161
|
-
groupId?: string;
|
|
162
|
-
instructionId?: string;
|
|
163
|
-
profileId?: AiAgentId;
|
|
164
|
-
}
|
|
165
|
-
export interface AiChatbotMetricTag extends Record<string, string> {
|
|
166
|
-
[O11Y_TAG_INTEGRATION_ID]: string;
|
|
167
|
-
[O11Y_TAG_AI_PROFILE]: string;
|
|
168
|
-
[O11Y_TAG_AI_MODEL]: AiChatModelName;
|
|
169
|
-
[O11Y_TAG_API_KEY_SOURCE]: ApiKeySource;
|
|
170
|
-
}
|
|
171
|
-
export interface AiChatPromptQuotas {
|
|
172
|
-
maxAiCallStackSize: number;
|
|
173
|
-
}
|
|
174
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ai-chatbot.types.js","sourceRoot":"","sources":["../../../../../internal-common/src/types/ai-chatbot.types.ts"],"names":[],"mappings":";;;AAgBA,+DAK+B;AA4DlB,QAAA,WAAW,GAA2C;IACjE,gBAAgB,EAAE;QAChB,SAAS,EAAE,SAAS;QACpB,aAAa,EAAE,MAAM;KACtB;IACD,kBAAkB,EAAE;QAClB,SAAS,EAAE,SAAS;QACpB,aAAa,EAAE,MAAM;KACtB;IACD,0BAA0B,EAAE;QAC1B,SAAS,EAAE,OAAO;QAClB,aAAa,EAAE,MAAM;KACtB;IACD,yBAAyB,EAAE;QACzB,SAAS,EAAE,OAAO;QAClB,aAAa,EAAE,MAAM;KACtB;IACD,QAAQ,EAAE;QACR,SAAS,EAAE,OAAO;QAClB,aAAa,EAAE,MAAM;KACtB;IACD,aAAa,EAAE;QACb,SAAS,EAAE,OAAO;QAClB,aAAa,EAAE,MAAM;KACtB;IACD,EAAE,EAAE;QACF,SAAS,EAAE,OAAO;QAClB,aAAa,EAAE,MAAM;KACtB;IACD,SAAS,EAAE;QACT,SAAS,EAAE,OAAO;QAClB,aAAa,EAAE,MAAM;KACtB;IACD,SAAS,EAAE;QACT,SAAS,EAAE,OAAO;QAClB,aAAa,EAAE,MAAM;KACtB;CACF,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { BaseIntegrationConfig } from './schemas';
|
|
2
|
-
import { IntegrationId } from '../../public-types/communication.public-types';
|
|
3
|
-
import { AiChatbotConfiguration, AiChatbotContextMetadata, AiChatbotProfileMetadata } from '../../public-types/integrations/ai_chatbot.public-types';
|
|
4
|
-
export interface AiChatbotIntegrationConfig extends BaseIntegrationConfig {
|
|
5
|
-
configuration: AiChatbotConfiguration;
|
|
6
|
-
}
|
|
7
|
-
export interface AiAgentsIntegrationConfig extends BaseIntegrationConfig {
|
|
8
|
-
}
|
|
9
|
-
export interface AiChatbotProfile extends AiChatbotProfileMetadata {
|
|
10
|
-
contexts: Record<string, AiChatbotContextMetadata>;
|
|
11
|
-
}
|
|
12
|
-
export interface AiChatbotProfiles {
|
|
13
|
-
profiles: Record<string, AiChatbotProfile>;
|
|
14
|
-
}
|
|
15
|
-
export interface GetAiChatbotProfilesRequest {
|
|
16
|
-
integrationId: IntegrationId;
|
|
17
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ai_chatbot.types.js","sourceRoot":"","sources":["../../../../../../internal-common/src/types/integrations/ai_chatbot.types.ts"],"names":[],"mappings":""}
|