@hearsay-tools/squawk 0.18.0-pr4101.7848 → 0.18.0-pr4101.7849

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.
@@ -2,18 +2,6 @@ import type { DelegationRoutes } from './routes.ts';
2
2
  export declare function createDelegationApp(routes: DelegationRoutes): import("hono/hono-base").HonoBase<import("hono/types").BlankEnv, import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<{
3
3
  "/list": {
4
4
  $get: {
5
- output: {
6
- error: string;
7
- code?: "invalid_input" | undefined;
8
- };
9
- outputFormat: "json";
10
- status: 400;
11
- input: {
12
- query: {
13
- offset?: string | undefined;
14
- };
15
- };
16
- } | {
17
5
  output: {
18
6
  workers: {
19
7
  workerId: string;
@@ -60,6 +48,18 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
60
48
  offset?: string | undefined;
61
49
  };
62
50
  };
51
+ } | {
52
+ output: {
53
+ error: string;
54
+ code?: "invalid_input" | undefined;
55
+ };
56
+ outputFormat: "json";
57
+ status: 400;
58
+ input: {
59
+ query: {
60
+ offset?: string | undefined;
61
+ };
62
+ };
63
63
  };
64
64
  };
65
65
  } & {
@@ -604,18 +604,6 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
604
604
  } & {
605
605
  "/:workerId": {
606
606
  $get: {
607
- output: {
608
- error: string;
609
- code?: "invalid_input" | undefined;
610
- };
611
- outputFormat: "json";
612
- status: 400;
613
- input: {
614
- param: {
615
- workerId: string;
616
- };
617
- };
618
- } | {
619
607
  output: {
620
608
  workerId: string;
621
609
  settled: boolean;
@@ -733,11 +721,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
733
721
  workerId: string;
734
722
  };
735
723
  };
736
- };
737
- };
738
- } & {
739
- "/:workerId/collect": {
740
- $post: {
724
+ } | {
741
725
  output: {
742
726
  error: string;
743
727
  code?: "invalid_input" | undefined;
@@ -748,10 +732,12 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
748
732
  param: {
749
733
  workerId: string;
750
734
  };
751
- } & {
752
- json: Record<string, never>;
753
735
  };
754
- } | {
736
+ };
737
+ };
738
+ } & {
739
+ "/:workerId/collect": {
740
+ $post: {
755
741
  output: {
756
742
  workerId: string;
757
743
  parentRunId: string;
@@ -874,11 +860,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
874
860
  } & {
875
861
  json: Record<string, never>;
876
862
  };
877
- };
878
- };
879
- } & {
880
- "/:workerId/steer": {
881
- $post: {
863
+ } | {
882
864
  output: {
883
865
  error: string;
884
866
  code?: "invalid_input" | undefined;
@@ -890,11 +872,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
890
872
  workerId: string;
891
873
  };
892
874
  } & {
893
- json: {
894
- text: string;
895
- };
875
+ json: Record<string, never>;
896
876
  };
897
- } | {
877
+ };
878
+ };
879
+ } & {
880
+ "/:workerId/steer": {
881
+ $post: {
898
882
  output: {
899
883
  workerId: string;
900
884
  state: "delivered" | "queued";
@@ -910,11 +894,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
910
894
  text: string;
911
895
  };
912
896
  };
913
- };
914
- };
915
- } & {
916
- "/:workerId/stop": {
917
- $post: {
897
+ } | {
918
898
  output: {
919
899
  error: string;
920
900
  code?: "invalid_input" | undefined;
@@ -926,9 +906,15 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
926
906
  workerId: string;
927
907
  };
928
908
  } & {
929
- json: Record<string, never>;
909
+ json: {
910
+ text: string;
911
+ };
930
912
  };
931
- } | {
913
+ };
914
+ };
915
+ } & {
916
+ "/:workerId/stop": {
917
+ $post: {
932
918
  output: {
933
919
  workerId: string;
934
920
  state: "stopping" | "terminated";
@@ -942,11 +928,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
942
928
  } & {
943
929
  json: Record<string, never>;
944
930
  };
945
- };
946
- };
947
- } & {
948
- "/:workerId/destroy": {
949
- $post: {
931
+ } | {
950
932
  output: {
951
933
  error: string;
952
934
  code?: "invalid_input" | undefined;
@@ -958,11 +940,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
958
940
  workerId: string;
959
941
  };
960
942
  } & {
961
- json: {
962
- discardWork?: true | undefined;
963
- };
943
+ json: Record<string, never>;
964
944
  };
965
- } | {
945
+ };
946
+ };
947
+ } & {
948
+ "/:workerId/destroy": {
949
+ $post: {
966
950
  output: {
967
951
  workerId: string;
968
952
  state: "complete" | "incomplete";
@@ -991,6 +975,22 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
991
975
  discardWork?: true | undefined;
992
976
  };
993
977
  };
978
+ } | {
979
+ output: {
980
+ error: string;
981
+ code?: "invalid_input" | undefined;
982
+ };
983
+ outputFormat: "json";
984
+ status: 400;
985
+ input: {
986
+ param: {
987
+ workerId: string;
988
+ };
989
+ } & {
990
+ json: {
991
+ discardWork?: true | undefined;
992
+ };
993
+ };
994
994
  } | {
995
995
  output: {
996
996
  workerId: string;
@@ -1026,11 +1026,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
1026
1026
  "/:workerId/diff": {
1027
1027
  $get: {
1028
1028
  output: {
1029
- error: string;
1030
- code?: "invalid_input" | undefined;
1029
+ workerId: string;
1030
+ baselineSha: string;
1031
+ diff: string;
1032
+ truncated: boolean;
1031
1033
  };
1032
1034
  outputFormat: "json";
1033
- status: 400;
1035
+ status: 200;
1034
1036
  input: {
1035
1037
  param: {
1036
1038
  workerId: string;
@@ -1038,13 +1040,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
1038
1040
  };
1039
1041
  } | {
1040
1042
  output: {
1041
- workerId: string;
1042
- baselineSha: string;
1043
- diff: string;
1044
- truncated: boolean;
1043
+ error: string;
1044
+ code?: "invalid_input" | undefined;
1045
1045
  };
1046
1046
  outputFormat: "json";
1047
- status: 200;
1047
+ status: 400;
1048
1048
  input: {
1049
1049
  param: {
1050
1050
  workerId: string;
@@ -18,7 +18,7 @@ export declare function createProviderSignInRoutes(options: {
18
18
  error: string;
19
19
  };
20
20
  outputFormat: "json";
21
- status: 409;
21
+ status: 400;
22
22
  input: {
23
23
  json: {
24
24
  provider: string;
@@ -30,7 +30,7 @@ export declare function createProviderSignInRoutes(options: {
30
30
  error: string;
31
31
  };
32
32
  outputFormat: "json";
33
- status: 400;
33
+ status: 409;
34
34
  input: {
35
35
  json: {
36
36
  provider: string;
@@ -51,11 +51,15 @@ export declare function createRunnerInstallRoutes(options: {
51
51
  "/runner-install/:runner": {
52
52
  $post: {
53
53
  output: {
54
- error: string;
55
- code?: "invalid_input" | undefined;
54
+ supported: boolean;
55
+ installedVersion: string | null;
56
+ latestVersion: string | null;
57
+ updateAvailable: boolean;
58
+ phase: "activating" | "checking" | "downloading" | "extracting" | "failed" | "idle" | "removing" | "verifying";
59
+ error: string | null;
56
60
  };
57
61
  outputFormat: "json";
58
- status: 400;
62
+ status: 202;
59
63
  input: {
60
64
  param: {
61
65
  runner: string;
@@ -67,15 +71,11 @@ export declare function createRunnerInstallRoutes(options: {
67
71
  };
68
72
  } | {
69
73
  output: {
70
- supported: boolean;
71
- installedVersion: string | null;
72
- latestVersion: string | null;
73
- updateAvailable: boolean;
74
- phase: "activating" | "checking" | "downloading" | "extracting" | "failed" | "idle" | "removing" | "verifying";
75
- error: string | null;
74
+ error: string;
75
+ code?: "invalid_input" | undefined;
76
76
  };
77
77
  outputFormat: "json";
78
- status: 202;
78
+ status: 400;
79
79
  input: {
80
80
  param: {
81
81
  runner: string;