@veruna/api-contracts 1.0.53 → 1.0.55

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 (55) hide show
  1. package/build/controllers/index.d.ts +1 -0
  2. package/build/controllers/index.js +3 -1
  3. package/build/controllers/telegram-auth.controllers.d.ts +4 -0
  4. package/build/controllers/telegram-auth.controllers.js +7 -0
  5. package/build/routes/index.d.ts +1 -0
  6. package/build/routes/index.js +3 -1
  7. package/build/routes/telegram-auth.routes.d.ts +9 -0
  8. package/build/routes/telegram-auth.routes.js +12 -0
  9. package/build/shared/common.errors.d.ts +2 -1
  10. package/build/shared/common.errors.js +5 -0
  11. package/build/v1/auth/commands/signin.command.d.ts +1 -0
  12. package/build/v1/auth/commands/signup.command.d.ts +1 -0
  13. package/build/v1/auth/schemas/auth-response.schema.d.ts +1 -0
  14. package/build/v1/index.d.ts +2 -0
  15. package/build/v1/index.js +2 -0
  16. package/build/v1/message/commands/create-message.command.d.ts +9 -2
  17. package/build/v1/message/message.errors.d.ts +3 -1
  18. package/build/v1/message/message.errors.js +10 -0
  19. package/build/v1/message/schemas/stream-events.schema.d.ts +21 -2
  20. package/build/v1/message/schemas/stream-events.schema.js +15 -3
  21. package/build/v1/telegram-auth/commands/index.d.ts +1 -0
  22. package/build/v1/telegram-auth/commands/index.js +2 -0
  23. package/build/v1/telegram-auth/index.d.ts +6 -0
  24. package/build/v1/telegram-auth/index.js +26 -0
  25. package/build/v1/telegram-auth/queries/index.d.ts +1 -0
  26. package/build/v1/telegram-auth/queries/index.js +2 -0
  27. package/build/v1/telegram-auth/schemas/index.d.ts +5 -0
  28. package/build/v1/telegram-auth/schemas/index.js +21 -0
  29. package/build/v1/telegram-auth/schemas/telegram-auth-exchange-request.schema.d.ts +5 -0
  30. package/build/v1/telegram-auth/schemas/telegram-auth-exchange-request.schema.js +9 -0
  31. package/build/v1/telegram-auth/schemas/telegram-auth-exchange-response.schema.d.ts +6 -0
  32. package/build/v1/telegram-auth/schemas/telegram-auth-exchange-response.schema.js +8 -0
  33. package/build/v1/telegram-auth/schemas/telegram-auth-init-response.schema.d.ts +7 -0
  34. package/build/v1/telegram-auth/schemas/telegram-auth-init-response.schema.js +9 -0
  35. package/build/v1/telegram-auth/schemas/telegram-auth-status-response.schema.d.ts +6 -0
  36. package/build/v1/telegram-auth/schemas/telegram-auth-status-response.schema.js +8 -0
  37. package/build/v1/telegram-auth/schemas/telegram-auth-status.enum.d.ts +6 -0
  38. package/build/v1/telegram-auth/schemas/telegram-auth-status.enum.js +10 -0
  39. package/build/v1/telegram-auth/telegram-auth.errors.d.ts +10 -0
  40. package/build/v1/telegram-auth/telegram-auth.errors.js +38 -0
  41. package/build/v1/telegram-profile/index.d.ts +1 -0
  42. package/build/v1/telegram-profile/index.js +17 -0
  43. package/build/v1/telegram-profile/telegram-profile.errors.d.ts +5 -0
  44. package/build/v1/telegram-profile/telegram-profile.errors.js +13 -0
  45. package/build/v1/users/commands/toggle-marketing-consent.command.d.ts +1 -0
  46. package/build/v1/users/commands/update-profile.command.d.ts +1 -0
  47. package/build/v1/users/queries/get-current-user.query.d.ts +1 -0
  48. package/build/v1/users/schemas/index.d.ts +1 -0
  49. package/build/v1/users/schemas/index.js +1 -0
  50. package/build/v1/users/schemas/register-type.enum.d.ts +7 -0
  51. package/build/v1/users/schemas/register-type.enum.js +11 -0
  52. package/build/v1/users/schemas/response-unions.schema.d.ts +3 -0
  53. package/build/v1/users/schemas/user-response.schema.d.ts +2 -0
  54. package/build/v1/users/schemas/user-response.schema.js +2 -0
  55. package/package.json +1 -1
@@ -17,3 +17,4 @@ export { SITEMAP_CONTROLLER } from './sitemap.controllers';
17
17
  export { WALLET_CONTROLLER } from './wallet.controllers';
18
18
  export { PAGE_HINTS_ADMIN_CONTROLLER } from './page-hints.controllers';
19
19
  export { S2S_CONTROLLER } from './s2s.controllers';
20
+ export { TELEGRAM_AUTH_CONTROLLER } from './telegram-auth.controllers';
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.S2S_CONTROLLER = exports.PAGE_HINTS_ADMIN_CONTROLLER = exports.WALLET_CONTROLLER = exports.SITEMAP_CONTROLLER = exports.VERIFICATION_CONTROLLER = exports.MESSAGE_REG_CONTROLLER = exports.MESSAGE_UNREG_CONTROLLER = exports.CHAT_HISTORY_CONTROLLER = exports.CHAT_REG_CONTROLLER = exports.CHAT_UNREG_CONTROLLER = exports.CHAT_PROJECT_CONTROLLER = exports.FILE_CONTROLLER = exports.AI_MODEL_UNREG_CONTROLLER = exports.AI_MODEL_PUBLIC_CONTROLLER = exports.AI_MODEL_ADMIN_CONTROLLER = exports.AI_PROVIDER_PUBLIC_CONTROLLER = exports.AI_PROVIDER_ADMIN_CONTROLLER = exports.SEO_PAGES_PUBLIC_CONTROLLER = exports.SEO_PAGES_ADMIN_CONTROLLER = exports.BLOG_PUBLIC_POSTS_CONTROLLER = exports.BLOG_PUBLIC_CATEGORIES_CONTROLLER = exports.BLOG_ADMIN_POSTS_CONTROLLER = exports.BLOG_ADMIN_CATEGORIES_CONTROLLER = exports.UNREG_USERS_CONTROLLER = exports.USERS_CONTROLLER = exports.AUTH_CONTROLLER = void 0;
3
+ exports.TELEGRAM_AUTH_CONTROLLER = exports.S2S_CONTROLLER = exports.PAGE_HINTS_ADMIN_CONTROLLER = exports.WALLET_CONTROLLER = exports.SITEMAP_CONTROLLER = exports.VERIFICATION_CONTROLLER = exports.MESSAGE_REG_CONTROLLER = exports.MESSAGE_UNREG_CONTROLLER = exports.CHAT_HISTORY_CONTROLLER = exports.CHAT_REG_CONTROLLER = exports.CHAT_UNREG_CONTROLLER = exports.CHAT_PROJECT_CONTROLLER = exports.FILE_CONTROLLER = exports.AI_MODEL_UNREG_CONTROLLER = exports.AI_MODEL_PUBLIC_CONTROLLER = exports.AI_MODEL_ADMIN_CONTROLLER = exports.AI_PROVIDER_PUBLIC_CONTROLLER = exports.AI_PROVIDER_ADMIN_CONTROLLER = exports.SEO_PAGES_PUBLIC_CONTROLLER = exports.SEO_PAGES_ADMIN_CONTROLLER = exports.BLOG_PUBLIC_POSTS_CONTROLLER = exports.BLOG_PUBLIC_CATEGORIES_CONTROLLER = exports.BLOG_ADMIN_POSTS_CONTROLLER = exports.BLOG_ADMIN_CATEGORIES_CONTROLLER = exports.UNREG_USERS_CONTROLLER = exports.USERS_CONTROLLER = exports.AUTH_CONTROLLER = void 0;
4
4
  /**
5
5
  * Centralized exports for all controllers
6
6
  */
@@ -46,3 +46,5 @@ var page_hints_controllers_1 = require("./page-hints.controllers");
46
46
  Object.defineProperty(exports, "PAGE_HINTS_ADMIN_CONTROLLER", { enumerable: true, get: function () { return page_hints_controllers_1.PAGE_HINTS_ADMIN_CONTROLLER; } });
47
47
  var s2s_controllers_1 = require("./s2s.controllers");
48
48
  Object.defineProperty(exports, "S2S_CONTROLLER", { enumerable: true, get: function () { return s2s_controllers_1.S2S_CONTROLLER; } });
49
+ var telegram_auth_controllers_1 = require("./telegram-auth.controllers");
50
+ Object.defineProperty(exports, "TELEGRAM_AUTH_CONTROLLER", { enumerable: true, get: function () { return telegram_auth_controllers_1.TELEGRAM_AUTH_CONTROLLER; } });
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Telegram Auth Controller
3
+ */
4
+ export declare const TELEGRAM_AUTH_CONTROLLER: "v1/auth/telegram";
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TELEGRAM_AUTH_CONTROLLER = void 0;
4
+ /**
5
+ * Telegram Auth Controller
6
+ */
7
+ exports.TELEGRAM_AUTH_CONTROLLER = 'v1/auth/telegram';
@@ -23,3 +23,4 @@ export { SITEMAP_ROUTES } from './sitemap.routes';
23
23
  export { WALLET_ROUTES } from './wallet.routes';
24
24
  export { PAGE_HINTS_ROUTES } from './page-hints.routes';
25
25
  export { S2S_ROUTES } from './s2s.routes';
26
+ export { TELEGRAM_AUTH_ROUTES } from './telegram-auth.routes';
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.S2S_ROUTES = exports.PAGE_HINTS_ROUTES = exports.WALLET_ROUTES = exports.SITEMAP_ROUTES = exports.VERIFICATION_ROUTES = exports.MESSAGE_REG_ROUTES = exports.MESSAGE_UNREG_ROUTES = exports.CHAT_HISTORY_ROUTES = exports.CHAT_REG_ROUTES = exports.CHAT_UNREG_ROUTES = exports.CHAT_PROJECT_ROUTES = exports.FILE_ROUTES = exports.AI_MODEL_UNREG_ROUTES = exports.AI_MODEL_PUBLIC_ROUTES = exports.AI_MODEL_ADMIN_ROUTES = exports.AI_PROVIDER_PUBLIC_ROUTES = exports.AI_PROVIDER_ADMIN_ROUTES = exports.SEO_PAGES_PUBLIC_ROUTES = exports.SEO_PAGES_ADMIN_ROUTES = exports.BLOG_PUBLIC_POSTS_ROUTES = exports.BLOG_PUBLIC_CATEGORIES_ROUTES = exports.BLOG_ADMIN_POSTS_ROUTES = exports.BLOG_ADMIN_CATEGORIES_ROUTES = exports.UNREG_USERS_ROUTES = exports.USERS_ROUTES = exports.AUTH_ROUTES = void 0;
3
+ exports.TELEGRAM_AUTH_ROUTES = exports.S2S_ROUTES = exports.PAGE_HINTS_ROUTES = exports.WALLET_ROUTES = exports.SITEMAP_ROUTES = exports.VERIFICATION_ROUTES = exports.MESSAGE_REG_ROUTES = exports.MESSAGE_UNREG_ROUTES = exports.CHAT_HISTORY_ROUTES = exports.CHAT_REG_ROUTES = exports.CHAT_UNREG_ROUTES = exports.CHAT_PROJECT_ROUTES = exports.FILE_ROUTES = exports.AI_MODEL_UNREG_ROUTES = exports.AI_MODEL_PUBLIC_ROUTES = exports.AI_MODEL_ADMIN_ROUTES = exports.AI_PROVIDER_PUBLIC_ROUTES = exports.AI_PROVIDER_ADMIN_ROUTES = exports.SEO_PAGES_PUBLIC_ROUTES = exports.SEO_PAGES_ADMIN_ROUTES = exports.BLOG_PUBLIC_POSTS_ROUTES = exports.BLOG_PUBLIC_CATEGORIES_ROUTES = exports.BLOG_ADMIN_POSTS_ROUTES = exports.BLOG_ADMIN_CATEGORIES_ROUTES = exports.UNREG_USERS_ROUTES = exports.USERS_ROUTES = exports.AUTH_ROUTES = void 0;
4
4
  /**
5
5
  * Centralized exports for all routes
6
6
  */
@@ -52,3 +52,5 @@ var page_hints_routes_1 = require("./page-hints.routes");
52
52
  Object.defineProperty(exports, "PAGE_HINTS_ROUTES", { enumerable: true, get: function () { return page_hints_routes_1.PAGE_HINTS_ROUTES; } });
53
53
  var s2s_routes_1 = require("./s2s.routes");
54
54
  Object.defineProperty(exports, "S2S_ROUTES", { enumerable: true, get: function () { return s2s_routes_1.S2S_ROUTES; } });
55
+ var telegram_auth_routes_1 = require("./telegram-auth.routes");
56
+ Object.defineProperty(exports, "TELEGRAM_AUTH_ROUTES", { enumerable: true, get: function () { return telegram_auth_routes_1.TELEGRAM_AUTH_ROUTES; } });
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Telegram Auth Routes
3
+ * For NestJS method decorators (@Get, @Post, etc.)
4
+ */
5
+ export declare const TELEGRAM_AUTH_ROUTES: {
6
+ readonly INIT: "init";
7
+ readonly STATUS: "status/:uuid";
8
+ readonly EXCHANGE: "exchange";
9
+ };
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TELEGRAM_AUTH_ROUTES = void 0;
4
+ /**
5
+ * Telegram Auth Routes
6
+ * For NestJS method decorators (@Get, @Post, etc.)
7
+ */
8
+ exports.TELEGRAM_AUTH_ROUTES = {
9
+ INIT: 'init',
10
+ STATUS: 'status/:uuid',
11
+ EXCHANGE: 'exchange',
12
+ };
@@ -3,6 +3,7 @@ export declare enum CommonErrorCode {
3
3
  INTERNAL_SERVER_ERROR = "INTERNAL_SERVER_ERROR",
4
4
  VALIDATION_ERROR = "VALIDATION_ERROR",
5
5
  DEVICE_NAME_EMPTY = "DEVICE_NAME_EMPTY",
6
- USER_AGENT_EMPTY = "USER_AGENT_EMPTY"
6
+ USER_AGENT_EMPTY = "USER_AGENT_EMPTY",
7
+ RESOURCE_BUSY = "RESOURCE_BUSY"
7
8
  }
8
9
  export declare const COMMON_ERRORS: Record<CommonErrorCode, ErrorMetadata>;
@@ -7,6 +7,7 @@ var CommonErrorCode;
7
7
  CommonErrorCode["VALIDATION_ERROR"] = "VALIDATION_ERROR";
8
8
  CommonErrorCode["DEVICE_NAME_EMPTY"] = "DEVICE_NAME_EMPTY";
9
9
  CommonErrorCode["USER_AGENT_EMPTY"] = "USER_AGENT_EMPTY";
10
+ CommonErrorCode["RESOURCE_BUSY"] = "RESOURCE_BUSY";
10
11
  })(CommonErrorCode || (exports.CommonErrorCode = CommonErrorCode = {}));
11
12
  exports.COMMON_ERRORS = {
12
13
  [CommonErrorCode.INTERNAL_SERVER_ERROR]: {
@@ -25,4 +26,8 @@ exports.COMMON_ERRORS = {
25
26
  code: CommonErrorCode.USER_AGENT_EMPTY,
26
27
  statusCode: 400,
27
28
  },
29
+ [CommonErrorCode.RESOURCE_BUSY]: {
30
+ code: CommonErrorCode.RESOURCE_BUSY,
31
+ statusCode: 409,
32
+ },
28
33
  };
@@ -11,6 +11,7 @@ export declare namespace AuthSignInCommand {
11
11
  email: z.ZodString;
12
12
  name: z.ZodString;
13
13
  role: z.ZodString;
14
+ registerType: z.ZodEnum<typeof import("../..").RegisterType>;
14
15
  marketingConsent: z.ZodBoolean;
15
16
  createdAt: z.ZodString;
16
17
  }, z.core.$strip>;
@@ -13,6 +13,7 @@ export declare namespace AuthSignupCommand {
13
13
  email: z.ZodString;
14
14
  name: z.ZodString;
15
15
  role: z.ZodString;
16
+ registerType: z.ZodEnum<typeof import("../..").RegisterType>;
16
17
  marketingConsent: z.ZodBoolean;
17
18
  createdAt: z.ZodString;
18
19
  }, z.core.$strip>;
@@ -8,6 +8,7 @@ export declare const AuthResponseSchema: z.ZodObject<{
8
8
  email: z.ZodString;
9
9
  name: z.ZodString;
10
10
  role: z.ZodString;
11
+ registerType: z.ZodEnum<typeof import("../..").RegisterType>;
11
12
  marketingConsent: z.ZodBoolean;
12
13
  createdAt: z.ZodString;
13
14
  }, z.core.$strip>;
@@ -19,3 +19,5 @@ export * from './registration-antifraud';
19
19
  export * from './page-hints';
20
20
  export * from './s3';
21
21
  export * from './s2s';
22
+ export * from './telegram-auth';
23
+ export * from './telegram-profile';
package/build/v1/index.js CHANGED
@@ -35,3 +35,5 @@ __exportStar(require("./registration-antifraud"), exports);
35
35
  __exportStar(require("./page-hints"), exports);
36
36
  __exportStar(require("./s3"), exports);
37
37
  __exportStar(require("./s2s"), exports);
38
+ __exportStar(require("./telegram-auth"), exports);
39
+ __exportStar(require("./telegram-profile"), exports);
@@ -90,6 +90,11 @@ export declare namespace CreateMessageCommand {
90
90
  chatId: z.ZodString;
91
91
  messageId: z.ZodString;
92
92
  type: z.ZodLiteral<import("../schemas").StreamEventType.IMAGE_GENERATION_START>;
93
+ }, z.core.$strip>, z.ZodObject<{
94
+ id: z.ZodNumber;
95
+ chatId: z.ZodString;
96
+ messageId: z.ZodString;
97
+ type: z.ZodLiteral<import("../schemas").StreamEventType.IMAGE_GENERATION_ERROR>;
93
98
  }, z.core.$strip>, z.ZodObject<{
94
99
  id: z.ZodNumber;
95
100
  chatId: z.ZodString;
@@ -120,7 +125,8 @@ export declare namespace CreateMessageCommand {
120
125
  chatId: z.ZodString;
121
126
  messageId: z.ZodString;
122
127
  type: z.ZodLiteral<import("../schemas").StreamEventType.ERROR>;
123
- content: z.ZodLiteral<"">;
128
+ errorCode: z.ZodOptional<z.ZodString>;
129
+ errorMessage: z.ZodOptional<z.ZodString>;
124
130
  }, z.core.$strip>], "type">;
125
131
  const ChunkEvent: z.ZodObject<{
126
132
  id: z.ZodNumber;
@@ -141,7 +147,8 @@ export declare namespace CreateMessageCommand {
141
147
  chatId: z.ZodString;
142
148
  messageId: z.ZodString;
143
149
  type: z.ZodLiteral<import("../schemas").StreamEventType.ERROR>;
144
- content: z.ZodLiteral<"">;
150
+ errorCode: z.ZodOptional<z.ZodString>;
151
+ errorMessage: z.ZodOptional<z.ZodString>;
145
152
  }, z.core.$strip>;
146
153
  const URL: (pageId: string, chatId: string) => string;
147
154
  const METHOD = HttpMethod.POST;
@@ -13,6 +13,8 @@ export declare enum MessageErrorCode {
13
13
  AI_MODEL_INACTIVE = "AI_MODEL_INACTIVE",
14
14
  AI_MODEL_NOT_AVAILABLE_FOR_UNREG = "AI_MODEL_NOT_AVAILABLE_FOR_UNREG",
15
15
  CANNOT_RATE_USER_MESSAGE = "CANNOT_RATE_USER_MESSAGE",
16
- COMPACTION_FAILED = "COMPACTION_FAILED"
16
+ COMPACTION_FAILED = "COMPACTION_FAILED",
17
+ IMAGE_CONTENT_FILTERED = "IMAGE_CONTENT_FILTERED",
18
+ IMAGE_GENERATION_FAILED = "IMAGE_GENERATION_FAILED"
17
19
  }
18
20
  export declare const MESSAGE_ERRORS: Record<MessageErrorCode, ErrorMetadata>;
@@ -17,6 +17,8 @@ var MessageErrorCode;
17
17
  MessageErrorCode["AI_MODEL_NOT_AVAILABLE_FOR_UNREG"] = "AI_MODEL_NOT_AVAILABLE_FOR_UNREG";
18
18
  MessageErrorCode["CANNOT_RATE_USER_MESSAGE"] = "CANNOT_RATE_USER_MESSAGE";
19
19
  MessageErrorCode["COMPACTION_FAILED"] = "COMPACTION_FAILED";
20
+ MessageErrorCode["IMAGE_CONTENT_FILTERED"] = "IMAGE_CONTENT_FILTERED";
21
+ MessageErrorCode["IMAGE_GENERATION_FAILED"] = "IMAGE_GENERATION_FAILED";
20
22
  })(MessageErrorCode || (exports.MessageErrorCode = MessageErrorCode = {}));
21
23
  exports.MESSAGE_ERRORS = {
22
24
  [MessageErrorCode.MESSAGE_NOT_FOUND]: {
@@ -75,4 +77,12 @@ exports.MESSAGE_ERRORS = {
75
77
  code: MessageErrorCode.COMPACTION_FAILED,
76
78
  statusCode: 500,
77
79
  },
80
+ [MessageErrorCode.IMAGE_CONTENT_FILTERED]: {
81
+ code: MessageErrorCode.IMAGE_CONTENT_FILTERED,
82
+ statusCode: 400,
83
+ },
84
+ [MessageErrorCode.IMAGE_GENERATION_FAILED]: {
85
+ code: MessageErrorCode.IMAGE_GENERATION_FAILED,
86
+ statusCode: 500,
87
+ },
78
88
  };
@@ -16,6 +16,8 @@ export declare enum StreamEventType {
16
16
  STEP_DONE = "step_done",
17
17
  /** Image generation started */
18
18
  IMAGE_GENERATION_START = "image_generation_start",
19
+ /** Image generation failed (content filter, etc.) */
20
+ IMAGE_GENERATION_ERROR = "image_generation_error",
19
21
  /** Image uploaded to S3 */
20
22
  IMAGE_UPLOADED = "image_uploaded",
21
23
  /** Web search citations/sources */
@@ -73,7 +75,8 @@ export declare const StreamErrorEventSchema: z.ZodObject<{
73
75
  chatId: z.ZodString;
74
76
  messageId: z.ZodString;
75
77
  type: z.ZodLiteral<StreamEventType.ERROR>;
76
- content: z.ZodLiteral<"">;
78
+ errorCode: z.ZodOptional<z.ZodString>;
79
+ errorMessage: z.ZodOptional<z.ZodString>;
77
80
  }, z.core.$strip>;
78
81
  /**
79
82
  * Image event - AI generated image (base64)
@@ -118,6 +121,16 @@ export declare const StreamImageGenerationStartEventSchema: z.ZodObject<{
118
121
  messageId: z.ZodString;
119
122
  type: z.ZodLiteral<StreamEventType.IMAGE_GENERATION_START>;
120
123
  }, z.core.$strip>;
124
+ /**
125
+ * Image generation error event - image generation failed (content filter, etc.)
126
+ * Same format as IMAGE_GENERATION_START but signals failure
127
+ */
128
+ export declare const StreamImageGenerationErrorEventSchema: z.ZodObject<{
129
+ id: z.ZodNumber;
130
+ chatId: z.ZodString;
131
+ messageId: z.ZodString;
132
+ type: z.ZodLiteral<StreamEventType.IMAGE_GENERATION_ERROR>;
133
+ }, z.core.$strip>;
121
134
  /**
122
135
  * Image uploaded event - image has been uploaded to S3
123
136
  */
@@ -198,6 +211,11 @@ export declare const StreamEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
198
211
  chatId: z.ZodString;
199
212
  messageId: z.ZodString;
200
213
  type: z.ZodLiteral<StreamEventType.IMAGE_GENERATION_START>;
214
+ }, z.core.$strip>, z.ZodObject<{
215
+ id: z.ZodNumber;
216
+ chatId: z.ZodString;
217
+ messageId: z.ZodString;
218
+ type: z.ZodLiteral<StreamEventType.IMAGE_GENERATION_ERROR>;
201
219
  }, z.core.$strip>, z.ZodObject<{
202
220
  id: z.ZodNumber;
203
221
  chatId: z.ZodString;
@@ -228,5 +246,6 @@ export declare const StreamEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
228
246
  chatId: z.ZodString;
229
247
  messageId: z.ZodString;
230
248
  type: z.ZodLiteral<StreamEventType.ERROR>;
231
- content: z.ZodLiteral<"">;
249
+ errorCode: z.ZodOptional<z.ZodString>;
250
+ errorMessage: z.ZodOptional<z.ZodString>;
232
251
  }, z.core.$strip>], "type">;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.StreamEventSchema = exports.StreamCitationsEventSchema = exports.StreamImageUploadedEventSchema = exports.StreamImageGenerationStartEventSchema = exports.StreamStepDoneEventSchema = exports.StreamPromptGenerationEventSchema = exports.StreamImageEventSchema = exports.StreamErrorEventSchema = exports.StreamDoneEventSchema = exports.StreamReasoningEventSchema = exports.StreamChunkEventSchema = exports.StreamEventType = void 0;
3
+ exports.StreamEventSchema = exports.StreamCitationsEventSchema = exports.StreamImageUploadedEventSchema = exports.StreamImageGenerationErrorEventSchema = exports.StreamImageGenerationStartEventSchema = exports.StreamStepDoneEventSchema = exports.StreamPromptGenerationEventSchema = exports.StreamImageEventSchema = exports.StreamErrorEventSchema = exports.StreamDoneEventSchema = exports.StreamReasoningEventSchema = exports.StreamChunkEventSchema = exports.StreamEventType = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const message_meta_schema_1 = require("./message-meta.schema");
6
6
  const generation_step_schema_1 = require("./generation-step.schema");
@@ -22,6 +22,8 @@ var StreamEventType;
22
22
  StreamEventType["STEP_DONE"] = "step_done";
23
23
  /** Image generation started */
24
24
  StreamEventType["IMAGE_GENERATION_START"] = "image_generation_start";
25
+ /** Image generation failed (content filter, etc.) */
26
+ StreamEventType["IMAGE_GENERATION_ERROR"] = "image_generation_error";
25
27
  /** Image uploaded to S3 */
26
28
  StreamEventType["IMAGE_UPLOADED"] = "image_uploaded";
27
29
  /** Web search citations/sources */
@@ -78,8 +80,10 @@ exports.StreamDoneEventSchema = BaseStreamEventSchema.extend({
78
80
  */
79
81
  exports.StreamErrorEventSchema = BaseStreamEventSchema.extend({
80
82
  type: zod_1.z.literal(StreamEventType.ERROR),
81
- /** Always empty for error event */
82
- content: zod_1.z.literal(''),
83
+ /** Error code for frontend handling */
84
+ errorCode: zod_1.z.string().optional(),
85
+ /** Human-readable error message */
86
+ errorMessage: zod_1.z.string().optional(),
83
87
  });
84
88
  /**
85
89
  * Image event - AI generated image (base64)
@@ -119,6 +123,13 @@ exports.StreamStepDoneEventSchema = BaseStreamEventSchema.extend({
119
123
  exports.StreamImageGenerationStartEventSchema = BaseStreamEventSchema.extend({
120
124
  type: zod_1.z.literal(StreamEventType.IMAGE_GENERATION_START),
121
125
  });
126
+ /**
127
+ * Image generation error event - image generation failed (content filter, etc.)
128
+ * Same format as IMAGE_GENERATION_START but signals failure
129
+ */
130
+ exports.StreamImageGenerationErrorEventSchema = BaseStreamEventSchema.extend({
131
+ type: zod_1.z.literal(StreamEventType.IMAGE_GENERATION_ERROR),
132
+ });
122
133
  /**
123
134
  * Image uploaded event - image has been uploaded to S3
124
135
  */
@@ -151,6 +162,7 @@ exports.StreamEventSchema = zod_1.z.discriminatedUnion('type', [
151
162
  exports.StreamPromptGenerationEventSchema,
152
163
  exports.StreamStepDoneEventSchema,
153
164
  exports.StreamImageGenerationStartEventSchema,
165
+ exports.StreamImageGenerationErrorEventSchema,
154
166
  exports.StreamImageUploadedEventSchema,
155
167
  exports.StreamCitationsEventSchema,
156
168
  exports.StreamDoneEventSchema,
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ export * from './schemas';
2
+ export * from './telegram-auth.errors';
3
+ export * from './commands';
4
+ export * from './queries';
5
+ export { TELEGRAM_AUTH_CONTROLLER } from '../../controllers';
6
+ export { TELEGRAM_AUTH_ROUTES } from '../../routes';
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.TELEGRAM_AUTH_ROUTES = exports.TELEGRAM_AUTH_CONTROLLER = void 0;
18
+ __exportStar(require("./schemas"), exports);
19
+ __exportStar(require("./telegram-auth.errors"), exports);
20
+ __exportStar(require("./commands"), exports);
21
+ __exportStar(require("./queries"), exports);
22
+ // Re-export from centralized locations
23
+ var controllers_1 = require("../../controllers");
24
+ Object.defineProperty(exports, "TELEGRAM_AUTH_CONTROLLER", { enumerable: true, get: function () { return controllers_1.TELEGRAM_AUTH_CONTROLLER; } });
25
+ var routes_1 = require("../../routes");
26
+ Object.defineProperty(exports, "TELEGRAM_AUTH_ROUTES", { enumerable: true, get: function () { return routes_1.TELEGRAM_AUTH_ROUTES; } });
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ export * from './telegram-auth-status.enum';
2
+ export * from './telegram-auth-init-response.schema';
3
+ export * from './telegram-auth-status-response.schema';
4
+ export * from './telegram-auth-exchange-request.schema';
5
+ export * from './telegram-auth-exchange-response.schema';
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./telegram-auth-status.enum"), exports);
18
+ __exportStar(require("./telegram-auth-init-response.schema"), exports);
19
+ __exportStar(require("./telegram-auth-status-response.schema"), exports);
20
+ __exportStar(require("./telegram-auth-exchange-request.schema"), exports);
21
+ __exportStar(require("./telegram-auth-exchange-response.schema"), exports);
@@ -0,0 +1,5 @@
1
+ import { z } from 'zod';
2
+ export declare const TelegramAuthExchangeRequestSchema: z.ZodObject<{
3
+ uuid: z.ZodString;
4
+ }, z.core.$strip>;
5
+ export type TelegramAuthExchangeRequestDto = z.infer<typeof TelegramAuthExchangeRequestSchema>;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TelegramAuthExchangeRequestSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.TelegramAuthExchangeRequestSchema = zod_1.z.object({
6
+ uuid: zod_1.z
7
+ .string({ error: 'TelegramAuthExchangeRequest.uuid.required' })
8
+ .uuid({ message: 'TelegramAuthExchangeRequest.uuid.invalid' }),
9
+ });
@@ -0,0 +1,6 @@
1
+ import { z } from 'zod';
2
+ export declare const TelegramAuthExchangeResponseSchema: z.ZodObject<{
3
+ accessToken: z.ZodString;
4
+ userId: z.ZodString;
5
+ }, z.core.$strip>;
6
+ export type TelegramAuthExchangeResponseDto = z.infer<typeof TelegramAuthExchangeResponseSchema>;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TelegramAuthExchangeResponseSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.TelegramAuthExchangeResponseSchema = zod_1.z.object({
6
+ accessToken: zod_1.z.string(),
7
+ userId: zod_1.z.string().uuid(),
8
+ });
@@ -0,0 +1,7 @@
1
+ import { z } from 'zod';
2
+ export declare const TelegramAuthInitResponseSchema: z.ZodObject<{
3
+ uuid: z.ZodString;
4
+ link: z.ZodString;
5
+ expiresAt: z.ZodString;
6
+ }, z.core.$strip>;
7
+ export type TelegramAuthInitResponseDto = z.infer<typeof TelegramAuthInitResponseSchema>;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TelegramAuthInitResponseSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.TelegramAuthInitResponseSchema = zod_1.z.object({
6
+ uuid: zod_1.z.string().uuid(),
7
+ link: zod_1.z.string().url(),
8
+ expiresAt: zod_1.z.string().datetime(),
9
+ });
@@ -0,0 +1,6 @@
1
+ import { z } from 'zod';
2
+ import { TelegramAuthStatus } from './telegram-auth-status.enum';
3
+ export declare const TelegramAuthStatusResponseSchema: z.ZodObject<{
4
+ status: z.ZodEnum<typeof TelegramAuthStatus>;
5
+ }, z.core.$strip>;
6
+ export type TelegramAuthStatusResponseDto = z.infer<typeof TelegramAuthStatusResponseSchema>;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TelegramAuthStatusResponseSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const telegram_auth_status_enum_1 = require("./telegram-auth-status.enum");
6
+ exports.TelegramAuthStatusResponseSchema = zod_1.z.object({
7
+ status: zod_1.z.nativeEnum(telegram_auth_status_enum_1.TelegramAuthStatus),
8
+ });
@@ -0,0 +1,6 @@
1
+ export declare enum TelegramAuthStatus {
2
+ PENDING = "pending",
3
+ CONFIRMED = "confirmed",
4
+ EXCHANGED = "exchanged",
5
+ EXPIRED = "expired"
6
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TelegramAuthStatus = void 0;
4
+ var TelegramAuthStatus;
5
+ (function (TelegramAuthStatus) {
6
+ TelegramAuthStatus["PENDING"] = "pending";
7
+ TelegramAuthStatus["CONFIRMED"] = "confirmed";
8
+ TelegramAuthStatus["EXCHANGED"] = "exchanged";
9
+ TelegramAuthStatus["EXPIRED"] = "expired";
10
+ })(TelegramAuthStatus || (exports.TelegramAuthStatus = TelegramAuthStatus = {}));
@@ -0,0 +1,10 @@
1
+ import { ErrorMetadata } from '../../shared';
2
+ export declare enum TelegramAuthErrorCode {
3
+ AUTH_REQUEST_NOT_FOUND = "TELEGRAM_AUTH_REQUEST_NOT_FOUND",
4
+ AUTH_REQUEST_EXPIRED = "TELEGRAM_AUTH_REQUEST_EXPIRED",
5
+ AUTH_REQUEST_ALREADY_CONFIRMED = "TELEGRAM_AUTH_ALREADY_CONFIRMED",
6
+ AUTH_REQUEST_ALREADY_EXCHANGED = "TELEGRAM_AUTH_ALREADY_EXCHANGED",
7
+ AUTH_REQUEST_NOT_CONFIRMED = "TELEGRAM_AUTH_NOT_CONFIRMED",
8
+ INVALID_AUTH_CODE = "TELEGRAM_INVALID_AUTH_CODE"
9
+ }
10
+ export declare const TELEGRAM_AUTH_ERRORS: Record<TelegramAuthErrorCode, ErrorMetadata>;
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TELEGRAM_AUTH_ERRORS = exports.TelegramAuthErrorCode = void 0;
4
+ var TelegramAuthErrorCode;
5
+ (function (TelegramAuthErrorCode) {
6
+ TelegramAuthErrorCode["AUTH_REQUEST_NOT_FOUND"] = "TELEGRAM_AUTH_REQUEST_NOT_FOUND";
7
+ TelegramAuthErrorCode["AUTH_REQUEST_EXPIRED"] = "TELEGRAM_AUTH_REQUEST_EXPIRED";
8
+ TelegramAuthErrorCode["AUTH_REQUEST_ALREADY_CONFIRMED"] = "TELEGRAM_AUTH_ALREADY_CONFIRMED";
9
+ TelegramAuthErrorCode["AUTH_REQUEST_ALREADY_EXCHANGED"] = "TELEGRAM_AUTH_ALREADY_EXCHANGED";
10
+ TelegramAuthErrorCode["AUTH_REQUEST_NOT_CONFIRMED"] = "TELEGRAM_AUTH_NOT_CONFIRMED";
11
+ TelegramAuthErrorCode["INVALID_AUTH_CODE"] = "TELEGRAM_INVALID_AUTH_CODE";
12
+ })(TelegramAuthErrorCode || (exports.TelegramAuthErrorCode = TelegramAuthErrorCode = {}));
13
+ exports.TELEGRAM_AUTH_ERRORS = {
14
+ [TelegramAuthErrorCode.AUTH_REQUEST_NOT_FOUND]: {
15
+ code: TelegramAuthErrorCode.AUTH_REQUEST_NOT_FOUND,
16
+ statusCode: 404,
17
+ },
18
+ [TelegramAuthErrorCode.AUTH_REQUEST_EXPIRED]: {
19
+ code: TelegramAuthErrorCode.AUTH_REQUEST_EXPIRED,
20
+ statusCode: 410,
21
+ },
22
+ [TelegramAuthErrorCode.AUTH_REQUEST_ALREADY_CONFIRMED]: {
23
+ code: TelegramAuthErrorCode.AUTH_REQUEST_ALREADY_CONFIRMED,
24
+ statusCode: 409,
25
+ },
26
+ [TelegramAuthErrorCode.AUTH_REQUEST_ALREADY_EXCHANGED]: {
27
+ code: TelegramAuthErrorCode.AUTH_REQUEST_ALREADY_EXCHANGED,
28
+ statusCode: 409,
29
+ },
30
+ [TelegramAuthErrorCode.AUTH_REQUEST_NOT_CONFIRMED]: {
31
+ code: TelegramAuthErrorCode.AUTH_REQUEST_NOT_CONFIRMED,
32
+ statusCode: 400,
33
+ },
34
+ [TelegramAuthErrorCode.INVALID_AUTH_CODE]: {
35
+ code: TelegramAuthErrorCode.INVALID_AUTH_CODE,
36
+ statusCode: 400,
37
+ },
38
+ };
@@ -0,0 +1 @@
1
+ export * from './telegram-profile.errors';
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./telegram-profile.errors"), exports);
@@ -0,0 +1,5 @@
1
+ import { ErrorMetadata } from '../../shared';
2
+ export declare enum TelegramProfileErrorCode {
3
+ PROFILE_NOT_FOUND = "TELEGRAM_PROFILE_NOT_FOUND"
4
+ }
5
+ export declare const TELEGRAM_PROFILE_ERRORS: Record<TelegramProfileErrorCode, ErrorMetadata>;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TELEGRAM_PROFILE_ERRORS = exports.TelegramProfileErrorCode = void 0;
4
+ var TelegramProfileErrorCode;
5
+ (function (TelegramProfileErrorCode) {
6
+ TelegramProfileErrorCode["PROFILE_NOT_FOUND"] = "TELEGRAM_PROFILE_NOT_FOUND";
7
+ })(TelegramProfileErrorCode || (exports.TelegramProfileErrorCode = TelegramProfileErrorCode = {}));
8
+ exports.TELEGRAM_PROFILE_ERRORS = {
9
+ [TelegramProfileErrorCode.PROFILE_NOT_FOUND]: {
10
+ code: TelegramProfileErrorCode.PROFILE_NOT_FOUND,
11
+ statusCode: 404,
12
+ },
13
+ };
@@ -9,6 +9,7 @@ export declare namespace UserToggleMarketingConsentCommand {
9
9
  email: z.ZodString;
10
10
  name: z.ZodString;
11
11
  role: z.ZodString;
12
+ registerType: z.ZodEnum<typeof import("..").RegisterType>;
12
13
  marketingConsent: z.ZodBoolean;
13
14
  createdAt: z.ZodString;
14
15
  }, z.core.$strip>;
@@ -9,6 +9,7 @@ export declare namespace UserUpdateProfileCommand {
9
9
  email: z.ZodString;
10
10
  name: z.ZodString;
11
11
  role: z.ZodString;
12
+ registerType: z.ZodEnum<typeof import("..").RegisterType>;
12
13
  marketingConsent: z.ZodBoolean;
13
14
  createdAt: z.ZodString;
14
15
  }, z.core.$strip>;
@@ -7,6 +7,7 @@ export declare namespace UserGetCurrentUserQuery {
7
7
  email: z.ZodString;
8
8
  name: z.ZodString;
9
9
  role: z.ZodString;
10
+ registerType: z.ZodEnum<typeof import("..").RegisterType>;
10
11
  marketingConsent: z.ZodBoolean;
11
12
  createdAt: z.ZodString;
12
13
  }, z.core.$strip>;
@@ -1,3 +1,4 @@
1
+ export * from './register-type.enum';
1
2
  export * from './user-response.schema';
2
3
  export * from './update-profile-request.schema';
3
4
  export * from './change-password-request.schema';
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./register-type.enum"), exports);
17
18
  __exportStar(require("./user-response.schema"), exports);
18
19
  __exportStar(require("./update-profile-request.schema"), exports);
19
20
  __exportStar(require("./change-password-request.schema"), exports);
@@ -0,0 +1,7 @@
1
+ /**
2
+ * User registration type
3
+ */
4
+ export declare enum RegisterType {
5
+ EMAIL = "email",
6
+ TELEGRAM = "telegram"
7
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RegisterType = void 0;
4
+ /**
5
+ * User registration type
6
+ */
7
+ var RegisterType;
8
+ (function (RegisterType) {
9
+ RegisterType["EMAIL"] = "email";
10
+ RegisterType["TELEGRAM"] = "telegram";
11
+ })(RegisterType || (exports.RegisterType = RegisterType = {}));
@@ -7,6 +7,7 @@ export declare const UpdateProfileResponseSchema: z.ZodObject<{
7
7
  email: z.ZodString;
8
8
  name: z.ZodString;
9
9
  role: z.ZodString;
10
+ registerType: z.ZodEnum<typeof import("./register-type.enum").RegisterType>;
10
11
  marketingConsent: z.ZodBoolean;
11
12
  createdAt: z.ZodString;
12
13
  }, z.core.$strip>;
@@ -18,6 +19,7 @@ export declare const ToggleMarketingConsentResponseSchema: z.ZodObject<{
18
19
  email: z.ZodString;
19
20
  name: z.ZodString;
20
21
  role: z.ZodString;
22
+ registerType: z.ZodEnum<typeof import("./register-type.enum").RegisterType>;
21
23
  marketingConsent: z.ZodBoolean;
22
24
  createdAt: z.ZodString;
23
25
  }, z.core.$strip>;
@@ -29,6 +31,7 @@ export declare const GetCurrentUserResponseSchema: z.ZodObject<{
29
31
  email: z.ZodString;
30
32
  name: z.ZodString;
31
33
  role: z.ZodString;
34
+ registerType: z.ZodEnum<typeof import("./register-type.enum").RegisterType>;
32
35
  marketingConsent: z.ZodBoolean;
33
36
  createdAt: z.ZodString;
34
37
  }, z.core.$strip>;
@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ import { RegisterType } from './register-type.enum';
2
3
  /**
3
4
  * User Response Schema
4
5
  */
@@ -7,6 +8,7 @@ export declare const UserResponseSchema: z.ZodObject<{
7
8
  email: z.ZodString;
8
9
  name: z.ZodString;
9
10
  role: z.ZodString;
11
+ registerType: z.ZodEnum<typeof RegisterType>;
10
12
  marketingConsent: z.ZodBoolean;
11
13
  createdAt: z.ZodString;
12
14
  }, z.core.$strip>;
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UserResponseSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const regex_1 = require("../../../shared/regex");
6
+ const register_type_enum_1 = require("./register-type.enum");
6
7
  /**
7
8
  * User Response Schema
8
9
  */
@@ -11,6 +12,7 @@ exports.UserResponseSchema = zod_1.z.object({
11
12
  email: zod_1.z.string().regex(regex_1.EMAIL_REGEX),
12
13
  name: zod_1.z.string(),
13
14
  role: zod_1.z.string(),
15
+ registerType: zod_1.z.nativeEnum(register_type_enum_1.RegisterType),
14
16
  marketingConsent: zod_1.z.boolean(),
15
17
  createdAt: zod_1.z.string().regex(regex_1.DATETIME_REGEX),
16
18
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veruna/api-contracts",
3
- "version": "1.0.53",
3
+ "version": "1.0.55",
4
4
  "description": "API contracts for Veruna project - Zod schemas, types, and paths",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",