@robosystems/client 0.2.4 → 0.2.5
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/package.json +1 -1
- package/sdk/sdk.gen.d.ts +141 -10
- package/sdk/sdk.gen.js +157 -10
- package/sdk/sdk.gen.ts +157 -10
- package/sdk/types.gen.d.ts +294 -18
- package/sdk/types.gen.ts +307 -18
- package/sdk.gen.d.ts +141 -10
- package/sdk.gen.js +157 -10
- package/sdk.gen.ts +157 -10
- package/types.gen.d.ts +294 -18
- package/types.gen.ts +307 -18
package/sdk.gen.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
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.getRepositoryCredits = exports.getSharedRepositoryCredits = exports.cancelSharedRepositorySubscription = exports.upgradeSharedRepositorySubscription = exports.subscribeToSharedRepository = exports.getUserSharedSubscriptions = exports.getDetailedUserAnalytics = exports.getUserUsageOverview = exports.getSharedRepositoryLimits = exports.getAllSharedRepositoryLimits = exports.getUserUsage = exports.getUserLimits = exports.updateUserApiKey = exports.revokeUserApiKey = exports.createUserApiKey = exports.listUserApiKeys = exports.updateUserPassword = exports.getAllCreditSummaries = exports.updateUser = exports.getCurrentUser = exports.getServiceStatus = exports.getCaptchaConfig = exports.completeSsoAuth = exports.ssoTokenExchange = exports.generateSsoToken = exports.resetPassword = exports.validateResetToken = exports.forgotPassword = exports.checkPasswordStrength = exports.getPasswordPolicy = exports.verifyEmail = exports.resendVerificationEmail = exports.refreshAuthSession = exports.getCurrentAuthUser = exports.logoutUser = exports.loginUser = exports.registerUser = void 0;
|
|
5
|
-
exports.cancelOperation = exports.getOperationStatus = exports.streamOperationEvents = exports.getServiceOfferings = exports.selectGraph = exports.getAvailableExtensions = exports.createGraph = exports.getGraphs = exports.queryTables = exports.ingestTables = exports.updateFileStatus = exports.getFileInfo = exports.deleteFile = exports.getUploadUrl = exports.listTableFiles = exports.listTables = exports.getSubgraphQuota = exports.getSubgraphInfo = exports.deleteSubgraph = exports.createSubgraph = exports.listSubgraphs = exports.getGraphLimits = exports.getDatabaseInfo = exports.getDatabaseHealth = exports.checkStorageLimits = exports.getStorageUsage = exports.checkCreditBalance = exports.listCreditTransactions = exports.getCreditSummary = exports.getGraphMonthlyBill = exports.getGraphBillingHistory = exports.getGraphUsageDetails = exports.getCurrentGraphBill = exports.validateSchema = exports.exportGraphSchema = exports.getGraphSchema = exports.executeCypherQuery = exports.getGraphUsageStats = exports.getGraphMetrics = exports.getBackupStats = exports.restoreBackup = exports.getBackupDownloadUrl = exports.createBackup = exports.listBackups = exports.callMcpTool = exports.listMcpTools = exports.recommendAgent = exports.getAgentMetadata = exports.listAgents = void 0;
|
|
5
|
+
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.getSubgraphQuota = exports.getSubgraphInfo = exports.deleteSubgraph = exports.createSubgraph = exports.listSubgraphs = exports.getGraphLimits = exports.getDatabaseInfo = exports.getDatabaseHealth = exports.checkStorageLimits = exports.getStorageUsage = exports.checkCreditBalance = exports.listCreditTransactions = exports.getCreditSummary = exports.getGraphMonthlyBill = exports.getGraphBillingHistory = exports.getGraphUsageDetails = exports.getCurrentGraphBill = exports.validateSchema = exports.exportGraphSchema = exports.getGraphSchema = exports.executeCypherQuery = exports.getGraphUsageStats = exports.getGraphMetrics = exports.getBackupStats = exports.restoreBackup = exports.getBackupDownloadUrl = exports.createBackup = exports.listBackups = exports.callMcpTool = exports.listMcpTools = exports.recommendAgent = exports.getAgentMetadata = exports.listAgents = void 0;
|
|
6
6
|
const client_gen_1 = require("./client.gen");
|
|
7
7
|
/**
|
|
8
8
|
* Register New User
|
|
@@ -1066,13 +1066,46 @@ exports.syncConnection = syncConnection;
|
|
|
1066
1066
|
* Auto-select agent for query
|
|
1067
1067
|
* Automatically select the best agent for your query.
|
|
1068
1068
|
*
|
|
1069
|
-
*
|
|
1070
|
-
*
|
|
1071
|
-
*
|
|
1072
|
-
*
|
|
1073
|
-
*
|
|
1069
|
+
* **Agent Selection Process:**
|
|
1070
|
+
*
|
|
1071
|
+
* The orchestrator intelligently routes your query by:
|
|
1072
|
+
* 1. Analyzing query intent and complexity
|
|
1073
|
+
* 2. Enriching context with RAG if enabled
|
|
1074
|
+
* 3. Evaluating all available agents against selection criteria
|
|
1075
|
+
* 4. Selecting the best match based on confidence scores
|
|
1076
|
+
* 5. Executing the query with the selected agent
|
|
1077
|
+
*
|
|
1078
|
+
* **Available Agent Types:**
|
|
1079
|
+
* - `financial`: Financial analysis, SEC filings, company metrics
|
|
1080
|
+
* - `research`: General research, data exploration, trend analysis
|
|
1081
|
+
* - `rag`: Knowledge base search using RAG enrichment
|
|
1082
|
+
*
|
|
1083
|
+
* **Execution Modes:**
|
|
1084
|
+
* - `quick`: Fast responses (~2-5s), suitable for simple queries
|
|
1085
|
+
* - `standard`: Balanced approach (~5-15s), default mode
|
|
1086
|
+
* - `extended`: Comprehensive analysis (~15-60s), deep research
|
|
1087
|
+
* - `streaming`: Real-time response streaming
|
|
1088
|
+
*
|
|
1089
|
+
* **Confidence Score Interpretation:**
|
|
1090
|
+
* - `0.9-1.0`: High confidence, agent is ideal match
|
|
1091
|
+
* - `0.7-0.9`: Good confidence, agent is suitable
|
|
1092
|
+
* - `0.5-0.7`: Moderate confidence, agent can handle but may not be optimal
|
|
1093
|
+
* - `0.3-0.5`: Low confidence, fallback agent used
|
|
1094
|
+
* - `<0.3`: Very low confidence, consider using specific agent endpoint
|
|
1095
|
+
*
|
|
1096
|
+
* **Credit Costs:**
|
|
1097
|
+
* - Quick mode: 5-10 credits per query
|
|
1098
|
+
* - Standard mode: 15-25 credits per query
|
|
1099
|
+
* - Extended mode: 30-75 credits per query
|
|
1100
|
+
* - RAG enrichment: +5-15 credits (if enabled)
|
|
1074
1101
|
*
|
|
1075
|
-
* Use
|
|
1102
|
+
* **Use Cases:**
|
|
1103
|
+
* - Ask questions without specifying agent type
|
|
1104
|
+
* - Get intelligent routing for complex multi-domain queries
|
|
1105
|
+
* - Leverage conversation history for contextual understanding
|
|
1106
|
+
* - Enable RAG for knowledge base enrichment
|
|
1107
|
+
*
|
|
1108
|
+
* See request/response examples in the "Examples" dropdown below.
|
|
1076
1109
|
*/
|
|
1077
1110
|
const autoSelectAgent = (options) => {
|
|
1078
1111
|
return (options.client ?? client_gen_1.client).post({
|
|
@@ -1395,6 +1428,23 @@ exports.listBackups = listBackups;
|
|
|
1395
1428
|
* - **Download Support**: Unencrypted backups can be downloaded
|
|
1396
1429
|
* - **Restore Support**: Future support for encrypted backup restoration
|
|
1397
1430
|
*
|
|
1431
|
+
* **Operation State Machine:**
|
|
1432
|
+
* ```
|
|
1433
|
+
* pending → processing → completed
|
|
1434
|
+
* ↘ failed
|
|
1435
|
+
* ```
|
|
1436
|
+
* - **pending**: Backup queued, waiting to start
|
|
1437
|
+
* - **processing**: Actively backing up database
|
|
1438
|
+
* - **completed**: Backup successfully created and stored
|
|
1439
|
+
* - **failed**: Backup failed (check error message)
|
|
1440
|
+
*
|
|
1441
|
+
* **Expected Durations:**
|
|
1442
|
+
* Operation times vary by database size:
|
|
1443
|
+
* - **Small** (<1GB): 30 seconds - 2 minutes
|
|
1444
|
+
* - **Medium** (1-10GB): 2-10 minutes
|
|
1445
|
+
* - **Large** (10-100GB): 10-30 minutes
|
|
1446
|
+
* - **Very Large** (>100GB): 30+ minutes
|
|
1447
|
+
*
|
|
1398
1448
|
* **Progress Monitoring:**
|
|
1399
1449
|
* Use the returned operation_id to connect to the SSE stream:
|
|
1400
1450
|
* ```javascript
|
|
@@ -1402,6 +1452,7 @@ exports.listBackups = listBackups;
|
|
|
1402
1452
|
* eventSource.addEventListener('operation_progress', (event) => {
|
|
1403
1453
|
* const data = JSON.parse(event.data);
|
|
1404
1454
|
* console.log('Backup progress:', data.progress_percent + '%');
|
|
1455
|
+
* console.log('Status:', data.status); // pending, processing, completed, failed
|
|
1405
1456
|
* });
|
|
1406
1457
|
* ```
|
|
1407
1458
|
*
|
|
@@ -1482,6 +1533,28 @@ exports.getBackupDownloadUrl = getBackupDownloadUrl;
|
|
|
1482
1533
|
* - **Data Integrity**: Verification ensures successful restore
|
|
1483
1534
|
* - **Security**: Only encrypted backups to prevent data tampering
|
|
1484
1535
|
*
|
|
1536
|
+
* **Operation State Machine:**
|
|
1537
|
+
* ```
|
|
1538
|
+
* pending → backing_up_current → downloading → restoring → verifying → completed
|
|
1539
|
+
* ↘ failed
|
|
1540
|
+
* ```
|
|
1541
|
+
* - **pending**: Restore queued, waiting to start
|
|
1542
|
+
* - **backing_up_current**: Creating safety backup of existing database
|
|
1543
|
+
* - **downloading**: Downloading backup from storage
|
|
1544
|
+
* - **restoring**: Replacing database with backup contents
|
|
1545
|
+
* - **verifying**: Verifying database integrity (if enabled)
|
|
1546
|
+
* - **completed**: Restore successful, database operational
|
|
1547
|
+
* - **failed**: Restore failed (rollback may be available)
|
|
1548
|
+
*
|
|
1549
|
+
* **Expected Durations:**
|
|
1550
|
+
* Operation times vary by database size (includes backup + restore):
|
|
1551
|
+
* - **Small** (<1GB): 1-3 minutes
|
|
1552
|
+
* - **Medium** (1-10GB): 5-15 minutes
|
|
1553
|
+
* - **Large** (10-100GB): 20-45 minutes
|
|
1554
|
+
* - **Very Large** (>100GB): 45+ minutes
|
|
1555
|
+
*
|
|
1556
|
+
* Note: Restore operations take longer than backups due to safety backup step.
|
|
1557
|
+
*
|
|
1485
1558
|
* **Progress Monitoring:**
|
|
1486
1559
|
* Use the returned operation_id to connect to the SSE stream:
|
|
1487
1560
|
* ```javascript
|
|
@@ -1489,6 +1562,7 @@ exports.getBackupDownloadUrl = getBackupDownloadUrl;
|
|
|
1489
1562
|
* eventSource.addEventListener('operation_progress', (event) => {
|
|
1490
1563
|
* const data = JSON.parse(event.data);
|
|
1491
1564
|
* console.log('Restore progress:', data.message);
|
|
1565
|
+
* console.log('Status:', data.status); // Shows current state
|
|
1492
1566
|
* });
|
|
1493
1567
|
* ```
|
|
1494
1568
|
*
|
|
@@ -2992,9 +3066,35 @@ exports.getGraphs = getGraphs;
|
|
|
2992
3066
|
* This endpoint starts an asynchronous graph creation operation and returns
|
|
2993
3067
|
* connection details for monitoring progress via Server-Sent Events (SSE).
|
|
2994
3068
|
*
|
|
2995
|
-
* **
|
|
2996
|
-
*
|
|
2997
|
-
*
|
|
3069
|
+
* **Graph Creation Options:**
|
|
3070
|
+
*
|
|
3071
|
+
* 1. **Entity Graph with Initial Entity** (`initial_entity` provided, `create_entity=True`):
|
|
3072
|
+
* - Creates graph structure with entity schema extensions
|
|
3073
|
+
* - Populates an initial entity node with provided data
|
|
3074
|
+
* - Useful when you want a pre-configured entity to start with
|
|
3075
|
+
* - Example: Creating a company graph with the company already populated
|
|
3076
|
+
*
|
|
3077
|
+
* 2. **Entity Graph without Initial Entity** (`initial_entity=None`, `create_entity=False`):
|
|
3078
|
+
* - Creates graph structure with entity schema extensions
|
|
3079
|
+
* - Graph starts empty, ready for data import
|
|
3080
|
+
* - Useful for bulk data imports or custom workflows
|
|
3081
|
+
* - Example: Creating a graph structure before importing from CSV/API
|
|
3082
|
+
*
|
|
3083
|
+
* 3. **Generic Graph** (no `initial_entity` provided):
|
|
3084
|
+
* - Creates empty graph with custom schema extensions
|
|
3085
|
+
* - General-purpose knowledge graph
|
|
3086
|
+
* - Example: Analytics graphs, custom data models
|
|
3087
|
+
*
|
|
3088
|
+
* **Required Fields:**
|
|
3089
|
+
* - `metadata.graph_name`: Unique name for the graph
|
|
3090
|
+
* - `instance_tier`: Resource tier (kuzu-standard, kuzu-large, kuzu-xlarge)
|
|
3091
|
+
*
|
|
3092
|
+
* **Optional Fields:**
|
|
3093
|
+
* - `metadata.description`: Human-readable description of the graph's purpose
|
|
3094
|
+
* - `metadata.schema_extensions`: List of schema extensions (roboledger, roboinvestor, etc.)
|
|
3095
|
+
* - `tags`: Organizational tags (max 10)
|
|
3096
|
+
* - `initial_entity`: Entity data (required for entity graphs with initial data)
|
|
3097
|
+
* - `create_entity`: Whether to populate initial entity (default: true when initial_entity provided)
|
|
2998
3098
|
*
|
|
2999
3099
|
* **Monitoring Progress:**
|
|
3000
3100
|
* Use the returned `operation_id` to connect to the SSE stream:
|
|
@@ -3097,6 +3197,53 @@ const getAvailableExtensions = (options) => {
|
|
|
3097
3197
|
});
|
|
3098
3198
|
};
|
|
3099
3199
|
exports.getAvailableExtensions = getAvailableExtensions;
|
|
3200
|
+
/**
|
|
3201
|
+
* Get Available Graph Tiers
|
|
3202
|
+
* List all available graph database tier configurations.
|
|
3203
|
+
*
|
|
3204
|
+
* This endpoint provides comprehensive technical specifications for each available
|
|
3205
|
+
* graph database tier, including instance types, resource limits, and features.
|
|
3206
|
+
*
|
|
3207
|
+
* **Tier Information:**
|
|
3208
|
+
* Each tier includes:
|
|
3209
|
+
* - Technical specifications (instance type, memory, storage)
|
|
3210
|
+
* - Resource limits (subgraphs, credits, rate limits)
|
|
3211
|
+
* - Feature list with capabilities
|
|
3212
|
+
* - Availability status
|
|
3213
|
+
*
|
|
3214
|
+
* **Available Tiers:**
|
|
3215
|
+
* - **kuzu-standard**: Multi-tenant entry-level tier
|
|
3216
|
+
* - **kuzu-large**: Dedicated professional tier with subgraph support
|
|
3217
|
+
* - **kuzu-xlarge**: Enterprise tier with maximum resources
|
|
3218
|
+
* - **neo4j-community-large**: Neo4j Community Edition (optional, if enabled)
|
|
3219
|
+
* - **neo4j-enterprise-xlarge**: Neo4j Enterprise Edition (optional, if enabled)
|
|
3220
|
+
*
|
|
3221
|
+
* **Use Cases:**
|
|
3222
|
+
* - Display tier options in graph creation UI
|
|
3223
|
+
* - Show technical specifications for tier selection
|
|
3224
|
+
* - Validate tier availability before graph creation
|
|
3225
|
+
* - Display feature comparisons
|
|
3226
|
+
*
|
|
3227
|
+
* **Note:**
|
|
3228
|
+
* Tier listing is included - no credit consumption required.
|
|
3229
|
+
*/
|
|
3230
|
+
const getAvailableGraphTiers = (options) => {
|
|
3231
|
+
return (options?.client ?? client_gen_1.client).get({
|
|
3232
|
+
security: [
|
|
3233
|
+
{
|
|
3234
|
+
name: 'X-API-Key',
|
|
3235
|
+
type: 'apiKey'
|
|
3236
|
+
},
|
|
3237
|
+
{
|
|
3238
|
+
scheme: 'bearer',
|
|
3239
|
+
type: 'http'
|
|
3240
|
+
}
|
|
3241
|
+
],
|
|
3242
|
+
url: '/v1/graphs/tiers',
|
|
3243
|
+
...options
|
|
3244
|
+
});
|
|
3245
|
+
};
|
|
3246
|
+
exports.getAvailableGraphTiers = getAvailableGraphTiers;
|
|
3100
3247
|
/**
|
|
3101
3248
|
* Select Graph
|
|
3102
3249
|
* Select a specific graph as the active workspace for the user.
|
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, GetAllCreditSummariesData, GetAllCreditSummariesResponses, GetAllCreditSummariesErrors, UpdateUserPasswordData, UpdateUserPasswordResponses, UpdateUserPasswordErrors, ListUserApiKeysData, ListUserApiKeysResponses, CreateUserApiKeyData, CreateUserApiKeyResponses, CreateUserApiKeyErrors, RevokeUserApiKeyData, RevokeUserApiKeyResponses, RevokeUserApiKeyErrors, UpdateUserApiKeyData, UpdateUserApiKeyResponses, UpdateUserApiKeyErrors, GetUserLimitsData, GetUserLimitsResponses, GetUserLimitsErrors, GetUserUsageData, GetUserUsageResponses, GetAllSharedRepositoryLimitsData, GetAllSharedRepositoryLimitsResponses, GetSharedRepositoryLimitsData, GetSharedRepositoryLimitsResponses, GetSharedRepositoryLimitsErrors, GetUserUsageOverviewData, GetUserUsageOverviewResponses, GetDetailedUserAnalyticsData, GetDetailedUserAnalyticsResponses, GetDetailedUserAnalyticsErrors, GetUserSharedSubscriptionsData, GetUserSharedSubscriptionsResponses, GetUserSharedSubscriptionsErrors, SubscribeToSharedRepositoryData, SubscribeToSharedRepositoryResponses, SubscribeToSharedRepositoryErrors, UpgradeSharedRepositorySubscriptionData, UpgradeSharedRepositorySubscriptionResponses, UpgradeSharedRepositorySubscriptionErrors, CancelSharedRepositorySubscriptionData, CancelSharedRepositorySubscriptionResponses, CancelSharedRepositorySubscriptionErrors, GetSharedRepositoryCreditsData, GetSharedRepositoryCreditsResponses, GetSharedRepositoryCreditsErrors, GetRepositoryCreditsData, GetRepositoryCreditsResponses, GetRepositoryCreditsErrors, 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, GetGraphUsageStatsData, GetGraphUsageStatsResponses, GetGraphUsageStatsErrors, ExecuteCypherQueryData, ExecuteCypherQueryResponses, ExecuteCypherQueryErrors, GetGraphSchemaData, GetGraphSchemaResponses, GetGraphSchemaErrors, ExportGraphSchemaData, ExportGraphSchemaResponses, ExportGraphSchemaErrors, ValidateSchemaData, ValidateSchemaResponses, ValidateSchemaErrors, 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, 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, SelectGraphData, SelectGraphResponses, SelectGraphErrors, GetServiceOfferingsData, GetServiceOfferingsResponses, GetServiceOfferingsErrors, StreamOperationEventsData, StreamOperationEventsResponses, StreamOperationEventsErrors, GetOperationStatusData, GetOperationStatusResponses, GetOperationStatusErrors, CancelOperationData, CancelOperationResponses, CancelOperationErrors } 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, GetAllCreditSummariesData, GetAllCreditSummariesResponses, GetAllCreditSummariesErrors, UpdateUserPasswordData, UpdateUserPasswordResponses, UpdateUserPasswordErrors, ListUserApiKeysData, ListUserApiKeysResponses, CreateUserApiKeyData, CreateUserApiKeyResponses, CreateUserApiKeyErrors, RevokeUserApiKeyData, RevokeUserApiKeyResponses, RevokeUserApiKeyErrors, UpdateUserApiKeyData, UpdateUserApiKeyResponses, UpdateUserApiKeyErrors, GetUserLimitsData, GetUserLimitsResponses, GetUserLimitsErrors, GetUserUsageData, GetUserUsageResponses, GetAllSharedRepositoryLimitsData, GetAllSharedRepositoryLimitsResponses, GetSharedRepositoryLimitsData, GetSharedRepositoryLimitsResponses, GetSharedRepositoryLimitsErrors, GetUserUsageOverviewData, GetUserUsageOverviewResponses, GetDetailedUserAnalyticsData, GetDetailedUserAnalyticsResponses, GetDetailedUserAnalyticsErrors, GetUserSharedSubscriptionsData, GetUserSharedSubscriptionsResponses, GetUserSharedSubscriptionsErrors, SubscribeToSharedRepositoryData, SubscribeToSharedRepositoryResponses, SubscribeToSharedRepositoryErrors, UpgradeSharedRepositorySubscriptionData, UpgradeSharedRepositorySubscriptionResponses, UpgradeSharedRepositorySubscriptionErrors, CancelSharedRepositorySubscriptionData, CancelSharedRepositorySubscriptionResponses, CancelSharedRepositorySubscriptionErrors, GetSharedRepositoryCreditsData, GetSharedRepositoryCreditsResponses, GetSharedRepositoryCreditsErrors, GetRepositoryCreditsData, GetRepositoryCreditsResponses, GetRepositoryCreditsErrors, 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, GetGraphUsageStatsData, GetGraphUsageStatsResponses, GetGraphUsageStatsErrors, ExecuteCypherQueryData, ExecuteCypherQueryResponses, ExecuteCypherQueryErrors, GetGraphSchemaData, GetGraphSchemaResponses, GetGraphSchemaErrors, ExportGraphSchemaData, ExportGraphSchemaResponses, ExportGraphSchemaErrors, ValidateSchemaData, ValidateSchemaResponses, ValidateSchemaErrors, 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, 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 } 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> & {
|
|
@@ -1080,13 +1080,46 @@ export const syncConnection = <ThrowOnError extends boolean = false>(options: Op
|
|
|
1080
1080
|
* Auto-select agent for query
|
|
1081
1081
|
* Automatically select the best agent for your query.
|
|
1082
1082
|
*
|
|
1083
|
-
*
|
|
1084
|
-
*
|
|
1085
|
-
*
|
|
1086
|
-
*
|
|
1087
|
-
*
|
|
1083
|
+
* **Agent Selection Process:**
|
|
1084
|
+
*
|
|
1085
|
+
* The orchestrator intelligently routes your query by:
|
|
1086
|
+
* 1. Analyzing query intent and complexity
|
|
1087
|
+
* 2. Enriching context with RAG if enabled
|
|
1088
|
+
* 3. Evaluating all available agents against selection criteria
|
|
1089
|
+
* 4. Selecting the best match based on confidence scores
|
|
1090
|
+
* 5. Executing the query with the selected agent
|
|
1091
|
+
*
|
|
1092
|
+
* **Available Agent Types:**
|
|
1093
|
+
* - `financial`: Financial analysis, SEC filings, company metrics
|
|
1094
|
+
* - `research`: General research, data exploration, trend analysis
|
|
1095
|
+
* - `rag`: Knowledge base search using RAG enrichment
|
|
1096
|
+
*
|
|
1097
|
+
* **Execution Modes:**
|
|
1098
|
+
* - `quick`: Fast responses (~2-5s), suitable for simple queries
|
|
1099
|
+
* - `standard`: Balanced approach (~5-15s), default mode
|
|
1100
|
+
* - `extended`: Comprehensive analysis (~15-60s), deep research
|
|
1101
|
+
* - `streaming`: Real-time response streaming
|
|
1102
|
+
*
|
|
1103
|
+
* **Confidence Score Interpretation:**
|
|
1104
|
+
* - `0.9-1.0`: High confidence, agent is ideal match
|
|
1105
|
+
* - `0.7-0.9`: Good confidence, agent is suitable
|
|
1106
|
+
* - `0.5-0.7`: Moderate confidence, agent can handle but may not be optimal
|
|
1107
|
+
* - `0.3-0.5`: Low confidence, fallback agent used
|
|
1108
|
+
* - `<0.3`: Very low confidence, consider using specific agent endpoint
|
|
1109
|
+
*
|
|
1110
|
+
* **Credit Costs:**
|
|
1111
|
+
* - Quick mode: 5-10 credits per query
|
|
1112
|
+
* - Standard mode: 15-25 credits per query
|
|
1113
|
+
* - Extended mode: 30-75 credits per query
|
|
1114
|
+
* - RAG enrichment: +5-15 credits (if enabled)
|
|
1088
1115
|
*
|
|
1089
|
-
* Use
|
|
1116
|
+
* **Use Cases:**
|
|
1117
|
+
* - Ask questions without specifying agent type
|
|
1118
|
+
* - Get intelligent routing for complex multi-domain queries
|
|
1119
|
+
* - Leverage conversation history for contextual understanding
|
|
1120
|
+
* - Enable RAG for knowledge base enrichment
|
|
1121
|
+
*
|
|
1122
|
+
* See request/response examples in the "Examples" dropdown below.
|
|
1090
1123
|
*/
|
|
1091
1124
|
export const autoSelectAgent = <ThrowOnError extends boolean = false>(options: Options<AutoSelectAgentData, ThrowOnError>) => {
|
|
1092
1125
|
return (options.client ?? _heyApiClient).post<AutoSelectAgentResponses, AutoSelectAgentErrors, ThrowOnError>({
|
|
@@ -1409,6 +1442,23 @@ export const listBackups = <ThrowOnError extends boolean = false>(options: Optio
|
|
|
1409
1442
|
* - **Download Support**: Unencrypted backups can be downloaded
|
|
1410
1443
|
* - **Restore Support**: Future support for encrypted backup restoration
|
|
1411
1444
|
*
|
|
1445
|
+
* **Operation State Machine:**
|
|
1446
|
+
* ```
|
|
1447
|
+
* pending → processing → completed
|
|
1448
|
+
* ↘ failed
|
|
1449
|
+
* ```
|
|
1450
|
+
* - **pending**: Backup queued, waiting to start
|
|
1451
|
+
* - **processing**: Actively backing up database
|
|
1452
|
+
* - **completed**: Backup successfully created and stored
|
|
1453
|
+
* - **failed**: Backup failed (check error message)
|
|
1454
|
+
*
|
|
1455
|
+
* **Expected Durations:**
|
|
1456
|
+
* Operation times vary by database size:
|
|
1457
|
+
* - **Small** (<1GB): 30 seconds - 2 minutes
|
|
1458
|
+
* - **Medium** (1-10GB): 2-10 minutes
|
|
1459
|
+
* - **Large** (10-100GB): 10-30 minutes
|
|
1460
|
+
* - **Very Large** (>100GB): 30+ minutes
|
|
1461
|
+
*
|
|
1412
1462
|
* **Progress Monitoring:**
|
|
1413
1463
|
* Use the returned operation_id to connect to the SSE stream:
|
|
1414
1464
|
* ```javascript
|
|
@@ -1416,6 +1466,7 @@ export const listBackups = <ThrowOnError extends boolean = false>(options: Optio
|
|
|
1416
1466
|
* eventSource.addEventListener('operation_progress', (event) => {
|
|
1417
1467
|
* const data = JSON.parse(event.data);
|
|
1418
1468
|
* console.log('Backup progress:', data.progress_percent + '%');
|
|
1469
|
+
* console.log('Status:', data.status); // pending, processing, completed, failed
|
|
1419
1470
|
* });
|
|
1420
1471
|
* ```
|
|
1421
1472
|
*
|
|
@@ -1496,6 +1547,28 @@ export const getBackupDownloadUrl = <ThrowOnError extends boolean = false>(optio
|
|
|
1496
1547
|
* - **Data Integrity**: Verification ensures successful restore
|
|
1497
1548
|
* - **Security**: Only encrypted backups to prevent data tampering
|
|
1498
1549
|
*
|
|
1550
|
+
* **Operation State Machine:**
|
|
1551
|
+
* ```
|
|
1552
|
+
* pending → backing_up_current → downloading → restoring → verifying → completed
|
|
1553
|
+
* ↘ failed
|
|
1554
|
+
* ```
|
|
1555
|
+
* - **pending**: Restore queued, waiting to start
|
|
1556
|
+
* - **backing_up_current**: Creating safety backup of existing database
|
|
1557
|
+
* - **downloading**: Downloading backup from storage
|
|
1558
|
+
* - **restoring**: Replacing database with backup contents
|
|
1559
|
+
* - **verifying**: Verifying database integrity (if enabled)
|
|
1560
|
+
* - **completed**: Restore successful, database operational
|
|
1561
|
+
* - **failed**: Restore failed (rollback may be available)
|
|
1562
|
+
*
|
|
1563
|
+
* **Expected Durations:**
|
|
1564
|
+
* Operation times vary by database size (includes backup + restore):
|
|
1565
|
+
* - **Small** (<1GB): 1-3 minutes
|
|
1566
|
+
* - **Medium** (1-10GB): 5-15 minutes
|
|
1567
|
+
* - **Large** (10-100GB): 20-45 minutes
|
|
1568
|
+
* - **Very Large** (>100GB): 45+ minutes
|
|
1569
|
+
*
|
|
1570
|
+
* Note: Restore operations take longer than backups due to safety backup step.
|
|
1571
|
+
*
|
|
1499
1572
|
* **Progress Monitoring:**
|
|
1500
1573
|
* Use the returned operation_id to connect to the SSE stream:
|
|
1501
1574
|
* ```javascript
|
|
@@ -1503,6 +1576,7 @@ export const getBackupDownloadUrl = <ThrowOnError extends boolean = false>(optio
|
|
|
1503
1576
|
* eventSource.addEventListener('operation_progress', (event) => {
|
|
1504
1577
|
* const data = JSON.parse(event.data);
|
|
1505
1578
|
* console.log('Restore progress:', data.message);
|
|
1579
|
+
* console.log('Status:', data.status); // Shows current state
|
|
1506
1580
|
* });
|
|
1507
1581
|
* ```
|
|
1508
1582
|
*
|
|
@@ -3006,9 +3080,35 @@ export const getGraphs = <ThrowOnError extends boolean = false>(options?: Option
|
|
|
3006
3080
|
* This endpoint starts an asynchronous graph creation operation and returns
|
|
3007
3081
|
* connection details for monitoring progress via Server-Sent Events (SSE).
|
|
3008
3082
|
*
|
|
3009
|
-
* **
|
|
3010
|
-
*
|
|
3011
|
-
*
|
|
3083
|
+
* **Graph Creation Options:**
|
|
3084
|
+
*
|
|
3085
|
+
* 1. **Entity Graph with Initial Entity** (`initial_entity` provided, `create_entity=True`):
|
|
3086
|
+
* - Creates graph structure with entity schema extensions
|
|
3087
|
+
* - Populates an initial entity node with provided data
|
|
3088
|
+
* - Useful when you want a pre-configured entity to start with
|
|
3089
|
+
* - Example: Creating a company graph with the company already populated
|
|
3090
|
+
*
|
|
3091
|
+
* 2. **Entity Graph without Initial Entity** (`initial_entity=None`, `create_entity=False`):
|
|
3092
|
+
* - Creates graph structure with entity schema extensions
|
|
3093
|
+
* - Graph starts empty, ready for data import
|
|
3094
|
+
* - Useful for bulk data imports or custom workflows
|
|
3095
|
+
* - Example: Creating a graph structure before importing from CSV/API
|
|
3096
|
+
*
|
|
3097
|
+
* 3. **Generic Graph** (no `initial_entity` provided):
|
|
3098
|
+
* - Creates empty graph with custom schema extensions
|
|
3099
|
+
* - General-purpose knowledge graph
|
|
3100
|
+
* - Example: Analytics graphs, custom data models
|
|
3101
|
+
*
|
|
3102
|
+
* **Required Fields:**
|
|
3103
|
+
* - `metadata.graph_name`: Unique name for the graph
|
|
3104
|
+
* - `instance_tier`: Resource tier (kuzu-standard, kuzu-large, kuzu-xlarge)
|
|
3105
|
+
*
|
|
3106
|
+
* **Optional Fields:**
|
|
3107
|
+
* - `metadata.description`: Human-readable description of the graph's purpose
|
|
3108
|
+
* - `metadata.schema_extensions`: List of schema extensions (roboledger, roboinvestor, etc.)
|
|
3109
|
+
* - `tags`: Organizational tags (max 10)
|
|
3110
|
+
* - `initial_entity`: Entity data (required for entity graphs with initial data)
|
|
3111
|
+
* - `create_entity`: Whether to populate initial entity (default: true when initial_entity provided)
|
|
3012
3112
|
*
|
|
3013
3113
|
* **Monitoring Progress:**
|
|
3014
3114
|
* Use the returned `operation_id` to connect to the SSE stream:
|
|
@@ -3111,6 +3211,53 @@ export const getAvailableExtensions = <ThrowOnError extends boolean = false>(opt
|
|
|
3111
3211
|
});
|
|
3112
3212
|
};
|
|
3113
3213
|
|
|
3214
|
+
/**
|
|
3215
|
+
* Get Available Graph Tiers
|
|
3216
|
+
* List all available graph database tier configurations.
|
|
3217
|
+
*
|
|
3218
|
+
* This endpoint provides comprehensive technical specifications for each available
|
|
3219
|
+
* graph database tier, including instance types, resource limits, and features.
|
|
3220
|
+
*
|
|
3221
|
+
* **Tier Information:**
|
|
3222
|
+
* Each tier includes:
|
|
3223
|
+
* - Technical specifications (instance type, memory, storage)
|
|
3224
|
+
* - Resource limits (subgraphs, credits, rate limits)
|
|
3225
|
+
* - Feature list with capabilities
|
|
3226
|
+
* - Availability status
|
|
3227
|
+
*
|
|
3228
|
+
* **Available Tiers:**
|
|
3229
|
+
* - **kuzu-standard**: Multi-tenant entry-level tier
|
|
3230
|
+
* - **kuzu-large**: Dedicated professional tier with subgraph support
|
|
3231
|
+
* - **kuzu-xlarge**: Enterprise tier with maximum resources
|
|
3232
|
+
* - **neo4j-community-large**: Neo4j Community Edition (optional, if enabled)
|
|
3233
|
+
* - **neo4j-enterprise-xlarge**: Neo4j Enterprise Edition (optional, if enabled)
|
|
3234
|
+
*
|
|
3235
|
+
* **Use Cases:**
|
|
3236
|
+
* - Display tier options in graph creation UI
|
|
3237
|
+
* - Show technical specifications for tier selection
|
|
3238
|
+
* - Validate tier availability before graph creation
|
|
3239
|
+
* - Display feature comparisons
|
|
3240
|
+
*
|
|
3241
|
+
* **Note:**
|
|
3242
|
+
* Tier listing is included - no credit consumption required.
|
|
3243
|
+
*/
|
|
3244
|
+
export const getAvailableGraphTiers = <ThrowOnError extends boolean = false>(options?: Options<GetAvailableGraphTiersData, ThrowOnError>) => {
|
|
3245
|
+
return (options?.client ?? _heyApiClient).get<GetAvailableGraphTiersResponses, GetAvailableGraphTiersErrors, ThrowOnError>({
|
|
3246
|
+
security: [
|
|
3247
|
+
{
|
|
3248
|
+
name: 'X-API-Key',
|
|
3249
|
+
type: 'apiKey'
|
|
3250
|
+
},
|
|
3251
|
+
{
|
|
3252
|
+
scheme: 'bearer',
|
|
3253
|
+
type: 'http'
|
|
3254
|
+
}
|
|
3255
|
+
],
|
|
3256
|
+
url: '/v1/graphs/tiers',
|
|
3257
|
+
...options
|
|
3258
|
+
});
|
|
3259
|
+
};
|
|
3260
|
+
|
|
3114
3261
|
/**
|
|
3115
3262
|
* Select Graph
|
|
3116
3263
|
* Select a specific graph as the active workspace for the user.
|