@robosystems/client 2.17.0 → 2.19.0

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/sdk/types.gen.ts CHANGED
@@ -363,6 +363,56 @@ export type AgentClassification = {
363
363
  learned_from?: string | null;
364
364
  };
365
365
 
366
+ /**
367
+ * AllocationOverrideResponse
368
+ *
369
+ * A member's allocation override for one month.
370
+ */
371
+ export type AllocationOverrideResponse = {
372
+ /**
373
+ * Entity Id
374
+ *
375
+ * The member.
376
+ */
377
+ entity_id: string;
378
+ /**
379
+ * Period
380
+ *
381
+ * The month, as YYYY-MM.
382
+ */
383
+ period: string;
384
+ /**
385
+ * Amount
386
+ *
387
+ * The share, in cents, when set so.
388
+ */
389
+ amount?: number | null;
390
+ /**
391
+ * Percentage
392
+ *
393
+ * The share as a percentage, when set so.
394
+ */
395
+ percentage?: number | null;
396
+ /**
397
+ * Basis
398
+ *
399
+ * Why it differs from pro rata.
400
+ */
401
+ basis?: string | null;
402
+ /**
403
+ * Set By
404
+ *
405
+ * Who set it.
406
+ */
407
+ set_by?: string | null;
408
+ /**
409
+ * Cleared
410
+ *
411
+ * True when the override was removed.
412
+ */
413
+ cleared?: boolean;
414
+ };
415
+
366
416
  /**
367
417
  * AnalyticalStatementFactRow
368
418
  *
@@ -2597,6 +2647,178 @@ export type ConnectionResponse = {
2597
2647
  };
2598
2648
  };
2599
2649
 
2650
+ /**
2651
+ * ConsolidationProposal
2652
+ *
2653
+ * One consolidating entry the month needs: the difference between the
2654
+ * balance this kind of adjustment should hold for the member at the month
2655
+ * end and what the consolidation entity already holds for it.
2656
+ */
2657
+ export type ConsolidationProposal = {
2658
+ /**
2659
+ * Adjustment Kind
2660
+ *
2661
+ * What the entry adjusts.
2662
+ */
2663
+ adjustment_kind: 'elimination_investment' | 'elimination_intercompany' | 'elimination_unrealized_profit' | 'nci_allocation' | 'nci_distribution' | 'equity_method_pickup' | 'equity_method_distribution' | 'acquisition' | 'deconsolidation' | 'translation' | 'manual';
2664
+ /**
2665
+ * Adjusts Entity Id
2666
+ *
2667
+ * The entity whose figures the entry adjusts.
2668
+ */
2669
+ adjusts_entity_id: string;
2670
+ /**
2671
+ * Adjusts Entity Name
2672
+ *
2673
+ * That entity's name.
2674
+ */
2675
+ adjusts_entity_name: string;
2676
+ /**
2677
+ * Posting Date
2678
+ *
2679
+ * The month's last day.
2680
+ */
2681
+ posting_date: string;
2682
+ /**
2683
+ * Memo
2684
+ *
2685
+ * The entry's memo.
2686
+ */
2687
+ memo: string;
2688
+ /**
2689
+ * Basis
2690
+ *
2691
+ * How the amounts were computed.
2692
+ */
2693
+ basis: string;
2694
+ /**
2695
+ * Lines
2696
+ *
2697
+ * The entry's lines; they balance.
2698
+ */
2699
+ lines: Array<ConsolidationProposalLine>;
2700
+ };
2701
+
2702
+ /**
2703
+ * ConsolidationProposalLine
2704
+ *
2705
+ * One line of a proposed consolidating entry, in the consolidation
2706
+ * entity's chart.
2707
+ */
2708
+ export type ConsolidationProposalLine = {
2709
+ /**
2710
+ * Element Id
2711
+ *
2712
+ * The consolidation entity's account.
2713
+ */
2714
+ element_id: string;
2715
+ /**
2716
+ * Account Name
2717
+ *
2718
+ * The account's name.
2719
+ */
2720
+ account_name: string;
2721
+ /**
2722
+ * Concept
2723
+ *
2724
+ * The rs-gaap concept the account maps to.
2725
+ */
2726
+ concept: string;
2727
+ /**
2728
+ * Debit Amount
2729
+ *
2730
+ * Debit, in cents.
2731
+ */
2732
+ debit_amount?: number;
2733
+ /**
2734
+ * Credit Amount
2735
+ *
2736
+ * Credit, in cents.
2737
+ */
2738
+ credit_amount?: number;
2739
+ /**
2740
+ * Flow Qname
2741
+ *
2742
+ * The cash flow row the line offsets, when it eliminates one: the row the member's own line produced, so the consolidated cash flow nets it.
2743
+ */
2744
+ flow_qname?: string | null;
2745
+ };
2746
+
2747
+ /**
2748
+ * ConsolidationReconcilingItem
2749
+ *
2750
+ * Two of the group's entities whose intercompany figures do not agree.
2751
+ * The lower amount is eliminated where one side matches the other; what is
2752
+ * left stays in the consolidated statements until the books agree.
2753
+ */
2754
+ export type ConsolidationReconcilingItem = {
2755
+ /**
2756
+ * Entity Ids
2757
+ *
2758
+ * The two entities.
2759
+ */
2760
+ entity_ids: Array<string>;
2761
+ /**
2762
+ * Concept
2763
+ *
2764
+ * The rs-gaap concept left uneliminated.
2765
+ */
2766
+ concept: string;
2767
+ /**
2768
+ * Entity Id
2769
+ *
2770
+ * The entity whose figure is left.
2771
+ */
2772
+ entity_id: string;
2773
+ /**
2774
+ * Amount
2775
+ *
2776
+ * Cents left uneliminated, debit-positive.
2777
+ */
2778
+ amount: number;
2779
+ /**
2780
+ * Description
2781
+ *
2782
+ * What does not agree.
2783
+ */
2784
+ description: string;
2785
+ };
2786
+
2787
+ /**
2788
+ * ConsolidationResidual
2789
+ *
2790
+ * A difference the engine cannot eliminate on its own: the parent's
2791
+ * investment in a member against the parent's share of that member's
2792
+ * capital. Its entry is withheld until the difference is explained or
2793
+ * posted by hand with a basis; it is never plugged.
2794
+ */
2795
+ export type ConsolidationResidual = {
2796
+ /**
2797
+ * Entity Id
2798
+ *
2799
+ * The member.
2800
+ */
2801
+ entity_id: string;
2802
+ /**
2803
+ * Entity Name
2804
+ *
2805
+ * The member's name.
2806
+ */
2807
+ entity_name: string;
2808
+ /**
2809
+ * Amount
2810
+ *
2811
+ * Cents: the parent's investment balance less its share of the member's capital. Positive when the parent carries more than its share.
2812
+ */
2813
+ amount: number;
2814
+ /**
2815
+ * Explanation
2816
+ *
2817
+ * What the two figures are.
2818
+ */
2819
+ explanation: string;
2820
+ };
2821
+
2600
2822
  /**
2601
2823
  * ConsolidationWorksheetRequest
2602
2824
  *
@@ -9081,7 +9303,7 @@ export type JournalEntryLineItemInput = {
9081
9303
  /**
9082
9304
  * Flow Qname
9083
9305
  *
9084
- * The cash flow row this line's cash belongs to, an rs-gaap flow qname (`flowCandidates(entityId)` lists the rows this company's statement offers). Only for a loan drawn or repaid, capital put in or taken out, an asset bought or sold; omitted, the account's default flow applies. A flow set on one side of the entry tags the untagged lines on the other: the cash flow statement reads the cash line and the roll-forwards read the account line. On the group's consolidation entity, which moves no cash, every tagged line counts on its own, cash-effect signed (a credit is an inflow), so an elimination offsets the flow a member's line produced. Refused when it is not a row of the entity's cash flow statement.
9306
+ * The cash flow row this line's cash belongs to, an rs-gaap flow qname (`flowCandidates(entityId)` lists the rows this company's statement offers). Only for a loan drawn or repaid, capital put in or taken out, an asset bought or sold; omitted, the account's default flow applies. A flow set on one side of the entry tags the untagged lines on the other: the cash flow statement reads the cash line and the roll-forwards read the account line. On the group's consolidation entity, which moves no cash, every tagged line counts on its own, cash-effect signed (a credit is an inflow), so an elimination offsets the flow a member's line produced, and a tag does not spread to the other side. Refused when it is not a row of the entity's cash flow statement.
9085
9307
  */
9086
9308
  flow_qname?: string | null;
9087
9309
  /**
@@ -9186,6 +9408,14 @@ export type JournalEntryResponse = {
9186
9408
  * Total Credit
9187
9409
  */
9188
9410
  total_credit: number;
9411
+ /**
9412
+ * Adjustment Kind
9413
+ */
9414
+ adjustment_kind?: string | null;
9415
+ /**
9416
+ * Adjusts Entity Id
9417
+ */
9418
+ adjusts_entity_id?: string | null;
9189
9419
  };
9190
9420
 
9191
9421
  /**
@@ -10222,6 +10452,12 @@ export type LiveFinancialStatementResponse = {
10222
10452
  * Rendered columns, aligned with each row's `values`. Current and prior for income_statement and balance_sheet; current only for cash_flow_statement — the prior period is pivoted as the indirect-method delta basis and not rendered.
10223
10453
  */
10224
10454
  periods: Array<PeriodSpec>;
10455
+ /**
10456
+ * Omitted Periods
10457
+ *
10458
+ * Columns left out because they reach back before the books begin: on books that start from an opening balance, a flow statement column that starts before the first day it covers, or a balance sheet dated before it. They would show a partial figure, not the months before the books.
10459
+ */
10460
+ omitted_periods?: Array<PeriodSpec>;
10225
10461
  /**
10226
10462
  * Facts
10227
10463
  */
@@ -11024,6 +11260,34 @@ export type OfferingRepositoryPlan = {
11024
11260
  } | null;
11025
11261
  };
11026
11262
 
11263
+ /**
11264
+ * OpeningBalanceInput
11265
+ *
11266
+ * One account's balance on the day the books begin, in its normal
11267
+ * direction: an asset as a debit, a liability or equity account as a credit
11268
+ * (a contra account the other way).
11269
+ */
11270
+ export type OpeningBalanceInput = {
11271
+ /**
11272
+ * Element Id
11273
+ *
11274
+ * The balance-sheet account, by id.
11275
+ */
11276
+ element_id: string;
11277
+ /**
11278
+ * Debit Amount
11279
+ *
11280
+ * Debit balance in cents.
11281
+ */
11282
+ debit_amount?: number;
11283
+ /**
11284
+ * Credit Amount
11285
+ *
11286
+ * Credit balance in cents.
11287
+ */
11288
+ credit_amount?: number;
11289
+ };
11290
+
11027
11291
  /**
11028
11292
  * OperationCosts
11029
11293
  *
@@ -11178,9 +11442,9 @@ export type OperationEnvelopeAcceptSuggestionsResponse = {
11178
11442
  };
11179
11443
 
11180
11444
  /**
11181
- * OperationEnvelope[AssertMetricsResponse]
11445
+ * OperationEnvelope[AllocationOverrideResponse]
11182
11446
  */
11183
- export type OperationEnvelopeAssertMetricsResponse = {
11447
+ export type OperationEnvelopeAllocationOverrideResponse = {
11184
11448
  /**
11185
11449
  * Operation
11186
11450
  *
@@ -11202,7 +11466,7 @@ export type OperationEnvelopeAssertMetricsResponse = {
11202
11466
  /**
11203
11467
  * Command-specific result payload
11204
11468
  */
11205
- result?: AssertMetricsResponse | null;
11469
+ result?: AllocationOverrideResponse | null;
11206
11470
  /**
11207
11471
  * At
11208
11472
  *
@@ -11224,9 +11488,9 @@ export type OperationEnvelopeAssertMetricsResponse = {
11224
11488
  };
11225
11489
 
11226
11490
  /**
11227
- * OperationEnvelope[AssociationResponse]
11491
+ * OperationEnvelope[AssertMetricsResponse]
11228
11492
  */
11229
- export type OperationEnvelopeAssociationResponse = {
11493
+ export type OperationEnvelopeAssertMetricsResponse = {
11230
11494
  /**
11231
11495
  * Operation
11232
11496
  *
@@ -11248,7 +11512,7 @@ export type OperationEnvelopeAssociationResponse = {
11248
11512
  /**
11249
11513
  * Command-specific result payload
11250
11514
  */
11251
- result?: AssociationResponse | null;
11515
+ result?: AssertMetricsResponse | null;
11252
11516
  /**
11253
11517
  * At
11254
11518
  *
@@ -11270,9 +11534,9 @@ export type OperationEnvelopeAssociationResponse = {
11270
11534
  };
11271
11535
 
11272
11536
  /**
11273
- * OperationEnvelope[BackfillPlanHistoryResponse]
11537
+ * OperationEnvelope[AssociationResponse]
11274
11538
  */
11275
- export type OperationEnvelopeBackfillPlanHistoryResponse = {
11539
+ export type OperationEnvelopeAssociationResponse = {
11276
11540
  /**
11277
11541
  * Operation
11278
11542
  *
@@ -11294,7 +11558,7 @@ export type OperationEnvelopeBackfillPlanHistoryResponse = {
11294
11558
  /**
11295
11559
  * Command-specific result payload
11296
11560
  */
11297
- result?: BackfillPlanHistoryResponse | null;
11561
+ result?: AssociationResponse | null;
11298
11562
  /**
11299
11563
  * At
11300
11564
  *
@@ -11316,9 +11580,9 @@ export type OperationEnvelopeBackfillPlanHistoryResponse = {
11316
11580
  };
11317
11581
 
11318
11582
  /**
11319
- * OperationEnvelope[BindTextBlockResponse]
11583
+ * OperationEnvelope[BackfillPlanHistoryResponse]
11320
11584
  */
11321
- export type OperationEnvelopeBindTextBlockResponse = {
11585
+ export type OperationEnvelopeBackfillPlanHistoryResponse = {
11322
11586
  /**
11323
11587
  * Operation
11324
11588
  *
@@ -11340,7 +11604,7 @@ export type OperationEnvelopeBindTextBlockResponse = {
11340
11604
  /**
11341
11605
  * Command-specific result payload
11342
11606
  */
11343
- result?: BindTextBlockResponse | null;
11607
+ result?: BackfillPlanHistoryResponse | null;
11344
11608
  /**
11345
11609
  * At
11346
11610
  *
@@ -11362,9 +11626,9 @@ export type OperationEnvelopeBindTextBlockResponse = {
11362
11626
  };
11363
11627
 
11364
11628
  /**
11365
- * OperationEnvelope[BlockSourceGraphResult]
11629
+ * OperationEnvelope[BindTextBlockResponse]
11366
11630
  */
11367
- export type OperationEnvelopeBlockSourceGraphResult = {
11631
+ export type OperationEnvelopeBindTextBlockResponse = {
11368
11632
  /**
11369
11633
  * Operation
11370
11634
  *
@@ -11386,7 +11650,7 @@ export type OperationEnvelopeBlockSourceGraphResult = {
11386
11650
  /**
11387
11651
  * Command-specific result payload
11388
11652
  */
11389
- result?: BlockSourceGraphResult | null;
11653
+ result?: BindTextBlockResponse | null;
11390
11654
  /**
11391
11655
  * At
11392
11656
  *
@@ -11408,9 +11672,9 @@ export type OperationEnvelopeBlockSourceGraphResult = {
11408
11672
  };
11409
11673
 
11410
11674
  /**
11411
- * OperationEnvelope[BlockedSourceGraphResponse]
11675
+ * OperationEnvelope[BlockSourceGraphResult]
11412
11676
  */
11413
- export type OperationEnvelopeBlockedSourceGraphResponse = {
11677
+ export type OperationEnvelopeBlockSourceGraphResult = {
11414
11678
  /**
11415
11679
  * Operation
11416
11680
  *
@@ -11432,7 +11696,7 @@ export type OperationEnvelopeBlockedSourceGraphResponse = {
11432
11696
  /**
11433
11697
  * Command-specific result payload
11434
11698
  */
11435
- result?: BlockedSourceGraphResponse | null;
11699
+ result?: BlockSourceGraphResult | null;
11436
11700
  /**
11437
11701
  * At
11438
11702
  *
@@ -11454,9 +11718,9 @@ export type OperationEnvelopeBlockedSourceGraphResponse = {
11454
11718
  };
11455
11719
 
11456
11720
  /**
11457
- * OperationEnvelope[ChangeCalendarStartResponse]
11721
+ * OperationEnvelope[BlockedSourceGraphResponse]
11458
11722
  */
11459
- export type OperationEnvelopeChangeCalendarStartResponse = {
11723
+ export type OperationEnvelopeBlockedSourceGraphResponse = {
11460
11724
  /**
11461
11725
  * Operation
11462
11726
  *
@@ -11478,7 +11742,7 @@ export type OperationEnvelopeChangeCalendarStartResponse = {
11478
11742
  /**
11479
11743
  * Command-specific result payload
11480
11744
  */
11481
- result?: ChangeCalendarStartResponse | null;
11745
+ result?: BlockedSourceGraphResponse | null;
11482
11746
  /**
11483
11747
  * At
11484
11748
  *
@@ -11500,9 +11764,9 @@ export type OperationEnvelopeChangeCalendarStartResponse = {
11500
11764
  };
11501
11765
 
11502
11766
  /**
11503
- * OperationEnvelope[ChangeReportingStyleResponse]
11767
+ * OperationEnvelope[ChangeCalendarStartResponse]
11504
11768
  */
11505
- export type OperationEnvelopeChangeReportingStyleResponse = {
11769
+ export type OperationEnvelopeChangeCalendarStartResponse = {
11506
11770
  /**
11507
11771
  * Operation
11508
11772
  *
@@ -11524,7 +11788,7 @@ export type OperationEnvelopeChangeReportingStyleResponse = {
11524
11788
  /**
11525
11789
  * Command-specific result payload
11526
11790
  */
11527
- result?: ChangeReportingStyleResponse | null;
11791
+ result?: ChangeCalendarStartResponse | null;
11528
11792
  /**
11529
11793
  * At
11530
11794
  *
@@ -11546,9 +11810,9 @@ export type OperationEnvelopeChangeReportingStyleResponse = {
11546
11810
  };
11547
11811
 
11548
11812
  /**
11549
- * OperationEnvelope[ClosePeriodResponse]
11813
+ * OperationEnvelope[ChangeReportingStyleResponse]
11550
11814
  */
11551
- export type OperationEnvelopeClosePeriodResponse = {
11815
+ export type OperationEnvelopeChangeReportingStyleResponse = {
11552
11816
  /**
11553
11817
  * Operation
11554
11818
  *
@@ -11570,7 +11834,7 @@ export type OperationEnvelopeClosePeriodResponse = {
11570
11834
  /**
11571
11835
  * Command-specific result payload
11572
11836
  */
11573
- result?: ClosePeriodResponse | null;
11837
+ result?: ChangeReportingStyleResponse | null;
11574
11838
  /**
11575
11839
  * At
11576
11840
  *
@@ -11592,9 +11856,9 @@ export type OperationEnvelopeClosePeriodResponse = {
11592
11856
  };
11593
11857
 
11594
11858
  /**
11595
- * OperationEnvelope[ComputeForecastResponse]
11859
+ * OperationEnvelope[ClosePeriodResponse]
11596
11860
  */
11597
- export type OperationEnvelopeComputeForecastResponse = {
11861
+ export type OperationEnvelopeClosePeriodResponse = {
11598
11862
  /**
11599
11863
  * Operation
11600
11864
  *
@@ -11616,7 +11880,7 @@ export type OperationEnvelopeComputeForecastResponse = {
11616
11880
  /**
11617
11881
  * Command-specific result payload
11618
11882
  */
11619
- result?: ComputeForecastResponse | null;
11883
+ result?: ClosePeriodResponse | null;
11620
11884
  /**
11621
11885
  * At
11622
11886
  *
@@ -11638,9 +11902,9 @@ export type OperationEnvelopeComputeForecastResponse = {
11638
11902
  };
11639
11903
 
11640
11904
  /**
11641
- * OperationEnvelope[ComputeMetricsResponse]
11905
+ * OperationEnvelope[ComputeForecastResponse]
11642
11906
  */
11643
- export type OperationEnvelopeComputeMetricsResponse = {
11907
+ export type OperationEnvelopeComputeForecastResponse = {
11644
11908
  /**
11645
11909
  * Operation
11646
11910
  *
@@ -11662,7 +11926,7 @@ export type OperationEnvelopeComputeMetricsResponse = {
11662
11926
  /**
11663
11927
  * Command-specific result payload
11664
11928
  */
11665
- result?: ComputeMetricsResponse | null;
11929
+ result?: ComputeForecastResponse | null;
11666
11930
  /**
11667
11931
  * At
11668
11932
  *
@@ -11684,9 +11948,9 @@ export type OperationEnvelopeComputeMetricsResponse = {
11684
11948
  };
11685
11949
 
11686
11950
  /**
11687
- * OperationEnvelope[ConsolidationWorksheetResponse]
11951
+ * OperationEnvelope[ComputeMetricsResponse]
11688
11952
  */
11689
- export type OperationEnvelopeConsolidationWorksheetResponse = {
11953
+ export type OperationEnvelopeComputeMetricsResponse = {
11690
11954
  /**
11691
11955
  * Operation
11692
11956
  *
@@ -11708,7 +11972,7 @@ export type OperationEnvelopeConsolidationWorksheetResponse = {
11708
11972
  /**
11709
11973
  * Command-specific result payload
11710
11974
  */
11711
- result?: ConsolidationWorksheetResponse | null;
11975
+ result?: ComputeMetricsResponse | null;
11712
11976
  /**
11713
11977
  * At
11714
11978
  *
@@ -11730,9 +11994,9 @@ export type OperationEnvelopeConsolidationWorksheetResponse = {
11730
11994
  };
11731
11995
 
11732
11996
  /**
11733
- * OperationEnvelope[DeleteInformationBlockResponse]
11997
+ * OperationEnvelope[ConsolidationWorksheetResponse]
11734
11998
  */
11735
- export type OperationEnvelopeDeleteInformationBlockResponse = {
11999
+ export type OperationEnvelopeConsolidationWorksheetResponse = {
11736
12000
  /**
11737
12001
  * Operation
11738
12002
  *
@@ -11754,7 +12018,7 @@ export type OperationEnvelopeDeleteInformationBlockResponse = {
11754
12018
  /**
11755
12019
  * Command-specific result payload
11756
12020
  */
11757
- result?: DeleteInformationBlockResponse | null;
12021
+ result?: ConsolidationWorksheetResponse | null;
11758
12022
  /**
11759
12023
  * At
11760
12024
  *
@@ -11776,9 +12040,9 @@ export type OperationEnvelopeDeleteInformationBlockResponse = {
11776
12040
  };
11777
12041
 
11778
12042
  /**
11779
- * OperationEnvelope[DeletePortfolioBlockResponse]
12043
+ * OperationEnvelope[DeleteInformationBlockResponse]
11780
12044
  */
11781
- export type OperationEnvelopeDeletePortfolioBlockResponse = {
12045
+ export type OperationEnvelopeDeleteInformationBlockResponse = {
11782
12046
  /**
11783
12047
  * Operation
11784
12048
  *
@@ -11800,7 +12064,53 @@ export type OperationEnvelopeDeletePortfolioBlockResponse = {
11800
12064
  /**
11801
12065
  * Command-specific result payload
11802
12066
  */
11803
- result?: DeletePortfolioBlockResponse | null;
12067
+ result?: DeleteInformationBlockResponse | null;
12068
+ /**
12069
+ * At
12070
+ *
12071
+ * ISO-8601 UTC timestamp
12072
+ */
12073
+ at: string;
12074
+ /**
12075
+ * Createdby
12076
+ *
12077
+ * User ID that initiated the operation
12078
+ */
12079
+ createdBy?: string | null;
12080
+ /**
12081
+ * Idempotentreplay
12082
+ *
12083
+ * True when this envelope came from the idempotency cache — the underlying command did not execute again. False on fresh executions.
12084
+ */
12085
+ idempotentReplay?: boolean;
12086
+ };
12087
+
12088
+ /**
12089
+ * OperationEnvelope[DeletePortfolioBlockResponse]
12090
+ */
12091
+ export type OperationEnvelopeDeletePortfolioBlockResponse = {
12092
+ /**
12093
+ * Operation
12094
+ *
12095
+ * Kebab-case operation name
12096
+ */
12097
+ operation: string;
12098
+ /**
12099
+ * Operationid
12100
+ *
12101
+ * op_-prefixed ULID for audit and SSE correlation
12102
+ */
12103
+ operationId: string;
12104
+ /**
12105
+ * Status
12106
+ *
12107
+ * Operation lifecycle state
12108
+ */
12109
+ status: 'completed' | 'pending' | 'failed';
12110
+ /**
12111
+ * Command-specific result payload
12112
+ */
12113
+ result?: DeletePortfolioBlockResponse | null;
11804
12114
  /**
11805
12115
  * At
11806
12116
  *
@@ -12879,6 +13189,52 @@ export type OperationEnvelopePortfolioBlockEnvelope = {
12879
13189
  idempotentReplay?: boolean;
12880
13190
  };
12881
13191
 
13192
+ /**
13193
+ * OperationEnvelope[PreviewConsolidationEntriesResponse]
13194
+ */
13195
+ export type OperationEnvelopePreviewConsolidationEntriesResponse = {
13196
+ /**
13197
+ * Operation
13198
+ *
13199
+ * Kebab-case operation name
13200
+ */
13201
+ operation: string;
13202
+ /**
13203
+ * Operationid
13204
+ *
13205
+ * op_-prefixed ULID for audit and SSE correlation
13206
+ */
13207
+ operationId: string;
13208
+ /**
13209
+ * Status
13210
+ *
13211
+ * Operation lifecycle state
13212
+ */
13213
+ status: 'completed' | 'pending' | 'failed';
13214
+ /**
13215
+ * Command-specific result payload
13216
+ */
13217
+ result?: PreviewConsolidationEntriesResponse | null;
13218
+ /**
13219
+ * At
13220
+ *
13221
+ * ISO-8601 UTC timestamp
13222
+ */
13223
+ at: string;
13224
+ /**
13225
+ * Createdby
13226
+ *
13227
+ * User ID that initiated the operation
13228
+ */
13229
+ createdBy?: string | null;
13230
+ /**
13231
+ * Idempotentreplay
13232
+ *
13233
+ * True when this envelope came from the idempotency cache — the underlying command did not execute again. False on fresh executions.
13234
+ */
13235
+ idempotentReplay?: boolean;
13236
+ };
13237
+
12882
13238
  /**
12883
13239
  * OperationEnvelope[PreviewEventBlockResponse]
12884
13240
  */
@@ -12971,6 +13327,52 @@ export type OperationEnvelopePromoteObligationsResponse = {
12971
13327
  idempotentReplay?: boolean;
12972
13328
  };
12973
13329
 
13330
+ /**
13331
+ * OperationEnvelope[ProposeConsolidationEntriesResponse]
13332
+ */
13333
+ export type OperationEnvelopeProposeConsolidationEntriesResponse = {
13334
+ /**
13335
+ * Operation
13336
+ *
13337
+ * Kebab-case operation name
13338
+ */
13339
+ operation: string;
13340
+ /**
13341
+ * Operationid
13342
+ *
13343
+ * op_-prefixed ULID for audit and SSE correlation
13344
+ */
13345
+ operationId: string;
13346
+ /**
13347
+ * Status
13348
+ *
13349
+ * Operation lifecycle state
13350
+ */
13351
+ status: 'completed' | 'pending' | 'failed';
13352
+ /**
13353
+ * Command-specific result payload
13354
+ */
13355
+ result?: ProposeConsolidationEntriesResponse | null;
13356
+ /**
13357
+ * At
13358
+ *
13359
+ * ISO-8601 UTC timestamp
13360
+ */
13361
+ at: string;
13362
+ /**
13363
+ * Createdby
13364
+ *
13365
+ * User ID that initiated the operation
13366
+ */
13367
+ createdBy?: string | null;
13368
+ /**
13369
+ * Idempotentreplay
13370
+ *
13371
+ * True when this envelope came from the idempotency cache — the underlying command did not execute again. False on fresh executions.
13372
+ */
13373
+ idempotentReplay?: boolean;
13374
+ };
13375
+
12974
13376
  /**
12975
13377
  * OperationEnvelope[PublishListResponse]
12976
13378
  */
@@ -15305,6 +15707,94 @@ export type PositionBlock = {
15305
15707
  security: SecurityLite;
15306
15708
  };
15307
15709
 
15710
+ /**
15711
+ * PreviewConsolidationEntriesRequest
15712
+ *
15713
+ * The month to compute the consolidating entries for.
15714
+ */
15715
+ export type PreviewConsolidationEntriesRequest = {
15716
+ /**
15717
+ * Period
15718
+ *
15719
+ * The month, as YYYY-MM.
15720
+ */
15721
+ period: string;
15722
+ };
15723
+
15724
+ /**
15725
+ * PreviewConsolidationEntriesResponse
15726
+ *
15727
+ * The consolidating entries a month needs, computed from the books.
15728
+ */
15729
+ export type PreviewConsolidationEntriesResponse = {
15730
+ /**
15731
+ * Period
15732
+ *
15733
+ * The month, as YYYY-MM.
15734
+ */
15735
+ period: string;
15736
+ /**
15737
+ * Period Start
15738
+ *
15739
+ * The month's first day.
15740
+ */
15741
+ period_start: string;
15742
+ /**
15743
+ * Period End
15744
+ *
15745
+ * The month's last day.
15746
+ */
15747
+ period_end: string;
15748
+ /**
15749
+ * Consolidation Entity Id
15750
+ *
15751
+ * The entity the entries post in.
15752
+ */
15753
+ consolidation_entity_id: string;
15754
+ /**
15755
+ * Proposals
15756
+ *
15757
+ * The entries to post; empty when the month is up to date.
15758
+ */
15759
+ proposals?: Array<ConsolidationProposal>;
15760
+ /**
15761
+ * Residuals
15762
+ *
15763
+ * Differences withheld from the proposals until explained.
15764
+ */
15765
+ residuals?: Array<ConsolidationResidual>;
15766
+ /**
15767
+ * Reconciling Items
15768
+ *
15769
+ * Intercompany figures the two sides do not agree on.
15770
+ */
15771
+ reconciling_items?: Array<ConsolidationReconcilingItem>;
15772
+ /**
15773
+ * Notes
15774
+ *
15775
+ * Anything the engine left out, and why.
15776
+ */
15777
+ notes?: Array<string>;
15778
+ /**
15779
+ * Up To Date
15780
+ *
15781
+ * True when nothing is proposed, withheld or left out: the consolidation entity already holds what the month needs. A closed month is up to date as posted; read `closed` first.
15782
+ */
15783
+ up_to_date: boolean;
15784
+ /**
15785
+ * Closed
15786
+ *
15787
+ * True when the consolidation entity has closed the month: its entries are as posted, and nothing is recomputed.
15788
+ */
15789
+ closed?: boolean;
15790
+ /**
15791
+ * Drafted Entry Ids
15792
+ *
15793
+ * The month's drafts propose-consolidation-entries wrote, waiting for the consolidation entity's close to post them.
15794
+ */
15795
+ drafted_entry_ids?: Array<string>;
15796
+ };
15797
+
15308
15798
  /**
15309
15799
  * PreviewEventBlockResponse
15310
15800
  *
@@ -15455,6 +15945,76 @@ export type PromoteObligationsResponse = {
15455
15945
  }>;
15456
15946
  };
15457
15947
 
15948
+ /**
15949
+ * ProposeConsolidationEntriesRequest
15950
+ *
15951
+ * The month to draft the consolidating entries for.
15952
+ */
15953
+ export type ProposeConsolidationEntriesRequest = {
15954
+ /**
15955
+ * Period
15956
+ *
15957
+ * The month, as YYYY-MM.
15958
+ */
15959
+ period: string;
15960
+ };
15961
+
15962
+ /**
15963
+ * ProposeConsolidationEntriesResponse
15964
+ *
15965
+ * The consolidating entries drafted for a month.
15966
+ */
15967
+ export type ProposeConsolidationEntriesResponse = {
15968
+ /**
15969
+ * Period
15970
+ *
15971
+ * The month, as YYYY-MM.
15972
+ */
15973
+ period: string;
15974
+ /**
15975
+ * Consolidation Entity Id
15976
+ *
15977
+ * The entity the drafts are in.
15978
+ */
15979
+ consolidation_entity_id: string;
15980
+ /**
15981
+ * Closed
15982
+ *
15983
+ * True when the month is closed and nothing was drafted.
15984
+ */
15985
+ closed?: boolean;
15986
+ /**
15987
+ * Entries
15988
+ *
15989
+ * The drafts written; the consolidation entity's close posts them.
15990
+ */
15991
+ entries?: Array<JournalEntryResponse>;
15992
+ /**
15993
+ * Replaced
15994
+ *
15995
+ * Earlier drafts of this month's entries, replaced by these.
15996
+ */
15997
+ replaced?: number;
15998
+ /**
15999
+ * Residuals
16000
+ *
16001
+ * Differences withheld from the drafts until explained.
16002
+ */
16003
+ residuals?: Array<ConsolidationResidual>;
16004
+ /**
16005
+ * Reconciling Items
16006
+ *
16007
+ * Intercompany figures the two sides do not agree on.
16008
+ */
16009
+ reconciling_items?: Array<ConsolidationReconcilingItem>;
16010
+ /**
16011
+ * Notes
16012
+ *
16013
+ * Anything the engine left out, and why.
16014
+ */
16015
+ notes?: Array<string>;
16016
+ };
16017
+
15458
16018
  /**
15459
16019
  * PublishListMemberResponse
15460
16020
  *
@@ -16593,6 +17153,38 @@ export type ReconcilingItemRegenerated = {
16593
17153
  entry_ids?: Array<string>;
16594
17154
  };
16595
17155
 
17156
+ /**
17157
+ * RecordOpeningBalanceRequest
17158
+ *
17159
+ * The balance sheet a ledger starts from.
17160
+ */
17161
+ export type RecordOpeningBalanceRequest = {
17162
+ /**
17163
+ * Entity Id
17164
+ *
17165
+ * The entity whose books start here; omit for the group parent.
17166
+ */
17167
+ entity_id?: string | null;
17168
+ /**
17169
+ * Balances
17170
+ *
17171
+ * One balance per balance-sheet account (assets, liabilities, equity). An income or expense account is refused: income before the books begin is already in retained earnings.
17172
+ */
17173
+ balances: Array<OpeningBalanceInput>;
17174
+ /**
17175
+ * Equity Element Id
17176
+ *
17177
+ * The equity account that takes any difference between debits and credits, usually Opening Balance Equity. Required when the balances do not balance; a non-zero balance left there is a review item.
17178
+ */
17179
+ equity_element_id?: string | null;
17180
+ /**
17181
+ * Memo
17182
+ *
17183
+ * The entry's memo; defaults to 'Opening balances'.
17184
+ */
17185
+ memo?: string | null;
17186
+ };
17187
+
16596
17188
  /**
16597
17189
  * RecordStatementBalanceRequest
16598
17190
  *
@@ -18567,6 +19159,52 @@ export type ServiceOfferingsResponse = {
18567
19159
  summary: ServiceOfferingSummary;
18568
19160
  };
18569
19161
 
19162
+ /**
19163
+ * SetAllocationOverrideRequest
19164
+ *
19165
+ * The outside owners' share of a member's result for one month, set by a
19166
+ * person in place of the pro-rata share: a preferred return, a waterfall, a
19167
+ * special allocation.
19168
+ */
19169
+ export type SetAllocationOverrideRequest = {
19170
+ /**
19171
+ * Entity Id
19172
+ *
19173
+ * The member, consolidated in full.
19174
+ */
19175
+ entity_id: string;
19176
+ /**
19177
+ * Period
19178
+ *
19179
+ * The month, as YYYY-MM.
19180
+ */
19181
+ period: string;
19182
+ /**
19183
+ * Amount
19184
+ *
19185
+ * The outside owners' share of the month's result, in cents; negative for a share of a loss.
19186
+ */
19187
+ amount?: number | null;
19188
+ /**
19189
+ * Percentage
19190
+ *
19191
+ * The outside owners' share as a percentage of the month's result.
19192
+ */
19193
+ percentage?: number | null;
19194
+ /**
19195
+ * Basis
19196
+ *
19197
+ * Why the share differs from the ownership percentage; required to set one.
19198
+ */
19199
+ basis?: string | null;
19200
+ /**
19201
+ * Clear
19202
+ *
19203
+ * Remove the month's override, back to the pro-rata share.
19204
+ */
19205
+ clear?: boolean;
19206
+ };
19207
+
18570
19208
  /**
18571
19209
  * SetCloseTargetOperation
18572
19210
  */
@@ -32291,6 +32929,198 @@ export type SignOffReconciliationResponses = {
32291
32929
 
32292
32930
  export type SignOffReconciliationResponse = SignOffReconciliationResponses[keyof SignOffReconciliationResponses];
32293
32931
 
32932
+ export type RecordOpeningBalanceData = {
32933
+ body: RecordOpeningBalanceRequest;
32934
+ headers?: {
32935
+ /**
32936
+ * Idempotency-Key
32937
+ */
32938
+ 'Idempotency-Key'?: string | null;
32939
+ };
32940
+ path: {
32941
+ /**
32942
+ * Graph Id
32943
+ */
32944
+ graph_id: string;
32945
+ };
32946
+ query?: never;
32947
+ url: '/extensions/roboledger/{graph_id}/operations/record-opening-balance';
32948
+ };
32949
+
32950
+ export type RecordOpeningBalanceErrors = {
32951
+ /**
32952
+ * Invalid request
32953
+ */
32954
+ 400: ErrorResponse;
32955
+ /**
32956
+ * Authentication required
32957
+ */
32958
+ 401: ErrorResponse;
32959
+ /**
32960
+ * Access denied
32961
+ */
32962
+ 403: ErrorResponse;
32963
+ /**
32964
+ * Resource not found
32965
+ */
32966
+ 404: ErrorResponse;
32967
+ /**
32968
+ * Idempotency-Key conflict — key reused with different body
32969
+ */
32970
+ 409: ErrorResponse;
32971
+ /**
32972
+ * Validation error
32973
+ */
32974
+ 422: ErrorResponse;
32975
+ /**
32976
+ * Rate limit exceeded
32977
+ */
32978
+ 429: ErrorResponse;
32979
+ /**
32980
+ * Internal server error
32981
+ */
32982
+ 500: ErrorResponse;
32983
+ };
32984
+
32985
+ export type RecordOpeningBalanceError = RecordOpeningBalanceErrors[keyof RecordOpeningBalanceErrors];
32986
+
32987
+ export type RecordOpeningBalanceResponses = {
32988
+ /**
32989
+ * Successful Response
32990
+ */
32991
+ 200: OperationEnvelopeJournalEntryResponse;
32992
+ };
32993
+
32994
+ export type RecordOpeningBalanceResponse = RecordOpeningBalanceResponses[keyof RecordOpeningBalanceResponses];
32995
+
32996
+ export type ProposeConsolidationEntriesData = {
32997
+ body: ProposeConsolidationEntriesRequest;
32998
+ headers?: {
32999
+ /**
33000
+ * Idempotency-Key
33001
+ */
33002
+ 'Idempotency-Key'?: string | null;
33003
+ };
33004
+ path: {
33005
+ /**
33006
+ * Graph Id
33007
+ */
33008
+ graph_id: string;
33009
+ };
33010
+ query?: never;
33011
+ url: '/extensions/roboledger/{graph_id}/operations/propose-consolidation-entries';
33012
+ };
33013
+
33014
+ export type ProposeConsolidationEntriesErrors = {
33015
+ /**
33016
+ * Invalid request
33017
+ */
33018
+ 400: ErrorResponse;
33019
+ /**
33020
+ * Authentication required
33021
+ */
33022
+ 401: ErrorResponse;
33023
+ /**
33024
+ * Access denied
33025
+ */
33026
+ 403: ErrorResponse;
33027
+ /**
33028
+ * Resource not found
33029
+ */
33030
+ 404: ErrorResponse;
33031
+ /**
33032
+ * Idempotency-Key conflict — key reused with different body
33033
+ */
33034
+ 409: ErrorResponse;
33035
+ /**
33036
+ * Validation error
33037
+ */
33038
+ 422: ErrorResponse;
33039
+ /**
33040
+ * Rate limit exceeded
33041
+ */
33042
+ 429: ErrorResponse;
33043
+ /**
33044
+ * Internal server error
33045
+ */
33046
+ 500: ErrorResponse;
33047
+ };
33048
+
33049
+ export type ProposeConsolidationEntriesError = ProposeConsolidationEntriesErrors[keyof ProposeConsolidationEntriesErrors];
33050
+
33051
+ export type ProposeConsolidationEntriesResponses = {
33052
+ /**
33053
+ * Successful Response
33054
+ */
33055
+ 200: OperationEnvelopeProposeConsolidationEntriesResponse;
33056
+ };
33057
+
33058
+ export type ProposeConsolidationEntriesResponse2 = ProposeConsolidationEntriesResponses[keyof ProposeConsolidationEntriesResponses];
33059
+
33060
+ export type SetAllocationOverrideData = {
33061
+ body: SetAllocationOverrideRequest;
33062
+ headers?: {
33063
+ /**
33064
+ * Idempotency-Key
33065
+ */
33066
+ 'Idempotency-Key'?: string | null;
33067
+ };
33068
+ path: {
33069
+ /**
33070
+ * Graph Id
33071
+ */
33072
+ graph_id: string;
33073
+ };
33074
+ query?: never;
33075
+ url: '/extensions/roboledger/{graph_id}/operations/set-allocation-override';
33076
+ };
33077
+
33078
+ export type SetAllocationOverrideErrors = {
33079
+ /**
33080
+ * Invalid request
33081
+ */
33082
+ 400: ErrorResponse;
33083
+ /**
33084
+ * Authentication required
33085
+ */
33086
+ 401: ErrorResponse;
33087
+ /**
33088
+ * Access denied
33089
+ */
33090
+ 403: ErrorResponse;
33091
+ /**
33092
+ * Resource not found
33093
+ */
33094
+ 404: ErrorResponse;
33095
+ /**
33096
+ * Idempotency-Key conflict — key reused with different body
33097
+ */
33098
+ 409: ErrorResponse;
33099
+ /**
33100
+ * Validation error
33101
+ */
33102
+ 422: ErrorResponse;
33103
+ /**
33104
+ * Rate limit exceeded
33105
+ */
33106
+ 429: ErrorResponse;
33107
+ /**
33108
+ * Internal server error
33109
+ */
33110
+ 500: ErrorResponse;
33111
+ };
33112
+
33113
+ export type SetAllocationOverrideError = SetAllocationOverrideErrors[keyof SetAllocationOverrideErrors];
33114
+
33115
+ export type SetAllocationOverrideResponses = {
33116
+ /**
33117
+ * Successful Response
33118
+ */
33119
+ 200: OperationEnvelopeAllocationOverrideResponse;
33120
+ };
33121
+
33122
+ export type SetAllocationOverrideResponse = SetAllocationOverrideResponses[keyof SetAllocationOverrideResponses];
33123
+
32294
33124
  export type UpdateJournalEntryData = {
32295
33125
  body: UpdateJournalEntryRequest;
32296
33126
  headers?: {
@@ -34339,6 +35169,70 @@ export type ConsolidationWorksheetResponses = {
34339
35169
 
34340
35170
  export type ConsolidationWorksheetResponse2 = ConsolidationWorksheetResponses[keyof ConsolidationWorksheetResponses];
34341
35171
 
35172
+ export type PreviewConsolidationEntriesData = {
35173
+ body: PreviewConsolidationEntriesRequest;
35174
+ headers?: {
35175
+ /**
35176
+ * Idempotency-Key
35177
+ */
35178
+ 'Idempotency-Key'?: string | null;
35179
+ };
35180
+ path: {
35181
+ /**
35182
+ * Graph Id
35183
+ */
35184
+ graph_id: string;
35185
+ };
35186
+ query?: never;
35187
+ url: '/extensions/roboledger/{graph_id}/operations/preview-consolidation-entries';
35188
+ };
35189
+
35190
+ export type PreviewConsolidationEntriesErrors = {
35191
+ /**
35192
+ * Invalid request
35193
+ */
35194
+ 400: ErrorResponse;
35195
+ /**
35196
+ * Authentication required
35197
+ */
35198
+ 401: ErrorResponse;
35199
+ /**
35200
+ * Access denied
35201
+ */
35202
+ 403: ErrorResponse;
35203
+ /**
35204
+ * Resource not found
35205
+ */
35206
+ 404: ErrorResponse;
35207
+ /**
35208
+ * Idempotency-Key conflict — key reused with different body
35209
+ */
35210
+ 409: ErrorResponse;
35211
+ /**
35212
+ * Validation error
35213
+ */
35214
+ 422: ErrorResponse;
35215
+ /**
35216
+ * Rate limit exceeded
35217
+ */
35218
+ 429: ErrorResponse;
35219
+ /**
35220
+ * Internal server error
35221
+ */
35222
+ 500: ErrorResponse;
35223
+ };
35224
+
35225
+ export type PreviewConsolidationEntriesError = PreviewConsolidationEntriesErrors[keyof PreviewConsolidationEntriesErrors];
35226
+
35227
+ export type PreviewConsolidationEntriesResponses = {
35228
+ /**
35229
+ * Successful Response
35230
+ */
35231
+ 200: OperationEnvelopePreviewConsolidationEntriesResponse;
35232
+ };
35233
+
35234
+ export type PreviewConsolidationEntriesResponse2 = PreviewConsolidationEntriesResponses[keyof PreviewConsolidationEntriesResponses];
35235
+
34342
35236
  export type CreatePortfolioBlockData = {
34343
35237
  body: CreatePortfolioBlockRequest;
34344
35238
  headers?: {