@maudecode/talaria-web-contracts 1.19.0 → 1.20.0
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/context-detail.d.ts +75 -0
- package/dist/context-detail.js +18 -0
- package/dist/context-detail.js.map +1 -0
- package/dist/gateway-session.d.ts +253 -7
- package/dist/gateway-session.js +63 -3
- package/dist/gateway-session.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/router.d.ts +1398 -191
- package/dist/routes/automation.d.ts +9 -7
- package/dist/routes/automation.js +1 -1
- package/dist/routes/automation.js.map +1 -1
- package/dist/routes/chat.d.ts +303 -40
- package/dist/routes/chat.js +4 -3
- package/dist/routes/chat.js.map +1 -1
- package/dist/routes/core.d.ts +4 -4
- package/dist/routes/git.d.ts +9 -0
- package/dist/routes/git.js +6 -1
- package/dist/routes/git.js.map +1 -1
- package/dist/routes/raw.js +9 -5
- package/dist/routes/raw.js.map +1 -1
- package/dist/routes/sessions.d.ts +921 -124
- package/dist/routes/sessions.js +6 -0
- package/dist/routes/sessions.js.map +1 -1
- package/dist/routes/settings.d.ts +29 -13
- package/dist/routes/settings.js +3 -2
- package/dist/routes/settings.js.map +1 -1
- package/dist/routes/tools.d.ts +314 -30
- package/dist/routes/tools.js +14 -4
- package/dist/routes/tools.js.map +1 -1
- package/dist/routes/workspaces.d.ts +4 -4
- package/dist/sidecar/methods.d.ts +816 -19
- package/dist/sidecar/methods.js +2 -2
- package/dist/sidecar/methods.js.map +1 -1
- package/dist/sidecar/namespaces.d.ts +959 -28
- package/dist/sidecar/namespaces.js +101 -14
- package/dist/sidecar/namespaces.js.map +1 -1
- package/dist/sidecar/rpc.d.ts +1 -0
- package/dist/sidecar/rpc.js +2 -0
- package/dist/sidecar/rpc.js.map +1 -1
- package/dist/sidecar/runtime.d.ts +13 -0
- package/dist/sidecar/runtime.js +9 -0
- package/dist/sidecar/runtime.js.map +1 -1
- package/dist/sidecar/version.d.ts +1 -1
- package/dist/sidecar/version.js +1 -1
- package/dist/sse.d.ts +83 -12
- package/dist/sse.js +8 -2
- package/dist/sse.js.map +1 -1
- package/dist/views.d.ts +584 -103
- package/dist/views.js +54 -11
- package/dist/views.js.map +1 -1
- package/fixtures/sidecar/aux.json +8 -0
- package/fixtures/sidecar/chat.json +14 -0
- package/fixtures/sidecar/checkpoints.json +7 -2
- package/fixtures/sidecar/context-detail.json +77 -0
- package/fixtures/sidecar/cron.json +3 -1
- package/fixtures/sidecar/dashboard_plugins.json +59 -0
- package/fixtures/sidecar/gateway.json +163 -0
- package/fixtures/sidecar/plugin-catalog.json +4 -0
- package/fixtures/sidecar/plugins.json +56 -1
- package/fixtures/sidecar/process.json +32 -0
- package/fixtures/sidecar/rpc.json +4 -0
- package/fixtures/sidecar/runtime.json +3 -3
- package/fixtures/sidecar/state_db.json +10 -0
- package/package.json +1 -1
package/dist/routes/tools.d.ts
CHANGED
|
@@ -78,9 +78,9 @@ export declare const toolsContract: {
|
|
|
78
78
|
load_name: z.ZodOptional<z.ZodString>;
|
|
79
79
|
declared_name: z.ZodOptional<z.ZodString>;
|
|
80
80
|
status: z.ZodOptional<z.ZodEnum<{
|
|
81
|
+
shadowed: "shadowed";
|
|
81
82
|
unique: "unique";
|
|
82
83
|
ambiguous: "ambiguous";
|
|
83
|
-
shadowed: "shadowed";
|
|
84
84
|
}>>;
|
|
85
85
|
tier: z.ZodOptional<z.ZodNumber>;
|
|
86
86
|
}, z.core.$loose>>;
|
|
@@ -368,8 +368,8 @@ export declare const toolsContract: {
|
|
|
368
368
|
enabled: z.ZodBoolean;
|
|
369
369
|
status: z.ZodEnum<{
|
|
370
370
|
error: "error";
|
|
371
|
-
ready: "ready";
|
|
372
371
|
empty: "empty";
|
|
372
|
+
ready: "ready";
|
|
373
373
|
missing: "missing";
|
|
374
374
|
not_directory: "not_directory";
|
|
375
375
|
}>;
|
|
@@ -558,14 +558,14 @@ export declare const toolsContract: {
|
|
|
558
558
|
binary: z.ZodOptional<z.ZodBoolean>;
|
|
559
559
|
mime: z.ZodOptional<z.ZodString>;
|
|
560
560
|
preview: z.ZodOptional<z.ZodEnum<{
|
|
561
|
+
markdown: "markdown";
|
|
562
|
+
html: "html";
|
|
561
563
|
text: "text";
|
|
562
564
|
image: "image";
|
|
563
565
|
audio: "audio";
|
|
564
566
|
video: "video";
|
|
565
567
|
pdf: "pdf";
|
|
566
|
-
markdown: "markdown";
|
|
567
568
|
csv: "csv";
|
|
568
|
-
html: "html";
|
|
569
569
|
binary: "binary";
|
|
570
570
|
}>>;
|
|
571
571
|
table: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
|
|
@@ -581,14 +581,14 @@ export declare const toolsContract: {
|
|
|
581
581
|
binary: z.ZodOptional<z.ZodBoolean>;
|
|
582
582
|
mime: z.ZodOptional<z.ZodString>;
|
|
583
583
|
preview: z.ZodOptional<z.ZodEnum<{
|
|
584
|
+
markdown: "markdown";
|
|
585
|
+
html: "html";
|
|
584
586
|
text: "text";
|
|
585
587
|
image: "image";
|
|
586
588
|
audio: "audio";
|
|
587
589
|
video: "video";
|
|
588
590
|
pdf: "pdf";
|
|
589
|
-
markdown: "markdown";
|
|
590
591
|
csv: "csv";
|
|
591
|
-
html: "html";
|
|
592
592
|
binary: "binary";
|
|
593
593
|
}>>;
|
|
594
594
|
table: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
|
|
@@ -604,14 +604,14 @@ export declare const toolsContract: {
|
|
|
604
604
|
binary: z.ZodOptional<z.ZodBoolean>;
|
|
605
605
|
mime: z.ZodOptional<z.ZodString>;
|
|
606
606
|
preview: z.ZodOptional<z.ZodEnum<{
|
|
607
|
+
markdown: "markdown";
|
|
608
|
+
html: "html";
|
|
607
609
|
text: "text";
|
|
608
610
|
image: "image";
|
|
609
611
|
audio: "audio";
|
|
610
612
|
video: "video";
|
|
611
613
|
pdf: "pdf";
|
|
612
|
-
markdown: "markdown";
|
|
613
614
|
csv: "csv";
|
|
614
|
-
html: "html";
|
|
615
615
|
binary: "binary";
|
|
616
616
|
}>>;
|
|
617
617
|
table: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
|
|
@@ -627,14 +627,14 @@ export declare const toolsContract: {
|
|
|
627
627
|
binary: z.ZodOptional<z.ZodBoolean>;
|
|
628
628
|
mime: z.ZodOptional<z.ZodString>;
|
|
629
629
|
preview: z.ZodOptional<z.ZodEnum<{
|
|
630
|
+
markdown: "markdown";
|
|
631
|
+
html: "html";
|
|
630
632
|
text: "text";
|
|
631
633
|
image: "image";
|
|
632
634
|
audio: "audio";
|
|
633
635
|
video: "video";
|
|
634
636
|
pdf: "pdf";
|
|
635
|
-
markdown: "markdown";
|
|
636
637
|
csv: "csv";
|
|
637
|
-
html: "html";
|
|
638
638
|
binary: "binary";
|
|
639
639
|
}>>;
|
|
640
640
|
table: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
|
|
@@ -859,6 +859,7 @@ export declare const toolsContract: {
|
|
|
859
859
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
860
860
|
page: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
|
|
861
861
|
available: z.ZodBoolean;
|
|
862
|
+
sign_in_required: z.ZodDefault<z.ZodBoolean>;
|
|
862
863
|
connectors: z.ZodArray<z.ZodObject<{
|
|
863
864
|
slug: z.ZodString;
|
|
864
865
|
name: z.ZodString;
|
|
@@ -871,9 +872,9 @@ export declare const toolsContract: {
|
|
|
871
872
|
name: z.ZodString;
|
|
872
873
|
problem: z.ZodNullable<z.ZodEnum<{
|
|
873
874
|
pending: "pending";
|
|
874
|
-
failed: "failed";
|
|
875
875
|
expired: "expired";
|
|
876
876
|
revoked: "revoked";
|
|
877
|
+
failed: "failed";
|
|
877
878
|
inactive: "inactive";
|
|
878
879
|
}>>;
|
|
879
880
|
status_reason: z.ZodNullable<z.ZodString>;
|
|
@@ -936,11 +937,11 @@ export declare const toolsContract: {
|
|
|
936
937
|
kind: z.ZodString;
|
|
937
938
|
state: z.ZodEnum<{
|
|
938
939
|
pending: "pending";
|
|
940
|
+
expired: "expired";
|
|
939
941
|
skipped: "skipped";
|
|
940
942
|
initiated: "initiated";
|
|
941
943
|
connected: "connected";
|
|
942
944
|
failed: "failed";
|
|
943
|
-
expired: "expired";
|
|
944
945
|
not_connected: "not_connected";
|
|
945
946
|
}>;
|
|
946
947
|
detail: z.ZodString;
|
|
@@ -980,11 +981,11 @@ export declare const toolsContract: {
|
|
|
980
981
|
kind: z.ZodString;
|
|
981
982
|
state: z.ZodEnum<{
|
|
982
983
|
pending: "pending";
|
|
984
|
+
expired: "expired";
|
|
983
985
|
skipped: "skipped";
|
|
984
986
|
initiated: "initiated";
|
|
985
987
|
connected: "connected";
|
|
986
988
|
failed: "failed";
|
|
987
|
-
expired: "expired";
|
|
988
989
|
not_connected: "not_connected";
|
|
989
990
|
}>;
|
|
990
991
|
detail: z.ZodString;
|
|
@@ -1027,11 +1028,11 @@ export declare const toolsContract: {
|
|
|
1027
1028
|
kind: z.ZodString;
|
|
1028
1029
|
state: z.ZodEnum<{
|
|
1029
1030
|
pending: "pending";
|
|
1031
|
+
expired: "expired";
|
|
1030
1032
|
skipped: "skipped";
|
|
1031
1033
|
initiated: "initiated";
|
|
1032
1034
|
connected: "connected";
|
|
1033
1035
|
failed: "failed";
|
|
1034
|
-
expired: "expired";
|
|
1035
1036
|
not_connected: "not_connected";
|
|
1036
1037
|
}>;
|
|
1037
1038
|
detail: z.ZodString;
|
|
@@ -1061,6 +1062,10 @@ export declare const toolsContract: {
|
|
|
1061
1062
|
activation: z.ZodOptional<z.ZodString>;
|
|
1062
1063
|
is_active_provider: z.ZodOptional<z.ZodBoolean>;
|
|
1063
1064
|
hooks: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
1065
|
+
update: z.ZodOptional<z.ZodObject<{
|
|
1066
|
+
available: z.ZodBoolean;
|
|
1067
|
+
latest_revision: z.ZodOptional<z.ZodString>;
|
|
1068
|
+
}, z.core.$strip>>;
|
|
1064
1069
|
settings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1065
1070
|
key: z.ZodString;
|
|
1066
1071
|
type: z.ZodEnum<{
|
|
@@ -1081,6 +1086,18 @@ export declare const toolsContract: {
|
|
|
1081
1086
|
has_value: z.ZodOptional<z.ZodBoolean>;
|
|
1082
1087
|
locked: z.ZodOptional<z.ZodBoolean>;
|
|
1083
1088
|
}, z.core.$strip>>>;
|
|
1089
|
+
oauth_clients: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1090
|
+
id: z.ZodString;
|
|
1091
|
+
state: z.ZodEnum<{
|
|
1092
|
+
signed_in: "signed_in";
|
|
1093
|
+
sign_in_needed: "sign_in_needed";
|
|
1094
|
+
revoked: "revoked";
|
|
1095
|
+
logged_out: "logged_out";
|
|
1096
|
+
}>;
|
|
1097
|
+
authorize_host: z.ZodString;
|
|
1098
|
+
token_host: z.ZodString;
|
|
1099
|
+
can_sign_out: z.ZodBoolean;
|
|
1100
|
+
}, z.core.$strip>>>;
|
|
1084
1101
|
}, z.core.$loose>>;
|
|
1085
1102
|
empty: z.ZodOptional<z.ZodBoolean>;
|
|
1086
1103
|
read_only: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1088,6 +1105,67 @@ export declare const toolsContract: {
|
|
|
1088
1105
|
unavailable: z.ZodOptional<z.ZodBoolean>;
|
|
1089
1106
|
plugin_isolation_advisory: z.ZodOptional<z.ZodBoolean>;
|
|
1090
1107
|
}, z.core.$loose>, Record<never, never>, Record<never, never>>;
|
|
1108
|
+
pluginCatalog: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1109
|
+
query: z.ZodDefault<z.ZodString>;
|
|
1110
|
+
offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
1111
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
1112
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1113
|
+
supported: z.ZodBoolean;
|
|
1114
|
+
read_only: z.ZodOptional<z.ZodBoolean>;
|
|
1115
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
1116
|
+
name: z.ZodString;
|
|
1117
|
+
title: z.ZodString;
|
|
1118
|
+
description: z.ZodString;
|
|
1119
|
+
repo: z.ZodString;
|
|
1120
|
+
sha: z.ZodString;
|
|
1121
|
+
tier: z.ZodString;
|
|
1122
|
+
category: z.ZodString;
|
|
1123
|
+
requirements: z.ZodArray<z.ZodString>;
|
|
1124
|
+
installed_key: z.ZodNullable<z.ZodString>;
|
|
1125
|
+
installed_sha: z.ZodNullable<z.ZodString>;
|
|
1126
|
+
can_install: z.ZodBoolean;
|
|
1127
|
+
refusal: z.ZodNullable<z.ZodString>;
|
|
1128
|
+
}, z.core.$strip>>;
|
|
1129
|
+
total: z.ZodNumber;
|
|
1130
|
+
next_offset: z.ZodNullable<z.ZodNumber>;
|
|
1131
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1132
|
+
pluginInstall: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1133
|
+
name: z.ZodString;
|
|
1134
|
+
consent_token: z.ZodOptional<z.ZodString>;
|
|
1135
|
+
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1136
|
+
name: z.ZodString;
|
|
1137
|
+
key: z.ZodString;
|
|
1138
|
+
status: z.ZodLiteral<"installed">;
|
|
1139
|
+
enabled: z.ZodLiteral<false>;
|
|
1140
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1141
|
+
name: z.ZodString;
|
|
1142
|
+
status: z.ZodLiteral<"needs_consent">;
|
|
1143
|
+
findings: z.ZodString;
|
|
1144
|
+
consent_token: z.ZodString;
|
|
1145
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1146
|
+
name: z.ZodString;
|
|
1147
|
+
status: z.ZodLiteral<"blocked">;
|
|
1148
|
+
findings: z.ZodString;
|
|
1149
|
+
}, z.core.$strip>], "status">, Record<never, never>, Record<never, never>>;
|
|
1150
|
+
pluginUpdate: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1151
|
+
key: z.ZodString;
|
|
1152
|
+
accept_caution: z.ZodDefault<z.ZodBoolean>;
|
|
1153
|
+
consent_token: z.ZodOptional<z.ZodString>;
|
|
1154
|
+
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1155
|
+
key: z.ZodString;
|
|
1156
|
+
status: z.ZodLiteral<"updated">;
|
|
1157
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1158
|
+
key: z.ZodString;
|
|
1159
|
+
status: z.ZodLiteral<"needs_consent">;
|
|
1160
|
+
verdict: z.ZodLiteral<"caution">;
|
|
1161
|
+
findings: z.ZodString;
|
|
1162
|
+
consent_token: z.ZodString;
|
|
1163
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1164
|
+
key: z.ZodString;
|
|
1165
|
+
status: z.ZodLiteral<"blocked">;
|
|
1166
|
+
verdict: z.ZodString;
|
|
1167
|
+
findings: z.ZodString;
|
|
1168
|
+
}, z.core.$strip>], "status">, Record<never, never>, Record<never, never>>;
|
|
1091
1169
|
pluginSettings: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1092
1170
|
key: z.ZodString;
|
|
1093
1171
|
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -1116,16 +1194,47 @@ export declare const toolsContract: {
|
|
|
1116
1194
|
has_value: z.ZodOptional<z.ZodBoolean>;
|
|
1117
1195
|
locked: z.ZodOptional<z.ZodBoolean>;
|
|
1118
1196
|
}, z.core.$strip>>;
|
|
1197
|
+
runtime_application: z.ZodEnum<{
|
|
1198
|
+
unknown: "unknown";
|
|
1199
|
+
applied: "applied";
|
|
1200
|
+
restart_required: "restart_required";
|
|
1201
|
+
}>;
|
|
1202
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1203
|
+
pluginOAuthRedirect: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1204
|
+
flow_id: z.ZodString;
|
|
1205
|
+
url: z.ZodString;
|
|
1206
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1207
|
+
ok: z.ZodOptional<z.ZodBoolean>;
|
|
1208
|
+
status: z.ZodOptional<z.ZodString>;
|
|
1209
|
+
url: z.ZodOptional<z.ZodString>;
|
|
1210
|
+
verification_url: z.ZodOptional<z.ZodString>;
|
|
1211
|
+
user_code: z.ZodOptional<z.ZodString>;
|
|
1212
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1213
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1214
|
+
flow_id: z.ZodOptional<z.ZodString>;
|
|
1215
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
1216
|
+
expires_in: z.ZodOptional<z.ZodNumber>;
|
|
1217
|
+
interval: z.ZodOptional<z.ZodNumber>;
|
|
1218
|
+
authorize_host: z.ZodOptional<z.ZodString>;
|
|
1219
|
+
token_host: z.ZodOptional<z.ZodString>;
|
|
1220
|
+
redirect_uri: z.ZodOptional<z.ZodString>;
|
|
1221
|
+
}, z.core.$loose>, Record<never, never>, Record<never, never>>;
|
|
1222
|
+
pluginOAuthLogout: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1223
|
+
key: z.ZodString;
|
|
1224
|
+
id: z.ZodString;
|
|
1225
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1226
|
+
ok: z.ZodLiteral<true>;
|
|
1227
|
+
removed: z.ZodBoolean;
|
|
1119
1228
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1120
1229
|
updates: {
|
|
1121
1230
|
check: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
|
|
1122
1231
|
agent_recovery: z.ZodOptional<z.ZodObject<{
|
|
1123
1232
|
phase: z.ZodEnum<{
|
|
1233
|
+
blocked: "blocked";
|
|
1124
1234
|
running: "running";
|
|
1125
1235
|
waiting: "waiting";
|
|
1126
1236
|
idle: "idle";
|
|
1127
1237
|
complete: "complete";
|
|
1128
|
-
blocked: "blocked";
|
|
1129
1238
|
}>;
|
|
1130
1239
|
attempt: z.ZodNumber;
|
|
1131
1240
|
detail: z.ZodString;
|
|
@@ -1295,11 +1404,11 @@ export declare const toolsContract: {
|
|
|
1295
1404
|
}, z.core.$strip>, z.ZodObject<{
|
|
1296
1405
|
agent_recovery: z.ZodOptional<z.ZodObject<{
|
|
1297
1406
|
phase: z.ZodEnum<{
|
|
1407
|
+
blocked: "blocked";
|
|
1298
1408
|
running: "running";
|
|
1299
1409
|
waiting: "waiting";
|
|
1300
1410
|
idle: "idle";
|
|
1301
1411
|
complete: "complete";
|
|
1302
|
-
blocked: "blocked";
|
|
1303
1412
|
}>;
|
|
1304
1413
|
attempt: z.ZodNumber;
|
|
1305
1414
|
detail: z.ZodString;
|
|
@@ -1631,12 +1740,13 @@ export declare const toolsContract: {
|
|
|
1631
1740
|
}>>;
|
|
1632
1741
|
phase: z.ZodUnion<readonly [z.ZodEnum<{
|
|
1633
1742
|
unknown: "unknown";
|
|
1634
|
-
failed: "failed";
|
|
1635
1743
|
blocked: "blocked";
|
|
1744
|
+
restarting: "restarting";
|
|
1745
|
+
failed: "failed";
|
|
1636
1746
|
applying: "applying";
|
|
1637
1747
|
awaiting_confirmation: "awaiting_confirmation";
|
|
1638
1748
|
waiting_for_idle: "waiting_for_idle";
|
|
1639
|
-
|
|
1749
|
+
verifying: "verifying";
|
|
1640
1750
|
succeeded: "succeeded";
|
|
1641
1751
|
}>, z.ZodString]>;
|
|
1642
1752
|
severity: z.ZodEnum<{
|
|
@@ -1674,6 +1784,30 @@ export declare const toolsContract: {
|
|
|
1674
1784
|
active: z.ZodBoolean;
|
|
1675
1785
|
requires_interaction: z.ZodBoolean;
|
|
1676
1786
|
can_dismiss: z.ZodBoolean;
|
|
1787
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
1788
|
+
id: z.ZodEnum<{
|
|
1789
|
+
ready: "ready";
|
|
1790
|
+
gateway_restart: "gateway_restart";
|
|
1791
|
+
install: "install";
|
|
1792
|
+
web_restart: "web_restart";
|
|
1793
|
+
gateway_wait: "gateway_wait";
|
|
1794
|
+
agent_ready: "agent_ready";
|
|
1795
|
+
}>;
|
|
1796
|
+
label: z.ZodString;
|
|
1797
|
+
state: z.ZodEnum<{
|
|
1798
|
+
pending: "pending";
|
|
1799
|
+
active: "active";
|
|
1800
|
+
failed: "failed";
|
|
1801
|
+
done: "done";
|
|
1802
|
+
}>;
|
|
1803
|
+
}, z.core.$strip>>;
|
|
1804
|
+
presents_dialog: z.ZodBoolean;
|
|
1805
|
+
dialog_close: z.ZodEnum<{
|
|
1806
|
+
auto: "auto";
|
|
1807
|
+
none: "none";
|
|
1808
|
+
close: "close";
|
|
1809
|
+
restart_later: "restart_later";
|
|
1810
|
+
}>;
|
|
1677
1811
|
}, z.core.$strip>>;
|
|
1678
1812
|
tab_update: z.ZodNullable<z.ZodObject<{
|
|
1679
1813
|
id: z.ZodUUID;
|
|
@@ -1684,12 +1818,13 @@ export declare const toolsContract: {
|
|
|
1684
1818
|
}>>;
|
|
1685
1819
|
phase: z.ZodUnion<readonly [z.ZodEnum<{
|
|
1686
1820
|
unknown: "unknown";
|
|
1687
|
-
failed: "failed";
|
|
1688
1821
|
blocked: "blocked";
|
|
1822
|
+
restarting: "restarting";
|
|
1823
|
+
failed: "failed";
|
|
1689
1824
|
applying: "applying";
|
|
1690
1825
|
awaiting_confirmation: "awaiting_confirmation";
|
|
1691
1826
|
waiting_for_idle: "waiting_for_idle";
|
|
1692
|
-
|
|
1827
|
+
verifying: "verifying";
|
|
1693
1828
|
succeeded: "succeeded";
|
|
1694
1829
|
}>, z.ZodString]>;
|
|
1695
1830
|
severity: z.ZodEnum<{
|
|
@@ -1727,6 +1862,30 @@ export declare const toolsContract: {
|
|
|
1727
1862
|
active: z.ZodBoolean;
|
|
1728
1863
|
requires_interaction: z.ZodBoolean;
|
|
1729
1864
|
can_dismiss: z.ZodBoolean;
|
|
1865
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
1866
|
+
id: z.ZodEnum<{
|
|
1867
|
+
ready: "ready";
|
|
1868
|
+
gateway_restart: "gateway_restart";
|
|
1869
|
+
install: "install";
|
|
1870
|
+
web_restart: "web_restart";
|
|
1871
|
+
gateway_wait: "gateway_wait";
|
|
1872
|
+
agent_ready: "agent_ready";
|
|
1873
|
+
}>;
|
|
1874
|
+
label: z.ZodString;
|
|
1875
|
+
state: z.ZodEnum<{
|
|
1876
|
+
pending: "pending";
|
|
1877
|
+
active: "active";
|
|
1878
|
+
failed: "failed";
|
|
1879
|
+
done: "done";
|
|
1880
|
+
}>;
|
|
1881
|
+
}, z.core.$strip>>;
|
|
1882
|
+
presents_dialog: z.ZodBoolean;
|
|
1883
|
+
dialog_close: z.ZodEnum<{
|
|
1884
|
+
auto: "auto";
|
|
1885
|
+
none: "none";
|
|
1886
|
+
close: "close";
|
|
1887
|
+
restart_later: "restart_later";
|
|
1888
|
+
}>;
|
|
1730
1889
|
}, z.core.$strip>>;
|
|
1731
1890
|
tab_joined_at: z.ZodNullable<z.ZodISODateTime>;
|
|
1732
1891
|
unread_count: z.ZodNumber;
|
|
@@ -1746,12 +1905,13 @@ export declare const toolsContract: {
|
|
|
1746
1905
|
}>>;
|
|
1747
1906
|
phase: z.ZodUnion<readonly [z.ZodEnum<{
|
|
1748
1907
|
unknown: "unknown";
|
|
1749
|
-
failed: "failed";
|
|
1750
1908
|
blocked: "blocked";
|
|
1909
|
+
restarting: "restarting";
|
|
1910
|
+
failed: "failed";
|
|
1751
1911
|
applying: "applying";
|
|
1752
1912
|
awaiting_confirmation: "awaiting_confirmation";
|
|
1753
1913
|
waiting_for_idle: "waiting_for_idle";
|
|
1754
|
-
|
|
1914
|
+
verifying: "verifying";
|
|
1755
1915
|
succeeded: "succeeded";
|
|
1756
1916
|
}>, z.ZodString]>;
|
|
1757
1917
|
severity: z.ZodEnum<{
|
|
@@ -1789,6 +1949,30 @@ export declare const toolsContract: {
|
|
|
1789
1949
|
active: z.ZodBoolean;
|
|
1790
1950
|
requires_interaction: z.ZodBoolean;
|
|
1791
1951
|
can_dismiss: z.ZodBoolean;
|
|
1952
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
1953
|
+
id: z.ZodEnum<{
|
|
1954
|
+
ready: "ready";
|
|
1955
|
+
gateway_restart: "gateway_restart";
|
|
1956
|
+
install: "install";
|
|
1957
|
+
web_restart: "web_restart";
|
|
1958
|
+
gateway_wait: "gateway_wait";
|
|
1959
|
+
agent_ready: "agent_ready";
|
|
1960
|
+
}>;
|
|
1961
|
+
label: z.ZodString;
|
|
1962
|
+
state: z.ZodEnum<{
|
|
1963
|
+
pending: "pending";
|
|
1964
|
+
active: "active";
|
|
1965
|
+
failed: "failed";
|
|
1966
|
+
done: "done";
|
|
1967
|
+
}>;
|
|
1968
|
+
}, z.core.$strip>>;
|
|
1969
|
+
presents_dialog: z.ZodBoolean;
|
|
1970
|
+
dialog_close: z.ZodEnum<{
|
|
1971
|
+
auto: "auto";
|
|
1972
|
+
none: "none";
|
|
1973
|
+
close: "close";
|
|
1974
|
+
restart_later: "restart_later";
|
|
1975
|
+
}>;
|
|
1792
1976
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1793
1977
|
dismiss: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1794
1978
|
id: z.ZodUUID;
|
|
@@ -1818,12 +2002,13 @@ export declare const toolsContract: {
|
|
|
1818
2002
|
}>>;
|
|
1819
2003
|
phase: z.ZodUnion<readonly [z.ZodEnum<{
|
|
1820
2004
|
unknown: "unknown";
|
|
1821
|
-
failed: "failed";
|
|
1822
2005
|
blocked: "blocked";
|
|
2006
|
+
restarting: "restarting";
|
|
2007
|
+
failed: "failed";
|
|
1823
2008
|
applying: "applying";
|
|
1824
2009
|
awaiting_confirmation: "awaiting_confirmation";
|
|
1825
2010
|
waiting_for_idle: "waiting_for_idle";
|
|
1826
|
-
|
|
2011
|
+
verifying: "verifying";
|
|
1827
2012
|
succeeded: "succeeded";
|
|
1828
2013
|
}>, z.ZodString]>;
|
|
1829
2014
|
severity: z.ZodEnum<{
|
|
@@ -1861,6 +2046,30 @@ export declare const toolsContract: {
|
|
|
1861
2046
|
active: z.ZodBoolean;
|
|
1862
2047
|
requires_interaction: z.ZodBoolean;
|
|
1863
2048
|
can_dismiss: z.ZodBoolean;
|
|
2049
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
2050
|
+
id: z.ZodEnum<{
|
|
2051
|
+
ready: "ready";
|
|
2052
|
+
gateway_restart: "gateway_restart";
|
|
2053
|
+
install: "install";
|
|
2054
|
+
web_restart: "web_restart";
|
|
2055
|
+
gateway_wait: "gateway_wait";
|
|
2056
|
+
agent_ready: "agent_ready";
|
|
2057
|
+
}>;
|
|
2058
|
+
label: z.ZodString;
|
|
2059
|
+
state: z.ZodEnum<{
|
|
2060
|
+
pending: "pending";
|
|
2061
|
+
active: "active";
|
|
2062
|
+
failed: "failed";
|
|
2063
|
+
done: "done";
|
|
2064
|
+
}>;
|
|
2065
|
+
}, z.core.$strip>>;
|
|
2066
|
+
presents_dialog: z.ZodBoolean;
|
|
2067
|
+
dialog_close: z.ZodEnum<{
|
|
2068
|
+
auto: "auto";
|
|
2069
|
+
none: "none";
|
|
2070
|
+
close: "close";
|
|
2071
|
+
restart_later: "restart_later";
|
|
2072
|
+
}>;
|
|
1864
2073
|
}, z.core.$strip>>;
|
|
1865
2074
|
tab_update: z.ZodNullable<z.ZodObject<{
|
|
1866
2075
|
id: z.ZodUUID;
|
|
@@ -1871,12 +2080,13 @@ export declare const toolsContract: {
|
|
|
1871
2080
|
}>>;
|
|
1872
2081
|
phase: z.ZodUnion<readonly [z.ZodEnum<{
|
|
1873
2082
|
unknown: "unknown";
|
|
1874
|
-
failed: "failed";
|
|
1875
2083
|
blocked: "blocked";
|
|
2084
|
+
restarting: "restarting";
|
|
2085
|
+
failed: "failed";
|
|
1876
2086
|
applying: "applying";
|
|
1877
2087
|
awaiting_confirmation: "awaiting_confirmation";
|
|
1878
2088
|
waiting_for_idle: "waiting_for_idle";
|
|
1879
|
-
|
|
2089
|
+
verifying: "verifying";
|
|
1880
2090
|
succeeded: "succeeded";
|
|
1881
2091
|
}>, z.ZodString]>;
|
|
1882
2092
|
severity: z.ZodEnum<{
|
|
@@ -1914,6 +2124,30 @@ export declare const toolsContract: {
|
|
|
1914
2124
|
active: z.ZodBoolean;
|
|
1915
2125
|
requires_interaction: z.ZodBoolean;
|
|
1916
2126
|
can_dismiss: z.ZodBoolean;
|
|
2127
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
2128
|
+
id: z.ZodEnum<{
|
|
2129
|
+
ready: "ready";
|
|
2130
|
+
gateway_restart: "gateway_restart";
|
|
2131
|
+
install: "install";
|
|
2132
|
+
web_restart: "web_restart";
|
|
2133
|
+
gateway_wait: "gateway_wait";
|
|
2134
|
+
agent_ready: "agent_ready";
|
|
2135
|
+
}>;
|
|
2136
|
+
label: z.ZodString;
|
|
2137
|
+
state: z.ZodEnum<{
|
|
2138
|
+
pending: "pending";
|
|
2139
|
+
active: "active";
|
|
2140
|
+
failed: "failed";
|
|
2141
|
+
done: "done";
|
|
2142
|
+
}>;
|
|
2143
|
+
}, z.core.$strip>>;
|
|
2144
|
+
presents_dialog: z.ZodBoolean;
|
|
2145
|
+
dialog_close: z.ZodEnum<{
|
|
2146
|
+
auto: "auto";
|
|
2147
|
+
none: "none";
|
|
2148
|
+
close: "close";
|
|
2149
|
+
restart_later: "restart_later";
|
|
2150
|
+
}>;
|
|
1917
2151
|
}, z.core.$strip>>;
|
|
1918
2152
|
tab_joined_at: z.ZodNullable<z.ZodISODateTime>;
|
|
1919
2153
|
unread_count: z.ZodNumber;
|
|
@@ -1932,12 +2166,13 @@ export declare const toolsContract: {
|
|
|
1932
2166
|
}>>;
|
|
1933
2167
|
phase: z.ZodUnion<readonly [z.ZodEnum<{
|
|
1934
2168
|
unknown: "unknown";
|
|
1935
|
-
failed: "failed";
|
|
1936
2169
|
blocked: "blocked";
|
|
2170
|
+
restarting: "restarting";
|
|
2171
|
+
failed: "failed";
|
|
1937
2172
|
applying: "applying";
|
|
1938
2173
|
awaiting_confirmation: "awaiting_confirmation";
|
|
1939
2174
|
waiting_for_idle: "waiting_for_idle";
|
|
1940
|
-
|
|
2175
|
+
verifying: "verifying";
|
|
1941
2176
|
succeeded: "succeeded";
|
|
1942
2177
|
}>, z.ZodString]>;
|
|
1943
2178
|
severity: z.ZodEnum<{
|
|
@@ -1975,6 +2210,30 @@ export declare const toolsContract: {
|
|
|
1975
2210
|
active: z.ZodBoolean;
|
|
1976
2211
|
requires_interaction: z.ZodBoolean;
|
|
1977
2212
|
can_dismiss: z.ZodBoolean;
|
|
2213
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
2214
|
+
id: z.ZodEnum<{
|
|
2215
|
+
ready: "ready";
|
|
2216
|
+
gateway_restart: "gateway_restart";
|
|
2217
|
+
install: "install";
|
|
2218
|
+
web_restart: "web_restart";
|
|
2219
|
+
gateway_wait: "gateway_wait";
|
|
2220
|
+
agent_ready: "agent_ready";
|
|
2221
|
+
}>;
|
|
2222
|
+
label: z.ZodString;
|
|
2223
|
+
state: z.ZodEnum<{
|
|
2224
|
+
pending: "pending";
|
|
2225
|
+
active: "active";
|
|
2226
|
+
failed: "failed";
|
|
2227
|
+
done: "done";
|
|
2228
|
+
}>;
|
|
2229
|
+
}, z.core.$strip>>;
|
|
2230
|
+
presents_dialog: z.ZodBoolean;
|
|
2231
|
+
dialog_close: z.ZodEnum<{
|
|
2232
|
+
auto: "auto";
|
|
2233
|
+
none: "none";
|
|
2234
|
+
close: "close";
|
|
2235
|
+
restart_later: "restart_later";
|
|
2236
|
+
}>;
|
|
1978
2237
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1979
2238
|
action: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1980
2239
|
id: z.ZodUUID;
|
|
@@ -1990,12 +2249,13 @@ export declare const toolsContract: {
|
|
|
1990
2249
|
}>>;
|
|
1991
2250
|
phase: z.ZodUnion<readonly [z.ZodEnum<{
|
|
1992
2251
|
unknown: "unknown";
|
|
1993
|
-
failed: "failed";
|
|
1994
2252
|
blocked: "blocked";
|
|
2253
|
+
restarting: "restarting";
|
|
2254
|
+
failed: "failed";
|
|
1995
2255
|
applying: "applying";
|
|
1996
2256
|
awaiting_confirmation: "awaiting_confirmation";
|
|
1997
2257
|
waiting_for_idle: "waiting_for_idle";
|
|
1998
|
-
|
|
2258
|
+
verifying: "verifying";
|
|
1999
2259
|
succeeded: "succeeded";
|
|
2000
2260
|
}>, z.ZodString]>;
|
|
2001
2261
|
severity: z.ZodEnum<{
|
|
@@ -2033,6 +2293,30 @@ export declare const toolsContract: {
|
|
|
2033
2293
|
active: z.ZodBoolean;
|
|
2034
2294
|
requires_interaction: z.ZodBoolean;
|
|
2035
2295
|
can_dismiss: z.ZodBoolean;
|
|
2296
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
2297
|
+
id: z.ZodEnum<{
|
|
2298
|
+
ready: "ready";
|
|
2299
|
+
gateway_restart: "gateway_restart";
|
|
2300
|
+
install: "install";
|
|
2301
|
+
web_restart: "web_restart";
|
|
2302
|
+
gateway_wait: "gateway_wait";
|
|
2303
|
+
agent_ready: "agent_ready";
|
|
2304
|
+
}>;
|
|
2305
|
+
label: z.ZodString;
|
|
2306
|
+
state: z.ZodEnum<{
|
|
2307
|
+
pending: "pending";
|
|
2308
|
+
active: "active";
|
|
2309
|
+
failed: "failed";
|
|
2310
|
+
done: "done";
|
|
2311
|
+
}>;
|
|
2312
|
+
}, z.core.$strip>>;
|
|
2313
|
+
presents_dialog: z.ZodBoolean;
|
|
2314
|
+
dialog_close: z.ZodEnum<{
|
|
2315
|
+
auto: "auto";
|
|
2316
|
+
none: "none";
|
|
2317
|
+
close: "close";
|
|
2318
|
+
restart_later: "restart_later";
|
|
2319
|
+
}>;
|
|
2036
2320
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
2037
2321
|
};
|
|
2038
2322
|
transcribeCapability: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
|
package/dist/routes/tools.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { oc } from '@orpc/contract';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { SkillsSchema, SkillContentSchema, SkillsUsageSchema, MemorySchema, PromptSchema, PromptsSchema, CommandsSchema, LogsSchema, InsightsSchema, AgentHealthSchema, SystemHealthSchema, McpServerSchema, McpServersSchema, McpToolsSchema, ConnectorsPageSchema, ConnectorToolsViewSchema, ConnectorOperationViewSchema, PluginsSchema, UpdatesCheckSchema, UpdatesSummarySchema, UpdateApplySchema, UpdateNotificationsSchema, UpdateNotificationSchema, TabIdSchema, FrontendBuildIdSchema, NotesSourcesSchema, NotesSearchSchema, NoteItemSchema, WikiStatusSchema, WikiBrowseSchema, WikiPageSchema, DashboardStatusSchema, DashboardConfigSchema, GatewayStatusSchema, GatewayActionSchema, ProjectOsDashboardSchema, TranscribeCapabilitySchema, SpeechPrepareSchema, PluginSettingViewSchema } from '../views.js';
|
|
4
|
-
import { ToolsetsCatalogSchema, CommandBundleInvocationSchema, CommandBundleSchema, PendingWriteSchema, PendingWriteRefSchema } from '../sidecar/namespaces.js';
|
|
3
|
+
import { SkillsSchema, SkillContentSchema, SkillsUsageSchema, MemorySchema, PromptSchema, PromptsSchema, CommandsSchema, LogsSchema, InsightsSchema, AgentHealthSchema, SystemHealthSchema, McpServerSchema, McpServersSchema, McpToolsSchema, ConnectorsPageSchema, ConnectorToolsViewSchema, ConnectorOperationViewSchema, PluginsSchema, UpdatesCheckSchema, UpdatesSummarySchema, UpdateApplySchema, UpdateNotificationsSchema, UpdateNotificationSchema, TabIdSchema, FrontendBuildIdSchema, NotesSourcesSchema, NotesSearchSchema, NoteItemSchema, WikiStatusSchema, WikiBrowseSchema, WikiPageSchema, DashboardStatusSchema, DashboardConfigSchema, GatewayStatusSchema, GatewayActionSchema, ProjectOsDashboardSchema, TranscribeCapabilitySchema, SpeechPrepareSchema, PluginSettingViewSchema, OnboardingOAuthSchema } from '../views.js';
|
|
4
|
+
import { PluginCatalogQuerySchema, PluginCatalogSchema, PluginInstallInputSchema, PluginInstallResultSchema, PluginRuntimeApplicationSchema, PluginUpdateResultSchema, ToolsetsCatalogSchema, CommandBundleInvocationSchema, CommandBundleSchema, PendingWriteSchema, PendingWriteRefSchema } from '../sidecar/namespaces.js';
|
|
5
5
|
/** Skills, memory, prompts, commands, notes, insights, logs, health, MCP, plugins, updates, and diagnostics. */
|
|
6
6
|
const Json = z.unknown();
|
|
7
7
|
const Loose = z.record(z.string(), z.unknown());
|
|
@@ -120,9 +120,19 @@ export const toolsContract = {
|
|
|
120
120
|
respond: oc.route({ method: 'POST', path: '/api/connectors/operations/{op_id}', tags, summary: '`skip`, `retry` or `approve` (with `env`) one `target`, as its `actions` allow, or `continue` the card without the rest.' }).input(z.object({ op_id: z.string().min(1), action: z.enum(['skip', 'retry', 'approve', 'continue']), target: z.string().optional(), env: z.record(z.string(), z.string()).optional() })).output(ConnectorOperationViewSchema),
|
|
121
121
|
},
|
|
122
122
|
plugins: oc.route({ method: 'GET', path: '/api/plugins', tags }).output(PluginsSchema),
|
|
123
|
-
|
|
123
|
+
pluginCatalog: oc.route({ method: 'GET', path: '/api/plugins/catalog', tags }).input(PluginCatalogQuerySchema).output(PluginCatalogSchema),
|
|
124
|
+
pluginInstall: oc.route({ method: 'POST', path: '/api/plugins/install', tags, summary: 'Operator only: preview or confirm a reviewed catalog pin. Confirmation is single use and binds the profile, catalog entry and staged tree. Native scan and admission apply; no replacement, dependency approval, enabling or Desktop UI grant.' })
|
|
125
|
+
.input(PluginInstallInputSchema).output(PluginInstallResultSchema),
|
|
126
|
+
pluginUpdate: oc.route({ method: 'POST', path: '/api/plugins/update', tags, summary: 'Operator only: update a profile-installed Git plugin through the Agent scan transaction. Caution requires accept_caution plus the single-use consent_token bound to the profile, installation and scanned revision; changed or expired consent returns 409. Dangerous always blocks.' })
|
|
127
|
+
.input(z.object({ key: z.string().trim().min(1), accept_caution: z.boolean().default(false), consent_token: z.string().min(1).max(128).optional() }))
|
|
128
|
+
.output(PluginUpdateResultSchema),
|
|
129
|
+
pluginSettings: oc.route({ method: 'POST', path: '/api/plugins/settings', tags, summary: 'TAL-806 (operator only): save a plugin\'s manifest-declared settings. `values` holds non-secret fields as the form entered them (numbers and JSON as text); the server checks each against the field list, writes the changed ones to `plugins.entries.<key>.settings`, and writes `secrets` to the profile `.env` under each field\'s `env` name (an empty one removes it). Secrets are written first; when a later write is refused, the ones already written are restored. 400 for an undeclared key, a bad value or a `locked` secret; 409 when the manifest changed; 503 when the Agent sidecar stopped before confirming (secrets stay written); 403 on a managed install, 404 for an unknown plugin. After persistence, runtime_application separately reports applied, restart_required, or unknown; runtime reconnect failures never roll saved secrets back.' })
|
|
124
130
|
.input(z.object({ key: z.string().min(1), values: z.record(z.string(), Json).optional(), secrets: z.record(z.string(), z.string()).optional() }))
|
|
125
|
-
.output(z.object({ ok: z.literal(true), key: z.string(), written: z.array(z.string()), settings: z.array(PluginSettingViewSchema) })),
|
|
131
|
+
.output(z.object({ ok: z.literal(true), key: z.string(), written: z.array(z.string()), settings: z.array(PluginSettingViewSchema), runtime_application: PluginRuntimeApplicationSchema })),
|
|
132
|
+
pluginOAuthRedirect: oc.route({ method: 'POST', path: '/api/plugins/oauth/redirect', tags, summary: 'TAL-1276 (operator only): finish a plugin client\'s browser sign-in with `url`, the address the browser showed after the approval, when that address does not open on the Agent\'s machine. 400 `oauth_redirect_invalid` unless it is the flow\'s `redirect_uri` on 127.0.0.1 with the flow\'s `state`; 404 for an unknown flow, 409 `oauth_flow_ended` once it ended. Poll the flow afterwards.' })
|
|
133
|
+
.input(z.object({ flow_id: z.string().min(1), url: z.string().min(1) })).output(OnboardingOAuthSchema),
|
|
134
|
+
pluginOAuthLogout: oc.route({ method: 'POST', path: '/api/plugins/oauth/logout', tags, summary: 'TAL-1276 (operator only): sign out of a plugin-declared OAuth client (`hermes auth logout <key>:<id>`). `removed` is false when no grant was stored.' })
|
|
135
|
+
.input(z.object({ key: z.string().min(1), id: z.string().min(1) })).output(z.object({ ok: z.literal(true), removed: z.boolean() })),
|
|
126
136
|
updates: {
|
|
127
137
|
check: oc.route({ method: 'GET', path: '/api/updates/check', tags, summary: 'Cached status; `POST` runs the check. Git source installs can update from completed releases (stable) or origin/main (experimental); direct global npm installs can update to completed stable npm releases.' }).output(UpdatesCheckSchema),
|
|
128
138
|
checkNow: oc.route({ method: 'POST', path: '/api/updates/check', tags }).input(z.object({ force: Json.optional(), channel: z.string().nullable().optional(), agent_channel: AgentOptions.agent_channel })).output(UpdatesCheckSchema),
|