@deskwork/core 0.22.1 → 0.23.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
|
+
source: string;
|
|
24
24
|
slug: string;
|
|
25
25
|
title: string;
|
|
26
|
+
uuid: string;
|
|
26
27
|
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>>;
|
|
30
28
|
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
|
-
priorStage?: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled" | undefined;
|
|
34
|
-
targetVersion?: string | undefined;
|
|
35
33
|
datePublished?: string | undefined;
|
|
34
|
+
priorStage?: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled" | undefined;
|
|
35
|
+
targetVersion?: string | undefined;
|
|
36
36
|
artifactPath?: string | undefined;
|
|
37
37
|
shortformWorkflows?: Record<string, string> | undefined;
|
|
38
38
|
}, {
|
|
39
|
-
|
|
39
|
+
source: string;
|
|
40
40
|
slug: string;
|
|
41
41
|
title: string;
|
|
42
|
+
uuid: string;
|
|
42
43
|
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>>;
|
|
46
44
|
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
|
-
priorStage?: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled" | undefined;
|
|
50
|
-
targetVersion?: string | undefined;
|
|
51
49
|
datePublished?: string | undefined;
|
|
50
|
+
priorStage?: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled" | undefined;
|
|
51
|
+
targetVersion?: 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
|
+
source: string;
|
|
24
24
|
slug: string;
|
|
25
25
|
title: string;
|
|
26
|
+
uuid: string;
|
|
26
27
|
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>>;
|
|
30
28
|
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
|
-
priorStage?: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled" | undefined;
|
|
34
|
-
targetVersion?: string | undefined;
|
|
35
33
|
datePublished?: string | undefined;
|
|
34
|
+
priorStage?: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled" | undefined;
|
|
35
|
+
targetVersion?: string | undefined;
|
|
36
36
|
artifactPath?: string | undefined;
|
|
37
37
|
shortformWorkflows?: Record<string, string> | undefined;
|
|
38
38
|
}, {
|
|
39
|
-
|
|
39
|
+
source: string;
|
|
40
40
|
slug: string;
|
|
41
41
|
title: string;
|
|
42
|
+
uuid: string;
|
|
42
43
|
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>>;
|
|
46
44
|
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
|
-
priorStage?: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled" | undefined;
|
|
50
|
-
targetVersion?: string | undefined;
|
|
51
49
|
datePublished?: string | undefined;
|
|
50
|
+
priorStage?: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled" | undefined;
|
|
51
|
+
targetVersion?: 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;
|
|
59
57
|
entry: {
|
|
60
|
-
|
|
58
|
+
source: string;
|
|
61
59
|
slug: string;
|
|
62
60
|
title: string;
|
|
61
|
+
uuid: string;
|
|
63
62
|
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>>;
|
|
67
63
|
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>>;
|
|
68
66
|
updatedAt: string;
|
|
69
67
|
description?: string | undefined;
|
|
70
|
-
priorStage?: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled" | undefined;
|
|
71
|
-
targetVersion?: string | undefined;
|
|
72
68
|
datePublished?: string | undefined;
|
|
69
|
+
priorStage?: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled" | undefined;
|
|
70
|
+
targetVersion?: string | undefined;
|
|
73
71
|
artifactPath?: string | undefined;
|
|
74
72
|
shortformWorkflows?: Record<string, string> | undefined;
|
|
75
73
|
};
|
|
76
|
-
}, {
|
|
77
|
-
at: string;
|
|
78
74
|
kind: "entry-created";
|
|
79
75
|
entryId: string;
|
|
76
|
+
}, {
|
|
77
|
+
at: string;
|
|
80
78
|
entry: {
|
|
81
|
-
|
|
79
|
+
source: string;
|
|
82
80
|
slug: string;
|
|
83
81
|
title: string;
|
|
82
|
+
uuid: string;
|
|
84
83
|
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>>;
|
|
88
84
|
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>>;
|
|
89
87
|
updatedAt: string;
|
|
90
88
|
description?: string | undefined;
|
|
91
|
-
priorStage?: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled" | undefined;
|
|
92
|
-
targetVersion?: string | undefined;
|
|
93
89
|
datePublished?: string | undefined;
|
|
90
|
+
priorStage?: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled" | undefined;
|
|
91
|
+
targetVersion?: string | undefined;
|
|
94
92
|
artifactPath?: string | undefined;
|
|
95
93
|
shortformWorkflows?: Record<string, string> | undefined;
|
|
96
94
|
};
|
|
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" | "Published" | "Final" | "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" | "Published" | "Final" | "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;
|
|
124
126
|
kind: "iteration";
|
|
125
127
|
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;
|
|
131
133
|
kind: "iteration";
|
|
132
134
|
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;
|
|
162
163
|
type: "comment";
|
|
163
164
|
createdAt: string;
|
|
164
|
-
id: string;
|
|
165
165
|
range: {
|
|
166
166
|
start: number;
|
|
167
167
|
end: number;
|
|
168
168
|
};
|
|
169
169
|
text: string;
|
|
170
|
-
category?: string | undefined;
|
|
171
170
|
anchor?: string | undefined;
|
|
171
|
+
category?: string | undefined;
|
|
172
172
|
disposition?: "addressed" | "deferred" | "wontfix" | undefined;
|
|
173
173
|
dispositionReason?: string | undefined;
|
|
174
174
|
}, {
|
|
175
|
+
id: string;
|
|
175
176
|
type: "comment";
|
|
176
177
|
createdAt: string;
|
|
177
|
-
id: string;
|
|
178
178
|
range: {
|
|
179
179
|
start: number;
|
|
180
180
|
end: number;
|
|
181
181
|
};
|
|
182
182
|
text: string;
|
|
183
|
-
category?: string | undefined;
|
|
184
183
|
anchor?: string | undefined;
|
|
184
|
+
category?: 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
|
-
|
|
191
|
-
entryId: string;
|
|
192
|
-
stage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
|
|
190
|
+
stage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled";
|
|
193
191
|
version: number;
|
|
194
192
|
annotation: {
|
|
193
|
+
id: string;
|
|
195
194
|
type: "comment";
|
|
196
195
|
createdAt: string;
|
|
197
|
-
id: string;
|
|
198
196
|
range: {
|
|
199
197
|
start: number;
|
|
200
198
|
end: number;
|
|
201
199
|
};
|
|
202
200
|
text: string;
|
|
203
|
-
category?: string | undefined;
|
|
204
201
|
anchor?: string | undefined;
|
|
202
|
+
category?: string | undefined;
|
|
205
203
|
disposition?: "addressed" | "deferred" | "wontfix" | undefined;
|
|
206
204
|
dispositionReason?: string | undefined;
|
|
207
205
|
};
|
|
208
|
-
}, {
|
|
209
|
-
at: string;
|
|
210
206
|
kind: "annotation";
|
|
211
207
|
entryId: string;
|
|
212
|
-
|
|
208
|
+
}, {
|
|
209
|
+
at: string;
|
|
210
|
+
stage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled";
|
|
213
211
|
version: number;
|
|
214
212
|
annotation: {
|
|
213
|
+
id: string;
|
|
215
214
|
type: "comment";
|
|
216
215
|
createdAt: string;
|
|
217
|
-
id: string;
|
|
218
216
|
range: {
|
|
219
217
|
start: number;
|
|
220
218
|
end: number;
|
|
221
219
|
};
|
|
222
220
|
text: string;
|
|
223
|
-
category?: string | undefined;
|
|
224
221
|
anchor?: string | undefined;
|
|
222
|
+
category?: string | undefined;
|
|
225
223
|
disposition?: "addressed" | "deferred" | "wontfix" | undefined;
|
|
226
224
|
dispositionReason?: string | undefined;
|
|
227
225
|
};
|
|
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";
|
|
237
238
|
kind: "review-state-change";
|
|
238
|
-
entryId: string;
|
|
239
|
-
stage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
|
|
240
239
|
from: "in-review" | "iterating" | "approved" | null;
|
|
241
240
|
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";
|
|
244
245
|
kind: "review-state-change";
|
|
245
|
-
entryId: string;
|
|
246
|
-
stage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
|
|
247
246
|
from: "in-review" | "iterating" | "approved" | null;
|
|
248
247
|
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";
|
|
260
262
|
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";
|
|
268
270
|
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;
|
|
297
298
|
type: "comment";
|
|
298
|
-
createdAt: string;
|
|
299
299
|
version: number;
|
|
300
|
-
|
|
300
|
+
createdAt: string;
|
|
301
|
+
workflowId: string;
|
|
301
302
|
range: {
|
|
302
303
|
start: number;
|
|
303
304
|
end: number;
|
|
304
305
|
};
|
|
305
306
|
text: string;
|
|
306
|
-
workflowId: string;
|
|
307
|
-
category?: "voice-drift" | "missing-receipt" | "tutorial-framing" | "saas-vocabulary" | "fake-authority" | "structural" | "other" | undefined;
|
|
308
307
|
anchor?: string | undefined;
|
|
308
|
+
category?: "other" | "voice-drift" | "missing-receipt" | "tutorial-framing" | "saas-vocabulary" | "fake-authority" | "structural" | undefined;
|
|
309
309
|
}, {
|
|
310
|
+
id: string;
|
|
310
311
|
type: "comment";
|
|
311
|
-
createdAt: string;
|
|
312
312
|
version: number;
|
|
313
|
-
|
|
313
|
+
createdAt: string;
|
|
314
|
+
workflowId: string;
|
|
314
315
|
range: {
|
|
315
316
|
start: number;
|
|
316
317
|
end: number;
|
|
317
318
|
};
|
|
318
319
|
text: string;
|
|
319
|
-
workflowId: string;
|
|
320
|
-
category?: "voice-drift" | "missing-receipt" | "tutorial-framing" | "saas-vocabulary" | "fake-authority" | "structural" | "other" | undefined;
|
|
321
320
|
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;
|
|
331
332
|
type: "edit";
|
|
332
333
|
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;
|
|
339
340
|
type: "edit";
|
|
340
341
|
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;
|
|
353
354
|
type: "approve";
|
|
354
|
-
createdAt: string;
|
|
355
355
|
version: number;
|
|
356
|
-
|
|
356
|
+
createdAt: string;
|
|
357
357
|
workflowId: string;
|
|
358
358
|
}, {
|
|
359
|
+
id: string;
|
|
359
360
|
type: "approve";
|
|
360
|
-
createdAt: string;
|
|
361
361
|
version: number;
|
|
362
|
-
|
|
362
|
+
createdAt: 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;
|
|
372
373
|
type: "reject";
|
|
373
|
-
createdAt: string;
|
|
374
374
|
version: number;
|
|
375
|
-
|
|
375
|
+
createdAt: string;
|
|
376
376
|
workflowId: string;
|
|
377
377
|
reason?: string | undefined;
|
|
378
378
|
}, {
|
|
379
|
+
id: string;
|
|
379
380
|
type: "reject";
|
|
380
|
-
createdAt: string;
|
|
381
381
|
version: number;
|
|
382
|
-
|
|
382
|
+
createdAt: 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;
|
|
393
394
|
type: "resolve";
|
|
394
395
|
createdAt: string;
|
|
395
|
-
id: string;
|
|
396
396
|
workflowId: string;
|
|
397
397
|
commentId: string;
|
|
398
398
|
resolved: boolean;
|
|
399
399
|
}, {
|
|
400
|
+
id: string;
|
|
400
401
|
type: "resolve";
|
|
401
402
|
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;
|
|
416
417
|
type: "address";
|
|
417
|
-
createdAt: string;
|
|
418
418
|
version: number;
|
|
419
|
-
|
|
420
|
-
disposition: "addressed" | "deferred" | "wontfix";
|
|
419
|
+
createdAt: string;
|
|
421
420
|
workflowId: string;
|
|
422
421
|
commentId: string;
|
|
422
|
+
disposition: "addressed" | "deferred" | "wontfix";
|
|
423
423
|
reason?: string | undefined;
|
|
424
424
|
}, {
|
|
425
|
+
id: string;
|
|
425
426
|
type: "address";
|
|
426
|
-
createdAt: string;
|
|
427
427
|
version: number;
|
|
428
|
-
|
|
429
|
-
disposition: "addressed" | "deferred" | "wontfix";
|
|
428
|
+
createdAt: string;
|
|
430
429
|
workflowId: string;
|
|
431
430
|
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;
|
|
453
454
|
type: "edit-comment";
|
|
454
455
|
createdAt: string;
|
|
455
|
-
id: string;
|
|
456
456
|
workflowId: string;
|
|
457
457
|
commentId: string;
|
|
458
|
+
anchor?: string | undefined;
|
|
458
459
|
range?: {
|
|
459
460
|
start: number;
|
|
460
461
|
end: number;
|
|
461
462
|
} | undefined;
|
|
462
463
|
text?: string | undefined;
|
|
463
|
-
category?: "voice-drift" | "missing-receipt" | "tutorial-framing" | "saas-vocabulary" | "fake-authority" | "structural" |
|
|
464
|
-
anchor?: string | undefined;
|
|
464
|
+
category?: "other" | "voice-drift" | "missing-receipt" | "tutorial-framing" | "saas-vocabulary" | "fake-authority" | "structural" | undefined;
|
|
465
465
|
}, {
|
|
466
|
+
id: string;
|
|
466
467
|
type: "edit-comment";
|
|
467
468
|
createdAt: string;
|
|
468
|
-
id: string;
|
|
469
469
|
workflowId: string;
|
|
470
470
|
commentId: string;
|
|
471
|
+
anchor?: string | undefined;
|
|
471
472
|
range?: {
|
|
472
473
|
start: number;
|
|
473
474
|
end: number;
|
|
474
475
|
} | undefined;
|
|
475
476
|
text?: string | undefined;
|
|
476
|
-
category?: "voice-drift" | "missing-receipt" | "tutorial-framing" | "saas-vocabulary" | "fake-authority" | "structural" |
|
|
477
|
-
anchor?: string | undefined;
|
|
477
|
+
category?: "other" | "voice-drift" | "missing-receipt" | "tutorial-framing" | "saas-vocabulary" | "fake-authority" | "structural" | 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;
|
|
485
486
|
type: "delete-comment";
|
|
486
487
|
createdAt: string;
|
|
487
|
-
id: string;
|
|
488
488
|
workflowId: string;
|
|
489
489
|
commentId: string;
|
|
490
490
|
}, {
|
|
491
|
+
id: string;
|
|
491
492
|
type: "delete-comment";
|
|
492
493
|
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;
|
|
504
505
|
type: "archive-comment";
|
|
505
506
|
createdAt: string;
|
|
506
|
-
id: string;
|
|
507
507
|
workflowId: string;
|
|
508
508
|
commentId: string;
|
|
509
509
|
priorStage?: string | undefined;
|
|
510
510
|
}, {
|
|
511
|
+
id: string;
|
|
511
512
|
type: "archive-comment";
|
|
512
513
|
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;
|
|
522
520
|
annotation: {
|
|
521
|
+
id: string;
|
|
523
522
|
type: "comment";
|
|
524
|
-
createdAt: string;
|
|
525
523
|
version: number;
|
|
526
|
-
|
|
524
|
+
createdAt: string;
|
|
525
|
+
workflowId: string;
|
|
527
526
|
range: {
|
|
528
527
|
start: number;
|
|
529
528
|
end: number;
|
|
530
529
|
};
|
|
531
530
|
text: string;
|
|
532
|
-
workflowId: string;
|
|
533
|
-
category?: "voice-drift" | "missing-receipt" | "tutorial-framing" | "saas-vocabulary" | "fake-authority" | "structural" | "other" | undefined;
|
|
534
531
|
anchor?: string | undefined;
|
|
532
|
+
category?: "other" | "voice-drift" | "missing-receipt" | "tutorial-framing" | "saas-vocabulary" | "fake-authority" | "structural" | undefined;
|
|
535
533
|
} | {
|
|
534
|
+
id: string;
|
|
536
535
|
type: "edit";
|
|
537
536
|
createdAt: string;
|
|
538
|
-
id: string;
|
|
539
537
|
workflowId: string;
|
|
540
538
|
beforeVersion: number;
|
|
541
539
|
afterMarkdown: string;
|
|
542
540
|
diff: string;
|
|
543
541
|
} | {
|
|
542
|
+
id: string;
|
|
544
543
|
type: "approve";
|
|
545
|
-
createdAt: string;
|
|
546
544
|
version: number;
|
|
547
|
-
|
|
545
|
+
createdAt: string;
|
|
548
546
|
workflowId: string;
|
|
549
547
|
} | {
|
|
548
|
+
id: string;
|
|
550
549
|
type: "reject";
|
|
551
|
-
createdAt: string;
|
|
552
550
|
version: number;
|
|
553
|
-
|
|
551
|
+
createdAt: string;
|
|
554
552
|
workflowId: string;
|
|
555
553
|
reason?: string | undefined;
|
|
556
554
|
} | {
|
|
555
|
+
id: string;
|
|
557
556
|
type: "resolve";
|
|
558
557
|
createdAt: string;
|
|
559
|
-
id: string;
|
|
560
558
|
workflowId: string;
|
|
561
559
|
commentId: string;
|
|
562
560
|
resolved: boolean;
|
|
563
561
|
} | {
|
|
562
|
+
id: string;
|
|
564
563
|
type: "address";
|
|
565
|
-
createdAt: string;
|
|
566
564
|
version: number;
|
|
567
|
-
|
|
568
|
-
disposition: "addressed" | "deferred" | "wontfix";
|
|
565
|
+
createdAt: string;
|
|
569
566
|
workflowId: string;
|
|
570
567
|
commentId: string;
|
|
568
|
+
disposition: "addressed" | "deferred" | "wontfix";
|
|
571
569
|
reason?: string | undefined;
|
|
572
570
|
} | {
|
|
571
|
+
id: string;
|
|
573
572
|
type: "edit-comment";
|
|
574
573
|
createdAt: string;
|
|
575
|
-
id: string;
|
|
576
574
|
workflowId: string;
|
|
577
575
|
commentId: string;
|
|
576
|
+
anchor?: string | undefined;
|
|
578
577
|
range?: {
|
|
579
578
|
start: number;
|
|
580
579
|
end: number;
|
|
581
580
|
} | undefined;
|
|
582
581
|
text?: string | undefined;
|
|
583
|
-
category?: "voice-drift" | "missing-receipt" | "tutorial-framing" | "saas-vocabulary" | "fake-authority" | "structural" |
|
|
584
|
-
anchor?: string | undefined;
|
|
582
|
+
category?: "other" | "voice-drift" | "missing-receipt" | "tutorial-framing" | "saas-vocabulary" | "fake-authority" | "structural" | undefined;
|
|
585
583
|
} | {
|
|
584
|
+
id: string;
|
|
586
585
|
type: "delete-comment";
|
|
587
586
|
createdAt: string;
|
|
588
|
-
id: string;
|
|
589
587
|
workflowId: string;
|
|
590
588
|
commentId: string;
|
|
591
589
|
} | {
|
|
590
|
+
id: string;
|
|
592
591
|
type: "archive-comment";
|
|
593
592
|
createdAt: string;
|
|
594
|
-
id: string;
|
|
595
593
|
workflowId: string;
|
|
596
594
|
commentId: string;
|
|
597
595
|
priorStage?: string | undefined;
|
|
598
596
|
};
|
|
599
|
-
}, {
|
|
600
|
-
at: string;
|
|
601
597
|
kind: "entry-annotation";
|
|
602
598
|
entryId: string;
|
|
599
|
+
}, {
|
|
600
|
+
at: string;
|
|
603
601
|
annotation: {
|
|
602
|
+
id: string;
|
|
604
603
|
type: "comment";
|
|
605
|
-
createdAt: string;
|
|
606
604
|
version: number;
|
|
607
|
-
|
|
605
|
+
createdAt: string;
|
|
606
|
+
workflowId: string;
|
|
608
607
|
range: {
|
|
609
608
|
start: number;
|
|
610
609
|
end: number;
|
|
611
610
|
};
|
|
612
611
|
text: string;
|
|
613
|
-
workflowId: string;
|
|
614
|
-
category?: "voice-drift" | "missing-receipt" | "tutorial-framing" | "saas-vocabulary" | "fake-authority" | "structural" | "other" | undefined;
|
|
615
612
|
anchor?: string | undefined;
|
|
613
|
+
category?: "other" | "voice-drift" | "missing-receipt" | "tutorial-framing" | "saas-vocabulary" | "fake-authority" | "structural" | undefined;
|
|
616
614
|
} | {
|
|
615
|
+
id: string;
|
|
617
616
|
type: "edit";
|
|
618
617
|
createdAt: string;
|
|
619
|
-
id: string;
|
|
620
618
|
workflowId: string;
|
|
621
619
|
beforeVersion: number;
|
|
622
620
|
afterMarkdown: string;
|
|
623
621
|
diff: string;
|
|
624
622
|
} | {
|
|
623
|
+
id: string;
|
|
625
624
|
type: "approve";
|
|
626
|
-
createdAt: string;
|
|
627
625
|
version: number;
|
|
628
|
-
|
|
626
|
+
createdAt: string;
|
|
629
627
|
workflowId: string;
|
|
630
628
|
} | {
|
|
629
|
+
id: string;
|
|
631
630
|
type: "reject";
|
|
632
|
-
createdAt: string;
|
|
633
631
|
version: number;
|
|
634
|
-
|
|
632
|
+
createdAt: string;
|
|
635
633
|
workflowId: string;
|
|
636
634
|
reason?: string | undefined;
|
|
637
635
|
} | {
|
|
636
|
+
id: string;
|
|
638
637
|
type: "resolve";
|
|
639
638
|
createdAt: string;
|
|
640
|
-
id: string;
|
|
641
639
|
workflowId: string;
|
|
642
640
|
commentId: string;
|
|
643
641
|
resolved: boolean;
|
|
644
642
|
} | {
|
|
643
|
+
id: string;
|
|
645
644
|
type: "address";
|
|
646
|
-
createdAt: string;
|
|
647
645
|
version: number;
|
|
648
|
-
|
|
649
|
-
disposition: "addressed" | "deferred" | "wontfix";
|
|
646
|
+
createdAt: string;
|
|
650
647
|
workflowId: string;
|
|
651
648
|
commentId: string;
|
|
649
|
+
disposition: "addressed" | "deferred" | "wontfix";
|
|
652
650
|
reason?: string | undefined;
|
|
653
651
|
} | {
|
|
652
|
+
id: string;
|
|
654
653
|
type: "edit-comment";
|
|
655
654
|
createdAt: string;
|
|
656
|
-
id: string;
|
|
657
655
|
workflowId: string;
|
|
658
656
|
commentId: string;
|
|
657
|
+
anchor?: string | undefined;
|
|
659
658
|
range?: {
|
|
660
659
|
start: number;
|
|
661
660
|
end: number;
|
|
662
661
|
} | undefined;
|
|
663
662
|
text?: string | undefined;
|
|
664
|
-
category?: "voice-drift" | "missing-receipt" | "tutorial-framing" | "saas-vocabulary" | "fake-authority" | "structural" |
|
|
665
|
-
anchor?: string | undefined;
|
|
663
|
+
category?: "other" | "voice-drift" | "missing-receipt" | "tutorial-framing" | "saas-vocabulary" | "fake-authority" | "structural" | undefined;
|
|
666
664
|
} | {
|
|
665
|
+
id: string;
|
|
667
666
|
type: "delete-comment";
|
|
668
667
|
createdAt: string;
|
|
669
|
-
id: string;
|
|
670
668
|
workflowId: string;
|
|
671
669
|
commentId: string;
|
|
672
670
|
} | {
|
|
671
|
+
id: string;
|
|
673
672
|
type: "archive-comment";
|
|
674
673
|
createdAt: string;
|
|
675
|
-
id: string;
|
|
676
674
|
workflowId: string;
|
|
677
675
|
commentId: string;
|
|
678
676
|
priorStage?: string | undefined;
|
|
679
677
|
};
|
|
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.23.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",
|