@hearsay-tools/squawk 0.19.0-dev.9260 → 0.19.0-dev.9262

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.
@@ -63,6 +63,17 @@ export declare function createProjectsRoutes(deps: ProjectsRouteDeps): import("h
63
63
  } & {
64
64
  "/projects": {
65
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
+ } | {
66
77
  output: {
67
78
  project: {
68
79
  id: string;
@@ -94,10 +105,10 @@ export declare function createProjectsRoutes(deps: ProjectsRouteDeps): import("h
94
105
  agent: boolean;
95
106
  }[] | undefined;
96
107
  };
97
- error?: string | undefined;
108
+ error: string;
98
109
  };
99
110
  outputFormat: "json";
100
- status: 200;
111
+ status: 409;
101
112
  input: {
102
113
  json: {
103
114
  root: string;
@@ -135,31 +146,32 @@ export declare function createProjectsRoutes(deps: ProjectsRouteDeps): import("h
135
146
  agent: boolean;
136
147
  }[] | undefined;
137
148
  };
138
- error: string;
149
+ error?: string | undefined;
139
150
  };
140
151
  outputFormat: "json";
141
- status: 409;
152
+ status: 200;
142
153
  input: {
143
154
  json: {
144
155
  root: string;
145
156
  };
146
157
  };
147
- } | {
158
+ };
159
+ };
160
+ } & {
161
+ "/projects/:projectId": {
162
+ $delete: {
148
163
  output: {
149
164
  error: string;
165
+ code?: "no-boot-project" | undefined;
150
166
  };
151
167
  outputFormat: "json";
152
- status: 400 | 500;
168
+ status: 404 | 409;
153
169
  input: {
154
- json: {
155
- root: string;
170
+ param: {
171
+ projectId: string;
156
172
  };
157
173
  };
158
- };
159
- };
160
- } & {
161
- "/projects/:projectId": {
162
- $delete: {
174
+ } | {
163
175
  output: {
164
176
  error: string;
165
177
  };
@@ -204,7 +216,11 @@ export declare function createProjectsRoutes(deps: ProjectsRouteDeps): import("h
204
216
  projectId: string;
205
217
  };
206
218
  };
207
- } | {
219
+ };
220
+ };
221
+ } & {
222
+ "/projects/:projectId": {
223
+ $patch: {
208
224
  output: {
209
225
  error: string;
210
226
  code?: "no-boot-project" | undefined;
@@ -212,15 +228,21 @@ export declare function createProjectsRoutes(deps: ProjectsRouteDeps): import("h
212
228
  outputFormat: "json";
213
229
  status: 404 | 409;
214
230
  input: {
231
+ json: {
232
+ maxParallel?: number | null | undefined;
233
+ tags?: string[] | null | undefined;
234
+ webhook?: {
235
+ url: string;
236
+ token?: string | undefined;
237
+ triggers?: ("cancelled" | "done" | "failed" | "needs-you" | "running" | "waiting-ci" | "waiting-other" | "waiting-timer" | "waiting-workers")[] | undefined;
238
+ } | null | undefined;
239
+ };
240
+ } & {
215
241
  param: {
216
242
  projectId: string;
217
243
  };
218
244
  };
219
- };
220
- };
221
- } & {
222
- "/projects/:projectId": {
223
- $patch: {
245
+ } | {
224
246
  output: {
225
247
  error: string;
226
248
  };
@@ -312,28 +334,6 @@ export declare function createProjectsRoutes(deps: ProjectsRouteDeps): import("h
312
334
  projectId: string;
313
335
  };
314
336
  };
315
- } | {
316
- output: {
317
- error: string;
318
- code?: "no-boot-project" | undefined;
319
- };
320
- outputFormat: "json";
321
- status: 404 | 409;
322
- input: {
323
- json: {
324
- maxParallel?: number | null | undefined;
325
- tags?: string[] | null | undefined;
326
- webhook?: {
327
- url: string;
328
- token?: string | undefined;
329
- triggers?: ("cancelled" | "done" | "failed" | "needs-you" | "running" | "waiting-ci" | "waiting-other" | "waiting-timer" | "waiting-workers")[] | undefined;
330
- } | null | undefined;
331
- };
332
- } & {
333
- param: {
334
- projectId: string;
335
- };
336
- };
337
337
  };
338
338
  };
339
339
  } & {
@@ -31,7 +31,7 @@ export declare function createOpenTargetsRoutes(deps: OpenTargetsRouteDeps): imp
31
31
  error: string;
32
32
  };
33
33
  outputFormat: "json";
34
- status: 409;
34
+ status: 400;
35
35
  input: {
36
36
  json: {
37
37
  target: string;
@@ -42,7 +42,7 @@ export declare function createOpenTargetsRoutes(deps: OpenTargetsRouteDeps): imp
42
42
  error: string;
43
43
  };
44
44
  outputFormat: "json";
45
- status: 400;
45
+ status: 409;
46
46
  input: {
47
47
  json: {
48
48
  target: string;
@@ -138,10 +138,11 @@ export declare function createWorktreesRoutes(deps: WorktreesRouteDeps): import(
138
138
  };
139
139
  } | {
140
140
  output: {
141
- error: string;
141
+ runId: string;
142
+ worktreeReclaimedAt: string;
142
143
  };
143
144
  outputFormat: "json";
144
- status: 404 | 409;
145
+ status: import("hono/utils/http-status").ContentfulStatusCode;
145
146
  input: {
146
147
  param: {
147
148
  runId: string;
@@ -153,11 +154,10 @@ export declare function createWorktreesRoutes(deps: WorktreesRouteDeps): import(
153
154
  };
154
155
  } | {
155
156
  output: {
156
- runId: string;
157
- worktreeReclaimedAt: string;
157
+ error: string;
158
158
  };
159
159
  outputFormat: "json";
160
- status: import("hono/utils/http-status").ContentfulStatusCode;
160
+ status: 404 | 409;
161
161
  input: {
162
162
  param: {
163
163
  runId: string;
@@ -296,14 +296,18 @@ export declare function createRepoRoutes(deps: RepoRouteDeps): import("hono/hono
296
296
  "/repo/branches/delete": {
297
297
  $post: {
298
298
  output: {
299
- error: string;
299
+ deleted: string[];
300
300
  refused: {
301
301
  name: string;
302
302
  reason: string;
303
303
  }[];
304
+ dropped?: {
305
+ sha: string;
306
+ subject: string;
307
+ }[] | undefined;
304
308
  };
305
309
  outputFormat: "json";
306
- status: 409;
310
+ status: 200;
307
311
  input: {
308
312
  json: {
309
313
  names: string[];
@@ -312,18 +316,14 @@ export declare function createRepoRoutes(deps: RepoRouteDeps): import("hono/hono
312
316
  };
313
317
  } | {
314
318
  output: {
315
- deleted: string[];
319
+ error: string;
316
320
  refused: {
317
321
  name: string;
318
322
  reason: string;
319
323
  }[];
320
- dropped?: {
321
- sha: string;
322
- subject: string;
323
- }[] | undefined;
324
324
  };
325
325
  outputFormat: "json";
326
- status: 200;
326
+ status: 409;
327
327
  input: {
328
328
  json: {
329
329
  names: string[];
@@ -344,19 +344,6 @@ export declare function createRepoRoutes(deps: RepoRouteDeps): import("hono/hono
344
344
  } & {
345
345
  "/repo/commit/:sha": {
346
346
  $get: {
347
- output: string;
348
- outputFormat: "text";
349
- status: import("hono/utils/http-status").ContentfulStatusCode;
350
- input: {
351
- query: {
352
- structured?: string | undefined;
353
- };
354
- } & {
355
- param: {
356
- sha: string;
357
- };
358
- };
359
- } | {
360
347
  output: {
361
348
  error: string;
362
349
  code?: "invalid_input" | undefined;
@@ -420,6 +407,19 @@ export declare function createRepoRoutes(deps: RepoRouteDeps): import("hono/hono
420
407
  sha: string;
421
408
  };
422
409
  };
410
+ } | {
411
+ output: string;
412
+ outputFormat: "text";
413
+ status: import("hono/utils/http-status").ContentfulStatusCode;
414
+ input: {
415
+ query: {
416
+ structured?: string | undefined;
417
+ };
418
+ } & {
419
+ param: {
420
+ sha: string;
421
+ };
422
+ };
423
423
  };
424
424
  };
425
425
  } & {
@@ -442,15 +442,10 @@ export declare function createRepoRoutes(deps: RepoRouteDeps): import("hono/hono
442
442
  };
443
443
  } | {
444
444
  output: {
445
- type: 'file';
446
- path: string;
447
- size: number;
448
- binary: boolean;
449
- tooLarge: boolean;
450
- content?: string | undefined;
445
+ error: string;
451
446
  };
452
447
  outputFormat: "json";
453
- status: import("hono/utils/http-status").ContentfulStatusCode;
448
+ status: 409;
454
449
  input: {
455
450
  param: {
456
451
  sha: string;
@@ -462,10 +457,15 @@ export declare function createRepoRoutes(deps: RepoRouteDeps): import("hono/hono
462
457
  };
463
458
  } | {
464
459
  output: {
465
- error: string;
460
+ type: 'file';
461
+ path: string;
462
+ size: number;
463
+ binary: boolean;
464
+ tooLarge: boolean;
465
+ content?: string | undefined;
466
466
  };
467
467
  outputFormat: "json";
468
- status: 409;
468
+ status: import("hono/utils/http-status").ContentfulStatusCode;
469
469
  input: {
470
470
  param: {
471
471
  sha: string;
@@ -493,15 +493,10 @@ export declare function createRepoRoutes(deps: RepoRouteDeps): import("hono/hono
493
493
  };
494
494
  } | {
495
495
  output: {
496
- type: 'file';
497
- path: string;
498
- size: number;
499
- binary: boolean;
500
- tooLarge: boolean;
501
- content?: string | undefined;
496
+ error: string;
502
497
  };
503
498
  outputFormat: "json";
504
- status: import("hono/utils/http-status").ContentfulStatusCode;
499
+ status: 409;
505
500
  input: {
506
501
  query: {
507
502
  path: string | string[];
@@ -509,10 +504,15 @@ export declare function createRepoRoutes(deps: RepoRouteDeps): import("hono/hono
509
504
  };
510
505
  } | {
511
506
  output: {
512
- error: string;
507
+ type: 'file';
508
+ path: string;
509
+ size: number;
510
+ binary: boolean;
511
+ tooLarge: boolean;
512
+ content?: string | undefined;
513
513
  };
514
514
  outputFormat: "json";
515
- status: 409;
515
+ status: import("hono/utils/http-status").ContentfulStatusCode;
516
516
  input: {
517
517
  query: {
518
518
  path: string | string[];
@@ -578,10 +578,12 @@ export declare function createRepoRoutes(deps: RepoRouteDeps): import("hono/hono
578
578
  "/repo/pull": {
579
579
  $post: {
580
580
  output: {
581
- error: string;
581
+ branch: string;
582
+ pulled: true;
583
+ summary: string;
582
584
  };
583
585
  outputFormat: "json";
584
- status: 409;
586
+ status: 200;
585
587
  input: {
586
588
  json: {
587
589
  branch?: string | undefined;
@@ -590,12 +592,10 @@ export declare function createRepoRoutes(deps: RepoRouteDeps): import("hono/hono
590
592
  };
591
593
  } | {
592
594
  output: {
593
- branch: string;
594
- pulled: true;
595
- summary: string;
595
+ error: string;
596
596
  };
597
597
  outputFormat: "json";
598
- status: 200;
598
+ status: 409;
599
599
  input: {
600
600
  json: {
601
601
  branch?: string | undefined;