@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/sdk.gen.js CHANGED
@@ -1,9 +1,9 @@
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.getAgentMetadata = exports.listAgents = exports.batchProcessQueries = exports.executeSpecificAgent = exports.autoSelectAgent = exports.syncConnection = exports.getConnection = exports.deleteConnection = exports.oauthCallback = exports.initOAuth = exports.createLinkToken = exports.exchangeLinkToken = exports.getConnectionOptions = exports.createConnection = exports.listConnections = exports.getOrgUsage = exports.getOrgLimits = exports.updateOrgMemberRole = exports.removeOrgMember = exports.inviteOrgMember = exports.listOrgMembers = exports.listOrgGraphs = exports.updateOrg = exports.getOrg = exports.createOrg = exports.listUserOrgs = exports.updateUserApiKey = exports.revokeUserApiKey = exports.createUserApiKey = exports.listUserApiKeys = exports.updateUserPassword = 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.updateOrgPaymentMethod = exports.getOrgBillingCustomer = exports.cancelOperation = exports.getOperationStatus = exports.streamOperationEvents = exports.getServiceOfferings = exports.selectGraph = exports.getAvailableGraphTiers = exports.getAvailableExtensions = exports.createGraph = exports.getGraphs = exports.queryTables = exports.ingestTables = exports.updateFileStatus = exports.getFileInfo = exports.deleteFile = exports.getUploadUrl = exports.listTableFiles = exports.listTables = exports.upgradeSubscription = exports.createRepositorySubscription = exports.getGraphSubscription = exports.cancelSubscription = 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.validateSchema = exports.exportGraphSchema = exports.getGraphSchema = exports.executeCypherQuery = exports.getGraphUsageAnalytics = exports.getGraphMetrics = exports.getBackupStats = exports.restoreBackup = exports.getBackupDownloadUrl = exports.createBackup = exports.listBackups = exports.callMcpTool = exports.listMcpTools = exports.recommendAgent = void 0;
6
- exports.getCheckoutStatus = exports.createCheckoutSession = exports.getOrgUpcomingInvoice = exports.listOrgInvoices = exports.cancelOrgSubscription = exports.getOrgSubscription = exports.listOrgSubscriptions = void 0;
4
+ exports.batchProcessQueries = exports.executeSpecificAgent = exports.getAgentMetadata = exports.autoSelectAgent = exports.listAgents = exports.syncConnection = exports.getConnection = exports.deleteConnection = exports.oauthCallback = exports.initOAuth = exports.createLinkToken = exports.exchangeLinkToken = exports.getConnectionOptions = exports.createConnection = exports.listConnections = exports.getOrgUsage = exports.getOrgLimits = exports.updateOrgMemberRole = exports.removeOrgMember = exports.inviteOrgMember = exports.listOrgMembers = exports.listOrgGraphs = exports.updateOrg = exports.getOrg = exports.createOrg = exports.listUserOrgs = exports.updateUserApiKey = exports.revokeUserApiKey = exports.createUserApiKey = exports.listUserApiKeys = exports.updateUserPassword = 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.listOrgSubscriptions = exports.createPortalSession = exports.getOrgBillingCustomer = exports.cancelOperation = exports.getOperationStatus = exports.streamOperationEvents = exports.getServiceOfferings = exports.selectGraph = exports.getAvailableGraphTiers = exports.getAvailableExtensions = exports.createGraph = exports.getGraphs = exports.queryTables = exports.ingestTables = exports.updateFileStatus = exports.getFileInfo = exports.deleteFile = exports.getUploadUrl = exports.listTableFiles = exports.listTables = exports.upgradeSubscription = exports.createRepositorySubscription = exports.getGraphSubscription = 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.validateSchema = exports.exportGraphSchema = exports.getGraphSchema = exports.executeCypherQuery = exports.getGraphUsageAnalytics = exports.getGraphMetrics = exports.getBackupStats = exports.restoreBackup = exports.getBackupDownloadUrl = exports.createBackup = exports.listBackups = exports.callMcpTool = exports.listMcpTools = exports.recommendAgent = void 0;
6
+ exports.getCheckoutStatus = exports.createCheckoutSession = exports.getOrgUpcomingInvoice = exports.listOrgInvoices = exports.cancelOrgSubscription = exports.getOrgSubscription = void 0;
7
7
  const client_gen_1 = require("./client.gen");
8
8
  /**
9
9
  * Register New User
@@ -1022,9 +1022,38 @@ const syncConnection = (options) => {
1022
1022
  });
1023
1023
  };
1024
1024
  exports.syncConnection = syncConnection;
1025
+ /**
1026
+ * List available agents
1027
+ * Get a comprehensive list of all available agents with their metadata.
1028
+ *
1029
+ * **Returns:**
1030
+ * - Agent types and names
1031
+ * - Capabilities and supported modes
1032
+ * - Version information
1033
+ * - Credit requirements
1034
+ *
1035
+ * Use the optional `capability` filter to find agents with specific capabilities.
1036
+ */
1037
+ const listAgents = (options) => {
1038
+ return (options.client ?? client_gen_1.client).get({
1039
+ security: [
1040
+ {
1041
+ name: 'X-API-Key',
1042
+ type: 'apiKey'
1043
+ },
1044
+ {
1045
+ scheme: 'bearer',
1046
+ type: 'http'
1047
+ }
1048
+ ],
1049
+ url: '/v1/graphs/{graph_id}/agent',
1050
+ ...options
1051
+ });
1052
+ };
1053
+ exports.listAgents = listAgents;
1025
1054
  /**
1026
1055
  * Auto-select agent for query
1027
- * Automatically select the best agent for your query.
1056
+ * Automatically select the best agent for your query with intelligent execution strategy.
1028
1057
  *
1029
1058
  * **Agent Selection Process:**
1030
1059
  *
@@ -1033,7 +1062,8 @@ exports.syncConnection = syncConnection;
1033
1062
  * 2. Enriching context with RAG if enabled
1034
1063
  * 3. Evaluating all available agents against selection criteria
1035
1064
  * 4. Selecting the best match based on confidence scores
1036
- * 5. Executing the query with the selected agent
1065
+ * 5. Choosing execution strategy (sync/SSE/async) based on expected time
1066
+ * 6. Executing the query with the selected agent
1037
1067
  *
1038
1068
  * **Available Agent Types:**
1039
1069
  * - `financial`: Financial analysis, SEC filings, company metrics
@@ -1046,6 +1076,14 @@ exports.syncConnection = syncConnection;
1046
1076
  * - `extended`: Comprehensive analysis (~15-60s), deep research
1047
1077
  * - `streaming`: Real-time response streaming
1048
1078
  *
1079
+ * **Execution Strategies (automatic):**
1080
+ * - Fast operations (<5s): Immediate synchronous response
1081
+ * - Medium operations (5-30s): SSE streaming with progress updates
1082
+ * - Long operations (>30s): Async Celery worker with operation tracking
1083
+ *
1084
+ * **Response Mode Override:**
1085
+ * Use query parameter `?mode=sync|async` to override automatic strategy selection.
1086
+ *
1049
1087
  * **Confidence Score Interpretation:**
1050
1088
  * - `0.9-1.0`: High confidence, agent is ideal match
1051
1089
  * - `0.7-0.9`: Good confidence, agent is suitable
@@ -1088,15 +1126,54 @@ const autoSelectAgent = (options) => {
1088
1126
  });
1089
1127
  };
1090
1128
  exports.autoSelectAgent = autoSelectAgent;
1129
+ /**
1130
+ * Get agent metadata
1131
+ * Get comprehensive metadata for a specific agent type.
1132
+ *
1133
+ * **Returns:**
1134
+ * - Agent name and description
1135
+ * - Version information
1136
+ * - Supported capabilities and modes
1137
+ * - Credit requirements
1138
+ * - Author and tags
1139
+ * - Configuration options
1140
+ *
1141
+ * Use this to understand agent capabilities before execution.
1142
+ */
1143
+ const getAgentMetadata = (options) => {
1144
+ return (options.client ?? client_gen_1.client).get({
1145
+ security: [
1146
+ {
1147
+ name: 'X-API-Key',
1148
+ type: 'apiKey'
1149
+ },
1150
+ {
1151
+ scheme: 'bearer',
1152
+ type: 'http'
1153
+ }
1154
+ ],
1155
+ url: '/v1/graphs/{graph_id}/agent/{agent_type}',
1156
+ ...options
1157
+ });
1158
+ };
1159
+ exports.getAgentMetadata = getAgentMetadata;
1091
1160
  /**
1092
1161
  * Execute specific agent
1093
- * Execute a specific agent type directly.
1162
+ * Execute a specific agent type directly with intelligent execution strategy.
1094
1163
  *
1095
1164
  * Available agents:
1096
1165
  * - **financial**: Financial analysis, SEC filings, accounting data
1097
1166
  * - **research**: Deep research and comprehensive analysis
1098
1167
  * - **rag**: Fast retrieval without AI (no credits required)
1099
1168
  *
1169
+ * **Execution Strategies (automatic):**
1170
+ * - Fast operations (<5s): Immediate synchronous response
1171
+ * - Medium operations (5-30s): SSE streaming with progress updates
1172
+ * - Long operations (>30s): Async Celery worker with operation tracking
1173
+ *
1174
+ * **Response Mode Override:**
1175
+ * Use query parameter `?mode=sync|async` to override automatic strategy selection.
1176
+ *
1100
1177
  * Use this endpoint when you know which agent you want to use.
1101
1178
  */
1102
1179
  const executeSpecificAgent = (options) => {
@@ -1158,66 +1235,6 @@ const batchProcessQueries = (options) => {
1158
1235
  });
1159
1236
  };
1160
1237
  exports.batchProcessQueries = batchProcessQueries;
1161
- /**
1162
- * List available agents
1163
- * Get a comprehensive list of all available agents with their metadata.
1164
- *
1165
- * **Returns:**
1166
- * - Agent types and names
1167
- * - Capabilities and supported modes
1168
- * - Version information
1169
- * - Credit requirements
1170
- *
1171
- * Use the optional `capability` filter to find agents with specific capabilities.
1172
- */
1173
- const listAgents = (options) => {
1174
- return (options.client ?? client_gen_1.client).get({
1175
- security: [
1176
- {
1177
- name: 'X-API-Key',
1178
- type: 'apiKey'
1179
- },
1180
- {
1181
- scheme: 'bearer',
1182
- type: 'http'
1183
- }
1184
- ],
1185
- url: '/v1/graphs/{graph_id}/agent/list',
1186
- ...options
1187
- });
1188
- };
1189
- exports.listAgents = listAgents;
1190
- /**
1191
- * Get agent metadata
1192
- * Get comprehensive metadata for a specific agent type.
1193
- *
1194
- * **Returns:**
1195
- * - Agent name and description
1196
- * - Version information
1197
- * - Supported capabilities and modes
1198
- * - Credit requirements
1199
- * - Author and tags
1200
- * - Configuration options
1201
- *
1202
- * Use this to understand agent capabilities before execution.
1203
- */
1204
- const getAgentMetadata = (options) => {
1205
- return (options.client ?? client_gen_1.client).get({
1206
- security: [
1207
- {
1208
- name: 'X-API-Key',
1209
- type: 'apiKey'
1210
- },
1211
- {
1212
- scheme: 'bearer',
1213
- type: 'http'
1214
- }
1215
- ],
1216
- url: '/v1/graphs/{graph_id}/agent/{agent_type}/metadata',
1217
- ...options
1218
- });
1219
- };
1220
- exports.getAgentMetadata = getAgentMetadata;
1221
1238
  /**
1222
1239
  * Get agent recommendations
1223
1240
  * Get intelligent agent recommendations for a specific query.
@@ -2226,7 +2243,7 @@ exports.listSubgraphs = listSubgraphs;
2226
2243
  * - Valid authentication
2227
2244
  * - Parent graph must exist and be accessible to the user
2228
2245
  * - User must have 'admin' permission on the parent graph
2229
- * - Parent graph tier must support subgraphs (Enterprise or Premium only)
2246
+ * - Parent graph tier must support subgraphs (Kuzu Large/XLarge or Neo4j Enterprise XLarge)
2230
2247
  * - Must be within subgraph quota limits
2231
2248
  * - Subgraph name must be unique within the parent graph
2232
2249
  *
@@ -2272,8 +2289,8 @@ exports.createSubgraph = createSubgraph;
2272
2289
  * All data in the subgraph will be lost.
2273
2290
  *
2274
2291
  * **Backup Location:**
2275
- * If backup requested, stored in S3 at:
2276
- * `s3://robosystems-backups/{instance_id}/{database_name}_{timestamp}.backup`
2292
+ * If backup requested, stored in S3 Kuzu database bucket at:
2293
+ * `s3://{kuzu_s3_bucket}/{instance_id}/{database_name}_{timestamp}.backup`
2277
2294
  */
2278
2295
  const deleteSubgraph = (options) => {
2279
2296
  return (options.client ?? client_gen_1.client).delete({
@@ -2372,32 +2389,6 @@ const getSubgraphQuota = (options) => {
2372
2389
  });
2373
2390
  };
2374
2391
  exports.getSubgraphQuota = getSubgraphQuota;
2375
- /**
2376
- * Cancel Subscription
2377
- * Cancel a subscription.
2378
- *
2379
- * For shared repositories: Cancels the user's personal subscription
2380
- * For user graphs: Not allowed - delete the graph instead
2381
- *
2382
- * The subscription will be marked as canceled and will end at the current period end date.
2383
- */
2384
- const cancelSubscription = (options) => {
2385
- return (options.client ?? client_gen_1.client).delete({
2386
- security: [
2387
- {
2388
- name: 'X-API-Key',
2389
- type: 'apiKey'
2390
- },
2391
- {
2392
- scheme: 'bearer',
2393
- type: 'http'
2394
- }
2395
- ],
2396
- url: '/v1/graphs/{graph_id}/subscriptions',
2397
- ...options
2398
- });
2399
- };
2400
- exports.cancelSubscription = cancelSubscription;
2401
2392
  /**
2402
2393
  * Get Subscription
2403
2394
  * Get subscription details for a graph or shared repository.
@@ -3430,15 +3421,22 @@ const getOrgBillingCustomer = (options) => {
3430
3421
  };
3431
3422
  exports.getOrgBillingCustomer = getOrgBillingCustomer;
3432
3423
  /**
3433
- * Update Organization Default Payment Method
3434
- * Update the default payment method for the organization.
3424
+ * Create Customer Portal Session
3425
+ * Create a Stripe Customer Portal session for managing payment methods.
3426
+ *
3427
+ * The portal allows users to:
3428
+ * - Add new payment methods
3429
+ * - Remove existing payment methods
3430
+ * - Update default payment method
3431
+ * - View billing history
3435
3432
  *
3436
- * This changes which payment method will be used for future subscription charges.
3433
+ * The user will be redirected to Stripe's hosted portal page and returned to the billing page when done.
3437
3434
  *
3438
3435
  * **Requirements:**
3439
3436
  * - User must be an OWNER of the organization
3437
+ * - Organization must have a Stripe customer ID (i.e., has gone through checkout at least once)
3440
3438
  */
3441
- const updateOrgPaymentMethod = (options) => {
3439
+ const createPortalSession = (options) => {
3442
3440
  return (options.client ?? client_gen_1.client).post({
3443
3441
  security: [
3444
3442
  {
@@ -3450,15 +3448,11 @@ const updateOrgPaymentMethod = (options) => {
3450
3448
  type: 'http'
3451
3449
  }
3452
3450
  ],
3453
- url: '/v1/billing/customer/{org_id}/payment-method',
3454
- ...options,
3455
- headers: {
3456
- 'Content-Type': 'application/json',
3457
- ...options.headers
3458
- }
3451
+ url: '/v1/billing/customer/{org_id}/portal',
3452
+ ...options
3459
3453
  });
3460
3454
  };
3461
- exports.updateOrgPaymentMethod = updateOrgPaymentMethod;
3455
+ exports.createPortalSession = createPortalSession;
3462
3456
  /**
3463
3457
  * List Organization Subscriptions
3464
3458
  * List all active and past subscriptions for an organization.
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, 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, 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, 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, CancelSubscriptionData, CancelSubscriptionResponses, CancelSubscriptionErrors, 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, UpdateOrgPaymentMethodData, UpdateOrgPaymentMethodResponses, UpdateOrgPaymentMethodErrors, ListOrgSubscriptionsData, ListOrgSubscriptionsResponses, ListOrgSubscriptionsErrors, GetOrgSubscriptionData, GetOrgSubscriptionResponses, GetOrgSubscriptionErrors, CancelOrgSubscriptionData, CancelOrgSubscriptionResponses, CancelOrgSubscriptionErrors, ListOrgInvoicesData, ListOrgInvoicesResponses, ListOrgInvoicesErrors, GetOrgUpcomingInvoiceData, GetOrgUpcomingInvoiceResponses, GetOrgUpcomingInvoiceErrors, CreateCheckoutSessionData, CreateCheckoutSessionResponses, CreateCheckoutSessionErrors, GetCheckoutStatusData, GetCheckoutStatusResponses, GetCheckoutStatusErrors } from './types.gen';
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. Executing the query with the selected agent
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 (Enterprise or Premium only)
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://robosystems-backups/{instance_id}/{database_name}_{timestamp}.backup`
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
- * Update Organization Default Payment Method
3447
- * Update the default payment method for the organization.
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
- * This changes which payment method will be used for future subscription charges.
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 updateOrgPaymentMethod = <ThrowOnError extends boolean = false>(options: Options<UpdateOrgPaymentMethodData, ThrowOnError>) => {
3455
- return (options.client ?? _heyApiClient).post<UpdateOrgPaymentMethodResponses, UpdateOrgPaymentMethodErrors, ThrowOnError>({
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}/payment-method',
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