@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
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./create-model-route.command"), exports);
|
|
18
|
+
__exportStar(require("./update-model-route.command"), exports);
|
|
19
|
+
__exportStar(require("./delete-model-route.command"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../v1/model-route/admin/commands/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA6C;AAC7C,+DAA6C;AAC7C,+DAA6C"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpMethod } from '../../../../shared/http-method';
|
|
3
|
+
export declare namespace AdminModelRouteUpdateCommand {
|
|
4
|
+
const Request: z.ZodObject<{
|
|
5
|
+
apiProvider: z.ZodOptional<z.ZodEnum<typeof import("../../..").ApiProvider>>;
|
|
6
|
+
externalSlug: z.ZodOptional<z.ZodString>;
|
|
7
|
+
priority: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
status: z.ZodOptional<z.ZodEnum<typeof import("../..").ModelRouteStatus>>;
|
|
9
|
+
runtimeOverrides: z.ZodOptional<z.ZodObject<{
|
|
10
|
+
openrouter: z.ZodOptional<z.ZodObject<{
|
|
11
|
+
useProxy: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
+
imageConfig: z.ZodOptional<z.ZodObject<{
|
|
13
|
+
aspect_ratio: z.ZodOptional<z.ZodString>;
|
|
14
|
+
image_size: z.ZodOptional<z.ZodString>;
|
|
15
|
+
}, z.core.$strict>>;
|
|
16
|
+
provider: z.ZodOptional<z.ZodObject<{
|
|
17
|
+
only: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
18
|
+
order: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
19
|
+
ignore: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
20
|
+
allow_fallbacks: z.ZodOptional<z.ZodBoolean>;
|
|
21
|
+
require_parameters: z.ZodOptional<z.ZodBoolean>;
|
|
22
|
+
}, z.core.$strict>>;
|
|
23
|
+
fallbackModels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
24
|
+
}, z.core.$strict>>;
|
|
25
|
+
kie: z.ZodOptional<z.ZodObject<{
|
|
26
|
+
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
27
|
+
inputUrlsKey: z.ZodOptional<z.ZodString>;
|
|
28
|
+
inputUrlsSingle: z.ZodOptional<z.ZodBoolean>;
|
|
29
|
+
endpoint: z.ZodOptional<z.ZodString>;
|
|
30
|
+
bodyMode: z.ZodOptional<z.ZodEnum<typeof import("../../..").KieBodyMode>>;
|
|
31
|
+
promptMaxLen: z.ZodOptional<z.ZodNumber>;
|
|
32
|
+
pricing: z.ZodOptional<z.ZodObject<{
|
|
33
|
+
base: z.ZodNumber;
|
|
34
|
+
modifiers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodNumber>>>;
|
|
35
|
+
fallback: z.ZodOptional<z.ZodNumber>;
|
|
36
|
+
}, z.core.$strict>>;
|
|
37
|
+
selectedOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
38
|
+
}, z.core.$strict>>;
|
|
39
|
+
}, z.core.$strict>>;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
const Response: z.ZodObject<{
|
|
42
|
+
uuid: z.ZodString;
|
|
43
|
+
modelUuid: z.ZodString;
|
|
44
|
+
apiProvider: z.ZodEnum<typeof import("../../..").ApiProvider>;
|
|
45
|
+
externalSlug: z.ZodString;
|
|
46
|
+
priority: z.ZodNumber;
|
|
47
|
+
status: z.ZodEnum<typeof import("../..").ModelRouteStatus>;
|
|
48
|
+
runtimeOverrides: z.ZodObject<{
|
|
49
|
+
openrouter: z.ZodOptional<z.ZodObject<{
|
|
50
|
+
useProxy: z.ZodOptional<z.ZodBoolean>;
|
|
51
|
+
imageConfig: z.ZodOptional<z.ZodObject<{
|
|
52
|
+
aspect_ratio: z.ZodOptional<z.ZodString>;
|
|
53
|
+
image_size: z.ZodOptional<z.ZodString>;
|
|
54
|
+
}, z.core.$strict>>;
|
|
55
|
+
provider: z.ZodOptional<z.ZodObject<{
|
|
56
|
+
only: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
57
|
+
order: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
58
|
+
ignore: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
59
|
+
allow_fallbacks: z.ZodOptional<z.ZodBoolean>;
|
|
60
|
+
require_parameters: z.ZodOptional<z.ZodBoolean>;
|
|
61
|
+
}, z.core.$strict>>;
|
|
62
|
+
fallbackModels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
63
|
+
}, z.core.$strict>>;
|
|
64
|
+
kie: z.ZodOptional<z.ZodObject<{
|
|
65
|
+
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
66
|
+
inputUrlsKey: z.ZodOptional<z.ZodString>;
|
|
67
|
+
inputUrlsSingle: z.ZodOptional<z.ZodBoolean>;
|
|
68
|
+
endpoint: z.ZodOptional<z.ZodString>;
|
|
69
|
+
bodyMode: z.ZodOptional<z.ZodEnum<typeof import("../../..").KieBodyMode>>;
|
|
70
|
+
promptMaxLen: z.ZodOptional<z.ZodNumber>;
|
|
71
|
+
pricing: z.ZodOptional<z.ZodObject<{
|
|
72
|
+
base: z.ZodNumber;
|
|
73
|
+
modifiers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodNumber>>>;
|
|
74
|
+
fallback: z.ZodOptional<z.ZodNumber>;
|
|
75
|
+
}, z.core.$strict>>;
|
|
76
|
+
selectedOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
77
|
+
}, z.core.$strict>>;
|
|
78
|
+
}, z.core.$strict>;
|
|
79
|
+
createdAt: z.ZodString;
|
|
80
|
+
updatedAt: z.ZodString;
|
|
81
|
+
}, z.core.$strip>;
|
|
82
|
+
const METHOD = HttpMethod.PATCH;
|
|
83
|
+
type RequestType = z.infer<typeof Request>;
|
|
84
|
+
type ResponseType = z.infer<typeof Response>;
|
|
85
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdminModelRouteUpdateCommand = void 0;
|
|
4
|
+
const update_model_route_request_schema_1 = require("../../schemas/update-model-route-request.schema");
|
|
5
|
+
const model_route_response_schema_1 = require("../../schemas/model-route-response.schema");
|
|
6
|
+
const http_method_1 = require("../../../../shared/http-method");
|
|
7
|
+
var AdminModelRouteUpdateCommand;
|
|
8
|
+
(function (AdminModelRouteUpdateCommand) {
|
|
9
|
+
AdminModelRouteUpdateCommand.Request = update_model_route_request_schema_1.UpdateModelRouteRequestSchema;
|
|
10
|
+
AdminModelRouteUpdateCommand.Response = model_route_response_schema_1.ModelRouteResponseSchema;
|
|
11
|
+
AdminModelRouteUpdateCommand.METHOD = http_method_1.HttpMethod.PATCH;
|
|
12
|
+
})(AdminModelRouteUpdateCommand || (exports.AdminModelRouteUpdateCommand = AdminModelRouteUpdateCommand = {}));
|
|
13
|
+
//# sourceMappingURL=update-model-route.command.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-model-route.command.js","sourceRoot":"","sources":["../../../../../v1/model-route/admin/commands/update-model-route.command.ts"],"names":[],"mappings":";;;AACA,uGAAgG;AAChG,2FAAqF;AACrF,gEAA4D;AAE5D,IAAiB,4BAA4B,CAM5C;AAND,WAAiB,4BAA4B;IAC5B,oCAAO,GAAG,iEAA6B,CAAC;IACxC,qCAAQ,GAAG,sDAAwB,CAAC;IACpC,mCAAM,GAAG,wBAAU,CAAC,KAAK,CAAC;AAG3C,CAAC,EANgB,4BAA4B,4CAA5B,4BAA4B,QAM5C"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./commands"), exports);
|
|
18
|
+
__exportStar(require("./queries"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/model-route/admin/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,4CAA0B"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpMethod } from '../../../../shared/http-method';
|
|
3
|
+
export declare namespace AdminModelRouteGetQuery {
|
|
4
|
+
const Request: z.ZodVoid;
|
|
5
|
+
const Response: z.ZodObject<{
|
|
6
|
+
uuid: z.ZodString;
|
|
7
|
+
modelUuid: z.ZodString;
|
|
8
|
+
apiProvider: z.ZodEnum<typeof import("../../..").ApiProvider>;
|
|
9
|
+
externalSlug: z.ZodString;
|
|
10
|
+
priority: z.ZodNumber;
|
|
11
|
+
status: z.ZodEnum<typeof import("../..").ModelRouteStatus>;
|
|
12
|
+
runtimeOverrides: z.ZodObject<{
|
|
13
|
+
openrouter: z.ZodOptional<z.ZodObject<{
|
|
14
|
+
useProxy: z.ZodOptional<z.ZodBoolean>;
|
|
15
|
+
imageConfig: z.ZodOptional<z.ZodObject<{
|
|
16
|
+
aspect_ratio: z.ZodOptional<z.ZodString>;
|
|
17
|
+
image_size: z.ZodOptional<z.ZodString>;
|
|
18
|
+
}, z.core.$strict>>;
|
|
19
|
+
provider: z.ZodOptional<z.ZodObject<{
|
|
20
|
+
only: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
21
|
+
order: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
22
|
+
ignore: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
23
|
+
allow_fallbacks: z.ZodOptional<z.ZodBoolean>;
|
|
24
|
+
require_parameters: z.ZodOptional<z.ZodBoolean>;
|
|
25
|
+
}, z.core.$strict>>;
|
|
26
|
+
fallbackModels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
27
|
+
}, z.core.$strict>>;
|
|
28
|
+
kie: z.ZodOptional<z.ZodObject<{
|
|
29
|
+
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
30
|
+
inputUrlsKey: z.ZodOptional<z.ZodString>;
|
|
31
|
+
inputUrlsSingle: z.ZodOptional<z.ZodBoolean>;
|
|
32
|
+
endpoint: z.ZodOptional<z.ZodString>;
|
|
33
|
+
bodyMode: z.ZodOptional<z.ZodEnum<typeof import("../../..").KieBodyMode>>;
|
|
34
|
+
promptMaxLen: z.ZodOptional<z.ZodNumber>;
|
|
35
|
+
pricing: z.ZodOptional<z.ZodObject<{
|
|
36
|
+
base: z.ZodNumber;
|
|
37
|
+
modifiers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodNumber>>>;
|
|
38
|
+
fallback: z.ZodOptional<z.ZodNumber>;
|
|
39
|
+
}, z.core.$strict>>;
|
|
40
|
+
selectedOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
41
|
+
}, z.core.$strict>>;
|
|
42
|
+
}, z.core.$strict>;
|
|
43
|
+
createdAt: z.ZodString;
|
|
44
|
+
updatedAt: z.ZodString;
|
|
45
|
+
}, z.core.$strip>;
|
|
46
|
+
const METHOD = HttpMethod.GET;
|
|
47
|
+
type RequestType = z.infer<typeof Request>;
|
|
48
|
+
type ResponseType = z.infer<typeof Response>;
|
|
49
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdminModelRouteGetQuery = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const model_route_response_schema_1 = require("../../schemas/model-route-response.schema");
|
|
6
|
+
const http_method_1 = require("../../../../shared/http-method");
|
|
7
|
+
var AdminModelRouteGetQuery;
|
|
8
|
+
(function (AdminModelRouteGetQuery) {
|
|
9
|
+
AdminModelRouteGetQuery.Request = zod_1.z.void();
|
|
10
|
+
AdminModelRouteGetQuery.Response = model_route_response_schema_1.ModelRouteResponseSchema;
|
|
11
|
+
AdminModelRouteGetQuery.METHOD = http_method_1.HttpMethod.GET;
|
|
12
|
+
})(AdminModelRouteGetQuery || (exports.AdminModelRouteGetQuery = AdminModelRouteGetQuery = {}));
|
|
13
|
+
//# sourceMappingURL=get-model-route.query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-model-route.query.js","sourceRoot":"","sources":["../../../../../v1/model-route/admin/queries/get-model-route.query.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,2FAAqF;AACrF,gEAA4D;AAE5D,IAAiB,uBAAuB,CAMvC;AAND,WAAiB,uBAAuB;IACvB,+BAAO,GAAG,OAAC,CAAC,IAAI,EAAE,CAAC;IACnB,gCAAQ,GAAG,sDAAwB,CAAC;IACpC,8BAAM,GAAG,wBAAU,CAAC,GAAG,CAAC;AAGzC,CAAC,EANgB,uBAAuB,uCAAvB,uBAAuB,QAMvC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./get-model-route.query"), exports);
|
|
18
|
+
__exportStar(require("./list-model-routes-by-model.query"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../v1/model-route/admin/queries/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,qEAAmD"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpMethod } from '../../../../shared/http-method';
|
|
3
|
+
export declare namespace AdminModelRouteListByModelQuery {
|
|
4
|
+
const Request: z.ZodVoid;
|
|
5
|
+
const Response: z.ZodObject<{
|
|
6
|
+
routes: z.ZodArray<z.ZodObject<{
|
|
7
|
+
uuid: z.ZodString;
|
|
8
|
+
modelUuid: z.ZodString;
|
|
9
|
+
apiProvider: z.ZodEnum<typeof import("../../..").ApiProvider>;
|
|
10
|
+
externalSlug: z.ZodString;
|
|
11
|
+
priority: z.ZodNumber;
|
|
12
|
+
status: z.ZodEnum<typeof import("../..").ModelRouteStatus>;
|
|
13
|
+
runtimeOverrides: z.ZodObject<{
|
|
14
|
+
openrouter: z.ZodOptional<z.ZodObject<{
|
|
15
|
+
useProxy: z.ZodOptional<z.ZodBoolean>;
|
|
16
|
+
imageConfig: z.ZodOptional<z.ZodObject<{
|
|
17
|
+
aspect_ratio: z.ZodOptional<z.ZodString>;
|
|
18
|
+
image_size: z.ZodOptional<z.ZodString>;
|
|
19
|
+
}, z.core.$strict>>;
|
|
20
|
+
provider: z.ZodOptional<z.ZodObject<{
|
|
21
|
+
only: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
22
|
+
order: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
23
|
+
ignore: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
24
|
+
allow_fallbacks: z.ZodOptional<z.ZodBoolean>;
|
|
25
|
+
require_parameters: z.ZodOptional<z.ZodBoolean>;
|
|
26
|
+
}, z.core.$strict>>;
|
|
27
|
+
fallbackModels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
28
|
+
}, z.core.$strict>>;
|
|
29
|
+
kie: z.ZodOptional<z.ZodObject<{
|
|
30
|
+
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
31
|
+
inputUrlsKey: z.ZodOptional<z.ZodString>;
|
|
32
|
+
inputUrlsSingle: z.ZodOptional<z.ZodBoolean>;
|
|
33
|
+
endpoint: z.ZodOptional<z.ZodString>;
|
|
34
|
+
bodyMode: z.ZodOptional<z.ZodEnum<typeof import("../../..").KieBodyMode>>;
|
|
35
|
+
promptMaxLen: z.ZodOptional<z.ZodNumber>;
|
|
36
|
+
pricing: z.ZodOptional<z.ZodObject<{
|
|
37
|
+
base: z.ZodNumber;
|
|
38
|
+
modifiers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodNumber>>>;
|
|
39
|
+
fallback: z.ZodOptional<z.ZodNumber>;
|
|
40
|
+
}, z.core.$strict>>;
|
|
41
|
+
selectedOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
42
|
+
}, z.core.$strict>>;
|
|
43
|
+
}, z.core.$strict>;
|
|
44
|
+
createdAt: z.ZodString;
|
|
45
|
+
updatedAt: z.ZodString;
|
|
46
|
+
}, z.core.$strip>>;
|
|
47
|
+
}, z.core.$strip>;
|
|
48
|
+
const METHOD = HttpMethod.GET;
|
|
49
|
+
type RequestType = z.infer<typeof Request>;
|
|
50
|
+
type ResponseType = z.infer<typeof Response>;
|
|
51
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdminModelRouteListByModelQuery = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const list_model_routes_response_schema_1 = require("../../schemas/list-model-routes-response.schema");
|
|
6
|
+
const http_method_1 = require("../../../../shared/http-method");
|
|
7
|
+
var AdminModelRouteListByModelQuery;
|
|
8
|
+
(function (AdminModelRouteListByModelQuery) {
|
|
9
|
+
AdminModelRouteListByModelQuery.Request = zod_1.z.void();
|
|
10
|
+
AdminModelRouteListByModelQuery.Response = list_model_routes_response_schema_1.ListModelRoutesResponseSchema;
|
|
11
|
+
AdminModelRouteListByModelQuery.METHOD = http_method_1.HttpMethod.GET;
|
|
12
|
+
})(AdminModelRouteListByModelQuery || (exports.AdminModelRouteListByModelQuery = AdminModelRouteListByModelQuery = {}));
|
|
13
|
+
//# sourceMappingURL=list-model-routes-by-model.query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-model-routes-by-model.query.js","sourceRoot":"","sources":["../../../../../v1/model-route/admin/queries/list-model-routes-by-model.query.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,uGAAgG;AAChG,gEAA4D;AAE5D,IAAiB,+BAA+B,CAM/C;AAND,WAAiB,+BAA+B;IAC/B,uCAAO,GAAG,OAAC,CAAC,IAAI,EAAE,CAAC;IACnB,wCAAQ,GAAG,iEAA6B,CAAC;IACzC,sCAAM,GAAG,wBAAU,CAAC,GAAG,CAAC;AAGzC,CAAC,EANgB,+BAA+B,+CAA/B,+BAA+B,QAM/C"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./model-route.errors"), exports);
|
|
18
|
+
__exportStar(require("./schemas"), exports);
|
|
19
|
+
__exportStar(require("./admin"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../v1/model-route/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,4CAA0B;AAC1B,0CAAwB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ErrorMetadata } from '../../shared';
|
|
2
|
+
export declare enum ModelRouteErrorCode {
|
|
3
|
+
MODEL_ROUTE_NOT_FOUND = "MODEL_ROUTE_NOT_FOUND",
|
|
4
|
+
DUPLICATE_MODEL_ROUTE = "DUPLICATE_MODEL_ROUTE",
|
|
5
|
+
INVALID_MODEL_ROUTE = "INVALID_MODEL_ROUTE"
|
|
6
|
+
}
|
|
7
|
+
export declare const MODEL_ROUTE_ERRORS: Record<ModelRouteErrorCode, ErrorMetadata>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MODEL_ROUTE_ERRORS = exports.ModelRouteErrorCode = void 0;
|
|
4
|
+
var ModelRouteErrorCode;
|
|
5
|
+
(function (ModelRouteErrorCode) {
|
|
6
|
+
ModelRouteErrorCode["MODEL_ROUTE_NOT_FOUND"] = "MODEL_ROUTE_NOT_FOUND";
|
|
7
|
+
ModelRouteErrorCode["DUPLICATE_MODEL_ROUTE"] = "DUPLICATE_MODEL_ROUTE";
|
|
8
|
+
ModelRouteErrorCode["INVALID_MODEL_ROUTE"] = "INVALID_MODEL_ROUTE";
|
|
9
|
+
})(ModelRouteErrorCode || (exports.ModelRouteErrorCode = ModelRouteErrorCode = {}));
|
|
10
|
+
exports.MODEL_ROUTE_ERRORS = {
|
|
11
|
+
[ModelRouteErrorCode.MODEL_ROUTE_NOT_FOUND]: {
|
|
12
|
+
code: ModelRouteErrorCode.MODEL_ROUTE_NOT_FOUND,
|
|
13
|
+
statusCode: 404,
|
|
14
|
+
},
|
|
15
|
+
[ModelRouteErrorCode.DUPLICATE_MODEL_ROUTE]: {
|
|
16
|
+
code: ModelRouteErrorCode.DUPLICATE_MODEL_ROUTE,
|
|
17
|
+
statusCode: 409,
|
|
18
|
+
},
|
|
19
|
+
[ModelRouteErrorCode.INVALID_MODEL_ROUTE]: {
|
|
20
|
+
code: ModelRouteErrorCode.INVALID_MODEL_ROUTE,
|
|
21
|
+
statusCode: 400,
|
|
22
|
+
},
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=model-route.errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model-route.errors.js","sourceRoot":"","sources":["../../../v1/model-route/model-route.errors.ts"],"names":[],"mappings":";;;AAEA,IAAY,mBAIX;AAJD,WAAY,mBAAmB;IAC3B,sEAA+C,CAAA;IAC/C,sEAA+C,CAAA;IAC/C,kEAA2C,CAAA;AAC/C,CAAC,EAJW,mBAAmB,mCAAnB,mBAAmB,QAI9B;AAEY,QAAA,kBAAkB,GAA+C;IAC1E,CAAC,mBAAmB,CAAC,qBAAqB,CAAC,EAAE;QACzC,IAAI,EAAE,mBAAmB,CAAC,qBAAqB;QAC/C,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,mBAAmB,CAAC,qBAAqB,CAAC,EAAE;QACzC,IAAI,EAAE,mBAAmB,CAAC,qBAAqB;QAC/C,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,mBAAmB,CAAC,mBAAmB,CAAC,EAAE;QACvC,IAAI,EAAE,mBAAmB,CAAC,mBAAmB;QAC7C,UAAU,EAAE,GAAG;KAClB;CACK,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { ApiProvider } from '../../ai-model/schemas/api-provider.enum';
|
|
3
|
+
import { ModelRouteStatus } from './model-route-status.enum';
|
|
4
|
+
export declare const CreateModelRouteRequestSchema: z.ZodObject<{
|
|
5
|
+
modelUuid: z.ZodString;
|
|
6
|
+
apiProvider: z.ZodEnum<typeof ApiProvider>;
|
|
7
|
+
externalSlug: z.ZodString;
|
|
8
|
+
priority: z.ZodDefault<z.ZodNumber>;
|
|
9
|
+
status: z.ZodDefault<z.ZodEnum<typeof ModelRouteStatus>>;
|
|
10
|
+
runtimeOverrides: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
11
|
+
openrouter: z.ZodOptional<z.ZodObject<{
|
|
12
|
+
useProxy: z.ZodOptional<z.ZodBoolean>;
|
|
13
|
+
imageConfig: z.ZodOptional<z.ZodObject<{
|
|
14
|
+
aspect_ratio: z.ZodOptional<z.ZodString>;
|
|
15
|
+
image_size: z.ZodOptional<z.ZodString>;
|
|
16
|
+
}, z.core.$strict>>;
|
|
17
|
+
provider: z.ZodOptional<z.ZodObject<{
|
|
18
|
+
only: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
19
|
+
order: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
20
|
+
ignore: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
21
|
+
allow_fallbacks: z.ZodOptional<z.ZodBoolean>;
|
|
22
|
+
require_parameters: z.ZodOptional<z.ZodBoolean>;
|
|
23
|
+
}, z.core.$strict>>;
|
|
24
|
+
fallbackModels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
25
|
+
}, z.core.$strict>>;
|
|
26
|
+
kie: z.ZodOptional<z.ZodObject<{
|
|
27
|
+
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
28
|
+
inputUrlsKey: z.ZodOptional<z.ZodString>;
|
|
29
|
+
inputUrlsSingle: z.ZodOptional<z.ZodBoolean>;
|
|
30
|
+
endpoint: z.ZodOptional<z.ZodString>;
|
|
31
|
+
bodyMode: z.ZodOptional<z.ZodEnum<typeof import("../..").KieBodyMode>>;
|
|
32
|
+
promptMaxLen: z.ZodOptional<z.ZodNumber>;
|
|
33
|
+
pricing: z.ZodOptional<z.ZodObject<{
|
|
34
|
+
base: z.ZodNumber;
|
|
35
|
+
modifiers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodNumber>>>;
|
|
36
|
+
fallback: z.ZodOptional<z.ZodNumber>;
|
|
37
|
+
}, z.core.$strict>>;
|
|
38
|
+
selectedOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
39
|
+
}, z.core.$strict>>;
|
|
40
|
+
}, z.core.$strict>>>;
|
|
41
|
+
}, z.core.$strip>;
|
|
42
|
+
export type CreateModelRouteRequestType = z.infer<typeof CreateModelRouteRequestSchema>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateModelRouteRequestSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const api_provider_enum_1 = require("../../ai-model/schemas/api-provider.enum");
|
|
6
|
+
const model_route_status_enum_1 = require("./model-route-status.enum");
|
|
7
|
+
const provider_generation_config_schema_1 = require("./provider-generation-config.schema");
|
|
8
|
+
exports.CreateModelRouteRequestSchema = zod_1.z.object({
|
|
9
|
+
modelUuid: zod_1.z
|
|
10
|
+
.string({ error: 'CreateModelRouteRequest.modelUuid.required' })
|
|
11
|
+
.uuid({ message: 'CreateModelRouteRequest.modelUuid.invalid' }),
|
|
12
|
+
apiProvider: zod_1.z.nativeEnum(api_provider_enum_1.ApiProvider, {
|
|
13
|
+
error: 'CreateModelRouteRequest.apiProvider.required',
|
|
14
|
+
}),
|
|
15
|
+
externalSlug: zod_1.z
|
|
16
|
+
.string({ error: 'CreateModelRouteRequest.externalSlug.required' })
|
|
17
|
+
.min(1, { message: 'CreateModelRouteRequest.externalSlug.min' })
|
|
18
|
+
.max(200, { message: 'CreateModelRouteRequest.externalSlug.max' }),
|
|
19
|
+
priority: zod_1.z
|
|
20
|
+
.number({ error: 'CreateModelRouteRequest.priority.required' })
|
|
21
|
+
.int({ message: 'CreateModelRouteRequest.priority.int' })
|
|
22
|
+
.min(0, { message: 'CreateModelRouteRequest.priority.min' })
|
|
23
|
+
.default(0),
|
|
24
|
+
status: zod_1.z
|
|
25
|
+
.nativeEnum(model_route_status_enum_1.ModelRouteStatus, { error: 'CreateModelRouteRequest.status.required' })
|
|
26
|
+
.default(model_route_status_enum_1.ModelRouteStatus.ACTIVE),
|
|
27
|
+
runtimeOverrides: provider_generation_config_schema_1.ProviderGenerationConfigSchema.optional().default({}),
|
|
28
|
+
});
|
|
29
|
+
//# sourceMappingURL=create-model-route-request.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-model-route-request.schema.js","sourceRoot":"","sources":["../../../../v1/model-route/schemas/create-model-route-request.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,gFAAuE;AACvE,uEAA6D;AAC7D,2FAAqF;AAExE,QAAA,6BAA6B,GAAG,OAAC,CAAC,MAAM,CAAC;IAClD,SAAS,EAAE,OAAC;SACP,MAAM,CAAC,EAAE,KAAK,EAAE,4CAA4C,EAAE,CAAC;SAC/D,IAAI,CAAC,EAAE,OAAO,EAAE,2CAA2C,EAAE,CAAC;IACnE,WAAW,EAAE,OAAC,CAAC,UAAU,CAAC,+BAAW,EAAE;QACnC,KAAK,EAAE,8CAA8C;KACxD,CAAC;IACF,YAAY,EAAE,OAAC;SACV,MAAM,CAAC,EAAE,KAAK,EAAE,+CAA+C,EAAE,CAAC;SAClE,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,0CAA0C,EAAE,CAAC;SAC/D,GAAG,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,0CAA0C,EAAE,CAAC;IACtE,QAAQ,EAAE,OAAC;SACN,MAAM,CAAC,EAAE,KAAK,EAAE,2CAA2C,EAAE,CAAC;SAC9D,GAAG,CAAC,EAAE,OAAO,EAAE,sCAAsC,EAAE,CAAC;SACxD,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,sCAAsC,EAAE,CAAC;SAC3D,OAAO,CAAC,CAAC,CAAC;IACf,MAAM,EAAE,OAAC;SACJ,UAAU,CAAC,0CAAgB,EAAE,EAAE,KAAK,EAAE,yCAAyC,EAAE,CAAC;SAClF,OAAO,CAAC,0CAAgB,CAAC,MAAM,CAAC;IACrC,gBAAgB,EAAE,kEAA8B,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;CAC1E,CAAC,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from './model-route-status.enum';
|
|
2
|
+
export * from './provider-generation-config.schema';
|
|
3
|
+
export * from './model-route-response.schema';
|
|
4
|
+
export * from './create-model-route-request.schema';
|
|
5
|
+
export * from './update-model-route-request.schema';
|
|
6
|
+
export * from './list-model-routes-response.schema';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./model-route-status.enum"), exports);
|
|
18
|
+
__exportStar(require("./provider-generation-config.schema"), exports);
|
|
19
|
+
__exportStar(require("./model-route-response.schema"), exports);
|
|
20
|
+
__exportStar(require("./create-model-route-request.schema"), exports);
|
|
21
|
+
__exportStar(require("./update-model-route-request.schema"), exports);
|
|
22
|
+
__exportStar(require("./list-model-routes-response.schema"), exports);
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/model-route/schemas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,sEAAoD;AACpD,gEAA8C;AAC9C,sEAAoD;AACpD,sEAAoD;AACpD,sEAAoD"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const ListModelRoutesResponseSchema: z.ZodObject<{
|
|
3
|
+
routes: z.ZodArray<z.ZodObject<{
|
|
4
|
+
uuid: z.ZodString;
|
|
5
|
+
modelUuid: z.ZodString;
|
|
6
|
+
apiProvider: z.ZodEnum<typeof import("../..").ApiProvider>;
|
|
7
|
+
externalSlug: z.ZodString;
|
|
8
|
+
priority: z.ZodNumber;
|
|
9
|
+
status: z.ZodEnum<typeof import("./model-route-status.enum").ModelRouteStatus>;
|
|
10
|
+
runtimeOverrides: z.ZodObject<{
|
|
11
|
+
openrouter: z.ZodOptional<z.ZodObject<{
|
|
12
|
+
useProxy: z.ZodOptional<z.ZodBoolean>;
|
|
13
|
+
imageConfig: z.ZodOptional<z.ZodObject<{
|
|
14
|
+
aspect_ratio: z.ZodOptional<z.ZodString>;
|
|
15
|
+
image_size: z.ZodOptional<z.ZodString>;
|
|
16
|
+
}, z.core.$strict>>;
|
|
17
|
+
provider: z.ZodOptional<z.ZodObject<{
|
|
18
|
+
only: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
19
|
+
order: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
20
|
+
ignore: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
21
|
+
allow_fallbacks: z.ZodOptional<z.ZodBoolean>;
|
|
22
|
+
require_parameters: z.ZodOptional<z.ZodBoolean>;
|
|
23
|
+
}, z.core.$strict>>;
|
|
24
|
+
fallbackModels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
25
|
+
}, z.core.$strict>>;
|
|
26
|
+
kie: z.ZodOptional<z.ZodObject<{
|
|
27
|
+
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
28
|
+
inputUrlsKey: z.ZodOptional<z.ZodString>;
|
|
29
|
+
inputUrlsSingle: z.ZodOptional<z.ZodBoolean>;
|
|
30
|
+
endpoint: z.ZodOptional<z.ZodString>;
|
|
31
|
+
bodyMode: z.ZodOptional<z.ZodEnum<typeof import("../..").KieBodyMode>>;
|
|
32
|
+
promptMaxLen: z.ZodOptional<z.ZodNumber>;
|
|
33
|
+
pricing: z.ZodOptional<z.ZodObject<{
|
|
34
|
+
base: z.ZodNumber;
|
|
35
|
+
modifiers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodNumber>>>;
|
|
36
|
+
fallback: z.ZodOptional<z.ZodNumber>;
|
|
37
|
+
}, z.core.$strict>>;
|
|
38
|
+
selectedOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
39
|
+
}, z.core.$strict>>;
|
|
40
|
+
}, z.core.$strict>;
|
|
41
|
+
createdAt: z.ZodString;
|
|
42
|
+
updatedAt: z.ZodString;
|
|
43
|
+
}, z.core.$strip>>;
|
|
44
|
+
}, z.core.$strip>;
|
|
45
|
+
export type ListModelRoutesResponseType = z.infer<typeof ListModelRoutesResponseSchema>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListModelRoutesResponseSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const model_route_response_schema_1 = require("./model-route-response.schema");
|
|
6
|
+
exports.ListModelRoutesResponseSchema = zod_1.z.object({
|
|
7
|
+
routes: zod_1.z.array(model_route_response_schema_1.ModelRouteResponseSchema),
|
|
8
|
+
});
|
|
9
|
+
//# sourceMappingURL=list-model-routes-response.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-model-routes-response.schema.js","sourceRoot":"","sources":["../../../../v1/model-route/schemas/list-model-routes-response.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,+EAAyE;AAE5D,QAAA,6BAA6B,GAAG,OAAC,CAAC,MAAM,CAAC;IAClD,MAAM,EAAE,OAAC,CAAC,KAAK,CAAC,sDAAwB,CAAC;CAC5C,CAAC,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { ApiProvider } from '../../ai-model/schemas/api-provider.enum';
|
|
3
|
+
import { ModelRouteStatus } from './model-route-status.enum';
|
|
4
|
+
export declare const ModelRouteResponseSchema: z.ZodObject<{
|
|
5
|
+
uuid: z.ZodString;
|
|
6
|
+
modelUuid: z.ZodString;
|
|
7
|
+
apiProvider: z.ZodEnum<typeof ApiProvider>;
|
|
8
|
+
externalSlug: z.ZodString;
|
|
9
|
+
priority: z.ZodNumber;
|
|
10
|
+
status: z.ZodEnum<typeof ModelRouteStatus>;
|
|
11
|
+
runtimeOverrides: z.ZodObject<{
|
|
12
|
+
openrouter: z.ZodOptional<z.ZodObject<{
|
|
13
|
+
useProxy: z.ZodOptional<z.ZodBoolean>;
|
|
14
|
+
imageConfig: z.ZodOptional<z.ZodObject<{
|
|
15
|
+
aspect_ratio: z.ZodOptional<z.ZodString>;
|
|
16
|
+
image_size: z.ZodOptional<z.ZodString>;
|
|
17
|
+
}, z.core.$strict>>;
|
|
18
|
+
provider: z.ZodOptional<z.ZodObject<{
|
|
19
|
+
only: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
20
|
+
order: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
21
|
+
ignore: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
22
|
+
allow_fallbacks: z.ZodOptional<z.ZodBoolean>;
|
|
23
|
+
require_parameters: z.ZodOptional<z.ZodBoolean>;
|
|
24
|
+
}, z.core.$strict>>;
|
|
25
|
+
fallbackModels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
26
|
+
}, z.core.$strict>>;
|
|
27
|
+
kie: z.ZodOptional<z.ZodObject<{
|
|
28
|
+
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
29
|
+
inputUrlsKey: z.ZodOptional<z.ZodString>;
|
|
30
|
+
inputUrlsSingle: z.ZodOptional<z.ZodBoolean>;
|
|
31
|
+
endpoint: z.ZodOptional<z.ZodString>;
|
|
32
|
+
bodyMode: z.ZodOptional<z.ZodEnum<typeof import("../..").KieBodyMode>>;
|
|
33
|
+
promptMaxLen: z.ZodOptional<z.ZodNumber>;
|
|
34
|
+
pricing: z.ZodOptional<z.ZodObject<{
|
|
35
|
+
base: z.ZodNumber;
|
|
36
|
+
modifiers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodNumber>>>;
|
|
37
|
+
fallback: z.ZodOptional<z.ZodNumber>;
|
|
38
|
+
}, z.core.$strict>>;
|
|
39
|
+
selectedOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
40
|
+
}, z.core.$strict>>;
|
|
41
|
+
}, z.core.$strict>;
|
|
42
|
+
createdAt: z.ZodString;
|
|
43
|
+
updatedAt: z.ZodString;
|
|
44
|
+
}, z.core.$strip>;
|
|
45
|
+
export type ModelRouteResponseType = z.infer<typeof ModelRouteResponseSchema>;
|