@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.
- package/build/controllers/ai-model.controllers.d.ts +1 -0
- package/build/controllers/ai-model.controllers.js +2 -1
- package/build/controllers/index.d.ts +2 -1
- package/build/controllers/index.js +4 -1
- package/build/controllers/page-hints.controllers.d.ts +4 -0
- package/build/controllers/page-hints.controllers.js +7 -0
- package/build/rest-api.d.ts +12 -0
- package/build/rest-api.js +13 -0
- package/build/routes/ai-model-unreg.routes.d.ts +3 -0
- package/build/routes/ai-model-unreg.routes.js +6 -0
- package/build/routes/index.d.ts +2 -0
- package/build/routes/index.js +5 -1
- package/build/routes/page-hints.routes.d.ts +10 -0
- package/build/routes/page-hints.routes.js +13 -0
- package/build/shared/api-error-response.schema.d.ts +3 -0
- package/build/shared/api-error-response.schema.js +7 -1
- package/build/v1/ai-model/admin/commands/create-model.command.d.ts +26 -2
- package/build/v1/ai-model/admin/commands/update-model.command.d.ts +25 -1
- package/build/v1/ai-model/admin/queries/get-model.query.d.ts +13 -1
- package/build/v1/ai-model/admin/queries/get-models.query.d.ts +13 -1
- package/build/v1/ai-model/ai-model.errors.d.ts +6 -1
- package/build/v1/ai-model/ai-model.errors.js +25 -0
- package/build/v1/ai-model/index.d.ts +1 -0
- package/build/v1/ai-model/index.js +1 -0
- package/build/v1/ai-model/public/queries/get-active-models.query.d.ts +10 -7
- package/build/v1/ai-model/public/queries/get-active-models.query.js +1 -1
- package/build/v1/ai-model/public/queries/get-models-list.query.d.ts +9 -2
- package/build/v1/ai-model/schemas/api-provider.enum.d.ts +6 -0
- package/build/v1/ai-model/schemas/api-provider.enum.js +10 -0
- package/build/v1/ai-model/schemas/create-model-request.schema.d.ts +17 -1
- package/build/v1/ai-model/schemas/create-model-request.schema.js +17 -1
- package/build/v1/ai-model/schemas/index.d.ts +5 -0
- package/build/v1/ai-model/schemas/index.js +5 -0
- package/build/v1/ai-model/schemas/modality.enum.d.ts +10 -0
- package/build/v1/ai-model/schemas/modality.enum.js +14 -0
- package/build/v1/ai-model/schemas/model-mark.enum.d.ts +8 -0
- package/build/v1/ai-model/schemas/model-mark.enum.js +12 -0
- package/build/v1/ai-model/schemas/model-response.schema.d.ts +56 -2
- package/build/v1/ai-model/schemas/model-response.schema.js +40 -3
- package/build/v1/ai-model/schemas/model-type.enum.d.ts +8 -0
- package/build/v1/ai-model/schemas/model-type.enum.js +12 -0
- package/build/v1/ai-model/schemas/models-list-response.schema.d.ts +29 -8
- package/build/v1/ai-model/schemas/models-list-response.schema.js +3 -10
- package/build/v1/ai-model/schemas/unreg-models-list-response.schema.d.ts +73 -0
- package/build/v1/ai-model/schemas/unreg-models-list-response.schema.js +28 -0
- package/build/v1/ai-model/schemas/update-model-request.schema.d.ts +16 -0
- package/build/v1/ai-model/schemas/update-model-request.schema.js +16 -0
- package/build/v1/ai-model/unreg/index.d.ts +1 -0
- package/build/v1/ai-model/unreg/index.js +17 -0
- package/build/v1/ai-model/unreg/queries/get-models-list.query.d.ts +33 -0
- package/build/v1/ai-model/unreg/queries/get-models-list.query.js +14 -0
- package/build/v1/ai-model/unreg/queries/index.d.ts +1 -0
- package/build/v1/ai-model/unreg/queries/index.js +5 -0
- package/build/v1/blog/schemas/update-post-request.schema.js +1 -2
- package/build/v1/email-validation/email-validation.errors.d.ts +19 -0
- package/build/v1/email-validation/email-validation.errors.js +48 -0
- package/build/v1/email-validation/index.d.ts +1 -0
- package/build/v1/email-validation/index.js +17 -0
- package/build/v1/index.d.ts +3 -0
- package/build/v1/index.js +3 -0
- package/build/v1/message/message.errors.d.ts +1 -0
- package/build/v1/message/message.errors.js +5 -0
- package/build/v1/page-hints/admin/commands/create-hint.command.d.ts +20 -0
- package/build/v1/page-hints/admin/commands/create-hint.command.js +13 -0
- package/build/v1/page-hints/admin/commands/delete-hint.command.d.ts +5 -0
- package/build/v1/page-hints/admin/commands/delete-hint.command.js +10 -0
- package/build/v1/page-hints/admin/commands/index.d.ts +3 -0
- package/build/v1/page-hints/admin/commands/index.js +9 -0
- package/build/v1/page-hints/admin/commands/update-hint.command.d.ts +20 -0
- package/build/v1/page-hints/admin/commands/update-hint.command.js +13 -0
- package/build/v1/page-hints/admin/queries/get-hint.query.d.ts +15 -0
- package/build/v1/page-hints/admin/queries/get-hint.query.js +12 -0
- package/build/v1/page-hints/admin/queries/get-hints.query.d.ts +15 -0
- package/build/v1/page-hints/admin/queries/get-hints.query.js +13 -0
- package/build/v1/page-hints/admin/queries/index.d.ts +2 -0
- package/build/v1/page-hints/admin/queries/index.js +7 -0
- package/build/v1/page-hints/index.d.ts +7 -0
- package/build/v1/page-hints/index.js +30 -0
- package/build/v1/page-hints/page-hints.errors.d.ts +8 -0
- package/build/v1/page-hints/page-hints.errors.js +31 -0
- package/build/v1/page-hints/schemas/create-hint-request.schema.d.ts +9 -0
- package/build/v1/page-hints/schemas/create-hint-request.schema.js +11 -0
- package/build/v1/page-hints/schemas/hint-response.schema.d.ts +22 -0
- package/build/v1/page-hints/schemas/hint-response.schema.js +24 -0
- package/build/v1/page-hints/schemas/index.d.ts +3 -0
- package/build/v1/page-hints/schemas/index.js +10 -0
- package/build/v1/page-hints/schemas/update-hint-request.schema.d.ts +9 -0
- package/build/v1/page-hints/schemas/update-hint-request.schema.js +11 -0
- package/build/v1/registration-antifraud/enums/fraud-check-result.enum.d.ts +4 -0
- package/build/v1/registration-antifraud/enums/fraud-check-result.enum.js +8 -0
- package/build/v1/registration-antifraud/enums/fraud-reason.enum.d.ts +5 -0
- package/build/v1/registration-antifraud/enums/fraud-reason.enum.js +9 -0
- package/build/v1/registration-antifraud/enums/index.d.ts +2 -0
- package/build/v1/registration-antifraud/enums/index.js +18 -0
- package/build/v1/registration-antifraud/index.d.ts +2 -0
- package/build/v1/registration-antifraud/index.js +18 -0
- package/build/v1/registration-antifraud/registration-antifraud.errors.d.ts +6 -0
- package/build/v1/registration-antifraud/registration-antifraud.errors.js +18 -0
- package/build/v1/seo-pages/public/queries/get-page-by-alias.query.d.ts +5 -0
- package/build/v1/seo-pages/public/queries/get-page-by-alias.query.js +1 -1
- package/build/v1/seo-pages/schemas/index.d.ts +1 -1
- package/build/v1/seo-pages/schemas/index.js +2 -1
- package/build/v1/seo-pages/schemas/page-response.schema.d.ts +33 -0
- package/build/v1/seo-pages/schemas/page-response.schema.js +8 -1
- package/build/v1/wallet/schemas/metadata.schema.js +1 -2
- package/package.json +1 -1
|
@@ -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';
|
|
@@ -15,3 +15,4 @@ export { MESSAGE_UNREG_CONTROLLER, MESSAGE_REG_CONTROLLER } from './message.cont
|
|
|
15
15
|
export { VERIFICATION_CONTROLLER } from './verification.controllers';
|
|
16
16
|
export { SITEMAP_CONTROLLER } from './sitemap.controllers';
|
|
17
17
|
export { WALLET_CONTROLLER } from './wallet.controllers';
|
|
18
|
+
export { PAGE_HINTS_ADMIN_CONTROLLER } from './page-hints.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.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
|
*/
|
|
@@ -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");
|
|
@@ -41,3 +42,5 @@ var sitemap_controllers_1 = require("./sitemap.controllers");
|
|
|
41
42
|
Object.defineProperty(exports, "SITEMAP_CONTROLLER", { enumerable: true, get: function () { return sitemap_controllers_1.SITEMAP_CONTROLLER; } });
|
|
42
43
|
var wallet_controllers_1 = require("./wallet.controllers");
|
|
43
44
|
Object.defineProperty(exports, "WALLET_CONTROLLER", { enumerable: true, get: function () { return wallet_controllers_1.WALLET_CONTROLLER; } });
|
|
45
|
+
var page_hints_controllers_1 = require("./page-hints.controllers");
|
|
46
|
+
Object.defineProperty(exports, "PAGE_HINTS_ADMIN_CONTROLLER", { enumerable: true, get: function () { return page_hints_controllers_1.PAGE_HINTS_ADMIN_CONTROLLER; } });
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PAGE_HINTS_ADMIN_CONTROLLER = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Page Hints Controller paths for NestJS @Controller decorator
|
|
6
|
+
*/
|
|
7
|
+
exports.PAGE_HINTS_ADMIN_CONTROLLER = 'v1/admin/seo-pages/:pageUuid/hints';
|
package/build/rest-api.d.ts
CHANGED
|
@@ -81,6 +81,15 @@ export declare const REST_API: {
|
|
|
81
81
|
readonly GET_BY_ALIAS: (alias: string) => string;
|
|
82
82
|
};
|
|
83
83
|
};
|
|
84
|
+
readonly PAGE_HINTS: {
|
|
85
|
+
readonly ADMIN: {
|
|
86
|
+
readonly CREATE: (pageUuid: string) => string;
|
|
87
|
+
readonly GET_ALL: (pageUuid: string) => string;
|
|
88
|
+
readonly GET_BY_UUID: (pageUuid: string, hintUuid: string) => string;
|
|
89
|
+
readonly UPDATE: (pageUuid: string, hintUuid: string) => string;
|
|
90
|
+
readonly DELETE: (pageUuid: string, hintUuid: string) => string;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
84
93
|
readonly AI_PROVIDER: {
|
|
85
94
|
readonly ADMIN: {
|
|
86
95
|
readonly CREATE: "/api/v1/admin/ai-providers/";
|
|
@@ -105,6 +114,9 @@ export declare const REST_API: {
|
|
|
105
114
|
readonly GET_ALL: "/api/v1/ai-models/";
|
|
106
115
|
readonly GET_LIST: "/api/v1/ai-models/list";
|
|
107
116
|
};
|
|
117
|
+
readonly UNREG: {
|
|
118
|
+
readonly GET_LIST: "/api/v1/unreg/ai-models/list";
|
|
119
|
+
};
|
|
108
120
|
};
|
|
109
121
|
readonly FILE: {
|
|
110
122
|
readonly UPLOAD_IMAGE: "/file-api/v1/files/upload-image";
|
package/build/rest-api.js
CHANGED
|
@@ -91,6 +91,16 @@ exports.REST_API = {
|
|
|
91
91
|
GET_BY_ALIAS: (alias) => `${exports.ROOT}/${controllers_1.SEO_PAGES_PUBLIC_CONTROLLER}/${alias}`,
|
|
92
92
|
},
|
|
93
93
|
},
|
|
94
|
+
// Page Hints module (nested under SEO Pages)
|
|
95
|
+
PAGE_HINTS: {
|
|
96
|
+
ADMIN: {
|
|
97
|
+
CREATE: (pageUuid) => `${exports.ROOT}/${controllers_1.PAGE_HINTS_ADMIN_CONTROLLER.replace(':pageUuid', pageUuid)}/${routes_1.PAGE_HINTS_ROUTES.CREATE}`,
|
|
98
|
+
GET_ALL: (pageUuid) => `${exports.ROOT}/${controllers_1.PAGE_HINTS_ADMIN_CONTROLLER.replace(':pageUuid', pageUuid)}/${routes_1.PAGE_HINTS_ROUTES.GET_ALL}`,
|
|
99
|
+
GET_BY_UUID: (pageUuid, hintUuid) => `${exports.ROOT}/${controllers_1.PAGE_HINTS_ADMIN_CONTROLLER.replace(':pageUuid', pageUuid)}/${hintUuid}`,
|
|
100
|
+
UPDATE: (pageUuid, hintUuid) => `${exports.ROOT}/${controllers_1.PAGE_HINTS_ADMIN_CONTROLLER.replace(':pageUuid', pageUuid)}/${hintUuid}`,
|
|
101
|
+
DELETE: (pageUuid, hintUuid) => `${exports.ROOT}/${controllers_1.PAGE_HINTS_ADMIN_CONTROLLER.replace(':pageUuid', pageUuid)}/${hintUuid}`,
|
|
102
|
+
},
|
|
103
|
+
},
|
|
94
104
|
// AI Provider module
|
|
95
105
|
AI_PROVIDER: {
|
|
96
106
|
ADMIN: {
|
|
@@ -117,6 +127,9 @@ exports.REST_API = {
|
|
|
117
127
|
GET_ALL: `${exports.ROOT}/${controllers_1.AI_MODEL_PUBLIC_CONTROLLER}/${routes_1.AI_MODEL_PUBLIC_ROUTES.GET_ALL}`,
|
|
118
128
|
GET_LIST: `${exports.ROOT}/${controllers_1.AI_MODEL_PUBLIC_CONTROLLER}/${routes_1.AI_MODEL_PUBLIC_ROUTES.GET_LIST}`,
|
|
119
129
|
},
|
|
130
|
+
UNREG: {
|
|
131
|
+
GET_LIST: `${exports.ROOT}/${controllers_1.AI_MODEL_UNREG_CONTROLLER}/${routes_1.AI_MODEL_UNREG_ROUTES.GET_LIST}`,
|
|
132
|
+
},
|
|
120
133
|
},
|
|
121
134
|
// File module (External Go service)
|
|
122
135
|
FILE: {
|
package/build/routes/index.d.ts
CHANGED
|
@@ -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';
|
|
@@ -20,3 +21,4 @@ export { MESSAGE_UNREG_ROUTES, MESSAGE_REG_ROUTES } from './message.routes';
|
|
|
20
21
|
export { VERIFICATION_ROUTES } from './verification.routes';
|
|
21
22
|
export { SITEMAP_ROUTES } from './sitemap.routes';
|
|
22
23
|
export { WALLET_ROUTES } from './wallet.routes';
|
|
24
|
+
export { PAGE_HINTS_ROUTES } from './page-hints.routes';
|
package/build/routes/index.js
CHANGED
|
@@ -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.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
|
*/
|
|
@@ -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");
|
|
@@ -46,3 +48,5 @@ var sitemap_routes_1 = require("./sitemap.routes");
|
|
|
46
48
|
Object.defineProperty(exports, "SITEMAP_ROUTES", { enumerable: true, get: function () { return sitemap_routes_1.SITEMAP_ROUTES; } });
|
|
47
49
|
var wallet_routes_1 = require("./wallet.routes");
|
|
48
50
|
Object.defineProperty(exports, "WALLET_ROUTES", { enumerable: true, get: function () { return wallet_routes_1.WALLET_ROUTES; } });
|
|
51
|
+
var page_hints_routes_1 = require("./page-hints.routes");
|
|
52
|
+
Object.defineProperty(exports, "PAGE_HINTS_ROUTES", { enumerable: true, get: function () { return page_hints_routes_1.PAGE_HINTS_ROUTES; } });
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PAGE_HINTS_ROUTES = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Page Hints Admin Routes
|
|
6
|
+
*/
|
|
7
|
+
exports.PAGE_HINTS_ROUTES = {
|
|
8
|
+
CREATE: '',
|
|
9
|
+
GET_ALL: '',
|
|
10
|
+
GET_BY_UUID: ':hintUuid',
|
|
11
|
+
UPDATE: ':hintUuid',
|
|
12
|
+
DELETE: ':hintUuid',
|
|
13
|
+
};
|
|
@@ -8,12 +8,14 @@ import { z } from 'zod';
|
|
|
8
8
|
* @example
|
|
9
9
|
* {
|
|
10
10
|
* "code": "EMAIL_ALREADY_EXISTS",
|
|
11
|
+
* "message": "Email already exists",
|
|
11
12
|
* "requestId": "41572f77-891e-4d64-9887-6f31b952e0a1"
|
|
12
13
|
* }
|
|
13
14
|
*
|
|
14
15
|
* @example with details (validation errors)
|
|
15
16
|
* {
|
|
16
17
|
* "code": "VALIDATION_ERROR",
|
|
18
|
+
* "message": "Validation failed",
|
|
17
19
|
* "requestId": "41572f77-891e-4d64-9887-6f31b952e0a1",
|
|
18
20
|
* "details": {
|
|
19
21
|
* "email": ["Invalid email format"],
|
|
@@ -23,6 +25,7 @@ import { z } from 'zod';
|
|
|
23
25
|
*/
|
|
24
26
|
export declare const ApiErrorResponseSchema: z.ZodObject<{
|
|
25
27
|
code: z.ZodString;
|
|
28
|
+
message: z.ZodString;
|
|
26
29
|
requestId: z.ZodString;
|
|
27
30
|
details: z.ZodOptional<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodString>, z.ZodString]>>;
|
|
28
31
|
}, z.core.$strip>;
|
|
@@ -11,12 +11,14 @@ const zod_1 = require("zod");
|
|
|
11
11
|
* @example
|
|
12
12
|
* {
|
|
13
13
|
* "code": "EMAIL_ALREADY_EXISTS",
|
|
14
|
+
* "message": "Email already exists",
|
|
14
15
|
* "requestId": "41572f77-891e-4d64-9887-6f31b952e0a1"
|
|
15
16
|
* }
|
|
16
17
|
*
|
|
17
18
|
* @example with details (validation errors)
|
|
18
19
|
* {
|
|
19
20
|
* "code": "VALIDATION_ERROR",
|
|
21
|
+
* "message": "Validation failed",
|
|
20
22
|
* "requestId": "41572f77-891e-4d64-9887-6f31b952e0a1",
|
|
21
23
|
* "details": {
|
|
22
24
|
* "email": ["Invalid email format"],
|
|
@@ -27,8 +29,12 @@ const zod_1 = require("zod");
|
|
|
27
29
|
exports.ApiErrorResponseSchema = zod_1.z.object({
|
|
28
30
|
/** Error code for client-side localization and error handling */
|
|
29
31
|
code: zod_1.z.string(),
|
|
32
|
+
/** Human-readable error message */
|
|
33
|
+
message: zod_1.z.string(),
|
|
30
34
|
/** Unique request identifier for debugging and support */
|
|
31
35
|
requestId: zod_1.z.string().uuid(),
|
|
32
36
|
/** Optional error details (validation errors, additional context) */
|
|
33
|
-
details: zod_1.z
|
|
37
|
+
details: zod_1.z
|
|
38
|
+
.union([zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()), zod_1.z.array(zod_1.z.string()), zod_1.z.string()])
|
|
39
|
+
.optional(),
|
|
34
40
|
});
|
|
@@ -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.
|
|
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.ZodNumber>;
|
|
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.
|
|
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.ZodNumber>;
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
};
|
|
@@ -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
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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.
|
|
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.
|
|
15
|
+
description: z.ZodString;
|
|
16
|
+
marks: z.ZodArray<z.ZodEnum<typeof import("../../schemas").ModelMark>>;
|
|
16
17
|
icon: z.ZodString;
|
|
17
|
-
|
|
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,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.
|
|
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.ZodNumber>;
|
|
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().
|
|
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.number().int().positive().default(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';
|