@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,123 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpMethod } from '../../../../shared/http-method';
|
|
3
|
+
export declare namespace AdminModelToolBindingCreateCommand {
|
|
4
|
+
const Request: z.ZodObject<{
|
|
5
|
+
toolUuid: z.ZodString;
|
|
6
|
+
status: z.ZodDefault<z.ZodEnum<typeof import("../../schemas").ToolBindingStatus>>;
|
|
7
|
+
order: z.ZodDefault<z.ZodNumber>;
|
|
8
|
+
isDefault: z.ZodDefault<z.ZodBoolean>;
|
|
9
|
+
settingsConfig: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
10
|
+
title: z.ZodString;
|
|
11
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
12
|
+
inputType: z.ZodEnum<typeof import("../../..").SettingInputType>;
|
|
13
|
+
defaultOptionId: z.ZodString;
|
|
14
|
+
maxSelections: z.ZodOptional<z.ZodNumber>;
|
|
15
|
+
key: z.ZodLiteral<import("../../..").SettingKey.STYLE>;
|
|
16
|
+
options: z.ZodArray<z.ZodObject<{
|
|
17
|
+
id: z.ZodString;
|
|
18
|
+
title: z.ZodString;
|
|
19
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
20
|
+
priceModifier: z.ZodDefault<z.ZodNumber>;
|
|
21
|
+
providerValue: z.ZodOptional<z.ZodString>;
|
|
22
|
+
promptSuffix: z.ZodOptional<z.ZodString>;
|
|
23
|
+
}, z.core.$strip>>;
|
|
24
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
25
|
+
title: z.ZodString;
|
|
26
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
27
|
+
inputType: z.ZodEnum<typeof import("../../..").SettingInputType>;
|
|
28
|
+
defaultOptionId: z.ZodString;
|
|
29
|
+
maxSelections: z.ZodOptional<z.ZodNumber>;
|
|
30
|
+
key: z.ZodLiteral<import("../../..").SettingKey.MAX_RESULTS>;
|
|
31
|
+
options: z.ZodArray<z.ZodObject<{
|
|
32
|
+
id: z.ZodString;
|
|
33
|
+
title: z.ZodString;
|
|
34
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
35
|
+
priceModifier: z.ZodDefault<z.ZodNumber>;
|
|
36
|
+
providerValue: z.ZodOptional<z.ZodString>;
|
|
37
|
+
promptSuffix: z.ZodOptional<z.ZodString>;
|
|
38
|
+
}, z.core.$strip>>;
|
|
39
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
40
|
+
title: z.ZodString;
|
|
41
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
42
|
+
inputType: z.ZodEnum<typeof import("../../..").SettingInputType>;
|
|
43
|
+
defaultOptionId: z.ZodString;
|
|
44
|
+
maxSelections: z.ZodOptional<z.ZodNumber>;
|
|
45
|
+
key: z.ZodLiteral<import("../../..").SettingKey.ASPECT_RATIO>;
|
|
46
|
+
options: z.ZodArray<z.ZodObject<{
|
|
47
|
+
id: z.ZodString;
|
|
48
|
+
title: z.ZodString;
|
|
49
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
50
|
+
priceModifier: z.ZodDefault<z.ZodNumber>;
|
|
51
|
+
promptSuffix: z.ZodOptional<z.ZodString>;
|
|
52
|
+
providerValue: z.ZodString;
|
|
53
|
+
}, z.core.$strip>>;
|
|
54
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
55
|
+
title: z.ZodString;
|
|
56
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
57
|
+
inputType: z.ZodEnum<typeof import("../../..").SettingInputType>;
|
|
58
|
+
defaultOptionId: z.ZodString;
|
|
59
|
+
maxSelections: z.ZodOptional<z.ZodNumber>;
|
|
60
|
+
key: z.ZodLiteral<import("../../..").SettingKey.RESOLUTION>;
|
|
61
|
+
options: z.ZodArray<z.ZodObject<{
|
|
62
|
+
id: z.ZodString;
|
|
63
|
+
title: z.ZodString;
|
|
64
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
65
|
+
priceModifier: z.ZodDefault<z.ZodNumber>;
|
|
66
|
+
promptSuffix: z.ZodOptional<z.ZodString>;
|
|
67
|
+
providerValue: z.ZodString;
|
|
68
|
+
}, z.core.$strip>>;
|
|
69
|
+
}, z.core.$strip>], "key">>>;
|
|
70
|
+
runtimeOverrides: z.ZodDefault<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]>>]>>>;
|
|
71
|
+
}, z.core.$strip>;
|
|
72
|
+
const Response: z.ZodObject<{
|
|
73
|
+
uuid: z.ZodString;
|
|
74
|
+
modelUuid: z.ZodString;
|
|
75
|
+
toolUuid: z.ZodString;
|
|
76
|
+
status: z.ZodEnum<typeof import("../../schemas").ToolBindingStatus>;
|
|
77
|
+
order: z.ZodNumber;
|
|
78
|
+
isDefault: z.ZodBoolean;
|
|
79
|
+
settingsConfig: z.ZodArray<z.ZodObject<{
|
|
80
|
+
key: z.ZodEnum<typeof import("../../..").SettingKey>;
|
|
81
|
+
title: z.ZodString;
|
|
82
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
83
|
+
inputType: z.ZodEnum<typeof import("../../..").SettingInputType>;
|
|
84
|
+
defaultOptionId: z.ZodString;
|
|
85
|
+
maxSelections: z.ZodOptional<z.ZodNumber>;
|
|
86
|
+
options: z.ZodArray<z.ZodObject<{
|
|
87
|
+
title: z.ZodString;
|
|
88
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
89
|
+
id: z.ZodString;
|
|
90
|
+
priceModifier: z.ZodDefault<z.ZodNumber>;
|
|
91
|
+
}, z.core.$strip>>;
|
|
92
|
+
}, z.core.$strip>>;
|
|
93
|
+
runtimeOverrides: 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]>>]>>;
|
|
94
|
+
createdAt: z.ZodString;
|
|
95
|
+
updatedAt: z.ZodString;
|
|
96
|
+
tool: z.ZodObject<{
|
|
97
|
+
uuid: z.ZodString;
|
|
98
|
+
key: z.ZodString;
|
|
99
|
+
title: z.ZodString;
|
|
100
|
+
description: z.ZodString;
|
|
101
|
+
icon: z.ZodNullable<z.ZodString>;
|
|
102
|
+
status: z.ZodEnum<typeof import("../../schemas").ToolStatus>;
|
|
103
|
+
kind: z.ZodEnum<typeof import("../../schemas").ToolKind>;
|
|
104
|
+
definitionSource: z.ZodEnum<typeof import("../../schemas").ToolDefinitionSource>;
|
|
105
|
+
executorType: z.ZodEnum<typeof import("../../schemas").ToolExecutorType>;
|
|
106
|
+
functionName: z.ZodString;
|
|
107
|
+
handlerKey: z.ZodNullable<z.ZodString>;
|
|
108
|
+
riskLevel: z.ZodEnum<typeof import("../../schemas").ToolRiskLevel>;
|
|
109
|
+
visibility: z.ZodEnum<typeof import("../../..").Visibility>;
|
|
110
|
+
order: z.ZodNumber;
|
|
111
|
+
tags: z.ZodArray<z.ZodString>;
|
|
112
|
+
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]>>]>>;
|
|
113
|
+
runtimeConfig: 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]>>]>>;
|
|
114
|
+
isProtected: z.ZodBoolean;
|
|
115
|
+
createdAt: z.ZodString;
|
|
116
|
+
updatedAt: z.ZodString;
|
|
117
|
+
}, z.core.$strip>;
|
|
118
|
+
}, z.core.$strip>;
|
|
119
|
+
const URL: (modelUuid: string) => string;
|
|
120
|
+
const METHOD = HttpMethod.POST;
|
|
121
|
+
type RequestType = z.infer<typeof Request>;
|
|
122
|
+
type ResponseType = z.infer<typeof Response>;
|
|
123
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdminModelToolBindingCreateCommand = void 0;
|
|
4
|
+
const schemas_1 = require("../../schemas");
|
|
5
|
+
const rest_api_1 = require("../../../../rest-api");
|
|
6
|
+
const http_method_1 = require("../../../../shared/http-method");
|
|
7
|
+
var AdminModelToolBindingCreateCommand;
|
|
8
|
+
(function (AdminModelToolBindingCreateCommand) {
|
|
9
|
+
AdminModelToolBindingCreateCommand.Request = schemas_1.CreateModelToolBindingRequestSchema;
|
|
10
|
+
AdminModelToolBindingCreateCommand.Response = schemas_1.ModelToolBindingSchema;
|
|
11
|
+
AdminModelToolBindingCreateCommand.URL = (modelUuid) => rest_api_1.REST_API.V1.TOOLS.ADMIN.MODEL_BINDINGS.CREATE(modelUuid);
|
|
12
|
+
AdminModelToolBindingCreateCommand.METHOD = http_method_1.HttpMethod.POST;
|
|
13
|
+
})(AdminModelToolBindingCreateCommand || (exports.AdminModelToolBindingCreateCommand = AdminModelToolBindingCreateCommand = {}));
|
|
14
|
+
//# sourceMappingURL=create-model-tool-binding.command.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-model-tool-binding.command.js","sourceRoot":"","sources":["../../../../../v1/tool/admin/commands/create-model-tool-binding.command.ts"],"names":[],"mappings":";;;AACA,2CAA4F;AAC5F,mDAAgD;AAChD,gEAA4D;AAE5D,IAAiB,kCAAkC,CAOlD;AAPD,WAAiB,kCAAkC;IAClC,0CAAO,GAAG,6CAAmC,CAAC;IAC9C,2CAAQ,GAAG,gCAAsB,CAAC;IAClC,sCAAG,GAAG,CAAC,SAAiB,EAAE,EAAE,CAAC,mBAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IACtF,yCAAM,GAAG,wBAAU,CAAC,IAAI,CAAC;AAG1C,CAAC,EAPgB,kCAAkC,kDAAlC,kCAAkC,QAOlD"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpMethod } from '../../../../shared/http-method';
|
|
3
|
+
export declare namespace AdminModelToolBindingDeleteCommand {
|
|
4
|
+
const Request: z.ZodVoid;
|
|
5
|
+
const Response: z.ZodObject<{
|
|
6
|
+
uuid: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
const URL: (modelUuid: string, bindingUuid: string) => string;
|
|
9
|
+
const METHOD = HttpMethod.DELETE;
|
|
10
|
+
type ResponseType = z.infer<typeof Response>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdminModelToolBindingDeleteCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const rest_api_1 = require("../../../../rest-api");
|
|
6
|
+
const http_method_1 = require("../../../../shared/http-method");
|
|
7
|
+
const schemas_1 = require("../../schemas");
|
|
8
|
+
var AdminModelToolBindingDeleteCommand;
|
|
9
|
+
(function (AdminModelToolBindingDeleteCommand) {
|
|
10
|
+
AdminModelToolBindingDeleteCommand.Request = zod_1.z.void();
|
|
11
|
+
AdminModelToolBindingDeleteCommand.Response = schemas_1.DeleteModelToolBindingResponseSchema;
|
|
12
|
+
AdminModelToolBindingDeleteCommand.URL = (modelUuid, bindingUuid) => rest_api_1.REST_API.V1.TOOLS.ADMIN.MODEL_BINDINGS.DELETE(modelUuid, bindingUuid);
|
|
13
|
+
AdminModelToolBindingDeleteCommand.METHOD = http_method_1.HttpMethod.DELETE;
|
|
14
|
+
})(AdminModelToolBindingDeleteCommand || (exports.AdminModelToolBindingDeleteCommand = AdminModelToolBindingDeleteCommand = {}));
|
|
15
|
+
//# sourceMappingURL=delete-model-tool-binding.command.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-model-tool-binding.command.js","sourceRoot":"","sources":["../../../../../v1/tool/admin/commands/delete-model-tool-binding.command.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,mDAAgD;AAChD,gEAA4D;AAC5D,2CAAqE;AAErE,IAAiB,kCAAkC,CAOlD;AAPD,WAAiB,kCAAkC;IAClC,0CAAO,GAAG,OAAC,CAAC,IAAI,EAAE,CAAC;IACnB,2CAAQ,GAAG,8CAAoC,CAAC;IAChD,sCAAG,GAAG,CAAC,SAAiB,EAAE,WAAmB,EAAE,EAAE,CAC1D,mBAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;IAC7D,yCAAM,GAAG,wBAAU,CAAC,MAAM,CAAC;AAE5C,CAAC,EAPgB,kCAAkC,kDAAlC,kCAAkC,QAOlD"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpMethod } from '../../../../shared/http-method';
|
|
3
|
+
export declare namespace AdminToolDeleteCommand {
|
|
4
|
+
const Request: z.ZodVoid;
|
|
5
|
+
const Response: z.ZodObject<{
|
|
6
|
+
uuid: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
const URL: (uuid: string) => string;
|
|
9
|
+
const METHOD = HttpMethod.DELETE;
|
|
10
|
+
type ResponseType = z.infer<typeof Response>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdminToolDeleteCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const rest_api_1 = require("../../../../rest-api");
|
|
6
|
+
const http_method_1 = require("../../../../shared/http-method");
|
|
7
|
+
const schemas_1 = require("../../schemas");
|
|
8
|
+
var AdminToolDeleteCommand;
|
|
9
|
+
(function (AdminToolDeleteCommand) {
|
|
10
|
+
AdminToolDeleteCommand.Request = zod_1.z.void();
|
|
11
|
+
AdminToolDeleteCommand.Response = schemas_1.DeleteToolResponseSchema;
|
|
12
|
+
AdminToolDeleteCommand.URL = (uuid) => rest_api_1.REST_API.V1.TOOLS.ADMIN.DELETE(uuid);
|
|
13
|
+
AdminToolDeleteCommand.METHOD = http_method_1.HttpMethod.DELETE;
|
|
14
|
+
})(AdminToolDeleteCommand || (exports.AdminToolDeleteCommand = AdminToolDeleteCommand = {}));
|
|
15
|
+
//# sourceMappingURL=delete-tool.command.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-tool.command.js","sourceRoot":"","sources":["../../../../../v1/tool/admin/commands/delete-tool.command.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,mDAAgD;AAChD,gEAA4D;AAC5D,2CAAyD;AAEzD,IAAiB,sBAAsB,CAMtC;AAND,WAAiB,sBAAsB;IACtB,8BAAO,GAAG,OAAC,CAAC,IAAI,EAAE,CAAC;IACnB,+BAAQ,GAAG,kCAAwB,CAAC;IACpC,0BAAG,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,mBAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAC7D,6BAAM,GAAG,wBAAU,CAAC,MAAM,CAAC;AAE5C,CAAC,EANgB,sBAAsB,sCAAtB,sBAAsB,QAMtC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
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("./update-tool.command"), exports);
|
|
18
|
+
__exportStar(require("./delete-tool.command"), exports);
|
|
19
|
+
__exportStar(require("./create-model-tool-binding.command"), exports);
|
|
20
|
+
__exportStar(require("./update-model-tool-binding.command"), exports);
|
|
21
|
+
__exportStar(require("./delete-model-tool-binding.command"), exports);
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../v1/tool/admin/commands/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,wDAAsC;AACtC,sEAAoD;AACpD,sEAAoD;AACpD,sEAAoD"}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpMethod } from '../../../../shared/http-method';
|
|
3
|
+
export declare namespace AdminModelToolBindingUpdateCommand {
|
|
4
|
+
const Request: z.ZodObject<{
|
|
5
|
+
status: z.ZodOptional<z.ZodEnum<typeof import("../../schemas").ToolBindingStatus>>;
|
|
6
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
8
|
+
settingsConfig: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
9
|
+
title: z.ZodString;
|
|
10
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
11
|
+
inputType: z.ZodEnum<typeof import("../../..").SettingInputType>;
|
|
12
|
+
defaultOptionId: z.ZodString;
|
|
13
|
+
maxSelections: z.ZodOptional<z.ZodNumber>;
|
|
14
|
+
key: z.ZodLiteral<import("../../..").SettingKey.STYLE>;
|
|
15
|
+
options: z.ZodArray<z.ZodObject<{
|
|
16
|
+
id: z.ZodString;
|
|
17
|
+
title: z.ZodString;
|
|
18
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
19
|
+
priceModifier: z.ZodDefault<z.ZodNumber>;
|
|
20
|
+
providerValue: z.ZodOptional<z.ZodString>;
|
|
21
|
+
promptSuffix: z.ZodOptional<z.ZodString>;
|
|
22
|
+
}, z.core.$strip>>;
|
|
23
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
24
|
+
title: z.ZodString;
|
|
25
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
26
|
+
inputType: z.ZodEnum<typeof import("../../..").SettingInputType>;
|
|
27
|
+
defaultOptionId: z.ZodString;
|
|
28
|
+
maxSelections: z.ZodOptional<z.ZodNumber>;
|
|
29
|
+
key: z.ZodLiteral<import("../../..").SettingKey.MAX_RESULTS>;
|
|
30
|
+
options: z.ZodArray<z.ZodObject<{
|
|
31
|
+
id: z.ZodString;
|
|
32
|
+
title: z.ZodString;
|
|
33
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
34
|
+
priceModifier: z.ZodDefault<z.ZodNumber>;
|
|
35
|
+
providerValue: z.ZodOptional<z.ZodString>;
|
|
36
|
+
promptSuffix: z.ZodOptional<z.ZodString>;
|
|
37
|
+
}, z.core.$strip>>;
|
|
38
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
39
|
+
title: z.ZodString;
|
|
40
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
41
|
+
inputType: z.ZodEnum<typeof import("../../..").SettingInputType>;
|
|
42
|
+
defaultOptionId: z.ZodString;
|
|
43
|
+
maxSelections: z.ZodOptional<z.ZodNumber>;
|
|
44
|
+
key: z.ZodLiteral<import("../../..").SettingKey.ASPECT_RATIO>;
|
|
45
|
+
options: z.ZodArray<z.ZodObject<{
|
|
46
|
+
id: z.ZodString;
|
|
47
|
+
title: z.ZodString;
|
|
48
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
49
|
+
priceModifier: z.ZodDefault<z.ZodNumber>;
|
|
50
|
+
promptSuffix: z.ZodOptional<z.ZodString>;
|
|
51
|
+
providerValue: z.ZodString;
|
|
52
|
+
}, z.core.$strip>>;
|
|
53
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
54
|
+
title: z.ZodString;
|
|
55
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
56
|
+
inputType: z.ZodEnum<typeof import("../../..").SettingInputType>;
|
|
57
|
+
defaultOptionId: z.ZodString;
|
|
58
|
+
maxSelections: z.ZodOptional<z.ZodNumber>;
|
|
59
|
+
key: z.ZodLiteral<import("../../..").SettingKey.RESOLUTION>;
|
|
60
|
+
options: z.ZodArray<z.ZodObject<{
|
|
61
|
+
id: z.ZodString;
|
|
62
|
+
title: z.ZodString;
|
|
63
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
64
|
+
priceModifier: z.ZodDefault<z.ZodNumber>;
|
|
65
|
+
promptSuffix: z.ZodOptional<z.ZodString>;
|
|
66
|
+
providerValue: z.ZodString;
|
|
67
|
+
}, z.core.$strip>>;
|
|
68
|
+
}, z.core.$strip>], "key">>>;
|
|
69
|
+
runtimeOverrides: z.ZodOptional<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]>>]>>>;
|
|
70
|
+
}, z.core.$strip>;
|
|
71
|
+
const Response: z.ZodObject<{
|
|
72
|
+
uuid: z.ZodString;
|
|
73
|
+
modelUuid: z.ZodString;
|
|
74
|
+
toolUuid: z.ZodString;
|
|
75
|
+
status: z.ZodEnum<typeof import("../../schemas").ToolBindingStatus>;
|
|
76
|
+
order: z.ZodNumber;
|
|
77
|
+
isDefault: z.ZodBoolean;
|
|
78
|
+
settingsConfig: z.ZodArray<z.ZodObject<{
|
|
79
|
+
key: z.ZodEnum<typeof import("../../..").SettingKey>;
|
|
80
|
+
title: z.ZodString;
|
|
81
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
82
|
+
inputType: z.ZodEnum<typeof import("../../..").SettingInputType>;
|
|
83
|
+
defaultOptionId: z.ZodString;
|
|
84
|
+
maxSelections: z.ZodOptional<z.ZodNumber>;
|
|
85
|
+
options: z.ZodArray<z.ZodObject<{
|
|
86
|
+
title: z.ZodString;
|
|
87
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
88
|
+
id: z.ZodString;
|
|
89
|
+
priceModifier: z.ZodDefault<z.ZodNumber>;
|
|
90
|
+
}, z.core.$strip>>;
|
|
91
|
+
}, z.core.$strip>>;
|
|
92
|
+
runtimeOverrides: 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]>>]>>;
|
|
93
|
+
createdAt: z.ZodString;
|
|
94
|
+
updatedAt: z.ZodString;
|
|
95
|
+
tool: z.ZodObject<{
|
|
96
|
+
uuid: z.ZodString;
|
|
97
|
+
key: z.ZodString;
|
|
98
|
+
title: z.ZodString;
|
|
99
|
+
description: z.ZodString;
|
|
100
|
+
icon: z.ZodNullable<z.ZodString>;
|
|
101
|
+
status: z.ZodEnum<typeof import("../../schemas").ToolStatus>;
|
|
102
|
+
kind: z.ZodEnum<typeof import("../../schemas").ToolKind>;
|
|
103
|
+
definitionSource: z.ZodEnum<typeof import("../../schemas").ToolDefinitionSource>;
|
|
104
|
+
executorType: z.ZodEnum<typeof import("../../schemas").ToolExecutorType>;
|
|
105
|
+
functionName: z.ZodString;
|
|
106
|
+
handlerKey: z.ZodNullable<z.ZodString>;
|
|
107
|
+
riskLevel: z.ZodEnum<typeof import("../../schemas").ToolRiskLevel>;
|
|
108
|
+
visibility: z.ZodEnum<typeof import("../../..").Visibility>;
|
|
109
|
+
order: z.ZodNumber;
|
|
110
|
+
tags: z.ZodArray<z.ZodString>;
|
|
111
|
+
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]>>]>>;
|
|
112
|
+
runtimeConfig: 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]>>]>>;
|
|
113
|
+
isProtected: z.ZodBoolean;
|
|
114
|
+
createdAt: z.ZodString;
|
|
115
|
+
updatedAt: z.ZodString;
|
|
116
|
+
}, z.core.$strip>;
|
|
117
|
+
}, z.core.$strip>;
|
|
118
|
+
const URL: (modelUuid: string, bindingUuid: string) => string;
|
|
119
|
+
const METHOD = HttpMethod.PATCH;
|
|
120
|
+
type RequestType = z.infer<typeof Request>;
|
|
121
|
+
type ResponseType = z.infer<typeof Response>;
|
|
122
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdminModelToolBindingUpdateCommand = void 0;
|
|
4
|
+
const schemas_1 = require("../../schemas");
|
|
5
|
+
const rest_api_1 = require("../../../../rest-api");
|
|
6
|
+
const http_method_1 = require("../../../../shared/http-method");
|
|
7
|
+
var AdminModelToolBindingUpdateCommand;
|
|
8
|
+
(function (AdminModelToolBindingUpdateCommand) {
|
|
9
|
+
AdminModelToolBindingUpdateCommand.Request = schemas_1.UpdateModelToolBindingRequestSchema;
|
|
10
|
+
AdminModelToolBindingUpdateCommand.Response = schemas_1.ModelToolBindingSchema;
|
|
11
|
+
AdminModelToolBindingUpdateCommand.URL = (modelUuid, bindingUuid) => rest_api_1.REST_API.V1.TOOLS.ADMIN.MODEL_BINDINGS.UPDATE(modelUuid, bindingUuid);
|
|
12
|
+
AdminModelToolBindingUpdateCommand.METHOD = http_method_1.HttpMethod.PATCH;
|
|
13
|
+
})(AdminModelToolBindingUpdateCommand || (exports.AdminModelToolBindingUpdateCommand = AdminModelToolBindingUpdateCommand = {}));
|
|
14
|
+
//# sourceMappingURL=update-model-tool-binding.command.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-model-tool-binding.command.js","sourceRoot":"","sources":["../../../../../v1/tool/admin/commands/update-model-tool-binding.command.ts"],"names":[],"mappings":";;;AACA,2CAA4F;AAC5F,mDAAgD;AAChD,gEAA4D;AAE5D,IAAiB,kCAAkC,CAQlD;AARD,WAAiB,kCAAkC;IAClC,0CAAO,GAAG,6CAAmC,CAAC;IAC9C,2CAAQ,GAAG,gCAAsB,CAAC;IAClC,sCAAG,GAAG,CAAC,SAAiB,EAAE,WAAmB,EAAE,EAAE,CAC1D,mBAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;IAC7D,yCAAM,GAAG,wBAAU,CAAC,KAAK,CAAC;AAG3C,CAAC,EARgB,kCAAkC,kDAAlC,kCAAkC,QAQlD"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpMethod } from '../../../../shared/http-method';
|
|
3
|
+
export declare namespace AdminToolUpdateCommand {
|
|
4
|
+
const Request: z.ZodObject<{
|
|
5
|
+
title: z.ZodOptional<z.ZodString>;
|
|
6
|
+
description: z.ZodOptional<z.ZodString>;
|
|
7
|
+
icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
+
status: z.ZodOptional<z.ZodEnum<typeof import("../../schemas").ToolStatus>>;
|
|
9
|
+
visibility: z.ZodOptional<z.ZodEnum<typeof import("../../..").WritableVisibility>>;
|
|
10
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
11
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
12
|
+
uiConfig: z.ZodOptional<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]>>]>>>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
const Response: z.ZodObject<{
|
|
15
|
+
uuid: z.ZodString;
|
|
16
|
+
key: z.ZodString;
|
|
17
|
+
title: z.ZodString;
|
|
18
|
+
description: z.ZodString;
|
|
19
|
+
icon: z.ZodNullable<z.ZodString>;
|
|
20
|
+
status: z.ZodEnum<typeof import("../../schemas").ToolStatus>;
|
|
21
|
+
kind: z.ZodEnum<typeof import("../../schemas").ToolKind>;
|
|
22
|
+
definitionSource: z.ZodEnum<typeof import("../../schemas").ToolDefinitionSource>;
|
|
23
|
+
executorType: z.ZodEnum<typeof import("../../schemas").ToolExecutorType>;
|
|
24
|
+
functionName: z.ZodString;
|
|
25
|
+
handlerKey: z.ZodNullable<z.ZodString>;
|
|
26
|
+
riskLevel: z.ZodEnum<typeof import("../../schemas").ToolRiskLevel>;
|
|
27
|
+
visibility: z.ZodEnum<typeof import("../../..").Visibility>;
|
|
28
|
+
order: z.ZodNumber;
|
|
29
|
+
tags: z.ZodArray<z.ZodString>;
|
|
30
|
+
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]>>]>>;
|
|
31
|
+
runtimeConfig: 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]>>]>>;
|
|
32
|
+
isProtected: z.ZodBoolean;
|
|
33
|
+
createdAt: z.ZodString;
|
|
34
|
+
updatedAt: z.ZodString;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
const URL: (uuid: string) => string;
|
|
37
|
+
const METHOD = HttpMethod.PATCH;
|
|
38
|
+
type RequestType = z.infer<typeof Request>;
|
|
39
|
+
type ResponseType = z.infer<typeof Response>;
|
|
40
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdminToolUpdateCommand = void 0;
|
|
4
|
+
const schemas_1 = require("../../schemas");
|
|
5
|
+
const rest_api_1 = require("../../../../rest-api");
|
|
6
|
+
const http_method_1 = require("../../../../shared/http-method");
|
|
7
|
+
var AdminToolUpdateCommand;
|
|
8
|
+
(function (AdminToolUpdateCommand) {
|
|
9
|
+
AdminToolUpdateCommand.Request = schemas_1.ToolWriteSchema;
|
|
10
|
+
AdminToolUpdateCommand.Response = schemas_1.ToolSchema;
|
|
11
|
+
AdminToolUpdateCommand.URL = (uuid) => rest_api_1.REST_API.V1.TOOLS.ADMIN.UPDATE(uuid);
|
|
12
|
+
AdminToolUpdateCommand.METHOD = http_method_1.HttpMethod.PATCH;
|
|
13
|
+
})(AdminToolUpdateCommand || (exports.AdminToolUpdateCommand = AdminToolUpdateCommand = {}));
|
|
14
|
+
//# sourceMappingURL=update-tool.command.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-tool.command.js","sourceRoot":"","sources":["../../../../../v1/tool/admin/commands/update-tool.command.ts"],"names":[],"mappings":";;;AACA,2CAA4D;AAC5D,mDAAgD;AAChD,gEAA4D;AAE5D,IAAiB,sBAAsB,CAOtC;AAPD,WAAiB,sBAAsB;IACtB,8BAAO,GAAG,yBAAe,CAAC;IAC1B,+BAAQ,GAAG,oBAAU,CAAC;IACtB,0BAAG,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,mBAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAC7D,6BAAM,GAAG,wBAAU,CAAC,KAAK,CAAC;AAG3C,CAAC,EAPgB,sBAAsB,sCAAtB,sBAAsB,QAOtC"}
|
|
@@ -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/tool/admin/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,4CAA0B"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpMethod } from '../../../../shared/http-method';
|
|
3
|
+
export declare namespace AdminModelToolBindingGetQuery {
|
|
4
|
+
const Request: z.ZodVoid;
|
|
5
|
+
const Response: z.ZodObject<{
|
|
6
|
+
bindings: z.ZodArray<z.ZodObject<{
|
|
7
|
+
uuid: z.ZodString;
|
|
8
|
+
modelUuid: z.ZodString;
|
|
9
|
+
toolUuid: z.ZodString;
|
|
10
|
+
status: z.ZodEnum<typeof import("../../schemas").ToolBindingStatus>;
|
|
11
|
+
order: z.ZodNumber;
|
|
12
|
+
isDefault: z.ZodBoolean;
|
|
13
|
+
settingsConfig: z.ZodArray<z.ZodObject<{
|
|
14
|
+
key: z.ZodEnum<typeof import("../../..").SettingKey>;
|
|
15
|
+
title: z.ZodString;
|
|
16
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
17
|
+
inputType: z.ZodEnum<typeof import("../../..").SettingInputType>;
|
|
18
|
+
defaultOptionId: z.ZodString;
|
|
19
|
+
maxSelections: z.ZodOptional<z.ZodNumber>;
|
|
20
|
+
options: z.ZodArray<z.ZodObject<{
|
|
21
|
+
title: z.ZodString;
|
|
22
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
23
|
+
id: z.ZodString;
|
|
24
|
+
priceModifier: z.ZodDefault<z.ZodNumber>;
|
|
25
|
+
}, z.core.$strip>>;
|
|
26
|
+
}, z.core.$strip>>;
|
|
27
|
+
runtimeOverrides: 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]>>]>>;
|
|
28
|
+
createdAt: z.ZodString;
|
|
29
|
+
updatedAt: z.ZodString;
|
|
30
|
+
tool: z.ZodObject<{
|
|
31
|
+
uuid: z.ZodString;
|
|
32
|
+
key: z.ZodString;
|
|
33
|
+
title: z.ZodString;
|
|
34
|
+
description: z.ZodString;
|
|
35
|
+
icon: z.ZodNullable<z.ZodString>;
|
|
36
|
+
status: z.ZodEnum<typeof import("../../schemas").ToolStatus>;
|
|
37
|
+
kind: z.ZodEnum<typeof import("../../schemas").ToolKind>;
|
|
38
|
+
definitionSource: z.ZodEnum<typeof import("../../schemas").ToolDefinitionSource>;
|
|
39
|
+
executorType: z.ZodEnum<typeof import("../../schemas").ToolExecutorType>;
|
|
40
|
+
functionName: z.ZodString;
|
|
41
|
+
handlerKey: z.ZodNullable<z.ZodString>;
|
|
42
|
+
riskLevel: z.ZodEnum<typeof import("../../schemas").ToolRiskLevel>;
|
|
43
|
+
visibility: z.ZodEnum<typeof import("../../..").Visibility>;
|
|
44
|
+
order: z.ZodNumber;
|
|
45
|
+
tags: z.ZodArray<z.ZodString>;
|
|
46
|
+
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]>>]>>;
|
|
47
|
+
runtimeConfig: 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]>>]>>;
|
|
48
|
+
isProtected: z.ZodBoolean;
|
|
49
|
+
createdAt: z.ZodString;
|
|
50
|
+
updatedAt: z.ZodString;
|
|
51
|
+
}, z.core.$strip>;
|
|
52
|
+
}, z.core.$strip>>;
|
|
53
|
+
}, z.core.$strip>;
|
|
54
|
+
const URL: (modelUuid: string) => string;
|
|
55
|
+
const METHOD = HttpMethod.GET;
|
|
56
|
+
type ResponseType = z.infer<typeof Response>;
|
|
57
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdminModelToolBindingGetQuery = 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 AdminModelToolBindingGetQuery;
|
|
9
|
+
(function (AdminModelToolBindingGetQuery) {
|
|
10
|
+
AdminModelToolBindingGetQuery.Request = zod_1.z.void();
|
|
11
|
+
AdminModelToolBindingGetQuery.Response = schemas_1.ModelToolBindingListSchema;
|
|
12
|
+
AdminModelToolBindingGetQuery.URL = (modelUuid) => rest_api_1.REST_API.V1.TOOLS.ADMIN.MODEL_BINDINGS.GET_ALL(modelUuid);
|
|
13
|
+
AdminModelToolBindingGetQuery.METHOD = http_method_1.HttpMethod.GET;
|
|
14
|
+
})(AdminModelToolBindingGetQuery || (exports.AdminModelToolBindingGetQuery = AdminModelToolBindingGetQuery = {}));
|
|
15
|
+
//# sourceMappingURL=get-model-tool-bindings.query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-model-tool-bindings.query.js","sourceRoot":"","sources":["../../../../../v1/tool/admin/queries/get-model-tool-bindings.query.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,2CAA2D;AAC3D,mDAAgD;AAChD,gEAA4D;AAE5D,IAAiB,6BAA6B,CAM7C;AAND,WAAiB,6BAA6B;IAC7B,qCAAO,GAAG,OAAC,CAAC,IAAI,EAAE,CAAC;IACnB,sCAAQ,GAAG,oCAA0B,CAAC;IACtC,iCAAG,GAAG,CAAC,SAAiB,EAAE,EAAE,CAAC,mBAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IACvF,oCAAM,GAAG,wBAAU,CAAC,GAAG,CAAC;AAEzC,CAAC,EANgB,6BAA6B,6CAA7B,6BAA6B,QAM7C"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpMethod } from '../../../../shared/http-method';
|
|
3
|
+
export declare namespace AdminToolGetToolsQuery {
|
|
4
|
+
const Request: z.ZodVoid;
|
|
5
|
+
const Response: z.ZodObject<{
|
|
6
|
+
tools: z.ZodArray<z.ZodObject<{
|
|
7
|
+
uuid: z.ZodString;
|
|
8
|
+
key: z.ZodString;
|
|
9
|
+
title: z.ZodString;
|
|
10
|
+
description: z.ZodString;
|
|
11
|
+
icon: z.ZodNullable<z.ZodString>;
|
|
12
|
+
status: z.ZodEnum<typeof import("../../schemas").ToolStatus>;
|
|
13
|
+
kind: z.ZodEnum<typeof import("../../schemas").ToolKind>;
|
|
14
|
+
definitionSource: z.ZodEnum<typeof import("../../schemas").ToolDefinitionSource>;
|
|
15
|
+
executorType: z.ZodEnum<typeof import("../../schemas").ToolExecutorType>;
|
|
16
|
+
functionName: z.ZodString;
|
|
17
|
+
handlerKey: z.ZodNullable<z.ZodString>;
|
|
18
|
+
riskLevel: z.ZodEnum<typeof import("../../schemas").ToolRiskLevel>;
|
|
19
|
+
visibility: z.ZodEnum<typeof import("../../..").Visibility>;
|
|
20
|
+
order: z.ZodNumber;
|
|
21
|
+
tags: z.ZodArray<z.ZodString>;
|
|
22
|
+
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]>>]>>;
|
|
23
|
+
runtimeConfig: 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]>>]>>;
|
|
24
|
+
isProtected: z.ZodBoolean;
|
|
25
|
+
createdAt: z.ZodString;
|
|
26
|
+
updatedAt: z.ZodString;
|
|
27
|
+
}, z.core.$strip>>;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
const URL: "/api/v1/admin/tools/";
|
|
30
|
+
const METHOD = HttpMethod.GET;
|
|
31
|
+
type ResponseType = z.infer<typeof Response>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdminToolGetToolsQuery = 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 AdminToolGetToolsQuery;
|
|
9
|
+
(function (AdminToolGetToolsQuery) {
|
|
10
|
+
AdminToolGetToolsQuery.Request = zod_1.z.void();
|
|
11
|
+
AdminToolGetToolsQuery.Response = schemas_1.ToolResponseListSchema;
|
|
12
|
+
AdminToolGetToolsQuery.URL = rest_api_1.REST_API.V1.TOOLS.ADMIN.GET_ALL;
|
|
13
|
+
AdminToolGetToolsQuery.METHOD = http_method_1.HttpMethod.GET;
|
|
14
|
+
})(AdminToolGetToolsQuery || (exports.AdminToolGetToolsQuery = AdminToolGetToolsQuery = {}));
|
|
15
|
+
//# sourceMappingURL=get-tools.query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-tools.query.js","sourceRoot":"","sources":["../../../../../v1/tool/admin/queries/get-tools.query.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,2CAAuD;AACvD,mDAAgD;AAChD,gEAA4D;AAE5D,IAAiB,sBAAsB,CAMtC;AAND,WAAiB,sBAAsB;IACtB,8BAAO,GAAG,OAAC,CAAC,IAAI,EAAE,CAAC;IACnB,+BAAQ,GAAG,gCAAsB,CAAC;IAClC,0BAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC;IACtC,6BAAM,GAAG,wBAAU,CAAC,GAAG,CAAC;AAEzC,CAAC,EANgB,sBAAsB,sCAAtB,sBAAsB,QAMtC"}
|
|
@@ -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-model-tool-bindings.query"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|