@robosystems/client 0.1.22 → 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.js +1 -1
- package/extensions/CopyClient.ts +1 -1
- package/extensions/QueryClient.js +1 -1
- package/extensions/QueryClient.ts +1 -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 +142 -167
- package/sdk/types.gen.ts +152 -183
- package/sdk-extensions/CopyClient.js +1 -1
- package/sdk-extensions/CopyClient.ts +1 -1
- package/sdk-extensions/QueryClient.js +1 -1
- package/sdk-extensions/QueryClient.ts +1 -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 +142 -167
- package/types.gen.ts +152 -183
package/sdk.gen.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
2
|
|
|
3
3
|
import type { Options as ClientOptions, TDataShape, Client } from './client';
|
|
4
|
-
import type { RegisterUserData, RegisterUserResponses, RegisterUserErrors, LoginUserData, LoginUserResponses, LoginUserErrors, LogoutUserData, LogoutUserResponses, LogoutUserErrors, GetCurrentAuthUserData, GetCurrentAuthUserResponses, GetCurrentAuthUserErrors, RefreshAuthSessionData, RefreshAuthSessionResponses, RefreshAuthSessionErrors, ResendVerificationEmailData, ResendVerificationEmailResponses, ResendVerificationEmailErrors, VerifyEmailData, VerifyEmailResponses, VerifyEmailErrors, GetPasswordPolicyData, GetPasswordPolicyResponses, CheckPasswordStrengthData, CheckPasswordStrengthResponses, CheckPasswordStrengthErrors, ForgotPasswordData, ForgotPasswordResponses, ForgotPasswordErrors, ValidateResetTokenData, ValidateResetTokenResponses, ValidateResetTokenErrors, ResetPasswordData, ResetPasswordResponses, ResetPasswordErrors, GenerateSsoTokenData, GenerateSsoTokenResponses, GenerateSsoTokenErrors,
|
|
4
|
+
import type { RegisterUserData, RegisterUserResponses, RegisterUserErrors, LoginUserData, LoginUserResponses, LoginUserErrors, LogoutUserData, LogoutUserResponses, LogoutUserErrors, GetCurrentAuthUserData, GetCurrentAuthUserResponses, GetCurrentAuthUserErrors, RefreshAuthSessionData, RefreshAuthSessionResponses, RefreshAuthSessionErrors, ResendVerificationEmailData, ResendVerificationEmailResponses, ResendVerificationEmailErrors, VerifyEmailData, VerifyEmailResponses, VerifyEmailErrors, GetPasswordPolicyData, GetPasswordPolicyResponses, CheckPasswordStrengthData, CheckPasswordStrengthResponses, CheckPasswordStrengthErrors, ForgotPasswordData, ForgotPasswordResponses, ForgotPasswordErrors, ValidateResetTokenData, ValidateResetTokenResponses, ValidateResetTokenErrors, ResetPasswordData, ResetPasswordResponses, ResetPasswordErrors, GenerateSsoTokenData, GenerateSsoTokenResponses, GenerateSsoTokenErrors, SsoTokenExchangeData, SsoTokenExchangeResponses, SsoTokenExchangeErrors, CompleteSsoAuthData, CompleteSsoAuthResponses, CompleteSsoAuthErrors, GetCaptchaConfigData, GetCaptchaConfigResponses, GetServiceStatusData, GetServiceStatusResponses, GetCurrentUserData, GetCurrentUserResponses, GetCurrentUserErrors, UpdateUserData, UpdateUserResponses, UpdateUserErrors, GetAllCreditSummariesData, GetAllCreditSummariesResponses, GetAllCreditSummariesErrors, UpdateUserPasswordData, UpdateUserPasswordResponses, UpdateUserPasswordErrors, ListUserApiKeysData, ListUserApiKeysResponses, ListUserApiKeysErrors, CreateUserApiKeyData, CreateUserApiKeyResponses, CreateUserApiKeyErrors, RevokeUserApiKeyData, RevokeUserApiKeyResponses, RevokeUserApiKeyErrors, UpdateUserApiKeyData, UpdateUserApiKeyResponses, UpdateUserApiKeyErrors, GetUserLimitsData, GetUserLimitsResponses, GetUserLimitsErrors, GetUserUsageData, GetUserUsageResponses, GetUserUsageErrors, GetAllSharedRepositoryLimitsData, GetAllSharedRepositoryLimitsResponses, GetAllSharedRepositoryLimitsErrors, GetSharedRepositoryLimitsData, GetSharedRepositoryLimitsResponses, GetSharedRepositoryLimitsErrors, GetUserUsageOverviewData, GetUserUsageOverviewResponses, GetUserUsageOverviewErrors, GetDetailedUserAnalyticsData, GetDetailedUserAnalyticsResponses, GetDetailedUserAnalyticsErrors, GetUserSharedSubscriptionsData, GetUserSharedSubscriptionsResponses, GetUserSharedSubscriptionsErrors, SubscribeToSharedRepositoryData, SubscribeToSharedRepositoryResponses, SubscribeToSharedRepositoryErrors, UpgradeSharedRepositorySubscriptionData, UpgradeSharedRepositorySubscriptionResponses, UpgradeSharedRepositorySubscriptionErrors, CancelSharedRepositorySubscriptionData, CancelSharedRepositorySubscriptionResponses, CancelSharedRepositorySubscriptionErrors, GetSharedRepositoryCreditsData, GetSharedRepositoryCreditsResponses, GetSharedRepositoryCreditsErrors, GetRepositoryCreditsData, GetRepositoryCreditsResponses, GetRepositoryCreditsErrors, GetConnectionOptionsData, GetConnectionOptionsResponses, GetConnectionOptionsErrors, SyncConnectionData, SyncConnectionResponses, SyncConnectionErrors, CreateLinkTokenData, CreateLinkTokenResponses, CreateLinkTokenErrors, ExchangeLinkTokenData, ExchangeLinkTokenResponses, ExchangeLinkTokenErrors, InitOAuthData, InitOAuthResponses, InitOAuthErrors, OauthCallbackData, OauthCallbackResponses, OauthCallbackErrors, ListConnectionsData, ListConnectionsResponses, ListConnectionsErrors, CreateConnectionData, CreateConnectionResponses, CreateConnectionErrors, DeleteConnectionData, DeleteConnectionResponses, DeleteConnectionErrors, GetConnectionData, GetConnectionResponses, GetConnectionErrors, AutoSelectAgentData, AutoSelectAgentResponses, AutoSelectAgentErrors, ExecuteSpecificAgentData, ExecuteSpecificAgentResponses, ExecuteSpecificAgentErrors, BatchProcessQueriesData, BatchProcessQueriesResponses, BatchProcessQueriesErrors, ListAgentsData, ListAgentsResponses, ListAgentsErrors, GetAgentMetadataData, GetAgentMetadataResponses, GetAgentMetadataErrors, RecommendAgentData, RecommendAgentResponses, RecommendAgentErrors, ListMcpToolsData, ListMcpToolsResponses, ListMcpToolsErrors, CallMcpToolData, CallMcpToolResponses, CallMcpToolErrors, ListBackupsData, ListBackupsResponses, ListBackupsErrors, CreateBackupData, CreateBackupResponses, CreateBackupErrors, ExportBackupData, ExportBackupResponses, ExportBackupErrors, GetBackupDownloadUrlData, GetBackupDownloadUrlResponses, GetBackupDownloadUrlErrors, RestoreBackupData, RestoreBackupResponses, RestoreBackupErrors, GetBackupStatsData, GetBackupStatsResponses, GetBackupStatsErrors, GetGraphMetricsData, GetGraphMetricsResponses, GetGraphMetricsErrors, GetGraphUsageStatsData, GetGraphUsageStatsResponses, GetGraphUsageStatsErrors, ExecuteCypherQueryData, ExecuteCypherQueryResponses, ExecuteCypherQueryErrors, GetGraphSchemaInfoData, GetGraphSchemaInfoResponses, GetGraphSchemaInfoErrors, ValidateSchemaData, ValidateSchemaResponses, ValidateSchemaErrors, ExportGraphSchemaData, ExportGraphSchemaResponses, ExportGraphSchemaErrors, ListSchemaExtensionsData, ListSchemaExtensionsResponses, ListSchemaExtensionsErrors, GetCurrentGraphBillData, GetCurrentGraphBillResponses, GetCurrentGraphBillErrors, GetGraphUsageDetailsData, GetGraphUsageDetailsResponses, GetGraphUsageDetailsErrors, GetGraphBillingHistoryData, GetGraphBillingHistoryResponses, GetGraphBillingHistoryErrors, GetGraphMonthlyBillData, GetGraphMonthlyBillResponses, GetGraphMonthlyBillErrors, GetCreditSummaryData, GetCreditSummaryResponses, GetCreditSummaryErrors, ListCreditTransactionsData, ListCreditTransactionsResponses, ListCreditTransactionsErrors, CheckCreditBalanceData, CheckCreditBalanceResponses, CheckCreditBalanceErrors, GetStorageUsageData, GetStorageUsageResponses, GetStorageUsageErrors, CheckStorageLimitsData, CheckStorageLimitsResponses, CheckStorageLimitsErrors, GetDatabaseHealthData, GetDatabaseHealthResponses, GetDatabaseHealthErrors, GetDatabaseInfoData, GetDatabaseInfoResponses, GetDatabaseInfoErrors, GetGraphLimitsData, GetGraphLimitsResponses, GetGraphLimitsErrors, ListSubgraphsData, ListSubgraphsResponses, ListSubgraphsErrors, CreateSubgraphData, CreateSubgraphResponses, CreateSubgraphErrors, DeleteSubgraphData, DeleteSubgraphResponses, DeleteSubgraphErrors, GetSubgraphInfoData, GetSubgraphInfoResponses, GetSubgraphInfoErrors, GetSubgraphQuotaData, GetSubgraphQuotaResponses, GetSubgraphQuotaErrors, CopyDataToGraphData, CopyDataToGraphResponses, CopyDataToGraphErrors, GetGraphsData, GetGraphsResponses, GetGraphsErrors, CreateGraphData, CreateGraphResponses, CreateGraphErrors, GetAvailableExtensionsData, GetAvailableExtensionsResponses, SelectGraphData, SelectGraphResponses, SelectGraphErrors, GetServiceOfferingsData, GetServiceOfferingsResponses, GetServiceOfferingsErrors, StreamOperationEventsData, StreamOperationEventsResponses, StreamOperationEventsErrors, GetOperationStatusData, GetOperationStatusResponses, GetOperationStatusErrors, CancelOperationData, CancelOperationResponses, CancelOperationErrors } from './types.gen';
|
|
5
5
|
import { client as _heyApiClient } from './client.gen';
|
|
6
6
|
|
|
7
7
|
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = ClientOptions<TData, ThrowOnError> & {
|
|
@@ -185,21 +185,6 @@ export const generateSsoToken = <ThrowOnError extends boolean = false>(options?:
|
|
|
185
185
|
});
|
|
186
186
|
};
|
|
187
187
|
|
|
188
|
-
/**
|
|
189
|
-
* SSO Login
|
|
190
|
-
* Authenticate user with SSO token and establish session.
|
|
191
|
-
*/
|
|
192
|
-
export const ssoLogin = <ThrowOnError extends boolean = false>(options: Options<SsoLoginData, ThrowOnError>) => {
|
|
193
|
-
return (options.client ?? _heyApiClient).post<SsoLoginResponses, SsoLoginErrors, ThrowOnError>({
|
|
194
|
-
url: '/v1/auth/sso-login',
|
|
195
|
-
...options,
|
|
196
|
-
headers: {
|
|
197
|
-
'Content-Type': 'application/json',
|
|
198
|
-
...options.headers
|
|
199
|
-
}
|
|
200
|
-
});
|
|
201
|
-
};
|
|
202
|
-
|
|
203
188
|
/**
|
|
204
189
|
* SSO Token Exchange
|
|
205
190
|
* Exchange SSO token for secure session handoff to target application.
|
|
@@ -298,48 +283,6 @@ export const updateUser = <ThrowOnError extends boolean = false>(options: Option
|
|
|
298
283
|
});
|
|
299
284
|
};
|
|
300
285
|
|
|
301
|
-
/**
|
|
302
|
-
* Get User Graphs
|
|
303
|
-
* Get all graph databases accessible to the current user.
|
|
304
|
-
*/
|
|
305
|
-
export const getUserGraphs = <ThrowOnError extends boolean = false>(options?: Options<GetUserGraphsData, ThrowOnError>) => {
|
|
306
|
-
return (options?.client ?? _heyApiClient).get<GetUserGraphsResponses, GetUserGraphsErrors, ThrowOnError>({
|
|
307
|
-
security: [
|
|
308
|
-
{
|
|
309
|
-
name: 'X-API-Key',
|
|
310
|
-
type: 'apiKey'
|
|
311
|
-
},
|
|
312
|
-
{
|
|
313
|
-
scheme: 'bearer',
|
|
314
|
-
type: 'http'
|
|
315
|
-
}
|
|
316
|
-
],
|
|
317
|
-
url: '/v1/user/graphs',
|
|
318
|
-
...options
|
|
319
|
-
});
|
|
320
|
-
};
|
|
321
|
-
|
|
322
|
-
/**
|
|
323
|
-
* Select User Graph
|
|
324
|
-
* Select a specific graph as the active graph for the user.
|
|
325
|
-
*/
|
|
326
|
-
export const selectUserGraph = <ThrowOnError extends boolean = false>(options: Options<SelectUserGraphData, ThrowOnError>) => {
|
|
327
|
-
return (options.client ?? _heyApiClient).post<SelectUserGraphResponses, SelectUserGraphErrors, ThrowOnError>({
|
|
328
|
-
security: [
|
|
329
|
-
{
|
|
330
|
-
name: 'X-API-Key',
|
|
331
|
-
type: 'apiKey'
|
|
332
|
-
},
|
|
333
|
-
{
|
|
334
|
-
scheme: 'bearer',
|
|
335
|
-
type: 'http'
|
|
336
|
-
}
|
|
337
|
-
],
|
|
338
|
-
url: '/v1/user/graphs/{graph_id}/select',
|
|
339
|
-
...options
|
|
340
|
-
});
|
|
341
|
-
};
|
|
342
|
-
|
|
343
286
|
/**
|
|
344
287
|
* Get All Credit Summaries
|
|
345
288
|
* Get credit summaries for all graphs owned by the user.
|
|
@@ -787,7 +730,7 @@ export const getConnectionOptions = <ThrowOnError extends boolean = false>(optio
|
|
|
787
730
|
type: 'http'
|
|
788
731
|
}
|
|
789
732
|
],
|
|
790
|
-
url: '/v1/{graph_id}/connections/options',
|
|
733
|
+
url: '/v1/graphs/{graph_id}/connections/options',
|
|
791
734
|
...options
|
|
792
735
|
});
|
|
793
736
|
};
|
|
@@ -831,7 +774,7 @@ export const syncConnection = <ThrowOnError extends boolean = false>(options: Op
|
|
|
831
774
|
type: 'http'
|
|
832
775
|
}
|
|
833
776
|
],
|
|
834
|
-
url: '/v1/{graph_id}/connections/{connection_id}/sync',
|
|
777
|
+
url: '/v1/graphs/{graph_id}/connections/{connection_id}/sync',
|
|
835
778
|
...options,
|
|
836
779
|
headers: {
|
|
837
780
|
'Content-Type': 'application/json',
|
|
@@ -869,7 +812,7 @@ export const createLinkToken = <ThrowOnError extends boolean = false>(options: O
|
|
|
869
812
|
type: 'http'
|
|
870
813
|
}
|
|
871
814
|
],
|
|
872
|
-
url: '/v1/{graph_id}/connections/link/token',
|
|
815
|
+
url: '/v1/graphs/{graph_id}/connections/link/token',
|
|
873
816
|
...options,
|
|
874
817
|
headers: {
|
|
875
818
|
'Content-Type': 'application/json',
|
|
@@ -912,7 +855,7 @@ export const exchangeLinkToken = <ThrowOnError extends boolean = false>(options:
|
|
|
912
855
|
type: 'http'
|
|
913
856
|
}
|
|
914
857
|
],
|
|
915
|
-
url: '/v1/{graph_id}/connections/link/exchange',
|
|
858
|
+
url: '/v1/graphs/{graph_id}/connections/link/exchange',
|
|
916
859
|
...options,
|
|
917
860
|
headers: {
|
|
918
861
|
'Content-Type': 'application/json',
|
|
@@ -940,7 +883,7 @@ export const initOAuth = <ThrowOnError extends boolean = false>(options: Options
|
|
|
940
883
|
type: 'http'
|
|
941
884
|
}
|
|
942
885
|
],
|
|
943
|
-
url: '/v1/{graph_id}/connections/oauth/init',
|
|
886
|
+
url: '/v1/graphs/{graph_id}/connections/oauth/init',
|
|
944
887
|
...options,
|
|
945
888
|
headers: {
|
|
946
889
|
'Content-Type': 'application/json',
|
|
@@ -983,7 +926,7 @@ export const oauthCallback = <ThrowOnError extends boolean = false>(options: Opt
|
|
|
983
926
|
type: 'http'
|
|
984
927
|
}
|
|
985
928
|
],
|
|
986
|
-
url: '/v1/{graph_id}/connections/oauth/callback/{provider}',
|
|
929
|
+
url: '/v1/graphs/{graph_id}/connections/oauth/callback/{provider}',
|
|
987
930
|
...options,
|
|
988
931
|
headers: {
|
|
989
932
|
'Content-Type': 'application/json',
|
|
@@ -1021,7 +964,7 @@ export const listConnections = <ThrowOnError extends boolean = false>(options: O
|
|
|
1021
964
|
type: 'http'
|
|
1022
965
|
}
|
|
1023
966
|
],
|
|
1024
|
-
url: '/v1/{graph_id}/connections',
|
|
967
|
+
url: '/v1/graphs/{graph_id}/connections',
|
|
1025
968
|
...options
|
|
1026
969
|
});
|
|
1027
970
|
};
|
|
@@ -1062,7 +1005,7 @@ export const createConnection = <ThrowOnError extends boolean = false>(options:
|
|
|
1062
1005
|
type: 'http'
|
|
1063
1006
|
}
|
|
1064
1007
|
],
|
|
1065
|
-
url: '/v1/{graph_id}/connections',
|
|
1008
|
+
url: '/v1/graphs/{graph_id}/connections',
|
|
1066
1009
|
...options,
|
|
1067
1010
|
headers: {
|
|
1068
1011
|
'Content-Type': 'application/json',
|
|
@@ -1098,7 +1041,7 @@ export const deleteConnection = <ThrowOnError extends boolean = false>(options:
|
|
|
1098
1041
|
type: 'http'
|
|
1099
1042
|
}
|
|
1100
1043
|
],
|
|
1101
|
-
url: '/v1/{graph_id}/connections/{connection_id}',
|
|
1044
|
+
url: '/v1/graphs/{graph_id}/connections/{connection_id}',
|
|
1102
1045
|
...options
|
|
1103
1046
|
});
|
|
1104
1047
|
};
|
|
@@ -1128,7 +1071,7 @@ export const getConnection = <ThrowOnError extends boolean = false>(options: Opt
|
|
|
1128
1071
|
type: 'http'
|
|
1129
1072
|
}
|
|
1130
1073
|
],
|
|
1131
|
-
url: '/v1/{graph_id}/connections/{connection_id}',
|
|
1074
|
+
url: '/v1/graphs/{graph_id}/connections/{connection_id}',
|
|
1132
1075
|
...options
|
|
1133
1076
|
});
|
|
1134
1077
|
};
|
|
@@ -1157,7 +1100,7 @@ export const autoSelectAgent = <ThrowOnError extends boolean = false>(options: O
|
|
|
1157
1100
|
type: 'http'
|
|
1158
1101
|
}
|
|
1159
1102
|
],
|
|
1160
|
-
url: '/v1/{graph_id}/agent',
|
|
1103
|
+
url: '/v1/graphs/{graph_id}/agent',
|
|
1161
1104
|
...options,
|
|
1162
1105
|
headers: {
|
|
1163
1106
|
'Content-Type': 'application/json',
|
|
@@ -1189,7 +1132,7 @@ export const executeSpecificAgent = <ThrowOnError extends boolean = false>(optio
|
|
|
1189
1132
|
type: 'http'
|
|
1190
1133
|
}
|
|
1191
1134
|
],
|
|
1192
|
-
url: '/v1/{graph_id}/agent/{agent_type}',
|
|
1135
|
+
url: '/v1/graphs/{graph_id}/agent/{agent_type}',
|
|
1193
1136
|
...options,
|
|
1194
1137
|
headers: {
|
|
1195
1138
|
'Content-Type': 'application/json',
|
|
@@ -1227,7 +1170,7 @@ export const batchProcessQueries = <ThrowOnError extends boolean = false>(option
|
|
|
1227
1170
|
type: 'http'
|
|
1228
1171
|
}
|
|
1229
1172
|
],
|
|
1230
|
-
url: '/v1/{graph_id}/agent/batch',
|
|
1173
|
+
url: '/v1/graphs/{graph_id}/agent/batch',
|
|
1231
1174
|
...options,
|
|
1232
1175
|
headers: {
|
|
1233
1176
|
'Content-Type': 'application/json',
|
|
@@ -1260,7 +1203,7 @@ export const listAgents = <ThrowOnError extends boolean = false>(options: Option
|
|
|
1260
1203
|
type: 'http'
|
|
1261
1204
|
}
|
|
1262
1205
|
],
|
|
1263
|
-
url: '/v1/{graph_id}/agent/list',
|
|
1206
|
+
url: '/v1/graphs/{graph_id}/agent/list',
|
|
1264
1207
|
...options
|
|
1265
1208
|
});
|
|
1266
1209
|
};
|
|
@@ -1291,7 +1234,7 @@ export const getAgentMetadata = <ThrowOnError extends boolean = false>(options:
|
|
|
1291
1234
|
type: 'http'
|
|
1292
1235
|
}
|
|
1293
1236
|
],
|
|
1294
|
-
url: '/v1/{graph_id}/agent/{agent_type}/metadata',
|
|
1237
|
+
url: '/v1/graphs/{graph_id}/agent/{agent_type}/metadata',
|
|
1295
1238
|
...options
|
|
1296
1239
|
});
|
|
1297
1240
|
};
|
|
@@ -1325,7 +1268,7 @@ export const recommendAgent = <ThrowOnError extends boolean = false>(options: Op
|
|
|
1325
1268
|
type: 'http'
|
|
1326
1269
|
}
|
|
1327
1270
|
],
|
|
1328
|
-
url: '/v1/{graph_id}/agent/recommend',
|
|
1271
|
+
url: '/v1/graphs/{graph_id}/agent/recommend',
|
|
1329
1272
|
...options,
|
|
1330
1273
|
headers: {
|
|
1331
1274
|
'Content-Type': 'application/json',
|
|
@@ -1364,7 +1307,7 @@ export const listMcpTools = <ThrowOnError extends boolean = false>(options: Opti
|
|
|
1364
1307
|
type: 'http'
|
|
1365
1308
|
}
|
|
1366
1309
|
],
|
|
1367
|
-
url: '/v1/{graph_id}/mcp/tools',
|
|
1310
|
+
url: '/v1/graphs/{graph_id}/mcp/tools',
|
|
1368
1311
|
...options
|
|
1369
1312
|
});
|
|
1370
1313
|
};
|
|
@@ -1418,7 +1361,7 @@ export const callMcpTool = <ThrowOnError extends boolean = false>(options: Optio
|
|
|
1418
1361
|
type: 'http'
|
|
1419
1362
|
}
|
|
1420
1363
|
],
|
|
1421
|
-
url: '/v1/{graph_id}/mcp/call-tool',
|
|
1364
|
+
url: '/v1/graphs/{graph_id}/mcp/call-tool',
|
|
1422
1365
|
...options,
|
|
1423
1366
|
headers: {
|
|
1424
1367
|
'Content-Type': 'application/json',
|
|
@@ -1443,7 +1386,7 @@ export const listBackups = <ThrowOnError extends boolean = false>(options: Optio
|
|
|
1443
1386
|
type: 'http'
|
|
1444
1387
|
}
|
|
1445
1388
|
],
|
|
1446
|
-
url: '/v1/{graph_id}/backups',
|
|
1389
|
+
url: '/v1/graphs/{graph_id}/backups',
|
|
1447
1390
|
...options
|
|
1448
1391
|
});
|
|
1449
1392
|
};
|
|
@@ -1505,7 +1448,7 @@ export const createBackup = <ThrowOnError extends boolean = false>(options: Opti
|
|
|
1505
1448
|
type: 'http'
|
|
1506
1449
|
}
|
|
1507
1450
|
],
|
|
1508
|
-
url: '/v1/{graph_id}/backups',
|
|
1451
|
+
url: '/v1/graphs/{graph_id}/backups',
|
|
1509
1452
|
...options,
|
|
1510
1453
|
headers: {
|
|
1511
1454
|
'Content-Type': 'application/json',
|
|
@@ -1530,7 +1473,7 @@ export const exportBackup = <ThrowOnError extends boolean = false>(options: Opti
|
|
|
1530
1473
|
type: 'http'
|
|
1531
1474
|
}
|
|
1532
1475
|
],
|
|
1533
|
-
url: '/v1/{graph_id}/backups/{backup_id}/export',
|
|
1476
|
+
url: '/v1/graphs/{graph_id}/backups/{backup_id}/export',
|
|
1534
1477
|
...options
|
|
1535
1478
|
});
|
|
1536
1479
|
};
|
|
@@ -1551,7 +1494,7 @@ export const getBackupDownloadUrl = <ThrowOnError extends boolean = false>(optio
|
|
|
1551
1494
|
type: 'http'
|
|
1552
1495
|
}
|
|
1553
1496
|
],
|
|
1554
|
-
url: '/v1/{graph_id}/backups/{backup_id}/download',
|
|
1497
|
+
url: '/v1/graphs/{graph_id}/backups/{backup_id}/download',
|
|
1555
1498
|
...options
|
|
1556
1499
|
});
|
|
1557
1500
|
};
|
|
@@ -1613,7 +1556,7 @@ export const restoreBackup = <ThrowOnError extends boolean = false>(options: Opt
|
|
|
1613
1556
|
type: 'http'
|
|
1614
1557
|
}
|
|
1615
1558
|
],
|
|
1616
|
-
url: '/v1/{graph_id}/backups/restore',
|
|
1559
|
+
url: '/v1/graphs/{graph_id}/backups/restore',
|
|
1617
1560
|
...options,
|
|
1618
1561
|
headers: {
|
|
1619
1562
|
'Content-Type': 'application/json',
|
|
@@ -1638,7 +1581,7 @@ export const getBackupStats = <ThrowOnError extends boolean = false>(options: Op
|
|
|
1638
1581
|
type: 'http'
|
|
1639
1582
|
}
|
|
1640
1583
|
],
|
|
1641
|
-
url: '/v1/{graph_id}/backups/stats',
|
|
1584
|
+
url: '/v1/graphs/{graph_id}/backups/stats',
|
|
1642
1585
|
...options
|
|
1643
1586
|
});
|
|
1644
1587
|
};
|
|
@@ -1675,7 +1618,7 @@ export const getGraphMetrics = <ThrowOnError extends boolean = false>(options: O
|
|
|
1675
1618
|
type: 'http'
|
|
1676
1619
|
}
|
|
1677
1620
|
],
|
|
1678
|
-
url: '/v1/{graph_id}/analytics',
|
|
1621
|
+
url: '/v1/graphs/{graph_id}/analytics',
|
|
1679
1622
|
...options
|
|
1680
1623
|
});
|
|
1681
1624
|
};
|
|
@@ -1718,7 +1661,7 @@ export const getGraphUsageStats = <ThrowOnError extends boolean = false>(options
|
|
|
1718
1661
|
type: 'http'
|
|
1719
1662
|
}
|
|
1720
1663
|
],
|
|
1721
|
-
url: '/v1/{graph_id}/analytics/usage',
|
|
1664
|
+
url: '/v1/graphs/{graph_id}/analytics/usage',
|
|
1722
1665
|
...options
|
|
1723
1666
|
});
|
|
1724
1667
|
};
|
|
@@ -1785,7 +1728,7 @@ export const executeCypherQuery = <ThrowOnError extends boolean = false>(options
|
|
|
1785
1728
|
type: 'http'
|
|
1786
1729
|
}
|
|
1787
1730
|
],
|
|
1788
|
-
url: '/v1/{graph_id}/query',
|
|
1731
|
+
url: '/v1/graphs/{graph_id}/query',
|
|
1789
1732
|
...options,
|
|
1790
1733
|
headers: {
|
|
1791
1734
|
'Content-Type': 'application/json',
|
|
@@ -1820,7 +1763,7 @@ export const getGraphSchemaInfo = <ThrowOnError extends boolean = false>(options
|
|
|
1820
1763
|
type: 'http'
|
|
1821
1764
|
}
|
|
1822
1765
|
],
|
|
1823
|
-
url: '/v1/{graph_id}/schema/info',
|
|
1766
|
+
url: '/v1/graphs/{graph_id}/schema/info',
|
|
1824
1767
|
...options
|
|
1825
1768
|
});
|
|
1826
1769
|
};
|
|
@@ -1862,7 +1805,7 @@ export const validateSchema = <ThrowOnError extends boolean = false>(options: Op
|
|
|
1862
1805
|
type: 'http'
|
|
1863
1806
|
}
|
|
1864
1807
|
],
|
|
1865
|
-
url: '/v1/{graph_id}/schema/validate',
|
|
1808
|
+
url: '/v1/graphs/{graph_id}/schema/validate',
|
|
1866
1809
|
...options,
|
|
1867
1810
|
headers: {
|
|
1868
1811
|
'Content-Type': 'application/json',
|
|
@@ -1887,7 +1830,7 @@ export const exportGraphSchema = <ThrowOnError extends boolean = false>(options:
|
|
|
1887
1830
|
type: 'http'
|
|
1888
1831
|
}
|
|
1889
1832
|
],
|
|
1890
|
-
url: '/v1/{graph_id}/schema/export',
|
|
1833
|
+
url: '/v1/graphs/{graph_id}/schema/export',
|
|
1891
1834
|
...options
|
|
1892
1835
|
});
|
|
1893
1836
|
};
|
|
@@ -1908,7 +1851,7 @@ export const listSchemaExtensions = <ThrowOnError extends boolean = false>(optio
|
|
|
1908
1851
|
type: 'http'
|
|
1909
1852
|
}
|
|
1910
1853
|
],
|
|
1911
|
-
url: '/v1/{graph_id}/schema/extensions',
|
|
1854
|
+
url: '/v1/graphs/{graph_id}/schema/extensions',
|
|
1912
1855
|
...options
|
|
1913
1856
|
});
|
|
1914
1857
|
};
|
|
@@ -1940,7 +1883,7 @@ export const getCurrentGraphBill = <ThrowOnError extends boolean = false>(option
|
|
|
1940
1883
|
type: 'http'
|
|
1941
1884
|
}
|
|
1942
1885
|
],
|
|
1943
|
-
url: '/v1/{graph_id}/billing/current',
|
|
1886
|
+
url: '/v1/graphs/{graph_id}/billing/current',
|
|
1944
1887
|
...options
|
|
1945
1888
|
});
|
|
1946
1889
|
};
|
|
@@ -1976,7 +1919,7 @@ export const getGraphUsageDetails = <ThrowOnError extends boolean = false>(optio
|
|
|
1976
1919
|
type: 'http'
|
|
1977
1920
|
}
|
|
1978
1921
|
],
|
|
1979
|
-
url: '/v1/{graph_id}/billing/usage',
|
|
1922
|
+
url: '/v1/graphs/{graph_id}/billing/usage',
|
|
1980
1923
|
...options
|
|
1981
1924
|
});
|
|
1982
1925
|
};
|
|
@@ -2011,7 +1954,7 @@ export const getGraphBillingHistory = <ThrowOnError extends boolean = false>(opt
|
|
|
2011
1954
|
type: 'http'
|
|
2012
1955
|
}
|
|
2013
1956
|
],
|
|
2014
|
-
url: '/v1/{graph_id}/billing/history',
|
|
1957
|
+
url: '/v1/graphs/{graph_id}/billing/history',
|
|
2015
1958
|
...options
|
|
2016
1959
|
});
|
|
2017
1960
|
};
|
|
@@ -2043,7 +1986,7 @@ export const getGraphMonthlyBill = <ThrowOnError extends boolean = false>(option
|
|
|
2043
1986
|
type: 'http'
|
|
2044
1987
|
}
|
|
2045
1988
|
],
|
|
2046
|
-
url: '/v1/{graph_id}/billing/history/{year}/{month}',
|
|
1989
|
+
url: '/v1/graphs/{graph_id}/billing/history/{year}/{month}',
|
|
2047
1990
|
...options
|
|
2048
1991
|
});
|
|
2049
1992
|
};
|
|
@@ -2072,7 +2015,7 @@ export const getCreditSummary = <ThrowOnError extends boolean = false>(options:
|
|
|
2072
2015
|
type: 'http'
|
|
2073
2016
|
}
|
|
2074
2017
|
],
|
|
2075
|
-
url: '/v1/{graph_id}/credits/summary',
|
|
2018
|
+
url: '/v1/graphs/{graph_id}/credits/summary',
|
|
2076
2019
|
...options
|
|
2077
2020
|
});
|
|
2078
2021
|
};
|
|
@@ -2107,7 +2050,7 @@ export const listCreditTransactions = <ThrowOnError extends boolean = false>(opt
|
|
|
2107
2050
|
type: 'http'
|
|
2108
2051
|
}
|
|
2109
2052
|
],
|
|
2110
|
-
url: '/v1/{graph_id}/credits/transactions',
|
|
2053
|
+
url: '/v1/graphs/{graph_id}/credits/transactions',
|
|
2111
2054
|
...options
|
|
2112
2055
|
});
|
|
2113
2056
|
};
|
|
@@ -2138,7 +2081,7 @@ export const checkCreditBalance = <ThrowOnError extends boolean = false>(options
|
|
|
2138
2081
|
type: 'http'
|
|
2139
2082
|
}
|
|
2140
2083
|
],
|
|
2141
|
-
url: '/v1/{graph_id}/credits/balance/check',
|
|
2084
|
+
url: '/v1/graphs/{graph_id}/credits/balance/check',
|
|
2142
2085
|
...options
|
|
2143
2086
|
});
|
|
2144
2087
|
};
|
|
@@ -2168,7 +2111,7 @@ export const getStorageUsage = <ThrowOnError extends boolean = false>(options: O
|
|
|
2168
2111
|
type: 'http'
|
|
2169
2112
|
}
|
|
2170
2113
|
],
|
|
2171
|
-
url: '/v1/{graph_id}/credits/storage/usage',
|
|
2114
|
+
url: '/v1/graphs/{graph_id}/credits/storage/usage',
|
|
2172
2115
|
...options
|
|
2173
2116
|
});
|
|
2174
2117
|
};
|
|
@@ -2198,7 +2141,7 @@ export const checkStorageLimits = <ThrowOnError extends boolean = false>(options
|
|
|
2198
2141
|
type: 'http'
|
|
2199
2142
|
}
|
|
2200
2143
|
],
|
|
2201
|
-
url: '/v1/{graph_id}/credits/storage/limits',
|
|
2144
|
+
url: '/v1/graphs/{graph_id}/credits/storage/limits',
|
|
2202
2145
|
...options
|
|
2203
2146
|
});
|
|
2204
2147
|
};
|
|
@@ -2235,7 +2178,7 @@ export const getDatabaseHealth = <ThrowOnError extends boolean = false>(options:
|
|
|
2235
2178
|
type: 'http'
|
|
2236
2179
|
}
|
|
2237
2180
|
],
|
|
2238
|
-
url: '/v1/{graph_id}/health',
|
|
2181
|
+
url: '/v1/graphs/{graph_id}/health',
|
|
2239
2182
|
...options
|
|
2240
2183
|
});
|
|
2241
2184
|
};
|
|
@@ -2273,7 +2216,7 @@ export const getDatabaseInfo = <ThrowOnError extends boolean = false>(options: O
|
|
|
2273
2216
|
type: 'http'
|
|
2274
2217
|
}
|
|
2275
2218
|
],
|
|
2276
|
-
url: '/v1/{graph_id}/info',
|
|
2219
|
+
url: '/v1/graphs/{graph_id}/info',
|
|
2277
2220
|
...options
|
|
2278
2221
|
});
|
|
2279
2222
|
};
|
|
@@ -2306,7 +2249,7 @@ export const getGraphLimits = <ThrowOnError extends boolean = false>(options: Op
|
|
|
2306
2249
|
type: 'http'
|
|
2307
2250
|
}
|
|
2308
2251
|
],
|
|
2309
|
-
url: '/v1/{graph_id}/limits',
|
|
2252
|
+
url: '/v1/graphs/{graph_id}/limits',
|
|
2310
2253
|
...options
|
|
2311
2254
|
});
|
|
2312
2255
|
};
|
|
@@ -2336,7 +2279,7 @@ export const listSubgraphs = <ThrowOnError extends boolean = false>(options: Opt
|
|
|
2336
2279
|
type: 'http'
|
|
2337
2280
|
}
|
|
2338
2281
|
],
|
|
2339
|
-
url: '/v1/{graph_id}/subgraphs',
|
|
2282
|
+
url: '/v1/graphs/{graph_id}/subgraphs',
|
|
2340
2283
|
...options
|
|
2341
2284
|
});
|
|
2342
2285
|
};
|
|
@@ -2368,7 +2311,7 @@ export const createSubgraph = <ThrowOnError extends boolean = false>(options: Op
|
|
|
2368
2311
|
type: 'http'
|
|
2369
2312
|
}
|
|
2370
2313
|
],
|
|
2371
|
-
url: '/v1/{graph_id}/subgraphs',
|
|
2314
|
+
url: '/v1/graphs/{graph_id}/subgraphs',
|
|
2372
2315
|
...options,
|
|
2373
2316
|
headers: {
|
|
2374
2317
|
'Content-Type': 'application/json',
|
|
@@ -2410,7 +2353,7 @@ export const deleteSubgraph = <ThrowOnError extends boolean = false>(options: Op
|
|
|
2410
2353
|
type: 'http'
|
|
2411
2354
|
}
|
|
2412
2355
|
],
|
|
2413
|
-
url: '/v1/{graph_id}/subgraphs/{subgraph_id}',
|
|
2356
|
+
url: '/v1/graphs/{graph_id}/subgraphs/{subgraph_id}',
|
|
2414
2357
|
...options,
|
|
2415
2358
|
headers: {
|
|
2416
2359
|
'Content-Type': 'application/json',
|
|
@@ -2453,7 +2396,7 @@ export const getSubgraphInfo = <ThrowOnError extends boolean = false>(options: O
|
|
|
2453
2396
|
type: 'http'
|
|
2454
2397
|
}
|
|
2455
2398
|
],
|
|
2456
|
-
url: '/v1/{graph_id}/subgraphs/{subgraph_id}/info',
|
|
2399
|
+
url: '/v1/graphs/{graph_id}/subgraphs/{subgraph_id}/info',
|
|
2457
2400
|
...options
|
|
2458
2401
|
});
|
|
2459
2402
|
};
|
|
@@ -2490,7 +2433,7 @@ export const getSubgraphQuota = <ThrowOnError extends boolean = false>(options:
|
|
|
2490
2433
|
type: 'http'
|
|
2491
2434
|
}
|
|
2492
2435
|
],
|
|
2493
|
-
url: '/v1/{graph_id}/subgraphs/quota',
|
|
2436
|
+
url: '/v1/graphs/{graph_id}/subgraphs/quota',
|
|
2494
2437
|
...options
|
|
2495
2438
|
});
|
|
2496
2439
|
};
|
|
@@ -2567,7 +2510,7 @@ export const copyDataToGraph = <ThrowOnError extends boolean = false>(options: O
|
|
|
2567
2510
|
type: 'http'
|
|
2568
2511
|
}
|
|
2569
2512
|
],
|
|
2570
|
-
url: '/v1/{graph_id}/copy',
|
|
2513
|
+
url: '/v1/graphs/{graph_id}/copy',
|
|
2571
2514
|
...options,
|
|
2572
2515
|
headers: {
|
|
2573
2516
|
'Content-Type': 'application/json',
|
|
@@ -2576,6 +2519,27 @@ export const copyDataToGraph = <ThrowOnError extends boolean = false>(options: O
|
|
|
2576
2519
|
});
|
|
2577
2520
|
};
|
|
2578
2521
|
|
|
2522
|
+
/**
|
|
2523
|
+
* Get User Graphs
|
|
2524
|
+
* Get all graph databases accessible to the current user.
|
|
2525
|
+
*/
|
|
2526
|
+
export const getGraphs = <ThrowOnError extends boolean = false>(options?: Options<GetGraphsData, ThrowOnError>) => {
|
|
2527
|
+
return (options?.client ?? _heyApiClient).get<GetGraphsResponses, GetGraphsErrors, ThrowOnError>({
|
|
2528
|
+
security: [
|
|
2529
|
+
{
|
|
2530
|
+
name: 'X-API-Key',
|
|
2531
|
+
type: 'apiKey'
|
|
2532
|
+
},
|
|
2533
|
+
{
|
|
2534
|
+
scheme: 'bearer',
|
|
2535
|
+
type: 'http'
|
|
2536
|
+
}
|
|
2537
|
+
],
|
|
2538
|
+
url: '/v1/graphs',
|
|
2539
|
+
...options
|
|
2540
|
+
});
|
|
2541
|
+
};
|
|
2542
|
+
|
|
2579
2543
|
/**
|
|
2580
2544
|
* Create New Graph Database
|
|
2581
2545
|
* Create a new graph database with specified schema and optionally an initial entity.
|
|
@@ -2631,7 +2595,7 @@ export const createGraph = <ThrowOnError extends boolean = false>(options: Optio
|
|
|
2631
2595
|
type: 'http'
|
|
2632
2596
|
}
|
|
2633
2597
|
],
|
|
2634
|
-
url: '/v1/
|
|
2598
|
+
url: '/v1/graphs',
|
|
2635
2599
|
...options,
|
|
2636
2600
|
headers: {
|
|
2637
2601
|
'Content-Type': 'application/json',
|
|
@@ -2656,7 +2620,28 @@ export const getAvailableExtensions = <ThrowOnError extends boolean = false>(opt
|
|
|
2656
2620
|
type: 'http'
|
|
2657
2621
|
}
|
|
2658
2622
|
],
|
|
2659
|
-
url: '/v1/
|
|
2623
|
+
url: '/v1/graphs/extensions',
|
|
2624
|
+
...options
|
|
2625
|
+
});
|
|
2626
|
+
};
|
|
2627
|
+
|
|
2628
|
+
/**
|
|
2629
|
+
* Select Graph
|
|
2630
|
+
* Select a specific graph as the active graph for the user.
|
|
2631
|
+
*/
|
|
2632
|
+
export const selectGraph = <ThrowOnError extends boolean = false>(options: Options<SelectGraphData, ThrowOnError>) => {
|
|
2633
|
+
return (options.client ?? _heyApiClient).post<SelectGraphResponses, SelectGraphErrors, ThrowOnError>({
|
|
2634
|
+
security: [
|
|
2635
|
+
{
|
|
2636
|
+
name: 'X-API-Key',
|
|
2637
|
+
type: 'apiKey'
|
|
2638
|
+
},
|
|
2639
|
+
{
|
|
2640
|
+
scheme: 'bearer',
|
|
2641
|
+
type: 'http'
|
|
2642
|
+
}
|
|
2643
|
+
],
|
|
2644
|
+
url: '/v1/graphs/{graph_id}/select',
|
|
2660
2645
|
...options
|
|
2661
2646
|
});
|
|
2662
2647
|
};
|