@anchrd/intel-contract 0.4.1 → 0.5.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/README.md +3 -3
- package/dist/contract/contract.d.ts +699 -78
- package/dist/contract/contract.js +406 -75
- package/package.json +1 -1
|
@@ -16,13 +16,18 @@ export declare const SessionUser: z.ZodObject<{
|
|
|
16
16
|
name: z.ZodNullable<z.ZodString>;
|
|
17
17
|
}, z.core.$strict>;
|
|
18
18
|
export type SessionUser = z.infer<typeof SessionUser>;
|
|
19
|
-
export declare const
|
|
19
|
+
export declare const IntelCapabilities: z.ZodObject<{
|
|
20
|
+
agentRuntime: z.ZodBoolean;
|
|
21
|
+
}, z.core.$strict>;
|
|
22
|
+
export type IntelCapabilities = z.infer<typeof IntelCapabilities>;
|
|
23
|
+
export declare const NodeKind: z.ZodEnum<{
|
|
20
24
|
folder: "folder";
|
|
21
25
|
document: "document";
|
|
22
26
|
attachment: "attachment";
|
|
23
27
|
table: "table";
|
|
28
|
+
agent: "agent";
|
|
24
29
|
}>;
|
|
25
|
-
export type
|
|
30
|
+
export type NodeKind = z.infer<typeof NodeKind>;
|
|
26
31
|
export declare const ResourceVerb: z.ZodEnum<{
|
|
27
32
|
read: "read";
|
|
28
33
|
write: "write";
|
|
@@ -40,7 +45,7 @@ export declare const SharePrincipal: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
40
45
|
type: z.ZodLiteral<"organization">;
|
|
41
46
|
}, z.core.$strict>], "type">;
|
|
42
47
|
export type SharePrincipal = z.infer<typeof SharePrincipal>;
|
|
43
|
-
export declare const
|
|
48
|
+
export declare const Node: z.ZodObject<{
|
|
44
49
|
id: z.ZodString;
|
|
45
50
|
parentId: z.ZodNullable<z.ZodString>;
|
|
46
51
|
kind: z.ZodEnum<{
|
|
@@ -48,6 +53,7 @@ export declare const KnowledgeNode: z.ZodObject<{
|
|
|
48
53
|
document: "document";
|
|
49
54
|
attachment: "attachment";
|
|
50
55
|
table: "table";
|
|
56
|
+
agent: "agent";
|
|
51
57
|
}>;
|
|
52
58
|
title: z.ZodString;
|
|
53
59
|
description: z.ZodNullable<z.ZodString>;
|
|
@@ -57,8 +63,13 @@ export declare const KnowledgeNode: z.ZodObject<{
|
|
|
57
63
|
updatedAt: z.ZodISODateTime;
|
|
58
64
|
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
59
65
|
}, z.core.$strict>;
|
|
60
|
-
export type
|
|
61
|
-
export declare const
|
|
66
|
+
export type Node = z.infer<typeof Node>;
|
|
67
|
+
export declare const NodeVersionSegment: z.ZodEnum<{
|
|
68
|
+
append: "append";
|
|
69
|
+
snapshot: "snapshot";
|
|
70
|
+
}>;
|
|
71
|
+
export type NodeVersionSegment = z.infer<typeof NodeVersionSegment>;
|
|
72
|
+
export declare const NodeVersion: z.ZodObject<{
|
|
62
73
|
id: z.ZodString;
|
|
63
74
|
nodeId: z.ZodString;
|
|
64
75
|
sequence: z.ZodNumber;
|
|
@@ -66,53 +77,64 @@ export declare const KnowledgeVersion: z.ZodObject<{
|
|
|
66
77
|
mediaType: z.ZodString;
|
|
67
78
|
contentHash: z.ZodString;
|
|
68
79
|
size: z.ZodNumber;
|
|
80
|
+
segment: z.ZodNullable<z.ZodEnum<{
|
|
81
|
+
append: "append";
|
|
82
|
+
snapshot: "snapshot";
|
|
83
|
+
}>>;
|
|
69
84
|
createdBy: z.ZodString;
|
|
70
85
|
createdAt: z.ZodISODateTime;
|
|
71
86
|
}, z.core.$strict>;
|
|
72
|
-
export type
|
|
73
|
-
export declare const
|
|
87
|
+
export type NodeVersion = z.infer<typeof NodeVersion>;
|
|
88
|
+
export declare const ListNodesInput: z.ZodObject<{
|
|
74
89
|
parentId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
75
90
|
includeArchived: z.ZodDefault<z.ZodBoolean>;
|
|
91
|
+
archivedOnly: z.ZodOptional<z.ZodBoolean>;
|
|
92
|
+
}, z.core.$strict>;
|
|
93
|
+
export type ListNodesInput = z.infer<typeof ListNodesInput>;
|
|
94
|
+
export declare const GetNodeInput: z.ZodObject<{
|
|
95
|
+
nodeId: z.ZodString;
|
|
76
96
|
}, z.core.$strict>;
|
|
77
|
-
export type
|
|
78
|
-
export declare const
|
|
97
|
+
export type GetNodeInput = z.infer<typeof GetNodeInput>;
|
|
98
|
+
export declare const GetNodeVersionInput: z.ZodObject<{
|
|
79
99
|
nodeId: z.ZodString;
|
|
100
|
+
versionId: z.ZodString;
|
|
80
101
|
}, z.core.$strict>;
|
|
81
|
-
export type
|
|
82
|
-
export declare const
|
|
102
|
+
export type GetNodeVersionInput = z.infer<typeof GetNodeVersionInput>;
|
|
103
|
+
export declare const ListGrantsInput: z.ZodObject<{
|
|
83
104
|
resourceId: z.ZodString;
|
|
84
105
|
}, z.core.$strict>;
|
|
85
|
-
export type
|
|
86
|
-
export declare const
|
|
106
|
+
export type ListGrantsInput = z.infer<typeof ListGrantsInput>;
|
|
107
|
+
export declare const CreateNodeInput: z.ZodObject<{
|
|
87
108
|
parentId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
88
109
|
kind: z.ZodEnum<{
|
|
89
110
|
folder: "folder";
|
|
90
111
|
document: "document";
|
|
91
112
|
attachment: "attachment";
|
|
92
113
|
table: "table";
|
|
114
|
+
agent: "agent";
|
|
93
115
|
}>;
|
|
94
116
|
title: z.ZodString;
|
|
95
117
|
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
96
118
|
idempotencyKey: z.ZodString;
|
|
97
119
|
}, z.core.$strict>;
|
|
98
|
-
export type
|
|
99
|
-
export declare const
|
|
120
|
+
export type CreateNodeInput = z.infer<typeof CreateNodeInput>;
|
|
121
|
+
export declare const SaveNodeVersionInput: z.ZodObject<{
|
|
100
122
|
nodeId: z.ZodString;
|
|
101
123
|
baseVersionId: z.ZodNullable<z.ZodString>;
|
|
102
124
|
content: z.ZodString;
|
|
103
125
|
mediaType: z.ZodDefault<z.ZodString>;
|
|
104
126
|
idempotencyKey: z.ZodString;
|
|
105
127
|
}, z.core.$strict>;
|
|
106
|
-
export type
|
|
107
|
-
export declare const
|
|
128
|
+
export type SaveNodeVersionInput = z.infer<typeof SaveNodeVersionInput>;
|
|
129
|
+
export declare const SaveAttachmentInput: z.ZodObject<{
|
|
108
130
|
nodeId: z.ZodString;
|
|
109
131
|
baseVersionId: z.ZodNullable<z.ZodString>;
|
|
110
132
|
contentBase64: z.ZodString;
|
|
111
133
|
mediaType: z.ZodString;
|
|
112
134
|
idempotencyKey: z.ZodString;
|
|
113
135
|
}, z.core.$strict>;
|
|
114
|
-
export type
|
|
115
|
-
export declare const
|
|
136
|
+
export type SaveAttachmentInput = z.infer<typeof SaveAttachmentInput>;
|
|
137
|
+
export declare const UpdateNodeInput: z.ZodObject<{
|
|
116
138
|
nodeId: z.ZodString;
|
|
117
139
|
baseUpdatedAt: z.ZodISODateTime;
|
|
118
140
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -120,15 +142,15 @@ export declare const UpdateKnowledgeNodeInput: z.ZodObject<{
|
|
|
120
142
|
parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
121
143
|
idempotencyKey: z.ZodString;
|
|
122
144
|
}, z.core.$strict>;
|
|
123
|
-
export type
|
|
124
|
-
export declare const
|
|
145
|
+
export type UpdateNodeInput = z.infer<typeof UpdateNodeInput>;
|
|
146
|
+
export declare const ArchiveNodeInput: z.ZodObject<{
|
|
125
147
|
nodeId: z.ZodString;
|
|
126
148
|
baseUpdatedAt: z.ZodISODateTime;
|
|
127
149
|
archived: z.ZodBoolean;
|
|
128
150
|
idempotencyKey: z.ZodString;
|
|
129
151
|
}, z.core.$strict>;
|
|
130
|
-
export type
|
|
131
|
-
export declare const
|
|
152
|
+
export type ArchiveNodeInput = z.infer<typeof ArchiveNodeInput>;
|
|
153
|
+
export declare const NodeList: z.ZodObject<{
|
|
132
154
|
items: z.ZodArray<z.ZodObject<{
|
|
133
155
|
id: z.ZodString;
|
|
134
156
|
parentId: z.ZodNullable<z.ZodString>;
|
|
@@ -137,6 +159,7 @@ export declare const KnowledgeNodeList: z.ZodObject<{
|
|
|
137
159
|
document: "document";
|
|
138
160
|
attachment: "attachment";
|
|
139
161
|
table: "table";
|
|
162
|
+
agent: "agent";
|
|
140
163
|
}>;
|
|
141
164
|
title: z.ZodString;
|
|
142
165
|
description: z.ZodNullable<z.ZodString>;
|
|
@@ -148,8 +171,8 @@ export declare const KnowledgeNodeList: z.ZodObject<{
|
|
|
148
171
|
}, z.core.$strict>>;
|
|
149
172
|
withChildren: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
150
173
|
}, z.core.$strict>;
|
|
151
|
-
export type
|
|
152
|
-
export declare const
|
|
174
|
+
export type NodeList = z.infer<typeof NodeList>;
|
|
175
|
+
export declare const NodeVersionList: z.ZodObject<{
|
|
153
176
|
items: z.ZodArray<z.ZodObject<{
|
|
154
177
|
id: z.ZodString;
|
|
155
178
|
nodeId: z.ZodString;
|
|
@@ -158,12 +181,16 @@ export declare const KnowledgeVersionList: z.ZodObject<{
|
|
|
158
181
|
mediaType: z.ZodString;
|
|
159
182
|
contentHash: z.ZodString;
|
|
160
183
|
size: z.ZodNumber;
|
|
184
|
+
segment: z.ZodNullable<z.ZodEnum<{
|
|
185
|
+
append: "append";
|
|
186
|
+
snapshot: "snapshot";
|
|
187
|
+
}>>;
|
|
161
188
|
createdBy: z.ZodString;
|
|
162
189
|
createdAt: z.ZodISODateTime;
|
|
163
190
|
}, z.core.$strict>>;
|
|
164
191
|
}, z.core.$strict>;
|
|
165
|
-
export type
|
|
166
|
-
export declare const
|
|
192
|
+
export type NodeVersionList = z.infer<typeof NodeVersionList>;
|
|
193
|
+
export declare const NodeDocument: z.ZodObject<{
|
|
167
194
|
node: z.ZodObject<{
|
|
168
195
|
id: z.ZodString;
|
|
169
196
|
parentId: z.ZodNullable<z.ZodString>;
|
|
@@ -172,6 +199,7 @@ export declare const KnowledgeDocument: z.ZodObject<{
|
|
|
172
199
|
document: "document";
|
|
173
200
|
attachment: "attachment";
|
|
174
201
|
table: "table";
|
|
202
|
+
agent: "agent";
|
|
175
203
|
}>;
|
|
176
204
|
title: z.ZodString;
|
|
177
205
|
description: z.ZodNullable<z.ZodString>;
|
|
@@ -189,13 +217,17 @@ export declare const KnowledgeDocument: z.ZodObject<{
|
|
|
189
217
|
mediaType: z.ZodString;
|
|
190
218
|
contentHash: z.ZodString;
|
|
191
219
|
size: z.ZodNumber;
|
|
220
|
+
segment: z.ZodNullable<z.ZodEnum<{
|
|
221
|
+
append: "append";
|
|
222
|
+
snapshot: "snapshot";
|
|
223
|
+
}>>;
|
|
192
224
|
createdBy: z.ZodString;
|
|
193
225
|
createdAt: z.ZodISODateTime;
|
|
194
226
|
}, z.core.$strict>>;
|
|
195
227
|
content: z.ZodNullable<z.ZodString>;
|
|
196
228
|
}, z.core.$strict>;
|
|
197
|
-
export type
|
|
198
|
-
export declare const
|
|
229
|
+
export type NodeDocument = z.infer<typeof NodeDocument>;
|
|
230
|
+
export declare const NodeAttachment: z.ZodObject<{
|
|
199
231
|
node: z.ZodObject<{
|
|
200
232
|
id: z.ZodString;
|
|
201
233
|
parentId: z.ZodNullable<z.ZodString>;
|
|
@@ -204,6 +236,7 @@ export declare const KnowledgeAttachment: z.ZodObject<{
|
|
|
204
236
|
document: "document";
|
|
205
237
|
attachment: "attachment";
|
|
206
238
|
table: "table";
|
|
239
|
+
agent: "agent";
|
|
207
240
|
}>;
|
|
208
241
|
title: z.ZodString;
|
|
209
242
|
description: z.ZodNullable<z.ZodString>;
|
|
@@ -221,33 +254,37 @@ export declare const KnowledgeAttachment: z.ZodObject<{
|
|
|
221
254
|
mediaType: z.ZodString;
|
|
222
255
|
contentHash: z.ZodString;
|
|
223
256
|
size: z.ZodNumber;
|
|
257
|
+
segment: z.ZodNullable<z.ZodEnum<{
|
|
258
|
+
append: "append";
|
|
259
|
+
snapshot: "snapshot";
|
|
260
|
+
}>>;
|
|
224
261
|
createdBy: z.ZodString;
|
|
225
262
|
createdAt: z.ZodISODateTime;
|
|
226
263
|
}, z.core.$strict>;
|
|
227
264
|
resourceUri: z.ZodString;
|
|
228
265
|
}, z.core.$strict>;
|
|
229
|
-
export type
|
|
266
|
+
export type NodeAttachment = z.infer<typeof NodeAttachment>;
|
|
230
267
|
export declare const TableMediaType = "text/csv";
|
|
231
268
|
export declare const TableColumn: z.ZodString;
|
|
232
269
|
export declare const TableCell: z.ZodString;
|
|
233
270
|
export declare const TableRow: z.ZodArray<z.ZodString>;
|
|
234
|
-
export declare const
|
|
271
|
+
export declare const DefineTableInput: z.ZodObject<{
|
|
235
272
|
nodeId: z.ZodString;
|
|
236
273
|
columns: z.ZodArray<z.ZodString>;
|
|
237
274
|
idempotencyKey: z.ZodString;
|
|
238
275
|
}, z.core.$strict>;
|
|
239
|
-
export type
|
|
240
|
-
export declare const
|
|
276
|
+
export type DefineTableInput = z.infer<typeof DefineTableInput>;
|
|
277
|
+
export declare const AppendTableRowsInput: z.ZodObject<{
|
|
241
278
|
nodeId: z.ZodString;
|
|
242
279
|
rows: z.ZodArray<z.ZodArray<z.ZodString>>;
|
|
243
280
|
idempotencyKey: z.ZodString;
|
|
244
281
|
}, z.core.$strict>;
|
|
245
|
-
export type
|
|
246
|
-
export declare const
|
|
282
|
+
export type AppendTableRowsInput = z.infer<typeof AppendTableRowsInput>;
|
|
283
|
+
export declare const GetTableInput: z.ZodObject<{
|
|
247
284
|
nodeId: z.ZodString;
|
|
248
285
|
}, z.core.$strict>;
|
|
249
|
-
export type
|
|
250
|
-
export declare const
|
|
286
|
+
export type GetTableInput = z.infer<typeof GetTableInput>;
|
|
287
|
+
export declare const NodeTable: z.ZodObject<{
|
|
251
288
|
node: z.ZodObject<{
|
|
252
289
|
id: z.ZodString;
|
|
253
290
|
parentId: z.ZodNullable<z.ZodString>;
|
|
@@ -256,6 +293,7 @@ export declare const KnowledgeTable: z.ZodObject<{
|
|
|
256
293
|
document: "document";
|
|
257
294
|
attachment: "attachment";
|
|
258
295
|
table: "table";
|
|
296
|
+
agent: "agent";
|
|
259
297
|
}>;
|
|
260
298
|
title: z.ZodString;
|
|
261
299
|
description: z.ZodNullable<z.ZodString>;
|
|
@@ -269,8 +307,8 @@ export declare const KnowledgeTable: z.ZodObject<{
|
|
|
269
307
|
rows: z.ZodArray<z.ZodArray<z.ZodString>>;
|
|
270
308
|
versionId: z.ZodNullable<z.ZodString>;
|
|
271
309
|
}, z.core.$strict>;
|
|
272
|
-
export type
|
|
273
|
-
export declare const
|
|
310
|
+
export type NodeTable = z.infer<typeof NodeTable>;
|
|
311
|
+
export declare const AppendTableRowsResult: z.ZodObject<{
|
|
274
312
|
node: z.ZodObject<{
|
|
275
313
|
id: z.ZodString;
|
|
276
314
|
parentId: z.ZodNullable<z.ZodString>;
|
|
@@ -279,6 +317,7 @@ export declare const AppendKnowledgeTableRowsResult: z.ZodObject<{
|
|
|
279
317
|
document: "document";
|
|
280
318
|
attachment: "attachment";
|
|
281
319
|
table: "table";
|
|
320
|
+
agent: "agent";
|
|
282
321
|
}>;
|
|
283
322
|
title: z.ZodString;
|
|
284
323
|
description: z.ZodNullable<z.ZodString>;
|
|
@@ -296,25 +335,498 @@ export declare const AppendKnowledgeTableRowsResult: z.ZodObject<{
|
|
|
296
335
|
mediaType: z.ZodString;
|
|
297
336
|
contentHash: z.ZodString;
|
|
298
337
|
size: z.ZodNumber;
|
|
338
|
+
segment: z.ZodNullable<z.ZodEnum<{
|
|
339
|
+
append: "append";
|
|
340
|
+
snapshot: "snapshot";
|
|
341
|
+
}>>;
|
|
299
342
|
createdBy: z.ZodString;
|
|
300
343
|
createdAt: z.ZodISODateTime;
|
|
301
344
|
}, z.core.$strict>;
|
|
302
345
|
appended: z.ZodNumber;
|
|
303
346
|
}, z.core.$strict>;
|
|
304
|
-
export type
|
|
305
|
-
export declare const
|
|
347
|
+
export type AppendTableRowsResult = z.infer<typeof AppendTableRowsResult>;
|
|
348
|
+
export declare const TableRowPosition: z.ZodNumber;
|
|
349
|
+
export declare const UpdateTableRowsInput: z.ZodObject<{
|
|
350
|
+
nodeId: z.ZodString;
|
|
351
|
+
baseVersionId: z.ZodString;
|
|
352
|
+
updates: z.ZodArray<z.ZodObject<{
|
|
353
|
+
position: z.ZodNumber;
|
|
354
|
+
row: z.ZodArray<z.ZodString>;
|
|
355
|
+
}, z.core.$strict>>;
|
|
356
|
+
idempotencyKey: z.ZodString;
|
|
357
|
+
}, z.core.$strict>;
|
|
358
|
+
export type UpdateTableRowsInput = z.infer<typeof UpdateTableRowsInput>;
|
|
359
|
+
export declare const UpdateTableRowsResult: z.ZodObject<{
|
|
360
|
+
node: z.ZodObject<{
|
|
361
|
+
id: z.ZodString;
|
|
362
|
+
parentId: z.ZodNullable<z.ZodString>;
|
|
363
|
+
kind: z.ZodEnum<{
|
|
364
|
+
folder: "folder";
|
|
365
|
+
document: "document";
|
|
366
|
+
attachment: "attachment";
|
|
367
|
+
table: "table";
|
|
368
|
+
agent: "agent";
|
|
369
|
+
}>;
|
|
370
|
+
title: z.ZodString;
|
|
371
|
+
description: z.ZodNullable<z.ZodString>;
|
|
372
|
+
ownerId: z.ZodString;
|
|
373
|
+
currentVersionId: z.ZodNullable<z.ZodString>;
|
|
374
|
+
createdAt: z.ZodISODateTime;
|
|
375
|
+
updatedAt: z.ZodISODateTime;
|
|
376
|
+
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
377
|
+
}, z.core.$strict>;
|
|
378
|
+
version: z.ZodObject<{
|
|
379
|
+
id: z.ZodString;
|
|
380
|
+
nodeId: z.ZodString;
|
|
381
|
+
sequence: z.ZodNumber;
|
|
382
|
+
contentKey: z.ZodString;
|
|
383
|
+
mediaType: z.ZodString;
|
|
384
|
+
contentHash: z.ZodString;
|
|
385
|
+
size: z.ZodNumber;
|
|
386
|
+
segment: z.ZodNullable<z.ZodEnum<{
|
|
387
|
+
append: "append";
|
|
388
|
+
snapshot: "snapshot";
|
|
389
|
+
}>>;
|
|
390
|
+
createdBy: z.ZodString;
|
|
391
|
+
createdAt: z.ZodISODateTime;
|
|
392
|
+
}, z.core.$strict>;
|
|
393
|
+
updated: z.ZodNumber;
|
|
394
|
+
}, z.core.$strict>;
|
|
395
|
+
export type UpdateTableRowsResult = z.infer<typeof UpdateTableRowsResult>;
|
|
396
|
+
export declare const DeleteTableRowsInput: z.ZodObject<{
|
|
397
|
+
nodeId: z.ZodString;
|
|
398
|
+
baseVersionId: z.ZodString;
|
|
399
|
+
positions: z.ZodArray<z.ZodNumber>;
|
|
400
|
+
idempotencyKey: z.ZodString;
|
|
401
|
+
}, z.core.$strict>;
|
|
402
|
+
export type DeleteTableRowsInput = z.infer<typeof DeleteTableRowsInput>;
|
|
403
|
+
export declare const DeleteTableRowsResult: z.ZodObject<{
|
|
404
|
+
node: z.ZodObject<{
|
|
405
|
+
id: z.ZodString;
|
|
406
|
+
parentId: z.ZodNullable<z.ZodString>;
|
|
407
|
+
kind: z.ZodEnum<{
|
|
408
|
+
folder: "folder";
|
|
409
|
+
document: "document";
|
|
410
|
+
attachment: "attachment";
|
|
411
|
+
table: "table";
|
|
412
|
+
agent: "agent";
|
|
413
|
+
}>;
|
|
414
|
+
title: z.ZodString;
|
|
415
|
+
description: z.ZodNullable<z.ZodString>;
|
|
416
|
+
ownerId: z.ZodString;
|
|
417
|
+
currentVersionId: z.ZodNullable<z.ZodString>;
|
|
418
|
+
createdAt: z.ZodISODateTime;
|
|
419
|
+
updatedAt: z.ZodISODateTime;
|
|
420
|
+
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
421
|
+
}, z.core.$strict>;
|
|
422
|
+
version: z.ZodObject<{
|
|
423
|
+
id: z.ZodString;
|
|
424
|
+
nodeId: z.ZodString;
|
|
425
|
+
sequence: z.ZodNumber;
|
|
426
|
+
contentKey: z.ZodString;
|
|
427
|
+
mediaType: z.ZodString;
|
|
428
|
+
contentHash: z.ZodString;
|
|
429
|
+
size: z.ZodNumber;
|
|
430
|
+
segment: z.ZodNullable<z.ZodEnum<{
|
|
431
|
+
append: "append";
|
|
432
|
+
snapshot: "snapshot";
|
|
433
|
+
}>>;
|
|
434
|
+
createdBy: z.ZodString;
|
|
435
|
+
createdAt: z.ZodISODateTime;
|
|
436
|
+
}, z.core.$strict>;
|
|
437
|
+
deleted: z.ZodNumber;
|
|
438
|
+
}, z.core.$strict>;
|
|
439
|
+
export type DeleteTableRowsResult = z.infer<typeof DeleteTableRowsResult>;
|
|
440
|
+
export declare const RedefineTableColumn: z.ZodObject<{
|
|
441
|
+
name: z.ZodString;
|
|
442
|
+
source: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
443
|
+
}, z.core.$strict>;
|
|
444
|
+
export type RedefineTableColumn = z.infer<typeof RedefineTableColumn>;
|
|
445
|
+
export declare const RedefineTableInput: z.ZodObject<{
|
|
446
|
+
nodeId: z.ZodString;
|
|
447
|
+
baseVersionId: z.ZodString;
|
|
448
|
+
columns: z.ZodArray<z.ZodObject<{
|
|
449
|
+
name: z.ZodString;
|
|
450
|
+
source: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
451
|
+
}, z.core.$strict>>;
|
|
452
|
+
idempotencyKey: z.ZodString;
|
|
453
|
+
}, z.core.$strict>;
|
|
454
|
+
export type RedefineTableInput = z.infer<typeof RedefineTableInput>;
|
|
455
|
+
export declare const AgentMediaType = "application/vnd.anchrd.agent+json";
|
|
456
|
+
export declare const AgentReferenceRole: z.ZodEnum<{
|
|
457
|
+
"system-message": "system-message";
|
|
458
|
+
"semantic-context": "semantic-context";
|
|
459
|
+
memory: "memory";
|
|
460
|
+
}>;
|
|
461
|
+
export type AgentReferenceRole = z.infer<typeof AgentReferenceRole>;
|
|
462
|
+
export declare const AgentReference: z.ZodObject<{
|
|
463
|
+
nodeId: z.ZodString;
|
|
464
|
+
role: z.ZodEnum<{
|
|
465
|
+
"system-message": "system-message";
|
|
466
|
+
"semantic-context": "semantic-context";
|
|
467
|
+
memory: "memory";
|
|
468
|
+
}>;
|
|
469
|
+
}, z.core.$strict>;
|
|
470
|
+
export type AgentReference = z.infer<typeof AgentReference>;
|
|
471
|
+
export declare const AgentScheduleTarget: z.ZodObject<{
|
|
472
|
+
kind: z.ZodEnum<{
|
|
473
|
+
document: "document";
|
|
474
|
+
flow: "flow";
|
|
475
|
+
}>;
|
|
476
|
+
id: z.ZodString;
|
|
477
|
+
}, z.core.$strict>;
|
|
478
|
+
export type AgentScheduleTarget = z.infer<typeof AgentScheduleTarget>;
|
|
479
|
+
export declare const AgentSchedule: z.ZodObject<{
|
|
480
|
+
cron: z.ZodString;
|
|
481
|
+
target: z.ZodObject<{
|
|
482
|
+
kind: z.ZodEnum<{
|
|
483
|
+
document: "document";
|
|
484
|
+
flow: "flow";
|
|
485
|
+
}>;
|
|
486
|
+
id: z.ZodString;
|
|
487
|
+
}, z.core.$strict>;
|
|
488
|
+
}, z.core.$strict>;
|
|
489
|
+
export type AgentSchedule = z.infer<typeof AgentSchedule>;
|
|
490
|
+
export declare const AgentModel: z.ZodObject<{
|
|
491
|
+
provider: z.ZodEnum<{
|
|
492
|
+
"workers-ai": "workers-ai";
|
|
493
|
+
anthropic: "anthropic";
|
|
494
|
+
}>;
|
|
495
|
+
model: z.ZodString;
|
|
496
|
+
}, z.core.$strict>;
|
|
497
|
+
export type AgentModel = z.infer<typeof AgentModel>;
|
|
498
|
+
/**
|
|
499
|
+
* ⚠️ No accounts, no secrets, no channels, and no tools — and the reason is mechanical rather than
|
|
500
|
+
* tidy (ADR-0005 §4): this body is read, shared, exported and put into model context, so a secret
|
|
501
|
+
* in it is a secret in a citation. Identity is Gate's, accounts are the portal's, channels are
|
|
502
|
+
* runtime configuration, and the tool catalog is a live `tools/list` that is never mirrored.
|
|
503
|
+
*
|
|
504
|
+
* ⚠️ Strict on purpose, and deliberately stricter than the runtime's own reader
|
|
505
|
+
* (`packages/agent/src/definition/definition.ts`, which is `z.object`). Intel is the writer: an
|
|
506
|
+
* unknown field here is a caller's mistake and is refused at the boundary. The runtime is the
|
|
507
|
+
* reader and released separately, so it must keep starting agents when Intel adds a field
|
|
508
|
+
* tomorrow. The asymmetry is the point, not an oversight.
|
|
509
|
+
*/
|
|
510
|
+
export declare const AgentDefinition: z.ZodObject<{
|
|
511
|
+
references: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
512
|
+
nodeId: z.ZodString;
|
|
513
|
+
role: z.ZodEnum<{
|
|
514
|
+
"system-message": "system-message";
|
|
515
|
+
"semantic-context": "semantic-context";
|
|
516
|
+
memory: "memory";
|
|
517
|
+
}>;
|
|
518
|
+
}, z.core.$strict>>>;
|
|
519
|
+
schedules: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
520
|
+
cron: z.ZodString;
|
|
521
|
+
target: z.ZodObject<{
|
|
522
|
+
kind: z.ZodEnum<{
|
|
523
|
+
document: "document";
|
|
524
|
+
flow: "flow";
|
|
525
|
+
}>;
|
|
526
|
+
id: z.ZodString;
|
|
527
|
+
}, z.core.$strict>;
|
|
528
|
+
}, z.core.$strict>>>;
|
|
529
|
+
model: z.ZodObject<{
|
|
530
|
+
provider: z.ZodEnum<{
|
|
531
|
+
"workers-ai": "workers-ai";
|
|
532
|
+
anthropic: "anthropic";
|
|
533
|
+
}>;
|
|
534
|
+
model: z.ZodString;
|
|
535
|
+
}, z.core.$strict>;
|
|
536
|
+
}, z.core.$strict>;
|
|
537
|
+
export type AgentDefinition = z.infer<typeof AgentDefinition>;
|
|
538
|
+
export declare const SaveAgentDefinitionInput: z.ZodObject<{
|
|
539
|
+
nodeId: z.ZodString;
|
|
540
|
+
baseVersionId: z.ZodNullable<z.ZodString>;
|
|
541
|
+
definition: z.ZodObject<{
|
|
542
|
+
references: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
543
|
+
nodeId: z.ZodString;
|
|
544
|
+
role: z.ZodEnum<{
|
|
545
|
+
"system-message": "system-message";
|
|
546
|
+
"semantic-context": "semantic-context";
|
|
547
|
+
memory: "memory";
|
|
548
|
+
}>;
|
|
549
|
+
}, z.core.$strict>>>;
|
|
550
|
+
schedules: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
551
|
+
cron: z.ZodString;
|
|
552
|
+
target: z.ZodObject<{
|
|
553
|
+
kind: z.ZodEnum<{
|
|
554
|
+
document: "document";
|
|
555
|
+
flow: "flow";
|
|
556
|
+
}>;
|
|
557
|
+
id: z.ZodString;
|
|
558
|
+
}, z.core.$strict>;
|
|
559
|
+
}, z.core.$strict>>>;
|
|
560
|
+
model: z.ZodObject<{
|
|
561
|
+
provider: z.ZodEnum<{
|
|
562
|
+
"workers-ai": "workers-ai";
|
|
563
|
+
anthropic: "anthropic";
|
|
564
|
+
}>;
|
|
565
|
+
model: z.ZodString;
|
|
566
|
+
}, z.core.$strict>;
|
|
567
|
+
}, z.core.$strict>;
|
|
568
|
+
idempotencyKey: z.ZodString;
|
|
569
|
+
}, z.core.$strict>;
|
|
570
|
+
export type SaveAgentDefinitionInput = z.infer<typeof SaveAgentDefinitionInput>;
|
|
571
|
+
export declare const GetAgentInput: z.ZodObject<{
|
|
572
|
+
nodeId: z.ZodString;
|
|
573
|
+
}, z.core.$strict>;
|
|
574
|
+
export type GetAgentInput = z.infer<typeof GetAgentInput>;
|
|
575
|
+
export declare const PauseAgentInput: z.ZodObject<{
|
|
576
|
+
nodeId: z.ZodString;
|
|
577
|
+
}, z.core.$strict>;
|
|
578
|
+
export type PauseAgentInput = z.infer<typeof PauseAgentInput>;
|
|
579
|
+
export declare const RunAgentNowInput: z.ZodObject<{
|
|
580
|
+
nodeId: z.ZodString;
|
|
581
|
+
target: z.ZodObject<{
|
|
582
|
+
kind: z.ZodEnum<{
|
|
583
|
+
document: "document";
|
|
584
|
+
flow: "flow";
|
|
585
|
+
}>;
|
|
586
|
+
id: z.ZodString;
|
|
587
|
+
}, z.core.$strict>;
|
|
588
|
+
}, z.core.$strict>;
|
|
589
|
+
export type RunAgentNowInput = z.infer<typeof RunAgentNowInput>;
|
|
590
|
+
export declare const ListAgentsInput: z.ZodObject<{
|
|
591
|
+
parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
592
|
+
includeArchived: z.ZodDefault<z.ZodBoolean>;
|
|
593
|
+
}, z.core.$strict>;
|
|
594
|
+
export type ListAgentsInput = z.infer<typeof ListAgentsInput>;
|
|
595
|
+
export declare const CreateAgentInput: z.ZodObject<{
|
|
596
|
+
parentId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
597
|
+
title: z.ZodString;
|
|
598
|
+
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
599
|
+
definition: z.ZodObject<{
|
|
600
|
+
references: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
601
|
+
nodeId: z.ZodString;
|
|
602
|
+
role: z.ZodEnum<{
|
|
603
|
+
"system-message": "system-message";
|
|
604
|
+
"semantic-context": "semantic-context";
|
|
605
|
+
memory: "memory";
|
|
606
|
+
}>;
|
|
607
|
+
}, z.core.$strict>>>;
|
|
608
|
+
schedules: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
609
|
+
cron: z.ZodString;
|
|
610
|
+
target: z.ZodObject<{
|
|
611
|
+
kind: z.ZodEnum<{
|
|
612
|
+
document: "document";
|
|
613
|
+
flow: "flow";
|
|
614
|
+
}>;
|
|
615
|
+
id: z.ZodString;
|
|
616
|
+
}, z.core.$strict>;
|
|
617
|
+
}, z.core.$strict>>>;
|
|
618
|
+
model: z.ZodObject<{
|
|
619
|
+
provider: z.ZodEnum<{
|
|
620
|
+
"workers-ai": "workers-ai";
|
|
621
|
+
anthropic: "anthropic";
|
|
622
|
+
}>;
|
|
623
|
+
model: z.ZodString;
|
|
624
|
+
}, z.core.$strict>;
|
|
625
|
+
}, z.core.$strict>;
|
|
626
|
+
idempotencyKey: z.ZodString;
|
|
627
|
+
}, z.core.$strict>;
|
|
628
|
+
export type CreateAgentInput = z.infer<typeof CreateAgentInput>;
|
|
629
|
+
export declare const GateApplicationId: z.ZodString;
|
|
630
|
+
export declare const NodeAgent: z.ZodObject<{
|
|
631
|
+
node: z.ZodObject<{
|
|
632
|
+
id: z.ZodString;
|
|
633
|
+
parentId: z.ZodNullable<z.ZodString>;
|
|
634
|
+
kind: z.ZodEnum<{
|
|
635
|
+
folder: "folder";
|
|
636
|
+
document: "document";
|
|
637
|
+
attachment: "attachment";
|
|
638
|
+
table: "table";
|
|
639
|
+
agent: "agent";
|
|
640
|
+
}>;
|
|
641
|
+
title: z.ZodString;
|
|
642
|
+
description: z.ZodNullable<z.ZodString>;
|
|
643
|
+
ownerId: z.ZodString;
|
|
644
|
+
currentVersionId: z.ZodNullable<z.ZodString>;
|
|
645
|
+
createdAt: z.ZodISODateTime;
|
|
646
|
+
updatedAt: z.ZodISODateTime;
|
|
647
|
+
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
648
|
+
}, z.core.$strict>;
|
|
649
|
+
version: z.ZodNullable<z.ZodObject<{
|
|
650
|
+
id: z.ZodString;
|
|
651
|
+
nodeId: z.ZodString;
|
|
652
|
+
sequence: z.ZodNumber;
|
|
653
|
+
contentKey: z.ZodString;
|
|
654
|
+
mediaType: z.ZodString;
|
|
655
|
+
contentHash: z.ZodString;
|
|
656
|
+
size: z.ZodNumber;
|
|
657
|
+
segment: z.ZodNullable<z.ZodEnum<{
|
|
658
|
+
append: "append";
|
|
659
|
+
snapshot: "snapshot";
|
|
660
|
+
}>>;
|
|
661
|
+
createdBy: z.ZodString;
|
|
662
|
+
createdAt: z.ZodISODateTime;
|
|
663
|
+
}, z.core.$strict>>;
|
|
664
|
+
definition: z.ZodNullable<z.ZodObject<{
|
|
665
|
+
references: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
666
|
+
nodeId: z.ZodString;
|
|
667
|
+
role: z.ZodEnum<{
|
|
668
|
+
"system-message": "system-message";
|
|
669
|
+
"semantic-context": "semantic-context";
|
|
670
|
+
memory: "memory";
|
|
671
|
+
}>;
|
|
672
|
+
}, z.core.$strict>>>;
|
|
673
|
+
schedules: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
674
|
+
cron: z.ZodString;
|
|
675
|
+
target: z.ZodObject<{
|
|
676
|
+
kind: z.ZodEnum<{
|
|
677
|
+
document: "document";
|
|
678
|
+
flow: "flow";
|
|
679
|
+
}>;
|
|
680
|
+
id: z.ZodString;
|
|
681
|
+
}, z.core.$strict>;
|
|
682
|
+
}, z.core.$strict>>>;
|
|
683
|
+
model: z.ZodObject<{
|
|
684
|
+
provider: z.ZodEnum<{
|
|
685
|
+
"workers-ai": "workers-ai";
|
|
686
|
+
anthropic: "anthropic";
|
|
687
|
+
}>;
|
|
688
|
+
model: z.ZodString;
|
|
689
|
+
}, z.core.$strict>;
|
|
690
|
+
}, z.core.$strict>>;
|
|
691
|
+
applicationId: z.ZodNullable<z.ZodString>;
|
|
692
|
+
}, z.core.$strict>;
|
|
693
|
+
export type NodeAgent = z.infer<typeof NodeAgent>;
|
|
694
|
+
/**
|
|
695
|
+
* The single value in Intel's wire formats that IS a credential (#182, D27).
|
|
696
|
+
*
|
|
697
|
+
* ⚠️ It exists for exactly one response — the one that created the agent — and for no other. Gate
|
|
698
|
+
* returns an Application key once in plain text and stores only its hash, so this is not a value
|
|
699
|
+
* Intel could fetch again later even if it wanted to; nothing in Intel writes it to D1, to R2, to
|
|
700
|
+
* an audit event or to a log, and no read surface has a field it could travel in. What the caller
|
|
701
|
+
* does with it is named in `notice` rather than left to them: it belongs in the agent runtime's
|
|
702
|
+
* `AGENT_APPLICATION_KEYS` secret, keyed by `agentId`, and nowhere else.
|
|
703
|
+
*
|
|
704
|
+
* ⚠️ `agentId` is the Intel node ID and not the Application ID, because that is the key the runtime
|
|
705
|
+
* looks an entry up by. Writing the Application ID into the runtime's map would produce a
|
|
706
|
+
* deployment that parses, starts, and then cannot find a single agent.
|
|
707
|
+
*/
|
|
708
|
+
export declare const AgentApplicationKey: z.ZodObject<{
|
|
709
|
+
agentId: z.ZodString;
|
|
710
|
+
applicationId: z.ZodString;
|
|
711
|
+
key: z.ZodString;
|
|
712
|
+
notice: z.ZodString;
|
|
713
|
+
}, z.core.$strict>;
|
|
714
|
+
export type AgentApplicationKey = z.infer<typeof AgentApplicationKey>;
|
|
715
|
+
/**
|
|
716
|
+
* What `POST /nodes/agents` and `agent_create` answer, and the only shape carrying a key. Every
|
|
717
|
+
* other agent read answers with the plain `NodeAgent` above.
|
|
718
|
+
*
|
|
719
|
+
* ⚠️ `applicationKey` is `null` on a REPLAY, and that is the honest answer rather than a gap. An
|
|
720
|
+
* idempotency key repeated after the first response was lost still returns the agent that exists —
|
|
721
|
+
* the promise every create in Intel makes — but the key belonged to the one response that created
|
|
722
|
+
* it and is gone from Gate. Minting a second principal to fill this field would leave the
|
|
723
|
+
* installation with two machine accounts for one agent, one of which nobody would ever switch off.
|
|
724
|
+
* `application_rotate_key` in Gate is the way to a new key, and it is a deliberate act.
|
|
725
|
+
*/
|
|
726
|
+
export declare const CreatedAgent: z.ZodObject<{
|
|
727
|
+
node: z.ZodObject<{
|
|
728
|
+
id: z.ZodString;
|
|
729
|
+
parentId: z.ZodNullable<z.ZodString>;
|
|
730
|
+
kind: z.ZodEnum<{
|
|
731
|
+
folder: "folder";
|
|
732
|
+
document: "document";
|
|
733
|
+
attachment: "attachment";
|
|
734
|
+
table: "table";
|
|
735
|
+
agent: "agent";
|
|
736
|
+
}>;
|
|
737
|
+
title: z.ZodString;
|
|
738
|
+
description: z.ZodNullable<z.ZodString>;
|
|
739
|
+
ownerId: z.ZodString;
|
|
740
|
+
currentVersionId: z.ZodNullable<z.ZodString>;
|
|
741
|
+
createdAt: z.ZodISODateTime;
|
|
742
|
+
updatedAt: z.ZodISODateTime;
|
|
743
|
+
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
744
|
+
}, z.core.$strict>;
|
|
745
|
+
version: z.ZodNullable<z.ZodObject<{
|
|
746
|
+
id: z.ZodString;
|
|
747
|
+
nodeId: z.ZodString;
|
|
748
|
+
sequence: z.ZodNumber;
|
|
749
|
+
contentKey: z.ZodString;
|
|
750
|
+
mediaType: z.ZodString;
|
|
751
|
+
contentHash: z.ZodString;
|
|
752
|
+
size: z.ZodNumber;
|
|
753
|
+
segment: z.ZodNullable<z.ZodEnum<{
|
|
754
|
+
append: "append";
|
|
755
|
+
snapshot: "snapshot";
|
|
756
|
+
}>>;
|
|
757
|
+
createdBy: z.ZodString;
|
|
758
|
+
createdAt: z.ZodISODateTime;
|
|
759
|
+
}, z.core.$strict>>;
|
|
760
|
+
definition: z.ZodNullable<z.ZodObject<{
|
|
761
|
+
references: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
762
|
+
nodeId: z.ZodString;
|
|
763
|
+
role: z.ZodEnum<{
|
|
764
|
+
"system-message": "system-message";
|
|
765
|
+
"semantic-context": "semantic-context";
|
|
766
|
+
memory: "memory";
|
|
767
|
+
}>;
|
|
768
|
+
}, z.core.$strict>>>;
|
|
769
|
+
schedules: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
770
|
+
cron: z.ZodString;
|
|
771
|
+
target: z.ZodObject<{
|
|
772
|
+
kind: z.ZodEnum<{
|
|
773
|
+
document: "document";
|
|
774
|
+
flow: "flow";
|
|
775
|
+
}>;
|
|
776
|
+
id: z.ZodString;
|
|
777
|
+
}, z.core.$strict>;
|
|
778
|
+
}, z.core.$strict>>>;
|
|
779
|
+
model: z.ZodObject<{
|
|
780
|
+
provider: z.ZodEnum<{
|
|
781
|
+
"workers-ai": "workers-ai";
|
|
782
|
+
anthropic: "anthropic";
|
|
783
|
+
}>;
|
|
784
|
+
model: z.ZodString;
|
|
785
|
+
}, z.core.$strict>;
|
|
786
|
+
}, z.core.$strict>>;
|
|
787
|
+
applicationId: z.ZodNullable<z.ZodString>;
|
|
788
|
+
applicationKey: z.ZodNullable<z.ZodObject<{
|
|
789
|
+
agentId: z.ZodString;
|
|
790
|
+
applicationId: z.ZodString;
|
|
791
|
+
key: z.ZodString;
|
|
792
|
+
notice: z.ZodString;
|
|
793
|
+
}, z.core.$strict>>;
|
|
794
|
+
}, z.core.$strict>;
|
|
795
|
+
export type CreatedAgent = z.infer<typeof CreatedAgent>;
|
|
796
|
+
export declare const AgentList: z.ZodObject<{
|
|
797
|
+
items: z.ZodArray<z.ZodObject<{
|
|
798
|
+
id: z.ZodString;
|
|
799
|
+
parentId: z.ZodNullable<z.ZodString>;
|
|
800
|
+
kind: z.ZodEnum<{
|
|
801
|
+
folder: "folder";
|
|
802
|
+
document: "document";
|
|
803
|
+
attachment: "attachment";
|
|
804
|
+
table: "table";
|
|
805
|
+
agent: "agent";
|
|
806
|
+
}>;
|
|
807
|
+
title: z.ZodString;
|
|
808
|
+
description: z.ZodNullable<z.ZodString>;
|
|
809
|
+
ownerId: z.ZodString;
|
|
810
|
+
currentVersionId: z.ZodNullable<z.ZodString>;
|
|
811
|
+
createdAt: z.ZodISODateTime;
|
|
812
|
+
updatedAt: z.ZodISODateTime;
|
|
813
|
+
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
814
|
+
}, z.core.$strict>>;
|
|
815
|
+
}, z.core.$strict>;
|
|
816
|
+
export type AgentList = z.infer<typeof AgentList>;
|
|
817
|
+
export declare const NodeLinkRelation: z.ZodEnum<{
|
|
306
818
|
references: "references";
|
|
307
819
|
related: "related";
|
|
308
820
|
depends_on: "depends_on";
|
|
309
821
|
implements: "implements";
|
|
310
822
|
}>;
|
|
311
|
-
export type
|
|
312
|
-
export declare const
|
|
823
|
+
export type NodeLinkRelation = z.infer<typeof NodeLinkRelation>;
|
|
824
|
+
export declare const NodeLinkOrigin: z.ZodEnum<{
|
|
313
825
|
text: "text";
|
|
314
826
|
manual: "manual";
|
|
315
827
|
}>;
|
|
316
|
-
export type
|
|
317
|
-
export declare const
|
|
828
|
+
export type NodeLinkOrigin = z.infer<typeof NodeLinkOrigin>;
|
|
829
|
+
export declare const NodeLink: z.ZodObject<{
|
|
318
830
|
id: z.ZodString;
|
|
319
831
|
sourceNodeId: z.ZodString;
|
|
320
832
|
targetNodeId: z.ZodString;
|
|
@@ -332,8 +844,8 @@ export declare const KnowledgeLink: z.ZodObject<{
|
|
|
332
844
|
createdBy: z.ZodString;
|
|
333
845
|
createdAt: z.ZodISODateTime;
|
|
334
846
|
}, z.core.$strict>;
|
|
335
|
-
export type
|
|
336
|
-
export declare const
|
|
847
|
+
export type NodeLink = z.infer<typeof NodeLink>;
|
|
848
|
+
export declare const NodeLinkList: z.ZodObject<{
|
|
337
849
|
items: z.ZodArray<z.ZodObject<{
|
|
338
850
|
id: z.ZodString;
|
|
339
851
|
sourceNodeId: z.ZodString;
|
|
@@ -353,29 +865,29 @@ export declare const KnowledgeLinkList: z.ZodObject<{
|
|
|
353
865
|
createdAt: z.ZodISODateTime;
|
|
354
866
|
}, z.core.$strict>>;
|
|
355
867
|
}, z.core.$strict>;
|
|
356
|
-
export type
|
|
868
|
+
export type NodeLinkList = z.infer<typeof NodeLinkList>;
|
|
357
869
|
export declare const DocumentLinkInlineType = "documentLink";
|
|
358
|
-
export declare const
|
|
870
|
+
export declare const ResolveNodeLinksInput: z.ZodObject<{
|
|
359
871
|
nodeIds: z.ZodArray<z.ZodString>;
|
|
360
872
|
}, z.core.$strict>;
|
|
361
|
-
export type
|
|
362
|
-
export declare const
|
|
873
|
+
export type ResolveNodeLinksInput = z.infer<typeof ResolveNodeLinksInput>;
|
|
874
|
+
export declare const ResolvedNodeLink: z.ZodObject<{
|
|
363
875
|
nodeId: z.ZodString;
|
|
364
876
|
title: z.ZodString;
|
|
365
877
|
}, z.core.$strict>;
|
|
366
|
-
export type
|
|
367
|
-
export declare const
|
|
878
|
+
export type ResolvedNodeLink = z.infer<typeof ResolvedNodeLink>;
|
|
879
|
+
export declare const ResolveNodeLinksResult: z.ZodObject<{
|
|
368
880
|
items: z.ZodArray<z.ZodObject<{
|
|
369
881
|
nodeId: z.ZodString;
|
|
370
882
|
title: z.ZodString;
|
|
371
883
|
}, z.core.$strict>>;
|
|
372
884
|
}, z.core.$strict>;
|
|
373
|
-
export type
|
|
374
|
-
export declare const
|
|
885
|
+
export type ResolveNodeLinksResult = z.infer<typeof ResolveNodeLinksResult>;
|
|
886
|
+
export declare const NodeGraphInput: z.ZodObject<{
|
|
375
887
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
376
888
|
}, z.core.$strict>;
|
|
377
|
-
export type
|
|
378
|
-
export declare const
|
|
889
|
+
export type NodeGraphInput = z.infer<typeof NodeGraphInput>;
|
|
890
|
+
export declare const NodeGraph: z.ZodObject<{
|
|
379
891
|
nodes: z.ZodArray<z.ZodObject<{
|
|
380
892
|
id: z.ZodString;
|
|
381
893
|
parentId: z.ZodNullable<z.ZodString>;
|
|
@@ -384,6 +896,7 @@ export declare const KnowledgeGraph: z.ZodObject<{
|
|
|
384
896
|
document: "document";
|
|
385
897
|
attachment: "attachment";
|
|
386
898
|
table: "table";
|
|
899
|
+
agent: "agent";
|
|
387
900
|
}>;
|
|
388
901
|
title: z.ZodString;
|
|
389
902
|
description: z.ZodNullable<z.ZodString>;
|
|
@@ -412,7 +925,7 @@ export declare const KnowledgeGraph: z.ZodObject<{
|
|
|
412
925
|
createdAt: z.ZodISODateTime;
|
|
413
926
|
}, z.core.$strict>>;
|
|
414
927
|
}, z.core.$strict>;
|
|
415
|
-
export type
|
|
928
|
+
export type NodeGraph = z.infer<typeof NodeGraph>;
|
|
416
929
|
export declare const BlockNoteMediaType = "application/vnd.anchrd.intel.blocknote+json";
|
|
417
930
|
export declare const BlockNoteDocument: z.ZodObject<{
|
|
418
931
|
format: z.ZodLiteral<"blocknote">;
|
|
@@ -444,7 +957,7 @@ export declare const ResourceGrant: z.ZodObject<{
|
|
|
444
957
|
createdAt: z.ZodISODateTime;
|
|
445
958
|
}, z.core.$strict>;
|
|
446
959
|
export type ResourceGrant = z.infer<typeof ResourceGrant>;
|
|
447
|
-
export declare const
|
|
960
|
+
export declare const ShareInput: z.ZodObject<{
|
|
448
961
|
resourceId: z.ZodString;
|
|
449
962
|
principal: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
450
963
|
type: z.ZodLiteral<"user">;
|
|
@@ -464,19 +977,19 @@ export declare const ShareKnowledgeInput: z.ZodObject<{
|
|
|
464
977
|
expiresAt: z.ZodDefault<z.ZodNullable<z.ZodISODateTime>>;
|
|
465
978
|
idempotencyKey: z.ZodString;
|
|
466
979
|
}, z.core.$strict>;
|
|
467
|
-
export type
|
|
468
|
-
export declare const
|
|
980
|
+
export type ShareInput = z.infer<typeof ShareInput>;
|
|
981
|
+
export declare const RevokeGrantInput: z.ZodObject<{
|
|
469
982
|
resourceId: z.ZodString;
|
|
470
983
|
grantId: z.ZodString;
|
|
471
984
|
idempotencyKey: z.ZodString;
|
|
472
985
|
}, z.core.$strict>;
|
|
473
|
-
export type
|
|
474
|
-
export declare const
|
|
986
|
+
export type RevokeGrantInput = z.infer<typeof RevokeGrantInput>;
|
|
987
|
+
export declare const UnreadableNodes: z.ZodObject<{
|
|
475
988
|
titles: z.ZodArray<z.ZodString>;
|
|
476
989
|
hidden: z.ZodNumber;
|
|
477
990
|
}, z.core.$strict>;
|
|
478
|
-
export type
|
|
479
|
-
export declare const
|
|
991
|
+
export type UnreadableNodes = z.infer<typeof UnreadableNodes>;
|
|
992
|
+
export declare const ShareResult: z.ZodObject<{
|
|
480
993
|
grant: z.ZodObject<{
|
|
481
994
|
id: z.ZodString;
|
|
482
995
|
resourceId: z.ZodString;
|
|
@@ -504,7 +1017,7 @@ export declare const ShareKnowledgeResult: z.ZodObject<{
|
|
|
504
1017
|
hidden: z.ZodNumber;
|
|
505
1018
|
}, z.core.$strict>;
|
|
506
1019
|
}, z.core.$strict>;
|
|
507
|
-
export type
|
|
1020
|
+
export type ShareResult = z.infer<typeof ShareResult>;
|
|
508
1021
|
export declare const ResourceGrantList: z.ZodObject<{
|
|
509
1022
|
resourceId: z.ZodString;
|
|
510
1023
|
applicableVerbs: z.ZodArray<z.ZodEnum<{
|
|
@@ -537,12 +1050,13 @@ export declare const ResourceGrantList: z.ZodObject<{
|
|
|
537
1050
|
}, z.core.$strict>>;
|
|
538
1051
|
}, z.core.$strict>;
|
|
539
1052
|
export type ResourceGrantList = z.infer<typeof ResourceGrantList>;
|
|
540
|
-
export declare const
|
|
1053
|
+
export declare const SearchInput: z.ZodObject<{
|
|
541
1054
|
query: z.ZodString;
|
|
542
1055
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
1056
|
+
scopeId: z.ZodOptional<z.ZodString>;
|
|
543
1057
|
}, z.core.$strict>;
|
|
544
|
-
export type
|
|
545
|
-
export declare const
|
|
1058
|
+
export type SearchInput = z.infer<typeof SearchInput>;
|
|
1059
|
+
export declare const NodeCitation: z.ZodObject<{
|
|
546
1060
|
nodeId: z.ZodString;
|
|
547
1061
|
versionId: z.ZodString;
|
|
548
1062
|
title: z.ZodString;
|
|
@@ -556,8 +1070,8 @@ export declare const KnowledgeCitation: z.ZodObject<{
|
|
|
556
1070
|
hybrid: "hybrid";
|
|
557
1071
|
}>;
|
|
558
1072
|
}, z.core.$strict>;
|
|
559
|
-
export type
|
|
560
|
-
export declare const
|
|
1073
|
+
export type NodeCitation = z.infer<typeof NodeCitation>;
|
|
1074
|
+
export declare const SearchResult: z.ZodObject<{
|
|
561
1075
|
items: z.ZodArray<z.ZodObject<{
|
|
562
1076
|
nodeId: z.ZodString;
|
|
563
1077
|
versionId: z.ZodString;
|
|
@@ -573,11 +1087,11 @@ export declare const SearchKnowledgeResult: z.ZodObject<{
|
|
|
573
1087
|
}>;
|
|
574
1088
|
}, z.core.$strict>>;
|
|
575
1089
|
}, z.core.$strict>;
|
|
576
|
-
export type
|
|
577
|
-
export declare const
|
|
1090
|
+
export type SearchResult = z.infer<typeof SearchResult>;
|
|
1091
|
+
export declare const ReindexResult: z.ZodObject<{
|
|
578
1092
|
queued: z.ZodNumber;
|
|
579
1093
|
}, z.core.$strict>;
|
|
580
|
-
export type
|
|
1094
|
+
export type ReindexResult = z.infer<typeof ReindexResult>;
|
|
581
1095
|
export declare const RevokeGrantResult: z.ZodObject<{
|
|
582
1096
|
revoked: z.ZodBoolean;
|
|
583
1097
|
}, z.core.$strict>;
|
|
@@ -1262,6 +1776,32 @@ export declare const FlowDocument: z.ZodObject<{
|
|
|
1262
1776
|
}, z.core.$strict>>;
|
|
1263
1777
|
}, z.core.$strict>;
|
|
1264
1778
|
export type FlowDocument = z.infer<typeof FlowDocument>;
|
|
1779
|
+
export declare const FlowVersionSummary: z.ZodObject<{
|
|
1780
|
+
id: z.ZodString;
|
|
1781
|
+
flowId: z.ZodString;
|
|
1782
|
+
sequence: z.ZodNumber;
|
|
1783
|
+
createdBy: z.ZodString;
|
|
1784
|
+
createdAt: z.ZodISODateTime;
|
|
1785
|
+
published: z.ZodBoolean;
|
|
1786
|
+
}, z.core.$strict>;
|
|
1787
|
+
export type FlowVersionSummary = z.infer<typeof FlowVersionSummary>;
|
|
1788
|
+
export declare const FlowVersionList: z.ZodObject<{
|
|
1789
|
+
flowId: z.ZodString;
|
|
1790
|
+
items: z.ZodArray<z.ZodObject<{
|
|
1791
|
+
id: z.ZodString;
|
|
1792
|
+
flowId: z.ZodString;
|
|
1793
|
+
sequence: z.ZodNumber;
|
|
1794
|
+
createdBy: z.ZodString;
|
|
1795
|
+
createdAt: z.ZodISODateTime;
|
|
1796
|
+
published: z.ZodBoolean;
|
|
1797
|
+
}, z.core.$strict>>;
|
|
1798
|
+
}, z.core.$strict>;
|
|
1799
|
+
export type FlowVersionList = z.infer<typeof FlowVersionList>;
|
|
1800
|
+
export declare const GetFlowVersionInput: z.ZodObject<{
|
|
1801
|
+
flowId: z.ZodString;
|
|
1802
|
+
versionId: z.ZodString;
|
|
1803
|
+
}, z.core.$strict>;
|
|
1804
|
+
export type GetFlowVersionInput = z.infer<typeof GetFlowVersionInput>;
|
|
1265
1805
|
export declare const FlowList: z.ZodObject<{
|
|
1266
1806
|
items: z.ZodArray<z.ZodObject<{
|
|
1267
1807
|
id: z.ZodString;
|
|
@@ -1278,19 +1818,19 @@ export declare const FlowList: z.ZodObject<{
|
|
|
1278
1818
|
withCalls: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1279
1819
|
}, z.core.$strict>;
|
|
1280
1820
|
export type FlowList = z.infer<typeof FlowList>;
|
|
1281
|
-
export declare const
|
|
1821
|
+
export declare const ReferencedNode: z.ZodObject<{
|
|
1282
1822
|
id: z.ZodString;
|
|
1283
1823
|
title: z.ZodString;
|
|
1284
1824
|
}, z.core.$strict>;
|
|
1285
|
-
export type
|
|
1825
|
+
export type ReferencedNode = z.infer<typeof ReferencedNode>;
|
|
1286
1826
|
export declare const FlowRequirements: z.ZodObject<{
|
|
1287
1827
|
flowId: z.ZodString;
|
|
1288
1828
|
versionId: z.ZodNullable<z.ZodString>;
|
|
1289
|
-
|
|
1829
|
+
nodes: z.ZodArray<z.ZodObject<{
|
|
1290
1830
|
id: z.ZodString;
|
|
1291
1831
|
title: z.ZodString;
|
|
1292
1832
|
}, z.core.$strict>>;
|
|
1293
|
-
|
|
1833
|
+
hiddenNodes: z.ZodNumber;
|
|
1294
1834
|
tools: z.ZodArray<z.ZodString>;
|
|
1295
1835
|
}, z.core.$strict>;
|
|
1296
1836
|
export type FlowRequirements = z.infer<typeof FlowRequirements>;
|
|
@@ -1330,6 +1870,7 @@ export type ArchiveFlowInput = z.infer<typeof ArchiveFlowInput>;
|
|
|
1330
1870
|
export declare const ListFlowsInput: z.ZodObject<{
|
|
1331
1871
|
parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1332
1872
|
includeArchived: z.ZodOptional<z.ZodBoolean>;
|
|
1873
|
+
archivedOnly: z.ZodOptional<z.ZodBoolean>;
|
|
1333
1874
|
}, z.core.$strict>;
|
|
1334
1875
|
export type ListFlowsInput = z.infer<typeof ListFlowsInput>;
|
|
1335
1876
|
export declare const GetFlowInput: z.ZodObject<{
|
|
@@ -1481,6 +2022,11 @@ export declare const PublishFlowInput: z.ZodObject<{
|
|
|
1481
2022
|
idempotencyKey: z.ZodString;
|
|
1482
2023
|
}, z.core.$strict>;
|
|
1483
2024
|
export type PublishFlowInput = z.infer<typeof PublishFlowInput>;
|
|
2025
|
+
export declare const UnpublishFlowInput: z.ZodObject<{
|
|
2026
|
+
flowId: z.ZodString;
|
|
2027
|
+
idempotencyKey: z.ZodString;
|
|
2028
|
+
}, z.core.$strict>;
|
|
2029
|
+
export type UnpublishFlowInput = z.infer<typeof UnpublishFlowInput>;
|
|
1484
2030
|
export declare const PreviewFlowPublishInput: z.ZodObject<{
|
|
1485
2031
|
flowId: z.ZodString;
|
|
1486
2032
|
versionId: z.ZodString;
|
|
@@ -1527,6 +2073,7 @@ export declare const RelationNodeKind: z.ZodEnum<{
|
|
|
1527
2073
|
document: "document";
|
|
1528
2074
|
attachment: "attachment";
|
|
1529
2075
|
table: "table";
|
|
2076
|
+
agent: "agent";
|
|
1530
2077
|
flow: "flow";
|
|
1531
2078
|
}>;
|
|
1532
2079
|
export type RelationNodeKind = z.infer<typeof RelationNodeKind>;
|
|
@@ -1537,6 +2084,7 @@ export declare const RelationNode: z.ZodObject<{
|
|
|
1537
2084
|
document: "document";
|
|
1538
2085
|
attachment: "attachment";
|
|
1539
2086
|
table: "table";
|
|
2087
|
+
agent: "agent";
|
|
1540
2088
|
flow: "flow";
|
|
1541
2089
|
}>;
|
|
1542
2090
|
title: z.ZodString;
|
|
@@ -1587,6 +2135,7 @@ export declare const RelationGraph: z.ZodObject<{
|
|
|
1587
2135
|
document: "document";
|
|
1588
2136
|
attachment: "attachment";
|
|
1589
2137
|
table: "table";
|
|
2138
|
+
agent: "agent";
|
|
1590
2139
|
flow: "flow";
|
|
1591
2140
|
}>;
|
|
1592
2141
|
title: z.ZodString;
|
|
@@ -1810,6 +2359,11 @@ export declare const GetFlowRunInput: z.ZodObject<{
|
|
|
1810
2359
|
runId: z.ZodString;
|
|
1811
2360
|
}, z.core.$strict>;
|
|
1812
2361
|
export type GetFlowRunInput = z.infer<typeof GetFlowRunInput>;
|
|
2362
|
+
export declare const CancelFlowRunInput: z.ZodObject<{
|
|
2363
|
+
runId: z.ZodString;
|
|
2364
|
+
idempotencyKey: z.ZodString;
|
|
2365
|
+
}, z.core.$strict>;
|
|
2366
|
+
export type CancelFlowRunInput = z.infer<typeof CancelFlowRunInput>;
|
|
1813
2367
|
export declare const CompleteFlowRunStepInput: z.ZodObject<{
|
|
1814
2368
|
runId: z.ZodString;
|
|
1815
2369
|
nodeId: z.ZodString;
|
|
@@ -1945,3 +2499,70 @@ export declare const FlowRunHistory: z.ZodObject<{
|
|
|
1945
2499
|
}, z.core.$strict>>;
|
|
1946
2500
|
}, z.core.$strict>;
|
|
1947
2501
|
export type FlowRunHistory = z.infer<typeof FlowRunHistory>;
|
|
2502
|
+
export declare const BundleManifestFilename = "manifest.json";
|
|
2503
|
+
export declare const BundleEntryKind: z.ZodEnum<{
|
|
2504
|
+
folder: "folder";
|
|
2505
|
+
document: "document";
|
|
2506
|
+
attachment: "attachment";
|
|
2507
|
+
table: "table";
|
|
2508
|
+
agent: "agent";
|
|
2509
|
+
flow: "flow";
|
|
2510
|
+
}>;
|
|
2511
|
+
export type BundleEntryKind = z.infer<typeof BundleEntryKind>;
|
|
2512
|
+
export declare const BundleManifestEntry: z.ZodObject<{
|
|
2513
|
+
id: z.ZodString;
|
|
2514
|
+
kind: z.ZodEnum<{
|
|
2515
|
+
folder: "folder";
|
|
2516
|
+
document: "document";
|
|
2517
|
+
attachment: "attachment";
|
|
2518
|
+
table: "table";
|
|
2519
|
+
agent: "agent";
|
|
2520
|
+
flow: "flow";
|
|
2521
|
+
}>;
|
|
2522
|
+
title: z.ZodString;
|
|
2523
|
+
description: z.ZodNullable<z.ZodString>;
|
|
2524
|
+
mediaType: z.ZodNullable<z.ZodString>;
|
|
2525
|
+
path: z.ZodString;
|
|
2526
|
+
}, z.core.$strict>;
|
|
2527
|
+
export type BundleManifestEntry = z.infer<typeof BundleManifestEntry>;
|
|
2528
|
+
export declare const BundleExclusion: z.ZodEnum<{
|
|
2529
|
+
"version-history": "version-history";
|
|
2530
|
+
grants: "grants";
|
|
2531
|
+
"flow-runs": "flow-runs";
|
|
2532
|
+
"archived-nodes": "archived-nodes";
|
|
2533
|
+
}>;
|
|
2534
|
+
export type BundleExclusion = z.infer<typeof BundleExclusion>;
|
|
2535
|
+
export declare const BundleManifest: z.ZodObject<{
|
|
2536
|
+
version: z.ZodLiteral<1>;
|
|
2537
|
+
exportedAt: z.ZodISODateTime;
|
|
2538
|
+
rootId: z.ZodNullable<z.ZodString>;
|
|
2539
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
2540
|
+
id: z.ZodString;
|
|
2541
|
+
kind: z.ZodEnum<{
|
|
2542
|
+
folder: "folder";
|
|
2543
|
+
document: "document";
|
|
2544
|
+
attachment: "attachment";
|
|
2545
|
+
table: "table";
|
|
2546
|
+
agent: "agent";
|
|
2547
|
+
flow: "flow";
|
|
2548
|
+
}>;
|
|
2549
|
+
title: z.ZodString;
|
|
2550
|
+
description: z.ZodNullable<z.ZodString>;
|
|
2551
|
+
mediaType: z.ZodNullable<z.ZodString>;
|
|
2552
|
+
path: z.ZodString;
|
|
2553
|
+
}, z.core.$strict>>;
|
|
2554
|
+
excluded: z.ZodArray<z.ZodEnum<{
|
|
2555
|
+
"version-history": "version-history";
|
|
2556
|
+
grants: "grants";
|
|
2557
|
+
"flow-runs": "flow-runs";
|
|
2558
|
+
"archived-nodes": "archived-nodes";
|
|
2559
|
+
}>>;
|
|
2560
|
+
}, z.core.$strict>;
|
|
2561
|
+
export type BundleManifest = z.infer<typeof BundleManifest>;
|
|
2562
|
+
export declare const BundleImportResult: z.ZodObject<{
|
|
2563
|
+
nodes: z.ZodNumber;
|
|
2564
|
+
flows: z.ZodNumber;
|
|
2565
|
+
rootNodeIds: z.ZodArray<z.ZodString>;
|
|
2566
|
+
replayed: z.ZodBoolean;
|
|
2567
|
+
}, z.core.$strict>;
|
|
2568
|
+
export type BundleImportResult = z.infer<typeof BundleImportResult>;
|