@tenphi/akno-protocol 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +83 -0
- package/README.md +26 -0
- package/dist/common.d.ts +1553 -0
- package/dist/common.d.ts.map +1 -0
- package/dist/common.js +309 -0
- package/dist/common.js.map +1 -0
- package/dist/errors.d.ts +24 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +69 -0
- package/dist/errors.js.map +1 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +16 -0
- package/dist/index.js.map +1 -0
- package/dist/ops/answer.d.ts +207 -0
- package/dist/ops/answer.d.ts.map +1 -0
- package/dist/ops/answer.js +90 -0
- package/dist/ops/answer.js.map +1 -0
- package/dist/ops/context.d.ts +845 -0
- package/dist/ops/context.d.ts.map +1 -0
- package/dist/ops/context.js +82 -0
- package/dist/ops/context.js.map +1 -0
- package/dist/ops/folder.d.ts +85 -0
- package/dist/ops/folder.d.ts.map +1 -0
- package/dist/ops/folder.js +56 -0
- package/dist/ops/folder.js.map +1 -0
- package/dist/ops/graph.d.ts +352 -0
- package/dist/ops/graph.d.ts.map +1 -0
- package/dist/ops/graph.js +63 -0
- package/dist/ops/graph.js.map +1 -0
- package/dist/ops/list.d.ts +136 -0
- package/dist/ops/list.d.ts.map +1 -0
- package/dist/ops/list.js +57 -0
- package/dist/ops/list.js.map +1 -0
- package/dist/ops/mutate.d.ts +432 -0
- package/dist/ops/mutate.d.ts.map +1 -0
- package/dist/ops/mutate.js +234 -0
- package/dist/ops/mutate.js.map +1 -0
- package/dist/ops/read.d.ts +242 -0
- package/dist/ops/read.d.ts.map +1 -0
- package/dist/ops/read.js +65 -0
- package/dist/ops/read.js.map +1 -0
- package/dist/ops/recall.d.ts +531 -0
- package/dist/ops/recall.d.ts.map +1 -0
- package/dist/ops/recall.js +59 -0
- package/dist/ops/recall.js.map +1 -0
- package/dist/ops/timeline.d.ts +264 -0
- package/dist/ops/timeline.d.ts.map +1 -0
- package/dist/ops/timeline.js +68 -0
- package/dist/ops/timeline.js.map +1 -0
- package/dist/ops/write.d.ts +182 -0
- package/dist/ops/write.d.ts.map +1 -0
- package/dist/ops/write.js +114 -0
- package/dist/ops/write.js.map +1 -0
- package/dist/registry.d.ts +2657 -0
- package/dist/registry.d.ts.map +1 -0
- package/dist/registry.js +191 -0
- package/dist/registry.js.map +1 -0
- package/dist/version.d.ts +14 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +14 -0
- package/dist/version.js.map +1 -0
- package/dist/wire.d.ts +112 -0
- package/dist/wire.d.ts.map +1 -0
- package/dist/wire.js +102 -0
- package/dist/wire.js.map +1 -0
- package/package.json +38 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph.js","sourceRoot":"","sources":["../../src/ops/graph.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,oBAAoB,EAAE,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAEjG,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC;AAG5D,mFAAmF;AACnF,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC;KACxB,MAAM,CAAC;IACN,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACzC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC3C,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC1C,SAAS,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AoB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;CACtD,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC;CAClC,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,WAAW,GAAG,cAAc,CAAC,MAAM,CAAC;IAC/C,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC;IACzB,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC;IAC5B,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC;IAC5B,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC;IACzB,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC;IACpC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IACrC,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE;IACtB,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,gBAAgB,EAAE,UAAU,EAAE,wBAAwB,CAAC,CAAC,CAAC,QAAQ,EAAE;CACpF,CAAC,CAAC;AAGH,OAAO,EAAE,oBAAoB,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/** Browse structure: folders, or pages by type / tag / role / recency. */
|
|
3
|
+
export declare const ListInput: z.ZodObject<{
|
|
4
|
+
folder: z.ZodOptional<z.ZodString>;
|
|
5
|
+
type: z.ZodOptional<z.ZodString>;
|
|
6
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
7
|
+
role: z.ZodOptional<z.ZodEnum<{
|
|
8
|
+
knowledge: "knowledge";
|
|
9
|
+
source: "source";
|
|
10
|
+
inference: "inference";
|
|
11
|
+
ignored: "ignored";
|
|
12
|
+
}>>;
|
|
13
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
14
|
+
pages: "pages";
|
|
15
|
+
folders: "folders";
|
|
16
|
+
tree: "tree";
|
|
17
|
+
}>>;
|
|
18
|
+
order: z.ZodOptional<z.ZodEnum<{
|
|
19
|
+
slug: "slug";
|
|
20
|
+
recent: "recent";
|
|
21
|
+
size: "size";
|
|
22
|
+
}>>;
|
|
23
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
24
|
+
depth: z.ZodOptional<z.ZodNumber>;
|
|
25
|
+
}, z.core.$strip>;
|
|
26
|
+
export type ListInput = z.infer<typeof ListInput>;
|
|
27
|
+
export declare const PageStub: z.ZodObject<{
|
|
28
|
+
slug: z.ZodString;
|
|
29
|
+
title: z.ZodString;
|
|
30
|
+
type: z.ZodNullable<z.ZodString>;
|
|
31
|
+
role: z.ZodEnum<{
|
|
32
|
+
knowledge: "knowledge";
|
|
33
|
+
source: "source";
|
|
34
|
+
inference: "inference";
|
|
35
|
+
ignored: "ignored";
|
|
36
|
+
}>;
|
|
37
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
38
|
+
summary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
|
+
updated: z.ZodOptional<z.ZodString>;
|
|
40
|
+
bytes: z.ZodOptional<z.ZodNumber>;
|
|
41
|
+
}, z.core.$strip>;
|
|
42
|
+
export type PageStub = z.infer<typeof PageStub>;
|
|
43
|
+
export declare const FolderStub: z.ZodObject<{
|
|
44
|
+
path: z.ZodString;
|
|
45
|
+
pages: z.ZodNumber;
|
|
46
|
+
pages_deep: z.ZodNumber;
|
|
47
|
+
folders: z.ZodNumber;
|
|
48
|
+
rule: z.ZodOptional<z.ZodObject<{
|
|
49
|
+
role: z.ZodOptional<z.ZodEnum<{
|
|
50
|
+
knowledge: "knowledge";
|
|
51
|
+
source: "source";
|
|
52
|
+
inference: "inference";
|
|
53
|
+
ignored: "ignored";
|
|
54
|
+
}>>;
|
|
55
|
+
remember: z.ZodOptional<z.ZodEnum<{
|
|
56
|
+
deny: "deny";
|
|
57
|
+
integrate: "integrate";
|
|
58
|
+
}>>;
|
|
59
|
+
description: z.ZodOptional<z.ZodString>;
|
|
60
|
+
source: z.ZodString;
|
|
61
|
+
}, z.core.$strip>>;
|
|
62
|
+
declared: z.ZodOptional<z.ZodBoolean>;
|
|
63
|
+
}, z.core.$strip>;
|
|
64
|
+
export type FolderStub = z.infer<typeof FolderStub>;
|
|
65
|
+
export declare const ListOutput: z.ZodObject<{
|
|
66
|
+
status: z.ZodEnum<{
|
|
67
|
+
ok: "ok";
|
|
68
|
+
empty: "empty";
|
|
69
|
+
degraded: "degraded";
|
|
70
|
+
unavailable: "unavailable";
|
|
71
|
+
}>;
|
|
72
|
+
degraded: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
73
|
+
no_embedding_model: "no_embedding_model";
|
|
74
|
+
no_reranker: "no_reranker";
|
|
75
|
+
no_derive_model: "no_derive_model";
|
|
76
|
+
no_expansion_model: "no_expansion_model";
|
|
77
|
+
embedding_failed: "embedding_failed";
|
|
78
|
+
rerank_failed: "rerank_failed";
|
|
79
|
+
derive_failed: "derive_failed";
|
|
80
|
+
expansion_failed: "expansion_failed";
|
|
81
|
+
no_vector_index: "no_vector_index";
|
|
82
|
+
partial_index: "partial_index";
|
|
83
|
+
no_document_text: "no_document_text";
|
|
84
|
+
document_source_missing: "document_source_missing";
|
|
85
|
+
no_graph_index: "no_graph_index";
|
|
86
|
+
no_entity_index: "no_entity_index";
|
|
87
|
+
entity_resolution_failed: "entity_resolution_failed";
|
|
88
|
+
partial_graph_index: "partial_graph_index";
|
|
89
|
+
graph_traversal_limited: "graph_traversal_limited";
|
|
90
|
+
no_answer_model: "no_answer_model";
|
|
91
|
+
answer_failed: "answer_failed";
|
|
92
|
+
answer_verification_failed: "answer_verification_failed";
|
|
93
|
+
answer_truncated: "answer_truncated";
|
|
94
|
+
}>>>;
|
|
95
|
+
note: z.ZodOptional<z.ZodString>;
|
|
96
|
+
folders: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
97
|
+
path: z.ZodString;
|
|
98
|
+
pages: z.ZodNumber;
|
|
99
|
+
pages_deep: z.ZodNumber;
|
|
100
|
+
folders: z.ZodNumber;
|
|
101
|
+
rule: z.ZodOptional<z.ZodObject<{
|
|
102
|
+
role: z.ZodOptional<z.ZodEnum<{
|
|
103
|
+
knowledge: "knowledge";
|
|
104
|
+
source: "source";
|
|
105
|
+
inference: "inference";
|
|
106
|
+
ignored: "ignored";
|
|
107
|
+
}>>;
|
|
108
|
+
remember: z.ZodOptional<z.ZodEnum<{
|
|
109
|
+
deny: "deny";
|
|
110
|
+
integrate: "integrate";
|
|
111
|
+
}>>;
|
|
112
|
+
description: z.ZodOptional<z.ZodString>;
|
|
113
|
+
source: z.ZodString;
|
|
114
|
+
}, z.core.$strip>>;
|
|
115
|
+
declared: z.ZodOptional<z.ZodBoolean>;
|
|
116
|
+
}, z.core.$strip>>>;
|
|
117
|
+
pages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
118
|
+
slug: z.ZodString;
|
|
119
|
+
title: z.ZodString;
|
|
120
|
+
type: z.ZodNullable<z.ZodString>;
|
|
121
|
+
role: z.ZodEnum<{
|
|
122
|
+
knowledge: "knowledge";
|
|
123
|
+
source: "source";
|
|
124
|
+
inference: "inference";
|
|
125
|
+
ignored: "ignored";
|
|
126
|
+
}>;
|
|
127
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
128
|
+
summary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
129
|
+
updated: z.ZodOptional<z.ZodString>;
|
|
130
|
+
bytes: z.ZodOptional<z.ZodNumber>;
|
|
131
|
+
}, z.core.$strip>>>;
|
|
132
|
+
tree: z.ZodOptional<z.ZodString>;
|
|
133
|
+
total: z.ZodNumber;
|
|
134
|
+
}, z.core.$strip>;
|
|
135
|
+
export type ListOutput = z.infer<typeof ListOutput>;
|
|
136
|
+
//# sourceMappingURL=list.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../src/ops/list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,0EAA0E;AAC1E,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;iBAWpB,CAAC;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC,CAAC;AAElD,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;iBASnB,CAAC;AACH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC;AAEhD,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;iBAuBrB,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAEpD,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMrB,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC"}
|
package/dist/ops/list.js
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { PageRole, ResultEnvelope } from "../common.js";
|
|
3
|
+
/** Browse structure: folders, or pages by type / tag / role / recency. */
|
|
4
|
+
export const ListInput = z.object({
|
|
5
|
+
folder: z.string().optional(),
|
|
6
|
+
type: z.string().optional(),
|
|
7
|
+
tag: z.string().optional(),
|
|
8
|
+
role: PageRole.optional(),
|
|
9
|
+
/** `folders` walks the tree one level; `pages` lists page stubs. */
|
|
10
|
+
kind: z.enum(['folders', 'pages', 'tree']).optional(),
|
|
11
|
+
order: z.enum(['recent', 'slug', 'size']).optional(),
|
|
12
|
+
limit: z.number().int().positive().max(2000).optional(),
|
|
13
|
+
/** Depth for `tree`. 1 is the top level. */
|
|
14
|
+
depth: z.number().int().positive().max(12).optional(),
|
|
15
|
+
});
|
|
16
|
+
export const PageStub = z.object({
|
|
17
|
+
slug: z.string(),
|
|
18
|
+
title: z.string(),
|
|
19
|
+
type: z.string().nullable(),
|
|
20
|
+
role: PageRole,
|
|
21
|
+
tags: z.array(z.string()).optional(),
|
|
22
|
+
summary: z.string().nullable().optional(),
|
|
23
|
+
updated: z.string().optional(),
|
|
24
|
+
bytes: z.number().int().nonnegative().optional(),
|
|
25
|
+
});
|
|
26
|
+
export const FolderStub = z.object({
|
|
27
|
+
path: z.string(),
|
|
28
|
+
pages: z.number().int().nonnegative(),
|
|
29
|
+
/** Total including subfolders — the useful number when deciding where to look. */
|
|
30
|
+
pages_deep: z.number().int().nonnegative(),
|
|
31
|
+
folders: z.number().int().nonnegative(),
|
|
32
|
+
/** The rule that governs this folder, and where it came from. */
|
|
33
|
+
rule: z
|
|
34
|
+
.object({
|
|
35
|
+
role: PageRole.optional(),
|
|
36
|
+
remember: z.enum(['deny', 'integrate']).optional(),
|
|
37
|
+
/**
|
|
38
|
+
* What belongs in this folder, as its rule states it. This is the field that lets a
|
|
39
|
+
* caller choose a destination by reading rather than by guessing from a name: `research`
|
|
40
|
+
* and `household` are not self-explanatory to anyone who has not been told that one
|
|
41
|
+
* holds findings about the world and the other holds claims about this household.
|
|
42
|
+
*/
|
|
43
|
+
description: z.string().optional(),
|
|
44
|
+
source: z.string(),
|
|
45
|
+
})
|
|
46
|
+
.optional(),
|
|
47
|
+
/** True when the folder is declared but holds no page yet. */
|
|
48
|
+
declared: z.boolean().optional(),
|
|
49
|
+
});
|
|
50
|
+
export const ListOutput = ResultEnvelope.extend({
|
|
51
|
+
folders: z.array(FolderStub).optional(),
|
|
52
|
+
pages: z.array(PageStub).optional(),
|
|
53
|
+
/** Indented outline, for the structure section of a `context` bundle. */
|
|
54
|
+
tree: z.string().optional(),
|
|
55
|
+
total: z.number().int().nonnegative(),
|
|
56
|
+
});
|
|
57
|
+
//# sourceMappingURL=list.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../src/ops/list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAExD,0EAA0E;AAC1E,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,CAAC,MAAM,CAAC;IAChC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1B,IAAI,EAAE,QAAQ,CAAC,QAAQ,EAAE;IACzB,oEAAoE;IACpE,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,QAAQ,EAAE;IACrD,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,QAAQ,EAAE;IACpD,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE;IACvD,4CAA4C;IAC5C,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;C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C,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;KACnB,CAAC;SACD,QAAQ,EAAE;IACb,8DAA8D;IAC9D,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CACjC,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,UAAU,GAAG,cAAc,CAAC,MAAM,CAAC;IAC9C,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,QAAQ,EAAE;IACvC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,QAAQ,EAAE;IACnC,yEAAyE;IACzE,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;CACtC,CAAC,CAAC"}
|
|
@@ -0,0 +1,432 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Hand over a transcript or notes; Akno runs the retain mission with its
|
|
4
|
+
* own model and produces the writes itself. The answer for a host that does not
|
|
5
|
+
* want to build a curator. An agent that wants control uses `write`.
|
|
6
|
+
*/
|
|
7
|
+
export declare const RememberInput: z.ZodObject<{
|
|
8
|
+
text: z.ZodString;
|
|
9
|
+
source: z.ZodOptional<z.ZodString>;
|
|
10
|
+
mission: z.ZodOptional<z.ZodString>;
|
|
11
|
+
dry_run: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
export type RememberInput = z.infer<typeof RememberInput>;
|
|
14
|
+
export declare const RememberOutput: z.ZodObject<{
|
|
15
|
+
status: z.ZodEnum<{
|
|
16
|
+
ok: "ok";
|
|
17
|
+
empty: "empty";
|
|
18
|
+
degraded: "degraded";
|
|
19
|
+
unavailable: "unavailable";
|
|
20
|
+
}>;
|
|
21
|
+
degraded: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
22
|
+
no_embedding_model: "no_embedding_model";
|
|
23
|
+
no_reranker: "no_reranker";
|
|
24
|
+
no_derive_model: "no_derive_model";
|
|
25
|
+
no_expansion_model: "no_expansion_model";
|
|
26
|
+
embedding_failed: "embedding_failed";
|
|
27
|
+
rerank_failed: "rerank_failed";
|
|
28
|
+
derive_failed: "derive_failed";
|
|
29
|
+
expansion_failed: "expansion_failed";
|
|
30
|
+
no_vector_index: "no_vector_index";
|
|
31
|
+
partial_index: "partial_index";
|
|
32
|
+
no_document_text: "no_document_text";
|
|
33
|
+
document_source_missing: "document_source_missing";
|
|
34
|
+
no_graph_index: "no_graph_index";
|
|
35
|
+
no_entity_index: "no_entity_index";
|
|
36
|
+
entity_resolution_failed: "entity_resolution_failed";
|
|
37
|
+
partial_graph_index: "partial_graph_index";
|
|
38
|
+
graph_traversal_limited: "graph_traversal_limited";
|
|
39
|
+
no_answer_model: "no_answer_model";
|
|
40
|
+
answer_failed: "answer_failed";
|
|
41
|
+
answer_verification_failed: "answer_verification_failed";
|
|
42
|
+
answer_truncated: "answer_truncated";
|
|
43
|
+
}>>>;
|
|
44
|
+
note: z.ZodOptional<z.ZodString>;
|
|
45
|
+
outcome: z.ZodEnum<{
|
|
46
|
+
ok: "ok";
|
|
47
|
+
requires_approval: "requires_approval";
|
|
48
|
+
no_writable_destination: "no_writable_destination";
|
|
49
|
+
requires_folder: "requires_folder";
|
|
50
|
+
noop: "noop";
|
|
51
|
+
}>;
|
|
52
|
+
change_id: z.ZodOptional<z.ZodString>;
|
|
53
|
+
wrote: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
54
|
+
slug: z.ZodString;
|
|
55
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
56
|
+
action: z.ZodEnum<{
|
|
57
|
+
event: "event";
|
|
58
|
+
superseded: "superseded";
|
|
59
|
+
created: "created";
|
|
60
|
+
appended: "appended";
|
|
61
|
+
patched: "patched";
|
|
62
|
+
replaced: "replaced";
|
|
63
|
+
attached: "attached";
|
|
64
|
+
}>;
|
|
65
|
+
}, z.core.$strip>>>;
|
|
66
|
+
facts: z.ZodOptional<z.ZodObject<{
|
|
67
|
+
retired: z.ZodNumber;
|
|
68
|
+
added: z.ZodNumber;
|
|
69
|
+
}, z.core.$strip>>;
|
|
70
|
+
approvals: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
71
|
+
proposal_id: z.ZodString;
|
|
72
|
+
reason: z.ZodString;
|
|
73
|
+
reason_code: z.ZodOptional<z.ZodEnum<{
|
|
74
|
+
conflict: "conflict";
|
|
75
|
+
routing_uncertain: "routing_uncertain";
|
|
76
|
+
no_writable_destination: "no_writable_destination";
|
|
77
|
+
}>>;
|
|
78
|
+
nearest: z.ZodArray<z.ZodString>;
|
|
79
|
+
}, z.core.$strip>>>;
|
|
80
|
+
requires_folder: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
81
|
+
folder: z.ZodString;
|
|
82
|
+
nearest: z.ZodArray<z.ZodString>;
|
|
83
|
+
}, z.core.$strip>>>;
|
|
84
|
+
fallback: z.ZodOptional<z.ZodObject<{
|
|
85
|
+
slug: z.ZodString;
|
|
86
|
+
status: z.ZodEnum<{
|
|
87
|
+
unavailable: "unavailable";
|
|
88
|
+
used: "used";
|
|
89
|
+
}>;
|
|
90
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
91
|
+
reserved_path: "reserved_path";
|
|
92
|
+
existing_page_not_admitted: "existing_page_not_admitted";
|
|
93
|
+
unindexed_page_exists: "unindexed_page_exists";
|
|
94
|
+
folder_not_admitted: "folder_not_admitted";
|
|
95
|
+
}>>;
|
|
96
|
+
}, z.core.$strip>>;
|
|
97
|
+
considered: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
98
|
+
claim: z.ZodString;
|
|
99
|
+
kept: z.ZodBoolean;
|
|
100
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
101
|
+
score: z.ZodNumber;
|
|
102
|
+
destination: z.ZodOptional<z.ZodEnum<{
|
|
103
|
+
no_writable_destination: "no_writable_destination";
|
|
104
|
+
existing_admitted_page: "existing_admitted_page";
|
|
105
|
+
new_managed_page: "new_managed_page";
|
|
106
|
+
configured_fallback: "configured_fallback";
|
|
107
|
+
}>>;
|
|
108
|
+
written: z.ZodBoolean;
|
|
109
|
+
}, z.core.$strip>>>;
|
|
110
|
+
}, z.core.$strip>;
|
|
111
|
+
export type RememberOutput = z.infer<typeof RememberOutput>;
|
|
112
|
+
/**
|
|
113
|
+
* All three forms operate on Markdown. Retracting a fact removes the
|
|
114
|
+
* sentence that produced it — expiring a row while the sentence stays in the
|
|
115
|
+
* file means the assistant "forgets" and reads it again tomorrow.
|
|
116
|
+
*/
|
|
117
|
+
export declare const ForgetInput: z.ZodObject<{
|
|
118
|
+
fact: z.ZodOptional<z.ZodString>;
|
|
119
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
120
|
+
document: z.ZodOptional<z.ZodString>;
|
|
121
|
+
}, z.core.$strip>;
|
|
122
|
+
export type ForgetInput = z.infer<typeof ForgetInput>;
|
|
123
|
+
export declare const ForgetOutput: z.ZodObject<{
|
|
124
|
+
status: z.ZodEnum<{
|
|
125
|
+
ok: "ok";
|
|
126
|
+
empty: "empty";
|
|
127
|
+
degraded: "degraded";
|
|
128
|
+
unavailable: "unavailable";
|
|
129
|
+
}>;
|
|
130
|
+
degraded: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
131
|
+
no_embedding_model: "no_embedding_model";
|
|
132
|
+
no_reranker: "no_reranker";
|
|
133
|
+
no_derive_model: "no_derive_model";
|
|
134
|
+
no_expansion_model: "no_expansion_model";
|
|
135
|
+
embedding_failed: "embedding_failed";
|
|
136
|
+
rerank_failed: "rerank_failed";
|
|
137
|
+
derive_failed: "derive_failed";
|
|
138
|
+
expansion_failed: "expansion_failed";
|
|
139
|
+
no_vector_index: "no_vector_index";
|
|
140
|
+
partial_index: "partial_index";
|
|
141
|
+
no_document_text: "no_document_text";
|
|
142
|
+
document_source_missing: "document_source_missing";
|
|
143
|
+
no_graph_index: "no_graph_index";
|
|
144
|
+
no_entity_index: "no_entity_index";
|
|
145
|
+
entity_resolution_failed: "entity_resolution_failed";
|
|
146
|
+
partial_graph_index: "partial_graph_index";
|
|
147
|
+
graph_traversal_limited: "graph_traversal_limited";
|
|
148
|
+
no_answer_model: "no_answer_model";
|
|
149
|
+
answer_failed: "answer_failed";
|
|
150
|
+
answer_verification_failed: "answer_verification_failed";
|
|
151
|
+
answer_truncated: "answer_truncated";
|
|
152
|
+
}>>>;
|
|
153
|
+
note: z.ZodOptional<z.ZodString>;
|
|
154
|
+
change_id: z.ZodOptional<z.ZodString>;
|
|
155
|
+
removed_from: z.ZodOptional<z.ZodString>;
|
|
156
|
+
removed: z.ZodOptional<z.ZodString>;
|
|
157
|
+
trashed: z.ZodOptional<z.ZodString>;
|
|
158
|
+
}, z.core.$strip>;
|
|
159
|
+
export type ForgetOutput = z.infer<typeof ForgetOutput>;
|
|
160
|
+
export declare const UndoInput: z.ZodObject<{
|
|
161
|
+
change_id: z.ZodString;
|
|
162
|
+
}, z.core.$strip>;
|
|
163
|
+
export type UndoInput = z.infer<typeof UndoInput>;
|
|
164
|
+
export declare const UndoOutput: z.ZodObject<{
|
|
165
|
+
status: z.ZodEnum<{
|
|
166
|
+
ok: "ok";
|
|
167
|
+
empty: "empty";
|
|
168
|
+
degraded: "degraded";
|
|
169
|
+
unavailable: "unavailable";
|
|
170
|
+
}>;
|
|
171
|
+
degraded: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
172
|
+
no_embedding_model: "no_embedding_model";
|
|
173
|
+
no_reranker: "no_reranker";
|
|
174
|
+
no_derive_model: "no_derive_model";
|
|
175
|
+
no_expansion_model: "no_expansion_model";
|
|
176
|
+
embedding_failed: "embedding_failed";
|
|
177
|
+
rerank_failed: "rerank_failed";
|
|
178
|
+
derive_failed: "derive_failed";
|
|
179
|
+
expansion_failed: "expansion_failed";
|
|
180
|
+
no_vector_index: "no_vector_index";
|
|
181
|
+
partial_index: "partial_index";
|
|
182
|
+
no_document_text: "no_document_text";
|
|
183
|
+
document_source_missing: "document_source_missing";
|
|
184
|
+
no_graph_index: "no_graph_index";
|
|
185
|
+
no_entity_index: "no_entity_index";
|
|
186
|
+
entity_resolution_failed: "entity_resolution_failed";
|
|
187
|
+
partial_graph_index: "partial_graph_index";
|
|
188
|
+
graph_traversal_limited: "graph_traversal_limited";
|
|
189
|
+
no_answer_model: "no_answer_model";
|
|
190
|
+
answer_failed: "answer_failed";
|
|
191
|
+
answer_verification_failed: "answer_verification_failed";
|
|
192
|
+
answer_truncated: "answer_truncated";
|
|
193
|
+
}>>>;
|
|
194
|
+
note: z.ZodOptional<z.ZodString>;
|
|
195
|
+
reversed: z.ZodOptional<z.ZodString>;
|
|
196
|
+
restored: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
197
|
+
removed: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
198
|
+
}, z.core.$strip>;
|
|
199
|
+
export type UndoOutput = z.infer<typeof UndoOutput>;
|
|
200
|
+
/** Relocate a page with its documents, rewriting embeds and reporting inbound links. */
|
|
201
|
+
export declare const MoveInput: z.ZodObject<{
|
|
202
|
+
from: z.ZodString;
|
|
203
|
+
to: z.ZodString;
|
|
204
|
+
}, z.core.$strip>;
|
|
205
|
+
export type MoveInput = z.infer<typeof MoveInput>;
|
|
206
|
+
export declare const MoveOutput: z.ZodObject<{
|
|
207
|
+
status: z.ZodEnum<{
|
|
208
|
+
ok: "ok";
|
|
209
|
+
empty: "empty";
|
|
210
|
+
degraded: "degraded";
|
|
211
|
+
unavailable: "unavailable";
|
|
212
|
+
}>;
|
|
213
|
+
degraded: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
214
|
+
no_embedding_model: "no_embedding_model";
|
|
215
|
+
no_reranker: "no_reranker";
|
|
216
|
+
no_derive_model: "no_derive_model";
|
|
217
|
+
no_expansion_model: "no_expansion_model";
|
|
218
|
+
embedding_failed: "embedding_failed";
|
|
219
|
+
rerank_failed: "rerank_failed";
|
|
220
|
+
derive_failed: "derive_failed";
|
|
221
|
+
expansion_failed: "expansion_failed";
|
|
222
|
+
no_vector_index: "no_vector_index";
|
|
223
|
+
partial_index: "partial_index";
|
|
224
|
+
no_document_text: "no_document_text";
|
|
225
|
+
document_source_missing: "document_source_missing";
|
|
226
|
+
no_graph_index: "no_graph_index";
|
|
227
|
+
no_entity_index: "no_entity_index";
|
|
228
|
+
entity_resolution_failed: "entity_resolution_failed";
|
|
229
|
+
partial_graph_index: "partial_graph_index";
|
|
230
|
+
graph_traversal_limited: "graph_traversal_limited";
|
|
231
|
+
no_answer_model: "no_answer_model";
|
|
232
|
+
answer_failed: "answer_failed";
|
|
233
|
+
answer_verification_failed: "answer_verification_failed";
|
|
234
|
+
answer_truncated: "answer_truncated";
|
|
235
|
+
}>>>;
|
|
236
|
+
note: z.ZodOptional<z.ZodString>;
|
|
237
|
+
outcome: z.ZodEnum<{
|
|
238
|
+
ok: "ok";
|
|
239
|
+
requires_folder: "requires_folder";
|
|
240
|
+
}>;
|
|
241
|
+
change_id: z.ZodOptional<z.ZodString>;
|
|
242
|
+
moved: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
243
|
+
broken_inbound: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
244
|
+
requires_folder: z.ZodOptional<z.ZodObject<{
|
|
245
|
+
folder: z.ZodString;
|
|
246
|
+
nearest: z.ZodArray<z.ZodString>;
|
|
247
|
+
}, z.core.$strip>>;
|
|
248
|
+
}, z.core.$strip>;
|
|
249
|
+
export type MoveOutput = z.infer<typeof MoveOutput>;
|
|
250
|
+
/**
|
|
251
|
+
* Pull documents into memory: extract, OCR, name, summarize, and route.
|
|
252
|
+
* Extraction happens on arrival, always — no caller ever runs an extraction tool.
|
|
253
|
+
*/
|
|
254
|
+
export declare const IngestInput: z.ZodObject<{
|
|
255
|
+
path: z.ZodOptional<z.ZodString>;
|
|
256
|
+
url: z.ZodOptional<z.ZodString>;
|
|
257
|
+
folder: z.ZodOptional<z.ZodString>;
|
|
258
|
+
route: z.ZodOptional<z.ZodBoolean>;
|
|
259
|
+
label: z.ZodOptional<z.ZodString>;
|
|
260
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
261
|
+
}, z.core.$strip>;
|
|
262
|
+
export type IngestInput = z.infer<typeof IngestInput>;
|
|
263
|
+
export declare const IngestOutput: z.ZodObject<{
|
|
264
|
+
status: z.ZodEnum<{
|
|
265
|
+
ok: "ok";
|
|
266
|
+
empty: "empty";
|
|
267
|
+
degraded: "degraded";
|
|
268
|
+
unavailable: "unavailable";
|
|
269
|
+
}>;
|
|
270
|
+
degraded: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
271
|
+
no_embedding_model: "no_embedding_model";
|
|
272
|
+
no_reranker: "no_reranker";
|
|
273
|
+
no_derive_model: "no_derive_model";
|
|
274
|
+
no_expansion_model: "no_expansion_model";
|
|
275
|
+
embedding_failed: "embedding_failed";
|
|
276
|
+
rerank_failed: "rerank_failed";
|
|
277
|
+
derive_failed: "derive_failed";
|
|
278
|
+
expansion_failed: "expansion_failed";
|
|
279
|
+
no_vector_index: "no_vector_index";
|
|
280
|
+
partial_index: "partial_index";
|
|
281
|
+
no_document_text: "no_document_text";
|
|
282
|
+
document_source_missing: "document_source_missing";
|
|
283
|
+
no_graph_index: "no_graph_index";
|
|
284
|
+
no_entity_index: "no_entity_index";
|
|
285
|
+
entity_resolution_failed: "entity_resolution_failed";
|
|
286
|
+
partial_graph_index: "partial_graph_index";
|
|
287
|
+
graph_traversal_limited: "graph_traversal_limited";
|
|
288
|
+
no_answer_model: "no_answer_model";
|
|
289
|
+
answer_failed: "answer_failed";
|
|
290
|
+
answer_verification_failed: "answer_verification_failed";
|
|
291
|
+
answer_truncated: "answer_truncated";
|
|
292
|
+
}>>>;
|
|
293
|
+
note: z.ZodOptional<z.ZodString>;
|
|
294
|
+
outcome: z.ZodEnum<{
|
|
295
|
+
ok: "ok";
|
|
296
|
+
requires_approval: "requires_approval";
|
|
297
|
+
requires_folder: "requires_folder";
|
|
298
|
+
duplicate: "duplicate";
|
|
299
|
+
skipped: "skipped";
|
|
300
|
+
}>;
|
|
301
|
+
change_id: z.ZodOptional<z.ZodString>;
|
|
302
|
+
document: z.ZodOptional<z.ZodString>;
|
|
303
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
304
|
+
rel_path: z.ZodOptional<z.ZodString>;
|
|
305
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
306
|
+
page_count: z.ZodOptional<z.ZodNumber>;
|
|
307
|
+
ocr: z.ZodOptional<z.ZodBoolean>;
|
|
308
|
+
text_from: z.ZodOptional<z.ZodEnum<{
|
|
309
|
+
none: "none";
|
|
310
|
+
plain: "plain";
|
|
311
|
+
textutil: "textutil";
|
|
312
|
+
"text-layer": "text-layer";
|
|
313
|
+
ocr: "ocr";
|
|
314
|
+
vision: "vision";
|
|
315
|
+
}>>;
|
|
316
|
+
renamed_from: z.ZodOptional<z.ZodString>;
|
|
317
|
+
related: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
318
|
+
approval: z.ZodOptional<z.ZodObject<{
|
|
319
|
+
proposal_id: z.ZodString;
|
|
320
|
+
reason: z.ZodString;
|
|
321
|
+
reason_code: z.ZodOptional<z.ZodEnum<{
|
|
322
|
+
conflict: "conflict";
|
|
323
|
+
routing_uncertain: "routing_uncertain";
|
|
324
|
+
no_writable_destination: "no_writable_destination";
|
|
325
|
+
}>>;
|
|
326
|
+
nearest: z.ZodArray<z.ZodString>;
|
|
327
|
+
}, z.core.$strip>>;
|
|
328
|
+
requires_folder: z.ZodOptional<z.ZodObject<{
|
|
329
|
+
folder: z.ZodString;
|
|
330
|
+
nearest: z.ZodArray<z.ZodString>;
|
|
331
|
+
}, z.core.$strip>>;
|
|
332
|
+
batch: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
333
|
+
source: z.ZodString;
|
|
334
|
+
outcome: z.ZodEnum<{
|
|
335
|
+
ok: "ok";
|
|
336
|
+
error: "error";
|
|
337
|
+
requires_approval: "requires_approval";
|
|
338
|
+
requires_folder: "requires_folder";
|
|
339
|
+
duplicate: "duplicate";
|
|
340
|
+
skipped: "skipped";
|
|
341
|
+
}>;
|
|
342
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
343
|
+
note: z.ZodOptional<z.ZodString>;
|
|
344
|
+
}, z.core.$strip>>>;
|
|
345
|
+
}, z.core.$strip>;
|
|
346
|
+
export type IngestOutput = z.infer<typeof IngestOutput>;
|
|
347
|
+
/** Organize one already-indexed orphan document without making retrieval depend on filing. */
|
|
348
|
+
export declare const AdoptInput: z.ZodObject<{
|
|
349
|
+
documentId: z.ZodString;
|
|
350
|
+
}, z.core.$strip>;
|
|
351
|
+
export type AdoptInput = z.infer<typeof AdoptInput>;
|
|
352
|
+
export declare const AdoptOutput: z.ZodObject<{
|
|
353
|
+
status: z.ZodEnum<{
|
|
354
|
+
ok: "ok";
|
|
355
|
+
empty: "empty";
|
|
356
|
+
degraded: "degraded";
|
|
357
|
+
unavailable: "unavailable";
|
|
358
|
+
}>;
|
|
359
|
+
degraded: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
360
|
+
no_embedding_model: "no_embedding_model";
|
|
361
|
+
no_reranker: "no_reranker";
|
|
362
|
+
no_derive_model: "no_derive_model";
|
|
363
|
+
no_expansion_model: "no_expansion_model";
|
|
364
|
+
embedding_failed: "embedding_failed";
|
|
365
|
+
rerank_failed: "rerank_failed";
|
|
366
|
+
derive_failed: "derive_failed";
|
|
367
|
+
expansion_failed: "expansion_failed";
|
|
368
|
+
no_vector_index: "no_vector_index";
|
|
369
|
+
partial_index: "partial_index";
|
|
370
|
+
no_document_text: "no_document_text";
|
|
371
|
+
document_source_missing: "document_source_missing";
|
|
372
|
+
no_graph_index: "no_graph_index";
|
|
373
|
+
no_entity_index: "no_entity_index";
|
|
374
|
+
entity_resolution_failed: "entity_resolution_failed";
|
|
375
|
+
partial_graph_index: "partial_graph_index";
|
|
376
|
+
graph_traversal_limited: "graph_traversal_limited";
|
|
377
|
+
no_answer_model: "no_answer_model";
|
|
378
|
+
answer_failed: "answer_failed";
|
|
379
|
+
answer_verification_failed: "answer_verification_failed";
|
|
380
|
+
answer_truncated: "answer_truncated";
|
|
381
|
+
}>>>;
|
|
382
|
+
note: z.ZodOptional<z.ZodString>;
|
|
383
|
+
outcome: z.ZodEnum<{
|
|
384
|
+
rejected: "rejected";
|
|
385
|
+
disabled: "disabled";
|
|
386
|
+
created: "created";
|
|
387
|
+
noop: "noop";
|
|
388
|
+
planned: "planned";
|
|
389
|
+
requires_review: "requires_review";
|
|
390
|
+
verification_pending: "verification_pending";
|
|
391
|
+
blocked: "blocked";
|
|
392
|
+
}>;
|
|
393
|
+
document_id: z.ZodString;
|
|
394
|
+
document_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
395
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
396
|
+
rel_path: z.ZodOptional<z.ZodString>;
|
|
397
|
+
change_id: z.ZodOptional<z.ZodString>;
|
|
398
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
399
|
+
plan: z.ZodOptional<z.ZodObject<{
|
|
400
|
+
id: z.ZodString;
|
|
401
|
+
mode: z.ZodEnum<{
|
|
402
|
+
auto: "auto";
|
|
403
|
+
audit: "audit";
|
|
404
|
+
review: "review";
|
|
405
|
+
}>;
|
|
406
|
+
status: z.ZodEnum<{
|
|
407
|
+
superseded: "superseded";
|
|
408
|
+
ready: "ready";
|
|
409
|
+
awaiting_review: "awaiting_review";
|
|
410
|
+
deciding: "deciding";
|
|
411
|
+
approved: "approved";
|
|
412
|
+
applying: "applying";
|
|
413
|
+
completed: "completed";
|
|
414
|
+
partially_completed: "partially_completed";
|
|
415
|
+
failed: "failed";
|
|
416
|
+
}>;
|
|
417
|
+
item_id: z.ZodString;
|
|
418
|
+
item_status: z.ZodEnum<{
|
|
419
|
+
applied: "applied";
|
|
420
|
+
rejected: "rejected";
|
|
421
|
+
verification_pending: "verification_pending";
|
|
422
|
+
blocked: "blocked";
|
|
423
|
+
approved: "approved";
|
|
424
|
+
applying: "applying";
|
|
425
|
+
proposed: "proposed";
|
|
426
|
+
stale: "stale";
|
|
427
|
+
verification_failed: "verification_failed";
|
|
428
|
+
}>;
|
|
429
|
+
}, z.core.$strip>>;
|
|
430
|
+
}, z.core.$strip>;
|
|
431
|
+
export type AdoptOutput = z.infer<typeof AdoptOutput>;
|
|
432
|
+
//# sourceMappingURL=mutate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mutate.d.ts","sourceRoot":"","sources":["../../src/ops/mutate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;iBAkBxB,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAE1D,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA4CzB,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAE5D;;;;GAIG;AACH,eAAO,MAAM,WAAW;;;;iBAQpB,CAAC;AACL,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAEtD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMvB,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAExD,eAAO,MAAM,SAAS;;iBAA6C,CAAC;AACpE,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAA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