@veruna/api-contracts 1.0.98 → 1.0.99
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/README.md +1 -1
- package/build/rest-api.d.ts +0 -1
- package/build/rest-api.js +0 -1
- package/build/rest-api.js.map +1 -1
- package/build/routes/users.routes.d.ts +0 -1
- package/build/routes/users.routes.js +0 -1
- package/build/routes/users.routes.js.map +1 -1
- package/build/shared/common.errors.d.ts +2 -0
- package/build/shared/common.errors.js +10 -0
- package/build/shared/common.errors.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/v1/ai/tool-id.enum.d.ts +2 -1
- package/build/v1/ai/tool-id.enum.js +1 -0
- package/build/v1/ai/tool-id.enum.js.map +1 -1
- package/build/v1/message/commands/create-message.command.d.ts +7 -0
- package/build/v1/message/schemas/generation-step.schema.d.ts +2 -1
- 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 +1 -1
- package/build/v1/message/schemas/index.js +2 -1
- package/build/v1/message/schemas/index.js.map +1 -1
- package/build/v1/message/schemas/stream-events.schema.d.ts +17 -1
- package/build/v1/message/schemas/stream-events.schema.js +8 -1
- package/build/v1/message/schemas/stream-events.schema.js.map +1 -1
- package/build/v1/users/commands/index.d.ts +0 -2
- package/build/v1/users/commands/index.js +0 -2
- package/build/v1/users/commands/index.js.map +1 -1
- package/build/v1/users/schemas/index.d.ts +0 -2
- package/build/v1/users/schemas/index.js +0 -2
- package/build/v1/users/schemas/index.js.map +1 -1
- package/package.json +1 -1
- package/build/v1/users/commands/change-password.command.d.ts +0 -16
- package/build/v1/users/commands/change-password.command.js +0 -18
- package/build/v1/users/commands/change-password.command.js.map +0 -1
- package/build/v1/users/commands/delete-account.command.d.ts +0 -12
- package/build/v1/users/commands/delete-account.command.js +0 -17
- package/build/v1/users/commands/delete-account.command.js.map +0 -1
- package/build/v1/users/schemas/change-password-request.schema.d.ts +0 -6
- package/build/v1/users/schemas/change-password-request.schema.js +0 -17
- package/build/v1/users/schemas/change-password-request.schema.js.map +0 -1
- package/build/v1/users/schemas/delete-account-request.schema.d.ts +0 -2
- package/build/v1/users/schemas/delete-account-request.schema.js +0 -6
- package/build/v1/users/schemas/delete-account-request.schema.js.map +0 -1
|
@@ -7,5 +7,6 @@ var ToolId;
|
|
|
7
7
|
ToolId["IMAGE_EDIT"] = "imageEdit";
|
|
8
8
|
ToolId["WEB_SEARCH"] = "webSearch";
|
|
9
9
|
ToolId["YOUTUBE_VIDEO_ANALYSIS"] = "youtubeVideoAnalysis";
|
|
10
|
+
ToolId["HTML_VISUALIZATION"] = "htmlVisualization";
|
|
10
11
|
})(ToolId || (exports.ToolId = ToolId = {}));
|
|
11
12
|
//# sourceMappingURL=tool-id.enum.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-id.enum.js","sourceRoot":"","sources":["../../../v1/ai/tool-id.enum.ts"],"names":[],"mappings":";;;AAIA,IAAY,
|
|
1
|
+
{"version":3,"file":"tool-id.enum.js","sourceRoot":"","sources":["../../../v1/ai/tool-id.enum.ts"],"names":[],"mappings":";;;AAIA,IAAY,MAMX;AAND,WAAY,MAAM;IACd,gCAAsB,CAAA;IACtB,kCAAwB,CAAA;IACxB,kCAAwB,CAAA;IACxB,yDAA+C,CAAA;IAC/C,kDAAwC,CAAA;AAC5C,CAAC,EANW,MAAM,sBAAN,MAAM,QAMjB"}
|
|
@@ -86,6 +86,13 @@ export declare namespace CreateMessageCommand {
|
|
|
86
86
|
startIndex: z.ZodNumber;
|
|
87
87
|
endIndex: z.ZodNumber;
|
|
88
88
|
}, z.core.$strip>>;
|
|
89
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
90
|
+
id: z.ZodNumber;
|
|
91
|
+
chatId: z.ZodString;
|
|
92
|
+
messageId: z.ZodString;
|
|
93
|
+
type: z.ZodLiteral<import("../schemas").StreamEventType.IFRAME>;
|
|
94
|
+
iframeDataUrl: z.ZodString;
|
|
95
|
+
iframeTitle: z.ZodOptional<z.ZodString>;
|
|
89
96
|
}, z.core.$strip>, z.ZodObject<{
|
|
90
97
|
type: z.ZodLiteral<import("../schemas").StreamEventType.HEARTBEAT>;
|
|
91
98
|
timestamp: z.ZodString;
|
|
@@ -16,7 +16,8 @@ export declare enum GenerationStepType {
|
|
|
16
16
|
IMAGE_EDIT = "image_edit",
|
|
17
17
|
UPLOAD = "upload",
|
|
18
18
|
WEB_SEARCH = "web_search",
|
|
19
|
-
VIDEO_ANALYSIS = "video_analysis"
|
|
19
|
+
VIDEO_ANALYSIS = "video_analysis",
|
|
20
|
+
HTML_VISUALIZATION = "html_visualization"
|
|
20
21
|
}
|
|
21
22
|
export declare const GenerationStepSchema: z.ZodObject<{
|
|
22
23
|
type: z.ZodEnum<typeof GenerationStepType>;
|
|
@@ -22,6 +22,7 @@ var GenerationStepType;
|
|
|
22
22
|
GenerationStepType["UPLOAD"] = "upload";
|
|
23
23
|
GenerationStepType["WEB_SEARCH"] = "web_search";
|
|
24
24
|
GenerationStepType["VIDEO_ANALYSIS"] = "video_analysis";
|
|
25
|
+
GenerationStepType["HTML_VISUALIZATION"] = "html_visualization";
|
|
25
26
|
})(GenerationStepType || (exports.GenerationStepType = GenerationStepType = {}));
|
|
26
27
|
exports.GenerationStepSchema = zod_1.z.object({
|
|
27
28
|
type: zod_1.z.nativeEnum(GenerationStepType),
|
|
@@ -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,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,
|
|
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,kBAqBX;AArBD,WAAY,kBAAkB;IAE1B,6CAAuB,CAAA;IAEvB,6DAAuC,CAAA;IAEvC,uEAAiD,CAAA;IAEjD,yDAAmC,CAAA;IAEnC,2DAAqC,CAAA;IAErC,+CAAyB,CAAA;IAEzB,uCAAiB,CAAA;IAEjB,+CAAyB,CAAA;IAEzB,uDAAiC,CAAA;IAEjC,+DAAyC,CAAA;AAC7C,CAAC,EArBW,kBAAkB,kCAAlB,kBAAkB,QAqB7B;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"}
|
|
@@ -10,7 +10,7 @@ export { MessageAttachmentResponseSchema, MessageAttachmentsResponseSchema, Atta
|
|
|
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, StreamStepErrorEventSchema, 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, StreamIframeEventSchema, } 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.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;
|
|
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.StreamIframeEventSchema = 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");
|
|
@@ -43,6 +43,7 @@ Object.defineProperty(exports, "StreamHeartbeatEventSchema", { enumerable: true,
|
|
|
43
43
|
Object.defineProperty(exports, "StreamDoneEventSchema", { enumerable: true, get: function () { return stream_events_schema_1.StreamDoneEventSchema; } });
|
|
44
44
|
Object.defineProperty(exports, "StreamCancelledEventSchema", { enumerable: true, get: function () { return stream_events_schema_1.StreamCancelledEventSchema; } });
|
|
45
45
|
Object.defineProperty(exports, "StreamErrorEventSchema", { enumerable: true, get: function () { return stream_events_schema_1.StreamErrorEventSchema; } });
|
|
46
|
+
Object.defineProperty(exports, "StreamIframeEventSchema", { enumerable: true, get: function () { return stream_events_schema_1.StreamIframeEventSchema; } });
|
|
46
47
|
var citation_schema_1 = require("./citation.schema");
|
|
47
48
|
Object.defineProperty(exports, "CitationSchema", { enumerable: true, get: function () { return citation_schema_1.CitationSchema; } });
|
|
48
49
|
Object.defineProperty(exports, "CitationStatus", { enumerable: true, get: function () { return citation_schema_1.CitationStatus; } });
|
|
@@ -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,0BAA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AAA;AAC7B,kJAAA,8BAA8B,OAAA;AAMlC,+DAegC;AAd5B,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;AACtB,+HAAA,uBAAuB,OAAA;AAE3B,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"}
|
|
@@ -11,7 +11,8 @@ export declare enum StreamEventType {
|
|
|
11
11
|
HEARTBEAT = "heartbeat",
|
|
12
12
|
DONE = "done",
|
|
13
13
|
CANCELLED = "cancelled",
|
|
14
|
-
ERROR = "error"
|
|
14
|
+
ERROR = "error",
|
|
15
|
+
IFRAME = "iframe"
|
|
15
16
|
}
|
|
16
17
|
export declare const StreamStepStartEventSchema: z.ZodObject<{
|
|
17
18
|
id: z.ZodNumber;
|
|
@@ -104,6 +105,14 @@ export declare const StreamHeartbeatEventSchema: z.ZodObject<{
|
|
|
104
105
|
type: z.ZodLiteral<StreamEventType.HEARTBEAT>;
|
|
105
106
|
timestamp: z.ZodString;
|
|
106
107
|
}, z.core.$strip>;
|
|
108
|
+
export declare const StreamIframeEventSchema: z.ZodObject<{
|
|
109
|
+
id: z.ZodNumber;
|
|
110
|
+
chatId: z.ZodString;
|
|
111
|
+
messageId: z.ZodString;
|
|
112
|
+
type: z.ZodLiteral<StreamEventType.IFRAME>;
|
|
113
|
+
iframeDataUrl: z.ZodString;
|
|
114
|
+
iframeTitle: z.ZodOptional<z.ZodString>;
|
|
115
|
+
}, z.core.$strip>;
|
|
107
116
|
export declare const StreamEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
108
117
|
id: z.ZodNumber;
|
|
109
118
|
chatId: z.ZodString;
|
|
@@ -166,6 +175,13 @@ export declare const StreamEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
166
175
|
startIndex: z.ZodNumber;
|
|
167
176
|
endIndex: z.ZodNumber;
|
|
168
177
|
}, z.core.$strip>>;
|
|
178
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
179
|
+
id: z.ZodNumber;
|
|
180
|
+
chatId: z.ZodString;
|
|
181
|
+
messageId: z.ZodString;
|
|
182
|
+
type: z.ZodLiteral<StreamEventType.IFRAME>;
|
|
183
|
+
iframeDataUrl: z.ZodString;
|
|
184
|
+
iframeTitle: z.ZodOptional<z.ZodString>;
|
|
169
185
|
}, z.core.$strip>, z.ZodObject<{
|
|
170
186
|
type: z.ZodLiteral<StreamEventType.HEARTBEAT>;
|
|
171
187
|
timestamp: z.ZodString;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StreamEventSchema = exports.StreamHeartbeatEventSchema = exports.StreamCitationsEventSchema = exports.StreamImageGenerationErrorEventSchema = exports.StreamImageEventSchema = exports.StreamErrorEventSchema = exports.StreamCancelledEventSchema = exports.StreamDoneEventSchema = exports.StreamStepDoneEventSchema = exports.StreamStepErrorEventSchema = exports.StreamStepChunkEventSchema = exports.StreamStepStartEventSchema = exports.StreamEventType = void 0;
|
|
3
|
+
exports.StreamEventSchema = exports.StreamIframeEventSchema = exports.StreamHeartbeatEventSchema = exports.StreamCitationsEventSchema = exports.StreamImageGenerationErrorEventSchema = exports.StreamImageEventSchema = exports.StreamErrorEventSchema = exports.StreamCancelledEventSchema = exports.StreamDoneEventSchema = exports.StreamStepDoneEventSchema = exports.StreamStepErrorEventSchema = exports.StreamStepChunkEventSchema = exports.StreamStepStartEventSchema = exports.StreamEventType = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const generation_step_schema_1 = require("./generation-step.schema");
|
|
6
6
|
const citation_schema_1 = require("./citation.schema");
|
|
@@ -17,6 +17,7 @@ var StreamEventType;
|
|
|
17
17
|
StreamEventType["DONE"] = "done";
|
|
18
18
|
StreamEventType["CANCELLED"] = "cancelled";
|
|
19
19
|
StreamEventType["ERROR"] = "error";
|
|
20
|
+
StreamEventType["IFRAME"] = "iframe";
|
|
20
21
|
})(StreamEventType || (exports.StreamEventType = StreamEventType = {}));
|
|
21
22
|
const BaseStreamEventSchema = zod_1.z.object({
|
|
22
23
|
id: zod_1.z.number().int().positive(),
|
|
@@ -78,6 +79,11 @@ exports.StreamHeartbeatEventSchema = zod_1.z.object({
|
|
|
78
79
|
type: zod_1.z.literal(StreamEventType.HEARTBEAT),
|
|
79
80
|
timestamp: zod_1.z.string().datetime(),
|
|
80
81
|
});
|
|
82
|
+
exports.StreamIframeEventSchema = BaseStreamEventSchema.extend({
|
|
83
|
+
type: zod_1.z.literal(StreamEventType.IFRAME),
|
|
84
|
+
iframeDataUrl: zod_1.z.string().min(1),
|
|
85
|
+
iframeTitle: zod_1.z.string().optional(),
|
|
86
|
+
});
|
|
81
87
|
exports.StreamEventSchema = zod_1.z.discriminatedUnion('type', [
|
|
82
88
|
exports.StreamStepStartEventSchema,
|
|
83
89
|
exports.StreamStepChunkEventSchema,
|
|
@@ -86,6 +92,7 @@ exports.StreamEventSchema = zod_1.z.discriminatedUnion('type', [
|
|
|
86
92
|
exports.StreamImageEventSchema,
|
|
87
93
|
exports.StreamImageGenerationErrorEventSchema,
|
|
88
94
|
exports.StreamCitationsEventSchema,
|
|
95
|
+
exports.StreamIframeEventSchema,
|
|
89
96
|
exports.StreamHeartbeatEventSchema,
|
|
90
97
|
exports.StreamDoneEventSchema,
|
|
91
98
|
exports.StreamCancelledEventSchema,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stream-events.schema.js","sourceRoot":"","sources":["../../../../v1/message/schemas/stream-events.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,qEAA8D;AAC9D,uDAAmD;AAKnD,IAAY,
|
|
1
|
+
{"version":3,"file":"stream-events.schema.js","sourceRoot":"","sources":["../../../../v1/message/schemas/stream-events.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,qEAA8D;AAC9D,uDAAmD;AAKnD,IAAY,eAyBX;AAzBD,WAAY,eAAe;IAEvB,4CAAyB,CAAA;IAEzB,4CAAyB,CAAA;IAEzB,4CAAyB,CAAA;IAEzB,0CAAuB,CAAA;IAEvB,kCAAe,CAAA;IAEf,oEAAiD,CAAA;IAEjD,0CAAuB,CAAA;IAEvB,0CAAuB,CAAA;IAEvB,gCAAa,CAAA;IAEb,0CAAuB,CAAA;IAEvB,kCAAe,CAAA;IAEf,oCAAiB,CAAA;AACrB,CAAC,EAzBW,eAAe,+BAAf,eAAe,QAyB1B;AAMD,MAAM,qBAAqB,GAAG,OAAC,CAAC,MAAM,CAAC;IAEnC,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IAE/B,MAAM,EAAE,OAAC,CAAC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AAsB;CACzB,CAAC,CAAC"}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
export * from './update-profile.command';
|
|
2
|
-
export * from './change-password.command';
|
|
3
|
-
export * from './delete-account.command';
|
|
4
2
|
export * from './email-change-start.command';
|
|
5
3
|
export * from './email-change-verify.command';
|
|
6
4
|
export * from './email-change-complete.command';
|
|
@@ -15,8 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./update-profile.command"), exports);
|
|
18
|
-
__exportStar(require("./change-password.command"), exports);
|
|
19
|
-
__exportStar(require("./delete-account.command"), exports);
|
|
20
18
|
__exportStar(require("./email-change-start.command"), exports);
|
|
21
19
|
__exportStar(require("./email-change-verify.command"), exports);
|
|
22
20
|
__exportStar(require("./email-change-complete.command"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/users/commands/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AACzC
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/users/commands/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AACzC,+DAA6C;AAC7C,gEAA8C;AAC9C,kEAAgD;AAChD,iEAA+C;AAC/C,kEAAgD;AAChD,oEAAkD;AAClD,kEAAgD;AAChD,mEAAiD;AACjD,qEAAmD;AACnD,2DAAyC;AACzC,kEAAgD;AAChD,oEAAkD;AAClD,wDAAsC;AACtC,+DAA6C;AAC7C,iEAA+C;AAC/C,sEAAoD;AACpD,mEAAiD;AACjD,mEAAiD;AACjD,uEAAqD"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
export * from './user-status.enum';
|
|
2
2
|
export * from './user-response.schema';
|
|
3
3
|
export * from './update-profile-request.schema';
|
|
4
|
-
export * from './change-password-request.schema';
|
|
5
|
-
export * from './delete-account-request.schema';
|
|
6
4
|
export * from './response-unions.schema';
|
|
7
5
|
export * from './email-change-start-request.schema';
|
|
8
6
|
export * from './delete-account-start-request.schema';
|
|
@@ -17,8 +17,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./user-status.enum"), exports);
|
|
18
18
|
__exportStar(require("./user-response.schema"), exports);
|
|
19
19
|
__exportStar(require("./update-profile-request.schema"), exports);
|
|
20
|
-
__exportStar(require("./change-password-request.schema"), exports);
|
|
21
|
-
__exportStar(require("./delete-account-request.schema"), exports);
|
|
22
20
|
__exportStar(require("./response-unions.schema"), exports);
|
|
23
21
|
__exportStar(require("./email-change-start-request.schema"), exports);
|
|
24
22
|
__exportStar(require("./delete-account-start-request.schema"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/users/schemas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,yDAAuC;AACvC,kEAAgD;AAChD,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/users/schemas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,yDAAuC;AACvC,kEAAgD;AAChD,2DAAyC;AACzC,sEAAoD;AACpD,wEAAsD;AACtD,yEAAuD;AACvD,4EAA0D;AAC1D,kEAAgD;AAChD,mEAAiD;AACjD,2EAAyD;AACzD,+DAA6C;AAC7C,gEAA8C;AAC9C,iEAA+C;AAC/C,uEAAqD;AACrD,kEAAgD;AAChD,0EAAwD;AACxD,mEAAiD"}
|
package/package.json
CHANGED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { HttpMethod } from '../../../shared/http-method';
|
|
3
|
-
export declare namespace UserChangePasswordCommand {
|
|
4
|
-
const Request: z.ZodObject<{
|
|
5
|
-
oldPassword: z.ZodString;
|
|
6
|
-
newPassword: z.ZodString;
|
|
7
|
-
logoutFromAllDevices: z.ZodDefault<z.ZodBoolean>;
|
|
8
|
-
}, z.core.$strip>;
|
|
9
|
-
const Response: z.ZodObject<{
|
|
10
|
-
userId: z.ZodString;
|
|
11
|
-
}, z.core.$strip>;
|
|
12
|
-
const URL: "/api/v1/users/me/password";
|
|
13
|
-
const METHOD = HttpMethod.PUT;
|
|
14
|
-
type RequestType = z.infer<typeof Request>;
|
|
15
|
-
type ResponseType = z.infer<typeof Response>;
|
|
16
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UserChangePasswordCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const schemas_1 = require("../schemas");
|
|
6
|
-
const rest_api_1 = require("../../../rest-api");
|
|
7
|
-
const http_method_1 = require("../../../shared/http-method");
|
|
8
|
-
const regex_1 = require("../../../shared/regex");
|
|
9
|
-
var UserChangePasswordCommand;
|
|
10
|
-
(function (UserChangePasswordCommand) {
|
|
11
|
-
UserChangePasswordCommand.Request = schemas_1.ChangePasswordRequestSchema;
|
|
12
|
-
UserChangePasswordCommand.Response = zod_1.z.object({
|
|
13
|
-
userId: zod_1.z.string().regex(regex_1.UUID_REGEX),
|
|
14
|
-
});
|
|
15
|
-
UserChangePasswordCommand.URL = rest_api_1.REST_API.V1.USERS.ME_PASSWORD;
|
|
16
|
-
UserChangePasswordCommand.METHOD = http_method_1.HttpMethod.PUT;
|
|
17
|
-
})(UserChangePasswordCommand || (exports.UserChangePasswordCommand = UserChangePasswordCommand = {}));
|
|
18
|
-
//# sourceMappingURL=change-password.command.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"change-password.command.js","sourceRoot":"","sources":["../../../../v1/users/commands/change-password.command.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,wCAAyD;AACzD,gDAA6C;AAC7C,6DAAyD;AACzD,iDAAmD;AAEnD,IAAiB,yBAAyB,CASzC;AATD,WAAiB,yBAAyB;IACzB,iCAAO,GAAG,qCAA2B,CAAC;IACtC,kCAAQ,GAAG,OAAC,CAAC,MAAM,CAAC;QAC7B,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,kBAAU,CAAC;KACvC,CAAC,CAAC;IACU,6BAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC;IACpC,gCAAM,GAAG,wBAAU,CAAC,GAAG,CAAC;AAGzC,CAAC,EATgB,yBAAyB,yCAAzB,yBAAyB,QASzC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { HttpMethod } from '../../../shared/http-method';
|
|
3
|
-
export declare namespace UserDeleteAccountCommand {
|
|
4
|
-
const Request: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
-
const Response: z.ZodObject<{
|
|
6
|
-
userId: z.ZodString;
|
|
7
|
-
}, z.core.$strip>;
|
|
8
|
-
const URL: "/api/v1/users/me";
|
|
9
|
-
const METHOD = HttpMethod.DELETE;
|
|
10
|
-
type RequestType = z.infer<typeof Request>;
|
|
11
|
-
type ResponseType = z.infer<typeof Response>;
|
|
12
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UserDeleteAccountCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const rest_api_1 = require("../../../rest-api");
|
|
6
|
-
const http_method_1 = require("../../../shared/http-method");
|
|
7
|
-
const regex_1 = require("../../../shared/regex");
|
|
8
|
-
var UserDeleteAccountCommand;
|
|
9
|
-
(function (UserDeleteAccountCommand) {
|
|
10
|
-
UserDeleteAccountCommand.Request = zod_1.z.object({});
|
|
11
|
-
UserDeleteAccountCommand.Response = zod_1.z.object({
|
|
12
|
-
userId: zod_1.z.string().regex(regex_1.UUID_REGEX),
|
|
13
|
-
});
|
|
14
|
-
UserDeleteAccountCommand.URL = rest_api_1.REST_API.V1.USERS.ME;
|
|
15
|
-
UserDeleteAccountCommand.METHOD = http_method_1.HttpMethod.DELETE;
|
|
16
|
-
})(UserDeleteAccountCommand || (exports.UserDeleteAccountCommand = UserDeleteAccountCommand = {}));
|
|
17
|
-
//# sourceMappingURL=delete-account.command.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"delete-account.command.js","sourceRoot":"","sources":["../../../../v1/users/commands/delete-account.command.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,gDAA6C;AAC7C,6DAAyD;AACzD,iDAAmD;AAEnD,IAAiB,wBAAwB,CASxC;AATD,WAAiB,wBAAwB;IAC1B,gCAAO,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACvB,iCAAQ,GAAG,OAAC,CAAC,MAAM,CAAC;QAC/B,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,kBAAU,CAAC;KACrC,CAAC,CAAC;IACU,4BAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;IAC3B,+BAAM,GAAG,wBAAU,CAAC,MAAM,CAAC;AAG1C,CAAC,EATgB,wBAAwB,wCAAxB,wBAAwB,QASxC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ChangePasswordRequestSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const regex_1 = require("../../../shared/regex");
|
|
6
|
-
exports.ChangePasswordRequestSchema = zod_1.z.object({
|
|
7
|
-
oldPassword: zod_1.z
|
|
8
|
-
.string({ error: 'ChangePasswordRequest.oldPassword.required' })
|
|
9
|
-
.min(1, { message: 'ChangePasswordRequest.oldPassword.min' }),
|
|
10
|
-
newPassword: zod_1.z
|
|
11
|
-
.string({ error: 'ChangePasswordRequest.newPassword.required' })
|
|
12
|
-
.min(8, { message: 'ChangePasswordRequest.newPassword.min' })
|
|
13
|
-
.max(128, { message: 'ChangePasswordRequest.newPassword.max' })
|
|
14
|
-
.regex(regex_1.PASSWORD_STRENGTH_REGEX, { message: 'ChangePasswordRequest.newPassword.weak' }),
|
|
15
|
-
logoutFromAllDevices: zod_1.z.boolean({ error: 'ChangePasswordRequest.logoutFromAllDevices.required' }).default(false),
|
|
16
|
-
});
|
|
17
|
-
//# sourceMappingURL=change-password-request.schema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"change-password-request.schema.js","sourceRoot":"","sources":["../../../../v1/users/schemas/change-password-request.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iDAAgE;AAMnD,QAAA,2BAA2B,GAAG,OAAC,CAAC,MAAM,CAAC;IAChD,WAAW,EAAE,OAAC;SACT,MAAM,CAAC,EAAE,KAAK,EAAE,4CAA4C,EAAE,CAAC;SAC/D,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,uCAAuC,EAAE,CAAC;IACjE,WAAW,EAAE,OAAC;SACT,MAAM,CAAC,EAAE,KAAK,EAAE,4CAA4C,EAAE,CAAC;SAC/D,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,uCAAuC,EAAE,CAAC;SAC5D,GAAG,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,uCAAuC,EAAE,CAAC;SAC9D,KAAK,CAAC,+BAAuB,EAAE,EAAE,OAAO,EAAE,wCAAwC,EAAE,CAAC;IAC1F,oBAAoB,EAAE,OAAC,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,qDAAqD,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;CACnH,CAAC,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DeleteAccountRequestSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
exports.DeleteAccountRequestSchema = zod_1.z.object({});
|
|
6
|
-
//# sourceMappingURL=delete-account-request.schema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"delete-account-request.schema.js","sourceRoot":"","sources":["../../../../v1/users/schemas/delete-account-request.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAKX,QAAA,0BAA0B,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC"}
|