@fungi.computer/workflows-wire 0.0.1 → 0.2.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.
@@ -6,7 +6,8 @@ import { sha256DigestSchema } from "@fungi.computer/puffball/effect";
6
6
  import { gitAccessSchema, bindingsSelectionSchema, } from "@fungi.computer/braid/git-access";
7
7
  import { gitSha1Schema } from "@fungi.computer/puffball/git-representation";
8
8
  import { workflowIdSchema, workflowIssueSchema as issueSchema, } from "./outcomes.js";
9
- export const provenanceSchema = z.union([
9
+ /** Source Workflow and commit recorded when importing or forking a document. */
10
+ export const provenanceSchema = z.lazy(() => z.union([
10
11
  z.strictObject({
11
12
  kind: z.literal("import"),
12
13
  workflowId: workflowIdSchema,
@@ -20,8 +21,9 @@ export const provenanceSchema = z.union([
20
21
  workflowId: workflowIdSchema,
21
22
  commit: gitSha1Schema,
22
23
  }),
23
- ]);
24
+ ]));
24
25
  const identity = z.string().min(1).max(256);
26
+ /** Shared run request fields: identity, bindings, JSON input and optional delivery. */
25
27
  export const runBase = z.strictObject({
26
28
  requestId: identity,
27
29
  workflowId: workflowIdSchema,
@@ -29,10 +31,12 @@ export const runBase = z.strictObject({
29
31
  input: z.record(z.string(), z.json()),
30
32
  delivery: runDeliverySchema.optional(),
31
33
  });
32
- export const publishedRun = z.union([
34
+ /** Run request pinned to either a published version or an exact Git commit. */
35
+ export const publishedRun = z.lazy(() => z.union([
33
36
  runBase.extend({ version: z.number().int().positive() }),
34
37
  runBase.extend({ commit: gitSha1Schema }),
35
- ]);
38
+ ]));
39
+ /** Wire document containing definition, node layout, provenance and commit. */
36
40
  export const document = z.strictObject({
37
41
  provenance: provenanceSchema.optional(),
38
42
  definition: z.record(z.string(), z.json()),
@@ -43,15 +47,19 @@ const invalid = z.strictObject({
43
47
  kind: z.literal("invalid"),
44
48
  issues: z.array(issueSchema),
45
49
  });
50
+ /** Nonnegative revision used to fence draft replacements. */
46
51
  export const revisionSchema = z.number().int().nonnegative();
52
+ /** Editable document with a draft revision instead of a published commit. */
47
53
  export const draftDocument = document
48
54
  .omit({ commit: true })
49
55
  .extend({ revision: revisionSchema });
56
+ /** Published document identified by Workflow, version, commit and content digest. */
50
57
  export const publishedDocument = document.extend({
51
58
  workflowId: workflowIdSchema,
52
59
  version: z.number().int().positive(),
53
60
  digest: z.string().refine(S.is(sha256DigestSchema)),
54
61
  });
62
+ /** Draft save result, including revision conflict or validation issues. */
55
63
  export const saveReply = z.union([
56
64
  z.strictObject({ kind: z.literal("saved"), revision: revisionSchema }),
57
65
  z.strictObject({
@@ -61,6 +69,7 @@ export const saveReply = z.union([
61
69
  invalid,
62
70
  ]);
63
71
  const reviewedNode = { graph: z.string(), node: z.string() };
72
+ /** Share review listing Git access, write/external nodes and trigger configuration. */
64
73
  export const shareReview = z.strictObject({
65
74
  gitAccess: z.array(z.union([
66
75
  gitAccessSchema.options[0].extend(reviewedNode),
@@ -76,7 +85,8 @@ export const shareReview = z.strictObject({
76
85
  // Definition decoding owns trigger grammar; this reply transports configuration only.
77
86
  triggers: z.array(z.json()),
78
87
  });
79
- export const shareCopyReply = z.union([
88
+ /** Import/fork result with the saved draft and review, or a typed refusal. */
89
+ export const shareCopyReply = z.lazy(() => z.union([
80
90
  z.strictObject({
81
91
  kind: z.literal("saved"),
82
92
  revision: revisionSchema,
@@ -97,53 +107,63 @@ export const shareCopyReply = z.union([
97
107
  "not_found",
98
108
  ]),
99
109
  }),
100
- ]);
101
- export const shareExportReply = z.union([
110
+ ]));
111
+ /** Exported bundle bytes and digest, or a missing/oversized bundle result. */
112
+ export const shareExportReply = z.lazy(() => z.union([
102
113
  z.strictObject({
103
114
  bytes: z.string(),
104
115
  sha256: z.string().refine(S.is(sha256DigestSchema)),
105
116
  }),
106
117
  z.strictObject({ kind: z.enum(["not_found", "too_large"]) }),
107
- ]);
118
+ ]));
119
+ /** Mint and validate identities for asynchronous Workflow publication attempts. */
108
120
  export const publicationIds = defineIdFamily({
109
121
  family: "workflow-publication",
110
122
  version: 1,
111
123
  kinds: { publication: { prefix: "publication" } },
112
124
  });
113
- export const publicationIdSchema = z
125
+ /** Publication identity accepted by the maintained publication id family. */
126
+ export const publicationIdSchema = z.lazy(() => z
114
127
  .string()
115
128
  .min(1)
116
129
  .max(256)
117
- .refine((value) => publicationIds.publication.is(value));
130
+ .refine((value) => publicationIds.publication.is(value)));
131
+ /** Publication failure categories returned by the host. */
118
132
  export const publicationFailure = z.enum([
119
133
  "git_conflict",
120
134
  "publication_failed",
121
135
  "too_large",
122
136
  "access_changed",
123
137
  ]);
124
- export const publicationComplete = z.strictObject({
138
+ /** Completed publication's exact commit and assigned version. */
139
+ export const publicationComplete = z.lazy(() => z.strictObject({
125
140
  kind: z.literal("published"),
126
141
  commit: gitSha1Schema,
127
142
  version: z.number().int().positive(),
128
- });
129
- export const publicationPending = z.strictObject({
143
+ }));
144
+ /** Pending publication identified for subsequent status reads. */
145
+ export const publicationPending = z.lazy(() => z.strictObject({
130
146
  kind: z.literal("publishing"),
131
147
  publicationId: publicationIdSchema,
132
- });
133
- export const publicationFailed = z.strictObject({
148
+ }));
149
+ /** Failed publication and its typed failure reason. */
150
+ export const publicationFailed = z.lazy(() => z.strictObject({
134
151
  kind: z.literal("failed"),
135
152
  reason: publicationFailure,
136
- });
137
- export const publicationStatus = z.union([
153
+ }));
154
+ /** Current publication outcome, including an unknown publication identity. */
155
+ export const publicationStatus = z.lazy(() => z.union([
138
156
  publicationPending,
139
157
  publicationComplete,
140
158
  publicationFailed,
141
159
  z.strictObject({ kind: z.literal("not_found") }),
142
- ]);
143
- export const publicationElsewhere = z.strictObject({
160
+ ]));
161
+ /** Another publication attempt currently owns the publication operation. */
162
+ export const publicationElsewhere = z.lazy(() => z.strictObject({
144
163
  kind: z.literal("publishing_elsewhere"),
145
- });
146
- export const publishReply = z.union([
164
+ }));
165
+ /** Publication command result, including pending work, conflict or validation issues. */
166
+ export const publishReply = z.lazy(() => z.union([
147
167
  publicationElsewhere,
148
168
  publicationComplete,
149
169
  publicationPending,
@@ -153,15 +173,18 @@ export const publishReply = z.union([
153
173
  head: gitSha1Schema.nullable(),
154
174
  }),
155
175
  invalid,
156
- ]);
176
+ ]));
177
+ /** Published version with commit identity, commit time and commit message. */
157
178
  export const version = z.strictObject({
158
179
  version: z.number().int().positive(),
159
180
  commit: gitSha1Schema,
160
181
  committedAt: z.number(),
161
182
  message: z.string(),
162
183
  });
184
+ /** Identify one Workflow within the library. */
163
185
  export const workflow = z.strictObject({ workflowId: workflowIdSchema });
164
- export const listings = z
186
+ /** Bounded library rows with draft revision and optional published reference. */
187
+ export const listings = z.lazy(() => z
165
188
  .array(z.strictObject({
166
189
  workflowId: workflowIdSchema,
167
190
  title: z.string(),
@@ -173,39 +196,38 @@ export const listings = z
173
196
  })
174
197
  .nullable(),
175
198
  }))
176
- .max(100);
199
+ .max(100));
200
+ /** Bounded Git history rows without a published-version number. */
177
201
  export const history = z.array(version.omit({ version: true })).max(50);
178
202
  /** A missing index is not an empty Git repository; only write paths reconstruct it. */
179
- export const libraryPageInput = z.strictObject({
203
+ export const libraryPageInput = z.lazy(() => z.strictObject({
180
204
  limit: z.number().int().min(1).max(100).default(100),
181
205
  after: workflowIdSchema.optional(),
182
- });
183
- export const libraryPage = z.strictObject({
206
+ }));
207
+ /** One library page with an optional exclusive cursor for the next page. */
208
+ export const libraryPage = z.lazy(() => z.strictObject({
184
209
  items: listings,
185
210
  next: workflowIdSchema.optional(),
186
- });
187
- export const libraryListing = z.union([
188
- libraryPage,
189
- z.strictObject({ kind: z.literal("unindexed") }),
190
- ]);
211
+ }));
212
+ /** Indexed library page, or an explicit indication that its index is missing. */
213
+ export const libraryListing = z.lazy(() => z.union([libraryPage, z.strictObject({ kind: z.literal("unindexed") })]));
191
214
  /** A missing screen copy needs an explicit foreground rebuild, never a hidden Git read. */
192
- export const rebuilding = z.strictObject({ kind: z.literal("rebuilding") });
193
- export const documentRead = z.union([
194
- draftDocument,
195
- document,
196
- z.null(),
197
- rebuilding,
198
- ]);
199
- export const versionsRead = z.union([z.array(version), rebuilding]);
200
- export const rebuildCopiesInput = z.strictObject({
215
+ export const rebuilding = z.lazy(() => z.strictObject({ kind: z.literal("rebuilding") }));
216
+ /** Draft/published document read, absence, or an explicit copy-rebuild state. */
217
+ export const documentRead = z.lazy(() => z.union([draftDocument, document, z.null(), rebuilding]));
218
+ /** Published version rows, or an explicit copy-rebuild state. */
219
+ export const versionsRead = z.lazy(() => z.union([z.array(version), rebuilding]));
220
+ /** Bounded copy-rebuild continuation, optionally targeting one pinned document. */
221
+ export const rebuildCopiesInput = z.lazy(() => z.strictObject({
201
222
  cursor: z.string().max(1024).nullable(),
202
223
  target: workflow
203
224
  .extend({
204
225
  at: z.strictObject({ commit: gitSha1Schema }),
205
226
  })
206
227
  .optional(),
207
- });
208
- export const rebuildCopiesReply = z.strictObject({
228
+ }));
229
+ /** Copy-rebuild progress and the cursor needed to continue unfinished work. */
230
+ export const rebuildCopiesReply = z.lazy(() => z.strictObject({
209
231
  done: z.boolean(),
210
232
  cursor: z.string().max(1024).nullable(),
211
- });
233
+ }));
@@ -1,12 +1,14 @@
1
1
  import * as z from "zod";
2
+ /** Lowercase Workflow slug used by library files and host commands. */
2
3
  export declare const workflowIdSchema: z.ZodString;
3
- export declare const catalogInputSchema: z.ZodObject<{
4
+ /** Select the palette index, or one installation's complete port declarations. */
5
+ export declare const catalogInputSchema: z.ZodLazy<z.ZodObject<{
4
6
  installationId: z.ZodOptional<z.ZodString>;
5
- }, z.core.$strict>;
7
+ }, z.core.$strict>>;
6
8
  /** App method declarations admitted by the host for the current invocation. */
7
- export declare const catalogReplySchema: z.ZodUnion<readonly [z.ZodObject<{
8
- apps: z.ZodArray<z.ZodObject<{
9
- methods: z.ZodRecord<z.ZodString, z.ZodObject<{
9
+ export declare const catalogReplySchema: z.ZodLazy<z.ZodUnion<readonly [z.ZodObject<{
10
+ apps: z.ZodArray<z.ZodLazy<z.ZodObject<{
11
+ methods: z.ZodRecord<z.ZodString, z.ZodLazy<z.ZodObject<{
10
12
  pending: z.ZodOptional<z.ZodLiteral<true>>;
11
13
  description: z.ZodString;
12
14
  effect: z.ZodEnum<{
@@ -21,19 +23,21 @@ export declare const catalogReplySchema: z.ZodUnion<readonly [z.ZodObject<{
21
23
  }>;
22
24
  requires: z.ZodArray<z.ZodString>;
23
25
  digest: z.ZodString;
24
- }, z.core.$strict>>;
25
- events: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
26
+ }, z.core.$strict>>>;
27
+ events: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodLazy<z.ZodObject<{
26
28
  description: z.ZodString;
27
29
  digest: z.ZodString;
28
- }, z.core.$strict>>>;
30
+ }, z.core.$strict>>>>;
29
31
  installationId: z.ZodString;
30
32
  appId: z.ZodString;
31
33
  displayName: z.ZodString;
32
34
  icon: z.ZodOptional<z.ZodString>;
33
35
  capabilities: z.ZodOptional<z.ZodArray<z.ZodEnum<{
36
+ approvals: "approvals";
34
37
  "agent.list": "agent.list";
35
38
  "agent.manage": "agent.manage";
36
39
  "agent.rename": "agent.rename";
40
+ "agent.avatar": "agent.avatar";
37
41
  "agent.toolPolicy": "agent.toolPolicy";
38
42
  "agent.read": "agent.read";
39
43
  "agent.send": "agent.send";
@@ -61,9 +65,9 @@ export declare const catalogReplySchema: z.ZodUnion<readonly [z.ZodObject<{
61
65
  }>>>;
62
66
  workflowPublishGranted: z.ZodOptional<z.ZodBoolean>;
63
67
  workflowRunGranted: z.ZodOptional<z.ZodBoolean>;
64
- }, z.core.$strict>>;
68
+ }, z.core.$strict>>>;
65
69
  }, z.core.$strict>, z.ZodObject<{
66
- app: z.ZodObject<{
70
+ app: z.ZodLazy<z.ZodObject<{
67
71
  methods: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
68
72
  events: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
69
73
  installationId: z.ZodString;
@@ -71,9 +75,11 @@ export declare const catalogReplySchema: z.ZodUnion<readonly [z.ZodObject<{
71
75
  displayName: z.ZodString;
72
76
  icon: z.ZodOptional<z.ZodString>;
73
77
  capabilities: z.ZodOptional<z.ZodArray<z.ZodEnum<{
78
+ approvals: "approvals";
74
79
  "agent.list": "agent.list";
75
80
  "agent.manage": "agent.manage";
76
81
  "agent.rename": "agent.rename";
82
+ "agent.avatar": "agent.avatar";
77
83
  "agent.toolPolicy": "agent.toolPolicy";
78
84
  "agent.read": "agent.read";
79
85
  "agent.send": "agent.send";
@@ -101,11 +107,12 @@ export declare const catalogReplySchema: z.ZodUnion<readonly [z.ZodObject<{
101
107
  }>>>;
102
108
  workflowPublishGranted: z.ZodOptional<z.ZodBoolean>;
103
109
  workflowRunGranted: z.ZodOptional<z.ZodBoolean>;
104
- }, z.core.$strict>;
110
+ }, z.core.$strict>>;
105
111
  }, z.core.$strict>, z.ZodObject<{
106
112
  error: z.ZodString;
107
- }, z.core.$strict>]>;
108
- export declare const workflowIssueSchema: z.ZodObject<{
113
+ }, z.core.$strict>]>>;
114
+ /** Validation issue with optional graph, node, trigger, port or edge location. */
115
+ export declare const workflowIssueSchema: z.ZodLazy<z.ZodObject<{
109
116
  code: z.ZodString;
110
117
  message: z.ZodString;
111
118
  graph: z.ZodOptional<z.ZodString>;
@@ -113,8 +120,9 @@ export declare const workflowIssueSchema: z.ZodObject<{
113
120
  trigger: z.ZodOptional<z.ZodString>;
114
121
  port: z.ZodOptional<z.ZodString>;
115
122
  edge: z.ZodOptional<z.ZodNumber>;
116
- }, z.core.$strip>;
117
- export declare const runReply: z.ZodUnion<readonly [z.ZodObject<{
123
+ }, z.core.$strip>>;
124
+ /** Run admission result, including replay/conflict, invalid input or refusal. */
125
+ export declare const runReply: z.ZodLazy<z.ZodUnion<readonly [z.ZodObject<{
118
126
  kind: z.ZodEnum<{
119
127
  started: "started";
120
128
  replay: "replay";
@@ -124,7 +132,7 @@ export declare const runReply: z.ZodUnion<readonly [z.ZodObject<{
124
132
  planDigest: z.ZodString;
125
133
  }, z.core.$strict>, z.ZodObject<{
126
134
  kind: z.ZodLiteral<"invalid">;
127
- issues: z.ZodArray<z.ZodObject<{
135
+ issues: z.ZodArray<z.ZodLazy<z.ZodObject<{
128
136
  code: z.ZodString;
129
137
  message: z.ZodString;
130
138
  graph: z.ZodOptional<z.ZodString>;
@@ -132,11 +140,12 @@ export declare const runReply: z.ZodUnion<readonly [z.ZodObject<{
132
140
  trigger: z.ZodOptional<z.ZodString>;
133
141
  port: z.ZodOptional<z.ZodString>;
134
142
  edge: z.ZodOptional<z.ZodNumber>;
135
- }, z.core.$strip>>;
143
+ }, z.core.$strip>>>;
136
144
  }, z.core.$strict>, z.ZodObject<{
137
145
  error: z.ZodString;
138
- }, z.core.$strict>]>;
139
- export declare const cancelReplySchema: z.ZodUnion<readonly [z.ZodObject<{
146
+ }, z.core.$strict>]>>;
147
+ /** Cancellation result, an already-terminal run, or an authority refusal. */
148
+ export declare const cancelReplySchema: z.ZodLazy<z.ZodUnion<readonly [z.ZodObject<{
140
149
  kind: z.ZodEnum<{
141
150
  cancelled: "cancelled";
142
151
  terminal: "terminal";
@@ -146,13 +155,15 @@ export declare const cancelReplySchema: z.ZodUnion<readonly [z.ZodObject<{
146
155
  reason: z.ZodLiteral<"denied">;
147
156
  }, z.core.$strict>, z.ZodObject<{
148
157
  error: z.ZodString;
149
- }, z.core.$strict>]>;
158
+ }, z.core.$strict>]>>;
159
+ /** Lifecycle outcome reported for a Workflow run. */
150
160
  export declare const runOutcomeSchema: z.ZodEnum<{
151
161
  cancelled: "cancelled";
152
162
  terminal: "terminal";
153
163
  active: "active";
154
164
  }>;
155
- export declare const statusReply: z.ZodUnion<readonly [z.ZodObject<{
165
+ /** Bounded run status snapshot with events, reviews, output and error. */
166
+ export declare const statusReply: z.ZodLazy<z.ZodUnion<readonly [z.ZodObject<{
156
167
  runId: z.ZodString;
157
168
  planDigest: z.ZodString;
158
169
  outcome: z.ZodEnum<{
@@ -168,8 +179,9 @@ export declare const statusReply: z.ZodUnion<readonly [z.ZodObject<{
168
179
  error: z.ZodJSONSchema;
169
180
  }, z.core.$strict>, z.ZodObject<{
170
181
  error: z.ZodString;
171
- }, z.core.$strict>]>;
172
- export declare const answerReviewReply: z.ZodUnion<readonly [z.ZodObject<{
182
+ }, z.core.$strict>]>>;
183
+ /** Result of answering a waiting run review, or an invocation refusal. */
184
+ export declare const answerReviewReply: z.ZodLazy<z.ZodUnion<readonly [z.ZodObject<{
173
185
  result: z.ZodEnum<{
174
186
  invalid: "invalid";
175
187
  denied: "denied";
@@ -178,8 +190,9 @@ export declare const answerReviewReply: z.ZodUnion<readonly [z.ZodObject<{
178
190
  }>;
179
191
  }, z.core.$strict>, z.ZodObject<{
180
192
  error: z.ZodString;
181
- }, z.core.$strict>]>;
182
- export declare const scheduleArmReplySchema: z.ZodUnion<readonly [z.ZodObject<{
193
+ }, z.core.$strict>]>>;
194
+ /** Schedule-trigger admission or its refusal details. */
195
+ export declare const scheduleArmReplySchema: z.ZodLazy<z.ZodUnion<readonly [z.ZodObject<{
183
196
  kind: z.ZodLiteral<"armed">;
184
197
  scheduleId: z.ZodString;
185
198
  }, z.core.$strict>, z.ZodObject<{
@@ -188,18 +201,21 @@ export declare const scheduleArmReplySchema: z.ZodUnion<readonly [z.ZodObject<{
188
201
  issues: z.ZodOptional<z.ZodArray<z.ZodJSONSchema>>;
189
202
  }, z.core.$strict>, z.ZodObject<{
190
203
  error: z.ZodString;
191
- }, z.core.$strict>]>;
192
- export declare const triggerDisarmReplySchema: z.ZodUnion<readonly [z.ZodObject<{
204
+ }, z.core.$strict>]>>;
205
+ /** Trigger disarm result, including an absent trigger or denied invocation. */
206
+ export declare const triggerDisarmReplySchema: z.ZodLazy<z.ZodUnion<readonly [z.ZodObject<{
193
207
  kind: z.ZodEnum<{
194
208
  disarmed: "disarmed";
195
209
  not_found: "not_found";
196
210
  }>;
197
211
  }, z.core.$strict>, z.ZodObject<{
198
212
  error: z.ZodString;
199
- }, z.core.$strict>]>;
200
- export declare const schedulesReplySchema: z.ZodUnion<readonly [z.ZodObject<{
213
+ }, z.core.$strict>]>>;
214
+ /** Visible schedule-trigger rows with their next due time and lifecycle state. */
215
+ export declare const schedulesReplySchema: z.ZodLazy<z.ZodUnion<readonly [z.ZodObject<{
201
216
  schedules: z.ZodArray<z.ZodObject<{
202
217
  scheduleId: z.ZodString;
218
+ installationId: z.ZodString;
203
219
  workflowId: z.ZodString;
204
220
  triggerId: z.ZodString;
205
221
  nextDueAt: z.ZodNumber;
@@ -213,7 +229,8 @@ export declare const schedulesReplySchema: z.ZodUnion<readonly [z.ZodObject<{
213
229
  }, z.core.$strict>>;
214
230
  }, z.core.$strict>, z.ZodObject<{
215
231
  error: z.ZodString;
216
- }, z.core.$strict>]>;
232
+ }, z.core.$strict>]>>;
233
+ /** Origin category recorded for a run: manual, schedule, event, Agent or key. */
217
234
  export declare const workflowRunSourceSchema: z.ZodEnum<{
218
235
  manual: "manual";
219
236
  schedule: "schedule";
@@ -222,7 +239,7 @@ export declare const workflowRunSourceSchema: z.ZodEnum<{
222
239
  key: "key";
223
240
  }>;
224
241
  /** The Agent Session (`sessionId`) stays host-side; the wire names only the Agent/key and its grantor. */
225
- export declare const workflowRunInitiatedBySchema: z.ZodUnion<readonly [z.ZodObject<{
242
+ export declare const workflowRunInitiatedBySchema: z.ZodLazy<z.ZodUnion<readonly [z.ZodObject<{
226
243
  kind: z.ZodLiteral<"member">;
227
244
  memberId: z.ZodString;
228
245
  }, z.core.$strict>, z.ZodObject<{
@@ -233,8 +250,9 @@ export declare const workflowRunInitiatedBySchema: z.ZodUnion<readonly [z.ZodObj
233
250
  kind: z.ZodLiteral<"key">;
234
251
  keyId: z.ZodString;
235
252
  grantorMemberId: z.ZodString;
236
- }, z.core.$strict>]>;
237
- export declare const runsReplySchema: z.ZodUnion<readonly [z.ZodObject<{
253
+ }, z.core.$strict>]>>;
254
+ /** Bounded recent-run rows with their source, initiator and pinned commit. */
255
+ export declare const runsReplySchema: z.ZodLazy<z.ZodUnion<readonly [z.ZodObject<{
238
256
  runs: z.ZodArray<z.ZodObject<{
239
257
  runId: z.ZodString;
240
258
  workflowId: z.ZodString;
@@ -247,7 +265,7 @@ export declare const runsReplySchema: z.ZodUnion<readonly [z.ZodObject<{
247
265
  key: "key";
248
266
  }>;
249
267
  triggerId: z.ZodOptional<z.ZodString>;
250
- initiatedBy: z.ZodUnion<readonly [z.ZodObject<{
268
+ initiatedBy: z.ZodLazy<z.ZodUnion<readonly [z.ZodObject<{
251
269
  kind: z.ZodLiteral<"member">;
252
270
  memberId: z.ZodString;
253
271
  }, z.core.$strict>, z.ZodObject<{
@@ -258,13 +276,14 @@ export declare const runsReplySchema: z.ZodUnion<readonly [z.ZodObject<{
258
276
  kind: z.ZodLiteral<"key">;
259
277
  keyId: z.ZodString;
260
278
  grantorMemberId: z.ZodString;
261
- }, z.core.$strict>]>;
279
+ }, z.core.$strict>]>>;
262
280
  startedAt: z.ZodNumber;
263
281
  }, z.core.$strict>>;
264
282
  }, z.core.$strict>, z.ZodObject<{
265
283
  error: z.ZodString;
266
- }, z.core.$strict>]>;
267
- export declare const eventArmReplySchema: z.ZodUnion<readonly [z.ZodObject<{
284
+ }, z.core.$strict>]>>;
285
+ /** Event-trigger admission or its refusal details. */
286
+ export declare const eventArmReplySchema: z.ZodLazy<z.ZodUnion<readonly [z.ZodObject<{
268
287
  kind: z.ZodLiteral<"armed">;
269
288
  eventTriggerId: z.ZodString;
270
289
  }, z.core.$strict>, z.ZodObject<{
@@ -273,8 +292,9 @@ export declare const eventArmReplySchema: z.ZodUnion<readonly [z.ZodObject<{
273
292
  issues: z.ZodOptional<z.ZodArray<z.ZodJSONSchema>>;
274
293
  }, z.core.$strict>, z.ZodObject<{
275
294
  error: z.ZodString;
276
- }, z.core.$strict>]>;
277
- export declare const eventTriggersReplySchema: z.ZodUnion<readonly [z.ZodObject<{
295
+ }, z.core.$strict>]>>;
296
+ /** Visible event-trigger rows with emitter, event and current state. */
297
+ export declare const eventTriggersReplySchema: z.ZodLazy<z.ZodUnion<readonly [z.ZodObject<{
278
298
  eventTriggers: z.ZodArray<z.ZodObject<{
279
299
  eventTriggerId: z.ZodString;
280
300
  workflowId: z.ZodString;
@@ -289,4 +309,4 @@ export declare const eventTriggersReplySchema: z.ZodUnion<readonly [z.ZodObject<
289
309
  }, z.core.$strict>>;
290
310
  }, z.core.$strict>, z.ZodObject<{
291
311
  error: z.ZodString;
292
- }, z.core.$strict>]>;
312
+ }, z.core.$strict>]>>;