@veruna/api-contracts 1.0.41 → 1.0.45

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 (106) hide show
  1. package/build/controllers/ai-model.controllers.d.ts +1 -0
  2. package/build/controllers/ai-model.controllers.js +2 -1
  3. package/build/controllers/index.d.ts +2 -1
  4. package/build/controllers/index.js +4 -1
  5. package/build/controllers/page-hints.controllers.d.ts +4 -0
  6. package/build/controllers/page-hints.controllers.js +7 -0
  7. package/build/rest-api.d.ts +12 -0
  8. package/build/rest-api.js +13 -0
  9. package/build/routes/ai-model-unreg.routes.d.ts +3 -0
  10. package/build/routes/ai-model-unreg.routes.js +6 -0
  11. package/build/routes/index.d.ts +2 -0
  12. package/build/routes/index.js +5 -1
  13. package/build/routes/page-hints.routes.d.ts +10 -0
  14. package/build/routes/page-hints.routes.js +13 -0
  15. package/build/shared/api-error-response.schema.d.ts +3 -0
  16. package/build/shared/api-error-response.schema.js +7 -1
  17. package/build/v1/ai-model/admin/commands/create-model.command.d.ts +26 -2
  18. package/build/v1/ai-model/admin/commands/update-model.command.d.ts +25 -1
  19. package/build/v1/ai-model/admin/queries/get-model.query.d.ts +13 -1
  20. package/build/v1/ai-model/admin/queries/get-models.query.d.ts +13 -1
  21. package/build/v1/ai-model/ai-model.errors.d.ts +6 -1
  22. package/build/v1/ai-model/ai-model.errors.js +25 -0
  23. package/build/v1/ai-model/index.d.ts +1 -0
  24. package/build/v1/ai-model/index.js +1 -0
  25. package/build/v1/ai-model/public/queries/get-active-models.query.d.ts +10 -7
  26. package/build/v1/ai-model/public/queries/get-active-models.query.js +1 -1
  27. package/build/v1/ai-model/public/queries/get-models-list.query.d.ts +9 -2
  28. package/build/v1/ai-model/schemas/api-provider.enum.d.ts +6 -0
  29. package/build/v1/ai-model/schemas/api-provider.enum.js +10 -0
  30. package/build/v1/ai-model/schemas/create-model-request.schema.d.ts +17 -1
  31. package/build/v1/ai-model/schemas/create-model-request.schema.js +17 -1
  32. package/build/v1/ai-model/schemas/index.d.ts +5 -0
  33. package/build/v1/ai-model/schemas/index.js +5 -0
  34. package/build/v1/ai-model/schemas/modality.enum.d.ts +10 -0
  35. package/build/v1/ai-model/schemas/modality.enum.js +14 -0
  36. package/build/v1/ai-model/schemas/model-mark.enum.d.ts +8 -0
  37. package/build/v1/ai-model/schemas/model-mark.enum.js +12 -0
  38. package/build/v1/ai-model/schemas/model-response.schema.d.ts +56 -2
  39. package/build/v1/ai-model/schemas/model-response.schema.js +40 -3
  40. package/build/v1/ai-model/schemas/model-type.enum.d.ts +8 -0
  41. package/build/v1/ai-model/schemas/model-type.enum.js +12 -0
  42. package/build/v1/ai-model/schemas/models-list-response.schema.d.ts +29 -8
  43. package/build/v1/ai-model/schemas/models-list-response.schema.js +3 -10
  44. package/build/v1/ai-model/schemas/unreg-models-list-response.schema.d.ts +73 -0
  45. package/build/v1/ai-model/schemas/unreg-models-list-response.schema.js +28 -0
  46. package/build/v1/ai-model/schemas/update-model-request.schema.d.ts +16 -0
  47. package/build/v1/ai-model/schemas/update-model-request.schema.js +16 -0
  48. package/build/v1/ai-model/unreg/index.d.ts +1 -0
  49. package/build/v1/ai-model/unreg/index.js +17 -0
  50. package/build/v1/ai-model/unreg/queries/get-models-list.query.d.ts +33 -0
  51. package/build/v1/ai-model/unreg/queries/get-models-list.query.js +14 -0
  52. package/build/v1/ai-model/unreg/queries/index.d.ts +1 -0
  53. package/build/v1/ai-model/unreg/queries/index.js +5 -0
  54. package/build/v1/blog/schemas/update-post-request.schema.js +1 -2
  55. package/build/v1/email-validation/email-validation.errors.d.ts +19 -0
  56. package/build/v1/email-validation/email-validation.errors.js +48 -0
  57. package/build/v1/email-validation/index.d.ts +1 -0
  58. package/build/v1/email-validation/index.js +17 -0
  59. package/build/v1/index.d.ts +3 -0
  60. package/build/v1/index.js +3 -0
  61. package/build/v1/message/message.errors.d.ts +1 -0
  62. package/build/v1/message/message.errors.js +5 -0
  63. package/build/v1/page-hints/admin/commands/create-hint.command.d.ts +20 -0
  64. package/build/v1/page-hints/admin/commands/create-hint.command.js +13 -0
  65. package/build/v1/page-hints/admin/commands/delete-hint.command.d.ts +5 -0
  66. package/build/v1/page-hints/admin/commands/delete-hint.command.js +10 -0
  67. package/build/v1/page-hints/admin/commands/index.d.ts +3 -0
  68. package/build/v1/page-hints/admin/commands/index.js +9 -0
  69. package/build/v1/page-hints/admin/commands/update-hint.command.d.ts +20 -0
  70. package/build/v1/page-hints/admin/commands/update-hint.command.js +13 -0
  71. package/build/v1/page-hints/admin/queries/get-hint.query.d.ts +15 -0
  72. package/build/v1/page-hints/admin/queries/get-hint.query.js +12 -0
  73. package/build/v1/page-hints/admin/queries/get-hints.query.d.ts +15 -0
  74. package/build/v1/page-hints/admin/queries/get-hints.query.js +13 -0
  75. package/build/v1/page-hints/admin/queries/index.d.ts +2 -0
  76. package/build/v1/page-hints/admin/queries/index.js +7 -0
  77. package/build/v1/page-hints/index.d.ts +7 -0
  78. package/build/v1/page-hints/index.js +30 -0
  79. package/build/v1/page-hints/page-hints.errors.d.ts +8 -0
  80. package/build/v1/page-hints/page-hints.errors.js +31 -0
  81. package/build/v1/page-hints/schemas/create-hint-request.schema.d.ts +9 -0
  82. package/build/v1/page-hints/schemas/create-hint-request.schema.js +11 -0
  83. package/build/v1/page-hints/schemas/hint-response.schema.d.ts +22 -0
  84. package/build/v1/page-hints/schemas/hint-response.schema.js +24 -0
  85. package/build/v1/page-hints/schemas/index.d.ts +3 -0
  86. package/build/v1/page-hints/schemas/index.js +10 -0
  87. package/build/v1/page-hints/schemas/update-hint-request.schema.d.ts +9 -0
  88. package/build/v1/page-hints/schemas/update-hint-request.schema.js +11 -0
  89. package/build/v1/registration-antifraud/enums/fraud-check-result.enum.d.ts +4 -0
  90. package/build/v1/registration-antifraud/enums/fraud-check-result.enum.js +8 -0
  91. package/build/v1/registration-antifraud/enums/fraud-reason.enum.d.ts +5 -0
  92. package/build/v1/registration-antifraud/enums/fraud-reason.enum.js +9 -0
  93. package/build/v1/registration-antifraud/enums/index.d.ts +2 -0
  94. package/build/v1/registration-antifraud/enums/index.js +18 -0
  95. package/build/v1/registration-antifraud/index.d.ts +2 -0
  96. package/build/v1/registration-antifraud/index.js +18 -0
  97. package/build/v1/registration-antifraud/registration-antifraud.errors.d.ts +6 -0
  98. package/build/v1/registration-antifraud/registration-antifraud.errors.js +18 -0
  99. package/build/v1/seo-pages/public/queries/get-page-by-alias.query.d.ts +5 -0
  100. package/build/v1/seo-pages/public/queries/get-page-by-alias.query.js +1 -1
  101. package/build/v1/seo-pages/schemas/index.d.ts +1 -1
  102. package/build/v1/seo-pages/schemas/index.js +2 -1
  103. package/build/v1/seo-pages/schemas/page-response.schema.d.ts +33 -0
  104. package/build/v1/seo-pages/schemas/page-response.schema.js +8 -1
  105. package/build/v1/wallet/schemas/metadata.schema.js +1 -2
  106. package/package.json +1 -1
@@ -14,3 +14,6 @@ export * from './ai';
14
14
  export * from './verification';
15
15
  export * from './sitemap';
16
16
  export * from './wallet';
17
+ export * from './email-validation';
18
+ export * from './registration-antifraud';
19
+ export * from './page-hints';
package/build/v1/index.js CHANGED
@@ -30,3 +30,6 @@ __exportStar(require("./ai"), exports);
30
30
  __exportStar(require("./verification"), exports);
31
31
  __exportStar(require("./sitemap"), exports);
32
32
  __exportStar(require("./wallet"), exports);
33
+ __exportStar(require("./email-validation"), exports);
34
+ __exportStar(require("./registration-antifraud"), exports);
35
+ __exportStar(require("./page-hints"), exports);
@@ -10,6 +10,7 @@ export declare enum MessageErrorCode {
10
10
  MESSAGE_TEXT_TOO_LONG = "MESSAGE_TEXT_TOO_LONG",
11
11
  AI_MODEL_NOT_FOUND = "AI_MODEL_NOT_FOUND",
12
12
  AI_MODEL_INACTIVE = "AI_MODEL_INACTIVE",
13
+ AI_MODEL_NOT_AVAILABLE_FOR_UNREG = "AI_MODEL_NOT_AVAILABLE_FOR_UNREG",
13
14
  CANNOT_RATE_USER_MESSAGE = "CANNOT_RATE_USER_MESSAGE"
14
15
  }
15
16
  export declare const MESSAGE_ERRORS: Record<MessageErrorCode, ErrorMetadata>;
@@ -13,6 +13,7 @@ var MessageErrorCode;
13
13
  MessageErrorCode["MESSAGE_TEXT_TOO_LONG"] = "MESSAGE_TEXT_TOO_LONG";
14
14
  MessageErrorCode["AI_MODEL_NOT_FOUND"] = "AI_MODEL_NOT_FOUND";
15
15
  MessageErrorCode["AI_MODEL_INACTIVE"] = "AI_MODEL_INACTIVE";
16
+ MessageErrorCode["AI_MODEL_NOT_AVAILABLE_FOR_UNREG"] = "AI_MODEL_NOT_AVAILABLE_FOR_UNREG";
16
17
  MessageErrorCode["CANNOT_RATE_USER_MESSAGE"] = "CANNOT_RATE_USER_MESSAGE";
17
18
  })(MessageErrorCode || (exports.MessageErrorCode = MessageErrorCode = {}));
18
19
  exports.MESSAGE_ERRORS = {
@@ -56,6 +57,10 @@ exports.MESSAGE_ERRORS = {
56
57
  code: MessageErrorCode.AI_MODEL_INACTIVE,
57
58
  statusCode: 400,
58
59
  },
60
+ [MessageErrorCode.AI_MODEL_NOT_AVAILABLE_FOR_UNREG]: {
61
+ code: MessageErrorCode.AI_MODEL_NOT_AVAILABLE_FOR_UNREG,
62
+ statusCode: 403,
63
+ },
59
64
  [MessageErrorCode.CANNOT_RATE_USER_MESSAGE]: {
60
65
  code: MessageErrorCode.CANNOT_RATE_USER_MESSAGE,
61
66
  statusCode: 400,
@@ -0,0 +1,20 @@
1
+ import { z } from 'zod';
2
+ import { HttpMethod } from '../../../../shared/http-method';
3
+ export declare namespace AdminCreateHintCommand {
4
+ const Request: z.ZodObject<{
5
+ icon: z.ZodString;
6
+ title: z.ZodString;
7
+ }, z.core.$strip>;
8
+ const Response: z.ZodObject<{
9
+ uuid: z.ZodString;
10
+ icon: z.ZodString;
11
+ title: z.ZodString;
12
+ pageId: z.ZodString;
13
+ createdAt: z.ZodString;
14
+ updatedAt: z.ZodString;
15
+ }, z.core.$strip>;
16
+ const URL: (pageUuid: string) => string;
17
+ const METHOD = HttpMethod.POST;
18
+ type RequestType = z.infer<typeof Request>;
19
+ type ResponseType = z.infer<typeof Response>;
20
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AdminCreateHintCommand = void 0;
4
+ const schemas_1 = require("../../schemas");
5
+ const http_method_1 = require("../../../../shared/http-method");
6
+ const rest_api_1 = require("../../../../rest-api");
7
+ var AdminCreateHintCommand;
8
+ (function (AdminCreateHintCommand) {
9
+ AdminCreateHintCommand.Request = schemas_1.CreateHintRequestSchema;
10
+ AdminCreateHintCommand.Response = schemas_1.HintResponseSchema;
11
+ AdminCreateHintCommand.URL = rest_api_1.REST_API.V1.PAGE_HINTS.ADMIN.CREATE;
12
+ AdminCreateHintCommand.METHOD = http_method_1.HttpMethod.POST;
13
+ })(AdminCreateHintCommand || (exports.AdminCreateHintCommand = AdminCreateHintCommand = {}));
@@ -0,0 +1,5 @@
1
+ import { HttpMethod } from '../../../../shared/http-method';
2
+ export declare namespace AdminDeleteHintCommand {
3
+ const URL: (pageUuid: string, hintUuid: string) => string;
4
+ const METHOD = HttpMethod.DELETE;
5
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AdminDeleteHintCommand = void 0;
4
+ const http_method_1 = require("../../../../shared/http-method");
5
+ const rest_api_1 = require("../../../../rest-api");
6
+ var AdminDeleteHintCommand;
7
+ (function (AdminDeleteHintCommand) {
8
+ AdminDeleteHintCommand.URL = rest_api_1.REST_API.V1.PAGE_HINTS.ADMIN.DELETE;
9
+ AdminDeleteHintCommand.METHOD = http_method_1.HttpMethod.DELETE;
10
+ })(AdminDeleteHintCommand || (exports.AdminDeleteHintCommand = AdminDeleteHintCommand = {}));
@@ -0,0 +1,3 @@
1
+ export { AdminCreateHintCommand } from './create-hint.command';
2
+ export { AdminUpdateHintCommand } from './update-hint.command';
3
+ export { AdminDeleteHintCommand } from './delete-hint.command';
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AdminDeleteHintCommand = exports.AdminUpdateHintCommand = exports.AdminCreateHintCommand = void 0;
4
+ var create_hint_command_1 = require("./create-hint.command");
5
+ Object.defineProperty(exports, "AdminCreateHintCommand", { enumerable: true, get: function () { return create_hint_command_1.AdminCreateHintCommand; } });
6
+ var update_hint_command_1 = require("./update-hint.command");
7
+ Object.defineProperty(exports, "AdminUpdateHintCommand", { enumerable: true, get: function () { return update_hint_command_1.AdminUpdateHintCommand; } });
8
+ var delete_hint_command_1 = require("./delete-hint.command");
9
+ Object.defineProperty(exports, "AdminDeleteHintCommand", { enumerable: true, get: function () { return delete_hint_command_1.AdminDeleteHintCommand; } });
@@ -0,0 +1,20 @@
1
+ import { z } from 'zod';
2
+ import { HttpMethod } from '../../../../shared/http-method';
3
+ export declare namespace AdminUpdateHintCommand {
4
+ const Request: z.ZodObject<{
5
+ icon: z.ZodOptional<z.ZodString>;
6
+ title: z.ZodOptional<z.ZodString>;
7
+ }, z.core.$strip>;
8
+ const Response: z.ZodObject<{
9
+ uuid: z.ZodString;
10
+ icon: z.ZodString;
11
+ title: z.ZodString;
12
+ pageId: z.ZodString;
13
+ createdAt: z.ZodString;
14
+ updatedAt: z.ZodString;
15
+ }, z.core.$strip>;
16
+ const URL: (pageUuid: string, hintUuid: string) => string;
17
+ const METHOD = HttpMethod.PATCH;
18
+ type RequestType = z.infer<typeof Request>;
19
+ type ResponseType = z.infer<typeof Response>;
20
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AdminUpdateHintCommand = void 0;
4
+ const schemas_1 = require("../../schemas");
5
+ const http_method_1 = require("../../../../shared/http-method");
6
+ const rest_api_1 = require("../../../../rest-api");
7
+ var AdminUpdateHintCommand;
8
+ (function (AdminUpdateHintCommand) {
9
+ AdminUpdateHintCommand.Request = schemas_1.UpdateHintRequestSchema;
10
+ AdminUpdateHintCommand.Response = schemas_1.HintResponseSchema;
11
+ AdminUpdateHintCommand.URL = rest_api_1.REST_API.V1.PAGE_HINTS.ADMIN.UPDATE;
12
+ AdminUpdateHintCommand.METHOD = http_method_1.HttpMethod.PATCH;
13
+ })(AdminUpdateHintCommand || (exports.AdminUpdateHintCommand = AdminUpdateHintCommand = {}));
@@ -0,0 +1,15 @@
1
+ import { z } from 'zod';
2
+ import { HttpMethod } from '../../../../shared/http-method';
3
+ export declare namespace AdminGetHintQuery {
4
+ const Response: z.ZodObject<{
5
+ uuid: z.ZodString;
6
+ icon: z.ZodString;
7
+ title: z.ZodString;
8
+ pageId: z.ZodString;
9
+ createdAt: z.ZodString;
10
+ updatedAt: z.ZodString;
11
+ }, z.core.$strip>;
12
+ const URL: (pageUuid: string, hintUuid: string) => string;
13
+ const METHOD = HttpMethod.GET;
14
+ type ResponseType = z.infer<typeof Response>;
15
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AdminGetHintQuery = void 0;
4
+ const schemas_1 = require("../../schemas");
5
+ const http_method_1 = require("../../../../shared/http-method");
6
+ const rest_api_1 = require("../../../../rest-api");
7
+ var AdminGetHintQuery;
8
+ (function (AdminGetHintQuery) {
9
+ AdminGetHintQuery.Response = schemas_1.HintResponseSchema;
10
+ AdminGetHintQuery.URL = rest_api_1.REST_API.V1.PAGE_HINTS.ADMIN.GET_BY_UUID;
11
+ AdminGetHintQuery.METHOD = http_method_1.HttpMethod.GET;
12
+ })(AdminGetHintQuery || (exports.AdminGetHintQuery = AdminGetHintQuery = {}));
@@ -0,0 +1,15 @@
1
+ import { z } from 'zod';
2
+ import { HttpMethod } from '../../../../shared/http-method';
3
+ export declare namespace AdminGetHintsQuery {
4
+ const Response: z.ZodArray<z.ZodObject<{
5
+ uuid: z.ZodString;
6
+ icon: z.ZodString;
7
+ title: z.ZodString;
8
+ pageId: z.ZodString;
9
+ createdAt: z.ZodString;
10
+ updatedAt: z.ZodString;
11
+ }, z.core.$strip>>;
12
+ const URL: (pageUuid: string) => string;
13
+ const METHOD = HttpMethod.GET;
14
+ type ResponseType = z.infer<typeof Response>;
15
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AdminGetHintsQuery = void 0;
4
+ const zod_1 = require("zod");
5
+ const schemas_1 = require("../../schemas");
6
+ const http_method_1 = require("../../../../shared/http-method");
7
+ const rest_api_1 = require("../../../../rest-api");
8
+ var AdminGetHintsQuery;
9
+ (function (AdminGetHintsQuery) {
10
+ AdminGetHintsQuery.Response = zod_1.z.array(schemas_1.HintResponseSchema);
11
+ AdminGetHintsQuery.URL = rest_api_1.REST_API.V1.PAGE_HINTS.ADMIN.GET_ALL;
12
+ AdminGetHintsQuery.METHOD = http_method_1.HttpMethod.GET;
13
+ })(AdminGetHintsQuery || (exports.AdminGetHintsQuery = AdminGetHintsQuery = {}));
@@ -0,0 +1,2 @@
1
+ export { AdminGetHintsQuery } from './get-hints.query';
2
+ export { AdminGetHintQuery } from './get-hint.query';
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AdminGetHintQuery = exports.AdminGetHintsQuery = void 0;
4
+ var get_hints_query_1 = require("./get-hints.query");
5
+ Object.defineProperty(exports, "AdminGetHintsQuery", { enumerable: true, get: function () { return get_hints_query_1.AdminGetHintsQuery; } });
6
+ var get_hint_query_1 = require("./get-hint.query");
7
+ Object.defineProperty(exports, "AdminGetHintQuery", { enumerable: true, get: function () { return get_hint_query_1.AdminGetHintQuery; } });
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Centralized exports for Page Hints contracts
3
+ */
4
+ export { PageHintErrorCode, PAGE_HINT_ERRORS } from './page-hints.errors';
5
+ export * from './schemas';
6
+ export * from './admin/commands';
7
+ export * from './admin/queries';
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ /**
3
+ * Centralized exports for Page Hints contracts
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
17
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
18
+ };
19
+ Object.defineProperty(exports, "__esModule", { value: true });
20
+ exports.PAGE_HINT_ERRORS = exports.PageHintErrorCode = void 0;
21
+ // Errors
22
+ var page_hints_errors_1 = require("./page-hints.errors");
23
+ Object.defineProperty(exports, "PageHintErrorCode", { enumerable: true, get: function () { return page_hints_errors_1.PageHintErrorCode; } });
24
+ Object.defineProperty(exports, "PAGE_HINT_ERRORS", { enumerable: true, get: function () { return page_hints_errors_1.PAGE_HINT_ERRORS; } });
25
+ // Schemas
26
+ __exportStar(require("./schemas"), exports);
27
+ // Admin Commands
28
+ __exportStar(require("./admin/commands"), exports);
29
+ // Admin Queries
30
+ __exportStar(require("./admin/queries"), exports);
@@ -0,0 +1,8 @@
1
+ import { ErrorMetadata } from '../../shared';
2
+ export declare enum PageHintErrorCode {
3
+ HINT_NOT_FOUND = "HINT_NOT_FOUND",
4
+ INVALID_HINT_ICON = "INVALID_HINT_ICON",
5
+ INVALID_HINT_TITLE = "INVALID_HINT_TITLE",
6
+ HINT_ACCESS_DENIED = "HINT_ACCESS_DENIED"
7
+ }
8
+ export declare const PAGE_HINT_ERRORS: Record<PageHintErrorCode, ErrorMetadata>;
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PAGE_HINT_ERRORS = exports.PageHintErrorCode = void 0;
4
+ var PageHintErrorCode;
5
+ (function (PageHintErrorCode) {
6
+ // Not Found (404)
7
+ PageHintErrorCode["HINT_NOT_FOUND"] = "HINT_NOT_FOUND";
8
+ // Validation errors (400)
9
+ PageHintErrorCode["INVALID_HINT_ICON"] = "INVALID_HINT_ICON";
10
+ PageHintErrorCode["INVALID_HINT_TITLE"] = "INVALID_HINT_TITLE";
11
+ // Authorization errors (403)
12
+ PageHintErrorCode["HINT_ACCESS_DENIED"] = "HINT_ACCESS_DENIED";
13
+ })(PageHintErrorCode || (exports.PageHintErrorCode = PageHintErrorCode = {}));
14
+ exports.PAGE_HINT_ERRORS = {
15
+ [PageHintErrorCode.HINT_NOT_FOUND]: {
16
+ code: PageHintErrorCode.HINT_NOT_FOUND,
17
+ statusCode: 404,
18
+ },
19
+ [PageHintErrorCode.INVALID_HINT_ICON]: {
20
+ code: PageHintErrorCode.INVALID_HINT_ICON,
21
+ statusCode: 400,
22
+ },
23
+ [PageHintErrorCode.INVALID_HINT_TITLE]: {
24
+ code: PageHintErrorCode.INVALID_HINT_TITLE,
25
+ statusCode: 400,
26
+ },
27
+ [PageHintErrorCode.HINT_ACCESS_DENIED]: {
28
+ code: PageHintErrorCode.HINT_ACCESS_DENIED,
29
+ statusCode: 403,
30
+ },
31
+ };
@@ -0,0 +1,9 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Create Page Hint Request Schema
4
+ */
5
+ export declare const CreateHintRequestSchema: z.ZodObject<{
6
+ icon: z.ZodString;
7
+ title: z.ZodString;
8
+ }, z.core.$strip>;
9
+ export type CreateHintRequestType = z.infer<typeof CreateHintRequestSchema>;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateHintRequestSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ /**
6
+ * Create Page Hint Request Schema
7
+ */
8
+ exports.CreateHintRequestSchema = zod_1.z.object({
9
+ icon: zod_1.z.string().min(1).max(50),
10
+ title: zod_1.z.string().min(1).max(255),
11
+ });
@@ -0,0 +1,22 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Full Page Hint Response Schema (for admin)
4
+ */
5
+ export declare const HintResponseSchema: z.ZodObject<{
6
+ uuid: z.ZodString;
7
+ icon: z.ZodString;
8
+ title: z.ZodString;
9
+ pageId: z.ZodString;
10
+ createdAt: z.ZodString;
11
+ updatedAt: z.ZodString;
12
+ }, z.core.$strip>;
13
+ export type HintResponseType = z.infer<typeof HintResponseSchema>;
14
+ /**
15
+ * Public Page Hint Response Schema (minimal fields)
16
+ */
17
+ export declare const PublicHintResponseSchema: z.ZodObject<{
18
+ uuid: z.ZodString;
19
+ icon: z.ZodString;
20
+ title: z.ZodString;
21
+ }, z.core.$strip>;
22
+ export type PublicHintResponseType = z.infer<typeof PublicHintResponseSchema>;
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PublicHintResponseSchema = exports.HintResponseSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const shared_1 = require("../../../shared");
6
+ /**
7
+ * Full Page Hint Response Schema (for admin)
8
+ */
9
+ exports.HintResponseSchema = zod_1.z.object({
10
+ uuid: zod_1.z.string().regex(shared_1.UUID_REGEX),
11
+ icon: zod_1.z.string(),
12
+ title: zod_1.z.string(),
13
+ pageId: zod_1.z.string().regex(shared_1.UUID_REGEX),
14
+ createdAt: zod_1.z.string().regex(shared_1.DATETIME_REGEX),
15
+ updatedAt: zod_1.z.string().regex(shared_1.DATETIME_REGEX),
16
+ });
17
+ /**
18
+ * Public Page Hint Response Schema (minimal fields)
19
+ */
20
+ exports.PublicHintResponseSchema = zod_1.z.object({
21
+ uuid: zod_1.z.string().regex(shared_1.UUID_REGEX),
22
+ icon: zod_1.z.string(),
23
+ title: zod_1.z.string(),
24
+ });
@@ -0,0 +1,3 @@
1
+ export { HintResponseSchema, HintResponseType, PublicHintResponseSchema, PublicHintResponseType, } from './hint-response.schema';
2
+ export { CreateHintRequestSchema, CreateHintRequestType } from './create-hint-request.schema';
3
+ export { UpdateHintRequestSchema, UpdateHintRequestType } from './update-hint-request.schema';
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateHintRequestSchema = exports.CreateHintRequestSchema = exports.PublicHintResponseSchema = exports.HintResponseSchema = void 0;
4
+ var hint_response_schema_1 = require("./hint-response.schema");
5
+ Object.defineProperty(exports, "HintResponseSchema", { enumerable: true, get: function () { return hint_response_schema_1.HintResponseSchema; } });
6
+ Object.defineProperty(exports, "PublicHintResponseSchema", { enumerable: true, get: function () { return hint_response_schema_1.PublicHintResponseSchema; } });
7
+ var create_hint_request_schema_1 = require("./create-hint-request.schema");
8
+ Object.defineProperty(exports, "CreateHintRequestSchema", { enumerable: true, get: function () { return create_hint_request_schema_1.CreateHintRequestSchema; } });
9
+ var update_hint_request_schema_1 = require("./update-hint-request.schema");
10
+ Object.defineProperty(exports, "UpdateHintRequestSchema", { enumerable: true, get: function () { return update_hint_request_schema_1.UpdateHintRequestSchema; } });
@@ -0,0 +1,9 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Update Page Hint Request Schema
4
+ */
5
+ export declare const UpdateHintRequestSchema: z.ZodObject<{
6
+ icon: z.ZodOptional<z.ZodString>;
7
+ title: z.ZodOptional<z.ZodString>;
8
+ }, z.core.$strip>;
9
+ export type UpdateHintRequestType = z.infer<typeof UpdateHintRequestSchema>;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateHintRequestSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ /**
6
+ * Update Page Hint Request Schema
7
+ */
8
+ exports.UpdateHintRequestSchema = zod_1.z.object({
9
+ icon: zod_1.z.string().min(1).max(50).optional(),
10
+ title: zod_1.z.string().min(1).max(255).optional(),
11
+ });
@@ -0,0 +1,4 @@
1
+ export declare enum FraudCheckResult {
2
+ PASSED = "PASSED",
3
+ FRAUD = "FRAUD"
4
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FraudCheckResult = void 0;
4
+ var FraudCheckResult;
5
+ (function (FraudCheckResult) {
6
+ FraudCheckResult["PASSED"] = "PASSED";
7
+ FraudCheckResult["FRAUD"] = "FRAUD";
8
+ })(FraudCheckResult || (exports.FraudCheckResult = FraudCheckResult = {}));
@@ -0,0 +1,5 @@
1
+ export declare enum FraudReason {
2
+ NO_UNREG_TOKEN = "NO_UNREG_TOKEN",
3
+ IP_LIMIT_EXCEEDED = "IP_LIMIT_EXCEEDED",
4
+ EMAIL_DUPLICATE = "EMAIL_DUPLICATE"
5
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FraudReason = void 0;
4
+ var FraudReason;
5
+ (function (FraudReason) {
6
+ FraudReason["NO_UNREG_TOKEN"] = "NO_UNREG_TOKEN";
7
+ FraudReason["IP_LIMIT_EXCEEDED"] = "IP_LIMIT_EXCEEDED";
8
+ FraudReason["EMAIL_DUPLICATE"] = "EMAIL_DUPLICATE";
9
+ })(FraudReason || (exports.FraudReason = FraudReason = {}));
@@ -0,0 +1,2 @@
1
+ export * from './fraud-check-result.enum';
2
+ export * from './fraud-reason.enum';
@@ -0,0 +1,18 @@
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("./fraud-check-result.enum"), exports);
18
+ __exportStar(require("./fraud-reason.enum"), exports);
@@ -0,0 +1,2 @@
1
+ export * from './enums';
2
+ export * from './registration-antifraud.errors';
@@ -0,0 +1,18 @@
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("./enums"), exports);
18
+ __exportStar(require("./registration-antifraud.errors"), exports);
@@ -0,0 +1,6 @@
1
+ import { ErrorMetadata } from '../../shared';
2
+ export declare enum RegistrationAntifraudErrorCode {
3
+ CHECK_ALREADY_EXISTS = "CHECK_ALREADY_EXISTS",
4
+ CHECK_NOT_FOUND = "CHECK_NOT_FOUND"
5
+ }
6
+ export declare const REGISTRATION_ANTIFRAUD_ERRORS: Record<RegistrationAntifraudErrorCode, ErrorMetadata>;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.REGISTRATION_ANTIFRAUD_ERRORS = exports.RegistrationAntifraudErrorCode = void 0;
4
+ var RegistrationAntifraudErrorCode;
5
+ (function (RegistrationAntifraudErrorCode) {
6
+ RegistrationAntifraudErrorCode["CHECK_ALREADY_EXISTS"] = "CHECK_ALREADY_EXISTS";
7
+ RegistrationAntifraudErrorCode["CHECK_NOT_FOUND"] = "CHECK_NOT_FOUND";
8
+ })(RegistrationAntifraudErrorCode || (exports.RegistrationAntifraudErrorCode = RegistrationAntifraudErrorCode = {}));
9
+ exports.REGISTRATION_ANTIFRAUD_ERRORS = {
10
+ [RegistrationAntifraudErrorCode.CHECK_ALREADY_EXISTS]: {
11
+ code: RegistrationAntifraudErrorCode.CHECK_ALREADY_EXISTS,
12
+ statusCode: 409,
13
+ },
14
+ [RegistrationAntifraudErrorCode.CHECK_NOT_FOUND]: {
15
+ code: RegistrationAntifraudErrorCode.CHECK_NOT_FOUND,
16
+ statusCode: 404,
17
+ },
18
+ };
@@ -25,6 +25,11 @@ export declare namespace SeoPageGetPageByAliasQuery {
25
25
  marks: z.ZodArray<z.ZodString>;
26
26
  createdAt: z.ZodString;
27
27
  updatedAt: z.ZodString;
28
+ hints: z.ZodArray<z.ZodObject<{
29
+ uuid: z.ZodString;
30
+ icon: z.ZodString;
31
+ title: z.ZodString;
32
+ }, z.core.$strip>>;
28
33
  }, z.core.$strip>;
29
34
  const URL: (alias: string) => string;
30
35
  const METHOD = HttpMethod.GET;
@@ -8,7 +8,7 @@ const http_method_1 = require("../../../../shared/http-method");
8
8
  var SeoPageGetPageByAliasQuery;
9
9
  (function (SeoPageGetPageByAliasQuery) {
10
10
  SeoPageGetPageByAliasQuery.Request = zod_1.z.object({});
11
- SeoPageGetPageByAliasQuery.Response = schemas_1.PageResponseSchema;
11
+ SeoPageGetPageByAliasQuery.Response = schemas_1.PublicPageResponseSchema;
12
12
  SeoPageGetPageByAliasQuery.URL = (alias) => rest_api_1.REST_API.V1.SEO_PAGES.PUBLIC.GET_BY_ALIAS(alias);
13
13
  SeoPageGetPageByAliasQuery.METHOD = http_method_1.HttpMethod.GET;
14
14
  })(SeoPageGetPageByAliasQuery || (exports.SeoPageGetPageByAliasQuery = SeoPageGetPageByAliasQuery = {}));
@@ -2,7 +2,7 @@
2
2
  * Centralized exports for SEO Pages schemas
3
3
  */
4
4
  export { PageType } from './page-type.enum';
5
- export { PageResponseSchema, PageListItemSchema } from './page-response.schema';
5
+ export { PageResponseSchema, PageListItemSchema, PublicPageResponseSchema, type PublicPageResponseType, } from './page-response.schema';
6
6
  export { PageHierarchySubItemSchema, PageHierarchyItemSchema, PageHierarchyListSchema, PageHierarchyResponseSchema, type PageHierarchySubItem, type PageHierarchyItem, type PageHierarchyList, type PageHierarchyResponse, } from './page-hierarchy.schema';
7
7
  export { CreatePageRequestSchema } from './create-page-request.schema';
8
8
  export { UpdatePageRequestSchema } from './update-page-request.schema';
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FaqItemSchema = exports.FaqSchema = exports.UpdatePageRequestSchema = exports.CreatePageRequestSchema = exports.PageHierarchyResponseSchema = exports.PageHierarchyListSchema = exports.PageHierarchyItemSchema = exports.PageHierarchySubItemSchema = exports.PageListItemSchema = exports.PageResponseSchema = exports.PageType = void 0;
3
+ exports.FaqItemSchema = exports.FaqSchema = exports.UpdatePageRequestSchema = exports.CreatePageRequestSchema = exports.PageHierarchyResponseSchema = exports.PageHierarchyListSchema = exports.PageHierarchyItemSchema = exports.PageHierarchySubItemSchema = exports.PublicPageResponseSchema = exports.PageListItemSchema = exports.PageResponseSchema = exports.PageType = void 0;
4
4
  /**
5
5
  * Centralized exports for SEO Pages schemas
6
6
  */
@@ -9,6 +9,7 @@ Object.defineProperty(exports, "PageType", { enumerable: true, get: function ()
9
9
  var page_response_schema_1 = require("./page-response.schema");
10
10
  Object.defineProperty(exports, "PageResponseSchema", { enumerable: true, get: function () { return page_response_schema_1.PageResponseSchema; } });
11
11
  Object.defineProperty(exports, "PageListItemSchema", { enumerable: true, get: function () { return page_response_schema_1.PageListItemSchema; } });
12
+ Object.defineProperty(exports, "PublicPageResponseSchema", { enumerable: true, get: function () { return page_response_schema_1.PublicPageResponseSchema; } });
12
13
  var page_hierarchy_schema_1 = require("./page-hierarchy.schema");
13
14
  Object.defineProperty(exports, "PageHierarchySubItemSchema", { enumerable: true, get: function () { return page_hierarchy_schema_1.PageHierarchySubItemSchema; } });
14
15
  Object.defineProperty(exports, "PageHierarchyItemSchema", { enumerable: true, get: function () { return page_hierarchy_schema_1.PageHierarchyItemSchema; } });
@@ -47,3 +47,36 @@ export declare const PageListItemSchema: z.ZodObject<{
47
47
  createdAt: z.ZodString;
48
48
  updatedAt: z.ZodString;
49
49
  }, z.core.$strip>;
50
+ /**
51
+ * Public Page Response Schema (with hints)
52
+ */
53
+ export declare const PublicPageResponseSchema: z.ZodObject<{
54
+ uuid: z.ZodString;
55
+ metaTitle: z.ZodString;
56
+ metaDescription: z.ZodString;
57
+ title: z.ZodString;
58
+ description: z.ZodString;
59
+ content: z.ZodString;
60
+ alias: z.ZodString;
61
+ type: z.ZodEnum<typeof PageType>;
62
+ icon: z.ZodString;
63
+ faq: z.ZodObject<{
64
+ items: z.ZodDefault<z.ZodArray<z.ZodObject<{
65
+ question: z.ZodString;
66
+ answer: z.ZodString;
67
+ }, z.core.$strip>>>;
68
+ }, z.core.$strip>;
69
+ parentId: z.ZodNullable<z.ZodString>;
70
+ order: z.ZodNumber;
71
+ placeholder: z.ZodNullable<z.ZodString>;
72
+ seoName: z.ZodNullable<z.ZodString>;
73
+ marks: z.ZodArray<z.ZodString>;
74
+ createdAt: z.ZodString;
75
+ updatedAt: z.ZodString;
76
+ hints: z.ZodArray<z.ZodObject<{
77
+ uuid: z.ZodString;
78
+ icon: z.ZodString;
79
+ title: z.ZodString;
80
+ }, z.core.$strip>>;
81
+ }, z.core.$strip>;
82
+ export type PublicPageResponseType = z.infer<typeof PublicPageResponseSchema>;