librechat-data-provider 0.8.402 → 0.8.404
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +1 -1
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/react-query/index.es.js +1 -1
- package/dist/react-query/index.es.js.map +1 -1
- package/dist/types/accessPermissions.d.ts +744 -0
- package/dist/types/actions.d.ts +118 -0
- package/dist/types/api-endpoints.d.ts +150 -0
- package/dist/types/artifacts.d.ts +97 -0
- package/dist/types/azure.d.ts +22 -0
- package/dist/types/bedrock.d.ts +1220 -0
- package/dist/types/config.d.ts +14849 -0
- package/dist/types/config.spec.d.ts +1 -0
- package/dist/types/createPayload.d.ts +5 -0
- package/dist/types/data-service.d.ts +287 -0
- package/dist/types/feedback.d.ts +36 -0
- package/dist/types/file-config.d.ts +263 -0
- package/dist/types/file-config.spec.d.ts +1 -0
- package/dist/types/generate.d.ts +597 -0
- package/dist/types/headers-helpers.d.ts +2 -0
- package/{src/index.ts → dist/types/index.d.ts} +0 -15
- package/dist/types/keys.d.ts +92 -0
- package/dist/types/mcp.d.ts +2760 -0
- package/dist/types/messages.d.ts +10 -0
- package/dist/types/models.d.ts +1547 -0
- package/dist/types/parameterSettings.d.ts +69 -0
- package/dist/types/parsers.d.ts +110 -0
- package/dist/types/permissions.d.ts +522 -0
- package/dist/types/react-query/react-query-service.d.ts +85 -0
- package/dist/types/request.d.ts +25 -0
- package/dist/types/roles.d.ts +554 -0
- package/dist/types/roles.spec.d.ts +1 -0
- package/dist/types/schemas.d.ts +5110 -0
- package/dist/types/schemas.spec.d.ts +1 -0
- package/dist/types/types/agents.d.ts +433 -0
- package/dist/types/types/assistants.d.ts +547 -0
- package/dist/types/types/files.d.ts +172 -0
- package/dist/types/types/graph.d.ts +135 -0
- package/{src/types/mcpServers.ts → dist/types/types/mcpServers.d.ts} +12 -18
- package/dist/types/types/mutations.d.ts +209 -0
- package/dist/types/types/queries.d.ts +169 -0
- package/dist/types/types/runs.d.ts +36 -0
- package/dist/types/types/web.d.ts +520 -0
- package/dist/types/types.d.ts +503 -0
- package/dist/types/utils.d.ts +12 -0
- package/package.json +5 -1
- package/babel.config.js +0 -4
- package/check_updates.sh +0 -52
- package/jest.config.js +0 -19
- package/react-query/package-lock.json +0 -292
- package/react-query/package.json +0 -10
- package/rollup.config.js +0 -74
- package/server-rollup.config.js +0 -40
- package/specs/actions.spec.ts +0 -2533
- package/specs/api-endpoints-subdir.spec.ts +0 -140
- package/specs/api-endpoints.spec.ts +0 -74
- package/specs/azure.spec.ts +0 -844
- package/specs/bedrock.spec.ts +0 -862
- package/specs/filetypes.spec.ts +0 -175
- package/specs/generate.spec.ts +0 -770
- package/specs/headers-helpers.spec.ts +0 -24
- package/specs/mcp.spec.ts +0 -147
- package/specs/openapiSpecs.ts +0 -524
- package/specs/parsers.spec.ts +0 -601
- package/specs/request-interceptor.spec.ts +0 -304
- package/specs/utils.spec.ts +0 -196
- package/src/accessPermissions.ts +0 -346
- package/src/actions.ts +0 -813
- package/src/api-endpoints.ts +0 -440
- package/src/artifacts.ts +0 -3104
- package/src/azure.ts +0 -328
- package/src/bedrock.ts +0 -425
- package/src/config.spec.ts +0 -315
- package/src/config.ts +0 -2006
- package/src/createPayload.ts +0 -46
- package/src/data-service.ts +0 -1087
- package/src/feedback.ts +0 -141
- package/src/file-config.spec.ts +0 -1248
- package/src/file-config.ts +0 -764
- package/src/generate.ts +0 -634
- package/src/headers-helpers.ts +0 -13
- package/src/keys.ts +0 -99
- package/src/mcp.ts +0 -271
- package/src/messages.ts +0 -50
- package/src/models.ts +0 -69
- package/src/parameterSettings.ts +0 -1111
- package/src/parsers.ts +0 -563
- package/src/permissions.ts +0 -188
- package/src/react-query/react-query-service.ts +0 -566
- package/src/request.ts +0 -171
- package/src/roles.spec.ts +0 -132
- package/src/roles.ts +0 -225
- package/src/schemas.spec.ts +0 -355
- package/src/schemas.ts +0 -1234
- package/src/types/agents.ts +0 -470
- package/src/types/assistants.ts +0 -654
- package/src/types/files.ts +0 -191
- package/src/types/graph.ts +0 -145
- package/src/types/mutations.ts +0 -422
- package/src/types/queries.ts +0 -208
- package/src/types/runs.ts +0 -40
- package/src/types/web.ts +0 -588
- package/src/types.ts +0 -676
- package/src/utils.ts +0 -85
- package/tsconfig.json +0 -28
- package/tsconfig.spec.json +0 -10
- /package/{src/react-query/index.ts → dist/types/react-query/index.d.ts} +0 -0
- /package/{src/types/index.ts → dist/types/types/index.d.ts} +0 -0
|
@@ -0,0 +1,597 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { googleSettings as google } from './schemas';
|
|
4
|
+
import type { TConversation, TSetOption, TPreset } from './schemas';
|
|
5
|
+
export type GoogleSettings = Partial<typeof google>;
|
|
6
|
+
export type OpenAISettings = Partial<typeof google>;
|
|
7
|
+
export type ComponentType = 'input' | 'textarea' | 'slider' | 'checkbox' | 'switch' | 'dropdown' | 'combobox' | 'tags';
|
|
8
|
+
export type OptionType = 'conversation' | 'model' | 'custom';
|
|
9
|
+
export type Option = Record<string, unknown> & {
|
|
10
|
+
label?: string;
|
|
11
|
+
value: string | number | null;
|
|
12
|
+
};
|
|
13
|
+
export type OptionWithIcon = Option & {
|
|
14
|
+
icon?: React.ReactNode;
|
|
15
|
+
};
|
|
16
|
+
export declare enum ComponentTypes {
|
|
17
|
+
Input = "input",
|
|
18
|
+
Textarea = "textarea",
|
|
19
|
+
Slider = "slider",
|
|
20
|
+
Checkbox = "checkbox",
|
|
21
|
+
Switch = "switch",
|
|
22
|
+
Dropdown = "dropdown",
|
|
23
|
+
Combobox = "combobox",
|
|
24
|
+
Tags = "tags"
|
|
25
|
+
}
|
|
26
|
+
export declare enum SettingTypes {
|
|
27
|
+
Number = "number",
|
|
28
|
+
Boolean = "boolean",
|
|
29
|
+
String = "string",
|
|
30
|
+
Enum = "enum",
|
|
31
|
+
Array = "array"
|
|
32
|
+
}
|
|
33
|
+
export declare enum OptionTypes {
|
|
34
|
+
Conversation = "conversation",
|
|
35
|
+
Model = "model",
|
|
36
|
+
Custom = "custom"
|
|
37
|
+
}
|
|
38
|
+
export interface SettingDefinition {
|
|
39
|
+
key: string;
|
|
40
|
+
description?: string;
|
|
41
|
+
type: 'number' | 'boolean' | 'string' | 'enum' | 'array';
|
|
42
|
+
default?: number | boolean | string | string[];
|
|
43
|
+
showLabel?: boolean;
|
|
44
|
+
showDefault?: boolean;
|
|
45
|
+
options?: string[];
|
|
46
|
+
range?: SettingRange;
|
|
47
|
+
enumMappings?: Record<string, number | boolean | string>;
|
|
48
|
+
component: ComponentType;
|
|
49
|
+
optionType?: OptionType;
|
|
50
|
+
columnSpan?: number;
|
|
51
|
+
columns?: number;
|
|
52
|
+
label?: string;
|
|
53
|
+
placeholder?: string;
|
|
54
|
+
labelCode?: boolean;
|
|
55
|
+
placeholderCode?: boolean;
|
|
56
|
+
descriptionCode?: boolean;
|
|
57
|
+
minText?: number;
|
|
58
|
+
maxText?: number;
|
|
59
|
+
minTags?: number;
|
|
60
|
+
maxTags?: number;
|
|
61
|
+
includeInput?: boolean;
|
|
62
|
+
descriptionSide?: 'top' | 'right' | 'bottom' | 'left';
|
|
63
|
+
items?: OptionWithIcon[];
|
|
64
|
+
searchPlaceholder?: string;
|
|
65
|
+
selectPlaceholder?: string;
|
|
66
|
+
searchPlaceholderCode?: boolean;
|
|
67
|
+
selectPlaceholderCode?: boolean;
|
|
68
|
+
}
|
|
69
|
+
export type DynamicSettingProps = Partial<SettingDefinition> & {
|
|
70
|
+
readonly?: boolean;
|
|
71
|
+
settingKey: string;
|
|
72
|
+
setOption: TSetOption;
|
|
73
|
+
conversation: Partial<TConversation> | Partial<TPreset> | null;
|
|
74
|
+
defaultValue?: number | boolean | string | string[];
|
|
75
|
+
className?: string;
|
|
76
|
+
inputClassName?: string;
|
|
77
|
+
};
|
|
78
|
+
export interface SettingRange {
|
|
79
|
+
min: number;
|
|
80
|
+
max: number;
|
|
81
|
+
step?: number;
|
|
82
|
+
}
|
|
83
|
+
export type SettingsConfiguration = SettingDefinition[];
|
|
84
|
+
export declare function generateDynamicSchema(settings: SettingsConfiguration): z.ZodObject<{
|
|
85
|
+
[key: string]: z.ZodTypeAny;
|
|
86
|
+
}, "strip", z.ZodTypeAny, {
|
|
87
|
+
[x: string]: any;
|
|
88
|
+
}, {
|
|
89
|
+
[x: string]: any;
|
|
90
|
+
}>;
|
|
91
|
+
/**
|
|
92
|
+
* Validates the provided setting using the constraints unique to each component type.
|
|
93
|
+
* @throws {ZodError} Throws a ZodError if any validation fails.
|
|
94
|
+
*/
|
|
95
|
+
export declare function validateSettingDefinitions(settings: SettingsConfiguration): void;
|
|
96
|
+
export declare const generateOpenAISchema: (customOpenAI: OpenAISettings) => z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
|
|
97
|
+
conversationId: z.ZodNullable<z.ZodString>;
|
|
98
|
+
endpoint: z.ZodNullable<z.ZodNativeEnum<typeof import("./schemas").EModelEndpoint>>;
|
|
99
|
+
endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("./schemas").EModelEndpoint>>>;
|
|
100
|
+
isArchived: z.ZodOptional<z.ZodBoolean>;
|
|
101
|
+
title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
|
|
102
|
+
user: z.ZodOptional<z.ZodString>;
|
|
103
|
+
messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
104
|
+
tools: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
|
105
|
+
name: z.ZodString;
|
|
106
|
+
pluginKey: z.ZodString;
|
|
107
|
+
description: z.ZodOptional<z.ZodString>;
|
|
108
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
109
|
+
authConfig: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
110
|
+
authField: z.ZodString;
|
|
111
|
+
label: z.ZodString;
|
|
112
|
+
description: z.ZodString;
|
|
113
|
+
optional: z.ZodOptional<z.ZodBoolean>;
|
|
114
|
+
}, "strip", z.ZodTypeAny, {
|
|
115
|
+
description: string;
|
|
116
|
+
authField: string;
|
|
117
|
+
label: string;
|
|
118
|
+
optional?: boolean | undefined;
|
|
119
|
+
}, {
|
|
120
|
+
description: string;
|
|
121
|
+
authField: string;
|
|
122
|
+
label: string;
|
|
123
|
+
optional?: boolean | undefined;
|
|
124
|
+
}>, "many">>;
|
|
125
|
+
authenticated: z.ZodOptional<z.ZodBoolean>;
|
|
126
|
+
chatMenu: z.ZodOptional<z.ZodBoolean>;
|
|
127
|
+
isButton: z.ZodOptional<z.ZodBoolean>;
|
|
128
|
+
toolkit: z.ZodOptional<z.ZodBoolean>;
|
|
129
|
+
}, "strip", z.ZodTypeAny, {
|
|
130
|
+
name: string;
|
|
131
|
+
pluginKey: string;
|
|
132
|
+
description?: string | undefined;
|
|
133
|
+
icon?: string | undefined;
|
|
134
|
+
authConfig?: {
|
|
135
|
+
description: string;
|
|
136
|
+
authField: string;
|
|
137
|
+
label: string;
|
|
138
|
+
optional?: boolean | undefined;
|
|
139
|
+
}[] | undefined;
|
|
140
|
+
authenticated?: boolean | undefined;
|
|
141
|
+
chatMenu?: boolean | undefined;
|
|
142
|
+
isButton?: boolean | undefined;
|
|
143
|
+
toolkit?: boolean | undefined;
|
|
144
|
+
}, {
|
|
145
|
+
name: string;
|
|
146
|
+
pluginKey: string;
|
|
147
|
+
description?: string | undefined;
|
|
148
|
+
icon?: string | undefined;
|
|
149
|
+
authConfig?: {
|
|
150
|
+
description: string;
|
|
151
|
+
authField: string;
|
|
152
|
+
label: string;
|
|
153
|
+
optional?: boolean | undefined;
|
|
154
|
+
}[] | undefined;
|
|
155
|
+
authenticated?: boolean | undefined;
|
|
156
|
+
chatMenu?: boolean | undefined;
|
|
157
|
+
isButton?: boolean | undefined;
|
|
158
|
+
toolkit?: boolean | undefined;
|
|
159
|
+
}>, "many">, z.ZodArray<z.ZodString, "many">]>>;
|
|
160
|
+
modelLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
161
|
+
userLabel: z.ZodOptional<z.ZodString>;
|
|
162
|
+
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
163
|
+
promptPrefix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
164
|
+
temperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
165
|
+
topP: z.ZodOptional<z.ZodNumber>;
|
|
166
|
+
topK: z.ZodOptional<z.ZodNumber>;
|
|
167
|
+
top_p: z.ZodOptional<z.ZodNumber>;
|
|
168
|
+
frequency_penalty: z.ZodOptional<z.ZodNumber>;
|
|
169
|
+
presence_penalty: z.ZodOptional<z.ZodNumber>;
|
|
170
|
+
parentMessageId: z.ZodOptional<z.ZodString>;
|
|
171
|
+
maxOutputTokens: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>>;
|
|
172
|
+
maxContextTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
173
|
+
max_tokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
174
|
+
promptCache: z.ZodOptional<z.ZodBoolean>;
|
|
175
|
+
system: z.ZodOptional<z.ZodString>;
|
|
176
|
+
thinking: z.ZodOptional<z.ZodBoolean>;
|
|
177
|
+
thinkingBudget: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
178
|
+
thinkingLevel: z.ZodOptional<z.ZodNativeEnum<typeof import("./schemas").ThinkingLevel>>;
|
|
179
|
+
stream: z.ZodOptional<z.ZodBoolean>;
|
|
180
|
+
artifacts: z.ZodOptional<z.ZodString>;
|
|
181
|
+
context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
182
|
+
examples: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
183
|
+
input: z.ZodObject<{
|
|
184
|
+
content: z.ZodString;
|
|
185
|
+
}, "strip", z.ZodTypeAny, {
|
|
186
|
+
content: string;
|
|
187
|
+
}, {
|
|
188
|
+
content: string;
|
|
189
|
+
}>;
|
|
190
|
+
output: z.ZodObject<{
|
|
191
|
+
content: z.ZodString;
|
|
192
|
+
}, "strip", z.ZodTypeAny, {
|
|
193
|
+
content: string;
|
|
194
|
+
}, {
|
|
195
|
+
content: string;
|
|
196
|
+
}>;
|
|
197
|
+
}, "strip", z.ZodTypeAny, {
|
|
198
|
+
input: {
|
|
199
|
+
content: string;
|
|
200
|
+
};
|
|
201
|
+
output: {
|
|
202
|
+
content: string;
|
|
203
|
+
};
|
|
204
|
+
}, {
|
|
205
|
+
input: {
|
|
206
|
+
content: string;
|
|
207
|
+
};
|
|
208
|
+
output: {
|
|
209
|
+
content: string;
|
|
210
|
+
};
|
|
211
|
+
}>, "many">>;
|
|
212
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
213
|
+
createdAt: z.ZodString;
|
|
214
|
+
updatedAt: z.ZodString;
|
|
215
|
+
resendFiles: z.ZodOptional<z.ZodBoolean>;
|
|
216
|
+
file_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
217
|
+
imageDetail: z.ZodOptional<z.ZodNativeEnum<typeof import("./schemas").ImageDetail>>;
|
|
218
|
+
reasoning_effort: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("./schemas").ReasoningEffort>>>;
|
|
219
|
+
reasoning_summary: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("./schemas").ReasoningSummary>>>;
|
|
220
|
+
verbosity: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("./schemas").Verbosity>>>;
|
|
221
|
+
useResponsesApi: z.ZodOptional<z.ZodBoolean>;
|
|
222
|
+
effort: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("./schemas").AnthropicEffort>>>;
|
|
223
|
+
web_search: z.ZodOptional<z.ZodBoolean>;
|
|
224
|
+
disableStreaming: z.ZodOptional<z.ZodBoolean>;
|
|
225
|
+
assistant_id: z.ZodOptional<z.ZodString>;
|
|
226
|
+
agent_id: z.ZodOptional<z.ZodString>;
|
|
227
|
+
region: z.ZodOptional<z.ZodString>;
|
|
228
|
+
maxTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
229
|
+
additionalModelRequestFields: z.ZodOptional<z.ZodType<string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
|
|
230
|
+
[key: string]: string | number | boolean | any | any | null;
|
|
231
|
+
} | null)[] | {
|
|
232
|
+
[key: string]: string | number | boolean | (string | number | boolean | any | any | null)[] | any | null;
|
|
233
|
+
} | null)[] | {
|
|
234
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | any | any | null)[] | any | null)[] | any | null;
|
|
235
|
+
} | null)[] | {
|
|
236
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | any | null)[] | any | null)[] | any | null)[] | any | null;
|
|
237
|
+
} | null)[] | {
|
|
238
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null;
|
|
239
|
+
} | null)[] | {
|
|
240
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null;
|
|
241
|
+
} | null)[] | {
|
|
242
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null;
|
|
243
|
+
} | null)[] | {
|
|
244
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null;
|
|
245
|
+
} | null)[] | {
|
|
246
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null;
|
|
247
|
+
} | null)[] | {
|
|
248
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null;
|
|
249
|
+
} | null)[] | {
|
|
250
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null;
|
|
251
|
+
} | null)[] | {
|
|
252
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null;
|
|
253
|
+
} | null, z.ZodTypeDef, string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
|
|
254
|
+
[key: string]: string | number | boolean | any | any | null;
|
|
255
|
+
} | null)[] | {
|
|
256
|
+
[key: string]: string | number | boolean | (string | number | boolean | any | any | null)[] | any | null;
|
|
257
|
+
} | null)[] | {
|
|
258
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | any | any | null)[] | any | null)[] | any | null;
|
|
259
|
+
} | null)[] | {
|
|
260
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | any | null)[] | any | null)[] | any | null)[] | any | null;
|
|
261
|
+
} | null)[] | {
|
|
262
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null;
|
|
263
|
+
} | null)[] | {
|
|
264
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null;
|
|
265
|
+
} | null)[] | {
|
|
266
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null;
|
|
267
|
+
} | null)[] | {
|
|
268
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null;
|
|
269
|
+
} | null)[] | {
|
|
270
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null;
|
|
271
|
+
} | null)[] | {
|
|
272
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null;
|
|
273
|
+
} | null)[] | {
|
|
274
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null;
|
|
275
|
+
} | null)[] | {
|
|
276
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null;
|
|
277
|
+
} | null>>;
|
|
278
|
+
instructions: z.ZodOptional<z.ZodString>;
|
|
279
|
+
additional_instructions: z.ZodOptional<z.ZodString>;
|
|
280
|
+
append_current_datetime: z.ZodOptional<z.ZodBoolean>;
|
|
281
|
+
presetOverride: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
282
|
+
stop: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
283
|
+
greeting: z.ZodOptional<z.ZodString>;
|
|
284
|
+
spec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
285
|
+
iconURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
286
|
+
expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
287
|
+
fileTokenLimit: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
288
|
+
resendImages: z.ZodOptional<z.ZodBoolean>;
|
|
289
|
+
chatGptLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
290
|
+
}, "model" | "promptPrefix" | "temperature" | "top_p" | "frequency_penalty" | "presence_penalty" | "maxContextTokens" | "resendFiles" | "imageDetail" | "chatGptLabel">, "strip", z.ZodTypeAny, {
|
|
291
|
+
model?: string | null | undefined;
|
|
292
|
+
promptPrefix?: string | null | undefined;
|
|
293
|
+
temperature?: number | null | undefined;
|
|
294
|
+
top_p?: number | undefined;
|
|
295
|
+
frequency_penalty?: number | undefined;
|
|
296
|
+
presence_penalty?: number | undefined;
|
|
297
|
+
maxContextTokens?: number | undefined;
|
|
298
|
+
resendFiles?: boolean | undefined;
|
|
299
|
+
imageDetail?: import("./schemas").ImageDetail | undefined;
|
|
300
|
+
chatGptLabel?: string | null | undefined;
|
|
301
|
+
}, {
|
|
302
|
+
model?: string | null | undefined;
|
|
303
|
+
promptPrefix?: string | null | undefined;
|
|
304
|
+
temperature?: number | null | undefined;
|
|
305
|
+
top_p?: number | undefined;
|
|
306
|
+
frequency_penalty?: number | undefined;
|
|
307
|
+
presence_penalty?: number | undefined;
|
|
308
|
+
maxContextTokens?: string | number | undefined;
|
|
309
|
+
resendFiles?: boolean | undefined;
|
|
310
|
+
imageDetail?: import("./schemas").ImageDetail | undefined;
|
|
311
|
+
chatGptLabel?: string | null | undefined;
|
|
312
|
+
}>, {
|
|
313
|
+
model: string;
|
|
314
|
+
chatGptLabel: string | null;
|
|
315
|
+
promptPrefix: string | null;
|
|
316
|
+
temperature: number;
|
|
317
|
+
top_p: number;
|
|
318
|
+
presence_penalty: number;
|
|
319
|
+
frequency_penalty: number;
|
|
320
|
+
resendFiles: boolean;
|
|
321
|
+
imageDetail: import("./schemas").ImageDetail;
|
|
322
|
+
maxContextTokens: number | undefined;
|
|
323
|
+
}, {
|
|
324
|
+
model?: string | null | undefined;
|
|
325
|
+
promptPrefix?: string | null | undefined;
|
|
326
|
+
temperature?: number | null | undefined;
|
|
327
|
+
top_p?: number | undefined;
|
|
328
|
+
frequency_penalty?: number | undefined;
|
|
329
|
+
presence_penalty?: number | undefined;
|
|
330
|
+
maxContextTokens?: string | number | undefined;
|
|
331
|
+
resendFiles?: boolean | undefined;
|
|
332
|
+
imageDetail?: import("./schemas").ImageDetail | undefined;
|
|
333
|
+
chatGptLabel?: string | null | undefined;
|
|
334
|
+
}>>;
|
|
335
|
+
export declare const generateGoogleSchema: (customGoogle: GoogleSettings) => z.ZodCatch<z.ZodEffects<z.ZodObject<Pick<{
|
|
336
|
+
conversationId: z.ZodNullable<z.ZodString>;
|
|
337
|
+
endpoint: z.ZodNullable<z.ZodNativeEnum<typeof import("./schemas").EModelEndpoint>>;
|
|
338
|
+
endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("./schemas").EModelEndpoint>>>;
|
|
339
|
+
isArchived: z.ZodOptional<z.ZodBoolean>;
|
|
340
|
+
title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
|
|
341
|
+
user: z.ZodOptional<z.ZodString>;
|
|
342
|
+
messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
343
|
+
tools: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
|
344
|
+
name: z.ZodString;
|
|
345
|
+
pluginKey: z.ZodString;
|
|
346
|
+
description: z.ZodOptional<z.ZodString>;
|
|
347
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
348
|
+
authConfig: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
349
|
+
authField: z.ZodString;
|
|
350
|
+
label: z.ZodString;
|
|
351
|
+
description: z.ZodString;
|
|
352
|
+
optional: z.ZodOptional<z.ZodBoolean>;
|
|
353
|
+
}, "strip", z.ZodTypeAny, {
|
|
354
|
+
description: string;
|
|
355
|
+
authField: string;
|
|
356
|
+
label: string;
|
|
357
|
+
optional?: boolean | undefined;
|
|
358
|
+
}, {
|
|
359
|
+
description: string;
|
|
360
|
+
authField: string;
|
|
361
|
+
label: string;
|
|
362
|
+
optional?: boolean | undefined;
|
|
363
|
+
}>, "many">>;
|
|
364
|
+
authenticated: z.ZodOptional<z.ZodBoolean>;
|
|
365
|
+
chatMenu: z.ZodOptional<z.ZodBoolean>;
|
|
366
|
+
isButton: z.ZodOptional<z.ZodBoolean>;
|
|
367
|
+
toolkit: z.ZodOptional<z.ZodBoolean>;
|
|
368
|
+
}, "strip", z.ZodTypeAny, {
|
|
369
|
+
name: string;
|
|
370
|
+
pluginKey: string;
|
|
371
|
+
description?: string | undefined;
|
|
372
|
+
icon?: string | undefined;
|
|
373
|
+
authConfig?: {
|
|
374
|
+
description: string;
|
|
375
|
+
authField: string;
|
|
376
|
+
label: string;
|
|
377
|
+
optional?: boolean | undefined;
|
|
378
|
+
}[] | undefined;
|
|
379
|
+
authenticated?: boolean | undefined;
|
|
380
|
+
chatMenu?: boolean | undefined;
|
|
381
|
+
isButton?: boolean | undefined;
|
|
382
|
+
toolkit?: boolean | undefined;
|
|
383
|
+
}, {
|
|
384
|
+
name: string;
|
|
385
|
+
pluginKey: string;
|
|
386
|
+
description?: string | undefined;
|
|
387
|
+
icon?: string | undefined;
|
|
388
|
+
authConfig?: {
|
|
389
|
+
description: string;
|
|
390
|
+
authField: string;
|
|
391
|
+
label: string;
|
|
392
|
+
optional?: boolean | undefined;
|
|
393
|
+
}[] | undefined;
|
|
394
|
+
authenticated?: boolean | undefined;
|
|
395
|
+
chatMenu?: boolean | undefined;
|
|
396
|
+
isButton?: boolean | undefined;
|
|
397
|
+
toolkit?: boolean | undefined;
|
|
398
|
+
}>, "many">, z.ZodArray<z.ZodString, "many">]>>;
|
|
399
|
+
modelLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
400
|
+
userLabel: z.ZodOptional<z.ZodString>;
|
|
401
|
+
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
402
|
+
promptPrefix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
403
|
+
temperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
404
|
+
topP: z.ZodOptional<z.ZodNumber>;
|
|
405
|
+
topK: z.ZodOptional<z.ZodNumber>;
|
|
406
|
+
top_p: z.ZodOptional<z.ZodNumber>;
|
|
407
|
+
frequency_penalty: z.ZodOptional<z.ZodNumber>;
|
|
408
|
+
presence_penalty: z.ZodOptional<z.ZodNumber>;
|
|
409
|
+
parentMessageId: z.ZodOptional<z.ZodString>;
|
|
410
|
+
maxOutputTokens: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>>;
|
|
411
|
+
maxContextTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
412
|
+
max_tokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
413
|
+
promptCache: z.ZodOptional<z.ZodBoolean>;
|
|
414
|
+
system: z.ZodOptional<z.ZodString>;
|
|
415
|
+
thinking: z.ZodOptional<z.ZodBoolean>;
|
|
416
|
+
thinkingBudget: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
417
|
+
thinkingLevel: z.ZodOptional<z.ZodNativeEnum<typeof import("./schemas").ThinkingLevel>>;
|
|
418
|
+
stream: z.ZodOptional<z.ZodBoolean>;
|
|
419
|
+
artifacts: z.ZodOptional<z.ZodString>;
|
|
420
|
+
context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
421
|
+
examples: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
422
|
+
input: z.ZodObject<{
|
|
423
|
+
content: z.ZodString;
|
|
424
|
+
}, "strip", z.ZodTypeAny, {
|
|
425
|
+
content: string;
|
|
426
|
+
}, {
|
|
427
|
+
content: string;
|
|
428
|
+
}>;
|
|
429
|
+
output: z.ZodObject<{
|
|
430
|
+
content: z.ZodString;
|
|
431
|
+
}, "strip", z.ZodTypeAny, {
|
|
432
|
+
content: string;
|
|
433
|
+
}, {
|
|
434
|
+
content: string;
|
|
435
|
+
}>;
|
|
436
|
+
}, "strip", z.ZodTypeAny, {
|
|
437
|
+
input: {
|
|
438
|
+
content: string;
|
|
439
|
+
};
|
|
440
|
+
output: {
|
|
441
|
+
content: string;
|
|
442
|
+
};
|
|
443
|
+
}, {
|
|
444
|
+
input: {
|
|
445
|
+
content: string;
|
|
446
|
+
};
|
|
447
|
+
output: {
|
|
448
|
+
content: string;
|
|
449
|
+
};
|
|
450
|
+
}>, "many">>;
|
|
451
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
452
|
+
createdAt: z.ZodString;
|
|
453
|
+
updatedAt: z.ZodString;
|
|
454
|
+
resendFiles: z.ZodOptional<z.ZodBoolean>;
|
|
455
|
+
file_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
456
|
+
imageDetail: z.ZodOptional<z.ZodNativeEnum<typeof import("./schemas").ImageDetail>>;
|
|
457
|
+
reasoning_effort: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("./schemas").ReasoningEffort>>>;
|
|
458
|
+
reasoning_summary: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("./schemas").ReasoningSummary>>>;
|
|
459
|
+
verbosity: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("./schemas").Verbosity>>>;
|
|
460
|
+
useResponsesApi: z.ZodOptional<z.ZodBoolean>;
|
|
461
|
+
effort: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("./schemas").AnthropicEffort>>>;
|
|
462
|
+
web_search: z.ZodOptional<z.ZodBoolean>;
|
|
463
|
+
disableStreaming: z.ZodOptional<z.ZodBoolean>;
|
|
464
|
+
assistant_id: z.ZodOptional<z.ZodString>;
|
|
465
|
+
agent_id: z.ZodOptional<z.ZodString>;
|
|
466
|
+
region: z.ZodOptional<z.ZodString>;
|
|
467
|
+
maxTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
468
|
+
additionalModelRequestFields: z.ZodOptional<z.ZodType<string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
|
|
469
|
+
[key: string]: string | number | boolean | any | any | null;
|
|
470
|
+
} | null)[] | {
|
|
471
|
+
[key: string]: string | number | boolean | (string | number | boolean | any | any | null)[] | any | null;
|
|
472
|
+
} | null)[] | {
|
|
473
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | any | any | null)[] | any | null)[] | any | null;
|
|
474
|
+
} | null)[] | {
|
|
475
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | any | null)[] | any | null)[] | any | null)[] | any | null;
|
|
476
|
+
} | null)[] | {
|
|
477
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null;
|
|
478
|
+
} | null)[] | {
|
|
479
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null;
|
|
480
|
+
} | null)[] | {
|
|
481
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null;
|
|
482
|
+
} | null)[] | {
|
|
483
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null;
|
|
484
|
+
} | null)[] | {
|
|
485
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null;
|
|
486
|
+
} | null)[] | {
|
|
487
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null;
|
|
488
|
+
} | null)[] | {
|
|
489
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null;
|
|
490
|
+
} | null)[] | {
|
|
491
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null;
|
|
492
|
+
} | null, z.ZodTypeDef, string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
|
|
493
|
+
[key: string]: string | number | boolean | any | any | null;
|
|
494
|
+
} | null)[] | {
|
|
495
|
+
[key: string]: string | number | boolean | (string | number | boolean | any | any | null)[] | any | null;
|
|
496
|
+
} | null)[] | {
|
|
497
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | any | any | null)[] | any | null)[] | any | null;
|
|
498
|
+
} | null)[] | {
|
|
499
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | any | null)[] | any | null)[] | any | null)[] | any | null;
|
|
500
|
+
} | null)[] | {
|
|
501
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null;
|
|
502
|
+
} | null)[] | {
|
|
503
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null;
|
|
504
|
+
} | null)[] | {
|
|
505
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null;
|
|
506
|
+
} | null)[] | {
|
|
507
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null;
|
|
508
|
+
} | null)[] | {
|
|
509
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null;
|
|
510
|
+
} | null)[] | {
|
|
511
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null;
|
|
512
|
+
} | null)[] | {
|
|
513
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null;
|
|
514
|
+
} | null)[] | {
|
|
515
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null)[] | any | null;
|
|
516
|
+
} | null>>;
|
|
517
|
+
instructions: z.ZodOptional<z.ZodString>;
|
|
518
|
+
additional_instructions: z.ZodOptional<z.ZodString>;
|
|
519
|
+
append_current_datetime: z.ZodOptional<z.ZodBoolean>;
|
|
520
|
+
presetOverride: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
521
|
+
stop: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
522
|
+
greeting: z.ZodOptional<z.ZodString>;
|
|
523
|
+
spec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
524
|
+
iconURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
525
|
+
expiredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
526
|
+
fileTokenLimit: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
527
|
+
resendImages: z.ZodOptional<z.ZodBoolean>;
|
|
528
|
+
chatGptLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
529
|
+
}, "model" | "modelLabel" | "promptPrefix" | "temperature" | "topP" | "topK" | "maxOutputTokens" | "maxContextTokens" | "examples">, "strip", z.ZodTypeAny, {
|
|
530
|
+
model?: string | null | undefined;
|
|
531
|
+
modelLabel?: string | null | undefined;
|
|
532
|
+
promptPrefix?: string | null | undefined;
|
|
533
|
+
temperature?: number | null | undefined;
|
|
534
|
+
topP?: number | undefined;
|
|
535
|
+
topK?: number | undefined;
|
|
536
|
+
maxOutputTokens?: number | null | undefined;
|
|
537
|
+
maxContextTokens?: number | undefined;
|
|
538
|
+
examples?: {
|
|
539
|
+
input: {
|
|
540
|
+
content: string;
|
|
541
|
+
};
|
|
542
|
+
output: {
|
|
543
|
+
content: string;
|
|
544
|
+
};
|
|
545
|
+
}[] | undefined;
|
|
546
|
+
}, {
|
|
547
|
+
model?: string | null | undefined;
|
|
548
|
+
modelLabel?: string | null | undefined;
|
|
549
|
+
promptPrefix?: string | null | undefined;
|
|
550
|
+
temperature?: number | null | undefined;
|
|
551
|
+
topP?: number | undefined;
|
|
552
|
+
topK?: number | undefined;
|
|
553
|
+
maxOutputTokens?: string | number | null | undefined;
|
|
554
|
+
maxContextTokens?: string | number | undefined;
|
|
555
|
+
examples?: {
|
|
556
|
+
input: {
|
|
557
|
+
content: string;
|
|
558
|
+
};
|
|
559
|
+
output: {
|
|
560
|
+
content: string;
|
|
561
|
+
};
|
|
562
|
+
}[] | undefined;
|
|
563
|
+
}>, {
|
|
564
|
+
model: string;
|
|
565
|
+
modelLabel: string | null;
|
|
566
|
+
promptPrefix: string | null;
|
|
567
|
+
examples: {
|
|
568
|
+
input: {
|
|
569
|
+
content: string;
|
|
570
|
+
};
|
|
571
|
+
output: {
|
|
572
|
+
content: string;
|
|
573
|
+
};
|
|
574
|
+
}[];
|
|
575
|
+
temperature: number;
|
|
576
|
+
maxOutputTokens: number;
|
|
577
|
+
topP: number;
|
|
578
|
+
topK: number;
|
|
579
|
+
maxContextTokens: number | undefined;
|
|
580
|
+
}, {
|
|
581
|
+
model?: string | null | undefined;
|
|
582
|
+
modelLabel?: string | null | undefined;
|
|
583
|
+
promptPrefix?: string | null | undefined;
|
|
584
|
+
temperature?: number | null | undefined;
|
|
585
|
+
topP?: number | undefined;
|
|
586
|
+
topK?: number | undefined;
|
|
587
|
+
maxOutputTokens?: string | number | null | undefined;
|
|
588
|
+
maxContextTokens?: string | number | undefined;
|
|
589
|
+
examples?: {
|
|
590
|
+
input: {
|
|
591
|
+
content: string;
|
|
592
|
+
};
|
|
593
|
+
output: {
|
|
594
|
+
content: string;
|
|
595
|
+
};
|
|
596
|
+
}[] | undefined;
|
|
597
|
+
}>>;
|
|
@@ -1,23 +1,15 @@
|
|
|
1
|
-
/* config */
|
|
2
1
|
export * from './azure';
|
|
3
2
|
export * from './bedrock';
|
|
4
3
|
export * from './config';
|
|
5
4
|
export * from './file-config';
|
|
6
|
-
/* messages */
|
|
7
5
|
export * from './messages';
|
|
8
|
-
/* artifacts */
|
|
9
6
|
export * from './artifacts';
|
|
10
|
-
/* schema helpers */
|
|
11
7
|
export * from './parsers';
|
|
12
|
-
/* custom/dynamic configurations */
|
|
13
8
|
export * from './generate';
|
|
14
9
|
export * from './models';
|
|
15
|
-
/* mcp */
|
|
16
10
|
export * from './mcp';
|
|
17
|
-
/* RBAC */
|
|
18
11
|
export * from './permissions';
|
|
19
12
|
export * from './roles';
|
|
20
|
-
/* types (exports schemas from `./types` as they contain needed in other defs) */
|
|
21
13
|
export * from './types';
|
|
22
14
|
export * from './types/agents';
|
|
23
15
|
export * from './types/assistants';
|
|
@@ -28,22 +20,15 @@ export * from './types/queries';
|
|
|
28
20
|
export * from './types/runs';
|
|
29
21
|
export * from './types/web';
|
|
30
22
|
export * from './types/graph';
|
|
31
|
-
/* access permissions */
|
|
32
23
|
export * from './accessPermissions';
|
|
33
|
-
/* query/mutation keys */
|
|
34
24
|
export * from './keys';
|
|
35
|
-
/* api call helpers */
|
|
36
25
|
export * from './headers-helpers';
|
|
37
26
|
export { loginPage, registerPage, apiBaseUrl, buildLoginRedirectUrl } from './api-endpoints';
|
|
38
27
|
export { default as request } from './request';
|
|
39
28
|
export { dataService };
|
|
40
29
|
import * as dataService from './data-service';
|
|
41
|
-
/* general helpers */
|
|
42
30
|
export * from './utils';
|
|
43
31
|
export * from './actions';
|
|
44
32
|
export { default as createPayload } from './createPayload';
|
|
45
|
-
// /* react query hooks */
|
|
46
|
-
// export * from './react-query/react-query-service';
|
|
47
|
-
/* feedback */
|
|
48
33
|
export * from './feedback';
|
|
49
34
|
export * from './parameterSettings';
|