@fungi.computer/workflows-wire 0.3.0 → 0.4.1

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.
@@ -220,6 +220,18 @@ export declare const schedulePauseReplySchema: z.ZodLazy<z.ZodUnion<readonly [z.
220
220
  }, z.core.$strict>, z.ZodObject<{
221
221
  error: z.ZodString;
222
222
  }, z.core.$strict>]>>;
223
+ /** Future admission resumed, no controllable paused registration, or invalid cadence. */
224
+ export declare const scheduleResumeReplySchema: z.ZodLazy<z.ZodUnion<readonly [z.ZodObject<{
225
+ kind: z.ZodEnum<{
226
+ not_found: "not_found";
227
+ resumed: "resumed";
228
+ }>;
229
+ }, z.core.$strict>, z.ZodObject<{
230
+ kind: z.ZodLiteral<"refused">;
231
+ reason: z.ZodString;
232
+ }, z.core.$strict>, z.ZodObject<{
233
+ error: z.ZodString;
234
+ }, z.core.$strict>]>>;
223
235
  /** One bounded installation page; continue strictly after nextCursor. */
224
236
  export declare const schedulesReplySchema: z.ZodLazy<z.ZodUnion<readonly [z.ZodObject<{
225
237
  schedules: z.ZodArray<z.ZodObject<{
@@ -227,6 +239,10 @@ export declare const schedulesReplySchema: z.ZodLazy<z.ZodUnion<readonly [z.ZodO
227
239
  installationId: z.ZodString;
228
240
  workflowId: z.ZodString;
229
241
  triggerId: z.ZodString;
242
+ cron: z.ZodObject<{
243
+ expression: z.ZodString;
244
+ timeZone: z.ZodString;
245
+ }, z.core.$strict>;
230
246
  nextDueAt: z.ZodNumber;
231
247
  state: z.ZodEnum<{
232
248
  cancelled: "cancelled";
package/dist/outcomes.js CHANGED
@@ -199,6 +199,12 @@ export const triggerDisarmReplySchema = z.lazy(() => z.union([
199
199
  ]));
200
200
  /** Future admission paused, or no controllable active registration found. */
201
201
  export const schedulePauseReplySchema = z.lazy(() => z.union([z.strictObject({ kind: z.enum(["paused", "not_found"]) }), denied]));
202
+ /** Future admission resumed, no controllable paused registration, or invalid cadence. */
203
+ export const scheduleResumeReplySchema = z.lazy(() => z.union([
204
+ z.strictObject({ kind: z.enum(["resumed", "not_found"]) }),
205
+ z.strictObject({ kind: z.literal("refused"), reason: z.string() }),
206
+ denied,
207
+ ]));
202
208
  /** One bounded installation page; continue strictly after nextCursor. */
203
209
  export const schedulesReplySchema = z.lazy(() => z.union([
204
210
  z.strictObject({
@@ -213,6 +219,11 @@ export const schedulesReplySchema = z.lazy(() => z.union([
213
219
  workflowId: workflowIdSchema,
214
220
  /** Trigger identity within the published definition. */
215
221
  triggerId: id,
222
+ /** Cadence in the schedule's own time zone. */
223
+ cron: z.strictObject({
224
+ expression: z.string().max(256),
225
+ timeZone: z.string().max(128),
226
+ }),
216
227
  /** Next occurrence time in epoch milliseconds. */
217
228
  nextDueAt: z.number().int(),
218
229
  /** Current schedule lifecycle state. */
@@ -38,6 +38,10 @@ export declare const scheduleDisarmInputSchema: z.ZodObject<{
38
38
  export declare const schedulePauseInputSchema: z.ZodObject<{
39
39
  scheduleId: z.ZodString;
40
40
  }, z.core.$strict>;
41
+ /** Resume future occurrences of a paused registration. */
42
+ export declare const scheduleResumeInputSchema: z.ZodObject<{
43
+ scheduleId: z.ZodString;
44
+ }, z.core.$strict>;
41
45
  /** Identify the event-trigger registration to disarm. */
42
46
  export declare const eventDisarmInputSchema: z.ZodObject<{
43
47
  eventTriggerId: z.ZodString;
@@ -27,6 +27,8 @@ export const triggerTargetSchema = z.lazy(() => z.strictObject({
27
27
  export const scheduleDisarmInputSchema = z.strictObject({ scheduleId: id });
28
28
  /** Pause future occurrences without cancelling accepted runs. */
29
29
  export const schedulePauseInputSchema = z.strictObject({ scheduleId: id });
30
+ /** Resume future occurrences of a paused registration. */
31
+ export const scheduleResumeInputSchema = z.strictObject({ scheduleId: id });
30
32
  /** Identify the event-trigger registration to disarm. */
31
33
  export const eventDisarmInputSchema = z.strictObject({ eventTriggerId: id });
32
34
  /** Trigger listing takes no caller-supplied filters. */
@@ -1409,6 +1409,44 @@ Future admission paused, or no controllable active registration found.
1409
1409
 
1410
1410
  ---
1411
1411
 
1412
+ ### scheduleResumeReplySchema
1413
+
1414
+ ```ts
1415
+ const scheduleResumeReplySchema: ZodLazy<
1416
+ ZodUnion<
1417
+ readonly [
1418
+ ZodObject<
1419
+ {
1420
+ kind: ZodEnum<{
1421
+ not_found: "not_found";
1422
+ resumed: "resumed";
1423
+ }>;
1424
+ },
1425
+ $strict
1426
+ >,
1427
+ ZodObject<
1428
+ {
1429
+ kind: ZodLiteral<"refused">;
1430
+ reason: ZodString;
1431
+ },
1432
+ $strict
1433
+ >,
1434
+ ZodObject<
1435
+ {
1436
+ error: ZodString;
1437
+ },
1438
+ $strict
1439
+ >,
1440
+ ]
1441
+ >
1442
+ >;
1443
+ ```
1444
+
1445
+ Future admission resumed, no controllable paused registration, or invalid
1446
+ cadence.
1447
+
1448
+ ---
1449
+
1412
1450
  ### schedulesReplySchema
1413
1451
 
1414
1452
  ```ts
@@ -1424,6 +1462,13 @@ const schedulesReplySchema: ZodLazy<
1424
1462
  installationId: ZodString;
1425
1463
  workflowId: ZodString;
1426
1464
  triggerId: ZodString;
1465
+ cron: ZodObject<
1466
+ {
1467
+ expression: ZodString;
1468
+ timeZone: ZodString;
1469
+ },
1470
+ $strict
1471
+ >;
1427
1472
  nextDueAt: ZodNumber;
1428
1473
  state: ZodEnum<{
1429
1474
  cancelled: "cancelled";
@@ -1881,6 +1926,21 @@ Pause future occurrences without cancelling accepted runs.
1881
1926
 
1882
1927
  ---
1883
1928
 
1929
+ ### scheduleResumeInputSchema
1930
+
1931
+ ```ts
1932
+ const scheduleResumeInputSchema: ZodObject<
1933
+ {
1934
+ scheduleId: ZodString;
1935
+ },
1936
+ $strict
1937
+ >;
1938
+ ```
1939
+
1940
+ Resume future occurrences of a paused registration.
1941
+
1942
+ ---
1943
+
1884
1944
  ### eventDisarmInputSchema
1885
1945
 
1886
1946
  ```ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fungi.computer/workflows-wire",
3
- "version": "0.3.0",
3
+ "version": "0.4.1",
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.3.0",
15
+ "@fungi.computer/braid": "0.4.1",
16
16
  "@fungi.computer/cairn": "0.1.0",
17
- "@fungi.computer/puffball": "0.3.0",
17
+ "@fungi.computer/puffball": "0.4.0",
18
18
  "effect": "4.0.2",
19
19
  "zod": "4.4.3",
20
- "@fungi.computer/agar": "0.6.0"
20
+ "@fungi.computer/agar": "0.6.1"
21
21
  },
22
22
  "license": "MIT",
23
23
  "repository": {