librechat-data-provider 0.8.402 → 0.8.403

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.
Files changed (103) hide show
  1. package/dist/types/accessPermissions.d.ts +744 -0
  2. package/dist/types/actions.d.ts +118 -0
  3. package/dist/types/api-endpoints.d.ts +149 -0
  4. package/dist/types/artifacts.d.ts +97 -0
  5. package/dist/types/azure.d.ts +22 -0
  6. package/dist/types/bedrock.d.ts +1220 -0
  7. package/dist/types/config.d.ts +13916 -0
  8. package/dist/types/config.spec.d.ts +1 -0
  9. package/dist/types/createPayload.d.ts +5 -0
  10. package/dist/types/data-service.d.ts +284 -0
  11. package/dist/types/feedback.d.ts +36 -0
  12. package/dist/types/file-config.d.ts +263 -0
  13. package/dist/types/file-config.spec.d.ts +1 -0
  14. package/dist/types/generate.d.ts +597 -0
  15. package/dist/types/headers-helpers.d.ts +2 -0
  16. package/{src/index.ts → dist/types/index.d.ts} +0 -15
  17. package/dist/types/keys.d.ts +92 -0
  18. package/dist/types/mcp.d.ts +2760 -0
  19. package/dist/types/messages.d.ts +10 -0
  20. package/dist/types/models.d.ts +1677 -0
  21. package/dist/types/parameterSettings.d.ts +69 -0
  22. package/dist/types/parsers.d.ts +110 -0
  23. package/dist/types/permissions.d.ts +522 -0
  24. package/dist/types/react-query/react-query-service.d.ts +85 -0
  25. package/dist/types/request.d.ts +25 -0
  26. package/dist/types/roles.d.ts +554 -0
  27. package/dist/types/roles.spec.d.ts +1 -0
  28. package/dist/types/schemas.d.ts +4815 -0
  29. package/dist/types/schemas.spec.d.ts +1 -0
  30. package/dist/types/types/agents.d.ts +433 -0
  31. package/dist/types/types/assistants.d.ts +547 -0
  32. package/dist/types/types/files.d.ts +172 -0
  33. package/dist/types/types/graph.d.ts +135 -0
  34. package/{src/types/mcpServers.ts → dist/types/types/mcpServers.d.ts} +12 -18
  35. package/dist/types/types/mutations.d.ts +209 -0
  36. package/dist/types/types/queries.d.ts +169 -0
  37. package/dist/types/types/runs.d.ts +36 -0
  38. package/dist/types/types/web.d.ts +520 -0
  39. package/dist/types/types.d.ts +503 -0
  40. package/dist/types/utils.d.ts +12 -0
  41. package/package.json +4 -1
  42. package/babel.config.js +0 -4
  43. package/check_updates.sh +0 -52
  44. package/jest.config.js +0 -19
  45. package/react-query/package-lock.json +0 -292
  46. package/react-query/package.json +0 -10
  47. package/rollup.config.js +0 -74
  48. package/server-rollup.config.js +0 -40
  49. package/specs/actions.spec.ts +0 -2533
  50. package/specs/api-endpoints-subdir.spec.ts +0 -140
  51. package/specs/api-endpoints.spec.ts +0 -74
  52. package/specs/azure.spec.ts +0 -844
  53. package/specs/bedrock.spec.ts +0 -862
  54. package/specs/filetypes.spec.ts +0 -175
  55. package/specs/generate.spec.ts +0 -770
  56. package/specs/headers-helpers.spec.ts +0 -24
  57. package/specs/mcp.spec.ts +0 -147
  58. package/specs/openapiSpecs.ts +0 -524
  59. package/specs/parsers.spec.ts +0 -601
  60. package/specs/request-interceptor.spec.ts +0 -304
  61. package/specs/utils.spec.ts +0 -196
  62. package/src/accessPermissions.ts +0 -346
  63. package/src/actions.ts +0 -813
  64. package/src/api-endpoints.ts +0 -440
  65. package/src/artifacts.ts +0 -3104
  66. package/src/azure.ts +0 -328
  67. package/src/bedrock.ts +0 -425
  68. package/src/config.spec.ts +0 -315
  69. package/src/config.ts +0 -2006
  70. package/src/createPayload.ts +0 -46
  71. package/src/data-service.ts +0 -1087
  72. package/src/feedback.ts +0 -141
  73. package/src/file-config.spec.ts +0 -1248
  74. package/src/file-config.ts +0 -764
  75. package/src/generate.ts +0 -634
  76. package/src/headers-helpers.ts +0 -13
  77. package/src/keys.ts +0 -99
  78. package/src/mcp.ts +0 -271
  79. package/src/messages.ts +0 -50
  80. package/src/models.ts +0 -69
  81. package/src/parameterSettings.ts +0 -1111
  82. package/src/parsers.ts +0 -563
  83. package/src/permissions.ts +0 -188
  84. package/src/react-query/react-query-service.ts +0 -566
  85. package/src/request.ts +0 -171
  86. package/src/roles.spec.ts +0 -132
  87. package/src/roles.ts +0 -225
  88. package/src/schemas.spec.ts +0 -355
  89. package/src/schemas.ts +0 -1234
  90. package/src/types/agents.ts +0 -470
  91. package/src/types/assistants.ts +0 -654
  92. package/src/types/files.ts +0 -191
  93. package/src/types/graph.ts +0 -145
  94. package/src/types/mutations.ts +0 -422
  95. package/src/types/queries.ts +0 -208
  96. package/src/types/runs.ts +0 -40
  97. package/src/types/web.ts +0 -588
  98. package/src/types.ts +0 -676
  99. package/src/utils.ts +0 -85
  100. package/tsconfig.json +0 -28
  101. package/tsconfig.spec.json +0 -10
  102. /package/{src/react-query/index.ts → dist/types/react-query/index.d.ts} +0 -0
  103. /package/{src/types/index.ts → dist/types/types/index.d.ts} +0 -0
@@ -0,0 +1,4815 @@
1
+ import { z } from 'zod';
2
+ import { Tools } from './types/assistants';
3
+ import type { TMessageContentParts, FunctionTool, FunctionToolCall } from './types/assistants';
4
+ import { TFeedback } from './feedback';
5
+ import type { SearchResultData } from './types/web';
6
+ import type { TFile } from './types/files';
7
+ export declare const isUUID: z.ZodString;
8
+ export declare enum AuthType {
9
+ OVERRIDE_AUTH = "override_auth",
10
+ USER_PROVIDED = "user_provided",
11
+ SYSTEM_DEFINED = "system_defined"
12
+ }
13
+ export declare const authTypeSchema: z.ZodNativeEnum<typeof AuthType>;
14
+ export declare enum EModelEndpoint {
15
+ azureOpenAI = "azureOpenAI",
16
+ openAI = "openAI",
17
+ google = "google",
18
+ anthropic = "anthropic",
19
+ assistants = "assistants",
20
+ azureAssistants = "azureAssistants",
21
+ agents = "agents",
22
+ custom = "custom",
23
+ bedrock = "bedrock"
24
+ }
25
+ /** Mirrors `@librechat/agents` providers */
26
+ export declare enum Providers {
27
+ OPENAI = "openAI",
28
+ ANTHROPIC = "anthropic",
29
+ AZURE = "azureOpenAI",
30
+ GOOGLE = "google",
31
+ VERTEXAI = "vertexai",
32
+ BEDROCK = "bedrock",
33
+ MISTRALAI = "mistralai",
34
+ MISTRAL = "mistral",
35
+ DEEPSEEK = "deepseek",
36
+ MOONSHOT = "moonshot",
37
+ OPENROUTER = "openrouter",
38
+ XAI = "xai"
39
+ }
40
+ /**
41
+ * Endpoints that support direct PDF processing in the agent system
42
+ */
43
+ export declare const documentSupportedProviders: Set<string>;
44
+ export declare const isOpenAILikeProvider: (provider?: string | null) => boolean;
45
+ export declare const isDocumentSupportedProvider: (provider?: string | null) => boolean;
46
+ export declare const paramEndpoints: Set<string>;
47
+ export declare enum BedrockProviders {
48
+ AI21 = "ai21",
49
+ Amazon = "amazon",
50
+ Anthropic = "anthropic",
51
+ Cohere = "cohere",
52
+ DeepSeek = "deepseek",
53
+ Meta = "meta",
54
+ MistralAI = "mistral",
55
+ Moonshot = "moonshot",
56
+ MoonshotAI = "moonshotai",
57
+ OpenAI = "openai",
58
+ StabilityAI = "stability",
59
+ ZAI = "zai"
60
+ }
61
+ export declare const getModelKey: (endpoint: EModelEndpoint | string, model: string) => string;
62
+ export declare const getSettingsKeys: (endpoint: EModelEndpoint | string, model: string) => string[];
63
+ export type AssistantsEndpoint = EModelEndpoint.assistants | EModelEndpoint.azureAssistants;
64
+ export declare const isAssistantsEndpoint: (_endpoint?: AssistantsEndpoint | null | string) => boolean;
65
+ export type AgentProvider = Exclude<keyof typeof EModelEndpoint, EModelEndpoint.agents> | string;
66
+ export declare const isAgentsEndpoint: (_endpoint?: EModelEndpoint.agents | null | string) => boolean;
67
+ export declare const isParamEndpoint: (endpoint: EModelEndpoint | string, endpointType?: EModelEndpoint | string) => boolean;
68
+ export declare enum ImageDetail {
69
+ low = "low",
70
+ auto = "auto",
71
+ high = "high"
72
+ }
73
+ export declare enum ReasoningEffort {
74
+ unset = "",
75
+ none = "none",
76
+ minimal = "minimal",
77
+ low = "low",
78
+ medium = "medium",
79
+ high = "high",
80
+ xhigh = "xhigh"
81
+ }
82
+ export declare enum AnthropicEffort {
83
+ unset = "",
84
+ low = "low",
85
+ medium = "medium",
86
+ high = "high",
87
+ max = "max"
88
+ }
89
+ export declare enum BedrockReasoningConfig {
90
+ low = "low",
91
+ medium = "medium",
92
+ high = "high"
93
+ }
94
+ export declare enum ReasoningSummary {
95
+ none = "",
96
+ auto = "auto",
97
+ concise = "concise",
98
+ detailed = "detailed"
99
+ }
100
+ export declare enum Verbosity {
101
+ none = "",
102
+ low = "low",
103
+ medium = "medium",
104
+ high = "high"
105
+ }
106
+ export declare enum ThinkingLevel {
107
+ unset = "",
108
+ minimal = "minimal",
109
+ low = "low",
110
+ medium = "medium",
111
+ high = "high"
112
+ }
113
+ export declare const imageDetailNumeric: {
114
+ low: number;
115
+ auto: number;
116
+ high: number;
117
+ };
118
+ export declare const imageDetailValue: {
119
+ 0: ImageDetail;
120
+ 1: ImageDetail;
121
+ 2: ImageDetail;
122
+ };
123
+ export declare const eImageDetailSchema: z.ZodNativeEnum<typeof ImageDetail>;
124
+ export declare const eReasoningEffortSchema: z.ZodNativeEnum<typeof ReasoningEffort>;
125
+ export declare const eAnthropicEffortSchema: z.ZodNativeEnum<typeof AnthropicEffort>;
126
+ export declare const eReasoningSummarySchema: z.ZodNativeEnum<typeof ReasoningSummary>;
127
+ export declare const eVerbositySchema: z.ZodNativeEnum<typeof Verbosity>;
128
+ export declare const eThinkingLevelSchema: z.ZodNativeEnum<typeof ThinkingLevel>;
129
+ export declare const defaultAssistantFormValues: {
130
+ assistant: string;
131
+ id: string;
132
+ name: string;
133
+ description: string;
134
+ instructions: string;
135
+ conversation_starters: never[];
136
+ model: string;
137
+ functions: never[];
138
+ code_interpreter: boolean;
139
+ image_vision: boolean;
140
+ retrieval: boolean;
141
+ append_current_datetime: boolean;
142
+ };
143
+ export declare const defaultAgentFormValues: {
144
+ agent: {};
145
+ id: string;
146
+ name: string;
147
+ description: string;
148
+ instructions: string;
149
+ model: string;
150
+ model_parameters: {};
151
+ tools: never[];
152
+ tool_options: {};
153
+ provider: {};
154
+ edges: never[];
155
+ artifacts: string;
156
+ recursion_limit: undefined;
157
+ execute_code: boolean;
158
+ file_search: boolean;
159
+ web_search: boolean;
160
+ category: string;
161
+ support_contact: {
162
+ name: string;
163
+ email: string;
164
+ };
165
+ };
166
+ export declare const ImageVisionTool: FunctionTool;
167
+ export declare const isImageVisionTool: (tool: FunctionTool | FunctionToolCall) => boolean;
168
+ export declare const openAISettings: {
169
+ model: {
170
+ default: "gpt-4o-mini";
171
+ };
172
+ temperature: {
173
+ min: 0;
174
+ max: 2;
175
+ step: 0.01;
176
+ default: 1;
177
+ };
178
+ top_p: {
179
+ min: 0;
180
+ max: 1;
181
+ step: 0.01;
182
+ default: 1;
183
+ };
184
+ presence_penalty: {
185
+ min: -2;
186
+ max: 2;
187
+ step: 0.01;
188
+ default: 0;
189
+ };
190
+ frequency_penalty: {
191
+ min: -2;
192
+ max: 2;
193
+ step: 0.01;
194
+ default: 0;
195
+ };
196
+ resendFiles: {
197
+ default: true;
198
+ };
199
+ maxContextTokens: {
200
+ default: undefined;
201
+ };
202
+ max_tokens: {
203
+ default: undefined;
204
+ };
205
+ imageDetail: {
206
+ default: ImageDetail.auto;
207
+ min: 0;
208
+ max: 2;
209
+ step: 1;
210
+ };
211
+ };
212
+ export declare const googleSettings: {
213
+ model: {
214
+ default: "gemini-1.5-flash-latest";
215
+ };
216
+ maxOutputTokens: {
217
+ min: 1;
218
+ max: 64000;
219
+ step: 1;
220
+ default: 8192;
221
+ };
222
+ temperature: {
223
+ min: 0;
224
+ max: 2;
225
+ step: 0.01;
226
+ default: 1;
227
+ };
228
+ topP: {
229
+ min: 0;
230
+ max: 1;
231
+ step: 0.01;
232
+ default: 0.95;
233
+ };
234
+ topK: {
235
+ min: 1;
236
+ max: 40;
237
+ step: 1;
238
+ default: 40;
239
+ };
240
+ thinking: {
241
+ default: true;
242
+ };
243
+ thinkingBudget: {
244
+ min: -1;
245
+ max: 32000;
246
+ step: 1;
247
+ /** `-1` = Dynamic Thinking, meaning the model will adjust
248
+ * the budget based on the complexity of the request.
249
+ */
250
+ default: -1;
251
+ };
252
+ thinkingLevel: {
253
+ default: ThinkingLevel.unset;
254
+ };
255
+ };
256
+ export declare const anthropicSettings: {
257
+ model: {
258
+ default: "claude-3-5-sonnet-latest";
259
+ };
260
+ temperature: {
261
+ min: 0;
262
+ max: 1;
263
+ step: 0.01;
264
+ default: 1;
265
+ };
266
+ promptCache: {
267
+ default: true;
268
+ };
269
+ thinking: {
270
+ default: true;
271
+ };
272
+ thinkingBudget: {
273
+ min: 1024;
274
+ step: 100;
275
+ max: 200000;
276
+ default: 2000;
277
+ };
278
+ maxOutputTokens: {
279
+ min: 1;
280
+ max: 128000;
281
+ step: 1;
282
+ default: 8192;
283
+ reset: (modelName: string) => 64000 | 8192 | 32000 | 128000;
284
+ set: (value: number, modelName: string) => number;
285
+ };
286
+ topP: {
287
+ min: 0;
288
+ max: 1;
289
+ step: 0.01;
290
+ default: 0.7;
291
+ };
292
+ topK: {
293
+ min: 1;
294
+ max: 40;
295
+ step: 1;
296
+ default: 5;
297
+ };
298
+ resendFiles: {
299
+ default: true;
300
+ };
301
+ maxContextTokens: {
302
+ default: undefined;
303
+ };
304
+ legacy: {
305
+ maxOutputTokens: {
306
+ min: 1;
307
+ max: 4096;
308
+ step: 1;
309
+ default: 4096;
310
+ };
311
+ };
312
+ effort: {
313
+ default: AnthropicEffort;
314
+ options: AnthropicEffort[];
315
+ };
316
+ web_search: {
317
+ default: false;
318
+ };
319
+ };
320
+ export declare const agentsSettings: {
321
+ model: {
322
+ default: "gpt-3.5-turbo-test";
323
+ };
324
+ temperature: {
325
+ min: 0;
326
+ max: 1;
327
+ step: 0.01;
328
+ default: 1;
329
+ };
330
+ top_p: {
331
+ min: 0;
332
+ max: 1;
333
+ step: 0.01;
334
+ default: 1;
335
+ };
336
+ presence_penalty: {
337
+ min: -2;
338
+ max: 2;
339
+ step: 0.01;
340
+ default: 0;
341
+ };
342
+ frequency_penalty: {
343
+ min: -2;
344
+ max: 2;
345
+ step: 0.01;
346
+ default: 0;
347
+ };
348
+ resendFiles: {
349
+ default: true;
350
+ };
351
+ maxContextTokens: {
352
+ default: undefined;
353
+ };
354
+ max_tokens: {
355
+ default: undefined;
356
+ };
357
+ imageDetail: {
358
+ default: ImageDetail.auto;
359
+ };
360
+ };
361
+ export declare const endpointSettings: {
362
+ openAI: {
363
+ model: {
364
+ default: "gpt-4o-mini";
365
+ };
366
+ temperature: {
367
+ min: 0;
368
+ max: 2;
369
+ step: 0.01;
370
+ default: 1;
371
+ };
372
+ top_p: {
373
+ min: 0;
374
+ max: 1;
375
+ step: 0.01;
376
+ default: 1;
377
+ };
378
+ presence_penalty: {
379
+ min: -2;
380
+ max: 2;
381
+ step: 0.01;
382
+ default: 0;
383
+ };
384
+ frequency_penalty: {
385
+ min: -2;
386
+ max: 2;
387
+ step: 0.01;
388
+ default: 0;
389
+ };
390
+ resendFiles: {
391
+ default: true;
392
+ };
393
+ maxContextTokens: {
394
+ default: undefined;
395
+ };
396
+ max_tokens: {
397
+ default: undefined;
398
+ };
399
+ imageDetail: {
400
+ default: ImageDetail.auto;
401
+ min: 0;
402
+ max: 2;
403
+ step: 1;
404
+ };
405
+ };
406
+ google: {
407
+ model: {
408
+ default: "gemini-1.5-flash-latest";
409
+ };
410
+ maxOutputTokens: {
411
+ min: 1;
412
+ max: 64000;
413
+ step: 1;
414
+ default: 8192;
415
+ };
416
+ temperature: {
417
+ min: 0;
418
+ max: 2;
419
+ step: 0.01;
420
+ default: 1;
421
+ };
422
+ topP: {
423
+ min: 0;
424
+ max: 1;
425
+ step: 0.01;
426
+ default: 0.95;
427
+ };
428
+ topK: {
429
+ min: 1;
430
+ max: 40;
431
+ step: 1;
432
+ default: 40;
433
+ };
434
+ thinking: {
435
+ default: true;
436
+ };
437
+ thinkingBudget: {
438
+ min: -1;
439
+ max: 32000;
440
+ step: 1;
441
+ /** `-1` = Dynamic Thinking, meaning the model will adjust
442
+ * the budget based on the complexity of the request.
443
+ */
444
+ default: -1;
445
+ };
446
+ thinkingLevel: {
447
+ default: ThinkingLevel.unset;
448
+ };
449
+ };
450
+ anthropic: {
451
+ model: {
452
+ default: "claude-3-5-sonnet-latest";
453
+ };
454
+ temperature: {
455
+ min: 0;
456
+ max: 1;
457
+ step: 0.01;
458
+ default: 1;
459
+ };
460
+ promptCache: {
461
+ default: true;
462
+ };
463
+ thinking: {
464
+ default: true;
465
+ };
466
+ thinkingBudget: {
467
+ min: 1024;
468
+ step: 100;
469
+ max: 200000;
470
+ default: 2000;
471
+ };
472
+ maxOutputTokens: {
473
+ min: 1;
474
+ max: 128000;
475
+ step: 1;
476
+ default: 8192;
477
+ reset: (modelName: string) => 64000 | 8192 | 32000 | 128000;
478
+ set: (value: number, modelName: string) => number;
479
+ };
480
+ topP: {
481
+ min: 0;
482
+ max: 1;
483
+ step: 0.01;
484
+ default: 0.7;
485
+ };
486
+ topK: {
487
+ min: 1;
488
+ max: 40;
489
+ step: 1;
490
+ default: 5;
491
+ };
492
+ resendFiles: {
493
+ default: true;
494
+ };
495
+ maxContextTokens: {
496
+ default: undefined;
497
+ };
498
+ legacy: {
499
+ maxOutputTokens: {
500
+ min: 1;
501
+ max: 4096;
502
+ step: 1;
503
+ default: 4096;
504
+ };
505
+ };
506
+ effort: {
507
+ default: AnthropicEffort;
508
+ options: AnthropicEffort[];
509
+ };
510
+ web_search: {
511
+ default: false;
512
+ };
513
+ };
514
+ agents: {
515
+ model: {
516
+ default: "gpt-3.5-turbo-test";
517
+ };
518
+ temperature: {
519
+ min: 0;
520
+ max: 1;
521
+ step: 0.01;
522
+ default: 1;
523
+ };
524
+ top_p: {
525
+ min: 0;
526
+ max: 1;
527
+ step: 0.01;
528
+ default: 1;
529
+ };
530
+ presence_penalty: {
531
+ min: -2;
532
+ max: 2;
533
+ step: 0.01;
534
+ default: 0;
535
+ };
536
+ frequency_penalty: {
537
+ min: -2;
538
+ max: 2;
539
+ step: 0.01;
540
+ default: 0;
541
+ };
542
+ resendFiles: {
543
+ default: true;
544
+ };
545
+ maxContextTokens: {
546
+ default: undefined;
547
+ };
548
+ max_tokens: {
549
+ default: undefined;
550
+ };
551
+ imageDetail: {
552
+ default: ImageDetail.auto;
553
+ };
554
+ };
555
+ bedrock: {
556
+ model: {
557
+ default: "gpt-3.5-turbo-test";
558
+ };
559
+ temperature: {
560
+ min: 0;
561
+ max: 1;
562
+ step: 0.01;
563
+ default: 1;
564
+ };
565
+ top_p: {
566
+ min: 0;
567
+ max: 1;
568
+ step: 0.01;
569
+ default: 1;
570
+ };
571
+ presence_penalty: {
572
+ min: -2;
573
+ max: 2;
574
+ step: 0.01;
575
+ default: 0;
576
+ };
577
+ frequency_penalty: {
578
+ min: -2;
579
+ max: 2;
580
+ step: 0.01;
581
+ default: 0;
582
+ };
583
+ resendFiles: {
584
+ default: true;
585
+ };
586
+ maxContextTokens: {
587
+ default: undefined;
588
+ };
589
+ max_tokens: {
590
+ default: undefined;
591
+ };
592
+ imageDetail: {
593
+ default: ImageDetail.auto;
594
+ };
595
+ };
596
+ };
597
+ export declare const eModelEndpointSchema: z.ZodNativeEnum<typeof EModelEndpoint>;
598
+ export declare const extendedModelEndpointSchema: z.ZodUnion<[z.ZodNativeEnum<typeof EModelEndpoint>, z.ZodString]>;
599
+ export declare const tPluginAuthConfigSchema: z.ZodObject<{
600
+ authField: z.ZodString;
601
+ label: z.ZodString;
602
+ description: z.ZodString;
603
+ optional: z.ZodOptional<z.ZodBoolean>;
604
+ }, "strip", z.ZodTypeAny, {
605
+ description: string;
606
+ authField: string;
607
+ label: string;
608
+ optional?: boolean | undefined;
609
+ }, {
610
+ description: string;
611
+ authField: string;
612
+ label: string;
613
+ optional?: boolean | undefined;
614
+ }>;
615
+ export type TPluginAuthConfig = z.infer<typeof tPluginAuthConfigSchema>;
616
+ export declare const tPluginSchema: z.ZodObject<{
617
+ name: z.ZodString;
618
+ pluginKey: z.ZodString;
619
+ description: z.ZodOptional<z.ZodString>;
620
+ icon: z.ZodOptional<z.ZodString>;
621
+ authConfig: z.ZodOptional<z.ZodArray<z.ZodObject<{
622
+ authField: z.ZodString;
623
+ label: z.ZodString;
624
+ description: z.ZodString;
625
+ optional: z.ZodOptional<z.ZodBoolean>;
626
+ }, "strip", z.ZodTypeAny, {
627
+ description: string;
628
+ authField: string;
629
+ label: string;
630
+ optional?: boolean | undefined;
631
+ }, {
632
+ description: string;
633
+ authField: string;
634
+ label: string;
635
+ optional?: boolean | undefined;
636
+ }>, "many">>;
637
+ authenticated: z.ZodOptional<z.ZodBoolean>;
638
+ chatMenu: z.ZodOptional<z.ZodBoolean>;
639
+ isButton: z.ZodOptional<z.ZodBoolean>;
640
+ toolkit: z.ZodOptional<z.ZodBoolean>;
641
+ }, "strip", z.ZodTypeAny, {
642
+ name: string;
643
+ pluginKey: string;
644
+ description?: string | undefined;
645
+ icon?: string | undefined;
646
+ authConfig?: {
647
+ description: string;
648
+ authField: string;
649
+ label: string;
650
+ optional?: boolean | undefined;
651
+ }[] | undefined;
652
+ authenticated?: boolean | undefined;
653
+ chatMenu?: boolean | undefined;
654
+ isButton?: boolean | undefined;
655
+ toolkit?: boolean | undefined;
656
+ }, {
657
+ name: string;
658
+ pluginKey: string;
659
+ description?: string | undefined;
660
+ icon?: string | undefined;
661
+ authConfig?: {
662
+ description: string;
663
+ authField: string;
664
+ label: string;
665
+ optional?: boolean | undefined;
666
+ }[] | undefined;
667
+ authenticated?: boolean | undefined;
668
+ chatMenu?: boolean | undefined;
669
+ isButton?: boolean | undefined;
670
+ toolkit?: boolean | undefined;
671
+ }>;
672
+ export type TPlugin = z.infer<typeof tPluginSchema>;
673
+ export type TInput = {
674
+ inputStr: string;
675
+ };
676
+ export declare const tExampleSchema: z.ZodObject<{
677
+ input: z.ZodObject<{
678
+ content: z.ZodString;
679
+ }, "strip", z.ZodTypeAny, {
680
+ content: string;
681
+ }, {
682
+ content: string;
683
+ }>;
684
+ output: z.ZodObject<{
685
+ content: z.ZodString;
686
+ }, "strip", z.ZodTypeAny, {
687
+ content: string;
688
+ }, {
689
+ content: string;
690
+ }>;
691
+ }, "strip", z.ZodTypeAny, {
692
+ input: {
693
+ content: string;
694
+ };
695
+ output: {
696
+ content: string;
697
+ };
698
+ }, {
699
+ input: {
700
+ content: string;
701
+ };
702
+ output: {
703
+ content: string;
704
+ };
705
+ }>;
706
+ export type TExample = z.infer<typeof tExampleSchema>;
707
+ export declare const tMessageSchema: z.ZodObject<{
708
+ messageId: z.ZodString;
709
+ endpoint: z.ZodOptional<z.ZodString>;
710
+ clientId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
711
+ conversationId: z.ZodNullable<z.ZodString>;
712
+ parentMessageId: z.ZodNullable<z.ZodString>;
713
+ responseMessageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
714
+ overrideParentMessageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
715
+ bg: z.ZodOptional<z.ZodNullable<z.ZodString>>;
716
+ model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
717
+ title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
718
+ sender: z.ZodOptional<z.ZodString>;
719
+ text: z.ZodString;
720
+ /** @deprecated */
721
+ generation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
722
+ isCreatedByUser: z.ZodBoolean;
723
+ error: z.ZodOptional<z.ZodBoolean>;
724
+ clientTimestamp: z.ZodOptional<z.ZodString>;
725
+ createdAt: z.ZodDefault<z.ZodOptional<z.ZodString>>;
726
+ updatedAt: z.ZodDefault<z.ZodOptional<z.ZodString>>;
727
+ current: z.ZodOptional<z.ZodBoolean>;
728
+ unfinished: z.ZodOptional<z.ZodBoolean>;
729
+ searchResult: z.ZodOptional<z.ZodBoolean>;
730
+ finish_reason: z.ZodOptional<z.ZodString>;
731
+ thread_id: z.ZodOptional<z.ZodString>;
732
+ iconURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
733
+ feedback: z.ZodOptional<z.ZodObject<{
734
+ rating: z.ZodEnum<["thumbsUp", "thumbsDown"]>;
735
+ tag: z.ZodEnum<["not_matched", "inaccurate", "bad_style", "missing_image", "unjustified_refusal", "not_helpful", "other", "accurate_reliable", "creative_solution", "clear_well_written", "attention_to_detail"]>;
736
+ text: z.ZodOptional<z.ZodString>;
737
+ }, "strip", z.ZodTypeAny, {
738
+ rating: "thumbsUp" | "thumbsDown";
739
+ tag: "not_matched" | "inaccurate" | "bad_style" | "missing_image" | "unjustified_refusal" | "not_helpful" | "other" | "accurate_reliable" | "creative_solution" | "clear_well_written" | "attention_to_detail";
740
+ text?: string | undefined;
741
+ }, {
742
+ rating: "thumbsUp" | "thumbsDown";
743
+ tag: "not_matched" | "inaccurate" | "bad_style" | "missing_image" | "unjustified_refusal" | "not_helpful" | "other" | "accurate_reliable" | "creative_solution" | "clear_well_written" | "attention_to_detail";
744
+ text?: string | undefined;
745
+ }>>;
746
+ /** metadata */
747
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
748
+ contextMeta: z.ZodOptional<z.ZodObject<{
749
+ calibrationRatio: z.ZodOptional<z.ZodNumber>;
750
+ encoding: z.ZodOptional<z.ZodString>;
751
+ }, "strip", z.ZodTypeAny, {
752
+ calibrationRatio?: number | undefined;
753
+ encoding?: string | undefined;
754
+ }, {
755
+ calibrationRatio?: number | undefined;
756
+ encoding?: string | undefined;
757
+ }>>;
758
+ }, "strip", z.ZodTypeAny, {
759
+ messageId: string;
760
+ conversationId: string | null;
761
+ parentMessageId: string | null;
762
+ title: string | null;
763
+ text: string;
764
+ isCreatedByUser: boolean;
765
+ createdAt: string;
766
+ updatedAt: string;
767
+ endpoint?: string | undefined;
768
+ clientId?: string | null | undefined;
769
+ responseMessageId?: string | null | undefined;
770
+ overrideParentMessageId?: string | null | undefined;
771
+ bg?: string | null | undefined;
772
+ model?: string | null | undefined;
773
+ sender?: string | undefined;
774
+ generation?: string | null | undefined;
775
+ error?: boolean | undefined;
776
+ clientTimestamp?: string | undefined;
777
+ current?: boolean | undefined;
778
+ unfinished?: boolean | undefined;
779
+ searchResult?: boolean | undefined;
780
+ finish_reason?: string | undefined;
781
+ thread_id?: string | undefined;
782
+ iconURL?: string | null | undefined;
783
+ feedback?: {
784
+ rating: "thumbsUp" | "thumbsDown";
785
+ tag: "not_matched" | "inaccurate" | "bad_style" | "missing_image" | "unjustified_refusal" | "not_helpful" | "other" | "accurate_reliable" | "creative_solution" | "clear_well_written" | "attention_to_detail";
786
+ text?: string | undefined;
787
+ } | undefined;
788
+ metadata?: Record<string, unknown> | undefined;
789
+ contextMeta?: {
790
+ calibrationRatio?: number | undefined;
791
+ encoding?: string | undefined;
792
+ } | undefined;
793
+ }, {
794
+ messageId: string;
795
+ conversationId: string | null;
796
+ parentMessageId: string | null;
797
+ text: string;
798
+ isCreatedByUser: boolean;
799
+ endpoint?: string | undefined;
800
+ clientId?: string | null | undefined;
801
+ responseMessageId?: string | null | undefined;
802
+ overrideParentMessageId?: string | null | undefined;
803
+ bg?: string | null | undefined;
804
+ model?: string | null | undefined;
805
+ title?: string | null | undefined;
806
+ sender?: string | undefined;
807
+ generation?: string | null | undefined;
808
+ error?: boolean | undefined;
809
+ clientTimestamp?: string | undefined;
810
+ createdAt?: string | undefined;
811
+ updatedAt?: string | undefined;
812
+ current?: boolean | undefined;
813
+ unfinished?: boolean | undefined;
814
+ searchResult?: boolean | undefined;
815
+ finish_reason?: string | undefined;
816
+ thread_id?: string | undefined;
817
+ iconURL?: string | null | undefined;
818
+ feedback?: {
819
+ rating: "thumbsUp" | "thumbsDown";
820
+ tag: "not_matched" | "inaccurate" | "bad_style" | "missing_image" | "unjustified_refusal" | "not_helpful" | "other" | "accurate_reliable" | "creative_solution" | "clear_well_written" | "attention_to_detail";
821
+ text?: string | undefined;
822
+ } | undefined;
823
+ metadata?: Record<string, unknown> | undefined;
824
+ contextMeta?: {
825
+ calibrationRatio?: number | undefined;
826
+ encoding?: string | undefined;
827
+ } | undefined;
828
+ }>;
829
+ export type MemoryArtifact = {
830
+ key: string;
831
+ value?: string;
832
+ tokenCount?: number;
833
+ type: 'update' | 'delete' | 'error';
834
+ };
835
+ export type UIResource = {
836
+ resourceId: string;
837
+ uri: string;
838
+ mimeType?: string;
839
+ text?: string;
840
+ [key: string]: unknown;
841
+ };
842
+ export type TAttachmentMetadata = {
843
+ type?: Tools;
844
+ messageId: string;
845
+ toolCallId: string;
846
+ [Tools.memory]?: MemoryArtifact;
847
+ [Tools.ui_resources]?: UIResource[];
848
+ [Tools.web_search]?: SearchResultData;
849
+ [Tools.file_search]?: SearchResultData;
850
+ };
851
+ export type TAttachment = (TFile & TAttachmentMetadata) | (Pick<TFile, 'filename' | 'filepath' | 'conversationId'> & {
852
+ expiresAt: number;
853
+ } & TAttachmentMetadata) | (Partial<Pick<TFile, 'filename' | 'filepath'>> & Pick<TFile, 'conversationId'> & TAttachmentMetadata);
854
+ export type TMessage = z.input<typeof tMessageSchema> & {
855
+ children?: TMessage[];
856
+ content?: TMessageContentParts[];
857
+ files?: Partial<TFile>[];
858
+ depth?: number;
859
+ siblingIndex?: number;
860
+ attachments?: TAttachment[];
861
+ clientTimestamp?: string;
862
+ feedback?: TFeedback;
863
+ };
864
+ export declare const coerceNumber: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>;
865
+ type DocumentTypeValue = null | boolean | number | string | DocumentTypeValue[] | {
866
+ [key: string]: DocumentTypeValue;
867
+ };
868
+ export declare const tConversationSchema: z.ZodObject<{
869
+ conversationId: z.ZodNullable<z.ZodString>;
870
+ endpoint: z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>;
871
+ endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>>;
872
+ isArchived: z.ZodOptional<z.ZodBoolean>;
873
+ title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
874
+ user: z.ZodOptional<z.ZodString>;
875
+ messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
876
+ tools: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodObject<{
877
+ name: z.ZodString;
878
+ pluginKey: z.ZodString;
879
+ description: z.ZodOptional<z.ZodString>;
880
+ icon: z.ZodOptional<z.ZodString>;
881
+ authConfig: z.ZodOptional<z.ZodArray<z.ZodObject<{
882
+ authField: z.ZodString;
883
+ label: z.ZodString;
884
+ description: z.ZodString;
885
+ optional: z.ZodOptional<z.ZodBoolean>;
886
+ }, "strip", z.ZodTypeAny, {
887
+ description: string;
888
+ authField: string;
889
+ label: string;
890
+ optional?: boolean | undefined;
891
+ }, {
892
+ description: string;
893
+ authField: string;
894
+ label: string;
895
+ optional?: boolean | undefined;
896
+ }>, "many">>;
897
+ authenticated: z.ZodOptional<z.ZodBoolean>;
898
+ chatMenu: z.ZodOptional<z.ZodBoolean>;
899
+ isButton: z.ZodOptional<z.ZodBoolean>;
900
+ toolkit: z.ZodOptional<z.ZodBoolean>;
901
+ }, "strip", z.ZodTypeAny, {
902
+ name: string;
903
+ pluginKey: string;
904
+ description?: string | undefined;
905
+ icon?: string | undefined;
906
+ authConfig?: {
907
+ description: string;
908
+ authField: string;
909
+ label: string;
910
+ optional?: boolean | undefined;
911
+ }[] | undefined;
912
+ authenticated?: boolean | undefined;
913
+ chatMenu?: boolean | undefined;
914
+ isButton?: boolean | undefined;
915
+ toolkit?: boolean | undefined;
916
+ }, {
917
+ name: string;
918
+ pluginKey: string;
919
+ description?: string | undefined;
920
+ icon?: string | undefined;
921
+ authConfig?: {
922
+ description: string;
923
+ authField: string;
924
+ label: string;
925
+ optional?: boolean | undefined;
926
+ }[] | undefined;
927
+ authenticated?: boolean | undefined;
928
+ chatMenu?: boolean | undefined;
929
+ isButton?: boolean | undefined;
930
+ toolkit?: boolean | undefined;
931
+ }>, "many">, z.ZodArray<z.ZodString, "many">]>>;
932
+ modelLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
933
+ userLabel: z.ZodOptional<z.ZodString>;
934
+ model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
935
+ promptPrefix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
936
+ temperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
937
+ topP: z.ZodOptional<z.ZodNumber>;
938
+ topK: z.ZodOptional<z.ZodNumber>;
939
+ top_p: z.ZodOptional<z.ZodNumber>;
940
+ frequency_penalty: z.ZodOptional<z.ZodNumber>;
941
+ presence_penalty: z.ZodOptional<z.ZodNumber>;
942
+ parentMessageId: z.ZodOptional<z.ZodString>;
943
+ maxOutputTokens: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>>;
944
+ maxContextTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
945
+ max_tokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
946
+ promptCache: z.ZodOptional<z.ZodBoolean>;
947
+ system: z.ZodOptional<z.ZodString>;
948
+ thinking: z.ZodOptional<z.ZodBoolean>;
949
+ thinkingBudget: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
950
+ thinkingLevel: z.ZodOptional<z.ZodNativeEnum<typeof ThinkingLevel>>;
951
+ stream: z.ZodOptional<z.ZodBoolean>;
952
+ artifacts: z.ZodOptional<z.ZodString>;
953
+ context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
954
+ examples: z.ZodOptional<z.ZodArray<z.ZodObject<{
955
+ input: z.ZodObject<{
956
+ content: z.ZodString;
957
+ }, "strip", z.ZodTypeAny, {
958
+ content: string;
959
+ }, {
960
+ content: string;
961
+ }>;
962
+ output: z.ZodObject<{
963
+ content: z.ZodString;
964
+ }, "strip", z.ZodTypeAny, {
965
+ content: string;
966
+ }, {
967
+ content: string;
968
+ }>;
969
+ }, "strip", z.ZodTypeAny, {
970
+ input: {
971
+ content: string;
972
+ };
973
+ output: {
974
+ content: string;
975
+ };
976
+ }, {
977
+ input: {
978
+ content: string;
979
+ };
980
+ output: {
981
+ content: string;
982
+ };
983
+ }>, "many">>;
984
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
985
+ createdAt: z.ZodString;
986
+ updatedAt: z.ZodString;
987
+ resendFiles: z.ZodOptional<z.ZodBoolean>;
988
+ file_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
989
+ imageDetail: z.ZodOptional<z.ZodNativeEnum<typeof ImageDetail>>;
990
+ reasoning_effort: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof ReasoningEffort>>>;
991
+ reasoning_summary: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof ReasoningSummary>>>;
992
+ verbosity: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof Verbosity>>>;
993
+ useResponsesApi: z.ZodOptional<z.ZodBoolean>;
994
+ effort: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof AnthropicEffort>>>;
995
+ web_search: z.ZodOptional<z.ZodBoolean>;
996
+ disableStreaming: z.ZodOptional<z.ZodBoolean>;
997
+ assistant_id: z.ZodOptional<z.ZodString>;
998
+ agent_id: z.ZodOptional<z.ZodString>;
999
+ region: z.ZodOptional<z.ZodString>;
1000
+ maxTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
1001
+ additionalModelRequestFields: z.ZodOptional<z.ZodType<DocumentTypeValue, z.ZodTypeDef, DocumentTypeValue>>;
1002
+ instructions: z.ZodOptional<z.ZodString>;
1003
+ additional_instructions: z.ZodOptional<z.ZodString>;
1004
+ append_current_datetime: z.ZodOptional<z.ZodBoolean>;
1005
+ /** Used to overwrite active conversation settings when saving a Preset */
1006
+ presetOverride: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1007
+ stop: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1008
+ greeting: z.ZodOptional<z.ZodString>;
1009
+ spec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1010
+ iconURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1011
+ expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1012
+ fileTokenLimit: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
1013
+ /** @deprecated */
1014
+ resendImages: z.ZodOptional<z.ZodBoolean>;
1015
+ /** @deprecated Prefer `modelLabel` over `chatGptLabel` */
1016
+ chatGptLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1017
+ }, "strip", z.ZodTypeAny, {
1018
+ endpoint: EModelEndpoint | null;
1019
+ conversationId: string | null;
1020
+ title: string | null;
1021
+ createdAt: string;
1022
+ updatedAt: string;
1023
+ parentMessageId?: string | undefined;
1024
+ model?: string | null | undefined;
1025
+ iconURL?: string | null | undefined;
1026
+ user?: string | undefined;
1027
+ context?: string | null | undefined;
1028
+ endpointType?: EModelEndpoint | null | undefined;
1029
+ isArchived?: boolean | undefined;
1030
+ messages?: string[] | undefined;
1031
+ tools?: string[] | {
1032
+ name: string;
1033
+ pluginKey: string;
1034
+ description?: string | undefined;
1035
+ icon?: string | undefined;
1036
+ authConfig?: {
1037
+ description: string;
1038
+ authField: string;
1039
+ label: string;
1040
+ optional?: boolean | undefined;
1041
+ }[] | undefined;
1042
+ authenticated?: boolean | undefined;
1043
+ chatMenu?: boolean | undefined;
1044
+ isButton?: boolean | undefined;
1045
+ toolkit?: boolean | undefined;
1046
+ }[] | undefined;
1047
+ modelLabel?: string | null | undefined;
1048
+ userLabel?: string | undefined;
1049
+ promptPrefix?: string | null | undefined;
1050
+ temperature?: number | null | undefined;
1051
+ topP?: number | undefined;
1052
+ topK?: number | undefined;
1053
+ top_p?: number | undefined;
1054
+ frequency_penalty?: number | undefined;
1055
+ presence_penalty?: number | undefined;
1056
+ maxOutputTokens?: number | null | undefined;
1057
+ maxContextTokens?: number | undefined;
1058
+ max_tokens?: number | undefined;
1059
+ promptCache?: boolean | undefined;
1060
+ system?: string | undefined;
1061
+ thinking?: boolean | undefined;
1062
+ thinkingBudget?: number | undefined;
1063
+ thinkingLevel?: ThinkingLevel | undefined;
1064
+ stream?: boolean | undefined;
1065
+ artifacts?: string | undefined;
1066
+ examples?: {
1067
+ input: {
1068
+ content: string;
1069
+ };
1070
+ output: {
1071
+ content: string;
1072
+ };
1073
+ }[] | undefined;
1074
+ tags?: string[] | undefined;
1075
+ resendFiles?: boolean | undefined;
1076
+ file_ids?: string[] | undefined;
1077
+ imageDetail?: ImageDetail | undefined;
1078
+ reasoning_effort?: ReasoningEffort | null | undefined;
1079
+ reasoning_summary?: ReasoningSummary | null | undefined;
1080
+ verbosity?: Verbosity | null | undefined;
1081
+ useResponsesApi?: boolean | undefined;
1082
+ effort?: AnthropicEffort | null | undefined;
1083
+ web_search?: boolean | undefined;
1084
+ disableStreaming?: boolean | undefined;
1085
+ assistant_id?: string | undefined;
1086
+ agent_id?: string | undefined;
1087
+ region?: string | undefined;
1088
+ maxTokens?: number | undefined;
1089
+ additionalModelRequestFields?: DocumentTypeValue | undefined;
1090
+ instructions?: string | undefined;
1091
+ additional_instructions?: string | undefined;
1092
+ append_current_datetime?: boolean | undefined;
1093
+ presetOverride?: Record<string, unknown> | undefined;
1094
+ stop?: string[] | undefined;
1095
+ greeting?: string | undefined;
1096
+ spec?: string | null | undefined;
1097
+ expiredAt?: string | null | undefined;
1098
+ fileTokenLimit?: number | undefined;
1099
+ resendImages?: boolean | undefined;
1100
+ chatGptLabel?: string | null | undefined;
1101
+ }, {
1102
+ endpoint: EModelEndpoint | null;
1103
+ conversationId: string | null;
1104
+ createdAt: string;
1105
+ updatedAt: string;
1106
+ parentMessageId?: string | undefined;
1107
+ model?: string | null | undefined;
1108
+ title?: string | null | undefined;
1109
+ iconURL?: string | null | undefined;
1110
+ user?: string | undefined;
1111
+ context?: string | null | undefined;
1112
+ endpointType?: EModelEndpoint | null | undefined;
1113
+ isArchived?: boolean | undefined;
1114
+ messages?: string[] | undefined;
1115
+ tools?: string[] | {
1116
+ name: string;
1117
+ pluginKey: string;
1118
+ description?: string | undefined;
1119
+ icon?: string | undefined;
1120
+ authConfig?: {
1121
+ description: string;
1122
+ authField: string;
1123
+ label: string;
1124
+ optional?: boolean | undefined;
1125
+ }[] | undefined;
1126
+ authenticated?: boolean | undefined;
1127
+ chatMenu?: boolean | undefined;
1128
+ isButton?: boolean | undefined;
1129
+ toolkit?: boolean | undefined;
1130
+ }[] | undefined;
1131
+ modelLabel?: string | null | undefined;
1132
+ userLabel?: string | undefined;
1133
+ promptPrefix?: string | null | undefined;
1134
+ temperature?: number | null | undefined;
1135
+ topP?: number | undefined;
1136
+ topK?: number | undefined;
1137
+ top_p?: number | undefined;
1138
+ frequency_penalty?: number | undefined;
1139
+ presence_penalty?: number | undefined;
1140
+ maxOutputTokens?: string | number | null | undefined;
1141
+ maxContextTokens?: string | number | undefined;
1142
+ max_tokens?: string | number | undefined;
1143
+ promptCache?: boolean | undefined;
1144
+ system?: string | undefined;
1145
+ thinking?: boolean | undefined;
1146
+ thinkingBudget?: string | number | undefined;
1147
+ thinkingLevel?: ThinkingLevel | undefined;
1148
+ stream?: boolean | undefined;
1149
+ artifacts?: string | undefined;
1150
+ examples?: {
1151
+ input: {
1152
+ content: string;
1153
+ };
1154
+ output: {
1155
+ content: string;
1156
+ };
1157
+ }[] | undefined;
1158
+ tags?: string[] | undefined;
1159
+ resendFiles?: boolean | undefined;
1160
+ file_ids?: string[] | undefined;
1161
+ imageDetail?: ImageDetail | undefined;
1162
+ reasoning_effort?: ReasoningEffort | null | undefined;
1163
+ reasoning_summary?: ReasoningSummary | null | undefined;
1164
+ verbosity?: Verbosity | null | undefined;
1165
+ useResponsesApi?: boolean | undefined;
1166
+ effort?: AnthropicEffort | null | undefined;
1167
+ web_search?: boolean | undefined;
1168
+ disableStreaming?: boolean | undefined;
1169
+ assistant_id?: string | undefined;
1170
+ agent_id?: string | undefined;
1171
+ region?: string | undefined;
1172
+ maxTokens?: string | number | undefined;
1173
+ additionalModelRequestFields?: DocumentTypeValue | undefined;
1174
+ instructions?: string | undefined;
1175
+ additional_instructions?: string | undefined;
1176
+ append_current_datetime?: boolean | undefined;
1177
+ presetOverride?: Record<string, unknown> | undefined;
1178
+ stop?: string[] | undefined;
1179
+ greeting?: string | undefined;
1180
+ spec?: string | null | undefined;
1181
+ expiredAt?: string | null | undefined;
1182
+ fileTokenLimit?: string | number | undefined;
1183
+ resendImages?: boolean | undefined;
1184
+ chatGptLabel?: string | null | undefined;
1185
+ }>;
1186
+ export declare const tPresetSchema: z.ZodObject<{
1187
+ parentMessageId: z.ZodOptional<z.ZodString>;
1188
+ model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1189
+ iconURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1190
+ user: z.ZodOptional<z.ZodString>;
1191
+ context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1192
+ endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>>;
1193
+ isArchived: z.ZodOptional<z.ZodBoolean>;
1194
+ messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1195
+ tools: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodObject<{
1196
+ name: z.ZodString;
1197
+ pluginKey: z.ZodString;
1198
+ description: z.ZodOptional<z.ZodString>;
1199
+ icon: z.ZodOptional<z.ZodString>;
1200
+ authConfig: z.ZodOptional<z.ZodArray<z.ZodObject<{
1201
+ authField: z.ZodString;
1202
+ label: z.ZodString;
1203
+ description: z.ZodString;
1204
+ optional: z.ZodOptional<z.ZodBoolean>;
1205
+ }, "strip", z.ZodTypeAny, {
1206
+ description: string;
1207
+ authField: string;
1208
+ label: string;
1209
+ optional?: boolean | undefined;
1210
+ }, {
1211
+ description: string;
1212
+ authField: string;
1213
+ label: string;
1214
+ optional?: boolean | undefined;
1215
+ }>, "many">>;
1216
+ authenticated: z.ZodOptional<z.ZodBoolean>;
1217
+ chatMenu: z.ZodOptional<z.ZodBoolean>;
1218
+ isButton: z.ZodOptional<z.ZodBoolean>;
1219
+ toolkit: z.ZodOptional<z.ZodBoolean>;
1220
+ }, "strip", z.ZodTypeAny, {
1221
+ name: string;
1222
+ pluginKey: string;
1223
+ description?: string | undefined;
1224
+ icon?: string | undefined;
1225
+ authConfig?: {
1226
+ description: string;
1227
+ authField: string;
1228
+ label: string;
1229
+ optional?: boolean | undefined;
1230
+ }[] | undefined;
1231
+ authenticated?: boolean | undefined;
1232
+ chatMenu?: boolean | undefined;
1233
+ isButton?: boolean | undefined;
1234
+ toolkit?: boolean | undefined;
1235
+ }, {
1236
+ name: string;
1237
+ pluginKey: string;
1238
+ description?: string | undefined;
1239
+ icon?: string | undefined;
1240
+ authConfig?: {
1241
+ description: string;
1242
+ authField: string;
1243
+ label: string;
1244
+ optional?: boolean | undefined;
1245
+ }[] | undefined;
1246
+ authenticated?: boolean | undefined;
1247
+ chatMenu?: boolean | undefined;
1248
+ isButton?: boolean | undefined;
1249
+ toolkit?: boolean | undefined;
1250
+ }>, "many">, z.ZodArray<z.ZodString, "many">]>>;
1251
+ modelLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1252
+ userLabel: z.ZodOptional<z.ZodString>;
1253
+ promptPrefix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1254
+ temperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1255
+ topP: z.ZodOptional<z.ZodNumber>;
1256
+ topK: z.ZodOptional<z.ZodNumber>;
1257
+ top_p: z.ZodOptional<z.ZodNumber>;
1258
+ frequency_penalty: z.ZodOptional<z.ZodNumber>;
1259
+ presence_penalty: z.ZodOptional<z.ZodNumber>;
1260
+ maxOutputTokens: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>>;
1261
+ maxContextTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
1262
+ max_tokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
1263
+ promptCache: z.ZodOptional<z.ZodBoolean>;
1264
+ system: z.ZodOptional<z.ZodString>;
1265
+ thinking: z.ZodOptional<z.ZodBoolean>;
1266
+ thinkingBudget: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
1267
+ thinkingLevel: z.ZodOptional<z.ZodNativeEnum<typeof ThinkingLevel>>;
1268
+ stream: z.ZodOptional<z.ZodBoolean>;
1269
+ artifacts: z.ZodOptional<z.ZodString>;
1270
+ examples: z.ZodOptional<z.ZodArray<z.ZodObject<{
1271
+ input: z.ZodObject<{
1272
+ content: z.ZodString;
1273
+ }, "strip", z.ZodTypeAny, {
1274
+ content: string;
1275
+ }, {
1276
+ content: string;
1277
+ }>;
1278
+ output: z.ZodObject<{
1279
+ content: z.ZodString;
1280
+ }, "strip", z.ZodTypeAny, {
1281
+ content: string;
1282
+ }, {
1283
+ content: string;
1284
+ }>;
1285
+ }, "strip", z.ZodTypeAny, {
1286
+ input: {
1287
+ content: string;
1288
+ };
1289
+ output: {
1290
+ content: string;
1291
+ };
1292
+ }, {
1293
+ input: {
1294
+ content: string;
1295
+ };
1296
+ output: {
1297
+ content: string;
1298
+ };
1299
+ }>, "many">>;
1300
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1301
+ resendFiles: z.ZodOptional<z.ZodBoolean>;
1302
+ file_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1303
+ imageDetail: z.ZodOptional<z.ZodNativeEnum<typeof ImageDetail>>;
1304
+ reasoning_effort: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof ReasoningEffort>>>;
1305
+ reasoning_summary: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof ReasoningSummary>>>;
1306
+ verbosity: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof Verbosity>>>;
1307
+ useResponsesApi: z.ZodOptional<z.ZodBoolean>;
1308
+ effort: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof AnthropicEffort>>>;
1309
+ web_search: z.ZodOptional<z.ZodBoolean>;
1310
+ disableStreaming: z.ZodOptional<z.ZodBoolean>;
1311
+ assistant_id: z.ZodOptional<z.ZodString>;
1312
+ agent_id: z.ZodOptional<z.ZodString>;
1313
+ region: z.ZodOptional<z.ZodString>;
1314
+ maxTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
1315
+ additionalModelRequestFields: z.ZodOptional<z.ZodType<DocumentTypeValue, z.ZodTypeDef, DocumentTypeValue>>;
1316
+ instructions: z.ZodOptional<z.ZodString>;
1317
+ additional_instructions: z.ZodOptional<z.ZodString>;
1318
+ append_current_datetime: z.ZodOptional<z.ZodBoolean>;
1319
+ presetOverride: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1320
+ stop: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1321
+ greeting: z.ZodOptional<z.ZodString>;
1322
+ spec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1323
+ expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1324
+ fileTokenLimit: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
1325
+ resendImages: z.ZodOptional<z.ZodBoolean>;
1326
+ chatGptLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1327
+ } & {
1328
+ conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1329
+ presetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1330
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1331
+ defaultPreset: z.ZodOptional<z.ZodBoolean>;
1332
+ order: z.ZodOptional<z.ZodNumber>;
1333
+ endpoint: z.ZodNullable<z.ZodUnion<[z.ZodNativeEnum<typeof EModelEndpoint>, z.ZodString]>>;
1334
+ }, "strip", z.ZodTypeAny, {
1335
+ endpoint: string | null;
1336
+ conversationId?: string | null | undefined;
1337
+ parentMessageId?: string | undefined;
1338
+ model?: string | null | undefined;
1339
+ title?: string | null | undefined;
1340
+ iconURL?: string | null | undefined;
1341
+ user?: string | undefined;
1342
+ context?: string | null | undefined;
1343
+ endpointType?: EModelEndpoint | null | undefined;
1344
+ isArchived?: boolean | undefined;
1345
+ messages?: string[] | undefined;
1346
+ tools?: string[] | {
1347
+ name: string;
1348
+ pluginKey: string;
1349
+ description?: string | undefined;
1350
+ icon?: string | undefined;
1351
+ authConfig?: {
1352
+ description: string;
1353
+ authField: string;
1354
+ label: string;
1355
+ optional?: boolean | undefined;
1356
+ }[] | undefined;
1357
+ authenticated?: boolean | undefined;
1358
+ chatMenu?: boolean | undefined;
1359
+ isButton?: boolean | undefined;
1360
+ toolkit?: boolean | undefined;
1361
+ }[] | undefined;
1362
+ modelLabel?: string | null | undefined;
1363
+ userLabel?: string | undefined;
1364
+ promptPrefix?: string | null | undefined;
1365
+ temperature?: number | null | undefined;
1366
+ topP?: number | undefined;
1367
+ topK?: number | undefined;
1368
+ top_p?: number | undefined;
1369
+ frequency_penalty?: number | undefined;
1370
+ presence_penalty?: number | undefined;
1371
+ maxOutputTokens?: number | null | undefined;
1372
+ maxContextTokens?: number | undefined;
1373
+ max_tokens?: number | undefined;
1374
+ promptCache?: boolean | undefined;
1375
+ system?: string | undefined;
1376
+ thinking?: boolean | undefined;
1377
+ thinkingBudget?: number | undefined;
1378
+ thinkingLevel?: ThinkingLevel | undefined;
1379
+ stream?: boolean | undefined;
1380
+ artifacts?: string | undefined;
1381
+ examples?: {
1382
+ input: {
1383
+ content: string;
1384
+ };
1385
+ output: {
1386
+ content: string;
1387
+ };
1388
+ }[] | undefined;
1389
+ tags?: string[] | undefined;
1390
+ resendFiles?: boolean | undefined;
1391
+ file_ids?: string[] | undefined;
1392
+ imageDetail?: ImageDetail | undefined;
1393
+ reasoning_effort?: ReasoningEffort | null | undefined;
1394
+ reasoning_summary?: ReasoningSummary | null | undefined;
1395
+ verbosity?: Verbosity | null | undefined;
1396
+ useResponsesApi?: boolean | undefined;
1397
+ effort?: AnthropicEffort | null | undefined;
1398
+ web_search?: boolean | undefined;
1399
+ disableStreaming?: boolean | undefined;
1400
+ assistant_id?: string | undefined;
1401
+ agent_id?: string | undefined;
1402
+ region?: string | undefined;
1403
+ maxTokens?: number | undefined;
1404
+ additionalModelRequestFields?: DocumentTypeValue | undefined;
1405
+ instructions?: string | undefined;
1406
+ additional_instructions?: string | undefined;
1407
+ append_current_datetime?: boolean | undefined;
1408
+ presetOverride?: Record<string, unknown> | undefined;
1409
+ stop?: string[] | undefined;
1410
+ greeting?: string | undefined;
1411
+ spec?: string | null | undefined;
1412
+ expiredAt?: string | null | undefined;
1413
+ fileTokenLimit?: number | undefined;
1414
+ resendImages?: boolean | undefined;
1415
+ chatGptLabel?: string | null | undefined;
1416
+ presetId?: string | null | undefined;
1417
+ defaultPreset?: boolean | undefined;
1418
+ order?: number | undefined;
1419
+ }, {
1420
+ endpoint: string | null;
1421
+ conversationId?: string | null | undefined;
1422
+ parentMessageId?: string | undefined;
1423
+ model?: string | null | undefined;
1424
+ title?: string | null | undefined;
1425
+ iconURL?: string | null | undefined;
1426
+ user?: string | undefined;
1427
+ context?: string | null | undefined;
1428
+ endpointType?: EModelEndpoint | null | undefined;
1429
+ isArchived?: boolean | undefined;
1430
+ messages?: string[] | undefined;
1431
+ tools?: string[] | {
1432
+ name: string;
1433
+ pluginKey: string;
1434
+ description?: string | undefined;
1435
+ icon?: string | undefined;
1436
+ authConfig?: {
1437
+ description: string;
1438
+ authField: string;
1439
+ label: string;
1440
+ optional?: boolean | undefined;
1441
+ }[] | undefined;
1442
+ authenticated?: boolean | undefined;
1443
+ chatMenu?: boolean | undefined;
1444
+ isButton?: boolean | undefined;
1445
+ toolkit?: boolean | undefined;
1446
+ }[] | undefined;
1447
+ modelLabel?: string | null | undefined;
1448
+ userLabel?: string | undefined;
1449
+ promptPrefix?: string | null | undefined;
1450
+ temperature?: number | null | undefined;
1451
+ topP?: number | undefined;
1452
+ topK?: number | undefined;
1453
+ top_p?: number | undefined;
1454
+ frequency_penalty?: number | undefined;
1455
+ presence_penalty?: number | undefined;
1456
+ maxOutputTokens?: string | number | null | undefined;
1457
+ maxContextTokens?: string | number | undefined;
1458
+ max_tokens?: string | number | undefined;
1459
+ promptCache?: boolean | undefined;
1460
+ system?: string | undefined;
1461
+ thinking?: boolean | undefined;
1462
+ thinkingBudget?: string | number | undefined;
1463
+ thinkingLevel?: ThinkingLevel | undefined;
1464
+ stream?: boolean | undefined;
1465
+ artifacts?: string | undefined;
1466
+ examples?: {
1467
+ input: {
1468
+ content: string;
1469
+ };
1470
+ output: {
1471
+ content: string;
1472
+ };
1473
+ }[] | undefined;
1474
+ tags?: string[] | undefined;
1475
+ resendFiles?: boolean | undefined;
1476
+ file_ids?: string[] | undefined;
1477
+ imageDetail?: ImageDetail | undefined;
1478
+ reasoning_effort?: ReasoningEffort | null | undefined;
1479
+ reasoning_summary?: ReasoningSummary | null | undefined;
1480
+ verbosity?: Verbosity | null | undefined;
1481
+ useResponsesApi?: boolean | undefined;
1482
+ effort?: AnthropicEffort | null | undefined;
1483
+ web_search?: boolean | undefined;
1484
+ disableStreaming?: boolean | undefined;
1485
+ assistant_id?: string | undefined;
1486
+ agent_id?: string | undefined;
1487
+ region?: string | undefined;
1488
+ maxTokens?: string | number | undefined;
1489
+ additionalModelRequestFields?: DocumentTypeValue | undefined;
1490
+ instructions?: string | undefined;
1491
+ additional_instructions?: string | undefined;
1492
+ append_current_datetime?: boolean | undefined;
1493
+ presetOverride?: Record<string, unknown> | undefined;
1494
+ stop?: string[] | undefined;
1495
+ greeting?: string | undefined;
1496
+ spec?: string | null | undefined;
1497
+ expiredAt?: string | null | undefined;
1498
+ fileTokenLimit?: string | number | undefined;
1499
+ resendImages?: boolean | undefined;
1500
+ chatGptLabel?: string | null | undefined;
1501
+ presetId?: string | null | undefined;
1502
+ defaultPreset?: boolean | undefined;
1503
+ order?: number | undefined;
1504
+ }>;
1505
+ export declare const tConvoUpdateSchema: z.ZodObject<{
1506
+ conversationId: z.ZodNullable<z.ZodString>;
1507
+ endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>>;
1508
+ isArchived: z.ZodOptional<z.ZodBoolean>;
1509
+ title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
1510
+ user: z.ZodOptional<z.ZodString>;
1511
+ messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1512
+ tools: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodObject<{
1513
+ name: z.ZodString;
1514
+ pluginKey: z.ZodString;
1515
+ description: z.ZodOptional<z.ZodString>;
1516
+ icon: z.ZodOptional<z.ZodString>;
1517
+ authConfig: z.ZodOptional<z.ZodArray<z.ZodObject<{
1518
+ authField: z.ZodString;
1519
+ label: z.ZodString;
1520
+ description: z.ZodString;
1521
+ optional: z.ZodOptional<z.ZodBoolean>;
1522
+ }, "strip", z.ZodTypeAny, {
1523
+ description: string;
1524
+ authField: string;
1525
+ label: string;
1526
+ optional?: boolean | undefined;
1527
+ }, {
1528
+ description: string;
1529
+ authField: string;
1530
+ label: string;
1531
+ optional?: boolean | undefined;
1532
+ }>, "many">>;
1533
+ authenticated: z.ZodOptional<z.ZodBoolean>;
1534
+ chatMenu: z.ZodOptional<z.ZodBoolean>;
1535
+ isButton: z.ZodOptional<z.ZodBoolean>;
1536
+ toolkit: z.ZodOptional<z.ZodBoolean>;
1537
+ }, "strip", z.ZodTypeAny, {
1538
+ name: string;
1539
+ pluginKey: string;
1540
+ description?: string | undefined;
1541
+ icon?: string | undefined;
1542
+ authConfig?: {
1543
+ description: string;
1544
+ authField: string;
1545
+ label: string;
1546
+ optional?: boolean | undefined;
1547
+ }[] | undefined;
1548
+ authenticated?: boolean | undefined;
1549
+ chatMenu?: boolean | undefined;
1550
+ isButton?: boolean | undefined;
1551
+ toolkit?: boolean | undefined;
1552
+ }, {
1553
+ name: string;
1554
+ pluginKey: string;
1555
+ description?: string | undefined;
1556
+ icon?: string | undefined;
1557
+ authConfig?: {
1558
+ description: string;
1559
+ authField: string;
1560
+ label: string;
1561
+ optional?: boolean | undefined;
1562
+ }[] | undefined;
1563
+ authenticated?: boolean | undefined;
1564
+ chatMenu?: boolean | undefined;
1565
+ isButton?: boolean | undefined;
1566
+ toolkit?: boolean | undefined;
1567
+ }>, "many">, z.ZodArray<z.ZodString, "many">]>>;
1568
+ modelLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1569
+ userLabel: z.ZodOptional<z.ZodString>;
1570
+ model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1571
+ promptPrefix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1572
+ temperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1573
+ topP: z.ZodOptional<z.ZodNumber>;
1574
+ topK: z.ZodOptional<z.ZodNumber>;
1575
+ top_p: z.ZodOptional<z.ZodNumber>;
1576
+ frequency_penalty: z.ZodOptional<z.ZodNumber>;
1577
+ presence_penalty: z.ZodOptional<z.ZodNumber>;
1578
+ parentMessageId: z.ZodOptional<z.ZodString>;
1579
+ maxOutputTokens: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>>;
1580
+ maxContextTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
1581
+ max_tokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
1582
+ promptCache: z.ZodOptional<z.ZodBoolean>;
1583
+ system: z.ZodOptional<z.ZodString>;
1584
+ thinking: z.ZodOptional<z.ZodBoolean>;
1585
+ thinkingBudget: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
1586
+ thinkingLevel: z.ZodOptional<z.ZodNativeEnum<typeof ThinkingLevel>>;
1587
+ stream: z.ZodOptional<z.ZodBoolean>;
1588
+ artifacts: z.ZodOptional<z.ZodString>;
1589
+ context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1590
+ examples: z.ZodOptional<z.ZodArray<z.ZodObject<{
1591
+ input: z.ZodObject<{
1592
+ content: z.ZodString;
1593
+ }, "strip", z.ZodTypeAny, {
1594
+ content: string;
1595
+ }, {
1596
+ content: string;
1597
+ }>;
1598
+ output: z.ZodObject<{
1599
+ content: z.ZodString;
1600
+ }, "strip", z.ZodTypeAny, {
1601
+ content: string;
1602
+ }, {
1603
+ content: string;
1604
+ }>;
1605
+ }, "strip", z.ZodTypeAny, {
1606
+ input: {
1607
+ content: string;
1608
+ };
1609
+ output: {
1610
+ content: string;
1611
+ };
1612
+ }, {
1613
+ input: {
1614
+ content: string;
1615
+ };
1616
+ output: {
1617
+ content: string;
1618
+ };
1619
+ }>, "many">>;
1620
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1621
+ resendFiles: z.ZodOptional<z.ZodBoolean>;
1622
+ file_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1623
+ imageDetail: z.ZodOptional<z.ZodNativeEnum<typeof ImageDetail>>;
1624
+ reasoning_effort: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof ReasoningEffort>>>;
1625
+ reasoning_summary: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof ReasoningSummary>>>;
1626
+ verbosity: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof Verbosity>>>;
1627
+ useResponsesApi: z.ZodOptional<z.ZodBoolean>;
1628
+ effort: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof AnthropicEffort>>>;
1629
+ web_search: z.ZodOptional<z.ZodBoolean>;
1630
+ disableStreaming: z.ZodOptional<z.ZodBoolean>;
1631
+ assistant_id: z.ZodOptional<z.ZodString>;
1632
+ agent_id: z.ZodOptional<z.ZodString>;
1633
+ region: z.ZodOptional<z.ZodString>;
1634
+ maxTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
1635
+ additionalModelRequestFields: z.ZodOptional<z.ZodType<DocumentTypeValue, z.ZodTypeDef, DocumentTypeValue>>;
1636
+ instructions: z.ZodOptional<z.ZodString>;
1637
+ additional_instructions: z.ZodOptional<z.ZodString>;
1638
+ append_current_datetime: z.ZodOptional<z.ZodBoolean>;
1639
+ presetOverride: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1640
+ stop: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1641
+ greeting: z.ZodOptional<z.ZodString>;
1642
+ spec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1643
+ iconURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1644
+ expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1645
+ fileTokenLimit: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
1646
+ resendImages: z.ZodOptional<z.ZodBoolean>;
1647
+ chatGptLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1648
+ } & {
1649
+ endpoint: z.ZodNullable<z.ZodUnion<[z.ZodNativeEnum<typeof EModelEndpoint>, z.ZodString]>>;
1650
+ createdAt: z.ZodOptional<z.ZodString>;
1651
+ updatedAt: z.ZodOptional<z.ZodString>;
1652
+ }, "strip", z.ZodTypeAny, {
1653
+ endpoint: string | null;
1654
+ conversationId: string | null;
1655
+ title: string | null;
1656
+ parentMessageId?: string | undefined;
1657
+ model?: string | null | undefined;
1658
+ createdAt?: string | undefined;
1659
+ updatedAt?: string | undefined;
1660
+ iconURL?: string | null | undefined;
1661
+ user?: string | undefined;
1662
+ context?: string | null | undefined;
1663
+ endpointType?: EModelEndpoint | null | undefined;
1664
+ isArchived?: boolean | undefined;
1665
+ messages?: string[] | undefined;
1666
+ tools?: string[] | {
1667
+ name: string;
1668
+ pluginKey: string;
1669
+ description?: string | undefined;
1670
+ icon?: string | undefined;
1671
+ authConfig?: {
1672
+ description: string;
1673
+ authField: string;
1674
+ label: string;
1675
+ optional?: boolean | undefined;
1676
+ }[] | undefined;
1677
+ authenticated?: boolean | undefined;
1678
+ chatMenu?: boolean | undefined;
1679
+ isButton?: boolean | undefined;
1680
+ toolkit?: boolean | undefined;
1681
+ }[] | undefined;
1682
+ modelLabel?: string | null | undefined;
1683
+ userLabel?: string | undefined;
1684
+ promptPrefix?: string | null | undefined;
1685
+ temperature?: number | null | undefined;
1686
+ topP?: number | undefined;
1687
+ topK?: number | undefined;
1688
+ top_p?: number | undefined;
1689
+ frequency_penalty?: number | undefined;
1690
+ presence_penalty?: number | undefined;
1691
+ maxOutputTokens?: number | null | undefined;
1692
+ maxContextTokens?: number | undefined;
1693
+ max_tokens?: number | undefined;
1694
+ promptCache?: boolean | undefined;
1695
+ system?: string | undefined;
1696
+ thinking?: boolean | undefined;
1697
+ thinkingBudget?: number | undefined;
1698
+ thinkingLevel?: ThinkingLevel | undefined;
1699
+ stream?: boolean | undefined;
1700
+ artifacts?: string | undefined;
1701
+ examples?: {
1702
+ input: {
1703
+ content: string;
1704
+ };
1705
+ output: {
1706
+ content: string;
1707
+ };
1708
+ }[] | undefined;
1709
+ tags?: string[] | undefined;
1710
+ resendFiles?: boolean | undefined;
1711
+ file_ids?: string[] | undefined;
1712
+ imageDetail?: ImageDetail | undefined;
1713
+ reasoning_effort?: ReasoningEffort | null | undefined;
1714
+ reasoning_summary?: ReasoningSummary | null | undefined;
1715
+ verbosity?: Verbosity | null | undefined;
1716
+ useResponsesApi?: boolean | undefined;
1717
+ effort?: AnthropicEffort | null | undefined;
1718
+ web_search?: boolean | undefined;
1719
+ disableStreaming?: boolean | undefined;
1720
+ assistant_id?: string | undefined;
1721
+ agent_id?: string | undefined;
1722
+ region?: string | undefined;
1723
+ maxTokens?: number | undefined;
1724
+ additionalModelRequestFields?: DocumentTypeValue | undefined;
1725
+ instructions?: string | undefined;
1726
+ additional_instructions?: string | undefined;
1727
+ append_current_datetime?: boolean | undefined;
1728
+ presetOverride?: Record<string, unknown> | undefined;
1729
+ stop?: string[] | undefined;
1730
+ greeting?: string | undefined;
1731
+ spec?: string | null | undefined;
1732
+ expiredAt?: string | null | undefined;
1733
+ fileTokenLimit?: number | undefined;
1734
+ resendImages?: boolean | undefined;
1735
+ chatGptLabel?: string | null | undefined;
1736
+ }, {
1737
+ endpoint: string | null;
1738
+ conversationId: string | null;
1739
+ parentMessageId?: string | undefined;
1740
+ model?: string | null | undefined;
1741
+ title?: string | null | undefined;
1742
+ createdAt?: string | undefined;
1743
+ updatedAt?: string | undefined;
1744
+ iconURL?: string | null | undefined;
1745
+ user?: string | undefined;
1746
+ context?: string | null | undefined;
1747
+ endpointType?: EModelEndpoint | null | undefined;
1748
+ isArchived?: boolean | undefined;
1749
+ messages?: string[] | undefined;
1750
+ tools?: string[] | {
1751
+ name: string;
1752
+ pluginKey: string;
1753
+ description?: string | undefined;
1754
+ icon?: string | undefined;
1755
+ authConfig?: {
1756
+ description: string;
1757
+ authField: string;
1758
+ label: string;
1759
+ optional?: boolean | undefined;
1760
+ }[] | undefined;
1761
+ authenticated?: boolean | undefined;
1762
+ chatMenu?: boolean | undefined;
1763
+ isButton?: boolean | undefined;
1764
+ toolkit?: boolean | undefined;
1765
+ }[] | undefined;
1766
+ modelLabel?: string | null | undefined;
1767
+ userLabel?: string | undefined;
1768
+ promptPrefix?: string | null | undefined;
1769
+ temperature?: number | null | undefined;
1770
+ topP?: number | undefined;
1771
+ topK?: number | undefined;
1772
+ top_p?: number | undefined;
1773
+ frequency_penalty?: number | undefined;
1774
+ presence_penalty?: number | undefined;
1775
+ maxOutputTokens?: string | number | null | undefined;
1776
+ maxContextTokens?: string | number | undefined;
1777
+ max_tokens?: string | number | undefined;
1778
+ promptCache?: boolean | undefined;
1779
+ system?: string | undefined;
1780
+ thinking?: boolean | undefined;
1781
+ thinkingBudget?: string | number | undefined;
1782
+ thinkingLevel?: ThinkingLevel | undefined;
1783
+ stream?: boolean | undefined;
1784
+ artifacts?: string | undefined;
1785
+ examples?: {
1786
+ input: {
1787
+ content: string;
1788
+ };
1789
+ output: {
1790
+ content: string;
1791
+ };
1792
+ }[] | undefined;
1793
+ tags?: string[] | undefined;
1794
+ resendFiles?: boolean | undefined;
1795
+ file_ids?: string[] | undefined;
1796
+ imageDetail?: ImageDetail | undefined;
1797
+ reasoning_effort?: ReasoningEffort | null | undefined;
1798
+ reasoning_summary?: ReasoningSummary | null | undefined;
1799
+ verbosity?: Verbosity | null | undefined;
1800
+ useResponsesApi?: boolean | undefined;
1801
+ effort?: AnthropicEffort | null | undefined;
1802
+ web_search?: boolean | undefined;
1803
+ disableStreaming?: boolean | undefined;
1804
+ assistant_id?: string | undefined;
1805
+ agent_id?: string | undefined;
1806
+ region?: string | undefined;
1807
+ maxTokens?: string | number | undefined;
1808
+ additionalModelRequestFields?: DocumentTypeValue | undefined;
1809
+ instructions?: string | undefined;
1810
+ additional_instructions?: string | undefined;
1811
+ append_current_datetime?: boolean | undefined;
1812
+ presetOverride?: Record<string, unknown> | undefined;
1813
+ stop?: string[] | undefined;
1814
+ greeting?: string | undefined;
1815
+ spec?: string | null | undefined;
1816
+ expiredAt?: string | null | undefined;
1817
+ fileTokenLimit?: string | number | undefined;
1818
+ resendImages?: boolean | undefined;
1819
+ chatGptLabel?: string | null | undefined;
1820
+ }>;
1821
+ export declare const tQueryParamsSchema: z.ZodObject<Pick<{
1822
+ conversationId: z.ZodNullable<z.ZodString>;
1823
+ endpoint: z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>;
1824
+ endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>>;
1825
+ isArchived: z.ZodOptional<z.ZodBoolean>;
1826
+ title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
1827
+ user: z.ZodOptional<z.ZodString>;
1828
+ messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1829
+ tools: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodObject<{
1830
+ name: z.ZodString;
1831
+ pluginKey: z.ZodString;
1832
+ description: z.ZodOptional<z.ZodString>;
1833
+ icon: z.ZodOptional<z.ZodString>;
1834
+ authConfig: z.ZodOptional<z.ZodArray<z.ZodObject<{
1835
+ authField: z.ZodString;
1836
+ label: z.ZodString;
1837
+ description: z.ZodString;
1838
+ optional: z.ZodOptional<z.ZodBoolean>;
1839
+ }, "strip", z.ZodTypeAny, {
1840
+ description: string;
1841
+ authField: string;
1842
+ label: string;
1843
+ optional?: boolean | undefined;
1844
+ }, {
1845
+ description: string;
1846
+ authField: string;
1847
+ label: string;
1848
+ optional?: boolean | undefined;
1849
+ }>, "many">>;
1850
+ authenticated: z.ZodOptional<z.ZodBoolean>;
1851
+ chatMenu: z.ZodOptional<z.ZodBoolean>;
1852
+ isButton: z.ZodOptional<z.ZodBoolean>;
1853
+ toolkit: z.ZodOptional<z.ZodBoolean>;
1854
+ }, "strip", z.ZodTypeAny, {
1855
+ name: string;
1856
+ pluginKey: string;
1857
+ description?: string | undefined;
1858
+ icon?: string | undefined;
1859
+ authConfig?: {
1860
+ description: string;
1861
+ authField: string;
1862
+ label: string;
1863
+ optional?: boolean | undefined;
1864
+ }[] | undefined;
1865
+ authenticated?: boolean | undefined;
1866
+ chatMenu?: boolean | undefined;
1867
+ isButton?: boolean | undefined;
1868
+ toolkit?: boolean | undefined;
1869
+ }, {
1870
+ name: string;
1871
+ pluginKey: string;
1872
+ description?: string | undefined;
1873
+ icon?: string | undefined;
1874
+ authConfig?: {
1875
+ description: string;
1876
+ authField: string;
1877
+ label: string;
1878
+ optional?: boolean | undefined;
1879
+ }[] | undefined;
1880
+ authenticated?: boolean | undefined;
1881
+ chatMenu?: boolean | undefined;
1882
+ isButton?: boolean | undefined;
1883
+ toolkit?: boolean | undefined;
1884
+ }>, "many">, z.ZodArray<z.ZodString, "many">]>>;
1885
+ modelLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1886
+ userLabel: z.ZodOptional<z.ZodString>;
1887
+ model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1888
+ promptPrefix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1889
+ temperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1890
+ topP: z.ZodOptional<z.ZodNumber>;
1891
+ topK: z.ZodOptional<z.ZodNumber>;
1892
+ top_p: z.ZodOptional<z.ZodNumber>;
1893
+ frequency_penalty: z.ZodOptional<z.ZodNumber>;
1894
+ presence_penalty: z.ZodOptional<z.ZodNumber>;
1895
+ parentMessageId: z.ZodOptional<z.ZodString>;
1896
+ maxOutputTokens: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>>;
1897
+ maxContextTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
1898
+ max_tokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
1899
+ promptCache: z.ZodOptional<z.ZodBoolean>;
1900
+ system: z.ZodOptional<z.ZodString>;
1901
+ thinking: z.ZodOptional<z.ZodBoolean>;
1902
+ thinkingBudget: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
1903
+ thinkingLevel: z.ZodOptional<z.ZodNativeEnum<typeof ThinkingLevel>>;
1904
+ stream: z.ZodOptional<z.ZodBoolean>;
1905
+ artifacts: z.ZodOptional<z.ZodString>;
1906
+ context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1907
+ examples: z.ZodOptional<z.ZodArray<z.ZodObject<{
1908
+ input: z.ZodObject<{
1909
+ content: z.ZodString;
1910
+ }, "strip", z.ZodTypeAny, {
1911
+ content: string;
1912
+ }, {
1913
+ content: string;
1914
+ }>;
1915
+ output: z.ZodObject<{
1916
+ content: z.ZodString;
1917
+ }, "strip", z.ZodTypeAny, {
1918
+ content: string;
1919
+ }, {
1920
+ content: string;
1921
+ }>;
1922
+ }, "strip", z.ZodTypeAny, {
1923
+ input: {
1924
+ content: string;
1925
+ };
1926
+ output: {
1927
+ content: string;
1928
+ };
1929
+ }, {
1930
+ input: {
1931
+ content: string;
1932
+ };
1933
+ output: {
1934
+ content: string;
1935
+ };
1936
+ }>, "many">>;
1937
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1938
+ createdAt: z.ZodString;
1939
+ updatedAt: z.ZodString;
1940
+ resendFiles: z.ZodOptional<z.ZodBoolean>;
1941
+ file_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1942
+ imageDetail: z.ZodOptional<z.ZodNativeEnum<typeof ImageDetail>>;
1943
+ reasoning_effort: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof ReasoningEffort>>>;
1944
+ reasoning_summary: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof ReasoningSummary>>>;
1945
+ verbosity: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof Verbosity>>>;
1946
+ useResponsesApi: z.ZodOptional<z.ZodBoolean>;
1947
+ effort: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof AnthropicEffort>>>;
1948
+ web_search: z.ZodOptional<z.ZodBoolean>;
1949
+ disableStreaming: z.ZodOptional<z.ZodBoolean>;
1950
+ assistant_id: z.ZodOptional<z.ZodString>;
1951
+ agent_id: z.ZodOptional<z.ZodString>;
1952
+ region: z.ZodOptional<z.ZodString>;
1953
+ maxTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
1954
+ additionalModelRequestFields: z.ZodOptional<z.ZodType<DocumentTypeValue, z.ZodTypeDef, DocumentTypeValue>>;
1955
+ instructions: z.ZodOptional<z.ZodString>;
1956
+ additional_instructions: z.ZodOptional<z.ZodString>;
1957
+ append_current_datetime: z.ZodOptional<z.ZodBoolean>;
1958
+ /** Used to overwrite active conversation settings when saving a Preset */
1959
+ presetOverride: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1960
+ stop: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1961
+ greeting: z.ZodOptional<z.ZodString>;
1962
+ spec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1963
+ iconURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1964
+ expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1965
+ fileTokenLimit: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
1966
+ /** @deprecated */
1967
+ resendImages: z.ZodOptional<z.ZodBoolean>;
1968
+ /** @deprecated Prefer `modelLabel` over `chatGptLabel` */
1969
+ chatGptLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1970
+ }, "model" | "promptPrefix" | "temperature" | "topP" | "topK" | "top_p" | "frequency_penalty" | "presence_penalty" | "maxOutputTokens" | "maxContextTokens" | "max_tokens" | "promptCache" | "thinking" | "thinkingBudget" | "thinkingLevel" | "resendFiles" | "imageDetail" | "reasoning_effort" | "reasoning_summary" | "verbosity" | "useResponsesApi" | "effort" | "web_search" | "disableStreaming" | "assistant_id" | "agent_id" | "region" | "maxTokens" | "instructions" | "append_current_datetime" | "stop" | "spec" | "fileTokenLimit"> & {
1971
+ /** @endpoints openAI, custom, azureOpenAI, google, anthropic, assistants, azureAssistants, bedrock, agents */
1972
+ endpoint: z.ZodNullable<z.ZodUnion<[z.ZodNativeEnum<typeof EModelEndpoint>, z.ZodString]>>;
1973
+ }, "strip", z.ZodTypeAny, {
1974
+ endpoint: string | null;
1975
+ model?: string | null | undefined;
1976
+ promptPrefix?: string | null | undefined;
1977
+ temperature?: number | null | undefined;
1978
+ topP?: number | undefined;
1979
+ topK?: number | undefined;
1980
+ top_p?: number | undefined;
1981
+ frequency_penalty?: number | undefined;
1982
+ presence_penalty?: number | undefined;
1983
+ maxOutputTokens?: number | null | undefined;
1984
+ maxContextTokens?: number | undefined;
1985
+ max_tokens?: number | undefined;
1986
+ promptCache?: boolean | undefined;
1987
+ thinking?: boolean | undefined;
1988
+ thinkingBudget?: number | undefined;
1989
+ thinkingLevel?: ThinkingLevel | undefined;
1990
+ resendFiles?: boolean | undefined;
1991
+ imageDetail?: ImageDetail | undefined;
1992
+ reasoning_effort?: ReasoningEffort | null | undefined;
1993
+ reasoning_summary?: ReasoningSummary | null | undefined;
1994
+ verbosity?: Verbosity | null | undefined;
1995
+ useResponsesApi?: boolean | undefined;
1996
+ effort?: AnthropicEffort | null | undefined;
1997
+ web_search?: boolean | undefined;
1998
+ disableStreaming?: boolean | undefined;
1999
+ assistant_id?: string | undefined;
2000
+ agent_id?: string | undefined;
2001
+ region?: string | undefined;
2002
+ maxTokens?: number | undefined;
2003
+ instructions?: string | undefined;
2004
+ append_current_datetime?: boolean | undefined;
2005
+ stop?: string[] | undefined;
2006
+ spec?: string | null | undefined;
2007
+ fileTokenLimit?: number | undefined;
2008
+ }, {
2009
+ endpoint: string | null;
2010
+ model?: string | null | undefined;
2011
+ promptPrefix?: string | null | undefined;
2012
+ temperature?: number | null | undefined;
2013
+ topP?: number | undefined;
2014
+ topK?: number | undefined;
2015
+ top_p?: number | undefined;
2016
+ frequency_penalty?: number | undefined;
2017
+ presence_penalty?: number | undefined;
2018
+ maxOutputTokens?: string | number | null | undefined;
2019
+ maxContextTokens?: string | number | undefined;
2020
+ max_tokens?: string | number | undefined;
2021
+ promptCache?: boolean | undefined;
2022
+ thinking?: boolean | undefined;
2023
+ thinkingBudget?: string | number | undefined;
2024
+ thinkingLevel?: ThinkingLevel | undefined;
2025
+ resendFiles?: boolean | undefined;
2026
+ imageDetail?: ImageDetail | undefined;
2027
+ reasoning_effort?: ReasoningEffort | null | undefined;
2028
+ reasoning_summary?: ReasoningSummary | null | undefined;
2029
+ verbosity?: Verbosity | null | undefined;
2030
+ useResponsesApi?: boolean | undefined;
2031
+ effort?: AnthropicEffort | null | undefined;
2032
+ web_search?: boolean | undefined;
2033
+ disableStreaming?: boolean | undefined;
2034
+ assistant_id?: string | undefined;
2035
+ agent_id?: string | undefined;
2036
+ region?: string | undefined;
2037
+ maxTokens?: string | number | undefined;
2038
+ instructions?: string | undefined;
2039
+ append_current_datetime?: boolean | undefined;
2040
+ stop?: string[] | undefined;
2041
+ spec?: string | null | undefined;
2042
+ fileTokenLimit?: string | number | undefined;
2043
+ }>;
2044
+ export type TPreset = z.infer<typeof tPresetSchema>;
2045
+ export type TSetOption = (param: number | string) => (newValue: number | string | boolean | string[] | Partial<TPreset>) => void;
2046
+ export type TConversation = z.infer<typeof tConversationSchema> & {
2047
+ presetOverride?: Partial<TPreset>;
2048
+ disableParams?: boolean;
2049
+ };
2050
+ export declare const tSharedLinkSchema: z.ZodObject<{
2051
+ conversationId: z.ZodString;
2052
+ shareId: z.ZodString;
2053
+ messages: z.ZodArray<z.ZodString, "many">;
2054
+ isPublic: z.ZodBoolean;
2055
+ title: z.ZodString;
2056
+ createdAt: z.ZodString;
2057
+ updatedAt: z.ZodString;
2058
+ }, "strip", z.ZodTypeAny, {
2059
+ conversationId: string;
2060
+ title: string;
2061
+ createdAt: string;
2062
+ updatedAt: string;
2063
+ messages: string[];
2064
+ shareId: string;
2065
+ isPublic: boolean;
2066
+ }, {
2067
+ conversationId: string;
2068
+ title: string;
2069
+ createdAt: string;
2070
+ updatedAt: string;
2071
+ messages: string[];
2072
+ shareId: string;
2073
+ isPublic: boolean;
2074
+ }>;
2075
+ export type TSharedLink = z.infer<typeof tSharedLinkSchema>;
2076
+ export declare const tConversationTagSchema: z.ZodObject<{
2077
+ _id: z.ZodString;
2078
+ user: z.ZodString;
2079
+ tag: z.ZodString;
2080
+ description: z.ZodOptional<z.ZodString>;
2081
+ createdAt: z.ZodString;
2082
+ updatedAt: z.ZodString;
2083
+ count: z.ZodNumber;
2084
+ position: z.ZodNumber;
2085
+ }, "strip", z.ZodTypeAny, {
2086
+ createdAt: string;
2087
+ updatedAt: string;
2088
+ tag: string;
2089
+ _id: string;
2090
+ user: string;
2091
+ count: number;
2092
+ position: number;
2093
+ description?: string | undefined;
2094
+ }, {
2095
+ createdAt: string;
2096
+ updatedAt: string;
2097
+ tag: string;
2098
+ _id: string;
2099
+ user: string;
2100
+ count: number;
2101
+ position: number;
2102
+ description?: string | undefined;
2103
+ }>;
2104
+ export type TConversationTag = z.infer<typeof tConversationTagSchema>;
2105
+ export declare const googleBaseSchema: z.ZodObject<Pick<{
2106
+ conversationId: z.ZodNullable<z.ZodString>;
2107
+ endpoint: z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>;
2108
+ endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>>;
2109
+ isArchived: z.ZodOptional<z.ZodBoolean>;
2110
+ title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
2111
+ user: z.ZodOptional<z.ZodString>;
2112
+ messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2113
+ tools: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodObject<{
2114
+ name: z.ZodString;
2115
+ pluginKey: z.ZodString;
2116
+ description: z.ZodOptional<z.ZodString>;
2117
+ icon: z.ZodOptional<z.ZodString>;
2118
+ authConfig: z.ZodOptional<z.ZodArray<z.ZodObject<{
2119
+ authField: z.ZodString;
2120
+ label: z.ZodString;
2121
+ description: z.ZodString;
2122
+ optional: z.ZodOptional<z.ZodBoolean>;
2123
+ }, "strip", z.ZodTypeAny, {
2124
+ description: string;
2125
+ authField: string;
2126
+ label: string;
2127
+ optional?: boolean | undefined;
2128
+ }, {
2129
+ description: string;
2130
+ authField: string;
2131
+ label: string;
2132
+ optional?: boolean | undefined;
2133
+ }>, "many">>;
2134
+ authenticated: z.ZodOptional<z.ZodBoolean>;
2135
+ chatMenu: z.ZodOptional<z.ZodBoolean>;
2136
+ isButton: z.ZodOptional<z.ZodBoolean>;
2137
+ toolkit: z.ZodOptional<z.ZodBoolean>;
2138
+ }, "strip", z.ZodTypeAny, {
2139
+ name: string;
2140
+ pluginKey: string;
2141
+ description?: string | undefined;
2142
+ icon?: string | undefined;
2143
+ authConfig?: {
2144
+ description: string;
2145
+ authField: string;
2146
+ label: string;
2147
+ optional?: boolean | undefined;
2148
+ }[] | undefined;
2149
+ authenticated?: boolean | undefined;
2150
+ chatMenu?: boolean | undefined;
2151
+ isButton?: boolean | undefined;
2152
+ toolkit?: boolean | undefined;
2153
+ }, {
2154
+ name: string;
2155
+ pluginKey: string;
2156
+ description?: string | undefined;
2157
+ icon?: string | undefined;
2158
+ authConfig?: {
2159
+ description: string;
2160
+ authField: string;
2161
+ label: string;
2162
+ optional?: boolean | undefined;
2163
+ }[] | undefined;
2164
+ authenticated?: boolean | undefined;
2165
+ chatMenu?: boolean | undefined;
2166
+ isButton?: boolean | undefined;
2167
+ toolkit?: boolean | undefined;
2168
+ }>, "many">, z.ZodArray<z.ZodString, "many">]>>;
2169
+ modelLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2170
+ userLabel: z.ZodOptional<z.ZodString>;
2171
+ model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2172
+ promptPrefix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2173
+ temperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2174
+ topP: z.ZodOptional<z.ZodNumber>;
2175
+ topK: z.ZodOptional<z.ZodNumber>;
2176
+ top_p: z.ZodOptional<z.ZodNumber>;
2177
+ frequency_penalty: z.ZodOptional<z.ZodNumber>;
2178
+ presence_penalty: z.ZodOptional<z.ZodNumber>;
2179
+ parentMessageId: z.ZodOptional<z.ZodString>;
2180
+ maxOutputTokens: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>>;
2181
+ maxContextTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
2182
+ max_tokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
2183
+ promptCache: z.ZodOptional<z.ZodBoolean>;
2184
+ system: z.ZodOptional<z.ZodString>;
2185
+ thinking: z.ZodOptional<z.ZodBoolean>;
2186
+ thinkingBudget: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
2187
+ thinkingLevel: z.ZodOptional<z.ZodNativeEnum<typeof ThinkingLevel>>;
2188
+ stream: z.ZodOptional<z.ZodBoolean>;
2189
+ artifacts: z.ZodOptional<z.ZodString>;
2190
+ context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2191
+ examples: z.ZodOptional<z.ZodArray<z.ZodObject<{
2192
+ input: z.ZodObject<{
2193
+ content: z.ZodString;
2194
+ }, "strip", z.ZodTypeAny, {
2195
+ content: string;
2196
+ }, {
2197
+ content: string;
2198
+ }>;
2199
+ output: z.ZodObject<{
2200
+ content: z.ZodString;
2201
+ }, "strip", z.ZodTypeAny, {
2202
+ content: string;
2203
+ }, {
2204
+ content: string;
2205
+ }>;
2206
+ }, "strip", z.ZodTypeAny, {
2207
+ input: {
2208
+ content: string;
2209
+ };
2210
+ output: {
2211
+ content: string;
2212
+ };
2213
+ }, {
2214
+ input: {
2215
+ content: string;
2216
+ };
2217
+ output: {
2218
+ content: string;
2219
+ };
2220
+ }>, "many">>;
2221
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2222
+ createdAt: z.ZodString;
2223
+ updatedAt: z.ZodString;
2224
+ resendFiles: z.ZodOptional<z.ZodBoolean>;
2225
+ file_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2226
+ imageDetail: z.ZodOptional<z.ZodNativeEnum<typeof ImageDetail>>;
2227
+ reasoning_effort: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof ReasoningEffort>>>;
2228
+ reasoning_summary: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof ReasoningSummary>>>;
2229
+ verbosity: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof Verbosity>>>;
2230
+ useResponsesApi: z.ZodOptional<z.ZodBoolean>;
2231
+ effort: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof AnthropicEffort>>>;
2232
+ web_search: z.ZodOptional<z.ZodBoolean>;
2233
+ disableStreaming: z.ZodOptional<z.ZodBoolean>;
2234
+ assistant_id: z.ZodOptional<z.ZodString>;
2235
+ agent_id: z.ZodOptional<z.ZodString>;
2236
+ region: z.ZodOptional<z.ZodString>;
2237
+ maxTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
2238
+ additionalModelRequestFields: z.ZodOptional<z.ZodType<DocumentTypeValue, z.ZodTypeDef, DocumentTypeValue>>;
2239
+ instructions: z.ZodOptional<z.ZodString>;
2240
+ additional_instructions: z.ZodOptional<z.ZodString>;
2241
+ append_current_datetime: z.ZodOptional<z.ZodBoolean>;
2242
+ /** Used to overwrite active conversation settings when saving a Preset */
2243
+ presetOverride: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2244
+ stop: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2245
+ greeting: z.ZodOptional<z.ZodString>;
2246
+ spec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2247
+ iconURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2248
+ expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2249
+ fileTokenLimit: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
2250
+ /** @deprecated */
2251
+ resendImages: z.ZodOptional<z.ZodBoolean>;
2252
+ /** @deprecated Prefer `modelLabel` over `chatGptLabel` */
2253
+ chatGptLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2254
+ }, "model" | "iconURL" | "modelLabel" | "promptPrefix" | "temperature" | "topP" | "topK" | "maxOutputTokens" | "maxContextTokens" | "thinking" | "thinkingBudget" | "thinkingLevel" | "artifacts" | "examples" | "web_search" | "greeting" | "spec" | "fileTokenLimit">, "strip", z.ZodTypeAny, {
2255
+ model?: string | null | undefined;
2256
+ iconURL?: string | null | undefined;
2257
+ modelLabel?: string | null | undefined;
2258
+ promptPrefix?: string | null | undefined;
2259
+ temperature?: number | null | undefined;
2260
+ topP?: number | undefined;
2261
+ topK?: number | undefined;
2262
+ maxOutputTokens?: number | null | undefined;
2263
+ maxContextTokens?: number | undefined;
2264
+ thinking?: boolean | undefined;
2265
+ thinkingBudget?: number | undefined;
2266
+ thinkingLevel?: ThinkingLevel | undefined;
2267
+ artifacts?: string | undefined;
2268
+ examples?: {
2269
+ input: {
2270
+ content: string;
2271
+ };
2272
+ output: {
2273
+ content: string;
2274
+ };
2275
+ }[] | undefined;
2276
+ web_search?: boolean | undefined;
2277
+ greeting?: string | undefined;
2278
+ spec?: string | null | undefined;
2279
+ fileTokenLimit?: number | undefined;
2280
+ }, {
2281
+ model?: string | null | undefined;
2282
+ iconURL?: string | null | undefined;
2283
+ modelLabel?: string | null | undefined;
2284
+ promptPrefix?: string | null | undefined;
2285
+ temperature?: number | null | undefined;
2286
+ topP?: number | undefined;
2287
+ topK?: number | undefined;
2288
+ maxOutputTokens?: string | number | null | undefined;
2289
+ maxContextTokens?: string | number | undefined;
2290
+ thinking?: boolean | undefined;
2291
+ thinkingBudget?: string | number | undefined;
2292
+ thinkingLevel?: ThinkingLevel | undefined;
2293
+ artifacts?: string | undefined;
2294
+ examples?: {
2295
+ input: {
2296
+ content: string;
2297
+ };
2298
+ output: {
2299
+ content: string;
2300
+ };
2301
+ }[] | undefined;
2302
+ web_search?: boolean | undefined;
2303
+ greeting?: string | undefined;
2304
+ spec?: string | null | undefined;
2305
+ fileTokenLimit?: string | number | undefined;
2306
+ }>;
2307
+ export declare const googleSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
2308
+ conversationId: z.ZodNullable<z.ZodString>;
2309
+ endpoint: z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>;
2310
+ endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>>;
2311
+ isArchived: z.ZodOptional<z.ZodBoolean>;
2312
+ title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
2313
+ user: z.ZodOptional<z.ZodString>;
2314
+ messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2315
+ tools: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodObject<{
2316
+ name: z.ZodString;
2317
+ pluginKey: z.ZodString;
2318
+ description: z.ZodOptional<z.ZodString>;
2319
+ icon: z.ZodOptional<z.ZodString>;
2320
+ authConfig: z.ZodOptional<z.ZodArray<z.ZodObject<{
2321
+ authField: z.ZodString;
2322
+ label: z.ZodString;
2323
+ description: z.ZodString;
2324
+ optional: z.ZodOptional<z.ZodBoolean>;
2325
+ }, "strip", z.ZodTypeAny, {
2326
+ description: string;
2327
+ authField: string;
2328
+ label: string;
2329
+ optional?: boolean | undefined;
2330
+ }, {
2331
+ description: string;
2332
+ authField: string;
2333
+ label: string;
2334
+ optional?: boolean | undefined;
2335
+ }>, "many">>;
2336
+ authenticated: z.ZodOptional<z.ZodBoolean>;
2337
+ chatMenu: z.ZodOptional<z.ZodBoolean>;
2338
+ isButton: z.ZodOptional<z.ZodBoolean>;
2339
+ toolkit: z.ZodOptional<z.ZodBoolean>;
2340
+ }, "strip", z.ZodTypeAny, {
2341
+ name: string;
2342
+ pluginKey: string;
2343
+ description?: string | undefined;
2344
+ icon?: string | undefined;
2345
+ authConfig?: {
2346
+ description: string;
2347
+ authField: string;
2348
+ label: string;
2349
+ optional?: boolean | undefined;
2350
+ }[] | undefined;
2351
+ authenticated?: boolean | undefined;
2352
+ chatMenu?: boolean | undefined;
2353
+ isButton?: boolean | undefined;
2354
+ toolkit?: boolean | undefined;
2355
+ }, {
2356
+ name: string;
2357
+ pluginKey: string;
2358
+ description?: string | undefined;
2359
+ icon?: string | undefined;
2360
+ authConfig?: {
2361
+ description: string;
2362
+ authField: string;
2363
+ label: string;
2364
+ optional?: boolean | undefined;
2365
+ }[] | undefined;
2366
+ authenticated?: boolean | undefined;
2367
+ chatMenu?: boolean | undefined;
2368
+ isButton?: boolean | undefined;
2369
+ toolkit?: boolean | undefined;
2370
+ }>, "many">, z.ZodArray<z.ZodString, "many">]>>;
2371
+ modelLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2372
+ userLabel: z.ZodOptional<z.ZodString>;
2373
+ model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2374
+ promptPrefix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2375
+ temperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2376
+ topP: z.ZodOptional<z.ZodNumber>;
2377
+ topK: z.ZodOptional<z.ZodNumber>;
2378
+ top_p: z.ZodOptional<z.ZodNumber>;
2379
+ frequency_penalty: z.ZodOptional<z.ZodNumber>;
2380
+ presence_penalty: z.ZodOptional<z.ZodNumber>;
2381
+ parentMessageId: z.ZodOptional<z.ZodString>;
2382
+ maxOutputTokens: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>>;
2383
+ maxContextTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
2384
+ max_tokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
2385
+ promptCache: z.ZodOptional<z.ZodBoolean>;
2386
+ system: z.ZodOptional<z.ZodString>;
2387
+ thinking: z.ZodOptional<z.ZodBoolean>;
2388
+ thinkingBudget: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
2389
+ thinkingLevel: z.ZodOptional<z.ZodNativeEnum<typeof ThinkingLevel>>;
2390
+ stream: z.ZodOptional<z.ZodBoolean>;
2391
+ artifacts: z.ZodOptional<z.ZodString>;
2392
+ context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2393
+ examples: z.ZodOptional<z.ZodArray<z.ZodObject<{
2394
+ input: z.ZodObject<{
2395
+ content: z.ZodString;
2396
+ }, "strip", z.ZodTypeAny, {
2397
+ content: string;
2398
+ }, {
2399
+ content: string;
2400
+ }>;
2401
+ output: z.ZodObject<{
2402
+ content: z.ZodString;
2403
+ }, "strip", z.ZodTypeAny, {
2404
+ content: string;
2405
+ }, {
2406
+ content: string;
2407
+ }>;
2408
+ }, "strip", z.ZodTypeAny, {
2409
+ input: {
2410
+ content: string;
2411
+ };
2412
+ output: {
2413
+ content: string;
2414
+ };
2415
+ }, {
2416
+ input: {
2417
+ content: string;
2418
+ };
2419
+ output: {
2420
+ content: string;
2421
+ };
2422
+ }>, "many">>;
2423
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2424
+ createdAt: z.ZodString;
2425
+ updatedAt: z.ZodString;
2426
+ resendFiles: z.ZodOptional<z.ZodBoolean>;
2427
+ file_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2428
+ imageDetail: z.ZodOptional<z.ZodNativeEnum<typeof ImageDetail>>;
2429
+ reasoning_effort: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof ReasoningEffort>>>;
2430
+ reasoning_summary: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof ReasoningSummary>>>;
2431
+ verbosity: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof Verbosity>>>;
2432
+ useResponsesApi: z.ZodOptional<z.ZodBoolean>;
2433
+ effort: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof AnthropicEffort>>>;
2434
+ web_search: z.ZodOptional<z.ZodBoolean>;
2435
+ disableStreaming: z.ZodOptional<z.ZodBoolean>;
2436
+ assistant_id: z.ZodOptional<z.ZodString>;
2437
+ agent_id: z.ZodOptional<z.ZodString>;
2438
+ region: z.ZodOptional<z.ZodString>;
2439
+ maxTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
2440
+ additionalModelRequestFields: z.ZodOptional<z.ZodType<DocumentTypeValue, z.ZodTypeDef, DocumentTypeValue>>;
2441
+ instructions: z.ZodOptional<z.ZodString>;
2442
+ additional_instructions: z.ZodOptional<z.ZodString>;
2443
+ append_current_datetime: z.ZodOptional<z.ZodBoolean>;
2444
+ /** Used to overwrite active conversation settings when saving a Preset */
2445
+ presetOverride: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2446
+ stop: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2447
+ greeting: z.ZodOptional<z.ZodString>;
2448
+ spec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2449
+ iconURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2450
+ expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2451
+ fileTokenLimit: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
2452
+ /** @deprecated */
2453
+ resendImages: z.ZodOptional<z.ZodBoolean>;
2454
+ /** @deprecated Prefer `modelLabel` over `chatGptLabel` */
2455
+ chatGptLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2456
+ }, "model" | "iconURL" | "modelLabel" | "promptPrefix" | "temperature" | "topP" | "topK" | "maxOutputTokens" | "maxContextTokens" | "thinking" | "thinkingBudget" | "thinkingLevel" | "artifacts" | "examples" | "web_search" | "greeting" | "spec" | "fileTokenLimit">, "strip", z.ZodTypeAny, {
2457
+ model?: string | null | undefined;
2458
+ iconURL?: string | null | undefined;
2459
+ modelLabel?: string | null | undefined;
2460
+ promptPrefix?: string | null | undefined;
2461
+ temperature?: number | null | undefined;
2462
+ topP?: number | undefined;
2463
+ topK?: number | undefined;
2464
+ maxOutputTokens?: number | null | undefined;
2465
+ maxContextTokens?: number | undefined;
2466
+ thinking?: boolean | undefined;
2467
+ thinkingBudget?: number | undefined;
2468
+ thinkingLevel?: ThinkingLevel | undefined;
2469
+ artifacts?: string | undefined;
2470
+ examples?: {
2471
+ input: {
2472
+ content: string;
2473
+ };
2474
+ output: {
2475
+ content: string;
2476
+ };
2477
+ }[] | undefined;
2478
+ web_search?: boolean | undefined;
2479
+ greeting?: string | undefined;
2480
+ spec?: string | null | undefined;
2481
+ fileTokenLimit?: number | undefined;
2482
+ }, {
2483
+ model?: string | null | undefined;
2484
+ iconURL?: string | null | undefined;
2485
+ modelLabel?: string | null | undefined;
2486
+ promptPrefix?: string | null | undefined;
2487
+ temperature?: number | null | undefined;
2488
+ topP?: number | undefined;
2489
+ topK?: number | undefined;
2490
+ maxOutputTokens?: string | number | null | undefined;
2491
+ maxContextTokens?: string | number | undefined;
2492
+ thinking?: boolean | undefined;
2493
+ thinkingBudget?: string | number | undefined;
2494
+ thinkingLevel?: ThinkingLevel | undefined;
2495
+ artifacts?: string | undefined;
2496
+ examples?: {
2497
+ input: {
2498
+ content: string;
2499
+ };
2500
+ output: {
2501
+ content: string;
2502
+ };
2503
+ }[] | undefined;
2504
+ web_search?: boolean | undefined;
2505
+ greeting?: string | undefined;
2506
+ spec?: string | null | undefined;
2507
+ fileTokenLimit?: string | number | undefined;
2508
+ }>, Partial<Partial<TConversation>>, {
2509
+ model?: string | null | undefined;
2510
+ iconURL?: string | null | undefined;
2511
+ modelLabel?: string | null | undefined;
2512
+ promptPrefix?: string | null | undefined;
2513
+ temperature?: number | null | undefined;
2514
+ topP?: number | undefined;
2515
+ topK?: number | undefined;
2516
+ maxOutputTokens?: string | number | null | undefined;
2517
+ maxContextTokens?: string | number | undefined;
2518
+ thinking?: boolean | undefined;
2519
+ thinkingBudget?: string | number | undefined;
2520
+ thinkingLevel?: ThinkingLevel | undefined;
2521
+ artifacts?: string | undefined;
2522
+ examples?: {
2523
+ input: {
2524
+ content: string;
2525
+ };
2526
+ output: {
2527
+ content: string;
2528
+ };
2529
+ }[] | undefined;
2530
+ web_search?: boolean | undefined;
2531
+ greeting?: string | undefined;
2532
+ spec?: string | null | undefined;
2533
+ fileTokenLimit?: string | number | undefined;
2534
+ }>>;
2535
+ /**
2536
+ * TODO: Map the following fields:
2537
+ - presence_penalty -> presencePenalty
2538
+ - frequency_penalty -> frequencyPenalty
2539
+ - stop -> stopSequences
2540
+ */
2541
+ export declare const googleGenConfigSchema: z.ZodOptional<z.ZodObject<{
2542
+ maxOutputTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
2543
+ temperature: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
2544
+ topP: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
2545
+ topK: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
2546
+ presencePenalty: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
2547
+ frequencyPenalty: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
2548
+ stopSequences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2549
+ thinkingConfig: z.ZodOptional<z.ZodObject<{
2550
+ includeThoughts: z.ZodOptional<z.ZodBoolean>;
2551
+ thinkingBudget: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
2552
+ thinkingLevel: z.ZodOptional<z.ZodString>;
2553
+ }, "strip", z.ZodTypeAny, {
2554
+ thinkingBudget?: number | undefined;
2555
+ thinkingLevel?: string | undefined;
2556
+ includeThoughts?: boolean | undefined;
2557
+ }, {
2558
+ thinkingBudget?: string | number | undefined;
2559
+ thinkingLevel?: string | undefined;
2560
+ includeThoughts?: boolean | undefined;
2561
+ }>>;
2562
+ web_search: z.ZodOptional<z.ZodBoolean>;
2563
+ }, "strip", z.ZodTypeAny, {
2564
+ temperature?: number | undefined;
2565
+ topP?: number | undefined;
2566
+ topK?: number | undefined;
2567
+ maxOutputTokens?: number | undefined;
2568
+ web_search?: boolean | undefined;
2569
+ presencePenalty?: number | undefined;
2570
+ frequencyPenalty?: number | undefined;
2571
+ stopSequences?: string[] | undefined;
2572
+ thinkingConfig?: {
2573
+ thinkingBudget?: number | undefined;
2574
+ thinkingLevel?: string | undefined;
2575
+ includeThoughts?: boolean | undefined;
2576
+ } | undefined;
2577
+ }, {
2578
+ temperature?: string | number | undefined;
2579
+ topP?: string | number | undefined;
2580
+ topK?: string | number | undefined;
2581
+ maxOutputTokens?: string | number | undefined;
2582
+ web_search?: boolean | undefined;
2583
+ presencePenalty?: string | number | undefined;
2584
+ frequencyPenalty?: string | number | undefined;
2585
+ stopSequences?: string[] | undefined;
2586
+ thinkingConfig?: {
2587
+ thinkingBudget?: string | number | undefined;
2588
+ thinkingLevel?: string | undefined;
2589
+ includeThoughts?: boolean | undefined;
2590
+ } | undefined;
2591
+ }>>;
2592
+ export declare function removeNullishValues<T extends Record<string, unknown>>(obj: T, removeEmptyStrings?: boolean): Partial<T>;
2593
+ export declare const assistantSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
2594
+ conversationId: z.ZodNullable<z.ZodString>;
2595
+ endpoint: z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>;
2596
+ endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>>;
2597
+ isArchived: z.ZodOptional<z.ZodBoolean>;
2598
+ title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
2599
+ user: z.ZodOptional<z.ZodString>;
2600
+ messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2601
+ tools: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodObject<{
2602
+ name: z.ZodString;
2603
+ pluginKey: z.ZodString;
2604
+ description: z.ZodOptional<z.ZodString>;
2605
+ icon: z.ZodOptional<z.ZodString>;
2606
+ authConfig: z.ZodOptional<z.ZodArray<z.ZodObject<{
2607
+ authField: z.ZodString;
2608
+ label: z.ZodString;
2609
+ description: z.ZodString;
2610
+ optional: z.ZodOptional<z.ZodBoolean>;
2611
+ }, "strip", z.ZodTypeAny, {
2612
+ description: string;
2613
+ authField: string;
2614
+ label: string;
2615
+ optional?: boolean | undefined;
2616
+ }, {
2617
+ description: string;
2618
+ authField: string;
2619
+ label: string;
2620
+ optional?: boolean | undefined;
2621
+ }>, "many">>;
2622
+ authenticated: z.ZodOptional<z.ZodBoolean>;
2623
+ chatMenu: z.ZodOptional<z.ZodBoolean>;
2624
+ isButton: z.ZodOptional<z.ZodBoolean>;
2625
+ toolkit: z.ZodOptional<z.ZodBoolean>;
2626
+ }, "strip", z.ZodTypeAny, {
2627
+ name: string;
2628
+ pluginKey: string;
2629
+ description?: string | undefined;
2630
+ icon?: string | undefined;
2631
+ authConfig?: {
2632
+ description: string;
2633
+ authField: string;
2634
+ label: string;
2635
+ optional?: boolean | undefined;
2636
+ }[] | undefined;
2637
+ authenticated?: boolean | undefined;
2638
+ chatMenu?: boolean | undefined;
2639
+ isButton?: boolean | undefined;
2640
+ toolkit?: boolean | undefined;
2641
+ }, {
2642
+ name: string;
2643
+ pluginKey: string;
2644
+ description?: string | undefined;
2645
+ icon?: string | undefined;
2646
+ authConfig?: {
2647
+ description: string;
2648
+ authField: string;
2649
+ label: string;
2650
+ optional?: boolean | undefined;
2651
+ }[] | undefined;
2652
+ authenticated?: boolean | undefined;
2653
+ chatMenu?: boolean | undefined;
2654
+ isButton?: boolean | undefined;
2655
+ toolkit?: boolean | undefined;
2656
+ }>, "many">, z.ZodArray<z.ZodString, "many">]>>;
2657
+ modelLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2658
+ userLabel: z.ZodOptional<z.ZodString>;
2659
+ model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2660
+ promptPrefix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2661
+ temperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2662
+ topP: z.ZodOptional<z.ZodNumber>;
2663
+ topK: z.ZodOptional<z.ZodNumber>;
2664
+ top_p: z.ZodOptional<z.ZodNumber>;
2665
+ frequency_penalty: z.ZodOptional<z.ZodNumber>;
2666
+ presence_penalty: z.ZodOptional<z.ZodNumber>;
2667
+ parentMessageId: z.ZodOptional<z.ZodString>;
2668
+ maxOutputTokens: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>>;
2669
+ maxContextTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
2670
+ max_tokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
2671
+ promptCache: z.ZodOptional<z.ZodBoolean>;
2672
+ system: z.ZodOptional<z.ZodString>;
2673
+ thinking: z.ZodOptional<z.ZodBoolean>;
2674
+ thinkingBudget: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
2675
+ thinkingLevel: z.ZodOptional<z.ZodNativeEnum<typeof ThinkingLevel>>;
2676
+ stream: z.ZodOptional<z.ZodBoolean>;
2677
+ artifacts: z.ZodOptional<z.ZodString>;
2678
+ context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2679
+ examples: z.ZodOptional<z.ZodArray<z.ZodObject<{
2680
+ input: z.ZodObject<{
2681
+ content: z.ZodString;
2682
+ }, "strip", z.ZodTypeAny, {
2683
+ content: string;
2684
+ }, {
2685
+ content: string;
2686
+ }>;
2687
+ output: z.ZodObject<{
2688
+ content: z.ZodString;
2689
+ }, "strip", z.ZodTypeAny, {
2690
+ content: string;
2691
+ }, {
2692
+ content: string;
2693
+ }>;
2694
+ }, "strip", z.ZodTypeAny, {
2695
+ input: {
2696
+ content: string;
2697
+ };
2698
+ output: {
2699
+ content: string;
2700
+ };
2701
+ }, {
2702
+ input: {
2703
+ content: string;
2704
+ };
2705
+ output: {
2706
+ content: string;
2707
+ };
2708
+ }>, "many">>;
2709
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2710
+ createdAt: z.ZodString;
2711
+ updatedAt: z.ZodString;
2712
+ resendFiles: z.ZodOptional<z.ZodBoolean>;
2713
+ file_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2714
+ imageDetail: z.ZodOptional<z.ZodNativeEnum<typeof ImageDetail>>;
2715
+ reasoning_effort: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof ReasoningEffort>>>;
2716
+ reasoning_summary: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof ReasoningSummary>>>;
2717
+ verbosity: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof Verbosity>>>;
2718
+ useResponsesApi: z.ZodOptional<z.ZodBoolean>;
2719
+ effort: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof AnthropicEffort>>>;
2720
+ web_search: z.ZodOptional<z.ZodBoolean>;
2721
+ disableStreaming: z.ZodOptional<z.ZodBoolean>;
2722
+ assistant_id: z.ZodOptional<z.ZodString>;
2723
+ agent_id: z.ZodOptional<z.ZodString>;
2724
+ region: z.ZodOptional<z.ZodString>;
2725
+ maxTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
2726
+ additionalModelRequestFields: z.ZodOptional<z.ZodType<DocumentTypeValue, z.ZodTypeDef, DocumentTypeValue>>;
2727
+ instructions: z.ZodOptional<z.ZodString>;
2728
+ additional_instructions: z.ZodOptional<z.ZodString>;
2729
+ append_current_datetime: z.ZodOptional<z.ZodBoolean>;
2730
+ /** Used to overwrite active conversation settings when saving a Preset */
2731
+ presetOverride: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2732
+ stop: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2733
+ greeting: z.ZodOptional<z.ZodString>;
2734
+ spec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2735
+ iconURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2736
+ expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2737
+ fileTokenLimit: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
2738
+ /** @deprecated */
2739
+ resendImages: z.ZodOptional<z.ZodBoolean>;
2740
+ /** @deprecated Prefer `modelLabel` over `chatGptLabel` */
2741
+ chatGptLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2742
+ }, "model" | "iconURL" | "promptPrefix" | "artifacts" | "assistant_id" | "instructions" | "append_current_datetime" | "greeting" | "spec">, "strip", z.ZodTypeAny, {
2743
+ model?: string | null | undefined;
2744
+ iconURL?: string | null | undefined;
2745
+ promptPrefix?: string | null | undefined;
2746
+ artifacts?: string | undefined;
2747
+ assistant_id?: string | undefined;
2748
+ instructions?: string | undefined;
2749
+ append_current_datetime?: boolean | undefined;
2750
+ greeting?: string | undefined;
2751
+ spec?: string | null | undefined;
2752
+ }, {
2753
+ model?: string | null | undefined;
2754
+ iconURL?: string | null | undefined;
2755
+ promptPrefix?: string | null | undefined;
2756
+ artifacts?: string | undefined;
2757
+ assistant_id?: string | undefined;
2758
+ instructions?: string | undefined;
2759
+ append_current_datetime?: boolean | undefined;
2760
+ greeting?: string | undefined;
2761
+ spec?: string | null | undefined;
2762
+ }>, {
2763
+ model: string;
2764
+ assistant_id: string | undefined;
2765
+ instructions: string | undefined;
2766
+ promptPrefix: string | null;
2767
+ iconURL: string | undefined;
2768
+ greeting: string | undefined;
2769
+ spec: string | undefined;
2770
+ append_current_datetime: boolean;
2771
+ artifacts?: string | undefined;
2772
+ }, {
2773
+ model?: string | null | undefined;
2774
+ iconURL?: string | null | undefined;
2775
+ promptPrefix?: string | null | undefined;
2776
+ artifacts?: string | undefined;
2777
+ assistant_id?: string | undefined;
2778
+ instructions?: string | undefined;
2779
+ append_current_datetime?: boolean | undefined;
2780
+ greeting?: string | undefined;
2781
+ spec?: string | null | undefined;
2782
+ }>>;
2783
+ export declare const compactAssistantSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
2784
+ conversationId: z.ZodNullable<z.ZodString>;
2785
+ endpoint: z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>;
2786
+ endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>>;
2787
+ isArchived: z.ZodOptional<z.ZodBoolean>;
2788
+ title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
2789
+ user: z.ZodOptional<z.ZodString>;
2790
+ messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2791
+ tools: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodObject<{
2792
+ name: z.ZodString;
2793
+ pluginKey: z.ZodString;
2794
+ description: z.ZodOptional<z.ZodString>;
2795
+ icon: z.ZodOptional<z.ZodString>;
2796
+ authConfig: z.ZodOptional<z.ZodArray<z.ZodObject<{
2797
+ authField: z.ZodString;
2798
+ label: z.ZodString;
2799
+ description: z.ZodString;
2800
+ optional: z.ZodOptional<z.ZodBoolean>;
2801
+ }, "strip", z.ZodTypeAny, {
2802
+ description: string;
2803
+ authField: string;
2804
+ label: string;
2805
+ optional?: boolean | undefined;
2806
+ }, {
2807
+ description: string;
2808
+ authField: string;
2809
+ label: string;
2810
+ optional?: boolean | undefined;
2811
+ }>, "many">>;
2812
+ authenticated: z.ZodOptional<z.ZodBoolean>;
2813
+ chatMenu: z.ZodOptional<z.ZodBoolean>;
2814
+ isButton: z.ZodOptional<z.ZodBoolean>;
2815
+ toolkit: z.ZodOptional<z.ZodBoolean>;
2816
+ }, "strip", z.ZodTypeAny, {
2817
+ name: string;
2818
+ pluginKey: string;
2819
+ description?: string | undefined;
2820
+ icon?: string | undefined;
2821
+ authConfig?: {
2822
+ description: string;
2823
+ authField: string;
2824
+ label: string;
2825
+ optional?: boolean | undefined;
2826
+ }[] | undefined;
2827
+ authenticated?: boolean | undefined;
2828
+ chatMenu?: boolean | undefined;
2829
+ isButton?: boolean | undefined;
2830
+ toolkit?: boolean | undefined;
2831
+ }, {
2832
+ name: string;
2833
+ pluginKey: string;
2834
+ description?: string | undefined;
2835
+ icon?: string | undefined;
2836
+ authConfig?: {
2837
+ description: string;
2838
+ authField: string;
2839
+ label: string;
2840
+ optional?: boolean | undefined;
2841
+ }[] | undefined;
2842
+ authenticated?: boolean | undefined;
2843
+ chatMenu?: boolean | undefined;
2844
+ isButton?: boolean | undefined;
2845
+ toolkit?: boolean | undefined;
2846
+ }>, "many">, z.ZodArray<z.ZodString, "many">]>>;
2847
+ modelLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2848
+ userLabel: z.ZodOptional<z.ZodString>;
2849
+ model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2850
+ promptPrefix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2851
+ temperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2852
+ topP: z.ZodOptional<z.ZodNumber>;
2853
+ topK: z.ZodOptional<z.ZodNumber>;
2854
+ top_p: z.ZodOptional<z.ZodNumber>;
2855
+ frequency_penalty: z.ZodOptional<z.ZodNumber>;
2856
+ presence_penalty: z.ZodOptional<z.ZodNumber>;
2857
+ parentMessageId: z.ZodOptional<z.ZodString>;
2858
+ maxOutputTokens: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>>;
2859
+ maxContextTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
2860
+ max_tokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
2861
+ promptCache: z.ZodOptional<z.ZodBoolean>;
2862
+ system: z.ZodOptional<z.ZodString>;
2863
+ thinking: z.ZodOptional<z.ZodBoolean>;
2864
+ thinkingBudget: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
2865
+ thinkingLevel: z.ZodOptional<z.ZodNativeEnum<typeof ThinkingLevel>>;
2866
+ stream: z.ZodOptional<z.ZodBoolean>;
2867
+ artifacts: z.ZodOptional<z.ZodString>;
2868
+ context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2869
+ examples: z.ZodOptional<z.ZodArray<z.ZodObject<{
2870
+ input: z.ZodObject<{
2871
+ content: z.ZodString;
2872
+ }, "strip", z.ZodTypeAny, {
2873
+ content: string;
2874
+ }, {
2875
+ content: string;
2876
+ }>;
2877
+ output: z.ZodObject<{
2878
+ content: z.ZodString;
2879
+ }, "strip", z.ZodTypeAny, {
2880
+ content: string;
2881
+ }, {
2882
+ content: string;
2883
+ }>;
2884
+ }, "strip", z.ZodTypeAny, {
2885
+ input: {
2886
+ content: string;
2887
+ };
2888
+ output: {
2889
+ content: string;
2890
+ };
2891
+ }, {
2892
+ input: {
2893
+ content: string;
2894
+ };
2895
+ output: {
2896
+ content: string;
2897
+ };
2898
+ }>, "many">>;
2899
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2900
+ createdAt: z.ZodString;
2901
+ updatedAt: z.ZodString;
2902
+ resendFiles: z.ZodOptional<z.ZodBoolean>;
2903
+ file_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2904
+ imageDetail: z.ZodOptional<z.ZodNativeEnum<typeof ImageDetail>>;
2905
+ reasoning_effort: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof ReasoningEffort>>>;
2906
+ reasoning_summary: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof ReasoningSummary>>>;
2907
+ verbosity: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof Verbosity>>>;
2908
+ useResponsesApi: z.ZodOptional<z.ZodBoolean>;
2909
+ effort: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof AnthropicEffort>>>;
2910
+ web_search: z.ZodOptional<z.ZodBoolean>;
2911
+ disableStreaming: z.ZodOptional<z.ZodBoolean>;
2912
+ assistant_id: z.ZodOptional<z.ZodString>;
2913
+ agent_id: z.ZodOptional<z.ZodString>;
2914
+ region: z.ZodOptional<z.ZodString>;
2915
+ maxTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
2916
+ additionalModelRequestFields: z.ZodOptional<z.ZodType<DocumentTypeValue, z.ZodTypeDef, DocumentTypeValue>>;
2917
+ instructions: z.ZodOptional<z.ZodString>;
2918
+ additional_instructions: z.ZodOptional<z.ZodString>;
2919
+ append_current_datetime: z.ZodOptional<z.ZodBoolean>;
2920
+ /** Used to overwrite active conversation settings when saving a Preset */
2921
+ presetOverride: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2922
+ stop: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2923
+ greeting: z.ZodOptional<z.ZodString>;
2924
+ spec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2925
+ iconURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2926
+ expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2927
+ fileTokenLimit: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
2928
+ /** @deprecated */
2929
+ resendImages: z.ZodOptional<z.ZodBoolean>;
2930
+ /** @deprecated Prefer `modelLabel` over `chatGptLabel` */
2931
+ chatGptLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2932
+ }, "model" | "iconURL" | "promptPrefix" | "artifacts" | "assistant_id" | "instructions" | "greeting" | "spec">, "strip", z.ZodTypeAny, {
2933
+ model?: string | null | undefined;
2934
+ iconURL?: string | null | undefined;
2935
+ promptPrefix?: string | null | undefined;
2936
+ artifacts?: string | undefined;
2937
+ assistant_id?: string | undefined;
2938
+ instructions?: string | undefined;
2939
+ greeting?: string | undefined;
2940
+ spec?: string | null | undefined;
2941
+ }, {
2942
+ model?: string | null | undefined;
2943
+ iconURL?: string | null | undefined;
2944
+ promptPrefix?: string | null | undefined;
2945
+ artifacts?: string | undefined;
2946
+ assistant_id?: string | undefined;
2947
+ instructions?: string | undefined;
2948
+ greeting?: string | undefined;
2949
+ spec?: string | null | undefined;
2950
+ }>, Partial<{
2951
+ model?: string | null | undefined;
2952
+ iconURL?: string | null | undefined;
2953
+ promptPrefix?: string | null | undefined;
2954
+ artifacts?: string | undefined;
2955
+ assistant_id?: string | undefined;
2956
+ instructions?: string | undefined;
2957
+ greeting?: string | undefined;
2958
+ spec?: string | null | undefined;
2959
+ }>, {
2960
+ model?: string | null | undefined;
2961
+ iconURL?: string | null | undefined;
2962
+ promptPrefix?: string | null | undefined;
2963
+ artifacts?: string | undefined;
2964
+ assistant_id?: string | undefined;
2965
+ instructions?: string | undefined;
2966
+ greeting?: string | undefined;
2967
+ spec?: string | null | undefined;
2968
+ }>>;
2969
+ export declare const agentsBaseSchema: z.ZodObject<Pick<{
2970
+ conversationId: z.ZodNullable<z.ZodString>;
2971
+ endpoint: z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>;
2972
+ endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>>;
2973
+ isArchived: z.ZodOptional<z.ZodBoolean>;
2974
+ title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
2975
+ user: z.ZodOptional<z.ZodString>;
2976
+ messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2977
+ tools: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodObject<{
2978
+ name: z.ZodString;
2979
+ pluginKey: z.ZodString;
2980
+ description: z.ZodOptional<z.ZodString>;
2981
+ icon: z.ZodOptional<z.ZodString>;
2982
+ authConfig: z.ZodOptional<z.ZodArray<z.ZodObject<{
2983
+ authField: z.ZodString;
2984
+ label: z.ZodString;
2985
+ description: z.ZodString;
2986
+ optional: z.ZodOptional<z.ZodBoolean>;
2987
+ }, "strip", z.ZodTypeAny, {
2988
+ description: string;
2989
+ authField: string;
2990
+ label: string;
2991
+ optional?: boolean | undefined;
2992
+ }, {
2993
+ description: string;
2994
+ authField: string;
2995
+ label: string;
2996
+ optional?: boolean | undefined;
2997
+ }>, "many">>;
2998
+ authenticated: z.ZodOptional<z.ZodBoolean>;
2999
+ chatMenu: z.ZodOptional<z.ZodBoolean>;
3000
+ isButton: z.ZodOptional<z.ZodBoolean>;
3001
+ toolkit: z.ZodOptional<z.ZodBoolean>;
3002
+ }, "strip", z.ZodTypeAny, {
3003
+ name: string;
3004
+ pluginKey: string;
3005
+ description?: string | undefined;
3006
+ icon?: string | undefined;
3007
+ authConfig?: {
3008
+ description: string;
3009
+ authField: string;
3010
+ label: string;
3011
+ optional?: boolean | undefined;
3012
+ }[] | undefined;
3013
+ authenticated?: boolean | undefined;
3014
+ chatMenu?: boolean | undefined;
3015
+ isButton?: boolean | undefined;
3016
+ toolkit?: boolean | undefined;
3017
+ }, {
3018
+ name: string;
3019
+ pluginKey: string;
3020
+ description?: string | undefined;
3021
+ icon?: string | undefined;
3022
+ authConfig?: {
3023
+ description: string;
3024
+ authField: string;
3025
+ label: string;
3026
+ optional?: boolean | undefined;
3027
+ }[] | undefined;
3028
+ authenticated?: boolean | undefined;
3029
+ chatMenu?: boolean | undefined;
3030
+ isButton?: boolean | undefined;
3031
+ toolkit?: boolean | undefined;
3032
+ }>, "many">, z.ZodArray<z.ZodString, "many">]>>;
3033
+ modelLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3034
+ userLabel: z.ZodOptional<z.ZodString>;
3035
+ model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3036
+ promptPrefix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3037
+ temperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3038
+ topP: z.ZodOptional<z.ZodNumber>;
3039
+ topK: z.ZodOptional<z.ZodNumber>;
3040
+ top_p: z.ZodOptional<z.ZodNumber>;
3041
+ frequency_penalty: z.ZodOptional<z.ZodNumber>;
3042
+ presence_penalty: z.ZodOptional<z.ZodNumber>;
3043
+ parentMessageId: z.ZodOptional<z.ZodString>;
3044
+ maxOutputTokens: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>>;
3045
+ maxContextTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
3046
+ max_tokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
3047
+ promptCache: z.ZodOptional<z.ZodBoolean>;
3048
+ system: z.ZodOptional<z.ZodString>;
3049
+ thinking: z.ZodOptional<z.ZodBoolean>;
3050
+ thinkingBudget: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
3051
+ thinkingLevel: z.ZodOptional<z.ZodNativeEnum<typeof ThinkingLevel>>;
3052
+ stream: z.ZodOptional<z.ZodBoolean>;
3053
+ artifacts: z.ZodOptional<z.ZodString>;
3054
+ context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3055
+ examples: z.ZodOptional<z.ZodArray<z.ZodObject<{
3056
+ input: z.ZodObject<{
3057
+ content: z.ZodString;
3058
+ }, "strip", z.ZodTypeAny, {
3059
+ content: string;
3060
+ }, {
3061
+ content: string;
3062
+ }>;
3063
+ output: z.ZodObject<{
3064
+ content: z.ZodString;
3065
+ }, "strip", z.ZodTypeAny, {
3066
+ content: string;
3067
+ }, {
3068
+ content: string;
3069
+ }>;
3070
+ }, "strip", z.ZodTypeAny, {
3071
+ input: {
3072
+ content: string;
3073
+ };
3074
+ output: {
3075
+ content: string;
3076
+ };
3077
+ }, {
3078
+ input: {
3079
+ content: string;
3080
+ };
3081
+ output: {
3082
+ content: string;
3083
+ };
3084
+ }>, "many">>;
3085
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3086
+ createdAt: z.ZodString;
3087
+ updatedAt: z.ZodString;
3088
+ resendFiles: z.ZodOptional<z.ZodBoolean>;
3089
+ file_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3090
+ imageDetail: z.ZodOptional<z.ZodNativeEnum<typeof ImageDetail>>;
3091
+ reasoning_effort: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof ReasoningEffort>>>;
3092
+ reasoning_summary: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof ReasoningSummary>>>;
3093
+ verbosity: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof Verbosity>>>;
3094
+ useResponsesApi: z.ZodOptional<z.ZodBoolean>;
3095
+ effort: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof AnthropicEffort>>>;
3096
+ web_search: z.ZodOptional<z.ZodBoolean>;
3097
+ disableStreaming: z.ZodOptional<z.ZodBoolean>;
3098
+ assistant_id: z.ZodOptional<z.ZodString>;
3099
+ agent_id: z.ZodOptional<z.ZodString>;
3100
+ region: z.ZodOptional<z.ZodString>;
3101
+ maxTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
3102
+ additionalModelRequestFields: z.ZodOptional<z.ZodType<DocumentTypeValue, z.ZodTypeDef, DocumentTypeValue>>;
3103
+ instructions: z.ZodOptional<z.ZodString>;
3104
+ additional_instructions: z.ZodOptional<z.ZodString>;
3105
+ append_current_datetime: z.ZodOptional<z.ZodBoolean>;
3106
+ /** Used to overwrite active conversation settings when saving a Preset */
3107
+ presetOverride: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3108
+ stop: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3109
+ greeting: z.ZodOptional<z.ZodString>;
3110
+ spec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3111
+ iconURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3112
+ expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3113
+ fileTokenLimit: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
3114
+ /** @deprecated */
3115
+ resendImages: z.ZodOptional<z.ZodBoolean>;
3116
+ /** @deprecated Prefer `modelLabel` over `chatGptLabel` */
3117
+ chatGptLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3118
+ }, "model" | "iconURL" | "modelLabel" | "promptPrefix" | "temperature" | "top_p" | "frequency_penalty" | "presence_penalty" | "maxContextTokens" | "resendFiles" | "imageDetail" | "agent_id" | "instructions" | "greeting">, "strip", z.ZodTypeAny, {
3119
+ model?: string | null | undefined;
3120
+ iconURL?: string | null | undefined;
3121
+ modelLabel?: string | null | undefined;
3122
+ promptPrefix?: string | null | undefined;
3123
+ temperature?: number | null | undefined;
3124
+ top_p?: number | undefined;
3125
+ frequency_penalty?: number | undefined;
3126
+ presence_penalty?: number | undefined;
3127
+ maxContextTokens?: number | undefined;
3128
+ resendFiles?: boolean | undefined;
3129
+ imageDetail?: ImageDetail | undefined;
3130
+ agent_id?: string | undefined;
3131
+ instructions?: string | undefined;
3132
+ greeting?: string | undefined;
3133
+ }, {
3134
+ model?: string | null | undefined;
3135
+ iconURL?: string | null | undefined;
3136
+ modelLabel?: string | null | undefined;
3137
+ promptPrefix?: string | null | undefined;
3138
+ temperature?: number | null | undefined;
3139
+ top_p?: number | undefined;
3140
+ frequency_penalty?: number | undefined;
3141
+ presence_penalty?: number | undefined;
3142
+ maxContextTokens?: string | number | undefined;
3143
+ resendFiles?: boolean | undefined;
3144
+ imageDetail?: ImageDetail | undefined;
3145
+ agent_id?: string | undefined;
3146
+ instructions?: string | undefined;
3147
+ greeting?: string | undefined;
3148
+ }>;
3149
+ export declare const agentsSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
3150
+ conversationId: z.ZodNullable<z.ZodString>;
3151
+ endpoint: z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>;
3152
+ endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>>;
3153
+ isArchived: z.ZodOptional<z.ZodBoolean>;
3154
+ title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
3155
+ user: z.ZodOptional<z.ZodString>;
3156
+ messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3157
+ tools: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodObject<{
3158
+ name: z.ZodString;
3159
+ pluginKey: z.ZodString;
3160
+ description: z.ZodOptional<z.ZodString>;
3161
+ icon: z.ZodOptional<z.ZodString>;
3162
+ authConfig: z.ZodOptional<z.ZodArray<z.ZodObject<{
3163
+ authField: z.ZodString;
3164
+ label: z.ZodString;
3165
+ description: z.ZodString;
3166
+ optional: z.ZodOptional<z.ZodBoolean>;
3167
+ }, "strip", z.ZodTypeAny, {
3168
+ description: string;
3169
+ authField: string;
3170
+ label: string;
3171
+ optional?: boolean | undefined;
3172
+ }, {
3173
+ description: string;
3174
+ authField: string;
3175
+ label: string;
3176
+ optional?: boolean | undefined;
3177
+ }>, "many">>;
3178
+ authenticated: z.ZodOptional<z.ZodBoolean>;
3179
+ chatMenu: z.ZodOptional<z.ZodBoolean>;
3180
+ isButton: z.ZodOptional<z.ZodBoolean>;
3181
+ toolkit: z.ZodOptional<z.ZodBoolean>;
3182
+ }, "strip", z.ZodTypeAny, {
3183
+ name: string;
3184
+ pluginKey: string;
3185
+ description?: string | undefined;
3186
+ icon?: string | undefined;
3187
+ authConfig?: {
3188
+ description: string;
3189
+ authField: string;
3190
+ label: string;
3191
+ optional?: boolean | undefined;
3192
+ }[] | undefined;
3193
+ authenticated?: boolean | undefined;
3194
+ chatMenu?: boolean | undefined;
3195
+ isButton?: boolean | undefined;
3196
+ toolkit?: boolean | undefined;
3197
+ }, {
3198
+ name: string;
3199
+ pluginKey: string;
3200
+ description?: string | undefined;
3201
+ icon?: string | undefined;
3202
+ authConfig?: {
3203
+ description: string;
3204
+ authField: string;
3205
+ label: string;
3206
+ optional?: boolean | undefined;
3207
+ }[] | undefined;
3208
+ authenticated?: boolean | undefined;
3209
+ chatMenu?: boolean | undefined;
3210
+ isButton?: boolean | undefined;
3211
+ toolkit?: boolean | undefined;
3212
+ }>, "many">, z.ZodArray<z.ZodString, "many">]>>;
3213
+ modelLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3214
+ userLabel: z.ZodOptional<z.ZodString>;
3215
+ model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3216
+ promptPrefix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3217
+ temperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3218
+ topP: z.ZodOptional<z.ZodNumber>;
3219
+ topK: z.ZodOptional<z.ZodNumber>;
3220
+ top_p: z.ZodOptional<z.ZodNumber>;
3221
+ frequency_penalty: z.ZodOptional<z.ZodNumber>;
3222
+ presence_penalty: z.ZodOptional<z.ZodNumber>;
3223
+ parentMessageId: z.ZodOptional<z.ZodString>;
3224
+ maxOutputTokens: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>>;
3225
+ maxContextTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
3226
+ max_tokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
3227
+ promptCache: z.ZodOptional<z.ZodBoolean>;
3228
+ system: z.ZodOptional<z.ZodString>;
3229
+ thinking: z.ZodOptional<z.ZodBoolean>;
3230
+ thinkingBudget: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
3231
+ thinkingLevel: z.ZodOptional<z.ZodNativeEnum<typeof ThinkingLevel>>;
3232
+ stream: z.ZodOptional<z.ZodBoolean>;
3233
+ artifacts: z.ZodOptional<z.ZodString>;
3234
+ context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3235
+ examples: z.ZodOptional<z.ZodArray<z.ZodObject<{
3236
+ input: z.ZodObject<{
3237
+ content: z.ZodString;
3238
+ }, "strip", z.ZodTypeAny, {
3239
+ content: string;
3240
+ }, {
3241
+ content: string;
3242
+ }>;
3243
+ output: z.ZodObject<{
3244
+ content: z.ZodString;
3245
+ }, "strip", z.ZodTypeAny, {
3246
+ content: string;
3247
+ }, {
3248
+ content: string;
3249
+ }>;
3250
+ }, "strip", z.ZodTypeAny, {
3251
+ input: {
3252
+ content: string;
3253
+ };
3254
+ output: {
3255
+ content: string;
3256
+ };
3257
+ }, {
3258
+ input: {
3259
+ content: string;
3260
+ };
3261
+ output: {
3262
+ content: string;
3263
+ };
3264
+ }>, "many">>;
3265
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3266
+ createdAt: z.ZodString;
3267
+ updatedAt: z.ZodString;
3268
+ resendFiles: z.ZodOptional<z.ZodBoolean>;
3269
+ file_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3270
+ imageDetail: z.ZodOptional<z.ZodNativeEnum<typeof ImageDetail>>;
3271
+ reasoning_effort: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof ReasoningEffort>>>;
3272
+ reasoning_summary: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof ReasoningSummary>>>;
3273
+ verbosity: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof Verbosity>>>;
3274
+ useResponsesApi: z.ZodOptional<z.ZodBoolean>;
3275
+ effort: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof AnthropicEffort>>>;
3276
+ web_search: z.ZodOptional<z.ZodBoolean>;
3277
+ disableStreaming: z.ZodOptional<z.ZodBoolean>;
3278
+ assistant_id: z.ZodOptional<z.ZodString>;
3279
+ agent_id: z.ZodOptional<z.ZodString>;
3280
+ region: z.ZodOptional<z.ZodString>;
3281
+ maxTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
3282
+ additionalModelRequestFields: z.ZodOptional<z.ZodType<DocumentTypeValue, z.ZodTypeDef, DocumentTypeValue>>;
3283
+ instructions: z.ZodOptional<z.ZodString>;
3284
+ additional_instructions: z.ZodOptional<z.ZodString>;
3285
+ append_current_datetime: z.ZodOptional<z.ZodBoolean>;
3286
+ /** Used to overwrite active conversation settings when saving a Preset */
3287
+ presetOverride: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3288
+ stop: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3289
+ greeting: z.ZodOptional<z.ZodString>;
3290
+ spec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3291
+ iconURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3292
+ expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3293
+ fileTokenLimit: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
3294
+ /** @deprecated */
3295
+ resendImages: z.ZodOptional<z.ZodBoolean>;
3296
+ /** @deprecated Prefer `modelLabel` over `chatGptLabel` */
3297
+ chatGptLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3298
+ }, "model" | "iconURL" | "modelLabel" | "promptPrefix" | "temperature" | "top_p" | "frequency_penalty" | "presence_penalty" | "maxContextTokens" | "resendFiles" | "imageDetail" | "agent_id" | "instructions" | "greeting">, "strip", z.ZodTypeAny, {
3299
+ model?: string | null | undefined;
3300
+ iconURL?: string | null | undefined;
3301
+ modelLabel?: string | null | undefined;
3302
+ promptPrefix?: string | null | undefined;
3303
+ temperature?: number | null | undefined;
3304
+ top_p?: number | undefined;
3305
+ frequency_penalty?: number | undefined;
3306
+ presence_penalty?: number | undefined;
3307
+ maxContextTokens?: number | undefined;
3308
+ resendFiles?: boolean | undefined;
3309
+ imageDetail?: ImageDetail | undefined;
3310
+ agent_id?: string | undefined;
3311
+ instructions?: string | undefined;
3312
+ greeting?: string | undefined;
3313
+ }, {
3314
+ model?: string | null | undefined;
3315
+ iconURL?: string | null | undefined;
3316
+ modelLabel?: string | null | undefined;
3317
+ promptPrefix?: string | null | undefined;
3318
+ temperature?: number | null | undefined;
3319
+ top_p?: number | undefined;
3320
+ frequency_penalty?: number | undefined;
3321
+ presence_penalty?: number | undefined;
3322
+ maxContextTokens?: string | number | undefined;
3323
+ resendFiles?: boolean | undefined;
3324
+ imageDetail?: ImageDetail | undefined;
3325
+ agent_id?: string | undefined;
3326
+ instructions?: string | undefined;
3327
+ greeting?: string | undefined;
3328
+ }>, {
3329
+ model: string;
3330
+ modelLabel: string | null;
3331
+ temperature: number;
3332
+ top_p: number;
3333
+ presence_penalty: number;
3334
+ frequency_penalty: number;
3335
+ resendFiles: boolean;
3336
+ imageDetail: ImageDetail;
3337
+ agent_id: string | undefined;
3338
+ instructions: string | undefined;
3339
+ promptPrefix: string | null;
3340
+ iconURL: string | undefined;
3341
+ greeting: string | undefined;
3342
+ maxContextTokens: number | undefined;
3343
+ }, {
3344
+ model?: string | null | undefined;
3345
+ iconURL?: string | null | undefined;
3346
+ modelLabel?: string | null | undefined;
3347
+ promptPrefix?: string | null | undefined;
3348
+ temperature?: number | null | undefined;
3349
+ top_p?: number | undefined;
3350
+ frequency_penalty?: number | undefined;
3351
+ presence_penalty?: number | undefined;
3352
+ maxContextTokens?: string | number | undefined;
3353
+ resendFiles?: boolean | undefined;
3354
+ imageDetail?: ImageDetail | undefined;
3355
+ agent_id?: string | undefined;
3356
+ instructions?: string | undefined;
3357
+ greeting?: string | undefined;
3358
+ }>>;
3359
+ export declare const openAIBaseSchema: z.ZodObject<Pick<{
3360
+ conversationId: z.ZodNullable<z.ZodString>;
3361
+ endpoint: z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>;
3362
+ endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>>;
3363
+ isArchived: z.ZodOptional<z.ZodBoolean>;
3364
+ title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
3365
+ user: z.ZodOptional<z.ZodString>;
3366
+ messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3367
+ tools: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodObject<{
3368
+ name: z.ZodString;
3369
+ pluginKey: z.ZodString;
3370
+ description: z.ZodOptional<z.ZodString>;
3371
+ icon: z.ZodOptional<z.ZodString>;
3372
+ authConfig: z.ZodOptional<z.ZodArray<z.ZodObject<{
3373
+ authField: z.ZodString;
3374
+ label: z.ZodString;
3375
+ description: z.ZodString;
3376
+ optional: z.ZodOptional<z.ZodBoolean>;
3377
+ }, "strip", z.ZodTypeAny, {
3378
+ description: string;
3379
+ authField: string;
3380
+ label: string;
3381
+ optional?: boolean | undefined;
3382
+ }, {
3383
+ description: string;
3384
+ authField: string;
3385
+ label: string;
3386
+ optional?: boolean | undefined;
3387
+ }>, "many">>;
3388
+ authenticated: z.ZodOptional<z.ZodBoolean>;
3389
+ chatMenu: z.ZodOptional<z.ZodBoolean>;
3390
+ isButton: z.ZodOptional<z.ZodBoolean>;
3391
+ toolkit: z.ZodOptional<z.ZodBoolean>;
3392
+ }, "strip", z.ZodTypeAny, {
3393
+ name: string;
3394
+ pluginKey: string;
3395
+ description?: string | undefined;
3396
+ icon?: string | undefined;
3397
+ authConfig?: {
3398
+ description: string;
3399
+ authField: string;
3400
+ label: string;
3401
+ optional?: boolean | undefined;
3402
+ }[] | undefined;
3403
+ authenticated?: boolean | undefined;
3404
+ chatMenu?: boolean | undefined;
3405
+ isButton?: boolean | undefined;
3406
+ toolkit?: boolean | undefined;
3407
+ }, {
3408
+ name: string;
3409
+ pluginKey: string;
3410
+ description?: string | undefined;
3411
+ icon?: string | undefined;
3412
+ authConfig?: {
3413
+ description: string;
3414
+ authField: string;
3415
+ label: string;
3416
+ optional?: boolean | undefined;
3417
+ }[] | undefined;
3418
+ authenticated?: boolean | undefined;
3419
+ chatMenu?: boolean | undefined;
3420
+ isButton?: boolean | undefined;
3421
+ toolkit?: boolean | undefined;
3422
+ }>, "many">, z.ZodArray<z.ZodString, "many">]>>;
3423
+ modelLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3424
+ userLabel: z.ZodOptional<z.ZodString>;
3425
+ model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3426
+ promptPrefix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3427
+ temperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3428
+ topP: z.ZodOptional<z.ZodNumber>;
3429
+ topK: z.ZodOptional<z.ZodNumber>;
3430
+ top_p: z.ZodOptional<z.ZodNumber>;
3431
+ frequency_penalty: z.ZodOptional<z.ZodNumber>;
3432
+ presence_penalty: z.ZodOptional<z.ZodNumber>;
3433
+ parentMessageId: z.ZodOptional<z.ZodString>;
3434
+ maxOutputTokens: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>>;
3435
+ maxContextTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
3436
+ max_tokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
3437
+ promptCache: z.ZodOptional<z.ZodBoolean>;
3438
+ system: z.ZodOptional<z.ZodString>;
3439
+ thinking: z.ZodOptional<z.ZodBoolean>;
3440
+ thinkingBudget: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
3441
+ thinkingLevel: z.ZodOptional<z.ZodNativeEnum<typeof ThinkingLevel>>;
3442
+ stream: z.ZodOptional<z.ZodBoolean>;
3443
+ artifacts: z.ZodOptional<z.ZodString>;
3444
+ context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3445
+ examples: z.ZodOptional<z.ZodArray<z.ZodObject<{
3446
+ input: z.ZodObject<{
3447
+ content: z.ZodString;
3448
+ }, "strip", z.ZodTypeAny, {
3449
+ content: string;
3450
+ }, {
3451
+ content: string;
3452
+ }>;
3453
+ output: z.ZodObject<{
3454
+ content: z.ZodString;
3455
+ }, "strip", z.ZodTypeAny, {
3456
+ content: string;
3457
+ }, {
3458
+ content: string;
3459
+ }>;
3460
+ }, "strip", z.ZodTypeAny, {
3461
+ input: {
3462
+ content: string;
3463
+ };
3464
+ output: {
3465
+ content: string;
3466
+ };
3467
+ }, {
3468
+ input: {
3469
+ content: string;
3470
+ };
3471
+ output: {
3472
+ content: string;
3473
+ };
3474
+ }>, "many">>;
3475
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3476
+ createdAt: z.ZodString;
3477
+ updatedAt: z.ZodString;
3478
+ resendFiles: z.ZodOptional<z.ZodBoolean>;
3479
+ file_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3480
+ imageDetail: z.ZodOptional<z.ZodNativeEnum<typeof ImageDetail>>;
3481
+ reasoning_effort: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof ReasoningEffort>>>;
3482
+ reasoning_summary: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof ReasoningSummary>>>;
3483
+ verbosity: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof Verbosity>>>;
3484
+ useResponsesApi: z.ZodOptional<z.ZodBoolean>;
3485
+ effort: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof AnthropicEffort>>>;
3486
+ web_search: z.ZodOptional<z.ZodBoolean>;
3487
+ disableStreaming: z.ZodOptional<z.ZodBoolean>;
3488
+ assistant_id: z.ZodOptional<z.ZodString>;
3489
+ agent_id: z.ZodOptional<z.ZodString>;
3490
+ region: z.ZodOptional<z.ZodString>;
3491
+ maxTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
3492
+ additionalModelRequestFields: z.ZodOptional<z.ZodType<DocumentTypeValue, z.ZodTypeDef, DocumentTypeValue>>;
3493
+ instructions: z.ZodOptional<z.ZodString>;
3494
+ additional_instructions: z.ZodOptional<z.ZodString>;
3495
+ append_current_datetime: z.ZodOptional<z.ZodBoolean>;
3496
+ /** Used to overwrite active conversation settings when saving a Preset */
3497
+ presetOverride: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3498
+ stop: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3499
+ greeting: z.ZodOptional<z.ZodString>;
3500
+ spec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3501
+ iconURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3502
+ expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3503
+ fileTokenLimit: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
3504
+ /** @deprecated */
3505
+ resendImages: z.ZodOptional<z.ZodBoolean>;
3506
+ /** @deprecated Prefer `modelLabel` over `chatGptLabel` */
3507
+ chatGptLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3508
+ }, "model" | "iconURL" | "modelLabel" | "promptPrefix" | "temperature" | "top_p" | "frequency_penalty" | "presence_penalty" | "maxContextTokens" | "max_tokens" | "artifacts" | "resendFiles" | "imageDetail" | "reasoning_effort" | "reasoning_summary" | "verbosity" | "useResponsesApi" | "web_search" | "disableStreaming" | "stop" | "greeting" | "spec" | "fileTokenLimit" | "chatGptLabel">, "strip", z.ZodTypeAny, {
3509
+ model?: string | null | undefined;
3510
+ iconURL?: string | null | undefined;
3511
+ modelLabel?: string | null | undefined;
3512
+ promptPrefix?: string | null | undefined;
3513
+ temperature?: number | null | undefined;
3514
+ top_p?: number | undefined;
3515
+ frequency_penalty?: number | undefined;
3516
+ presence_penalty?: number | undefined;
3517
+ maxContextTokens?: number | undefined;
3518
+ max_tokens?: number | undefined;
3519
+ artifacts?: string | undefined;
3520
+ resendFiles?: boolean | undefined;
3521
+ imageDetail?: ImageDetail | undefined;
3522
+ reasoning_effort?: ReasoningEffort | null | undefined;
3523
+ reasoning_summary?: ReasoningSummary | null | undefined;
3524
+ verbosity?: Verbosity | null | undefined;
3525
+ useResponsesApi?: boolean | undefined;
3526
+ web_search?: boolean | undefined;
3527
+ disableStreaming?: boolean | undefined;
3528
+ stop?: string[] | undefined;
3529
+ greeting?: string | undefined;
3530
+ spec?: string | null | undefined;
3531
+ fileTokenLimit?: number | undefined;
3532
+ chatGptLabel?: string | null | undefined;
3533
+ }, {
3534
+ model?: string | null | undefined;
3535
+ iconURL?: string | null | undefined;
3536
+ modelLabel?: string | null | undefined;
3537
+ promptPrefix?: string | null | undefined;
3538
+ temperature?: number | null | undefined;
3539
+ top_p?: number | undefined;
3540
+ frequency_penalty?: number | undefined;
3541
+ presence_penalty?: number | undefined;
3542
+ maxContextTokens?: string | number | undefined;
3543
+ max_tokens?: string | number | undefined;
3544
+ artifacts?: string | undefined;
3545
+ resendFiles?: boolean | undefined;
3546
+ imageDetail?: ImageDetail | undefined;
3547
+ reasoning_effort?: ReasoningEffort | null | undefined;
3548
+ reasoning_summary?: ReasoningSummary | null | undefined;
3549
+ verbosity?: Verbosity | null | undefined;
3550
+ useResponsesApi?: boolean | undefined;
3551
+ web_search?: boolean | undefined;
3552
+ disableStreaming?: boolean | undefined;
3553
+ stop?: string[] | undefined;
3554
+ greeting?: string | undefined;
3555
+ spec?: string | null | undefined;
3556
+ fileTokenLimit?: string | number | undefined;
3557
+ chatGptLabel?: string | null | undefined;
3558
+ }>;
3559
+ export declare const openAISchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
3560
+ conversationId: z.ZodNullable<z.ZodString>;
3561
+ endpoint: z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>;
3562
+ endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>>;
3563
+ isArchived: z.ZodOptional<z.ZodBoolean>;
3564
+ title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
3565
+ user: z.ZodOptional<z.ZodString>;
3566
+ messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3567
+ tools: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodObject<{
3568
+ name: z.ZodString;
3569
+ pluginKey: z.ZodString;
3570
+ description: z.ZodOptional<z.ZodString>;
3571
+ icon: z.ZodOptional<z.ZodString>;
3572
+ authConfig: z.ZodOptional<z.ZodArray<z.ZodObject<{
3573
+ authField: z.ZodString;
3574
+ label: z.ZodString;
3575
+ description: z.ZodString;
3576
+ optional: z.ZodOptional<z.ZodBoolean>;
3577
+ }, "strip", z.ZodTypeAny, {
3578
+ description: string;
3579
+ authField: string;
3580
+ label: string;
3581
+ optional?: boolean | undefined;
3582
+ }, {
3583
+ description: string;
3584
+ authField: string;
3585
+ label: string;
3586
+ optional?: boolean | undefined;
3587
+ }>, "many">>;
3588
+ authenticated: z.ZodOptional<z.ZodBoolean>;
3589
+ chatMenu: z.ZodOptional<z.ZodBoolean>;
3590
+ isButton: z.ZodOptional<z.ZodBoolean>;
3591
+ toolkit: z.ZodOptional<z.ZodBoolean>;
3592
+ }, "strip", z.ZodTypeAny, {
3593
+ name: string;
3594
+ pluginKey: string;
3595
+ description?: string | undefined;
3596
+ icon?: string | undefined;
3597
+ authConfig?: {
3598
+ description: string;
3599
+ authField: string;
3600
+ label: string;
3601
+ optional?: boolean | undefined;
3602
+ }[] | undefined;
3603
+ authenticated?: boolean | undefined;
3604
+ chatMenu?: boolean | undefined;
3605
+ isButton?: boolean | undefined;
3606
+ toolkit?: boolean | undefined;
3607
+ }, {
3608
+ name: string;
3609
+ pluginKey: string;
3610
+ description?: string | undefined;
3611
+ icon?: string | undefined;
3612
+ authConfig?: {
3613
+ description: string;
3614
+ authField: string;
3615
+ label: string;
3616
+ optional?: boolean | undefined;
3617
+ }[] | undefined;
3618
+ authenticated?: boolean | undefined;
3619
+ chatMenu?: boolean | undefined;
3620
+ isButton?: boolean | undefined;
3621
+ toolkit?: boolean | undefined;
3622
+ }>, "many">, z.ZodArray<z.ZodString, "many">]>>;
3623
+ modelLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3624
+ userLabel: z.ZodOptional<z.ZodString>;
3625
+ model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3626
+ promptPrefix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3627
+ temperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3628
+ topP: z.ZodOptional<z.ZodNumber>;
3629
+ topK: z.ZodOptional<z.ZodNumber>;
3630
+ top_p: z.ZodOptional<z.ZodNumber>;
3631
+ frequency_penalty: z.ZodOptional<z.ZodNumber>;
3632
+ presence_penalty: z.ZodOptional<z.ZodNumber>;
3633
+ parentMessageId: z.ZodOptional<z.ZodString>;
3634
+ maxOutputTokens: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>>;
3635
+ maxContextTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
3636
+ max_tokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
3637
+ promptCache: z.ZodOptional<z.ZodBoolean>;
3638
+ system: z.ZodOptional<z.ZodString>;
3639
+ thinking: z.ZodOptional<z.ZodBoolean>;
3640
+ thinkingBudget: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
3641
+ thinkingLevel: z.ZodOptional<z.ZodNativeEnum<typeof ThinkingLevel>>;
3642
+ stream: z.ZodOptional<z.ZodBoolean>;
3643
+ artifacts: z.ZodOptional<z.ZodString>;
3644
+ context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3645
+ examples: z.ZodOptional<z.ZodArray<z.ZodObject<{
3646
+ input: z.ZodObject<{
3647
+ content: z.ZodString;
3648
+ }, "strip", z.ZodTypeAny, {
3649
+ content: string;
3650
+ }, {
3651
+ content: string;
3652
+ }>;
3653
+ output: z.ZodObject<{
3654
+ content: z.ZodString;
3655
+ }, "strip", z.ZodTypeAny, {
3656
+ content: string;
3657
+ }, {
3658
+ content: string;
3659
+ }>;
3660
+ }, "strip", z.ZodTypeAny, {
3661
+ input: {
3662
+ content: string;
3663
+ };
3664
+ output: {
3665
+ content: string;
3666
+ };
3667
+ }, {
3668
+ input: {
3669
+ content: string;
3670
+ };
3671
+ output: {
3672
+ content: string;
3673
+ };
3674
+ }>, "many">>;
3675
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3676
+ createdAt: z.ZodString;
3677
+ updatedAt: z.ZodString;
3678
+ resendFiles: z.ZodOptional<z.ZodBoolean>;
3679
+ file_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3680
+ imageDetail: z.ZodOptional<z.ZodNativeEnum<typeof ImageDetail>>;
3681
+ reasoning_effort: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof ReasoningEffort>>>;
3682
+ reasoning_summary: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof ReasoningSummary>>>;
3683
+ verbosity: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof Verbosity>>>;
3684
+ useResponsesApi: z.ZodOptional<z.ZodBoolean>;
3685
+ effort: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof AnthropicEffort>>>;
3686
+ web_search: z.ZodOptional<z.ZodBoolean>;
3687
+ disableStreaming: z.ZodOptional<z.ZodBoolean>;
3688
+ assistant_id: z.ZodOptional<z.ZodString>;
3689
+ agent_id: z.ZodOptional<z.ZodString>;
3690
+ region: z.ZodOptional<z.ZodString>;
3691
+ maxTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
3692
+ additionalModelRequestFields: z.ZodOptional<z.ZodType<DocumentTypeValue, z.ZodTypeDef, DocumentTypeValue>>;
3693
+ instructions: z.ZodOptional<z.ZodString>;
3694
+ additional_instructions: z.ZodOptional<z.ZodString>;
3695
+ append_current_datetime: z.ZodOptional<z.ZodBoolean>;
3696
+ /** Used to overwrite active conversation settings when saving a Preset */
3697
+ presetOverride: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3698
+ stop: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3699
+ greeting: z.ZodOptional<z.ZodString>;
3700
+ spec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3701
+ iconURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3702
+ expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3703
+ fileTokenLimit: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
3704
+ /** @deprecated */
3705
+ resendImages: z.ZodOptional<z.ZodBoolean>;
3706
+ /** @deprecated Prefer `modelLabel` over `chatGptLabel` */
3707
+ chatGptLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3708
+ }, "model" | "iconURL" | "modelLabel" | "promptPrefix" | "temperature" | "top_p" | "frequency_penalty" | "presence_penalty" | "maxContextTokens" | "max_tokens" | "artifacts" | "resendFiles" | "imageDetail" | "reasoning_effort" | "reasoning_summary" | "verbosity" | "useResponsesApi" | "web_search" | "disableStreaming" | "stop" | "greeting" | "spec" | "fileTokenLimit" | "chatGptLabel">, "strip", z.ZodTypeAny, {
3709
+ model?: string | null | undefined;
3710
+ iconURL?: string | null | undefined;
3711
+ modelLabel?: string | null | undefined;
3712
+ promptPrefix?: string | null | undefined;
3713
+ temperature?: number | null | undefined;
3714
+ top_p?: number | undefined;
3715
+ frequency_penalty?: number | undefined;
3716
+ presence_penalty?: number | undefined;
3717
+ maxContextTokens?: number | undefined;
3718
+ max_tokens?: number | undefined;
3719
+ artifacts?: string | undefined;
3720
+ resendFiles?: boolean | undefined;
3721
+ imageDetail?: ImageDetail | undefined;
3722
+ reasoning_effort?: ReasoningEffort | null | undefined;
3723
+ reasoning_summary?: ReasoningSummary | null | undefined;
3724
+ verbosity?: Verbosity | null | undefined;
3725
+ useResponsesApi?: boolean | undefined;
3726
+ web_search?: boolean | undefined;
3727
+ disableStreaming?: boolean | undefined;
3728
+ stop?: string[] | undefined;
3729
+ greeting?: string | undefined;
3730
+ spec?: string | null | undefined;
3731
+ fileTokenLimit?: number | undefined;
3732
+ chatGptLabel?: string | null | undefined;
3733
+ }, {
3734
+ model?: string | null | undefined;
3735
+ iconURL?: string | null | undefined;
3736
+ modelLabel?: string | null | undefined;
3737
+ promptPrefix?: string | null | undefined;
3738
+ temperature?: number | null | undefined;
3739
+ top_p?: number | undefined;
3740
+ frequency_penalty?: number | undefined;
3741
+ presence_penalty?: number | undefined;
3742
+ maxContextTokens?: string | number | undefined;
3743
+ max_tokens?: string | number | undefined;
3744
+ artifacts?: string | undefined;
3745
+ resendFiles?: boolean | undefined;
3746
+ imageDetail?: ImageDetail | undefined;
3747
+ reasoning_effort?: ReasoningEffort | null | undefined;
3748
+ reasoning_summary?: ReasoningSummary | null | undefined;
3749
+ verbosity?: Verbosity | null | undefined;
3750
+ useResponsesApi?: boolean | undefined;
3751
+ web_search?: boolean | undefined;
3752
+ disableStreaming?: boolean | undefined;
3753
+ stop?: string[] | undefined;
3754
+ greeting?: string | undefined;
3755
+ spec?: string | null | undefined;
3756
+ fileTokenLimit?: string | number | undefined;
3757
+ chatGptLabel?: string | null | undefined;
3758
+ }>, Partial<Partial<TConversation>>, {
3759
+ model?: string | null | undefined;
3760
+ iconURL?: string | null | undefined;
3761
+ modelLabel?: string | null | undefined;
3762
+ promptPrefix?: string | null | undefined;
3763
+ temperature?: number | null | undefined;
3764
+ top_p?: number | undefined;
3765
+ frequency_penalty?: number | undefined;
3766
+ presence_penalty?: number | undefined;
3767
+ maxContextTokens?: string | number | undefined;
3768
+ max_tokens?: string | number | undefined;
3769
+ artifacts?: string | undefined;
3770
+ resendFiles?: boolean | undefined;
3771
+ imageDetail?: ImageDetail | undefined;
3772
+ reasoning_effort?: ReasoningEffort | null | undefined;
3773
+ reasoning_summary?: ReasoningSummary | null | undefined;
3774
+ verbosity?: Verbosity | null | undefined;
3775
+ useResponsesApi?: boolean | undefined;
3776
+ web_search?: boolean | undefined;
3777
+ disableStreaming?: boolean | undefined;
3778
+ stop?: string[] | undefined;
3779
+ greeting?: string | undefined;
3780
+ spec?: string | null | undefined;
3781
+ fileTokenLimit?: string | number | undefined;
3782
+ chatGptLabel?: string | null | undefined;
3783
+ }>>;
3784
+ export declare const compactGoogleSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
3785
+ conversationId: z.ZodNullable<z.ZodString>;
3786
+ endpoint: z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>;
3787
+ endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>>;
3788
+ isArchived: z.ZodOptional<z.ZodBoolean>;
3789
+ title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
3790
+ user: z.ZodOptional<z.ZodString>;
3791
+ messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3792
+ tools: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodObject<{
3793
+ name: z.ZodString;
3794
+ pluginKey: z.ZodString;
3795
+ description: z.ZodOptional<z.ZodString>;
3796
+ icon: z.ZodOptional<z.ZodString>;
3797
+ authConfig: z.ZodOptional<z.ZodArray<z.ZodObject<{
3798
+ authField: z.ZodString;
3799
+ label: z.ZodString;
3800
+ description: z.ZodString;
3801
+ optional: z.ZodOptional<z.ZodBoolean>;
3802
+ }, "strip", z.ZodTypeAny, {
3803
+ description: string;
3804
+ authField: string;
3805
+ label: string;
3806
+ optional?: boolean | undefined;
3807
+ }, {
3808
+ description: string;
3809
+ authField: string;
3810
+ label: string;
3811
+ optional?: boolean | undefined;
3812
+ }>, "many">>;
3813
+ authenticated: z.ZodOptional<z.ZodBoolean>;
3814
+ chatMenu: z.ZodOptional<z.ZodBoolean>;
3815
+ isButton: z.ZodOptional<z.ZodBoolean>;
3816
+ toolkit: z.ZodOptional<z.ZodBoolean>;
3817
+ }, "strip", z.ZodTypeAny, {
3818
+ name: string;
3819
+ pluginKey: string;
3820
+ description?: string | undefined;
3821
+ icon?: string | undefined;
3822
+ authConfig?: {
3823
+ description: string;
3824
+ authField: string;
3825
+ label: string;
3826
+ optional?: boolean | undefined;
3827
+ }[] | undefined;
3828
+ authenticated?: boolean | undefined;
3829
+ chatMenu?: boolean | undefined;
3830
+ isButton?: boolean | undefined;
3831
+ toolkit?: boolean | undefined;
3832
+ }, {
3833
+ name: string;
3834
+ pluginKey: string;
3835
+ description?: string | undefined;
3836
+ icon?: string | undefined;
3837
+ authConfig?: {
3838
+ description: string;
3839
+ authField: string;
3840
+ label: string;
3841
+ optional?: boolean | undefined;
3842
+ }[] | undefined;
3843
+ authenticated?: boolean | undefined;
3844
+ chatMenu?: boolean | undefined;
3845
+ isButton?: boolean | undefined;
3846
+ toolkit?: boolean | undefined;
3847
+ }>, "many">, z.ZodArray<z.ZodString, "many">]>>;
3848
+ modelLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3849
+ userLabel: z.ZodOptional<z.ZodString>;
3850
+ model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3851
+ promptPrefix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3852
+ temperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3853
+ topP: z.ZodOptional<z.ZodNumber>;
3854
+ topK: z.ZodOptional<z.ZodNumber>;
3855
+ top_p: z.ZodOptional<z.ZodNumber>;
3856
+ frequency_penalty: z.ZodOptional<z.ZodNumber>;
3857
+ presence_penalty: z.ZodOptional<z.ZodNumber>;
3858
+ parentMessageId: z.ZodOptional<z.ZodString>;
3859
+ maxOutputTokens: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>>;
3860
+ maxContextTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
3861
+ max_tokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
3862
+ promptCache: z.ZodOptional<z.ZodBoolean>;
3863
+ system: z.ZodOptional<z.ZodString>;
3864
+ thinking: z.ZodOptional<z.ZodBoolean>;
3865
+ thinkingBudget: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
3866
+ thinkingLevel: z.ZodOptional<z.ZodNativeEnum<typeof ThinkingLevel>>;
3867
+ stream: z.ZodOptional<z.ZodBoolean>;
3868
+ artifacts: z.ZodOptional<z.ZodString>;
3869
+ context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3870
+ examples: z.ZodOptional<z.ZodArray<z.ZodObject<{
3871
+ input: z.ZodObject<{
3872
+ content: z.ZodString;
3873
+ }, "strip", z.ZodTypeAny, {
3874
+ content: string;
3875
+ }, {
3876
+ content: string;
3877
+ }>;
3878
+ output: z.ZodObject<{
3879
+ content: z.ZodString;
3880
+ }, "strip", z.ZodTypeAny, {
3881
+ content: string;
3882
+ }, {
3883
+ content: string;
3884
+ }>;
3885
+ }, "strip", z.ZodTypeAny, {
3886
+ input: {
3887
+ content: string;
3888
+ };
3889
+ output: {
3890
+ content: string;
3891
+ };
3892
+ }, {
3893
+ input: {
3894
+ content: string;
3895
+ };
3896
+ output: {
3897
+ content: string;
3898
+ };
3899
+ }>, "many">>;
3900
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3901
+ createdAt: z.ZodString;
3902
+ updatedAt: z.ZodString;
3903
+ resendFiles: z.ZodOptional<z.ZodBoolean>;
3904
+ file_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3905
+ imageDetail: z.ZodOptional<z.ZodNativeEnum<typeof ImageDetail>>;
3906
+ reasoning_effort: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof ReasoningEffort>>>;
3907
+ reasoning_summary: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof ReasoningSummary>>>;
3908
+ verbosity: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof Verbosity>>>;
3909
+ useResponsesApi: z.ZodOptional<z.ZodBoolean>;
3910
+ effort: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof AnthropicEffort>>>;
3911
+ web_search: z.ZodOptional<z.ZodBoolean>;
3912
+ disableStreaming: z.ZodOptional<z.ZodBoolean>;
3913
+ assistant_id: z.ZodOptional<z.ZodString>;
3914
+ agent_id: z.ZodOptional<z.ZodString>;
3915
+ region: z.ZodOptional<z.ZodString>;
3916
+ maxTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
3917
+ additionalModelRequestFields: z.ZodOptional<z.ZodType<DocumentTypeValue, z.ZodTypeDef, DocumentTypeValue>>;
3918
+ instructions: z.ZodOptional<z.ZodString>;
3919
+ additional_instructions: z.ZodOptional<z.ZodString>;
3920
+ append_current_datetime: z.ZodOptional<z.ZodBoolean>;
3921
+ /** Used to overwrite active conversation settings when saving a Preset */
3922
+ presetOverride: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3923
+ stop: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3924
+ greeting: z.ZodOptional<z.ZodString>;
3925
+ spec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3926
+ iconURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3927
+ expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3928
+ fileTokenLimit: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
3929
+ /** @deprecated */
3930
+ resendImages: z.ZodOptional<z.ZodBoolean>;
3931
+ /** @deprecated Prefer `modelLabel` over `chatGptLabel` */
3932
+ chatGptLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3933
+ }, "model" | "iconURL" | "modelLabel" | "promptPrefix" | "temperature" | "topP" | "topK" | "maxOutputTokens" | "maxContextTokens" | "thinking" | "thinkingBudget" | "thinkingLevel" | "artifacts" | "examples" | "web_search" | "greeting" | "spec" | "fileTokenLimit">, "strip", z.ZodTypeAny, {
3934
+ model?: string | null | undefined;
3935
+ iconURL?: string | null | undefined;
3936
+ modelLabel?: string | null | undefined;
3937
+ promptPrefix?: string | null | undefined;
3938
+ temperature?: number | null | undefined;
3939
+ topP?: number | undefined;
3940
+ topK?: number | undefined;
3941
+ maxOutputTokens?: number | null | undefined;
3942
+ maxContextTokens?: number | undefined;
3943
+ thinking?: boolean | undefined;
3944
+ thinkingBudget?: number | undefined;
3945
+ thinkingLevel?: ThinkingLevel | undefined;
3946
+ artifacts?: string | undefined;
3947
+ examples?: {
3948
+ input: {
3949
+ content: string;
3950
+ };
3951
+ output: {
3952
+ content: string;
3953
+ };
3954
+ }[] | undefined;
3955
+ web_search?: boolean | undefined;
3956
+ greeting?: string | undefined;
3957
+ spec?: string | null | undefined;
3958
+ fileTokenLimit?: number | undefined;
3959
+ }, {
3960
+ model?: string | null | undefined;
3961
+ iconURL?: string | null | undefined;
3962
+ modelLabel?: string | null | undefined;
3963
+ promptPrefix?: string | null | undefined;
3964
+ temperature?: number | null | undefined;
3965
+ topP?: number | undefined;
3966
+ topK?: number | undefined;
3967
+ maxOutputTokens?: string | number | null | undefined;
3968
+ maxContextTokens?: string | number | undefined;
3969
+ thinking?: boolean | undefined;
3970
+ thinkingBudget?: string | number | undefined;
3971
+ thinkingLevel?: ThinkingLevel | undefined;
3972
+ artifacts?: string | undefined;
3973
+ examples?: {
3974
+ input: {
3975
+ content: string;
3976
+ };
3977
+ output: {
3978
+ content: string;
3979
+ };
3980
+ }[] | undefined;
3981
+ web_search?: boolean | undefined;
3982
+ greeting?: string | undefined;
3983
+ spec?: string | null | undefined;
3984
+ fileTokenLimit?: string | number | undefined;
3985
+ }>, Partial<Partial<TConversation>>, {
3986
+ model?: string | null | undefined;
3987
+ iconURL?: string | null | undefined;
3988
+ modelLabel?: string | null | undefined;
3989
+ promptPrefix?: string | null | undefined;
3990
+ temperature?: number | null | undefined;
3991
+ topP?: number | undefined;
3992
+ topK?: number | undefined;
3993
+ maxOutputTokens?: string | number | null | undefined;
3994
+ maxContextTokens?: string | number | undefined;
3995
+ thinking?: boolean | undefined;
3996
+ thinkingBudget?: string | number | undefined;
3997
+ thinkingLevel?: ThinkingLevel | undefined;
3998
+ artifacts?: string | undefined;
3999
+ examples?: {
4000
+ input: {
4001
+ content: string;
4002
+ };
4003
+ output: {
4004
+ content: string;
4005
+ };
4006
+ }[] | undefined;
4007
+ web_search?: boolean | undefined;
4008
+ greeting?: string | undefined;
4009
+ spec?: string | null | undefined;
4010
+ fileTokenLimit?: string | number | undefined;
4011
+ }>>;
4012
+ export declare const anthropicBaseSchema: z.ZodObject<Pick<{
4013
+ conversationId: z.ZodNullable<z.ZodString>;
4014
+ endpoint: z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>;
4015
+ endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>>;
4016
+ isArchived: z.ZodOptional<z.ZodBoolean>;
4017
+ title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
4018
+ user: z.ZodOptional<z.ZodString>;
4019
+ messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4020
+ tools: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodObject<{
4021
+ name: z.ZodString;
4022
+ pluginKey: z.ZodString;
4023
+ description: z.ZodOptional<z.ZodString>;
4024
+ icon: z.ZodOptional<z.ZodString>;
4025
+ authConfig: z.ZodOptional<z.ZodArray<z.ZodObject<{
4026
+ authField: z.ZodString;
4027
+ label: z.ZodString;
4028
+ description: z.ZodString;
4029
+ optional: z.ZodOptional<z.ZodBoolean>;
4030
+ }, "strip", z.ZodTypeAny, {
4031
+ description: string;
4032
+ authField: string;
4033
+ label: string;
4034
+ optional?: boolean | undefined;
4035
+ }, {
4036
+ description: string;
4037
+ authField: string;
4038
+ label: string;
4039
+ optional?: boolean | undefined;
4040
+ }>, "many">>;
4041
+ authenticated: z.ZodOptional<z.ZodBoolean>;
4042
+ chatMenu: z.ZodOptional<z.ZodBoolean>;
4043
+ isButton: z.ZodOptional<z.ZodBoolean>;
4044
+ toolkit: z.ZodOptional<z.ZodBoolean>;
4045
+ }, "strip", z.ZodTypeAny, {
4046
+ name: string;
4047
+ pluginKey: string;
4048
+ description?: string | undefined;
4049
+ icon?: string | undefined;
4050
+ authConfig?: {
4051
+ description: string;
4052
+ authField: string;
4053
+ label: string;
4054
+ optional?: boolean | undefined;
4055
+ }[] | undefined;
4056
+ authenticated?: boolean | undefined;
4057
+ chatMenu?: boolean | undefined;
4058
+ isButton?: boolean | undefined;
4059
+ toolkit?: boolean | undefined;
4060
+ }, {
4061
+ name: string;
4062
+ pluginKey: string;
4063
+ description?: string | undefined;
4064
+ icon?: string | undefined;
4065
+ authConfig?: {
4066
+ description: string;
4067
+ authField: string;
4068
+ label: string;
4069
+ optional?: boolean | undefined;
4070
+ }[] | undefined;
4071
+ authenticated?: boolean | undefined;
4072
+ chatMenu?: boolean | undefined;
4073
+ isButton?: boolean | undefined;
4074
+ toolkit?: boolean | undefined;
4075
+ }>, "many">, z.ZodArray<z.ZodString, "many">]>>;
4076
+ modelLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4077
+ userLabel: z.ZodOptional<z.ZodString>;
4078
+ model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4079
+ promptPrefix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4080
+ temperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4081
+ topP: z.ZodOptional<z.ZodNumber>;
4082
+ topK: z.ZodOptional<z.ZodNumber>;
4083
+ top_p: z.ZodOptional<z.ZodNumber>;
4084
+ frequency_penalty: z.ZodOptional<z.ZodNumber>;
4085
+ presence_penalty: z.ZodOptional<z.ZodNumber>;
4086
+ parentMessageId: z.ZodOptional<z.ZodString>;
4087
+ maxOutputTokens: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>>;
4088
+ maxContextTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
4089
+ max_tokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
4090
+ promptCache: z.ZodOptional<z.ZodBoolean>;
4091
+ system: z.ZodOptional<z.ZodString>;
4092
+ thinking: z.ZodOptional<z.ZodBoolean>;
4093
+ thinkingBudget: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
4094
+ thinkingLevel: z.ZodOptional<z.ZodNativeEnum<typeof ThinkingLevel>>;
4095
+ stream: z.ZodOptional<z.ZodBoolean>;
4096
+ artifacts: z.ZodOptional<z.ZodString>;
4097
+ context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4098
+ examples: z.ZodOptional<z.ZodArray<z.ZodObject<{
4099
+ input: z.ZodObject<{
4100
+ content: z.ZodString;
4101
+ }, "strip", z.ZodTypeAny, {
4102
+ content: string;
4103
+ }, {
4104
+ content: string;
4105
+ }>;
4106
+ output: z.ZodObject<{
4107
+ content: z.ZodString;
4108
+ }, "strip", z.ZodTypeAny, {
4109
+ content: string;
4110
+ }, {
4111
+ content: string;
4112
+ }>;
4113
+ }, "strip", z.ZodTypeAny, {
4114
+ input: {
4115
+ content: string;
4116
+ };
4117
+ output: {
4118
+ content: string;
4119
+ };
4120
+ }, {
4121
+ input: {
4122
+ content: string;
4123
+ };
4124
+ output: {
4125
+ content: string;
4126
+ };
4127
+ }>, "many">>;
4128
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4129
+ createdAt: z.ZodString;
4130
+ updatedAt: z.ZodString;
4131
+ resendFiles: z.ZodOptional<z.ZodBoolean>;
4132
+ file_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4133
+ imageDetail: z.ZodOptional<z.ZodNativeEnum<typeof ImageDetail>>;
4134
+ reasoning_effort: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof ReasoningEffort>>>;
4135
+ reasoning_summary: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof ReasoningSummary>>>;
4136
+ verbosity: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof Verbosity>>>;
4137
+ useResponsesApi: z.ZodOptional<z.ZodBoolean>;
4138
+ effort: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof AnthropicEffort>>>;
4139
+ web_search: z.ZodOptional<z.ZodBoolean>;
4140
+ disableStreaming: z.ZodOptional<z.ZodBoolean>;
4141
+ assistant_id: z.ZodOptional<z.ZodString>;
4142
+ agent_id: z.ZodOptional<z.ZodString>;
4143
+ region: z.ZodOptional<z.ZodString>;
4144
+ maxTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
4145
+ additionalModelRequestFields: z.ZodOptional<z.ZodType<DocumentTypeValue, z.ZodTypeDef, DocumentTypeValue>>;
4146
+ instructions: z.ZodOptional<z.ZodString>;
4147
+ additional_instructions: z.ZodOptional<z.ZodString>;
4148
+ append_current_datetime: z.ZodOptional<z.ZodBoolean>;
4149
+ /** Used to overwrite active conversation settings when saving a Preset */
4150
+ presetOverride: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4151
+ stop: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4152
+ greeting: z.ZodOptional<z.ZodString>;
4153
+ spec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4154
+ iconURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4155
+ expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4156
+ fileTokenLimit: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
4157
+ /** @deprecated */
4158
+ resendImages: z.ZodOptional<z.ZodBoolean>;
4159
+ /** @deprecated Prefer `modelLabel` over `chatGptLabel` */
4160
+ chatGptLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4161
+ }, "model" | "iconURL" | "modelLabel" | "promptPrefix" | "temperature" | "topP" | "topK" | "maxOutputTokens" | "maxContextTokens" | "promptCache" | "thinking" | "thinkingBudget" | "stream" | "artifacts" | "resendFiles" | "effort" | "web_search" | "stop" | "greeting" | "spec" | "fileTokenLimit">, "strip", z.ZodTypeAny, {
4162
+ model?: string | null | undefined;
4163
+ iconURL?: string | null | undefined;
4164
+ modelLabel?: string | null | undefined;
4165
+ promptPrefix?: string | null | undefined;
4166
+ temperature?: number | null | undefined;
4167
+ topP?: number | undefined;
4168
+ topK?: number | undefined;
4169
+ maxOutputTokens?: number | null | undefined;
4170
+ maxContextTokens?: number | undefined;
4171
+ promptCache?: boolean | undefined;
4172
+ thinking?: boolean | undefined;
4173
+ thinkingBudget?: number | undefined;
4174
+ stream?: boolean | undefined;
4175
+ artifacts?: string | undefined;
4176
+ resendFiles?: boolean | undefined;
4177
+ effort?: AnthropicEffort | null | undefined;
4178
+ web_search?: boolean | undefined;
4179
+ stop?: string[] | undefined;
4180
+ greeting?: string | undefined;
4181
+ spec?: string | null | undefined;
4182
+ fileTokenLimit?: number | undefined;
4183
+ }, {
4184
+ model?: string | null | undefined;
4185
+ iconURL?: string | null | undefined;
4186
+ modelLabel?: string | null | undefined;
4187
+ promptPrefix?: string | null | undefined;
4188
+ temperature?: number | null | undefined;
4189
+ topP?: number | undefined;
4190
+ topK?: number | undefined;
4191
+ maxOutputTokens?: string | number | null | undefined;
4192
+ maxContextTokens?: string | number | undefined;
4193
+ promptCache?: boolean | undefined;
4194
+ thinking?: boolean | undefined;
4195
+ thinkingBudget?: string | number | undefined;
4196
+ stream?: boolean | undefined;
4197
+ artifacts?: string | undefined;
4198
+ resendFiles?: boolean | undefined;
4199
+ effort?: AnthropicEffort | null | undefined;
4200
+ web_search?: boolean | undefined;
4201
+ stop?: string[] | undefined;
4202
+ greeting?: string | undefined;
4203
+ spec?: string | null | undefined;
4204
+ fileTokenLimit?: string | number | undefined;
4205
+ }>;
4206
+ export declare const anthropicSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
4207
+ conversationId: z.ZodNullable<z.ZodString>;
4208
+ endpoint: z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>;
4209
+ endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>>;
4210
+ isArchived: z.ZodOptional<z.ZodBoolean>;
4211
+ title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
4212
+ user: z.ZodOptional<z.ZodString>;
4213
+ messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4214
+ tools: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodObject<{
4215
+ name: z.ZodString;
4216
+ pluginKey: z.ZodString;
4217
+ description: z.ZodOptional<z.ZodString>;
4218
+ icon: z.ZodOptional<z.ZodString>;
4219
+ authConfig: z.ZodOptional<z.ZodArray<z.ZodObject<{
4220
+ authField: z.ZodString;
4221
+ label: z.ZodString;
4222
+ description: z.ZodString;
4223
+ optional: z.ZodOptional<z.ZodBoolean>;
4224
+ }, "strip", z.ZodTypeAny, {
4225
+ description: string;
4226
+ authField: string;
4227
+ label: string;
4228
+ optional?: boolean | undefined;
4229
+ }, {
4230
+ description: string;
4231
+ authField: string;
4232
+ label: string;
4233
+ optional?: boolean | undefined;
4234
+ }>, "many">>;
4235
+ authenticated: z.ZodOptional<z.ZodBoolean>;
4236
+ chatMenu: z.ZodOptional<z.ZodBoolean>;
4237
+ isButton: z.ZodOptional<z.ZodBoolean>;
4238
+ toolkit: z.ZodOptional<z.ZodBoolean>;
4239
+ }, "strip", z.ZodTypeAny, {
4240
+ name: string;
4241
+ pluginKey: string;
4242
+ description?: string | undefined;
4243
+ icon?: string | undefined;
4244
+ authConfig?: {
4245
+ description: string;
4246
+ authField: string;
4247
+ label: string;
4248
+ optional?: boolean | undefined;
4249
+ }[] | undefined;
4250
+ authenticated?: boolean | undefined;
4251
+ chatMenu?: boolean | undefined;
4252
+ isButton?: boolean | undefined;
4253
+ toolkit?: boolean | undefined;
4254
+ }, {
4255
+ name: string;
4256
+ pluginKey: string;
4257
+ description?: string | undefined;
4258
+ icon?: string | undefined;
4259
+ authConfig?: {
4260
+ description: string;
4261
+ authField: string;
4262
+ label: string;
4263
+ optional?: boolean | undefined;
4264
+ }[] | undefined;
4265
+ authenticated?: boolean | undefined;
4266
+ chatMenu?: boolean | undefined;
4267
+ isButton?: boolean | undefined;
4268
+ toolkit?: boolean | undefined;
4269
+ }>, "many">, z.ZodArray<z.ZodString, "many">]>>;
4270
+ modelLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4271
+ userLabel: z.ZodOptional<z.ZodString>;
4272
+ model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4273
+ promptPrefix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4274
+ temperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4275
+ topP: z.ZodOptional<z.ZodNumber>;
4276
+ topK: z.ZodOptional<z.ZodNumber>;
4277
+ top_p: z.ZodOptional<z.ZodNumber>;
4278
+ frequency_penalty: z.ZodOptional<z.ZodNumber>;
4279
+ presence_penalty: z.ZodOptional<z.ZodNumber>;
4280
+ parentMessageId: z.ZodOptional<z.ZodString>;
4281
+ maxOutputTokens: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>>;
4282
+ maxContextTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
4283
+ max_tokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
4284
+ promptCache: z.ZodOptional<z.ZodBoolean>;
4285
+ system: z.ZodOptional<z.ZodString>;
4286
+ thinking: z.ZodOptional<z.ZodBoolean>;
4287
+ thinkingBudget: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
4288
+ thinkingLevel: z.ZodOptional<z.ZodNativeEnum<typeof ThinkingLevel>>;
4289
+ stream: z.ZodOptional<z.ZodBoolean>;
4290
+ artifacts: z.ZodOptional<z.ZodString>;
4291
+ context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4292
+ examples: z.ZodOptional<z.ZodArray<z.ZodObject<{
4293
+ input: z.ZodObject<{
4294
+ content: z.ZodString;
4295
+ }, "strip", z.ZodTypeAny, {
4296
+ content: string;
4297
+ }, {
4298
+ content: string;
4299
+ }>;
4300
+ output: z.ZodObject<{
4301
+ content: z.ZodString;
4302
+ }, "strip", z.ZodTypeAny, {
4303
+ content: string;
4304
+ }, {
4305
+ content: string;
4306
+ }>;
4307
+ }, "strip", z.ZodTypeAny, {
4308
+ input: {
4309
+ content: string;
4310
+ };
4311
+ output: {
4312
+ content: string;
4313
+ };
4314
+ }, {
4315
+ input: {
4316
+ content: string;
4317
+ };
4318
+ output: {
4319
+ content: string;
4320
+ };
4321
+ }>, "many">>;
4322
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4323
+ createdAt: z.ZodString;
4324
+ updatedAt: z.ZodString;
4325
+ resendFiles: z.ZodOptional<z.ZodBoolean>;
4326
+ file_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4327
+ imageDetail: z.ZodOptional<z.ZodNativeEnum<typeof ImageDetail>>;
4328
+ reasoning_effort: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof ReasoningEffort>>>;
4329
+ reasoning_summary: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof ReasoningSummary>>>;
4330
+ verbosity: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof Verbosity>>>;
4331
+ useResponsesApi: z.ZodOptional<z.ZodBoolean>;
4332
+ effort: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof AnthropicEffort>>>;
4333
+ web_search: z.ZodOptional<z.ZodBoolean>;
4334
+ disableStreaming: z.ZodOptional<z.ZodBoolean>;
4335
+ assistant_id: z.ZodOptional<z.ZodString>;
4336
+ agent_id: z.ZodOptional<z.ZodString>;
4337
+ region: z.ZodOptional<z.ZodString>;
4338
+ maxTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
4339
+ additionalModelRequestFields: z.ZodOptional<z.ZodType<DocumentTypeValue, z.ZodTypeDef, DocumentTypeValue>>;
4340
+ instructions: z.ZodOptional<z.ZodString>;
4341
+ additional_instructions: z.ZodOptional<z.ZodString>;
4342
+ append_current_datetime: z.ZodOptional<z.ZodBoolean>;
4343
+ /** Used to overwrite active conversation settings when saving a Preset */
4344
+ presetOverride: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4345
+ stop: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4346
+ greeting: z.ZodOptional<z.ZodString>;
4347
+ spec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4348
+ iconURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4349
+ expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4350
+ fileTokenLimit: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
4351
+ /** @deprecated */
4352
+ resendImages: z.ZodOptional<z.ZodBoolean>;
4353
+ /** @deprecated Prefer `modelLabel` over `chatGptLabel` */
4354
+ chatGptLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4355
+ }, "model" | "iconURL" | "modelLabel" | "promptPrefix" | "temperature" | "topP" | "topK" | "maxOutputTokens" | "maxContextTokens" | "promptCache" | "thinking" | "thinkingBudget" | "stream" | "artifacts" | "resendFiles" | "effort" | "web_search" | "stop" | "greeting" | "spec" | "fileTokenLimit">, "strip", z.ZodTypeAny, {
4356
+ model?: string | null | undefined;
4357
+ iconURL?: string | null | undefined;
4358
+ modelLabel?: string | null | undefined;
4359
+ promptPrefix?: string | null | undefined;
4360
+ temperature?: number | null | undefined;
4361
+ topP?: number | undefined;
4362
+ topK?: number | undefined;
4363
+ maxOutputTokens?: number | null | undefined;
4364
+ maxContextTokens?: number | undefined;
4365
+ promptCache?: boolean | undefined;
4366
+ thinking?: boolean | undefined;
4367
+ thinkingBudget?: number | undefined;
4368
+ stream?: boolean | undefined;
4369
+ artifacts?: string | undefined;
4370
+ resendFiles?: boolean | undefined;
4371
+ effort?: AnthropicEffort | null | undefined;
4372
+ web_search?: boolean | undefined;
4373
+ stop?: string[] | undefined;
4374
+ greeting?: string | undefined;
4375
+ spec?: string | null | undefined;
4376
+ fileTokenLimit?: number | undefined;
4377
+ }, {
4378
+ model?: string | null | undefined;
4379
+ iconURL?: string | null | undefined;
4380
+ modelLabel?: string | null | undefined;
4381
+ promptPrefix?: string | null | undefined;
4382
+ temperature?: number | null | undefined;
4383
+ topP?: number | undefined;
4384
+ topK?: number | undefined;
4385
+ maxOutputTokens?: string | number | null | undefined;
4386
+ maxContextTokens?: string | number | undefined;
4387
+ promptCache?: boolean | undefined;
4388
+ thinking?: boolean | undefined;
4389
+ thinkingBudget?: string | number | undefined;
4390
+ stream?: boolean | undefined;
4391
+ artifacts?: string | undefined;
4392
+ resendFiles?: boolean | undefined;
4393
+ effort?: AnthropicEffort | null | undefined;
4394
+ web_search?: boolean | undefined;
4395
+ stop?: string[] | undefined;
4396
+ greeting?: string | undefined;
4397
+ spec?: string | null | undefined;
4398
+ fileTokenLimit?: string | number | undefined;
4399
+ }>, Partial<{
4400
+ model?: string | null | undefined;
4401
+ iconURL?: string | null | undefined;
4402
+ modelLabel?: string | null | undefined;
4403
+ promptPrefix?: string | null | undefined;
4404
+ temperature?: number | null | undefined;
4405
+ topP?: number | undefined;
4406
+ topK?: number | undefined;
4407
+ maxOutputTokens?: number | null | undefined;
4408
+ maxContextTokens?: number | undefined;
4409
+ promptCache?: boolean | undefined;
4410
+ thinking?: boolean | undefined;
4411
+ thinkingBudget?: number | undefined;
4412
+ stream?: boolean | undefined;
4413
+ artifacts?: string | undefined;
4414
+ resendFiles?: boolean | undefined;
4415
+ effort?: AnthropicEffort | null | undefined;
4416
+ web_search?: boolean | undefined;
4417
+ stop?: string[] | undefined;
4418
+ greeting?: string | undefined;
4419
+ spec?: string | null | undefined;
4420
+ fileTokenLimit?: number | undefined;
4421
+ }>, {
4422
+ model?: string | null | undefined;
4423
+ iconURL?: string | null | undefined;
4424
+ modelLabel?: string | null | undefined;
4425
+ promptPrefix?: string | null | undefined;
4426
+ temperature?: number | null | undefined;
4427
+ topP?: number | undefined;
4428
+ topK?: number | undefined;
4429
+ maxOutputTokens?: string | number | null | undefined;
4430
+ maxContextTokens?: string | number | undefined;
4431
+ promptCache?: boolean | undefined;
4432
+ thinking?: boolean | undefined;
4433
+ thinkingBudget?: string | number | undefined;
4434
+ stream?: boolean | undefined;
4435
+ artifacts?: string | undefined;
4436
+ resendFiles?: boolean | undefined;
4437
+ effort?: AnthropicEffort | null | undefined;
4438
+ web_search?: boolean | undefined;
4439
+ stop?: string[] | undefined;
4440
+ greeting?: string | undefined;
4441
+ spec?: string | null | undefined;
4442
+ fileTokenLimit?: string | number | undefined;
4443
+ }>>;
4444
+ export declare const tBannerSchema: z.ZodObject<{
4445
+ bannerId: z.ZodString;
4446
+ message: z.ZodString;
4447
+ displayFrom: z.ZodString;
4448
+ displayTo: z.ZodString;
4449
+ createdAt: z.ZodString;
4450
+ updatedAt: z.ZodString;
4451
+ isPublic: z.ZodBoolean;
4452
+ persistable: z.ZodDefault<z.ZodBoolean>;
4453
+ }, "strip", z.ZodTypeAny, {
4454
+ message: string;
4455
+ createdAt: string;
4456
+ updatedAt: string;
4457
+ isPublic: boolean;
4458
+ bannerId: string;
4459
+ displayFrom: string;
4460
+ displayTo: string;
4461
+ persistable: boolean;
4462
+ }, {
4463
+ message: string;
4464
+ createdAt: string;
4465
+ updatedAt: string;
4466
+ isPublic: boolean;
4467
+ bannerId: string;
4468
+ displayFrom: string;
4469
+ displayTo: string;
4470
+ persistable?: boolean | undefined;
4471
+ }>;
4472
+ export type TBanner = z.infer<typeof tBannerSchema>;
4473
+ export declare const compactAgentsBaseSchema: z.ZodObject<Pick<{
4474
+ conversationId: z.ZodNullable<z.ZodString>;
4475
+ endpoint: z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>;
4476
+ endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>>;
4477
+ isArchived: z.ZodOptional<z.ZodBoolean>;
4478
+ title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
4479
+ user: z.ZodOptional<z.ZodString>;
4480
+ messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4481
+ tools: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodObject<{
4482
+ name: z.ZodString;
4483
+ pluginKey: z.ZodString;
4484
+ description: z.ZodOptional<z.ZodString>;
4485
+ icon: z.ZodOptional<z.ZodString>;
4486
+ authConfig: z.ZodOptional<z.ZodArray<z.ZodObject<{
4487
+ authField: z.ZodString;
4488
+ label: z.ZodString;
4489
+ description: z.ZodString;
4490
+ optional: z.ZodOptional<z.ZodBoolean>;
4491
+ }, "strip", z.ZodTypeAny, {
4492
+ description: string;
4493
+ authField: string;
4494
+ label: string;
4495
+ optional?: boolean | undefined;
4496
+ }, {
4497
+ description: string;
4498
+ authField: string;
4499
+ label: string;
4500
+ optional?: boolean | undefined;
4501
+ }>, "many">>;
4502
+ authenticated: z.ZodOptional<z.ZodBoolean>;
4503
+ chatMenu: z.ZodOptional<z.ZodBoolean>;
4504
+ isButton: z.ZodOptional<z.ZodBoolean>;
4505
+ toolkit: z.ZodOptional<z.ZodBoolean>;
4506
+ }, "strip", z.ZodTypeAny, {
4507
+ name: string;
4508
+ pluginKey: string;
4509
+ description?: string | undefined;
4510
+ icon?: string | undefined;
4511
+ authConfig?: {
4512
+ description: string;
4513
+ authField: string;
4514
+ label: string;
4515
+ optional?: boolean | undefined;
4516
+ }[] | undefined;
4517
+ authenticated?: boolean | undefined;
4518
+ chatMenu?: boolean | undefined;
4519
+ isButton?: boolean | undefined;
4520
+ toolkit?: boolean | undefined;
4521
+ }, {
4522
+ name: string;
4523
+ pluginKey: string;
4524
+ description?: string | undefined;
4525
+ icon?: string | undefined;
4526
+ authConfig?: {
4527
+ description: string;
4528
+ authField: string;
4529
+ label: string;
4530
+ optional?: boolean | undefined;
4531
+ }[] | undefined;
4532
+ authenticated?: boolean | undefined;
4533
+ chatMenu?: boolean | undefined;
4534
+ isButton?: boolean | undefined;
4535
+ toolkit?: boolean | undefined;
4536
+ }>, "many">, z.ZodArray<z.ZodString, "many">]>>;
4537
+ modelLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4538
+ userLabel: z.ZodOptional<z.ZodString>;
4539
+ model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4540
+ promptPrefix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4541
+ temperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4542
+ topP: z.ZodOptional<z.ZodNumber>;
4543
+ topK: z.ZodOptional<z.ZodNumber>;
4544
+ top_p: z.ZodOptional<z.ZodNumber>;
4545
+ frequency_penalty: z.ZodOptional<z.ZodNumber>;
4546
+ presence_penalty: z.ZodOptional<z.ZodNumber>;
4547
+ parentMessageId: z.ZodOptional<z.ZodString>;
4548
+ maxOutputTokens: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>>;
4549
+ maxContextTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
4550
+ max_tokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
4551
+ promptCache: z.ZodOptional<z.ZodBoolean>;
4552
+ system: z.ZodOptional<z.ZodString>;
4553
+ thinking: z.ZodOptional<z.ZodBoolean>;
4554
+ thinkingBudget: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
4555
+ thinkingLevel: z.ZodOptional<z.ZodNativeEnum<typeof ThinkingLevel>>;
4556
+ stream: z.ZodOptional<z.ZodBoolean>;
4557
+ artifacts: z.ZodOptional<z.ZodString>;
4558
+ context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4559
+ examples: z.ZodOptional<z.ZodArray<z.ZodObject<{
4560
+ input: z.ZodObject<{
4561
+ content: z.ZodString;
4562
+ }, "strip", z.ZodTypeAny, {
4563
+ content: string;
4564
+ }, {
4565
+ content: string;
4566
+ }>;
4567
+ output: z.ZodObject<{
4568
+ content: z.ZodString;
4569
+ }, "strip", z.ZodTypeAny, {
4570
+ content: string;
4571
+ }, {
4572
+ content: string;
4573
+ }>;
4574
+ }, "strip", z.ZodTypeAny, {
4575
+ input: {
4576
+ content: string;
4577
+ };
4578
+ output: {
4579
+ content: string;
4580
+ };
4581
+ }, {
4582
+ input: {
4583
+ content: string;
4584
+ };
4585
+ output: {
4586
+ content: string;
4587
+ };
4588
+ }>, "many">>;
4589
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4590
+ createdAt: z.ZodString;
4591
+ updatedAt: z.ZodString;
4592
+ resendFiles: z.ZodOptional<z.ZodBoolean>;
4593
+ file_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4594
+ imageDetail: z.ZodOptional<z.ZodNativeEnum<typeof ImageDetail>>;
4595
+ reasoning_effort: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof ReasoningEffort>>>;
4596
+ reasoning_summary: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof ReasoningSummary>>>;
4597
+ verbosity: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof Verbosity>>>;
4598
+ useResponsesApi: z.ZodOptional<z.ZodBoolean>;
4599
+ effort: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof AnthropicEffort>>>;
4600
+ web_search: z.ZodOptional<z.ZodBoolean>;
4601
+ disableStreaming: z.ZodOptional<z.ZodBoolean>;
4602
+ assistant_id: z.ZodOptional<z.ZodString>;
4603
+ agent_id: z.ZodOptional<z.ZodString>;
4604
+ region: z.ZodOptional<z.ZodString>;
4605
+ maxTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
4606
+ additionalModelRequestFields: z.ZodOptional<z.ZodType<DocumentTypeValue, z.ZodTypeDef, DocumentTypeValue>>;
4607
+ instructions: z.ZodOptional<z.ZodString>;
4608
+ additional_instructions: z.ZodOptional<z.ZodString>;
4609
+ append_current_datetime: z.ZodOptional<z.ZodBoolean>;
4610
+ /** Used to overwrite active conversation settings when saving a Preset */
4611
+ presetOverride: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4612
+ stop: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4613
+ greeting: z.ZodOptional<z.ZodString>;
4614
+ spec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4615
+ iconURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4616
+ expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4617
+ fileTokenLimit: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
4618
+ /** @deprecated */
4619
+ resendImages: z.ZodOptional<z.ZodBoolean>;
4620
+ /** @deprecated Prefer `modelLabel` over `chatGptLabel` */
4621
+ chatGptLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4622
+ }, "iconURL" | "agent_id" | "instructions" | "additional_instructions" | "greeting" | "spec">, "strip", z.ZodTypeAny, {
4623
+ iconURL?: string | null | undefined;
4624
+ agent_id?: string | undefined;
4625
+ instructions?: string | undefined;
4626
+ additional_instructions?: string | undefined;
4627
+ greeting?: string | undefined;
4628
+ spec?: string | null | undefined;
4629
+ }, {
4630
+ iconURL?: string | null | undefined;
4631
+ agent_id?: string | undefined;
4632
+ instructions?: string | undefined;
4633
+ additional_instructions?: string | undefined;
4634
+ greeting?: string | undefined;
4635
+ spec?: string | null | undefined;
4636
+ }>;
4637
+ export declare const compactAgentsSchema: z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
4638
+ conversationId: z.ZodNullable<z.ZodString>;
4639
+ endpoint: z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>;
4640
+ endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>>;
4641
+ isArchived: z.ZodOptional<z.ZodBoolean>;
4642
+ title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
4643
+ user: z.ZodOptional<z.ZodString>;
4644
+ messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4645
+ tools: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodObject<{
4646
+ name: z.ZodString;
4647
+ pluginKey: z.ZodString;
4648
+ description: z.ZodOptional<z.ZodString>;
4649
+ icon: z.ZodOptional<z.ZodString>;
4650
+ authConfig: z.ZodOptional<z.ZodArray<z.ZodObject<{
4651
+ authField: z.ZodString;
4652
+ label: z.ZodString;
4653
+ description: z.ZodString;
4654
+ optional: z.ZodOptional<z.ZodBoolean>;
4655
+ }, "strip", z.ZodTypeAny, {
4656
+ description: string;
4657
+ authField: string;
4658
+ label: string;
4659
+ optional?: boolean | undefined;
4660
+ }, {
4661
+ description: string;
4662
+ authField: string;
4663
+ label: string;
4664
+ optional?: boolean | undefined;
4665
+ }>, "many">>;
4666
+ authenticated: z.ZodOptional<z.ZodBoolean>;
4667
+ chatMenu: z.ZodOptional<z.ZodBoolean>;
4668
+ isButton: z.ZodOptional<z.ZodBoolean>;
4669
+ toolkit: z.ZodOptional<z.ZodBoolean>;
4670
+ }, "strip", z.ZodTypeAny, {
4671
+ name: string;
4672
+ pluginKey: string;
4673
+ description?: string | undefined;
4674
+ icon?: string | undefined;
4675
+ authConfig?: {
4676
+ description: string;
4677
+ authField: string;
4678
+ label: string;
4679
+ optional?: boolean | undefined;
4680
+ }[] | undefined;
4681
+ authenticated?: boolean | undefined;
4682
+ chatMenu?: boolean | undefined;
4683
+ isButton?: boolean | undefined;
4684
+ toolkit?: boolean | undefined;
4685
+ }, {
4686
+ name: string;
4687
+ pluginKey: string;
4688
+ description?: string | undefined;
4689
+ icon?: string | undefined;
4690
+ authConfig?: {
4691
+ description: string;
4692
+ authField: string;
4693
+ label: string;
4694
+ optional?: boolean | undefined;
4695
+ }[] | undefined;
4696
+ authenticated?: boolean | undefined;
4697
+ chatMenu?: boolean | undefined;
4698
+ isButton?: boolean | undefined;
4699
+ toolkit?: boolean | undefined;
4700
+ }>, "many">, z.ZodArray<z.ZodString, "many">]>>;
4701
+ modelLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4702
+ userLabel: z.ZodOptional<z.ZodString>;
4703
+ model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4704
+ promptPrefix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4705
+ temperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4706
+ topP: z.ZodOptional<z.ZodNumber>;
4707
+ topK: z.ZodOptional<z.ZodNumber>;
4708
+ top_p: z.ZodOptional<z.ZodNumber>;
4709
+ frequency_penalty: z.ZodOptional<z.ZodNumber>;
4710
+ presence_penalty: z.ZodOptional<z.ZodNumber>;
4711
+ parentMessageId: z.ZodOptional<z.ZodString>;
4712
+ maxOutputTokens: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>>;
4713
+ maxContextTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
4714
+ max_tokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
4715
+ promptCache: z.ZodOptional<z.ZodBoolean>;
4716
+ system: z.ZodOptional<z.ZodString>;
4717
+ thinking: z.ZodOptional<z.ZodBoolean>;
4718
+ thinkingBudget: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
4719
+ thinkingLevel: z.ZodOptional<z.ZodNativeEnum<typeof ThinkingLevel>>;
4720
+ stream: z.ZodOptional<z.ZodBoolean>;
4721
+ artifacts: z.ZodOptional<z.ZodString>;
4722
+ context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4723
+ examples: z.ZodOptional<z.ZodArray<z.ZodObject<{
4724
+ input: z.ZodObject<{
4725
+ content: z.ZodString;
4726
+ }, "strip", z.ZodTypeAny, {
4727
+ content: string;
4728
+ }, {
4729
+ content: string;
4730
+ }>;
4731
+ output: z.ZodObject<{
4732
+ content: z.ZodString;
4733
+ }, "strip", z.ZodTypeAny, {
4734
+ content: string;
4735
+ }, {
4736
+ content: string;
4737
+ }>;
4738
+ }, "strip", z.ZodTypeAny, {
4739
+ input: {
4740
+ content: string;
4741
+ };
4742
+ output: {
4743
+ content: string;
4744
+ };
4745
+ }, {
4746
+ input: {
4747
+ content: string;
4748
+ };
4749
+ output: {
4750
+ content: string;
4751
+ };
4752
+ }>, "many">>;
4753
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4754
+ createdAt: z.ZodString;
4755
+ updatedAt: z.ZodString;
4756
+ resendFiles: z.ZodOptional<z.ZodBoolean>;
4757
+ file_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4758
+ imageDetail: z.ZodOptional<z.ZodNativeEnum<typeof ImageDetail>>;
4759
+ reasoning_effort: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof ReasoningEffort>>>;
4760
+ reasoning_summary: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof ReasoningSummary>>>;
4761
+ verbosity: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof Verbosity>>>;
4762
+ useResponsesApi: z.ZodOptional<z.ZodBoolean>;
4763
+ effort: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof AnthropicEffort>>>;
4764
+ web_search: z.ZodOptional<z.ZodBoolean>;
4765
+ disableStreaming: z.ZodOptional<z.ZodBoolean>;
4766
+ assistant_id: z.ZodOptional<z.ZodString>;
4767
+ agent_id: z.ZodOptional<z.ZodString>;
4768
+ region: z.ZodOptional<z.ZodString>;
4769
+ maxTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
4770
+ additionalModelRequestFields: z.ZodOptional<z.ZodType<DocumentTypeValue, z.ZodTypeDef, DocumentTypeValue>>;
4771
+ instructions: z.ZodOptional<z.ZodString>;
4772
+ additional_instructions: z.ZodOptional<z.ZodString>;
4773
+ append_current_datetime: z.ZodOptional<z.ZodBoolean>;
4774
+ /** Used to overwrite active conversation settings when saving a Preset */
4775
+ presetOverride: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4776
+ stop: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4777
+ greeting: z.ZodOptional<z.ZodString>;
4778
+ spec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4779
+ iconURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4780
+ expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4781
+ fileTokenLimit: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
4782
+ /** @deprecated */
4783
+ resendImages: z.ZodOptional<z.ZodBoolean>;
4784
+ /** @deprecated Prefer `modelLabel` over `chatGptLabel` */
4785
+ chatGptLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4786
+ }, "iconURL" | "agent_id" | "instructions" | "additional_instructions" | "greeting" | "spec">, "strip", z.ZodTypeAny, {
4787
+ iconURL?: string | null | undefined;
4788
+ agent_id?: string | undefined;
4789
+ instructions?: string | undefined;
4790
+ additional_instructions?: string | undefined;
4791
+ greeting?: string | undefined;
4792
+ spec?: string | null | undefined;
4793
+ }, {
4794
+ iconURL?: string | null | undefined;
4795
+ agent_id?: string | undefined;
4796
+ instructions?: string | undefined;
4797
+ additional_instructions?: string | undefined;
4798
+ greeting?: string | undefined;
4799
+ spec?: string | null | undefined;
4800
+ }>, Partial<{
4801
+ iconURL?: string | null | undefined;
4802
+ agent_id?: string | undefined;
4803
+ instructions?: string | undefined;
4804
+ additional_instructions?: string | undefined;
4805
+ greeting?: string | undefined;
4806
+ spec?: string | null | undefined;
4807
+ }>, {
4808
+ iconURL?: string | null | undefined;
4809
+ agent_id?: string | undefined;
4810
+ instructions?: string | undefined;
4811
+ additional_instructions?: string | undefined;
4812
+ greeting?: string | undefined;
4813
+ spec?: string | null | undefined;
4814
+ }>>;
4815
+ export {};