@hearsay-tools/squawk 0.19.0-dev.9086 → 0.19.0-dev.9092

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 (106) hide show
  1. package/dist/built-in-cli-commands.js +6 -5
  2. package/dist/built-in-cli-commands.js.map +1 -1
  3. package/dist/built-in-launch-parts.d.ts +0 -4
  4. package/dist/built-in-launch-parts.js +1 -17
  5. package/dist/built-in-launch-parts.js.map +1 -1
  6. package/dist/cli-dispatch.d.ts +2 -1
  7. package/dist/cli-dispatch.js +20 -7
  8. package/dist/cli-dispatch.js.map +1 -1
  9. package/dist/contract/hosts.d.ts +161 -0
  10. package/dist/contract/index.js +116 -0
  11. package/dist/core/cli-registry.d.ts +1 -0
  12. package/dist/core/cli-registry.js.map +1 -1
  13. package/dist/core/server-hook-registry.d.ts +17 -2
  14. package/dist/core/server-hook-registry.js +1 -0
  15. package/dist/core/server-hook-registry.js.map +1 -1
  16. package/dist/features/automations/tools.d.ts +8 -8
  17. package/dist/features/hosts/cli.d.ts +59 -0
  18. package/dist/features/hosts/cli.js +28 -17
  19. package/dist/features/hosts/cli.js.map +1 -1
  20. package/dist/features/hosts/host-server-cli.d.ts +13 -0
  21. package/dist/features/hosts/host-server-cli.js +246 -0
  22. package/dist/features/hosts/host-server-cli.js.map +1 -0
  23. package/dist/features/hosts/host-server.d.ts +51 -0
  24. package/dist/features/hosts/host-server.js +407 -0
  25. package/dist/features/hosts/host-server.js.map +1 -0
  26. package/dist/features/hosts/index.d.ts +2 -0
  27. package/dist/features/hosts/index.js +12 -0
  28. package/dist/features/hosts/index.js.map +1 -1
  29. package/dist/features/hosts/runtime-archive.d.ts +103 -0
  30. package/dist/features/hosts/runtime-archive.js +619 -0
  31. package/dist/features/hosts/runtime-archive.js.map +1 -0
  32. package/dist/features/hosts/start-methods.d.ts +76 -0
  33. package/dist/features/hosts/start-methods.js +234 -0
  34. package/dist/features/hosts/start-methods.js.map +1 -0
  35. package/dist/features/hosts/tar-gz.d.ts +30 -0
  36. package/dist/features/hosts/tar-gz.js +143 -0
  37. package/dist/features/hosts/tar-gz.js.map +1 -0
  38. package/dist/features/webhooks/capability.d.ts +3 -0
  39. package/dist/features/webhooks/capability.js +6 -0
  40. package/dist/features/webhooks/capability.js.map +1 -0
  41. package/dist/features/webhooks/cli-command.d.ts +3 -0
  42. package/dist/features/webhooks/cli-command.js +10 -0
  43. package/dist/features/webhooks/cli-command.js.map +1 -0
  44. package/dist/{webhooks → features/webhooks}/cli.d.ts +2 -2
  45. package/dist/{webhooks → features/webhooks}/cli.js +7 -7
  46. package/dist/features/webhooks/cli.js.map +1 -0
  47. package/dist/features/webhooks/index.d.ts +13 -0
  48. package/dist/features/webhooks/index.js +14 -0
  49. package/dist/features/webhooks/index.js.map +1 -0
  50. package/dist/features/webhooks/launch-part.d.ts +7 -0
  51. package/dist/features/webhooks/launch-part.js +19 -0
  52. package/dist/features/webhooks/launch-part.js.map +1 -0
  53. package/dist/{webhooks → features/webhooks}/prompt.d.ts +1 -1
  54. package/dist/{webhooks → features/webhooks}/prompt.js +1 -1
  55. package/dist/features/webhooks/prompt.js.map +1 -0
  56. package/dist/features/webhooks/routes.d.ts +463 -0
  57. package/dist/features/webhooks/routes.js +177 -0
  58. package/dist/features/webhooks/routes.js.map +1 -0
  59. package/dist/features/webhooks/server-plugin.d.ts +16 -0
  60. package/dist/features/webhooks/server-plugin.js +98 -0
  61. package/dist/features/webhooks/server-plugin.js.map +1 -0
  62. package/dist/{runs → features/webhooks}/webhook.d.ts +5 -5
  63. package/dist/{runs → features/webhooks}/webhook.js +16 -10
  64. package/dist/features/webhooks/webhook.js.map +1 -0
  65. package/dist/host-server-store.d.ts +103 -0
  66. package/dist/host-server-store.js +348 -0
  67. package/dist/host-server-store.js.map +1 -0
  68. package/dist/index.js +2 -2
  69. package/dist/index.js.map +1 -1
  70. package/dist/plugin/index.d.ts +1 -1
  71. package/dist/plugin/index.js.map +1 -1
  72. package/dist/serve-command.d.ts +12 -3
  73. package/dist/serve-command.js +76 -18
  74. package/dist/serve-command.js.map +1 -1
  75. package/dist/server/live-routes.d.ts +6 -6
  76. package/dist/server/plugin-server-hooks.d.ts +12 -1
  77. package/dist/server/plugin-server-hooks.js +33 -0
  78. package/dist/server/plugin-server-hooks.js.map +1 -1
  79. package/dist/server/project-settings-routes.d.ts +0 -90
  80. package/dist/server/project-settings-routes.js +0 -30
  81. package/dist/server/project-settings-routes.js.map +1 -1
  82. package/dist/server/projects-routes.d.ts +1 -376
  83. package/dist/server/projects-routes.js +2 -137
  84. package/dist/server/projects-routes.js.map +1 -1
  85. package/dist/server/runs-routes.d.ts +707 -725
  86. package/dist/server/runs-routes.js +6 -11
  87. package/dist/server/runs-routes.js.map +1 -1
  88. package/dist/server/server-deps.d.ts +1 -4
  89. package/dist/server/server-deps.js +3 -7
  90. package/dist/server/server-deps.js.map +1 -1
  91. package/dist/server/server.d.ts +520 -1100
  92. package/dist/server/server.js +10 -16
  93. package/dist/server/server.js.map +1 -1
  94. package/dist/server/start-run-options.d.ts +5 -3
  95. package/dist/server/start-run-options.js +8 -3
  96. package/dist/server/start-run-options.js.map +1 -1
  97. package/dist/server/start-server.js +8 -11
  98. package/dist/server/start-server.js.map +1 -1
  99. package/dist/server/workspace-live-routes.d.ts +6 -6
  100. package/dist/server/workspace-projects.d.ts +2 -5
  101. package/dist/server/workspace-projects.js +10 -11
  102. package/dist/server/workspace-projects.js.map +1 -1
  103. package/package.json +4 -4
  104. package/dist/runs/webhook.js.map +0 -1
  105. package/dist/webhooks/cli.js.map +0 -1
  106. package/dist/webhooks/prompt.js.map +0 -1
@@ -0,0 +1,19 @@
1
+ import { registryEntry } from '../../workspace/registry-entry.js';
2
+ import { agentWebhooks } from '../../workspace/webhooks.js';
3
+ import { agentWebhooksPrompt, webhookCliCommand } from './prompt.js';
4
+ /**
5
+ * The "Project webhooks" part (hearsay-tools/cezarion#1576): the webhooks this project exposes
6
+ * to agents, read from the registry when a session starts. Needs a cockpit to send through;
7
+ * nothing exposed, or an unreadable registry, adds nothing.
8
+ */
9
+ export const webhooksLaunchPart = {
10
+ id: 'webhooks',
11
+ order: 20,
12
+ async contribute({ cockpit, repoRoot, home }) {
13
+ if (!cockpit)
14
+ return undefined;
15
+ const entry = await registryEntry(cockpit.projectId, repoRoot, home).catch(() => undefined);
16
+ return { prompt: agentWebhooksPrompt(webhookCliCommand(), agentWebhooks(entry)) };
17
+ },
18
+ };
19
+ //# sourceMappingURL=launch-part.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"launch-part.js","sourceRoot":"","sources":["../../../src/features/webhooks/launch-part.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAErE;;;;GAIG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAyB;IACtD,EAAE,EAAE,UAAU;IACd,KAAK,EAAE,EAAE;IACT,KAAK,CAAC,UAAU,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE;QAC1C,IAAI,CAAC,OAAO;YAAE,OAAO,SAAS,CAAC;QAC/B,MAAM,KAAK,GAAG,MAAM,aAAa,CAAC,OAAO,CAAC,SAAS,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC;QAC5F,OAAO,EAAE,MAAM,EAAE,mBAAmB,CAAC,iBAAiB,EAAE,EAAE,aAAa,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC;IACpF,CAAC;CACF,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { AgentWebhook } from '../contract/index.js';
1
+ import type { AgentWebhook } from '../../contract/index.js';
2
2
  /** The absolute `cez webhook` command, so an agent needs no `cez` on its PATH. */
3
3
  export declare function webhookCliCommand(): string;
4
4
  /** One line per webhook: the owner's description is what tells the agent when to use it. */
@@ -8,7 +8,7 @@ const quote = (value) => `'${value.replaceAll("'", "'\\''")}'`;
8
8
  /** The absolute `cez webhook` command, so an agent needs no `cez` on its PATH. */
9
9
  export function webhookCliCommand() {
10
10
  const source = import.meta.url.endsWith('.ts');
11
- const entry = fileURLToPath(new URL(source ? '../index.ts' : '../index.js', import.meta.url));
11
+ const entry = fileURLToPath(new URL(source ? '../../index.ts' : '../../index.js', import.meta.url));
12
12
  return [process.execPath, ...(source ? ['--import', import.meta.resolve('tsx')] : []), entry].map(quote).join(' ') + ' webhook';
13
13
  }
14
14
  /** One line per webhook: the owner's description is what tells the agent when to use it. */
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prompt.js","sourceRoot":"","sources":["../../../src/features/webhooks/prompt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAGzC;;;;GAIG;AAEH,MAAM,KAAK,GAAG,CAAC,KAAa,EAAE,EAAE,CAAC,IAAI,KAAK,CAAC,UAAU,CAAC,GAAG,EAAE,OAAO,CAAC,GAAG,CAAC;AAEvE,kFAAkF;AAClF,MAAM,UAAU,iBAAiB;IAC/B,MAAM,MAAM,GAAG,OAAO,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC/C,MAAM,KAAK,GAAG,aAAa,CAAC,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,gBAAgB,EAAE,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;IACpG,OAAO,CAAC,OAAO,CAAC,QAAQ,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,UAAU,EAAE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,UAAU,CAAC;AAClI,CAAC;AAED,4FAA4F;AAC5F,MAAM,UAAU,mBAAmB,CAAC,OAAe,EAAE,QAAiC;IACpF,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,SAAS,CAAC;IAC5C,MAAM,KAAK,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,MAAM,OAAO,CAAC,IAAI,IAAI,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IACnJ,OAAO;QACL,qBAAqB;QACrB,6OAA6O;QAC7O,GAAG,KAAK;QACR,wBAAwB,OAAO,iRAAiR,OAAO,wIAAwI;KAChc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC"}
@@ -0,0 +1,463 @@
1
+ import type { Home } from '../../home/home.ts';
2
+ import type { ServerPluginContext } from '../../plugin/index.ts';
3
+ import type { ProjectApiEnv } from '../../server/server-types.ts';
4
+ export interface AgentWebhooksRouteDeps {
5
+ home: Home;
6
+ resolveOrigin: () => Promise<string | undefined>;
7
+ fetch?: typeof fetch | undefined;
8
+ }
9
+ /** Project-scoped Hono routes for `/agent-webhooks` and `/agent-webhooks/:webhook`. */
10
+ export declare function createAgentWebhooksRoutes(deps: AgentWebhooksRouteDeps): import("hono/hono-base").HonoBase<ProjectApiEnv, {
11
+ "/agent-webhooks": {
12
+ $get: {
13
+ output: {
14
+ webhooks: {
15
+ id: string;
16
+ name: string;
17
+ description?: string | undefined;
18
+ }[];
19
+ };
20
+ outputFormat: "json";
21
+ status: import("hono/utils/http-status").ContentfulStatusCode;
22
+ input: {};
23
+ };
24
+ };
25
+ } & {
26
+ "/agent-webhooks/:webhook": {
27
+ $post: {
28
+ output: {
29
+ error: string;
30
+ code?: "invalid_input" | undefined;
31
+ };
32
+ outputFormat: "json";
33
+ status: 400;
34
+ input: {
35
+ param: {
36
+ webhook: string;
37
+ };
38
+ } & {
39
+ json: {
40
+ runId?: string | undefined;
41
+ title?: string | undefined;
42
+ message: string;
43
+ data?: Record<string, unknown> | undefined;
44
+ };
45
+ };
46
+ } | {
47
+ output: {
48
+ error: string;
49
+ };
50
+ outputFormat: "json";
51
+ status: 404;
52
+ input: {
53
+ param: {
54
+ webhook: string;
55
+ };
56
+ } & {
57
+ json: {
58
+ runId?: string | undefined;
59
+ title?: string | undefined;
60
+ message: string;
61
+ data?: Record<string, unknown> | undefined;
62
+ };
63
+ };
64
+ } | {
65
+ output: {
66
+ ok: boolean;
67
+ webhook: {
68
+ id: string;
69
+ name: string;
70
+ };
71
+ deliveryId: string;
72
+ attempts: number;
73
+ status?: number | undefined;
74
+ error?: string | undefined;
75
+ dryRun?: boolean | undefined;
76
+ };
77
+ outputFormat: "json";
78
+ status: import("hono/utils/http-status").ContentfulStatusCode;
79
+ input: {
80
+ param: {
81
+ webhook: string;
82
+ };
83
+ } & {
84
+ json: {
85
+ runId?: string | undefined;
86
+ title?: string | undefined;
87
+ message: string;
88
+ data?: Record<string, unknown> | undefined;
89
+ };
90
+ };
91
+ };
92
+ };
93
+ }, "/", "/agent-webhooks/:webhook">;
94
+ export interface ProjectWebhooksRouteDeps {
95
+ home: Home;
96
+ projects: Pick<ServerPluginContext['projects'], 'resolveId' | 'registryEntry'>;
97
+ fetch?: typeof fetch | undefined;
98
+ }
99
+ /** Workspace-scoped Hono routes for project webhook CRUD and test deliveries. */
100
+ export declare function createProjectWebhooksRoutes(deps: ProjectWebhooksRouteDeps): import("hono/hono-base").HonoBase<ProjectApiEnv, {
101
+ "/projects/:projectId/webhook/test": {
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
+ output: {
116
+ error: string;
117
+ };
118
+ outputFormat: "json";
119
+ status: 400;
120
+ input: {
121
+ param: {
122
+ projectId: string;
123
+ };
124
+ };
125
+ } | {
126
+ output: {
127
+ ok: boolean;
128
+ status?: number | undefined;
129
+ error?: string | undefined;
130
+ dryRun?: boolean | undefined;
131
+ };
132
+ outputFormat: "json";
133
+ status: import("hono/utils/http-status").ContentfulStatusCode;
134
+ input: {
135
+ param: {
136
+ projectId: string;
137
+ };
138
+ };
139
+ };
140
+ };
141
+ } & {
142
+ "/projects/:projectId/webhooks": {
143
+ $post: {
144
+ output: {
145
+ error: string;
146
+ code?: "no-boot-project" | undefined;
147
+ };
148
+ outputFormat: "json";
149
+ status: 400 | 404 | 409 | 500;
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
+ } & {
161
+ param: {
162
+ projectId: string;
163
+ };
164
+ };
165
+ } | {
166
+ output: {
167
+ project: {
168
+ id: string;
169
+ name: string;
170
+ root: string;
171
+ addedAt: string;
172
+ lastOpenedAt: string;
173
+ source: "checkout" | "local";
174
+ status: "missing" | "not-git" | "ok";
175
+ branch?: string | undefined;
176
+ forge?: string | undefined;
177
+ repoUrl?: string | undefined;
178
+ maxParallel?: number | undefined;
179
+ tags?: string[] | undefined;
180
+ webhook?: {
181
+ url: string;
182
+ tokenSet: boolean;
183
+ triggers?: ("cancelled" | "done" | "failed" | "needs-you" | "running" | "waiting-ci" | "waiting-other" | "waiting-timer" | "waiting-workers")[] | undefined;
184
+ } | undefined;
185
+ webhooks?: {
186
+ id: string;
187
+ name: string;
188
+ description?: string | undefined;
189
+ url: string;
190
+ tokenSet: boolean;
191
+ tasks: boolean;
192
+ triggers?: ("cancelled" | "done" | "failed" | "needs-you" | "running" | "waiting-ci" | "waiting-other" | "waiting-timer" | "waiting-workers")[] | undefined;
193
+ agent: boolean;
194
+ }[] | undefined;
195
+ };
196
+ webhook: {
197
+ id: string;
198
+ name: string;
199
+ description?: string | undefined;
200
+ url: string;
201
+ tokenSet: boolean;
202
+ tasks: boolean;
203
+ triggers?: ("cancelled" | "done" | "failed" | "needs-you" | "running" | "waiting-ci" | "waiting-other" | "waiting-timer" | "waiting-workers")[] | undefined;
204
+ agent: boolean;
205
+ };
206
+ };
207
+ outputFormat: "json";
208
+ status: 201;
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
+ };
225
+ };
226
+ } & {
227
+ "/projects/:projectId/webhooks/:webhookId": {
228
+ $patch: {
229
+ output: {
230
+ error: string;
231
+ code?: "invalid_input" | undefined;
232
+ };
233
+ outputFormat: "json";
234
+ status: 400;
235
+ input: {
236
+ param: {
237
+ projectId: string;
238
+ webhookId: string;
239
+ };
240
+ } & {
241
+ json: {
242
+ name?: string | undefined;
243
+ description?: string | undefined;
244
+ url?: string | undefined;
245
+ token?: string | undefined;
246
+ tasks?: boolean | undefined;
247
+ triggers?: ("cancelled" | "done" | "failed" | "needs-you" | "running" | "waiting-ci" | "waiting-other" | "waiting-timer" | "waiting-workers")[] | undefined;
248
+ agent?: boolean | undefined;
249
+ };
250
+ };
251
+ } | {
252
+ output: {
253
+ project: {
254
+ id: string;
255
+ name: string;
256
+ root: string;
257
+ addedAt: string;
258
+ lastOpenedAt: string;
259
+ source: "checkout" | "local";
260
+ status: "missing" | "not-git" | "ok";
261
+ branch?: string | undefined;
262
+ forge?: string | undefined;
263
+ repoUrl?: string | undefined;
264
+ maxParallel?: number | undefined;
265
+ tags?: string[] | undefined;
266
+ webhook?: {
267
+ url: string;
268
+ tokenSet: boolean;
269
+ triggers?: ("cancelled" | "done" | "failed" | "needs-you" | "running" | "waiting-ci" | "waiting-other" | "waiting-timer" | "waiting-workers")[] | undefined;
270
+ } | undefined;
271
+ webhooks?: {
272
+ id: string;
273
+ name: string;
274
+ description?: string | undefined;
275
+ url: string;
276
+ tokenSet: boolean;
277
+ tasks: boolean;
278
+ triggers?: ("cancelled" | "done" | "failed" | "needs-you" | "running" | "waiting-ci" | "waiting-other" | "waiting-timer" | "waiting-workers")[] | undefined;
279
+ agent: boolean;
280
+ }[] | undefined;
281
+ };
282
+ webhook: {
283
+ id: string;
284
+ name: string;
285
+ description?: string | undefined;
286
+ url: string;
287
+ tokenSet: boolean;
288
+ tasks: boolean;
289
+ triggers?: ("cancelled" | "done" | "failed" | "needs-you" | "running" | "waiting-ci" | "waiting-other" | "waiting-timer" | "waiting-workers")[] | undefined;
290
+ agent: boolean;
291
+ };
292
+ };
293
+ outputFormat: "json";
294
+ status: import("hono/utils/http-status").ContentfulStatusCode;
295
+ input: {
296
+ param: {
297
+ projectId: string;
298
+ webhookId: string;
299
+ };
300
+ } & {
301
+ json: {
302
+ name?: string | undefined;
303
+ description?: string | undefined;
304
+ url?: string | undefined;
305
+ token?: string | undefined;
306
+ tasks?: boolean | undefined;
307
+ triggers?: ("cancelled" | "done" | "failed" | "needs-you" | "running" | "waiting-ci" | "waiting-other" | "waiting-timer" | "waiting-workers")[] | undefined;
308
+ agent?: boolean | undefined;
309
+ };
310
+ };
311
+ } | {
312
+ output: {
313
+ error: string;
314
+ code?: "no-boot-project" | undefined;
315
+ };
316
+ outputFormat: "json";
317
+ status: 400 | 404 | 409 | 500;
318
+ input: {
319
+ param: {
320
+ projectId: string;
321
+ webhookId: string;
322
+ };
323
+ } & {
324
+ json: {
325
+ name?: string | undefined;
326
+ description?: string | undefined;
327
+ url?: string | undefined;
328
+ token?: string | undefined;
329
+ tasks?: boolean | undefined;
330
+ triggers?: ("cancelled" | "done" | "failed" | "needs-you" | "running" | "waiting-ci" | "waiting-other" | "waiting-timer" | "waiting-workers")[] | undefined;
331
+ agent?: boolean | undefined;
332
+ };
333
+ };
334
+ };
335
+ };
336
+ } & {
337
+ "/projects/:projectId/webhooks/:webhookId": {
338
+ $delete: {
339
+ output: {
340
+ error: string;
341
+ code?: "invalid_input" | undefined;
342
+ };
343
+ outputFormat: "json";
344
+ status: 400;
345
+ input: {
346
+ param: {
347
+ projectId: string;
348
+ webhookId: string;
349
+ };
350
+ };
351
+ } | {
352
+ output: {
353
+ error: string;
354
+ code?: "no-boot-project" | undefined;
355
+ };
356
+ outputFormat: "json";
357
+ status: 400 | 404 | 409 | 500;
358
+ input: {
359
+ param: {
360
+ projectId: string;
361
+ webhookId: string;
362
+ };
363
+ };
364
+ } | {
365
+ output: {
366
+ project: {
367
+ id: string;
368
+ name: string;
369
+ root: string;
370
+ addedAt: string;
371
+ lastOpenedAt: string;
372
+ source: "checkout" | "local";
373
+ status: "missing" | "not-git" | "ok";
374
+ branch?: string | undefined;
375
+ forge?: string | undefined;
376
+ repoUrl?: string | undefined;
377
+ maxParallel?: number | undefined;
378
+ tags?: string[] | undefined;
379
+ webhook?: {
380
+ url: string;
381
+ tokenSet: boolean;
382
+ triggers?: ("cancelled" | "done" | "failed" | "needs-you" | "running" | "waiting-ci" | "waiting-other" | "waiting-timer" | "waiting-workers")[] | undefined;
383
+ } | undefined;
384
+ webhooks?: {
385
+ id: string;
386
+ name: string;
387
+ description?: string | undefined;
388
+ url: string;
389
+ tokenSet: boolean;
390
+ tasks: boolean;
391
+ triggers?: ("cancelled" | "done" | "failed" | "needs-you" | "running" | "waiting-ci" | "waiting-other" | "waiting-timer" | "waiting-workers")[] | undefined;
392
+ agent: boolean;
393
+ }[] | undefined;
394
+ };
395
+ };
396
+ outputFormat: "json";
397
+ status: import("hono/utils/http-status").ContentfulStatusCode;
398
+ input: {
399
+ param: {
400
+ projectId: string;
401
+ webhookId: string;
402
+ };
403
+ };
404
+ };
405
+ };
406
+ } & {
407
+ "/projects/:projectId/webhooks/:webhookId/test": {
408
+ $post: {
409
+ output: {
410
+ error: string;
411
+ code?: "invalid_input" | undefined;
412
+ };
413
+ outputFormat: "json";
414
+ status: 400;
415
+ input: {
416
+ param: {
417
+ projectId: string;
418
+ webhookId: string;
419
+ };
420
+ };
421
+ } | {
422
+ output: {
423
+ ok: boolean;
424
+ status?: number | undefined;
425
+ error?: string | undefined;
426
+ dryRun?: boolean | undefined;
427
+ };
428
+ outputFormat: "json";
429
+ status: import("hono/utils/http-status").ContentfulStatusCode;
430
+ input: {
431
+ param: {
432
+ projectId: string;
433
+ webhookId: string;
434
+ };
435
+ };
436
+ } | {
437
+ output: {
438
+ error: string;
439
+ code?: "no-boot-project" | undefined;
440
+ };
441
+ outputFormat: "json";
442
+ status: 404 | 409;
443
+ input: {
444
+ param: {
445
+ projectId: string;
446
+ webhookId: string;
447
+ };
448
+ };
449
+ } | {
450
+ output: {
451
+ error: string;
452
+ };
453
+ outputFormat: "json";
454
+ status: 404;
455
+ input: {
456
+ param: {
457
+ projectId: string;
458
+ webhookId: string;
459
+ };
460
+ };
461
+ };
462
+ };
463
+ }, "/", "/projects/:projectId/webhooks/:webhookId/test">;