@robosystems/client 0.3.7 → 0.3.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/artifacts/LibraryClient.d.ts +117 -0
- package/artifacts/LibraryClient.js +132 -0
- package/artifacts/LibraryClient.ts +358 -0
- package/artifacts/graphql/generated/graphql.d.ts +431 -15
- package/artifacts/graphql/generated/graphql.js +828 -1
- package/artifacts/graphql/generated/graphql.ts +1266 -15
- package/artifacts/graphql/queries/library/arcs.d.ts +24 -0
- package/artifacts/graphql/queries/library/arcs.js +106 -0
- package/artifacts/graphql/queries/library/arcs.ts +107 -0
- package/artifacts/graphql/queries/library/elements.d.ts +24 -0
- package/artifacts/graphql/queries/library/elements.js +134 -0
- package/artifacts/graphql/queries/library/elements.ts +134 -0
- package/artifacts/graphql/queries/library/taxonomies.d.ts +15 -0
- package/artifacts/graphql/queries/library/taxonomies.js +61 -0
- package/artifacts/graphql/queries/library/taxonomies.ts +60 -0
- package/artifacts/index.d.ts +5 -1
- package/artifacts/index.js +17 -1
- package/artifacts/index.ts +26 -1
- package/index.ts +2 -2
- package/package.json +7 -1
- package/sdk/index.d.ts +2 -2
- package/sdk/index.js +4 -3
- package/sdk/index.ts +2 -2
- package/sdk/sdk.gen.d.ts +66 -56
- package/sdk/sdk.gen.js +131 -112
- package/sdk/sdk.gen.ts +129 -110
- package/sdk/types.gen.d.ts +622 -458
- package/sdk/types.gen.ts +633 -464
- package/sdk.gen.d.ts +66 -56
- package/sdk.gen.js +131 -112
- package/sdk.gen.ts +129 -110
- package/types.gen.d.ts +622 -458
- package/types.gen.ts +633 -464
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.
|
|
6
|
-
exports.opUpdatePublishList = exports.opCreatePublishList = exports.opShareReport = exports.opDeleteReport = exports.opRegenerateReport = exports.opCreateReport = exports.opAutoMapElements = exports.
|
|
7
|
-
exports.opDeletePosition = exports.opUpdatePosition = exports.opCreatePosition = exports.opDeleteSecurity = exports.opUpdateSecurity = exports.opCreateSecurity = exports.opDeletePortfolio = exports.opUpdatePortfolio = exports.opCreatePortfolio = exports.opBuildFactGrid = exports.
|
|
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.opDeletePublishList = exports.opUpdatePublishList = exports.opCreatePublishList = exports.opShareReport = exports.opDeleteReport = exports.opRegenerateReport = exports.opCreateReport = exports.opAutoMapElements = exports.opCreateMappingAssociation = exports.opDeleteSchedule = exports.opUpdateSchedule = exports.opCreateManualClosingEntry = exports.opCreateClosingEntry = exports.opTruncateSchedule = exports.opCreateSchedule = 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 = 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
|
*
|
|
@@ -1805,6 +1705,74 @@ const opReverseJournalEntry = (options) => (options.client ?? client_gen_1.clien
|
|
|
1805
1705
|
}
|
|
1806
1706
|
});
|
|
1807
1707
|
exports.opReverseJournalEntry = opReverseJournalEntry;
|
|
1708
|
+
/**
|
|
1709
|
+
* Create Schedule
|
|
1710
|
+
*
|
|
1711
|
+
* Create a schedule and pre-generate monthly amortization facts spanning the period range. `entry_template` defines the debit/credit elements used by `create-closing-entry` each period.
|
|
1712
|
+
*
|
|
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.
|
|
1714
|
+
*/
|
|
1715
|
+
const opCreateSchedule = (options) => (options.client ?? client_gen_1.client).post({
|
|
1716
|
+
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1717
|
+
url: '/extensions/roboledger/{graph_id}/operations/create-schedule',
|
|
1718
|
+
...options,
|
|
1719
|
+
headers: {
|
|
1720
|
+
'Content-Type': 'application/json',
|
|
1721
|
+
...options.headers
|
|
1722
|
+
}
|
|
1723
|
+
});
|
|
1724
|
+
exports.opCreateSchedule = opCreateSchedule;
|
|
1725
|
+
/**
|
|
1726
|
+
* Truncate Schedule (End Early)
|
|
1727
|
+
*
|
|
1728
|
+
* 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.
|
|
1729
|
+
*
|
|
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.
|
|
1731
|
+
*/
|
|
1732
|
+
const opTruncateSchedule = (options) => (options.client ?? client_gen_1.client).post({
|
|
1733
|
+
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
1734
|
+
url: '/extensions/roboledger/{graph_id}/operations/truncate-schedule',
|
|
1735
|
+
...options,
|
|
1736
|
+
headers: {
|
|
1737
|
+
'Content-Type': 'application/json',
|
|
1738
|
+
...options.headers
|
|
1739
|
+
}
|
|
1740
|
+
});
|
|
1741
|
+
exports.opTruncateSchedule = opTruncateSchedule;
|
|
1742
|
+
/**
|
|
1743
|
+
* Create Closing Entry
|
|
1744
|
+
*
|
|
1745
|
+
* 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`).
|
|
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 opCreateClosingEntry = (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-closing-entry',
|
|
1752
|
+
...options,
|
|
1753
|
+
headers: {
|
|
1754
|
+
'Content-Type': 'application/json',
|
|
1755
|
+
...options.headers
|
|
1756
|
+
}
|
|
1757
|
+
});
|
|
1758
|
+
exports.opCreateClosingEntry = opCreateClosingEntry;
|
|
1759
|
+
/**
|
|
1760
|
+
* Create Manual Closing Entry
|
|
1761
|
+
*
|
|
1762
|
+
* 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.
|
|
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 opCreateManualClosingEntry = (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-manual-closing-entry',
|
|
1769
|
+
...options,
|
|
1770
|
+
headers: {
|
|
1771
|
+
'Content-Type': 'application/json',
|
|
1772
|
+
...options.headers
|
|
1773
|
+
}
|
|
1774
|
+
});
|
|
1775
|
+
exports.opCreateManualClosingEntry = opCreateManualClosingEntry;
|
|
1808
1776
|
/**
|
|
1809
1777
|
* Update Schedule
|
|
1810
1778
|
*
|
|
@@ -1839,6 +1807,23 @@ const opDeleteSchedule = (options) => (options.client ?? client_gen_1.client).po
|
|
|
1839
1807
|
}
|
|
1840
1808
|
});
|
|
1841
1809
|
exports.opDeleteSchedule = opDeleteSchedule;
|
|
1810
|
+
/**
|
|
1811
|
+
* Create Mapping Association
|
|
1812
|
+
*
|
|
1813
|
+
* 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.
|
|
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 opCreateMappingAssociation = (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/create-mapping-association',
|
|
1820
|
+
...options,
|
|
1821
|
+
headers: {
|
|
1822
|
+
'Content-Type': 'application/json',
|
|
1823
|
+
...options.headers
|
|
1824
|
+
}
|
|
1825
|
+
});
|
|
1826
|
+
exports.opCreateMappingAssociation = opCreateMappingAssociation;
|
|
1842
1827
|
/**
|
|
1843
1828
|
* Auto-Map Elements via AI (async)
|
|
1844
1829
|
*
|
|
@@ -2009,6 +1994,23 @@ const opRemovePublishListMember = (options) => (options.client ?? client_gen_1.c
|
|
|
2009
1994
|
}
|
|
2010
1995
|
});
|
|
2011
1996
|
exports.opRemovePublishListMember = opRemovePublishListMember;
|
|
1997
|
+
/**
|
|
1998
|
+
* Live Financial Statement
|
|
1999
|
+
*
|
|
2000
|
+
* 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.
|
|
2001
|
+
*
|
|
2002
|
+
* **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.
|
|
2003
|
+
*/
|
|
2004
|
+
const opLiveFinancialStatement = (options) => (options.client ?? client_gen_1.client).post({
|
|
2005
|
+
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
2006
|
+
url: '/extensions/roboledger/{graph_id}/operations/live-financial-statement',
|
|
2007
|
+
...options,
|
|
2008
|
+
headers: {
|
|
2009
|
+
'Content-Type': 'application/json',
|
|
2010
|
+
...options.headers
|
|
2011
|
+
}
|
|
2012
|
+
});
|
|
2013
|
+
exports.opLiveFinancialStatement = opLiveFinancialStatement;
|
|
2012
2014
|
/**
|
|
2013
2015
|
* Build Fact Grid
|
|
2014
2016
|
*
|
|
@@ -2027,9 +2029,26 @@ const opBuildFactGrid = (options) => (options.client ?? client_gen_1.client).pos
|
|
|
2027
2029
|
});
|
|
2028
2030
|
exports.opBuildFactGrid = opBuildFactGrid;
|
|
2029
2031
|
/**
|
|
2030
|
-
*
|
|
2032
|
+
* Financial Statement Analysis
|
|
2033
|
+
*
|
|
2034
|
+
* 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.
|
|
2031
2035
|
*
|
|
2036
|
+
* **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.
|
|
2037
|
+
*/
|
|
2038
|
+
const opFinancialStatementAnalysis = (options) => (options.client ?? client_gen_1.client).post({
|
|
2039
|
+
security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
|
|
2040
|
+
url: '/extensions/roboledger/{graph_id}/operations/financial-statement-analysis',
|
|
2041
|
+
...options,
|
|
2042
|
+
headers: {
|
|
2043
|
+
'Content-Type': 'application/json',
|
|
2044
|
+
...options.headers
|
|
2045
|
+
}
|
|
2046
|
+
});
|
|
2047
|
+
exports.opFinancialStatementAnalysis = opFinancialStatementAnalysis;
|
|
2048
|
+
/**
|
|
2049
|
+
* Create Portfolio
|
|
2032
2050
|
*
|
|
2051
|
+
* 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
2052
|
*
|
|
2034
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.
|
|
2035
2054
|
*/
|
|
@@ -2046,7 +2065,7 @@ exports.opCreatePortfolio = opCreatePortfolio;
|
|
|
2046
2065
|
/**
|
|
2047
2066
|
* Update Portfolio
|
|
2048
2067
|
*
|
|
2049
|
-
*
|
|
2068
|
+
* Update mutable fields on a portfolio (name, description, strategy, inception_date, base_currency). Unset fields are ignored — partial updates are explicit.
|
|
2050
2069
|
*
|
|
2051
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.
|
|
2052
2071
|
*/
|
|
@@ -2063,7 +2082,7 @@ exports.opUpdatePortfolio = opUpdatePortfolio;
|
|
|
2063
2082
|
/**
|
|
2064
2083
|
* Delete Portfolio
|
|
2065
2084
|
*
|
|
2066
|
-
* Returns 409 if the portfolio has active positions — dispose them first.
|
|
2085
|
+
* Hard-delete a portfolio. Returns 409 if the portfolio has active positions — dispose (soft-delete) them first.
|
|
2067
2086
|
*
|
|
2068
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.
|
|
2069
2088
|
*/
|
|
@@ -2080,7 +2099,7 @@ exports.opDeletePortfolio = opDeletePortfolio;
|
|
|
2080
2099
|
/**
|
|
2081
2100
|
* Create Security
|
|
2082
2101
|
*
|
|
2083
|
-
*
|
|
2102
|
+
* 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
2103
|
*
|
|
2085
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.
|
|
2086
2105
|
*/
|
|
@@ -2097,7 +2116,7 @@ exports.opCreateSecurity = opCreateSecurity;
|
|
|
2097
2116
|
/**
|
|
2098
2117
|
* Update Security
|
|
2099
2118
|
*
|
|
2100
|
-
*
|
|
2119
|
+
* Update mutable fields on a security (name, type, subtype, terms, share counts, entity linkage). Unset fields are ignored.
|
|
2101
2120
|
*
|
|
2102
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.
|
|
2103
2122
|
*/
|
|
@@ -2114,7 +2133,7 @@ exports.opUpdateSecurity = opUpdateSecurity;
|
|
|
2114
2133
|
/**
|
|
2115
2134
|
* Delete Security
|
|
2116
2135
|
*
|
|
2117
|
-
* Soft-
|
|
2136
|
+
* Soft-delete the security (`is_active=false`). Historical positions referencing it remain valid.
|
|
2118
2137
|
*
|
|
2119
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.
|
|
2120
2139
|
*/
|
|
@@ -2131,7 +2150,7 @@ exports.opDeleteSecurity = opDeleteSecurity;
|
|
|
2131
2150
|
/**
|
|
2132
2151
|
* Create Position
|
|
2133
2152
|
*
|
|
2134
|
-
*
|
|
2153
|
+
* 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
2154
|
*
|
|
2136
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.
|
|
2137
2156
|
*/
|
|
@@ -2148,7 +2167,7 @@ exports.opCreatePosition = opCreatePosition;
|
|
|
2148
2167
|
/**
|
|
2149
2168
|
* Update Position
|
|
2150
2169
|
*
|
|
2151
|
-
*
|
|
2170
|
+
* Update mutable fields on a position (quantity, cost basis, valuation, notes, status). Use `delete-position` for soft disposal instead of setting `status` manually.
|
|
2152
2171
|
*
|
|
2153
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.
|
|
2154
2173
|
*/
|
|
@@ -2165,7 +2184,7 @@ exports.opUpdatePosition = opUpdatePosition;
|
|
|
2165
2184
|
/**
|
|
2166
2185
|
* Delete Position
|
|
2167
2186
|
*
|
|
2168
|
-
* Soft-
|
|
2187
|
+
* Soft-delete the position (`status='disposed'`). Historical holding records referencing it remain valid.
|
|
2169
2188
|
*
|
|
2170
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.
|
|
2171
2190
|
*/
|