@robosystems/client 0.2.49 → 0.3.1

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 (191) hide show
  1. package/extensions/InvestorClient.d.ts +98 -0
  2. package/extensions/InvestorClient.js +223 -0
  3. package/extensions/InvestorClient.ts +508 -0
  4. package/extensions/LedgerClient.d.ts +190 -309
  5. package/extensions/LedgerClient.js +268 -587
  6. package/extensions/LedgerClient.ts +784 -903
  7. package/extensions/ReportClient.d.ts +82 -113
  8. package/extensions/ReportClient.js +124 -211
  9. package/extensions/ReportClient.ts +305 -358
  10. package/extensions/config.d.ts +19 -0
  11. package/extensions/config.js +1 -1
  12. package/extensions/config.ts +22 -2
  13. package/extensions/graphql/client.d.ts +82 -0
  14. package/extensions/graphql/client.js +149 -0
  15. package/extensions/graphql/client.ts +189 -0
  16. package/extensions/graphql/generated/graphql.d.ts +1786 -0
  17. package/extensions/graphql/generated/graphql.js +2671 -0
  18. package/extensions/graphql/generated/graphql.ts +4491 -0
  19. package/extensions/graphql/queries/investor/holdings.d.ts +8 -0
  20. package/extensions/graphql/queries/investor/holdings.js +36 -0
  21. package/extensions/graphql/queries/investor/holdings.ts +34 -0
  22. package/extensions/graphql/queries/investor/portfolio.d.ts +4 -0
  23. package/extensions/graphql/queries/investor/portfolio.js +21 -0
  24. package/extensions/graphql/queries/investor/portfolio.ts +19 -0
  25. package/extensions/graphql/queries/investor/portfolios.d.ts +4 -0
  26. package/extensions/graphql/queries/investor/portfolios.js +29 -0
  27. package/extensions/graphql/queries/investor/portfolios.ts +27 -0
  28. package/extensions/graphql/queries/investor/position.d.ts +4 -0
  29. package/extensions/graphql/queries/investor/position.js +33 -0
  30. package/extensions/graphql/queries/investor/position.ts +31 -0
  31. package/extensions/graphql/queries/investor/positions.d.ts +8 -0
  32. package/extensions/graphql/queries/investor/positions.js +57 -0
  33. package/extensions/graphql/queries/investor/positions.ts +55 -0
  34. package/extensions/graphql/queries/investor/securities.d.ts +8 -0
  35. package/extensions/graphql/queries/investor/securities.js +50 -0
  36. package/extensions/graphql/queries/investor/securities.ts +48 -0
  37. package/extensions/graphql/queries/investor/security.d.ts +4 -0
  38. package/extensions/graphql/queries/investor/security.js +26 -0
  39. package/extensions/graphql/queries/investor/security.ts +24 -0
  40. package/extensions/graphql/queries/ledger/accountRollups.d.ts +7 -0
  41. package/extensions/graphql/queries/ledger/accountRollups.js +36 -0
  42. package/extensions/graphql/queries/ledger/accountRollups.ts +34 -0
  43. package/extensions/graphql/queries/ledger/accountTree.d.ts +11 -0
  44. package/extensions/graphql/queries/ledger/accountTree.js +61 -0
  45. package/extensions/graphql/queries/ledger/accountTree.ts +59 -0
  46. package/extensions/graphql/queries/ledger/accounts.d.ts +8 -0
  47. package/extensions/graphql/queries/ledger/accounts.js +45 -0
  48. package/extensions/graphql/queries/ledger/accounts.ts +43 -0
  49. package/extensions/graphql/queries/ledger/closingBookStructures.d.ts +6 -0
  50. package/extensions/graphql/queries/ledger/closingBookStructures.js +27 -0
  51. package/extensions/graphql/queries/ledger/closingBookStructures.ts +25 -0
  52. package/extensions/graphql/queries/ledger/elements.d.ts +6 -0
  53. package/extensions/graphql/queries/ledger/elements.js +56 -0
  54. package/extensions/graphql/queries/ledger/elements.ts +54 -0
  55. package/extensions/graphql/queries/ledger/entities.d.ts +7 -0
  56. package/extensions/graphql/queries/ledger/entities.js +31 -0
  57. package/extensions/graphql/queries/ledger/entities.ts +29 -0
  58. package/extensions/graphql/queries/ledger/entity.d.ts +14 -0
  59. package/extensions/graphql/queries/ledger/entity.js +55 -0
  60. package/extensions/graphql/queries/ledger/entity.ts +54 -0
  61. package/extensions/graphql/queries/ledger/fiscalCalendar.d.ts +8 -0
  62. package/extensions/graphql/queries/ledger/fiscalCalendar.js +35 -0
  63. package/extensions/graphql/queries/ledger/fiscalCalendar.ts +33 -0
  64. package/extensions/graphql/queries/ledger/mappedTrialBalance.d.ts +9 -0
  65. package/extensions/graphql/queries/ledger/mappedTrialBalance.js +29 -0
  66. package/extensions/graphql/queries/ledger/mappedTrialBalance.ts +27 -0
  67. package/extensions/graphql/queries/ledger/mapping.d.ts +5 -0
  68. package/extensions/graphql/queries/ledger/mapping.js +35 -0
  69. package/extensions/graphql/queries/ledger/mapping.ts +33 -0
  70. package/extensions/graphql/queries/ledger/mappingCoverage.d.ts +5 -0
  71. package/extensions/graphql/queries/ledger/mappingCoverage.js +22 -0
  72. package/extensions/graphql/queries/ledger/mappingCoverage.ts +20 -0
  73. package/extensions/graphql/queries/ledger/mappings.d.ts +6 -0
  74. package/extensions/graphql/queries/ledger/mappings.js +23 -0
  75. package/extensions/graphql/queries/ledger/mappings.ts +21 -0
  76. package/extensions/graphql/queries/ledger/periodCloseStatus.d.ts +6 -0
  77. package/extensions/graphql/queries/ledger/periodCloseStatus.js +29 -0
  78. package/extensions/graphql/queries/ledger/periodCloseStatus.ts +27 -0
  79. package/extensions/graphql/queries/ledger/periodDrafts.d.ts +8 -0
  80. package/extensions/graphql/queries/ledger/periodDrafts.js +45 -0
  81. package/extensions/graphql/queries/ledger/periodDrafts.ts +43 -0
  82. package/extensions/graphql/queries/ledger/publishList.d.ts +5 -0
  83. package/extensions/graphql/queries/ledger/publishList.js +29 -0
  84. package/extensions/graphql/queries/ledger/publishList.ts +27 -0
  85. package/extensions/graphql/queries/ledger/publishLists.d.ts +5 -0
  86. package/extensions/graphql/queries/ledger/publishLists.js +29 -0
  87. package/extensions/graphql/queries/ledger/publishLists.ts +27 -0
  88. package/extensions/graphql/queries/ledger/report.d.ts +5 -0
  89. package/extensions/graphql/queries/ledger/report.js +40 -0
  90. package/extensions/graphql/queries/ledger/report.ts +38 -0
  91. package/extensions/graphql/queries/ledger/reportingTaxonomy.d.ts +6 -0
  92. package/extensions/graphql/queries/ledger/reportingTaxonomy.js +27 -0
  93. package/extensions/graphql/queries/ledger/reportingTaxonomy.ts +25 -0
  94. package/extensions/graphql/queries/ledger/reports.d.ts +8 -0
  95. package/extensions/graphql/queries/ledger/reports.js +45 -0
  96. package/extensions/graphql/queries/ledger/reports.ts +43 -0
  97. package/extensions/graphql/queries/ledger/scheduleFacts.d.ts +7 -0
  98. package/extensions/graphql/queries/ledger/scheduleFacts.js +24 -0
  99. package/extensions/graphql/queries/ledger/scheduleFacts.ts +22 -0
  100. package/extensions/graphql/queries/ledger/schedules.d.ts +6 -0
  101. package/extensions/graphql/queries/ledger/schedules.js +24 -0
  102. package/extensions/graphql/queries/ledger/schedules.ts +22 -0
  103. package/extensions/graphql/queries/ledger/statement.d.ts +9 -0
  104. package/extensions/graphql/queries/ledger/statement.js +43 -0
  105. package/extensions/graphql/queries/ledger/statement.ts +41 -0
  106. package/extensions/graphql/queries/ledger/structures.d.ts +5 -0
  107. package/extensions/graphql/queries/ledger/structures.js +22 -0
  108. package/extensions/graphql/queries/ledger/structures.ts +20 -0
  109. package/extensions/graphql/queries/ledger/summary.d.ts +7 -0
  110. package/extensions/graphql/queries/ledger/summary.js +25 -0
  111. package/extensions/graphql/queries/ledger/summary.ts +23 -0
  112. package/extensions/graphql/queries/ledger/taxonomies.d.ts +5 -0
  113. package/extensions/graphql/queries/ledger/taxonomies.js +28 -0
  114. package/extensions/graphql/queries/ledger/taxonomies.ts +26 -0
  115. package/extensions/graphql/queries/ledger/transaction.d.ts +6 -0
  116. package/extensions/graphql/queries/ledger/transaction.js +49 -0
  117. package/extensions/graphql/queries/ledger/transaction.ts +47 -0
  118. package/extensions/graphql/queries/ledger/transactions.d.ts +7 -0
  119. package/extensions/graphql/queries/ledger/transactions.js +49 -0
  120. package/extensions/graphql/queries/ledger/transactions.ts +47 -0
  121. package/extensions/graphql/queries/ledger/trialBalance.d.ts +7 -0
  122. package/extensions/graphql/queries/ledger/trialBalance.js +28 -0
  123. package/extensions/graphql/queries/ledger/trialBalance.ts +26 -0
  124. package/extensions/graphql/queries/ledger/unmappedElements.d.ts +8 -0
  125. package/extensions/graphql/queries/ledger/unmappedElements.js +29 -0
  126. package/extensions/graphql/queries/ledger/unmappedElements.ts +27 -0
  127. package/extensions/hooks.d.ts +1 -1
  128. package/extensions/index.d.ts +18 -1
  129. package/extensions/index.js +26 -1
  130. package/extensions/index.ts +49 -2
  131. package/index.ts +2 -2
  132. package/package.json +14 -5
  133. package/sdk/index.d.ts +2 -2
  134. package/sdk/index.js +38 -73
  135. package/sdk/index.ts +2 -2
  136. package/sdk/sdk.gen.d.ts +100 -325
  137. package/sdk/sdk.gen.js +228 -592
  138. package/sdk/sdk.gen.ts +193 -556
  139. package/sdk/types.gen.d.ts +4522 -7708
  140. package/sdk/types.gen.ts +4569 -7983
  141. package/sdk.gen.d.ts +100 -325
  142. package/sdk.gen.js +228 -592
  143. package/sdk.gen.ts +193 -556
  144. package/types.gen.d.ts +4522 -7708
  145. package/types.gen.ts +4569 -7983
  146. package/extensions/AgentClient.test.ts +0 -403
  147. package/extensions/LedgerClient.test.ts +0 -1655
  148. package/extensions/OperationClient.test.ts +0 -365
  149. package/extensions/QueryClient.test.ts +0 -432
  150. package/extensions/ReportClient.test.ts +0 -828
  151. package/extensions/SSEClient.test.ts +0 -375
  152. package/extensions/config.test.ts +0 -199
  153. package/extensions/hooks.test.ts +0 -373
  154. package/extensions/index.test.ts +0 -420
  155. package/sdk-extensions/AgentClient.d.ts +0 -82
  156. package/sdk-extensions/AgentClient.js +0 -218
  157. package/sdk-extensions/AgentClient.test.ts +0 -403
  158. package/sdk-extensions/AgentClient.ts +0 -321
  159. package/sdk-extensions/LedgerClient.d.ts +0 -416
  160. package/sdk-extensions/LedgerClient.js +0 -737
  161. package/sdk-extensions/LedgerClient.test.ts +0 -1655
  162. package/sdk-extensions/LedgerClient.ts +0 -1249
  163. package/sdk-extensions/OperationClient.d.ts +0 -65
  164. package/sdk-extensions/OperationClient.js +0 -251
  165. package/sdk-extensions/OperationClient.test.ts +0 -365
  166. package/sdk-extensions/OperationClient.ts +0 -324
  167. package/sdk-extensions/QueryClient.d.ts +0 -52
  168. package/sdk-extensions/QueryClient.js +0 -313
  169. package/sdk-extensions/QueryClient.test.ts +0 -432
  170. package/sdk-extensions/QueryClient.ts +0 -420
  171. package/sdk-extensions/README.md +0 -901
  172. package/sdk-extensions/ReportClient.d.ts +0 -151
  173. package/sdk-extensions/ReportClient.js +0 -278
  174. package/sdk-extensions/ReportClient.test.ts +0 -828
  175. package/sdk-extensions/ReportClient.ts +0 -486
  176. package/sdk-extensions/SSEClient.d.ts +0 -62
  177. package/sdk-extensions/SSEClient.js +0 -154
  178. package/sdk-extensions/SSEClient.test.ts +0 -375
  179. package/sdk-extensions/SSEClient.ts +0 -210
  180. package/sdk-extensions/config.d.ts +0 -57
  181. package/sdk-extensions/config.js +0 -152
  182. package/sdk-extensions/config.test.ts +0 -199
  183. package/sdk-extensions/config.ts +0 -175
  184. package/sdk-extensions/hooks.d.ts +0 -110
  185. package/sdk-extensions/hooks.js +0 -384
  186. package/sdk-extensions/hooks.test.ts +0 -373
  187. package/sdk-extensions/hooks.ts +0 -459
  188. package/sdk-extensions/index.d.ts +0 -63
  189. package/sdk-extensions/index.js +0 -164
  190. package/sdk-extensions/index.test.ts +0 -420
  191. package/sdk-extensions/index.ts +0 -203
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 { AddPublishListMembersData, AddPublishListMembersErrors, AddPublishListMembersResponses, AutoMapElementsData, AutoMapElementsErrors, AutoMapElementsResponses, AutoSelectAgentData, AutoSelectAgentErrors, AutoSelectAgentResponses, BatchProcessQueriesData, BatchProcessQueriesErrors, BatchProcessQueriesResponses, CallMcpToolData, CallMcpToolErrors, CallMcpToolResponses, CancelOperationData, CancelOperationErrors, CancelOperationResponses, CancelOrgSubscriptionData, CancelOrgSubscriptionErrors, CancelOrgSubscriptionResponses, ChangeSubscriptionPlanData, ChangeSubscriptionPlanErrors, ChangeSubscriptionPlanResponses, CheckPasswordStrengthData, CheckPasswordStrengthErrors, CheckPasswordStrengthResponses, CloseFiscalPeriodData, CloseFiscalPeriodErrors, CloseFiscalPeriodResponses, CompleteSsoAuthData, CompleteSsoAuthErrors, CompleteSsoAuthResponses, CreateBackupData, CreateBackupErrors, CreateBackupResponses, CreateCheckoutSessionData, CreateCheckoutSessionErrors, CreateCheckoutSessionResponses, CreateClosingEntryData, CreateClosingEntryErrors, CreateClosingEntryResponses, CreateConnectionData, CreateConnectionErrors, CreateConnectionResponses, CreateFileUploadData, CreateFileUploadErrors, CreateFileUploadResponses, CreateGraphData, CreateGraphErrors, CreateGraphResponses, CreateManualClosingEntryData, CreateManualClosingEntryErrors, CreateManualClosingEntryResponses, CreateMappingAssociationData, CreateMappingAssociationErrors, CreateMappingAssociationResponses, CreatePortalSessionData, CreatePortalSessionErrors, CreatePortalSessionResponses, CreatePortfolioData, CreatePortfolioErrors, CreatePortfolioResponses, CreatePositionData, CreatePositionErrors, CreatePositionResponses, CreatePublishListData, CreatePublishListErrors, CreatePublishListResponses, CreateReportData, CreateReportErrors, CreateReportResponses, CreateRepositorySubscriptionData, CreateRepositorySubscriptionErrors, CreateRepositorySubscriptionResponses, CreateScheduleData, CreateScheduleErrors, CreateScheduleResponses, CreateSecurityData, CreateSecurityErrors, CreateSecurityResponses, CreateStructureData, CreateStructureErrors, CreateStructureResponses, CreateSubgraphData, CreateSubgraphErrors, CreateSubgraphResponses, CreateTaxonomyData, CreateTaxonomyErrors, CreateTaxonomyResponses, CreateUserApiKeyData, CreateUserApiKeyErrors, CreateUserApiKeyResponses, CreateViewData, CreateViewErrors, CreateViewResponses, DeleteConnectionData, DeleteConnectionErrors, DeleteConnectionResponses, DeleteDocumentData, DeleteDocumentErrors, DeleteDocumentResponses, DeleteFileData, DeleteFileErrors, DeleteFileResponses, DeleteMappingAssociationData, DeleteMappingAssociationErrors, DeleteMappingAssociationResponses, DeletePortfolioData, DeletePortfolioErrors, DeletePortfolioResponses, DeletePositionData, DeletePositionErrors, DeletePositionResponses, DeletePublishListData, DeletePublishListErrors, DeletePublishListResponses, DeleteReportData, DeleteReportErrors, DeleteReportResponses, DeleteSecurityData, DeleteSecurityErrors, DeleteSecurityResponses, DeleteSubgraphData, DeleteSubgraphErrors, DeleteSubgraphResponses, ExecuteCypherQueryData, ExecuteCypherQueryErrors, ExecuteCypherQueryResponses, ExecuteSpecificAgentData, ExecuteSpecificAgentErrors, ExecuteSpecificAgentResponses, ExportGraphSchemaData, ExportGraphSchemaErrors, ExportGraphSchemaResponses, ForgotPasswordData, ForgotPasswordErrors, ForgotPasswordResponses, GenerateSsoTokenData, GenerateSsoTokenErrors, GenerateSsoTokenResponses, GetAccountRollupsData, GetAccountRollupsErrors, GetAccountRollupsResponses, GetAgentMetadataData, GetAgentMetadataErrors, GetAgentMetadataResponses, GetAvailableExtensionsData, GetAvailableExtensionsErrors, GetAvailableExtensionsResponses, GetAvailableGraphTiersData, GetAvailableGraphTiersErrors, GetAvailableGraphTiersResponses, GetBackupDownloadUrlData, GetBackupDownloadUrlErrors, GetBackupDownloadUrlResponses, GetBackupStatsData, GetBackupStatsErrors, GetBackupStatsResponses, GetCaptchaConfigData, GetCaptchaConfigResponses, GetCheckoutStatusData, GetCheckoutStatusErrors, GetCheckoutStatusResponses, GetClosingBookStructuresData, GetClosingBookStructuresErrors, GetClosingBookStructuresResponses, GetConnectionData, GetConnectionErrors, GetConnectionOptionsData, GetConnectionOptionsErrors, GetConnectionOptionsResponses, GetConnectionResponses, GetCreditSummaryData, GetCreditSummaryErrors, GetCreditSummaryResponses, GetCurrentAuthUserData, GetCurrentAuthUserErrors, GetCurrentAuthUserResponses, GetCurrentUserData, GetCurrentUserResponses, GetDatabaseHealthData, GetDatabaseHealthErrors, GetDatabaseHealthResponses, GetDatabaseInfoData, GetDatabaseInfoErrors, GetDatabaseInfoResponses, GetDocumentData, GetDocumentErrors, GetDocumentResponses, GetDocumentSectionData, GetDocumentSectionErrors, GetDocumentSectionResponses, GetFileData, GetFileErrors, GetFileResponses, GetFiscalCalendarData, GetFiscalCalendarErrors, GetFiscalCalendarResponses, GetGraphCapacityData, GetGraphCapacityErrors, GetGraphCapacityResponses, GetGraphLimitsData, GetGraphLimitsErrors, GetGraphLimitsResponses, GetGraphMetricsData, GetGraphMetricsErrors, GetGraphMetricsResponses, GetGraphSchemaData, GetGraphSchemaErrors, GetGraphSchemaResponses, GetGraphsData, GetGraphsErrors, GetGraphsResponses, GetGraphSubscriptionData, GetGraphSubscriptionErrors, GetGraphSubscriptionResponses, GetGraphUsageAnalyticsData, GetGraphUsageAnalyticsErrors, GetGraphUsageAnalyticsResponses, GetLedgerAccountTreeData, GetLedgerAccountTreeErrors, GetLedgerAccountTreeResponses, GetLedgerEntityData, GetLedgerEntityErrors, GetLedgerEntityResponses, GetLedgerSummaryData, GetLedgerSummaryErrors, GetLedgerSummaryResponses, GetLedgerTransactionData, GetLedgerTransactionErrors, GetLedgerTransactionResponses, GetLedgerTrialBalanceData, GetLedgerTrialBalanceErrors, GetLedgerTrialBalanceResponses, GetMappedTrialBalanceData, GetMappedTrialBalanceErrors, GetMappedTrialBalanceResponses, GetMappingCoverageData, GetMappingCoverageErrors, GetMappingCoverageResponses, GetMappingDetailData, GetMappingDetailErrors, GetMappingDetailResponses, 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, GetPeriodCloseStatusData, GetPeriodCloseStatusErrors, GetPeriodCloseStatusResponses, GetPortfolioData, GetPortfolioErrors, GetPortfolioResponses, GetPositionData, GetPositionErrors, GetPositionResponses, GetPublishListData, GetPublishListErrors, GetPublishListResponses, GetReportData, GetReportErrors, GetReportingTaxonomyData, GetReportingTaxonomyErrors, GetReportingTaxonomyResponses, GetReportResponses, GetScheduleFactsData, GetScheduleFactsErrors, GetScheduleFactsResponses, GetSecurityData, GetSecurityErrors, GetSecurityResponses, GetServiceOfferingsData, GetServiceOfferingsErrors, GetServiceOfferingsResponses, GetServiceStatusData, GetServiceStatusResponses, GetStatementData, GetStatementErrors, GetStatementResponses, GetSubgraphInfoData, GetSubgraphInfoErrors, GetSubgraphInfoResponses, GetSubgraphQuotaData, GetSubgraphQuotaErrors, GetSubgraphQuotaResponses, InitializeLedgerData, InitializeLedgerErrors, InitializeLedgerResponses, InitOAuthData, InitOAuthErrors, InitOAuthResponses, InviteOrgMemberData, InviteOrgMemberErrors, InviteOrgMemberResponses, ListAgentsData, ListAgentsErrors, ListAgentsResponses, ListBackupsData, ListBackupsErrors, ListBackupsResponses, ListConnectionsData, ListConnectionsErrors, ListConnectionsResponses, ListCreditTransactionsData, ListCreditTransactionsErrors, ListCreditTransactionsResponses, ListDocumentsData, ListDocumentsErrors, ListDocumentsResponses, ListElementsData, ListElementsErrors, ListElementsResponses, ListFilesData, ListFilesErrors, ListFilesResponses, ListHoldingsData, ListHoldingsErrors, ListHoldingsResponses, ListLedgerAccountsData, ListLedgerAccountsErrors, ListLedgerAccountsResponses, ListLedgerEntitiesData, ListLedgerEntitiesErrors, ListLedgerEntitiesResponses, ListLedgerTransactionsData, ListLedgerTransactionsErrors, ListLedgerTransactionsResponses, ListMappingsData, ListMappingsErrors, ListMappingsResponses, ListMcpToolsData, ListMcpToolsErrors, ListMcpToolsResponses, ListOrgGraphsData, ListOrgGraphsErrors, ListOrgGraphsResponses, ListOrgInvoicesData, ListOrgInvoicesErrors, ListOrgInvoicesResponses, ListOrgMembersData, ListOrgMembersErrors, ListOrgMembersResponses, ListOrgSubscriptionsData, ListOrgSubscriptionsErrors, ListOrgSubscriptionsResponses, ListPeriodDraftsData, ListPeriodDraftsErrors, ListPeriodDraftsResponses, ListPortfoliosData, ListPortfoliosErrors, ListPortfoliosResponses, ListPositionsData, ListPositionsErrors, ListPositionsResponses, ListPublishListsData, ListPublishListsErrors, ListPublishListsResponses, ListReportsData, ListReportsErrors, ListReportsResponses, ListSchedulesData, ListSchedulesErrors, ListSchedulesResponses, ListSecuritiesData, ListSecuritiesErrors, ListSecuritiesResponses, ListStructuresData, ListStructuresErrors, ListStructuresResponses, ListSubgraphsData, ListSubgraphsErrors, ListSubgraphsResponses, ListTablesData, ListTablesErrors, ListTablesResponses, ListTaxonomiesData, ListTaxonomiesErrors, ListTaxonomiesResponses, ListUnmappedElementsData, ListUnmappedElementsErrors, ListUnmappedElementsResponses, ListUserApiKeysData, ListUserApiKeysResponses, ListUserOrgsData, ListUserOrgsResponses, LoginUserData, LoginUserErrors, LoginUserResponses, LogoutUserData, LogoutUserResponses, MaterializeGraphData, MaterializeGraphErrors, MaterializeGraphResponses, OauthCallbackData, OauthCallbackErrors, OauthCallbackResponses, QueryTablesData, QueryTablesErrors, QueryTablesResponses, RecommendAgentData, RecommendAgentErrors, RecommendAgentResponses, RefreshAuthSessionData, RefreshAuthSessionErrors, RefreshAuthSessionResponses, RegenerateReportData, RegenerateReportErrors, RegenerateReportResponses, RegisterUserData, RegisterUserErrors, RegisterUserResponses, RemoveOrgMemberData, RemoveOrgMemberErrors, RemoveOrgMemberResponses, RemovePublishListMemberData, RemovePublishListMemberErrors, RemovePublishListMemberResponses, ReopenFiscalPeriodData, ReopenFiscalPeriodErrors, ReopenFiscalPeriodResponses, ResendVerificationEmailData, ResendVerificationEmailErrors, ResendVerificationEmailResponses, ResetPasswordData, ResetPasswordErrors, ResetPasswordResponses, RestoreBackupData, RestoreBackupErrors, RestoreBackupResponses, RevokeUserApiKeyData, RevokeUserApiKeyErrors, RevokeUserApiKeyResponses, SearchDocumentsData, SearchDocumentsErrors, SearchDocumentsResponses, SelectGraphData, SelectGraphErrors, SelectGraphResponses, SetCloseTargetData, SetCloseTargetErrors, SetCloseTargetResponses, ShareReportData, ShareReportErrors, ShareReportResponses, SsoTokenExchangeData, SsoTokenExchangeErrors, SsoTokenExchangeResponses, StreamOperationEventsData, StreamOperationEventsErrors, StreamOperationEventsResponses, SyncConnectionData, SyncConnectionErrors, SyncConnectionResponses, TruncateScheduleData, TruncateScheduleErrors, TruncateScheduleResponses, UpdateDocumentData, UpdateDocumentErrors, UpdateDocumentResponses, UpdateFileData, UpdateFileErrors, UpdateFileResponses, UpdateLedgerEntityData, UpdateLedgerEntityErrors, UpdateLedgerEntityResponses, UpdateOrgData, UpdateOrgErrors, UpdateOrgMemberRoleData, UpdateOrgMemberRoleErrors, UpdateOrgMemberRoleResponses, UpdateOrgResponses, UpdatePortfolioData, UpdatePortfolioErrors, UpdatePortfolioResponses, UpdatePositionData, UpdatePositionErrors, UpdatePositionResponses, UpdatePublishListData, UpdatePublishListErrors, UpdatePublishListResponses, UpdateSecurityData, UpdateSecurityErrors, UpdateSecurityResponses, UpdateUserApiKeyData, UpdateUserApiKeyErrors, UpdateUserApiKeyResponses, UpdateUserData, UpdateUserErrors, UpdateUserPasswordData, UpdateUserPasswordErrors, UpdateUserPasswordResponses, UpdateUserResponses, UploadDocumentData, UploadDocumentErrors, UploadDocumentResponses, UploadDocumentsBulkData, UploadDocumentsBulkErrors, UploadDocumentsBulkResponses, 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, ChangeSubscriptionPlanData, ChangeSubscriptionPlanErrors, ChangeSubscriptionPlanResponses, CheckPasswordStrengthData, CheckPasswordStrengthErrors, CheckPasswordStrengthResponses, 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, DeleteConnectionData, DeleteConnectionErrors, DeleteConnectionResponses, DeleteDocumentData, DeleteDocumentErrors, DeleteDocumentResponses, 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, GetDocumentData, GetDocumentErrors, GetDocumentResponses, GetDocumentSectionData, GetDocumentSectionErrors, GetDocumentSectionResponses, 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, GetSubgraphInfoData, GetSubgraphInfoErrors, GetSubgraphInfoResponses, GetSubgraphQuotaData, GetSubgraphQuotaErrors, GetSubgraphQuotaResponses, HandleHttpGetExtensionsGraphIdGraphqlGetData, HandleHttpGetExtensionsGraphIdGraphqlGetErrors, HandleHttpGetExtensionsGraphIdGraphqlGetResponses, HandleHttpPostExtensionsGraphIdGraphqlPostData, HandleHttpPostExtensionsGraphIdGraphqlPostErrors, HandleHttpPostExtensionsGraphIdGraphqlPostResponses, InitOAuthData, InitOAuthErrors, InitOAuthResponses, InviteOrgMemberData, InviteOrgMemberErrors, InviteOrgMemberResponses, ListAgentsData, ListAgentsErrors, ListAgentsResponses, ListBackupsData, ListBackupsErrors, ListBackupsResponses, ListConnectionsData, ListConnectionsErrors, ListConnectionsResponses, ListCreditTransactionsData, ListCreditTransactionsErrors, ListCreditTransactionsResponses, ListDocumentsData, ListDocumentsErrors, ListDocumentsResponses, 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, OpAddPublishListMembersData, OpAddPublishListMembersErrors, OpAddPublishListMembersResponses, OpAutoMapElementsData, OpAutoMapElementsErrors, OpAutoMapElementsResponses, OpBuildFactGridData, OpBuildFactGridErrors, OpBuildFactGridResponses, OpClosePeriodData, OpClosePeriodErrors, OpClosePeriodResponses, OpCreateClosingEntryData, OpCreateClosingEntryErrors, OpCreateClosingEntryResponses, OpCreateManualClosingEntryData, OpCreateManualClosingEntryErrors, OpCreateManualClosingEntryResponses, OpCreateMappingAssociationData, OpCreateMappingAssociationErrors, OpCreateMappingAssociationResponses, OpCreatePortfolioData, OpCreatePortfolioErrors, OpCreatePortfolioResponses, OpCreatePositionData, OpCreatePositionErrors, OpCreatePositionResponses, OpCreatePublishListData, OpCreatePublishListErrors, OpCreatePublishListResponses, OpCreateReportData, OpCreateReportErrors, OpCreateReportResponses, OpCreateScheduleData, OpCreateScheduleErrors, OpCreateScheduleResponses, OpCreateSecurityData, OpCreateSecurityErrors, OpCreateSecurityResponses, OpCreateStructureData, OpCreateStructureErrors, OpCreateStructureResponses, OpCreateTaxonomyData, OpCreateTaxonomyErrors, OpCreateTaxonomyResponses, OpDeleteMappingAssociationData, OpDeleteMappingAssociationErrors, OpDeleteMappingAssociationResponses, OpDeletePortfolioData, OpDeletePortfolioErrors, OpDeletePortfolioResponses, OpDeletePositionData, OpDeletePositionErrors, OpDeletePositionResponses, OpDeletePublishListData, OpDeletePublishListErrors, OpDeletePublishListResponses, OpDeleteReportData, OpDeleteReportErrors, OpDeleteReportResponses, OpDeleteSecurityData, OpDeleteSecurityErrors, OpDeleteSecurityResponses, OpInitializeLedgerData, OpInitializeLedgerErrors, OpInitializeLedgerResponses, OpRegenerateReportData, OpRegenerateReportErrors, OpRegenerateReportResponses, OpRemovePublishListMemberData, OpRemovePublishListMemberErrors, OpRemovePublishListMemberResponses, OpReopenPeriodData, OpReopenPeriodErrors, OpReopenPeriodResponses, OpSetCloseTargetData, OpSetCloseTargetErrors, OpSetCloseTargetResponses, OpShareReportData, OpShareReportErrors, OpShareReportResponses, OpTruncateScheduleData, OpTruncateScheduleErrors, OpTruncateScheduleResponses, OpUpdateEntityData, OpUpdateEntityErrors, OpUpdateEntityResponses, OpUpdatePortfolioData, OpUpdatePortfolioErrors, OpUpdatePortfolioResponses, OpUpdatePositionData, OpUpdatePositionErrors, OpUpdatePositionResponses, OpUpdatePublishListData, OpUpdatePublishListErrors, OpUpdatePublishListResponses, OpUpdateSecurityData, OpUpdateSecurityErrors, OpUpdateSecurityResponses, 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, SearchDocumentsData, SearchDocumentsErrors, SearchDocumentsResponses, SelectGraphData, SelectGraphErrors, SelectGraphResponses, SsoTokenExchangeData, SsoTokenExchangeErrors, SsoTokenExchangeResponses, StreamOperationEventsData, StreamOperationEventsErrors, StreamOperationEventsResponses, SyncConnectionData, SyncConnectionErrors, SyncConnectionResponses, UpdateDocumentData, UpdateDocumentErrors, UpdateDocumentResponses, UpdateFileData, UpdateFileErrors, UpdateFileResponses, UpdateOrgData, UpdateOrgErrors, UpdateOrgMemberRoleData, UpdateOrgMemberRoleErrors, UpdateOrgMemberRoleResponses, UpdateOrgResponses, UpdateUserApiKeyData, UpdateUserApiKeyErrors, UpdateUserApiKeyResponses, UpdateUserData, UpdateUserErrors, UpdateUserPasswordData, UpdateUserPasswordErrors, UpdateUserPasswordResponses, UpdateUserResponses, UploadDocumentData, UploadDocumentErrors, UploadDocumentResponses, UploadDocumentsBulkData, UploadDocumentsBulkErrors, UploadDocumentsBulkResponses, 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
  /**
@@ -1873,25 +1873,6 @@ export const queryTables = <ThrowOnError extends boolean = false>(options: Optio
1873
1873
  }
1874
1874
  });
1875
1875
 
1876
- /**
1877
- * Create View
1878
- *
1879
- * Build a fact grid from existing facts in the graph.
1880
- *
1881
- * Queries Fact nodes by element qnames or canonical concepts, with optional
1882
- * filters for periods, entities, filing form, fiscal context, and period type.
1883
- * Returns deduplicated consolidated facts as a pivot table.
1884
- */
1885
- export const createView = <ThrowOnError extends boolean = false>(options: Options<CreateViewData, ThrowOnError>) => (options.client ?? client).post<CreateViewResponses, CreateViewErrors, ThrowOnError>({
1886
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
1887
- url: '/v1/graphs/{graph_id}/views',
1888
- ...options,
1889
- headers: {
1890
- 'Content-Type': 'application/json',
1891
- ...options.headers
1892
- }
1893
- });
1894
-
1895
1876
  /**
1896
1877
  * Search Documents
1897
1878
  *
@@ -2888,13 +2869,20 @@ export const getCheckoutStatus = <ThrowOnError extends boolean = false>(options:
2888
2869
  });
2889
2870
 
2890
2871
  /**
2891
- * Get Entity
2892
- *
2893
- * Get the entity for this ledger graph.
2872
+ * Handle Http Get
2873
+ */
2874
+ export const handleHttpGetExtensionsGraphIdGraphqlGet = <ThrowOnError extends boolean = false>(options: Options<HandleHttpGetExtensionsGraphIdGraphqlGetData, ThrowOnError>) => (options.client ?? client).get<HandleHttpGetExtensionsGraphIdGraphqlGetResponses, HandleHttpGetExtensionsGraphIdGraphqlGetErrors, ThrowOnError>({
2875
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
2876
+ url: '/extensions/{graph_id}/graphql',
2877
+ ...options
2878
+ });
2879
+
2880
+ /**
2881
+ * Handle Http Post
2894
2882
  */
2895
- export const getLedgerEntity = <ThrowOnError extends boolean = false>(options: Options<GetLedgerEntityData, ThrowOnError>) => (options.client ?? client).get<GetLedgerEntityResponses, GetLedgerEntityErrors, ThrowOnError>({
2883
+ export const handleHttpPostExtensionsGraphIdGraphqlPost = <ThrowOnError extends boolean = false>(options: Options<HandleHttpPostExtensionsGraphIdGraphqlPostData, ThrowOnError>) => (options.client ?? client).post<HandleHttpPostExtensionsGraphIdGraphqlPostResponses, HandleHttpPostExtensionsGraphIdGraphqlPostErrors, ThrowOnError>({
2896
2884
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
2897
- url: '/v1/ledger/{graph_id}/entity',
2885
+ url: '/extensions/{graph_id}/graphql',
2898
2886
  ...options
2899
2887
  });
2900
2888
 
@@ -2903,9 +2891,9 @@ export const getLedgerEntity = <ThrowOnError extends boolean = false>(options: O
2903
2891
  *
2904
2892
  * Update entity details. Only provided (non-null) fields are updated.
2905
2893
  */
2906
- export const updateLedgerEntity = <ThrowOnError extends boolean = false>(options: Options<UpdateLedgerEntityData, ThrowOnError>) => (options.client ?? client).put<UpdateLedgerEntityResponses, UpdateLedgerEntityErrors, ThrowOnError>({
2894
+ export const opUpdateEntity = <ThrowOnError extends boolean = false>(options: Options<OpUpdateEntityData, ThrowOnError>) => (options.client ?? client).post<OpUpdateEntityResponses, OpUpdateEntityErrors, ThrowOnError>({
2907
2895
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
2908
- url: '/v1/ledger/{graph_id}/entity',
2896
+ url: '/extensions/roboledger/{graph_id}/operations/update-entity',
2909
2897
  ...options,
2910
2898
  headers: {
2911
2899
  'Content-Type': 'application/json',
@@ -2914,49 +2902,13 @@ export const updateLedgerEntity = <ThrowOnError extends boolean = false>(options
2914
2902
  });
2915
2903
 
2916
2904
  /**
2917
- * List Entities
2905
+ * Initialize Ledger
2918
2906
  *
2919
- * List entities for this graph, optionally filtered by source.
2920
- */
2921
- export const listLedgerEntities = <ThrowOnError extends boolean = false>(options: Options<ListLedgerEntitiesData, ThrowOnError>) => (options.client ?? client).get<ListLedgerEntitiesResponses, ListLedgerEntitiesErrors, ThrowOnError>({
2922
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
2923
- url: '/v1/ledger/{graph_id}/entities',
2924
- ...options
2925
- });
2926
-
2927
- /**
2928
- * List Accounts
2929
- */
2930
- export const listLedgerAccounts = <ThrowOnError extends boolean = false>(options: Options<ListLedgerAccountsData, ThrowOnError>) => (options.client ?? client).get<ListLedgerAccountsResponses, ListLedgerAccountsErrors, ThrowOnError>({
2931
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
2932
- url: '/v1/ledger/{graph_id}/accounts',
2933
- ...options
2934
- });
2935
-
2936
- /**
2937
- * Account Tree
2938
- */
2939
- export const getLedgerAccountTree = <ThrowOnError extends boolean = false>(options: Options<GetLedgerAccountTreeData, ThrowOnError>) => (options.client ?? client).get<GetLedgerAccountTreeResponses, GetLedgerAccountTreeErrors, ThrowOnError>({
2940
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
2941
- url: '/v1/ledger/{graph_id}/accounts/tree',
2942
- ...options
2943
- });
2944
-
2945
- /**
2946
- * List Taxonomies
2947
- */
2948
- export const listTaxonomies = <ThrowOnError extends boolean = false>(options: Options<ListTaxonomiesData, ThrowOnError>) => (options.client ?? client).get<ListTaxonomiesResponses, ListTaxonomiesErrors, ThrowOnError>({
2949
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
2950
- url: '/v1/ledger/{graph_id}/taxonomies',
2951
- ...options
2952
- });
2953
-
2954
- /**
2955
- * Create Taxonomy
2907
+ * One-time ledger initialization create fiscal calendar + seed periods.
2956
2908
  */
2957
- export const createTaxonomy = <ThrowOnError extends boolean = false>(options: Options<CreateTaxonomyData, ThrowOnError>) => (options.client ?? client).post<CreateTaxonomyResponses, CreateTaxonomyErrors, ThrowOnError>({
2909
+ export const opInitializeLedger = <ThrowOnError extends boolean = false>(options: Options<OpInitializeLedgerData, ThrowOnError>) => (options.client ?? client).post<OpInitializeLedgerResponses, OpInitializeLedgerErrors, ThrowOnError>({
2958
2910
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
2959
- url: '/v1/ledger/{graph_id}/taxonomies',
2911
+ url: '/extensions/roboledger/{graph_id}/operations/initialize',
2960
2912
  ...options,
2961
2913
  headers: {
2962
2914
  'Content-Type': 'application/json',
@@ -2965,51 +2917,13 @@ export const createTaxonomy = <ThrowOnError extends boolean = false>(options: Op
2965
2917
  });
2966
2918
 
2967
2919
  /**
2968
- * Get Reporting Taxonomy
2969
- *
2970
- * Get the shared US GAAP reporting taxonomy (read-only).
2971
- */
2972
- export const getReportingTaxonomy = <ThrowOnError extends boolean = false>(options: Options<GetReportingTaxonomyData, ThrowOnError>) => (options.client ?? client).get<GetReportingTaxonomyResponses, GetReportingTaxonomyErrors, ThrowOnError>({
2973
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
2974
- url: '/v1/ledger/{graph_id}/taxonomies/reporting',
2975
- ...options
2976
- });
2977
-
2978
- /**
2979
- * List Elements
2980
- */
2981
- export const listElements = <ThrowOnError extends boolean = false>(options: Options<ListElementsData, ThrowOnError>) => (options.client ?? client).get<ListElementsResponses, ListElementsErrors, ThrowOnError>({
2982
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
2983
- url: '/v1/ledger/{graph_id}/elements',
2984
- ...options
2985
- });
2986
-
2987
- /**
2988
- * List Unmapped Elements
2920
+ * Set Close Target
2989
2921
  *
2990
- * List CoA elements that are not yet mapped to the reporting taxonomy.
2991
- */
2992
- export const listUnmappedElements = <ThrowOnError extends boolean = false>(options: Options<ListUnmappedElementsData, ThrowOnError>) => (options.client ?? client).get<ListUnmappedElementsResponses, ListUnmappedElementsErrors, ThrowOnError>({
2993
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
2994
- url: '/v1/ledger/{graph_id}/elements/unmapped',
2995
- ...options
2996
- });
2997
-
2998
- /**
2999
- * List Structures
3000
- */
3001
- export const listStructures = <ThrowOnError extends boolean = false>(options: Options<ListStructuresData, ThrowOnError>) => (options.client ?? client).get<ListStructuresResponses, ListStructuresErrors, ThrowOnError>({
3002
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3003
- url: '/v1/ledger/{graph_id}/structures',
3004
- ...options
3005
- });
3006
-
3007
- /**
3008
- * Create Structure
2922
+ * Set the user-controlled close target (YYYY-MM).
3009
2923
  */
3010
- export const createStructure = <ThrowOnError extends boolean = false>(options: Options<CreateStructureData, ThrowOnError>) => (options.client ?? client).post<CreateStructureResponses, CreateStructureErrors, ThrowOnError>({
2924
+ export const opSetCloseTarget = <ThrowOnError extends boolean = false>(options: Options<OpSetCloseTargetData, ThrowOnError>) => (options.client ?? client).post<OpSetCloseTargetResponses, OpSetCloseTargetErrors, ThrowOnError>({
3011
2925
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3012
- url: '/v1/ledger/{graph_id}/structures',
2926
+ url: '/extensions/roboledger/{graph_id}/operations/set-close-target',
3013
2927
  ...options,
3014
2928
  headers: {
3015
2929
  'Content-Type': 'application/json',
@@ -3018,35 +2932,13 @@ export const createStructure = <ThrowOnError extends boolean = false>(options: O
3018
2932
  });
3019
2933
 
3020
2934
  /**
3021
- * List Mapping Structures
3022
- *
3023
- * List all mapping structures (structure_type = 'coa_mapping').
3024
- */
3025
- export const listMappings = <ThrowOnError extends boolean = false>(options: Options<ListMappingsData, ThrowOnError>) => (options.client ?? client).get<ListMappingsResponses, ListMappingsErrors, ThrowOnError>({
3026
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3027
- url: '/v1/ledger/{graph_id}/mappings',
3028
- ...options
3029
- });
3030
-
3031
- /**
3032
- * Get Mapping Detail
3033
- *
3034
- * Get a mapping structure with all its associations.
3035
- */
3036
- export const getMappingDetail = <ThrowOnError extends boolean = false>(options: Options<GetMappingDetailData, ThrowOnError>) => (options.client ?? client).get<GetMappingDetailResponses, GetMappingDetailErrors, ThrowOnError>({
3037
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3038
- url: '/v1/ledger/{graph_id}/mappings/{mapping_id}',
3039
- ...options
3040
- });
3041
-
3042
- /**
3043
- * Create Mapping Association
2935
+ * Close Fiscal Period
3044
2936
  *
3045
- * Add a mapping association (CoA element reporting concept).
2937
+ * Close a fiscal period the final commit action.
3046
2938
  */
3047
- export const createMappingAssociation = <ThrowOnError extends boolean = false>(options: Options<CreateMappingAssociationData, ThrowOnError>) => (options.client ?? client).post<CreateMappingAssociationResponses, CreateMappingAssociationErrors, ThrowOnError>({
2939
+ export const opClosePeriod = <ThrowOnError extends boolean = false>(options: Options<OpClosePeriodData, ThrowOnError>) => (options.client ?? client).post<OpClosePeriodResponses, OpClosePeriodErrors, ThrowOnError>({
3048
2940
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3049
- url: '/v1/ledger/{graph_id}/mappings/{mapping_id}/associations',
2941
+ url: '/extensions/roboledger/{graph_id}/operations/close-period',
3050
2942
  ...options,
3051
2943
  headers: {
3052
2944
  'Content-Type': 'application/json',
@@ -3055,113 +2947,13 @@ export const createMappingAssociation = <ThrowOnError extends boolean = false>(o
3055
2947
  });
3056
2948
 
3057
2949
  /**
3058
- * Delete Mapping Association
3059
- *
3060
- * Remove a mapping association.
3061
- */
3062
- export const deleteMappingAssociation = <ThrowOnError extends boolean = false>(options: Options<DeleteMappingAssociationData, ThrowOnError>) => (options.client ?? client).delete<DeleteMappingAssociationResponses, DeleteMappingAssociationErrors, ThrowOnError>({
3063
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3064
- url: '/v1/ledger/{graph_id}/mappings/{mapping_id}/associations/{association_id}',
3065
- ...options
3066
- });
3067
-
3068
- /**
3069
- * Mapping Coverage
3070
- *
3071
- * Get mapping coverage stats.
3072
- */
3073
- export const getMappingCoverage = <ThrowOnError extends boolean = false>(options: Options<GetMappingCoverageData, ThrowOnError>) => (options.client ?? client).get<GetMappingCoverageResponses, GetMappingCoverageErrors, ThrowOnError>({
3074
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3075
- url: '/v1/ledger/{graph_id}/mappings/{mapping_id}/coverage',
3076
- ...options
3077
- });
3078
-
3079
- /**
3080
- * Mapped Trial Balance
3081
- *
3082
- * Trial balance rolled up to reporting concepts via mapping associations.
3083
- */
3084
- export const getMappedTrialBalance = <ThrowOnError extends boolean = false>(options: Options<GetMappedTrialBalanceData, ThrowOnError>) => (options.client ?? client).get<GetMappedTrialBalanceResponses, GetMappedTrialBalanceErrors, ThrowOnError>({
3085
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3086
- url: '/v1/ledger/{graph_id}/trial-balance/mapped',
3087
- ...options
3088
- });
3089
-
3090
- /**
3091
- * Auto-Map Elements via AI
3092
- *
3093
- * Trigger autonomous CoA → GAAP mapping via background worker.
3094
- *
3095
- * Uses Bedrock AI to classify and map unmapped Chart of Accounts elements
3096
- * to US GAAP reporting concepts. Returns a 202 with operation_id for
3097
- * SSE progress tracking.
3098
- *
3099
- * Confidence thresholds:
3100
- * - ≥0.90: auto-approved mapping
3101
- * - 0.70-0.89: flagged for review
3102
- * - <0.70: skipped (left unmapped)
3103
- */
3104
- export const autoMapElements = <ThrowOnError extends boolean = false>(options: Options<AutoMapElementsData, ThrowOnError>) => (options.client ?? client).post<AutoMapElementsResponses, AutoMapElementsErrors, ThrowOnError>({
3105
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3106
- url: '/v1/ledger/{graph_id}/mappings/{mapping_id}/auto-map',
3107
- ...options
3108
- });
3109
-
3110
- /**
3111
- * List Transactions
3112
- */
3113
- export const listLedgerTransactions = <ThrowOnError extends boolean = false>(options: Options<ListLedgerTransactionsData, ThrowOnError>) => (options.client ?? client).get<ListLedgerTransactionsResponses, ListLedgerTransactionsErrors, ThrowOnError>({
3114
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3115
- url: '/v1/ledger/{graph_id}/transactions',
3116
- ...options
3117
- });
3118
-
3119
- /**
3120
- * Transaction Detail
3121
- */
3122
- export const getLedgerTransaction = <ThrowOnError extends boolean = false>(options: Options<GetLedgerTransactionData, ThrowOnError>) => (options.client ?? client).get<GetLedgerTransactionResponses, GetLedgerTransactionErrors, ThrowOnError>({
3123
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3124
- url: '/v1/ledger/{graph_id}/transactions/{transaction_id}',
3125
- ...options
3126
- });
3127
-
3128
- /**
3129
- * Trial Balance
3130
- */
3131
- export const getLedgerTrialBalance = <ThrowOnError extends boolean = false>(options: Options<GetLedgerTrialBalanceData, ThrowOnError>) => (options.client ?? client).get<GetLedgerTrialBalanceResponses, GetLedgerTrialBalanceErrors, ThrowOnError>({
3132
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3133
- url: '/v1/ledger/{graph_id}/trial-balance',
3134
- ...options
3135
- });
3136
-
3137
- /**
3138
- * Ledger Summary
3139
- */
3140
- export const getLedgerSummary = <ThrowOnError extends boolean = false>(options: Options<GetLedgerSummaryData, ThrowOnError>) => (options.client ?? client).get<GetLedgerSummaryResponses, GetLedgerSummaryErrors, ThrowOnError>({
3141
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3142
- url: '/v1/ledger/{graph_id}/summary',
3143
- ...options
3144
- });
3145
-
3146
- /**
3147
- * List Reports
3148
- *
3149
- * List all report definitions for this graph.
3150
- */
3151
- export const listReports = <ThrowOnError extends boolean = false>(options: Options<ListReportsData, ThrowOnError>) => (options.client ?? client).get<ListReportsResponses, ListReportsErrors, ThrowOnError>({
3152
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3153
- url: '/v1/ledger/{graph_id}/reports',
3154
- ...options
3155
- });
3156
-
3157
- /**
3158
- * Create Report
2950
+ * Reopen Fiscal Period
3159
2951
  *
3160
- * Create a report definition, generate facts for all mapped elements.
2952
+ * Reopen a closed fiscal period decrements `closed_through`.
3161
2953
  */
3162
- export const createReport = <ThrowOnError extends boolean = false>(options: Options<CreateReportData, ThrowOnError>) => (options.client ?? client).post<CreateReportResponses, CreateReportErrors, ThrowOnError>({
2954
+ export const opReopenPeriod = <ThrowOnError extends boolean = false>(options: Options<OpReopenPeriodData, ThrowOnError>) => (options.client ?? client).post<OpReopenPeriodResponses, OpReopenPeriodErrors, ThrowOnError>({
3163
2955
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3164
- url: '/v1/ledger/{graph_id}/reports',
2956
+ url: '/extensions/roboledger/{graph_id}/operations/reopen-period',
3165
2957
  ...options,
3166
2958
  headers: {
3167
2959
  'Content-Type': 'application/json',
@@ -3170,51 +2962,13 @@ export const createReport = <ThrowOnError extends boolean = false>(options: Opti
3170
2962
  });
3171
2963
 
3172
2964
  /**
3173
- * Delete Report
3174
- *
3175
- * Delete a report definition and its generated facts.
3176
- */
3177
- export const deleteReport = <ThrowOnError extends boolean = false>(options: Options<DeleteReportData, ThrowOnError>) => (options.client ?? client).delete<DeleteReportResponses, DeleteReportErrors, ThrowOnError>({
3178
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3179
- url: '/v1/ledger/{graph_id}/reports/{report_id}',
3180
- ...options
3181
- });
3182
-
3183
- /**
3184
- * Get Report
3185
- *
3186
- * Get a report definition with its available structures.
3187
- */
3188
- export const getReport = <ThrowOnError extends boolean = false>(options: Options<GetReportData, ThrowOnError>) => (options.client ?? client).get<GetReportResponses, GetReportErrors, ThrowOnError>({
3189
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3190
- url: '/v1/ledger/{graph_id}/reports/{report_id}',
3191
- ...options
3192
- });
3193
-
3194
- /**
3195
- * Get Statement
3196
- *
3197
- * Render a financial statement — facts viewed through a structure's hierarchy.
3198
- *
3199
- * Same report, different structure_type = different view (IS, BS, CF).
3200
- */
3201
- export const getStatement = <ThrowOnError extends boolean = false>(options: Options<GetStatementData, ThrowOnError>) => (options.client ?? client).get<GetStatementResponses, GetStatementErrors, ThrowOnError>({
3202
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3203
- url: '/v1/ledger/{graph_id}/reports/{report_id}/statements/{structure_type}',
3204
- ...options
3205
- });
3206
-
3207
- /**
3208
- * Regenerate Report
3209
- *
3210
- * Regenerate a report with new period dates.
2965
+ * Create Schedule
3211
2966
  *
3212
- * Same report configuration (taxonomy, mapping, settings), new dates.
3213
- * Re-generates facts for all elements.
2967
+ * Create a schedule with pre-generated monthly facts.
3214
2968
  */
3215
- export const regenerateReport = <ThrowOnError extends boolean = false>(options: Options<RegenerateReportData, ThrowOnError>) => (options.client ?? client).post<RegenerateReportResponses, RegenerateReportErrors, ThrowOnError>({
2969
+ export const opCreateSchedule = <ThrowOnError extends boolean = false>(options: Options<OpCreateScheduleData, ThrowOnError>) => (options.client ?? client).post<OpCreateScheduleResponses, OpCreateScheduleErrors, ThrowOnError>({
3216
2970
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3217
- url: '/v1/ledger/{graph_id}/reports/{report_id}/regenerate',
2971
+ url: '/extensions/roboledger/{graph_id}/operations/create-schedule',
3218
2972
  ...options,
3219
2973
  headers: {
3220
2974
  'Content-Type': 'application/json',
@@ -3223,18 +2977,13 @@ export const regenerateReport = <ThrowOnError extends boolean = false>(options:
3223
2977
  });
3224
2978
 
3225
2979
  /**
3226
- * Share Report
3227
- *
3228
- * Share a published report to other graphs.
2980
+ * Truncate Schedule (End Early)
3229
2981
  *
3230
- * Copies the report definition and its generated facts to each target graph's
3231
- * tenant schema. The target graph must have 'roboledger' in its schema_extensions.
3232
- * This is a snapshot — the target gets an immutable copy of the facts at this
3233
- * point in time.
2982
+ * End a schedule early delete forward facts + stale drafts.
3234
2983
  */
3235
- export const shareReport = <ThrowOnError extends boolean = false>(options: Options<ShareReportData, ThrowOnError>) => (options.client ?? client).post<ShareReportResponses, ShareReportErrors, ThrowOnError>({
2984
+ export const opTruncateSchedule = <ThrowOnError extends boolean = false>(options: Options<OpTruncateScheduleData, ThrowOnError>) => (options.client ?? client).post<OpTruncateScheduleResponses, OpTruncateScheduleErrors, ThrowOnError>({
3236
2985
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3237
- url: '/v1/ledger/{graph_id}/reports/{report_id}/share',
2986
+ url: '/extensions/roboledger/{graph_id}/operations/truncate-schedule',
3238
2987
  ...options,
3239
2988
  headers: {
3240
2989
  'Content-Type': 'application/json',
@@ -3243,24 +2992,28 @@ export const shareReport = <ThrowOnError extends boolean = false>(options: Optio
3243
2992
  });
3244
2993
 
3245
2994
  /**
3246
- * List Schedules
2995
+ * Create Closing Entry
3247
2996
  *
3248
- * List all active schedules for this graph.
2997
+ * Create a draft closing entry from a schedule's facts for a period.
3249
2998
  */
3250
- export const listSchedules = <ThrowOnError extends boolean = false>(options: Options<ListSchedulesData, ThrowOnError>) => (options.client ?? client).get<ListSchedulesResponses, ListSchedulesErrors, ThrowOnError>({
2999
+ export const opCreateClosingEntry = <ThrowOnError extends boolean = false>(options: Options<OpCreateClosingEntryData, ThrowOnError>) => (options.client ?? client).post<OpCreateClosingEntryResponses, OpCreateClosingEntryErrors, ThrowOnError>({
3251
3000
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3252
- url: '/v1/ledger/{graph_id}/schedules',
3253
- ...options
3001
+ url: '/extensions/roboledger/{graph_id}/operations/create-closing-entry',
3002
+ ...options,
3003
+ headers: {
3004
+ 'Content-Type': 'application/json',
3005
+ ...options.headers
3006
+ }
3254
3007
  });
3255
3008
 
3256
3009
  /**
3257
- * Create Schedule
3010
+ * Create Manual Closing Entry
3258
3011
  *
3259
- * Create a schedule with pre-generated facts for each monthly period.
3012
+ * Create a manual (non-schedule) draft closing entry.
3260
3013
  */
3261
- export const createSchedule = <ThrowOnError extends boolean = false>(options: Options<CreateScheduleData, ThrowOnError>) => (options.client ?? client).post<CreateScheduleResponses, CreateScheduleErrors, ThrowOnError>({
3014
+ export const opCreateManualClosingEntry = <ThrowOnError extends boolean = false>(options: Options<OpCreateManualClosingEntryData, ThrowOnError>) => (options.client ?? client).post<OpCreateManualClosingEntryResponses, OpCreateManualClosingEntryErrors, ThrowOnError>({
3262
3015
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3263
- url: '/v1/ledger/{graph_id}/schedules',
3016
+ url: '/extensions/roboledger/{graph_id}/operations/create-manual-closing-entry',
3264
3017
  ...options,
3265
3018
  headers: {
3266
3019
  'Content-Type': 'application/json',
@@ -3269,35 +3022,43 @@ export const createSchedule = <ThrowOnError extends boolean = false>(options: Op
3269
3022
  });
3270
3023
 
3271
3024
  /**
3272
- * Get Schedule Facts
3025
+ * Create Taxonomy
3273
3026
  *
3274
- * Get facts for a schedule, optionally filtered by period.
3027
+ * Create a new taxonomy definition.
3275
3028
  */
3276
- export const getScheduleFacts = <ThrowOnError extends boolean = false>(options: Options<GetScheduleFactsData, ThrowOnError>) => (options.client ?? client).get<GetScheduleFactsResponses, GetScheduleFactsErrors, ThrowOnError>({
3029
+ export const opCreateTaxonomy = <ThrowOnError extends boolean = false>(options: Options<OpCreateTaxonomyData, ThrowOnError>) => (options.client ?? client).post<OpCreateTaxonomyResponses, OpCreateTaxonomyErrors, ThrowOnError>({
3277
3030
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3278
- url: '/v1/ledger/{graph_id}/schedules/{structure_id}/facts',
3279
- ...options
3031
+ url: '/extensions/roboledger/{graph_id}/operations/create-taxonomy',
3032
+ ...options,
3033
+ headers: {
3034
+ 'Content-Type': 'application/json',
3035
+ ...options.headers
3036
+ }
3280
3037
  });
3281
3038
 
3282
3039
  /**
3283
- * Get Period Close Status
3040
+ * Create Structure
3284
3041
  *
3285
- * Get close status for all schedules in a fiscal period.
3042
+ * Create a new structure (statement, mapping, schedule, etc.).
3286
3043
  */
3287
- export const getPeriodCloseStatus = <ThrowOnError extends boolean = false>(options: Options<GetPeriodCloseStatusData, ThrowOnError>) => (options.client ?? client).get<GetPeriodCloseStatusResponses, GetPeriodCloseStatusErrors, ThrowOnError>({
3044
+ export const opCreateStructure = <ThrowOnError extends boolean = false>(options: Options<OpCreateStructureData, ThrowOnError>) => (options.client ?? client).post<OpCreateStructureResponses, OpCreateStructureErrors, ThrowOnError>({
3288
3045
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3289
- url: '/v1/ledger/{graph_id}/schedules/close-status',
3290
- ...options
3046
+ url: '/extensions/roboledger/{graph_id}/operations/create-structure',
3047
+ ...options,
3048
+ headers: {
3049
+ 'Content-Type': 'application/json',
3050
+ ...options.headers
3051
+ }
3291
3052
  });
3292
3053
 
3293
3054
  /**
3294
- * Create Closing Entry
3055
+ * Create Mapping Association
3295
3056
  *
3296
- * Create a draft closing entry from a schedule's facts for a period.
3057
+ * Add a mapping association (CoA element reporting concept).
3297
3058
  */
3298
- export const createClosingEntry = <ThrowOnError extends boolean = false>(options: Options<CreateClosingEntryData, ThrowOnError>) => (options.client ?? client).post<CreateClosingEntryResponses, CreateClosingEntryErrors, ThrowOnError>({
3059
+ export const opCreateMappingAssociation = <ThrowOnError extends boolean = false>(options: Options<OpCreateMappingAssociationData, ThrowOnError>) => (options.client ?? client).post<OpCreateMappingAssociationResponses, OpCreateMappingAssociationErrors, ThrowOnError>({
3299
3060
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3300
- url: '/v1/ledger/{graph_id}/schedules/{structure_id}/closing-entry',
3061
+ url: '/extensions/roboledger/{graph_id}/operations/create-mapping-association',
3301
3062
  ...options,
3302
3063
  headers: {
3303
3064
  'Content-Type': 'application/json',
@@ -3306,24 +3067,13 @@ export const createClosingEntry = <ThrowOnError extends boolean = false>(options
3306
3067
  });
3307
3068
 
3308
3069
  /**
3309
- * Truncate Schedule (End Early)
3310
- *
3311
- * End a schedule early.
3312
- *
3313
- * Used for events that cut a schedule's lifespan short — an asset is sold,
3314
- * a prepaid is cancelled, a contract is terminated. Deletes all facts with
3315
- * `period_start > new_end_date` and any stale draft entries that were
3316
- * produced from them.
3317
- *
3318
- * Posted entries are preserved — if any period after `new_end_date` has a
3319
- * posted closing entry, the truncate fails with 422 and the caller must
3320
- * reopen that period first.
3070
+ * Delete Mapping Association
3321
3071
  *
3322
- * The truncation is logged to the schedule's metadata for audit.
3072
+ * Remove a mapping association.
3323
3073
  */
3324
- export const truncateSchedule = <ThrowOnError extends boolean = false>(options: Options<TruncateScheduleData, ThrowOnError>) => (options.client ?? client).patch<TruncateScheduleResponses, TruncateScheduleErrors, ThrowOnError>({
3074
+ export const opDeleteMappingAssociation = <ThrowOnError extends boolean = false>(options: Options<OpDeleteMappingAssociationData, ThrowOnError>) => (options.client ?? client).post<OpDeleteMappingAssociationResponses, OpDeleteMappingAssociationErrors, ThrowOnError>({
3325
3075
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3326
- url: '/v1/ledger/{graph_id}/schedules/{structure_id}/truncate',
3076
+ url: '/extensions/roboledger/{graph_id}/operations/delete-mapping-association',
3327
3077
  ...options,
3328
3078
  headers: {
3329
3079
  'Content-Type': 'application/json',
@@ -3332,24 +3082,24 @@ export const truncateSchedule = <ThrowOnError extends boolean = false>(options:
3332
3082
  });
3333
3083
 
3334
3084
  /**
3335
- * Create Manual Closing Entry
3085
+ * Auto-Map Elements via AI (async)
3336
3086
  *
3337
- * Create a manual (non-schedule) draft closing entry.
3087
+ * Trigger autonomous CoA US GAAP mapping via background worker.
3338
3088
  *
3339
- * Used for one-off adjustments that aren't derived from a schedule: asset
3340
- * disposals, impairments, reclassifications, correcting entries.
3089
+ * This is the only async/Dagster-dispatched ledger operation. Instead
3090
+ * of running synchronously, it enqueues a `MappingAgent` task and
3091
+ * returns a `pending` envelope with the worker-issued operation_id —
3092
+ * callers subscribe via `/v1/operations/{operation_id}/stream` for SSE
3093
+ * progress events.
3341
3094
  *
3342
- * The entry is drafted like any schedule-derived entry and flows through
3343
- * the same review and close pipeline — `list-period-drafts` shows it,
3344
- * `close-period` commits it along with the rest.
3345
- *
3346
- * Line items can be any count (not just 2 like schedule entries). Total
3347
- * debits must equal total credits. `provenance` is set to 'manual_entry'
3348
- * and `source_structure_id` is null.
3095
+ * Confidence thresholds (in the agent):
3096
+ * - ≥0.90: auto-approved mapping
3097
+ * - 0.70-0.89: flagged for review
3098
+ * - <0.70: skipped (left unmapped)
3349
3099
  */
3350
- export const createManualClosingEntry = <ThrowOnError extends boolean = false>(options: Options<CreateManualClosingEntryData, ThrowOnError>) => (options.client ?? client).post<CreateManualClosingEntryResponses, CreateManualClosingEntryErrors, ThrowOnError>({
3100
+ export const opAutoMapElements = <ThrowOnError extends boolean = false>(options: Options<OpAutoMapElementsData, ThrowOnError>) => (options.client ?? client).post<OpAutoMapElementsResponses, OpAutoMapElementsErrors, ThrowOnError>({
3351
3101
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3352
- url: '/v1/ledger/{graph_id}/manual-closing-entry',
3102
+ url: '/extensions/roboledger/{graph_id}/operations/auto-map-elements',
3353
3103
  ...options,
3354
3104
  headers: {
3355
3105
  'Content-Type': 'application/json',
@@ -3358,20 +3108,13 @@ export const createManualClosingEntry = <ThrowOnError extends boolean = false>(o
3358
3108
  });
3359
3109
 
3360
3110
  /**
3361
- * List Publish Lists
3362
- */
3363
- export const listPublishLists = <ThrowOnError extends boolean = false>(options: Options<ListPublishListsData, ThrowOnError>) => (options.client ?? client).get<ListPublishListsResponses, ListPublishListsErrors, ThrowOnError>({
3364
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3365
- url: '/v1/ledger/{graph_id}/publish-lists',
3366
- ...options
3367
- });
3368
-
3369
- /**
3370
- * Create Publish List
3111
+ * Create Report
3112
+ *
3113
+ * Create a report definition, generate facts, and mark as published.
3371
3114
  */
3372
- export const createPublishList = <ThrowOnError extends boolean = false>(options: Options<CreatePublishListData, ThrowOnError>) => (options.client ?? client).post<CreatePublishListResponses, CreatePublishListErrors, ThrowOnError>({
3115
+ export const opCreateReport = <ThrowOnError extends boolean = false>(options: Options<OpCreateReportData, ThrowOnError>) => (options.client ?? client).post<OpCreateReportResponses, OpCreateReportErrors, ThrowOnError>({
3373
3116
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3374
- url: '/v1/ledger/{graph_id}/publish-lists',
3117
+ url: '/extensions/roboledger/{graph_id}/operations/create-report',
3375
3118
  ...options,
3376
3119
  headers: {
3377
3120
  'Content-Type': 'application/json',
@@ -3380,29 +3123,13 @@ export const createPublishList = <ThrowOnError extends boolean = false>(options:
3380
3123
  });
3381
3124
 
3382
3125
  /**
3383
- * Delete Publish List
3384
- */
3385
- export const deletePublishList = <ThrowOnError extends boolean = false>(options: Options<DeletePublishListData, ThrowOnError>) => (options.client ?? client).delete<DeletePublishListResponses, DeletePublishListErrors, ThrowOnError>({
3386
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3387
- url: '/v1/ledger/{graph_id}/publish-lists/{list_id}',
3388
- ...options
3389
- });
3390
-
3391
- /**
3392
- * Get Publish List
3393
- */
3394
- export const getPublishList = <ThrowOnError extends boolean = false>(options: Options<GetPublishListData, ThrowOnError>) => (options.client ?? client).get<GetPublishListResponses, GetPublishListErrors, ThrowOnError>({
3395
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3396
- url: '/v1/ledger/{graph_id}/publish-lists/{list_id}',
3397
- ...options
3398
- });
3399
-
3400
- /**
3401
- * Update Publish List
3126
+ * Regenerate Report
3127
+ *
3128
+ * Regenerate a report with new period dates.
3402
3129
  */
3403
- export const updatePublishList = <ThrowOnError extends boolean = false>(options: Options<UpdatePublishListData, ThrowOnError>) => (options.client ?? client).patch<UpdatePublishListResponses, UpdatePublishListErrors, ThrowOnError>({
3130
+ export const opRegenerateReport = <ThrowOnError extends boolean = false>(options: Options<OpRegenerateReportData, ThrowOnError>) => (options.client ?? client).post<OpRegenerateReportResponses, OpRegenerateReportErrors, ThrowOnError>({
3404
3131
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3405
- url: '/v1/ledger/{graph_id}/publish-lists/{list_id}',
3132
+ url: '/extensions/roboledger/{graph_id}/operations/regenerate-report',
3406
3133
  ...options,
3407
3134
  headers: {
3408
3135
  'Content-Type': 'application/json',
@@ -3411,11 +3138,13 @@ export const updatePublishList = <ThrowOnError extends boolean = false>(options:
3411
3138
  });
3412
3139
 
3413
3140
  /**
3414
- * Add Members to Publish List
3141
+ * Delete Report
3142
+ *
3143
+ * Delete a report definition and its facts.
3415
3144
  */
3416
- export const addPublishListMembers = <ThrowOnError extends boolean = false>(options: Options<AddPublishListMembersData, ThrowOnError>) => (options.client ?? client).post<AddPublishListMembersResponses, AddPublishListMembersErrors, ThrowOnError>({
3145
+ export const opDeleteReport = <ThrowOnError extends boolean = false>(options: Options<OpDeleteReportData, ThrowOnError>) => (options.client ?? client).post<OpDeleteReportResponses, OpDeleteReportErrors, ThrowOnError>({
3417
3146
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3418
- url: '/v1/ledger/{graph_id}/publish-lists/{list_id}/members',
3147
+ url: '/extensions/roboledger/{graph_id}/operations/delete-report',
3419
3148
  ...options,
3420
3149
  headers: {
3421
3150
  'Content-Type': 'application/json',
@@ -3424,58 +3153,28 @@ export const addPublishListMembers = <ThrowOnError extends boolean = false>(opti
3424
3153
  });
3425
3154
 
3426
3155
  /**
3427
- * Remove Member from Publish List
3428
- */
3429
- export const removePublishListMember = <ThrowOnError extends boolean = false>(options: Options<RemovePublishListMemberData, ThrowOnError>) => (options.client ?? client).delete<RemovePublishListMemberResponses, RemovePublishListMemberErrors, ThrowOnError>({
3430
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3431
- url: '/v1/ledger/{graph_id}/publish-lists/{list_id}/members/{member_id}',
3432
- ...options
3433
- });
3434
-
3435
- /**
3436
- * Account Rollups
3437
- *
3438
- * Account rollups — CoA accounts grouped by reporting element with balances.
3439
- *
3440
- * Shows how company-specific accounts roll up to standardized reporting
3441
- * line items. Auto-discovers the mapping structure if mapping_id is not provided.
3442
- */
3443
- export const getAccountRollups = <ThrowOnError extends boolean = false>(options: Options<GetAccountRollupsData, ThrowOnError>) => (options.client ?? client).get<GetAccountRollupsResponses, GetAccountRollupsErrors, ThrowOnError>({
3444
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3445
- url: '/v1/ledger/{graph_id}/account-rollups',
3446
- ...options
3447
- });
3448
-
3449
- /**
3450
- * Closing Book Structures
3451
- *
3452
- * Returns all structure categories for the closing book sidebar.
3156
+ * Share Report
3453
3157
  *
3454
- * Aggregates statements (from latest report), schedules, account rollups
3455
- * (from mapping structures), and trial balance availability into a single
3456
- * response for the viewer sidebar navigation.
3158
+ * Share a published report to a publish list's members.
3457
3159
  */
3458
- export const getClosingBookStructures = <ThrowOnError extends boolean = false>(options: Options<GetClosingBookStructuresData, ThrowOnError>) => (options.client ?? client).get<GetClosingBookStructuresResponses, GetClosingBookStructuresErrors, ThrowOnError>({
3160
+ export const opShareReport = <ThrowOnError extends boolean = false>(options: Options<OpShareReportData, ThrowOnError>) => (options.client ?? client).post<OpShareReportResponses, OpShareReportErrors, ThrowOnError>({
3459
3161
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3460
- url: '/v1/ledger/{graph_id}/closing-book/structures',
3461
- ...options
3162
+ url: '/extensions/roboledger/{graph_id}/operations/share-report',
3163
+ ...options,
3164
+ headers: {
3165
+ 'Content-Type': 'application/json',
3166
+ ...options.headers
3167
+ }
3462
3168
  });
3463
3169
 
3464
3170
  /**
3465
- * Initialize Ledger
3466
- *
3467
- * One-time ledger initialization.
3468
- *
3469
- * Creates the fiscal calendar, seeds `FiscalPeriod` rows for the data window,
3470
- * and sets `closed_through` / `close_target`. Fails if the calendar already
3471
- * exists — use the reopen flow to undo prior closes instead of re-initializing.
3171
+ * Create Publish List
3472
3172
  *
3473
- * `auto_seed_schedules=true` is accepted but is a no-op in v1; schedule
3474
- * creation is deferred to the SchedulerAgent (Phase 5).
3173
+ * Create a new publish list.
3475
3174
  */
3476
- export const initializeLedger = <ThrowOnError extends boolean = false>(options: Options<InitializeLedgerData, ThrowOnError>) => (options.client ?? client).post<InitializeLedgerResponses, InitializeLedgerErrors, ThrowOnError>({
3175
+ export const opCreatePublishList = <ThrowOnError extends boolean = false>(options: Options<OpCreatePublishListData, ThrowOnError>) => (options.client ?? client).post<OpCreatePublishListResponses, OpCreatePublishListErrors, ThrowOnError>({
3477
3176
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3478
- url: '/v1/ledger/{graph_id}/initialize',
3177
+ url: '/extensions/roboledger/{graph_id}/operations/create-publish-list',
3479
3178
  ...options,
3480
3179
  headers: {
3481
3180
  'Content-Type': 'application/json',
@@ -3484,28 +3183,28 @@ export const initializeLedger = <ThrowOnError extends boolean = false>(options:
3484
3183
  });
3485
3184
 
3486
3185
  /**
3487
- * Get Fiscal Calendar
3186
+ * Update Publish List
3488
3187
  *
3489
- * Return the current fiscal calendar state — pointers, gap, closeable status.
3188
+ * Update a publish list's name / description.
3490
3189
  */
3491
- export const getFiscalCalendar = <ThrowOnError extends boolean = false>(options: Options<GetFiscalCalendarData, ThrowOnError>) => (options.client ?? client).get<GetFiscalCalendarResponses, GetFiscalCalendarErrors, ThrowOnError>({
3190
+ export const opUpdatePublishList = <ThrowOnError extends boolean = false>(options: Options<OpUpdatePublishListData, ThrowOnError>) => (options.client ?? client).post<OpUpdatePublishListResponses, OpUpdatePublishListErrors, ThrowOnError>({
3492
3191
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3493
- url: '/v1/ledger/{graph_id}/fiscal-calendar',
3494
- ...options
3192
+ url: '/extensions/roboledger/{graph_id}/operations/update-publish-list',
3193
+ ...options,
3194
+ headers: {
3195
+ 'Content-Type': 'application/json',
3196
+ ...options.headers
3197
+ }
3495
3198
  });
3496
3199
 
3497
3200
  /**
3498
- * Set Close Target
3499
- *
3500
- * Set the close target for a graph.
3201
+ * Delete Publish List
3501
3202
  *
3502
- * Validates that the target is a real YYYY-MM period, is not in the future,
3503
- * and is not before the current `closed_through`. Emits a `target_changed`
3504
- * audit event. Returns the updated calendar state.
3203
+ * Delete a publish list.
3505
3204
  */
3506
- export const setCloseTarget = <ThrowOnError extends boolean = false>(options: Options<SetCloseTargetData, ThrowOnError>) => (options.client ?? client).post<SetCloseTargetResponses, SetCloseTargetErrors, ThrowOnError>({
3205
+ export const opDeletePublishList = <ThrowOnError extends boolean = false>(options: Options<OpDeletePublishListData, ThrowOnError>) => (options.client ?? client).post<OpDeletePublishListResponses, OpDeletePublishListErrors, ThrowOnError>({
3507
3206
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3508
- url: '/v1/ledger/{graph_id}/fiscal-calendar/close-target',
3207
+ url: '/extensions/roboledger/{graph_id}/operations/delete-publish-list',
3509
3208
  ...options,
3510
3209
  headers: {
3511
3210
  'Content-Type': 'application/json',
@@ -3514,17 +3213,13 @@ export const setCloseTarget = <ThrowOnError extends boolean = false>(options: Op
3514
3213
  });
3515
3214
 
3516
3215
  /**
3517
- * Close Fiscal Period
3518
- *
3519
- * Close a fiscal period — the final commit action.
3216
+ * Add Members to Publish List
3520
3217
  *
3521
- * All mechanics live in `PeriodCloseService.close()`. This endpoint just
3522
- * resolves auth + QB sync state, invokes the service, and translates
3523
- * domain exceptions into HTTP responses.
3218
+ * Add target graphs as members of a publish list.
3524
3219
  */
3525
- export const closeFiscalPeriod = <ThrowOnError extends boolean = false>(options: Options<CloseFiscalPeriodData, ThrowOnError>) => (options.client ?? client).post<CloseFiscalPeriodResponses, CloseFiscalPeriodErrors, ThrowOnError>({
3220
+ export const opAddPublishListMembers = <ThrowOnError extends boolean = false>(options: Options<OpAddPublishListMembersData, ThrowOnError>) => (options.client ?? client).post<OpAddPublishListMembersResponses, OpAddPublishListMembersErrors, ThrowOnError>({
3526
3221
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3527
- url: '/v1/ledger/{graph_id}/periods/{period}/close',
3222
+ url: '/extensions/roboledger/{graph_id}/operations/add-publish-list-members',
3528
3223
  ...options,
3529
3224
  headers: {
3530
3225
  'Content-Type': 'application/json',
@@ -3533,22 +3228,13 @@ export const closeFiscalPeriod = <ThrowOnError extends boolean = false>(options:
3533
3228
  });
3534
3229
 
3535
3230
  /**
3536
- * Reopen Fiscal Period
3537
- *
3538
- * Reopen a closed fiscal period.
3539
- *
3540
- * Transitions the period status from 'closed' to 'closing' (drafts may still
3541
- * exist for this period after reopening). If the reopened period is the
3542
- * current `closed_through`, decrements the pointer. Requires a non-empty
3543
- * `reason` for the audit log. Does NOT modify `close_target` — that's a
3544
- * separate user decision.
3231
+ * Remove Member from Publish List
3545
3232
  *
3546
- * Posted entries in the reopened period stay posted. The user can then post
3547
- * additional adjustments, review, and close the period again.
3233
+ * Remove a target graph from a publish list.
3548
3234
  */
3549
- export const reopenFiscalPeriod = <ThrowOnError extends boolean = false>(options: Options<ReopenFiscalPeriodData, ThrowOnError>) => (options.client ?? client).post<ReopenFiscalPeriodResponses, ReopenFiscalPeriodErrors, ThrowOnError>({
3235
+ export const opRemovePublishListMember = <ThrowOnError extends boolean = false>(options: Options<OpRemovePublishListMemberData, ThrowOnError>) => (options.client ?? client).post<OpRemovePublishListMemberResponses, OpRemovePublishListMemberErrors, ThrowOnError>({
3550
3236
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3551
- url: '/v1/ledger/{graph_id}/periods/{period}/reopen',
3237
+ url: '/extensions/roboledger/{graph_id}/operations/remove-publish-list-member',
3552
3238
  ...options,
3553
3239
  headers: {
3554
3240
  'Content-Type': 'application/json',
@@ -3557,43 +3243,36 @@ export const reopenFiscalPeriod = <ThrowOnError extends boolean = false>(options
3557
3243
  });
3558
3244
 
3559
3245
  /**
3560
- * List Draft Entries For Review
3561
- *
3562
- * List all draft entries in a fiscal period for review before close.
3246
+ * Build Fact Grid
3563
3247
  *
3564
- * Returns every draft entry whose `posting_date` falls within the period,
3565
- * fully expanded with line items, element names/codes, source schedule
3566
- * structure name, and per-entry balance check.
3248
+ * Build a multi-dimensional fact grid against the graph schema.
3567
3249
  *
3568
- * Use this to review exactly what `close-period` will commit. Typical flow:
3250
+ * Queries `Fact` nodes by element qnames or canonical concepts with
3251
+ * optional filters for periods, entities, filing form, fiscal context,
3252
+ * and period type. Returns a deduplicated pivot table plus optional
3253
+ * summary statistics.
3569
3254
  *
3570
- * 1. Draft entries via `create-closing-entry` (one per schedule)
3571
- * 2. Call this endpoint to review the full set
3572
- * 3. Call `POST /periods/{period}/close` to atomically post + close
3573
- *
3574
- * This is a pure read — no side effects. It can be called repeatedly.
3255
+ * This is a graph-database read the query runs against LadybugDB,
3256
+ * not the extensions OLTP database. The same operation works for
3257
+ * roboledger tenant graphs (post-materialization) and the SEC shared
3258
+ * repository (which uses the same XBRL hypercube schema).
3575
3259
  */
3576
- export const listPeriodDrafts = <ThrowOnError extends boolean = false>(options: Options<ListPeriodDraftsData, ThrowOnError>) => (options.client ?? client).get<ListPeriodDraftsResponses, ListPeriodDraftsErrors, ThrowOnError>({
3260
+ export const opBuildFactGrid = <ThrowOnError extends boolean = false>(options: Options<OpBuildFactGridData, ThrowOnError>) => (options.client ?? client).post<OpBuildFactGridResponses, OpBuildFactGridErrors, ThrowOnError>({
3577
3261
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3578
- url: '/v1/ledger/{graph_id}/periods/{period}/drafts',
3579
- ...options
3580
- });
3581
-
3582
- /**
3583
- * List Portfolios
3584
- */
3585
- export const listPortfolios = <ThrowOnError extends boolean = false>(options: Options<ListPortfoliosData, ThrowOnError>) => (options.client ?? client).get<ListPortfoliosResponses, ListPortfoliosErrors, ThrowOnError>({
3586
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3587
- url: '/v1/investor/{graph_id}/portfolios',
3588
- ...options
3262
+ url: '/extensions/roboledger/{graph_id}/operations/build-fact-grid',
3263
+ ...options,
3264
+ headers: {
3265
+ 'Content-Type': 'application/json',
3266
+ ...options.headers
3267
+ }
3589
3268
  });
3590
3269
 
3591
3270
  /**
3592
3271
  * Create Portfolio
3593
3272
  */
3594
- export const createPortfolio = <ThrowOnError extends boolean = false>(options: Options<CreatePortfolioData, ThrowOnError>) => (options.client ?? client).post<CreatePortfolioResponses, CreatePortfolioErrors, ThrowOnError>({
3273
+ export const opCreatePortfolio = <ThrowOnError extends boolean = false>(options: Options<OpCreatePortfolioData, ThrowOnError>) => (options.client ?? client).post<OpCreatePortfolioResponses, OpCreatePortfolioErrors, ThrowOnError>({
3595
3274
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3596
- url: '/v1/investor/{graph_id}/portfolios',
3275
+ url: '/extensions/roboinvestor/{graph_id}/operations/create-portfolio',
3597
3276
  ...options,
3598
3277
  headers: {
3599
3278
  'Content-Type': 'application/json',
@@ -3601,30 +3280,12 @@ export const createPortfolio = <ThrowOnError extends boolean = false>(options: O
3601
3280
  }
3602
3281
  });
3603
3282
 
3604
- /**
3605
- * Delete Portfolio
3606
- */
3607
- export const deletePortfolio = <ThrowOnError extends boolean = false>(options: Options<DeletePortfolioData, ThrowOnError>) => (options.client ?? client).delete<DeletePortfolioResponses, DeletePortfolioErrors, ThrowOnError>({
3608
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3609
- url: '/v1/investor/{graph_id}/portfolios/{portfolio_id}',
3610
- ...options
3611
- });
3612
-
3613
- /**
3614
- * Get Portfolio
3615
- */
3616
- export const getPortfolio = <ThrowOnError extends boolean = false>(options: Options<GetPortfolioData, ThrowOnError>) => (options.client ?? client).get<GetPortfolioResponses, GetPortfolioErrors, ThrowOnError>({
3617
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3618
- url: '/v1/investor/{graph_id}/portfolios/{portfolio_id}',
3619
- ...options
3620
- });
3621
-
3622
3283
  /**
3623
3284
  * Update Portfolio
3624
3285
  */
3625
- export const updatePortfolio = <ThrowOnError extends boolean = false>(options: Options<UpdatePortfolioData, ThrowOnError>) => (options.client ?? client).patch<UpdatePortfolioResponses, UpdatePortfolioErrors, ThrowOnError>({
3286
+ export const opUpdatePortfolio = <ThrowOnError extends boolean = false>(options: Options<OpUpdatePortfolioData, ThrowOnError>) => (options.client ?? client).post<OpUpdatePortfolioResponses, OpUpdatePortfolioErrors, ThrowOnError>({
3626
3287
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3627
- url: '/v1/investor/{graph_id}/portfolios/{portfolio_id}',
3288
+ url: '/extensions/roboinvestor/{graph_id}/operations/update-portfolio',
3628
3289
  ...options,
3629
3290
  headers: {
3630
3291
  'Content-Type': 'application/json',
@@ -3633,20 +3294,24 @@ export const updatePortfolio = <ThrowOnError extends boolean = false>(options: O
3633
3294
  });
3634
3295
 
3635
3296
  /**
3636
- * List Securities
3297
+ * Delete Portfolio
3637
3298
  */
3638
- export const listSecurities = <ThrowOnError extends boolean = false>(options: Options<ListSecuritiesData, ThrowOnError>) => (options.client ?? client).get<ListSecuritiesResponses, ListSecuritiesErrors, ThrowOnError>({
3299
+ export const opDeletePortfolio = <ThrowOnError extends boolean = false>(options: Options<OpDeletePortfolioData, ThrowOnError>) => (options.client ?? client).post<OpDeletePortfolioResponses, OpDeletePortfolioErrors, ThrowOnError>({
3639
3300
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3640
- url: '/v1/investor/{graph_id}/securities',
3641
- ...options
3301
+ url: '/extensions/roboinvestor/{graph_id}/operations/delete-portfolio',
3302
+ ...options,
3303
+ headers: {
3304
+ 'Content-Type': 'application/json',
3305
+ ...options.headers
3306
+ }
3642
3307
  });
3643
3308
 
3644
3309
  /**
3645
3310
  * Create Security
3646
3311
  */
3647
- export const createSecurity = <ThrowOnError extends boolean = false>(options: Options<CreateSecurityData, ThrowOnError>) => (options.client ?? client).post<CreateSecurityResponses, CreateSecurityErrors, ThrowOnError>({
3312
+ export const opCreateSecurity = <ThrowOnError extends boolean = false>(options: Options<OpCreateSecurityData, ThrowOnError>) => (options.client ?? client).post<OpCreateSecurityResponses, OpCreateSecurityErrors, ThrowOnError>({
3648
3313
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3649
- url: '/v1/investor/{graph_id}/securities',
3314
+ url: '/extensions/roboinvestor/{graph_id}/operations/create-security',
3650
3315
  ...options,
3651
3316
  headers: {
3652
3317
  'Content-Type': 'application/json',
@@ -3654,30 +3319,12 @@ export const createSecurity = <ThrowOnError extends boolean = false>(options: Op
3654
3319
  }
3655
3320
  });
3656
3321
 
3657
- /**
3658
- * Delete Security
3659
- */
3660
- export const deleteSecurity = <ThrowOnError extends boolean = false>(options: Options<DeleteSecurityData, ThrowOnError>) => (options.client ?? client).delete<DeleteSecurityResponses, DeleteSecurityErrors, ThrowOnError>({
3661
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3662
- url: '/v1/investor/{graph_id}/securities/{security_id}',
3663
- ...options
3664
- });
3665
-
3666
- /**
3667
- * Get Security
3668
- */
3669
- export const getSecurity = <ThrowOnError extends boolean = false>(options: Options<GetSecurityData, ThrowOnError>) => (options.client ?? client).get<GetSecurityResponses, GetSecurityErrors, ThrowOnError>({
3670
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3671
- url: '/v1/investor/{graph_id}/securities/{security_id}',
3672
- ...options
3673
- });
3674
-
3675
3322
  /**
3676
3323
  * Update Security
3677
3324
  */
3678
- export const updateSecurity = <ThrowOnError extends boolean = false>(options: Options<UpdateSecurityData, ThrowOnError>) => (options.client ?? client).patch<UpdateSecurityResponses, UpdateSecurityErrors, ThrowOnError>({
3325
+ export const opUpdateSecurity = <ThrowOnError extends boolean = false>(options: Options<OpUpdateSecurityData, ThrowOnError>) => (options.client ?? client).post<OpUpdateSecurityResponses, OpUpdateSecurityErrors, ThrowOnError>({
3679
3326
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3680
- url: '/v1/investor/{graph_id}/securities/{security_id}',
3327
+ url: '/extensions/roboinvestor/{graph_id}/operations/update-security',
3681
3328
  ...options,
3682
3329
  headers: {
3683
3330
  'Content-Type': 'application/json',
@@ -3686,20 +3333,24 @@ export const updateSecurity = <ThrowOnError extends boolean = false>(options: Op
3686
3333
  });
3687
3334
 
3688
3335
  /**
3689
- * List Positions
3336
+ * Delete Security
3690
3337
  */
3691
- export const listPositions = <ThrowOnError extends boolean = false>(options: Options<ListPositionsData, ThrowOnError>) => (options.client ?? client).get<ListPositionsResponses, ListPositionsErrors, ThrowOnError>({
3338
+ export const opDeleteSecurity = <ThrowOnError extends boolean = false>(options: Options<OpDeleteSecurityData, ThrowOnError>) => (options.client ?? client).post<OpDeleteSecurityResponses, OpDeleteSecurityErrors, ThrowOnError>({
3692
3339
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3693
- url: '/v1/investor/{graph_id}/positions',
3694
- ...options
3340
+ url: '/extensions/roboinvestor/{graph_id}/operations/delete-security',
3341
+ ...options,
3342
+ headers: {
3343
+ 'Content-Type': 'application/json',
3344
+ ...options.headers
3345
+ }
3695
3346
  });
3696
3347
 
3697
3348
  /**
3698
3349
  * Create Position
3699
3350
  */
3700
- export const createPosition = <ThrowOnError extends boolean = false>(options: Options<CreatePositionData, ThrowOnError>) => (options.client ?? client).post<CreatePositionResponses, CreatePositionErrors, ThrowOnError>({
3351
+ export const opCreatePosition = <ThrowOnError extends boolean = false>(options: Options<OpCreatePositionData, ThrowOnError>) => (options.client ?? client).post<OpCreatePositionResponses, OpCreatePositionErrors, ThrowOnError>({
3701
3352
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3702
- url: '/v1/investor/{graph_id}/positions',
3353
+ url: '/extensions/roboinvestor/{graph_id}/operations/create-position',
3703
3354
  ...options,
3704
3355
  headers: {
3705
3356
  'Content-Type': 'application/json',
@@ -3707,30 +3358,12 @@ export const createPosition = <ThrowOnError extends boolean = false>(options: Op
3707
3358
  }
3708
3359
  });
3709
3360
 
3710
- /**
3711
- * Delete Position
3712
- */
3713
- export const deletePosition = <ThrowOnError extends boolean = false>(options: Options<DeletePositionData, ThrowOnError>) => (options.client ?? client).delete<DeletePositionResponses, DeletePositionErrors, ThrowOnError>({
3714
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3715
- url: '/v1/investor/{graph_id}/positions/{position_id}',
3716
- ...options
3717
- });
3718
-
3719
- /**
3720
- * Get Position
3721
- */
3722
- export const getPosition = <ThrowOnError extends boolean = false>(options: Options<GetPositionData, ThrowOnError>) => (options.client ?? client).get<GetPositionResponses, GetPositionErrors, ThrowOnError>({
3723
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3724
- url: '/v1/investor/{graph_id}/positions/{position_id}',
3725
- ...options
3726
- });
3727
-
3728
3361
  /**
3729
3362
  * Update Position
3730
3363
  */
3731
- export const updatePosition = <ThrowOnError extends boolean = false>(options: Options<UpdatePositionData, ThrowOnError>) => (options.client ?? client).patch<UpdatePositionResponses, UpdatePositionErrors, ThrowOnError>({
3364
+ export const opUpdatePosition = <ThrowOnError extends boolean = false>(options: Options<OpUpdatePositionData, ThrowOnError>) => (options.client ?? client).post<OpUpdatePositionResponses, OpUpdatePositionErrors, ThrowOnError>({
3732
3365
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3733
- url: '/v1/investor/{graph_id}/positions/{position_id}',
3366
+ url: '/extensions/roboinvestor/{graph_id}/operations/update-position',
3734
3367
  ...options,
3735
3368
  headers: {
3736
3369
  'Content-Type': 'application/json',
@@ -3739,10 +3372,14 @@ export const updatePosition = <ThrowOnError extends boolean = false>(options: Op
3739
3372
  });
3740
3373
 
3741
3374
  /**
3742
- * List Holdings (grouped by entity)
3375
+ * Delete Position
3743
3376
  */
3744
- export const listHoldings = <ThrowOnError extends boolean = false>(options: Options<ListHoldingsData, ThrowOnError>) => (options.client ?? client).get<ListHoldingsResponses, ListHoldingsErrors, ThrowOnError>({
3377
+ export const opDeletePosition = <ThrowOnError extends boolean = false>(options: Options<OpDeletePositionData, ThrowOnError>) => (options.client ?? client).post<OpDeletePositionResponses, OpDeletePositionErrors, ThrowOnError>({
3745
3378
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
3746
- url: '/v1/investor/{graph_id}/portfolios/{portfolio_id}/holdings',
3747
- ...options
3379
+ url: '/extensions/roboinvestor/{graph_id}/operations/delete-position',
3380
+ ...options,
3381
+ headers: {
3382
+ 'Content-Type': 'application/json',
3383
+ ...options.headers
3384
+ }
3748
3385
  });