@veruna/api-contracts 1.1.36 → 1.1.37
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 +2 -0
- package/build/controllers/ai-model.controllers.js +3 -1
- package/build/controllers/ai-model.controllers.js.map +1 -1
- package/build/controllers/index.d.ts +1 -1
- package/build/controllers/index.js +4 -2
- package/build/controllers/index.js.map +1 -1
- package/build/rest-api.d.ts +7 -0
- package/build/rest-api.js +7 -0
- package/build/rest-api.js.map +1 -1
- package/build/routes/ai-model-admin-default-favorites.routes.d.ts +4 -0
- package/build/routes/ai-model-admin-default-favorites.routes.js +8 -0
- package/build/routes/ai-model-admin-default-favorites.routes.js.map +1 -0
- package/build/routes/ai-model-user.routes.d.ts +3 -0
- package/build/routes/ai-model-user.routes.js +7 -0
- package/build/routes/ai-model-user.routes.js.map +1 -0
- package/build/routes/index.d.ts +2 -0
- package/build/routes/index.js +6 -2
- package/build/routes/index.js.map +1 -1
- package/build/shared/audience.enum.d.ts +4 -0
- package/build/shared/audience.enum.js +9 -0
- package/build/shared/audience.enum.js.map +1 -0
- package/build/shared/index.d.ts +1 -0
- package/build/shared/index.js +1 -0
- package/build/shared/index.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/v1/ai-model/admin/commands/index.d.ts +1 -0
- package/build/v1/ai-model/admin/commands/index.js +1 -0
- package/build/v1/ai-model/admin/commands/index.js.map +1 -1
- package/build/v1/ai-model/admin/commands/replace-default-favorites.command.d.ts +28 -0
- package/build/v1/ai-model/admin/commands/replace-default-favorites.command.js +15 -0
- package/build/v1/ai-model/admin/commands/replace-default-favorites.command.js.map +1 -0
- package/build/v1/ai-model/admin/queries/get-default-favorites.query.d.ts +23 -0
- package/build/v1/ai-model/admin/queries/get-default-favorites.query.js +16 -0
- package/build/v1/ai-model/admin/queries/get-default-favorites.query.js.map +1 -0
- package/build/v1/ai-model/admin/queries/index.d.ts +1 -0
- package/build/v1/ai-model/admin/queries/index.js +1 -0
- package/build/v1/ai-model/admin/queries/index.js.map +1 -1
- package/build/v1/ai-model/ai-model.errors.d.ts +3 -1
- package/build/v1/ai-model/ai-model.errors.js +10 -0
- package/build/v1/ai-model/ai-model.errors.js.map +1 -1
- package/build/v1/ai-model/index.d.ts +1 -0
- package/build/v1/ai-model/index.js +1 -0
- package/build/v1/ai-model/index.js.map +1 -1
- package/build/v1/ai-model/public/queries/get-models-list.query.d.ts +51 -0
- package/build/v1/ai-model/schemas/default-favorites.schema.d.ts +29 -0
- package/build/v1/ai-model/schemas/default-favorites.schema.js +35 -0
- package/build/v1/ai-model/schemas/default-favorites.schema.js.map +1 -0
- package/build/v1/ai-model/schemas/index.d.ts +3 -0
- package/build/v1/ai-model/schemas/index.js +3 -0
- package/build/v1/ai-model/schemas/index.js.map +1 -1
- package/build/v1/ai-model/schemas/models-list-response.schema.d.ts +51 -0
- package/build/v1/ai-model/schemas/models-list-response.schema.js +1 -0
- package/build/v1/ai-model/schemas/models-list-response.schema.js.map +1 -1
- package/build/v1/ai-model/schemas/toggle-favorite-response.schema.d.ts +4 -0
- package/build/v1/ai-model/schemas/toggle-favorite-response.schema.js +8 -0
- package/build/v1/ai-model/schemas/toggle-favorite-response.schema.js.map +1 -0
- package/build/v1/ai-model/schemas/unreg-models-list-response.schema.d.ts +51 -0
- package/build/v1/ai-model/schemas/user-ai-model-type.enum.d.ts +3 -0
- package/build/v1/ai-model/schemas/user-ai-model-type.enum.js +8 -0
- package/build/v1/ai-model/schemas/user-ai-model-type.enum.js.map +1 -0
- package/build/v1/ai-model/unreg/queries/get-models-list.query.d.ts +51 -0
- package/build/v1/ai-model/user/commands/index.d.ts +1 -0
- package/build/v1/ai-model/user/commands/index.js +6 -0
- package/build/v1/ai-model/user/commands/index.js.map +1 -0
- package/build/v1/ai-model/user/commands/toggle-favorite.command.d.ts +12 -0
- package/build/v1/ai-model/user/commands/toggle-favorite.command.js +15 -0
- package/build/v1/ai-model/user/commands/toggle-favorite.command.js.map +1 -0
- package/build/v1/ai-model/user/index.d.ts +1 -0
- package/build/v1/ai-model/user/index.js +18 -0
- package/build/v1/ai-model/user/index.js.map +1 -0
- package/build/v1/attribution/schemas/attribution-event-type.enum.d.ts +11 -1
- package/build/v1/attribution/schemas/attribution-event-type.enum.js +10 -0
- package/build/v1/attribution/schemas/attribution-event-type.enum.js.map +1 -1
- package/build/v1/attribution/schemas/conversion-type.enum.d.ts +6 -1
- package/build/v1/attribution/schemas/conversion-type.enum.js +5 -0
- package/build/v1/attribution/schemas/conversion-type.enum.js.map +1 -1
- package/build/v1/chat/commands/create-reg-chat.command.d.ts +1 -1
- package/build/v1/chat/commands/create-unreg-chat.command.d.ts +1 -1
- package/build/v1/chat/commands/update-chat-title.command.d.ts +1 -1
- package/build/v1/chat/commands/update-chat.command.d.ts +1 -1
- package/build/v1/chat/queries/get-last-active-chat.query.d.ts +1 -1
- package/build/v1/chat/queries/get-reg-chat.query.d.ts +1 -1
- package/build/v1/chat/queries/get-unreg-chat.query.d.ts +1 -1
- package/build/v1/chat/schemas/chat-with-messages-response.schema.d.ts +1 -1
- package/build/v1/client-file/file-processing.constants.d.ts +10 -0
- package/build/v1/client-file/file-processing.constants.js +14 -0
- package/build/v1/client-file/file-processing.constants.js.map +1 -0
- package/build/v1/client-file/index.d.ts +1 -0
- package/build/v1/client-file/index.js +1 -0
- package/build/v1/client-file/index.js.map +1 -1
- package/build/v1/email/email.errors.d.ts +1 -0
- package/build/v1/email/email.errors.js +5 -0
- package/build/v1/email/email.errors.js.map +1 -1
- package/build/v1/message/message.errors.d.ts +3 -0
- package/build/v1/message/message.errors.js +15 -0
- package/build/v1/message/message.errors.js.map +1 -1
- package/build/v1/message/schemas/generation-step.schema.d.ts +4 -1
- package/build/v1/message/schemas/generation-step.schema.js +3 -0
- package/build/v1/message/schemas/generation-step.schema.js.map +1 -1
- package/build/v1/message/schemas/message-response.schema.d.ts +1 -1
- package/build/v1/message/schemas/message-response.schema.js +1 -1
- package/build/v1/message/schemas/message-response.schema.js.map +1 -1
- package/build/v1/notifications/schemas/notification-provider.enum.d.ts +1 -1
- package/build/v1/notifications/schemas/notification-provider.enum.js +1 -1
- package/build/v1/notifications/schemas/notification-provider.enum.js.map +1 -1
- package/build/v1/tool/sandbox/sandbox.errors.d.ts +3 -1
- package/build/v1/tool/sandbox/sandbox.errors.js +10 -0
- package/build/v1/tool/sandbox/sandbox.errors.js.map +1 -1
- package/package.json +1 -1
|
@@ -17,4 +17,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./create-model.command"), exports);
|
|
18
18
|
__exportStar(require("./update-model.command"), exports);
|
|
19
19
|
__exportStar(require("./delete-model.command"), exports);
|
|
20
|
+
__exportStar(require("./replace-default-favorites.command"), exports);
|
|
20
21
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../v1/ai-model/admin/commands/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC;AACvC,yDAAuC;AACvC,yDAAuC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../v1/ai-model/admin/commands/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC;AACvC,yDAAuC;AACvC,yDAAuC;AACvC,sEAAoD"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpMethod } from '../../../../shared/http-method';
|
|
3
|
+
export declare namespace AdminAiModelReplaceDefaultFavoritesCommand {
|
|
4
|
+
const Request: z.ZodObject<{
|
|
5
|
+
items: z.ZodArray<z.ZodObject<{
|
|
6
|
+
modelUuid: z.ZodString;
|
|
7
|
+
order: z.ZodNumber;
|
|
8
|
+
}, z.core.$strip>>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
const Params: z.ZodObject<{
|
|
11
|
+
audience: z.ZodEnum<typeof import("../../../..").Audience>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
const Response: z.ZodObject<{
|
|
14
|
+
audience: z.ZodEnum<typeof import("../../../..").Audience>;
|
|
15
|
+
items: z.ZodArray<z.ZodObject<{
|
|
16
|
+
modelUuid: z.ZodString;
|
|
17
|
+
order: z.ZodNumber;
|
|
18
|
+
title: z.ZodString;
|
|
19
|
+
icon: z.ZodString;
|
|
20
|
+
status: z.ZodEnum<typeof import("../../schemas").AiModelStatus>;
|
|
21
|
+
}, z.core.$strip>>;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
const URL: (audience: string) => string;
|
|
24
|
+
const METHOD = HttpMethod.PUT;
|
|
25
|
+
type RequestType = z.infer<typeof Request>;
|
|
26
|
+
type ResponseType = z.infer<typeof Response>;
|
|
27
|
+
type ParamsType = z.infer<typeof Params>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdminAiModelReplaceDefaultFavoritesCommand = void 0;
|
|
4
|
+
const schemas_1 = require("../../schemas");
|
|
5
|
+
const rest_api_1 = require("../../../../rest-api");
|
|
6
|
+
const http_method_1 = require("../../../../shared/http-method");
|
|
7
|
+
var AdminAiModelReplaceDefaultFavoritesCommand;
|
|
8
|
+
(function (AdminAiModelReplaceDefaultFavoritesCommand) {
|
|
9
|
+
AdminAiModelReplaceDefaultFavoritesCommand.Request = schemas_1.ReplaceDefaultFavoritesRequestSchema;
|
|
10
|
+
AdminAiModelReplaceDefaultFavoritesCommand.Params = schemas_1.AudienceParamSchema;
|
|
11
|
+
AdminAiModelReplaceDefaultFavoritesCommand.Response = schemas_1.DefaultFavoritesListResponseSchema;
|
|
12
|
+
AdminAiModelReplaceDefaultFavoritesCommand.URL = (audience) => rest_api_1.REST_API.V1.AI_MODEL.ADMIN.DEFAULT_FAVORITES.REPLACE(audience);
|
|
13
|
+
AdminAiModelReplaceDefaultFavoritesCommand.METHOD = http_method_1.HttpMethod.PUT;
|
|
14
|
+
})(AdminAiModelReplaceDefaultFavoritesCommand || (exports.AdminAiModelReplaceDefaultFavoritesCommand = AdminAiModelReplaceDefaultFavoritesCommand = {}));
|
|
15
|
+
//# sourceMappingURL=replace-default-favorites.command.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"replace-default-favorites.command.js","sourceRoot":"","sources":["../../../../../v1/ai-model/admin/commands/replace-default-favorites.command.ts"],"names":[],"mappings":";;;AACA,2CAIuB;AACvB,mDAAgD;AAChD,gEAA4D;AAE5D,IAAiB,0CAA0C,CAU1D;AAVD,WAAiB,0CAA0C;IAC1C,kDAAO,GAAG,8CAAoC,CAAC;IAC/C,iDAAM,GAAG,6BAAmB,CAAC;IAC7B,mDAAQ,GAAG,4CAAkC,CAAC;IAC9C,8CAAG,GAAG,CAAC,QAAgB,EAAE,EAAE,CACpC,mBAAQ,CAAC,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,iBAAiB,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IACtD,iDAAM,GAAG,wBAAU,CAAC,GAAG,CAAC;AAIzC,CAAC,EAVgB,0CAA0C,0DAA1C,0CAA0C,QAU1D"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpMethod } from '../../../../shared/http-method';
|
|
3
|
+
export declare namespace AdminAiModelGetDefaultFavoritesQuery {
|
|
4
|
+
const Request: z.ZodVoid;
|
|
5
|
+
const Params: z.ZodObject<{
|
|
6
|
+
audience: z.ZodEnum<typeof import("../../../..").Audience>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
const Response: z.ZodObject<{
|
|
9
|
+
audience: z.ZodEnum<typeof import("../../../..").Audience>;
|
|
10
|
+
items: z.ZodArray<z.ZodObject<{
|
|
11
|
+
modelUuid: z.ZodString;
|
|
12
|
+
order: z.ZodNumber;
|
|
13
|
+
title: z.ZodString;
|
|
14
|
+
icon: z.ZodString;
|
|
15
|
+
status: z.ZodEnum<typeof import("../../schemas").AiModelStatus>;
|
|
16
|
+
}, z.core.$strip>>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
const URL: (audience: string) => string;
|
|
19
|
+
const METHOD = HttpMethod.GET;
|
|
20
|
+
type RequestType = z.infer<typeof Request>;
|
|
21
|
+
type ResponseType = z.infer<typeof Response>;
|
|
22
|
+
type ParamsType = z.infer<typeof Params>;
|
|
23
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdminAiModelGetDefaultFavoritesQuery = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const schemas_1 = require("../../schemas");
|
|
6
|
+
const rest_api_1 = require("../../../../rest-api");
|
|
7
|
+
const http_method_1 = require("../../../../shared/http-method");
|
|
8
|
+
var AdminAiModelGetDefaultFavoritesQuery;
|
|
9
|
+
(function (AdminAiModelGetDefaultFavoritesQuery) {
|
|
10
|
+
AdminAiModelGetDefaultFavoritesQuery.Request = zod_1.z.void();
|
|
11
|
+
AdminAiModelGetDefaultFavoritesQuery.Params = schemas_1.AudienceParamSchema;
|
|
12
|
+
AdminAiModelGetDefaultFavoritesQuery.Response = schemas_1.DefaultFavoritesListResponseSchema;
|
|
13
|
+
AdminAiModelGetDefaultFavoritesQuery.URL = (audience) => rest_api_1.REST_API.V1.AI_MODEL.ADMIN.DEFAULT_FAVORITES.GET(audience);
|
|
14
|
+
AdminAiModelGetDefaultFavoritesQuery.METHOD = http_method_1.HttpMethod.GET;
|
|
15
|
+
})(AdminAiModelGetDefaultFavoritesQuery || (exports.AdminAiModelGetDefaultFavoritesQuery = AdminAiModelGetDefaultFavoritesQuery = {}));
|
|
16
|
+
//# sourceMappingURL=get-default-favorites.query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-default-favorites.query.js","sourceRoot":"","sources":["../../../../../v1/ai-model/admin/queries/get-default-favorites.query.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,2CAAwF;AACxF,mDAAgD;AAChD,gEAA4D;AAE5D,IAAiB,oCAAoC,CASpD;AATD,WAAiB,oCAAoC;IACpC,4CAAO,GAAG,OAAC,CAAC,IAAI,EAAE,CAAC;IACnB,2CAAM,GAAG,6BAAmB,CAAC;IAC7B,6CAAQ,GAAG,4CAAkC,CAAC;IAC9C,wCAAG,GAAG,CAAC,QAAgB,EAAE,EAAE,CAAC,mBAAQ,CAAC,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,iBAAiB,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IACvF,2CAAM,GAAG,wBAAU,CAAC,GAAG,CAAC;AAIzC,CAAC,EATgB,oCAAoC,oDAApC,oCAAoC,QASpD"}
|
|
@@ -16,4 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./get-models.query"), exports);
|
|
18
18
|
__exportStar(require("./get-model.query"), exports);
|
|
19
|
+
__exportStar(require("./get-default-favorites.query"), exports);
|
|
19
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../v1/ai-model/admin/queries/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,oDAAkC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../v1/ai-model/admin/queries/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,oDAAkC;AAClC,gEAA8C"}
|
|
@@ -18,6 +18,8 @@ export declare enum AiModelErrorCode {
|
|
|
18
18
|
TOOL_CAPABILITY_NOT_SUPPORTED = "TOOL_CAPABILITY_NOT_SUPPORTED",
|
|
19
19
|
INVALID_MODEL_SETTINGS = "INVALID_MODEL_SETTINGS",
|
|
20
20
|
INVALID_SETTING_OPTION = "INVALID_SETTING_OPTION",
|
|
21
|
-
INVALID_MODEL_VISIBILITY = "INVALID_MODEL_VISIBILITY"
|
|
21
|
+
INVALID_MODEL_VISIBILITY = "INVALID_MODEL_VISIBILITY",
|
|
22
|
+
INVALID_DEFAULT_FAVORITE_AUDIENCE = "INVALID_DEFAULT_FAVORITE_AUDIENCE",
|
|
23
|
+
DUPLICATE_DEFAULT_FAVORITE_MODEL = "DUPLICATE_DEFAULT_FAVORITE_MODEL"
|
|
22
24
|
}
|
|
23
25
|
export declare const AI_MODEL_ERRORS: Record<AiModelErrorCode, ErrorMetadata>;
|
|
@@ -22,6 +22,8 @@ var AiModelErrorCode;
|
|
|
22
22
|
AiModelErrorCode["INVALID_MODEL_SETTINGS"] = "INVALID_MODEL_SETTINGS";
|
|
23
23
|
AiModelErrorCode["INVALID_SETTING_OPTION"] = "INVALID_SETTING_OPTION";
|
|
24
24
|
AiModelErrorCode["INVALID_MODEL_VISIBILITY"] = "INVALID_MODEL_VISIBILITY";
|
|
25
|
+
AiModelErrorCode["INVALID_DEFAULT_FAVORITE_AUDIENCE"] = "INVALID_DEFAULT_FAVORITE_AUDIENCE";
|
|
26
|
+
AiModelErrorCode["DUPLICATE_DEFAULT_FAVORITE_MODEL"] = "DUPLICATE_DEFAULT_FAVORITE_MODEL";
|
|
25
27
|
})(AiModelErrorCode || (exports.AiModelErrorCode = AiModelErrorCode = {}));
|
|
26
28
|
exports.AI_MODEL_ERRORS = {
|
|
27
29
|
[AiModelErrorCode.MODEL_NOT_FOUND]: {
|
|
@@ -100,5 +102,13 @@ exports.AI_MODEL_ERRORS = {
|
|
|
100
102
|
code: AiModelErrorCode.INVALID_MODEL_VISIBILITY,
|
|
101
103
|
statusCode: 400,
|
|
102
104
|
},
|
|
105
|
+
[AiModelErrorCode.INVALID_DEFAULT_FAVORITE_AUDIENCE]: {
|
|
106
|
+
code: AiModelErrorCode.INVALID_DEFAULT_FAVORITE_AUDIENCE,
|
|
107
|
+
statusCode: 400,
|
|
108
|
+
},
|
|
109
|
+
[AiModelErrorCode.DUPLICATE_DEFAULT_FAVORITE_MODEL]: {
|
|
110
|
+
code: AiModelErrorCode.DUPLICATE_DEFAULT_FAVORITE_MODEL,
|
|
111
|
+
statusCode: 400,
|
|
112
|
+
},
|
|
103
113
|
};
|
|
104
114
|
//# sourceMappingURL=ai-model.errors.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai-model.errors.js","sourceRoot":"","sources":["../../../v1/ai-model/ai-model.errors.ts"],"names":[],"mappings":";;;AAEA,IAAY,
|
|
1
|
+
{"version":3,"file":"ai-model.errors.js","sourceRoot":"","sources":["../../../v1/ai-model/ai-model.errors.ts"],"names":[],"mappings":"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"}
|
|
@@ -19,5 +19,6 @@ __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("./user"), exports);
|
|
22
23
|
__exportStar(require("./unreg"), exports);
|
|
23
24
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../v1/ai-model/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,4CAA0B;AAC1B,mDAAiC;AACjC,kDAAgC;AAChC,mDAAiC;AACjC,0CAAwB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../v1/ai-model/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,4CAA0B;AAC1B,mDAAiC;AACjC,kDAAgC;AAChC,mDAAiC;AACjC,yCAAuB;AACvB,0CAAwB"}
|
|
@@ -60,6 +60,57 @@ export declare namespace PublicAiModelGetModelsListQuery {
|
|
|
60
60
|
accessReason: z.ZodNullable<z.ZodEnum<typeof import("../../..").AccessReason>>;
|
|
61
61
|
}, z.core.$strip>>;
|
|
62
62
|
}, z.core.$strip>>;
|
|
63
|
+
favorites: z.ZodArray<z.ZodObject<{
|
|
64
|
+
type: z.ZodEnum<typeof import("../../schemas").ModelType>;
|
|
65
|
+
uuid: z.ZodString;
|
|
66
|
+
title: z.ZodString;
|
|
67
|
+
description: z.ZodString;
|
|
68
|
+
order: z.ZodNumber;
|
|
69
|
+
marks: z.ZodArray<z.ZodEnum<typeof import("../../schemas").ModelMark>>;
|
|
70
|
+
icon: z.ZodString;
|
|
71
|
+
price: z.ZodNumber;
|
|
72
|
+
speed: z.ZodNumber;
|
|
73
|
+
bestFor: z.ZodArray<z.ZodString>;
|
|
74
|
+
usageExamples: z.ZodArray<z.ZodString>;
|
|
75
|
+
inputModalities: z.ZodArray<z.ZodEnum<typeof import("../../schemas").Modality>>;
|
|
76
|
+
outputModalities: z.ZodArray<z.ZodEnum<typeof import("../../schemas").Modality>>;
|
|
77
|
+
modelRoles: z.ZodArray<z.ZodEnum<typeof import("../../schemas").ModelRole>>;
|
|
78
|
+
plugins: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
79
|
+
id: z.ZodLiteral<import("../../..").PluginId.WEB>;
|
|
80
|
+
price: z.ZodNumber;
|
|
81
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
82
|
+
id: z.ZodLiteral<import("../../..").PluginId.REASONING>;
|
|
83
|
+
default: z.ZodEnum<typeof import("../../..").ReasoningEffort>;
|
|
84
|
+
supportedValues: z.ZodArray<z.ZodObject<{
|
|
85
|
+
value: z.ZodEnum<typeof import("../../..").ReasoningEffort>;
|
|
86
|
+
price: z.ZodNumber;
|
|
87
|
+
}, z.core.$strip>>;
|
|
88
|
+
}, z.core.$strip>], "id">>;
|
|
89
|
+
settings: z.ZodObject<{
|
|
90
|
+
attachments: z.ZodOptional<z.ZodObject<{
|
|
91
|
+
imagePrice: z.ZodNumber;
|
|
92
|
+
filePrice: z.ZodNumber;
|
|
93
|
+
maxImages: z.ZodNumber;
|
|
94
|
+
maxFiles: z.ZodNumber;
|
|
95
|
+
}, z.core.$strip>>;
|
|
96
|
+
}, z.core.$strip>;
|
|
97
|
+
toolSettings: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
98
|
+
key: z.ZodEnum<typeof import("../../schemas").SettingKey>;
|
|
99
|
+
title: z.ZodString;
|
|
100
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
101
|
+
inputType: z.ZodEnum<typeof import("../../schemas").SettingInputType>;
|
|
102
|
+
defaultOptionId: z.ZodString;
|
|
103
|
+
maxSelections: z.ZodOptional<z.ZodNumber>;
|
|
104
|
+
options: z.ZodArray<z.ZodObject<{
|
|
105
|
+
id: z.ZodString;
|
|
106
|
+
title: z.ZodString;
|
|
107
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
108
|
+
priceModifier: z.ZodDefault<z.ZodNumber>;
|
|
109
|
+
}, z.core.$strip>>;
|
|
110
|
+
}, z.core.$strip>>>;
|
|
111
|
+
access: z.ZodBoolean;
|
|
112
|
+
accessReason: z.ZodNullable<z.ZodEnum<typeof import("../../..").AccessReason>>;
|
|
113
|
+
}, z.core.$strip>>;
|
|
63
114
|
}, z.core.$strip>;
|
|
64
115
|
const URL: "/api/v1/ai-models/list";
|
|
65
116
|
const METHOD = HttpMethod.GET;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { Audience } from '../../../shared';
|
|
3
|
+
import { AiModelStatus } from './ai-model-status.enum';
|
|
4
|
+
export declare const DefaultFavoriteAdminItemSchema: z.ZodObject<{
|
|
5
|
+
modelUuid: z.ZodString;
|
|
6
|
+
order: z.ZodNumber;
|
|
7
|
+
title: z.ZodString;
|
|
8
|
+
icon: z.ZodString;
|
|
9
|
+
status: z.ZodEnum<typeof AiModelStatus>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
export declare const DefaultFavoritesListResponseSchema: z.ZodObject<{
|
|
12
|
+
audience: z.ZodEnum<typeof Audience>;
|
|
13
|
+
items: z.ZodArray<z.ZodObject<{
|
|
14
|
+
modelUuid: z.ZodString;
|
|
15
|
+
order: z.ZodNumber;
|
|
16
|
+
title: z.ZodString;
|
|
17
|
+
icon: z.ZodString;
|
|
18
|
+
status: z.ZodEnum<typeof AiModelStatus>;
|
|
19
|
+
}, z.core.$strip>>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
export declare const ReplaceDefaultFavoritesRequestSchema: z.ZodObject<{
|
|
22
|
+
items: z.ZodArray<z.ZodObject<{
|
|
23
|
+
modelUuid: z.ZodString;
|
|
24
|
+
order: z.ZodNumber;
|
|
25
|
+
}, z.core.$strip>>;
|
|
26
|
+
}, z.core.$strip>;
|
|
27
|
+
export declare const AudienceParamSchema: z.ZodObject<{
|
|
28
|
+
audience: z.ZodEnum<typeof Audience>;
|
|
29
|
+
}, z.core.$strip>;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AudienceParamSchema = exports.ReplaceDefaultFavoritesRequestSchema = exports.DefaultFavoritesListResponseSchema = exports.DefaultFavoriteAdminItemSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const shared_1 = require("../../../shared");
|
|
6
|
+
const ai_model_status_enum_1 = require("./ai-model-status.enum");
|
|
7
|
+
exports.DefaultFavoriteAdminItemSchema = zod_1.z.object({
|
|
8
|
+
modelUuid: zod_1.z.string().regex(shared_1.UUID_REGEX),
|
|
9
|
+
order: zod_1.z.number().int(),
|
|
10
|
+
title: zod_1.z.string(),
|
|
11
|
+
icon: zod_1.z.string(),
|
|
12
|
+
status: zod_1.z.nativeEnum(ai_model_status_enum_1.AiModelStatus),
|
|
13
|
+
});
|
|
14
|
+
exports.DefaultFavoritesListResponseSchema = zod_1.z.object({
|
|
15
|
+
audience: zod_1.z.nativeEnum(shared_1.Audience),
|
|
16
|
+
items: zod_1.z.array(exports.DefaultFavoriteAdminItemSchema),
|
|
17
|
+
});
|
|
18
|
+
exports.ReplaceDefaultFavoritesRequestSchema = zod_1.z.object({
|
|
19
|
+
items: zod_1.z
|
|
20
|
+
.array(zod_1.z.object({
|
|
21
|
+
modelUuid: zod_1.z
|
|
22
|
+
.string({ error: 'ReplaceDefaultFavoritesRequest.items.modelUuid.required' })
|
|
23
|
+
.regex(shared_1.UUID_REGEX, {
|
|
24
|
+
message: 'ReplaceDefaultFavoritesRequest.items.modelUuid.invalid',
|
|
25
|
+
}),
|
|
26
|
+
order: zod_1.z
|
|
27
|
+
.number({ error: 'ReplaceDefaultFavoritesRequest.items.order.required' })
|
|
28
|
+
.int({ message: 'ReplaceDefaultFavoritesRequest.items.order.int' }),
|
|
29
|
+
}))
|
|
30
|
+
.max(200, { message: 'ReplaceDefaultFavoritesRequest.items.max' }),
|
|
31
|
+
});
|
|
32
|
+
exports.AudienceParamSchema = zod_1.z.object({
|
|
33
|
+
audience: zod_1.z.nativeEnum(shared_1.Audience),
|
|
34
|
+
});
|
|
35
|
+
//# sourceMappingURL=default-favorites.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default-favorites.schema.js","sourceRoot":"","sources":["../../../../v1/ai-model/schemas/default-favorites.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,4CAAuD;AACvD,iEAAuD;AAG1C,QAAA,8BAA8B,GAAG,OAAC,CAAC,MAAM,CAAC;IACnD,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,mBAAU,CAAC;IACvC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACvB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,MAAM,EAAE,OAAC,CAAC,UAAU,CAAC,oCAAa,CAAC;CACtC,CAAC,CAAC;AAEU,QAAA,kCAAkC,GAAG,OAAC,CAAC,MAAM,CAAC;IACvD,QAAQ,EAAE,OAAC,CAAC,UAAU,CAAC,iBAAQ,CAAC;IAChC,KAAK,EAAE,OAAC,CAAC,KAAK,CAAC,sCAA8B,CAAC;CACjD,CAAC,CAAC;AAEU,QAAA,oCAAoC,GAAG,OAAC,CAAC,MAAM,CAAC;IACzD,KAAK,EAAE,OAAC;SACH,KAAK,CACF,OAAC,CAAC,MAAM,CAAC;QACL,SAAS,EAAE,OAAC;aACP,MAAM,CAAC,EAAE,KAAK,EAAE,yDAAyD,EAAE,CAAC;aAC5E,KAAK,CAAC,mBAAU,EAAE;YACf,OAAO,EAAE,wDAAwD;SACpE,CAAC;QACN,KAAK,EAAE,OAAC;aACH,MAAM,CAAC,EAAE,KAAK,EAAE,qDAAqD,EAAE,CAAC;aACxE,GAAG,CAAC,EAAE,OAAO,EAAE,gDAAgD,EAAE,CAAC;KAC1E,CAAC,CACL;SACA,GAAG,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,0CAA0C,EAAE,CAAC;CACzE,CAAC,CAAC;AAGU,QAAA,mBAAmB,GAAG,OAAC,CAAC,MAAM,CAAC;IACxC,QAAQ,EAAE,OAAC,CAAC,UAAU,CAAC,iBAAQ,CAAC;CACnC,CAAC,CAAC"}
|
|
@@ -13,3 +13,6 @@ export * from './route-params.schema';
|
|
|
13
13
|
export * from './get-models-filters.schema';
|
|
14
14
|
export * from './models-list-response.schema';
|
|
15
15
|
export * from './unreg-models-list-response.schema';
|
|
16
|
+
export * from './user-ai-model-type.enum';
|
|
17
|
+
export * from './toggle-favorite-response.schema';
|
|
18
|
+
export * from './default-favorites.schema';
|
|
@@ -29,4 +29,7 @@ __exportStar(require("./route-params.schema"), exports);
|
|
|
29
29
|
__exportStar(require("./get-models-filters.schema"), exports);
|
|
30
30
|
__exportStar(require("./models-list-response.schema"), exports);
|
|
31
31
|
__exportStar(require("./unreg-models-list-response.schema"), exports);
|
|
32
|
+
__exportStar(require("./user-ai-model-type.enum"), exports);
|
|
33
|
+
__exportStar(require("./toggle-favorite-response.schema"), exports);
|
|
34
|
+
__exportStar(require("./default-favorites.schema"), exports);
|
|
32
35
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/ai-model/schemas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC;AACvC,oDAAkC;AAClC,oDAAkC;AAClC,oDAAkC;AAClC,sDAAoC;AACpC,kDAAgC;AAChC,0DAAwC;AACxC,0DAAwC;AACxC,gEAA8C;AAC9C,gEAA8C;AAC9C,0DAAwC;AACxC,wDAAsC;AACtC,8DAA4C;AAC5C,gEAA8C;AAC9C,sEAAoD"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/ai-model/schemas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC;AACvC,oDAAkC;AAClC,oDAAkC;AAClC,oDAAkC;AAClC,sDAAoC;AACpC,kDAAgC;AAChC,0DAAwC;AACxC,0DAAwC;AACxC,gEAA8C;AAC9C,gEAA8C;AAC9C,0DAAwC;AACxC,wDAAsC;AACtC,8DAA4C;AAC5C,gEAA8C;AAC9C,sEAAoD;AACpD,4DAA0C;AAC1C,oEAAkD;AAClD,6DAA2C"}
|
|
@@ -165,4 +165,55 @@ export declare const ModelsListResponseSchema: z.ZodObject<{
|
|
|
165
165
|
accessReason: z.ZodNullable<z.ZodEnum<typeof import("../..").AccessReason>>;
|
|
166
166
|
}, z.core.$strip>>;
|
|
167
167
|
}, z.core.$strip>>;
|
|
168
|
+
favorites: z.ZodArray<z.ZodObject<{
|
|
169
|
+
type: z.ZodEnum<typeof import("./model-type.enum").ModelType>;
|
|
170
|
+
uuid: z.ZodString;
|
|
171
|
+
title: z.ZodString;
|
|
172
|
+
description: z.ZodString;
|
|
173
|
+
order: z.ZodNumber;
|
|
174
|
+
marks: z.ZodArray<z.ZodEnum<typeof import("./model-mark.enum").ModelMark>>;
|
|
175
|
+
icon: z.ZodString;
|
|
176
|
+
price: z.ZodNumber;
|
|
177
|
+
speed: z.ZodNumber;
|
|
178
|
+
bestFor: z.ZodArray<z.ZodString>;
|
|
179
|
+
usageExamples: z.ZodArray<z.ZodString>;
|
|
180
|
+
inputModalities: z.ZodArray<z.ZodEnum<typeof import("./modality.enum").Modality>>;
|
|
181
|
+
outputModalities: z.ZodArray<z.ZodEnum<typeof import("./modality.enum").Modality>>;
|
|
182
|
+
modelRoles: z.ZodArray<z.ZodEnum<typeof import("./model-role.enum").ModelRole>>;
|
|
183
|
+
plugins: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
184
|
+
id: z.ZodLiteral<import("../..").PluginId.WEB>;
|
|
185
|
+
price: z.ZodNumber;
|
|
186
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
187
|
+
id: z.ZodLiteral<import("../..").PluginId.REASONING>;
|
|
188
|
+
default: z.ZodEnum<typeof import("../..").ReasoningEffort>;
|
|
189
|
+
supportedValues: z.ZodArray<z.ZodObject<{
|
|
190
|
+
value: z.ZodEnum<typeof import("../..").ReasoningEffort>;
|
|
191
|
+
price: z.ZodNumber;
|
|
192
|
+
}, z.core.$strip>>;
|
|
193
|
+
}, z.core.$strip>], "id">>;
|
|
194
|
+
settings: z.ZodObject<{
|
|
195
|
+
attachments: z.ZodOptional<z.ZodObject<{
|
|
196
|
+
imagePrice: z.ZodNumber;
|
|
197
|
+
filePrice: z.ZodNumber;
|
|
198
|
+
maxImages: z.ZodNumber;
|
|
199
|
+
maxFiles: z.ZodNumber;
|
|
200
|
+
}, z.core.$strip>>;
|
|
201
|
+
}, z.core.$strip>;
|
|
202
|
+
toolSettings: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
203
|
+
key: z.ZodEnum<typeof import("./model-settings.schema").SettingKey>;
|
|
204
|
+
title: z.ZodString;
|
|
205
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
206
|
+
inputType: z.ZodEnum<typeof import("./model-settings.schema").SettingInputType>;
|
|
207
|
+
defaultOptionId: z.ZodString;
|
|
208
|
+
maxSelections: z.ZodOptional<z.ZodNumber>;
|
|
209
|
+
options: z.ZodArray<z.ZodObject<{
|
|
210
|
+
id: z.ZodString;
|
|
211
|
+
title: z.ZodString;
|
|
212
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
213
|
+
priceModifier: z.ZodDefault<z.ZodNumber>;
|
|
214
|
+
}, z.core.$strip>>;
|
|
215
|
+
}, z.core.$strip>>>;
|
|
216
|
+
access: z.ZodBoolean;
|
|
217
|
+
accessReason: z.ZodNullable<z.ZodEnum<typeof import("../..").AccessReason>>;
|
|
218
|
+
}, z.core.$strip>>;
|
|
168
219
|
}, z.core.$strip>;
|
|
@@ -15,5 +15,6 @@ exports.PublicProviderWithModelsSchema = ai_provider_1.ProviderResponseSchema.pi
|
|
|
15
15
|
});
|
|
16
16
|
exports.ModelsListResponseSchema = zod_1.z.object({
|
|
17
17
|
providers: zod_1.z.array(exports.PublicProviderWithModelsSchema),
|
|
18
|
+
favorites: zod_1.z.array(exports.PublicModelInListSchema),
|
|
18
19
|
});
|
|
19
20
|
//# sourceMappingURL=models-list-response.schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models-list-response.schema.js","sourceRoot":"","sources":["../../../../v1/ai-model/schemas/models-list-response.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,mEAAoE;AACpE,mDAA2D;AAM9C,QAAA,uBAAuB,GAAG,iDAAyB,CAAC;AAMpD,QAAA,8BAA8B,GAAG,oCAAsB,CAAC,IAAI,CAAC;IACtE,IAAI,EAAE,IAAI;IACV,KAAK,EAAE,IAAI;IACX,IAAI,EAAE,IAAI;IACV,KAAK,EAAE,IAAI;CACd,CAAC,CAAC,MAAM,CAAC;IACN,MAAM,EAAE,OAAC,CAAC,KAAK,CAAC,+BAAuB,CAAC;CAC3C,CAAC,CAAC;AAKU,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,SAAS,EAAE,OAAC,CAAC,KAAK,CAAC,sCAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"models-list-response.schema.js","sourceRoot":"","sources":["../../../../v1/ai-model/schemas/models-list-response.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,mEAAoE;AACpE,mDAA2D;AAM9C,QAAA,uBAAuB,GAAG,iDAAyB,CAAC;AAMpD,QAAA,8BAA8B,GAAG,oCAAsB,CAAC,IAAI,CAAC;IACtE,IAAI,EAAE,IAAI;IACV,KAAK,EAAE,IAAI;IACX,IAAI,EAAE,IAAI;IACV,KAAK,EAAE,IAAI;CACd,CAAC,CAAC,MAAM,CAAC;IACN,MAAM,EAAE,OAAC,CAAC,KAAK,CAAC,+BAAuB,CAAC;CAC3C,CAAC,CAAC;AAKU,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,SAAS,EAAE,OAAC,CAAC,KAAK,CAAC,sCAA8B,CAAC;IAClD,SAAS,EAAE,OAAC,CAAC,KAAK,CAAC,+BAAuB,CAAC;CAC9C,CAAC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ToggleFavoriteAiModelResponseSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.ToggleFavoriteAiModelResponseSchema = zod_1.z.object({
|
|
6
|
+
isFavorite: zod_1.z.boolean(),
|
|
7
|
+
});
|
|
8
|
+
//# sourceMappingURL=toggle-favorite-response.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toggle-favorite-response.schema.js","sourceRoot":"","sources":["../../../../v1/ai-model/schemas/toggle-favorite-response.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,mCAAmC,GAAG,OAAC,CAAC,MAAM,CAAC;IACxD,UAAU,EAAE,OAAC,CAAC,OAAO,EAAE;CAC1B,CAAC,CAAC"}
|
|
@@ -56,4 +56,55 @@ export declare const UnregModelsListResponseSchema: import("zod").ZodObject<{
|
|
|
56
56
|
accessReason: import("zod").ZodNullable<import("zod").ZodEnum<typeof import("../..").AccessReason>>;
|
|
57
57
|
}, import("zod/v4/core").$strip>>;
|
|
58
58
|
}, import("zod/v4/core").$strip>>;
|
|
59
|
+
favorites: import("zod").ZodArray<import("zod").ZodObject<{
|
|
60
|
+
type: import("zod").ZodEnum<typeof import("./model-type.enum").ModelType>;
|
|
61
|
+
uuid: import("zod").ZodString;
|
|
62
|
+
title: import("zod").ZodString;
|
|
63
|
+
description: import("zod").ZodString;
|
|
64
|
+
order: import("zod").ZodNumber;
|
|
65
|
+
marks: import("zod").ZodArray<import("zod").ZodEnum<typeof import("./model-mark.enum").ModelMark>>;
|
|
66
|
+
icon: import("zod").ZodString;
|
|
67
|
+
price: import("zod").ZodNumber;
|
|
68
|
+
speed: import("zod").ZodNumber;
|
|
69
|
+
bestFor: import("zod").ZodArray<import("zod").ZodString>;
|
|
70
|
+
usageExamples: import("zod").ZodArray<import("zod").ZodString>;
|
|
71
|
+
inputModalities: import("zod").ZodArray<import("zod").ZodEnum<typeof import("./modality.enum").Modality>>;
|
|
72
|
+
outputModalities: import("zod").ZodArray<import("zod").ZodEnum<typeof import("./modality.enum").Modality>>;
|
|
73
|
+
modelRoles: import("zod").ZodArray<import("zod").ZodEnum<typeof import("./model-role.enum").ModelRole>>;
|
|
74
|
+
plugins: import("zod").ZodArray<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
75
|
+
id: import("zod").ZodLiteral<import("../..").PluginId.WEB>;
|
|
76
|
+
price: import("zod").ZodNumber;
|
|
77
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
78
|
+
id: import("zod").ZodLiteral<import("../..").PluginId.REASONING>;
|
|
79
|
+
default: import("zod").ZodEnum<typeof import("../..").ReasoningEffort>;
|
|
80
|
+
supportedValues: import("zod").ZodArray<import("zod").ZodObject<{
|
|
81
|
+
value: import("zod").ZodEnum<typeof import("../..").ReasoningEffort>;
|
|
82
|
+
price: import("zod").ZodNumber;
|
|
83
|
+
}, import("zod/v4/core").$strip>>;
|
|
84
|
+
}, import("zod/v4/core").$strip>], "id">>;
|
|
85
|
+
settings: import("zod").ZodObject<{
|
|
86
|
+
attachments: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
87
|
+
imagePrice: import("zod").ZodNumber;
|
|
88
|
+
filePrice: import("zod").ZodNumber;
|
|
89
|
+
maxImages: import("zod").ZodNumber;
|
|
90
|
+
maxFiles: import("zod").ZodNumber;
|
|
91
|
+
}, import("zod/v4/core").$strip>>;
|
|
92
|
+
}, import("zod/v4/core").$strip>;
|
|
93
|
+
toolSettings: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodObject<{
|
|
94
|
+
key: import("zod").ZodEnum<typeof import("./model-settings.schema").SettingKey>;
|
|
95
|
+
title: import("zod").ZodString;
|
|
96
|
+
icon: import("zod").ZodOptional<import("zod").ZodString>;
|
|
97
|
+
inputType: import("zod").ZodEnum<typeof import("./model-settings.schema").SettingInputType>;
|
|
98
|
+
defaultOptionId: import("zod").ZodString;
|
|
99
|
+
maxSelections: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
100
|
+
options: import("zod").ZodArray<import("zod").ZodObject<{
|
|
101
|
+
id: import("zod").ZodString;
|
|
102
|
+
title: import("zod").ZodString;
|
|
103
|
+
icon: import("zod").ZodOptional<import("zod").ZodString>;
|
|
104
|
+
priceModifier: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
105
|
+
}, import("zod/v4/core").$strip>>;
|
|
106
|
+
}, import("zod/v4/core").$strip>>>;
|
|
107
|
+
access: import("zod").ZodBoolean;
|
|
108
|
+
accessReason: import("zod").ZodNullable<import("zod").ZodEnum<typeof import("../..").AccessReason>>;
|
|
109
|
+
}, import("zod/v4/core").$strip>>;
|
|
59
110
|
}, import("zod/v4/core").$strip>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserAiModelType = void 0;
|
|
4
|
+
var UserAiModelType;
|
|
5
|
+
(function (UserAiModelType) {
|
|
6
|
+
UserAiModelType["FAVORITE"] = "favorite";
|
|
7
|
+
})(UserAiModelType || (exports.UserAiModelType = UserAiModelType = {}));
|
|
8
|
+
//# sourceMappingURL=user-ai-model-type.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-ai-model-type.enum.js","sourceRoot":"","sources":["../../../../v1/ai-model/schemas/user-ai-model-type.enum.ts"],"names":[],"mappings":";;;AAGA,IAAY,eAEX;AAFD,WAAY,eAAe;IACvB,wCAAqB,CAAA;AACzB,CAAC,EAFW,eAAe,+BAAf,eAAe,QAE1B"}
|
|
@@ -60,6 +60,57 @@ export declare namespace UnregAiModelGetModelsListQuery {
|
|
|
60
60
|
accessReason: z.ZodNullable<z.ZodEnum<typeof import("../../..").AccessReason>>;
|
|
61
61
|
}, z.core.$strip>>;
|
|
62
62
|
}, z.core.$strip>>;
|
|
63
|
+
favorites: z.ZodArray<z.ZodObject<{
|
|
64
|
+
type: z.ZodEnum<typeof import("../../schemas").ModelType>;
|
|
65
|
+
uuid: z.ZodString;
|
|
66
|
+
title: z.ZodString;
|
|
67
|
+
description: z.ZodString;
|
|
68
|
+
order: z.ZodNumber;
|
|
69
|
+
marks: z.ZodArray<z.ZodEnum<typeof import("../../schemas").ModelMark>>;
|
|
70
|
+
icon: z.ZodString;
|
|
71
|
+
price: z.ZodNumber;
|
|
72
|
+
speed: z.ZodNumber;
|
|
73
|
+
bestFor: z.ZodArray<z.ZodString>;
|
|
74
|
+
usageExamples: z.ZodArray<z.ZodString>;
|
|
75
|
+
inputModalities: z.ZodArray<z.ZodEnum<typeof import("../../schemas").Modality>>;
|
|
76
|
+
outputModalities: z.ZodArray<z.ZodEnum<typeof import("../../schemas").Modality>>;
|
|
77
|
+
modelRoles: z.ZodArray<z.ZodEnum<typeof import("../../schemas").ModelRole>>;
|
|
78
|
+
plugins: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
79
|
+
id: z.ZodLiteral<import("../../..").PluginId.WEB>;
|
|
80
|
+
price: z.ZodNumber;
|
|
81
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
82
|
+
id: z.ZodLiteral<import("../../..").PluginId.REASONING>;
|
|
83
|
+
default: z.ZodEnum<typeof import("../../..").ReasoningEffort>;
|
|
84
|
+
supportedValues: z.ZodArray<z.ZodObject<{
|
|
85
|
+
value: z.ZodEnum<typeof import("../../..").ReasoningEffort>;
|
|
86
|
+
price: z.ZodNumber;
|
|
87
|
+
}, z.core.$strip>>;
|
|
88
|
+
}, z.core.$strip>], "id">>;
|
|
89
|
+
settings: z.ZodObject<{
|
|
90
|
+
attachments: z.ZodOptional<z.ZodObject<{
|
|
91
|
+
imagePrice: z.ZodNumber;
|
|
92
|
+
filePrice: z.ZodNumber;
|
|
93
|
+
maxImages: z.ZodNumber;
|
|
94
|
+
maxFiles: z.ZodNumber;
|
|
95
|
+
}, z.core.$strip>>;
|
|
96
|
+
}, z.core.$strip>;
|
|
97
|
+
toolSettings: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
98
|
+
key: z.ZodEnum<typeof import("../../schemas").SettingKey>;
|
|
99
|
+
title: z.ZodString;
|
|
100
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
101
|
+
inputType: z.ZodEnum<typeof import("../../schemas").SettingInputType>;
|
|
102
|
+
defaultOptionId: z.ZodString;
|
|
103
|
+
maxSelections: z.ZodOptional<z.ZodNumber>;
|
|
104
|
+
options: z.ZodArray<z.ZodObject<{
|
|
105
|
+
id: z.ZodString;
|
|
106
|
+
title: z.ZodString;
|
|
107
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
108
|
+
priceModifier: z.ZodDefault<z.ZodNumber>;
|
|
109
|
+
}, z.core.$strip>>;
|
|
110
|
+
}, z.core.$strip>>>;
|
|
111
|
+
access: z.ZodBoolean;
|
|
112
|
+
accessReason: z.ZodNullable<z.ZodEnum<typeof import("../../..").AccessReason>>;
|
|
113
|
+
}, z.core.$strip>>;
|
|
63
114
|
}, z.core.$strip>;
|
|
64
115
|
const URL: "/api/v1/unreg/ai-models/list";
|
|
65
116
|
const METHOD = HttpMethod.GET;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { UserAiModelToggleFavoriteCommand } from './toggle-favorite.command';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserAiModelToggleFavoriteCommand = void 0;
|
|
4
|
+
var toggle_favorite_command_1 = require("./toggle-favorite.command");
|
|
5
|
+
Object.defineProperty(exports, "UserAiModelToggleFavoriteCommand", { enumerable: true, get: function () { return toggle_favorite_command_1.UserAiModelToggleFavoriteCommand; } });
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../v1/ai-model/user/commands/index.ts"],"names":[],"mappings":";;;AAAA,qEAA6E;AAApE,2IAAA,gCAAgC,OAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpMethod } from '../../../../shared/http-method';
|
|
3
|
+
export declare namespace UserAiModelToggleFavoriteCommand {
|
|
4
|
+
const Request: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
const Response: z.ZodObject<{
|
|
6
|
+
isFavorite: z.ZodBoolean;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
const URL: (uuid: string) => string;
|
|
9
|
+
const METHOD = HttpMethod.POST;
|
|
10
|
+
type RequestType = z.infer<typeof Request>;
|
|
11
|
+
type ResponseType = z.infer<typeof Response>;
|
|
12
|
+
}
|