@mastra/server 1.46.0-alpha.2 → 1.46.0-alpha.4
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/CHANGELOG.md +48 -0
- package/dist/{api-schema-manifest-3MIPI77N.js → api-schema-manifest-F6SF6FJT.js} +3 -3
- package/dist/{api-schema-manifest-3MIPI77N.js.map → api-schema-manifest-F6SF6FJT.js.map} +1 -1
- package/dist/{api-schema-manifest-LFSM6XAL.cjs → api-schema-manifest-PVHR2FGG.cjs} +4 -4
- package/dist/{api-schema-manifest-LFSM6XAL.cjs.map → api-schema-manifest-PVHR2FGG.cjs.map} +1 -1
- package/dist/{chunk-UVJZRFSY.cjs → chunk-2CLXY7EU.cjs} +96 -56
- package/dist/chunk-2CLXY7EU.cjs.map +1 -0
- package/dist/{chunk-PVID56QD.js → chunk-5V2QWK2S.js} +3 -3
- package/dist/{chunk-PVID56QD.js.map → chunk-5V2QWK2S.js.map} +1 -1
- package/dist/{chunk-BYCLHKAC.js → chunk-7HMXQIPK.js} +3 -3
- package/dist/{chunk-BYCLHKAC.js.map → chunk-7HMXQIPK.js.map} +1 -1
- package/dist/{chunk-KBSTGVA4.cjs → chunk-E2EYPHRE.cjs} +3 -3
- package/dist/{chunk-KBSTGVA4.cjs.map → chunk-E2EYPHRE.cjs.map} +1 -1
- package/dist/{chunk-CYOIFE4C.js → chunk-FYBFIW5N.js} +52 -12
- package/dist/chunk-FYBFIW5N.js.map +1 -0
- package/dist/{chunk-YD3A4BO6.js → chunk-GADWAAGI.js} +15 -7
- package/dist/chunk-GADWAAGI.js.map +1 -0
- package/dist/chunk-I6AIWII6.cjs +1138 -0
- package/dist/chunk-I6AIWII6.cjs.map +1 -0
- package/dist/{chunk-J2LKP5LL.js → chunk-ILVGJFCT.js} +3 -3
- package/dist/{chunk-J2LKP5LL.js.map → chunk-ILVGJFCT.js.map} +1 -1
- package/dist/{chunk-QGCSJMS7.cjs → chunk-L4V4FQDA.cjs} +3 -3
- package/dist/{chunk-QGCSJMS7.cjs.map → chunk-L4V4FQDA.cjs.map} +1 -1
- package/dist/{chunk-EVIEMZPA.cjs → chunk-L5D33443.cjs} +27 -3
- package/dist/chunk-L5D33443.cjs.map +1 -0
- package/dist/chunk-MYNSU6B4.js +1103 -0
- package/dist/chunk-MYNSU6B4.js.map +1 -0
- package/dist/{chunk-NIM337G7.cjs → chunk-PJLW25AQ.cjs} +75 -67
- package/dist/chunk-PJLW25AQ.cjs.map +1 -0
- package/dist/{chunk-N624P3VO.js → chunk-X7KQ23MW.js} +27 -3
- package/dist/chunk-X7KQ23MW.js.map +1 -0
- package/dist/{chunk-WMVLRIPB.cjs → chunk-Y3MYKCTO.cjs} +3 -3
- package/dist/{chunk-WMVLRIPB.cjs.map → chunk-Y3MYKCTO.cjs.map} +1 -1
- package/dist/{dist-7DWILFVQ.js → dist-OWZWIJZY.js} +15 -3
- package/dist/{dist-7DWILFVQ.js.map → dist-OWZWIJZY.js.map} +1 -1
- package/dist/{dist-FN5GSHL2.cjs → dist-TXDLPF66.cjs} +15 -3
- package/dist/{dist-FN5GSHL2.cjs.map → dist-TXDLPF66.cjs.map} +1 -1
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/server/handlers/agent-builder.cjs +17 -17
- package/dist/server/handlers/agent-builder.js +1 -1
- package/dist/server/handlers/datasets.cjs +26 -26
- package/dist/server/handlers/datasets.d.ts +312 -6
- package/dist/server/handlers/datasets.d.ts.map +1 -1
- package/dist/server/handlers/datasets.js +1 -1
- package/dist/server/handlers/harness.cjs +144 -0
- package/dist/server/handlers/harness.cjs.map +1 -0
- package/dist/server/handlers/harness.d.ts +707 -0
- package/dist/server/handlers/harness.d.ts.map +1 -0
- package/dist/server/handlers/harness.js +3 -0
- package/dist/server/handlers/harness.js.map +1 -0
- package/dist/server/handlers/stored-skill-favorites.cjs +3 -3
- package/dist/server/handlers/stored-skill-favorites.js +1 -1
- package/dist/server/handlers/system.cjs +3 -3
- package/dist/server/handlers/system.js +1 -1
- package/dist/server/handlers.cjs +13 -13
- package/dist/server/handlers.js +4 -4
- package/dist/server/schemas/datasets.d.ts +150 -0
- package/dist/server/schemas/datasets.d.ts.map +1 -1
- package/dist/server/schemas/index.cjs +84 -84
- package/dist/server/schemas/index.js +3 -3
- package/dist/server/server-adapter/index.cjs +13 -13
- package/dist/server/server-adapter/index.js +2 -2
- package/dist/server/server-adapter/routes/datasets.d.ts +312 -6
- package/dist/server/server-adapter/routes/datasets.d.ts.map +1 -1
- package/dist/server/server-adapter/routes/harness.d.ts +3 -0
- package/dist/server/server-adapter/routes/harness.d.ts.map +1 -0
- package/dist/server/server-adapter/routes/index.d.ts.map +1 -1
- package/package.json +6 -6
- package/dist/chunk-CYOIFE4C.js.map +0 -1
- package/dist/chunk-EVIEMZPA.cjs.map +0 -1
- package/dist/chunk-N624P3VO.js.map +0 -1
- package/dist/chunk-NIM337G7.cjs.map +0 -1
- package/dist/chunk-UVJZRFSY.cjs.map +0 -1
- package/dist/chunk-YD3A4BO6.js.map +0 -1
|
@@ -0,0 +1,707 @@
|
|
|
1
|
+
import { z } from 'zod/v4';
|
|
2
|
+
export declare const LIST_HARNESSES_ROUTE: import("../server-adapter").ServerRoute<{}, {
|
|
3
|
+
harnesses: {
|
|
4
|
+
id: string;
|
|
5
|
+
}[];
|
|
6
|
+
}, "json", import("../server-adapter").RouteSchemas<undefined, undefined, undefined, z.ZodObject<{
|
|
7
|
+
harnesses: z.ZodArray<z.ZodObject<{
|
|
8
|
+
id: z.ZodString;
|
|
9
|
+
}, z.core.$strip>>;
|
|
10
|
+
}, z.core.$strip>>, "GET", "/harness">;
|
|
11
|
+
export declare const CREATE_HARNESS_SESSION_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
|
|
12
|
+
harnessId: z.ZodString;
|
|
13
|
+
}, z.core.$strip>, undefined, z.ZodObject<{
|
|
14
|
+
resourceId: z.ZodString;
|
|
15
|
+
}, z.core.$strip>>, {
|
|
16
|
+
harnessId: string;
|
|
17
|
+
resourceId: string;
|
|
18
|
+
threadId?: string | undefined;
|
|
19
|
+
}, "json", import("../server-adapter").RouteSchemas<z.ZodObject<{
|
|
20
|
+
harnessId: z.ZodString;
|
|
21
|
+
}, z.core.$strip>, undefined, z.ZodObject<{
|
|
22
|
+
resourceId: z.ZodString;
|
|
23
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
24
|
+
harnessId: z.ZodString;
|
|
25
|
+
resourceId: z.ZodString;
|
|
26
|
+
threadId: z.ZodOptional<z.ZodString>;
|
|
27
|
+
}, z.core.$strip>>, "POST", "/harness/:harnessId/sessions">;
|
|
28
|
+
export declare const STREAM_HARNESS_SESSION_ROUTE: import("../server-adapter").ServerRoute<{
|
|
29
|
+
harnessId: string;
|
|
30
|
+
resourceId: string;
|
|
31
|
+
}, unknown, "stream", import("../server-adapter").RouteSchemas<z.ZodObject<{
|
|
32
|
+
harnessId: z.ZodString;
|
|
33
|
+
resourceId: z.ZodString;
|
|
34
|
+
}, z.core.$strip>, undefined, undefined, undefined>, "GET", "/harness/:harnessId/sessions/:resourceId/stream">;
|
|
35
|
+
export declare const SEND_HARNESS_MESSAGE_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
|
|
36
|
+
harnessId: z.ZodString;
|
|
37
|
+
resourceId: z.ZodString;
|
|
38
|
+
}, z.core.$strip>, undefined, z.ZodObject<{
|
|
39
|
+
message: z.ZodString;
|
|
40
|
+
}, z.core.$strip>>, {
|
|
41
|
+
ok: boolean;
|
|
42
|
+
}, "json", import("../server-adapter").RouteSchemas<z.ZodObject<{
|
|
43
|
+
harnessId: z.ZodString;
|
|
44
|
+
resourceId: z.ZodString;
|
|
45
|
+
}, z.core.$strip>, undefined, z.ZodObject<{
|
|
46
|
+
message: z.ZodString;
|
|
47
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
48
|
+
ok: z.ZodBoolean;
|
|
49
|
+
}, z.core.$strip>>, "POST", "/harness/:harnessId/sessions/:resourceId/messages">;
|
|
50
|
+
export declare const ABORT_HARNESS_SESSION_ROUTE: import("../server-adapter").ServerRoute<{
|
|
51
|
+
harnessId: string;
|
|
52
|
+
resourceId: string;
|
|
53
|
+
}, {
|
|
54
|
+
ok: boolean;
|
|
55
|
+
}, "json", import("../server-adapter").RouteSchemas<z.ZodObject<{
|
|
56
|
+
harnessId: z.ZodString;
|
|
57
|
+
resourceId: z.ZodString;
|
|
58
|
+
}, z.core.$strip>, undefined, undefined, z.ZodObject<{
|
|
59
|
+
ok: z.ZodBoolean;
|
|
60
|
+
}, z.core.$strip>>, "POST", "/harness/:harnessId/sessions/:resourceId/abort">;
|
|
61
|
+
export declare const HARNESS_TOOL_APPROVAL_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
|
|
62
|
+
harnessId: z.ZodString;
|
|
63
|
+
resourceId: z.ZodString;
|
|
64
|
+
}, z.core.$strip>, undefined, z.ZodObject<{
|
|
65
|
+
toolCallId: z.ZodString;
|
|
66
|
+
approved: z.ZodBoolean;
|
|
67
|
+
}, z.core.$strip>>, {
|
|
68
|
+
ok: boolean;
|
|
69
|
+
}, "json", import("../server-adapter").RouteSchemas<z.ZodObject<{
|
|
70
|
+
harnessId: z.ZodString;
|
|
71
|
+
resourceId: z.ZodString;
|
|
72
|
+
}, z.core.$strip>, undefined, z.ZodObject<{
|
|
73
|
+
toolCallId: z.ZodString;
|
|
74
|
+
approved: z.ZodBoolean;
|
|
75
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
76
|
+
ok: z.ZodBoolean;
|
|
77
|
+
}, z.core.$strip>>, "POST", "/harness/:harnessId/sessions/:resourceId/tool-approval">;
|
|
78
|
+
export declare const HARNESS_TOOL_SUSPENSION_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
|
|
79
|
+
harnessId: z.ZodString;
|
|
80
|
+
resourceId: z.ZodString;
|
|
81
|
+
}, z.core.$strip>, undefined, z.ZodObject<{
|
|
82
|
+
toolCallId: z.ZodString;
|
|
83
|
+
resumeData: z.ZodAny;
|
|
84
|
+
}, z.core.$strip>>, {
|
|
85
|
+
ok: boolean;
|
|
86
|
+
}, "json", import("../server-adapter").RouteSchemas<z.ZodObject<{
|
|
87
|
+
harnessId: z.ZodString;
|
|
88
|
+
resourceId: z.ZodString;
|
|
89
|
+
}, z.core.$strip>, undefined, z.ZodObject<{
|
|
90
|
+
toolCallId: z.ZodString;
|
|
91
|
+
resumeData: z.ZodAny;
|
|
92
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
93
|
+
ok: z.ZodBoolean;
|
|
94
|
+
}, z.core.$strip>>, "POST", "/harness/:harnessId/sessions/:resourceId/tool-suspension">;
|
|
95
|
+
export declare const STEER_HARNESS_SESSION_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
|
|
96
|
+
harnessId: z.ZodString;
|
|
97
|
+
resourceId: z.ZodString;
|
|
98
|
+
}, z.core.$strip>, undefined, z.ZodObject<{
|
|
99
|
+
message: z.ZodString;
|
|
100
|
+
}, z.core.$strip>>, {
|
|
101
|
+
ok: boolean;
|
|
102
|
+
}, "json", import("../server-adapter").RouteSchemas<z.ZodObject<{
|
|
103
|
+
harnessId: z.ZodString;
|
|
104
|
+
resourceId: z.ZodString;
|
|
105
|
+
}, z.core.$strip>, undefined, z.ZodObject<{
|
|
106
|
+
message: z.ZodString;
|
|
107
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
108
|
+
ok: z.ZodBoolean;
|
|
109
|
+
}, z.core.$strip>>, "POST", "/harness/:harnessId/sessions/:resourceId/steer">;
|
|
110
|
+
export declare const SWITCH_HARNESS_MODE_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
|
|
111
|
+
harnessId: z.ZodString;
|
|
112
|
+
resourceId: z.ZodString;
|
|
113
|
+
}, z.core.$strip>, undefined, z.ZodObject<{
|
|
114
|
+
modeId: z.ZodString;
|
|
115
|
+
}, z.core.$strip>>, {
|
|
116
|
+
ok: boolean;
|
|
117
|
+
}, "json", import("../server-adapter").RouteSchemas<z.ZodObject<{
|
|
118
|
+
harnessId: z.ZodString;
|
|
119
|
+
resourceId: z.ZodString;
|
|
120
|
+
}, z.core.$strip>, undefined, z.ZodObject<{
|
|
121
|
+
modeId: z.ZodString;
|
|
122
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
123
|
+
ok: z.ZodBoolean;
|
|
124
|
+
}, z.core.$strip>>, "POST", "/harness/:harnessId/sessions/:resourceId/mode">;
|
|
125
|
+
export declare const SWITCH_HARNESS_MODEL_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
|
|
126
|
+
harnessId: z.ZodString;
|
|
127
|
+
resourceId: z.ZodString;
|
|
128
|
+
}, z.core.$strip>, undefined, z.ZodObject<{
|
|
129
|
+
modelId: z.ZodString;
|
|
130
|
+
scope: z.ZodOptional<z.ZodEnum<{
|
|
131
|
+
thread: "thread";
|
|
132
|
+
global: "global";
|
|
133
|
+
}>>;
|
|
134
|
+
modeId: z.ZodOptional<z.ZodString>;
|
|
135
|
+
}, z.core.$strip>>, {
|
|
136
|
+
ok: boolean;
|
|
137
|
+
}, "json", import("../server-adapter").RouteSchemas<z.ZodObject<{
|
|
138
|
+
harnessId: z.ZodString;
|
|
139
|
+
resourceId: z.ZodString;
|
|
140
|
+
}, z.core.$strip>, undefined, z.ZodObject<{
|
|
141
|
+
modelId: z.ZodString;
|
|
142
|
+
scope: z.ZodOptional<z.ZodEnum<{
|
|
143
|
+
thread: "thread";
|
|
144
|
+
global: "global";
|
|
145
|
+
}>>;
|
|
146
|
+
modeId: z.ZodOptional<z.ZodString>;
|
|
147
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
148
|
+
ok: z.ZodBoolean;
|
|
149
|
+
}, z.core.$strip>>, "POST", "/harness/:harnessId/sessions/:resourceId/model">;
|
|
150
|
+
export declare const SWITCH_HARNESS_THREAD_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
|
|
151
|
+
harnessId: z.ZodString;
|
|
152
|
+
resourceId: z.ZodString;
|
|
153
|
+
}, z.core.$strip>, undefined, z.ZodObject<{
|
|
154
|
+
threadId: z.ZodString;
|
|
155
|
+
}, z.core.$strip>>, {
|
|
156
|
+
ok: boolean;
|
|
157
|
+
}, "json", import("../server-adapter").RouteSchemas<z.ZodObject<{
|
|
158
|
+
harnessId: z.ZodString;
|
|
159
|
+
resourceId: z.ZodString;
|
|
160
|
+
}, z.core.$strip>, undefined, z.ZodObject<{
|
|
161
|
+
threadId: z.ZodString;
|
|
162
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
163
|
+
ok: z.ZodBoolean;
|
|
164
|
+
}, z.core.$strip>>, "POST", "/harness/:harnessId/sessions/:resourceId/thread">;
|
|
165
|
+
export declare const GET_HARNESS_SESSION_STATE_ROUTE: import("../server-adapter").ServerRoute<{
|
|
166
|
+
harnessId: string;
|
|
167
|
+
resourceId: string;
|
|
168
|
+
}, {
|
|
169
|
+
harnessId: string;
|
|
170
|
+
resourceId: string;
|
|
171
|
+
modeId: string;
|
|
172
|
+
modelId: string;
|
|
173
|
+
threadId?: string | undefined;
|
|
174
|
+
}, "json", import("../server-adapter").RouteSchemas<z.ZodObject<{
|
|
175
|
+
harnessId: z.ZodString;
|
|
176
|
+
resourceId: z.ZodString;
|
|
177
|
+
}, z.core.$strip>, undefined, undefined, z.ZodObject<{
|
|
178
|
+
harnessId: z.ZodString;
|
|
179
|
+
resourceId: z.ZodString;
|
|
180
|
+
threadId: z.ZodOptional<z.ZodString>;
|
|
181
|
+
modeId: z.ZodString;
|
|
182
|
+
modelId: z.ZodString;
|
|
183
|
+
}, z.core.$strip>>, "GET", "/harness/:harnessId/sessions/:resourceId">;
|
|
184
|
+
export declare const LIST_HARNESS_MODES_ROUTE: import("../server-adapter").ServerRoute<{
|
|
185
|
+
harnessId: string;
|
|
186
|
+
}, {
|
|
187
|
+
modes: {
|
|
188
|
+
id: string;
|
|
189
|
+
name?: string | undefined;
|
|
190
|
+
}[];
|
|
191
|
+
}, "json", import("../server-adapter").RouteSchemas<z.ZodObject<{
|
|
192
|
+
harnessId: z.ZodString;
|
|
193
|
+
}, z.core.$strip>, undefined, undefined, z.ZodObject<{
|
|
194
|
+
modes: z.ZodArray<z.ZodObject<{
|
|
195
|
+
id: z.ZodString;
|
|
196
|
+
name: z.ZodOptional<z.ZodString>;
|
|
197
|
+
}, z.core.$strip>>;
|
|
198
|
+
}, z.core.$strip>>, "GET", "/harness/:harnessId/modes">;
|
|
199
|
+
export declare const LIST_HARNESS_THREADS_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
|
|
200
|
+
harnessId: z.ZodString;
|
|
201
|
+
resourceId: z.ZodString;
|
|
202
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
203
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
204
|
+
}, z.core.$strip>, undefined>, {
|
|
205
|
+
threads: {
|
|
206
|
+
id: string;
|
|
207
|
+
title?: string | undefined;
|
|
208
|
+
updatedAt?: string | undefined;
|
|
209
|
+
}[];
|
|
210
|
+
}, "json", import("../server-adapter").RouteSchemas<z.ZodObject<{
|
|
211
|
+
harnessId: z.ZodString;
|
|
212
|
+
resourceId: z.ZodString;
|
|
213
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
214
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
215
|
+
}, z.core.$strip>, undefined, z.ZodObject<{
|
|
216
|
+
threads: z.ZodArray<z.ZodObject<{
|
|
217
|
+
id: z.ZodString;
|
|
218
|
+
title: z.ZodOptional<z.ZodString>;
|
|
219
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
220
|
+
}, z.core.$strip>>;
|
|
221
|
+
}, z.core.$strip>>, "GET", "/harness/:harnessId/sessions/:resourceId/threads">;
|
|
222
|
+
export declare const SEND_HARNESS_NOTIFICATION_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
|
|
223
|
+
harnessId: z.ZodString;
|
|
224
|
+
resourceId: z.ZodString;
|
|
225
|
+
}, z.core.$strip>, undefined, z.ZodObject<{
|
|
226
|
+
source: z.ZodString;
|
|
227
|
+
kind: z.ZodString;
|
|
228
|
+
summary: z.ZodString;
|
|
229
|
+
priority: z.ZodOptional<z.ZodEnum<{
|
|
230
|
+
low: "low";
|
|
231
|
+
medium: "medium";
|
|
232
|
+
high: "high";
|
|
233
|
+
urgent: "urgent";
|
|
234
|
+
}>>;
|
|
235
|
+
payload: z.ZodOptional<z.ZodAny>;
|
|
236
|
+
sourceId: z.ZodOptional<z.ZodString>;
|
|
237
|
+
dedupeKey: z.ZodOptional<z.ZodString>;
|
|
238
|
+
coalesceKey: z.ZodOptional<z.ZodString>;
|
|
239
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
240
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
241
|
+
}, z.core.$strip>>, {
|
|
242
|
+
accepted: boolean;
|
|
243
|
+
notificationId?: string | undefined;
|
|
244
|
+
decision?: string | undefined;
|
|
245
|
+
runId?: string | undefined;
|
|
246
|
+
}, "json", import("../server-adapter").RouteSchemas<z.ZodObject<{
|
|
247
|
+
harnessId: z.ZodString;
|
|
248
|
+
resourceId: z.ZodString;
|
|
249
|
+
}, z.core.$strip>, undefined, z.ZodObject<{
|
|
250
|
+
source: z.ZodString;
|
|
251
|
+
kind: z.ZodString;
|
|
252
|
+
summary: z.ZodString;
|
|
253
|
+
priority: z.ZodOptional<z.ZodEnum<{
|
|
254
|
+
low: "low";
|
|
255
|
+
medium: "medium";
|
|
256
|
+
high: "high";
|
|
257
|
+
urgent: "urgent";
|
|
258
|
+
}>>;
|
|
259
|
+
payload: z.ZodOptional<z.ZodAny>;
|
|
260
|
+
sourceId: z.ZodOptional<z.ZodString>;
|
|
261
|
+
dedupeKey: z.ZodOptional<z.ZodString>;
|
|
262
|
+
coalesceKey: z.ZodOptional<z.ZodString>;
|
|
263
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
264
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
265
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
266
|
+
accepted: z.ZodBoolean;
|
|
267
|
+
notificationId: z.ZodOptional<z.ZodString>;
|
|
268
|
+
decision: z.ZodOptional<z.ZodString>;
|
|
269
|
+
runId: z.ZodOptional<z.ZodString>;
|
|
270
|
+
}, z.core.$strip>>, "POST", "/harness/:harnessId/sessions/:resourceId/notifications">;
|
|
271
|
+
export declare const CREATE_HARNESS_THREAD_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
|
|
272
|
+
harnessId: z.ZodString;
|
|
273
|
+
resourceId: z.ZodString;
|
|
274
|
+
}, z.core.$strip>, undefined, z.ZodObject<{
|
|
275
|
+
title: z.ZodOptional<z.ZodString>;
|
|
276
|
+
}, z.core.$strip>>, {
|
|
277
|
+
id: string;
|
|
278
|
+
title?: string | undefined;
|
|
279
|
+
resourceId?: string | undefined;
|
|
280
|
+
createdAt?: string | undefined;
|
|
281
|
+
updatedAt?: string | undefined;
|
|
282
|
+
}, "json", import("../server-adapter").RouteSchemas<z.ZodObject<{
|
|
283
|
+
harnessId: z.ZodString;
|
|
284
|
+
resourceId: z.ZodString;
|
|
285
|
+
}, z.core.$strip>, undefined, z.ZodObject<{
|
|
286
|
+
title: z.ZodOptional<z.ZodString>;
|
|
287
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
288
|
+
id: z.ZodString;
|
|
289
|
+
title: z.ZodOptional<z.ZodString>;
|
|
290
|
+
resourceId: z.ZodOptional<z.ZodString>;
|
|
291
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
292
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
293
|
+
}, z.core.$strip>>, "POST", "/harness/:harnessId/sessions/:resourceId/threads">;
|
|
294
|
+
export declare const DELETE_HARNESS_THREAD_ROUTE: import("../server-adapter").ServerRoute<{
|
|
295
|
+
harnessId: string;
|
|
296
|
+
resourceId: string;
|
|
297
|
+
threadId: string;
|
|
298
|
+
}, {
|
|
299
|
+
ok: boolean;
|
|
300
|
+
}, "json", import("../server-adapter").RouteSchemas<z.ZodObject<{
|
|
301
|
+
harnessId: z.ZodString;
|
|
302
|
+
resourceId: z.ZodString;
|
|
303
|
+
threadId: z.ZodString;
|
|
304
|
+
}, z.core.$strip>, undefined, undefined, z.ZodObject<{
|
|
305
|
+
ok: z.ZodBoolean;
|
|
306
|
+
}, z.core.$strip>>, "DELETE", "/harness/:harnessId/sessions/:resourceId/threads/:threadId">;
|
|
307
|
+
export declare const RENAME_HARNESS_THREAD_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
|
|
308
|
+
harnessId: z.ZodString;
|
|
309
|
+
resourceId: z.ZodString;
|
|
310
|
+
threadId: z.ZodString;
|
|
311
|
+
}, z.core.$strip>, undefined, z.ZodObject<{
|
|
312
|
+
title: z.ZodString;
|
|
313
|
+
}, z.core.$strip>>, {
|
|
314
|
+
ok: boolean;
|
|
315
|
+
}, "json", import("../server-adapter").RouteSchemas<z.ZodObject<{
|
|
316
|
+
harnessId: z.ZodString;
|
|
317
|
+
resourceId: z.ZodString;
|
|
318
|
+
threadId: z.ZodString;
|
|
319
|
+
}, z.core.$strip>, undefined, z.ZodObject<{
|
|
320
|
+
title: z.ZodString;
|
|
321
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
322
|
+
ok: z.ZodBoolean;
|
|
323
|
+
}, z.core.$strip>>, "PUT", "/harness/:harnessId/sessions/:resourceId/threads/:threadId">;
|
|
324
|
+
export declare const CLONE_HARNESS_THREAD_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
|
|
325
|
+
harnessId: z.ZodString;
|
|
326
|
+
resourceId: z.ZodString;
|
|
327
|
+
}, z.core.$strip>, undefined, z.ZodObject<{
|
|
328
|
+
sourceThreadId: z.ZodOptional<z.ZodString>;
|
|
329
|
+
title: z.ZodOptional<z.ZodString>;
|
|
330
|
+
}, z.core.$strip>>, {
|
|
331
|
+
id: string;
|
|
332
|
+
title?: string | undefined;
|
|
333
|
+
resourceId?: string | undefined;
|
|
334
|
+
createdAt?: string | undefined;
|
|
335
|
+
updatedAt?: string | undefined;
|
|
336
|
+
}, "json", import("../server-adapter").RouteSchemas<z.ZodObject<{
|
|
337
|
+
harnessId: z.ZodString;
|
|
338
|
+
resourceId: z.ZodString;
|
|
339
|
+
}, z.core.$strip>, undefined, z.ZodObject<{
|
|
340
|
+
sourceThreadId: z.ZodOptional<z.ZodString>;
|
|
341
|
+
title: z.ZodOptional<z.ZodString>;
|
|
342
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
343
|
+
id: z.ZodString;
|
|
344
|
+
title: z.ZodOptional<z.ZodString>;
|
|
345
|
+
resourceId: z.ZodOptional<z.ZodString>;
|
|
346
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
347
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
348
|
+
}, z.core.$strip>>, "POST", "/harness/:harnessId/sessions/:resourceId/threads/clone">;
|
|
349
|
+
export declare const LIST_HARNESS_THREAD_MESSAGES_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
|
|
350
|
+
harnessId: z.ZodString;
|
|
351
|
+
resourceId: z.ZodString;
|
|
352
|
+
threadId: z.ZodString;
|
|
353
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
354
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
355
|
+
}, z.core.$strip>, undefined>, {
|
|
356
|
+
messages: {
|
|
357
|
+
id: string;
|
|
358
|
+
role: "user" | "system" | "assistant";
|
|
359
|
+
content: {
|
|
360
|
+
[x: string]: unknown;
|
|
361
|
+
type: string;
|
|
362
|
+
}[];
|
|
363
|
+
createdAt?: string | undefined;
|
|
364
|
+
}[];
|
|
365
|
+
}, "json", import("../server-adapter").RouteSchemas<z.ZodObject<{
|
|
366
|
+
harnessId: z.ZodString;
|
|
367
|
+
resourceId: z.ZodString;
|
|
368
|
+
threadId: z.ZodString;
|
|
369
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
370
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
371
|
+
}, z.core.$strip>, undefined, z.ZodObject<{
|
|
372
|
+
messages: z.ZodArray<z.ZodObject<{
|
|
373
|
+
id: z.ZodString;
|
|
374
|
+
role: z.ZodEnum<{
|
|
375
|
+
user: "user";
|
|
376
|
+
system: "system";
|
|
377
|
+
assistant: "assistant";
|
|
378
|
+
}>;
|
|
379
|
+
content: z.ZodArray<z.ZodObject<{
|
|
380
|
+
type: z.ZodString;
|
|
381
|
+
}, z.core.$loose>>;
|
|
382
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
383
|
+
}, z.core.$strip>>;
|
|
384
|
+
}, z.core.$strip>>, "GET", "/harness/:harnessId/sessions/:resourceId/threads/:threadId/messages">;
|
|
385
|
+
export declare const FOLLOW_UP_HARNESS_SESSION_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
|
|
386
|
+
harnessId: z.ZodString;
|
|
387
|
+
resourceId: z.ZodString;
|
|
388
|
+
}, z.core.$strip>, undefined, z.ZodObject<{
|
|
389
|
+
message: z.ZodString;
|
|
390
|
+
}, z.core.$strip>>, {
|
|
391
|
+
ok: boolean;
|
|
392
|
+
}, "json", import("../server-adapter").RouteSchemas<z.ZodObject<{
|
|
393
|
+
harnessId: z.ZodString;
|
|
394
|
+
resourceId: z.ZodString;
|
|
395
|
+
}, z.core.$strip>, undefined, z.ZodObject<{
|
|
396
|
+
message: z.ZodString;
|
|
397
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
398
|
+
ok: z.ZodBoolean;
|
|
399
|
+
}, z.core.$strip>>, "POST", "/harness/:harnessId/sessions/:resourceId/follow-up">;
|
|
400
|
+
export declare const LIST_HARNESS_MODELS_ROUTE: import("../server-adapter").ServerRoute<{
|
|
401
|
+
harnessId: string;
|
|
402
|
+
}, {
|
|
403
|
+
models: {
|
|
404
|
+
id: string;
|
|
405
|
+
provider: string;
|
|
406
|
+
modelName: string;
|
|
407
|
+
hasApiKey: boolean;
|
|
408
|
+
useCount: number;
|
|
409
|
+
}[];
|
|
410
|
+
}, "json", import("../server-adapter").RouteSchemas<z.ZodObject<{
|
|
411
|
+
harnessId: z.ZodString;
|
|
412
|
+
}, z.core.$strip>, undefined, undefined, z.ZodObject<{
|
|
413
|
+
models: z.ZodArray<z.ZodObject<{
|
|
414
|
+
id: z.ZodString;
|
|
415
|
+
provider: z.ZodString;
|
|
416
|
+
modelName: z.ZodString;
|
|
417
|
+
hasApiKey: z.ZodBoolean;
|
|
418
|
+
useCount: z.ZodNumber;
|
|
419
|
+
}, z.core.$strip>>;
|
|
420
|
+
}, z.core.$strip>>, "GET", "/harness/:harnessId/models">;
|
|
421
|
+
export declare const GET_HARNESS_WORKSPACE_STATUS_ROUTE: import("../server-adapter").ServerRoute<{
|
|
422
|
+
harnessId: string;
|
|
423
|
+
}, {
|
|
424
|
+
hasWorkspace: boolean;
|
|
425
|
+
isReady: boolean;
|
|
426
|
+
}, "json", import("../server-adapter").RouteSchemas<z.ZodObject<{
|
|
427
|
+
harnessId: z.ZodString;
|
|
428
|
+
}, z.core.$strip>, undefined, undefined, z.ZodObject<{
|
|
429
|
+
hasWorkspace: z.ZodBoolean;
|
|
430
|
+
isReady: z.ZodBoolean;
|
|
431
|
+
}, z.core.$strip>>, "GET", "/harness/:harnessId/workspace">;
|
|
432
|
+
export declare const GET_HARNESS_OM_RECORD_ROUTE: import("../server-adapter").ServerRoute<{
|
|
433
|
+
harnessId: string;
|
|
434
|
+
resourceId: string;
|
|
435
|
+
}, {
|
|
436
|
+
record?: any;
|
|
437
|
+
}, "json", import("../server-adapter").RouteSchemas<z.ZodObject<{
|
|
438
|
+
harnessId: z.ZodString;
|
|
439
|
+
resourceId: z.ZodString;
|
|
440
|
+
}, z.core.$strip>, undefined, undefined, z.ZodObject<{
|
|
441
|
+
record: z.ZodOptional<z.ZodAny>;
|
|
442
|
+
}, z.core.$strip>>, "GET", "/harness/:harnessId/sessions/:resourceId/om">;
|
|
443
|
+
export declare const SET_HARNESS_RESOURCE_ID_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
|
|
444
|
+
harnessId: z.ZodString;
|
|
445
|
+
resourceId: z.ZodString;
|
|
446
|
+
}, z.core.$strip>, undefined, z.ZodObject<{
|
|
447
|
+
newResourceId: z.ZodString;
|
|
448
|
+
}, z.core.$strip>>, {
|
|
449
|
+
ok: boolean;
|
|
450
|
+
}, "json", import("../server-adapter").RouteSchemas<z.ZodObject<{
|
|
451
|
+
harnessId: z.ZodString;
|
|
452
|
+
resourceId: z.ZodString;
|
|
453
|
+
}, z.core.$strip>, undefined, z.ZodObject<{
|
|
454
|
+
newResourceId: z.ZodString;
|
|
455
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
456
|
+
ok: z.ZodBoolean;
|
|
457
|
+
}, z.core.$strip>>, "POST", "/harness/:harnessId/sessions/:resourceId/resource">;
|
|
458
|
+
export declare const GET_HARNESS_RESOURCE_IDS_ROUTE: import("../server-adapter").ServerRoute<{
|
|
459
|
+
harnessId: string;
|
|
460
|
+
resourceId: string;
|
|
461
|
+
}, {
|
|
462
|
+
resourceIds: string[];
|
|
463
|
+
}, "json", import("../server-adapter").RouteSchemas<z.ZodObject<{
|
|
464
|
+
harnessId: z.ZodString;
|
|
465
|
+
resourceId: z.ZodString;
|
|
466
|
+
}, z.core.$strip>, undefined, undefined, z.ZodObject<{
|
|
467
|
+
resourceIds: z.ZodArray<z.ZodString>;
|
|
468
|
+
}, z.core.$strip>>, "GET", "/harness/:harnessId/sessions/:resourceId/resources">;
|
|
469
|
+
export declare const GET_HARNESS_GOAL_ROUTE: import("../server-adapter").ServerRoute<{
|
|
470
|
+
harnessId: string;
|
|
471
|
+
resourceId: string;
|
|
472
|
+
}, {
|
|
473
|
+
goal?: {
|
|
474
|
+
objective: string;
|
|
475
|
+
status: "paused" | "active" | "done";
|
|
476
|
+
runsUsed: number;
|
|
477
|
+
startedAt: number;
|
|
478
|
+
updatedAt: number;
|
|
479
|
+
id?: string | undefined;
|
|
480
|
+
maxRuns?: number | undefined;
|
|
481
|
+
judgeModelId?: string | undefined;
|
|
482
|
+
pausedReason?: string | undefined;
|
|
483
|
+
} | undefined;
|
|
484
|
+
}, "json", import("../server-adapter").RouteSchemas<z.ZodObject<{
|
|
485
|
+
harnessId: z.ZodString;
|
|
486
|
+
resourceId: z.ZodString;
|
|
487
|
+
}, z.core.$strip>, undefined, undefined, z.ZodObject<{
|
|
488
|
+
goal: z.ZodOptional<z.ZodObject<{
|
|
489
|
+
id: z.ZodOptional<z.ZodString>;
|
|
490
|
+
objective: z.ZodString;
|
|
491
|
+
status: z.ZodEnum<{
|
|
492
|
+
paused: "paused";
|
|
493
|
+
active: "active";
|
|
494
|
+
done: "done";
|
|
495
|
+
}>;
|
|
496
|
+
runsUsed: z.ZodNumber;
|
|
497
|
+
maxRuns: z.ZodOptional<z.ZodNumber>;
|
|
498
|
+
judgeModelId: z.ZodOptional<z.ZodString>;
|
|
499
|
+
startedAt: z.ZodNumber;
|
|
500
|
+
updatedAt: z.ZodNumber;
|
|
501
|
+
pausedReason: z.ZodOptional<z.ZodString>;
|
|
502
|
+
}, z.core.$strip>>;
|
|
503
|
+
}, z.core.$strip>>, "GET", "/harness/:harnessId/sessions/:resourceId/goal">;
|
|
504
|
+
export declare const SET_HARNESS_GOAL_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
|
|
505
|
+
harnessId: z.ZodString;
|
|
506
|
+
resourceId: z.ZodString;
|
|
507
|
+
}, z.core.$strip>, undefined, z.ZodObject<{
|
|
508
|
+
objective: z.ZodString;
|
|
509
|
+
judgeModelId: z.ZodOptional<z.ZodString>;
|
|
510
|
+
maxRuns: z.ZodOptional<z.ZodNumber>;
|
|
511
|
+
}, z.core.$strip>>, {
|
|
512
|
+
goal?: {
|
|
513
|
+
objective: string;
|
|
514
|
+
status: "paused" | "active" | "done";
|
|
515
|
+
runsUsed: number;
|
|
516
|
+
startedAt: number;
|
|
517
|
+
updatedAt: number;
|
|
518
|
+
id?: string | undefined;
|
|
519
|
+
maxRuns?: number | undefined;
|
|
520
|
+
judgeModelId?: string | undefined;
|
|
521
|
+
pausedReason?: string | undefined;
|
|
522
|
+
} | undefined;
|
|
523
|
+
}, "json", import("../server-adapter").RouteSchemas<z.ZodObject<{
|
|
524
|
+
harnessId: z.ZodString;
|
|
525
|
+
resourceId: z.ZodString;
|
|
526
|
+
}, z.core.$strip>, undefined, z.ZodObject<{
|
|
527
|
+
objective: z.ZodString;
|
|
528
|
+
judgeModelId: z.ZodOptional<z.ZodString>;
|
|
529
|
+
maxRuns: z.ZodOptional<z.ZodNumber>;
|
|
530
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
531
|
+
goal: z.ZodOptional<z.ZodObject<{
|
|
532
|
+
id: z.ZodOptional<z.ZodString>;
|
|
533
|
+
objective: z.ZodString;
|
|
534
|
+
status: z.ZodEnum<{
|
|
535
|
+
paused: "paused";
|
|
536
|
+
active: "active";
|
|
537
|
+
done: "done";
|
|
538
|
+
}>;
|
|
539
|
+
runsUsed: z.ZodNumber;
|
|
540
|
+
maxRuns: z.ZodOptional<z.ZodNumber>;
|
|
541
|
+
judgeModelId: z.ZodOptional<z.ZodString>;
|
|
542
|
+
startedAt: z.ZodNumber;
|
|
543
|
+
updatedAt: z.ZodNumber;
|
|
544
|
+
pausedReason: z.ZodOptional<z.ZodString>;
|
|
545
|
+
}, z.core.$strip>>;
|
|
546
|
+
}, z.core.$strip>>, "POST", "/harness/:harnessId/sessions/:resourceId/goal">;
|
|
547
|
+
export declare const UPDATE_HARNESS_GOAL_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
|
|
548
|
+
harnessId: z.ZodString;
|
|
549
|
+
resourceId: z.ZodString;
|
|
550
|
+
}, z.core.$strip>, undefined, z.ZodObject<{
|
|
551
|
+
judgeModelId: z.ZodOptional<z.ZodString>;
|
|
552
|
+
maxRuns: z.ZodOptional<z.ZodNumber>;
|
|
553
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
554
|
+
paused: "paused";
|
|
555
|
+
active: "active";
|
|
556
|
+
done: "done";
|
|
557
|
+
}>>;
|
|
558
|
+
}, z.core.$strip>>, {
|
|
559
|
+
goal?: {
|
|
560
|
+
objective: string;
|
|
561
|
+
status: "paused" | "active" | "done";
|
|
562
|
+
runsUsed: number;
|
|
563
|
+
startedAt: number;
|
|
564
|
+
updatedAt: number;
|
|
565
|
+
id?: string | undefined;
|
|
566
|
+
maxRuns?: number | undefined;
|
|
567
|
+
judgeModelId?: string | undefined;
|
|
568
|
+
pausedReason?: string | undefined;
|
|
569
|
+
} | undefined;
|
|
570
|
+
}, "json", import("../server-adapter").RouteSchemas<z.ZodObject<{
|
|
571
|
+
harnessId: z.ZodString;
|
|
572
|
+
resourceId: z.ZodString;
|
|
573
|
+
}, z.core.$strip>, undefined, z.ZodObject<{
|
|
574
|
+
judgeModelId: z.ZodOptional<z.ZodString>;
|
|
575
|
+
maxRuns: z.ZodOptional<z.ZodNumber>;
|
|
576
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
577
|
+
paused: "paused";
|
|
578
|
+
active: "active";
|
|
579
|
+
done: "done";
|
|
580
|
+
}>>;
|
|
581
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
582
|
+
goal: z.ZodOptional<z.ZodObject<{
|
|
583
|
+
id: z.ZodOptional<z.ZodString>;
|
|
584
|
+
objective: z.ZodString;
|
|
585
|
+
status: z.ZodEnum<{
|
|
586
|
+
paused: "paused";
|
|
587
|
+
active: "active";
|
|
588
|
+
done: "done";
|
|
589
|
+
}>;
|
|
590
|
+
runsUsed: z.ZodNumber;
|
|
591
|
+
maxRuns: z.ZodOptional<z.ZodNumber>;
|
|
592
|
+
judgeModelId: z.ZodOptional<z.ZodString>;
|
|
593
|
+
startedAt: z.ZodNumber;
|
|
594
|
+
updatedAt: z.ZodNumber;
|
|
595
|
+
pausedReason: z.ZodOptional<z.ZodString>;
|
|
596
|
+
}, z.core.$strip>>;
|
|
597
|
+
}, z.core.$strip>>, "PUT", "/harness/:harnessId/sessions/:resourceId/goal">;
|
|
598
|
+
export declare const CLEAR_HARNESS_GOAL_ROUTE: import("../server-adapter").ServerRoute<{
|
|
599
|
+
harnessId: string;
|
|
600
|
+
resourceId: string;
|
|
601
|
+
}, {
|
|
602
|
+
ok: boolean;
|
|
603
|
+
}, "json", import("../server-adapter").RouteSchemas<z.ZodObject<{
|
|
604
|
+
harnessId: z.ZodString;
|
|
605
|
+
resourceId: z.ZodString;
|
|
606
|
+
}, z.core.$strip>, undefined, undefined, z.ZodObject<{
|
|
607
|
+
ok: z.ZodBoolean;
|
|
608
|
+
}, z.core.$strip>>, "DELETE", "/harness/:harnessId/sessions/:resourceId/goal">;
|
|
609
|
+
export declare const GET_HARNESS_PERMISSIONS_ROUTE: import("../server-adapter").ServerRoute<{
|
|
610
|
+
harnessId: string;
|
|
611
|
+
resourceId: string;
|
|
612
|
+
}, {
|
|
613
|
+
categories?: Record<string, "allow" | "ask" | "deny"> | undefined;
|
|
614
|
+
tools?: Record<string, "allow" | "ask" | "deny"> | undefined;
|
|
615
|
+
}, "json", import("../server-adapter").RouteSchemas<z.ZodObject<{
|
|
616
|
+
harnessId: z.ZodString;
|
|
617
|
+
resourceId: z.ZodString;
|
|
618
|
+
}, z.core.$strip>, undefined, undefined, z.ZodObject<{
|
|
619
|
+
categories: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
620
|
+
allow: "allow";
|
|
621
|
+
ask: "ask";
|
|
622
|
+
deny: "deny";
|
|
623
|
+
}>>>;
|
|
624
|
+
tools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
625
|
+
allow: "allow";
|
|
626
|
+
ask: "ask";
|
|
627
|
+
deny: "deny";
|
|
628
|
+
}>>>;
|
|
629
|
+
}, z.core.$strip>>, "GET", "/harness/:harnessId/sessions/:resourceId/permissions">;
|
|
630
|
+
export declare const SET_HARNESS_CATEGORY_PERMISSION_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
|
|
631
|
+
harnessId: z.ZodString;
|
|
632
|
+
resourceId: z.ZodString;
|
|
633
|
+
}, z.core.$strip>, undefined, z.ZodObject<{
|
|
634
|
+
category: z.ZodEnum<{
|
|
635
|
+
execute: "execute";
|
|
636
|
+
other: "other";
|
|
637
|
+
read: "read";
|
|
638
|
+
edit: "edit";
|
|
639
|
+
mcp: "mcp";
|
|
640
|
+
}>;
|
|
641
|
+
policy: z.ZodEnum<{
|
|
642
|
+
allow: "allow";
|
|
643
|
+
ask: "ask";
|
|
644
|
+
deny: "deny";
|
|
645
|
+
}>;
|
|
646
|
+
}, z.core.$strip>>, {
|
|
647
|
+
ok: boolean;
|
|
648
|
+
}, "json", import("../server-adapter").RouteSchemas<z.ZodObject<{
|
|
649
|
+
harnessId: z.ZodString;
|
|
650
|
+
resourceId: z.ZodString;
|
|
651
|
+
}, z.core.$strip>, undefined, z.ZodObject<{
|
|
652
|
+
category: z.ZodEnum<{
|
|
653
|
+
execute: "execute";
|
|
654
|
+
other: "other";
|
|
655
|
+
read: "read";
|
|
656
|
+
edit: "edit";
|
|
657
|
+
mcp: "mcp";
|
|
658
|
+
}>;
|
|
659
|
+
policy: z.ZodEnum<{
|
|
660
|
+
allow: "allow";
|
|
661
|
+
ask: "ask";
|
|
662
|
+
deny: "deny";
|
|
663
|
+
}>;
|
|
664
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
665
|
+
ok: z.ZodBoolean;
|
|
666
|
+
}, z.core.$strip>>, "PUT", "/harness/:harnessId/sessions/:resourceId/permissions/category">;
|
|
667
|
+
export declare const SET_HARNESS_TOOL_PERMISSION_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
|
|
668
|
+
harnessId: z.ZodString;
|
|
669
|
+
resourceId: z.ZodString;
|
|
670
|
+
}, z.core.$strip>, undefined, z.ZodObject<{
|
|
671
|
+
toolName: z.ZodString;
|
|
672
|
+
policy: z.ZodEnum<{
|
|
673
|
+
allow: "allow";
|
|
674
|
+
ask: "ask";
|
|
675
|
+
deny: "deny";
|
|
676
|
+
}>;
|
|
677
|
+
}, z.core.$strip>>, {
|
|
678
|
+
ok: boolean;
|
|
679
|
+
}, "json", import("../server-adapter").RouteSchemas<z.ZodObject<{
|
|
680
|
+
harnessId: z.ZodString;
|
|
681
|
+
resourceId: z.ZodString;
|
|
682
|
+
}, z.core.$strip>, undefined, z.ZodObject<{
|
|
683
|
+
toolName: z.ZodString;
|
|
684
|
+
policy: z.ZodEnum<{
|
|
685
|
+
allow: "allow";
|
|
686
|
+
ask: "ask";
|
|
687
|
+
deny: "deny";
|
|
688
|
+
}>;
|
|
689
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
690
|
+
ok: z.ZodBoolean;
|
|
691
|
+
}, z.core.$strip>>, "PUT", "/harness/:harnessId/sessions/:resourceId/permissions/tool">;
|
|
692
|
+
export declare const SET_HARNESS_SESSION_STATE_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
|
|
693
|
+
harnessId: z.ZodString;
|
|
694
|
+
resourceId: z.ZodString;
|
|
695
|
+
}, z.core.$strip>, undefined, z.ZodObject<{
|
|
696
|
+
state: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
697
|
+
}, z.core.$strip>>, {
|
|
698
|
+
ok: boolean;
|
|
699
|
+
}, "json", import("../server-adapter").RouteSchemas<z.ZodObject<{
|
|
700
|
+
harnessId: z.ZodString;
|
|
701
|
+
resourceId: z.ZodString;
|
|
702
|
+
}, z.core.$strip>, undefined, z.ZodObject<{
|
|
703
|
+
state: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
704
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
705
|
+
ok: z.ZodBoolean;
|
|
706
|
+
}, z.core.$strip>>, "PUT", "/harness/:harnessId/sessions/:resourceId/state">;
|
|
707
|
+
//# sourceMappingURL=harness.d.ts.map
|