@robosystems/client 1.10.1 → 1.12.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
@@ -158,6 +158,10 @@ export type AnalyticalStatementFactRow = {
158
158
  * Value
159
159
  */
160
160
  value?: number | null;
161
+ /**
162
+ * Start Date
163
+ */
164
+ start_date?: string | null;
161
165
  /**
162
166
  * End Date
163
167
  */
@@ -686,6 +690,12 @@ export type BackfillPlanHistoryOperation = {
686
690
  * Override the stranded-obligation gate on each reclose. Only needed when a matured classified obligation without a drafted entry exists inside the backfill window and you have decided not to draft or void it first.
687
691
  */
688
692
  allow_stranded_obligations?: boolean;
693
+ /**
694
+ * Allow Reconciling Items
695
+ *
696
+ * Override the reconciling-item gate on each reclose. Only needed when an event inside the backfill window is still flagged as changed upstream and you have decided not to resolve it first.
697
+ */
698
+ allow_reconciling_items?: boolean;
689
699
  /**
690
700
  * Restamp
691
701
  *
@@ -896,7 +906,7 @@ export type BackupResponse = {
896
906
  /**
897
907
  * Initiated By
898
908
  *
899
- * Who started this backup. 'user' is one you requested and it counts against the tier's daily backup limit; 'scheduled' is taken nightly on your behalf and does not.
909
+ * Who started this backup. 'user' is one you requested and it counts against the tier's daily backup limit; 'scheduled' is taken nightly on your behalf and does not; 'final' is the copy taken when a graph is deprovisioned, so you can still retrieve your data afterwards.
900
910
  */
901
911
  initiated_by?: string;
902
912
  /**
@@ -1612,6 +1622,12 @@ export type ClosePeriodOperation = {
1612
1622
  * Override the stranded-obligation gate — close even though matured classified obligations have no drafted closing entry, knowingly omitting those adjusting entries from the period. Prefer running promote-obligations with dispatch_handlers=true (which drafts them) or voiding the obligations instead. The override is recorded in the close audit note.
1613
1623
  */
1614
1624
  allow_stranded_obligations?: boolean;
1625
+ /**
1626
+ * Allow Reconciling Items
1627
+ *
1628
+ * Override the reconciling-item gate — close even though posted events in the period are still flagged as changed in the source system, leaving those differences undecided. The next sync will still report them, and the statements stamped by this close may disagree with the source. Prefer resolve-reconciling-item on each first. The override is recorded in the close audit note.
1629
+ */
1630
+ allow_reconciling_items?: boolean;
1615
1631
  /**
1616
1632
  * Period
1617
1633
  *
@@ -1754,9 +1770,15 @@ export type ComputeForecastResponse = {
1754
1770
  /**
1755
1771
  * Base Period
1756
1772
  *
1757
- * Seed month the walk projected from.
1773
+ * Origin month of the block's authored horizon window — where its levers are keyed from. Equal to ``anchor_period`` unless the walk re-anchored at the seam.
1758
1774
  */
1759
1775
  base_period: string;
1776
+ /**
1777
+ * Anchor Period
1778
+ *
1779
+ * Month the walk actually seeded its opening balances from. With ``base_anchor='seam'`` this advances to the newest closed month as periods close, so the first forward month rolls off real balances instead of a stale base; with ``'fixed'`` it always equals ``base_period``.
1780
+ */
1781
+ anchor_period: string;
1760
1782
  /**
1761
1783
  * Months
1762
1784
  *
@@ -1992,7 +2014,7 @@ export type ConnectionProviderInfo = {
1992
2014
  *
1993
2015
  * Provider identifier
1994
2016
  */
1995
- provider: 'sec' | 'quickbooks' | 'external';
2017
+ provider: 'quickbooks' | 'external';
1996
2018
  /**
1997
2019
  * Display Name
1998
2020
  *
@@ -2385,14 +2407,13 @@ export type CreateConnectionRequest = {
2385
2407
  *
2386
2408
  * Connection provider type
2387
2409
  */
2388
- provider: 'sec' | 'quickbooks' | 'external';
2410
+ provider: 'quickbooks' | 'external';
2389
2411
  /**
2390
2412
  * Entity Id
2391
2413
  *
2392
- * Entity identifier. Required for QuickBooks, optional for SEC (SEC creates the entity from filing data).
2414
+ * Entity identifier. Required for QuickBooks.
2393
2415
  */
2394
2416
  entity_id?: string | null;
2395
- sec_config?: SecConnectionConfig | null;
2396
2417
  quickbooks_config?: QuickBooksConnectionConfig | null;
2397
2418
  external_config?: ExternalConnectionConfig | null;
2398
2419
  };
@@ -2656,9 +2677,15 @@ export type CreateForecastRequest = {
2656
2677
  /**
2657
2678
  * Base Period
2658
2679
  *
2659
- * Seed month (``YYYY-MM``) the walk projects forward from. Defaults to the fiscal calendar's closed-through period, else the newest actual report month. Resolved and stored at create time.
2680
+ * Seed month (``YYYY-MM``) the walk projects forward from. Defaults to the fiscal calendar's closed-through period, else the newest actual report month. Resolved and stored at create time, and it never moves afterwards — every lever is keyed to a month inside ``base_period + 1 … + horizon_months``, so moving it would mean restating all of them. ``base_anchor`` decides whether the walk still *seeds* here once months close under it.
2660
2681
  */
2661
2682
  base_period?: string | null;
2683
+ /**
2684
+ * Base Anchor
2685
+ *
2686
+ * Where the walk takes its opening balances as periods close. ``seam`` (default) re-anchors on the newest closed month inside the horizon, so the scenario survives a close untouched and its first forward month rolls off real balances. ``fixed`` pins the walk to ``base_period`` — the deliberate counterfactual, whose balances are meant to diverge from actuals.
2687
+ */
2688
+ base_anchor?: 'seam' | 'fixed';
2662
2689
  /**
2663
2690
  * Levers
2664
2691
  *
@@ -3170,8 +3197,7 @@ export type CreateSubgraphRequest = {
3170
3197
  * extends a library taxonomy) and ignored otherwise.
3171
3198
  *
3172
3199
  * The library path (seeding ``reporting_standard`` rows) does NOT flow
3173
- * through this envelope — it uses a dedicated library writer that bypasses
3174
- * these caps and tenant scoping.
3200
+ * through this envelope; library content is not tenant-writable here.
3175
3201
  */
3176
3202
  export type CreateTaxonomyBlockRequest = {
3177
3203
  /**
@@ -4018,9 +4044,11 @@ export type DeleteRollforwardRequest = {
4018
4044
  *
4019
4045
  * Hard deletes the Structure, all Facts tied to it, and all
4020
4046
  * Associations tied to it. This is a permanent, irreversible
4021
- * operation. For ending a schedule early without removing history,
4022
- * fire `create-event-block(event_type='asset_disposed')` instead — the
4023
- * handler truncates the schedule + posts the disposal entry atomically.
4047
+ * operation. For ending a schedule early without removing history, use
4048
+ * `terminate-schedule` (no entry) or
4049
+ * `create-event-block(event_type='asset_disposed')` (the handler voids
4050
+ * the remaining obligation chain + posts the disposal entry atomically;
4051
+ * recognized facts stay as history).
4024
4052
  */
4025
4053
  export type DeleteScheduleRequest = {
4026
4054
  /**
@@ -4062,7 +4090,7 @@ export type DeleteSubgraphOp = {
4062
4090
  /**
4063
4091
  * Backup First
4064
4092
  *
4065
- * Create a backup before deleting
4093
+ * Take a full backup of the subgraph before deleting it. The backup is registered on the parent graph's backup list, where it can be listed and downloaded after the subgraph is gone. If the backup fails the subgraph is not deleted.
4066
4094
  */
4067
4095
  backup_first?: boolean;
4068
4096
  };
@@ -5703,6 +5731,18 @@ export type FiscalCalendarResponse = {
5703
5731
  * Sample of up to 5 stranded obligations (schedule_id, schedule_name, period, event_id) ordered by occurred_at.
5704
5732
  */
5705
5733
  stranded_obligation_sample?: Array<PendingObligationDetailResponse>;
5734
+ /**
5735
+ * Reconciling Item Count
5736
+ *
5737
+ * Posted events in or before this period whose source payload changed afterwards and that nobody has dispositioned — differences between the books and the source system. Resolve each with resolve-reconciling-item, or close over them knowingly with allow_reconciling_items.
5738
+ */
5739
+ reconciling_item_count?: number;
5740
+ /**
5741
+ * Reconciling Item Sample
5742
+ *
5743
+ * Source identifiers (or event ids) of up to 5 unresolved reconciling items, so the blocker names what is holding the close.
5744
+ */
5745
+ reconciling_item_sample?: Array<string>;
5706
5746
  /**
5707
5747
  * Last Close At
5708
5748
  */
@@ -5758,6 +5798,12 @@ export type FiscalPeriodSummary = {
5758
5798
  * Closed At
5759
5799
  */
5760
5800
  closed_at?: string | null;
5801
+ /**
5802
+ * Has Close Receipt
5803
+ *
5804
+ * Whether this period carries a close receipt. A flag rather than the receipt itself keeps the calendar listing compact; fetch the receipt from `get-period-close-status` for the period. False on open periods and on periods closed before receipts shipped.
5805
+ */
5806
+ has_close_receipt?: boolean;
5761
5807
  };
5762
5808
  /**
5763
5809
  * ForecastMechanics
@@ -5794,9 +5840,15 @@ export type ForecastMechanics = {
5794
5840
  /**
5795
5841
  * Base Period
5796
5842
  *
5797
- * Seed month (``YYYY-MM``) the walk projects forward from — resolved at create time (request → fiscal calendar closed-through → newest actual report month) and stored so recompute is deterministic.
5843
+ * Origin month (``YYYY-MM``) of the authored horizon window — resolved at create time (request → fiscal calendar closed-through → newest actual report month) and stored so recompute is deterministic. Every lever, line assertion and growth rate is keyed to a month in ``base_period + 1 … base_period + horizon_months``, so this never moves on its own; ``base_anchor`` decides whether the *walk* still seeds here.
5798
5844
  */
5799
5845
  base_period: string;
5846
+ /**
5847
+ * Base Anchor
5848
+ *
5849
+ * Where the walk takes its opening balances. ``seam`` (default) re-anchors on the newest closed month at or after ``base_period``, so a scenario survives a period close without being rebuilt and its first forward month rolls off real balances. ``fixed`` pins the walk to ``base_period`` — the deliberate counterfactual (“if we had restarted in July”), whose balances diverge from actuals on purpose.
5850
+ */
5851
+ base_anchor?: 'seam' | 'fixed';
5800
5852
  /**
5801
5853
  * Levers
5802
5854
  *
@@ -8406,48 +8458,6 @@ export type LoginRequest = {
8406
8458
  */
8407
8459
  password: string;
8408
8460
  };
8409
- /**
8410
- * MCPToolCall
8411
- *
8412
- * Request model for MCP tool execution.
8413
- */
8414
- export type McpToolCall = {
8415
- /**
8416
- * Name
8417
- *
8418
- * Name of the MCP tool to execute
8419
- */
8420
- name: string;
8421
- /**
8422
- * Arguments
8423
- *
8424
- * Arguments to pass to the tool
8425
- */
8426
- arguments?: {
8427
- [key: string]: unknown;
8428
- };
8429
- };
8430
- /**
8431
- * MCPToolsResponse
8432
- *
8433
- * Response model for MCP tools listing.
8434
- */
8435
- export type McpToolsResponse = {
8436
- /**
8437
- * Tools
8438
- *
8439
- * List of available MCP tools with their schemas
8440
- */
8441
- tools: Array<{
8442
- [key: string]: unknown;
8443
- }>;
8444
- /**
8445
- * Instructions
8446
- *
8447
- * Per-graph routing guidance for MCP clients, tailored to the graph's category and live tool set. Clients should pass this to the MCP server's `instructions` handshake field so it is always in the agent's context.
8448
- */
8449
- instructions?: string | null;
8450
- };
8451
8461
  /**
8452
8462
  * MaterializeOp
8453
8463
  *
@@ -8784,6 +8794,86 @@ export type OAuthCallbackResponse = {
8784
8794
  */
8785
8795
  auto_sync_task_id?: string | null;
8786
8796
  };
8797
+ /**
8798
+ * OAuthGrantInfo
8799
+ *
8800
+ * A connected app: one OAuth consent for one client on one graph.
8801
+ */
8802
+ export type OAuthGrantInfo = {
8803
+ /**
8804
+ * Id
8805
+ *
8806
+ * Grant ID
8807
+ */
8808
+ id: string;
8809
+ /**
8810
+ * Client Name
8811
+ *
8812
+ * The connected client's display name
8813
+ */
8814
+ client_name: string;
8815
+ /**
8816
+ * Client Uri
8817
+ *
8818
+ * The client's homepage, if declared
8819
+ */
8820
+ client_uri?: string | null;
8821
+ /**
8822
+ * Client Is Trusted
8823
+ *
8824
+ * Whether the client is on the trusted list (pre-registered, or a known metadata-document host). Untrusted clients registered themselves.
8825
+ */
8826
+ client_is_trusted: boolean;
8827
+ /**
8828
+ * Graph Id
8829
+ *
8830
+ * The one graph this consent reaches
8831
+ */
8832
+ graph_id: string;
8833
+ /**
8834
+ * Graph Name
8835
+ *
8836
+ * The graph's display name, when the graph still exists
8837
+ */
8838
+ graph_name?: string | null;
8839
+ /**
8840
+ * Resource
8841
+ *
8842
+ * The MCP URL the grant's tokens are bound to (their audience)
8843
+ */
8844
+ resource: string;
8845
+ /**
8846
+ * Scope
8847
+ *
8848
+ * Granted scopes, space-separated
8849
+ */
8850
+ scope: string;
8851
+ /**
8852
+ * Created At
8853
+ *
8854
+ * When the user consented
8855
+ */
8856
+ created_at: string;
8857
+ /**
8858
+ * Last Used At
8859
+ *
8860
+ * Last token use, if any
8861
+ */
8862
+ last_used_at?: string | null;
8863
+ };
8864
+ /**
8865
+ * OAuthGrantsResponse
8866
+ *
8867
+ * Response model for listing connected apps.
8868
+ */
8869
+ export type OAuthGrantsResponse = {
8870
+ /**
8871
+ * Grants
8872
+ *
8873
+ * Active OAuth grants, newest first
8874
+ */
8875
+ grants: Array<OAuthGrantInfo>;
8876
+ };
8787
8877
  /**
8788
8878
  * OAuthInitRequest
8789
8879
  *
@@ -10451,6 +10541,51 @@ export type OperationEnvelopePublishListResponse = {
10451
10541
  */
10452
10542
  idempotentReplay?: boolean;
10453
10543
  };
10544
+ /**
10545
+ * OperationEnvelope[ReconcilingItemPlan]
10546
+ */
10547
+ export type OperationEnvelopeReconcilingItemPlan = {
10548
+ /**
10549
+ * Operation
10550
+ *
10551
+ * Kebab-case operation name
10552
+ */
10553
+ operation: string;
10554
+ /**
10555
+ * Operationid
10556
+ *
10557
+ * op_-prefixed ULID for audit and SSE correlation
10558
+ */
10559
+ operationId: string;
10560
+ /**
10561
+ * Status
10562
+ *
10563
+ * Operation lifecycle state
10564
+ */
10565
+ status: 'completed' | 'pending' | 'failed';
10566
+ /**
10567
+ * Command-specific result payload
10568
+ */
10569
+ result?: ReconcilingItemPlan | null;
10570
+ /**
10571
+ * At
10572
+ *
10573
+ * ISO-8601 UTC timestamp
10574
+ */
10575
+ at: string;
10576
+ /**
10577
+ * Createdby
10578
+ *
10579
+ * User ID that initiated the operation (null for legacy callers)
10580
+ */
10581
+ createdBy?: string | null;
10582
+ /**
10583
+ * Idempotentreplay
10584
+ *
10585
+ * True when this envelope came from the idempotency cache — the underlying command did not execute again. False on fresh executions.
10586
+ */
10587
+ idempotentReplay?: boolean;
10588
+ };
10454
10589
  /**
10455
10590
  * OperationEnvelope[ReportResponse]
10456
10591
  */
@@ -10496,6 +10631,51 @@ export type OperationEnvelopeReportResponse = {
10496
10631
  */
10497
10632
  idempotentReplay?: boolean;
10498
10633
  };
10634
+ /**
10635
+ * OperationEnvelope[ResolveReconcilingItemResponse]
10636
+ */
10637
+ export type OperationEnvelopeResolveReconcilingItemResponse = {
10638
+ /**
10639
+ * Operation
10640
+ *
10641
+ * Kebab-case operation name
10642
+ */
10643
+ operation: string;
10644
+ /**
10645
+ * Operationid
10646
+ *
10647
+ * op_-prefixed ULID for audit and SSE correlation
10648
+ */
10649
+ operationId: string;
10650
+ /**
10651
+ * Status
10652
+ *
10653
+ * Operation lifecycle state
10654
+ */
10655
+ status: 'completed' | 'pending' | 'failed';
10656
+ /**
10657
+ * Command-specific result payload
10658
+ */
10659
+ result?: ResolveReconcilingItemResponse | null;
10660
+ /**
10661
+ * At
10662
+ *
10663
+ * ISO-8601 UTC timestamp
10664
+ */
10665
+ at: string;
10666
+ /**
10667
+ * Createdby
10668
+ *
10669
+ * User ID that initiated the operation (null for legacy callers)
10670
+ */
10671
+ createdBy?: string | null;
10672
+ /**
10673
+ * Idempotentreplay
10674
+ *
10675
+ * True when this envelope came from the idempotency cache — the underlying command did not execute again. False on fresh executions.
10676
+ */
10677
+ idempotentReplay?: boolean;
10678
+ };
10499
10679
  /**
10500
10680
  * OperationEnvelope[RevokeReportShareResponse]
10501
10681
  */
@@ -10721,6 +10901,51 @@ export type OperationEnvelopeTaxonomyBlockEnvelope = {
10721
10901
  */
10722
10902
  idempotentReplay?: boolean;
10723
10903
  };
10904
+ /**
10905
+ * OperationEnvelope[TerminateScheduleResponse]
10906
+ */
10907
+ export type OperationEnvelopeTerminateScheduleResponse = {
10908
+ /**
10909
+ * Operation
10910
+ *
10911
+ * Kebab-case operation name
10912
+ */
10913
+ operation: string;
10914
+ /**
10915
+ * Operationid
10916
+ *
10917
+ * op_-prefixed ULID for audit and SSE correlation
10918
+ */
10919
+ operationId: string;
10920
+ /**
10921
+ * Status
10922
+ *
10923
+ * Operation lifecycle state
10924
+ */
10925
+ status: 'completed' | 'pending' | 'failed';
10926
+ /**
10927
+ * Command-specific result payload
10928
+ */
10929
+ result?: TerminateScheduleResponse | null;
10930
+ /**
10931
+ * At
10932
+ *
10933
+ * ISO-8601 UTC timestamp
10934
+ */
10935
+ at: string;
10936
+ /**
10937
+ * Createdby
10938
+ *
10939
+ * User ID that initiated the operation (null for legacy callers)
10940
+ */
10941
+ createdBy?: string | null;
10942
+ /**
10943
+ * Idempotentreplay
10944
+ *
10945
+ * True when this envelope came from the idempotency cache — the underlying command did not execute again. False on fresh executions.
10946
+ */
10947
+ idempotentReplay?: boolean;
10948
+ };
10724
10949
  /**
10725
10950
  * OperationEnvelope[ViewResponse]
10726
10951
  */
@@ -11163,6 +11388,12 @@ export type OrgInvitationResponse = {
11163
11388
  * Is Expired
11164
11389
  */
11165
11390
  is_expired: boolean;
11391
+ /**
11392
+ * Token
11393
+ *
11394
+ * Test-support only: the raw invite token. Populated ONLY when AUTH_INVITE_TOKEN_IN_RESPONSE is enabled in a non-production environment; always null in production. Lets automated authorization tests complete the invite -> register flow without email interception.
11395
+ */
11396
+ token?: string | null;
11166
11397
  };
11167
11398
  /**
11168
11399
  * OrgLimitsResponse
@@ -12248,6 +12479,19 @@ export type PreviewEventBlockResponse = {
12248
12479
  [key: string]: unknown;
12249
12480
  };
12250
12481
  };
12482
+ /**
12483
+ * PreviewReconcilingItemRequest
12484
+ *
12485
+ * Read what changed on a reconciling item, and what resolving it would do.
12486
+ */
12487
+ export type PreviewReconcilingItemRequest = {
12488
+ /**
12489
+ * Event Id
12490
+ *
12491
+ * Event id (evt_ prefixed) to inspect
12492
+ */
12493
+ event_id: string;
12494
+ };
12251
12495
  /**
12252
12496
  * PromoteObligationsRequest
12253
12497
  *
@@ -12514,21 +12758,244 @@ export type RebuildScheduleRequest = {
12514
12758
  structure_id: string;
12515
12759
  };
12516
12760
  /**
12517
- * RecoveryCodesRequest
12761
+ * ReconcilingItemCatchUp
12518
12762
  *
12519
- * Re-authentication proof for regenerating recovery codes.
12763
+ * The catch-up entry a resolution posted.
12520
12764
  */
12521
- export type RecoveryCodesRequest = {
12765
+ export type ReconcilingItemCatchUp = {
12522
12766
  /**
12523
- * Password
12524
- *
12525
- * Current password (password-holding users)
12767
+ * Event Id
12526
12768
  */
12527
- password?: string | null;
12769
+ event_id: string;
12528
12770
  /**
12529
- * Assertion
12530
- *
12531
- * Fresh WebAuthn assertion from the re-auth ceremony
12771
+ * Entry Id
12772
+ */
12773
+ entry_id?: string | null;
12774
+ /**
12775
+ * Transaction Id
12776
+ */
12777
+ transaction_id?: string | null;
12778
+ /**
12779
+ * Posting Date
12780
+ */
12781
+ posting_date: string;
12782
+ /**
12783
+ * Status
12784
+ */
12785
+ status: string;
12786
+ };
12787
+ /**
12788
+ * ReconcilingItemDeltaLine
12789
+ *
12790
+ * One account's net change between the posted entries and the new payload.
12791
+ *
12792
+ * Amounts are signed minor units in debit-positive convention: a positive
12793
+ * figure is a net debit, a negative one a net credit. ``delta`` is what a
12794
+ * catch-up entry would post to bring the books level.
12795
+ */
12796
+ export type ReconcilingItemDeltaLine = {
12797
+ /**
12798
+ * Element Id
12799
+ *
12800
+ * CoA element id; null when the account is unmapped
12801
+ */
12802
+ element_id?: string | null;
12803
+ /**
12804
+ * Element External Id
12805
+ *
12806
+ * Source-system account id, when the line carried one
12807
+ */
12808
+ element_external_id?: string | null;
12809
+ /**
12810
+ * Element Code
12811
+ *
12812
+ * Account code
12813
+ */
12814
+ element_code?: string | null;
12815
+ /**
12816
+ * Element Name
12817
+ *
12818
+ * Account name
12819
+ */
12820
+ element_name?: string | null;
12821
+ /**
12822
+ * Prior Net
12823
+ *
12824
+ * Net of the posted entries, debit-positive
12825
+ */
12826
+ prior_net: number;
12827
+ /**
12828
+ * Accepted Net
12829
+ *
12830
+ * Net of the new payload, debit-positive
12831
+ */
12832
+ accepted_net: number;
12833
+ /**
12834
+ * Delta
12835
+ *
12836
+ * accepted_net - prior_net
12837
+ */
12838
+ delta: number;
12839
+ };
12840
+ /**
12841
+ * ReconcilingItemEntrySummary
12842
+ *
12843
+ * One entry on either side of the comparison.
12844
+ */
12845
+ export type ReconcilingItemEntrySummary = {
12846
+ /**
12847
+ * Entry Id
12848
+ *
12849
+ * Entry id; null for the accepted side, which is not posted yet
12850
+ */
12851
+ entry_id?: string | null;
12852
+ /**
12853
+ * External Id
12854
+ */
12855
+ external_id?: string | null;
12856
+ /**
12857
+ * Posting Date
12858
+ */
12859
+ posting_date?: string | null;
12860
+ /**
12861
+ * Memo
12862
+ */
12863
+ memo?: string | null;
12864
+ /**
12865
+ * Status
12866
+ *
12867
+ * Entry status; null on the accepted side
12868
+ */
12869
+ status?: string | null;
12870
+ /**
12871
+ * Total Debit
12872
+ */
12873
+ total_debit?: number;
12874
+ /**
12875
+ * Total Credit
12876
+ */
12877
+ total_credit?: number;
12878
+ };
12879
+ /**
12880
+ * ReconcilingItemPlan
12881
+ *
12882
+ * What changed upstream, and what each disposition would do about it.
12883
+ */
12884
+ export type ReconcilingItemPlan = {
12885
+ /**
12886
+ * Event Id
12887
+ */
12888
+ event_id: string;
12889
+ /**
12890
+ * External Id
12891
+ */
12892
+ external_id?: string | null;
12893
+ /**
12894
+ * Source
12895
+ */
12896
+ source: string;
12897
+ /**
12898
+ * Event Type
12899
+ */
12900
+ event_type: string;
12901
+ /**
12902
+ * Event Status
12903
+ */
12904
+ event_status: string;
12905
+ /**
12906
+ * Drift Detected At
12907
+ *
12908
+ * When the sync first saw this difference
12909
+ */
12910
+ drift_detected_at?: string | null;
12911
+ /**
12912
+ * Default Disposition
12913
+ *
12914
+ * What resolve would do with no disposition given: restate while every affected period is open, catch_up once one is closed.
12915
+ */
12916
+ default_disposition: 'restate' | 'catch_up' | 'acknowledge';
12917
+ /**
12918
+ * Default Posting Date
12919
+ *
12920
+ * Where a catch-up entry would land by default
12921
+ */
12922
+ default_posting_date?: string | null;
12923
+ /**
12924
+ * Affected Posting Dates
12925
+ *
12926
+ * Posting dates of the event's entries
12927
+ */
12928
+ affected_posting_dates?: Array<string>;
12929
+ /**
12930
+ * Closed Periods
12931
+ *
12932
+ * Names of closed periods the event's entries sit in
12933
+ */
12934
+ closed_periods?: Array<string>;
12935
+ /**
12936
+ * Prior Entries
12937
+ */
12938
+ prior_entries?: Array<ReconcilingItemEntrySummary>;
12939
+ /**
12940
+ * Accepted Entries
12941
+ */
12942
+ accepted_entries?: Array<ReconcilingItemEntrySummary>;
12943
+ /**
12944
+ * Delta
12945
+ *
12946
+ * Per-account net change; empty when none
12947
+ */
12948
+ delta?: Array<ReconcilingItemDeltaLine>;
12949
+ /**
12950
+ * No Gl Effect
12951
+ *
12952
+ * The change moves no money — a memo or reference edit. catch_up posts nothing; restate still regenerates so the entries carry the new text.
12953
+ */
12954
+ no_gl_effect?: boolean;
12955
+ /**
12956
+ * Restate Blockers
12957
+ *
12958
+ * Why restate is unavailable, if it is: a closed period, an entry that was reversed or is not posted, or entries from elsewhere sharing this event's transaction.
12959
+ */
12960
+ restate_blockers?: Array<string>;
12961
+ /**
12962
+ * Unmapped Element External Ids
12963
+ *
12964
+ * Accounts in the new payload with no mapping in this graph. Both dispositions that write need them mapped first.
12965
+ */
12966
+ unmapped_element_external_ids?: Array<string>;
12967
+ };
12968
+ /**
12969
+ * ReconcilingItemRegenerated
12970
+ *
12971
+ * The entries a restate rebuilt.
12972
+ */
12973
+ export type ReconcilingItemRegenerated = {
12974
+ /**
12975
+ * Transaction Ids
12976
+ */
12977
+ transaction_ids?: Array<string>;
12978
+ /**
12979
+ * Entry Ids
12980
+ */
12981
+ entry_ids?: Array<string>;
12982
+ };
12983
+ /**
12984
+ * RecoveryCodesRequest
12985
+ *
12986
+ * Re-authentication proof for regenerating recovery codes.
12987
+ */
12988
+ export type RecoveryCodesRequest = {
12989
+ /**
12990
+ * Password
12991
+ *
12992
+ * Current password (password-holding users)
12993
+ */
12994
+ password?: string | null;
12995
+ /**
12996
+ * Assertion
12997
+ *
12998
+ * Fresh WebAuthn assertion from the re-auth ceremony
12532
12999
  */
12533
13000
  assertion?: {
12534
13001
  [key: string]: unknown;
@@ -13088,6 +13555,100 @@ export type ResetPasswordValidateResponse = {
13088
13555
  */
13089
13556
  email?: string | null;
13090
13557
  };
13558
+ /**
13559
+ * ResolveReconcilingItemRequest
13560
+ *
13561
+ * Dispose of one reconciling item and clear its flag.
13562
+ */
13563
+ export type ResolveReconcilingItemRequest = {
13564
+ /**
13565
+ * Event Id
13566
+ *
13567
+ * Event id (evt_ prefixed) to resolve
13568
+ */
13569
+ event_id: string;
13570
+ /**
13571
+ * Disposition
13572
+ *
13573
+ * How to dispose of the difference. Omit to take the default the preview reports: restate when every period the event touches is open, catch_up when any is closed.
13574
+ */
13575
+ disposition?: 'restate' | 'catch_up' | 'acknowledge' | null;
13576
+ /**
13577
+ * Posting Date
13578
+ *
13579
+ * catch_up only: when to post the catch-up entry. Defaults to the end of the earliest open period.
13580
+ */
13581
+ posting_date?: string | null;
13582
+ /**
13583
+ * Status
13584
+ *
13585
+ * catch_up only: whether the catch-up entry is drafted for review at close (default) or posted immediately. A draft appears in list-period-drafts and posts locally when the period closes.
13586
+ */
13587
+ status?: 'draft' | 'posted';
13588
+ /**
13589
+ * Note
13590
+ *
13591
+ * Why this disposition. Required for acknowledge, where it is the only record of what was done instead.
13592
+ */
13593
+ note?: string | null;
13594
+ /**
13595
+ * Reference Event Id
13596
+ *
13597
+ * acknowledge only: the event that already handled this difference (e.g. an alignment entry authored by hand), recorded on the trail.
13598
+ */
13599
+ reference_event_id?: string | null;
13600
+ };
13601
+ /**
13602
+ * ResolveReconcilingItemResponse
13603
+ *
13604
+ * The outcome of resolving one reconciling item.
13605
+ */
13606
+ export type ResolveReconcilingItemResponse = {
13607
+ /**
13608
+ * Event Id
13609
+ */
13610
+ event_id: string;
13611
+ /**
13612
+ * External Id
13613
+ */
13614
+ external_id?: string | null;
13615
+ /**
13616
+ * Disposition
13617
+ */
13618
+ disposition: 'restate' | 'catch_up' | 'acknowledge';
13619
+ /**
13620
+ * Delta
13621
+ */
13622
+ delta?: Array<ReconcilingItemDeltaLine>;
13623
+ /**
13624
+ * No Gl Effect
13625
+ */
13626
+ no_gl_effect?: boolean;
13627
+ /**
13628
+ * Present when the disposition posted a catch-up entry
13629
+ */
13630
+ catch_up?: ReconcilingItemCatchUp | null;
13631
+ /**
13632
+ * Present when the disposition rebuilt the event's entries
13633
+ */
13634
+ regenerated?: ReconcilingItemRegenerated | null;
13635
+ /**
13636
+ * Reference Event Id
13637
+ */
13638
+ reference_event_id?: string | null;
13639
+ /**
13640
+ * Note
13641
+ */
13642
+ note?: string | null;
13643
+ /**
13644
+ * Resolved At
13645
+ */
13646
+ resolved_at: string;
13647
+ /**
13648
+ * Resolved By
13649
+ */
13650
+ resolved_by: string;
13651
+ };
13091
13652
  /**
13092
13653
  * ResolvedReportInfo
13093
13654
  *
@@ -13334,19 +13895,6 @@ export type RuleVariableLite = {
13334
13895
  */
13335
13896
  variable_element_id?: string | null;
13336
13897
  };
13337
- /**
13338
- * SECConnectionConfig
13339
- *
13340
- * SEC-specific connection configuration.
13341
- */
13342
- export type SecConnectionConfig = {
13343
- /**
13344
- * Cik
13345
- *
13346
- * SEC Central Index Key
13347
- */
13348
- cik: string;
13349
- };
13350
13898
  /**
13351
13899
  * SSOCompleteRequest
13352
13900
  *
@@ -15348,6 +15896,76 @@ export type TaxonomyBlockStructureRequest = {
15348
15896
  [key: string]: unknown;
15349
15897
  };
15350
15898
  };
15899
+ /**
15900
+ * TerminateScheduleRequest
15901
+ *
15902
+ * End a schedule early at a month-end cutoff — no entry is booked.
15903
+ *
15904
+ * The no-entry half of schedule retirement, for terminations whose GL
15905
+ * effect is already booked (an asset transferred via a manual journal
15906
+ * entry, a prepaid refunded in the source system) or where none is
15907
+ * wanted. In one transaction: deletes forward facts past the cutoff,
15908
+ * voids the remaining obligation chain past it (pending and classified
15909
+ * rows), and rewrites the SumEquals rule to prove the truncated curve.
15910
+ * History at or before the cutoff is untouched.
15911
+ *
15912
+ * When the derecognition entry still needs to be booked, use
15913
+ * `create-event-block(event_type='asset_disposed')` instead — the
15914
+ * disposal handler posts it atomically with the same obligation void.
15915
+ */
15916
+ export type TerminateScheduleRequest = {
15917
+ /**
15918
+ * Structure Id
15919
+ *
15920
+ * The schedule structure to terminate.
15921
+ */
15922
+ structure_id: string;
15923
+ /**
15924
+ * New End Date
15925
+ *
15926
+ * Last date the schedule covers — must be the last day of a month (schedule facts are whole-month). Facts and obligations for periods starting after this date are removed/voided.
15927
+ */
15928
+ new_end_date: string;
15929
+ /**
15930
+ * Reason
15931
+ *
15932
+ * Why the schedule is ending early — captured in the audit log.
15933
+ */
15934
+ reason: string;
15935
+ };
15936
+ /**
15937
+ * TerminateScheduleResponse
15938
+ */
15939
+ export type TerminateScheduleResponse = {
15940
+ /**
15941
+ * Structure Id
15942
+ */
15943
+ structure_id: string;
15944
+ /**
15945
+ * Name
15946
+ */
15947
+ name: string;
15948
+ /**
15949
+ * New End Date
15950
+ */
15951
+ new_end_date: string;
15952
+ /**
15953
+ * Facts Deleted
15954
+ */
15955
+ facts_deleted: number;
15956
+ /**
15957
+ * Obligations Voided
15958
+ */
15959
+ obligations_voided: number;
15960
+ /**
15961
+ * Rule Updated
15962
+ */
15963
+ rule_updated: boolean;
15964
+ /**
15965
+ * Reason
15966
+ */
15967
+ reason: string;
15968
+ };
15351
15969
  /**
15352
15970
  * TierCapacity
15353
15971
  *
@@ -15369,7 +15987,7 @@ export type TierCapacity = {
15369
15987
  /**
15370
15988
  * Status
15371
15989
  *
15372
- * Capacity status: ready, scalable, or at_capacity
15990
+ * Capacity status: ready or at_capacity
15373
15991
  */
15374
15992
  status: string;
15375
15993
  /**
@@ -15975,6 +16593,12 @@ export type UpdateForecastRequest = {
15975
16593
  * Base Period
15976
16594
  */
15977
16595
  base_period?: string | null;
16596
+ /**
16597
+ * Base Anchor
16598
+ *
16599
+ * Switch the walk between seam-anchored (default) and pinned to ``base_period``. Changes nothing about the authored window, so unlike ``base_period`` it needs no levers re-supplied.
16600
+ */
16601
+ base_anchor?: 'seam' | 'fixed' | null;
15978
16602
  /**
15979
16603
  * Levers
15980
16604
  *
@@ -16294,9 +16918,11 @@ export type UpdateRollforwardRequest = {
16294
16918
  * Structure row / its metadata_ JSONB column).
16295
16919
  *
16296
16920
  * NOT editable via this op: period_start, period_end, monthly_amount.
16297
- * Those require fact regeneration — fire an event block that terminates
16298
- * the schedule (e.g., `asset_disposed`) and create a fresh schedule via
16299
- * `create-information-block` (`block_type='schedule'`).
16921
+ * Those require fact regeneration — end the schedule early via
16922
+ * `terminate-schedule` (no entry) or
16923
+ * `create-event-block(event_type='asset_disposed')` (with a disposal
16924
+ * entry), then create a fresh schedule via `create-information-block`
16925
+ * (`block_type='schedule'`).
16300
16926
  *
16301
16927
  * Omitted fields are left unchanged.
16302
16928
  */
@@ -16461,6 +17087,10 @@ export type UpdateTaxonomyBlockRequest = {
16461
17087
  * UpdateUserRequest
16462
17088
  *
16463
17089
  * Request model for updating user profile.
17090
+ *
17091
+ * Changing ``email`` re-authenticates: a fresh proof (password re-entry or a
17092
+ * ``mgmt``-flow passkey assertion) must accompany the request, exactly as
17093
+ * passkey enrollment and removal require. Name-only updates need no proof.
16464
17094
  */
16465
17095
  export type UpdateUserRequest = {
16466
17096
  /**
@@ -16475,6 +17105,20 @@ export type UpdateUserRequest = {
16475
17105
  * User's email address
16476
17106
  */
16477
17107
  email?: string | null;
17108
+ /**
17109
+ * Reauth Password
17110
+ *
17111
+ * Password re-entry, required to change email for a password-holding account
17112
+ */
17113
+ reauth_password?: string | null;
17114
+ /**
17115
+ * Reauth Assertion
17116
+ *
17117
+ * A fresh mgmt-flow passkey assertion, required to change email for a passkey-only account
17118
+ */
17119
+ reauth_assertion?: {
17120
+ [key: string]: unknown;
17121
+ } | null;
16478
17122
  };
16479
17123
  /**
16480
17124
  * UpgradeSubscriptionRequest
@@ -18435,6 +19079,91 @@ export type UpdateUserApiKeyResponses = {
18435
19079
  200: ApiKeyInfo;
18436
19080
  };
18437
19081
  export type UpdateUserApiKeyResponse = UpdateUserApiKeyResponses[keyof UpdateUserApiKeyResponses];
19082
+ export type ListUserOAuthGrantsData = {
19083
+ body?: never;
19084
+ path?: never;
19085
+ query?: never;
19086
+ url: '/v1/user/oauth/grants';
19087
+ };
19088
+ export type ListUserOAuthGrantsErrors = {
19089
+ /**
19090
+ * Invalid request
19091
+ */
19092
+ 400: ErrorResponse;
19093
+ /**
19094
+ * Authentication required
19095
+ */
19096
+ 401: ErrorResponse;
19097
+ /**
19098
+ * Access denied
19099
+ */
19100
+ 403: ErrorResponse;
19101
+ /**
19102
+ * Rate limit exceeded
19103
+ */
19104
+ 429: ErrorResponse;
19105
+ /**
19106
+ * Internal server error
19107
+ */
19108
+ 500: ErrorResponse;
19109
+ };
19110
+ export type ListUserOAuthGrantsError = ListUserOAuthGrantsErrors[keyof ListUserOAuthGrantsErrors];
19111
+ export type ListUserOAuthGrantsResponses = {
19112
+ /**
19113
+ * Successful Response
19114
+ */
19115
+ 200: OAuthGrantsResponse;
19116
+ };
19117
+ export type ListUserOAuthGrantsResponse = ListUserOAuthGrantsResponses[keyof ListUserOAuthGrantsResponses];
19118
+ export type RevokeUserOAuthGrantData = {
19119
+ body?: never;
19120
+ path: {
19121
+ /**
19122
+ * Grant Id
19123
+ */
19124
+ grant_id: string;
19125
+ };
19126
+ query?: never;
19127
+ url: '/v1/user/oauth/grants/{grant_id}';
19128
+ };
19129
+ export type RevokeUserOAuthGrantErrors = {
19130
+ /**
19131
+ * Invalid request
19132
+ */
19133
+ 400: ErrorResponse;
19134
+ /**
19135
+ * Authentication required
19136
+ */
19137
+ 401: ErrorResponse;
19138
+ /**
19139
+ * Access denied
19140
+ */
19141
+ 403: ErrorResponse;
19142
+ /**
19143
+ * Resource not found
19144
+ */
19145
+ 404: ErrorResponse;
19146
+ /**
19147
+ * Validation Error
19148
+ */
19149
+ 422: HttpValidationError;
19150
+ /**
19151
+ * Rate limit exceeded
19152
+ */
19153
+ 429: ErrorResponse;
19154
+ /**
19155
+ * Internal server error
19156
+ */
19157
+ 500: ErrorResponse;
19158
+ };
19159
+ export type RevokeUserOAuthGrantError = RevokeUserOAuthGrantErrors[keyof RevokeUserOAuthGrantErrors];
19160
+ export type RevokeUserOAuthGrantResponses = {
19161
+ /**
19162
+ * Successful Response
19163
+ */
19164
+ 200: SuccessResponse;
19165
+ };
19166
+ export type RevokeUserOAuthGrantResponse = RevokeUserOAuthGrantResponses[keyof RevokeUserOAuthGrantResponses];
18438
19167
  export type ListUserOrgsData = {
18439
19168
  body?: never;
18440
19169
  path?: never;
@@ -19338,7 +20067,7 @@ export type ListConnectionsData = {
19338
20067
  *
19339
20068
  * Filter by provider type
19340
20069
  */
19341
- provider?: 'sec' | 'quickbooks' | 'external' | null;
20070
+ provider?: 'quickbooks' | 'external' | null;
19342
20071
  };
19343
20072
  url: '/v1/graphs/{graph_id}/connections';
19344
20073
  };
@@ -19592,152 +20321,33 @@ export type SetConnectionWritePolicyErrors = {
19592
20321
  */
19593
20322
  500: ErrorResponse;
19594
20323
  };
19595
- export type SetConnectionWritePolicyError = SetConnectionWritePolicyErrors[keyof SetConnectionWritePolicyErrors];
19596
- export type SetConnectionWritePolicyResponses = {
19597
- /**
19598
- * Successful Response
19599
- */
19600
- 200: ConnectionResponse;
19601
- };
19602
- export type SetConnectionWritePolicyResponse = SetConnectionWritePolicyResponses[keyof SetConnectionWritePolicyResponses];
19603
- export type ListOperatorsData = {
19604
- body?: never;
19605
- path: {
19606
- /**
19607
- * Graph Id
19608
- */
19609
- graph_id: string;
19610
- };
19611
- query?: {
19612
- /**
19613
- * Capability
19614
- *
19615
- * Filter by capability (e.g., 'financial_analysis', 'rag_search')
19616
- */
19617
- capability?: string | null;
19618
- };
19619
- url: '/v1/graphs/{graph_id}/operator';
19620
- };
19621
- export type ListOperatorsErrors = {
19622
- /**
19623
- * Invalid request
19624
- */
19625
- 400: ErrorResponse;
19626
- /**
19627
- * Authentication required
19628
- */
19629
- 401: ErrorResponse;
19630
- /**
19631
- * Access denied
19632
- */
19633
- 403: ErrorResponse;
19634
- /**
19635
- * Resource not found
19636
- */
19637
- 404: ErrorResponse;
19638
- /**
19639
- * Validation Error
19640
- */
19641
- 422: HttpValidationError;
19642
- /**
19643
- * Rate limit exceeded
19644
- */
19645
- 429: ErrorResponse;
19646
- /**
19647
- * Internal server error
19648
- */
19649
- 500: ErrorResponse;
19650
- };
19651
- export type ListOperatorsError = ListOperatorsErrors[keyof ListOperatorsErrors];
19652
- export type ListOperatorsResponses = {
19653
- /**
19654
- * Successful Response
19655
- */
19656
- 200: OperatorListResponse;
19657
- };
19658
- export type ListOperatorsResponse = ListOperatorsResponses[keyof ListOperatorsResponses];
19659
- export type AutoSelectOperatorData = {
19660
- body: OperatorRequest;
19661
- path: {
19662
- /**
19663
- * Graph Id
19664
- */
19665
- graph_id: string;
19666
- };
19667
- query?: {
19668
- /**
19669
- * Mode
19670
- *
19671
- * Override execution mode: sync, async, stream, or auto
19672
- */
19673
- mode?: ResponseMode | null;
19674
- };
19675
- url: '/v1/graphs/{graph_id}/operator';
19676
- };
19677
- export type AutoSelectOperatorErrors = {
19678
- /**
19679
- * Invalid request
19680
- */
19681
- 400: ErrorResponse;
19682
- /**
19683
- * Authentication required
19684
- */
19685
- 401: ErrorResponse;
19686
- /**
19687
- * Insufficient credits
19688
- */
19689
- 402: unknown;
19690
- /**
19691
- * Access denied
19692
- */
19693
- 403: ErrorResponse;
19694
- /**
19695
- * Resource not found
19696
- */
19697
- 404: ErrorResponse;
19698
- /**
19699
- * Validation Error
19700
- */
19701
- 422: HttpValidationError;
19702
- /**
19703
- * Rate limit exceeded
19704
- */
19705
- 429: ErrorResponse;
19706
- /**
19707
- * Internal server error
19708
- */
19709
- 500: ErrorResponse;
19710
- };
19711
- export type AutoSelectOperatorError = AutoSelectOperatorErrors[keyof AutoSelectOperatorErrors];
19712
- export type AutoSelectOperatorResponses = {
20324
+ export type SetConnectionWritePolicyError = SetConnectionWritePolicyErrors[keyof SetConnectionWritePolicyErrors];
20325
+ export type SetConnectionWritePolicyResponses = {
19713
20326
  /**
19714
20327
  * Successful Response
19715
20328
  */
19716
- 200: OperatorResponse;
19717
- /**
19718
- * Query queued for async processing
19719
- */
19720
- 202: unknown;
20329
+ 200: ConnectionResponse;
19721
20330
  };
19722
- export type AutoSelectOperatorResponse = AutoSelectOperatorResponses[keyof AutoSelectOperatorResponses];
19723
- export type GetOperatorMetadataData = {
20331
+ export type SetConnectionWritePolicyResponse = SetConnectionWritePolicyResponses[keyof SetConnectionWritePolicyResponses];
20332
+ export type ListOperatorsData = {
19724
20333
  body?: never;
19725
20334
  path: {
19726
20335
  /**
19727
20336
  * Graph Id
19728
20337
  */
19729
20338
  graph_id: string;
20339
+ };
20340
+ query?: {
19730
20341
  /**
19731
- * Operator Type
20342
+ * Capability
19732
20343
  *
19733
- * Operator type identifier (e.g., 'financial', 'research', 'rag')
20344
+ * Filter by capability (e.g., 'financial_analysis', 'rag_search')
19734
20345
  */
19735
- operator_type: string;
20346
+ capability?: string | null;
19736
20347
  };
19737
- query?: never;
19738
- url: '/v1/graphs/{graph_id}/operator/{operator_type}';
20348
+ url: '/v1/graphs/{graph_id}/operator';
19739
20349
  };
19740
- export type GetOperatorMetadataErrors = {
20350
+ export type ListOperatorsErrors = {
19741
20351
  /**
19742
20352
  * Invalid request
19743
20353
  */
@@ -19767,21 +20377,17 @@ export type GetOperatorMetadataErrors = {
19767
20377
  */
19768
20378
  500: ErrorResponse;
19769
20379
  };
19770
- export type GetOperatorMetadataError = GetOperatorMetadataErrors[keyof GetOperatorMetadataErrors];
19771
- export type GetOperatorMetadataResponses = {
20380
+ export type ListOperatorsError = ListOperatorsErrors[keyof ListOperatorsErrors];
20381
+ export type ListOperatorsResponses = {
19772
20382
  /**
19773
20383
  * Successful Response
19774
20384
  */
19775
- 200: OperatorMetadataResponse;
20385
+ 200: OperatorListResponse;
19776
20386
  };
19777
- export type GetOperatorMetadataResponse = GetOperatorMetadataResponses[keyof GetOperatorMetadataResponses];
19778
- export type ExecuteSpecificOperatorData = {
20387
+ export type ListOperatorsResponse = ListOperatorsResponses[keyof ListOperatorsResponses];
20388
+ export type AutoSelectOperatorData = {
19779
20389
  body: OperatorRequest;
19780
20390
  path: {
19781
- /**
19782
- * Operator Type
19783
- */
19784
- operator_type: string;
19785
20391
  /**
19786
20392
  * Graph Id
19787
20393
  */
@@ -19795,9 +20401,9 @@ export type ExecuteSpecificOperatorData = {
19795
20401
  */
19796
20402
  mode?: ResponseMode | null;
19797
20403
  };
19798
- url: '/v1/graphs/{graph_id}/operator/{operator_type}';
20404
+ url: '/v1/graphs/{graph_id}/operator';
19799
20405
  };
19800
- export type ExecuteSpecificOperatorErrors = {
20406
+ export type AutoSelectOperatorErrors = {
19801
20407
  /**
19802
20408
  * Invalid request
19803
20409
  */
@@ -19831,8 +20437,8 @@ export type ExecuteSpecificOperatorErrors = {
19831
20437
  */
19832
20438
  500: ErrorResponse;
19833
20439
  };
19834
- export type ExecuteSpecificOperatorError = ExecuteSpecificOperatorErrors[keyof ExecuteSpecificOperatorErrors];
19835
- export type ExecuteSpecificOperatorResponses = {
20440
+ export type AutoSelectOperatorError = AutoSelectOperatorErrors[keyof AutoSelectOperatorErrors];
20441
+ export type AutoSelectOperatorResponses = {
19836
20442
  /**
19837
20443
  * Successful Response
19838
20444
  */
@@ -19842,19 +20448,25 @@ export type ExecuteSpecificOperatorResponses = {
19842
20448
  */
19843
20449
  202: unknown;
19844
20450
  };
19845
- export type ExecuteSpecificOperatorResponse = ExecuteSpecificOperatorResponses[keyof ExecuteSpecificOperatorResponses];
19846
- export type ListMcpToolsData = {
20451
+ export type AutoSelectOperatorResponse = AutoSelectOperatorResponses[keyof AutoSelectOperatorResponses];
20452
+ export type GetOperatorMetadataData = {
19847
20453
  body?: never;
19848
20454
  path: {
19849
20455
  /**
19850
20456
  * Graph Id
19851
20457
  */
19852
20458
  graph_id: string;
20459
+ /**
20460
+ * Operator Type
20461
+ *
20462
+ * Operator type identifier (e.g., 'financial', 'research', 'rag')
20463
+ */
20464
+ operator_type: string;
19853
20465
  };
19854
20466
  query?: never;
19855
- url: '/v1/graphs/{graph_id}/mcp/tools';
20467
+ url: '/v1/graphs/{graph_id}/operator/{operator_type}';
19856
20468
  };
19857
- export type ListMcpToolsErrors = {
20469
+ export type GetOperatorMetadataErrors = {
19858
20470
  /**
19859
20471
  * Invalid request
19860
20472
  */
@@ -19884,17 +20496,21 @@ export type ListMcpToolsErrors = {
19884
20496
  */
19885
20497
  500: ErrorResponse;
19886
20498
  };
19887
- export type ListMcpToolsError = ListMcpToolsErrors[keyof ListMcpToolsErrors];
19888
- export type ListMcpToolsResponses = {
20499
+ export type GetOperatorMetadataError = GetOperatorMetadataErrors[keyof GetOperatorMetadataErrors];
20500
+ export type GetOperatorMetadataResponses = {
19889
20501
  /**
19890
20502
  * Successful Response
19891
20503
  */
19892
- 200: McpToolsResponse;
20504
+ 200: OperatorMetadataResponse;
19893
20505
  };
19894
- export type ListMcpToolsResponse = ListMcpToolsResponses[keyof ListMcpToolsResponses];
19895
- export type CallMcpToolData = {
19896
- body: McpToolCall;
20506
+ export type GetOperatorMetadataResponse = GetOperatorMetadataResponses[keyof GetOperatorMetadataResponses];
20507
+ export type ExecuteSpecificOperatorData = {
20508
+ body: OperatorRequest;
19897
20509
  path: {
20510
+ /**
20511
+ * Operator Type
20512
+ */
20513
+ operator_type: string;
19898
20514
  /**
19899
20515
  * Graph Id
19900
20516
  */
@@ -19902,21 +20518,15 @@ export type CallMcpToolData = {
19902
20518
  };
19903
20519
  query?: {
19904
20520
  /**
19905
- * Format
19906
- *
19907
- * Response format override (json, sse, ndjson)
19908
- */
19909
- format?: string | null;
19910
- /**
19911
- * Test Mode
20521
+ * Mode
19912
20522
  *
19913
- * Enable test mode for debugging
20523
+ * Override execution mode: sync, async, stream, or auto
19914
20524
  */
19915
- test_mode?: boolean;
20525
+ mode?: ResponseMode | null;
19916
20526
  };
19917
- url: '/v1/graphs/{graph_id}/mcp/call-tool';
20527
+ url: '/v1/graphs/{graph_id}/operator/{operator_type}';
19918
20528
  };
19919
- export type CallMcpToolErrors = {
20529
+ export type ExecuteSpecificOperatorErrors = {
19920
20530
  /**
19921
20531
  * Invalid request
19922
20532
  */
@@ -19925,6 +20535,10 @@ export type CallMcpToolErrors = {
19925
20535
  * Authentication required
19926
20536
  */
19927
20537
  401: ErrorResponse;
20538
+ /**
20539
+ * Insufficient credits
20540
+ */
20541
+ 402: unknown;
19928
20542
  /**
19929
20543
  * Access denied
19930
20544
  */
@@ -19933,10 +20547,6 @@ export type CallMcpToolErrors = {
19933
20547
  * Resource not found
19934
20548
  */
19935
20549
  404: ErrorResponse;
19936
- /**
19937
- * Execution timeout
19938
- */
19939
- 408: unknown;
19940
20550
  /**
19941
20551
  * Validation Error
19942
20552
  */
@@ -19949,22 +20559,19 @@ export type CallMcpToolErrors = {
19949
20559
  * Internal server error
19950
20560
  */
19951
20561
  500: ErrorResponse;
19952
- /**
19953
- * Service unavailable
19954
- */
19955
- 503: unknown;
19956
20562
  };
19957
- export type CallMcpToolError = CallMcpToolErrors[keyof CallMcpToolErrors];
19958
- export type CallMcpToolResponses = {
20563
+ export type ExecuteSpecificOperatorError = ExecuteSpecificOperatorErrors[keyof ExecuteSpecificOperatorErrors];
20564
+ export type ExecuteSpecificOperatorResponses = {
19959
20565
  /**
19960
20566
  * Successful Response
19961
20567
  */
19962
- 200: unknown;
20568
+ 200: OperatorResponse;
19963
20569
  /**
19964
- * Tool queued for execution
20570
+ * Query queued for async processing
19965
20571
  */
19966
20572
  202: unknown;
19967
20573
  };
20574
+ export type ExecuteSpecificOperatorResponse = ExecuteSpecificOperatorResponses[keyof ExecuteSpecificOperatorResponses];
19968
20575
  export type ListBackupsData = {
19969
20576
  body?: never;
19970
20577
  path: {
@@ -20053,7 +20660,7 @@ export type GetBackupDownloadUrlData = {
20053
20660
  };
20054
20661
  export type GetBackupDownloadUrlErrors = {
20055
20662
  /**
20056
- * Access denied
20663
+ * Access denied — admin role on the graph, or an eligible repository subscription, is required
20057
20664
  */
20058
20665
  403: unknown;
20059
20666
  /**
@@ -25350,6 +25957,124 @@ export type PreviewEventBlockResponses = {
25350
25957
  200: OperationEnvelopePreviewEventBlockResponse;
25351
25958
  };
25352
25959
  export type PreviewEventBlockResponse2 = PreviewEventBlockResponses[keyof PreviewEventBlockResponses];
25960
+ export type PreviewReconcilingItemData = {
25961
+ body: PreviewReconcilingItemRequest;
25962
+ headers?: {
25963
+ /**
25964
+ * Idempotency-Key
25965
+ */
25966
+ 'Idempotency-Key'?: string | null;
25967
+ };
25968
+ path: {
25969
+ /**
25970
+ * Graph Id
25971
+ */
25972
+ graph_id: string;
25973
+ };
25974
+ query?: never;
25975
+ url: '/extensions/roboledger/{graph_id}/operations/preview-reconciling-item';
25976
+ };
25977
+ export type PreviewReconcilingItemErrors = {
25978
+ /**
25979
+ * Invalid request
25980
+ */
25981
+ 400: ErrorResponse;
25982
+ /**
25983
+ * Authentication required
25984
+ */
25985
+ 401: ErrorResponse;
25986
+ /**
25987
+ * Access denied
25988
+ */
25989
+ 403: ErrorResponse;
25990
+ /**
25991
+ * Resource not found
25992
+ */
25993
+ 404: ErrorResponse;
25994
+ /**
25995
+ * Idempotency-Key conflict — key reused with different body
25996
+ */
25997
+ 409: ErrorResponse;
25998
+ /**
25999
+ * Validation error
26000
+ */
26001
+ 422: ErrorResponse;
26002
+ /**
26003
+ * Rate limit exceeded
26004
+ */
26005
+ 429: ErrorResponse;
26006
+ /**
26007
+ * Internal server error
26008
+ */
26009
+ 500: ErrorResponse;
26010
+ };
26011
+ export type PreviewReconcilingItemError = PreviewReconcilingItemErrors[keyof PreviewReconcilingItemErrors];
26012
+ export type PreviewReconcilingItemResponses = {
26013
+ /**
26014
+ * Successful Response
26015
+ */
26016
+ 200: OperationEnvelopeReconcilingItemPlan;
26017
+ };
26018
+ export type PreviewReconcilingItemResponse = PreviewReconcilingItemResponses[keyof PreviewReconcilingItemResponses];
26019
+ export type ResolveReconcilingItemData = {
26020
+ body: ResolveReconcilingItemRequest;
26021
+ headers?: {
26022
+ /**
26023
+ * Idempotency-Key
26024
+ */
26025
+ 'Idempotency-Key'?: string | null;
26026
+ };
26027
+ path: {
26028
+ /**
26029
+ * Graph Id
26030
+ */
26031
+ graph_id: string;
26032
+ };
26033
+ query?: never;
26034
+ url: '/extensions/roboledger/{graph_id}/operations/resolve-reconciling-item';
26035
+ };
26036
+ export type ResolveReconcilingItemErrors = {
26037
+ /**
26038
+ * Invalid request
26039
+ */
26040
+ 400: ErrorResponse;
26041
+ /**
26042
+ * Authentication required
26043
+ */
26044
+ 401: ErrorResponse;
26045
+ /**
26046
+ * Access denied
26047
+ */
26048
+ 403: ErrorResponse;
26049
+ /**
26050
+ * Resource not found
26051
+ */
26052
+ 404: ErrorResponse;
26053
+ /**
26054
+ * Idempotency-Key conflict — key reused with different body
26055
+ */
26056
+ 409: ErrorResponse;
26057
+ /**
26058
+ * Validation error
26059
+ */
26060
+ 422: ErrorResponse;
26061
+ /**
26062
+ * Rate limit exceeded
26063
+ */
26064
+ 429: ErrorResponse;
26065
+ /**
26066
+ * Internal server error
26067
+ */
26068
+ 500: ErrorResponse;
26069
+ };
26070
+ export type ResolveReconcilingItemError = ResolveReconcilingItemErrors[keyof ResolveReconcilingItemErrors];
26071
+ export type ResolveReconcilingItemResponses = {
26072
+ /**
26073
+ * Successful Response
26074
+ */
26075
+ 200: OperationEnvelopeResolveReconcilingItemResponse;
26076
+ };
26077
+ export type ResolveReconcilingItemResponse2 = ResolveReconcilingItemResponses[keyof ResolveReconcilingItemResponses];
25353
26078
  export type UpdateJournalEntryData = {
25354
26079
  body: UpdateJournalEntryRequest;
25355
26080
  headers?: {
@@ -25586,6 +26311,65 @@ export type RebuildScheduleResponses = {
25586
26311
  200: OperationEnvelopeScheduleCreatedResponse;
25587
26312
  };
25588
26313
  export type RebuildScheduleResponse = RebuildScheduleResponses[keyof RebuildScheduleResponses];
26314
+ export type TerminateScheduleData = {
26315
+ body: TerminateScheduleRequest;
26316
+ headers?: {
26317
+ /**
26318
+ * Idempotency-Key
26319
+ */
26320
+ 'Idempotency-Key'?: string | null;
26321
+ };
26322
+ path: {
26323
+ /**
26324
+ * Graph Id
26325
+ */
26326
+ graph_id: string;
26327
+ };
26328
+ query?: never;
26329
+ url: '/extensions/roboledger/{graph_id}/operations/terminate-schedule';
26330
+ };
26331
+ export type TerminateScheduleErrors = {
26332
+ /**
26333
+ * Invalid request
26334
+ */
26335
+ 400: ErrorResponse;
26336
+ /**
26337
+ * Authentication required
26338
+ */
26339
+ 401: ErrorResponse;
26340
+ /**
26341
+ * Access denied
26342
+ */
26343
+ 403: ErrorResponse;
26344
+ /**
26345
+ * Resource not found
26346
+ */
26347
+ 404: ErrorResponse;
26348
+ /**
26349
+ * Idempotency-Key conflict — key reused with different body
26350
+ */
26351
+ 409: ErrorResponse;
26352
+ /**
26353
+ * Validation error
26354
+ */
26355
+ 422: ErrorResponse;
26356
+ /**
26357
+ * Rate limit exceeded
26358
+ */
26359
+ 429: ErrorResponse;
26360
+ /**
26361
+ * Internal server error
26362
+ */
26363
+ 500: ErrorResponse;
26364
+ };
26365
+ export type TerminateScheduleError = TerminateScheduleErrors[keyof TerminateScheduleErrors];
26366
+ export type TerminateScheduleResponses = {
26367
+ /**
26368
+ * Successful Response
26369
+ */
26370
+ 200: OperationEnvelopeTerminateScheduleResponse;
26371
+ };
26372
+ export type TerminateScheduleResponse2 = TerminateScheduleResponses[keyof TerminateScheduleResponses];
25589
26373
  export type SetCloseTargetData = {
25590
26374
  body: SetCloseTargetOperation;
25591
26375
  headers?: {