@hearsay-tools/squawk 0.19.0-pr4650.9243 → 0.19.0-pr4650.9244
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/features/hosts/routes.d.ts +64 -64
- package/dist/features/webhooks/routes.d.ts +38 -38
- package/dist/server/models-routes.d.ts +12 -12
- package/dist/server/providers-routes.d.ts +58 -58
- package/dist/server/runners-routes.d.ts +10 -10
- package/dist/server/runs-routes.d.ts +16 -16
- package/dist/server/runs-routes.js +1 -1
- package/dist/server/runs-routes.js.map +1 -1
- package/dist/server/workspace-live-routes.d.ts +5 -5
- package/dist/server/workspace-routes.d.ts +85 -85
- package/package.json +4 -4
|
@@ -141,18 +141,6 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
|
|
|
141
141
|
} & {
|
|
142
142
|
"/hosts/runs-index": {
|
|
143
143
|
$get: {
|
|
144
|
-
output: {
|
|
145
|
-
error: string;
|
|
146
|
-
code?: "invalid_input" | undefined;
|
|
147
|
-
};
|
|
148
|
-
outputFormat: "json";
|
|
149
|
-
status: 400;
|
|
150
|
-
input: {
|
|
151
|
-
query: {
|
|
152
|
-
hostId?: string | undefined;
|
|
153
|
-
};
|
|
154
|
-
};
|
|
155
|
-
} | {
|
|
156
144
|
output: {
|
|
157
145
|
runs: {
|
|
158
146
|
id: string;
|
|
@@ -316,11 +304,7 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
|
|
|
316
304
|
hostId?: string | undefined;
|
|
317
305
|
};
|
|
318
306
|
};
|
|
319
|
-
}
|
|
320
|
-
};
|
|
321
|
-
} & {
|
|
322
|
-
"/hosts/runs-search": {
|
|
323
|
-
$get: {
|
|
307
|
+
} | {
|
|
324
308
|
output: {
|
|
325
309
|
error: string;
|
|
326
310
|
code?: "invalid_input" | undefined;
|
|
@@ -329,11 +313,14 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
|
|
|
329
313
|
status: 400;
|
|
330
314
|
input: {
|
|
331
315
|
query: {
|
|
332
|
-
|
|
333
|
-
limit?: number | undefined;
|
|
316
|
+
hostId?: string | undefined;
|
|
334
317
|
};
|
|
335
318
|
};
|
|
336
|
-
}
|
|
319
|
+
};
|
|
320
|
+
};
|
|
321
|
+
} & {
|
|
322
|
+
"/hosts/runs-search": {
|
|
323
|
+
$get: {
|
|
337
324
|
output: {
|
|
338
325
|
runs: {
|
|
339
326
|
id: string;
|
|
@@ -487,16 +474,39 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
|
|
|
487
474
|
limit?: number | undefined;
|
|
488
475
|
};
|
|
489
476
|
};
|
|
477
|
+
} | {
|
|
478
|
+
output: {
|
|
479
|
+
error: string;
|
|
480
|
+
code?: "invalid_input" | undefined;
|
|
481
|
+
};
|
|
482
|
+
outputFormat: "json";
|
|
483
|
+
status: 400;
|
|
484
|
+
input: {
|
|
485
|
+
query: {
|
|
486
|
+
q: string | string[];
|
|
487
|
+
limit?: number | undefined;
|
|
488
|
+
};
|
|
489
|
+
};
|
|
490
490
|
};
|
|
491
491
|
};
|
|
492
492
|
} & {
|
|
493
493
|
"/hosts": {
|
|
494
494
|
$post: {
|
|
495
495
|
output: {
|
|
496
|
-
|
|
496
|
+
host: {
|
|
497
|
+
id: string;
|
|
498
|
+
label: string;
|
|
499
|
+
state: "cannot-persist" | "connected" | "connecting" | "identity-changed" | "needs-node" | "not-hosted" | "paused" | "several-servers" | "unreachable" | "version-mismatch";
|
|
500
|
+
reason?: string | undefined;
|
|
501
|
+
kind?: "ssh" | undefined;
|
|
502
|
+
sshAlias?: string | undefined;
|
|
503
|
+
installId?: string | undefined;
|
|
504
|
+
port?: number | undefined;
|
|
505
|
+
addedAt?: string | undefined;
|
|
506
|
+
};
|
|
497
507
|
};
|
|
498
508
|
outputFormat: "json";
|
|
499
|
-
status:
|
|
509
|
+
status: 201;
|
|
500
510
|
input: {
|
|
501
511
|
json: {
|
|
502
512
|
sshAlias: string;
|
|
@@ -524,7 +534,7 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
|
|
|
524
534
|
error: string;
|
|
525
535
|
};
|
|
526
536
|
outputFormat: "json";
|
|
527
|
-
status:
|
|
537
|
+
status: 404;
|
|
528
538
|
input: {
|
|
529
539
|
json: {
|
|
530
540
|
sshAlias: string;
|
|
@@ -538,7 +548,7 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
|
|
|
538
548
|
error: string;
|
|
539
549
|
};
|
|
540
550
|
outputFormat: "json";
|
|
541
|
-
status:
|
|
551
|
+
status: 409;
|
|
542
552
|
input: {
|
|
543
553
|
json: {
|
|
544
554
|
sshAlias: string;
|
|
@@ -549,20 +559,10 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
|
|
|
549
559
|
};
|
|
550
560
|
} | {
|
|
551
561
|
output: {
|
|
552
|
-
|
|
553
|
-
id: string;
|
|
554
|
-
label: string;
|
|
555
|
-
state: "cannot-persist" | "connected" | "connecting" | "identity-changed" | "needs-node" | "not-hosted" | "paused" | "several-servers" | "unreachable" | "version-mismatch";
|
|
556
|
-
reason?: string | undefined;
|
|
557
|
-
kind?: "ssh" | undefined;
|
|
558
|
-
sshAlias?: string | undefined;
|
|
559
|
-
installId?: string | undefined;
|
|
560
|
-
port?: number | undefined;
|
|
561
|
-
addedAt?: string | undefined;
|
|
562
|
-
};
|
|
562
|
+
error: string;
|
|
563
563
|
};
|
|
564
564
|
outputFormat: "json";
|
|
565
|
-
status:
|
|
565
|
+
status: 409;
|
|
566
566
|
input: {
|
|
567
567
|
json: {
|
|
568
568
|
sshAlias: string;
|
|
@@ -576,7 +576,7 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
|
|
|
576
576
|
error: string;
|
|
577
577
|
};
|
|
578
578
|
outputFormat: "json";
|
|
579
|
-
status:
|
|
579
|
+
status: 500;
|
|
580
580
|
input: {
|
|
581
581
|
json: {
|
|
582
582
|
sshAlias: string;
|
|
@@ -591,11 +591,20 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
|
|
|
591
591
|
"/hosts/:id": {
|
|
592
592
|
$patch: {
|
|
593
593
|
output: {
|
|
594
|
-
|
|
595
|
-
|
|
594
|
+
host: {
|
|
595
|
+
id: string;
|
|
596
|
+
label: string;
|
|
597
|
+
state: "cannot-persist" | "connected" | "connecting" | "identity-changed" | "needs-node" | "not-hosted" | "paused" | "several-servers" | "unreachable" | "version-mismatch";
|
|
598
|
+
reason?: string | undefined;
|
|
599
|
+
kind?: "ssh" | undefined;
|
|
600
|
+
sshAlias?: string | undefined;
|
|
601
|
+
installId?: string | undefined;
|
|
602
|
+
port?: number | undefined;
|
|
603
|
+
addedAt?: string | undefined;
|
|
604
|
+
};
|
|
596
605
|
};
|
|
597
606
|
outputFormat: "json";
|
|
598
|
-
status:
|
|
607
|
+
status: 200;
|
|
599
608
|
input: {
|
|
600
609
|
param: {
|
|
601
610
|
id: string;
|
|
@@ -610,9 +619,10 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
|
|
|
610
619
|
} | {
|
|
611
620
|
output: {
|
|
612
621
|
error: string;
|
|
622
|
+
code?: "invalid_input" | undefined;
|
|
613
623
|
};
|
|
614
624
|
outputFormat: "json";
|
|
615
|
-
status:
|
|
625
|
+
status: 400;
|
|
616
626
|
input: {
|
|
617
627
|
param: {
|
|
618
628
|
id: string;
|
|
@@ -646,7 +656,7 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
|
|
|
646
656
|
error: string;
|
|
647
657
|
};
|
|
648
658
|
outputFormat: "json";
|
|
649
|
-
status:
|
|
659
|
+
status: 404;
|
|
650
660
|
input: {
|
|
651
661
|
param: {
|
|
652
662
|
id: string;
|
|
@@ -663,7 +673,7 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
|
|
|
663
673
|
error: string;
|
|
664
674
|
};
|
|
665
675
|
outputFormat: "json";
|
|
666
|
-
status:
|
|
676
|
+
status: 409;
|
|
667
677
|
input: {
|
|
668
678
|
param: {
|
|
669
679
|
id: string;
|
|
@@ -694,20 +704,10 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
|
|
|
694
704
|
};
|
|
695
705
|
} | {
|
|
696
706
|
output: {
|
|
697
|
-
|
|
698
|
-
id: string;
|
|
699
|
-
label: string;
|
|
700
|
-
state: "cannot-persist" | "connected" | "connecting" | "identity-changed" | "needs-node" | "not-hosted" | "paused" | "several-servers" | "unreachable" | "version-mismatch";
|
|
701
|
-
reason?: string | undefined;
|
|
702
|
-
kind?: "ssh" | undefined;
|
|
703
|
-
sshAlias?: string | undefined;
|
|
704
|
-
installId?: string | undefined;
|
|
705
|
-
port?: number | undefined;
|
|
706
|
-
addedAt?: string | undefined;
|
|
707
|
-
};
|
|
707
|
+
error: string;
|
|
708
708
|
};
|
|
709
709
|
outputFormat: "json";
|
|
710
|
-
status:
|
|
710
|
+
status: 500;
|
|
711
711
|
input: {
|
|
712
712
|
param: {
|
|
713
713
|
id: string;
|
|
@@ -725,11 +725,11 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
|
|
|
725
725
|
"/hosts/:id": {
|
|
726
726
|
$delete: {
|
|
727
727
|
output: {
|
|
728
|
-
|
|
729
|
-
|
|
728
|
+
removed: true;
|
|
729
|
+
id: string;
|
|
730
730
|
};
|
|
731
731
|
outputFormat: "json";
|
|
732
|
-
status:
|
|
732
|
+
status: 200;
|
|
733
733
|
input: {
|
|
734
734
|
param: {
|
|
735
735
|
id: string;
|
|
@@ -738,9 +738,10 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
|
|
|
738
738
|
} | {
|
|
739
739
|
output: {
|
|
740
740
|
error: string;
|
|
741
|
+
code?: "invalid_input" | undefined;
|
|
741
742
|
};
|
|
742
743
|
outputFormat: "json";
|
|
743
|
-
status:
|
|
744
|
+
status: 400;
|
|
744
745
|
input: {
|
|
745
746
|
param: {
|
|
746
747
|
id: string;
|
|
@@ -762,7 +763,7 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
|
|
|
762
763
|
error: string;
|
|
763
764
|
};
|
|
764
765
|
outputFormat: "json";
|
|
765
|
-
status:
|
|
766
|
+
status: 404;
|
|
766
767
|
input: {
|
|
767
768
|
param: {
|
|
768
769
|
id: string;
|
|
@@ -773,7 +774,7 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
|
|
|
773
774
|
error: string;
|
|
774
775
|
};
|
|
775
776
|
outputFormat: "json";
|
|
776
|
-
status:
|
|
777
|
+
status: 409;
|
|
777
778
|
input: {
|
|
778
779
|
param: {
|
|
779
780
|
id: string;
|
|
@@ -792,11 +793,10 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
|
|
|
792
793
|
};
|
|
793
794
|
} | {
|
|
794
795
|
output: {
|
|
795
|
-
|
|
796
|
-
id: string;
|
|
796
|
+
error: string;
|
|
797
797
|
};
|
|
798
798
|
outputFormat: "json";
|
|
799
|
-
status:
|
|
799
|
+
status: 500;
|
|
800
800
|
input: {
|
|
801
801
|
param: {
|
|
802
802
|
id: string;
|
|
@@ -100,18 +100,6 @@ export interface ProjectWebhooksRouteDeps {
|
|
|
100
100
|
export declare function createProjectWebhooksRoutes(deps: ProjectWebhooksRouteDeps): import("hono/hono-base").HonoBase<ProjectApiEnv, {
|
|
101
101
|
"/projects/:projectId/webhook/test": {
|
|
102
102
|
$post: {
|
|
103
|
-
output: {
|
|
104
|
-
error: string;
|
|
105
|
-
code?: "no-boot-project" | undefined;
|
|
106
|
-
};
|
|
107
|
-
outputFormat: "json";
|
|
108
|
-
status: 404 | 409;
|
|
109
|
-
input: {
|
|
110
|
-
param: {
|
|
111
|
-
projectId: string;
|
|
112
|
-
};
|
|
113
|
-
};
|
|
114
|
-
} | {
|
|
115
103
|
output: {
|
|
116
104
|
error: string;
|
|
117
105
|
};
|
|
@@ -136,33 +124,23 @@ export declare function createProjectWebhooksRoutes(deps: ProjectWebhooksRouteDe
|
|
|
136
124
|
projectId: string;
|
|
137
125
|
};
|
|
138
126
|
};
|
|
139
|
-
}
|
|
140
|
-
};
|
|
141
|
-
} & {
|
|
142
|
-
"/projects/:projectId/webhooks": {
|
|
143
|
-
$post: {
|
|
127
|
+
} | {
|
|
144
128
|
output: {
|
|
145
129
|
error: string;
|
|
146
130
|
code?: "no-boot-project" | undefined;
|
|
147
131
|
};
|
|
148
132
|
outputFormat: "json";
|
|
149
|
-
status:
|
|
133
|
+
status: 404 | 409;
|
|
150
134
|
input: {
|
|
151
|
-
json: {
|
|
152
|
-
name: string;
|
|
153
|
-
description?: string | undefined;
|
|
154
|
-
url: string;
|
|
155
|
-
token?: string | undefined;
|
|
156
|
-
tasks?: boolean | undefined;
|
|
157
|
-
triggers?: ("cancelled" | "done" | "failed" | "needs-you" | "running" | "waiting-ci" | "waiting-other" | "waiting-timer" | "waiting-workers")[] | undefined;
|
|
158
|
-
agent?: boolean | undefined;
|
|
159
|
-
};
|
|
160
|
-
} & {
|
|
161
135
|
param: {
|
|
162
136
|
projectId: string;
|
|
163
137
|
};
|
|
164
138
|
};
|
|
165
|
-
}
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
} & {
|
|
142
|
+
"/projects/:projectId/webhooks": {
|
|
143
|
+
$post: {
|
|
166
144
|
output: {
|
|
167
145
|
project: {
|
|
168
146
|
id: string;
|
|
@@ -222,6 +200,28 @@ export declare function createProjectWebhooksRoutes(deps: ProjectWebhooksRouteDe
|
|
|
222
200
|
projectId: string;
|
|
223
201
|
};
|
|
224
202
|
};
|
|
203
|
+
} | {
|
|
204
|
+
output: {
|
|
205
|
+
error: string;
|
|
206
|
+
code?: "no-boot-project" | undefined;
|
|
207
|
+
};
|
|
208
|
+
outputFormat: "json";
|
|
209
|
+
status: 400 | 404 | 409 | 500;
|
|
210
|
+
input: {
|
|
211
|
+
json: {
|
|
212
|
+
name: string;
|
|
213
|
+
description?: string | undefined;
|
|
214
|
+
url: string;
|
|
215
|
+
token?: string | undefined;
|
|
216
|
+
tasks?: boolean | undefined;
|
|
217
|
+
triggers?: ("cancelled" | "done" | "failed" | "needs-you" | "running" | "waiting-ci" | "waiting-other" | "waiting-timer" | "waiting-workers")[] | undefined;
|
|
218
|
+
agent?: boolean | undefined;
|
|
219
|
+
};
|
|
220
|
+
} & {
|
|
221
|
+
param: {
|
|
222
|
+
projectId: string;
|
|
223
|
+
};
|
|
224
|
+
};
|
|
225
225
|
};
|
|
226
226
|
};
|
|
227
227
|
} & {
|
|
@@ -423,13 +423,10 @@ export declare function createProjectWebhooksRoutes(deps: ProjectWebhooksRouteDe
|
|
|
423
423
|
};
|
|
424
424
|
} | {
|
|
425
425
|
output: {
|
|
426
|
-
|
|
427
|
-
status?: number | undefined;
|
|
428
|
-
error?: string | undefined;
|
|
429
|
-
dryRun?: boolean | undefined;
|
|
426
|
+
error: string;
|
|
430
427
|
};
|
|
431
428
|
outputFormat: "json";
|
|
432
|
-
status:
|
|
429
|
+
status: 404;
|
|
433
430
|
input: {
|
|
434
431
|
param: {
|
|
435
432
|
projectId: string;
|
|
@@ -438,11 +435,13 @@ export declare function createProjectWebhooksRoutes(deps: ProjectWebhooksRouteDe
|
|
|
438
435
|
};
|
|
439
436
|
} | {
|
|
440
437
|
output: {
|
|
441
|
-
|
|
442
|
-
|
|
438
|
+
ok: boolean;
|
|
439
|
+
status?: number | undefined;
|
|
440
|
+
error?: string | undefined;
|
|
441
|
+
dryRun?: boolean | undefined;
|
|
443
442
|
};
|
|
444
443
|
outputFormat: "json";
|
|
445
|
-
status:
|
|
444
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
446
445
|
input: {
|
|
447
446
|
param: {
|
|
448
447
|
projectId: string;
|
|
@@ -452,9 +451,10 @@ export declare function createProjectWebhooksRoutes(deps: ProjectWebhooksRouteDe
|
|
|
452
451
|
} | {
|
|
453
452
|
output: {
|
|
454
453
|
error: string;
|
|
454
|
+
code?: "no-boot-project" | undefined;
|
|
455
455
|
};
|
|
456
456
|
outputFormat: "json";
|
|
457
|
-
status: 404;
|
|
457
|
+
status: 404 | 409;
|
|
458
458
|
input: {
|
|
459
459
|
param: {
|
|
460
460
|
projectId: string;
|
|
@@ -22,6 +22,18 @@ export declare function createModelsRoutes(options: {
|
|
|
22
22
|
profileId?: string | undefined;
|
|
23
23
|
};
|
|
24
24
|
};
|
|
25
|
+
} | {
|
|
26
|
+
output: {
|
|
27
|
+
error: string;
|
|
28
|
+
};
|
|
29
|
+
outputFormat: "json";
|
|
30
|
+
status: 400;
|
|
31
|
+
input: {
|
|
32
|
+
query: {
|
|
33
|
+
runner: string | string[];
|
|
34
|
+
profileId?: string | undefined;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
25
37
|
} | {
|
|
26
38
|
output: {
|
|
27
39
|
runner: string;
|
|
@@ -43,18 +55,6 @@ export declare function createModelsRoutes(options: {
|
|
|
43
55
|
profileId?: string | undefined;
|
|
44
56
|
};
|
|
45
57
|
};
|
|
46
|
-
} | {
|
|
47
|
-
output: {
|
|
48
|
-
error: string;
|
|
49
|
-
};
|
|
50
|
-
outputFormat: "json";
|
|
51
|
-
status: 400;
|
|
52
|
-
input: {
|
|
53
|
-
query: {
|
|
54
|
-
runner: string | string[];
|
|
55
|
-
profileId?: string | undefined;
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
58
|
};
|
|
59
59
|
};
|
|
60
60
|
}, "/", "/models">;
|
|
@@ -70,18 +70,10 @@ export declare function createProvidersRoutes(deps: ProvidersRouteDeps): import(
|
|
|
70
70
|
};
|
|
71
71
|
} | {
|
|
72
72
|
output: {
|
|
73
|
-
|
|
74
|
-
requiresAccountHome?: boolean | undefined;
|
|
75
|
-
provider: string;
|
|
76
|
-
status: "connected" | "disconnected" | "not-installed" | "unknown";
|
|
77
|
-
enabled?: boolean | undefined;
|
|
78
|
-
hint?: string | undefined;
|
|
79
|
-
authFailureId?: string | undefined;
|
|
80
|
-
profileId?: string | undefined;
|
|
81
|
-
}[];
|
|
73
|
+
error: string;
|
|
82
74
|
};
|
|
83
75
|
outputFormat: "json";
|
|
84
|
-
status:
|
|
76
|
+
status: 500;
|
|
85
77
|
input: {
|
|
86
78
|
param: {
|
|
87
79
|
provider: string;
|
|
@@ -93,10 +85,18 @@ export declare function createProvidersRoutes(deps: ProvidersRouteDeps): import(
|
|
|
93
85
|
};
|
|
94
86
|
} | {
|
|
95
87
|
output: {
|
|
96
|
-
|
|
88
|
+
providers: {
|
|
89
|
+
requiresAccountHome?: boolean | undefined;
|
|
90
|
+
provider: string;
|
|
91
|
+
status: "connected" | "disconnected" | "not-installed" | "unknown";
|
|
92
|
+
enabled?: boolean | undefined;
|
|
93
|
+
hint?: string | undefined;
|
|
94
|
+
authFailureId?: string | undefined;
|
|
95
|
+
profileId?: string | undefined;
|
|
96
|
+
}[];
|
|
97
97
|
};
|
|
98
98
|
outputFormat: "json";
|
|
99
|
-
status:
|
|
99
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
100
100
|
input: {
|
|
101
101
|
param: {
|
|
102
102
|
provider: string;
|
|
@@ -128,18 +128,10 @@ export declare function createProvidersRoutes(deps: ProvidersRouteDeps): import(
|
|
|
128
128
|
};
|
|
129
129
|
} | {
|
|
130
130
|
output: {
|
|
131
|
-
|
|
132
|
-
requiresAccountHome?: boolean | undefined;
|
|
133
|
-
provider: string;
|
|
134
|
-
status: "connected" | "disconnected" | "not-installed" | "unknown";
|
|
135
|
-
enabled?: boolean | undefined;
|
|
136
|
-
hint?: string | undefined;
|
|
137
|
-
authFailureId?: string | undefined;
|
|
138
|
-
profileId?: string | undefined;
|
|
139
|
-
}[];
|
|
131
|
+
error: string;
|
|
140
132
|
};
|
|
141
133
|
outputFormat: "json";
|
|
142
|
-
status:
|
|
134
|
+
status: 409;
|
|
143
135
|
input: {
|
|
144
136
|
param: {
|
|
145
137
|
provider: string;
|
|
@@ -151,10 +143,18 @@ export declare function createProvidersRoutes(deps: ProvidersRouteDeps): import(
|
|
|
151
143
|
};
|
|
152
144
|
} | {
|
|
153
145
|
output: {
|
|
154
|
-
|
|
146
|
+
providers: {
|
|
147
|
+
requiresAccountHome?: boolean | undefined;
|
|
148
|
+
provider: string;
|
|
149
|
+
status: "connected" | "disconnected" | "not-installed" | "unknown";
|
|
150
|
+
enabled?: boolean | undefined;
|
|
151
|
+
hint?: string | undefined;
|
|
152
|
+
authFailureId?: string | undefined;
|
|
153
|
+
profileId?: string | undefined;
|
|
154
|
+
}[];
|
|
155
155
|
};
|
|
156
156
|
outputFormat: "json";
|
|
157
|
-
status:
|
|
157
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
158
158
|
input: {
|
|
159
159
|
param: {
|
|
160
160
|
provider: string;
|
|
@@ -173,7 +173,7 @@ export declare function createProvidersRoutes(deps: ProvidersRouteDeps): import(
|
|
|
173
173
|
error: string;
|
|
174
174
|
};
|
|
175
175
|
outputFormat: "json";
|
|
176
|
-
status:
|
|
176
|
+
status: 400;
|
|
177
177
|
input: {
|
|
178
178
|
json: {
|
|
179
179
|
provider: string;
|
|
@@ -185,7 +185,7 @@ export declare function createProvidersRoutes(deps: ProvidersRouteDeps): import(
|
|
|
185
185
|
error: string;
|
|
186
186
|
};
|
|
187
187
|
outputFormat: "json";
|
|
188
|
-
status:
|
|
188
|
+
status: 409;
|
|
189
189
|
input: {
|
|
190
190
|
json: {
|
|
191
191
|
provider: string;
|
|
@@ -290,10 +290,28 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
|
|
|
290
290
|
"/workspace/agent-profiles": {
|
|
291
291
|
$post: {
|
|
292
292
|
output: {
|
|
293
|
-
|
|
293
|
+
profile: {
|
|
294
|
+
id: string;
|
|
295
|
+
provider: string;
|
|
296
|
+
label: string;
|
|
297
|
+
configDir?: string | undefined;
|
|
298
|
+
path?: string | undefined;
|
|
299
|
+
exists: boolean;
|
|
300
|
+
looksValid: boolean;
|
|
301
|
+
isDefault: boolean;
|
|
302
|
+
status?: {
|
|
303
|
+
requiresAccountHome?: boolean | undefined;
|
|
304
|
+
provider: string;
|
|
305
|
+
status: "connected" | "disconnected" | "not-installed" | "unknown";
|
|
306
|
+
enabled?: boolean | undefined;
|
|
307
|
+
hint?: string | undefined;
|
|
308
|
+
authFailureId?: string | undefined;
|
|
309
|
+
profileId?: string | undefined;
|
|
310
|
+
} | undefined;
|
|
311
|
+
};
|
|
294
312
|
};
|
|
295
313
|
outputFormat: "json";
|
|
296
|
-
status:
|
|
314
|
+
status: 201;
|
|
297
315
|
input: {
|
|
298
316
|
json: {
|
|
299
317
|
provider: string;
|
|
@@ -319,7 +337,7 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
|
|
|
319
337
|
error: string;
|
|
320
338
|
};
|
|
321
339
|
outputFormat: "json";
|
|
322
|
-
status:
|
|
340
|
+
status: 409;
|
|
323
341
|
input: {
|
|
324
342
|
json: {
|
|
325
343
|
provider: string;
|
|
@@ -329,28 +347,10 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
|
|
|
329
347
|
};
|
|
330
348
|
} | {
|
|
331
349
|
output: {
|
|
332
|
-
|
|
333
|
-
id: string;
|
|
334
|
-
provider: string;
|
|
335
|
-
label: string;
|
|
336
|
-
configDir?: string | undefined;
|
|
337
|
-
path?: string | undefined;
|
|
338
|
-
exists: boolean;
|
|
339
|
-
looksValid: boolean;
|
|
340
|
-
isDefault: boolean;
|
|
341
|
-
status?: {
|
|
342
|
-
requiresAccountHome?: boolean | undefined;
|
|
343
|
-
provider: string;
|
|
344
|
-
status: "connected" | "disconnected" | "not-installed" | "unknown";
|
|
345
|
-
enabled?: boolean | undefined;
|
|
346
|
-
hint?: string | undefined;
|
|
347
|
-
authFailureId?: string | undefined;
|
|
348
|
-
profileId?: string | undefined;
|
|
349
|
-
} | undefined;
|
|
350
|
-
};
|
|
350
|
+
error: string;
|
|
351
351
|
};
|
|
352
352
|
outputFormat: "json";
|
|
353
|
-
status:
|
|
353
|
+
status: 500;
|
|
354
354
|
input: {
|
|
355
355
|
json: {
|
|
356
356
|
provider: string;
|
|
@@ -384,7 +384,7 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
|
|
|
384
384
|
error: string;
|
|
385
385
|
};
|
|
386
386
|
outputFormat: "json";
|
|
387
|
-
status:
|
|
387
|
+
status: 400;
|
|
388
388
|
input: {
|
|
389
389
|
param: {
|
|
390
390
|
id: string;
|
|
@@ -400,7 +400,7 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
|
|
|
400
400
|
error: string;
|
|
401
401
|
};
|
|
402
402
|
outputFormat: "json";
|
|
403
|
-
status:
|
|
403
|
+
status: 404;
|
|
404
404
|
input: {
|
|
405
405
|
param: {
|
|
406
406
|
id: string;
|
|
@@ -416,7 +416,7 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
|
|
|
416
416
|
error: string;
|
|
417
417
|
};
|
|
418
418
|
outputFormat: "json";
|
|
419
|
-
status:
|
|
419
|
+
status: 409;
|
|
420
420
|
input: {
|
|
421
421
|
param: {
|
|
422
422
|
id: string;
|
|
@@ -542,10 +542,9 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
|
|
|
542
542
|
$put: {
|
|
543
543
|
output: {
|
|
544
544
|
error: string;
|
|
545
|
-
code: "no-boot-project";
|
|
546
545
|
};
|
|
547
546
|
outputFormat: "json";
|
|
548
|
-
status:
|
|
547
|
+
status: 400;
|
|
549
548
|
input: {
|
|
550
549
|
json: {
|
|
551
550
|
projectId: string;
|
|
@@ -569,9 +568,10 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
|
|
|
569
568
|
} | {
|
|
570
569
|
output: {
|
|
571
570
|
error: string;
|
|
571
|
+
code: "no-boot-project";
|
|
572
572
|
};
|
|
573
573
|
outputFormat: "json";
|
|
574
|
-
status:
|
|
574
|
+
status: 409;
|
|
575
575
|
input: {
|
|
576
576
|
json: {
|
|
577
577
|
projectId: string;
|
|
@@ -635,7 +635,7 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
|
|
|
635
635
|
error: string;
|
|
636
636
|
};
|
|
637
637
|
outputFormat: "json";
|
|
638
|
-
status:
|
|
638
|
+
status: 404;
|
|
639
639
|
input: {
|
|
640
640
|
param: {
|
|
641
641
|
id: string;
|
|
@@ -646,7 +646,7 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
|
|
|
646
646
|
error: string;
|
|
647
647
|
};
|
|
648
648
|
outputFormat: "json";
|
|
649
|
-
status:
|
|
649
|
+
status: 409;
|
|
650
650
|
input: {
|
|
651
651
|
param: {
|
|
652
652
|
id: string;
|
|
@@ -657,7 +657,7 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
|
|
|
657
657
|
error: string;
|
|
658
658
|
};
|
|
659
659
|
outputFormat: "json";
|
|
660
|
-
status:
|
|
660
|
+
status: 500;
|
|
661
661
|
input: {
|
|
662
662
|
param: {
|
|
663
663
|
id: string;
|