@hearsay-tools/squawk 0.18.0-pr4299.8340 → 0.18.0-pr4300.8344
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/delegation/transport.d.ts +65 -65
- package/dist/server/activity-routes.d.ts +23 -23
- package/dist/server/models-routes.d.ts +12 -12
- package/dist/server/projects-routes.d.ts +45 -45
- package/dist/server/providers-routes.d.ts +57 -57
- package/dist/server/repo-routes.d.ts +34 -34
- package/dist/server/reports-api.d.ts +2 -2
- package/dist/server/runners-routes.d.ts +10 -10
- package/dist/server/server.d.ts +1611 -1611
- package/dist/server/workspace-routes.d.ts +84 -84
- package/package.json +4 -4
|
@@ -2,18 +2,6 @@ import type { DelegationRoutes } from './routes.ts';
|
|
|
2
2
|
export declare function createDelegationApp(routes: DelegationRoutes): import("hono/hono-base").HonoBase<import("hono/types").BlankEnv, import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<{
|
|
3
3
|
"/list": {
|
|
4
4
|
$get: {
|
|
5
|
-
output: {
|
|
6
|
-
error: string;
|
|
7
|
-
code?: "invalid_input" | undefined;
|
|
8
|
-
};
|
|
9
|
-
outputFormat: "json";
|
|
10
|
-
status: 400;
|
|
11
|
-
input: {
|
|
12
|
-
query: {
|
|
13
|
-
offset?: string | undefined;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
} | {
|
|
17
5
|
output: {
|
|
18
6
|
workers: {
|
|
19
7
|
workerId: string;
|
|
@@ -66,6 +54,18 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
66
54
|
offset?: string | undefined;
|
|
67
55
|
};
|
|
68
56
|
};
|
|
57
|
+
} | {
|
|
58
|
+
output: {
|
|
59
|
+
error: string;
|
|
60
|
+
code?: "invalid_input" | undefined;
|
|
61
|
+
};
|
|
62
|
+
outputFormat: "json";
|
|
63
|
+
status: 400;
|
|
64
|
+
input: {
|
|
65
|
+
query: {
|
|
66
|
+
offset?: string | undefined;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
69
|
};
|
|
70
70
|
};
|
|
71
71
|
} & {
|
|
@@ -652,18 +652,6 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
652
652
|
} & {
|
|
653
653
|
"/:workerId": {
|
|
654
654
|
$get: {
|
|
655
|
-
output: {
|
|
656
|
-
error: string;
|
|
657
|
-
code?: "invalid_input" | undefined;
|
|
658
|
-
};
|
|
659
|
-
outputFormat: "json";
|
|
660
|
-
status: 400;
|
|
661
|
-
input: {
|
|
662
|
-
param: {
|
|
663
|
-
workerId: string;
|
|
664
|
-
};
|
|
665
|
-
};
|
|
666
|
-
} | {
|
|
667
655
|
output: {
|
|
668
656
|
workerId: string;
|
|
669
657
|
settled: boolean;
|
|
@@ -788,11 +776,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
788
776
|
workerId: string;
|
|
789
777
|
};
|
|
790
778
|
};
|
|
791
|
-
}
|
|
792
|
-
};
|
|
793
|
-
} & {
|
|
794
|
-
"/:workerId/collect": {
|
|
795
|
-
$post: {
|
|
779
|
+
} | {
|
|
796
780
|
output: {
|
|
797
781
|
error: string;
|
|
798
782
|
code?: "invalid_input" | undefined;
|
|
@@ -803,10 +787,12 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
803
787
|
param: {
|
|
804
788
|
workerId: string;
|
|
805
789
|
};
|
|
806
|
-
} & {
|
|
807
|
-
json: Record<string, never>;
|
|
808
790
|
};
|
|
809
|
-
}
|
|
791
|
+
};
|
|
792
|
+
};
|
|
793
|
+
} & {
|
|
794
|
+
"/:workerId/collect": {
|
|
795
|
+
$post: {
|
|
810
796
|
output: {
|
|
811
797
|
workerId: string;
|
|
812
798
|
parentRunId: string;
|
|
@@ -929,11 +915,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
929
915
|
} & {
|
|
930
916
|
json: Record<string, never>;
|
|
931
917
|
};
|
|
932
|
-
}
|
|
933
|
-
};
|
|
934
|
-
} & {
|
|
935
|
-
"/:workerId/steer": {
|
|
936
|
-
$post: {
|
|
918
|
+
} | {
|
|
937
919
|
output: {
|
|
938
920
|
error: string;
|
|
939
921
|
code?: "invalid_input" | undefined;
|
|
@@ -945,11 +927,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
945
927
|
workerId: string;
|
|
946
928
|
};
|
|
947
929
|
} & {
|
|
948
|
-
json:
|
|
949
|
-
text: string;
|
|
950
|
-
};
|
|
930
|
+
json: Record<string, never>;
|
|
951
931
|
};
|
|
952
|
-
}
|
|
932
|
+
};
|
|
933
|
+
};
|
|
934
|
+
} & {
|
|
935
|
+
"/:workerId/steer": {
|
|
936
|
+
$post: {
|
|
953
937
|
output: {
|
|
954
938
|
workerId: string;
|
|
955
939
|
state: "delivered" | "queued";
|
|
@@ -965,11 +949,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
965
949
|
text: string;
|
|
966
950
|
};
|
|
967
951
|
};
|
|
968
|
-
}
|
|
969
|
-
};
|
|
970
|
-
} & {
|
|
971
|
-
"/:workerId/stop": {
|
|
972
|
-
$post: {
|
|
952
|
+
} | {
|
|
973
953
|
output: {
|
|
974
954
|
error: string;
|
|
975
955
|
code?: "invalid_input" | undefined;
|
|
@@ -981,9 +961,15 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
981
961
|
workerId: string;
|
|
982
962
|
};
|
|
983
963
|
} & {
|
|
984
|
-
json:
|
|
964
|
+
json: {
|
|
965
|
+
text: string;
|
|
966
|
+
};
|
|
985
967
|
};
|
|
986
|
-
}
|
|
968
|
+
};
|
|
969
|
+
};
|
|
970
|
+
} & {
|
|
971
|
+
"/:workerId/stop": {
|
|
972
|
+
$post: {
|
|
987
973
|
output: {
|
|
988
974
|
workerId: string;
|
|
989
975
|
state: "stopping" | "terminated";
|
|
@@ -997,11 +983,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
997
983
|
} & {
|
|
998
984
|
json: Record<string, never>;
|
|
999
985
|
};
|
|
1000
|
-
}
|
|
1001
|
-
};
|
|
1002
|
-
} & {
|
|
1003
|
-
"/:workerId/destroy": {
|
|
1004
|
-
$post: {
|
|
986
|
+
} | {
|
|
1005
987
|
output: {
|
|
1006
988
|
error: string;
|
|
1007
989
|
code?: "invalid_input" | undefined;
|
|
@@ -1013,11 +995,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
1013
995
|
workerId: string;
|
|
1014
996
|
};
|
|
1015
997
|
} & {
|
|
1016
|
-
json:
|
|
1017
|
-
discardWork?: true | undefined;
|
|
1018
|
-
};
|
|
998
|
+
json: Record<string, never>;
|
|
1019
999
|
};
|
|
1020
|
-
}
|
|
1000
|
+
};
|
|
1001
|
+
};
|
|
1002
|
+
} & {
|
|
1003
|
+
"/:workerId/destroy": {
|
|
1004
|
+
$post: {
|
|
1021
1005
|
output: {
|
|
1022
1006
|
workerId: string;
|
|
1023
1007
|
state: "complete" | "incomplete";
|
|
@@ -1046,6 +1030,22 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
1046
1030
|
discardWork?: true | undefined;
|
|
1047
1031
|
};
|
|
1048
1032
|
};
|
|
1033
|
+
} | {
|
|
1034
|
+
output: {
|
|
1035
|
+
error: string;
|
|
1036
|
+
code?: "invalid_input" | undefined;
|
|
1037
|
+
};
|
|
1038
|
+
outputFormat: "json";
|
|
1039
|
+
status: 400;
|
|
1040
|
+
input: {
|
|
1041
|
+
param: {
|
|
1042
|
+
workerId: string;
|
|
1043
|
+
};
|
|
1044
|
+
} & {
|
|
1045
|
+
json: {
|
|
1046
|
+
discardWork?: true | undefined;
|
|
1047
|
+
};
|
|
1048
|
+
};
|
|
1049
1049
|
} | {
|
|
1050
1050
|
output: {
|
|
1051
1051
|
workerId: string;
|
|
@@ -1081,11 +1081,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
1081
1081
|
"/:workerId/diff": {
|
|
1082
1082
|
$get: {
|
|
1083
1083
|
output: {
|
|
1084
|
-
|
|
1085
|
-
|
|
1084
|
+
workerId: string;
|
|
1085
|
+
baselineSha: string;
|
|
1086
|
+
diff: string;
|
|
1087
|
+
truncated: boolean;
|
|
1086
1088
|
};
|
|
1087
1089
|
outputFormat: "json";
|
|
1088
|
-
status:
|
|
1090
|
+
status: 200;
|
|
1089
1091
|
input: {
|
|
1090
1092
|
param: {
|
|
1091
1093
|
workerId: string;
|
|
@@ -1093,13 +1095,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
1093
1095
|
};
|
|
1094
1096
|
} | {
|
|
1095
1097
|
output: {
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
diff: string;
|
|
1099
|
-
truncated: boolean;
|
|
1098
|
+
error: string;
|
|
1099
|
+
code?: "invalid_input" | undefined;
|
|
1100
1100
|
};
|
|
1101
1101
|
outputFormat: "json";
|
|
1102
|
-
status:
|
|
1102
|
+
status: 400;
|
|
1103
1103
|
input: {
|
|
1104
1104
|
param: {
|
|
1105
1105
|
workerId: string;
|
|
@@ -58,29 +58,6 @@ export declare function ciProgressPlugs(): {
|
|
|
58
58
|
export declare function createActivityRoutes(routeDeps: ActivityRouteDeps): import("hono/hono-base").HonoBase<import("hono/types").BlankEnv, {
|
|
59
59
|
"/workspace/activity": {
|
|
60
60
|
$get: {
|
|
61
|
-
output: {
|
|
62
|
-
error: string;
|
|
63
|
-
code?: "invalid_input" | undefined;
|
|
64
|
-
};
|
|
65
|
-
outputFormat: "json";
|
|
66
|
-
status: 400;
|
|
67
|
-
input: {
|
|
68
|
-
query: {
|
|
69
|
-
project?: string | undefined;
|
|
70
|
-
};
|
|
71
|
-
};
|
|
72
|
-
} | {
|
|
73
|
-
output: {
|
|
74
|
-
error: string;
|
|
75
|
-
};
|
|
76
|
-
outputFormat: "json";
|
|
77
|
-
status: 404 | 409 | 503;
|
|
78
|
-
input: {
|
|
79
|
-
query: {
|
|
80
|
-
project?: string | undefined;
|
|
81
|
-
};
|
|
82
|
-
};
|
|
83
|
-
} | {
|
|
84
61
|
output: {
|
|
85
62
|
generatedAt: string;
|
|
86
63
|
projects: {
|
|
@@ -327,6 +304,29 @@ export declare function createActivityRoutes(routeDeps: ActivityRouteDeps): impo
|
|
|
327
304
|
project?: string | undefined;
|
|
328
305
|
};
|
|
329
306
|
};
|
|
307
|
+
} | {
|
|
308
|
+
output: {
|
|
309
|
+
error: string;
|
|
310
|
+
code?: "invalid_input" | undefined;
|
|
311
|
+
};
|
|
312
|
+
outputFormat: "json";
|
|
313
|
+
status: 400;
|
|
314
|
+
input: {
|
|
315
|
+
query: {
|
|
316
|
+
project?: string | undefined;
|
|
317
|
+
};
|
|
318
|
+
};
|
|
319
|
+
} | {
|
|
320
|
+
output: {
|
|
321
|
+
error: string;
|
|
322
|
+
};
|
|
323
|
+
outputFormat: "json";
|
|
324
|
+
status: 404 | 409 | 503;
|
|
325
|
+
input: {
|
|
326
|
+
query: {
|
|
327
|
+
project?: string | undefined;
|
|
328
|
+
};
|
|
329
|
+
};
|
|
330
330
|
};
|
|
331
331
|
};
|
|
332
332
|
}, "/", "/workspace/activity">;
|
|
@@ -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">;
|
|
@@ -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;
|
|
@@ -93,10 +104,10 @@ export declare function createProjectsRoutes(deps: ProjectsRouteDeps): import("h
|
|
|
93
104
|
agent: boolean;
|
|
94
105
|
}[] | undefined;
|
|
95
106
|
};
|
|
96
|
-
error
|
|
107
|
+
error: string;
|
|
97
108
|
};
|
|
98
109
|
outputFormat: "json";
|
|
99
|
-
status:
|
|
110
|
+
status: 409;
|
|
100
111
|
input: {
|
|
101
112
|
json: {
|
|
102
113
|
root: string;
|
|
@@ -133,21 +144,10 @@ export declare function createProjectsRoutes(deps: ProjectsRouteDeps): import("h
|
|
|
133
144
|
agent: boolean;
|
|
134
145
|
}[] | undefined;
|
|
135
146
|
};
|
|
136
|
-
error
|
|
137
|
-
};
|
|
138
|
-
outputFormat: "json";
|
|
139
|
-
status: 409;
|
|
140
|
-
input: {
|
|
141
|
-
json: {
|
|
142
|
-
root: string;
|
|
143
|
-
};
|
|
144
|
-
};
|
|
145
|
-
} | {
|
|
146
|
-
output: {
|
|
147
|
-
error: string;
|
|
147
|
+
error?: string | undefined;
|
|
148
148
|
};
|
|
149
149
|
outputFormat: "json";
|
|
150
|
-
status:
|
|
150
|
+
status: 200;
|
|
151
151
|
input: {
|
|
152
152
|
json: {
|
|
153
153
|
root: string;
|
|
@@ -306,7 +306,7 @@ export declare function createProjectsRoutes(deps: ProjectsRouteDeps): import("h
|
|
|
306
306
|
error: string;
|
|
307
307
|
};
|
|
308
308
|
outputFormat: "json";
|
|
309
|
-
status:
|
|
309
|
+
status: 404;
|
|
310
310
|
input: {
|
|
311
311
|
param: {
|
|
312
312
|
projectId: string;
|
|
@@ -317,7 +317,7 @@ export declare function createProjectsRoutes(deps: ProjectsRouteDeps): import("h
|
|
|
317
317
|
error: string;
|
|
318
318
|
};
|
|
319
319
|
outputFormat: "json";
|
|
320
|
-
status:
|
|
320
|
+
status: 400;
|
|
321
321
|
input: {
|
|
322
322
|
param: {
|
|
323
323
|
projectId: string;
|
|
@@ -342,6 +342,27 @@ export declare function createProjectsRoutes(deps: ProjectsRouteDeps): import("h
|
|
|
342
342
|
} & {
|
|
343
343
|
"/projects/:projectId/webhooks": {
|
|
344
344
|
$post: {
|
|
345
|
+
output: {
|
|
346
|
+
error: string;
|
|
347
|
+
};
|
|
348
|
+
outputFormat: "json";
|
|
349
|
+
status: 400 | 404 | 409 | 500;
|
|
350
|
+
input: {
|
|
351
|
+
json: {
|
|
352
|
+
name: string;
|
|
353
|
+
description?: string | undefined;
|
|
354
|
+
url: string;
|
|
355
|
+
token?: string | undefined;
|
|
356
|
+
tasks?: boolean | undefined;
|
|
357
|
+
triggers?: ("cancelled" | "done" | "failed" | "needs-you" | "running" | "waiting-ci" | "waiting-other" | "waiting-timer" | "waiting-workers")[] | undefined;
|
|
358
|
+
agent?: boolean | undefined;
|
|
359
|
+
};
|
|
360
|
+
} & {
|
|
361
|
+
param: {
|
|
362
|
+
projectId: string;
|
|
363
|
+
};
|
|
364
|
+
};
|
|
365
|
+
} | {
|
|
345
366
|
output: {
|
|
346
367
|
project: {
|
|
347
368
|
id: string;
|
|
@@ -400,27 +421,6 @@ export declare function createProjectsRoutes(deps: ProjectsRouteDeps): import("h
|
|
|
400
421
|
projectId: string;
|
|
401
422
|
};
|
|
402
423
|
};
|
|
403
|
-
} | {
|
|
404
|
-
output: {
|
|
405
|
-
error: string;
|
|
406
|
-
};
|
|
407
|
-
outputFormat: "json";
|
|
408
|
-
status: 400 | 404 | 409 | 500;
|
|
409
|
-
input: {
|
|
410
|
-
json: {
|
|
411
|
-
name: string;
|
|
412
|
-
description?: string | undefined;
|
|
413
|
-
url: string;
|
|
414
|
-
token?: string | undefined;
|
|
415
|
-
tasks?: boolean | undefined;
|
|
416
|
-
triggers?: ("cancelled" | "done" | "failed" | "needs-you" | "running" | "waiting-ci" | "waiting-other" | "waiting-timer" | "waiting-workers")[] | undefined;
|
|
417
|
-
agent?: boolean | undefined;
|
|
418
|
-
};
|
|
419
|
-
} & {
|
|
420
|
-
param: {
|
|
421
|
-
projectId: string;
|
|
422
|
-
};
|
|
423
|
-
};
|
|
424
424
|
};
|
|
425
425
|
};
|
|
426
426
|
} & {
|
|
@@ -618,10 +618,13 @@ export declare function createProjectsRoutes(deps: ProjectsRouteDeps): import("h
|
|
|
618
618
|
};
|
|
619
619
|
} | {
|
|
620
620
|
output: {
|
|
621
|
-
|
|
621
|
+
ok: boolean;
|
|
622
|
+
status?: number | undefined;
|
|
623
|
+
error?: string | undefined;
|
|
624
|
+
dryRun?: boolean | undefined;
|
|
622
625
|
};
|
|
623
626
|
outputFormat: "json";
|
|
624
|
-
status:
|
|
627
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
625
628
|
input: {
|
|
626
629
|
param: {
|
|
627
630
|
projectId: string;
|
|
@@ -630,13 +633,10 @@ export declare function createProjectsRoutes(deps: ProjectsRouteDeps): import("h
|
|
|
630
633
|
};
|
|
631
634
|
} | {
|
|
632
635
|
output: {
|
|
633
|
-
|
|
634
|
-
status?: number | undefined;
|
|
635
|
-
error?: string | undefined;
|
|
636
|
-
dryRun?: boolean | undefined;
|
|
636
|
+
error: string;
|
|
637
637
|
};
|
|
638
638
|
outputFormat: "json";
|
|
639
|
-
status:
|
|
639
|
+
status: 404;
|
|
640
640
|
input: {
|
|
641
641
|
param: {
|
|
642
642
|
projectId: string;
|