@atom8n/api-types 1.5.3 → 1.5.5
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/build.tsbuildinfo +1 -1
- package/dist/chat-hub.d.ts +88 -26
- package/dist/chat-hub.js +8 -0
- package/package.json +5 -5
package/dist/chat-hub.d.ts
CHANGED
|
@@ -2,29 +2,29 @@ import type { Scope } from '@n8n/permissions';
|
|
|
2
2
|
import { type StructuredChunk, type JINA_AI_TOOL_NODE_TYPE, type SERP_API_TOOL_NODE_TYPE, type INode } from 'n8n-workflow';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { Z } from 'zod-class';
|
|
5
|
-
export declare const chatHubLLMProviderSchema: z.ZodEnum<["openai", "anthropic", "google", "azureOpenAi", "azureEntraId", "ollama", "awsBedrock", "vercelAiGateway", "xAiGrok", "groq", "openRouter", "deepSeek", "cohere", "mistralCloud"]>;
|
|
5
|
+
export declare const chatHubLLMProviderSchema: z.ZodEnum<["openai", "anthropic", "google", "azureOpenAi", "azureEntraId", "ollama", "awsBedrock", "vercelAiGateway", "xAiGrok", "groq", "openRouter", "deepSeek", "cohere", "mistralCloud", "cursorAgent"]>;
|
|
6
6
|
export type ChatHubLLMProvider = z.infer<typeof chatHubLLMProviderSchema>;
|
|
7
7
|
export declare const agentIconOrEmojiSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
8
8
|
type: z.ZodLiteral<"icon">;
|
|
9
9
|
value: z.ZodString;
|
|
10
10
|
}, "strip", z.ZodTypeAny, {
|
|
11
|
-
value: string;
|
|
12
11
|
type: "icon";
|
|
13
|
-
}, {
|
|
14
12
|
value: string;
|
|
13
|
+
}, {
|
|
15
14
|
type: "icon";
|
|
15
|
+
value: string;
|
|
16
16
|
}>, z.ZodObject<{
|
|
17
17
|
type: z.ZodLiteral<"emoji">;
|
|
18
18
|
value: z.ZodString;
|
|
19
19
|
}, "strip", z.ZodTypeAny, {
|
|
20
|
-
value: string;
|
|
21
20
|
type: "emoji";
|
|
22
|
-
}, {
|
|
23
21
|
value: string;
|
|
22
|
+
}, {
|
|
24
23
|
type: "emoji";
|
|
24
|
+
value: string;
|
|
25
25
|
}>]>;
|
|
26
26
|
export type AgentIconOrEmoji = z.infer<typeof agentIconOrEmojiSchema>;
|
|
27
|
-
export declare const chatHubProviderSchema: z.ZodEnum<["openai", "anthropic", "google", "azureOpenAi", "azureEntraId", "ollama", "awsBedrock", "vercelAiGateway", "xAiGrok", "groq", "openRouter", "deepSeek", "cohere", "mistralCloud", "n8n", "custom-agent"]>;
|
|
27
|
+
export declare const chatHubProviderSchema: z.ZodEnum<["openai", "anthropic", "google", "azureOpenAi", "azureEntraId", "ollama", "awsBedrock", "vercelAiGateway", "xAiGrok", "groq", "openRouter", "deepSeek", "cohere", "mistralCloud", "cursorAgent", "n8n", "custom-agent"]>;
|
|
28
28
|
export type ChatHubProvider = z.infer<typeof chatHubProviderSchema>;
|
|
29
29
|
export declare const PROVIDER_CREDENTIAL_TYPE_MAP: Record<Exclude<ChatHubProvider, 'n8n' | 'custom-agent'>, string>;
|
|
30
30
|
export type ChatHubAgentTool = typeof JINA_AI_TOOL_NODE_TYPE | typeof SERP_API_TOOL_NODE_TYPE;
|
|
@@ -168,6 +168,16 @@ declare const mistralCloudModelSchema: z.ZodObject<{
|
|
|
168
168
|
provider: "mistralCloud";
|
|
169
169
|
model: string;
|
|
170
170
|
}>;
|
|
171
|
+
declare const cursorAgentModelSchema: z.ZodObject<{
|
|
172
|
+
provider: z.ZodLiteral<"cursorAgent">;
|
|
173
|
+
model: z.ZodString;
|
|
174
|
+
}, "strip", z.ZodTypeAny, {
|
|
175
|
+
provider: "cursorAgent";
|
|
176
|
+
model: string;
|
|
177
|
+
}, {
|
|
178
|
+
provider: "cursorAgent";
|
|
179
|
+
model: string;
|
|
180
|
+
}>;
|
|
171
181
|
declare const n8nModelSchema: z.ZodObject<{
|
|
172
182
|
provider: z.ZodLiteral<"n8n">;
|
|
173
183
|
workflowId: z.ZodString;
|
|
@@ -314,6 +324,15 @@ export declare const chatHubConversationModelSchema: z.ZodDiscriminatedUnion<"pr
|
|
|
314
324
|
}, {
|
|
315
325
|
provider: "mistralCloud";
|
|
316
326
|
model: string;
|
|
327
|
+
}>, z.ZodObject<{
|
|
328
|
+
provider: z.ZodLiteral<"cursorAgent">;
|
|
329
|
+
model: z.ZodString;
|
|
330
|
+
}, "strip", z.ZodTypeAny, {
|
|
331
|
+
provider: "cursorAgent";
|
|
332
|
+
model: string;
|
|
333
|
+
}, {
|
|
334
|
+
provider: "cursorAgent";
|
|
335
|
+
model: string;
|
|
317
336
|
}>, z.ZodObject<{
|
|
318
337
|
provider: z.ZodLiteral<"n8n">;
|
|
319
338
|
workflowId: z.ZodString;
|
|
@@ -347,16 +366,17 @@ export type ChatHubOpenRouterModel = z.infer<typeof openRouterModelSchema>;
|
|
|
347
366
|
export type ChatHubDeepSeekModel = z.infer<typeof deepSeekModelSchema>;
|
|
348
367
|
export type ChatHubCohereModel = z.infer<typeof cohereModelSchema>;
|
|
349
368
|
export type ChatHubMistralCloudModel = z.infer<typeof mistralCloudModelSchema>;
|
|
350
|
-
export type
|
|
369
|
+
export type ChatHubCursorAgentModel = z.infer<typeof cursorAgentModelSchema>;
|
|
370
|
+
export type ChatHubBaseLLMModel = ChatHubOpenAIModel | ChatHubAnthropicModel | ChatHubGoogleModel | ChatHubAzureOpenAIModel | ChatHubAzureEntraIdModel | ChatHubOllamaModel | ChatHubAwsBedrockModel | ChatHubVercelAiGatewayModel | ChatHubXAiGrokModel | ChatHubGroqModel | ChatHubOpenRouterModel | ChatHubDeepSeekModel | ChatHubCohereModel | ChatHubMistralCloudModel | ChatHubCursorAgentModel;
|
|
351
371
|
export type ChatHubN8nModel = z.infer<typeof n8nModelSchema>;
|
|
352
372
|
export type ChatHubCustomAgentModel = z.infer<typeof chatAgentSchema>;
|
|
353
373
|
export type ChatHubConversationModel = z.infer<typeof chatHubConversationModelSchema>;
|
|
354
374
|
export declare const chatModelsRequestSchema: z.ZodObject<{
|
|
355
|
-
credentials: z.ZodRecord<z.ZodEnum<["openai", "anthropic", "google", "azureOpenAi", "azureEntraId", "ollama", "awsBedrock", "vercelAiGateway", "xAiGrok", "groq", "openRouter", "deepSeek", "cohere", "mistralCloud", "n8n", "custom-agent"]>, z.ZodNullable<z.ZodString>>;
|
|
375
|
+
credentials: z.ZodRecord<z.ZodEnum<["openai", "anthropic", "google", "azureOpenAi", "azureEntraId", "ollama", "awsBedrock", "vercelAiGateway", "xAiGrok", "groq", "openRouter", "deepSeek", "cohere", "mistralCloud", "cursorAgent", "n8n", "custom-agent"]>, z.ZodNullable<z.ZodString>>;
|
|
356
376
|
}, "strip", z.ZodTypeAny, {
|
|
357
|
-
credentials: Partial<Record<"openai" | "anthropic" | "google" | "azureOpenAi" | "azureEntraId" | "ollama" | "awsBedrock" | "vercelAiGateway" | "xAiGrok" | "groq" | "openRouter" | "deepSeek" | "cohere" | "mistralCloud" | "n8n" | "custom-agent", string | null>>;
|
|
377
|
+
credentials: Partial<Record<"openai" | "anthropic" | "google" | "azureOpenAi" | "azureEntraId" | "ollama" | "awsBedrock" | "vercelAiGateway" | "xAiGrok" | "groq" | "openRouter" | "deepSeek" | "cohere" | "mistralCloud" | "cursorAgent" | "n8n" | "custom-agent", string | null>>;
|
|
358
378
|
}, {
|
|
359
|
-
credentials: Partial<Record<"openai" | "anthropic" | "google" | "azureOpenAi" | "azureEntraId" | "ollama" | "awsBedrock" | "vercelAiGateway" | "xAiGrok" | "groq" | "openRouter" | "deepSeek" | "cohere" | "mistralCloud" | "n8n" | "custom-agent", string | null>>;
|
|
379
|
+
credentials: Partial<Record<"openai" | "anthropic" | "google" | "azureOpenAi" | "azureEntraId" | "ollama" | "awsBedrock" | "vercelAiGateway" | "xAiGrok" | "groq" | "openRouter" | "deepSeek" | "cohere" | "mistralCloud" | "cursorAgent" | "n8n" | "custom-agent", string | null>>;
|
|
360
380
|
}>;
|
|
361
381
|
export type ChatModelsRequest = z.infer<typeof chatModelsRequestSchema>;
|
|
362
382
|
export type ChatHubInputModality = 'text' | 'image' | 'audio' | 'video' | 'file';
|
|
@@ -529,6 +549,15 @@ declare const ChatHubSendMessageRequest_base: Z.Class<{
|
|
|
529
549
|
}, {
|
|
530
550
|
provider: "mistralCloud";
|
|
531
551
|
model: string;
|
|
552
|
+
}>, z.ZodObject<{
|
|
553
|
+
provider: z.ZodLiteral<"cursorAgent">;
|
|
554
|
+
model: z.ZodString;
|
|
555
|
+
}, "strip", z.ZodTypeAny, {
|
|
556
|
+
provider: "cursorAgent";
|
|
557
|
+
model: string;
|
|
558
|
+
}, {
|
|
559
|
+
provider: "cursorAgent";
|
|
560
|
+
model: string;
|
|
532
561
|
}>, z.ZodObject<{
|
|
533
562
|
provider: z.ZodLiteral<"n8n">;
|
|
534
563
|
workflowId: z.ZodString;
|
|
@@ -705,6 +734,15 @@ declare const ChatHubRegenerateMessageRequest_base: Z.Class<{
|
|
|
705
734
|
}, {
|
|
706
735
|
provider: "mistralCloud";
|
|
707
736
|
model: string;
|
|
737
|
+
}>, z.ZodObject<{
|
|
738
|
+
provider: z.ZodLiteral<"cursorAgent">;
|
|
739
|
+
model: z.ZodString;
|
|
740
|
+
}, "strip", z.ZodTypeAny, {
|
|
741
|
+
provider: "cursorAgent";
|
|
742
|
+
model: string;
|
|
743
|
+
}, {
|
|
744
|
+
provider: "cursorAgent";
|
|
745
|
+
model: string;
|
|
708
746
|
}>, z.ZodObject<{
|
|
709
747
|
provider: z.ZodLiteral<"n8n">;
|
|
710
748
|
workflowId: z.ZodString;
|
|
@@ -867,6 +905,15 @@ declare const ChatHubEditMessageRequest_base: Z.Class<{
|
|
|
867
905
|
}, {
|
|
868
906
|
provider: "mistralCloud";
|
|
869
907
|
model: string;
|
|
908
|
+
}>, z.ZodObject<{
|
|
909
|
+
provider: z.ZodLiteral<"cursorAgent">;
|
|
910
|
+
model: z.ZodString;
|
|
911
|
+
}, "strip", z.ZodTypeAny, {
|
|
912
|
+
provider: "cursorAgent";
|
|
913
|
+
model: string;
|
|
914
|
+
}, {
|
|
915
|
+
provider: "cursorAgent";
|
|
916
|
+
model: string;
|
|
870
917
|
}>, z.ZodObject<{
|
|
871
918
|
provider: z.ZodLiteral<"n8n">;
|
|
872
919
|
workflowId: z.ZodString;
|
|
@@ -1044,6 +1091,15 @@ declare const ChatHubUpdateConversationRequest_base: Z.Class<{
|
|
|
1044
1091
|
}, {
|
|
1045
1092
|
provider: "mistralCloud";
|
|
1046
1093
|
model: string;
|
|
1094
|
+
}>, z.ZodObject<{
|
|
1095
|
+
provider: z.ZodLiteral<"cursorAgent">;
|
|
1096
|
+
model: z.ZodString;
|
|
1097
|
+
}, "strip", z.ZodTypeAny, {
|
|
1098
|
+
provider: "cursorAgent";
|
|
1099
|
+
model: string;
|
|
1100
|
+
}, {
|
|
1101
|
+
provider: "cursorAgent";
|
|
1102
|
+
model: string;
|
|
1047
1103
|
}>, z.ZodObject<{
|
|
1048
1104
|
provider: z.ZodLiteral<"n8n">;
|
|
1049
1105
|
workflowId: z.ZodString;
|
|
@@ -1107,6 +1163,9 @@ declare const ChatHubUpdateConversationRequest_base: Z.Class<{
|
|
|
1107
1163
|
} | {
|
|
1108
1164
|
provider: "mistralCloud";
|
|
1109
1165
|
model: string;
|
|
1166
|
+
} | {
|
|
1167
|
+
provider: "cursorAgent";
|
|
1168
|
+
model: string;
|
|
1110
1169
|
} | {
|
|
1111
1170
|
provider: "n8n";
|
|
1112
1171
|
workflowId: string;
|
|
@@ -1158,6 +1217,9 @@ declare const ChatHubUpdateConversationRequest_base: Z.Class<{
|
|
|
1158
1217
|
} | {
|
|
1159
1218
|
provider: "mistralCloud";
|
|
1160
1219
|
model: string;
|
|
1220
|
+
} | {
|
|
1221
|
+
provider: "cursorAgent";
|
|
1222
|
+
model: string;
|
|
1161
1223
|
} | {
|
|
1162
1224
|
provider: "n8n";
|
|
1163
1225
|
workflowId: string;
|
|
@@ -1252,24 +1314,24 @@ declare const ChatHubCreateAgentRequest_base: Z.Class<{
|
|
|
1252
1314
|
type: z.ZodLiteral<"icon">;
|
|
1253
1315
|
value: z.ZodString;
|
|
1254
1316
|
}, "strip", z.ZodTypeAny, {
|
|
1255
|
-
value: string;
|
|
1256
1317
|
type: "icon";
|
|
1257
|
-
}, {
|
|
1258
1318
|
value: string;
|
|
1319
|
+
}, {
|
|
1259
1320
|
type: "icon";
|
|
1321
|
+
value: string;
|
|
1260
1322
|
}>, z.ZodObject<{
|
|
1261
1323
|
type: z.ZodLiteral<"emoji">;
|
|
1262
1324
|
value: z.ZodString;
|
|
1263
1325
|
}, "strip", z.ZodTypeAny, {
|
|
1264
|
-
value: string;
|
|
1265
1326
|
type: "emoji";
|
|
1266
|
-
}, {
|
|
1267
1327
|
value: string;
|
|
1328
|
+
}, {
|
|
1268
1329
|
type: "emoji";
|
|
1330
|
+
value: string;
|
|
1269
1331
|
}>]>;
|
|
1270
1332
|
systemPrompt: z.ZodString;
|
|
1271
1333
|
credentialId: z.ZodString;
|
|
1272
|
-
provider: z.ZodEnum<["openai", "anthropic", "google", "azureOpenAi", "azureEntraId", "ollama", "awsBedrock", "vercelAiGateway", "xAiGrok", "groq", "openRouter", "deepSeek", "cohere", "mistralCloud"]>;
|
|
1334
|
+
provider: z.ZodEnum<["openai", "anthropic", "google", "azureOpenAi", "azureEntraId", "ollama", "awsBedrock", "vercelAiGateway", "xAiGrok", "groq", "openRouter", "deepSeek", "cohere", "mistralCloud", "cursorAgent"]>;
|
|
1273
1335
|
model: z.ZodString;
|
|
1274
1336
|
tools: z.ZodArray<z.ZodType<INode, z.ZodTypeDef, INode>, "many">;
|
|
1275
1337
|
}>;
|
|
@@ -1282,24 +1344,24 @@ declare const ChatHubUpdateAgentRequest_base: Z.Class<{
|
|
|
1282
1344
|
type: z.ZodLiteral<"icon">;
|
|
1283
1345
|
value: z.ZodString;
|
|
1284
1346
|
}, "strip", z.ZodTypeAny, {
|
|
1285
|
-
value: string;
|
|
1286
1347
|
type: "icon";
|
|
1287
|
-
}, {
|
|
1288
1348
|
value: string;
|
|
1349
|
+
}, {
|
|
1289
1350
|
type: "icon";
|
|
1351
|
+
value: string;
|
|
1290
1352
|
}>, z.ZodObject<{
|
|
1291
1353
|
type: z.ZodLiteral<"emoji">;
|
|
1292
1354
|
value: z.ZodString;
|
|
1293
1355
|
}, "strip", z.ZodTypeAny, {
|
|
1294
|
-
value: string;
|
|
1295
1356
|
type: "emoji";
|
|
1296
|
-
}, {
|
|
1297
1357
|
value: string;
|
|
1358
|
+
}, {
|
|
1298
1359
|
type: "emoji";
|
|
1360
|
+
value: string;
|
|
1299
1361
|
}>]>>;
|
|
1300
1362
|
systemPrompt: z.ZodOptional<z.ZodString>;
|
|
1301
1363
|
credentialId: z.ZodOptional<z.ZodString>;
|
|
1302
|
-
provider: z.ZodOptional<z.ZodEnum<["openai", "anthropic", "google", "azureOpenAi", "azureEntraId", "ollama", "awsBedrock", "vercelAiGateway", "xAiGrok", "groq", "openRouter", "deepSeek", "cohere", "mistralCloud"]>>;
|
|
1364
|
+
provider: z.ZodOptional<z.ZodEnum<["openai", "anthropic", "google", "azureOpenAi", "azureEntraId", "ollama", "awsBedrock", "vercelAiGateway", "xAiGrok", "groq", "openRouter", "deepSeek", "cohere", "mistralCloud", "cursorAgent"]>>;
|
|
1303
1365
|
model: z.ZodOptional<z.ZodString>;
|
|
1304
1366
|
tools: z.ZodOptional<z.ZodArray<z.ZodType<INode, z.ZodTypeDef, INode>, "many">>;
|
|
1305
1367
|
}>;
|
|
@@ -1314,7 +1376,7 @@ export interface EnrichedStructuredChunk extends StructuredChunk {
|
|
|
1314
1376
|
};
|
|
1315
1377
|
}
|
|
1316
1378
|
declare const chatProviderSettingsSchema: z.ZodObject<{
|
|
1317
|
-
provider: z.ZodEnum<["openai", "anthropic", "google", "azureOpenAi", "azureEntraId", "ollama", "awsBedrock", "vercelAiGateway", "xAiGrok", "groq", "openRouter", "deepSeek", "cohere", "mistralCloud"]>;
|
|
1379
|
+
provider: z.ZodEnum<["openai", "anthropic", "google", "azureOpenAi", "azureEntraId", "ollama", "awsBedrock", "vercelAiGateway", "xAiGrok", "groq", "openRouter", "deepSeek", "cohere", "mistralCloud", "cursorAgent"]>;
|
|
1318
1380
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1319
1381
|
credentialId: z.ZodNullable<z.ZodString>;
|
|
1320
1382
|
allowedModels: z.ZodArray<z.ZodObject<{
|
|
@@ -1333,7 +1395,7 @@ declare const chatProviderSettingsSchema: z.ZodObject<{
|
|
|
1333
1395
|
createdAt: z.ZodString;
|
|
1334
1396
|
updatedAt: z.ZodNullable<z.ZodString>;
|
|
1335
1397
|
}, "strip", z.ZodTypeAny, {
|
|
1336
|
-
provider: "openai" | "anthropic" | "google" | "azureOpenAi" | "azureEntraId" | "ollama" | "awsBedrock" | "vercelAiGateway" | "xAiGrok" | "groq" | "openRouter" | "deepSeek" | "cohere" | "mistralCloud";
|
|
1398
|
+
provider: "openai" | "anthropic" | "google" | "azureOpenAi" | "azureEntraId" | "ollama" | "awsBedrock" | "vercelAiGateway" | "xAiGrok" | "groq" | "openRouter" | "deepSeek" | "cohere" | "mistralCloud" | "cursorAgent";
|
|
1337
1399
|
credentialId: string | null;
|
|
1338
1400
|
allowedModels: {
|
|
1339
1401
|
model: string;
|
|
@@ -1344,7 +1406,7 @@ declare const chatProviderSettingsSchema: z.ZodObject<{
|
|
|
1344
1406
|
updatedAt: string | null;
|
|
1345
1407
|
enabled?: boolean | undefined;
|
|
1346
1408
|
}, {
|
|
1347
|
-
provider: "openai" | "anthropic" | "google" | "azureOpenAi" | "azureEntraId" | "ollama" | "awsBedrock" | "vercelAiGateway" | "xAiGrok" | "groq" | "openRouter" | "deepSeek" | "cohere" | "mistralCloud";
|
|
1409
|
+
provider: "openai" | "anthropic" | "google" | "azureOpenAi" | "azureEntraId" | "ollama" | "awsBedrock" | "vercelAiGateway" | "xAiGrok" | "groq" | "openRouter" | "deepSeek" | "cohere" | "mistralCloud" | "cursorAgent";
|
|
1348
1410
|
credentialId: string | null;
|
|
1349
1411
|
allowedModels: {
|
|
1350
1412
|
model: string;
|
|
@@ -1358,7 +1420,7 @@ declare const chatProviderSettingsSchema: z.ZodObject<{
|
|
|
1358
1420
|
export type ChatProviderSettingsDto = z.infer<typeof chatProviderSettingsSchema>;
|
|
1359
1421
|
declare const UpdateChatSettingsRequest_base: Z.Class<{
|
|
1360
1422
|
payload: z.ZodObject<{
|
|
1361
|
-
provider: z.ZodEnum<["openai", "anthropic", "google", "azureOpenAi", "azureEntraId", "ollama", "awsBedrock", "vercelAiGateway", "xAiGrok", "groq", "openRouter", "deepSeek", "cohere", "mistralCloud"]>;
|
|
1423
|
+
provider: z.ZodEnum<["openai", "anthropic", "google", "azureOpenAi", "azureEntraId", "ollama", "awsBedrock", "vercelAiGateway", "xAiGrok", "groq", "openRouter", "deepSeek", "cohere", "mistralCloud", "cursorAgent"]>;
|
|
1362
1424
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1363
1425
|
credentialId: z.ZodNullable<z.ZodString>;
|
|
1364
1426
|
allowedModels: z.ZodArray<z.ZodObject<{
|
|
@@ -1377,7 +1439,7 @@ declare const UpdateChatSettingsRequest_base: Z.Class<{
|
|
|
1377
1439
|
createdAt: z.ZodString;
|
|
1378
1440
|
updatedAt: z.ZodNullable<z.ZodString>;
|
|
1379
1441
|
}, "strip", z.ZodTypeAny, {
|
|
1380
|
-
provider: "openai" | "anthropic" | "google" | "azureOpenAi" | "azureEntraId" | "ollama" | "awsBedrock" | "vercelAiGateway" | "xAiGrok" | "groq" | "openRouter" | "deepSeek" | "cohere" | "mistralCloud";
|
|
1442
|
+
provider: "openai" | "anthropic" | "google" | "azureOpenAi" | "azureEntraId" | "ollama" | "awsBedrock" | "vercelAiGateway" | "xAiGrok" | "groq" | "openRouter" | "deepSeek" | "cohere" | "mistralCloud" | "cursorAgent";
|
|
1381
1443
|
credentialId: string | null;
|
|
1382
1444
|
allowedModels: {
|
|
1383
1445
|
model: string;
|
|
@@ -1388,7 +1450,7 @@ declare const UpdateChatSettingsRequest_base: Z.Class<{
|
|
|
1388
1450
|
updatedAt: string | null;
|
|
1389
1451
|
enabled?: boolean | undefined;
|
|
1390
1452
|
}, {
|
|
1391
|
-
provider: "openai" | "anthropic" | "google" | "azureOpenAi" | "azureEntraId" | "ollama" | "awsBedrock" | "vercelAiGateway" | "xAiGrok" | "groq" | "openRouter" | "deepSeek" | "cohere" | "mistralCloud";
|
|
1453
|
+
provider: "openai" | "anthropic" | "google" | "azureOpenAi" | "azureEntraId" | "ollama" | "awsBedrock" | "vercelAiGateway" | "xAiGrok" | "groq" | "openRouter" | "deepSeek" | "cohere" | "mistralCloud" | "cursorAgent";
|
|
1392
1454
|
credentialId: string | null;
|
|
1393
1455
|
allowedModels: {
|
|
1394
1456
|
model: string;
|
package/dist/chat-hub.js
CHANGED
|
@@ -19,6 +19,7 @@ exports.chatHubLLMProviderSchema = zod_1.z.enum([
|
|
|
19
19
|
'deepSeek',
|
|
20
20
|
'cohere',
|
|
21
21
|
'mistralCloud',
|
|
22
|
+
'cursorAgent',
|
|
22
23
|
]);
|
|
23
24
|
exports.agentIconOrEmojiSchema = zod_1.z.discriminatedUnion('type', [
|
|
24
25
|
zod_1.z.object({
|
|
@@ -50,6 +51,7 @@ exports.PROVIDER_CREDENTIAL_TYPE_MAP = {
|
|
|
50
51
|
deepSeek: 'deepSeekApi',
|
|
51
52
|
cohere: 'cohereApi',
|
|
52
53
|
mistralCloud: 'mistralCloudApi',
|
|
54
|
+
cursorAgent: 'cursorAgentApi',
|
|
53
55
|
};
|
|
54
56
|
const openAIModelSchema = zod_1.z.object({
|
|
55
57
|
provider: zod_1.z.literal('openai'),
|
|
@@ -107,6 +109,10 @@ const mistralCloudModelSchema = zod_1.z.object({
|
|
|
107
109
|
provider: zod_1.z.literal('mistralCloud'),
|
|
108
110
|
model: zod_1.z.string(),
|
|
109
111
|
});
|
|
112
|
+
const cursorAgentModelSchema = zod_1.z.object({
|
|
113
|
+
provider: zod_1.z.literal('cursorAgent'),
|
|
114
|
+
model: zod_1.z.string(),
|
|
115
|
+
});
|
|
110
116
|
const n8nModelSchema = zod_1.z.object({
|
|
111
117
|
provider: zod_1.z.literal('n8n'),
|
|
112
118
|
workflowId: zod_1.z.string(),
|
|
@@ -130,6 +136,7 @@ exports.chatHubConversationModelSchema = zod_1.z.discriminatedUnion('provider',
|
|
|
130
136
|
deepSeekModelSchema,
|
|
131
137
|
cohereModelSchema,
|
|
132
138
|
mistralCloudModelSchema,
|
|
139
|
+
cursorAgentModelSchema,
|
|
133
140
|
n8nModelSchema,
|
|
134
141
|
chatAgentSchema,
|
|
135
142
|
]);
|
|
@@ -151,6 +158,7 @@ exports.emptyChatModelsResponse = {
|
|
|
151
158
|
deepSeek: { models: [] },
|
|
152
159
|
cohere: { models: [] },
|
|
153
160
|
mistralCloud: { models: [] },
|
|
161
|
+
cursorAgent: { models: [] },
|
|
154
162
|
n8n: { models: [] },
|
|
155
163
|
'custom-agent': { models: [] },
|
|
156
164
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atom8n/api-types",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.5",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"clean": "rimraf dist .turbo",
|
|
6
6
|
"dev": "pnpm watch",
|
|
@@ -22,14 +22,14 @@
|
|
|
22
22
|
"dist/**/*"
|
|
23
23
|
],
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@n8n/typescript-config": "npm:@atom8n/typescript-config@1.6.
|
|
26
|
-
"@n8n/config": "npm:@atom8n/config@2.4.
|
|
25
|
+
"@n8n/typescript-config": "npm:@atom8n/typescript-config@1.6.5",
|
|
26
|
+
"@n8n/config": "npm:@atom8n/config@2.4.5"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"n8n-workflow": "npm:@atom8n/n8n-workflow@2.5.
|
|
29
|
+
"n8n-workflow": "npm:@atom8n/n8n-workflow@2.5.5",
|
|
30
30
|
"xss": "1.0.15",
|
|
31
31
|
"zod": "3.25.67",
|
|
32
32
|
"zod-class": "0.0.16",
|
|
33
|
-
"@n8n/permissions": "npm:@atom8n/permissions@0.48.
|
|
33
|
+
"@n8n/permissions": "npm:@atom8n/permissions@0.48.5"
|
|
34
34
|
}
|
|
35
35
|
}
|