@hearsay-tools/squawk 0.19.0-pr4504.8917 → 0.19.0-pr4504.8918

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,20 +220,18 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
220
220
  "/automations": {
221
221
  $post: {
222
222
  output: {
223
- error: string;
224
- };
225
- outputFormat: "json";
226
- status: 400 | 404 | 409;
227
- input: {
228
- json: {
223
+ automation: {
224
+ [x: string]: import("hono/utils/types").JSONValue;
225
+ id: string;
226
+ revision: number;
229
227
  name: string;
230
228
  description?: string | undefined;
231
- enabled?: boolean | undefined;
232
- kind?: "github" | "schedule" | undefined;
229
+ enabled: boolean;
230
+ kind: "github" | "schedule";
233
231
  events?: ("issue.labeled" | "issue.opened" | "issue.unlabeled" | "pull_request.opened")[] | undefined;
234
232
  intervalSeconds?: number | undefined;
235
233
  filters?: {
236
- [x: string]: unknown;
234
+ [x: string]: import("hono/utils/types").JSONValue;
237
235
  includeExisting?: boolean | undefined;
238
236
  requireCurrentLabels?: boolean | undefined;
239
237
  authors?: string[] | undefined;
@@ -242,10 +240,11 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
242
240
  anyLabels?: string[] | undefined;
243
241
  excludeLabels?: string[] | undefined;
244
242
  changedLabels?: string[] | undefined;
245
- lookbackDays?: number | undefined;
246
- maxRecords?: number | undefined;
243
+ lookbackDays: number;
244
+ maxRecords: number;
247
245
  } | undefined;
248
246
  schedule?: {
247
+ [x: string]: import("hono/utils/types").JSONValue;
249
248
  type: "daily" | "hours" | "once" | "weekdays" | "weekly";
250
249
  hour?: number | undefined;
251
250
  minute?: number | undefined;
@@ -256,6 +255,7 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
256
255
  latestStartMinutes?: number | undefined;
257
256
  } | undefined;
258
257
  task: {
258
+ [x: string]: import("hono/utils/types").JSONValue;
259
259
  archiveWhenDone?: boolean | undefined;
260
260
  autoMergePr?: boolean | undefined;
261
261
  allowWorkers?: boolean | undefined;
@@ -276,37 +276,53 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
276
276
  bashAllowlist?: string[] | undefined;
277
277
  kind?: "plugin" | undefined;
278
278
  pluginKind?: string | undefined;
279
- config?: Record<string, unknown> | undefined;
279
+ config?: {
280
+ [x: string]: import("hono/utils/types").JSONValue;
281
+ } | undefined;
280
282
  command?: string | undefined;
281
283
  onFail?: {
282
284
  retry: string;
283
- max?: number | undefined;
285
+ max: number;
284
286
  } | undefined;
285
287
  }[] | undefined;
286
288
  runner?: string | undefined;
287
289
  model?: string | undefined;
288
290
  effort?: string | undefined;
291
+ variants?: 1 | 2 | 3 | undefined;
289
292
  worktree?: boolean | undefined;
290
293
  autonomous?: boolean | undefined;
291
294
  systemPrompt?: string | undefined;
292
295
  };
293
- enable?: boolean | undefined;
296
+ archived?: {
297
+ [x: string]: import("hono/utils/types").JSONValue;
298
+ at: string;
299
+ outcome: "cancelled" | "launched";
300
+ runId?: string | undefined;
301
+ receiptId?: string | undefined;
302
+ trigger?: "late" | "manual" | "retry" | "schedule" | undefined;
303
+ } | undefined;
304
+ createdAt: string;
305
+ updatedAt: string;
294
306
  };
307
+ once?: {
308
+ dueAt: string;
309
+ timeZone: string;
310
+ resolvedInstant: string;
311
+ note: string;
312
+ } | undefined;
295
313
  };
296
- } | {
297
- output: {
298
- automation: {
299
- [x: string]: import("hono/utils/types").JSONValue;
300
- id: string;
301
- revision: number;
314
+ outputFormat: "json";
315
+ status: 201;
316
+ input: {
317
+ json: {
302
318
  name: string;
303
319
  description?: string | undefined;
304
- enabled: boolean;
305
- kind: "github" | "schedule";
320
+ enabled?: boolean | undefined;
321
+ kind?: "github" | "schedule" | undefined;
306
322
  events?: ("issue.labeled" | "issue.opened" | "issue.unlabeled" | "pull_request.opened")[] | undefined;
307
323
  intervalSeconds?: number | undefined;
308
324
  filters?: {
309
- [x: string]: import("hono/utils/types").JSONValue;
325
+ [x: string]: unknown;
310
326
  includeExisting?: boolean | undefined;
311
327
  requireCurrentLabels?: boolean | undefined;
312
328
  authors?: string[] | undefined;
@@ -315,11 +331,10 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
315
331
  anyLabels?: string[] | undefined;
316
332
  excludeLabels?: string[] | undefined;
317
333
  changedLabels?: string[] | undefined;
318
- lookbackDays: number;
319
- maxRecords: number;
334
+ lookbackDays?: number | undefined;
335
+ maxRecords?: number | undefined;
320
336
  } | undefined;
321
337
  schedule?: {
322
- [x: string]: import("hono/utils/types").JSONValue;
323
338
  type: "daily" | "hours" | "once" | "weekdays" | "weekly";
324
339
  hour?: number | undefined;
325
340
  minute?: number | undefined;
@@ -330,7 +345,6 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
330
345
  latestStartMinutes?: number | undefined;
331
346
  } | undefined;
332
347
  task: {
333
- [x: string]: import("hono/utils/types").JSONValue;
334
348
  archiveWhenDone?: boolean | undefined;
335
349
  autoMergePr?: boolean | undefined;
336
350
  allowWorkers?: boolean | undefined;
@@ -351,43 +365,29 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
351
365
  bashAllowlist?: string[] | undefined;
352
366
  kind?: "plugin" | undefined;
353
367
  pluginKind?: string | undefined;
354
- config?: {
355
- [x: string]: import("hono/utils/types").JSONValue;
356
- } | undefined;
368
+ config?: Record<string, unknown> | undefined;
357
369
  command?: string | undefined;
358
370
  onFail?: {
359
371
  retry: string;
360
- max: number;
372
+ max?: number | undefined;
361
373
  } | undefined;
362
374
  }[] | undefined;
363
375
  runner?: string | undefined;
364
376
  model?: string | undefined;
365
377
  effort?: string | undefined;
366
- variants?: 1 | 2 | 3 | undefined;
367
378
  worktree?: boolean | undefined;
368
379
  autonomous?: boolean | undefined;
369
380
  systemPrompt?: string | undefined;
370
381
  };
371
- archived?: {
372
- [x: string]: import("hono/utils/types").JSONValue;
373
- at: string;
374
- outcome: "cancelled" | "launched";
375
- runId?: string | undefined;
376
- receiptId?: string | undefined;
377
- trigger?: "late" | "manual" | "retry" | "schedule" | undefined;
378
- } | undefined;
379
- createdAt: string;
380
- updatedAt: string;
382
+ enable?: boolean | undefined;
381
383
  };
382
- once?: {
383
- dueAt: string;
384
- timeZone: string;
385
- resolvedInstant: string;
386
- note: string;
387
- } | undefined;
384
+ };
385
+ } | {
386
+ output: {
387
+ error: string;
388
388
  };
389
389
  outputFormat: "json";
390
- status: 201;
390
+ status: 400 | 404 | 409;
391
391
  input: {
392
392
  json: {
393
393
  name: string;
@@ -462,17 +462,6 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
462
462
  } & {
463
463
  "/automations/:id": {
464
464
  $get: {
465
- output: {
466
- error: string;
467
- };
468
- outputFormat: "json";
469
- status: 400 | 404 | 409;
470
- input: {
471
- param: {
472
- id: string;
473
- };
474
- };
475
- } | {
476
465
  output: {
477
466
  automation: {
478
467
  [x: string]: import("hono/utils/types").JSONValue;
@@ -635,26 +624,35 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
635
624
  id: string;
636
625
  };
637
626
  };
638
- };
639
- };
640
- } & {
641
- "/automations/:id": {
642
- $put: {
627
+ } | {
643
628
  output: {
644
629
  error: string;
645
630
  };
646
631
  outputFormat: "json";
647
632
  status: 400 | 404 | 409;
648
633
  input: {
649
- json: {
634
+ param: {
635
+ id: string;
636
+ };
637
+ };
638
+ };
639
+ };
640
+ } & {
641
+ "/automations/:id": {
642
+ $put: {
643
+ output: {
644
+ automation: {
645
+ [x: string]: import("hono/utils/types").JSONValue;
646
+ id: string;
647
+ revision: number;
650
648
  name: string;
651
649
  description?: string | undefined;
652
- enabled?: boolean | undefined;
653
- kind?: "github" | "schedule" | undefined;
650
+ enabled: boolean;
651
+ kind: "github" | "schedule";
654
652
  events?: ("issue.labeled" | "issue.opened" | "issue.unlabeled" | "pull_request.opened")[] | undefined;
655
653
  intervalSeconds?: number | undefined;
656
654
  filters?: {
657
- [x: string]: unknown;
655
+ [x: string]: import("hono/utils/types").JSONValue;
658
656
  includeExisting?: boolean | undefined;
659
657
  requireCurrentLabels?: boolean | undefined;
660
658
  authors?: string[] | undefined;
@@ -663,10 +661,11 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
663
661
  anyLabels?: string[] | undefined;
664
662
  excludeLabels?: string[] | undefined;
665
663
  changedLabels?: string[] | undefined;
666
- lookbackDays?: number | undefined;
667
- maxRecords?: number | undefined;
664
+ lookbackDays: number;
665
+ maxRecords: number;
668
666
  } | undefined;
669
667
  schedule?: {
668
+ [x: string]: import("hono/utils/types").JSONValue;
670
669
  type: "daily" | "hours" | "once" | "weekdays" | "weekly";
671
670
  hour?: number | undefined;
672
671
  minute?: number | undefined;
@@ -677,6 +676,7 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
677
676
  latestStartMinutes?: number | undefined;
678
677
  } | undefined;
679
678
  task: {
679
+ [x: string]: import("hono/utils/types").JSONValue;
680
680
  archiveWhenDone?: boolean | undefined;
681
681
  autoMergePr?: boolean | undefined;
682
682
  allowWorkers?: boolean | undefined;
@@ -697,41 +697,47 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
697
697
  bashAllowlist?: string[] | undefined;
698
698
  kind?: "plugin" | undefined;
699
699
  pluginKind?: string | undefined;
700
- config?: Record<string, unknown> | undefined;
700
+ config?: {
701
+ [x: string]: import("hono/utils/types").JSONValue;
702
+ } | undefined;
701
703
  command?: string | undefined;
702
704
  onFail?: {
703
705
  retry: string;
704
- max?: number | undefined;
706
+ max: number;
705
707
  } | undefined;
706
708
  }[] | undefined;
707
709
  runner?: string | undefined;
708
710
  model?: string | undefined;
709
711
  effort?: string | undefined;
712
+ variants?: 1 | 2 | 3 | undefined;
710
713
  worktree?: boolean | undefined;
711
714
  autonomous?: boolean | undefined;
712
715
  systemPrompt?: string | undefined;
713
716
  };
714
- expectedRevision: number;
715
- };
716
- } & {
717
- param: {
718
- id: string;
717
+ archived?: {
718
+ [x: string]: import("hono/utils/types").JSONValue;
719
+ at: string;
720
+ outcome: "cancelled" | "launched";
721
+ runId?: string | undefined;
722
+ receiptId?: string | undefined;
723
+ trigger?: "late" | "manual" | "retry" | "schedule" | undefined;
724
+ } | undefined;
725
+ createdAt: string;
726
+ updatedAt: string;
719
727
  };
720
728
  };
721
- } | {
722
- output: {
723
- automation: {
724
- [x: string]: import("hono/utils/types").JSONValue;
725
- id: string;
726
- revision: number;
729
+ outputFormat: "json";
730
+ status: import("hono/utils/http-status").ContentfulStatusCode;
731
+ input: {
732
+ json: {
727
733
  name: string;
728
734
  description?: string | undefined;
729
- enabled: boolean;
730
- kind: "github" | "schedule";
735
+ enabled?: boolean | undefined;
736
+ kind?: "github" | "schedule" | undefined;
731
737
  events?: ("issue.labeled" | "issue.opened" | "issue.unlabeled" | "pull_request.opened")[] | undefined;
732
738
  intervalSeconds?: number | undefined;
733
739
  filters?: {
734
- [x: string]: import("hono/utils/types").JSONValue;
740
+ [x: string]: unknown;
735
741
  includeExisting?: boolean | undefined;
736
742
  requireCurrentLabels?: boolean | undefined;
737
743
  authors?: string[] | undefined;
@@ -740,11 +746,10 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
740
746
  anyLabels?: string[] | undefined;
741
747
  excludeLabels?: string[] | undefined;
742
748
  changedLabels?: string[] | undefined;
743
- lookbackDays: number;
744
- maxRecords: number;
749
+ lookbackDays?: number | undefined;
750
+ maxRecords?: number | undefined;
745
751
  } | undefined;
746
752
  schedule?: {
747
- [x: string]: import("hono/utils/types").JSONValue;
748
753
  type: "daily" | "hours" | "once" | "weekdays" | "weekly";
749
754
  hour?: number | undefined;
750
755
  minute?: number | undefined;
@@ -755,7 +760,6 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
755
760
  latestStartMinutes?: number | undefined;
756
761
  } | undefined;
757
762
  task: {
758
- [x: string]: import("hono/utils/types").JSONValue;
759
763
  archiveWhenDone?: boolean | undefined;
760
764
  autoMergePr?: boolean | undefined;
761
765
  allowWorkers?: boolean | undefined;
@@ -776,37 +780,33 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
776
780
  bashAllowlist?: string[] | undefined;
777
781
  kind?: "plugin" | undefined;
778
782
  pluginKind?: string | undefined;
779
- config?: {
780
- [x: string]: import("hono/utils/types").JSONValue;
781
- } | undefined;
783
+ config?: Record<string, unknown> | undefined;
782
784
  command?: string | undefined;
783
785
  onFail?: {
784
786
  retry: string;
785
- max: number;
787
+ max?: number | undefined;
786
788
  } | undefined;
787
789
  }[] | undefined;
788
790
  runner?: string | undefined;
789
791
  model?: string | undefined;
790
792
  effort?: string | undefined;
791
- variants?: 1 | 2 | 3 | undefined;
792
793
  worktree?: boolean | undefined;
793
794
  autonomous?: boolean | undefined;
794
795
  systemPrompt?: string | undefined;
795
796
  };
796
- archived?: {
797
- [x: string]: import("hono/utils/types").JSONValue;
798
- at: string;
799
- outcome: "cancelled" | "launched";
800
- runId?: string | undefined;
801
- receiptId?: string | undefined;
802
- trigger?: "late" | "manual" | "retry" | "schedule" | undefined;
803
- } | undefined;
804
- createdAt: string;
805
- updatedAt: string;
797
+ expectedRevision: number;
806
798
  };
799
+ } & {
800
+ param: {
801
+ id: string;
802
+ };
803
+ };
804
+ } | {
805
+ output: {
806
+ error: string;
807
807
  };
808
808
  outputFormat: "json";
809
- status: import("hono/utils/http-status").ContentfulStatusCode;
809
+ status: 400 | 404 | 409;
810
810
  input: {
811
811
  json: {
812
812
  name: string;
@@ -909,17 +909,6 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
909
909
  } & {
910
910
  "/automations/:id/enable": {
911
911
  $post: {
912
- output: {
913
- error: string;
914
- };
915
- outputFormat: "json";
916
- status: 400 | 404 | 409;
917
- input: {
918
- param: {
919
- id: string;
920
- };
921
- };
922
- } | {
923
912
  output: {
924
913
  automation: {
925
914
  [x: string]: import("hono/utils/types").JSONValue;
@@ -1013,11 +1002,7 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
1013
1002
  id: string;
1014
1003
  };
1015
1004
  };
1016
- };
1017
- };
1018
- } & {
1019
- "/automations/:id/pause": {
1020
- $post: {
1005
+ } | {
1021
1006
  output: {
1022
1007
  error: string;
1023
1008
  };
@@ -1028,7 +1013,11 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
1028
1013
  id: string;
1029
1014
  };
1030
1015
  };
1031
- } | {
1016
+ };
1017
+ };
1018
+ } & {
1019
+ "/automations/:id/pause": {
1020
+ $post: {
1032
1021
  output: {
1033
1022
  automation: {
1034
1023
  [x: string]: import("hono/utils/types").JSONValue;
@@ -1122,11 +1111,7 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
1122
1111
  id: string;
1123
1112
  };
1124
1113
  };
1125
- };
1126
- };
1127
- } & {
1128
- "/automations/:id/cancel": {
1129
- $post: {
1114
+ } | {
1130
1115
  output: {
1131
1116
  error: string;
1132
1117
  };
@@ -1137,7 +1122,11 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
1137
1122
  id: string;
1138
1123
  };
1139
1124
  };
1140
- } | {
1125
+ };
1126
+ };
1127
+ } & {
1128
+ "/automations/:id/cancel": {
1129
+ $post: {
1141
1130
  output: {
1142
1131
  automation: {
1143
1132
  [x: string]: import("hono/utils/types").JSONValue;
@@ -1231,16 +1220,27 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
1231
1220
  id: string;
1232
1221
  };
1233
1222
  };
1223
+ } | {
1224
+ output: {
1225
+ error: string;
1226
+ };
1227
+ outputFormat: "json";
1228
+ status: 400 | 404 | 409;
1229
+ input: {
1230
+ param: {
1231
+ id: string;
1232
+ };
1233
+ };
1234
1234
  };
1235
1235
  };
1236
1236
  } & {
1237
1237
  "/automations/:id/run": {
1238
1238
  $post: {
1239
1239
  output: {
1240
- error: string;
1240
+ runId: string;
1241
1241
  };
1242
1242
  outputFormat: "json";
1243
- status: 400 | 404 | 409;
1243
+ status: 202;
1244
1244
  input: {
1245
1245
  param: {
1246
1246
  id: string;
@@ -1248,10 +1248,10 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
1248
1248
  };
1249
1249
  } | {
1250
1250
  output: {
1251
- runId: string;
1251
+ error: string;
1252
1252
  };
1253
1253
  outputFormat: "json";
1254
- status: 202;
1254
+ status: 400 | 404 | 409;
1255
1255
  input: {
1256
1256
  param: {
1257
1257
  id: string;
@@ -1263,10 +1263,10 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
1263
1263
  "/automations/:id/check": {
1264
1264
  $post: {
1265
1265
  output: {
1266
- error: string;
1266
+ checkId: string;
1267
1267
  };
1268
1268
  outputFormat: "json";
1269
- status: 404;
1269
+ status: 202;
1270
1270
  input: {
1271
1271
  json: {
1272
1272
  mode: "execute" | "preview";
@@ -1281,7 +1281,7 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
1281
1281
  error: string;
1282
1282
  };
1283
1283
  outputFormat: "json";
1284
- status: 409;
1284
+ status: 404;
1285
1285
  input: {
1286
1286
  json: {
1287
1287
  mode: "execute" | "preview";
@@ -1293,10 +1293,10 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
1293
1293
  };
1294
1294
  } | {
1295
1295
  output: {
1296
- checkId: string;
1296
+ error: string;
1297
1297
  };
1298
1298
  outputFormat: "json";
1299
- status: 202;
1299
+ status: 409;
1300
1300
  input: {
1301
1301
  json: {
1302
1302
  mode: "execute" | "preview";
@@ -1408,6 +1408,17 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
1408
1408
  automationChecksRoutes: import("hono/hono-base").HonoBase<{}, {
1409
1409
  "/automation-checks/:checkId": {
1410
1410
  $get: {
1411
+ output: {
1412
+ error: string;
1413
+ };
1414
+ outputFormat: "json";
1415
+ status: 404;
1416
+ input: {
1417
+ param: {
1418
+ checkId: string;
1419
+ };
1420
+ };
1421
+ } | {
1411
1422
  output: {
1412
1423
  id: string;
1413
1424
  automationId: string;
@@ -1426,17 +1437,6 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
1426
1437
  checkId: string;
1427
1438
  };
1428
1439
  };
1429
- } | {
1430
- output: {
1431
- error: string;
1432
- };
1433
- outputFormat: "json";
1434
- status: 404;
1435
- input: {
1436
- param: {
1437
- checkId: string;
1438
- };
1439
- };
1440
1440
  };
1441
1441
  };
1442
1442
  }, "/", "/automation-checks/:checkId">;