@deskwork/core 0.15.0 → 0.16.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/dist/entry/annotations.d.ts +38 -3
- package/dist/entry/annotations.d.ts.map +1 -1
- package/dist/entry/annotations.js +139 -3
- package/dist/entry/annotations.js.map +1 -1
- package/dist/ingest-derive.d.ts +1 -1
- package/dist/ingest-derive.d.ts.map +1 -1
- package/dist/ingest-derive.js +10 -7
- package/dist/ingest-derive.js.map +1 -1
- package/dist/ingest-id.d.ts +33 -0
- package/dist/ingest-id.d.ts.map +1 -0
- package/dist/ingest-id.js +60 -0
- package/dist/ingest-id.js.map +1 -0
- package/dist/ingest.d.ts.map +1 -1
- package/dist/ingest.js +23 -0
- package/dist/ingest.js.map +1 -1
- package/dist/review/types.d.ts +37 -1
- package/dist/review/types.d.ts.map +1 -1
- package/dist/review/types.js.map +1 -1
- package/dist/schema/draft-annotation.d.ts +89 -26
- package/dist/schema/draft-annotation.d.ts.map +1 -1
- package/dist/schema/draft-annotation.js +16 -0
- package/dist/schema/draft-annotation.js.map +1 -1
- package/dist/schema/journal-events.d.ts +215 -114
- package/dist/schema/journal-events.d.ts.map +1 -1
- package/dist/scrapbook/crud-at-dir.d.ts +47 -0
- package/dist/scrapbook/crud-at-dir.d.ts.map +1 -0
- package/dist/scrapbook/crud-at-dir.js +114 -0
- package/dist/scrapbook/crud-at-dir.js.map +1 -0
- package/dist/scrapbook/crud-slug.d.ts +33 -0
- package/dist/scrapbook/crud-slug.d.ts.map +1 -0
- package/dist/scrapbook/crud-slug.js +99 -0
- package/dist/scrapbook/crud-slug.js.map +1 -0
- package/dist/scrapbook/format.d.ts +10 -0
- package/dist/scrapbook/format.d.ts.map +1 -0
- package/dist/scrapbook/format.js +41 -0
- package/dist/scrapbook/format.js.map +1 -0
- package/dist/scrapbook/listing.d.ts +94 -0
- package/dist/scrapbook/listing.d.ts.map +1 -0
- package/dist/scrapbook/listing.js +167 -0
- package/dist/scrapbook/listing.js.map +1 -0
- package/dist/scrapbook/paths.d.ts +115 -0
- package/dist/scrapbook/paths.d.ts.map +1 -0
- package/dist/scrapbook/paths.js +149 -0
- package/dist/scrapbook/paths.js.map +1 -0
- package/dist/scrapbook/read.d.ts +54 -0
- package/dist/scrapbook/read.d.ts.map +1 -0
- package/dist/scrapbook/read.js +62 -0
- package/dist/scrapbook/read.js.map +1 -0
- package/dist/scrapbook/seed.d.ts +19 -0
- package/dist/scrapbook/seed.d.ts.map +1 -0
- package/dist/scrapbook/seed.js +46 -0
- package/dist/scrapbook/seed.js.map +1 -0
- package/dist/scrapbook/types.d.ts +44 -0
- package/dist/scrapbook/types.d.ts.map +1 -0
- package/dist/scrapbook/types.js +11 -0
- package/dist/scrapbook/types.js.map +1 -0
- package/dist/scrapbook/validation.d.ts +28 -0
- package/dist/scrapbook/validation.d.ts.map +1 -0
- package/dist/scrapbook/validation.js +98 -0
- package/dist/scrapbook/validation.js.map +1 -0
- package/dist/scrapbook.d.ts +43 -277
- package/dist/scrapbook.d.ts.map +1 -1
- package/dist/scrapbook.js +42 -535
- package/dist/scrapbook.js.map +1 -1
- package/package.json +5 -1
|
@@ -21,84 +21,84 @@ export declare const JournalEventSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
21
21
|
createdAt: z.ZodString;
|
|
22
22
|
updatedAt: z.ZodString;
|
|
23
23
|
}, "strip", z.ZodTypeAny, {
|
|
24
|
-
|
|
24
|
+
uuid: string;
|
|
25
25
|
slug: string;
|
|
26
26
|
title: string;
|
|
27
|
-
uuid: string;
|
|
28
27
|
keywords: string[];
|
|
28
|
+
source: string;
|
|
29
|
+
currentStage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
|
|
30
|
+
iterationByStage: Partial<Record<"Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled", number>>;
|
|
29
31
|
createdAt: string;
|
|
30
|
-
currentStage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled";
|
|
31
|
-
iterationByStage: Partial<Record<"Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled", number>>;
|
|
32
32
|
updatedAt: string;
|
|
33
33
|
description?: string | undefined;
|
|
34
|
-
|
|
35
|
-
priorStage?: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled" | undefined;
|
|
34
|
+
priorStage?: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled" | undefined;
|
|
36
35
|
reviewState?: "in-review" | "iterating" | "approved" | undefined;
|
|
37
36
|
targetVersion?: string | undefined;
|
|
37
|
+
datePublished?: string | undefined;
|
|
38
38
|
artifactPath?: string | undefined;
|
|
39
39
|
shortformWorkflows?: Record<string, string> | undefined;
|
|
40
40
|
}, {
|
|
41
|
-
|
|
41
|
+
uuid: string;
|
|
42
42
|
slug: string;
|
|
43
43
|
title: string;
|
|
44
|
-
uuid: string;
|
|
45
44
|
keywords: string[];
|
|
45
|
+
source: string;
|
|
46
|
+
currentStage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
|
|
47
|
+
iterationByStage: Partial<Record<"Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled", number>>;
|
|
46
48
|
createdAt: string;
|
|
47
|
-
currentStage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled";
|
|
48
|
-
iterationByStage: Partial<Record<"Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled", number>>;
|
|
49
49
|
updatedAt: string;
|
|
50
50
|
description?: string | undefined;
|
|
51
|
-
|
|
52
|
-
priorStage?: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled" | undefined;
|
|
51
|
+
priorStage?: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled" | undefined;
|
|
53
52
|
reviewState?: "in-review" | "iterating" | "approved" | undefined;
|
|
54
53
|
targetVersion?: string | undefined;
|
|
54
|
+
datePublished?: string | undefined;
|
|
55
55
|
artifactPath?: string | undefined;
|
|
56
56
|
shortformWorkflows?: Record<string, string> | undefined;
|
|
57
57
|
}>;
|
|
58
58
|
}, "strip", z.ZodTypeAny, {
|
|
59
|
+
kind: "entry-created";
|
|
59
60
|
at: string;
|
|
61
|
+
entryId: string;
|
|
60
62
|
entry: {
|
|
61
|
-
|
|
63
|
+
uuid: string;
|
|
62
64
|
slug: string;
|
|
63
65
|
title: string;
|
|
64
|
-
uuid: string;
|
|
65
66
|
keywords: string[];
|
|
67
|
+
source: string;
|
|
68
|
+
currentStage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
|
|
69
|
+
iterationByStage: Partial<Record<"Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled", number>>;
|
|
66
70
|
createdAt: string;
|
|
67
|
-
currentStage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled";
|
|
68
|
-
iterationByStage: Partial<Record<"Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled", number>>;
|
|
69
71
|
updatedAt: string;
|
|
70
72
|
description?: string | undefined;
|
|
71
|
-
|
|
72
|
-
priorStage?: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled" | undefined;
|
|
73
|
+
priorStage?: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled" | undefined;
|
|
73
74
|
reviewState?: "in-review" | "iterating" | "approved" | undefined;
|
|
74
75
|
targetVersion?: string | undefined;
|
|
76
|
+
datePublished?: string | undefined;
|
|
75
77
|
artifactPath?: string | undefined;
|
|
76
78
|
shortformWorkflows?: Record<string, string> | undefined;
|
|
77
79
|
};
|
|
78
|
-
kind: "entry-created";
|
|
79
|
-
entryId: string;
|
|
80
80
|
}, {
|
|
81
|
+
kind: "entry-created";
|
|
81
82
|
at: string;
|
|
83
|
+
entryId: string;
|
|
82
84
|
entry: {
|
|
83
|
-
|
|
85
|
+
uuid: string;
|
|
84
86
|
slug: string;
|
|
85
87
|
title: string;
|
|
86
|
-
uuid: string;
|
|
87
88
|
keywords: string[];
|
|
89
|
+
source: string;
|
|
90
|
+
currentStage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
|
|
91
|
+
iterationByStage: Partial<Record<"Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled", number>>;
|
|
88
92
|
createdAt: string;
|
|
89
|
-
currentStage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled";
|
|
90
|
-
iterationByStage: Partial<Record<"Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled", number>>;
|
|
91
93
|
updatedAt: string;
|
|
92
94
|
description?: string | undefined;
|
|
93
|
-
|
|
94
|
-
priorStage?: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled" | undefined;
|
|
95
|
+
priorStage?: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled" | undefined;
|
|
95
96
|
reviewState?: "in-review" | "iterating" | "approved" | undefined;
|
|
96
97
|
targetVersion?: string | undefined;
|
|
98
|
+
datePublished?: string | undefined;
|
|
97
99
|
artifactPath?: string | undefined;
|
|
98
100
|
shortformWorkflows?: Record<string, string> | undefined;
|
|
99
101
|
};
|
|
100
|
-
kind: "entry-created";
|
|
101
|
-
entryId: string;
|
|
102
102
|
}>, z.ZodObject<{
|
|
103
103
|
kind: z.ZodLiteral<"entry-ingested">;
|
|
104
104
|
at: z.ZodString;
|
|
@@ -106,17 +106,17 @@ export declare const JournalEventSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
106
106
|
sourcePath: z.ZodString;
|
|
107
107
|
targetStage: z.ZodEnum<["Ideas", "Planned", "Outlining", "Drafting", "Final", "Published", "Blocked", "Cancelled"]>;
|
|
108
108
|
}, "strip", z.ZodTypeAny, {
|
|
109
|
-
at: string;
|
|
110
109
|
kind: "entry-ingested";
|
|
110
|
+
at: string;
|
|
111
111
|
entryId: string;
|
|
112
112
|
sourcePath: string;
|
|
113
|
-
targetStage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "
|
|
113
|
+
targetStage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
|
|
114
114
|
}, {
|
|
115
|
-
at: string;
|
|
116
115
|
kind: "entry-ingested";
|
|
116
|
+
at: string;
|
|
117
117
|
entryId: string;
|
|
118
118
|
sourcePath: string;
|
|
119
|
-
targetStage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "
|
|
119
|
+
targetStage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
|
|
120
120
|
}>, z.ZodObject<{
|
|
121
121
|
kind: z.ZodLiteral<"iteration">;
|
|
122
122
|
at: z.ZodString;
|
|
@@ -125,18 +125,18 @@ export declare const JournalEventSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
125
125
|
version: z.ZodNumber;
|
|
126
126
|
markdown: z.ZodString;
|
|
127
127
|
}, "strip", z.ZodTypeAny, {
|
|
128
|
-
at: string;
|
|
129
|
-
stage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled";
|
|
130
128
|
version: number;
|
|
131
129
|
kind: "iteration";
|
|
130
|
+
at: string;
|
|
132
131
|
entryId: string;
|
|
132
|
+
stage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
|
|
133
133
|
markdown: string;
|
|
134
134
|
}, {
|
|
135
|
-
at: string;
|
|
136
|
-
stage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled";
|
|
137
135
|
version: number;
|
|
138
136
|
kind: "iteration";
|
|
137
|
+
at: string;
|
|
139
138
|
entryId: string;
|
|
139
|
+
stage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
|
|
140
140
|
markdown: string;
|
|
141
141
|
}>, z.ZodObject<{
|
|
142
142
|
kind: z.ZodLiteral<"annotation">;
|
|
@@ -164,72 +164,72 @@ export declare const JournalEventSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
164
164
|
dispositionReason: z.ZodOptional<z.ZodString>;
|
|
165
165
|
createdAt: z.ZodString;
|
|
166
166
|
}, "strip", z.ZodTypeAny, {
|
|
167
|
-
id: string;
|
|
168
167
|
type: "comment";
|
|
169
168
|
createdAt: string;
|
|
169
|
+
id: string;
|
|
170
170
|
range: {
|
|
171
171
|
start: number;
|
|
172
172
|
end: number;
|
|
173
173
|
};
|
|
174
174
|
text: string;
|
|
175
|
-
anchor?: string | undefined;
|
|
176
175
|
category?: string | undefined;
|
|
176
|
+
anchor?: string | undefined;
|
|
177
177
|
disposition?: "addressed" | "deferred" | "wontfix" | undefined;
|
|
178
178
|
dispositionReason?: string | undefined;
|
|
179
179
|
}, {
|
|
180
|
-
id: string;
|
|
181
180
|
type: "comment";
|
|
182
181
|
createdAt: string;
|
|
182
|
+
id: string;
|
|
183
183
|
range: {
|
|
184
184
|
start: number;
|
|
185
185
|
end: number;
|
|
186
186
|
};
|
|
187
187
|
text: string;
|
|
188
|
-
anchor?: string | undefined;
|
|
189
188
|
category?: string | undefined;
|
|
189
|
+
anchor?: string | undefined;
|
|
190
190
|
disposition?: "addressed" | "deferred" | "wontfix" | undefined;
|
|
191
191
|
dispositionReason?: string | undefined;
|
|
192
192
|
}>;
|
|
193
193
|
}, "strip", z.ZodTypeAny, {
|
|
194
|
-
at: string;
|
|
195
|
-
stage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled";
|
|
196
194
|
version: number;
|
|
197
195
|
annotation: {
|
|
198
|
-
id: string;
|
|
199
196
|
type: "comment";
|
|
200
197
|
createdAt: string;
|
|
198
|
+
id: string;
|
|
201
199
|
range: {
|
|
202
200
|
start: number;
|
|
203
201
|
end: number;
|
|
204
202
|
};
|
|
205
203
|
text: string;
|
|
206
|
-
anchor?: string | undefined;
|
|
207
204
|
category?: string | undefined;
|
|
205
|
+
anchor?: string | undefined;
|
|
208
206
|
disposition?: "addressed" | "deferred" | "wontfix" | undefined;
|
|
209
207
|
dispositionReason?: string | undefined;
|
|
210
208
|
};
|
|
211
209
|
kind: "annotation";
|
|
210
|
+
at: string;
|
|
212
211
|
entryId: string;
|
|
212
|
+
stage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
|
|
213
213
|
}, {
|
|
214
|
-
at: string;
|
|
215
|
-
stage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled";
|
|
216
214
|
version: number;
|
|
217
215
|
annotation: {
|
|
218
|
-
id: string;
|
|
219
216
|
type: "comment";
|
|
220
217
|
createdAt: string;
|
|
218
|
+
id: string;
|
|
221
219
|
range: {
|
|
222
220
|
start: number;
|
|
223
221
|
end: number;
|
|
224
222
|
};
|
|
225
223
|
text: string;
|
|
226
|
-
anchor?: string | undefined;
|
|
227
224
|
category?: string | undefined;
|
|
225
|
+
anchor?: string | undefined;
|
|
228
226
|
disposition?: "addressed" | "deferred" | "wontfix" | undefined;
|
|
229
227
|
dispositionReason?: string | undefined;
|
|
230
228
|
};
|
|
231
229
|
kind: "annotation";
|
|
230
|
+
at: string;
|
|
232
231
|
entryId: string;
|
|
232
|
+
stage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
|
|
233
233
|
}>, z.ZodObject<{
|
|
234
234
|
kind: z.ZodLiteral<"review-state-change">;
|
|
235
235
|
at: z.ZodString;
|
|
@@ -238,19 +238,19 @@ export declare const JournalEventSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
238
238
|
from: z.ZodNullable<z.ZodEnum<["in-review", "iterating", "approved"]>>;
|
|
239
239
|
to: z.ZodNullable<z.ZodEnum<["in-review", "iterating", "approved"]>>;
|
|
240
240
|
}, "strip", z.ZodTypeAny, {
|
|
241
|
-
at: string;
|
|
242
|
-
stage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled";
|
|
243
241
|
kind: "review-state-change";
|
|
242
|
+
at: string;
|
|
243
|
+
entryId: string;
|
|
244
|
+
stage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
|
|
244
245
|
from: "in-review" | "iterating" | "approved" | null;
|
|
245
246
|
to: "in-review" | "iterating" | "approved" | null;
|
|
246
|
-
entryId: string;
|
|
247
247
|
}, {
|
|
248
|
-
at: string;
|
|
249
|
-
stage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled";
|
|
250
248
|
kind: "review-state-change";
|
|
249
|
+
at: string;
|
|
250
|
+
entryId: string;
|
|
251
|
+
stage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
|
|
251
252
|
from: "in-review" | "iterating" | "approved" | null;
|
|
252
253
|
to: "in-review" | "iterating" | "approved" | null;
|
|
253
|
-
entryId: string;
|
|
254
254
|
}>, z.ZodObject<{
|
|
255
255
|
kind: z.ZodLiteral<"stage-transition">;
|
|
256
256
|
at: z.ZodString;
|
|
@@ -260,19 +260,19 @@ export declare const JournalEventSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
260
260
|
reason: z.ZodOptional<z.ZodString>;
|
|
261
261
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
262
262
|
}, "strip", z.ZodTypeAny, {
|
|
263
|
-
at: string;
|
|
264
263
|
kind: "stage-transition";
|
|
265
|
-
|
|
266
|
-
to: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled";
|
|
264
|
+
at: string;
|
|
267
265
|
entryId: string;
|
|
266
|
+
from: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
|
|
267
|
+
to: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
|
|
268
268
|
reason?: string | undefined;
|
|
269
269
|
metadata?: Record<string, unknown> | undefined;
|
|
270
270
|
}, {
|
|
271
|
-
at: string;
|
|
272
271
|
kind: "stage-transition";
|
|
273
|
-
|
|
274
|
-
to: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled";
|
|
272
|
+
at: string;
|
|
275
273
|
entryId: string;
|
|
274
|
+
from: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
|
|
275
|
+
to: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
|
|
276
276
|
reason?: string | undefined;
|
|
277
277
|
metadata?: Record<string, unknown> | undefined;
|
|
278
278
|
}>, z.ZodObject<{
|
|
@@ -299,31 +299,31 @@ export declare const JournalEventSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
299
299
|
workflowId: z.ZodString;
|
|
300
300
|
id: z.ZodString;
|
|
301
301
|
}, "strip", z.ZodTypeAny, {
|
|
302
|
-
id: string;
|
|
303
|
-
type: "comment";
|
|
304
302
|
version: number;
|
|
303
|
+
type: "comment";
|
|
305
304
|
createdAt: string;
|
|
306
|
-
|
|
305
|
+
id: string;
|
|
307
306
|
range: {
|
|
308
307
|
start: number;
|
|
309
308
|
end: number;
|
|
310
309
|
};
|
|
311
310
|
text: string;
|
|
311
|
+
workflowId: string;
|
|
312
|
+
category?: "voice-drift" | "missing-receipt" | "tutorial-framing" | "saas-vocabulary" | "fake-authority" | "structural" | "other" | undefined;
|
|
312
313
|
anchor?: string | undefined;
|
|
313
|
-
category?: "other" | "voice-drift" | "missing-receipt" | "tutorial-framing" | "saas-vocabulary" | "fake-authority" | "structural" | undefined;
|
|
314
314
|
}, {
|
|
315
|
-
id: string;
|
|
316
|
-
type: "comment";
|
|
317
315
|
version: number;
|
|
316
|
+
type: "comment";
|
|
318
317
|
createdAt: string;
|
|
319
|
-
|
|
318
|
+
id: string;
|
|
320
319
|
range: {
|
|
321
320
|
start: number;
|
|
322
321
|
end: number;
|
|
323
322
|
};
|
|
324
323
|
text: string;
|
|
324
|
+
workflowId: string;
|
|
325
|
+
category?: "voice-drift" | "missing-receipt" | "tutorial-framing" | "saas-vocabulary" | "fake-authority" | "structural" | "other" | undefined;
|
|
325
326
|
anchor?: string | undefined;
|
|
326
|
-
category?: "other" | "voice-drift" | "missing-receipt" | "tutorial-framing" | "saas-vocabulary" | "fake-authority" | "structural" | undefined;
|
|
327
327
|
}>, z.ZodObject<{
|
|
328
328
|
type: z.ZodLiteral<"edit">;
|
|
329
329
|
beforeVersion: z.ZodNumber;
|
|
@@ -333,17 +333,17 @@ export declare const JournalEventSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
333
333
|
workflowId: z.ZodString;
|
|
334
334
|
id: z.ZodString;
|
|
335
335
|
}, "strip", z.ZodTypeAny, {
|
|
336
|
-
id: string;
|
|
337
336
|
type: "edit";
|
|
338
337
|
createdAt: string;
|
|
338
|
+
id: string;
|
|
339
339
|
workflowId: string;
|
|
340
340
|
beforeVersion: number;
|
|
341
341
|
afterMarkdown: string;
|
|
342
342
|
diff: string;
|
|
343
343
|
}, {
|
|
344
|
-
id: string;
|
|
345
344
|
type: "edit";
|
|
346
345
|
createdAt: string;
|
|
346
|
+
id: string;
|
|
347
347
|
workflowId: string;
|
|
348
348
|
beforeVersion: number;
|
|
349
349
|
afterMarkdown: string;
|
|
@@ -355,16 +355,16 @@ export declare const JournalEventSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
355
355
|
workflowId: z.ZodString;
|
|
356
356
|
id: z.ZodString;
|
|
357
357
|
}, "strip", z.ZodTypeAny, {
|
|
358
|
-
id: string;
|
|
359
|
-
type: "approve";
|
|
360
358
|
version: number;
|
|
359
|
+
type: "approve";
|
|
361
360
|
createdAt: string;
|
|
361
|
+
id: string;
|
|
362
362
|
workflowId: string;
|
|
363
363
|
}, {
|
|
364
|
-
id: string;
|
|
365
|
-
type: "approve";
|
|
366
364
|
version: number;
|
|
365
|
+
type: "approve";
|
|
367
366
|
createdAt: string;
|
|
367
|
+
id: string;
|
|
368
368
|
workflowId: string;
|
|
369
369
|
}>, z.ZodObject<{
|
|
370
370
|
type: z.ZodLiteral<"reject">;
|
|
@@ -374,17 +374,17 @@ export declare const JournalEventSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
374
374
|
workflowId: z.ZodString;
|
|
375
375
|
id: z.ZodString;
|
|
376
376
|
}, "strip", z.ZodTypeAny, {
|
|
377
|
-
id: string;
|
|
378
|
-
type: "reject";
|
|
379
377
|
version: number;
|
|
378
|
+
type: "reject";
|
|
380
379
|
createdAt: string;
|
|
380
|
+
id: string;
|
|
381
381
|
workflowId: string;
|
|
382
382
|
reason?: string | undefined;
|
|
383
383
|
}, {
|
|
384
|
-
id: string;
|
|
385
|
-
type: "reject";
|
|
386
384
|
version: number;
|
|
385
|
+
type: "reject";
|
|
387
386
|
createdAt: string;
|
|
387
|
+
id: string;
|
|
388
388
|
workflowId: string;
|
|
389
389
|
reason?: string | undefined;
|
|
390
390
|
}>, z.ZodObject<{
|
|
@@ -395,16 +395,16 @@ export declare const JournalEventSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
395
395
|
workflowId: z.ZodString;
|
|
396
396
|
id: z.ZodString;
|
|
397
397
|
}, "strip", z.ZodTypeAny, {
|
|
398
|
-
id: string;
|
|
399
398
|
type: "resolve";
|
|
400
399
|
createdAt: string;
|
|
400
|
+
id: string;
|
|
401
401
|
workflowId: string;
|
|
402
402
|
commentId: string;
|
|
403
403
|
resolved: boolean;
|
|
404
404
|
}, {
|
|
405
|
-
id: string;
|
|
406
405
|
type: "resolve";
|
|
407
406
|
createdAt: string;
|
|
407
|
+
id: string;
|
|
408
408
|
workflowId: string;
|
|
409
409
|
commentId: string;
|
|
410
410
|
resolved: boolean;
|
|
@@ -418,133 +418,234 @@ export declare const JournalEventSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
418
418
|
workflowId: z.ZodString;
|
|
419
419
|
id: z.ZodString;
|
|
420
420
|
}, "strip", z.ZodTypeAny, {
|
|
421
|
-
id: string;
|
|
422
|
-
type: "address";
|
|
423
421
|
version: number;
|
|
422
|
+
type: "address";
|
|
424
423
|
createdAt: string;
|
|
424
|
+
id: string;
|
|
425
|
+
disposition: "addressed" | "deferred" | "wontfix";
|
|
425
426
|
workflowId: string;
|
|
426
427
|
commentId: string;
|
|
427
|
-
disposition: "addressed" | "deferred" | "wontfix";
|
|
428
428
|
reason?: string | undefined;
|
|
429
429
|
}, {
|
|
430
|
-
id: string;
|
|
431
|
-
type: "address";
|
|
432
430
|
version: number;
|
|
431
|
+
type: "address";
|
|
433
432
|
createdAt: string;
|
|
433
|
+
id: string;
|
|
434
|
+
disposition: "addressed" | "deferred" | "wontfix";
|
|
434
435
|
workflowId: string;
|
|
435
436
|
commentId: string;
|
|
436
|
-
disposition: "addressed" | "deferred" | "wontfix";
|
|
437
437
|
reason?: string | undefined;
|
|
438
|
+
}>, z.ZodObject<{
|
|
439
|
+
type: z.ZodLiteral<"edit-comment">;
|
|
440
|
+
commentId: z.ZodString;
|
|
441
|
+
text: z.ZodOptional<z.ZodString>;
|
|
442
|
+
range: z.ZodOptional<z.ZodObject<{
|
|
443
|
+
start: z.ZodNumber;
|
|
444
|
+
end: z.ZodNumber;
|
|
445
|
+
}, "strip", z.ZodTypeAny, {
|
|
446
|
+
start: number;
|
|
447
|
+
end: number;
|
|
448
|
+
}, {
|
|
449
|
+
start: number;
|
|
450
|
+
end: number;
|
|
451
|
+
}>>;
|
|
452
|
+
category: z.ZodOptional<z.ZodEnum<["voice-drift", "missing-receipt", "tutorial-framing", "saas-vocabulary", "fake-authority", "structural", "other"]>>;
|
|
453
|
+
anchor: z.ZodOptional<z.ZodString>;
|
|
454
|
+
createdAt: z.ZodString;
|
|
455
|
+
workflowId: z.ZodString;
|
|
456
|
+
id: z.ZodString;
|
|
457
|
+
}, "strip", z.ZodTypeAny, {
|
|
458
|
+
type: "edit-comment";
|
|
459
|
+
createdAt: string;
|
|
460
|
+
id: string;
|
|
461
|
+
workflowId: string;
|
|
462
|
+
commentId: string;
|
|
463
|
+
range?: {
|
|
464
|
+
start: number;
|
|
465
|
+
end: number;
|
|
466
|
+
} | undefined;
|
|
467
|
+
text?: string | undefined;
|
|
468
|
+
category?: "voice-drift" | "missing-receipt" | "tutorial-framing" | "saas-vocabulary" | "fake-authority" | "structural" | "other" | undefined;
|
|
469
|
+
anchor?: string | undefined;
|
|
470
|
+
}, {
|
|
471
|
+
type: "edit-comment";
|
|
472
|
+
createdAt: string;
|
|
473
|
+
id: string;
|
|
474
|
+
workflowId: string;
|
|
475
|
+
commentId: string;
|
|
476
|
+
range?: {
|
|
477
|
+
start: number;
|
|
478
|
+
end: number;
|
|
479
|
+
} | undefined;
|
|
480
|
+
text?: string | undefined;
|
|
481
|
+
category?: "voice-drift" | "missing-receipt" | "tutorial-framing" | "saas-vocabulary" | "fake-authority" | "structural" | "other" | undefined;
|
|
482
|
+
anchor?: string | undefined;
|
|
483
|
+
}>, z.ZodObject<{
|
|
484
|
+
type: z.ZodLiteral<"delete-comment">;
|
|
485
|
+
commentId: z.ZodString;
|
|
486
|
+
createdAt: z.ZodString;
|
|
487
|
+
workflowId: z.ZodString;
|
|
488
|
+
id: z.ZodString;
|
|
489
|
+
}, "strip", z.ZodTypeAny, {
|
|
490
|
+
type: "delete-comment";
|
|
491
|
+
createdAt: string;
|
|
492
|
+
id: string;
|
|
493
|
+
workflowId: string;
|
|
494
|
+
commentId: string;
|
|
495
|
+
}, {
|
|
496
|
+
type: "delete-comment";
|
|
497
|
+
createdAt: string;
|
|
498
|
+
id: string;
|
|
499
|
+
workflowId: string;
|
|
500
|
+
commentId: string;
|
|
438
501
|
}>]>;
|
|
439
502
|
}, "strip", z.ZodTypeAny, {
|
|
440
|
-
at: string;
|
|
441
503
|
annotation: {
|
|
442
|
-
id: string;
|
|
443
|
-
type: "comment";
|
|
444
504
|
version: number;
|
|
505
|
+
type: "comment";
|
|
445
506
|
createdAt: string;
|
|
446
|
-
|
|
507
|
+
id: string;
|
|
447
508
|
range: {
|
|
448
509
|
start: number;
|
|
449
510
|
end: number;
|
|
450
511
|
};
|
|
451
512
|
text: string;
|
|
513
|
+
workflowId: string;
|
|
514
|
+
category?: "voice-drift" | "missing-receipt" | "tutorial-framing" | "saas-vocabulary" | "fake-authority" | "structural" | "other" | undefined;
|
|
452
515
|
anchor?: string | undefined;
|
|
453
|
-
category?: "other" | "voice-drift" | "missing-receipt" | "tutorial-framing" | "saas-vocabulary" | "fake-authority" | "structural" | undefined;
|
|
454
516
|
} | {
|
|
455
|
-
id: string;
|
|
456
517
|
type: "edit";
|
|
457
518
|
createdAt: string;
|
|
519
|
+
id: string;
|
|
458
520
|
workflowId: string;
|
|
459
521
|
beforeVersion: number;
|
|
460
522
|
afterMarkdown: string;
|
|
461
523
|
diff: string;
|
|
462
524
|
} | {
|
|
463
|
-
id: string;
|
|
464
|
-
type: "approve";
|
|
465
525
|
version: number;
|
|
526
|
+
type: "approve";
|
|
466
527
|
createdAt: string;
|
|
528
|
+
id: string;
|
|
467
529
|
workflowId: string;
|
|
468
530
|
} | {
|
|
469
|
-
id: string;
|
|
470
|
-
type: "reject";
|
|
471
531
|
version: number;
|
|
532
|
+
type: "reject";
|
|
472
533
|
createdAt: string;
|
|
534
|
+
id: string;
|
|
473
535
|
workflowId: string;
|
|
474
536
|
reason?: string | undefined;
|
|
475
537
|
} | {
|
|
476
|
-
id: string;
|
|
477
538
|
type: "resolve";
|
|
478
539
|
createdAt: string;
|
|
540
|
+
id: string;
|
|
479
541
|
workflowId: string;
|
|
480
542
|
commentId: string;
|
|
481
543
|
resolved: boolean;
|
|
482
544
|
} | {
|
|
483
|
-
id: string;
|
|
484
|
-
type: "address";
|
|
485
545
|
version: number;
|
|
546
|
+
type: "address";
|
|
486
547
|
createdAt: string;
|
|
548
|
+
id: string;
|
|
549
|
+
disposition: "addressed" | "deferred" | "wontfix";
|
|
487
550
|
workflowId: string;
|
|
488
551
|
commentId: string;
|
|
489
|
-
disposition: "addressed" | "deferred" | "wontfix";
|
|
490
552
|
reason?: string | undefined;
|
|
553
|
+
} | {
|
|
554
|
+
type: "edit-comment";
|
|
555
|
+
createdAt: string;
|
|
556
|
+
id: string;
|
|
557
|
+
workflowId: string;
|
|
558
|
+
commentId: string;
|
|
559
|
+
range?: {
|
|
560
|
+
start: number;
|
|
561
|
+
end: number;
|
|
562
|
+
} | undefined;
|
|
563
|
+
text?: string | undefined;
|
|
564
|
+
category?: "voice-drift" | "missing-receipt" | "tutorial-framing" | "saas-vocabulary" | "fake-authority" | "structural" | "other" | undefined;
|
|
565
|
+
anchor?: string | undefined;
|
|
566
|
+
} | {
|
|
567
|
+
type: "delete-comment";
|
|
568
|
+
createdAt: string;
|
|
569
|
+
id: string;
|
|
570
|
+
workflowId: string;
|
|
571
|
+
commentId: string;
|
|
491
572
|
};
|
|
492
573
|
kind: "entry-annotation";
|
|
574
|
+
at: string;
|
|
493
575
|
entryId: string;
|
|
494
576
|
}, {
|
|
495
|
-
at: string;
|
|
496
577
|
annotation: {
|
|
497
|
-
id: string;
|
|
498
|
-
type: "comment";
|
|
499
578
|
version: number;
|
|
579
|
+
type: "comment";
|
|
500
580
|
createdAt: string;
|
|
501
|
-
|
|
581
|
+
id: string;
|
|
502
582
|
range: {
|
|
503
583
|
start: number;
|
|
504
584
|
end: number;
|
|
505
585
|
};
|
|
506
586
|
text: string;
|
|
587
|
+
workflowId: string;
|
|
588
|
+
category?: "voice-drift" | "missing-receipt" | "tutorial-framing" | "saas-vocabulary" | "fake-authority" | "structural" | "other" | undefined;
|
|
507
589
|
anchor?: string | undefined;
|
|
508
|
-
category?: "other" | "voice-drift" | "missing-receipt" | "tutorial-framing" | "saas-vocabulary" | "fake-authority" | "structural" | undefined;
|
|
509
590
|
} | {
|
|
510
|
-
id: string;
|
|
511
591
|
type: "edit";
|
|
512
592
|
createdAt: string;
|
|
593
|
+
id: string;
|
|
513
594
|
workflowId: string;
|
|
514
595
|
beforeVersion: number;
|
|
515
596
|
afterMarkdown: string;
|
|
516
597
|
diff: string;
|
|
517
598
|
} | {
|
|
518
|
-
id: string;
|
|
519
|
-
type: "approve";
|
|
520
599
|
version: number;
|
|
600
|
+
type: "approve";
|
|
521
601
|
createdAt: string;
|
|
602
|
+
id: string;
|
|
522
603
|
workflowId: string;
|
|
523
604
|
} | {
|
|
524
|
-
id: string;
|
|
525
|
-
type: "reject";
|
|
526
605
|
version: number;
|
|
606
|
+
type: "reject";
|
|
527
607
|
createdAt: string;
|
|
608
|
+
id: string;
|
|
528
609
|
workflowId: string;
|
|
529
610
|
reason?: string | undefined;
|
|
530
611
|
} | {
|
|
531
|
-
id: string;
|
|
532
612
|
type: "resolve";
|
|
533
613
|
createdAt: string;
|
|
614
|
+
id: string;
|
|
534
615
|
workflowId: string;
|
|
535
616
|
commentId: string;
|
|
536
617
|
resolved: boolean;
|
|
537
618
|
} | {
|
|
538
|
-
id: string;
|
|
539
|
-
type: "address";
|
|
540
619
|
version: number;
|
|
620
|
+
type: "address";
|
|
541
621
|
createdAt: string;
|
|
622
|
+
id: string;
|
|
623
|
+
disposition: "addressed" | "deferred" | "wontfix";
|
|
542
624
|
workflowId: string;
|
|
543
625
|
commentId: string;
|
|
544
|
-
disposition: "addressed" | "deferred" | "wontfix";
|
|
545
626
|
reason?: string | undefined;
|
|
627
|
+
} | {
|
|
628
|
+
type: "edit-comment";
|
|
629
|
+
createdAt: string;
|
|
630
|
+
id: string;
|
|
631
|
+
workflowId: string;
|
|
632
|
+
commentId: string;
|
|
633
|
+
range?: {
|
|
634
|
+
start: number;
|
|
635
|
+
end: number;
|
|
636
|
+
} | undefined;
|
|
637
|
+
text?: string | undefined;
|
|
638
|
+
category?: "voice-drift" | "missing-receipt" | "tutorial-framing" | "saas-vocabulary" | "fake-authority" | "structural" | "other" | undefined;
|
|
639
|
+
anchor?: string | undefined;
|
|
640
|
+
} | {
|
|
641
|
+
type: "delete-comment";
|
|
642
|
+
createdAt: string;
|
|
643
|
+
id: string;
|
|
644
|
+
workflowId: string;
|
|
645
|
+
commentId: string;
|
|
546
646
|
};
|
|
547
647
|
kind: "entry-annotation";
|
|
648
|
+
at: string;
|
|
548
649
|
entryId: string;
|
|
549
650
|
}>]>;
|
|
550
651
|
export type JournalEvent = z.infer<typeof JournalEventSchema>;
|