@robosystems/client 2.6.1 → 2.8.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.
@@ -678,6 +678,12 @@ export type BackfillPeriodOutcome = {
678
678
  * Compile monthly statement history behind the close boundary.
679
679
  */
680
680
  export type BackfillPlanHistoryOperation = {
681
+ /**
682
+ * Entity Id
683
+ *
684
+ * The entity whose books this acts on, by id. Omit for the group parent — the single-entity default.
685
+ */
686
+ entity_id?: string | null;
681
687
  /**
682
688
  * Start Period
683
689
  *
@@ -1628,6 +1634,12 @@ export type ClassificationLite = {
1628
1634
  * :class:`ClosePeriodRequest`.
1629
1635
  */
1630
1636
  export type ClosePeriodOperation = {
1637
+ /**
1638
+ * Entity Id
1639
+ *
1640
+ * The entity whose books this acts on, by id. Omit for the group parent — the single-entity default.
1641
+ */
1642
+ entity_id?: string | null;
1631
1643
  /**
1632
1644
  * Note
1633
1645
  *
@@ -2455,12 +2467,146 @@ export type CreateConnectionRequest = {
2455
2467
  mercury_config?: MercuryConnectionConfig | null;
2456
2468
  plaid_config?: PlaidConnectionConfig | null;
2457
2469
  };
2470
+ /**
2471
+ * CreateEntityRequest
2472
+ *
2473
+ * Add an entity to the graph's reporting group.
2474
+ *
2475
+ * The new entity is a subsidiary of `parent_entity_id`, default the group
2476
+ * parent, and keeps its own books: give it a chart next
2477
+ * (`initialize-chart-of-accounts` with `entity_id`) and a calendar
2478
+ * (`initialize`), then name it with `entity_id` on any ledger operation.
2479
+ * A graph created without an entity gets this one as its group parent.
2480
+ * There is no cap on entities in a graph; capacity is the tier's.
2481
+ */
2482
+ export type CreateEntityRequest = {
2483
+ /**
2484
+ * Name
2485
+ *
2486
+ * Display name.
2487
+ */
2488
+ name: string;
2489
+ /**
2490
+ * Legal Name
2491
+ *
2492
+ * Registered legal name. Defaults to `name`.
2493
+ */
2494
+ legal_name?: string | null;
2495
+ /**
2496
+ * Entity Type
2497
+ *
2498
+ * Legal form: `corporation`, `llc`, `partnership`, `sole_proprietorship`, `non_profit`. Picks the default Reporting Style (partnership and llc have equity-form Styles of their own; anything else is corporate) and the equity rows of a chart template.
2499
+ */
2500
+ entity_type?: string | null;
2501
+ /**
2502
+ * Reporting Style Id
2503
+ *
2504
+ * Structure id of the Reporting Style to present under, validated in the graph like change-reporting-style. Omit to derive it from `entity_type`.
2505
+ */
2506
+ reporting_style_id?: string | null;
2507
+ /**
2508
+ * Parent Entity Id
2509
+ *
2510
+ * The entity this one is held under. Omit for the group parent; name a subsidiary to nest a sub-group under it.
2511
+ */
2512
+ parent_entity_id?: string | null;
2513
+ /**
2514
+ * Ownership Pct
2515
+ *
2516
+ * The parent's share of this entity, as a percent (100 = wholly owned). Omit when not recorded. Refused on a graph's first entity, which becomes the group parent.
2517
+ */
2518
+ ownership_pct?: number | null;
2519
+ /**
2520
+ * Ticker
2521
+ *
2522
+ * Short symbol, unique in the graph; it prefixes the entity's account names (`coa-<ticker>:1000`). Derived from the name's initials when omitted.
2523
+ */
2524
+ ticker?: string | null;
2525
+ /**
2526
+ * Uri
2527
+ *
2528
+ * Canonical URL / external identifier.
2529
+ */
2530
+ uri?: string | null;
2531
+ /**
2532
+ * Cik
2533
+ */
2534
+ cik?: string | null;
2535
+ /**
2536
+ * Sic
2537
+ */
2538
+ sic?: string | null;
2539
+ /**
2540
+ * Sic Description
2541
+ */
2542
+ sic_description?: string | null;
2543
+ /**
2544
+ * Category
2545
+ */
2546
+ category?: string | null;
2547
+ /**
2548
+ * State Of Incorporation
2549
+ */
2550
+ state_of_incorporation?: string | null;
2551
+ /**
2552
+ * Fiscal Year End
2553
+ *
2554
+ * Fiscal year-end as MM-DD. Defaults to the parent's: a graph has one fiscal cadence, and every entity's calendar follows it.
2555
+ */
2556
+ fiscal_year_end?: string | null;
2557
+ /**
2558
+ * Tax Id
2559
+ */
2560
+ tax_id?: string | null;
2561
+ /**
2562
+ * Lei
2563
+ */
2564
+ lei?: string | null;
2565
+ /**
2566
+ * Industry
2567
+ */
2568
+ industry?: string | null;
2569
+ /**
2570
+ * Phone
2571
+ */
2572
+ phone?: string | null;
2573
+ /**
2574
+ * Website
2575
+ */
2576
+ website?: string | null;
2577
+ /**
2578
+ * Address Line1
2579
+ */
2580
+ address_line1?: string | null;
2581
+ /**
2582
+ * Address City
2583
+ */
2584
+ address_city?: string | null;
2585
+ /**
2586
+ * Address State
2587
+ */
2588
+ address_state?: string | null;
2589
+ /**
2590
+ * Address Postal Code
2591
+ */
2592
+ address_postal_code?: string | null;
2593
+ /**
2594
+ * Address Country
2595
+ */
2596
+ address_country?: string | null;
2597
+ };
2458
2598
  /**
2459
2599
  * CreateEventBlockRequest
2460
2600
  *
2461
2601
  * Write surface for a single business event.
2462
2602
  */
2463
2603
  export type CreateEventBlockRequest = {
2604
+ /**
2605
+ * Entity Id
2606
+ *
2607
+ * The entity whose books the event lands in, by id; every GL row its handler writes follows it. Omit for the group parent.
2608
+ */
2609
+ entity_id?: string | null;
2464
2610
  /**
2465
2611
  * Event Type
2466
2612
  *
@@ -2941,6 +3087,12 @@ export type CreatePublishListRequest = {
2941
3087
  * inputs to period generation.
2942
3088
  */
2943
3089
  export type CreateReportRequest = {
3090
+ /**
3091
+ * Entity Id
3092
+ *
3093
+ * The entity the report is for, by id. Omit for the entity whose chart `mapping_id` maps from (the group parent on a one-entity graph). Named alongside a mapping of another entity's chart, it is refused.
3094
+ */
3095
+ entity_id?: string | null;
2944
3096
  /**
2945
3097
  * Name
2946
3098
  *
@@ -5409,11 +5561,12 @@ export type EventHandlerResponse = {
5409
5561
  * Request to publish an event to the source-of-truth system.
5410
5562
  *
5411
5563
  * For events on a connection with `write_policy='qb_authoritative'`
5412
- * (or `'hybrid'`), this triggers a synchronous write to QuickBooks
5413
- * via the QB API. The returned `qb_txn_id` lands on
5414
- * `event.metadata.qb_external_id` and the event transitions to
5415
- * `committed` (in flight) → `fulfilled` (QB accepted) or `pending`
5416
- * (QB rejected).
5564
+ * (or `'hybrid'`), this triggers a synchronous write to QuickBooks:
5565
+ * each draft entry posts as its own JournalEntry, with the entry id as
5566
+ * the RequestId, and its QuickBooks id is recorded per entry on
5567
+ * `event.metadata.qb_entry_ids`. The event goes `fulfilled` once no
5568
+ * draft remains, or `pending` when QuickBooks rejects an entry (what
5569
+ * landed is kept).
5417
5570
  *
5418
5571
  * `'native'`-policy events fast-path through with no QB write —
5419
5572
  * RoboSystems IS the source of truth, no outbound publish needed.
@@ -5953,13 +6106,19 @@ export type FinancialStatementAnalysisResponse = {
5953
6106
  /**
5954
6107
  * FiscalCalendarResponse
5955
6108
  *
5956
- * Current fiscal calendar state for a graph.
6109
+ * Current fiscal calendar state for one entity of a graph.
5957
6110
  */
5958
6111
  export type FiscalCalendarResponse = {
5959
6112
  /**
5960
6113
  * Graph Id
5961
6114
  */
5962
6115
  graph_id: string;
6116
+ /**
6117
+ * Entity Id
6118
+ *
6119
+ * The entity whose calendar this is.
6120
+ */
6121
+ entity_id?: string | null;
5963
6122
  /**
5964
6123
  * Fiscal Year Start Month
5965
6124
  */
@@ -5997,7 +6156,7 @@ export type FiscalCalendarResponse = {
5997
6156
  /**
5998
6157
  * Blockers
5999
6158
  *
6000
- * Structured blocker codes when closeable_now is False: 'sequence_violation', 'period_incomplete', 'sync_stale', 'calendar_not_initialized', 'period_already_closed', 'pending_obligations', 'stranded_obligations'
6159
+ * Structured blocker codes when closeable_now is False: 'sequence_violation', 'period_incomplete', 'sync_stale', 'calendar_not_initialized', 'period_already_closed', 'pending_obligations', 'stranded_obligations', 'reconciling_items', 'unposted_source_events', 'unreconciled_accounts'
6001
6160
  */
6002
6161
  blockers?: Array<string>;
6003
6162
  /**
@@ -7674,13 +7833,20 @@ export type InitialEntityData = {
7674
7833
  *
7675
7834
  * Create the graph's chart of accounts from a shipped template.
7676
7835
  *
7677
- * Refused (409) when the graph already has an active `chart_of_accounts`
7836
+ * Refused (409) when the entity already has an active `chart_of_accounts`
7678
7837
  * taxonomy — a QuickBooks-synced tenant never needs this, and a chart is
7679
- * never replaced. The template's equity rows are mapped by the entity's
7838
+ * never replaced. Each entity of the group keeps its own chart; omit
7839
+ * `entity_id` for the group parent. The template's equity rows are mapped by the entity's
7680
7840
  * legal form (`entity_type`: corporation / llc / partnership); omit it
7681
7841
  * to use the graph's primary entity, falling back to corporation.
7682
7842
  */
7683
7843
  export type InitializeChartOfAccountsRequest = {
7844
+ /**
7845
+ * Entity Id
7846
+ *
7847
+ * The entity to give a chart to, by id. Omit for the group parent. A sibling already having one is no bar.
7848
+ */
7849
+ entity_id?: string | null;
7684
7850
  /**
7685
7851
  * Template
7686
7852
  *
@@ -7764,6 +7930,12 @@ export type InitializeChartOfAccountsResponse = {
7764
7930
  * closing toward. Set independently via `set-close-target`.
7765
7931
  */
7766
7932
  export type InitializeLedgerRequest = {
7933
+ /**
7934
+ * Entity Id
7935
+ *
7936
+ * The entity whose books this acts on, by id. Omit for the group parent — the single-entity default.
7937
+ */
7938
+ entity_id?: string | null;
7767
7939
  /**
7768
7940
  * Closed Through
7769
7941
  *
@@ -8378,6 +8550,12 @@ export type LedgerEntityResponse = {
8378
8550
  * Parent entity ID for subsidiaries; null for top-level.
8379
8551
  */
8380
8552
  parent_entity_id?: string | null;
8553
+ /**
8554
+ * Ownership Pct
8555
+ *
8556
+ * The parent's share of this entity, as a percent (100 = wholly owned). Null on the group parent, and where it was never recorded.
8557
+ */
8558
+ ownership_pct?: number | null;
8381
8559
  /**
8382
8560
  * Source
8383
8561
  *
@@ -8760,6 +8938,12 @@ export type LineItemMetadataPredicate = {
8760
8938
  * explicitly.
8761
8939
  */
8762
8940
  export type LinkEntityTaxonomyRequest = {
8941
+ /**
8942
+ * Entity Id
8943
+ *
8944
+ * The entity to link, by id. Omit for the group parent.
8945
+ */
8946
+ entity_id?: string | null;
8763
8947
  /**
8764
8948
  * Taxonomy Id
8765
8949
  *
@@ -8887,6 +9071,12 @@ export type ListTableFilesResponse = {
8887
9071
  * Request for live-financial-statement (OLTP, entity graphs only).
8888
9072
  */
8889
9073
  export type LiveFinancialStatementRequest = {
9074
+ /**
9075
+ * Entity Id
9076
+ *
9077
+ * The entity whose books this acts on, by id. Omit for the group parent — the single-entity default.
9078
+ */
9079
+ entity_id?: string | null;
8890
9080
  /**
8891
9081
  * Statement Type
8892
9082
  *
@@ -8917,6 +9107,12 @@ export type LiveFinancialStatementRequest = {
8917
9107
  * Fiscal year for annual window (anchored on FiscalCalendar)
8918
9108
  */
8919
9109
  fiscal_year?: number | null;
9110
+ /**
9111
+ * Consolidated
9112
+ *
9113
+ * A combined statement, not a consolidation: every entity of the reporting group rendered under the group parent's Reporting Style and summed per rs-gaap concept, with nothing eliminated between them. Only on the group parent (422 on a subsidiary). An entity with no CoA mapping yet contributes nothing and is left out of `combined_entity_ids`.
9114
+ */
9115
+ consolidated?: boolean;
8920
9116
  /**
8921
9117
  * Limit
8922
9118
  *
@@ -8934,6 +9130,24 @@ export type LiveFinancialStatementResponse = {
8934
9130
  * Graph Id
8935
9131
  */
8936
9132
  graph_id: string;
9133
+ /**
9134
+ * Entity Id
9135
+ *
9136
+ * The entity whose books were rendered.
9137
+ */
9138
+ entity_id?: string | null;
9139
+ /**
9140
+ * Consolidated
9141
+ *
9142
+ * Whether the group's entities were summed into this: a combined statement, not a consolidation — nothing is eliminated between them.
9143
+ */
9144
+ consolidated?: boolean;
9145
+ /**
9146
+ * Combined Entity Ids
9147
+ *
9148
+ * The entities summed into a combined statement, parent first.
9149
+ */
9150
+ combined_entity_ids?: Array<string>;
8937
9151
  /**
8938
9152
  * Statement Type
8939
9153
  */
@@ -15137,6 +15351,12 @@ export type RenderingRowLite = {
15137
15351
  * Reopen a closed fiscal period.
15138
15352
  */
15139
15353
  export type ReopenPeriodOperation = {
15354
+ /**
15355
+ * Entity Id
15356
+ *
15357
+ * The entity whose books this acts on, by id. Omit for the group parent — the single-entity default.
15358
+ */
15359
+ entity_id?: string | null;
15140
15360
  /**
15141
15361
  * Reason
15142
15362
  *
@@ -15251,10 +15471,16 @@ export type ReportResponse = {
15251
15471
  * Structures available for this report's taxonomy — renderable sections (BS / IS / CF / Equity / Schedules).
15252
15472
  */
15253
15473
  structures?: Array<StructureSummary>;
15474
+ /**
15475
+ * Entity Id
15476
+ *
15477
+ * The entity the report is about. Null on a shared-in copy, and on a report from before entities were recorded, which is the group parent's.
15478
+ */
15479
+ entity_id?: string | null;
15254
15480
  /**
15255
15481
  * Entity Name
15256
15482
  *
15257
- * Display name of the primary entity the report is tagged to.
15483
+ * Display name of the entity the report is tagged to.
15258
15484
  */
15259
15485
  entity_name?: string | null;
15260
15486
  /**
@@ -16710,6 +16936,12 @@ export type ServiceOfferingsResponse = {
16710
16936
  * SetCloseTargetOperation
16711
16937
  */
16712
16938
  export type SetCloseTargetOperation = {
16939
+ /**
16940
+ * Entity Id
16941
+ *
16942
+ * The entity whose books this acts on, by id. Omit for the group parent — the single-entity default.
16943
+ */
16944
+ entity_id?: string | null;
16713
16945
  /**
16714
16946
  * Period
16715
16947
  *
@@ -16760,6 +16992,19 @@ export type SetReconciliationPolicyRequest = {
16760
16992
  */
16761
16993
  separate_reviewer?: boolean | null;
16762
16994
  };
16995
+ /**
16996
+ * SetSelectedGraphRequest
16997
+ *
16998
+ * Request model for setting the user's selected graph.
16999
+ */
17000
+ export type SetSelectedGraphRequest = {
17001
+ /**
17002
+ * Graph Id
17003
+ *
17004
+ * The graph the apps open on the caller's next load
17005
+ */
17006
+ graph_id: string;
17007
+ };
16763
17008
  /**
16764
17009
  * SetWritePolicyRequest
16765
17010
  *
@@ -18444,15 +18689,20 @@ export type UpdateAgentRequest = {
18444
18689
  /**
18445
18690
  * UpdateEntityRequest
18446
18691
  *
18447
- * Update the graph's primary entity. All fields are optional —
18448
- * pass only what changes. Identifiers (CIK, LEI, tax_id) are typically
18449
- * set once at onboarding; address fields are flattened to make them
18450
- * easy to project into reporting forms (1099, state filings).
18692
+ * Update an entity of the graph's reporting group. All fields are
18693
+ * optional — pass only what changes. Identifiers (CIK, LEI, tax_id) are
18694
+ * typically set once at onboarding; address fields are flattened to make
18695
+ * them easy to project into reporting forms (1099, state filings).
18451
18696
  *
18452
- * The graph is implicit (URL path) — there's no `entity_id` field
18453
- * because the operation always targets the graph's primary entity.
18697
+ * Omit `entity_id` to target the group parent.
18454
18698
  */
18455
18699
  export type UpdateEntityRequest = {
18700
+ /**
18701
+ * Entity Id
18702
+ *
18703
+ * The entity to update. Omit to target the group parent — the single-entity default.
18704
+ */
18705
+ entity_id?: string | null;
18456
18706
  /**
18457
18707
  * Name
18458
18708
  */
@@ -18543,6 +18793,12 @@ export type UpdateEntityRequest = {
18543
18793
  * Address Country
18544
18794
  */
18545
18795
  address_country?: string | null;
18796
+ /**
18797
+ * Ownership Pct
18798
+ *
18799
+ * The parent's share of this entity, as a percent. Refused on the group parent, which has no owner in the graph.
18800
+ */
18801
+ ownership_pct?: number | null;
18546
18802
  };
18547
18803
  /**
18548
18804
  * UpdateEventBlockRequest
@@ -21082,6 +21338,50 @@ export type UpdateUserPasswordResponses = {
21082
21338
  200: SuccessResponse;
21083
21339
  };
21084
21340
  export type UpdateUserPasswordResponse = UpdateUserPasswordResponses[keyof UpdateUserPasswordResponses];
21341
+ export type SetSelectedGraphData = {
21342
+ body: SetSelectedGraphRequest;
21343
+ path?: never;
21344
+ query?: never;
21345
+ url: '/v1/user/selected-graph';
21346
+ };
21347
+ export type SetSelectedGraphErrors = {
21348
+ /**
21349
+ * Invalid request
21350
+ */
21351
+ 400: ErrorResponse;
21352
+ /**
21353
+ * Authentication required
21354
+ */
21355
+ 401: ErrorResponse;
21356
+ /**
21357
+ * Access denied
21358
+ */
21359
+ 403: ErrorResponse;
21360
+ /**
21361
+ * Resource not found
21362
+ */
21363
+ 404: ErrorResponse;
21364
+ /**
21365
+ * Validation Error
21366
+ */
21367
+ 422: HttpValidationError;
21368
+ /**
21369
+ * Rate limit exceeded
21370
+ */
21371
+ 429: ErrorResponse;
21372
+ /**
21373
+ * Internal server error
21374
+ */
21375
+ 500: ErrorResponse;
21376
+ };
21377
+ export type SetSelectedGraphError = SetSelectedGraphErrors[keyof SetSelectedGraphErrors];
21378
+ export type SetSelectedGraphResponses = {
21379
+ /**
21380
+ * Successful Response
21381
+ */
21382
+ 200: SuccessResponse;
21383
+ };
21384
+ export type SetSelectedGraphResponse = SetSelectedGraphResponses[keyof SetSelectedGraphResponses];
21085
21385
  export type ListUserApiKeysData = {
21086
21386
  body?: never;
21087
21387
  path?: never;
@@ -22002,30 +22302,18 @@ export type GetOrgUsageResponses = {
22002
22302
  200: OrgUsageResponse;
22003
22303
  };
22004
22304
  export type GetOrgUsageResponse = GetOrgUsageResponses[keyof GetOrgUsageResponses];
22005
- export type SyncConnectionData = {
22006
- body: SyncConnectionRequest;
22007
- headers?: {
22008
- /**
22009
- * Idempotency-Key
22010
- */
22011
- 'Idempotency-Key'?: string | null;
22012
- };
22305
+ export type GetConnectionOptionsData = {
22306
+ body?: never;
22013
22307
  path: {
22014
22308
  /**
22015
22309
  * Graph Id
22016
22310
  */
22017
22311
  graph_id: string;
22018
- /**
22019
- * Connection Id
22020
- *
22021
- * Connection identifier
22022
- */
22023
- connection_id: string;
22024
22312
  };
22025
22313
  query?: never;
22026
- url: '/v1/graphs/{graph_id}/connections/{connection_id}/sync';
22314
+ url: '/v1/graphs/{graph_id}/connections/options';
22027
22315
  };
22028
- export type SyncConnectionErrors = {
22316
+ export type GetConnectionOptionsErrors = {
22029
22317
  /**
22030
22318
  * Invalid request
22031
22319
  */
@@ -22043,13 +22331,9 @@ export type SyncConnectionErrors = {
22043
22331
  */
22044
22332
  404: ErrorResponse;
22045
22333
  /**
22046
- * Idempotency-Key conflict — key reused with different body
22047
- */
22048
- 409: ErrorResponse;
22049
- /**
22050
- * Validation error
22334
+ * Validation Error
22051
22335
  */
22052
- 422: ErrorResponse;
22336
+ 422: HttpValidationError;
22053
22337
  /**
22054
22338
  * Rate limit exceeded
22055
22339
  */
@@ -22058,20 +22342,16 @@ export type SyncConnectionErrors = {
22058
22342
  * Internal server error
22059
22343
  */
22060
22344
  500: ErrorResponse;
22061
- /**
22062
- * Sync request timed out
22063
- */
22064
- 504: unknown;
22065
22345
  };
22066
- export type SyncConnectionError = SyncConnectionErrors[keyof SyncConnectionErrors];
22067
- export type SyncConnectionResponses = {
22346
+ export type GetConnectionOptionsError = GetConnectionOptionsErrors[keyof GetConnectionOptionsErrors];
22347
+ export type GetConnectionOptionsResponses = {
22068
22348
  /**
22069
22349
  * Successful Response
22070
22350
  */
22071
- 202: OperationEnvelope;
22351
+ 200: ConnectionOptionsResponse;
22072
22352
  };
22073
- export type SyncConnectionResponse = SyncConnectionResponses[keyof SyncConnectionResponses];
22074
- export type GetConnectionOptionsData = {
22353
+ export type GetConnectionOptionsResponse = GetConnectionOptionsResponses[keyof GetConnectionOptionsResponses];
22354
+ export type ListConnectionsData = {
22075
22355
  body?: never;
22076
22356
  path: {
22077
22357
  /**
@@ -22079,10 +22359,23 @@ export type GetConnectionOptionsData = {
22079
22359
  */
22080
22360
  graph_id: string;
22081
22361
  };
22082
- query?: never;
22083
- url: '/v1/graphs/{graph_id}/connections/options';
22362
+ query?: {
22363
+ /**
22364
+ * Entity Id
22365
+ *
22366
+ * Filter by entity ID
22367
+ */
22368
+ entity_id?: string | null;
22369
+ /**
22370
+ * Provider
22371
+ *
22372
+ * Filter by provider type
22373
+ */
22374
+ provider?: 'quickbooks' | 'external' | 'mercury' | 'plaid' | null;
22375
+ };
22376
+ url: '/v1/graphs/{graph_id}/connections';
22084
22377
  };
22085
- export type GetConnectionOptionsErrors = {
22378
+ export type ListConnectionsErrors = {
22086
22379
  /**
22087
22380
  * Invalid request
22088
22381
  */
@@ -22112,16 +22405,18 @@ export type GetConnectionOptionsErrors = {
22112
22405
  */
22113
22406
  500: ErrorResponse;
22114
22407
  };
22115
- export type GetConnectionOptionsError = GetConnectionOptionsErrors[keyof GetConnectionOptionsErrors];
22116
- export type GetConnectionOptionsResponses = {
22408
+ export type ListConnectionsError = ListConnectionsErrors[keyof ListConnectionsErrors];
22409
+ export type ListConnectionsResponses = {
22117
22410
  /**
22411
+ * Response Listconnections
22412
+ *
22118
22413
  * Successful Response
22119
22414
  */
22120
- 200: ConnectionOptionsResponse;
22415
+ 200: Array<ConnectionResponse>;
22121
22416
  };
22122
- export type GetConnectionOptionsResponse = GetConnectionOptionsResponses[keyof GetConnectionOptionsResponses];
22123
- export type InitOAuthData = {
22124
- body: OAuthInitRequest;
22417
+ export type ListConnectionsResponse = ListConnectionsResponses[keyof ListConnectionsResponses];
22418
+ export type CreateConnectionData = {
22419
+ body: CreateConnectionRequest;
22125
22420
  path: {
22126
22421
  /**
22127
22422
  * Graph Id
@@ -22129,9 +22424,9 @@ export type InitOAuthData = {
22129
22424
  graph_id: string;
22130
22425
  };
22131
22426
  query?: never;
22132
- url: '/v1/graphs/{graph_id}/connections/oauth/init';
22427
+ url: '/v1/graphs/{graph_id}/connections';
22133
22428
  };
22134
- export type InitOAuthErrors = {
22429
+ export type CreateConnectionErrors = {
22135
22430
  /**
22136
22431
  * Invalid request
22137
22432
  */
@@ -22148,6 +22443,10 @@ export type InitOAuthErrors = {
22148
22443
  * Resource not found
22149
22444
  */
22150
22445
  404: ErrorResponse;
22446
+ /**
22447
+ * Connection already exists for this provider
22448
+ */
22449
+ 409: unknown;
22151
22450
  /**
22152
22451
  * Validation Error
22153
22452
  */
@@ -22161,32 +22460,26 @@ export type InitOAuthErrors = {
22161
22460
  */
22162
22461
  500: ErrorResponse;
22163
22462
  };
22164
- export type InitOAuthError = InitOAuthErrors[keyof InitOAuthErrors];
22165
- export type InitOAuthResponses = {
22463
+ export type CreateConnectionError = CreateConnectionErrors[keyof CreateConnectionErrors];
22464
+ export type CreateConnectionResponses = {
22166
22465
  /**
22167
22466
  * Successful Response
22168
22467
  */
22169
- 200: OAuthInitResponse;
22468
+ 201: ConnectionResponse;
22170
22469
  };
22171
- export type InitOAuthResponse = InitOAuthResponses[keyof InitOAuthResponses];
22172
- export type OauthCallbackData = {
22173
- body: OAuthCallbackRequest;
22470
+ export type CreateConnectionResponse = CreateConnectionResponses[keyof CreateConnectionResponses];
22471
+ export type InitOAuthData = {
22472
+ body: OAuthInitRequest;
22174
22473
  path: {
22175
- /**
22176
- * Provider
22177
- *
22178
- * OAuth provider name
22179
- */
22180
- provider: string;
22181
22474
  /**
22182
22475
  * Graph Id
22183
22476
  */
22184
22477
  graph_id: string;
22185
22478
  };
22186
22479
  query?: never;
22187
- url: '/v1/graphs/{graph_id}/connections/oauth/callback/{provider}';
22480
+ url: '/v1/graphs/{graph_id}/connections/oauth/init';
22188
22481
  };
22189
- export type OauthCallbackErrors = {
22482
+ export type InitOAuthErrors = {
22190
22483
  /**
22191
22484
  * Invalid request
22192
22485
  */
@@ -22216,39 +22509,32 @@ export type OauthCallbackErrors = {
22216
22509
  */
22217
22510
  500: ErrorResponse;
22218
22511
  };
22219
- export type OauthCallbackError = OauthCallbackErrors[keyof OauthCallbackErrors];
22220
- export type OauthCallbackResponses = {
22512
+ export type InitOAuthError = InitOAuthErrors[keyof InitOAuthErrors];
22513
+ export type InitOAuthResponses = {
22221
22514
  /**
22222
22515
  * Successful Response
22223
22516
  */
22224
- 200: OAuthCallbackResponse;
22517
+ 200: OAuthInitResponse;
22225
22518
  };
22226
- export type OauthCallbackResponse = OauthCallbackResponses[keyof OauthCallbackResponses];
22227
- export type ListConnectionsData = {
22228
- body?: never;
22519
+ export type InitOAuthResponse = InitOAuthResponses[keyof InitOAuthResponses];
22520
+ export type OauthCallbackData = {
22521
+ body: OAuthCallbackRequest;
22229
22522
  path: {
22230
22523
  /**
22231
- * Graph Id
22232
- */
22233
- graph_id: string;
22234
- };
22235
- query?: {
22236
- /**
22237
- * Entity Id
22524
+ * Provider
22238
22525
  *
22239
- * Filter by entity ID
22526
+ * OAuth provider name
22240
22527
  */
22241
- entity_id?: string | null;
22528
+ provider: string;
22242
22529
  /**
22243
- * Provider
22244
- *
22245
- * Filter by provider type
22530
+ * Graph Id
22246
22531
  */
22247
- provider?: 'quickbooks' | 'external' | 'mercury' | 'plaid' | null;
22532
+ graph_id: string;
22248
22533
  };
22249
- url: '/v1/graphs/{graph_id}/connections';
22534
+ query?: never;
22535
+ url: '/v1/graphs/{graph_id}/connections/oauth/callback/{provider}';
22250
22536
  };
22251
- export type ListConnectionsErrors = {
22537
+ export type OauthCallbackErrors = {
22252
22538
  /**
22253
22539
  * Invalid request
22254
22540
  */
@@ -22278,28 +22564,39 @@ export type ListConnectionsErrors = {
22278
22564
  */
22279
22565
  500: ErrorResponse;
22280
22566
  };
22281
- export type ListConnectionsError = ListConnectionsErrors[keyof ListConnectionsErrors];
22282
- export type ListConnectionsResponses = {
22567
+ export type OauthCallbackError = OauthCallbackErrors[keyof OauthCallbackErrors];
22568
+ export type OauthCallbackResponses = {
22283
22569
  /**
22284
- * Response Listconnections
22285
- *
22286
22570
  * Successful Response
22287
22571
  */
22288
- 200: Array<ConnectionResponse>;
22572
+ 200: OAuthCallbackResponse;
22289
22573
  };
22290
- export type ListConnectionsResponse = ListConnectionsResponses[keyof ListConnectionsResponses];
22291
- export type CreateConnectionData = {
22292
- body: CreateConnectionRequest;
22574
+ export type OauthCallbackResponse = OauthCallbackResponses[keyof OauthCallbackResponses];
22575
+ export type DeleteConnectionData = {
22576
+ body?: never;
22293
22577
  path: {
22294
22578
  /**
22295
22579
  * Graph Id
22296
22580
  */
22297
22581
  graph_id: string;
22582
+ /**
22583
+ * Connection Id
22584
+ *
22585
+ * Connection identifier
22586
+ */
22587
+ connection_id: string;
22298
22588
  };
22299
- query?: never;
22300
- url: '/v1/graphs/{graph_id}/connections';
22589
+ query?: {
22590
+ /**
22591
+ * Disposition
22592
+ *
22593
+ * `disconnect` (default): soft-delete; a later re-OAuth to the same realm revives the connection. `sever`: the native-accounting cutover — QuickBooks only; the chart it created is stamped native-owned, write_policy drops to native, and the connection is never revived.
22594
+ */
22595
+ disposition?: 'disconnect' | 'sever';
22596
+ };
22597
+ url: '/v1/graphs/{graph_id}/connections/{connection_id}';
22301
22598
  };
22302
- export type CreateConnectionErrors = {
22599
+ export type DeleteConnectionErrors = {
22303
22600
  /**
22304
22601
  * Invalid request
22305
22602
  */
@@ -22316,10 +22613,6 @@ export type CreateConnectionErrors = {
22316
22613
  * Resource not found
22317
22614
  */
22318
22615
  404: ErrorResponse;
22319
- /**
22320
- * Connection already exists for this provider
22321
- */
22322
- 409: unknown;
22323
22616
  /**
22324
22617
  * Validation Error
22325
22618
  */
@@ -22333,15 +22626,15 @@ export type CreateConnectionErrors = {
22333
22626
  */
22334
22627
  500: ErrorResponse;
22335
22628
  };
22336
- export type CreateConnectionError = CreateConnectionErrors[keyof CreateConnectionErrors];
22337
- export type CreateConnectionResponses = {
22629
+ export type DeleteConnectionError = DeleteConnectionErrors[keyof DeleteConnectionErrors];
22630
+ export type DeleteConnectionResponses = {
22338
22631
  /**
22339
22632
  * Successful Response
22340
22633
  */
22341
- 201: ConnectionResponse;
22634
+ 200: SuccessResponse;
22342
22635
  };
22343
- export type CreateConnectionResponse = CreateConnectionResponses[keyof CreateConnectionResponses];
22344
- export type DeleteConnectionData = {
22636
+ export type DeleteConnectionResponse = DeleteConnectionResponses[keyof DeleteConnectionResponses];
22637
+ export type GetConnectionData = {
22345
22638
  body?: never;
22346
22639
  path: {
22347
22640
  /**
@@ -22351,21 +22644,14 @@ export type DeleteConnectionData = {
22351
22644
  /**
22352
22645
  * Connection Id
22353
22646
  *
22354
- * Connection identifier
22647
+ * Unique connection identifier
22355
22648
  */
22356
22649
  connection_id: string;
22357
22650
  };
22358
- query?: {
22359
- /**
22360
- * Disposition
22361
- *
22362
- * `disconnect` (default): soft-delete; a later re-OAuth to the same realm revives the connection. `sever`: the native-accounting cutover — QuickBooks only; the chart it created is stamped native-owned, write_policy drops to native, and the connection is never revived.
22363
- */
22364
- disposition?: 'disconnect' | 'sever';
22365
- };
22651
+ query?: never;
22366
22652
  url: '/v1/graphs/{graph_id}/connections/{connection_id}';
22367
22653
  };
22368
- export type DeleteConnectionErrors = {
22654
+ export type GetConnectionErrors = {
22369
22655
  /**
22370
22656
  * Invalid request
22371
22657
  */
@@ -22395,16 +22681,22 @@ export type DeleteConnectionErrors = {
22395
22681
  */
22396
22682
  500: ErrorResponse;
22397
22683
  };
22398
- export type DeleteConnectionError = DeleteConnectionErrors[keyof DeleteConnectionErrors];
22399
- export type DeleteConnectionResponses = {
22684
+ export type GetConnectionError = GetConnectionErrors[keyof GetConnectionErrors];
22685
+ export type GetConnectionResponses = {
22400
22686
  /**
22401
22687
  * Successful Response
22402
22688
  */
22403
- 200: SuccessResponse;
22689
+ 200: ConnectionResponse;
22404
22690
  };
22405
- export type DeleteConnectionResponse = DeleteConnectionResponses[keyof DeleteConnectionResponses];
22406
- export type GetConnectionData = {
22407
- body?: never;
22691
+ export type GetConnectionResponse = GetConnectionResponses[keyof GetConnectionResponses];
22692
+ export type SyncConnectionData = {
22693
+ body: SyncConnectionRequest;
22694
+ headers?: {
22695
+ /**
22696
+ * Idempotency-Key
22697
+ */
22698
+ 'Idempotency-Key'?: string | null;
22699
+ };
22408
22700
  path: {
22409
22701
  /**
22410
22702
  * Graph Id
@@ -22413,14 +22705,14 @@ export type GetConnectionData = {
22413
22705
  /**
22414
22706
  * Connection Id
22415
22707
  *
22416
- * Unique connection identifier
22708
+ * Connection identifier
22417
22709
  */
22418
22710
  connection_id: string;
22419
22711
  };
22420
22712
  query?: never;
22421
- url: '/v1/graphs/{graph_id}/connections/{connection_id}';
22713
+ url: '/v1/graphs/{graph_id}/connections/{connection_id}/sync';
22422
22714
  };
22423
- export type GetConnectionErrors = {
22715
+ export type SyncConnectionErrors = {
22424
22716
  /**
22425
22717
  * Invalid request
22426
22718
  */
@@ -22438,9 +22730,13 @@ export type GetConnectionErrors = {
22438
22730
  */
22439
22731
  404: ErrorResponse;
22440
22732
  /**
22441
- * Validation Error
22733
+ * Idempotency-Key conflict — key reused with different body
22442
22734
  */
22443
- 422: HttpValidationError;
22735
+ 409: ErrorResponse;
22736
+ /**
22737
+ * Validation error
22738
+ */
22739
+ 422: ErrorResponse;
22444
22740
  /**
22445
22741
  * Rate limit exceeded
22446
22742
  */
@@ -22449,15 +22745,19 @@ export type GetConnectionErrors = {
22449
22745
  * Internal server error
22450
22746
  */
22451
22747
  500: ErrorResponse;
22748
+ /**
22749
+ * Sync request timed out
22750
+ */
22751
+ 504: unknown;
22452
22752
  };
22453
- export type GetConnectionError = GetConnectionErrors[keyof GetConnectionErrors];
22454
- export type GetConnectionResponses = {
22753
+ export type SyncConnectionError = SyncConnectionErrors[keyof SyncConnectionErrors];
22754
+ export type SyncConnectionResponses = {
22455
22755
  /**
22456
22756
  * Successful Response
22457
22757
  */
22458
- 200: ConnectionResponse;
22758
+ 202: OperationEnvelope;
22459
22759
  };
22460
- export type GetConnectionResponse = GetConnectionResponses[keyof GetConnectionResponses];
22760
+ export type SyncConnectionResponse = SyncConnectionResponses[keyof SyncConnectionResponses];
22461
22761
  export type SetConnectionWritePolicyData = {
22462
22762
  body: SetWritePolicyRequest;
22463
22763
  path: {
@@ -25865,55 +26165,6 @@ export type GetGraphCapacityResponses = {
25865
26165
  200: GraphCapacityResponse;
25866
26166
  };
25867
26167
  export type GetGraphCapacityResponse = GetGraphCapacityResponses[keyof GetGraphCapacityResponses];
25868
- export type SelectGraphData = {
25869
- body?: never;
25870
- path: {
25871
- /**
25872
- * Graph Id
25873
- */
25874
- graph_id: string;
25875
- };
25876
- query?: never;
25877
- url: '/v1/graphs/{graph_id}/select';
25878
- };
25879
- export type SelectGraphErrors = {
25880
- /**
25881
- * Invalid request
25882
- */
25883
- 400: ErrorResponse;
25884
- /**
25885
- * Authentication required
25886
- */
25887
- 401: ErrorResponse;
25888
- /**
25889
- * Access denied
25890
- */
25891
- 403: ErrorResponse;
25892
- /**
25893
- * Resource not found
25894
- */
25895
- 404: ErrorResponse;
25896
- /**
25897
- * Validation Error
25898
- */
25899
- 422: HttpValidationError;
25900
- /**
25901
- * Rate limit exceeded
25902
- */
25903
- 429: ErrorResponse;
25904
- /**
25905
- * Internal server error
25906
- */
25907
- 500: ErrorResponse;
25908
- };
25909
- export type SelectGraphError = SelectGraphErrors[keyof SelectGraphErrors];
25910
- export type SelectGraphResponses = {
25911
- /**
25912
- * Successful Response
25913
- */
25914
- 200: SuccessResponse;
25915
- };
25916
- export type SelectGraphResponse = SelectGraphResponses[keyof SelectGraphResponses];
25917
26168
  export type ValidateSchemaData = {
25918
26169
  /**
25919
26170
  * Schema definition to validate
@@ -26013,7 +26264,7 @@ export type StreamOperationEventsData = {
26013
26264
  /**
26014
26265
  * From Sequence
26015
26266
  *
26016
- * Start streaming from this sequence number (0 = from beginning)
26267
+ * Replay stored events from this sequence number, then stream live ones. A running operation replays nothing at 0 (live events only); a settled one replays its history from here (0 = all) and closes.
26017
26268
  */
26018
26269
  from_sequence?: number;
26019
26270
  /**
@@ -26899,6 +27150,65 @@ export type InitializeChartOfAccountsResponses = {
26899
27150
  200: OperationEnvelopeInitializeChartOfAccountsResponse;
26900
27151
  };
26901
27152
  export type InitializeChartOfAccountsResponse2 = InitializeChartOfAccountsResponses[keyof InitializeChartOfAccountsResponses];
27153
+ export type CreateEntityData = {
27154
+ body: CreateEntityRequest;
27155
+ headers?: {
27156
+ /**
27157
+ * Idempotency-Key
27158
+ */
27159
+ 'Idempotency-Key'?: string | null;
27160
+ };
27161
+ path: {
27162
+ /**
27163
+ * Graph Id
27164
+ */
27165
+ graph_id: string;
27166
+ };
27167
+ query?: never;
27168
+ url: '/extensions/roboledger/{graph_id}/operations/create-entity';
27169
+ };
27170
+ export type CreateEntityErrors = {
27171
+ /**
27172
+ * Invalid request
27173
+ */
27174
+ 400: ErrorResponse;
27175
+ /**
27176
+ * Authentication required
27177
+ */
27178
+ 401: ErrorResponse;
27179
+ /**
27180
+ * Access denied
27181
+ */
27182
+ 403: ErrorResponse;
27183
+ /**
27184
+ * Resource not found
27185
+ */
27186
+ 404: ErrorResponse;
27187
+ /**
27188
+ * Idempotency-Key conflict — key reused with different body
27189
+ */
27190
+ 409: ErrorResponse;
27191
+ /**
27192
+ * Validation error
27193
+ */
27194
+ 422: ErrorResponse;
27195
+ /**
27196
+ * Rate limit exceeded
27197
+ */
27198
+ 429: ErrorResponse;
27199
+ /**
27200
+ * Internal server error
27201
+ */
27202
+ 500: ErrorResponse;
27203
+ };
27204
+ export type CreateEntityError = CreateEntityErrors[keyof CreateEntityErrors];
27205
+ export type CreateEntityResponses = {
27206
+ /**
27207
+ * Successful Response
27208
+ */
27209
+ 200: OperationEnvelopeLedgerEntityResponse;
27210
+ };
27211
+ export type CreateEntityResponse = CreateEntityResponses[keyof CreateEntityResponses];
26902
27212
  export type UpdateEntityData = {
26903
27213
  body: UpdateEntityRequest;
26904
27214
  headers?: {