@veruna/api-contracts 1.1.14 → 1.1.16
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 +1 -0
- package/build/controllers/index.js +7 -1
- package/build/controllers/index.js.map +1 -1
- package/build/controllers/tools.controllers.d.ts +4 -0
- package/build/controllers/tools.controllers.js +8 -0
- package/build/controllers/tools.controllers.js.map +1 -0
- package/build/locales/validation.d.ts +138 -0
- package/build/locales/validation.js +138 -0
- package/build/locales/validation.js.map +1 -1
- package/build/rest-api.d.ts +21 -0
- package/build/rest-api.js +21 -0
- package/build/rest-api.js.map +1 -1
- package/build/routes/index.d.ts +4 -0
- package/build/routes/index.js +10 -1
- package/build/routes/index.js.map +1 -1
- package/build/routes/model-tools-admin.routes.d.ts +6 -0
- package/build/routes/model-tools-admin.routes.js +10 -0
- package/build/routes/model-tools-admin.routes.js.map +1 -0
- package/build/routes/tools-admin.routes.d.ts +5 -0
- package/build/routes/tools-admin.routes.js +9 -0
- package/build/routes/tools-admin.routes.js.map +1 -0
- package/build/routes/tools-public.routes.d.ts +4 -0
- package/build/routes/tools-public.routes.js +8 -0
- package/build/routes/tools-public.routes.js.map +1 -0
- package/build/routes/tools-unreg.routes.d.ts +4 -0
- package/build/routes/tools-unreg.routes.js +8 -0
- package/build/routes/tools-unreg.routes.js.map +1 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/v1/ai/tool.types.d.ts +6 -8
- package/build/v1/ai/tool.types.js +13 -14
- package/build/v1/ai/tool.types.js.map +1 -1
- package/build/v1/ai-model/admin/commands/create-model.command.d.ts +2 -87
- package/build/v1/ai-model/admin/commands/update-model.command.d.ts +2 -87
- package/build/v1/ai-model/admin/queries/get-model.query.d.ts +1 -21
- package/build/v1/ai-model/admin/queries/get-models.query.d.ts +1 -21
- package/build/v1/ai-model/ai-model.errors.d.ts +2 -2
- package/build/v1/ai-model/ai-model.errors.js +5 -5
- package/build/v1/ai-model/ai-model.errors.js.map +1 -1
- package/build/v1/ai-model/public/queries/get-active-models.query.d.ts +2 -18
- package/build/v1/ai-model/public/queries/get-models-list.query.d.ts +2 -80
- package/build/v1/ai-model/schemas/create-model-request.schema.d.ts +2 -67
- package/build/v1/ai-model/schemas/create-model-request.schema.js +16 -7
- 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 +4 -93
- package/build/v1/ai-model/schemas/model-response.schema.js +6 -7
- package/build/v1/ai-model/schemas/model-response.schema.js.map +1 -1
- package/build/v1/ai-model/schemas/model-settings.schema.d.ts +0 -204
- package/build/v1/ai-model/schemas/model-settings.schema.js +20 -36
- 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 +6 -238
- package/build/v1/ai-model/schemas/models-list-response.schema.js +1 -14
- package/build/v1/ai-model/schemas/models-list-response.schema.js.map +1 -1
- package/build/v1/ai-model/schemas/unreg-models-list-response.schema.d.ts +45 -364
- package/build/v1/ai-model/schemas/unreg-models-list-response.schema.js +3 -29
- package/build/v1/ai-model/schemas/unreg-models-list-response.schema.js.map +1 -1
- package/build/v1/ai-model/schemas/update-model-request.schema.d.ts +2 -67
- package/build/v1/ai-model/schemas/update-model-request.schema.js +16 -7
- 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 +1 -81
- package/build/v1/assistants/admin/commands/create-assistant.command.d.ts +2 -2
- package/build/v1/assistants/admin/commands/update-assistant.command.d.ts +2 -2
- package/build/v1/assistants/admin/queries/get-assistant.query.d.ts +1 -1
- package/build/v1/assistants/admin/queries/get-assistants.query.d.ts +3 -3
- package/build/v1/assistants/catalog/queries/catalog-long-reg.query.d.ts +2 -2
- package/build/v1/assistants/catalog/queries/catalog-long-unreg.query.d.ts +2 -2
- 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 +2 -2
- package/build/v1/assistants/schemas/assistant-author.schema.d.ts +1 -1
- package/build/v1/assistants/schemas/assistant-author.schema.js +1 -1
- package/build/v1/assistants/schemas/assistant-author.schema.js.map +1 -1
- package/build/v1/assistants/schemas/assistant-response.schema.d.ts +2 -2
- package/build/v1/assistants/schemas/catalog-long-response.schema.d.ts +12 -12
- package/build/v1/assistants/schemas/catalog-short-response.schema.d.ts +11 -11
- package/build/v1/assistants/schemas/create-assistant-request.schema.d.ts +1 -1
- package/build/v1/assistants/schemas/create-user-assistant-request.schema.d.ts +1 -1
- package/build/v1/assistants/schemas/update-assistant-request.schema.d.ts +1 -1
- package/build/v1/assistants/schemas/update-user-assistant-request.schema.d.ts +1 -1
- package/build/v1/assistants/schemas/user-assistant-response.schema.d.ts +1 -1
- package/build/v1/assistants/user/commands/create-user-assistant.command.d.ts +2 -2
- package/build/v1/assistants/user/commands/update-user-assistant.command.d.ts +2 -2
- package/build/v1/assistants/user/queries/get-user-assistant.query.d.ts +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/message/commands/create-message.command.d.ts +27 -5
- package/build/v1/message/message.errors.d.ts +1 -0
- package/build/v1/message/message.errors.js +5 -0
- package/build/v1/message/message.errors.js.map +1 -1
- package/build/v1/message/queries/get-message-stream-reg.query.d.ts +13 -2
- package/build/v1/message/queries/get-message-stream-unreg.query.d.ts +13 -2
- package/build/v1/message/schemas/create-message-request.schema.d.ts +1 -1
- package/build/v1/message/schemas/create-message-request.schema.js +1 -1
- package/build/v1/message/schemas/create-message-request.schema.js.map +1 -1
- package/build/v1/message/schemas/index.d.ts +2 -0
- package/build/v1/message/schemas/index.js +11 -1
- package/build/v1/message/schemas/index.js.map +1 -1
- package/build/v1/message/schemas/step-metadata.schema.d.ts +36 -0
- package/build/v1/message/schemas/step-metadata.schema.js +38 -0
- package/build/v1/message/schemas/step-metadata.schema.js.map +1 -0
- package/build/v1/message/schemas/stream-events.schema.d.ts +26 -4
- package/build/v1/message/schemas/stream-events.schema.js +3 -2
- package/build/v1/message/schemas/stream-events.schema.js.map +1 -1
- package/build/v1/shared/access-reason.enum.d.ts +4 -0
- package/build/v1/shared/access-reason.enum.js +9 -0
- package/build/v1/shared/access-reason.enum.js.map +1 -0
- package/build/v1/shared/access.schema.d.ts +6 -0
- package/build/v1/shared/access.schema.js +10 -0
- package/build/v1/shared/access.schema.js.map +1 -0
- package/build/v1/shared/index.d.ts +3 -0
- package/build/v1/shared/index.js +20 -0
- package/build/v1/shared/index.js.map +1 -0
- package/build/v1/shared/visibility.enum.d.ts +11 -0
- package/build/v1/shared/visibility.enum.js +17 -0
- package/build/v1/shared/visibility.enum.js.map +1 -0
- package/build/v1/tool/admin/commands/create-model-tool-binding.command.d.ts +123 -0
- package/build/v1/tool/admin/commands/create-model-tool-binding.command.js +14 -0
- package/build/v1/tool/admin/commands/create-model-tool-binding.command.js.map +1 -0
- package/build/v1/tool/admin/commands/delete-model-tool-binding.command.d.ts +11 -0
- package/build/v1/tool/admin/commands/delete-model-tool-binding.command.js +15 -0
- package/build/v1/tool/admin/commands/delete-model-tool-binding.command.js.map +1 -0
- package/build/v1/tool/admin/commands/delete-tool.command.d.ts +11 -0
- package/build/v1/tool/admin/commands/delete-tool.command.js +15 -0
- package/build/v1/tool/admin/commands/delete-tool.command.js.map +1 -0
- package/build/v1/tool/admin/commands/index.d.ts +5 -0
- package/build/v1/tool/admin/commands/index.js +22 -0
- package/build/v1/tool/admin/commands/index.js.map +1 -0
- package/build/v1/tool/admin/commands/update-model-tool-binding.command.d.ts +122 -0
- package/build/v1/tool/admin/commands/update-model-tool-binding.command.js +14 -0
- package/build/v1/tool/admin/commands/update-model-tool-binding.command.js.map +1 -0
- package/build/v1/tool/admin/commands/update-tool.command.d.ts +40 -0
- package/build/v1/tool/admin/commands/update-tool.command.js +14 -0
- package/build/v1/tool/admin/commands/update-tool.command.js.map +1 -0
- package/build/v1/tool/admin/index.d.ts +2 -0
- package/build/v1/tool/admin/index.js +19 -0
- package/build/v1/tool/admin/index.js.map +1 -0
- package/build/v1/tool/admin/queries/get-model-tool-bindings.query.d.ts +57 -0
- package/build/v1/tool/admin/queries/get-model-tool-bindings.query.js +15 -0
- package/build/v1/tool/admin/queries/get-model-tool-bindings.query.js.map +1 -0
- package/build/v1/tool/admin/queries/get-tools.query.d.ts +32 -0
- package/build/v1/tool/admin/queries/get-tools.query.js +15 -0
- package/build/v1/tool/admin/queries/get-tools.query.js.map +1 -0
- package/build/v1/tool/admin/queries/index.d.ts +2 -0
- package/build/v1/tool/admin/queries/index.js +19 -0
- package/build/v1/tool/admin/queries/index.js.map +1 -0
- package/build/v1/tool/index.d.ts +6 -0
- package/build/v1/tool/index.js +23 -0
- package/build/v1/tool/index.js.map +1 -0
- package/build/v1/tool/public/index.d.ts +1 -0
- package/build/v1/tool/public/index.js +18 -0
- package/build/v1/tool/public/index.js.map +1 -0
- package/build/v1/tool/public/queries/get-tool-availability.query.d.ts +73 -0
- package/build/v1/tool/public/queries/get-tool-availability.query.js +15 -0
- package/build/v1/tool/public/queries/get-tool-availability.query.js.map +1 -0
- package/build/v1/tool/public/queries/get-tools.query.d.ts +28 -0
- package/build/v1/tool/public/queries/get-tools.query.js +15 -0
- package/build/v1/tool/public/queries/get-tools.query.js.map +1 -0
- package/build/v1/tool/public/queries/index.d.ts +2 -0
- package/build/v1/tool/public/queries/index.js +19 -0
- package/build/v1/tool/public/queries/index.js.map +1 -0
- package/build/v1/tool/schemas/index.d.ts +2 -0
- package/build/v1/tool/schemas/index.js +19 -0
- package/build/v1/tool/schemas/index.js.map +1 -0
- package/build/v1/tool/schemas/tool.enums.d.ts +31 -0
- package/build/v1/tool/schemas/tool.enums.js +41 -0
- package/build/v1/tool/schemas/tool.enums.js.map +1 -0
- package/build/v1/tool/schemas/tool.schema.d.ts +803 -0
- package/build/v1/tool/schemas/tool.schema.js +199 -0
- package/build/v1/tool/schemas/tool.schema.js.map +1 -0
- package/build/v1/tool/tool.errors.d.ts +25 -0
- package/build/v1/tool/tool.errors.js +114 -0
- package/build/v1/tool/tool.errors.js.map +1 -0
- package/build/v1/tool/unreg/index.d.ts +1 -0
- package/build/v1/tool/unreg/index.js +18 -0
- package/build/v1/tool/unreg/index.js.map +1 -0
- package/build/v1/tool/unreg/queries/get-tool-availability-unreg.query.d.ts +73 -0
- package/build/v1/tool/unreg/queries/get-tool-availability-unreg.query.js +15 -0
- package/build/v1/tool/unreg/queries/get-tool-availability-unreg.query.js.map +1 -0
- package/build/v1/tool/unreg/queries/get-tools-unreg.query.d.ts +28 -0
- package/build/v1/tool/unreg/queries/get-tools-unreg.query.js +15 -0
- package/build/v1/tool/unreg/queries/get-tools-unreg.query.js.map +1 -0
- package/build/v1/tool/unreg/queries/index.d.ts +2 -0
- package/build/v1/tool/unreg/queries/index.js +19 -0
- package/build/v1/tool/unreg/queries/index.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../v1/tool/admin/queries/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,kEAAgD"}
|
|
@@ -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("./tool.errors"), exports);
|
|
18
|
+
__exportStar(require("./schemas"), exports);
|
|
19
|
+
__exportStar(require("./admin/commands"), exports);
|
|
20
|
+
__exportStar(require("./admin/queries"), exports);
|
|
21
|
+
__exportStar(require("./public/queries"), exports);
|
|
22
|
+
__exportStar(require("./unreg/queries"), exports);
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../v1/tool/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,4CAA0B;AAC1B,mDAAiC;AACjC,kDAAgC;AAChC,mDAAiC;AACjC,kDAAgC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './queries';
|
|
@@ -0,0 +1,18 @@
|
|
|
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("./queries"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/tool/public/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpMethod } from '../../../../shared/http-method';
|
|
3
|
+
export declare namespace PublicToolGetAvailabilityQuery {
|
|
4
|
+
const Request: z.ZodVoid;
|
|
5
|
+
const Response: z.ZodObject<{
|
|
6
|
+
tools: z.ZodArray<z.ZodObject<{
|
|
7
|
+
tool: z.ZodObject<{
|
|
8
|
+
uuid: z.ZodString;
|
|
9
|
+
status: z.ZodEnum<typeof import("../../schemas").ToolStatus>;
|
|
10
|
+
title: z.ZodString;
|
|
11
|
+
order: z.ZodNumber;
|
|
12
|
+
description: z.ZodString;
|
|
13
|
+
tags: z.ZodArray<z.ZodString>;
|
|
14
|
+
visibility: z.ZodEnum<typeof import("../../..").Visibility>;
|
|
15
|
+
icon: z.ZodNullable<z.ZodString>;
|
|
16
|
+
key: z.ZodString;
|
|
17
|
+
kind: z.ZodEnum<typeof import("../../schemas").ToolKind>;
|
|
18
|
+
definitionSource: z.ZodEnum<typeof import("../../schemas").ToolDefinitionSource>;
|
|
19
|
+
executorType: z.ZodEnum<typeof import("../../schemas").ToolExecutorType>;
|
|
20
|
+
riskLevel: z.ZodEnum<typeof import("../../schemas").ToolRiskLevel>;
|
|
21
|
+
uiConfig: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>>;
|
|
22
|
+
access: z.ZodBoolean;
|
|
23
|
+
accessReason: z.ZodNullable<z.ZodEnum<typeof import("../../..").AccessReason>>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
providers: z.ZodArray<z.ZodObject<{
|
|
26
|
+
uuid: z.ZodString;
|
|
27
|
+
title: z.ZodString;
|
|
28
|
+
order: z.ZodNumber;
|
|
29
|
+
icon: z.ZodString;
|
|
30
|
+
models: z.ZodArray<z.ZodObject<{
|
|
31
|
+
type: z.ZodEnum<typeof import("../../..").ModelType>;
|
|
32
|
+
uuid: z.ZodString;
|
|
33
|
+
title: z.ZodString;
|
|
34
|
+
order: z.ZodNumber;
|
|
35
|
+
description: z.ZodString;
|
|
36
|
+
marks: z.ZodArray<z.ZodEnum<typeof import("../../..").ModelMark>>;
|
|
37
|
+
icon: z.ZodString;
|
|
38
|
+
price: z.ZodNumber;
|
|
39
|
+
speed: z.ZodNumber;
|
|
40
|
+
bestFor: z.ZodArray<z.ZodString>;
|
|
41
|
+
usageExamples: z.ZodArray<z.ZodString>;
|
|
42
|
+
inputModalities: z.ZodArray<z.ZodEnum<typeof import("../../..").Modality>>;
|
|
43
|
+
outputModalities: z.ZodArray<z.ZodEnum<typeof import("../../..").Modality>>;
|
|
44
|
+
modelRoles: z.ZodArray<z.ZodEnum<typeof import("../../..").ModelRole>>;
|
|
45
|
+
plugins: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
46
|
+
id: z.ZodLiteral<import("../../..").PluginId.WEB>;
|
|
47
|
+
price: z.ZodNumber;
|
|
48
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
49
|
+
id: z.ZodLiteral<import("../../..").PluginId.REASONING>;
|
|
50
|
+
default: z.ZodEnum<typeof import("../../..").ReasoningEffort>;
|
|
51
|
+
supportedValues: z.ZodArray<z.ZodObject<{
|
|
52
|
+
value: z.ZodEnum<typeof import("../../..").ReasoningEffort>;
|
|
53
|
+
price: z.ZodNumber;
|
|
54
|
+
}, z.core.$strip>>;
|
|
55
|
+
}, z.core.$strip>], "id">>;
|
|
56
|
+
settings: z.ZodObject<{
|
|
57
|
+
attachments: z.ZodOptional<z.ZodObject<{
|
|
58
|
+
imagePrice: z.ZodNumber;
|
|
59
|
+
filePrice: z.ZodNumber;
|
|
60
|
+
maxImages: z.ZodNumber;
|
|
61
|
+
maxFiles: z.ZodNumber;
|
|
62
|
+
}, z.core.$strip>>;
|
|
63
|
+
}, z.core.$strip>;
|
|
64
|
+
access: z.ZodBoolean;
|
|
65
|
+
accessReason: z.ZodNullable<z.ZodEnum<typeof import("../../..").AccessReason>>;
|
|
66
|
+
}, z.core.$strip>>;
|
|
67
|
+
}, z.core.$strip>>;
|
|
68
|
+
}, z.core.$strip>>;
|
|
69
|
+
}, z.core.$strip>;
|
|
70
|
+
const URL: "/api/v1/tools/availability";
|
|
71
|
+
const METHOD = HttpMethod.GET;
|
|
72
|
+
type ResponseType = z.infer<typeof Response>;
|
|
73
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PublicToolGetAvailabilityQuery = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const schemas_1 = require("../../schemas");
|
|
6
|
+
const rest_api_1 = require("../../../../rest-api");
|
|
7
|
+
const http_method_1 = require("../../../../shared/http-method");
|
|
8
|
+
var PublicToolGetAvailabilityQuery;
|
|
9
|
+
(function (PublicToolGetAvailabilityQuery) {
|
|
10
|
+
PublicToolGetAvailabilityQuery.Request = zod_1.z.void();
|
|
11
|
+
PublicToolGetAvailabilityQuery.Response = schemas_1.ToolAvailabilityWithAccessResponseSchema;
|
|
12
|
+
PublicToolGetAvailabilityQuery.URL = rest_api_1.REST_API.V1.TOOLS.PUBLIC.GET_AVAILABILITY;
|
|
13
|
+
PublicToolGetAvailabilityQuery.METHOD = http_method_1.HttpMethod.GET;
|
|
14
|
+
})(PublicToolGetAvailabilityQuery || (exports.PublicToolGetAvailabilityQuery = PublicToolGetAvailabilityQuery = {}));
|
|
15
|
+
//# sourceMappingURL=get-tool-availability.query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-tool-availability.query.js","sourceRoot":"","sources":["../../../../../v1/tool/public/queries/get-tool-availability.query.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,2CAAyE;AACzE,mDAAgD;AAChD,gEAA4D;AAE5D,IAAiB,8BAA8B,CAM9C;AAND,WAAiB,8BAA8B;IAC9B,sCAAO,GAAG,OAAC,CAAC,IAAI,EAAE,CAAC;IACnB,uCAAQ,GAAG,kDAAwC,CAAC;IACpD,kCAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,gBAAgB,CAAC;IAChD,qCAAM,GAAG,wBAAU,CAAC,GAAG,CAAC;AAEzC,CAAC,EANgB,8BAA8B,8CAA9B,8BAA8B,QAM9C"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpMethod } from '../../../../shared/http-method';
|
|
3
|
+
export declare namespace PublicToolGetToolsQuery {
|
|
4
|
+
const Request: z.ZodVoid;
|
|
5
|
+
const Response: z.ZodObject<{
|
|
6
|
+
tools: z.ZodArray<z.ZodObject<{
|
|
7
|
+
uuid: z.ZodString;
|
|
8
|
+
status: z.ZodEnum<typeof import("../../schemas").ToolStatus>;
|
|
9
|
+
title: z.ZodString;
|
|
10
|
+
order: z.ZodNumber;
|
|
11
|
+
description: z.ZodString;
|
|
12
|
+
tags: z.ZodArray<z.ZodString>;
|
|
13
|
+
visibility: z.ZodEnum<typeof import("../../..").Visibility>;
|
|
14
|
+
icon: z.ZodNullable<z.ZodString>;
|
|
15
|
+
key: z.ZodString;
|
|
16
|
+
kind: z.ZodEnum<typeof import("../../schemas").ToolKind>;
|
|
17
|
+
definitionSource: z.ZodEnum<typeof import("../../schemas").ToolDefinitionSource>;
|
|
18
|
+
executorType: z.ZodEnum<typeof import("../../schemas").ToolExecutorType>;
|
|
19
|
+
riskLevel: z.ZodEnum<typeof import("../../schemas").ToolRiskLevel>;
|
|
20
|
+
uiConfig: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>>;
|
|
21
|
+
access: z.ZodBoolean;
|
|
22
|
+
accessReason: z.ZodNullable<z.ZodEnum<typeof import("../../..").AccessReason>>;
|
|
23
|
+
}, z.core.$strip>>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
const URL: "/api/v1/tools/";
|
|
26
|
+
const METHOD = HttpMethod.GET;
|
|
27
|
+
type ResponseType = z.infer<typeof Response>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PublicToolGetToolsQuery = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const schemas_1 = require("../../schemas");
|
|
6
|
+
const rest_api_1 = require("../../../../rest-api");
|
|
7
|
+
const http_method_1 = require("../../../../shared/http-method");
|
|
8
|
+
var PublicToolGetToolsQuery;
|
|
9
|
+
(function (PublicToolGetToolsQuery) {
|
|
10
|
+
PublicToolGetToolsQuery.Request = zod_1.z.void();
|
|
11
|
+
PublicToolGetToolsQuery.Response = schemas_1.PublicToolWithAccessResponseListSchema;
|
|
12
|
+
PublicToolGetToolsQuery.URL = rest_api_1.REST_API.V1.TOOLS.PUBLIC.GET_ALL;
|
|
13
|
+
PublicToolGetToolsQuery.METHOD = http_method_1.HttpMethod.GET;
|
|
14
|
+
})(PublicToolGetToolsQuery || (exports.PublicToolGetToolsQuery = PublicToolGetToolsQuery = {}));
|
|
15
|
+
//# sourceMappingURL=get-tools.query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-tools.query.js","sourceRoot":"","sources":["../../../../../v1/tool/public/queries/get-tools.query.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,2CAAuE;AACvE,mDAAgD;AAChD,gEAA4D;AAE5D,IAAiB,uBAAuB,CAMvC;AAND,WAAiB,uBAAuB;IACvB,+BAAO,GAAG,OAAC,CAAC,IAAI,EAAE,CAAC;IACnB,gCAAQ,GAAG,gDAAsC,CAAC;IAClD,2BAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC;IACvC,8BAAM,GAAG,wBAAU,CAAC,GAAG,CAAC;AAEzC,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-tools.query"), exports);
|
|
18
|
+
__exportStar(require("./get-tool-availability.query"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../v1/tool/public/queries/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,gEAA8C"}
|
|
@@ -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("./tool.enums"), exports);
|
|
18
|
+
__exportStar(require("./tool.schema"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/tool/schemas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,gDAA8B"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export declare enum ToolStatus {
|
|
2
|
+
ACTIVE = "active",
|
|
3
|
+
HIDDEN = "hidden",
|
|
4
|
+
DELETED = "deleted"
|
|
5
|
+
}
|
|
6
|
+
export declare enum ToolKind {
|
|
7
|
+
NATIVE = "native",
|
|
8
|
+
GATEWAY = "gateway",
|
|
9
|
+
WORKFLOW = "workflow"
|
|
10
|
+
}
|
|
11
|
+
export declare enum ToolDefinitionSource {
|
|
12
|
+
CODE = "code",
|
|
13
|
+
DB = "db"
|
|
14
|
+
}
|
|
15
|
+
export declare enum ToolExecutorType {
|
|
16
|
+
INTERNAL_HANDLER = "internal_handler",
|
|
17
|
+
GATEWAY = "gateway",
|
|
18
|
+
WORKFLOW = "workflow",
|
|
19
|
+
EXTERNAL_ACTION = "external_action"
|
|
20
|
+
}
|
|
21
|
+
export declare enum ToolRiskLevel {
|
|
22
|
+
READ = "read",
|
|
23
|
+
WRITE = "write",
|
|
24
|
+
SENSITIVE = "sensitive",
|
|
25
|
+
DESTRUCTIVE = "destructive"
|
|
26
|
+
}
|
|
27
|
+
export declare enum ToolBindingStatus {
|
|
28
|
+
ACTIVE = "active",
|
|
29
|
+
DISABLED = "disabled",
|
|
30
|
+
DELETED = "deleted"
|
|
31
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ToolBindingStatus = exports.ToolRiskLevel = exports.ToolExecutorType = exports.ToolDefinitionSource = exports.ToolKind = exports.ToolStatus = void 0;
|
|
4
|
+
var ToolStatus;
|
|
5
|
+
(function (ToolStatus) {
|
|
6
|
+
ToolStatus["ACTIVE"] = "active";
|
|
7
|
+
ToolStatus["HIDDEN"] = "hidden";
|
|
8
|
+
ToolStatus["DELETED"] = "deleted";
|
|
9
|
+
})(ToolStatus || (exports.ToolStatus = ToolStatus = {}));
|
|
10
|
+
var ToolKind;
|
|
11
|
+
(function (ToolKind) {
|
|
12
|
+
ToolKind["NATIVE"] = "native";
|
|
13
|
+
ToolKind["GATEWAY"] = "gateway";
|
|
14
|
+
ToolKind["WORKFLOW"] = "workflow";
|
|
15
|
+
})(ToolKind || (exports.ToolKind = ToolKind = {}));
|
|
16
|
+
var ToolDefinitionSource;
|
|
17
|
+
(function (ToolDefinitionSource) {
|
|
18
|
+
ToolDefinitionSource["CODE"] = "code";
|
|
19
|
+
ToolDefinitionSource["DB"] = "db";
|
|
20
|
+
})(ToolDefinitionSource || (exports.ToolDefinitionSource = ToolDefinitionSource = {}));
|
|
21
|
+
var ToolExecutorType;
|
|
22
|
+
(function (ToolExecutorType) {
|
|
23
|
+
ToolExecutorType["INTERNAL_HANDLER"] = "internal_handler";
|
|
24
|
+
ToolExecutorType["GATEWAY"] = "gateway";
|
|
25
|
+
ToolExecutorType["WORKFLOW"] = "workflow";
|
|
26
|
+
ToolExecutorType["EXTERNAL_ACTION"] = "external_action";
|
|
27
|
+
})(ToolExecutorType || (exports.ToolExecutorType = ToolExecutorType = {}));
|
|
28
|
+
var ToolRiskLevel;
|
|
29
|
+
(function (ToolRiskLevel) {
|
|
30
|
+
ToolRiskLevel["READ"] = "read";
|
|
31
|
+
ToolRiskLevel["WRITE"] = "write";
|
|
32
|
+
ToolRiskLevel["SENSITIVE"] = "sensitive";
|
|
33
|
+
ToolRiskLevel["DESTRUCTIVE"] = "destructive";
|
|
34
|
+
})(ToolRiskLevel || (exports.ToolRiskLevel = ToolRiskLevel = {}));
|
|
35
|
+
var ToolBindingStatus;
|
|
36
|
+
(function (ToolBindingStatus) {
|
|
37
|
+
ToolBindingStatus["ACTIVE"] = "active";
|
|
38
|
+
ToolBindingStatus["DISABLED"] = "disabled";
|
|
39
|
+
ToolBindingStatus["DELETED"] = "deleted";
|
|
40
|
+
})(ToolBindingStatus || (exports.ToolBindingStatus = ToolBindingStatus = {}));
|
|
41
|
+
//# sourceMappingURL=tool.enums.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool.enums.js","sourceRoot":"","sources":["../../../../v1/tool/schemas/tool.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,UAIX;AAJD,WAAY,UAAU;IAClB,+BAAiB,CAAA;IACjB,+BAAiB,CAAA;IACjB,iCAAmB,CAAA;AACvB,CAAC,EAJW,UAAU,0BAAV,UAAU,QAIrB;AAED,IAAY,QAIX;AAJD,WAAY,QAAQ;IAChB,6BAAiB,CAAA;IACjB,+BAAmB,CAAA;IACnB,iCAAqB,CAAA;AACzB,CAAC,EAJW,QAAQ,wBAAR,QAAQ,QAInB;AAED,IAAY,oBAGX;AAHD,WAAY,oBAAoB;IAC5B,qCAAa,CAAA;IACb,iCAAS,CAAA;AACb,CAAC,EAHW,oBAAoB,oCAApB,oBAAoB,QAG/B;AAED,IAAY,gBAKX;AALD,WAAY,gBAAgB;IACxB,yDAAqC,CAAA;IACrC,uCAAmB,CAAA;IACnB,yCAAqB,CAAA;IACrB,uDAAmC,CAAA;AACvC,CAAC,EALW,gBAAgB,gCAAhB,gBAAgB,QAK3B;AAED,IAAY,aAKX;AALD,WAAY,aAAa;IACrB,8BAAa,CAAA;IACb,gCAAe,CAAA;IACf,wCAAuB,CAAA;IACvB,4CAA2B,CAAA;AAC/B,CAAC,EALW,aAAa,6BAAb,aAAa,QAKxB;AAED,IAAY,iBAIX;AAJD,WAAY,iBAAiB;IACzB,sCAAiB,CAAA;IACjB,0CAAqB,CAAA;IACrB,wCAAmB,CAAA;AACvB,CAAC,EAJW,iBAAiB,iCAAjB,iBAAiB,QAI5B"}
|