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

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 (83) 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/repo-routes.d.ts +13 -13
  13. package/dist/server/runner-install-routes.d.ts +10 -10
  14. package/dist/server/runners-routes.d.ts +10 -10
  15. package/dist/server/runs-routes.d.ts +333 -333
  16. package/dist/server/server.d.ts +1170 -1170
  17. package/dist/server/workspace-identity-routes.d.ts +5 -5
  18. package/dist/server/workspace-live-routes.d.ts +5 -5
  19. package/dist/server/workspace-routes.d.ts +85 -85
  20. package/package.json +4 -4
  21. package/web/dist/assets/{accounts-section-DL3fIJ3Y.js → accounts-section-CB4vkCsb.js} +1 -1
  22. package/web/dist/assets/{activity-motion-nt1FXMrF.js → activity-motion-CWVqj0za.js} +1 -1
  23. package/web/dist/assets/{activity-route-xVy2K_Fi.js → activity-route-D_1WO5Z1.js} +1 -1
  24. package/web/dist/assets/{agent-config-section-nFavGeR2.js → agent-config-section-DoqyETC4.js} +1 -1
  25. package/web/dist/assets/{agent-defaults-section-CN0pC4xG.js → agent-defaults-section-OS2L78-e.js} +1 -1
  26. package/web/dist/assets/{appearance-zGuTSgIy.js → appearance-CLcSBCp1.js} +1 -1
  27. package/web/dist/assets/{archive-on-merge-field-BaKNf-j4.js → archive-on-merge-field-C2Byigt_.js} +1 -1
  28. package/web/dist/assets/{ask-card-huOW3GMV.js → ask-card-C4IYkE2O.js} +1 -1
  29. package/web/dist/assets/{automations-route-GBaRU2IS.js → automations-route-BZHu5YyF.js} +1 -1
  30. package/web/dist/assets/{commit-list-x-75vYko.js → commit-list-B8WibZ6m.js} +1 -1
  31. package/web/dist/assets/{diff-Bhh_CAtI.js → diff-B_8aWFPC.js} +2 -2
  32. package/web/dist/assets/{diff-controls-BOnMrLuP.js → diff-controls-QX-jSmyx.js} +1 -1
  33. package/web/dist/assets/{diff-view-DiPeQi9D.js → diff-view-BS1q2trQ.js} +1 -1
  34. package/web/dist/assets/{discard-changes-dialog-BMofaFwH.js → discard-changes-dialog-_XKURVyg.js} +1 -1
  35. package/web/dist/assets/{file-preview-ChwOU1Uc.js → file-preview-Dfpn6tQe.js} +1 -1
  36. package/web/dist/assets/{git-toolbar-BdhjSQLm.js → git-toolbar-DuUdRzI1.js} +1 -1
  37. package/web/dist/assets/{github-DqXXUCBy.js → github-CPC8EK-y.js} +1 -1
  38. package/web/dist/assets/{global-activity-route-CZJRu2G1.js → global-activity-route-B7WkPq9M.js} +1 -1
  39. package/web/dist/assets/{index-CbSPKU4g.js → index-BovBmPyJ.js} +4 -4
  40. package/web/dist/assets/index-FmHk4o3n.css +1 -0
  41. package/web/dist/assets/{markdown-DMFXz4xY.js → markdown-B0yqWHDP.js} +1 -1
  42. package/web/dist/assets/{option-select-Cq_bhgu6.js → option-select-COXy_9e6.js} +1 -1
  43. package/web/dist/assets/{preferences-section-CHhUi72X.js → preferences-section-Bbzs9RW1.js} +1 -1
  44. package/web/dist/assets/{preview-pane-connected-DH9rjYI7.js → preview-pane-connected-dMTWNhX8.js} +1 -1
  45. package/web/dist/assets/{project-location-CSXt_Yk6.js → project-location-B-O2lQQU.js} +1 -1
  46. package/web/dist/assets/{projects-section-CSBdiEM-.js → projects-section-BjffHvrf.js} +1 -1
  47. package/web/dist/assets/{prompt-templates-section-DaJbpROr.js → prompt-templates-section--SsT2vbo.js} +1 -1
  48. package/web/dist/assets/{remote-settings-notice-Chx8LxP6.js → remote-settings-notice-DyWrqTzR.js} +1 -1
  49. package/web/dist/assets/{repo-git-D8Sn_897.js → repo-git-CAX7JKaD.js} +1 -1
  50. package/web/dist/assets/{report-reader-Ccymt9jp.js → report-reader-Cu5tL1Ph.js} +1 -1
  51. package/web/dist/assets/{reports-GvAw7DYA.js → reports-D9ouruqt.js} +1 -1
  52. package/web/dist/assets/{resources-section-BWqoBxtC.js → resources-section-D21Lq0Jb.js} +1 -1
  53. package/web/dist/assets/{review-notes-drafts-BKzyNpXo.js → review-notes-drafts-AEBwPEaV.js} +1 -1
  54. package/web/dist/assets/{review-panel-DxAlY6hQ.js → review-panel-Cy1EYoBI.js} +1 -1
  55. package/web/dist/assets/{review-strip-QDKNuOm9.js → review-strip-ClN1AfmS.js} +1 -1
  56. package/web/dist/assets/run-header-C7L9lspH.js +2 -0
  57. package/web/dist/assets/{run-header-788Dmvef.css → run-header-Ytho20Wt.css} +1 -1
  58. package/web/dist/assets/{select-DVQEFrtF.js → select-JCfCIElu.js} +1 -1
  59. package/web/dist/assets/{session-context-section-YxCcDlRl.js → session-context-section-Cbzxxjcu.js} +1 -1
  60. package/web/dist/assets/{settings-agent-picker-CDyluV99.js → settings-agent-picker-1H6fIPXo.js} +1 -1
  61. package/web/dist/assets/{settings-save-bar-CMJaZn_P.js → settings-save-bar-BUi6H-gE.js} +1 -1
  62. package/web/dist/assets/{settings-shell-DHVB7FYt.js → settings-shell-lj--GRCk.js} +1 -1
  63. package/web/dist/assets/{sidebar-section-hphp-63V.js → sidebar-section-Cv1ulfXy.js} +1 -1
  64. package/web/dist/assets/{skills-BlHcP8uc.js → skills-DAJzu767.js} +1 -1
  65. package/web/dist/assets/{task-changes-DWMFWq5g.js → task-changes-GTdXC-dZ.js} +1 -1
  66. package/web/dist/assets/{task-commits-q5Cn_tdG.js → task-commits-6ZKh7FRW.js} +1 -1
  67. package/web/dist/assets/{task-file-scope-BKjO7lKK.js → task-file-scope-CaJR98S8.js} +1 -1
  68. package/web/dist/assets/{task-files-DbRJAKAg.js → task-files-DRnSkRoC.js} +1 -1
  69. package/web/dist/assets/{task-github-item-DV6uUcx2.js → task-github-item-080YJpbP.js} +1 -1
  70. package/web/dist/assets/{task-thread-i16nxSQv.css → task-thread-C70CCqyd.css} +1 -1
  71. package/web/dist/assets/task-thread-D1bM1I_e.js +2 -0
  72. package/web/dist/assets/{thread-state-uf_28v2G.js → thread-state-CmjIQNn7.js} +1 -1
  73. package/web/dist/assets/{use-finish-run-BsTPLn1d.js → use-finish-run-BE6ugaLE.js} +1 -1
  74. package/web/dist/assets/{use-hand-to-agent-state-DyjrAs-3.js → use-hand-to-agent-state-CK_1_QCG.js} +1 -1
  75. package/web/dist/assets/use-path-bases-RiQd3y2m.js +1 -0
  76. package/web/dist/assets/{workflows-B5xr64g0.js → workflows-D9hqYoNT.js} +1 -1
  77. package/web/dist/assets/{workspace-tools-DGlrX2Uj.js → workspace-tools-DuYt1zu5.js} +1 -1
  78. package/web/dist/assets/{worktrees-section-D2bbdi3Y.js → worktrees-section-JViXzzNC.js} +1 -1
  79. package/web/dist/index.html +2 -2
  80. package/web/dist/assets/index-CSgBel_0.css +0 -1
  81. package/web/dist/assets/run-header-BS7SXYup.js +0 -2
  82. package/web/dist/assets/task-thread-05LMMzIs.js +0 -2
  83. package/web/dist/assets/use-path-bases-hbJkikc4.js +0 -1
@@ -121,9 +121,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
121
121
  } & {
122
122
  "/api/v1/tools/:name": {
123
123
  $post: {
124
- output: never;
124
+ output: {
125
+ code: string;
126
+ message: string;
127
+ };
125
128
  outputFormat: "json";
126
- status: import("hono/utils/http-status").ContentfulStatusCode;
129
+ status: 401;
127
130
  input: {
128
131
  json: unknown;
129
132
  } & {
@@ -146,12 +149,9 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
146
149
  };
147
150
  };
148
151
  } | {
149
- output: {
150
- code: string;
151
- message: string;
152
- };
152
+ output: never;
153
153
  outputFormat: "json";
154
- status: 401;
154
+ status: import("hono/utils/http-status").ContentfulStatusCode;
155
155
  input: {
156
156
  json: unknown;
157
157
  } & {
@@ -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;
@@ -91,6 +79,18 @@ export declare function createDelegationRoutes(service: DelegationService, crede
91
79
  offset?: string | undefined;
92
80
  };
93
81
  };
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,18 +677,6 @@ 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
- } | {
692
680
  output: {
693
681
  workerId: string;
694
682
  settled: boolean;
@@ -813,11 +801,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
813
801
  workerId: string;
814
802
  };
815
803
  };
816
- };
817
- };
818
- } & {
819
- "/:workerId/collect": {
820
- $post: {
804
+ } | {
821
805
  output: {
822
806
  error: string;
823
807
  code?: "invalid_input" | undefined;
@@ -828,10 +812,12 @@ export declare function createDelegationRoutes(service: DelegationService, crede
828
812
  param: {
829
813
  workerId: string;
830
814
  };
831
- } & {
832
- json: Record<string, never>;
833
815
  };
834
- } | {
816
+ };
817
+ };
818
+ } & {
819
+ "/:workerId/collect": {
820
+ $post: {
835
821
  output: {
836
822
  workerId: string;
837
823
  parentRunId: string;
@@ -956,11 +942,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
956
942
  } & {
957
943
  json: Record<string, never>;
958
944
  };
959
- };
960
- };
961
- } & {
962
- "/:workerId/steer": {
963
- $post: {
945
+ } | {
964
946
  output: {
965
947
  error: string;
966
948
  code?: "invalid_input" | undefined;
@@ -972,11 +954,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
972
954
  workerId: string;
973
955
  };
974
956
  } & {
975
- json: {
976
- text: string;
977
- };
957
+ json: Record<string, never>;
978
958
  };
979
- } | {
959
+ };
960
+ };
961
+ } & {
962
+ "/:workerId/steer": {
963
+ $post: {
980
964
  output: {
981
965
  workerId: string;
982
966
  state: "delivered" | "queued";
@@ -992,11 +976,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
992
976
  text: string;
993
977
  };
994
978
  };
995
- };
996
- };
997
- } & {
998
- "/:workerId/stop": {
999
- $post: {
979
+ } | {
1000
980
  output: {
1001
981
  error: string;
1002
982
  code?: "invalid_input" | undefined;
@@ -1008,9 +988,15 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1008
988
  workerId: string;
1009
989
  };
1010
990
  } & {
1011
- json: Record<string, never>;
991
+ json: {
992
+ text: string;
993
+ };
1012
994
  };
1013
- } | {
995
+ };
996
+ };
997
+ } & {
998
+ "/:workerId/stop": {
999
+ $post: {
1014
1000
  output: {
1015
1001
  workerId: string;
1016
1002
  state: "stopping" | "terminated";
@@ -1024,11 +1010,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1024
1010
  } & {
1025
1011
  json: Record<string, never>;
1026
1012
  };
1027
- };
1028
- };
1029
- } & {
1030
- "/:workerId/destroy": {
1031
- $post: {
1013
+ } | {
1032
1014
  output: {
1033
1015
  error: string;
1034
1016
  code?: "invalid_input" | undefined;
@@ -1040,11 +1022,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1040
1022
  workerId: string;
1041
1023
  };
1042
1024
  } & {
1043
- json: {
1044
- discardWork?: true | undefined;
1045
- };
1025
+ json: Record<string, never>;
1046
1026
  };
1047
- } | {
1027
+ };
1028
+ };
1029
+ } & {
1030
+ "/:workerId/destroy": {
1031
+ $post: {
1048
1032
  output: {
1049
1033
  workerId: string;
1050
1034
  state: "complete" | "incomplete";
@@ -1073,6 +1057,22 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1073
1057
  discardWork?: true | undefined;
1074
1058
  };
1075
1059
  };
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,11 +1108,18 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1108
1108
  "/:workerId/summary": {
1109
1109
  $post: {
1110
1110
  output: {
1111
- error: string;
1112
- code?: "invalid_input" | undefined;
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;
1113
1120
  };
1114
1121
  outputFormat: "json";
1115
- status: 400;
1122
+ status: 200;
1116
1123
  input: {
1117
1124
  param: {
1118
1125
  workerId: string;
@@ -1125,18 +1132,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1125
1132
  };
1126
1133
  } | {
1127
1134
  output: {
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;
1135
+ error: string;
1136
+ code?: "invalid_input" | undefined;
1137
1137
  };
1138
1138
  outputFormat: "json";
1139
- status: 200;
1139
+ status: 400;
1140
1140
  input: {
1141
1141
  param: {
1142
1142
  workerId: string;
@@ -1153,11 +1153,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1153
1153
  "/:workerId/diff": {
1154
1154
  $get: {
1155
1155
  output: {
1156
- error: string;
1157
- code?: "invalid_input" | undefined;
1156
+ workerId: string;
1157
+ baselineSha: string;
1158
+ diff: string;
1159
+ truncated: boolean;
1158
1160
  };
1159
1161
  outputFormat: "json";
1160
- status: 400;
1162
+ status: 200;
1161
1163
  input: {
1162
1164
  param: {
1163
1165
  workerId: string;
@@ -1165,13 +1167,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1165
1167
  };
1166
1168
  } | {
1167
1169
  output: {
1168
- workerId: string;
1169
- baselineSha: string;
1170
- diff: string;
1171
- truncated: boolean;
1170
+ error: string;
1171
+ code?: "invalid_input" | undefined;
1172
1172
  };
1173
1173
  outputFormat: "json";
1174
- status: 200;
1174
+ status: 400;
1175
1175
  input: {
1176
1176
  param: {
1177
1177
  workerId: string;
@@ -36,10 +36,20 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
36
36
  "/hosts": {
37
37
  $post: {
38
38
  output: {
39
- error: string;
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
+ };
40
50
  };
41
51
  outputFormat: "json";
42
- status: 404;
52
+ status: 201;
43
53
  input: {
44
54
  json: {
45
55
  sshAlias: string;
@@ -67,7 +77,7 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
67
77
  error: string;
68
78
  };
69
79
  outputFormat: "json";
70
- status: 409;
80
+ status: 404;
71
81
  input: {
72
82
  json: {
73
83
  sshAlias: string;
@@ -81,7 +91,7 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
81
91
  error: string;
82
92
  };
83
93
  outputFormat: "json";
84
- status: 500;
94
+ status: 409;
85
95
  input: {
86
96
  json: {
87
97
  sshAlias: string;
@@ -92,20 +102,10 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
92
102
  };
93
103
  } | {
94
104
  output: {
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
- };
105
+ error: string;
106
106
  };
107
107
  outputFormat: "json";
108
- status: 201;
108
+ status: 409;
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: 409;
122
+ status: 500;
123
123
  input: {
124
124
  json: {
125
125
  sshAlias: string;
@@ -134,11 +134,20 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
134
134
  "/hosts/:id": {
135
135
  $patch: {
136
136
  output: {
137
- error: string;
138
- code?: "invalid_input" | undefined;
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
+ };
139
148
  };
140
149
  outputFormat: "json";
141
- status: 400;
150
+ status: 200;
142
151
  input: {
143
152
  param: {
144
153
  id: string;
@@ -153,9 +162,10 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
153
162
  } | {
154
163
  output: {
155
164
  error: string;
165
+ code?: "invalid_input" | undefined;
156
166
  };
157
167
  outputFormat: "json";
158
- status: 404;
168
+ status: 400;
159
169
  input: {
160
170
  param: {
161
171
  id: string;
@@ -189,7 +199,7 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
189
199
  error: string;
190
200
  };
191
201
  outputFormat: "json";
192
- status: 409;
202
+ status: 404;
193
203
  input: {
194
204
  param: {
195
205
  id: string;
@@ -206,7 +216,7 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
206
216
  error: string;
207
217
  };
208
218
  outputFormat: "json";
209
- status: 500;
219
+ status: 409;
210
220
  input: {
211
221
  param: {
212
222
  id: string;
@@ -237,20 +247,10 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
237
247
  };
238
248
  } | {
239
249
  output: {
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
- };
250
+ error: string;
251
251
  };
252
252
  outputFormat: "json";
253
- status: 200;
253
+ status: 500;
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
- error: string;
272
- code?: "invalid_input" | undefined;
271
+ removed: true;
272
+ id: string;
273
273
  };
274
274
  outputFormat: "json";
275
- status: 400;
275
+ status: 200;
276
276
  input: {
277
277
  param: {
278
278
  id: string;
@@ -281,9 +281,10 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
281
281
  } | {
282
282
  output: {
283
283
  error: string;
284
+ code?: "invalid_input" | undefined;
284
285
  };
285
286
  outputFormat: "json";
286
- status: 404;
287
+ status: 400;
287
288
  input: {
288
289
  param: {
289
290
  id: string;
@@ -305,7 +306,7 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
305
306
  error: string;
306
307
  };
307
308
  outputFormat: "json";
308
- status: 409;
309
+ status: 404;
309
310
  input: {
310
311
  param: {
311
312
  id: string;
@@ -316,7 +317,7 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
316
317
  error: string;
317
318
  };
318
319
  outputFormat: "json";
319
- status: 500;
320
+ status: 409;
320
321
  input: {
321
322
  param: {
322
323
  id: string;
@@ -335,11 +336,10 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
335
336
  };
336
337
  } | {
337
338
  output: {
338
- removed: true;
339
- id: string;
339
+ error: string;
340
340
  };
341
341
  outputFormat: "json";
342
- status: 200;
342
+ status: 500;
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: 409;
45
+ status: 400;
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: 400;
58
+ status: 409;
59
59
  input: {
60
60
  query: {
61
61
  q?: string | undefined;
@@ -100,18 +100,6 @@ 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
- } | {
115
103
  output: {
116
104
  error: string;
117
105
  };
@@ -136,33 +124,23 @@ export declare function createProjectWebhooksRoutes(deps: ProjectWebhooksRouteDe
136
124
  projectId: string;
137
125
  };
138
126
  };
139
- };
140
- };
141
- } & {
142
- "/projects/:projectId/webhooks": {
143
- $post: {
127
+ } | {
144
128
  output: {
145
129
  error: string;
146
130
  code?: "no-boot-project" | undefined;
147
131
  };
148
132
  outputFormat: "json";
149
- status: 400 | 404 | 409 | 500;
133
+ status: 404 | 409;
150
134
  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
- } & {
161
135
  param: {
162
136
  projectId: string;
163
137
  };
164
138
  };
165
- } | {
139
+ };
140
+ };
141
+ } & {
142
+ "/projects/:projectId/webhooks": {
143
+ $post: {
166
144
  output: {
167
145
  project: {
168
146
  id: string;
@@ -221,6 +199,28 @@ export declare function createProjectWebhooksRoutes(deps: ProjectWebhooksRouteDe
221
199
  projectId: string;
222
200
  };
223
201
  };
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,13 +420,10 @@ export declare function createProjectWebhooksRoutes(deps: ProjectWebhooksRouteDe
420
420
  };
421
421
  } | {
422
422
  output: {
423
- ok: boolean;
424
- status?: number | undefined;
425
- error?: string | undefined;
426
- dryRun?: boolean | undefined;
423
+ error: string;
427
424
  };
428
425
  outputFormat: "json";
429
- status: import("hono/utils/http-status").ContentfulStatusCode;
426
+ status: 404;
430
427
  input: {
431
428
  param: {
432
429
  projectId: string;
@@ -435,11 +432,13 @@ export declare function createProjectWebhooksRoutes(deps: ProjectWebhooksRouteDe
435
432
  };
436
433
  } | {
437
434
  output: {
438
- error: string;
439
- code?: "no-boot-project" | undefined;
435
+ ok: boolean;
436
+ status?: number | undefined;
437
+ error?: string | undefined;
438
+ dryRun?: boolean | undefined;
440
439
  };
441
440
  outputFormat: "json";
442
- status: 404 | 409;
441
+ status: import("hono/utils/http-status").ContentfulStatusCode;
443
442
  input: {
444
443
  param: {
445
444
  projectId: string;
@@ -449,9 +448,10 @@ export declare function createProjectWebhooksRoutes(deps: ProjectWebhooksRouteDe
449
448
  } | {
450
449
  output: {
451
450
  error: string;
451
+ code?: "no-boot-project" | undefined;
452
452
  };
453
453
  outputFormat: "json";
454
- status: 404;
454
+ status: 404 | 409;
455
455
  input: {
456
456
  param: {
457
457
  projectId: string;