@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.
package/sdk/types.gen.ts CHANGED
@@ -700,6 +700,12 @@ export type BackfillPeriodOutcome = {
700
700
  * Compile monthly statement history behind the close boundary.
701
701
  */
702
702
  export type BackfillPlanHistoryOperation = {
703
+ /**
704
+ * Entity Id
705
+ *
706
+ * The entity whose books this acts on, by id. Omit for the group parent — the single-entity default.
707
+ */
708
+ entity_id?: string | null;
703
709
  /**
704
710
  * Start Period
705
711
  *
@@ -1675,6 +1681,12 @@ export type ClassificationLite = {
1675
1681
  * :class:`ClosePeriodRequest`.
1676
1682
  */
1677
1683
  export type ClosePeriodOperation = {
1684
+ /**
1685
+ * Entity Id
1686
+ *
1687
+ * The entity whose books this acts on, by id. Omit for the group parent — the single-entity default.
1688
+ */
1689
+ entity_id?: string | null;
1678
1690
  /**
1679
1691
  * Note
1680
1692
  *
@@ -2520,12 +2532,147 @@ export type CreateConnectionRequest = {
2520
2532
  plaid_config?: PlaidConnectionConfig | null;
2521
2533
  };
2522
2534
 
2535
+ /**
2536
+ * CreateEntityRequest
2537
+ *
2538
+ * Add an entity to the graph's reporting group.
2539
+ *
2540
+ * The new entity is a subsidiary of `parent_entity_id`, default the group
2541
+ * parent, and keeps its own books: give it a chart next
2542
+ * (`initialize-chart-of-accounts` with `entity_id`) and a calendar
2543
+ * (`initialize`), then name it with `entity_id` on any ledger operation.
2544
+ * A graph created without an entity gets this one as its group parent.
2545
+ * There is no cap on entities in a graph; capacity is the tier's.
2546
+ */
2547
+ export type CreateEntityRequest = {
2548
+ /**
2549
+ * Name
2550
+ *
2551
+ * Display name.
2552
+ */
2553
+ name: string;
2554
+ /**
2555
+ * Legal Name
2556
+ *
2557
+ * Registered legal name. Defaults to `name`.
2558
+ */
2559
+ legal_name?: string | null;
2560
+ /**
2561
+ * Entity Type
2562
+ *
2563
+ * 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.
2564
+ */
2565
+ entity_type?: string | null;
2566
+ /**
2567
+ * Reporting Style Id
2568
+ *
2569
+ * Structure id of the Reporting Style to present under, validated in the graph like change-reporting-style. Omit to derive it from `entity_type`.
2570
+ */
2571
+ reporting_style_id?: string | null;
2572
+ /**
2573
+ * Parent Entity Id
2574
+ *
2575
+ * The entity this one is held under. Omit for the group parent; name a subsidiary to nest a sub-group under it.
2576
+ */
2577
+ parent_entity_id?: string | null;
2578
+ /**
2579
+ * Ownership Pct
2580
+ *
2581
+ * 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.
2582
+ */
2583
+ ownership_pct?: number | null;
2584
+ /**
2585
+ * Ticker
2586
+ *
2587
+ * Short symbol, unique in the graph; it prefixes the entity's account names (`coa-<ticker>:1000`). Derived from the name's initials when omitted.
2588
+ */
2589
+ ticker?: string | null;
2590
+ /**
2591
+ * Uri
2592
+ *
2593
+ * Canonical URL / external identifier.
2594
+ */
2595
+ uri?: string | null;
2596
+ /**
2597
+ * Cik
2598
+ */
2599
+ cik?: string | null;
2600
+ /**
2601
+ * Sic
2602
+ */
2603
+ sic?: string | null;
2604
+ /**
2605
+ * Sic Description
2606
+ */
2607
+ sic_description?: string | null;
2608
+ /**
2609
+ * Category
2610
+ */
2611
+ category?: string | null;
2612
+ /**
2613
+ * State Of Incorporation
2614
+ */
2615
+ state_of_incorporation?: string | null;
2616
+ /**
2617
+ * Fiscal Year End
2618
+ *
2619
+ * Fiscal year-end as MM-DD. Defaults to the parent's: a graph has one fiscal cadence, and every entity's calendar follows it.
2620
+ */
2621
+ fiscal_year_end?: string | null;
2622
+ /**
2623
+ * Tax Id
2624
+ */
2625
+ tax_id?: string | null;
2626
+ /**
2627
+ * Lei
2628
+ */
2629
+ lei?: string | null;
2630
+ /**
2631
+ * Industry
2632
+ */
2633
+ industry?: string | null;
2634
+ /**
2635
+ * Phone
2636
+ */
2637
+ phone?: string | null;
2638
+ /**
2639
+ * Website
2640
+ */
2641
+ website?: string | null;
2642
+ /**
2643
+ * Address Line1
2644
+ */
2645
+ address_line1?: string | null;
2646
+ /**
2647
+ * Address City
2648
+ */
2649
+ address_city?: string | null;
2650
+ /**
2651
+ * Address State
2652
+ */
2653
+ address_state?: string | null;
2654
+ /**
2655
+ * Address Postal Code
2656
+ */
2657
+ address_postal_code?: string | null;
2658
+ /**
2659
+ * Address Country
2660
+ */
2661
+ address_country?: string | null;
2662
+ };
2663
+
2523
2664
  /**
2524
2665
  * CreateEventBlockRequest
2525
2666
  *
2526
2667
  * Write surface for a single business event.
2527
2668
  */
2528
2669
  export type CreateEventBlockRequest = {
2670
+ /**
2671
+ * Entity Id
2672
+ *
2673
+ * The entity whose books the event lands in, by id; every GL row its handler writes follows it. Omit for the group parent.
2674
+ */
2675
+ entity_id?: string | null;
2529
2676
  /**
2530
2677
  * Event Type
2531
2678
  *
@@ -3015,6 +3162,12 @@ export type CreatePublishListRequest = {
3015
3162
  * inputs to period generation.
3016
3163
  */
3017
3164
  export type CreateReportRequest = {
3165
+ /**
3166
+ * Entity Id
3167
+ *
3168
+ * 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.
3169
+ */
3170
+ entity_id?: string | null;
3018
3171
  /**
3019
3172
  * Name
3020
3173
  *
@@ -5545,11 +5698,12 @@ export type EventHandlerResponse = {
5545
5698
  * Request to publish an event to the source-of-truth system.
5546
5699
  *
5547
5700
  * For events on a connection with `write_policy='qb_authoritative'`
5548
- * (or `'hybrid'`), this triggers a synchronous write to QuickBooks
5549
- * via the QB API. The returned `qb_txn_id` lands on
5550
- * `event.metadata.qb_external_id` and the event transitions to
5551
- * `committed` (in flight) → `fulfilled` (QB accepted) or `pending`
5552
- * (QB rejected).
5701
+ * (or `'hybrid'`), this triggers a synchronous write to QuickBooks:
5702
+ * each draft entry posts as its own JournalEntry, with the entry id as
5703
+ * the RequestId, and its QuickBooks id is recorded per entry on
5704
+ * `event.metadata.qb_entry_ids`. The event goes `fulfilled` once no
5705
+ * draft remains, or `pending` when QuickBooks rejects an entry (what
5706
+ * landed is kept).
5553
5707
  *
5554
5708
  * `'native'`-policy events fast-path through with no QB write —
5555
5709
  * RoboSystems IS the source of truth, no outbound publish needed.
@@ -6102,13 +6256,19 @@ export type FinancialStatementAnalysisResponse = {
6102
6256
  /**
6103
6257
  * FiscalCalendarResponse
6104
6258
  *
6105
- * Current fiscal calendar state for a graph.
6259
+ * Current fiscal calendar state for one entity of a graph.
6106
6260
  */
6107
6261
  export type FiscalCalendarResponse = {
6108
6262
  /**
6109
6263
  * Graph Id
6110
6264
  */
6111
6265
  graph_id: string;
6266
+ /**
6267
+ * Entity Id
6268
+ *
6269
+ * The entity whose calendar this is.
6270
+ */
6271
+ entity_id?: string | null;
6112
6272
  /**
6113
6273
  * Fiscal Year Start Month
6114
6274
  */
@@ -6146,7 +6306,7 @@ export type FiscalCalendarResponse = {
6146
6306
  /**
6147
6307
  * Blockers
6148
6308
  *
6149
- * Structured blocker codes when closeable_now is False: 'sequence_violation', 'period_incomplete', 'sync_stale', 'calendar_not_initialized', 'period_already_closed', 'pending_obligations', 'stranded_obligations'
6309
+ * 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'
6150
6310
  */
6151
6311
  blockers?: Array<string>;
6152
6312
  /**
@@ -7857,13 +8017,20 @@ export type InitialEntityData = {
7857
8017
  *
7858
8018
  * Create the graph's chart of accounts from a shipped template.
7859
8019
  *
7860
- * Refused (409) when the graph already has an active `chart_of_accounts`
8020
+ * Refused (409) when the entity already has an active `chart_of_accounts`
7861
8021
  * taxonomy — a QuickBooks-synced tenant never needs this, and a chart is
7862
- * never replaced. The template's equity rows are mapped by the entity's
8022
+ * never replaced. Each entity of the group keeps its own chart; omit
8023
+ * `entity_id` for the group parent. The template's equity rows are mapped by the entity's
7863
8024
  * legal form (`entity_type`: corporation / llc / partnership); omit it
7864
8025
  * to use the graph's primary entity, falling back to corporation.
7865
8026
  */
7866
8027
  export type InitializeChartOfAccountsRequest = {
8028
+ /**
8029
+ * Entity Id
8030
+ *
8031
+ * The entity to give a chart to, by id. Omit for the group parent. A sibling already having one is no bar.
8032
+ */
8033
+ entity_id?: string | null;
7867
8034
  /**
7868
8035
  * Template
7869
8036
  *
@@ -7949,6 +8116,12 @@ export type InitializeChartOfAccountsResponse = {
7949
8116
  * closing toward. Set independently via `set-close-target`.
7950
8117
  */
7951
8118
  export type InitializeLedgerRequest = {
8119
+ /**
8120
+ * Entity Id
8121
+ *
8122
+ * The entity whose books this acts on, by id. Omit for the group parent — the single-entity default.
8123
+ */
8124
+ entity_id?: string | null;
7952
8125
  /**
7953
8126
  * Closed Through
7954
8127
  *
@@ -8574,6 +8747,12 @@ export type LedgerEntityResponse = {
8574
8747
  * Parent entity ID for subsidiaries; null for top-level.
8575
8748
  */
8576
8749
  parent_entity_id?: string | null;
8750
+ /**
8751
+ * Ownership Pct
8752
+ *
8753
+ * The parent's share of this entity, as a percent (100 = wholly owned). Null on the group parent, and where it was never recorded.
8754
+ */
8755
+ ownership_pct?: number | null;
8577
8756
  /**
8578
8757
  * Source
8579
8758
  *
@@ -8964,6 +9143,12 @@ export type LineItemMetadataPredicate = {
8964
9143
  * explicitly.
8965
9144
  */
8966
9145
  export type LinkEntityTaxonomyRequest = {
9146
+ /**
9147
+ * Entity Id
9148
+ *
9149
+ * The entity to link, by id. Omit for the group parent.
9150
+ */
9151
+ entity_id?: string | null;
8967
9152
  /**
8968
9153
  * Taxonomy Id
8969
9154
  *
@@ -9094,6 +9279,12 @@ export type ListTableFilesResponse = {
9094
9279
  * Request for live-financial-statement (OLTP, entity graphs only).
9095
9280
  */
9096
9281
  export type LiveFinancialStatementRequest = {
9282
+ /**
9283
+ * Entity Id
9284
+ *
9285
+ * The entity whose books this acts on, by id. Omit for the group parent — the single-entity default.
9286
+ */
9287
+ entity_id?: string | null;
9097
9288
  /**
9098
9289
  * Statement Type
9099
9290
  *
@@ -9124,6 +9315,12 @@ export type LiveFinancialStatementRequest = {
9124
9315
  * Fiscal year for annual window (anchored on FiscalCalendar)
9125
9316
  */
9126
9317
  fiscal_year?: number | null;
9318
+ /**
9319
+ * Consolidated
9320
+ *
9321
+ * 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`.
9322
+ */
9323
+ consolidated?: boolean;
9127
9324
  /**
9128
9325
  * Limit
9129
9326
  *
@@ -9142,6 +9339,24 @@ export type LiveFinancialStatementResponse = {
9142
9339
  * Graph Id
9143
9340
  */
9144
9341
  graph_id: string;
9342
+ /**
9343
+ * Entity Id
9344
+ *
9345
+ * The entity whose books were rendered.
9346
+ */
9347
+ entity_id?: string | null;
9348
+ /**
9349
+ * Consolidated
9350
+ *
9351
+ * Whether the group's entities were summed into this: a combined statement, not a consolidation — nothing is eliminated between them.
9352
+ */
9353
+ consolidated?: boolean;
9354
+ /**
9355
+ * Combined Entity Ids
9356
+ *
9357
+ * The entities summed into a combined statement, parent first.
9358
+ */
9359
+ combined_entity_ids?: Array<string>;
9145
9360
  /**
9146
9361
  * Statement Type
9147
9362
  */
@@ -15502,6 +15717,12 @@ export type RenderingRowLite = {
15502
15717
  * Reopen a closed fiscal period.
15503
15718
  */
15504
15719
  export type ReopenPeriodOperation = {
15720
+ /**
15721
+ * Entity Id
15722
+ *
15723
+ * The entity whose books this acts on, by id. Omit for the group parent — the single-entity default.
15724
+ */
15725
+ entity_id?: string | null;
15505
15726
  /**
15506
15727
  * Reason
15507
15728
  *
@@ -15617,10 +15838,16 @@ export type ReportResponse = {
15617
15838
  * Structures available for this report's taxonomy — renderable sections (BS / IS / CF / Equity / Schedules).
15618
15839
  */
15619
15840
  structures?: Array<StructureSummary>;
15841
+ /**
15842
+ * Entity Id
15843
+ *
15844
+ * 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.
15845
+ */
15846
+ entity_id?: string | null;
15620
15847
  /**
15621
15848
  * Entity Name
15622
15849
  *
15623
- * Display name of the primary entity the report is tagged to.
15850
+ * Display name of the entity the report is tagged to.
15624
15851
  */
15625
15852
  entity_name?: string | null;
15626
15853
  /**
@@ -17112,6 +17339,12 @@ export type ServiceOfferingsResponse = {
17112
17339
  * SetCloseTargetOperation
17113
17340
  */
17114
17341
  export type SetCloseTargetOperation = {
17342
+ /**
17343
+ * Entity Id
17344
+ *
17345
+ * The entity whose books this acts on, by id. Omit for the group parent — the single-entity default.
17346
+ */
17347
+ entity_id?: string | null;
17115
17348
  /**
17116
17349
  * Period
17117
17350
  *
@@ -17164,6 +17397,20 @@ export type SetReconciliationPolicyRequest = {
17164
17397
  separate_reviewer?: boolean | null;
17165
17398
  };
17166
17399
 
17400
+ /**
17401
+ * SetSelectedGraphRequest
17402
+ *
17403
+ * Request model for setting the user's selected graph.
17404
+ */
17405
+ export type SetSelectedGraphRequest = {
17406
+ /**
17407
+ * Graph Id
17408
+ *
17409
+ * The graph the apps open on the caller's next load
17410
+ */
17411
+ graph_id: string;
17412
+ };
17413
+
17167
17414
  /**
17168
17415
  * SetWritePolicyRequest
17169
17416
  *
@@ -18895,15 +19142,20 @@ export type UpdateAgentRequest = {
18895
19142
  /**
18896
19143
  * UpdateEntityRequest
18897
19144
  *
18898
- * Update the graph's primary entity. All fields are optional —
18899
- * pass only what changes. Identifiers (CIK, LEI, tax_id) are typically
18900
- * set once at onboarding; address fields are flattened to make them
18901
- * easy to project into reporting forms (1099, state filings).
19145
+ * Update an entity of the graph's reporting group. All fields are
19146
+ * optional — pass only what changes. Identifiers (CIK, LEI, tax_id) are
19147
+ * typically set once at onboarding; address fields are flattened to make
19148
+ * them easy to project into reporting forms (1099, state filings).
18902
19149
  *
18903
- * The graph is implicit (URL path) — there's no `entity_id` field
18904
- * because the operation always targets the graph's primary entity.
19150
+ * Omit `entity_id` to target the group parent.
18905
19151
  */
18906
19152
  export type UpdateEntityRequest = {
19153
+ /**
19154
+ * Entity Id
19155
+ *
19156
+ * The entity to update. Omit to target the group parent — the single-entity default.
19157
+ */
19158
+ entity_id?: string | null;
18907
19159
  /**
18908
19160
  * Name
18909
19161
  */
@@ -18994,6 +19246,12 @@ export type UpdateEntityRequest = {
18994
19246
  * Address Country
18995
19247
  */
18996
19248
  address_country?: string | null;
19249
+ /**
19250
+ * Ownership Pct
19251
+ *
19252
+ * The parent's share of this entity, as a percent. Refused on the group parent, which has no owner in the graph.
19253
+ */
19254
+ ownership_pct?: number | null;
18997
19255
  };
18998
19256
 
18999
19257
  /**
@@ -21741,6 +21999,55 @@ export type UpdateUserPasswordResponses = {
21741
21999
 
21742
22000
  export type UpdateUserPasswordResponse = UpdateUserPasswordResponses[keyof UpdateUserPasswordResponses];
21743
22001
 
22002
+ export type SetSelectedGraphData = {
22003
+ body: SetSelectedGraphRequest;
22004
+ path?: never;
22005
+ query?: never;
22006
+ url: '/v1/user/selected-graph';
22007
+ };
22008
+
22009
+ export type SetSelectedGraphErrors = {
22010
+ /**
22011
+ * Invalid request
22012
+ */
22013
+ 400: ErrorResponse;
22014
+ /**
22015
+ * Authentication required
22016
+ */
22017
+ 401: ErrorResponse;
22018
+ /**
22019
+ * Access denied
22020
+ */
22021
+ 403: ErrorResponse;
22022
+ /**
22023
+ * Resource not found
22024
+ */
22025
+ 404: ErrorResponse;
22026
+ /**
22027
+ * Validation Error
22028
+ */
22029
+ 422: HttpValidationError;
22030
+ /**
22031
+ * Rate limit exceeded
22032
+ */
22033
+ 429: ErrorResponse;
22034
+ /**
22035
+ * Internal server error
22036
+ */
22037
+ 500: ErrorResponse;
22038
+ };
22039
+
22040
+ export type SetSelectedGraphError = SetSelectedGraphErrors[keyof SetSelectedGraphErrors];
22041
+
22042
+ export type SetSelectedGraphResponses = {
22043
+ /**
22044
+ * Successful Response
22045
+ */
22046
+ 200: SuccessResponse;
22047
+ };
22048
+
22049
+ export type SetSelectedGraphResponse = SetSelectedGraphResponses[keyof SetSelectedGraphResponses];
22050
+
21744
22051
  export type ListUserApiKeysData = {
21745
22052
  body?: never;
21746
22053
  path?: never;
@@ -22756,31 +23063,19 @@ export type GetOrgUsageResponses = {
22756
23063
 
22757
23064
  export type GetOrgUsageResponse = GetOrgUsageResponses[keyof GetOrgUsageResponses];
22758
23065
 
22759
- export type SyncConnectionData = {
22760
- body: SyncConnectionRequest;
22761
- headers?: {
23066
+ export type GetConnectionOptionsData = {
23067
+ body?: never;
23068
+ path: {
22762
23069
  /**
22763
- * Idempotency-Key
22764
- */
22765
- 'Idempotency-Key'?: string | null;
22766
- };
22767
- path: {
22768
- /**
22769
- * Graph Id
23070
+ * Graph Id
22770
23071
  */
22771
23072
  graph_id: string;
22772
- /**
22773
- * Connection Id
22774
- *
22775
- * Connection identifier
22776
- */
22777
- connection_id: string;
22778
23073
  };
22779
23074
  query?: never;
22780
- url: '/v1/graphs/{graph_id}/connections/{connection_id}/sync';
23075
+ url: '/v1/graphs/{graph_id}/connections/options';
22781
23076
  };
22782
23077
 
22783
- export type SyncConnectionErrors = {
23078
+ export type GetConnectionOptionsErrors = {
22784
23079
  /**
22785
23080
  * Invalid request
22786
23081
  */
@@ -22798,13 +23093,9 @@ export type SyncConnectionErrors = {
22798
23093
  */
22799
23094
  404: ErrorResponse;
22800
23095
  /**
22801
- * Idempotency-Key conflict — key reused with different body
22802
- */
22803
- 409: ErrorResponse;
22804
- /**
22805
- * Validation error
23096
+ * Validation Error
22806
23097
  */
22807
- 422: ErrorResponse;
23098
+ 422: HttpValidationError;
22808
23099
  /**
22809
23100
  * Rate limit exceeded
22810
23101
  */
@@ -22813,24 +23104,20 @@ export type SyncConnectionErrors = {
22813
23104
  * Internal server error
22814
23105
  */
22815
23106
  500: ErrorResponse;
22816
- /**
22817
- * Sync request timed out
22818
- */
22819
- 504: unknown;
22820
23107
  };
22821
23108
 
22822
- export type SyncConnectionError = SyncConnectionErrors[keyof SyncConnectionErrors];
23109
+ export type GetConnectionOptionsError = GetConnectionOptionsErrors[keyof GetConnectionOptionsErrors];
22823
23110
 
22824
- export type SyncConnectionResponses = {
23111
+ export type GetConnectionOptionsResponses = {
22825
23112
  /**
22826
23113
  * Successful Response
22827
23114
  */
22828
- 202: OperationEnvelope;
23115
+ 200: ConnectionOptionsResponse;
22829
23116
  };
22830
23117
 
22831
- export type SyncConnectionResponse = SyncConnectionResponses[keyof SyncConnectionResponses];
23118
+ export type GetConnectionOptionsResponse = GetConnectionOptionsResponses[keyof GetConnectionOptionsResponses];
22832
23119
 
22833
- export type GetConnectionOptionsData = {
23120
+ export type ListConnectionsData = {
22834
23121
  body?: never;
22835
23122
  path: {
22836
23123
  /**
@@ -22838,11 +23125,24 @@ export type GetConnectionOptionsData = {
22838
23125
  */
22839
23126
  graph_id: string;
22840
23127
  };
22841
- query?: never;
22842
- url: '/v1/graphs/{graph_id}/connections/options';
23128
+ query?: {
23129
+ /**
23130
+ * Entity Id
23131
+ *
23132
+ * Filter by entity ID
23133
+ */
23134
+ entity_id?: string | null;
23135
+ /**
23136
+ * Provider
23137
+ *
23138
+ * Filter by provider type
23139
+ */
23140
+ provider?: 'quickbooks' | 'external' | 'mercury' | 'plaid' | null;
23141
+ };
23142
+ url: '/v1/graphs/{graph_id}/connections';
22843
23143
  };
22844
23144
 
22845
- export type GetConnectionOptionsErrors = {
23145
+ export type ListConnectionsErrors = {
22846
23146
  /**
22847
23147
  * Invalid request
22848
23148
  */
@@ -22873,19 +23173,21 @@ export type GetConnectionOptionsErrors = {
22873
23173
  500: ErrorResponse;
22874
23174
  };
22875
23175
 
22876
- export type GetConnectionOptionsError = GetConnectionOptionsErrors[keyof GetConnectionOptionsErrors];
23176
+ export type ListConnectionsError = ListConnectionsErrors[keyof ListConnectionsErrors];
22877
23177
 
22878
- export type GetConnectionOptionsResponses = {
23178
+ export type ListConnectionsResponses = {
22879
23179
  /**
23180
+ * Response Listconnections
23181
+ *
22880
23182
  * Successful Response
22881
23183
  */
22882
- 200: ConnectionOptionsResponse;
23184
+ 200: Array<ConnectionResponse>;
22883
23185
  };
22884
23186
 
22885
- export type GetConnectionOptionsResponse = GetConnectionOptionsResponses[keyof GetConnectionOptionsResponses];
23187
+ export type ListConnectionsResponse = ListConnectionsResponses[keyof ListConnectionsResponses];
22886
23188
 
22887
- export type InitOAuthData = {
22888
- body: OAuthInitRequest;
23189
+ export type CreateConnectionData = {
23190
+ body: CreateConnectionRequest;
22889
23191
  path: {
22890
23192
  /**
22891
23193
  * Graph Id
@@ -22893,10 +23195,10 @@ export type InitOAuthData = {
22893
23195
  graph_id: string;
22894
23196
  };
22895
23197
  query?: never;
22896
- url: '/v1/graphs/{graph_id}/connections/oauth/init';
23198
+ url: '/v1/graphs/{graph_id}/connections';
22897
23199
  };
22898
23200
 
22899
- export type InitOAuthErrors = {
23201
+ export type CreateConnectionErrors = {
22900
23202
  /**
22901
23203
  * Invalid request
22902
23204
  */
@@ -22913,6 +23215,10 @@ export type InitOAuthErrors = {
22913
23215
  * Resource not found
22914
23216
  */
22915
23217
  404: ErrorResponse;
23218
+ /**
23219
+ * Connection already exists for this provider
23220
+ */
23221
+ 409: unknown;
22916
23222
  /**
22917
23223
  * Validation Error
22918
23224
  */
@@ -22927,36 +23233,30 @@ export type InitOAuthErrors = {
22927
23233
  500: ErrorResponse;
22928
23234
  };
22929
23235
 
22930
- export type InitOAuthError = InitOAuthErrors[keyof InitOAuthErrors];
23236
+ export type CreateConnectionError = CreateConnectionErrors[keyof CreateConnectionErrors];
22931
23237
 
22932
- export type InitOAuthResponses = {
23238
+ export type CreateConnectionResponses = {
22933
23239
  /**
22934
23240
  * Successful Response
22935
23241
  */
22936
- 200: OAuthInitResponse;
23242
+ 201: ConnectionResponse;
22937
23243
  };
22938
23244
 
22939
- export type InitOAuthResponse = InitOAuthResponses[keyof InitOAuthResponses];
23245
+ export type CreateConnectionResponse = CreateConnectionResponses[keyof CreateConnectionResponses];
22940
23246
 
22941
- export type OauthCallbackData = {
22942
- body: OAuthCallbackRequest;
23247
+ export type InitOAuthData = {
23248
+ body: OAuthInitRequest;
22943
23249
  path: {
22944
- /**
22945
- * Provider
22946
- *
22947
- * OAuth provider name
22948
- */
22949
- provider: string;
22950
23250
  /**
22951
23251
  * Graph Id
22952
23252
  */
22953
23253
  graph_id: string;
22954
23254
  };
22955
23255
  query?: never;
22956
- url: '/v1/graphs/{graph_id}/connections/oauth/callback/{provider}';
23256
+ url: '/v1/graphs/{graph_id}/connections/oauth/init';
22957
23257
  };
22958
23258
 
22959
- export type OauthCallbackErrors = {
23259
+ export type InitOAuthErrors = {
22960
23260
  /**
22961
23261
  * Invalid request
22962
23262
  */
@@ -22987,43 +23287,36 @@ export type OauthCallbackErrors = {
22987
23287
  500: ErrorResponse;
22988
23288
  };
22989
23289
 
22990
- export type OauthCallbackError = OauthCallbackErrors[keyof OauthCallbackErrors];
23290
+ export type InitOAuthError = InitOAuthErrors[keyof InitOAuthErrors];
22991
23291
 
22992
- export type OauthCallbackResponses = {
23292
+ export type InitOAuthResponses = {
22993
23293
  /**
22994
23294
  * Successful Response
22995
23295
  */
22996
- 200: OAuthCallbackResponse;
23296
+ 200: OAuthInitResponse;
22997
23297
  };
22998
23298
 
22999
- export type OauthCallbackResponse = OauthCallbackResponses[keyof OauthCallbackResponses];
23299
+ export type InitOAuthResponse = InitOAuthResponses[keyof InitOAuthResponses];
23000
23300
 
23001
- export type ListConnectionsData = {
23002
- body?: never;
23301
+ export type OauthCallbackData = {
23302
+ body: OAuthCallbackRequest;
23003
23303
  path: {
23004
23304
  /**
23005
- * Graph Id
23006
- */
23007
- graph_id: string;
23008
- };
23009
- query?: {
23010
- /**
23011
- * Entity Id
23305
+ * Provider
23012
23306
  *
23013
- * Filter by entity ID
23307
+ * OAuth provider name
23014
23308
  */
23015
- entity_id?: string | null;
23309
+ provider: string;
23016
23310
  /**
23017
- * Provider
23018
- *
23019
- * Filter by provider type
23311
+ * Graph Id
23020
23312
  */
23021
- provider?: 'quickbooks' | 'external' | 'mercury' | 'plaid' | null;
23313
+ graph_id: string;
23022
23314
  };
23023
- url: '/v1/graphs/{graph_id}/connections';
23315
+ query?: never;
23316
+ url: '/v1/graphs/{graph_id}/connections/oauth/callback/{provider}';
23024
23317
  };
23025
23318
 
23026
- export type ListConnectionsErrors = {
23319
+ export type OauthCallbackErrors = {
23027
23320
  /**
23028
23321
  * Invalid request
23029
23322
  */
@@ -23054,32 +23347,43 @@ export type ListConnectionsErrors = {
23054
23347
  500: ErrorResponse;
23055
23348
  };
23056
23349
 
23057
- export type ListConnectionsError = ListConnectionsErrors[keyof ListConnectionsErrors];
23350
+ export type OauthCallbackError = OauthCallbackErrors[keyof OauthCallbackErrors];
23058
23351
 
23059
- export type ListConnectionsResponses = {
23352
+ export type OauthCallbackResponses = {
23060
23353
  /**
23061
- * Response Listconnections
23062
- *
23063
23354
  * Successful Response
23064
23355
  */
23065
- 200: Array<ConnectionResponse>;
23356
+ 200: OAuthCallbackResponse;
23066
23357
  };
23067
23358
 
23068
- export type ListConnectionsResponse = ListConnectionsResponses[keyof ListConnectionsResponses];
23359
+ export type OauthCallbackResponse = OauthCallbackResponses[keyof OauthCallbackResponses];
23069
23360
 
23070
- export type CreateConnectionData = {
23071
- body: CreateConnectionRequest;
23361
+ export type DeleteConnectionData = {
23362
+ body?: never;
23072
23363
  path: {
23073
23364
  /**
23074
23365
  * Graph Id
23075
23366
  */
23076
23367
  graph_id: string;
23368
+ /**
23369
+ * Connection Id
23370
+ *
23371
+ * Connection identifier
23372
+ */
23373
+ connection_id: string;
23077
23374
  };
23078
- query?: never;
23079
- url: '/v1/graphs/{graph_id}/connections';
23375
+ query?: {
23376
+ /**
23377
+ * Disposition
23378
+ *
23379
+ * `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.
23380
+ */
23381
+ disposition?: 'disconnect' | 'sever';
23382
+ };
23383
+ url: '/v1/graphs/{graph_id}/connections/{connection_id}';
23080
23384
  };
23081
23385
 
23082
- export type CreateConnectionErrors = {
23386
+ export type DeleteConnectionErrors = {
23083
23387
  /**
23084
23388
  * Invalid request
23085
23389
  */
@@ -23096,10 +23400,6 @@ export type CreateConnectionErrors = {
23096
23400
  * Resource not found
23097
23401
  */
23098
23402
  404: ErrorResponse;
23099
- /**
23100
- * Connection already exists for this provider
23101
- */
23102
- 409: unknown;
23103
23403
  /**
23104
23404
  * Validation Error
23105
23405
  */
@@ -23114,18 +23414,18 @@ export type CreateConnectionErrors = {
23114
23414
  500: ErrorResponse;
23115
23415
  };
23116
23416
 
23117
- export type CreateConnectionError = CreateConnectionErrors[keyof CreateConnectionErrors];
23417
+ export type DeleteConnectionError = DeleteConnectionErrors[keyof DeleteConnectionErrors];
23118
23418
 
23119
- export type CreateConnectionResponses = {
23419
+ export type DeleteConnectionResponses = {
23120
23420
  /**
23121
23421
  * Successful Response
23122
23422
  */
23123
- 201: ConnectionResponse;
23423
+ 200: SuccessResponse;
23124
23424
  };
23125
23425
 
23126
- export type CreateConnectionResponse = CreateConnectionResponses[keyof CreateConnectionResponses];
23426
+ export type DeleteConnectionResponse = DeleteConnectionResponses[keyof DeleteConnectionResponses];
23127
23427
 
23128
- export type DeleteConnectionData = {
23428
+ export type GetConnectionData = {
23129
23429
  body?: never;
23130
23430
  path: {
23131
23431
  /**
@@ -23135,22 +23435,15 @@ export type DeleteConnectionData = {
23135
23435
  /**
23136
23436
  * Connection Id
23137
23437
  *
23138
- * Connection identifier
23438
+ * Unique connection identifier
23139
23439
  */
23140
23440
  connection_id: string;
23141
23441
  };
23142
- query?: {
23143
- /**
23144
- * Disposition
23145
- *
23146
- * `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.
23147
- */
23148
- disposition?: 'disconnect' | 'sever';
23149
- };
23442
+ query?: never;
23150
23443
  url: '/v1/graphs/{graph_id}/connections/{connection_id}';
23151
23444
  };
23152
23445
 
23153
- export type DeleteConnectionErrors = {
23446
+ export type GetConnectionErrors = {
23154
23447
  /**
23155
23448
  * Invalid request
23156
23449
  */
@@ -23181,19 +23474,25 @@ export type DeleteConnectionErrors = {
23181
23474
  500: ErrorResponse;
23182
23475
  };
23183
23476
 
23184
- export type DeleteConnectionError = DeleteConnectionErrors[keyof DeleteConnectionErrors];
23477
+ export type GetConnectionError = GetConnectionErrors[keyof GetConnectionErrors];
23185
23478
 
23186
- export type DeleteConnectionResponses = {
23479
+ export type GetConnectionResponses = {
23187
23480
  /**
23188
23481
  * Successful Response
23189
23482
  */
23190
- 200: SuccessResponse;
23483
+ 200: ConnectionResponse;
23191
23484
  };
23192
23485
 
23193
- export type DeleteConnectionResponse = DeleteConnectionResponses[keyof DeleteConnectionResponses];
23486
+ export type GetConnectionResponse = GetConnectionResponses[keyof GetConnectionResponses];
23194
23487
 
23195
- export type GetConnectionData = {
23196
- body?: never;
23488
+ export type SyncConnectionData = {
23489
+ body: SyncConnectionRequest;
23490
+ headers?: {
23491
+ /**
23492
+ * Idempotency-Key
23493
+ */
23494
+ 'Idempotency-Key'?: string | null;
23495
+ };
23197
23496
  path: {
23198
23497
  /**
23199
23498
  * Graph Id
@@ -23202,15 +23501,15 @@ export type GetConnectionData = {
23202
23501
  /**
23203
23502
  * Connection Id
23204
23503
  *
23205
- * Unique connection identifier
23504
+ * Connection identifier
23206
23505
  */
23207
23506
  connection_id: string;
23208
23507
  };
23209
23508
  query?: never;
23210
- url: '/v1/graphs/{graph_id}/connections/{connection_id}';
23509
+ url: '/v1/graphs/{graph_id}/connections/{connection_id}/sync';
23211
23510
  };
23212
23511
 
23213
- export type GetConnectionErrors = {
23512
+ export type SyncConnectionErrors = {
23214
23513
  /**
23215
23514
  * Invalid request
23216
23515
  */
@@ -23228,9 +23527,13 @@ export type GetConnectionErrors = {
23228
23527
  */
23229
23528
  404: ErrorResponse;
23230
23529
  /**
23231
- * Validation Error
23530
+ * Idempotency-Key conflict — key reused with different body
23232
23531
  */
23233
- 422: HttpValidationError;
23532
+ 409: ErrorResponse;
23533
+ /**
23534
+ * Validation error
23535
+ */
23536
+ 422: ErrorResponse;
23234
23537
  /**
23235
23538
  * Rate limit exceeded
23236
23539
  */
@@ -23239,18 +23542,22 @@ export type GetConnectionErrors = {
23239
23542
  * Internal server error
23240
23543
  */
23241
23544
  500: ErrorResponse;
23545
+ /**
23546
+ * Sync request timed out
23547
+ */
23548
+ 504: unknown;
23242
23549
  };
23243
23550
 
23244
- export type GetConnectionError = GetConnectionErrors[keyof GetConnectionErrors];
23551
+ export type SyncConnectionError = SyncConnectionErrors[keyof SyncConnectionErrors];
23245
23552
 
23246
- export type GetConnectionResponses = {
23553
+ export type SyncConnectionResponses = {
23247
23554
  /**
23248
23555
  * Successful Response
23249
23556
  */
23250
- 200: ConnectionResponse;
23557
+ 202: OperationEnvelope;
23251
23558
  };
23252
23559
 
23253
- export type GetConnectionResponse = GetConnectionResponses[keyof GetConnectionResponses];
23560
+ export type SyncConnectionResponse = SyncConnectionResponses[keyof SyncConnectionResponses];
23254
23561
 
23255
23562
  export type SetConnectionWritePolicyData = {
23256
23563
  body: SetWritePolicyRequest;
@@ -26958,60 +27265,6 @@ export type GetGraphCapacityResponses = {
26958
27265
 
26959
27266
  export type GetGraphCapacityResponse = GetGraphCapacityResponses[keyof GetGraphCapacityResponses];
26960
27267
 
26961
- export type SelectGraphData = {
26962
- body?: never;
26963
- path: {
26964
- /**
26965
- * Graph Id
26966
- */
26967
- graph_id: string;
26968
- };
26969
- query?: never;
26970
- url: '/v1/graphs/{graph_id}/select';
26971
- };
26972
-
26973
- export type SelectGraphErrors = {
26974
- /**
26975
- * Invalid request
26976
- */
26977
- 400: ErrorResponse;
26978
- /**
26979
- * Authentication required
26980
- */
26981
- 401: ErrorResponse;
26982
- /**
26983
- * Access denied
26984
- */
26985
- 403: ErrorResponse;
26986
- /**
26987
- * Resource not found
26988
- */
26989
- 404: ErrorResponse;
26990
- /**
26991
- * Validation Error
26992
- */
26993
- 422: HttpValidationError;
26994
- /**
26995
- * Rate limit exceeded
26996
- */
26997
- 429: ErrorResponse;
26998
- /**
26999
- * Internal server error
27000
- */
27001
- 500: ErrorResponse;
27002
- };
27003
-
27004
- export type SelectGraphError = SelectGraphErrors[keyof SelectGraphErrors];
27005
-
27006
- export type SelectGraphResponses = {
27007
- /**
27008
- * Successful Response
27009
- */
27010
- 200: SuccessResponse;
27011
- };
27012
-
27013
- export type SelectGraphResponse = SelectGraphResponses[keyof SelectGraphResponses];
27014
-
27015
27268
  export type ValidateSchemaData = {
27016
27269
  /**
27017
27270
  * Schema definition to validate
@@ -27121,7 +27374,7 @@ export type StreamOperationEventsData = {
27121
27374
  /**
27122
27375
  * From Sequence
27123
27376
  *
27124
- * Start streaming from this sequence number (0 = from beginning)
27377
+ * 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.
27125
27378
  */
27126
27379
  from_sequence?: number;
27127
27380
  /**
@@ -28089,6 +28342,70 @@ export type InitializeChartOfAccountsResponses = {
28089
28342
 
28090
28343
  export type InitializeChartOfAccountsResponse2 = InitializeChartOfAccountsResponses[keyof InitializeChartOfAccountsResponses];
28091
28344
 
28345
+ export type CreateEntityData = {
28346
+ body: CreateEntityRequest;
28347
+ headers?: {
28348
+ /**
28349
+ * Idempotency-Key
28350
+ */
28351
+ 'Idempotency-Key'?: string | null;
28352
+ };
28353
+ path: {
28354
+ /**
28355
+ * Graph Id
28356
+ */
28357
+ graph_id: string;
28358
+ };
28359
+ query?: never;
28360
+ url: '/extensions/roboledger/{graph_id}/operations/create-entity';
28361
+ };
28362
+
28363
+ export type CreateEntityErrors = {
28364
+ /**
28365
+ * Invalid request
28366
+ */
28367
+ 400: ErrorResponse;
28368
+ /**
28369
+ * Authentication required
28370
+ */
28371
+ 401: ErrorResponse;
28372
+ /**
28373
+ * Access denied
28374
+ */
28375
+ 403: ErrorResponse;
28376
+ /**
28377
+ * Resource not found
28378
+ */
28379
+ 404: ErrorResponse;
28380
+ /**
28381
+ * Idempotency-Key conflict — key reused with different body
28382
+ */
28383
+ 409: ErrorResponse;
28384
+ /**
28385
+ * Validation error
28386
+ */
28387
+ 422: ErrorResponse;
28388
+ /**
28389
+ * Rate limit exceeded
28390
+ */
28391
+ 429: ErrorResponse;
28392
+ /**
28393
+ * Internal server error
28394
+ */
28395
+ 500: ErrorResponse;
28396
+ };
28397
+
28398
+ export type CreateEntityError = CreateEntityErrors[keyof CreateEntityErrors];
28399
+
28400
+ export type CreateEntityResponses = {
28401
+ /**
28402
+ * Successful Response
28403
+ */
28404
+ 200: OperationEnvelopeLedgerEntityResponse;
28405
+ };
28406
+
28407
+ export type CreateEntityResponse = CreateEntityResponses[keyof CreateEntityResponses];
28408
+
28092
28409
  export type UpdateEntityData = {
28093
28410
  body: UpdateEntityRequest;
28094
28411
  headers?: {