@robosystems/client 0.3.19 → 0.3.20
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/InvestorClient.js +7 -2
- package/artifacts/InvestorClient.ts +10 -6
- package/artifacts/LedgerClient.d.ts +57 -48
- package/artifacts/LedgerClient.js +44 -25
- package/artifacts/LedgerClient.ts +122 -75
- package/artifacts/graphql/generated/graphql.d.ts +558 -0
- package/artifacts/graphql/generated/graphql.ts +558 -0
- package/index.ts +1 -1
- package/package.json +1 -1
- package/sdk/index.d.ts +1 -1
- package/sdk/index.ts +1 -1
- package/sdk/sdk.gen.d.ts +13 -13
- package/sdk/sdk.gen.js +13 -13
- package/sdk/sdk.gen.ts +13 -13
- package/sdk/types.gen.d.ts +5834 -1314
- package/sdk/types.gen.ts +5908 -1298
- package/sdk.gen.d.ts +13 -13
- package/sdk.gen.js +13 -13
- package/sdk.gen.ts +13 -13
- package/types.gen.d.ts +5834 -1314
- package/types.gen.ts +5908 -1298
package/sdk/sdk.gen.js
CHANGED
|
@@ -953,7 +953,7 @@ exports.opDeleteSubgraph = opDeleteSubgraph;
|
|
|
953
953
|
/**
|
|
954
954
|
* Delete Graph
|
|
955
955
|
*
|
|
956
|
-
* Permanently destroys a user graph and cancels its subscription. Two modes via the `at_period_end` body flag: omit it (or pass `false`) to tear down immediately (~10 min); pass `true` to keep the graph usable through the current billing period and tear it down at the period boundary via the existing suspend → deprovision pipeline. Requires `confirm` to equal the URL `graph_id`. Caller must be admin on the graph. Not allowed on shared repositories.
|
|
956
|
+
* Permanently destroys a user graph and cancels its subscription. Two modes via the `at_period_end` body flag: omit it (or pass `false`) to tear down immediately (~10 min); pass `true` to keep the graph usable through the current billing period and tear it down at the period boundary via the existing suspend → deprovision pipeline. Requires `confirm` to equal the URL `graph_id`. Caller must be both org owner (billing authority) and admin on the graph (operational authority). Not allowed on shared repositories.
|
|
957
957
|
*
|
|
958
958
|
* **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.
|
|
959
959
|
*/
|
|
@@ -1353,7 +1353,7 @@ exports.opInitializeLedger = opInitializeLedger;
|
|
|
1353
1353
|
/**
|
|
1354
1354
|
* Update Entity
|
|
1355
1355
|
*
|
|
1356
|
-
* Only provided (non-null) fields are updated.
|
|
1356
|
+
* Update the graph's primary entity. Only provided (non-null) fields are updated. The graph is implicit in the URL — the operation always targets the graph's primary entity.
|
|
1357
1357
|
*
|
|
1358
1358
|
* **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.
|
|
1359
1359
|
*/
|
|
@@ -1438,7 +1438,7 @@ exports.opLinkEntityTaxonomy = opLinkEntityTaxonomy;
|
|
|
1438
1438
|
/**
|
|
1439
1439
|
* Create Mapping Association
|
|
1440
1440
|
*
|
|
1441
|
-
* Link a chart-of-accounts element to a US GAAP reporting concept.
|
|
1441
|
+
* Link a chart-of-accounts element to a US GAAP reporting concept. One mapping edge per call — use `auto-map-elements` for bulk AI-assisted mapping. Duplicate (from, to, type) tuples return 409.
|
|
1442
1442
|
*
|
|
1443
1443
|
* **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.
|
|
1444
1444
|
*/
|
|
@@ -1455,7 +1455,7 @@ exports.opCreateMappingAssociation = opCreateMappingAssociation;
|
|
|
1455
1455
|
/**
|
|
1456
1456
|
* Delete Mapping Association
|
|
1457
1457
|
*
|
|
1458
|
-
*
|
|
1458
|
+
* Remove a single CoA → reporting-concept mapping edge. The mapping structure itself remains; only the association row is dropped.
|
|
1459
1459
|
*
|
|
1460
1460
|
* **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.
|
|
1461
1461
|
*/
|
|
@@ -1710,7 +1710,7 @@ exports.opDeleteJournalEntry = opDeleteJournalEntry;
|
|
|
1710
1710
|
/**
|
|
1711
1711
|
* Set Close Target
|
|
1712
1712
|
*
|
|
1713
|
-
*
|
|
1713
|
+
* Set the user-controlled goal period for closing (`close_target`). Format: YYYY-MM. Distinct from `closed_through` (what's actually locked) — setting a target doesn't close anything; call `close-period` for that. The catch-up sequence between `closed_through` and this target appears on the response's `fiscal_calendar.catch_up_sequence`.
|
|
1714
1714
|
*
|
|
1715
1715
|
* **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.
|
|
1716
1716
|
*/
|
|
@@ -1727,7 +1727,7 @@ exports.opSetCloseTarget = opSetCloseTarget;
|
|
|
1727
1727
|
/**
|
|
1728
1728
|
* Close Fiscal Period
|
|
1729
1729
|
*
|
|
1730
|
-
*
|
|
1730
|
+
* Lock a single fiscal period. Posts draft entries, runs the balance-sheet equation check, advances `closed_through` by one, and auto-advances `close_target` if this close caught up to it. Period must be exactly `closed_through + 1` — sequence violations return 422 with structured `blockers`. Common blockers: `sync_stale` (override with `allow_stale_sync=true` after manual verification), `period_incomplete` (draft entries unbalanced), `sequence_violation` (out-of-order).
|
|
1731
1731
|
*
|
|
1732
1732
|
* **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.
|
|
1733
1733
|
*/
|
|
@@ -1744,7 +1744,7 @@ exports.opClosePeriod = opClosePeriod;
|
|
|
1744
1744
|
/**
|
|
1745
1745
|
* Reopen Fiscal Period
|
|
1746
1746
|
*
|
|
1747
|
-
*
|
|
1747
|
+
* Decrement `closed_through` by one. Only the most recently closed period can be reopened (no reach-back). The required `reason` is captured in the audit log. Use sparingly — reopen invalidates downstream artifacts that trusted the closed state (reports, shared filings).
|
|
1748
1748
|
*
|
|
1749
1749
|
* **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.
|
|
1750
1750
|
*/
|
|
@@ -1778,7 +1778,7 @@ exports.opCreateReport = opCreateReport;
|
|
|
1778
1778
|
/**
|
|
1779
1779
|
* Regenerate Report
|
|
1780
1780
|
*
|
|
1781
|
-
*
|
|
1781
|
+
* Re-runs fact generation for an existing Report against the latest ledger state. Pass `period_start`/`period_end`/`periods` only if you want to change the reporting window.
|
|
1782
1782
|
*
|
|
1783
1783
|
* **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.
|
|
1784
1784
|
*/
|
|
@@ -1812,7 +1812,7 @@ exports.opDeleteReport = opDeleteReport;
|
|
|
1812
1812
|
/**
|
|
1813
1813
|
* Share Report
|
|
1814
1814
|
*
|
|
1815
|
-
*
|
|
1815
|
+
* Pushes a published report to every member of the target publish list. Each share is an independent copy: the report row + all its facts are cloned into the recipient's tenant schema with `source_graph_id` / `source_report_id` provenance fields populated. Per-target outcomes (success or error) surface in the response — share does not fail-fast across targets.
|
|
1816
1816
|
*
|
|
1817
1817
|
* **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.
|
|
1818
1818
|
*/
|
|
@@ -1863,7 +1863,7 @@ exports.opTransitionFilingStatus = opTransitionFilingStatus;
|
|
|
1863
1863
|
/**
|
|
1864
1864
|
* Create Publish List
|
|
1865
1865
|
*
|
|
1866
|
-
*
|
|
1866
|
+
* Create a publish list (a saved set of recipient graphs). Members are managed separately via add/remove-member operations.
|
|
1867
1867
|
*
|
|
1868
1868
|
* **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.
|
|
1869
1869
|
*/
|
|
@@ -1897,7 +1897,7 @@ exports.opUpdatePublishList = opUpdatePublishList;
|
|
|
1897
1897
|
/**
|
|
1898
1898
|
* Delete Publish List
|
|
1899
1899
|
*
|
|
1900
|
-
*
|
|
1900
|
+
* Delete a publish list and its membership rows. Reports previously shared via this list are not affected — each share is an independent copy in the recipient's graph.
|
|
1901
1901
|
*
|
|
1902
1902
|
* **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.
|
|
1903
1903
|
*/
|
|
@@ -1914,7 +1914,7 @@ exports.opDeletePublishList = opDeletePublishList;
|
|
|
1914
1914
|
/**
|
|
1915
1915
|
* Add Members to Publish List
|
|
1916
1916
|
*
|
|
1917
|
-
*
|
|
1917
|
+
* Add one or more recipient graphs to a publish list. Targets must exist and have the same extension enabled (e.g. roboledger). Self-graph rejected (422); already-member rejected (409).
|
|
1918
1918
|
*
|
|
1919
1919
|
* **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.
|
|
1920
1920
|
*/
|
|
@@ -1931,7 +1931,7 @@ exports.opAddPublishListMembers = opAddPublishListMembers;
|
|
|
1931
1931
|
/**
|
|
1932
1932
|
* Remove Member from Publish List
|
|
1933
1933
|
*
|
|
1934
|
-
*
|
|
1934
|
+
* Remove a single recipient from a publish list.
|
|
1935
1935
|
*
|
|
1936
1936
|
* **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.
|
|
1937
1937
|
*/
|
package/sdk/sdk.gen.ts
CHANGED
|
@@ -965,7 +965,7 @@ export const opDeleteSubgraph = <ThrowOnError extends boolean = false>(options:
|
|
|
965
965
|
/**
|
|
966
966
|
* Delete Graph
|
|
967
967
|
*
|
|
968
|
-
* Permanently destroys a user graph and cancels its subscription. Two modes via the `at_period_end` body flag: omit it (or pass `false`) to tear down immediately (~10 min); pass `true` to keep the graph usable through the current billing period and tear it down at the period boundary via the existing suspend → deprovision pipeline. Requires `confirm` to equal the URL `graph_id`. Caller must be admin on the graph. Not allowed on shared repositories.
|
|
968
|
+
* Permanently destroys a user graph and cancels its subscription. Two modes via the `at_period_end` body flag: omit it (or pass `false`) to tear down immediately (~10 min); pass `true` to keep the graph usable through the current billing period and tear it down at the period boundary via the existing suspend → deprovision pipeline. Requires `confirm` to equal the URL `graph_id`. Caller must be both org owner (billing authority) and admin on the graph (operational authority). Not allowed on shared repositories.
|
|
969
969
|
*
|
|
970
970
|
* **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.
|
|
971
971
|
*/
|
|
@@ -1365,7 +1365,7 @@ export const opInitializeLedger = <ThrowOnError extends boolean = false>(options
|
|
|
1365
1365
|
/**
|
|
1366
1366
|
* Update Entity
|
|
1367
1367
|
*
|
|
1368
|
-
* Only provided (non-null) fields are updated.
|
|
1368
|
+
* Update the graph's primary entity. Only provided (non-null) fields are updated. The graph is implicit in the URL — the operation always targets the graph's primary entity.
|
|
1369
1369
|
*
|
|
1370
1370
|
* **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.
|
|
1371
1371
|
*/
|
|
@@ -1450,7 +1450,7 @@ export const opLinkEntityTaxonomy = <ThrowOnError extends boolean = false>(optio
|
|
|
1450
1450
|
/**
|
|
1451
1451
|
* Create Mapping Association
|
|
1452
1452
|
*
|
|
1453
|
-
* Link a chart-of-accounts element to a US GAAP reporting concept.
|
|
1453
|
+
* Link a chart-of-accounts element to a US GAAP reporting concept. One mapping edge per call — use `auto-map-elements` for bulk AI-assisted mapping. Duplicate (from, to, type) tuples return 409.
|
|
1454
1454
|
*
|
|
1455
1455
|
* **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.
|
|
1456
1456
|
*/
|
|
@@ -1467,7 +1467,7 @@ export const opCreateMappingAssociation = <ThrowOnError extends boolean = false>
|
|
|
1467
1467
|
/**
|
|
1468
1468
|
* Delete Mapping Association
|
|
1469
1469
|
*
|
|
1470
|
-
*
|
|
1470
|
+
* Remove a single CoA → reporting-concept mapping edge. The mapping structure itself remains; only the association row is dropped.
|
|
1471
1471
|
*
|
|
1472
1472
|
* **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.
|
|
1473
1473
|
*/
|
|
@@ -1722,7 +1722,7 @@ export const opDeleteJournalEntry = <ThrowOnError extends boolean = false>(optio
|
|
|
1722
1722
|
/**
|
|
1723
1723
|
* Set Close Target
|
|
1724
1724
|
*
|
|
1725
|
-
*
|
|
1725
|
+
* Set the user-controlled goal period for closing (`close_target`). Format: YYYY-MM. Distinct from `closed_through` (what's actually locked) — setting a target doesn't close anything; call `close-period` for that. The catch-up sequence between `closed_through` and this target appears on the response's `fiscal_calendar.catch_up_sequence`.
|
|
1726
1726
|
*
|
|
1727
1727
|
* **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.
|
|
1728
1728
|
*/
|
|
@@ -1739,7 +1739,7 @@ export const opSetCloseTarget = <ThrowOnError extends boolean = false>(options:
|
|
|
1739
1739
|
/**
|
|
1740
1740
|
* Close Fiscal Period
|
|
1741
1741
|
*
|
|
1742
|
-
*
|
|
1742
|
+
* Lock a single fiscal period. Posts draft entries, runs the balance-sheet equation check, advances `closed_through` by one, and auto-advances `close_target` if this close caught up to it. Period must be exactly `closed_through + 1` — sequence violations return 422 with structured `blockers`. Common blockers: `sync_stale` (override with `allow_stale_sync=true` after manual verification), `period_incomplete` (draft entries unbalanced), `sequence_violation` (out-of-order).
|
|
1743
1743
|
*
|
|
1744
1744
|
* **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.
|
|
1745
1745
|
*/
|
|
@@ -1756,7 +1756,7 @@ export const opClosePeriod = <ThrowOnError extends boolean = false>(options: Opt
|
|
|
1756
1756
|
/**
|
|
1757
1757
|
* Reopen Fiscal Period
|
|
1758
1758
|
*
|
|
1759
|
-
*
|
|
1759
|
+
* Decrement `closed_through` by one. Only the most recently closed period can be reopened (no reach-back). The required `reason` is captured in the audit log. Use sparingly — reopen invalidates downstream artifacts that trusted the closed state (reports, shared filings).
|
|
1760
1760
|
*
|
|
1761
1761
|
* **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.
|
|
1762
1762
|
*/
|
|
@@ -1790,7 +1790,7 @@ export const opCreateReport = <ThrowOnError extends boolean = false>(options: Op
|
|
|
1790
1790
|
/**
|
|
1791
1791
|
* Regenerate Report
|
|
1792
1792
|
*
|
|
1793
|
-
*
|
|
1793
|
+
* Re-runs fact generation for an existing Report against the latest ledger state. Pass `period_start`/`period_end`/`periods` only if you want to change the reporting window.
|
|
1794
1794
|
*
|
|
1795
1795
|
* **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.
|
|
1796
1796
|
*/
|
|
@@ -1824,7 +1824,7 @@ export const opDeleteReport = <ThrowOnError extends boolean = false>(options: Op
|
|
|
1824
1824
|
/**
|
|
1825
1825
|
* Share Report
|
|
1826
1826
|
*
|
|
1827
|
-
*
|
|
1827
|
+
* Pushes a published report to every member of the target publish list. Each share is an independent copy: the report row + all its facts are cloned into the recipient's tenant schema with `source_graph_id` / `source_report_id` provenance fields populated. Per-target outcomes (success or error) surface in the response — share does not fail-fast across targets.
|
|
1828
1828
|
*
|
|
1829
1829
|
* **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.
|
|
1830
1830
|
*/
|
|
@@ -1875,7 +1875,7 @@ export const opTransitionFilingStatus = <ThrowOnError extends boolean = false>(o
|
|
|
1875
1875
|
/**
|
|
1876
1876
|
* Create Publish List
|
|
1877
1877
|
*
|
|
1878
|
-
*
|
|
1878
|
+
* Create a publish list (a saved set of recipient graphs). Members are managed separately via add/remove-member operations.
|
|
1879
1879
|
*
|
|
1880
1880
|
* **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.
|
|
1881
1881
|
*/
|
|
@@ -1909,7 +1909,7 @@ export const opUpdatePublishList = <ThrowOnError extends boolean = false>(option
|
|
|
1909
1909
|
/**
|
|
1910
1910
|
* Delete Publish List
|
|
1911
1911
|
*
|
|
1912
|
-
*
|
|
1912
|
+
* Delete a publish list and its membership rows. Reports previously shared via this list are not affected — each share is an independent copy in the recipient's graph.
|
|
1913
1913
|
*
|
|
1914
1914
|
* **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.
|
|
1915
1915
|
*/
|
|
@@ -1926,7 +1926,7 @@ export const opDeletePublishList = <ThrowOnError extends boolean = false>(option
|
|
|
1926
1926
|
/**
|
|
1927
1927
|
* Add Members to Publish List
|
|
1928
1928
|
*
|
|
1929
|
-
*
|
|
1929
|
+
* Add one or more recipient graphs to a publish list. Targets must exist and have the same extension enabled (e.g. roboledger). Self-graph rejected (422); already-member rejected (409).
|
|
1930
1930
|
*
|
|
1931
1931
|
* **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.
|
|
1932
1932
|
*/
|
|
@@ -1943,7 +1943,7 @@ export const opAddPublishListMembers = <ThrowOnError extends boolean = false>(op
|
|
|
1943
1943
|
/**
|
|
1944
1944
|
* Remove Member from Publish List
|
|
1945
1945
|
*
|
|
1946
|
-
*
|
|
1946
|
+
* Remove a single recipient from a publish list.
|
|
1947
1947
|
*
|
|
1948
1948
|
* **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.
|
|
1949
1949
|
*/
|