@hearsay-tools/squawk 0.19.0-dev.9130 → 0.19.0-dev.9134

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.
Files changed (82) hide show
  1. package/dist/ci-wait/controller.d.ts +7 -7
  2. package/dist/delegation/routes.d.ts +78 -78
  3. package/dist/features/hosts/routes.d.ts +44 -44
  4. package/dist/features/reports/routes.d.ts +2 -2
  5. package/dist/features/webhooks/routes.d.ts +38 -38
  6. package/dist/server/activity-routes.d.ts +23 -23
  7. package/dist/server/models-routes.d.ts +12 -12
  8. package/dist/server/project-settings-routes.d.ts +107 -107
  9. package/dist/server/projects-routes.d.ts +41 -41
  10. package/dist/server/provider-sign-in-routes.d.ts +2 -2
  11. package/dist/server/providers-routes.d.ts +58 -58
  12. package/dist/server/runner-install-routes.d.ts +10 -10
  13. package/dist/server/runners-routes.d.ts +10 -10
  14. package/dist/server/runs-routes.d.ts +325 -325
  15. package/dist/server/server.d.ts +1170 -1170
  16. package/dist/server/workspace-identity-routes.d.ts +5 -5
  17. package/dist/server/workspace-live-routes.d.ts +5 -5
  18. package/dist/server/workspace-routes.d.ts +85 -85
  19. package/package.json +4 -4
  20. package/web/dist/assets/{accounts-section-CB4vkCsb.js → accounts-section-BsgnDmow.js} +1 -1
  21. package/web/dist/assets/{activity-motion-CWVqj0za.js → activity-motion-Ckq9kC3I.js} +1 -1
  22. package/web/dist/assets/{activity-route-D_1WO5Z1.js → activity-route-5S9WhN9U.js} +1 -1
  23. package/web/dist/assets/{agent-config-section-DoqyETC4.js → agent-config-section-D8pxNy2V.js} +1 -1
  24. package/web/dist/assets/{agent-defaults-section-OS2L78-e.js → agent-defaults-section-et5LHv9W.js} +1 -1
  25. package/web/dist/assets/{appearance-CLcSBCp1.js → appearance-D_t3wCjY.js} +1 -1
  26. package/web/dist/assets/{archive-on-merge-field-C2Byigt_.js → archive-on-merge-field-C63xRNFZ.js} +1 -1
  27. package/web/dist/assets/{ask-card-C4IYkE2O.js → ask-card-kqWOqKIc.js} +3 -3
  28. package/web/dist/assets/{automations-route-BZHu5YyF.js → automations-route-B5YBpGMc.js} +2 -2
  29. package/web/dist/assets/{commit-list-B8WibZ6m.js → commit-list-Bjc-pQxv.js} +1 -1
  30. package/web/dist/assets/{diff-controls-QX-jSmyx.js → diff-controls-CaCUSyxs.js} +1 -1
  31. package/web/dist/assets/{diff-B_8aWFPC.js → diff-lwWO-At7.js} +2 -2
  32. package/web/dist/assets/{diff-view-BS1q2trQ.js → diff-view-4wxDvYXE.js} +1 -1
  33. package/web/dist/assets/discard-changes-dialog-B3gvm7lX.js +1 -0
  34. package/web/dist/assets/{file-preview-Dfpn6tQe.js → file-preview-98pJhZJj.js} +1 -1
  35. package/web/dist/assets/{git-toolbar-DuUdRzI1.js → git-toolbar-CepvG0Ng.js} +1 -1
  36. package/web/dist/assets/{github-CPC8EK-y.js → github-4Jhl7lLG.js} +1 -1
  37. package/web/dist/assets/{global-activity-route-B7WkPq9M.js → global-activity-route-DhmrWj31.js} +1 -1
  38. package/web/dist/assets/{index-FmHk4o3n.css → index-BK1FcZrA.css} +1 -1
  39. package/web/dist/assets/index-DJB0lid-.js +21 -0
  40. package/web/dist/assets/{markdown-B0yqWHDP.js → markdown-BAPhDASs.js} +1 -1
  41. package/web/dist/assets/{option-select-COXy_9e6.js → option-select-BwSkbCrQ.js} +1 -1
  42. package/web/dist/assets/{preferences-section-Bbzs9RW1.js → preferences-section-Cvh644K0.js} +1 -1
  43. package/web/dist/assets/{preview-pane-connected-dMTWNhX8.js → preview-pane-connected-B08ZdGux.js} +2 -2
  44. package/web/dist/assets/{project-location-B-O2lQQU.js → project-location-DR8go8oL.js} +1 -1
  45. package/web/dist/assets/{projects-section-BjffHvrf.js → projects-section-XDboHBFP.js} +1 -1
  46. package/web/dist/assets/{prompt-templates-section--SsT2vbo.js → prompt-templates-section-DcxD28iA.js} +2 -2
  47. package/web/dist/assets/{remote-settings-notice-DyWrqTzR.js → remote-settings-notice-Dtaa3ovl.js} +1 -1
  48. package/web/dist/assets/repo-git-Dp9R2TuI.js +1 -0
  49. package/web/dist/assets/{report-reader-Cu5tL1Ph.js → report-reader-mbkd2DKt.js} +1 -1
  50. package/web/dist/assets/{reports-D9ouruqt.js → reports-ya2OW-iR.js} +1 -1
  51. package/web/dist/assets/{resources-section-D21Lq0Jb.js → resources-section-g5XRlefz.js} +1 -1
  52. package/web/dist/assets/{review-notes-drafts-AEBwPEaV.js → review-notes-drafts-BdBvLP6E.js} +1 -1
  53. package/web/dist/assets/{review-panel-Cy1EYoBI.js → review-panel-Ba8yb8Fu.js} +1 -1
  54. package/web/dist/assets/{review-strip-ClN1AfmS.js → review-strip-CdlMeV2i.js} +1 -1
  55. package/web/dist/assets/run-header-BTRXYB4W.js +2 -0
  56. package/web/dist/assets/{select-JCfCIElu.js → select-DdH25sWT.js} +1 -1
  57. package/web/dist/assets/{session-context-section-Cbzxxjcu.js → session-context-section-BqEdLdTv.js} +2 -2
  58. package/web/dist/assets/{settings-agent-picker-1H6fIPXo.js → settings-agent-picker-b4M6fQ8m.js} +1 -1
  59. package/web/dist/assets/{settings-save-bar-BUi6H-gE.js → settings-save-bar-DFY_Km4X.js} +1 -1
  60. package/web/dist/assets/{settings-shell-lj--GRCk.js → settings-shell-BUwdvhI9.js} +1 -1
  61. package/web/dist/assets/{sidebar-section-Cv1ulfXy.js → sidebar-section-CcucfASN.js} +1 -1
  62. package/web/dist/assets/{skills-DAJzu767.js → skills-BLkPhZO8.js} +1 -1
  63. package/web/dist/assets/{task-changes-GTdXC-dZ.js → task-changes-Drvnew5P.js} +2 -2
  64. package/web/dist/assets/{task-commits-6ZKh7FRW.js → task-commits-1MJHuX1i.js} +1 -1
  65. package/web/dist/assets/{task-file-scope-CaJR98S8.js → task-file-scope-CB3L3KQl.js} +1 -1
  66. package/web/dist/assets/{task-files-DRnSkRoC.js → task-files-B9okW1TC.js} +1 -1
  67. package/web/dist/assets/{task-github-item-080YJpbP.js → task-github-item-CMNk7FxR.js} +1 -1
  68. package/web/dist/assets/{task-thread-D1bM1I_e.js → task-thread-_2ch8BRt.js} +2 -2
  69. package/web/dist/assets/{task-thread-C70CCqyd.css → task-thread-a6CXLxwn.css} +1 -1
  70. package/web/dist/assets/{thread-state-CmjIQNn7.js → thread-state-qNczqxZQ.js} +1 -1
  71. package/web/dist/assets/{use-finish-run-BE6ugaLE.js → use-finish-run-Dvm4JnAH.js} +1 -1
  72. package/web/dist/assets/{use-hand-to-agent-state-CK_1_QCG.js → use-hand-to-agent-state-CBJvP-US.js} +1 -1
  73. package/web/dist/assets/use-path-bases-C9yvZF5B.js +1 -0
  74. package/web/dist/assets/{workflows-D9hqYoNT.js → workflows-BUcx-n8J.js} +3 -3
  75. package/web/dist/assets/{workspace-tools-DuYt1zu5.js → workspace-tools-dbiR1fzO.js} +1 -1
  76. package/web/dist/assets/{worktrees-section-JViXzzNC.js → worktrees-section-Dyb_QkSd.js} +1 -1
  77. package/web/dist/index.html +2 -2
  78. package/web/dist/assets/discard-changes-dialog-_XKURVyg.js +0 -1
  79. package/web/dist/assets/index-BovBmPyJ.js +0 -21
  80. package/web/dist/assets/repo-git-CAX7JKaD.js +0 -1
  81. package/web/dist/assets/run-header-C7L9lspH.js +0 -2
  82. package/web/dist/assets/use-path-bases-RiQd3y2m.js +0 -1
@@ -121,12 +121,9 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
121
121
  } & {
122
122
  "/api/v1/tools/:name": {
123
123
  $post: {
124
- output: {
125
- code: string;
126
- message: string;
127
- };
124
+ output: never;
128
125
  outputFormat: "json";
129
- status: 401;
126
+ status: import("hono/utils/http-status").ContentfulStatusCode;
130
127
  input: {
131
128
  json: unknown;
132
129
  } & {
@@ -149,9 +146,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
149
146
  };
150
147
  };
151
148
  } | {
152
- output: never;
149
+ output: {
150
+ code: string;
151
+ message: string;
152
+ };
153
153
  outputFormat: "json";
154
- status: import("hono/utils/http-status").ContentfulStatusCode;
154
+ status: 401;
155
155
  input: {
156
156
  json: unknown;
157
157
  } & {
@@ -27,6 +27,18 @@ 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
+ } | {
30
42
  output: {
31
43
  workers: {
32
44
  workerId: string;
@@ -79,18 +91,6 @@ export declare function createDelegationRoutes(service: DelegationService, crede
79
91
  offset?: string | undefined;
80
92
  };
81
93
  };
82
- } | {
83
- output: {
84
- error: string;
85
- code?: "invalid_input" | undefined;
86
- };
87
- outputFormat: "json";
88
- status: 400;
89
- input: {
90
- query: {
91
- offset?: string | undefined;
92
- };
93
- };
94
94
  };
95
95
  };
96
96
  } & {
@@ -677,6 +677,18 @@ export declare function createDelegationRoutes(service: DelegationService, crede
677
677
  } & {
678
678
  "/:workerId": {
679
679
  $get: {
680
+ output: {
681
+ error: string;
682
+ code?: "invalid_input" | undefined;
683
+ };
684
+ outputFormat: "json";
685
+ status: 400;
686
+ input: {
687
+ param: {
688
+ workerId: string;
689
+ };
690
+ };
691
+ } | {
680
692
  output: {
681
693
  workerId: string;
682
694
  settled: boolean;
@@ -801,7 +813,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
801
813
  workerId: string;
802
814
  };
803
815
  };
804
- } | {
816
+ };
817
+ };
818
+ } & {
819
+ "/:workerId/collect": {
820
+ $post: {
805
821
  output: {
806
822
  error: string;
807
823
  code?: "invalid_input" | undefined;
@@ -812,12 +828,10 @@ export declare function createDelegationRoutes(service: DelegationService, crede
812
828
  param: {
813
829
  workerId: string;
814
830
  };
831
+ } & {
832
+ json: Record<string, never>;
815
833
  };
816
- };
817
- };
818
- } & {
819
- "/:workerId/collect": {
820
- $post: {
834
+ } | {
821
835
  output: {
822
836
  workerId: string;
823
837
  parentRunId: string;
@@ -942,7 +956,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
942
956
  } & {
943
957
  json: Record<string, never>;
944
958
  };
945
- } | {
959
+ };
960
+ };
961
+ } & {
962
+ "/:workerId/steer": {
963
+ $post: {
946
964
  output: {
947
965
  error: string;
948
966
  code?: "invalid_input" | undefined;
@@ -954,13 +972,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
954
972
  workerId: string;
955
973
  };
956
974
  } & {
957
- json: Record<string, never>;
975
+ json: {
976
+ text: string;
977
+ };
958
978
  };
959
- };
960
- };
961
- } & {
962
- "/:workerId/steer": {
963
- $post: {
979
+ } | {
964
980
  output: {
965
981
  workerId: string;
966
982
  state: "delivered" | "queued";
@@ -976,7 +992,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
976
992
  text: string;
977
993
  };
978
994
  };
979
- } | {
995
+ };
996
+ };
997
+ } & {
998
+ "/:workerId/stop": {
999
+ $post: {
980
1000
  output: {
981
1001
  error: string;
982
1002
  code?: "invalid_input" | undefined;
@@ -988,15 +1008,9 @@ export declare function createDelegationRoutes(service: DelegationService, crede
988
1008
  workerId: string;
989
1009
  };
990
1010
  } & {
991
- json: {
992
- text: string;
993
- };
1011
+ json: Record<string, never>;
994
1012
  };
995
- };
996
- };
997
- } & {
998
- "/:workerId/stop": {
999
- $post: {
1013
+ } | {
1000
1014
  output: {
1001
1015
  workerId: string;
1002
1016
  state: "stopping" | "terminated";
@@ -1010,7 +1024,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1010
1024
  } & {
1011
1025
  json: Record<string, never>;
1012
1026
  };
1013
- } | {
1027
+ };
1028
+ };
1029
+ } & {
1030
+ "/:workerId/destroy": {
1031
+ $post: {
1014
1032
  output: {
1015
1033
  error: string;
1016
1034
  code?: "invalid_input" | undefined;
@@ -1022,13 +1040,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1022
1040
  workerId: string;
1023
1041
  };
1024
1042
  } & {
1025
- json: Record<string, never>;
1043
+ json: {
1044
+ discardWork?: true | undefined;
1045
+ };
1026
1046
  };
1027
- };
1028
- };
1029
- } & {
1030
- "/:workerId/destroy": {
1031
- $post: {
1047
+ } | {
1032
1048
  output: {
1033
1049
  workerId: string;
1034
1050
  state: "complete" | "incomplete";
@@ -1057,22 +1073,6 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1057
1073
  discardWork?: true | undefined;
1058
1074
  };
1059
1075
  };
1060
- } | {
1061
- output: {
1062
- error: string;
1063
- code?: "invalid_input" | undefined;
1064
- };
1065
- outputFormat: "json";
1066
- status: 400;
1067
- input: {
1068
- param: {
1069
- workerId: string;
1070
- };
1071
- } & {
1072
- json: {
1073
- discardWork?: true | undefined;
1074
- };
1075
- };
1076
1076
  } | {
1077
1077
  output: {
1078
1078
  workerId: string;
@@ -1108,18 +1108,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1108
1108
  "/:workerId/summary": {
1109
1109
  $post: {
1110
1110
  output: {
1111
- workerId: string;
1112
- revision: number;
1113
- source: "assistant" | "failure";
1114
- seq: number;
1115
- totalLines: number;
1116
- offset: number;
1117
- lineCount: number;
1118
- text: string;
1119
- nextOffset?: number | undefined;
1111
+ error: string;
1112
+ code?: "invalid_input" | undefined;
1120
1113
  };
1121
1114
  outputFormat: "json";
1122
- status: 200;
1115
+ status: 400;
1123
1116
  input: {
1124
1117
  param: {
1125
1118
  workerId: string;
@@ -1132,11 +1125,18 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1132
1125
  };
1133
1126
  } | {
1134
1127
  output: {
1135
- error: string;
1136
- code?: "invalid_input" | undefined;
1128
+ workerId: string;
1129
+ revision: number;
1130
+ source: "assistant" | "failure";
1131
+ seq: number;
1132
+ totalLines: number;
1133
+ offset: number;
1134
+ lineCount: number;
1135
+ text: string;
1136
+ nextOffset?: number | undefined;
1137
1137
  };
1138
1138
  outputFormat: "json";
1139
- status: 400;
1139
+ status: 200;
1140
1140
  input: {
1141
1141
  param: {
1142
1142
  workerId: string;
@@ -1153,13 +1153,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1153
1153
  "/:workerId/diff": {
1154
1154
  $get: {
1155
1155
  output: {
1156
- workerId: string;
1157
- baselineSha: string;
1158
- diff: string;
1159
- truncated: boolean;
1156
+ error: string;
1157
+ code?: "invalid_input" | undefined;
1160
1158
  };
1161
1159
  outputFormat: "json";
1162
- status: 200;
1160
+ status: 400;
1163
1161
  input: {
1164
1162
  param: {
1165
1163
  workerId: string;
@@ -1167,11 +1165,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1167
1165
  };
1168
1166
  } | {
1169
1167
  output: {
1170
- error: string;
1171
- code?: "invalid_input" | undefined;
1168
+ workerId: string;
1169
+ baselineSha: string;
1170
+ diff: string;
1171
+ truncated: boolean;
1172
1172
  };
1173
1173
  outputFormat: "json";
1174
- status: 400;
1174
+ status: 200;
1175
1175
  input: {
1176
1176
  param: {
1177
1177
  workerId: string;
@@ -36,20 +36,10 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
36
36
  "/hosts": {
37
37
  $post: {
38
38
  output: {
39
- host: {
40
- id: string;
41
- label: string;
42
- state: "cannot-persist" | "connected" | "connecting" | "identity-changed" | "needs-node" | "not-hosted" | "paused" | "several-servers" | "unreachable" | "version-mismatch";
43
- reason?: string | undefined;
44
- kind?: "ssh" | undefined;
45
- sshAlias?: string | undefined;
46
- installId?: string | undefined;
47
- port?: number | undefined;
48
- addedAt?: string | undefined;
49
- };
39
+ error: string;
50
40
  };
51
41
  outputFormat: "json";
52
- status: 201;
42
+ status: 404;
53
43
  input: {
54
44
  json: {
55
45
  sshAlias: string;
@@ -77,7 +67,7 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
77
67
  error: string;
78
68
  };
79
69
  outputFormat: "json";
80
- status: 404;
70
+ status: 409;
81
71
  input: {
82
72
  json: {
83
73
  sshAlias: string;
@@ -91,7 +81,7 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
91
81
  error: string;
92
82
  };
93
83
  outputFormat: "json";
94
- status: 409;
84
+ status: 500;
95
85
  input: {
96
86
  json: {
97
87
  sshAlias: string;
@@ -102,10 +92,20 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
102
92
  };
103
93
  } | {
104
94
  output: {
105
- error: string;
95
+ host: {
96
+ id: string;
97
+ label: string;
98
+ state: "cannot-persist" | "connected" | "connecting" | "identity-changed" | "needs-node" | "not-hosted" | "paused" | "several-servers" | "unreachable" | "version-mismatch";
99
+ reason?: string | undefined;
100
+ kind?: "ssh" | undefined;
101
+ sshAlias?: string | undefined;
102
+ installId?: string | undefined;
103
+ port?: number | undefined;
104
+ addedAt?: string | undefined;
105
+ };
106
106
  };
107
107
  outputFormat: "json";
108
- status: 409;
108
+ status: 201;
109
109
  input: {
110
110
  json: {
111
111
  sshAlias: string;
@@ -119,7 +119,7 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
119
119
  error: string;
120
120
  };
121
121
  outputFormat: "json";
122
- status: 500;
122
+ status: 409;
123
123
  input: {
124
124
  json: {
125
125
  sshAlias: string;
@@ -134,20 +134,11 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
134
134
  "/hosts/:id": {
135
135
  $patch: {
136
136
  output: {
137
- host: {
138
- id: string;
139
- label: string;
140
- state: "cannot-persist" | "connected" | "connecting" | "identity-changed" | "needs-node" | "not-hosted" | "paused" | "several-servers" | "unreachable" | "version-mismatch";
141
- reason?: string | undefined;
142
- kind?: "ssh" | undefined;
143
- sshAlias?: string | undefined;
144
- installId?: string | undefined;
145
- port?: number | undefined;
146
- addedAt?: string | undefined;
147
- };
137
+ error: string;
138
+ code?: "invalid_input" | undefined;
148
139
  };
149
140
  outputFormat: "json";
150
- status: 200;
141
+ status: 400;
151
142
  input: {
152
143
  param: {
153
144
  id: string;
@@ -162,10 +153,9 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
162
153
  } | {
163
154
  output: {
164
155
  error: string;
165
- code?: "invalid_input" | undefined;
166
156
  };
167
157
  outputFormat: "json";
168
- status: 400;
158
+ status: 404;
169
159
  input: {
170
160
  param: {
171
161
  id: string;
@@ -199,7 +189,7 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
199
189
  error: string;
200
190
  };
201
191
  outputFormat: "json";
202
- status: 404;
192
+ status: 409;
203
193
  input: {
204
194
  param: {
205
195
  id: string;
@@ -216,7 +206,7 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
216
206
  error: string;
217
207
  };
218
208
  outputFormat: "json";
219
- status: 409;
209
+ status: 500;
220
210
  input: {
221
211
  param: {
222
212
  id: string;
@@ -247,10 +237,20 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
247
237
  };
248
238
  } | {
249
239
  output: {
250
- error: string;
240
+ host: {
241
+ id: string;
242
+ label: string;
243
+ state: "cannot-persist" | "connected" | "connecting" | "identity-changed" | "needs-node" | "not-hosted" | "paused" | "several-servers" | "unreachable" | "version-mismatch";
244
+ reason?: string | undefined;
245
+ kind?: "ssh" | undefined;
246
+ sshAlias?: string | undefined;
247
+ installId?: string | undefined;
248
+ port?: number | undefined;
249
+ addedAt?: string | undefined;
250
+ };
251
251
  };
252
252
  outputFormat: "json";
253
- status: 500;
253
+ status: 200;
254
254
  input: {
255
255
  param: {
256
256
  id: string;
@@ -268,11 +268,11 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
268
268
  "/hosts/:id": {
269
269
  $delete: {
270
270
  output: {
271
- removed: true;
272
- id: string;
271
+ error: string;
272
+ code?: "invalid_input" | undefined;
273
273
  };
274
274
  outputFormat: "json";
275
- status: 200;
275
+ status: 400;
276
276
  input: {
277
277
  param: {
278
278
  id: string;
@@ -281,10 +281,9 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
281
281
  } | {
282
282
  output: {
283
283
  error: string;
284
- code?: "invalid_input" | undefined;
285
284
  };
286
285
  outputFormat: "json";
287
- status: 400;
286
+ status: 404;
288
287
  input: {
289
288
  param: {
290
289
  id: string;
@@ -306,7 +305,7 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
306
305
  error: string;
307
306
  };
308
307
  outputFormat: "json";
309
- status: 404;
308
+ status: 409;
310
309
  input: {
311
310
  param: {
312
311
  id: string;
@@ -317,7 +316,7 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
317
316
  error: string;
318
317
  };
319
318
  outputFormat: "json";
320
- status: 409;
319
+ status: 500;
321
320
  input: {
322
321
  param: {
323
322
  id: string;
@@ -336,10 +335,11 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
336
335
  };
337
336
  } | {
338
337
  output: {
339
- error: string;
338
+ removed: true;
339
+ id: string;
340
340
  };
341
341
  outputFormat: "json";
342
- status: 500;
342
+ status: 200;
343
343
  input: {
344
344
  param: {
345
345
  id: string;
@@ -42,7 +42,7 @@ export declare function createReportsRoutes(): import("hono/hono-base").HonoBase
42
42
  error: string;
43
43
  };
44
44
  outputFormat: "json";
45
- status: 400;
45
+ status: 409;
46
46
  input: {
47
47
  query: {
48
48
  q?: string | undefined;
@@ -55,7 +55,7 @@ export declare function createReportsRoutes(): import("hono/hono-base").HonoBase
55
55
  error: string;
56
56
  };
57
57
  outputFormat: "json";
58
- status: 409;
58
+ status: 400;
59
59
  input: {
60
60
  query: {
61
61
  q?: string | undefined;
@@ -100,6 +100,18 @@ export interface ProjectWebhooksRouteDeps {
100
100
  export declare function createProjectWebhooksRoutes(deps: ProjectWebhooksRouteDeps): import("hono/hono-base").HonoBase<ProjectApiEnv, {
101
101
  "/projects/:projectId/webhook/test": {
102
102
  $post: {
103
+ output: {
104
+ error: string;
105
+ code?: "no-boot-project" | undefined;
106
+ };
107
+ outputFormat: "json";
108
+ status: 404 | 409;
109
+ input: {
110
+ param: {
111
+ projectId: string;
112
+ };
113
+ };
114
+ } | {
103
115
  output: {
104
116
  error: string;
105
117
  };
@@ -124,23 +136,33 @@ export declare function createProjectWebhooksRoutes(deps: ProjectWebhooksRouteDe
124
136
  projectId: string;
125
137
  };
126
138
  };
127
- } | {
139
+ };
140
+ };
141
+ } & {
142
+ "/projects/:projectId/webhooks": {
143
+ $post: {
128
144
  output: {
129
145
  error: string;
130
146
  code?: "no-boot-project" | undefined;
131
147
  };
132
148
  outputFormat: "json";
133
- status: 404 | 409;
149
+ status: 400 | 404 | 409 | 500;
134
150
  input: {
151
+ json: {
152
+ name: string;
153
+ description?: string | undefined;
154
+ url: string;
155
+ token?: string | undefined;
156
+ tasks?: boolean | undefined;
157
+ triggers?: ("cancelled" | "done" | "failed" | "needs-you" | "running" | "waiting-ci" | "waiting-other" | "waiting-timer" | "waiting-workers")[] | undefined;
158
+ agent?: boolean | undefined;
159
+ };
160
+ } & {
135
161
  param: {
136
162
  projectId: string;
137
163
  };
138
164
  };
139
- };
140
- };
141
- } & {
142
- "/projects/:projectId/webhooks": {
143
- $post: {
165
+ } | {
144
166
  output: {
145
167
  project: {
146
168
  id: string;
@@ -199,28 +221,6 @@ export declare function createProjectWebhooksRoutes(deps: ProjectWebhooksRouteDe
199
221
  projectId: string;
200
222
  };
201
223
  };
202
- } | {
203
- output: {
204
- error: string;
205
- code?: "no-boot-project" | undefined;
206
- };
207
- outputFormat: "json";
208
- status: 400 | 404 | 409 | 500;
209
- input: {
210
- json: {
211
- name: string;
212
- description?: string | undefined;
213
- url: string;
214
- token?: string | undefined;
215
- tasks?: boolean | undefined;
216
- triggers?: ("cancelled" | "done" | "failed" | "needs-you" | "running" | "waiting-ci" | "waiting-other" | "waiting-timer" | "waiting-workers")[] | undefined;
217
- agent?: boolean | undefined;
218
- };
219
- } & {
220
- param: {
221
- projectId: string;
222
- };
223
- };
224
224
  };
225
225
  };
226
226
  } & {
@@ -420,10 +420,13 @@ export declare function createProjectWebhooksRoutes(deps: ProjectWebhooksRouteDe
420
420
  };
421
421
  } | {
422
422
  output: {
423
- error: string;
423
+ ok: boolean;
424
+ status?: number | undefined;
425
+ error?: string | undefined;
426
+ dryRun?: boolean | undefined;
424
427
  };
425
428
  outputFormat: "json";
426
- status: 404;
429
+ status: import("hono/utils/http-status").ContentfulStatusCode;
427
430
  input: {
428
431
  param: {
429
432
  projectId: string;
@@ -432,13 +435,11 @@ export declare function createProjectWebhooksRoutes(deps: ProjectWebhooksRouteDe
432
435
  };
433
436
  } | {
434
437
  output: {
435
- ok: boolean;
436
- status?: number | undefined;
437
- error?: string | undefined;
438
- dryRun?: boolean | undefined;
438
+ error: string;
439
+ code?: "no-boot-project" | undefined;
439
440
  };
440
441
  outputFormat: "json";
441
- status: import("hono/utils/http-status").ContentfulStatusCode;
442
+ status: 404 | 409;
442
443
  input: {
443
444
  param: {
444
445
  projectId: string;
@@ -448,10 +449,9 @@ export declare function createProjectWebhooksRoutes(deps: ProjectWebhooksRouteDe
448
449
  } | {
449
450
  output: {
450
451
  error: string;
451
- code?: "no-boot-project" | undefined;
452
452
  };
453
453
  outputFormat: "json";
454
- status: 404 | 409;
454
+ status: 404;
455
455
  input: {
456
456
  param: {
457
457
  projectId: string;