relay-opencode 0.1.0 → 0.2.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/README.md +82 -115
- package/dist/artificial-analysis.d.ts +50 -0
- package/dist/artificial-analysis.js +153 -0
- package/dist/chat-facts.d.ts +19 -3
- package/dist/chat-facts.js +67 -12
- package/dist/contract.d.ts +1172 -6
- package/dist/contract.js +57 -3
- package/dist/costs.d.ts +7 -0
- package/dist/costs.js +22 -0
- package/dist/decider.d.ts +24 -0
- package/dist/decider.js +104 -14
- package/dist/gui-experimental.cjs +32 -6
- package/dist/gui-styles.d.ts +1 -1
- package/dist/gui-styles.js +29 -3
- package/dist/index.js +9 -3
- package/dist/intelligence.d.ts +4 -0
- package/dist/intelligence.js +10 -0
- package/dist/ranking.d.ts +31 -0
- package/dist/ranking.js +78 -0
- package/dist/relay-auto.d.ts +23 -4
- package/dist/relay-auto.js +53 -11
- package/dist/relay-command.d.ts +0 -5
- package/dist/relay-command.js +15 -13
- package/dist/relay-store.d.ts +64 -4
- package/dist/relay-store.js +94 -9
- package/dist/relay-view.d.ts +37 -1
- package/dist/relay-view.js +68 -8
- package/dist/review-helper.d.ts +1 -1
- package/dist/review-helper.js +26 -7
- package/dist/router.d.ts +30 -5
- package/dist/router.js +54 -10
- package/dist/rpc.d.ts +1168 -6
- package/dist/rpc.js +59 -16
- package/dist/standings.d.ts +18 -0
- package/dist/standings.js +34 -0
- package/dist/tui.d.ts +3 -0
- package/dist/tui.js +26 -0
- package/dist/usage-log.d.ts +135 -0
- package/dist/usage-log.js +210 -0
- package/dist/usage-view.d.ts +70 -0
- package/dist/usage-view.js +104 -0
- package/package.json +3 -2
package/dist/rpc.d.ts
CHANGED
|
@@ -242,8 +242,95 @@ export declare function registerRpc(context: Pick<Plugin.Context, 'rpc' | 'locat
|
|
|
242
242
|
readonly type: "null";
|
|
243
243
|
}];
|
|
244
244
|
};
|
|
245
|
+
readonly model: {
|
|
246
|
+
readonly anyOf: readonly [{
|
|
247
|
+
readonly type: "string";
|
|
248
|
+
}, {
|
|
249
|
+
readonly type: "null";
|
|
250
|
+
}];
|
|
251
|
+
};
|
|
252
|
+
readonly total: {
|
|
253
|
+
readonly anyOf: readonly [{
|
|
254
|
+
readonly type: "object";
|
|
255
|
+
readonly properties: {
|
|
256
|
+
readonly input: {
|
|
257
|
+
readonly type: "number";
|
|
258
|
+
};
|
|
259
|
+
readonly output: {
|
|
260
|
+
readonly type: "number";
|
|
261
|
+
};
|
|
262
|
+
readonly reasoning: {
|
|
263
|
+
readonly type: "number";
|
|
264
|
+
};
|
|
265
|
+
readonly cacheRead: {
|
|
266
|
+
readonly type: "number";
|
|
267
|
+
};
|
|
268
|
+
readonly cacheWrite: {
|
|
269
|
+
readonly type: "number";
|
|
270
|
+
};
|
|
271
|
+
readonly costUsd: {
|
|
272
|
+
readonly anyOf: readonly [{
|
|
273
|
+
readonly type: "string";
|
|
274
|
+
}, {
|
|
275
|
+
readonly type: "null";
|
|
276
|
+
}];
|
|
277
|
+
};
|
|
278
|
+
};
|
|
279
|
+
readonly required: readonly ["input", "output", "reasoning", "cacheRead", "cacheWrite", "costUsd"];
|
|
280
|
+
readonly additionalProperties: false;
|
|
281
|
+
}, {
|
|
282
|
+
readonly type: "null";
|
|
283
|
+
}];
|
|
284
|
+
};
|
|
285
|
+
readonly prices: {
|
|
286
|
+
readonly anyOf: readonly [{
|
|
287
|
+
readonly type: "object";
|
|
288
|
+
readonly properties: {
|
|
289
|
+
readonly inputPerMillion: {
|
|
290
|
+
readonly anyOf: readonly [{
|
|
291
|
+
readonly type: "string";
|
|
292
|
+
}, {
|
|
293
|
+
readonly type: "null";
|
|
294
|
+
}];
|
|
295
|
+
};
|
|
296
|
+
readonly outputPerMillion: {
|
|
297
|
+
readonly anyOf: readonly [{
|
|
298
|
+
readonly type: "string";
|
|
299
|
+
}, {
|
|
300
|
+
readonly type: "null";
|
|
301
|
+
}];
|
|
302
|
+
};
|
|
303
|
+
readonly cacheReadPerMillion: {
|
|
304
|
+
readonly anyOf: readonly [{
|
|
305
|
+
readonly type: "string";
|
|
306
|
+
}, {
|
|
307
|
+
readonly type: "null";
|
|
308
|
+
}];
|
|
309
|
+
};
|
|
310
|
+
readonly cacheWritePerMillion: {
|
|
311
|
+
readonly anyOf: readonly [{
|
|
312
|
+
readonly type: "string";
|
|
313
|
+
}, {
|
|
314
|
+
readonly type: "null";
|
|
315
|
+
}];
|
|
316
|
+
};
|
|
317
|
+
};
|
|
318
|
+
readonly required: readonly ["inputPerMillion", "outputPerMillion", "cacheReadPerMillion", "cacheWritePerMillion"];
|
|
319
|
+
readonly additionalProperties: false;
|
|
320
|
+
}, {
|
|
321
|
+
readonly type: "null";
|
|
322
|
+
}];
|
|
323
|
+
};
|
|
324
|
+
readonly pricesFrom: {
|
|
325
|
+
readonly anyOf: readonly [{
|
|
326
|
+
readonly type: "string";
|
|
327
|
+
readonly enum: readonly ["opencode", "artificial-analysis"];
|
|
328
|
+
}, {
|
|
329
|
+
readonly type: "null";
|
|
330
|
+
}];
|
|
331
|
+
};
|
|
245
332
|
};
|
|
246
|
-
readonly required: readonly ["requests", "fresh", "cached", "costUsd", "seconds"];
|
|
333
|
+
readonly required: readonly ["requests", "fresh", "cached", "costUsd", "seconds", "model", "total", "prices", "pricesFrom"];
|
|
247
334
|
readonly additionalProperties: false;
|
|
248
335
|
}, {
|
|
249
336
|
readonly type: "null";
|
|
@@ -416,8 +503,11 @@ export declare function registerRpc(context: Pick<Plugin.Context, 'rpc' | 'locat
|
|
|
416
503
|
readonly required: readonly ["active", "note"];
|
|
417
504
|
readonly additionalProperties: false;
|
|
418
505
|
};
|
|
506
|
+
readonly priceKey: {
|
|
507
|
+
readonly type: "boolean";
|
|
508
|
+
};
|
|
419
509
|
};
|
|
420
|
-
readonly required: readonly ["directory", "settings", "decisions", "deciders", "checks"];
|
|
510
|
+
readonly required: readonly ["directory", "settings", "decisions", "deciders", "checks", "priceKey"];
|
|
421
511
|
readonly additionalProperties: false;
|
|
422
512
|
};
|
|
423
513
|
};
|
|
@@ -770,8 +860,95 @@ export declare function registerRpc(context: Pick<Plugin.Context, 'rpc' | 'locat
|
|
|
770
860
|
readonly type: "null";
|
|
771
861
|
}];
|
|
772
862
|
};
|
|
863
|
+
readonly model: {
|
|
864
|
+
readonly anyOf: readonly [{
|
|
865
|
+
readonly type: "string";
|
|
866
|
+
}, {
|
|
867
|
+
readonly type: "null";
|
|
868
|
+
}];
|
|
869
|
+
};
|
|
870
|
+
readonly total: {
|
|
871
|
+
readonly anyOf: readonly [{
|
|
872
|
+
readonly type: "object";
|
|
873
|
+
readonly properties: {
|
|
874
|
+
readonly input: {
|
|
875
|
+
readonly type: "number";
|
|
876
|
+
};
|
|
877
|
+
readonly output: {
|
|
878
|
+
readonly type: "number";
|
|
879
|
+
};
|
|
880
|
+
readonly reasoning: {
|
|
881
|
+
readonly type: "number";
|
|
882
|
+
};
|
|
883
|
+
readonly cacheRead: {
|
|
884
|
+
readonly type: "number";
|
|
885
|
+
};
|
|
886
|
+
readonly cacheWrite: {
|
|
887
|
+
readonly type: "number";
|
|
888
|
+
};
|
|
889
|
+
readonly costUsd: {
|
|
890
|
+
readonly anyOf: readonly [{
|
|
891
|
+
readonly type: "string";
|
|
892
|
+
}, {
|
|
893
|
+
readonly type: "null";
|
|
894
|
+
}];
|
|
895
|
+
};
|
|
896
|
+
};
|
|
897
|
+
readonly required: readonly ["input", "output", "reasoning", "cacheRead", "cacheWrite", "costUsd"];
|
|
898
|
+
readonly additionalProperties: false;
|
|
899
|
+
}, {
|
|
900
|
+
readonly type: "null";
|
|
901
|
+
}];
|
|
902
|
+
};
|
|
903
|
+
readonly prices: {
|
|
904
|
+
readonly anyOf: readonly [{
|
|
905
|
+
readonly type: "object";
|
|
906
|
+
readonly properties: {
|
|
907
|
+
readonly inputPerMillion: {
|
|
908
|
+
readonly anyOf: readonly [{
|
|
909
|
+
readonly type: "string";
|
|
910
|
+
}, {
|
|
911
|
+
readonly type: "null";
|
|
912
|
+
}];
|
|
913
|
+
};
|
|
914
|
+
readonly outputPerMillion: {
|
|
915
|
+
readonly anyOf: readonly [{
|
|
916
|
+
readonly type: "string";
|
|
917
|
+
}, {
|
|
918
|
+
readonly type: "null";
|
|
919
|
+
}];
|
|
920
|
+
};
|
|
921
|
+
readonly cacheReadPerMillion: {
|
|
922
|
+
readonly anyOf: readonly [{
|
|
923
|
+
readonly type: "string";
|
|
924
|
+
}, {
|
|
925
|
+
readonly type: "null";
|
|
926
|
+
}];
|
|
927
|
+
};
|
|
928
|
+
readonly cacheWritePerMillion: {
|
|
929
|
+
readonly anyOf: readonly [{
|
|
930
|
+
readonly type: "string";
|
|
931
|
+
}, {
|
|
932
|
+
readonly type: "null";
|
|
933
|
+
}];
|
|
934
|
+
};
|
|
935
|
+
};
|
|
936
|
+
readonly required: readonly ["inputPerMillion", "outputPerMillion", "cacheReadPerMillion", "cacheWritePerMillion"];
|
|
937
|
+
readonly additionalProperties: false;
|
|
938
|
+
}, {
|
|
939
|
+
readonly type: "null";
|
|
940
|
+
}];
|
|
941
|
+
};
|
|
942
|
+
readonly pricesFrom: {
|
|
943
|
+
readonly anyOf: readonly [{
|
|
944
|
+
readonly type: "string";
|
|
945
|
+
readonly enum: readonly ["opencode", "artificial-analysis"];
|
|
946
|
+
}, {
|
|
947
|
+
readonly type: "null";
|
|
948
|
+
}];
|
|
949
|
+
};
|
|
773
950
|
};
|
|
774
|
-
readonly required: readonly ["requests", "fresh", "cached", "costUsd", "seconds"];
|
|
951
|
+
readonly required: readonly ["requests", "fresh", "cached", "costUsd", "seconds", "model", "total", "prices", "pricesFrom"];
|
|
775
952
|
readonly additionalProperties: false;
|
|
776
953
|
}, {
|
|
777
954
|
readonly type: "null";
|
|
@@ -944,8 +1121,11 @@ export declare function registerRpc(context: Pick<Plugin.Context, 'rpc' | 'locat
|
|
|
944
1121
|
readonly required: readonly ["active", "note"];
|
|
945
1122
|
readonly additionalProperties: false;
|
|
946
1123
|
};
|
|
1124
|
+
readonly priceKey: {
|
|
1125
|
+
readonly type: "boolean";
|
|
1126
|
+
};
|
|
947
1127
|
};
|
|
948
|
-
readonly required: readonly ["directory", "settings", "decisions", "deciders", "checks"];
|
|
1128
|
+
readonly required: readonly ["directory", "settings", "decisions", "deciders", "checks", "priceKey"];
|
|
949
1129
|
readonly additionalProperties: false;
|
|
950
1130
|
};
|
|
951
1131
|
};
|
|
@@ -1067,8 +1247,95 @@ export declare function registerRpc(context: Pick<Plugin.Context, 'rpc' | 'locat
|
|
|
1067
1247
|
readonly type: "null";
|
|
1068
1248
|
}];
|
|
1069
1249
|
};
|
|
1250
|
+
readonly model: {
|
|
1251
|
+
readonly anyOf: readonly [{
|
|
1252
|
+
readonly type: "string";
|
|
1253
|
+
}, {
|
|
1254
|
+
readonly type: "null";
|
|
1255
|
+
}];
|
|
1256
|
+
};
|
|
1257
|
+
readonly total: {
|
|
1258
|
+
readonly anyOf: readonly [{
|
|
1259
|
+
readonly type: "object";
|
|
1260
|
+
readonly properties: {
|
|
1261
|
+
readonly input: {
|
|
1262
|
+
readonly type: "number";
|
|
1263
|
+
};
|
|
1264
|
+
readonly output: {
|
|
1265
|
+
readonly type: "number";
|
|
1266
|
+
};
|
|
1267
|
+
readonly reasoning: {
|
|
1268
|
+
readonly type: "number";
|
|
1269
|
+
};
|
|
1270
|
+
readonly cacheRead: {
|
|
1271
|
+
readonly type: "number";
|
|
1272
|
+
};
|
|
1273
|
+
readonly cacheWrite: {
|
|
1274
|
+
readonly type: "number";
|
|
1275
|
+
};
|
|
1276
|
+
readonly costUsd: {
|
|
1277
|
+
readonly anyOf: readonly [{
|
|
1278
|
+
readonly type: "string";
|
|
1279
|
+
}, {
|
|
1280
|
+
readonly type: "null";
|
|
1281
|
+
}];
|
|
1282
|
+
};
|
|
1283
|
+
};
|
|
1284
|
+
readonly required: readonly ["input", "output", "reasoning", "cacheRead", "cacheWrite", "costUsd"];
|
|
1285
|
+
readonly additionalProperties: false;
|
|
1286
|
+
}, {
|
|
1287
|
+
readonly type: "null";
|
|
1288
|
+
}];
|
|
1289
|
+
};
|
|
1290
|
+
readonly prices: {
|
|
1291
|
+
readonly anyOf: readonly [{
|
|
1292
|
+
readonly type: "object";
|
|
1293
|
+
readonly properties: {
|
|
1294
|
+
readonly inputPerMillion: {
|
|
1295
|
+
readonly anyOf: readonly [{
|
|
1296
|
+
readonly type: "string";
|
|
1297
|
+
}, {
|
|
1298
|
+
readonly type: "null";
|
|
1299
|
+
}];
|
|
1300
|
+
};
|
|
1301
|
+
readonly outputPerMillion: {
|
|
1302
|
+
readonly anyOf: readonly [{
|
|
1303
|
+
readonly type: "string";
|
|
1304
|
+
}, {
|
|
1305
|
+
readonly type: "null";
|
|
1306
|
+
}];
|
|
1307
|
+
};
|
|
1308
|
+
readonly cacheReadPerMillion: {
|
|
1309
|
+
readonly anyOf: readonly [{
|
|
1310
|
+
readonly type: "string";
|
|
1311
|
+
}, {
|
|
1312
|
+
readonly type: "null";
|
|
1313
|
+
}];
|
|
1314
|
+
};
|
|
1315
|
+
readonly cacheWritePerMillion: {
|
|
1316
|
+
readonly anyOf: readonly [{
|
|
1317
|
+
readonly type: "string";
|
|
1318
|
+
}, {
|
|
1319
|
+
readonly type: "null";
|
|
1320
|
+
}];
|
|
1321
|
+
};
|
|
1322
|
+
};
|
|
1323
|
+
readonly required: readonly ["inputPerMillion", "outputPerMillion", "cacheReadPerMillion", "cacheWritePerMillion"];
|
|
1324
|
+
readonly additionalProperties: false;
|
|
1325
|
+
}, {
|
|
1326
|
+
readonly type: "null";
|
|
1327
|
+
}];
|
|
1328
|
+
};
|
|
1329
|
+
readonly pricesFrom: {
|
|
1330
|
+
readonly anyOf: readonly [{
|
|
1331
|
+
readonly type: "string";
|
|
1332
|
+
readonly enum: readonly ["opencode", "artificial-analysis"];
|
|
1333
|
+
}, {
|
|
1334
|
+
readonly type: "null";
|
|
1335
|
+
}];
|
|
1336
|
+
};
|
|
1070
1337
|
};
|
|
1071
|
-
readonly required: readonly ["requests", "fresh", "cached", "costUsd", "seconds"];
|
|
1338
|
+
readonly required: readonly ["requests", "fresh", "cached", "costUsd", "seconds", "model", "total", "prices", "pricesFrom"];
|
|
1072
1339
|
readonly additionalProperties: false;
|
|
1073
1340
|
}, {
|
|
1074
1341
|
readonly type: "null";
|
|
@@ -1203,8 +1470,95 @@ export declare function registerRpc(context: Pick<Plugin.Context, 'rpc' | 'locat
|
|
|
1203
1470
|
readonly type: "null";
|
|
1204
1471
|
}];
|
|
1205
1472
|
};
|
|
1473
|
+
readonly model: {
|
|
1474
|
+
readonly anyOf: readonly [{
|
|
1475
|
+
readonly type: "string";
|
|
1476
|
+
}, {
|
|
1477
|
+
readonly type: "null";
|
|
1478
|
+
}];
|
|
1479
|
+
};
|
|
1480
|
+
readonly total: {
|
|
1481
|
+
readonly anyOf: readonly [{
|
|
1482
|
+
readonly type: "object";
|
|
1483
|
+
readonly properties: {
|
|
1484
|
+
readonly input: {
|
|
1485
|
+
readonly type: "number";
|
|
1486
|
+
};
|
|
1487
|
+
readonly output: {
|
|
1488
|
+
readonly type: "number";
|
|
1489
|
+
};
|
|
1490
|
+
readonly reasoning: {
|
|
1491
|
+
readonly type: "number";
|
|
1492
|
+
};
|
|
1493
|
+
readonly cacheRead: {
|
|
1494
|
+
readonly type: "number";
|
|
1495
|
+
};
|
|
1496
|
+
readonly cacheWrite: {
|
|
1497
|
+
readonly type: "number";
|
|
1498
|
+
};
|
|
1499
|
+
readonly costUsd: {
|
|
1500
|
+
readonly anyOf: readonly [{
|
|
1501
|
+
readonly type: "string";
|
|
1502
|
+
}, {
|
|
1503
|
+
readonly type: "null";
|
|
1504
|
+
}];
|
|
1505
|
+
};
|
|
1506
|
+
};
|
|
1507
|
+
readonly required: readonly ["input", "output", "reasoning", "cacheRead", "cacheWrite", "costUsd"];
|
|
1508
|
+
readonly additionalProperties: false;
|
|
1509
|
+
}, {
|
|
1510
|
+
readonly type: "null";
|
|
1511
|
+
}];
|
|
1512
|
+
};
|
|
1513
|
+
readonly prices: {
|
|
1514
|
+
readonly anyOf: readonly [{
|
|
1515
|
+
readonly type: "object";
|
|
1516
|
+
readonly properties: {
|
|
1517
|
+
readonly inputPerMillion: {
|
|
1518
|
+
readonly anyOf: readonly [{
|
|
1519
|
+
readonly type: "string";
|
|
1520
|
+
}, {
|
|
1521
|
+
readonly type: "null";
|
|
1522
|
+
}];
|
|
1523
|
+
};
|
|
1524
|
+
readonly outputPerMillion: {
|
|
1525
|
+
readonly anyOf: readonly [{
|
|
1526
|
+
readonly type: "string";
|
|
1527
|
+
}, {
|
|
1528
|
+
readonly type: "null";
|
|
1529
|
+
}];
|
|
1530
|
+
};
|
|
1531
|
+
readonly cacheReadPerMillion: {
|
|
1532
|
+
readonly anyOf: readonly [{
|
|
1533
|
+
readonly type: "string";
|
|
1534
|
+
}, {
|
|
1535
|
+
readonly type: "null";
|
|
1536
|
+
}];
|
|
1537
|
+
};
|
|
1538
|
+
readonly cacheWritePerMillion: {
|
|
1539
|
+
readonly anyOf: readonly [{
|
|
1540
|
+
readonly type: "string";
|
|
1541
|
+
}, {
|
|
1542
|
+
readonly type: "null";
|
|
1543
|
+
}];
|
|
1544
|
+
};
|
|
1545
|
+
};
|
|
1546
|
+
readonly required: readonly ["inputPerMillion", "outputPerMillion", "cacheReadPerMillion", "cacheWritePerMillion"];
|
|
1547
|
+
readonly additionalProperties: false;
|
|
1548
|
+
}, {
|
|
1549
|
+
readonly type: "null";
|
|
1550
|
+
}];
|
|
1551
|
+
};
|
|
1552
|
+
readonly pricesFrom: {
|
|
1553
|
+
readonly anyOf: readonly [{
|
|
1554
|
+
readonly type: "string";
|
|
1555
|
+
readonly enum: readonly ["opencode", "artificial-analysis"];
|
|
1556
|
+
}, {
|
|
1557
|
+
readonly type: "null";
|
|
1558
|
+
}];
|
|
1559
|
+
};
|
|
1206
1560
|
};
|
|
1207
|
-
readonly required: readonly ["requests", "fresh", "cached", "costUsd", "seconds"];
|
|
1561
|
+
readonly required: readonly ["requests", "fresh", "cached", "costUsd", "seconds", "model", "total", "prices", "pricesFrom"];
|
|
1208
1562
|
readonly additionalProperties: false;
|
|
1209
1563
|
}, {
|
|
1210
1564
|
readonly type: "null";
|
|
@@ -1327,6 +1681,814 @@ export declare function registerRpc(context: Pick<Plugin.Context, 'rpc' | 'locat
|
|
|
1327
1681
|
readonly additionalProperties: false;
|
|
1328
1682
|
};
|
|
1329
1683
|
};
|
|
1684
|
+
readonly getRelayUsage: {
|
|
1685
|
+
readonly errors: {
|
|
1686
|
+
readonly rejected: {
|
|
1687
|
+
readonly type: "object";
|
|
1688
|
+
readonly properties: {};
|
|
1689
|
+
readonly additionalProperties: false;
|
|
1690
|
+
};
|
|
1691
|
+
};
|
|
1692
|
+
readonly input: {
|
|
1693
|
+
readonly type: "object";
|
|
1694
|
+
readonly properties: {};
|
|
1695
|
+
readonly additionalProperties: false;
|
|
1696
|
+
};
|
|
1697
|
+
readonly output: {
|
|
1698
|
+
readonly type: "object";
|
|
1699
|
+
readonly properties: {
|
|
1700
|
+
readonly directory: {
|
|
1701
|
+
readonly type: "string";
|
|
1702
|
+
};
|
|
1703
|
+
readonly since: {
|
|
1704
|
+
readonly anyOf: readonly [{
|
|
1705
|
+
readonly type: "string";
|
|
1706
|
+
}, {
|
|
1707
|
+
readonly type: "null";
|
|
1708
|
+
}];
|
|
1709
|
+
};
|
|
1710
|
+
readonly rows: {
|
|
1711
|
+
readonly type: "array";
|
|
1712
|
+
readonly items: {
|
|
1713
|
+
readonly type: "object";
|
|
1714
|
+
readonly properties: {
|
|
1715
|
+
readonly model: {
|
|
1716
|
+
readonly type: "string";
|
|
1717
|
+
};
|
|
1718
|
+
readonly messages: {
|
|
1719
|
+
readonly type: "number";
|
|
1720
|
+
};
|
|
1721
|
+
readonly requests: {
|
|
1722
|
+
readonly type: "number";
|
|
1723
|
+
};
|
|
1724
|
+
readonly input: {
|
|
1725
|
+
readonly type: "number";
|
|
1726
|
+
};
|
|
1727
|
+
readonly output: {
|
|
1728
|
+
readonly type: "number";
|
|
1729
|
+
};
|
|
1730
|
+
readonly reasoning: {
|
|
1731
|
+
readonly type: "number";
|
|
1732
|
+
};
|
|
1733
|
+
readonly cacheRead: {
|
|
1734
|
+
readonly type: "number";
|
|
1735
|
+
};
|
|
1736
|
+
readonly cacheWrite: {
|
|
1737
|
+
readonly type: "number";
|
|
1738
|
+
};
|
|
1739
|
+
readonly openCodeUsd: {
|
|
1740
|
+
readonly anyOf: readonly [{
|
|
1741
|
+
readonly type: "string";
|
|
1742
|
+
}, {
|
|
1743
|
+
readonly type: "null";
|
|
1744
|
+
}];
|
|
1745
|
+
};
|
|
1746
|
+
readonly byPrice: {
|
|
1747
|
+
readonly type: "object";
|
|
1748
|
+
readonly properties: {
|
|
1749
|
+
readonly input: {
|
|
1750
|
+
readonly anyOf: readonly [{
|
|
1751
|
+
readonly type: "string";
|
|
1752
|
+
}, {
|
|
1753
|
+
readonly type: "null";
|
|
1754
|
+
}];
|
|
1755
|
+
};
|
|
1756
|
+
readonly output: {
|
|
1757
|
+
readonly anyOf: readonly [{
|
|
1758
|
+
readonly type: "string";
|
|
1759
|
+
}, {
|
|
1760
|
+
readonly type: "null";
|
|
1761
|
+
}];
|
|
1762
|
+
};
|
|
1763
|
+
readonly cacheRead: {
|
|
1764
|
+
readonly anyOf: readonly [{
|
|
1765
|
+
readonly type: "string";
|
|
1766
|
+
}, {
|
|
1767
|
+
readonly type: "null";
|
|
1768
|
+
}];
|
|
1769
|
+
};
|
|
1770
|
+
readonly cacheWrite: {
|
|
1771
|
+
readonly anyOf: readonly [{
|
|
1772
|
+
readonly type: "string";
|
|
1773
|
+
}, {
|
|
1774
|
+
readonly type: "null";
|
|
1775
|
+
}];
|
|
1776
|
+
};
|
|
1777
|
+
};
|
|
1778
|
+
readonly required: readonly ["input", "output", "cacheRead", "cacheWrite"];
|
|
1779
|
+
readonly additionalProperties: false;
|
|
1780
|
+
};
|
|
1781
|
+
readonly prices: {
|
|
1782
|
+
readonly anyOf: readonly [{
|
|
1783
|
+
readonly type: "object";
|
|
1784
|
+
readonly properties: {
|
|
1785
|
+
readonly inputPerMillion: {
|
|
1786
|
+
readonly anyOf: readonly [{
|
|
1787
|
+
readonly type: "string";
|
|
1788
|
+
}, {
|
|
1789
|
+
readonly type: "null";
|
|
1790
|
+
}];
|
|
1791
|
+
};
|
|
1792
|
+
readonly outputPerMillion: {
|
|
1793
|
+
readonly anyOf: readonly [{
|
|
1794
|
+
readonly type: "string";
|
|
1795
|
+
}, {
|
|
1796
|
+
readonly type: "null";
|
|
1797
|
+
}];
|
|
1798
|
+
};
|
|
1799
|
+
readonly cacheReadPerMillion: {
|
|
1800
|
+
readonly anyOf: readonly [{
|
|
1801
|
+
readonly type: "string";
|
|
1802
|
+
}, {
|
|
1803
|
+
readonly type: "null";
|
|
1804
|
+
}];
|
|
1805
|
+
};
|
|
1806
|
+
readonly cacheWritePerMillion: {
|
|
1807
|
+
readonly anyOf: readonly [{
|
|
1808
|
+
readonly type: "string";
|
|
1809
|
+
}, {
|
|
1810
|
+
readonly type: "null";
|
|
1811
|
+
}];
|
|
1812
|
+
};
|
|
1813
|
+
};
|
|
1814
|
+
readonly required: readonly ["inputPerMillion", "outputPerMillion", "cacheReadPerMillion", "cacheWritePerMillion"];
|
|
1815
|
+
readonly additionalProperties: false;
|
|
1816
|
+
}, {
|
|
1817
|
+
readonly type: "null";
|
|
1818
|
+
}];
|
|
1819
|
+
};
|
|
1820
|
+
readonly pricesFrom: {
|
|
1821
|
+
readonly anyOf: readonly [{
|
|
1822
|
+
readonly type: "string";
|
|
1823
|
+
readonly enum: readonly ["opencode", "artificial-analysis"];
|
|
1824
|
+
}, {
|
|
1825
|
+
readonly type: "null";
|
|
1826
|
+
}];
|
|
1827
|
+
};
|
|
1828
|
+
};
|
|
1829
|
+
readonly required: readonly ["model", "messages", "requests", "input", "output", "reasoning", "cacheRead", "cacheWrite", "openCodeUsd", "byPrice", "prices", "pricesFrom"];
|
|
1830
|
+
readonly additionalProperties: false;
|
|
1831
|
+
};
|
|
1832
|
+
};
|
|
1833
|
+
readonly credit: {
|
|
1834
|
+
readonly anyOf: readonly [{
|
|
1835
|
+
readonly type: "string";
|
|
1836
|
+
}, {
|
|
1837
|
+
readonly type: "null";
|
|
1838
|
+
}];
|
|
1839
|
+
};
|
|
1840
|
+
};
|
|
1841
|
+
readonly required: readonly ["directory", "since", "rows", "credit"];
|
|
1842
|
+
readonly additionalProperties: false;
|
|
1843
|
+
};
|
|
1844
|
+
};
|
|
1845
|
+
readonly getUsageLog: {
|
|
1846
|
+
readonly errors: {
|
|
1847
|
+
readonly rejected: {
|
|
1848
|
+
readonly type: "object";
|
|
1849
|
+
readonly properties: {};
|
|
1850
|
+
readonly additionalProperties: false;
|
|
1851
|
+
};
|
|
1852
|
+
};
|
|
1853
|
+
readonly input: {
|
|
1854
|
+
readonly type: "object";
|
|
1855
|
+
readonly properties: {
|
|
1856
|
+
readonly from: {
|
|
1857
|
+
readonly type: "string";
|
|
1858
|
+
};
|
|
1859
|
+
readonly to: {
|
|
1860
|
+
readonly type: "string";
|
|
1861
|
+
};
|
|
1862
|
+
readonly tzOffsetMinutes: {
|
|
1863
|
+
readonly type: "integer";
|
|
1864
|
+
readonly minimum: -840;
|
|
1865
|
+
readonly maximum: 840;
|
|
1866
|
+
};
|
|
1867
|
+
readonly timeZone: {
|
|
1868
|
+
readonly anyOf: readonly [{
|
|
1869
|
+
readonly type: "string";
|
|
1870
|
+
readonly maxLength: 64;
|
|
1871
|
+
}, {
|
|
1872
|
+
readonly type: "null";
|
|
1873
|
+
}];
|
|
1874
|
+
};
|
|
1875
|
+
readonly search: {
|
|
1876
|
+
readonly type: "string";
|
|
1877
|
+
readonly maxLength: 200;
|
|
1878
|
+
};
|
|
1879
|
+
readonly provider: {
|
|
1880
|
+
readonly anyOf: readonly [{
|
|
1881
|
+
readonly type: "string";
|
|
1882
|
+
}, {
|
|
1883
|
+
readonly type: "null";
|
|
1884
|
+
}];
|
|
1885
|
+
};
|
|
1886
|
+
readonly effort: {
|
|
1887
|
+
readonly anyOf: readonly [{
|
|
1888
|
+
readonly type: "string";
|
|
1889
|
+
}, {
|
|
1890
|
+
readonly type: "null";
|
|
1891
|
+
}];
|
|
1892
|
+
};
|
|
1893
|
+
readonly mode: {
|
|
1894
|
+
readonly anyOf: readonly [{
|
|
1895
|
+
readonly type: "string";
|
|
1896
|
+
}, {
|
|
1897
|
+
readonly type: "null";
|
|
1898
|
+
}];
|
|
1899
|
+
};
|
|
1900
|
+
readonly relay: {
|
|
1901
|
+
readonly type: "string";
|
|
1902
|
+
readonly enum: readonly ["any", "on", "off"];
|
|
1903
|
+
};
|
|
1904
|
+
readonly kind: {
|
|
1905
|
+
readonly type: "string";
|
|
1906
|
+
readonly enum: readonly ["any", "chat", "helper", "summary"];
|
|
1907
|
+
};
|
|
1908
|
+
readonly project: {
|
|
1909
|
+
readonly anyOf: readonly [{
|
|
1910
|
+
readonly type: "string";
|
|
1911
|
+
}, {
|
|
1912
|
+
readonly type: "null";
|
|
1913
|
+
}];
|
|
1914
|
+
};
|
|
1915
|
+
readonly offset: {
|
|
1916
|
+
readonly type: "integer";
|
|
1917
|
+
readonly minimum: 0;
|
|
1918
|
+
};
|
|
1919
|
+
readonly limit: {
|
|
1920
|
+
readonly type: "integer";
|
|
1921
|
+
readonly minimum: 1;
|
|
1922
|
+
readonly maximum: 200;
|
|
1923
|
+
};
|
|
1924
|
+
};
|
|
1925
|
+
readonly required: readonly ["from", "to", "tzOffsetMinutes", "search", "provider", "effort", "mode", "relay", "kind", "project", "offset", "limit"];
|
|
1926
|
+
readonly additionalProperties: false;
|
|
1927
|
+
};
|
|
1928
|
+
readonly output: {
|
|
1929
|
+
readonly type: "object";
|
|
1930
|
+
readonly properties: {
|
|
1931
|
+
readonly directory: {
|
|
1932
|
+
readonly type: "string";
|
|
1933
|
+
};
|
|
1934
|
+
readonly days: {
|
|
1935
|
+
readonly type: "array";
|
|
1936
|
+
readonly items: {
|
|
1937
|
+
readonly type: "object";
|
|
1938
|
+
readonly properties: {
|
|
1939
|
+
readonly day: {
|
|
1940
|
+
readonly type: "string";
|
|
1941
|
+
};
|
|
1942
|
+
readonly models: {
|
|
1943
|
+
readonly type: "array";
|
|
1944
|
+
readonly items: {
|
|
1945
|
+
readonly type: "object";
|
|
1946
|
+
readonly properties: {
|
|
1947
|
+
readonly model: {
|
|
1948
|
+
readonly type: "string";
|
|
1949
|
+
};
|
|
1950
|
+
readonly cost: {
|
|
1951
|
+
readonly anyOf: readonly [{
|
|
1952
|
+
readonly type: "string";
|
|
1953
|
+
}, {
|
|
1954
|
+
readonly type: "null";
|
|
1955
|
+
}];
|
|
1956
|
+
};
|
|
1957
|
+
readonly tokens: {
|
|
1958
|
+
readonly type: "number";
|
|
1959
|
+
};
|
|
1960
|
+
readonly requests: {
|
|
1961
|
+
readonly type: "number";
|
|
1962
|
+
};
|
|
1963
|
+
};
|
|
1964
|
+
readonly required: readonly ["model", "cost", "tokens", "requests"];
|
|
1965
|
+
readonly additionalProperties: false;
|
|
1966
|
+
};
|
|
1967
|
+
};
|
|
1968
|
+
};
|
|
1969
|
+
readonly required: readonly ["day", "models"];
|
|
1970
|
+
readonly additionalProperties: false;
|
|
1971
|
+
};
|
|
1972
|
+
};
|
|
1973
|
+
readonly totals: {
|
|
1974
|
+
readonly type: "array";
|
|
1975
|
+
readonly items: {
|
|
1976
|
+
readonly type: "object";
|
|
1977
|
+
readonly properties: {
|
|
1978
|
+
readonly model: {
|
|
1979
|
+
readonly type: "string";
|
|
1980
|
+
};
|
|
1981
|
+
readonly replies: {
|
|
1982
|
+
readonly type: "number";
|
|
1983
|
+
};
|
|
1984
|
+
readonly requests: {
|
|
1985
|
+
readonly type: "number";
|
|
1986
|
+
};
|
|
1987
|
+
readonly input: {
|
|
1988
|
+
readonly type: "number";
|
|
1989
|
+
};
|
|
1990
|
+
readonly output: {
|
|
1991
|
+
readonly type: "number";
|
|
1992
|
+
};
|
|
1993
|
+
readonly reasoning: {
|
|
1994
|
+
readonly type: "number";
|
|
1995
|
+
};
|
|
1996
|
+
readonly cacheRead: {
|
|
1997
|
+
readonly type: "number";
|
|
1998
|
+
};
|
|
1999
|
+
readonly cacheWrite: {
|
|
2000
|
+
readonly type: "number";
|
|
2001
|
+
};
|
|
2002
|
+
readonly cost: {
|
|
2003
|
+
readonly anyOf: readonly [{
|
|
2004
|
+
readonly type: "string";
|
|
2005
|
+
}, {
|
|
2006
|
+
readonly type: "null";
|
|
2007
|
+
}];
|
|
2008
|
+
};
|
|
2009
|
+
readonly aaPriced: {
|
|
2010
|
+
readonly type: "boolean";
|
|
2011
|
+
};
|
|
2012
|
+
readonly unpriced: {
|
|
2013
|
+
readonly type: "number";
|
|
2014
|
+
};
|
|
2015
|
+
};
|
|
2016
|
+
readonly required: readonly ["model", "replies", "requests", "input", "output", "reasoning", "cacheRead", "cacheWrite", "cost", "aaPriced", "unpriced"];
|
|
2017
|
+
readonly additionalProperties: false;
|
|
2018
|
+
};
|
|
2019
|
+
};
|
|
2020
|
+
readonly options: {
|
|
2021
|
+
readonly type: "object";
|
|
2022
|
+
readonly properties: {
|
|
2023
|
+
readonly providers: {
|
|
2024
|
+
readonly type: "array";
|
|
2025
|
+
readonly items: {
|
|
2026
|
+
readonly type: "string";
|
|
2027
|
+
};
|
|
2028
|
+
};
|
|
2029
|
+
readonly efforts: {
|
|
2030
|
+
readonly type: "array";
|
|
2031
|
+
readonly items: {
|
|
2032
|
+
readonly type: "string";
|
|
2033
|
+
};
|
|
2034
|
+
};
|
|
2035
|
+
readonly modes: {
|
|
2036
|
+
readonly type: "array";
|
|
2037
|
+
readonly items: {
|
|
2038
|
+
readonly type: "string";
|
|
2039
|
+
};
|
|
2040
|
+
};
|
|
2041
|
+
readonly projects: {
|
|
2042
|
+
readonly type: "array";
|
|
2043
|
+
readonly items: {
|
|
2044
|
+
readonly type: "string";
|
|
2045
|
+
};
|
|
2046
|
+
};
|
|
2047
|
+
};
|
|
2048
|
+
readonly required: readonly ["providers", "efforts", "modes", "projects"];
|
|
2049
|
+
readonly additionalProperties: false;
|
|
2050
|
+
};
|
|
2051
|
+
readonly records: {
|
|
2052
|
+
readonly type: "array";
|
|
2053
|
+
readonly items: {
|
|
2054
|
+
readonly type: "object";
|
|
2055
|
+
readonly properties: {
|
|
2056
|
+
readonly at: {
|
|
2057
|
+
readonly type: "string";
|
|
2058
|
+
};
|
|
2059
|
+
readonly sessionID: {
|
|
2060
|
+
readonly type: "string";
|
|
2061
|
+
};
|
|
2062
|
+
readonly messageID: {
|
|
2063
|
+
readonly type: "string";
|
|
2064
|
+
};
|
|
2065
|
+
readonly project: {
|
|
2066
|
+
readonly type: "string";
|
|
2067
|
+
};
|
|
2068
|
+
readonly kind: {
|
|
2069
|
+
readonly type: "string";
|
|
2070
|
+
readonly enum: readonly ["chat", "helper", "summary"];
|
|
2071
|
+
};
|
|
2072
|
+
readonly agent: {
|
|
2073
|
+
readonly anyOf: readonly [{
|
|
2074
|
+
readonly type: "string";
|
|
2075
|
+
}, {
|
|
2076
|
+
readonly type: "null";
|
|
2077
|
+
}];
|
|
2078
|
+
};
|
|
2079
|
+
readonly model: {
|
|
2080
|
+
readonly anyOf: readonly [{
|
|
2081
|
+
readonly type: "string";
|
|
2082
|
+
}, {
|
|
2083
|
+
readonly type: "null";
|
|
2084
|
+
}];
|
|
2085
|
+
};
|
|
2086
|
+
readonly requests: {
|
|
2087
|
+
readonly type: "number";
|
|
2088
|
+
};
|
|
2089
|
+
readonly input: {
|
|
2090
|
+
readonly type: "number";
|
|
2091
|
+
};
|
|
2092
|
+
readonly output: {
|
|
2093
|
+
readonly type: "number";
|
|
2094
|
+
};
|
|
2095
|
+
readonly reasoning: {
|
|
2096
|
+
readonly type: "number";
|
|
2097
|
+
};
|
|
2098
|
+
readonly cacheRead: {
|
|
2099
|
+
readonly type: "number";
|
|
2100
|
+
};
|
|
2101
|
+
readonly cacheWrite: {
|
|
2102
|
+
readonly type: "number";
|
|
2103
|
+
};
|
|
2104
|
+
readonly costByPrice: {
|
|
2105
|
+
readonly anyOf: readonly [{
|
|
2106
|
+
readonly type: "string";
|
|
2107
|
+
}, {
|
|
2108
|
+
readonly type: "null";
|
|
2109
|
+
}];
|
|
2110
|
+
};
|
|
2111
|
+
readonly openCodeUsd: {
|
|
2112
|
+
readonly anyOf: readonly [{
|
|
2113
|
+
readonly type: "string";
|
|
2114
|
+
}, {
|
|
2115
|
+
readonly type: "null";
|
|
2116
|
+
}];
|
|
2117
|
+
};
|
|
2118
|
+
readonly pricesFrom: {
|
|
2119
|
+
readonly anyOf: readonly [{
|
|
2120
|
+
readonly type: "string";
|
|
2121
|
+
readonly enum: readonly ["opencode", "artificial-analysis"];
|
|
2122
|
+
}, {
|
|
2123
|
+
readonly type: "null";
|
|
2124
|
+
}];
|
|
2125
|
+
};
|
|
2126
|
+
readonly relay: {
|
|
2127
|
+
readonly anyOf: readonly [{
|
|
2128
|
+
readonly type: "object";
|
|
2129
|
+
readonly properties: {
|
|
2130
|
+
readonly mode: {
|
|
2131
|
+
readonly anyOf: readonly [{
|
|
2132
|
+
readonly type: "string";
|
|
2133
|
+
readonly enum: readonly ["plan", "execute", "review"];
|
|
2134
|
+
}, {
|
|
2135
|
+
readonly type: "null";
|
|
2136
|
+
}];
|
|
2137
|
+
};
|
|
2138
|
+
readonly note: {
|
|
2139
|
+
readonly anyOf: readonly [{
|
|
2140
|
+
readonly type: "string";
|
|
2141
|
+
}, {
|
|
2142
|
+
readonly type: "null";
|
|
2143
|
+
}];
|
|
2144
|
+
};
|
|
2145
|
+
};
|
|
2146
|
+
readonly required: readonly ["mode", "note"];
|
|
2147
|
+
readonly additionalProperties: false;
|
|
2148
|
+
}, {
|
|
2149
|
+
readonly type: "null";
|
|
2150
|
+
}];
|
|
2151
|
+
};
|
|
2152
|
+
};
|
|
2153
|
+
readonly required: readonly ["at", "sessionID", "messageID", "project", "kind", "agent", "model", "requests", "input", "output", "reasoning", "cacheRead", "cacheWrite", "costByPrice", "openCodeUsd", "pricesFrom", "relay"];
|
|
2154
|
+
readonly additionalProperties: false;
|
|
2155
|
+
};
|
|
2156
|
+
};
|
|
2157
|
+
readonly matching: {
|
|
2158
|
+
readonly type: "number";
|
|
2159
|
+
};
|
|
2160
|
+
readonly first: {
|
|
2161
|
+
readonly anyOf: readonly [{
|
|
2162
|
+
readonly type: "string";
|
|
2163
|
+
}, {
|
|
2164
|
+
readonly type: "null";
|
|
2165
|
+
}];
|
|
2166
|
+
};
|
|
2167
|
+
readonly before: {
|
|
2168
|
+
readonly type: "object";
|
|
2169
|
+
readonly properties: {
|
|
2170
|
+
readonly since: {
|
|
2171
|
+
readonly anyOf: readonly [{
|
|
2172
|
+
readonly type: "string";
|
|
2173
|
+
}, {
|
|
2174
|
+
readonly type: "null";
|
|
2175
|
+
}];
|
|
2176
|
+
};
|
|
2177
|
+
readonly rows: {
|
|
2178
|
+
readonly type: "array";
|
|
2179
|
+
readonly items: {
|
|
2180
|
+
readonly type: "object";
|
|
2181
|
+
readonly properties: {
|
|
2182
|
+
readonly model: {
|
|
2183
|
+
readonly type: "string";
|
|
2184
|
+
};
|
|
2185
|
+
readonly messages: {
|
|
2186
|
+
readonly type: "number";
|
|
2187
|
+
};
|
|
2188
|
+
readonly requests: {
|
|
2189
|
+
readonly type: "number";
|
|
2190
|
+
};
|
|
2191
|
+
readonly input: {
|
|
2192
|
+
readonly type: "number";
|
|
2193
|
+
};
|
|
2194
|
+
readonly output: {
|
|
2195
|
+
readonly type: "number";
|
|
2196
|
+
};
|
|
2197
|
+
readonly reasoning: {
|
|
2198
|
+
readonly type: "number";
|
|
2199
|
+
};
|
|
2200
|
+
readonly cacheRead: {
|
|
2201
|
+
readonly type: "number";
|
|
2202
|
+
};
|
|
2203
|
+
readonly cacheWrite: {
|
|
2204
|
+
readonly type: "number";
|
|
2205
|
+
};
|
|
2206
|
+
readonly openCodeUsd: {
|
|
2207
|
+
readonly anyOf: readonly [{
|
|
2208
|
+
readonly type: "string";
|
|
2209
|
+
}, {
|
|
2210
|
+
readonly type: "null";
|
|
2211
|
+
}];
|
|
2212
|
+
};
|
|
2213
|
+
readonly byPrice: {
|
|
2214
|
+
readonly type: "object";
|
|
2215
|
+
readonly properties: {
|
|
2216
|
+
readonly input: {
|
|
2217
|
+
readonly anyOf: readonly [{
|
|
2218
|
+
readonly type: "string";
|
|
2219
|
+
}, {
|
|
2220
|
+
readonly type: "null";
|
|
2221
|
+
}];
|
|
2222
|
+
};
|
|
2223
|
+
readonly output: {
|
|
2224
|
+
readonly anyOf: readonly [{
|
|
2225
|
+
readonly type: "string";
|
|
2226
|
+
}, {
|
|
2227
|
+
readonly type: "null";
|
|
2228
|
+
}];
|
|
2229
|
+
};
|
|
2230
|
+
readonly cacheRead: {
|
|
2231
|
+
readonly anyOf: readonly [{
|
|
2232
|
+
readonly type: "string";
|
|
2233
|
+
}, {
|
|
2234
|
+
readonly type: "null";
|
|
2235
|
+
}];
|
|
2236
|
+
};
|
|
2237
|
+
readonly cacheWrite: {
|
|
2238
|
+
readonly anyOf: readonly [{
|
|
2239
|
+
readonly type: "string";
|
|
2240
|
+
}, {
|
|
2241
|
+
readonly type: "null";
|
|
2242
|
+
}];
|
|
2243
|
+
};
|
|
2244
|
+
};
|
|
2245
|
+
readonly required: readonly ["input", "output", "cacheRead", "cacheWrite"];
|
|
2246
|
+
readonly additionalProperties: false;
|
|
2247
|
+
};
|
|
2248
|
+
readonly prices: {
|
|
2249
|
+
readonly anyOf: readonly [{
|
|
2250
|
+
readonly type: "object";
|
|
2251
|
+
readonly properties: {
|
|
2252
|
+
readonly inputPerMillion: {
|
|
2253
|
+
readonly anyOf: readonly [{
|
|
2254
|
+
readonly type: "string";
|
|
2255
|
+
}, {
|
|
2256
|
+
readonly type: "null";
|
|
2257
|
+
}];
|
|
2258
|
+
};
|
|
2259
|
+
readonly outputPerMillion: {
|
|
2260
|
+
readonly anyOf: readonly [{
|
|
2261
|
+
readonly type: "string";
|
|
2262
|
+
}, {
|
|
2263
|
+
readonly type: "null";
|
|
2264
|
+
}];
|
|
2265
|
+
};
|
|
2266
|
+
readonly cacheReadPerMillion: {
|
|
2267
|
+
readonly anyOf: readonly [{
|
|
2268
|
+
readonly type: "string";
|
|
2269
|
+
}, {
|
|
2270
|
+
readonly type: "null";
|
|
2271
|
+
}];
|
|
2272
|
+
};
|
|
2273
|
+
readonly cacheWritePerMillion: {
|
|
2274
|
+
readonly anyOf: readonly [{
|
|
2275
|
+
readonly type: "string";
|
|
2276
|
+
}, {
|
|
2277
|
+
readonly type: "null";
|
|
2278
|
+
}];
|
|
2279
|
+
};
|
|
2280
|
+
};
|
|
2281
|
+
readonly required: readonly ["inputPerMillion", "outputPerMillion", "cacheReadPerMillion", "cacheWritePerMillion"];
|
|
2282
|
+
readonly additionalProperties: false;
|
|
2283
|
+
}, {
|
|
2284
|
+
readonly type: "null";
|
|
2285
|
+
}];
|
|
2286
|
+
};
|
|
2287
|
+
readonly pricesFrom: {
|
|
2288
|
+
readonly anyOf: readonly [{
|
|
2289
|
+
readonly type: "string";
|
|
2290
|
+
readonly enum: readonly ["opencode", "artificial-analysis"];
|
|
2291
|
+
}, {
|
|
2292
|
+
readonly type: "null";
|
|
2293
|
+
}];
|
|
2294
|
+
};
|
|
2295
|
+
};
|
|
2296
|
+
readonly required: readonly ["model", "messages", "requests", "input", "output", "reasoning", "cacheRead", "cacheWrite", "openCodeUsd", "byPrice", "prices", "pricesFrom"];
|
|
2297
|
+
readonly additionalProperties: false;
|
|
2298
|
+
};
|
|
2299
|
+
};
|
|
2300
|
+
};
|
|
2301
|
+
readonly required: readonly ["since", "rows"];
|
|
2302
|
+
readonly additionalProperties: false;
|
|
2303
|
+
};
|
|
2304
|
+
readonly credit: {
|
|
2305
|
+
readonly anyOf: readonly [{
|
|
2306
|
+
readonly type: "string";
|
|
2307
|
+
}, {
|
|
2308
|
+
readonly type: "null";
|
|
2309
|
+
}];
|
|
2310
|
+
};
|
|
2311
|
+
readonly removed: {
|
|
2312
|
+
readonly type: "number";
|
|
2313
|
+
};
|
|
2314
|
+
};
|
|
2315
|
+
readonly required: readonly ["directory", "days", "totals", "options", "records", "matching", "first", "before", "credit", "removed"];
|
|
2316
|
+
readonly additionalProperties: false;
|
|
2317
|
+
};
|
|
2318
|
+
};
|
|
2319
|
+
readonly getOwnChoice: {
|
|
2320
|
+
readonly errors: {
|
|
2321
|
+
readonly rejected: {
|
|
2322
|
+
readonly type: "object";
|
|
2323
|
+
readonly properties: {};
|
|
2324
|
+
readonly additionalProperties: false;
|
|
2325
|
+
};
|
|
2326
|
+
};
|
|
2327
|
+
readonly input: {
|
|
2328
|
+
readonly type: "object";
|
|
2329
|
+
readonly properties: {};
|
|
2330
|
+
readonly additionalProperties: false;
|
|
2331
|
+
};
|
|
2332
|
+
readonly output: {
|
|
2333
|
+
readonly type: "object";
|
|
2334
|
+
readonly properties: {
|
|
2335
|
+
readonly directory: {
|
|
2336
|
+
readonly type: "string";
|
|
2337
|
+
};
|
|
2338
|
+
readonly modes: {
|
|
2339
|
+
readonly type: "object";
|
|
2340
|
+
readonly properties: {
|
|
2341
|
+
readonly plan: {
|
|
2342
|
+
readonly anyOf: readonly [{
|
|
2343
|
+
readonly type: "null";
|
|
2344
|
+
}, {
|
|
2345
|
+
readonly type: "object";
|
|
2346
|
+
readonly properties: {
|
|
2347
|
+
readonly kind: {
|
|
2348
|
+
readonly type: "string";
|
|
2349
|
+
readonly enum: readonly ["unranked"];
|
|
2350
|
+
};
|
|
2351
|
+
readonly reason: {
|
|
2352
|
+
readonly type: "string";
|
|
2353
|
+
};
|
|
2354
|
+
};
|
|
2355
|
+
readonly required: readonly ["kind", "reason"];
|
|
2356
|
+
readonly additionalProperties: false;
|
|
2357
|
+
}, {
|
|
2358
|
+
readonly type: "object";
|
|
2359
|
+
readonly properties: {
|
|
2360
|
+
readonly kind: {
|
|
2361
|
+
readonly type: "string";
|
|
2362
|
+
readonly enum: readonly ["ranked"];
|
|
2363
|
+
};
|
|
2364
|
+
readonly strongest: {
|
|
2365
|
+
readonly type: "string";
|
|
2366
|
+
};
|
|
2367
|
+
readonly cheapest: {
|
|
2368
|
+
readonly type: "string";
|
|
2369
|
+
};
|
|
2370
|
+
};
|
|
2371
|
+
readonly required: readonly ["kind", "strongest", "cheapest"];
|
|
2372
|
+
readonly additionalProperties: false;
|
|
2373
|
+
}];
|
|
2374
|
+
};
|
|
2375
|
+
readonly execute: {
|
|
2376
|
+
readonly anyOf: readonly [{
|
|
2377
|
+
readonly type: "null";
|
|
2378
|
+
}, {
|
|
2379
|
+
readonly type: "object";
|
|
2380
|
+
readonly properties: {
|
|
2381
|
+
readonly kind: {
|
|
2382
|
+
readonly type: "string";
|
|
2383
|
+
readonly enum: readonly ["unranked"];
|
|
2384
|
+
};
|
|
2385
|
+
readonly reason: {
|
|
2386
|
+
readonly type: "string";
|
|
2387
|
+
};
|
|
2388
|
+
};
|
|
2389
|
+
readonly required: readonly ["kind", "reason"];
|
|
2390
|
+
readonly additionalProperties: false;
|
|
2391
|
+
}, {
|
|
2392
|
+
readonly type: "object";
|
|
2393
|
+
readonly properties: {
|
|
2394
|
+
readonly kind: {
|
|
2395
|
+
readonly type: "string";
|
|
2396
|
+
readonly enum: readonly ["ranked"];
|
|
2397
|
+
};
|
|
2398
|
+
readonly strongest: {
|
|
2399
|
+
readonly type: "string";
|
|
2400
|
+
};
|
|
2401
|
+
readonly cheapest: {
|
|
2402
|
+
readonly type: "string";
|
|
2403
|
+
};
|
|
2404
|
+
};
|
|
2405
|
+
readonly required: readonly ["kind", "strongest", "cheapest"];
|
|
2406
|
+
readonly additionalProperties: false;
|
|
2407
|
+
}];
|
|
2408
|
+
};
|
|
2409
|
+
readonly review: {
|
|
2410
|
+
readonly anyOf: readonly [{
|
|
2411
|
+
readonly type: "null";
|
|
2412
|
+
}, {
|
|
2413
|
+
readonly type: "object";
|
|
2414
|
+
readonly properties: {
|
|
2415
|
+
readonly kind: {
|
|
2416
|
+
readonly type: "string";
|
|
2417
|
+
readonly enum: readonly ["unranked"];
|
|
2418
|
+
};
|
|
2419
|
+
readonly reason: {
|
|
2420
|
+
readonly type: "string";
|
|
2421
|
+
};
|
|
2422
|
+
};
|
|
2423
|
+
readonly required: readonly ["kind", "reason"];
|
|
2424
|
+
readonly additionalProperties: false;
|
|
2425
|
+
}, {
|
|
2426
|
+
readonly type: "object";
|
|
2427
|
+
readonly properties: {
|
|
2428
|
+
readonly kind: {
|
|
2429
|
+
readonly type: "string";
|
|
2430
|
+
readonly enum: readonly ["ranked"];
|
|
2431
|
+
};
|
|
2432
|
+
readonly strongest: {
|
|
2433
|
+
readonly type: "string";
|
|
2434
|
+
};
|
|
2435
|
+
readonly cheapest: {
|
|
2436
|
+
readonly type: "string";
|
|
2437
|
+
};
|
|
2438
|
+
};
|
|
2439
|
+
readonly required: readonly ["kind", "strongest", "cheapest"];
|
|
2440
|
+
readonly additionalProperties: false;
|
|
2441
|
+
}];
|
|
2442
|
+
};
|
|
2443
|
+
};
|
|
2444
|
+
readonly required: readonly ["plan", "execute", "review"];
|
|
2445
|
+
readonly additionalProperties: false;
|
|
2446
|
+
};
|
|
2447
|
+
};
|
|
2448
|
+
readonly required: readonly ["directory", "modes"];
|
|
2449
|
+
readonly additionalProperties: false;
|
|
2450
|
+
};
|
|
2451
|
+
};
|
|
2452
|
+
readonly setPriceKey: {
|
|
2453
|
+
readonly errors: {
|
|
2454
|
+
readonly rejected: {
|
|
2455
|
+
readonly type: "object";
|
|
2456
|
+
readonly properties: {};
|
|
2457
|
+
readonly additionalProperties: false;
|
|
2458
|
+
};
|
|
2459
|
+
};
|
|
2460
|
+
readonly input: {
|
|
2461
|
+
readonly type: "object";
|
|
2462
|
+
readonly properties: {
|
|
2463
|
+
readonly key: {
|
|
2464
|
+
readonly anyOf: readonly [{
|
|
2465
|
+
readonly type: "string";
|
|
2466
|
+
}, {
|
|
2467
|
+
readonly type: "null";
|
|
2468
|
+
}];
|
|
2469
|
+
};
|
|
2470
|
+
};
|
|
2471
|
+
readonly required: readonly ["key"];
|
|
2472
|
+
readonly additionalProperties: false;
|
|
2473
|
+
};
|
|
2474
|
+
readonly output: {
|
|
2475
|
+
readonly type: "object";
|
|
2476
|
+
readonly properties: {
|
|
2477
|
+
readonly saved: {
|
|
2478
|
+
readonly type: "boolean";
|
|
2479
|
+
};
|
|
2480
|
+
readonly note: {
|
|
2481
|
+
readonly anyOf: readonly [{
|
|
2482
|
+
readonly type: "string";
|
|
2483
|
+
}, {
|
|
2484
|
+
readonly type: "null";
|
|
2485
|
+
}];
|
|
2486
|
+
};
|
|
2487
|
+
};
|
|
2488
|
+
readonly required: readonly ["saved", "note"];
|
|
2489
|
+
readonly additionalProperties: false;
|
|
2490
|
+
};
|
|
2491
|
+
};
|
|
1330
2492
|
readonly listModels: {
|
|
1331
2493
|
readonly errors: {
|
|
1332
2494
|
readonly rejected: {
|