@dexto/client-sdk 1.5.8 → 1.6.1

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/client.d.ts CHANGED
@@ -81,7 +81,7 @@ export declare function createDextoClient(config: ClientConfig): {
81
81
  displayName: string;
82
82
  filePath: string;
83
83
  sizeBytes: number;
84
- source?: "manual" | "huggingface" | undefined;
84
+ source?: "huggingface" | "manual" | undefined;
85
85
  contextLength?: number | undefined;
86
86
  }[];
87
87
  };
@@ -193,13 +193,9 @@ export declare function createDextoClient(config: ClientConfig): {
193
193
  $get: {
194
194
  input: {};
195
195
  output: {
196
- internalTools: {
197
- description: string;
198
- name: string;
199
- }[];
200
- customTools: {
196
+ blob: {
201
197
  type: string;
202
- category: "customTools" | "compaction" | "blob" | "database";
198
+ category: "blob" | "tools" | "compaction" | "database";
203
199
  metadata?: {
204
200
  [x: string]: import("hono/utils/types").JSONValue;
205
201
  description?: string | undefined;
@@ -208,31 +204,35 @@ export declare function createDextoClient(config: ClientConfig): {
208
204
  }[];
209
205
  compaction: {
210
206
  type: string;
211
- category: "customTools" | "compaction" | "blob" | "database";
207
+ category: "blob" | "tools" | "compaction" | "database";
212
208
  metadata?: {
213
209
  [x: string]: import("hono/utils/types").JSONValue;
214
210
  description?: string | undefined;
215
211
  displayName?: string | undefined;
216
212
  } | undefined;
217
213
  }[];
218
- blob: {
214
+ database: {
219
215
  type: string;
220
- category: "customTools" | "compaction" | "blob" | "database";
216
+ category: "blob" | "tools" | "compaction" | "database";
221
217
  metadata?: {
222
218
  [x: string]: import("hono/utils/types").JSONValue;
223
219
  description?: string | undefined;
224
220
  displayName?: string | undefined;
225
221
  } | undefined;
226
222
  }[];
227
- database: {
223
+ toolFactories: {
228
224
  type: string;
229
- category: "customTools" | "compaction" | "blob" | "database";
225
+ category: "blob" | "tools" | "compaction" | "database";
230
226
  metadata?: {
231
227
  [x: string]: import("hono/utils/types").JSONValue;
232
228
  description?: string | undefined;
233
229
  displayName?: string | undefined;
234
230
  } | undefined;
235
231
  }[];
232
+ builtinTools: {
233
+ description: string;
234
+ name: string;
235
+ }[];
236
236
  };
237
237
  outputFormat: "json";
238
238
  status: 200;
@@ -249,7 +249,7 @@ export declare function createDextoClient(config: ClientConfig): {
249
249
  description: string;
250
250
  id: string;
251
251
  name: string;
252
- source: "custom" | "mcp" | "internal";
252
+ source: "local" | "mcp";
253
253
  serverName?: string | undefined;
254
254
  inputSchema?: {
255
255
  [x: string]: import("hono/utils/types").JSONValue;
@@ -265,10 +265,12 @@ export declare function createDextoClient(config: ClientConfig): {
265
265
  } | undefined;
266
266
  required?: string[] | undefined;
267
267
  } | undefined;
268
+ _meta?: {
269
+ [x: string]: import("hono/utils/types").JSONValue;
270
+ } | undefined;
268
271
  }[];
269
272
  totalCount: number;
270
- internalCount: number;
271
- customCount: number;
273
+ localCount: number;
272
274
  mcpCount: number;
273
275
  };
274
276
  outputFormat: "json";
@@ -855,85 +857,632 @@ export declare function createDextoClient(config: ClientConfig): {
855
857
  };
856
858
  } & {
857
859
  api: {
858
- approvals: {
859
- ":approvalId": import("hono/client").ClientRequest<{
860
- $post: {
861
- input: {
862
- param: {
863
- approvalId: string;
864
- };
865
- } & {
866
- header: {
867
- "Idempotency-Key"?: string | undefined;
868
- };
869
- } & {
870
- json: {
871
- status: import("@dexto/core").ApprovalStatus.APPROVED | import("@dexto/core").ApprovalStatus.DENIED;
872
- formData?: Record<string, unknown> | undefined;
873
- rememberChoice?: boolean | undefined;
874
- };
875
- };
876
- output: {};
877
- outputFormat: string;
878
- status: 400;
879
- } | {
880
- input: {
881
- param: {
882
- approvalId: string;
883
- };
884
- } & {
885
- header: {
886
- "Idempotency-Key"?: string | undefined;
887
- };
888
- } & {
889
- json: {
890
- status: import("@dexto/core").ApprovalStatus.APPROVED | import("@dexto/core").ApprovalStatus.DENIED;
891
- formData?: Record<string, unknown> | undefined;
892
- rememberChoice?: boolean | undefined;
893
- };
860
+ approvals: {
861
+ ":approvalId": import("hono/client").ClientRequest<{
862
+ $post: {
863
+ input: {
864
+ param: {
865
+ approvalId: string;
866
+ };
867
+ } & {
868
+ header: {
869
+ "Idempotency-Key"?: string | undefined;
870
+ };
871
+ } & {
872
+ json: {
873
+ status: import("@dexto/core").ApprovalStatus.APPROVED | import("@dexto/core").ApprovalStatus.DENIED;
874
+ formData?: Record<string, unknown> | undefined;
875
+ rememberChoice?: boolean | undefined;
876
+ };
877
+ };
878
+ output: {};
879
+ outputFormat: string;
880
+ status: 400;
881
+ } | {
882
+ input: {
883
+ param: {
884
+ approvalId: string;
885
+ };
886
+ } & {
887
+ header: {
888
+ "Idempotency-Key"?: string | undefined;
889
+ };
890
+ } & {
891
+ json: {
892
+ status: import("@dexto/core").ApprovalStatus.APPROVED | import("@dexto/core").ApprovalStatus.DENIED;
893
+ formData?: Record<string, unknown> | undefined;
894
+ rememberChoice?: boolean | undefined;
895
+ };
896
+ };
897
+ output: {};
898
+ outputFormat: string;
899
+ status: 404;
900
+ } | {
901
+ input: {
902
+ param: {
903
+ approvalId: string;
904
+ };
905
+ } & {
906
+ header: {
907
+ "Idempotency-Key"?: string | undefined;
908
+ };
909
+ } & {
910
+ json: {
911
+ status: import("@dexto/core").ApprovalStatus.APPROVED | import("@dexto/core").ApprovalStatus.DENIED;
912
+ formData?: Record<string, unknown> | undefined;
913
+ rememberChoice?: boolean | undefined;
914
+ };
915
+ };
916
+ output: {};
917
+ outputFormat: string;
918
+ status: 503;
919
+ } | {
920
+ input: {
921
+ param: {
922
+ approvalId: string;
923
+ };
924
+ } & {
925
+ header: {
926
+ "Idempotency-Key"?: string | undefined;
927
+ };
928
+ } & {
929
+ json: {
930
+ status: import("@dexto/core").ApprovalStatus.APPROVED | import("@dexto/core").ApprovalStatus.DENIED;
931
+ formData?: Record<string, unknown> | undefined;
932
+ rememberChoice?: boolean | undefined;
933
+ };
934
+ };
935
+ output: {
936
+ status: import("@dexto/core").ApprovalStatus.APPROVED | import("@dexto/core").ApprovalStatus.DENIED;
937
+ ok: boolean;
938
+ approvalId: string;
939
+ };
940
+ outputFormat: "json";
941
+ status: 200;
942
+ };
943
+ }>;
944
+ };
945
+ };
946
+ } & {
947
+ api: {
948
+ schedules: import("hono/client").ClientRequest<{
949
+ $get: {
950
+ input: {};
951
+ output: {
952
+ schedules: {
953
+ id: string;
954
+ name: string;
955
+ createdAt: number;
956
+ cronExpression: string;
957
+ timezone: string;
958
+ enabled: boolean;
959
+ task: {
960
+ instruction: string;
961
+ metadata?: {
962
+ [x: string]: import("hono/utils/types").JSONValue;
963
+ } | undefined;
964
+ };
965
+ sessionMode: "fixed" | "ephemeral" | "dedicated" | "inherit";
966
+ updatedAt: number;
967
+ runCount: number;
968
+ successCount: number;
969
+ failureCount: number;
970
+ sessionId?: string | undefined;
971
+ workspacePath?: string | undefined;
972
+ lastRunAt?: number | undefined;
973
+ nextRunAt?: number | undefined;
974
+ lastError?: string | undefined;
975
+ }[];
976
+ };
977
+ outputFormat: "json";
978
+ status: 200;
979
+ } | {
980
+ input: {};
981
+ output: {
982
+ error: {
983
+ message: string;
984
+ code?: string | undefined;
985
+ details?: import("hono/utils/types").JSONValue;
986
+ };
987
+ ok: false;
988
+ };
989
+ outputFormat: "json";
990
+ status: 500;
991
+ } | {
992
+ input: {};
993
+ output: {
994
+ error: {
995
+ message: string;
996
+ code?: string | undefined;
997
+ details?: import("hono/utils/types").JSONValue;
998
+ };
999
+ ok: false;
1000
+ };
1001
+ outputFormat: "json";
1002
+ status: 503;
1003
+ };
1004
+ $post: {
1005
+ input: {
1006
+ json: {
1007
+ name: string;
1008
+ instruction: string;
1009
+ cronExpression: string;
1010
+ timezone?: string | undefined;
1011
+ enabled?: boolean | undefined;
1012
+ workspacePath?: string | null | undefined;
1013
+ };
1014
+ };
1015
+ output: {
1016
+ error: {
1017
+ message: string;
1018
+ code?: string | undefined;
1019
+ details?: import("hono/utils/types").JSONValue;
1020
+ };
1021
+ ok: false;
1022
+ };
1023
+ outputFormat: "json";
1024
+ status: 500;
1025
+ } | {
1026
+ input: {
1027
+ json: {
1028
+ name: string;
1029
+ instruction: string;
1030
+ cronExpression: string;
1031
+ timezone?: string | undefined;
1032
+ enabled?: boolean | undefined;
1033
+ workspacePath?: string | null | undefined;
1034
+ };
1035
+ };
1036
+ output: {
1037
+ error: {
1038
+ message: string;
1039
+ code?: string | undefined;
1040
+ details?: import("hono/utils/types").JSONValue;
1041
+ };
1042
+ ok: false;
1043
+ };
1044
+ outputFormat: "json";
1045
+ status: 503;
1046
+ } | {
1047
+ input: {
1048
+ json: {
1049
+ name: string;
1050
+ instruction: string;
1051
+ cronExpression: string;
1052
+ timezone?: string | undefined;
1053
+ enabled?: boolean | undefined;
1054
+ workspacePath?: string | null | undefined;
1055
+ };
1056
+ };
1057
+ output: {
1058
+ schedule: {
1059
+ id: string;
1060
+ name: string;
1061
+ createdAt: number;
1062
+ cronExpression: string;
1063
+ timezone: string;
1064
+ enabled: boolean;
1065
+ task: {
1066
+ instruction: string;
1067
+ metadata?: {
1068
+ [x: string]: import("hono/utils/types").JSONValue;
1069
+ } | undefined;
1070
+ };
1071
+ sessionMode: "fixed" | "ephemeral" | "dedicated" | "inherit";
1072
+ updatedAt: number;
1073
+ runCount: number;
1074
+ successCount: number;
1075
+ failureCount: number;
1076
+ sessionId?: string | undefined;
1077
+ workspacePath?: string | undefined;
1078
+ lastRunAt?: number | undefined;
1079
+ nextRunAt?: number | undefined;
1080
+ lastError?: string | undefined;
1081
+ };
1082
+ };
1083
+ outputFormat: "json";
1084
+ status: 201;
1085
+ } | {
1086
+ input: {
1087
+ json: {
1088
+ name: string;
1089
+ instruction: string;
1090
+ cronExpression: string;
1091
+ timezone?: string | undefined;
1092
+ enabled?: boolean | undefined;
1093
+ workspacePath?: string | null | undefined;
1094
+ };
1095
+ };
1096
+ output: {
1097
+ error: {
1098
+ message: string;
1099
+ code?: string | undefined;
1100
+ details?: import("hono/utils/types").JSONValue;
1101
+ };
1102
+ ok: false;
1103
+ };
1104
+ outputFormat: "json";
1105
+ status: 400;
1106
+ } | {
1107
+ input: {
1108
+ json: {
1109
+ name: string;
1110
+ instruction: string;
1111
+ cronExpression: string;
1112
+ timezone?: string | undefined;
1113
+ enabled?: boolean | undefined;
1114
+ workspacePath?: string | null | undefined;
1115
+ };
1116
+ };
1117
+ output: {
1118
+ error: {
1119
+ message: string;
1120
+ code?: string | undefined;
1121
+ details?: import("hono/utils/types").JSONValue;
1122
+ };
1123
+ ok: false;
1124
+ };
1125
+ outputFormat: "json";
1126
+ status: 429;
1127
+ };
1128
+ }>;
1129
+ };
1130
+ } & {
1131
+ api: {
1132
+ schedules: {
1133
+ ":scheduleId": import("hono/client").ClientRequest<{
1134
+ $patch: {
1135
+ input: {
1136
+ param: {
1137
+ scheduleId: string;
1138
+ };
1139
+ } & {
1140
+ json: {
1141
+ name?: string | undefined;
1142
+ instruction?: string | undefined;
1143
+ cronExpression?: string | undefined;
1144
+ timezone?: string | undefined;
1145
+ enabled?: boolean | undefined;
1146
+ workspacePath?: string | null | undefined;
1147
+ };
1148
+ };
1149
+ output: {
1150
+ error: {
1151
+ message: string;
1152
+ code?: string | undefined;
1153
+ details?: import("hono/utils/types").JSONValue;
1154
+ };
1155
+ ok: false;
1156
+ };
1157
+ outputFormat: "json";
1158
+ status: 500;
1159
+ } | {
1160
+ input: {
1161
+ param: {
1162
+ scheduleId: string;
1163
+ };
1164
+ } & {
1165
+ json: {
1166
+ name?: string | undefined;
1167
+ instruction?: string | undefined;
1168
+ cronExpression?: string | undefined;
1169
+ timezone?: string | undefined;
1170
+ enabled?: boolean | undefined;
1171
+ workspacePath?: string | null | undefined;
1172
+ };
1173
+ };
1174
+ output: {
1175
+ error: {
1176
+ message: string;
1177
+ code?: string | undefined;
1178
+ details?: import("hono/utils/types").JSONValue;
1179
+ };
1180
+ ok: false;
1181
+ };
1182
+ outputFormat: "json";
1183
+ status: 503;
1184
+ } | {
1185
+ input: {
1186
+ param: {
1187
+ scheduleId: string;
1188
+ };
1189
+ } & {
1190
+ json: {
1191
+ name?: string | undefined;
1192
+ instruction?: string | undefined;
1193
+ cronExpression?: string | undefined;
1194
+ timezone?: string | undefined;
1195
+ enabled?: boolean | undefined;
1196
+ workspacePath?: string | null | undefined;
1197
+ };
1198
+ };
1199
+ output: {
1200
+ error: {
1201
+ message: string;
1202
+ code?: string | undefined;
1203
+ details?: import("hono/utils/types").JSONValue;
1204
+ };
1205
+ ok: false;
1206
+ };
1207
+ outputFormat: "json";
1208
+ status: 400;
1209
+ } | {
1210
+ input: {
1211
+ param: {
1212
+ scheduleId: string;
1213
+ };
1214
+ } & {
1215
+ json: {
1216
+ name?: string | undefined;
1217
+ instruction?: string | undefined;
1218
+ cronExpression?: string | undefined;
1219
+ timezone?: string | undefined;
1220
+ enabled?: boolean | undefined;
1221
+ workspacePath?: string | null | undefined;
1222
+ };
1223
+ };
1224
+ output: {
1225
+ schedule: {
1226
+ id: string;
1227
+ name: string;
1228
+ createdAt: number;
1229
+ cronExpression: string;
1230
+ timezone: string;
1231
+ enabled: boolean;
1232
+ task: {
1233
+ instruction: string;
1234
+ metadata?: {
1235
+ [x: string]: import("hono/utils/types").JSONValue;
1236
+ } | undefined;
1237
+ };
1238
+ sessionMode: "fixed" | "ephemeral" | "dedicated" | "inherit";
1239
+ updatedAt: number;
1240
+ runCount: number;
1241
+ successCount: number;
1242
+ failureCount: number;
1243
+ sessionId?: string | undefined;
1244
+ workspacePath?: string | undefined;
1245
+ lastRunAt?: number | undefined;
1246
+ nextRunAt?: number | undefined;
1247
+ lastError?: string | undefined;
1248
+ };
1249
+ };
1250
+ outputFormat: "json";
1251
+ status: 200;
1252
+ } | {
1253
+ input: {
1254
+ param: {
1255
+ scheduleId: string;
1256
+ };
1257
+ } & {
1258
+ json: {
1259
+ name?: string | undefined;
1260
+ instruction?: string | undefined;
1261
+ cronExpression?: string | undefined;
1262
+ timezone?: string | undefined;
1263
+ enabled?: boolean | undefined;
1264
+ workspacePath?: string | null | undefined;
1265
+ };
1266
+ };
1267
+ output: {
1268
+ error: {
1269
+ message: string;
1270
+ code?: string | undefined;
1271
+ details?: import("hono/utils/types").JSONValue;
1272
+ };
1273
+ ok: false;
1274
+ };
1275
+ outputFormat: "json";
1276
+ status: 404;
1277
+ };
1278
+ $delete: {
1279
+ input: {
1280
+ param: {
1281
+ scheduleId: string;
1282
+ };
1283
+ };
1284
+ output: {
1285
+ error: {
1286
+ message: string;
1287
+ code?: string | undefined;
1288
+ details?: import("hono/utils/types").JSONValue;
1289
+ };
1290
+ ok: false;
1291
+ };
1292
+ outputFormat: "json";
1293
+ status: 500;
1294
+ } | {
1295
+ input: {
1296
+ param: {
1297
+ scheduleId: string;
1298
+ };
1299
+ };
1300
+ output: {
1301
+ error: {
1302
+ message: string;
1303
+ code?: string | undefined;
1304
+ details?: import("hono/utils/types").JSONValue;
1305
+ };
1306
+ ok: false;
1307
+ };
1308
+ outputFormat: "json";
1309
+ status: 503;
1310
+ } | {
1311
+ input: {
1312
+ param: {
1313
+ scheduleId: string;
1314
+ };
1315
+ };
1316
+ output: {
1317
+ error: {
1318
+ message: string;
1319
+ code?: string | undefined;
1320
+ details?: import("hono/utils/types").JSONValue;
1321
+ };
1322
+ ok: false;
1323
+ };
1324
+ outputFormat: "json";
1325
+ status: 404;
1326
+ } | {
1327
+ input: {
1328
+ param: {
1329
+ scheduleId: string;
1330
+ };
1331
+ };
1332
+ output: {
1333
+ deleted: boolean;
1334
+ };
1335
+ outputFormat: "json";
1336
+ status: 200;
1337
+ };
1338
+ }>;
1339
+ };
1340
+ };
1341
+ } & {
1342
+ api: {
1343
+ schedules: {
1344
+ ":scheduleId": {
1345
+ trigger: import("hono/client").ClientRequest<{
1346
+ $post: {
1347
+ input: {
1348
+ param: {
1349
+ scheduleId: string;
1350
+ };
1351
+ };
1352
+ output: {
1353
+ error: {
1354
+ message: string;
1355
+ code?: string | undefined;
1356
+ details?: import("hono/utils/types").JSONValue;
1357
+ };
1358
+ ok: false;
1359
+ };
1360
+ outputFormat: "json";
1361
+ status: 500;
1362
+ } | {
1363
+ input: {
1364
+ param: {
1365
+ scheduleId: string;
1366
+ };
1367
+ };
1368
+ output: {
1369
+ error: {
1370
+ message: string;
1371
+ code?: string | undefined;
1372
+ details?: import("hono/utils/types").JSONValue;
1373
+ };
1374
+ ok: false;
1375
+ };
1376
+ outputFormat: "json";
1377
+ status: 503;
1378
+ } | {
1379
+ input: {
1380
+ param: {
1381
+ scheduleId: string;
1382
+ };
1383
+ };
1384
+ output: {
1385
+ error: {
1386
+ message: string;
1387
+ code?: string | undefined;
1388
+ details?: import("hono/utils/types").JSONValue;
1389
+ };
1390
+ ok: false;
1391
+ };
1392
+ outputFormat: "json";
1393
+ status: 404;
1394
+ } | {
1395
+ input: {
1396
+ param: {
1397
+ scheduleId: string;
1398
+ };
1399
+ };
1400
+ output: {
1401
+ scheduled: boolean;
1402
+ execution?: {
1403
+ status: "success" | "pending" | "failed" | "timeout";
1404
+ id: string;
1405
+ scheduleId: string;
1406
+ triggeredAt: number;
1407
+ completedAt?: number | undefined;
1408
+ duration?: number | undefined;
1409
+ error?: string | undefined;
1410
+ result?: string | undefined;
1411
+ } | undefined;
1412
+ };
1413
+ outputFormat: "json";
1414
+ status: 200;
1415
+ };
1416
+ }>;
1417
+ };
1418
+ };
1419
+ };
1420
+ } & {
1421
+ api: {
1422
+ workspaces: import("hono/client").ClientRequest<{
1423
+ $get: {
1424
+ input: {};
1425
+ output: {
1426
+ workspaces: {
1427
+ path: string;
1428
+ id: string;
1429
+ createdAt: number;
1430
+ lastActiveAt: number;
1431
+ name?: string | null | undefined;
1432
+ }[];
1433
+ };
1434
+ outputFormat: "json";
1435
+ status: 200;
1436
+ };
1437
+ }>;
1438
+ };
1439
+ } & {
1440
+ api: {
1441
+ workspaces: {
1442
+ active: import("hono/client").ClientRequest<{
1443
+ $get: {
1444
+ input: {};
1445
+ output: {
1446
+ workspace: {
1447
+ path: string;
1448
+ id: string;
1449
+ createdAt: number;
1450
+ lastActiveAt: number;
1451
+ name?: string | null | undefined;
1452
+ } | null;
894
1453
  };
895
- output: {};
896
- outputFormat: string;
897
- status: 404;
898
- } | {
1454
+ outputFormat: "json";
1455
+ status: 200;
1456
+ };
1457
+ $post: {
899
1458
  input: {
900
- param: {
901
- approvalId: string;
902
- };
903
- } & {
904
- header: {
905
- "Idempotency-Key"?: string | undefined;
906
- };
907
- } & {
908
1459
  json: {
909
- status: import("@dexto/core").ApprovalStatus.APPROVED | import("@dexto/core").ApprovalStatus.DENIED;
910
- formData?: Record<string, unknown> | undefined;
911
- rememberChoice?: boolean | undefined;
1460
+ path: string;
1461
+ name?: string | undefined;
912
1462
  };
913
1463
  };
914
- output: {};
915
- outputFormat: string;
916
- status: 503;
917
- } | {
918
- input: {
919
- param: {
920
- approvalId: string;
921
- };
922
- } & {
923
- header: {
924
- "Idempotency-Key"?: string | undefined;
925
- };
926
- } & {
927
- json: {
928
- status: import("@dexto/core").ApprovalStatus.APPROVED | import("@dexto/core").ApprovalStatus.DENIED;
929
- formData?: Record<string, unknown> | undefined;
930
- rememberChoice?: boolean | undefined;
1464
+ output: {
1465
+ workspace: {
1466
+ path: string;
1467
+ id: string;
1468
+ createdAt: number;
1469
+ lastActiveAt: number;
1470
+ name?: string | null | undefined;
931
1471
  };
932
1472
  };
1473
+ outputFormat: "json";
1474
+ status: 200;
1475
+ };
1476
+ $delete: {
1477
+ input: {};
933
1478
  output: {
934
- status: import("@dexto/core").ApprovalStatus.APPROVED | import("@dexto/core").ApprovalStatus.DENIED;
935
- ok: boolean;
936
- approvalId: string;
1479
+ workspace: {
1480
+ path: string;
1481
+ id: string;
1482
+ createdAt: number;
1483
+ lastActiveAt: number;
1484
+ name?: string | null | undefined;
1485
+ } | null;
937
1486
  };
938
1487
  outputFormat: "json";
939
1488
  status: 200;
@@ -1038,11 +1587,11 @@ export declare function createDextoClient(config: ClientConfig): {
1038
1587
  };
1039
1588
  } & {
1040
1589
  json: {
1041
- content?: string | undefined;
1042
1590
  metadata?: import("zod").objectInputType<{
1043
1591
  source: import("zod").ZodOptional<import("zod").ZodEnum<["user", "system"]>>;
1044
1592
  pinned: import("zod").ZodOptional<import("zod").ZodBoolean>;
1045
1593
  }, import("zod").ZodTypeAny, "passthrough"> | undefined;
1594
+ content?: string | undefined;
1046
1595
  tags?: string[] | undefined;
1047
1596
  };
1048
1597
  };
@@ -1086,7 +1635,6 @@ export declare function createDextoClient(config: ClientConfig): {
1086
1635
  $get: {
1087
1636
  input: {};
1088
1637
  output: {
1089
- ok: true;
1090
1638
  resources: {
1091
1639
  uri: string;
1092
1640
  source: "mcp" | "internal";
@@ -1100,6 +1648,7 @@ export declare function createDextoClient(config: ClientConfig): {
1100
1648
  size?: number | undefined;
1101
1649
  lastModified?: string | undefined;
1102
1650
  }[];
1651
+ ok: true;
1103
1652
  };
1104
1653
  outputFormat: "json";
1105
1654
  status: 200;
@@ -1471,8 +2020,8 @@ export declare function createDextoClient(config: ClientConfig): {
1471
2020
  type: "stdio";
1472
2021
  command: string;
1473
2022
  timeout?: number | undefined;
1474
- enabled?: boolean | undefined;
1475
2023
  args?: string[] | undefined;
2024
+ enabled?: boolean | undefined;
1476
2025
  env?: Record<string, string> | undefined;
1477
2026
  connectionMode?: "strict" | "lenient" | undefined;
1478
2027
  } | {
@@ -1521,7 +2070,7 @@ export declare function createDextoClient(config: ClientConfig): {
1521
2070
  mcp: {
1522
2071
  servers: {
1523
2072
  ":serverId": {
1524
- tools: import("hono/client").ClientRequest<{
2073
+ config: import("hono/client").ClientRequest<{
1525
2074
  $get: {
1526
2075
  input: {
1527
2076
  param: {
@@ -1538,25 +2087,36 @@ export declare function createDextoClient(config: ClientConfig): {
1538
2087
  };
1539
2088
  };
1540
2089
  output: {
1541
- tools: {
1542
- description: string;
1543
- id: string;
1544
- name: string;
1545
- inputSchema?: {
1546
- [x: string]: import("hono/utils/types").JSONValue;
1547
- type?: "object" | undefined;
1548
- properties?: {
1549
- [x: string]: {
1550
- [x: string]: import("hono/utils/types").JSONValue;
1551
- description?: string | undefined;
1552
- default?: any;
1553
- type?: "string" | "number" | "boolean" | "object" | "integer" | "array" | undefined;
1554
- enum?: (string | number | boolean)[] | undefined;
1555
- };
1556
- } | undefined;
1557
- required?: string[] | undefined;
1558
- } | undefined;
1559
- }[];
2090
+ config: {
2091
+ timeout: number;
2092
+ type: "stdio";
2093
+ args: string[];
2094
+ command: string;
2095
+ enabled: boolean;
2096
+ env: {
2097
+ [x: string]: string;
2098
+ };
2099
+ connectionMode: "strict" | "lenient";
2100
+ } | {
2101
+ timeout: number;
2102
+ type: "sse";
2103
+ enabled: boolean;
2104
+ connectionMode: "strict" | "lenient";
2105
+ url: string;
2106
+ headers: {
2107
+ [x: string]: string;
2108
+ };
2109
+ } | {
2110
+ timeout: number;
2111
+ type: "http";
2112
+ enabled: boolean;
2113
+ connectionMode: "strict" | "lenient";
2114
+ url: string;
2115
+ headers: {
2116
+ [x: string]: string;
2117
+ };
2118
+ };
2119
+ name: string;
1560
2120
  };
1561
2121
  outputFormat: "json";
1562
2122
  status: 200;
@@ -1571,6 +2131,82 @@ export declare function createDextoClient(config: ClientConfig): {
1571
2131
  mcp: {
1572
2132
  servers: {
1573
2133
  ":serverId": import("hono/client").ClientRequest<{
2134
+ $put: {
2135
+ input: {
2136
+ param: {
2137
+ serverId: string;
2138
+ };
2139
+ } & {
2140
+ json: {
2141
+ config: {
2142
+ type: "stdio";
2143
+ command: string;
2144
+ timeout?: number | undefined;
2145
+ args?: string[] | undefined;
2146
+ enabled?: boolean | undefined;
2147
+ env?: Record<string, string> | undefined;
2148
+ connectionMode?: "strict" | "lenient" | undefined;
2149
+ } | {
2150
+ type: "sse";
2151
+ url: string;
2152
+ timeout?: number | undefined;
2153
+ enabled?: boolean | undefined;
2154
+ connectionMode?: "strict" | "lenient" | undefined;
2155
+ headers?: Record<string, string> | undefined;
2156
+ } | {
2157
+ type: "http";
2158
+ url: string;
2159
+ timeout?: number | undefined;
2160
+ enabled?: boolean | undefined;
2161
+ connectionMode?: "strict" | "lenient" | undefined;
2162
+ headers?: Record<string, string> | undefined;
2163
+ };
2164
+ persistToAgent?: boolean | undefined;
2165
+ };
2166
+ };
2167
+ output: {};
2168
+ outputFormat: string;
2169
+ status: 404;
2170
+ } | {
2171
+ input: {
2172
+ param: {
2173
+ serverId: string;
2174
+ };
2175
+ } & {
2176
+ json: {
2177
+ config: {
2178
+ type: "stdio";
2179
+ command: string;
2180
+ timeout?: number | undefined;
2181
+ args?: string[] | undefined;
2182
+ enabled?: boolean | undefined;
2183
+ env?: Record<string, string> | undefined;
2184
+ connectionMode?: "strict" | "lenient" | undefined;
2185
+ } | {
2186
+ type: "sse";
2187
+ url: string;
2188
+ timeout?: number | undefined;
2189
+ enabled?: boolean | undefined;
2190
+ connectionMode?: "strict" | "lenient" | undefined;
2191
+ headers?: Record<string, string> | undefined;
2192
+ } | {
2193
+ type: "http";
2194
+ url: string;
2195
+ timeout?: number | undefined;
2196
+ enabled?: boolean | undefined;
2197
+ connectionMode?: "strict" | "lenient" | undefined;
2198
+ headers?: Record<string, string> | undefined;
2199
+ };
2200
+ persistToAgent?: boolean | undefined;
2201
+ };
2202
+ };
2203
+ output: {
2204
+ status: string;
2205
+ name: string;
2206
+ };
2207
+ outputFormat: "json";
2208
+ status: 200;
2209
+ };
1574
2210
  $delete: {
1575
2211
  input: {
1576
2212
  param: {
@@ -1597,6 +2233,59 @@ export declare function createDextoClient(config: ClientConfig): {
1597
2233
  };
1598
2234
  };
1599
2235
  };
2236
+ } & {
2237
+ api: {
2238
+ mcp: {
2239
+ servers: {
2240
+ ":serverId": {
2241
+ tools: import("hono/client").ClientRequest<{
2242
+ $get: {
2243
+ input: {
2244
+ param: {
2245
+ serverId: string;
2246
+ };
2247
+ };
2248
+ output: {};
2249
+ outputFormat: string;
2250
+ status: 404;
2251
+ } | {
2252
+ input: {
2253
+ param: {
2254
+ serverId: string;
2255
+ };
2256
+ };
2257
+ output: {
2258
+ tools: {
2259
+ description: string;
2260
+ id: string;
2261
+ name: string;
2262
+ inputSchema?: {
2263
+ [x: string]: import("hono/utils/types").JSONValue;
2264
+ type?: "object" | undefined;
2265
+ properties?: {
2266
+ [x: string]: {
2267
+ [x: string]: import("hono/utils/types").JSONValue;
2268
+ description?: string | undefined;
2269
+ default?: any;
2270
+ type?: "string" | "number" | "boolean" | "object" | "integer" | "array" | undefined;
2271
+ enum?: (string | number | boolean)[] | undefined;
2272
+ };
2273
+ } | undefined;
2274
+ required?: string[] | undefined;
2275
+ } | undefined;
2276
+ _meta?: {
2277
+ [x: string]: import("hono/utils/types").JSONValue;
2278
+ } | undefined;
2279
+ }[];
2280
+ };
2281
+ outputFormat: "json";
2282
+ status: 200;
2283
+ };
2284
+ }>;
2285
+ };
2286
+ };
2287
+ };
2288
+ };
1600
2289
  } & {
1601
2290
  api: {
1602
2291
  mcp: {
@@ -1696,7 +2385,6 @@ export declare function createDextoClient(config: ClientConfig): {
1696
2385
  };
1697
2386
  };
1698
2387
  output: {
1699
- success: boolean;
1700
2388
  resources: {
1701
2389
  uri: string;
1702
2390
  source: "mcp" | "internal";
@@ -1710,6 +2398,7 @@ export declare function createDextoClient(config: ClientConfig): {
1710
2398
  size?: number | undefined;
1711
2399
  lastModified?: string | undefined;
1712
2400
  }[];
2401
+ success: boolean;
1713
2402
  };
1714
2403
  outputFormat: "json";
1715
2404
  status: 200;
@@ -1857,9 +2546,9 @@ export declare function createDextoClient(config: ClientConfig): {
1857
2546
  results: {
1858
2547
  sessionId: string;
1859
2548
  metadata: {
2549
+ messageCount: number;
1860
2550
  createdAt: number;
1861
2551
  lastActivity: number;
1862
- messageCount: number;
1863
2552
  };
1864
2553
  matchCount: number;
1865
2554
  firstMatch: {
@@ -1937,10 +2626,36 @@ export declare function createDextoClient(config: ClientConfig): {
1937
2626
  output: {
1938
2627
  sessions: {
1939
2628
  id: string;
2629
+ messageCount: number;
1940
2630
  createdAt: number | null;
1941
2631
  lastActivity: number | null;
1942
- messageCount: number;
1943
2632
  title?: string | null | undefined;
2633
+ tokenUsage?: {
2634
+ inputTokens: number;
2635
+ outputTokens: number;
2636
+ reasoningTokens: number;
2637
+ totalTokens: number;
2638
+ cacheReadTokens: number;
2639
+ cacheWriteTokens: number;
2640
+ } | undefined;
2641
+ estimatedCost?: number | undefined;
2642
+ modelStats?: {
2643
+ tokenUsage: {
2644
+ inputTokens: number;
2645
+ outputTokens: number;
2646
+ reasoningTokens: number;
2647
+ totalTokens: number;
2648
+ cacheReadTokens: number;
2649
+ cacheWriteTokens: number;
2650
+ };
2651
+ model: string;
2652
+ provider: string;
2653
+ messageCount: number;
2654
+ estimatedCost: number;
2655
+ firstUsedAt: number;
2656
+ lastUsedAt: number;
2657
+ }[] | undefined;
2658
+ workspaceId?: string | null | undefined;
1944
2659
  }[];
1945
2660
  };
1946
2661
  outputFormat: "json";
@@ -1955,10 +2670,36 @@ export declare function createDextoClient(config: ClientConfig): {
1955
2670
  output: {
1956
2671
  session: {
1957
2672
  id: string;
2673
+ messageCount: number;
1958
2674
  createdAt: number | null;
1959
2675
  lastActivity: number | null;
1960
- messageCount: number;
1961
2676
  title?: string | null | undefined;
2677
+ tokenUsage?: {
2678
+ inputTokens: number;
2679
+ outputTokens: number;
2680
+ reasoningTokens: number;
2681
+ totalTokens: number;
2682
+ cacheReadTokens: number;
2683
+ cacheWriteTokens: number;
2684
+ } | undefined;
2685
+ estimatedCost?: number | undefined;
2686
+ modelStats?: {
2687
+ tokenUsage: {
2688
+ inputTokens: number;
2689
+ outputTokens: number;
2690
+ reasoningTokens: number;
2691
+ totalTokens: number;
2692
+ cacheReadTokens: number;
2693
+ cacheWriteTokens: number;
2694
+ };
2695
+ model: string;
2696
+ provider: string;
2697
+ messageCount: number;
2698
+ estimatedCost: number;
2699
+ firstUsedAt: number;
2700
+ lastUsedAt: number;
2701
+ }[] | undefined;
2702
+ workspaceId?: string | null | undefined;
1962
2703
  };
1963
2704
  };
1964
2705
  outputFormat: "json";
@@ -1979,11 +2720,37 @@ export declare function createDextoClient(config: ClientConfig): {
1979
2720
  output: {
1980
2721
  session: {
1981
2722
  id: string;
2723
+ messageCount: number;
1982
2724
  createdAt: number | null;
1983
2725
  lastActivity: number | null;
1984
- messageCount: number;
1985
2726
  history: number;
1986
2727
  title?: string | null | undefined;
2728
+ tokenUsage?: {
2729
+ inputTokens: number;
2730
+ outputTokens: number;
2731
+ reasoningTokens: number;
2732
+ totalTokens: number;
2733
+ cacheReadTokens: number;
2734
+ cacheWriteTokens: number;
2735
+ } | undefined;
2736
+ estimatedCost?: number | undefined;
2737
+ modelStats?: {
2738
+ tokenUsage: {
2739
+ inputTokens: number;
2740
+ outputTokens: number;
2741
+ reasoningTokens: number;
2742
+ totalTokens: number;
2743
+ cacheReadTokens: number;
2744
+ cacheWriteTokens: number;
2745
+ };
2746
+ model: string;
2747
+ provider: string;
2748
+ messageCount: number;
2749
+ estimatedCost: number;
2750
+ firstUsedAt: number;
2751
+ lastUsedAt: number;
2752
+ }[] | undefined;
2753
+ workspaceId?: string | null | undefined;
1987
2754
  };
1988
2755
  };
1989
2756
  outputFormat: "json";
@@ -2015,10 +2782,36 @@ export declare function createDextoClient(config: ClientConfig): {
2015
2782
  output: {
2016
2783
  session: {
2017
2784
  id: string;
2785
+ messageCount: number;
2018
2786
  createdAt: number | null;
2019
2787
  lastActivity: number | null;
2020
- messageCount: number;
2021
2788
  title?: string | null | undefined;
2789
+ tokenUsage?: {
2790
+ inputTokens: number;
2791
+ outputTokens: number;
2792
+ reasoningTokens: number;
2793
+ totalTokens: number;
2794
+ cacheReadTokens: number;
2795
+ cacheWriteTokens: number;
2796
+ } | undefined;
2797
+ estimatedCost?: number | undefined;
2798
+ modelStats?: {
2799
+ tokenUsage: {
2800
+ inputTokens: number;
2801
+ outputTokens: number;
2802
+ reasoningTokens: number;
2803
+ totalTokens: number;
2804
+ cacheReadTokens: number;
2805
+ cacheWriteTokens: number;
2806
+ };
2807
+ model: string;
2808
+ provider: string;
2809
+ messageCount: number;
2810
+ estimatedCost: number;
2811
+ firstUsedAt: number;
2812
+ lastUsedAt: number;
2813
+ }[] | undefined;
2814
+ workspaceId?: string | null | undefined;
2022
2815
  };
2023
2816
  };
2024
2817
  outputFormat: "json";
@@ -2141,11 +2934,37 @@ export declare function createDextoClient(config: ClientConfig): {
2141
2934
  output: {
2142
2935
  session: {
2143
2936
  id: string;
2937
+ messageCount: number;
2144
2938
  createdAt: number | null;
2145
2939
  lastActivity: number | null;
2146
- messageCount: number;
2147
2940
  isBusy: boolean;
2148
2941
  title?: string | null | undefined;
2942
+ tokenUsage?: {
2943
+ inputTokens: number;
2944
+ outputTokens: number;
2945
+ reasoningTokens: number;
2946
+ totalTokens: number;
2947
+ cacheReadTokens: number;
2948
+ cacheWriteTokens: number;
2949
+ } | undefined;
2950
+ estimatedCost?: number | undefined;
2951
+ modelStats?: {
2952
+ tokenUsage: {
2953
+ inputTokens: number;
2954
+ outputTokens: number;
2955
+ reasoningTokens: number;
2956
+ totalTokens: number;
2957
+ cacheReadTokens: number;
2958
+ cacheWriteTokens: number;
2959
+ };
2960
+ model: string;
2961
+ provider: string;
2962
+ messageCount: number;
2963
+ estimatedCost: number;
2964
+ firstUsedAt: number;
2965
+ lastUsedAt: number;
2966
+ }[] | undefined;
2967
+ workspaceId?: string | null | undefined;
2149
2968
  };
2150
2969
  };
2151
2970
  outputFormat: "json";
@@ -2655,9 +3474,9 @@ export declare function createDextoClient(config: ClientConfig): {
2655
3474
  $post: {
2656
3475
  input: {
2657
3476
  json: {
3477
+ apiKey?: string | undefined;
2658
3478
  model?: string | undefined;
2659
3479
  provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova" | undefined;
2660
- apiKey?: string | undefined;
2661
3480
  maxInputTokens?: number | undefined;
2662
3481
  maxIterations?: number | undefined;
2663
3482
  baseURL?: string | undefined;
@@ -2770,8 +3589,8 @@ export declare function createDextoClient(config: ClientConfig): {
2770
3589
  };
2771
3590
  };
2772
3591
  output: {
2773
- ok: false;
2774
3592
  error: string;
3593
+ ok: false;
2775
3594
  };
2776
3595
  outputFormat: "json";
2777
3596
  status: 404;
@@ -3068,19 +3887,19 @@ export declare function createDextoClient(config: ClientConfig): {
3068
3887
  };
3069
3888
  metadata?: Record<string, any> | undefined;
3070
3889
  configuration?: {
3071
- blocking?: boolean | undefined;
3072
3890
  acceptedOutputModes?: string[] | undefined;
3073
3891
  historyLength?: number | undefined;
3074
3892
  pushNotificationConfig?: {
3075
3893
  url: string;
3076
3894
  headers?: Record<string, string> | undefined;
3077
3895
  } | undefined;
3896
+ blocking?: boolean | undefined;
3078
3897
  } | undefined;
3079
3898
  };
3080
3899
  };
3081
3900
  output: {
3082
3901
  status: {
3083
- state: "unknown" | "auth-required" | "submitted" | "working" | "input-required" | "completed" | "canceled" | "failed" | "rejected";
3902
+ state: "unknown" | "failed" | "auth-required" | "submitted" | "working" | "input-required" | "completed" | "canceled" | "rejected";
3084
3903
  message?: {
3085
3904
  role: "user" | "agent";
3086
3905
  kind: "message";
@@ -3184,7 +4003,7 @@ export declare function createDextoClient(config: ClientConfig): {
3184
4003
  $get: {
3185
4004
  input: {
3186
4005
  query: {
3187
- status?: "unknown" | "auth-required" | "submitted" | "working" | "input-required" | "completed" | "canceled" | "failed" | "rejected" | undefined;
4006
+ status?: "unknown" | "failed" | "auth-required" | "submitted" | "working" | "input-required" | "completed" | "canceled" | "rejected" | undefined;
3188
4007
  contextId?: string | undefined;
3189
4008
  pageSize?: string | undefined;
3190
4009
  historyLength?: string | undefined;
@@ -3196,7 +4015,7 @@ export declare function createDextoClient(config: ClientConfig): {
3196
4015
  output: {
3197
4016
  tasks: {
3198
4017
  status: {
3199
- state: "unknown" | "auth-required" | "submitted" | "working" | "input-required" | "completed" | "canceled" | "failed" | "rejected";
4018
+ state: "unknown" | "failed" | "auth-required" | "submitted" | "working" | "input-required" | "completed" | "canceled" | "rejected";
3200
4019
  message?: {
3201
4020
  role: "user" | "agent";
3202
4021
  kind: "message";
@@ -3319,7 +4138,7 @@ export declare function createDextoClient(config: ClientConfig): {
3319
4138
  };
3320
4139
  output: {
3321
4140
  status: {
3322
- state: "unknown" | "auth-required" | "submitted" | "working" | "input-required" | "completed" | "canceled" | "failed" | "rejected";
4141
+ state: "unknown" | "failed" | "auth-required" | "submitted" | "working" | "input-required" | "completed" | "canceled" | "rejected";
3323
4142
  message?: {
3324
4143
  role: "user" | "agent";
3325
4144
  kind: "message";
@@ -3439,7 +4258,7 @@ export declare function createDextoClient(config: ClientConfig): {
3439
4258
  };
3440
4259
  output: {
3441
4260
  status: {
3442
- state: "unknown" | "auth-required" | "submitted" | "working" | "input-required" | "completed" | "canceled" | "failed" | "rejected";
4261
+ state: "unknown" | "failed" | "auth-required" | "submitted" | "working" | "input-required" | "completed" | "canceled" | "rejected";
3443
4262
  message?: {
3444
4263
  role: "user" | "agent";
3445
4264
  kind: "message";