@veruna/api-contracts 1.0.74 → 1.0.76

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/build/locales/validation.d.ts +50 -0
  2. package/build/locales/validation.js +50 -0
  3. package/build/locales/validation.js.map +1 -1
  4. package/build/rest-api.d.ts +4 -0
  5. package/build/rest-api.js +4 -0
  6. package/build/rest-api.js.map +1 -1
  7. package/build/routes/users.routes.d.ts +2 -0
  8. package/build/routes/users.routes.js +2 -0
  9. package/build/routes/users.routes.js.map +1 -1
  10. package/build/shared/regex.d.ts +1 -0
  11. package/build/shared/regex.js +2 -1
  12. package/build/shared/regex.js.map +1 -1
  13. package/build/tsconfig.tsbuildinfo +1 -1
  14. package/build/v1/chat/commands/create-reg-chat.command.d.ts +12 -3
  15. package/build/v1/chat/commands/create-unreg-chat.command.d.ts +12 -3
  16. package/build/v1/chat/commands/update-chat-title.command.d.ts +12 -3
  17. package/build/v1/chat/commands/update-chat.command.d.ts +12 -3
  18. package/build/v1/chat/queries/get-last-active-chat.query.d.ts +12 -3
  19. package/build/v1/chat/queries/get-reg-chat.query.d.ts +12 -3
  20. package/build/v1/chat/queries/get-unreg-chat.query.d.ts +12 -3
  21. package/build/v1/chat/schemas/chat-with-messages-response.schema.d.ts +12 -3
  22. package/build/v1/message/schemas/index.d.ts +2 -2
  23. package/build/v1/message/schemas/index.js +6 -1
  24. package/build/v1/message/schemas/index.js.map +1 -1
  25. package/build/v1/message/schemas/message-response.schema.d.ts +12 -3
  26. package/build/v1/message/schemas/message-step-response.schema.d.ts +61 -8
  27. package/build/v1/message/schemas/message-step-response.schema.js +22 -3
  28. package/build/v1/message/schemas/message-step-response.schema.js.map +1 -1
  29. package/build/v1/users/commands/index.d.ts +2 -0
  30. package/build/v1/users/commands/index.js +2 -0
  31. package/build/v1/users/commands/index.js.map +1 -1
  32. package/build/v1/users/commands/password-reset-confirm.command.d.ts +17 -0
  33. package/build/v1/users/commands/password-reset-confirm.command.js +15 -0
  34. package/build/v1/users/commands/password-reset-confirm.command.js.map +1 -0
  35. package/build/v1/users/commands/password-reset-request.command.d.ts +14 -0
  36. package/build/v1/users/commands/password-reset-request.command.js +15 -0
  37. package/build/v1/users/commands/password-reset-request.command.js.map +1 -0
  38. package/build/v1/users/schemas/index.d.ts +3 -0
  39. package/build/v1/users/schemas/index.js +3 -0
  40. package/build/v1/users/schemas/index.js.map +1 -1
  41. package/build/v1/users/schemas/password-reset-confirm-request.schema.d.ts +7 -0
  42. package/build/v1/users/schemas/password-reset-confirm-request.schema.js +26 -0
  43. package/build/v1/users/schemas/password-reset-confirm-request.schema.js.map +1 -0
  44. package/build/v1/users/schemas/password-reset-request.schema.d.ts +4 -0
  45. package/build/v1/users/schemas/password-reset-request.schema.js +9 -0
  46. package/build/v1/users/schemas/password-reset-request.schema.js.map +1 -0
  47. package/build/v1/users/schemas/password-reset-response.schema.d.ts +7 -0
  48. package/build/v1/users/schemas/password-reset-response.schema.js +12 -0
  49. package/build/v1/users/schemas/password-reset-response.schema.js.map +1 -0
  50. package/build/v1/users/users.errors.d.ts +1 -0
  51. package/build/v1/users/users.errors.js +5 -0
  52. package/build/v1/users/users.errors.js.map +1 -1
  53. package/package.json +1 -1
@@ -23,9 +23,18 @@ export declare namespace CreateRegChatCommand {
23
23
  uuid: z.ZodString;
24
24
  type: z.ZodEnum<typeof import("../..").GenerationStepType>;
25
25
  status: z.ZodEnum<typeof import("../..").MessageStepStatus>;
26
- content: z.ZodNullable<z.ZodObject<{
27
- text: z.ZodOptional<z.ZodString>;
28
- }, z.core.$strip>>;
26
+ content: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
27
+ content: z.ZodString;
28
+ }, z.core.$strip>, z.ZodObject<{
29
+ queries: z.ZodArray<z.ZodString>;
30
+ citations: z.ZodArray<z.ZodObject<{
31
+ url: z.ZodString;
32
+ title: z.ZodString;
33
+ content: z.ZodString;
34
+ }, z.core.$strip>>;
35
+ }, z.core.$strip>, z.ZodNull, z.ZodObject<{
36
+ urls: z.ZodArray<z.ZodString>;
37
+ }, z.core.$strip>]>>;
29
38
  showInUi: z.ZodBoolean;
30
39
  startedAt: z.ZodNullable<z.ZodString>;
31
40
  completedAt: z.ZodNullable<z.ZodString>;
@@ -21,9 +21,18 @@ export declare namespace CreateUnregChatCommand {
21
21
  uuid: z.ZodString;
22
22
  type: z.ZodEnum<typeof import("../..").GenerationStepType>;
23
23
  status: z.ZodEnum<typeof import("../..").MessageStepStatus>;
24
- content: z.ZodNullable<z.ZodObject<{
25
- text: z.ZodOptional<z.ZodString>;
26
- }, z.core.$strip>>;
24
+ content: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
25
+ content: z.ZodString;
26
+ }, z.core.$strip>, z.ZodObject<{
27
+ queries: z.ZodArray<z.ZodString>;
28
+ citations: z.ZodArray<z.ZodObject<{
29
+ url: z.ZodString;
30
+ title: z.ZodString;
31
+ content: z.ZodString;
32
+ }, z.core.$strip>>;
33
+ }, z.core.$strip>, z.ZodNull, z.ZodObject<{
34
+ urls: z.ZodArray<z.ZodString>;
35
+ }, z.core.$strip>]>>;
27
36
  showInUi: z.ZodBoolean;
28
37
  startedAt: z.ZodNullable<z.ZodString>;
29
38
  completedAt: z.ZodNullable<z.ZodString>;
@@ -23,9 +23,18 @@ export declare namespace UpdateChatTitleCommand {
23
23
  uuid: z.ZodString;
24
24
  type: z.ZodEnum<typeof import("../..").GenerationStepType>;
25
25
  status: z.ZodEnum<typeof import("../..").MessageStepStatus>;
26
- content: z.ZodNullable<z.ZodObject<{
27
- text: z.ZodOptional<z.ZodString>;
28
- }, z.core.$strip>>;
26
+ content: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
27
+ content: z.ZodString;
28
+ }, z.core.$strip>, z.ZodObject<{
29
+ queries: z.ZodArray<z.ZodString>;
30
+ citations: z.ZodArray<z.ZodObject<{
31
+ url: z.ZodString;
32
+ title: z.ZodString;
33
+ content: z.ZodString;
34
+ }, z.core.$strip>>;
35
+ }, z.core.$strip>, z.ZodNull, z.ZodObject<{
36
+ urls: z.ZodArray<z.ZodString>;
37
+ }, z.core.$strip>]>>;
29
38
  showInUi: z.ZodBoolean;
30
39
  startedAt: z.ZodNullable<z.ZodString>;
31
40
  completedAt: z.ZodNullable<z.ZodString>;
@@ -24,9 +24,18 @@ export declare namespace UpdateChatCommand {
24
24
  uuid: z.ZodString;
25
25
  type: z.ZodEnum<typeof import("../..").GenerationStepType>;
26
26
  status: z.ZodEnum<typeof import("../..").MessageStepStatus>;
27
- content: z.ZodNullable<z.ZodObject<{
28
- text: z.ZodOptional<z.ZodString>;
29
- }, z.core.$strip>>;
27
+ content: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
28
+ content: z.ZodString;
29
+ }, z.core.$strip>, z.ZodObject<{
30
+ queries: z.ZodArray<z.ZodString>;
31
+ citations: z.ZodArray<z.ZodObject<{
32
+ url: z.ZodString;
33
+ title: z.ZodString;
34
+ content: z.ZodString;
35
+ }, z.core.$strip>>;
36
+ }, z.core.$strip>, z.ZodNull, z.ZodObject<{
37
+ urls: z.ZodArray<z.ZodString>;
38
+ }, z.core.$strip>]>>;
30
39
  showInUi: z.ZodBoolean;
31
40
  startedAt: z.ZodNullable<z.ZodString>;
32
41
  completedAt: z.ZodNullable<z.ZodString>;
@@ -21,9 +21,18 @@ export declare namespace GetLastActiveChatQuery {
21
21
  uuid: z.ZodString;
22
22
  type: z.ZodEnum<typeof import("../..").GenerationStepType>;
23
23
  status: z.ZodEnum<typeof import("../..").MessageStepStatus>;
24
- content: z.ZodNullable<z.ZodObject<{
25
- text: z.ZodOptional<z.ZodString>;
26
- }, z.core.$strip>>;
24
+ content: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
25
+ content: z.ZodString;
26
+ }, z.core.$strip>, z.ZodObject<{
27
+ queries: z.ZodArray<z.ZodString>;
28
+ citations: z.ZodArray<z.ZodObject<{
29
+ url: z.ZodString;
30
+ title: z.ZodString;
31
+ content: z.ZodString;
32
+ }, z.core.$strip>>;
33
+ }, z.core.$strip>, z.ZodNull, z.ZodObject<{
34
+ urls: z.ZodArray<z.ZodString>;
35
+ }, z.core.$strip>]>>;
27
36
  showInUi: z.ZodBoolean;
28
37
  startedAt: z.ZodNullable<z.ZodString>;
29
38
  completedAt: z.ZodNullable<z.ZodString>;
@@ -21,9 +21,18 @@ export declare namespace GetRegChatQuery {
21
21
  uuid: z.ZodString;
22
22
  type: z.ZodEnum<typeof import("../..").GenerationStepType>;
23
23
  status: z.ZodEnum<typeof import("../..").MessageStepStatus>;
24
- content: z.ZodNullable<z.ZodObject<{
25
- text: z.ZodOptional<z.ZodString>;
26
- }, z.core.$strip>>;
24
+ content: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
25
+ content: z.ZodString;
26
+ }, z.core.$strip>, z.ZodObject<{
27
+ queries: z.ZodArray<z.ZodString>;
28
+ citations: z.ZodArray<z.ZodObject<{
29
+ url: z.ZodString;
30
+ title: z.ZodString;
31
+ content: z.ZodString;
32
+ }, z.core.$strip>>;
33
+ }, z.core.$strip>, z.ZodNull, z.ZodObject<{
34
+ urls: z.ZodArray<z.ZodString>;
35
+ }, z.core.$strip>]>>;
27
36
  showInUi: z.ZodBoolean;
28
37
  startedAt: z.ZodNullable<z.ZodString>;
29
38
  completedAt: z.ZodNullable<z.ZodString>;
@@ -21,9 +21,18 @@ export declare namespace GetUnregChatQuery {
21
21
  uuid: z.ZodString;
22
22
  type: z.ZodEnum<typeof import("../..").GenerationStepType>;
23
23
  status: z.ZodEnum<typeof import("../..").MessageStepStatus>;
24
- content: z.ZodNullable<z.ZodObject<{
25
- text: z.ZodOptional<z.ZodString>;
26
- }, z.core.$strip>>;
24
+ content: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
25
+ content: z.ZodString;
26
+ }, z.core.$strip>, z.ZodObject<{
27
+ queries: z.ZodArray<z.ZodString>;
28
+ citations: z.ZodArray<z.ZodObject<{
29
+ url: z.ZodString;
30
+ title: z.ZodString;
31
+ content: z.ZodString;
32
+ }, z.core.$strip>>;
33
+ }, z.core.$strip>, z.ZodNull, z.ZodObject<{
34
+ urls: z.ZodArray<z.ZodString>;
35
+ }, z.core.$strip>]>>;
27
36
  showInUi: z.ZodBoolean;
28
37
  startedAt: z.ZodNullable<z.ZodString>;
29
38
  completedAt: z.ZodNullable<z.ZodString>;
@@ -19,9 +19,18 @@ export declare const ChatWithMessagesResponseSchema: z.ZodObject<{
19
19
  uuid: z.ZodString;
20
20
  type: z.ZodEnum<typeof import("../..").GenerationStepType>;
21
21
  status: z.ZodEnum<typeof import("../..").MessageStepStatus>;
22
- content: z.ZodNullable<z.ZodObject<{
23
- text: z.ZodOptional<z.ZodString>;
24
- }, z.core.$strip>>;
22
+ content: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
23
+ content: z.ZodString;
24
+ }, z.core.$strip>, z.ZodObject<{
25
+ queries: z.ZodArray<z.ZodString>;
26
+ citations: z.ZodArray<z.ZodObject<{
27
+ url: z.ZodString;
28
+ title: z.ZodString;
29
+ content: z.ZodString;
30
+ }, z.core.$strip>>;
31
+ }, z.core.$strip>, z.ZodNull, z.ZodObject<{
32
+ urls: z.ZodArray<z.ZodString>;
33
+ }, z.core.$strip>]>>;
25
34
  showInUi: z.ZodBoolean;
26
35
  startedAt: z.ZodNullable<z.ZodString>;
27
36
  completedAt: z.ZodNullable<z.ZodString>;
@@ -4,8 +4,8 @@ export { UserRating } from './user-rating.enum';
4
4
  export { CreateMessageRequestSchema } from './create-message-request.schema';
5
5
  export { CreateMessageResponseSchema } from './create-message-response.schema';
6
6
  export { MessageResponseSchema } from './message-response.schema';
7
- export { MessageStepResponseSchema, MessageStepsResponseSchema, StepContentResponseSchema, } from './message-step-response.schema';
8
- export type { MessageStepResponse, MessageStepsResponse, } from './message-step-response.schema';
7
+ export { MessageStepResponseSchema, MessageStepsResponseSchema, StepContentResponseSchema, TextStepContentSchema, WebSearchCitationSchema, WebSearchStepContentSchema, ImageGenStepContentSchema, UploadStepContentSchema, } from './message-step-response.schema';
8
+ export type { MessageStepResponse, MessageStepsResponse, StepContentResponse, TextStepContent, WebSearchCitation, WebSearchStepContent, ImageGenStepContent, UploadStepContent, } from './message-step-response.schema';
9
9
  export { MessageAttachmentResponseSchema, MessageAttachmentsResponseSchema, AttachmentMetaResponseSchema, } from './message-attachment-response.schema';
10
10
  export type { MessageAttachmentResponse, MessageAttachmentsResponse, AttachmentMetaResponse, } from './message-attachment-response.schema';
11
11
  export { MessageCitationResponseSchema, MessageCitationsResponseSchema, } from './message-citation-response.schema';
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CancelStreamResponseSchema = exports.DeleteMessageResponseSchema = exports.DeleteMessageParamsSchema = exports.RateMessageParamsSchema = exports.RateMessageResponseSchema = exports.RateMessageRequestSchema = exports.MessageStepStatus = exports.GenerationStepType = exports.GenerationStepSchema = exports.AttachmentsSchema = exports.AttachmentSchema = exports.AttachmentStatus = exports.AttachmentType = exports.AttachmentSource = exports.CitationStatus = exports.CitationSchema = exports.StreamErrorEventSchema = exports.StreamCancelledEventSchema = exports.StreamDoneEventSchema = exports.StreamHeartbeatEventSchema = exports.StreamCitationsEventSchema = exports.StreamImageGenerationErrorEventSchema = exports.StreamImageEventSchema = exports.StreamStepDoneEventSchema = exports.StreamStepChunkEventSchema = exports.StreamStepStartEventSchema = exports.StreamEventSchema = exports.StreamEventType = exports.MessageCitationsResponseSchema = exports.MessageCitationResponseSchema = exports.AttachmentMetaResponseSchema = exports.MessageAttachmentsResponseSchema = exports.MessageAttachmentResponseSchema = exports.StepContentResponseSchema = exports.MessageStepsResponseSchema = exports.MessageStepResponseSchema = exports.MessageResponseSchema = exports.CreateMessageResponseSchema = exports.CreateMessageRequestSchema = exports.UserRating = exports.MessageStatus = exports.MessageRole = void 0;
3
+ exports.CancelStreamResponseSchema = exports.DeleteMessageResponseSchema = exports.DeleteMessageParamsSchema = exports.RateMessageParamsSchema = exports.RateMessageResponseSchema = exports.RateMessageRequestSchema = exports.MessageStepStatus = exports.GenerationStepType = exports.GenerationStepSchema = exports.AttachmentsSchema = exports.AttachmentSchema = exports.AttachmentStatus = exports.AttachmentType = exports.AttachmentSource = exports.CitationStatus = exports.CitationSchema = exports.StreamErrorEventSchema = exports.StreamCancelledEventSchema = exports.StreamDoneEventSchema = exports.StreamHeartbeatEventSchema = exports.StreamCitationsEventSchema = exports.StreamImageGenerationErrorEventSchema = exports.StreamImageEventSchema = exports.StreamStepDoneEventSchema = exports.StreamStepChunkEventSchema = exports.StreamStepStartEventSchema = exports.StreamEventSchema = exports.StreamEventType = exports.MessageCitationsResponseSchema = exports.MessageCitationResponseSchema = exports.AttachmentMetaResponseSchema = exports.MessageAttachmentsResponseSchema = exports.MessageAttachmentResponseSchema = exports.UploadStepContentSchema = exports.ImageGenStepContentSchema = exports.WebSearchStepContentSchema = exports.WebSearchCitationSchema = exports.TextStepContentSchema = exports.StepContentResponseSchema = exports.MessageStepsResponseSchema = exports.MessageStepResponseSchema = exports.MessageResponseSchema = exports.CreateMessageResponseSchema = exports.CreateMessageRequestSchema = exports.UserRating = exports.MessageStatus = exports.MessageRole = void 0;
4
4
  var message_role_enum_1 = require("./message-role.enum");
5
5
  Object.defineProperty(exports, "MessageRole", { enumerable: true, get: function () { return message_role_enum_1.MessageRole; } });
6
6
  var message_status_enum_1 = require("./message-status.enum");
@@ -17,6 +17,11 @@ var message_step_response_schema_1 = require("./message-step-response.schema");
17
17
  Object.defineProperty(exports, "MessageStepResponseSchema", { enumerable: true, get: function () { return message_step_response_schema_1.MessageStepResponseSchema; } });
18
18
  Object.defineProperty(exports, "MessageStepsResponseSchema", { enumerable: true, get: function () { return message_step_response_schema_1.MessageStepsResponseSchema; } });
19
19
  Object.defineProperty(exports, "StepContentResponseSchema", { enumerable: true, get: function () { return message_step_response_schema_1.StepContentResponseSchema; } });
20
+ Object.defineProperty(exports, "TextStepContentSchema", { enumerable: true, get: function () { return message_step_response_schema_1.TextStepContentSchema; } });
21
+ Object.defineProperty(exports, "WebSearchCitationSchema", { enumerable: true, get: function () { return message_step_response_schema_1.WebSearchCitationSchema; } });
22
+ Object.defineProperty(exports, "WebSearchStepContentSchema", { enumerable: true, get: function () { return message_step_response_schema_1.WebSearchStepContentSchema; } });
23
+ Object.defineProperty(exports, "ImageGenStepContentSchema", { enumerable: true, get: function () { return message_step_response_schema_1.ImageGenStepContentSchema; } });
24
+ Object.defineProperty(exports, "UploadStepContentSchema", { enumerable: true, get: function () { return message_step_response_schema_1.UploadStepContentSchema; } });
20
25
  var message_attachment_response_schema_1 = require("./message-attachment-response.schema");
21
26
  Object.defineProperty(exports, "MessageAttachmentResponseSchema", { enumerable: true, get: function () { return message_attachment_response_schema_1.MessageAttachmentResponseSchema; } });
22
27
  Object.defineProperty(exports, "MessageAttachmentsResponseSchema", { enumerable: true, get: function () { return message_attachment_response_schema_1.MessageAttachmentsResponseSchema; } });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/message/schemas/index.ts"],"names":[],"mappings":";;;AAAA,yDAAkD;AAAzC,gHAAA,WAAW,OAAA;AACpB,6DAAsD;AAA7C,oHAAA,aAAa,OAAA;AACtB,uDAAgD;AAAvC,8GAAA,UAAU,OAAA;AACnB,iFAA6E;AAApE,2IAAA,0BAA0B,OAAA;AACnC,mFAA+E;AAAtE,6IAAA,2BAA2B,OAAA;AACpC,qEAAkE;AAAzD,gIAAA,qBAAqB,OAAA;AAC9B,+EAIwC;AAHpC,yIAAA,yBAAyB,OAAA;AACzB,0IAAA,0BAA0B,OAAA;AAC1B,yIAAA,yBAAyB,OAAA;AAM7B,2FAI8C;AAH1C,qJAAA,+BAA+B,OAAA;AAC/B,sJAAA,gCAAgC,OAAA;AAChC,kJAAA,4BAA4B,OAAA;AAOhC,uFAG4C;AAFxC,iJAAA,6BAA6B,OAAA;AAC7B,kJAAA,8BAA8B,OAAA;AAMlC,+DAagC;AAZ5B,uHAAA,eAAe,OAAA;AACf,yHAAA,iBAAiB,OAAA;AACjB,kIAAA,0BAA0B,OAAA;AAC1B,kIAAA,0BAA0B,OAAA;AAC1B,iIAAA,yBAAyB,OAAA;AACzB,8HAAA,sBAAsB,OAAA;AACtB,6IAAA,qCAAqC,OAAA;AACrC,kIAAA,0BAA0B,OAAA;AAC1B,kIAAA,0BAA0B,OAAA;AAC1B,6HAAA,qBAAqB,OAAA;AACrB,kIAAA,0BAA0B,OAAA;AAC1B,8HAAA,sBAAsB,OAAA;AAE1B,qDAAkF;AAAzE,iHAAA,cAAc,OAAA;AAAE,iHAAA,cAAc,OAAA;AACvC,yEAMqC;AALjC,6HAAA,gBAAgB,OAAA;AAChB,2HAAA,cAAc,OAAA;AACd,6HAAA,gBAAgB,OAAA;AAChB,6HAAA,gBAAgB,OAAA;AAChB,8HAAA,iBAAiB,OAAA;AAGrB,mEAIkC;AAH9B,8HAAA,oBAAoB,OAAA;AACpB,4HAAA,kBAAkB,OAAA;AAClB,2HAAA,iBAAiB,OAAA;AAGrB,6DAI+B;AAH3B,+HAAA,wBAAwB,OAAA;AACxB,gIAAA,yBAAyB,OAAA;AACzB,8HAAA,uBAAuB,OAAA;AAO3B,iEAAiG;AAAxF,kIAAA,yBAAyB,OAAA;AAAE,oIAAA,2BAA2B,OAAA;AAE/D,iFAA6E;AAApE,2IAAA,0BAA0B,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/message/schemas/index.ts"],"names":[],"mappings":";;;AAAA,yDAAkD;AAAzC,gHAAA,WAAW,OAAA;AACpB,6DAAsD;AAA7C,oHAAA,aAAa,OAAA;AACtB,uDAAgD;AAAvC,8GAAA,UAAU,OAAA;AACnB,iFAA6E;AAApE,2IAAA,0BAA0B,OAAA;AACnC,mFAA+E;AAAtE,6IAAA,2BAA2B,OAAA;AACpC,qEAAkE;AAAzD,gIAAA,qBAAqB,OAAA;AAC9B,+EASwC;AARpC,yIAAA,yBAAyB,OAAA;AACzB,0IAAA,0BAA0B,OAAA;AAC1B,yIAAA,yBAAyB,OAAA;AACzB,qIAAA,qBAAqB,OAAA;AACrB,uIAAA,uBAAuB,OAAA;AACvB,0IAAA,0BAA0B,OAAA;AAC1B,yIAAA,yBAAyB,OAAA;AACzB,uIAAA,uBAAuB,OAAA;AAY3B,2FAI8C;AAH1C,qJAAA,+BAA+B,OAAA;AAC/B,sJAAA,gCAAgC,OAAA;AAChC,kJAAA,4BAA4B,OAAA;AAOhC,uFAG4C;AAFxC,iJAAA,6BAA6B,OAAA;AAC7B,kJAAA,8BAA8B,OAAA;AAMlC,+DAagC;AAZ5B,uHAAA,eAAe,OAAA;AACf,yHAAA,iBAAiB,OAAA;AACjB,kIAAA,0BAA0B,OAAA;AAC1B,kIAAA,0BAA0B,OAAA;AAC1B,iIAAA,yBAAyB,OAAA;AACzB,8HAAA,sBAAsB,OAAA;AACtB,6IAAA,qCAAqC,OAAA;AACrC,kIAAA,0BAA0B,OAAA;AAC1B,kIAAA,0BAA0B,OAAA;AAC1B,6HAAA,qBAAqB,OAAA;AACrB,kIAAA,0BAA0B,OAAA;AAC1B,8HAAA,sBAAsB,OAAA;AAE1B,qDAAkF;AAAzE,iHAAA,cAAc,OAAA;AAAE,iHAAA,cAAc,OAAA;AACvC,yEAMqC;AALjC,6HAAA,gBAAgB,OAAA;AAChB,2HAAA,cAAc,OAAA;AACd,6HAAA,gBAAgB,OAAA;AAChB,6HAAA,gBAAgB,OAAA;AAChB,8HAAA,iBAAiB,OAAA;AAGrB,mEAIkC;AAH9B,8HAAA,oBAAoB,OAAA;AACpB,4HAAA,kBAAkB,OAAA;AAClB,2HAAA,iBAAiB,OAAA;AAGrB,6DAI+B;AAH3B,+HAAA,wBAAwB,OAAA;AACxB,gIAAA,yBAAyB,OAAA;AACzB,8HAAA,uBAAuB,OAAA;AAO3B,iEAAiG;AAAxF,kIAAA,yBAAyB,OAAA;AAAE,oIAAA,2BAA2B,OAAA;AAE/D,iFAA6E;AAApE,2IAAA,0BAA0B,OAAA"}
@@ -13,9 +13,18 @@ export declare const MessageResponseSchema: z.ZodObject<{
13
13
  uuid: z.ZodString;
14
14
  type: z.ZodEnum<typeof import("./generation-step.schema").GenerationStepType>;
15
15
  status: z.ZodEnum<typeof import("./generation-step.schema").MessageStepStatus>;
16
- content: z.ZodNullable<z.ZodObject<{
17
- text: z.ZodOptional<z.ZodString>;
18
- }, z.core.$strip>>;
16
+ content: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
17
+ content: z.ZodString;
18
+ }, z.core.$strip>, z.ZodObject<{
19
+ queries: z.ZodArray<z.ZodString>;
20
+ citations: z.ZodArray<z.ZodObject<{
21
+ url: z.ZodString;
22
+ title: z.ZodString;
23
+ content: z.ZodString;
24
+ }, z.core.$strip>>;
25
+ }, z.core.$strip>, z.ZodNull, z.ZodObject<{
26
+ urls: z.ZodArray<z.ZodString>;
27
+ }, z.core.$strip>]>>;
19
28
  showInUi: z.ZodBoolean;
20
29
  startedAt: z.ZodNullable<z.ZodString>;
21
30
  completedAt: z.ZodNullable<z.ZodString>;
@@ -1,27 +1,80 @@
1
1
  import { z } from 'zod';
2
2
  import { GenerationStepType, MessageStepStatus } from './generation-step.schema';
3
- export declare const StepContentResponseSchema: z.ZodObject<{
4
- text: z.ZodOptional<z.ZodString>;
3
+ export declare const TextStepContentSchema: z.ZodObject<{
4
+ content: z.ZodString;
5
5
  }, z.core.$strip>;
6
+ export declare const WebSearchCitationSchema: z.ZodObject<{
7
+ url: z.ZodString;
8
+ title: z.ZodString;
9
+ content: z.ZodString;
10
+ }, z.core.$strip>;
11
+ export declare const WebSearchStepContentSchema: z.ZodObject<{
12
+ queries: z.ZodArray<z.ZodString>;
13
+ citations: z.ZodArray<z.ZodObject<{
14
+ url: z.ZodString;
15
+ title: z.ZodString;
16
+ content: z.ZodString;
17
+ }, z.core.$strip>>;
18
+ }, z.core.$strip>;
19
+ export declare const ImageGenStepContentSchema: z.ZodNull;
20
+ export declare const UploadStepContentSchema: z.ZodObject<{
21
+ urls: z.ZodArray<z.ZodString>;
22
+ }, z.core.$strip>;
23
+ export declare const StepContentResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
24
+ content: z.ZodString;
25
+ }, z.core.$strip>, z.ZodObject<{
26
+ queries: z.ZodArray<z.ZodString>;
27
+ citations: z.ZodArray<z.ZodObject<{
28
+ url: z.ZodString;
29
+ title: z.ZodString;
30
+ content: z.ZodString;
31
+ }, z.core.$strip>>;
32
+ }, z.core.$strip>, z.ZodNull, z.ZodObject<{
33
+ urls: z.ZodArray<z.ZodString>;
34
+ }, z.core.$strip>]>;
6
35
  export declare const MessageStepResponseSchema: z.ZodObject<{
7
36
  uuid: z.ZodString;
8
37
  type: z.ZodEnum<typeof GenerationStepType>;
9
38
  status: z.ZodEnum<typeof MessageStepStatus>;
10
- content: z.ZodNullable<z.ZodObject<{
11
- text: z.ZodOptional<z.ZodString>;
12
- }, z.core.$strip>>;
39
+ content: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
40
+ content: z.ZodString;
41
+ }, z.core.$strip>, z.ZodObject<{
42
+ queries: z.ZodArray<z.ZodString>;
43
+ citations: z.ZodArray<z.ZodObject<{
44
+ url: z.ZodString;
45
+ title: z.ZodString;
46
+ content: z.ZodString;
47
+ }, z.core.$strip>>;
48
+ }, z.core.$strip>, z.ZodNull, z.ZodObject<{
49
+ urls: z.ZodArray<z.ZodString>;
50
+ }, z.core.$strip>]>>;
13
51
  showInUi: z.ZodBoolean;
14
52
  startedAt: z.ZodNullable<z.ZodString>;
15
53
  completedAt: z.ZodNullable<z.ZodString>;
16
54
  }, z.core.$strip>;
17
55
  export type MessageStepResponse = z.infer<typeof MessageStepResponseSchema>;
56
+ export type StepContentResponse = z.infer<typeof StepContentResponseSchema>;
57
+ export type TextStepContent = z.infer<typeof TextStepContentSchema>;
58
+ export type WebSearchCitation = z.infer<typeof WebSearchCitationSchema>;
59
+ export type WebSearchStepContent = z.infer<typeof WebSearchStepContentSchema>;
60
+ export type ImageGenStepContent = z.infer<typeof ImageGenStepContentSchema>;
61
+ export type UploadStepContent = z.infer<typeof UploadStepContentSchema>;
18
62
  export declare const MessageStepsResponseSchema: z.ZodArray<z.ZodObject<{
19
63
  uuid: z.ZodString;
20
64
  type: z.ZodEnum<typeof GenerationStepType>;
21
65
  status: z.ZodEnum<typeof MessageStepStatus>;
22
- content: z.ZodNullable<z.ZodObject<{
23
- text: z.ZodOptional<z.ZodString>;
24
- }, z.core.$strip>>;
66
+ content: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
67
+ content: z.ZodString;
68
+ }, z.core.$strip>, z.ZodObject<{
69
+ queries: z.ZodArray<z.ZodString>;
70
+ citations: z.ZodArray<z.ZodObject<{
71
+ url: z.ZodString;
72
+ title: z.ZodString;
73
+ content: z.ZodString;
74
+ }, z.core.$strip>>;
75
+ }, z.core.$strip>, z.ZodNull, z.ZodObject<{
76
+ urls: z.ZodArray<z.ZodString>;
77
+ }, z.core.$strip>]>>;
25
78
  showInUi: z.ZodBoolean;
26
79
  startedAt: z.ZodNullable<z.ZodString>;
27
80
  completedAt: z.ZodNullable<z.ZodString>;
@@ -1,11 +1,30 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MessageStepsResponseSchema = exports.MessageStepResponseSchema = exports.StepContentResponseSchema = void 0;
3
+ exports.MessageStepsResponseSchema = exports.MessageStepResponseSchema = exports.StepContentResponseSchema = exports.UploadStepContentSchema = exports.ImageGenStepContentSchema = exports.WebSearchStepContentSchema = exports.WebSearchCitationSchema = exports.TextStepContentSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const generation_step_schema_1 = require("./generation-step.schema");
6
- exports.StepContentResponseSchema = zod_1.z.object({
7
- text: zod_1.z.string().optional(),
6
+ exports.TextStepContentSchema = zod_1.z.object({
7
+ content: zod_1.z.string(),
8
8
  });
9
+ exports.WebSearchCitationSchema = zod_1.z.object({
10
+ url: zod_1.z.string(),
11
+ title: zod_1.z.string(),
12
+ content: zod_1.z.string(),
13
+ });
14
+ exports.WebSearchStepContentSchema = zod_1.z.object({
15
+ queries: zod_1.z.array(zod_1.z.string()),
16
+ citations: zod_1.z.array(exports.WebSearchCitationSchema),
17
+ });
18
+ exports.ImageGenStepContentSchema = zod_1.z.null();
19
+ exports.UploadStepContentSchema = zod_1.z.object({
20
+ urls: zod_1.z.array(zod_1.z.string()),
21
+ });
22
+ exports.StepContentResponseSchema = zod_1.z.union([
23
+ exports.TextStepContentSchema,
24
+ exports.WebSearchStepContentSchema,
25
+ exports.ImageGenStepContentSchema,
26
+ exports.UploadStepContentSchema,
27
+ ]);
9
28
  exports.MessageStepResponseSchema = zod_1.z.object({
10
29
  uuid: zod_1.z.string().uuid(),
11
30
  type: zod_1.z.nativeEnum(generation_step_schema_1.GenerationStepType),
@@ -1 +1 @@
1
- {"version":3,"file":"message-step-response.schema.js","sourceRoot":"","sources":["../../../../v1/message/schemas/message-step-response.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,qEAAiF;AAOpE,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC9B,CAAC,CAAC;AAMU,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IAE9C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAEvB,IAAI,EAAE,OAAC,CAAC,UAAU,CAAC,2CAAkB,CAAC;IAEtC,MAAM,EAAE,OAAC,CAAC,UAAU,CAAC,0CAAiB,CAAC;IAEvC,OAAO,EAAE,iCAAyB,CAAC,QAAQ,EAAE;IAE7C,QAAQ,EAAE,OAAC,CAAC,OAAO,EAAE;IAErB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAEhC,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACrC,CAAC,CAAC;AAOU,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,qEAAiF;AAKpE,QAAA,qBAAqB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;CACtB,CAAC,CAAC;AAKU,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC5C,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;CACtB,CAAC,CAAC;AAKU,QAAA,0BAA0B,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,OAAO,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;IAC5B,SAAS,EAAE,OAAC,CAAC,KAAK,CAAC,+BAAuB,CAAC;CAC9C,CAAC,CAAC;AAKU,QAAA,yBAAyB,GAAG,OAAC,CAAC,IAAI,EAAE,CAAC;AAKrC,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC5C,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;CAC5B,CAAC,CAAC;AAKU,QAAA,yBAAyB,GAAG,OAAC,CAAC,KAAK,CAAC;IAC7C,6BAAqB;IACrB,kCAA0B;IAC1B,iCAAyB;IACzB,+BAAuB;CAC1B,CAAC,CAAC;AAMU,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IAE9C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAEvB,IAAI,EAAE,OAAC,CAAC,UAAU,CAAC,2CAAkB,CAAC;IAEtC,MAAM,EAAE,OAAC,CAAC,UAAU,CAAC,0CAAiB,CAAC;IAEvC,OAAO,EAAE,iCAAyB,CAAC,QAAQ,EAAE;IAE7C,QAAQ,EAAE,OAAC,CAAC,OAAO,EAAE;IAErB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAEhC,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACrC,CAAC,CAAC;AAaU,QAAA,0BAA0B,GAAG,OAAC,CAAC,KAAK,CAAC,iCAAyB,CAAC,CAAC"}
@@ -14,3 +14,5 @@ export * from './password-change-complete.command';
14
14
  export * from './setup-password.command';
15
15
  export * from './setup-email.command';
16
16
  export * from './resend-email-verification.command';
17
+ export * from './password-reset-request.command';
18
+ export * from './password-reset-confirm.command';
@@ -30,4 +30,6 @@ __exportStar(require("./password-change-complete.command"), exports);
30
30
  __exportStar(require("./setup-password.command"), exports);
31
31
  __exportStar(require("./setup-email.command"), exports);
32
32
  __exportStar(require("./resend-email-verification.command"), exports);
33
+ __exportStar(require("./password-reset-request.command"), exports);
34
+ __exportStar(require("./password-reset-confirm.command"), exports);
33
35
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/users/commands/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AACzC,4DAA0C;AAC1C,qEAAmD;AACnD,2DAAyC;AACzC,+DAA6C;AAC7C,gEAA8C;AAC9C,kEAAgD;AAChD,iEAA+C;AAC/C,kEAAgD;AAChD,oEAAkD;AAClD,kEAAgD;AAChD,mEAAiD;AACjD,qEAAmD;AACnD,2DAAyC;AACzC,wDAAsC;AACtC,sEAAoD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/users/commands/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AACzC,4DAA0C;AAC1C,qEAAmD;AACnD,2DAAyC;AACzC,+DAA6C;AAC7C,gEAA8C;AAC9C,kEAAgD;AAChD,iEAA+C;AAC/C,kEAAgD;AAChD,oEAAkD;AAClD,kEAAgD;AAChD,mEAAiD;AACjD,qEAAmD;AACnD,2DAAyC;AACzC,wDAAsC;AACtC,sEAAoD;AACpD,mEAAiD;AACjD,mEAAiD"}
@@ -0,0 +1,17 @@
1
+ import { z } from 'zod';
2
+ import { HttpMethod } from '../../../shared/http-method';
3
+ export declare namespace UserPasswordResetConfirmCommand {
4
+ const Request: z.ZodObject<{
5
+ requestId: z.ZodString;
6
+ token: z.ZodString;
7
+ newPassword: z.ZodString;
8
+ logoutAllSessions: z.ZodBoolean;
9
+ }, z.core.$strip>;
10
+ const Response: z.ZodObject<{
11
+ userId: z.ZodString;
12
+ }, z.core.$strip>;
13
+ const URL: "/api/v1/users/password-reset/confirm";
14
+ const METHOD = HttpMethod.POST;
15
+ type RequestType = z.infer<typeof Request>;
16
+ type ResponseType = z.infer<typeof Response>;
17
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UserPasswordResetConfirmCommand = void 0;
4
+ const rest_api_1 = require("../../../rest-api");
5
+ const http_method_1 = require("../../../shared/http-method");
6
+ const password_reset_confirm_request_schema_1 = require("../schemas/password-reset-confirm-request.schema");
7
+ const password_reset_response_schema_1 = require("../schemas/password-reset-response.schema");
8
+ var UserPasswordResetConfirmCommand;
9
+ (function (UserPasswordResetConfirmCommand) {
10
+ UserPasswordResetConfirmCommand.Request = password_reset_confirm_request_schema_1.PasswordResetConfirmRequestSchema;
11
+ UserPasswordResetConfirmCommand.Response = password_reset_response_schema_1.PasswordResetConfirmResponseSchema;
12
+ UserPasswordResetConfirmCommand.URL = rest_api_1.REST_API.V1.USERS.PASSWORD_RESET.CONFIRM;
13
+ UserPasswordResetConfirmCommand.METHOD = http_method_1.HttpMethod.POST;
14
+ })(UserPasswordResetConfirmCommand || (exports.UserPasswordResetConfirmCommand = UserPasswordResetConfirmCommand = {}));
15
+ //# sourceMappingURL=password-reset-confirm.command.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"password-reset-confirm.command.js","sourceRoot":"","sources":["../../../../v1/users/commands/password-reset-confirm.command.ts"],"names":[],"mappings":";;;AACA,gDAA6C;AAC7C,6DAAyD;AACzD,4GAAqG;AACrG,8FAA+F;AAE/F,IAAiB,+BAA+B,CAO/C;AAPD,WAAiB,+BAA+B;IAC/B,uCAAO,GAAG,yEAAiC,CAAC;IAC5C,wCAAQ,GAAG,mEAAkC,CAAC;IAC9C,mCAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC;IAC/C,sCAAM,GAAG,wBAAU,CAAC,IAAI,CAAC;AAG1C,CAAC,EAPgB,+BAA+B,+CAA/B,+BAA+B,QAO/C"}
@@ -0,0 +1,14 @@
1
+ import { z } from 'zod';
2
+ import { HttpMethod } from '../../../shared/http-method';
3
+ export declare namespace UserPasswordResetRequestCommand {
4
+ const Request: z.ZodObject<{
5
+ email: z.ZodString;
6
+ }, z.core.$strip>;
7
+ const Response: z.ZodObject<{
8
+ accepted: z.ZodLiteral<true>;
9
+ }, z.core.$strip>;
10
+ const URL: "/api/v1/users/password-reset/request";
11
+ const METHOD = HttpMethod.POST;
12
+ type RequestType = z.infer<typeof Request>;
13
+ type ResponseType = z.infer<typeof Response>;
14
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UserPasswordResetRequestCommand = void 0;
4
+ const rest_api_1 = require("../../../rest-api");
5
+ const http_method_1 = require("../../../shared/http-method");
6
+ const password_reset_request_schema_1 = require("../schemas/password-reset-request.schema");
7
+ const password_reset_response_schema_1 = require("../schemas/password-reset-response.schema");
8
+ var UserPasswordResetRequestCommand;
9
+ (function (UserPasswordResetRequestCommand) {
10
+ UserPasswordResetRequestCommand.Request = password_reset_request_schema_1.PasswordResetRequestSchema;
11
+ UserPasswordResetRequestCommand.Response = password_reset_response_schema_1.PasswordResetRequestResponseSchema;
12
+ UserPasswordResetRequestCommand.URL = rest_api_1.REST_API.V1.USERS.PASSWORD_RESET.REQUEST;
13
+ UserPasswordResetRequestCommand.METHOD = http_method_1.HttpMethod.POST;
14
+ })(UserPasswordResetRequestCommand || (exports.UserPasswordResetRequestCommand = UserPasswordResetRequestCommand = {}));
15
+ //# sourceMappingURL=password-reset-request.command.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"password-reset-request.command.js","sourceRoot":"","sources":["../../../../v1/users/commands/password-reset-request.command.ts"],"names":[],"mappings":";;;AACA,gDAA6C;AAC7C,6DAAyD;AACzD,4FAAsF;AACtF,8FAA+F;AAE/F,IAAiB,+BAA+B,CAO/C;AAPD,WAAiB,+BAA+B;IAC/B,uCAAO,GAAG,0DAA0B,CAAC;IACrC,wCAAQ,GAAG,mEAAkC,CAAC;IAC9C,mCAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC;IAC/C,sCAAM,GAAG,wBAAU,CAAC,IAAI,CAAC;AAG1C,CAAC,EAPgB,+BAA+B,+CAA/B,+BAA+B,QAO/C"}
@@ -16,3 +16,6 @@ export * from './setup-email-request.schema';
16
16
  export * from './setup-email-response.schema';
17
17
  export * from './setup-status-response.schema';
18
18
  export * from './email-verification-response.schema';
19
+ export * from './password-reset-request.schema';
20
+ export * from './password-reset-confirm-request.schema';
21
+ export * from './password-reset-response.schema';
@@ -32,4 +32,7 @@ __exportStar(require("./setup-email-request.schema"), exports);
32
32
  __exportStar(require("./setup-email-response.schema"), exports);
33
33
  __exportStar(require("./setup-status-response.schema"), exports);
34
34
  __exportStar(require("./email-verification-response.schema"), exports);
35
+ __exportStar(require("./password-reset-request.schema"), exports);
36
+ __exportStar(require("./password-reset-confirm-request.schema"), exports);
37
+ __exportStar(require("./password-reset-response.schema"), exports);
35
38
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/users/schemas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,qDAAmC;AACnC,yDAAuC;AACvC,kEAAgD;AAChD,mEAAiD;AACjD,4EAA0D;AAC1D,kEAAgD;AAChD,2DAAyC;AACzC,sEAAoD;AACpD,wEAAsD;AACtD,yEAAuD;AACvD,4EAA0D;AAC1D,kEAAgD;AAChD,mEAAiD;AACjD,+DAA6C;AAC7C,gEAA8C;AAC9C,iEAA+C;AAC/C,uEAAqD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/users/schemas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,qDAAmC;AACnC,yDAAuC;AACvC,kEAAgD;AAChD,mEAAiD;AACjD,4EAA0D;AAC1D,kEAAgD;AAChD,2DAAyC;AACzC,sEAAoD;AACpD,wEAAsD;AACtD,yEAAuD;AACvD,4EAA0D;AAC1D,kEAAgD;AAChD,mEAAiD;AACjD,+DAA6C;AAC7C,gEAA8C;AAC9C,iEAA+C;AAC/C,uEAAqD;AACrD,kEAAgD;AAChD,0EAAwD;AACxD,mEAAiD"}
@@ -0,0 +1,7 @@
1
+ import { z } from 'zod';
2
+ export declare const PasswordResetConfirmRequestSchema: z.ZodObject<{
3
+ requestId: z.ZodString;
4
+ token: z.ZodString;
5
+ newPassword: z.ZodString;
6
+ logoutAllSessions: z.ZodBoolean;
7
+ }, z.core.$strip>;
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PasswordResetConfirmRequestSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const regex_1 = require("../../../shared/regex");
6
+ exports.PasswordResetConfirmRequestSchema = zod_1.z.object({
7
+ requestId: zod_1.z
8
+ .string({ error: 'PasswordResetConfirmRequest.requestId.required' })
9
+ .uuid({ message: 'PasswordResetConfirmRequest.requestId.invalid' }),
10
+ token: zod_1.z
11
+ .string({ error: 'PasswordResetConfirmRequest.token.required' })
12
+ .regex(regex_1.PASSWORD_RESET_TOKEN_REGEX, {
13
+ message: 'PasswordResetConfirmRequest.token.invalid',
14
+ }),
15
+ newPassword: zod_1.z
16
+ .string({ error: 'PasswordResetConfirmRequest.newPassword.required' })
17
+ .min(8, { message: 'PasswordResetConfirmRequest.newPassword.min' })
18
+ .max(128, { message: 'PasswordResetConfirmRequest.newPassword.max' })
19
+ .regex(regex_1.PASSWORD_STRENGTH_REGEX, {
20
+ message: 'PasswordResetConfirmRequest.newPassword.weak',
21
+ }),
22
+ logoutAllSessions: zod_1.z.boolean({
23
+ error: 'PasswordResetConfirmRequest.logoutAllSessions.required',
24
+ }),
25
+ });
26
+ //# sourceMappingURL=password-reset-confirm-request.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"password-reset-confirm-request.schema.js","sourceRoot":"","sources":["../../../../v1/users/schemas/password-reset-confirm-request.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iDAA4F;AAM/E,QAAA,iCAAiC,GAAG,OAAC,CAAC,MAAM,CAAC;IACtD,SAAS,EAAE,OAAC;SACP,MAAM,CAAC,EAAE,KAAK,EAAE,gDAAgD,EAAE,CAAC;SACnE,IAAI,CAAC,EAAE,OAAO,EAAE,+CAA+C,EAAE,CAAC;IACvE,KAAK,EAAE,OAAC;SACH,MAAM,CAAC,EAAE,KAAK,EAAE,4CAA4C,EAAE,CAAC;SAC/D,KAAK,CAAC,kCAA0B,EAAE;QAC/B,OAAO,EAAE,2CAA2C;KACvD,CAAC;IACN,WAAW,EAAE,OAAC;SACT,MAAM,CAAC,EAAE,KAAK,EAAE,kDAAkD,EAAE,CAAC;SACrE,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,6CAA6C,EAAE,CAAC;SAClE,GAAG,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,6CAA6C,EAAE,CAAC;SACpE,KAAK,CAAC,+BAAuB,EAAE;QAC5B,OAAO,EAAE,8CAA8C;KAC1D,CAAC;IACN,iBAAiB,EAAE,OAAC,CAAC,OAAO,CAAC;QACzB,KAAK,EAAE,wDAAwD;KAClE,CAAC;CACL,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { z } from 'zod';
2
+ export declare const PasswordResetRequestSchema: z.ZodObject<{
3
+ email: z.ZodString;
4
+ }, z.core.$strip>;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PasswordResetRequestSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const common_schemas_1 = require("../../../shared/common-schemas");
6
+ exports.PasswordResetRequestSchema = zod_1.z.object({
7
+ email: (0, common_schemas_1.normalizedEmailSchema)('PasswordResetRequest.email.required', 'PasswordResetRequest.email.invalid'),
8
+ });
9
+ //# sourceMappingURL=password-reset-request.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"password-reset-request.schema.js","sourceRoot":"","sources":["../../../../v1/users/schemas/password-reset-request.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,mEAAuE;AAM1D,QAAA,0BAA0B,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,KAAK,EAAE,IAAA,sCAAqB,EACxB,qCAAqC,EACrC,oCAAoC,CACvC;CACJ,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { z } from 'zod';
2
+ export declare const PasswordResetRequestResponseSchema: z.ZodObject<{
3
+ accepted: z.ZodLiteral<true>;
4
+ }, z.core.$strip>;
5
+ export declare const PasswordResetConfirmResponseSchema: z.ZodObject<{
6
+ userId: z.ZodString;
7
+ }, z.core.$strip>;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PasswordResetConfirmResponseSchema = exports.PasswordResetRequestResponseSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const regex_1 = require("../../../shared/regex");
6
+ exports.PasswordResetRequestResponseSchema = zod_1.z.object({
7
+ accepted: zod_1.z.literal(true),
8
+ });
9
+ exports.PasswordResetConfirmResponseSchema = zod_1.z.object({
10
+ userId: zod_1.z.string().regex(regex_1.UUID_REGEX),
11
+ });
12
+ //# sourceMappingURL=password-reset-response.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"password-reset-response.schema.js","sourceRoot":"","sources":["../../../../v1/users/schemas/password-reset-response.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iDAAmD;AAKtC,QAAA,kCAAkC,GAAG,OAAC,CAAC,MAAM,CAAC;IACvD,QAAQ,EAAE,OAAC,CAAC,OAAO,CAAC,IAAI,CAAC;CAC5B,CAAC,CAAC;AAKU,QAAA,kCAAkC,GAAG,OAAC,CAAC,MAAM,CAAC;IACvD,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,kBAAU,CAAC;CACvC,CAAC,CAAC"}
@@ -16,6 +16,7 @@ export declare enum UserErrorCode {
16
16
  EMAIL_ALREADY_SET = "EMAIL_ALREADY_SET",
17
17
  EMAIL_NOT_SET = "EMAIL_NOT_SET",
18
18
  EMAIL_VERIFICATION_TOKEN_INVALID = "EMAIL_VERIFICATION_TOKEN_INVALID",
19
+ PASSWORD_RESET_TOKEN_INVALID = "PASSWORD_RESET_TOKEN_INVALID",
19
20
  EMAIL_VERIFICATION_REQUIRED = "EMAIL_VERIFICATION_REQUIRED",
20
21
  INVALID_USER_DATA = "INVALID_USER_DATA",
21
22
  USER_CREATION_FAILED = "USER_CREATION_FAILED",