@robosystems/client 0.2.31 → 0.2.33

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/sdk.gen.js CHANGED
@@ -1,8 +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.getGraphUsageAnalytics = exports.getGraphMetrics = exports.getBackupStats = exports.restoreBackup = exports.getBackupDownloadUrl = exports.createBackup = exports.listBackups = exports.callMcpTool = exports.listMcpTools = exports.recommendAgent = exports.batchProcessQueries = exports.executeSpecificAgent = exports.getAgentMetadata = exports.autoSelectAgent = exports.listAgents = 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.getCheckoutStatus = exports.createCheckoutSession = exports.getOrgUpcomingInvoice = exports.listOrgInvoices = exports.cancelOrgSubscription = exports.getOrgSubscription = exports.listOrgSubscriptions = exports.createPortalSession = exports.getOrgBillingCustomer = exports.cancelOperation = exports.getOperationStatus = exports.streamOperationEvents = exports.getServiceOfferings = exports.selectGraph = exports.getGraphCapacity = exports.getAvailableGraphTiers = exports.getAvailableExtensions = exports.createGraph = exports.getGraphs = exports.updateFile = exports.getFile = exports.deleteFile = exports.createFileUpload = exports.listFiles = exports.materializeGraph = exports.getMaterializationStatus = exports.queryTables = 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 = void 0;
4
+ exports.callMcpTool = exports.listMcpTools = exports.recommendAgent = exports.batchProcessQueries = exports.executeSpecificAgent = exports.getAgentMetadata = exports.autoSelectAgent = exports.listAgents = exports.syncConnection = exports.getConnection = exports.deleteConnection = exports.oauthCallback = exports.initOAuth = 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.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.getGraphCapacity = exports.getAvailableGraphTiers = exports.getAvailableExtensions = exports.createGraph = exports.getGraphs = exports.updateFile = exports.getFile = exports.deleteFile = exports.createFileUpload = exports.listFiles = exports.materializeGraph = exports.getMaterializationStatus = exports.createView = exports.queryTables = 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 = void 0;
6
+ exports.getCheckoutStatus = exports.createCheckoutSession = exports.getOrgUpcomingInvoice = exports.listOrgInvoices = exports.cancelOrgSubscription = exports.getOrgSubscription = void 0;
6
7
  const client_gen_1 = require("./client.gen");
7
8
  /**
8
9
  * Register New User
@@ -287,21 +288,6 @@ const listUserOrgs = (options) => (options?.client ?? client_gen_1.client).get({
287
288
  ...options
288
289
  });
289
290
  exports.listUserOrgs = listUserOrgs;
290
- /**
291
- * Create Organization
292
- *
293
- * Create a new organization. The creating user becomes the owner.
294
- */
295
- const createOrg = (options) => (options.client ?? client_gen_1.client).post({
296
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
297
- url: '/v1/orgs',
298
- ...options,
299
- headers: {
300
- 'Content-Type': 'application/json',
301
- ...options.headers
302
- }
303
- });
304
- exports.createOrg = createOrg;
305
291
  /**
306
292
  * Get Organization
307
293
  *
@@ -416,6 +402,211 @@ const getOrgUsage = (options) => (options.client ?? client_gen_1.client).get({
416
402
  ...options
417
403
  });
418
404
  exports.getOrgUsage = getOrgUsage;
405
+ /**
406
+ * List Connections
407
+ *
408
+ * List all data connections in the graph.
409
+ *
410
+ * Returns active and inactive connections with their current status.
411
+ * Connections can be filtered by:
412
+ * - **Entity**: Show connections for a specific entity
413
+ * - **Provider**: Filter by connection type (sec, quickbooks)
414
+ *
415
+ * Each connection shows:
416
+ * - Current sync status and health
417
+ * - Last successful sync timestamp
418
+ * - Configuration metadata
419
+ * - Error messages if any
420
+ *
421
+ * No credits are consumed for listing connections.
422
+ */
423
+ const listConnections = (options) => (options.client ?? client_gen_1.client).get({
424
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
425
+ url: '/v1/graphs/{graph_id}/connections',
426
+ ...options
427
+ });
428
+ exports.listConnections = listConnections;
429
+ /**
430
+ * Create Connection
431
+ *
432
+ * Create a new data connection for external system integration.
433
+ *
434
+ * This endpoint initiates connections to external data sources:
435
+ *
436
+ * **SEC Connections**:
437
+ * - Provide entity CIK for automatic filing retrieval
438
+ * - No authentication needed
439
+ * - Begins immediate data sync
440
+ *
441
+ * **QuickBooks Connections**:
442
+ * - Returns OAuth URL for authorization
443
+ * - Requires admin permissions in QuickBooks
444
+ * - Complete with OAuth callback
445
+ *
446
+ * Note:
447
+ * This operation is included - no credit consumption required.
448
+ */
449
+ const createConnection = (options) => (options.client ?? client_gen_1.client).post({
450
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
451
+ url: '/v1/graphs/{graph_id}/connections',
452
+ ...options,
453
+ headers: {
454
+ 'Content-Type': 'application/json',
455
+ ...options.headers
456
+ }
457
+ });
458
+ exports.createConnection = createConnection;
459
+ /**
460
+ * List Connection Options
461
+ *
462
+ * Get metadata about all available data connection providers.
463
+ *
464
+ * This endpoint returns comprehensive information about each supported provider:
465
+ *
466
+ * **SEC EDGAR**: Public entity financial filings
467
+ * - No authentication required (public data)
468
+ * - 10-K, 10-Q, 8-K reports with XBRL data
469
+ * - Historical and real-time filing access
470
+ *
471
+ * **QuickBooks Online**: Full accounting system integration
472
+ * - OAuth 2.0 authentication
473
+ * - Chart of accounts, transactions, trial balance
474
+ * - Real-time sync capabilities
475
+ *
476
+ * No credits are consumed for viewing connection options.
477
+ */
478
+ const getConnectionOptions = (options) => (options.client ?? client_gen_1.client).get({
479
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
480
+ url: '/v1/graphs/{graph_id}/connections/options',
481
+ ...options
482
+ });
483
+ exports.getConnectionOptions = getConnectionOptions;
484
+ /**
485
+ * Init Oauth
486
+ *
487
+ * Initialize OAuth flow for a connection.
488
+ *
489
+ * This generates an authorization URL that the frontend should redirect the user to.
490
+ * Currently supports: QuickBooks
491
+ */
492
+ const initOAuth = (options) => (options.client ?? client_gen_1.client).post({
493
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
494
+ url: '/v1/graphs/{graph_id}/connections/oauth/init',
495
+ ...options,
496
+ headers: {
497
+ 'Content-Type': 'application/json',
498
+ ...options.headers
499
+ }
500
+ });
501
+ exports.initOAuth = initOAuth;
502
+ /**
503
+ * OAuth Callback
504
+ *
505
+ * Handle OAuth callback from provider after user authorization.
506
+ *
507
+ * This endpoint completes the OAuth flow:
508
+ * 1. Validates the OAuth state parameter
509
+ * 2. Exchanges authorization code for access tokens
510
+ * 3. Stores tokens securely
511
+ * 4. Updates connection status
512
+ * 5. Optionally triggers initial sync
513
+ *
514
+ * Supported providers:
515
+ * - **QuickBooks**: Accounting data integration
516
+ *
517
+ * Security measures:
518
+ * - State validation prevents session hijacking
519
+ * - User context is verified
520
+ * - Tokens are encrypted before storage
521
+ * - Full audit trail is maintained
522
+ *
523
+ * No credits are consumed for OAuth callbacks.
524
+ */
525
+ const oauthCallback = (options) => (options.client ?? client_gen_1.client).post({
526
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
527
+ url: '/v1/graphs/{graph_id}/connections/oauth/callback/{provider}',
528
+ ...options,
529
+ headers: {
530
+ 'Content-Type': 'application/json',
531
+ ...options.headers
532
+ }
533
+ });
534
+ exports.oauthCallback = oauthCallback;
535
+ /**
536
+ * Delete Connection
537
+ *
538
+ * Delete a data connection and clean up related resources.
539
+ *
540
+ * This operation:
541
+ * - Removes the connection configuration
542
+ * - Preserves any imported data in the graph
543
+ * - Performs provider-specific cleanup
544
+ * - Revokes stored credentials
545
+ *
546
+ * Note:
547
+ * This operation is included - no credit consumption required.
548
+ *
549
+ * Only users with admin role can delete connections.
550
+ */
551
+ const deleteConnection = (options) => (options.client ?? client_gen_1.client).delete({
552
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
553
+ url: '/v1/graphs/{graph_id}/connections/{connection_id}',
554
+ ...options
555
+ });
556
+ exports.deleteConnection = deleteConnection;
557
+ /**
558
+ * Get Connection
559
+ *
560
+ * Get detailed information about a specific connection.
561
+ *
562
+ * Returns comprehensive connection details including:
563
+ * - Current status and health indicators
564
+ * - Authentication state
565
+ * - Sync history and statistics
566
+ * - Error details if any
567
+ * - Provider-specific metadata
568
+ *
569
+ * No credits are consumed for viewing connection details.
570
+ */
571
+ const getConnection = (options) => (options.client ?? client_gen_1.client).get({
572
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
573
+ url: '/v1/graphs/{graph_id}/connections/{connection_id}',
574
+ ...options
575
+ });
576
+ exports.getConnection = getConnection;
577
+ /**
578
+ * Sync Connection
579
+ *
580
+ * Trigger a data synchronization for the connection.
581
+ *
582
+ * Initiates data sync based on provider type:
583
+ *
584
+ * **SEC Sync**:
585
+ * - Downloads latest filings from EDGAR
586
+ * - Parses XBRL data and updates graph
587
+ * - Typically completes in 5-10 minutes
588
+ *
589
+ * **QuickBooks Sync**:
590
+ * - Fetches latest transactions and balances
591
+ * - Updates chart of accounts
592
+ * - Generates fresh trial balance
593
+ * - Duration depends on data volume
594
+ *
595
+ * Note:
596
+ * This operation is included - no credit consumption required.
597
+ *
598
+ * Returns a task ID for monitoring sync progress.
599
+ */
600
+ const syncConnection = (options) => (options.client ?? client_gen_1.client).post({
601
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
602
+ url: '/v1/graphs/{graph_id}/connections/{connection_id}/sync',
603
+ ...options,
604
+ headers: {
605
+ 'Content-Type': 'application/json',
606
+ ...options.headers
607
+ }
608
+ });
609
+ exports.syncConnection = syncConnection;
419
610
  /**
420
611
  * List available agents
421
612
  *
@@ -1534,10 +1725,10 @@ exports.getSubgraphInfo = getSubgraphInfo;
1534
1725
  * - Total size usage across all subgraphs
1535
1726
  *
1536
1727
  * **Tier Limits:**
1537
- * - Standard: 0 subgraphs (not supported)
1538
- * - Enterprise: Configurable limit (default: 10 subgraphs)
1539
- * - Premium: Unlimited subgraphs
1540
- * - Limits are defined in deployment configuration
1728
+ * - Standard: Up to 3 subgraphs (dedicated m7g.large instance)
1729
+ * - Large: Up to 10 subgraphs (dedicated r7g.large instance)
1730
+ * - XLarge: Up to 25 subgraphs (dedicated r7g.xlarge instance)
1731
+ * - Limits are defined in graph.yml deployment configuration
1541
1732
  *
1542
1733
  * **Size Tracking:**
1543
1734
  * Provides aggregate size metrics when available.
@@ -1717,6 +1908,25 @@ const queryTables = (options) => (options.client ?? client_gen_1.client).post({
1717
1908
  }
1718
1909
  });
1719
1910
  exports.queryTables = queryTables;
1911
+ /**
1912
+ * Create View
1913
+ *
1914
+ * Build a fact grid from existing facts in the graph.
1915
+ *
1916
+ * Queries Fact nodes by element qnames or canonical concepts, with optional
1917
+ * filters for periods, entities, filing form, fiscal context, and period type.
1918
+ * Returns deduplicated consolidated facts as a pivot table.
1919
+ */
1920
+ const createView = (options) => (options.client ?? client_gen_1.client).post({
1921
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
1922
+ url: '/v1/graphs/{graph_id}/views',
1923
+ ...options,
1924
+ headers: {
1925
+ 'Content-Type': 'application/json',
1926
+ ...options.headers
1927
+ }
1928
+ });
1929
+ exports.createView = createView;
1720
1930
  /**
1721
1931
  * Get Materialization Status
1722
1932
  *
@@ -2173,7 +2383,7 @@ exports.createGraph = createGraph;
2173
2383
  *
2174
2384
  * **Available Extensions:**
2175
2385
  * - **RoboLedger**: Complete accounting system with XBRL reporting, general ledger, and financial statements
2176
- * - **RoboInvestor**: Investment portfolio management and tracking
2386
+ * - **RoboInvestor**: Investment portfolio management with securities tracking, trade execution, and risk analysis
2177
2387
  * - **RoboSCM**: Supply chain management and logistics
2178
2388
  * - **RoboFO**: Front office operations and CRM
2179
2389
  * - **RoboHRM**: Human resources management
package/sdk/sdk.gen.ts CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  import type { Client, Options as Options2, TDataShape } from './client';
4
4
  import { client } from './client.gen';
5
- import type { AutoSelectAgentData, AutoSelectAgentErrors, AutoSelectAgentResponses, BatchProcessQueriesData, BatchProcessQueriesErrors, BatchProcessQueriesResponses, CallMcpToolData, CallMcpToolErrors, CallMcpToolResponses, CancelOperationData, CancelOperationErrors, CancelOperationResponses, CancelOrgSubscriptionData, CancelOrgSubscriptionErrors, CancelOrgSubscriptionResponses, CheckCreditBalanceData, CheckCreditBalanceErrors, CheckCreditBalanceResponses, CheckPasswordStrengthData, CheckPasswordStrengthErrors, CheckPasswordStrengthResponses, CheckStorageLimitsData, CheckStorageLimitsErrors, CheckStorageLimitsResponses, CompleteSsoAuthData, CompleteSsoAuthErrors, CompleteSsoAuthResponses, CreateBackupData, CreateBackupErrors, CreateBackupResponses, CreateCheckoutSessionData, CreateCheckoutSessionErrors, CreateCheckoutSessionResponses, CreateFileUploadData, CreateFileUploadErrors, CreateFileUploadResponses, CreateGraphData, CreateGraphErrors, CreateGraphResponses, CreateOrgData, CreateOrgErrors, CreateOrgResponses, CreatePortalSessionData, CreatePortalSessionErrors, CreatePortalSessionResponses, CreateRepositorySubscriptionData, CreateRepositorySubscriptionErrors, CreateRepositorySubscriptionResponses, CreateSubgraphData, CreateSubgraphErrors, CreateSubgraphResponses, CreateUserApiKeyData, CreateUserApiKeyErrors, CreateUserApiKeyResponses, DeleteFileData, DeleteFileErrors, DeleteFileResponses, DeleteSubgraphData, DeleteSubgraphErrors, DeleteSubgraphResponses, ExecuteCypherQueryData, ExecuteCypherQueryErrors, ExecuteCypherQueryResponses, ExecuteSpecificAgentData, ExecuteSpecificAgentErrors, ExecuteSpecificAgentResponses, ExportGraphSchemaData, ExportGraphSchemaErrors, ExportGraphSchemaResponses, ForgotPasswordData, ForgotPasswordErrors, ForgotPasswordResponses, GenerateSsoTokenData, GenerateSsoTokenErrors, GenerateSsoTokenResponses, GetAgentMetadataData, GetAgentMetadataErrors, GetAgentMetadataResponses, GetAvailableExtensionsData, GetAvailableExtensionsErrors, GetAvailableExtensionsResponses, GetAvailableGraphTiersData, GetAvailableGraphTiersErrors, GetAvailableGraphTiersResponses, GetBackupDownloadUrlData, GetBackupDownloadUrlErrors, GetBackupDownloadUrlResponses, GetBackupStatsData, GetBackupStatsErrors, GetBackupStatsResponses, GetCaptchaConfigData, GetCaptchaConfigResponses, GetCheckoutStatusData, GetCheckoutStatusErrors, GetCheckoutStatusResponses, GetCreditSummaryData, GetCreditSummaryErrors, GetCreditSummaryResponses, GetCurrentAuthUserData, GetCurrentAuthUserErrors, GetCurrentAuthUserResponses, GetCurrentUserData, GetCurrentUserResponses, GetDatabaseHealthData, GetDatabaseHealthErrors, GetDatabaseHealthResponses, GetDatabaseInfoData, GetDatabaseInfoErrors, GetDatabaseInfoResponses, GetFileData, GetFileErrors, GetFileResponses, GetGraphCapacityData, GetGraphCapacityErrors, GetGraphCapacityResponses, GetGraphLimitsData, GetGraphLimitsErrors, GetGraphLimitsResponses, GetGraphMetricsData, GetGraphMetricsErrors, GetGraphMetricsResponses, GetGraphSchemaData, GetGraphSchemaErrors, GetGraphSchemaResponses, GetGraphsData, GetGraphsErrors, GetGraphsResponses, GetGraphSubscriptionData, GetGraphSubscriptionErrors, GetGraphSubscriptionResponses, GetGraphUsageAnalyticsData, GetGraphUsageAnalyticsErrors, GetGraphUsageAnalyticsResponses, GetMaterializationStatusData, GetMaterializationStatusErrors, GetMaterializationStatusResponses, GetOperationStatusData, GetOperationStatusErrors, GetOperationStatusResponses, GetOrgBillingCustomerData, GetOrgBillingCustomerErrors, GetOrgBillingCustomerResponses, GetOrgData, GetOrgErrors, GetOrgLimitsData, GetOrgLimitsErrors, GetOrgLimitsResponses, GetOrgResponses, GetOrgSubscriptionData, GetOrgSubscriptionErrors, GetOrgSubscriptionResponses, GetOrgUpcomingInvoiceData, GetOrgUpcomingInvoiceErrors, GetOrgUpcomingInvoiceResponses, GetOrgUsageData, GetOrgUsageErrors, GetOrgUsageResponses, GetPasswordPolicyData, GetPasswordPolicyResponses, GetServiceOfferingsData, GetServiceOfferingsErrors, GetServiceOfferingsResponses, GetServiceStatusData, GetServiceStatusResponses, GetStorageUsageData, GetStorageUsageErrors, GetStorageUsageResponses, GetSubgraphInfoData, GetSubgraphInfoErrors, GetSubgraphInfoResponses, GetSubgraphQuotaData, GetSubgraphQuotaErrors, GetSubgraphQuotaResponses, InviteOrgMemberData, InviteOrgMemberErrors, InviteOrgMemberResponses, ListAgentsData, ListAgentsErrors, ListAgentsResponses, ListBackupsData, ListBackupsErrors, ListBackupsResponses, ListCreditTransactionsData, ListCreditTransactionsErrors, ListCreditTransactionsResponses, ListFilesData, ListFilesErrors, ListFilesResponses, ListMcpToolsData, ListMcpToolsErrors, ListMcpToolsResponses, ListOrgGraphsData, ListOrgGraphsErrors, ListOrgGraphsResponses, ListOrgInvoicesData, ListOrgInvoicesErrors, ListOrgInvoicesResponses, ListOrgMembersData, ListOrgMembersErrors, ListOrgMembersResponses, ListOrgSubscriptionsData, ListOrgSubscriptionsErrors, ListOrgSubscriptionsResponses, ListSubgraphsData, ListSubgraphsErrors, ListSubgraphsResponses, ListTablesData, ListTablesErrors, ListTablesResponses, ListUserApiKeysData, ListUserApiKeysResponses, ListUserOrgsData, ListUserOrgsResponses, LoginUserData, LoginUserErrors, LoginUserResponses, LogoutUserData, LogoutUserResponses, MaterializeGraphData, MaterializeGraphErrors, MaterializeGraphResponses, QueryTablesData, QueryTablesErrors, QueryTablesResponses, RecommendAgentData, RecommendAgentErrors, RecommendAgentResponses, RefreshAuthSessionData, RefreshAuthSessionErrors, RefreshAuthSessionResponses, RegisterUserData, RegisterUserErrors, RegisterUserResponses, RemoveOrgMemberData, RemoveOrgMemberErrors, RemoveOrgMemberResponses, ResendVerificationEmailData, ResendVerificationEmailErrors, ResendVerificationEmailResponses, ResetPasswordData, ResetPasswordErrors, ResetPasswordResponses, RestoreBackupData, RestoreBackupErrors, RestoreBackupResponses, RevokeUserApiKeyData, RevokeUserApiKeyErrors, RevokeUserApiKeyResponses, SelectGraphData, SelectGraphErrors, SelectGraphResponses, SsoTokenExchangeData, SsoTokenExchangeErrors, SsoTokenExchangeResponses, StreamOperationEventsData, StreamOperationEventsErrors, StreamOperationEventsResponses, UpdateFileData, UpdateFileErrors, UpdateFileResponses, UpdateOrgData, UpdateOrgErrors, UpdateOrgMemberRoleData, UpdateOrgMemberRoleErrors, UpdateOrgMemberRoleResponses, UpdateOrgResponses, UpdateUserApiKeyData, UpdateUserApiKeyErrors, UpdateUserApiKeyResponses, UpdateUserData, UpdateUserErrors, UpdateUserPasswordData, UpdateUserPasswordErrors, UpdateUserPasswordResponses, UpdateUserResponses, UpgradeSubscriptionData, UpgradeSubscriptionErrors, UpgradeSubscriptionResponses, ValidateResetTokenData, ValidateResetTokenErrors, ValidateResetTokenResponses, ValidateSchemaData, ValidateSchemaErrors, ValidateSchemaResponses, VerifyEmailData, VerifyEmailErrors, VerifyEmailResponses } from './types.gen';
5
+ import type { AutoSelectAgentData, AutoSelectAgentErrors, AutoSelectAgentResponses, BatchProcessQueriesData, BatchProcessQueriesErrors, BatchProcessQueriesResponses, CallMcpToolData, CallMcpToolErrors, CallMcpToolResponses, CancelOperationData, CancelOperationErrors, CancelOperationResponses, CancelOrgSubscriptionData, CancelOrgSubscriptionErrors, CancelOrgSubscriptionResponses, CheckCreditBalanceData, CheckCreditBalanceErrors, CheckCreditBalanceResponses, CheckPasswordStrengthData, CheckPasswordStrengthErrors, CheckPasswordStrengthResponses, CheckStorageLimitsData, CheckStorageLimitsErrors, CheckStorageLimitsResponses, CompleteSsoAuthData, CompleteSsoAuthErrors, CompleteSsoAuthResponses, CreateBackupData, CreateBackupErrors, CreateBackupResponses, CreateCheckoutSessionData, CreateCheckoutSessionErrors, CreateCheckoutSessionResponses, CreateConnectionData, CreateConnectionErrors, CreateConnectionResponses, CreateFileUploadData, CreateFileUploadErrors, CreateFileUploadResponses, CreateGraphData, CreateGraphErrors, CreateGraphResponses, CreatePortalSessionData, CreatePortalSessionErrors, CreatePortalSessionResponses, CreateRepositorySubscriptionData, CreateRepositorySubscriptionErrors, CreateRepositorySubscriptionResponses, CreateSubgraphData, CreateSubgraphErrors, CreateSubgraphResponses, CreateUserApiKeyData, CreateUserApiKeyErrors, CreateUserApiKeyResponses, CreateViewData, CreateViewErrors, CreateViewResponses, DeleteConnectionData, DeleteConnectionErrors, DeleteConnectionResponses, DeleteFileData, DeleteFileErrors, DeleteFileResponses, DeleteSubgraphData, DeleteSubgraphErrors, DeleteSubgraphResponses, ExecuteCypherQueryData, ExecuteCypherQueryErrors, ExecuteCypherQueryResponses, ExecuteSpecificAgentData, ExecuteSpecificAgentErrors, ExecuteSpecificAgentResponses, ExportGraphSchemaData, ExportGraphSchemaErrors, ExportGraphSchemaResponses, ForgotPasswordData, ForgotPasswordErrors, ForgotPasswordResponses, GenerateSsoTokenData, GenerateSsoTokenErrors, GenerateSsoTokenResponses, GetAgentMetadataData, GetAgentMetadataErrors, GetAgentMetadataResponses, GetAvailableExtensionsData, GetAvailableExtensionsErrors, GetAvailableExtensionsResponses, GetAvailableGraphTiersData, GetAvailableGraphTiersErrors, GetAvailableGraphTiersResponses, GetBackupDownloadUrlData, GetBackupDownloadUrlErrors, GetBackupDownloadUrlResponses, GetBackupStatsData, GetBackupStatsErrors, GetBackupStatsResponses, GetCaptchaConfigData, GetCaptchaConfigResponses, GetCheckoutStatusData, GetCheckoutStatusErrors, GetCheckoutStatusResponses, GetConnectionData, GetConnectionErrors, GetConnectionOptionsData, GetConnectionOptionsErrors, GetConnectionOptionsResponses, GetConnectionResponses, GetCreditSummaryData, GetCreditSummaryErrors, GetCreditSummaryResponses, GetCurrentAuthUserData, GetCurrentAuthUserErrors, GetCurrentAuthUserResponses, GetCurrentUserData, GetCurrentUserResponses, GetDatabaseHealthData, GetDatabaseHealthErrors, GetDatabaseHealthResponses, GetDatabaseInfoData, GetDatabaseInfoErrors, GetDatabaseInfoResponses, GetFileData, GetFileErrors, GetFileResponses, GetGraphCapacityData, GetGraphCapacityErrors, GetGraphCapacityResponses, GetGraphLimitsData, GetGraphLimitsErrors, GetGraphLimitsResponses, GetGraphMetricsData, GetGraphMetricsErrors, GetGraphMetricsResponses, GetGraphSchemaData, GetGraphSchemaErrors, GetGraphSchemaResponses, GetGraphsData, GetGraphsErrors, GetGraphsResponses, GetGraphSubscriptionData, GetGraphSubscriptionErrors, GetGraphSubscriptionResponses, GetGraphUsageAnalyticsData, GetGraphUsageAnalyticsErrors, GetGraphUsageAnalyticsResponses, GetMaterializationStatusData, GetMaterializationStatusErrors, GetMaterializationStatusResponses, GetOperationStatusData, GetOperationStatusErrors, GetOperationStatusResponses, GetOrgBillingCustomerData, GetOrgBillingCustomerErrors, GetOrgBillingCustomerResponses, GetOrgData, GetOrgErrors, GetOrgLimitsData, GetOrgLimitsErrors, GetOrgLimitsResponses, GetOrgResponses, GetOrgSubscriptionData, GetOrgSubscriptionErrors, GetOrgSubscriptionResponses, GetOrgUpcomingInvoiceData, GetOrgUpcomingInvoiceErrors, GetOrgUpcomingInvoiceResponses, GetOrgUsageData, GetOrgUsageErrors, GetOrgUsageResponses, GetPasswordPolicyData, GetPasswordPolicyResponses, GetServiceOfferingsData, GetServiceOfferingsErrors, GetServiceOfferingsResponses, GetServiceStatusData, GetServiceStatusResponses, GetStorageUsageData, GetStorageUsageErrors, GetStorageUsageResponses, GetSubgraphInfoData, GetSubgraphInfoErrors, GetSubgraphInfoResponses, GetSubgraphQuotaData, GetSubgraphQuotaErrors, GetSubgraphQuotaResponses, InitOAuthData, InitOAuthErrors, InitOAuthResponses, InviteOrgMemberData, InviteOrgMemberErrors, InviteOrgMemberResponses, ListAgentsData, ListAgentsErrors, ListAgentsResponses, ListBackupsData, ListBackupsErrors, ListBackupsResponses, ListConnectionsData, ListConnectionsErrors, ListConnectionsResponses, ListCreditTransactionsData, ListCreditTransactionsErrors, ListCreditTransactionsResponses, ListFilesData, ListFilesErrors, ListFilesResponses, ListMcpToolsData, ListMcpToolsErrors, ListMcpToolsResponses, ListOrgGraphsData, ListOrgGraphsErrors, ListOrgGraphsResponses, ListOrgInvoicesData, ListOrgInvoicesErrors, ListOrgInvoicesResponses, ListOrgMembersData, ListOrgMembersErrors, ListOrgMembersResponses, ListOrgSubscriptionsData, ListOrgSubscriptionsErrors, ListOrgSubscriptionsResponses, ListSubgraphsData, ListSubgraphsErrors, ListSubgraphsResponses, ListTablesData, ListTablesErrors, ListTablesResponses, ListUserApiKeysData, ListUserApiKeysResponses, ListUserOrgsData, ListUserOrgsResponses, LoginUserData, LoginUserErrors, LoginUserResponses, LogoutUserData, LogoutUserResponses, MaterializeGraphData, MaterializeGraphErrors, MaterializeGraphResponses, OauthCallbackData, OauthCallbackErrors, OauthCallbackResponses, QueryTablesData, QueryTablesErrors, QueryTablesResponses, RecommendAgentData, RecommendAgentErrors, RecommendAgentResponses, RefreshAuthSessionData, RefreshAuthSessionErrors, RefreshAuthSessionResponses, RegisterUserData, RegisterUserErrors, RegisterUserResponses, RemoveOrgMemberData, RemoveOrgMemberErrors, RemoveOrgMemberResponses, ResendVerificationEmailData, ResendVerificationEmailErrors, ResendVerificationEmailResponses, ResetPasswordData, ResetPasswordErrors, ResetPasswordResponses, RestoreBackupData, RestoreBackupErrors, RestoreBackupResponses, RevokeUserApiKeyData, RevokeUserApiKeyErrors, RevokeUserApiKeyResponses, SelectGraphData, SelectGraphErrors, SelectGraphResponses, SsoTokenExchangeData, SsoTokenExchangeErrors, SsoTokenExchangeResponses, StreamOperationEventsData, StreamOperationEventsErrors, StreamOperationEventsResponses, SyncConnectionData, SyncConnectionErrors, SyncConnectionResponses, UpdateFileData, UpdateFileErrors, UpdateFileResponses, UpdateOrgData, UpdateOrgErrors, UpdateOrgMemberRoleData, UpdateOrgMemberRoleErrors, UpdateOrgMemberRoleResponses, UpdateOrgResponses, UpdateUserApiKeyData, UpdateUserApiKeyErrors, UpdateUserApiKeyResponses, UpdateUserData, UpdateUserErrors, UpdateUserPasswordData, UpdateUserPasswordErrors, UpdateUserPasswordResponses, UpdateUserResponses, UpgradeSubscriptionData, UpgradeSubscriptionErrors, UpgradeSubscriptionResponses, ValidateResetTokenData, ValidateResetTokenErrors, ValidateResetTokenResponses, ValidateSchemaData, ValidateSchemaErrors, ValidateSchemaResponses, VerifyEmailData, VerifyEmailErrors, VerifyEmailResponses } from './types.gen';
6
6
 
7
7
  export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {
8
8
  /**
@@ -301,21 +301,6 @@ export const listUserOrgs = <ThrowOnError extends boolean = false>(options?: Opt
301
301
  ...options
302
302
  });
303
303
 
304
- /**
305
- * Create Organization
306
- *
307
- * Create a new organization. The creating user becomes the owner.
308
- */
309
- export const createOrg = <ThrowOnError extends boolean = false>(options: Options<CreateOrgData, ThrowOnError>) => (options.client ?? client).post<CreateOrgResponses, CreateOrgErrors, ThrowOnError>({
310
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
311
- url: '/v1/orgs',
312
- ...options,
313
- headers: {
314
- 'Content-Type': 'application/json',
315
- ...options.headers
316
- }
317
- });
318
-
319
304
  /**
320
305
  * Get Organization
321
306
  *
@@ -430,6 +415,211 @@ export const getOrgUsage = <ThrowOnError extends boolean = false>(options: Optio
430
415
  ...options
431
416
  });
432
417
 
418
+ /**
419
+ * List Connections
420
+ *
421
+ * List all data connections in the graph.
422
+ *
423
+ * Returns active and inactive connections with their current status.
424
+ * Connections can be filtered by:
425
+ * - **Entity**: Show connections for a specific entity
426
+ * - **Provider**: Filter by connection type (sec, quickbooks)
427
+ *
428
+ * Each connection shows:
429
+ * - Current sync status and health
430
+ * - Last successful sync timestamp
431
+ * - Configuration metadata
432
+ * - Error messages if any
433
+ *
434
+ * No credits are consumed for listing connections.
435
+ */
436
+ export const listConnections = <ThrowOnError extends boolean = false>(options: Options<ListConnectionsData, ThrowOnError>) => (options.client ?? client).get<ListConnectionsResponses, ListConnectionsErrors, ThrowOnError>({
437
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
438
+ url: '/v1/graphs/{graph_id}/connections',
439
+ ...options
440
+ });
441
+
442
+ /**
443
+ * Create Connection
444
+ *
445
+ * Create a new data connection for external system integration.
446
+ *
447
+ * This endpoint initiates connections to external data sources:
448
+ *
449
+ * **SEC Connections**:
450
+ * - Provide entity CIK for automatic filing retrieval
451
+ * - No authentication needed
452
+ * - Begins immediate data sync
453
+ *
454
+ * **QuickBooks Connections**:
455
+ * - Returns OAuth URL for authorization
456
+ * - Requires admin permissions in QuickBooks
457
+ * - Complete with OAuth callback
458
+ *
459
+ * Note:
460
+ * This operation is included - no credit consumption required.
461
+ */
462
+ export const createConnection = <ThrowOnError extends boolean = false>(options: Options<CreateConnectionData, ThrowOnError>) => (options.client ?? client).post<CreateConnectionResponses, CreateConnectionErrors, ThrowOnError>({
463
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
464
+ url: '/v1/graphs/{graph_id}/connections',
465
+ ...options,
466
+ headers: {
467
+ 'Content-Type': 'application/json',
468
+ ...options.headers
469
+ }
470
+ });
471
+
472
+ /**
473
+ * List Connection Options
474
+ *
475
+ * Get metadata about all available data connection providers.
476
+ *
477
+ * This endpoint returns comprehensive information about each supported provider:
478
+ *
479
+ * **SEC EDGAR**: Public entity financial filings
480
+ * - No authentication required (public data)
481
+ * - 10-K, 10-Q, 8-K reports with XBRL data
482
+ * - Historical and real-time filing access
483
+ *
484
+ * **QuickBooks Online**: Full accounting system integration
485
+ * - OAuth 2.0 authentication
486
+ * - Chart of accounts, transactions, trial balance
487
+ * - Real-time sync capabilities
488
+ *
489
+ * No credits are consumed for viewing connection options.
490
+ */
491
+ export const getConnectionOptions = <ThrowOnError extends boolean = false>(options: Options<GetConnectionOptionsData, ThrowOnError>) => (options.client ?? client).get<GetConnectionOptionsResponses, GetConnectionOptionsErrors, ThrowOnError>({
492
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
493
+ url: '/v1/graphs/{graph_id}/connections/options',
494
+ ...options
495
+ });
496
+
497
+ /**
498
+ * Init Oauth
499
+ *
500
+ * Initialize OAuth flow for a connection.
501
+ *
502
+ * This generates an authorization URL that the frontend should redirect the user to.
503
+ * Currently supports: QuickBooks
504
+ */
505
+ export const initOAuth = <ThrowOnError extends boolean = false>(options: Options<InitOAuthData, ThrowOnError>) => (options.client ?? client).post<InitOAuthResponses, InitOAuthErrors, ThrowOnError>({
506
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
507
+ url: '/v1/graphs/{graph_id}/connections/oauth/init',
508
+ ...options,
509
+ headers: {
510
+ 'Content-Type': 'application/json',
511
+ ...options.headers
512
+ }
513
+ });
514
+
515
+ /**
516
+ * OAuth Callback
517
+ *
518
+ * Handle OAuth callback from provider after user authorization.
519
+ *
520
+ * This endpoint completes the OAuth flow:
521
+ * 1. Validates the OAuth state parameter
522
+ * 2. Exchanges authorization code for access tokens
523
+ * 3. Stores tokens securely
524
+ * 4. Updates connection status
525
+ * 5. Optionally triggers initial sync
526
+ *
527
+ * Supported providers:
528
+ * - **QuickBooks**: Accounting data integration
529
+ *
530
+ * Security measures:
531
+ * - State validation prevents session hijacking
532
+ * - User context is verified
533
+ * - Tokens are encrypted before storage
534
+ * - Full audit trail is maintained
535
+ *
536
+ * No credits are consumed for OAuth callbacks.
537
+ */
538
+ export const oauthCallback = <ThrowOnError extends boolean = false>(options: Options<OauthCallbackData, ThrowOnError>) => (options.client ?? client).post<OauthCallbackResponses, OauthCallbackErrors, ThrowOnError>({
539
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
540
+ url: '/v1/graphs/{graph_id}/connections/oauth/callback/{provider}',
541
+ ...options,
542
+ headers: {
543
+ 'Content-Type': 'application/json',
544
+ ...options.headers
545
+ }
546
+ });
547
+
548
+ /**
549
+ * Delete Connection
550
+ *
551
+ * Delete a data connection and clean up related resources.
552
+ *
553
+ * This operation:
554
+ * - Removes the connection configuration
555
+ * - Preserves any imported data in the graph
556
+ * - Performs provider-specific cleanup
557
+ * - Revokes stored credentials
558
+ *
559
+ * Note:
560
+ * This operation is included - no credit consumption required.
561
+ *
562
+ * Only users with admin role can delete connections.
563
+ */
564
+ export const deleteConnection = <ThrowOnError extends boolean = false>(options: Options<DeleteConnectionData, ThrowOnError>) => (options.client ?? client).delete<DeleteConnectionResponses, DeleteConnectionErrors, ThrowOnError>({
565
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
566
+ url: '/v1/graphs/{graph_id}/connections/{connection_id}',
567
+ ...options
568
+ });
569
+
570
+ /**
571
+ * Get Connection
572
+ *
573
+ * Get detailed information about a specific connection.
574
+ *
575
+ * Returns comprehensive connection details including:
576
+ * - Current status and health indicators
577
+ * - Authentication state
578
+ * - Sync history and statistics
579
+ * - Error details if any
580
+ * - Provider-specific metadata
581
+ *
582
+ * No credits are consumed for viewing connection details.
583
+ */
584
+ export const getConnection = <ThrowOnError extends boolean = false>(options: Options<GetConnectionData, ThrowOnError>) => (options.client ?? client).get<GetConnectionResponses, GetConnectionErrors, ThrowOnError>({
585
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
586
+ url: '/v1/graphs/{graph_id}/connections/{connection_id}',
587
+ ...options
588
+ });
589
+
590
+ /**
591
+ * Sync Connection
592
+ *
593
+ * Trigger a data synchronization for the connection.
594
+ *
595
+ * Initiates data sync based on provider type:
596
+ *
597
+ * **SEC Sync**:
598
+ * - Downloads latest filings from EDGAR
599
+ * - Parses XBRL data and updates graph
600
+ * - Typically completes in 5-10 minutes
601
+ *
602
+ * **QuickBooks Sync**:
603
+ * - Fetches latest transactions and balances
604
+ * - Updates chart of accounts
605
+ * - Generates fresh trial balance
606
+ * - Duration depends on data volume
607
+ *
608
+ * Note:
609
+ * This operation is included - no credit consumption required.
610
+ *
611
+ * Returns a task ID for monitoring sync progress.
612
+ */
613
+ export const syncConnection = <ThrowOnError extends boolean = false>(options: Options<SyncConnectionData, ThrowOnError>) => (options.client ?? client).post<SyncConnectionResponses, SyncConnectionErrors, ThrowOnError>({
614
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
615
+ url: '/v1/graphs/{graph_id}/connections/{connection_id}/sync',
616
+ ...options,
617
+ headers: {
618
+ 'Content-Type': 'application/json',
619
+ ...options.headers
620
+ }
621
+ });
622
+
433
623
  /**
434
624
  * List available agents
435
625
  *
@@ -1548,10 +1738,10 @@ export const getSubgraphInfo = <ThrowOnError extends boolean = false>(options: O
1548
1738
  * - Total size usage across all subgraphs
1549
1739
  *
1550
1740
  * **Tier Limits:**
1551
- * - Standard: 0 subgraphs (not supported)
1552
- * - Enterprise: Configurable limit (default: 10 subgraphs)
1553
- * - Premium: Unlimited subgraphs
1554
- * - Limits are defined in deployment configuration
1741
+ * - Standard: Up to 3 subgraphs (dedicated m7g.large instance)
1742
+ * - Large: Up to 10 subgraphs (dedicated r7g.large instance)
1743
+ * - XLarge: Up to 25 subgraphs (dedicated r7g.xlarge instance)
1744
+ * - Limits are defined in graph.yml deployment configuration
1555
1745
  *
1556
1746
  * **Size Tracking:**
1557
1747
  * Provides aggregate size metrics when available.
@@ -1731,6 +1921,25 @@ export const queryTables = <ThrowOnError extends boolean = false>(options: Optio
1731
1921
  }
1732
1922
  });
1733
1923
 
1924
+ /**
1925
+ * Create View
1926
+ *
1927
+ * Build a fact grid from existing facts in the graph.
1928
+ *
1929
+ * Queries Fact nodes by element qnames or canonical concepts, with optional
1930
+ * filters for periods, entities, filing form, fiscal context, and period type.
1931
+ * Returns deduplicated consolidated facts as a pivot table.
1932
+ */
1933
+ export const createView = <ThrowOnError extends boolean = false>(options: Options<CreateViewData, ThrowOnError>) => (options.client ?? client).post<CreateViewResponses, CreateViewErrors, ThrowOnError>({
1934
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
1935
+ url: '/v1/graphs/{graph_id}/views',
1936
+ ...options,
1937
+ headers: {
1938
+ 'Content-Type': 'application/json',
1939
+ ...options.headers
1940
+ }
1941
+ });
1942
+
1734
1943
  /**
1735
1944
  * Get Materialization Status
1736
1945
  *
@@ -2187,7 +2396,7 @@ export const createGraph = <ThrowOnError extends boolean = false>(options: Optio
2187
2396
  *
2188
2397
  * **Available Extensions:**
2189
2398
  * - **RoboLedger**: Complete accounting system with XBRL reporting, general ledger, and financial statements
2190
- * - **RoboInvestor**: Investment portfolio management and tracking
2399
+ * - **RoboInvestor**: Investment portfolio management with securities tracking, trade execution, and risk analysis
2191
2400
  * - **RoboSCM**: Supply chain management and logistics
2192
2401
  * - **RoboFO**: Front office operations and CRM
2193
2402
  * - **RoboHRM**: Human resources management