@veruna/api-contracts 1.0.41 → 1.0.44

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 (68) 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 +1 -1
  4. package/build/controllers/index.js +2 -1
  5. package/build/rest-api.d.ts +3 -0
  6. package/build/rest-api.js +3 -0
  7. package/build/routes/ai-model-unreg.routes.d.ts +3 -0
  8. package/build/routes/ai-model-unreg.routes.js +6 -0
  9. package/build/routes/index.d.ts +1 -0
  10. package/build/routes/index.js +3 -1
  11. package/build/v1/ai-model/admin/commands/create-model.command.d.ts +26 -2
  12. package/build/v1/ai-model/admin/commands/update-model.command.d.ts +25 -1
  13. package/build/v1/ai-model/admin/queries/get-model.query.d.ts +13 -1
  14. package/build/v1/ai-model/admin/queries/get-models.query.d.ts +13 -1
  15. package/build/v1/ai-model/ai-model.errors.d.ts +6 -1
  16. package/build/v1/ai-model/ai-model.errors.js +25 -0
  17. package/build/v1/ai-model/index.d.ts +1 -0
  18. package/build/v1/ai-model/index.js +1 -0
  19. package/build/v1/ai-model/public/queries/get-active-models.query.d.ts +10 -7
  20. package/build/v1/ai-model/public/queries/get-active-models.query.js +1 -1
  21. package/build/v1/ai-model/public/queries/get-models-list.query.d.ts +9 -2
  22. package/build/v1/ai-model/schemas/api-provider.enum.d.ts +6 -0
  23. package/build/v1/ai-model/schemas/api-provider.enum.js +10 -0
  24. package/build/v1/ai-model/schemas/create-model-request.schema.d.ts +17 -1
  25. package/build/v1/ai-model/schemas/create-model-request.schema.js +17 -1
  26. package/build/v1/ai-model/schemas/index.d.ts +5 -0
  27. package/build/v1/ai-model/schemas/index.js +5 -0
  28. package/build/v1/ai-model/schemas/modality.enum.d.ts +10 -0
  29. package/build/v1/ai-model/schemas/modality.enum.js +14 -0
  30. package/build/v1/ai-model/schemas/model-mark.enum.d.ts +8 -0
  31. package/build/v1/ai-model/schemas/model-mark.enum.js +12 -0
  32. package/build/v1/ai-model/schemas/model-response.schema.d.ts +56 -2
  33. package/build/v1/ai-model/schemas/model-response.schema.js +40 -3
  34. package/build/v1/ai-model/schemas/model-type.enum.d.ts +8 -0
  35. package/build/v1/ai-model/schemas/model-type.enum.js +12 -0
  36. package/build/v1/ai-model/schemas/models-list-response.schema.d.ts +29 -8
  37. package/build/v1/ai-model/schemas/models-list-response.schema.js +3 -10
  38. package/build/v1/ai-model/schemas/unreg-models-list-response.schema.d.ts +73 -0
  39. package/build/v1/ai-model/schemas/unreg-models-list-response.schema.js +28 -0
  40. package/build/v1/ai-model/schemas/update-model-request.schema.d.ts +16 -0
  41. package/build/v1/ai-model/schemas/update-model-request.schema.js +16 -0
  42. package/build/v1/ai-model/unreg/index.d.ts +1 -0
  43. package/build/v1/ai-model/unreg/index.js +17 -0
  44. package/build/v1/ai-model/unreg/queries/get-models-list.query.d.ts +33 -0
  45. package/build/v1/ai-model/unreg/queries/get-models-list.query.js +14 -0
  46. package/build/v1/ai-model/unreg/queries/index.d.ts +1 -0
  47. package/build/v1/ai-model/unreg/queries/index.js +5 -0
  48. package/build/v1/blog/schemas/update-post-request.schema.js +1 -2
  49. package/build/v1/email-validation/email-validation.errors.d.ts +19 -0
  50. package/build/v1/email-validation/email-validation.errors.js +48 -0
  51. package/build/v1/email-validation/index.d.ts +1 -0
  52. package/build/v1/email-validation/index.js +17 -0
  53. package/build/v1/index.d.ts +2 -0
  54. package/build/v1/index.js +2 -0
  55. package/build/v1/message/message.errors.d.ts +1 -0
  56. package/build/v1/message/message.errors.js +5 -0
  57. package/build/v1/registration-antifraud/enums/fraud-check-result.enum.d.ts +4 -0
  58. package/build/v1/registration-antifraud/enums/fraud-check-result.enum.js +8 -0
  59. package/build/v1/registration-antifraud/enums/fraud-reason.enum.d.ts +5 -0
  60. package/build/v1/registration-antifraud/enums/fraud-reason.enum.js +9 -0
  61. package/build/v1/registration-antifraud/enums/index.d.ts +2 -0
  62. package/build/v1/registration-antifraud/enums/index.js +18 -0
  63. package/build/v1/registration-antifraud/index.d.ts +2 -0
  64. package/build/v1/registration-antifraud/index.js +18 -0
  65. package/build/v1/registration-antifraud/registration-antifraud.errors.d.ts +6 -0
  66. package/build/v1/registration-antifraud/registration-antifraud.errors.js +18 -0
  67. package/build/v1/wallet/schemas/metadata.schema.js +1 -2
  68. package/package.json +1 -1
@@ -3,3 +3,4 @@
3
3
  */
4
4
  export declare const AI_MODEL_ADMIN_CONTROLLER: "v1/admin/ai-models";
5
5
  export declare const AI_MODEL_PUBLIC_CONTROLLER: "v1/ai-models";
6
+ export declare const AI_MODEL_UNREG_CONTROLLER: "v1/unreg/ai-models";
@@ -1,8 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AI_MODEL_PUBLIC_CONTROLLER = exports.AI_MODEL_ADMIN_CONTROLLER = void 0;
3
+ exports.AI_MODEL_UNREG_CONTROLLER = exports.AI_MODEL_PUBLIC_CONTROLLER = exports.AI_MODEL_ADMIN_CONTROLLER = void 0;
4
4
  /**
5
5
  * AI Model Controller paths for NestJS @Controller decorator
6
6
  */
7
7
  exports.AI_MODEL_ADMIN_CONTROLLER = 'v1/admin/ai-models';
8
8
  exports.AI_MODEL_PUBLIC_CONTROLLER = 'v1/ai-models';
9
+ exports.AI_MODEL_UNREG_CONTROLLER = 'v1/unreg/ai-models';
@@ -7,7 +7,7 @@ export { UNREG_USERS_CONTROLLER } from './unreg-users.controllers';
7
7
  export { BLOG_ADMIN_CATEGORIES_CONTROLLER, BLOG_ADMIN_POSTS_CONTROLLER, BLOG_PUBLIC_CATEGORIES_CONTROLLER, BLOG_PUBLIC_POSTS_CONTROLLER, } from './blog.controllers';
8
8
  export { SEO_PAGES_ADMIN_CONTROLLER, SEO_PAGES_PUBLIC_CONTROLLER } from './seo-pages.controllers';
9
9
  export { AI_PROVIDER_ADMIN_CONTROLLER, AI_PROVIDER_PUBLIC_CONTROLLER, } from './ai-provider.controllers';
10
- export { AI_MODEL_ADMIN_CONTROLLER, AI_MODEL_PUBLIC_CONTROLLER } from './ai-model.controllers';
10
+ export { AI_MODEL_ADMIN_CONTROLLER, AI_MODEL_PUBLIC_CONTROLLER, AI_MODEL_UNREG_CONTROLLER, } from './ai-model.controllers';
11
11
  export { FILE_CONTROLLER } from './file.controllers';
12
12
  export { CHAT_PROJECT_CONTROLLER } from './chat-project.controllers';
13
13
  export { CHAT_UNREG_CONTROLLER, CHAT_REG_CONTROLLER, CHAT_HISTORY_CONTROLLER, } from './chat.controllers';
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- 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_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.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
  */
@@ -24,6 +24,7 @@ Object.defineProperty(exports, "AI_PROVIDER_PUBLIC_CONTROLLER", { enumerable: tr
24
24
  var ai_model_controllers_1 = require("./ai-model.controllers");
25
25
  Object.defineProperty(exports, "AI_MODEL_ADMIN_CONTROLLER", { enumerable: true, get: function () { return ai_model_controllers_1.AI_MODEL_ADMIN_CONTROLLER; } });
26
26
  Object.defineProperty(exports, "AI_MODEL_PUBLIC_CONTROLLER", { enumerable: true, get: function () { return ai_model_controllers_1.AI_MODEL_PUBLIC_CONTROLLER; } });
27
+ Object.defineProperty(exports, "AI_MODEL_UNREG_CONTROLLER", { enumerable: true, get: function () { return ai_model_controllers_1.AI_MODEL_UNREG_CONTROLLER; } });
27
28
  var file_controllers_1 = require("./file.controllers");
28
29
  Object.defineProperty(exports, "FILE_CONTROLLER", { enumerable: true, get: function () { return file_controllers_1.FILE_CONTROLLER; } });
29
30
  var chat_project_controllers_1 = require("./chat-project.controllers");
@@ -105,6 +105,9 @@ export declare const REST_API: {
105
105
  readonly GET_ALL: "/api/v1/ai-models/";
106
106
  readonly GET_LIST: "/api/v1/ai-models/list";
107
107
  };
108
+ readonly UNREG: {
109
+ readonly GET_LIST: "/api/v1/unreg/ai-models/list";
110
+ };
108
111
  };
109
112
  readonly FILE: {
110
113
  readonly UPLOAD_IMAGE: "/file-api/v1/files/upload-image";
package/build/rest-api.js CHANGED
@@ -117,6 +117,9 @@ exports.REST_API = {
117
117
  GET_ALL: `${exports.ROOT}/${controllers_1.AI_MODEL_PUBLIC_CONTROLLER}/${routes_1.AI_MODEL_PUBLIC_ROUTES.GET_ALL}`,
118
118
  GET_LIST: `${exports.ROOT}/${controllers_1.AI_MODEL_PUBLIC_CONTROLLER}/${routes_1.AI_MODEL_PUBLIC_ROUTES.GET_LIST}`,
119
119
  },
120
+ UNREG: {
121
+ GET_LIST: `${exports.ROOT}/${controllers_1.AI_MODEL_UNREG_CONTROLLER}/${routes_1.AI_MODEL_UNREG_ROUTES.GET_LIST}`,
122
+ },
120
123
  },
121
124
  // File module (External Go service)
122
125
  FILE: {
@@ -0,0 +1,3 @@
1
+ export declare const AI_MODEL_UNREG_ROUTES: {
2
+ readonly GET_LIST: "list";
3
+ };
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AI_MODEL_UNREG_ROUTES = void 0;
4
+ exports.AI_MODEL_UNREG_ROUTES = {
5
+ GET_LIST: 'list',
6
+ };
@@ -13,6 +13,7 @@ export { AI_PROVIDER_ADMIN_ROUTES } from './ai-provider-admin.routes';
13
13
  export { AI_PROVIDER_PUBLIC_ROUTES } from './ai-provider-public.routes';
14
14
  export { AI_MODEL_ADMIN_ROUTES } from './ai-model-admin.routes';
15
15
  export { AI_MODEL_PUBLIC_ROUTES } from './ai-model-public.routes';
16
+ export { AI_MODEL_UNREG_ROUTES } from './ai-model-unreg.routes';
16
17
  export { FILE_ROUTES } from './file.routes';
17
18
  export { CHAT_PROJECT_ROUTES } from './chat-project.routes';
18
19
  export { CHAT_UNREG_ROUTES, CHAT_REG_ROUTES, CHAT_HISTORY_ROUTES } from './chat.routes';
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- 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_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.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
  */
@@ -29,6 +29,8 @@ var ai_model_admin_routes_1 = require("./ai-model-admin.routes");
29
29
  Object.defineProperty(exports, "AI_MODEL_ADMIN_ROUTES", { enumerable: true, get: function () { return ai_model_admin_routes_1.AI_MODEL_ADMIN_ROUTES; } });
30
30
  var ai_model_public_routes_1 = require("./ai-model-public.routes");
31
31
  Object.defineProperty(exports, "AI_MODEL_PUBLIC_ROUTES", { enumerable: true, get: function () { return ai_model_public_routes_1.AI_MODEL_PUBLIC_ROUTES; } });
32
+ var ai_model_unreg_routes_1 = require("./ai-model-unreg.routes");
33
+ Object.defineProperty(exports, "AI_MODEL_UNREG_ROUTES", { enumerable: true, get: function () { return ai_model_unreg_routes_1.AI_MODEL_UNREG_ROUTES; } });
32
34
  var file_routes_1 = require("./file.routes");
33
35
  Object.defineProperty(exports, "FILE_ROUTES", { enumerable: true, get: function () { return file_routes_1.FILE_ROUTES; } });
34
36
  var chat_project_routes_1 = require("./chat-project.routes");
@@ -3,22 +3,46 @@ import { HttpMethod } from '../../../../shared/http-method';
3
3
  export declare namespace AdminAiModelCreateCommand {
4
4
  const Request: z.ZodObject<{
5
5
  title: z.ZodString;
6
- description: z.ZodOptional<z.ZodString>;
6
+ description: z.ZodDefault<z.ZodString>;
7
7
  model: z.ZodString;
8
8
  icon: z.ZodString;
9
9
  status: z.ZodDefault<z.ZodEnum<typeof import("../../schemas").AiModelStatus>>;
10
10
  order: z.ZodDefault<z.ZodNumber>;
11
11
  providerUuid: z.ZodOptional<z.ZodString>;
12
+ marks: z.ZodDefault<z.ZodArray<z.ZodEnum<typeof import("../../schemas").ModelMark>>>;
13
+ price: z.ZodDefault<z.ZodNumber>;
14
+ speed: z.ZodDefault<z.ZodNumber>;
15
+ bestFor: z.ZodDefault<z.ZodArray<z.ZodString>>;
16
+ usageExamples: z.ZodDefault<z.ZodArray<z.ZodString>>;
17
+ contextLength: z.ZodDefault<z.ZodBigInt>;
18
+ apiProvider: z.ZodDefault<z.ZodEnum<typeof import("../../schemas").ApiProvider>>;
19
+ inputModalities: z.ZodDefault<z.ZodArray<z.ZodEnum<typeof import("../../schemas").Modality>>>;
20
+ outputModalities: z.ZodDefault<z.ZodArray<z.ZodEnum<typeof import("../../schemas").Modality>>>;
21
+ modelType: z.ZodDefault<z.ZodEnum<typeof import("../../schemas").ModelType>>;
22
+ systemPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ isAvailableForUnreg: z.ZodDefault<z.ZodBoolean>;
12
24
  }, z.core.$strip>;
13
25
  const Response: z.ZodObject<{
14
26
  uuid: z.ZodString;
15
27
  title: z.ZodString;
16
- description: z.ZodNullable<z.ZodString>;
28
+ description: z.ZodString;
17
29
  model: z.ZodString;
18
30
  icon: z.ZodString;
19
31
  status: z.ZodEnum<typeof import("../../schemas").AiModelStatus>;
20
32
  order: z.ZodNumber;
21
33
  providerUuid: z.ZodNullable<z.ZodString>;
34
+ marks: z.ZodArray<z.ZodEnum<typeof import("../../schemas").ModelMark>>;
35
+ price: z.ZodNumber;
36
+ speed: z.ZodNumber;
37
+ bestFor: z.ZodArray<z.ZodString>;
38
+ usageExamples: z.ZodArray<z.ZodString>;
39
+ contextLength: z.ZodString;
40
+ apiProvider: z.ZodEnum<typeof import("../../schemas").ApiProvider>;
41
+ inputModalities: z.ZodArray<z.ZodEnum<typeof import("../../schemas").Modality>>;
42
+ outputModalities: z.ZodArray<z.ZodEnum<typeof import("../../schemas").Modality>>;
43
+ modelType: z.ZodEnum<typeof import("../../schemas").ModelType>;
44
+ systemPrompt: z.ZodNullable<z.ZodString>;
45
+ isAvailableForUnreg: z.ZodBoolean;
22
46
  createdAt: z.ZodString;
23
47
  updatedAt: z.ZodString;
24
48
  }, z.core.$strip>;
@@ -9,16 +9,40 @@ export declare namespace AdminAiModelUpdateCommand {
9
9
  status: z.ZodOptional<z.ZodEnum<typeof import("../../schemas").AiModelStatus>>;
10
10
  order: z.ZodOptional<z.ZodNumber>;
11
11
  providerUuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ marks: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof import("../../schemas").ModelMark>>>;
13
+ price: z.ZodOptional<z.ZodNumber>;
14
+ speed: z.ZodOptional<z.ZodNumber>;
15
+ bestFor: z.ZodOptional<z.ZodArray<z.ZodString>>;
16
+ usageExamples: z.ZodOptional<z.ZodArray<z.ZodString>>;
17
+ contextLength: z.ZodOptional<z.ZodBigInt>;
18
+ apiProvider: z.ZodOptional<z.ZodEnum<typeof import("../../schemas").ApiProvider>>;
19
+ inputModalities: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof import("../../schemas").Modality>>>;
20
+ outputModalities: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof import("../../schemas").Modality>>>;
21
+ modelType: z.ZodOptional<z.ZodEnum<typeof import("../../schemas").ModelType>>;
22
+ systemPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ isAvailableForUnreg: z.ZodOptional<z.ZodBoolean>;
12
24
  }, z.core.$strip>;
13
25
  const Response: z.ZodObject<{
14
26
  uuid: z.ZodString;
15
27
  title: z.ZodString;
16
- description: z.ZodNullable<z.ZodString>;
28
+ description: z.ZodString;
17
29
  model: z.ZodString;
18
30
  icon: z.ZodString;
19
31
  status: z.ZodEnum<typeof import("../../schemas").AiModelStatus>;
20
32
  order: z.ZodNumber;
21
33
  providerUuid: z.ZodNullable<z.ZodString>;
34
+ marks: z.ZodArray<z.ZodEnum<typeof import("../../schemas").ModelMark>>;
35
+ price: z.ZodNumber;
36
+ speed: z.ZodNumber;
37
+ bestFor: z.ZodArray<z.ZodString>;
38
+ usageExamples: z.ZodArray<z.ZodString>;
39
+ contextLength: z.ZodString;
40
+ apiProvider: z.ZodEnum<typeof import("../../schemas").ApiProvider>;
41
+ inputModalities: z.ZodArray<z.ZodEnum<typeof import("../../schemas").Modality>>;
42
+ outputModalities: z.ZodArray<z.ZodEnum<typeof import("../../schemas").Modality>>;
43
+ modelType: z.ZodEnum<typeof import("../../schemas").ModelType>;
44
+ systemPrompt: z.ZodNullable<z.ZodString>;
45
+ isAvailableForUnreg: z.ZodBoolean;
22
46
  createdAt: z.ZodString;
23
47
  updatedAt: z.ZodString;
24
48
  }, z.core.$strip>;
@@ -5,12 +5,24 @@ export declare namespace AdminAiModelGetModelQuery {
5
5
  const Response: z.ZodObject<{
6
6
  uuid: z.ZodString;
7
7
  title: z.ZodString;
8
- description: z.ZodNullable<z.ZodString>;
8
+ description: z.ZodString;
9
9
  model: z.ZodString;
10
10
  icon: z.ZodString;
11
11
  status: z.ZodEnum<typeof import("../../schemas").AiModelStatus>;
12
12
  order: z.ZodNumber;
13
13
  providerUuid: z.ZodNullable<z.ZodString>;
14
+ marks: z.ZodArray<z.ZodEnum<typeof import("../../schemas").ModelMark>>;
15
+ price: z.ZodNumber;
16
+ speed: z.ZodNumber;
17
+ bestFor: z.ZodArray<z.ZodString>;
18
+ usageExamples: z.ZodArray<z.ZodString>;
19
+ contextLength: z.ZodString;
20
+ apiProvider: z.ZodEnum<typeof import("../../schemas").ApiProvider>;
21
+ inputModalities: z.ZodArray<z.ZodEnum<typeof import("../../schemas").Modality>>;
22
+ outputModalities: z.ZodArray<z.ZodEnum<typeof import("../../schemas").Modality>>;
23
+ modelType: z.ZodEnum<typeof import("../../schemas").ModelType>;
24
+ systemPrompt: z.ZodNullable<z.ZodString>;
25
+ isAvailableForUnreg: z.ZodBoolean;
14
26
  createdAt: z.ZodString;
15
27
  updatedAt: z.ZodString;
16
28
  }, z.core.$strip>;
@@ -12,12 +12,24 @@ export declare namespace AdminAiModelGetModelsQuery {
12
12
  data: z.ZodArray<z.ZodObject<{
13
13
  uuid: z.ZodString;
14
14
  title: z.ZodString;
15
- description: z.ZodNullable<z.ZodString>;
15
+ description: z.ZodString;
16
16
  model: z.ZodString;
17
17
  icon: z.ZodString;
18
18
  status: z.ZodEnum<typeof import("../../schemas").AiModelStatus>;
19
19
  order: z.ZodNumber;
20
20
  providerUuid: z.ZodNullable<z.ZodString>;
21
+ marks: z.ZodArray<z.ZodEnum<typeof import("../../schemas").ModelMark>>;
22
+ price: z.ZodNumber;
23
+ speed: z.ZodNumber;
24
+ bestFor: z.ZodArray<z.ZodString>;
25
+ usageExamples: z.ZodArray<z.ZodString>;
26
+ contextLength: z.ZodString;
27
+ apiProvider: z.ZodEnum<typeof import("../../schemas").ApiProvider>;
28
+ inputModalities: z.ZodArray<z.ZodEnum<typeof import("../../schemas").Modality>>;
29
+ outputModalities: z.ZodArray<z.ZodEnum<typeof import("../../schemas").Modality>>;
30
+ modelType: z.ZodEnum<typeof import("../../schemas").ModelType>;
31
+ systemPrompt: z.ZodNullable<z.ZodString>;
32
+ isAvailableForUnreg: z.ZodBoolean;
21
33
  createdAt: z.ZodString;
22
34
  updatedAt: z.ZodString;
23
35
  }, z.core.$strip>>;
@@ -3,6 +3,11 @@ export declare enum AiModelErrorCode {
3
3
  MODEL_NOT_FOUND = "MODEL_NOT_FOUND",
4
4
  INVALID_MODEL_STATUS = "INVALID_MODEL_STATUS",
5
5
  MODEL_ALREADY_EXISTS = "MODEL_ALREADY_EXISTS",
6
- INVALID_MODEL_IDENTIFIER = "INVALID_MODEL_IDENTIFIER"
6
+ INVALID_MODEL_IDENTIFIER = "INVALID_MODEL_IDENTIFIER",
7
+ INVALID_MODEL_MARK = "INVALID_MODEL_MARK",
8
+ INVALID_MODEL_TYPE = "INVALID_MODEL_TYPE",
9
+ INVALID_API_PROVIDER = "INVALID_API_PROVIDER",
10
+ INVALID_MODALITY = "INVALID_MODALITY",
11
+ INVALID_SPEED = "INVALID_SPEED"
7
12
  }
8
13
  export declare const AI_MODEL_ERRORS: Record<AiModelErrorCode, ErrorMetadata>;
@@ -7,6 +7,11 @@ var AiModelErrorCode;
7
7
  AiModelErrorCode["INVALID_MODEL_STATUS"] = "INVALID_MODEL_STATUS";
8
8
  AiModelErrorCode["MODEL_ALREADY_EXISTS"] = "MODEL_ALREADY_EXISTS";
9
9
  AiModelErrorCode["INVALID_MODEL_IDENTIFIER"] = "INVALID_MODEL_IDENTIFIER";
10
+ AiModelErrorCode["INVALID_MODEL_MARK"] = "INVALID_MODEL_MARK";
11
+ AiModelErrorCode["INVALID_MODEL_TYPE"] = "INVALID_MODEL_TYPE";
12
+ AiModelErrorCode["INVALID_API_PROVIDER"] = "INVALID_API_PROVIDER";
13
+ AiModelErrorCode["INVALID_MODALITY"] = "INVALID_MODALITY";
14
+ AiModelErrorCode["INVALID_SPEED"] = "INVALID_SPEED";
10
15
  })(AiModelErrorCode || (exports.AiModelErrorCode = AiModelErrorCode = {}));
11
16
  exports.AI_MODEL_ERRORS = {
12
17
  [AiModelErrorCode.MODEL_NOT_FOUND]: {
@@ -25,4 +30,24 @@ exports.AI_MODEL_ERRORS = {
25
30
  code: AiModelErrorCode.INVALID_MODEL_IDENTIFIER,
26
31
  statusCode: 400,
27
32
  },
33
+ [AiModelErrorCode.INVALID_MODEL_MARK]: {
34
+ code: AiModelErrorCode.INVALID_MODEL_MARK,
35
+ statusCode: 400,
36
+ },
37
+ [AiModelErrorCode.INVALID_MODEL_TYPE]: {
38
+ code: AiModelErrorCode.INVALID_MODEL_TYPE,
39
+ statusCode: 400,
40
+ },
41
+ [AiModelErrorCode.INVALID_API_PROVIDER]: {
42
+ code: AiModelErrorCode.INVALID_API_PROVIDER,
43
+ statusCode: 400,
44
+ },
45
+ [AiModelErrorCode.INVALID_MODALITY]: {
46
+ code: AiModelErrorCode.INVALID_MODALITY,
47
+ statusCode: 400,
48
+ },
49
+ [AiModelErrorCode.INVALID_SPEED]: {
50
+ code: AiModelErrorCode.INVALID_SPEED,
51
+ statusCode: 400,
52
+ },
28
53
  };
@@ -3,3 +3,4 @@ export * from './schemas';
3
3
  export * from './admin/commands';
4
4
  export * from './admin/queries';
5
5
  export * from './public/queries';
6
+ export * from './unreg';
@@ -19,3 +19,4 @@ __exportStar(require("./schemas"), exports);
19
19
  __exportStar(require("./admin/commands"), exports);
20
20
  __exportStar(require("./admin/queries"), exports);
21
21
  __exportStar(require("./public/queries"), exports);
22
+ __exportStar(require("./unreg"), exports);
@@ -5,14 +5,17 @@ export declare namespace PublicAiModelGetActiveModelsQuery {
5
5
  const Response: z.ZodArray<z.ZodObject<{
6
6
  uuid: z.ZodString;
7
7
  title: z.ZodString;
8
- description: z.ZodNullable<z.ZodString>;
9
- model: z.ZodString;
10
- icon: z.ZodString;
11
- status: z.ZodEnum<typeof import("../../schemas").AiModelStatus>;
12
8
  order: z.ZodNumber;
13
- providerUuid: z.ZodNullable<z.ZodString>;
14
- createdAt: z.ZodString;
15
- updatedAt: z.ZodString;
9
+ description: z.ZodString;
10
+ marks: z.ZodArray<z.ZodEnum<typeof import("../../schemas").ModelMark>>;
11
+ icon: z.ZodString;
12
+ price: z.ZodNumber;
13
+ speed: z.ZodNumber;
14
+ bestFor: z.ZodArray<z.ZodString>;
15
+ usageExamples: z.ZodArray<z.ZodString>;
16
+ inputModalities: z.ZodArray<z.ZodEnum<typeof import("../../schemas").Modality>>;
17
+ outputModalities: z.ZodArray<z.ZodEnum<typeof import("../../schemas").Modality>>;
18
+ modelType: z.ZodEnum<typeof import("../../schemas").ModelType>;
16
19
  }, z.core.$strip>>;
17
20
  const URL: "/api/v1/ai-models/";
18
21
  const METHOD = HttpMethod.GET;
@@ -8,7 +8,7 @@ const http_method_1 = require("../../../../shared/http-method");
8
8
  var PublicAiModelGetActiveModelsQuery;
9
9
  (function (PublicAiModelGetActiveModelsQuery) {
10
10
  PublicAiModelGetActiveModelsQuery.Request = zod_1.z.void();
11
- PublicAiModelGetActiveModelsQuery.Response = zod_1.z.array(schemas_1.ModelResponseSchema);
11
+ PublicAiModelGetActiveModelsQuery.Response = zod_1.z.array(schemas_1.PublicModelResponseSchema);
12
12
  PublicAiModelGetActiveModelsQuery.URL = rest_api_1.REST_API.V1.AI_MODEL.PUBLIC.GET_ALL;
13
13
  PublicAiModelGetActiveModelsQuery.METHOD = http_method_1.HttpMethod.GET;
14
14
  })(PublicAiModelGetActiveModelsQuery || (exports.PublicAiModelGetActiveModelsQuery = PublicAiModelGetActiveModelsQuery = {}));
@@ -12,9 +12,16 @@ export declare namespace PublicAiModelGetModelsListQuery {
12
12
  uuid: z.ZodString;
13
13
  title: z.ZodString;
14
14
  order: z.ZodNumber;
15
- description: z.ZodNullable<z.ZodString>;
15
+ description: z.ZodString;
16
+ marks: z.ZodArray<z.ZodEnum<typeof import("../../schemas").ModelMark>>;
16
17
  icon: z.ZodString;
17
- model: z.ZodString;
18
+ price: z.ZodNumber;
19
+ speed: z.ZodNumber;
20
+ bestFor: z.ZodArray<z.ZodString>;
21
+ usageExamples: z.ZodArray<z.ZodString>;
22
+ inputModalities: z.ZodArray<z.ZodEnum<typeof import("../../schemas").Modality>>;
23
+ outputModalities: z.ZodArray<z.ZodEnum<typeof import("../../schemas").Modality>>;
24
+ modelType: z.ZodEnum<typeof import("../../schemas").ModelType>;
18
25
  }, z.core.$strip>>;
19
26
  }, z.core.$strip>>;
20
27
  }, z.core.$strip>;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * API Provider for AI Models
3
+ */
4
+ export declare enum ApiProvider {
5
+ OPENROUTER = "openrouter"
6
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ApiProvider = void 0;
4
+ /**
5
+ * API Provider for AI Models
6
+ */
7
+ var ApiProvider;
8
+ (function (ApiProvider) {
9
+ ApiProvider["OPENROUTER"] = "openrouter";
10
+ })(ApiProvider || (exports.ApiProvider = ApiProvider = {}));
@@ -1,11 +1,27 @@
1
1
  import { z } from 'zod';
2
2
  import { AiModelStatus } from './ai-model-status.enum';
3
+ import { ModelMark } from './model-mark.enum';
4
+ import { ModelType } from './model-type.enum';
5
+ import { ApiProvider } from './api-provider.enum';
6
+ import { Modality } from './modality.enum';
3
7
  export declare const CreateModelRequestSchema: z.ZodObject<{
4
8
  title: z.ZodString;
5
- description: z.ZodOptional<z.ZodString>;
9
+ description: z.ZodDefault<z.ZodString>;
6
10
  model: z.ZodString;
7
11
  icon: z.ZodString;
8
12
  status: z.ZodDefault<z.ZodEnum<typeof AiModelStatus>>;
9
13
  order: z.ZodDefault<z.ZodNumber>;
10
14
  providerUuid: z.ZodOptional<z.ZodString>;
15
+ marks: z.ZodDefault<z.ZodArray<z.ZodEnum<typeof ModelMark>>>;
16
+ price: z.ZodDefault<z.ZodNumber>;
17
+ speed: z.ZodDefault<z.ZodNumber>;
18
+ bestFor: z.ZodDefault<z.ZodArray<z.ZodString>>;
19
+ usageExamples: z.ZodDefault<z.ZodArray<z.ZodString>>;
20
+ contextLength: z.ZodDefault<z.ZodBigInt>;
21
+ apiProvider: z.ZodDefault<z.ZodEnum<typeof ApiProvider>>;
22
+ inputModalities: z.ZodDefault<z.ZodArray<z.ZodEnum<typeof Modality>>>;
23
+ outputModalities: z.ZodDefault<z.ZodArray<z.ZodEnum<typeof Modality>>>;
24
+ modelType: z.ZodDefault<z.ZodEnum<typeof ModelType>>;
25
+ systemPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ isAvailableForUnreg: z.ZodDefault<z.ZodBoolean>;
11
27
  }, z.core.$strip>;
@@ -3,9 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CreateModelRequestSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const ai_model_status_enum_1 = require("./ai-model-status.enum");
6
+ const model_mark_enum_1 = require("./model-mark.enum");
7
+ const model_type_enum_1 = require("./model-type.enum");
8
+ const api_provider_enum_1 = require("./api-provider.enum");
9
+ const modality_enum_1 = require("./modality.enum");
6
10
  exports.CreateModelRequestSchema = zod_1.z.object({
7
11
  title: zod_1.z.string().min(1).max(255),
8
- description: zod_1.z.string().optional(),
12
+ description: zod_1.z.string().default(''),
9
13
  model: zod_1.z.string().min(1).max(100),
10
14
  icon: zod_1.z
11
15
  .string()
@@ -16,4 +20,16 @@ exports.CreateModelRequestSchema = zod_1.z.object({
16
20
  status: zod_1.z.nativeEnum(ai_model_status_enum_1.AiModelStatus).default(ai_model_status_enum_1.AiModelStatus.ACTIVE),
17
21
  order: zod_1.z.number().int().nonnegative().default(0),
18
22
  providerUuid: zod_1.z.string().uuid().optional(),
23
+ marks: zod_1.z.array(zod_1.z.nativeEnum(model_mark_enum_1.ModelMark)).default([]),
24
+ price: zod_1.z.number().int().positive().default(1),
25
+ speed: zod_1.z.number().int().min(1).max(5).default(3),
26
+ bestFor: zod_1.z.array(zod_1.z.string()).default([]),
27
+ usageExamples: zod_1.z.array(zod_1.z.string()).default([]),
28
+ contextLength: zod_1.z.bigint().positive().default(BigInt(128000)),
29
+ apiProvider: zod_1.z.nativeEnum(api_provider_enum_1.ApiProvider).default(api_provider_enum_1.ApiProvider.OPENROUTER),
30
+ inputModalities: zod_1.z.array(zod_1.z.nativeEnum(modality_enum_1.Modality)).default([modality_enum_1.Modality.TEXT]),
31
+ outputModalities: zod_1.z.array(zod_1.z.nativeEnum(modality_enum_1.Modality)).default([modality_enum_1.Modality.TEXT]),
32
+ modelType: zod_1.z.nativeEnum(model_type_enum_1.ModelType).default(model_type_enum_1.ModelType.TEXT),
33
+ systemPrompt: zod_1.z.string().nullable().optional(),
34
+ isAvailableForUnreg: zod_1.z.boolean().default(false),
19
35
  });
@@ -1,7 +1,12 @@
1
1
  export * from './ai-model-status.enum';
2
+ export * from './model-mark.enum';
3
+ export * from './model-type.enum';
4
+ export * from './api-provider.enum';
5
+ export * from './modality.enum';
2
6
  export * from './create-model-request.schema';
3
7
  export * from './update-model-request.schema';
4
8
  export * from './model-response.schema';
5
9
  export * from './route-params.schema';
6
10
  export * from './get-models-filters.schema';
7
11
  export * from './models-list-response.schema';
12
+ export * from './unreg-models-list-response.schema';
@@ -15,9 +15,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./ai-model-status.enum"), exports);
18
+ __exportStar(require("./model-mark.enum"), exports);
19
+ __exportStar(require("./model-type.enum"), exports);
20
+ __exportStar(require("./api-provider.enum"), exports);
21
+ __exportStar(require("./modality.enum"), exports);
18
22
  __exportStar(require("./create-model-request.schema"), exports);
19
23
  __exportStar(require("./update-model-request.schema"), exports);
20
24
  __exportStar(require("./model-response.schema"), exports);
21
25
  __exportStar(require("./route-params.schema"), exports);
22
26
  __exportStar(require("./get-models-filters.schema"), exports);
23
27
  __exportStar(require("./models-list-response.schema"), exports);
28
+ __exportStar(require("./unreg-models-list-response.schema"), exports);
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Modality - input/output capabilities of AI models
3
+ */
4
+ export declare enum Modality {
5
+ TEXT = "text",
6
+ IMAGE = "image",
7
+ FILE = "file",
8
+ AUDIO = "audio",
9
+ VIDEO = "video"
10
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Modality = void 0;
4
+ /**
5
+ * Modality - input/output capabilities of AI models
6
+ */
7
+ var Modality;
8
+ (function (Modality) {
9
+ Modality["TEXT"] = "text";
10
+ Modality["IMAGE"] = "image";
11
+ Modality["FILE"] = "file";
12
+ Modality["AUDIO"] = "audio";
13
+ Modality["VIDEO"] = "video";
14
+ })(Modality || (exports.Modality = Modality = {}));
@@ -0,0 +1,8 @@
1
+ /**
2
+ * AI Model Mark - visual tags for models
3
+ */
4
+ export declare enum ModelMark {
5
+ NEW = "new",
6
+ HOT = "hot",
7
+ BEST = "best"
8
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ModelMark = void 0;
4
+ /**
5
+ * AI Model Mark - visual tags for models
6
+ */
7
+ var ModelMark;
8
+ (function (ModelMark) {
9
+ ModelMark["NEW"] = "new";
10
+ ModelMark["HOT"] = "hot";
11
+ ModelMark["BEST"] = "best";
12
+ })(ModelMark || (exports.ModelMark = ModelMark = {}));
@@ -1,17 +1,71 @@
1
1
  import { z } from 'zod';
2
2
  import { AiModelStatus } from './ai-model-status.enum';
3
+ import { ModelMark } from './model-mark.enum';
4
+ import { ModelType } from './model-type.enum';
5
+ import { ApiProvider } from './api-provider.enum';
6
+ import { Modality } from './modality.enum';
3
7
  /**
4
- * AI Model Response Schema
8
+ * AI Model Response Schema (Admin - full data)
5
9
  */
6
10
  export declare const ModelResponseSchema: z.ZodObject<{
7
11
  uuid: z.ZodString;
8
12
  title: z.ZodString;
9
- description: z.ZodNullable<z.ZodString>;
13
+ description: z.ZodString;
10
14
  model: z.ZodString;
11
15
  icon: z.ZodString;
12
16
  status: z.ZodEnum<typeof AiModelStatus>;
13
17
  order: z.ZodNumber;
14
18
  providerUuid: z.ZodNullable<z.ZodString>;
19
+ marks: z.ZodArray<z.ZodEnum<typeof ModelMark>>;
20
+ price: z.ZodNumber;
21
+ speed: z.ZodNumber;
22
+ bestFor: z.ZodArray<z.ZodString>;
23
+ usageExamples: z.ZodArray<z.ZodString>;
24
+ contextLength: z.ZodString;
25
+ apiProvider: z.ZodEnum<typeof ApiProvider>;
26
+ inputModalities: z.ZodArray<z.ZodEnum<typeof Modality>>;
27
+ outputModalities: z.ZodArray<z.ZodEnum<typeof Modality>>;
28
+ modelType: z.ZodEnum<typeof ModelType>;
29
+ systemPrompt: z.ZodNullable<z.ZodString>;
30
+ isAvailableForUnreg: z.ZodBoolean;
15
31
  createdAt: z.ZodString;
16
32
  updatedAt: z.ZodString;
17
33
  }, z.core.$strip>;
34
+ /**
35
+ * Public AI Model Response Schema (without sensitive fields)
36
+ */
37
+ export declare const PublicModelResponseSchema: z.ZodObject<{
38
+ uuid: z.ZodString;
39
+ title: z.ZodString;
40
+ order: z.ZodNumber;
41
+ description: z.ZodString;
42
+ marks: z.ZodArray<z.ZodEnum<typeof ModelMark>>;
43
+ icon: z.ZodString;
44
+ price: z.ZodNumber;
45
+ speed: z.ZodNumber;
46
+ bestFor: z.ZodArray<z.ZodString>;
47
+ usageExamples: z.ZodArray<z.ZodString>;
48
+ inputModalities: z.ZodArray<z.ZodEnum<typeof Modality>>;
49
+ outputModalities: z.ZodArray<z.ZodEnum<typeof Modality>>;
50
+ modelType: z.ZodEnum<typeof ModelType>;
51
+ }, z.core.$strip>;
52
+ /**
53
+ * Unreg User AI Model Response Schema
54
+ * Same as Public but with access field instead of isAvailableForUnreg
55
+ */
56
+ export declare const UnregModelResponseSchema: z.ZodObject<{
57
+ uuid: z.ZodString;
58
+ title: z.ZodString;
59
+ order: z.ZodNumber;
60
+ description: z.ZodString;
61
+ marks: z.ZodArray<z.ZodEnum<typeof ModelMark>>;
62
+ icon: z.ZodString;
63
+ price: z.ZodNumber;
64
+ speed: z.ZodNumber;
65
+ bestFor: z.ZodArray<z.ZodString>;
66
+ usageExamples: z.ZodArray<z.ZodString>;
67
+ inputModalities: z.ZodArray<z.ZodEnum<typeof Modality>>;
68
+ outputModalities: z.ZodArray<z.ZodEnum<typeof Modality>>;
69
+ modelType: z.ZodEnum<typeof ModelType>;
70
+ access: z.ZodBoolean;
71
+ }, z.core.$strip>;