@robosystems/client 0.3.28 → 0.3.29
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/index.ts +2 -2
- package/package.json +1 -1
- package/sdk/index.d.ts +2 -2
- package/sdk/index.js +3 -2
- package/sdk/index.ts +2 -2
- package/sdk/sdk.gen.d.ts +9 -1
- package/sdk/sdk.gen.js +19 -2
- package/sdk/sdk.gen.ts +18 -1
- package/sdk/types.gen.d.ts +502 -1
- package/sdk/types.gen.ts +519 -1
- package/sdk.gen.d.ts +9 -1
- package/sdk.gen.js +19 -2
- package/sdk.gen.ts +18 -1
- package/types.gen.d.ts +502 -1
- package/types.gen.ts +519 -1
package/types.gen.d.ts
CHANGED
|
@@ -148,7 +148,9 @@ export type ArtifactResponse = {
|
|
|
148
148
|
kind: 'statement_renderer';
|
|
149
149
|
} & StatementMechanics) | ({
|
|
150
150
|
kind: 'metric';
|
|
151
|
-
} & MetricMechanics)
|
|
151
|
+
} & MetricMechanics) | ({
|
|
152
|
+
kind: 'rollforward';
|
|
153
|
+
} & RollforwardMechanics);
|
|
152
154
|
};
|
|
153
155
|
/**
|
|
154
156
|
* AssociationResponse
|
|
@@ -220,6 +222,40 @@ export type AssociationResponse = {
|
|
|
220
222
|
*/
|
|
221
223
|
approved_by?: string | null;
|
|
222
224
|
};
|
|
225
|
+
/**
|
|
226
|
+
* AttributionFilter
|
|
227
|
+
*
|
|
228
|
+
* One flow-concept attribution rule on a rollforward IB.
|
|
229
|
+
*
|
|
230
|
+
* Pairs a target concept (the flow leaf the matched amount counts
|
|
231
|
+
* toward) with a predicate (which LineItems match). The rollforward's
|
|
232
|
+
* ``attribution_filters: list[AttributionFilter]`` declares every flow
|
|
233
|
+
* the BS source decomposes into; the renderer evaluates them all per
|
|
234
|
+
* period.
|
|
235
|
+
*
|
|
236
|
+
* ``target_element_id`` is resolved at create time from ``target_qname``
|
|
237
|
+
* via the rs-gaap library + tenant taxonomy lookup. Authors only need
|
|
238
|
+
* to provide the qname; the element_id is filled in by the create
|
|
239
|
+
* handler and the resolved value is what the envelope round-trips.
|
|
240
|
+
*/
|
|
241
|
+
export type AttributionFilter = {
|
|
242
|
+
/**
|
|
243
|
+
* Target Qname
|
|
244
|
+
*
|
|
245
|
+
* QName of the flow concept this filter produces facts for — e.g. ``rs-gaap:ProceedsFromIssuanceOfCommonStock``. Resolved to ``target_element_id`` at create time.
|
|
246
|
+
*/
|
|
247
|
+
target_qname: string;
|
|
248
|
+
/**
|
|
249
|
+
* Target Element Id
|
|
250
|
+
*
|
|
251
|
+
* Resolved element id for ``target_qname``. Null at create time; populated by the handler before persistence. Round-tripped in the envelope.
|
|
252
|
+
*/
|
|
253
|
+
target_element_id?: string | null;
|
|
254
|
+
/**
|
|
255
|
+
* Predicate that determines which LineItems match this filter.
|
|
256
|
+
*/
|
|
257
|
+
predicate: LineItemMetadataPredicate;
|
|
258
|
+
};
|
|
223
259
|
/**
|
|
224
260
|
* AuthResponse
|
|
225
261
|
*
|
|
@@ -1410,6 +1446,12 @@ export type CreateEventBlockRequest = {
|
|
|
1410
1446
|
* REA event class. 'economic' events change resources and drive GL postings; 'support' events are audit-trail / value-chain primitives (typically captured with apply_handlers=False).
|
|
1411
1447
|
*/
|
|
1412
1448
|
event_class?: 'economic' | 'support';
|
|
1449
|
+
/**
|
|
1450
|
+
* Event Action
|
|
1451
|
+
*
|
|
1452
|
+
* Canonical action verb refining `event_category`. Disambiguates concepts ERPs collapse: `transferAllRights` (ownership transfer, no physical movement) vs `transferCustody` (physical only, no rights transfer) — load-bearing for consignment, drop-shipping, marketplace settlement, escrow. Optional; null is valid for legacy events and during adapter rollout.
|
|
1453
|
+
*/
|
|
1454
|
+
event_action?: 'produce' | 'raise' | 'consume' | 'lower' | 'use' | 'cite' | 'work' | 'deliverService' | 'pickup' | 'dropoff' | 'accept' | 'transferCustody' | 'transferAllRights' | 'transfer' | 'move' | 'modify' | 'combine' | 'separate' | 'copy' | null;
|
|
1413
1455
|
/**
|
|
1414
1456
|
* Agent Id
|
|
1415
1457
|
*
|
|
@@ -1662,6 +1704,8 @@ export type CreateGraphRequest = {
|
|
|
1662
1704
|
export type CreateInformationBlockRequest = ({
|
|
1663
1705
|
block_type: 'schedule';
|
|
1664
1706
|
} & CreateScheduleArm) | ({
|
|
1707
|
+
block_type: 'rollforward';
|
|
1708
|
+
} & CreateRollforwardArm) | ({
|
|
1665
1709
|
block_type: 'balance_sheet' | 'cash_flow_statement' | 'comprehensive_income' | 'equity_statement' | 'income_statement' | 'metric';
|
|
1666
1710
|
} & CreateLegacyArm);
|
|
1667
1711
|
/**
|
|
@@ -1846,6 +1890,55 @@ export type CreateRepositorySubscriptionRequest = {
|
|
|
1846
1890
|
*/
|
|
1847
1891
|
plan_name: string;
|
|
1848
1892
|
};
|
|
1893
|
+
/**
|
|
1894
|
+
* CreateRollforwardRequest
|
|
1895
|
+
*
|
|
1896
|
+
* Create a rollforward Information Block.
|
|
1897
|
+
*
|
|
1898
|
+
* Mirrors :class:`CreateScheduleRequest` in shape. The block decomposes
|
|
1899
|
+
* the period change in ``bs_source_qname`` across the declared
|
|
1900
|
+
* attribution filters. Residual (Δ BS - Σ filter matches) falls back to
|
|
1901
|
+
* the default change tag — or, if no default is declared, surfaces as
|
|
1902
|
+
* an unattributed fact tagged with a synthetic residual concept.
|
|
1903
|
+
*/
|
|
1904
|
+
export type CreateRollforwardRequest = {
|
|
1905
|
+
/**
|
|
1906
|
+
* Name
|
|
1907
|
+
*
|
|
1908
|
+
* Human-readable block name.
|
|
1909
|
+
*/
|
|
1910
|
+
name: string;
|
|
1911
|
+
/**
|
|
1912
|
+
* Bs Source Qname
|
|
1913
|
+
*
|
|
1914
|
+
* QName of the balance-sheet element whose period delta this block decomposes. Resolved to ``bs_source_element_id`` at create time.
|
|
1915
|
+
*/
|
|
1916
|
+
bs_source_qname: string;
|
|
1917
|
+
/**
|
|
1918
|
+
* Default Change Tag Qname
|
|
1919
|
+
*
|
|
1920
|
+
* QName of the fallback flow concept (Tier 1 default change tag). Residual amount — Δ BS minus the sum of filter-matched amounts — is attributed to this concept. When omitted, residual surfaces unattributed; the validation_mode setting governs whether that's a hard error.
|
|
1921
|
+
*/
|
|
1922
|
+
default_change_tag_qname?: string | null;
|
|
1923
|
+
/**
|
|
1924
|
+
* Attribution Filters
|
|
1925
|
+
*
|
|
1926
|
+
* Filter predicates routing LineItems to flow concepts.
|
|
1927
|
+
*/
|
|
1928
|
+
attribution_filters?: Array<AttributionFilter>;
|
|
1929
|
+
/**
|
|
1930
|
+
* Validation Mode
|
|
1931
|
+
*
|
|
1932
|
+
* How the renderer arbitrates when Σ filter matches != Δ BS. ``strict`` raises; ``residual_as_default`` emits the residual as a default-tag fact (the common case); ``warn_only`` logs and lets the imbalance pass.
|
|
1933
|
+
*/
|
|
1934
|
+
validation_mode?: 'strict' | 'residual_as_default' | 'warn_only';
|
|
1935
|
+
/**
|
|
1936
|
+
* Taxonomy Id
|
|
1937
|
+
*
|
|
1938
|
+
* Owning taxonomy id (auto-resolved from ``bs_source_qname`` when omitted).
|
|
1939
|
+
*/
|
|
1940
|
+
taxonomy_id?: string | null;
|
|
1941
|
+
};
|
|
1849
1942
|
/**
|
|
1850
1943
|
* CreateScheduleRequest
|
|
1851
1944
|
*/
|
|
@@ -2657,6 +2750,8 @@ export type DeleteGraphOp = {
|
|
|
2657
2750
|
export type DeleteInformationBlockRequest = ({
|
|
2658
2751
|
block_type: 'schedule';
|
|
2659
2752
|
} & DeleteScheduleArm) | ({
|
|
2753
|
+
block_type: 'rollforward';
|
|
2754
|
+
} & DeleteRollforwardArm) | ({
|
|
2660
2755
|
block_type: 'balance_sheet' | 'cash_flow_statement' | 'comprehensive_income' | 'equity_statement' | 'income_statement' | 'metric';
|
|
2661
2756
|
} & DeleteLegacyArm);
|
|
2662
2757
|
/**
|
|
@@ -2819,6 +2914,23 @@ export type DeleteResult = {
|
|
|
2819
2914
|
*/
|
|
2820
2915
|
deleted: boolean;
|
|
2821
2916
|
};
|
|
2917
|
+
/**
|
|
2918
|
+
* DeleteRollforwardRequest
|
|
2919
|
+
*
|
|
2920
|
+
* Delete a rollforward block.
|
|
2921
|
+
*
|
|
2922
|
+
* Cascades through any synthetic facts produced by this block's filter
|
|
2923
|
+
* evaluations. The underlying ledger LineItems are not touched — only
|
|
2924
|
+
* the rollforward IB's projection of them.
|
|
2925
|
+
*/
|
|
2926
|
+
export type DeleteRollforwardRequest = {
|
|
2927
|
+
/**
|
|
2928
|
+
* Structure Id
|
|
2929
|
+
*
|
|
2930
|
+
* Structure ID of the rollforward block.
|
|
2931
|
+
*/
|
|
2932
|
+
structure_id: string;
|
|
2933
|
+
};
|
|
2822
2934
|
/**
|
|
2823
2935
|
* DeleteScheduleRequest
|
|
2824
2936
|
*
|
|
@@ -3771,6 +3883,12 @@ export type EventBlockEnvelope = {
|
|
|
3771
3883
|
* REA event class — `economic` (drives GL postings) or `support` (audit-trail / value-chain primitive, no GL impact).
|
|
3772
3884
|
*/
|
|
3773
3885
|
event_class: string;
|
|
3886
|
+
/**
|
|
3887
|
+
* Event Action
|
|
3888
|
+
*
|
|
3889
|
+
* Canonical action verb refining `event_category`. Null when the source adapter or capture path didn't supply one.
|
|
3890
|
+
*/
|
|
3891
|
+
event_action?: 'produce' | 'raise' | 'consume' | 'lower' | 'use' | 'cite' | 'work' | 'deliverService' | 'pickup' | 'dropoff' | 'accept' | 'transferCustody' | 'transferAllRights' | 'transfer' | 'move' | 'modify' | 'combine' | 'separate' | 'copy' | null;
|
|
3774
3892
|
/**
|
|
3775
3893
|
* Agent Id
|
|
3776
3894
|
*
|
|
@@ -3915,6 +4033,68 @@ export type EventHandlerResponse = {
|
|
|
3915
4033
|
*/
|
|
3916
4034
|
created_by?: string | null;
|
|
3917
4035
|
};
|
|
4036
|
+
/**
|
|
4037
|
+
* ExecuteEventBlockRequest
|
|
4038
|
+
*
|
|
4039
|
+
* Request to publish an event to the source-of-truth system.
|
|
4040
|
+
*
|
|
4041
|
+
* For events on a connection with `write_policy='qb_authoritative'`
|
|
4042
|
+
* (or `'hybrid'`), this triggers a synchronous write to QuickBooks
|
|
4043
|
+
* via the QB API. The returned `qb_txn_id` lands on
|
|
4044
|
+
* `event.metadata.qb_external_id` and the event transitions to
|
|
4045
|
+
* `committed` (in flight) → `fulfilled` (QB accepted) or `pending`
|
|
4046
|
+
* (QB rejected).
|
|
4047
|
+
*
|
|
4048
|
+
* `'native'`-policy events fast-path through with no QB write —
|
|
4049
|
+
* RoboSystems IS the source of truth, no outbound publish needed.
|
|
4050
|
+
*/
|
|
4051
|
+
export type ExecuteEventBlockRequest = {
|
|
4052
|
+
/**
|
|
4053
|
+
* Event Id
|
|
4054
|
+
*
|
|
4055
|
+
* Event ID (`evt_*` ULID) to publish. The event's `metadata.connection_id` determines which QB connection to write to; the connection's `write_policy` governs whether a write fires.
|
|
4056
|
+
*/
|
|
4057
|
+
event_id: string;
|
|
4058
|
+
/**
|
|
4059
|
+
* Connection Id
|
|
4060
|
+
*
|
|
4061
|
+
* Override for the connection to route the write through. Used by the close-period batch path where schedule-originated events don't carry `connection_id` in their metadata. When unset, the command reads `event.metadata.connection_id`.
|
|
4062
|
+
*/
|
|
4063
|
+
connection_id?: string | null;
|
|
4064
|
+
};
|
|
4065
|
+
/**
|
|
4066
|
+
* ExecuteEventBlockResponse
|
|
4067
|
+
*
|
|
4068
|
+
* Outcome of an `execute-event-block` call.
|
|
4069
|
+
*/
|
|
4070
|
+
export type ExecuteEventBlockResponse = {
|
|
4071
|
+
/**
|
|
4072
|
+
* Event Id
|
|
4073
|
+
*
|
|
4074
|
+
* Echo of the event ID.
|
|
4075
|
+
*/
|
|
4076
|
+
event_id: string;
|
|
4077
|
+
/**
|
|
4078
|
+
* Status
|
|
4079
|
+
*
|
|
4080
|
+
* Post-execute event status. `'classified'` when no write fired (native policy or no-op). `'committed'` when the QB write was in flight (intermediate state). `'fulfilled'` when QB accepted and local GL drafts were promoted to posted. `'pending'` when QB rejected — see `qb_error` for the rejection detail; retry after fixing the underlying issue.
|
|
4081
|
+
*/
|
|
4082
|
+
status: string;
|
|
4083
|
+
/**
|
|
4084
|
+
* Qb External Id
|
|
4085
|
+
*
|
|
4086
|
+
* QB-side transaction ID returned by the JournalEntry API. Null when no write fired (native policy) or when the write was rejected before getting an ID.
|
|
4087
|
+
*/
|
|
4088
|
+
qb_external_id?: string | null;
|
|
4089
|
+
/**
|
|
4090
|
+
* Qb Error
|
|
4091
|
+
*
|
|
4092
|
+
* QB rejection detail when status='pending'. Shape: `{code, message, qb_response_at}`. Operator retries after fixing CoA mapping / amount validation / closed-period.
|
|
4093
|
+
*/
|
|
4094
|
+
qb_error?: {
|
|
4095
|
+
[key: string]: unknown;
|
|
4096
|
+
} | null;
|
|
4097
|
+
};
|
|
3918
4098
|
/**
|
|
3919
4099
|
* FactLite
|
|
3920
4100
|
*
|
|
@@ -5712,6 +5892,14 @@ export type JournalEntryLineItemInput = {
|
|
|
5712
5892
|
* Per-line memo (overrides the entry-level memo on this line).
|
|
5713
5893
|
*/
|
|
5714
5894
|
description?: string | null;
|
|
5895
|
+
/**
|
|
5896
|
+
* Metadata
|
|
5897
|
+
*
|
|
5898
|
+
* Optional per-line metadata stamped on ``LineItem.metadata_``. Used to carry source-system fields the standard columns don't cover — e.g. an external flow-tag code that drives rollforward attribution (``transaction_description_code``), an external memo, or a cost-center hint. Pass-through is non-validating; the renderer / filter engine reads keys it knows about and ignores the rest. ``None`` is normalized to ``{}`` at persist time.
|
|
5899
|
+
*/
|
|
5900
|
+
metadata?: {
|
|
5901
|
+
[key: string]: unknown;
|
|
5902
|
+
} | null;
|
|
5715
5903
|
};
|
|
5716
5904
|
/**
|
|
5717
5905
|
* JournalEntryLineItemResponse
|
|
@@ -6065,6 +6253,41 @@ export type LedgerEntityResponse = {
|
|
|
6065
6253
|
*/
|
|
6066
6254
|
updated_at?: string | null;
|
|
6067
6255
|
};
|
|
6256
|
+
/**
|
|
6257
|
+
* LineItemMetadataPredicate
|
|
6258
|
+
*
|
|
6259
|
+
* Filter ledger LineItems whose ``metadata_[field]`` is in ``values``.
|
|
6260
|
+
*
|
|
6261
|
+
* The single predicate kind shipped in Phase 2 MVP. Sufficient for any
|
|
6262
|
+
* source taxonomy that stamps a flow-tag column on each transaction
|
|
6263
|
+
* line — mini's ``TransactionDescriptionCode``, future XBRL GL
|
|
6264
|
+
* ``GenericFlowCategory`` columns, custom tenant tags.
|
|
6265
|
+
*
|
|
6266
|
+
* ``field`` is the JSONB key under ``line_items.metadata`` (e.g.
|
|
6267
|
+
* ``"transaction_description_code"``). ``values`` is the set of values
|
|
6268
|
+
* that route to the filter's target concept; matched LineItems aggregate
|
|
6269
|
+
* signed into the attributed fact for the period.
|
|
6270
|
+
*/
|
|
6271
|
+
export type LineItemMetadataPredicate = {
|
|
6272
|
+
/**
|
|
6273
|
+
* Kind
|
|
6274
|
+
*
|
|
6275
|
+
* Discriminator value selecting this predicate shape.
|
|
6276
|
+
*/
|
|
6277
|
+
kind?: 'line_item_metadata_field';
|
|
6278
|
+
/**
|
|
6279
|
+
* Field
|
|
6280
|
+
*
|
|
6281
|
+
* JSONB key under ``line_items.metadata`` to match against — e.g. ``transaction_description_code``. The renderer performs an exact-string comparison on the JSONB-extracted text value.
|
|
6282
|
+
*/
|
|
6283
|
+
field: string;
|
|
6284
|
+
/**
|
|
6285
|
+
* Values
|
|
6286
|
+
*
|
|
6287
|
+
* Metadata values that route to this filter's target concept. A LineItem matches when ``metadata[field] ∈ values`` AND the line falls within the rollforward's period.
|
|
6288
|
+
*/
|
|
6289
|
+
values: Array<string>;
|
|
6290
|
+
};
|
|
6068
6291
|
/**
|
|
6069
6292
|
* LinkEntityTaxonomyRequest
|
|
6070
6293
|
*
|
|
@@ -7095,6 +7318,51 @@ export type OperationEnvelopeEventHandlerResponse = {
|
|
|
7095
7318
|
*/
|
|
7096
7319
|
idempotentReplay?: boolean;
|
|
7097
7320
|
};
|
|
7321
|
+
/**
|
|
7322
|
+
* OperationEnvelope[ExecuteEventBlockResponse]
|
|
7323
|
+
*/
|
|
7324
|
+
export type OperationEnvelopeExecuteEventBlockResponse = {
|
|
7325
|
+
/**
|
|
7326
|
+
* Operation
|
|
7327
|
+
*
|
|
7328
|
+
* Kebab-case operation name
|
|
7329
|
+
*/
|
|
7330
|
+
operation: string;
|
|
7331
|
+
/**
|
|
7332
|
+
* Operationid
|
|
7333
|
+
*
|
|
7334
|
+
* op_-prefixed ULID for audit and SSE correlation
|
|
7335
|
+
*/
|
|
7336
|
+
operationId: string;
|
|
7337
|
+
/**
|
|
7338
|
+
* Status
|
|
7339
|
+
*
|
|
7340
|
+
* Operation lifecycle state
|
|
7341
|
+
*/
|
|
7342
|
+
status: 'completed' | 'pending' | 'failed';
|
|
7343
|
+
/**
|
|
7344
|
+
* Command-specific result payload
|
|
7345
|
+
*/
|
|
7346
|
+
result?: ExecuteEventBlockResponse | null;
|
|
7347
|
+
/**
|
|
7348
|
+
* At
|
|
7349
|
+
*
|
|
7350
|
+
* ISO-8601 UTC timestamp
|
|
7351
|
+
*/
|
|
7352
|
+
at: string;
|
|
7353
|
+
/**
|
|
7354
|
+
* Createdby
|
|
7355
|
+
*
|
|
7356
|
+
* User ID that initiated the operation (null for legacy callers)
|
|
7357
|
+
*/
|
|
7358
|
+
createdBy?: string | null;
|
|
7359
|
+
/**
|
|
7360
|
+
* Idempotentreplay
|
|
7361
|
+
*
|
|
7362
|
+
* True when this envelope came from the idempotency cache — the underlying command did not execute again. False on fresh executions.
|
|
7363
|
+
*/
|
|
7364
|
+
idempotentReplay?: boolean;
|
|
7365
|
+
};
|
|
7098
7366
|
/**
|
|
7099
7367
|
* OperationEnvelope[FiscalCalendarResponse]
|
|
7100
7368
|
*/
|
|
@@ -9683,6 +9951,66 @@ export type RestoreBackupOp = {
|
|
|
9683
9951
|
*/
|
|
9684
9952
|
verify_after_restore?: boolean;
|
|
9685
9953
|
};
|
|
9954
|
+
/**
|
|
9955
|
+
* RollforwardMechanics
|
|
9956
|
+
*
|
|
9957
|
+
* Filter-based attribution mechanics for ``block_type='rollforward'``.
|
|
9958
|
+
*
|
|
9959
|
+
* Implements Tier 2 of the rollforward attribution design
|
|
9960
|
+
* (``information-block.md`` §4.5). Each block decomposes one BS
|
|
9961
|
+
* source element's period delta into a list of flow concepts via
|
|
9962
|
+
* declared :class:`AttributionFilter` predicates. The renderer
|
|
9963
|
+
* evaluates the filters against ledger LineItems at envelope-build
|
|
9964
|
+
* time, emits one attributed fact per filter per period, and arbitrates
|
|
9965
|
+
* any residual against the default change tag (Tier 1 fallback).
|
|
9966
|
+
*
|
|
9967
|
+
* Reads directly from the typed ``structures.artifact_mechanics`` JSONB
|
|
9968
|
+
* column. ``attribution_filters`` rides as nested JSON; the predicate
|
|
9969
|
+
* union widens as new predicate shapes ship (Phase 2 MVP carries only
|
|
9970
|
+
* ``line_item_metadata_field``).
|
|
9971
|
+
*/
|
|
9972
|
+
export type RollforwardMechanics = {
|
|
9973
|
+
/**
|
|
9974
|
+
* Kind
|
|
9975
|
+
*/
|
|
9976
|
+
kind?: 'rollforward';
|
|
9977
|
+
/**
|
|
9978
|
+
* Bs Source Element Id
|
|
9979
|
+
*
|
|
9980
|
+
* Element id of the balance-sheet source whose period delta this block decomposes. Resolved from ``bs_source_qname`` at create time.
|
|
9981
|
+
*/
|
|
9982
|
+
bs_source_element_id: string;
|
|
9983
|
+
/**
|
|
9984
|
+
* Bs Source Qname
|
|
9985
|
+
*
|
|
9986
|
+
* QName of the BS source element (e.g. ``mini:CashAndCashEquivalents``). Round-tripped for caller convenience; ``bs_source_element_id`` is authoritative.
|
|
9987
|
+
*/
|
|
9988
|
+
bs_source_qname: string;
|
|
9989
|
+
/**
|
|
9990
|
+
* Default Change Tag Element Id
|
|
9991
|
+
*
|
|
9992
|
+
* Element id of the Tier 1 default change tag — the fallback flow concept that receives any residual (Δ BS − Σ filter matches). Null when no default is declared; behavior on residual then follows ``validation_mode``.
|
|
9993
|
+
*/
|
|
9994
|
+
default_change_tag_element_id?: string | null;
|
|
9995
|
+
/**
|
|
9996
|
+
* Default Change Tag Qname
|
|
9997
|
+
*
|
|
9998
|
+
* QName of the Tier 1 default change tag (e.g. ``rs-gaap:IncreaseDecreaseInCashAndCashEquivalents``). Round-tripped for caller convenience and operator-readable envelopes; ``default_change_tag_element_id`` is authoritative. Null iff ``default_change_tag_element_id`` is null.
|
|
9999
|
+
*/
|
|
10000
|
+
default_change_tag_qname?: string | null;
|
|
10001
|
+
/**
|
|
10002
|
+
* Attribution Filters
|
|
10003
|
+
*
|
|
10004
|
+
* Filter predicates routing LineItems to flow concepts. The renderer evaluates each filter against the period's LineItems, aggregates signed amounts, and emits one fact per filter per period.
|
|
10005
|
+
*/
|
|
10006
|
+
attribution_filters?: Array<AttributionFilter>;
|
|
10007
|
+
/**
|
|
10008
|
+
* Validation Mode
|
|
10009
|
+
*
|
|
10010
|
+
* Renderer arbitration policy when Σ filter matches != Δ BS. ``strict`` raises; ``residual_as_default`` emits the residual as a default-tag fact (the common case); ``warn_only`` logs and lets the imbalance pass.
|
|
10011
|
+
*/
|
|
10012
|
+
validation_mode?: 'strict' | 'residual_as_default' | 'warn_only';
|
|
10013
|
+
};
|
|
9686
10014
|
/**
|
|
9687
10015
|
* RuleLite
|
|
9688
10016
|
*
|
|
@@ -12121,6 +12449,12 @@ export type UpdateEventBlockRequest = {
|
|
|
12121
12449
|
metadata_patch?: {
|
|
12122
12450
|
[key: string]: unknown;
|
|
12123
12451
|
};
|
|
12452
|
+
/**
|
|
12453
|
+
* Event Action
|
|
12454
|
+
*
|
|
12455
|
+
* Set or correct the canonical action verb. Unset = unchanged. Useful when an adapter improvement makes a previously-NULL verb fillable, or when reclassifying after the fact.
|
|
12456
|
+
*/
|
|
12457
|
+
event_action?: 'produce' | 'raise' | 'consume' | 'lower' | 'use' | 'cite' | 'work' | 'deliverService' | 'pickup' | 'dropoff' | 'accept' | 'transferCustody' | 'transferAllRights' | 'transfer' | 'move' | 'modify' | 'combine' | 'separate' | 'copy' | null;
|
|
12124
12458
|
/**
|
|
12125
12459
|
* Obligated By Event Id
|
|
12126
12460
|
*
|
|
@@ -12227,6 +12561,8 @@ export type UpdateEventHandlerRequest = {
|
|
|
12227
12561
|
export type UpdateInformationBlockRequest = ({
|
|
12228
12562
|
block_type: 'schedule';
|
|
12229
12563
|
} & UpdateScheduleArm) | ({
|
|
12564
|
+
block_type: 'rollforward';
|
|
12565
|
+
} & UpdateRollforwardArm) | ({
|
|
12230
12566
|
block_type: 'balance_sheet' | 'cash_flow_statement' | 'comprehensive_income' | 'equity_statement' | 'income_statement' | 'metric';
|
|
12231
12567
|
} & UpdateLegacyArm);
|
|
12232
12568
|
/**
|
|
@@ -12367,6 +12703,51 @@ export type UpdatePublishListOperation = {
|
|
|
12367
12703
|
*/
|
|
12368
12704
|
list_id: string;
|
|
12369
12705
|
};
|
|
12706
|
+
/**
|
|
12707
|
+
* UpdateRollforwardRequest
|
|
12708
|
+
*
|
|
12709
|
+
* Update mutable fields on a rollforward block.
|
|
12710
|
+
*
|
|
12711
|
+
* Editable: name, default_change_tag_qname, attribution_filters,
|
|
12712
|
+
* validation_mode. The BS source is fixed once the block is created
|
|
12713
|
+
* (changing it would invalidate every previously rendered period); to
|
|
12714
|
+
* change BS source, delete and re-create.
|
|
12715
|
+
*
|
|
12716
|
+
* **Partial-update semantics**: omitted (``None``) fields mean "leave
|
|
12717
|
+
* unchanged" — there is no wire-level way to *clear* a previously set
|
|
12718
|
+
* default change tag or empty the attribution_filters list via this
|
|
12719
|
+
* endpoint. To remove the default tag entirely, delete and re-create
|
|
12720
|
+
* the rollforward block. The asymmetry is deliberate: an explicit
|
|
12721
|
+
* clear-sentinel adds wire-shape complexity for a use case that rarely
|
|
12722
|
+
* arises in practice (default tags are typically set during initial
|
|
12723
|
+
* authoring and only swapped, not removed).
|
|
12724
|
+
*/
|
|
12725
|
+
export type UpdateRollforwardRequest = {
|
|
12726
|
+
/**
|
|
12727
|
+
* Structure Id
|
|
12728
|
+
*
|
|
12729
|
+
* Structure ID of the rollforward block.
|
|
12730
|
+
*/
|
|
12731
|
+
structure_id: string;
|
|
12732
|
+
/**
|
|
12733
|
+
* Name
|
|
12734
|
+
*/
|
|
12735
|
+
name?: string | null;
|
|
12736
|
+
/**
|
|
12737
|
+
* Default Change Tag Qname
|
|
12738
|
+
*
|
|
12739
|
+
* New default change tag qname. Pass a value to *change* the default; omit (``None``) to leave unchanged. There is no wire-level way to clear a previously set default — see the class docstring.
|
|
12740
|
+
*/
|
|
12741
|
+
default_change_tag_qname?: string | null;
|
|
12742
|
+
/**
|
|
12743
|
+
* Attribution Filters
|
|
12744
|
+
*/
|
|
12745
|
+
attribution_filters?: Array<AttributionFilter> | null;
|
|
12746
|
+
/**
|
|
12747
|
+
* Validation Mode
|
|
12748
|
+
*/
|
|
12749
|
+
validation_mode?: 'strict' | 'residual_as_default' | 'warn_only' | null;
|
|
12750
|
+
};
|
|
12370
12751
|
/**
|
|
12371
12752
|
* UpdateScheduleRequest
|
|
12372
12753
|
*
|
|
@@ -12874,6 +13255,27 @@ export type CreateLegacyArm = {
|
|
|
12874
13255
|
[key: string]: unknown;
|
|
12875
13256
|
};
|
|
12876
13257
|
};
|
|
13258
|
+
/**
|
|
13259
|
+
* _CreateRollforwardArm
|
|
13260
|
+
*
|
|
13261
|
+
* Create-information-block body for ``block_type="rollforward"``.
|
|
13262
|
+
*
|
|
13263
|
+
* Carries a typed rollforward payload. The block decomposes the period
|
|
13264
|
+
* change in a BS source element across the declared attribution
|
|
13265
|
+
* filters.
|
|
13266
|
+
*/
|
|
13267
|
+
export type CreateRollforwardArm = {
|
|
13268
|
+
/**
|
|
13269
|
+
* Block Type
|
|
13270
|
+
*
|
|
13271
|
+
* Discriminator value selecting this arm.
|
|
13272
|
+
*/
|
|
13273
|
+
block_type: 'rollforward';
|
|
13274
|
+
/**
|
|
13275
|
+
* Rollforward creation payload.
|
|
13276
|
+
*/
|
|
13277
|
+
payload: CreateRollforwardRequest;
|
|
13278
|
+
};
|
|
12877
13279
|
/**
|
|
12878
13280
|
* _CreateScheduleArm
|
|
12879
13281
|
*
|
|
@@ -12920,6 +13322,26 @@ export type DeleteLegacyArm = {
|
|
|
12920
13322
|
[key: string]: unknown;
|
|
12921
13323
|
};
|
|
12922
13324
|
};
|
|
13325
|
+
/**
|
|
13326
|
+
* _DeleteRollforwardArm
|
|
13327
|
+
*
|
|
13328
|
+
* Delete-information-block body for ``block_type="rollforward"``.
|
|
13329
|
+
*
|
|
13330
|
+
* Cascades through any synthetic facts produced by this block's filter
|
|
13331
|
+
* evaluations. The underlying ledger LineItems are not touched.
|
|
13332
|
+
*/
|
|
13333
|
+
export type DeleteRollforwardArm = {
|
|
13334
|
+
/**
|
|
13335
|
+
* Block Type
|
|
13336
|
+
*
|
|
13337
|
+
* Discriminator value selecting this arm.
|
|
13338
|
+
*/
|
|
13339
|
+
block_type: 'rollforward';
|
|
13340
|
+
/**
|
|
13341
|
+
* Rollforward delete payload.
|
|
13342
|
+
*/
|
|
13343
|
+
payload: DeleteRollforwardRequest;
|
|
13344
|
+
};
|
|
12923
13345
|
/**
|
|
12924
13346
|
* _DeleteScheduleArm
|
|
12925
13347
|
*
|
|
@@ -12965,6 +13387,26 @@ export type UpdateLegacyArm = {
|
|
|
12965
13387
|
[key: string]: unknown;
|
|
12966
13388
|
};
|
|
12967
13389
|
};
|
|
13390
|
+
/**
|
|
13391
|
+
* _UpdateRollforwardArm
|
|
13392
|
+
*
|
|
13393
|
+
* Update-information-block body for ``block_type="rollforward"``.
|
|
13394
|
+
*
|
|
13395
|
+
* Carries a typed rollforward update payload. Mutable fields: name,
|
|
13396
|
+
* default_change_tag_qname, attribution_filters, validation_mode.
|
|
13397
|
+
*/
|
|
13398
|
+
export type UpdateRollforwardArm = {
|
|
13399
|
+
/**
|
|
13400
|
+
* Block Type
|
|
13401
|
+
*
|
|
13402
|
+
* Discriminator value selecting this arm.
|
|
13403
|
+
*/
|
|
13404
|
+
block_type: 'rollforward';
|
|
13405
|
+
/**
|
|
13406
|
+
* Rollforward update payload.
|
|
13407
|
+
*/
|
|
13408
|
+
payload: UpdateRollforwardRequest;
|
|
13409
|
+
};
|
|
12968
13410
|
/**
|
|
12969
13411
|
* _UpdateScheduleArm
|
|
12970
13412
|
*
|
|
@@ -19684,6 +20126,65 @@ export type OpUpdateEventBlockResponses = {
|
|
|
19684
20126
|
200: OperationEnvelopeEventBlockEnvelope;
|
|
19685
20127
|
};
|
|
19686
20128
|
export type OpUpdateEventBlockResponse = OpUpdateEventBlockResponses[keyof OpUpdateEventBlockResponses];
|
|
20129
|
+
export type OpExecuteEventBlockData = {
|
|
20130
|
+
body: ExecuteEventBlockRequest;
|
|
20131
|
+
headers?: {
|
|
20132
|
+
/**
|
|
20133
|
+
* Idempotency-Key
|
|
20134
|
+
*/
|
|
20135
|
+
'Idempotency-Key'?: string | null;
|
|
20136
|
+
};
|
|
20137
|
+
path: {
|
|
20138
|
+
/**
|
|
20139
|
+
* Graph Id
|
|
20140
|
+
*/
|
|
20141
|
+
graph_id: string;
|
|
20142
|
+
};
|
|
20143
|
+
query?: never;
|
|
20144
|
+
url: '/extensions/roboledger/{graph_id}/operations/execute-event-block';
|
|
20145
|
+
};
|
|
20146
|
+
export type OpExecuteEventBlockErrors = {
|
|
20147
|
+
/**
|
|
20148
|
+
* Invalid request
|
|
20149
|
+
*/
|
|
20150
|
+
400: ErrorResponse;
|
|
20151
|
+
/**
|
|
20152
|
+
* Authentication required
|
|
20153
|
+
*/
|
|
20154
|
+
401: ErrorResponse;
|
|
20155
|
+
/**
|
|
20156
|
+
* Access denied
|
|
20157
|
+
*/
|
|
20158
|
+
403: ErrorResponse;
|
|
20159
|
+
/**
|
|
20160
|
+
* Resource not found
|
|
20161
|
+
*/
|
|
20162
|
+
404: ErrorResponse;
|
|
20163
|
+
/**
|
|
20164
|
+
* Idempotency-Key conflict — key reused with different body
|
|
20165
|
+
*/
|
|
20166
|
+
409: ErrorResponse;
|
|
20167
|
+
/**
|
|
20168
|
+
* Validation error
|
|
20169
|
+
*/
|
|
20170
|
+
422: ErrorResponse;
|
|
20171
|
+
/**
|
|
20172
|
+
* Rate limit exceeded
|
|
20173
|
+
*/
|
|
20174
|
+
429: ErrorResponse;
|
|
20175
|
+
/**
|
|
20176
|
+
* Internal server error
|
|
20177
|
+
*/
|
|
20178
|
+
500: ErrorResponse;
|
|
20179
|
+
};
|
|
20180
|
+
export type OpExecuteEventBlockError = OpExecuteEventBlockErrors[keyof OpExecuteEventBlockErrors];
|
|
20181
|
+
export type OpExecuteEventBlockResponses = {
|
|
20182
|
+
/**
|
|
20183
|
+
* Successful Response
|
|
20184
|
+
*/
|
|
20185
|
+
200: OperationEnvelopeExecuteEventBlockResponse;
|
|
20186
|
+
};
|
|
20187
|
+
export type OpExecuteEventBlockResponse = OpExecuteEventBlockResponses[keyof OpExecuteEventBlockResponses];
|
|
19687
20188
|
export type OpCreateEventHandlerData = {
|
|
19688
20189
|
body: CreateEventHandlerRequest;
|
|
19689
20190
|
headers?: {
|