@anchrd/intel-contract 0.13.0 → 0.14.0
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/dist/contract/bundle.d.ts +85 -0
- package/dist/contract/bundle.js +63 -0
- package/dist/contract/contract.d.ts +3 -2245
- package/dist/contract/contract.js +24 -1108
- package/dist/contract/flow-run.d.ts +346 -0
- package/dist/contract/flow-run.js +181 -0
- package/dist/contract/flow.d.ts +995 -0
- package/dist/contract/flow.js +417 -0
- package/dist/contract/node.d.ts +402 -0
- package/dist/contract/node.js +286 -0
- package/dist/contract/share.d.ts +142 -0
- package/dist/contract/share.js +67 -0
- package/dist/contract/table.d.ts +162 -0
- package/dist/contract/table.js +117 -0
- package/dist/contract/tool.d.ts +122 -0
- package/dist/contract/tool.js +172 -0
- package/package.json +29 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const IntelId: z.ZodString;
|
|
3
3
|
export declare const IsoDateTime: z.ZodISODateTime;
|
|
4
|
+
export declare const IdempotencyKey: z.ZodString;
|
|
4
5
|
export declare const UI_LANGUAGES: readonly ["en", "de", "es"];
|
|
5
6
|
export type UiLanguage = (typeof UI_LANGUAGES)[number];
|
|
6
7
|
export declare const ProblemDetails: z.ZodObject<{
|
|
@@ -16,2252 +17,9 @@ export declare const SessionUser: z.ZodObject<{
|
|
|
16
17
|
id: z.ZodString;
|
|
17
18
|
email: z.ZodEmail;
|
|
18
19
|
name: z.ZodNullable<z.ZodString>;
|
|
20
|
+
isAdmin: z.ZodBoolean;
|
|
19
21
|
}, z.core.$strict>;
|
|
20
22
|
export type SessionUser = z.infer<typeof SessionUser>;
|
|
21
|
-
export declare const
|
|
22
|
-
folder: "folder";
|
|
23
|
-
document: "document";
|
|
24
|
-
attachment: "attachment";
|
|
25
|
-
table: "table";
|
|
26
|
-
}>;
|
|
27
|
-
export type NodeKind = z.infer<typeof NodeKind>;
|
|
28
|
-
export declare const ResourceVerb: z.ZodEnum<{
|
|
29
|
-
read: "read";
|
|
30
|
-
write: "write";
|
|
31
|
-
execute: "execute";
|
|
32
|
-
share: "share";
|
|
33
|
-
}>;
|
|
34
|
-
export type ResourceVerb = z.infer<typeof ResourceVerb>;
|
|
35
|
-
export declare const SharePrincipal: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
36
|
-
type: z.ZodLiteral<"user">;
|
|
37
|
-
id: z.ZodString;
|
|
38
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
39
|
-
type: z.ZodLiteral<"email">;
|
|
40
|
-
email: z.ZodEmail;
|
|
41
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
42
|
-
type: z.ZodLiteral<"organization">;
|
|
43
|
-
}, z.core.$strict>], "type">;
|
|
44
|
-
export type SharePrincipal = z.infer<typeof SharePrincipal>;
|
|
45
|
-
export declare const Node: z.ZodObject<{
|
|
46
|
-
id: z.ZodString;
|
|
47
|
-
parentId: z.ZodNullable<z.ZodString>;
|
|
48
|
-
kind: z.ZodEnum<{
|
|
49
|
-
folder: "folder";
|
|
50
|
-
document: "document";
|
|
51
|
-
attachment: "attachment";
|
|
52
|
-
table: "table";
|
|
53
|
-
}>;
|
|
54
|
-
title: z.ZodString;
|
|
55
|
-
description: z.ZodNullable<z.ZodString>;
|
|
56
|
-
ownerId: z.ZodString;
|
|
57
|
-
currentVersionId: z.ZodNullable<z.ZodString>;
|
|
58
|
-
createdAt: z.ZodISODateTime;
|
|
59
|
-
updatedAt: z.ZodISODateTime;
|
|
60
|
-
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
61
|
-
}, z.core.$strict>;
|
|
62
|
-
export type Node = z.infer<typeof Node>;
|
|
63
|
-
export declare const NodeVersionSegment: z.ZodEnum<{
|
|
64
|
-
append: "append";
|
|
65
|
-
snapshot: "snapshot";
|
|
66
|
-
}>;
|
|
67
|
-
export type NodeVersionSegment = z.infer<typeof NodeVersionSegment>;
|
|
68
|
-
export declare const NodeVersion: z.ZodObject<{
|
|
69
|
-
id: z.ZodString;
|
|
70
|
-
nodeId: z.ZodString;
|
|
71
|
-
sequence: z.ZodNumber;
|
|
72
|
-
contentKey: z.ZodString;
|
|
73
|
-
mediaType: z.ZodString;
|
|
74
|
-
contentHash: z.ZodString;
|
|
75
|
-
size: z.ZodNumber;
|
|
76
|
-
segment: z.ZodNullable<z.ZodEnum<{
|
|
77
|
-
append: "append";
|
|
78
|
-
snapshot: "snapshot";
|
|
79
|
-
}>>;
|
|
80
|
-
createdBy: z.ZodString;
|
|
81
|
-
createdAt: z.ZodISODateTime;
|
|
82
|
-
}, z.core.$strict>;
|
|
83
|
-
export type NodeVersion = z.infer<typeof NodeVersion>;
|
|
84
|
-
export declare const ListNodesInput: z.ZodObject<{
|
|
85
|
-
parentId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
86
|
-
includeArchived: z.ZodDefault<z.ZodBoolean>;
|
|
87
|
-
archivedOnly: z.ZodOptional<z.ZodBoolean>;
|
|
88
|
-
}, z.core.$strict>;
|
|
89
|
-
export type ListNodesInput = z.infer<typeof ListNodesInput>;
|
|
90
|
-
export declare const GetNodeInput: z.ZodObject<{
|
|
91
|
-
nodeId: z.ZodString;
|
|
92
|
-
}, z.core.$strict>;
|
|
93
|
-
export type GetNodeInput = z.infer<typeof GetNodeInput>;
|
|
94
|
-
export declare const GetNodeVersionInput: z.ZodObject<{
|
|
95
|
-
nodeId: z.ZodString;
|
|
96
|
-
versionId: z.ZodString;
|
|
97
|
-
}, z.core.$strict>;
|
|
98
|
-
export type GetNodeVersionInput = z.infer<typeof GetNodeVersionInput>;
|
|
99
|
-
export declare const ListGrantsInput: z.ZodObject<{
|
|
100
|
-
resourceId: z.ZodString;
|
|
101
|
-
}, z.core.$strict>;
|
|
102
|
-
export type ListGrantsInput = z.infer<typeof ListGrantsInput>;
|
|
103
|
-
export declare const CreateNodeInput: z.ZodObject<{
|
|
104
|
-
parentId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
105
|
-
kind: z.ZodEnum<{
|
|
106
|
-
folder: "folder";
|
|
107
|
-
document: "document";
|
|
108
|
-
attachment: "attachment";
|
|
109
|
-
table: "table";
|
|
110
|
-
}>;
|
|
111
|
-
title: z.ZodString;
|
|
112
|
-
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
113
|
-
idempotencyKey: z.ZodString;
|
|
114
|
-
}, z.core.$strict>;
|
|
115
|
-
export type CreateNodeInput = z.infer<typeof CreateNodeInput>;
|
|
116
|
-
export declare const SaveNodeVersionInput: z.ZodObject<{
|
|
117
|
-
nodeId: z.ZodString;
|
|
118
|
-
baseVersionId: z.ZodNullable<z.ZodString>;
|
|
119
|
-
content: z.ZodString;
|
|
120
|
-
mediaType: z.ZodDefault<z.ZodString>;
|
|
121
|
-
idempotencyKey: z.ZodString;
|
|
122
|
-
}, z.core.$strict>;
|
|
123
|
-
export type SaveNodeVersionInput = z.infer<typeof SaveNodeVersionInput>;
|
|
124
|
-
export declare const SaveAttachmentInput: z.ZodObject<{
|
|
125
|
-
nodeId: z.ZodString;
|
|
126
|
-
baseVersionId: z.ZodNullable<z.ZodString>;
|
|
127
|
-
contentBase64: z.ZodString;
|
|
128
|
-
mediaType: z.ZodString;
|
|
129
|
-
idempotencyKey: z.ZodString;
|
|
130
|
-
}, z.core.$strict>;
|
|
131
|
-
export type SaveAttachmentInput = z.infer<typeof SaveAttachmentInput>;
|
|
132
|
-
export declare const UpdateNodeInput: z.ZodObject<{
|
|
133
|
-
nodeId: z.ZodString;
|
|
134
|
-
baseUpdatedAt: z.ZodISODateTime;
|
|
135
|
-
title: z.ZodOptional<z.ZodString>;
|
|
136
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
137
|
-
parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
138
|
-
idempotencyKey: z.ZodString;
|
|
139
|
-
}, z.core.$strict>;
|
|
140
|
-
export type UpdateNodeInput = z.infer<typeof UpdateNodeInput>;
|
|
141
|
-
export declare const ArchiveNodeInput: z.ZodObject<{
|
|
142
|
-
nodeId: z.ZodString;
|
|
143
|
-
baseUpdatedAt: z.ZodISODateTime;
|
|
144
|
-
archived: z.ZodBoolean;
|
|
145
|
-
idempotencyKey: z.ZodString;
|
|
146
|
-
}, z.core.$strict>;
|
|
147
|
-
export type ArchiveNodeInput = z.infer<typeof ArchiveNodeInput>;
|
|
148
|
-
export declare const NodeList: z.ZodObject<{
|
|
149
|
-
items: z.ZodArray<z.ZodObject<{
|
|
150
|
-
id: z.ZodString;
|
|
151
|
-
parentId: z.ZodNullable<z.ZodString>;
|
|
152
|
-
kind: z.ZodEnum<{
|
|
153
|
-
folder: "folder";
|
|
154
|
-
document: "document";
|
|
155
|
-
attachment: "attachment";
|
|
156
|
-
table: "table";
|
|
157
|
-
}>;
|
|
158
|
-
title: z.ZodString;
|
|
159
|
-
description: z.ZodNullable<z.ZodString>;
|
|
160
|
-
ownerId: z.ZodString;
|
|
161
|
-
currentVersionId: z.ZodNullable<z.ZodString>;
|
|
162
|
-
createdAt: z.ZodISODateTime;
|
|
163
|
-
updatedAt: z.ZodISODateTime;
|
|
164
|
-
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
165
|
-
}, z.core.$strict>>;
|
|
166
|
-
withChildren: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
167
|
-
}, z.core.$strict>;
|
|
168
|
-
export type NodeList = z.infer<typeof NodeList>;
|
|
169
|
-
export declare const NodeVersionList: z.ZodObject<{
|
|
170
|
-
items: z.ZodArray<z.ZodObject<{
|
|
171
|
-
id: z.ZodString;
|
|
172
|
-
nodeId: z.ZodString;
|
|
173
|
-
sequence: z.ZodNumber;
|
|
174
|
-
contentKey: z.ZodString;
|
|
175
|
-
mediaType: z.ZodString;
|
|
176
|
-
contentHash: z.ZodString;
|
|
177
|
-
size: z.ZodNumber;
|
|
178
|
-
segment: z.ZodNullable<z.ZodEnum<{
|
|
179
|
-
append: "append";
|
|
180
|
-
snapshot: "snapshot";
|
|
181
|
-
}>>;
|
|
182
|
-
createdBy: z.ZodString;
|
|
183
|
-
createdAt: z.ZodISODateTime;
|
|
184
|
-
}, z.core.$strict>>;
|
|
185
|
-
}, z.core.$strict>;
|
|
186
|
-
export type NodeVersionList = z.infer<typeof NodeVersionList>;
|
|
187
|
-
export declare const NodeDocument: z.ZodObject<{
|
|
188
|
-
node: z.ZodObject<{
|
|
189
|
-
id: z.ZodString;
|
|
190
|
-
parentId: z.ZodNullable<z.ZodString>;
|
|
191
|
-
kind: z.ZodEnum<{
|
|
192
|
-
folder: "folder";
|
|
193
|
-
document: "document";
|
|
194
|
-
attachment: "attachment";
|
|
195
|
-
table: "table";
|
|
196
|
-
}>;
|
|
197
|
-
title: z.ZodString;
|
|
198
|
-
description: z.ZodNullable<z.ZodString>;
|
|
199
|
-
ownerId: z.ZodString;
|
|
200
|
-
currentVersionId: z.ZodNullable<z.ZodString>;
|
|
201
|
-
createdAt: z.ZodISODateTime;
|
|
202
|
-
updatedAt: z.ZodISODateTime;
|
|
203
|
-
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
204
|
-
}, z.core.$strict>;
|
|
205
|
-
version: z.ZodNullable<z.ZodObject<{
|
|
206
|
-
id: z.ZodString;
|
|
207
|
-
nodeId: z.ZodString;
|
|
208
|
-
sequence: z.ZodNumber;
|
|
209
|
-
contentKey: z.ZodString;
|
|
210
|
-
mediaType: z.ZodString;
|
|
211
|
-
contentHash: z.ZodString;
|
|
212
|
-
size: z.ZodNumber;
|
|
213
|
-
segment: z.ZodNullable<z.ZodEnum<{
|
|
214
|
-
append: "append";
|
|
215
|
-
snapshot: "snapshot";
|
|
216
|
-
}>>;
|
|
217
|
-
createdBy: z.ZodString;
|
|
218
|
-
createdAt: z.ZodISODateTime;
|
|
219
|
-
}, z.core.$strict>>;
|
|
220
|
-
content: z.ZodNullable<z.ZodString>;
|
|
221
|
-
}, z.core.$strict>;
|
|
222
|
-
export type NodeDocument = z.infer<typeof NodeDocument>;
|
|
223
|
-
export declare const NodeAttachment: z.ZodObject<{
|
|
224
|
-
node: z.ZodObject<{
|
|
225
|
-
id: z.ZodString;
|
|
226
|
-
parentId: z.ZodNullable<z.ZodString>;
|
|
227
|
-
kind: z.ZodEnum<{
|
|
228
|
-
folder: "folder";
|
|
229
|
-
document: "document";
|
|
230
|
-
attachment: "attachment";
|
|
231
|
-
table: "table";
|
|
232
|
-
}>;
|
|
233
|
-
title: z.ZodString;
|
|
234
|
-
description: z.ZodNullable<z.ZodString>;
|
|
235
|
-
ownerId: z.ZodString;
|
|
236
|
-
currentVersionId: z.ZodNullable<z.ZodString>;
|
|
237
|
-
createdAt: z.ZodISODateTime;
|
|
238
|
-
updatedAt: z.ZodISODateTime;
|
|
239
|
-
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
240
|
-
}, z.core.$strict>;
|
|
241
|
-
version: z.ZodObject<{
|
|
242
|
-
id: z.ZodString;
|
|
243
|
-
nodeId: z.ZodString;
|
|
244
|
-
sequence: z.ZodNumber;
|
|
245
|
-
contentKey: z.ZodString;
|
|
246
|
-
mediaType: z.ZodString;
|
|
247
|
-
contentHash: z.ZodString;
|
|
248
|
-
size: z.ZodNumber;
|
|
249
|
-
segment: z.ZodNullable<z.ZodEnum<{
|
|
250
|
-
append: "append";
|
|
251
|
-
snapshot: "snapshot";
|
|
252
|
-
}>>;
|
|
253
|
-
createdBy: z.ZodString;
|
|
254
|
-
createdAt: z.ZodISODateTime;
|
|
255
|
-
}, z.core.$strict>;
|
|
256
|
-
resourceUri: z.ZodString;
|
|
257
|
-
}, z.core.$strict>;
|
|
258
|
-
export type NodeAttachment = z.infer<typeof NodeAttachment>;
|
|
259
|
-
export declare const TableMediaType = "text/csv";
|
|
260
|
-
export declare const TableColumn: z.ZodString;
|
|
261
|
-
export declare const TableCell: z.ZodString;
|
|
262
|
-
export declare const TableRow: z.ZodArray<z.ZodString>;
|
|
263
|
-
export declare const DefineTableInput: z.ZodObject<{
|
|
264
|
-
nodeId: z.ZodString;
|
|
265
|
-
columns: z.ZodArray<z.ZodString>;
|
|
266
|
-
idempotencyKey: z.ZodString;
|
|
267
|
-
}, z.core.$strict>;
|
|
268
|
-
export type DefineTableInput = z.infer<typeof DefineTableInput>;
|
|
269
|
-
export declare const AppendTableRowsInput: z.ZodObject<{
|
|
270
|
-
nodeId: z.ZodString;
|
|
271
|
-
rows: z.ZodArray<z.ZodArray<z.ZodString>>;
|
|
272
|
-
idempotencyKey: z.ZodString;
|
|
273
|
-
}, z.core.$strict>;
|
|
274
|
-
export type AppendTableRowsInput = z.infer<typeof AppendTableRowsInput>;
|
|
275
|
-
export declare const GetTableInput: z.ZodObject<{
|
|
276
|
-
nodeId: z.ZodString;
|
|
277
|
-
}, z.core.$strict>;
|
|
278
|
-
export type GetTableInput = z.infer<typeof GetTableInput>;
|
|
279
|
-
export declare const NodeTable: z.ZodObject<{
|
|
280
|
-
node: z.ZodObject<{
|
|
281
|
-
id: z.ZodString;
|
|
282
|
-
parentId: z.ZodNullable<z.ZodString>;
|
|
283
|
-
kind: z.ZodEnum<{
|
|
284
|
-
folder: "folder";
|
|
285
|
-
document: "document";
|
|
286
|
-
attachment: "attachment";
|
|
287
|
-
table: "table";
|
|
288
|
-
}>;
|
|
289
|
-
title: z.ZodString;
|
|
290
|
-
description: z.ZodNullable<z.ZodString>;
|
|
291
|
-
ownerId: z.ZodString;
|
|
292
|
-
currentVersionId: z.ZodNullable<z.ZodString>;
|
|
293
|
-
createdAt: z.ZodISODateTime;
|
|
294
|
-
updatedAt: z.ZodISODateTime;
|
|
295
|
-
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
296
|
-
}, z.core.$strict>;
|
|
297
|
-
columns: z.ZodArray<z.ZodString>;
|
|
298
|
-
rows: z.ZodArray<z.ZodArray<z.ZodString>>;
|
|
299
|
-
versionId: z.ZodNullable<z.ZodString>;
|
|
300
|
-
}, z.core.$strict>;
|
|
301
|
-
export type NodeTable = z.infer<typeof NodeTable>;
|
|
302
|
-
export declare const AppendTableRowsResult: z.ZodObject<{
|
|
303
|
-
node: z.ZodObject<{
|
|
304
|
-
id: z.ZodString;
|
|
305
|
-
parentId: z.ZodNullable<z.ZodString>;
|
|
306
|
-
kind: z.ZodEnum<{
|
|
307
|
-
folder: "folder";
|
|
308
|
-
document: "document";
|
|
309
|
-
attachment: "attachment";
|
|
310
|
-
table: "table";
|
|
311
|
-
}>;
|
|
312
|
-
title: z.ZodString;
|
|
313
|
-
description: z.ZodNullable<z.ZodString>;
|
|
314
|
-
ownerId: z.ZodString;
|
|
315
|
-
currentVersionId: z.ZodNullable<z.ZodString>;
|
|
316
|
-
createdAt: z.ZodISODateTime;
|
|
317
|
-
updatedAt: z.ZodISODateTime;
|
|
318
|
-
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
319
|
-
}, z.core.$strict>;
|
|
320
|
-
version: z.ZodObject<{
|
|
321
|
-
id: z.ZodString;
|
|
322
|
-
nodeId: z.ZodString;
|
|
323
|
-
sequence: z.ZodNumber;
|
|
324
|
-
contentKey: z.ZodString;
|
|
325
|
-
mediaType: z.ZodString;
|
|
326
|
-
contentHash: z.ZodString;
|
|
327
|
-
size: z.ZodNumber;
|
|
328
|
-
segment: z.ZodNullable<z.ZodEnum<{
|
|
329
|
-
append: "append";
|
|
330
|
-
snapshot: "snapshot";
|
|
331
|
-
}>>;
|
|
332
|
-
createdBy: z.ZodString;
|
|
333
|
-
createdAt: z.ZodISODateTime;
|
|
334
|
-
}, z.core.$strict>;
|
|
335
|
-
appended: z.ZodNumber;
|
|
336
|
-
}, z.core.$strict>;
|
|
337
|
-
export type AppendTableRowsResult = z.infer<typeof AppendTableRowsResult>;
|
|
338
|
-
export declare const TableRowPosition: z.ZodNumber;
|
|
339
|
-
export declare const UpdateTableRowsInput: z.ZodObject<{
|
|
340
|
-
nodeId: z.ZodString;
|
|
341
|
-
baseVersionId: z.ZodString;
|
|
342
|
-
updates: z.ZodArray<z.ZodObject<{
|
|
343
|
-
position: z.ZodNumber;
|
|
344
|
-
row: z.ZodArray<z.ZodString>;
|
|
345
|
-
}, z.core.$strict>>;
|
|
346
|
-
idempotencyKey: z.ZodString;
|
|
347
|
-
}, z.core.$strict>;
|
|
348
|
-
export type UpdateTableRowsInput = z.infer<typeof UpdateTableRowsInput>;
|
|
349
|
-
export declare const UpdateTableRowsResult: z.ZodObject<{
|
|
350
|
-
node: z.ZodObject<{
|
|
351
|
-
id: z.ZodString;
|
|
352
|
-
parentId: z.ZodNullable<z.ZodString>;
|
|
353
|
-
kind: z.ZodEnum<{
|
|
354
|
-
folder: "folder";
|
|
355
|
-
document: "document";
|
|
356
|
-
attachment: "attachment";
|
|
357
|
-
table: "table";
|
|
358
|
-
}>;
|
|
359
|
-
title: z.ZodString;
|
|
360
|
-
description: z.ZodNullable<z.ZodString>;
|
|
361
|
-
ownerId: z.ZodString;
|
|
362
|
-
currentVersionId: z.ZodNullable<z.ZodString>;
|
|
363
|
-
createdAt: z.ZodISODateTime;
|
|
364
|
-
updatedAt: z.ZodISODateTime;
|
|
365
|
-
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
366
|
-
}, z.core.$strict>;
|
|
367
|
-
version: z.ZodObject<{
|
|
368
|
-
id: z.ZodString;
|
|
369
|
-
nodeId: z.ZodString;
|
|
370
|
-
sequence: z.ZodNumber;
|
|
371
|
-
contentKey: z.ZodString;
|
|
372
|
-
mediaType: z.ZodString;
|
|
373
|
-
contentHash: z.ZodString;
|
|
374
|
-
size: z.ZodNumber;
|
|
375
|
-
segment: z.ZodNullable<z.ZodEnum<{
|
|
376
|
-
append: "append";
|
|
377
|
-
snapshot: "snapshot";
|
|
378
|
-
}>>;
|
|
379
|
-
createdBy: z.ZodString;
|
|
380
|
-
createdAt: z.ZodISODateTime;
|
|
381
|
-
}, z.core.$strict>;
|
|
382
|
-
updated: z.ZodNumber;
|
|
383
|
-
}, z.core.$strict>;
|
|
384
|
-
export type UpdateTableRowsResult = z.infer<typeof UpdateTableRowsResult>;
|
|
385
|
-
export declare const DeleteTableRowsInput: z.ZodObject<{
|
|
386
|
-
nodeId: z.ZodString;
|
|
387
|
-
baseVersionId: z.ZodString;
|
|
388
|
-
positions: z.ZodArray<z.ZodNumber>;
|
|
389
|
-
idempotencyKey: z.ZodString;
|
|
390
|
-
}, z.core.$strict>;
|
|
391
|
-
export type DeleteTableRowsInput = z.infer<typeof DeleteTableRowsInput>;
|
|
392
|
-
export declare const DeleteTableRowsResult: z.ZodObject<{
|
|
393
|
-
node: z.ZodObject<{
|
|
394
|
-
id: z.ZodString;
|
|
395
|
-
parentId: z.ZodNullable<z.ZodString>;
|
|
396
|
-
kind: z.ZodEnum<{
|
|
397
|
-
folder: "folder";
|
|
398
|
-
document: "document";
|
|
399
|
-
attachment: "attachment";
|
|
400
|
-
table: "table";
|
|
401
|
-
}>;
|
|
402
|
-
title: z.ZodString;
|
|
403
|
-
description: z.ZodNullable<z.ZodString>;
|
|
404
|
-
ownerId: z.ZodString;
|
|
405
|
-
currentVersionId: z.ZodNullable<z.ZodString>;
|
|
406
|
-
createdAt: z.ZodISODateTime;
|
|
407
|
-
updatedAt: z.ZodISODateTime;
|
|
408
|
-
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
409
|
-
}, z.core.$strict>;
|
|
410
|
-
version: z.ZodObject<{
|
|
411
|
-
id: z.ZodString;
|
|
412
|
-
nodeId: z.ZodString;
|
|
413
|
-
sequence: z.ZodNumber;
|
|
414
|
-
contentKey: z.ZodString;
|
|
415
|
-
mediaType: z.ZodString;
|
|
416
|
-
contentHash: z.ZodString;
|
|
417
|
-
size: z.ZodNumber;
|
|
418
|
-
segment: z.ZodNullable<z.ZodEnum<{
|
|
419
|
-
append: "append";
|
|
420
|
-
snapshot: "snapshot";
|
|
421
|
-
}>>;
|
|
422
|
-
createdBy: z.ZodString;
|
|
423
|
-
createdAt: z.ZodISODateTime;
|
|
424
|
-
}, z.core.$strict>;
|
|
425
|
-
deleted: z.ZodNumber;
|
|
426
|
-
}, z.core.$strict>;
|
|
427
|
-
export type DeleteTableRowsResult = z.infer<typeof DeleteTableRowsResult>;
|
|
428
|
-
export declare const RedefineTableColumn: z.ZodObject<{
|
|
429
|
-
name: z.ZodString;
|
|
430
|
-
source: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
431
|
-
}, z.core.$strict>;
|
|
432
|
-
export type RedefineTableColumn = z.infer<typeof RedefineTableColumn>;
|
|
433
|
-
export declare const RedefineTableInput: z.ZodObject<{
|
|
434
|
-
nodeId: z.ZodString;
|
|
435
|
-
baseVersionId: z.ZodString;
|
|
436
|
-
columns: z.ZodArray<z.ZodObject<{
|
|
437
|
-
name: z.ZodString;
|
|
438
|
-
source: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
439
|
-
}, z.core.$strict>>;
|
|
440
|
-
idempotencyKey: z.ZodString;
|
|
441
|
-
}, z.core.$strict>;
|
|
442
|
-
export type RedefineTableInput = z.infer<typeof RedefineTableInput>;
|
|
443
|
-
/**
|
|
444
|
-
* One MCP server as the portal names it. The handle is what the portal puts in front of every tool
|
|
445
|
-
* that server offers (`notion_notion-search` belongs to `notion`), and it is the only identifier
|
|
446
|
-
* Intel can both store and recognise again in a live `tools/list`.
|
|
447
|
-
*
|
|
448
|
-
* ⚠️ A handle is never invented from a tool name. Which servers exist is the portal's answer
|
|
449
|
-
* (`portal_list_servers`), and the prefix is only used to attribute a tool to a server that answer
|
|
450
|
-
* already named — see `packages/api/src/tools/tool-servers` for why splitting on the underscore
|
|
451
|
-
* alone would be ambiguous.
|
|
452
|
-
*/
|
|
453
|
-
export declare const ToolServerHandle: z.ZodString;
|
|
454
|
-
export type ToolServerHandle = z.infer<typeof ToolServerHandle>;
|
|
455
|
-
export declare const NodeLinkRelation: z.ZodEnum<{
|
|
456
|
-
references: "references";
|
|
457
|
-
related: "related";
|
|
458
|
-
depends_on: "depends_on";
|
|
459
|
-
implements: "implements";
|
|
460
|
-
}>;
|
|
461
|
-
export type NodeLinkRelation = z.infer<typeof NodeLinkRelation>;
|
|
462
|
-
export declare const NodeLinkOrigin: z.ZodEnum<{
|
|
463
|
-
text: "text";
|
|
464
|
-
manual: "manual";
|
|
465
|
-
}>;
|
|
466
|
-
export type NodeLinkOrigin = z.infer<typeof NodeLinkOrigin>;
|
|
467
|
-
export declare const NodeLink: z.ZodObject<{
|
|
468
|
-
id: z.ZodString;
|
|
469
|
-
sourceNodeId: z.ZodString;
|
|
470
|
-
targetNodeId: z.ZodString;
|
|
471
|
-
relation: z.ZodEnum<{
|
|
472
|
-
references: "references";
|
|
473
|
-
related: "related";
|
|
474
|
-
depends_on: "depends_on";
|
|
475
|
-
implements: "implements";
|
|
476
|
-
}>;
|
|
477
|
-
origin: z.ZodEnum<{
|
|
478
|
-
text: "text";
|
|
479
|
-
manual: "manual";
|
|
480
|
-
}>;
|
|
481
|
-
label: z.ZodNullable<z.ZodString>;
|
|
482
|
-
createdBy: z.ZodString;
|
|
483
|
-
createdAt: z.ZodISODateTime;
|
|
484
|
-
}, z.core.$strict>;
|
|
485
|
-
export type NodeLink = z.infer<typeof NodeLink>;
|
|
486
|
-
export declare const NodeLinkList: z.ZodObject<{
|
|
487
|
-
items: z.ZodArray<z.ZodObject<{
|
|
488
|
-
id: z.ZodString;
|
|
489
|
-
sourceNodeId: z.ZodString;
|
|
490
|
-
targetNodeId: z.ZodString;
|
|
491
|
-
relation: z.ZodEnum<{
|
|
492
|
-
references: "references";
|
|
493
|
-
related: "related";
|
|
494
|
-
depends_on: "depends_on";
|
|
495
|
-
implements: "implements";
|
|
496
|
-
}>;
|
|
497
|
-
origin: z.ZodEnum<{
|
|
498
|
-
text: "text";
|
|
499
|
-
manual: "manual";
|
|
500
|
-
}>;
|
|
501
|
-
label: z.ZodNullable<z.ZodString>;
|
|
502
|
-
createdBy: z.ZodString;
|
|
503
|
-
createdAt: z.ZodISODateTime;
|
|
504
|
-
}, z.core.$strict>>;
|
|
505
|
-
}, z.core.$strict>;
|
|
506
|
-
export type NodeLinkList = z.infer<typeof NodeLinkList>;
|
|
507
|
-
export declare const DocumentLinkInlineType = "documentLink";
|
|
508
|
-
export declare const ResolveNodeLinksInput: z.ZodObject<{
|
|
509
|
-
nodeIds: z.ZodArray<z.ZodString>;
|
|
510
|
-
}, z.core.$strict>;
|
|
511
|
-
export type ResolveNodeLinksInput = z.infer<typeof ResolveNodeLinksInput>;
|
|
512
|
-
export declare const ResolvedNodeLink: z.ZodObject<{
|
|
513
|
-
nodeId: z.ZodString;
|
|
514
|
-
title: z.ZodString;
|
|
515
|
-
}, z.core.$strict>;
|
|
516
|
-
export type ResolvedNodeLink = z.infer<typeof ResolvedNodeLink>;
|
|
517
|
-
export declare const ResolveNodeLinksResult: z.ZodObject<{
|
|
518
|
-
items: z.ZodArray<z.ZodObject<{
|
|
519
|
-
nodeId: z.ZodString;
|
|
520
|
-
title: z.ZodString;
|
|
521
|
-
}, z.core.$strict>>;
|
|
522
|
-
}, z.core.$strict>;
|
|
523
|
-
export type ResolveNodeLinksResult = z.infer<typeof ResolveNodeLinksResult>;
|
|
524
|
-
export declare const NodeGraphInput: z.ZodObject<{
|
|
525
|
-
limit: z.ZodDefault<z.ZodNumber>;
|
|
526
|
-
}, z.core.$strict>;
|
|
527
|
-
export type NodeGraphInput = z.infer<typeof NodeGraphInput>;
|
|
528
|
-
export declare const NodeGraph: z.ZodObject<{
|
|
529
|
-
nodes: z.ZodArray<z.ZodObject<{
|
|
530
|
-
id: z.ZodString;
|
|
531
|
-
parentId: z.ZodNullable<z.ZodString>;
|
|
532
|
-
kind: z.ZodEnum<{
|
|
533
|
-
folder: "folder";
|
|
534
|
-
document: "document";
|
|
535
|
-
attachment: "attachment";
|
|
536
|
-
table: "table";
|
|
537
|
-
}>;
|
|
538
|
-
title: z.ZodString;
|
|
539
|
-
description: z.ZodNullable<z.ZodString>;
|
|
540
|
-
ownerId: z.ZodString;
|
|
541
|
-
currentVersionId: z.ZodNullable<z.ZodString>;
|
|
542
|
-
createdAt: z.ZodISODateTime;
|
|
543
|
-
updatedAt: z.ZodISODateTime;
|
|
544
|
-
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
545
|
-
}, z.core.$strict>>;
|
|
546
|
-
links: z.ZodArray<z.ZodObject<{
|
|
547
|
-
id: z.ZodString;
|
|
548
|
-
sourceNodeId: z.ZodString;
|
|
549
|
-
targetNodeId: z.ZodString;
|
|
550
|
-
relation: z.ZodEnum<{
|
|
551
|
-
references: "references";
|
|
552
|
-
related: "related";
|
|
553
|
-
depends_on: "depends_on";
|
|
554
|
-
implements: "implements";
|
|
555
|
-
}>;
|
|
556
|
-
origin: z.ZodEnum<{
|
|
557
|
-
text: "text";
|
|
558
|
-
manual: "manual";
|
|
559
|
-
}>;
|
|
560
|
-
label: z.ZodNullable<z.ZodString>;
|
|
561
|
-
createdBy: z.ZodString;
|
|
562
|
-
createdAt: z.ZodISODateTime;
|
|
563
|
-
}, z.core.$strict>>;
|
|
564
|
-
}, z.core.$strict>;
|
|
565
|
-
export type NodeGraph = z.infer<typeof NodeGraph>;
|
|
566
|
-
export declare const BlockNoteMediaType = "application/vnd.anchrd.intel.blocknote+json";
|
|
567
|
-
export declare const BlockNoteDocument: z.ZodObject<{
|
|
568
|
-
format: z.ZodLiteral<"blocknote">;
|
|
569
|
-
schemaVersion: z.ZodLiteral<1>;
|
|
570
|
-
blocks: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
571
|
-
markdown: z.ZodString;
|
|
572
|
-
}, z.core.$strict>;
|
|
573
|
-
export type BlockNoteDocument = z.infer<typeof BlockNoteDocument>;
|
|
574
|
-
export declare const ResourceGrant: z.ZodObject<{
|
|
575
|
-
id: z.ZodString;
|
|
576
|
-
resourceId: z.ZodString;
|
|
577
|
-
principal: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
578
|
-
type: z.ZodLiteral<"user">;
|
|
579
|
-
id: z.ZodString;
|
|
580
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
581
|
-
type: z.ZodLiteral<"email">;
|
|
582
|
-
email: z.ZodEmail;
|
|
583
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
584
|
-
type: z.ZodLiteral<"organization">;
|
|
585
|
-
}, z.core.$strict>], "type">;
|
|
586
|
-
verb: z.ZodEnum<{
|
|
587
|
-
read: "read";
|
|
588
|
-
write: "write";
|
|
589
|
-
execute: "execute";
|
|
590
|
-
share: "share";
|
|
591
|
-
}>;
|
|
592
|
-
expiresAt: z.ZodNullable<z.ZodISODateTime>;
|
|
593
|
-
createdBy: z.ZodString;
|
|
594
|
-
createdAt: z.ZodISODateTime;
|
|
595
|
-
}, z.core.$strict>;
|
|
596
|
-
export type ResourceGrant = z.infer<typeof ResourceGrant>;
|
|
597
|
-
export declare const ShareInput: z.ZodObject<{
|
|
598
|
-
resourceId: z.ZodString;
|
|
599
|
-
principal: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
600
|
-
type: z.ZodLiteral<"user">;
|
|
601
|
-
id: z.ZodString;
|
|
602
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
603
|
-
type: z.ZodLiteral<"email">;
|
|
604
|
-
email: z.ZodEmail;
|
|
605
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
606
|
-
type: z.ZodLiteral<"organization">;
|
|
607
|
-
}, z.core.$strict>], "type">;
|
|
608
|
-
verb: z.ZodEnum<{
|
|
609
|
-
read: "read";
|
|
610
|
-
write: "write";
|
|
611
|
-
execute: "execute";
|
|
612
|
-
share: "share";
|
|
613
|
-
}>;
|
|
614
|
-
expiresAt: z.ZodDefault<z.ZodNullable<z.ZodISODateTime>>;
|
|
615
|
-
idempotencyKey: z.ZodString;
|
|
616
|
-
}, z.core.$strict>;
|
|
617
|
-
export type ShareInput = z.infer<typeof ShareInput>;
|
|
618
|
-
export declare const RevokeGrantInput: z.ZodObject<{
|
|
619
|
-
resourceId: z.ZodString;
|
|
620
|
-
grantId: z.ZodString;
|
|
621
|
-
idempotencyKey: z.ZodString;
|
|
622
|
-
}, z.core.$strict>;
|
|
623
|
-
export type RevokeGrantInput = z.infer<typeof RevokeGrantInput>;
|
|
624
|
-
export declare const UnreadableNodes: z.ZodObject<{
|
|
625
|
-
titles: z.ZodArray<z.ZodString>;
|
|
626
|
-
hidden: z.ZodNumber;
|
|
627
|
-
}, z.core.$strict>;
|
|
628
|
-
export type UnreadableNodes = z.infer<typeof UnreadableNodes>;
|
|
629
|
-
export declare const ShareResult: z.ZodObject<{
|
|
630
|
-
grant: z.ZodObject<{
|
|
631
|
-
id: z.ZodString;
|
|
632
|
-
resourceId: z.ZodString;
|
|
633
|
-
principal: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
634
|
-
type: z.ZodLiteral<"user">;
|
|
635
|
-
id: z.ZodString;
|
|
636
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
637
|
-
type: z.ZodLiteral<"email">;
|
|
638
|
-
email: z.ZodEmail;
|
|
639
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
640
|
-
type: z.ZodLiteral<"organization">;
|
|
641
|
-
}, z.core.$strict>], "type">;
|
|
642
|
-
verb: z.ZodEnum<{
|
|
643
|
-
read: "read";
|
|
644
|
-
write: "write";
|
|
645
|
-
execute: "execute";
|
|
646
|
-
share: "share";
|
|
647
|
-
}>;
|
|
648
|
-
expiresAt: z.ZodNullable<z.ZodISODateTime>;
|
|
649
|
-
createdBy: z.ZodString;
|
|
650
|
-
createdAt: z.ZodISODateTime;
|
|
651
|
-
}, z.core.$strict>;
|
|
652
|
-
unreadable: z.ZodObject<{
|
|
653
|
-
titles: z.ZodArray<z.ZodString>;
|
|
654
|
-
hidden: z.ZodNumber;
|
|
655
|
-
}, z.core.$strict>;
|
|
656
|
-
}, z.core.$strict>;
|
|
657
|
-
export type ShareResult = z.infer<typeof ShareResult>;
|
|
658
|
-
export declare const ResourceGrantList: z.ZodObject<{
|
|
23
|
+
export declare const LinkConfiguration: z.ZodObject<{
|
|
659
24
|
resourceId: z.ZodString;
|
|
660
|
-
applicableVerbs: z.ZodArray<z.ZodEnum<{
|
|
661
|
-
read: "read";
|
|
662
|
-
write: "write";
|
|
663
|
-
execute: "execute";
|
|
664
|
-
share: "share";
|
|
665
|
-
}>>;
|
|
666
|
-
items: z.ZodArray<z.ZodObject<{
|
|
667
|
-
id: z.ZodString;
|
|
668
|
-
resourceId: z.ZodString;
|
|
669
|
-
principal: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
670
|
-
type: z.ZodLiteral<"user">;
|
|
671
|
-
id: z.ZodString;
|
|
672
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
673
|
-
type: z.ZodLiteral<"email">;
|
|
674
|
-
email: z.ZodEmail;
|
|
675
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
676
|
-
type: z.ZodLiteral<"organization">;
|
|
677
|
-
}, z.core.$strict>], "type">;
|
|
678
|
-
verb: z.ZodEnum<{
|
|
679
|
-
read: "read";
|
|
680
|
-
write: "write";
|
|
681
|
-
execute: "execute";
|
|
682
|
-
share: "share";
|
|
683
|
-
}>;
|
|
684
|
-
expiresAt: z.ZodNullable<z.ZodISODateTime>;
|
|
685
|
-
createdBy: z.ZodString;
|
|
686
|
-
createdAt: z.ZodISODateTime;
|
|
687
|
-
}, z.core.$strict>>;
|
|
688
|
-
}, z.core.$strict>;
|
|
689
|
-
export type ResourceGrantList = z.infer<typeof ResourceGrantList>;
|
|
690
|
-
export declare const SearchInput: z.ZodObject<{
|
|
691
|
-
query: z.ZodString;
|
|
692
|
-
limit: z.ZodDefault<z.ZodNumber>;
|
|
693
|
-
scopeId: z.ZodOptional<z.ZodString>;
|
|
694
|
-
}, z.core.$strict>;
|
|
695
|
-
export type SearchInput = z.infer<typeof SearchInput>;
|
|
696
|
-
export declare const NodeCitation: z.ZodObject<{
|
|
697
|
-
nodeId: z.ZodString;
|
|
698
|
-
versionId: z.ZodString;
|
|
699
|
-
title: z.ZodString;
|
|
700
|
-
passage: z.ZodString;
|
|
701
|
-
source: z.ZodString;
|
|
702
|
-
freshness: z.ZodISODateTime;
|
|
703
|
-
score: z.ZodNumber;
|
|
704
|
-
match: z.ZodEnum<{
|
|
705
|
-
lexical: "lexical";
|
|
706
|
-
semantic: "semantic";
|
|
707
|
-
hybrid: "hybrid";
|
|
708
|
-
}>;
|
|
709
|
-
}, z.core.$strict>;
|
|
710
|
-
export type NodeCitation = z.infer<typeof NodeCitation>;
|
|
711
|
-
export declare const SearchResult: z.ZodObject<{
|
|
712
|
-
items: z.ZodArray<z.ZodObject<{
|
|
713
|
-
nodeId: z.ZodString;
|
|
714
|
-
versionId: z.ZodString;
|
|
715
|
-
title: z.ZodString;
|
|
716
|
-
passage: z.ZodString;
|
|
717
|
-
source: z.ZodString;
|
|
718
|
-
freshness: z.ZodISODateTime;
|
|
719
|
-
score: z.ZodNumber;
|
|
720
|
-
match: z.ZodEnum<{
|
|
721
|
-
lexical: "lexical";
|
|
722
|
-
semantic: "semantic";
|
|
723
|
-
hybrid: "hybrid";
|
|
724
|
-
}>;
|
|
725
|
-
}, z.core.$strict>>;
|
|
726
|
-
}, z.core.$strict>;
|
|
727
|
-
export type SearchResult = z.infer<typeof SearchResult>;
|
|
728
|
-
export declare const ReindexResult: z.ZodObject<{
|
|
729
|
-
queued: z.ZodNumber;
|
|
730
|
-
}, z.core.$strict>;
|
|
731
|
-
export type ReindexResult = z.infer<typeof ReindexResult>;
|
|
732
|
-
export declare const RevokeGrantResult: z.ZodObject<{
|
|
733
|
-
revoked: z.ZodBoolean;
|
|
734
|
-
}, z.core.$strict>;
|
|
735
|
-
export type RevokeGrantResult = z.infer<typeof RevokeGrantResult>;
|
|
736
|
-
export declare const ToolSourceUrl: z.ZodURL;
|
|
737
|
-
export declare const ToolName: z.ZodString;
|
|
738
|
-
export declare const ToolAnnotations: z.ZodObject<{
|
|
739
|
-
title: z.ZodOptional<z.ZodString>;
|
|
740
|
-
readOnlyHint: z.ZodOptional<z.ZodBoolean>;
|
|
741
|
-
destructiveHint: z.ZodOptional<z.ZodBoolean>;
|
|
742
|
-
idempotentHint: z.ZodOptional<z.ZodBoolean>;
|
|
743
|
-
openWorldHint: z.ZodOptional<z.ZodBoolean>;
|
|
744
|
-
}, z.core.$strict>;
|
|
745
|
-
export type ToolAnnotations = z.infer<typeof ToolAnnotations>;
|
|
746
|
-
export declare const ToolCapability: z.ZodObject<{
|
|
747
|
-
name: z.ZodString;
|
|
748
|
-
title: z.ZodNullable<z.ZodString>;
|
|
749
|
-
description: z.ZodNullable<z.ZodString>;
|
|
750
|
-
inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
751
|
-
outputSchema: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
752
|
-
annotations: z.ZodObject<{
|
|
753
|
-
title: z.ZodOptional<z.ZodString>;
|
|
754
|
-
readOnlyHint: z.ZodOptional<z.ZodBoolean>;
|
|
755
|
-
destructiveHint: z.ZodOptional<z.ZodBoolean>;
|
|
756
|
-
idempotentHint: z.ZodOptional<z.ZodBoolean>;
|
|
757
|
-
openWorldHint: z.ZodOptional<z.ZodBoolean>;
|
|
758
|
-
}, z.core.$strict>;
|
|
759
|
-
fingerprint: z.ZodString;
|
|
760
|
-
}, z.core.$strict>;
|
|
761
|
-
export type ToolCapability = z.infer<typeof ToolCapability>;
|
|
762
|
-
export declare const ToolCatalog: z.ZodObject<{
|
|
763
|
-
portalConnected: z.ZodBoolean;
|
|
764
|
-
items: z.ZodArray<z.ZodObject<{
|
|
765
|
-
name: z.ZodString;
|
|
766
|
-
title: z.ZodNullable<z.ZodString>;
|
|
767
|
-
description: z.ZodNullable<z.ZodString>;
|
|
768
|
-
inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
769
|
-
outputSchema: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
770
|
-
annotations: z.ZodObject<{
|
|
771
|
-
title: z.ZodOptional<z.ZodString>;
|
|
772
|
-
readOnlyHint: z.ZodOptional<z.ZodBoolean>;
|
|
773
|
-
destructiveHint: z.ZodOptional<z.ZodBoolean>;
|
|
774
|
-
idempotentHint: z.ZodOptional<z.ZodBoolean>;
|
|
775
|
-
openWorldHint: z.ZodOptional<z.ZodBoolean>;
|
|
776
|
-
}, z.core.$strict>;
|
|
777
|
-
fingerprint: z.ZodString;
|
|
778
|
-
}, z.core.$strict>>;
|
|
779
|
-
reached: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
780
|
-
}, z.core.$strict>;
|
|
781
|
-
export type ToolCatalog = z.infer<typeof ToolCatalog>;
|
|
782
|
-
/**
|
|
783
|
-
* One MCP server the asking user reaches right now, as the portal itself names it (D30).
|
|
784
|
-
*
|
|
785
|
-
* ⚠️ `toolCount` is a fact about this moment and this user, not a size. It exists so a picker can
|
|
786
|
-
* say "9 tools" instead of showing a handle alone, and it must never be read as what an agent will
|
|
787
|
-
* get: the delegated run asks the portal again, with the delegator's token.
|
|
788
|
-
*/
|
|
789
|
-
export declare const ToolServer: z.ZodObject<{
|
|
790
|
-
handle: z.ZodString;
|
|
791
|
-
name: z.ZodString;
|
|
792
|
-
toolCount: z.ZodNumber;
|
|
793
|
-
}, z.core.$strict>;
|
|
794
|
-
export type ToolServer = z.infer<typeof ToolServer>;
|
|
795
|
-
export declare const ToolServerCatalog: z.ZodObject<{
|
|
796
|
-
portalConnected: z.ZodBoolean;
|
|
797
|
-
items: z.ZodArray<z.ZodObject<{
|
|
798
|
-
handle: z.ZodString;
|
|
799
|
-
name: z.ZodString;
|
|
800
|
-
toolCount: z.ZodNumber;
|
|
801
|
-
}, z.core.$strict>>;
|
|
802
|
-
}, z.core.$strict>;
|
|
803
|
-
export type ToolServerCatalog = z.infer<typeof ToolServerCatalog>;
|
|
804
|
-
/**
|
|
805
|
-
* Which of the named servers a tool belongs to, or `null` for none of them.
|
|
806
|
-
*
|
|
807
|
-
* ⚠️ THE TRAP: a tool name does not say where its server name ends.
|
|
808
|
-
*
|
|
809
|
-
* The portal writes `<server>_<tool>`, and both halves may contain underscores — `intel_flow_get`
|
|
810
|
-
* reads equally well as server `intel` with tool `flow_get` and as a server called `intel_flow`
|
|
811
|
-
* with tool `get`. Splitting on the first underscore is therefore a guess that is wrong the day
|
|
812
|
-
* somebody adds a server whose name contains one, and on the API side being wrong means an agent
|
|
813
|
-
* delegated server A quietly reaching server B.
|
|
814
|
-
*
|
|
815
|
-
* So the prefix is never split. It is only ever MATCHED against handles the portal itself named,
|
|
816
|
-
* and the longest match wins: with `intel` and `intel_flow` both declared, `intel_flow_get` belongs
|
|
817
|
-
* to `intel_flow`, which is the only reading in which both declarations stay true.
|
|
818
|
-
*
|
|
819
|
-
* ⚠️ This lives in the contract because HOW A NAME IS READ is a property of the wire, and both
|
|
820
|
-
* surfaces read the same wire: `packages/api` cuts a delegation with it, `packages/ui` groups the
|
|
821
|
-
* tools screen with it (#212). A second implementation in the browser would be the third answer to
|
|
822
|
-
* one question — the underscore rule has already been answered differently in two places once
|
|
823
|
-
* (#106, #107), and the copies disagreed. What deliberately stays OUT of here is everything about
|
|
824
|
-
* reach: which handles are declared, which are enabled, which may be delegated and which one owns
|
|
825
|
-
* the portal's own management tools are decisions with consequences, and they belong to
|
|
826
|
-
* `packages/api/src/tools/tool-servers`. This function only reads a name.
|
|
827
|
-
*/
|
|
828
|
-
export declare function serverOf(toolName: string, handles: Iterable<string>): string | null;
|
|
829
|
-
export declare const TestToolInput: z.ZodObject<{
|
|
830
|
-
name: z.ZodString;
|
|
831
|
-
arguments: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
832
|
-
}, z.core.$strict>;
|
|
833
|
-
export type TestToolInput = z.infer<typeof TestToolInput>;
|
|
834
|
-
export declare const ExecuteToolInput: z.ZodObject<{
|
|
835
|
-
name: z.ZodString;
|
|
836
|
-
arguments: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
837
|
-
}, z.core.$strict>;
|
|
838
|
-
export type ExecuteToolInput = z.infer<typeof ExecuteToolInput>;
|
|
839
|
-
export declare const ToolTestResult: z.ZodObject<{
|
|
840
|
-
isError: z.ZodBoolean;
|
|
841
|
-
content: z.ZodArray<z.ZodUnknown>;
|
|
842
|
-
structuredContent: z.ZodOptional<z.ZodUnknown>;
|
|
843
|
-
}, z.core.$strict>;
|
|
844
|
-
export type ToolTestResult = z.infer<typeof ToolTestResult>;
|
|
845
|
-
export declare const FlowNodeId: z.ZodString;
|
|
846
|
-
export declare const FlowPosition: z.ZodObject<{
|
|
847
|
-
x: z.ZodNumber;
|
|
848
|
-
y: z.ZodNumber;
|
|
849
|
-
}, z.core.$strict>;
|
|
850
|
-
export declare const SubflowVersionMode: z.ZodEnum<{
|
|
851
|
-
latest: "latest";
|
|
852
|
-
follows: "follows";
|
|
853
|
-
pinned: "pinned";
|
|
854
|
-
}>;
|
|
855
|
-
export type SubflowVersionMode = z.infer<typeof SubflowVersionMode>;
|
|
856
|
-
export declare const SubflowVersion: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
857
|
-
mode: z.ZodLiteral<"latest">;
|
|
858
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
859
|
-
mode: z.ZodLiteral<"follows">;
|
|
860
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
861
|
-
mode: z.ZodLiteral<"pinned">;
|
|
862
|
-
versionId: z.ZodString;
|
|
863
|
-
}, z.core.$strict>], "mode">;
|
|
864
|
-
export type SubflowVersion = z.infer<typeof SubflowVersion>;
|
|
865
|
-
export declare const FlowNodeLayer: z.ZodEnum<{
|
|
866
|
-
marker: "marker";
|
|
867
|
-
step: "step";
|
|
868
|
-
link: "link";
|
|
869
|
-
}>;
|
|
870
|
-
export type FlowNodeLayer = z.infer<typeof FlowNodeLayer>;
|
|
871
|
-
export declare const flowNodeLayer: {
|
|
872
|
-
readonly trigger: "marker";
|
|
873
|
-
readonly output: "marker";
|
|
874
|
-
readonly instruction: "step";
|
|
875
|
-
readonly condition: "step";
|
|
876
|
-
readonly subflow: "step";
|
|
877
|
-
readonly folder: "link";
|
|
878
|
-
readonly document: "link";
|
|
879
|
-
readonly upload: "link";
|
|
880
|
-
readonly table: "link";
|
|
881
|
-
readonly tool: "link";
|
|
882
|
-
};
|
|
883
|
-
export declare const FlowNode: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
884
|
-
kind: z.ZodLiteral<"trigger">;
|
|
885
|
-
configuration: z.ZodObject<{
|
|
886
|
-
mode: z.ZodLiteral<"manual">;
|
|
887
|
-
}, z.core.$strict>;
|
|
888
|
-
id: z.ZodString;
|
|
889
|
-
position: z.ZodObject<{
|
|
890
|
-
x: z.ZodNumber;
|
|
891
|
-
y: z.ZodNumber;
|
|
892
|
-
}, z.core.$strict>;
|
|
893
|
-
label: z.ZodString;
|
|
894
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
895
|
-
kind: z.ZodLiteral<"instruction">;
|
|
896
|
-
configuration: z.ZodObject<{
|
|
897
|
-
prompt: z.ZodString;
|
|
898
|
-
}, z.core.$strict>;
|
|
899
|
-
id: z.ZodString;
|
|
900
|
-
position: z.ZodObject<{
|
|
901
|
-
x: z.ZodNumber;
|
|
902
|
-
y: z.ZodNumber;
|
|
903
|
-
}, z.core.$strict>;
|
|
904
|
-
label: z.ZodString;
|
|
905
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
906
|
-
kind: z.ZodLiteral<"folder">;
|
|
907
|
-
configuration: z.ZodObject<{
|
|
908
|
-
resourceId: z.ZodString;
|
|
909
|
-
}, z.core.$strict>;
|
|
910
|
-
id: z.ZodString;
|
|
911
|
-
position: z.ZodObject<{
|
|
912
|
-
x: z.ZodNumber;
|
|
913
|
-
y: z.ZodNumber;
|
|
914
|
-
}, z.core.$strict>;
|
|
915
|
-
label: z.ZodString;
|
|
916
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
917
|
-
kind: z.ZodLiteral<"document">;
|
|
918
|
-
configuration: z.ZodObject<{
|
|
919
|
-
resourceId: z.ZodString;
|
|
920
|
-
}, z.core.$strict>;
|
|
921
|
-
id: z.ZodString;
|
|
922
|
-
position: z.ZodObject<{
|
|
923
|
-
x: z.ZodNumber;
|
|
924
|
-
y: z.ZodNumber;
|
|
925
|
-
}, z.core.$strict>;
|
|
926
|
-
label: z.ZodString;
|
|
927
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
928
|
-
kind: z.ZodLiteral<"upload">;
|
|
929
|
-
configuration: z.ZodObject<{
|
|
930
|
-
resourceId: z.ZodString;
|
|
931
|
-
}, z.core.$strict>;
|
|
932
|
-
id: z.ZodString;
|
|
933
|
-
position: z.ZodObject<{
|
|
934
|
-
x: z.ZodNumber;
|
|
935
|
-
y: z.ZodNumber;
|
|
936
|
-
}, z.core.$strict>;
|
|
937
|
-
label: z.ZodString;
|
|
938
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
939
|
-
kind: z.ZodLiteral<"table">;
|
|
940
|
-
configuration: z.ZodObject<{
|
|
941
|
-
resourceId: z.ZodString;
|
|
942
|
-
}, z.core.$strict>;
|
|
943
|
-
id: z.ZodString;
|
|
944
|
-
position: z.ZodObject<{
|
|
945
|
-
x: z.ZodNumber;
|
|
946
|
-
y: z.ZodNumber;
|
|
947
|
-
}, z.core.$strict>;
|
|
948
|
-
label: z.ZodString;
|
|
949
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
950
|
-
kind: z.ZodLiteral<"tool">;
|
|
951
|
-
configuration: z.ZodObject<{
|
|
952
|
-
toolName: z.ZodString;
|
|
953
|
-
fingerprint: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
954
|
-
arguments: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
955
|
-
}, z.core.$strict>;
|
|
956
|
-
id: z.ZodString;
|
|
957
|
-
position: z.ZodObject<{
|
|
958
|
-
x: z.ZodNumber;
|
|
959
|
-
y: z.ZodNumber;
|
|
960
|
-
}, z.core.$strict>;
|
|
961
|
-
label: z.ZodString;
|
|
962
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
963
|
-
kind: z.ZodLiteral<"condition">;
|
|
964
|
-
configuration: z.ZodObject<{
|
|
965
|
-
mode: z.ZodLiteral<"semantic">;
|
|
966
|
-
instruction: z.ZodString;
|
|
967
|
-
}, z.core.$strict>;
|
|
968
|
-
id: z.ZodString;
|
|
969
|
-
position: z.ZodObject<{
|
|
970
|
-
x: z.ZodNumber;
|
|
971
|
-
y: z.ZodNumber;
|
|
972
|
-
}, z.core.$strict>;
|
|
973
|
-
label: z.ZodString;
|
|
974
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
975
|
-
kind: z.ZodLiteral<"subflow">;
|
|
976
|
-
configuration: z.ZodObject<{
|
|
977
|
-
flowId: z.ZodString;
|
|
978
|
-
version: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
979
|
-
mode: z.ZodLiteral<"latest">;
|
|
980
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
981
|
-
mode: z.ZodLiteral<"follows">;
|
|
982
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
983
|
-
mode: z.ZodLiteral<"pinned">;
|
|
984
|
-
versionId: z.ZodString;
|
|
985
|
-
}, z.core.$strict>], "mode">>;
|
|
986
|
-
}, z.core.$strict>;
|
|
987
|
-
id: z.ZodString;
|
|
988
|
-
position: z.ZodObject<{
|
|
989
|
-
x: z.ZodNumber;
|
|
990
|
-
y: z.ZodNumber;
|
|
991
|
-
}, z.core.$strict>;
|
|
992
|
-
label: z.ZodString;
|
|
993
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
994
|
-
kind: z.ZodLiteral<"output">;
|
|
995
|
-
configuration: z.ZodObject<{}, z.core.$strict>;
|
|
996
|
-
id: z.ZodString;
|
|
997
|
-
position: z.ZodObject<{
|
|
998
|
-
x: z.ZodNumber;
|
|
999
|
-
y: z.ZodNumber;
|
|
1000
|
-
}, z.core.$strict>;
|
|
1001
|
-
label: z.ZodString;
|
|
1002
|
-
}, z.core.$strict>], "kind">;
|
|
1003
|
-
export type FlowNode = z.infer<typeof FlowNode>;
|
|
1004
|
-
export declare const FlowEdgeKind: z.ZodEnum<{
|
|
1005
|
-
flow: "flow";
|
|
1006
|
-
context: "context";
|
|
1007
|
-
}>;
|
|
1008
|
-
export type FlowEdgeKind = z.infer<typeof FlowEdgeKind>;
|
|
1009
|
-
export declare const FlowEdge: z.ZodObject<{
|
|
1010
|
-
id: z.ZodString;
|
|
1011
|
-
source: z.ZodString;
|
|
1012
|
-
target: z.ZodString;
|
|
1013
|
-
kind: z.ZodDefault<z.ZodEnum<{
|
|
1014
|
-
flow: "flow";
|
|
1015
|
-
context: "context";
|
|
1016
|
-
}>>;
|
|
1017
|
-
label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1018
|
-
sourceHandle: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1019
|
-
}, z.core.$strict>;
|
|
1020
|
-
export type FlowEdge = z.infer<typeof FlowEdge>;
|
|
1021
|
-
export declare const FlowGraph: z.ZodObject<{
|
|
1022
|
-
nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1023
|
-
kind: z.ZodLiteral<"trigger">;
|
|
1024
|
-
configuration: z.ZodObject<{
|
|
1025
|
-
mode: z.ZodLiteral<"manual">;
|
|
1026
|
-
}, z.core.$strict>;
|
|
1027
|
-
id: z.ZodString;
|
|
1028
|
-
position: z.ZodObject<{
|
|
1029
|
-
x: z.ZodNumber;
|
|
1030
|
-
y: z.ZodNumber;
|
|
1031
|
-
}, z.core.$strict>;
|
|
1032
|
-
label: z.ZodString;
|
|
1033
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1034
|
-
kind: z.ZodLiteral<"instruction">;
|
|
1035
|
-
configuration: z.ZodObject<{
|
|
1036
|
-
prompt: z.ZodString;
|
|
1037
|
-
}, z.core.$strict>;
|
|
1038
|
-
id: z.ZodString;
|
|
1039
|
-
position: z.ZodObject<{
|
|
1040
|
-
x: z.ZodNumber;
|
|
1041
|
-
y: z.ZodNumber;
|
|
1042
|
-
}, z.core.$strict>;
|
|
1043
|
-
label: z.ZodString;
|
|
1044
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1045
|
-
kind: z.ZodLiteral<"folder">;
|
|
1046
|
-
configuration: z.ZodObject<{
|
|
1047
|
-
resourceId: z.ZodString;
|
|
1048
|
-
}, z.core.$strict>;
|
|
1049
|
-
id: z.ZodString;
|
|
1050
|
-
position: z.ZodObject<{
|
|
1051
|
-
x: z.ZodNumber;
|
|
1052
|
-
y: z.ZodNumber;
|
|
1053
|
-
}, z.core.$strict>;
|
|
1054
|
-
label: z.ZodString;
|
|
1055
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1056
|
-
kind: z.ZodLiteral<"document">;
|
|
1057
|
-
configuration: z.ZodObject<{
|
|
1058
|
-
resourceId: z.ZodString;
|
|
1059
|
-
}, z.core.$strict>;
|
|
1060
|
-
id: z.ZodString;
|
|
1061
|
-
position: z.ZodObject<{
|
|
1062
|
-
x: z.ZodNumber;
|
|
1063
|
-
y: z.ZodNumber;
|
|
1064
|
-
}, z.core.$strict>;
|
|
1065
|
-
label: z.ZodString;
|
|
1066
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1067
|
-
kind: z.ZodLiteral<"upload">;
|
|
1068
|
-
configuration: z.ZodObject<{
|
|
1069
|
-
resourceId: z.ZodString;
|
|
1070
|
-
}, z.core.$strict>;
|
|
1071
|
-
id: z.ZodString;
|
|
1072
|
-
position: z.ZodObject<{
|
|
1073
|
-
x: z.ZodNumber;
|
|
1074
|
-
y: z.ZodNumber;
|
|
1075
|
-
}, z.core.$strict>;
|
|
1076
|
-
label: z.ZodString;
|
|
1077
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1078
|
-
kind: z.ZodLiteral<"table">;
|
|
1079
|
-
configuration: z.ZodObject<{
|
|
1080
|
-
resourceId: z.ZodString;
|
|
1081
|
-
}, z.core.$strict>;
|
|
1082
|
-
id: z.ZodString;
|
|
1083
|
-
position: z.ZodObject<{
|
|
1084
|
-
x: z.ZodNumber;
|
|
1085
|
-
y: z.ZodNumber;
|
|
1086
|
-
}, z.core.$strict>;
|
|
1087
|
-
label: z.ZodString;
|
|
1088
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1089
|
-
kind: z.ZodLiteral<"tool">;
|
|
1090
|
-
configuration: z.ZodObject<{
|
|
1091
|
-
toolName: z.ZodString;
|
|
1092
|
-
fingerprint: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1093
|
-
arguments: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1094
|
-
}, z.core.$strict>;
|
|
1095
|
-
id: z.ZodString;
|
|
1096
|
-
position: z.ZodObject<{
|
|
1097
|
-
x: z.ZodNumber;
|
|
1098
|
-
y: z.ZodNumber;
|
|
1099
|
-
}, z.core.$strict>;
|
|
1100
|
-
label: z.ZodString;
|
|
1101
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1102
|
-
kind: z.ZodLiteral<"condition">;
|
|
1103
|
-
configuration: z.ZodObject<{
|
|
1104
|
-
mode: z.ZodLiteral<"semantic">;
|
|
1105
|
-
instruction: z.ZodString;
|
|
1106
|
-
}, z.core.$strict>;
|
|
1107
|
-
id: z.ZodString;
|
|
1108
|
-
position: z.ZodObject<{
|
|
1109
|
-
x: z.ZodNumber;
|
|
1110
|
-
y: z.ZodNumber;
|
|
1111
|
-
}, z.core.$strict>;
|
|
1112
|
-
label: z.ZodString;
|
|
1113
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1114
|
-
kind: z.ZodLiteral<"subflow">;
|
|
1115
|
-
configuration: z.ZodObject<{
|
|
1116
|
-
flowId: z.ZodString;
|
|
1117
|
-
version: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1118
|
-
mode: z.ZodLiteral<"latest">;
|
|
1119
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1120
|
-
mode: z.ZodLiteral<"follows">;
|
|
1121
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1122
|
-
mode: z.ZodLiteral<"pinned">;
|
|
1123
|
-
versionId: z.ZodString;
|
|
1124
|
-
}, z.core.$strict>], "mode">>;
|
|
1125
|
-
}, z.core.$strict>;
|
|
1126
|
-
id: z.ZodString;
|
|
1127
|
-
position: z.ZodObject<{
|
|
1128
|
-
x: z.ZodNumber;
|
|
1129
|
-
y: z.ZodNumber;
|
|
1130
|
-
}, z.core.$strict>;
|
|
1131
|
-
label: z.ZodString;
|
|
1132
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1133
|
-
kind: z.ZodLiteral<"output">;
|
|
1134
|
-
configuration: z.ZodObject<{}, z.core.$strict>;
|
|
1135
|
-
id: z.ZodString;
|
|
1136
|
-
position: z.ZodObject<{
|
|
1137
|
-
x: z.ZodNumber;
|
|
1138
|
-
y: z.ZodNumber;
|
|
1139
|
-
}, z.core.$strict>;
|
|
1140
|
-
label: z.ZodString;
|
|
1141
|
-
}, z.core.$strict>], "kind">>;
|
|
1142
|
-
edges: z.ZodArray<z.ZodObject<{
|
|
1143
|
-
id: z.ZodString;
|
|
1144
|
-
source: z.ZodString;
|
|
1145
|
-
target: z.ZodString;
|
|
1146
|
-
kind: z.ZodDefault<z.ZodEnum<{
|
|
1147
|
-
flow: "flow";
|
|
1148
|
-
context: "context";
|
|
1149
|
-
}>>;
|
|
1150
|
-
label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1151
|
-
sourceHandle: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1152
|
-
}, z.core.$strict>>;
|
|
1153
|
-
}, z.core.$strict>;
|
|
1154
|
-
export type FlowGraph = z.infer<typeof FlowGraph>;
|
|
1155
|
-
export declare const Flow: z.ZodObject<{
|
|
1156
|
-
id: z.ZodString;
|
|
1157
|
-
parentId: z.ZodNullable<z.ZodString>;
|
|
1158
|
-
title: z.ZodString;
|
|
1159
|
-
description: z.ZodNullable<z.ZodString>;
|
|
1160
|
-
ownerId: z.ZodString;
|
|
1161
|
-
currentVersionId: z.ZodNullable<z.ZodString>;
|
|
1162
|
-
publishedVersionId: z.ZodNullable<z.ZodString>;
|
|
1163
|
-
createdAt: z.ZodISODateTime;
|
|
1164
|
-
updatedAt: z.ZodISODateTime;
|
|
1165
|
-
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
1166
|
-
}, z.core.$strict>;
|
|
1167
|
-
export type Flow = z.infer<typeof Flow>;
|
|
1168
|
-
export declare const FlowVersion: z.ZodObject<{
|
|
1169
|
-
id: z.ZodString;
|
|
1170
|
-
flowId: z.ZodString;
|
|
1171
|
-
sequence: z.ZodNumber;
|
|
1172
|
-
graph: z.ZodObject<{
|
|
1173
|
-
nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1174
|
-
kind: z.ZodLiteral<"trigger">;
|
|
1175
|
-
configuration: z.ZodObject<{
|
|
1176
|
-
mode: z.ZodLiteral<"manual">;
|
|
1177
|
-
}, z.core.$strict>;
|
|
1178
|
-
id: z.ZodString;
|
|
1179
|
-
position: z.ZodObject<{
|
|
1180
|
-
x: z.ZodNumber;
|
|
1181
|
-
y: z.ZodNumber;
|
|
1182
|
-
}, z.core.$strict>;
|
|
1183
|
-
label: z.ZodString;
|
|
1184
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1185
|
-
kind: z.ZodLiteral<"instruction">;
|
|
1186
|
-
configuration: z.ZodObject<{
|
|
1187
|
-
prompt: z.ZodString;
|
|
1188
|
-
}, z.core.$strict>;
|
|
1189
|
-
id: z.ZodString;
|
|
1190
|
-
position: z.ZodObject<{
|
|
1191
|
-
x: z.ZodNumber;
|
|
1192
|
-
y: z.ZodNumber;
|
|
1193
|
-
}, z.core.$strict>;
|
|
1194
|
-
label: z.ZodString;
|
|
1195
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1196
|
-
kind: z.ZodLiteral<"folder">;
|
|
1197
|
-
configuration: z.ZodObject<{
|
|
1198
|
-
resourceId: z.ZodString;
|
|
1199
|
-
}, z.core.$strict>;
|
|
1200
|
-
id: z.ZodString;
|
|
1201
|
-
position: z.ZodObject<{
|
|
1202
|
-
x: z.ZodNumber;
|
|
1203
|
-
y: z.ZodNumber;
|
|
1204
|
-
}, z.core.$strict>;
|
|
1205
|
-
label: z.ZodString;
|
|
1206
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1207
|
-
kind: z.ZodLiteral<"document">;
|
|
1208
|
-
configuration: z.ZodObject<{
|
|
1209
|
-
resourceId: z.ZodString;
|
|
1210
|
-
}, z.core.$strict>;
|
|
1211
|
-
id: z.ZodString;
|
|
1212
|
-
position: z.ZodObject<{
|
|
1213
|
-
x: z.ZodNumber;
|
|
1214
|
-
y: z.ZodNumber;
|
|
1215
|
-
}, z.core.$strict>;
|
|
1216
|
-
label: z.ZodString;
|
|
1217
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1218
|
-
kind: z.ZodLiteral<"upload">;
|
|
1219
|
-
configuration: z.ZodObject<{
|
|
1220
|
-
resourceId: z.ZodString;
|
|
1221
|
-
}, z.core.$strict>;
|
|
1222
|
-
id: z.ZodString;
|
|
1223
|
-
position: z.ZodObject<{
|
|
1224
|
-
x: z.ZodNumber;
|
|
1225
|
-
y: z.ZodNumber;
|
|
1226
|
-
}, z.core.$strict>;
|
|
1227
|
-
label: z.ZodString;
|
|
1228
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1229
|
-
kind: z.ZodLiteral<"table">;
|
|
1230
|
-
configuration: z.ZodObject<{
|
|
1231
|
-
resourceId: z.ZodString;
|
|
1232
|
-
}, z.core.$strict>;
|
|
1233
|
-
id: z.ZodString;
|
|
1234
|
-
position: z.ZodObject<{
|
|
1235
|
-
x: z.ZodNumber;
|
|
1236
|
-
y: z.ZodNumber;
|
|
1237
|
-
}, z.core.$strict>;
|
|
1238
|
-
label: z.ZodString;
|
|
1239
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1240
|
-
kind: z.ZodLiteral<"tool">;
|
|
1241
|
-
configuration: z.ZodObject<{
|
|
1242
|
-
toolName: z.ZodString;
|
|
1243
|
-
fingerprint: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1244
|
-
arguments: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1245
|
-
}, z.core.$strict>;
|
|
1246
|
-
id: z.ZodString;
|
|
1247
|
-
position: z.ZodObject<{
|
|
1248
|
-
x: z.ZodNumber;
|
|
1249
|
-
y: z.ZodNumber;
|
|
1250
|
-
}, z.core.$strict>;
|
|
1251
|
-
label: z.ZodString;
|
|
1252
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1253
|
-
kind: z.ZodLiteral<"condition">;
|
|
1254
|
-
configuration: z.ZodObject<{
|
|
1255
|
-
mode: z.ZodLiteral<"semantic">;
|
|
1256
|
-
instruction: z.ZodString;
|
|
1257
|
-
}, z.core.$strict>;
|
|
1258
|
-
id: z.ZodString;
|
|
1259
|
-
position: z.ZodObject<{
|
|
1260
|
-
x: z.ZodNumber;
|
|
1261
|
-
y: z.ZodNumber;
|
|
1262
|
-
}, z.core.$strict>;
|
|
1263
|
-
label: z.ZodString;
|
|
1264
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1265
|
-
kind: z.ZodLiteral<"subflow">;
|
|
1266
|
-
configuration: z.ZodObject<{
|
|
1267
|
-
flowId: z.ZodString;
|
|
1268
|
-
version: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1269
|
-
mode: z.ZodLiteral<"latest">;
|
|
1270
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1271
|
-
mode: z.ZodLiteral<"follows">;
|
|
1272
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1273
|
-
mode: z.ZodLiteral<"pinned">;
|
|
1274
|
-
versionId: z.ZodString;
|
|
1275
|
-
}, z.core.$strict>], "mode">>;
|
|
1276
|
-
}, z.core.$strict>;
|
|
1277
|
-
id: z.ZodString;
|
|
1278
|
-
position: z.ZodObject<{
|
|
1279
|
-
x: z.ZodNumber;
|
|
1280
|
-
y: z.ZodNumber;
|
|
1281
|
-
}, z.core.$strict>;
|
|
1282
|
-
label: z.ZodString;
|
|
1283
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1284
|
-
kind: z.ZodLiteral<"output">;
|
|
1285
|
-
configuration: z.ZodObject<{}, z.core.$strict>;
|
|
1286
|
-
id: z.ZodString;
|
|
1287
|
-
position: z.ZodObject<{
|
|
1288
|
-
x: z.ZodNumber;
|
|
1289
|
-
y: z.ZodNumber;
|
|
1290
|
-
}, z.core.$strict>;
|
|
1291
|
-
label: z.ZodString;
|
|
1292
|
-
}, z.core.$strict>], "kind">>;
|
|
1293
|
-
edges: z.ZodArray<z.ZodObject<{
|
|
1294
|
-
id: z.ZodString;
|
|
1295
|
-
source: z.ZodString;
|
|
1296
|
-
target: z.ZodString;
|
|
1297
|
-
kind: z.ZodDefault<z.ZodEnum<{
|
|
1298
|
-
flow: "flow";
|
|
1299
|
-
context: "context";
|
|
1300
|
-
}>>;
|
|
1301
|
-
label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1302
|
-
sourceHandle: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1303
|
-
}, z.core.$strict>>;
|
|
1304
|
-
}, z.core.$strict>;
|
|
1305
|
-
createdBy: z.ZodString;
|
|
1306
|
-
createdAt: z.ZodISODateTime;
|
|
1307
|
-
}, z.core.$strict>;
|
|
1308
|
-
export type FlowVersion = z.infer<typeof FlowVersion>;
|
|
1309
|
-
export declare const FlowDocument: z.ZodObject<{
|
|
1310
|
-
flow: z.ZodObject<{
|
|
1311
|
-
id: z.ZodString;
|
|
1312
|
-
parentId: z.ZodNullable<z.ZodString>;
|
|
1313
|
-
title: z.ZodString;
|
|
1314
|
-
description: z.ZodNullable<z.ZodString>;
|
|
1315
|
-
ownerId: z.ZodString;
|
|
1316
|
-
currentVersionId: z.ZodNullable<z.ZodString>;
|
|
1317
|
-
publishedVersionId: z.ZodNullable<z.ZodString>;
|
|
1318
|
-
createdAt: z.ZodISODateTime;
|
|
1319
|
-
updatedAt: z.ZodISODateTime;
|
|
1320
|
-
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
1321
|
-
}, z.core.$strict>;
|
|
1322
|
-
version: z.ZodNullable<z.ZodObject<{
|
|
1323
|
-
id: z.ZodString;
|
|
1324
|
-
flowId: z.ZodString;
|
|
1325
|
-
sequence: z.ZodNumber;
|
|
1326
|
-
graph: z.ZodObject<{
|
|
1327
|
-
nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1328
|
-
kind: z.ZodLiteral<"trigger">;
|
|
1329
|
-
configuration: z.ZodObject<{
|
|
1330
|
-
mode: z.ZodLiteral<"manual">;
|
|
1331
|
-
}, z.core.$strict>;
|
|
1332
|
-
id: z.ZodString;
|
|
1333
|
-
position: z.ZodObject<{
|
|
1334
|
-
x: z.ZodNumber;
|
|
1335
|
-
y: z.ZodNumber;
|
|
1336
|
-
}, z.core.$strict>;
|
|
1337
|
-
label: z.ZodString;
|
|
1338
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1339
|
-
kind: z.ZodLiteral<"instruction">;
|
|
1340
|
-
configuration: z.ZodObject<{
|
|
1341
|
-
prompt: z.ZodString;
|
|
1342
|
-
}, z.core.$strict>;
|
|
1343
|
-
id: z.ZodString;
|
|
1344
|
-
position: z.ZodObject<{
|
|
1345
|
-
x: z.ZodNumber;
|
|
1346
|
-
y: z.ZodNumber;
|
|
1347
|
-
}, z.core.$strict>;
|
|
1348
|
-
label: z.ZodString;
|
|
1349
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1350
|
-
kind: z.ZodLiteral<"folder">;
|
|
1351
|
-
configuration: z.ZodObject<{
|
|
1352
|
-
resourceId: z.ZodString;
|
|
1353
|
-
}, z.core.$strict>;
|
|
1354
|
-
id: z.ZodString;
|
|
1355
|
-
position: z.ZodObject<{
|
|
1356
|
-
x: z.ZodNumber;
|
|
1357
|
-
y: z.ZodNumber;
|
|
1358
|
-
}, z.core.$strict>;
|
|
1359
|
-
label: z.ZodString;
|
|
1360
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1361
|
-
kind: z.ZodLiteral<"document">;
|
|
1362
|
-
configuration: z.ZodObject<{
|
|
1363
|
-
resourceId: z.ZodString;
|
|
1364
|
-
}, z.core.$strict>;
|
|
1365
|
-
id: z.ZodString;
|
|
1366
|
-
position: z.ZodObject<{
|
|
1367
|
-
x: z.ZodNumber;
|
|
1368
|
-
y: z.ZodNumber;
|
|
1369
|
-
}, z.core.$strict>;
|
|
1370
|
-
label: z.ZodString;
|
|
1371
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1372
|
-
kind: z.ZodLiteral<"upload">;
|
|
1373
|
-
configuration: z.ZodObject<{
|
|
1374
|
-
resourceId: z.ZodString;
|
|
1375
|
-
}, z.core.$strict>;
|
|
1376
|
-
id: z.ZodString;
|
|
1377
|
-
position: z.ZodObject<{
|
|
1378
|
-
x: z.ZodNumber;
|
|
1379
|
-
y: z.ZodNumber;
|
|
1380
|
-
}, z.core.$strict>;
|
|
1381
|
-
label: z.ZodString;
|
|
1382
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1383
|
-
kind: z.ZodLiteral<"table">;
|
|
1384
|
-
configuration: z.ZodObject<{
|
|
1385
|
-
resourceId: z.ZodString;
|
|
1386
|
-
}, z.core.$strict>;
|
|
1387
|
-
id: z.ZodString;
|
|
1388
|
-
position: z.ZodObject<{
|
|
1389
|
-
x: z.ZodNumber;
|
|
1390
|
-
y: z.ZodNumber;
|
|
1391
|
-
}, z.core.$strict>;
|
|
1392
|
-
label: z.ZodString;
|
|
1393
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1394
|
-
kind: z.ZodLiteral<"tool">;
|
|
1395
|
-
configuration: z.ZodObject<{
|
|
1396
|
-
toolName: z.ZodString;
|
|
1397
|
-
fingerprint: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1398
|
-
arguments: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1399
|
-
}, z.core.$strict>;
|
|
1400
|
-
id: z.ZodString;
|
|
1401
|
-
position: z.ZodObject<{
|
|
1402
|
-
x: z.ZodNumber;
|
|
1403
|
-
y: z.ZodNumber;
|
|
1404
|
-
}, z.core.$strict>;
|
|
1405
|
-
label: z.ZodString;
|
|
1406
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1407
|
-
kind: z.ZodLiteral<"condition">;
|
|
1408
|
-
configuration: z.ZodObject<{
|
|
1409
|
-
mode: z.ZodLiteral<"semantic">;
|
|
1410
|
-
instruction: z.ZodString;
|
|
1411
|
-
}, z.core.$strict>;
|
|
1412
|
-
id: z.ZodString;
|
|
1413
|
-
position: z.ZodObject<{
|
|
1414
|
-
x: z.ZodNumber;
|
|
1415
|
-
y: z.ZodNumber;
|
|
1416
|
-
}, z.core.$strict>;
|
|
1417
|
-
label: z.ZodString;
|
|
1418
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1419
|
-
kind: z.ZodLiteral<"subflow">;
|
|
1420
|
-
configuration: z.ZodObject<{
|
|
1421
|
-
flowId: z.ZodString;
|
|
1422
|
-
version: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1423
|
-
mode: z.ZodLiteral<"latest">;
|
|
1424
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1425
|
-
mode: z.ZodLiteral<"follows">;
|
|
1426
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1427
|
-
mode: z.ZodLiteral<"pinned">;
|
|
1428
|
-
versionId: z.ZodString;
|
|
1429
|
-
}, z.core.$strict>], "mode">>;
|
|
1430
|
-
}, z.core.$strict>;
|
|
1431
|
-
id: z.ZodString;
|
|
1432
|
-
position: z.ZodObject<{
|
|
1433
|
-
x: z.ZodNumber;
|
|
1434
|
-
y: z.ZodNumber;
|
|
1435
|
-
}, z.core.$strict>;
|
|
1436
|
-
label: z.ZodString;
|
|
1437
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1438
|
-
kind: z.ZodLiteral<"output">;
|
|
1439
|
-
configuration: z.ZodObject<{}, z.core.$strict>;
|
|
1440
|
-
id: z.ZodString;
|
|
1441
|
-
position: z.ZodObject<{
|
|
1442
|
-
x: z.ZodNumber;
|
|
1443
|
-
y: z.ZodNumber;
|
|
1444
|
-
}, z.core.$strict>;
|
|
1445
|
-
label: z.ZodString;
|
|
1446
|
-
}, z.core.$strict>], "kind">>;
|
|
1447
|
-
edges: z.ZodArray<z.ZodObject<{
|
|
1448
|
-
id: z.ZodString;
|
|
1449
|
-
source: z.ZodString;
|
|
1450
|
-
target: z.ZodString;
|
|
1451
|
-
kind: z.ZodDefault<z.ZodEnum<{
|
|
1452
|
-
flow: "flow";
|
|
1453
|
-
context: "context";
|
|
1454
|
-
}>>;
|
|
1455
|
-
label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1456
|
-
sourceHandle: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1457
|
-
}, z.core.$strict>>;
|
|
1458
|
-
}, z.core.$strict>;
|
|
1459
|
-
createdBy: z.ZodString;
|
|
1460
|
-
createdAt: z.ZodISODateTime;
|
|
1461
|
-
}, z.core.$strict>>;
|
|
1462
|
-
}, z.core.$strict>;
|
|
1463
|
-
export type FlowDocument = z.infer<typeof FlowDocument>;
|
|
1464
|
-
export declare const FlowVersionSummary: z.ZodObject<{
|
|
1465
|
-
id: z.ZodString;
|
|
1466
|
-
flowId: z.ZodString;
|
|
1467
|
-
sequence: z.ZodNumber;
|
|
1468
|
-
createdBy: z.ZodString;
|
|
1469
|
-
createdAt: z.ZodISODateTime;
|
|
1470
|
-
published: z.ZodBoolean;
|
|
1471
|
-
}, z.core.$strict>;
|
|
1472
|
-
export type FlowVersionSummary = z.infer<typeof FlowVersionSummary>;
|
|
1473
|
-
export declare const FlowVersionList: z.ZodObject<{
|
|
1474
|
-
flowId: z.ZodString;
|
|
1475
|
-
items: z.ZodArray<z.ZodObject<{
|
|
1476
|
-
id: z.ZodString;
|
|
1477
|
-
flowId: z.ZodString;
|
|
1478
|
-
sequence: z.ZodNumber;
|
|
1479
|
-
createdBy: z.ZodString;
|
|
1480
|
-
createdAt: z.ZodISODateTime;
|
|
1481
|
-
published: z.ZodBoolean;
|
|
1482
|
-
}, z.core.$strict>>;
|
|
1483
|
-
}, z.core.$strict>;
|
|
1484
|
-
export type FlowVersionList = z.infer<typeof FlowVersionList>;
|
|
1485
|
-
export declare const GetFlowVersionInput: z.ZodObject<{
|
|
1486
|
-
flowId: z.ZodString;
|
|
1487
|
-
versionId: z.ZodString;
|
|
1488
|
-
}, z.core.$strict>;
|
|
1489
|
-
export type GetFlowVersionInput = z.infer<typeof GetFlowVersionInput>;
|
|
1490
|
-
export declare const FlowList: z.ZodObject<{
|
|
1491
|
-
items: z.ZodArray<z.ZodObject<{
|
|
1492
|
-
id: z.ZodString;
|
|
1493
|
-
parentId: z.ZodNullable<z.ZodString>;
|
|
1494
|
-
title: z.ZodString;
|
|
1495
|
-
description: z.ZodNullable<z.ZodString>;
|
|
1496
|
-
ownerId: z.ZodString;
|
|
1497
|
-
currentVersionId: z.ZodNullable<z.ZodString>;
|
|
1498
|
-
publishedVersionId: z.ZodNullable<z.ZodString>;
|
|
1499
|
-
createdAt: z.ZodISODateTime;
|
|
1500
|
-
updatedAt: z.ZodISODateTime;
|
|
1501
|
-
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
1502
|
-
}, z.core.$strict>>;
|
|
1503
|
-
withCalls: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1504
|
-
}, z.core.$strict>;
|
|
1505
|
-
export type FlowList = z.infer<typeof FlowList>;
|
|
1506
|
-
export declare const ReferencedNode: z.ZodObject<{
|
|
1507
|
-
id: z.ZodString;
|
|
1508
|
-
title: z.ZodString;
|
|
1509
|
-
}, z.core.$strict>;
|
|
1510
|
-
export type ReferencedNode = z.infer<typeof ReferencedNode>;
|
|
1511
|
-
export declare const FlowRequirements: z.ZodObject<{
|
|
1512
|
-
flowId: z.ZodString;
|
|
1513
|
-
versionId: z.ZodNullable<z.ZodString>;
|
|
1514
|
-
nodes: z.ZodArray<z.ZodObject<{
|
|
1515
|
-
id: z.ZodString;
|
|
1516
|
-
title: z.ZodString;
|
|
1517
|
-
}, z.core.$strict>>;
|
|
1518
|
-
hiddenNodes: z.ZodNumber;
|
|
1519
|
-
tools: z.ZodArray<z.ZodString>;
|
|
1520
|
-
}, z.core.$strict>;
|
|
1521
|
-
export type FlowRequirements = z.infer<typeof FlowRequirements>;
|
|
1522
|
-
export declare const FlowValidation: z.ZodObject<{
|
|
1523
|
-
flowId: z.ZodString;
|
|
1524
|
-
versionId: z.ZodNullable<z.ZodString>;
|
|
1525
|
-
problems: z.ZodArray<z.ZodObject<{
|
|
1526
|
-
code: z.ZodString;
|
|
1527
|
-
detail: z.ZodString;
|
|
1528
|
-
}, z.core.$strict>>;
|
|
1529
|
-
checkedAt: z.ZodISODateTime;
|
|
1530
|
-
}, z.core.$strict>;
|
|
1531
|
-
export type FlowValidation = z.infer<typeof FlowValidation>;
|
|
1532
|
-
export declare const CreateFlowInput: z.ZodObject<{
|
|
1533
|
-
parentId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1534
|
-
title: z.ZodString;
|
|
1535
|
-
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1536
|
-
idempotencyKey: z.ZodString;
|
|
1537
|
-
}, z.core.$strict>;
|
|
1538
|
-
export type CreateFlowInput = z.infer<typeof CreateFlowInput>;
|
|
1539
|
-
export declare const UpdateFlowInput: z.ZodObject<{
|
|
1540
|
-
flowId: z.ZodString;
|
|
1541
|
-
baseUpdatedAt: z.ZodISODateTime;
|
|
1542
|
-
title: z.ZodOptional<z.ZodString>;
|
|
1543
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1544
|
-
parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1545
|
-
idempotencyKey: z.ZodString;
|
|
1546
|
-
}, z.core.$strict>;
|
|
1547
|
-
export type UpdateFlowInput = z.infer<typeof UpdateFlowInput>;
|
|
1548
|
-
export declare const ArchiveFlowInput: z.ZodObject<{
|
|
1549
|
-
flowId: z.ZodString;
|
|
1550
|
-
baseUpdatedAt: z.ZodISODateTime;
|
|
1551
|
-
archived: z.ZodBoolean;
|
|
1552
|
-
idempotencyKey: z.ZodString;
|
|
1553
|
-
}, z.core.$strict>;
|
|
1554
|
-
export type ArchiveFlowInput = z.infer<typeof ArchiveFlowInput>;
|
|
1555
|
-
export declare const ListFlowsInput: z.ZodObject<{
|
|
1556
|
-
parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1557
|
-
includeArchived: z.ZodOptional<z.ZodBoolean>;
|
|
1558
|
-
archivedOnly: z.ZodOptional<z.ZodBoolean>;
|
|
1559
|
-
}, z.core.$strict>;
|
|
1560
|
-
export type ListFlowsInput = z.infer<typeof ListFlowsInput>;
|
|
1561
|
-
export declare const GetFlowInput: z.ZodObject<{
|
|
1562
|
-
flowId: z.ZodString;
|
|
1563
|
-
}, z.core.$strict>;
|
|
1564
|
-
export type GetFlowInput = z.infer<typeof GetFlowInput>;
|
|
1565
|
-
export declare const SaveFlowVersionInput: z.ZodObject<{
|
|
1566
|
-
flowId: z.ZodString;
|
|
1567
|
-
baseVersionId: z.ZodNullable<z.ZodString>;
|
|
1568
|
-
graph: z.ZodObject<{
|
|
1569
|
-
nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1570
|
-
kind: z.ZodLiteral<"trigger">;
|
|
1571
|
-
configuration: z.ZodObject<{
|
|
1572
|
-
mode: z.ZodLiteral<"manual">;
|
|
1573
|
-
}, z.core.$strict>;
|
|
1574
|
-
id: z.ZodString;
|
|
1575
|
-
position: z.ZodObject<{
|
|
1576
|
-
x: z.ZodNumber;
|
|
1577
|
-
y: z.ZodNumber;
|
|
1578
|
-
}, z.core.$strict>;
|
|
1579
|
-
label: z.ZodString;
|
|
1580
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1581
|
-
kind: z.ZodLiteral<"instruction">;
|
|
1582
|
-
configuration: z.ZodObject<{
|
|
1583
|
-
prompt: z.ZodString;
|
|
1584
|
-
}, z.core.$strict>;
|
|
1585
|
-
id: z.ZodString;
|
|
1586
|
-
position: z.ZodObject<{
|
|
1587
|
-
x: z.ZodNumber;
|
|
1588
|
-
y: z.ZodNumber;
|
|
1589
|
-
}, z.core.$strict>;
|
|
1590
|
-
label: z.ZodString;
|
|
1591
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1592
|
-
kind: z.ZodLiteral<"folder">;
|
|
1593
|
-
configuration: z.ZodObject<{
|
|
1594
|
-
resourceId: z.ZodString;
|
|
1595
|
-
}, z.core.$strict>;
|
|
1596
|
-
id: z.ZodString;
|
|
1597
|
-
position: z.ZodObject<{
|
|
1598
|
-
x: z.ZodNumber;
|
|
1599
|
-
y: z.ZodNumber;
|
|
1600
|
-
}, z.core.$strict>;
|
|
1601
|
-
label: z.ZodString;
|
|
1602
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1603
|
-
kind: z.ZodLiteral<"document">;
|
|
1604
|
-
configuration: z.ZodObject<{
|
|
1605
|
-
resourceId: z.ZodString;
|
|
1606
|
-
}, z.core.$strict>;
|
|
1607
|
-
id: z.ZodString;
|
|
1608
|
-
position: z.ZodObject<{
|
|
1609
|
-
x: z.ZodNumber;
|
|
1610
|
-
y: z.ZodNumber;
|
|
1611
|
-
}, z.core.$strict>;
|
|
1612
|
-
label: z.ZodString;
|
|
1613
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1614
|
-
kind: z.ZodLiteral<"upload">;
|
|
1615
|
-
configuration: z.ZodObject<{
|
|
1616
|
-
resourceId: z.ZodString;
|
|
1617
|
-
}, z.core.$strict>;
|
|
1618
|
-
id: z.ZodString;
|
|
1619
|
-
position: z.ZodObject<{
|
|
1620
|
-
x: z.ZodNumber;
|
|
1621
|
-
y: z.ZodNumber;
|
|
1622
|
-
}, z.core.$strict>;
|
|
1623
|
-
label: z.ZodString;
|
|
1624
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1625
|
-
kind: z.ZodLiteral<"table">;
|
|
1626
|
-
configuration: z.ZodObject<{
|
|
1627
|
-
resourceId: z.ZodString;
|
|
1628
|
-
}, z.core.$strict>;
|
|
1629
|
-
id: z.ZodString;
|
|
1630
|
-
position: z.ZodObject<{
|
|
1631
|
-
x: z.ZodNumber;
|
|
1632
|
-
y: z.ZodNumber;
|
|
1633
|
-
}, z.core.$strict>;
|
|
1634
|
-
label: z.ZodString;
|
|
1635
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1636
|
-
kind: z.ZodLiteral<"tool">;
|
|
1637
|
-
configuration: z.ZodObject<{
|
|
1638
|
-
toolName: z.ZodString;
|
|
1639
|
-
fingerprint: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1640
|
-
arguments: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1641
|
-
}, z.core.$strict>;
|
|
1642
|
-
id: z.ZodString;
|
|
1643
|
-
position: z.ZodObject<{
|
|
1644
|
-
x: z.ZodNumber;
|
|
1645
|
-
y: z.ZodNumber;
|
|
1646
|
-
}, z.core.$strict>;
|
|
1647
|
-
label: z.ZodString;
|
|
1648
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1649
|
-
kind: z.ZodLiteral<"condition">;
|
|
1650
|
-
configuration: z.ZodObject<{
|
|
1651
|
-
mode: z.ZodLiteral<"semantic">;
|
|
1652
|
-
instruction: z.ZodString;
|
|
1653
|
-
}, z.core.$strict>;
|
|
1654
|
-
id: z.ZodString;
|
|
1655
|
-
position: z.ZodObject<{
|
|
1656
|
-
x: z.ZodNumber;
|
|
1657
|
-
y: z.ZodNumber;
|
|
1658
|
-
}, z.core.$strict>;
|
|
1659
|
-
label: z.ZodString;
|
|
1660
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1661
|
-
kind: z.ZodLiteral<"subflow">;
|
|
1662
|
-
configuration: z.ZodObject<{
|
|
1663
|
-
flowId: z.ZodString;
|
|
1664
|
-
version: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1665
|
-
mode: z.ZodLiteral<"latest">;
|
|
1666
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1667
|
-
mode: z.ZodLiteral<"follows">;
|
|
1668
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1669
|
-
mode: z.ZodLiteral<"pinned">;
|
|
1670
|
-
versionId: z.ZodString;
|
|
1671
|
-
}, z.core.$strict>], "mode">>;
|
|
1672
|
-
}, z.core.$strict>;
|
|
1673
|
-
id: z.ZodString;
|
|
1674
|
-
position: z.ZodObject<{
|
|
1675
|
-
x: z.ZodNumber;
|
|
1676
|
-
y: z.ZodNumber;
|
|
1677
|
-
}, z.core.$strict>;
|
|
1678
|
-
label: z.ZodString;
|
|
1679
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1680
|
-
kind: z.ZodLiteral<"output">;
|
|
1681
|
-
configuration: z.ZodObject<{}, z.core.$strict>;
|
|
1682
|
-
id: z.ZodString;
|
|
1683
|
-
position: z.ZodObject<{
|
|
1684
|
-
x: z.ZodNumber;
|
|
1685
|
-
y: z.ZodNumber;
|
|
1686
|
-
}, z.core.$strict>;
|
|
1687
|
-
label: z.ZodString;
|
|
1688
|
-
}, z.core.$strict>], "kind">>;
|
|
1689
|
-
edges: z.ZodArray<z.ZodObject<{
|
|
1690
|
-
id: z.ZodString;
|
|
1691
|
-
source: z.ZodString;
|
|
1692
|
-
target: z.ZodString;
|
|
1693
|
-
kind: z.ZodDefault<z.ZodEnum<{
|
|
1694
|
-
flow: "flow";
|
|
1695
|
-
context: "context";
|
|
1696
|
-
}>>;
|
|
1697
|
-
label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1698
|
-
sourceHandle: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1699
|
-
}, z.core.$strict>>;
|
|
1700
|
-
}, z.core.$strict>;
|
|
1701
|
-
idempotencyKey: z.ZodString;
|
|
1702
|
-
}, z.core.$strict>;
|
|
1703
|
-
export type SaveFlowVersionInput = z.infer<typeof SaveFlowVersionInput>;
|
|
1704
|
-
export declare const PublishFlowInput: z.ZodObject<{
|
|
1705
|
-
flowId: z.ZodString;
|
|
1706
|
-
versionId: z.ZodString;
|
|
1707
|
-
idempotencyKey: z.ZodString;
|
|
1708
|
-
}, z.core.$strict>;
|
|
1709
|
-
export type PublishFlowInput = z.infer<typeof PublishFlowInput>;
|
|
1710
|
-
export declare const UnpublishFlowInput: z.ZodObject<{
|
|
1711
|
-
flowId: z.ZodString;
|
|
1712
|
-
idempotencyKey: z.ZodString;
|
|
1713
|
-
}, z.core.$strict>;
|
|
1714
|
-
export type UnpublishFlowInput = z.infer<typeof UnpublishFlowInput>;
|
|
1715
|
-
export declare const PreviewFlowPublishInput: z.ZodObject<{
|
|
1716
|
-
flowId: z.ZodString;
|
|
1717
|
-
versionId: z.ZodString;
|
|
1718
|
-
}, z.core.$strict>;
|
|
1719
|
-
export type PreviewFlowPublishInput = z.infer<typeof PreviewFlowPublishInput>;
|
|
1720
|
-
export declare const FlowPublishCall: z.ZodObject<{
|
|
1721
|
-
nodeId: z.ZodString;
|
|
1722
|
-
nodeLabel: z.ZodString;
|
|
1723
|
-
calleeId: z.ZodString;
|
|
1724
|
-
calleeTitle: z.ZodString;
|
|
1725
|
-
mode: z.ZodEnum<{
|
|
1726
|
-
latest: "latest";
|
|
1727
|
-
follows: "follows";
|
|
1728
|
-
pinned: "pinned";
|
|
1729
|
-
}>;
|
|
1730
|
-
versionId: z.ZodNullable<z.ZodString>;
|
|
1731
|
-
versionSequence: z.ZodNullable<z.ZodNumber>;
|
|
1732
|
-
freezes: z.ZodBoolean;
|
|
1733
|
-
available: z.ZodBoolean;
|
|
1734
|
-
}, z.core.$strict>;
|
|
1735
|
-
export type FlowPublishCall = z.infer<typeof FlowPublishCall>;
|
|
1736
|
-
export declare const FlowPublishPreview: z.ZodObject<{
|
|
1737
|
-
flowId: z.ZodString;
|
|
1738
|
-
versionId: z.ZodString;
|
|
1739
|
-
calls: z.ZodArray<z.ZodObject<{
|
|
1740
|
-
nodeId: z.ZodString;
|
|
1741
|
-
nodeLabel: z.ZodString;
|
|
1742
|
-
calleeId: z.ZodString;
|
|
1743
|
-
calleeTitle: z.ZodString;
|
|
1744
|
-
mode: z.ZodEnum<{
|
|
1745
|
-
latest: "latest";
|
|
1746
|
-
follows: "follows";
|
|
1747
|
-
pinned: "pinned";
|
|
1748
|
-
}>;
|
|
1749
|
-
versionId: z.ZodNullable<z.ZodString>;
|
|
1750
|
-
versionSequence: z.ZodNullable<z.ZodNumber>;
|
|
1751
|
-
freezes: z.ZodBoolean;
|
|
1752
|
-
available: z.ZodBoolean;
|
|
1753
|
-
}, z.core.$strict>>;
|
|
1754
|
-
}, z.core.$strict>;
|
|
1755
|
-
export type FlowPublishPreview = z.infer<typeof FlowPublishPreview>;
|
|
1756
|
-
export declare const RelationNodeKind: z.ZodEnum<{
|
|
1757
|
-
folder: "folder";
|
|
1758
|
-
document: "document";
|
|
1759
|
-
attachment: "attachment";
|
|
1760
|
-
table: "table";
|
|
1761
|
-
flow: "flow";
|
|
1762
|
-
}>;
|
|
1763
|
-
export type RelationNodeKind = z.infer<typeof RelationNodeKind>;
|
|
1764
|
-
export declare const RelationNode: z.ZodObject<{
|
|
1765
|
-
id: z.ZodString;
|
|
1766
|
-
kind: z.ZodEnum<{
|
|
1767
|
-
folder: "folder";
|
|
1768
|
-
document: "document";
|
|
1769
|
-
attachment: "attachment";
|
|
1770
|
-
table: "table";
|
|
1771
|
-
flow: "flow";
|
|
1772
|
-
}>;
|
|
1773
|
-
title: z.ZodString;
|
|
1774
|
-
inScope: z.ZodBoolean;
|
|
1775
|
-
}, z.core.$strict>;
|
|
1776
|
-
export type RelationNode = z.infer<typeof RelationNode>;
|
|
1777
|
-
export declare const RelationEdge: z.ZodObject<{
|
|
1778
|
-
id: z.ZodString;
|
|
1779
|
-
source: z.ZodString;
|
|
1780
|
-
target: z.ZodString;
|
|
1781
|
-
relation: z.ZodEnum<{
|
|
1782
|
-
calls: "calls";
|
|
1783
|
-
reads: "reads";
|
|
1784
|
-
}>;
|
|
1785
|
-
}, z.core.$strict>;
|
|
1786
|
-
export type RelationEdge = z.infer<typeof RelationEdge>;
|
|
1787
|
-
export declare const RelationGraphScope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1788
|
-
of: z.ZodLiteral<"folder">;
|
|
1789
|
-
folderId: z.ZodNullable<z.ZodString>;
|
|
1790
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1791
|
-
of: z.ZodLiteral<"flow">;
|
|
1792
|
-
flowId: z.ZodString;
|
|
1793
|
-
}, z.core.$strict>], "of">;
|
|
1794
|
-
export type RelationGraphScope = z.infer<typeof RelationGraphScope>;
|
|
1795
|
-
export declare const RelationGraphInput: z.ZodObject<{
|
|
1796
|
-
scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1797
|
-
of: z.ZodLiteral<"folder">;
|
|
1798
|
-
folderId: z.ZodNullable<z.ZodString>;
|
|
1799
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1800
|
-
of: z.ZodLiteral<"flow">;
|
|
1801
|
-
flowId: z.ZodString;
|
|
1802
|
-
}, z.core.$strict>], "of">;
|
|
1803
|
-
limit: z.ZodDefault<z.ZodNumber>;
|
|
1804
|
-
}, z.core.$strict>;
|
|
1805
|
-
export type RelationGraphInput = z.infer<typeof RelationGraphInput>;
|
|
1806
|
-
export declare const RelationGraph: z.ZodObject<{
|
|
1807
|
-
scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1808
|
-
of: z.ZodLiteral<"folder">;
|
|
1809
|
-
folderId: z.ZodNullable<z.ZodString>;
|
|
1810
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1811
|
-
of: z.ZodLiteral<"flow">;
|
|
1812
|
-
flowId: z.ZodString;
|
|
1813
|
-
}, z.core.$strict>], "of">;
|
|
1814
|
-
nodes: z.ZodArray<z.ZodObject<{
|
|
1815
|
-
id: z.ZodString;
|
|
1816
|
-
kind: z.ZodEnum<{
|
|
1817
|
-
folder: "folder";
|
|
1818
|
-
document: "document";
|
|
1819
|
-
attachment: "attachment";
|
|
1820
|
-
table: "table";
|
|
1821
|
-
flow: "flow";
|
|
1822
|
-
}>;
|
|
1823
|
-
title: z.ZodString;
|
|
1824
|
-
inScope: z.ZodBoolean;
|
|
1825
|
-
}, z.core.$strict>>;
|
|
1826
|
-
edges: z.ZodArray<z.ZodObject<{
|
|
1827
|
-
id: z.ZodString;
|
|
1828
|
-
source: z.ZodString;
|
|
1829
|
-
target: z.ZodString;
|
|
1830
|
-
relation: z.ZodEnum<{
|
|
1831
|
-
calls: "calls";
|
|
1832
|
-
reads: "reads";
|
|
1833
|
-
}>;
|
|
1834
|
-
}, z.core.$strict>>;
|
|
1835
|
-
omitted: z.ZodNumber;
|
|
1836
|
-
limit: z.ZodNumber;
|
|
1837
|
-
}, z.core.$strict>;
|
|
1838
|
-
export type RelationGraph = z.infer<typeof RelationGraph>;
|
|
1839
|
-
export declare const FlowRunStatus: z.ZodEnum<{
|
|
1840
|
-
queued: "queued";
|
|
1841
|
-
running: "running";
|
|
1842
|
-
completed: "completed";
|
|
1843
|
-
failed: "failed";
|
|
1844
|
-
cancelled: "cancelled";
|
|
1845
|
-
}>;
|
|
1846
|
-
export type FlowRunStatus = z.infer<typeof FlowRunStatus>;
|
|
1847
|
-
export declare const FlowRun: z.ZodObject<{
|
|
1848
|
-
id: z.ZodString;
|
|
1849
|
-
flowId: z.ZodString;
|
|
1850
|
-
versionId: z.ZodString;
|
|
1851
|
-
status: z.ZodEnum<{
|
|
1852
|
-
queued: "queued";
|
|
1853
|
-
running: "running";
|
|
1854
|
-
completed: "completed";
|
|
1855
|
-
failed: "failed";
|
|
1856
|
-
cancelled: "cancelled";
|
|
1857
|
-
}>;
|
|
1858
|
-
currentNodeId: z.ZodNullable<z.ZodString>;
|
|
1859
|
-
input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1860
|
-
output: z.ZodNullable<z.ZodUnknown>;
|
|
1861
|
-
error: z.ZodNullable<z.ZodString>;
|
|
1862
|
-
initiatedBy: z.ZodString;
|
|
1863
|
-
parentRunId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1864
|
-
parentNodeId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1865
|
-
createdAt: z.ZodISODateTime;
|
|
1866
|
-
updatedAt: z.ZodISODateTime;
|
|
1867
|
-
completedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
1868
|
-
}, z.core.$strict>;
|
|
1869
|
-
export type FlowRun = z.infer<typeof FlowRun>;
|
|
1870
|
-
export declare const FlowRunTrailEntry: z.ZodObject<{
|
|
1871
|
-
runId: z.ZodString;
|
|
1872
|
-
flowId: z.ZodString;
|
|
1873
|
-
flowTitle: z.ZodString;
|
|
1874
|
-
nodeId: z.ZodNullable<z.ZodString>;
|
|
1875
|
-
nodeLabel: z.ZodNullable<z.ZodString>;
|
|
1876
|
-
}, z.core.$strict>;
|
|
1877
|
-
export type FlowRunTrailEntry = z.infer<typeof FlowRunTrailEntry>;
|
|
1878
|
-
export declare const FlowRunStep: z.ZodObject<{
|
|
1879
|
-
run: z.ZodObject<{
|
|
1880
|
-
id: z.ZodString;
|
|
1881
|
-
flowId: z.ZodString;
|
|
1882
|
-
versionId: z.ZodString;
|
|
1883
|
-
status: z.ZodEnum<{
|
|
1884
|
-
queued: "queued";
|
|
1885
|
-
running: "running";
|
|
1886
|
-
completed: "completed";
|
|
1887
|
-
failed: "failed";
|
|
1888
|
-
cancelled: "cancelled";
|
|
1889
|
-
}>;
|
|
1890
|
-
currentNodeId: z.ZodNullable<z.ZodString>;
|
|
1891
|
-
input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1892
|
-
output: z.ZodNullable<z.ZodUnknown>;
|
|
1893
|
-
error: z.ZodNullable<z.ZodString>;
|
|
1894
|
-
initiatedBy: z.ZodString;
|
|
1895
|
-
parentRunId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1896
|
-
parentNodeId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1897
|
-
createdAt: z.ZodISODateTime;
|
|
1898
|
-
updatedAt: z.ZodISODateTime;
|
|
1899
|
-
completedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
1900
|
-
}, z.core.$strict>;
|
|
1901
|
-
node: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1902
|
-
kind: z.ZodLiteral<"trigger">;
|
|
1903
|
-
configuration: z.ZodObject<{
|
|
1904
|
-
mode: z.ZodLiteral<"manual">;
|
|
1905
|
-
}, z.core.$strict>;
|
|
1906
|
-
id: z.ZodString;
|
|
1907
|
-
position: z.ZodObject<{
|
|
1908
|
-
x: z.ZodNumber;
|
|
1909
|
-
y: z.ZodNumber;
|
|
1910
|
-
}, z.core.$strict>;
|
|
1911
|
-
label: z.ZodString;
|
|
1912
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1913
|
-
kind: z.ZodLiteral<"instruction">;
|
|
1914
|
-
configuration: z.ZodObject<{
|
|
1915
|
-
prompt: z.ZodString;
|
|
1916
|
-
}, z.core.$strict>;
|
|
1917
|
-
id: z.ZodString;
|
|
1918
|
-
position: z.ZodObject<{
|
|
1919
|
-
x: z.ZodNumber;
|
|
1920
|
-
y: z.ZodNumber;
|
|
1921
|
-
}, z.core.$strict>;
|
|
1922
|
-
label: z.ZodString;
|
|
1923
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1924
|
-
kind: z.ZodLiteral<"folder">;
|
|
1925
|
-
configuration: z.ZodObject<{
|
|
1926
|
-
resourceId: z.ZodString;
|
|
1927
|
-
}, z.core.$strict>;
|
|
1928
|
-
id: z.ZodString;
|
|
1929
|
-
position: z.ZodObject<{
|
|
1930
|
-
x: z.ZodNumber;
|
|
1931
|
-
y: z.ZodNumber;
|
|
1932
|
-
}, z.core.$strict>;
|
|
1933
|
-
label: z.ZodString;
|
|
1934
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1935
|
-
kind: z.ZodLiteral<"document">;
|
|
1936
|
-
configuration: z.ZodObject<{
|
|
1937
|
-
resourceId: z.ZodString;
|
|
1938
|
-
}, z.core.$strict>;
|
|
1939
|
-
id: z.ZodString;
|
|
1940
|
-
position: z.ZodObject<{
|
|
1941
|
-
x: z.ZodNumber;
|
|
1942
|
-
y: z.ZodNumber;
|
|
1943
|
-
}, z.core.$strict>;
|
|
1944
|
-
label: z.ZodString;
|
|
1945
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1946
|
-
kind: z.ZodLiteral<"upload">;
|
|
1947
|
-
configuration: z.ZodObject<{
|
|
1948
|
-
resourceId: z.ZodString;
|
|
1949
|
-
}, z.core.$strict>;
|
|
1950
|
-
id: z.ZodString;
|
|
1951
|
-
position: z.ZodObject<{
|
|
1952
|
-
x: z.ZodNumber;
|
|
1953
|
-
y: z.ZodNumber;
|
|
1954
|
-
}, z.core.$strict>;
|
|
1955
|
-
label: z.ZodString;
|
|
1956
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1957
|
-
kind: z.ZodLiteral<"table">;
|
|
1958
|
-
configuration: z.ZodObject<{
|
|
1959
|
-
resourceId: z.ZodString;
|
|
1960
|
-
}, z.core.$strict>;
|
|
1961
|
-
id: z.ZodString;
|
|
1962
|
-
position: z.ZodObject<{
|
|
1963
|
-
x: z.ZodNumber;
|
|
1964
|
-
y: z.ZodNumber;
|
|
1965
|
-
}, z.core.$strict>;
|
|
1966
|
-
label: z.ZodString;
|
|
1967
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1968
|
-
kind: z.ZodLiteral<"tool">;
|
|
1969
|
-
configuration: z.ZodObject<{
|
|
1970
|
-
toolName: z.ZodString;
|
|
1971
|
-
fingerprint: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1972
|
-
arguments: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1973
|
-
}, z.core.$strict>;
|
|
1974
|
-
id: z.ZodString;
|
|
1975
|
-
position: z.ZodObject<{
|
|
1976
|
-
x: z.ZodNumber;
|
|
1977
|
-
y: z.ZodNumber;
|
|
1978
|
-
}, z.core.$strict>;
|
|
1979
|
-
label: z.ZodString;
|
|
1980
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1981
|
-
kind: z.ZodLiteral<"condition">;
|
|
1982
|
-
configuration: z.ZodObject<{
|
|
1983
|
-
mode: z.ZodLiteral<"semantic">;
|
|
1984
|
-
instruction: z.ZodString;
|
|
1985
|
-
}, z.core.$strict>;
|
|
1986
|
-
id: z.ZodString;
|
|
1987
|
-
position: z.ZodObject<{
|
|
1988
|
-
x: z.ZodNumber;
|
|
1989
|
-
y: z.ZodNumber;
|
|
1990
|
-
}, z.core.$strict>;
|
|
1991
|
-
label: z.ZodString;
|
|
1992
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1993
|
-
kind: z.ZodLiteral<"subflow">;
|
|
1994
|
-
configuration: z.ZodObject<{
|
|
1995
|
-
flowId: z.ZodString;
|
|
1996
|
-
version: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1997
|
-
mode: z.ZodLiteral<"latest">;
|
|
1998
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1999
|
-
mode: z.ZodLiteral<"follows">;
|
|
2000
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2001
|
-
mode: z.ZodLiteral<"pinned">;
|
|
2002
|
-
versionId: z.ZodString;
|
|
2003
|
-
}, z.core.$strict>], "mode">>;
|
|
2004
|
-
}, z.core.$strict>;
|
|
2005
|
-
id: z.ZodString;
|
|
2006
|
-
position: z.ZodObject<{
|
|
2007
|
-
x: z.ZodNumber;
|
|
2008
|
-
y: z.ZodNumber;
|
|
2009
|
-
}, z.core.$strict>;
|
|
2010
|
-
label: z.ZodString;
|
|
2011
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2012
|
-
kind: z.ZodLiteral<"output">;
|
|
2013
|
-
configuration: z.ZodObject<{}, z.core.$strict>;
|
|
2014
|
-
id: z.ZodString;
|
|
2015
|
-
position: z.ZodObject<{
|
|
2016
|
-
x: z.ZodNumber;
|
|
2017
|
-
y: z.ZodNumber;
|
|
2018
|
-
}, z.core.$strict>;
|
|
2019
|
-
label: z.ZodString;
|
|
2020
|
-
}, z.core.$strict>], "kind">>;
|
|
2021
|
-
trail: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2022
|
-
runId: z.ZodString;
|
|
2023
|
-
flowId: z.ZodString;
|
|
2024
|
-
flowTitle: z.ZodString;
|
|
2025
|
-
nodeId: z.ZodNullable<z.ZodString>;
|
|
2026
|
-
nodeLabel: z.ZodNullable<z.ZodString>;
|
|
2027
|
-
}, z.core.$strict>>>;
|
|
2028
|
-
}, z.core.$strict>;
|
|
2029
|
-
export type FlowRunStep = z.infer<typeof FlowRunStep>;
|
|
2030
|
-
export declare const StartFlowRunInput: z.ZodObject<{
|
|
2031
|
-
flowId: z.ZodString;
|
|
2032
|
-
input: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2033
|
-
parent: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
2034
|
-
runId: z.ZodString;
|
|
2035
|
-
nodeId: z.ZodString;
|
|
2036
|
-
}, z.core.$strict>>>;
|
|
2037
|
-
idempotencyKey: z.ZodString;
|
|
2038
|
-
}, z.core.$strict>;
|
|
2039
|
-
export type StartFlowRunInput = z.infer<typeof StartFlowRunInput>;
|
|
2040
|
-
export declare const GetFlowRunInput: z.ZodObject<{
|
|
2041
|
-
runId: z.ZodString;
|
|
2042
|
-
}, z.core.$strict>;
|
|
2043
|
-
export type GetFlowRunInput = z.infer<typeof GetFlowRunInput>;
|
|
2044
|
-
export declare const CancelFlowRunInput: z.ZodObject<{
|
|
2045
|
-
runId: z.ZodString;
|
|
2046
|
-
idempotencyKey: z.ZodString;
|
|
2047
|
-
}, z.core.$strict>;
|
|
2048
|
-
export type CancelFlowRunInput = z.infer<typeof CancelFlowRunInput>;
|
|
2049
|
-
export declare const CompleteFlowRunStepInput: z.ZodObject<{
|
|
2050
|
-
runId: z.ZodString;
|
|
2051
|
-
nodeId: z.ZodString;
|
|
2052
|
-
outcome: z.ZodEnum<{
|
|
2053
|
-
completed: "completed";
|
|
2054
|
-
failed: "failed";
|
|
2055
|
-
}>;
|
|
2056
|
-
branch: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
2057
|
-
output: z.ZodDefault<z.ZodNullable<z.ZodUnknown>>;
|
|
2058
|
-
error: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
2059
|
-
idempotencyKey: z.ZodString;
|
|
2060
|
-
}, z.core.$strict>;
|
|
2061
|
-
export type CompleteFlowRunStepInput = z.infer<typeof CompleteFlowRunStepInput>;
|
|
2062
|
-
export declare const FlowRunTrigger: z.ZodEnum<{
|
|
2063
|
-
manual: "manual";
|
|
2064
|
-
subflow: "subflow";
|
|
2065
|
-
}>;
|
|
2066
|
-
export type FlowRunTrigger = z.infer<typeof FlowRunTrigger>;
|
|
2067
|
-
export declare const FlowRunFailure: z.ZodObject<{
|
|
2068
|
-
nodeId: z.ZodString;
|
|
2069
|
-
nodeLabel: z.ZodString;
|
|
2070
|
-
detail: z.ZodString;
|
|
2071
|
-
calledRunId: z.ZodNullable<z.ZodString>;
|
|
2072
|
-
}, z.core.$strict>;
|
|
2073
|
-
export type FlowRunFailure = z.infer<typeof FlowRunFailure>;
|
|
2074
|
-
export declare const FlowRunSummary: z.ZodObject<{
|
|
2075
|
-
id: z.ZodString;
|
|
2076
|
-
flowId: z.ZodString;
|
|
2077
|
-
versionId: z.ZodString;
|
|
2078
|
-
status: z.ZodEnum<{
|
|
2079
|
-
queued: "queued";
|
|
2080
|
-
running: "running";
|
|
2081
|
-
completed: "completed";
|
|
2082
|
-
failed: "failed";
|
|
2083
|
-
cancelled: "cancelled";
|
|
2084
|
-
}>;
|
|
2085
|
-
trigger: z.ZodEnum<{
|
|
2086
|
-
manual: "manual";
|
|
2087
|
-
subflow: "subflow";
|
|
2088
|
-
}>;
|
|
2089
|
-
startedAt: z.ZodISODateTime;
|
|
2090
|
-
completedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
2091
|
-
durationMs: z.ZodNullable<z.ZodNumber>;
|
|
2092
|
-
initiatedBy: z.ZodString;
|
|
2093
|
-
parentRunId: z.ZodNullable<z.ZodString>;
|
|
2094
|
-
failure: z.ZodNullable<z.ZodObject<{
|
|
2095
|
-
nodeId: z.ZodString;
|
|
2096
|
-
nodeLabel: z.ZodString;
|
|
2097
|
-
detail: z.ZodString;
|
|
2098
|
-
calledRunId: z.ZodNullable<z.ZodString>;
|
|
2099
|
-
}, z.core.$strict>>;
|
|
2100
|
-
}, z.core.$strict>;
|
|
2101
|
-
export type FlowRunSummary = z.infer<typeof FlowRunSummary>;
|
|
2102
|
-
export declare const ListFlowRunsInput: z.ZodObject<{
|
|
2103
|
-
flowId: z.ZodString;
|
|
2104
|
-
failedOnly: z.ZodDefault<z.ZodBoolean>;
|
|
2105
|
-
limit: z.ZodDefault<z.ZodNumber>;
|
|
2106
|
-
cursor: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
2107
|
-
}, z.core.$strict>;
|
|
2108
|
-
export type ListFlowRunsInput = z.infer<typeof ListFlowRunsInput>;
|
|
2109
|
-
export declare const FlowRunList: z.ZodObject<{
|
|
2110
|
-
items: z.ZodArray<z.ZodObject<{
|
|
2111
|
-
id: z.ZodString;
|
|
2112
|
-
flowId: z.ZodString;
|
|
2113
|
-
versionId: z.ZodString;
|
|
2114
|
-
status: z.ZodEnum<{
|
|
2115
|
-
queued: "queued";
|
|
2116
|
-
running: "running";
|
|
2117
|
-
completed: "completed";
|
|
2118
|
-
failed: "failed";
|
|
2119
|
-
cancelled: "cancelled";
|
|
2120
|
-
}>;
|
|
2121
|
-
trigger: z.ZodEnum<{
|
|
2122
|
-
manual: "manual";
|
|
2123
|
-
subflow: "subflow";
|
|
2124
|
-
}>;
|
|
2125
|
-
startedAt: z.ZodISODateTime;
|
|
2126
|
-
completedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
2127
|
-
durationMs: z.ZodNullable<z.ZodNumber>;
|
|
2128
|
-
initiatedBy: z.ZodString;
|
|
2129
|
-
parentRunId: z.ZodNullable<z.ZodString>;
|
|
2130
|
-
failure: z.ZodNullable<z.ZodObject<{
|
|
2131
|
-
nodeId: z.ZodString;
|
|
2132
|
-
nodeLabel: z.ZodString;
|
|
2133
|
-
detail: z.ZodString;
|
|
2134
|
-
calledRunId: z.ZodNullable<z.ZodString>;
|
|
2135
|
-
}, z.core.$strict>>;
|
|
2136
|
-
}, z.core.$strict>>;
|
|
2137
|
-
nextCursor: z.ZodNullable<z.ZodString>;
|
|
2138
|
-
}, z.core.$strict>;
|
|
2139
|
-
export type FlowRunList = z.infer<typeof FlowRunList>;
|
|
2140
|
-
export declare const FlowRunStepRecord: z.ZodObject<{
|
|
2141
|
-
nodeId: z.ZodString;
|
|
2142
|
-
nodeLabel: z.ZodString;
|
|
2143
|
-
outcome: z.ZodEnum<{
|
|
2144
|
-
completed: "completed";
|
|
2145
|
-
failed: "failed";
|
|
2146
|
-
}>;
|
|
2147
|
-
branch: z.ZodNullable<z.ZodString>;
|
|
2148
|
-
detail: z.ZodNullable<z.ZodString>;
|
|
2149
|
-
calledRunId: z.ZodNullable<z.ZodString>;
|
|
2150
|
-
completedAt: z.ZodISODateTime;
|
|
2151
|
-
}, z.core.$strict>;
|
|
2152
|
-
export type FlowRunStepRecord = z.infer<typeof FlowRunStepRecord>;
|
|
2153
|
-
export declare const FlowRunHistory: z.ZodObject<{
|
|
2154
|
-
runId: z.ZodString;
|
|
2155
|
-
flowId: z.ZodString;
|
|
2156
|
-
status: z.ZodEnum<{
|
|
2157
|
-
queued: "queued";
|
|
2158
|
-
running: "running";
|
|
2159
|
-
completed: "completed";
|
|
2160
|
-
failed: "failed";
|
|
2161
|
-
cancelled: "cancelled";
|
|
2162
|
-
}>;
|
|
2163
|
-
steps: z.ZodArray<z.ZodObject<{
|
|
2164
|
-
nodeId: z.ZodString;
|
|
2165
|
-
nodeLabel: z.ZodString;
|
|
2166
|
-
outcome: z.ZodEnum<{
|
|
2167
|
-
completed: "completed";
|
|
2168
|
-
failed: "failed";
|
|
2169
|
-
}>;
|
|
2170
|
-
branch: z.ZodNullable<z.ZodString>;
|
|
2171
|
-
detail: z.ZodNullable<z.ZodString>;
|
|
2172
|
-
calledRunId: z.ZodNullable<z.ZodString>;
|
|
2173
|
-
completedAt: z.ZodISODateTime;
|
|
2174
|
-
}, z.core.$strict>>;
|
|
2175
|
-
trail: z.ZodArray<z.ZodObject<{
|
|
2176
|
-
runId: z.ZodString;
|
|
2177
|
-
flowId: z.ZodString;
|
|
2178
|
-
flowTitle: z.ZodString;
|
|
2179
|
-
nodeId: z.ZodNullable<z.ZodString>;
|
|
2180
|
-
nodeLabel: z.ZodNullable<z.ZodString>;
|
|
2181
|
-
}, z.core.$strict>>;
|
|
2182
|
-
}, z.core.$strict>;
|
|
2183
|
-
export type FlowRunHistory = z.infer<typeof FlowRunHistory>;
|
|
2184
|
-
export declare const BundleManifestFilename = "manifest.json";
|
|
2185
|
-
/**
|
|
2186
|
-
* What a bundle entry can be. `flow` joins the node kinds because a flow shares the folder tree
|
|
2187
|
-
* without being a node (ADR-0004), and the bundle mirrors the tree, not the tables.
|
|
2188
|
-
*
|
|
2189
|
-
* ⚠️ `agent` and `board` are STILL HERE, and that is the one place in this file where a value
|
|
2190
|
-
* survives its feature (#390). A bundle is somebody else's file: an export written before Agents
|
|
2191
|
-
* and Board were parked (#385) is a correct export, and it has to PARSE so the import can refuse it
|
|
2192
|
-
* by name — with the entry, the kind and the branch the code is on. Take them out and the same
|
|
2193
|
-
* bundle fails as `unexpected enum value`, which sends its holder looking for a broken file that is
|
|
2194
|
-
* not broken.
|
|
2195
|
-
*
|
|
2196
|
-
* They belong to the wire format of a file that already exists, not to the product. Nothing may
|
|
2197
|
-
* create either kind; `NodeKind` is the enum that says so.
|
|
2198
|
-
*/
|
|
2199
|
-
export declare const BundleEntryKind: z.ZodEnum<{
|
|
2200
|
-
folder: "folder";
|
|
2201
|
-
document: "document";
|
|
2202
|
-
attachment: "attachment";
|
|
2203
|
-
table: "table";
|
|
2204
|
-
flow: "flow";
|
|
2205
|
-
agent: "agent";
|
|
2206
|
-
board: "board";
|
|
2207
|
-
}>;
|
|
2208
|
-
export type BundleEntryKind = z.infer<typeof BundleEntryKind>;
|
|
2209
|
-
export declare const BundleManifestEntry: z.ZodObject<{
|
|
2210
|
-
id: z.ZodString;
|
|
2211
|
-
kind: z.ZodEnum<{
|
|
2212
|
-
folder: "folder";
|
|
2213
|
-
document: "document";
|
|
2214
|
-
attachment: "attachment";
|
|
2215
|
-
table: "table";
|
|
2216
|
-
flow: "flow";
|
|
2217
|
-
agent: "agent";
|
|
2218
|
-
board: "board";
|
|
2219
|
-
}>;
|
|
2220
|
-
title: z.ZodString;
|
|
2221
|
-
description: z.ZodNullable<z.ZodString>;
|
|
2222
|
-
mediaType: z.ZodNullable<z.ZodString>;
|
|
2223
|
-
path: z.ZodString;
|
|
2224
|
-
}, z.core.$strict>;
|
|
2225
|
-
export type BundleManifestEntry = z.infer<typeof BundleManifestEntry>;
|
|
2226
|
-
export declare const BundleExclusion: z.ZodEnum<{
|
|
2227
|
-
"version-history": "version-history";
|
|
2228
|
-
grants: "grants";
|
|
2229
|
-
"flow-runs": "flow-runs";
|
|
2230
|
-
"archived-nodes": "archived-nodes";
|
|
2231
|
-
}>;
|
|
2232
|
-
export type BundleExclusion = z.infer<typeof BundleExclusion>;
|
|
2233
|
-
export declare const BundleManifest: z.ZodObject<{
|
|
2234
|
-
version: z.ZodLiteral<1>;
|
|
2235
|
-
exportedAt: z.ZodISODateTime;
|
|
2236
|
-
rootId: z.ZodNullable<z.ZodString>;
|
|
2237
|
-
entries: z.ZodArray<z.ZodObject<{
|
|
2238
|
-
id: z.ZodString;
|
|
2239
|
-
kind: z.ZodEnum<{
|
|
2240
|
-
folder: "folder";
|
|
2241
|
-
document: "document";
|
|
2242
|
-
attachment: "attachment";
|
|
2243
|
-
table: "table";
|
|
2244
|
-
flow: "flow";
|
|
2245
|
-
agent: "agent";
|
|
2246
|
-
board: "board";
|
|
2247
|
-
}>;
|
|
2248
|
-
title: z.ZodString;
|
|
2249
|
-
description: z.ZodNullable<z.ZodString>;
|
|
2250
|
-
mediaType: z.ZodNullable<z.ZodString>;
|
|
2251
|
-
path: z.ZodString;
|
|
2252
|
-
}, z.core.$strict>>;
|
|
2253
|
-
excluded: z.ZodArray<z.ZodEnum<{
|
|
2254
|
-
"version-history": "version-history";
|
|
2255
|
-
grants: "grants";
|
|
2256
|
-
"flow-runs": "flow-runs";
|
|
2257
|
-
"archived-nodes": "archived-nodes";
|
|
2258
|
-
}>>;
|
|
2259
|
-
}, z.core.$strict>;
|
|
2260
|
-
export type BundleManifest = z.infer<typeof BundleManifest>;
|
|
2261
|
-
export declare const BundleImportResult: z.ZodObject<{
|
|
2262
|
-
nodes: z.ZodNumber;
|
|
2263
|
-
flows: z.ZodNumber;
|
|
2264
|
-
rootNodeIds: z.ZodArray<z.ZodString>;
|
|
2265
|
-
replayed: z.ZodBoolean;
|
|
2266
25
|
}, z.core.$strict>;
|
|
2267
|
-
export type BundleImportResult = z.infer<typeof BundleImportResult>;
|