@veruna/api-contracts 1.0.75 → 1.0.77
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/tsconfig.tsbuildinfo +1 -1
- package/build/v1/ai/tool.types.js +16 -1
- package/build/v1/ai/tool.types.js.map +1 -1
- package/build/v1/ai-model/admin/commands/create-model.command.d.ts +2 -0
- package/build/v1/ai-model/admin/commands/update-model.command.d.ts +2 -0
- package/build/v1/ai-model/admin/queries/get-model.query.d.ts +1 -0
- package/build/v1/ai-model/admin/queries/get-models.query.d.ts +1 -0
- package/build/v1/ai-model/schemas/create-model-request.schema.d.ts +1 -0
- package/build/v1/ai-model/schemas/model-response.schema.d.ts +1 -0
- package/build/v1/ai-model/schemas/model-settings.schema.d.ts +4 -0
- package/build/v1/ai-model/schemas/model-settings.schema.js +5 -1
- package/build/v1/ai-model/schemas/model-settings.schema.js.map +1 -1
- package/build/v1/ai-model/schemas/update-model-request.schema.d.ts +1 -0
- package/build/v1/chat/commands/create-reg-chat.command.d.ts +12 -3
- package/build/v1/chat/commands/create-unreg-chat.command.d.ts +12 -3
- package/build/v1/chat/commands/update-chat-title.command.d.ts +12 -3
- package/build/v1/chat/commands/update-chat.command.d.ts +12 -3
- package/build/v1/chat/queries/get-last-active-chat.query.d.ts +12 -3
- package/build/v1/chat/queries/get-reg-chat.query.d.ts +12 -3
- package/build/v1/chat/queries/get-unreg-chat.query.d.ts +12 -3
- package/build/v1/chat/schemas/chat-with-messages-response.schema.d.ts +12 -3
- package/build/v1/message/commands/create-message.command.d.ts +22 -0
- package/build/v1/message/commands/create-message.command.js +1 -0
- package/build/v1/message/commands/create-message.command.js.map +1 -1
- package/build/v1/message/schemas/generation-step.schema.d.ts +1 -0
- package/build/v1/message/schemas/generation-step.schema.js +1 -0
- package/build/v1/message/schemas/generation-step.schema.js.map +1 -1
- package/build/v1/message/schemas/index.d.ts +3 -3
- package/build/v1/message/schemas/index.js +7 -1
- package/build/v1/message/schemas/index.js.map +1 -1
- package/build/v1/message/schemas/message-response.schema.d.ts +12 -3
- package/build/v1/message/schemas/message-step-response.schema.d.ts +61 -8
- package/build/v1/message/schemas/message-step-response.schema.js +22 -3
- package/build/v1/message/schemas/message-step-response.schema.js.map +1 -1
- package/build/v1/message/schemas/stream-events.schema.d.ts +22 -0
- package/build/v1/message/schemas/stream-events.schema.js +11 -1
- package/build/v1/message/schemas/stream-events.schema.js.map +1 -1
- package/package.json +1 -1
|
@@ -13,5 +13,20 @@ exports.ToolRequestSchema = zod_1.z.object({
|
|
|
13
13
|
.uuid({ message: 'ToolRequest.modelId.invalid' }),
|
|
14
14
|
settings: zod_1.z.array(model_settings_schema_1.SettingSelectionSchema).optional(),
|
|
15
15
|
});
|
|
16
|
-
exports.ToolRequestArraySchema = zod_1.z.array(exports.ToolRequestSchema)
|
|
16
|
+
exports.ToolRequestArraySchema = zod_1.z.array(exports.ToolRequestSchema).superRefine((tools, context) => {
|
|
17
|
+
const seen = new Map();
|
|
18
|
+
for (let index = 0; index < tools.length; index++) {
|
|
19
|
+
const tool = tools[index];
|
|
20
|
+
const existingIndex = seen.get(tool.toolId);
|
|
21
|
+
if (existingIndex !== undefined) {
|
|
22
|
+
context.addIssue({
|
|
23
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
24
|
+
path: [index, 'toolId'],
|
|
25
|
+
message: 'ToolRequestArray.toolId.duplicate',
|
|
26
|
+
});
|
|
27
|
+
continue;
|
|
28
|
+
}
|
|
29
|
+
seen.set(tool.toolId, index);
|
|
30
|
+
}
|
|
31
|
+
});
|
|
17
32
|
//# sourceMappingURL=tool.types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool.types.js","sourceRoot":"","sources":["../../../v1/ai/tool.types.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,qFAAmF;AACnF,iDAAwC;AAGxC,+CAAwC;AAA/B,sGAAA,MAAM,OAAA;AAKF,QAAA,iBAAiB,GAAG,OA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,CAAC;QAChD,MAAM,IAAI,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC;QAC1B,MAAM,aAAa,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC5C,IAAI,aAAa,KAAK,SAAS,EAAE,CAAC;YAC9B,OAAO,CAAC,QAAQ,CAAC;gBACb,IAAI,EAAE,OAAC,CAAC,YAAY,CAAC,MAAM;gBAC3B,IAAI,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC;gBACvB,OAAO,EAAE,mCAAmC;aAC/C,CAAC,CAAC;YACH,SAAS;QACb,CAAC;QAED,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IACjC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -47,6 +47,7 @@ export declare namespace AdminAiModelCreateCommand {
|
|
|
47
47
|
title: z.ZodString;
|
|
48
48
|
icon: z.ZodOptional<z.ZodString>;
|
|
49
49
|
priceModifier: z.ZodDefault<z.ZodNumber>;
|
|
50
|
+
providerValue: z.ZodOptional<z.ZodString>;
|
|
50
51
|
promptSuffix: z.ZodOptional<z.ZodString>;
|
|
51
52
|
}, z.core.$strip>>;
|
|
52
53
|
defaultOptionId: z.ZodString;
|
|
@@ -108,6 +109,7 @@ export declare namespace AdminAiModelCreateCommand {
|
|
|
108
109
|
title: z.ZodString;
|
|
109
110
|
icon: z.ZodOptional<z.ZodString>;
|
|
110
111
|
priceModifier: z.ZodDefault<z.ZodNumber>;
|
|
112
|
+
providerValue: z.ZodOptional<z.ZodString>;
|
|
111
113
|
promptSuffix: z.ZodOptional<z.ZodString>;
|
|
112
114
|
}, z.core.$strip>>;
|
|
113
115
|
defaultOptionId: z.ZodString;
|
|
@@ -47,6 +47,7 @@ export declare namespace AdminAiModelUpdateCommand {
|
|
|
47
47
|
title: z.ZodString;
|
|
48
48
|
icon: z.ZodOptional<z.ZodString>;
|
|
49
49
|
priceModifier: z.ZodDefault<z.ZodNumber>;
|
|
50
|
+
providerValue: z.ZodOptional<z.ZodString>;
|
|
50
51
|
promptSuffix: z.ZodOptional<z.ZodString>;
|
|
51
52
|
}, z.core.$strip>>;
|
|
52
53
|
defaultOptionId: z.ZodString;
|
|
@@ -108,6 +109,7 @@ export declare namespace AdminAiModelUpdateCommand {
|
|
|
108
109
|
title: z.ZodString;
|
|
109
110
|
icon: z.ZodOptional<z.ZodString>;
|
|
110
111
|
priceModifier: z.ZodDefault<z.ZodNumber>;
|
|
112
|
+
providerValue: z.ZodOptional<z.ZodString>;
|
|
111
113
|
promptSuffix: z.ZodOptional<z.ZodString>;
|
|
112
114
|
}, z.core.$strip>>;
|
|
113
115
|
defaultOptionId: z.ZodString;
|
|
@@ -49,6 +49,7 @@ export declare namespace AdminAiModelGetModelQuery {
|
|
|
49
49
|
title: z.ZodString;
|
|
50
50
|
icon: z.ZodOptional<z.ZodString>;
|
|
51
51
|
priceModifier: z.ZodDefault<z.ZodNumber>;
|
|
52
|
+
providerValue: z.ZodOptional<z.ZodString>;
|
|
52
53
|
promptSuffix: z.ZodOptional<z.ZodString>;
|
|
53
54
|
}, z.core.$strip>>;
|
|
54
55
|
defaultOptionId: z.ZodString;
|
|
@@ -56,6 +56,7 @@ export declare namespace AdminAiModelGetModelsQuery {
|
|
|
56
56
|
title: z.ZodString;
|
|
57
57
|
icon: z.ZodOptional<z.ZodString>;
|
|
58
58
|
priceModifier: z.ZodDefault<z.ZodNumber>;
|
|
59
|
+
providerValue: z.ZodOptional<z.ZodString>;
|
|
59
60
|
promptSuffix: z.ZodOptional<z.ZodString>;
|
|
60
61
|
}, z.core.$strip>>;
|
|
61
62
|
defaultOptionId: z.ZodString;
|
|
@@ -52,6 +52,7 @@ export declare const CreateModelRequestSchema: z.ZodObject<{
|
|
|
52
52
|
title: z.ZodString;
|
|
53
53
|
icon: z.ZodOptional<z.ZodString>;
|
|
54
54
|
priceModifier: z.ZodDefault<z.ZodNumber>;
|
|
55
|
+
providerValue: z.ZodOptional<z.ZodString>;
|
|
55
56
|
promptSuffix: z.ZodOptional<z.ZodString>;
|
|
56
57
|
}, z.core.$strip>>;
|
|
57
58
|
defaultOptionId: z.ZodString;
|
|
@@ -53,6 +53,7 @@ export declare const ModelResponseSchema: z.ZodObject<{
|
|
|
53
53
|
title: z.ZodString;
|
|
54
54
|
icon: z.ZodOptional<z.ZodString>;
|
|
55
55
|
priceModifier: z.ZodDefault<z.ZodNumber>;
|
|
56
|
+
providerValue: z.ZodOptional<z.ZodString>;
|
|
56
57
|
promptSuffix: z.ZodOptional<z.ZodString>;
|
|
57
58
|
}, z.core.$strip>>;
|
|
58
59
|
defaultOptionId: z.ZodString;
|
|
@@ -15,6 +15,7 @@ export declare const SettingOptionSchema: z.ZodObject<{
|
|
|
15
15
|
title: z.ZodString;
|
|
16
16
|
icon: z.ZodOptional<z.ZodString>;
|
|
17
17
|
priceModifier: z.ZodDefault<z.ZodNumber>;
|
|
18
|
+
providerValue: z.ZodOptional<z.ZodString>;
|
|
18
19
|
promptSuffix: z.ZodOptional<z.ZodString>;
|
|
19
20
|
}, z.core.$strip>;
|
|
20
21
|
export type SettingOption = z.infer<typeof SettingOptionSchema>;
|
|
@@ -35,6 +36,7 @@ export declare const SettingDefinitionSchema: z.ZodObject<{
|
|
|
35
36
|
title: z.ZodString;
|
|
36
37
|
icon: z.ZodOptional<z.ZodString>;
|
|
37
38
|
priceModifier: z.ZodDefault<z.ZodNumber>;
|
|
39
|
+
providerValue: z.ZodOptional<z.ZodString>;
|
|
38
40
|
promptSuffix: z.ZodOptional<z.ZodString>;
|
|
39
41
|
}, z.core.$strip>>;
|
|
40
42
|
defaultOptionId: z.ZodString;
|
|
@@ -68,6 +70,7 @@ export declare const ToolSettingsConfigSchema: z.ZodObject<{
|
|
|
68
70
|
title: z.ZodString;
|
|
69
71
|
icon: z.ZodOptional<z.ZodString>;
|
|
70
72
|
priceModifier: z.ZodDefault<z.ZodNumber>;
|
|
73
|
+
providerValue: z.ZodOptional<z.ZodString>;
|
|
71
74
|
promptSuffix: z.ZodOptional<z.ZodString>;
|
|
72
75
|
}, z.core.$strip>>;
|
|
73
76
|
defaultOptionId: z.ZodString;
|
|
@@ -113,6 +116,7 @@ export declare const ModelSettingsSchema: z.ZodObject<{
|
|
|
113
116
|
title: z.ZodString;
|
|
114
117
|
icon: z.ZodOptional<z.ZodString>;
|
|
115
118
|
priceModifier: z.ZodDefault<z.ZodNumber>;
|
|
119
|
+
providerValue: z.ZodOptional<z.ZodString>;
|
|
116
120
|
promptSuffix: z.ZodOptional<z.ZodString>;
|
|
117
121
|
}, z.core.$strip>>;
|
|
118
122
|
defaultOptionId: z.ZodString;
|
|
@@ -20,9 +20,13 @@ exports.SettingOptionSchema = zod_1.z.object({
|
|
|
20
20
|
title: zod_1.z.string().min(1),
|
|
21
21
|
icon: zod_1.z.string().optional(),
|
|
22
22
|
priceModifier: zod_1.z.number().int().min(0).default(0),
|
|
23
|
+
providerValue: zod_1.z.string().optional(),
|
|
23
24
|
promptSuffix: zod_1.z.string().optional(),
|
|
24
25
|
});
|
|
25
|
-
exports.SettingOptionClientSchema = exports.SettingOptionSchema.omit({
|
|
26
|
+
exports.SettingOptionClientSchema = exports.SettingOptionSchema.omit({
|
|
27
|
+
promptSuffix: true,
|
|
28
|
+
providerValue: true,
|
|
29
|
+
});
|
|
26
30
|
exports.SettingDefinitionSchema = zod_1.z.object({
|
|
27
31
|
key: zod_1.z.nativeEnum(SettingKey),
|
|
28
32
|
title: zod_1.z.string().min(1),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-settings.schema.js","sourceRoot":"","sources":["../../../../v1/ai-model/schemas/model-settings.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,wDAA+C;AAM/C,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IACxB,kDAA8B,CAAA;IAC9B,gDAA4B,CAAA;AAChC,CAAC,EAHW,gBAAgB,gCAAhB,gBAAgB,QAG3B;AAMD,IAA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AC,MAAM,CAAC;IAC3C,GAAG,EAAE,OAAC,CAAC,UAAU,CAAC,UAAU,CAAC;IAE7B,SAAS,EAAE,OAAC,CAAC,KAAK,CAAC,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;CACxD,CAAC,CAAC"}
|
|
@@ -52,6 +52,7 @@ export declare const UpdateModelRequestSchema: z.ZodObject<{
|
|
|
52
52
|
title: z.ZodString;
|
|
53
53
|
icon: z.ZodOptional<z.ZodString>;
|
|
54
54
|
priceModifier: z.ZodDefault<z.ZodNumber>;
|
|
55
|
+
providerValue: z.ZodOptional<z.ZodString>;
|
|
55
56
|
promptSuffix: z.ZodOptional<z.ZodString>;
|
|
56
57
|
}, z.core.$strip>>;
|
|
57
58
|
defaultOptionId: z.ZodString;
|
|
@@ -23,9 +23,18 @@ export declare namespace CreateRegChatCommand {
|
|
|
23
23
|
uuid: z.ZodString;
|
|
24
24
|
type: z.ZodEnum<typeof import("../..").GenerationStepType>;
|
|
25
25
|
status: z.ZodEnum<typeof import("../..").MessageStepStatus>;
|
|
26
|
-
content: z.ZodNullable<z.ZodObject<{
|
|
27
|
-
|
|
28
|
-
}, z.core.$strip
|
|
26
|
+
content: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
27
|
+
content: z.ZodString;
|
|
28
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
29
|
+
queries: z.ZodArray<z.ZodString>;
|
|
30
|
+
citations: z.ZodArray<z.ZodObject<{
|
|
31
|
+
url: z.ZodString;
|
|
32
|
+
title: z.ZodString;
|
|
33
|
+
content: z.ZodString;
|
|
34
|
+
}, z.core.$strip>>;
|
|
35
|
+
}, z.core.$strip>, z.ZodNull, z.ZodObject<{
|
|
36
|
+
urls: z.ZodArray<z.ZodString>;
|
|
37
|
+
}, z.core.$strip>]>>;
|
|
29
38
|
showInUi: z.ZodBoolean;
|
|
30
39
|
startedAt: z.ZodNullable<z.ZodString>;
|
|
31
40
|
completedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -21,9 +21,18 @@ export declare namespace CreateUnregChatCommand {
|
|
|
21
21
|
uuid: z.ZodString;
|
|
22
22
|
type: z.ZodEnum<typeof import("../..").GenerationStepType>;
|
|
23
23
|
status: z.ZodEnum<typeof import("../..").MessageStepStatus>;
|
|
24
|
-
content: z.ZodNullable<z.ZodObject<{
|
|
25
|
-
|
|
26
|
-
}, z.core.$strip
|
|
24
|
+
content: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
25
|
+
content: z.ZodString;
|
|
26
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
27
|
+
queries: z.ZodArray<z.ZodString>;
|
|
28
|
+
citations: z.ZodArray<z.ZodObject<{
|
|
29
|
+
url: z.ZodString;
|
|
30
|
+
title: z.ZodString;
|
|
31
|
+
content: z.ZodString;
|
|
32
|
+
}, z.core.$strip>>;
|
|
33
|
+
}, z.core.$strip>, z.ZodNull, z.ZodObject<{
|
|
34
|
+
urls: z.ZodArray<z.ZodString>;
|
|
35
|
+
}, z.core.$strip>]>>;
|
|
27
36
|
showInUi: z.ZodBoolean;
|
|
28
37
|
startedAt: z.ZodNullable<z.ZodString>;
|
|
29
38
|
completedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -23,9 +23,18 @@ export declare namespace UpdateChatTitleCommand {
|
|
|
23
23
|
uuid: z.ZodString;
|
|
24
24
|
type: z.ZodEnum<typeof import("../..").GenerationStepType>;
|
|
25
25
|
status: z.ZodEnum<typeof import("../..").MessageStepStatus>;
|
|
26
|
-
content: z.ZodNullable<z.ZodObject<{
|
|
27
|
-
|
|
28
|
-
}, z.core.$strip
|
|
26
|
+
content: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
27
|
+
content: z.ZodString;
|
|
28
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
29
|
+
queries: z.ZodArray<z.ZodString>;
|
|
30
|
+
citations: z.ZodArray<z.ZodObject<{
|
|
31
|
+
url: z.ZodString;
|
|
32
|
+
title: z.ZodString;
|
|
33
|
+
content: z.ZodString;
|
|
34
|
+
}, z.core.$strip>>;
|
|
35
|
+
}, z.core.$strip>, z.ZodNull, z.ZodObject<{
|
|
36
|
+
urls: z.ZodArray<z.ZodString>;
|
|
37
|
+
}, z.core.$strip>]>>;
|
|
29
38
|
showInUi: z.ZodBoolean;
|
|
30
39
|
startedAt: z.ZodNullable<z.ZodString>;
|
|
31
40
|
completedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -24,9 +24,18 @@ export declare namespace UpdateChatCommand {
|
|
|
24
24
|
uuid: z.ZodString;
|
|
25
25
|
type: z.ZodEnum<typeof import("../..").GenerationStepType>;
|
|
26
26
|
status: z.ZodEnum<typeof import("../..").MessageStepStatus>;
|
|
27
|
-
content: z.ZodNullable<z.ZodObject<{
|
|
28
|
-
|
|
29
|
-
}, z.core.$strip
|
|
27
|
+
content: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
28
|
+
content: z.ZodString;
|
|
29
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
30
|
+
queries: z.ZodArray<z.ZodString>;
|
|
31
|
+
citations: z.ZodArray<z.ZodObject<{
|
|
32
|
+
url: z.ZodString;
|
|
33
|
+
title: z.ZodString;
|
|
34
|
+
content: z.ZodString;
|
|
35
|
+
}, z.core.$strip>>;
|
|
36
|
+
}, z.core.$strip>, z.ZodNull, z.ZodObject<{
|
|
37
|
+
urls: z.ZodArray<z.ZodString>;
|
|
38
|
+
}, z.core.$strip>]>>;
|
|
30
39
|
showInUi: z.ZodBoolean;
|
|
31
40
|
startedAt: z.ZodNullable<z.ZodString>;
|
|
32
41
|
completedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -21,9 +21,18 @@ export declare namespace GetLastActiveChatQuery {
|
|
|
21
21
|
uuid: z.ZodString;
|
|
22
22
|
type: z.ZodEnum<typeof import("../..").GenerationStepType>;
|
|
23
23
|
status: z.ZodEnum<typeof import("../..").MessageStepStatus>;
|
|
24
|
-
content: z.ZodNullable<z.ZodObject<{
|
|
25
|
-
|
|
26
|
-
}, z.core.$strip
|
|
24
|
+
content: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
25
|
+
content: z.ZodString;
|
|
26
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
27
|
+
queries: z.ZodArray<z.ZodString>;
|
|
28
|
+
citations: z.ZodArray<z.ZodObject<{
|
|
29
|
+
url: z.ZodString;
|
|
30
|
+
title: z.ZodString;
|
|
31
|
+
content: z.ZodString;
|
|
32
|
+
}, z.core.$strip>>;
|
|
33
|
+
}, z.core.$strip>, z.ZodNull, z.ZodObject<{
|
|
34
|
+
urls: z.ZodArray<z.ZodString>;
|
|
35
|
+
}, z.core.$strip>]>>;
|
|
27
36
|
showInUi: z.ZodBoolean;
|
|
28
37
|
startedAt: z.ZodNullable<z.ZodString>;
|
|
29
38
|
completedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -21,9 +21,18 @@ export declare namespace GetRegChatQuery {
|
|
|
21
21
|
uuid: z.ZodString;
|
|
22
22
|
type: z.ZodEnum<typeof import("../..").GenerationStepType>;
|
|
23
23
|
status: z.ZodEnum<typeof import("../..").MessageStepStatus>;
|
|
24
|
-
content: z.ZodNullable<z.ZodObject<{
|
|
25
|
-
|
|
26
|
-
}, z.core.$strip
|
|
24
|
+
content: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
25
|
+
content: z.ZodString;
|
|
26
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
27
|
+
queries: z.ZodArray<z.ZodString>;
|
|
28
|
+
citations: z.ZodArray<z.ZodObject<{
|
|
29
|
+
url: z.ZodString;
|
|
30
|
+
title: z.ZodString;
|
|
31
|
+
content: z.ZodString;
|
|
32
|
+
}, z.core.$strip>>;
|
|
33
|
+
}, z.core.$strip>, z.ZodNull, z.ZodObject<{
|
|
34
|
+
urls: z.ZodArray<z.ZodString>;
|
|
35
|
+
}, z.core.$strip>]>>;
|
|
27
36
|
showInUi: z.ZodBoolean;
|
|
28
37
|
startedAt: z.ZodNullable<z.ZodString>;
|
|
29
38
|
completedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -21,9 +21,18 @@ export declare namespace GetUnregChatQuery {
|
|
|
21
21
|
uuid: z.ZodString;
|
|
22
22
|
type: z.ZodEnum<typeof import("../..").GenerationStepType>;
|
|
23
23
|
status: z.ZodEnum<typeof import("../..").MessageStepStatus>;
|
|
24
|
-
content: z.ZodNullable<z.ZodObject<{
|
|
25
|
-
|
|
26
|
-
}, z.core.$strip
|
|
24
|
+
content: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
25
|
+
content: z.ZodString;
|
|
26
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
27
|
+
queries: z.ZodArray<z.ZodString>;
|
|
28
|
+
citations: z.ZodArray<z.ZodObject<{
|
|
29
|
+
url: z.ZodString;
|
|
30
|
+
title: z.ZodString;
|
|
31
|
+
content: z.ZodString;
|
|
32
|
+
}, z.core.$strip>>;
|
|
33
|
+
}, z.core.$strip>, z.ZodNull, z.ZodObject<{
|
|
34
|
+
urls: z.ZodArray<z.ZodString>;
|
|
35
|
+
}, z.core.$strip>]>>;
|
|
27
36
|
showInUi: z.ZodBoolean;
|
|
28
37
|
startedAt: z.ZodNullable<z.ZodString>;
|
|
29
38
|
completedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -19,9 +19,18 @@ export declare const ChatWithMessagesResponseSchema: z.ZodObject<{
|
|
|
19
19
|
uuid: z.ZodString;
|
|
20
20
|
type: z.ZodEnum<typeof import("../..").GenerationStepType>;
|
|
21
21
|
status: z.ZodEnum<typeof import("../..").MessageStepStatus>;
|
|
22
|
-
content: z.ZodNullable<z.ZodObject<{
|
|
23
|
-
|
|
24
|
-
}, z.core.$strip
|
|
22
|
+
content: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
23
|
+
content: z.ZodString;
|
|
24
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
25
|
+
queries: z.ZodArray<z.ZodString>;
|
|
26
|
+
citations: z.ZodArray<z.ZodObject<{
|
|
27
|
+
url: z.ZodString;
|
|
28
|
+
title: z.ZodString;
|
|
29
|
+
content: z.ZodString;
|
|
30
|
+
}, z.core.$strip>>;
|
|
31
|
+
}, z.core.$strip>, z.ZodNull, z.ZodObject<{
|
|
32
|
+
urls: z.ZodArray<z.ZodString>;
|
|
33
|
+
}, z.core.$strip>]>>;
|
|
25
34
|
showInUi: z.ZodBoolean;
|
|
26
35
|
startedAt: z.ZodNullable<z.ZodString>;
|
|
27
36
|
completedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -41,6 +41,16 @@ export declare namespace CreateMessageCommand {
|
|
|
41
41
|
stepType: z.ZodEnum<typeof import("../schemas").GenerationStepType>;
|
|
42
42
|
stepId: z.ZodString;
|
|
43
43
|
chunk: z.ZodString;
|
|
44
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
45
|
+
id: z.ZodNumber;
|
|
46
|
+
chatId: z.ZodString;
|
|
47
|
+
messageId: z.ZodString;
|
|
48
|
+
type: z.ZodLiteral<import("../schemas").StreamEventType.STEP_ERROR>;
|
|
49
|
+
stepType: z.ZodEnum<typeof import("../schemas").GenerationStepType>;
|
|
50
|
+
stepId: z.ZodString;
|
|
51
|
+
stepIndex: z.ZodNumber;
|
|
52
|
+
errorCode: z.ZodString;
|
|
53
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
44
54
|
}, z.core.$strip>, z.ZodObject<{
|
|
45
55
|
id: z.ZodNumber;
|
|
46
56
|
chatId: z.ZodString;
|
|
@@ -114,6 +124,17 @@ export declare namespace CreateMessageCommand {
|
|
|
114
124
|
stepId: z.ZodString;
|
|
115
125
|
chunk: z.ZodString;
|
|
116
126
|
}, z.core.$strip>;
|
|
127
|
+
const StepErrorEvent: z.ZodObject<{
|
|
128
|
+
id: z.ZodNumber;
|
|
129
|
+
chatId: z.ZodString;
|
|
130
|
+
messageId: z.ZodString;
|
|
131
|
+
type: z.ZodLiteral<import("../schemas").StreamEventType.STEP_ERROR>;
|
|
132
|
+
stepType: z.ZodEnum<typeof import("../schemas").GenerationStepType>;
|
|
133
|
+
stepId: z.ZodString;
|
|
134
|
+
stepIndex: z.ZodNumber;
|
|
135
|
+
errorCode: z.ZodString;
|
|
136
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
137
|
+
}, z.core.$strip>;
|
|
117
138
|
const StepDoneEvent: z.ZodObject<{
|
|
118
139
|
id: z.ZodNumber;
|
|
119
140
|
chatId: z.ZodString;
|
|
@@ -145,6 +166,7 @@ export declare namespace CreateMessageCommand {
|
|
|
145
166
|
type StreamEventType = z.infer<typeof StreamEvent>;
|
|
146
167
|
type StepStartEventType = z.infer<typeof StepStartEvent>;
|
|
147
168
|
type StepChunkEventType = z.infer<typeof StepChunkEvent>;
|
|
169
|
+
type StepErrorEventType = z.infer<typeof StepErrorEvent>;
|
|
148
170
|
type StepDoneEventType = z.infer<typeof StepDoneEvent>;
|
|
149
171
|
type DoneEventType = z.infer<typeof DoneEvent>;
|
|
150
172
|
type ErrorEventType = z.infer<typeof ErrorEvent>;
|
|
@@ -11,6 +11,7 @@ var CreateMessageCommand;
|
|
|
11
11
|
CreateMessageCommand.StreamEvent = schemas_1.StreamEventSchema;
|
|
12
12
|
CreateMessageCommand.StepStartEvent = schemas_1.StreamStepStartEventSchema;
|
|
13
13
|
CreateMessageCommand.StepChunkEvent = schemas_1.StreamStepChunkEventSchema;
|
|
14
|
+
CreateMessageCommand.StepErrorEvent = schemas_1.StreamStepErrorEventSchema;
|
|
14
15
|
CreateMessageCommand.StepDoneEvent = schemas_1.StreamStepDoneEventSchema;
|
|
15
16
|
CreateMessageCommand.DoneEvent = schemas_1.StreamDoneEventSchema;
|
|
16
17
|
CreateMessageCommand.ErrorEvent = schemas_1.StreamErrorEventSchema;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-message.command.js","sourceRoot":"","sources":["../../../../v1/message/commands/create-message.command.ts"],"names":[],"mappings":";;;AACA,
|
|
1
|
+
{"version":3,"file":"create-message.command.js","sourceRoot":"","sources":["../../../../v1/message/commands/create-message.command.ts"],"names":[],"mappings":";;;AACA,wCAUoB;AACpB,gDAA6C;AAC7C,6DAAyD;AAsCzD,IAAiB,oBAAoB,CA+BpC;AA/BD,WAAiB,oBAAoB;IACpB,4BAAO,GAAG,oCAA0B,CAAC;IACrC,6BAAQ,GAAG,qCAA2B,CAAC;IAGvC,gCAAW,GAAG,2BAAiB,CAAC;IAChC,mCAAc,GAAG,oCAA0B,CAAC;IAC5C,mCAAc,GAAG,oCAA0B,CAAC;IAC5C,mCAAc,GAAG,oCAA0B,CAAC;IAC5C,kCAAa,GAAG,mCAAyB,CAAC;IAC1C,8BAAS,GAAG,+BAAqB,CAAC;IAClC,+BAAU,GAAG,gCAAsB,CAAC;IAEpC,wBAAG,GAAG,CAAC,MAAc,EAAE,MAAc,EAAE,EAAE,CAClD,mBAAQ,CAAC,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,2BAAM,GAAG,wBAAU,CAAC,IAAI,CAAC;IAGzB,iCAAY,GAAG,sBAA+B,CAAC;IAG/C,8BAAS,GAAG,IAAa,CAAC;AAU3C,CAAC,EA/BgB,oBAAoB,oCAApB,oBAAoB,QA+BpC"}
|
|
@@ -7,6 +7,7 @@ var MessageStepStatus;
|
|
|
7
7
|
MessageStepStatus["PENDING"] = "pending";
|
|
8
8
|
MessageStepStatus["RUNNING"] = "running";
|
|
9
9
|
MessageStepStatus["COMPLETED"] = "completed";
|
|
10
|
+
MessageStepStatus["PARTIAL"] = "partial";
|
|
10
11
|
MessageStepStatus["FAILED"] = "failed";
|
|
11
12
|
MessageStepStatus["CANCELLED"] = "cancelled";
|
|
12
13
|
})(MessageStepStatus || (exports.MessageStepStatus = MessageStepStatus = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generation-step.schema.js","sourceRoot":"","sources":["../../../../v1/message/schemas/generation-step.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAKxB,IAAY,
|
|
1
|
+
{"version":3,"file":"generation-step.schema.js","sourceRoot":"","sources":["../../../../v1/message/schemas/generation-step.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAKxB,IAAY,iBAOX;AAPD,WAAY,iBAAiB;IACzB,wCAAmB,CAAA;IACnB,wCAAmB,CAAA;IACnB,4CAAuB,CAAA;IACvB,wCAAmB,CAAA;IACnB,sCAAiB,CAAA;IACjB,4CAAuB,CAAA;AAC3B,CAAC,EAPW,iBAAiB,iCAAjB,iBAAiB,QAO5B;AAKD,IAAY,kBAaX;AAbD,WAAY,kBAAkB;IAE1B,6CAAuB,CAAA;IAEvB,6DAAuC,CAAA;IAEvC,yDAAmC,CAAA;IAEnC,2DAAqC,CAAA;IAErC,uCAAiB,CAAA;IAEjB,+CAAyB,CAAA;AAC7B,CAAC,EAbW,kBAAkB,kCAAlB,kBAAkB,QAa7B;AAKY,QAAA,oBAAoB,GAAG,OAAC,CAAC,MAAM,CAAC;IAEzC,IAAI,EAAE,OAAC,CAAC,UAAU,CAAC,kBAAkB,CAAC;IAEtC,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;IAEnB,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IAErC,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAEjC,gBAAgB,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;IAE5C,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAEhC,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACrC,CAAC,CAAC"}
|
|
@@ -4,13 +4,13 @@ export { UserRating } from './user-rating.enum';
|
|
|
4
4
|
export { CreateMessageRequestSchema } from './create-message-request.schema';
|
|
5
5
|
export { CreateMessageResponseSchema } from './create-message-response.schema';
|
|
6
6
|
export { MessageResponseSchema } from './message-response.schema';
|
|
7
|
-
export { MessageStepResponseSchema, MessageStepsResponseSchema, StepContentResponseSchema, } from './message-step-response.schema';
|
|
8
|
-
export type { MessageStepResponse, MessageStepsResponse, } from './message-step-response.schema';
|
|
7
|
+
export { MessageStepResponseSchema, MessageStepsResponseSchema, StepContentResponseSchema, TextStepContentSchema, WebSearchCitationSchema, WebSearchStepContentSchema, ImageGenStepContentSchema, UploadStepContentSchema, } from './message-step-response.schema';
|
|
8
|
+
export type { MessageStepResponse, MessageStepsResponse, StepContentResponse, TextStepContent, WebSearchCitation, WebSearchStepContent, ImageGenStepContent, UploadStepContent, } from './message-step-response.schema';
|
|
9
9
|
export { MessageAttachmentResponseSchema, MessageAttachmentsResponseSchema, AttachmentMetaResponseSchema, } from './message-attachment-response.schema';
|
|
10
10
|
export type { MessageAttachmentResponse, MessageAttachmentsResponse, AttachmentMetaResponse, } from './message-attachment-response.schema';
|
|
11
11
|
export { MessageCitationResponseSchema, MessageCitationsResponseSchema, } from './message-citation-response.schema';
|
|
12
12
|
export type { MessageCitationResponse, MessageCitationsResponse, } from './message-citation-response.schema';
|
|
13
|
-
export { StreamEventType, StreamEventSchema, StreamStepStartEventSchema, StreamStepChunkEventSchema, StreamStepDoneEventSchema, StreamImageEventSchema, StreamImageGenerationErrorEventSchema, StreamCitationsEventSchema, StreamHeartbeatEventSchema, StreamDoneEventSchema, StreamCancelledEventSchema, StreamErrorEventSchema, } from './stream-events.schema';
|
|
13
|
+
export { StreamEventType, StreamEventSchema, StreamStepStartEventSchema, StreamStepChunkEventSchema, StreamStepErrorEventSchema, StreamStepDoneEventSchema, StreamImageEventSchema, StreamImageGenerationErrorEventSchema, StreamCitationsEventSchema, StreamHeartbeatEventSchema, StreamDoneEventSchema, StreamCancelledEventSchema, StreamErrorEventSchema, } from './stream-events.schema';
|
|
14
14
|
export { CitationSchema, CitationStatus, type Citation } from './citation.schema';
|
|
15
15
|
export { AttachmentSource, AttachmentType, AttachmentStatus, AttachmentSchema, AttachmentsSchema, } from './message-attachment.schema';
|
|
16
16
|
export type { Attachment, Attachments } from './message-attachment.schema';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CancelStreamResponseSchema = exports.DeleteMessageResponseSchema = exports.DeleteMessageParamsSchema = exports.RateMessageParamsSchema = exports.RateMessageResponseSchema = exports.RateMessageRequestSchema = exports.MessageStepStatus = exports.GenerationStepType = exports.GenerationStepSchema = exports.AttachmentsSchema = exports.AttachmentSchema = exports.AttachmentStatus = exports.AttachmentType = exports.AttachmentSource = exports.CitationStatus = exports.CitationSchema = exports.StreamErrorEventSchema = exports.StreamCancelledEventSchema = exports.StreamDoneEventSchema = exports.StreamHeartbeatEventSchema = exports.StreamCitationsEventSchema = exports.StreamImageGenerationErrorEventSchema = exports.StreamImageEventSchema = exports.StreamStepDoneEventSchema = exports.StreamStepChunkEventSchema = exports.StreamStepStartEventSchema = exports.StreamEventSchema = exports.StreamEventType = exports.MessageCitationsResponseSchema = exports.MessageCitationResponseSchema = exports.AttachmentMetaResponseSchema = exports.MessageAttachmentsResponseSchema = exports.MessageAttachmentResponseSchema = exports.StepContentResponseSchema = exports.MessageStepsResponseSchema = exports.MessageStepResponseSchema = exports.MessageResponseSchema = exports.CreateMessageResponseSchema = exports.CreateMessageRequestSchema = exports.UserRating = exports.MessageStatus = exports.MessageRole = void 0;
|
|
3
|
+
exports.CancelStreamResponseSchema = exports.DeleteMessageResponseSchema = exports.DeleteMessageParamsSchema = exports.RateMessageParamsSchema = exports.RateMessageResponseSchema = exports.RateMessageRequestSchema = exports.MessageStepStatus = exports.GenerationStepType = exports.GenerationStepSchema = exports.AttachmentsSchema = exports.AttachmentSchema = exports.AttachmentStatus = exports.AttachmentType = exports.AttachmentSource = exports.CitationStatus = exports.CitationSchema = exports.StreamErrorEventSchema = exports.StreamCancelledEventSchema = exports.StreamDoneEventSchema = exports.StreamHeartbeatEventSchema = exports.StreamCitationsEventSchema = exports.StreamImageGenerationErrorEventSchema = exports.StreamImageEventSchema = exports.StreamStepDoneEventSchema = exports.StreamStepErrorEventSchema = exports.StreamStepChunkEventSchema = exports.StreamStepStartEventSchema = exports.StreamEventSchema = exports.StreamEventType = exports.MessageCitationsResponseSchema = exports.MessageCitationResponseSchema = exports.AttachmentMetaResponseSchema = exports.MessageAttachmentsResponseSchema = exports.MessageAttachmentResponseSchema = exports.UploadStepContentSchema = exports.ImageGenStepContentSchema = exports.WebSearchStepContentSchema = exports.WebSearchCitationSchema = exports.TextStepContentSchema = exports.StepContentResponseSchema = exports.MessageStepsResponseSchema = exports.MessageStepResponseSchema = exports.MessageResponseSchema = exports.CreateMessageResponseSchema = exports.CreateMessageRequestSchema = exports.UserRating = exports.MessageStatus = exports.MessageRole = void 0;
|
|
4
4
|
var message_role_enum_1 = require("./message-role.enum");
|
|
5
5
|
Object.defineProperty(exports, "MessageRole", { enumerable: true, get: function () { return message_role_enum_1.MessageRole; } });
|
|
6
6
|
var message_status_enum_1 = require("./message-status.enum");
|
|
@@ -17,6 +17,11 @@ var message_step_response_schema_1 = require("./message-step-response.schema");
|
|
|
17
17
|
Object.defineProperty(exports, "MessageStepResponseSchema", { enumerable: true, get: function () { return message_step_response_schema_1.MessageStepResponseSchema; } });
|
|
18
18
|
Object.defineProperty(exports, "MessageStepsResponseSchema", { enumerable: true, get: function () { return message_step_response_schema_1.MessageStepsResponseSchema; } });
|
|
19
19
|
Object.defineProperty(exports, "StepContentResponseSchema", { enumerable: true, get: function () { return message_step_response_schema_1.StepContentResponseSchema; } });
|
|
20
|
+
Object.defineProperty(exports, "TextStepContentSchema", { enumerable: true, get: function () { return message_step_response_schema_1.TextStepContentSchema; } });
|
|
21
|
+
Object.defineProperty(exports, "WebSearchCitationSchema", { enumerable: true, get: function () { return message_step_response_schema_1.WebSearchCitationSchema; } });
|
|
22
|
+
Object.defineProperty(exports, "WebSearchStepContentSchema", { enumerable: true, get: function () { return message_step_response_schema_1.WebSearchStepContentSchema; } });
|
|
23
|
+
Object.defineProperty(exports, "ImageGenStepContentSchema", { enumerable: true, get: function () { return message_step_response_schema_1.ImageGenStepContentSchema; } });
|
|
24
|
+
Object.defineProperty(exports, "UploadStepContentSchema", { enumerable: true, get: function () { return message_step_response_schema_1.UploadStepContentSchema; } });
|
|
20
25
|
var message_attachment_response_schema_1 = require("./message-attachment-response.schema");
|
|
21
26
|
Object.defineProperty(exports, "MessageAttachmentResponseSchema", { enumerable: true, get: function () { return message_attachment_response_schema_1.MessageAttachmentResponseSchema; } });
|
|
22
27
|
Object.defineProperty(exports, "MessageAttachmentsResponseSchema", { enumerable: true, get: function () { return message_attachment_response_schema_1.MessageAttachmentsResponseSchema; } });
|
|
@@ -29,6 +34,7 @@ Object.defineProperty(exports, "StreamEventType", { enumerable: true, get: funct
|
|
|
29
34
|
Object.defineProperty(exports, "StreamEventSchema", { enumerable: true, get: function () { return stream_events_schema_1.StreamEventSchema; } });
|
|
30
35
|
Object.defineProperty(exports, "StreamStepStartEventSchema", { enumerable: true, get: function () { return stream_events_schema_1.StreamStepStartEventSchema; } });
|
|
31
36
|
Object.defineProperty(exports, "StreamStepChunkEventSchema", { enumerable: true, get: function () { return stream_events_schema_1.StreamStepChunkEventSchema; } });
|
|
37
|
+
Object.defineProperty(exports, "StreamStepErrorEventSchema", { enumerable: true, get: function () { return stream_events_schema_1.StreamStepErrorEventSchema; } });
|
|
32
38
|
Object.defineProperty(exports, "StreamStepDoneEventSchema", { enumerable: true, get: function () { return stream_events_schema_1.StreamStepDoneEventSchema; } });
|
|
33
39
|
Object.defineProperty(exports, "StreamImageEventSchema", { enumerable: true, get: function () { return stream_events_schema_1.StreamImageEventSchema; } });
|
|
34
40
|
Object.defineProperty(exports, "StreamImageGenerationErrorEventSchema", { enumerable: true, get: function () { return stream_events_schema_1.StreamImageGenerationErrorEventSchema; } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/message/schemas/index.ts"],"names":[],"mappings":";;;AAAA,yDAAkD;AAAzC,gHAAA,WAAW,OAAA;AACpB,6DAAsD;AAA7C,oHAAA,aAAa,OAAA;AACtB,uDAAgD;AAAvC,8GAAA,UAAU,OAAA;AACnB,iFAA6E;AAApE,2IAAA,0BAA0B,OAAA;AACnC,mFAA+E;AAAtE,6IAAA,2BAA2B,OAAA;AACpC,qEAAkE;AAAzD,gIAAA,qBAAqB,OAAA;AAC9B,+
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/message/schemas/index.ts"],"names":[],"mappings":";;;AAAA,yDAAkD;AAAzC,gHAAA,WAAW,OAAA;AACpB,6DAAsD;AAA7C,oHAAA,aAAa,OAAA;AACtB,uDAAgD;AAAvC,8GAAA,UAAU,OAAA;AACnB,iFAA6E;AAApE,2IAAA,0BAA0B,OAAA;AACnC,mFAA+E;AAAtE,6IAAA,2BAA2B,OAAA;AACpC,qEAAkE;AAAzD,gIAAA,qBAAqB,OAAA;AAC9B,+EASwC;AARpC,yIAAA,yBAAyB,OAAA;AACzB,0IAAA,0BAA0B,OAAA;AAC1B,yIAAA,yBAAyB,OAAA;AACzB,qIAAA,qBAAqB,OAAA;AACrB,uIAAA,uBAAuB,OAAA;AACvB,0IAAA,0BAA0B,OAAA;AAC1B,yIAAA,yBAAyB,OAAA;AACzB,uIAAA,uBAAuB,OAAA;AAY3B,2FAI8C;AAH1C,qJAAA,+BAA+B,OAAA;AAC/B,sJAAA,gCAAgC,OAAA;AAChC,kJAAA,4BAA4B,OAAA;AAOhC,uFAG4C;AAFxC,iJAAA,6BAA6B,OAAA;AAC7B,kJAAA,8BAA8B,OAAA;AAMlC,+DAcgC;AAb5B,uHAAA,eAAe,OAAA;AACf,yHAAA,iBAAiB,OAAA;AACjB,kIAAA,0BAA0B,OAAA;AAC1B,kIAAA,0BAA0B,OAAA;AAC1B,kIAAA,0BAA0B,OAAA;AAC1B,iIAAA,yBAAyB,OAAA;AACzB,8HAAA,sBAAsB,OAAA;AACtB,6IAAA,qCAAqC,OAAA;AACrC,kIAAA,0BAA0B,OAAA;AAC1B,kIAAA,0BAA0B,OAAA;AAC1B,6HAAA,qBAAqB,OAAA;AACrB,kIAAA,0BAA0B,OAAA;AAC1B,8HAAA,sBAAsB,OAAA;AAE1B,qDAAkF;AAAzE,iHAAA,cAAc,OAAA;AAAE,iHAAA,cAAc,OAAA;AACvC,yEAMqC;AALjC,6HAAA,gBAAgB,OAAA;AAChB,2HAAA,cAAc,OAAA;AACd,6HAAA,gBAAgB,OAAA;AAChB,6HAAA,gBAAgB,OAAA;AAChB,8HAAA,iBAAiB,OAAA;AAGrB,mEAIkC;AAH9B,8HAAA,oBAAoB,OAAA;AACpB,4HAAA,kBAAkB,OAAA;AAClB,2HAAA,iBAAiB,OAAA;AAGrB,6DAI+B;AAH3B,+HAAA,wBAAwB,OAAA;AACxB,gIAAA,yBAAyB,OAAA;AACzB,8HAAA,uBAAuB,OAAA;AAO3B,iEAAiG;AAAxF,kIAAA,yBAAyB,OAAA;AAAE,oIAAA,2BAA2B,OAAA;AAE/D,iFAA6E;AAApE,2IAAA,0BAA0B,OAAA"}
|
|
@@ -13,9 +13,18 @@ export declare const MessageResponseSchema: z.ZodObject<{
|
|
|
13
13
|
uuid: z.ZodString;
|
|
14
14
|
type: z.ZodEnum<typeof import("./generation-step.schema").GenerationStepType>;
|
|
15
15
|
status: z.ZodEnum<typeof import("./generation-step.schema").MessageStepStatus>;
|
|
16
|
-
content: z.ZodNullable<z.ZodObject<{
|
|
17
|
-
|
|
18
|
-
}, z.core.$strip
|
|
16
|
+
content: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
17
|
+
content: z.ZodString;
|
|
18
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
19
|
+
queries: z.ZodArray<z.ZodString>;
|
|
20
|
+
citations: z.ZodArray<z.ZodObject<{
|
|
21
|
+
url: z.ZodString;
|
|
22
|
+
title: z.ZodString;
|
|
23
|
+
content: z.ZodString;
|
|
24
|
+
}, z.core.$strip>>;
|
|
25
|
+
}, z.core.$strip>, z.ZodNull, z.ZodObject<{
|
|
26
|
+
urls: z.ZodArray<z.ZodString>;
|
|
27
|
+
}, z.core.$strip>]>>;
|
|
19
28
|
showInUi: z.ZodBoolean;
|
|
20
29
|
startedAt: z.ZodNullable<z.ZodString>;
|
|
21
30
|
completedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -1,27 +1,80 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { GenerationStepType, MessageStepStatus } from './generation-step.schema';
|
|
3
|
-
export declare const
|
|
4
|
-
|
|
3
|
+
export declare const TextStepContentSchema: z.ZodObject<{
|
|
4
|
+
content: z.ZodString;
|
|
5
5
|
}, z.core.$strip>;
|
|
6
|
+
export declare const WebSearchCitationSchema: z.ZodObject<{
|
|
7
|
+
url: z.ZodString;
|
|
8
|
+
title: z.ZodString;
|
|
9
|
+
content: z.ZodString;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
export declare const WebSearchStepContentSchema: z.ZodObject<{
|
|
12
|
+
queries: z.ZodArray<z.ZodString>;
|
|
13
|
+
citations: z.ZodArray<z.ZodObject<{
|
|
14
|
+
url: z.ZodString;
|
|
15
|
+
title: z.ZodString;
|
|
16
|
+
content: z.ZodString;
|
|
17
|
+
}, z.core.$strip>>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
export declare const ImageGenStepContentSchema: z.ZodNull;
|
|
20
|
+
export declare const UploadStepContentSchema: z.ZodObject<{
|
|
21
|
+
urls: z.ZodArray<z.ZodString>;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
export declare const StepContentResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
24
|
+
content: z.ZodString;
|
|
25
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
26
|
+
queries: z.ZodArray<z.ZodString>;
|
|
27
|
+
citations: z.ZodArray<z.ZodObject<{
|
|
28
|
+
url: z.ZodString;
|
|
29
|
+
title: z.ZodString;
|
|
30
|
+
content: z.ZodString;
|
|
31
|
+
}, z.core.$strip>>;
|
|
32
|
+
}, z.core.$strip>, z.ZodNull, z.ZodObject<{
|
|
33
|
+
urls: z.ZodArray<z.ZodString>;
|
|
34
|
+
}, z.core.$strip>]>;
|
|
6
35
|
export declare const MessageStepResponseSchema: z.ZodObject<{
|
|
7
36
|
uuid: z.ZodString;
|
|
8
37
|
type: z.ZodEnum<typeof GenerationStepType>;
|
|
9
38
|
status: z.ZodEnum<typeof MessageStepStatus>;
|
|
10
|
-
content: z.ZodNullable<z.ZodObject<{
|
|
11
|
-
|
|
12
|
-
}, z.core.$strip
|
|
39
|
+
content: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
40
|
+
content: z.ZodString;
|
|
41
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
42
|
+
queries: z.ZodArray<z.ZodString>;
|
|
43
|
+
citations: z.ZodArray<z.ZodObject<{
|
|
44
|
+
url: z.ZodString;
|
|
45
|
+
title: z.ZodString;
|
|
46
|
+
content: z.ZodString;
|
|
47
|
+
}, z.core.$strip>>;
|
|
48
|
+
}, z.core.$strip>, z.ZodNull, z.ZodObject<{
|
|
49
|
+
urls: z.ZodArray<z.ZodString>;
|
|
50
|
+
}, z.core.$strip>]>>;
|
|
13
51
|
showInUi: z.ZodBoolean;
|
|
14
52
|
startedAt: z.ZodNullable<z.ZodString>;
|
|
15
53
|
completedAt: z.ZodNullable<z.ZodString>;
|
|
16
54
|
}, z.core.$strip>;
|
|
17
55
|
export type MessageStepResponse = z.infer<typeof MessageStepResponseSchema>;
|
|
56
|
+
export type StepContentResponse = z.infer<typeof StepContentResponseSchema>;
|
|
57
|
+
export type TextStepContent = z.infer<typeof TextStepContentSchema>;
|
|
58
|
+
export type WebSearchCitation = z.infer<typeof WebSearchCitationSchema>;
|
|
59
|
+
export type WebSearchStepContent = z.infer<typeof WebSearchStepContentSchema>;
|
|
60
|
+
export type ImageGenStepContent = z.infer<typeof ImageGenStepContentSchema>;
|
|
61
|
+
export type UploadStepContent = z.infer<typeof UploadStepContentSchema>;
|
|
18
62
|
export declare const MessageStepsResponseSchema: z.ZodArray<z.ZodObject<{
|
|
19
63
|
uuid: z.ZodString;
|
|
20
64
|
type: z.ZodEnum<typeof GenerationStepType>;
|
|
21
65
|
status: z.ZodEnum<typeof MessageStepStatus>;
|
|
22
|
-
content: z.ZodNullable<z.ZodObject<{
|
|
23
|
-
|
|
24
|
-
}, z.core.$strip
|
|
66
|
+
content: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
67
|
+
content: z.ZodString;
|
|
68
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
69
|
+
queries: z.ZodArray<z.ZodString>;
|
|
70
|
+
citations: z.ZodArray<z.ZodObject<{
|
|
71
|
+
url: z.ZodString;
|
|
72
|
+
title: z.ZodString;
|
|
73
|
+
content: z.ZodString;
|
|
74
|
+
}, z.core.$strip>>;
|
|
75
|
+
}, z.core.$strip>, z.ZodNull, z.ZodObject<{
|
|
76
|
+
urls: z.ZodArray<z.ZodString>;
|
|
77
|
+
}, z.core.$strip>]>>;
|
|
25
78
|
showInUi: z.ZodBoolean;
|
|
26
79
|
startedAt: z.ZodNullable<z.ZodString>;
|
|
27
80
|
completedAt: z.ZodNullable<z.ZodString>;
|