@veruna/api-contracts 1.0.40 → 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.
- 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 +3 -1
- package/build/controllers/index.js +6 -1
- package/build/controllers/sitemap.controllers.d.ts +1 -0
- package/build/controllers/sitemap.controllers.js +4 -0
- package/build/controllers/wallet.controllers.d.ts +7 -0
- package/build/controllers/wallet.controllers.js +10 -0
- package/build/rest-api.d.ts +6 -0
- package/build/rest-api.js +7 -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 +3 -0
- package/build/routes/index.js +7 -1
- package/build/routes/sitemap.routes.d.ts +3 -0
- package/build/routes/sitemap.routes.js +6 -0
- package/build/routes/wallet.routes.d.ts +11 -0
- package/build/routes/wallet.routes.js +14 -0
- package/build/shared/common-schemas.d.ts +5 -0
- package/build/shared/common-schemas.js +9 -4
- package/build/shared/regex.d.ts +1 -0
- package/build/shared/regex.js +3 -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/admin/commands/create-post.command.d.ts +2 -0
- package/build/v1/blog/admin/commands/update-post.command.d.ts +2 -0
- package/build/v1/blog/admin/queries/get-post.query.d.ts +1 -0
- package/build/v1/blog/admin/queries/get-posts.query.d.ts +1 -0
- package/build/v1/blog/public/queries/get-post-by-alias.query.d.ts +1 -0
- package/build/v1/blog/public/queries/get-posts.query.d.ts +1 -0
- package/build/v1/blog/schemas/create-post-request.schema.d.ts +1 -0
- package/build/v1/blog/schemas/create-post-request.schema.js +1 -0
- package/build/v1/blog/schemas/post-response.schema.d.ts +1 -0
- package/build/v1/blog/schemas/post-response.schema.js +1 -0
- package/build/v1/blog/schemas/public-post-response.schema.d.ts +1 -0
- package/build/v1/blog/schemas/update-post-request.schema.d.ts +1 -0
- package/build/v1/blog/schemas/update-post-request.schema.js +2 -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 +4 -0
- package/build/v1/index.js +4 -0
- package/build/v1/message/message.errors.d.ts +1 -0
- package/build/v1/message/message.errors.js +5 -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/sitemap/index.d.ts +1 -0
- package/build/v1/sitemap/index.js +5 -0
- package/build/v1/sitemap/sitemap-changefreq.enum.d.ts +9 -0
- package/build/v1/sitemap/sitemap-changefreq.enum.js +13 -0
- package/build/v1/wallet/index.d.ts +5 -0
- package/build/v1/wallet/index.js +25 -0
- package/build/v1/wallet/queries/get-balance-summary.query.d.ts +29 -0
- package/build/v1/wallet/queries/get-balance-summary.query.js +18 -0
- package/build/v1/wallet/queries/index.d.ts +1 -0
- package/build/v1/wallet/queries/index.js +5 -0
- package/build/v1/wallet/schemas/balance-response.schema.d.ts +40 -0
- package/build/v1/wallet/schemas/balance-response.schema.js +32 -0
- package/build/v1/wallet/schemas/balance-status.enum.d.ts +11 -0
- package/build/v1/wallet/schemas/balance-status.enum.js +15 -0
- package/build/v1/wallet/schemas/hold-status.enum.d.ts +10 -0
- package/build/v1/wallet/schemas/hold-status.enum.js +14 -0
- package/build/v1/wallet/schemas/index.d.ts +7 -0
- package/build/v1/wallet/schemas/index.js +25 -0
- package/build/v1/wallet/schemas/initiator-type.enum.d.ts +12 -0
- package/build/v1/wallet/schemas/initiator-type.enum.js +16 -0
- package/build/v1/wallet/schemas/metadata.schema.d.ts +29 -0
- package/build/v1/wallet/schemas/metadata.schema.js +104 -0
- package/build/v1/wallet/schemas/source-type.enum.d.ts +13 -0
- package/build/v1/wallet/schemas/source-type.enum.js +17 -0
- package/build/v1/wallet/schemas/transaction-type.enum.d.ts +17 -0
- package/build/v1/wallet/schemas/transaction-type.enum.js +21 -0
- package/build/v1/wallet/wallet.errors.d.ts +37 -0
- package/build/v1/wallet/wallet.errors.js +171 -0
- 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,9 +7,11 @@ 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';
|
|
14
14
|
export { MESSAGE_UNREG_CONTROLLER, MESSAGE_REG_CONTROLLER } from './message.controllers';
|
|
15
15
|
export { VERIFICATION_CONTROLLER } from './verification.controllers';
|
|
16
|
+
export { SITEMAP_CONTROLLER } from './sitemap.controllers';
|
|
17
|
+
export { WALLET_CONTROLLER } from './wallet.controllers';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
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");
|
|
@@ -37,3 +38,7 @@ Object.defineProperty(exports, "MESSAGE_UNREG_CONTROLLER", { enumerable: true, g
|
|
|
37
38
|
Object.defineProperty(exports, "MESSAGE_REG_CONTROLLER", { enumerable: true, get: function () { return message_controllers_1.MESSAGE_REG_CONTROLLER; } });
|
|
38
39
|
var verification_controllers_1 = require("./verification.controllers");
|
|
39
40
|
Object.defineProperty(exports, "VERIFICATION_CONTROLLER", { enumerable: true, get: function () { return verification_controllers_1.VERIFICATION_CONTROLLER; } });
|
|
41
|
+
var sitemap_controllers_1 = require("./sitemap.controllers");
|
|
42
|
+
Object.defineProperty(exports, "SITEMAP_CONTROLLER", { enumerable: true, get: function () { return sitemap_controllers_1.SITEMAP_CONTROLLER; } });
|
|
43
|
+
var wallet_controllers_1 = require("./wallet.controllers");
|
|
44
|
+
Object.defineProperty(exports, "WALLET_CONTROLLER", { enumerable: true, get: function () { return wallet_controllers_1.WALLET_CONTROLLER; } });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const SITEMAP_CONTROLLER: "xml/sitemap";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WALLET_CONTROLLER = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Wallet Controller path for NestJS @Controller decorator
|
|
6
|
+
*
|
|
7
|
+
* Only public controller for user balance viewing.
|
|
8
|
+
* All wallet operations (Credit, Debit, Hold) are internal service calls.
|
|
9
|
+
*/
|
|
10
|
+
exports.WALLET_CONTROLLER = 'v1/wallet';
|
package/build/rest-api.d.ts
CHANGED
|
@@ -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";
|
|
@@ -152,5 +155,8 @@ export declare const REST_API: {
|
|
|
152
155
|
readonly ACTIVE: "/api/v1/verification/active";
|
|
153
156
|
readonly CANCEL: (requestId: string) => string;
|
|
154
157
|
};
|
|
158
|
+
readonly WALLET: {
|
|
159
|
+
readonly BALANCE: "/api/v1/wallet/balance";
|
|
160
|
+
};
|
|
155
161
|
};
|
|
156
162
|
};
|
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: {
|
|
@@ -169,5 +172,9 @@ exports.REST_API = {
|
|
|
169
172
|
ACTIVE: `${exports.ROOT}/${controllers_1.VERIFICATION_CONTROLLER}/${routes_1.VERIFICATION_ROUTES.ACTIVE}`,
|
|
170
173
|
CANCEL: (requestId) => `${exports.ROOT}/${controllers_1.VERIFICATION_CONTROLLER}/${requestId}/cancel`,
|
|
171
174
|
},
|
|
175
|
+
// Wallet module (only public balance endpoint)
|
|
176
|
+
WALLET: {
|
|
177
|
+
BALANCE: `${exports.ROOT}/${controllers_1.WALLET_CONTROLLER}/${routes_1.WALLET_ROUTES.BALANCE}`,
|
|
178
|
+
},
|
|
172
179
|
},
|
|
173
180
|
};
|
package/build/routes/index.d.ts
CHANGED
|
@@ -13,8 +13,11 @@ 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';
|
|
19
20
|
export { MESSAGE_UNREG_ROUTES, MESSAGE_REG_ROUTES } from './message.routes';
|
|
20
21
|
export { VERIFICATION_ROUTES } from './verification.routes';
|
|
22
|
+
export { SITEMAP_ROUTES } from './sitemap.routes';
|
|
23
|
+
export { WALLET_ROUTES } from './wallet.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.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");
|
|
@@ -42,3 +44,7 @@ Object.defineProperty(exports, "MESSAGE_UNREG_ROUTES", { enumerable: true, get:
|
|
|
42
44
|
Object.defineProperty(exports, "MESSAGE_REG_ROUTES", { enumerable: true, get: function () { return message_routes_1.MESSAGE_REG_ROUTES; } });
|
|
43
45
|
var verification_routes_1 = require("./verification.routes");
|
|
44
46
|
Object.defineProperty(exports, "VERIFICATION_ROUTES", { enumerable: true, get: function () { return verification_routes_1.VERIFICATION_ROUTES; } });
|
|
47
|
+
var sitemap_routes_1 = require("./sitemap.routes");
|
|
48
|
+
Object.defineProperty(exports, "SITEMAP_ROUTES", { enumerable: true, get: function () { return sitemap_routes_1.SITEMAP_ROUTES; } });
|
|
49
|
+
var wallet_routes_1 = require("./wallet.routes");
|
|
50
|
+
Object.defineProperty(exports, "WALLET_ROUTES", { enumerable: true, get: function () { return wallet_routes_1.WALLET_ROUTES; } });
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Wallet Routes
|
|
3
|
+
* For NestJS method decorators (@Get, @Post, etc.)
|
|
4
|
+
*
|
|
5
|
+
* Only public route for getting balance.
|
|
6
|
+
* All other operations (Credit, Debit, Hold) are internal service calls,
|
|
7
|
+
* not exposed via HTTP endpoints.
|
|
8
|
+
*/
|
|
9
|
+
export declare const WALLET_ROUTES: {
|
|
10
|
+
readonly BALANCE: "balance";
|
|
11
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WALLET_ROUTES = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Wallet Routes
|
|
6
|
+
* For NestJS method decorators (@Get, @Post, etc.)
|
|
7
|
+
*
|
|
8
|
+
* Only public route for getting balance.
|
|
9
|
+
* All other operations (Credit, Debit, Hold) are internal service calls,
|
|
10
|
+
* not exposed via HTTP endpoints.
|
|
11
|
+
*/
|
|
12
|
+
exports.WALLET_ROUTES = {
|
|
13
|
+
BALANCE: 'balance',
|
|
14
|
+
};
|
|
@@ -15,3 +15,8 @@ export declare const EmptyResponseSchema: z.ZodObject<{}, z.core.$strip>;
|
|
|
15
15
|
export declare const DeleteResponseSchema: z.ZodObject<{
|
|
16
16
|
uuid: z.ZodString;
|
|
17
17
|
}, z.core.$strip>;
|
|
18
|
+
/**
|
|
19
|
+
* BigInt as string schema (for JSON serialization of bigint values)
|
|
20
|
+
* Validates that string contains only digits (non-negative integer)
|
|
21
|
+
*/
|
|
22
|
+
export declare const BigIntStringSchema: z.ZodString;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DeleteResponseSchema = exports.EmptyResponseSchema = exports.queryArraySchema = void 0;
|
|
3
|
+
exports.BigIntStringSchema = exports.DeleteResponseSchema = exports.EmptyResponseSchema = exports.queryArraySchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const regex_1 = require("./regex");
|
|
6
6
|
/**
|
|
@@ -9,9 +9,7 @@ const regex_1 = require("./regex");
|
|
|
9
9
|
* Usage: queryArraySchema() for optional, queryArraySchema(false) for required
|
|
10
10
|
*/
|
|
11
11
|
const queryArraySchema = (optional = true) => {
|
|
12
|
-
const schema = zod_1.z
|
|
13
|
-
.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())])
|
|
14
|
-
.transform((val) => {
|
|
12
|
+
const schema = zod_1.z.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())]).transform((val) => {
|
|
15
13
|
if (Array.isArray(val))
|
|
16
14
|
return val;
|
|
17
15
|
return [val];
|
|
@@ -29,3 +27,10 @@ exports.EmptyResponseSchema = zod_1.z.object({});
|
|
|
29
27
|
exports.DeleteResponseSchema = zod_1.z.object({
|
|
30
28
|
uuid: zod_1.z.string().regex(regex_1.UUID_REGEX),
|
|
31
29
|
});
|
|
30
|
+
/**
|
|
31
|
+
* BigInt as string schema (for JSON serialization of bigint values)
|
|
32
|
+
* Validates that string contains only digits (non-negative integer)
|
|
33
|
+
*/
|
|
34
|
+
exports.BigIntStringSchema = zod_1.z
|
|
35
|
+
.string()
|
|
36
|
+
.regex(regex_1.BIGINT_STRING_REGEX, 'Must be a non-negative integer string');
|
package/build/shared/regex.d.ts
CHANGED
package/build/shared/regex.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Common regex patterns for validation
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.HEX_COLOR_REGEX = exports.SLUG_REGEX = exports.PASSWORD_STRENGTH_REGEX = exports.DATETIME_REGEX = exports.UUID_REGEX = exports.EMAIL_REGEX = void 0;
|
|
6
|
+
exports.BIGINT_STRING_REGEX = exports.HEX_COLOR_REGEX = exports.SLUG_REGEX = exports.PASSWORD_STRENGTH_REGEX = exports.DATETIME_REGEX = exports.UUID_REGEX = exports.EMAIL_REGEX = void 0;
|
|
7
7
|
// RFC 5322 email regex (simplified)
|
|
8
8
|
exports.EMAIL_REGEX = /^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;
|
|
9
9
|
// UUID v4 regex
|
|
@@ -16,3 +16,5 @@ exports.PASSWORD_STRENGTH_REGEX = /[0-9!@#$%^&*(),.?":{}|<>]/;
|
|
|
16
16
|
exports.SLUG_REGEX = /^[a-z0-9-]+$/;
|
|
17
17
|
// Hex color regex: #RRGGBB
|
|
18
18
|
exports.HEX_COLOR_REGEX = /^#[0-9A-Fa-f]{6}$/;
|
|
19
|
+
// BigInt string regex (non-negative integer as string)
|
|
20
|
+
exports.BIGINT_STRING_REGEX = /^\d+$/;
|
|
@@ -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.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.
|
|
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.
|
|
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.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>;
|