@veruna/api-contracts 6.28.0 → 6.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (24) hide show
  1. package/build/tsconfig.tsbuildinfo +1 -1
  2. package/build/v1/chat/commands/create-reg-chat.command.d.ts +10 -0
  3. package/build/v1/chat/commands/create-unreg-chat.command.d.ts +10 -0
  4. package/build/v1/chat/commands/update-chat-title.command.d.ts +10 -0
  5. package/build/v1/chat/commands/update-chat.command.d.ts +10 -0
  6. package/build/v1/chat/queries/get-last-active-chat.query.d.ts +10 -0
  7. package/build/v1/chat/queries/get-reg-chat.query.d.ts +10 -0
  8. package/build/v1/chat/queries/get-unreg-chat.query.d.ts +10 -0
  9. package/build/v1/chat/schemas/chat-with-messages-response.schema.d.ts +10 -0
  10. package/build/v1/message/commands/create-message.command.d.ts +4 -0
  11. package/build/v1/message/queries/get-message-stream-reg.query.d.ts +2 -0
  12. package/build/v1/message/queries/get-message-stream-unreg.query.d.ts +2 -0
  13. package/build/v1/message/schemas/index.d.ts +4 -4
  14. package/build/v1/message/schemas/index.js +5 -2
  15. package/build/v1/message/schemas/index.js.map +1 -1
  16. package/build/v1/message/schemas/message-response.schema.d.ts +10 -0
  17. package/build/v1/message/schemas/message-step-response.schema.d.ts +50 -0
  18. package/build/v1/message/schemas/message-step-response.schema.js +14 -1
  19. package/build/v1/message/schemas/message-step-response.schema.js.map +1 -1
  20. package/build/v1/message/schemas/step-metadata.schema.d.ts +6 -0
  21. package/build/v1/message/schemas/step-metadata.schema.js +6 -1
  22. package/build/v1/message/schemas/step-metadata.schema.js.map +1 -1
  23. package/build/v1/message/schemas/stream-events.schema.d.ts +4 -0
  24. package/package.json +1 -1
@@ -104,6 +104,16 @@ export declare namespace CreateRegChatCommand {
104
104
  }, z.core.$strip>, z.ZodObject<{
105
105
  command: z.ZodEnum<typeof import("../..").MemoryEditCommand>;
106
106
  text: z.ZodNullable<z.ZodString>;
107
+ }, z.core.$strip>, z.ZodObject<{
108
+ query: z.ZodString;
109
+ results: z.ZodArray<z.ZodObject<{
110
+ chatId: z.ZodString;
111
+ messageId: z.ZodNullable<z.ZodString>;
112
+ title: z.ZodString;
113
+ snippet: z.ZodString;
114
+ lastMessageAt: z.ZodString;
115
+ }, z.core.$strip>>;
116
+ hasMore: z.ZodBoolean;
107
117
  }, z.core.$strip>]>>;
108
118
  showInUi: z.ZodBoolean;
109
119
  startedAt: z.ZodNullable<z.ZodString>;
@@ -104,6 +104,16 @@ export declare namespace CreateUnregChatCommand {
104
104
  }, z.core.$strip>, z.ZodObject<{
105
105
  command: z.ZodEnum<typeof import("../..").MemoryEditCommand>;
106
106
  text: z.ZodNullable<z.ZodString>;
107
+ }, z.core.$strip>, z.ZodObject<{
108
+ query: z.ZodString;
109
+ results: z.ZodArray<z.ZodObject<{
110
+ chatId: z.ZodString;
111
+ messageId: z.ZodNullable<z.ZodString>;
112
+ title: z.ZodString;
113
+ snippet: z.ZodString;
114
+ lastMessageAt: z.ZodString;
115
+ }, z.core.$strip>>;
116
+ hasMore: z.ZodBoolean;
107
117
  }, z.core.$strip>]>>;
108
118
  showInUi: z.ZodBoolean;
109
119
  startedAt: z.ZodNullable<z.ZodString>;
@@ -103,6 +103,16 @@ export declare namespace UpdateChatTitleCommand {
103
103
  }, z.core.$strip>, z.ZodObject<{
104
104
  command: z.ZodEnum<typeof import("../..").MemoryEditCommand>;
105
105
  text: z.ZodNullable<z.ZodString>;
106
+ }, z.core.$strip>, z.ZodObject<{
107
+ query: z.ZodString;
108
+ results: z.ZodArray<z.ZodObject<{
109
+ chatId: z.ZodString;
110
+ messageId: z.ZodNullable<z.ZodString>;
111
+ title: z.ZodString;
112
+ snippet: z.ZodString;
113
+ lastMessageAt: z.ZodString;
114
+ }, z.core.$strip>>;
115
+ hasMore: z.ZodBoolean;
106
116
  }, z.core.$strip>]>>;
107
117
  showInUi: z.ZodBoolean;
108
118
  startedAt: z.ZodNullable<z.ZodString>;
@@ -105,6 +105,16 @@ export declare namespace UpdateChatCommand {
105
105
  }, z.core.$strip>, z.ZodObject<{
106
106
  command: z.ZodEnum<typeof import("../..").MemoryEditCommand>;
107
107
  text: z.ZodNullable<z.ZodString>;
108
+ }, z.core.$strip>, z.ZodObject<{
109
+ query: z.ZodString;
110
+ results: z.ZodArray<z.ZodObject<{
111
+ chatId: z.ZodString;
112
+ messageId: z.ZodNullable<z.ZodString>;
113
+ title: z.ZodString;
114
+ snippet: z.ZodString;
115
+ lastMessageAt: z.ZodString;
116
+ }, z.core.$strip>>;
117
+ hasMore: z.ZodBoolean;
108
118
  }, z.core.$strip>]>>;
109
119
  showInUi: z.ZodBoolean;
110
120
  startedAt: z.ZodNullable<z.ZodString>;
@@ -101,6 +101,16 @@ export declare namespace GetLastActiveChatQuery {
101
101
  }, z.core.$strip>, z.ZodObject<{
102
102
  command: z.ZodEnum<typeof import("../..").MemoryEditCommand>;
103
103
  text: z.ZodNullable<z.ZodString>;
104
+ }, z.core.$strip>, z.ZodObject<{
105
+ query: z.ZodString;
106
+ results: z.ZodArray<z.ZodObject<{
107
+ chatId: z.ZodString;
108
+ messageId: z.ZodNullable<z.ZodString>;
109
+ title: z.ZodString;
110
+ snippet: z.ZodString;
111
+ lastMessageAt: z.ZodString;
112
+ }, z.core.$strip>>;
113
+ hasMore: z.ZodBoolean;
104
114
  }, z.core.$strip>]>>;
105
115
  showInUi: z.ZodBoolean;
106
116
  startedAt: z.ZodNullable<z.ZodString>;
@@ -101,6 +101,16 @@ export declare namespace GetRegChatQuery {
101
101
  }, z.core.$strip>, z.ZodObject<{
102
102
  command: z.ZodEnum<typeof import("../..").MemoryEditCommand>;
103
103
  text: z.ZodNullable<z.ZodString>;
104
+ }, z.core.$strip>, z.ZodObject<{
105
+ query: z.ZodString;
106
+ results: z.ZodArray<z.ZodObject<{
107
+ chatId: z.ZodString;
108
+ messageId: z.ZodNullable<z.ZodString>;
109
+ title: z.ZodString;
110
+ snippet: z.ZodString;
111
+ lastMessageAt: z.ZodString;
112
+ }, z.core.$strip>>;
113
+ hasMore: z.ZodBoolean;
104
114
  }, z.core.$strip>]>>;
105
115
  showInUi: z.ZodBoolean;
106
116
  startedAt: z.ZodNullable<z.ZodString>;
@@ -101,6 +101,16 @@ export declare namespace GetUnregChatQuery {
101
101
  }, z.core.$strip>, z.ZodObject<{
102
102
  command: z.ZodEnum<typeof import("../..").MemoryEditCommand>;
103
103
  text: z.ZodNullable<z.ZodString>;
104
+ }, z.core.$strip>, z.ZodObject<{
105
+ query: z.ZodString;
106
+ results: z.ZodArray<z.ZodObject<{
107
+ chatId: z.ZodString;
108
+ messageId: z.ZodNullable<z.ZodString>;
109
+ title: z.ZodString;
110
+ snippet: z.ZodString;
111
+ lastMessageAt: z.ZodString;
112
+ }, z.core.$strip>>;
113
+ hasMore: z.ZodBoolean;
104
114
  }, z.core.$strip>]>>;
105
115
  showInUi: z.ZodBoolean;
106
116
  startedAt: z.ZodNullable<z.ZodString>;
@@ -99,6 +99,16 @@ export declare const ChatWithMessagesResponseSchema: z.ZodObject<{
99
99
  }, z.core.$strip>, z.ZodObject<{
100
100
  command: z.ZodEnum<typeof import("../..").MemoryEditCommand>;
101
101
  text: z.ZodNullable<z.ZodString>;
102
+ }, z.core.$strip>, z.ZodObject<{
103
+ query: z.ZodString;
104
+ results: z.ZodArray<z.ZodObject<{
105
+ chatId: z.ZodString;
106
+ messageId: z.ZodNullable<z.ZodString>;
107
+ title: z.ZodString;
108
+ snippet: z.ZodString;
109
+ lastMessageAt: z.ZodString;
110
+ }, z.core.$strip>>;
111
+ hasMore: z.ZodBoolean;
102
112
  }, z.core.$strip>]>>;
103
113
  showInUi: z.ZodBoolean;
104
114
  startedAt: z.ZodNullable<z.ZodString>;
@@ -32,6 +32,8 @@ export declare namespace CreateMessageCommand {
32
32
  modelUuid: z.ZodDefault<z.ZodNullable<z.ZodString>>;
33
33
  metadata: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
34
34
  queries: z.ZodArray<z.ZodString>;
35
+ }, z.core.$strip>, z.ZodObject<{
36
+ query: z.ZodString;
35
37
  }, z.core.$strip>, z.ZodObject<{
36
38
  sourceResolution: z.ZodString;
37
39
  sourceImageCount: z.ZodNumber;
@@ -209,6 +211,8 @@ export declare namespace CreateMessageCommand {
209
211
  modelUuid: z.ZodDefault<z.ZodNullable<z.ZodString>>;
210
212
  metadata: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
211
213
  queries: z.ZodArray<z.ZodString>;
214
+ }, z.core.$strip>, z.ZodObject<{
215
+ query: z.ZodString;
212
216
  }, z.core.$strip>, z.ZodObject<{
213
217
  sourceResolution: z.ZodString;
214
218
  sourceImageCount: z.ZodNumber;
@@ -13,6 +13,8 @@ export declare namespace GetMessageStreamRegQuery {
13
13
  modelUuid: z.ZodDefault<z.ZodNullable<z.ZodString>>;
14
14
  metadata: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
15
15
  queries: z.ZodArray<z.ZodString>;
16
+ }, z.core.$strip>, z.ZodObject<{
17
+ query: z.ZodString;
16
18
  }, z.core.$strip>, z.ZodObject<{
17
19
  sourceResolution: z.ZodString;
18
20
  sourceImageCount: z.ZodNumber;
@@ -13,6 +13,8 @@ export declare namespace GetMessageStreamUnregQuery {
13
13
  modelUuid: z.ZodDefault<z.ZodNullable<z.ZodString>>;
14
14
  metadata: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
15
15
  queries: z.ZodArray<z.ZodString>;
16
+ }, z.core.$strip>, z.ZodObject<{
17
+ query: z.ZodString;
16
18
  }, z.core.$strip>, z.ZodObject<{
17
19
  sourceResolution: z.ZodString;
18
20
  sourceImageCount: z.ZodNumber;
@@ -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, TextStepContentSchema, WebSearchCitationSchema, WebSearchStepContentSchema, ImageGenStepContentSchema, UploadStepContentSchema, CodeExecutionStepContentResponseSchema, MemoryStepContentSchema, } from './message-step-response.schema';
8
- export type { MessageStepResponse, MessageStepsResponse, StepContentResponse, TextStepContent, WebSearchCitation, WebSearchStepContent, ImageGenStepContent, UploadStepContent, CodeExecutionStepContentResponse, MemoryStepContent, } from './message-step-response.schema';
7
+ export { MessageStepResponseSchema, MessageStepsResponseSchema, StepContentResponseSchema, TextStepContentSchema, WebSearchCitationSchema, WebSearchStepContentSchema, ImageGenStepContentSchema, UploadStepContentSchema, CodeExecutionStepContentResponseSchema, MemoryStepContentSchema, ConversationSearchResultItemSchema, ConversationSearchStepContentSchema, } from './message-step-response.schema';
8
+ export type { MessageStepResponse, MessageStepsResponse, StepContentResponse, TextStepContent, WebSearchCitation, WebSearchStepContent, ImageGenStepContent, UploadStepContent, CodeExecutionStepContentResponse, MemoryStepContent, ConversationSearchResultItem, ConversationSearchStepContent, } 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';
@@ -14,8 +14,8 @@ export { StreamEventType } from './stream-event-type.enum';
14
14
  export { StreamEventSchema, StreamStepStartEventSchema, StreamStepChunkEventSchema, StreamStepErrorEventSchema, StreamStepDoneEventSchema, StreamStepBilledEventSchema, StreamBillingEstimateEventSchema, StreamImageEventSchema, StreamImageGenerationErrorEventSchema, StreamCitationsEventSchema, StreamHeartbeatEventSchema, StreamDoneEventSchema, StreamCancelledEventSchema, StreamErrorEventSchema, StreamCancellationReason, } from './stream-events.schema';
15
15
  export { CitationStatus } from './citation-status.enum';
16
16
  export { CitationSchema, type Citation } from './citation.schema';
17
- export { StepStartMetadataSchema, StepDoneMetadataSchema, WebSearchStepStartMetadataSchema, ImageEditStepStartMetadataSchema, VideoAnalysisStepStartMetadataSchema, CodeExecutionStepStartMetadataSchema, UploadStepDoneMetadataSchema, StepStartMetadataByType, StepDoneMetadataByType, } from './step-metadata.schema';
18
- export type { WebSearchStepStartMetadata, ImageEditStepStartMetadata, VideoAnalysisStepStartMetadata, CodeExecutionStepStartMetadata, UploadStepDoneMetadata, StepStartMetadata, StepDoneMetadata, } from './step-metadata.schema';
17
+ export { StepStartMetadataSchema, StepDoneMetadataSchema, WebSearchStepStartMetadataSchema, ConversationSearchStepStartMetadataSchema, ImageEditStepStartMetadataSchema, VideoAnalysisStepStartMetadataSchema, CodeExecutionStepStartMetadataSchema, UploadStepDoneMetadataSchema, StepStartMetadataByType, StepDoneMetadataByType, } from './step-metadata.schema';
18
+ export type { WebSearchStepStartMetadata, ConversationSearchStepStartMetadata, ImageEditStepStartMetadata, VideoAnalysisStepStartMetadata, CodeExecutionStepStartMetadata, UploadStepDoneMetadata, StepStartMetadata, StepDoneMetadata, } from './step-metadata.schema';
19
19
  export { StepChunkKind } from './step-chunk-kind.enum';
20
20
  export { BashChunkStream } from './bash-chunk-stream.enum';
21
21
  export { STEP_CHUNK_LINE_MAX_LENGTH, STEP_CHUNK_LINES_MAX_ITEMS, StepChunkMetadataSchema, ArgsChunkMetadataSchema, DescribeChunkMetadataSchema, BashChunkMetadataSchema, CreateFileChunkMetadataSchema, StrReplaceChunkMetadataSchema, ViewChunkMetadataSchema, } from './step-chunk-metadata.schema';
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BashChunkStream = exports.StepChunkKind = exports.StepDoneMetadataByType = exports.StepStartMetadataByType = exports.UploadStepDoneMetadataSchema = exports.CodeExecutionStepStartMetadataSchema = exports.VideoAnalysisStepStartMetadataSchema = exports.ImageEditStepStartMetadataSchema = exports.WebSearchStepStartMetadataSchema = exports.StepDoneMetadataSchema = exports.StepStartMetadataSchema = exports.CitationSchema = exports.CitationStatus = exports.StreamCancellationReason = exports.StreamErrorEventSchema = exports.StreamCancelledEventSchema = exports.StreamDoneEventSchema = exports.StreamHeartbeatEventSchema = exports.StreamCitationsEventSchema = exports.StreamImageGenerationErrorEventSchema = exports.StreamImageEventSchema = exports.StreamBillingEstimateEventSchema = exports.StreamStepBilledEventSchema = exports.StreamStepDoneEventSchema = exports.StreamStepErrorEventSchema = exports.StreamStepChunkEventSchema = exports.StreamStepStartEventSchema = exports.StreamEventSchema = exports.StreamEventType = exports.MessageCitationsResponseSchema = exports.MessageCitationResponseSchema = exports.AttachmentMetaResponseSchema = exports.MessageAttachmentsResponseSchema = exports.MessageAttachmentResponseSchema = exports.MemoryStepContentSchema = exports.CodeExecutionStepContentResponseSchema = 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
- exports.CancelStreamResponseSchema = exports.DeleteMessageResponseSchema = exports.DeleteMessageParamsSchema = exports.RateMessageParamsSchema = exports.RateMessageResponseSchema = exports.RateMessageRequestSchema = exports.GenerationStepSchema = exports.BudgetPromoBudgetCutoffSchema = exports.BudgetPromoDiscountAppliedSchema = exports.BudgetPromoStepContentSchema = exports.BudgetPromoMessageKey = exports.BudgetPromoCta = exports.BudgetPromoKind = exports.MessageStepStatus = exports.isModelAttributedStepType = exports.MODEL_ATTRIBUTED_STEP_TYPES = exports.GenerationStepType = exports.AttachmentsSchema = exports.AttachmentSchema = exports.AttachmentStatus = exports.AttachmentType = exports.AttachmentSource = exports.ViewChunkMetadataSchema = exports.StrReplaceChunkMetadataSchema = exports.CreateFileChunkMetadataSchema = exports.BashChunkMetadataSchema = exports.DescribeChunkMetadataSchema = exports.ArgsChunkMetadataSchema = exports.StepChunkMetadataSchema = exports.STEP_CHUNK_LINES_MAX_ITEMS = exports.STEP_CHUNK_LINE_MAX_LENGTH = void 0;
3
+ exports.StepStartMetadataByType = exports.UploadStepDoneMetadataSchema = exports.CodeExecutionStepStartMetadataSchema = exports.VideoAnalysisStepStartMetadataSchema = exports.ImageEditStepStartMetadataSchema = exports.ConversationSearchStepStartMetadataSchema = exports.WebSearchStepStartMetadataSchema = exports.StepDoneMetadataSchema = exports.StepStartMetadataSchema = exports.CitationSchema = exports.CitationStatus = exports.StreamCancellationReason = exports.StreamErrorEventSchema = exports.StreamCancelledEventSchema = exports.StreamDoneEventSchema = exports.StreamHeartbeatEventSchema = exports.StreamCitationsEventSchema = exports.StreamImageGenerationErrorEventSchema = exports.StreamImageEventSchema = exports.StreamBillingEstimateEventSchema = exports.StreamStepBilledEventSchema = exports.StreamStepDoneEventSchema = exports.StreamStepErrorEventSchema = exports.StreamStepChunkEventSchema = exports.StreamStepStartEventSchema = exports.StreamEventSchema = exports.StreamEventType = exports.MessageCitationsResponseSchema = exports.MessageCitationResponseSchema = exports.AttachmentMetaResponseSchema = exports.MessageAttachmentsResponseSchema = exports.MessageAttachmentResponseSchema = exports.ConversationSearchStepContentSchema = exports.ConversationSearchResultItemSchema = exports.MemoryStepContentSchema = exports.CodeExecutionStepContentResponseSchema = 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
+ exports.CancelStreamResponseSchema = exports.DeleteMessageResponseSchema = exports.DeleteMessageParamsSchema = exports.RateMessageParamsSchema = exports.RateMessageResponseSchema = exports.RateMessageRequestSchema = exports.GenerationStepSchema = exports.BudgetPromoBudgetCutoffSchema = exports.BudgetPromoDiscountAppliedSchema = exports.BudgetPromoStepContentSchema = exports.BudgetPromoMessageKey = exports.BudgetPromoCta = exports.BudgetPromoKind = exports.MessageStepStatus = exports.isModelAttributedStepType = exports.MODEL_ATTRIBUTED_STEP_TYPES = exports.GenerationStepType = exports.AttachmentsSchema = exports.AttachmentSchema = exports.AttachmentStatus = exports.AttachmentType = exports.AttachmentSource = exports.ViewChunkMetadataSchema = exports.StrReplaceChunkMetadataSchema = exports.CreateFileChunkMetadataSchema = exports.BashChunkMetadataSchema = exports.DescribeChunkMetadataSchema = exports.ArgsChunkMetadataSchema = exports.StepChunkMetadataSchema = exports.STEP_CHUNK_LINES_MAX_ITEMS = exports.STEP_CHUNK_LINE_MAX_LENGTH = exports.BashChunkStream = exports.StepChunkKind = exports.StepDoneMetadataByType = void 0;
5
5
  var message_role_enum_1 = require("./message-role.enum");
6
6
  Object.defineProperty(exports, "MessageRole", { enumerable: true, get: function () { return message_role_enum_1.MessageRole; } });
7
7
  var message_status_enum_1 = require("./message-status.enum");
@@ -25,6 +25,8 @@ Object.defineProperty(exports, "ImageGenStepContentSchema", { enumerable: true,
25
25
  Object.defineProperty(exports, "UploadStepContentSchema", { enumerable: true, get: function () { return message_step_response_schema_1.UploadStepContentSchema; } });
26
26
  Object.defineProperty(exports, "CodeExecutionStepContentResponseSchema", { enumerable: true, get: function () { return message_step_response_schema_1.CodeExecutionStepContentResponseSchema; } });
27
27
  Object.defineProperty(exports, "MemoryStepContentSchema", { enumerable: true, get: function () { return message_step_response_schema_1.MemoryStepContentSchema; } });
28
+ Object.defineProperty(exports, "ConversationSearchResultItemSchema", { enumerable: true, get: function () { return message_step_response_schema_1.ConversationSearchResultItemSchema; } });
29
+ Object.defineProperty(exports, "ConversationSearchStepContentSchema", { enumerable: true, get: function () { return message_step_response_schema_1.ConversationSearchStepContentSchema; } });
28
30
  var message_attachment_response_schema_1 = require("./message-attachment-response.schema");
29
31
  Object.defineProperty(exports, "MessageAttachmentResponseSchema", { enumerable: true, get: function () { return message_attachment_response_schema_1.MessageAttachmentResponseSchema; } });
30
32
  Object.defineProperty(exports, "MessageAttachmentsResponseSchema", { enumerable: true, get: function () { return message_attachment_response_schema_1.MessageAttachmentsResponseSchema; } });
@@ -58,6 +60,7 @@ var step_metadata_schema_1 = require("./step-metadata.schema");
58
60
  Object.defineProperty(exports, "StepStartMetadataSchema", { enumerable: true, get: function () { return step_metadata_schema_1.StepStartMetadataSchema; } });
59
61
  Object.defineProperty(exports, "StepDoneMetadataSchema", { enumerable: true, get: function () { return step_metadata_schema_1.StepDoneMetadataSchema; } });
60
62
  Object.defineProperty(exports, "WebSearchStepStartMetadataSchema", { enumerable: true, get: function () { return step_metadata_schema_1.WebSearchStepStartMetadataSchema; } });
63
+ Object.defineProperty(exports, "ConversationSearchStepStartMetadataSchema", { enumerable: true, get: function () { return step_metadata_schema_1.ConversationSearchStepStartMetadataSchema; } });
61
64
  Object.defineProperty(exports, "ImageEditStepStartMetadataSchema", { enumerable: true, get: function () { return step_metadata_schema_1.ImageEditStepStartMetadataSchema; } });
62
65
  Object.defineProperty(exports, "VideoAnalysisStepStartMetadataSchema", { enumerable: true, get: function () { return step_metadata_schema_1.VideoAnalysisStepStartMetadataSchema; } });
63
66
  Object.defineProperty(exports, "CodeExecutionStepStartMetadataSchema", { enumerable: true, get: function () { return step_metadata_schema_1.CodeExecutionStepStartMetadataSchema; } });
@@ -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,OA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ACf,kIAAA,cAAc,OAAA;AACd,yIAAA,qBAAqB,OAAA;AACrB,gJAAA,4BAA4B,OAAA;AAC5B,oJAAA,gCAAgC,OAAA;AAChC,iJAAA,6BAA6B,OAAA;AAOjC,mEAAgE;AAAvD,8HAAA,oBAAoB,OAAA;AAE7B,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"}
@@ -93,6 +93,16 @@ export declare const MessageResponseSchema: z.ZodObject<{
93
93
  }, z.core.$strip>, z.ZodObject<{
94
94
  command: z.ZodEnum<typeof import("../..").MemoryEditCommand>;
95
95
  text: z.ZodNullable<z.ZodString>;
96
+ }, z.core.$strip>, z.ZodObject<{
97
+ query: z.ZodString;
98
+ results: z.ZodArray<z.ZodObject<{
99
+ chatId: z.ZodString;
100
+ messageId: z.ZodNullable<z.ZodString>;
101
+ title: z.ZodString;
102
+ snippet: z.ZodString;
103
+ lastMessageAt: z.ZodString;
104
+ }, z.core.$strip>>;
105
+ hasMore: z.ZodBoolean;
96
106
  }, z.core.$strip>]>>;
97
107
  showInUi: z.ZodBoolean;
98
108
  startedAt: z.ZodNullable<z.ZodString>;
@@ -91,6 +91,24 @@ export declare const MemoryStepContentSchema: z.ZodObject<{
91
91
  command: z.ZodEnum<typeof MemoryEditCommand>;
92
92
  text: z.ZodNullable<z.ZodString>;
93
93
  }, z.core.$strip>;
94
+ export declare const ConversationSearchResultItemSchema: z.ZodObject<{
95
+ chatId: z.ZodString;
96
+ messageId: z.ZodNullable<z.ZodString>;
97
+ title: z.ZodString;
98
+ snippet: z.ZodString;
99
+ lastMessageAt: z.ZodString;
100
+ }, z.core.$strip>;
101
+ export declare const ConversationSearchStepContentSchema: z.ZodObject<{
102
+ query: z.ZodString;
103
+ results: z.ZodArray<z.ZodObject<{
104
+ chatId: z.ZodString;
105
+ messageId: z.ZodNullable<z.ZodString>;
106
+ title: z.ZodString;
107
+ snippet: z.ZodString;
108
+ lastMessageAt: z.ZodString;
109
+ }, z.core.$strip>>;
110
+ hasMore: z.ZodBoolean;
111
+ }, z.core.$strip>;
94
112
  export declare const StepContentResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
95
113
  content: z.ZodString;
96
114
  }, z.core.$strip>, z.ZodObject<{
@@ -169,6 +187,16 @@ export declare const StepContentResponseSchema: z.ZodUnion<readonly [z.ZodObject
169
187
  }, z.core.$strip>, z.ZodObject<{
170
188
  command: z.ZodEnum<typeof MemoryEditCommand>;
171
189
  text: z.ZodNullable<z.ZodString>;
190
+ }, z.core.$strip>, z.ZodObject<{
191
+ query: z.ZodString;
192
+ results: z.ZodArray<z.ZodObject<{
193
+ chatId: z.ZodString;
194
+ messageId: z.ZodNullable<z.ZodString>;
195
+ title: z.ZodString;
196
+ snippet: z.ZodString;
197
+ lastMessageAt: z.ZodString;
198
+ }, z.core.$strip>>;
199
+ hasMore: z.ZodBoolean;
172
200
  }, z.core.$strip>]>;
173
201
  export declare const MessageStepResponseSchema: z.ZodObject<{
174
202
  uuid: z.ZodString;
@@ -253,6 +281,16 @@ export declare const MessageStepResponseSchema: z.ZodObject<{
253
281
  }, z.core.$strip>, z.ZodObject<{
254
282
  command: z.ZodEnum<typeof MemoryEditCommand>;
255
283
  text: z.ZodNullable<z.ZodString>;
284
+ }, z.core.$strip>, z.ZodObject<{
285
+ query: z.ZodString;
286
+ results: z.ZodArray<z.ZodObject<{
287
+ chatId: z.ZodString;
288
+ messageId: z.ZodNullable<z.ZodString>;
289
+ title: z.ZodString;
290
+ snippet: z.ZodString;
291
+ lastMessageAt: z.ZodString;
292
+ }, z.core.$strip>>;
293
+ hasMore: z.ZodBoolean;
256
294
  }, z.core.$strip>]>>;
257
295
  showInUi: z.ZodBoolean;
258
296
  startedAt: z.ZodNullable<z.ZodString>;
@@ -269,6 +307,8 @@ export type ImageGenStepContent = z.infer<typeof ImageGenStepContentSchema>;
269
307
  export type UploadStepContent = z.infer<typeof UploadStepContentSchema>;
270
308
  export type CodeExecutionStepContentResponse = z.infer<typeof CodeExecutionStepContentResponseSchema>;
271
309
  export type MemoryStepContent = z.infer<typeof MemoryStepContentSchema>;
310
+ export type ConversationSearchResultItem = z.infer<typeof ConversationSearchResultItemSchema>;
311
+ export type ConversationSearchStepContent = z.infer<typeof ConversationSearchStepContentSchema>;
272
312
  export declare const MessageStepsResponseSchema: z.ZodArray<z.ZodObject<{
273
313
  uuid: z.ZodString;
274
314
  type: z.ZodEnum<typeof GenerationStepType>;
@@ -352,6 +392,16 @@ export declare const MessageStepsResponseSchema: z.ZodArray<z.ZodObject<{
352
392
  }, z.core.$strip>, z.ZodObject<{
353
393
  command: z.ZodEnum<typeof MemoryEditCommand>;
354
394
  text: z.ZodNullable<z.ZodString>;
395
+ }, z.core.$strip>, z.ZodObject<{
396
+ query: z.ZodString;
397
+ results: z.ZodArray<z.ZodObject<{
398
+ chatId: z.ZodString;
399
+ messageId: z.ZodNullable<z.ZodString>;
400
+ title: z.ZodString;
401
+ snippet: z.ZodString;
402
+ lastMessageAt: z.ZodString;
403
+ }, z.core.$strip>>;
404
+ hasMore: z.ZodBoolean;
355
405
  }, z.core.$strip>]>>;
356
406
  showInUi: z.ZodBoolean;
357
407
  startedAt: z.ZodNullable<z.ZodString>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MessageStepsResponseSchema = exports.MessageStepResponseSchema = exports.StepContentResponseSchema = exports.MemoryStepContentSchema = exports.CodeExecutionStepContentResponseSchema = exports.UploadStepContentSchema = exports.ImageGenStepContentSchema = exports.WebSearchStepContentSchema = exports.WebSearchCitationSchema = exports.TextStepContentSchema = void 0;
3
+ exports.MessageStepsResponseSchema = exports.MessageStepResponseSchema = exports.StepContentResponseSchema = exports.ConversationSearchStepContentSchema = exports.ConversationSearchResultItemSchema = exports.MemoryStepContentSchema = exports.CodeExecutionStepContentResponseSchema = exports.UploadStepContentSchema = exports.ImageGenStepContentSchema = exports.WebSearchStepContentSchema = exports.WebSearchCitationSchema = exports.TextStepContentSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const primitive_completion_schema_1 = require("../../tool/sandbox/primitive-completion.schema");
6
6
  const generation_step_type_enum_1 = require("./generation-step-type.enum");
@@ -48,6 +48,18 @@ exports.MemoryStepContentSchema = zod_1.z.object({
48
48
  command: zod_1.z.enum(memory_edit_command_enum_1.MemoryEditCommand),
49
49
  text: zod_1.z.string().nullable(),
50
50
  });
51
+ exports.ConversationSearchResultItemSchema = zod_1.z.object({
52
+ chatId: zod_1.z.string().uuid(),
53
+ messageId: zod_1.z.string().uuid().nullable(),
54
+ title: zod_1.z.string(),
55
+ snippet: zod_1.z.string(),
56
+ lastMessageAt: zod_1.z.string(),
57
+ });
58
+ exports.ConversationSearchStepContentSchema = zod_1.z.object({
59
+ query: zod_1.z.string(),
60
+ results: zod_1.z.array(exports.ConversationSearchResultItemSchema),
61
+ hasMore: zod_1.z.boolean(),
62
+ });
51
63
  exports.StepContentResponseSchema = zod_1.z.union([
52
64
  exports.TextStepContentSchema,
53
65
  exports.WebSearchStepContentSchema,
@@ -55,6 +67,7 @@ exports.StepContentResponseSchema = zod_1.z.union([
55
67
  exports.UploadStepContentSchema,
56
68
  exports.CodeExecutionStepContentResponseSchema,
57
69
  exports.MemoryStepContentSchema,
70
+ exports.ConversationSearchStepContentSchema,
58
71
  ]);
59
72
  exports.MessageStepResponseSchema = zod_1.z.object({
60
73
  uuid: zod_1.z.string().uuid(),
@@ -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,gGAAkG;AAClG,2EAAiE;AACjE,yEAA+D;AAC/D,4FAAkF;AAKrE,QAAA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AE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,CAAC,QAAQ,EAAE;IAiBxD,sBAAsB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,CAAC,QAAQ,EAAE;CACpE,CAAC,CAAC;AAeU,QAAA,0BAA0B,GAAG,OAAC,CAAC,KAAK,CAAC,iCAAyB,CAAC,CAAC"}
1
+ {"version":3,"file":"message-step-response.schema.js","sourceRoot":"","sources":["../../../../v1/message/schemas/message-step-response.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,gGAAkG;AAClG,2EAAiE;AACjE,yEAA+D;AAC/D,4FAAkF;AAKrE,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;AAYU,QAAA,sCAAsC,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3D,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,QAA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C,CAAC"}
@@ -4,6 +4,9 @@ import { GenerationStepType } from './generation-step-type.enum';
4
4
  export declare const WebSearchStepStartMetadataSchema: z.ZodObject<{
5
5
  queries: z.ZodArray<z.ZodString>;
6
6
  }, z.core.$strip>;
7
+ export declare const ConversationSearchStepStartMetadataSchema: z.ZodObject<{
8
+ query: z.ZodString;
9
+ }, z.core.$strip>;
7
10
  export declare const ImageEditStepStartMetadataSchema: z.ZodObject<{
8
11
  sourceResolution: z.ZodString;
9
12
  sourceImageCount: z.ZodNumber;
@@ -17,6 +20,8 @@ export declare const CodeExecutionStepStartMetadataSchema: z.ZodObject<{
17
20
  export declare const StepStartMetadataByType: Partial<Record<GenerationStepType, z.ZodTypeAny>>;
18
21
  export declare const StepStartMetadataSchema: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
19
22
  queries: z.ZodArray<z.ZodString>;
23
+ }, z.core.$strip>, z.ZodObject<{
24
+ query: z.ZodString;
20
25
  }, z.core.$strip>, z.ZodObject<{
21
26
  sourceResolution: z.ZodString;
22
27
  sourceImageCount: z.ZodNumber;
@@ -37,6 +42,7 @@ export declare const StepDoneMetadataSchema: z.ZodOptional<z.ZodUnion<readonly [
37
42
  imageUrls: z.ZodArray<z.ZodString>;
38
43
  }, z.core.$strip>, z.ZodObject<{}, z.core.$strip>]>>;
39
44
  export type WebSearchStepStartMetadata = z.infer<typeof WebSearchStepStartMetadataSchema>;
45
+ export type ConversationSearchStepStartMetadata = z.infer<typeof ConversationSearchStepStartMetadataSchema>;
40
46
  export type ImageEditStepStartMetadata = z.infer<typeof ImageEditStepStartMetadataSchema>;
41
47
  export type VideoAnalysisStepStartMetadata = z.infer<typeof VideoAnalysisStepStartMetadataSchema>;
42
48
  export type CodeExecutionStepStartMetadata = z.infer<typeof CodeExecutionStepStartMetadataSchema>;
@@ -1,12 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.StepDoneMetadataSchema = exports.StepDoneMetadataByType = exports.UploadStepDoneMetadataSchema = exports.StepStartMetadataSchema = exports.StepStartMetadataByType = exports.CodeExecutionStepStartMetadataSchema = exports.VideoAnalysisStepStartMetadataSchema = exports.ImageEditStepStartMetadataSchema = exports.WebSearchStepStartMetadataSchema = void 0;
3
+ exports.StepDoneMetadataSchema = exports.StepDoneMetadataByType = exports.UploadStepDoneMetadataSchema = exports.StepStartMetadataSchema = exports.StepStartMetadataByType = exports.CodeExecutionStepStartMetadataSchema = exports.VideoAnalysisStepStartMetadataSchema = exports.ImageEditStepStartMetadataSchema = exports.ConversationSearchStepStartMetadataSchema = exports.WebSearchStepStartMetadataSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const sandbox_primitive_type_enum_1 = require("../../tool/sandbox/sandbox-primitive-type.enum");
6
6
  const generation_step_type_enum_1 = require("./generation-step-type.enum");
7
7
  exports.WebSearchStepStartMetadataSchema = zod_1.z.object({
8
8
  queries: zod_1.z.array(zod_1.z.string()),
9
9
  });
10
+ exports.ConversationSearchStepStartMetadataSchema = zod_1.z.object({
11
+ query: zod_1.z.string(),
12
+ });
10
13
  exports.ImageEditStepStartMetadataSchema = zod_1.z.object({
11
14
  sourceResolution: zod_1.z.string(),
12
15
  sourceImageCount: zod_1.z.number().int().nonnegative(),
@@ -19,6 +22,7 @@ exports.CodeExecutionStepStartMetadataSchema = zod_1.z.object({
19
22
  });
20
23
  exports.StepStartMetadataByType = {
21
24
  [generation_step_type_enum_1.GenerationStepType.WEB_SEARCH]: exports.WebSearchStepStartMetadataSchema,
25
+ [generation_step_type_enum_1.GenerationStepType.CONVERSATION_SEARCH]: exports.ConversationSearchStepStartMetadataSchema,
22
26
  [generation_step_type_enum_1.GenerationStepType.IMAGE_EDIT]: exports.ImageEditStepStartMetadataSchema,
23
27
  [generation_step_type_enum_1.GenerationStepType.VIDEO_ANALYSIS]: exports.VideoAnalysisStepStartMetadataSchema,
24
28
  [generation_step_type_enum_1.GenerationStepType.CODE_EXECUTION]: exports.CodeExecutionStepStartMetadataSchema,
@@ -26,6 +30,7 @@ exports.StepStartMetadataByType = {
26
30
  exports.StepStartMetadataSchema = zod_1.z
27
31
  .union([
28
32
  exports.WebSearchStepStartMetadataSchema,
33
+ exports.ConversationSearchStepStartMetadataSchema,
29
34
  exports.ImageEditStepStartMetadataSchema,
30
35
  exports.VideoAnalysisStepStartMetadataSchema,
31
36
  exports.CodeExecutionStepStartMetadataSchema,
@@ -1 +1 @@
1
- {"version":3,"file":"step-metadata.schema.js","sourceRoot":"","sources":["../../../../v1/message/schemas/step-metadata.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,gGAAsF;AACtF,2EAAiE;AASpD,QAAA,gCAAgC,GAAG,OAAC,CAAC,MAAM,CAAC;IACrD,OAAO,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;CAC/B,CAAC,CAAC;AAKU,QAAA,gCAAgC,GAAG,OAAC,CAAC,MAAM,CAAC;IACrD,gBAAgB,EAAE,OAAC,CAAC,MAAM,EAAE;IAC5B,gBAAgB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;CACnD,CAAC,CAAC;AAKU,QAAA,oCAAoC,GAAG,OAAC,CAAC,MAAM,CAAC;IACzD,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;CAC7B,CAAC,CAAC;AAUU,QAAA,oCAAoC,GAAG,OAAC,CAAC,MAAM,CAAC;IACzD,aAAa,EAAE,OAAC,CAAC,IAAI,CAAC,kDAAoB,CAAC;CAC9C,CAAC,CAAC;AAOU,QAAA,uBAAuB,GAEhC;IACA,CAAC,8CAAkB,CAAC,UAAU,CAAC,EAAE,wCAAgC;IACjE,CAAC,8CAAkB,CAAC,UAAU,CAAC,EAAE,wCAAgC;IACjE,CAAC,8CAAkB,CAAC,cAAc,CAAC,EAAE,4CAAoC;IACzE,CAAC,8CAAkB,CAAC,cAAc,CAAC,EAAE,4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C"}
@@ -12,6 +12,8 @@ export declare const StreamStepStartEventSchema: z.ZodObject<{
12
12
  modelUuid: z.ZodDefault<z.ZodNullable<z.ZodString>>;
13
13
  metadata: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
14
14
  queries: z.ZodArray<z.ZodString>;
15
+ }, z.core.$strip>, z.ZodObject<{
16
+ query: z.ZodString;
15
17
  }, z.core.$strip>, z.ZodObject<{
16
18
  sourceResolution: z.ZodString;
17
19
  sourceImageCount: z.ZodNumber;
@@ -206,6 +208,8 @@ export declare const StreamEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
206
208
  modelUuid: z.ZodDefault<z.ZodNullable<z.ZodString>>;
207
209
  metadata: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
208
210
  queries: z.ZodArray<z.ZodString>;
211
+ }, z.core.$strip>, z.ZodObject<{
212
+ query: z.ZodString;
209
213
  }, z.core.$strip>, z.ZodObject<{
210
214
  sourceResolution: z.ZodString;
211
215
  sourceImageCount: z.ZodNumber;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veruna/api-contracts",
3
- "version": "6.28.0",
3
+ "version": "6.29.0",
4
4
  "description": "API contracts for Veruna project - Zod schemas, types, and paths",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",