@soat/sdk 0.4.5 → 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 -2
package/dist/esm/index.js
CHANGED
|
@@ -859,9 +859,7 @@ var createClient = /* @__PURE__ */__name((config = {}) => {
|
|
|
859
859
|
}, "createClient");
|
|
860
860
|
|
|
861
861
|
// src/generated/client.gen.ts
|
|
862
|
-
var client = createClient(createConfig(
|
|
863
|
-
baseUrl: "/api/v1"
|
|
864
|
-
}));
|
|
862
|
+
var client = createClient(createConfig());
|
|
865
863
|
|
|
866
864
|
// src/generated/sdk.gen.ts
|
|
867
865
|
var Actors = class {
|
|
@@ -875,7 +873,11 @@ var Actors = class {
|
|
|
875
873
|
*/
|
|
876
874
|
static listActors(options) {
|
|
877
875
|
return (options?.client ?? client).get({
|
|
878
|
-
|
|
876
|
+
security: [{
|
|
877
|
+
scheme: "bearer",
|
|
878
|
+
type: "http"
|
|
879
|
+
}],
|
|
880
|
+
url: "/api/v1/actors",
|
|
879
881
|
...options
|
|
880
882
|
});
|
|
881
883
|
}
|
|
@@ -886,7 +888,11 @@ var Actors = class {
|
|
|
886
888
|
*/
|
|
887
889
|
static createActor(options) {
|
|
888
890
|
return (options.client ?? client).post({
|
|
889
|
-
|
|
891
|
+
security: [{
|
|
892
|
+
scheme: "bearer",
|
|
893
|
+
type: "http"
|
|
894
|
+
}],
|
|
895
|
+
url: "/api/v1/actors",
|
|
890
896
|
...options,
|
|
891
897
|
headers: {
|
|
892
898
|
"Content-Type": "application/json",
|
|
@@ -901,7 +907,11 @@ var Actors = class {
|
|
|
901
907
|
*/
|
|
902
908
|
static deleteActor(options) {
|
|
903
909
|
return (options.client ?? client).delete({
|
|
904
|
-
|
|
910
|
+
security: [{
|
|
911
|
+
scheme: "bearer",
|
|
912
|
+
type: "http"
|
|
913
|
+
}],
|
|
914
|
+
url: "/api/v1/actors/{actor_id}",
|
|
905
915
|
...options
|
|
906
916
|
});
|
|
907
917
|
}
|
|
@@ -912,7 +922,11 @@ var Actors = class {
|
|
|
912
922
|
*/
|
|
913
923
|
static getActor(options) {
|
|
914
924
|
return (options.client ?? client).get({
|
|
915
|
-
|
|
925
|
+
security: [{
|
|
926
|
+
scheme: "bearer",
|
|
927
|
+
type: "http"
|
|
928
|
+
}],
|
|
929
|
+
url: "/api/v1/actors/{actor_id}",
|
|
916
930
|
...options
|
|
917
931
|
});
|
|
918
932
|
}
|
|
@@ -923,7 +937,11 @@ var Actors = class {
|
|
|
923
937
|
*/
|
|
924
938
|
static updateActor(options) {
|
|
925
939
|
return (options.client ?? client).patch({
|
|
926
|
-
|
|
940
|
+
security: [{
|
|
941
|
+
scheme: "bearer",
|
|
942
|
+
type: "http"
|
|
943
|
+
}],
|
|
944
|
+
url: "/api/v1/actors/{actor_id}",
|
|
927
945
|
...options,
|
|
928
946
|
headers: {
|
|
929
947
|
"Content-Type": "application/json",
|
|
@@ -938,7 +956,11 @@ var Actors = class {
|
|
|
938
956
|
*/
|
|
939
957
|
static getActorTags(options) {
|
|
940
958
|
return (options.client ?? client).get({
|
|
941
|
-
|
|
959
|
+
security: [{
|
|
960
|
+
scheme: "bearer",
|
|
961
|
+
type: "http"
|
|
962
|
+
}],
|
|
963
|
+
url: "/api/v1/actors/{actor_id}/tags",
|
|
942
964
|
...options
|
|
943
965
|
});
|
|
944
966
|
}
|
|
@@ -949,7 +971,11 @@ var Actors = class {
|
|
|
949
971
|
*/
|
|
950
972
|
static mergeActorTags(options) {
|
|
951
973
|
return (options.client ?? client).patch({
|
|
952
|
-
|
|
974
|
+
security: [{
|
|
975
|
+
scheme: "bearer",
|
|
976
|
+
type: "http"
|
|
977
|
+
}],
|
|
978
|
+
url: "/api/v1/actors/{actor_id}/tags",
|
|
953
979
|
...options,
|
|
954
980
|
headers: {
|
|
955
981
|
"Content-Type": "application/json",
|
|
@@ -964,7 +990,11 @@ var Actors = class {
|
|
|
964
990
|
*/
|
|
965
991
|
static replaceActorTags(options) {
|
|
966
992
|
return (options.client ?? client).put({
|
|
967
|
-
|
|
993
|
+
security: [{
|
|
994
|
+
scheme: "bearer",
|
|
995
|
+
type: "http"
|
|
996
|
+
}],
|
|
997
|
+
url: "/api/v1/actors/{actor_id}/tags",
|
|
968
998
|
...options,
|
|
969
999
|
headers: {
|
|
970
1000
|
"Content-Type": "application/json",
|
|
@@ -988,7 +1018,7 @@ var AgentTools = class {
|
|
|
988
1018
|
scheme: "bearer",
|
|
989
1019
|
type: "http"
|
|
990
1020
|
}],
|
|
991
|
-
url: "/agents/tools",
|
|
1021
|
+
url: "/api/v1/agents/tools",
|
|
992
1022
|
...options
|
|
993
1023
|
});
|
|
994
1024
|
}
|
|
@@ -1003,7 +1033,7 @@ var AgentTools = class {
|
|
|
1003
1033
|
scheme: "bearer",
|
|
1004
1034
|
type: "http"
|
|
1005
1035
|
}],
|
|
1006
|
-
url: "/agents/tools",
|
|
1036
|
+
url: "/api/v1/agents/tools",
|
|
1007
1037
|
...options,
|
|
1008
1038
|
headers: {
|
|
1009
1039
|
"Content-Type": "application/json",
|
|
@@ -1022,7 +1052,7 @@ var AgentTools = class {
|
|
|
1022
1052
|
scheme: "bearer",
|
|
1023
1053
|
type: "http"
|
|
1024
1054
|
}],
|
|
1025
|
-
url: "/agents/tools/{tool_id}",
|
|
1055
|
+
url: "/api/v1/agents/tools/{tool_id}",
|
|
1026
1056
|
...options
|
|
1027
1057
|
});
|
|
1028
1058
|
}
|
|
@@ -1037,7 +1067,7 @@ var AgentTools = class {
|
|
|
1037
1067
|
scheme: "bearer",
|
|
1038
1068
|
type: "http"
|
|
1039
1069
|
}],
|
|
1040
|
-
url: "/agents/tools/{tool_id}",
|
|
1070
|
+
url: "/api/v1/agents/tools/{tool_id}",
|
|
1041
1071
|
...options
|
|
1042
1072
|
});
|
|
1043
1073
|
}
|
|
@@ -1052,7 +1082,7 @@ var AgentTools = class {
|
|
|
1052
1082
|
scheme: "bearer",
|
|
1053
1083
|
type: "http"
|
|
1054
1084
|
}],
|
|
1055
|
-
url: "/agents/tools/{tool_id}",
|
|
1085
|
+
url: "/api/v1/agents/tools/{tool_id}",
|
|
1056
1086
|
...options,
|
|
1057
1087
|
headers: {
|
|
1058
1088
|
"Content-Type": "application/json",
|
|
@@ -1076,7 +1106,7 @@ var AgentTraces = class {
|
|
|
1076
1106
|
scheme: "bearer",
|
|
1077
1107
|
type: "http"
|
|
1078
1108
|
}],
|
|
1079
|
-
url: "/agents/traces",
|
|
1109
|
+
url: "/api/v1/agents/traces",
|
|
1080
1110
|
...options
|
|
1081
1111
|
});
|
|
1082
1112
|
}
|
|
@@ -1091,7 +1121,7 @@ var AgentTraces = class {
|
|
|
1091
1121
|
scheme: "bearer",
|
|
1092
1122
|
type: "http"
|
|
1093
1123
|
}],
|
|
1094
|
-
url: "/agents/traces/{trace_id}",
|
|
1124
|
+
url: "/api/v1/agents/traces/{trace_id}",
|
|
1095
1125
|
...options
|
|
1096
1126
|
});
|
|
1097
1127
|
}
|
|
@@ -1111,7 +1141,7 @@ var Agents = class {
|
|
|
1111
1141
|
scheme: "bearer",
|
|
1112
1142
|
type: "http"
|
|
1113
1143
|
}],
|
|
1114
|
-
url: "/agents",
|
|
1144
|
+
url: "/api/v1/agents",
|
|
1115
1145
|
...options
|
|
1116
1146
|
});
|
|
1117
1147
|
}
|
|
@@ -1126,7 +1156,7 @@ var Agents = class {
|
|
|
1126
1156
|
scheme: "bearer",
|
|
1127
1157
|
type: "http"
|
|
1128
1158
|
}],
|
|
1129
|
-
url: "/agents",
|
|
1159
|
+
url: "/api/v1/agents",
|
|
1130
1160
|
...options,
|
|
1131
1161
|
headers: {
|
|
1132
1162
|
"Content-Type": "application/json",
|
|
@@ -1145,7 +1175,7 @@ var Agents = class {
|
|
|
1145
1175
|
scheme: "bearer",
|
|
1146
1176
|
type: "http"
|
|
1147
1177
|
}],
|
|
1148
|
-
url: "/agents/{agent_id}",
|
|
1178
|
+
url: "/api/v1/agents/{agent_id}",
|
|
1149
1179
|
...options
|
|
1150
1180
|
});
|
|
1151
1181
|
}
|
|
@@ -1160,7 +1190,7 @@ var Agents = class {
|
|
|
1160
1190
|
scheme: "bearer",
|
|
1161
1191
|
type: "http"
|
|
1162
1192
|
}],
|
|
1163
|
-
url: "/agents/{agent_id}",
|
|
1193
|
+
url: "/api/v1/agents/{agent_id}",
|
|
1164
1194
|
...options
|
|
1165
1195
|
});
|
|
1166
1196
|
}
|
|
@@ -1175,7 +1205,7 @@ var Agents = class {
|
|
|
1175
1205
|
scheme: "bearer",
|
|
1176
1206
|
type: "http"
|
|
1177
1207
|
}],
|
|
1178
|
-
url: "/agents/{agent_id}",
|
|
1208
|
+
url: "/api/v1/agents/{agent_id}",
|
|
1179
1209
|
...options,
|
|
1180
1210
|
headers: {
|
|
1181
1211
|
"Content-Type": "application/json",
|
|
@@ -1195,7 +1225,7 @@ var Agents = class {
|
|
|
1195
1225
|
scheme: "bearer",
|
|
1196
1226
|
type: "http"
|
|
1197
1227
|
}],
|
|
1198
|
-
url: "/agents/{agent_id}/generate",
|
|
1228
|
+
url: "/api/v1/agents/{agent_id}/generate",
|
|
1199
1229
|
...options,
|
|
1200
1230
|
headers: {
|
|
1201
1231
|
"Content-Type": "application/json",
|
|
@@ -1215,7 +1245,7 @@ var Agents = class {
|
|
|
1215
1245
|
scheme: "bearer",
|
|
1216
1246
|
type: "http"
|
|
1217
1247
|
}],
|
|
1218
|
-
url: "/agents/{agent_id}/generate/{generation_id}/tool-outputs",
|
|
1248
|
+
url: "/api/v1/agents/{agent_id}/generate/{generation_id}/tool-outputs",
|
|
1219
1249
|
...options,
|
|
1220
1250
|
headers: {
|
|
1221
1251
|
"Content-Type": "application/json",
|
|
@@ -1230,7 +1260,7 @@ var Agents = class {
|
|
|
1230
1260
|
*/
|
|
1231
1261
|
static createAgentActor(options) {
|
|
1232
1262
|
return (options.client ?? client).post({
|
|
1233
|
-
url: "/agents/{agent_id}/actors",
|
|
1263
|
+
url: "/api/v1/agents/{agent_id}/actors",
|
|
1234
1264
|
...options,
|
|
1235
1265
|
headers: {
|
|
1236
1266
|
"Content-Type": "application/json",
|
|
@@ -1250,7 +1280,7 @@ var AiProviders = class {
|
|
|
1250
1280
|
*/
|
|
1251
1281
|
static listAiProviders(options) {
|
|
1252
1282
|
return (options?.client ?? client).get({
|
|
1253
|
-
url: "/ai-providers",
|
|
1283
|
+
url: "/api/v1/ai-providers",
|
|
1254
1284
|
...options
|
|
1255
1285
|
});
|
|
1256
1286
|
}
|
|
@@ -1261,7 +1291,7 @@ var AiProviders = class {
|
|
|
1261
1291
|
*/
|
|
1262
1292
|
static createAiProvider(options) {
|
|
1263
1293
|
return (options.client ?? client).post({
|
|
1264
|
-
url: "/ai-providers",
|
|
1294
|
+
url: "/api/v1/ai-providers",
|
|
1265
1295
|
...options,
|
|
1266
1296
|
headers: {
|
|
1267
1297
|
"Content-Type": "application/json",
|
|
@@ -1276,7 +1306,7 @@ var AiProviders = class {
|
|
|
1276
1306
|
*/
|
|
1277
1307
|
static deleteAiProvider(options) {
|
|
1278
1308
|
return (options.client ?? client).delete({
|
|
1279
|
-
url: "/ai-providers/{ai_provider_id}",
|
|
1309
|
+
url: "/api/v1/ai-providers/{ai_provider_id}",
|
|
1280
1310
|
...options
|
|
1281
1311
|
});
|
|
1282
1312
|
}
|
|
@@ -1287,7 +1317,7 @@ var AiProviders = class {
|
|
|
1287
1317
|
*/
|
|
1288
1318
|
static getAiProvider(options) {
|
|
1289
1319
|
return (options.client ?? client).get({
|
|
1290
|
-
url: "/ai-providers/{ai_provider_id}",
|
|
1320
|
+
url: "/api/v1/ai-providers/{ai_provider_id}",
|
|
1291
1321
|
...options
|
|
1292
1322
|
});
|
|
1293
1323
|
}
|
|
@@ -1298,7 +1328,7 @@ var AiProviders = class {
|
|
|
1298
1328
|
*/
|
|
1299
1329
|
static updateAiProvider(options) {
|
|
1300
1330
|
return (options.client ?? client).patch({
|
|
1301
|
-
url: "/ai-providers/{ai_provider_id}",
|
|
1331
|
+
url: "/api/v1/ai-providers/{ai_provider_id}",
|
|
1302
1332
|
...options,
|
|
1303
1333
|
headers: {
|
|
1304
1334
|
"Content-Type": "application/json",
|
|
@@ -1323,7 +1353,7 @@ var ApiKeys = class {
|
|
|
1323
1353
|
scheme: "bearer",
|
|
1324
1354
|
type: "http"
|
|
1325
1355
|
}],
|
|
1326
|
-
url: "/api-keys",
|
|
1356
|
+
url: "/api/v1/api-keys",
|
|
1327
1357
|
...options,
|
|
1328
1358
|
headers: {
|
|
1329
1359
|
"Content-Type": "application/json",
|
|
@@ -1342,7 +1372,7 @@ var ApiKeys = class {
|
|
|
1342
1372
|
scheme: "bearer",
|
|
1343
1373
|
type: "http"
|
|
1344
1374
|
}],
|
|
1345
|
-
url: "/api-keys/{api_key_id}",
|
|
1375
|
+
url: "/api/v1/api-keys/{api_key_id}",
|
|
1346
1376
|
...options
|
|
1347
1377
|
});
|
|
1348
1378
|
}
|
|
@@ -1357,7 +1387,7 @@ var ApiKeys = class {
|
|
|
1357
1387
|
scheme: "bearer",
|
|
1358
1388
|
type: "http"
|
|
1359
1389
|
}],
|
|
1360
|
-
url: "/api-keys/{api_key_id}",
|
|
1390
|
+
url: "/api/v1/api-keys/{api_key_id}",
|
|
1361
1391
|
...options
|
|
1362
1392
|
});
|
|
1363
1393
|
}
|
|
@@ -1372,7 +1402,7 @@ var ApiKeys = class {
|
|
|
1372
1402
|
scheme: "bearer",
|
|
1373
1403
|
type: "http"
|
|
1374
1404
|
}],
|
|
1375
|
-
url: "/api-keys/{api_key_id}",
|
|
1405
|
+
url: "/api/v1/api-keys/{api_key_id}",
|
|
1376
1406
|
...options,
|
|
1377
1407
|
headers: {
|
|
1378
1408
|
"Content-Type": "application/json",
|
|
@@ -1396,7 +1426,7 @@ var Chats = class {
|
|
|
1396
1426
|
scheme: "bearer",
|
|
1397
1427
|
type: "http"
|
|
1398
1428
|
}],
|
|
1399
|
-
url: "/chats",
|
|
1429
|
+
url: "/api/v1/chats",
|
|
1400
1430
|
...options
|
|
1401
1431
|
});
|
|
1402
1432
|
}
|
|
@@ -1411,7 +1441,7 @@ var Chats = class {
|
|
|
1411
1441
|
scheme: "bearer",
|
|
1412
1442
|
type: "http"
|
|
1413
1443
|
}],
|
|
1414
|
-
url: "/chats",
|
|
1444
|
+
url: "/api/v1/chats",
|
|
1415
1445
|
...options,
|
|
1416
1446
|
headers: {
|
|
1417
1447
|
"Content-Type": "application/json",
|
|
@@ -1430,7 +1460,7 @@ var Chats = class {
|
|
|
1430
1460
|
scheme: "bearer",
|
|
1431
1461
|
type: "http"
|
|
1432
1462
|
}],
|
|
1433
|
-
url: "/chats/{chat_id}",
|
|
1463
|
+
url: "/api/v1/chats/{chat_id}",
|
|
1434
1464
|
...options
|
|
1435
1465
|
});
|
|
1436
1466
|
}
|
|
@@ -1445,7 +1475,7 @@ var Chats = class {
|
|
|
1445
1475
|
scheme: "bearer",
|
|
1446
1476
|
type: "http"
|
|
1447
1477
|
}],
|
|
1448
|
-
url: "/chats/{chat_id}",
|
|
1478
|
+
url: "/api/v1/chats/{chat_id}",
|
|
1449
1479
|
...options
|
|
1450
1480
|
});
|
|
1451
1481
|
}
|
|
@@ -1461,7 +1491,7 @@ var Chats = class {
|
|
|
1461
1491
|
scheme: "bearer",
|
|
1462
1492
|
type: "http"
|
|
1463
1493
|
}],
|
|
1464
|
-
url: "/chats/{chat_id}/completions",
|
|
1494
|
+
url: "/api/v1/chats/{chat_id}/completions",
|
|
1465
1495
|
...options,
|
|
1466
1496
|
headers: {
|
|
1467
1497
|
"Content-Type": "application/json",
|
|
@@ -1481,7 +1511,7 @@ var Chats = class {
|
|
|
1481
1511
|
scheme: "bearer",
|
|
1482
1512
|
type: "http"
|
|
1483
1513
|
}],
|
|
1484
|
-
url: "/chats/completions",
|
|
1514
|
+
url: "/api/v1/chats/completions",
|
|
1485
1515
|
...options,
|
|
1486
1516
|
headers: {
|
|
1487
1517
|
"Content-Type": "application/json",
|
|
@@ -1496,7 +1526,7 @@ var Chats = class {
|
|
|
1496
1526
|
*/
|
|
1497
1527
|
static createChatActor(options) {
|
|
1498
1528
|
return (options.client ?? client).post({
|
|
1499
|
-
url: "/chats/{chat_id}/actors",
|
|
1529
|
+
url: "/api/v1/chats/{chat_id}/actors",
|
|
1500
1530
|
...options,
|
|
1501
1531
|
headers: {
|
|
1502
1532
|
"Content-Type": "application/json",
|
|
@@ -1516,7 +1546,7 @@ var Conversations = class {
|
|
|
1516
1546
|
*/
|
|
1517
1547
|
static listConversations(options) {
|
|
1518
1548
|
return (options?.client ?? client).get({
|
|
1519
|
-
url: "/conversations",
|
|
1549
|
+
url: "/api/v1/conversations",
|
|
1520
1550
|
...options
|
|
1521
1551
|
});
|
|
1522
1552
|
}
|
|
@@ -1527,7 +1557,7 @@ var Conversations = class {
|
|
|
1527
1557
|
*/
|
|
1528
1558
|
static createConversation(options) {
|
|
1529
1559
|
return (options.client ?? client).post({
|
|
1530
|
-
url: "/conversations",
|
|
1560
|
+
url: "/api/v1/conversations",
|
|
1531
1561
|
...options,
|
|
1532
1562
|
headers: {
|
|
1533
1563
|
"Content-Type": "application/json",
|
|
@@ -1542,7 +1572,7 @@ var Conversations = class {
|
|
|
1542
1572
|
*/
|
|
1543
1573
|
static deleteConversation(options) {
|
|
1544
1574
|
return (options.client ?? client).delete({
|
|
1545
|
-
url: "/conversations/{conversation_id}",
|
|
1575
|
+
url: "/api/v1/conversations/{conversation_id}",
|
|
1546
1576
|
...options
|
|
1547
1577
|
});
|
|
1548
1578
|
}
|
|
@@ -1553,7 +1583,7 @@ var Conversations = class {
|
|
|
1553
1583
|
*/
|
|
1554
1584
|
static getConversation(options) {
|
|
1555
1585
|
return (options.client ?? client).get({
|
|
1556
|
-
url: "/conversations/{conversation_id}",
|
|
1586
|
+
url: "/api/v1/conversations/{conversation_id}",
|
|
1557
1587
|
...options
|
|
1558
1588
|
});
|
|
1559
1589
|
}
|
|
@@ -1564,7 +1594,7 @@ var Conversations = class {
|
|
|
1564
1594
|
*/
|
|
1565
1595
|
static updateConversation(options) {
|
|
1566
1596
|
return (options.client ?? client).patch({
|
|
1567
|
-
url: "/conversations/{conversation_id}",
|
|
1597
|
+
url: "/api/v1/conversations/{conversation_id}",
|
|
1568
1598
|
...options,
|
|
1569
1599
|
headers: {
|
|
1570
1600
|
"Content-Type": "application/json",
|
|
@@ -1579,7 +1609,7 @@ var Conversations = class {
|
|
|
1579
1609
|
*/
|
|
1580
1610
|
static listConversationMessages(options) {
|
|
1581
1611
|
return (options.client ?? client).get({
|
|
1582
|
-
url: "/conversations/{conversation_id}/messages",
|
|
1612
|
+
url: "/api/v1/conversations/{conversation_id}/messages",
|
|
1583
1613
|
...options
|
|
1584
1614
|
});
|
|
1585
1615
|
}
|
|
@@ -1590,7 +1620,7 @@ var Conversations = class {
|
|
|
1590
1620
|
*/
|
|
1591
1621
|
static addConversationMessage(options) {
|
|
1592
1622
|
return (options.client ?? client).post({
|
|
1593
|
-
url: "/conversations/{conversation_id}/messages",
|
|
1623
|
+
url: "/api/v1/conversations/{conversation_id}/messages",
|
|
1594
1624
|
...options,
|
|
1595
1625
|
headers: {
|
|
1596
1626
|
"Content-Type": "application/json",
|
|
@@ -1609,7 +1639,7 @@ var Conversations = class {
|
|
|
1609
1639
|
*/
|
|
1610
1640
|
static generateConversationMessage(options) {
|
|
1611
1641
|
return (options.client ?? client).post({
|
|
1612
|
-
url: "/conversations/{conversation_id}/generate",
|
|
1642
|
+
url: "/api/v1/conversations/{conversation_id}/generate",
|
|
1613
1643
|
...options,
|
|
1614
1644
|
headers: {
|
|
1615
1645
|
"Content-Type": "application/json",
|
|
@@ -1624,7 +1654,7 @@ var Conversations = class {
|
|
|
1624
1654
|
*/
|
|
1625
1655
|
static listConversationActors(options) {
|
|
1626
1656
|
return (options.client ?? client).get({
|
|
1627
|
-
url: "/conversations/{conversation_id}/actors",
|
|
1657
|
+
url: "/api/v1/conversations/{conversation_id}/actors",
|
|
1628
1658
|
...options
|
|
1629
1659
|
});
|
|
1630
1660
|
}
|
|
@@ -1635,7 +1665,7 @@ var Conversations = class {
|
|
|
1635
1665
|
*/
|
|
1636
1666
|
static removeConversationMessage(options) {
|
|
1637
1667
|
return (options.client ?? client).delete({
|
|
1638
|
-
url: "/conversations/{conversation_id}/messages/{document_id}",
|
|
1668
|
+
url: "/api/v1/conversations/{conversation_id}/messages/{document_id}",
|
|
1639
1669
|
...options
|
|
1640
1670
|
});
|
|
1641
1671
|
}
|
|
@@ -1646,7 +1676,7 @@ var Conversations = class {
|
|
|
1646
1676
|
*/
|
|
1647
1677
|
static getConversationTags(options) {
|
|
1648
1678
|
return (options.client ?? client).get({
|
|
1649
|
-
url: "/conversations/{conversation_id}/tags",
|
|
1679
|
+
url: "/api/v1/conversations/{conversation_id}/tags",
|
|
1650
1680
|
...options
|
|
1651
1681
|
});
|
|
1652
1682
|
}
|
|
@@ -1657,7 +1687,7 @@ var Conversations = class {
|
|
|
1657
1687
|
*/
|
|
1658
1688
|
static mergeConversationTags(options) {
|
|
1659
1689
|
return (options.client ?? client).patch({
|
|
1660
|
-
url: "/conversations/{conversation_id}/tags",
|
|
1690
|
+
url: "/api/v1/conversations/{conversation_id}/tags",
|
|
1661
1691
|
...options,
|
|
1662
1692
|
headers: {
|
|
1663
1693
|
"Content-Type": "application/json",
|
|
@@ -1672,7 +1702,7 @@ var Conversations = class {
|
|
|
1672
1702
|
*/
|
|
1673
1703
|
static replaceConversationTags(options) {
|
|
1674
1704
|
return (options.client ?? client).put({
|
|
1675
|
-
url: "/conversations/{conversation_id}/tags",
|
|
1705
|
+
url: "/api/v1/conversations/{conversation_id}/tags",
|
|
1676
1706
|
...options,
|
|
1677
1707
|
headers: {
|
|
1678
1708
|
"Content-Type": "application/json",
|
|
@@ -1692,7 +1722,7 @@ var Documents = class {
|
|
|
1692
1722
|
*/
|
|
1693
1723
|
static listDocuments(options) {
|
|
1694
1724
|
return (options?.client ?? client).get({
|
|
1695
|
-
url: "/documents",
|
|
1725
|
+
url: "/api/v1/documents",
|
|
1696
1726
|
...options
|
|
1697
1727
|
});
|
|
1698
1728
|
}
|
|
@@ -1703,7 +1733,7 @@ var Documents = class {
|
|
|
1703
1733
|
*/
|
|
1704
1734
|
static createDocument(options) {
|
|
1705
1735
|
return (options.client ?? client).post({
|
|
1706
|
-
url: "/documents",
|
|
1736
|
+
url: "/api/v1/documents",
|
|
1707
1737
|
...options,
|
|
1708
1738
|
headers: {
|
|
1709
1739
|
"Content-Type": "application/json",
|
|
@@ -1718,7 +1748,7 @@ var Documents = class {
|
|
|
1718
1748
|
*/
|
|
1719
1749
|
static deleteDocument(options) {
|
|
1720
1750
|
return (options.client ?? client).delete({
|
|
1721
|
-
url: "/documents/{document_id}",
|
|
1751
|
+
url: "/api/v1/documents/{document_id}",
|
|
1722
1752
|
...options
|
|
1723
1753
|
});
|
|
1724
1754
|
}
|
|
@@ -1729,7 +1759,7 @@ var Documents = class {
|
|
|
1729
1759
|
*/
|
|
1730
1760
|
static getDocument(options) {
|
|
1731
1761
|
return (options.client ?? client).get({
|
|
1732
|
-
url: "/documents/{document_id}",
|
|
1762
|
+
url: "/api/v1/documents/{document_id}",
|
|
1733
1763
|
...options
|
|
1734
1764
|
});
|
|
1735
1765
|
}
|
|
@@ -1740,7 +1770,7 @@ var Documents = class {
|
|
|
1740
1770
|
*/
|
|
1741
1771
|
static updateDocument(options) {
|
|
1742
1772
|
return (options.client ?? client).patch({
|
|
1743
|
-
url: "/documents/{document_id}",
|
|
1773
|
+
url: "/api/v1/documents/{document_id}",
|
|
1744
1774
|
...options,
|
|
1745
1775
|
headers: {
|
|
1746
1776
|
"Content-Type": "application/json",
|
|
@@ -1755,7 +1785,7 @@ var Documents = class {
|
|
|
1755
1785
|
*/
|
|
1756
1786
|
static getDocumentTags(options) {
|
|
1757
1787
|
return (options.client ?? client).get({
|
|
1758
|
-
url: "/documents/{document_id}/tags",
|
|
1788
|
+
url: "/api/v1/documents/{document_id}/tags",
|
|
1759
1789
|
...options
|
|
1760
1790
|
});
|
|
1761
1791
|
}
|
|
@@ -1766,7 +1796,7 @@ var Documents = class {
|
|
|
1766
1796
|
*/
|
|
1767
1797
|
static mergeDocumentTags(options) {
|
|
1768
1798
|
return (options.client ?? client).patch({
|
|
1769
|
-
url: "/documents/{document_id}/tags",
|
|
1799
|
+
url: "/api/v1/documents/{document_id}/tags",
|
|
1770
1800
|
...options,
|
|
1771
1801
|
headers: {
|
|
1772
1802
|
"Content-Type": "application/json",
|
|
@@ -1781,7 +1811,7 @@ var Documents = class {
|
|
|
1781
1811
|
*/
|
|
1782
1812
|
static replaceDocumentTags(options) {
|
|
1783
1813
|
return (options.client ?? client).put({
|
|
1784
|
-
url: "/documents/{document_id}/tags",
|
|
1814
|
+
url: "/api/v1/documents/{document_id}/tags",
|
|
1785
1815
|
...options,
|
|
1786
1816
|
headers: {
|
|
1787
1817
|
"Content-Type": "application/json",
|
|
@@ -1796,7 +1826,7 @@ var Documents = class {
|
|
|
1796
1826
|
*/
|
|
1797
1827
|
static searchDocuments(options) {
|
|
1798
1828
|
return (options.client ?? client).post({
|
|
1799
|
-
url: "/documents/search",
|
|
1829
|
+
url: "/api/v1/documents/search",
|
|
1800
1830
|
...options,
|
|
1801
1831
|
headers: {
|
|
1802
1832
|
"Content-Type": "application/json",
|
|
@@ -1816,7 +1846,7 @@ var Files = class {
|
|
|
1816
1846
|
*/
|
|
1817
1847
|
static listFiles(options) {
|
|
1818
1848
|
return (options?.client ?? client).get({
|
|
1819
|
-
url: "/files",
|
|
1849
|
+
url: "/api/v1/files",
|
|
1820
1850
|
...options
|
|
1821
1851
|
});
|
|
1822
1852
|
}
|
|
@@ -1827,7 +1857,7 @@ var Files = class {
|
|
|
1827
1857
|
*/
|
|
1828
1858
|
static createFile(options) {
|
|
1829
1859
|
return (options.client ?? client).post({
|
|
1830
|
-
url: "/files",
|
|
1860
|
+
url: "/api/v1/files",
|
|
1831
1861
|
...options,
|
|
1832
1862
|
headers: {
|
|
1833
1863
|
"Content-Type": "application/json",
|
|
@@ -1843,7 +1873,7 @@ var Files = class {
|
|
|
1843
1873
|
static uploadFile(options) {
|
|
1844
1874
|
return (options.client ?? client).post({
|
|
1845
1875
|
...formDataBodySerializer,
|
|
1846
|
-
url: "/files/upload",
|
|
1876
|
+
url: "/api/v1/files/upload",
|
|
1847
1877
|
...options,
|
|
1848
1878
|
headers: {
|
|
1849
1879
|
"Content-Type": null,
|
|
@@ -1858,7 +1888,7 @@ var Files = class {
|
|
|
1858
1888
|
*/
|
|
1859
1889
|
static uploadFileBase64(options) {
|
|
1860
1890
|
return (options.client ?? client).post({
|
|
1861
|
-
url: "/files/upload/base64",
|
|
1891
|
+
url: "/api/v1/files/upload/base64",
|
|
1862
1892
|
...options,
|
|
1863
1893
|
headers: {
|
|
1864
1894
|
"Content-Type": "application/json",
|
|
@@ -1873,7 +1903,7 @@ var Files = class {
|
|
|
1873
1903
|
*/
|
|
1874
1904
|
static deleteFile(options) {
|
|
1875
1905
|
return (options.client ?? client).delete({
|
|
1876
|
-
url: "/files/{file_id}",
|
|
1906
|
+
url: "/api/v1/files/{file_id}",
|
|
1877
1907
|
...options
|
|
1878
1908
|
});
|
|
1879
1909
|
}
|
|
@@ -1884,7 +1914,7 @@ var Files = class {
|
|
|
1884
1914
|
*/
|
|
1885
1915
|
static getFile(options) {
|
|
1886
1916
|
return (options.client ?? client).get({
|
|
1887
|
-
url: "/files/{file_id}",
|
|
1917
|
+
url: "/api/v1/files/{file_id}",
|
|
1888
1918
|
...options
|
|
1889
1919
|
});
|
|
1890
1920
|
}
|
|
@@ -1895,7 +1925,7 @@ var Files = class {
|
|
|
1895
1925
|
*/
|
|
1896
1926
|
static downloadFile(options) {
|
|
1897
1927
|
return (options.client ?? client).get({
|
|
1898
|
-
url: "/files/{file_id}/download",
|
|
1928
|
+
url: "/api/v1/files/{file_id}/download",
|
|
1899
1929
|
...options
|
|
1900
1930
|
});
|
|
1901
1931
|
}
|
|
@@ -1906,7 +1936,7 @@ var Files = class {
|
|
|
1906
1936
|
*/
|
|
1907
1937
|
static updateFileMetadata(options) {
|
|
1908
1938
|
return (options.client ?? client).patch({
|
|
1909
|
-
url: "/files/{file_id}/metadata",
|
|
1939
|
+
url: "/api/v1/files/{file_id}/metadata",
|
|
1910
1940
|
...options,
|
|
1911
1941
|
headers: {
|
|
1912
1942
|
"Content-Type": "application/json",
|
|
@@ -1921,7 +1951,7 @@ var Files = class {
|
|
|
1921
1951
|
*/
|
|
1922
1952
|
static downloadFileBase64(options) {
|
|
1923
1953
|
return (options.client ?? client).get({
|
|
1924
|
-
url: "/files/{file_id}/download/base64",
|
|
1954
|
+
url: "/api/v1/files/{file_id}/download/base64",
|
|
1925
1955
|
...options
|
|
1926
1956
|
});
|
|
1927
1957
|
}
|
|
@@ -1932,7 +1962,7 @@ var Files = class {
|
|
|
1932
1962
|
*/
|
|
1933
1963
|
static getFileTags(options) {
|
|
1934
1964
|
return (options.client ?? client).get({
|
|
1935
|
-
url: "/files/{file_id}/tags",
|
|
1965
|
+
url: "/api/v1/files/{file_id}/tags",
|
|
1936
1966
|
...options
|
|
1937
1967
|
});
|
|
1938
1968
|
}
|
|
@@ -1943,7 +1973,7 @@ var Files = class {
|
|
|
1943
1973
|
*/
|
|
1944
1974
|
static mergeFileTags(options) {
|
|
1945
1975
|
return (options.client ?? client).patch({
|
|
1946
|
-
url: "/files/{file_id}/tags",
|
|
1976
|
+
url: "/api/v1/files/{file_id}/tags",
|
|
1947
1977
|
...options,
|
|
1948
1978
|
headers: {
|
|
1949
1979
|
"Content-Type": "application/json",
|
|
@@ -1958,7 +1988,7 @@ var Files = class {
|
|
|
1958
1988
|
*/
|
|
1959
1989
|
static replaceFileTags(options) {
|
|
1960
1990
|
return (options.client ?? client).put({
|
|
1961
|
-
url: "/files/{file_id}/tags",
|
|
1991
|
+
url: "/api/v1/files/{file_id}/tags",
|
|
1962
1992
|
...options,
|
|
1963
1993
|
headers: {
|
|
1964
1994
|
"Content-Type": "application/json",
|
|
@@ -1982,7 +2012,7 @@ var Policies = class {
|
|
|
1982
2012
|
scheme: "bearer",
|
|
1983
2013
|
type: "http"
|
|
1984
2014
|
}],
|
|
1985
|
-
url: "/policies",
|
|
2015
|
+
url: "/api/v1/policies",
|
|
1986
2016
|
...options
|
|
1987
2017
|
});
|
|
1988
2018
|
}
|
|
@@ -1997,7 +2027,7 @@ var Policies = class {
|
|
|
1997
2027
|
scheme: "bearer",
|
|
1998
2028
|
type: "http"
|
|
1999
2029
|
}],
|
|
2000
|
-
url: "/policies",
|
|
2030
|
+
url: "/api/v1/policies",
|
|
2001
2031
|
...options,
|
|
2002
2032
|
headers: {
|
|
2003
2033
|
"Content-Type": "application/json",
|
|
@@ -2016,7 +2046,7 @@ var Policies = class {
|
|
|
2016
2046
|
scheme: "bearer",
|
|
2017
2047
|
type: "http"
|
|
2018
2048
|
}],
|
|
2019
|
-
url: "/policies/{policy_id}",
|
|
2049
|
+
url: "/api/v1/policies/{policy_id}",
|
|
2020
2050
|
...options
|
|
2021
2051
|
});
|
|
2022
2052
|
}
|
|
@@ -2031,7 +2061,7 @@ var Policies = class {
|
|
|
2031
2061
|
scheme: "bearer",
|
|
2032
2062
|
type: "http"
|
|
2033
2063
|
}],
|
|
2034
|
-
url: "/policies/{policy_id}",
|
|
2064
|
+
url: "/api/v1/policies/{policy_id}",
|
|
2035
2065
|
...options
|
|
2036
2066
|
});
|
|
2037
2067
|
}
|
|
@@ -2046,7 +2076,7 @@ var Policies = class {
|
|
|
2046
2076
|
scheme: "bearer",
|
|
2047
2077
|
type: "http"
|
|
2048
2078
|
}],
|
|
2049
|
-
url: "/policies/{policy_id}",
|
|
2079
|
+
url: "/api/v1/policies/{policy_id}",
|
|
2050
2080
|
...options,
|
|
2051
2081
|
headers: {
|
|
2052
2082
|
"Content-Type": "application/json",
|
|
@@ -2066,7 +2096,7 @@ var Projects = class {
|
|
|
2066
2096
|
*/
|
|
2067
2097
|
static createProject(options) {
|
|
2068
2098
|
return (options.client ?? client).post({
|
|
2069
|
-
url: "/projects",
|
|
2099
|
+
url: "/api/v1/projects",
|
|
2070
2100
|
...options,
|
|
2071
2101
|
headers: {
|
|
2072
2102
|
"Content-Type": "application/json",
|
|
@@ -2085,7 +2115,7 @@ var Projects = class {
|
|
|
2085
2115
|
scheme: "bearer",
|
|
2086
2116
|
type: "http"
|
|
2087
2117
|
}],
|
|
2088
|
-
url: "/projects/{project_id}",
|
|
2118
|
+
url: "/api/v1/projects/{project_id}",
|
|
2089
2119
|
...options
|
|
2090
2120
|
});
|
|
2091
2121
|
}
|
|
@@ -2100,7 +2130,7 @@ var Projects = class {
|
|
|
2100
2130
|
scheme: "bearer",
|
|
2101
2131
|
type: "http"
|
|
2102
2132
|
}],
|
|
2103
|
-
url: "/projects/{project_id}",
|
|
2133
|
+
url: "/api/v1/projects/{project_id}",
|
|
2104
2134
|
...options
|
|
2105
2135
|
});
|
|
2106
2136
|
}
|
|
@@ -2116,7 +2146,7 @@ var Secrets = class {
|
|
|
2116
2146
|
*/
|
|
2117
2147
|
static listSecrets(options) {
|
|
2118
2148
|
return (options?.client ?? client).get({
|
|
2119
|
-
url: "/secrets",
|
|
2149
|
+
url: "/api/v1/secrets",
|
|
2120
2150
|
...options
|
|
2121
2151
|
});
|
|
2122
2152
|
}
|
|
@@ -2127,7 +2157,7 @@ var Secrets = class {
|
|
|
2127
2157
|
*/
|
|
2128
2158
|
static createSecret(options) {
|
|
2129
2159
|
return (options.client ?? client).post({
|
|
2130
|
-
url: "/secrets",
|
|
2160
|
+
url: "/api/v1/secrets",
|
|
2131
2161
|
...options,
|
|
2132
2162
|
headers: {
|
|
2133
2163
|
"Content-Type": "application/json",
|
|
@@ -2142,7 +2172,7 @@ var Secrets = class {
|
|
|
2142
2172
|
*/
|
|
2143
2173
|
static deleteSecret(options) {
|
|
2144
2174
|
return (options.client ?? client).delete({
|
|
2145
|
-
url: "/secrets/{secret_id}",
|
|
2175
|
+
url: "/api/v1/secrets/{secret_id}",
|
|
2146
2176
|
...options
|
|
2147
2177
|
});
|
|
2148
2178
|
}
|
|
@@ -2153,7 +2183,7 @@ var Secrets = class {
|
|
|
2153
2183
|
*/
|
|
2154
2184
|
static getSecret(options) {
|
|
2155
2185
|
return (options.client ?? client).get({
|
|
2156
|
-
url: "/secrets/{secret_id}",
|
|
2186
|
+
url: "/api/v1/secrets/{secret_id}",
|
|
2157
2187
|
...options
|
|
2158
2188
|
});
|
|
2159
2189
|
}
|
|
@@ -2164,7 +2194,7 @@ var Secrets = class {
|
|
|
2164
2194
|
*/
|
|
2165
2195
|
static updateSecret(options) {
|
|
2166
2196
|
return (options.client ?? client).patch({
|
|
2167
|
-
url: "/secrets/{secret_id}",
|
|
2197
|
+
url: "/api/v1/secrets/{secret_id}",
|
|
2168
2198
|
...options,
|
|
2169
2199
|
headers: {
|
|
2170
2200
|
"Content-Type": "application/json",
|
|
@@ -2188,7 +2218,7 @@ var Sessions = class {
|
|
|
2188
2218
|
scheme: "bearer",
|
|
2189
2219
|
type: "http"
|
|
2190
2220
|
}],
|
|
2191
|
-
url: "/agents/{agent_id}/sessions",
|
|
2221
|
+
url: "/api/v1/agents/{agent_id}/sessions",
|
|
2192
2222
|
...options
|
|
2193
2223
|
});
|
|
2194
2224
|
}
|
|
@@ -2204,7 +2234,7 @@ var Sessions = class {
|
|
|
2204
2234
|
scheme: "bearer",
|
|
2205
2235
|
type: "http"
|
|
2206
2236
|
}],
|
|
2207
|
-
url: "/agents/{agent_id}/sessions",
|
|
2237
|
+
url: "/api/v1/agents/{agent_id}/sessions",
|
|
2208
2238
|
...options,
|
|
2209
2239
|
headers: {
|
|
2210
2240
|
"Content-Type": "application/json",
|
|
@@ -2223,7 +2253,7 @@ var Sessions = class {
|
|
|
2223
2253
|
scheme: "bearer",
|
|
2224
2254
|
type: "http"
|
|
2225
2255
|
}],
|
|
2226
|
-
url: "/agents/{agent_id}/sessions/{session_id}",
|
|
2256
|
+
url: "/api/v1/agents/{agent_id}/sessions/{session_id}",
|
|
2227
2257
|
...options
|
|
2228
2258
|
});
|
|
2229
2259
|
}
|
|
@@ -2238,7 +2268,7 @@ var Sessions = class {
|
|
|
2238
2268
|
scheme: "bearer",
|
|
2239
2269
|
type: "http"
|
|
2240
2270
|
}],
|
|
2241
|
-
url: "/agents/{agent_id}/sessions/{session_id}",
|
|
2271
|
+
url: "/api/v1/agents/{agent_id}/sessions/{session_id}",
|
|
2242
2272
|
...options
|
|
2243
2273
|
});
|
|
2244
2274
|
}
|
|
@@ -2253,7 +2283,7 @@ var Sessions = class {
|
|
|
2253
2283
|
scheme: "bearer",
|
|
2254
2284
|
type: "http"
|
|
2255
2285
|
}],
|
|
2256
|
-
url: "/agents/{agent_id}/sessions/{session_id}",
|
|
2286
|
+
url: "/api/v1/agents/{agent_id}/sessions/{session_id}",
|
|
2257
2287
|
...options,
|
|
2258
2288
|
headers: {
|
|
2259
2289
|
"Content-Type": "application/json",
|
|
@@ -2273,7 +2303,7 @@ var Sessions = class {
|
|
|
2273
2303
|
scheme: "bearer",
|
|
2274
2304
|
type: "http"
|
|
2275
2305
|
}],
|
|
2276
|
-
url: "/agents/{agent_id}/sessions/{session_id}/messages",
|
|
2306
|
+
url: "/api/v1/agents/{agent_id}/sessions/{session_id}/messages",
|
|
2277
2307
|
...options
|
|
2278
2308
|
});
|
|
2279
2309
|
}
|
|
@@ -2289,7 +2319,7 @@ var Sessions = class {
|
|
|
2289
2319
|
scheme: "bearer",
|
|
2290
2320
|
type: "http"
|
|
2291
2321
|
}],
|
|
2292
|
-
url: "/agents/{agent_id}/sessions/{session_id}/messages",
|
|
2322
|
+
url: "/api/v1/agents/{agent_id}/sessions/{session_id}/messages",
|
|
2293
2323
|
...options,
|
|
2294
2324
|
headers: {
|
|
2295
2325
|
"Content-Type": "application/json",
|
|
@@ -2309,7 +2339,7 @@ var Sessions = class {
|
|
|
2309
2339
|
scheme: "bearer",
|
|
2310
2340
|
type: "http"
|
|
2311
2341
|
}],
|
|
2312
|
-
url: "/agents/{agent_id}/sessions/{session_id}/generate",
|
|
2342
|
+
url: "/api/v1/agents/{agent_id}/sessions/{session_id}/generate",
|
|
2313
2343
|
...options,
|
|
2314
2344
|
headers: {
|
|
2315
2345
|
"Content-Type": "application/json",
|
|
@@ -2329,7 +2359,7 @@ var Sessions = class {
|
|
|
2329
2359
|
scheme: "bearer",
|
|
2330
2360
|
type: "http"
|
|
2331
2361
|
}],
|
|
2332
|
-
url: "/agents/{agent_id}/sessions/{session_id}/tool-outputs",
|
|
2362
|
+
url: "/api/v1/agents/{agent_id}/sessions/{session_id}/tool-outputs",
|
|
2333
2363
|
...options,
|
|
2334
2364
|
headers: {
|
|
2335
2365
|
"Content-Type": "application/json",
|
|
@@ -2348,7 +2378,7 @@ var Sessions = class {
|
|
|
2348
2378
|
scheme: "bearer",
|
|
2349
2379
|
type: "http"
|
|
2350
2380
|
}],
|
|
2351
|
-
url: "/agents/{agent_id}/sessions/{session_id}/tags",
|
|
2381
|
+
url: "/api/v1/agents/{agent_id}/sessions/{session_id}/tags",
|
|
2352
2382
|
...options
|
|
2353
2383
|
});
|
|
2354
2384
|
}
|
|
@@ -2363,7 +2393,7 @@ var Sessions = class {
|
|
|
2363
2393
|
scheme: "bearer",
|
|
2364
2394
|
type: "http"
|
|
2365
2395
|
}],
|
|
2366
|
-
url: "/agents/{agent_id}/sessions/{session_id}/tags",
|
|
2396
|
+
url: "/api/v1/agents/{agent_id}/sessions/{session_id}/tags",
|
|
2367
2397
|
...options,
|
|
2368
2398
|
headers: {
|
|
2369
2399
|
"Content-Type": "application/json",
|
|
@@ -2382,7 +2412,7 @@ var Sessions = class {
|
|
|
2382
2412
|
scheme: "bearer",
|
|
2383
2413
|
type: "http"
|
|
2384
2414
|
}],
|
|
2385
|
-
url: "/agents/{agent_id}/sessions/{session_id}/tags",
|
|
2415
|
+
url: "/api/v1/agents/{agent_id}/sessions/{session_id}/tags",
|
|
2386
2416
|
...options,
|
|
2387
2417
|
headers: {
|
|
2388
2418
|
"Content-Type": "application/json",
|
|
@@ -2402,7 +2432,7 @@ var Users = class {
|
|
|
2402
2432
|
*/
|
|
2403
2433
|
static listUsers(options) {
|
|
2404
2434
|
return (options?.client ?? client).get({
|
|
2405
|
-
url: "/users",
|
|
2435
|
+
url: "/api/v1/users",
|
|
2406
2436
|
...options
|
|
2407
2437
|
});
|
|
2408
2438
|
}
|
|
@@ -2413,7 +2443,7 @@ var Users = class {
|
|
|
2413
2443
|
*/
|
|
2414
2444
|
static createUser(options) {
|
|
2415
2445
|
return (options.client ?? client).post({
|
|
2416
|
-
url: "/users",
|
|
2446
|
+
url: "/api/v1/users",
|
|
2417
2447
|
...options,
|
|
2418
2448
|
headers: {
|
|
2419
2449
|
"Content-Type": "application/json",
|
|
@@ -2428,7 +2458,7 @@ var Users = class {
|
|
|
2428
2458
|
*/
|
|
2429
2459
|
static deleteUser(options) {
|
|
2430
2460
|
return (options.client ?? client).delete({
|
|
2431
|
-
url: "/users/{user_id}",
|
|
2461
|
+
url: "/api/v1/users/{user_id}",
|
|
2432
2462
|
...options
|
|
2433
2463
|
});
|
|
2434
2464
|
}
|
|
@@ -2439,7 +2469,7 @@ var Users = class {
|
|
|
2439
2469
|
*/
|
|
2440
2470
|
static getUser(options) {
|
|
2441
2471
|
return (options.client ?? client).get({
|
|
2442
|
-
url: "/users/{user_id}",
|
|
2472
|
+
url: "/api/v1/users/{user_id}",
|
|
2443
2473
|
...options
|
|
2444
2474
|
});
|
|
2445
2475
|
}
|
|
@@ -2450,7 +2480,7 @@ var Users = class {
|
|
|
2450
2480
|
*/
|
|
2451
2481
|
static bootstrapUser(options) {
|
|
2452
2482
|
return (options.client ?? client).post({
|
|
2453
|
-
url: "/users/bootstrap",
|
|
2483
|
+
url: "/api/v1/users/bootstrap",
|
|
2454
2484
|
...options,
|
|
2455
2485
|
headers: {
|
|
2456
2486
|
"Content-Type": "application/json",
|
|
@@ -2465,7 +2495,7 @@ var Users = class {
|
|
|
2465
2495
|
*/
|
|
2466
2496
|
static loginUser(options) {
|
|
2467
2497
|
return (options.client ?? client).post({
|
|
2468
|
-
url: "/users/login",
|
|
2498
|
+
url: "/api/v1/users/login",
|
|
2469
2499
|
...options,
|
|
2470
2500
|
headers: {
|
|
2471
2501
|
"Content-Type": "application/json",
|
|
@@ -2484,7 +2514,7 @@ var Users = class {
|
|
|
2484
2514
|
scheme: "bearer",
|
|
2485
2515
|
type: "http"
|
|
2486
2516
|
}],
|
|
2487
|
-
url: "/users/{user_id}/policies",
|
|
2517
|
+
url: "/api/v1/users/{user_id}/policies",
|
|
2488
2518
|
...options
|
|
2489
2519
|
});
|
|
2490
2520
|
}
|
|
@@ -2499,7 +2529,7 @@ var Users = class {
|
|
|
2499
2529
|
scheme: "bearer",
|
|
2500
2530
|
type: "http"
|
|
2501
2531
|
}],
|
|
2502
|
-
url: "/users/{user_id}/policies",
|
|
2532
|
+
url: "/api/v1/users/{user_id}/policies",
|
|
2503
2533
|
...options,
|
|
2504
2534
|
headers: {
|
|
2505
2535
|
"Content-Type": "application/json",
|
|
@@ -2519,7 +2549,7 @@ var Webhooks = class {
|
|
|
2519
2549
|
*/
|
|
2520
2550
|
static listWebhooks(options) {
|
|
2521
2551
|
return (options.client ?? client).get({
|
|
2522
|
-
url: "/projects/{project_id}/webhooks",
|
|
2552
|
+
url: "/api/v1/projects/{project_id}/webhooks",
|
|
2523
2553
|
...options
|
|
2524
2554
|
});
|
|
2525
2555
|
}
|
|
@@ -2530,7 +2560,7 @@ var Webhooks = class {
|
|
|
2530
2560
|
*/
|
|
2531
2561
|
static createWebhook(options) {
|
|
2532
2562
|
return (options.client ?? client).post({
|
|
2533
|
-
url: "/projects/{project_id}/webhooks",
|
|
2563
|
+
url: "/api/v1/projects/{project_id}/webhooks",
|
|
2534
2564
|
...options,
|
|
2535
2565
|
headers: {
|
|
2536
2566
|
"Content-Type": "application/json",
|
|
@@ -2545,7 +2575,7 @@ var Webhooks = class {
|
|
|
2545
2575
|
*/
|
|
2546
2576
|
static deleteWebhook(options) {
|
|
2547
2577
|
return (options.client ?? client).delete({
|
|
2548
|
-
url: "/projects/{project_id}/webhooks/{webhook_id}",
|
|
2578
|
+
url: "/api/v1/projects/{project_id}/webhooks/{webhook_id}",
|
|
2549
2579
|
...options
|
|
2550
2580
|
});
|
|
2551
2581
|
}
|
|
@@ -2556,7 +2586,7 @@ var Webhooks = class {
|
|
|
2556
2586
|
*/
|
|
2557
2587
|
static getWebhook(options) {
|
|
2558
2588
|
return (options.client ?? client).get({
|
|
2559
|
-
url: "/projects/{project_id}/webhooks/{webhook_id}",
|
|
2589
|
+
url: "/api/v1/projects/{project_id}/webhooks/{webhook_id}",
|
|
2560
2590
|
...options
|
|
2561
2591
|
});
|
|
2562
2592
|
}
|
|
@@ -2567,7 +2597,7 @@ var Webhooks = class {
|
|
|
2567
2597
|
*/
|
|
2568
2598
|
static updateWebhook(options) {
|
|
2569
2599
|
return (options.client ?? client).put({
|
|
2570
|
-
url: "/projects/{project_id}/webhooks/{webhook_id}",
|
|
2600
|
+
url: "/api/v1/projects/{project_id}/webhooks/{webhook_id}",
|
|
2571
2601
|
...options,
|
|
2572
2602
|
headers: {
|
|
2573
2603
|
"Content-Type": "application/json",
|
|
@@ -2582,7 +2612,7 @@ var Webhooks = class {
|
|
|
2582
2612
|
*/
|
|
2583
2613
|
static listWebhookDeliveries(options) {
|
|
2584
2614
|
return (options.client ?? client).get({
|
|
2585
|
-
url: "/projects/{project_id}/webhooks/{webhook_id}/deliveries",
|
|
2615
|
+
url: "/api/v1/projects/{project_id}/webhooks/{webhook_id}/deliveries",
|
|
2586
2616
|
...options
|
|
2587
2617
|
});
|
|
2588
2618
|
}
|
|
@@ -2593,7 +2623,7 @@ var Webhooks = class {
|
|
|
2593
2623
|
*/
|
|
2594
2624
|
static getWebhookDelivery(options) {
|
|
2595
2625
|
return (options.client ?? client).get({
|
|
2596
|
-
url: "/projects/{project_id}/webhooks/{webhook_id}/deliveries/{delivery_id}",
|
|
2626
|
+
url: "/api/v1/projects/{project_id}/webhooks/{webhook_id}/deliveries/{delivery_id}",
|
|
2597
2627
|
...options
|
|
2598
2628
|
});
|
|
2599
2629
|
}
|
|
@@ -2604,7 +2634,7 @@ var Webhooks = class {
|
|
|
2604
2634
|
*/
|
|
2605
2635
|
static rotateWebhookSecret(options) {
|
|
2606
2636
|
return (options.client ?? client).post({
|
|
2607
|
-
url: "/projects/{project_id}/webhooks/{webhook_id}/rotate-secret",
|
|
2637
|
+
url: "/api/v1/projects/{project_id}/webhooks/{webhook_id}/rotate-secret",
|
|
2608
2638
|
...options
|
|
2609
2639
|
});
|
|
2610
2640
|
}
|
|
@@ -2656,7 +2686,7 @@ var SoatClient = class {
|
|
|
2656
2686
|
Authorization: `Bearer ${token}`
|
|
2657
2687
|
} : {};
|
|
2658
2688
|
const httpClient = createClient(createConfig({
|
|
2659
|
-
baseUrl: baseUrl ?? "
|
|
2689
|
+
baseUrl: baseUrl ?? "",
|
|
2660
2690
|
headers: {
|
|
2661
2691
|
...authHeaders,
|
|
2662
2692
|
...headers
|