@robosystems/client 0.3.7 → 0.3.9

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 (45) hide show
  1. package/artifacts/LedgerClient.d.ts +27 -14
  2. package/artifacts/LedgerClient.js +59 -39
  3. package/artifacts/LedgerClient.ts +89 -62
  4. package/artifacts/LibraryClient.d.ts +117 -0
  5. package/artifacts/LibraryClient.js +132 -0
  6. package/artifacts/LibraryClient.ts +358 -0
  7. package/artifacts/graphql/generated/graphql.d.ts +686 -79
  8. package/artifacts/graphql/generated/graphql.js +1121 -135
  9. package/artifacts/graphql/generated/graphql.ts +1887 -281
  10. package/artifacts/graphql/queries/ledger/informationBlock.d.ts +15 -0
  11. package/artifacts/graphql/queries/ledger/informationBlock.js +125 -0
  12. package/artifacts/graphql/queries/ledger/informationBlock.ts +124 -0
  13. package/artifacts/graphql/queries/library/arcs.d.ts +24 -0
  14. package/artifacts/graphql/queries/library/arcs.js +106 -0
  15. package/artifacts/graphql/queries/library/arcs.ts +107 -0
  16. package/artifacts/graphql/queries/library/elements.d.ts +24 -0
  17. package/artifacts/graphql/queries/library/elements.js +134 -0
  18. package/artifacts/graphql/queries/library/elements.ts +134 -0
  19. package/artifacts/graphql/queries/library/taxonomies.d.ts +15 -0
  20. package/artifacts/graphql/queries/library/taxonomies.js +61 -0
  21. package/artifacts/graphql/queries/library/taxonomies.ts +60 -0
  22. package/artifacts/index.d.ts +5 -1
  23. package/artifacts/index.js +17 -1
  24. package/artifacts/index.ts +26 -1
  25. package/index.ts +2 -2
  26. package/package.json +7 -1
  27. package/sdk/index.d.ts +2 -2
  28. package/sdk/index.js +9 -7
  29. package/sdk/index.ts +2 -2
  30. package/sdk/sdk.gen.d.ts +80 -62
  31. package/sdk/sdk.gen.js +158 -122
  32. package/sdk/sdk.gen.ts +154 -118
  33. package/sdk/types.gen.d.ts +801 -623
  34. package/sdk/types.gen.ts +825 -638
  35. package/sdk.gen.d.ts +80 -62
  36. package/sdk.gen.js +158 -122
  37. package/sdk.gen.ts +154 -118
  38. package/types.gen.d.ts +801 -623
  39. package/types.gen.ts +825 -638
  40. package/artifacts/graphql/queries/ledger/scheduleFacts.d.ts +0 -7
  41. package/artifacts/graphql/queries/ledger/scheduleFacts.js +0 -24
  42. package/artifacts/graphql/queries/ledger/scheduleFacts.ts +0 -22
  43. package/artifacts/graphql/queries/ledger/schedules.d.ts +0 -6
  44. package/artifacts/graphql/queries/ledger/schedules.js +0 -24
  45. package/artifacts/graphql/queries/ledger/schedules.ts +0 -22
package/sdk/sdk.gen.js CHANGED
@@ -2,9 +2,9 @@
2
2
  // This file is auto-generated by @hey-api/openapi-ts
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.callMcpTool = exports.listMcpTools = exports.recommendAgent = exports.batchProcessQueries = exports.executeSpecificAgent = exports.getAgentMetadata = exports.autoSelectAgent = exports.listAgents = exports.syncConnection = exports.getConnection = exports.deleteConnection = exports.oauthCallback = exports.initOAuth = exports.getConnectionOptions = exports.createConnection = exports.listConnections = exports.getOrgUsage = exports.getOrgLimits = exports.updateOrgMemberRole = exports.removeOrgMember = exports.inviteOrgMember = exports.listOrgMembers = exports.listOrgGraphs = exports.updateOrg = exports.getOrg = exports.listUserOrgs = exports.updateUserApiKey = exports.revokeUserApiKey = exports.createUserApiKey = exports.listUserApiKeys = exports.updateUserPassword = exports.updateUser = exports.getCurrentUser = exports.getServiceStatus = exports.getCaptchaConfig = exports.completeSsoAuth = exports.ssoTokenExchange = exports.generateSsoToken = exports.resetPassword = exports.validateResetToken = exports.forgotPassword = exports.checkPasswordStrength = exports.getPasswordPolicy = exports.verifyEmail = exports.resendVerificationEmail = exports.refreshAuthSession = exports.getCurrentAuthUser = exports.logoutUser = exports.loginUser = exports.registerUser = void 0;
5
- exports.getOperationStatus = exports.streamOperationEvents = exports.getServiceOfferings = exports.selectGraph = exports.getGraphCapacity = exports.getAvailableGraphTiers = exports.getAvailableExtensions = exports.createGraph = exports.getGraphs = exports.updateFile = exports.getFile = exports.deleteFile = exports.createFileUpload = exports.listFiles = exports.opMaterialize = exports.opChangeTier = exports.opRestoreBackup = exports.opCreateBackup = exports.opDeleteSubgraph = exports.opCreateSubgraph = exports.uploadDocumentsBulk = exports.updateDocument = exports.getDocument = exports.deleteDocument = exports.uploadDocument = exports.listDocuments = exports.getDocumentSection = exports.searchDocuments = exports.queryTables = exports.listTables = exports.createRepositorySubscription = exports.changeSubscriptionPlan = exports.getGraphSubscription = exports.getSubgraphQuota = exports.getSubgraphInfo = exports.listSubgraphs = exports.getGraphLimits = exports.getDatabaseInfo = exports.getDatabaseHealth = exports.listCreditTransactions = exports.getCreditSummary = exports.validateSchema = exports.exportGraphSchema = exports.getGraphSchema = exports.executeCypherQuery = exports.getGraphUsageAnalytics = exports.getGraphMetrics = exports.getBackupStats = exports.getBackupDownloadUrl = exports.listBackups = void 0;
6
- exports.opUpdatePublishList = exports.opCreatePublishList = exports.opShareReport = exports.opDeleteReport = exports.opRegenerateReport = exports.opCreateReport = exports.opAutoMapElements = exports.opDeleteSchedule = exports.opUpdateSchedule = exports.opReverseJournalEntry = exports.opDeleteJournalEntry = exports.opUpdateJournalEntry = exports.opCreateJournalEntry = exports.opCreateTransaction = exports.opDeleteAssociation = exports.opUpdateAssociation = exports.opCreateAssociations = exports.opDeleteElement = exports.opUpdateElement = exports.opCreateElement = exports.opDeleteStructure = exports.opUpdateStructure = exports.opLinkEntityTaxonomy = exports.opDeleteTaxonomy = exports.opUpdateTaxonomy = exports.opDeleteMappingAssociation = exports.opCreateMappingAssociation = exports.opCreateStructure = exports.opCreateTaxonomy = exports.opCreateManualClosingEntry = exports.opCreateClosingEntry = exports.opTruncateSchedule = exports.opCreateSchedule = exports.opReopenPeriod = exports.opClosePeriod = exports.opSetCloseTarget = exports.opInitializeLedger = exports.opUpdateEntity = exports.handleHttpPostExtensionsGraphIdGraphqlPost = exports.handleHttpGetExtensionsGraphIdGraphqlGet = exports.getCheckoutStatus = exports.createCheckoutSession = exports.getOrgUpcomingInvoice = exports.listOrgInvoices = exports.cancelOrgSubscription = exports.getOrgSubscription = exports.listOrgSubscriptions = exports.createPortalSession = exports.getOrgBillingCustomer = exports.cancelOperation = void 0;
7
- exports.opDeletePosition = exports.opUpdatePosition = exports.opCreatePosition = exports.opDeleteSecurity = exports.opUpdateSecurity = exports.opCreateSecurity = exports.opDeletePortfolio = exports.opUpdatePortfolio = exports.opCreatePortfolio = exports.opBuildFactGrid = exports.opRemovePublishListMember = exports.opAddPublishListMembers = exports.opDeletePublishList = void 0;
5
+ exports.cancelOperation = exports.getOperationStatus = exports.streamOperationEvents = exports.getServiceOfferings = exports.selectGraph = exports.getGraphCapacity = exports.getAvailableGraphTiers = exports.getAvailableExtensions = exports.createGraph = exports.getGraphs = exports.updateFile = exports.getFile = exports.deleteFile = exports.createFileUpload = exports.listFiles = exports.opMaterialize = exports.opChangeTier = exports.opRestoreBackup = exports.opCreateBackup = exports.opDeleteSubgraph = exports.opCreateSubgraph = exports.updateDocument = exports.getDocument = exports.deleteDocument = exports.uploadDocument = exports.listDocuments = exports.getDocumentSection = exports.searchDocuments = exports.queryTables = exports.listTables = exports.createRepositorySubscription = exports.changeSubscriptionPlan = exports.getGraphSubscription = exports.getSubgraphQuota = exports.getSubgraphInfo = exports.listSubgraphs = exports.getGraphLimits = exports.getDatabaseInfo = exports.getDatabaseHealth = exports.listCreditTransactions = exports.getCreditSummary = exports.validateSchema = exports.exportGraphSchema = exports.getGraphSchema = exports.executeCypherQuery = exports.getGraphUsageAnalytics = exports.getGraphMetrics = exports.getBackupStats = exports.getBackupDownloadUrl = exports.listBackups = void 0;
6
+ exports.opUpdatePublishList = exports.opCreatePublishList = exports.opShareReport = exports.opDeleteReport = exports.opRegenerateReport = exports.opCreateReport = exports.opAutoMapElements = exports.opCreateMappingAssociation = exports.opEvaluateRules = exports.opDeleteInformationBlock = exports.opUpdateInformationBlock = exports.opCreateInformationBlock = exports.opCreateManualClosingEntry = exports.opCreateClosingEntry = exports.opTruncateSchedule = exports.opReverseJournalEntry = exports.opDeleteJournalEntry = exports.opUpdateJournalEntry = exports.opCreateJournalEntry = exports.opCreateTransaction = exports.opDeleteAssociation = exports.opUpdateAssociation = exports.opCreateAssociations = exports.opDeleteElement = exports.opUpdateElement = exports.opCreateElement = exports.opDeleteStructure = exports.opUpdateStructure = exports.opLinkEntityTaxonomy = exports.opDeleteTaxonomy = exports.opUpdateTaxonomy = exports.opDeleteMappingAssociation = exports.opCreateStructure = exports.opCreateTaxonomy = exports.opReopenPeriod = exports.opClosePeriod = exports.opSetCloseTarget = exports.opInitializeLedger = exports.opUpdateEntity = exports.handleHttpPostExtensionsGraphIdGraphqlPost = exports.handleHttpGetExtensionsGraphIdGraphqlGet = exports.getCheckoutStatus = exports.createCheckoutSession = exports.getOrgUpcomingInvoice = exports.listOrgInvoices = exports.cancelOrgSubscription = exports.getOrgSubscription = exports.listOrgSubscriptions = exports.createPortalSession = exports.getOrgBillingCustomer = void 0;
7
+ exports.opDeletePosition = exports.opUpdatePosition = exports.opCreatePosition = exports.opDeleteSecurity = exports.opUpdateSecurity = exports.opCreateSecurity = exports.opDeletePortfolio = exports.opUpdatePortfolio = exports.opCreatePortfolio = exports.opFinancialStatementAnalysis = exports.opBuildFactGrid = exports.opLiveFinancialStatement = exports.opRemovePublishListMember = exports.opAddPublishListMembers = exports.opDeletePublishList = void 0;
8
8
  const client_gen_1 = require("./client.gen");
9
9
  /**
10
10
  * Register New User
@@ -901,21 +901,6 @@ const updateDocument = (options) => (options.client ?? client_gen_1.client).put(
901
901
  }
902
902
  });
903
903
  exports.updateDocument = updateDocument;
904
- /**
905
- * Bulk Upload Documents
906
- *
907
- * Upload up to 50 documents at once. Partial success is supported — check the errors array in the response.
908
- */
909
- const uploadDocumentsBulk = (options) => (options.client ?? client_gen_1.client).post({
910
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
911
- url: '/v1/graphs/{graph_id}/documents/bulk',
912
- ...options,
913
- headers: {
914
- 'Content-Type': 'application/json',
915
- ...options.headers
916
- }
917
- });
918
- exports.uploadDocumentsBulk = uploadDocumentsBulk;
919
904
  /**
920
905
  * Create Subgraph
921
906
  *
@@ -1397,74 +1382,6 @@ const opReopenPeriod = (options) => (options.client ?? client_gen_1.client).post
1397
1382
  }
1398
1383
  });
1399
1384
  exports.opReopenPeriod = opReopenPeriod;
1400
- /**
1401
- * Create Schedule
1402
- *
1403
- * Creates a schedule and pre-generates monthly amortization facts spanning the period range.
1404
- *
1405
- * **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
1406
- */
1407
- const opCreateSchedule = (options) => (options.client ?? client_gen_1.client).post({
1408
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
1409
- url: '/extensions/roboledger/{graph_id}/operations/create-schedule',
1410
- ...options,
1411
- headers: {
1412
- 'Content-Type': 'application/json',
1413
- ...options.headers
1414
- }
1415
- });
1416
- exports.opCreateSchedule = opCreateSchedule;
1417
- /**
1418
- * Truncate Schedule (End Early)
1419
- *
1420
- * Ends a schedule early by deleting forward facts and any stale draft closing entries past the cutoff.
1421
- *
1422
- * **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
1423
- */
1424
- const opTruncateSchedule = (options) => (options.client ?? client_gen_1.client).post({
1425
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
1426
- url: '/extensions/roboledger/{graph_id}/operations/truncate-schedule',
1427
- ...options,
1428
- headers: {
1429
- 'Content-Type': 'application/json',
1430
- ...options.headers
1431
- }
1432
- });
1433
- exports.opTruncateSchedule = opTruncateSchedule;
1434
- /**
1435
- * Create Closing Entry
1436
- *
1437
- * Creates a draft closing entry pre-populated from a schedule's facts for the given period.
1438
- *
1439
- * **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
1440
- */
1441
- const opCreateClosingEntry = (options) => (options.client ?? client_gen_1.client).post({
1442
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
1443
- url: '/extensions/roboledger/{graph_id}/operations/create-closing-entry',
1444
- ...options,
1445
- headers: {
1446
- 'Content-Type': 'application/json',
1447
- ...options.headers
1448
- }
1449
- });
1450
- exports.opCreateClosingEntry = opCreateClosingEntry;
1451
- /**
1452
- * Create Manual Closing Entry
1453
- *
1454
- * Creates a draft closing entry with manually specified amounts — not tied to a schedule.
1455
- *
1456
- * **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
1457
- */
1458
- const opCreateManualClosingEntry = (options) => (options.client ?? client_gen_1.client).post({
1459
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
1460
- url: '/extensions/roboledger/{graph_id}/operations/create-manual-closing-entry',
1461
- ...options,
1462
- headers: {
1463
- 'Content-Type': 'application/json',
1464
- ...options.headers
1465
- }
1466
- });
1467
- exports.opCreateManualClosingEntry = opCreateManualClosingEntry;
1468
1385
  /**
1469
1386
  * Create Taxonomy
1470
1387
  *
@@ -1499,23 +1416,6 @@ const opCreateStructure = (options) => (options.client ?? client_gen_1.client).p
1499
1416
  }
1500
1417
  });
1501
1418
  exports.opCreateStructure = opCreateStructure;
1502
- /**
1503
- * Create Mapping Association
1504
- *
1505
- * Links a chart-of-accounts element to a reporting concept (CoA element → US GAAP concept).
1506
- *
1507
- * **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
1508
- */
1509
- const opCreateMappingAssociation = (options) => (options.client ?? client_gen_1.client).post({
1510
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
1511
- url: '/extensions/roboledger/{graph_id}/operations/create-mapping-association',
1512
- ...options,
1513
- headers: {
1514
- 'Content-Type': 'application/json',
1515
- ...options.headers
1516
- }
1517
- });
1518
- exports.opCreateMappingAssociation = opCreateMappingAssociation;
1519
1419
  /**
1520
1420
  * Delete Mapping Association
1521
1421
  *
@@ -1806,39 +1706,141 @@ const opReverseJournalEntry = (options) => (options.client ?? client_gen_1.clien
1806
1706
  });
1807
1707
  exports.opReverseJournalEntry = opReverseJournalEntry;
1808
1708
  /**
1809
- * Update Schedule
1709
+ * Truncate Schedule (End Early)
1810
1710
  *
1811
- * Update mutable fields on a schedule: name, entry_template, schedule_metadata. Period range and monthly_amount are NOT editable use truncate-schedule + create-schedule instead.
1711
+ * End a schedule early by deleting forward facts and any stale draft closing entries past the cutoff. Historical facts and posted entries are preserved. Use this when a business event (asset disposal, contract cancellation) shortens the schedule's lifespan.
1812
1712
  *
1813
1713
  * **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
1814
1714
  */
1815
- const opUpdateSchedule = (options) => (options.client ?? client_gen_1.client).post({
1715
+ const opTruncateSchedule = (options) => (options.client ?? client_gen_1.client).post({
1816
1716
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
1817
- url: '/extensions/roboledger/{graph_id}/operations/update-schedule',
1717
+ url: '/extensions/roboledger/{graph_id}/operations/truncate-schedule',
1818
1718
  ...options,
1819
1719
  headers: {
1820
1720
  'Content-Type': 'application/json',
1821
1721
  ...options.headers
1822
1722
  }
1823
1723
  });
1824
- exports.opUpdateSchedule = opUpdateSchedule;
1724
+ exports.opTruncateSchedule = opTruncateSchedule;
1825
1725
  /**
1826
- * Delete Schedule
1726
+ * Create Closing Entry
1827
1727
  *
1828
- * Permanently delete a schedule, cascading through facts and associations. For ending a schedule early without removing history, use truncate-schedule instead.
1728
+ * Create a draft closing entry pre-populated from a schedule's facts for the given period. Idempotent safe to call repeatedly; the `outcome` field describes what happened (`created`, `unchanged`, `regenerated`, `removed`, `skipped`).
1829
1729
  *
1830
1730
  * **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
1831
1731
  */
1832
- const opDeleteSchedule = (options) => (options.client ?? client_gen_1.client).post({
1732
+ const opCreateClosingEntry = (options) => (options.client ?? client_gen_1.client).post({
1833
1733
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
1834
- url: '/extensions/roboledger/{graph_id}/operations/delete-schedule',
1734
+ url: '/extensions/roboledger/{graph_id}/operations/create-closing-entry',
1835
1735
  ...options,
1836
1736
  headers: {
1837
1737
  'Content-Type': 'application/json',
1838
1738
  ...options.headers
1839
1739
  }
1840
1740
  });
1841
- exports.opDeleteSchedule = opDeleteSchedule;
1741
+ exports.opCreateClosingEntry = opCreateClosingEntry;
1742
+ /**
1743
+ * Create Manual Closing Entry
1744
+ *
1745
+ * Create a draft closing entry with manually specified line items — not tied to a schedule. Use for one-off business events (asset disposal, correcting entry, impairment). Total debits must equal total credits.
1746
+ *
1747
+ * **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
1748
+ */
1749
+ const opCreateManualClosingEntry = (options) => (options.client ?? client_gen_1.client).post({
1750
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
1751
+ url: '/extensions/roboledger/{graph_id}/operations/create-manual-closing-entry',
1752
+ ...options,
1753
+ headers: {
1754
+ 'Content-Type': 'application/json',
1755
+ ...options.headers
1756
+ }
1757
+ });
1758
+ exports.opCreateManualClosingEntry = opCreateManualClosingEntry;
1759
+ /**
1760
+ * Create Information Block
1761
+ *
1762
+ * Generic Information Block construction entry. `block_type` selects the registered block type; `payload` is validated against that type's creation schema at dispatch. Schedule dispatches to the existing Schedule machinery; statement block types raise 501 (use create-report instead).
1763
+ *
1764
+ * **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
1765
+ */
1766
+ const opCreateInformationBlock = (options) => (options.client ?? client_gen_1.client).post({
1767
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
1768
+ url: '/extensions/roboledger/{graph_id}/operations/create-information-block',
1769
+ ...options,
1770
+ headers: {
1771
+ 'Content-Type': 'application/json',
1772
+ ...options.headers
1773
+ }
1774
+ });
1775
+ exports.opCreateInformationBlock = opCreateInformationBlock;
1776
+ /**
1777
+ * Update Information Block
1778
+ *
1779
+ * Generic Information Block update entry. Dispatches by `block_type` to the registered mutation handler. Block types whose Structures are library-seeded and immutable (statement family) surface 501.
1780
+ *
1781
+ * **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
1782
+ */
1783
+ const opUpdateInformationBlock = (options) => (options.client ?? client_gen_1.client).post({
1784
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
1785
+ url: '/extensions/roboledger/{graph_id}/operations/update-information-block',
1786
+ ...options,
1787
+ headers: {
1788
+ 'Content-Type': 'application/json',
1789
+ ...options.headers
1790
+ }
1791
+ });
1792
+ exports.opUpdateInformationBlock = opUpdateInformationBlock;
1793
+ /**
1794
+ * Delete Information Block
1795
+ *
1796
+ * Generic Information Block deletion entry. Returns a thin confirmation (deleted / structure_id / block_type / name). Block types whose Structures are library-seeded cannot be deleted per tenant and surface 501.
1797
+ *
1798
+ * **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
1799
+ */
1800
+ const opDeleteInformationBlock = (options) => (options.client ?? client_gen_1.client).post({
1801
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
1802
+ url: '/extensions/roboledger/{graph_id}/operations/delete-information-block',
1803
+ ...options,
1804
+ headers: {
1805
+ 'Content-Type': 'application/json',
1806
+ ...options.headers
1807
+ }
1808
+ });
1809
+ exports.opDeleteInformationBlock = opDeleteInformationBlock;
1810
+ /**
1811
+ * Evaluate Rules for an Information Block
1812
+ *
1813
+ * Runs every rule targeting the given structure (plus element- and association-scoped rules for the structure's atoms), binds $Variable references to in-scope facts via qname lookup, writes one VerificationResult row per rule, and returns the results plus a status-keyed summary. Phase delta.3 — decoding mode, 5 patterns (EqualTo, RollUp, RollForward, Exists, CoExists).
1814
+ *
1815
+ * **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
1816
+ */
1817
+ const opEvaluateRules = (options) => (options.client ?? client_gen_1.client).post({
1818
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
1819
+ url: '/extensions/roboledger/{graph_id}/operations/evaluate-rules',
1820
+ ...options,
1821
+ headers: {
1822
+ 'Content-Type': 'application/json',
1823
+ ...options.headers
1824
+ }
1825
+ });
1826
+ exports.opEvaluateRules = opEvaluateRules;
1827
+ /**
1828
+ * Create Mapping Association
1829
+ *
1830
+ * Link a chart-of-accounts element to a US GAAP reporting concept. For bulk associations (presentation/calculation linkbases, 50+ arcs at once) use `create-associations` instead.
1831
+ *
1832
+ * **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
1833
+ */
1834
+ const opCreateMappingAssociation = (options) => (options.client ?? client_gen_1.client).post({
1835
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
1836
+ url: '/extensions/roboledger/{graph_id}/operations/create-mapping-association',
1837
+ ...options,
1838
+ headers: {
1839
+ 'Content-Type': 'application/json',
1840
+ ...options.headers
1841
+ }
1842
+ });
1843
+ exports.opCreateMappingAssociation = opCreateMappingAssociation;
1842
1844
  /**
1843
1845
  * Auto-Map Elements via AI (async)
1844
1846
  *
@@ -2009,6 +2011,23 @@ const opRemovePublishListMember = (options) => (options.client ?? client_gen_1.c
2009
2011
  }
2010
2012
  });
2011
2013
  exports.opRemovePublishListMember = opRemovePublishListMember;
2014
+ /**
2015
+ * Live Financial Statement
2016
+ *
2017
+ * Generate an ad-hoc financial statement directly from the tenant's OLTP ledger data using the active CoA→GAAP mapping. This is the authoritative source for RoboLedger entity graphs — no graph materialization required. Rejected on shared-repository graphs; those should use `financial-statement-analysis` instead.
2018
+ *
2019
+ * **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
2020
+ */
2021
+ const opLiveFinancialStatement = (options) => (options.client ?? client_gen_1.client).post({
2022
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
2023
+ url: '/extensions/roboledger/{graph_id}/operations/live-financial-statement',
2024
+ ...options,
2025
+ headers: {
2026
+ 'Content-Type': 'application/json',
2027
+ ...options.headers
2028
+ }
2029
+ });
2030
+ exports.opLiveFinancialStatement = opLiveFinancialStatement;
2012
2031
  /**
2013
2032
  * Build Fact Grid
2014
2033
  *
@@ -2027,9 +2046,26 @@ const opBuildFactGrid = (options) => (options.client ?? client_gen_1.client).pos
2027
2046
  });
2028
2047
  exports.opBuildFactGrid = opBuildFactGrid;
2029
2048
  /**
2030
- * Create Portfolio
2049
+ * Financial Statement Analysis
2031
2050
  *
2051
+ * Query a rendered financial statement from the graph-backed XBRL hypercube (Structure → FactSet → Fact). Works on the SEC shared repository today and on any RoboLedger tenant graph whose ledger has been materialized to LadybugDB. For shared-repo graphs, provide `ticker` to auto-resolve the latest filing; for tenant graphs, provide `report_id` explicitly.
2032
2052
  *
2053
+ * **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
2054
+ */
2055
+ const opFinancialStatementAnalysis = (options) => (options.client ?? client_gen_1.client).post({
2056
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
2057
+ url: '/extensions/roboledger/{graph_id}/operations/financial-statement-analysis',
2058
+ ...options,
2059
+ headers: {
2060
+ 'Content-Type': 'application/json',
2061
+ ...options.headers
2062
+ }
2063
+ });
2064
+ exports.opFinancialStatementAnalysis = opFinancialStatementAnalysis;
2065
+ /**
2066
+ * Create Portfolio
2067
+ *
2068
+ * Create an investment portfolio within this graph. Portfolios are logical groupings of securities (stocks, notes, warrants) owned by the entity; subsequent positions attach to the portfolio.
2033
2069
  *
2034
2070
  * **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
2035
2071
  */
@@ -2046,7 +2082,7 @@ exports.opCreatePortfolio = opCreatePortfolio;
2046
2082
  /**
2047
2083
  * Update Portfolio
2048
2084
  *
2049
- *
2085
+ * Update mutable fields on a portfolio (name, description, strategy, inception_date, base_currency). Unset fields are ignored — partial updates are explicit.
2050
2086
  *
2051
2087
  * **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
2052
2088
  */
@@ -2063,7 +2099,7 @@ exports.opUpdatePortfolio = opUpdatePortfolio;
2063
2099
  /**
2064
2100
  * Delete Portfolio
2065
2101
  *
2066
- * Returns 409 if the portfolio has active positions — dispose them first.
2102
+ * Hard-delete a portfolio. Returns 409 if the portfolio has active positions — dispose (soft-delete) them first.
2067
2103
  *
2068
2104
  * **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
2069
2105
  */
@@ -2080,7 +2116,7 @@ exports.opDeletePortfolio = opDeletePortfolio;
2080
2116
  /**
2081
2117
  * Create Security
2082
2118
  *
2083
- *
2119
+ * Register a security (common stock, preferred stock, warrant, convertible note, etc.) owned by this graph's entity. Optionally cross-links to an issuing entity in another graph via `source_graph_id` for mutual-handshake attribution.
2084
2120
  *
2085
2121
  * **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
2086
2122
  */
@@ -2097,7 +2133,7 @@ exports.opCreateSecurity = opCreateSecurity;
2097
2133
  /**
2098
2134
  * Update Security
2099
2135
  *
2100
- *
2136
+ * Update mutable fields on a security (name, type, subtype, terms, share counts, entity linkage). Unset fields are ignored.
2101
2137
  *
2102
2138
  * **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
2103
2139
  */
@@ -2114,7 +2150,7 @@ exports.opUpdateSecurity = opUpdateSecurity;
2114
2150
  /**
2115
2151
  * Delete Security
2116
2152
  *
2117
- * Soft-deletes the security (`is_active=false`). Historical positions referencing it remain valid.
2153
+ * Soft-delete the security (`is_active=false`). Historical positions referencing it remain valid.
2118
2154
  *
2119
2155
  * **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
2120
2156
  */
@@ -2131,7 +2167,7 @@ exports.opDeleteSecurity = opDeleteSecurity;
2131
2167
  /**
2132
2168
  * Create Position
2133
2169
  *
2134
- * Returns 409 if an active position for this security already exists in the portfolio.
2170
+ * Open a position in a security within a portfolio. One active position per (portfolio, security) pair creating a second active position returns 409. Dispose an existing position via `delete-position` before opening a new one.
2135
2171
  *
2136
2172
  * **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
2137
2173
  */
@@ -2148,7 +2184,7 @@ exports.opCreatePosition = opCreatePosition;
2148
2184
  /**
2149
2185
  * Update Position
2150
2186
  *
2151
- *
2187
+ * Update mutable fields on a position (quantity, cost basis, valuation, notes, status). Use `delete-position` for soft disposal instead of setting `status` manually.
2152
2188
  *
2153
2189
  * **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
2154
2190
  */
@@ -2165,7 +2201,7 @@ exports.opUpdatePosition = opUpdatePosition;
2165
2201
  /**
2166
2202
  * Delete Position
2167
2203
  *
2168
- * Soft-deletes the position (`is_active=false`). Historical holding records referencing it remain valid.
2204
+ * Soft-delete the position (`status='disposed'`). Historical holding records referencing it remain valid.
2169
2205
  *
2170
2206
  * **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
2171
2207
  */