@robosystems/client 0.1.21 → 0.1.23
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/extensions/CopyClient.d.ts +1 -0
- package/extensions/CopyClient.js +4 -1
- package/extensions/CopyClient.ts +6 -1
- package/extensions/OperationClient.d.ts +1 -0
- package/extensions/OperationClient.ts +2 -0
- package/extensions/QueryClient.d.ts +1 -0
- package/extensions/QueryClient.js +2 -1
- package/extensions/QueryClient.ts +4 -1
- package/extensions/SSEClient.d.ts +14 -0
- package/extensions/SSEClient.js +7 -1
- package/extensions/SSEClient.ts +22 -1
- package/extensions/config.d.ts +25 -0
- package/extensions/config.js +78 -0
- package/extensions/config.ts +84 -0
- package/extensions/hooks.js +16 -0
- package/extensions/hooks.ts +27 -1
- package/extensions/index.d.ts +2 -0
- package/extensions/index.js +14 -0
- package/extensions/index.ts +28 -1
- package/package.json +1 -1
- package/sdk/sdk.gen.d.ts +11 -16
- package/sdk/sdk.gen.js +95 -110
- package/sdk/sdk.gen.ts +94 -109
- package/sdk/types.gen.d.ts +623 -214
- package/sdk/types.gen.ts +629 -226
- package/sdk-extensions/CopyClient.d.ts +1 -0
- package/sdk-extensions/CopyClient.js +4 -1
- package/sdk-extensions/CopyClient.ts +6 -1
- package/sdk-extensions/OperationClient.d.ts +1 -0
- package/sdk-extensions/OperationClient.ts +2 -0
- package/sdk-extensions/QueryClient.d.ts +1 -0
- package/sdk-extensions/QueryClient.js +2 -1
- package/sdk-extensions/QueryClient.ts +4 -1
- package/sdk-extensions/SSEClient.d.ts +14 -0
- package/sdk-extensions/SSEClient.js +7 -1
- package/sdk-extensions/SSEClient.ts +22 -1
- package/sdk-extensions/config.d.ts +25 -0
- package/sdk-extensions/config.js +78 -0
- package/sdk-extensions/config.ts +84 -0
- package/sdk-extensions/hooks.js +16 -0
- package/sdk-extensions/hooks.ts +27 -1
- package/sdk-extensions/index.d.ts +2 -0
- package/sdk-extensions/index.js +14 -0
- package/sdk-extensions/index.ts +28 -1
- package/sdk.gen.d.ts +11 -16
- package/sdk.gen.js +95 -110
- package/sdk.gen.ts +94 -109
- package/types.gen.d.ts +623 -214
- package/types.gen.ts +629 -226
package/sdk.gen.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.getConnection = exports.deleteConnection = exports.createConnection = exports.listConnections = exports.oauthCallback = exports.initOAuth = exports.exchangeLinkToken = exports.createLinkToken = exports.syncConnection = exports.getConnectionOptions = exports.getRepositoryCredits = exports.getSharedRepositoryCredits = exports.cancelSharedRepositorySubscription = exports.upgradeSharedRepositorySubscription = exports.subscribeToSharedRepository = exports.getUserSharedSubscriptions = exports.getDetailedUserAnalytics = exports.getUserUsageOverview = exports.getSharedRepositoryLimits = exports.getAllSharedRepositoryLimits = exports.getUserUsage = exports.getUserLimits = exports.updateUserApiKey = exports.revokeUserApiKey = exports.createUserApiKey = exports.listUserApiKeys = exports.updateUserPassword = exports.getAllCreditSummaries = exports.
|
|
5
|
-
exports.cancelOperation = exports.getOperationStatus = exports.streamOperationEvents = exports.getServiceOfferings = exports.getAvailableExtensions = exports.createGraph = exports.copyDataToGraph = exports.getSubgraphQuota = exports.getSubgraphInfo = exports.deleteSubgraph = exports.createSubgraph = exports.listSubgraphs = exports.getGraphLimits = exports.getDatabaseInfo = exports.getDatabaseHealth = exports.checkStorageLimits = exports.getStorageUsage = exports.checkCreditBalance = exports.listCreditTransactions = exports.getCreditSummary = exports.getGraphMonthlyBill = exports.getGraphBillingHistory = exports.getGraphUsageDetails = exports.getCurrentGraphBill = exports.listSchemaExtensions = exports.exportGraphSchema = exports.validateSchema = exports.getGraphSchemaInfo = exports.executeCypherQuery = exports.getGraphUsageStats = exports.getGraphMetrics = exports.getBackupStats = exports.restoreBackup = exports.getBackupDownloadUrl = exports.exportBackup = exports.createBackup = exports.listBackups = exports.callMcpTool = exports.listMcpTools = exports.recommendAgent = exports.getAgentMetadata = exports.listAgents =
|
|
4
|
+
exports.batchProcessQueries = exports.executeSpecificAgent = exports.autoSelectAgent = exports.getConnection = exports.deleteConnection = exports.createConnection = exports.listConnections = exports.oauthCallback = exports.initOAuth = exports.exchangeLinkToken = exports.createLinkToken = exports.syncConnection = exports.getConnectionOptions = exports.getRepositoryCredits = exports.getSharedRepositoryCredits = exports.cancelSharedRepositorySubscription = exports.upgradeSharedRepositorySubscription = exports.subscribeToSharedRepository = exports.getUserSharedSubscriptions = exports.getDetailedUserAnalytics = exports.getUserUsageOverview = exports.getSharedRepositoryLimits = exports.getAllSharedRepositoryLimits = exports.getUserUsage = exports.getUserLimits = exports.updateUserApiKey = exports.revokeUserApiKey = exports.createUserApiKey = exports.listUserApiKeys = exports.updateUserPassword = exports.getAllCreditSummaries = exports.updateUser = exports.getCurrentUser = exports.getServiceStatus = exports.getCaptchaConfig = exports.completeSsoAuth = exports.ssoTokenExchange = exports.generateSsoToken = exports.resetPassword = exports.validateResetToken = exports.forgotPassword = exports.checkPasswordStrength = exports.getPasswordPolicy = exports.verifyEmail = exports.resendVerificationEmail = exports.refreshAuthSession = exports.getCurrentAuthUser = exports.logoutUser = exports.loginUser = exports.registerUser = void 0;
|
|
5
|
+
exports.cancelOperation = exports.getOperationStatus = exports.streamOperationEvents = exports.getServiceOfferings = exports.selectGraph = exports.getAvailableExtensions = exports.createGraph = exports.getGraphs = exports.copyDataToGraph = exports.getSubgraphQuota = exports.getSubgraphInfo = exports.deleteSubgraph = exports.createSubgraph = exports.listSubgraphs = exports.getGraphLimits = exports.getDatabaseInfo = exports.getDatabaseHealth = exports.checkStorageLimits = exports.getStorageUsage = exports.checkCreditBalance = exports.listCreditTransactions = exports.getCreditSummary = exports.getGraphMonthlyBill = exports.getGraphBillingHistory = exports.getGraphUsageDetails = exports.getCurrentGraphBill = exports.listSchemaExtensions = exports.exportGraphSchema = exports.validateSchema = exports.getGraphSchemaInfo = exports.executeCypherQuery = exports.getGraphUsageStats = exports.getGraphMetrics = exports.getBackupStats = exports.restoreBackup = exports.getBackupDownloadUrl = exports.exportBackup = exports.createBackup = exports.listBackups = exports.callMcpTool = exports.listMcpTools = exports.recommendAgent = exports.getAgentMetadata = exports.listAgents = void 0;
|
|
6
6
|
const client_gen_1 = require("./client.gen");
|
|
7
7
|
/**
|
|
8
8
|
* Register New User
|
|
@@ -171,21 +171,6 @@ const generateSsoToken = (options) => {
|
|
|
171
171
|
});
|
|
172
172
|
};
|
|
173
173
|
exports.generateSsoToken = generateSsoToken;
|
|
174
|
-
/**
|
|
175
|
-
* SSO Login
|
|
176
|
-
* Authenticate user with SSO token and establish session.
|
|
177
|
-
*/
|
|
178
|
-
const ssoLogin = (options) => {
|
|
179
|
-
return (options.client ?? client_gen_1.client).post({
|
|
180
|
-
url: '/v1/auth/sso-login',
|
|
181
|
-
...options,
|
|
182
|
-
headers: {
|
|
183
|
-
'Content-Type': 'application/json',
|
|
184
|
-
...options.headers
|
|
185
|
-
}
|
|
186
|
-
});
|
|
187
|
-
};
|
|
188
|
-
exports.ssoLogin = ssoLogin;
|
|
189
174
|
/**
|
|
190
175
|
* SSO Token Exchange
|
|
191
176
|
* Exchange SSO token for secure session handoff to target application.
|
|
@@ -284,48 +269,6 @@ const updateUser = (options) => {
|
|
|
284
269
|
});
|
|
285
270
|
};
|
|
286
271
|
exports.updateUser = updateUser;
|
|
287
|
-
/**
|
|
288
|
-
* Get User Graphs
|
|
289
|
-
* Get all graph databases accessible to the current user.
|
|
290
|
-
*/
|
|
291
|
-
const getUserGraphs = (options) => {
|
|
292
|
-
return (options?.client ?? client_gen_1.client).get({
|
|
293
|
-
security: [
|
|
294
|
-
{
|
|
295
|
-
name: 'X-API-Key',
|
|
296
|
-
type: 'apiKey'
|
|
297
|
-
},
|
|
298
|
-
{
|
|
299
|
-
scheme: 'bearer',
|
|
300
|
-
type: 'http'
|
|
301
|
-
}
|
|
302
|
-
],
|
|
303
|
-
url: '/v1/user/graphs',
|
|
304
|
-
...options
|
|
305
|
-
});
|
|
306
|
-
};
|
|
307
|
-
exports.getUserGraphs = getUserGraphs;
|
|
308
|
-
/**
|
|
309
|
-
* Select User Graph
|
|
310
|
-
* Select a specific graph as the active graph for the user.
|
|
311
|
-
*/
|
|
312
|
-
const selectUserGraph = (options) => {
|
|
313
|
-
return (options.client ?? client_gen_1.client).post({
|
|
314
|
-
security: [
|
|
315
|
-
{
|
|
316
|
-
name: 'X-API-Key',
|
|
317
|
-
type: 'apiKey'
|
|
318
|
-
},
|
|
319
|
-
{
|
|
320
|
-
scheme: 'bearer',
|
|
321
|
-
type: 'http'
|
|
322
|
-
}
|
|
323
|
-
],
|
|
324
|
-
url: '/v1/user/graphs/{graph_id}/select',
|
|
325
|
-
...options
|
|
326
|
-
});
|
|
327
|
-
};
|
|
328
|
-
exports.selectUserGraph = selectUserGraph;
|
|
329
272
|
/**
|
|
330
273
|
* Get All Credit Summaries
|
|
331
274
|
* Get credit summaries for all graphs owned by the user.
|
|
@@ -773,7 +716,7 @@ const getConnectionOptions = (options) => {
|
|
|
773
716
|
type: 'http'
|
|
774
717
|
}
|
|
775
718
|
],
|
|
776
|
-
url: '/v1/{graph_id}/connections/options',
|
|
719
|
+
url: '/v1/graphs/{graph_id}/connections/options',
|
|
777
720
|
...options
|
|
778
721
|
});
|
|
779
722
|
};
|
|
@@ -817,7 +760,7 @@ const syncConnection = (options) => {
|
|
|
817
760
|
type: 'http'
|
|
818
761
|
}
|
|
819
762
|
],
|
|
820
|
-
url: '/v1/{graph_id}/connections/{connection_id}/sync',
|
|
763
|
+
url: '/v1/graphs/{graph_id}/connections/{connection_id}/sync',
|
|
821
764
|
...options,
|
|
822
765
|
headers: {
|
|
823
766
|
'Content-Type': 'application/json',
|
|
@@ -855,7 +798,7 @@ const createLinkToken = (options) => {
|
|
|
855
798
|
type: 'http'
|
|
856
799
|
}
|
|
857
800
|
],
|
|
858
|
-
url: '/v1/{graph_id}/connections/link/token',
|
|
801
|
+
url: '/v1/graphs/{graph_id}/connections/link/token',
|
|
859
802
|
...options,
|
|
860
803
|
headers: {
|
|
861
804
|
'Content-Type': 'application/json',
|
|
@@ -898,7 +841,7 @@ const exchangeLinkToken = (options) => {
|
|
|
898
841
|
type: 'http'
|
|
899
842
|
}
|
|
900
843
|
],
|
|
901
|
-
url: '/v1/{graph_id}/connections/link/exchange',
|
|
844
|
+
url: '/v1/graphs/{graph_id}/connections/link/exchange',
|
|
902
845
|
...options,
|
|
903
846
|
headers: {
|
|
904
847
|
'Content-Type': 'application/json',
|
|
@@ -926,7 +869,7 @@ const initOAuth = (options) => {
|
|
|
926
869
|
type: 'http'
|
|
927
870
|
}
|
|
928
871
|
],
|
|
929
|
-
url: '/v1/{graph_id}/connections/oauth/init',
|
|
872
|
+
url: '/v1/graphs/{graph_id}/connections/oauth/init',
|
|
930
873
|
...options,
|
|
931
874
|
headers: {
|
|
932
875
|
'Content-Type': 'application/json',
|
|
@@ -969,7 +912,7 @@ const oauthCallback = (options) => {
|
|
|
969
912
|
type: 'http'
|
|
970
913
|
}
|
|
971
914
|
],
|
|
972
|
-
url: '/v1/{graph_id}/connections/oauth/callback/{provider}',
|
|
915
|
+
url: '/v1/graphs/{graph_id}/connections/oauth/callback/{provider}',
|
|
973
916
|
...options,
|
|
974
917
|
headers: {
|
|
975
918
|
'Content-Type': 'application/json',
|
|
@@ -1007,7 +950,7 @@ const listConnections = (options) => {
|
|
|
1007
950
|
type: 'http'
|
|
1008
951
|
}
|
|
1009
952
|
],
|
|
1010
|
-
url: '/v1/{graph_id}/connections',
|
|
953
|
+
url: '/v1/graphs/{graph_id}/connections',
|
|
1011
954
|
...options
|
|
1012
955
|
});
|
|
1013
956
|
};
|
|
@@ -1048,7 +991,7 @@ const createConnection = (options) => {
|
|
|
1048
991
|
type: 'http'
|
|
1049
992
|
}
|
|
1050
993
|
],
|
|
1051
|
-
url: '/v1/{graph_id}/connections',
|
|
994
|
+
url: '/v1/graphs/{graph_id}/connections',
|
|
1052
995
|
...options,
|
|
1053
996
|
headers: {
|
|
1054
997
|
'Content-Type': 'application/json',
|
|
@@ -1084,7 +1027,7 @@ const deleteConnection = (options) => {
|
|
|
1084
1027
|
type: 'http'
|
|
1085
1028
|
}
|
|
1086
1029
|
],
|
|
1087
|
-
url: '/v1/{graph_id}/connections/{connection_id}',
|
|
1030
|
+
url: '/v1/graphs/{graph_id}/connections/{connection_id}',
|
|
1088
1031
|
...options
|
|
1089
1032
|
});
|
|
1090
1033
|
};
|
|
@@ -1114,7 +1057,7 @@ const getConnection = (options) => {
|
|
|
1114
1057
|
type: 'http'
|
|
1115
1058
|
}
|
|
1116
1059
|
],
|
|
1117
|
-
url: '/v1/{graph_id}/connections/{connection_id}',
|
|
1060
|
+
url: '/v1/graphs/{graph_id}/connections/{connection_id}',
|
|
1118
1061
|
...options
|
|
1119
1062
|
});
|
|
1120
1063
|
};
|
|
@@ -1143,7 +1086,7 @@ const autoSelectAgent = (options) => {
|
|
|
1143
1086
|
type: 'http'
|
|
1144
1087
|
}
|
|
1145
1088
|
],
|
|
1146
|
-
url: '/v1/{graph_id}/agent',
|
|
1089
|
+
url: '/v1/graphs/{graph_id}/agent',
|
|
1147
1090
|
...options,
|
|
1148
1091
|
headers: {
|
|
1149
1092
|
'Content-Type': 'application/json',
|
|
@@ -1175,7 +1118,7 @@ const executeSpecificAgent = (options) => {
|
|
|
1175
1118
|
type: 'http'
|
|
1176
1119
|
}
|
|
1177
1120
|
],
|
|
1178
|
-
url: '/v1/{graph_id}/agent/{agent_type}',
|
|
1121
|
+
url: '/v1/graphs/{graph_id}/agent/{agent_type}',
|
|
1179
1122
|
...options,
|
|
1180
1123
|
headers: {
|
|
1181
1124
|
'Content-Type': 'application/json',
|
|
@@ -1213,7 +1156,7 @@ const batchProcessQueries = (options) => {
|
|
|
1213
1156
|
type: 'http'
|
|
1214
1157
|
}
|
|
1215
1158
|
],
|
|
1216
|
-
url: '/v1/{graph_id}/agent/batch',
|
|
1159
|
+
url: '/v1/graphs/{graph_id}/agent/batch',
|
|
1217
1160
|
...options,
|
|
1218
1161
|
headers: {
|
|
1219
1162
|
'Content-Type': 'application/json',
|
|
@@ -1246,7 +1189,7 @@ const listAgents = (options) => {
|
|
|
1246
1189
|
type: 'http'
|
|
1247
1190
|
}
|
|
1248
1191
|
],
|
|
1249
|
-
url: '/v1/{graph_id}/agent/list',
|
|
1192
|
+
url: '/v1/graphs/{graph_id}/agent/list',
|
|
1250
1193
|
...options
|
|
1251
1194
|
});
|
|
1252
1195
|
};
|
|
@@ -1277,7 +1220,7 @@ const getAgentMetadata = (options) => {
|
|
|
1277
1220
|
type: 'http'
|
|
1278
1221
|
}
|
|
1279
1222
|
],
|
|
1280
|
-
url: '/v1/{graph_id}/agent/{agent_type}/metadata',
|
|
1223
|
+
url: '/v1/graphs/{graph_id}/agent/{agent_type}/metadata',
|
|
1281
1224
|
...options
|
|
1282
1225
|
});
|
|
1283
1226
|
};
|
|
@@ -1311,7 +1254,7 @@ const recommendAgent = (options) => {
|
|
|
1311
1254
|
type: 'http'
|
|
1312
1255
|
}
|
|
1313
1256
|
],
|
|
1314
|
-
url: '/v1/{graph_id}/agent/recommend',
|
|
1257
|
+
url: '/v1/graphs/{graph_id}/agent/recommend',
|
|
1315
1258
|
...options,
|
|
1316
1259
|
headers: {
|
|
1317
1260
|
'Content-Type': 'application/json',
|
|
@@ -1350,7 +1293,7 @@ const listMcpTools = (options) => {
|
|
|
1350
1293
|
type: 'http'
|
|
1351
1294
|
}
|
|
1352
1295
|
],
|
|
1353
|
-
url: '/v1/{graph_id}/mcp/tools',
|
|
1296
|
+
url: '/v1/graphs/{graph_id}/mcp/tools',
|
|
1354
1297
|
...options
|
|
1355
1298
|
});
|
|
1356
1299
|
};
|
|
@@ -1404,7 +1347,7 @@ const callMcpTool = (options) => {
|
|
|
1404
1347
|
type: 'http'
|
|
1405
1348
|
}
|
|
1406
1349
|
],
|
|
1407
|
-
url: '/v1/{graph_id}/mcp/call-tool',
|
|
1350
|
+
url: '/v1/graphs/{graph_id}/mcp/call-tool',
|
|
1408
1351
|
...options,
|
|
1409
1352
|
headers: {
|
|
1410
1353
|
'Content-Type': 'application/json',
|
|
@@ -1429,7 +1372,7 @@ const listBackups = (options) => {
|
|
|
1429
1372
|
type: 'http'
|
|
1430
1373
|
}
|
|
1431
1374
|
],
|
|
1432
|
-
url: '/v1/{graph_id}/backups',
|
|
1375
|
+
url: '/v1/graphs/{graph_id}/backups',
|
|
1433
1376
|
...options
|
|
1434
1377
|
});
|
|
1435
1378
|
};
|
|
@@ -1491,7 +1434,7 @@ const createBackup = (options) => {
|
|
|
1491
1434
|
type: 'http'
|
|
1492
1435
|
}
|
|
1493
1436
|
],
|
|
1494
|
-
url: '/v1/{graph_id}/backups',
|
|
1437
|
+
url: '/v1/graphs/{graph_id}/backups',
|
|
1495
1438
|
...options,
|
|
1496
1439
|
headers: {
|
|
1497
1440
|
'Content-Type': 'application/json',
|
|
@@ -1516,7 +1459,7 @@ const exportBackup = (options) => {
|
|
|
1516
1459
|
type: 'http'
|
|
1517
1460
|
}
|
|
1518
1461
|
],
|
|
1519
|
-
url: '/v1/{graph_id}/backups/{backup_id}/export',
|
|
1462
|
+
url: '/v1/graphs/{graph_id}/backups/{backup_id}/export',
|
|
1520
1463
|
...options
|
|
1521
1464
|
});
|
|
1522
1465
|
};
|
|
@@ -1537,7 +1480,7 @@ const getBackupDownloadUrl = (options) => {
|
|
|
1537
1480
|
type: 'http'
|
|
1538
1481
|
}
|
|
1539
1482
|
],
|
|
1540
|
-
url: '/v1/{graph_id}/backups/{backup_id}/download',
|
|
1483
|
+
url: '/v1/graphs/{graph_id}/backups/{backup_id}/download',
|
|
1541
1484
|
...options
|
|
1542
1485
|
});
|
|
1543
1486
|
};
|
|
@@ -1599,7 +1542,7 @@ const restoreBackup = (options) => {
|
|
|
1599
1542
|
type: 'http'
|
|
1600
1543
|
}
|
|
1601
1544
|
],
|
|
1602
|
-
url: '/v1/{graph_id}/backups/restore',
|
|
1545
|
+
url: '/v1/graphs/{graph_id}/backups/restore',
|
|
1603
1546
|
...options,
|
|
1604
1547
|
headers: {
|
|
1605
1548
|
'Content-Type': 'application/json',
|
|
@@ -1624,7 +1567,7 @@ const getBackupStats = (options) => {
|
|
|
1624
1567
|
type: 'http'
|
|
1625
1568
|
}
|
|
1626
1569
|
],
|
|
1627
|
-
url: '/v1/{graph_id}/backups/stats',
|
|
1570
|
+
url: '/v1/graphs/{graph_id}/backups/stats',
|
|
1628
1571
|
...options
|
|
1629
1572
|
});
|
|
1630
1573
|
};
|
|
@@ -1661,7 +1604,7 @@ const getGraphMetrics = (options) => {
|
|
|
1661
1604
|
type: 'http'
|
|
1662
1605
|
}
|
|
1663
1606
|
],
|
|
1664
|
-
url: '/v1/{graph_id}/analytics',
|
|
1607
|
+
url: '/v1/graphs/{graph_id}/analytics',
|
|
1665
1608
|
...options
|
|
1666
1609
|
});
|
|
1667
1610
|
};
|
|
@@ -1704,7 +1647,7 @@ const getGraphUsageStats = (options) => {
|
|
|
1704
1647
|
type: 'http'
|
|
1705
1648
|
}
|
|
1706
1649
|
],
|
|
1707
|
-
url: '/v1/{graph_id}/analytics/usage',
|
|
1650
|
+
url: '/v1/graphs/{graph_id}/analytics/usage',
|
|
1708
1651
|
...options
|
|
1709
1652
|
});
|
|
1710
1653
|
};
|
|
@@ -1771,7 +1714,7 @@ const executeCypherQuery = (options) => {
|
|
|
1771
1714
|
type: 'http'
|
|
1772
1715
|
}
|
|
1773
1716
|
],
|
|
1774
|
-
url: '/v1/{graph_id}/query',
|
|
1717
|
+
url: '/v1/graphs/{graph_id}/query',
|
|
1775
1718
|
...options,
|
|
1776
1719
|
headers: {
|
|
1777
1720
|
'Content-Type': 'application/json',
|
|
@@ -1806,7 +1749,7 @@ const getGraphSchemaInfo = (options) => {
|
|
|
1806
1749
|
type: 'http'
|
|
1807
1750
|
}
|
|
1808
1751
|
],
|
|
1809
|
-
url: '/v1/{graph_id}/schema/info',
|
|
1752
|
+
url: '/v1/graphs/{graph_id}/schema/info',
|
|
1810
1753
|
...options
|
|
1811
1754
|
});
|
|
1812
1755
|
};
|
|
@@ -1848,7 +1791,7 @@ const validateSchema = (options) => {
|
|
|
1848
1791
|
type: 'http'
|
|
1849
1792
|
}
|
|
1850
1793
|
],
|
|
1851
|
-
url: '/v1/{graph_id}/schema/validate',
|
|
1794
|
+
url: '/v1/graphs/{graph_id}/schema/validate',
|
|
1852
1795
|
...options,
|
|
1853
1796
|
headers: {
|
|
1854
1797
|
'Content-Type': 'application/json',
|
|
@@ -1873,7 +1816,7 @@ const exportGraphSchema = (options) => {
|
|
|
1873
1816
|
type: 'http'
|
|
1874
1817
|
}
|
|
1875
1818
|
],
|
|
1876
|
-
url: '/v1/{graph_id}/schema/export',
|
|
1819
|
+
url: '/v1/graphs/{graph_id}/schema/export',
|
|
1877
1820
|
...options
|
|
1878
1821
|
});
|
|
1879
1822
|
};
|
|
@@ -1894,7 +1837,7 @@ const listSchemaExtensions = (options) => {
|
|
|
1894
1837
|
type: 'http'
|
|
1895
1838
|
}
|
|
1896
1839
|
],
|
|
1897
|
-
url: '/v1/{graph_id}/schema/extensions',
|
|
1840
|
+
url: '/v1/graphs/{graph_id}/schema/extensions',
|
|
1898
1841
|
...options
|
|
1899
1842
|
});
|
|
1900
1843
|
};
|
|
@@ -1926,7 +1869,7 @@ const getCurrentGraphBill = (options) => {
|
|
|
1926
1869
|
type: 'http'
|
|
1927
1870
|
}
|
|
1928
1871
|
],
|
|
1929
|
-
url: '/v1/{graph_id}/billing/current',
|
|
1872
|
+
url: '/v1/graphs/{graph_id}/billing/current',
|
|
1930
1873
|
...options
|
|
1931
1874
|
});
|
|
1932
1875
|
};
|
|
@@ -1962,7 +1905,7 @@ const getGraphUsageDetails = (options) => {
|
|
|
1962
1905
|
type: 'http'
|
|
1963
1906
|
}
|
|
1964
1907
|
],
|
|
1965
|
-
url: '/v1/{graph_id}/billing/usage',
|
|
1908
|
+
url: '/v1/graphs/{graph_id}/billing/usage',
|
|
1966
1909
|
...options
|
|
1967
1910
|
});
|
|
1968
1911
|
};
|
|
@@ -1997,7 +1940,7 @@ const getGraphBillingHistory = (options) => {
|
|
|
1997
1940
|
type: 'http'
|
|
1998
1941
|
}
|
|
1999
1942
|
],
|
|
2000
|
-
url: '/v1/{graph_id}/billing/history',
|
|
1943
|
+
url: '/v1/graphs/{graph_id}/billing/history',
|
|
2001
1944
|
...options
|
|
2002
1945
|
});
|
|
2003
1946
|
};
|
|
@@ -2029,7 +1972,7 @@ const getGraphMonthlyBill = (options) => {
|
|
|
2029
1972
|
type: 'http'
|
|
2030
1973
|
}
|
|
2031
1974
|
],
|
|
2032
|
-
url: '/v1/{graph_id}/billing/history/{year}/{month}',
|
|
1975
|
+
url: '/v1/graphs/{graph_id}/billing/history/{year}/{month}',
|
|
2033
1976
|
...options
|
|
2034
1977
|
});
|
|
2035
1978
|
};
|
|
@@ -2058,7 +2001,7 @@ const getCreditSummary = (options) => {
|
|
|
2058
2001
|
type: 'http'
|
|
2059
2002
|
}
|
|
2060
2003
|
],
|
|
2061
|
-
url: '/v1/{graph_id}/credits/summary',
|
|
2004
|
+
url: '/v1/graphs/{graph_id}/credits/summary',
|
|
2062
2005
|
...options
|
|
2063
2006
|
});
|
|
2064
2007
|
};
|
|
@@ -2093,7 +2036,7 @@ const listCreditTransactions = (options) => {
|
|
|
2093
2036
|
type: 'http'
|
|
2094
2037
|
}
|
|
2095
2038
|
],
|
|
2096
|
-
url: '/v1/{graph_id}/credits/transactions',
|
|
2039
|
+
url: '/v1/graphs/{graph_id}/credits/transactions',
|
|
2097
2040
|
...options
|
|
2098
2041
|
});
|
|
2099
2042
|
};
|
|
@@ -2124,7 +2067,7 @@ const checkCreditBalance = (options) => {
|
|
|
2124
2067
|
type: 'http'
|
|
2125
2068
|
}
|
|
2126
2069
|
],
|
|
2127
|
-
url: '/v1/{graph_id}/credits/balance/check',
|
|
2070
|
+
url: '/v1/graphs/{graph_id}/credits/balance/check',
|
|
2128
2071
|
...options
|
|
2129
2072
|
});
|
|
2130
2073
|
};
|
|
@@ -2154,7 +2097,7 @@ const getStorageUsage = (options) => {
|
|
|
2154
2097
|
type: 'http'
|
|
2155
2098
|
}
|
|
2156
2099
|
],
|
|
2157
|
-
url: '/v1/{graph_id}/credits/storage/usage',
|
|
2100
|
+
url: '/v1/graphs/{graph_id}/credits/storage/usage',
|
|
2158
2101
|
...options
|
|
2159
2102
|
});
|
|
2160
2103
|
};
|
|
@@ -2184,7 +2127,7 @@ const checkStorageLimits = (options) => {
|
|
|
2184
2127
|
type: 'http'
|
|
2185
2128
|
}
|
|
2186
2129
|
],
|
|
2187
|
-
url: '/v1/{graph_id}/credits/storage/limits',
|
|
2130
|
+
url: '/v1/graphs/{graph_id}/credits/storage/limits',
|
|
2188
2131
|
...options
|
|
2189
2132
|
});
|
|
2190
2133
|
};
|
|
@@ -2221,7 +2164,7 @@ const getDatabaseHealth = (options) => {
|
|
|
2221
2164
|
type: 'http'
|
|
2222
2165
|
}
|
|
2223
2166
|
],
|
|
2224
|
-
url: '/v1/{graph_id}/health',
|
|
2167
|
+
url: '/v1/graphs/{graph_id}/health',
|
|
2225
2168
|
...options
|
|
2226
2169
|
});
|
|
2227
2170
|
};
|
|
@@ -2259,7 +2202,7 @@ const getDatabaseInfo = (options) => {
|
|
|
2259
2202
|
type: 'http'
|
|
2260
2203
|
}
|
|
2261
2204
|
],
|
|
2262
|
-
url: '/v1/{graph_id}/info',
|
|
2205
|
+
url: '/v1/graphs/{graph_id}/info',
|
|
2263
2206
|
...options
|
|
2264
2207
|
});
|
|
2265
2208
|
};
|
|
@@ -2292,7 +2235,7 @@ const getGraphLimits = (options) => {
|
|
|
2292
2235
|
type: 'http'
|
|
2293
2236
|
}
|
|
2294
2237
|
],
|
|
2295
|
-
url: '/v1/{graph_id}/limits',
|
|
2238
|
+
url: '/v1/graphs/{graph_id}/limits',
|
|
2296
2239
|
...options
|
|
2297
2240
|
});
|
|
2298
2241
|
};
|
|
@@ -2322,7 +2265,7 @@ const listSubgraphs = (options) => {
|
|
|
2322
2265
|
type: 'http'
|
|
2323
2266
|
}
|
|
2324
2267
|
],
|
|
2325
|
-
url: '/v1/{graph_id}/subgraphs',
|
|
2268
|
+
url: '/v1/graphs/{graph_id}/subgraphs',
|
|
2326
2269
|
...options
|
|
2327
2270
|
});
|
|
2328
2271
|
};
|
|
@@ -2354,7 +2297,7 @@ const createSubgraph = (options) => {
|
|
|
2354
2297
|
type: 'http'
|
|
2355
2298
|
}
|
|
2356
2299
|
],
|
|
2357
|
-
url: '/v1/{graph_id}/subgraphs',
|
|
2300
|
+
url: '/v1/graphs/{graph_id}/subgraphs',
|
|
2358
2301
|
...options,
|
|
2359
2302
|
headers: {
|
|
2360
2303
|
'Content-Type': 'application/json',
|
|
@@ -2396,7 +2339,7 @@ const deleteSubgraph = (options) => {
|
|
|
2396
2339
|
type: 'http'
|
|
2397
2340
|
}
|
|
2398
2341
|
],
|
|
2399
|
-
url: '/v1/{graph_id}/subgraphs/{subgraph_id}',
|
|
2342
|
+
url: '/v1/graphs/{graph_id}/subgraphs/{subgraph_id}',
|
|
2400
2343
|
...options,
|
|
2401
2344
|
headers: {
|
|
2402
2345
|
'Content-Type': 'application/json',
|
|
@@ -2439,7 +2382,7 @@ const getSubgraphInfo = (options) => {
|
|
|
2439
2382
|
type: 'http'
|
|
2440
2383
|
}
|
|
2441
2384
|
],
|
|
2442
|
-
url: '/v1/{graph_id}/subgraphs/{subgraph_id}/info',
|
|
2385
|
+
url: '/v1/graphs/{graph_id}/subgraphs/{subgraph_id}/info',
|
|
2443
2386
|
...options
|
|
2444
2387
|
});
|
|
2445
2388
|
};
|
|
@@ -2476,7 +2419,7 @@ const getSubgraphQuota = (options) => {
|
|
|
2476
2419
|
type: 'http'
|
|
2477
2420
|
}
|
|
2478
2421
|
],
|
|
2479
|
-
url: '/v1/{graph_id}/subgraphs/quota',
|
|
2422
|
+
url: '/v1/graphs/{graph_id}/subgraphs/quota',
|
|
2480
2423
|
...options
|
|
2481
2424
|
});
|
|
2482
2425
|
};
|
|
@@ -2553,7 +2496,7 @@ const copyDataToGraph = (options) => {
|
|
|
2553
2496
|
type: 'http'
|
|
2554
2497
|
}
|
|
2555
2498
|
],
|
|
2556
|
-
url: '/v1/{graph_id}/copy',
|
|
2499
|
+
url: '/v1/graphs/{graph_id}/copy',
|
|
2557
2500
|
...options,
|
|
2558
2501
|
headers: {
|
|
2559
2502
|
'Content-Type': 'application/json',
|
|
@@ -2562,6 +2505,27 @@ const copyDataToGraph = (options) => {
|
|
|
2562
2505
|
});
|
|
2563
2506
|
};
|
|
2564
2507
|
exports.copyDataToGraph = copyDataToGraph;
|
|
2508
|
+
/**
|
|
2509
|
+
* Get User Graphs
|
|
2510
|
+
* Get all graph databases accessible to the current user.
|
|
2511
|
+
*/
|
|
2512
|
+
const getGraphs = (options) => {
|
|
2513
|
+
return (options?.client ?? client_gen_1.client).get({
|
|
2514
|
+
security: [
|
|
2515
|
+
{
|
|
2516
|
+
name: 'X-API-Key',
|
|
2517
|
+
type: 'apiKey'
|
|
2518
|
+
},
|
|
2519
|
+
{
|
|
2520
|
+
scheme: 'bearer',
|
|
2521
|
+
type: 'http'
|
|
2522
|
+
}
|
|
2523
|
+
],
|
|
2524
|
+
url: '/v1/graphs',
|
|
2525
|
+
...options
|
|
2526
|
+
});
|
|
2527
|
+
};
|
|
2528
|
+
exports.getGraphs = getGraphs;
|
|
2565
2529
|
/**
|
|
2566
2530
|
* Create New Graph Database
|
|
2567
2531
|
* Create a new graph database with specified schema and optionally an initial entity.
|
|
@@ -2617,7 +2581,7 @@ const createGraph = (options) => {
|
|
|
2617
2581
|
type: 'http'
|
|
2618
2582
|
}
|
|
2619
2583
|
],
|
|
2620
|
-
url: '/v1/
|
|
2584
|
+
url: '/v1/graphs',
|
|
2621
2585
|
...options,
|
|
2622
2586
|
headers: {
|
|
2623
2587
|
'Content-Type': 'application/json',
|
|
@@ -2642,11 +2606,32 @@ const getAvailableExtensions = (options) => {
|
|
|
2642
2606
|
type: 'http'
|
|
2643
2607
|
}
|
|
2644
2608
|
],
|
|
2645
|
-
url: '/v1/
|
|
2609
|
+
url: '/v1/graphs/extensions',
|
|
2646
2610
|
...options
|
|
2647
2611
|
});
|
|
2648
2612
|
};
|
|
2649
2613
|
exports.getAvailableExtensions = getAvailableExtensions;
|
|
2614
|
+
/**
|
|
2615
|
+
* Select Graph
|
|
2616
|
+
* Select a specific graph as the active graph for the user.
|
|
2617
|
+
*/
|
|
2618
|
+
const selectGraph = (options) => {
|
|
2619
|
+
return (options.client ?? client_gen_1.client).post({
|
|
2620
|
+
security: [
|
|
2621
|
+
{
|
|
2622
|
+
name: 'X-API-Key',
|
|
2623
|
+
type: 'apiKey'
|
|
2624
|
+
},
|
|
2625
|
+
{
|
|
2626
|
+
scheme: 'bearer',
|
|
2627
|
+
type: 'http'
|
|
2628
|
+
}
|
|
2629
|
+
],
|
|
2630
|
+
url: '/v1/graphs/{graph_id}/select',
|
|
2631
|
+
...options
|
|
2632
|
+
});
|
|
2633
|
+
};
|
|
2634
|
+
exports.selectGraph = selectGraph;
|
|
2650
2635
|
/**
|
|
2651
2636
|
* Get Service Offerings
|
|
2652
2637
|
* Get comprehensive information about all subscription offerings.
|