@anchrd/intel-contract 0.1.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.
@@ -0,0 +1,1493 @@
1
+ import { z } from "zod";
2
+ export declare const IntelId: z.ZodString;
3
+ export declare const IsoDateTime: z.ZodISODateTime;
4
+ export declare const ProblemDetails: z.ZodObject<{
5
+ type: z.ZodString;
6
+ status: z.ZodNumber;
7
+ title: z.ZodString;
8
+ detail: z.ZodOptional<z.ZodString>;
9
+ instance: z.ZodOptional<z.ZodString>;
10
+ code: z.ZodOptional<z.ZodString>;
11
+ }, z.core.$strict>;
12
+ export type ProblemDetails = z.infer<typeof ProblemDetails>;
13
+ export declare const KnowledgeNodeKind: z.ZodEnum<{
14
+ folder: "folder";
15
+ document: "document";
16
+ attachment: "attachment";
17
+ }>;
18
+ export type KnowledgeNodeKind = z.infer<typeof KnowledgeNodeKind>;
19
+ export declare const ContextPolicy: z.ZodEnum<{
20
+ pinned: "pinned";
21
+ relevant: "relevant";
22
+ explicit: "explicit";
23
+ }>;
24
+ export type ContextPolicy = z.infer<typeof ContextPolicy>;
25
+ export declare const ResourceRole: z.ZodEnum<{
26
+ viewer: "viewer";
27
+ commenter: "commenter";
28
+ editor: "editor";
29
+ manager: "manager";
30
+ }>;
31
+ export type ResourceRole = z.infer<typeof ResourceRole>;
32
+ export declare const SharePrincipal: z.ZodDiscriminatedUnion<[z.ZodObject<{
33
+ type: z.ZodLiteral<"user">;
34
+ id: z.ZodString;
35
+ }, z.core.$strict>, z.ZodObject<{
36
+ type: z.ZodLiteral<"email">;
37
+ email: z.ZodEmail;
38
+ }, z.core.$strict>, z.ZodObject<{
39
+ type: z.ZodLiteral<"organization">;
40
+ }, z.core.$strict>], "type">;
41
+ export type SharePrincipal = z.infer<typeof SharePrincipal>;
42
+ export declare const KnowledgeNode: z.ZodObject<{
43
+ id: z.ZodString;
44
+ parentId: z.ZodNullable<z.ZodString>;
45
+ kind: z.ZodEnum<{
46
+ folder: "folder";
47
+ document: "document";
48
+ attachment: "attachment";
49
+ }>;
50
+ title: z.ZodString;
51
+ description: z.ZodNullable<z.ZodString>;
52
+ contextPolicy: z.ZodEnum<{
53
+ pinned: "pinned";
54
+ relevant: "relevant";
55
+ explicit: "explicit";
56
+ }>;
57
+ ownerId: z.ZodString;
58
+ currentVersionId: z.ZodNullable<z.ZodString>;
59
+ createdAt: z.ZodISODateTime;
60
+ updatedAt: z.ZodISODateTime;
61
+ archivedAt: z.ZodNullable<z.ZodISODateTime>;
62
+ }, z.core.$strict>;
63
+ export type KnowledgeNode = z.infer<typeof KnowledgeNode>;
64
+ export declare const KnowledgeVersion: z.ZodObject<{
65
+ id: z.ZodString;
66
+ nodeId: z.ZodString;
67
+ sequence: z.ZodNumber;
68
+ contentKey: z.ZodString;
69
+ mediaType: z.ZodString;
70
+ contentHash: z.ZodString;
71
+ size: z.ZodNumber;
72
+ createdBy: z.ZodString;
73
+ createdAt: z.ZodISODateTime;
74
+ }, z.core.$strict>;
75
+ export type KnowledgeVersion = z.infer<typeof KnowledgeVersion>;
76
+ export declare const ListKnowledgeNodesInput: z.ZodObject<{
77
+ parentId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
78
+ includeArchived: z.ZodDefault<z.ZodBoolean>;
79
+ }, z.core.$strict>;
80
+ export type ListKnowledgeNodesInput = z.infer<typeof ListKnowledgeNodesInput>;
81
+ export declare const GetKnowledgeNodeInput: z.ZodObject<{
82
+ nodeId: z.ZodString;
83
+ }, z.core.$strict>;
84
+ export type GetKnowledgeNodeInput = z.infer<typeof GetKnowledgeNodeInput>;
85
+ export declare const ListKnowledgeGrantsInput: z.ZodObject<{
86
+ resourceId: z.ZodString;
87
+ }, z.core.$strict>;
88
+ export type ListKnowledgeGrantsInput = z.infer<typeof ListKnowledgeGrantsInput>;
89
+ export declare const CreateKnowledgeNodeInput: z.ZodObject<{
90
+ parentId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
91
+ kind: z.ZodEnum<{
92
+ folder: "folder";
93
+ document: "document";
94
+ attachment: "attachment";
95
+ }>;
96
+ title: z.ZodString;
97
+ description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
98
+ contextPolicy: z.ZodDefault<z.ZodEnum<{
99
+ pinned: "pinned";
100
+ relevant: "relevant";
101
+ explicit: "explicit";
102
+ }>>;
103
+ idempotencyKey: z.ZodString;
104
+ }, z.core.$strict>;
105
+ export type CreateKnowledgeNodeInput = z.infer<typeof CreateKnowledgeNodeInput>;
106
+ export declare const SaveKnowledgeVersionInput: z.ZodObject<{
107
+ nodeId: z.ZodString;
108
+ baseVersionId: z.ZodNullable<z.ZodString>;
109
+ content: z.ZodString;
110
+ mediaType: z.ZodDefault<z.ZodString>;
111
+ idempotencyKey: z.ZodString;
112
+ }, z.core.$strict>;
113
+ export type SaveKnowledgeVersionInput = z.infer<typeof SaveKnowledgeVersionInput>;
114
+ export declare const SaveKnowledgeAttachmentInput: z.ZodObject<{
115
+ nodeId: z.ZodString;
116
+ baseVersionId: z.ZodNullable<z.ZodString>;
117
+ contentBase64: z.ZodString;
118
+ mediaType: z.ZodString;
119
+ idempotencyKey: z.ZodString;
120
+ }, z.core.$strict>;
121
+ export type SaveKnowledgeAttachmentInput = z.infer<typeof SaveKnowledgeAttachmentInput>;
122
+ export declare const UpdateKnowledgeNodeInput: z.ZodObject<{
123
+ nodeId: z.ZodString;
124
+ baseUpdatedAt: z.ZodISODateTime;
125
+ title: z.ZodOptional<z.ZodString>;
126
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
127
+ contextPolicy: z.ZodOptional<z.ZodEnum<{
128
+ pinned: "pinned";
129
+ relevant: "relevant";
130
+ explicit: "explicit";
131
+ }>>;
132
+ parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
133
+ idempotencyKey: z.ZodString;
134
+ }, z.core.$strict>;
135
+ export type UpdateKnowledgeNodeInput = z.infer<typeof UpdateKnowledgeNodeInput>;
136
+ export declare const ArchiveKnowledgeNodeInput: z.ZodObject<{
137
+ nodeId: z.ZodString;
138
+ baseUpdatedAt: z.ZodISODateTime;
139
+ archived: z.ZodBoolean;
140
+ idempotencyKey: z.ZodString;
141
+ }, z.core.$strict>;
142
+ export type ArchiveKnowledgeNodeInput = z.infer<typeof ArchiveKnowledgeNodeInput>;
143
+ export declare const KnowledgeNodeList: z.ZodObject<{
144
+ items: z.ZodArray<z.ZodObject<{
145
+ id: z.ZodString;
146
+ parentId: z.ZodNullable<z.ZodString>;
147
+ kind: z.ZodEnum<{
148
+ folder: "folder";
149
+ document: "document";
150
+ attachment: "attachment";
151
+ }>;
152
+ title: z.ZodString;
153
+ description: z.ZodNullable<z.ZodString>;
154
+ contextPolicy: z.ZodEnum<{
155
+ pinned: "pinned";
156
+ relevant: "relevant";
157
+ explicit: "explicit";
158
+ }>;
159
+ ownerId: z.ZodString;
160
+ currentVersionId: z.ZodNullable<z.ZodString>;
161
+ createdAt: z.ZodISODateTime;
162
+ updatedAt: z.ZodISODateTime;
163
+ archivedAt: z.ZodNullable<z.ZodISODateTime>;
164
+ }, z.core.$strict>>;
165
+ }, z.core.$strict>;
166
+ export type KnowledgeNodeList = z.infer<typeof KnowledgeNodeList>;
167
+ export declare const KnowledgeVersionList: z.ZodObject<{
168
+ items: z.ZodArray<z.ZodObject<{
169
+ id: z.ZodString;
170
+ nodeId: z.ZodString;
171
+ sequence: z.ZodNumber;
172
+ contentKey: z.ZodString;
173
+ mediaType: z.ZodString;
174
+ contentHash: z.ZodString;
175
+ size: z.ZodNumber;
176
+ createdBy: z.ZodString;
177
+ createdAt: z.ZodISODateTime;
178
+ }, z.core.$strict>>;
179
+ }, z.core.$strict>;
180
+ export type KnowledgeVersionList = z.infer<typeof KnowledgeVersionList>;
181
+ export declare const KnowledgeDocument: z.ZodObject<{
182
+ node: z.ZodObject<{
183
+ id: z.ZodString;
184
+ parentId: z.ZodNullable<z.ZodString>;
185
+ kind: z.ZodEnum<{
186
+ folder: "folder";
187
+ document: "document";
188
+ attachment: "attachment";
189
+ }>;
190
+ title: z.ZodString;
191
+ description: z.ZodNullable<z.ZodString>;
192
+ contextPolicy: z.ZodEnum<{
193
+ pinned: "pinned";
194
+ relevant: "relevant";
195
+ explicit: "explicit";
196
+ }>;
197
+ ownerId: z.ZodString;
198
+ currentVersionId: z.ZodNullable<z.ZodString>;
199
+ createdAt: z.ZodISODateTime;
200
+ updatedAt: z.ZodISODateTime;
201
+ archivedAt: z.ZodNullable<z.ZodISODateTime>;
202
+ }, z.core.$strict>;
203
+ version: z.ZodNullable<z.ZodObject<{
204
+ id: z.ZodString;
205
+ nodeId: z.ZodString;
206
+ sequence: z.ZodNumber;
207
+ contentKey: z.ZodString;
208
+ mediaType: z.ZodString;
209
+ contentHash: z.ZodString;
210
+ size: z.ZodNumber;
211
+ createdBy: z.ZodString;
212
+ createdAt: z.ZodISODateTime;
213
+ }, z.core.$strict>>;
214
+ content: z.ZodNullable<z.ZodString>;
215
+ }, z.core.$strict>;
216
+ export type KnowledgeDocument = z.infer<typeof KnowledgeDocument>;
217
+ export declare const KnowledgeAttachment: z.ZodObject<{
218
+ node: z.ZodObject<{
219
+ id: z.ZodString;
220
+ parentId: z.ZodNullable<z.ZodString>;
221
+ kind: z.ZodEnum<{
222
+ folder: "folder";
223
+ document: "document";
224
+ attachment: "attachment";
225
+ }>;
226
+ title: z.ZodString;
227
+ description: z.ZodNullable<z.ZodString>;
228
+ contextPolicy: z.ZodEnum<{
229
+ pinned: "pinned";
230
+ relevant: "relevant";
231
+ explicit: "explicit";
232
+ }>;
233
+ ownerId: z.ZodString;
234
+ currentVersionId: z.ZodNullable<z.ZodString>;
235
+ createdAt: z.ZodISODateTime;
236
+ updatedAt: z.ZodISODateTime;
237
+ archivedAt: z.ZodNullable<z.ZodISODateTime>;
238
+ }, z.core.$strict>;
239
+ version: z.ZodObject<{
240
+ id: z.ZodString;
241
+ nodeId: z.ZodString;
242
+ sequence: z.ZodNumber;
243
+ contentKey: z.ZodString;
244
+ mediaType: z.ZodString;
245
+ contentHash: z.ZodString;
246
+ size: z.ZodNumber;
247
+ createdBy: z.ZodString;
248
+ createdAt: z.ZodISODateTime;
249
+ }, z.core.$strict>;
250
+ resourceUri: z.ZodString;
251
+ }, z.core.$strict>;
252
+ export type KnowledgeAttachment = z.infer<typeof KnowledgeAttachment>;
253
+ export declare const KnowledgeLinkRelation: z.ZodEnum<{
254
+ references: "references";
255
+ related: "related";
256
+ depends_on: "depends_on";
257
+ implements: "implements";
258
+ }>;
259
+ export type KnowledgeLinkRelation = z.infer<typeof KnowledgeLinkRelation>;
260
+ export declare const KnowledgeLink: z.ZodObject<{
261
+ id: z.ZodString;
262
+ sourceNodeId: z.ZodString;
263
+ targetNodeId: z.ZodString;
264
+ relation: z.ZodEnum<{
265
+ references: "references";
266
+ related: "related";
267
+ depends_on: "depends_on";
268
+ implements: "implements";
269
+ }>;
270
+ label: z.ZodNullable<z.ZodString>;
271
+ createdBy: z.ZodString;
272
+ createdAt: z.ZodISODateTime;
273
+ }, z.core.$strict>;
274
+ export type KnowledgeLink = z.infer<typeof KnowledgeLink>;
275
+ export declare const KnowledgeLinkList: z.ZodObject<{
276
+ items: z.ZodArray<z.ZodObject<{
277
+ id: z.ZodString;
278
+ sourceNodeId: z.ZodString;
279
+ targetNodeId: z.ZodString;
280
+ relation: z.ZodEnum<{
281
+ references: "references";
282
+ related: "related";
283
+ depends_on: "depends_on";
284
+ implements: "implements";
285
+ }>;
286
+ label: z.ZodNullable<z.ZodString>;
287
+ createdBy: z.ZodString;
288
+ createdAt: z.ZodISODateTime;
289
+ }, z.core.$strict>>;
290
+ }, z.core.$strict>;
291
+ export type KnowledgeLinkList = z.infer<typeof KnowledgeLinkList>;
292
+ export declare const CreateKnowledgeLinkInput: z.ZodObject<{
293
+ sourceNodeId: z.ZodString;
294
+ targetNodeId: z.ZodString;
295
+ relation: z.ZodEnum<{
296
+ references: "references";
297
+ related: "related";
298
+ depends_on: "depends_on";
299
+ implements: "implements";
300
+ }>;
301
+ label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
302
+ idempotencyKey: z.ZodString;
303
+ }, z.core.$strict>;
304
+ export type CreateKnowledgeLinkInput = z.infer<typeof CreateKnowledgeLinkInput>;
305
+ export declare const DeleteKnowledgeLinkInput: z.ZodObject<{
306
+ sourceNodeId: z.ZodString;
307
+ linkId: z.ZodString;
308
+ idempotencyKey: z.ZodString;
309
+ }, z.core.$strict>;
310
+ export type DeleteKnowledgeLinkInput = z.infer<typeof DeleteKnowledgeLinkInput>;
311
+ export declare const KnowledgeGraphInput: z.ZodObject<{
312
+ limit: z.ZodDefault<z.ZodNumber>;
313
+ }, z.core.$strict>;
314
+ export type KnowledgeGraphInput = z.infer<typeof KnowledgeGraphInput>;
315
+ export declare const KnowledgeGraph: z.ZodObject<{
316
+ nodes: z.ZodArray<z.ZodObject<{
317
+ id: z.ZodString;
318
+ parentId: z.ZodNullable<z.ZodString>;
319
+ kind: z.ZodEnum<{
320
+ folder: "folder";
321
+ document: "document";
322
+ attachment: "attachment";
323
+ }>;
324
+ title: z.ZodString;
325
+ description: z.ZodNullable<z.ZodString>;
326
+ contextPolicy: z.ZodEnum<{
327
+ pinned: "pinned";
328
+ relevant: "relevant";
329
+ explicit: "explicit";
330
+ }>;
331
+ ownerId: z.ZodString;
332
+ currentVersionId: z.ZodNullable<z.ZodString>;
333
+ createdAt: z.ZodISODateTime;
334
+ updatedAt: z.ZodISODateTime;
335
+ archivedAt: z.ZodNullable<z.ZodISODateTime>;
336
+ }, z.core.$strict>>;
337
+ links: z.ZodArray<z.ZodObject<{
338
+ id: z.ZodString;
339
+ sourceNodeId: z.ZodString;
340
+ targetNodeId: z.ZodString;
341
+ relation: z.ZodEnum<{
342
+ references: "references";
343
+ related: "related";
344
+ depends_on: "depends_on";
345
+ implements: "implements";
346
+ }>;
347
+ label: z.ZodNullable<z.ZodString>;
348
+ createdBy: z.ZodString;
349
+ createdAt: z.ZodISODateTime;
350
+ }, z.core.$strict>>;
351
+ }, z.core.$strict>;
352
+ export type KnowledgeGraph = z.infer<typeof KnowledgeGraph>;
353
+ export declare const BlockNoteMediaType = "application/vnd.anchrd.intel.blocknote+json";
354
+ export declare const BlockNoteDocument: z.ZodObject<{
355
+ format: z.ZodLiteral<"blocknote">;
356
+ schemaVersion: z.ZodLiteral<1>;
357
+ blocks: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
358
+ markdown: z.ZodString;
359
+ }, z.core.$strict>;
360
+ export type BlockNoteDocument = z.infer<typeof BlockNoteDocument>;
361
+ export declare const ResourceGrant: z.ZodObject<{
362
+ id: z.ZodString;
363
+ resourceId: z.ZodString;
364
+ principal: z.ZodDiscriminatedUnion<[z.ZodObject<{
365
+ type: z.ZodLiteral<"user">;
366
+ id: z.ZodString;
367
+ }, z.core.$strict>, z.ZodObject<{
368
+ type: z.ZodLiteral<"email">;
369
+ email: z.ZodEmail;
370
+ }, z.core.$strict>, z.ZodObject<{
371
+ type: z.ZodLiteral<"organization">;
372
+ }, z.core.$strict>], "type">;
373
+ role: z.ZodEnum<{
374
+ viewer: "viewer";
375
+ commenter: "commenter";
376
+ editor: "editor";
377
+ manager: "manager";
378
+ }>;
379
+ expiresAt: z.ZodNullable<z.ZodISODateTime>;
380
+ createdBy: z.ZodString;
381
+ createdAt: z.ZodISODateTime;
382
+ }, z.core.$strict>;
383
+ export type ResourceGrant = z.infer<typeof ResourceGrant>;
384
+ export declare const ShareKnowledgeInput: z.ZodObject<{
385
+ resourceId: z.ZodString;
386
+ principal: z.ZodDiscriminatedUnion<[z.ZodObject<{
387
+ type: z.ZodLiteral<"user">;
388
+ id: z.ZodString;
389
+ }, z.core.$strict>, z.ZodObject<{
390
+ type: z.ZodLiteral<"email">;
391
+ email: z.ZodEmail;
392
+ }, z.core.$strict>, z.ZodObject<{
393
+ type: z.ZodLiteral<"organization">;
394
+ }, z.core.$strict>], "type">;
395
+ role: z.ZodEnum<{
396
+ viewer: "viewer";
397
+ commenter: "commenter";
398
+ editor: "editor";
399
+ manager: "manager";
400
+ }>;
401
+ expiresAt: z.ZodDefault<z.ZodNullable<z.ZodISODateTime>>;
402
+ idempotencyKey: z.ZodString;
403
+ }, z.core.$strict>;
404
+ export type ShareKnowledgeInput = z.infer<typeof ShareKnowledgeInput>;
405
+ export declare const RevokeKnowledgeGrantInput: z.ZodObject<{
406
+ resourceId: z.ZodString;
407
+ grantId: z.ZodString;
408
+ idempotencyKey: z.ZodString;
409
+ }, z.core.$strict>;
410
+ export type RevokeKnowledgeGrantInput = z.infer<typeof RevokeKnowledgeGrantInput>;
411
+ export declare const ResourceGrantList: z.ZodObject<{
412
+ items: z.ZodArray<z.ZodObject<{
413
+ id: z.ZodString;
414
+ resourceId: z.ZodString;
415
+ principal: z.ZodDiscriminatedUnion<[z.ZodObject<{
416
+ type: z.ZodLiteral<"user">;
417
+ id: z.ZodString;
418
+ }, z.core.$strict>, z.ZodObject<{
419
+ type: z.ZodLiteral<"email">;
420
+ email: z.ZodEmail;
421
+ }, z.core.$strict>, z.ZodObject<{
422
+ type: z.ZodLiteral<"organization">;
423
+ }, z.core.$strict>], "type">;
424
+ role: z.ZodEnum<{
425
+ viewer: "viewer";
426
+ commenter: "commenter";
427
+ editor: "editor";
428
+ manager: "manager";
429
+ }>;
430
+ expiresAt: z.ZodNullable<z.ZodISODateTime>;
431
+ createdBy: z.ZodString;
432
+ createdAt: z.ZodISODateTime;
433
+ }, z.core.$strict>>;
434
+ }, z.core.$strict>;
435
+ export type ResourceGrantList = z.infer<typeof ResourceGrantList>;
436
+ export declare const SearchKnowledgeInput: z.ZodObject<{
437
+ query: z.ZodString;
438
+ limit: z.ZodDefault<z.ZodNumber>;
439
+ }, z.core.$strict>;
440
+ export type SearchKnowledgeInput = z.infer<typeof SearchKnowledgeInput>;
441
+ export declare const KnowledgeCitation: z.ZodObject<{
442
+ nodeId: z.ZodString;
443
+ versionId: z.ZodString;
444
+ title: z.ZodString;
445
+ passage: z.ZodString;
446
+ source: z.ZodString;
447
+ freshness: z.ZodISODateTime;
448
+ score: z.ZodNumber;
449
+ match: z.ZodEnum<{
450
+ lexical: "lexical";
451
+ semantic: "semantic";
452
+ hybrid: "hybrid";
453
+ }>;
454
+ }, z.core.$strict>;
455
+ export type KnowledgeCitation = z.infer<typeof KnowledgeCitation>;
456
+ export declare const SearchKnowledgeResult: z.ZodObject<{
457
+ items: z.ZodArray<z.ZodObject<{
458
+ nodeId: z.ZodString;
459
+ versionId: z.ZodString;
460
+ title: z.ZodString;
461
+ passage: z.ZodString;
462
+ source: z.ZodString;
463
+ freshness: z.ZodISODateTime;
464
+ score: z.ZodNumber;
465
+ match: z.ZodEnum<{
466
+ lexical: "lexical";
467
+ semantic: "semantic";
468
+ hybrid: "hybrid";
469
+ }>;
470
+ }, z.core.$strict>>;
471
+ }, z.core.$strict>;
472
+ export type SearchKnowledgeResult = z.infer<typeof SearchKnowledgeResult>;
473
+ export declare const ReindexKnowledgeResult: z.ZodObject<{
474
+ queued: z.ZodNumber;
475
+ }, z.core.$strict>;
476
+ export type ReindexKnowledgeResult = z.infer<typeof ReindexKnowledgeResult>;
477
+ export declare const RevokeGrantResult: z.ZodObject<{
478
+ revoked: z.ZodBoolean;
479
+ }, z.core.$strict>;
480
+ export type RevokeGrantResult = z.infer<typeof RevokeGrantResult>;
481
+ export declare const DeleteKnowledgeLinkResult: z.ZodObject<{
482
+ deleted: z.ZodBoolean;
483
+ }, z.core.$strict>;
484
+ export type DeleteKnowledgeLinkResult = z.infer<typeof DeleteKnowledgeLinkResult>;
485
+ export declare const ToolSourceUrl: z.ZodURL;
486
+ export declare const ToolSource: z.ZodObject<{
487
+ id: z.ZodString;
488
+ name: z.ZodString;
489
+ url: z.ZodURL;
490
+ connectionHandle: z.ZodString;
491
+ enabled: z.ZodBoolean;
492
+ createdBy: z.ZodString;
493
+ createdAt: z.ZodISODateTime;
494
+ updatedAt: z.ZodISODateTime;
495
+ lastDiscoveredAt: z.ZodNullable<z.ZodISODateTime>;
496
+ }, z.core.$strict>;
497
+ export type ToolSource = z.infer<typeof ToolSource>;
498
+ export declare const ToolAnnotations: z.ZodObject<{
499
+ title: z.ZodOptional<z.ZodString>;
500
+ readOnlyHint: z.ZodOptional<z.ZodBoolean>;
501
+ destructiveHint: z.ZodOptional<z.ZodBoolean>;
502
+ idempotentHint: z.ZodOptional<z.ZodBoolean>;
503
+ openWorldHint: z.ZodOptional<z.ZodBoolean>;
504
+ }, z.core.$strict>;
505
+ export type ToolAnnotations = z.infer<typeof ToolAnnotations>;
506
+ export declare const ToolCapability: z.ZodObject<{
507
+ sourceId: z.ZodString;
508
+ name: z.ZodString;
509
+ title: z.ZodNullable<z.ZodString>;
510
+ description: z.ZodNullable<z.ZodString>;
511
+ inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
512
+ outputSchema: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
513
+ annotations: z.ZodObject<{
514
+ title: z.ZodOptional<z.ZodString>;
515
+ readOnlyHint: z.ZodOptional<z.ZodBoolean>;
516
+ destructiveHint: z.ZodOptional<z.ZodBoolean>;
517
+ idempotentHint: z.ZodOptional<z.ZodBoolean>;
518
+ openWorldHint: z.ZodOptional<z.ZodBoolean>;
519
+ }, z.core.$strict>;
520
+ fingerprint: z.ZodString;
521
+ discoveredAt: z.ZodISODateTime;
522
+ }, z.core.$strict>;
523
+ export type ToolCapability = z.infer<typeof ToolCapability>;
524
+ export declare const ToolConnectionStatus: z.ZodEnum<{
525
+ connected: "connected";
526
+ missing: "missing";
527
+ forbidden: "forbidden";
528
+ invalid: "invalid";
529
+ }>;
530
+ export type ToolConnectionStatus = z.infer<typeof ToolConnectionStatus>;
531
+ export declare const ToolCatalogEntry: z.ZodObject<{
532
+ source: z.ZodObject<{
533
+ id: z.ZodString;
534
+ name: z.ZodString;
535
+ url: z.ZodURL;
536
+ connectionHandle: z.ZodString;
537
+ enabled: z.ZodBoolean;
538
+ createdBy: z.ZodString;
539
+ createdAt: z.ZodISODateTime;
540
+ updatedAt: z.ZodISODateTime;
541
+ lastDiscoveredAt: z.ZodNullable<z.ZodISODateTime>;
542
+ }, z.core.$strict>;
543
+ capability: z.ZodObject<{
544
+ sourceId: z.ZodString;
545
+ name: z.ZodString;
546
+ title: z.ZodNullable<z.ZodString>;
547
+ description: z.ZodNullable<z.ZodString>;
548
+ inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
549
+ outputSchema: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
550
+ annotations: z.ZodObject<{
551
+ title: z.ZodOptional<z.ZodString>;
552
+ readOnlyHint: z.ZodOptional<z.ZodBoolean>;
553
+ destructiveHint: z.ZodOptional<z.ZodBoolean>;
554
+ idempotentHint: z.ZodOptional<z.ZodBoolean>;
555
+ openWorldHint: z.ZodOptional<z.ZodBoolean>;
556
+ }, z.core.$strict>;
557
+ fingerprint: z.ZodString;
558
+ discoveredAt: z.ZodISODateTime;
559
+ }, z.core.$strict>;
560
+ connectionStatus: z.ZodEnum<{
561
+ connected: "connected";
562
+ missing: "missing";
563
+ forbidden: "forbidden";
564
+ invalid: "invalid";
565
+ }>;
566
+ }, z.core.$strict>;
567
+ export type ToolCatalogEntry = z.infer<typeof ToolCatalogEntry>;
568
+ export declare const ToolSourceList: z.ZodObject<{
569
+ items: z.ZodArray<z.ZodObject<{
570
+ id: z.ZodString;
571
+ name: z.ZodString;
572
+ url: z.ZodURL;
573
+ connectionHandle: z.ZodString;
574
+ enabled: z.ZodBoolean;
575
+ createdBy: z.ZodString;
576
+ createdAt: z.ZodISODateTime;
577
+ updatedAt: z.ZodISODateTime;
578
+ lastDiscoveredAt: z.ZodNullable<z.ZodISODateTime>;
579
+ }, z.core.$strict>>;
580
+ }, z.core.$strict>;
581
+ export type ToolSourceList = z.infer<typeof ToolSourceList>;
582
+ export declare const ToolCatalog: z.ZodObject<{
583
+ items: z.ZodArray<z.ZodObject<{
584
+ source: z.ZodObject<{
585
+ id: z.ZodString;
586
+ name: z.ZodString;
587
+ url: z.ZodURL;
588
+ connectionHandle: z.ZodString;
589
+ enabled: z.ZodBoolean;
590
+ createdBy: z.ZodString;
591
+ createdAt: z.ZodISODateTime;
592
+ updatedAt: z.ZodISODateTime;
593
+ lastDiscoveredAt: z.ZodNullable<z.ZodISODateTime>;
594
+ }, z.core.$strict>;
595
+ capability: z.ZodObject<{
596
+ sourceId: z.ZodString;
597
+ name: z.ZodString;
598
+ title: z.ZodNullable<z.ZodString>;
599
+ description: z.ZodNullable<z.ZodString>;
600
+ inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
601
+ outputSchema: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
602
+ annotations: z.ZodObject<{
603
+ title: z.ZodOptional<z.ZodString>;
604
+ readOnlyHint: z.ZodOptional<z.ZodBoolean>;
605
+ destructiveHint: z.ZodOptional<z.ZodBoolean>;
606
+ idempotentHint: z.ZodOptional<z.ZodBoolean>;
607
+ openWorldHint: z.ZodOptional<z.ZodBoolean>;
608
+ }, z.core.$strict>;
609
+ fingerprint: z.ZodString;
610
+ discoveredAt: z.ZodISODateTime;
611
+ }, z.core.$strict>;
612
+ connectionStatus: z.ZodEnum<{
613
+ connected: "connected";
614
+ missing: "missing";
615
+ forbidden: "forbidden";
616
+ invalid: "invalid";
617
+ }>;
618
+ }, z.core.$strict>>;
619
+ }, z.core.$strict>;
620
+ export type ToolCatalog = z.infer<typeof ToolCatalog>;
621
+ export declare const CreateToolSourceInput: z.ZodObject<{
622
+ name: z.ZodString;
623
+ url: z.ZodURL;
624
+ connectionHandle: z.ZodDefault<z.ZodString>;
625
+ idempotencyKey: z.ZodString;
626
+ }, z.core.$strict>;
627
+ export type CreateToolSourceInput = z.infer<typeof CreateToolSourceInput>;
628
+ export declare const DiscoverToolSourceInput: z.ZodObject<{
629
+ sourceId: z.ZodString;
630
+ idempotencyKey: z.ZodString;
631
+ }, z.core.$strict>;
632
+ export type DiscoverToolSourceInput = z.infer<typeof DiscoverToolSourceInput>;
633
+ export declare const TestToolInput: z.ZodObject<{
634
+ sourceId: z.ZodString;
635
+ name: z.ZodString;
636
+ arguments: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
637
+ }, z.core.$strict>;
638
+ export type TestToolInput = z.infer<typeof TestToolInput>;
639
+ export declare const ExecuteToolInput: z.ZodObject<{
640
+ sourceId: z.ZodString;
641
+ name: z.ZodString;
642
+ arguments: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
643
+ }, z.core.$strict>;
644
+ export type ExecuteToolInput = z.infer<typeof ExecuteToolInput>;
645
+ export declare const ToolTestResult: z.ZodObject<{
646
+ isError: z.ZodBoolean;
647
+ content: z.ZodArray<z.ZodUnknown>;
648
+ structuredContent: z.ZodOptional<z.ZodUnknown>;
649
+ }, z.core.$strict>;
650
+ export type ToolTestResult = z.infer<typeof ToolTestResult>;
651
+ export declare const FlowNodeId: z.ZodString;
652
+ export declare const FlowPosition: z.ZodObject<{
653
+ x: z.ZodNumber;
654
+ y: z.ZodNumber;
655
+ }, z.core.$strict>;
656
+ export declare const FlowNode: z.ZodDiscriminatedUnion<[z.ZodObject<{
657
+ kind: z.ZodLiteral<"trigger">;
658
+ configuration: z.ZodDiscriminatedUnion<[z.ZodObject<{
659
+ mode: z.ZodLiteral<"manual">;
660
+ }, z.core.$strict>, z.ZodObject<{
661
+ mode: z.ZodLiteral<"webhook">;
662
+ event: z.ZodString;
663
+ }, z.core.$strict>, z.ZodObject<{
664
+ mode: z.ZodLiteral<"schedule">;
665
+ cron: z.ZodString;
666
+ }, z.core.$strict>], "mode">;
667
+ id: z.ZodString;
668
+ position: z.ZodObject<{
669
+ x: z.ZodNumber;
670
+ y: z.ZodNumber;
671
+ }, z.core.$strict>;
672
+ label: z.ZodString;
673
+ description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
674
+ }, z.core.$strict>, z.ZodObject<{
675
+ kind: z.ZodLiteral<"instruction">;
676
+ configuration: z.ZodObject<{
677
+ prompt: z.ZodString;
678
+ }, z.core.$strict>;
679
+ id: z.ZodString;
680
+ position: z.ZodObject<{
681
+ x: z.ZodNumber;
682
+ y: z.ZodNumber;
683
+ }, z.core.$strict>;
684
+ label: z.ZodString;
685
+ description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
686
+ }, z.core.$strict>, z.ZodObject<{
687
+ kind: z.ZodLiteral<"knowledge">;
688
+ configuration: z.ZodObject<{
689
+ resourceIds: z.ZodArray<z.ZodString>;
690
+ mode: z.ZodEnum<{
691
+ relevant: "relevant";
692
+ full: "full";
693
+ }>;
694
+ query: z.ZodDefault<z.ZodNullable<z.ZodString>>;
695
+ }, z.core.$strict>;
696
+ id: z.ZodString;
697
+ position: z.ZodObject<{
698
+ x: z.ZodNumber;
699
+ y: z.ZodNumber;
700
+ }, z.core.$strict>;
701
+ label: z.ZodString;
702
+ description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
703
+ }, z.core.$strict>, z.ZodObject<{
704
+ kind: z.ZodLiteral<"tool">;
705
+ configuration: z.ZodObject<{
706
+ sourceId: z.ZodString;
707
+ toolName: z.ZodString;
708
+ fingerprint: z.ZodDefault<z.ZodNullable<z.ZodString>>;
709
+ arguments: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
710
+ }, z.core.$strict>;
711
+ id: z.ZodString;
712
+ position: z.ZodObject<{
713
+ x: z.ZodNumber;
714
+ y: z.ZodNumber;
715
+ }, z.core.$strict>;
716
+ label: z.ZodString;
717
+ description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
718
+ }, z.core.$strict>, z.ZodObject<{
719
+ kind: z.ZodLiteral<"condition">;
720
+ configuration: z.ZodObject<{
721
+ mode: z.ZodLiteral<"semantic">;
722
+ instruction: z.ZodString;
723
+ }, z.core.$strict>;
724
+ id: z.ZodString;
725
+ position: z.ZodObject<{
726
+ x: z.ZodNumber;
727
+ y: z.ZodNumber;
728
+ }, z.core.$strict>;
729
+ label: z.ZodString;
730
+ description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
731
+ }, z.core.$strict>, z.ZodObject<{
732
+ kind: z.ZodLiteral<"approval">;
733
+ configuration: z.ZodObject<{
734
+ prompt: z.ZodString;
735
+ timeout: z.ZodString;
736
+ }, z.core.$strict>;
737
+ id: z.ZodString;
738
+ position: z.ZodObject<{
739
+ x: z.ZodNumber;
740
+ y: z.ZodNumber;
741
+ }, z.core.$strict>;
742
+ label: z.ZodString;
743
+ description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
744
+ }, z.core.$strict>, z.ZodObject<{
745
+ kind: z.ZodLiteral<"output">;
746
+ configuration: z.ZodObject<{
747
+ template: z.ZodDefault<z.ZodString>;
748
+ }, z.core.$strict>;
749
+ id: z.ZodString;
750
+ position: z.ZodObject<{
751
+ x: z.ZodNumber;
752
+ y: z.ZodNumber;
753
+ }, z.core.$strict>;
754
+ label: z.ZodString;
755
+ description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
756
+ }, z.core.$strict>], "kind">;
757
+ export type FlowNode = z.infer<typeof FlowNode>;
758
+ export declare const FlowEdge: z.ZodObject<{
759
+ id: z.ZodString;
760
+ source: z.ZodString;
761
+ target: z.ZodString;
762
+ label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
763
+ sourceHandle: z.ZodDefault<z.ZodNullable<z.ZodString>>;
764
+ }, z.core.$strict>;
765
+ export type FlowEdge = z.infer<typeof FlowEdge>;
766
+ export declare const FlowGraph: z.ZodObject<{
767
+ nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
768
+ kind: z.ZodLiteral<"trigger">;
769
+ configuration: z.ZodDiscriminatedUnion<[z.ZodObject<{
770
+ mode: z.ZodLiteral<"manual">;
771
+ }, z.core.$strict>, z.ZodObject<{
772
+ mode: z.ZodLiteral<"webhook">;
773
+ event: z.ZodString;
774
+ }, z.core.$strict>, z.ZodObject<{
775
+ mode: z.ZodLiteral<"schedule">;
776
+ cron: z.ZodString;
777
+ }, z.core.$strict>], "mode">;
778
+ id: z.ZodString;
779
+ position: z.ZodObject<{
780
+ x: z.ZodNumber;
781
+ y: z.ZodNumber;
782
+ }, z.core.$strict>;
783
+ label: z.ZodString;
784
+ description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
785
+ }, z.core.$strict>, z.ZodObject<{
786
+ kind: z.ZodLiteral<"instruction">;
787
+ configuration: z.ZodObject<{
788
+ prompt: z.ZodString;
789
+ }, z.core.$strict>;
790
+ id: z.ZodString;
791
+ position: z.ZodObject<{
792
+ x: z.ZodNumber;
793
+ y: z.ZodNumber;
794
+ }, z.core.$strict>;
795
+ label: z.ZodString;
796
+ description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
797
+ }, z.core.$strict>, z.ZodObject<{
798
+ kind: z.ZodLiteral<"knowledge">;
799
+ configuration: z.ZodObject<{
800
+ resourceIds: z.ZodArray<z.ZodString>;
801
+ mode: z.ZodEnum<{
802
+ relevant: "relevant";
803
+ full: "full";
804
+ }>;
805
+ query: z.ZodDefault<z.ZodNullable<z.ZodString>>;
806
+ }, z.core.$strict>;
807
+ id: z.ZodString;
808
+ position: z.ZodObject<{
809
+ x: z.ZodNumber;
810
+ y: z.ZodNumber;
811
+ }, z.core.$strict>;
812
+ label: z.ZodString;
813
+ description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
814
+ }, z.core.$strict>, z.ZodObject<{
815
+ kind: z.ZodLiteral<"tool">;
816
+ configuration: z.ZodObject<{
817
+ sourceId: z.ZodString;
818
+ toolName: z.ZodString;
819
+ fingerprint: z.ZodDefault<z.ZodNullable<z.ZodString>>;
820
+ arguments: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
821
+ }, z.core.$strict>;
822
+ id: z.ZodString;
823
+ position: z.ZodObject<{
824
+ x: z.ZodNumber;
825
+ y: z.ZodNumber;
826
+ }, z.core.$strict>;
827
+ label: z.ZodString;
828
+ description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
829
+ }, z.core.$strict>, z.ZodObject<{
830
+ kind: z.ZodLiteral<"condition">;
831
+ configuration: z.ZodObject<{
832
+ mode: z.ZodLiteral<"semantic">;
833
+ instruction: z.ZodString;
834
+ }, z.core.$strict>;
835
+ id: z.ZodString;
836
+ position: z.ZodObject<{
837
+ x: z.ZodNumber;
838
+ y: z.ZodNumber;
839
+ }, z.core.$strict>;
840
+ label: z.ZodString;
841
+ description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
842
+ }, z.core.$strict>, z.ZodObject<{
843
+ kind: z.ZodLiteral<"approval">;
844
+ configuration: z.ZodObject<{
845
+ prompt: z.ZodString;
846
+ timeout: z.ZodString;
847
+ }, z.core.$strict>;
848
+ id: z.ZodString;
849
+ position: z.ZodObject<{
850
+ x: z.ZodNumber;
851
+ y: z.ZodNumber;
852
+ }, z.core.$strict>;
853
+ label: z.ZodString;
854
+ description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
855
+ }, z.core.$strict>, z.ZodObject<{
856
+ kind: z.ZodLiteral<"output">;
857
+ configuration: z.ZodObject<{
858
+ template: z.ZodDefault<z.ZodString>;
859
+ }, z.core.$strict>;
860
+ id: z.ZodString;
861
+ position: z.ZodObject<{
862
+ x: z.ZodNumber;
863
+ y: z.ZodNumber;
864
+ }, z.core.$strict>;
865
+ label: z.ZodString;
866
+ description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
867
+ }, z.core.$strict>], "kind">>;
868
+ edges: z.ZodArray<z.ZodObject<{
869
+ id: z.ZodString;
870
+ source: z.ZodString;
871
+ target: z.ZodString;
872
+ label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
873
+ sourceHandle: z.ZodDefault<z.ZodNullable<z.ZodString>>;
874
+ }, z.core.$strict>>;
875
+ }, z.core.$strict>;
876
+ export type FlowGraph = z.infer<typeof FlowGraph>;
877
+ export declare const Flow: z.ZodObject<{
878
+ id: z.ZodString;
879
+ title: z.ZodString;
880
+ description: z.ZodNullable<z.ZodString>;
881
+ ownerId: z.ZodString;
882
+ currentVersionId: z.ZodNullable<z.ZodString>;
883
+ publishedVersionId: z.ZodNullable<z.ZodString>;
884
+ createdAt: z.ZodISODateTime;
885
+ updatedAt: z.ZodISODateTime;
886
+ archivedAt: z.ZodNullable<z.ZodISODateTime>;
887
+ }, z.core.$strict>;
888
+ export type Flow = z.infer<typeof Flow>;
889
+ export declare const FlowVersion: z.ZodObject<{
890
+ id: z.ZodString;
891
+ flowId: z.ZodString;
892
+ sequence: z.ZodNumber;
893
+ graph: z.ZodObject<{
894
+ nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
895
+ kind: z.ZodLiteral<"trigger">;
896
+ configuration: z.ZodDiscriminatedUnion<[z.ZodObject<{
897
+ mode: z.ZodLiteral<"manual">;
898
+ }, z.core.$strict>, z.ZodObject<{
899
+ mode: z.ZodLiteral<"webhook">;
900
+ event: z.ZodString;
901
+ }, z.core.$strict>, z.ZodObject<{
902
+ mode: z.ZodLiteral<"schedule">;
903
+ cron: z.ZodString;
904
+ }, z.core.$strict>], "mode">;
905
+ id: z.ZodString;
906
+ position: z.ZodObject<{
907
+ x: z.ZodNumber;
908
+ y: z.ZodNumber;
909
+ }, z.core.$strict>;
910
+ label: z.ZodString;
911
+ description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
912
+ }, z.core.$strict>, z.ZodObject<{
913
+ kind: z.ZodLiteral<"instruction">;
914
+ configuration: z.ZodObject<{
915
+ prompt: z.ZodString;
916
+ }, z.core.$strict>;
917
+ id: z.ZodString;
918
+ position: z.ZodObject<{
919
+ x: z.ZodNumber;
920
+ y: z.ZodNumber;
921
+ }, z.core.$strict>;
922
+ label: z.ZodString;
923
+ description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
924
+ }, z.core.$strict>, z.ZodObject<{
925
+ kind: z.ZodLiteral<"knowledge">;
926
+ configuration: z.ZodObject<{
927
+ resourceIds: z.ZodArray<z.ZodString>;
928
+ mode: z.ZodEnum<{
929
+ relevant: "relevant";
930
+ full: "full";
931
+ }>;
932
+ query: z.ZodDefault<z.ZodNullable<z.ZodString>>;
933
+ }, z.core.$strict>;
934
+ id: z.ZodString;
935
+ position: z.ZodObject<{
936
+ x: z.ZodNumber;
937
+ y: z.ZodNumber;
938
+ }, z.core.$strict>;
939
+ label: z.ZodString;
940
+ description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
941
+ }, z.core.$strict>, z.ZodObject<{
942
+ kind: z.ZodLiteral<"tool">;
943
+ configuration: z.ZodObject<{
944
+ sourceId: z.ZodString;
945
+ toolName: z.ZodString;
946
+ fingerprint: z.ZodDefault<z.ZodNullable<z.ZodString>>;
947
+ arguments: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
948
+ }, z.core.$strict>;
949
+ id: z.ZodString;
950
+ position: z.ZodObject<{
951
+ x: z.ZodNumber;
952
+ y: z.ZodNumber;
953
+ }, z.core.$strict>;
954
+ label: z.ZodString;
955
+ description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
956
+ }, z.core.$strict>, z.ZodObject<{
957
+ kind: z.ZodLiteral<"condition">;
958
+ configuration: z.ZodObject<{
959
+ mode: z.ZodLiteral<"semantic">;
960
+ instruction: z.ZodString;
961
+ }, z.core.$strict>;
962
+ id: z.ZodString;
963
+ position: z.ZodObject<{
964
+ x: z.ZodNumber;
965
+ y: z.ZodNumber;
966
+ }, z.core.$strict>;
967
+ label: z.ZodString;
968
+ description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
969
+ }, z.core.$strict>, z.ZodObject<{
970
+ kind: z.ZodLiteral<"approval">;
971
+ configuration: z.ZodObject<{
972
+ prompt: z.ZodString;
973
+ timeout: z.ZodString;
974
+ }, z.core.$strict>;
975
+ id: z.ZodString;
976
+ position: z.ZodObject<{
977
+ x: z.ZodNumber;
978
+ y: z.ZodNumber;
979
+ }, z.core.$strict>;
980
+ label: z.ZodString;
981
+ description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
982
+ }, z.core.$strict>, z.ZodObject<{
983
+ kind: z.ZodLiteral<"output">;
984
+ configuration: z.ZodObject<{
985
+ template: z.ZodDefault<z.ZodString>;
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
+ description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
994
+ }, z.core.$strict>], "kind">>;
995
+ edges: z.ZodArray<z.ZodObject<{
996
+ id: z.ZodString;
997
+ source: z.ZodString;
998
+ target: z.ZodString;
999
+ label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1000
+ sourceHandle: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1001
+ }, z.core.$strict>>;
1002
+ }, z.core.$strict>;
1003
+ createdBy: z.ZodString;
1004
+ createdAt: z.ZodISODateTime;
1005
+ }, z.core.$strict>;
1006
+ export type FlowVersion = z.infer<typeof FlowVersion>;
1007
+ export declare const FlowDocument: z.ZodObject<{
1008
+ flow: z.ZodObject<{
1009
+ id: z.ZodString;
1010
+ title: z.ZodString;
1011
+ description: z.ZodNullable<z.ZodString>;
1012
+ ownerId: z.ZodString;
1013
+ currentVersionId: z.ZodNullable<z.ZodString>;
1014
+ publishedVersionId: z.ZodNullable<z.ZodString>;
1015
+ createdAt: z.ZodISODateTime;
1016
+ updatedAt: z.ZodISODateTime;
1017
+ archivedAt: z.ZodNullable<z.ZodISODateTime>;
1018
+ }, z.core.$strict>;
1019
+ version: z.ZodNullable<z.ZodObject<{
1020
+ id: z.ZodString;
1021
+ flowId: z.ZodString;
1022
+ sequence: z.ZodNumber;
1023
+ graph: z.ZodObject<{
1024
+ nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1025
+ kind: z.ZodLiteral<"trigger">;
1026
+ configuration: z.ZodDiscriminatedUnion<[z.ZodObject<{
1027
+ mode: z.ZodLiteral<"manual">;
1028
+ }, z.core.$strict>, z.ZodObject<{
1029
+ mode: z.ZodLiteral<"webhook">;
1030
+ event: z.ZodString;
1031
+ }, z.core.$strict>, z.ZodObject<{
1032
+ mode: z.ZodLiteral<"schedule">;
1033
+ cron: z.ZodString;
1034
+ }, z.core.$strict>], "mode">;
1035
+ id: z.ZodString;
1036
+ position: z.ZodObject<{
1037
+ x: z.ZodNumber;
1038
+ y: z.ZodNumber;
1039
+ }, z.core.$strict>;
1040
+ label: z.ZodString;
1041
+ description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1042
+ }, z.core.$strict>, z.ZodObject<{
1043
+ kind: z.ZodLiteral<"instruction">;
1044
+ configuration: z.ZodObject<{
1045
+ prompt: z.ZodString;
1046
+ }, z.core.$strict>;
1047
+ id: z.ZodString;
1048
+ position: z.ZodObject<{
1049
+ x: z.ZodNumber;
1050
+ y: z.ZodNumber;
1051
+ }, z.core.$strict>;
1052
+ label: z.ZodString;
1053
+ description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1054
+ }, z.core.$strict>, z.ZodObject<{
1055
+ kind: z.ZodLiteral<"knowledge">;
1056
+ configuration: z.ZodObject<{
1057
+ resourceIds: z.ZodArray<z.ZodString>;
1058
+ mode: z.ZodEnum<{
1059
+ relevant: "relevant";
1060
+ full: "full";
1061
+ }>;
1062
+ query: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1063
+ }, z.core.$strict>;
1064
+ id: z.ZodString;
1065
+ position: z.ZodObject<{
1066
+ x: z.ZodNumber;
1067
+ y: z.ZodNumber;
1068
+ }, z.core.$strict>;
1069
+ label: z.ZodString;
1070
+ description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1071
+ }, z.core.$strict>, z.ZodObject<{
1072
+ kind: z.ZodLiteral<"tool">;
1073
+ configuration: z.ZodObject<{
1074
+ sourceId: z.ZodString;
1075
+ toolName: z.ZodString;
1076
+ fingerprint: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1077
+ arguments: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1078
+ }, z.core.$strict>;
1079
+ id: z.ZodString;
1080
+ position: z.ZodObject<{
1081
+ x: z.ZodNumber;
1082
+ y: z.ZodNumber;
1083
+ }, z.core.$strict>;
1084
+ label: z.ZodString;
1085
+ description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1086
+ }, z.core.$strict>, z.ZodObject<{
1087
+ kind: z.ZodLiteral<"condition">;
1088
+ configuration: z.ZodObject<{
1089
+ mode: z.ZodLiteral<"semantic">;
1090
+ instruction: z.ZodString;
1091
+ }, z.core.$strict>;
1092
+ id: z.ZodString;
1093
+ position: z.ZodObject<{
1094
+ x: z.ZodNumber;
1095
+ y: z.ZodNumber;
1096
+ }, z.core.$strict>;
1097
+ label: z.ZodString;
1098
+ description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1099
+ }, z.core.$strict>, z.ZodObject<{
1100
+ kind: z.ZodLiteral<"approval">;
1101
+ configuration: z.ZodObject<{
1102
+ prompt: z.ZodString;
1103
+ timeout: z.ZodString;
1104
+ }, z.core.$strict>;
1105
+ id: z.ZodString;
1106
+ position: z.ZodObject<{
1107
+ x: z.ZodNumber;
1108
+ y: z.ZodNumber;
1109
+ }, z.core.$strict>;
1110
+ label: z.ZodString;
1111
+ description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1112
+ }, z.core.$strict>, z.ZodObject<{
1113
+ kind: z.ZodLiteral<"output">;
1114
+ configuration: z.ZodObject<{
1115
+ template: z.ZodDefault<z.ZodString>;
1116
+ }, z.core.$strict>;
1117
+ id: z.ZodString;
1118
+ position: z.ZodObject<{
1119
+ x: z.ZodNumber;
1120
+ y: z.ZodNumber;
1121
+ }, z.core.$strict>;
1122
+ label: z.ZodString;
1123
+ description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1124
+ }, z.core.$strict>], "kind">>;
1125
+ edges: z.ZodArray<z.ZodObject<{
1126
+ id: z.ZodString;
1127
+ source: z.ZodString;
1128
+ target: z.ZodString;
1129
+ label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1130
+ sourceHandle: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1131
+ }, z.core.$strict>>;
1132
+ }, z.core.$strict>;
1133
+ createdBy: z.ZodString;
1134
+ createdAt: z.ZodISODateTime;
1135
+ }, z.core.$strict>>;
1136
+ }, z.core.$strict>;
1137
+ export type FlowDocument = z.infer<typeof FlowDocument>;
1138
+ export declare const FlowList: z.ZodObject<{
1139
+ items: z.ZodArray<z.ZodObject<{
1140
+ id: z.ZodString;
1141
+ title: z.ZodString;
1142
+ description: z.ZodNullable<z.ZodString>;
1143
+ ownerId: z.ZodString;
1144
+ currentVersionId: z.ZodNullable<z.ZodString>;
1145
+ publishedVersionId: z.ZodNullable<z.ZodString>;
1146
+ createdAt: z.ZodISODateTime;
1147
+ updatedAt: z.ZodISODateTime;
1148
+ archivedAt: z.ZodNullable<z.ZodISODateTime>;
1149
+ }, z.core.$strict>>;
1150
+ }, z.core.$strict>;
1151
+ export type FlowList = z.infer<typeof FlowList>;
1152
+ export declare const CreateFlowInput: z.ZodObject<{
1153
+ title: z.ZodString;
1154
+ description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1155
+ idempotencyKey: z.ZodString;
1156
+ }, z.core.$strict>;
1157
+ export type CreateFlowInput = z.infer<typeof CreateFlowInput>;
1158
+ export declare const GetFlowInput: z.ZodObject<{
1159
+ flowId: z.ZodString;
1160
+ }, z.core.$strict>;
1161
+ export type GetFlowInput = z.infer<typeof GetFlowInput>;
1162
+ export declare const SaveFlowVersionInput: z.ZodObject<{
1163
+ flowId: z.ZodString;
1164
+ baseVersionId: z.ZodNullable<z.ZodString>;
1165
+ graph: z.ZodObject<{
1166
+ nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1167
+ kind: z.ZodLiteral<"trigger">;
1168
+ configuration: z.ZodDiscriminatedUnion<[z.ZodObject<{
1169
+ mode: z.ZodLiteral<"manual">;
1170
+ }, z.core.$strict>, z.ZodObject<{
1171
+ mode: z.ZodLiteral<"webhook">;
1172
+ event: z.ZodString;
1173
+ }, z.core.$strict>, z.ZodObject<{
1174
+ mode: z.ZodLiteral<"schedule">;
1175
+ cron: z.ZodString;
1176
+ }, z.core.$strict>], "mode">;
1177
+ id: z.ZodString;
1178
+ position: z.ZodObject<{
1179
+ x: z.ZodNumber;
1180
+ y: z.ZodNumber;
1181
+ }, z.core.$strict>;
1182
+ label: z.ZodString;
1183
+ description: z.ZodDefault<z.ZodNullable<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
+ description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1196
+ }, z.core.$strict>, z.ZodObject<{
1197
+ kind: z.ZodLiteral<"knowledge">;
1198
+ configuration: z.ZodObject<{
1199
+ resourceIds: z.ZodArray<z.ZodString>;
1200
+ mode: z.ZodEnum<{
1201
+ relevant: "relevant";
1202
+ full: "full";
1203
+ }>;
1204
+ query: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1205
+ }, z.core.$strict>;
1206
+ id: z.ZodString;
1207
+ position: z.ZodObject<{
1208
+ x: z.ZodNumber;
1209
+ y: z.ZodNumber;
1210
+ }, z.core.$strict>;
1211
+ label: z.ZodString;
1212
+ description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1213
+ }, z.core.$strict>, z.ZodObject<{
1214
+ kind: z.ZodLiteral<"tool">;
1215
+ configuration: z.ZodObject<{
1216
+ sourceId: z.ZodString;
1217
+ toolName: z.ZodString;
1218
+ fingerprint: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1219
+ arguments: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1220
+ }, z.core.$strict>;
1221
+ id: z.ZodString;
1222
+ position: z.ZodObject<{
1223
+ x: z.ZodNumber;
1224
+ y: z.ZodNumber;
1225
+ }, z.core.$strict>;
1226
+ label: z.ZodString;
1227
+ description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1228
+ }, z.core.$strict>, z.ZodObject<{
1229
+ kind: z.ZodLiteral<"condition">;
1230
+ configuration: z.ZodObject<{
1231
+ mode: z.ZodLiteral<"semantic">;
1232
+ instruction: z.ZodString;
1233
+ }, z.core.$strict>;
1234
+ id: z.ZodString;
1235
+ position: z.ZodObject<{
1236
+ x: z.ZodNumber;
1237
+ y: z.ZodNumber;
1238
+ }, z.core.$strict>;
1239
+ label: z.ZodString;
1240
+ description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1241
+ }, z.core.$strict>, z.ZodObject<{
1242
+ kind: z.ZodLiteral<"approval">;
1243
+ configuration: z.ZodObject<{
1244
+ prompt: z.ZodString;
1245
+ timeout: z.ZodString;
1246
+ }, z.core.$strict>;
1247
+ id: z.ZodString;
1248
+ position: z.ZodObject<{
1249
+ x: z.ZodNumber;
1250
+ y: z.ZodNumber;
1251
+ }, z.core.$strict>;
1252
+ label: z.ZodString;
1253
+ description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1254
+ }, z.core.$strict>, z.ZodObject<{
1255
+ kind: z.ZodLiteral<"output">;
1256
+ configuration: z.ZodObject<{
1257
+ template: z.ZodDefault<z.ZodString>;
1258
+ }, z.core.$strict>;
1259
+ id: z.ZodString;
1260
+ position: z.ZodObject<{
1261
+ x: z.ZodNumber;
1262
+ y: z.ZodNumber;
1263
+ }, z.core.$strict>;
1264
+ label: z.ZodString;
1265
+ description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1266
+ }, z.core.$strict>], "kind">>;
1267
+ edges: z.ZodArray<z.ZodObject<{
1268
+ id: z.ZodString;
1269
+ source: z.ZodString;
1270
+ target: z.ZodString;
1271
+ label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1272
+ sourceHandle: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1273
+ }, z.core.$strict>>;
1274
+ }, z.core.$strict>;
1275
+ idempotencyKey: z.ZodString;
1276
+ }, z.core.$strict>;
1277
+ export type SaveFlowVersionInput = z.infer<typeof SaveFlowVersionInput>;
1278
+ export declare const PublishFlowInput: z.ZodObject<{
1279
+ flowId: z.ZodString;
1280
+ versionId: z.ZodString;
1281
+ idempotencyKey: z.ZodString;
1282
+ }, z.core.$strict>;
1283
+ export type PublishFlowInput = z.infer<typeof PublishFlowInput>;
1284
+ export declare const ListFlowGrantsInput: z.ZodObject<{
1285
+ resourceId: z.ZodString;
1286
+ }, z.core.$strict>;
1287
+ export type ListFlowGrantsInput = z.infer<typeof ListFlowGrantsInput>;
1288
+ export declare const ShareFlowInput: z.ZodObject<{
1289
+ resourceId: z.ZodString;
1290
+ principal: z.ZodDiscriminatedUnion<[z.ZodObject<{
1291
+ type: z.ZodLiteral<"user">;
1292
+ id: z.ZodString;
1293
+ }, z.core.$strict>, z.ZodObject<{
1294
+ type: z.ZodLiteral<"email">;
1295
+ email: z.ZodEmail;
1296
+ }, z.core.$strict>, z.ZodObject<{
1297
+ type: z.ZodLiteral<"organization">;
1298
+ }, z.core.$strict>], "type">;
1299
+ role: z.ZodEnum<{
1300
+ viewer: "viewer";
1301
+ commenter: "commenter";
1302
+ editor: "editor";
1303
+ manager: "manager";
1304
+ }>;
1305
+ expiresAt: z.ZodDefault<z.ZodNullable<z.ZodISODateTime>>;
1306
+ idempotencyKey: z.ZodString;
1307
+ }, z.core.$strict>;
1308
+ export type ShareFlowInput = z.infer<typeof ShareFlowInput>;
1309
+ export declare const RevokeFlowGrantInput: z.ZodObject<{
1310
+ resourceId: z.ZodString;
1311
+ grantId: z.ZodString;
1312
+ idempotencyKey: z.ZodString;
1313
+ }, z.core.$strict>;
1314
+ export type RevokeFlowGrantInput = z.infer<typeof RevokeFlowGrantInput>;
1315
+ export declare const FlowRunStatus: z.ZodEnum<{
1316
+ queued: "queued";
1317
+ running: "running";
1318
+ waiting: "waiting";
1319
+ completed: "completed";
1320
+ failed: "failed";
1321
+ cancelled: "cancelled";
1322
+ }>;
1323
+ export type FlowRunStatus = z.infer<typeof FlowRunStatus>;
1324
+ export declare const FlowRun: z.ZodObject<{
1325
+ id: z.ZodString;
1326
+ flowId: z.ZodString;
1327
+ versionId: z.ZodString;
1328
+ status: z.ZodEnum<{
1329
+ queued: "queued";
1330
+ running: "running";
1331
+ waiting: "waiting";
1332
+ completed: "completed";
1333
+ failed: "failed";
1334
+ cancelled: "cancelled";
1335
+ }>;
1336
+ currentNodeId: z.ZodNullable<z.ZodString>;
1337
+ input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1338
+ output: z.ZodNullable<z.ZodUnknown>;
1339
+ error: z.ZodNullable<z.ZodString>;
1340
+ initiatedBy: z.ZodString;
1341
+ createdAt: z.ZodISODateTime;
1342
+ updatedAt: z.ZodISODateTime;
1343
+ completedAt: z.ZodNullable<z.ZodISODateTime>;
1344
+ }, z.core.$strict>;
1345
+ export type FlowRun = z.infer<typeof FlowRun>;
1346
+ export declare const FlowRunStep: z.ZodObject<{
1347
+ run: z.ZodObject<{
1348
+ id: z.ZodString;
1349
+ flowId: z.ZodString;
1350
+ versionId: z.ZodString;
1351
+ status: z.ZodEnum<{
1352
+ queued: "queued";
1353
+ running: "running";
1354
+ waiting: "waiting";
1355
+ completed: "completed";
1356
+ failed: "failed";
1357
+ cancelled: "cancelled";
1358
+ }>;
1359
+ currentNodeId: z.ZodNullable<z.ZodString>;
1360
+ input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1361
+ output: z.ZodNullable<z.ZodUnknown>;
1362
+ error: z.ZodNullable<z.ZodString>;
1363
+ initiatedBy: z.ZodString;
1364
+ createdAt: z.ZodISODateTime;
1365
+ updatedAt: z.ZodISODateTime;
1366
+ completedAt: z.ZodNullable<z.ZodISODateTime>;
1367
+ }, z.core.$strict>;
1368
+ node: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
1369
+ kind: z.ZodLiteral<"trigger">;
1370
+ configuration: z.ZodDiscriminatedUnion<[z.ZodObject<{
1371
+ mode: z.ZodLiteral<"manual">;
1372
+ }, z.core.$strict>, z.ZodObject<{
1373
+ mode: z.ZodLiteral<"webhook">;
1374
+ event: z.ZodString;
1375
+ }, z.core.$strict>, z.ZodObject<{
1376
+ mode: z.ZodLiteral<"schedule">;
1377
+ cron: z.ZodString;
1378
+ }, z.core.$strict>], "mode">;
1379
+ id: z.ZodString;
1380
+ position: z.ZodObject<{
1381
+ x: z.ZodNumber;
1382
+ y: z.ZodNumber;
1383
+ }, z.core.$strict>;
1384
+ label: z.ZodString;
1385
+ description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1386
+ }, z.core.$strict>, z.ZodObject<{
1387
+ kind: z.ZodLiteral<"instruction">;
1388
+ configuration: z.ZodObject<{
1389
+ prompt: z.ZodString;
1390
+ }, z.core.$strict>;
1391
+ id: z.ZodString;
1392
+ position: z.ZodObject<{
1393
+ x: z.ZodNumber;
1394
+ y: z.ZodNumber;
1395
+ }, z.core.$strict>;
1396
+ label: z.ZodString;
1397
+ description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1398
+ }, z.core.$strict>, z.ZodObject<{
1399
+ kind: z.ZodLiteral<"knowledge">;
1400
+ configuration: z.ZodObject<{
1401
+ resourceIds: z.ZodArray<z.ZodString>;
1402
+ mode: z.ZodEnum<{
1403
+ relevant: "relevant";
1404
+ full: "full";
1405
+ }>;
1406
+ query: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1407
+ }, z.core.$strict>;
1408
+ id: z.ZodString;
1409
+ position: z.ZodObject<{
1410
+ x: z.ZodNumber;
1411
+ y: z.ZodNumber;
1412
+ }, z.core.$strict>;
1413
+ label: z.ZodString;
1414
+ description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1415
+ }, z.core.$strict>, z.ZodObject<{
1416
+ kind: z.ZodLiteral<"tool">;
1417
+ configuration: z.ZodObject<{
1418
+ sourceId: z.ZodString;
1419
+ toolName: z.ZodString;
1420
+ fingerprint: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1421
+ arguments: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1422
+ }, z.core.$strict>;
1423
+ id: z.ZodString;
1424
+ position: z.ZodObject<{
1425
+ x: z.ZodNumber;
1426
+ y: z.ZodNumber;
1427
+ }, z.core.$strict>;
1428
+ label: z.ZodString;
1429
+ description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1430
+ }, z.core.$strict>, z.ZodObject<{
1431
+ kind: z.ZodLiteral<"condition">;
1432
+ configuration: z.ZodObject<{
1433
+ mode: z.ZodLiteral<"semantic">;
1434
+ instruction: z.ZodString;
1435
+ }, z.core.$strict>;
1436
+ id: z.ZodString;
1437
+ position: z.ZodObject<{
1438
+ x: z.ZodNumber;
1439
+ y: z.ZodNumber;
1440
+ }, z.core.$strict>;
1441
+ label: z.ZodString;
1442
+ description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1443
+ }, z.core.$strict>, z.ZodObject<{
1444
+ kind: z.ZodLiteral<"approval">;
1445
+ configuration: z.ZodObject<{
1446
+ prompt: z.ZodString;
1447
+ timeout: z.ZodString;
1448
+ }, z.core.$strict>;
1449
+ id: z.ZodString;
1450
+ position: z.ZodObject<{
1451
+ x: z.ZodNumber;
1452
+ y: z.ZodNumber;
1453
+ }, z.core.$strict>;
1454
+ label: z.ZodString;
1455
+ description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1456
+ }, z.core.$strict>, z.ZodObject<{
1457
+ kind: z.ZodLiteral<"output">;
1458
+ configuration: z.ZodObject<{
1459
+ template: z.ZodDefault<z.ZodString>;
1460
+ }, z.core.$strict>;
1461
+ id: z.ZodString;
1462
+ position: z.ZodObject<{
1463
+ x: z.ZodNumber;
1464
+ y: z.ZodNumber;
1465
+ }, z.core.$strict>;
1466
+ label: z.ZodString;
1467
+ description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1468
+ }, z.core.$strict>], "kind">>;
1469
+ }, z.core.$strict>;
1470
+ export type FlowRunStep = z.infer<typeof FlowRunStep>;
1471
+ export declare const StartFlowRunInput: z.ZodObject<{
1472
+ flowId: z.ZodString;
1473
+ input: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1474
+ idempotencyKey: z.ZodString;
1475
+ }, z.core.$strict>;
1476
+ export type StartFlowRunInput = z.infer<typeof StartFlowRunInput>;
1477
+ export declare const GetFlowRunInput: z.ZodObject<{
1478
+ runId: z.ZodString;
1479
+ }, z.core.$strict>;
1480
+ export type GetFlowRunInput = z.infer<typeof GetFlowRunInput>;
1481
+ export declare const CompleteFlowRunStepInput: z.ZodObject<{
1482
+ runId: z.ZodString;
1483
+ nodeId: z.ZodString;
1484
+ outcome: z.ZodEnum<{
1485
+ completed: "completed";
1486
+ failed: "failed";
1487
+ }>;
1488
+ branch: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1489
+ output: z.ZodDefault<z.ZodNullable<z.ZodUnknown>>;
1490
+ error: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1491
+ idempotencyKey: z.ZodString;
1492
+ }, z.core.$strict>;
1493
+ export type CompleteFlowRunStepInput = z.infer<typeof CompleteFlowRunStepInput>;