@deskwork/core 0.21.0 → 0.22.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/schema/entry.d.ts +12 -12
- package/dist/schema/journal-events.d.ts +132 -132
- package/package.json +1 -1
package/dist/schema/entry.d.ts
CHANGED
|
@@ -20,35 +20,35 @@ export declare const EntrySchema: z.ZodObject<{
|
|
|
20
20
|
createdAt: z.ZodString;
|
|
21
21
|
updatedAt: z.ZodString;
|
|
22
22
|
}, "strip", z.ZodTypeAny, {
|
|
23
|
-
|
|
23
|
+
uuid: string;
|
|
24
24
|
slug: string;
|
|
25
25
|
title: string;
|
|
26
|
-
uuid: string;
|
|
27
26
|
keywords: string[];
|
|
27
|
+
source: string;
|
|
28
|
+
currentStage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
|
|
29
|
+
iterationByStage: Partial<Record<"Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled", number>>;
|
|
28
30
|
createdAt: string;
|
|
29
|
-
currentStage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled";
|
|
30
|
-
iterationByStage: Partial<Record<"Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled", number>>;
|
|
31
31
|
updatedAt: string;
|
|
32
32
|
description?: string | undefined;
|
|
33
|
-
|
|
34
|
-
priorStage?: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled" | undefined;
|
|
33
|
+
priorStage?: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled" | undefined;
|
|
35
34
|
targetVersion?: string | undefined;
|
|
35
|
+
datePublished?: string | undefined;
|
|
36
36
|
artifactPath?: string | undefined;
|
|
37
37
|
shortformWorkflows?: Record<string, string> | undefined;
|
|
38
38
|
}, {
|
|
39
|
-
|
|
39
|
+
uuid: string;
|
|
40
40
|
slug: string;
|
|
41
41
|
title: string;
|
|
42
|
-
uuid: string;
|
|
43
42
|
keywords: string[];
|
|
43
|
+
source: string;
|
|
44
|
+
currentStage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
|
|
45
|
+
iterationByStage: Partial<Record<"Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled", number>>;
|
|
44
46
|
createdAt: string;
|
|
45
|
-
currentStage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled";
|
|
46
|
-
iterationByStage: Partial<Record<"Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled", number>>;
|
|
47
47
|
updatedAt: string;
|
|
48
48
|
description?: string | undefined;
|
|
49
|
-
|
|
50
|
-
priorStage?: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled" | undefined;
|
|
49
|
+
priorStage?: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled" | undefined;
|
|
51
50
|
targetVersion?: string | undefined;
|
|
51
|
+
datePublished?: string | undefined;
|
|
52
52
|
artifactPath?: string | undefined;
|
|
53
53
|
shortformWorkflows?: Record<string, string> | undefined;
|
|
54
54
|
}>;
|
|
@@ -20,80 +20,80 @@ export declare const JournalEventSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
20
20
|
createdAt: z.ZodString;
|
|
21
21
|
updatedAt: z.ZodString;
|
|
22
22
|
}, "strip", z.ZodTypeAny, {
|
|
23
|
-
|
|
23
|
+
uuid: string;
|
|
24
24
|
slug: string;
|
|
25
25
|
title: string;
|
|
26
|
-
uuid: string;
|
|
27
26
|
keywords: string[];
|
|
27
|
+
source: string;
|
|
28
|
+
currentStage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
|
|
29
|
+
iterationByStage: Partial<Record<"Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled", number>>;
|
|
28
30
|
createdAt: string;
|
|
29
|
-
currentStage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled";
|
|
30
|
-
iterationByStage: Partial<Record<"Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled", number>>;
|
|
31
31
|
updatedAt: string;
|
|
32
32
|
description?: string | undefined;
|
|
33
|
-
|
|
34
|
-
priorStage?: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled" | undefined;
|
|
33
|
+
priorStage?: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled" | undefined;
|
|
35
34
|
targetVersion?: string | undefined;
|
|
35
|
+
datePublished?: string | undefined;
|
|
36
36
|
artifactPath?: string | undefined;
|
|
37
37
|
shortformWorkflows?: Record<string, string> | undefined;
|
|
38
38
|
}, {
|
|
39
|
-
|
|
39
|
+
uuid: string;
|
|
40
40
|
slug: string;
|
|
41
41
|
title: string;
|
|
42
|
-
uuid: string;
|
|
43
42
|
keywords: string[];
|
|
43
|
+
source: string;
|
|
44
|
+
currentStage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
|
|
45
|
+
iterationByStage: Partial<Record<"Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled", number>>;
|
|
44
46
|
createdAt: string;
|
|
45
|
-
currentStage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled";
|
|
46
|
-
iterationByStage: Partial<Record<"Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled", number>>;
|
|
47
47
|
updatedAt: string;
|
|
48
48
|
description?: string | undefined;
|
|
49
|
-
|
|
50
|
-
priorStage?: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled" | undefined;
|
|
49
|
+
priorStage?: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled" | undefined;
|
|
51
50
|
targetVersion?: string | undefined;
|
|
51
|
+
datePublished?: string | undefined;
|
|
52
52
|
artifactPath?: string | undefined;
|
|
53
53
|
shortformWorkflows?: Record<string, string> | undefined;
|
|
54
54
|
}>;
|
|
55
55
|
}, "strip", z.ZodTypeAny, {
|
|
56
56
|
at: string;
|
|
57
|
+
kind: "entry-created";
|
|
58
|
+
entryId: string;
|
|
57
59
|
entry: {
|
|
58
|
-
|
|
60
|
+
uuid: string;
|
|
59
61
|
slug: string;
|
|
60
62
|
title: string;
|
|
61
|
-
uuid: string;
|
|
62
63
|
keywords: string[];
|
|
64
|
+
source: string;
|
|
65
|
+
currentStage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
|
|
66
|
+
iterationByStage: Partial<Record<"Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled", number>>;
|
|
63
67
|
createdAt: string;
|
|
64
|
-
currentStage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled";
|
|
65
|
-
iterationByStage: Partial<Record<"Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled", number>>;
|
|
66
68
|
updatedAt: string;
|
|
67
69
|
description?: string | undefined;
|
|
68
|
-
|
|
69
|
-
priorStage?: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled" | undefined;
|
|
70
|
+
priorStage?: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled" | undefined;
|
|
70
71
|
targetVersion?: string | undefined;
|
|
72
|
+
datePublished?: string | undefined;
|
|
71
73
|
artifactPath?: string | undefined;
|
|
72
74
|
shortformWorkflows?: Record<string, string> | undefined;
|
|
73
75
|
};
|
|
74
|
-
kind: "entry-created";
|
|
75
|
-
entryId: string;
|
|
76
76
|
}, {
|
|
77
77
|
at: string;
|
|
78
|
+
kind: "entry-created";
|
|
79
|
+
entryId: string;
|
|
78
80
|
entry: {
|
|
79
|
-
|
|
81
|
+
uuid: string;
|
|
80
82
|
slug: string;
|
|
81
83
|
title: string;
|
|
82
|
-
uuid: string;
|
|
83
84
|
keywords: string[];
|
|
85
|
+
source: string;
|
|
86
|
+
currentStage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
|
|
87
|
+
iterationByStage: Partial<Record<"Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled", number>>;
|
|
84
88
|
createdAt: string;
|
|
85
|
-
currentStage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled";
|
|
86
|
-
iterationByStage: Partial<Record<"Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled", number>>;
|
|
87
89
|
updatedAt: string;
|
|
88
90
|
description?: string | undefined;
|
|
89
|
-
|
|
90
|
-
priorStage?: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled" | undefined;
|
|
91
|
+
priorStage?: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled" | undefined;
|
|
91
92
|
targetVersion?: string | undefined;
|
|
93
|
+
datePublished?: string | undefined;
|
|
92
94
|
artifactPath?: string | undefined;
|
|
93
95
|
shortformWorkflows?: Record<string, string> | undefined;
|
|
94
96
|
};
|
|
95
|
-
kind: "entry-created";
|
|
96
|
-
entryId: string;
|
|
97
97
|
}>, z.ZodObject<{
|
|
98
98
|
kind: z.ZodLiteral<"entry-ingested">;
|
|
99
99
|
at: z.ZodString;
|
|
@@ -105,13 +105,13 @@ export declare const JournalEventSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
105
105
|
kind: "entry-ingested";
|
|
106
106
|
entryId: string;
|
|
107
107
|
sourcePath: string;
|
|
108
|
-
targetStage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "
|
|
108
|
+
targetStage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
|
|
109
109
|
}, {
|
|
110
110
|
at: string;
|
|
111
111
|
kind: "entry-ingested";
|
|
112
112
|
entryId: string;
|
|
113
113
|
sourcePath: string;
|
|
114
|
-
targetStage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "
|
|
114
|
+
targetStage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
|
|
115
115
|
}>, z.ZodObject<{
|
|
116
116
|
kind: z.ZodLiteral<"iteration">;
|
|
117
117
|
at: z.ZodString;
|
|
@@ -121,17 +121,17 @@ export declare const JournalEventSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
121
121
|
markdown: z.ZodString;
|
|
122
122
|
}, "strip", z.ZodTypeAny, {
|
|
123
123
|
at: string;
|
|
124
|
-
stage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled";
|
|
125
|
-
version: number;
|
|
126
124
|
kind: "iteration";
|
|
127
125
|
entryId: string;
|
|
126
|
+
stage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
|
|
127
|
+
version: number;
|
|
128
128
|
markdown: string;
|
|
129
129
|
}, {
|
|
130
130
|
at: string;
|
|
131
|
-
stage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled";
|
|
132
|
-
version: number;
|
|
133
131
|
kind: "iteration";
|
|
134
132
|
entryId: string;
|
|
133
|
+
stage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
|
|
134
|
+
version: number;
|
|
135
135
|
markdown: string;
|
|
136
136
|
}>, z.ZodObject<{
|
|
137
137
|
kind: z.ZodLiteral<"annotation">;
|
|
@@ -159,72 +159,72 @@ export declare const JournalEventSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
159
159
|
dispositionReason: z.ZodOptional<z.ZodString>;
|
|
160
160
|
createdAt: z.ZodString;
|
|
161
161
|
}, "strip", z.ZodTypeAny, {
|
|
162
|
-
id: string;
|
|
163
162
|
type: "comment";
|
|
164
163
|
createdAt: string;
|
|
164
|
+
id: string;
|
|
165
165
|
range: {
|
|
166
166
|
start: number;
|
|
167
167
|
end: number;
|
|
168
168
|
};
|
|
169
169
|
text: string;
|
|
170
|
-
anchor?: string | undefined;
|
|
171
170
|
category?: string | undefined;
|
|
171
|
+
anchor?: string | undefined;
|
|
172
172
|
disposition?: "addressed" | "deferred" | "wontfix" | undefined;
|
|
173
173
|
dispositionReason?: string | undefined;
|
|
174
174
|
}, {
|
|
175
|
-
id: string;
|
|
176
175
|
type: "comment";
|
|
177
176
|
createdAt: string;
|
|
177
|
+
id: string;
|
|
178
178
|
range: {
|
|
179
179
|
start: number;
|
|
180
180
|
end: number;
|
|
181
181
|
};
|
|
182
182
|
text: string;
|
|
183
|
-
anchor?: string | undefined;
|
|
184
183
|
category?: string | undefined;
|
|
184
|
+
anchor?: string | undefined;
|
|
185
185
|
disposition?: "addressed" | "deferred" | "wontfix" | undefined;
|
|
186
186
|
dispositionReason?: string | undefined;
|
|
187
187
|
}>;
|
|
188
188
|
}, "strip", z.ZodTypeAny, {
|
|
189
189
|
at: string;
|
|
190
|
-
|
|
190
|
+
kind: "annotation";
|
|
191
|
+
entryId: string;
|
|
192
|
+
stage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
|
|
191
193
|
version: number;
|
|
192
194
|
annotation: {
|
|
193
|
-
id: string;
|
|
194
195
|
type: "comment";
|
|
195
196
|
createdAt: string;
|
|
197
|
+
id: string;
|
|
196
198
|
range: {
|
|
197
199
|
start: number;
|
|
198
200
|
end: number;
|
|
199
201
|
};
|
|
200
202
|
text: string;
|
|
201
|
-
anchor?: string | undefined;
|
|
202
203
|
category?: string | undefined;
|
|
204
|
+
anchor?: string | undefined;
|
|
203
205
|
disposition?: "addressed" | "deferred" | "wontfix" | undefined;
|
|
204
206
|
dispositionReason?: string | undefined;
|
|
205
207
|
};
|
|
206
|
-
kind: "annotation";
|
|
207
|
-
entryId: string;
|
|
208
208
|
}, {
|
|
209
209
|
at: string;
|
|
210
|
-
|
|
210
|
+
kind: "annotation";
|
|
211
|
+
entryId: string;
|
|
212
|
+
stage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
|
|
211
213
|
version: number;
|
|
212
214
|
annotation: {
|
|
213
|
-
id: string;
|
|
214
215
|
type: "comment";
|
|
215
216
|
createdAt: string;
|
|
217
|
+
id: string;
|
|
216
218
|
range: {
|
|
217
219
|
start: number;
|
|
218
220
|
end: number;
|
|
219
221
|
};
|
|
220
222
|
text: string;
|
|
221
|
-
anchor?: string | undefined;
|
|
222
223
|
category?: string | undefined;
|
|
224
|
+
anchor?: string | undefined;
|
|
223
225
|
disposition?: "addressed" | "deferred" | "wontfix" | undefined;
|
|
224
226
|
dispositionReason?: string | undefined;
|
|
225
227
|
};
|
|
226
|
-
kind: "annotation";
|
|
227
|
-
entryId: string;
|
|
228
228
|
}>, z.ZodObject<{
|
|
229
229
|
kind: z.ZodLiteral<"review-state-change">;
|
|
230
230
|
at: z.ZodString;
|
|
@@ -234,18 +234,18 @@ export declare const JournalEventSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
234
234
|
to: z.ZodNullable<z.ZodEnum<["in-review", "iterating", "approved"]>>;
|
|
235
235
|
}, "strip", z.ZodTypeAny, {
|
|
236
236
|
at: string;
|
|
237
|
-
stage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled";
|
|
238
237
|
kind: "review-state-change";
|
|
238
|
+
entryId: string;
|
|
239
|
+
stage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
|
|
239
240
|
from: "in-review" | "iterating" | "approved" | null;
|
|
240
241
|
to: "in-review" | "iterating" | "approved" | null;
|
|
241
|
-
entryId: string;
|
|
242
242
|
}, {
|
|
243
243
|
at: string;
|
|
244
|
-
stage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled";
|
|
245
244
|
kind: "review-state-change";
|
|
245
|
+
entryId: string;
|
|
246
|
+
stage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
|
|
246
247
|
from: "in-review" | "iterating" | "approved" | null;
|
|
247
248
|
to: "in-review" | "iterating" | "approved" | null;
|
|
248
|
-
entryId: string;
|
|
249
249
|
}>, z.ZodObject<{
|
|
250
250
|
kind: z.ZodLiteral<"stage-transition">;
|
|
251
251
|
at: z.ZodString;
|
|
@@ -257,17 +257,17 @@ export declare const JournalEventSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
257
257
|
}, "strip", z.ZodTypeAny, {
|
|
258
258
|
at: string;
|
|
259
259
|
kind: "stage-transition";
|
|
260
|
-
from: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled";
|
|
261
|
-
to: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled";
|
|
262
260
|
entryId: string;
|
|
261
|
+
from: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
|
|
262
|
+
to: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
|
|
263
263
|
reason?: string | undefined;
|
|
264
264
|
metadata?: Record<string, unknown> | undefined;
|
|
265
265
|
}, {
|
|
266
266
|
at: string;
|
|
267
267
|
kind: "stage-transition";
|
|
268
|
-
from: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled";
|
|
269
|
-
to: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled";
|
|
270
268
|
entryId: string;
|
|
269
|
+
from: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
|
|
270
|
+
to: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
|
|
271
271
|
reason?: string | undefined;
|
|
272
272
|
metadata?: Record<string, unknown> | undefined;
|
|
273
273
|
}>, z.ZodObject<{
|
|
@@ -294,31 +294,31 @@ export declare const JournalEventSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
294
294
|
workflowId: z.ZodString;
|
|
295
295
|
id: z.ZodString;
|
|
296
296
|
}, "strip", z.ZodTypeAny, {
|
|
297
|
-
id: string;
|
|
298
297
|
type: "comment";
|
|
299
|
-
version: number;
|
|
300
298
|
createdAt: string;
|
|
301
|
-
|
|
299
|
+
version: number;
|
|
300
|
+
id: string;
|
|
302
301
|
range: {
|
|
303
302
|
start: number;
|
|
304
303
|
end: number;
|
|
305
304
|
};
|
|
306
305
|
text: string;
|
|
306
|
+
workflowId: string;
|
|
307
|
+
category?: "voice-drift" | "missing-receipt" | "tutorial-framing" | "saas-vocabulary" | "fake-authority" | "structural" | "other" | undefined;
|
|
307
308
|
anchor?: string | undefined;
|
|
308
|
-
category?: "other" | "voice-drift" | "missing-receipt" | "tutorial-framing" | "saas-vocabulary" | "fake-authority" | "structural" | undefined;
|
|
309
309
|
}, {
|
|
310
|
-
id: string;
|
|
311
310
|
type: "comment";
|
|
312
|
-
version: number;
|
|
313
311
|
createdAt: string;
|
|
314
|
-
|
|
312
|
+
version: number;
|
|
313
|
+
id: string;
|
|
315
314
|
range: {
|
|
316
315
|
start: number;
|
|
317
316
|
end: number;
|
|
318
317
|
};
|
|
319
318
|
text: string;
|
|
319
|
+
workflowId: string;
|
|
320
|
+
category?: "voice-drift" | "missing-receipt" | "tutorial-framing" | "saas-vocabulary" | "fake-authority" | "structural" | "other" | undefined;
|
|
320
321
|
anchor?: string | undefined;
|
|
321
|
-
category?: "other" | "voice-drift" | "missing-receipt" | "tutorial-framing" | "saas-vocabulary" | "fake-authority" | "structural" | undefined;
|
|
322
322
|
}>, z.ZodObject<{
|
|
323
323
|
type: z.ZodLiteral<"edit">;
|
|
324
324
|
beforeVersion: z.ZodNumber;
|
|
@@ -328,17 +328,17 @@ export declare const JournalEventSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
328
328
|
workflowId: z.ZodString;
|
|
329
329
|
id: z.ZodString;
|
|
330
330
|
}, "strip", z.ZodTypeAny, {
|
|
331
|
-
id: string;
|
|
332
331
|
type: "edit";
|
|
333
332
|
createdAt: string;
|
|
333
|
+
id: string;
|
|
334
334
|
workflowId: string;
|
|
335
335
|
beforeVersion: number;
|
|
336
336
|
afterMarkdown: string;
|
|
337
337
|
diff: string;
|
|
338
338
|
}, {
|
|
339
|
-
id: string;
|
|
340
339
|
type: "edit";
|
|
341
340
|
createdAt: string;
|
|
341
|
+
id: string;
|
|
342
342
|
workflowId: string;
|
|
343
343
|
beforeVersion: number;
|
|
344
344
|
afterMarkdown: string;
|
|
@@ -350,16 +350,16 @@ export declare const JournalEventSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
350
350
|
workflowId: z.ZodString;
|
|
351
351
|
id: z.ZodString;
|
|
352
352
|
}, "strip", z.ZodTypeAny, {
|
|
353
|
-
id: string;
|
|
354
353
|
type: "approve";
|
|
355
|
-
version: number;
|
|
356
354
|
createdAt: string;
|
|
355
|
+
version: number;
|
|
356
|
+
id: string;
|
|
357
357
|
workflowId: string;
|
|
358
358
|
}, {
|
|
359
|
-
id: string;
|
|
360
359
|
type: "approve";
|
|
361
|
-
version: number;
|
|
362
360
|
createdAt: string;
|
|
361
|
+
version: number;
|
|
362
|
+
id: string;
|
|
363
363
|
workflowId: string;
|
|
364
364
|
}>, z.ZodObject<{
|
|
365
365
|
type: z.ZodLiteral<"reject">;
|
|
@@ -369,17 +369,17 @@ export declare const JournalEventSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
369
369
|
workflowId: z.ZodString;
|
|
370
370
|
id: z.ZodString;
|
|
371
371
|
}, "strip", z.ZodTypeAny, {
|
|
372
|
-
id: string;
|
|
373
372
|
type: "reject";
|
|
374
|
-
version: number;
|
|
375
373
|
createdAt: string;
|
|
374
|
+
version: number;
|
|
375
|
+
id: string;
|
|
376
376
|
workflowId: string;
|
|
377
377
|
reason?: string | undefined;
|
|
378
378
|
}, {
|
|
379
|
-
id: string;
|
|
380
379
|
type: "reject";
|
|
381
|
-
version: number;
|
|
382
380
|
createdAt: string;
|
|
381
|
+
version: number;
|
|
382
|
+
id: string;
|
|
383
383
|
workflowId: string;
|
|
384
384
|
reason?: string | undefined;
|
|
385
385
|
}>, z.ZodObject<{
|
|
@@ -390,16 +390,16 @@ export declare const JournalEventSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
390
390
|
workflowId: z.ZodString;
|
|
391
391
|
id: z.ZodString;
|
|
392
392
|
}, "strip", z.ZodTypeAny, {
|
|
393
|
-
id: string;
|
|
394
393
|
type: "resolve";
|
|
395
394
|
createdAt: string;
|
|
395
|
+
id: string;
|
|
396
396
|
workflowId: string;
|
|
397
397
|
commentId: string;
|
|
398
398
|
resolved: boolean;
|
|
399
399
|
}, {
|
|
400
|
-
id: string;
|
|
401
400
|
type: "resolve";
|
|
402
401
|
createdAt: string;
|
|
402
|
+
id: string;
|
|
403
403
|
workflowId: string;
|
|
404
404
|
commentId: string;
|
|
405
405
|
resolved: boolean;
|
|
@@ -413,22 +413,22 @@ export declare const JournalEventSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
413
413
|
workflowId: z.ZodString;
|
|
414
414
|
id: z.ZodString;
|
|
415
415
|
}, "strip", z.ZodTypeAny, {
|
|
416
|
-
id: string;
|
|
417
416
|
type: "address";
|
|
418
|
-
version: number;
|
|
419
417
|
createdAt: string;
|
|
418
|
+
version: number;
|
|
419
|
+
id: string;
|
|
420
|
+
disposition: "addressed" | "deferred" | "wontfix";
|
|
420
421
|
workflowId: string;
|
|
421
422
|
commentId: string;
|
|
422
|
-
disposition: "addressed" | "deferred" | "wontfix";
|
|
423
423
|
reason?: string | undefined;
|
|
424
424
|
}, {
|
|
425
|
-
id: string;
|
|
426
425
|
type: "address";
|
|
427
|
-
version: number;
|
|
428
426
|
createdAt: string;
|
|
427
|
+
version: number;
|
|
428
|
+
id: string;
|
|
429
|
+
disposition: "addressed" | "deferred" | "wontfix";
|
|
429
430
|
workflowId: string;
|
|
430
431
|
commentId: string;
|
|
431
|
-
disposition: "addressed" | "deferred" | "wontfix";
|
|
432
432
|
reason?: string | undefined;
|
|
433
433
|
}>, z.ZodObject<{
|
|
434
434
|
type: z.ZodLiteral<"edit-comment">;
|
|
@@ -450,31 +450,31 @@ export declare const JournalEventSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
450
450
|
workflowId: z.ZodString;
|
|
451
451
|
id: z.ZodString;
|
|
452
452
|
}, "strip", z.ZodTypeAny, {
|
|
453
|
-
id: string;
|
|
454
453
|
type: "edit-comment";
|
|
455
454
|
createdAt: string;
|
|
455
|
+
id: string;
|
|
456
456
|
workflowId: string;
|
|
457
457
|
commentId: string;
|
|
458
|
-
anchor?: string | undefined;
|
|
459
458
|
range?: {
|
|
460
459
|
start: number;
|
|
461
460
|
end: number;
|
|
462
461
|
} | undefined;
|
|
463
462
|
text?: string | undefined;
|
|
464
|
-
category?: "
|
|
463
|
+
category?: "voice-drift" | "missing-receipt" | "tutorial-framing" | "saas-vocabulary" | "fake-authority" | "structural" | "other" | undefined;
|
|
464
|
+
anchor?: string | undefined;
|
|
465
465
|
}, {
|
|
466
|
-
id: string;
|
|
467
466
|
type: "edit-comment";
|
|
468
467
|
createdAt: string;
|
|
468
|
+
id: string;
|
|
469
469
|
workflowId: string;
|
|
470
470
|
commentId: string;
|
|
471
|
-
anchor?: string | undefined;
|
|
472
471
|
range?: {
|
|
473
472
|
start: number;
|
|
474
473
|
end: number;
|
|
475
474
|
} | undefined;
|
|
476
475
|
text?: string | undefined;
|
|
477
|
-
category?: "
|
|
476
|
+
category?: "voice-drift" | "missing-receipt" | "tutorial-framing" | "saas-vocabulary" | "fake-authority" | "structural" | "other" | undefined;
|
|
477
|
+
anchor?: string | undefined;
|
|
478
478
|
}>, z.ZodObject<{
|
|
479
479
|
type: z.ZodLiteral<"delete-comment">;
|
|
480
480
|
commentId: z.ZodString;
|
|
@@ -482,15 +482,15 @@ export declare const JournalEventSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
482
482
|
workflowId: z.ZodString;
|
|
483
483
|
id: z.ZodString;
|
|
484
484
|
}, "strip", z.ZodTypeAny, {
|
|
485
|
-
id: string;
|
|
486
485
|
type: "delete-comment";
|
|
487
486
|
createdAt: string;
|
|
487
|
+
id: string;
|
|
488
488
|
workflowId: string;
|
|
489
489
|
commentId: string;
|
|
490
490
|
}, {
|
|
491
|
-
id: string;
|
|
492
491
|
type: "delete-comment";
|
|
493
492
|
createdAt: string;
|
|
493
|
+
id: string;
|
|
494
494
|
workflowId: string;
|
|
495
495
|
commentId: string;
|
|
496
496
|
}>, z.ZodObject<{
|
|
@@ -501,182 +501,182 @@ export declare const JournalEventSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
501
501
|
workflowId: z.ZodString;
|
|
502
502
|
id: z.ZodString;
|
|
503
503
|
}, "strip", z.ZodTypeAny, {
|
|
504
|
-
id: string;
|
|
505
504
|
type: "archive-comment";
|
|
506
505
|
createdAt: string;
|
|
506
|
+
id: string;
|
|
507
507
|
workflowId: string;
|
|
508
508
|
commentId: string;
|
|
509
509
|
priorStage?: string | undefined;
|
|
510
510
|
}, {
|
|
511
|
-
id: string;
|
|
512
511
|
type: "archive-comment";
|
|
513
512
|
createdAt: string;
|
|
513
|
+
id: string;
|
|
514
514
|
workflowId: string;
|
|
515
515
|
commentId: string;
|
|
516
516
|
priorStage?: string | undefined;
|
|
517
517
|
}>]>;
|
|
518
518
|
}, "strip", z.ZodTypeAny, {
|
|
519
519
|
at: string;
|
|
520
|
+
kind: "entry-annotation";
|
|
521
|
+
entryId: string;
|
|
520
522
|
annotation: {
|
|
521
|
-
id: string;
|
|
522
523
|
type: "comment";
|
|
523
|
-
version: number;
|
|
524
524
|
createdAt: string;
|
|
525
|
-
|
|
525
|
+
version: number;
|
|
526
|
+
id: string;
|
|
526
527
|
range: {
|
|
527
528
|
start: number;
|
|
528
529
|
end: number;
|
|
529
530
|
};
|
|
530
531
|
text: string;
|
|
532
|
+
workflowId: string;
|
|
533
|
+
category?: "voice-drift" | "missing-receipt" | "tutorial-framing" | "saas-vocabulary" | "fake-authority" | "structural" | "other" | undefined;
|
|
531
534
|
anchor?: string | undefined;
|
|
532
|
-
category?: "other" | "voice-drift" | "missing-receipt" | "tutorial-framing" | "saas-vocabulary" | "fake-authority" | "structural" | undefined;
|
|
533
535
|
} | {
|
|
534
|
-
id: string;
|
|
535
536
|
type: "edit";
|
|
536
537
|
createdAt: string;
|
|
538
|
+
id: string;
|
|
537
539
|
workflowId: string;
|
|
538
540
|
beforeVersion: number;
|
|
539
541
|
afterMarkdown: string;
|
|
540
542
|
diff: string;
|
|
541
543
|
} | {
|
|
542
|
-
id: string;
|
|
543
544
|
type: "approve";
|
|
544
|
-
version: number;
|
|
545
545
|
createdAt: string;
|
|
546
|
+
version: number;
|
|
547
|
+
id: string;
|
|
546
548
|
workflowId: string;
|
|
547
549
|
} | {
|
|
548
|
-
id: string;
|
|
549
550
|
type: "reject";
|
|
550
|
-
version: number;
|
|
551
551
|
createdAt: string;
|
|
552
|
+
version: number;
|
|
553
|
+
id: string;
|
|
552
554
|
workflowId: string;
|
|
553
555
|
reason?: string | undefined;
|
|
554
556
|
} | {
|
|
555
|
-
id: string;
|
|
556
557
|
type: "resolve";
|
|
557
558
|
createdAt: string;
|
|
559
|
+
id: string;
|
|
558
560
|
workflowId: string;
|
|
559
561
|
commentId: string;
|
|
560
562
|
resolved: boolean;
|
|
561
563
|
} | {
|
|
562
|
-
id: string;
|
|
563
564
|
type: "address";
|
|
564
|
-
version: number;
|
|
565
565
|
createdAt: string;
|
|
566
|
+
version: number;
|
|
567
|
+
id: string;
|
|
568
|
+
disposition: "addressed" | "deferred" | "wontfix";
|
|
566
569
|
workflowId: string;
|
|
567
570
|
commentId: string;
|
|
568
|
-
disposition: "addressed" | "deferred" | "wontfix";
|
|
569
571
|
reason?: string | undefined;
|
|
570
572
|
} | {
|
|
571
|
-
id: string;
|
|
572
573
|
type: "edit-comment";
|
|
573
574
|
createdAt: string;
|
|
575
|
+
id: string;
|
|
574
576
|
workflowId: string;
|
|
575
577
|
commentId: string;
|
|
576
|
-
anchor?: string | undefined;
|
|
577
578
|
range?: {
|
|
578
579
|
start: number;
|
|
579
580
|
end: number;
|
|
580
581
|
} | undefined;
|
|
581
582
|
text?: string | undefined;
|
|
582
|
-
category?: "
|
|
583
|
+
category?: "voice-drift" | "missing-receipt" | "tutorial-framing" | "saas-vocabulary" | "fake-authority" | "structural" | "other" | undefined;
|
|
584
|
+
anchor?: string | undefined;
|
|
583
585
|
} | {
|
|
584
|
-
id: string;
|
|
585
586
|
type: "delete-comment";
|
|
586
587
|
createdAt: string;
|
|
588
|
+
id: string;
|
|
587
589
|
workflowId: string;
|
|
588
590
|
commentId: string;
|
|
589
591
|
} | {
|
|
590
|
-
id: string;
|
|
591
592
|
type: "archive-comment";
|
|
592
593
|
createdAt: string;
|
|
594
|
+
id: string;
|
|
593
595
|
workflowId: string;
|
|
594
596
|
commentId: string;
|
|
595
597
|
priorStage?: string | undefined;
|
|
596
598
|
};
|
|
597
|
-
kind: "entry-annotation";
|
|
598
|
-
entryId: string;
|
|
599
599
|
}, {
|
|
600
600
|
at: string;
|
|
601
|
+
kind: "entry-annotation";
|
|
602
|
+
entryId: string;
|
|
601
603
|
annotation: {
|
|
602
|
-
id: string;
|
|
603
604
|
type: "comment";
|
|
604
|
-
version: number;
|
|
605
605
|
createdAt: string;
|
|
606
|
-
|
|
606
|
+
version: number;
|
|
607
|
+
id: string;
|
|
607
608
|
range: {
|
|
608
609
|
start: number;
|
|
609
610
|
end: number;
|
|
610
611
|
};
|
|
611
612
|
text: string;
|
|
613
|
+
workflowId: string;
|
|
614
|
+
category?: "voice-drift" | "missing-receipt" | "tutorial-framing" | "saas-vocabulary" | "fake-authority" | "structural" | "other" | undefined;
|
|
612
615
|
anchor?: string | undefined;
|
|
613
|
-
category?: "other" | "voice-drift" | "missing-receipt" | "tutorial-framing" | "saas-vocabulary" | "fake-authority" | "structural" | undefined;
|
|
614
616
|
} | {
|
|
615
|
-
id: string;
|
|
616
617
|
type: "edit";
|
|
617
618
|
createdAt: string;
|
|
619
|
+
id: string;
|
|
618
620
|
workflowId: string;
|
|
619
621
|
beforeVersion: number;
|
|
620
622
|
afterMarkdown: string;
|
|
621
623
|
diff: string;
|
|
622
624
|
} | {
|
|
623
|
-
id: string;
|
|
624
625
|
type: "approve";
|
|
625
|
-
version: number;
|
|
626
626
|
createdAt: string;
|
|
627
|
+
version: number;
|
|
628
|
+
id: string;
|
|
627
629
|
workflowId: string;
|
|
628
630
|
} | {
|
|
629
|
-
id: string;
|
|
630
631
|
type: "reject";
|
|
631
|
-
version: number;
|
|
632
632
|
createdAt: string;
|
|
633
|
+
version: number;
|
|
634
|
+
id: string;
|
|
633
635
|
workflowId: string;
|
|
634
636
|
reason?: string | undefined;
|
|
635
637
|
} | {
|
|
636
|
-
id: string;
|
|
637
638
|
type: "resolve";
|
|
638
639
|
createdAt: string;
|
|
640
|
+
id: string;
|
|
639
641
|
workflowId: string;
|
|
640
642
|
commentId: string;
|
|
641
643
|
resolved: boolean;
|
|
642
644
|
} | {
|
|
643
|
-
id: string;
|
|
644
645
|
type: "address";
|
|
645
|
-
version: number;
|
|
646
646
|
createdAt: string;
|
|
647
|
+
version: number;
|
|
648
|
+
id: string;
|
|
649
|
+
disposition: "addressed" | "deferred" | "wontfix";
|
|
647
650
|
workflowId: string;
|
|
648
651
|
commentId: string;
|
|
649
|
-
disposition: "addressed" | "deferred" | "wontfix";
|
|
650
652
|
reason?: string | undefined;
|
|
651
653
|
} | {
|
|
652
|
-
id: string;
|
|
653
654
|
type: "edit-comment";
|
|
654
655
|
createdAt: string;
|
|
656
|
+
id: string;
|
|
655
657
|
workflowId: string;
|
|
656
658
|
commentId: string;
|
|
657
|
-
anchor?: string | undefined;
|
|
658
659
|
range?: {
|
|
659
660
|
start: number;
|
|
660
661
|
end: number;
|
|
661
662
|
} | undefined;
|
|
662
663
|
text?: string | undefined;
|
|
663
|
-
category?: "
|
|
664
|
+
category?: "voice-drift" | "missing-receipt" | "tutorial-framing" | "saas-vocabulary" | "fake-authority" | "structural" | "other" | undefined;
|
|
665
|
+
anchor?: string | undefined;
|
|
664
666
|
} | {
|
|
665
|
-
id: string;
|
|
666
667
|
type: "delete-comment";
|
|
667
668
|
createdAt: string;
|
|
669
|
+
id: string;
|
|
668
670
|
workflowId: string;
|
|
669
671
|
commentId: string;
|
|
670
672
|
} | {
|
|
671
|
-
id: string;
|
|
672
673
|
type: "archive-comment";
|
|
673
674
|
createdAt: string;
|
|
675
|
+
id: string;
|
|
674
676
|
workflowId: string;
|
|
675
677
|
commentId: string;
|
|
676
678
|
priorStage?: string | undefined;
|
|
677
679
|
};
|
|
678
|
-
kind: "entry-annotation";
|
|
679
|
-
entryId: string;
|
|
680
680
|
}>]>;
|
|
681
681
|
export type JournalEvent = z.infer<typeof JournalEventSchema>;
|
|
682
682
|
//# sourceMappingURL=journal-events.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deskwork/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Editorial calendar + review pipeline library — shared by @deskwork/cli and @deskwork/studio",
|
|
6
6
|
"homepage": "https://github.com/audiocontrol-org/deskwork#readme",
|