@veruna/api-contracts 6.27.0 → 6.28.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.
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/v1/chat/commands/create-reg-chat.command.d.ts +3 -0
- package/build/v1/chat/commands/create-unreg-chat.command.d.ts +3 -0
- package/build/v1/chat/commands/update-chat-title.command.d.ts +3 -0
- package/build/v1/chat/commands/update-chat.command.d.ts +3 -0
- package/build/v1/chat/queries/get-last-active-chat.query.d.ts +3 -0
- package/build/v1/chat/queries/get-reg-chat.query.d.ts +3 -0
- package/build/v1/chat/queries/get-unreg-chat.query.d.ts +3 -0
- package/build/v1/chat/schemas/chat-with-messages-response.schema.d.ts +3 -0
- package/build/v1/memory/memory.errors.d.ts +2 -1
- package/build/v1/memory/memory.errors.js +5 -0
- package/build/v1/memory/memory.errors.js.map +1 -1
- package/build/v1/message/schemas/index.d.ts +2 -2
- package/build/v1/message/schemas/index.js +3 -2
- package/build/v1/message/schemas/index.js.map +1 -1
- package/build/v1/message/schemas/message-response.schema.d.ts +3 -0
- package/build/v1/message/schemas/message-step-response.schema.d.ts +15 -0
- package/build/v1/message/schemas/message-step-response.schema.js +7 -1
- package/build/v1/message/schemas/message-step-response.schema.js.map +1 -1
- package/build/v1/plans/schemas/plan-feature.enum.d.ts +2 -1
- package/build/v1/plans/schemas/plan-feature.enum.js +1 -0
- package/build/v1/plans/schemas/plan-feature.enum.js.map +1 -1
- package/package.json +1 -1
|
@@ -101,6 +101,9 @@ export declare namespace CreateRegChatCommand {
|
|
|
101
101
|
}, z.core.$strip>], "type">;
|
|
102
102
|
}, z.core.$strip>], "type">>;
|
|
103
103
|
description: z.ZodOptional<z.ZodString>;
|
|
104
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
105
|
+
command: z.ZodEnum<typeof import("../..").MemoryEditCommand>;
|
|
106
|
+
text: z.ZodNullable<z.ZodString>;
|
|
104
107
|
}, z.core.$strip>]>>;
|
|
105
108
|
showInUi: z.ZodBoolean;
|
|
106
109
|
startedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -101,6 +101,9 @@ export declare namespace CreateUnregChatCommand {
|
|
|
101
101
|
}, z.core.$strip>], "type">;
|
|
102
102
|
}, z.core.$strip>], "type">>;
|
|
103
103
|
description: z.ZodOptional<z.ZodString>;
|
|
104
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
105
|
+
command: z.ZodEnum<typeof import("../..").MemoryEditCommand>;
|
|
106
|
+
text: z.ZodNullable<z.ZodString>;
|
|
104
107
|
}, z.core.$strip>]>>;
|
|
105
108
|
showInUi: z.ZodBoolean;
|
|
106
109
|
startedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -100,6 +100,9 @@ export declare namespace UpdateChatTitleCommand {
|
|
|
100
100
|
}, z.core.$strip>], "type">;
|
|
101
101
|
}, z.core.$strip>], "type">>;
|
|
102
102
|
description: z.ZodOptional<z.ZodString>;
|
|
103
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
104
|
+
command: z.ZodEnum<typeof import("../..").MemoryEditCommand>;
|
|
105
|
+
text: z.ZodNullable<z.ZodString>;
|
|
103
106
|
}, z.core.$strip>]>>;
|
|
104
107
|
showInUi: z.ZodBoolean;
|
|
105
108
|
startedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -102,6 +102,9 @@ export declare namespace UpdateChatCommand {
|
|
|
102
102
|
}, z.core.$strip>], "type">;
|
|
103
103
|
}, z.core.$strip>], "type">>;
|
|
104
104
|
description: z.ZodOptional<z.ZodString>;
|
|
105
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
106
|
+
command: z.ZodEnum<typeof import("../..").MemoryEditCommand>;
|
|
107
|
+
text: z.ZodNullable<z.ZodString>;
|
|
105
108
|
}, z.core.$strip>]>>;
|
|
106
109
|
showInUi: z.ZodBoolean;
|
|
107
110
|
startedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -98,6 +98,9 @@ export declare namespace GetLastActiveChatQuery {
|
|
|
98
98
|
}, z.core.$strip>], "type">;
|
|
99
99
|
}, z.core.$strip>], "type">>;
|
|
100
100
|
description: z.ZodOptional<z.ZodString>;
|
|
101
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
102
|
+
command: z.ZodEnum<typeof import("../..").MemoryEditCommand>;
|
|
103
|
+
text: z.ZodNullable<z.ZodString>;
|
|
101
104
|
}, z.core.$strip>]>>;
|
|
102
105
|
showInUi: z.ZodBoolean;
|
|
103
106
|
startedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -98,6 +98,9 @@ export declare namespace GetRegChatQuery {
|
|
|
98
98
|
}, z.core.$strip>], "type">;
|
|
99
99
|
}, z.core.$strip>], "type">>;
|
|
100
100
|
description: z.ZodOptional<z.ZodString>;
|
|
101
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
102
|
+
command: z.ZodEnum<typeof import("../..").MemoryEditCommand>;
|
|
103
|
+
text: z.ZodNullable<z.ZodString>;
|
|
101
104
|
}, z.core.$strip>]>>;
|
|
102
105
|
showInUi: z.ZodBoolean;
|
|
103
106
|
startedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -98,6 +98,9 @@ export declare namespace GetUnregChatQuery {
|
|
|
98
98
|
}, z.core.$strip>], "type">;
|
|
99
99
|
}, z.core.$strip>], "type">>;
|
|
100
100
|
description: z.ZodOptional<z.ZodString>;
|
|
101
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
102
|
+
command: z.ZodEnum<typeof import("../..").MemoryEditCommand>;
|
|
103
|
+
text: z.ZodNullable<z.ZodString>;
|
|
101
104
|
}, z.core.$strip>]>>;
|
|
102
105
|
showInUi: z.ZodBoolean;
|
|
103
106
|
startedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -96,6 +96,9 @@ export declare const ChatWithMessagesResponseSchema: z.ZodObject<{
|
|
|
96
96
|
}, z.core.$strip>], "type">;
|
|
97
97
|
}, z.core.$strip>], "type">>;
|
|
98
98
|
description: z.ZodOptional<z.ZodString>;
|
|
99
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
100
|
+
command: z.ZodEnum<typeof import("../..").MemoryEditCommand>;
|
|
101
|
+
text: z.ZodNullable<z.ZodString>;
|
|
99
102
|
}, z.core.$strip>]>>;
|
|
100
103
|
showInUi: z.ZodBoolean;
|
|
101
104
|
startedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -5,6 +5,7 @@ export declare enum MemoryErrorCode {
|
|
|
5
5
|
EMPTY_TEXT = "EMPTY_TEXT",
|
|
6
6
|
EDIT_NOT_FOUND = "EDIT_NOT_FOUND",
|
|
7
7
|
SECRET_REJECTED = "SECRET_REJECTED",
|
|
8
|
-
PROFILE_TOO_LONG = "PROFILE_TOO_LONG"
|
|
8
|
+
PROFILE_TOO_LONG = "PROFILE_TOO_LONG",
|
|
9
|
+
MEMORY_ACCESS_DENIED = "MEMORY_ACCESS_DENIED"
|
|
9
10
|
}
|
|
10
11
|
export declare const MEMORY_ERRORS: Record<MemoryErrorCode, ErrorMetadata>;
|
|
@@ -9,6 +9,7 @@ var MemoryErrorCode;
|
|
|
9
9
|
MemoryErrorCode["EDIT_NOT_FOUND"] = "EDIT_NOT_FOUND";
|
|
10
10
|
MemoryErrorCode["SECRET_REJECTED"] = "SECRET_REJECTED";
|
|
11
11
|
MemoryErrorCode["PROFILE_TOO_LONG"] = "PROFILE_TOO_LONG";
|
|
12
|
+
MemoryErrorCode["MEMORY_ACCESS_DENIED"] = "MEMORY_ACCESS_DENIED";
|
|
12
13
|
})(MemoryErrorCode || (exports.MemoryErrorCode = MemoryErrorCode = {}));
|
|
13
14
|
exports.MEMORY_ERRORS = {
|
|
14
15
|
[MemoryErrorCode.EDIT_LIMIT_REACHED]: {
|
|
@@ -35,5 +36,9 @@ exports.MEMORY_ERRORS = {
|
|
|
35
36
|
code: MemoryErrorCode.PROFILE_TOO_LONG,
|
|
36
37
|
statusCode: 422,
|
|
37
38
|
},
|
|
39
|
+
[MemoryErrorCode.MEMORY_ACCESS_DENIED]: {
|
|
40
|
+
code: MemoryErrorCode.MEMORY_ACCESS_DENIED,
|
|
41
|
+
statusCode: 403,
|
|
42
|
+
},
|
|
38
43
|
};
|
|
39
44
|
//# sourceMappingURL=memory.errors.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"memory.errors.js","sourceRoot":"","sources":["../../../v1/memory/memory.errors.ts"],"names":[],"mappings":";;;AAEA,IAAY,
|
|
1
|
+
{"version":3,"file":"memory.errors.js","sourceRoot":"","sources":["../../../v1/memory/memory.errors.ts"],"names":[],"mappings":";;;AAEA,IAAY,eASX;AATD,WAAY,eAAe;IACvB,4DAAyC,CAAA;IACzC,kDAA+B,CAAA;IAC/B,4CAAyB,CAAA;IACzB,oDAAiC,CAAA;IACjC,sDAAmC,CAAA;IACnC,wDAAqC,CAAA;IAErC,gEAA6C,CAAA;AACjD,CAAC,EATW,eAAe,+BAAf,eAAe,QAS1B;AAEY,QAAA,aAAa,GAA2C;IACjE,CAAC,eAAe,CAAC,kBAAkB,CAAC,EAAE;QAClC,IAAI,EAAE,eAAe,CAAC,kBAAkB;QACxC,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,eAAe,CAAC,aAAa,CAAC,EAAE;QAC7B,IAAI,EAAE,eAAe,CAAC,aAAa;QACnC,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,eAAe,CAAC,UAAU,CAAC,EAAE;QAC1B,IAAI,EAAE,eAAe,CAAC,UAAU;QAChC,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,eAAe,CAAC,cAAc,CAAC,EAAE;QAC9B,IAAI,EAAE,eAAe,CAAC,cAAc;QACpC,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,eAAe,CAAC,eAAe,CAAC,EAAE;QAC/B,IAAI,EAAE,eAAe,CAAC,eAAe;QACrC,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,eAAe,CAAC,gBAAgB,CAAC,EAAE;QAChC,IAAI,EAAE,eAAe,CAAC,gBAAgB;QACtC,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,eAAe,CAAC,oBAAoB,CAAC,EAAE;QACpC,IAAI,EAAE,eAAe,CAAC,oBAAoB;QAC1C,UAAU,EAAE,GAAG;KAClB;CACK,CAAC"}
|
|
@@ -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, } from './message-step-response.schema';
|
|
8
|
-
export type { MessageStepResponse, MessageStepsResponse, StepContentResponse, TextStepContent, WebSearchCitation, WebSearchStepContent, ImageGenStepContent, UploadStepContent, CodeExecutionStepContentResponse, } from './message-step-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';
|
|
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,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
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 = void 0;
|
|
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;
|
|
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");
|
|
@@ -24,6 +24,7 @@ Object.defineProperty(exports, "WebSearchStepContentSchema", { enumerable: true,
|
|
|
24
24
|
Object.defineProperty(exports, "ImageGenStepContentSchema", { enumerable: true, get: function () { return message_step_response_schema_1.ImageGenStepContentSchema; } });
|
|
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
|
+
Object.defineProperty(exports, "MemoryStepContentSchema", { enumerable: true, get: function () { return message_step_response_schema_1.MemoryStepContentSchema; } });
|
|
27
28
|
var message_attachment_response_schema_1 = require("./message-attachment-response.schema");
|
|
28
29
|
Object.defineProperty(exports, "MessageAttachmentResponseSchema", { enumerable: true, get: function () { return message_attachment_response_schema_1.MessageAttachmentResponseSchema; } });
|
|
29
30
|
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,0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A,yBAAyB,OAAA;AAAE,oIAAA,2BAA2B,OAAA;AAE/D,iFAA6E;AAApE,2IAAA,0BAA0B,OAAA"}
|
|
@@ -90,6 +90,9 @@ export declare const MessageResponseSchema: z.ZodObject<{
|
|
|
90
90
|
}, z.core.$strip>], "type">;
|
|
91
91
|
}, z.core.$strip>], "type">>;
|
|
92
92
|
description: z.ZodOptional<z.ZodString>;
|
|
93
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
94
|
+
command: z.ZodEnum<typeof import("../..").MemoryEditCommand>;
|
|
95
|
+
text: z.ZodNullable<z.ZodString>;
|
|
93
96
|
}, z.core.$strip>]>>;
|
|
94
97
|
showInUi: z.ZodBoolean;
|
|
95
98
|
startedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { GenerationStepType } from './generation-step-type.enum';
|
|
3
3
|
import { MessageStepStatus } from './message-step-status.enum';
|
|
4
|
+
import { MemoryEditCommand } from '../../memory/schemas/memory-edit-command.enum';
|
|
4
5
|
export declare const TextStepContentSchema: z.ZodObject<{
|
|
5
6
|
content: z.ZodString;
|
|
6
7
|
}, z.core.$strip>;
|
|
@@ -86,6 +87,10 @@ export declare const CodeExecutionStepContentResponseSchema: z.ZodObject<{
|
|
|
86
87
|
}, z.core.$strip>], "type">>;
|
|
87
88
|
description: z.ZodOptional<z.ZodString>;
|
|
88
89
|
}, z.core.$strip>;
|
|
90
|
+
export declare const MemoryStepContentSchema: z.ZodObject<{
|
|
91
|
+
command: z.ZodEnum<typeof MemoryEditCommand>;
|
|
92
|
+
text: z.ZodNullable<z.ZodString>;
|
|
93
|
+
}, z.core.$strip>;
|
|
89
94
|
export declare const StepContentResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
90
95
|
content: z.ZodString;
|
|
91
96
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -161,6 +166,9 @@ export declare const StepContentResponseSchema: z.ZodUnion<readonly [z.ZodObject
|
|
|
161
166
|
}, z.core.$strip>], "type">;
|
|
162
167
|
}, z.core.$strip>], "type">>;
|
|
163
168
|
description: z.ZodOptional<z.ZodString>;
|
|
169
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
170
|
+
command: z.ZodEnum<typeof MemoryEditCommand>;
|
|
171
|
+
text: z.ZodNullable<z.ZodString>;
|
|
164
172
|
}, z.core.$strip>]>;
|
|
165
173
|
export declare const MessageStepResponseSchema: z.ZodObject<{
|
|
166
174
|
uuid: z.ZodString;
|
|
@@ -242,6 +250,9 @@ export declare const MessageStepResponseSchema: z.ZodObject<{
|
|
|
242
250
|
}, z.core.$strip>], "type">;
|
|
243
251
|
}, z.core.$strip>], "type">>;
|
|
244
252
|
description: z.ZodOptional<z.ZodString>;
|
|
253
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
254
|
+
command: z.ZodEnum<typeof MemoryEditCommand>;
|
|
255
|
+
text: z.ZodNullable<z.ZodString>;
|
|
245
256
|
}, z.core.$strip>]>>;
|
|
246
257
|
showInUi: z.ZodBoolean;
|
|
247
258
|
startedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -257,6 +268,7 @@ export type WebSearchStepContent = z.infer<typeof WebSearchStepContentSchema>;
|
|
|
257
268
|
export type ImageGenStepContent = z.infer<typeof ImageGenStepContentSchema>;
|
|
258
269
|
export type UploadStepContent = z.infer<typeof UploadStepContentSchema>;
|
|
259
270
|
export type CodeExecutionStepContentResponse = z.infer<typeof CodeExecutionStepContentResponseSchema>;
|
|
271
|
+
export type MemoryStepContent = z.infer<typeof MemoryStepContentSchema>;
|
|
260
272
|
export declare const MessageStepsResponseSchema: z.ZodArray<z.ZodObject<{
|
|
261
273
|
uuid: z.ZodString;
|
|
262
274
|
type: z.ZodEnum<typeof GenerationStepType>;
|
|
@@ -337,6 +349,9 @@ export declare const MessageStepsResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
337
349
|
}, z.core.$strip>], "type">;
|
|
338
350
|
}, z.core.$strip>], "type">>;
|
|
339
351
|
description: z.ZodOptional<z.ZodString>;
|
|
352
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
353
|
+
command: z.ZodEnum<typeof MemoryEditCommand>;
|
|
354
|
+
text: z.ZodNullable<z.ZodString>;
|
|
340
355
|
}, z.core.$strip>]>>;
|
|
341
356
|
showInUi: z.ZodBoolean;
|
|
342
357
|
startedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MessageStepsResponseSchema = exports.MessageStepResponseSchema = exports.StepContentResponseSchema = exports.CodeExecutionStepContentResponseSchema = exports.UploadStepContentSchema = exports.ImageGenStepContentSchema = exports.WebSearchStepContentSchema = exports.WebSearchCitationSchema = exports.TextStepContentSchema = void 0;
|
|
3
|
+
exports.MessageStepsResponseSchema = exports.MessageStepResponseSchema = exports.StepContentResponseSchema = 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");
|
|
7
7
|
const message_step_status_enum_1 = require("./message-step-status.enum");
|
|
8
|
+
const memory_edit_command_enum_1 = require("../../memory/schemas/memory-edit-command.enum");
|
|
8
9
|
exports.TextStepContentSchema = zod_1.z.object({
|
|
9
10
|
content: zod_1.z.string(),
|
|
10
11
|
});
|
|
@@ -43,12 +44,17 @@ exports.CodeExecutionStepContentResponseSchema = zod_1.z.object({
|
|
|
43
44
|
primitive: primitive_completion_schema_1.SandboxPrimitiveCompletionSchema.optional(),
|
|
44
45
|
description: zod_1.z.string().optional(),
|
|
45
46
|
});
|
|
47
|
+
exports.MemoryStepContentSchema = zod_1.z.object({
|
|
48
|
+
command: zod_1.z.enum(memory_edit_command_enum_1.MemoryEditCommand),
|
|
49
|
+
text: zod_1.z.string().nullable(),
|
|
50
|
+
});
|
|
46
51
|
exports.StepContentResponseSchema = zod_1.z.union([
|
|
47
52
|
exports.TextStepContentSchema,
|
|
48
53
|
exports.WebSearchStepContentSchema,
|
|
49
54
|
exports.ImageGenStepContentSchema,
|
|
50
55
|
exports.UploadStepContentSchema,
|
|
51
56
|
exports.CodeExecutionStepContentResponseSchema,
|
|
57
|
+
exports.MemoryStepContentSchema,
|
|
52
58
|
]);
|
|
53
59
|
exports.MessageStepResponseSchema = zod_1.z.object({
|
|
54
60
|
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;
|
|
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,CAA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
PlanFeature["REASONING"] = "REASONING";
|
|
9
|
+
PlanFeature["MEMORY"] = "MEMORY";
|
|
9
10
|
})(PlanFeature || (exports.PlanFeature = PlanFeature = {}));
|
|
10
11
|
//# sourceMappingURL=plan-feature.enum.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plan-feature.enum.js","sourceRoot":"","sources":["../../../../v1/plans/schemas/plan-feature.enum.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"plan-feature.enum.js","sourceRoot":"","sources":["../../../../v1/plans/schemas/plan-feature.enum.ts"],"names":[],"mappings":";;;AAWA,IAAY,WAKX;AALD,WAAY,WAAW;IACnB,wCAAyB,CAAA;IACzB,0CAA2B,CAAA;IAC3B,sCAAuB,CAAA;IACvB,gCAAiB,CAAA;AACrB,CAAC,EALW,WAAW,2BAAX,WAAW,QAKtB"}
|