@fungi.computer/workflows-wire 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Jamstack Consulting LLC
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,45 @@
1
- # Temporary Holding Version
1
+ # Workflow wire
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Workflow run and request IDs, plus the generic graph reply schemas (catalog,
4
+ start, status, cancel, review, schedules and event triggers), live at the root.
5
+ Hub and the Trellis App consume this package without an App-to-App dependency.
6
+
7
+ ## Packed consumer readiness
8
+
9
+ Run `pnpm run build`, `pnpm run pack` and `pnpm run stranger` in this package.
10
+ The maintained stranger proof installs only package tarballs into a fresh npm
11
+ consumer, checks the exact shipped files, runs the public runtime fixture and
12
+ compiles every JavaScript entrypoint with strict NodeNext and no library-check
13
+ skip. This qualification does not publish npm releases or push a repository
14
+ split.
15
+
16
+ See [LICENSE](LICENSE) for the license and the package manifest for its public
17
+ repository destination.
18
+
19
+ ## Quick start
20
+
21
+ ```ts
22
+ import { workflowRunRequestIds } from "@fungi.computer/workflows-wire";
23
+
24
+ const requestId = workflowRunRequestIds.request.generate();
25
+ console.log(workflowRunRequestIds.request.parse(requestId).ok);
26
+ ```
27
+
28
+ ## Core concepts
29
+
30
+ Identifiers and decoded wire values are data contracts. This package does not
31
+ own workflow execution, App admission or run persistence.
32
+
33
+ ## Examples and checks
34
+
35
+ The packed runtime fixture at `test/stranger/runtime.mjs` exercises the public
36
+ API in a fresh consumer. Run `pnpm run stranger` after building the package.
37
+
38
+ ## Install
39
+
40
+ Install the package tarball with npm. The manifest pins its runtime
41
+ dependencies.
42
+
43
+ ## Contribute and license
44
+
45
+ See [LICENSE](LICENSE) for the MIT terms.
@@ -0,0 +1,7 @@
1
+ export * from "./run-ids.js";
2
+ export * from "./outcomes.js";
3
+ export * from "./library-contracts.js";
4
+ export * from "./run-contracts.js";
5
+ export * from "./trigger-contracts.js";
6
+ export * from "./published-definition.js";
7
+ export * from "./workflow-repository.js";
package/dist/index.js ADDED
@@ -0,0 +1,7 @@
1
+ export * from "./run-ids.js";
2
+ export * from "./outcomes.js";
3
+ export * from "./library-contracts.js";
4
+ export * from "./run-contracts.js";
5
+ export * from "./trigger-contracts.js";
6
+ export * from "./published-definition.js";
7
+ export * from "./workflow-repository.js";
@@ -0,0 +1,501 @@
1
+ import * as z from "zod";
2
+ export declare const provenanceSchema: z.ZodLazy<z.ZodUnion<readonly [z.ZodObject<{
3
+ kind: z.ZodLiteral<"import">;
4
+ workflowId: z.ZodString;
5
+ version: z.ZodNumber;
6
+ commit: z.ZodString;
7
+ sha256: z.ZodString & z.ZodType<string & {
8
+ readonly appReleaseKind: "Sha256Digest";
9
+ }, string, z.core.$ZodTypeInternals<string & {
10
+ readonly appReleaseKind: "Sha256Digest";
11
+ }, string>>;
12
+ origin: z.ZodOptional<z.ZodString>;
13
+ }, z.core.$strict>, z.ZodObject<{
14
+ kind: z.ZodLiteral<"fork">;
15
+ workflowId: z.ZodString;
16
+ commit: z.ZodString;
17
+ }, z.core.$strict>]>>;
18
+ export declare const runBase: z.ZodObject<{
19
+ requestId: z.ZodString;
20
+ workflowId: z.ZodString;
21
+ bindings: z.ZodRecord<z.ZodLazy<z.ZodString>, z.ZodUnion<readonly [z.ZodString, z.ZodLazy<z.ZodObject<{
22
+ kind: z.ZodLiteral<"team-source">;
23
+ }, z.core.$strict>>]>>;
24
+ input: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
25
+ delivery: z.ZodOptional<z.ZodObject<{
26
+ agentId: z.ZodString;
27
+ sessionId: z.ZodString;
28
+ }, z.core.$strict>>;
29
+ }, z.core.$strict>;
30
+ export declare const publishedRun: z.ZodLazy<z.ZodUnion<readonly [z.ZodObject<{
31
+ requestId: z.ZodString;
32
+ workflowId: z.ZodString;
33
+ bindings: z.ZodRecord<z.ZodLazy<z.ZodString>, z.ZodUnion<readonly [z.ZodString, z.ZodLazy<z.ZodObject<{
34
+ kind: z.ZodLiteral<"team-source">;
35
+ }, z.core.$strict>>]>>;
36
+ input: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
37
+ delivery: z.ZodOptional<z.ZodObject<{
38
+ agentId: z.ZodString;
39
+ sessionId: z.ZodString;
40
+ }, z.core.$strict>>;
41
+ version: z.ZodNumber;
42
+ }, z.core.$strict>, z.ZodObject<{
43
+ requestId: z.ZodString;
44
+ workflowId: z.ZodString;
45
+ bindings: z.ZodRecord<z.ZodLazy<z.ZodString>, z.ZodUnion<readonly [z.ZodString, z.ZodLazy<z.ZodObject<{
46
+ kind: z.ZodLiteral<"team-source">;
47
+ }, z.core.$strict>>]>>;
48
+ input: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
49
+ delivery: z.ZodOptional<z.ZodObject<{
50
+ agentId: z.ZodString;
51
+ sessionId: z.ZodString;
52
+ }, z.core.$strict>>;
53
+ commit: z.ZodString;
54
+ }, z.core.$strict>]>>;
55
+ export declare const document: z.ZodObject<{
56
+ provenance: z.ZodOptional<z.ZodLazy<z.ZodUnion<readonly [z.ZodObject<{
57
+ kind: z.ZodLiteral<"import">;
58
+ workflowId: z.ZodString;
59
+ version: z.ZodNumber;
60
+ commit: z.ZodString;
61
+ sha256: z.ZodString & z.ZodType<string & {
62
+ readonly appReleaseKind: "Sha256Digest";
63
+ }, string, z.core.$ZodTypeInternals<string & {
64
+ readonly appReleaseKind: "Sha256Digest";
65
+ }, string>>;
66
+ origin: z.ZodOptional<z.ZodString>;
67
+ }, z.core.$strict>, z.ZodObject<{
68
+ kind: z.ZodLiteral<"fork">;
69
+ workflowId: z.ZodString;
70
+ commit: z.ZodString;
71
+ }, z.core.$strict>]>>>;
72
+ definition: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
73
+ layout: z.ZodRecord<z.ZodString, z.ZodObject<{
74
+ x: z.ZodNumber;
75
+ y: z.ZodNumber;
76
+ }, z.core.$strict>>;
77
+ commit: z.ZodString;
78
+ }, z.core.$strict>;
79
+ export declare const revisionSchema: z.ZodNumber;
80
+ export declare const draftDocument: z.ZodObject<{
81
+ provenance: z.ZodOptional<z.ZodLazy<z.ZodUnion<readonly [z.ZodObject<{
82
+ kind: z.ZodLiteral<"import">;
83
+ workflowId: z.ZodString;
84
+ version: z.ZodNumber;
85
+ commit: z.ZodString;
86
+ sha256: z.ZodString & z.ZodType<string & {
87
+ readonly appReleaseKind: "Sha256Digest";
88
+ }, string, z.core.$ZodTypeInternals<string & {
89
+ readonly appReleaseKind: "Sha256Digest";
90
+ }, string>>;
91
+ origin: z.ZodOptional<z.ZodString>;
92
+ }, z.core.$strict>, z.ZodObject<{
93
+ kind: z.ZodLiteral<"fork">;
94
+ workflowId: z.ZodString;
95
+ commit: z.ZodString;
96
+ }, z.core.$strict>]>>>;
97
+ definition: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
98
+ layout: z.ZodRecord<z.ZodString, z.ZodObject<{
99
+ x: z.ZodNumber;
100
+ y: z.ZodNumber;
101
+ }, z.core.$strict>>;
102
+ revision: z.ZodNumber;
103
+ }, z.core.$strict>;
104
+ export declare const publishedDocument: z.ZodObject<{
105
+ provenance: z.ZodOptional<z.ZodLazy<z.ZodUnion<readonly [z.ZodObject<{
106
+ kind: z.ZodLiteral<"import">;
107
+ workflowId: z.ZodString;
108
+ version: z.ZodNumber;
109
+ commit: z.ZodString;
110
+ sha256: z.ZodString & z.ZodType<string & {
111
+ readonly appReleaseKind: "Sha256Digest";
112
+ }, string, z.core.$ZodTypeInternals<string & {
113
+ readonly appReleaseKind: "Sha256Digest";
114
+ }, string>>;
115
+ origin: z.ZodOptional<z.ZodString>;
116
+ }, z.core.$strict>, z.ZodObject<{
117
+ kind: z.ZodLiteral<"fork">;
118
+ workflowId: z.ZodString;
119
+ commit: z.ZodString;
120
+ }, z.core.$strict>]>>>;
121
+ definition: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
122
+ layout: z.ZodRecord<z.ZodString, z.ZodObject<{
123
+ x: z.ZodNumber;
124
+ y: z.ZodNumber;
125
+ }, z.core.$strict>>;
126
+ commit: z.ZodString;
127
+ workflowId: z.ZodString;
128
+ version: z.ZodNumber;
129
+ digest: z.ZodString & z.ZodType<string & {
130
+ readonly appReleaseKind: "Sha256Digest";
131
+ }, string, z.core.$ZodTypeInternals<string & {
132
+ readonly appReleaseKind: "Sha256Digest";
133
+ }, string>>;
134
+ }, z.core.$strict>;
135
+ export declare const saveReply: z.ZodUnion<readonly [z.ZodObject<{
136
+ kind: z.ZodLiteral<"saved">;
137
+ revision: z.ZodNumber;
138
+ }, z.core.$strict>, z.ZodObject<{
139
+ kind: z.ZodLiteral<"conflict">;
140
+ current: z.ZodNullable<z.ZodObject<{
141
+ provenance: z.ZodOptional<z.ZodLazy<z.ZodUnion<readonly [z.ZodObject<{
142
+ kind: z.ZodLiteral<"import">;
143
+ workflowId: z.ZodString;
144
+ version: z.ZodNumber;
145
+ commit: z.ZodString;
146
+ sha256: z.ZodString & z.ZodType<string & {
147
+ readonly appReleaseKind: "Sha256Digest";
148
+ }, string, z.core.$ZodTypeInternals<string & {
149
+ readonly appReleaseKind: "Sha256Digest";
150
+ }, string>>;
151
+ origin: z.ZodOptional<z.ZodString>;
152
+ }, z.core.$strict>, z.ZodObject<{
153
+ kind: z.ZodLiteral<"fork">;
154
+ workflowId: z.ZodString;
155
+ commit: z.ZodString;
156
+ }, z.core.$strict>]>>>;
157
+ definition: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
158
+ layout: z.ZodRecord<z.ZodString, z.ZodObject<{
159
+ x: z.ZodNumber;
160
+ y: z.ZodNumber;
161
+ }, z.core.$strict>>;
162
+ revision: z.ZodNumber;
163
+ }, z.core.$strict>>;
164
+ }, z.core.$strict>, z.ZodObject<{
165
+ kind: z.ZodLiteral<"invalid">;
166
+ issues: z.ZodArray<z.ZodLazy<z.ZodObject<{
167
+ code: z.ZodString;
168
+ message: z.ZodString;
169
+ graph: z.ZodOptional<z.ZodString>;
170
+ node: z.ZodOptional<z.ZodString>;
171
+ trigger: z.ZodOptional<z.ZodString>;
172
+ port: z.ZodOptional<z.ZodString>;
173
+ edge: z.ZodOptional<z.ZodNumber>;
174
+ }, z.core.$strip>>>;
175
+ }, z.core.$strict>]>;
176
+ export declare const shareReview: z.ZodObject<{
177
+ gitAccess: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
178
+ binding: z.ZodLazy<z.ZodString>;
179
+ repository: z.ZodString;
180
+ branches: z.ZodLazy<z.ZodArray<z.ZodString>>;
181
+ graph: z.ZodString;
182
+ node: z.ZodString;
183
+ }, z.core.$strict>, z.ZodObject<{
184
+ binding: z.ZodLazy<z.ZodString>;
185
+ repository: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"$trigger.repository">]>;
186
+ access: z.ZodLiteral<"read">;
187
+ graph: z.ZodString;
188
+ node: z.ZodString;
189
+ }, z.core.$strict>]>>;
190
+ writeNodes: z.ZodArray<z.ZodObject<{
191
+ graph: z.ZodString;
192
+ node: z.ZodString;
193
+ appId: z.ZodString;
194
+ method: z.ZodString;
195
+ effect: z.ZodEnum<{
196
+ write: "write";
197
+ external: "external";
198
+ }>;
199
+ }, z.core.$strict>>;
200
+ triggers: z.ZodArray<z.ZodJSONSchema>;
201
+ }, z.core.$strict>;
202
+ export declare const shareCopyReply: z.ZodLazy<z.ZodUnion<readonly [z.ZodObject<{
203
+ kind: z.ZodLiteral<"saved">;
204
+ revision: z.ZodNumber;
205
+ title: z.ZodString;
206
+ review: z.ZodObject<{
207
+ gitAccess: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
208
+ binding: z.ZodLazy<z.ZodString>;
209
+ repository: z.ZodString;
210
+ branches: z.ZodLazy<z.ZodArray<z.ZodString>>;
211
+ graph: z.ZodString;
212
+ node: z.ZodString;
213
+ }, z.core.$strict>, z.ZodObject<{
214
+ binding: z.ZodLazy<z.ZodString>;
215
+ repository: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"$trigger.repository">]>;
216
+ access: z.ZodLiteral<"read">;
217
+ graph: z.ZodString;
218
+ node: z.ZodString;
219
+ }, z.core.$strict>]>>;
220
+ writeNodes: z.ZodArray<z.ZodObject<{
221
+ graph: z.ZodString;
222
+ node: z.ZodString;
223
+ appId: z.ZodString;
224
+ method: z.ZodString;
225
+ effect: z.ZodEnum<{
226
+ write: "write";
227
+ external: "external";
228
+ }>;
229
+ }, z.core.$strict>>;
230
+ triggers: z.ZodArray<z.ZodJSONSchema>;
231
+ }, z.core.$strict>;
232
+ }, z.core.$strict>, z.ZodObject<{
233
+ kind: z.ZodLiteral<"conflict">;
234
+ current: z.ZodNullable<z.ZodObject<{
235
+ provenance: z.ZodOptional<z.ZodLazy<z.ZodUnion<readonly [z.ZodObject<{
236
+ kind: z.ZodLiteral<"import">;
237
+ workflowId: z.ZodString;
238
+ version: z.ZodNumber;
239
+ commit: z.ZodString;
240
+ sha256: z.ZodString & z.ZodType<string & {
241
+ readonly appReleaseKind: "Sha256Digest";
242
+ }, string, z.core.$ZodTypeInternals<string & {
243
+ readonly appReleaseKind: "Sha256Digest";
244
+ }, string>>;
245
+ origin: z.ZodOptional<z.ZodString>;
246
+ }, z.core.$strict>, z.ZodObject<{
247
+ kind: z.ZodLiteral<"fork">;
248
+ workflowId: z.ZodString;
249
+ commit: z.ZodString;
250
+ }, z.core.$strict>]>>>;
251
+ definition: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
252
+ layout: z.ZodRecord<z.ZodString, z.ZodObject<{
253
+ x: z.ZodNumber;
254
+ y: z.ZodNumber;
255
+ }, z.core.$strict>>;
256
+ revision: z.ZodNumber;
257
+ }, z.core.$strict>>;
258
+ }, z.core.$strict>, z.ZodObject<{
259
+ kind: z.ZodLiteral<"invalid">;
260
+ issues: z.ZodArray<z.ZodLazy<z.ZodObject<{
261
+ code: z.ZodString;
262
+ message: z.ZodString;
263
+ graph: z.ZodOptional<z.ZodString>;
264
+ node: z.ZodOptional<z.ZodString>;
265
+ trigger: z.ZodOptional<z.ZodString>;
266
+ port: z.ZodOptional<z.ZodString>;
267
+ edge: z.ZodOptional<z.ZodNumber>;
268
+ }, z.core.$strip>>>;
269
+ }, z.core.$strict>, z.ZodObject<{
270
+ kind: z.ZodLiteral<"missing_apps">;
271
+ appIds: z.ZodArray<z.ZodString>;
272
+ }, z.core.$strict>, z.ZodObject<{
273
+ kind: z.ZodEnum<{
274
+ not_found: "not_found";
275
+ too_large: "too_large";
276
+ digest_mismatch: "digest_mismatch";
277
+ invalid_bundle: "invalid_bundle";
278
+ }>;
279
+ }, z.core.$strict>]>>;
280
+ export declare const shareExportReply: z.ZodLazy<z.ZodUnion<readonly [z.ZodObject<{
281
+ bytes: z.ZodString;
282
+ sha256: z.ZodString & z.ZodType<string & {
283
+ readonly appReleaseKind: "Sha256Digest";
284
+ }, string, z.core.$ZodTypeInternals<string & {
285
+ readonly appReleaseKind: "Sha256Digest";
286
+ }, string>>;
287
+ }, z.core.$strict>, z.ZodObject<{
288
+ kind: z.ZodEnum<{
289
+ not_found: "not_found";
290
+ too_large: "too_large";
291
+ }>;
292
+ }, z.core.$strict>]>>;
293
+ export declare const publicationIds: Readonly<{
294
+ readonly publication: import("@fungi.computer/cairn/id").IdCodec<"workflow-publication", "publication", 1>;
295
+ }>;
296
+ export declare const publicationIdSchema: z.ZodLazy<z.ZodString & z.ZodType<import("@fungi.computer/cairn/id").CairnId<"workflow-publication", "publication", 1>, string, z.core.$ZodTypeInternals<import("@fungi.computer/cairn/id").CairnId<"workflow-publication", "publication", 1>, string>>>;
297
+ export declare const publicationFailure: z.ZodEnum<{
298
+ too_large: "too_large";
299
+ git_conflict: "git_conflict";
300
+ publication_failed: "publication_failed";
301
+ access_changed: "access_changed";
302
+ }>;
303
+ export declare const publicationComplete: z.ZodLazy<z.ZodObject<{
304
+ kind: z.ZodLiteral<"published">;
305
+ commit: z.ZodString;
306
+ version: z.ZodNumber;
307
+ }, z.core.$strict>>;
308
+ export declare const publicationPending: z.ZodLazy<z.ZodObject<{
309
+ kind: z.ZodLiteral<"publishing">;
310
+ publicationId: z.ZodLazy<z.ZodString & z.ZodType<import("@fungi.computer/cairn/id").CairnId<"workflow-publication", "publication", 1>, string, z.core.$ZodTypeInternals<import("@fungi.computer/cairn/id").CairnId<"workflow-publication", "publication", 1>, string>>>;
311
+ }, z.core.$strict>>;
312
+ export declare const publicationFailed: z.ZodLazy<z.ZodObject<{
313
+ kind: z.ZodLiteral<"failed">;
314
+ reason: z.ZodEnum<{
315
+ too_large: "too_large";
316
+ git_conflict: "git_conflict";
317
+ publication_failed: "publication_failed";
318
+ access_changed: "access_changed";
319
+ }>;
320
+ }, z.core.$strict>>;
321
+ export declare const publicationStatus: z.ZodLazy<z.ZodUnion<readonly [z.ZodLazy<z.ZodObject<{
322
+ kind: z.ZodLiteral<"publishing">;
323
+ publicationId: z.ZodLazy<z.ZodString & z.ZodType<import("@fungi.computer/cairn/id").CairnId<"workflow-publication", "publication", 1>, string, z.core.$ZodTypeInternals<import("@fungi.computer/cairn/id").CairnId<"workflow-publication", "publication", 1>, string>>>;
324
+ }, z.core.$strict>>, z.ZodLazy<z.ZodObject<{
325
+ kind: z.ZodLiteral<"published">;
326
+ commit: z.ZodString;
327
+ version: z.ZodNumber;
328
+ }, z.core.$strict>>, z.ZodLazy<z.ZodObject<{
329
+ kind: z.ZodLiteral<"failed">;
330
+ reason: z.ZodEnum<{
331
+ too_large: "too_large";
332
+ git_conflict: "git_conflict";
333
+ publication_failed: "publication_failed";
334
+ access_changed: "access_changed";
335
+ }>;
336
+ }, z.core.$strict>>, z.ZodObject<{
337
+ kind: z.ZodLiteral<"not_found">;
338
+ }, z.core.$strict>]>>;
339
+ export declare const publicationElsewhere: z.ZodLazy<z.ZodObject<{
340
+ kind: z.ZodLiteral<"publishing_elsewhere">;
341
+ }, z.core.$strict>>;
342
+ export declare const publishReply: z.ZodLazy<z.ZodUnion<readonly [z.ZodLazy<z.ZodObject<{
343
+ kind: z.ZodLiteral<"publishing_elsewhere">;
344
+ }, z.core.$strict>>, z.ZodLazy<z.ZodObject<{
345
+ kind: z.ZodLiteral<"published">;
346
+ commit: z.ZodString;
347
+ version: z.ZodNumber;
348
+ }, z.core.$strict>>, z.ZodLazy<z.ZodObject<{
349
+ kind: z.ZodLiteral<"publishing">;
350
+ publicationId: z.ZodLazy<z.ZodString & z.ZodType<import("@fungi.computer/cairn/id").CairnId<"workflow-publication", "publication", 1>, string, z.core.$ZodTypeInternals<import("@fungi.computer/cairn/id").CairnId<"workflow-publication", "publication", 1>, string>>>;
351
+ }, z.core.$strict>>, z.ZodLazy<z.ZodObject<{
352
+ kind: z.ZodLiteral<"failed">;
353
+ reason: z.ZodEnum<{
354
+ too_large: "too_large";
355
+ git_conflict: "git_conflict";
356
+ publication_failed: "publication_failed";
357
+ access_changed: "access_changed";
358
+ }>;
359
+ }, z.core.$strict>>, z.ZodObject<{
360
+ kind: z.ZodLiteral<"conflict">;
361
+ head: z.ZodNullable<z.ZodString>;
362
+ }, z.core.$strict>, z.ZodObject<{
363
+ kind: z.ZodLiteral<"invalid">;
364
+ issues: z.ZodArray<z.ZodLazy<z.ZodObject<{
365
+ code: z.ZodString;
366
+ message: z.ZodString;
367
+ graph: z.ZodOptional<z.ZodString>;
368
+ node: z.ZodOptional<z.ZodString>;
369
+ trigger: z.ZodOptional<z.ZodString>;
370
+ port: z.ZodOptional<z.ZodString>;
371
+ edge: z.ZodOptional<z.ZodNumber>;
372
+ }, z.core.$strip>>>;
373
+ }, z.core.$strict>]>>;
374
+ export declare const version: z.ZodObject<{
375
+ version: z.ZodNumber;
376
+ commit: z.ZodString;
377
+ committedAt: z.ZodNumber;
378
+ message: z.ZodString;
379
+ }, z.core.$strict>;
380
+ export declare const workflow: z.ZodObject<{
381
+ workflowId: z.ZodString;
382
+ }, z.core.$strict>;
383
+ export declare const listings: z.ZodLazy<z.ZodArray<z.ZodObject<{
384
+ workflowId: z.ZodString;
385
+ title: z.ZodString;
386
+ draftRevision: z.ZodNullable<z.ZodNumber>;
387
+ published: z.ZodNullable<z.ZodObject<{
388
+ commit: z.ZodString;
389
+ version: z.ZodNullable<z.ZodNumber>;
390
+ }, z.core.$strict>>;
391
+ }, z.core.$strict>>>;
392
+ export declare const history: z.ZodArray<z.ZodObject<{
393
+ message: z.ZodString;
394
+ commit: z.ZodString;
395
+ committedAt: z.ZodNumber;
396
+ }, z.core.$strict>>;
397
+ /** A missing index is not an empty Git repository; only write paths reconstruct it. */
398
+ export declare const libraryPageInput: z.ZodLazy<z.ZodObject<{
399
+ limit: z.ZodDefault<z.ZodNumber>;
400
+ after: z.ZodOptional<z.ZodString>;
401
+ }, z.core.$strict>>;
402
+ export declare const libraryPage: z.ZodLazy<z.ZodObject<{
403
+ items: z.ZodLazy<z.ZodArray<z.ZodObject<{
404
+ workflowId: z.ZodString;
405
+ title: z.ZodString;
406
+ draftRevision: z.ZodNullable<z.ZodNumber>;
407
+ published: z.ZodNullable<z.ZodObject<{
408
+ commit: z.ZodString;
409
+ version: z.ZodNullable<z.ZodNumber>;
410
+ }, z.core.$strict>>;
411
+ }, z.core.$strict>>>;
412
+ next: z.ZodOptional<z.ZodString>;
413
+ }, z.core.$strict>>;
414
+ export declare const libraryListing: z.ZodLazy<z.ZodUnion<readonly [z.ZodLazy<z.ZodObject<{
415
+ items: z.ZodLazy<z.ZodArray<z.ZodObject<{
416
+ workflowId: z.ZodString;
417
+ title: z.ZodString;
418
+ draftRevision: z.ZodNullable<z.ZodNumber>;
419
+ published: z.ZodNullable<z.ZodObject<{
420
+ commit: z.ZodString;
421
+ version: z.ZodNullable<z.ZodNumber>;
422
+ }, z.core.$strict>>;
423
+ }, z.core.$strict>>>;
424
+ next: z.ZodOptional<z.ZodString>;
425
+ }, z.core.$strict>>, z.ZodObject<{
426
+ kind: z.ZodLiteral<"unindexed">;
427
+ }, z.core.$strict>]>>;
428
+ /** A missing screen copy needs an explicit foreground rebuild, never a hidden Git read. */
429
+ export declare const rebuilding: z.ZodLazy<z.ZodObject<{
430
+ kind: z.ZodLiteral<"rebuilding">;
431
+ }, z.core.$strict>>;
432
+ export declare const documentRead: z.ZodLazy<z.ZodUnion<readonly [z.ZodObject<{
433
+ provenance: z.ZodOptional<z.ZodLazy<z.ZodUnion<readonly [z.ZodObject<{
434
+ kind: z.ZodLiteral<"import">;
435
+ workflowId: z.ZodString;
436
+ version: z.ZodNumber;
437
+ commit: z.ZodString;
438
+ sha256: z.ZodString & z.ZodType<string & {
439
+ readonly appReleaseKind: "Sha256Digest";
440
+ }, string, z.core.$ZodTypeInternals<string & {
441
+ readonly appReleaseKind: "Sha256Digest";
442
+ }, string>>;
443
+ origin: z.ZodOptional<z.ZodString>;
444
+ }, z.core.$strict>, z.ZodObject<{
445
+ kind: z.ZodLiteral<"fork">;
446
+ workflowId: z.ZodString;
447
+ commit: z.ZodString;
448
+ }, z.core.$strict>]>>>;
449
+ definition: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
450
+ layout: z.ZodRecord<z.ZodString, z.ZodObject<{
451
+ x: z.ZodNumber;
452
+ y: z.ZodNumber;
453
+ }, z.core.$strict>>;
454
+ revision: z.ZodNumber;
455
+ }, z.core.$strict>, z.ZodObject<{
456
+ provenance: z.ZodOptional<z.ZodLazy<z.ZodUnion<readonly [z.ZodObject<{
457
+ kind: z.ZodLiteral<"import">;
458
+ workflowId: z.ZodString;
459
+ version: z.ZodNumber;
460
+ commit: z.ZodString;
461
+ sha256: z.ZodString & z.ZodType<string & {
462
+ readonly appReleaseKind: "Sha256Digest";
463
+ }, string, z.core.$ZodTypeInternals<string & {
464
+ readonly appReleaseKind: "Sha256Digest";
465
+ }, string>>;
466
+ origin: z.ZodOptional<z.ZodString>;
467
+ }, z.core.$strict>, z.ZodObject<{
468
+ kind: z.ZodLiteral<"fork">;
469
+ workflowId: z.ZodString;
470
+ commit: z.ZodString;
471
+ }, z.core.$strict>]>>>;
472
+ definition: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
473
+ layout: z.ZodRecord<z.ZodString, z.ZodObject<{
474
+ x: z.ZodNumber;
475
+ y: z.ZodNumber;
476
+ }, z.core.$strict>>;
477
+ commit: z.ZodString;
478
+ }, z.core.$strict>, z.ZodNull, z.ZodLazy<z.ZodObject<{
479
+ kind: z.ZodLiteral<"rebuilding">;
480
+ }, z.core.$strict>>]>>;
481
+ export declare const versionsRead: z.ZodLazy<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
482
+ version: z.ZodNumber;
483
+ commit: z.ZodString;
484
+ committedAt: z.ZodNumber;
485
+ message: z.ZodString;
486
+ }, z.core.$strict>>, z.ZodLazy<z.ZodObject<{
487
+ kind: z.ZodLiteral<"rebuilding">;
488
+ }, z.core.$strict>>]>>;
489
+ export declare const rebuildCopiesInput: z.ZodLazy<z.ZodObject<{
490
+ cursor: z.ZodNullable<z.ZodString>;
491
+ target: z.ZodOptional<z.ZodObject<{
492
+ workflowId: z.ZodString;
493
+ at: z.ZodObject<{
494
+ commit: z.ZodString;
495
+ }, z.core.$strict>;
496
+ }, z.core.$strict>>;
497
+ }, z.core.$strict>>;
498
+ export declare const rebuildCopiesReply: z.ZodLazy<z.ZodObject<{
499
+ done: z.ZodBoolean;
500
+ cursor: z.ZodNullable<z.ZodString>;
501
+ }, z.core.$strict>>;