@hearsay-tools/squawk 0.18.0-pr4287.8317 → 0.18.0-pr4289.8319

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 (74) hide show
  1. package/dist/automations/tools.d.ts +8 -8
  2. package/dist/core/session-process.d.ts +0 -10
  3. package/dist/core/session-process.js +22 -109
  4. package/dist/core/session-process.js.map +1 -1
  5. package/dist/delegation/routes.d.ts +10 -10
  6. package/dist/delegation/transport.d.ts +79 -79
  7. package/dist/jobs/cli.js +2 -6
  8. package/dist/jobs/cli.js.map +1 -1
  9. package/dist/jobs/job.d.ts +0 -6
  10. package/dist/jobs/job.js +2 -80
  11. package/dist/jobs/job.js.map +1 -1
  12. package/dist/plugin/runtime.d.ts +1 -1
  13. package/dist/plugin/runtime.js +1 -1
  14. package/dist/plugin/runtime.js.map +1 -1
  15. package/dist/runners/opencode/opencode-http.d.ts +0 -1
  16. package/dist/runners/opencode/opencode-http.js +0 -7
  17. package/dist/runners/opencode/opencode-http.js.map +1 -1
  18. package/dist/runners/opencode/opencode-server-runner.js +9 -3
  19. package/dist/runners/opencode/opencode-server-runner.js.map +1 -1
  20. package/dist/runs/run-decode.d.ts +72 -72
  21. package/dist/server/automations-routes.d.ts +1435 -0
  22. package/dist/server/automations-routes.js +192 -0
  23. package/dist/server/automations-routes.js.map +1 -0
  24. package/dist/server/github-routes.d.ts +733 -0
  25. package/dist/server/github-routes.js +140 -0
  26. package/dist/server/github-routes.js.map +1 -0
  27. package/dist/server/project-settings-routes.d.ts +999 -0
  28. package/dist/server/project-settings-routes.js +347 -0
  29. package/dist/server/project-settings-routes.js.map +1 -0
  30. package/dist/server/projects-routes.d.ts +833 -0
  31. package/dist/server/projects-routes.js +423 -0
  32. package/dist/server/projects-routes.js.map +1 -0
  33. package/dist/server/providers-routes.d.ts +683 -0
  34. package/dist/server/providers-routes.js +359 -0
  35. package/dist/server/providers-routes.js.map +1 -0
  36. package/dist/server/repo-routes.d.ts +509 -0
  37. package/dist/server/repo-routes.js +243 -0
  38. package/dist/server/repo-routes.js.map +1 -0
  39. package/dist/server/reports-api.d.ts +2 -2
  40. package/dist/server/runner-install-routes.d.ts +10 -10
  41. package/dist/server/runners-routes.d.ts +10 -10
  42. package/dist/server/server-types.d.ts +40 -0
  43. package/dist/server/server-types.js +31 -0
  44. package/dist/server/server-types.js.map +1 -0
  45. package/dist/server/server.d.ts +1706 -1732
  46. package/dist/server/server.js +108 -2500
  47. package/dist/server/server.js.map +1 -1
  48. package/dist/server/workspace-live-routes.d.ts +6 -6
  49. package/dist/server/workspace-routes.d.ts +713 -0
  50. package/dist/server/workspace-routes.js +262 -0
  51. package/dist/server/workspace-routes.js.map +1 -0
  52. package/dist/worker-scope/cgroup.d.ts +36 -2
  53. package/dist/worker-scope/cgroup.js +161 -5
  54. package/dist/worker-scope/cgroup.js.map +1 -1
  55. package/dist/worker-scope/job.d.ts +22 -1
  56. package/dist/worker-scope/job.js +56 -1
  57. package/dist/worker-scope/job.js.map +1 -1
  58. package/dist/worker-scope/scope.d.ts +1 -5
  59. package/dist/worker-scope/worker-scopes.js +18 -36
  60. package/dist/worker-scope/worker-scopes.js.map +1 -1
  61. package/dist/workflows/input-acknowledgement.d.ts +24 -24
  62. package/dist/workflows/run/wait-engine.d.ts +72 -72
  63. package/package.json +4 -4
  64. package/scripts/windows-worker-job.cs +32 -67
  65. package/scripts/windows-worker-job.ps1 +4 -11
  66. package/dist/core/os-cgroup.d.ts +0 -43
  67. package/dist/core/os-cgroup.js +0 -220
  68. package/dist/core/os-cgroup.js.map +0 -1
  69. package/dist/core/os-win-job.d.ts +0 -30
  70. package/dist/core/os-win-job.js +0 -80
  71. package/dist/core/os-win-job.js.map +0 -1
  72. package/dist/core/session-containment.d.ts +0 -78
  73. package/dist/core/session-containment.js +0 -247
  74. package/dist/core/session-containment.js.map +0 -1
@@ -0,0 +1,833 @@
1
+ import type { Home } from '../home/home.ts';
2
+ import type { WorkspaceSemaphore } from '../workspace/semaphore.ts';
3
+ import { type CloneRunner } from './checkout.ts';
4
+ import type { CheckoutProgressCache } from './checkout-progress.ts';
5
+ import { type CommandRunner } from './create-project.ts';
6
+ import type { ProjectContexts } from './project-context.ts';
7
+ import { type ProjectApiEnv, type ServerCapabilitiesFn, type WorkspaceEventBus } from './server-types.ts';
8
+ import type { WorkspaceProjects } from './workspace-projects.ts';
9
+ export interface ProjectsRouteDeps {
10
+ home: Home;
11
+ capabilities: ServerCapabilitiesFn;
12
+ contexts: ProjectContexts;
13
+ workspaceProjects: WorkspaceProjects;
14
+ workspaceEvents: WorkspaceEventBus;
15
+ checkoutProgress: CheckoutProgressCache;
16
+ semaphore?: WorkspaceSemaphore | undefined;
17
+ taskWebhookFetch?: typeof fetch | undefined;
18
+ cloneRunner?: CloneRunner | undefined;
19
+ projectCommandRunner?: CommandRunner | undefined;
20
+ workspaceBrowseRoot: () => Promise<string>;
21
+ }
22
+ export declare function createProjectsRoutes(deps: ProjectsRouteDeps): import("hono/hono-base").HonoBase<ProjectApiEnv, {
23
+ "/projects": {
24
+ $get: {
25
+ output: {
26
+ projects: {
27
+ id: string;
28
+ name: string;
29
+ root: string;
30
+ addedAt: string;
31
+ lastOpenedAt: string;
32
+ source: "checkout" | "local";
33
+ status: "missing" | "not-git" | "ok";
34
+ branch?: string | undefined;
35
+ forge?: "github" | undefined;
36
+ repoUrl?: string | undefined;
37
+ maxParallel?: number | undefined;
38
+ tags?: string[] | undefined;
39
+ webhook?: {
40
+ url: string;
41
+ tokenSet: boolean;
42
+ triggers?: ("cancelled" | "done" | "failed" | "needs-you" | "running" | "waiting-ci" | "waiting-other" | "waiting-timer" | "waiting-workers")[] | undefined;
43
+ } | undefined;
44
+ webhooks?: {
45
+ id: string;
46
+ name: string;
47
+ description?: string | undefined;
48
+ url: string;
49
+ tokenSet: boolean;
50
+ tasks: boolean;
51
+ triggers?: ("cancelled" | "done" | "failed" | "needs-you" | "running" | "waiting-ci" | "waiting-other" | "waiting-timer" | "waiting-workers")[] | undefined;
52
+ agent: boolean;
53
+ }[] | undefined;
54
+ }[];
55
+ bootProject: string;
56
+ projectsDir: string;
57
+ };
58
+ outputFormat: "json";
59
+ status: import("hono/utils/http-status").ContentfulStatusCode;
60
+ input: {};
61
+ };
62
+ };
63
+ } & {
64
+ "/projects": {
65
+ $post: {
66
+ output: {
67
+ error: string;
68
+ };
69
+ outputFormat: "json";
70
+ status: 400 | 500;
71
+ input: {
72
+ json: {
73
+ root: string;
74
+ };
75
+ };
76
+ } | {
77
+ output: {
78
+ project: {
79
+ id: string;
80
+ name: string;
81
+ root: string;
82
+ addedAt: string;
83
+ lastOpenedAt: string;
84
+ source: "checkout" | "local";
85
+ status: "missing" | "not-git" | "ok";
86
+ branch?: string | undefined;
87
+ forge?: "github" | undefined;
88
+ repoUrl?: string | undefined;
89
+ maxParallel?: number | undefined;
90
+ tags?: string[] | undefined;
91
+ webhook?: {
92
+ url: string;
93
+ tokenSet: boolean;
94
+ triggers?: ("cancelled" | "done" | "failed" | "needs-you" | "running" | "waiting-ci" | "waiting-other" | "waiting-timer" | "waiting-workers")[] | undefined;
95
+ } | undefined;
96
+ webhooks?: {
97
+ id: string;
98
+ name: string;
99
+ description?: string | undefined;
100
+ url: string;
101
+ tokenSet: boolean;
102
+ tasks: boolean;
103
+ triggers?: ("cancelled" | "done" | "failed" | "needs-you" | "running" | "waiting-ci" | "waiting-other" | "waiting-timer" | "waiting-workers")[] | undefined;
104
+ agent: boolean;
105
+ }[] | undefined;
106
+ };
107
+ error: string;
108
+ };
109
+ outputFormat: "json";
110
+ status: 409;
111
+ input: {
112
+ json: {
113
+ root: string;
114
+ };
115
+ };
116
+ } | {
117
+ output: {
118
+ project: {
119
+ id: string;
120
+ name: string;
121
+ root: string;
122
+ addedAt: string;
123
+ lastOpenedAt: string;
124
+ source: "checkout" | "local";
125
+ status: "missing" | "not-git" | "ok";
126
+ branch?: string | undefined;
127
+ forge?: "github" | undefined;
128
+ repoUrl?: string | undefined;
129
+ maxParallel?: number | undefined;
130
+ tags?: string[] | undefined;
131
+ webhook?: {
132
+ url: string;
133
+ tokenSet: boolean;
134
+ triggers?: ("cancelled" | "done" | "failed" | "needs-you" | "running" | "waiting-ci" | "waiting-other" | "waiting-timer" | "waiting-workers")[] | undefined;
135
+ } | undefined;
136
+ webhooks?: {
137
+ id: string;
138
+ name: string;
139
+ description?: string | undefined;
140
+ url: string;
141
+ tokenSet: boolean;
142
+ tasks: boolean;
143
+ triggers?: ("cancelled" | "done" | "failed" | "needs-you" | "running" | "waiting-ci" | "waiting-other" | "waiting-timer" | "waiting-workers")[] | undefined;
144
+ agent: boolean;
145
+ }[] | undefined;
146
+ };
147
+ error?: string | undefined;
148
+ };
149
+ outputFormat: "json";
150
+ status: 200;
151
+ input: {
152
+ json: {
153
+ root: string;
154
+ };
155
+ };
156
+ };
157
+ };
158
+ } & {
159
+ "/projects/:projectId": {
160
+ $delete: {
161
+ output: {
162
+ error: string;
163
+ };
164
+ outputFormat: "json";
165
+ status: 404;
166
+ input: {
167
+ param: {
168
+ projectId: string;
169
+ };
170
+ };
171
+ } | {
172
+ output: {
173
+ error: string;
174
+ };
175
+ outputFormat: "json";
176
+ status: 409;
177
+ input: {
178
+ param: {
179
+ projectId: string;
180
+ };
181
+ };
182
+ } | {
183
+ output: {
184
+ error: string;
185
+ };
186
+ outputFormat: "json";
187
+ status: 500;
188
+ input: {
189
+ param: {
190
+ projectId: string;
191
+ };
192
+ };
193
+ } | {
194
+ output: {
195
+ removed: true;
196
+ id: string;
197
+ };
198
+ outputFormat: "json";
199
+ status: import("hono/utils/http-status").ContentfulStatusCode;
200
+ input: {
201
+ param: {
202
+ projectId: string;
203
+ };
204
+ };
205
+ };
206
+ };
207
+ } & {
208
+ "/projects/:projectId": {
209
+ $patch: {
210
+ output: {
211
+ error: string;
212
+ };
213
+ outputFormat: "json";
214
+ status: 404;
215
+ input: {
216
+ json: {
217
+ maxParallel?: number | null | undefined;
218
+ tags?: string[] | null | undefined;
219
+ webhook?: {
220
+ url: string;
221
+ token?: string | undefined;
222
+ triggers?: ("cancelled" | "done" | "failed" | "needs-you" | "running" | "waiting-ci" | "waiting-other" | "waiting-timer" | "waiting-workers")[] | undefined;
223
+ } | null | undefined;
224
+ };
225
+ } & {
226
+ param: {
227
+ projectId: string;
228
+ };
229
+ };
230
+ } | {
231
+ output: {
232
+ error: string;
233
+ };
234
+ outputFormat: "json";
235
+ status: 500;
236
+ input: {
237
+ json: {
238
+ maxParallel?: number | null | undefined;
239
+ tags?: string[] | null | undefined;
240
+ webhook?: {
241
+ url: string;
242
+ token?: string | undefined;
243
+ triggers?: ("cancelled" | "done" | "failed" | "needs-you" | "running" | "waiting-ci" | "waiting-other" | "waiting-timer" | "waiting-workers")[] | undefined;
244
+ } | null | undefined;
245
+ };
246
+ } & {
247
+ param: {
248
+ projectId: string;
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?: "github" | 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
+ };
283
+ outputFormat: "json";
284
+ status: import("hono/utils/http-status").ContentfulStatusCode;
285
+ input: {
286
+ json: {
287
+ maxParallel?: number | null | undefined;
288
+ tags?: string[] | null | undefined;
289
+ webhook?: {
290
+ url: string;
291
+ token?: string | undefined;
292
+ triggers?: ("cancelled" | "done" | "failed" | "needs-you" | "running" | "waiting-ci" | "waiting-other" | "waiting-timer" | "waiting-workers")[] | undefined;
293
+ } | null | undefined;
294
+ };
295
+ } & {
296
+ param: {
297
+ projectId: string;
298
+ };
299
+ };
300
+ };
301
+ };
302
+ } & {
303
+ "/projects/:projectId/webhook/test": {
304
+ $post: {
305
+ output: {
306
+ error: string;
307
+ };
308
+ outputFormat: "json";
309
+ status: 404;
310
+ input: {
311
+ param: {
312
+ projectId: string;
313
+ };
314
+ };
315
+ } | {
316
+ output: {
317
+ error: string;
318
+ };
319
+ outputFormat: "json";
320
+ status: 400;
321
+ input: {
322
+ param: {
323
+ projectId: string;
324
+ };
325
+ };
326
+ } | {
327
+ output: {
328
+ ok: boolean;
329
+ status?: number | undefined;
330
+ error?: string | undefined;
331
+ dryRun?: boolean | undefined;
332
+ };
333
+ outputFormat: "json";
334
+ status: import("hono/utils/http-status").ContentfulStatusCode;
335
+ input: {
336
+ param: {
337
+ projectId: string;
338
+ };
339
+ };
340
+ };
341
+ };
342
+ } & {
343
+ "/projects/:projectId/webhooks": {
344
+ $post: {
345
+ output: {
346
+ error: string;
347
+ };
348
+ outputFormat: "json";
349
+ status: 400 | 404 | 409 | 500;
350
+ input: {
351
+ json: {
352
+ name: string;
353
+ description?: string | undefined;
354
+ url: string;
355
+ token?: string | undefined;
356
+ tasks?: boolean | undefined;
357
+ triggers?: ("cancelled" | "done" | "failed" | "needs-you" | "running" | "waiting-ci" | "waiting-other" | "waiting-timer" | "waiting-workers")[] | undefined;
358
+ agent?: boolean | undefined;
359
+ };
360
+ } & {
361
+ param: {
362
+ projectId: string;
363
+ };
364
+ };
365
+ } | {
366
+ output: {
367
+ project: {
368
+ id: string;
369
+ name: string;
370
+ root: string;
371
+ addedAt: string;
372
+ lastOpenedAt: string;
373
+ source: "checkout" | "local";
374
+ status: "missing" | "not-git" | "ok";
375
+ branch?: string | undefined;
376
+ forge?: "github" | undefined;
377
+ repoUrl?: string | undefined;
378
+ maxParallel?: number | undefined;
379
+ tags?: string[] | undefined;
380
+ webhook?: {
381
+ url: string;
382
+ tokenSet: boolean;
383
+ triggers?: ("cancelled" | "done" | "failed" | "needs-you" | "running" | "waiting-ci" | "waiting-other" | "waiting-timer" | "waiting-workers")[] | undefined;
384
+ } | undefined;
385
+ webhooks?: {
386
+ id: string;
387
+ name: string;
388
+ description?: string | undefined;
389
+ url: string;
390
+ tokenSet: boolean;
391
+ tasks: boolean;
392
+ triggers?: ("cancelled" | "done" | "failed" | "needs-you" | "running" | "waiting-ci" | "waiting-other" | "waiting-timer" | "waiting-workers")[] | undefined;
393
+ agent: boolean;
394
+ }[] | undefined;
395
+ };
396
+ webhook: {
397
+ id: string;
398
+ name: string;
399
+ description?: string | undefined;
400
+ url: string;
401
+ tokenSet: boolean;
402
+ tasks: boolean;
403
+ triggers?: ("cancelled" | "done" | "failed" | "needs-you" | "running" | "waiting-ci" | "waiting-other" | "waiting-timer" | "waiting-workers")[] | undefined;
404
+ agent: boolean;
405
+ };
406
+ };
407
+ outputFormat: "json";
408
+ status: 201;
409
+ input: {
410
+ json: {
411
+ name: string;
412
+ description?: string | undefined;
413
+ url: string;
414
+ token?: string | undefined;
415
+ tasks?: boolean | undefined;
416
+ triggers?: ("cancelled" | "done" | "failed" | "needs-you" | "running" | "waiting-ci" | "waiting-other" | "waiting-timer" | "waiting-workers")[] | undefined;
417
+ agent?: boolean | undefined;
418
+ };
419
+ } & {
420
+ param: {
421
+ projectId: string;
422
+ };
423
+ };
424
+ };
425
+ };
426
+ } & {
427
+ "/projects/:projectId/webhooks/:webhookId": {
428
+ $patch: {
429
+ output: {
430
+ error: string;
431
+ code?: "invalid_input" | undefined;
432
+ };
433
+ outputFormat: "json";
434
+ status: 400;
435
+ input: {
436
+ param: {
437
+ projectId: string;
438
+ webhookId: string;
439
+ };
440
+ } & {
441
+ json: {
442
+ name?: string | undefined;
443
+ description?: string | undefined;
444
+ url?: string | undefined;
445
+ token?: string | undefined;
446
+ tasks?: boolean | undefined;
447
+ triggers?: ("cancelled" | "done" | "failed" | "needs-you" | "running" | "waiting-ci" | "waiting-other" | "waiting-timer" | "waiting-workers")[] | undefined;
448
+ agent?: boolean | undefined;
449
+ };
450
+ };
451
+ } | {
452
+ output: {
453
+ project: {
454
+ id: string;
455
+ name: string;
456
+ root: string;
457
+ addedAt: string;
458
+ lastOpenedAt: string;
459
+ source: "checkout" | "local";
460
+ status: "missing" | "not-git" | "ok";
461
+ branch?: string | undefined;
462
+ forge?: "github" | undefined;
463
+ repoUrl?: string | undefined;
464
+ maxParallel?: number | undefined;
465
+ tags?: string[] | undefined;
466
+ webhook?: {
467
+ url: string;
468
+ tokenSet: boolean;
469
+ triggers?: ("cancelled" | "done" | "failed" | "needs-you" | "running" | "waiting-ci" | "waiting-other" | "waiting-timer" | "waiting-workers")[] | undefined;
470
+ } | undefined;
471
+ webhooks?: {
472
+ id: string;
473
+ name: string;
474
+ description?: string | undefined;
475
+ url: string;
476
+ tokenSet: boolean;
477
+ tasks: boolean;
478
+ triggers?: ("cancelled" | "done" | "failed" | "needs-you" | "running" | "waiting-ci" | "waiting-other" | "waiting-timer" | "waiting-workers")[] | undefined;
479
+ agent: boolean;
480
+ }[] | undefined;
481
+ };
482
+ webhook: {
483
+ id: string;
484
+ name: string;
485
+ description?: string | undefined;
486
+ url: string;
487
+ tokenSet: boolean;
488
+ tasks: boolean;
489
+ triggers?: ("cancelled" | "done" | "failed" | "needs-you" | "running" | "waiting-ci" | "waiting-other" | "waiting-timer" | "waiting-workers")[] | undefined;
490
+ agent: boolean;
491
+ };
492
+ };
493
+ outputFormat: "json";
494
+ status: import("hono/utils/http-status").ContentfulStatusCode;
495
+ input: {
496
+ param: {
497
+ projectId: string;
498
+ webhookId: string;
499
+ };
500
+ } & {
501
+ json: {
502
+ name?: string | undefined;
503
+ description?: string | undefined;
504
+ url?: string | undefined;
505
+ token?: string | undefined;
506
+ tasks?: boolean | undefined;
507
+ triggers?: ("cancelled" | "done" | "failed" | "needs-you" | "running" | "waiting-ci" | "waiting-other" | "waiting-timer" | "waiting-workers")[] | undefined;
508
+ agent?: boolean | undefined;
509
+ };
510
+ };
511
+ } | {
512
+ output: {
513
+ error: string;
514
+ };
515
+ outputFormat: "json";
516
+ status: 400 | 404 | 409 | 500;
517
+ input: {
518
+ param: {
519
+ projectId: string;
520
+ webhookId: string;
521
+ };
522
+ } & {
523
+ json: {
524
+ name?: string | undefined;
525
+ description?: string | undefined;
526
+ url?: string | undefined;
527
+ token?: string | undefined;
528
+ tasks?: boolean | undefined;
529
+ triggers?: ("cancelled" | "done" | "failed" | "needs-you" | "running" | "waiting-ci" | "waiting-other" | "waiting-timer" | "waiting-workers")[] | undefined;
530
+ agent?: boolean | undefined;
531
+ };
532
+ };
533
+ };
534
+ };
535
+ } & {
536
+ "/projects/:projectId/webhooks/:webhookId": {
537
+ $delete: {
538
+ output: {
539
+ error: string;
540
+ code?: "invalid_input" | undefined;
541
+ };
542
+ outputFormat: "json";
543
+ status: 400;
544
+ input: {
545
+ param: {
546
+ projectId: string;
547
+ webhookId: string;
548
+ };
549
+ };
550
+ } | {
551
+ output: {
552
+ project: {
553
+ id: string;
554
+ name: string;
555
+ root: string;
556
+ addedAt: string;
557
+ lastOpenedAt: string;
558
+ source: "checkout" | "local";
559
+ status: "missing" | "not-git" | "ok";
560
+ branch?: string | undefined;
561
+ forge?: "github" | undefined;
562
+ repoUrl?: string | undefined;
563
+ maxParallel?: number | undefined;
564
+ tags?: string[] | undefined;
565
+ webhook?: {
566
+ url: string;
567
+ tokenSet: boolean;
568
+ triggers?: ("cancelled" | "done" | "failed" | "needs-you" | "running" | "waiting-ci" | "waiting-other" | "waiting-timer" | "waiting-workers")[] | undefined;
569
+ } | undefined;
570
+ webhooks?: {
571
+ id: string;
572
+ name: string;
573
+ description?: string | undefined;
574
+ url: string;
575
+ tokenSet: boolean;
576
+ tasks: boolean;
577
+ triggers?: ("cancelled" | "done" | "failed" | "needs-you" | "running" | "waiting-ci" | "waiting-other" | "waiting-timer" | "waiting-workers")[] | undefined;
578
+ agent: boolean;
579
+ }[] | undefined;
580
+ };
581
+ };
582
+ outputFormat: "json";
583
+ status: import("hono/utils/http-status").ContentfulStatusCode;
584
+ input: {
585
+ param: {
586
+ projectId: string;
587
+ webhookId: string;
588
+ };
589
+ };
590
+ } | {
591
+ output: {
592
+ error: string;
593
+ };
594
+ outputFormat: "json";
595
+ status: 400 | 404 | 409 | 500;
596
+ input: {
597
+ param: {
598
+ projectId: string;
599
+ webhookId: string;
600
+ };
601
+ };
602
+ };
603
+ };
604
+ } & {
605
+ "/projects/:projectId/webhooks/:webhookId/test": {
606
+ $post: {
607
+ output: {
608
+ error: string;
609
+ code?: "invalid_input" | undefined;
610
+ };
611
+ outputFormat: "json";
612
+ status: 400;
613
+ input: {
614
+ param: {
615
+ projectId: string;
616
+ webhookId: string;
617
+ };
618
+ };
619
+ } | {
620
+ output: {
621
+ ok: boolean;
622
+ status?: number | undefined;
623
+ error?: string | undefined;
624
+ dryRun?: boolean | undefined;
625
+ };
626
+ outputFormat: "json";
627
+ status: import("hono/utils/http-status").ContentfulStatusCode;
628
+ input: {
629
+ param: {
630
+ projectId: string;
631
+ webhookId: string;
632
+ };
633
+ };
634
+ } | {
635
+ output: {
636
+ error: string;
637
+ };
638
+ outputFormat: "json";
639
+ status: 404;
640
+ input: {
641
+ param: {
642
+ projectId: string;
643
+ webhookId: string;
644
+ };
645
+ };
646
+ };
647
+ };
648
+ } & {
649
+ "/projects/checkout/:checkoutId/progress": {
650
+ $get: {
651
+ output: {
652
+ error: string;
653
+ code?: "invalid_input" | undefined;
654
+ };
655
+ outputFormat: "json";
656
+ status: 400;
657
+ input: {
658
+ param: {
659
+ checkoutId: string;
660
+ };
661
+ };
662
+ } | {
663
+ output: {
664
+ progress: {
665
+ checkoutId?: string | undefined;
666
+ name: string;
667
+ phase: "cloning" | "done" | "error";
668
+ line?: string | undefined;
669
+ error?: string | undefined;
670
+ warning?: string | undefined;
671
+ } | null;
672
+ };
673
+ outputFormat: "json";
674
+ status: import("hono/utils/http-status").ContentfulStatusCode;
675
+ input: {
676
+ param: {
677
+ checkoutId: string;
678
+ };
679
+ };
680
+ };
681
+ };
682
+ } & {
683
+ "/projects/checkout": {
684
+ $post: {
685
+ output: {
686
+ project: {
687
+ id: string;
688
+ name: string;
689
+ root: string;
690
+ addedAt: string;
691
+ lastOpenedAt: string;
692
+ source: "checkout" | "local";
693
+ status: "missing" | "not-git" | "ok";
694
+ branch?: string | undefined;
695
+ forge?: "github" | undefined;
696
+ repoUrl?: string | undefined;
697
+ maxParallel?: number | undefined;
698
+ tags?: string[] | undefined;
699
+ webhook?: {
700
+ url: string;
701
+ tokenSet: boolean;
702
+ triggers?: ("cancelled" | "done" | "failed" | "needs-you" | "running" | "waiting-ci" | "waiting-other" | "waiting-timer" | "waiting-workers")[] | undefined;
703
+ } | undefined;
704
+ webhooks?: {
705
+ id: string;
706
+ name: string;
707
+ description?: string | undefined;
708
+ url: string;
709
+ tokenSet: boolean;
710
+ tasks: boolean;
711
+ triggers?: ("cancelled" | "done" | "failed" | "needs-you" | "running" | "waiting-ci" | "waiting-other" | "waiting-timer" | "waiting-workers")[] | undefined;
712
+ agent: boolean;
713
+ }[] | undefined;
714
+ };
715
+ error?: string | undefined;
716
+ };
717
+ outputFormat: "json";
718
+ status: 200;
719
+ input: {
720
+ json: {
721
+ url: string;
722
+ name?: string | undefined;
723
+ checkoutId?: string | undefined;
724
+ };
725
+ };
726
+ } | {
727
+ output: {
728
+ error: string;
729
+ reason: string;
730
+ } | {
731
+ error: string;
732
+ };
733
+ outputFormat: "json";
734
+ status: 400 | 409 | 500 | 503;
735
+ input: {
736
+ json: {
737
+ url: string;
738
+ name?: string | undefined;
739
+ checkoutId?: string | undefined;
740
+ };
741
+ };
742
+ };
743
+ };
744
+ } & {
745
+ "/projects/github-owners": {
746
+ $get: {
747
+ output: {
748
+ available: false;
749
+ reason: string;
750
+ } | {
751
+ available: true;
752
+ owners: {
753
+ login: string;
754
+ personal: boolean;
755
+ avatarUrl?: string | undefined;
756
+ description?: string | undefined;
757
+ }[];
758
+ };
759
+ outputFormat: "json";
760
+ status: import("hono/utils/http-status").ContentfulStatusCode;
761
+ input: {};
762
+ };
763
+ };
764
+ } & {
765
+ "/projects/create": {
766
+ $post: {
767
+ output: {
768
+ project: {
769
+ id: string;
770
+ name: string;
771
+ root: string;
772
+ addedAt: string;
773
+ lastOpenedAt: string;
774
+ source: "checkout" | "local";
775
+ status: "missing" | "not-git" | "ok";
776
+ branch?: string | undefined;
777
+ forge?: "github" | undefined;
778
+ repoUrl?: string | undefined;
779
+ maxParallel?: number | undefined;
780
+ tags?: string[] | undefined;
781
+ webhook?: {
782
+ url: string;
783
+ tokenSet: boolean;
784
+ triggers?: ("cancelled" | "done" | "failed" | "needs-you" | "running" | "waiting-ci" | "waiting-other" | "waiting-timer" | "waiting-workers")[] | undefined;
785
+ } | undefined;
786
+ webhooks?: {
787
+ id: string;
788
+ name: string;
789
+ description?: string | undefined;
790
+ url: string;
791
+ tokenSet: boolean;
792
+ tasks: boolean;
793
+ triggers?: ("cancelled" | "done" | "failed" | "needs-you" | "running" | "waiting-ci" | "waiting-other" | "waiting-timer" | "waiting-workers")[] | undefined;
794
+ agent: boolean;
795
+ }[] | undefined;
796
+ };
797
+ error?: string | undefined;
798
+ warning?: string | undefined;
799
+ };
800
+ outputFormat: "json";
801
+ status: 200;
802
+ input: {
803
+ json: {
804
+ name: string;
805
+ github?: {
806
+ owner: string;
807
+ template?: string | undefined;
808
+ } | undefined;
809
+ checkoutId?: string | undefined;
810
+ };
811
+ };
812
+ } | {
813
+ output: {
814
+ error: string;
815
+ reason: string;
816
+ } | {
817
+ error: string;
818
+ };
819
+ outputFormat: "json";
820
+ status: 400 | 409 | 500 | 503;
821
+ input: {
822
+ json: {
823
+ name: string;
824
+ github?: {
825
+ owner: string;
826
+ template?: string | undefined;
827
+ } | undefined;
828
+ checkoutId?: string | undefined;
829
+ };
830
+ };
831
+ };
832
+ };
833
+ }, "/", "/projects/create">;