@n8n/api-types 0.55.0 → 0.56.0

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.
@@ -1,9 +1,9 @@
1
1
  import { type StructuredChunk, type JINA_AI_TOOL_NODE_TYPE, type SEAR_XNG_TOOL_NODE_TYPE, type INode } from 'n8n-workflow';
2
2
  import { z } from 'zod';
3
3
  import { Z } from 'zod-class';
4
- export declare const chatHubLLMProviderSchema: z.ZodEnum<["openai", "anthropic", "google"]>;
4
+ export declare const chatHubLLMProviderSchema: z.ZodEnum<["openai", "anthropic", "google", "azureOpenAi", "azureEntraId", "ollama", "awsBedrock", "vercelAiGateway", "xAiGrok", "groq", "openRouter", "deepSeek", "cohere", "mistralCloud"]>;
5
5
  export type ChatHubLLMProvider = z.infer<typeof chatHubLLMProviderSchema>;
6
- export declare const chatHubProviderSchema: z.ZodEnum<["openai", "anthropic", "google", "n8n", "custom-agent"]>;
6
+ export declare const chatHubProviderSchema: z.ZodEnum<["openai", "anthropic", "google", "azureOpenAi", "azureEntraId", "ollama", "awsBedrock", "vercelAiGateway", "xAiGrok", "groq", "openRouter", "deepSeek", "cohere", "mistralCloud", "n8n", "custom-agent"]>;
7
7
  export type ChatHubProvider = z.infer<typeof chatHubProviderSchema>;
8
8
  export declare const PROVIDER_CREDENTIAL_TYPE_MAP: Record<Exclude<ChatHubProvider, 'n8n' | 'custom-agent'>, string>;
9
9
  export type ChatHubAgentTool = typeof JINA_AI_TOOL_NODE_TYPE | typeof SEAR_XNG_TOOL_NODE_TYPE;
@@ -37,6 +37,116 @@ declare const googleModelSchema: z.ZodObject<{
37
37
  provider: "google";
38
38
  model: string;
39
39
  }>;
40
+ declare const azureOpenAIModelSchema: z.ZodObject<{
41
+ provider: z.ZodLiteral<"azureOpenAi">;
42
+ model: z.ZodString;
43
+ }, "strip", z.ZodTypeAny, {
44
+ provider: "azureOpenAi";
45
+ model: string;
46
+ }, {
47
+ provider: "azureOpenAi";
48
+ model: string;
49
+ }>;
50
+ declare const azureEntraIdModelSchema: z.ZodObject<{
51
+ provider: z.ZodLiteral<"azureEntraId">;
52
+ model: z.ZodString;
53
+ }, "strip", z.ZodTypeAny, {
54
+ provider: "azureEntraId";
55
+ model: string;
56
+ }, {
57
+ provider: "azureEntraId";
58
+ model: string;
59
+ }>;
60
+ declare const ollamaModelSchema: z.ZodObject<{
61
+ provider: z.ZodLiteral<"ollama">;
62
+ model: z.ZodString;
63
+ }, "strip", z.ZodTypeAny, {
64
+ provider: "ollama";
65
+ model: string;
66
+ }, {
67
+ provider: "ollama";
68
+ model: string;
69
+ }>;
70
+ declare const awsBedrockModelSchema: z.ZodObject<{
71
+ provider: z.ZodLiteral<"awsBedrock">;
72
+ model: z.ZodString;
73
+ }, "strip", z.ZodTypeAny, {
74
+ provider: "awsBedrock";
75
+ model: string;
76
+ }, {
77
+ provider: "awsBedrock";
78
+ model: string;
79
+ }>;
80
+ declare const vercelAiGatewaySchema: z.ZodObject<{
81
+ provider: z.ZodLiteral<"vercelAiGateway">;
82
+ model: z.ZodString;
83
+ }, "strip", z.ZodTypeAny, {
84
+ provider: "vercelAiGateway";
85
+ model: string;
86
+ }, {
87
+ provider: "vercelAiGateway";
88
+ model: string;
89
+ }>;
90
+ declare const xAiGrokModelSchema: z.ZodObject<{
91
+ provider: z.ZodLiteral<"xAiGrok">;
92
+ model: z.ZodString;
93
+ }, "strip", z.ZodTypeAny, {
94
+ provider: "xAiGrok";
95
+ model: string;
96
+ }, {
97
+ provider: "xAiGrok";
98
+ model: string;
99
+ }>;
100
+ declare const groqModelSchema: z.ZodObject<{
101
+ provider: z.ZodLiteral<"groq">;
102
+ model: z.ZodString;
103
+ }, "strip", z.ZodTypeAny, {
104
+ provider: "groq";
105
+ model: string;
106
+ }, {
107
+ provider: "groq";
108
+ model: string;
109
+ }>;
110
+ declare const openRouterModelSchema: z.ZodObject<{
111
+ provider: z.ZodLiteral<"openRouter">;
112
+ model: z.ZodString;
113
+ }, "strip", z.ZodTypeAny, {
114
+ provider: "openRouter";
115
+ model: string;
116
+ }, {
117
+ provider: "openRouter";
118
+ model: string;
119
+ }>;
120
+ declare const deepSeekModelSchema: z.ZodObject<{
121
+ provider: z.ZodLiteral<"deepSeek">;
122
+ model: z.ZodString;
123
+ }, "strip", z.ZodTypeAny, {
124
+ provider: "deepSeek";
125
+ model: string;
126
+ }, {
127
+ provider: "deepSeek";
128
+ model: string;
129
+ }>;
130
+ declare const cohereModelSchema: z.ZodObject<{
131
+ provider: z.ZodLiteral<"cohere">;
132
+ model: z.ZodString;
133
+ }, "strip", z.ZodTypeAny, {
134
+ provider: "cohere";
135
+ model: string;
136
+ }, {
137
+ provider: "cohere";
138
+ model: string;
139
+ }>;
140
+ declare const mistralCloudModelSchema: z.ZodObject<{
141
+ provider: z.ZodLiteral<"mistralCloud">;
142
+ model: z.ZodString;
143
+ }, "strip", z.ZodTypeAny, {
144
+ provider: "mistralCloud";
145
+ model: string;
146
+ }, {
147
+ provider: "mistralCloud";
148
+ model: string;
149
+ }>;
40
150
  declare const n8nModelSchema: z.ZodObject<{
41
151
  provider: z.ZodLiteral<"n8n">;
42
152
  workflowId: z.ZodString;
@@ -84,6 +194,105 @@ export declare const chatHubConversationModelSchema: z.ZodDiscriminatedUnion<"pr
84
194
  }, {
85
195
  provider: "google";
86
196
  model: string;
197
+ }>, z.ZodObject<{
198
+ provider: z.ZodLiteral<"azureOpenAi">;
199
+ model: z.ZodString;
200
+ }, "strip", z.ZodTypeAny, {
201
+ provider: "azureOpenAi";
202
+ model: string;
203
+ }, {
204
+ provider: "azureOpenAi";
205
+ model: string;
206
+ }>, z.ZodObject<{
207
+ provider: z.ZodLiteral<"azureEntraId">;
208
+ model: z.ZodString;
209
+ }, "strip", z.ZodTypeAny, {
210
+ provider: "azureEntraId";
211
+ model: string;
212
+ }, {
213
+ provider: "azureEntraId";
214
+ model: string;
215
+ }>, z.ZodObject<{
216
+ provider: z.ZodLiteral<"ollama">;
217
+ model: z.ZodString;
218
+ }, "strip", z.ZodTypeAny, {
219
+ provider: "ollama";
220
+ model: string;
221
+ }, {
222
+ provider: "ollama";
223
+ model: string;
224
+ }>, z.ZodObject<{
225
+ provider: z.ZodLiteral<"awsBedrock">;
226
+ model: z.ZodString;
227
+ }, "strip", z.ZodTypeAny, {
228
+ provider: "awsBedrock";
229
+ model: string;
230
+ }, {
231
+ provider: "awsBedrock";
232
+ model: string;
233
+ }>, z.ZodObject<{
234
+ provider: z.ZodLiteral<"vercelAiGateway">;
235
+ model: z.ZodString;
236
+ }, "strip", z.ZodTypeAny, {
237
+ provider: "vercelAiGateway";
238
+ model: string;
239
+ }, {
240
+ provider: "vercelAiGateway";
241
+ model: string;
242
+ }>, z.ZodObject<{
243
+ provider: z.ZodLiteral<"xAiGrok">;
244
+ model: z.ZodString;
245
+ }, "strip", z.ZodTypeAny, {
246
+ provider: "xAiGrok";
247
+ model: string;
248
+ }, {
249
+ provider: "xAiGrok";
250
+ model: string;
251
+ }>, z.ZodObject<{
252
+ provider: z.ZodLiteral<"groq">;
253
+ model: z.ZodString;
254
+ }, "strip", z.ZodTypeAny, {
255
+ provider: "groq";
256
+ model: string;
257
+ }, {
258
+ provider: "groq";
259
+ model: string;
260
+ }>, z.ZodObject<{
261
+ provider: z.ZodLiteral<"openRouter">;
262
+ model: z.ZodString;
263
+ }, "strip", z.ZodTypeAny, {
264
+ provider: "openRouter";
265
+ model: string;
266
+ }, {
267
+ provider: "openRouter";
268
+ model: string;
269
+ }>, z.ZodObject<{
270
+ provider: z.ZodLiteral<"deepSeek">;
271
+ model: z.ZodString;
272
+ }, "strip", z.ZodTypeAny, {
273
+ provider: "deepSeek";
274
+ model: string;
275
+ }, {
276
+ provider: "deepSeek";
277
+ model: string;
278
+ }>, z.ZodObject<{
279
+ provider: z.ZodLiteral<"cohere">;
280
+ model: z.ZodString;
281
+ }, "strip", z.ZodTypeAny, {
282
+ provider: "cohere";
283
+ model: string;
284
+ }, {
285
+ provider: "cohere";
286
+ model: string;
287
+ }>, z.ZodObject<{
288
+ provider: z.ZodLiteral<"mistralCloud">;
289
+ model: z.ZodString;
290
+ }, "strip", z.ZodTypeAny, {
291
+ provider: "mistralCloud";
292
+ model: string;
293
+ }, {
294
+ provider: "mistralCloud";
295
+ model: string;
87
296
  }>, z.ZodObject<{
88
297
  provider: z.ZodLiteral<"n8n">;
89
298
  workflowId: z.ZodString;
@@ -106,16 +315,27 @@ export declare const chatHubConversationModelSchema: z.ZodDiscriminatedUnion<"pr
106
315
  export type ChatHubOpenAIModel = z.infer<typeof openAIModelSchema>;
107
316
  export type ChatHubAnthropicModel = z.infer<typeof anthropicModelSchema>;
108
317
  export type ChatHubGoogleModel = z.infer<typeof googleModelSchema>;
109
- export type ChatHubBaseLLMModel = ChatHubOpenAIModel | ChatHubAnthropicModel | ChatHubGoogleModel;
318
+ export type ChatHubAzureOpenAIModel = z.infer<typeof azureOpenAIModelSchema>;
319
+ export type ChatHubAzureEntraIdModel = z.infer<typeof azureEntraIdModelSchema>;
320
+ export type ChatHubOllamaModel = z.infer<typeof ollamaModelSchema>;
321
+ export type ChatHubAwsBedrockModel = z.infer<typeof awsBedrockModelSchema>;
322
+ export type ChatHubVercelAiGatewayModel = z.infer<typeof vercelAiGatewaySchema>;
323
+ export type ChatHubXAiGrokModel = z.infer<typeof xAiGrokModelSchema>;
324
+ export type ChatHubGroqModel = z.infer<typeof groqModelSchema>;
325
+ export type ChatHubOpenRouterModel = z.infer<typeof openRouterModelSchema>;
326
+ export type ChatHubDeepSeekModel = z.infer<typeof deepSeekModelSchema>;
327
+ export type ChatHubCohereModel = z.infer<typeof cohereModelSchema>;
328
+ export type ChatHubMistralCloudModel = z.infer<typeof mistralCloudModelSchema>;
329
+ export type ChatHubBaseLLMModel = ChatHubOpenAIModel | ChatHubAnthropicModel | ChatHubGoogleModel | ChatHubAzureOpenAIModel | ChatHubAzureEntraIdModel | ChatHubOllamaModel | ChatHubAwsBedrockModel | ChatHubVercelAiGatewayModel | ChatHubXAiGrokModel | ChatHubGroqModel | ChatHubOpenRouterModel | ChatHubDeepSeekModel | ChatHubCohereModel | ChatHubMistralCloudModel;
110
330
  export type ChatHubN8nModel = z.infer<typeof n8nModelSchema>;
111
331
  export type ChatHubCustomAgentModel = z.infer<typeof chatAgentSchema>;
112
332
  export type ChatHubConversationModel = z.infer<typeof chatHubConversationModelSchema>;
113
333
  export declare const chatModelsRequestSchema: z.ZodObject<{
114
- credentials: z.ZodRecord<z.ZodEnum<["openai", "anthropic", "google", "n8n", "custom-agent"]>, z.ZodNullable<z.ZodString>>;
334
+ 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>>;
115
335
  }, "strip", z.ZodTypeAny, {
116
- credentials: Partial<Record<"openai" | "anthropic" | "google" | "n8n" | "custom-agent", string | null>>;
336
+ credentials: Partial<Record<"openai" | "anthropic" | "google" | "azureOpenAi" | "azureEntraId" | "ollama" | "awsBedrock" | "vercelAiGateway" | "xAiGrok" | "groq" | "openRouter" | "deepSeek" | "cohere" | "mistralCloud" | "n8n" | "custom-agent", string | null>>;
117
337
  }, {
118
- credentials: Partial<Record<"openai" | "anthropic" | "google" | "n8n" | "custom-agent", string | null>>;
338
+ credentials: Partial<Record<"openai" | "anthropic" | "google" | "azureOpenAi" | "azureEntraId" | "ollama" | "awsBedrock" | "vercelAiGateway" | "xAiGrok" | "groq" | "openRouter" | "deepSeek" | "cohere" | "mistralCloud" | "n8n" | "custom-agent", string | null>>;
119
339
  }>;
120
340
  export type ChatModelsRequest = z.infer<typeof chatModelsRequestSchema>;
121
341
  export interface ChatModelDto {
@@ -124,12 +344,27 @@ export interface ChatModelDto {
124
344
  description: string | null;
125
345
  updatedAt: string | null;
126
346
  createdAt: string | null;
347
+ allowFileUploads?: boolean;
127
348
  }
128
349
  export type ChatModelsResponse = Record<ChatHubProvider, {
129
350
  models: ChatModelDto[];
130
351
  error?: string;
131
352
  }>;
132
353
  export declare const emptyChatModelsResponse: ChatModelsResponse;
354
+ export declare const chatAttachmentSchema: z.ZodObject<{
355
+ data: z.ZodString;
356
+ mimeType: z.ZodString;
357
+ fileName: z.ZodString;
358
+ }, "strip", z.ZodTypeAny, {
359
+ data: string;
360
+ mimeType: string;
361
+ fileName: string;
362
+ }, {
363
+ data: string;
364
+ mimeType: string;
365
+ fileName: string;
366
+ }>;
367
+ export type ChatAttachment = z.infer<typeof chatAttachmentSchema>;
133
368
  declare const ChatHubSendMessageRequest_base: Z.Class<{
134
369
  messageId: z.ZodString;
135
370
  sessionId: z.ZodString;
@@ -161,6 +396,105 @@ declare const ChatHubSendMessageRequest_base: Z.Class<{
161
396
  }, {
162
397
  provider: "google";
163
398
  model: string;
399
+ }>, z.ZodObject<{
400
+ provider: z.ZodLiteral<"azureOpenAi">;
401
+ model: z.ZodString;
402
+ }, "strip", z.ZodTypeAny, {
403
+ provider: "azureOpenAi";
404
+ model: string;
405
+ }, {
406
+ provider: "azureOpenAi";
407
+ model: string;
408
+ }>, z.ZodObject<{
409
+ provider: z.ZodLiteral<"azureEntraId">;
410
+ model: z.ZodString;
411
+ }, "strip", z.ZodTypeAny, {
412
+ provider: "azureEntraId";
413
+ model: string;
414
+ }, {
415
+ provider: "azureEntraId";
416
+ model: string;
417
+ }>, z.ZodObject<{
418
+ provider: z.ZodLiteral<"ollama">;
419
+ model: z.ZodString;
420
+ }, "strip", z.ZodTypeAny, {
421
+ provider: "ollama";
422
+ model: string;
423
+ }, {
424
+ provider: "ollama";
425
+ model: string;
426
+ }>, z.ZodObject<{
427
+ provider: z.ZodLiteral<"awsBedrock">;
428
+ model: z.ZodString;
429
+ }, "strip", z.ZodTypeAny, {
430
+ provider: "awsBedrock";
431
+ model: string;
432
+ }, {
433
+ provider: "awsBedrock";
434
+ model: string;
435
+ }>, z.ZodObject<{
436
+ provider: z.ZodLiteral<"vercelAiGateway">;
437
+ model: z.ZodString;
438
+ }, "strip", z.ZodTypeAny, {
439
+ provider: "vercelAiGateway";
440
+ model: string;
441
+ }, {
442
+ provider: "vercelAiGateway";
443
+ model: string;
444
+ }>, z.ZodObject<{
445
+ provider: z.ZodLiteral<"xAiGrok">;
446
+ model: z.ZodString;
447
+ }, "strip", z.ZodTypeAny, {
448
+ provider: "xAiGrok";
449
+ model: string;
450
+ }, {
451
+ provider: "xAiGrok";
452
+ model: string;
453
+ }>, z.ZodObject<{
454
+ provider: z.ZodLiteral<"groq">;
455
+ model: z.ZodString;
456
+ }, "strip", z.ZodTypeAny, {
457
+ provider: "groq";
458
+ model: string;
459
+ }, {
460
+ provider: "groq";
461
+ model: string;
462
+ }>, z.ZodObject<{
463
+ provider: z.ZodLiteral<"openRouter">;
464
+ model: z.ZodString;
465
+ }, "strip", z.ZodTypeAny, {
466
+ provider: "openRouter";
467
+ model: string;
468
+ }, {
469
+ provider: "openRouter";
470
+ model: string;
471
+ }>, z.ZodObject<{
472
+ provider: z.ZodLiteral<"deepSeek">;
473
+ model: z.ZodString;
474
+ }, "strip", z.ZodTypeAny, {
475
+ provider: "deepSeek";
476
+ model: string;
477
+ }, {
478
+ provider: "deepSeek";
479
+ model: string;
480
+ }>, z.ZodObject<{
481
+ provider: z.ZodLiteral<"cohere">;
482
+ model: z.ZodString;
483
+ }, "strip", z.ZodTypeAny, {
484
+ provider: "cohere";
485
+ model: string;
486
+ }, {
487
+ provider: "cohere";
488
+ model: string;
489
+ }>, z.ZodObject<{
490
+ provider: z.ZodLiteral<"mistralCloud">;
491
+ model: z.ZodString;
492
+ }, "strip", z.ZodTypeAny, {
493
+ provider: "mistralCloud";
494
+ model: string;
495
+ }, {
496
+ provider: "mistralCloud";
497
+ model: string;
164
498
  }>, z.ZodObject<{
165
499
  provider: z.ZodLiteral<"n8n">;
166
500
  workflowId: z.ZodString;
@@ -192,6 +526,19 @@ declare const ChatHubSendMessageRequest_base: Z.Class<{
192
526
  name: string;
193
527
  }>>;
194
528
  tools: z.ZodArray<z.ZodType<INode, z.ZodTypeDef, INode>, "many">;
529
+ attachments: z.ZodArray<z.ZodObject<{
530
+ data: z.ZodString;
531
+ mimeType: z.ZodString;
532
+ fileName: z.ZodString;
533
+ }, "strip", z.ZodTypeAny, {
534
+ data: string;
535
+ mimeType: string;
536
+ fileName: string;
537
+ }, {
538
+ data: string;
539
+ mimeType: string;
540
+ fileName: string;
541
+ }>, "many">;
195
542
  }>;
196
543
  export declare class ChatHubSendMessageRequest extends ChatHubSendMessageRequest_base {
197
544
  }
@@ -223,6 +570,105 @@ declare const ChatHubRegenerateMessageRequest_base: Z.Class<{
223
570
  }, {
224
571
  provider: "google";
225
572
  model: string;
573
+ }>, z.ZodObject<{
574
+ provider: z.ZodLiteral<"azureOpenAi">;
575
+ model: z.ZodString;
576
+ }, "strip", z.ZodTypeAny, {
577
+ provider: "azureOpenAi";
578
+ model: string;
579
+ }, {
580
+ provider: "azureOpenAi";
581
+ model: string;
582
+ }>, z.ZodObject<{
583
+ provider: z.ZodLiteral<"azureEntraId">;
584
+ model: z.ZodString;
585
+ }, "strip", z.ZodTypeAny, {
586
+ provider: "azureEntraId";
587
+ model: string;
588
+ }, {
589
+ provider: "azureEntraId";
590
+ model: string;
591
+ }>, z.ZodObject<{
592
+ provider: z.ZodLiteral<"ollama">;
593
+ model: z.ZodString;
594
+ }, "strip", z.ZodTypeAny, {
595
+ provider: "ollama";
596
+ model: string;
597
+ }, {
598
+ provider: "ollama";
599
+ model: string;
600
+ }>, z.ZodObject<{
601
+ provider: z.ZodLiteral<"awsBedrock">;
602
+ model: z.ZodString;
603
+ }, "strip", z.ZodTypeAny, {
604
+ provider: "awsBedrock";
605
+ model: string;
606
+ }, {
607
+ provider: "awsBedrock";
608
+ model: string;
609
+ }>, z.ZodObject<{
610
+ provider: z.ZodLiteral<"vercelAiGateway">;
611
+ model: z.ZodString;
612
+ }, "strip", z.ZodTypeAny, {
613
+ provider: "vercelAiGateway";
614
+ model: string;
615
+ }, {
616
+ provider: "vercelAiGateway";
617
+ model: string;
618
+ }>, z.ZodObject<{
619
+ provider: z.ZodLiteral<"xAiGrok">;
620
+ model: z.ZodString;
621
+ }, "strip", z.ZodTypeAny, {
622
+ provider: "xAiGrok";
623
+ model: string;
624
+ }, {
625
+ provider: "xAiGrok";
626
+ model: string;
627
+ }>, z.ZodObject<{
628
+ provider: z.ZodLiteral<"groq">;
629
+ model: z.ZodString;
630
+ }, "strip", z.ZodTypeAny, {
631
+ provider: "groq";
632
+ model: string;
633
+ }, {
634
+ provider: "groq";
635
+ model: string;
636
+ }>, z.ZodObject<{
637
+ provider: z.ZodLiteral<"openRouter">;
638
+ model: z.ZodString;
639
+ }, "strip", z.ZodTypeAny, {
640
+ provider: "openRouter";
641
+ model: string;
642
+ }, {
643
+ provider: "openRouter";
644
+ model: string;
645
+ }>, z.ZodObject<{
646
+ provider: z.ZodLiteral<"deepSeek">;
647
+ model: z.ZodString;
648
+ }, "strip", z.ZodTypeAny, {
649
+ provider: "deepSeek";
650
+ model: string;
651
+ }, {
652
+ provider: "deepSeek";
653
+ model: string;
654
+ }>, z.ZodObject<{
655
+ provider: z.ZodLiteral<"cohere">;
656
+ model: z.ZodString;
657
+ }, "strip", z.ZodTypeAny, {
658
+ provider: "cohere";
659
+ model: string;
660
+ }, {
661
+ provider: "cohere";
662
+ model: string;
663
+ }>, z.ZodObject<{
664
+ provider: z.ZodLiteral<"mistralCloud">;
665
+ model: z.ZodString;
666
+ }, "strip", z.ZodTypeAny, {
667
+ provider: "mistralCloud";
668
+ model: string;
669
+ }, {
670
+ provider: "mistralCloud";
671
+ model: string;
226
672
  }>, z.ZodObject<{
227
673
  provider: z.ZodLiteral<"n8n">;
228
674
  workflowId: z.ZodString;
@@ -285,6 +731,105 @@ declare const ChatHubEditMessageRequest_base: Z.Class<{
285
731
  }, {
286
732
  provider: "google";
287
733
  model: string;
734
+ }>, z.ZodObject<{
735
+ provider: z.ZodLiteral<"azureOpenAi">;
736
+ model: z.ZodString;
737
+ }, "strip", z.ZodTypeAny, {
738
+ provider: "azureOpenAi";
739
+ model: string;
740
+ }, {
741
+ provider: "azureOpenAi";
742
+ model: string;
743
+ }>, z.ZodObject<{
744
+ provider: z.ZodLiteral<"azureEntraId">;
745
+ model: z.ZodString;
746
+ }, "strip", z.ZodTypeAny, {
747
+ provider: "azureEntraId";
748
+ model: string;
749
+ }, {
750
+ provider: "azureEntraId";
751
+ model: string;
752
+ }>, z.ZodObject<{
753
+ provider: z.ZodLiteral<"ollama">;
754
+ model: z.ZodString;
755
+ }, "strip", z.ZodTypeAny, {
756
+ provider: "ollama";
757
+ model: string;
758
+ }, {
759
+ provider: "ollama";
760
+ model: string;
761
+ }>, z.ZodObject<{
762
+ provider: z.ZodLiteral<"awsBedrock">;
763
+ model: z.ZodString;
764
+ }, "strip", z.ZodTypeAny, {
765
+ provider: "awsBedrock";
766
+ model: string;
767
+ }, {
768
+ provider: "awsBedrock";
769
+ model: string;
770
+ }>, z.ZodObject<{
771
+ provider: z.ZodLiteral<"vercelAiGateway">;
772
+ model: z.ZodString;
773
+ }, "strip", z.ZodTypeAny, {
774
+ provider: "vercelAiGateway";
775
+ model: string;
776
+ }, {
777
+ provider: "vercelAiGateway";
778
+ model: string;
779
+ }>, z.ZodObject<{
780
+ provider: z.ZodLiteral<"xAiGrok">;
781
+ model: z.ZodString;
782
+ }, "strip", z.ZodTypeAny, {
783
+ provider: "xAiGrok";
784
+ model: string;
785
+ }, {
786
+ provider: "xAiGrok";
787
+ model: string;
788
+ }>, z.ZodObject<{
789
+ provider: z.ZodLiteral<"groq">;
790
+ model: z.ZodString;
791
+ }, "strip", z.ZodTypeAny, {
792
+ provider: "groq";
793
+ model: string;
794
+ }, {
795
+ provider: "groq";
796
+ model: string;
797
+ }>, z.ZodObject<{
798
+ provider: z.ZodLiteral<"openRouter">;
799
+ model: z.ZodString;
800
+ }, "strip", z.ZodTypeAny, {
801
+ provider: "openRouter";
802
+ model: string;
803
+ }, {
804
+ provider: "openRouter";
805
+ model: string;
806
+ }>, z.ZodObject<{
807
+ provider: z.ZodLiteral<"deepSeek">;
808
+ model: z.ZodString;
809
+ }, "strip", z.ZodTypeAny, {
810
+ provider: "deepSeek";
811
+ model: string;
812
+ }, {
813
+ provider: "deepSeek";
814
+ model: string;
815
+ }>, z.ZodObject<{
816
+ provider: z.ZodLiteral<"cohere">;
817
+ model: z.ZodString;
818
+ }, "strip", z.ZodTypeAny, {
819
+ provider: "cohere";
820
+ model: string;
821
+ }, {
822
+ provider: "cohere";
823
+ model: string;
824
+ }>, z.ZodObject<{
825
+ provider: z.ZodLiteral<"mistralCloud">;
826
+ model: z.ZodString;
827
+ }, "strip", z.ZodTypeAny, {
828
+ provider: "mistralCloud";
829
+ model: string;
830
+ }, {
831
+ provider: "mistralCloud";
832
+ model: string;
288
833
  }>, z.ZodObject<{
289
834
  provider: z.ZodLiteral<"n8n">;
290
835
  workflowId: z.ZodString;
@@ -320,7 +865,7 @@ export declare class ChatHubEditMessageRequest extends ChatHubEditMessageRequest
320
865
  declare const ChatHubUpdateConversationRequest_base: Z.Class<{
321
866
  title: z.ZodOptional<z.ZodString>;
322
867
  credentialId: z.ZodOptional<z.ZodString>;
323
- provider: z.ZodOptional<z.ZodEnum<["openai", "anthropic", "google", "n8n", "custom-agent"]>>;
868
+ provider: z.ZodOptional<z.ZodEnum<["openai", "anthropic", "google", "azureOpenAi", "azureEntraId", "ollama", "awsBedrock", "vercelAiGateway", "xAiGrok", "groq", "openRouter", "deepSeek", "cohere", "mistralCloud", "n8n", "custom-agent"]>>;
324
869
  model: z.ZodOptional<z.ZodString>;
325
870
  workflowId: z.ZodOptional<z.ZodString>;
326
871
  agentId: z.ZodOptional<z.ZodString>;
@@ -364,8 +909,22 @@ export interface ChatHubMessageDto {
364
909
  previousMessageId: ChatMessageId | null;
365
910
  retryOfMessageId: ChatMessageId | null;
366
911
  revisionOfMessageId: ChatMessageId | null;
912
+ attachments: Array<{
913
+ fileName?: string;
914
+ mimeType?: string;
915
+ }>;
916
+ }
917
+ declare const ChatHubConversationsRequest_base: Z.Class<{
918
+ limit: z.ZodNumber;
919
+ cursor: z.ZodOptional<z.ZodString>;
920
+ }>;
921
+ export declare class ChatHubConversationsRequest extends ChatHubConversationsRequest_base {
922
+ }
923
+ export interface ChatHubConversationsResponse {
924
+ data: ChatHubSessionDto[];
925
+ nextCursor: string | null;
926
+ hasMore: boolean;
367
927
  }
368
- export type ChatHubConversationsResponse = ChatHubSessionDto[];
369
928
  export interface ChatHubConversationDto {
370
929
  messages: Record<ChatMessageId, ChatHubMessageDto>;
371
930
  }
@@ -391,7 +950,7 @@ declare const ChatHubCreateAgentRequest_base: Z.Class<{
391
950
  description: z.ZodOptional<z.ZodString>;
392
951
  systemPrompt: z.ZodString;
393
952
  credentialId: z.ZodString;
394
- provider: z.ZodEnum<["openai", "anthropic", "google"]>;
953
+ provider: z.ZodEnum<["openai", "anthropic", "google", "azureOpenAi", "azureEntraId", "ollama", "awsBedrock", "vercelAiGateway", "xAiGrok", "groq", "openRouter", "deepSeek", "cohere", "mistralCloud"]>;
395
954
  model: z.ZodString;
396
955
  tools: z.ZodArray<z.ZodType<INode, z.ZodTypeDef, INode>, "many">;
397
956
  }>;
@@ -402,7 +961,7 @@ declare const ChatHubUpdateAgentRequest_base: Z.Class<{
402
961
  description: z.ZodOptional<z.ZodString>;
403
962
  systemPrompt: z.ZodOptional<z.ZodString>;
404
963
  credentialId: z.ZodOptional<z.ZodString>;
405
- provider: z.ZodOptional<z.ZodEnum<["openai", "anthropic", "google", "n8n", "custom-agent"]>>;
964
+ provider: z.ZodOptional<z.ZodEnum<["openai", "anthropic", "google", "azureOpenAi", "azureEntraId", "ollama", "awsBedrock", "vercelAiGateway", "xAiGrok", "groq", "openRouter", "deepSeek", "cohere", "mistralCloud", "n8n", "custom-agent"]>>;
406
965
  model: z.ZodOptional<z.ZodString>;
407
966
  tools: z.ZodOptional<z.ZodArray<z.ZodType<INode, z.ZodTypeDef, INode>, "many">>;
408
967
  }>;
@@ -416,4 +975,93 @@ export interface EnrichedStructuredChunk extends StructuredChunk {
416
975
  executionId: number | null;
417
976
  };
418
977
  }
978
+ declare const chatProviderSettingsSchema: z.ZodObject<{
979
+ provider: z.ZodEnum<["openai", "anthropic", "google", "azureOpenAi", "azureEntraId", "ollama", "awsBedrock", "vercelAiGateway", "xAiGrok", "groq", "openRouter", "deepSeek", "cohere", "mistralCloud"]>;
980
+ enabled: z.ZodOptional<z.ZodBoolean>;
981
+ credentialId: z.ZodNullable<z.ZodString>;
982
+ allowedModels: z.ZodArray<z.ZodObject<{
983
+ displayName: z.ZodString;
984
+ model: z.ZodString;
985
+ isManual: z.ZodOptional<z.ZodBoolean>;
986
+ }, "strip", z.ZodTypeAny, {
987
+ model: string;
988
+ displayName: string;
989
+ isManual?: boolean | undefined;
990
+ }, {
991
+ model: string;
992
+ displayName: string;
993
+ isManual?: boolean | undefined;
994
+ }>, "many">;
995
+ createdAt: z.ZodString;
996
+ updatedAt: z.ZodNullable<z.ZodString>;
997
+ }, "strip", z.ZodTypeAny, {
998
+ provider: "openai" | "anthropic" | "google" | "azureOpenAi" | "azureEntraId" | "ollama" | "awsBedrock" | "vercelAiGateway" | "xAiGrok" | "groq" | "openRouter" | "deepSeek" | "cohere" | "mistralCloud";
999
+ credentialId: string | null;
1000
+ allowedModels: {
1001
+ model: string;
1002
+ displayName: string;
1003
+ isManual?: boolean | undefined;
1004
+ }[];
1005
+ createdAt: string;
1006
+ updatedAt: string | null;
1007
+ enabled?: boolean | undefined;
1008
+ }, {
1009
+ provider: "openai" | "anthropic" | "google" | "azureOpenAi" | "azureEntraId" | "ollama" | "awsBedrock" | "vercelAiGateway" | "xAiGrok" | "groq" | "openRouter" | "deepSeek" | "cohere" | "mistralCloud";
1010
+ credentialId: string | null;
1011
+ allowedModels: {
1012
+ model: string;
1013
+ displayName: string;
1014
+ isManual?: boolean | undefined;
1015
+ }[];
1016
+ createdAt: string;
1017
+ updatedAt: string | null;
1018
+ enabled?: boolean | undefined;
1019
+ }>;
1020
+ export type ChatProviderSettingsDto = z.infer<typeof chatProviderSettingsSchema>;
1021
+ declare const UpdateChatSettingsRequest_base: Z.Class<{
1022
+ payload: z.ZodObject<{
1023
+ provider: z.ZodEnum<["openai", "anthropic", "google", "azureOpenAi", "azureEntraId", "ollama", "awsBedrock", "vercelAiGateway", "xAiGrok", "groq", "openRouter", "deepSeek", "cohere", "mistralCloud"]>;
1024
+ enabled: z.ZodOptional<z.ZodBoolean>;
1025
+ credentialId: z.ZodNullable<z.ZodString>;
1026
+ allowedModels: z.ZodArray<z.ZodObject<{
1027
+ displayName: z.ZodString;
1028
+ model: z.ZodString;
1029
+ isManual: z.ZodOptional<z.ZodBoolean>;
1030
+ }, "strip", z.ZodTypeAny, {
1031
+ model: string;
1032
+ displayName: string;
1033
+ isManual?: boolean | undefined;
1034
+ }, {
1035
+ model: string;
1036
+ displayName: string;
1037
+ isManual?: boolean | undefined;
1038
+ }>, "many">;
1039
+ createdAt: z.ZodString;
1040
+ updatedAt: z.ZodNullable<z.ZodString>;
1041
+ }, "strip", z.ZodTypeAny, {
1042
+ provider: "openai" | "anthropic" | "google" | "azureOpenAi" | "azureEntraId" | "ollama" | "awsBedrock" | "vercelAiGateway" | "xAiGrok" | "groq" | "openRouter" | "deepSeek" | "cohere" | "mistralCloud";
1043
+ credentialId: string | null;
1044
+ allowedModels: {
1045
+ model: string;
1046
+ displayName: string;
1047
+ isManual?: boolean | undefined;
1048
+ }[];
1049
+ createdAt: string;
1050
+ updatedAt: string | null;
1051
+ enabled?: boolean | undefined;
1052
+ }, {
1053
+ provider: "openai" | "anthropic" | "google" | "azureOpenAi" | "azureEntraId" | "ollama" | "awsBedrock" | "vercelAiGateway" | "xAiGrok" | "groq" | "openRouter" | "deepSeek" | "cohere" | "mistralCloud";
1054
+ credentialId: string | null;
1055
+ allowedModels: {
1056
+ model: string;
1057
+ displayName: string;
1058
+ isManual?: boolean | undefined;
1059
+ }[];
1060
+ createdAt: string;
1061
+ updatedAt: string | null;
1062
+ enabled?: boolean | undefined;
1063
+ }>;
1064
+ }>;
1065
+ export declare class UpdateChatSettingsRequest extends UpdateChatSettingsRequest_base {
1066
+ }
419
1067
  export {};