@veruna/api-contracts 1.0.75 → 1.0.76
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/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/schemas/index.d.ts +2 -2
- package/build/v1/message/schemas/index.js +6 -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/package.json +1 -1
|
@@ -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>;
|
|
@@ -4,8 +4,8 @@ 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';
|
|
@@ -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.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; } });
|
|
@@ -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,+DAagC;AAZ5B,uHAAA,eAAe,OAAA;AACf,yHAAA,iBAAiB,OAAA;AACjB,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>;
|
|
@@ -1,11 +1,30 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MessageStepsResponseSchema = exports.MessageStepResponseSchema = exports.StepContentResponseSchema = void 0;
|
|
3
|
+
exports.MessageStepsResponseSchema = exports.MessageStepResponseSchema = exports.StepContentResponseSchema = exports.UploadStepContentSchema = exports.ImageGenStepContentSchema = exports.WebSearchStepContentSchema = exports.WebSearchCitationSchema = exports.TextStepContentSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const generation_step_schema_1 = require("./generation-step.schema");
|
|
6
|
-
exports.
|
|
7
|
-
|
|
6
|
+
exports.TextStepContentSchema = zod_1.z.object({
|
|
7
|
+
content: zod_1.z.string(),
|
|
8
8
|
});
|
|
9
|
+
exports.WebSearchCitationSchema = zod_1.z.object({
|
|
10
|
+
url: zod_1.z.string(),
|
|
11
|
+
title: zod_1.z.string(),
|
|
12
|
+
content: zod_1.z.string(),
|
|
13
|
+
});
|
|
14
|
+
exports.WebSearchStepContentSchema = zod_1.z.object({
|
|
15
|
+
queries: zod_1.z.array(zod_1.z.string()),
|
|
16
|
+
citations: zod_1.z.array(exports.WebSearchCitationSchema),
|
|
17
|
+
});
|
|
18
|
+
exports.ImageGenStepContentSchema = zod_1.z.null();
|
|
19
|
+
exports.UploadStepContentSchema = zod_1.z.object({
|
|
20
|
+
urls: zod_1.z.array(zod_1.z.string()),
|
|
21
|
+
});
|
|
22
|
+
exports.StepContentResponseSchema = zod_1.z.union([
|
|
23
|
+
exports.TextStepContentSchema,
|
|
24
|
+
exports.WebSearchStepContentSchema,
|
|
25
|
+
exports.ImageGenStepContentSchema,
|
|
26
|
+
exports.UploadStepContentSchema,
|
|
27
|
+
]);
|
|
9
28
|
exports.MessageStepResponseSchema = zod_1.z.object({
|
|
10
29
|
uuid: zod_1.z.string().uuid(),
|
|
11
30
|
type: zod_1.z.nativeEnum(generation_step_schema_1.GenerationStepType),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message-step-response.schema.js","sourceRoot":"","sources":["../../../../v1/message/schemas/message-step-response.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,qEAAiF;
|
|
1
|
+
{"version":3,"file":"message-step-response.schema.js","sourceRoot":"","sources":["../../../../v1/message/schemas/message-step-response.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,qEAAiF;AAKpE,QAAA,qBAAqB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;CACtB,CAAC,CAAC;AAKU,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC5C,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;CACtB,CAAC,CAAC;AAKU,QAAA,0BAA0B,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,OAAO,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;IAC5B,SAAS,EAAE,OAAC,CAAC,KAAK,CAAC,+BAAuB,CAAC;CAC9C,CAAC,CAAC;AAKU,QAAA,yBAAyB,GAAG,OAAC,CAAC,IAAI,EAAE,CAAC;AAKrC,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC5C,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;CAC5B,CAAC,CAAC;AAKU,QAAA,yBAAyB,GAAG,OAAC,CAAC,KAAK,CAAC;IAC7C,6BAAqB;IACrB,kCAA0B;IAC1B,iCAAyB;IACzB,+BAAuB;CAC1B,CAAC,CAAC;AAMU,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IAE9C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAEvB,IAAI,EAAE,OAAC,CAAC,UAAU,CAAC,2CAAkB,CAAC;IAEtC,MAAM,EAAE,OAAC,CAAC,UAAU,CAAC,0CAAiB,CAAC;IAEvC,OAAO,EAAE,iCAAyB,CAAC,QAAQ,EAAE;IAE7C,QAAQ,EAAE,OAAC,CAAC,OAAO,EAAE;IAErB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAEhC,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACrC,CAAC,CAAC;AAaU,QAAA,0BAA0B,GAAG,OAAC,CAAC,KAAK,CAAC,iCAAyB,CAAC,CAAC"}
|