@anchrd/intel-contract 0.4.2 → 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 +697 -78
- package/dist/contract/contract.js +396 -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,54 +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>;
|
|
76
91
|
archivedOnly: z.ZodOptional<z.ZodBoolean>;
|
|
77
92
|
}, z.core.$strict>;
|
|
78
|
-
export type
|
|
79
|
-
export declare const
|
|
93
|
+
export type ListNodesInput = z.infer<typeof ListNodesInput>;
|
|
94
|
+
export declare const GetNodeInput: z.ZodObject<{
|
|
95
|
+
nodeId: z.ZodString;
|
|
96
|
+
}, z.core.$strict>;
|
|
97
|
+
export type GetNodeInput = z.infer<typeof GetNodeInput>;
|
|
98
|
+
export declare const GetNodeVersionInput: z.ZodObject<{
|
|
80
99
|
nodeId: z.ZodString;
|
|
100
|
+
versionId: z.ZodString;
|
|
81
101
|
}, z.core.$strict>;
|
|
82
|
-
export type
|
|
83
|
-
export declare const
|
|
102
|
+
export type GetNodeVersionInput = z.infer<typeof GetNodeVersionInput>;
|
|
103
|
+
export declare const ListGrantsInput: z.ZodObject<{
|
|
84
104
|
resourceId: z.ZodString;
|
|
85
105
|
}, z.core.$strict>;
|
|
86
|
-
export type
|
|
87
|
-
export declare const
|
|
106
|
+
export type ListGrantsInput = z.infer<typeof ListGrantsInput>;
|
|
107
|
+
export declare const CreateNodeInput: z.ZodObject<{
|
|
88
108
|
parentId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
89
109
|
kind: z.ZodEnum<{
|
|
90
110
|
folder: "folder";
|
|
91
111
|
document: "document";
|
|
92
112
|
attachment: "attachment";
|
|
93
113
|
table: "table";
|
|
114
|
+
agent: "agent";
|
|
94
115
|
}>;
|
|
95
116
|
title: z.ZodString;
|
|
96
117
|
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
97
118
|
idempotencyKey: z.ZodString;
|
|
98
119
|
}, z.core.$strict>;
|
|
99
|
-
export type
|
|
100
|
-
export declare const
|
|
120
|
+
export type CreateNodeInput = z.infer<typeof CreateNodeInput>;
|
|
121
|
+
export declare const SaveNodeVersionInput: z.ZodObject<{
|
|
101
122
|
nodeId: z.ZodString;
|
|
102
123
|
baseVersionId: z.ZodNullable<z.ZodString>;
|
|
103
124
|
content: z.ZodString;
|
|
104
125
|
mediaType: z.ZodDefault<z.ZodString>;
|
|
105
126
|
idempotencyKey: z.ZodString;
|
|
106
127
|
}, z.core.$strict>;
|
|
107
|
-
export type
|
|
108
|
-
export declare const
|
|
128
|
+
export type SaveNodeVersionInput = z.infer<typeof SaveNodeVersionInput>;
|
|
129
|
+
export declare const SaveAttachmentInput: z.ZodObject<{
|
|
109
130
|
nodeId: z.ZodString;
|
|
110
131
|
baseVersionId: z.ZodNullable<z.ZodString>;
|
|
111
132
|
contentBase64: z.ZodString;
|
|
112
133
|
mediaType: z.ZodString;
|
|
113
134
|
idempotencyKey: z.ZodString;
|
|
114
135
|
}, z.core.$strict>;
|
|
115
|
-
export type
|
|
116
|
-
export declare const
|
|
136
|
+
export type SaveAttachmentInput = z.infer<typeof SaveAttachmentInput>;
|
|
137
|
+
export declare const UpdateNodeInput: z.ZodObject<{
|
|
117
138
|
nodeId: z.ZodString;
|
|
118
139
|
baseUpdatedAt: z.ZodISODateTime;
|
|
119
140
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -121,15 +142,15 @@ export declare const UpdateKnowledgeNodeInput: z.ZodObject<{
|
|
|
121
142
|
parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
122
143
|
idempotencyKey: z.ZodString;
|
|
123
144
|
}, z.core.$strict>;
|
|
124
|
-
export type
|
|
125
|
-
export declare const
|
|
145
|
+
export type UpdateNodeInput = z.infer<typeof UpdateNodeInput>;
|
|
146
|
+
export declare const ArchiveNodeInput: z.ZodObject<{
|
|
126
147
|
nodeId: z.ZodString;
|
|
127
148
|
baseUpdatedAt: z.ZodISODateTime;
|
|
128
149
|
archived: z.ZodBoolean;
|
|
129
150
|
idempotencyKey: z.ZodString;
|
|
130
151
|
}, z.core.$strict>;
|
|
131
|
-
export type
|
|
132
|
-
export declare const
|
|
152
|
+
export type ArchiveNodeInput = z.infer<typeof ArchiveNodeInput>;
|
|
153
|
+
export declare const NodeList: z.ZodObject<{
|
|
133
154
|
items: z.ZodArray<z.ZodObject<{
|
|
134
155
|
id: z.ZodString;
|
|
135
156
|
parentId: z.ZodNullable<z.ZodString>;
|
|
@@ -138,6 +159,7 @@ export declare const KnowledgeNodeList: z.ZodObject<{
|
|
|
138
159
|
document: "document";
|
|
139
160
|
attachment: "attachment";
|
|
140
161
|
table: "table";
|
|
162
|
+
agent: "agent";
|
|
141
163
|
}>;
|
|
142
164
|
title: z.ZodString;
|
|
143
165
|
description: z.ZodNullable<z.ZodString>;
|
|
@@ -149,8 +171,8 @@ export declare const KnowledgeNodeList: z.ZodObject<{
|
|
|
149
171
|
}, z.core.$strict>>;
|
|
150
172
|
withChildren: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
151
173
|
}, z.core.$strict>;
|
|
152
|
-
export type
|
|
153
|
-
export declare const
|
|
174
|
+
export type NodeList = z.infer<typeof NodeList>;
|
|
175
|
+
export declare const NodeVersionList: z.ZodObject<{
|
|
154
176
|
items: z.ZodArray<z.ZodObject<{
|
|
155
177
|
id: z.ZodString;
|
|
156
178
|
nodeId: z.ZodString;
|
|
@@ -159,12 +181,16 @@ export declare const KnowledgeVersionList: z.ZodObject<{
|
|
|
159
181
|
mediaType: z.ZodString;
|
|
160
182
|
contentHash: z.ZodString;
|
|
161
183
|
size: z.ZodNumber;
|
|
184
|
+
segment: z.ZodNullable<z.ZodEnum<{
|
|
185
|
+
append: "append";
|
|
186
|
+
snapshot: "snapshot";
|
|
187
|
+
}>>;
|
|
162
188
|
createdBy: z.ZodString;
|
|
163
189
|
createdAt: z.ZodISODateTime;
|
|
164
190
|
}, z.core.$strict>>;
|
|
165
191
|
}, z.core.$strict>;
|
|
166
|
-
export type
|
|
167
|
-
export declare const
|
|
192
|
+
export type NodeVersionList = z.infer<typeof NodeVersionList>;
|
|
193
|
+
export declare const NodeDocument: z.ZodObject<{
|
|
168
194
|
node: z.ZodObject<{
|
|
169
195
|
id: z.ZodString;
|
|
170
196
|
parentId: z.ZodNullable<z.ZodString>;
|
|
@@ -173,6 +199,7 @@ export declare const KnowledgeDocument: z.ZodObject<{
|
|
|
173
199
|
document: "document";
|
|
174
200
|
attachment: "attachment";
|
|
175
201
|
table: "table";
|
|
202
|
+
agent: "agent";
|
|
176
203
|
}>;
|
|
177
204
|
title: z.ZodString;
|
|
178
205
|
description: z.ZodNullable<z.ZodString>;
|
|
@@ -190,13 +217,17 @@ export declare const KnowledgeDocument: z.ZodObject<{
|
|
|
190
217
|
mediaType: z.ZodString;
|
|
191
218
|
contentHash: z.ZodString;
|
|
192
219
|
size: z.ZodNumber;
|
|
220
|
+
segment: z.ZodNullable<z.ZodEnum<{
|
|
221
|
+
append: "append";
|
|
222
|
+
snapshot: "snapshot";
|
|
223
|
+
}>>;
|
|
193
224
|
createdBy: z.ZodString;
|
|
194
225
|
createdAt: z.ZodISODateTime;
|
|
195
226
|
}, z.core.$strict>>;
|
|
196
227
|
content: z.ZodNullable<z.ZodString>;
|
|
197
228
|
}, z.core.$strict>;
|
|
198
|
-
export type
|
|
199
|
-
export declare const
|
|
229
|
+
export type NodeDocument = z.infer<typeof NodeDocument>;
|
|
230
|
+
export declare const NodeAttachment: z.ZodObject<{
|
|
200
231
|
node: z.ZodObject<{
|
|
201
232
|
id: z.ZodString;
|
|
202
233
|
parentId: z.ZodNullable<z.ZodString>;
|
|
@@ -205,6 +236,7 @@ export declare const KnowledgeAttachment: z.ZodObject<{
|
|
|
205
236
|
document: "document";
|
|
206
237
|
attachment: "attachment";
|
|
207
238
|
table: "table";
|
|
239
|
+
agent: "agent";
|
|
208
240
|
}>;
|
|
209
241
|
title: z.ZodString;
|
|
210
242
|
description: z.ZodNullable<z.ZodString>;
|
|
@@ -222,33 +254,37 @@ export declare const KnowledgeAttachment: z.ZodObject<{
|
|
|
222
254
|
mediaType: z.ZodString;
|
|
223
255
|
contentHash: z.ZodString;
|
|
224
256
|
size: z.ZodNumber;
|
|
257
|
+
segment: z.ZodNullable<z.ZodEnum<{
|
|
258
|
+
append: "append";
|
|
259
|
+
snapshot: "snapshot";
|
|
260
|
+
}>>;
|
|
225
261
|
createdBy: z.ZodString;
|
|
226
262
|
createdAt: z.ZodISODateTime;
|
|
227
263
|
}, z.core.$strict>;
|
|
228
264
|
resourceUri: z.ZodString;
|
|
229
265
|
}, z.core.$strict>;
|
|
230
|
-
export type
|
|
266
|
+
export type NodeAttachment = z.infer<typeof NodeAttachment>;
|
|
231
267
|
export declare const TableMediaType = "text/csv";
|
|
232
268
|
export declare const TableColumn: z.ZodString;
|
|
233
269
|
export declare const TableCell: z.ZodString;
|
|
234
270
|
export declare const TableRow: z.ZodArray<z.ZodString>;
|
|
235
|
-
export declare const
|
|
271
|
+
export declare const DefineTableInput: z.ZodObject<{
|
|
236
272
|
nodeId: z.ZodString;
|
|
237
273
|
columns: z.ZodArray<z.ZodString>;
|
|
238
274
|
idempotencyKey: z.ZodString;
|
|
239
275
|
}, z.core.$strict>;
|
|
240
|
-
export type
|
|
241
|
-
export declare const
|
|
276
|
+
export type DefineTableInput = z.infer<typeof DefineTableInput>;
|
|
277
|
+
export declare const AppendTableRowsInput: z.ZodObject<{
|
|
242
278
|
nodeId: z.ZodString;
|
|
243
279
|
rows: z.ZodArray<z.ZodArray<z.ZodString>>;
|
|
244
280
|
idempotencyKey: z.ZodString;
|
|
245
281
|
}, z.core.$strict>;
|
|
246
|
-
export type
|
|
247
|
-
export declare const
|
|
282
|
+
export type AppendTableRowsInput = z.infer<typeof AppendTableRowsInput>;
|
|
283
|
+
export declare const GetTableInput: z.ZodObject<{
|
|
248
284
|
nodeId: z.ZodString;
|
|
249
285
|
}, z.core.$strict>;
|
|
250
|
-
export type
|
|
251
|
-
export declare const
|
|
286
|
+
export type GetTableInput = z.infer<typeof GetTableInput>;
|
|
287
|
+
export declare const NodeTable: z.ZodObject<{
|
|
252
288
|
node: z.ZodObject<{
|
|
253
289
|
id: z.ZodString;
|
|
254
290
|
parentId: z.ZodNullable<z.ZodString>;
|
|
@@ -257,6 +293,7 @@ export declare const KnowledgeTable: z.ZodObject<{
|
|
|
257
293
|
document: "document";
|
|
258
294
|
attachment: "attachment";
|
|
259
295
|
table: "table";
|
|
296
|
+
agent: "agent";
|
|
260
297
|
}>;
|
|
261
298
|
title: z.ZodString;
|
|
262
299
|
description: z.ZodNullable<z.ZodString>;
|
|
@@ -270,8 +307,8 @@ export declare const KnowledgeTable: z.ZodObject<{
|
|
|
270
307
|
rows: z.ZodArray<z.ZodArray<z.ZodString>>;
|
|
271
308
|
versionId: z.ZodNullable<z.ZodString>;
|
|
272
309
|
}, z.core.$strict>;
|
|
273
|
-
export type
|
|
274
|
-
export declare const
|
|
310
|
+
export type NodeTable = z.infer<typeof NodeTable>;
|
|
311
|
+
export declare const AppendTableRowsResult: z.ZodObject<{
|
|
275
312
|
node: z.ZodObject<{
|
|
276
313
|
id: z.ZodString;
|
|
277
314
|
parentId: z.ZodNullable<z.ZodString>;
|
|
@@ -280,6 +317,7 @@ export declare const AppendKnowledgeTableRowsResult: z.ZodObject<{
|
|
|
280
317
|
document: "document";
|
|
281
318
|
attachment: "attachment";
|
|
282
319
|
table: "table";
|
|
320
|
+
agent: "agent";
|
|
283
321
|
}>;
|
|
284
322
|
title: z.ZodString;
|
|
285
323
|
description: z.ZodNullable<z.ZodString>;
|
|
@@ -297,25 +335,498 @@ export declare const AppendKnowledgeTableRowsResult: z.ZodObject<{
|
|
|
297
335
|
mediaType: z.ZodString;
|
|
298
336
|
contentHash: z.ZodString;
|
|
299
337
|
size: z.ZodNumber;
|
|
338
|
+
segment: z.ZodNullable<z.ZodEnum<{
|
|
339
|
+
append: "append";
|
|
340
|
+
snapshot: "snapshot";
|
|
341
|
+
}>>;
|
|
300
342
|
createdBy: z.ZodString;
|
|
301
343
|
createdAt: z.ZodISODateTime;
|
|
302
344
|
}, z.core.$strict>;
|
|
303
345
|
appended: z.ZodNumber;
|
|
304
346
|
}, z.core.$strict>;
|
|
305
|
-
export type
|
|
306
|
-
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<{
|
|
307
818
|
references: "references";
|
|
308
819
|
related: "related";
|
|
309
820
|
depends_on: "depends_on";
|
|
310
821
|
implements: "implements";
|
|
311
822
|
}>;
|
|
312
|
-
export type
|
|
313
|
-
export declare const
|
|
823
|
+
export type NodeLinkRelation = z.infer<typeof NodeLinkRelation>;
|
|
824
|
+
export declare const NodeLinkOrigin: z.ZodEnum<{
|
|
314
825
|
text: "text";
|
|
315
826
|
manual: "manual";
|
|
316
827
|
}>;
|
|
317
|
-
export type
|
|
318
|
-
export declare const
|
|
828
|
+
export type NodeLinkOrigin = z.infer<typeof NodeLinkOrigin>;
|
|
829
|
+
export declare const NodeLink: z.ZodObject<{
|
|
319
830
|
id: z.ZodString;
|
|
320
831
|
sourceNodeId: z.ZodString;
|
|
321
832
|
targetNodeId: z.ZodString;
|
|
@@ -333,8 +844,8 @@ export declare const KnowledgeLink: z.ZodObject<{
|
|
|
333
844
|
createdBy: z.ZodString;
|
|
334
845
|
createdAt: z.ZodISODateTime;
|
|
335
846
|
}, z.core.$strict>;
|
|
336
|
-
export type
|
|
337
|
-
export declare const
|
|
847
|
+
export type NodeLink = z.infer<typeof NodeLink>;
|
|
848
|
+
export declare const NodeLinkList: z.ZodObject<{
|
|
338
849
|
items: z.ZodArray<z.ZodObject<{
|
|
339
850
|
id: z.ZodString;
|
|
340
851
|
sourceNodeId: z.ZodString;
|
|
@@ -354,29 +865,29 @@ export declare const KnowledgeLinkList: z.ZodObject<{
|
|
|
354
865
|
createdAt: z.ZodISODateTime;
|
|
355
866
|
}, z.core.$strict>>;
|
|
356
867
|
}, z.core.$strict>;
|
|
357
|
-
export type
|
|
868
|
+
export type NodeLinkList = z.infer<typeof NodeLinkList>;
|
|
358
869
|
export declare const DocumentLinkInlineType = "documentLink";
|
|
359
|
-
export declare const
|
|
870
|
+
export declare const ResolveNodeLinksInput: z.ZodObject<{
|
|
360
871
|
nodeIds: z.ZodArray<z.ZodString>;
|
|
361
872
|
}, z.core.$strict>;
|
|
362
|
-
export type
|
|
363
|
-
export declare const
|
|
873
|
+
export type ResolveNodeLinksInput = z.infer<typeof ResolveNodeLinksInput>;
|
|
874
|
+
export declare const ResolvedNodeLink: z.ZodObject<{
|
|
364
875
|
nodeId: z.ZodString;
|
|
365
876
|
title: z.ZodString;
|
|
366
877
|
}, z.core.$strict>;
|
|
367
|
-
export type
|
|
368
|
-
export declare const
|
|
878
|
+
export type ResolvedNodeLink = z.infer<typeof ResolvedNodeLink>;
|
|
879
|
+
export declare const ResolveNodeLinksResult: z.ZodObject<{
|
|
369
880
|
items: z.ZodArray<z.ZodObject<{
|
|
370
881
|
nodeId: z.ZodString;
|
|
371
882
|
title: z.ZodString;
|
|
372
883
|
}, z.core.$strict>>;
|
|
373
884
|
}, z.core.$strict>;
|
|
374
|
-
export type
|
|
375
|
-
export declare const
|
|
885
|
+
export type ResolveNodeLinksResult = z.infer<typeof ResolveNodeLinksResult>;
|
|
886
|
+
export declare const NodeGraphInput: z.ZodObject<{
|
|
376
887
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
377
888
|
}, z.core.$strict>;
|
|
378
|
-
export type
|
|
379
|
-
export declare const
|
|
889
|
+
export type NodeGraphInput = z.infer<typeof NodeGraphInput>;
|
|
890
|
+
export declare const NodeGraph: z.ZodObject<{
|
|
380
891
|
nodes: z.ZodArray<z.ZodObject<{
|
|
381
892
|
id: z.ZodString;
|
|
382
893
|
parentId: z.ZodNullable<z.ZodString>;
|
|
@@ -385,6 +896,7 @@ export declare const KnowledgeGraph: z.ZodObject<{
|
|
|
385
896
|
document: "document";
|
|
386
897
|
attachment: "attachment";
|
|
387
898
|
table: "table";
|
|
899
|
+
agent: "agent";
|
|
388
900
|
}>;
|
|
389
901
|
title: z.ZodString;
|
|
390
902
|
description: z.ZodNullable<z.ZodString>;
|
|
@@ -413,7 +925,7 @@ export declare const KnowledgeGraph: z.ZodObject<{
|
|
|
413
925
|
createdAt: z.ZodISODateTime;
|
|
414
926
|
}, z.core.$strict>>;
|
|
415
927
|
}, z.core.$strict>;
|
|
416
|
-
export type
|
|
928
|
+
export type NodeGraph = z.infer<typeof NodeGraph>;
|
|
417
929
|
export declare const BlockNoteMediaType = "application/vnd.anchrd.intel.blocknote+json";
|
|
418
930
|
export declare const BlockNoteDocument: z.ZodObject<{
|
|
419
931
|
format: z.ZodLiteral<"blocknote">;
|
|
@@ -445,7 +957,7 @@ export declare const ResourceGrant: z.ZodObject<{
|
|
|
445
957
|
createdAt: z.ZodISODateTime;
|
|
446
958
|
}, z.core.$strict>;
|
|
447
959
|
export type ResourceGrant = z.infer<typeof ResourceGrant>;
|
|
448
|
-
export declare const
|
|
960
|
+
export declare const ShareInput: z.ZodObject<{
|
|
449
961
|
resourceId: z.ZodString;
|
|
450
962
|
principal: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
451
963
|
type: z.ZodLiteral<"user">;
|
|
@@ -465,19 +977,19 @@ export declare const ShareKnowledgeInput: z.ZodObject<{
|
|
|
465
977
|
expiresAt: z.ZodDefault<z.ZodNullable<z.ZodISODateTime>>;
|
|
466
978
|
idempotencyKey: z.ZodString;
|
|
467
979
|
}, z.core.$strict>;
|
|
468
|
-
export type
|
|
469
|
-
export declare const
|
|
980
|
+
export type ShareInput = z.infer<typeof ShareInput>;
|
|
981
|
+
export declare const RevokeGrantInput: z.ZodObject<{
|
|
470
982
|
resourceId: z.ZodString;
|
|
471
983
|
grantId: z.ZodString;
|
|
472
984
|
idempotencyKey: z.ZodString;
|
|
473
985
|
}, z.core.$strict>;
|
|
474
|
-
export type
|
|
475
|
-
export declare const
|
|
986
|
+
export type RevokeGrantInput = z.infer<typeof RevokeGrantInput>;
|
|
987
|
+
export declare const UnreadableNodes: z.ZodObject<{
|
|
476
988
|
titles: z.ZodArray<z.ZodString>;
|
|
477
989
|
hidden: z.ZodNumber;
|
|
478
990
|
}, z.core.$strict>;
|
|
479
|
-
export type
|
|
480
|
-
export declare const
|
|
991
|
+
export type UnreadableNodes = z.infer<typeof UnreadableNodes>;
|
|
992
|
+
export declare const ShareResult: z.ZodObject<{
|
|
481
993
|
grant: z.ZodObject<{
|
|
482
994
|
id: z.ZodString;
|
|
483
995
|
resourceId: z.ZodString;
|
|
@@ -505,7 +1017,7 @@ export declare const ShareKnowledgeResult: z.ZodObject<{
|
|
|
505
1017
|
hidden: z.ZodNumber;
|
|
506
1018
|
}, z.core.$strict>;
|
|
507
1019
|
}, z.core.$strict>;
|
|
508
|
-
export type
|
|
1020
|
+
export type ShareResult = z.infer<typeof ShareResult>;
|
|
509
1021
|
export declare const ResourceGrantList: z.ZodObject<{
|
|
510
1022
|
resourceId: z.ZodString;
|
|
511
1023
|
applicableVerbs: z.ZodArray<z.ZodEnum<{
|
|
@@ -538,12 +1050,13 @@ export declare const ResourceGrantList: z.ZodObject<{
|
|
|
538
1050
|
}, z.core.$strict>>;
|
|
539
1051
|
}, z.core.$strict>;
|
|
540
1052
|
export type ResourceGrantList = z.infer<typeof ResourceGrantList>;
|
|
541
|
-
export declare const
|
|
1053
|
+
export declare const SearchInput: z.ZodObject<{
|
|
542
1054
|
query: z.ZodString;
|
|
543
1055
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
1056
|
+
scopeId: z.ZodOptional<z.ZodString>;
|
|
544
1057
|
}, z.core.$strict>;
|
|
545
|
-
export type
|
|
546
|
-
export declare const
|
|
1058
|
+
export type SearchInput = z.infer<typeof SearchInput>;
|
|
1059
|
+
export declare const NodeCitation: z.ZodObject<{
|
|
547
1060
|
nodeId: z.ZodString;
|
|
548
1061
|
versionId: z.ZodString;
|
|
549
1062
|
title: z.ZodString;
|
|
@@ -557,8 +1070,8 @@ export declare const KnowledgeCitation: z.ZodObject<{
|
|
|
557
1070
|
hybrid: "hybrid";
|
|
558
1071
|
}>;
|
|
559
1072
|
}, z.core.$strict>;
|
|
560
|
-
export type
|
|
561
|
-
export declare const
|
|
1073
|
+
export type NodeCitation = z.infer<typeof NodeCitation>;
|
|
1074
|
+
export declare const SearchResult: z.ZodObject<{
|
|
562
1075
|
items: z.ZodArray<z.ZodObject<{
|
|
563
1076
|
nodeId: z.ZodString;
|
|
564
1077
|
versionId: z.ZodString;
|
|
@@ -574,11 +1087,11 @@ export declare const SearchKnowledgeResult: z.ZodObject<{
|
|
|
574
1087
|
}>;
|
|
575
1088
|
}, z.core.$strict>>;
|
|
576
1089
|
}, z.core.$strict>;
|
|
577
|
-
export type
|
|
578
|
-
export declare const
|
|
1090
|
+
export type SearchResult = z.infer<typeof SearchResult>;
|
|
1091
|
+
export declare const ReindexResult: z.ZodObject<{
|
|
579
1092
|
queued: z.ZodNumber;
|
|
580
1093
|
}, z.core.$strict>;
|
|
581
|
-
export type
|
|
1094
|
+
export type ReindexResult = z.infer<typeof ReindexResult>;
|
|
582
1095
|
export declare const RevokeGrantResult: z.ZodObject<{
|
|
583
1096
|
revoked: z.ZodBoolean;
|
|
584
1097
|
}, z.core.$strict>;
|
|
@@ -1263,6 +1776,32 @@ export declare const FlowDocument: z.ZodObject<{
|
|
|
1263
1776
|
}, z.core.$strict>>;
|
|
1264
1777
|
}, z.core.$strict>;
|
|
1265
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>;
|
|
1266
1805
|
export declare const FlowList: z.ZodObject<{
|
|
1267
1806
|
items: z.ZodArray<z.ZodObject<{
|
|
1268
1807
|
id: z.ZodString;
|
|
@@ -1279,19 +1818,19 @@ export declare const FlowList: z.ZodObject<{
|
|
|
1279
1818
|
withCalls: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1280
1819
|
}, z.core.$strict>;
|
|
1281
1820
|
export type FlowList = z.infer<typeof FlowList>;
|
|
1282
|
-
export declare const
|
|
1821
|
+
export declare const ReferencedNode: z.ZodObject<{
|
|
1283
1822
|
id: z.ZodString;
|
|
1284
1823
|
title: z.ZodString;
|
|
1285
1824
|
}, z.core.$strict>;
|
|
1286
|
-
export type
|
|
1825
|
+
export type ReferencedNode = z.infer<typeof ReferencedNode>;
|
|
1287
1826
|
export declare const FlowRequirements: z.ZodObject<{
|
|
1288
1827
|
flowId: z.ZodString;
|
|
1289
1828
|
versionId: z.ZodNullable<z.ZodString>;
|
|
1290
|
-
|
|
1829
|
+
nodes: z.ZodArray<z.ZodObject<{
|
|
1291
1830
|
id: z.ZodString;
|
|
1292
1831
|
title: z.ZodString;
|
|
1293
1832
|
}, z.core.$strict>>;
|
|
1294
|
-
|
|
1833
|
+
hiddenNodes: z.ZodNumber;
|
|
1295
1834
|
tools: z.ZodArray<z.ZodString>;
|
|
1296
1835
|
}, z.core.$strict>;
|
|
1297
1836
|
export type FlowRequirements = z.infer<typeof FlowRequirements>;
|
|
@@ -1483,6 +2022,11 @@ export declare const PublishFlowInput: z.ZodObject<{
|
|
|
1483
2022
|
idempotencyKey: z.ZodString;
|
|
1484
2023
|
}, z.core.$strict>;
|
|
1485
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>;
|
|
1486
2030
|
export declare const PreviewFlowPublishInput: z.ZodObject<{
|
|
1487
2031
|
flowId: z.ZodString;
|
|
1488
2032
|
versionId: z.ZodString;
|
|
@@ -1529,6 +2073,7 @@ export declare const RelationNodeKind: z.ZodEnum<{
|
|
|
1529
2073
|
document: "document";
|
|
1530
2074
|
attachment: "attachment";
|
|
1531
2075
|
table: "table";
|
|
2076
|
+
agent: "agent";
|
|
1532
2077
|
flow: "flow";
|
|
1533
2078
|
}>;
|
|
1534
2079
|
export type RelationNodeKind = z.infer<typeof RelationNodeKind>;
|
|
@@ -1539,6 +2084,7 @@ export declare const RelationNode: z.ZodObject<{
|
|
|
1539
2084
|
document: "document";
|
|
1540
2085
|
attachment: "attachment";
|
|
1541
2086
|
table: "table";
|
|
2087
|
+
agent: "agent";
|
|
1542
2088
|
flow: "flow";
|
|
1543
2089
|
}>;
|
|
1544
2090
|
title: z.ZodString;
|
|
@@ -1589,6 +2135,7 @@ export declare const RelationGraph: z.ZodObject<{
|
|
|
1589
2135
|
document: "document";
|
|
1590
2136
|
attachment: "attachment";
|
|
1591
2137
|
table: "table";
|
|
2138
|
+
agent: "agent";
|
|
1592
2139
|
flow: "flow";
|
|
1593
2140
|
}>;
|
|
1594
2141
|
title: z.ZodString;
|
|
@@ -1812,6 +2359,11 @@ export declare const GetFlowRunInput: z.ZodObject<{
|
|
|
1812
2359
|
runId: z.ZodString;
|
|
1813
2360
|
}, z.core.$strict>;
|
|
1814
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>;
|
|
1815
2367
|
export declare const CompleteFlowRunStepInput: z.ZodObject<{
|
|
1816
2368
|
runId: z.ZodString;
|
|
1817
2369
|
nodeId: z.ZodString;
|
|
@@ -1947,3 +2499,70 @@ export declare const FlowRunHistory: z.ZodObject<{
|
|
|
1947
2499
|
}, z.core.$strict>>;
|
|
1948
2500
|
}, z.core.$strict>;
|
|
1949
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>;
|