@fungi.computer/workflows-wire 0.2.4 → 0.3.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.
@@ -211,7 +211,16 @@ export declare const triggerDisarmReplySchema: z.ZodLazy<z.ZodUnion<readonly [z.
211
211
  }, z.core.$strict>, z.ZodObject<{
212
212
  error: z.ZodString;
213
213
  }, z.core.$strict>]>>;
214
- /** Visible schedule-trigger rows with their next due time and lifecycle state. */
214
+ /** Future admission paused, or no controllable active registration found. */
215
+ export declare const schedulePauseReplySchema: z.ZodLazy<z.ZodUnion<readonly [z.ZodObject<{
216
+ kind: z.ZodEnum<{
217
+ not_found: "not_found";
218
+ paused: "paused";
219
+ }>;
220
+ }, z.core.$strict>, z.ZodObject<{
221
+ error: z.ZodString;
222
+ }, z.core.$strict>]>>;
223
+ /** One bounded installation page; continue strictly after nextCursor. */
215
224
  export declare const schedulesReplySchema: z.ZodLazy<z.ZodUnion<readonly [z.ZodObject<{
216
225
  schedules: z.ZodArray<z.ZodObject<{
217
226
  scheduleId: z.ZodString;
@@ -227,6 +236,7 @@ export declare const schedulesReplySchema: z.ZodLazy<z.ZodUnion<readonly [z.ZodO
227
236
  }>;
228
237
  lastError: z.ZodNullable<z.ZodString>;
229
238
  }, z.core.$strict>>;
239
+ nextCursor: z.ZodNullable<z.ZodString>;
230
240
  }, z.core.$strict>, z.ZodObject<{
231
241
  error: z.ZodString;
232
242
  }, z.core.$strict>]>>;
package/dist/outcomes.js CHANGED
@@ -197,11 +197,14 @@ export const triggerDisarmReplySchema = z.lazy(() => z.union([
197
197
  }),
198
198
  denied,
199
199
  ]));
200
- /** Visible schedule-trigger rows with their next due time and lifecycle state. */
200
+ /** Future admission paused, or no controllable active registration found. */
201
+ export const schedulePauseReplySchema = z.lazy(() => z.union([z.strictObject({ kind: z.enum(["paused", "not_found"]) }), denied]));
202
+ /** One bounded installation page; continue strictly after nextCursor. */
201
203
  export const schedulesReplySchema = z.lazy(() => z.union([
202
204
  z.strictObject({
203
205
  /** Schedule-trigger registrations visible to this invocation. */
204
- schedules: z.array(z.strictObject({
206
+ schedules: z
207
+ .array(z.strictObject({
205
208
  /** Identity of the schedule registration. */
206
209
  scheduleId: id,
207
210
  /** Installation owning the Workflow schedule and its control door. */
@@ -216,7 +219,10 @@ export const schedulesReplySchema = z.lazy(() => z.union([
216
219
  state: z.enum(["active", "paused", "cancelled", "finished"]),
217
220
  /** Latest scheduling failure, or null when absent. */
218
221
  lastError: z.string().nullable(),
219
- })),
222
+ }))
223
+ .max(100),
224
+ /** Last visible schedule id when another page exists; otherwise null. */
225
+ nextCursor: id.nullable(),
220
226
  }),
221
227
  denied,
222
228
  ]));
@@ -1,4 +1,5 @@
1
1
  import * as z from "zod";
2
+ export { workflowScheduleListInputSchema as scheduleListInputSchema, type WorkflowScheduleListInput as ScheduleListInput, } from "@fungi.computer/braid/runtime";
2
3
  /** The Agent Session (chat) that receives the ending of every run it covers. */
3
4
  export declare const runDeliverySchema: z.ZodObject<{
4
5
  agentId: z.ZodString;
@@ -33,6 +34,10 @@ export declare const triggerTargetSchema: z.ZodLazy<z.ZodObject<{
33
34
  export declare const scheduleDisarmInputSchema: z.ZodObject<{
34
35
  scheduleId: z.ZodString;
35
36
  }, z.core.$strict>;
37
+ /** Pause future occurrences without cancelling accepted runs. */
38
+ export declare const schedulePauseInputSchema: z.ZodObject<{
39
+ scheduleId: z.ZodString;
40
+ }, z.core.$strict>;
36
41
  /** Identify the event-trigger registration to disarm. */
37
42
  export declare const eventDisarmInputSchema: z.ZodObject<{
38
43
  eventTriggerId: z.ZodString;
@@ -2,6 +2,7 @@ import * as z from "zod";
2
2
  import { bindingsSelectionSchema } from "@fungi.computer/braid/git-access";
3
3
  import { gitSha1Schema } from "@fungi.computer/puffball/git-representation";
4
4
  import { workflowIdSchema } from "@fungi.computer/braid";
5
+ export { workflowScheduleListInputSchema as scheduleListInputSchema, } from "@fungi.computer/braid/runtime";
5
6
  const id = z.string().min(1).max(256);
6
7
  /** The Agent Session (chat) that receives the ending of every run it covers. */
7
8
  export const runDeliverySchema = z.strictObject({ agentId: id, sessionId: id });
@@ -24,6 +25,8 @@ export const triggerTargetSchema = z.lazy(() => z.strictObject({
24
25
  }));
25
26
  /** Identify the schedule-trigger registration to disarm. */
26
27
  export const scheduleDisarmInputSchema = z.strictObject({ scheduleId: id });
28
+ /** Pause future occurrences without cancelling accepted runs. */
29
+ export const schedulePauseInputSchema = z.strictObject({ scheduleId: id });
27
30
  /** Identify the event-trigger registration to disarm. */
28
31
  export const eventDisarmInputSchema = z.strictObject({ eventTriggerId: id });
29
32
  /** Trigger listing takes no caller-supplied filters. */
@@ -8,6 +8,14 @@
8
8
 
9
9
  ## Type Aliases
10
10
 
11
+ ### ScheduleListInput
12
+
13
+ ```ts
14
+ type ScheduleListInput = z.input<typeof scheduleListInputSchema>;
15
+ ```
16
+
17
+ ---
18
+
11
19
  ### WorkflowPublishedDefinitionContext
12
20
 
13
21
  ```ts
@@ -130,6 +138,22 @@ Read-only Git operations needed to traverse and decode library files.
130
138
 
131
139
  ## Variables
132
140
 
141
+ ### scheduleListInputSchema
142
+
143
+ ```ts
144
+ const scheduleListInputSchema: z.ZodObject<
145
+ {
146
+ limit: z.ZodDefault<z.ZodNumber>;
147
+ after: z.ZodOptional<z.ZodString>;
148
+ },
149
+ z.core.$strict
150
+ >;
151
+ ```
152
+
153
+ Installation-scoped keyset read; the default and ceiling bound one reply.
154
+
155
+ ---
156
+
133
157
  ### provenanceSchema
134
158
 
135
159
  ```ts
@@ -1355,6 +1379,36 @@ Trigger disarm result, including an absent trigger or denied invocation.
1355
1379
 
1356
1380
  ---
1357
1381
 
1382
+ ### schedulePauseReplySchema
1383
+
1384
+ ```ts
1385
+ const schedulePauseReplySchema: ZodLazy<
1386
+ ZodUnion<
1387
+ readonly [
1388
+ ZodObject<
1389
+ {
1390
+ kind: ZodEnum<{
1391
+ not_found: "not_found";
1392
+ paused: "paused";
1393
+ }>;
1394
+ },
1395
+ $strict
1396
+ >,
1397
+ ZodObject<
1398
+ {
1399
+ error: ZodString;
1400
+ },
1401
+ $strict
1402
+ >,
1403
+ ]
1404
+ >
1405
+ >;
1406
+ ```
1407
+
1408
+ Future admission paused, or no controllable active registration found.
1409
+
1410
+ ---
1411
+
1358
1412
  ### schedulesReplySchema
1359
1413
 
1360
1414
  ```ts
@@ -1382,6 +1436,7 @@ const schedulesReplySchema: ZodLazy<
1382
1436
  $strict
1383
1437
  >
1384
1438
  >;
1439
+ nextCursor: ZodNullable<ZodString>;
1385
1440
  },
1386
1441
  $strict
1387
1442
  >,
@@ -1396,7 +1451,7 @@ const schedulesReplySchema: ZodLazy<
1396
1451
  >;
1397
1452
  ```
1398
1453
 
1399
- Visible schedule-trigger rows with their next due time and lifecycle state.
1454
+ One bounded installation page; continue strictly after nextCursor.
1400
1455
 
1401
1456
  ---
1402
1457
 
@@ -1811,6 +1866,21 @@ Identify the schedule-trigger registration to disarm.
1811
1866
 
1812
1867
  ---
1813
1868
 
1869
+ ### schedulePauseInputSchema
1870
+
1871
+ ```ts
1872
+ const schedulePauseInputSchema: ZodObject<
1873
+ {
1874
+ scheduleId: ZodString;
1875
+ },
1876
+ $strict
1877
+ >;
1878
+ ```
1879
+
1880
+ Pause future occurrences without cancelling accepted runs.
1881
+
1882
+ ---
1883
+
1814
1884
  ### eventDisarmInputSchema
1815
1885
 
1816
1886
  ```ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fungi.computer/workflows-wire",
3
- "version": "0.2.4",
3
+ "version": "0.3.0",
4
4
  "author": "Levi <levi@technomancy.dev>",
5
5
  "private": false,
6
6
  "description": "Workflow run ids and generic graph wire contract shared by Hub and the Trellis App",
@@ -12,12 +12,12 @@
12
12
  }
13
13
  },
14
14
  "dependencies": {
15
- "@fungi.computer/braid": "0.2.4",
15
+ "@fungi.computer/braid": "0.3.0",
16
16
  "@fungi.computer/cairn": "0.1.0",
17
- "@fungi.computer/puffball": "0.2.0",
17
+ "@fungi.computer/puffball": "0.3.0",
18
18
  "effect": "4.0.2",
19
19
  "zod": "4.4.3",
20
- "@fungi.computer/agar": "0.5.0"
20
+ "@fungi.computer/agar": "0.6.0"
21
21
  },
22
22
  "license": "MIT",
23
23
  "repository": {