@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.
- package/dist/built-in-cli-commands.js +6 -5
- package/dist/built-in-cli-commands.js.map +1 -1
- package/dist/built-in-launch-parts.d.ts +0 -4
- package/dist/built-in-launch-parts.js +1 -17
- package/dist/built-in-launch-parts.js.map +1 -1
- package/dist/cli-dispatch.d.ts +2 -1
- package/dist/cli-dispatch.js +20 -7
- package/dist/cli-dispatch.js.map +1 -1
- package/dist/contract/hosts.d.ts +161 -0
- package/dist/contract/index.js +116 -0
- package/dist/core/cli-registry.d.ts +1 -0
- package/dist/core/cli-registry.js.map +1 -1
- package/dist/core/server-hook-registry.d.ts +17 -2
- package/dist/core/server-hook-registry.js +1 -0
- package/dist/core/server-hook-registry.js.map +1 -1
- package/dist/features/automations/tools.d.ts +8 -8
- package/dist/features/hosts/cli.d.ts +59 -0
- package/dist/features/hosts/cli.js +28 -17
- package/dist/features/hosts/cli.js.map +1 -1
- package/dist/features/hosts/host-server-cli.d.ts +13 -0
- package/dist/features/hosts/host-server-cli.js +246 -0
- package/dist/features/hosts/host-server-cli.js.map +1 -0
- package/dist/features/hosts/host-server.d.ts +51 -0
- package/dist/features/hosts/host-server.js +407 -0
- package/dist/features/hosts/host-server.js.map +1 -0
- package/dist/features/hosts/index.d.ts +2 -0
- package/dist/features/hosts/index.js +12 -0
- package/dist/features/hosts/index.js.map +1 -1
- package/dist/features/hosts/runtime-archive.d.ts +103 -0
- package/dist/features/hosts/runtime-archive.js +619 -0
- package/dist/features/hosts/runtime-archive.js.map +1 -0
- package/dist/features/hosts/start-methods.d.ts +76 -0
- package/dist/features/hosts/start-methods.js +234 -0
- package/dist/features/hosts/start-methods.js.map +1 -0
- package/dist/features/hosts/tar-gz.d.ts +30 -0
- package/dist/features/hosts/tar-gz.js +143 -0
- package/dist/features/hosts/tar-gz.js.map +1 -0
- package/dist/features/webhooks/capability.d.ts +3 -0
- package/dist/features/webhooks/capability.js +6 -0
- package/dist/features/webhooks/capability.js.map +1 -0
- package/dist/features/webhooks/cli-command.d.ts +3 -0
- package/dist/features/webhooks/cli-command.js +10 -0
- package/dist/features/webhooks/cli-command.js.map +1 -0
- package/dist/{webhooks → features/webhooks}/cli.d.ts +2 -2
- package/dist/{webhooks → features/webhooks}/cli.js +7 -7
- package/dist/features/webhooks/cli.js.map +1 -0
- package/dist/features/webhooks/index.d.ts +13 -0
- package/dist/features/webhooks/index.js +14 -0
- package/dist/features/webhooks/index.js.map +1 -0
- package/dist/features/webhooks/launch-part.d.ts +7 -0
- package/dist/features/webhooks/launch-part.js +19 -0
- package/dist/features/webhooks/launch-part.js.map +1 -0
- package/dist/{webhooks → features/webhooks}/prompt.d.ts +1 -1
- package/dist/{webhooks → features/webhooks}/prompt.js +1 -1
- package/dist/features/webhooks/prompt.js.map +1 -0
- package/dist/features/webhooks/routes.d.ts +463 -0
- package/dist/features/webhooks/routes.js +177 -0
- package/dist/features/webhooks/routes.js.map +1 -0
- package/dist/features/webhooks/server-plugin.d.ts +16 -0
- package/dist/features/webhooks/server-plugin.js +98 -0
- package/dist/features/webhooks/server-plugin.js.map +1 -0
- package/dist/{runs → features/webhooks}/webhook.d.ts +5 -5
- package/dist/{runs → features/webhooks}/webhook.js +16 -10
- package/dist/features/webhooks/webhook.js.map +1 -0
- package/dist/host-server-store.d.ts +103 -0
- package/dist/host-server-store.js +348 -0
- package/dist/host-server-store.js.map +1 -0
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/plugin/index.d.ts +1 -1
- package/dist/plugin/index.js.map +1 -1
- package/dist/serve-command.d.ts +12 -3
- package/dist/serve-command.js +76 -18
- package/dist/serve-command.js.map +1 -1
- package/dist/server/live-routes.d.ts +6 -6
- package/dist/server/plugin-server-hooks.d.ts +12 -1
- package/dist/server/plugin-server-hooks.js +33 -0
- package/dist/server/plugin-server-hooks.js.map +1 -1
- package/dist/server/project-settings-routes.d.ts +0 -90
- package/dist/server/project-settings-routes.js +0 -30
- package/dist/server/project-settings-routes.js.map +1 -1
- package/dist/server/projects-routes.d.ts +1 -376
- package/dist/server/projects-routes.js +2 -137
- package/dist/server/projects-routes.js.map +1 -1
- package/dist/server/runs-routes.d.ts +707 -725
- package/dist/server/runs-routes.js +6 -11
- package/dist/server/runs-routes.js.map +1 -1
- package/dist/server/server-deps.d.ts +1 -4
- package/dist/server/server-deps.js +3 -7
- package/dist/server/server-deps.js.map +1 -1
- package/dist/server/server.d.ts +520 -1100
- package/dist/server/server.js +10 -16
- package/dist/server/server.js.map +1 -1
- package/dist/server/start-run-options.d.ts +5 -3
- package/dist/server/start-run-options.js +8 -3
- package/dist/server/start-run-options.js.map +1 -1
- package/dist/server/start-server.js +8 -11
- package/dist/server/start-server.js.map +1 -1
- package/dist/server/workspace-live-routes.d.ts +6 -6
- package/dist/server/workspace-projects.d.ts +2 -5
- package/dist/server/workspace-projects.js +10 -11
- package/dist/server/workspace-projects.js.map +1 -1
- package/package.json +4 -4
- package/dist/runs/webhook.js.map +0 -1
- package/dist/webhooks/cli.js.map +0 -1
- package/dist/webhooks/prompt.js.map +0 -1
package/dist/server/server.d.ts
CHANGED
|
@@ -6,7 +6,6 @@ import { type WorkspaceProjects } from './workspace-projects.ts';
|
|
|
6
6
|
import { type WorkerCleanupFactory } from '../delegation/service.ts';
|
|
7
7
|
import type { DelegationController } from '../delegation/provision.ts';
|
|
8
8
|
import { Hono } from 'hono';
|
|
9
|
-
import { TaskWebhooks } from '../runs/webhook.ts';
|
|
10
9
|
import type { RunnerFactory } from '../core/agent-runner.ts';
|
|
11
10
|
import type { HttpRouteDefinition } from '../core/http-route-registry.ts';
|
|
12
11
|
import type { LiveTopicDefinition } from '../core/live-topic-registry.ts';
|
|
@@ -35,13 +34,6 @@ export interface ServerDeps extends ActivityServerDeps {
|
|
|
35
34
|
projectForge?: ProjectForgeResolver;
|
|
36
35
|
/** CLI lifetime ownership, shared with secondary project contexts. */
|
|
37
36
|
ownership?: CockpitOwnership;
|
|
38
|
-
/** The task-webhook subscribers (#589). Boot creates it and attaches the boot store BEFORE
|
|
39
|
-
* `manager.recover()`, so recovery's transitions are reported; `startServer` sets its origin
|
|
40
|
-
* from the port it binds. Absent (tests, embedded apps), `createApp` makes its own. */
|
|
41
|
-
taskWebhooks?: TaskWebhooks;
|
|
42
|
-
/** Test seam for task-webhook deliveries (#589): the `fetch` they POST with. Used only when
|
|
43
|
-
* `createApp` builds its own `TaskWebhooks`. */
|
|
44
|
-
taskWebhookFetch?: typeof fetch;
|
|
45
37
|
/** Same-process optional private listener; attached to managers before recovery. Without it, `workerCleanup` lets the fallback service destroy workers. */
|
|
46
38
|
delegation?: DelegationController;
|
|
47
39
|
workerCleanup?: WorkerCleanupFactory;
|
|
@@ -167,6 +159,188 @@ export interface ProjectRouteInfo {
|
|
|
167
159
|
export declare function projectRouteManifest(app: Hono): ProjectRouteInfo[];
|
|
168
160
|
export type { ProjectsResponse, RegisterProjectResponse, RemoveProjectResponse, UpdateProjectResponse } from '../contract/index.js';
|
|
169
161
|
export declare function createApp(deps: ServerDeps): import("hono/hono-base").HonoBase<import("hono/types").BlankEnv, import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<{
|
|
162
|
+
"/health": {
|
|
163
|
+
$get: {
|
|
164
|
+
output: {
|
|
165
|
+
version: string;
|
|
166
|
+
latestVersion?: string | undefined;
|
|
167
|
+
repoRoot: string | null;
|
|
168
|
+
repo: {
|
|
169
|
+
root: string;
|
|
170
|
+
branch: string;
|
|
171
|
+
remote?: string | undefined;
|
|
172
|
+
} | null;
|
|
173
|
+
checks: {
|
|
174
|
+
name: string;
|
|
175
|
+
available: boolean;
|
|
176
|
+
version?: string;
|
|
177
|
+
hint?: string;
|
|
178
|
+
}[];
|
|
179
|
+
defaultRunner: string;
|
|
180
|
+
forge: {
|
|
181
|
+
available?: boolean | undefined;
|
|
182
|
+
reason?: string;
|
|
183
|
+
kind: string;
|
|
184
|
+
} | null;
|
|
185
|
+
capabilities: {
|
|
186
|
+
[x: string]: boolean | undefined;
|
|
187
|
+
localHandoff: boolean;
|
|
188
|
+
settingsAdmin: boolean;
|
|
189
|
+
remoteSettingsAdmin: boolean;
|
|
190
|
+
automations?: boolean | undefined;
|
|
191
|
+
preview: boolean;
|
|
192
|
+
tokenMetrics: boolean;
|
|
193
|
+
tokenUsageMetrics: boolean;
|
|
194
|
+
costMetrics: boolean;
|
|
195
|
+
};
|
|
196
|
+
projects: {
|
|
197
|
+
id: string;
|
|
198
|
+
name: string;
|
|
199
|
+
}[];
|
|
200
|
+
bootProject: string | null;
|
|
201
|
+
plugins: {
|
|
202
|
+
loaded: {
|
|
203
|
+
name: string;
|
|
204
|
+
source: "bundled" | "host";
|
|
205
|
+
path?: string | undefined;
|
|
206
|
+
}[];
|
|
207
|
+
failed: {
|
|
208
|
+
name: string;
|
|
209
|
+
source: "bundled" | "host";
|
|
210
|
+
path?: string | undefined;
|
|
211
|
+
error: string;
|
|
212
|
+
}[];
|
|
213
|
+
};
|
|
214
|
+
};
|
|
215
|
+
outputFormat: "json";
|
|
216
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
217
|
+
input: {};
|
|
218
|
+
};
|
|
219
|
+
};
|
|
220
|
+
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
221
|
+
"/fs/browse": {
|
|
222
|
+
$get: {
|
|
223
|
+
output: {
|
|
224
|
+
error: string;
|
|
225
|
+
code?: "invalid_input" | undefined;
|
|
226
|
+
};
|
|
227
|
+
outputFormat: "json";
|
|
228
|
+
status: 400;
|
|
229
|
+
input: {
|
|
230
|
+
query: {
|
|
231
|
+
path?: string | undefined;
|
|
232
|
+
showHidden?: string | undefined;
|
|
233
|
+
};
|
|
234
|
+
};
|
|
235
|
+
} | {
|
|
236
|
+
output: {
|
|
237
|
+
error: string;
|
|
238
|
+
};
|
|
239
|
+
outputFormat: "json";
|
|
240
|
+
status: 400 | 403 | 404;
|
|
241
|
+
input: {
|
|
242
|
+
query: {
|
|
243
|
+
path?: string | undefined;
|
|
244
|
+
showHidden?: string | undefined;
|
|
245
|
+
};
|
|
246
|
+
};
|
|
247
|
+
} | {
|
|
248
|
+
output: {
|
|
249
|
+
path: string;
|
|
250
|
+
parent: string | null;
|
|
251
|
+
dirs: {
|
|
252
|
+
name: string;
|
|
253
|
+
path: string;
|
|
254
|
+
isRepo: boolean;
|
|
255
|
+
}[];
|
|
256
|
+
truncated: boolean;
|
|
257
|
+
};
|
|
258
|
+
outputFormat: "json";
|
|
259
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
260
|
+
input: {
|
|
261
|
+
query: {
|
|
262
|
+
path?: string | undefined;
|
|
263
|
+
showHidden?: string | undefined;
|
|
264
|
+
};
|
|
265
|
+
};
|
|
266
|
+
};
|
|
267
|
+
};
|
|
268
|
+
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
269
|
+
"/workspace/events": {
|
|
270
|
+
$get: {
|
|
271
|
+
output: {};
|
|
272
|
+
outputFormat: string;
|
|
273
|
+
status: import("hono/utils/http-status").StatusCode;
|
|
274
|
+
input: {
|
|
275
|
+
query: {
|
|
276
|
+
runs?: "summary" | undefined;
|
|
277
|
+
};
|
|
278
|
+
};
|
|
279
|
+
} | {
|
|
280
|
+
output: {
|
|
281
|
+
error: string;
|
|
282
|
+
code?: "invalid_input" | undefined;
|
|
283
|
+
};
|
|
284
|
+
outputFormat: "json";
|
|
285
|
+
status: 400;
|
|
286
|
+
input: {
|
|
287
|
+
query: {
|
|
288
|
+
runs?: "summary" | undefined;
|
|
289
|
+
};
|
|
290
|
+
};
|
|
291
|
+
};
|
|
292
|
+
};
|
|
293
|
+
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
294
|
+
"/models": {
|
|
295
|
+
$get: {
|
|
296
|
+
output: {
|
|
297
|
+
error: string;
|
|
298
|
+
code?: "invalid_input" | undefined;
|
|
299
|
+
};
|
|
300
|
+
outputFormat: "json";
|
|
301
|
+
status: 400;
|
|
302
|
+
input: {
|
|
303
|
+
query: {
|
|
304
|
+
runner: string | string[];
|
|
305
|
+
profileId?: string | undefined;
|
|
306
|
+
};
|
|
307
|
+
};
|
|
308
|
+
} | {
|
|
309
|
+
output: {
|
|
310
|
+
runner: string;
|
|
311
|
+
models: {
|
|
312
|
+
id: string;
|
|
313
|
+
label: string;
|
|
314
|
+
description: string;
|
|
315
|
+
effortLevels?: import('../contract/index.js').EffortLevel[];
|
|
316
|
+
}[];
|
|
317
|
+
source: import("../core/runner-model-catalog.ts").ModelCatalogSource;
|
|
318
|
+
stale: boolean;
|
|
319
|
+
reason?: string;
|
|
320
|
+
};
|
|
321
|
+
outputFormat: "json";
|
|
322
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
323
|
+
input: {
|
|
324
|
+
query: {
|
|
325
|
+
runner: string | string[];
|
|
326
|
+
profileId?: string | undefined;
|
|
327
|
+
};
|
|
328
|
+
};
|
|
329
|
+
} | {
|
|
330
|
+
output: {
|
|
331
|
+
error: string;
|
|
332
|
+
};
|
|
333
|
+
outputFormat: "json";
|
|
334
|
+
status: 400;
|
|
335
|
+
input: {
|
|
336
|
+
query: {
|
|
337
|
+
runner: string | string[];
|
|
338
|
+
profileId?: string | undefined;
|
|
339
|
+
};
|
|
340
|
+
};
|
|
341
|
+
};
|
|
342
|
+
};
|
|
343
|
+
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
170
344
|
"/workspace/activity": {
|
|
171
345
|
$get: {
|
|
172
346
|
output: {
|
|
@@ -445,192 +619,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
445
619
|
};
|
|
446
620
|
};
|
|
447
621
|
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
448
|
-
"/
|
|
622
|
+
"/workspace/runs-index": {
|
|
449
623
|
$get: {
|
|
450
624
|
output: {
|
|
451
|
-
|
|
452
|
-
code?: "invalid_input" | undefined;
|
|
453
|
-
};
|
|
454
|
-
outputFormat: "json";
|
|
455
|
-
status: 400;
|
|
456
|
-
input: {
|
|
457
|
-
query: {
|
|
458
|
-
runner: string | string[];
|
|
459
|
-
profileId?: string | undefined;
|
|
460
|
-
};
|
|
461
|
-
};
|
|
462
|
-
} | {
|
|
463
|
-
output: {
|
|
464
|
-
runner: string;
|
|
465
|
-
models: {
|
|
466
|
-
id: string;
|
|
467
|
-
label: string;
|
|
468
|
-
description: string;
|
|
469
|
-
effortLevels?: import('../contract/index.js').EffortLevel[];
|
|
470
|
-
}[];
|
|
471
|
-
source: import("../core/runner-model-catalog.ts").ModelCatalogSource;
|
|
472
|
-
stale: boolean;
|
|
473
|
-
reason?: string;
|
|
474
|
-
};
|
|
475
|
-
outputFormat: "json";
|
|
476
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
477
|
-
input: {
|
|
478
|
-
query: {
|
|
479
|
-
runner: string | string[];
|
|
480
|
-
profileId?: string | undefined;
|
|
481
|
-
};
|
|
482
|
-
};
|
|
483
|
-
} | {
|
|
484
|
-
output: {
|
|
485
|
-
error: string;
|
|
486
|
-
};
|
|
487
|
-
outputFormat: "json";
|
|
488
|
-
status: 400;
|
|
489
|
-
input: {
|
|
490
|
-
query: {
|
|
491
|
-
runner: string | string[];
|
|
492
|
-
profileId?: string | undefined;
|
|
493
|
-
};
|
|
494
|
-
};
|
|
495
|
-
};
|
|
496
|
-
};
|
|
497
|
-
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
498
|
-
"/health": {
|
|
499
|
-
$get: {
|
|
500
|
-
output: {
|
|
501
|
-
version: string;
|
|
502
|
-
latestVersion?: string | undefined;
|
|
503
|
-
repoRoot: string | null;
|
|
504
|
-
repo: {
|
|
505
|
-
root: string;
|
|
506
|
-
branch: string;
|
|
507
|
-
remote?: string | undefined;
|
|
508
|
-
} | null;
|
|
509
|
-
checks: {
|
|
510
|
-
name: string;
|
|
511
|
-
available: boolean;
|
|
512
|
-
version?: string;
|
|
513
|
-
hint?: string;
|
|
514
|
-
}[];
|
|
515
|
-
defaultRunner: string;
|
|
516
|
-
forge: {
|
|
517
|
-
available?: boolean | undefined;
|
|
518
|
-
reason?: string;
|
|
519
|
-
kind: string;
|
|
520
|
-
} | null;
|
|
521
|
-
capabilities: {
|
|
522
|
-
[x: string]: boolean | undefined;
|
|
523
|
-
localHandoff: boolean;
|
|
524
|
-
settingsAdmin: boolean;
|
|
525
|
-
remoteSettingsAdmin: boolean;
|
|
526
|
-
automations?: boolean | undefined;
|
|
527
|
-
preview: boolean;
|
|
528
|
-
tokenMetrics: boolean;
|
|
529
|
-
tokenUsageMetrics: boolean;
|
|
530
|
-
costMetrics: boolean;
|
|
531
|
-
};
|
|
532
|
-
projects: {
|
|
533
|
-
id: string;
|
|
534
|
-
name: string;
|
|
535
|
-
}[];
|
|
536
|
-
bootProject: string | null;
|
|
537
|
-
plugins: {
|
|
538
|
-
loaded: {
|
|
539
|
-
name: string;
|
|
540
|
-
source: "bundled" | "host";
|
|
541
|
-
path?: string | undefined;
|
|
542
|
-
}[];
|
|
543
|
-
failed: {
|
|
544
|
-
name: string;
|
|
545
|
-
source: "bundled" | "host";
|
|
546
|
-
path?: string | undefined;
|
|
547
|
-
error: string;
|
|
548
|
-
}[];
|
|
549
|
-
};
|
|
550
|
-
};
|
|
551
|
-
outputFormat: "json";
|
|
552
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
553
|
-
input: {};
|
|
554
|
-
};
|
|
555
|
-
};
|
|
556
|
-
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
557
|
-
"/fs/browse": {
|
|
558
|
-
$get: {
|
|
559
|
-
output: {
|
|
560
|
-
error: string;
|
|
561
|
-
code?: "invalid_input" | undefined;
|
|
562
|
-
};
|
|
563
|
-
outputFormat: "json";
|
|
564
|
-
status: 400;
|
|
565
|
-
input: {
|
|
566
|
-
query: {
|
|
567
|
-
path?: string | undefined;
|
|
568
|
-
showHidden?: string | undefined;
|
|
569
|
-
};
|
|
570
|
-
};
|
|
571
|
-
} | {
|
|
572
|
-
output: {
|
|
573
|
-
error: string;
|
|
574
|
-
};
|
|
575
|
-
outputFormat: "json";
|
|
576
|
-
status: 400 | 403 | 404;
|
|
577
|
-
input: {
|
|
578
|
-
query: {
|
|
579
|
-
path?: string | undefined;
|
|
580
|
-
showHidden?: string | undefined;
|
|
581
|
-
};
|
|
582
|
-
};
|
|
583
|
-
} | {
|
|
584
|
-
output: {
|
|
585
|
-
path: string;
|
|
586
|
-
parent: string | null;
|
|
587
|
-
dirs: {
|
|
588
|
-
name: string;
|
|
589
|
-
path: string;
|
|
590
|
-
isRepo: boolean;
|
|
591
|
-
}[];
|
|
592
|
-
truncated: boolean;
|
|
593
|
-
};
|
|
594
|
-
outputFormat: "json";
|
|
595
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
596
|
-
input: {
|
|
597
|
-
query: {
|
|
598
|
-
path?: string | undefined;
|
|
599
|
-
showHidden?: string | undefined;
|
|
600
|
-
};
|
|
601
|
-
};
|
|
602
|
-
};
|
|
603
|
-
};
|
|
604
|
-
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
605
|
-
"/workspace/events": {
|
|
606
|
-
$get: {
|
|
607
|
-
output: {};
|
|
608
|
-
outputFormat: string;
|
|
609
|
-
status: import("hono/utils/http-status").StatusCode;
|
|
610
|
-
input: {
|
|
611
|
-
query: {
|
|
612
|
-
runs?: "summary" | undefined;
|
|
613
|
-
};
|
|
614
|
-
};
|
|
615
|
-
} | {
|
|
616
|
-
output: {
|
|
617
|
-
error: string;
|
|
618
|
-
code?: "invalid_input" | undefined;
|
|
619
|
-
};
|
|
620
|
-
outputFormat: "json";
|
|
621
|
-
status: 400;
|
|
622
|
-
input: {
|
|
623
|
-
query: {
|
|
624
|
-
runs?: "summary" | undefined;
|
|
625
|
-
};
|
|
626
|
-
};
|
|
627
|
-
};
|
|
628
|
-
};
|
|
629
|
-
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
630
|
-
"/workspace/runs-index": {
|
|
631
|
-
$get: {
|
|
632
|
-
output: {
|
|
633
|
-
runs: {
|
|
625
|
+
runs: {
|
|
634
626
|
id: string;
|
|
635
627
|
title: string;
|
|
636
628
|
titleSummary?: string | undefined;
|
|
@@ -942,43 +934,57 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
942
934
|
};
|
|
943
935
|
};
|
|
944
936
|
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
945
|
-
"/providers/
|
|
946
|
-
$
|
|
937
|
+
"/providers/sign-in/start": {
|
|
938
|
+
$post: {
|
|
947
939
|
output: {
|
|
948
940
|
error: string;
|
|
949
|
-
code?: "invalid_input" | undefined;
|
|
950
941
|
};
|
|
951
942
|
outputFormat: "json";
|
|
952
|
-
status:
|
|
943
|
+
status: 409;
|
|
953
944
|
input: {
|
|
954
|
-
|
|
955
|
-
|
|
945
|
+
json: {
|
|
946
|
+
provider: string;
|
|
947
|
+
profileId?: string | undefined;
|
|
956
948
|
};
|
|
957
949
|
};
|
|
958
950
|
} | {
|
|
959
951
|
output: {
|
|
960
|
-
|
|
961
|
-
|
|
952
|
+
error: string;
|
|
953
|
+
};
|
|
954
|
+
outputFormat: "json";
|
|
955
|
+
status: 400;
|
|
956
|
+
input: {
|
|
957
|
+
json: {
|
|
962
958
|
provider: string;
|
|
963
|
-
status: "connected" | "disconnected" | "not-installed" | "unknown";
|
|
964
|
-
enabled?: boolean | undefined;
|
|
965
|
-
hint?: string | undefined;
|
|
966
|
-
authFailureId?: string | undefined;
|
|
967
959
|
profileId?: string | undefined;
|
|
968
|
-
}
|
|
960
|
+
};
|
|
961
|
+
};
|
|
962
|
+
} | {
|
|
963
|
+
output: {
|
|
964
|
+
id: string;
|
|
965
|
+
state: "waiting";
|
|
966
|
+
url: string;
|
|
967
|
+
} | {
|
|
968
|
+
id: string;
|
|
969
|
+
state: "cancelled" | "connected";
|
|
970
|
+
} | {
|
|
971
|
+
id: string;
|
|
972
|
+
state: "failed";
|
|
973
|
+
error: string;
|
|
969
974
|
};
|
|
970
975
|
outputFormat: "json";
|
|
971
976
|
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
972
977
|
input: {
|
|
973
|
-
|
|
974
|
-
|
|
978
|
+
json: {
|
|
979
|
+
provider: string;
|
|
980
|
+
profileId?: string | undefined;
|
|
975
981
|
};
|
|
976
982
|
};
|
|
977
983
|
};
|
|
978
984
|
};
|
|
979
985
|
} & {
|
|
980
|
-
"/providers/:
|
|
981
|
-
$
|
|
986
|
+
"/providers/sign-in/:id": {
|
|
987
|
+
$get: {
|
|
982
988
|
output: {
|
|
983
989
|
error: string;
|
|
984
990
|
code?: "invalid_input" | undefined;
|
|
@@ -987,55 +993,44 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
987
993
|
status: 400;
|
|
988
994
|
input: {
|
|
989
995
|
param: {
|
|
990
|
-
|
|
991
|
-
};
|
|
992
|
-
} & {
|
|
993
|
-
json: {
|
|
994
|
-
enabled: boolean;
|
|
996
|
+
id: string;
|
|
995
997
|
};
|
|
996
998
|
};
|
|
997
999
|
} | {
|
|
998
1000
|
output: {
|
|
999
|
-
|
|
1000
|
-
requiresAccountHome?: boolean | undefined;
|
|
1001
|
-
provider: string;
|
|
1002
|
-
status: "connected" | "disconnected" | "not-installed" | "unknown";
|
|
1003
|
-
enabled?: boolean | undefined;
|
|
1004
|
-
hint?: string | undefined;
|
|
1005
|
-
authFailureId?: string | undefined;
|
|
1006
|
-
profileId?: string | undefined;
|
|
1007
|
-
}[];
|
|
1001
|
+
error: string;
|
|
1008
1002
|
};
|
|
1009
1003
|
outputFormat: "json";
|
|
1010
|
-
status:
|
|
1004
|
+
status: 404;
|
|
1011
1005
|
input: {
|
|
1012
1006
|
param: {
|
|
1013
|
-
|
|
1014
|
-
};
|
|
1015
|
-
} & {
|
|
1016
|
-
json: {
|
|
1017
|
-
enabled: boolean;
|
|
1007
|
+
id: string;
|
|
1018
1008
|
};
|
|
1019
1009
|
};
|
|
1020
1010
|
} | {
|
|
1021
1011
|
output: {
|
|
1012
|
+
id: string;
|
|
1013
|
+
state: "waiting";
|
|
1014
|
+
url: string;
|
|
1015
|
+
} | {
|
|
1016
|
+
id: string;
|
|
1017
|
+
state: "cancelled" | "connected";
|
|
1018
|
+
} | {
|
|
1019
|
+
id: string;
|
|
1020
|
+
state: "failed";
|
|
1022
1021
|
error: string;
|
|
1023
1022
|
};
|
|
1024
1023
|
outputFormat: "json";
|
|
1025
|
-
status:
|
|
1024
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
1026
1025
|
input: {
|
|
1027
1026
|
param: {
|
|
1028
|
-
|
|
1029
|
-
};
|
|
1030
|
-
} & {
|
|
1031
|
-
json: {
|
|
1032
|
-
enabled: boolean;
|
|
1027
|
+
id: string;
|
|
1033
1028
|
};
|
|
1034
1029
|
};
|
|
1035
1030
|
};
|
|
1036
1031
|
};
|
|
1037
1032
|
} & {
|
|
1038
|
-
"/providers/:
|
|
1033
|
+
"/providers/sign-in/:id/redirect": {
|
|
1039
1034
|
$post: {
|
|
1040
1035
|
output: {
|
|
1041
1036
|
error: string;
|
|
@@ -1045,34 +1040,26 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
1045
1040
|
status: 400;
|
|
1046
1041
|
input: {
|
|
1047
1042
|
param: {
|
|
1048
|
-
|
|
1043
|
+
id: string;
|
|
1049
1044
|
};
|
|
1050
1045
|
} & {
|
|
1051
1046
|
json: {
|
|
1052
|
-
|
|
1047
|
+
redirectUrl: string;
|
|
1053
1048
|
};
|
|
1054
1049
|
};
|
|
1055
1050
|
} | {
|
|
1056
1051
|
output: {
|
|
1057
|
-
|
|
1058
|
-
requiresAccountHome?: boolean | undefined;
|
|
1059
|
-
provider: string;
|
|
1060
|
-
status: "connected" | "disconnected" | "not-installed" | "unknown";
|
|
1061
|
-
enabled?: boolean | undefined;
|
|
1062
|
-
hint?: string | undefined;
|
|
1063
|
-
authFailureId?: string | undefined;
|
|
1064
|
-
profileId?: string | undefined;
|
|
1065
|
-
}[];
|
|
1052
|
+
error: string;
|
|
1066
1053
|
};
|
|
1067
1054
|
outputFormat: "json";
|
|
1068
|
-
status:
|
|
1055
|
+
status: 404;
|
|
1069
1056
|
input: {
|
|
1070
1057
|
param: {
|
|
1071
|
-
|
|
1058
|
+
id: string;
|
|
1072
1059
|
};
|
|
1073
1060
|
} & {
|
|
1074
1061
|
json: {
|
|
1075
|
-
|
|
1062
|
+
redirectUrl: string;
|
|
1076
1063
|
};
|
|
1077
1064
|
};
|
|
1078
1065
|
} | {
|
|
@@ -1083,34 +1070,256 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
1083
1070
|
status: 409;
|
|
1084
1071
|
input: {
|
|
1085
1072
|
param: {
|
|
1086
|
-
|
|
1073
|
+
id: string;
|
|
1087
1074
|
};
|
|
1088
1075
|
} & {
|
|
1089
1076
|
json: {
|
|
1090
|
-
|
|
1077
|
+
redirectUrl: string;
|
|
1091
1078
|
};
|
|
1092
1079
|
};
|
|
1093
|
-
}
|
|
1094
|
-
};
|
|
1095
|
-
} & {
|
|
1096
|
-
"/providers/connect": {
|
|
1097
|
-
$post: {
|
|
1080
|
+
} | {
|
|
1098
1081
|
output: {
|
|
1082
|
+
id: string;
|
|
1083
|
+
state: "waiting";
|
|
1084
|
+
url: string;
|
|
1085
|
+
} | {
|
|
1086
|
+
id: string;
|
|
1087
|
+
state: "cancelled" | "connected";
|
|
1088
|
+
} | {
|
|
1089
|
+
id: string;
|
|
1090
|
+
state: "failed";
|
|
1099
1091
|
error: string;
|
|
1100
1092
|
};
|
|
1101
1093
|
outputFormat: "json";
|
|
1102
|
-
status:
|
|
1094
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
1103
1095
|
input: {
|
|
1096
|
+
param: {
|
|
1097
|
+
id: string;
|
|
1098
|
+
};
|
|
1099
|
+
} & {
|
|
1104
1100
|
json: {
|
|
1105
|
-
|
|
1106
|
-
profileId?: string | undefined;
|
|
1101
|
+
redirectUrl: string;
|
|
1107
1102
|
};
|
|
1108
1103
|
};
|
|
1109
|
-
}
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1104
|
+
};
|
|
1105
|
+
};
|
|
1106
|
+
} & {
|
|
1107
|
+
"/providers/sign-in/:id": {
|
|
1108
|
+
$delete: {
|
|
1109
|
+
output: {
|
|
1110
|
+
error: string;
|
|
1111
|
+
code?: "invalid_input" | undefined;
|
|
1112
|
+
};
|
|
1113
|
+
outputFormat: "json";
|
|
1114
|
+
status: 400;
|
|
1115
|
+
input: {
|
|
1116
|
+
param: {
|
|
1117
|
+
id: string;
|
|
1118
|
+
};
|
|
1119
|
+
};
|
|
1120
|
+
} | {
|
|
1121
|
+
output: {
|
|
1122
|
+
error: string;
|
|
1123
|
+
};
|
|
1124
|
+
outputFormat: "json";
|
|
1125
|
+
status: 404;
|
|
1126
|
+
input: {
|
|
1127
|
+
param: {
|
|
1128
|
+
id: string;
|
|
1129
|
+
};
|
|
1130
|
+
};
|
|
1131
|
+
} | {
|
|
1132
|
+
output: {
|
|
1133
|
+
id: string;
|
|
1134
|
+
state: "waiting";
|
|
1135
|
+
url: string;
|
|
1136
|
+
} | {
|
|
1137
|
+
id: string;
|
|
1138
|
+
state: "cancelled" | "connected";
|
|
1139
|
+
} | {
|
|
1140
|
+
id: string;
|
|
1141
|
+
state: "failed";
|
|
1142
|
+
error: string;
|
|
1143
|
+
};
|
|
1144
|
+
outputFormat: "json";
|
|
1145
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
1146
|
+
input: {
|
|
1147
|
+
param: {
|
|
1148
|
+
id: string;
|
|
1149
|
+
};
|
|
1150
|
+
};
|
|
1151
|
+
};
|
|
1152
|
+
};
|
|
1153
|
+
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
1154
|
+
"/providers/status": {
|
|
1155
|
+
$get: {
|
|
1156
|
+
output: {
|
|
1157
|
+
error: string;
|
|
1158
|
+
code?: "invalid_input" | undefined;
|
|
1159
|
+
};
|
|
1160
|
+
outputFormat: "json";
|
|
1161
|
+
status: 400;
|
|
1162
|
+
input: {
|
|
1163
|
+
query: {
|
|
1164
|
+
refresh?: "1" | undefined;
|
|
1165
|
+
};
|
|
1166
|
+
};
|
|
1167
|
+
} | {
|
|
1168
|
+
output: {
|
|
1169
|
+
providers: {
|
|
1170
|
+
requiresAccountHome?: boolean | undefined;
|
|
1171
|
+
provider: string;
|
|
1172
|
+
status: "connected" | "disconnected" | "not-installed" | "unknown";
|
|
1173
|
+
enabled?: boolean | undefined;
|
|
1174
|
+
hint?: string | undefined;
|
|
1175
|
+
authFailureId?: string | undefined;
|
|
1176
|
+
profileId?: string | undefined;
|
|
1177
|
+
}[];
|
|
1178
|
+
};
|
|
1179
|
+
outputFormat: "json";
|
|
1180
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
1181
|
+
input: {
|
|
1182
|
+
query: {
|
|
1183
|
+
refresh?: "1" | undefined;
|
|
1184
|
+
};
|
|
1185
|
+
};
|
|
1186
|
+
};
|
|
1187
|
+
};
|
|
1188
|
+
} & {
|
|
1189
|
+
"/providers/:provider/enabled": {
|
|
1190
|
+
$put: {
|
|
1191
|
+
output: {
|
|
1192
|
+
error: string;
|
|
1193
|
+
code?: "invalid_input" | undefined;
|
|
1194
|
+
};
|
|
1195
|
+
outputFormat: "json";
|
|
1196
|
+
status: 400;
|
|
1197
|
+
input: {
|
|
1198
|
+
param: {
|
|
1199
|
+
provider: string;
|
|
1200
|
+
};
|
|
1201
|
+
} & {
|
|
1202
|
+
json: {
|
|
1203
|
+
enabled: boolean;
|
|
1204
|
+
};
|
|
1205
|
+
};
|
|
1206
|
+
} | {
|
|
1207
|
+
output: {
|
|
1208
|
+
providers: {
|
|
1209
|
+
requiresAccountHome?: boolean | undefined;
|
|
1210
|
+
provider: string;
|
|
1211
|
+
status: "connected" | "disconnected" | "not-installed" | "unknown";
|
|
1212
|
+
enabled?: boolean | undefined;
|
|
1213
|
+
hint?: string | undefined;
|
|
1214
|
+
authFailureId?: string | undefined;
|
|
1215
|
+
profileId?: string | undefined;
|
|
1216
|
+
}[];
|
|
1217
|
+
};
|
|
1218
|
+
outputFormat: "json";
|
|
1219
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
1220
|
+
input: {
|
|
1221
|
+
param: {
|
|
1222
|
+
provider: string;
|
|
1223
|
+
};
|
|
1224
|
+
} & {
|
|
1225
|
+
json: {
|
|
1226
|
+
enabled: boolean;
|
|
1227
|
+
};
|
|
1228
|
+
};
|
|
1229
|
+
} | {
|
|
1230
|
+
output: {
|
|
1231
|
+
error: string;
|
|
1232
|
+
};
|
|
1233
|
+
outputFormat: "json";
|
|
1234
|
+
status: 500;
|
|
1235
|
+
input: {
|
|
1236
|
+
param: {
|
|
1237
|
+
provider: string;
|
|
1238
|
+
};
|
|
1239
|
+
} & {
|
|
1240
|
+
json: {
|
|
1241
|
+
enabled: boolean;
|
|
1242
|
+
};
|
|
1243
|
+
};
|
|
1244
|
+
};
|
|
1245
|
+
};
|
|
1246
|
+
} & {
|
|
1247
|
+
"/providers/:provider/retry": {
|
|
1248
|
+
$post: {
|
|
1249
|
+
output: {
|
|
1250
|
+
error: string;
|
|
1251
|
+
code?: "invalid_input" | undefined;
|
|
1252
|
+
};
|
|
1253
|
+
outputFormat: "json";
|
|
1254
|
+
status: 400;
|
|
1255
|
+
input: {
|
|
1256
|
+
param: {
|
|
1257
|
+
provider: string;
|
|
1258
|
+
};
|
|
1259
|
+
} & {
|
|
1260
|
+
json: {
|
|
1261
|
+
authFailureId: string;
|
|
1262
|
+
};
|
|
1263
|
+
};
|
|
1264
|
+
} | {
|
|
1265
|
+
output: {
|
|
1266
|
+
providers: {
|
|
1267
|
+
requiresAccountHome?: boolean | undefined;
|
|
1268
|
+
provider: string;
|
|
1269
|
+
status: "connected" | "disconnected" | "not-installed" | "unknown";
|
|
1270
|
+
enabled?: boolean | undefined;
|
|
1271
|
+
hint?: string | undefined;
|
|
1272
|
+
authFailureId?: string | undefined;
|
|
1273
|
+
profileId?: string | undefined;
|
|
1274
|
+
}[];
|
|
1275
|
+
};
|
|
1276
|
+
outputFormat: "json";
|
|
1277
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
1278
|
+
input: {
|
|
1279
|
+
param: {
|
|
1280
|
+
provider: string;
|
|
1281
|
+
};
|
|
1282
|
+
} & {
|
|
1283
|
+
json: {
|
|
1284
|
+
authFailureId: string;
|
|
1285
|
+
};
|
|
1286
|
+
};
|
|
1287
|
+
} | {
|
|
1288
|
+
output: {
|
|
1289
|
+
error: string;
|
|
1290
|
+
};
|
|
1291
|
+
outputFormat: "json";
|
|
1292
|
+
status: 409;
|
|
1293
|
+
input: {
|
|
1294
|
+
param: {
|
|
1295
|
+
provider: string;
|
|
1296
|
+
};
|
|
1297
|
+
} & {
|
|
1298
|
+
json: {
|
|
1299
|
+
authFailureId: string;
|
|
1300
|
+
};
|
|
1301
|
+
};
|
|
1302
|
+
};
|
|
1303
|
+
};
|
|
1304
|
+
} & {
|
|
1305
|
+
"/providers/connect": {
|
|
1306
|
+
$post: {
|
|
1307
|
+
output: {
|
|
1308
|
+
error: string;
|
|
1309
|
+
};
|
|
1310
|
+
outputFormat: "json";
|
|
1311
|
+
status: 409;
|
|
1312
|
+
input: {
|
|
1313
|
+
json: {
|
|
1314
|
+
provider: string;
|
|
1315
|
+
profileId?: string | undefined;
|
|
1316
|
+
};
|
|
1317
|
+
};
|
|
1318
|
+
} | {
|
|
1319
|
+
output: {
|
|
1320
|
+
error: string;
|
|
1321
|
+
};
|
|
1322
|
+
outputFormat: "json";
|
|
1114
1323
|
status: 400;
|
|
1115
1324
|
input: {
|
|
1116
1325
|
json: {
|
|
@@ -1461,251 +1670,34 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
1461
1670
|
};
|
|
1462
1671
|
};
|
|
1463
1672
|
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
1464
|
-
"/
|
|
1465
|
-
$
|
|
1673
|
+
"/workspace/agent-profiles": {
|
|
1674
|
+
$get: {
|
|
1466
1675
|
output: {
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
status: 409;
|
|
1471
|
-
input: {
|
|
1472
|
-
json: {
|
|
1676
|
+
editable: boolean;
|
|
1677
|
+
profiles: {
|
|
1678
|
+
id: string;
|
|
1473
1679
|
provider: string;
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
id: string;
|
|
1496
|
-
state: "cancelled" | "connected";
|
|
1497
|
-
} | {
|
|
1498
|
-
id: string;
|
|
1499
|
-
state: "failed";
|
|
1500
|
-
error: string;
|
|
1501
|
-
};
|
|
1502
|
-
outputFormat: "json";
|
|
1503
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
1504
|
-
input: {
|
|
1505
|
-
json: {
|
|
1506
|
-
provider: string;
|
|
1507
|
-
profileId?: string | undefined;
|
|
1508
|
-
};
|
|
1509
|
-
};
|
|
1510
|
-
};
|
|
1511
|
-
};
|
|
1512
|
-
} & {
|
|
1513
|
-
"/providers/sign-in/:id": {
|
|
1514
|
-
$get: {
|
|
1515
|
-
output: {
|
|
1516
|
-
error: string;
|
|
1517
|
-
code?: "invalid_input" | undefined;
|
|
1518
|
-
};
|
|
1519
|
-
outputFormat: "json";
|
|
1520
|
-
status: 400;
|
|
1521
|
-
input: {
|
|
1522
|
-
param: {
|
|
1523
|
-
id: string;
|
|
1524
|
-
};
|
|
1525
|
-
};
|
|
1526
|
-
} | {
|
|
1527
|
-
output: {
|
|
1528
|
-
error: string;
|
|
1529
|
-
};
|
|
1530
|
-
outputFormat: "json";
|
|
1531
|
-
status: 404;
|
|
1532
|
-
input: {
|
|
1533
|
-
param: {
|
|
1534
|
-
id: string;
|
|
1535
|
-
};
|
|
1536
|
-
};
|
|
1537
|
-
} | {
|
|
1538
|
-
output: {
|
|
1539
|
-
id: string;
|
|
1540
|
-
state: "waiting";
|
|
1541
|
-
url: string;
|
|
1542
|
-
} | {
|
|
1543
|
-
id: string;
|
|
1544
|
-
state: "cancelled" | "connected";
|
|
1545
|
-
} | {
|
|
1546
|
-
id: string;
|
|
1547
|
-
state: "failed";
|
|
1548
|
-
error: string;
|
|
1549
|
-
};
|
|
1550
|
-
outputFormat: "json";
|
|
1551
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
1552
|
-
input: {
|
|
1553
|
-
param: {
|
|
1554
|
-
id: string;
|
|
1555
|
-
};
|
|
1556
|
-
};
|
|
1557
|
-
};
|
|
1558
|
-
};
|
|
1559
|
-
} & {
|
|
1560
|
-
"/providers/sign-in/:id/redirect": {
|
|
1561
|
-
$post: {
|
|
1562
|
-
output: {
|
|
1563
|
-
error: string;
|
|
1564
|
-
code?: "invalid_input" | undefined;
|
|
1565
|
-
};
|
|
1566
|
-
outputFormat: "json";
|
|
1567
|
-
status: 400;
|
|
1568
|
-
input: {
|
|
1569
|
-
param: {
|
|
1570
|
-
id: string;
|
|
1571
|
-
};
|
|
1572
|
-
} & {
|
|
1573
|
-
json: {
|
|
1574
|
-
redirectUrl: string;
|
|
1575
|
-
};
|
|
1576
|
-
};
|
|
1577
|
-
} | {
|
|
1578
|
-
output: {
|
|
1579
|
-
error: string;
|
|
1580
|
-
};
|
|
1581
|
-
outputFormat: "json";
|
|
1582
|
-
status: 404;
|
|
1583
|
-
input: {
|
|
1584
|
-
param: {
|
|
1585
|
-
id: string;
|
|
1586
|
-
};
|
|
1587
|
-
} & {
|
|
1588
|
-
json: {
|
|
1589
|
-
redirectUrl: string;
|
|
1590
|
-
};
|
|
1591
|
-
};
|
|
1592
|
-
} | {
|
|
1593
|
-
output: {
|
|
1594
|
-
error: string;
|
|
1595
|
-
};
|
|
1596
|
-
outputFormat: "json";
|
|
1597
|
-
status: 409;
|
|
1598
|
-
input: {
|
|
1599
|
-
param: {
|
|
1600
|
-
id: string;
|
|
1601
|
-
};
|
|
1602
|
-
} & {
|
|
1603
|
-
json: {
|
|
1604
|
-
redirectUrl: string;
|
|
1605
|
-
};
|
|
1606
|
-
};
|
|
1607
|
-
} | {
|
|
1608
|
-
output: {
|
|
1609
|
-
id: string;
|
|
1610
|
-
state: "waiting";
|
|
1611
|
-
url: string;
|
|
1612
|
-
} | {
|
|
1613
|
-
id: string;
|
|
1614
|
-
state: "cancelled" | "connected";
|
|
1615
|
-
} | {
|
|
1616
|
-
id: string;
|
|
1617
|
-
state: "failed";
|
|
1618
|
-
error: string;
|
|
1619
|
-
};
|
|
1620
|
-
outputFormat: "json";
|
|
1621
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
1622
|
-
input: {
|
|
1623
|
-
param: {
|
|
1624
|
-
id: string;
|
|
1625
|
-
};
|
|
1626
|
-
} & {
|
|
1627
|
-
json: {
|
|
1628
|
-
redirectUrl: string;
|
|
1629
|
-
};
|
|
1630
|
-
};
|
|
1631
|
-
};
|
|
1632
|
-
};
|
|
1633
|
-
} & {
|
|
1634
|
-
"/providers/sign-in/:id": {
|
|
1635
|
-
$delete: {
|
|
1636
|
-
output: {
|
|
1637
|
-
error: string;
|
|
1638
|
-
code?: "invalid_input" | undefined;
|
|
1639
|
-
};
|
|
1640
|
-
outputFormat: "json";
|
|
1641
|
-
status: 400;
|
|
1642
|
-
input: {
|
|
1643
|
-
param: {
|
|
1644
|
-
id: string;
|
|
1645
|
-
};
|
|
1646
|
-
};
|
|
1647
|
-
} | {
|
|
1648
|
-
output: {
|
|
1649
|
-
error: string;
|
|
1650
|
-
};
|
|
1651
|
-
outputFormat: "json";
|
|
1652
|
-
status: 404;
|
|
1653
|
-
input: {
|
|
1654
|
-
param: {
|
|
1655
|
-
id: string;
|
|
1656
|
-
};
|
|
1657
|
-
};
|
|
1658
|
-
} | {
|
|
1659
|
-
output: {
|
|
1660
|
-
id: string;
|
|
1661
|
-
state: "waiting";
|
|
1662
|
-
url: string;
|
|
1663
|
-
} | {
|
|
1664
|
-
id: string;
|
|
1665
|
-
state: "cancelled" | "connected";
|
|
1666
|
-
} | {
|
|
1667
|
-
id: string;
|
|
1668
|
-
state: "failed";
|
|
1669
|
-
error: string;
|
|
1670
|
-
};
|
|
1671
|
-
outputFormat: "json";
|
|
1672
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
1673
|
-
input: {
|
|
1674
|
-
param: {
|
|
1675
|
-
id: string;
|
|
1676
|
-
};
|
|
1677
|
-
};
|
|
1678
|
-
};
|
|
1679
|
-
};
|
|
1680
|
-
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
1681
|
-
"/workspace/agent-profiles": {
|
|
1682
|
-
$get: {
|
|
1683
|
-
output: {
|
|
1684
|
-
editable: boolean;
|
|
1685
|
-
profiles: {
|
|
1686
|
-
id: string;
|
|
1687
|
-
provider: string;
|
|
1688
|
-
label: string;
|
|
1689
|
-
configDir?: string | undefined;
|
|
1690
|
-
path?: string | undefined;
|
|
1691
|
-
exists: boolean;
|
|
1692
|
-
looksValid: boolean;
|
|
1693
|
-
isDefault: boolean;
|
|
1694
|
-
status?: {
|
|
1695
|
-
requiresAccountHome?: boolean | undefined;
|
|
1696
|
-
provider: string;
|
|
1697
|
-
status: "connected" | "disconnected" | "not-installed" | "unknown";
|
|
1698
|
-
enabled?: boolean | undefined;
|
|
1699
|
-
hint?: string | undefined;
|
|
1700
|
-
authFailureId?: string | undefined;
|
|
1701
|
-
profileId?: string | undefined;
|
|
1702
|
-
} | undefined;
|
|
1703
|
-
}[];
|
|
1704
|
-
profileCapableProviders: string[];
|
|
1705
|
-
selections: {
|
|
1706
|
-
[x: string]: {
|
|
1707
|
-
[x: string]: string | undefined;
|
|
1708
|
-
};
|
|
1680
|
+
label: string;
|
|
1681
|
+
configDir?: string | undefined;
|
|
1682
|
+
path?: string | undefined;
|
|
1683
|
+
exists: boolean;
|
|
1684
|
+
looksValid: boolean;
|
|
1685
|
+
isDefault: boolean;
|
|
1686
|
+
status?: {
|
|
1687
|
+
requiresAccountHome?: boolean | undefined;
|
|
1688
|
+
provider: string;
|
|
1689
|
+
status: "connected" | "disconnected" | "not-installed" | "unknown";
|
|
1690
|
+
enabled?: boolean | undefined;
|
|
1691
|
+
hint?: string | undefined;
|
|
1692
|
+
authFailureId?: string | undefined;
|
|
1693
|
+
profileId?: string | undefined;
|
|
1694
|
+
} | undefined;
|
|
1695
|
+
}[];
|
|
1696
|
+
profileCapableProviders: string[];
|
|
1697
|
+
selections: {
|
|
1698
|
+
[x: string]: {
|
|
1699
|
+
[x: string]: string | undefined;
|
|
1700
|
+
};
|
|
1709
1701
|
};
|
|
1710
1702
|
projectSelections: {
|
|
1711
1703
|
[x: string]: {
|
|
@@ -2365,324 +2357,11 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
2365
2357
|
url: string;
|
|
2366
2358
|
token?: string | undefined;
|
|
2367
2359
|
triggers?: ("cancelled" | "done" | "failed" | "needs-you" | "running" | "waiting-ci" | "waiting-other" | "waiting-timer" | "waiting-workers")[] | undefined;
|
|
2368
|
-
} | null | undefined;
|
|
2369
|
-
};
|
|
2370
|
-
} & {
|
|
2371
|
-
param: {
|
|
2372
|
-
projectId: string;
|
|
2373
|
-
};
|
|
2374
|
-
};
|
|
2375
|
-
} | {
|
|
2376
|
-
output: {
|
|
2377
|
-
project: {
|
|
2378
|
-
id: string;
|
|
2379
|
-
name: string;
|
|
2380
|
-
root: string;
|
|
2381
|
-
addedAt: string;
|
|
2382
|
-
lastOpenedAt: string;
|
|
2383
|
-
source: "checkout" | "local";
|
|
2384
|
-
status: "missing" | "not-git" | "ok";
|
|
2385
|
-
branch?: string | undefined;
|
|
2386
|
-
forge?: string | undefined;
|
|
2387
|
-
repoUrl?: string | undefined;
|
|
2388
|
-
maxParallel?: number | undefined;
|
|
2389
|
-
tags?: string[] | undefined;
|
|
2390
|
-
webhook?: {
|
|
2391
|
-
url: string;
|
|
2392
|
-
tokenSet: boolean;
|
|
2393
|
-
triggers?: ("cancelled" | "done" | "failed" | "needs-you" | "running" | "waiting-ci" | "waiting-other" | "waiting-timer" | "waiting-workers")[] | undefined;
|
|
2394
|
-
} | undefined;
|
|
2395
|
-
webhooks?: {
|
|
2396
|
-
id: string;
|
|
2397
|
-
name: string;
|
|
2398
|
-
description?: string | undefined;
|
|
2399
|
-
url: string;
|
|
2400
|
-
tokenSet: boolean;
|
|
2401
|
-
tasks: boolean;
|
|
2402
|
-
triggers?: ("cancelled" | "done" | "failed" | "needs-you" | "running" | "waiting-ci" | "waiting-other" | "waiting-timer" | "waiting-workers")[] | undefined;
|
|
2403
|
-
agent: boolean;
|
|
2404
|
-
}[] | undefined;
|
|
2405
|
-
};
|
|
2406
|
-
};
|
|
2407
|
-
outputFormat: "json";
|
|
2408
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
2409
|
-
input: {
|
|
2410
|
-
json: {
|
|
2411
|
-
maxParallel?: number | null | undefined;
|
|
2412
|
-
tags?: string[] | null | undefined;
|
|
2413
|
-
webhook?: {
|
|
2414
|
-
url: string;
|
|
2415
|
-
token?: string | undefined;
|
|
2416
|
-
triggers?: ("cancelled" | "done" | "failed" | "needs-you" | "running" | "waiting-ci" | "waiting-other" | "waiting-timer" | "waiting-workers")[] | undefined;
|
|
2417
|
-
} | null | undefined;
|
|
2418
|
-
};
|
|
2419
|
-
} & {
|
|
2420
|
-
param: {
|
|
2421
|
-
projectId: string;
|
|
2422
|
-
};
|
|
2423
|
-
};
|
|
2424
|
-
};
|
|
2425
|
-
};
|
|
2426
|
-
} & {
|
|
2427
|
-
"/projects/:projectId/webhook/test": {
|
|
2428
|
-
$post: {
|
|
2429
|
-
output: {
|
|
2430
|
-
error: string;
|
|
2431
|
-
code: "no-boot-project";
|
|
2432
|
-
};
|
|
2433
|
-
outputFormat: "json";
|
|
2434
|
-
status: 409;
|
|
2435
|
-
input: {
|
|
2436
|
-
param: {
|
|
2437
|
-
projectId: string;
|
|
2438
|
-
};
|
|
2439
|
-
};
|
|
2440
|
-
} | {
|
|
2441
|
-
output: {
|
|
2442
|
-
error: string;
|
|
2443
|
-
};
|
|
2444
|
-
outputFormat: "json";
|
|
2445
|
-
status: 404;
|
|
2446
|
-
input: {
|
|
2447
|
-
param: {
|
|
2448
|
-
projectId: string;
|
|
2449
|
-
};
|
|
2450
|
-
};
|
|
2451
|
-
} | {
|
|
2452
|
-
output: {
|
|
2453
|
-
error: string;
|
|
2454
|
-
};
|
|
2455
|
-
outputFormat: "json";
|
|
2456
|
-
status: 400;
|
|
2457
|
-
input: {
|
|
2458
|
-
param: {
|
|
2459
|
-
projectId: string;
|
|
2460
|
-
};
|
|
2461
|
-
};
|
|
2462
|
-
} | {
|
|
2463
|
-
output: {
|
|
2464
|
-
ok: boolean;
|
|
2465
|
-
status?: number | undefined;
|
|
2466
|
-
error?: string | undefined;
|
|
2467
|
-
dryRun?: boolean | undefined;
|
|
2468
|
-
};
|
|
2469
|
-
outputFormat: "json";
|
|
2470
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
2471
|
-
input: {
|
|
2472
|
-
param: {
|
|
2473
|
-
projectId: string;
|
|
2474
|
-
};
|
|
2475
|
-
};
|
|
2476
|
-
};
|
|
2477
|
-
};
|
|
2478
|
-
} & {
|
|
2479
|
-
"/projects/:projectId/webhooks": {
|
|
2480
|
-
$post: {
|
|
2481
|
-
output: {
|
|
2482
|
-
error: string;
|
|
2483
|
-
code?: "no-boot-project" | undefined;
|
|
2484
|
-
};
|
|
2485
|
-
outputFormat: "json";
|
|
2486
|
-
status: 400 | 404 | 409 | 500;
|
|
2487
|
-
input: {
|
|
2488
|
-
json: {
|
|
2489
|
-
name: string;
|
|
2490
|
-
description?: string | undefined;
|
|
2491
|
-
url: string;
|
|
2492
|
-
token?: string | undefined;
|
|
2493
|
-
tasks?: boolean | undefined;
|
|
2494
|
-
triggers?: ("cancelled" | "done" | "failed" | "needs-you" | "running" | "waiting-ci" | "waiting-other" | "waiting-timer" | "waiting-workers")[] | undefined;
|
|
2495
|
-
agent?: boolean | undefined;
|
|
2496
|
-
};
|
|
2497
|
-
} & {
|
|
2498
|
-
param: {
|
|
2499
|
-
projectId: string;
|
|
2500
|
-
};
|
|
2501
|
-
};
|
|
2502
|
-
} | {
|
|
2503
|
-
output: {
|
|
2504
|
-
project: {
|
|
2505
|
-
id: string;
|
|
2506
|
-
name: string;
|
|
2507
|
-
root: string;
|
|
2508
|
-
addedAt: string;
|
|
2509
|
-
lastOpenedAt: string;
|
|
2510
|
-
source: "checkout" | "local";
|
|
2511
|
-
status: "missing" | "not-git" | "ok";
|
|
2512
|
-
branch?: string | undefined;
|
|
2513
|
-
forge?: string | undefined;
|
|
2514
|
-
repoUrl?: string | undefined;
|
|
2515
|
-
maxParallel?: number | undefined;
|
|
2516
|
-
tags?: string[] | undefined;
|
|
2517
|
-
webhook?: {
|
|
2518
|
-
url: string;
|
|
2519
|
-
tokenSet: boolean;
|
|
2520
|
-
triggers?: ("cancelled" | "done" | "failed" | "needs-you" | "running" | "waiting-ci" | "waiting-other" | "waiting-timer" | "waiting-workers")[] | undefined;
|
|
2521
|
-
} | undefined;
|
|
2522
|
-
webhooks?: {
|
|
2523
|
-
id: string;
|
|
2524
|
-
name: string;
|
|
2525
|
-
description?: string | undefined;
|
|
2526
|
-
url: string;
|
|
2527
|
-
tokenSet: boolean;
|
|
2528
|
-
tasks: boolean;
|
|
2529
|
-
triggers?: ("cancelled" | "done" | "failed" | "needs-you" | "running" | "waiting-ci" | "waiting-other" | "waiting-timer" | "waiting-workers")[] | undefined;
|
|
2530
|
-
agent: boolean;
|
|
2531
|
-
}[] | undefined;
|
|
2532
|
-
};
|
|
2533
|
-
webhook: {
|
|
2534
|
-
id: string;
|
|
2535
|
-
name: string;
|
|
2536
|
-
description?: string | undefined;
|
|
2537
|
-
url: string;
|
|
2538
|
-
tokenSet: boolean;
|
|
2539
|
-
tasks: boolean;
|
|
2540
|
-
triggers?: ("cancelled" | "done" | "failed" | "needs-you" | "running" | "waiting-ci" | "waiting-other" | "waiting-timer" | "waiting-workers")[] | undefined;
|
|
2541
|
-
agent: boolean;
|
|
2542
|
-
};
|
|
2543
|
-
};
|
|
2544
|
-
outputFormat: "json";
|
|
2545
|
-
status: 201;
|
|
2546
|
-
input: {
|
|
2547
|
-
json: {
|
|
2548
|
-
name: string;
|
|
2549
|
-
description?: string | undefined;
|
|
2550
|
-
url: string;
|
|
2551
|
-
token?: string | undefined;
|
|
2552
|
-
tasks?: boolean | undefined;
|
|
2553
|
-
triggers?: ("cancelled" | "done" | "failed" | "needs-you" | "running" | "waiting-ci" | "waiting-other" | "waiting-timer" | "waiting-workers")[] | undefined;
|
|
2554
|
-
agent?: boolean | undefined;
|
|
2555
|
-
};
|
|
2556
|
-
} & {
|
|
2557
|
-
param: {
|
|
2558
|
-
projectId: string;
|
|
2559
|
-
};
|
|
2560
|
-
};
|
|
2561
|
-
};
|
|
2562
|
-
};
|
|
2563
|
-
} & {
|
|
2564
|
-
"/projects/:projectId/webhooks/:webhookId": {
|
|
2565
|
-
$patch: {
|
|
2566
|
-
output: {
|
|
2567
|
-
error: string;
|
|
2568
|
-
code?: "invalid_input" | undefined;
|
|
2569
|
-
};
|
|
2570
|
-
outputFormat: "json";
|
|
2571
|
-
status: 400;
|
|
2572
|
-
input: {
|
|
2573
|
-
param: {
|
|
2574
|
-
projectId: string;
|
|
2575
|
-
webhookId: string;
|
|
2576
|
-
};
|
|
2577
|
-
} & {
|
|
2578
|
-
json: {
|
|
2579
|
-
name?: string | undefined;
|
|
2580
|
-
description?: string | undefined;
|
|
2581
|
-
url?: string | undefined;
|
|
2582
|
-
token?: string | undefined;
|
|
2583
|
-
tasks?: boolean | undefined;
|
|
2584
|
-
triggers?: ("cancelled" | "done" | "failed" | "needs-you" | "running" | "waiting-ci" | "waiting-other" | "waiting-timer" | "waiting-workers")[] | undefined;
|
|
2585
|
-
agent?: boolean | undefined;
|
|
2586
|
-
};
|
|
2587
|
-
};
|
|
2588
|
-
} | {
|
|
2589
|
-
output: {
|
|
2590
|
-
project: {
|
|
2591
|
-
id: string;
|
|
2592
|
-
name: string;
|
|
2593
|
-
root: string;
|
|
2594
|
-
addedAt: string;
|
|
2595
|
-
lastOpenedAt: string;
|
|
2596
|
-
source: "checkout" | "local";
|
|
2597
|
-
status: "missing" | "not-git" | "ok";
|
|
2598
|
-
branch?: string | undefined;
|
|
2599
|
-
forge?: string | undefined;
|
|
2600
|
-
repoUrl?: string | undefined;
|
|
2601
|
-
maxParallel?: number | undefined;
|
|
2602
|
-
tags?: string[] | undefined;
|
|
2603
|
-
webhook?: {
|
|
2604
|
-
url: string;
|
|
2605
|
-
tokenSet: boolean;
|
|
2606
|
-
triggers?: ("cancelled" | "done" | "failed" | "needs-you" | "running" | "waiting-ci" | "waiting-other" | "waiting-timer" | "waiting-workers")[] | undefined;
|
|
2607
|
-
} | undefined;
|
|
2608
|
-
webhooks?: {
|
|
2609
|
-
id: string;
|
|
2610
|
-
name: string;
|
|
2611
|
-
description?: string | undefined;
|
|
2612
|
-
url: string;
|
|
2613
|
-
tokenSet: boolean;
|
|
2614
|
-
tasks: boolean;
|
|
2615
|
-
triggers?: ("cancelled" | "done" | "failed" | "needs-you" | "running" | "waiting-ci" | "waiting-other" | "waiting-timer" | "waiting-workers")[] | undefined;
|
|
2616
|
-
agent: boolean;
|
|
2617
|
-
}[] | undefined;
|
|
2618
|
-
};
|
|
2619
|
-
webhook: {
|
|
2620
|
-
id: string;
|
|
2621
|
-
name: string;
|
|
2622
|
-
description?: string | undefined;
|
|
2623
|
-
url: string;
|
|
2624
|
-
tokenSet: boolean;
|
|
2625
|
-
tasks: boolean;
|
|
2626
|
-
triggers?: ("cancelled" | "done" | "failed" | "needs-you" | "running" | "waiting-ci" | "waiting-other" | "waiting-timer" | "waiting-workers")[] | undefined;
|
|
2627
|
-
agent: boolean;
|
|
2628
|
-
};
|
|
2629
|
-
};
|
|
2630
|
-
outputFormat: "json";
|
|
2631
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
2632
|
-
input: {
|
|
2633
|
-
param: {
|
|
2634
|
-
projectId: string;
|
|
2635
|
-
webhookId: string;
|
|
2636
|
-
};
|
|
2637
|
-
} & {
|
|
2638
|
-
json: {
|
|
2639
|
-
name?: string | undefined;
|
|
2640
|
-
description?: string | undefined;
|
|
2641
|
-
url?: string | undefined;
|
|
2642
|
-
token?: string | undefined;
|
|
2643
|
-
tasks?: boolean | undefined;
|
|
2644
|
-
triggers?: ("cancelled" | "done" | "failed" | "needs-you" | "running" | "waiting-ci" | "waiting-other" | "waiting-timer" | "waiting-workers")[] | undefined;
|
|
2645
|
-
agent?: boolean | undefined;
|
|
2646
|
-
};
|
|
2647
|
-
};
|
|
2648
|
-
} | {
|
|
2649
|
-
output: {
|
|
2650
|
-
error: string;
|
|
2651
|
-
code?: "no-boot-project" | undefined;
|
|
2652
|
-
};
|
|
2653
|
-
outputFormat: "json";
|
|
2654
|
-
status: 400 | 404 | 409 | 500;
|
|
2655
|
-
input: {
|
|
2656
|
-
param: {
|
|
2657
|
-
projectId: string;
|
|
2658
|
-
webhookId: string;
|
|
2659
|
-
};
|
|
2660
|
-
} & {
|
|
2661
|
-
json: {
|
|
2662
|
-
name?: string | undefined;
|
|
2663
|
-
description?: string | undefined;
|
|
2664
|
-
url?: string | undefined;
|
|
2665
|
-
token?: string | undefined;
|
|
2666
|
-
tasks?: boolean | undefined;
|
|
2667
|
-
triggers?: ("cancelled" | "done" | "failed" | "needs-you" | "running" | "waiting-ci" | "waiting-other" | "waiting-timer" | "waiting-workers")[] | undefined;
|
|
2668
|
-
agent?: boolean | undefined;
|
|
2669
|
-
};
|
|
2670
|
-
};
|
|
2671
|
-
};
|
|
2672
|
-
};
|
|
2673
|
-
} & {
|
|
2674
|
-
"/projects/:projectId/webhooks/:webhookId": {
|
|
2675
|
-
$delete: {
|
|
2676
|
-
output: {
|
|
2677
|
-
error: string;
|
|
2678
|
-
code?: "invalid_input" | undefined;
|
|
2679
|
-
};
|
|
2680
|
-
outputFormat: "json";
|
|
2681
|
-
status: 400;
|
|
2682
|
-
input: {
|
|
2360
|
+
} | null | undefined;
|
|
2361
|
+
};
|
|
2362
|
+
} & {
|
|
2683
2363
|
param: {
|
|
2684
2364
|
projectId: string;
|
|
2685
|
-
webhookId: string;
|
|
2686
2365
|
};
|
|
2687
2366
|
};
|
|
2688
2367
|
} | {
|
|
@@ -2720,79 +2399,18 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
2720
2399
|
outputFormat: "json";
|
|
2721
2400
|
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
2722
2401
|
input: {
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
code?: "no-boot-project" | undefined;
|
|
2732
|
-
};
|
|
2733
|
-
outputFormat: "json";
|
|
2734
|
-
status: 400 | 404 | 409 | 500;
|
|
2735
|
-
input: {
|
|
2736
|
-
param: {
|
|
2737
|
-
projectId: string;
|
|
2738
|
-
webhookId: string;
|
|
2739
|
-
};
|
|
2740
|
-
};
|
|
2741
|
-
};
|
|
2742
|
-
};
|
|
2743
|
-
} & {
|
|
2744
|
-
"/projects/:projectId/webhooks/:webhookId/test": {
|
|
2745
|
-
$post: {
|
|
2746
|
-
output: {
|
|
2747
|
-
error: string;
|
|
2748
|
-
code?: "invalid_input" | undefined;
|
|
2749
|
-
};
|
|
2750
|
-
outputFormat: "json";
|
|
2751
|
-
status: 400;
|
|
2752
|
-
input: {
|
|
2753
|
-
param: {
|
|
2754
|
-
projectId: string;
|
|
2755
|
-
webhookId: string;
|
|
2756
|
-
};
|
|
2757
|
-
};
|
|
2758
|
-
} | {
|
|
2759
|
-
output: {
|
|
2760
|
-
ok: boolean;
|
|
2761
|
-
status?: number | undefined;
|
|
2762
|
-
error?: string | undefined;
|
|
2763
|
-
dryRun?: boolean | undefined;
|
|
2764
|
-
};
|
|
2765
|
-
outputFormat: "json";
|
|
2766
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
2767
|
-
input: {
|
|
2768
|
-
param: {
|
|
2769
|
-
projectId: string;
|
|
2770
|
-
webhookId: string;
|
|
2771
|
-
};
|
|
2772
|
-
};
|
|
2773
|
-
} | {
|
|
2774
|
-
output: {
|
|
2775
|
-
error: string;
|
|
2776
|
-
code: "no-boot-project";
|
|
2777
|
-
};
|
|
2778
|
-
outputFormat: "json";
|
|
2779
|
-
status: 409;
|
|
2780
|
-
input: {
|
|
2781
|
-
param: {
|
|
2782
|
-
projectId: string;
|
|
2783
|
-
webhookId: string;
|
|
2402
|
+
json: {
|
|
2403
|
+
maxParallel?: number | null | undefined;
|
|
2404
|
+
tags?: string[] | null | undefined;
|
|
2405
|
+
webhook?: {
|
|
2406
|
+
url: string;
|
|
2407
|
+
token?: string | undefined;
|
|
2408
|
+
triggers?: ("cancelled" | "done" | "failed" | "needs-you" | "running" | "waiting-ci" | "waiting-other" | "waiting-timer" | "waiting-workers")[] | undefined;
|
|
2409
|
+
} | null | undefined;
|
|
2784
2410
|
};
|
|
2785
|
-
}
|
|
2786
|
-
} | {
|
|
2787
|
-
output: {
|
|
2788
|
-
error: string;
|
|
2789
|
-
};
|
|
2790
|
-
outputFormat: "json";
|
|
2791
|
-
status: 404;
|
|
2792
|
-
input: {
|
|
2411
|
+
} & {
|
|
2793
2412
|
param: {
|
|
2794
2413
|
projectId: string;
|
|
2795
|
-
webhookId: string;
|
|
2796
2414
|
};
|
|
2797
2415
|
};
|
|
2798
2416
|
};
|
|
@@ -3149,12 +2767,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
3149
2767
|
output: {
|
|
3150
2768
|
generation: string;
|
|
3151
2769
|
results: ({
|
|
3152
|
-
projectId: string;
|
|
3153
|
-
runId: string;
|
|
3154
|
-
type: "error" | "reset";
|
|
3155
|
-
status: 400 | 404 | 409 | 413 | 503;
|
|
3156
|
-
error: string;
|
|
3157
|
-
} | {
|
|
3158
2770
|
projectId: string;
|
|
3159
2771
|
runId: string;
|
|
3160
2772
|
type: "batch";
|
|
@@ -3175,6 +2787,12 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
3175
2787
|
cursor: string;
|
|
3176
2788
|
afterSeq: number;
|
|
3177
2789
|
hasMore: boolean;
|
|
2790
|
+
} | {
|
|
2791
|
+
projectId: string;
|
|
2792
|
+
runId: string;
|
|
2793
|
+
type: "error" | "reset";
|
|
2794
|
+
status: 400 | 404 | 409 | 413 | 503;
|
|
2795
|
+
error: string;
|
|
3178
2796
|
})[];
|
|
3179
2797
|
};
|
|
3180
2798
|
outputFormat: "json";
|
|
@@ -3787,89 +3405,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
3787
3405
|
};
|
|
3788
3406
|
};
|
|
3789
3407
|
};
|
|
3790
|
-
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
3791
|
-
"/agent-webhooks": {
|
|
3792
|
-
$get: {
|
|
3793
|
-
output: {
|
|
3794
|
-
webhooks: {
|
|
3795
|
-
id: string;
|
|
3796
|
-
name: string;
|
|
3797
|
-
description?: string | undefined;
|
|
3798
|
-
}[];
|
|
3799
|
-
};
|
|
3800
|
-
outputFormat: "json";
|
|
3801
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
3802
|
-
input: {};
|
|
3803
|
-
};
|
|
3804
|
-
};
|
|
3805
|
-
} & {
|
|
3806
|
-
"/agent-webhooks/:webhook": {
|
|
3807
|
-
$post: {
|
|
3808
|
-
output: {
|
|
3809
|
-
error: string;
|
|
3810
|
-
code?: "invalid_input" | undefined;
|
|
3811
|
-
};
|
|
3812
|
-
outputFormat: "json";
|
|
3813
|
-
status: 400;
|
|
3814
|
-
input: {
|
|
3815
|
-
param: {
|
|
3816
|
-
webhook: string;
|
|
3817
|
-
};
|
|
3818
|
-
} & {
|
|
3819
|
-
json: {
|
|
3820
|
-
runId?: string | undefined;
|
|
3821
|
-
title?: string | undefined;
|
|
3822
|
-
message: string;
|
|
3823
|
-
data?: Record<string, unknown> | undefined;
|
|
3824
|
-
};
|
|
3825
|
-
};
|
|
3826
|
-
} | {
|
|
3827
|
-
output: {
|
|
3828
|
-
error: string;
|
|
3829
|
-
};
|
|
3830
|
-
outputFormat: "json";
|
|
3831
|
-
status: 404;
|
|
3832
|
-
input: {
|
|
3833
|
-
param: {
|
|
3834
|
-
webhook: string;
|
|
3835
|
-
};
|
|
3836
|
-
} & {
|
|
3837
|
-
json: {
|
|
3838
|
-
runId?: string | undefined;
|
|
3839
|
-
title?: string | undefined;
|
|
3840
|
-
message: string;
|
|
3841
|
-
data?: Record<string, unknown> | undefined;
|
|
3842
|
-
};
|
|
3843
|
-
};
|
|
3844
|
-
} | {
|
|
3845
|
-
output: {
|
|
3846
|
-
ok: boolean;
|
|
3847
|
-
webhook: {
|
|
3848
|
-
id: string;
|
|
3849
|
-
name: string;
|
|
3850
|
-
};
|
|
3851
|
-
deliveryId: string;
|
|
3852
|
-
attempts: number;
|
|
3853
|
-
status?: number | undefined;
|
|
3854
|
-
error?: string | undefined;
|
|
3855
|
-
dryRun?: boolean | undefined;
|
|
3856
|
-
};
|
|
3857
|
-
outputFormat: "json";
|
|
3858
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
3859
|
-
input: {
|
|
3860
|
-
param: {
|
|
3861
|
-
webhook: string;
|
|
3862
|
-
};
|
|
3863
|
-
} & {
|
|
3864
|
-
json: {
|
|
3865
|
-
runId?: string | undefined;
|
|
3866
|
-
title?: string | undefined;
|
|
3867
|
-
message: string;
|
|
3868
|
-
data?: Record<string, unknown> | undefined;
|
|
3869
|
-
};
|
|
3870
|
-
};
|
|
3871
|
-
};
|
|
3872
|
-
};
|
|
3873
3408
|
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
3874
3409
|
"/runs/:id/events": {
|
|
3875
3410
|
$get: {
|
|
@@ -10081,23 +9616,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
10081
9616
|
error: string;
|
|
10082
9617
|
};
|
|
10083
9618
|
outputFormat: "json";
|
|
10084
|
-
status: 404;
|
|
10085
|
-
input: {
|
|
10086
|
-
param: {
|
|
10087
|
-
id: string;
|
|
10088
|
-
};
|
|
10089
|
-
} & {
|
|
10090
|
-
json: {
|
|
10091
|
-
notify: boolean;
|
|
10092
|
-
message?: string | undefined;
|
|
10093
|
-
};
|
|
10094
|
-
};
|
|
10095
|
-
} | {
|
|
10096
|
-
output: {
|
|
10097
|
-
error: string;
|
|
10098
|
-
};
|
|
10099
|
-
outputFormat: "json";
|
|
10100
|
-
status: 400;
|
|
9619
|
+
status: 400 | 404 | 409;
|
|
10101
9620
|
input: {
|
|
10102
9621
|
param: {
|
|
10103
9622
|
id: string;
|
|
@@ -19328,89 +18847,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
19328
18847
|
};
|
|
19329
18848
|
};
|
|
19330
18849
|
};
|
|
19331
|
-
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
19332
|
-
"/agent-webhooks": {
|
|
19333
|
-
$get: {
|
|
19334
|
-
output: {
|
|
19335
|
-
webhooks: {
|
|
19336
|
-
id: string;
|
|
19337
|
-
name: string;
|
|
19338
|
-
description?: string | undefined;
|
|
19339
|
-
}[];
|
|
19340
|
-
};
|
|
19341
|
-
outputFormat: "json";
|
|
19342
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
19343
|
-
input: {};
|
|
19344
|
-
};
|
|
19345
|
-
};
|
|
19346
|
-
} & {
|
|
19347
|
-
"/agent-webhooks/:webhook": {
|
|
19348
|
-
$post: {
|
|
19349
|
-
output: {
|
|
19350
|
-
error: string;
|
|
19351
|
-
code?: "invalid_input" | undefined;
|
|
19352
|
-
};
|
|
19353
|
-
outputFormat: "json";
|
|
19354
|
-
status: 400;
|
|
19355
|
-
input: {
|
|
19356
|
-
param: {
|
|
19357
|
-
webhook: string;
|
|
19358
|
-
};
|
|
19359
|
-
} & {
|
|
19360
|
-
json: {
|
|
19361
|
-
runId?: string | undefined;
|
|
19362
|
-
title?: string | undefined;
|
|
19363
|
-
message: string;
|
|
19364
|
-
data?: Record<string, unknown> | undefined;
|
|
19365
|
-
};
|
|
19366
|
-
};
|
|
19367
|
-
} | {
|
|
19368
|
-
output: {
|
|
19369
|
-
error: string;
|
|
19370
|
-
};
|
|
19371
|
-
outputFormat: "json";
|
|
19372
|
-
status: 404;
|
|
19373
|
-
input: {
|
|
19374
|
-
param: {
|
|
19375
|
-
webhook: string;
|
|
19376
|
-
};
|
|
19377
|
-
} & {
|
|
19378
|
-
json: {
|
|
19379
|
-
runId?: string | undefined;
|
|
19380
|
-
title?: string | undefined;
|
|
19381
|
-
message: string;
|
|
19382
|
-
data?: Record<string, unknown> | undefined;
|
|
19383
|
-
};
|
|
19384
|
-
};
|
|
19385
|
-
} | {
|
|
19386
|
-
output: {
|
|
19387
|
-
ok: boolean;
|
|
19388
|
-
webhook: {
|
|
19389
|
-
id: string;
|
|
19390
|
-
name: string;
|
|
19391
|
-
};
|
|
19392
|
-
deliveryId: string;
|
|
19393
|
-
attempts: number;
|
|
19394
|
-
status?: number | undefined;
|
|
19395
|
-
error?: string | undefined;
|
|
19396
|
-
dryRun?: boolean | undefined;
|
|
19397
|
-
};
|
|
19398
|
-
outputFormat: "json";
|
|
19399
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
19400
|
-
input: {
|
|
19401
|
-
param: {
|
|
19402
|
-
webhook: string;
|
|
19403
|
-
};
|
|
19404
|
-
} & {
|
|
19405
|
-
json: {
|
|
19406
|
-
runId?: string | undefined;
|
|
19407
|
-
title?: string | undefined;
|
|
19408
|
-
message: string;
|
|
19409
|
-
data?: Record<string, unknown> | undefined;
|
|
19410
|
-
};
|
|
19411
|
-
};
|
|
19412
|
-
};
|
|
19413
|
-
};
|
|
19414
18850
|
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
19415
18851
|
"/runs/:id/events": {
|
|
19416
18852
|
$get: {
|
|
@@ -25622,23 +25058,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
25622
25058
|
error: string;
|
|
25623
25059
|
};
|
|
25624
25060
|
outputFormat: "json";
|
|
25625
|
-
status: 404;
|
|
25626
|
-
input: {
|
|
25627
|
-
param: {
|
|
25628
|
-
id: string;
|
|
25629
|
-
};
|
|
25630
|
-
} & {
|
|
25631
|
-
json: {
|
|
25632
|
-
notify: boolean;
|
|
25633
|
-
message?: string | undefined;
|
|
25634
|
-
};
|
|
25635
|
-
};
|
|
25636
|
-
} | {
|
|
25637
|
-
output: {
|
|
25638
|
-
error: string;
|
|
25639
|
-
};
|
|
25640
|
-
outputFormat: "json";
|
|
25641
|
-
status: 400;
|
|
25061
|
+
status: 400 | 404 | 409;
|
|
25642
25062
|
input: {
|
|
25643
25063
|
param: {
|
|
25644
25064
|
id: string;
|