@anchrd/intel-contract 0.4.1 → 0.4.2
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.
|
@@ -73,6 +73,7 @@ export type KnowledgeVersion = z.infer<typeof KnowledgeVersion>;
|
|
|
73
73
|
export declare const ListKnowledgeNodesInput: z.ZodObject<{
|
|
74
74
|
parentId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
75
75
|
includeArchived: z.ZodDefault<z.ZodBoolean>;
|
|
76
|
+
archivedOnly: z.ZodOptional<z.ZodBoolean>;
|
|
76
77
|
}, z.core.$strict>;
|
|
77
78
|
export type ListKnowledgeNodesInput = z.infer<typeof ListKnowledgeNodesInput>;
|
|
78
79
|
export declare const GetKnowledgeNodeInput: z.ZodObject<{
|
|
@@ -1330,6 +1331,7 @@ export type ArchiveFlowInput = z.infer<typeof ArchiveFlowInput>;
|
|
|
1330
1331
|
export declare const ListFlowsInput: z.ZodObject<{
|
|
1331
1332
|
parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1332
1333
|
includeArchived: z.ZodOptional<z.ZodBoolean>;
|
|
1334
|
+
archivedOnly: z.ZodOptional<z.ZodBoolean>;
|
|
1333
1335
|
}, z.core.$strict>;
|
|
1334
1336
|
export type ListFlowsInput = z.infer<typeof ListFlowsInput>;
|
|
1335
1337
|
export declare const GetFlowInput: z.ZodObject<{
|
|
@@ -60,6 +60,14 @@ export const KnowledgeVersion = z.strictObject({
|
|
|
60
60
|
export const ListKnowledgeNodesInput = z.strictObject({
|
|
61
61
|
parentId: IntelId.nullable().default(null),
|
|
62
62
|
includeArchived: z.boolean().default(false),
|
|
63
|
+
// ⚠️ Overrides `parentId` rather than narrowing beside it: what is archived is asked for across
|
|
64
|
+
// the whole tree, because that is the only useful question. Somebody looking for what they threw
|
|
65
|
+
// away does not know which folder it was in — if they did, they would not be looking (#113).
|
|
66
|
+
// A separate flag rather than a third state on `includeArchived`, so no existing caller changes
|
|
67
|
+
// meaning — and `.optional()` rather than `.default(false)` for the same reason `ListFlowsInput`
|
|
68
|
+
// carries it that way: a default makes the field required in the PARSED type, and every existing
|
|
69
|
+
// caller would have to answer a question it is not asking.
|
|
70
|
+
archivedOnly: z.boolean().optional(),
|
|
63
71
|
});
|
|
64
72
|
export const GetKnowledgeNodeInput = z.strictObject({ nodeId: IntelId });
|
|
65
73
|
export const ListKnowledgeGrantsInput = z.strictObject({ resourceId: IntelId });
|
|
@@ -627,6 +635,8 @@ export const ListFlowsInput = z.strictObject({
|
|
|
627
635
|
// *parsed* type — every existing caller that lists a folder would have to spell out the answer to
|
|
628
636
|
// a question it is not asking. Absent means "without the archive" everywhere it is read.
|
|
629
637
|
includeArchived: z.boolean().optional(),
|
|
638
|
+
// The same question for flows, and the same override of `parentId` — see `ListKnowledgeNodesInput`.
|
|
639
|
+
archivedOnly: z.boolean().optional(),
|
|
630
640
|
});
|
|
631
641
|
export const GetFlowInput = z.strictObject({ flowId: IntelId });
|
|
632
642
|
export const SaveFlowVersionInput = z.strictObject({
|