@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.ts CHANGED
@@ -763,7 +763,7 @@ export type CancelSubscriptionRequest = {
763
763
  /**
764
764
  * ChangeReportingStyleOp
765
765
  *
766
- * Body for the change-reporting-style operation (Phase 2 of §3.2).
766
+ * Body for the change-reporting-style operation.
767
767
  *
768
768
  * Switches the graph to a different Reporting Style. The target Style
769
769
  * must be a library- or customer-authored Structure with
@@ -980,7 +980,7 @@ export type ClosePeriodResponse = {
980
980
  /**
981
981
  * Rule Summary
982
982
  *
983
- * 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).
983
+ * 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).
984
984
  */
985
985
  rule_summary?: {
986
986
  [key: string]: number;
@@ -2017,7 +2017,7 @@ export type CreateScheduleRequest = {
2017
2017
  /**
2018
2018
  * Element Ids
2019
2019
  *
2020
- * Element IDs to include
2020
+ * 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.
2021
2021
  */
2022
2022
  element_ids: Array<string>;
2023
2023
  /**
@@ -2043,7 +2043,7 @@ export type CreateScheduleRequest = {
2043
2043
  /**
2044
2044
  * Closed Through
2045
2045
  *
2046
- * 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.
2046
+ * 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.
2047
2047
  */
2048
2048
  closed_through?: string | null;
2049
2049
  /**
@@ -3756,13 +3756,13 @@ export type EntryTemplateRequest = {
3756
3756
  /**
3757
3757
  * Debit Element Id
3758
3758
  *
3759
- * Element to debit (e.g., Depreciation Expense)
3759
+ * 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.
3760
3760
  */
3761
3761
  debit_element_id: string;
3762
3762
  /**
3763
3763
  * Credit Element Id
3764
3764
  *
3765
- * Element to credit (e.g., Accumulated Depreciation)
3765
+ * 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.
3766
3766
  */
3767
3767
  credit_element_id: string;
3768
3768
  /**
@@ -6541,7 +6541,7 @@ export type ListSubgraphsResponse = {
6541
6541
  /**
6542
6542
  * Subgraphs Enabled
6543
6543
  *
6544
- * Whether subgraphs are enabled for this tier (requires LadybugDB Large/XLarge)
6544
+ * Whether subgraphs are enabled for this tier (requires Large/XLarge tier)
6545
6545
  */
6546
6546
  subgraphs_enabled: boolean;
6547
6547
  /**
@@ -8080,6 +8080,52 @@ export type OperationEnvelopeReportResponse = {
8080
8080
  idempotentReplay?: boolean;
8081
8081
  };
8082
8082
 
8083
+ /**
8084
+ * OperationEnvelope[ScheduleCreatedResponse]
8085
+ */
8086
+ export type OperationEnvelopeScheduleCreatedResponse = {
8087
+ /**
8088
+ * Operation
8089
+ *
8090
+ * Kebab-case operation name
8091
+ */
8092
+ operation: string;
8093
+ /**
8094
+ * Operationid
8095
+ *
8096
+ * op_-prefixed ULID for audit and SSE correlation
8097
+ */
8098
+ operationId: string;
8099
+ /**
8100
+ * Status
8101
+ *
8102
+ * Operation lifecycle state
8103
+ */
8104
+ status: 'completed' | 'pending' | 'failed';
8105
+ /**
8106
+ * Command-specific result payload
8107
+ */
8108
+ result?: ScheduleCreatedResponse | null;
8109
+ /**
8110
+ * At
8111
+ *
8112
+ * ISO-8601 UTC timestamp
8113
+ */
8114
+ at: string;
8115
+ /**
8116
+ * Createdby
8117
+ *
8118
+ * User ID that initiated the operation (null for legacy callers)
8119
+ */
8120
+ createdBy?: string | null;
8121
+ /**
8122
+ * Idempotentreplay
8123
+ *
8124
+ * True when this envelope came from the idempotency cache — the underlying command did not execute again. False on fresh executions.
8125
+ */
8126
+ idempotentReplay?: boolean;
8127
+ };
8128
+
8083
8129
  /**
8084
8130
  * OperationEnvelope[SecurityResponse]
8085
8131
  */
@@ -9820,6 +9866,32 @@ export type RateLimits = {
9820
9866
  burst_capacity: number;
9821
9867
  };
9822
9868
 
9869
+ /**
9870
+ * RebuildScheduleRequest
9871
+ *
9872
+ * Re-run the schedule generator in place on an existing schedule.
9873
+ *
9874
+ * Atomic alternative to delete-then-recreate: the structure id and its
9875
+ * element associations are preserved, the old pending obligation chain
9876
+ * is voided, the old facts + rules are deleted, and a fresh set of
9877
+ * forward facts + a fresh obligation chain are regenerated from the
9878
+ * schedule's stored definition (entry_template / schedule_metadata /
9879
+ * monthly_amount / period bounds on the Structure's metadata).
9880
+ *
9881
+ * The historical-vs-in-scope split is re-derived from the CURRENT fiscal
9882
+ * calendar `closed_through`, so a rebuild re-scopes the schedule to
9883
+ * today's close state. Use this to pick up a fixed generator (e.g. the
9884
+ * roll-forward direction fix) without orphaning obligations.
9885
+ */
9886
+ export type RebuildScheduleRequest = {
9887
+ /**
9888
+ * Structure Id
9889
+ *
9890
+ * The schedule structure to regenerate in place.
9891
+ */
9892
+ structure_id: string;
9893
+ };
9894
+
9823
9895
  /**
9824
9896
  * RegenerateReportOperation
9825
9897
  *
@@ -10343,18 +10415,17 @@ export type RestoreBackupOp = {
10343
10415
  *
10344
10416
  * Filter-based attribution mechanics for ``block_type='rollforward'``.
10345
10417
  *
10346
- * Implements Tier 2 of the rollforward attribution design
10347
- * (``information-block.md`` §4.5). Each block decomposes one BS
10348
- * source element's period delta into a list of flow concepts via
10349
- * declared :class:`AttributionFilter` predicates. The renderer
10350
- * evaluates the filters against ledger LineItems at envelope-build
10351
- * time, emits one attributed fact per filter per period, and arbitrates
10352
- * any residual against the default change tag (Tier 1 fallback).
10418
+ * Filter-based attribution: each block decomposes one BS source
10419
+ * element's period delta into a list of flow concepts via declared
10420
+ * :class:`AttributionFilter` predicates. The renderer evaluates the
10421
+ * filters against ledger LineItems at envelope-build time, emits one
10422
+ * attributed fact per filter per period, and arbitrates any residual
10423
+ * against the default change tag fallback.
10353
10424
  *
10354
10425
  * Reads directly from the typed ``structures.artifact_mechanics`` JSONB
10355
10426
  * column. ``attribution_filters`` rides as nested JSON; the predicate
10356
- * union widens as new predicate shapes ship (Phase 2 MVP carries only
10357
- * ``line_item_metadata_field``).
10427
+ * union widens as new predicate shapes are added currently only
10428
+ * ``line_item_metadata_field`` is carried.
10358
10429
  */
10359
10430
  export type RollforwardMechanics = {
10360
10431
  /**
@@ -10376,13 +10447,13 @@ export type RollforwardMechanics = {
10376
10447
  /**
10377
10448
  * Default Change Tag Element Id
10378
10449
  *
10379
- * 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``.
10450
+ * 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``.
10380
10451
  */
10381
10452
  default_change_tag_element_id?: string | null;
10382
10453
  /**
10383
10454
  * Default Change Tag Qname
10384
10455
  *
10385
- * 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.
10456
+ * 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.
10386
10457
  */
10387
10458
  default_change_tag_qname?: string | null;
10388
10459
  /**
@@ -10612,6 +10683,46 @@ export type SsoTokenResponse = {
10612
10683
  apps: Array<string>;
10613
10684
  };
10614
10685
 
10686
+ /**
10687
+ * ScheduleCreatedResponse
10688
+ */
10689
+ export type ScheduleCreatedResponse = {
10690
+ /**
10691
+ * Structure Id
10692
+ */
10693
+ structure_id: string;
10694
+ /**
10695
+ * Name
10696
+ */
10697
+ name: string;
10698
+ /**
10699
+ * Taxonomy Id
10700
+ */
10701
+ taxonomy_id: string;
10702
+ /**
10703
+ * Total Periods
10704
+ */
10705
+ total_periods: number;
10706
+ /**
10707
+ * Total Facts
10708
+ */
10709
+ total_facts: number;
10710
+ /**
10711
+ * Rule Summary
10712
+ */
10713
+ rule_summary?: {
10714
+ [key: string]: number;
10715
+ } | null;
10716
+ /**
10717
+ * Schedule Created Event Id
10718
+ */
10719
+ schedule_created_event_id?: string | null;
10720
+ /**
10721
+ * Pending Event Count
10722
+ */
10723
+ pending_event_count?: number;
10724
+ };
10725
+
10615
10726
  /**
10616
10727
  * ScheduleMechanics
10617
10728
  *
@@ -12231,8 +12342,7 @@ export type TaxonomyBlockEnvelope = {
12231
12342
  *
12232
12343
  * Exactly one of ``rule_pattern`` (arithmetic) or ``rule_check_kind``
12233
12344
  * (model-structure) is non-null per row, enforced by the
12234
- * ``check_rule_pattern_kind_xor`` DB constraint. See
12235
- * information-block.md §5.2.2.
12345
+ * ``check_rule_pattern_kind_xor`` DB constraint.
12236
12346
  */
12237
12347
  export type TaxonomyBlockRule = {
12238
12348
  /**
@@ -12296,8 +12406,7 @@ export type TaxonomyBlockRule = {
12296
12406
  * ``LeafHasClassification``, ``LibraryOriginImmutability``,
12297
12407
  * ``UniqueQNameInTaxonomy``) are system-managed — they're auto-emitted
12298
12408
  * by :func:`emit_auto_rules` at taxonomy-block creation time and
12299
- * populate ``rules.rule_check_kind`` instead of ``rule_pattern``. See
12300
- * information-block.md §5.2.2 for the axis split.
12409
+ * populate ``rules.rule_check_kind`` instead of ``rule_pattern``.
12301
12410
  */
12302
12411
  export type TaxonomyBlockRuleRequest = {
12303
12412
  /**
@@ -13243,7 +13352,7 @@ export type UpdateRollforwardRequest = {
13243
13352
  * NOT editable via this op: period_start, period_end, monthly_amount.
13244
13353
  * Those require fact regeneration — fire an event block that terminates
13245
13354
  * the schedule (e.g., `asset_disposed`) and create a fresh schedule via
13246
- * `create-schedule`.
13355
+ * `create-information-block` (`block_type='schedule'`).
13247
13356
  *
13248
13357
  * Omitted fields are left unchanged.
13249
13358
  */
@@ -13562,8 +13671,8 @@ export type ValidationLite = {
13562
13671
  * Pass/fail/skip counts for one ``rule_category`` within a block's
13563
13672
  * verification results.
13564
13673
  *
13565
- * Drives the per-category accordions in the Verification Results panel
13566
- * (financial-viewer §7.12). ``category`` is the rule's ``rule_category``
13674
+ * Drives the per-category accordions in the Verification Results panel.
13675
+ * ``category`` is the rule's ``rule_category``
13567
13676
  * (one of the cm:VerificationRule subclasses), resolved by joining each
13568
13677
  * result to its Rule.
13569
13678
  */
@@ -13651,7 +13760,7 @@ export type VerificationResultLite = {
13651
13760
  * Server-computed aggregate of a block's ``verification_results``.
13652
13761
  *
13653
13762
  * Overall counts plus a per-``rule_category`` breakdown, so the viewer
13654
- * renders the grouped Verification Results panel (financial-viewer §7.12)
13763
+ * renders the grouped Verification Results panel
13655
13764
  * without a client-side results→rules join. Status closure is
13656
13765
  * ``pass | fail | error | skipped`` (the ``public.verification_results``
13657
13766
  * CHECK); ``total`` is their sum.
@@ -21863,6 +21972,70 @@ export type OpPromoteObligationsResponses = {
21863
21972
 
21864
21973
  export type OpPromoteObligationsResponse = OpPromoteObligationsResponses[keyof OpPromoteObligationsResponses];
21865
21974
 
21975
+ export type OpRebuildScheduleData = {
21976
+ body: RebuildScheduleRequest;
21977
+ headers?: {
21978
+ /**
21979
+ * Idempotency-Key
21980
+ */
21981
+ 'Idempotency-Key'?: string | null;
21982
+ };
21983
+ path: {
21984
+ /**
21985
+ * Graph Id
21986
+ */
21987
+ graph_id: string;
21988
+ };
21989
+ query?: never;
21990
+ url: '/extensions/roboledger/{graph_id}/operations/rebuild-schedule';
21991
+ };
21992
+
21993
+ export type OpRebuildScheduleErrors = {
21994
+ /**
21995
+ * Invalid request
21996
+ */
21997
+ 400: ErrorResponse;
21998
+ /**
21999
+ * Authentication required
22000
+ */
22001
+ 401: ErrorResponse;
22002
+ /**
22003
+ * Access denied
22004
+ */
22005
+ 403: ErrorResponse;
22006
+ /**
22007
+ * Resource not found
22008
+ */
22009
+ 404: ErrorResponse;
22010
+ /**
22011
+ * Idempotency-Key conflict — key reused with different body
22012
+ */
22013
+ 409: ErrorResponse;
22014
+ /**
22015
+ * Validation error
22016
+ */
22017
+ 422: ErrorResponse;
22018
+ /**
22019
+ * Rate limit exceeded
22020
+ */
22021
+ 429: ErrorResponse;
22022
+ /**
22023
+ * Internal server error
22024
+ */
22025
+ 500: ErrorResponse;
22026
+ };
22027
+
22028
+ export type OpRebuildScheduleError = OpRebuildScheduleErrors[keyof OpRebuildScheduleErrors];
22029
+
22030
+ export type OpRebuildScheduleResponses = {
22031
+ /**
22032
+ * Successful Response
22033
+ */
22034
+ 200: OperationEnvelopeScheduleCreatedResponse;
22035
+ };
22036
+
22037
+ export type OpRebuildScheduleResponse = OpRebuildScheduleResponses[keyof OpRebuildScheduleResponses];
22038
+
21866
22039
  export type OpSetCloseTargetData = {
21867
22040
  body: SetCloseTargetOperation;
21868
22041
  headers?: {
@@ -22823,95 +22996,6 @@ export type OpLiveFinancialStatementResponses = {
22823
22996
 
22824
22997
  export type OpLiveFinancialStatementResponse = OpLiveFinancialStatementResponses[keyof OpLiveFinancialStatementResponses];
22825
22998
 
22826
- export type GetReportBundleDownloadUrlData = {
22827
- body?: never;
22828
- path: {
22829
- /**
22830
- * Graph Id
22831
- */
22832
- graph_id: string;
22833
- /**
22834
- * Report Id
22835
- *
22836
- * Report identifier (rpt_-prefixed ULID).
22837
- */
22838
- report_id: string;
22839
- };
22840
- query?: {
22841
- /**
22842
- * Format
22843
- *
22844
- * 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.
22845
- */
22846
- format?: string;
22847
- /**
22848
- * Expires In
22849
- *
22850
- * Presigned URL lifetime in seconds (min 60, max 3600). Ignored for XBRL flavors (streamed directly, no URL).
22851
- */
22852
- expires_in?: number;
22853
- };
22854
- url: '/extensions/roboledger/{graph_id}/reports/{report_id}/download';
22855
- };
22856
-
22857
- export type GetReportBundleDownloadUrlErrors = {
22858
- /**
22859
- * Validation Error
22860
- */
22861
- 422: HttpValidationError;
22862
- };
22863
-
22864
- export type GetReportBundleDownloadUrlError = GetReportBundleDownloadUrlErrors[keyof GetReportBundleDownloadUrlErrors];
22865
-
22866
- export type GetReportBundleDownloadUrlResponses = {
22867
- /**
22868
- * ReportBundleDownloadResponse
22869
- *
22870
- * Presigned-URL response for a Report bundle download.
22871
- *
22872
- * Mirrors :class:`BackupDownloadUrlResponse` in shape — the frontend
22873
- * treats both the same way (fetch, follow URL, GET the artifact).
22874
- *
22875
- * Only returned for RDF-family flavors (JSON-LD) where the artifact
22876
- * is stored in S3. XBRL flavors stream the binary content directly
22877
- * in the response body (no JSON wrapper).
22878
- */
22879
- 200: {
22880
- /**
22881
- * Download Url
22882
- *
22883
- * Presigned URL that streams the bundle directly from S3.
22884
- */
22885
- download_url: string;
22886
- /**
22887
- * Expires At
22888
- *
22889
- * UTC timestamp at which the presigned URL stops working.
22890
- */
22891
- expires_at: string;
22892
- /**
22893
- * Content Type
22894
- *
22895
- * MIME type of the artifact behind the URL.
22896
- */
22897
- content_type: string;
22898
- /**
22899
- * Format
22900
- *
22901
- * Serialization flavor delivered by this URL — matches the ``format`` query parameter.
22902
- */
22903
- format: string;
22904
- /**
22905
- * Generation Count
22906
- *
22907
- * Bundle generation number stamped on the Report.
22908
- */
22909
- generation_count: number;
22910
- };
22911
- };
22912
-
22913
- export type GetReportBundleDownloadUrlResponse = GetReportBundleDownloadUrlResponses[keyof GetReportBundleDownloadUrlResponses];
22914
-
22915
22999
  export type OpBuildFactGridData = {
22916
23000
  body: CreateViewRequest;
22917
23001
  headers?: {