@robosystems/client 0.2.11 → 0.2.13
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/AgentClient.d.ts +82 -0
- package/extensions/AgentClient.js +218 -0
- package/extensions/AgentClient.ts +321 -0
- package/extensions/QueryClient.js +85 -37
- package/extensions/QueryClient.ts +82 -34
- package/extensions/index.d.ts +8 -1
- package/extensions/index.js +19 -1
- package/extensions/index.ts +22 -1
- package/package.json +1 -1
- package/sdk/sdk.gen.d.ts +63 -49
- package/sdk/sdk.gen.js +100 -106
- package/sdk/sdk.gen.ts +98 -104
- package/sdk/types.gen.d.ts +124 -163
- package/sdk/types.gen.ts +135 -181
- package/sdk-extensions/AgentClient.d.ts +82 -0
- package/sdk-extensions/AgentClient.js +218 -0
- package/sdk-extensions/AgentClient.ts +321 -0
- package/sdk-extensions/QueryClient.js +85 -37
- package/sdk-extensions/QueryClient.ts +82 -34
- package/sdk-extensions/index.d.ts +8 -1
- package/sdk-extensions/index.js +19 -1
- package/sdk-extensions/index.ts +22 -1
- package/sdk.gen.d.ts +63 -49
- package/sdk.gen.js +100 -106
- package/sdk.gen.ts +98 -104
- package/types.gen.d.ts +124 -163
- package/types.gen.ts +135 -181
package/sdk/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, 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, UpdateUserData, UpdateUserResponses, UpdateUserErrors, UpdateUserPasswordData, UpdateUserPasswordResponses, UpdateUserPasswordErrors, ListUserApiKeysData, ListUserApiKeysResponses, CreateUserApiKeyData, CreateUserApiKeyResponses, CreateUserApiKeyErrors, RevokeUserApiKeyData, RevokeUserApiKeyResponses, RevokeUserApiKeyErrors, UpdateUserApiKeyData, UpdateUserApiKeyResponses, UpdateUserApiKeyErrors, ListUserOrgsData, ListUserOrgsResponses, CreateOrgData, CreateOrgResponses, CreateOrgErrors, GetOrgData, GetOrgResponses, GetOrgErrors, UpdateOrgData, UpdateOrgResponses, UpdateOrgErrors, ListOrgGraphsData, ListOrgGraphsResponses, ListOrgGraphsErrors, ListOrgMembersData, ListOrgMembersResponses, ListOrgMembersErrors, InviteOrgMemberData, InviteOrgMemberResponses, InviteOrgMemberErrors, RemoveOrgMemberData, RemoveOrgMemberResponses, RemoveOrgMemberErrors, UpdateOrgMemberRoleData, UpdateOrgMemberRoleResponses, UpdateOrgMemberRoleErrors, GetOrgLimitsData, GetOrgLimitsResponses, GetOrgLimitsErrors, GetOrgUsageData, GetOrgUsageResponses, GetOrgUsageErrors, ListConnectionsData, ListConnectionsResponses, ListConnectionsErrors, CreateConnectionData, CreateConnectionResponses, CreateConnectionErrors, GetConnectionOptionsData, GetConnectionOptionsResponses, GetConnectionOptionsErrors, ExchangeLinkTokenData, ExchangeLinkTokenResponses, ExchangeLinkTokenErrors, CreateLinkTokenData, CreateLinkTokenResponses, CreateLinkTokenErrors, InitOAuthData, InitOAuthResponses, InitOAuthErrors, OauthCallbackData, OauthCallbackResponses, OauthCallbackErrors, DeleteConnectionData, DeleteConnectionResponses, DeleteConnectionErrors, GetConnectionData, GetConnectionResponses, GetConnectionErrors, SyncConnectionData, SyncConnectionResponses, SyncConnectionErrors,
|
|
4
|
+
import type { RegisterUserData, RegisterUserResponses, RegisterUserErrors, LoginUserData, LoginUserResponses, LoginUserErrors, LogoutUserData, LogoutUserResponses, 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, UpdateUserData, UpdateUserResponses, UpdateUserErrors, UpdateUserPasswordData, UpdateUserPasswordResponses, UpdateUserPasswordErrors, ListUserApiKeysData, ListUserApiKeysResponses, CreateUserApiKeyData, CreateUserApiKeyResponses, CreateUserApiKeyErrors, RevokeUserApiKeyData, RevokeUserApiKeyResponses, RevokeUserApiKeyErrors, UpdateUserApiKeyData, UpdateUserApiKeyResponses, UpdateUserApiKeyErrors, ListUserOrgsData, ListUserOrgsResponses, CreateOrgData, CreateOrgResponses, CreateOrgErrors, GetOrgData, GetOrgResponses, GetOrgErrors, UpdateOrgData, UpdateOrgResponses, UpdateOrgErrors, ListOrgGraphsData, ListOrgGraphsResponses, ListOrgGraphsErrors, ListOrgMembersData, ListOrgMembersResponses, ListOrgMembersErrors, InviteOrgMemberData, InviteOrgMemberResponses, InviteOrgMemberErrors, RemoveOrgMemberData, RemoveOrgMemberResponses, RemoveOrgMemberErrors, UpdateOrgMemberRoleData, UpdateOrgMemberRoleResponses, UpdateOrgMemberRoleErrors, GetOrgLimitsData, GetOrgLimitsResponses, GetOrgLimitsErrors, GetOrgUsageData, GetOrgUsageResponses, GetOrgUsageErrors, ListConnectionsData, ListConnectionsResponses, ListConnectionsErrors, CreateConnectionData, CreateConnectionResponses, CreateConnectionErrors, GetConnectionOptionsData, GetConnectionOptionsResponses, GetConnectionOptionsErrors, ExchangeLinkTokenData, ExchangeLinkTokenResponses, ExchangeLinkTokenErrors, CreateLinkTokenData, CreateLinkTokenResponses, CreateLinkTokenErrors, InitOAuthData, InitOAuthResponses, InitOAuthErrors, OauthCallbackData, OauthCallbackResponses, OauthCallbackErrors, DeleteConnectionData, DeleteConnectionResponses, DeleteConnectionErrors, GetConnectionData, GetConnectionResponses, GetConnectionErrors, SyncConnectionData, SyncConnectionResponses, SyncConnectionErrors, ListAgentsData, ListAgentsResponses, ListAgentsErrors, AutoSelectAgentData, AutoSelectAgentResponses, AutoSelectAgentErrors, GetAgentMetadataData, GetAgentMetadataResponses, GetAgentMetadataErrors, ExecuteSpecificAgentData, ExecuteSpecificAgentResponses, ExecuteSpecificAgentErrors, BatchProcessQueriesData, BatchProcessQueriesResponses, BatchProcessQueriesErrors, RecommendAgentData, RecommendAgentResponses, RecommendAgentErrors, ListMcpToolsData, ListMcpToolsResponses, ListMcpToolsErrors, CallMcpToolData, CallMcpToolResponses, CallMcpToolErrors, ListBackupsData, ListBackupsResponses, ListBackupsErrors, CreateBackupData, CreateBackupResponses, CreateBackupErrors, GetBackupDownloadUrlData, GetBackupDownloadUrlResponses, GetBackupDownloadUrlErrors, RestoreBackupData, RestoreBackupResponses, RestoreBackupErrors, GetBackupStatsData, GetBackupStatsResponses, GetBackupStatsErrors, GetGraphMetricsData, GetGraphMetricsResponses, GetGraphMetricsErrors, GetGraphUsageAnalyticsData, GetGraphUsageAnalyticsResponses, GetGraphUsageAnalyticsErrors, ExecuteCypherQueryData, ExecuteCypherQueryResponses, ExecuteCypherQueryErrors, GetGraphSchemaData, GetGraphSchemaResponses, GetGraphSchemaErrors, ExportGraphSchemaData, ExportGraphSchemaResponses, ExportGraphSchemaErrors, ValidateSchemaData, ValidateSchemaResponses, ValidateSchemaErrors, 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, GetGraphSubscriptionData, GetGraphSubscriptionResponses, GetGraphSubscriptionErrors, CreateRepositorySubscriptionData, CreateRepositorySubscriptionResponses, CreateRepositorySubscriptionErrors, UpgradeSubscriptionData, UpgradeSubscriptionResponses, UpgradeSubscriptionErrors, ListTablesData, ListTablesResponses, ListTablesErrors, ListTableFilesData, ListTableFilesResponses, ListTableFilesErrors, GetUploadUrlData, GetUploadUrlResponses, GetUploadUrlErrors, DeleteFileData, DeleteFileResponses, DeleteFileErrors, GetFileInfoData, GetFileInfoResponses, GetFileInfoErrors, UpdateFileStatusData, UpdateFileStatusResponses, UpdateFileStatusErrors, IngestTablesData, IngestTablesResponses, IngestTablesErrors, QueryTablesData, QueryTablesResponses, QueryTablesErrors, GetGraphsData, GetGraphsResponses, GetGraphsErrors, CreateGraphData, CreateGraphResponses, CreateGraphErrors, GetAvailableExtensionsData, GetAvailableExtensionsResponses, GetAvailableExtensionsErrors, GetAvailableGraphTiersData, GetAvailableGraphTiersResponses, GetAvailableGraphTiersErrors, SelectGraphData, SelectGraphResponses, SelectGraphErrors, GetServiceOfferingsData, GetServiceOfferingsResponses, GetServiceOfferingsErrors, StreamOperationEventsData, StreamOperationEventsResponses, StreamOperationEventsErrors, GetOperationStatusData, GetOperationStatusResponses, GetOperationStatusErrors, CancelOperationData, CancelOperationResponses, CancelOperationErrors, GetOrgBillingCustomerData, GetOrgBillingCustomerResponses, GetOrgBillingCustomerErrors, CreatePortalSessionData, CreatePortalSessionResponses, CreatePortalSessionErrors, ListOrgSubscriptionsData, ListOrgSubscriptionsResponses, ListOrgSubscriptionsErrors, GetOrgSubscriptionData, GetOrgSubscriptionResponses, GetOrgSubscriptionErrors, CancelOrgSubscriptionData, CancelOrgSubscriptionResponses, CancelOrgSubscriptionErrors, ListOrgInvoicesData, ListOrgInvoicesResponses, ListOrgInvoicesErrors, GetOrgUpcomingInvoiceData, GetOrgUpcomingInvoiceResponses, GetOrgUpcomingInvoiceErrors, CreateCheckoutSessionData, CreateCheckoutSessionResponses, CreateCheckoutSessionErrors, GetCheckoutStatusData, GetCheckoutStatusResponses, GetCheckoutStatusErrors } 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> & {
|
|
@@ -1035,9 +1035,38 @@ export const syncConnection = <ThrowOnError extends boolean = false>(options: Op
|
|
|
1035
1035
|
});
|
|
1036
1036
|
};
|
|
1037
1037
|
|
|
1038
|
+
/**
|
|
1039
|
+
* List available agents
|
|
1040
|
+
* Get a comprehensive list of all available agents with their metadata.
|
|
1041
|
+
*
|
|
1042
|
+
* **Returns:**
|
|
1043
|
+
* - Agent types and names
|
|
1044
|
+
* - Capabilities and supported modes
|
|
1045
|
+
* - Version information
|
|
1046
|
+
* - Credit requirements
|
|
1047
|
+
*
|
|
1048
|
+
* Use the optional `capability` filter to find agents with specific capabilities.
|
|
1049
|
+
*/
|
|
1050
|
+
export const listAgents = <ThrowOnError extends boolean = false>(options: Options<ListAgentsData, ThrowOnError>) => {
|
|
1051
|
+
return (options.client ?? _heyApiClient).get<ListAgentsResponses, ListAgentsErrors, ThrowOnError>({
|
|
1052
|
+
security: [
|
|
1053
|
+
{
|
|
1054
|
+
name: 'X-API-Key',
|
|
1055
|
+
type: 'apiKey'
|
|
1056
|
+
},
|
|
1057
|
+
{
|
|
1058
|
+
scheme: 'bearer',
|
|
1059
|
+
type: 'http'
|
|
1060
|
+
}
|
|
1061
|
+
],
|
|
1062
|
+
url: '/v1/graphs/{graph_id}/agent',
|
|
1063
|
+
...options
|
|
1064
|
+
});
|
|
1065
|
+
};
|
|
1066
|
+
|
|
1038
1067
|
/**
|
|
1039
1068
|
* Auto-select agent for query
|
|
1040
|
-
* Automatically select the best agent for your query.
|
|
1069
|
+
* Automatically select the best agent for your query with intelligent execution strategy.
|
|
1041
1070
|
*
|
|
1042
1071
|
* **Agent Selection Process:**
|
|
1043
1072
|
*
|
|
@@ -1046,7 +1075,8 @@ export const syncConnection = <ThrowOnError extends boolean = false>(options: Op
|
|
|
1046
1075
|
* 2. Enriching context with RAG if enabled
|
|
1047
1076
|
* 3. Evaluating all available agents against selection criteria
|
|
1048
1077
|
* 4. Selecting the best match based on confidence scores
|
|
1049
|
-
* 5.
|
|
1078
|
+
* 5. Choosing execution strategy (sync/SSE/async) based on expected time
|
|
1079
|
+
* 6. Executing the query with the selected agent
|
|
1050
1080
|
*
|
|
1051
1081
|
* **Available Agent Types:**
|
|
1052
1082
|
* - `financial`: Financial analysis, SEC filings, company metrics
|
|
@@ -1059,6 +1089,14 @@ export const syncConnection = <ThrowOnError extends boolean = false>(options: Op
|
|
|
1059
1089
|
* - `extended`: Comprehensive analysis (~15-60s), deep research
|
|
1060
1090
|
* - `streaming`: Real-time response streaming
|
|
1061
1091
|
*
|
|
1092
|
+
* **Execution Strategies (automatic):**
|
|
1093
|
+
* - Fast operations (<5s): Immediate synchronous response
|
|
1094
|
+
* - Medium operations (5-30s): SSE streaming with progress updates
|
|
1095
|
+
* - Long operations (>30s): Async Celery worker with operation tracking
|
|
1096
|
+
*
|
|
1097
|
+
* **Response Mode Override:**
|
|
1098
|
+
* Use query parameter `?mode=sync|async` to override automatic strategy selection.
|
|
1099
|
+
*
|
|
1062
1100
|
* **Confidence Score Interpretation:**
|
|
1063
1101
|
* - `0.9-1.0`: High confidence, agent is ideal match
|
|
1064
1102
|
* - `0.7-0.9`: Good confidence, agent is suitable
|
|
@@ -1101,15 +1139,54 @@ export const autoSelectAgent = <ThrowOnError extends boolean = false>(options: O
|
|
|
1101
1139
|
});
|
|
1102
1140
|
};
|
|
1103
1141
|
|
|
1142
|
+
/**
|
|
1143
|
+
* Get agent metadata
|
|
1144
|
+
* Get comprehensive metadata for a specific agent type.
|
|
1145
|
+
*
|
|
1146
|
+
* **Returns:**
|
|
1147
|
+
* - Agent name and description
|
|
1148
|
+
* - Version information
|
|
1149
|
+
* - Supported capabilities and modes
|
|
1150
|
+
* - Credit requirements
|
|
1151
|
+
* - Author and tags
|
|
1152
|
+
* - Configuration options
|
|
1153
|
+
*
|
|
1154
|
+
* Use this to understand agent capabilities before execution.
|
|
1155
|
+
*/
|
|
1156
|
+
export const getAgentMetadata = <ThrowOnError extends boolean = false>(options: Options<GetAgentMetadataData, ThrowOnError>) => {
|
|
1157
|
+
return (options.client ?? _heyApiClient).get<GetAgentMetadataResponses, GetAgentMetadataErrors, ThrowOnError>({
|
|
1158
|
+
security: [
|
|
1159
|
+
{
|
|
1160
|
+
name: 'X-API-Key',
|
|
1161
|
+
type: 'apiKey'
|
|
1162
|
+
},
|
|
1163
|
+
{
|
|
1164
|
+
scheme: 'bearer',
|
|
1165
|
+
type: 'http'
|
|
1166
|
+
}
|
|
1167
|
+
],
|
|
1168
|
+
url: '/v1/graphs/{graph_id}/agent/{agent_type}',
|
|
1169
|
+
...options
|
|
1170
|
+
});
|
|
1171
|
+
};
|
|
1172
|
+
|
|
1104
1173
|
/**
|
|
1105
1174
|
* Execute specific agent
|
|
1106
|
-
* Execute a specific agent type directly.
|
|
1175
|
+
* Execute a specific agent type directly with intelligent execution strategy.
|
|
1107
1176
|
*
|
|
1108
1177
|
* Available agents:
|
|
1109
1178
|
* - **financial**: Financial analysis, SEC filings, accounting data
|
|
1110
1179
|
* - **research**: Deep research and comprehensive analysis
|
|
1111
1180
|
* - **rag**: Fast retrieval without AI (no credits required)
|
|
1112
1181
|
*
|
|
1182
|
+
* **Execution Strategies (automatic):**
|
|
1183
|
+
* - Fast operations (<5s): Immediate synchronous response
|
|
1184
|
+
* - Medium operations (5-30s): SSE streaming with progress updates
|
|
1185
|
+
* - Long operations (>30s): Async Celery worker with operation tracking
|
|
1186
|
+
*
|
|
1187
|
+
* **Response Mode Override:**
|
|
1188
|
+
* Use query parameter `?mode=sync|async` to override automatic strategy selection.
|
|
1189
|
+
*
|
|
1113
1190
|
* Use this endpoint when you know which agent you want to use.
|
|
1114
1191
|
*/
|
|
1115
1192
|
export const executeSpecificAgent = <ThrowOnError extends boolean = false>(options: Options<ExecuteSpecificAgentData, ThrowOnError>) => {
|
|
@@ -1171,66 +1248,6 @@ export const batchProcessQueries = <ThrowOnError extends boolean = false>(option
|
|
|
1171
1248
|
});
|
|
1172
1249
|
};
|
|
1173
1250
|
|
|
1174
|
-
/**
|
|
1175
|
-
* List available agents
|
|
1176
|
-
* Get a comprehensive list of all available agents with their metadata.
|
|
1177
|
-
*
|
|
1178
|
-
* **Returns:**
|
|
1179
|
-
* - Agent types and names
|
|
1180
|
-
* - Capabilities and supported modes
|
|
1181
|
-
* - Version information
|
|
1182
|
-
* - Credit requirements
|
|
1183
|
-
*
|
|
1184
|
-
* Use the optional `capability` filter to find agents with specific capabilities.
|
|
1185
|
-
*/
|
|
1186
|
-
export const listAgents = <ThrowOnError extends boolean = false>(options: Options<ListAgentsData, ThrowOnError>) => {
|
|
1187
|
-
return (options.client ?? _heyApiClient).get<ListAgentsResponses, ListAgentsErrors, ThrowOnError>({
|
|
1188
|
-
security: [
|
|
1189
|
-
{
|
|
1190
|
-
name: 'X-API-Key',
|
|
1191
|
-
type: 'apiKey'
|
|
1192
|
-
},
|
|
1193
|
-
{
|
|
1194
|
-
scheme: 'bearer',
|
|
1195
|
-
type: 'http'
|
|
1196
|
-
}
|
|
1197
|
-
],
|
|
1198
|
-
url: '/v1/graphs/{graph_id}/agent/list',
|
|
1199
|
-
...options
|
|
1200
|
-
});
|
|
1201
|
-
};
|
|
1202
|
-
|
|
1203
|
-
/**
|
|
1204
|
-
* Get agent metadata
|
|
1205
|
-
* Get comprehensive metadata for a specific agent type.
|
|
1206
|
-
*
|
|
1207
|
-
* **Returns:**
|
|
1208
|
-
* - Agent name and description
|
|
1209
|
-
* - Version information
|
|
1210
|
-
* - Supported capabilities and modes
|
|
1211
|
-
* - Credit requirements
|
|
1212
|
-
* - Author and tags
|
|
1213
|
-
* - Configuration options
|
|
1214
|
-
*
|
|
1215
|
-
* Use this to understand agent capabilities before execution.
|
|
1216
|
-
*/
|
|
1217
|
-
export const getAgentMetadata = <ThrowOnError extends boolean = false>(options: Options<GetAgentMetadataData, ThrowOnError>) => {
|
|
1218
|
-
return (options.client ?? _heyApiClient).get<GetAgentMetadataResponses, GetAgentMetadataErrors, ThrowOnError>({
|
|
1219
|
-
security: [
|
|
1220
|
-
{
|
|
1221
|
-
name: 'X-API-Key',
|
|
1222
|
-
type: 'apiKey'
|
|
1223
|
-
},
|
|
1224
|
-
{
|
|
1225
|
-
scheme: 'bearer',
|
|
1226
|
-
type: 'http'
|
|
1227
|
-
}
|
|
1228
|
-
],
|
|
1229
|
-
url: '/v1/graphs/{graph_id}/agent/{agent_type}/metadata',
|
|
1230
|
-
...options
|
|
1231
|
-
});
|
|
1232
|
-
};
|
|
1233
|
-
|
|
1234
1251
|
/**
|
|
1235
1252
|
* Get agent recommendations
|
|
1236
1253
|
* Get intelligent agent recommendations for a specific query.
|
|
@@ -2239,7 +2256,7 @@ export const listSubgraphs = <ThrowOnError extends boolean = false>(options: Opt
|
|
|
2239
2256
|
* - Valid authentication
|
|
2240
2257
|
* - Parent graph must exist and be accessible to the user
|
|
2241
2258
|
* - User must have 'admin' permission on the parent graph
|
|
2242
|
-
* - Parent graph tier must support subgraphs (
|
|
2259
|
+
* - Parent graph tier must support subgraphs (Kuzu Large/XLarge or Neo4j Enterprise XLarge)
|
|
2243
2260
|
* - Must be within subgraph quota limits
|
|
2244
2261
|
* - Subgraph name must be unique within the parent graph
|
|
2245
2262
|
*
|
|
@@ -2285,8 +2302,8 @@ export const createSubgraph = <ThrowOnError extends boolean = false>(options: Op
|
|
|
2285
2302
|
* All data in the subgraph will be lost.
|
|
2286
2303
|
*
|
|
2287
2304
|
* **Backup Location:**
|
|
2288
|
-
* If backup requested, stored in S3 at:
|
|
2289
|
-
* `s3://
|
|
2305
|
+
* If backup requested, stored in S3 Kuzu database bucket at:
|
|
2306
|
+
* `s3://{kuzu_s3_bucket}/{instance_id}/{database_name}_{timestamp}.backup`
|
|
2290
2307
|
*/
|
|
2291
2308
|
export const deleteSubgraph = <ThrowOnError extends boolean = false>(options: Options<DeleteSubgraphData, ThrowOnError>) => {
|
|
2292
2309
|
return (options.client ?? _heyApiClient).delete<DeleteSubgraphResponses, DeleteSubgraphErrors, ThrowOnError>({
|
|
@@ -2385,32 +2402,6 @@ export const getSubgraphQuota = <ThrowOnError extends boolean = false>(options:
|
|
|
2385
2402
|
});
|
|
2386
2403
|
};
|
|
2387
2404
|
|
|
2388
|
-
/**
|
|
2389
|
-
* Cancel Subscription
|
|
2390
|
-
* Cancel a subscription.
|
|
2391
|
-
*
|
|
2392
|
-
* For shared repositories: Cancels the user's personal subscription
|
|
2393
|
-
* For user graphs: Not allowed - delete the graph instead
|
|
2394
|
-
*
|
|
2395
|
-
* The subscription will be marked as canceled and will end at the current period end date.
|
|
2396
|
-
*/
|
|
2397
|
-
export const cancelSubscription = <ThrowOnError extends boolean = false>(options: Options<CancelSubscriptionData, ThrowOnError>) => {
|
|
2398
|
-
return (options.client ?? _heyApiClient).delete<CancelSubscriptionResponses, CancelSubscriptionErrors, ThrowOnError>({
|
|
2399
|
-
security: [
|
|
2400
|
-
{
|
|
2401
|
-
name: 'X-API-Key',
|
|
2402
|
-
type: 'apiKey'
|
|
2403
|
-
},
|
|
2404
|
-
{
|
|
2405
|
-
scheme: 'bearer',
|
|
2406
|
-
type: 'http'
|
|
2407
|
-
}
|
|
2408
|
-
],
|
|
2409
|
-
url: '/v1/graphs/{graph_id}/subscriptions',
|
|
2410
|
-
...options
|
|
2411
|
-
});
|
|
2412
|
-
};
|
|
2413
|
-
|
|
2414
2405
|
/**
|
|
2415
2406
|
* Get Subscription
|
|
2416
2407
|
* Get subscription details for a graph or shared repository.
|
|
@@ -3443,16 +3434,23 @@ export const getOrgBillingCustomer = <ThrowOnError extends boolean = false>(opti
|
|
|
3443
3434
|
};
|
|
3444
3435
|
|
|
3445
3436
|
/**
|
|
3446
|
-
*
|
|
3447
|
-
*
|
|
3437
|
+
* Create Customer Portal Session
|
|
3438
|
+
* Create a Stripe Customer Portal session for managing payment methods.
|
|
3439
|
+
*
|
|
3440
|
+
* The portal allows users to:
|
|
3441
|
+
* - Add new payment methods
|
|
3442
|
+
* - Remove existing payment methods
|
|
3443
|
+
* - Update default payment method
|
|
3444
|
+
* - View billing history
|
|
3448
3445
|
*
|
|
3449
|
-
*
|
|
3446
|
+
* The user will be redirected to Stripe's hosted portal page and returned to the billing page when done.
|
|
3450
3447
|
*
|
|
3451
3448
|
* **Requirements:**
|
|
3452
3449
|
* - User must be an OWNER of the organization
|
|
3450
|
+
* - Organization must have a Stripe customer ID (i.e., has gone through checkout at least once)
|
|
3453
3451
|
*/
|
|
3454
|
-
export const
|
|
3455
|
-
return (options.client ?? _heyApiClient).post<
|
|
3452
|
+
export const createPortalSession = <ThrowOnError extends boolean = false>(options: Options<CreatePortalSessionData, ThrowOnError>) => {
|
|
3453
|
+
return (options.client ?? _heyApiClient).post<CreatePortalSessionResponses, CreatePortalSessionErrors, ThrowOnError>({
|
|
3456
3454
|
security: [
|
|
3457
3455
|
{
|
|
3458
3456
|
name: 'X-API-Key',
|
|
@@ -3463,12 +3461,8 @@ export const updateOrgPaymentMethod = <ThrowOnError extends boolean = false>(opt
|
|
|
3463
3461
|
type: 'http'
|
|
3464
3462
|
}
|
|
3465
3463
|
],
|
|
3466
|
-
url: '/v1/billing/customer/{org_id}/
|
|
3467
|
-
...options
|
|
3468
|
-
headers: {
|
|
3469
|
-
'Content-Type': 'application/json',
|
|
3470
|
-
...options.headers
|
|
3471
|
-
}
|
|
3464
|
+
url: '/v1/billing/customer/{org_id}/portal',
|
|
3465
|
+
...options
|
|
3472
3466
|
});
|
|
3473
3467
|
};
|
|
3474
3468
|
|