@robosystems/client 0.2.48 → 0.3.0

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.
Files changed (190) hide show
  1. package/extensions/InvestorClient.d.ts +91 -0
  2. package/extensions/InvestorClient.js +223 -0
  3. package/extensions/InvestorClient.ts +501 -0
  4. package/extensions/LedgerClient.d.ts +213 -165
  5. package/extensions/LedgerClient.js +315 -393
  6. package/extensions/LedgerClient.ts +887 -564
  7. package/extensions/ReportClient.d.ts +77 -115
  8. package/extensions/ReportClient.js +124 -211
  9. package/extensions/ReportClient.ts +298 -358
  10. package/extensions/config.js +1 -1
  11. package/extensions/config.ts +1 -1
  12. package/extensions/graphql/client.d.ts +46 -0
  13. package/extensions/graphql/client.js +75 -0
  14. package/extensions/graphql/client.ts +82 -0
  15. package/extensions/graphql/generated/graphql.d.ts +1786 -0
  16. package/extensions/graphql/generated/graphql.js +2671 -0
  17. package/extensions/graphql/generated/graphql.ts +4491 -0
  18. package/extensions/graphql/queries/investor/holdings.d.ts +8 -0
  19. package/extensions/graphql/queries/investor/holdings.js +36 -0
  20. package/extensions/graphql/queries/investor/holdings.ts +34 -0
  21. package/extensions/graphql/queries/investor/portfolio.d.ts +4 -0
  22. package/extensions/graphql/queries/investor/portfolio.js +21 -0
  23. package/extensions/graphql/queries/investor/portfolio.ts +19 -0
  24. package/extensions/graphql/queries/investor/portfolios.d.ts +4 -0
  25. package/extensions/graphql/queries/investor/portfolios.js +29 -0
  26. package/extensions/graphql/queries/investor/portfolios.ts +27 -0
  27. package/extensions/graphql/queries/investor/position.d.ts +4 -0
  28. package/extensions/graphql/queries/investor/position.js +33 -0
  29. package/extensions/graphql/queries/investor/position.ts +31 -0
  30. package/extensions/graphql/queries/investor/positions.d.ts +8 -0
  31. package/extensions/graphql/queries/investor/positions.js +57 -0
  32. package/extensions/graphql/queries/investor/positions.ts +55 -0
  33. package/extensions/graphql/queries/investor/securities.d.ts +8 -0
  34. package/extensions/graphql/queries/investor/securities.js +50 -0
  35. package/extensions/graphql/queries/investor/securities.ts +48 -0
  36. package/extensions/graphql/queries/investor/security.d.ts +4 -0
  37. package/extensions/graphql/queries/investor/security.js +26 -0
  38. package/extensions/graphql/queries/investor/security.ts +24 -0
  39. package/extensions/graphql/queries/ledger/accountRollups.d.ts +7 -0
  40. package/extensions/graphql/queries/ledger/accountRollups.js +36 -0
  41. package/extensions/graphql/queries/ledger/accountRollups.ts +34 -0
  42. package/extensions/graphql/queries/ledger/accountTree.d.ts +11 -0
  43. package/extensions/graphql/queries/ledger/accountTree.js +61 -0
  44. package/extensions/graphql/queries/ledger/accountTree.ts +59 -0
  45. package/extensions/graphql/queries/ledger/accounts.d.ts +8 -0
  46. package/extensions/graphql/queries/ledger/accounts.js +45 -0
  47. package/extensions/graphql/queries/ledger/accounts.ts +43 -0
  48. package/extensions/graphql/queries/ledger/closingBookStructures.d.ts +6 -0
  49. package/extensions/graphql/queries/ledger/closingBookStructures.js +27 -0
  50. package/extensions/graphql/queries/ledger/closingBookStructures.ts +25 -0
  51. package/extensions/graphql/queries/ledger/elements.d.ts +6 -0
  52. package/extensions/graphql/queries/ledger/elements.js +56 -0
  53. package/extensions/graphql/queries/ledger/elements.ts +54 -0
  54. package/extensions/graphql/queries/ledger/entities.d.ts +7 -0
  55. package/extensions/graphql/queries/ledger/entities.js +31 -0
  56. package/extensions/graphql/queries/ledger/entities.ts +29 -0
  57. package/extensions/graphql/queries/ledger/entity.d.ts +14 -0
  58. package/extensions/graphql/queries/ledger/entity.js +55 -0
  59. package/extensions/graphql/queries/ledger/entity.ts +54 -0
  60. package/extensions/graphql/queries/ledger/fiscalCalendar.d.ts +8 -0
  61. package/extensions/graphql/queries/ledger/fiscalCalendar.js +35 -0
  62. package/extensions/graphql/queries/ledger/fiscalCalendar.ts +33 -0
  63. package/extensions/graphql/queries/ledger/mappedTrialBalance.d.ts +9 -0
  64. package/extensions/graphql/queries/ledger/mappedTrialBalance.js +29 -0
  65. package/extensions/graphql/queries/ledger/mappedTrialBalance.ts +27 -0
  66. package/extensions/graphql/queries/ledger/mapping.d.ts +5 -0
  67. package/extensions/graphql/queries/ledger/mapping.js +35 -0
  68. package/extensions/graphql/queries/ledger/mapping.ts +33 -0
  69. package/extensions/graphql/queries/ledger/mappingCoverage.d.ts +5 -0
  70. package/extensions/graphql/queries/ledger/mappingCoverage.js +22 -0
  71. package/extensions/graphql/queries/ledger/mappingCoverage.ts +20 -0
  72. package/extensions/graphql/queries/ledger/mappings.d.ts +6 -0
  73. package/extensions/graphql/queries/ledger/mappings.js +23 -0
  74. package/extensions/graphql/queries/ledger/mappings.ts +21 -0
  75. package/extensions/graphql/queries/ledger/periodCloseStatus.d.ts +6 -0
  76. package/extensions/graphql/queries/ledger/periodCloseStatus.js +29 -0
  77. package/extensions/graphql/queries/ledger/periodCloseStatus.ts +27 -0
  78. package/extensions/graphql/queries/ledger/periodDrafts.d.ts +8 -0
  79. package/extensions/graphql/queries/ledger/periodDrafts.js +45 -0
  80. package/extensions/graphql/queries/ledger/periodDrafts.ts +43 -0
  81. package/extensions/graphql/queries/ledger/publishList.d.ts +5 -0
  82. package/extensions/graphql/queries/ledger/publishList.js +29 -0
  83. package/extensions/graphql/queries/ledger/publishList.ts +27 -0
  84. package/extensions/graphql/queries/ledger/publishLists.d.ts +5 -0
  85. package/extensions/graphql/queries/ledger/publishLists.js +29 -0
  86. package/extensions/graphql/queries/ledger/publishLists.ts +27 -0
  87. package/extensions/graphql/queries/ledger/report.d.ts +5 -0
  88. package/extensions/graphql/queries/ledger/report.js +40 -0
  89. package/extensions/graphql/queries/ledger/report.ts +38 -0
  90. package/extensions/graphql/queries/ledger/reportingTaxonomy.d.ts +6 -0
  91. package/extensions/graphql/queries/ledger/reportingTaxonomy.js +27 -0
  92. package/extensions/graphql/queries/ledger/reportingTaxonomy.ts +25 -0
  93. package/extensions/graphql/queries/ledger/reports.d.ts +8 -0
  94. package/extensions/graphql/queries/ledger/reports.js +45 -0
  95. package/extensions/graphql/queries/ledger/reports.ts +43 -0
  96. package/extensions/graphql/queries/ledger/scheduleFacts.d.ts +7 -0
  97. package/extensions/graphql/queries/ledger/scheduleFacts.js +24 -0
  98. package/extensions/graphql/queries/ledger/scheduleFacts.ts +22 -0
  99. package/extensions/graphql/queries/ledger/schedules.d.ts +6 -0
  100. package/extensions/graphql/queries/ledger/schedules.js +24 -0
  101. package/extensions/graphql/queries/ledger/schedules.ts +22 -0
  102. package/extensions/graphql/queries/ledger/statement.d.ts +9 -0
  103. package/extensions/graphql/queries/ledger/statement.js +43 -0
  104. package/extensions/graphql/queries/ledger/statement.ts +41 -0
  105. package/extensions/graphql/queries/ledger/structures.d.ts +5 -0
  106. package/extensions/graphql/queries/ledger/structures.js +22 -0
  107. package/extensions/graphql/queries/ledger/structures.ts +20 -0
  108. package/extensions/graphql/queries/ledger/summary.d.ts +7 -0
  109. package/extensions/graphql/queries/ledger/summary.js +25 -0
  110. package/extensions/graphql/queries/ledger/summary.ts +23 -0
  111. package/extensions/graphql/queries/ledger/taxonomies.d.ts +5 -0
  112. package/extensions/graphql/queries/ledger/taxonomies.js +28 -0
  113. package/extensions/graphql/queries/ledger/taxonomies.ts +26 -0
  114. package/extensions/graphql/queries/ledger/transaction.d.ts +6 -0
  115. package/extensions/graphql/queries/ledger/transaction.js +49 -0
  116. package/extensions/graphql/queries/ledger/transaction.ts +47 -0
  117. package/extensions/graphql/queries/ledger/transactions.d.ts +7 -0
  118. package/extensions/graphql/queries/ledger/transactions.js +49 -0
  119. package/extensions/graphql/queries/ledger/transactions.ts +47 -0
  120. package/extensions/graphql/queries/ledger/trialBalance.d.ts +7 -0
  121. package/extensions/graphql/queries/ledger/trialBalance.js +28 -0
  122. package/extensions/graphql/queries/ledger/trialBalance.ts +26 -0
  123. package/extensions/graphql/queries/ledger/unmappedElements.d.ts +8 -0
  124. package/extensions/graphql/queries/ledger/unmappedElements.js +29 -0
  125. package/extensions/graphql/queries/ledger/unmappedElements.ts +27 -0
  126. package/extensions/hooks.d.ts +1 -1
  127. package/extensions/index.d.ts +5 -1
  128. package/extensions/index.js +13 -1
  129. package/extensions/index.ts +14 -0
  130. package/index.ts +2 -2
  131. package/package.json +14 -5
  132. package/sdk/index.d.ts +2 -2
  133. package/sdk/index.js +38 -65
  134. package/sdk/index.ts +2 -2
  135. package/sdk/sdk.gen.d.ts +101 -220
  136. package/sdk/sdk.gen.js +251 -445
  137. package/sdk/sdk.gen.ts +216 -409
  138. package/sdk/types.gen.d.ts +4586 -7045
  139. package/sdk/types.gen.ts +4702 -7334
  140. package/sdk.gen.d.ts +101 -220
  141. package/sdk.gen.js +251 -445
  142. package/sdk.gen.ts +216 -409
  143. package/types.gen.d.ts +4586 -7045
  144. package/types.gen.ts +4702 -7334
  145. package/extensions/AgentClient.test.ts +0 -403
  146. package/extensions/LedgerClient.test.ts +0 -1138
  147. package/extensions/OperationClient.test.ts +0 -365
  148. package/extensions/QueryClient.test.ts +0 -432
  149. package/extensions/ReportClient.test.ts +0 -828
  150. package/extensions/SSEClient.test.ts +0 -375
  151. package/extensions/config.test.ts +0 -199
  152. package/extensions/hooks.test.ts +0 -373
  153. package/extensions/index.test.ts +0 -420
  154. package/sdk-extensions/AgentClient.d.ts +0 -82
  155. package/sdk-extensions/AgentClient.js +0 -218
  156. package/sdk-extensions/AgentClient.test.ts +0 -403
  157. package/sdk-extensions/AgentClient.ts +0 -321
  158. package/sdk-extensions/LedgerClient.d.ts +0 -242
  159. package/sdk-extensions/LedgerClient.js +0 -496
  160. package/sdk-extensions/LedgerClient.test.ts +0 -1138
  161. package/sdk-extensions/LedgerClient.ts +0 -800
  162. package/sdk-extensions/OperationClient.d.ts +0 -65
  163. package/sdk-extensions/OperationClient.js +0 -251
  164. package/sdk-extensions/OperationClient.test.ts +0 -365
  165. package/sdk-extensions/OperationClient.ts +0 -324
  166. package/sdk-extensions/QueryClient.d.ts +0 -52
  167. package/sdk-extensions/QueryClient.js +0 -313
  168. package/sdk-extensions/QueryClient.test.ts +0 -432
  169. package/sdk-extensions/QueryClient.ts +0 -420
  170. package/sdk-extensions/README.md +0 -901
  171. package/sdk-extensions/ReportClient.d.ts +0 -151
  172. package/sdk-extensions/ReportClient.js +0 -278
  173. package/sdk-extensions/ReportClient.test.ts +0 -828
  174. package/sdk-extensions/ReportClient.ts +0 -486
  175. package/sdk-extensions/SSEClient.d.ts +0 -62
  176. package/sdk-extensions/SSEClient.js +0 -154
  177. package/sdk-extensions/SSEClient.test.ts +0 -375
  178. package/sdk-extensions/SSEClient.ts +0 -210
  179. package/sdk-extensions/config.d.ts +0 -57
  180. package/sdk-extensions/config.js +0 -152
  181. package/sdk-extensions/config.test.ts +0 -199
  182. package/sdk-extensions/config.ts +0 -175
  183. package/sdk-extensions/hooks.d.ts +0 -110
  184. package/sdk-extensions/hooks.js +0 -384
  185. package/sdk-extensions/hooks.test.ts +0 -373
  186. package/sdk-extensions/hooks.ts +0 -459
  187. package/sdk-extensions/index.d.ts +0 -63
  188. package/sdk-extensions/index.js +0 -164
  189. package/sdk-extensions/index.test.ts +0 -420
  190. package/sdk-extensions/index.ts +0 -203
package/sdk/sdk.gen.js CHANGED
@@ -2,9 +2,8 @@
2
2
  // This file is auto-generated by @hey-api/openapi-ts
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
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.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.uploadDocumentsBulk = exports.updateDocument = exports.getDocument = exports.deleteDocument = exports.uploadDocument = exports.listDocuments = exports.getDocumentSection = exports.searchDocuments = exports.createView = exports.queryTables = exports.listTables = exports.createRepositorySubscription = exports.changeSubscriptionPlan = exports.getGraphSubscription = exports.getSubgraphQuota = exports.getSubgraphInfo = exports.deleteSubgraph = exports.createSubgraph = exports.listSubgraphs = exports.getGraphLimits = exports.getDatabaseInfo = exports.getDatabaseHealth = 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.getPublishList = exports.deletePublishList = exports.createPublishList = exports.listPublishLists = exports.createClosingEntry = exports.getPeriodCloseStatus = exports.getScheduleFacts = exports.createSchedule = exports.listSchedules = exports.shareReport = exports.regenerateReport = exports.getStatement = exports.getReport = exports.deleteReport = exports.createReport = exports.listReports = exports.getLedgerSummary = exports.getLedgerTrialBalance = exports.getLedgerTransaction = exports.listLedgerTransactions = exports.autoMapElements = exports.getMappedTrialBalance = exports.getMappingCoverage = exports.deleteMappingAssociation = exports.createMappingAssociation = exports.getMappingDetail = exports.listMappings = exports.createStructure = exports.listStructures = exports.listUnmappedElements = exports.listElements = exports.getReportingTaxonomy = exports.createTaxonomy = exports.listTaxonomies = exports.getLedgerAccountTree = exports.listLedgerAccounts = exports.listLedgerEntities = exports.updateLedgerEntity = exports.getLedgerEntity = exports.getCheckoutStatus = exports.createCheckoutSession = exports.getOrgUpcomingInvoice = exports.listOrgInvoices = exports.cancelOrgSubscription = exports.getOrgSubscription = exports.listOrgSubscriptions = exports.createPortalSession = exports.getOrgBillingCustomer = exports.cancelOperation = exports.getOperationStatus = void 0;
7
- exports.listHoldings = exports.updatePosition = exports.getPosition = exports.deletePosition = exports.createPosition = exports.listPositions = exports.updateSecurity = exports.getSecurity = exports.deleteSecurity = exports.createSecurity = exports.listSecurities = exports.updatePortfolio = exports.getPortfolio = exports.deletePortfolio = exports.createPortfolio = exports.listPortfolios = exports.getClosingBookStructures = exports.getAccountRollups = exports.removePublishListMember = exports.addPublishListMembers = exports.updatePublishList = void 0;
5
+ 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.uploadDocumentsBulk = exports.updateDocument = exports.getDocument = exports.deleteDocument = exports.uploadDocument = exports.listDocuments = exports.getDocumentSection = exports.searchDocuments = exports.queryTables = exports.listTables = exports.createRepositorySubscription = exports.changeSubscriptionPlan = exports.getGraphSubscription = exports.getSubgraphQuota = exports.getSubgraphInfo = exports.deleteSubgraph = exports.createSubgraph = exports.listSubgraphs = exports.getGraphLimits = exports.getDatabaseInfo = exports.getDatabaseHealth = 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.opDeletePosition = exports.opUpdatePosition = exports.opCreatePosition = exports.opDeleteSecurity = exports.opUpdateSecurity = exports.opCreateSecurity = exports.opDeletePortfolio = exports.opUpdatePortfolio = exports.opCreatePortfolio = exports.opBuildFactGrid = exports.opRemovePublishListMember = exports.opAddPublishListMembers = exports.opDeletePublishList = exports.opUpdatePublishList = exports.opCreatePublishList = exports.opShareReport = exports.opDeleteReport = exports.opRegenerateReport = exports.opCreateReport = exports.opAutoMapElements = exports.opDeleteMappingAssociation = exports.opCreateMappingAssociation = exports.opCreateStructure = exports.opCreateTaxonomy = exports.opCreateManualClosingEntry = exports.opCreateClosingEntry = exports.opTruncateSchedule = exports.opCreateSchedule = exports.opReopenPeriod = exports.opClosePeriod = exports.opSetCloseTarget = exports.opInitializeLedger = exports.opUpdateEntity = exports.handleHttpPostExtensionsGraphIdGraphqlPost = exports.handleHttpGetExtensionsGraphIdGraphqlGet = exports.getCheckoutStatus = exports.createCheckoutSession = exports.getOrgUpcomingInvoice = exports.listOrgInvoices = exports.cancelOrgSubscription = exports.getOrgSubscription = exports.listOrgSubscriptions = exports.createPortalSession = exports.getOrgBillingCustomer = exports.cancelOperation = void 0;
8
7
  const client_gen_1 = require("./client.gen");
9
8
  /**
10
9
  * Register New User
@@ -1861,25 +1860,6 @@ const queryTables = (options) => (options.client ?? client_gen_1.client).post({
1861
1860
  }
1862
1861
  });
1863
1862
  exports.queryTables = queryTables;
1864
- /**
1865
- * Create View
1866
- *
1867
- * Build a fact grid from existing facts in the graph.
1868
- *
1869
- * Queries Fact nodes by element qnames or canonical concepts, with optional
1870
- * filters for periods, entities, filing form, fiscal context, and period type.
1871
- * Returns deduplicated consolidated facts as a pivot table.
1872
- */
1873
- const createView = (options) => (options.client ?? client_gen_1.client).post({
1874
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
1875
- url: '/v1/graphs/{graph_id}/views',
1876
- ...options,
1877
- headers: {
1878
- 'Content-Type': 'application/json',
1879
- ...options.headers
1880
- }
1881
- });
1882
- exports.createView = createView;
1883
1863
  /**
1884
1864
  * Search Documents
1885
1865
  *
@@ -2876,692 +2856,518 @@ const getCheckoutStatus = (options) => (options.client ?? client_gen_1.client).g
2876
2856
  });
2877
2857
  exports.getCheckoutStatus = getCheckoutStatus;
2878
2858
  /**
2879
- * Get Entity
2880
- *
2881
- * Get the entity for this ledger graph.
2859
+ * Handle Http Get
2882
2860
  */
2883
- const getLedgerEntity = (options) => (options.client ?? client_gen_1.client).get({
2861
+ const handleHttpGetExtensionsGraphIdGraphqlGet = (options) => (options.client ?? client_gen_1.client).get({
2884
2862
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
2885
- url: '/v1/ledger/{graph_id}/entity',
2863
+ url: '/extensions/{graph_id}/graphql',
2886
2864
  ...options
2887
2865
  });
2888
- exports.getLedgerEntity = getLedgerEntity;
2866
+ exports.handleHttpGetExtensionsGraphIdGraphqlGet = handleHttpGetExtensionsGraphIdGraphqlGet;
2867
+ /**
2868
+ * Handle Http Post
2869
+ */
2870
+ const handleHttpPostExtensionsGraphIdGraphqlPost = (options) => (options.client ?? client_gen_1.client).post({
2871
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
2872
+ url: '/extensions/{graph_id}/graphql',
2873
+ ...options
2874
+ });
2875
+ exports.handleHttpPostExtensionsGraphIdGraphqlPost = handleHttpPostExtensionsGraphIdGraphqlPost;
2889
2876
  /**
2890
2877
  * Update Entity
2891
2878
  *
2892
2879
  * Update entity details. Only provided (non-null) fields are updated.
2893
2880
  */
2894
- const updateLedgerEntity = (options) => (options.client ?? client_gen_1.client).put({
2881
+ const opUpdateEntity = (options) => (options.client ?? client_gen_1.client).post({
2895
2882
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
2896
- url: '/v1/ledger/{graph_id}/entity',
2883
+ url: '/extensions/roboledger/{graph_id}/operations/update-entity',
2897
2884
  ...options,
2898
2885
  headers: {
2899
2886
  'Content-Type': 'application/json',
2900
2887
  ...options.headers
2901
2888
  }
2902
2889
  });
2903
- exports.updateLedgerEntity = updateLedgerEntity;
2890
+ exports.opUpdateEntity = opUpdateEntity;
2904
2891
  /**
2905
- * List Entities
2892
+ * Initialize Ledger
2906
2893
  *
2907
- * List entities for this graph, optionally filtered by source.
2908
- */
2909
- const listLedgerEntities = (options) => (options.client ?? client_gen_1.client).get({
2910
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
2911
- url: '/v1/ledger/{graph_id}/entities',
2912
- ...options
2913
- });
2914
- exports.listLedgerEntities = listLedgerEntities;
2915
- /**
2916
- * List Accounts
2917
- */
2918
- const listLedgerAccounts = (options) => (options.client ?? client_gen_1.client).get({
2919
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
2920
- url: '/v1/ledger/{graph_id}/accounts',
2921
- ...options
2922
- });
2923
- exports.listLedgerAccounts = listLedgerAccounts;
2924
- /**
2925
- * Account Tree
2894
+ * One-time ledger initialization create fiscal calendar + seed periods.
2926
2895
  */
2927
- const getLedgerAccountTree = (options) => (options.client ?? client_gen_1.client).get({
2896
+ const opInitializeLedger = (options) => (options.client ?? client_gen_1.client).post({
2928
2897
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
2929
- url: '/v1/ledger/{graph_id}/accounts/tree',
2930
- ...options
2898
+ url: '/extensions/roboledger/{graph_id}/operations/initialize',
2899
+ ...options,
2900
+ headers: {
2901
+ 'Content-Type': 'application/json',
2902
+ ...options.headers
2903
+ }
2931
2904
  });
2932
- exports.getLedgerAccountTree = getLedgerAccountTree;
2905
+ exports.opInitializeLedger = opInitializeLedger;
2933
2906
  /**
2934
- * List Taxonomies
2907
+ * Set Close Target
2908
+ *
2909
+ * Set the user-controlled close target (YYYY-MM).
2935
2910
  */
2936
- const listTaxonomies = (options) => (options.client ?? client_gen_1.client).get({
2911
+ const opSetCloseTarget = (options) => (options.client ?? client_gen_1.client).post({
2937
2912
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
2938
- url: '/v1/ledger/{graph_id}/taxonomies',
2939
- ...options
2913
+ url: '/extensions/roboledger/{graph_id}/operations/set-close-target',
2914
+ ...options,
2915
+ headers: {
2916
+ 'Content-Type': 'application/json',
2917
+ ...options.headers
2918
+ }
2940
2919
  });
2941
- exports.listTaxonomies = listTaxonomies;
2920
+ exports.opSetCloseTarget = opSetCloseTarget;
2942
2921
  /**
2943
- * Create Taxonomy
2922
+ * Close Fiscal Period
2923
+ *
2924
+ * Close a fiscal period — the final commit action.
2944
2925
  */
2945
- const createTaxonomy = (options) => (options.client ?? client_gen_1.client).post({
2926
+ const opClosePeriod = (options) => (options.client ?? client_gen_1.client).post({
2946
2927
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
2947
- url: '/v1/ledger/{graph_id}/taxonomies',
2928
+ url: '/extensions/roboledger/{graph_id}/operations/close-period',
2948
2929
  ...options,
2949
2930
  headers: {
2950
2931
  'Content-Type': 'application/json',
2951
2932
  ...options.headers
2952
2933
  }
2953
2934
  });
2954
- exports.createTaxonomy = createTaxonomy;
2935
+ exports.opClosePeriod = opClosePeriod;
2955
2936
  /**
2956
- * Get Reporting Taxonomy
2937
+ * Reopen Fiscal Period
2957
2938
  *
2958
- * Get the shared US GAAP reporting taxonomy (read-only).
2939
+ * Reopen a closed fiscal period decrements `closed_through`.
2959
2940
  */
2960
- const getReportingTaxonomy = (options) => (options.client ?? client_gen_1.client).get({
2941
+ const opReopenPeriod = (options) => (options.client ?? client_gen_1.client).post({
2961
2942
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
2962
- url: '/v1/ledger/{graph_id}/taxonomies/reporting',
2963
- ...options
2943
+ url: '/extensions/roboledger/{graph_id}/operations/reopen-period',
2944
+ ...options,
2945
+ headers: {
2946
+ 'Content-Type': 'application/json',
2947
+ ...options.headers
2948
+ }
2964
2949
  });
2965
- exports.getReportingTaxonomy = getReportingTaxonomy;
2950
+ exports.opReopenPeriod = opReopenPeriod;
2966
2951
  /**
2967
- * List Elements
2952
+ * Create Schedule
2953
+ *
2954
+ * Create a schedule with pre-generated monthly facts.
2968
2955
  */
2969
- const listElements = (options) => (options.client ?? client_gen_1.client).get({
2956
+ const opCreateSchedule = (options) => (options.client ?? client_gen_1.client).post({
2970
2957
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
2971
- url: '/v1/ledger/{graph_id}/elements',
2972
- ...options
2958
+ url: '/extensions/roboledger/{graph_id}/operations/create-schedule',
2959
+ ...options,
2960
+ headers: {
2961
+ 'Content-Type': 'application/json',
2962
+ ...options.headers
2963
+ }
2973
2964
  });
2974
- exports.listElements = listElements;
2965
+ exports.opCreateSchedule = opCreateSchedule;
2975
2966
  /**
2976
- * List Unmapped Elements
2967
+ * Truncate Schedule (End Early)
2977
2968
  *
2978
- * List CoA elements that are not yet mapped to the reporting taxonomy.
2969
+ * End a schedule early delete forward facts + stale drafts.
2979
2970
  */
2980
- const listUnmappedElements = (options) => (options.client ?? client_gen_1.client).get({
2971
+ const opTruncateSchedule = (options) => (options.client ?? client_gen_1.client).post({
2981
2972
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
2982
- url: '/v1/ledger/{graph_id}/elements/unmapped',
2983
- ...options
2973
+ url: '/extensions/roboledger/{graph_id}/operations/truncate-schedule',
2974
+ ...options,
2975
+ headers: {
2976
+ 'Content-Type': 'application/json',
2977
+ ...options.headers
2978
+ }
2984
2979
  });
2985
- exports.listUnmappedElements = listUnmappedElements;
2980
+ exports.opTruncateSchedule = opTruncateSchedule;
2986
2981
  /**
2987
- * List Structures
2982
+ * Create Closing Entry
2983
+ *
2984
+ * Create a draft closing entry from a schedule's facts for a period.
2988
2985
  */
2989
- const listStructures = (options) => (options.client ?? client_gen_1.client).get({
2986
+ const opCreateClosingEntry = (options) => (options.client ?? client_gen_1.client).post({
2990
2987
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
2991
- url: '/v1/ledger/{graph_id}/structures',
2992
- ...options
2988
+ url: '/extensions/roboledger/{graph_id}/operations/create-closing-entry',
2989
+ ...options,
2990
+ headers: {
2991
+ 'Content-Type': 'application/json',
2992
+ ...options.headers
2993
+ }
2993
2994
  });
2994
- exports.listStructures = listStructures;
2995
+ exports.opCreateClosingEntry = opCreateClosingEntry;
2995
2996
  /**
2996
- * Create Structure
2997
+ * Create Manual Closing Entry
2998
+ *
2999
+ * Create a manual (non-schedule) draft closing entry.
2997
3000
  */
2998
- const createStructure = (options) => (options.client ?? client_gen_1.client).post({
3001
+ const opCreateManualClosingEntry = (options) => (options.client ?? client_gen_1.client).post({
2999
3002
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3000
- url: '/v1/ledger/{graph_id}/structures',
3003
+ url: '/extensions/roboledger/{graph_id}/operations/create-manual-closing-entry',
3001
3004
  ...options,
3002
3005
  headers: {
3003
3006
  'Content-Type': 'application/json',
3004
3007
  ...options.headers
3005
3008
  }
3006
3009
  });
3007
- exports.createStructure = createStructure;
3010
+ exports.opCreateManualClosingEntry = opCreateManualClosingEntry;
3008
3011
  /**
3009
- * List Mapping Structures
3012
+ * Create Taxonomy
3010
3013
  *
3011
- * List all mapping structures (structure_type = 'coa_mapping').
3014
+ * Create a new taxonomy definition.
3012
3015
  */
3013
- const listMappings = (options) => (options.client ?? client_gen_1.client).get({
3016
+ const opCreateTaxonomy = (options) => (options.client ?? client_gen_1.client).post({
3014
3017
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3015
- url: '/v1/ledger/{graph_id}/mappings',
3016
- ...options
3018
+ url: '/extensions/roboledger/{graph_id}/operations/create-taxonomy',
3019
+ ...options,
3020
+ headers: {
3021
+ 'Content-Type': 'application/json',
3022
+ ...options.headers
3023
+ }
3017
3024
  });
3018
- exports.listMappings = listMappings;
3025
+ exports.opCreateTaxonomy = opCreateTaxonomy;
3019
3026
  /**
3020
- * Get Mapping Detail
3027
+ * Create Structure
3021
3028
  *
3022
- * Get a mapping structure with all its associations.
3029
+ * Create a new structure (statement, mapping, schedule, etc.).
3023
3030
  */
3024
- const getMappingDetail = (options) => (options.client ?? client_gen_1.client).get({
3031
+ const opCreateStructure = (options) => (options.client ?? client_gen_1.client).post({
3025
3032
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3026
- url: '/v1/ledger/{graph_id}/mappings/{mapping_id}',
3027
- ...options
3033
+ url: '/extensions/roboledger/{graph_id}/operations/create-structure',
3034
+ ...options,
3035
+ headers: {
3036
+ 'Content-Type': 'application/json',
3037
+ ...options.headers
3038
+ }
3028
3039
  });
3029
- exports.getMappingDetail = getMappingDetail;
3040
+ exports.opCreateStructure = opCreateStructure;
3030
3041
  /**
3031
3042
  * Create Mapping Association
3032
3043
  *
3033
3044
  * Add a mapping association (CoA element → reporting concept).
3034
3045
  */
3035
- const createMappingAssociation = (options) => (options.client ?? client_gen_1.client).post({
3046
+ const opCreateMappingAssociation = (options) => (options.client ?? client_gen_1.client).post({
3036
3047
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3037
- url: '/v1/ledger/{graph_id}/mappings/{mapping_id}/associations',
3048
+ url: '/extensions/roboledger/{graph_id}/operations/create-mapping-association',
3038
3049
  ...options,
3039
3050
  headers: {
3040
3051
  'Content-Type': 'application/json',
3041
3052
  ...options.headers
3042
3053
  }
3043
3054
  });
3044
- exports.createMappingAssociation = createMappingAssociation;
3055
+ exports.opCreateMappingAssociation = opCreateMappingAssociation;
3045
3056
  /**
3046
3057
  * Delete Mapping Association
3047
3058
  *
3048
3059
  * Remove a mapping association.
3049
3060
  */
3050
- const deleteMappingAssociation = (options) => (options.client ?? client_gen_1.client).delete({
3051
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3052
- url: '/v1/ledger/{graph_id}/mappings/{mapping_id}/associations/{association_id}',
3053
- ...options
3054
- });
3055
- exports.deleteMappingAssociation = deleteMappingAssociation;
3056
- /**
3057
- * Mapping Coverage
3058
- *
3059
- * Get mapping coverage stats.
3060
- */
3061
- const getMappingCoverage = (options) => (options.client ?? client_gen_1.client).get({
3062
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3063
- url: '/v1/ledger/{graph_id}/mappings/{mapping_id}/coverage',
3064
- ...options
3065
- });
3066
- exports.getMappingCoverage = getMappingCoverage;
3067
- /**
3068
- * Mapped Trial Balance
3069
- *
3070
- * Trial balance rolled up to reporting concepts via mapping associations.
3071
- */
3072
- const getMappedTrialBalance = (options) => (options.client ?? client_gen_1.client).get({
3061
+ const opDeleteMappingAssociation = (options) => (options.client ?? client_gen_1.client).post({
3073
3062
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3074
- url: '/v1/ledger/{graph_id}/trial-balance/mapped',
3075
- ...options
3063
+ url: '/extensions/roboledger/{graph_id}/operations/delete-mapping-association',
3064
+ ...options,
3065
+ headers: {
3066
+ 'Content-Type': 'application/json',
3067
+ ...options.headers
3068
+ }
3076
3069
  });
3077
- exports.getMappedTrialBalance = getMappedTrialBalance;
3070
+ exports.opDeleteMappingAssociation = opDeleteMappingAssociation;
3078
3071
  /**
3079
- * Auto-Map Elements via AI
3072
+ * Auto-Map Elements via AI (async)
3080
3073
  *
3081
- * Trigger autonomous CoA → GAAP mapping via background worker.
3074
+ * Trigger autonomous CoA → US GAAP mapping via background worker.
3082
3075
  *
3083
- * Uses Bedrock AI to classify and map unmapped Chart of Accounts elements
3084
- * to US GAAP reporting concepts. Returns a 202 with operation_id for
3085
- * SSE progress tracking.
3076
+ * This is the only async/Dagster-dispatched ledger operation. Instead
3077
+ * of running synchronously, it enqueues a `MappingAgent` task and
3078
+ * returns a `pending` envelope with the worker-issued operation_id —
3079
+ * callers subscribe via `/v1/operations/{operation_id}/stream` for SSE
3080
+ * progress events.
3086
3081
  *
3087
- * Confidence thresholds:
3082
+ * Confidence thresholds (in the agent):
3088
3083
  * - ≥0.90: auto-approved mapping
3089
3084
  * - 0.70-0.89: flagged for review
3090
3085
  * - <0.70: skipped (left unmapped)
3091
3086
  */
3092
- const autoMapElements = (options) => (options.client ?? client_gen_1.client).post({
3087
+ const opAutoMapElements = (options) => (options.client ?? client_gen_1.client).post({
3093
3088
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3094
- url: '/v1/ledger/{graph_id}/mappings/{mapping_id}/auto-map',
3095
- ...options
3096
- });
3097
- exports.autoMapElements = autoMapElements;
3098
- /**
3099
- * List Transactions
3100
- */
3101
- const listLedgerTransactions = (options) => (options.client ?? client_gen_1.client).get({
3102
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3103
- url: '/v1/ledger/{graph_id}/transactions',
3104
- ...options
3105
- });
3106
- exports.listLedgerTransactions = listLedgerTransactions;
3107
- /**
3108
- * Transaction Detail
3109
- */
3110
- const getLedgerTransaction = (options) => (options.client ?? client_gen_1.client).get({
3111
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3112
- url: '/v1/ledger/{graph_id}/transactions/{transaction_id}',
3113
- ...options
3114
- });
3115
- exports.getLedgerTransaction = getLedgerTransaction;
3116
- /**
3117
- * Trial Balance
3118
- */
3119
- const getLedgerTrialBalance = (options) => (options.client ?? client_gen_1.client).get({
3120
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3121
- url: '/v1/ledger/{graph_id}/trial-balance',
3122
- ...options
3123
- });
3124
- exports.getLedgerTrialBalance = getLedgerTrialBalance;
3125
- /**
3126
- * Ledger Summary
3127
- */
3128
- const getLedgerSummary = (options) => (options.client ?? client_gen_1.client).get({
3129
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3130
- url: '/v1/ledger/{graph_id}/summary',
3131
- ...options
3132
- });
3133
- exports.getLedgerSummary = getLedgerSummary;
3134
- /**
3135
- * List Reports
3136
- *
3137
- * List all report definitions for this graph.
3138
- */
3139
- const listReports = (options) => (options.client ?? client_gen_1.client).get({
3140
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3141
- url: '/v1/ledger/{graph_id}/reports',
3142
- ...options
3089
+ url: '/extensions/roboledger/{graph_id}/operations/auto-map-elements',
3090
+ ...options,
3091
+ headers: {
3092
+ 'Content-Type': 'application/json',
3093
+ ...options.headers
3094
+ }
3143
3095
  });
3144
- exports.listReports = listReports;
3096
+ exports.opAutoMapElements = opAutoMapElements;
3145
3097
  /**
3146
3098
  * Create Report
3147
3099
  *
3148
- * Create a report definition, generate facts for all mapped elements.
3100
+ * Create a report definition, generate facts, and mark as published.
3149
3101
  */
3150
- const createReport = (options) => (options.client ?? client_gen_1.client).post({
3102
+ const opCreateReport = (options) => (options.client ?? client_gen_1.client).post({
3151
3103
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3152
- url: '/v1/ledger/{graph_id}/reports',
3104
+ url: '/extensions/roboledger/{graph_id}/operations/create-report',
3153
3105
  ...options,
3154
3106
  headers: {
3155
3107
  'Content-Type': 'application/json',
3156
3108
  ...options.headers
3157
3109
  }
3158
3110
  });
3159
- exports.createReport = createReport;
3160
- /**
3161
- * Delete Report
3162
- *
3163
- * Delete a report definition and its generated facts.
3164
- */
3165
- const deleteReport = (options) => (options.client ?? client_gen_1.client).delete({
3166
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3167
- url: '/v1/ledger/{graph_id}/reports/{report_id}',
3168
- ...options
3169
- });
3170
- exports.deleteReport = deleteReport;
3171
- /**
3172
- * Get Report
3173
- *
3174
- * Get a report definition with its available structures.
3175
- */
3176
- const getReport = (options) => (options.client ?? client_gen_1.client).get({
3177
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3178
- url: '/v1/ledger/{graph_id}/reports/{report_id}',
3179
- ...options
3180
- });
3181
- exports.getReport = getReport;
3182
- /**
3183
- * Get Statement
3184
- *
3185
- * Render a financial statement — facts viewed through a structure's hierarchy.
3186
- *
3187
- * Same report, different structure_type = different view (IS, BS, CF).
3188
- */
3189
- const getStatement = (options) => (options.client ?? client_gen_1.client).get({
3190
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3191
- url: '/v1/ledger/{graph_id}/reports/{report_id}/statements/{structure_type}',
3192
- ...options
3193
- });
3194
- exports.getStatement = getStatement;
3111
+ exports.opCreateReport = opCreateReport;
3195
3112
  /**
3196
3113
  * Regenerate Report
3197
3114
  *
3198
3115
  * Regenerate a report with new period dates.
3199
- *
3200
- * Same report configuration (taxonomy, mapping, settings), new dates.
3201
- * Re-generates facts for all elements.
3202
3116
  */
3203
- const regenerateReport = (options) => (options.client ?? client_gen_1.client).post({
3117
+ const opRegenerateReport = (options) => (options.client ?? client_gen_1.client).post({
3204
3118
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3205
- url: '/v1/ledger/{graph_id}/reports/{report_id}/regenerate',
3119
+ url: '/extensions/roboledger/{graph_id}/operations/regenerate-report',
3206
3120
  ...options,
3207
3121
  headers: {
3208
3122
  'Content-Type': 'application/json',
3209
3123
  ...options.headers
3210
3124
  }
3211
3125
  });
3212
- exports.regenerateReport = regenerateReport;
3126
+ exports.opRegenerateReport = opRegenerateReport;
3213
3127
  /**
3214
- * Share Report
3215
- *
3216
- * Share a published report to other graphs.
3128
+ * Delete Report
3217
3129
  *
3218
- * Copies the report definition and its generated facts to each target graph's
3219
- * tenant schema. The target graph must have 'roboledger' in its schema_extensions.
3220
- * This is a snapshot — the target gets an immutable copy of the facts at this
3221
- * point in time.
3130
+ * Delete a report definition and its facts.
3222
3131
  */
3223
- const shareReport = (options) => (options.client ?? client_gen_1.client).post({
3132
+ const opDeleteReport = (options) => (options.client ?? client_gen_1.client).post({
3224
3133
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3225
- url: '/v1/ledger/{graph_id}/reports/{report_id}/share',
3134
+ url: '/extensions/roboledger/{graph_id}/operations/delete-report',
3226
3135
  ...options,
3227
3136
  headers: {
3228
3137
  'Content-Type': 'application/json',
3229
3138
  ...options.headers
3230
3139
  }
3231
3140
  });
3232
- exports.shareReport = shareReport;
3141
+ exports.opDeleteReport = opDeleteReport;
3233
3142
  /**
3234
- * List Schedules
3235
- *
3236
- * List all active schedules for this graph.
3237
- */
3238
- const listSchedules = (options) => (options.client ?? client_gen_1.client).get({
3239
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3240
- url: '/v1/ledger/{graph_id}/schedules',
3241
- ...options
3242
- });
3243
- exports.listSchedules = listSchedules;
3244
- /**
3245
- * Create Schedule
3143
+ * Share Report
3246
3144
  *
3247
- * Create a schedule with pre-generated facts for each monthly period.
3145
+ * Share a published report to a publish list's members.
3248
3146
  */
3249
- const createSchedule = (options) => (options.client ?? client_gen_1.client).post({
3147
+ const opShareReport = (options) => (options.client ?? client_gen_1.client).post({
3250
3148
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3251
- url: '/v1/ledger/{graph_id}/schedules',
3149
+ url: '/extensions/roboledger/{graph_id}/operations/share-report',
3252
3150
  ...options,
3253
3151
  headers: {
3254
3152
  'Content-Type': 'application/json',
3255
3153
  ...options.headers
3256
3154
  }
3257
3155
  });
3258
- exports.createSchedule = createSchedule;
3156
+ exports.opShareReport = opShareReport;
3259
3157
  /**
3260
- * Get Schedule Facts
3261
- *
3262
- * Get facts for a schedule, optionally filtered by period.
3263
- */
3264
- const getScheduleFacts = (options) => (options.client ?? client_gen_1.client).get({
3265
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3266
- url: '/v1/ledger/{graph_id}/schedules/{structure_id}/facts',
3267
- ...options
3268
- });
3269
- exports.getScheduleFacts = getScheduleFacts;
3270
- /**
3271
- * Get Period Close Status
3272
- *
3273
- * Get close status for all schedules in a fiscal period.
3274
- */
3275
- const getPeriodCloseStatus = (options) => (options.client ?? client_gen_1.client).get({
3276
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3277
- url: '/v1/ledger/{graph_id}/schedules/close-status',
3278
- ...options
3279
- });
3280
- exports.getPeriodCloseStatus = getPeriodCloseStatus;
3281
- /**
3282
- * Create Closing Entry
3158
+ * Create Publish List
3283
3159
  *
3284
- * Create a draft closing entry from a schedule's facts for a period.
3160
+ * Create a new publish list.
3285
3161
  */
3286
- const createClosingEntry = (options) => (options.client ?? client_gen_1.client).post({
3162
+ const opCreatePublishList = (options) => (options.client ?? client_gen_1.client).post({
3287
3163
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3288
- url: '/v1/ledger/{graph_id}/schedules/{structure_id}/closing-entry',
3164
+ url: '/extensions/roboledger/{graph_id}/operations/create-publish-list',
3289
3165
  ...options,
3290
3166
  headers: {
3291
3167
  'Content-Type': 'application/json',
3292
3168
  ...options.headers
3293
3169
  }
3294
3170
  });
3295
- exports.createClosingEntry = createClosingEntry;
3296
- /**
3297
- * List Publish Lists
3298
- */
3299
- const listPublishLists = (options) => (options.client ?? client_gen_1.client).get({
3300
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3301
- url: '/v1/ledger/{graph_id}/publish-lists',
3302
- ...options
3303
- });
3304
- exports.listPublishLists = listPublishLists;
3171
+ exports.opCreatePublishList = opCreatePublishList;
3305
3172
  /**
3306
- * Create Publish List
3173
+ * Update Publish List
3174
+ *
3175
+ * Update a publish list's name / description.
3307
3176
  */
3308
- const createPublishList = (options) => (options.client ?? client_gen_1.client).post({
3177
+ const opUpdatePublishList = (options) => (options.client ?? client_gen_1.client).post({
3309
3178
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3310
- url: '/v1/ledger/{graph_id}/publish-lists',
3179
+ url: '/extensions/roboledger/{graph_id}/operations/update-publish-list',
3311
3180
  ...options,
3312
3181
  headers: {
3313
3182
  'Content-Type': 'application/json',
3314
3183
  ...options.headers
3315
3184
  }
3316
3185
  });
3317
- exports.createPublishList = createPublishList;
3186
+ exports.opUpdatePublishList = opUpdatePublishList;
3318
3187
  /**
3319
3188
  * Delete Publish List
3189
+ *
3190
+ * Delete a publish list.
3320
3191
  */
3321
- const deletePublishList = (options) => (options.client ?? client_gen_1.client).delete({
3322
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3323
- url: '/v1/ledger/{graph_id}/publish-lists/{list_id}',
3324
- ...options
3325
- });
3326
- exports.deletePublishList = deletePublishList;
3327
- /**
3328
- * Get Publish List
3329
- */
3330
- const getPublishList = (options) => (options.client ?? client_gen_1.client).get({
3331
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3332
- url: '/v1/ledger/{graph_id}/publish-lists/{list_id}',
3333
- ...options
3334
- });
3335
- exports.getPublishList = getPublishList;
3336
- /**
3337
- * Update Publish List
3338
- */
3339
- const updatePublishList = (options) => (options.client ?? client_gen_1.client).patch({
3192
+ const opDeletePublishList = (options) => (options.client ?? client_gen_1.client).post({
3340
3193
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3341
- url: '/v1/ledger/{graph_id}/publish-lists/{list_id}',
3194
+ url: '/extensions/roboledger/{graph_id}/operations/delete-publish-list',
3342
3195
  ...options,
3343
3196
  headers: {
3344
3197
  'Content-Type': 'application/json',
3345
3198
  ...options.headers
3346
3199
  }
3347
3200
  });
3348
- exports.updatePublishList = updatePublishList;
3201
+ exports.opDeletePublishList = opDeletePublishList;
3349
3202
  /**
3350
3203
  * Add Members to Publish List
3204
+ *
3205
+ * Add target graphs as members of a publish list.
3351
3206
  */
3352
- const addPublishListMembers = (options) => (options.client ?? client_gen_1.client).post({
3207
+ const opAddPublishListMembers = (options) => (options.client ?? client_gen_1.client).post({
3353
3208
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3354
- url: '/v1/ledger/{graph_id}/publish-lists/{list_id}/members',
3209
+ url: '/extensions/roboledger/{graph_id}/operations/add-publish-list-members',
3355
3210
  ...options,
3356
3211
  headers: {
3357
3212
  'Content-Type': 'application/json',
3358
3213
  ...options.headers
3359
3214
  }
3360
3215
  });
3361
- exports.addPublishListMembers = addPublishListMembers;
3216
+ exports.opAddPublishListMembers = opAddPublishListMembers;
3362
3217
  /**
3363
3218
  * Remove Member from Publish List
3364
- */
3365
- const removePublishListMember = (options) => (options.client ?? client_gen_1.client).delete({
3366
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3367
- url: '/v1/ledger/{graph_id}/publish-lists/{list_id}/members/{member_id}',
3368
- ...options
3369
- });
3370
- exports.removePublishListMember = removePublishListMember;
3371
- /**
3372
- * Account Rollups
3373
- *
3374
- * Account rollups — CoA accounts grouped by reporting element with balances.
3375
3219
  *
3376
- * Shows how company-specific accounts roll up to standardized reporting
3377
- * line items. Auto-discovers the mapping structure if mapping_id is not provided.
3220
+ * Remove a target graph from a publish list.
3378
3221
  */
3379
- const getAccountRollups = (options) => (options.client ?? client_gen_1.client).get({
3222
+ const opRemovePublishListMember = (options) => (options.client ?? client_gen_1.client).post({
3380
3223
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3381
- url: '/v1/ledger/{graph_id}/account-rollups',
3382
- ...options
3224
+ url: '/extensions/roboledger/{graph_id}/operations/remove-publish-list-member',
3225
+ ...options,
3226
+ headers: {
3227
+ 'Content-Type': 'application/json',
3228
+ ...options.headers
3229
+ }
3383
3230
  });
3384
- exports.getAccountRollups = getAccountRollups;
3231
+ exports.opRemovePublishListMember = opRemovePublishListMember;
3385
3232
  /**
3386
- * Closing Book Structures
3233
+ * Build Fact Grid
3387
3234
  *
3388
- * Returns all structure categories for the closing book sidebar.
3235
+ * Build a multi-dimensional fact grid against the graph schema.
3389
3236
  *
3390
- * Aggregates statements (from latest report), schedules, account rollups
3391
- * (from mapping structures), and trial balance availability into a single
3392
- * response for the viewer sidebar navigation.
3393
- */
3394
- const getClosingBookStructures = (options) => (options.client ?? client_gen_1.client).get({
3395
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3396
- url: '/v1/ledger/{graph_id}/closing-book/structures',
3397
- ...options
3398
- });
3399
- exports.getClosingBookStructures = getClosingBookStructures;
3400
- /**
3401
- * List Portfolios
3237
+ * Queries `Fact` nodes by element qnames or canonical concepts with
3238
+ * optional filters for periods, entities, filing form, fiscal context,
3239
+ * and period type. Returns a deduplicated pivot table plus optional
3240
+ * summary statistics.
3241
+ *
3242
+ * This is a graph-database read the query runs against LadybugDB,
3243
+ * not the extensions OLTP database. The same operation works for
3244
+ * roboledger tenant graphs (post-materialization) and the SEC shared
3245
+ * repository (which uses the same XBRL hypercube schema).
3402
3246
  */
3403
- const listPortfolios = (options) => (options.client ?? client_gen_1.client).get({
3247
+ const opBuildFactGrid = (options) => (options.client ?? client_gen_1.client).post({
3404
3248
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3405
- url: '/v1/investor/{graph_id}/portfolios',
3406
- ...options
3249
+ url: '/extensions/roboledger/{graph_id}/operations/build-fact-grid',
3250
+ ...options,
3251
+ headers: {
3252
+ 'Content-Type': 'application/json',
3253
+ ...options.headers
3254
+ }
3407
3255
  });
3408
- exports.listPortfolios = listPortfolios;
3256
+ exports.opBuildFactGrid = opBuildFactGrid;
3409
3257
  /**
3410
3258
  * Create Portfolio
3411
3259
  */
3412
- const createPortfolio = (options) => (options.client ?? client_gen_1.client).post({
3260
+ const opCreatePortfolio = (options) => (options.client ?? client_gen_1.client).post({
3413
3261
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3414
- url: '/v1/investor/{graph_id}/portfolios',
3262
+ url: '/extensions/roboinvestor/{graph_id}/operations/create-portfolio',
3415
3263
  ...options,
3416
3264
  headers: {
3417
3265
  'Content-Type': 'application/json',
3418
3266
  ...options.headers
3419
3267
  }
3420
3268
  });
3421
- exports.createPortfolio = createPortfolio;
3422
- /**
3423
- * Delete Portfolio
3424
- */
3425
- const deletePortfolio = (options) => (options.client ?? client_gen_1.client).delete({
3426
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3427
- url: '/v1/investor/{graph_id}/portfolios/{portfolio_id}',
3428
- ...options
3429
- });
3430
- exports.deletePortfolio = deletePortfolio;
3431
- /**
3432
- * Get Portfolio
3433
- */
3434
- const getPortfolio = (options) => (options.client ?? client_gen_1.client).get({
3435
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3436
- url: '/v1/investor/{graph_id}/portfolios/{portfolio_id}',
3437
- ...options
3438
- });
3439
- exports.getPortfolio = getPortfolio;
3269
+ exports.opCreatePortfolio = opCreatePortfolio;
3440
3270
  /**
3441
3271
  * Update Portfolio
3442
3272
  */
3443
- const updatePortfolio = (options) => (options.client ?? client_gen_1.client).patch({
3273
+ const opUpdatePortfolio = (options) => (options.client ?? client_gen_1.client).post({
3444
3274
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3445
- url: '/v1/investor/{graph_id}/portfolios/{portfolio_id}',
3275
+ url: '/extensions/roboinvestor/{graph_id}/operations/update-portfolio',
3446
3276
  ...options,
3447
3277
  headers: {
3448
3278
  'Content-Type': 'application/json',
3449
3279
  ...options.headers
3450
3280
  }
3451
3281
  });
3452
- exports.updatePortfolio = updatePortfolio;
3282
+ exports.opUpdatePortfolio = opUpdatePortfolio;
3453
3283
  /**
3454
- * List Securities
3284
+ * Delete Portfolio
3455
3285
  */
3456
- const listSecurities = (options) => (options.client ?? client_gen_1.client).get({
3286
+ const opDeletePortfolio = (options) => (options.client ?? client_gen_1.client).post({
3457
3287
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3458
- url: '/v1/investor/{graph_id}/securities',
3459
- ...options
3288
+ url: '/extensions/roboinvestor/{graph_id}/operations/delete-portfolio',
3289
+ ...options,
3290
+ headers: {
3291
+ 'Content-Type': 'application/json',
3292
+ ...options.headers
3293
+ }
3460
3294
  });
3461
- exports.listSecurities = listSecurities;
3295
+ exports.opDeletePortfolio = opDeletePortfolio;
3462
3296
  /**
3463
3297
  * Create Security
3464
3298
  */
3465
- const createSecurity = (options) => (options.client ?? client_gen_1.client).post({
3299
+ const opCreateSecurity = (options) => (options.client ?? client_gen_1.client).post({
3466
3300
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3467
- url: '/v1/investor/{graph_id}/securities',
3301
+ url: '/extensions/roboinvestor/{graph_id}/operations/create-security',
3468
3302
  ...options,
3469
3303
  headers: {
3470
3304
  'Content-Type': 'application/json',
3471
3305
  ...options.headers
3472
3306
  }
3473
3307
  });
3474
- exports.createSecurity = createSecurity;
3475
- /**
3476
- * Delete Security
3477
- */
3478
- const deleteSecurity = (options) => (options.client ?? client_gen_1.client).delete({
3479
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3480
- url: '/v1/investor/{graph_id}/securities/{security_id}',
3481
- ...options
3482
- });
3483
- exports.deleteSecurity = deleteSecurity;
3484
- /**
3485
- * Get Security
3486
- */
3487
- const getSecurity = (options) => (options.client ?? client_gen_1.client).get({
3488
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3489
- url: '/v1/investor/{graph_id}/securities/{security_id}',
3490
- ...options
3491
- });
3492
- exports.getSecurity = getSecurity;
3308
+ exports.opCreateSecurity = opCreateSecurity;
3493
3309
  /**
3494
3310
  * Update Security
3495
3311
  */
3496
- const updateSecurity = (options) => (options.client ?? client_gen_1.client).patch({
3312
+ const opUpdateSecurity = (options) => (options.client ?? client_gen_1.client).post({
3497
3313
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3498
- url: '/v1/investor/{graph_id}/securities/{security_id}',
3314
+ url: '/extensions/roboinvestor/{graph_id}/operations/update-security',
3499
3315
  ...options,
3500
3316
  headers: {
3501
3317
  'Content-Type': 'application/json',
3502
3318
  ...options.headers
3503
3319
  }
3504
3320
  });
3505
- exports.updateSecurity = updateSecurity;
3321
+ exports.opUpdateSecurity = opUpdateSecurity;
3506
3322
  /**
3507
- * List Positions
3323
+ * Delete Security
3508
3324
  */
3509
- const listPositions = (options) => (options.client ?? client_gen_1.client).get({
3325
+ const opDeleteSecurity = (options) => (options.client ?? client_gen_1.client).post({
3510
3326
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3511
- url: '/v1/investor/{graph_id}/positions',
3512
- ...options
3327
+ url: '/extensions/roboinvestor/{graph_id}/operations/delete-security',
3328
+ ...options,
3329
+ headers: {
3330
+ 'Content-Type': 'application/json',
3331
+ ...options.headers
3332
+ }
3513
3333
  });
3514
- exports.listPositions = listPositions;
3334
+ exports.opDeleteSecurity = opDeleteSecurity;
3515
3335
  /**
3516
3336
  * Create Position
3517
3337
  */
3518
- const createPosition = (options) => (options.client ?? client_gen_1.client).post({
3338
+ const opCreatePosition = (options) => (options.client ?? client_gen_1.client).post({
3519
3339
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3520
- url: '/v1/investor/{graph_id}/positions',
3340
+ url: '/extensions/roboinvestor/{graph_id}/operations/create-position',
3521
3341
  ...options,
3522
3342
  headers: {
3523
3343
  'Content-Type': 'application/json',
3524
3344
  ...options.headers
3525
3345
  }
3526
3346
  });
3527
- exports.createPosition = createPosition;
3528
- /**
3529
- * Delete Position
3530
- */
3531
- const deletePosition = (options) => (options.client ?? client_gen_1.client).delete({
3532
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3533
- url: '/v1/investor/{graph_id}/positions/{position_id}',
3534
- ...options
3535
- });
3536
- exports.deletePosition = deletePosition;
3537
- /**
3538
- * Get Position
3539
- */
3540
- const getPosition = (options) => (options.client ?? client_gen_1.client).get({
3541
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3542
- url: '/v1/investor/{graph_id}/positions/{position_id}',
3543
- ...options
3544
- });
3545
- exports.getPosition = getPosition;
3347
+ exports.opCreatePosition = opCreatePosition;
3546
3348
  /**
3547
3349
  * Update Position
3548
3350
  */
3549
- const updatePosition = (options) => (options.client ?? client_gen_1.client).patch({
3351
+ const opUpdatePosition = (options) => (options.client ?? client_gen_1.client).post({
3550
3352
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3551
- url: '/v1/investor/{graph_id}/positions/{position_id}',
3353
+ url: '/extensions/roboinvestor/{graph_id}/operations/update-position',
3552
3354
  ...options,
3553
3355
  headers: {
3554
3356
  'Content-Type': 'application/json',
3555
3357
  ...options.headers
3556
3358
  }
3557
3359
  });
3558
- exports.updatePosition = updatePosition;
3360
+ exports.opUpdatePosition = opUpdatePosition;
3559
3361
  /**
3560
- * List Holdings (grouped by entity)
3362
+ * Delete Position
3561
3363
  */
3562
- const listHoldings = (options) => (options.client ?? client_gen_1.client).get({
3364
+ const opDeletePosition = (options) => (options.client ?? client_gen_1.client).post({
3563
3365
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3564
- url: '/v1/investor/{graph_id}/portfolios/{portfolio_id}/holdings',
3565
- ...options
3366
+ url: '/extensions/roboinvestor/{graph_id}/operations/delete-position',
3367
+ ...options,
3368
+ headers: {
3369
+ 'Content-Type': 'application/json',
3370
+ ...options.headers
3371
+ }
3566
3372
  });
3567
- exports.listHoldings = listHoldings;
3373
+ exports.opDeletePosition = opDeletePosition;