@hearsay-tools/squawk 0.19.0-pr4672.9273.2 → 0.19.0-pr4676.9280
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/routes.d.ts +78 -78
- 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/repo-routes.d.ts +52 -52
- package/dist/server/runners-routes.d.ts +10 -10
- package/dist/server/runs-routes.d.ts +16 -16
- package/dist/server/server.d.ts +58 -58
- package/dist/server/workspace-live-routes.d.ts +5 -5
- package/dist/server/workspace-routes.d.ts +85 -85
- package/package.json +4 -4
|
@@ -27,18 +27,6 @@ export declare function delegationFailure(error: unknown): {
|
|
|
27
27
|
export declare function createDelegationRoutes(service: DelegationService, credentials: CredentialRegistry): import("hono/hono-base").HonoBase<Env, {
|
|
28
28
|
"/list": {
|
|
29
29
|
$get: {
|
|
30
|
-
output: {
|
|
31
|
-
error: string;
|
|
32
|
-
code?: "invalid_input" | undefined;
|
|
33
|
-
};
|
|
34
|
-
outputFormat: "json";
|
|
35
|
-
status: 400;
|
|
36
|
-
input: {
|
|
37
|
-
query: {
|
|
38
|
-
offset?: string | undefined;
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
} | {
|
|
42
30
|
output: {
|
|
43
31
|
workers: {
|
|
44
32
|
workerId: string;
|
|
@@ -91,6 +79,18 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
91
79
|
offset?: string | undefined;
|
|
92
80
|
};
|
|
93
81
|
};
|
|
82
|
+
} | {
|
|
83
|
+
output: {
|
|
84
|
+
error: string;
|
|
85
|
+
code?: "invalid_input" | undefined;
|
|
86
|
+
};
|
|
87
|
+
outputFormat: "json";
|
|
88
|
+
status: 400;
|
|
89
|
+
input: {
|
|
90
|
+
query: {
|
|
91
|
+
offset?: string | undefined;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
94
|
};
|
|
95
95
|
};
|
|
96
96
|
} & {
|
|
@@ -677,18 +677,6 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
677
677
|
} & {
|
|
678
678
|
"/:workerId": {
|
|
679
679
|
$get: {
|
|
680
|
-
output: {
|
|
681
|
-
error: string;
|
|
682
|
-
code?: "invalid_input" | undefined;
|
|
683
|
-
};
|
|
684
|
-
outputFormat: "json";
|
|
685
|
-
status: 400;
|
|
686
|
-
input: {
|
|
687
|
-
param: {
|
|
688
|
-
workerId: string;
|
|
689
|
-
};
|
|
690
|
-
};
|
|
691
|
-
} | {
|
|
692
680
|
output: {
|
|
693
681
|
workerId: string;
|
|
694
682
|
settled: boolean;
|
|
@@ -813,11 +801,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
813
801
|
workerId: string;
|
|
814
802
|
};
|
|
815
803
|
};
|
|
816
|
-
}
|
|
817
|
-
};
|
|
818
|
-
} & {
|
|
819
|
-
"/:workerId/collect": {
|
|
820
|
-
$post: {
|
|
804
|
+
} | {
|
|
821
805
|
output: {
|
|
822
806
|
error: string;
|
|
823
807
|
code?: "invalid_input" | undefined;
|
|
@@ -828,10 +812,12 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
828
812
|
param: {
|
|
829
813
|
workerId: string;
|
|
830
814
|
};
|
|
831
|
-
} & {
|
|
832
|
-
json: Record<string, never>;
|
|
833
815
|
};
|
|
834
|
-
}
|
|
816
|
+
};
|
|
817
|
+
};
|
|
818
|
+
} & {
|
|
819
|
+
"/:workerId/collect": {
|
|
820
|
+
$post: {
|
|
835
821
|
output: {
|
|
836
822
|
workerId: string;
|
|
837
823
|
parentRunId: string;
|
|
@@ -956,11 +942,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
956
942
|
} & {
|
|
957
943
|
json: Record<string, never>;
|
|
958
944
|
};
|
|
959
|
-
}
|
|
960
|
-
};
|
|
961
|
-
} & {
|
|
962
|
-
"/:workerId/steer": {
|
|
963
|
-
$post: {
|
|
945
|
+
} | {
|
|
964
946
|
output: {
|
|
965
947
|
error: string;
|
|
966
948
|
code?: "invalid_input" | undefined;
|
|
@@ -972,11 +954,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
972
954
|
workerId: string;
|
|
973
955
|
};
|
|
974
956
|
} & {
|
|
975
|
-
json:
|
|
976
|
-
text: string;
|
|
977
|
-
};
|
|
957
|
+
json: Record<string, never>;
|
|
978
958
|
};
|
|
979
|
-
}
|
|
959
|
+
};
|
|
960
|
+
};
|
|
961
|
+
} & {
|
|
962
|
+
"/:workerId/steer": {
|
|
963
|
+
$post: {
|
|
980
964
|
output: {
|
|
981
965
|
workerId: string;
|
|
982
966
|
state: "delivered" | "queued";
|
|
@@ -992,11 +976,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
992
976
|
text: string;
|
|
993
977
|
};
|
|
994
978
|
};
|
|
995
|
-
}
|
|
996
|
-
};
|
|
997
|
-
} & {
|
|
998
|
-
"/:workerId/stop": {
|
|
999
|
-
$post: {
|
|
979
|
+
} | {
|
|
1000
980
|
output: {
|
|
1001
981
|
error: string;
|
|
1002
982
|
code?: "invalid_input" | undefined;
|
|
@@ -1008,9 +988,15 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
1008
988
|
workerId: string;
|
|
1009
989
|
};
|
|
1010
990
|
} & {
|
|
1011
|
-
json:
|
|
991
|
+
json: {
|
|
992
|
+
text: string;
|
|
993
|
+
};
|
|
1012
994
|
};
|
|
1013
|
-
}
|
|
995
|
+
};
|
|
996
|
+
};
|
|
997
|
+
} & {
|
|
998
|
+
"/:workerId/stop": {
|
|
999
|
+
$post: {
|
|
1014
1000
|
output: {
|
|
1015
1001
|
workerId: string;
|
|
1016
1002
|
state: "stopping" | "terminated";
|
|
@@ -1024,11 +1010,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
1024
1010
|
} & {
|
|
1025
1011
|
json: Record<string, never>;
|
|
1026
1012
|
};
|
|
1027
|
-
}
|
|
1028
|
-
};
|
|
1029
|
-
} & {
|
|
1030
|
-
"/:workerId/destroy": {
|
|
1031
|
-
$post: {
|
|
1013
|
+
} | {
|
|
1032
1014
|
output: {
|
|
1033
1015
|
error: string;
|
|
1034
1016
|
code?: "invalid_input" | undefined;
|
|
@@ -1040,11 +1022,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
1040
1022
|
workerId: string;
|
|
1041
1023
|
};
|
|
1042
1024
|
} & {
|
|
1043
|
-
json:
|
|
1044
|
-
discardWork?: true | undefined;
|
|
1045
|
-
};
|
|
1025
|
+
json: Record<string, never>;
|
|
1046
1026
|
};
|
|
1047
|
-
}
|
|
1027
|
+
};
|
|
1028
|
+
};
|
|
1029
|
+
} & {
|
|
1030
|
+
"/:workerId/destroy": {
|
|
1031
|
+
$post: {
|
|
1048
1032
|
output: {
|
|
1049
1033
|
workerId: string;
|
|
1050
1034
|
state: "complete" | "incomplete";
|
|
@@ -1073,6 +1057,22 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
1073
1057
|
discardWork?: true | undefined;
|
|
1074
1058
|
};
|
|
1075
1059
|
};
|
|
1060
|
+
} | {
|
|
1061
|
+
output: {
|
|
1062
|
+
error: string;
|
|
1063
|
+
code?: "invalid_input" | undefined;
|
|
1064
|
+
};
|
|
1065
|
+
outputFormat: "json";
|
|
1066
|
+
status: 400;
|
|
1067
|
+
input: {
|
|
1068
|
+
param: {
|
|
1069
|
+
workerId: string;
|
|
1070
|
+
};
|
|
1071
|
+
} & {
|
|
1072
|
+
json: {
|
|
1073
|
+
discardWork?: true | undefined;
|
|
1074
|
+
};
|
|
1075
|
+
};
|
|
1076
1076
|
} | {
|
|
1077
1077
|
output: {
|
|
1078
1078
|
workerId: string;
|
|
@@ -1108,11 +1108,18 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
1108
1108
|
"/:workerId/summary": {
|
|
1109
1109
|
$post: {
|
|
1110
1110
|
output: {
|
|
1111
|
-
|
|
1112
|
-
|
|
1111
|
+
workerId: string;
|
|
1112
|
+
revision: number;
|
|
1113
|
+
source: "assistant" | "failure";
|
|
1114
|
+
seq: number;
|
|
1115
|
+
totalLines: number;
|
|
1116
|
+
offset: number;
|
|
1117
|
+
lineCount: number;
|
|
1118
|
+
text: string;
|
|
1119
|
+
nextOffset?: number | undefined;
|
|
1113
1120
|
};
|
|
1114
1121
|
outputFormat: "json";
|
|
1115
|
-
status:
|
|
1122
|
+
status: 200;
|
|
1116
1123
|
input: {
|
|
1117
1124
|
param: {
|
|
1118
1125
|
workerId: string;
|
|
@@ -1125,18 +1132,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
1125
1132
|
};
|
|
1126
1133
|
} | {
|
|
1127
1134
|
output: {
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
source: "assistant" | "failure";
|
|
1131
|
-
seq: number;
|
|
1132
|
-
totalLines: number;
|
|
1133
|
-
offset: number;
|
|
1134
|
-
lineCount: number;
|
|
1135
|
-
text: string;
|
|
1136
|
-
nextOffset?: number | undefined;
|
|
1135
|
+
error: string;
|
|
1136
|
+
code?: "invalid_input" | undefined;
|
|
1137
1137
|
};
|
|
1138
1138
|
outputFormat: "json";
|
|
1139
|
-
status:
|
|
1139
|
+
status: 400;
|
|
1140
1140
|
input: {
|
|
1141
1141
|
param: {
|
|
1142
1142
|
workerId: string;
|
|
@@ -1153,11 +1153,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
1153
1153
|
"/:workerId/diff": {
|
|
1154
1154
|
$get: {
|
|
1155
1155
|
output: {
|
|
1156
|
-
|
|
1157
|
-
|
|
1156
|
+
workerId: string;
|
|
1157
|
+
baselineSha: string;
|
|
1158
|
+
diff: string;
|
|
1159
|
+
truncated: boolean;
|
|
1158
1160
|
};
|
|
1159
1161
|
outputFormat: "json";
|
|
1160
|
-
status:
|
|
1162
|
+
status: 200;
|
|
1161
1163
|
input: {
|
|
1162
1164
|
param: {
|
|
1163
1165
|
workerId: string;
|
|
@@ -1165,13 +1167,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
1165
1167
|
};
|
|
1166
1168
|
} | {
|
|
1167
1169
|
output: {
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
diff: string;
|
|
1171
|
-
truncated: boolean;
|
|
1170
|
+
error: string;
|
|
1171
|
+
code?: "invalid_input" | undefined;
|
|
1172
1172
|
};
|
|
1173
1173
|
outputFormat: "json";
|
|
1174
|
-
status:
|
|
1174
|
+
status: 400;
|
|
1175
1175
|
input: {
|
|
1176
1176
|
param: {
|
|
1177
1177
|
workerId: string;
|
|
@@ -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;
|