@soat/sdk 0.4.6 → 0.4.7
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/esm/index.js +148 -118
- package/dist/index.d.cts +119 -119
- package/dist/index.d.ts +119 -119
- package/dist/index.js +148 -118
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -907,9 +907,7 @@ var createClient = /* @__PURE__ */__name((config = {}) => {
|
|
|
907
907
|
}, "createClient");
|
|
908
908
|
|
|
909
909
|
// src/generated/client.gen.ts
|
|
910
|
-
var client = createClient(createConfig(
|
|
911
|
-
baseUrl: "/api/v1"
|
|
912
|
-
}));
|
|
910
|
+
var client = createClient(createConfig());
|
|
913
911
|
|
|
914
912
|
// src/generated/sdk.gen.ts
|
|
915
913
|
var Actors = class {
|
|
@@ -923,7 +921,11 @@ var Actors = class {
|
|
|
923
921
|
*/
|
|
924
922
|
static listActors(options) {
|
|
925
923
|
return (options?.client ?? client).get({
|
|
926
|
-
|
|
924
|
+
security: [{
|
|
925
|
+
scheme: "bearer",
|
|
926
|
+
type: "http"
|
|
927
|
+
}],
|
|
928
|
+
url: "/api/v1/actors",
|
|
927
929
|
...options
|
|
928
930
|
});
|
|
929
931
|
}
|
|
@@ -934,7 +936,11 @@ var Actors = class {
|
|
|
934
936
|
*/
|
|
935
937
|
static createActor(options) {
|
|
936
938
|
return (options.client ?? client).post({
|
|
937
|
-
|
|
939
|
+
security: [{
|
|
940
|
+
scheme: "bearer",
|
|
941
|
+
type: "http"
|
|
942
|
+
}],
|
|
943
|
+
url: "/api/v1/actors",
|
|
938
944
|
...options,
|
|
939
945
|
headers: {
|
|
940
946
|
"Content-Type": "application/json",
|
|
@@ -949,7 +955,11 @@ var Actors = class {
|
|
|
949
955
|
*/
|
|
950
956
|
static deleteActor(options) {
|
|
951
957
|
return (options.client ?? client).delete({
|
|
952
|
-
|
|
958
|
+
security: [{
|
|
959
|
+
scheme: "bearer",
|
|
960
|
+
type: "http"
|
|
961
|
+
}],
|
|
962
|
+
url: "/api/v1/actors/{actor_id}",
|
|
953
963
|
...options
|
|
954
964
|
});
|
|
955
965
|
}
|
|
@@ -960,7 +970,11 @@ var Actors = class {
|
|
|
960
970
|
*/
|
|
961
971
|
static getActor(options) {
|
|
962
972
|
return (options.client ?? client).get({
|
|
963
|
-
|
|
973
|
+
security: [{
|
|
974
|
+
scheme: "bearer",
|
|
975
|
+
type: "http"
|
|
976
|
+
}],
|
|
977
|
+
url: "/api/v1/actors/{actor_id}",
|
|
964
978
|
...options
|
|
965
979
|
});
|
|
966
980
|
}
|
|
@@ -971,7 +985,11 @@ var Actors = class {
|
|
|
971
985
|
*/
|
|
972
986
|
static updateActor(options) {
|
|
973
987
|
return (options.client ?? client).patch({
|
|
974
|
-
|
|
988
|
+
security: [{
|
|
989
|
+
scheme: "bearer",
|
|
990
|
+
type: "http"
|
|
991
|
+
}],
|
|
992
|
+
url: "/api/v1/actors/{actor_id}",
|
|
975
993
|
...options,
|
|
976
994
|
headers: {
|
|
977
995
|
"Content-Type": "application/json",
|
|
@@ -986,7 +1004,11 @@ var Actors = class {
|
|
|
986
1004
|
*/
|
|
987
1005
|
static getActorTags(options) {
|
|
988
1006
|
return (options.client ?? client).get({
|
|
989
|
-
|
|
1007
|
+
security: [{
|
|
1008
|
+
scheme: "bearer",
|
|
1009
|
+
type: "http"
|
|
1010
|
+
}],
|
|
1011
|
+
url: "/api/v1/actors/{actor_id}/tags",
|
|
990
1012
|
...options
|
|
991
1013
|
});
|
|
992
1014
|
}
|
|
@@ -997,7 +1019,11 @@ var Actors = class {
|
|
|
997
1019
|
*/
|
|
998
1020
|
static mergeActorTags(options) {
|
|
999
1021
|
return (options.client ?? client).patch({
|
|
1000
|
-
|
|
1022
|
+
security: [{
|
|
1023
|
+
scheme: "bearer",
|
|
1024
|
+
type: "http"
|
|
1025
|
+
}],
|
|
1026
|
+
url: "/api/v1/actors/{actor_id}/tags",
|
|
1001
1027
|
...options,
|
|
1002
1028
|
headers: {
|
|
1003
1029
|
"Content-Type": "application/json",
|
|
@@ -1012,7 +1038,11 @@ var Actors = class {
|
|
|
1012
1038
|
*/
|
|
1013
1039
|
static replaceActorTags(options) {
|
|
1014
1040
|
return (options.client ?? client).put({
|
|
1015
|
-
|
|
1041
|
+
security: [{
|
|
1042
|
+
scheme: "bearer",
|
|
1043
|
+
type: "http"
|
|
1044
|
+
}],
|
|
1045
|
+
url: "/api/v1/actors/{actor_id}/tags",
|
|
1016
1046
|
...options,
|
|
1017
1047
|
headers: {
|
|
1018
1048
|
"Content-Type": "application/json",
|
|
@@ -1036,7 +1066,7 @@ var AgentTools = class {
|
|
|
1036
1066
|
scheme: "bearer",
|
|
1037
1067
|
type: "http"
|
|
1038
1068
|
}],
|
|
1039
|
-
url: "/agents/tools",
|
|
1069
|
+
url: "/api/v1/agents/tools",
|
|
1040
1070
|
...options
|
|
1041
1071
|
});
|
|
1042
1072
|
}
|
|
@@ -1051,7 +1081,7 @@ var AgentTools = class {
|
|
|
1051
1081
|
scheme: "bearer",
|
|
1052
1082
|
type: "http"
|
|
1053
1083
|
}],
|
|
1054
|
-
url: "/agents/tools",
|
|
1084
|
+
url: "/api/v1/agents/tools",
|
|
1055
1085
|
...options,
|
|
1056
1086
|
headers: {
|
|
1057
1087
|
"Content-Type": "application/json",
|
|
@@ -1070,7 +1100,7 @@ var AgentTools = class {
|
|
|
1070
1100
|
scheme: "bearer",
|
|
1071
1101
|
type: "http"
|
|
1072
1102
|
}],
|
|
1073
|
-
url: "/agents/tools/{tool_id}",
|
|
1103
|
+
url: "/api/v1/agents/tools/{tool_id}",
|
|
1074
1104
|
...options
|
|
1075
1105
|
});
|
|
1076
1106
|
}
|
|
@@ -1085,7 +1115,7 @@ var AgentTools = class {
|
|
|
1085
1115
|
scheme: "bearer",
|
|
1086
1116
|
type: "http"
|
|
1087
1117
|
}],
|
|
1088
|
-
url: "/agents/tools/{tool_id}",
|
|
1118
|
+
url: "/api/v1/agents/tools/{tool_id}",
|
|
1089
1119
|
...options
|
|
1090
1120
|
});
|
|
1091
1121
|
}
|
|
@@ -1100,7 +1130,7 @@ var AgentTools = class {
|
|
|
1100
1130
|
scheme: "bearer",
|
|
1101
1131
|
type: "http"
|
|
1102
1132
|
}],
|
|
1103
|
-
url: "/agents/tools/{tool_id}",
|
|
1133
|
+
url: "/api/v1/agents/tools/{tool_id}",
|
|
1104
1134
|
...options,
|
|
1105
1135
|
headers: {
|
|
1106
1136
|
"Content-Type": "application/json",
|
|
@@ -1124,7 +1154,7 @@ var AgentTraces = class {
|
|
|
1124
1154
|
scheme: "bearer",
|
|
1125
1155
|
type: "http"
|
|
1126
1156
|
}],
|
|
1127
|
-
url: "/agents/traces",
|
|
1157
|
+
url: "/api/v1/agents/traces",
|
|
1128
1158
|
...options
|
|
1129
1159
|
});
|
|
1130
1160
|
}
|
|
@@ -1139,7 +1169,7 @@ var AgentTraces = class {
|
|
|
1139
1169
|
scheme: "bearer",
|
|
1140
1170
|
type: "http"
|
|
1141
1171
|
}],
|
|
1142
|
-
url: "/agents/traces/{trace_id}",
|
|
1172
|
+
url: "/api/v1/agents/traces/{trace_id}",
|
|
1143
1173
|
...options
|
|
1144
1174
|
});
|
|
1145
1175
|
}
|
|
@@ -1159,7 +1189,7 @@ var Agents = class {
|
|
|
1159
1189
|
scheme: "bearer",
|
|
1160
1190
|
type: "http"
|
|
1161
1191
|
}],
|
|
1162
|
-
url: "/agents",
|
|
1192
|
+
url: "/api/v1/agents",
|
|
1163
1193
|
...options
|
|
1164
1194
|
});
|
|
1165
1195
|
}
|
|
@@ -1174,7 +1204,7 @@ var Agents = class {
|
|
|
1174
1204
|
scheme: "bearer",
|
|
1175
1205
|
type: "http"
|
|
1176
1206
|
}],
|
|
1177
|
-
url: "/agents",
|
|
1207
|
+
url: "/api/v1/agents",
|
|
1178
1208
|
...options,
|
|
1179
1209
|
headers: {
|
|
1180
1210
|
"Content-Type": "application/json",
|
|
@@ -1193,7 +1223,7 @@ var Agents = class {
|
|
|
1193
1223
|
scheme: "bearer",
|
|
1194
1224
|
type: "http"
|
|
1195
1225
|
}],
|
|
1196
|
-
url: "/agents/{agent_id}",
|
|
1226
|
+
url: "/api/v1/agents/{agent_id}",
|
|
1197
1227
|
...options
|
|
1198
1228
|
});
|
|
1199
1229
|
}
|
|
@@ -1208,7 +1238,7 @@ var Agents = class {
|
|
|
1208
1238
|
scheme: "bearer",
|
|
1209
1239
|
type: "http"
|
|
1210
1240
|
}],
|
|
1211
|
-
url: "/agents/{agent_id}",
|
|
1241
|
+
url: "/api/v1/agents/{agent_id}",
|
|
1212
1242
|
...options
|
|
1213
1243
|
});
|
|
1214
1244
|
}
|
|
@@ -1223,7 +1253,7 @@ var Agents = class {
|
|
|
1223
1253
|
scheme: "bearer",
|
|
1224
1254
|
type: "http"
|
|
1225
1255
|
}],
|
|
1226
|
-
url: "/agents/{agent_id}",
|
|
1256
|
+
url: "/api/v1/agents/{agent_id}",
|
|
1227
1257
|
...options,
|
|
1228
1258
|
headers: {
|
|
1229
1259
|
"Content-Type": "application/json",
|
|
@@ -1243,7 +1273,7 @@ var Agents = class {
|
|
|
1243
1273
|
scheme: "bearer",
|
|
1244
1274
|
type: "http"
|
|
1245
1275
|
}],
|
|
1246
|
-
url: "/agents/{agent_id}/generate",
|
|
1276
|
+
url: "/api/v1/agents/{agent_id}/generate",
|
|
1247
1277
|
...options,
|
|
1248
1278
|
headers: {
|
|
1249
1279
|
"Content-Type": "application/json",
|
|
@@ -1263,7 +1293,7 @@ var Agents = class {
|
|
|
1263
1293
|
scheme: "bearer",
|
|
1264
1294
|
type: "http"
|
|
1265
1295
|
}],
|
|
1266
|
-
url: "/agents/{agent_id}/generate/{generation_id}/tool-outputs",
|
|
1296
|
+
url: "/api/v1/agents/{agent_id}/generate/{generation_id}/tool-outputs",
|
|
1267
1297
|
...options,
|
|
1268
1298
|
headers: {
|
|
1269
1299
|
"Content-Type": "application/json",
|
|
@@ -1278,7 +1308,7 @@ var Agents = class {
|
|
|
1278
1308
|
*/
|
|
1279
1309
|
static createAgentActor(options) {
|
|
1280
1310
|
return (options.client ?? client).post({
|
|
1281
|
-
url: "/agents/{agent_id}/actors",
|
|
1311
|
+
url: "/api/v1/agents/{agent_id}/actors",
|
|
1282
1312
|
...options,
|
|
1283
1313
|
headers: {
|
|
1284
1314
|
"Content-Type": "application/json",
|
|
@@ -1298,7 +1328,7 @@ var AiProviders = class {
|
|
|
1298
1328
|
*/
|
|
1299
1329
|
static listAiProviders(options) {
|
|
1300
1330
|
return (options?.client ?? client).get({
|
|
1301
|
-
url: "/ai-providers",
|
|
1331
|
+
url: "/api/v1/ai-providers",
|
|
1302
1332
|
...options
|
|
1303
1333
|
});
|
|
1304
1334
|
}
|
|
@@ -1309,7 +1339,7 @@ var AiProviders = class {
|
|
|
1309
1339
|
*/
|
|
1310
1340
|
static createAiProvider(options) {
|
|
1311
1341
|
return (options.client ?? client).post({
|
|
1312
|
-
url: "/ai-providers",
|
|
1342
|
+
url: "/api/v1/ai-providers",
|
|
1313
1343
|
...options,
|
|
1314
1344
|
headers: {
|
|
1315
1345
|
"Content-Type": "application/json",
|
|
@@ -1324,7 +1354,7 @@ var AiProviders = class {
|
|
|
1324
1354
|
*/
|
|
1325
1355
|
static deleteAiProvider(options) {
|
|
1326
1356
|
return (options.client ?? client).delete({
|
|
1327
|
-
url: "/ai-providers/{ai_provider_id}",
|
|
1357
|
+
url: "/api/v1/ai-providers/{ai_provider_id}",
|
|
1328
1358
|
...options
|
|
1329
1359
|
});
|
|
1330
1360
|
}
|
|
@@ -1335,7 +1365,7 @@ var AiProviders = class {
|
|
|
1335
1365
|
*/
|
|
1336
1366
|
static getAiProvider(options) {
|
|
1337
1367
|
return (options.client ?? client).get({
|
|
1338
|
-
url: "/ai-providers/{ai_provider_id}",
|
|
1368
|
+
url: "/api/v1/ai-providers/{ai_provider_id}",
|
|
1339
1369
|
...options
|
|
1340
1370
|
});
|
|
1341
1371
|
}
|
|
@@ -1346,7 +1376,7 @@ var AiProviders = class {
|
|
|
1346
1376
|
*/
|
|
1347
1377
|
static updateAiProvider(options) {
|
|
1348
1378
|
return (options.client ?? client).patch({
|
|
1349
|
-
url: "/ai-providers/{ai_provider_id}",
|
|
1379
|
+
url: "/api/v1/ai-providers/{ai_provider_id}",
|
|
1350
1380
|
...options,
|
|
1351
1381
|
headers: {
|
|
1352
1382
|
"Content-Type": "application/json",
|
|
@@ -1371,7 +1401,7 @@ var ApiKeys = class {
|
|
|
1371
1401
|
scheme: "bearer",
|
|
1372
1402
|
type: "http"
|
|
1373
1403
|
}],
|
|
1374
|
-
url: "/api-keys",
|
|
1404
|
+
url: "/api/v1/api-keys",
|
|
1375
1405
|
...options,
|
|
1376
1406
|
headers: {
|
|
1377
1407
|
"Content-Type": "application/json",
|
|
@@ -1390,7 +1420,7 @@ var ApiKeys = class {
|
|
|
1390
1420
|
scheme: "bearer",
|
|
1391
1421
|
type: "http"
|
|
1392
1422
|
}],
|
|
1393
|
-
url: "/api-keys/{api_key_id}",
|
|
1423
|
+
url: "/api/v1/api-keys/{api_key_id}",
|
|
1394
1424
|
...options
|
|
1395
1425
|
});
|
|
1396
1426
|
}
|
|
@@ -1405,7 +1435,7 @@ var ApiKeys = class {
|
|
|
1405
1435
|
scheme: "bearer",
|
|
1406
1436
|
type: "http"
|
|
1407
1437
|
}],
|
|
1408
|
-
url: "/api-keys/{api_key_id}",
|
|
1438
|
+
url: "/api/v1/api-keys/{api_key_id}",
|
|
1409
1439
|
...options
|
|
1410
1440
|
});
|
|
1411
1441
|
}
|
|
@@ -1420,7 +1450,7 @@ var ApiKeys = class {
|
|
|
1420
1450
|
scheme: "bearer",
|
|
1421
1451
|
type: "http"
|
|
1422
1452
|
}],
|
|
1423
|
-
url: "/api-keys/{api_key_id}",
|
|
1453
|
+
url: "/api/v1/api-keys/{api_key_id}",
|
|
1424
1454
|
...options,
|
|
1425
1455
|
headers: {
|
|
1426
1456
|
"Content-Type": "application/json",
|
|
@@ -1444,7 +1474,7 @@ var Chats = class {
|
|
|
1444
1474
|
scheme: "bearer",
|
|
1445
1475
|
type: "http"
|
|
1446
1476
|
}],
|
|
1447
|
-
url: "/chats",
|
|
1477
|
+
url: "/api/v1/chats",
|
|
1448
1478
|
...options
|
|
1449
1479
|
});
|
|
1450
1480
|
}
|
|
@@ -1459,7 +1489,7 @@ var Chats = class {
|
|
|
1459
1489
|
scheme: "bearer",
|
|
1460
1490
|
type: "http"
|
|
1461
1491
|
}],
|
|
1462
|
-
url: "/chats",
|
|
1492
|
+
url: "/api/v1/chats",
|
|
1463
1493
|
...options,
|
|
1464
1494
|
headers: {
|
|
1465
1495
|
"Content-Type": "application/json",
|
|
@@ -1478,7 +1508,7 @@ var Chats = class {
|
|
|
1478
1508
|
scheme: "bearer",
|
|
1479
1509
|
type: "http"
|
|
1480
1510
|
}],
|
|
1481
|
-
url: "/chats/{chat_id}",
|
|
1511
|
+
url: "/api/v1/chats/{chat_id}",
|
|
1482
1512
|
...options
|
|
1483
1513
|
});
|
|
1484
1514
|
}
|
|
@@ -1493,7 +1523,7 @@ var Chats = class {
|
|
|
1493
1523
|
scheme: "bearer",
|
|
1494
1524
|
type: "http"
|
|
1495
1525
|
}],
|
|
1496
|
-
url: "/chats/{chat_id}",
|
|
1526
|
+
url: "/api/v1/chats/{chat_id}",
|
|
1497
1527
|
...options
|
|
1498
1528
|
});
|
|
1499
1529
|
}
|
|
@@ -1509,7 +1539,7 @@ var Chats = class {
|
|
|
1509
1539
|
scheme: "bearer",
|
|
1510
1540
|
type: "http"
|
|
1511
1541
|
}],
|
|
1512
|
-
url: "/chats/{chat_id}/completions",
|
|
1542
|
+
url: "/api/v1/chats/{chat_id}/completions",
|
|
1513
1543
|
...options,
|
|
1514
1544
|
headers: {
|
|
1515
1545
|
"Content-Type": "application/json",
|
|
@@ -1529,7 +1559,7 @@ var Chats = class {
|
|
|
1529
1559
|
scheme: "bearer",
|
|
1530
1560
|
type: "http"
|
|
1531
1561
|
}],
|
|
1532
|
-
url: "/chats/completions",
|
|
1562
|
+
url: "/api/v1/chats/completions",
|
|
1533
1563
|
...options,
|
|
1534
1564
|
headers: {
|
|
1535
1565
|
"Content-Type": "application/json",
|
|
@@ -1544,7 +1574,7 @@ var Chats = class {
|
|
|
1544
1574
|
*/
|
|
1545
1575
|
static createChatActor(options) {
|
|
1546
1576
|
return (options.client ?? client).post({
|
|
1547
|
-
url: "/chats/{chat_id}/actors",
|
|
1577
|
+
url: "/api/v1/chats/{chat_id}/actors",
|
|
1548
1578
|
...options,
|
|
1549
1579
|
headers: {
|
|
1550
1580
|
"Content-Type": "application/json",
|
|
@@ -1564,7 +1594,7 @@ var Conversations = class {
|
|
|
1564
1594
|
*/
|
|
1565
1595
|
static listConversations(options) {
|
|
1566
1596
|
return (options?.client ?? client).get({
|
|
1567
|
-
url: "/conversations",
|
|
1597
|
+
url: "/api/v1/conversations",
|
|
1568
1598
|
...options
|
|
1569
1599
|
});
|
|
1570
1600
|
}
|
|
@@ -1575,7 +1605,7 @@ var Conversations = class {
|
|
|
1575
1605
|
*/
|
|
1576
1606
|
static createConversation(options) {
|
|
1577
1607
|
return (options.client ?? client).post({
|
|
1578
|
-
url: "/conversations",
|
|
1608
|
+
url: "/api/v1/conversations",
|
|
1579
1609
|
...options,
|
|
1580
1610
|
headers: {
|
|
1581
1611
|
"Content-Type": "application/json",
|
|
@@ -1590,7 +1620,7 @@ var Conversations = class {
|
|
|
1590
1620
|
*/
|
|
1591
1621
|
static deleteConversation(options) {
|
|
1592
1622
|
return (options.client ?? client).delete({
|
|
1593
|
-
url: "/conversations/{conversation_id}",
|
|
1623
|
+
url: "/api/v1/conversations/{conversation_id}",
|
|
1594
1624
|
...options
|
|
1595
1625
|
});
|
|
1596
1626
|
}
|
|
@@ -1601,7 +1631,7 @@ var Conversations = class {
|
|
|
1601
1631
|
*/
|
|
1602
1632
|
static getConversation(options) {
|
|
1603
1633
|
return (options.client ?? client).get({
|
|
1604
|
-
url: "/conversations/{conversation_id}",
|
|
1634
|
+
url: "/api/v1/conversations/{conversation_id}",
|
|
1605
1635
|
...options
|
|
1606
1636
|
});
|
|
1607
1637
|
}
|
|
@@ -1612,7 +1642,7 @@ var Conversations = class {
|
|
|
1612
1642
|
*/
|
|
1613
1643
|
static updateConversation(options) {
|
|
1614
1644
|
return (options.client ?? client).patch({
|
|
1615
|
-
url: "/conversations/{conversation_id}",
|
|
1645
|
+
url: "/api/v1/conversations/{conversation_id}",
|
|
1616
1646
|
...options,
|
|
1617
1647
|
headers: {
|
|
1618
1648
|
"Content-Type": "application/json",
|
|
@@ -1627,7 +1657,7 @@ var Conversations = class {
|
|
|
1627
1657
|
*/
|
|
1628
1658
|
static listConversationMessages(options) {
|
|
1629
1659
|
return (options.client ?? client).get({
|
|
1630
|
-
url: "/conversations/{conversation_id}/messages",
|
|
1660
|
+
url: "/api/v1/conversations/{conversation_id}/messages",
|
|
1631
1661
|
...options
|
|
1632
1662
|
});
|
|
1633
1663
|
}
|
|
@@ -1638,7 +1668,7 @@ var Conversations = class {
|
|
|
1638
1668
|
*/
|
|
1639
1669
|
static addConversationMessage(options) {
|
|
1640
1670
|
return (options.client ?? client).post({
|
|
1641
|
-
url: "/conversations/{conversation_id}/messages",
|
|
1671
|
+
url: "/api/v1/conversations/{conversation_id}/messages",
|
|
1642
1672
|
...options,
|
|
1643
1673
|
headers: {
|
|
1644
1674
|
"Content-Type": "application/json",
|
|
@@ -1657,7 +1687,7 @@ var Conversations = class {
|
|
|
1657
1687
|
*/
|
|
1658
1688
|
static generateConversationMessage(options) {
|
|
1659
1689
|
return (options.client ?? client).post({
|
|
1660
|
-
url: "/conversations/{conversation_id}/generate",
|
|
1690
|
+
url: "/api/v1/conversations/{conversation_id}/generate",
|
|
1661
1691
|
...options,
|
|
1662
1692
|
headers: {
|
|
1663
1693
|
"Content-Type": "application/json",
|
|
@@ -1672,7 +1702,7 @@ var Conversations = class {
|
|
|
1672
1702
|
*/
|
|
1673
1703
|
static listConversationActors(options) {
|
|
1674
1704
|
return (options.client ?? client).get({
|
|
1675
|
-
url: "/conversations/{conversation_id}/actors",
|
|
1705
|
+
url: "/api/v1/conversations/{conversation_id}/actors",
|
|
1676
1706
|
...options
|
|
1677
1707
|
});
|
|
1678
1708
|
}
|
|
@@ -1683,7 +1713,7 @@ var Conversations = class {
|
|
|
1683
1713
|
*/
|
|
1684
1714
|
static removeConversationMessage(options) {
|
|
1685
1715
|
return (options.client ?? client).delete({
|
|
1686
|
-
url: "/conversations/{conversation_id}/messages/{document_id}",
|
|
1716
|
+
url: "/api/v1/conversations/{conversation_id}/messages/{document_id}",
|
|
1687
1717
|
...options
|
|
1688
1718
|
});
|
|
1689
1719
|
}
|
|
@@ -1694,7 +1724,7 @@ var Conversations = class {
|
|
|
1694
1724
|
*/
|
|
1695
1725
|
static getConversationTags(options) {
|
|
1696
1726
|
return (options.client ?? client).get({
|
|
1697
|
-
url: "/conversations/{conversation_id}/tags",
|
|
1727
|
+
url: "/api/v1/conversations/{conversation_id}/tags",
|
|
1698
1728
|
...options
|
|
1699
1729
|
});
|
|
1700
1730
|
}
|
|
@@ -1705,7 +1735,7 @@ var Conversations = class {
|
|
|
1705
1735
|
*/
|
|
1706
1736
|
static mergeConversationTags(options) {
|
|
1707
1737
|
return (options.client ?? client).patch({
|
|
1708
|
-
url: "/conversations/{conversation_id}/tags",
|
|
1738
|
+
url: "/api/v1/conversations/{conversation_id}/tags",
|
|
1709
1739
|
...options,
|
|
1710
1740
|
headers: {
|
|
1711
1741
|
"Content-Type": "application/json",
|
|
@@ -1720,7 +1750,7 @@ var Conversations = class {
|
|
|
1720
1750
|
*/
|
|
1721
1751
|
static replaceConversationTags(options) {
|
|
1722
1752
|
return (options.client ?? client).put({
|
|
1723
|
-
url: "/conversations/{conversation_id}/tags",
|
|
1753
|
+
url: "/api/v1/conversations/{conversation_id}/tags",
|
|
1724
1754
|
...options,
|
|
1725
1755
|
headers: {
|
|
1726
1756
|
"Content-Type": "application/json",
|
|
@@ -1740,7 +1770,7 @@ var Documents = class {
|
|
|
1740
1770
|
*/
|
|
1741
1771
|
static listDocuments(options) {
|
|
1742
1772
|
return (options?.client ?? client).get({
|
|
1743
|
-
url: "/documents",
|
|
1773
|
+
url: "/api/v1/documents",
|
|
1744
1774
|
...options
|
|
1745
1775
|
});
|
|
1746
1776
|
}
|
|
@@ -1751,7 +1781,7 @@ var Documents = class {
|
|
|
1751
1781
|
*/
|
|
1752
1782
|
static createDocument(options) {
|
|
1753
1783
|
return (options.client ?? client).post({
|
|
1754
|
-
url: "/documents",
|
|
1784
|
+
url: "/api/v1/documents",
|
|
1755
1785
|
...options,
|
|
1756
1786
|
headers: {
|
|
1757
1787
|
"Content-Type": "application/json",
|
|
@@ -1766,7 +1796,7 @@ var Documents = class {
|
|
|
1766
1796
|
*/
|
|
1767
1797
|
static deleteDocument(options) {
|
|
1768
1798
|
return (options.client ?? client).delete({
|
|
1769
|
-
url: "/documents/{document_id}",
|
|
1799
|
+
url: "/api/v1/documents/{document_id}",
|
|
1770
1800
|
...options
|
|
1771
1801
|
});
|
|
1772
1802
|
}
|
|
@@ -1777,7 +1807,7 @@ var Documents = class {
|
|
|
1777
1807
|
*/
|
|
1778
1808
|
static getDocument(options) {
|
|
1779
1809
|
return (options.client ?? client).get({
|
|
1780
|
-
url: "/documents/{document_id}",
|
|
1810
|
+
url: "/api/v1/documents/{document_id}",
|
|
1781
1811
|
...options
|
|
1782
1812
|
});
|
|
1783
1813
|
}
|
|
@@ -1788,7 +1818,7 @@ var Documents = class {
|
|
|
1788
1818
|
*/
|
|
1789
1819
|
static updateDocument(options) {
|
|
1790
1820
|
return (options.client ?? client).patch({
|
|
1791
|
-
url: "/documents/{document_id}",
|
|
1821
|
+
url: "/api/v1/documents/{document_id}",
|
|
1792
1822
|
...options,
|
|
1793
1823
|
headers: {
|
|
1794
1824
|
"Content-Type": "application/json",
|
|
@@ -1803,7 +1833,7 @@ var Documents = class {
|
|
|
1803
1833
|
*/
|
|
1804
1834
|
static getDocumentTags(options) {
|
|
1805
1835
|
return (options.client ?? client).get({
|
|
1806
|
-
url: "/documents/{document_id}/tags",
|
|
1836
|
+
url: "/api/v1/documents/{document_id}/tags",
|
|
1807
1837
|
...options
|
|
1808
1838
|
});
|
|
1809
1839
|
}
|
|
@@ -1814,7 +1844,7 @@ var Documents = class {
|
|
|
1814
1844
|
*/
|
|
1815
1845
|
static mergeDocumentTags(options) {
|
|
1816
1846
|
return (options.client ?? client).patch({
|
|
1817
|
-
url: "/documents/{document_id}/tags",
|
|
1847
|
+
url: "/api/v1/documents/{document_id}/tags",
|
|
1818
1848
|
...options,
|
|
1819
1849
|
headers: {
|
|
1820
1850
|
"Content-Type": "application/json",
|
|
@@ -1829,7 +1859,7 @@ var Documents = class {
|
|
|
1829
1859
|
*/
|
|
1830
1860
|
static replaceDocumentTags(options) {
|
|
1831
1861
|
return (options.client ?? client).put({
|
|
1832
|
-
url: "/documents/{document_id}/tags",
|
|
1862
|
+
url: "/api/v1/documents/{document_id}/tags",
|
|
1833
1863
|
...options,
|
|
1834
1864
|
headers: {
|
|
1835
1865
|
"Content-Type": "application/json",
|
|
@@ -1844,7 +1874,7 @@ var Documents = class {
|
|
|
1844
1874
|
*/
|
|
1845
1875
|
static searchDocuments(options) {
|
|
1846
1876
|
return (options.client ?? client).post({
|
|
1847
|
-
url: "/documents/search",
|
|
1877
|
+
url: "/api/v1/documents/search",
|
|
1848
1878
|
...options,
|
|
1849
1879
|
headers: {
|
|
1850
1880
|
"Content-Type": "application/json",
|
|
@@ -1864,7 +1894,7 @@ var Files = class {
|
|
|
1864
1894
|
*/
|
|
1865
1895
|
static listFiles(options) {
|
|
1866
1896
|
return (options?.client ?? client).get({
|
|
1867
|
-
url: "/files",
|
|
1897
|
+
url: "/api/v1/files",
|
|
1868
1898
|
...options
|
|
1869
1899
|
});
|
|
1870
1900
|
}
|
|
@@ -1875,7 +1905,7 @@ var Files = class {
|
|
|
1875
1905
|
*/
|
|
1876
1906
|
static createFile(options) {
|
|
1877
1907
|
return (options.client ?? client).post({
|
|
1878
|
-
url: "/files",
|
|
1908
|
+
url: "/api/v1/files",
|
|
1879
1909
|
...options,
|
|
1880
1910
|
headers: {
|
|
1881
1911
|
"Content-Type": "application/json",
|
|
@@ -1891,7 +1921,7 @@ var Files = class {
|
|
|
1891
1921
|
static uploadFile(options) {
|
|
1892
1922
|
return (options.client ?? client).post({
|
|
1893
1923
|
...formDataBodySerializer,
|
|
1894
|
-
url: "/files/upload",
|
|
1924
|
+
url: "/api/v1/files/upload",
|
|
1895
1925
|
...options,
|
|
1896
1926
|
headers: {
|
|
1897
1927
|
"Content-Type": null,
|
|
@@ -1906,7 +1936,7 @@ var Files = class {
|
|
|
1906
1936
|
*/
|
|
1907
1937
|
static uploadFileBase64(options) {
|
|
1908
1938
|
return (options.client ?? client).post({
|
|
1909
|
-
url: "/files/upload/base64",
|
|
1939
|
+
url: "/api/v1/files/upload/base64",
|
|
1910
1940
|
...options,
|
|
1911
1941
|
headers: {
|
|
1912
1942
|
"Content-Type": "application/json",
|
|
@@ -1921,7 +1951,7 @@ var Files = class {
|
|
|
1921
1951
|
*/
|
|
1922
1952
|
static deleteFile(options) {
|
|
1923
1953
|
return (options.client ?? client).delete({
|
|
1924
|
-
url: "/files/{file_id}",
|
|
1954
|
+
url: "/api/v1/files/{file_id}",
|
|
1925
1955
|
...options
|
|
1926
1956
|
});
|
|
1927
1957
|
}
|
|
@@ -1932,7 +1962,7 @@ var Files = class {
|
|
|
1932
1962
|
*/
|
|
1933
1963
|
static getFile(options) {
|
|
1934
1964
|
return (options.client ?? client).get({
|
|
1935
|
-
url: "/files/{file_id}",
|
|
1965
|
+
url: "/api/v1/files/{file_id}",
|
|
1936
1966
|
...options
|
|
1937
1967
|
});
|
|
1938
1968
|
}
|
|
@@ -1943,7 +1973,7 @@ var Files = class {
|
|
|
1943
1973
|
*/
|
|
1944
1974
|
static downloadFile(options) {
|
|
1945
1975
|
return (options.client ?? client).get({
|
|
1946
|
-
url: "/files/{file_id}/download",
|
|
1976
|
+
url: "/api/v1/files/{file_id}/download",
|
|
1947
1977
|
...options
|
|
1948
1978
|
});
|
|
1949
1979
|
}
|
|
@@ -1954,7 +1984,7 @@ var Files = class {
|
|
|
1954
1984
|
*/
|
|
1955
1985
|
static updateFileMetadata(options) {
|
|
1956
1986
|
return (options.client ?? client).patch({
|
|
1957
|
-
url: "/files/{file_id}/metadata",
|
|
1987
|
+
url: "/api/v1/files/{file_id}/metadata",
|
|
1958
1988
|
...options,
|
|
1959
1989
|
headers: {
|
|
1960
1990
|
"Content-Type": "application/json",
|
|
@@ -1969,7 +1999,7 @@ var Files = class {
|
|
|
1969
1999
|
*/
|
|
1970
2000
|
static downloadFileBase64(options) {
|
|
1971
2001
|
return (options.client ?? client).get({
|
|
1972
|
-
url: "/files/{file_id}/download/base64",
|
|
2002
|
+
url: "/api/v1/files/{file_id}/download/base64",
|
|
1973
2003
|
...options
|
|
1974
2004
|
});
|
|
1975
2005
|
}
|
|
@@ -1980,7 +2010,7 @@ var Files = class {
|
|
|
1980
2010
|
*/
|
|
1981
2011
|
static getFileTags(options) {
|
|
1982
2012
|
return (options.client ?? client).get({
|
|
1983
|
-
url: "/files/{file_id}/tags",
|
|
2013
|
+
url: "/api/v1/files/{file_id}/tags",
|
|
1984
2014
|
...options
|
|
1985
2015
|
});
|
|
1986
2016
|
}
|
|
@@ -1991,7 +2021,7 @@ var Files = class {
|
|
|
1991
2021
|
*/
|
|
1992
2022
|
static mergeFileTags(options) {
|
|
1993
2023
|
return (options.client ?? client).patch({
|
|
1994
|
-
url: "/files/{file_id}/tags",
|
|
2024
|
+
url: "/api/v1/files/{file_id}/tags",
|
|
1995
2025
|
...options,
|
|
1996
2026
|
headers: {
|
|
1997
2027
|
"Content-Type": "application/json",
|
|
@@ -2006,7 +2036,7 @@ var Files = class {
|
|
|
2006
2036
|
*/
|
|
2007
2037
|
static replaceFileTags(options) {
|
|
2008
2038
|
return (options.client ?? client).put({
|
|
2009
|
-
url: "/files/{file_id}/tags",
|
|
2039
|
+
url: "/api/v1/files/{file_id}/tags",
|
|
2010
2040
|
...options,
|
|
2011
2041
|
headers: {
|
|
2012
2042
|
"Content-Type": "application/json",
|
|
@@ -2030,7 +2060,7 @@ var Policies = class {
|
|
|
2030
2060
|
scheme: "bearer",
|
|
2031
2061
|
type: "http"
|
|
2032
2062
|
}],
|
|
2033
|
-
url: "/policies",
|
|
2063
|
+
url: "/api/v1/policies",
|
|
2034
2064
|
...options
|
|
2035
2065
|
});
|
|
2036
2066
|
}
|
|
@@ -2045,7 +2075,7 @@ var Policies = class {
|
|
|
2045
2075
|
scheme: "bearer",
|
|
2046
2076
|
type: "http"
|
|
2047
2077
|
}],
|
|
2048
|
-
url: "/policies",
|
|
2078
|
+
url: "/api/v1/policies",
|
|
2049
2079
|
...options,
|
|
2050
2080
|
headers: {
|
|
2051
2081
|
"Content-Type": "application/json",
|
|
@@ -2064,7 +2094,7 @@ var Policies = class {
|
|
|
2064
2094
|
scheme: "bearer",
|
|
2065
2095
|
type: "http"
|
|
2066
2096
|
}],
|
|
2067
|
-
url: "/policies/{policy_id}",
|
|
2097
|
+
url: "/api/v1/policies/{policy_id}",
|
|
2068
2098
|
...options
|
|
2069
2099
|
});
|
|
2070
2100
|
}
|
|
@@ -2079,7 +2109,7 @@ var Policies = class {
|
|
|
2079
2109
|
scheme: "bearer",
|
|
2080
2110
|
type: "http"
|
|
2081
2111
|
}],
|
|
2082
|
-
url: "/policies/{policy_id}",
|
|
2112
|
+
url: "/api/v1/policies/{policy_id}",
|
|
2083
2113
|
...options
|
|
2084
2114
|
});
|
|
2085
2115
|
}
|
|
@@ -2094,7 +2124,7 @@ var Policies = class {
|
|
|
2094
2124
|
scheme: "bearer",
|
|
2095
2125
|
type: "http"
|
|
2096
2126
|
}],
|
|
2097
|
-
url: "/policies/{policy_id}",
|
|
2127
|
+
url: "/api/v1/policies/{policy_id}",
|
|
2098
2128
|
...options,
|
|
2099
2129
|
headers: {
|
|
2100
2130
|
"Content-Type": "application/json",
|
|
@@ -2114,7 +2144,7 @@ var Projects = class {
|
|
|
2114
2144
|
*/
|
|
2115
2145
|
static createProject(options) {
|
|
2116
2146
|
return (options.client ?? client).post({
|
|
2117
|
-
url: "/projects",
|
|
2147
|
+
url: "/api/v1/projects",
|
|
2118
2148
|
...options,
|
|
2119
2149
|
headers: {
|
|
2120
2150
|
"Content-Type": "application/json",
|
|
@@ -2133,7 +2163,7 @@ var Projects = class {
|
|
|
2133
2163
|
scheme: "bearer",
|
|
2134
2164
|
type: "http"
|
|
2135
2165
|
}],
|
|
2136
|
-
url: "/projects/{project_id}",
|
|
2166
|
+
url: "/api/v1/projects/{project_id}",
|
|
2137
2167
|
...options
|
|
2138
2168
|
});
|
|
2139
2169
|
}
|
|
@@ -2148,7 +2178,7 @@ var Projects = class {
|
|
|
2148
2178
|
scheme: "bearer",
|
|
2149
2179
|
type: "http"
|
|
2150
2180
|
}],
|
|
2151
|
-
url: "/projects/{project_id}",
|
|
2181
|
+
url: "/api/v1/projects/{project_id}",
|
|
2152
2182
|
...options
|
|
2153
2183
|
});
|
|
2154
2184
|
}
|
|
@@ -2164,7 +2194,7 @@ var Secrets = class {
|
|
|
2164
2194
|
*/
|
|
2165
2195
|
static listSecrets(options) {
|
|
2166
2196
|
return (options?.client ?? client).get({
|
|
2167
|
-
url: "/secrets",
|
|
2197
|
+
url: "/api/v1/secrets",
|
|
2168
2198
|
...options
|
|
2169
2199
|
});
|
|
2170
2200
|
}
|
|
@@ -2175,7 +2205,7 @@ var Secrets = class {
|
|
|
2175
2205
|
*/
|
|
2176
2206
|
static createSecret(options) {
|
|
2177
2207
|
return (options.client ?? client).post({
|
|
2178
|
-
url: "/secrets",
|
|
2208
|
+
url: "/api/v1/secrets",
|
|
2179
2209
|
...options,
|
|
2180
2210
|
headers: {
|
|
2181
2211
|
"Content-Type": "application/json",
|
|
@@ -2190,7 +2220,7 @@ var Secrets = class {
|
|
|
2190
2220
|
*/
|
|
2191
2221
|
static deleteSecret(options) {
|
|
2192
2222
|
return (options.client ?? client).delete({
|
|
2193
|
-
url: "/secrets/{secret_id}",
|
|
2223
|
+
url: "/api/v1/secrets/{secret_id}",
|
|
2194
2224
|
...options
|
|
2195
2225
|
});
|
|
2196
2226
|
}
|
|
@@ -2201,7 +2231,7 @@ var Secrets = class {
|
|
|
2201
2231
|
*/
|
|
2202
2232
|
static getSecret(options) {
|
|
2203
2233
|
return (options.client ?? client).get({
|
|
2204
|
-
url: "/secrets/{secret_id}",
|
|
2234
|
+
url: "/api/v1/secrets/{secret_id}",
|
|
2205
2235
|
...options
|
|
2206
2236
|
});
|
|
2207
2237
|
}
|
|
@@ -2212,7 +2242,7 @@ var Secrets = class {
|
|
|
2212
2242
|
*/
|
|
2213
2243
|
static updateSecret(options) {
|
|
2214
2244
|
return (options.client ?? client).patch({
|
|
2215
|
-
url: "/secrets/{secret_id}",
|
|
2245
|
+
url: "/api/v1/secrets/{secret_id}",
|
|
2216
2246
|
...options,
|
|
2217
2247
|
headers: {
|
|
2218
2248
|
"Content-Type": "application/json",
|
|
@@ -2236,7 +2266,7 @@ var Sessions = class {
|
|
|
2236
2266
|
scheme: "bearer",
|
|
2237
2267
|
type: "http"
|
|
2238
2268
|
}],
|
|
2239
|
-
url: "/agents/{agent_id}/sessions",
|
|
2269
|
+
url: "/api/v1/agents/{agent_id}/sessions",
|
|
2240
2270
|
...options
|
|
2241
2271
|
});
|
|
2242
2272
|
}
|
|
@@ -2252,7 +2282,7 @@ var Sessions = class {
|
|
|
2252
2282
|
scheme: "bearer",
|
|
2253
2283
|
type: "http"
|
|
2254
2284
|
}],
|
|
2255
|
-
url: "/agents/{agent_id}/sessions",
|
|
2285
|
+
url: "/api/v1/agents/{agent_id}/sessions",
|
|
2256
2286
|
...options,
|
|
2257
2287
|
headers: {
|
|
2258
2288
|
"Content-Type": "application/json",
|
|
@@ -2271,7 +2301,7 @@ var Sessions = class {
|
|
|
2271
2301
|
scheme: "bearer",
|
|
2272
2302
|
type: "http"
|
|
2273
2303
|
}],
|
|
2274
|
-
url: "/agents/{agent_id}/sessions/{session_id}",
|
|
2304
|
+
url: "/api/v1/agents/{agent_id}/sessions/{session_id}",
|
|
2275
2305
|
...options
|
|
2276
2306
|
});
|
|
2277
2307
|
}
|
|
@@ -2286,7 +2316,7 @@ var Sessions = class {
|
|
|
2286
2316
|
scheme: "bearer",
|
|
2287
2317
|
type: "http"
|
|
2288
2318
|
}],
|
|
2289
|
-
url: "/agents/{agent_id}/sessions/{session_id}",
|
|
2319
|
+
url: "/api/v1/agents/{agent_id}/sessions/{session_id}",
|
|
2290
2320
|
...options
|
|
2291
2321
|
});
|
|
2292
2322
|
}
|
|
@@ -2301,7 +2331,7 @@ var Sessions = class {
|
|
|
2301
2331
|
scheme: "bearer",
|
|
2302
2332
|
type: "http"
|
|
2303
2333
|
}],
|
|
2304
|
-
url: "/agents/{agent_id}/sessions/{session_id}",
|
|
2334
|
+
url: "/api/v1/agents/{agent_id}/sessions/{session_id}",
|
|
2305
2335
|
...options,
|
|
2306
2336
|
headers: {
|
|
2307
2337
|
"Content-Type": "application/json",
|
|
@@ -2321,7 +2351,7 @@ var Sessions = class {
|
|
|
2321
2351
|
scheme: "bearer",
|
|
2322
2352
|
type: "http"
|
|
2323
2353
|
}],
|
|
2324
|
-
url: "/agents/{agent_id}/sessions/{session_id}/messages",
|
|
2354
|
+
url: "/api/v1/agents/{agent_id}/sessions/{session_id}/messages",
|
|
2325
2355
|
...options
|
|
2326
2356
|
});
|
|
2327
2357
|
}
|
|
@@ -2337,7 +2367,7 @@ var Sessions = class {
|
|
|
2337
2367
|
scheme: "bearer",
|
|
2338
2368
|
type: "http"
|
|
2339
2369
|
}],
|
|
2340
|
-
url: "/agents/{agent_id}/sessions/{session_id}/messages",
|
|
2370
|
+
url: "/api/v1/agents/{agent_id}/sessions/{session_id}/messages",
|
|
2341
2371
|
...options,
|
|
2342
2372
|
headers: {
|
|
2343
2373
|
"Content-Type": "application/json",
|
|
@@ -2357,7 +2387,7 @@ var Sessions = class {
|
|
|
2357
2387
|
scheme: "bearer",
|
|
2358
2388
|
type: "http"
|
|
2359
2389
|
}],
|
|
2360
|
-
url: "/agents/{agent_id}/sessions/{session_id}/generate",
|
|
2390
|
+
url: "/api/v1/agents/{agent_id}/sessions/{session_id}/generate",
|
|
2361
2391
|
...options,
|
|
2362
2392
|
headers: {
|
|
2363
2393
|
"Content-Type": "application/json",
|
|
@@ -2377,7 +2407,7 @@ var Sessions = class {
|
|
|
2377
2407
|
scheme: "bearer",
|
|
2378
2408
|
type: "http"
|
|
2379
2409
|
}],
|
|
2380
|
-
url: "/agents/{agent_id}/sessions/{session_id}/tool-outputs",
|
|
2410
|
+
url: "/api/v1/agents/{agent_id}/sessions/{session_id}/tool-outputs",
|
|
2381
2411
|
...options,
|
|
2382
2412
|
headers: {
|
|
2383
2413
|
"Content-Type": "application/json",
|
|
@@ -2396,7 +2426,7 @@ var Sessions = class {
|
|
|
2396
2426
|
scheme: "bearer",
|
|
2397
2427
|
type: "http"
|
|
2398
2428
|
}],
|
|
2399
|
-
url: "/agents/{agent_id}/sessions/{session_id}/tags",
|
|
2429
|
+
url: "/api/v1/agents/{agent_id}/sessions/{session_id}/tags",
|
|
2400
2430
|
...options
|
|
2401
2431
|
});
|
|
2402
2432
|
}
|
|
@@ -2411,7 +2441,7 @@ var Sessions = class {
|
|
|
2411
2441
|
scheme: "bearer",
|
|
2412
2442
|
type: "http"
|
|
2413
2443
|
}],
|
|
2414
|
-
url: "/agents/{agent_id}/sessions/{session_id}/tags",
|
|
2444
|
+
url: "/api/v1/agents/{agent_id}/sessions/{session_id}/tags",
|
|
2415
2445
|
...options,
|
|
2416
2446
|
headers: {
|
|
2417
2447
|
"Content-Type": "application/json",
|
|
@@ -2430,7 +2460,7 @@ var Sessions = class {
|
|
|
2430
2460
|
scheme: "bearer",
|
|
2431
2461
|
type: "http"
|
|
2432
2462
|
}],
|
|
2433
|
-
url: "/agents/{agent_id}/sessions/{session_id}/tags",
|
|
2463
|
+
url: "/api/v1/agents/{agent_id}/sessions/{session_id}/tags",
|
|
2434
2464
|
...options,
|
|
2435
2465
|
headers: {
|
|
2436
2466
|
"Content-Type": "application/json",
|
|
@@ -2450,7 +2480,7 @@ var Users = class {
|
|
|
2450
2480
|
*/
|
|
2451
2481
|
static listUsers(options) {
|
|
2452
2482
|
return (options?.client ?? client).get({
|
|
2453
|
-
url: "/users",
|
|
2483
|
+
url: "/api/v1/users",
|
|
2454
2484
|
...options
|
|
2455
2485
|
});
|
|
2456
2486
|
}
|
|
@@ -2461,7 +2491,7 @@ var Users = class {
|
|
|
2461
2491
|
*/
|
|
2462
2492
|
static createUser(options) {
|
|
2463
2493
|
return (options.client ?? client).post({
|
|
2464
|
-
url: "/users",
|
|
2494
|
+
url: "/api/v1/users",
|
|
2465
2495
|
...options,
|
|
2466
2496
|
headers: {
|
|
2467
2497
|
"Content-Type": "application/json",
|
|
@@ -2476,7 +2506,7 @@ var Users = class {
|
|
|
2476
2506
|
*/
|
|
2477
2507
|
static deleteUser(options) {
|
|
2478
2508
|
return (options.client ?? client).delete({
|
|
2479
|
-
url: "/users/{user_id}",
|
|
2509
|
+
url: "/api/v1/users/{user_id}",
|
|
2480
2510
|
...options
|
|
2481
2511
|
});
|
|
2482
2512
|
}
|
|
@@ -2487,7 +2517,7 @@ var Users = class {
|
|
|
2487
2517
|
*/
|
|
2488
2518
|
static getUser(options) {
|
|
2489
2519
|
return (options.client ?? client).get({
|
|
2490
|
-
url: "/users/{user_id}",
|
|
2520
|
+
url: "/api/v1/users/{user_id}",
|
|
2491
2521
|
...options
|
|
2492
2522
|
});
|
|
2493
2523
|
}
|
|
@@ -2498,7 +2528,7 @@ var Users = class {
|
|
|
2498
2528
|
*/
|
|
2499
2529
|
static bootstrapUser(options) {
|
|
2500
2530
|
return (options.client ?? client).post({
|
|
2501
|
-
url: "/users/bootstrap",
|
|
2531
|
+
url: "/api/v1/users/bootstrap",
|
|
2502
2532
|
...options,
|
|
2503
2533
|
headers: {
|
|
2504
2534
|
"Content-Type": "application/json",
|
|
@@ -2513,7 +2543,7 @@ var Users = class {
|
|
|
2513
2543
|
*/
|
|
2514
2544
|
static loginUser(options) {
|
|
2515
2545
|
return (options.client ?? client).post({
|
|
2516
|
-
url: "/users/login",
|
|
2546
|
+
url: "/api/v1/users/login",
|
|
2517
2547
|
...options,
|
|
2518
2548
|
headers: {
|
|
2519
2549
|
"Content-Type": "application/json",
|
|
@@ -2532,7 +2562,7 @@ var Users = class {
|
|
|
2532
2562
|
scheme: "bearer",
|
|
2533
2563
|
type: "http"
|
|
2534
2564
|
}],
|
|
2535
|
-
url: "/users/{user_id}/policies",
|
|
2565
|
+
url: "/api/v1/users/{user_id}/policies",
|
|
2536
2566
|
...options
|
|
2537
2567
|
});
|
|
2538
2568
|
}
|
|
@@ -2547,7 +2577,7 @@ var Users = class {
|
|
|
2547
2577
|
scheme: "bearer",
|
|
2548
2578
|
type: "http"
|
|
2549
2579
|
}],
|
|
2550
|
-
url: "/users/{user_id}/policies",
|
|
2580
|
+
url: "/api/v1/users/{user_id}/policies",
|
|
2551
2581
|
...options,
|
|
2552
2582
|
headers: {
|
|
2553
2583
|
"Content-Type": "application/json",
|
|
@@ -2567,7 +2597,7 @@ var Webhooks = class {
|
|
|
2567
2597
|
*/
|
|
2568
2598
|
static listWebhooks(options) {
|
|
2569
2599
|
return (options.client ?? client).get({
|
|
2570
|
-
url: "/projects/{project_id}/webhooks",
|
|
2600
|
+
url: "/api/v1/projects/{project_id}/webhooks",
|
|
2571
2601
|
...options
|
|
2572
2602
|
});
|
|
2573
2603
|
}
|
|
@@ -2578,7 +2608,7 @@ var Webhooks = class {
|
|
|
2578
2608
|
*/
|
|
2579
2609
|
static createWebhook(options) {
|
|
2580
2610
|
return (options.client ?? client).post({
|
|
2581
|
-
url: "/projects/{project_id}/webhooks",
|
|
2611
|
+
url: "/api/v1/projects/{project_id}/webhooks",
|
|
2582
2612
|
...options,
|
|
2583
2613
|
headers: {
|
|
2584
2614
|
"Content-Type": "application/json",
|
|
@@ -2593,7 +2623,7 @@ var Webhooks = class {
|
|
|
2593
2623
|
*/
|
|
2594
2624
|
static deleteWebhook(options) {
|
|
2595
2625
|
return (options.client ?? client).delete({
|
|
2596
|
-
url: "/projects/{project_id}/webhooks/{webhook_id}",
|
|
2626
|
+
url: "/api/v1/projects/{project_id}/webhooks/{webhook_id}",
|
|
2597
2627
|
...options
|
|
2598
2628
|
});
|
|
2599
2629
|
}
|
|
@@ -2604,7 +2634,7 @@ var Webhooks = class {
|
|
|
2604
2634
|
*/
|
|
2605
2635
|
static getWebhook(options) {
|
|
2606
2636
|
return (options.client ?? client).get({
|
|
2607
|
-
url: "/projects/{project_id}/webhooks/{webhook_id}",
|
|
2637
|
+
url: "/api/v1/projects/{project_id}/webhooks/{webhook_id}",
|
|
2608
2638
|
...options
|
|
2609
2639
|
});
|
|
2610
2640
|
}
|
|
@@ -2615,7 +2645,7 @@ var Webhooks = class {
|
|
|
2615
2645
|
*/
|
|
2616
2646
|
static updateWebhook(options) {
|
|
2617
2647
|
return (options.client ?? client).put({
|
|
2618
|
-
url: "/projects/{project_id}/webhooks/{webhook_id}",
|
|
2648
|
+
url: "/api/v1/projects/{project_id}/webhooks/{webhook_id}",
|
|
2619
2649
|
...options,
|
|
2620
2650
|
headers: {
|
|
2621
2651
|
"Content-Type": "application/json",
|
|
@@ -2630,7 +2660,7 @@ var Webhooks = class {
|
|
|
2630
2660
|
*/
|
|
2631
2661
|
static listWebhookDeliveries(options) {
|
|
2632
2662
|
return (options.client ?? client).get({
|
|
2633
|
-
url: "/projects/{project_id}/webhooks/{webhook_id}/deliveries",
|
|
2663
|
+
url: "/api/v1/projects/{project_id}/webhooks/{webhook_id}/deliveries",
|
|
2634
2664
|
...options
|
|
2635
2665
|
});
|
|
2636
2666
|
}
|
|
@@ -2641,7 +2671,7 @@ var Webhooks = class {
|
|
|
2641
2671
|
*/
|
|
2642
2672
|
static getWebhookDelivery(options) {
|
|
2643
2673
|
return (options.client ?? client).get({
|
|
2644
|
-
url: "/projects/{project_id}/webhooks/{webhook_id}/deliveries/{delivery_id}",
|
|
2674
|
+
url: "/api/v1/projects/{project_id}/webhooks/{webhook_id}/deliveries/{delivery_id}",
|
|
2645
2675
|
...options
|
|
2646
2676
|
});
|
|
2647
2677
|
}
|
|
@@ -2652,7 +2682,7 @@ var Webhooks = class {
|
|
|
2652
2682
|
*/
|
|
2653
2683
|
static rotateWebhookSecret(options) {
|
|
2654
2684
|
return (options.client ?? client).post({
|
|
2655
|
-
url: "/projects/{project_id}/webhooks/{webhook_id}/rotate-secret",
|
|
2685
|
+
url: "/api/v1/projects/{project_id}/webhooks/{webhook_id}/rotate-secret",
|
|
2656
2686
|
...options
|
|
2657
2687
|
});
|
|
2658
2688
|
}
|
|
@@ -2704,7 +2734,7 @@ var SoatClient = class {
|
|
|
2704
2734
|
Authorization: `Bearer ${token}`
|
|
2705
2735
|
} : {};
|
|
2706
2736
|
const httpClient = createClient(createConfig({
|
|
2707
|
-
baseUrl: baseUrl ?? "
|
|
2737
|
+
baseUrl: baseUrl ?? "",
|
|
2708
2738
|
headers: {
|
|
2709
2739
|
...authHeaders,
|
|
2710
2740
|
...headers
|