@veruna/api-contracts 1.0.59 → 1.0.61
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/build/rest-api.d.ts +2 -0
- package/build/rest-api.js +2 -0
- package/build/rest-api.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/v1/ai-model/admin/commands/create-model.command.d.ts +16 -0
- package/build/v1/ai-model/admin/commands/update-model.command.d.ts +16 -0
- package/build/v1/ai-model/admin/queries/get-model.query.d.ts +8 -0
- package/build/v1/ai-model/admin/queries/get-models.query.d.ts +8 -0
- package/build/v1/ai-model/schemas/create-model-request.schema.d.ts +8 -0
- package/build/v1/ai-model/schemas/create-model-request.schema.js +2 -0
- package/build/v1/ai-model/schemas/create-model-request.schema.js.map +1 -1
- package/build/v1/ai-model/schemas/index.d.ts +1 -0
- package/build/v1/ai-model/schemas/index.js +1 -0
- package/build/v1/ai-model/schemas/index.js.map +1 -1
- package/build/v1/ai-model/schemas/model-response.schema.d.ts +8 -0
- package/build/v1/ai-model/schemas/model-response.schema.js +3 -0
- package/build/v1/ai-model/schemas/model-response.schema.js.map +1 -1
- package/build/v1/ai-model/schemas/steps-settings.schema.d.ts +26 -0
- package/build/v1/ai-model/schemas/steps-settings.schema.js +24 -0
- package/build/v1/ai-model/schemas/steps-settings.schema.js.map +1 -0
- package/build/v1/ai-model/schemas/update-model-request.schema.d.ts +8 -0
- package/build/v1/ai-model/schemas/update-model-request.schema.js +2 -0
- package/build/v1/ai-model/schemas/update-model-request.schema.js.map +1 -1
- package/build/v1/chat/commands/create-reg-chat.command.d.ts +30 -28
- package/build/v1/chat/commands/create-unreg-chat.command.d.ts +30 -28
- package/build/v1/chat/commands/update-chat-title.command.d.ts +30 -28
- package/build/v1/chat/commands/update-chat.command.d.ts +30 -28
- package/build/v1/chat/queries/get-last-active-chat.query.d.ts +30 -28
- package/build/v1/chat/queries/get-reg-chat.query.d.ts +30 -28
- package/build/v1/chat/queries/get-unreg-chat.query.d.ts +30 -28
- package/build/v1/chat/schemas/chat-with-messages-response.schema.d.ts +30 -28
- package/build/v1/message/commands/cancel-stream-reg.command.d.ts +12 -0
- package/build/v1/message/commands/cancel-stream-reg.command.js +15 -0
- package/build/v1/message/commands/cancel-stream-reg.command.js.map +1 -0
- package/build/v1/message/commands/cancel-stream-unreg.command.d.ts +12 -0
- package/build/v1/message/commands/cancel-stream-unreg.command.js +15 -0
- package/build/v1/message/commands/cancel-stream-unreg.command.js.map +1 -0
- package/build/v1/message/commands/create-message.command.d.ts +47 -48
- package/build/v1/message/commands/create-message.command.js +4 -1
- package/build/v1/message/commands/create-message.command.js.map +1 -1
- package/build/v1/message/commands/delete-message-reg.command.d.ts +12 -0
- package/build/v1/message/commands/delete-message-reg.command.js +15 -0
- package/build/v1/message/commands/delete-message-reg.command.js.map +1 -0
- package/build/v1/message/commands/delete-message-unreg.command.d.ts +12 -0
- package/build/v1/message/commands/delete-message-unreg.command.js +15 -0
- package/build/v1/message/commands/delete-message-unreg.command.js.map +1 -0
- package/build/v1/message/commands/index.d.ts +4 -0
- package/build/v1/message/commands/index.js +9 -1
- package/build/v1/message/commands/index.js.map +1 -1
- package/build/v1/message/message.errors.d.ts +6 -1
- package/build/v1/message/message.errors.js +25 -0
- package/build/v1/message/message.errors.js.map +1 -1
- package/build/v1/message/schemas/citation.schema.d.ts +4 -0
- package/build/v1/message/schemas/citation.schema.js +6 -1
- package/build/v1/message/schemas/citation.schema.js.map +1 -1
- package/build/v1/message/schemas/generation-step.schema.d.ts +11 -1
- package/build/v1/message/schemas/generation-step.schema.js +12 -1
- package/build/v1/message/schemas/generation-step.schema.js.map +1 -1
- package/build/v1/message/schemas/index.d.ts +10 -6
- package/build/v1/message/schemas/index.js +21 -10
- package/build/v1/message/schemas/index.js.map +1 -1
- package/build/v1/message/schemas/message-attachment-response.schema.d.ts +35 -0
- package/build/v1/message/schemas/message-attachment-response.schema.js +21 -0
- package/build/v1/message/schemas/message-attachment-response.schema.js.map +1 -0
- package/build/v1/message/schemas/message-attachment.schema.d.ts +12 -1
- package/build/v1/message/schemas/message-attachment.schema.js +14 -1
- package/build/v1/message/schemas/message-attachment.schema.js.map +1 -1
- package/build/v1/message/schemas/message-citation-response.schema.d.ts +19 -0
- package/build/v1/message/schemas/message-citation-response.schema.js +14 -0
- package/build/v1/message/schemas/message-citation-response.schema.js.map +1 -0
- package/build/v1/message/schemas/message-response.schema.d.ts +30 -28
- package/build/v1/message/schemas/message-response.schema.js +6 -2
- package/build/v1/message/schemas/message-response.schema.js.map +1 -1
- package/build/v1/message/schemas/message-status.enum.d.ts +1 -0
- package/build/v1/message/schemas/message-status.enum.js +1 -0
- package/build/v1/message/schemas/message-status.enum.js.map +1 -1
- package/build/v1/message/schemas/message-step-response.schema.d.ts +29 -0
- package/build/v1/message/schemas/message-step-response.schema.js +19 -0
- package/build/v1/message/schemas/message-step-response.schema.js.map +1 -0
- package/build/v1/message/schemas/stream-events.schema.d.ts +48 -100
- package/build/v1/message/schemas/stream-events.schema.js +30 -44
- package/build/v1/message/schemas/stream-events.schema.js.map +1 -1
- package/package.json +1 -1
- package/build/v1/message/schemas/message-meta.schema.d.ts +0 -53
- package/build/v1/message/schemas/message-meta.schema.js +0 -25
- package/build/v1/message/schemas/message-meta.schema.js.map +0 -1
|
@@ -25,6 +25,14 @@ export declare namespace AdminAiModelCreateCommand {
|
|
|
25
25
|
id: z.ZodEnum<typeof import("../../..").PluginId>;
|
|
26
26
|
price: z.ZodNumber;
|
|
27
27
|
}, z.core.$strip>>>;
|
|
28
|
+
stepsSettings: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
29
|
+
steps: z.ZodArray<z.ZodEnum<typeof import("../../..").GenerationStepType>>;
|
|
30
|
+
overrides: z.ZodOptional<z.ZodRecord<z.ZodEnum<typeof import("../../..").GenerationStepType>, z.ZodObject<{
|
|
31
|
+
model: z.ZodOptional<z.ZodString>;
|
|
32
|
+
temperature: z.ZodOptional<z.ZodNumber>;
|
|
33
|
+
systemPromptKey: z.ZodOptional<z.ZodString>;
|
|
34
|
+
}, z.core.$strict>>>;
|
|
35
|
+
}, z.core.$strict>>>;
|
|
28
36
|
}, z.core.$strip>;
|
|
29
37
|
const Response: z.ZodObject<{
|
|
30
38
|
uuid: z.ZodString;
|
|
@@ -51,6 +59,14 @@ export declare namespace AdminAiModelCreateCommand {
|
|
|
51
59
|
id: z.ZodEnum<typeof import("../../..").PluginId>;
|
|
52
60
|
price: z.ZodNumber;
|
|
53
61
|
}, z.core.$strip>>;
|
|
62
|
+
stepsSettings: z.ZodNullable<z.ZodObject<{
|
|
63
|
+
steps: z.ZodArray<z.ZodEnum<typeof import("../../..").GenerationStepType>>;
|
|
64
|
+
overrides: z.ZodOptional<z.ZodRecord<z.ZodEnum<typeof import("../../..").GenerationStepType>, z.ZodObject<{
|
|
65
|
+
model: z.ZodOptional<z.ZodString>;
|
|
66
|
+
temperature: z.ZodOptional<z.ZodNumber>;
|
|
67
|
+
systemPromptKey: z.ZodOptional<z.ZodString>;
|
|
68
|
+
}, z.core.$strict>>>;
|
|
69
|
+
}, z.core.$strict>>;
|
|
54
70
|
createdAt: z.ZodString;
|
|
55
71
|
updatedAt: z.ZodString;
|
|
56
72
|
}, z.core.$strip>;
|
|
@@ -25,6 +25,14 @@ export declare namespace AdminAiModelUpdateCommand {
|
|
|
25
25
|
id: z.ZodEnum<typeof import("../../..").PluginId>;
|
|
26
26
|
price: z.ZodNumber;
|
|
27
27
|
}, z.core.$strip>>>;
|
|
28
|
+
stepsSettings: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
29
|
+
steps: z.ZodArray<z.ZodEnum<typeof import("../../..").GenerationStepType>>;
|
|
30
|
+
overrides: z.ZodOptional<z.ZodRecord<z.ZodEnum<typeof import("../../..").GenerationStepType>, z.ZodObject<{
|
|
31
|
+
model: z.ZodOptional<z.ZodString>;
|
|
32
|
+
temperature: z.ZodOptional<z.ZodNumber>;
|
|
33
|
+
systemPromptKey: z.ZodOptional<z.ZodString>;
|
|
34
|
+
}, z.core.$strict>>>;
|
|
35
|
+
}, z.core.$strict>>>;
|
|
28
36
|
}, z.core.$strip>;
|
|
29
37
|
const Response: z.ZodObject<{
|
|
30
38
|
uuid: z.ZodString;
|
|
@@ -51,6 +59,14 @@ export declare namespace AdminAiModelUpdateCommand {
|
|
|
51
59
|
id: z.ZodEnum<typeof import("../../..").PluginId>;
|
|
52
60
|
price: z.ZodNumber;
|
|
53
61
|
}, z.core.$strip>>;
|
|
62
|
+
stepsSettings: z.ZodNullable<z.ZodObject<{
|
|
63
|
+
steps: z.ZodArray<z.ZodEnum<typeof import("../../..").GenerationStepType>>;
|
|
64
|
+
overrides: z.ZodOptional<z.ZodRecord<z.ZodEnum<typeof import("../../..").GenerationStepType>, z.ZodObject<{
|
|
65
|
+
model: z.ZodOptional<z.ZodString>;
|
|
66
|
+
temperature: z.ZodOptional<z.ZodNumber>;
|
|
67
|
+
systemPromptKey: z.ZodOptional<z.ZodString>;
|
|
68
|
+
}, z.core.$strict>>>;
|
|
69
|
+
}, z.core.$strict>>;
|
|
54
70
|
createdAt: z.ZodString;
|
|
55
71
|
updatedAt: z.ZodString;
|
|
56
72
|
}, z.core.$strip>;
|
|
@@ -27,6 +27,14 @@ export declare namespace AdminAiModelGetModelQuery {
|
|
|
27
27
|
id: z.ZodEnum<typeof import("../../..").PluginId>;
|
|
28
28
|
price: z.ZodNumber;
|
|
29
29
|
}, z.core.$strip>>;
|
|
30
|
+
stepsSettings: z.ZodNullable<z.ZodObject<{
|
|
31
|
+
steps: z.ZodArray<z.ZodEnum<typeof import("../../..").GenerationStepType>>;
|
|
32
|
+
overrides: z.ZodOptional<z.ZodRecord<z.ZodEnum<typeof import("../../..").GenerationStepType>, z.ZodObject<{
|
|
33
|
+
model: z.ZodOptional<z.ZodString>;
|
|
34
|
+
temperature: z.ZodOptional<z.ZodNumber>;
|
|
35
|
+
systemPromptKey: z.ZodOptional<z.ZodString>;
|
|
36
|
+
}, z.core.$strict>>>;
|
|
37
|
+
}, z.core.$strict>>;
|
|
30
38
|
createdAt: z.ZodString;
|
|
31
39
|
updatedAt: z.ZodString;
|
|
32
40
|
}, z.core.$strip>;
|
|
@@ -34,6 +34,14 @@ export declare namespace AdminAiModelGetModelsQuery {
|
|
|
34
34
|
id: z.ZodEnum<typeof import("../../..").PluginId>;
|
|
35
35
|
price: z.ZodNumber;
|
|
36
36
|
}, z.core.$strip>>;
|
|
37
|
+
stepsSettings: z.ZodNullable<z.ZodObject<{
|
|
38
|
+
steps: z.ZodArray<z.ZodEnum<typeof import("../../..").GenerationStepType>>;
|
|
39
|
+
overrides: z.ZodOptional<z.ZodRecord<z.ZodEnum<typeof import("../../..").GenerationStepType>, z.ZodObject<{
|
|
40
|
+
model: z.ZodOptional<z.ZodString>;
|
|
41
|
+
temperature: z.ZodOptional<z.ZodNumber>;
|
|
42
|
+
systemPromptKey: z.ZodOptional<z.ZodString>;
|
|
43
|
+
}, z.core.$strict>>>;
|
|
44
|
+
}, z.core.$strict>>;
|
|
37
45
|
createdAt: z.ZodString;
|
|
38
46
|
updatedAt: z.ZodString;
|
|
39
47
|
}, z.core.$strip>>;
|
|
@@ -28,4 +28,12 @@ export declare const CreateModelRequestSchema: z.ZodObject<{
|
|
|
28
28
|
id: z.ZodEnum<typeof import("../../ai/plugins.types").PluginId>;
|
|
29
29
|
price: z.ZodNumber;
|
|
30
30
|
}, z.core.$strip>>>;
|
|
31
|
+
stepsSettings: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
32
|
+
steps: z.ZodArray<z.ZodEnum<typeof import("../..").GenerationStepType>>;
|
|
33
|
+
overrides: z.ZodOptional<z.ZodRecord<z.ZodEnum<typeof import("../..").GenerationStepType>, z.ZodObject<{
|
|
34
|
+
model: z.ZodOptional<z.ZodString>;
|
|
35
|
+
temperature: z.ZodOptional<z.ZodNumber>;
|
|
36
|
+
systemPromptKey: z.ZodOptional<z.ZodString>;
|
|
37
|
+
}, z.core.$strict>>>;
|
|
38
|
+
}, z.core.$strict>>>;
|
|
31
39
|
}, z.core.$strip>;
|
|
@@ -8,6 +8,7 @@ const model_type_enum_1 = require("./model-type.enum");
|
|
|
8
8
|
const api_provider_enum_1 = require("./api-provider.enum");
|
|
9
9
|
const modality_enum_1 = require("./modality.enum");
|
|
10
10
|
const plugins_types_1 = require("../../ai/plugins.types");
|
|
11
|
+
const steps_settings_schema_1 = require("./steps-settings.schema");
|
|
11
12
|
exports.CreateModelRequestSchema = zod_1.z.object({
|
|
12
13
|
title: zod_1.z
|
|
13
14
|
.string({ error: 'CreateModelRequest.title.required' })
|
|
@@ -60,5 +61,6 @@ exports.CreateModelRequestSchema = zod_1.z.object({
|
|
|
60
61
|
systemPrompt: zod_1.z.string().nullable().optional(),
|
|
61
62
|
isAvailableForUnreg: zod_1.z.boolean().default(false),
|
|
62
63
|
plugins: plugins_types_1.PluginsConfigArraySchema.default([]),
|
|
64
|
+
stepsSettings: steps_settings_schema_1.NullableStepsSettingsSchema.default(null),
|
|
63
65
|
});
|
|
64
66
|
//# sourceMappingURL=create-model-request.schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-model-request.schema.js","sourceRoot":"","sources":["../../../../v1/ai-model/schemas/create-model-request.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iEAAuD;AACvD,uDAA8C;AAC9C,uDAA8C;AAC9C,2DAAkD;AAClD,mDAA2C;AAC3C,0DAAkE;
|
|
1
|
+
{"version":3,"file":"create-model-request.schema.js","sourceRoot":"","sources":["../../../../v1/ai-model/schemas/create-model-request.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iEAAuD;AACvD,uDAA8C;AAC9C,uDAA8C;AAC9C,2DAAkD;AAClD,mDAA2C;AAC3C,0DAAkE;AAClE,mEAAsE;AAMzD,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,KAAK,EAAE,OAAC;SACH,MAAM,CAAC,EAAE,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,2BAAS,CAAC,CAAC,OAAO,CAAC,2BAAS,CAAC,IAAI,CAAC;IAC1D,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC9C,mBAAmB,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;IAC/C,OAAO,EAAE,wCAAwB,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7C,aAAa,EAAE,mDAA2B,CAAC,OAAO,CAAC,IAAI,CAAC;CAC3D,CAAC,CAAC"}
|
|
@@ -3,6 +3,7 @@ export * from './model-mark.enum';
|
|
|
3
3
|
export * from './model-type.enum';
|
|
4
4
|
export * from './api-provider.enum';
|
|
5
5
|
export * from './modality.enum';
|
|
6
|
+
export * from './steps-settings.schema';
|
|
6
7
|
export * from './create-model-request.schema';
|
|
7
8
|
export * from './update-model-request.schema';
|
|
8
9
|
export * from './model-response.schema';
|
|
@@ -19,6 +19,7 @@ __exportStar(require("./model-mark.enum"), exports);
|
|
|
19
19
|
__exportStar(require("./model-type.enum"), exports);
|
|
20
20
|
__exportStar(require("./api-provider.enum"), exports);
|
|
21
21
|
__exportStar(require("./modality.enum"), exports);
|
|
22
|
+
__exportStar(require("./steps-settings.schema"), exports);
|
|
22
23
|
__exportStar(require("./create-model-request.schema"), exports);
|
|
23
24
|
__exportStar(require("./update-model-request.schema"), exports);
|
|
24
25
|
__exportStar(require("./model-response.schema"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/ai-model/schemas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC;AACvC,oDAAkC;AAClC,oDAAkC;AAClC,sDAAoC;AACpC,kDAAgC;AAChC,gEAA8C;AAC9C,gEAA8C;AAC9C,0DAAwC;AACxC,wDAAsC;AACtC,8DAA4C;AAC5C,gEAA8C;AAC9C,sEAAoD"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/ai-model/schemas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC;AACvC,oDAAkC;AAClC,oDAAkC;AAClC,sDAAoC;AACpC,kDAAgC;AAChC,0DAAwC;AACxC,gEAA8C;AAC9C,gEAA8C;AAC9C,0DAAwC;AACxC,wDAAsC;AACtC,8DAA4C;AAC5C,gEAA8C;AAC9C,sEAAoD"}
|
|
@@ -29,6 +29,14 @@ export declare const ModelResponseSchema: z.ZodObject<{
|
|
|
29
29
|
id: z.ZodEnum<typeof import("../../ai/plugins.types").PluginId>;
|
|
30
30
|
price: z.ZodNumber;
|
|
31
31
|
}, z.core.$strip>>;
|
|
32
|
+
stepsSettings: z.ZodNullable<z.ZodObject<{
|
|
33
|
+
steps: z.ZodArray<z.ZodEnum<typeof import("../..").GenerationStepType>>;
|
|
34
|
+
overrides: z.ZodOptional<z.ZodRecord<z.ZodEnum<typeof import("../..").GenerationStepType>, z.ZodObject<{
|
|
35
|
+
model: z.ZodOptional<z.ZodString>;
|
|
36
|
+
temperature: z.ZodOptional<z.ZodNumber>;
|
|
37
|
+
systemPromptKey: z.ZodOptional<z.ZodString>;
|
|
38
|
+
}, z.core.$strict>>>;
|
|
39
|
+
}, z.core.$strict>>;
|
|
32
40
|
createdAt: z.ZodString;
|
|
33
41
|
updatedAt: z.ZodString;
|
|
34
42
|
}, z.core.$strip>;
|
|
@@ -9,6 +9,7 @@ const model_type_enum_1 = require("./model-type.enum");
|
|
|
9
9
|
const api_provider_enum_1 = require("./api-provider.enum");
|
|
10
10
|
const modality_enum_1 = require("./modality.enum");
|
|
11
11
|
const plugins_types_1 = require("../../ai/plugins.types");
|
|
12
|
+
const steps_settings_schema_1 = require("./steps-settings.schema");
|
|
12
13
|
exports.ModelResponseSchema = zod_1.z.object({
|
|
13
14
|
uuid: zod_1.z.string().regex(shared_1.UUID_REGEX),
|
|
14
15
|
title: zod_1.z.string(),
|
|
@@ -31,6 +32,7 @@ exports.ModelResponseSchema = zod_1.z.object({
|
|
|
31
32
|
systemPrompt: zod_1.z.string().nullable(),
|
|
32
33
|
isAvailableForUnreg: zod_1.z.boolean(),
|
|
33
34
|
plugins: zod_1.z.array(plugins_types_1.PluginConfigSchema),
|
|
35
|
+
stepsSettings: steps_settings_schema_1.NullableStepsSettingsSchema,
|
|
34
36
|
createdAt: zod_1.z.string().regex(shared_1.DATETIME_REGEX),
|
|
35
37
|
updatedAt: zod_1.z.string().regex(shared_1.DATETIME_REGEX),
|
|
36
38
|
});
|
|
@@ -44,6 +46,7 @@ exports.PublicModelResponseSchema = exports.ModelResponseSchema.omit({
|
|
|
44
46
|
createdAt: true,
|
|
45
47
|
updatedAt: true,
|
|
46
48
|
isAvailableForUnreg: true,
|
|
49
|
+
stepsSettings: true,
|
|
47
50
|
});
|
|
48
51
|
exports.UnregModelResponseSchema = exports.PublicModelResponseSchema.extend({
|
|
49
52
|
access: zod_1.z.boolean(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-response.schema.js","sourceRoot":"","sources":["../../../../v1/ai-model/schemas/model-response.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,4CAA6D;AAC7D,iEAAuD;AACvD,uDAA8C;AAC9C,uDAA8C;AAC9C,2DAAkD;AAClD,mDAA2C;AAC3C,0DAA4D;
|
|
1
|
+
{"version":3,"file":"model-response.schema.js","sourceRoot":"","sources":["../../../../v1/ai-model/schemas/model-response.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,4CAA6D;AAC7D,iEAAuD;AACvD,uDAA8C;AAC9C,uDAA8C;AAC9C,2DAAkD;AAClD,mDAA2C;AAC3C,0DAA4D;AAC5D,mEAAsE;AAKzD,QAAA,mBAAmB,GAAG,OAAC,CAAC,MAAM,CAAC;IACxC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,mBAAU,CAAC;IAClC,KAAK,EAAE,OAAC,CAAC,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ChC,OAAO,EAAE,OAAC,CAAC,KAAK,CAAC,kCAAkB,CAAC;IACpC,aAAa,EAAE,mDAA2B;IAC1C,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,uBAAc,CAAC;IAC3C,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,uBAAc,CAAC;CAC9C,CAAC,CAAC;AAKU,QAAA,yBAAyB,GAAG,2BAAmB,CAAC,IAAI,CAAC;IAC9D,KAAK,EAAE,IAAI;IACX,WAAW,EAAE,IAAI;IACjB,aAAa,EAAE,IAAI;IACnB,YAAY,EAAE,IAAI;IAClB,MAAM,EAAE,IAAI;IACZ,YAAY,EAAE,IAAI;IAClB,SAAS,EAAE,IAAI;IACf,SAAS,EAAE,IAAI;IACf,mBAAmB,EAAE,IAAI;IACzB,aAAa,EAAE,IAAI;CACtB,CAAC,CAAC;AAMU,QAAA,wBAAwB,GAAG,iCAAyB,CAAC,MAAM,CAAC;IACrE,MAAM,EAAE,OAAC,CAAC,OAAO,EAAE;CACtB,CAAC,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { GenerationStepType } from '../../message/schemas/generation-step.schema';
|
|
3
|
+
export declare const StepOverrideSchema: z.ZodObject<{
|
|
4
|
+
model: z.ZodOptional<z.ZodString>;
|
|
5
|
+
temperature: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
systemPromptKey: z.ZodOptional<z.ZodString>;
|
|
7
|
+
}, z.core.$strict>;
|
|
8
|
+
export type StepOverride = z.infer<typeof StepOverrideSchema>;
|
|
9
|
+
export declare const StepsSettingsSchema: z.ZodObject<{
|
|
10
|
+
steps: z.ZodArray<z.ZodEnum<typeof GenerationStepType>>;
|
|
11
|
+
overrides: z.ZodOptional<z.ZodRecord<z.ZodEnum<typeof GenerationStepType>, z.ZodObject<{
|
|
12
|
+
model: z.ZodOptional<z.ZodString>;
|
|
13
|
+
temperature: z.ZodOptional<z.ZodNumber>;
|
|
14
|
+
systemPromptKey: z.ZodOptional<z.ZodString>;
|
|
15
|
+
}, z.core.$strict>>>;
|
|
16
|
+
}, z.core.$strict>;
|
|
17
|
+
export type StepsSettings = z.infer<typeof StepsSettingsSchema>;
|
|
18
|
+
export declare const NullableStepsSettingsSchema: z.ZodNullable<z.ZodObject<{
|
|
19
|
+
steps: z.ZodArray<z.ZodEnum<typeof GenerationStepType>>;
|
|
20
|
+
overrides: z.ZodOptional<z.ZodRecord<z.ZodEnum<typeof GenerationStepType>, z.ZodObject<{
|
|
21
|
+
model: z.ZodOptional<z.ZodString>;
|
|
22
|
+
temperature: z.ZodOptional<z.ZodNumber>;
|
|
23
|
+
systemPromptKey: z.ZodOptional<z.ZodString>;
|
|
24
|
+
}, z.core.$strict>>>;
|
|
25
|
+
}, z.core.$strict>>;
|
|
26
|
+
export type NullableStepsSettings = z.infer<typeof NullableStepsSettingsSchema>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NullableStepsSettingsSchema = exports.StepsSettingsSchema = exports.StepOverrideSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const generation_step_schema_1 = require("../../message/schemas/generation-step.schema");
|
|
6
|
+
exports.StepOverrideSchema = zod_1.z
|
|
7
|
+
.object({
|
|
8
|
+
model: zod_1.z.string().uuid().optional(),
|
|
9
|
+
temperature: zod_1.z.number().min(0).max(2).optional(),
|
|
10
|
+
systemPromptKey: zod_1.z.string().optional(),
|
|
11
|
+
})
|
|
12
|
+
.strict();
|
|
13
|
+
exports.StepsSettingsSchema = zod_1.z
|
|
14
|
+
.object({
|
|
15
|
+
steps: zod_1.z
|
|
16
|
+
.array(zod_1.z.nativeEnum(generation_step_schema_1.GenerationStepType))
|
|
17
|
+
.min(1, 'At least one step is required')
|
|
18
|
+
.max(10, 'Maximum 10 steps allowed')
|
|
19
|
+
.refine((steps) => new Set(steps).size === steps.length, 'Duplicate steps are not allowed'),
|
|
20
|
+
overrides: zod_1.z.record(zod_1.z.nativeEnum(generation_step_schema_1.GenerationStepType), exports.StepOverrideSchema).optional(),
|
|
21
|
+
})
|
|
22
|
+
.strict();
|
|
23
|
+
exports.NullableStepsSettingsSchema = exports.StepsSettingsSchema.nullable();
|
|
24
|
+
//# sourceMappingURL=steps-settings.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"steps-settings.schema.js","sourceRoot":"","sources":["../../../../v1/ai-model/schemas/steps-settings.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,yFAAkF;AAMrE,QAAA,kBAAkB,GAAG,OAAC;KAC9B,MAAM,CAAC;IAEJ,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IAEnC,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IAEhD,eAAe,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACzC,CAAC;KACD,MAAM,EAAE,CAAC;AAwBD,QAAA,mBAAmB,GAAG,OAAC;KAC/B,MAAM,CAAC;IAEJ,KAAK,EAAE,OAAC;SACH,KAAK,CAAC,OAAC,CAAC,UAAU,CAAC,2CAAkB,CAAC,CAAC;SACvC,GAAG,CAAC,CAAC,EAAE,+BAA+B,CAAC;SACvC,GAAG,CAAC,EAAE,EAAE,0BAA0B,CAAC;SACnC,MAAM,CACH,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC,IAAI,KAAK,KAAK,CAAC,MAAM,EAC/C,iCAAiC,CACpC;IAGL,SAAS,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,UAAU,CAAC,2CAAkB,CAAC,EAAE,0BAAkB,CAAC,CAAC,QAAQ,EAAE;CACvF,CAAC;KACD,MAAM,EAAE,CAAC;AAOD,QAAA,2BAA2B,GAAG,2BAAmB,CAAC,QAAQ,EAAE,CAAC"}
|
|
@@ -28,4 +28,12 @@ export declare const UpdateModelRequestSchema: z.ZodObject<{
|
|
|
28
28
|
id: z.ZodEnum<typeof import("../../ai/plugins.types").PluginId>;
|
|
29
29
|
price: z.ZodNumber;
|
|
30
30
|
}, z.core.$strip>>>;
|
|
31
|
+
stepsSettings: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
32
|
+
steps: z.ZodArray<z.ZodEnum<typeof import("../..").GenerationStepType>>;
|
|
33
|
+
overrides: z.ZodOptional<z.ZodRecord<z.ZodEnum<typeof import("../..").GenerationStepType>, z.ZodObject<{
|
|
34
|
+
model: z.ZodOptional<z.ZodString>;
|
|
35
|
+
temperature: z.ZodOptional<z.ZodNumber>;
|
|
36
|
+
systemPromptKey: z.ZodOptional<z.ZodString>;
|
|
37
|
+
}, z.core.$strict>>>;
|
|
38
|
+
}, z.core.$strict>>>;
|
|
31
39
|
}, z.core.$strip>;
|
|
@@ -8,6 +8,7 @@ const model_type_enum_1 = require("./model-type.enum");
|
|
|
8
8
|
const api_provider_enum_1 = require("./api-provider.enum");
|
|
9
9
|
const modality_enum_1 = require("./modality.enum");
|
|
10
10
|
const plugins_types_1 = require("../../ai/plugins.types");
|
|
11
|
+
const steps_settings_schema_1 = require("./steps-settings.schema");
|
|
11
12
|
exports.UpdateModelRequestSchema = zod_1.z.object({
|
|
12
13
|
title: zod_1.z
|
|
13
14
|
.string()
|
|
@@ -64,5 +65,6 @@ exports.UpdateModelRequestSchema = zod_1.z.object({
|
|
|
64
65
|
systemPrompt: zod_1.z.string().nullable().optional(),
|
|
65
66
|
isAvailableForUnreg: zod_1.z.boolean().optional(),
|
|
66
67
|
plugins: plugins_types_1.PluginsConfigArraySchema.optional(),
|
|
68
|
+
stepsSettings: steps_settings_schema_1.NullableStepsSettingsSchema.optional(),
|
|
67
69
|
});
|
|
68
70
|
//# sourceMappingURL=update-model-request.schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-model-request.schema.js","sourceRoot":"","sources":["../../../../v1/ai-model/schemas/update-model-request.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iEAAuD;AACvD,uDAA8C;AAC9C,uDAA8C;AAC9C,2DAAkD;AAClD,mDAA2C;AAC3C,0DAAkE;
|
|
1
|
+
{"version":3,"file":"update-model-request.schema.js","sourceRoot":"","sources":["../../../../v1/ai-model/schemas/update-model-request.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iEAAuD;AACvD,uDAA8C;AAC9C,uDAA8C;AAC9C,2DAAkD;AAClD,mDAA2C;AAC3C,0DAAkE;AAClE,mEAAsE;AAMzD,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,KAAK,EAAE,OAAC;SACH,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,8BAA8B,EAAE,CAAC;SACnD,GAAG,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,8BAA8B,EAAE,CAAC;SACrD,QAAQ,EAAE;IACf,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,KAAK,EAAE,OAAC;SACH,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,8BAA8B,EAAE,CAAC;SACnD,GAAG,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,8BAA8B,EAAE,CAAC;SACrD,QAAQ,EAAE;IACf,IAAI,EAAE,OAAC;SACF,MAAM,EAAE;SACR,GAAG,CAAC,EAAE,OAAO,EAAE,iCAAiC,EAAE,CAAC;SACnD,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE;QACzC,OAAO,EAAE,+BA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EAAE,CAAC;SACjE,QAAQ,EAAE;IACf,WAAW,EAAE,OAAC,CAAC,UAAU,CAAC,+BAAW,CAAC,CAAC,QAAQ,EAAE;IACjD,eAAe,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,UAAU,CAAC,wBAAQ,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC3D,gBAAgB,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,UAAU,CAAC,wBAAQ,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC5D,SAAS,EAAE,OAAC,CAAC,UAAU,CAAC,2BAAS,CAAC,CAAC,QAAQ,EAAE;IAC7C,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC9C,mBAAmB,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC3C,OAAO,EAAE,wCAAwB,CAAC,QAAQ,EAAE;IAC5C,aAAa,EAAE,mDAA2B,CAAC,QAAQ,EAAE;CACxD,CAAC,CAAC"}
|
|
@@ -19,35 +19,37 @@ export declare namespace CreateRegChatCommand {
|
|
|
19
19
|
content: z.ZodString;
|
|
20
20
|
aiModelId: z.ZodNullable<z.ZodString>;
|
|
21
21
|
userRating: z.ZodNullable<z.ZodEnum<typeof import("../..").UserRating>>;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
format: z.ZodOptional<z.ZodString>;
|
|
29
|
-
index: z.ZodOptional<z.ZodNumber>;
|
|
30
|
-
id: z.ZodOptional<z.ZodString>;
|
|
31
|
-
data: z.ZodOptional<z.ZodString>;
|
|
32
|
-
summary: z.ZodOptional<z.ZodString>;
|
|
33
|
-
}, z.core.$strip>>>;
|
|
22
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
23
|
+
uuid: z.ZodString;
|
|
24
|
+
type: z.ZodEnum<typeof import("../..").GenerationStepType>;
|
|
25
|
+
status: z.ZodEnum<typeof import("../..").MessageStepStatus>;
|
|
26
|
+
content: z.ZodNullable<z.ZodObject<{
|
|
27
|
+
text: z.ZodOptional<z.ZodString>;
|
|
34
28
|
}, z.core.$strip>>;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}, z.core.$strip
|
|
29
|
+
showInUi: z.ZodBoolean;
|
|
30
|
+
startedAt: z.ZodNullable<z.ZodString>;
|
|
31
|
+
completedAt: z.ZodNullable<z.ZodString>;
|
|
32
|
+
}, z.core.$strip>>;
|
|
33
|
+
attachments: z.ZodArray<z.ZodObject<{
|
|
34
|
+
uuid: z.ZodString;
|
|
35
|
+
source: z.ZodEnum<typeof import("../..").AttachmentSource>;
|
|
36
|
+
type: z.ZodEnum<typeof import("../..").AttachmentType>;
|
|
37
|
+
url: z.ZodString;
|
|
38
|
+
mimeType: z.ZodNullable<z.ZodString>;
|
|
39
|
+
filename: z.ZodNullable<z.ZodString>;
|
|
40
|
+
size: z.ZodNullable<z.ZodNumber>;
|
|
41
|
+
meta: z.ZodNullable<z.ZodObject<{
|
|
42
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
43
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
44
|
+
}, z.core.$strip>>;
|
|
45
|
+
}, z.core.$strip>>;
|
|
46
|
+
citations: z.ZodArray<z.ZodObject<{
|
|
47
|
+
uuid: z.ZodString;
|
|
48
|
+
url: z.ZodString;
|
|
49
|
+
title: z.ZodNullable<z.ZodString>;
|
|
50
|
+
content: z.ZodNullable<z.ZodString>;
|
|
51
|
+
startIndex: z.ZodNullable<z.ZodNumber>;
|
|
52
|
+
endIndex: z.ZodNullable<z.ZodNumber>;
|
|
51
53
|
}, z.core.$strip>>;
|
|
52
54
|
createdAt: z.ZodString;
|
|
53
55
|
updatedAt: z.ZodString;
|
|
@@ -17,35 +17,37 @@ export declare namespace CreateUnregChatCommand {
|
|
|
17
17
|
content: z.ZodString;
|
|
18
18
|
aiModelId: z.ZodNullable<z.ZodString>;
|
|
19
19
|
userRating: z.ZodNullable<z.ZodEnum<typeof import("../..").UserRating>>;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
format: z.ZodOptional<z.ZodString>;
|
|
27
|
-
index: z.ZodOptional<z.ZodNumber>;
|
|
28
|
-
id: z.ZodOptional<z.ZodString>;
|
|
29
|
-
data: z.ZodOptional<z.ZodString>;
|
|
30
|
-
summary: z.ZodOptional<z.ZodString>;
|
|
31
|
-
}, z.core.$strip>>>;
|
|
20
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
21
|
+
uuid: z.ZodString;
|
|
22
|
+
type: z.ZodEnum<typeof import("../..").GenerationStepType>;
|
|
23
|
+
status: z.ZodEnum<typeof import("../..").MessageStepStatus>;
|
|
24
|
+
content: z.ZodNullable<z.ZodObject<{
|
|
25
|
+
text: z.ZodOptional<z.ZodString>;
|
|
32
26
|
}, z.core.$strip>>;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}, z.core.$strip
|
|
27
|
+
showInUi: z.ZodBoolean;
|
|
28
|
+
startedAt: z.ZodNullable<z.ZodString>;
|
|
29
|
+
completedAt: z.ZodNullable<z.ZodString>;
|
|
30
|
+
}, z.core.$strip>>;
|
|
31
|
+
attachments: z.ZodArray<z.ZodObject<{
|
|
32
|
+
uuid: z.ZodString;
|
|
33
|
+
source: z.ZodEnum<typeof import("../..").AttachmentSource>;
|
|
34
|
+
type: z.ZodEnum<typeof import("../..").AttachmentType>;
|
|
35
|
+
url: z.ZodString;
|
|
36
|
+
mimeType: z.ZodNullable<z.ZodString>;
|
|
37
|
+
filename: z.ZodNullable<z.ZodString>;
|
|
38
|
+
size: z.ZodNullable<z.ZodNumber>;
|
|
39
|
+
meta: z.ZodNullable<z.ZodObject<{
|
|
40
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
41
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
42
|
+
}, z.core.$strip>>;
|
|
43
|
+
}, z.core.$strip>>;
|
|
44
|
+
citations: z.ZodArray<z.ZodObject<{
|
|
45
|
+
uuid: z.ZodString;
|
|
46
|
+
url: z.ZodString;
|
|
47
|
+
title: z.ZodNullable<z.ZodString>;
|
|
48
|
+
content: z.ZodNullable<z.ZodString>;
|
|
49
|
+
startIndex: z.ZodNullable<z.ZodNumber>;
|
|
50
|
+
endIndex: z.ZodNullable<z.ZodNumber>;
|
|
49
51
|
}, z.core.$strip>>;
|
|
50
52
|
createdAt: z.ZodString;
|
|
51
53
|
updatedAt: z.ZodString;
|
|
@@ -19,35 +19,37 @@ export declare namespace UpdateChatTitleCommand {
|
|
|
19
19
|
content: z.ZodString;
|
|
20
20
|
aiModelId: z.ZodNullable<z.ZodString>;
|
|
21
21
|
userRating: z.ZodNullable<z.ZodEnum<typeof import("../..").UserRating>>;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
format: z.ZodOptional<z.ZodString>;
|
|
29
|
-
index: z.ZodOptional<z.ZodNumber>;
|
|
30
|
-
id: z.ZodOptional<z.ZodString>;
|
|
31
|
-
data: z.ZodOptional<z.ZodString>;
|
|
32
|
-
summary: z.ZodOptional<z.ZodString>;
|
|
33
|
-
}, z.core.$strip>>>;
|
|
22
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
23
|
+
uuid: z.ZodString;
|
|
24
|
+
type: z.ZodEnum<typeof import("../..").GenerationStepType>;
|
|
25
|
+
status: z.ZodEnum<typeof import("../..").MessageStepStatus>;
|
|
26
|
+
content: z.ZodNullable<z.ZodObject<{
|
|
27
|
+
text: z.ZodOptional<z.ZodString>;
|
|
34
28
|
}, z.core.$strip>>;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}, z.core.$strip
|
|
29
|
+
showInUi: z.ZodBoolean;
|
|
30
|
+
startedAt: z.ZodNullable<z.ZodString>;
|
|
31
|
+
completedAt: z.ZodNullable<z.ZodString>;
|
|
32
|
+
}, z.core.$strip>>;
|
|
33
|
+
attachments: z.ZodArray<z.ZodObject<{
|
|
34
|
+
uuid: z.ZodString;
|
|
35
|
+
source: z.ZodEnum<typeof import("../..").AttachmentSource>;
|
|
36
|
+
type: z.ZodEnum<typeof import("../..").AttachmentType>;
|
|
37
|
+
url: z.ZodString;
|
|
38
|
+
mimeType: z.ZodNullable<z.ZodString>;
|
|
39
|
+
filename: z.ZodNullable<z.ZodString>;
|
|
40
|
+
size: z.ZodNullable<z.ZodNumber>;
|
|
41
|
+
meta: z.ZodNullable<z.ZodObject<{
|
|
42
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
43
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
44
|
+
}, z.core.$strip>>;
|
|
45
|
+
}, z.core.$strip>>;
|
|
46
|
+
citations: z.ZodArray<z.ZodObject<{
|
|
47
|
+
uuid: z.ZodString;
|
|
48
|
+
url: z.ZodString;
|
|
49
|
+
title: z.ZodNullable<z.ZodString>;
|
|
50
|
+
content: z.ZodNullable<z.ZodString>;
|
|
51
|
+
startIndex: z.ZodNullable<z.ZodNumber>;
|
|
52
|
+
endIndex: z.ZodNullable<z.ZodNumber>;
|
|
51
53
|
}, z.core.$strip>>;
|
|
52
54
|
createdAt: z.ZodString;
|
|
53
55
|
updatedAt: z.ZodString;
|
|
@@ -20,35 +20,37 @@ export declare namespace UpdateChatCommand {
|
|
|
20
20
|
content: z.ZodString;
|
|
21
21
|
aiModelId: z.ZodNullable<z.ZodString>;
|
|
22
22
|
userRating: z.ZodNullable<z.ZodEnum<typeof import("../..").UserRating>>;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
format: z.ZodOptional<z.ZodString>;
|
|
30
|
-
index: z.ZodOptional<z.ZodNumber>;
|
|
31
|
-
id: z.ZodOptional<z.ZodString>;
|
|
32
|
-
data: z.ZodOptional<z.ZodString>;
|
|
33
|
-
summary: z.ZodOptional<z.ZodString>;
|
|
34
|
-
}, z.core.$strip>>>;
|
|
23
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
24
|
+
uuid: z.ZodString;
|
|
25
|
+
type: z.ZodEnum<typeof import("../..").GenerationStepType>;
|
|
26
|
+
status: z.ZodEnum<typeof import("../..").MessageStepStatus>;
|
|
27
|
+
content: z.ZodNullable<z.ZodObject<{
|
|
28
|
+
text: z.ZodOptional<z.ZodString>;
|
|
35
29
|
}, z.core.$strip>>;
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
}, z.core.$strip
|
|
30
|
+
showInUi: z.ZodBoolean;
|
|
31
|
+
startedAt: z.ZodNullable<z.ZodString>;
|
|
32
|
+
completedAt: z.ZodNullable<z.ZodString>;
|
|
33
|
+
}, z.core.$strip>>;
|
|
34
|
+
attachments: z.ZodArray<z.ZodObject<{
|
|
35
|
+
uuid: z.ZodString;
|
|
36
|
+
source: z.ZodEnum<typeof import("../..").AttachmentSource>;
|
|
37
|
+
type: z.ZodEnum<typeof import("../..").AttachmentType>;
|
|
38
|
+
url: z.ZodString;
|
|
39
|
+
mimeType: z.ZodNullable<z.ZodString>;
|
|
40
|
+
filename: z.ZodNullable<z.ZodString>;
|
|
41
|
+
size: z.ZodNullable<z.ZodNumber>;
|
|
42
|
+
meta: z.ZodNullable<z.ZodObject<{
|
|
43
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
44
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
45
|
+
}, z.core.$strip>>;
|
|
46
|
+
}, z.core.$strip>>;
|
|
47
|
+
citations: z.ZodArray<z.ZodObject<{
|
|
48
|
+
uuid: z.ZodString;
|
|
49
|
+
url: z.ZodString;
|
|
50
|
+
title: z.ZodNullable<z.ZodString>;
|
|
51
|
+
content: z.ZodNullable<z.ZodString>;
|
|
52
|
+
startIndex: z.ZodNullable<z.ZodNumber>;
|
|
53
|
+
endIndex: z.ZodNullable<z.ZodNumber>;
|
|
52
54
|
}, z.core.$strip>>;
|
|
53
55
|
createdAt: z.ZodString;
|
|
54
56
|
updatedAt: z.ZodString;
|