@robosystems/client 0.3.39 → 0.3.41

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/types.gen.d.ts CHANGED
@@ -738,7 +738,7 @@ export type CancelSubscriptionRequest = {
738
738
  /**
739
739
  * ChangeReportingStyleOp
740
740
  *
741
- * Body for the change-reporting-style operation (Phase 2 of §3.2).
741
+ * Body for the change-reporting-style operation.
742
742
  *
743
743
  * Switches the graph to a different Reporting Style. The target Style
744
744
  * must be a library- or customer-authored Structure with
@@ -949,7 +949,7 @@ export type ClosePeriodResponse = {
949
949
  /**
950
950
  * Rule Summary
951
951
  *
952
- * Aggregated rule-eval outcome across every schedule Structure with facts in the closed period — keys: pass/fail/error/skipped. None when no schedules had facts in the period (§3.8 auto-run on close).
952
+ * Aggregated rule-eval outcome across every schedule Structure with facts in the closed period — keys: pass/fail/error/skipped. None when no schedules had facts in the period (auto-run on close).
953
953
  */
954
954
  rule_summary?: {
955
955
  [key: string]: number;
@@ -1964,7 +1964,7 @@ export type CreateScheduleRequest = {
1964
1964
  /**
1965
1965
  * Element Ids
1966
1966
  *
1967
- * Element IDs to include
1967
+ * CoA element ids the schedule touches (the `id` from get-unmapped-elements, not taxonomy qnames) — typically the same debit + credit ids used in entry_template.
1968
1968
  */
1969
1969
  element_ids: Array<string>;
1970
1970
  /**
@@ -1990,7 +1990,7 @@ export type CreateScheduleRequest = {
1990
1990
  /**
1991
1991
  * Closed Through
1992
1992
  *
1993
- * If provided, facts with period_end ≤ this date are flagged as 'historical' (already reflected in opening balances, ignored by the close workflow). Used during initial ledger setup to create schedules whose early facts have already been captured elsewhere.
1993
+ * Watermark for onboarding. Facts with period_end ≤ this date are flagged 'historical' and their schedule_entry_due obligations are emitted 'voided', so the close workflow starts drafting at the first open period. Set this to the last day of the fiscal calendar's closed_through month (calendar '2026-05' → '2026-05-31') whether those months were actually closed in RoboLedger or just baseline-watermarked at initialization. Omitting it (when prior periods exist) leaves pre-watermark periods as 'pending' obligations that block the first close.
1994
1994
  */
1995
1995
  closed_through?: string | null;
1996
1996
  /**
@@ -3657,13 +3657,13 @@ export type EntryTemplateRequest = {
3657
3657
  /**
3658
3658
  * Debit Element Id
3659
3659
  *
3660
- * Element to debit (e.g., Depreciation Expense)
3660
+ * CoA element id to debit (e.g. Depreciation Expense). This is a chart-of-accounts element id — the `id` returned by get-unmapped-elements / get-graph-schema — NOT a taxonomy qname.
3661
3661
  */
3662
3662
  debit_element_id: string;
3663
3663
  /**
3664
3664
  * Credit Element Id
3665
3665
  *
3666
- * Element to credit (e.g., Accumulated Depreciation)
3666
+ * CoA element id to credit (e.g. Accumulated Depreciation). A chart-of-accounts element id (see get-unmapped-elements), not a taxonomy qname. One template = one debit/credit pair; model a multi-account entry as several schedules.
3667
3667
  */
3668
3668
  credit_element_id: string;
3669
3669
  /**
@@ -6388,7 +6388,7 @@ export type ListSubgraphsResponse = {
6388
6388
  /**
6389
6389
  * Subgraphs Enabled
6390
6390
  *
6391
- * Whether subgraphs are enabled for this tier (requires LadybugDB Large/XLarge)
6391
+ * Whether subgraphs are enabled for this tier (requires Large/XLarge tier)
6392
6392
  */
6393
6393
  subgraphs_enabled: boolean;
6394
6394
  /**
@@ -7891,6 +7891,51 @@ export type OperationEnvelopeReportResponse = {
7891
7891
  */
7892
7892
  idempotentReplay?: boolean;
7893
7893
  };
7894
+ /**
7895
+ * OperationEnvelope[ScheduleCreatedResponse]
7896
+ */
7897
+ export type OperationEnvelopeScheduleCreatedResponse = {
7898
+ /**
7899
+ * Operation
7900
+ *
7901
+ * Kebab-case operation name
7902
+ */
7903
+ operation: string;
7904
+ /**
7905
+ * Operationid
7906
+ *
7907
+ * op_-prefixed ULID for audit and SSE correlation
7908
+ */
7909
+ operationId: string;
7910
+ /**
7911
+ * Status
7912
+ *
7913
+ * Operation lifecycle state
7914
+ */
7915
+ status: 'completed' | 'pending' | 'failed';
7916
+ /**
7917
+ * Command-specific result payload
7918
+ */
7919
+ result?: ScheduleCreatedResponse | null;
7920
+ /**
7921
+ * At
7922
+ *
7923
+ * ISO-8601 UTC timestamp
7924
+ */
7925
+ at: string;
7926
+ /**
7927
+ * Createdby
7928
+ *
7929
+ * User ID that initiated the operation (null for legacy callers)
7930
+ */
7931
+ createdBy?: string | null;
7932
+ /**
7933
+ * Idempotentreplay
7934
+ *
7935
+ * True when this envelope came from the idempotency cache — the underlying command did not execute again. False on fresh executions.
7936
+ */
7937
+ idempotentReplay?: boolean;
7938
+ };
7894
7939
  /**
7895
7940
  * OperationEnvelope[SecurityResponse]
7896
7941
  */
@@ -9584,6 +9629,31 @@ export type RateLimits = {
9584
9629
  */
9585
9630
  burst_capacity: number;
9586
9631
  };
9632
+ /**
9633
+ * RebuildScheduleRequest
9634
+ *
9635
+ * Re-run the schedule generator in place on an existing schedule.
9636
+ *
9637
+ * Atomic alternative to delete-then-recreate: the structure id and its
9638
+ * element associations are preserved, the old pending obligation chain
9639
+ * is voided, the old facts + rules are deleted, and a fresh set of
9640
+ * forward facts + a fresh obligation chain are regenerated from the
9641
+ * schedule's stored definition (entry_template / schedule_metadata /
9642
+ * monthly_amount / period bounds on the Structure's metadata).
9643
+ *
9644
+ * The historical-vs-in-scope split is re-derived from the CURRENT fiscal
9645
+ * calendar `closed_through`, so a rebuild re-scopes the schedule to
9646
+ * today's close state. Use this to pick up a fixed generator (e.g. the
9647
+ * roll-forward direction fix) without orphaning obligations.
9648
+ */
9649
+ export type RebuildScheduleRequest = {
9650
+ /**
9651
+ * Structure Id
9652
+ *
9653
+ * The schedule structure to regenerate in place.
9654
+ */
9655
+ structure_id: string;
9656
+ };
9587
9657
  /**
9588
9658
  * RegenerateReportOperation
9589
9659
  *
@@ -10093,18 +10163,17 @@ export type RestoreBackupOp = {
10093
10163
  *
10094
10164
  * Filter-based attribution mechanics for ``block_type='rollforward'``.
10095
10165
  *
10096
- * Implements Tier 2 of the rollforward attribution design
10097
- * (``information-block.md`` §4.5). Each block decomposes one BS
10098
- * source element's period delta into a list of flow concepts via
10099
- * declared :class:`AttributionFilter` predicates. The renderer
10100
- * evaluates the filters against ledger LineItems at envelope-build
10101
- * time, emits one attributed fact per filter per period, and arbitrates
10102
- * any residual against the default change tag (Tier 1 fallback).
10166
+ * Filter-based attribution: each block decomposes one BS source
10167
+ * element's period delta into a list of flow concepts via declared
10168
+ * :class:`AttributionFilter` predicates. The renderer evaluates the
10169
+ * filters against ledger LineItems at envelope-build time, emits one
10170
+ * attributed fact per filter per period, and arbitrates any residual
10171
+ * against the default change tag fallback.
10103
10172
  *
10104
10173
  * Reads directly from the typed ``structures.artifact_mechanics`` JSONB
10105
10174
  * column. ``attribution_filters`` rides as nested JSON; the predicate
10106
- * union widens as new predicate shapes ship (Phase 2 MVP carries only
10107
- * ``line_item_metadata_field``).
10175
+ * union widens as new predicate shapes are added currently only
10176
+ * ``line_item_metadata_field`` is carried.
10108
10177
  */
10109
10178
  export type RollforwardMechanics = {
10110
10179
  /**
@@ -10126,13 +10195,13 @@ export type RollforwardMechanics = {
10126
10195
  /**
10127
10196
  * Default Change Tag Element Id
10128
10197
  *
10129
- * 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``.
10198
+ * Element id of the 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``.
10130
10199
  */
10131
10200
  default_change_tag_element_id?: string | null;
10132
10201
  /**
10133
10202
  * Default Change Tag Qname
10134
10203
  *
10135
- * 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.
10204
+ * QName of the 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.
10136
10205
  */
10137
10206
  default_change_tag_qname?: string | null;
10138
10207
  /**
@@ -10353,6 +10422,45 @@ export type SsoTokenResponse = {
10353
10422
  */
10354
10423
  apps: Array<string>;
10355
10424
  };
10425
+ /**
10426
+ * ScheduleCreatedResponse
10427
+ */
10428
+ export type ScheduleCreatedResponse = {
10429
+ /**
10430
+ * Structure Id
10431
+ */
10432
+ structure_id: string;
10433
+ /**
10434
+ * Name
10435
+ */
10436
+ name: string;
10437
+ /**
10438
+ * Taxonomy Id
10439
+ */
10440
+ taxonomy_id: string;
10441
+ /**
10442
+ * Total Periods
10443
+ */
10444
+ total_periods: number;
10445
+ /**
10446
+ * Total Facts
10447
+ */
10448
+ total_facts: number;
10449
+ /**
10450
+ * Rule Summary
10451
+ */
10452
+ rule_summary?: {
10453
+ [key: string]: number;
10454
+ } | null;
10455
+ /**
10456
+ * Schedule Created Event Id
10457
+ */
10458
+ schedule_created_event_id?: string | null;
10459
+ /**
10460
+ * Pending Event Count
10461
+ */
10462
+ pending_event_count?: number;
10463
+ };
10356
10464
  /**
10357
10465
  * ScheduleMechanics
10358
10466
  *
@@ -11933,8 +12041,7 @@ export type TaxonomyBlockEnvelope = {
11933
12041
  *
11934
12042
  * Exactly one of ``rule_pattern`` (arithmetic) or ``rule_check_kind``
11935
12043
  * (model-structure) is non-null per row, enforced by the
11936
- * ``check_rule_pattern_kind_xor`` DB constraint. See
11937
- * information-block.md §5.2.2.
12044
+ * ``check_rule_pattern_kind_xor`` DB constraint.
11938
12045
  */
11939
12046
  export type TaxonomyBlockRule = {
11940
12047
  /**
@@ -11997,8 +12104,7 @@ export type TaxonomyBlockRule = {
11997
12104
  * ``LeafHasClassification``, ``LibraryOriginImmutability``,
11998
12105
  * ``UniqueQNameInTaxonomy``) are system-managed — they're auto-emitted
11999
12106
  * by :func:`emit_auto_rules` at taxonomy-block creation time and
12000
- * populate ``rules.rule_check_kind`` instead of ``rule_pattern``. See
12001
- * information-block.md §5.2.2 for the axis split.
12107
+ * populate ``rules.rule_check_kind`` instead of ``rule_pattern``.
12002
12108
  */
12003
12109
  export type TaxonomyBlockRuleRequest = {
12004
12110
  /**
@@ -12918,7 +13024,7 @@ export type UpdateRollforwardRequest = {
12918
13024
  * NOT editable via this op: period_start, period_end, monthly_amount.
12919
13025
  * Those require fact regeneration — fire an event block that terminates
12920
13026
  * the schedule (e.g., `asset_disposed`) and create a fresh schedule via
12921
- * `create-schedule`.
13027
+ * `create-information-block` (`block_type='schedule'`).
12922
13028
  *
12923
13029
  * Omitted fields are left unchanged.
12924
13030
  */
@@ -13228,8 +13334,8 @@ export type ValidationLite = {
13228
13334
  * Pass/fail/skip counts for one ``rule_category`` within a block's
13229
13335
  * verification results.
13230
13336
  *
13231
- * Drives the per-category accordions in the Verification Results panel
13232
- * (financial-viewer §7.12). ``category`` is the rule's ``rule_category``
13337
+ * Drives the per-category accordions in the Verification Results panel.
13338
+ * ``category`` is the rule's ``rule_category``
13233
13339
  * (one of the cm:VerificationRule subclasses), resolved by joining each
13234
13340
  * result to its Rule.
13235
13341
  */
@@ -13315,7 +13421,7 @@ export type VerificationResultLite = {
13315
13421
  * Server-computed aggregate of a block's ``verification_results``.
13316
13422
  *
13317
13423
  * Overall counts plus a per-``rule_category`` breakdown, so the viewer
13318
- * renders the grouped Verification Results panel (financial-viewer §7.12)
13424
+ * renders the grouped Verification Results panel
13319
13425
  * without a client-side results→rules join. Status closure is
13320
13426
  * ``pass | fail | error | skipped`` (the ``public.verification_results``
13321
13427
  * CHECK); ``total`` is their sum.
@@ -20827,6 +20933,65 @@ export type OpPromoteObligationsResponses = {
20827
20933
  200: OperationEnvelopePromoteObligationsResponse;
20828
20934
  };
20829
20935
  export type OpPromoteObligationsResponse = OpPromoteObligationsResponses[keyof OpPromoteObligationsResponses];
20936
+ export type OpRebuildScheduleData = {
20937
+ body: RebuildScheduleRequest;
20938
+ headers?: {
20939
+ /**
20940
+ * Idempotency-Key
20941
+ */
20942
+ 'Idempotency-Key'?: string | null;
20943
+ };
20944
+ path: {
20945
+ /**
20946
+ * Graph Id
20947
+ */
20948
+ graph_id: string;
20949
+ };
20950
+ query?: never;
20951
+ url: '/extensions/roboledger/{graph_id}/operations/rebuild-schedule';
20952
+ };
20953
+ export type OpRebuildScheduleErrors = {
20954
+ /**
20955
+ * Invalid request
20956
+ */
20957
+ 400: ErrorResponse;
20958
+ /**
20959
+ * Authentication required
20960
+ */
20961
+ 401: ErrorResponse;
20962
+ /**
20963
+ * Access denied
20964
+ */
20965
+ 403: ErrorResponse;
20966
+ /**
20967
+ * Resource not found
20968
+ */
20969
+ 404: ErrorResponse;
20970
+ /**
20971
+ * Idempotency-Key conflict — key reused with different body
20972
+ */
20973
+ 409: ErrorResponse;
20974
+ /**
20975
+ * Validation error
20976
+ */
20977
+ 422: ErrorResponse;
20978
+ /**
20979
+ * Rate limit exceeded
20980
+ */
20981
+ 429: ErrorResponse;
20982
+ /**
20983
+ * Internal server error
20984
+ */
20985
+ 500: ErrorResponse;
20986
+ };
20987
+ export type OpRebuildScheduleError = OpRebuildScheduleErrors[keyof OpRebuildScheduleErrors];
20988
+ export type OpRebuildScheduleResponses = {
20989
+ /**
20990
+ * Successful Response
20991
+ */
20992
+ 200: OperationEnvelopeScheduleCreatedResponse;
20993
+ };
20994
+ export type OpRebuildScheduleResponse = OpRebuildScheduleResponses[keyof OpRebuildScheduleResponses];
20830
20995
  export type OpSetCloseTargetData = {
20831
20996
  body: SetCloseTargetOperation;
20832
20997
  headers?: {
@@ -21712,90 +21877,6 @@ export type OpLiveFinancialStatementResponses = {
21712
21877
  200: OperationEnvelope;
21713
21878
  };
21714
21879
  export type OpLiveFinancialStatementResponse = OpLiveFinancialStatementResponses[keyof OpLiveFinancialStatementResponses];
21715
- export type GetReportBundleDownloadUrlData = {
21716
- body?: never;
21717
- path: {
21718
- /**
21719
- * Graph Id
21720
- */
21721
- graph_id: string;
21722
- /**
21723
- * Report Id
21724
- *
21725
- * Report identifier (rpt_-prefixed ULID).
21726
- */
21727
- report_id: string;
21728
- };
21729
- query?: {
21730
- /**
21731
- * Format
21732
- *
21733
- * Serialization flavor. ``jsonld`` returns a presigned URL to the stored JSON-LD bundle; ``xbrl-2.1`` streams a freshly-emitted XBRL zip directly. Other RDF / XBRL flavors slot in as their producers ship.
21734
- */
21735
- format?: string;
21736
- /**
21737
- * Expires In
21738
- *
21739
- * Presigned URL lifetime in seconds (min 60, max 3600). Ignored for XBRL flavors (streamed directly, no URL).
21740
- */
21741
- expires_in?: number;
21742
- };
21743
- url: '/extensions/roboledger/{graph_id}/reports/{report_id}/download';
21744
- };
21745
- export type GetReportBundleDownloadUrlErrors = {
21746
- /**
21747
- * Validation Error
21748
- */
21749
- 422: HttpValidationError;
21750
- };
21751
- export type GetReportBundleDownloadUrlError = GetReportBundleDownloadUrlErrors[keyof GetReportBundleDownloadUrlErrors];
21752
- export type GetReportBundleDownloadUrlResponses = {
21753
- /**
21754
- * ReportBundleDownloadResponse
21755
- *
21756
- * Presigned-URL response for a Report bundle download.
21757
- *
21758
- * Mirrors :class:`BackupDownloadUrlResponse` in shape — the frontend
21759
- * treats both the same way (fetch, follow URL, GET the artifact).
21760
- *
21761
- * Only returned for RDF-family flavors (JSON-LD) where the artifact
21762
- * is stored in S3. XBRL flavors stream the binary content directly
21763
- * in the response body (no JSON wrapper).
21764
- */
21765
- 200: {
21766
- /**
21767
- * Download Url
21768
- *
21769
- * Presigned URL that streams the bundle directly from S3.
21770
- */
21771
- download_url: string;
21772
- /**
21773
- * Expires At
21774
- *
21775
- * UTC timestamp at which the presigned URL stops working.
21776
- */
21777
- expires_at: string;
21778
- /**
21779
- * Content Type
21780
- *
21781
- * MIME type of the artifact behind the URL.
21782
- */
21783
- content_type: string;
21784
- /**
21785
- * Format
21786
- *
21787
- * Serialization flavor delivered by this URL — matches the ``format`` query parameter.
21788
- */
21789
- format: string;
21790
- /**
21791
- * Generation Count
21792
- *
21793
- * Bundle generation number stamped on the Report.
21794
- */
21795
- generation_count: number;
21796
- };
21797
- };
21798
- export type GetReportBundleDownloadUrlResponse = GetReportBundleDownloadUrlResponses[keyof GetReportBundleDownloadUrlResponses];
21799
21880
  export type OpBuildFactGridData = {
21800
21881
  body: CreateViewRequest;
21801
21882
  headers?: {