@robosystems/client 2.3.0 → 2.5.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/types.gen.d.ts CHANGED
@@ -214,7 +214,9 @@ export type ArtifactResponse = {
214
214
  kind: 'rollforward';
215
215
  } & RollforwardMechanics) | ({
216
216
  kind: 'forecast';
217
- } & ForecastMechanics);
217
+ } & ForecastMechanics) | ({
218
+ kind: 'reconciliation';
219
+ } & ReconciliationMechanics);
218
220
  };
219
221
  /**
220
222
  * AssertMetricsRequest
@@ -706,6 +708,12 @@ export type BackfillPlanHistoryOperation = {
706
708
  * Override the unposted-source-event gate on each reclose. Only needed when a source event inside the backfill window was never committed and you have decided not to commit or void it first.
707
709
  */
708
710
  allow_unposted_source_events?: boolean;
711
+ /**
712
+ * Allow Unreconciled Accounts
713
+ *
714
+ * Override the reconciliation gate on each reclose. Needed when a month inside the backfill window has a reconciliation the close waits on that was never compared for it, which is every month closed before the reconciliation existed.
715
+ */
716
+ allow_unreconciled_accounts?: boolean;
709
717
  /**
710
718
  * Restamp
711
719
  *
@@ -1644,6 +1652,12 @@ export type ClosePeriodOperation = {
1644
1652
  * Override the unposted-source-event gate — close even though source events dated in the period (bank-feed lines, QuickBooks transactions whose automatic posting failed) were never committed. Once the period closes they cannot post into it, so the stamped statements leave them out. Prefer classifying and committing, or voiding, each first. The override is recorded in the close audit note.
1645
1653
  */
1646
1654
  allow_unposted_source_events?: boolean;
1655
+ /**
1656
+ * Allow Unreconciled Accounts
1657
+ *
1658
+ * Override the reconciliation gate — close even though a reconciliation the close waits on is not reconciled for the period, or was never compared for it. The books are then closed without that check. Prefer refresh-reconciliations and clearing what it reports first. The override is recorded in the close audit note.
1659
+ */
1660
+ allow_unreconciled_accounts?: boolean;
1647
1661
  /**
1648
1662
  * Period
1649
1663
  *
@@ -2787,7 +2801,7 @@ export type CreateInformationBlockRequest = ({
2787
2801
  } & CreateRollforwardArm) | ({
2788
2802
  block_type: 'forecast';
2789
2803
  } & CreateForecastArm) | ({
2790
- block_type: 'balance_sheet' | 'cash_flow_statement' | 'comprehensive_income' | 'equity_statement' | 'income_statement' | 'metric' | 'regulatory_disclosure';
2804
+ block_type: 'balance_sheet' | 'cash_flow_statement' | 'comprehensive_income' | 'equity_statement' | 'income_statement' | 'metric' | 'reconciliation' | 'regulatory_disclosure';
2791
2805
  } & CreateLegacyArm);
2792
2806
  /**
2793
2807
  * CreateInvitationRequest
@@ -3878,7 +3892,7 @@ export type DeleteInformationBlockRequest = ({
3878
3892
  } & DeleteRollforwardArm) | ({
3879
3893
  block_type: 'forecast';
3880
3894
  } & DeleteForecastArm) | ({
3881
- block_type: 'balance_sheet' | 'cash_flow_statement' | 'comprehensive_income' | 'equity_statement' | 'income_statement' | 'metric' | 'regulatory_disclosure';
3895
+ block_type: 'balance_sheet' | 'cash_flow_statement' | 'comprehensive_income' | 'equity_statement' | 'income_statement' | 'metric' | 'reconciliation' | 'regulatory_disclosure';
3882
3896
  } & DeleteLegacyArm);
3883
3897
  /**
3884
3898
  * DeleteInformationBlockResponse
@@ -4058,15 +4072,14 @@ export type DeleteRollforwardRequest = {
4058
4072
  /**
4059
4073
  * DeleteScheduleRequest
4060
4074
  *
4061
- * Delete a schedule — cascades through facts and associations.
4075
+ * Delete a schedule and everything under it. Permanent and irreversible.
4062
4076
  *
4063
- * Hard deletes the Structure, all Facts tied to it, and all
4064
- * Associations tied to it. This is a permanent, irreversible
4065
- * operation. For ending a schedule early without removing history, use
4066
- * `terminate-schedule` (no entry) or
4067
- * `create-event-block(event_type='asset_disposed')` (the handler voids
4068
- * the remaining obligation chain + posts the disposal entry atomically;
4069
- * recognized facts stay as history).
4077
+ * Removes the Structure, its Facts and Associations, its draft entries and
4078
+ * its unposted obligations. Refused once any of the schedule's entries has
4079
+ * posted, because the schedule is their support. To end a schedule early
4080
+ * and keep its history, use `terminate-schedule` (no entry) or
4081
+ * `create-event-block(event_type='asset_disposed')`, whose handler voids
4082
+ * the remaining obligations and posts the disposal entry in one step.
4070
4083
  */
4071
4084
  export type DeleteScheduleRequest = {
4072
4085
  /**
@@ -5894,6 +5907,18 @@ export type FiscalCalendarResponse = {
5894
5907
  * Source identifiers (or event ids) of up to 5 unposted source events, so the blocker names what is holding the close.
5895
5908
  */
5896
5909
  unposted_source_event_sample?: Array<string>;
5910
+ /**
5911
+ * Unreconciled Account Count
5912
+ *
5913
+ * Reconciliations the close waits on that are not reconciled for this period, including any never compared for it. Run refresh-reconciliations and clear what it reports, release one with set-reconciliation-policy, or close over them knowingly with allow_unreconciled_accounts.
5914
+ */
5915
+ unreconciled_account_count?: number;
5916
+ /**
5917
+ * Unreconciled Account Sample
5918
+ *
5919
+ * Name and status of up to 5 of those reconciliations, so the blocker names what is holding the close.
5920
+ */
5921
+ unreconciled_account_sample?: Array<string>;
5897
5922
  /**
5898
5923
  * Last Close At
5899
5924
  */
@@ -11212,6 +11237,186 @@ export type OperationEnvelopePublishListResponse = {
11212
11237
  */
11213
11238
  idempotentReplay?: boolean;
11214
11239
  };
11240
+ /**
11241
+ * OperationEnvelope[ReconciliationListResponse]
11242
+ */
11243
+ export type OperationEnvelopeReconciliationListResponse = {
11244
+ /**
11245
+ * Operation
11246
+ *
11247
+ * Kebab-case operation name
11248
+ */
11249
+ operation: string;
11250
+ /**
11251
+ * Operationid
11252
+ *
11253
+ * op_-prefixed ULID for audit and SSE correlation
11254
+ */
11255
+ operationId: string;
11256
+ /**
11257
+ * Status
11258
+ *
11259
+ * Operation lifecycle state
11260
+ */
11261
+ status: 'completed' | 'pending' | 'failed';
11262
+ /**
11263
+ * Command-specific result payload
11264
+ */
11265
+ result?: ReconciliationListResponse | null;
11266
+ /**
11267
+ * At
11268
+ *
11269
+ * ISO-8601 UTC timestamp
11270
+ */
11271
+ at: string;
11272
+ /**
11273
+ * Createdby
11274
+ *
11275
+ * User ID that initiated the operation
11276
+ */
11277
+ createdBy?: string | null;
11278
+ /**
11279
+ * Idempotentreplay
11280
+ *
11281
+ * True when this envelope came from the idempotency cache — the underlying command did not execute again. False on fresh executions.
11282
+ */
11283
+ idempotentReplay?: boolean;
11284
+ };
11285
+ /**
11286
+ * OperationEnvelope[ReconciliationPolicyResponse]
11287
+ */
11288
+ export type OperationEnvelopeReconciliationPolicyResponse = {
11289
+ /**
11290
+ * Operation
11291
+ *
11292
+ * Kebab-case operation name
11293
+ */
11294
+ operation: string;
11295
+ /**
11296
+ * Operationid
11297
+ *
11298
+ * op_-prefixed ULID for audit and SSE correlation
11299
+ */
11300
+ operationId: string;
11301
+ /**
11302
+ * Status
11303
+ *
11304
+ * Operation lifecycle state
11305
+ */
11306
+ status: 'completed' | 'pending' | 'failed';
11307
+ /**
11308
+ * Command-specific result payload
11309
+ */
11310
+ result?: ReconciliationPolicyResponse | null;
11311
+ /**
11312
+ * At
11313
+ *
11314
+ * ISO-8601 UTC timestamp
11315
+ */
11316
+ at: string;
11317
+ /**
11318
+ * Createdby
11319
+ *
11320
+ * User ID that initiated the operation
11321
+ */
11322
+ createdBy?: string | null;
11323
+ /**
11324
+ * Idempotentreplay
11325
+ *
11326
+ * True when this envelope came from the idempotency cache — the underlying command did not execute again. False on fresh executions.
11327
+ */
11328
+ idempotentReplay?: boolean;
11329
+ };
11330
+ /**
11331
+ * OperationEnvelope[ReconciliationPreviewResponse]
11332
+ */
11333
+ export type OperationEnvelopeReconciliationPreviewResponse = {
11334
+ /**
11335
+ * Operation
11336
+ *
11337
+ * Kebab-case operation name
11338
+ */
11339
+ operation: string;
11340
+ /**
11341
+ * Operationid
11342
+ *
11343
+ * op_-prefixed ULID for audit and SSE correlation
11344
+ */
11345
+ operationId: string;
11346
+ /**
11347
+ * Status
11348
+ *
11349
+ * Operation lifecycle state
11350
+ */
11351
+ status: 'completed' | 'pending' | 'failed';
11352
+ /**
11353
+ * Command-specific result payload
11354
+ */
11355
+ result?: ReconciliationPreviewResponse | null;
11356
+ /**
11357
+ * At
11358
+ *
11359
+ * ISO-8601 UTC timestamp
11360
+ */
11361
+ at: string;
11362
+ /**
11363
+ * Createdby
11364
+ *
11365
+ * User ID that initiated the operation
11366
+ */
11367
+ createdBy?: string | null;
11368
+ /**
11369
+ * Idempotentreplay
11370
+ *
11371
+ * True when this envelope came from the idempotency cache — the underlying command did not execute again. False on fresh executions.
11372
+ */
11373
+ idempotentReplay?: boolean;
11374
+ };
11375
+ /**
11376
+ * OperationEnvelope[ReconciliationSummary]
11377
+ */
11378
+ export type OperationEnvelopeReconciliationSummary = {
11379
+ /**
11380
+ * Operation
11381
+ *
11382
+ * Kebab-case operation name
11383
+ */
11384
+ operation: string;
11385
+ /**
11386
+ * Operationid
11387
+ *
11388
+ * op_-prefixed ULID for audit and SSE correlation
11389
+ */
11390
+ operationId: string;
11391
+ /**
11392
+ * Status
11393
+ *
11394
+ * Operation lifecycle state
11395
+ */
11396
+ status: 'completed' | 'pending' | 'failed';
11397
+ /**
11398
+ * Command-specific result payload
11399
+ */
11400
+ result?: ReconciliationSummary | null;
11401
+ /**
11402
+ * At
11403
+ *
11404
+ * ISO-8601 UTC timestamp
11405
+ */
11406
+ at: string;
11407
+ /**
11408
+ * Createdby
11409
+ *
11410
+ * User ID that initiated the operation
11411
+ */
11412
+ createdBy?: string | null;
11413
+ /**
11414
+ * Idempotentreplay
11415
+ *
11416
+ * True when this envelope came from the idempotency cache — the underlying command did not execute again. False on fresh executions.
11417
+ */
11418
+ idempotentReplay?: boolean;
11419
+ };
11215
11420
  /**
11216
11421
  * OperationEnvelope[ReconcilingItemPlan]
11217
11422
  */
@@ -13191,6 +13396,31 @@ export type PreviewEventBlockResponse = {
13191
13396
  [key: string]: unknown;
13192
13397
  };
13193
13398
  };
13399
+ /**
13400
+ * PreviewReconciliationsRequest
13401
+ *
13402
+ * Compare the ledger's balances at a period end with an independent source.
13403
+ */
13404
+ export type PreviewReconciliationsRequest = {
13405
+ /**
13406
+ * Period
13407
+ *
13408
+ * Period to compare at its last day, as YYYY-MM.
13409
+ */
13410
+ period: string;
13411
+ /**
13412
+ * Method
13413
+ *
13414
+ * Which check to preview. `source_ledger` compares every account with the synced accounting system's own trial balance. `schedule_register` compares each asset account a schedule carries a balance on with what its schedules say it holds. `statement` compares each account that has a statement balance recorded in the period with that balance.
13415
+ */
13416
+ method?: 'source_ledger' | 'schedule_register' | 'statement';
13417
+ /**
13418
+ * Include Tied
13419
+ *
13420
+ * Also return the accounts that tie. Off by default: the differences are the work, and the counts cover the rest.
13421
+ */
13422
+ include_tied?: boolean;
13423
+ };
13194
13424
  /**
13195
13425
  * PreviewReconcilingItemRequest
13196
13426
  *
@@ -13470,66 +13700,555 @@ export type RebuildScheduleRequest = {
13470
13700
  structure_id: string;
13471
13701
  };
13472
13702
  /**
13473
- * ReconcilingItemCatchUp
13703
+ * ReconciliationComponent
13474
13704
  *
13475
- * The catch-up entry a resolution posted.
13705
+ * One part of an account's independent balance: what a single schedule
13706
+ * says the account carries, or a recorded statement balance.
13476
13707
  */
13477
- export type ReconcilingItemCatchUp = {
13708
+ export type ReconciliationComponent = {
13478
13709
  /**
13479
- * Event Id
13710
+ * Name
13711
+ *
13712
+ * The schedule's name, or the statement and its date.
13480
13713
  */
13481
- event_id: string;
13714
+ name: string;
13482
13715
  /**
13483
- * Entry Id
13716
+ * Amount
13717
+ *
13718
+ * What this part says the account holds, debit-positive.
13484
13719
  */
13485
- entry_id?: string | null;
13720
+ amount: number;
13486
13721
  /**
13487
- * Transaction Id
13722
+ * Structure Id
13723
+ *
13724
+ * The schedule, for a `schedule_register` part.
13488
13725
  */
13489
- transaction_id?: string | null;
13726
+ structure_id?: string | null;
13490
13727
  /**
13491
- * Posting Date
13728
+ * Event Id
13729
+ *
13730
+ * The recorded balance, for a `statement` part.
13492
13731
  */
13493
- posting_date: string;
13732
+ event_id?: string | null;
13494
13733
  /**
13495
- * Status
13734
+ * Document Id
13735
+ *
13736
+ * The statement document given as evidence, when one was.
13496
13737
  */
13497
- status: string;
13738
+ document_id?: string | null;
13739
+ /**
13740
+ * Note
13741
+ *
13742
+ * Why a schedule carries nothing (disposed of, or ended early), or the note recorded with a statement balance.
13743
+ */
13744
+ note?: string | null;
13498
13745
  };
13499
13746
  /**
13500
- * ReconcilingItemDeltaLine
13501
- *
13502
- * One account's net change between the posted entries and the new payload.
13747
+ * ReconciliationListResponse
13503
13748
  *
13504
- * Amounts are signed minor units in debit-positive convention: a positive
13505
- * figure is a net debit, a negative one a net credit. `delta` is what a
13506
- * catch-up entry would post to bring the books level.
13749
+ * Every reconciliation's standing for one period.
13507
13750
  */
13508
- export type ReconcilingItemDeltaLine = {
13751
+ export type ReconciliationListResponse = {
13509
13752
  /**
13510
- * Element Id
13753
+ * Period
13511
13754
  *
13512
- * CoA element id; null when the account is unmapped
13755
+ * The period, as YYYY-MM.
13513
13756
  */
13514
- element_id?: string | null;
13757
+ period: string;
13515
13758
  /**
13516
- * Element External Id
13759
+ * As Of
13517
13760
  *
13518
- * Source-system account id, when the line carried one
13761
+ * The period's last day.
13519
13762
  */
13520
- element_external_id?: string | null;
13763
+ as_of: string;
13521
13764
  /**
13522
- * Element Code
13765
+ * Reconciliations
13523
13766
  *
13524
- * Account code
13767
+ * One entry per reconciliation block, oldest block first.
13525
13768
  */
13526
- element_code?: string | null;
13769
+ reconciliations: Array<ReconciliationSummary>;
13527
13770
  /**
13528
- * Element Name
13771
+ * Notes
13529
13772
  *
13530
- * Account name
13773
+ * What a refresh could not compare, such as a check skipped because its source is no longer connected. Empty on a plain read.
13531
13774
  */
13532
- element_name?: string | null;
13775
+ notes?: Array<string>;
13776
+ };
13777
+ /**
13778
+ * ReconciliationMechanics
13779
+ *
13780
+ * Mechanics for `block_type='reconciliation'`: what is compared, against
13781
+ * what, and how much the close cares.
13782
+ *
13783
+ * A `ledger`-scope reconciliation checks the whole ledger against one
13784
+ * source (the synced accounting system's own trial balance). An
13785
+ * `account`-scope one ties a single account to an independent balance.
13786
+ */
13787
+ export type ReconciliationMechanics = {
13788
+ /**
13789
+ * Kind
13790
+ */
13791
+ kind?: 'reconciliation';
13792
+ /**
13793
+ * Scope
13794
+ *
13795
+ * Whether the block covers the whole ledger or one account.
13796
+ */
13797
+ scope: 'ledger' | 'account';
13798
+ /**
13799
+ * Method
13800
+ *
13801
+ * Where the independent side comes from.
13802
+ */
13803
+ method: 'source_ledger' | 'schedule_register' | 'statement';
13804
+ /**
13805
+ * Element Id
13806
+ *
13807
+ * The account reconciled; null for a ledger-scope block.
13808
+ */
13809
+ element_id?: string | null;
13810
+ /**
13811
+ * Required For Close
13812
+ *
13813
+ * Whether the period's close waits on this reconciliation.
13814
+ */
13815
+ required_for_close?: boolean;
13816
+ /**
13817
+ * Materiality
13818
+ *
13819
+ * A difference up to this amount still counts as reconciled. Zero means the two sides must agree to the cent.
13820
+ */
13821
+ materiality?: number;
13822
+ /**
13823
+ * Review Required
13824
+ *
13825
+ * Whether the close waits for a sign-off as well, not just for the two sides to reconcile.
13826
+ */
13827
+ review_required?: boolean;
13828
+ /**
13829
+ * Separate Reviewer
13830
+ *
13831
+ * Whether the person who signs off must be someone other than the person who ran the comparison.
13832
+ */
13833
+ separate_reviewer?: boolean;
13834
+ };
13835
+ /**
13836
+ * ReconciliationPolicyResponse
13837
+ *
13838
+ * A reconciliation's policy after a change.
13839
+ */
13840
+ export type ReconciliationPolicyResponse = {
13841
+ /**
13842
+ * Structure Id
13843
+ */
13844
+ structure_id: string;
13845
+ /**
13846
+ * Required For Close
13847
+ */
13848
+ required_for_close: boolean;
13849
+ /**
13850
+ * Materiality
13851
+ */
13852
+ materiality: number;
13853
+ /**
13854
+ * Review Required
13855
+ */
13856
+ review_required: boolean;
13857
+ /**
13858
+ * Separate Reviewer
13859
+ */
13860
+ separate_reviewer: boolean;
13861
+ };
13862
+ /**
13863
+ * ReconciliationPreviewResponse
13864
+ *
13865
+ * The comparison for one period end. Nothing is written.
13866
+ */
13867
+ export type ReconciliationPreviewResponse = {
13868
+ /**
13869
+ * Period
13870
+ */
13871
+ period: string;
13872
+ /**
13873
+ * As Of
13874
+ *
13875
+ * The period's last day.
13876
+ */
13877
+ as_of: string;
13878
+ /**
13879
+ * Fiscal Year Start
13880
+ *
13881
+ * Income-statement accounts are compared from this date to `as_of`.
13882
+ */
13883
+ fiscal_year_start: string;
13884
+ /**
13885
+ * Method
13886
+ */
13887
+ method: 'source_ledger' | 'schedule_register' | 'statement';
13888
+ /**
13889
+ * Source
13890
+ *
13891
+ * The system the independent side was read from.
13892
+ */
13893
+ source: string;
13894
+ /**
13895
+ * Report Basis
13896
+ *
13897
+ * Accounting basis the source reported on.
13898
+ */
13899
+ report_basis?: string | null;
13900
+ /**
13901
+ * Last Sync At
13902
+ *
13903
+ * When the source was last synced. A difference on a sync older than the period end may be activity not yet synced, not a fault in the mirror.
13904
+ */
13905
+ last_sync_at?: string | null;
13906
+ /**
13907
+ * Accounts Compared
13908
+ *
13909
+ * Accounts with a balance on either side; zero on both is left out.
13910
+ */
13911
+ accounts_compared: number;
13912
+ /**
13913
+ * Accounts Tied
13914
+ */
13915
+ accounts_tied: number;
13916
+ /**
13917
+ * Accounts Different
13918
+ *
13919
+ * Every account that does not tie, whatever the reason.
13920
+ */
13921
+ accounts_different: number;
13922
+ /**
13923
+ * Total Difference
13924
+ *
13925
+ * Sum of the absolute differences across accounts, not a net figure: one missing transaction counts on each account it touches.
13926
+ */
13927
+ total_difference: number;
13928
+ /**
13929
+ * Rows
13930
+ *
13931
+ * Accounts that do not tie, largest difference first; tied accounts follow when `include_tied` is set.
13932
+ */
13933
+ rows: Array<ReconciliationRow>;
13934
+ /**
13935
+ * Notes
13936
+ *
13937
+ * How the comparison was made, and anything that qualifies it.
13938
+ */
13939
+ notes?: Array<string>;
13940
+ };
13941
+ /**
13942
+ * ReconciliationRow
13943
+ *
13944
+ * One account: the ledger's balance, the independent balance, the difference.
13945
+ *
13946
+ * Balances are debit-positive, so a credit balance is negative on both sides.
13947
+ */
13948
+ export type ReconciliationRow = {
13949
+ /**
13950
+ * Element Id
13951
+ *
13952
+ * The chart account; null when the ledger has none for it.
13953
+ */
13954
+ element_id?: string | null;
13955
+ /**
13956
+ * Account Code
13957
+ *
13958
+ * The chart account's code.
13959
+ */
13960
+ account_code?: string | null;
13961
+ /**
13962
+ * Account Name
13963
+ *
13964
+ * The account's name in the ledger, else in the source.
13965
+ */
13966
+ account_name: string;
13967
+ /**
13968
+ * Source Account Id
13969
+ *
13970
+ * The account's id in the source system, when it has one.
13971
+ */
13972
+ source_account_id?: string | null;
13973
+ /**
13974
+ * Statement
13975
+ *
13976
+ * `balance_sheet` or `income_statement`. Balance-sheet accounts are compared cumulatively to the period end; income-statement accounts from the start of the fiscal year. Null when the ledger has no account.
13977
+ */
13978
+ statement?: string | null;
13979
+ /**
13980
+ * Ledger Balance
13981
+ *
13982
+ * What the ledger holds. For `source_ledger`, landed entries only. For `schedule_register`, the balance as the period's close will leave it: landed entries, drafts awaiting the close, and schedule entries not yet drafted.
13983
+ */
13984
+ ledger_balance: number;
13985
+ /**
13986
+ * Independent Balance
13987
+ *
13988
+ * What the independent source says.
13989
+ */
13990
+ independent_balance: number;
13991
+ /**
13992
+ * Difference
13993
+ *
13994
+ * Ledger minus independent.
13995
+ */
13996
+ difference: number;
13997
+ /**
13998
+ * Status
13999
+ *
14000
+ * `tied`: both sides agree to the cent. `different`: both know the account and disagree. `not_in_ledger`: the source reports an account the ledger has none for. `not_in_source`: the ledger holds a balance on an account the source does not have.
14001
+ */
14002
+ status: string;
14003
+ /**
14004
+ * As Of
14005
+ *
14006
+ * The date both balances are stated at, when it is not the period's last day: a statement that ends mid-period is compared with the ledger at the statement's own date.
14007
+ */
14008
+ as_of?: string | null;
14009
+ /**
14010
+ * Components
14011
+ *
14012
+ * Account-scope methods only: what makes up the independent balance. One entry per schedule for `schedule_register`; the recorded statement for `statement`.
14013
+ */
14014
+ components?: Array<ReconciliationComponent>;
14015
+ };
14016
+ /**
14017
+ * ReconciliationSummary
14018
+ *
14019
+ * One reconciliation's standing for a period.
14020
+ */
14021
+ export type ReconciliationSummary = {
14022
+ /**
14023
+ * Structure Id
14024
+ *
14025
+ * The reconciliation block.
14026
+ */
14027
+ structure_id: string;
14028
+ /**
14029
+ * Name
14030
+ *
14031
+ * The block's name.
14032
+ */
14033
+ name: string;
14034
+ /**
14035
+ * Scope
14036
+ *
14037
+ * `ledger`: the whole ledger against one source. `account`: one account against an independent balance.
14038
+ */
14039
+ scope: string;
14040
+ /**
14041
+ * Method
14042
+ *
14043
+ * Where the independent side comes from. `source_ledger` is the synced accounting system's own trial balance. `schedule_register` is what the account's schedules say it carries. `statement` is the ending balance of a statement recorded for the account.
14044
+ */
14045
+ method: string;
14046
+ /**
14047
+ * Element Id
14048
+ *
14049
+ * The account reconciled; null for a ledger-scope block.
14050
+ */
14051
+ element_id?: string | null;
14052
+ /**
14053
+ * Required For Close
14054
+ *
14055
+ * Whether the period's close waits on this reconciliation.
14056
+ */
14057
+ required_for_close: boolean;
14058
+ /**
14059
+ * Materiality
14060
+ *
14061
+ * A difference up to this amount still counts as reconciled.
14062
+ */
14063
+ materiality: number;
14064
+ /**
14065
+ * Period
14066
+ *
14067
+ * The period, as YYYY-MM.
14068
+ */
14069
+ period: string;
14070
+ /**
14071
+ * As Of
14072
+ *
14073
+ * The period's last day.
14074
+ */
14075
+ as_of: string;
14076
+ /**
14077
+ * Status
14078
+ *
14079
+ * `not_started`: not compared for this period. `stale`: the books have changed since it was compared, so run refresh-reconciliations. `unreconciled`: the sides differ by more than the materiality. `reconciled`: they agree within it. `reviewed`: reconciled and signed off.
14080
+ */
14081
+ status: string;
14082
+ /**
14083
+ * Unreconciled Difference
14084
+ *
14085
+ * What is left unexplained at the last comparison; null when the period has not been compared. For a ledger-scope block, the sum of every account's absolute difference. For an account-scope block, the ledger balance minus the independent one.
14086
+ */
14087
+ unreconciled_difference?: number | null;
14088
+ /**
14089
+ * Accounts Compared
14090
+ *
14091
+ * Ledger-scope only: accounts with a balance on either side.
14092
+ */
14093
+ accounts_compared?: number | null;
14094
+ /**
14095
+ * Accounts Different
14096
+ *
14097
+ * Ledger-scope only: accounts that do not tie.
14098
+ */
14099
+ accounts_different?: number | null;
14100
+ /**
14101
+ * Ledger Balance
14102
+ *
14103
+ * Account-scope only: the account's balance at the last comparison, debit-positive, as the period's close will leave it.
14104
+ */
14105
+ ledger_balance?: number | null;
14106
+ /**
14107
+ * Independent Balance
14108
+ *
14109
+ * Account-scope only: what the independent source said at the last comparison, debit-positive.
14110
+ */
14111
+ independent_balance?: number | null;
14112
+ /**
14113
+ * Balance As Of
14114
+ *
14115
+ * Account-scope only: the date the two balances are stated at. The period's last day, unless a statement ended earlier in the period.
14116
+ */
14117
+ balance_as_of?: string | null;
14118
+ /**
14119
+ * Components
14120
+ *
14121
+ * Account-scope only: what makes up the independent balance. One entry per schedule for `schedule_register`; the recorded statement for `statement`.
14122
+ */
14123
+ components?: Array<ReconciliationComponent>;
14124
+ /**
14125
+ * Source
14126
+ *
14127
+ * The system the independent side was read from.
14128
+ */
14129
+ source?: string | null;
14130
+ /**
14131
+ * Compared At
14132
+ *
14133
+ * When the two sides were last compared.
14134
+ */
14135
+ compared_at?: string | null;
14136
+ /**
14137
+ * Fact Set Id
14138
+ *
14139
+ * The FactSet holding the period's comparison.
14140
+ */
14141
+ fact_set_id?: string | null;
14142
+ /**
14143
+ * Compared By
14144
+ *
14145
+ * The user whose action ran the last comparison.
14146
+ */
14147
+ compared_by?: string | null;
14148
+ /**
14149
+ * Compared Via
14150
+ *
14151
+ * `operation` when someone ran refresh-reconciliations; `sync` when a source sync refreshed it.
14152
+ */
14153
+ compared_via?: string | null;
14154
+ /**
14155
+ * Review Required
14156
+ *
14157
+ * Whether the close also waits for a sign-off.
14158
+ */
14159
+ review_required: boolean;
14160
+ /**
14161
+ * Separate Reviewer
14162
+ *
14163
+ * Whether the reviewer must be someone other than the person who ran the comparison.
14164
+ */
14165
+ separate_reviewer: boolean;
14166
+ /**
14167
+ * Reviewed By
14168
+ *
14169
+ * The user who signed off the comparison as it stands. Null when nobody has, or when the balances changed after the sign-off.
14170
+ */
14171
+ reviewed_by?: string | null;
14172
+ /**
14173
+ * Reviewed At
14174
+ *
14175
+ * When the standing sign-off was made.
14176
+ */
14177
+ reviewed_at?: string | null;
14178
+ /**
14179
+ * Self Reviewed
14180
+ *
14181
+ * True when the reviewer is the person who ran the comparison they signed off. Null when there is no standing sign-off.
14182
+ */
14183
+ self_reviewed?: boolean | null;
14184
+ /**
14185
+ * Differences
14186
+ *
14187
+ * Ledger-scope only: the accounts that did not tie at the last comparison, largest difference first.
14188
+ */
14189
+ differences?: Array<ReconciliationRow>;
14190
+ };
14191
+ /**
14192
+ * ReconcilingItemCatchUp
14193
+ *
14194
+ * The catch-up entry a resolution posted.
14195
+ */
14196
+ export type ReconcilingItemCatchUp = {
14197
+ /**
14198
+ * Event Id
14199
+ */
14200
+ event_id: string;
14201
+ /**
14202
+ * Entry Id
14203
+ */
14204
+ entry_id?: string | null;
14205
+ /**
14206
+ * Transaction Id
14207
+ */
14208
+ transaction_id?: string | null;
14209
+ /**
14210
+ * Posting Date
14211
+ */
14212
+ posting_date: string;
14213
+ /**
14214
+ * Status
14215
+ */
14216
+ status: string;
14217
+ };
14218
+ /**
14219
+ * ReconcilingItemDeltaLine
14220
+ *
14221
+ * One account's net change between the posted entries and the new payload.
14222
+ *
14223
+ * Amounts are signed minor units in debit-positive convention: a positive
14224
+ * figure is a net debit, a negative one a net credit. `delta` is what a
14225
+ * catch-up entry would post to bring the books level.
14226
+ */
14227
+ export type ReconcilingItemDeltaLine = {
14228
+ /**
14229
+ * Element Id
14230
+ *
14231
+ * CoA element id; null when the account is unmapped
14232
+ */
14233
+ element_id?: string | null;
14234
+ /**
14235
+ * Element External Id
14236
+ *
14237
+ * Source-system account id, when the line carried one
14238
+ */
14239
+ element_external_id?: string | null;
14240
+ /**
14241
+ * Element Code
14242
+ *
14243
+ * Account code
14244
+ */
14245
+ element_code?: string | null;
14246
+ /**
14247
+ * Element Name
14248
+ *
14249
+ * Account name
14250
+ */
14251
+ element_name?: string | null;
13533
14252
  /**
13534
14253
  * Prior Net
13535
14254
  *
@@ -13692,6 +14411,43 @@ export type ReconcilingItemRegenerated = {
13692
14411
  */
13693
14412
  entry_ids?: Array<string>;
13694
14413
  };
14414
+ /**
14415
+ * RecordStatementBalanceRequest
14416
+ *
14417
+ * Record the ending balance of a statement for one account.
14418
+ */
14419
+ export type RecordStatementBalanceRequest = {
14420
+ /**
14421
+ * Element Id
14422
+ *
14423
+ * The balance-sheet account the statement is for (a chart-of-accounts element id).
14424
+ */
14425
+ element_id: string;
14426
+ /**
14427
+ * As Of
14428
+ *
14429
+ * The statement's ending date.
14430
+ */
14431
+ as_of: string;
14432
+ /**
14433
+ * Balance
14434
+ *
14435
+ * The ending balance as the statement shows it, as a positive number in the account's normal direction: money in a bank account, or the amount owed on a loan or a card. Negative for the opposite, such as an overdrawn bank account.
14436
+ */
14437
+ balance: number;
14438
+ /**
14439
+ * Document Id
14440
+ *
14441
+ * The statement itself, as a document already added with create-document. Kept on the record as evidence.
14442
+ */
14443
+ document_id?: string | null;
14444
+ /**
14445
+ * Note
14446
+ *
14447
+ * Anything worth keeping with the recorded balance.
14448
+ */
14449
+ note?: string | null;
14450
+ };
13695
14451
  /**
13696
14452
  * RecoveryCodesRequest
13697
14453
  *
@@ -13726,6 +14482,19 @@ export type RecoveryCodesResponse = {
13726
14482
  */
13727
14483
  codes: Array<string>;
13728
14484
  };
14485
+ /**
14486
+ * RefreshReconciliationsRequest
14487
+ *
14488
+ * Compare each reconciliation at a period end and record the result.
14489
+ */
14490
+ export type RefreshReconciliationsRequest = {
14491
+ /**
14492
+ * Period
14493
+ *
14494
+ * Period to reconcile at its last day, as YYYY-MM.
14495
+ */
14496
+ period: string;
14497
+ };
13729
14498
  /**
13730
14499
  * RegenerateReportOperation
13731
14500
  *
@@ -14798,6 +15567,12 @@ export type ScheduleMetadataRequest = {
14798
15567
  * BS asset element for net book value
14799
15568
  */
14800
15569
  asset_element_id?: string | null;
15570
+ /**
15571
+ * Booked On
15572
+ *
15573
+ * The date the cost went on the books, when that is before the schedule's first period: a policy paid in December that starts amortizing in January, or an asset bought the month before it is placed in service. From this date until the first period the schedule carries its full cost, so the schedule reconciliation does not report that balance as unscheduled. Leave it out when the cost is booked in the first period.
15574
+ */
15575
+ booked_on?: string | null;
14801
15576
  /**
14802
15577
  * Periodic Amounts
14803
15578
  *
@@ -15415,6 +16190,43 @@ export type SetCloseTargetOperation = {
15415
16190
  */
15416
16191
  note?: string | null;
15417
16192
  };
16193
+ /**
16194
+ * SetReconciliationPolicyRequest
16195
+ *
16196
+ * Change how much the close cares about one reconciliation.
16197
+ */
16198
+ export type SetReconciliationPolicyRequest = {
16199
+ /**
16200
+ * Structure Id
16201
+ *
16202
+ * The reconciliation block.
16203
+ */
16204
+ structure_id: string;
16205
+ /**
16206
+ * Required For Close
16207
+ *
16208
+ * Whether the period's close waits on it. Omit to keep.
16209
+ */
16210
+ required_for_close?: boolean | null;
16211
+ /**
16212
+ * Materiality
16213
+ *
16214
+ * A difference up to this amount still counts as reconciled. Omit to keep.
16215
+ */
16216
+ materiality?: number | null;
16217
+ /**
16218
+ * Review Required
16219
+ *
16220
+ * Whether the close also waits for a sign-off, not just for the two sides to reconcile. Omit to keep.
16221
+ */
16222
+ review_required?: boolean | null;
16223
+ /**
16224
+ * Separate Reviewer
16225
+ *
16226
+ * Whether the person who signs off must be someone other than the person who ran the comparison. It can only be turned on when the graph has at least two members who can write. Omit to keep.
16227
+ */
16228
+ separate_reviewer?: boolean | null;
16229
+ };
15418
16230
  /**
15419
16231
  * SetWritePolicyRequest
15420
16232
  *
@@ -15500,6 +16312,31 @@ export type ShareResultItem = {
15500
16312
  */
15501
16313
  fact_count?: number;
15502
16314
  };
16315
+ /**
16316
+ * SignOffReconciliationRequest
16317
+ *
16318
+ * Sign off a reconciliation for a period as its reviewer.
16319
+ */
16320
+ export type SignOffReconciliationRequest = {
16321
+ /**
16322
+ * Structure Id
16323
+ *
16324
+ * The reconciliation block.
16325
+ */
16326
+ structure_id: string;
16327
+ /**
16328
+ * Period
16329
+ *
16330
+ * The period signed off, as YYYY-MM.
16331
+ */
16332
+ period: string;
16333
+ /**
16334
+ * Note
16335
+ *
16336
+ * What the reviewer looked at, kept on the sign-off.
16337
+ */
16338
+ note?: string | null;
16339
+ };
15503
16340
  /**
15504
16341
  * SkippedForecastLite
15505
16342
  *
@@ -17441,7 +18278,7 @@ export type UpdateInformationBlockRequest = ({
17441
18278
  } & UpdateRollforwardArm) | ({
17442
18279
  block_type: 'forecast';
17443
18280
  } & UpdateForecastArm) | ({
17444
- block_type: 'balance_sheet' | 'cash_flow_statement' | 'comprehensive_income' | 'equity_statement' | 'income_statement' | 'metric' | 'regulatory_disclosure';
18281
+ block_type: 'balance_sheet' | 'cash_flow_statement' | 'comprehensive_income' | 'equity_statement' | 'income_statement' | 'metric' | 'reconciliation' | 'regulatory_disclosure';
17445
18282
  } & UpdateLegacyArm);
17446
18283
  /**
17447
18284
  * UpdateJournalEntryRequest
@@ -17687,7 +18524,8 @@ export type UpdateRollforwardRequest = {
17687
18524
  * entry), then create a fresh schedule via `create-information-block`
17688
18525
  * (`block_type='schedule'`).
17689
18526
  *
17690
- * Omitted fields are left unchanged.
18527
+ * Omitted fields are left unchanged, and that holds inside
18528
+ * `schedule_metadata` too: name only the fields to change.
17691
18529
  */
17692
18530
  export type UpdateScheduleRequest = {
17693
18531
  /**
@@ -18376,7 +19214,7 @@ export type CreateLegacyArm = {
18376
19214
  *
18377
19215
  * Statement-family or metric block type. The endpoint returns 501 for these values — statements are constructed via `create-report`; metric construction is pending.
18378
19216
  */
18379
- block_type: 'balance_sheet' | 'income_statement' | 'cash_flow_statement' | 'equity_statement' | 'comprehensive_income' | 'regulatory_disclosure' | 'metric';
19217
+ block_type: 'balance_sheet' | 'income_statement' | 'cash_flow_statement' | 'equity_statement' | 'comprehensive_income' | 'regulatory_disclosure' | 'metric' | 'reconciliation';
18380
19218
  /**
18381
19219
  * Payload
18382
19220
  *
@@ -18463,7 +19301,7 @@ export type DeleteLegacyArm = {
18463
19301
  *
18464
19302
  * Statement-family or metric block type. Deletion returns 501 — statements are library-seeded (archive the underlying Report instead); metric deletion is pending.
18465
19303
  */
18466
- block_type: 'balance_sheet' | 'income_statement' | 'cash_flow_statement' | 'equity_statement' | 'comprehensive_income' | 'regulatory_disclosure' | 'metric';
19304
+ block_type: 'balance_sheet' | 'income_statement' | 'cash_flow_statement' | 'equity_statement' | 'comprehensive_income' | 'regulatory_disclosure' | 'metric' | 'reconciliation';
18467
19305
  /**
18468
19306
  * Payload
18469
19307
  *
@@ -18549,7 +19387,7 @@ export type UpdateLegacyArm = {
18549
19387
  *
18550
19388
  * Statement-family or metric block type. Updates return 501 — statement Structures are library-seeded; metric updates are pending.
18551
19389
  */
18552
- block_type: 'balance_sheet' | 'income_statement' | 'cash_flow_statement' | 'equity_statement' | 'comprehensive_income' | 'regulatory_disclosure' | 'metric';
19390
+ block_type: 'balance_sheet' | 'income_statement' | 'cash_flow_statement' | 'equity_statement' | 'comprehensive_income' | 'regulatory_disclosure' | 'metric' | 'reconciliation';
18553
19391
  /**
18554
19392
  * Payload
18555
19393
  *
@@ -27121,6 +27959,301 @@ export type ResolveReconcilingItemResponses = {
27121
27959
  200: OperationEnvelopeResolveReconcilingItemResponse;
27122
27960
  };
27123
27961
  export type ResolveReconcilingItemResponse2 = ResolveReconcilingItemResponses[keyof ResolveReconcilingItemResponses];
27962
+ export type PreviewReconciliationsData = {
27963
+ body: PreviewReconciliationsRequest;
27964
+ headers?: {
27965
+ /**
27966
+ * Idempotency-Key
27967
+ */
27968
+ 'Idempotency-Key'?: string | null;
27969
+ };
27970
+ path: {
27971
+ /**
27972
+ * Graph Id
27973
+ */
27974
+ graph_id: string;
27975
+ };
27976
+ query?: never;
27977
+ url: '/extensions/roboledger/{graph_id}/operations/preview-reconciliations';
27978
+ };
27979
+ export type PreviewReconciliationsErrors = {
27980
+ /**
27981
+ * Invalid request
27982
+ */
27983
+ 400: ErrorResponse;
27984
+ /**
27985
+ * Authentication required
27986
+ */
27987
+ 401: ErrorResponse;
27988
+ /**
27989
+ * Access denied
27990
+ */
27991
+ 403: ErrorResponse;
27992
+ /**
27993
+ * Resource not found
27994
+ */
27995
+ 404: ErrorResponse;
27996
+ /**
27997
+ * Idempotency-Key conflict — key reused with different body
27998
+ */
27999
+ 409: ErrorResponse;
28000
+ /**
28001
+ * Validation error
28002
+ */
28003
+ 422: ErrorResponse;
28004
+ /**
28005
+ * Rate limit exceeded
28006
+ */
28007
+ 429: ErrorResponse;
28008
+ /**
28009
+ * Internal server error
28010
+ */
28011
+ 500: ErrorResponse;
28012
+ };
28013
+ export type PreviewReconciliationsError = PreviewReconciliationsErrors[keyof PreviewReconciliationsErrors];
28014
+ export type PreviewReconciliationsResponses = {
28015
+ /**
28016
+ * Successful Response
28017
+ */
28018
+ 200: OperationEnvelopeReconciliationPreviewResponse;
28019
+ };
28020
+ export type PreviewReconciliationsResponse = PreviewReconciliationsResponses[keyof PreviewReconciliationsResponses];
28021
+ export type RefreshReconciliationsData = {
28022
+ body: RefreshReconciliationsRequest;
28023
+ headers?: {
28024
+ /**
28025
+ * Idempotency-Key
28026
+ */
28027
+ 'Idempotency-Key'?: string | null;
28028
+ };
28029
+ path: {
28030
+ /**
28031
+ * Graph Id
28032
+ */
28033
+ graph_id: string;
28034
+ };
28035
+ query?: never;
28036
+ url: '/extensions/roboledger/{graph_id}/operations/refresh-reconciliations';
28037
+ };
28038
+ export type RefreshReconciliationsErrors = {
28039
+ /**
28040
+ * Invalid request
28041
+ */
28042
+ 400: ErrorResponse;
28043
+ /**
28044
+ * Authentication required
28045
+ */
28046
+ 401: ErrorResponse;
28047
+ /**
28048
+ * Access denied
28049
+ */
28050
+ 403: ErrorResponse;
28051
+ /**
28052
+ * Resource not found
28053
+ */
28054
+ 404: ErrorResponse;
28055
+ /**
28056
+ * Idempotency-Key conflict — key reused with different body
28057
+ */
28058
+ 409: ErrorResponse;
28059
+ /**
28060
+ * Validation error
28061
+ */
28062
+ 422: ErrorResponse;
28063
+ /**
28064
+ * Rate limit exceeded
28065
+ */
28066
+ 429: ErrorResponse;
28067
+ /**
28068
+ * Internal server error
28069
+ */
28070
+ 500: ErrorResponse;
28071
+ };
28072
+ export type RefreshReconciliationsError = RefreshReconciliationsErrors[keyof RefreshReconciliationsErrors];
28073
+ export type RefreshReconciliationsResponses = {
28074
+ /**
28075
+ * Successful Response
28076
+ */
28077
+ 200: OperationEnvelopeReconciliationListResponse;
28078
+ };
28079
+ export type RefreshReconciliationsResponse = RefreshReconciliationsResponses[keyof RefreshReconciliationsResponses];
28080
+ export type RecordStatementBalanceData = {
28081
+ body: RecordStatementBalanceRequest;
28082
+ headers?: {
28083
+ /**
28084
+ * Idempotency-Key
28085
+ */
28086
+ 'Idempotency-Key'?: string | null;
28087
+ };
28088
+ path: {
28089
+ /**
28090
+ * Graph Id
28091
+ */
28092
+ graph_id: string;
28093
+ };
28094
+ query?: never;
28095
+ url: '/extensions/roboledger/{graph_id}/operations/record-statement-balance';
28096
+ };
28097
+ export type RecordStatementBalanceErrors = {
28098
+ /**
28099
+ * Invalid request
28100
+ */
28101
+ 400: ErrorResponse;
28102
+ /**
28103
+ * Authentication required
28104
+ */
28105
+ 401: ErrorResponse;
28106
+ /**
28107
+ * Access denied
28108
+ */
28109
+ 403: ErrorResponse;
28110
+ /**
28111
+ * Resource not found
28112
+ */
28113
+ 404: ErrorResponse;
28114
+ /**
28115
+ * Idempotency-Key conflict — key reused with different body
28116
+ */
28117
+ 409: ErrorResponse;
28118
+ /**
28119
+ * Validation error
28120
+ */
28121
+ 422: ErrorResponse;
28122
+ /**
28123
+ * Rate limit exceeded
28124
+ */
28125
+ 429: ErrorResponse;
28126
+ /**
28127
+ * Internal server error
28128
+ */
28129
+ 500: ErrorResponse;
28130
+ };
28131
+ export type RecordStatementBalanceError = RecordStatementBalanceErrors[keyof RecordStatementBalanceErrors];
28132
+ export type RecordStatementBalanceResponses = {
28133
+ /**
28134
+ * Successful Response
28135
+ */
28136
+ 200: OperationEnvelopeReconciliationSummary;
28137
+ };
28138
+ export type RecordStatementBalanceResponse = RecordStatementBalanceResponses[keyof RecordStatementBalanceResponses];
28139
+ export type SetReconciliationPolicyData = {
28140
+ body: SetReconciliationPolicyRequest;
28141
+ headers?: {
28142
+ /**
28143
+ * Idempotency-Key
28144
+ */
28145
+ 'Idempotency-Key'?: string | null;
28146
+ };
28147
+ path: {
28148
+ /**
28149
+ * Graph Id
28150
+ */
28151
+ graph_id: string;
28152
+ };
28153
+ query?: never;
28154
+ url: '/extensions/roboledger/{graph_id}/operations/set-reconciliation-policy';
28155
+ };
28156
+ export type SetReconciliationPolicyErrors = {
28157
+ /**
28158
+ * Invalid request
28159
+ */
28160
+ 400: ErrorResponse;
28161
+ /**
28162
+ * Authentication required
28163
+ */
28164
+ 401: ErrorResponse;
28165
+ /**
28166
+ * Access denied
28167
+ */
28168
+ 403: ErrorResponse;
28169
+ /**
28170
+ * Resource not found
28171
+ */
28172
+ 404: ErrorResponse;
28173
+ /**
28174
+ * Idempotency-Key conflict — key reused with different body
28175
+ */
28176
+ 409: ErrorResponse;
28177
+ /**
28178
+ * Validation error
28179
+ */
28180
+ 422: ErrorResponse;
28181
+ /**
28182
+ * Rate limit exceeded
28183
+ */
28184
+ 429: ErrorResponse;
28185
+ /**
28186
+ * Internal server error
28187
+ */
28188
+ 500: ErrorResponse;
28189
+ };
28190
+ export type SetReconciliationPolicyError = SetReconciliationPolicyErrors[keyof SetReconciliationPolicyErrors];
28191
+ export type SetReconciliationPolicyResponses = {
28192
+ /**
28193
+ * Successful Response
28194
+ */
28195
+ 200: OperationEnvelopeReconciliationPolicyResponse;
28196
+ };
28197
+ export type SetReconciliationPolicyResponse = SetReconciliationPolicyResponses[keyof SetReconciliationPolicyResponses];
28198
+ export type SignOffReconciliationData = {
28199
+ body: SignOffReconciliationRequest;
28200
+ headers?: {
28201
+ /**
28202
+ * Idempotency-Key
28203
+ */
28204
+ 'Idempotency-Key'?: string | null;
28205
+ };
28206
+ path: {
28207
+ /**
28208
+ * Graph Id
28209
+ */
28210
+ graph_id: string;
28211
+ };
28212
+ query?: never;
28213
+ url: '/extensions/roboledger/{graph_id}/operations/sign-off-reconciliation';
28214
+ };
28215
+ export type SignOffReconciliationErrors = {
28216
+ /**
28217
+ * Invalid request
28218
+ */
28219
+ 400: ErrorResponse;
28220
+ /**
28221
+ * Authentication required
28222
+ */
28223
+ 401: ErrorResponse;
28224
+ /**
28225
+ * Access denied
28226
+ */
28227
+ 403: ErrorResponse;
28228
+ /**
28229
+ * Resource not found
28230
+ */
28231
+ 404: ErrorResponse;
28232
+ /**
28233
+ * Idempotency-Key conflict — key reused with different body
28234
+ */
28235
+ 409: ErrorResponse;
28236
+ /**
28237
+ * Validation error
28238
+ */
28239
+ 422: ErrorResponse;
28240
+ /**
28241
+ * Rate limit exceeded
28242
+ */
28243
+ 429: ErrorResponse;
28244
+ /**
28245
+ * Internal server error
28246
+ */
28247
+ 500: ErrorResponse;
28248
+ };
28249
+ export type SignOffReconciliationError = SignOffReconciliationErrors[keyof SignOffReconciliationErrors];
28250
+ export type SignOffReconciliationResponses = {
28251
+ /**
28252
+ * Successful Response
28253
+ */
28254
+ 200: OperationEnvelopeReconciliationSummary;
28255
+ };
28256
+ export type SignOffReconciliationResponse = SignOffReconciliationResponses[keyof SignOffReconciliationResponses];
27124
28257
  export type UpdateJournalEntryData = {
27125
28258
  body: UpdateJournalEntryRequest;
27126
28259
  headers?: {