@hearsay-tools/squawk 0.18.0-dev.8362 → 0.18.0-dev.8364

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.
@@ -212,20 +212,18 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
212
212
  "/automations": {
213
213
  $post: {
214
214
  output: {
215
- error: string;
216
- };
217
- outputFormat: "json";
218
- status: 400 | 404 | 409;
219
- input: {
220
- json: {
215
+ automation: {
216
+ [x: string]: import("hono/utils/types").JSONValue;
217
+ id: string;
218
+ revision: number;
221
219
  name: string;
222
220
  description?: string | undefined;
223
- enabled?: boolean | undefined;
224
- kind?: "github" | "schedule" | undefined;
221
+ enabled: boolean;
222
+ kind: "github" | "schedule";
225
223
  events?: ("issue.labeled" | "issue.opened" | "issue.unlabeled" | "pull_request.opened")[] | undefined;
226
224
  intervalSeconds?: number | undefined;
227
225
  filters?: {
228
- [x: string]: unknown;
226
+ [x: string]: import("hono/utils/types").JSONValue;
229
227
  includeExisting?: boolean | undefined;
230
228
  requireCurrentLabels?: boolean | undefined;
231
229
  authors?: string[] | undefined;
@@ -234,10 +232,11 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
234
232
  anyLabels?: string[] | undefined;
235
233
  excludeLabels?: string[] | undefined;
236
234
  changedLabels?: string[] | undefined;
237
- lookbackDays?: number | undefined;
238
- maxRecords?: number | undefined;
235
+ lookbackDays: number;
236
+ maxRecords: number;
239
237
  } | undefined;
240
238
  schedule?: {
239
+ [x: string]: import("hono/utils/types").JSONValue;
241
240
  type: "daily" | "hours" | "once" | "weekdays" | "weekly";
242
241
  hour?: number | undefined;
243
242
  minute?: number | undefined;
@@ -248,6 +247,7 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
248
247
  latestStartMinutes?: number | undefined;
249
248
  } | undefined;
250
249
  task: {
250
+ [x: string]: import("hono/utils/types").JSONValue;
251
251
  archiveWhenDone?: boolean | undefined;
252
252
  autoMergePr?: boolean | undefined;
253
253
  allowWorkers?: boolean | undefined;
@@ -268,37 +268,53 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
268
268
  bashAllowlist?: string[] | undefined;
269
269
  kind?: "plugin" | undefined;
270
270
  pluginKind?: string | undefined;
271
- config?: Record<string, unknown> | undefined;
271
+ config?: {
272
+ [x: string]: import("hono/utils/types").JSONValue;
273
+ } | undefined;
272
274
  command?: string | undefined;
273
275
  onFail?: {
274
276
  retry: string;
275
- max?: number | undefined;
277
+ max: number;
276
278
  } | undefined;
277
279
  }[] | undefined;
278
280
  runner?: string | undefined;
279
281
  model?: string | undefined;
280
282
  effort?: string | undefined;
283
+ variants?: 1 | 2 | 3 | undefined;
281
284
  worktree?: boolean | undefined;
282
285
  autonomous?: boolean | undefined;
283
286
  systemPrompt?: string | undefined;
284
287
  };
285
- enable?: boolean | undefined;
288
+ archived?: {
289
+ [x: string]: import("hono/utils/types").JSONValue;
290
+ at: string;
291
+ outcome: "cancelled" | "launched";
292
+ runId?: string | undefined;
293
+ receiptId?: string | undefined;
294
+ trigger?: "late" | "manual" | "retry" | "schedule" | undefined;
295
+ } | undefined;
296
+ createdAt: string;
297
+ updatedAt: string;
286
298
  };
299
+ once?: {
300
+ dueAt: string;
301
+ timeZone: string;
302
+ resolvedInstant: string;
303
+ note: string;
304
+ } | undefined;
287
305
  };
288
- } | {
289
- output: {
290
- automation: {
291
- [x: string]: import("hono/utils/types").JSONValue;
292
- id: string;
293
- revision: number;
306
+ outputFormat: "json";
307
+ status: 201;
308
+ input: {
309
+ json: {
294
310
  name: string;
295
311
  description?: string | undefined;
296
- enabled: boolean;
297
- kind: "github" | "schedule";
312
+ enabled?: boolean | undefined;
313
+ kind?: "github" | "schedule" | undefined;
298
314
  events?: ("issue.labeled" | "issue.opened" | "issue.unlabeled" | "pull_request.opened")[] | undefined;
299
315
  intervalSeconds?: number | undefined;
300
316
  filters?: {
301
- [x: string]: import("hono/utils/types").JSONValue;
317
+ [x: string]: unknown;
302
318
  includeExisting?: boolean | undefined;
303
319
  requireCurrentLabels?: boolean | undefined;
304
320
  authors?: string[] | undefined;
@@ -307,11 +323,10 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
307
323
  anyLabels?: string[] | undefined;
308
324
  excludeLabels?: string[] | undefined;
309
325
  changedLabels?: string[] | undefined;
310
- lookbackDays: number;
311
- maxRecords: number;
326
+ lookbackDays?: number | undefined;
327
+ maxRecords?: number | undefined;
312
328
  } | undefined;
313
329
  schedule?: {
314
- [x: string]: import("hono/utils/types").JSONValue;
315
330
  type: "daily" | "hours" | "once" | "weekdays" | "weekly";
316
331
  hour?: number | undefined;
317
332
  minute?: number | undefined;
@@ -322,7 +337,6 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
322
337
  latestStartMinutes?: number | undefined;
323
338
  } | undefined;
324
339
  task: {
325
- [x: string]: import("hono/utils/types").JSONValue;
326
340
  archiveWhenDone?: boolean | undefined;
327
341
  autoMergePr?: boolean | undefined;
328
342
  allowWorkers?: boolean | undefined;
@@ -343,43 +357,29 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
343
357
  bashAllowlist?: string[] | undefined;
344
358
  kind?: "plugin" | undefined;
345
359
  pluginKind?: string | undefined;
346
- config?: {
347
- [x: string]: import("hono/utils/types").JSONValue;
348
- } | undefined;
360
+ config?: Record<string, unknown> | undefined;
349
361
  command?: string | undefined;
350
362
  onFail?: {
351
363
  retry: string;
352
- max: number;
364
+ max?: number | undefined;
353
365
  } | undefined;
354
366
  }[] | undefined;
355
367
  runner?: string | undefined;
356
368
  model?: string | undefined;
357
369
  effort?: string | undefined;
358
- variants?: 1 | 2 | 3 | undefined;
359
370
  worktree?: boolean | undefined;
360
371
  autonomous?: boolean | undefined;
361
372
  systemPrompt?: string | undefined;
362
373
  };
363
- archived?: {
364
- [x: string]: import("hono/utils/types").JSONValue;
365
- at: string;
366
- outcome: "cancelled" | "launched";
367
- runId?: string | undefined;
368
- receiptId?: string | undefined;
369
- trigger?: "late" | "manual" | "retry" | "schedule" | undefined;
370
- } | undefined;
371
- createdAt: string;
372
- updatedAt: string;
374
+ enable?: boolean | undefined;
373
375
  };
374
- once?: {
375
- dueAt: string;
376
- timeZone: string;
377
- resolvedInstant: string;
378
- note: string;
379
- } | undefined;
376
+ };
377
+ } | {
378
+ output: {
379
+ error: string;
380
380
  };
381
381
  outputFormat: "json";
382
- status: 201;
382
+ status: 400 | 404 | 409;
383
383
  input: {
384
384
  json: {
385
385
  name: string;
@@ -454,17 +454,6 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
454
454
  } & {
455
455
  "/automations/:id": {
456
456
  $get: {
457
- output: {
458
- error: string;
459
- };
460
- outputFormat: "json";
461
- status: 400 | 404 | 409;
462
- input: {
463
- param: {
464
- id: string;
465
- };
466
- };
467
- } | {
468
457
  output: {
469
458
  automation: {
470
459
  [x: string]: import("hono/utils/types").JSONValue;
@@ -627,26 +616,35 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
627
616
  id: string;
628
617
  };
629
618
  };
630
- };
631
- };
632
- } & {
633
- "/automations/:id": {
634
- $put: {
619
+ } | {
635
620
  output: {
636
621
  error: string;
637
622
  };
638
623
  outputFormat: "json";
639
624
  status: 400 | 404 | 409;
640
625
  input: {
641
- json: {
626
+ param: {
627
+ id: string;
628
+ };
629
+ };
630
+ };
631
+ };
632
+ } & {
633
+ "/automations/:id": {
634
+ $put: {
635
+ output: {
636
+ automation: {
637
+ [x: string]: import("hono/utils/types").JSONValue;
638
+ id: string;
639
+ revision: number;
642
640
  name: string;
643
641
  description?: string | undefined;
644
- enabled?: boolean | undefined;
645
- kind?: "github" | "schedule" | undefined;
642
+ enabled: boolean;
643
+ kind: "github" | "schedule";
646
644
  events?: ("issue.labeled" | "issue.opened" | "issue.unlabeled" | "pull_request.opened")[] | undefined;
647
645
  intervalSeconds?: number | undefined;
648
646
  filters?: {
649
- [x: string]: unknown;
647
+ [x: string]: import("hono/utils/types").JSONValue;
650
648
  includeExisting?: boolean | undefined;
651
649
  requireCurrentLabels?: boolean | undefined;
652
650
  authors?: string[] | undefined;
@@ -655,10 +653,11 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
655
653
  anyLabels?: string[] | undefined;
656
654
  excludeLabels?: string[] | undefined;
657
655
  changedLabels?: string[] | undefined;
658
- lookbackDays?: number | undefined;
659
- maxRecords?: number | undefined;
656
+ lookbackDays: number;
657
+ maxRecords: number;
660
658
  } | undefined;
661
659
  schedule?: {
660
+ [x: string]: import("hono/utils/types").JSONValue;
662
661
  type: "daily" | "hours" | "once" | "weekdays" | "weekly";
663
662
  hour?: number | undefined;
664
663
  minute?: number | undefined;
@@ -669,6 +668,7 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
669
668
  latestStartMinutes?: number | undefined;
670
669
  } | undefined;
671
670
  task: {
671
+ [x: string]: import("hono/utils/types").JSONValue;
672
672
  archiveWhenDone?: boolean | undefined;
673
673
  autoMergePr?: boolean | undefined;
674
674
  allowWorkers?: boolean | undefined;
@@ -689,41 +689,47 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
689
689
  bashAllowlist?: string[] | undefined;
690
690
  kind?: "plugin" | undefined;
691
691
  pluginKind?: string | undefined;
692
- config?: Record<string, unknown> | undefined;
692
+ config?: {
693
+ [x: string]: import("hono/utils/types").JSONValue;
694
+ } | undefined;
693
695
  command?: string | undefined;
694
696
  onFail?: {
695
697
  retry: string;
696
- max?: number | undefined;
698
+ max: number;
697
699
  } | undefined;
698
700
  }[] | undefined;
699
701
  runner?: string | undefined;
700
702
  model?: string | undefined;
701
703
  effort?: string | undefined;
704
+ variants?: 1 | 2 | 3 | undefined;
702
705
  worktree?: boolean | undefined;
703
706
  autonomous?: boolean | undefined;
704
707
  systemPrompt?: string | undefined;
705
708
  };
706
- expectedRevision: number;
707
- };
708
- } & {
709
- param: {
710
- id: string;
709
+ archived?: {
710
+ [x: string]: import("hono/utils/types").JSONValue;
711
+ at: string;
712
+ outcome: "cancelled" | "launched";
713
+ runId?: string | undefined;
714
+ receiptId?: string | undefined;
715
+ trigger?: "late" | "manual" | "retry" | "schedule" | undefined;
716
+ } | undefined;
717
+ createdAt: string;
718
+ updatedAt: string;
711
719
  };
712
720
  };
713
- } | {
714
- output: {
715
- automation: {
716
- [x: string]: import("hono/utils/types").JSONValue;
717
- id: string;
718
- revision: number;
721
+ outputFormat: "json";
722
+ status: import("hono/utils/http-status").ContentfulStatusCode;
723
+ input: {
724
+ json: {
719
725
  name: string;
720
726
  description?: string | undefined;
721
- enabled: boolean;
722
- kind: "github" | "schedule";
727
+ enabled?: boolean | undefined;
728
+ kind?: "github" | "schedule" | undefined;
723
729
  events?: ("issue.labeled" | "issue.opened" | "issue.unlabeled" | "pull_request.opened")[] | undefined;
724
730
  intervalSeconds?: number | undefined;
725
731
  filters?: {
726
- [x: string]: import("hono/utils/types").JSONValue;
732
+ [x: string]: unknown;
727
733
  includeExisting?: boolean | undefined;
728
734
  requireCurrentLabels?: boolean | undefined;
729
735
  authors?: string[] | undefined;
@@ -732,11 +738,10 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
732
738
  anyLabels?: string[] | undefined;
733
739
  excludeLabels?: string[] | undefined;
734
740
  changedLabels?: string[] | undefined;
735
- lookbackDays: number;
736
- maxRecords: number;
741
+ lookbackDays?: number | undefined;
742
+ maxRecords?: number | undefined;
737
743
  } | undefined;
738
744
  schedule?: {
739
- [x: string]: import("hono/utils/types").JSONValue;
740
745
  type: "daily" | "hours" | "once" | "weekdays" | "weekly";
741
746
  hour?: number | undefined;
742
747
  minute?: number | undefined;
@@ -747,7 +752,6 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
747
752
  latestStartMinutes?: number | undefined;
748
753
  } | undefined;
749
754
  task: {
750
- [x: string]: import("hono/utils/types").JSONValue;
751
755
  archiveWhenDone?: boolean | undefined;
752
756
  autoMergePr?: boolean | undefined;
753
757
  allowWorkers?: boolean | undefined;
@@ -768,37 +772,33 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
768
772
  bashAllowlist?: string[] | undefined;
769
773
  kind?: "plugin" | undefined;
770
774
  pluginKind?: string | undefined;
771
- config?: {
772
- [x: string]: import("hono/utils/types").JSONValue;
773
- } | undefined;
775
+ config?: Record<string, unknown> | undefined;
774
776
  command?: string | undefined;
775
777
  onFail?: {
776
778
  retry: string;
777
- max: number;
779
+ max?: number | undefined;
778
780
  } | undefined;
779
781
  }[] | undefined;
780
782
  runner?: string | undefined;
781
783
  model?: string | undefined;
782
784
  effort?: string | undefined;
783
- variants?: 1 | 2 | 3 | undefined;
784
785
  worktree?: boolean | undefined;
785
786
  autonomous?: boolean | undefined;
786
787
  systemPrompt?: string | undefined;
787
788
  };
788
- archived?: {
789
- [x: string]: import("hono/utils/types").JSONValue;
790
- at: string;
791
- outcome: "cancelled" | "launched";
792
- runId?: string | undefined;
793
- receiptId?: string | undefined;
794
- trigger?: "late" | "manual" | "retry" | "schedule" | undefined;
795
- } | undefined;
796
- createdAt: string;
797
- updatedAt: string;
789
+ expectedRevision: number;
798
790
  };
791
+ } & {
792
+ param: {
793
+ id: string;
794
+ };
795
+ };
796
+ } | {
797
+ output: {
798
+ error: string;
799
799
  };
800
800
  outputFormat: "json";
801
- status: import("hono/utils/http-status").ContentfulStatusCode;
801
+ status: 400 | 404 | 409;
802
802
  input: {
803
803
  json: {
804
804
  name: string;
@@ -901,17 +901,6 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
901
901
  } & {
902
902
  "/automations/:id/enable": {
903
903
  $post: {
904
- output: {
905
- error: string;
906
- };
907
- outputFormat: "json";
908
- status: 400 | 404 | 409;
909
- input: {
910
- param: {
911
- id: string;
912
- };
913
- };
914
- } | {
915
904
  output: {
916
905
  automation: {
917
906
  [x: string]: import("hono/utils/types").JSONValue;
@@ -1005,11 +994,7 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
1005
994
  id: string;
1006
995
  };
1007
996
  };
1008
- };
1009
- };
1010
- } & {
1011
- "/automations/:id/pause": {
1012
- $post: {
997
+ } | {
1013
998
  output: {
1014
999
  error: string;
1015
1000
  };
@@ -1020,7 +1005,11 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
1020
1005
  id: string;
1021
1006
  };
1022
1007
  };
1023
- } | {
1008
+ };
1009
+ };
1010
+ } & {
1011
+ "/automations/:id/pause": {
1012
+ $post: {
1024
1013
  output: {
1025
1014
  automation: {
1026
1015
  [x: string]: import("hono/utils/types").JSONValue;
@@ -1114,11 +1103,7 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
1114
1103
  id: string;
1115
1104
  };
1116
1105
  };
1117
- };
1118
- };
1119
- } & {
1120
- "/automations/:id/cancel": {
1121
- $post: {
1106
+ } | {
1122
1107
  output: {
1123
1108
  error: string;
1124
1109
  };
@@ -1129,7 +1114,11 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
1129
1114
  id: string;
1130
1115
  };
1131
1116
  };
1132
- } | {
1117
+ };
1118
+ };
1119
+ } & {
1120
+ "/automations/:id/cancel": {
1121
+ $post: {
1133
1122
  output: {
1134
1123
  automation: {
1135
1124
  [x: string]: import("hono/utils/types").JSONValue;
@@ -1223,16 +1212,27 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
1223
1212
  id: string;
1224
1213
  };
1225
1214
  };
1215
+ } | {
1216
+ output: {
1217
+ error: string;
1218
+ };
1219
+ outputFormat: "json";
1220
+ status: 400 | 404 | 409;
1221
+ input: {
1222
+ param: {
1223
+ id: string;
1224
+ };
1225
+ };
1226
1226
  };
1227
1227
  };
1228
1228
  } & {
1229
1229
  "/automations/:id/run": {
1230
1230
  $post: {
1231
1231
  output: {
1232
- error: string;
1232
+ runId: string;
1233
1233
  };
1234
1234
  outputFormat: "json";
1235
- status: 400 | 404 | 409;
1235
+ status: 202;
1236
1236
  input: {
1237
1237
  param: {
1238
1238
  id: string;
@@ -1240,10 +1240,10 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
1240
1240
  };
1241
1241
  } | {
1242
1242
  output: {
1243
- runId: string;
1243
+ error: string;
1244
1244
  };
1245
1245
  outputFormat: "json";
1246
- status: 202;
1246
+ status: 400 | 404 | 409;
1247
1247
  input: {
1248
1248
  param: {
1249
1249
  id: string;
@@ -1255,10 +1255,10 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
1255
1255
  "/automations/:id/check": {
1256
1256
  $post: {
1257
1257
  output: {
1258
- error: string;
1258
+ checkId: string;
1259
1259
  };
1260
1260
  outputFormat: "json";
1261
- status: 404;
1261
+ status: 202;
1262
1262
  input: {
1263
1263
  json: {
1264
1264
  mode: "execute" | "preview";
@@ -1273,7 +1273,7 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
1273
1273
  error: string;
1274
1274
  };
1275
1275
  outputFormat: "json";
1276
- status: 409;
1276
+ status: 404;
1277
1277
  input: {
1278
1278
  json: {
1279
1279
  mode: "execute" | "preview";
@@ -1285,10 +1285,10 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
1285
1285
  };
1286
1286
  } | {
1287
1287
  output: {
1288
- checkId: string;
1288
+ error: string;
1289
1289
  };
1290
1290
  outputFormat: "json";
1291
- status: 202;
1291
+ status: 409;
1292
1292
  input: {
1293
1293
  json: {
1294
1294
  mode: "execute" | "preview";
@@ -1400,6 +1400,17 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
1400
1400
  automationChecksRoutes: import("hono/hono-base").HonoBase<{}, {
1401
1401
  "/automation-checks/:checkId": {
1402
1402
  $get: {
1403
+ output: {
1404
+ error: string;
1405
+ };
1406
+ outputFormat: "json";
1407
+ status: 404;
1408
+ input: {
1409
+ param: {
1410
+ checkId: string;
1411
+ };
1412
+ };
1413
+ } | {
1403
1414
  output: {
1404
1415
  id: string;
1405
1416
  automationId: string;
@@ -1418,17 +1429,6 @@ export declare function createAutomationsRouteBundles(deps: AutomationsRouteDeps
1418
1429
  checkId: string;
1419
1430
  };
1420
1431
  };
1421
- } | {
1422
- output: {
1423
- error: string;
1424
- };
1425
- outputFormat: "json";
1426
- status: 404;
1427
- input: {
1428
- param: {
1429
- checkId: string;
1430
- };
1431
- };
1432
1432
  };
1433
1433
  };
1434
1434
  }, "/", "/automation-checks/:checkId">;