@hearsay-tools/squawk 0.19.0-pr4650.9244 → 0.19.0-pr4651.9248
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/workspace-live-routes.d.ts +5 -5
- package/dist/server/workspace-routes.d.ts +85 -85
- package/package.json +4 -4
- package/web/dist/assets/accounts-section-Bw90Zeyy.js +1 -0
- package/web/dist/assets/activity-motion-CpILMwDL.js +1 -0
- package/web/dist/assets/{activity-route-B2N8ZaZ_.js → activity-route-Ah4R6X7w.js} +1 -1
- package/web/dist/assets/agent-accounts-CSU96w_T.js +1 -0
- package/web/dist/assets/{agent-config-section-Ck4CXMFm.js → agent-config-section-Ci64QPpc.js} +2 -2
- package/web/dist/assets/{agent-defaults-section-CSonqNrH.js → agent-defaults-section-Bxm1J37M.js} +1 -1
- package/web/dist/assets/{appearance-CtRi80xH.js → appearance-CthjFlgg.js} +1 -1
- package/web/dist/assets/{archive-on-merge-field-DWIBlp84.js → archive-on-merge-field-l5DysVAN.js} +1 -1
- package/web/dist/assets/{ask-card-Cr2AS4K4.js → ask-card-BHbcYnxq.js} +2 -2
- package/web/dist/assets/automations-route-I_G-recU.js +2 -0
- package/web/dist/assets/{commit-list-BjI9yFlp.js → commit-list-DRiAvWck.js} +1 -1
- package/web/dist/assets/{diff-BKikntA1.js → diff-BJfJIBF0.js} +2 -2
- package/web/dist/assets/{diff-controls-DXLI7YrY.js → diff-controls-CW68e0nn.js} +1 -1
- package/web/dist/assets/{diff-view-NHfT1G3r.js → diff-view-BMWs_Mdo.js} +1 -1
- package/web/dist/assets/{discard-changes-dialog-COQOWWB4.js → discard-changes-dialog-DhVVYBTM.js} +1 -1
- package/web/dist/assets/{file-preview-CuynH2GY.js → file-preview-B7jtSAuV.js} +1 -1
- package/web/dist/assets/{folder-browser-p1qA81Do.js → folder-browser-_2PCbZWK.js} +1 -1
- package/web/dist/assets/{git-toolbar-C27plnSQ.js → git-toolbar-BjBzDqeE.js} +1 -1
- package/web/dist/assets/github-BYDwVd4e.js +1 -0
- package/web/dist/assets/{global-activity-route-DUa3ZKH5.js → global-activity-route-CMjJXggL.js} +1 -1
- package/web/dist/assets/hosts-BEeMKHcf.js +1 -0
- package/web/dist/assets/index-CVc40N04.js +21 -0
- package/web/dist/assets/label-VKt-7Z5C.js +1 -0
- package/web/dist/assets/{markdown-RyIndDEG.js → markdown-DDqL4r8f.js} +1 -1
- package/web/dist/assets/{open-in-menu-GSvSbohX.js → open-in-menu-WJ8dhdTo.js} +1 -1
- package/web/dist/assets/{option-select-DRpdIulm.js → option-select-CbohUk13.js} +1 -1
- package/web/dist/assets/preferences-section-CevIn7Av.js +1 -0
- package/web/dist/assets/{preview-B13nIXDV.js → preview-DXX3jdRy.js} +1 -1
- package/web/dist/assets/{preview-pane-connected-B9GKjFwm.js → preview-pane-connected-CgJ8Sn6D.js} +2 -2
- package/web/dist/assets/{project-location-BE1vP9ox.js → project-location-D88P4k3U.js} +1 -1
- package/web/dist/assets/{project-router-Bl7pejIP.js → project-router-TP6DSj1S.js} +1 -1
- package/web/dist/assets/project-scope-context-BWHk0niI.js +4 -0
- package/web/dist/assets/{projects-section-B3-nydjA.js → projects-section-CPAqAn6I.js} +1 -1
- package/web/dist/assets/{prompt-templates-section-JgrQfgx0.js → prompt-templates-section-CCt-sHqc.js} +2 -2
- package/web/dist/assets/queries-Byfl3YoC.js +1 -0
- package/web/dist/assets/{reference-chip-jxISA5ls.js → reference-chip-rDOAte2y.js} +1 -1
- package/web/dist/assets/{remote-settings-notice-BihAOLqD.js → remote-settings-notice-fpVKrW6n.js} +1 -1
- package/web/dist/assets/repo-git-BX7R79uM.js +1 -0
- package/web/dist/assets/{report-reader-DjeG4XbX.js → report-reader-KI1BQEih.js} +1 -1
- package/web/dist/assets/{report-selection-DBxcKtc9.js → report-selection-DOq2dcjz.js} +1 -1
- package/web/dist/assets/{reports-DWiYYakL.js → reports-DTKbhRve.js} +1 -1
- package/web/dist/assets/{resources-section-DWjxu1Aj.js → resources-section-BBO9z9OB.js} +1 -1
- package/web/dist/assets/{review-notes-drafts-iAtTr6a6.js → review-notes-drafts-BXDs81XJ.js} +1 -1
- package/web/dist/assets/review-panel-19BXN481.js +1 -0
- package/web/dist/assets/{review-strip-S4KkkMIo.js → review-strip-DmiKxifl.js} +1 -1
- package/web/dist/assets/{run-detail-refresh-e7rB9lt5.js → run-detail-refresh-B4t_zvMa.js} +1 -1
- package/web/dist/assets/run-diff-06TlkEr9.js +2 -0
- package/web/dist/assets/run-header-D1Vgd3mQ.js +2 -0
- package/web/dist/assets/{select-DlJM2_n-.js → select-DAMJHyU-.js} +1 -1
- package/web/dist/assets/{session-context-section-vdKhbdZx.js → session-context-section--gjmoDZO.js} +1 -1
- package/web/dist/assets/{settings-agent-picker-tNi4Xm3k.js → settings-agent-picker-CPZ0KWWF.js} +1 -1
- package/web/dist/assets/{settings-save-bar-fQqyWU1c.js → settings-save-bar-bVNDKCgm.js} +1 -1
- package/web/dist/assets/{settings-shell-B-pmSB5-.js → settings-shell-ON5pp9De.js} +1 -1
- package/web/dist/assets/{sidebar-section-DBgf2u5s.js → sidebar-section-B4b7AW1M.js} +1 -1
- package/web/dist/assets/{skills-BePs-LtJ.js → skills-Bomq2QSD.js} +1 -1
- package/web/dist/assets/{status-dot-BlqTixB7.js → status-dot-Bn3O77El.js} +1 -1
- package/web/dist/assets/{tab-link-tv_Wy5eF.js → tab-link-BeONvGY1.js} +1 -1
- package/web/dist/assets/task-changes-C4z8terM.js +5 -0
- package/web/dist/assets/{task-commits-BgDfumUM.js → task-commits-CnPVmeZz.js} +1 -1
- package/web/dist/assets/{task-file-scope-Bqt2wkkO.js → task-file-scope-ZeAdxeG0.js} +1 -1
- package/web/dist/assets/{task-files-BME7tXzx.js → task-files-DLuxEIbg.js} +1 -1
- package/web/dist/assets/task-github-item-Bh95G9mu.js +1 -0
- package/web/dist/assets/task-thread-D5EysQ2x.js +2 -0
- package/web/dist/assets/{thread-state-DWcNrVOV.js → thread-state-CG6R9jQB.js} +1 -1
- package/web/dist/assets/unified-diff-C_xm_eE4.js +3 -0
- package/web/dist/assets/use-finish-run-BHj1xxKB.js +1 -0
- package/web/dist/assets/{use-hand-to-agent-state-7ItPHT6A.js → use-hand-to-agent-state-BBUo-bFn.js} +1 -1
- package/web/dist/assets/use-path-bases-Bvq_Y4pO.js +1 -0
- package/web/dist/assets/use-workspace-config-save-71tIi9IP.js +1 -0
- package/web/dist/assets/{workflows-CFKtz_8t.js → workflows-I77ZeNll.js} +2 -2
- package/web/dist/assets/{workspace-tools-CBQyH8IV.js → workspace-tools-BfDoTkyA.js} +1 -1
- package/web/dist/assets/{worktrees-section-CA7lv70p.js → worktrees-section-Dn_5GSsT.js} +5 -5
- package/web/dist/index.html +14 -14
- package/web/dist/assets/accounts-section-BROiR4ew.js +0 -1
- package/web/dist/assets/activity-motion-BWSUUfiT.js +0 -1
- package/web/dist/assets/agent-accounts-DjIbGucr.js +0 -1
- package/web/dist/assets/automations-route-iHpqtQ2V.js +0 -2
- package/web/dist/assets/github-BVFqmL19.js +0 -1
- package/web/dist/assets/hosts-dk-7MbxQ.js +0 -1
- package/web/dist/assets/index-BMO-SCLT.js +0 -21
- package/web/dist/assets/label-B4KzRUWE.js +0 -1
- package/web/dist/assets/preferences-section-PTJo2Ohl.js +0 -1
- package/web/dist/assets/project-scope-context-BT4qzyOz.js +0 -4
- package/web/dist/assets/queries-CzUiyqt4.js +0 -1
- package/web/dist/assets/repo-git-B1q5EsnP.js +0 -1
- package/web/dist/assets/review-panel-DPRxBYq7.js +0 -1
- package/web/dist/assets/run-diff-QWOM0ICK.js +0 -3
- package/web/dist/assets/run-header-BNh2z4aw.js +0 -2
- package/web/dist/assets/task-changes-D-ehUptL.js +0 -5
- package/web/dist/assets/task-github-item-BQL_jlnH.js +0 -1
- package/web/dist/assets/task-thread-D-BHmr_Z.js +0 -2
- package/web/dist/assets/use-finish-run-B4gkbFl_.js +0 -1
- package/web/dist/assets/use-path-bases-DfSirdvs.js +0 -1
- package/web/dist/assets/use-workspace-config-save-Dz8Cl7MP.js +0 -1
|
@@ -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,6 +141,18 @@ 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
|
+
} | {
|
|
144
156
|
output: {
|
|
145
157
|
runs: {
|
|
146
158
|
id: string;
|
|
@@ -304,7 +316,11 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
|
|
|
304
316
|
hostId?: string | undefined;
|
|
305
317
|
};
|
|
306
318
|
};
|
|
307
|
-
}
|
|
319
|
+
};
|
|
320
|
+
};
|
|
321
|
+
} & {
|
|
322
|
+
"/hosts/runs-search": {
|
|
323
|
+
$get: {
|
|
308
324
|
output: {
|
|
309
325
|
error: string;
|
|
310
326
|
code?: "invalid_input" | undefined;
|
|
@@ -313,14 +329,11 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
|
|
|
313
329
|
status: 400;
|
|
314
330
|
input: {
|
|
315
331
|
query: {
|
|
316
|
-
|
|
332
|
+
q: string | string[];
|
|
333
|
+
limit?: number | undefined;
|
|
317
334
|
};
|
|
318
335
|
};
|
|
319
|
-
}
|
|
320
|
-
};
|
|
321
|
-
} & {
|
|
322
|
-
"/hosts/runs-search": {
|
|
323
|
-
$get: {
|
|
336
|
+
} | {
|
|
324
337
|
output: {
|
|
325
338
|
runs: {
|
|
326
339
|
id: string;
|
|
@@ -474,39 +487,16 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
|
|
|
474
487
|
limit?: number | undefined;
|
|
475
488
|
};
|
|
476
489
|
};
|
|
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
|
-
|
|
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
|
-
};
|
|
496
|
+
error: string;
|
|
507
497
|
};
|
|
508
498
|
outputFormat: "json";
|
|
509
|
-
status:
|
|
499
|
+
status: 404;
|
|
510
500
|
input: {
|
|
511
501
|
json: {
|
|
512
502
|
sshAlias: string;
|
|
@@ -534,7 +524,7 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
|
|
|
534
524
|
error: string;
|
|
535
525
|
};
|
|
536
526
|
outputFormat: "json";
|
|
537
|
-
status:
|
|
527
|
+
status: 409;
|
|
538
528
|
input: {
|
|
539
529
|
json: {
|
|
540
530
|
sshAlias: string;
|
|
@@ -548,7 +538,7 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
|
|
|
548
538
|
error: string;
|
|
549
539
|
};
|
|
550
540
|
outputFormat: "json";
|
|
551
|
-
status:
|
|
541
|
+
status: 500;
|
|
552
542
|
input: {
|
|
553
543
|
json: {
|
|
554
544
|
sshAlias: string;
|
|
@@ -559,10 +549,20 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
|
|
|
559
549
|
};
|
|
560
550
|
} | {
|
|
561
551
|
output: {
|
|
562
|
-
|
|
552
|
+
host: {
|
|
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
|
+
};
|
|
563
563
|
};
|
|
564
564
|
outputFormat: "json";
|
|
565
|
-
status:
|
|
565
|
+
status: 201;
|
|
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: 409;
|
|
580
580
|
input: {
|
|
581
581
|
json: {
|
|
582
582
|
sshAlias: string;
|
|
@@ -591,20 +591,11 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
|
|
|
591
591
|
"/hosts/:id": {
|
|
592
592
|
$patch: {
|
|
593
593
|
output: {
|
|
594
|
-
|
|
595
|
-
|
|
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
|
-
};
|
|
594
|
+
error: string;
|
|
595
|
+
code?: "invalid_input" | undefined;
|
|
605
596
|
};
|
|
606
597
|
outputFormat: "json";
|
|
607
|
-
status:
|
|
598
|
+
status: 400;
|
|
608
599
|
input: {
|
|
609
600
|
param: {
|
|
610
601
|
id: string;
|
|
@@ -619,10 +610,9 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
|
|
|
619
610
|
} | {
|
|
620
611
|
output: {
|
|
621
612
|
error: string;
|
|
622
|
-
code?: "invalid_input" | undefined;
|
|
623
613
|
};
|
|
624
614
|
outputFormat: "json";
|
|
625
|
-
status:
|
|
615
|
+
status: 404;
|
|
626
616
|
input: {
|
|
627
617
|
param: {
|
|
628
618
|
id: string;
|
|
@@ -656,7 +646,7 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
|
|
|
656
646
|
error: string;
|
|
657
647
|
};
|
|
658
648
|
outputFormat: "json";
|
|
659
|
-
status:
|
|
649
|
+
status: 409;
|
|
660
650
|
input: {
|
|
661
651
|
param: {
|
|
662
652
|
id: string;
|
|
@@ -673,7 +663,7 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
|
|
|
673
663
|
error: string;
|
|
674
664
|
};
|
|
675
665
|
outputFormat: "json";
|
|
676
|
-
status:
|
|
666
|
+
status: 500;
|
|
677
667
|
input: {
|
|
678
668
|
param: {
|
|
679
669
|
id: string;
|
|
@@ -704,10 +694,20 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
|
|
|
704
694
|
};
|
|
705
695
|
} | {
|
|
706
696
|
output: {
|
|
707
|
-
|
|
697
|
+
host: {
|
|
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
|
+
};
|
|
708
708
|
};
|
|
709
709
|
outputFormat: "json";
|
|
710
|
-
status:
|
|
710
|
+
status: 200;
|
|
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
|
+
error: string;
|
|
729
|
+
code?: "invalid_input" | undefined;
|
|
730
730
|
};
|
|
731
731
|
outputFormat: "json";
|
|
732
|
-
status:
|
|
732
|
+
status: 400;
|
|
733
733
|
input: {
|
|
734
734
|
param: {
|
|
735
735
|
id: string;
|
|
@@ -738,10 +738,9 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
|
|
|
738
738
|
} | {
|
|
739
739
|
output: {
|
|
740
740
|
error: string;
|
|
741
|
-
code?: "invalid_input" | undefined;
|
|
742
741
|
};
|
|
743
742
|
outputFormat: "json";
|
|
744
|
-
status:
|
|
743
|
+
status: 404;
|
|
745
744
|
input: {
|
|
746
745
|
param: {
|
|
747
746
|
id: string;
|
|
@@ -763,7 +762,7 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
|
|
|
763
762
|
error: string;
|
|
764
763
|
};
|
|
765
764
|
outputFormat: "json";
|
|
766
|
-
status:
|
|
765
|
+
status: 409;
|
|
767
766
|
input: {
|
|
768
767
|
param: {
|
|
769
768
|
id: string;
|
|
@@ -774,7 +773,7 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
|
|
|
774
773
|
error: string;
|
|
775
774
|
};
|
|
776
775
|
outputFormat: "json";
|
|
777
|
-
status:
|
|
776
|
+
status: 500;
|
|
778
777
|
input: {
|
|
779
778
|
param: {
|
|
780
779
|
id: string;
|
|
@@ -793,10 +792,11 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
|
|
|
793
792
|
};
|
|
794
793
|
} | {
|
|
795
794
|
output: {
|
|
796
|
-
|
|
795
|
+
removed: true;
|
|
796
|
+
id: string;
|
|
797
797
|
};
|
|
798
798
|
outputFormat: "json";
|
|
799
|
-
status:
|
|
799
|
+
status: 200;
|
|
800
800
|
input: {
|
|
801
801
|
param: {
|
|
802
802
|
id: string;
|
|
@@ -100,6 +100,18 @@ 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
|
+
} | {
|
|
103
115
|
output: {
|
|
104
116
|
error: string;
|
|
105
117
|
};
|
|
@@ -124,23 +136,33 @@ export declare function createProjectWebhooksRoutes(deps: ProjectWebhooksRouteDe
|
|
|
124
136
|
projectId: string;
|
|
125
137
|
};
|
|
126
138
|
};
|
|
127
|
-
}
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
} & {
|
|
142
|
+
"/projects/:projectId/webhooks": {
|
|
143
|
+
$post: {
|
|
128
144
|
output: {
|
|
129
145
|
error: string;
|
|
130
146
|
code?: "no-boot-project" | undefined;
|
|
131
147
|
};
|
|
132
148
|
outputFormat: "json";
|
|
133
|
-
status: 404 | 409;
|
|
149
|
+
status: 400 | 404 | 409 | 500;
|
|
134
150
|
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
|
+
} & {
|
|
135
161
|
param: {
|
|
136
162
|
projectId: string;
|
|
137
163
|
};
|
|
138
164
|
};
|
|
139
|
-
}
|
|
140
|
-
};
|
|
141
|
-
} & {
|
|
142
|
-
"/projects/:projectId/webhooks": {
|
|
143
|
-
$post: {
|
|
165
|
+
} | {
|
|
144
166
|
output: {
|
|
145
167
|
project: {
|
|
146
168
|
id: string;
|
|
@@ -200,28 +222,6 @@ export declare function createProjectWebhooksRoutes(deps: ProjectWebhooksRouteDe
|
|
|
200
222
|
projectId: string;
|
|
201
223
|
};
|
|
202
224
|
};
|
|
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,10 +423,13 @@ export declare function createProjectWebhooksRoutes(deps: ProjectWebhooksRouteDe
|
|
|
423
423
|
};
|
|
424
424
|
} | {
|
|
425
425
|
output: {
|
|
426
|
-
|
|
426
|
+
ok: boolean;
|
|
427
|
+
status?: number | undefined;
|
|
428
|
+
error?: string | undefined;
|
|
429
|
+
dryRun?: boolean | undefined;
|
|
427
430
|
};
|
|
428
431
|
outputFormat: "json";
|
|
429
|
-
status:
|
|
432
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
430
433
|
input: {
|
|
431
434
|
param: {
|
|
432
435
|
projectId: string;
|
|
@@ -435,13 +438,11 @@ export declare function createProjectWebhooksRoutes(deps: ProjectWebhooksRouteDe
|
|
|
435
438
|
};
|
|
436
439
|
} | {
|
|
437
440
|
output: {
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
error?: string | undefined;
|
|
441
|
-
dryRun?: boolean | undefined;
|
|
441
|
+
error: string;
|
|
442
|
+
code?: "no-boot-project" | undefined;
|
|
442
443
|
};
|
|
443
444
|
outputFormat: "json";
|
|
444
|
-
status:
|
|
445
|
+
status: 404 | 409;
|
|
445
446
|
input: {
|
|
446
447
|
param: {
|
|
447
448
|
projectId: string;
|
|
@@ -451,10 +452,9 @@ export declare function createProjectWebhooksRoutes(deps: ProjectWebhooksRouteDe
|
|
|
451
452
|
} | {
|
|
452
453
|
output: {
|
|
453
454
|
error: string;
|
|
454
|
-
code?: "no-boot-project" | undefined;
|
|
455
455
|
};
|
|
456
456
|
outputFormat: "json";
|
|
457
|
-
status: 404
|
|
457
|
+
status: 404;
|
|
458
458
|
input: {
|
|
459
459
|
param: {
|
|
460
460
|
projectId: string;
|