@veruna/api-contracts 1.1.38 → 1.1.40
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/index.d.ts +2 -0
- package/build/controllers/index.js +5 -1
- package/build/controllers/index.js.map +1 -1
- package/build/controllers/kie-integration.controllers.d.ts +1 -0
- package/build/controllers/kie-integration.controllers.js +5 -0
- package/build/controllers/kie-integration.controllers.js.map +1 -0
- package/build/controllers/model-route.controllers.d.ts +1 -0
- package/build/controllers/model-route.controllers.js +5 -0
- package/build/controllers/model-route.controllers.js.map +1 -0
- package/build/rest-api.d.ts +12 -0
- package/build/rest-api.js +12 -0
- package/build/rest-api.js.map +1 -1
- package/build/routes/index.d.ts +2 -0
- package/build/routes/index.js +5 -1
- package/build/routes/index.js.map +1 -1
- package/build/routes/kie-integration.routes.d.ts +3 -0
- package/build/routes/kie-integration.routes.js +7 -0
- package/build/routes/kie-integration.routes.js.map +1 -0
- package/build/routes/model-route-admin.routes.d.ts +7 -0
- package/build/routes/model-route-admin.routes.js +11 -0
- package/build/routes/model-route-admin.routes.js.map +1 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/v1/ai/index.d.ts +2 -0
- package/build/v1/ai/index.js +2 -0
- package/build/v1/ai/index.js.map +1 -1
- package/build/v1/ai/resolved-tool-settings.types.d.ts +32 -0
- package/build/v1/ai/resolved-tool-settings.types.js +12 -0
- package/build/v1/ai/resolved-tool-settings.types.js.map +1 -0
- package/build/v1/ai/retryable-ai-error-codes.d.ts +2 -0
- package/build/v1/ai/retryable-ai-error-codes.js +17 -0
- package/build/v1/ai/retryable-ai-error-codes.js.map +1 -0
- package/build/v1/ai/tool-id.enum.d.ts +2 -0
- package/build/v1/ai/tool-id.enum.js +2 -0
- package/build/v1/ai/tool-id.enum.js.map +1 -1
- package/build/v1/ai/tool.types.d.ts +0 -8
- package/build/v1/ai/tool.types.js +0 -2
- package/build/v1/ai/tool.types.js.map +1 -1
- package/build/v1/ai-model/admin/commands/create-model.command.d.ts +0 -22
- package/build/v1/ai-model/admin/commands/update-model.command.d.ts +0 -22
- package/build/v1/ai-model/admin/queries/get-model.query.d.ts +0 -11
- package/build/v1/ai-model/admin/queries/get-models.query.d.ts +0 -11
- package/build/v1/ai-model/public/queries/get-active-models.query.d.ts +0 -23
- package/build/v1/ai-model/public/queries/get-models-list.query.d.ts +0 -46
- package/build/v1/ai-model/schemas/api-provider.enum.d.ts +2 -1
- package/build/v1/ai-model/schemas/api-provider.enum.js +1 -0
- package/build/v1/ai-model/schemas/api-provider.enum.js.map +1 -1
- package/build/v1/ai-model/schemas/create-model-request.schema.d.ts +0 -13
- package/build/v1/ai-model/schemas/create-model-request.schema.js +0 -11
- package/build/v1/ai-model/schemas/create-model-request.schema.js.map +1 -1
- package/build/v1/ai-model/schemas/model-response.schema.d.ts +0 -36
- package/build/v1/ai-model/schemas/model-response.schema.js +0 -12
- package/build/v1/ai-model/schemas/model-response.schema.js.map +1 -1
- package/build/v1/ai-model/schemas/model-settings.schema.d.ts +66 -208
- package/build/v1/ai-model/schemas/model-settings.schema.js +38 -74
- package/build/v1/ai-model/schemas/model-settings.schema.js.map +1 -1
- package/build/v1/ai-model/schemas/models-list-response.schema.d.ts +0 -115
- package/build/v1/ai-model/schemas/unreg-models-list-response.schema.d.ts +0 -46
- package/build/v1/ai-model/schemas/update-model-request.schema.d.ts +0 -13
- package/build/v1/ai-model/schemas/update-model-request.schema.js +0 -12
- package/build/v1/ai-model/schemas/update-model-request.schema.js.map +1 -1
- package/build/v1/ai-model/unreg/queries/get-models-list.query.d.ts +0 -46
- package/build/v1/ai-provider/admin/commands/create-provider.command.d.ts +0 -4
- package/build/v1/ai-provider/admin/commands/update-provider.command.d.ts +0 -4
- package/build/v1/ai-provider/admin/queries/get-provider.query.d.ts +0 -2
- package/build/v1/ai-provider/admin/queries/get-providers.query.d.ts +0 -2
- package/build/v1/ai-provider/public/queries/get-active-providers.query.d.ts +0 -2
- package/build/v1/ai-provider/schemas/create-provider-request.schema.d.ts +0 -2
- package/build/v1/ai-provider/schemas/create-provider-request.schema.js +0 -4
- package/build/v1/ai-provider/schemas/create-provider-request.schema.js.map +1 -1
- package/build/v1/ai-provider/schemas/provider-response.schema.d.ts +0 -2
- package/build/v1/ai-provider/schemas/provider-response.schema.js +0 -2
- package/build/v1/ai-provider/schemas/provider-response.schema.js.map +1 -1
- package/build/v1/ai-provider/schemas/update-provider-request.schema.d.ts +0 -2
- package/build/v1/ai-provider/schemas/update-provider-request.schema.js +0 -4
- package/build/v1/ai-provider/schemas/update-provider-request.schema.js.map +1 -1
- package/build/v1/assistants/catalog/queries/catalog-short-reg.query.d.ts +4 -4
- package/build/v1/assistants/catalog/queries/catalog-short-unreg.query.d.ts +4 -4
- package/build/v1/assistants/public/queries/get-tree.query.d.ts +4 -4
- package/build/v1/assistants/schemas/assistant-tree.schema.d.ts +12 -12
- package/build/v1/assistants/schemas/assistant-tree.schema.js +1 -1
- package/build/v1/assistants/schemas/assistant-tree.schema.js.map +1 -1
- package/build/v1/assistants/schemas/catalog-short-response.schema.d.ts +16 -16
- package/build/v1/assistants/schemas/catalog-short-response.schema.js +1 -1
- package/build/v1/assistants/schemas/catalog-short-response.schema.js.map +1 -1
- package/build/v1/index.d.ts +2 -0
- package/build/v1/index.js +2 -0
- package/build/v1/index.js.map +1 -1
- package/build/v1/kie-integration/index.d.ts +3 -0
- package/build/v1/kie-integration/index.js +23 -0
- package/build/v1/kie-integration/index.js.map +1 -0
- package/build/v1/kie-integration/kie-integration.errors.d.ts +23 -0
- package/build/v1/kie-integration/kie-integration.errors.js +104 -0
- package/build/v1/kie-integration/kie-integration.errors.js.map +1 -0
- package/build/v1/message/commands/create-message.command.d.ts +0 -4
- package/build/v1/message/schemas/create-message-request.schema.d.ts +0 -4
- package/build/v1/model-route/admin/commands/create-model-route.command.d.ts +87 -0
- package/build/v1/model-route/admin/commands/create-model-route.command.js +15 -0
- package/build/v1/model-route/admin/commands/create-model-route.command.js.map +1 -0
- package/build/v1/model-route/admin/commands/delete-model-route.command.d.ts +11 -0
- package/build/v1/model-route/admin/commands/delete-model-route.command.js +13 -0
- package/build/v1/model-route/admin/commands/delete-model-route.command.js.map +1 -0
- package/build/v1/model-route/admin/commands/index.d.ts +3 -0
- package/build/v1/model-route/admin/commands/index.js +20 -0
- package/build/v1/model-route/admin/commands/index.js.map +1 -0
- package/build/v1/model-route/admin/commands/update-model-route.command.d.ts +85 -0
- package/build/v1/model-route/admin/commands/update-model-route.command.js +13 -0
- package/build/v1/model-route/admin/commands/update-model-route.command.js.map +1 -0
- package/build/v1/model-route/admin/index.d.ts +2 -0
- package/build/v1/model-route/admin/index.js +19 -0
- package/build/v1/model-route/admin/index.js.map +1 -0
- package/build/v1/model-route/admin/queries/get-model-route.query.d.ts +49 -0
- package/build/v1/model-route/admin/queries/get-model-route.query.js +13 -0
- package/build/v1/model-route/admin/queries/get-model-route.query.js.map +1 -0
- package/build/v1/model-route/admin/queries/index.d.ts +2 -0
- package/build/v1/model-route/admin/queries/index.js +19 -0
- package/build/v1/model-route/admin/queries/index.js.map +1 -0
- package/build/v1/model-route/admin/queries/list-model-routes-by-model.query.d.ts +51 -0
- package/build/v1/model-route/admin/queries/list-model-routes-by-model.query.js +13 -0
- package/build/v1/model-route/admin/queries/list-model-routes-by-model.query.js.map +1 -0
- package/build/v1/model-route/index.d.ts +3 -0
- package/build/v1/model-route/index.js +20 -0
- package/build/v1/model-route/index.js.map +1 -0
- package/build/v1/model-route/model-route.errors.d.ts +7 -0
- package/build/v1/model-route/model-route.errors.js +24 -0
- package/build/v1/model-route/model-route.errors.js.map +1 -0
- package/build/v1/model-route/schemas/create-model-route-request.schema.d.ts +42 -0
- package/build/v1/model-route/schemas/create-model-route-request.schema.js +29 -0
- package/build/v1/model-route/schemas/create-model-route-request.schema.js.map +1 -0
- package/build/v1/model-route/schemas/index.d.ts +6 -0
- package/build/v1/model-route/schemas/index.js +23 -0
- package/build/v1/model-route/schemas/index.js.map +1 -0
- package/build/v1/model-route/schemas/list-model-routes-response.schema.d.ts +45 -0
- package/build/v1/model-route/schemas/list-model-routes-response.schema.js +9 -0
- package/build/v1/model-route/schemas/list-model-routes-response.schema.js.map +1 -0
- package/build/v1/model-route/schemas/model-route-response.schema.d.ts +45 -0
- package/build/v1/model-route/schemas/model-route-response.schema.js +20 -0
- package/build/v1/model-route/schemas/model-route-response.schema.js.map +1 -0
- package/build/v1/model-route/schemas/model-route-status.enum.d.ts +4 -0
- package/build/v1/model-route/schemas/model-route-status.enum.js +9 -0
- package/build/v1/model-route/schemas/model-route-status.enum.js.map +1 -0
- package/build/v1/model-route/schemas/provider-generation-config.schema.d.ts +84 -0
- package/build/v1/model-route/schemas/provider-generation-config.schema.js +56 -0
- package/build/v1/model-route/schemas/provider-generation-config.schema.js.map +1 -0
- package/build/v1/model-route/schemas/update-model-route-request.schema.d.ts +41 -0
- package/build/v1/model-route/schemas/update-model-route-request.schema.js +23 -0
- package/build/v1/model-route/schemas/update-model-route-request.schema.js.map +1 -0
- package/build/v1/notifications/commands/update-notification-settings.command.d.ts +1 -0
- package/build/v1/notifications/queries/get-notification-settings.query.d.ts +1 -0
- package/build/v1/notifications/schemas/index.d.ts +1 -0
- package/build/v1/notifications/schemas/index.js +1 -0
- package/build/v1/notifications/schemas/index.js.map +1 -1
- package/build/v1/notifications/schemas/notification-disable-block-reason.enum.d.ts +3 -0
- package/build/v1/notifications/schemas/notification-disable-block-reason.enum.js +8 -0
- package/build/v1/notifications/schemas/notification-disable-block-reason.enum.js.map +1 -0
- package/build/v1/notifications/schemas/notification-setting.schema.d.ts +2 -0
- package/build/v1/notifications/schemas/notification-setting.schema.js +2 -0
- package/build/v1/notifications/schemas/notification-setting.schema.js.map +1 -1
- package/build/v1/notifications/schemas/notification-settings-response.schema.d.ts +1 -0
- package/build/v1/tool/admin/commands/create-model-tool-binding.command.d.ts +136 -104
- package/build/v1/tool/admin/commands/update-model-tool-binding.command.d.ts +136 -104
- package/build/v1/tool/admin/queries/get-model-tool-bindings.query.d.ts +80 -22
- package/build/v1/tool/public/queries/get-tool-availability.query.d.ts +0 -23
- package/build/v1/tool/schemas/index.d.ts +2 -0
- package/build/v1/tool/schemas/index.js +2 -0
- package/build/v1/tool/schemas/index.js.map +1 -1
- package/build/v1/tool/schemas/kie-body-mode.enum.d.ts +5 -0
- package/build/v1/tool/schemas/kie-body-mode.enum.js +10 -0
- package/build/v1/tool/schemas/kie-body-mode.enum.js.map +1 -0
- package/build/v1/tool/schemas/kie-tool-runtime-overrides.schema.d.ts +11 -0
- package/build/v1/tool/schemas/kie-tool-runtime-overrides.schema.js +42 -0
- package/build/v1/tool/schemas/kie-tool-runtime-overrides.schema.js.map +1 -0
- package/build/v1/tool/schemas/tool.schema.d.ts +327 -445
- package/build/v1/tool/schemas/tool.schema.js +13 -8
- package/build/v1/tool/schemas/tool.schema.js.map +1 -1
- package/build/v1/tool/unreg/queries/get-tool-availability-unreg.query.d.ts +0 -23
- package/package.json +1 -1
package/build/v1/ai/index.d.ts
CHANGED
package/build/v1/ai/index.js
CHANGED
|
@@ -15,7 +15,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./ai.errors"), exports);
|
|
18
|
+
__exportStar(require("./retryable-ai-error-codes"), exports);
|
|
18
19
|
__exportStar(require("./plugins.types"), exports);
|
|
19
20
|
__exportStar(require("./tool-id.enum"), exports);
|
|
20
21
|
__exportStar(require("./tool.types"), exports);
|
|
22
|
+
__exportStar(require("./resolved-tool-settings.types"), exports);
|
|
21
23
|
//# sourceMappingURL=index.js.map
|
package/build/v1/ai/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../v1/ai/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,kDAAgC;AAChC,iDAA+B;AAC/B,+CAA6B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../v1/ai/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,6DAA2C;AAC3C,kDAAgC;AAChC,iDAA+B;AAC/B,+CAA6B;AAC7B,iEAA+C"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { SettingKey } from '../ai-model/schemas/model-settings.schema';
|
|
3
|
+
import { SettingOption } from '../ai-model/schemas/model-settings.schema';
|
|
4
|
+
import { AutoSchemaConfig } from '../ai-model/schemas/model-settings.schema';
|
|
5
|
+
export declare const ToolRuntimeOverridesSchema: z.ZodObject<{
|
|
6
|
+
openrouter: z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
|
|
7
|
+
kie: z.ZodOptional<z.ZodObject<{
|
|
8
|
+
inputUrlsKey: z.ZodOptional<z.ZodString>;
|
|
9
|
+
inputUrlsSingle: z.ZodOptional<z.ZodBoolean>;
|
|
10
|
+
fixedFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
11
|
+
endpoint: z.ZodOptional<z.ZodString>;
|
|
12
|
+
bodyMode: z.ZodOptional<z.ZodEnum<typeof import("..").KieBodyMode>>;
|
|
13
|
+
promptMaxLen: z.ZodOptional<z.ZodNumber>;
|
|
14
|
+
}, z.core.$strict>>;
|
|
15
|
+
}, z.core.$strict>;
|
|
16
|
+
export type ToolRuntimeOverrides = z.infer<typeof ToolRuntimeOverridesSchema>;
|
|
17
|
+
export interface ResolvedSetting {
|
|
18
|
+
key: SettingKey;
|
|
19
|
+
options: SettingOption[];
|
|
20
|
+
totalPriceModifier: number;
|
|
21
|
+
promptSuffix?: string;
|
|
22
|
+
isAuto: boolean;
|
|
23
|
+
autoSchemaConfig: AutoSchemaConfig;
|
|
24
|
+
allOptions: SettingOption[];
|
|
25
|
+
}
|
|
26
|
+
export interface ResolvedToolSettings {
|
|
27
|
+
toolUuid: string;
|
|
28
|
+
toolKey: string;
|
|
29
|
+
settings: ResolvedSetting[];
|
|
30
|
+
totalPriceModifier: number;
|
|
31
|
+
runtimeOverrides: ToolRuntimeOverrides;
|
|
32
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ToolRuntimeOverridesSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const kie_tool_runtime_overrides_schema_1 = require("../tool/schemas/kie-tool-runtime-overrides.schema");
|
|
6
|
+
exports.ToolRuntimeOverridesSchema = zod_1.z
|
|
7
|
+
.object({
|
|
8
|
+
openrouter: zod_1.z.object({}).strict().optional(),
|
|
9
|
+
kie: kie_tool_runtime_overrides_schema_1.KieToolRuntimeOverridesSchema.optional(),
|
|
10
|
+
})
|
|
11
|
+
.strict();
|
|
12
|
+
//# sourceMappingURL=resolved-tool-settings.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolved-tool-settings.types.js","sourceRoot":"","sources":["../../../v1/ai/resolved-tool-settings.types.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAIxB,yGAAkG;AAErF,QAAA,0BAA0B,GAAG,OAAC;KACtC,MAAM,CAAC;IACJ,UAAU,EAAE,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5C,GAAG,EAAE,iEAA6B,CAAC,QAAQ,EAAE;CAChD,CAAC;KACD,MAAM,EAAE,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RETRYABLE_AI_ERROR_CODES = void 0;
|
|
4
|
+
exports.isRetryableAiErrorCode = isRetryableAiErrorCode;
|
|
5
|
+
const ai_errors_1 = require("./ai.errors");
|
|
6
|
+
exports.RETRYABLE_AI_ERROR_CODES = new Set([
|
|
7
|
+
ai_errors_1.AIErrorCode.PROVIDER_ERROR,
|
|
8
|
+
ai_errors_1.AIErrorCode.PROVIDER_RATE_LIMIT,
|
|
9
|
+
ai_errors_1.AIErrorCode.PROVIDER_TIMEOUT,
|
|
10
|
+
ai_errors_1.AIErrorCode.GENERATION_FAILED,
|
|
11
|
+
ai_errors_1.AIErrorCode.GENERATION_TIMEOUT,
|
|
12
|
+
ai_errors_1.AIErrorCode.MODEL_UNAVAILABLE,
|
|
13
|
+
]);
|
|
14
|
+
function isRetryableAiErrorCode(code) {
|
|
15
|
+
return exports.RETRYABLE_AI_ERROR_CODES.has(code);
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=retryable-ai-error-codes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retryable-ai-error-codes.js","sourceRoot":"","sources":["../../../v1/ai/retryable-ai-error-codes.ts"],"names":[],"mappings":";;;AAsBA,wDAEC;AAxBD,2CAA0C;AAa7B,QAAA,wBAAwB,GAAwB,IAAI,GAAG,CAAS;IACzE,uBAAW,CAAC,cAAc;IAC1B,uBAAW,CAAC,mBAAmB;IAC/B,uBAAW,CAAC,gBAAgB;IAC5B,uBAAW,CAAC,iBAAiB;IAC7B,uBAAW,CAAC,kBAAkB;IAC9B,uBAAW,CAAC,iBAAiB;CAChC,CAAC,CAAC;AAEH,SAAgB,sBAAsB,CAAC,IAAY;IAC/C,OAAO,gCAAwB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;AAC9C,CAAC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export declare enum ToolId {
|
|
2
2
|
IMAGE_GEN = "imageGen",
|
|
3
3
|
IMAGE_EDIT = "imageEdit",
|
|
4
|
+
IMAGE_UPSCALE = "imageUpscale",
|
|
5
|
+
IMAGE_REMOVE_BG = "imageRemoveBg",
|
|
4
6
|
WEB_SEARCH = "webSearch",
|
|
5
7
|
YOUTUBE_VIDEO_ANALYSIS = "youtubeVideoAnalysis",
|
|
6
8
|
HTML_VISUALIZATION = "htmlVisualization"
|
|
@@ -5,6 +5,8 @@ var ToolId;
|
|
|
5
5
|
(function (ToolId) {
|
|
6
6
|
ToolId["IMAGE_GEN"] = "imageGen";
|
|
7
7
|
ToolId["IMAGE_EDIT"] = "imageEdit";
|
|
8
|
+
ToolId["IMAGE_UPSCALE"] = "imageUpscale";
|
|
9
|
+
ToolId["IMAGE_REMOVE_BG"] = "imageRemoveBg";
|
|
8
10
|
ToolId["WEB_SEARCH"] = "webSearch";
|
|
9
11
|
ToolId["YOUTUBE_VIDEO_ANALYSIS"] = "youtubeVideoAnalysis";
|
|
10
12
|
ToolId["HTML_VISUALIZATION"] = "htmlVisualization";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-id.enum.js","sourceRoot":"","sources":["../../../v1/ai/tool-id.enum.ts"],"names":[],"mappings":";;;AAIA,IAAY,
|
|
1
|
+
{"version":3,"file":"tool-id.enum.js","sourceRoot":"","sources":["../../../v1/ai/tool-id.enum.ts"],"names":[],"mappings":";;;AAIA,IAAY,MAQX;AARD,WAAY,MAAM;IACd,gCAAsB,CAAA;IACtB,kCAAwB,CAAA;IACxB,wCAA8B,CAAA;IAC9B,2CAAiC,CAAA;IACjC,kCAAwB,CAAA;IACxB,yDAA+C,CAAA;IAC/C,kDAAwC,CAAA;AAC5C,CAAC,EARW,MAAM,sBAAN,MAAM,QAQjB"}
|
|
@@ -2,18 +2,10 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const ToolSelectionSchema: z.ZodObject<{
|
|
3
3
|
toolUuid: z.ZodString;
|
|
4
4
|
modelId: z.ZodString;
|
|
5
|
-
settings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6
|
-
key: z.ZodEnum<typeof import("../ai-model/schemas/model-settings.schema").SettingKey>;
|
|
7
|
-
optionIds: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
8
|
-
}, z.core.$strip>>>;
|
|
9
5
|
}, z.core.$strip>;
|
|
10
6
|
export type ToolSelection = z.infer<typeof ToolSelectionSchema>;
|
|
11
7
|
export declare const ToolSelectionArraySchema: z.ZodArray<z.ZodObject<{
|
|
12
8
|
toolUuid: z.ZodString;
|
|
13
9
|
modelId: z.ZodString;
|
|
14
|
-
settings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
15
|
-
key: z.ZodEnum<typeof import("../ai-model/schemas/model-settings.schema").SettingKey>;
|
|
16
|
-
optionIds: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
17
|
-
}, z.core.$strip>>>;
|
|
18
10
|
}, z.core.$strip>>;
|
|
19
11
|
export type ToolSelectionArray = z.infer<typeof ToolSelectionArraySchema>;
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ToolSelectionArraySchema = exports.ToolSelectionSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
const model_settings_schema_1 = require("../ai-model/schemas/model-settings.schema");
|
|
6
5
|
exports.ToolSelectionSchema = zod_1.z.object({
|
|
7
6
|
toolUuid: zod_1.z
|
|
8
7
|
.string({ error: 'ToolSelection.toolUuid.required' })
|
|
@@ -10,7 +9,6 @@ exports.ToolSelectionSchema = zod_1.z.object({
|
|
|
10
9
|
modelId: zod_1.z
|
|
11
10
|
.string({ error: 'ToolSelection.modelId.required' })
|
|
12
11
|
.uuid({ message: 'ToolSelection.modelId.invalid' }),
|
|
13
|
-
settings: zod_1.z.array(model_settings_schema_1.SettingSelectionSchema).max(20).optional(),
|
|
14
12
|
});
|
|
15
13
|
exports.ToolSelectionArraySchema = zod_1.z.array(exports.ToolSelectionSchema).max(50).superRefine((tools, context) => {
|
|
16
14
|
const seen = new Map();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool.types.js","sourceRoot":"","sources":["../../../v1/ai/tool.types.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;
|
|
1
|
+
{"version":3,"file":"tool.types.js","sourceRoot":"","sources":["../../../v1/ai/tool.types.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAKX,QAAA,mBAAmB,GAAG,OAAC,CAAC,MAAM,CAAC;IACxC,QAAQ,EAAE,OAAC;SACN,MAAM,CAAC,EAAE,KAAK,EAAE,iCAAiC,EAAE,CAAC;SACpD,IAAI,CAAC,EAAE,OAAO,EAAE,gCAAgC,EAAE,CAAC;IACxD,OAAO,EAAE,OAAC;SACL,MAAM,CAAC,EAAE,KAAK,EAAE,gCAAgC,EAAE,CAAC;SACnD,IAAI,CAAC,EAAE,OAAO,EAAE,+BAA+B,EAAE,CAAC;CAC1D,CAAC,CAAC;AAIU,QAAA,wBAAwB,GAAG,OAAC,CAAC,KAAK,CAAC,2BAAmB,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE;IACxG,MAAM,IAAI,GAAG,IAAI,GAAG,EAAkB,CAAC;IAEvC,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC;QAChD,MAAM,IAAI,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC;QAC1B,MAAM,aAAa,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC9C,IAAI,aAAa,KAAK,SAAS,EAAE,CAAC;YAC9B,OAAO,CAAC,QAAQ,CAAC;gBACb,IAAI,EAAE,OAAC,CAAC,YAAY,CAAC,MAAM;gBAC3B,IAAI,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC;gBACzB,OAAO,EAAE,uCAAuC;aACnD,CAAC,CAAC;YACH,SAAS;QACb,CAAC;QAED,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -4,7 +4,6 @@ export declare namespace AdminAiModelCreateCommand {
|
|
|
4
4
|
const Request: z.ZodObject<{
|
|
5
5
|
title: z.ZodString;
|
|
6
6
|
description: z.ZodDefault<z.ZodString>;
|
|
7
|
-
model: z.ZodString;
|
|
8
7
|
icon: z.ZodString;
|
|
9
8
|
status: z.ZodDefault<z.ZodEnum<typeof import("../../schemas").AiModelStatus>>;
|
|
10
9
|
order: z.ZodDefault<z.ZodNumber>;
|
|
@@ -15,10 +14,8 @@ export declare namespace AdminAiModelCreateCommand {
|
|
|
15
14
|
bestFor: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
16
15
|
usageExamples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
17
16
|
contextLength: z.ZodDefault<z.ZodNumber>;
|
|
18
|
-
apiProvider: z.ZodDefault<z.ZodEnum<typeof import("../../schemas").ApiProvider>>;
|
|
19
17
|
inputModalities: z.ZodDefault<z.ZodArray<z.ZodEnum<typeof import("../../schemas").Modality>>>;
|
|
20
18
|
outputModalities: z.ZodDefault<z.ZodArray<z.ZodEnum<typeof import("../../schemas").Modality>>>;
|
|
21
|
-
type: z.ZodDefault<z.ZodEnum<typeof import("../../schemas").ModelType>>;
|
|
22
19
|
modelRoles: z.ZodDefault<z.ZodArray<z.ZodEnum<typeof import("../../schemas").ModelRole>>>;
|
|
23
20
|
systemPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
21
|
visibility: z.ZodDefault<z.ZodEnum<typeof import("../../..").WritableVisibility>>;
|
|
@@ -33,20 +30,11 @@ export declare namespace AdminAiModelCreateCommand {
|
|
|
33
30
|
price: z.ZodNumber;
|
|
34
31
|
}, z.core.$strip>>;
|
|
35
32
|
}, z.core.$strip>], "id">>>;
|
|
36
|
-
settings: z.ZodOptional<z.ZodObject<{
|
|
37
|
-
attachments: z.ZodOptional<z.ZodObject<{
|
|
38
|
-
imagePrice: z.ZodNumber;
|
|
39
|
-
filePrice: z.ZodNumber;
|
|
40
|
-
maxImages: z.ZodNumber;
|
|
41
|
-
maxFiles: z.ZodNumber;
|
|
42
|
-
}, z.core.$strip>>;
|
|
43
|
-
}, z.core.$strip>>;
|
|
44
33
|
}, z.core.$strip>;
|
|
45
34
|
const Response: z.ZodObject<{
|
|
46
35
|
uuid: z.ZodString;
|
|
47
36
|
title: z.ZodString;
|
|
48
37
|
description: z.ZodString;
|
|
49
|
-
model: z.ZodString;
|
|
50
38
|
icon: z.ZodString;
|
|
51
39
|
status: z.ZodEnum<typeof import("../../schemas").AiModelStatus>;
|
|
52
40
|
order: z.ZodNumber;
|
|
@@ -57,10 +45,8 @@ export declare namespace AdminAiModelCreateCommand {
|
|
|
57
45
|
bestFor: z.ZodArray<z.ZodString>;
|
|
58
46
|
usageExamples: z.ZodArray<z.ZodString>;
|
|
59
47
|
contextLength: z.ZodString;
|
|
60
|
-
apiProvider: z.ZodEnum<typeof import("../../schemas").ApiProvider>;
|
|
61
48
|
inputModalities: z.ZodArray<z.ZodEnum<typeof import("../../schemas").Modality>>;
|
|
62
49
|
outputModalities: z.ZodArray<z.ZodEnum<typeof import("../../schemas").Modality>>;
|
|
63
|
-
type: z.ZodEnum<typeof import("../../schemas").ModelType>;
|
|
64
50
|
modelRoles: z.ZodArray<z.ZodEnum<typeof import("../../schemas").ModelRole>>;
|
|
65
51
|
systemPrompt: z.ZodNullable<z.ZodString>;
|
|
66
52
|
visibility: z.ZodEnum<typeof import("../../..").WritableVisibility>;
|
|
@@ -75,14 +61,6 @@ export declare namespace AdminAiModelCreateCommand {
|
|
|
75
61
|
price: z.ZodNumber;
|
|
76
62
|
}, z.core.$strip>>;
|
|
77
63
|
}, z.core.$strip>], "id">>;
|
|
78
|
-
settings: z.ZodObject<{
|
|
79
|
-
attachments: z.ZodOptional<z.ZodObject<{
|
|
80
|
-
imagePrice: z.ZodNumber;
|
|
81
|
-
filePrice: z.ZodNumber;
|
|
82
|
-
maxImages: z.ZodNumber;
|
|
83
|
-
maxFiles: z.ZodNumber;
|
|
84
|
-
}, z.core.$strip>>;
|
|
85
|
-
}, z.core.$strip>;
|
|
86
64
|
createdAt: z.ZodString;
|
|
87
65
|
updatedAt: z.ZodString;
|
|
88
66
|
}, z.core.$strip>;
|
|
@@ -4,7 +4,6 @@ export declare namespace AdminAiModelUpdateCommand {
|
|
|
4
4
|
const Request: z.ZodObject<{
|
|
5
5
|
title: z.ZodOptional<z.ZodString>;
|
|
6
6
|
description: z.ZodOptional<z.ZodString>;
|
|
7
|
-
model: z.ZodOptional<z.ZodString>;
|
|
8
7
|
icon: z.ZodOptional<z.ZodString>;
|
|
9
8
|
status: z.ZodOptional<z.ZodEnum<typeof import("../../schemas").AiModelStatus>>;
|
|
10
9
|
order: z.ZodOptional<z.ZodNumber>;
|
|
@@ -15,10 +14,8 @@ export declare namespace AdminAiModelUpdateCommand {
|
|
|
15
14
|
bestFor: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
16
15
|
usageExamples: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
17
16
|
contextLength: z.ZodOptional<z.ZodNumber>;
|
|
18
|
-
apiProvider: z.ZodOptional<z.ZodEnum<typeof import("../../schemas").ApiProvider>>;
|
|
19
17
|
inputModalities: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof import("../../schemas").Modality>>>;
|
|
20
18
|
outputModalities: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof import("../../schemas").Modality>>>;
|
|
21
|
-
type: z.ZodOptional<z.ZodEnum<typeof import("../../schemas").ModelType>>;
|
|
22
19
|
modelRoles: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof import("../../schemas").ModelRole>>>;
|
|
23
20
|
systemPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
21
|
visibility: z.ZodOptional<z.ZodEnum<typeof import("../../..").WritableVisibility>>;
|
|
@@ -33,20 +30,11 @@ export declare namespace AdminAiModelUpdateCommand {
|
|
|
33
30
|
price: z.ZodNumber;
|
|
34
31
|
}, z.core.$strip>>;
|
|
35
32
|
}, z.core.$strip>], "id">>>;
|
|
36
|
-
settings: z.ZodOptional<z.ZodObject<{
|
|
37
|
-
attachments: z.ZodOptional<z.ZodObject<{
|
|
38
|
-
imagePrice: z.ZodNumber;
|
|
39
|
-
filePrice: z.ZodNumber;
|
|
40
|
-
maxImages: z.ZodNumber;
|
|
41
|
-
maxFiles: z.ZodNumber;
|
|
42
|
-
}, z.core.$strip>>;
|
|
43
|
-
}, z.core.$strip>>;
|
|
44
33
|
}, z.core.$strip>;
|
|
45
34
|
const Response: z.ZodObject<{
|
|
46
35
|
uuid: z.ZodString;
|
|
47
36
|
title: z.ZodString;
|
|
48
37
|
description: z.ZodString;
|
|
49
|
-
model: z.ZodString;
|
|
50
38
|
icon: z.ZodString;
|
|
51
39
|
status: z.ZodEnum<typeof import("../../schemas").AiModelStatus>;
|
|
52
40
|
order: z.ZodNumber;
|
|
@@ -57,10 +45,8 @@ export declare namespace AdminAiModelUpdateCommand {
|
|
|
57
45
|
bestFor: z.ZodArray<z.ZodString>;
|
|
58
46
|
usageExamples: z.ZodArray<z.ZodString>;
|
|
59
47
|
contextLength: z.ZodString;
|
|
60
|
-
apiProvider: z.ZodEnum<typeof import("../../schemas").ApiProvider>;
|
|
61
48
|
inputModalities: z.ZodArray<z.ZodEnum<typeof import("../../schemas").Modality>>;
|
|
62
49
|
outputModalities: z.ZodArray<z.ZodEnum<typeof import("../../schemas").Modality>>;
|
|
63
|
-
type: z.ZodEnum<typeof import("../../schemas").ModelType>;
|
|
64
50
|
modelRoles: z.ZodArray<z.ZodEnum<typeof import("../../schemas").ModelRole>>;
|
|
65
51
|
systemPrompt: z.ZodNullable<z.ZodString>;
|
|
66
52
|
visibility: z.ZodEnum<typeof import("../../..").WritableVisibility>;
|
|
@@ -75,14 +61,6 @@ export declare namespace AdminAiModelUpdateCommand {
|
|
|
75
61
|
price: z.ZodNumber;
|
|
76
62
|
}, z.core.$strip>>;
|
|
77
63
|
}, z.core.$strip>], "id">>;
|
|
78
|
-
settings: z.ZodObject<{
|
|
79
|
-
attachments: z.ZodOptional<z.ZodObject<{
|
|
80
|
-
imagePrice: z.ZodNumber;
|
|
81
|
-
filePrice: z.ZodNumber;
|
|
82
|
-
maxImages: z.ZodNumber;
|
|
83
|
-
maxFiles: z.ZodNumber;
|
|
84
|
-
}, z.core.$strip>>;
|
|
85
|
-
}, z.core.$strip>;
|
|
86
64
|
createdAt: z.ZodString;
|
|
87
65
|
updatedAt: z.ZodString;
|
|
88
66
|
}, z.core.$strip>;
|
|
@@ -6,7 +6,6 @@ export declare namespace AdminAiModelGetModelQuery {
|
|
|
6
6
|
uuid: z.ZodString;
|
|
7
7
|
title: z.ZodString;
|
|
8
8
|
description: z.ZodString;
|
|
9
|
-
model: z.ZodString;
|
|
10
9
|
icon: z.ZodString;
|
|
11
10
|
status: z.ZodEnum<typeof import("../../schemas").AiModelStatus>;
|
|
12
11
|
order: z.ZodNumber;
|
|
@@ -17,10 +16,8 @@ export declare namespace AdminAiModelGetModelQuery {
|
|
|
17
16
|
bestFor: z.ZodArray<z.ZodString>;
|
|
18
17
|
usageExamples: z.ZodArray<z.ZodString>;
|
|
19
18
|
contextLength: z.ZodString;
|
|
20
|
-
apiProvider: z.ZodEnum<typeof import("../../schemas").ApiProvider>;
|
|
21
19
|
inputModalities: z.ZodArray<z.ZodEnum<typeof import("../../schemas").Modality>>;
|
|
22
20
|
outputModalities: z.ZodArray<z.ZodEnum<typeof import("../../schemas").Modality>>;
|
|
23
|
-
type: z.ZodEnum<typeof import("../../schemas").ModelType>;
|
|
24
21
|
modelRoles: z.ZodArray<z.ZodEnum<typeof import("../../schemas").ModelRole>>;
|
|
25
22
|
systemPrompt: z.ZodNullable<z.ZodString>;
|
|
26
23
|
visibility: z.ZodEnum<typeof import("../../..").WritableVisibility>;
|
|
@@ -35,14 +32,6 @@ export declare namespace AdminAiModelGetModelQuery {
|
|
|
35
32
|
price: z.ZodNumber;
|
|
36
33
|
}, z.core.$strip>>;
|
|
37
34
|
}, z.core.$strip>], "id">>;
|
|
38
|
-
settings: z.ZodObject<{
|
|
39
|
-
attachments: z.ZodOptional<z.ZodObject<{
|
|
40
|
-
imagePrice: z.ZodNumber;
|
|
41
|
-
filePrice: z.ZodNumber;
|
|
42
|
-
maxImages: z.ZodNumber;
|
|
43
|
-
maxFiles: z.ZodNumber;
|
|
44
|
-
}, z.core.$strip>>;
|
|
45
|
-
}, z.core.$strip>;
|
|
46
35
|
createdAt: z.ZodString;
|
|
47
36
|
updatedAt: z.ZodString;
|
|
48
37
|
}, z.core.$strip>;
|
|
@@ -13,7 +13,6 @@ export declare namespace AdminAiModelGetModelsQuery {
|
|
|
13
13
|
uuid: z.ZodString;
|
|
14
14
|
title: z.ZodString;
|
|
15
15
|
description: z.ZodString;
|
|
16
|
-
model: z.ZodString;
|
|
17
16
|
icon: z.ZodString;
|
|
18
17
|
status: z.ZodEnum<typeof import("../../schemas").AiModelStatus>;
|
|
19
18
|
order: z.ZodNumber;
|
|
@@ -24,10 +23,8 @@ export declare namespace AdminAiModelGetModelsQuery {
|
|
|
24
23
|
bestFor: z.ZodArray<z.ZodString>;
|
|
25
24
|
usageExamples: z.ZodArray<z.ZodString>;
|
|
26
25
|
contextLength: z.ZodString;
|
|
27
|
-
apiProvider: z.ZodEnum<typeof import("../../schemas").ApiProvider>;
|
|
28
26
|
inputModalities: z.ZodArray<z.ZodEnum<typeof import("../../schemas").Modality>>;
|
|
29
27
|
outputModalities: z.ZodArray<z.ZodEnum<typeof import("../../schemas").Modality>>;
|
|
30
|
-
type: z.ZodEnum<typeof import("../../schemas").ModelType>;
|
|
31
28
|
modelRoles: z.ZodArray<z.ZodEnum<typeof import("../../schemas").ModelRole>>;
|
|
32
29
|
systemPrompt: z.ZodNullable<z.ZodString>;
|
|
33
30
|
visibility: z.ZodEnum<typeof import("../../..").WritableVisibility>;
|
|
@@ -42,14 +39,6 @@ export declare namespace AdminAiModelGetModelsQuery {
|
|
|
42
39
|
price: z.ZodNumber;
|
|
43
40
|
}, z.core.$strip>>;
|
|
44
41
|
}, z.core.$strip>], "id">>;
|
|
45
|
-
settings: z.ZodObject<{
|
|
46
|
-
attachments: z.ZodOptional<z.ZodObject<{
|
|
47
|
-
imagePrice: z.ZodNumber;
|
|
48
|
-
filePrice: z.ZodNumber;
|
|
49
|
-
maxImages: z.ZodNumber;
|
|
50
|
-
maxFiles: z.ZodNumber;
|
|
51
|
-
}, z.core.$strip>>;
|
|
52
|
-
}, z.core.$strip>;
|
|
53
42
|
createdAt: z.ZodString;
|
|
54
43
|
updatedAt: z.ZodString;
|
|
55
44
|
}, z.core.$strip>>;
|
|
@@ -3,7 +3,6 @@ import { HttpMethod } from '../../../../shared/http-method';
|
|
|
3
3
|
export declare namespace PublicAiModelGetActiveModelsQuery {
|
|
4
4
|
const Request: z.ZodVoid;
|
|
5
5
|
const Response: z.ZodArray<z.ZodObject<{
|
|
6
|
-
type: z.ZodEnum<typeof import("../../schemas").ModelType>;
|
|
7
6
|
uuid: z.ZodString;
|
|
8
7
|
title: z.ZodString;
|
|
9
8
|
description: z.ZodString;
|
|
@@ -28,28 +27,6 @@ export declare namespace PublicAiModelGetActiveModelsQuery {
|
|
|
28
27
|
price: z.ZodNumber;
|
|
29
28
|
}, z.core.$strip>>;
|
|
30
29
|
}, z.core.$strip>], "id">>;
|
|
31
|
-
settings: z.ZodObject<{
|
|
32
|
-
attachments: z.ZodOptional<z.ZodObject<{
|
|
33
|
-
imagePrice: z.ZodNumber;
|
|
34
|
-
filePrice: z.ZodNumber;
|
|
35
|
-
maxImages: z.ZodNumber;
|
|
36
|
-
maxFiles: z.ZodNumber;
|
|
37
|
-
}, z.core.$strip>>;
|
|
38
|
-
}, z.core.$strip>;
|
|
39
|
-
toolSettings: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
40
|
-
key: z.ZodEnum<typeof import("../../schemas").SettingKey>;
|
|
41
|
-
title: z.ZodString;
|
|
42
|
-
icon: z.ZodOptional<z.ZodString>;
|
|
43
|
-
inputType: z.ZodEnum<typeof import("../../schemas").SettingInputType>;
|
|
44
|
-
defaultOptionId: z.ZodString;
|
|
45
|
-
maxSelections: z.ZodOptional<z.ZodNumber>;
|
|
46
|
-
options: z.ZodArray<z.ZodObject<{
|
|
47
|
-
id: z.ZodString;
|
|
48
|
-
title: z.ZodString;
|
|
49
|
-
icon: z.ZodOptional<z.ZodString>;
|
|
50
|
-
priceModifier: z.ZodDefault<z.ZodNumber>;
|
|
51
|
-
}, z.core.$strip>>;
|
|
52
|
-
}, z.core.$strip>>>;
|
|
53
30
|
access: z.ZodBoolean;
|
|
54
31
|
accessReason: z.ZodNullable<z.ZodEnum<typeof import("../../..").AccessReason>>;
|
|
55
32
|
}, z.core.$strip>>;
|
|
@@ -9,7 +9,6 @@ export declare namespace PublicAiModelGetModelsListQuery {
|
|
|
9
9
|
order: z.ZodNumber;
|
|
10
10
|
icon: z.ZodString;
|
|
11
11
|
models: z.ZodArray<z.ZodObject<{
|
|
12
|
-
type: z.ZodEnum<typeof import("../../schemas").ModelType>;
|
|
13
12
|
uuid: z.ZodString;
|
|
14
13
|
title: z.ZodString;
|
|
15
14
|
description: z.ZodString;
|
|
@@ -34,34 +33,11 @@ export declare namespace PublicAiModelGetModelsListQuery {
|
|
|
34
33
|
price: z.ZodNumber;
|
|
35
34
|
}, z.core.$strip>>;
|
|
36
35
|
}, z.core.$strip>], "id">>;
|
|
37
|
-
settings: z.ZodObject<{
|
|
38
|
-
attachments: z.ZodOptional<z.ZodObject<{
|
|
39
|
-
imagePrice: z.ZodNumber;
|
|
40
|
-
filePrice: z.ZodNumber;
|
|
41
|
-
maxImages: z.ZodNumber;
|
|
42
|
-
maxFiles: z.ZodNumber;
|
|
43
|
-
}, z.core.$strip>>;
|
|
44
|
-
}, z.core.$strip>;
|
|
45
|
-
toolSettings: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
46
|
-
key: z.ZodEnum<typeof import("../../schemas").SettingKey>;
|
|
47
|
-
title: z.ZodString;
|
|
48
|
-
icon: z.ZodOptional<z.ZodString>;
|
|
49
|
-
inputType: z.ZodEnum<typeof import("../../schemas").SettingInputType>;
|
|
50
|
-
defaultOptionId: z.ZodString;
|
|
51
|
-
maxSelections: z.ZodOptional<z.ZodNumber>;
|
|
52
|
-
options: z.ZodArray<z.ZodObject<{
|
|
53
|
-
id: z.ZodString;
|
|
54
|
-
title: z.ZodString;
|
|
55
|
-
icon: z.ZodOptional<z.ZodString>;
|
|
56
|
-
priceModifier: z.ZodDefault<z.ZodNumber>;
|
|
57
|
-
}, z.core.$strip>>;
|
|
58
|
-
}, z.core.$strip>>>;
|
|
59
36
|
access: z.ZodBoolean;
|
|
60
37
|
accessReason: z.ZodNullable<z.ZodEnum<typeof import("../../..").AccessReason>>;
|
|
61
38
|
}, z.core.$strip>>;
|
|
62
39
|
}, z.core.$strip>>;
|
|
63
40
|
favorites: z.ZodArray<z.ZodObject<{
|
|
64
|
-
type: z.ZodEnum<typeof import("../../schemas").ModelType>;
|
|
65
41
|
uuid: z.ZodString;
|
|
66
42
|
title: z.ZodString;
|
|
67
43
|
description: z.ZodString;
|
|
@@ -86,28 +62,6 @@ export declare namespace PublicAiModelGetModelsListQuery {
|
|
|
86
62
|
price: z.ZodNumber;
|
|
87
63
|
}, z.core.$strip>>;
|
|
88
64
|
}, 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
65
|
access: z.ZodBoolean;
|
|
112
66
|
accessReason: z.ZodNullable<z.ZodEnum<typeof import("../../..").AccessReason>>;
|
|
113
67
|
isPinned: z.ZodBoolean;
|
|
@@ -6,5 +6,6 @@ var ApiProvider;
|
|
|
6
6
|
ApiProvider["OPENROUTER"] = "openrouter";
|
|
7
7
|
ApiProvider["PERPLEXITY"] = "perplexity";
|
|
8
8
|
ApiProvider["YANDEX"] = "yandex";
|
|
9
|
+
ApiProvider["KIE"] = "kie";
|
|
9
10
|
})(ApiProvider || (exports.ApiProvider = ApiProvider = {}));
|
|
10
11
|
//# sourceMappingURL=api-provider.enum.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-provider.enum.js","sourceRoot":"","sources":["../../../../v1/ai-model/schemas/api-provider.enum.ts"],"names":[],"mappings":";;;AAGA,IAAY,
|
|
1
|
+
{"version":3,"file":"api-provider.enum.js","sourceRoot":"","sources":["../../../../v1/ai-model/schemas/api-provider.enum.ts"],"names":[],"mappings":";;;AAGA,IAAY,WAKX;AALD,WAAY,WAAW;IACnB,wCAAyB,CAAA;IACzB,wCAAyB,CAAA;IACzB,gCAAiB,CAAA;IACjB,0BAAW,CAAA;AACf,CAAC,EALW,WAAW,2BAAX,WAAW,QAKtB"}
|
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { AiModelStatus } from './ai-model-status.enum';
|
|
3
3
|
import { ModelMark } from './model-mark.enum';
|
|
4
|
-
import { ModelType } from './model-type.enum';
|
|
5
4
|
import { ModelRole } from './model-role.enum';
|
|
6
|
-
import { ApiProvider } from './api-provider.enum';
|
|
7
5
|
import { Modality } from './modality.enum';
|
|
8
6
|
import { WritableVisibility } from '../../shared/visibility.enum';
|
|
9
7
|
export declare const CreateModelRequestSchema: z.ZodObject<{
|
|
10
8
|
title: z.ZodString;
|
|
11
9
|
description: z.ZodDefault<z.ZodString>;
|
|
12
|
-
model: z.ZodString;
|
|
13
10
|
icon: z.ZodString;
|
|
14
11
|
status: z.ZodDefault<z.ZodEnum<typeof AiModelStatus>>;
|
|
15
12
|
order: z.ZodDefault<z.ZodNumber>;
|
|
@@ -20,10 +17,8 @@ export declare const CreateModelRequestSchema: z.ZodObject<{
|
|
|
20
17
|
bestFor: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
21
18
|
usageExamples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
22
19
|
contextLength: z.ZodDefault<z.ZodNumber>;
|
|
23
|
-
apiProvider: z.ZodDefault<z.ZodEnum<typeof ApiProvider>>;
|
|
24
20
|
inputModalities: z.ZodDefault<z.ZodArray<z.ZodEnum<typeof Modality>>>;
|
|
25
21
|
outputModalities: z.ZodDefault<z.ZodArray<z.ZodEnum<typeof Modality>>>;
|
|
26
|
-
type: z.ZodDefault<z.ZodEnum<typeof ModelType>>;
|
|
27
22
|
modelRoles: z.ZodDefault<z.ZodArray<z.ZodEnum<typeof ModelRole>>>;
|
|
28
23
|
systemPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
24
|
visibility: z.ZodDefault<z.ZodEnum<typeof WritableVisibility>>;
|
|
@@ -38,12 +33,4 @@ export declare const CreateModelRequestSchema: z.ZodObject<{
|
|
|
38
33
|
price: z.ZodNumber;
|
|
39
34
|
}, z.core.$strip>>;
|
|
40
35
|
}, z.core.$strip>], "id">>>;
|
|
41
|
-
settings: z.ZodOptional<z.ZodObject<{
|
|
42
|
-
attachments: z.ZodOptional<z.ZodObject<{
|
|
43
|
-
imagePrice: z.ZodNumber;
|
|
44
|
-
filePrice: z.ZodNumber;
|
|
45
|
-
maxImages: z.ZodNumber;
|
|
46
|
-
maxFiles: z.ZodNumber;
|
|
47
|
-
}, z.core.$strip>>;
|
|
48
|
-
}, z.core.$strip>>;
|
|
49
36
|
}, z.core.$strip>;
|
|
@@ -4,12 +4,9 @@ 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
6
|
const model_mark_enum_1 = require("./model-mark.enum");
|
|
7
|
-
const model_type_enum_1 = require("./model-type.enum");
|
|
8
7
|
const model_role_enum_1 = require("./model-role.enum");
|
|
9
|
-
const api_provider_enum_1 = require("./api-provider.enum");
|
|
10
8
|
const modality_enum_1 = require("./modality.enum");
|
|
11
9
|
const plugins_types_1 = require("../../ai/plugins.types");
|
|
12
|
-
const model_settings_schema_1 = require("./model-settings.schema");
|
|
13
10
|
const visibility_enum_1 = require("../../shared/visibility.enum");
|
|
14
11
|
exports.CreateModelRequestSchema = zod_1.z.object({
|
|
15
12
|
title: zod_1.z
|
|
@@ -21,11 +18,6 @@ exports.CreateModelRequestSchema = zod_1.z.object({
|
|
|
21
18
|
.string({ error: 'CreateModelRequest.description.required' })
|
|
22
19
|
.trim()
|
|
23
20
|
.default(''),
|
|
24
|
-
model: zod_1.z
|
|
25
|
-
.string({ error: 'CreateModelRequest.model.required' })
|
|
26
|
-
.trim()
|
|
27
|
-
.min(1, { message: 'CreateModelRequest.model.min' })
|
|
28
|
-
.max(100, { message: 'CreateModelRequest.model.max' }),
|
|
29
21
|
icon: zod_1.z
|
|
30
22
|
.string({ error: 'CreateModelRequest.icon.required' })
|
|
31
23
|
.trim()
|
|
@@ -62,10 +54,8 @@ exports.CreateModelRequestSchema = zod_1.z.object({
|
|
|
62
54
|
.int({ message: 'CreateModelRequest.contextLength.invalid' })
|
|
63
55
|
.positive({ message: 'CreateModelRequest.contextLength.invalid' })
|
|
64
56
|
.default(128000),
|
|
65
|
-
apiProvider: zod_1.z.nativeEnum(api_provider_enum_1.ApiProvider).default(api_provider_enum_1.ApiProvider.OPENROUTER),
|
|
66
57
|
inputModalities: zod_1.z.array(zod_1.z.nativeEnum(modality_enum_1.Modality)).default([modality_enum_1.Modality.TEXT]),
|
|
67
58
|
outputModalities: zod_1.z.array(zod_1.z.nativeEnum(modality_enum_1.Modality)).default([modality_enum_1.Modality.TEXT]),
|
|
68
|
-
type: zod_1.z.nativeEnum(model_type_enum_1.ModelType).default(model_type_enum_1.ModelType.TEXT),
|
|
69
59
|
modelRoles: zod_1.z.array(zod_1.z.nativeEnum(model_role_enum_1.ModelRole)).default([model_role_enum_1.ModelRole.DIRECT]),
|
|
70
60
|
systemPrompt: zod_1.z
|
|
71
61
|
.string({ error: 'CreateModelRequest.systemPrompt.required' })
|
|
@@ -74,6 +64,5 @@ exports.CreateModelRequestSchema = zod_1.z.object({
|
|
|
74
64
|
.optional(),
|
|
75
65
|
visibility: zod_1.z.nativeEnum(visibility_enum_1.WritableVisibility).default(visibility_enum_1.WritableVisibility.REGISTERED),
|
|
76
66
|
plugins: plugins_types_1.PluginsConfigArraySchema.default([]),
|
|
77
|
-
settings: model_settings_schema_1.ModelSettingsWriteSchema.optional(),
|
|
78
67
|
});
|
|
79
68
|
//# sourceMappingURL=create-model-request.schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-model-request.schema.js","sourceRoot":"","sources":["../../../../v1/ai-model/schemas/create-model-request.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iEAAuD;AACvD,uDAA8C;AAC9C,uDAA8C;AAC9C,
|
|
1
|
+
{"version":3,"file":"create-model-request.schema.js","sourceRoot":"","sources":["../../../../v1/ai-model/schemas/create-model-request.schema.ts"],"names":[],"mappings":"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"}
|