@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/sdk/types.gen.ts
CHANGED
|
@@ -155,7 +155,9 @@ export type ArtifactResponse = {
|
|
|
155
155
|
kind: 'statement_renderer';
|
|
156
156
|
} & StatementMechanics) | ({
|
|
157
157
|
kind: 'metric';
|
|
158
|
-
} & MetricMechanics)
|
|
158
|
+
} & MetricMechanics) | ({
|
|
159
|
+
kind: 'rollforward';
|
|
160
|
+
} & RollforwardMechanics);
|
|
159
161
|
};
|
|
160
162
|
|
|
161
163
|
/**
|
|
@@ -229,6 +231,41 @@ export type AssociationResponse = {
|
|
|
229
231
|
approved_by?: string | null;
|
|
230
232
|
};
|
|
231
233
|
|
|
234
|
+
/**
|
|
235
|
+
* AttributionFilter
|
|
236
|
+
*
|
|
237
|
+
* One flow-concept attribution rule on a rollforward IB.
|
|
238
|
+
*
|
|
239
|
+
* Pairs a target concept (the flow leaf the matched amount counts
|
|
240
|
+
* toward) with a predicate (which LineItems match). The rollforward's
|
|
241
|
+
* ``attribution_filters: list[AttributionFilter]`` declares every flow
|
|
242
|
+
* the BS source decomposes into; the renderer evaluates them all per
|
|
243
|
+
* period.
|
|
244
|
+
*
|
|
245
|
+
* ``target_element_id`` is resolved at create time from ``target_qname``
|
|
246
|
+
* via the rs-gaap library + tenant taxonomy lookup. Authors only need
|
|
247
|
+
* to provide the qname; the element_id is filled in by the create
|
|
248
|
+
* handler and the resolved value is what the envelope round-trips.
|
|
249
|
+
*/
|
|
250
|
+
export type AttributionFilter = {
|
|
251
|
+
/**
|
|
252
|
+
* Target Qname
|
|
253
|
+
*
|
|
254
|
+
* QName of the flow concept this filter produces facts for — e.g. ``rs-gaap:ProceedsFromIssuanceOfCommonStock``. Resolved to ``target_element_id`` at create time.
|
|
255
|
+
*/
|
|
256
|
+
target_qname: string;
|
|
257
|
+
/**
|
|
258
|
+
* Target Element Id
|
|
259
|
+
*
|
|
260
|
+
* Resolved element id for ``target_qname``. Null at create time; populated by the handler before persistence. Round-tripped in the envelope.
|
|
261
|
+
*/
|
|
262
|
+
target_element_id?: string | null;
|
|
263
|
+
/**
|
|
264
|
+
* Predicate that determines which LineItems match this filter.
|
|
265
|
+
*/
|
|
266
|
+
predicate: LineItemMetadataPredicate;
|
|
267
|
+
};
|
|
268
|
+
|
|
232
269
|
/**
|
|
233
270
|
* AuthResponse
|
|
234
271
|
*
|
|
@@ -1452,6 +1489,12 @@ export type CreateEventBlockRequest = {
|
|
|
1452
1489
|
* 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).
|
|
1453
1490
|
*/
|
|
1454
1491
|
event_class?: 'economic' | 'support';
|
|
1492
|
+
/**
|
|
1493
|
+
* Event Action
|
|
1494
|
+
*
|
|
1495
|
+
* 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.
|
|
1496
|
+
*/
|
|
1497
|
+
event_action?: 'produce' | 'raise' | 'consume' | 'lower' | 'use' | 'cite' | 'work' | 'deliverService' | 'pickup' | 'dropoff' | 'accept' | 'transferCustody' | 'transferAllRights' | 'transfer' | 'move' | 'modify' | 'combine' | 'separate' | 'copy' | null;
|
|
1455
1498
|
/**
|
|
1456
1499
|
* Agent Id
|
|
1457
1500
|
*
|
|
@@ -1707,6 +1750,8 @@ export type CreateGraphRequest = {
|
|
|
1707
1750
|
export type CreateInformationBlockRequest = ({
|
|
1708
1751
|
block_type: 'schedule';
|
|
1709
1752
|
} & CreateScheduleArm) | ({
|
|
1753
|
+
block_type: 'rollforward';
|
|
1754
|
+
} & CreateRollforwardArm) | ({
|
|
1710
1755
|
block_type: 'balance_sheet' | 'cash_flow_statement' | 'comprehensive_income' | 'equity_statement' | 'income_statement' | 'metric';
|
|
1711
1756
|
} & CreateLegacyArm);
|
|
1712
1757
|
|
|
@@ -1897,6 +1942,56 @@ export type CreateRepositorySubscriptionRequest = {
|
|
|
1897
1942
|
plan_name: string;
|
|
1898
1943
|
};
|
|
1899
1944
|
|
|
1945
|
+
/**
|
|
1946
|
+
* CreateRollforwardRequest
|
|
1947
|
+
*
|
|
1948
|
+
* Create a rollforward Information Block.
|
|
1949
|
+
*
|
|
1950
|
+
* Mirrors :class:`CreateScheduleRequest` in shape. The block decomposes
|
|
1951
|
+
* the period change in ``bs_source_qname`` across the declared
|
|
1952
|
+
* attribution filters. Residual (Δ BS - Σ filter matches) falls back to
|
|
1953
|
+
* the default change tag — or, if no default is declared, surfaces as
|
|
1954
|
+
* an unattributed fact tagged with a synthetic residual concept.
|
|
1955
|
+
*/
|
|
1956
|
+
export type CreateRollforwardRequest = {
|
|
1957
|
+
/**
|
|
1958
|
+
* Name
|
|
1959
|
+
*
|
|
1960
|
+
* Human-readable block name.
|
|
1961
|
+
*/
|
|
1962
|
+
name: string;
|
|
1963
|
+
/**
|
|
1964
|
+
* Bs Source Qname
|
|
1965
|
+
*
|
|
1966
|
+
* QName of the balance-sheet element whose period delta this block decomposes. Resolved to ``bs_source_element_id`` at create time.
|
|
1967
|
+
*/
|
|
1968
|
+
bs_source_qname: string;
|
|
1969
|
+
/**
|
|
1970
|
+
* Default Change Tag Qname
|
|
1971
|
+
*
|
|
1972
|
+
* 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.
|
|
1973
|
+
*/
|
|
1974
|
+
default_change_tag_qname?: string | null;
|
|
1975
|
+
/**
|
|
1976
|
+
* Attribution Filters
|
|
1977
|
+
*
|
|
1978
|
+
* Filter predicates routing LineItems to flow concepts.
|
|
1979
|
+
*/
|
|
1980
|
+
attribution_filters?: Array<AttributionFilter>;
|
|
1981
|
+
/**
|
|
1982
|
+
* Validation Mode
|
|
1983
|
+
*
|
|
1984
|
+
* 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.
|
|
1985
|
+
*/
|
|
1986
|
+
validation_mode?: 'strict' | 'residual_as_default' | 'warn_only';
|
|
1987
|
+
/**
|
|
1988
|
+
* Taxonomy Id
|
|
1989
|
+
*
|
|
1990
|
+
* Owning taxonomy id (auto-resolved from ``bs_source_qname`` when omitted).
|
|
1991
|
+
*/
|
|
1992
|
+
taxonomy_id?: string | null;
|
|
1993
|
+
};
|
|
1994
|
+
|
|
1900
1995
|
/**
|
|
1901
1996
|
* CreateScheduleRequest
|
|
1902
1997
|
*/
|
|
@@ -2723,6 +2818,8 @@ export type DeleteGraphOp = {
|
|
|
2723
2818
|
export type DeleteInformationBlockRequest = ({
|
|
2724
2819
|
block_type: 'schedule';
|
|
2725
2820
|
} & DeleteScheduleArm) | ({
|
|
2821
|
+
block_type: 'rollforward';
|
|
2822
|
+
} & DeleteRollforwardArm) | ({
|
|
2726
2823
|
block_type: 'balance_sheet' | 'cash_flow_statement' | 'comprehensive_income' | 'equity_statement' | 'income_statement' | 'metric';
|
|
2727
2824
|
} & DeleteLegacyArm);
|
|
2728
2825
|
|
|
@@ -2894,6 +2991,24 @@ export type DeleteResult = {
|
|
|
2894
2991
|
deleted: boolean;
|
|
2895
2992
|
};
|
|
2896
2993
|
|
|
2994
|
+
/**
|
|
2995
|
+
* DeleteRollforwardRequest
|
|
2996
|
+
*
|
|
2997
|
+
* Delete a rollforward block.
|
|
2998
|
+
*
|
|
2999
|
+
* Cascades through any synthetic facts produced by this block's filter
|
|
3000
|
+
* evaluations. The underlying ledger LineItems are not touched — only
|
|
3001
|
+
* the rollforward IB's projection of them.
|
|
3002
|
+
*/
|
|
3003
|
+
export type DeleteRollforwardRequest = {
|
|
3004
|
+
/**
|
|
3005
|
+
* Structure Id
|
|
3006
|
+
*
|
|
3007
|
+
* Structure ID of the rollforward block.
|
|
3008
|
+
*/
|
|
3009
|
+
structure_id: string;
|
|
3010
|
+
};
|
|
3011
|
+
|
|
2897
3012
|
/**
|
|
2898
3013
|
* DeleteScheduleRequest
|
|
2899
3014
|
*
|
|
@@ -3871,6 +3986,12 @@ export type EventBlockEnvelope = {
|
|
|
3871
3986
|
* REA event class — `economic` (drives GL postings) or `support` (audit-trail / value-chain primitive, no GL impact).
|
|
3872
3987
|
*/
|
|
3873
3988
|
event_class: string;
|
|
3989
|
+
/**
|
|
3990
|
+
* Event Action
|
|
3991
|
+
*
|
|
3992
|
+
* Canonical action verb refining `event_category`. Null when the source adapter or capture path didn't supply one.
|
|
3993
|
+
*/
|
|
3994
|
+
event_action?: 'produce' | 'raise' | 'consume' | 'lower' | 'use' | 'cite' | 'work' | 'deliverService' | 'pickup' | 'dropoff' | 'accept' | 'transferCustody' | 'transferAllRights' | 'transfer' | 'move' | 'modify' | 'combine' | 'separate' | 'copy' | null;
|
|
3874
3995
|
/**
|
|
3875
3996
|
* Agent Id
|
|
3876
3997
|
*
|
|
@@ -4017,6 +4138,70 @@ export type EventHandlerResponse = {
|
|
|
4017
4138
|
created_by?: string | null;
|
|
4018
4139
|
};
|
|
4019
4140
|
|
|
4141
|
+
/**
|
|
4142
|
+
* ExecuteEventBlockRequest
|
|
4143
|
+
*
|
|
4144
|
+
* Request to publish an event to the source-of-truth system.
|
|
4145
|
+
*
|
|
4146
|
+
* For events on a connection with `write_policy='qb_authoritative'`
|
|
4147
|
+
* (or `'hybrid'`), this triggers a synchronous write to QuickBooks
|
|
4148
|
+
* via the QB API. The returned `qb_txn_id` lands on
|
|
4149
|
+
* `event.metadata.qb_external_id` and the event transitions to
|
|
4150
|
+
* `committed` (in flight) → `fulfilled` (QB accepted) or `pending`
|
|
4151
|
+
* (QB rejected).
|
|
4152
|
+
*
|
|
4153
|
+
* `'native'`-policy events fast-path through with no QB write —
|
|
4154
|
+
* RoboSystems IS the source of truth, no outbound publish needed.
|
|
4155
|
+
*/
|
|
4156
|
+
export type ExecuteEventBlockRequest = {
|
|
4157
|
+
/**
|
|
4158
|
+
* Event Id
|
|
4159
|
+
*
|
|
4160
|
+
* 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.
|
|
4161
|
+
*/
|
|
4162
|
+
event_id: string;
|
|
4163
|
+
/**
|
|
4164
|
+
* Connection Id
|
|
4165
|
+
*
|
|
4166
|
+
* 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`.
|
|
4167
|
+
*/
|
|
4168
|
+
connection_id?: string | null;
|
|
4169
|
+
};
|
|
4170
|
+
|
|
4171
|
+
/**
|
|
4172
|
+
* ExecuteEventBlockResponse
|
|
4173
|
+
*
|
|
4174
|
+
* Outcome of an `execute-event-block` call.
|
|
4175
|
+
*/
|
|
4176
|
+
export type ExecuteEventBlockResponse = {
|
|
4177
|
+
/**
|
|
4178
|
+
* Event Id
|
|
4179
|
+
*
|
|
4180
|
+
* Echo of the event ID.
|
|
4181
|
+
*/
|
|
4182
|
+
event_id: string;
|
|
4183
|
+
/**
|
|
4184
|
+
* Status
|
|
4185
|
+
*
|
|
4186
|
+
* 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.
|
|
4187
|
+
*/
|
|
4188
|
+
status: string;
|
|
4189
|
+
/**
|
|
4190
|
+
* Qb External Id
|
|
4191
|
+
*
|
|
4192
|
+
* 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.
|
|
4193
|
+
*/
|
|
4194
|
+
qb_external_id?: string | null;
|
|
4195
|
+
/**
|
|
4196
|
+
* Qb Error
|
|
4197
|
+
*
|
|
4198
|
+
* QB rejection detail when status='pending'. Shape: `{code, message, qb_response_at}`. Operator retries after fixing CoA mapping / amount validation / closed-period.
|
|
4199
|
+
*/
|
|
4200
|
+
qb_error?: {
|
|
4201
|
+
[key: string]: unknown;
|
|
4202
|
+
} | null;
|
|
4203
|
+
};
|
|
4204
|
+
|
|
4020
4205
|
/**
|
|
4021
4206
|
* FactLite
|
|
4022
4207
|
*
|
|
@@ -5853,6 +6038,14 @@ export type JournalEntryLineItemInput = {
|
|
|
5853
6038
|
* Per-line memo (overrides the entry-level memo on this line).
|
|
5854
6039
|
*/
|
|
5855
6040
|
description?: string | null;
|
|
6041
|
+
/**
|
|
6042
|
+
* Metadata
|
|
6043
|
+
*
|
|
6044
|
+
* 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.
|
|
6045
|
+
*/
|
|
6046
|
+
metadata?: {
|
|
6047
|
+
[key: string]: unknown;
|
|
6048
|
+
} | null;
|
|
5856
6049
|
};
|
|
5857
6050
|
|
|
5858
6051
|
/**
|
|
@@ -6211,6 +6404,42 @@ export type LedgerEntityResponse = {
|
|
|
6211
6404
|
updated_at?: string | null;
|
|
6212
6405
|
};
|
|
6213
6406
|
|
|
6407
|
+
/**
|
|
6408
|
+
* LineItemMetadataPredicate
|
|
6409
|
+
*
|
|
6410
|
+
* Filter ledger LineItems whose ``metadata_[field]`` is in ``values``.
|
|
6411
|
+
*
|
|
6412
|
+
* The single predicate kind shipped in Phase 2 MVP. Sufficient for any
|
|
6413
|
+
* source taxonomy that stamps a flow-tag column on each transaction
|
|
6414
|
+
* line — mini's ``TransactionDescriptionCode``, future XBRL GL
|
|
6415
|
+
* ``GenericFlowCategory`` columns, custom tenant tags.
|
|
6416
|
+
*
|
|
6417
|
+
* ``field`` is the JSONB key under ``line_items.metadata`` (e.g.
|
|
6418
|
+
* ``"transaction_description_code"``). ``values`` is the set of values
|
|
6419
|
+
* that route to the filter's target concept; matched LineItems aggregate
|
|
6420
|
+
* signed into the attributed fact for the period.
|
|
6421
|
+
*/
|
|
6422
|
+
export type LineItemMetadataPredicate = {
|
|
6423
|
+
/**
|
|
6424
|
+
* Kind
|
|
6425
|
+
*
|
|
6426
|
+
* Discriminator value selecting this predicate shape.
|
|
6427
|
+
*/
|
|
6428
|
+
kind?: 'line_item_metadata_field';
|
|
6429
|
+
/**
|
|
6430
|
+
* Field
|
|
6431
|
+
*
|
|
6432
|
+
* 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.
|
|
6433
|
+
*/
|
|
6434
|
+
field: string;
|
|
6435
|
+
/**
|
|
6436
|
+
* Values
|
|
6437
|
+
*
|
|
6438
|
+
* 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.
|
|
6439
|
+
*/
|
|
6440
|
+
values: Array<string>;
|
|
6441
|
+
};
|
|
6442
|
+
|
|
6214
6443
|
/**
|
|
6215
6444
|
* LinkEntityTaxonomyRequest
|
|
6216
6445
|
*
|
|
@@ -7266,6 +7495,52 @@ export type OperationEnvelopeEventHandlerResponse = {
|
|
|
7266
7495
|
idempotentReplay?: boolean;
|
|
7267
7496
|
};
|
|
7268
7497
|
|
|
7498
|
+
/**
|
|
7499
|
+
* OperationEnvelope[ExecuteEventBlockResponse]
|
|
7500
|
+
*/
|
|
7501
|
+
export type OperationEnvelopeExecuteEventBlockResponse = {
|
|
7502
|
+
/**
|
|
7503
|
+
* Operation
|
|
7504
|
+
*
|
|
7505
|
+
* Kebab-case operation name
|
|
7506
|
+
*/
|
|
7507
|
+
operation: string;
|
|
7508
|
+
/**
|
|
7509
|
+
* Operationid
|
|
7510
|
+
*
|
|
7511
|
+
* op_-prefixed ULID for audit and SSE correlation
|
|
7512
|
+
*/
|
|
7513
|
+
operationId: string;
|
|
7514
|
+
/**
|
|
7515
|
+
* Status
|
|
7516
|
+
*
|
|
7517
|
+
* Operation lifecycle state
|
|
7518
|
+
*/
|
|
7519
|
+
status: 'completed' | 'pending' | 'failed';
|
|
7520
|
+
/**
|
|
7521
|
+
* Command-specific result payload
|
|
7522
|
+
*/
|
|
7523
|
+
result?: ExecuteEventBlockResponse | null;
|
|
7524
|
+
/**
|
|
7525
|
+
* At
|
|
7526
|
+
*
|
|
7527
|
+
* ISO-8601 UTC timestamp
|
|
7528
|
+
*/
|
|
7529
|
+
at: string;
|
|
7530
|
+
/**
|
|
7531
|
+
* Createdby
|
|
7532
|
+
*
|
|
7533
|
+
* User ID that initiated the operation (null for legacy callers)
|
|
7534
|
+
*/
|
|
7535
|
+
createdBy?: string | null;
|
|
7536
|
+
/**
|
|
7537
|
+
* Idempotentreplay
|
|
7538
|
+
*
|
|
7539
|
+
* True when this envelope came from the idempotency cache — the underlying command did not execute again. False on fresh executions.
|
|
7540
|
+
*/
|
|
7541
|
+
idempotentReplay?: boolean;
|
|
7542
|
+
};
|
|
7543
|
+
|
|
7269
7544
|
/**
|
|
7270
7545
|
* OperationEnvelope[FiscalCalendarResponse]
|
|
7271
7546
|
*/
|
|
@@ -9923,6 +10198,67 @@ export type RestoreBackupOp = {
|
|
|
9923
10198
|
verify_after_restore?: boolean;
|
|
9924
10199
|
};
|
|
9925
10200
|
|
|
10201
|
+
/**
|
|
10202
|
+
* RollforwardMechanics
|
|
10203
|
+
*
|
|
10204
|
+
* Filter-based attribution mechanics for ``block_type='rollforward'``.
|
|
10205
|
+
*
|
|
10206
|
+
* Implements Tier 2 of the rollforward attribution design
|
|
10207
|
+
* (``information-block.md`` §4.5). Each block decomposes one BS
|
|
10208
|
+
* source element's period delta into a list of flow concepts via
|
|
10209
|
+
* declared :class:`AttributionFilter` predicates. The renderer
|
|
10210
|
+
* evaluates the filters against ledger LineItems at envelope-build
|
|
10211
|
+
* time, emits one attributed fact per filter per period, and arbitrates
|
|
10212
|
+
* any residual against the default change tag (Tier 1 fallback).
|
|
10213
|
+
*
|
|
10214
|
+
* Reads directly from the typed ``structures.artifact_mechanics`` JSONB
|
|
10215
|
+
* column. ``attribution_filters`` rides as nested JSON; the predicate
|
|
10216
|
+
* union widens as new predicate shapes ship (Phase 2 MVP carries only
|
|
10217
|
+
* ``line_item_metadata_field``).
|
|
10218
|
+
*/
|
|
10219
|
+
export type RollforwardMechanics = {
|
|
10220
|
+
/**
|
|
10221
|
+
* Kind
|
|
10222
|
+
*/
|
|
10223
|
+
kind?: 'rollforward';
|
|
10224
|
+
/**
|
|
10225
|
+
* Bs Source Element Id
|
|
10226
|
+
*
|
|
10227
|
+
* Element id of the balance-sheet source whose period delta this block decomposes. Resolved from ``bs_source_qname`` at create time.
|
|
10228
|
+
*/
|
|
10229
|
+
bs_source_element_id: string;
|
|
10230
|
+
/**
|
|
10231
|
+
* Bs Source Qname
|
|
10232
|
+
*
|
|
10233
|
+
* QName of the BS source element (e.g. ``mini:CashAndCashEquivalents``). Round-tripped for caller convenience; ``bs_source_element_id`` is authoritative.
|
|
10234
|
+
*/
|
|
10235
|
+
bs_source_qname: string;
|
|
10236
|
+
/**
|
|
10237
|
+
* Default Change Tag Element Id
|
|
10238
|
+
*
|
|
10239
|
+
* 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``.
|
|
10240
|
+
*/
|
|
10241
|
+
default_change_tag_element_id?: string | null;
|
|
10242
|
+
/**
|
|
10243
|
+
* Default Change Tag Qname
|
|
10244
|
+
*
|
|
10245
|
+
* 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.
|
|
10246
|
+
*/
|
|
10247
|
+
default_change_tag_qname?: string | null;
|
|
10248
|
+
/**
|
|
10249
|
+
* Attribution Filters
|
|
10250
|
+
*
|
|
10251
|
+
* 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.
|
|
10252
|
+
*/
|
|
10253
|
+
attribution_filters?: Array<AttributionFilter>;
|
|
10254
|
+
/**
|
|
10255
|
+
* Validation Mode
|
|
10256
|
+
*
|
|
10257
|
+
* 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.
|
|
10258
|
+
*/
|
|
10259
|
+
validation_mode?: 'strict' | 'residual_as_default' | 'warn_only';
|
|
10260
|
+
};
|
|
10261
|
+
|
|
9926
10262
|
/**
|
|
9927
10263
|
* RuleLite
|
|
9928
10264
|
*
|
|
@@ -12424,6 +12760,12 @@ export type UpdateEventBlockRequest = {
|
|
|
12424
12760
|
metadata_patch?: {
|
|
12425
12761
|
[key: string]: unknown;
|
|
12426
12762
|
};
|
|
12763
|
+
/**
|
|
12764
|
+
* Event Action
|
|
12765
|
+
*
|
|
12766
|
+
* 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.
|
|
12767
|
+
*/
|
|
12768
|
+
event_action?: 'produce' | 'raise' | 'consume' | 'lower' | 'use' | 'cite' | 'work' | 'deliverService' | 'pickup' | 'dropoff' | 'accept' | 'transferCustody' | 'transferAllRights' | 'transfer' | 'move' | 'modify' | 'combine' | 'separate' | 'copy' | null;
|
|
12427
12769
|
/**
|
|
12428
12770
|
* Obligated By Event Id
|
|
12429
12771
|
*
|
|
@@ -12532,6 +12874,8 @@ export type UpdateEventHandlerRequest = {
|
|
|
12532
12874
|
export type UpdateInformationBlockRequest = ({
|
|
12533
12875
|
block_type: 'schedule';
|
|
12534
12876
|
} & UpdateScheduleArm) | ({
|
|
12877
|
+
block_type: 'rollforward';
|
|
12878
|
+
} & UpdateRollforwardArm) | ({
|
|
12535
12879
|
block_type: 'balance_sheet' | 'cash_flow_statement' | 'comprehensive_income' | 'equity_statement' | 'income_statement' | 'metric';
|
|
12536
12880
|
} & UpdateLegacyArm);
|
|
12537
12881
|
|
|
@@ -12679,6 +13023,52 @@ export type UpdatePublishListOperation = {
|
|
|
12679
13023
|
list_id: string;
|
|
12680
13024
|
};
|
|
12681
13025
|
|
|
13026
|
+
/**
|
|
13027
|
+
* UpdateRollforwardRequest
|
|
13028
|
+
*
|
|
13029
|
+
* Update mutable fields on a rollforward block.
|
|
13030
|
+
*
|
|
13031
|
+
* Editable: name, default_change_tag_qname, attribution_filters,
|
|
13032
|
+
* validation_mode. The BS source is fixed once the block is created
|
|
13033
|
+
* (changing it would invalidate every previously rendered period); to
|
|
13034
|
+
* change BS source, delete and re-create.
|
|
13035
|
+
*
|
|
13036
|
+
* **Partial-update semantics**: omitted (``None``) fields mean "leave
|
|
13037
|
+
* unchanged" — there is no wire-level way to *clear* a previously set
|
|
13038
|
+
* default change tag or empty the attribution_filters list via this
|
|
13039
|
+
* endpoint. To remove the default tag entirely, delete and re-create
|
|
13040
|
+
* the rollforward block. The asymmetry is deliberate: an explicit
|
|
13041
|
+
* clear-sentinel adds wire-shape complexity for a use case that rarely
|
|
13042
|
+
* arises in practice (default tags are typically set during initial
|
|
13043
|
+
* authoring and only swapped, not removed).
|
|
13044
|
+
*/
|
|
13045
|
+
export type UpdateRollforwardRequest = {
|
|
13046
|
+
/**
|
|
13047
|
+
* Structure Id
|
|
13048
|
+
*
|
|
13049
|
+
* Structure ID of the rollforward block.
|
|
13050
|
+
*/
|
|
13051
|
+
structure_id: string;
|
|
13052
|
+
/**
|
|
13053
|
+
* Name
|
|
13054
|
+
*/
|
|
13055
|
+
name?: string | null;
|
|
13056
|
+
/**
|
|
13057
|
+
* Default Change Tag Qname
|
|
13058
|
+
*
|
|
13059
|
+
* 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.
|
|
13060
|
+
*/
|
|
13061
|
+
default_change_tag_qname?: string | null;
|
|
13062
|
+
/**
|
|
13063
|
+
* Attribution Filters
|
|
13064
|
+
*/
|
|
13065
|
+
attribution_filters?: Array<AttributionFilter> | null;
|
|
13066
|
+
/**
|
|
13067
|
+
* Validation Mode
|
|
13068
|
+
*/
|
|
13069
|
+
validation_mode?: 'strict' | 'residual_as_default' | 'warn_only' | null;
|
|
13070
|
+
};
|
|
13071
|
+
|
|
12682
13072
|
/**
|
|
12683
13073
|
* UpdateScheduleRequest
|
|
12684
13074
|
*
|
|
@@ -13200,6 +13590,28 @@ export type CreateLegacyArm = {
|
|
|
13200
13590
|
};
|
|
13201
13591
|
};
|
|
13202
13592
|
|
|
13593
|
+
/**
|
|
13594
|
+
* _CreateRollforwardArm
|
|
13595
|
+
*
|
|
13596
|
+
* Create-information-block body for ``block_type="rollforward"``.
|
|
13597
|
+
*
|
|
13598
|
+
* Carries a typed rollforward payload. The block decomposes the period
|
|
13599
|
+
* change in a BS source element across the declared attribution
|
|
13600
|
+
* filters.
|
|
13601
|
+
*/
|
|
13602
|
+
export type CreateRollforwardArm = {
|
|
13603
|
+
/**
|
|
13604
|
+
* Block Type
|
|
13605
|
+
*
|
|
13606
|
+
* Discriminator value selecting this arm.
|
|
13607
|
+
*/
|
|
13608
|
+
block_type: 'rollforward';
|
|
13609
|
+
/**
|
|
13610
|
+
* Rollforward creation payload.
|
|
13611
|
+
*/
|
|
13612
|
+
payload: CreateRollforwardRequest;
|
|
13613
|
+
};
|
|
13614
|
+
|
|
13203
13615
|
/**
|
|
13204
13616
|
* _CreateScheduleArm
|
|
13205
13617
|
*
|
|
@@ -13248,6 +13660,27 @@ export type DeleteLegacyArm = {
|
|
|
13248
13660
|
};
|
|
13249
13661
|
};
|
|
13250
13662
|
|
|
13663
|
+
/**
|
|
13664
|
+
* _DeleteRollforwardArm
|
|
13665
|
+
*
|
|
13666
|
+
* Delete-information-block body for ``block_type="rollforward"``.
|
|
13667
|
+
*
|
|
13668
|
+
* Cascades through any synthetic facts produced by this block's filter
|
|
13669
|
+
* evaluations. The underlying ledger LineItems are not touched.
|
|
13670
|
+
*/
|
|
13671
|
+
export type DeleteRollforwardArm = {
|
|
13672
|
+
/**
|
|
13673
|
+
* Block Type
|
|
13674
|
+
*
|
|
13675
|
+
* Discriminator value selecting this arm.
|
|
13676
|
+
*/
|
|
13677
|
+
block_type: 'rollforward';
|
|
13678
|
+
/**
|
|
13679
|
+
* Rollforward delete payload.
|
|
13680
|
+
*/
|
|
13681
|
+
payload: DeleteRollforwardRequest;
|
|
13682
|
+
};
|
|
13683
|
+
|
|
13251
13684
|
/**
|
|
13252
13685
|
* _DeleteScheduleArm
|
|
13253
13686
|
*
|
|
@@ -13295,6 +13728,27 @@ export type UpdateLegacyArm = {
|
|
|
13295
13728
|
};
|
|
13296
13729
|
};
|
|
13297
13730
|
|
|
13731
|
+
/**
|
|
13732
|
+
* _UpdateRollforwardArm
|
|
13733
|
+
*
|
|
13734
|
+
* Update-information-block body for ``block_type="rollforward"``.
|
|
13735
|
+
*
|
|
13736
|
+
* Carries a typed rollforward update payload. Mutable fields: name,
|
|
13737
|
+
* default_change_tag_qname, attribution_filters, validation_mode.
|
|
13738
|
+
*/
|
|
13739
|
+
export type UpdateRollforwardArm = {
|
|
13740
|
+
/**
|
|
13741
|
+
* Block Type
|
|
13742
|
+
*
|
|
13743
|
+
* Discriminator value selecting this arm.
|
|
13744
|
+
*/
|
|
13745
|
+
block_type: 'rollforward';
|
|
13746
|
+
/**
|
|
13747
|
+
* Rollforward update payload.
|
|
13748
|
+
*/
|
|
13749
|
+
payload: UpdateRollforwardRequest;
|
|
13750
|
+
};
|
|
13751
|
+
|
|
13298
13752
|
/**
|
|
13299
13753
|
* _UpdateScheduleArm
|
|
13300
13754
|
*
|
|
@@ -20662,6 +21116,70 @@ export type OpUpdateEventBlockResponses = {
|
|
|
20662
21116
|
|
|
20663
21117
|
export type OpUpdateEventBlockResponse = OpUpdateEventBlockResponses[keyof OpUpdateEventBlockResponses];
|
|
20664
21118
|
|
|
21119
|
+
export type OpExecuteEventBlockData = {
|
|
21120
|
+
body: ExecuteEventBlockRequest;
|
|
21121
|
+
headers?: {
|
|
21122
|
+
/**
|
|
21123
|
+
* Idempotency-Key
|
|
21124
|
+
*/
|
|
21125
|
+
'Idempotency-Key'?: string | null;
|
|
21126
|
+
};
|
|
21127
|
+
path: {
|
|
21128
|
+
/**
|
|
21129
|
+
* Graph Id
|
|
21130
|
+
*/
|
|
21131
|
+
graph_id: string;
|
|
21132
|
+
};
|
|
21133
|
+
query?: never;
|
|
21134
|
+
url: '/extensions/roboledger/{graph_id}/operations/execute-event-block';
|
|
21135
|
+
};
|
|
21136
|
+
|
|
21137
|
+
export type OpExecuteEventBlockErrors = {
|
|
21138
|
+
/**
|
|
21139
|
+
* Invalid request
|
|
21140
|
+
*/
|
|
21141
|
+
400: ErrorResponse;
|
|
21142
|
+
/**
|
|
21143
|
+
* Authentication required
|
|
21144
|
+
*/
|
|
21145
|
+
401: ErrorResponse;
|
|
21146
|
+
/**
|
|
21147
|
+
* Access denied
|
|
21148
|
+
*/
|
|
21149
|
+
403: ErrorResponse;
|
|
21150
|
+
/**
|
|
21151
|
+
* Resource not found
|
|
21152
|
+
*/
|
|
21153
|
+
404: ErrorResponse;
|
|
21154
|
+
/**
|
|
21155
|
+
* Idempotency-Key conflict — key reused with different body
|
|
21156
|
+
*/
|
|
21157
|
+
409: ErrorResponse;
|
|
21158
|
+
/**
|
|
21159
|
+
* Validation error
|
|
21160
|
+
*/
|
|
21161
|
+
422: ErrorResponse;
|
|
21162
|
+
/**
|
|
21163
|
+
* Rate limit exceeded
|
|
21164
|
+
*/
|
|
21165
|
+
429: ErrorResponse;
|
|
21166
|
+
/**
|
|
21167
|
+
* Internal server error
|
|
21168
|
+
*/
|
|
21169
|
+
500: ErrorResponse;
|
|
21170
|
+
};
|
|
21171
|
+
|
|
21172
|
+
export type OpExecuteEventBlockError = OpExecuteEventBlockErrors[keyof OpExecuteEventBlockErrors];
|
|
21173
|
+
|
|
21174
|
+
export type OpExecuteEventBlockResponses = {
|
|
21175
|
+
/**
|
|
21176
|
+
* Successful Response
|
|
21177
|
+
*/
|
|
21178
|
+
200: OperationEnvelopeExecuteEventBlockResponse;
|
|
21179
|
+
};
|
|
21180
|
+
|
|
21181
|
+
export type OpExecuteEventBlockResponse = OpExecuteEventBlockResponses[keyof OpExecuteEventBlockResponses];
|
|
21182
|
+
|
|
20665
21183
|
export type OpCreateEventHandlerData = {
|
|
20666
21184
|
body: CreateEventHandlerRequest;
|
|
20667
21185
|
headers?: {
|