@hearsay-tools/squawk 0.18.0-pr3927.7426 → 0.18.0-pr3931.7429

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.
@@ -27,18 +27,6 @@ export declare function delegationFailure(error: unknown): {
27
27
  export declare function createDelegationRoutes(service: DelegationService, credentials: CredentialRegistry): import("hono/hono-base").HonoBase<Env, {
28
28
  "/list": {
29
29
  $get: {
30
- output: {
31
- error: string;
32
- code?: "invalid_input" | undefined;
33
- };
34
- outputFormat: "json";
35
- status: 400;
36
- input: {
37
- query: {
38
- offset?: string | undefined;
39
- };
40
- };
41
- } | {
42
30
  output: {
43
31
  workers: {
44
32
  workerId: string;
@@ -84,6 +72,18 @@ export declare function createDelegationRoutes(service: DelegationService, crede
84
72
  offset?: string | undefined;
85
73
  };
86
74
  };
75
+ } | {
76
+ output: {
77
+ error: string;
78
+ code?: "invalid_input" | undefined;
79
+ };
80
+ outputFormat: "json";
81
+ status: 400;
82
+ input: {
83
+ query: {
84
+ offset?: string | undefined;
85
+ };
86
+ };
87
87
  };
88
88
  };
89
89
  } & {
@@ -622,18 +622,6 @@ export declare function createDelegationRoutes(service: DelegationService, crede
622
622
  } & {
623
623
  "/:workerId": {
624
624
  $get: {
625
- output: {
626
- error: string;
627
- code?: "invalid_input" | undefined;
628
- };
629
- outputFormat: "json";
630
- status: 400;
631
- input: {
632
- param: {
633
- workerId: string;
634
- };
635
- };
636
- } | {
637
625
  output: {
638
626
  workerId: string;
639
627
  settled: boolean;
@@ -750,11 +738,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
750
738
  workerId: string;
751
739
  };
752
740
  };
753
- };
754
- };
755
- } & {
756
- "/:workerId/collect": {
757
- $post: {
741
+ } | {
758
742
  output: {
759
743
  error: string;
760
744
  code?: "invalid_input" | undefined;
@@ -765,10 +749,12 @@ export declare function createDelegationRoutes(service: DelegationService, crede
765
749
  param: {
766
750
  workerId: string;
767
751
  };
768
- } & {
769
- json: Record<string, never>;
770
752
  };
771
- } | {
753
+ };
754
+ };
755
+ } & {
756
+ "/:workerId/collect": {
757
+ $post: {
772
758
  output: {
773
759
  workerId: string;
774
760
  parentRunId: string;
@@ -891,11 +877,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
891
877
  } & {
892
878
  json: Record<string, never>;
893
879
  };
894
- };
895
- };
896
- } & {
897
- "/:workerId/steer": {
898
- $post: {
880
+ } | {
899
881
  output: {
900
882
  error: string;
901
883
  code?: "invalid_input" | undefined;
@@ -907,11 +889,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
907
889
  workerId: string;
908
890
  };
909
891
  } & {
910
- json: {
911
- text: string;
912
- };
892
+ json: Record<string, never>;
913
893
  };
914
- } | {
894
+ };
895
+ };
896
+ } & {
897
+ "/:workerId/steer": {
898
+ $post: {
915
899
  output: {
916
900
  workerId: string;
917
901
  state: "delivered" | "queued";
@@ -927,11 +911,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
927
911
  text: string;
928
912
  };
929
913
  };
930
- };
931
- };
932
- } & {
933
- "/:workerId/stop": {
934
- $post: {
914
+ } | {
935
915
  output: {
936
916
  error: string;
937
917
  code?: "invalid_input" | undefined;
@@ -943,9 +923,15 @@ export declare function createDelegationRoutes(service: DelegationService, crede
943
923
  workerId: string;
944
924
  };
945
925
  } & {
946
- json: Record<string, never>;
926
+ json: {
927
+ text: string;
928
+ };
947
929
  };
948
- } | {
930
+ };
931
+ };
932
+ } & {
933
+ "/:workerId/stop": {
934
+ $post: {
949
935
  output: {
950
936
  workerId: string;
951
937
  state: "stopping" | "terminated";
@@ -959,11 +945,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
959
945
  } & {
960
946
  json: Record<string, never>;
961
947
  };
962
- };
963
- };
964
- } & {
965
- "/:workerId/destroy": {
966
- $post: {
948
+ } | {
967
949
  output: {
968
950
  error: string;
969
951
  code?: "invalid_input" | undefined;
@@ -977,7 +959,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
977
959
  } & {
978
960
  json: Record<string, never>;
979
961
  };
980
- } | {
962
+ };
963
+ };
964
+ } & {
965
+ "/:workerId/destroy": {
966
+ $post: {
981
967
  output: {
982
968
  workerId: string;
983
969
  state: "complete" | "incomplete";
@@ -1000,6 +986,20 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1000
986
  } & {
1001
987
  json: Record<string, never>;
1002
988
  };
989
+ } | {
990
+ output: {
991
+ error: string;
992
+ code?: "invalid_input" | undefined;
993
+ };
994
+ outputFormat: "json";
995
+ status: 400;
996
+ input: {
997
+ param: {
998
+ workerId: string;
999
+ };
1000
+ } & {
1001
+ json: Record<string, never>;
1002
+ };
1003
1003
  } | {
1004
1004
  output: {
1005
1005
  workerId: string;
@@ -1029,11 +1029,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1029
1029
  "/:workerId/diff": {
1030
1030
  $get: {
1031
1031
  output: {
1032
- error: string;
1033
- code?: "invalid_input" | undefined;
1032
+ workerId: string;
1033
+ baselineSha: string;
1034
+ diff: string;
1035
+ truncated: boolean;
1034
1036
  };
1035
1037
  outputFormat: "json";
1036
- status: 400;
1038
+ status: 200;
1037
1039
  input: {
1038
1040
  param: {
1039
1041
  workerId: string;
@@ -1041,13 +1043,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1041
1043
  };
1042
1044
  } | {
1043
1045
  output: {
1044
- workerId: string;
1045
- baselineSha: string;
1046
- diff: string;
1047
- truncated: boolean;
1046
+ error: string;
1047
+ code?: "invalid_input" | undefined;
1048
1048
  };
1049
1049
  outputFormat: "json";
1050
- status: 200;
1050
+ status: 400;
1051
1051
  input: {
1052
1052
  param: {
1053
1053
  workerId: string;
@@ -40,7 +40,7 @@ export declare const reportsRoutes: import("hono/hono-base").HonoBase<ProjectApi
40
40
  error: string;
41
41
  };
42
42
  outputFormat: "json";
43
- status: 400;
43
+ status: 409;
44
44
  input: {
45
45
  query: {
46
46
  q?: string | undefined;
@@ -53,7 +53,7 @@ export declare const reportsRoutes: import("hono/hono-base").HonoBase<ProjectApi
53
53
  error: string;
54
54
  };
55
55
  outputFormat: "json";
56
- status: 409;
56
+ status: 400;
57
57
  input: {
58
58
  query: {
59
59
  q?: string | undefined;