@veruna/api-contracts 1.1.39 → 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/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/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,23 @@
|
|
|
1
|
+
import { ErrorMetadata } from '../../shared';
|
|
2
|
+
export declare enum KieErrorCode {
|
|
3
|
+
INVALID_SIGNATURE = "KIE_INVALID_SIGNATURE",
|
|
4
|
+
STALE_TIMESTAMP = "KIE_STALE_TIMESTAMP",
|
|
5
|
+
URL_NOT_WHITELISTED = "KIE_URL_NOT_WHITELISTED",
|
|
6
|
+
TASK_NOT_FOUND = "KIE_TASK_NOT_FOUND",
|
|
7
|
+
TASK_TIMEOUT = "KIE_TASK_TIMEOUT",
|
|
8
|
+
TASK_FAILED = "KIE_TASK_FAILED",
|
|
9
|
+
CONTENT_FILTERED = "KIE_CONTENT_FILTERED",
|
|
10
|
+
TASK_ALREADY_TERMINAL = "KIE_TASK_ALREADY_TERMINAL",
|
|
11
|
+
TASK_ALREADY_LINKED = "KIE_TASK_ALREADY_LINKED",
|
|
12
|
+
REPLAYED_WEBHOOK = "KIE_REPLAYED_WEBHOOK",
|
|
13
|
+
EMPTY_RESULT = "KIE_EMPTY_RESULT",
|
|
14
|
+
UNSUPPORTED_MODEL = "KIE_UNSUPPORTED_MODEL",
|
|
15
|
+
UNSUPPORTED_OPERATION = "KIE_UNSUPPORTED_OPERATION",
|
|
16
|
+
INVALID_PARAMETERS = "KIE_INVALID_PARAMETERS",
|
|
17
|
+
NO_MODELS_AVAILABLE = "KIE_NO_MODELS_AVAILABLE",
|
|
18
|
+
API_ERROR = "KIE_API_ERROR",
|
|
19
|
+
API_UNAUTHORIZED = "KIE_API_UNAUTHORIZED",
|
|
20
|
+
INSUFFICIENT_CREDITS = "KIE_INSUFFICIENT_CREDITS",
|
|
21
|
+
RATE_LIMITED = "KIE_RATE_LIMITED"
|
|
22
|
+
}
|
|
23
|
+
export declare const KIE_ERRORS: Record<KieErrorCode, ErrorMetadata>;
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.KIE_ERRORS = exports.KieErrorCode = void 0;
|
|
4
|
+
var KieErrorCode;
|
|
5
|
+
(function (KieErrorCode) {
|
|
6
|
+
KieErrorCode["INVALID_SIGNATURE"] = "KIE_INVALID_SIGNATURE";
|
|
7
|
+
KieErrorCode["STALE_TIMESTAMP"] = "KIE_STALE_TIMESTAMP";
|
|
8
|
+
KieErrorCode["URL_NOT_WHITELISTED"] = "KIE_URL_NOT_WHITELISTED";
|
|
9
|
+
KieErrorCode["TASK_NOT_FOUND"] = "KIE_TASK_NOT_FOUND";
|
|
10
|
+
KieErrorCode["TASK_TIMEOUT"] = "KIE_TASK_TIMEOUT";
|
|
11
|
+
KieErrorCode["TASK_FAILED"] = "KIE_TASK_FAILED";
|
|
12
|
+
KieErrorCode["CONTENT_FILTERED"] = "KIE_CONTENT_FILTERED";
|
|
13
|
+
KieErrorCode["TASK_ALREADY_TERMINAL"] = "KIE_TASK_ALREADY_TERMINAL";
|
|
14
|
+
KieErrorCode["TASK_ALREADY_LINKED"] = "KIE_TASK_ALREADY_LINKED";
|
|
15
|
+
KieErrorCode["REPLAYED_WEBHOOK"] = "KIE_REPLAYED_WEBHOOK";
|
|
16
|
+
KieErrorCode["EMPTY_RESULT"] = "KIE_EMPTY_RESULT";
|
|
17
|
+
KieErrorCode["UNSUPPORTED_MODEL"] = "KIE_UNSUPPORTED_MODEL";
|
|
18
|
+
KieErrorCode["UNSUPPORTED_OPERATION"] = "KIE_UNSUPPORTED_OPERATION";
|
|
19
|
+
KieErrorCode["INVALID_PARAMETERS"] = "KIE_INVALID_PARAMETERS";
|
|
20
|
+
KieErrorCode["NO_MODELS_AVAILABLE"] = "KIE_NO_MODELS_AVAILABLE";
|
|
21
|
+
KieErrorCode["API_ERROR"] = "KIE_API_ERROR";
|
|
22
|
+
KieErrorCode["API_UNAUTHORIZED"] = "KIE_API_UNAUTHORIZED";
|
|
23
|
+
KieErrorCode["INSUFFICIENT_CREDITS"] = "KIE_INSUFFICIENT_CREDITS";
|
|
24
|
+
KieErrorCode["RATE_LIMITED"] = "KIE_RATE_LIMITED";
|
|
25
|
+
})(KieErrorCode || (exports.KieErrorCode = KieErrorCode = {}));
|
|
26
|
+
exports.KIE_ERRORS = {
|
|
27
|
+
[KieErrorCode.INVALID_SIGNATURE]: {
|
|
28
|
+
code: KieErrorCode.INVALID_SIGNATURE,
|
|
29
|
+
statusCode: 401,
|
|
30
|
+
},
|
|
31
|
+
[KieErrorCode.STALE_TIMESTAMP]: {
|
|
32
|
+
code: KieErrorCode.STALE_TIMESTAMP,
|
|
33
|
+
statusCode: 401,
|
|
34
|
+
},
|
|
35
|
+
[KieErrorCode.URL_NOT_WHITELISTED]: {
|
|
36
|
+
code: KieErrorCode.URL_NOT_WHITELISTED,
|
|
37
|
+
statusCode: 400,
|
|
38
|
+
},
|
|
39
|
+
[KieErrorCode.TASK_NOT_FOUND]: {
|
|
40
|
+
code: KieErrorCode.TASK_NOT_FOUND,
|
|
41
|
+
statusCode: 404,
|
|
42
|
+
},
|
|
43
|
+
[KieErrorCode.TASK_TIMEOUT]: {
|
|
44
|
+
code: KieErrorCode.TASK_TIMEOUT,
|
|
45
|
+
statusCode: 504,
|
|
46
|
+
},
|
|
47
|
+
[KieErrorCode.TASK_FAILED]: {
|
|
48
|
+
code: KieErrorCode.TASK_FAILED,
|
|
49
|
+
statusCode: 502,
|
|
50
|
+
},
|
|
51
|
+
[KieErrorCode.CONTENT_FILTERED]: {
|
|
52
|
+
code: KieErrorCode.CONTENT_FILTERED,
|
|
53
|
+
statusCode: 422,
|
|
54
|
+
},
|
|
55
|
+
[KieErrorCode.TASK_ALREADY_LINKED]: {
|
|
56
|
+
code: KieErrorCode.TASK_ALREADY_LINKED,
|
|
57
|
+
statusCode: 409,
|
|
58
|
+
},
|
|
59
|
+
[KieErrorCode.REPLAYED_WEBHOOK]: {
|
|
60
|
+
code: KieErrorCode.REPLAYED_WEBHOOK,
|
|
61
|
+
statusCode: 200,
|
|
62
|
+
},
|
|
63
|
+
[KieErrorCode.TASK_ALREADY_TERMINAL]: {
|
|
64
|
+
code: KieErrorCode.TASK_ALREADY_TERMINAL,
|
|
65
|
+
statusCode: 409,
|
|
66
|
+
},
|
|
67
|
+
[KieErrorCode.EMPTY_RESULT]: {
|
|
68
|
+
code: KieErrorCode.EMPTY_RESULT,
|
|
69
|
+
statusCode: 502,
|
|
70
|
+
},
|
|
71
|
+
[KieErrorCode.UNSUPPORTED_MODEL]: {
|
|
72
|
+
code: KieErrorCode.UNSUPPORTED_MODEL,
|
|
73
|
+
statusCode: 400,
|
|
74
|
+
},
|
|
75
|
+
[KieErrorCode.UNSUPPORTED_OPERATION]: {
|
|
76
|
+
code: KieErrorCode.UNSUPPORTED_OPERATION,
|
|
77
|
+
statusCode: 400,
|
|
78
|
+
},
|
|
79
|
+
[KieErrorCode.INVALID_PARAMETERS]: {
|
|
80
|
+
code: KieErrorCode.INVALID_PARAMETERS,
|
|
81
|
+
statusCode: 400,
|
|
82
|
+
},
|
|
83
|
+
[KieErrorCode.NO_MODELS_AVAILABLE]: {
|
|
84
|
+
code: KieErrorCode.NO_MODELS_AVAILABLE,
|
|
85
|
+
statusCode: 503,
|
|
86
|
+
},
|
|
87
|
+
[KieErrorCode.API_ERROR]: {
|
|
88
|
+
code: KieErrorCode.API_ERROR,
|
|
89
|
+
statusCode: 502,
|
|
90
|
+
},
|
|
91
|
+
[KieErrorCode.API_UNAUTHORIZED]: {
|
|
92
|
+
code: KieErrorCode.API_UNAUTHORIZED,
|
|
93
|
+
statusCode: 502,
|
|
94
|
+
},
|
|
95
|
+
[KieErrorCode.INSUFFICIENT_CREDITS]: {
|
|
96
|
+
code: KieErrorCode.INSUFFICIENT_CREDITS,
|
|
97
|
+
statusCode: 402,
|
|
98
|
+
},
|
|
99
|
+
[KieErrorCode.RATE_LIMITED]: {
|
|
100
|
+
code: KieErrorCode.RATE_LIMITED,
|
|
101
|
+
statusCode: 429,
|
|
102
|
+
},
|
|
103
|
+
};
|
|
104
|
+
//# sourceMappingURL=kie-integration.errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kie-integration.errors.js","sourceRoot":"","sources":["../../../v1/kie-integration/kie-integration.errors.ts"],"names":[],"mappings":";;;AAUA,IAAY,YAgCX;AAhCD,WAAY,YAAY;IAEpB,2DAA2C,CAAA;IAC3C,uDAAuC,CAAA;IACvC,+DAA+C,CAAA;IAG/C,qDAAqC,CAAA;IACrC,iDAAiC,CAAA;IACjC,+CAA+B,CAAA;IAE/B,yDAAyC,CAAA;IAEzC,mEAAmD,CAAA;IAEnD,+DAA+C,CAAA;IAE/C,yDAAyC,CAAA;IACzC,iDAAiC,CAAA;IAGjC,2DAA2C,CAAA;IAC3C,mEAAmD,CAAA;IACnD,6DAA6C,CAAA;IAE7C,+DAA+C,CAAA;IAG/C,2CAA2B,CAAA;IAC3B,yDAAyC,CAAA;IACzC,iEAAiD,CAAA;IACjD,iDAAiC,CAAA;AACrC,CAAC,EAhCW,YAAY,4BAAZ,YAAY,QAgCvB;AAEY,QAAA,UAAU,GAAwC;IAE3D,CAAC,YAAY,CAAC,iBAAiB,CAAC,EAAE;QAC9B,IAAI,EAAE,YAAY,CAAC,iBAAiB;QACpC,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,YAAY,CAAC,eAAe,CAAC,EAAE;QAC5B,IAAI,EAAE,YAAY,CAAC,eAAe;QAClC,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,YAAY,CAAC,mBAAmB,CAAC,EAAE;QAChC,IAAI,EAAE,YAAY,CAAC,mBAAmB;QACtC,UAAU,EAAE,GAAG;KAClB;IAGD,CAAC,YAAY,CAAC,cAAc,CAAC,EAAE;QAC3B,IAAI,EAAE,YAAY,CAAC,cAAc;QACjC,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,YAAY,CAAC,YAAY,CAAC,EAAE;QACzB,IAAI,EAAE,YAAY,CAAC,YAAY;QAC/B,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,YAAY,CAAC,WAAW,CAAC,EAAE;QACxB,IAAI,EAAE,YAAY,CAAC,WAAW;QAC9B,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,YAAY,CAAC,gBAAgB,CAAC,EAAE;QAC7B,IAAI,EAAE,YAAY,CAAC,gBAAgB;QACnC,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,YAAY,CAAC,mBAAmB,CAAC,EAAE;QAChC,IAAI,EAAE,YAAY,CAAC,mBAAmB;QACtC,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,YAAY,CAAC,gBAAgB,CAAC,EAAE;QAC7B,IAAI,EAAE,YAAY,CAAC,gBAAgB;QACnC,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,YAAY,CAAC,qBAAqB,CAAC,EAAE;QAClC,IAAI,EAAE,YAAY,CAAC,qBAAqB;QACxC,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,YAAY,CAAC,YAAY,CAAC,EAAE;QACzB,IAAI,EAAE,YAAY,CAAC,YAAY;QAC/B,UAAU,EAAE,GAAG;KAClB;IAGD,CAAC,YAAY,CAAC,iBAAiB,CAAC,EAAE;QAC9B,IAAI,EAAE,YAAY,CAAC,iBAAiB;QACpC,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,YAAY,CAAC,qBAAqB,CAAC,EAAE;QAClC,IAAI,EAAE,YAAY,CAAC,qBAAqB;QACxC,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,YAAY,CAAC,kBAAkB,CAAC,EAAE;QAC/B,IAAI,EAAE,YAAY,CAAC,kBAAkB;QACrC,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,YAAY,CAAC,mBAAmB,CAAC,EAAE;QAChC,IAAI,EAAE,YAAY,CAAC,mBAAmB;QACtC,UAAU,EAAE,GAAG;KAClB;IAGD,CAAC,YAAY,CAAC,SAAS,CAAC,EAAE;QACtB,IAAI,EAAE,YAAY,CAAC,SAAS;QAC5B,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,YAAY,CAAC,gBAAgB,CAAC,EAAE;QAC7B,IAAI,EAAE,YAAY,CAAC,gBAAgB;QACnC,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,YAAY,CAAC,oBAAoB,CAAC,EAAE;QACjC,IAAI,EAAE,YAAY,CAAC,oBAAoB;QACvC,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,YAAY,CAAC,YAAY,CAAC,EAAE;QACzB,IAAI,EAAE,YAAY,CAAC,YAAY;QAC/B,UAAU,EAAE,GAAG;KAClB;CACK,CAAC"}
|
|
@@ -14,10 +14,6 @@ export declare namespace CreateMessageCommand {
|
|
|
14
14
|
tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
15
15
|
toolUuid: z.ZodString;
|
|
16
16
|
modelId: z.ZodString;
|
|
17
|
-
settings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
18
|
-
key: z.ZodEnum<typeof import("../..").SettingKey>;
|
|
19
|
-
optionIds: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
20
|
-
}, z.core.$strip>>>;
|
|
21
17
|
}, z.core.$strip>>>;
|
|
22
18
|
attachPendingFiles: z.ZodOptional<z.ZodBoolean>;
|
|
23
19
|
assistantId: z.ZodOptional<z.ZodString>;
|
|
@@ -12,10 +12,6 @@ export declare const CreateMessageRequestSchema: z.ZodObject<{
|
|
|
12
12
|
tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
13
13
|
toolUuid: z.ZodString;
|
|
14
14
|
modelId: z.ZodString;
|
|
15
|
-
settings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
16
|
-
key: z.ZodEnum<typeof import("../..").SettingKey>;
|
|
17
|
-
optionIds: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
18
|
-
}, z.core.$strip>>>;
|
|
19
15
|
}, z.core.$strip>>>;
|
|
20
16
|
attachPendingFiles: z.ZodOptional<z.ZodBoolean>;
|
|
21
17
|
assistantId: z.ZodOptional<z.ZodString>;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpMethod } from '../../../../shared/http-method';
|
|
3
|
+
export declare namespace AdminModelRouteCreateCommand {
|
|
4
|
+
const Request: z.ZodObject<{
|
|
5
|
+
modelUuid: z.ZodString;
|
|
6
|
+
apiProvider: z.ZodEnum<typeof import("../../..").ApiProvider>;
|
|
7
|
+
externalSlug: z.ZodString;
|
|
8
|
+
priority: z.ZodDefault<z.ZodNumber>;
|
|
9
|
+
status: z.ZodDefault<z.ZodEnum<typeof import("../..").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
|
+
const Response: z.ZodObject<{
|
|
43
|
+
uuid: z.ZodString;
|
|
44
|
+
modelUuid: z.ZodString;
|
|
45
|
+
apiProvider: z.ZodEnum<typeof import("../../..").ApiProvider>;
|
|
46
|
+
externalSlug: z.ZodString;
|
|
47
|
+
priority: z.ZodNumber;
|
|
48
|
+
status: z.ZodEnum<typeof import("../..").ModelRouteStatus>;
|
|
49
|
+
runtimeOverrides: z.ZodObject<{
|
|
50
|
+
openrouter: z.ZodOptional<z.ZodObject<{
|
|
51
|
+
useProxy: z.ZodOptional<z.ZodBoolean>;
|
|
52
|
+
imageConfig: z.ZodOptional<z.ZodObject<{
|
|
53
|
+
aspect_ratio: z.ZodOptional<z.ZodString>;
|
|
54
|
+
image_size: z.ZodOptional<z.ZodString>;
|
|
55
|
+
}, z.core.$strict>>;
|
|
56
|
+
provider: z.ZodOptional<z.ZodObject<{
|
|
57
|
+
only: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
58
|
+
order: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
59
|
+
ignore: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
60
|
+
allow_fallbacks: z.ZodOptional<z.ZodBoolean>;
|
|
61
|
+
require_parameters: z.ZodOptional<z.ZodBoolean>;
|
|
62
|
+
}, z.core.$strict>>;
|
|
63
|
+
fallbackModels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
64
|
+
}, z.core.$strict>>;
|
|
65
|
+
kie: z.ZodOptional<z.ZodObject<{
|
|
66
|
+
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
67
|
+
inputUrlsKey: z.ZodOptional<z.ZodString>;
|
|
68
|
+
inputUrlsSingle: z.ZodOptional<z.ZodBoolean>;
|
|
69
|
+
endpoint: z.ZodOptional<z.ZodString>;
|
|
70
|
+
bodyMode: z.ZodOptional<z.ZodEnum<typeof import("../../..").KieBodyMode>>;
|
|
71
|
+
promptMaxLen: z.ZodOptional<z.ZodNumber>;
|
|
72
|
+
pricing: z.ZodOptional<z.ZodObject<{
|
|
73
|
+
base: z.ZodNumber;
|
|
74
|
+
modifiers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodNumber>>>;
|
|
75
|
+
fallback: z.ZodOptional<z.ZodNumber>;
|
|
76
|
+
}, z.core.$strict>>;
|
|
77
|
+
selectedOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
78
|
+
}, z.core.$strict>>;
|
|
79
|
+
}, z.core.$strict>;
|
|
80
|
+
createdAt: z.ZodString;
|
|
81
|
+
updatedAt: z.ZodString;
|
|
82
|
+
}, z.core.$strip>;
|
|
83
|
+
const URL: "/api/v1/admin/model-routes";
|
|
84
|
+
const METHOD = HttpMethod.POST;
|
|
85
|
+
type RequestType = z.infer<typeof Request>;
|
|
86
|
+
type ResponseType = z.infer<typeof Response>;
|
|
87
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdminModelRouteCreateCommand = void 0;
|
|
4
|
+
const create_model_route_request_schema_1 = require("../../schemas/create-model-route-request.schema");
|
|
5
|
+
const model_route_response_schema_1 = require("../../schemas/model-route-response.schema");
|
|
6
|
+
const rest_api_1 = require("../../../../rest-api");
|
|
7
|
+
const http_method_1 = require("../../../../shared/http-method");
|
|
8
|
+
var AdminModelRouteCreateCommand;
|
|
9
|
+
(function (AdminModelRouteCreateCommand) {
|
|
10
|
+
AdminModelRouteCreateCommand.Request = create_model_route_request_schema_1.CreateModelRouteRequestSchema;
|
|
11
|
+
AdminModelRouteCreateCommand.Response = model_route_response_schema_1.ModelRouteResponseSchema;
|
|
12
|
+
AdminModelRouteCreateCommand.URL = rest_api_1.REST_API.V1.MODEL_ROUTES.CREATE;
|
|
13
|
+
AdminModelRouteCreateCommand.METHOD = http_method_1.HttpMethod.POST;
|
|
14
|
+
})(AdminModelRouteCreateCommand || (exports.AdminModelRouteCreateCommand = AdminModelRouteCreateCommand = {}));
|
|
15
|
+
//# sourceMappingURL=create-model-route.command.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-model-route.command.js","sourceRoot":"","sources":["../../../../../v1/model-route/admin/commands/create-model-route.command.ts"],"names":[],"mappings":";;;AACA,uGAAgG;AAChG,2FAAqF;AACrF,mDAAgD;AAChD,gEAA4D;AAE5D,IAAiB,4BAA4B,CAO5C;AAPD,WAAiB,4BAA4B;IAC5B,oCAAO,GAAG,iEAA6B,CAAC;IACxC,qCAAQ,GAAG,sDAAwB,CAAC;IACpC,gCAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,YAAY,CAAC,MAAM,CAAC;IACtC,mCAAM,GAAG,wBAAU,CAAC,IAAI,CAAC;AAG1C,CAAC,EAPgB,4BAA4B,4CAA5B,4BAA4B,QAO5C"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpMethod } from '../../../../shared/http-method';
|
|
3
|
+
export declare namespace AdminModelRouteDeleteCommand {
|
|
4
|
+
const Request: z.ZodVoid;
|
|
5
|
+
const Response: z.ZodObject<{
|
|
6
|
+
uuid: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
const METHOD = HttpMethod.DELETE;
|
|
9
|
+
type RequestType = z.infer<typeof Request>;
|
|
10
|
+
type ResponseType = z.infer<typeof Response>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdminModelRouteDeleteCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const shared_1 = require("../../../../shared");
|
|
6
|
+
const http_method_1 = require("../../../../shared/http-method");
|
|
7
|
+
var AdminModelRouteDeleteCommand;
|
|
8
|
+
(function (AdminModelRouteDeleteCommand) {
|
|
9
|
+
AdminModelRouteDeleteCommand.Request = zod_1.z.void();
|
|
10
|
+
AdminModelRouteDeleteCommand.Response = shared_1.DeleteResponseSchema;
|
|
11
|
+
AdminModelRouteDeleteCommand.METHOD = http_method_1.HttpMethod.DELETE;
|
|
12
|
+
})(AdminModelRouteDeleteCommand || (exports.AdminModelRouteDeleteCommand = AdminModelRouteDeleteCommand = {}));
|
|
13
|
+
//# sourceMappingURL=delete-model-route.command.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-model-route.command.js","sourceRoot":"","sources":["../../../../../v1/model-route/admin/commands/delete-model-route.command.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,+CAA0D;AAC1D,gEAA4D;AAE5D,IAAiB,4BAA4B,CAM5C;AAND,WAAiB,4BAA4B;IAC5B,oCAAO,GAAG,OAAC,CAAC,IAAI,EAAE,CAAC;IACnB,qCAAQ,GAAG,6BAAoB,CAAC;IAChC,mCAAM,GAAG,wBAAU,CAAC,MAAM,CAAC;AAG5C,CAAC,EANgB,4BAA4B,4CAA5B,4BAA4B,QAM5C"}
|
|
@@ -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"}
|