@robosystems/client 2.6.1 → 2.7.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.ts CHANGED
@@ -5545,11 +5545,12 @@ export type EventHandlerResponse = {
5545
5545
  * Request to publish an event to the source-of-truth system.
5546
5546
  *
5547
5547
  * 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).
5548
+ * (or `'hybrid'`), this triggers a synchronous write to QuickBooks:
5549
+ * each draft entry posts as its own JournalEntry, with the entry id as
5550
+ * the RequestId, and its QuickBooks id is recorded per entry on
5551
+ * `event.metadata.qb_entry_ids`. The event goes `fulfilled` once no
5552
+ * draft remains, or `pending` when QuickBooks rejects an entry (what
5553
+ * landed is kept).
5553
5554
  *
5554
5555
  * `'native'`-policy events fast-path through with no QB write —
5555
5556
  * RoboSystems IS the source of truth, no outbound publish needed.
@@ -6146,7 +6147,7 @@ export type FiscalCalendarResponse = {
6146
6147
  /**
6147
6148
  * Blockers
6148
6149
  *
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'
6150
+ * 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
6151
  */
6151
6152
  blockers?: Array<string>;
6152
6153
  /**
@@ -17164,6 +17165,20 @@ export type SetReconciliationPolicyRequest = {
17164
17165
  separate_reviewer?: boolean | null;
17165
17166
  };
17166
17167
 
17168
+ /**
17169
+ * SetSelectedGraphRequest
17170
+ *
17171
+ * Request model for setting the user's selected graph.
17172
+ */
17173
+ export type SetSelectedGraphRequest = {
17174
+ /**
17175
+ * Graph Id
17176
+ *
17177
+ * The graph the apps open on the caller's next load
17178
+ */
17179
+ graph_id: string;
17180
+ };
17181
+
17167
17182
  /**
17168
17183
  * SetWritePolicyRequest
17169
17184
  *
@@ -21741,6 +21756,55 @@ export type UpdateUserPasswordResponses = {
21741
21756
 
21742
21757
  export type UpdateUserPasswordResponse = UpdateUserPasswordResponses[keyof UpdateUserPasswordResponses];
21743
21758
 
21759
+ export type SetSelectedGraphData = {
21760
+ body: SetSelectedGraphRequest;
21761
+ path?: never;
21762
+ query?: never;
21763
+ url: '/v1/user/selected-graph';
21764
+ };
21765
+
21766
+ export type SetSelectedGraphErrors = {
21767
+ /**
21768
+ * Invalid request
21769
+ */
21770
+ 400: ErrorResponse;
21771
+ /**
21772
+ * Authentication required
21773
+ */
21774
+ 401: ErrorResponse;
21775
+ /**
21776
+ * Access denied
21777
+ */
21778
+ 403: ErrorResponse;
21779
+ /**
21780
+ * Resource not found
21781
+ */
21782
+ 404: ErrorResponse;
21783
+ /**
21784
+ * Validation Error
21785
+ */
21786
+ 422: HttpValidationError;
21787
+ /**
21788
+ * Rate limit exceeded
21789
+ */
21790
+ 429: ErrorResponse;
21791
+ /**
21792
+ * Internal server error
21793
+ */
21794
+ 500: ErrorResponse;
21795
+ };
21796
+
21797
+ export type SetSelectedGraphError = SetSelectedGraphErrors[keyof SetSelectedGraphErrors];
21798
+
21799
+ export type SetSelectedGraphResponses = {
21800
+ /**
21801
+ * Successful Response
21802
+ */
21803
+ 200: SuccessResponse;
21804
+ };
21805
+
21806
+ export type SetSelectedGraphResponse = SetSelectedGraphResponses[keyof SetSelectedGraphResponses];
21807
+
21744
21808
  export type ListUserApiKeysData = {
21745
21809
  body?: never;
21746
21810
  path?: never;
@@ -22756,31 +22820,19 @@ export type GetOrgUsageResponses = {
22756
22820
 
22757
22821
  export type GetOrgUsageResponse = GetOrgUsageResponses[keyof GetOrgUsageResponses];
22758
22822
 
22759
- export type SyncConnectionData = {
22760
- body: SyncConnectionRequest;
22761
- headers?: {
22762
- /**
22763
- * Idempotency-Key
22764
- */
22765
- 'Idempotency-Key'?: string | null;
22766
- };
22823
+ export type GetConnectionOptionsData = {
22824
+ body?: never;
22767
22825
  path: {
22768
22826
  /**
22769
22827
  * Graph Id
22770
22828
  */
22771
22829
  graph_id: string;
22772
- /**
22773
- * Connection Id
22774
- *
22775
- * Connection identifier
22776
- */
22777
- connection_id: string;
22778
22830
  };
22779
22831
  query?: never;
22780
- url: '/v1/graphs/{graph_id}/connections/{connection_id}/sync';
22832
+ url: '/v1/graphs/{graph_id}/connections/options';
22781
22833
  };
22782
22834
 
22783
- export type SyncConnectionErrors = {
22835
+ export type GetConnectionOptionsErrors = {
22784
22836
  /**
22785
22837
  * Invalid request
22786
22838
  */
@@ -22798,13 +22850,9 @@ export type SyncConnectionErrors = {
22798
22850
  */
22799
22851
  404: ErrorResponse;
22800
22852
  /**
22801
- * Idempotency-Key conflict — key reused with different body
22802
- */
22803
- 409: ErrorResponse;
22804
- /**
22805
- * Validation error
22853
+ * Validation Error
22806
22854
  */
22807
- 422: ErrorResponse;
22855
+ 422: HttpValidationError;
22808
22856
  /**
22809
22857
  * Rate limit exceeded
22810
22858
  */
@@ -22813,24 +22861,20 @@ export type SyncConnectionErrors = {
22813
22861
  * Internal server error
22814
22862
  */
22815
22863
  500: ErrorResponse;
22816
- /**
22817
- * Sync request timed out
22818
- */
22819
- 504: unknown;
22820
22864
  };
22821
22865
 
22822
- export type SyncConnectionError = SyncConnectionErrors[keyof SyncConnectionErrors];
22866
+ export type GetConnectionOptionsError = GetConnectionOptionsErrors[keyof GetConnectionOptionsErrors];
22823
22867
 
22824
- export type SyncConnectionResponses = {
22868
+ export type GetConnectionOptionsResponses = {
22825
22869
  /**
22826
22870
  * Successful Response
22827
22871
  */
22828
- 202: OperationEnvelope;
22872
+ 200: ConnectionOptionsResponse;
22829
22873
  };
22830
22874
 
22831
- export type SyncConnectionResponse = SyncConnectionResponses[keyof SyncConnectionResponses];
22875
+ export type GetConnectionOptionsResponse = GetConnectionOptionsResponses[keyof GetConnectionOptionsResponses];
22832
22876
 
22833
- export type GetConnectionOptionsData = {
22877
+ export type ListConnectionsData = {
22834
22878
  body?: never;
22835
22879
  path: {
22836
22880
  /**
@@ -22838,11 +22882,24 @@ export type GetConnectionOptionsData = {
22838
22882
  */
22839
22883
  graph_id: string;
22840
22884
  };
22841
- query?: never;
22842
- url: '/v1/graphs/{graph_id}/connections/options';
22885
+ query?: {
22886
+ /**
22887
+ * Entity Id
22888
+ *
22889
+ * Filter by entity ID
22890
+ */
22891
+ entity_id?: string | null;
22892
+ /**
22893
+ * Provider
22894
+ *
22895
+ * Filter by provider type
22896
+ */
22897
+ provider?: 'quickbooks' | 'external' | 'mercury' | 'plaid' | null;
22898
+ };
22899
+ url: '/v1/graphs/{graph_id}/connections';
22843
22900
  };
22844
22901
 
22845
- export type GetConnectionOptionsErrors = {
22902
+ export type ListConnectionsErrors = {
22846
22903
  /**
22847
22904
  * Invalid request
22848
22905
  */
@@ -22873,19 +22930,21 @@ export type GetConnectionOptionsErrors = {
22873
22930
  500: ErrorResponse;
22874
22931
  };
22875
22932
 
22876
- export type GetConnectionOptionsError = GetConnectionOptionsErrors[keyof GetConnectionOptionsErrors];
22933
+ export type ListConnectionsError = ListConnectionsErrors[keyof ListConnectionsErrors];
22877
22934
 
22878
- export type GetConnectionOptionsResponses = {
22935
+ export type ListConnectionsResponses = {
22879
22936
  /**
22937
+ * Response Listconnections
22938
+ *
22880
22939
  * Successful Response
22881
22940
  */
22882
- 200: ConnectionOptionsResponse;
22941
+ 200: Array<ConnectionResponse>;
22883
22942
  };
22884
22943
 
22885
- export type GetConnectionOptionsResponse = GetConnectionOptionsResponses[keyof GetConnectionOptionsResponses];
22944
+ export type ListConnectionsResponse = ListConnectionsResponses[keyof ListConnectionsResponses];
22886
22945
 
22887
- export type InitOAuthData = {
22888
- body: OAuthInitRequest;
22946
+ export type CreateConnectionData = {
22947
+ body: CreateConnectionRequest;
22889
22948
  path: {
22890
22949
  /**
22891
22950
  * Graph Id
@@ -22893,10 +22952,10 @@ export type InitOAuthData = {
22893
22952
  graph_id: string;
22894
22953
  };
22895
22954
  query?: never;
22896
- url: '/v1/graphs/{graph_id}/connections/oauth/init';
22955
+ url: '/v1/graphs/{graph_id}/connections';
22897
22956
  };
22898
22957
 
22899
- export type InitOAuthErrors = {
22958
+ export type CreateConnectionErrors = {
22900
22959
  /**
22901
22960
  * Invalid request
22902
22961
  */
@@ -22913,6 +22972,10 @@ export type InitOAuthErrors = {
22913
22972
  * Resource not found
22914
22973
  */
22915
22974
  404: ErrorResponse;
22975
+ /**
22976
+ * Connection already exists for this provider
22977
+ */
22978
+ 409: unknown;
22916
22979
  /**
22917
22980
  * Validation Error
22918
22981
  */
@@ -22927,36 +22990,30 @@ export type InitOAuthErrors = {
22927
22990
  500: ErrorResponse;
22928
22991
  };
22929
22992
 
22930
- export type InitOAuthError = InitOAuthErrors[keyof InitOAuthErrors];
22993
+ export type CreateConnectionError = CreateConnectionErrors[keyof CreateConnectionErrors];
22931
22994
 
22932
- export type InitOAuthResponses = {
22995
+ export type CreateConnectionResponses = {
22933
22996
  /**
22934
22997
  * Successful Response
22935
22998
  */
22936
- 200: OAuthInitResponse;
22999
+ 201: ConnectionResponse;
22937
23000
  };
22938
23001
 
22939
- export type InitOAuthResponse = InitOAuthResponses[keyof InitOAuthResponses];
23002
+ export type CreateConnectionResponse = CreateConnectionResponses[keyof CreateConnectionResponses];
22940
23003
 
22941
- export type OauthCallbackData = {
22942
- body: OAuthCallbackRequest;
23004
+ export type InitOAuthData = {
23005
+ body: OAuthInitRequest;
22943
23006
  path: {
22944
- /**
22945
- * Provider
22946
- *
22947
- * OAuth provider name
22948
- */
22949
- provider: string;
22950
23007
  /**
22951
23008
  * Graph Id
22952
23009
  */
22953
23010
  graph_id: string;
22954
23011
  };
22955
23012
  query?: never;
22956
- url: '/v1/graphs/{graph_id}/connections/oauth/callback/{provider}';
23013
+ url: '/v1/graphs/{graph_id}/connections/oauth/init';
22957
23014
  };
22958
23015
 
22959
- export type OauthCallbackErrors = {
23016
+ export type InitOAuthErrors = {
22960
23017
  /**
22961
23018
  * Invalid request
22962
23019
  */
@@ -22987,43 +23044,36 @@ export type OauthCallbackErrors = {
22987
23044
  500: ErrorResponse;
22988
23045
  };
22989
23046
 
22990
- export type OauthCallbackError = OauthCallbackErrors[keyof OauthCallbackErrors];
23047
+ export type InitOAuthError = InitOAuthErrors[keyof InitOAuthErrors];
22991
23048
 
22992
- export type OauthCallbackResponses = {
23049
+ export type InitOAuthResponses = {
22993
23050
  /**
22994
23051
  * Successful Response
22995
23052
  */
22996
- 200: OAuthCallbackResponse;
23053
+ 200: OAuthInitResponse;
22997
23054
  };
22998
23055
 
22999
- export type OauthCallbackResponse = OauthCallbackResponses[keyof OauthCallbackResponses];
23056
+ export type InitOAuthResponse = InitOAuthResponses[keyof InitOAuthResponses];
23000
23057
 
23001
- export type ListConnectionsData = {
23002
- body?: never;
23058
+ export type OauthCallbackData = {
23059
+ body: OAuthCallbackRequest;
23003
23060
  path: {
23004
23061
  /**
23005
- * Graph Id
23006
- */
23007
- graph_id: string;
23008
- };
23009
- query?: {
23010
- /**
23011
- * Entity Id
23062
+ * Provider
23012
23063
  *
23013
- * Filter by entity ID
23064
+ * OAuth provider name
23014
23065
  */
23015
- entity_id?: string | null;
23066
+ provider: string;
23016
23067
  /**
23017
- * Provider
23018
- *
23019
- * Filter by provider type
23068
+ * Graph Id
23020
23069
  */
23021
- provider?: 'quickbooks' | 'external' | 'mercury' | 'plaid' | null;
23070
+ graph_id: string;
23022
23071
  };
23023
- url: '/v1/graphs/{graph_id}/connections';
23072
+ query?: never;
23073
+ url: '/v1/graphs/{graph_id}/connections/oauth/callback/{provider}';
23024
23074
  };
23025
23075
 
23026
- export type ListConnectionsErrors = {
23076
+ export type OauthCallbackErrors = {
23027
23077
  /**
23028
23078
  * Invalid request
23029
23079
  */
@@ -23054,32 +23104,43 @@ export type ListConnectionsErrors = {
23054
23104
  500: ErrorResponse;
23055
23105
  };
23056
23106
 
23057
- export type ListConnectionsError = ListConnectionsErrors[keyof ListConnectionsErrors];
23107
+ export type OauthCallbackError = OauthCallbackErrors[keyof OauthCallbackErrors];
23058
23108
 
23059
- export type ListConnectionsResponses = {
23109
+ export type OauthCallbackResponses = {
23060
23110
  /**
23061
- * Response Listconnections
23062
- *
23063
23111
  * Successful Response
23064
23112
  */
23065
- 200: Array<ConnectionResponse>;
23113
+ 200: OAuthCallbackResponse;
23066
23114
  };
23067
23115
 
23068
- export type ListConnectionsResponse = ListConnectionsResponses[keyof ListConnectionsResponses];
23116
+ export type OauthCallbackResponse = OauthCallbackResponses[keyof OauthCallbackResponses];
23069
23117
 
23070
- export type CreateConnectionData = {
23071
- body: CreateConnectionRequest;
23118
+ export type DeleteConnectionData = {
23119
+ body?: never;
23072
23120
  path: {
23073
23121
  /**
23074
23122
  * Graph Id
23075
23123
  */
23076
23124
  graph_id: string;
23125
+ /**
23126
+ * Connection Id
23127
+ *
23128
+ * Connection identifier
23129
+ */
23130
+ connection_id: string;
23077
23131
  };
23078
- query?: never;
23079
- url: '/v1/graphs/{graph_id}/connections';
23132
+ query?: {
23133
+ /**
23134
+ * Disposition
23135
+ *
23136
+ * `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.
23137
+ */
23138
+ disposition?: 'disconnect' | 'sever';
23139
+ };
23140
+ url: '/v1/graphs/{graph_id}/connections/{connection_id}';
23080
23141
  };
23081
23142
 
23082
- export type CreateConnectionErrors = {
23143
+ export type DeleteConnectionErrors = {
23083
23144
  /**
23084
23145
  * Invalid request
23085
23146
  */
@@ -23096,10 +23157,6 @@ export type CreateConnectionErrors = {
23096
23157
  * Resource not found
23097
23158
  */
23098
23159
  404: ErrorResponse;
23099
- /**
23100
- * Connection already exists for this provider
23101
- */
23102
- 409: unknown;
23103
23160
  /**
23104
23161
  * Validation Error
23105
23162
  */
@@ -23114,18 +23171,18 @@ export type CreateConnectionErrors = {
23114
23171
  500: ErrorResponse;
23115
23172
  };
23116
23173
 
23117
- export type CreateConnectionError = CreateConnectionErrors[keyof CreateConnectionErrors];
23174
+ export type DeleteConnectionError = DeleteConnectionErrors[keyof DeleteConnectionErrors];
23118
23175
 
23119
- export type CreateConnectionResponses = {
23176
+ export type DeleteConnectionResponses = {
23120
23177
  /**
23121
23178
  * Successful Response
23122
23179
  */
23123
- 201: ConnectionResponse;
23180
+ 200: SuccessResponse;
23124
23181
  };
23125
23182
 
23126
- export type CreateConnectionResponse = CreateConnectionResponses[keyof CreateConnectionResponses];
23183
+ export type DeleteConnectionResponse = DeleteConnectionResponses[keyof DeleteConnectionResponses];
23127
23184
 
23128
- export type DeleteConnectionData = {
23185
+ export type GetConnectionData = {
23129
23186
  body?: never;
23130
23187
  path: {
23131
23188
  /**
@@ -23135,22 +23192,15 @@ export type DeleteConnectionData = {
23135
23192
  /**
23136
23193
  * Connection Id
23137
23194
  *
23138
- * Connection identifier
23195
+ * Unique connection identifier
23139
23196
  */
23140
23197
  connection_id: string;
23141
23198
  };
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
- };
23199
+ query?: never;
23150
23200
  url: '/v1/graphs/{graph_id}/connections/{connection_id}';
23151
23201
  };
23152
23202
 
23153
- export type DeleteConnectionErrors = {
23203
+ export type GetConnectionErrors = {
23154
23204
  /**
23155
23205
  * Invalid request
23156
23206
  */
@@ -23181,19 +23231,25 @@ export type DeleteConnectionErrors = {
23181
23231
  500: ErrorResponse;
23182
23232
  };
23183
23233
 
23184
- export type DeleteConnectionError = DeleteConnectionErrors[keyof DeleteConnectionErrors];
23234
+ export type GetConnectionError = GetConnectionErrors[keyof GetConnectionErrors];
23185
23235
 
23186
- export type DeleteConnectionResponses = {
23236
+ export type GetConnectionResponses = {
23187
23237
  /**
23188
23238
  * Successful Response
23189
23239
  */
23190
- 200: SuccessResponse;
23240
+ 200: ConnectionResponse;
23191
23241
  };
23192
23242
 
23193
- export type DeleteConnectionResponse = DeleteConnectionResponses[keyof DeleteConnectionResponses];
23243
+ export type GetConnectionResponse = GetConnectionResponses[keyof GetConnectionResponses];
23194
23244
 
23195
- export type GetConnectionData = {
23196
- body?: never;
23245
+ export type SyncConnectionData = {
23246
+ body: SyncConnectionRequest;
23247
+ headers?: {
23248
+ /**
23249
+ * Idempotency-Key
23250
+ */
23251
+ 'Idempotency-Key'?: string | null;
23252
+ };
23197
23253
  path: {
23198
23254
  /**
23199
23255
  * Graph Id
@@ -23202,15 +23258,15 @@ export type GetConnectionData = {
23202
23258
  /**
23203
23259
  * Connection Id
23204
23260
  *
23205
- * Unique connection identifier
23261
+ * Connection identifier
23206
23262
  */
23207
23263
  connection_id: string;
23208
23264
  };
23209
23265
  query?: never;
23210
- url: '/v1/graphs/{graph_id}/connections/{connection_id}';
23266
+ url: '/v1/graphs/{graph_id}/connections/{connection_id}/sync';
23211
23267
  };
23212
23268
 
23213
- export type GetConnectionErrors = {
23269
+ export type SyncConnectionErrors = {
23214
23270
  /**
23215
23271
  * Invalid request
23216
23272
  */
@@ -23228,9 +23284,13 @@ export type GetConnectionErrors = {
23228
23284
  */
23229
23285
  404: ErrorResponse;
23230
23286
  /**
23231
- * Validation Error
23287
+ * Idempotency-Key conflict — key reused with different body
23232
23288
  */
23233
- 422: HttpValidationError;
23289
+ 409: ErrorResponse;
23290
+ /**
23291
+ * Validation error
23292
+ */
23293
+ 422: ErrorResponse;
23234
23294
  /**
23235
23295
  * Rate limit exceeded
23236
23296
  */
@@ -23239,18 +23299,22 @@ export type GetConnectionErrors = {
23239
23299
  * Internal server error
23240
23300
  */
23241
23301
  500: ErrorResponse;
23302
+ /**
23303
+ * Sync request timed out
23304
+ */
23305
+ 504: unknown;
23242
23306
  };
23243
23307
 
23244
- export type GetConnectionError = GetConnectionErrors[keyof GetConnectionErrors];
23308
+ export type SyncConnectionError = SyncConnectionErrors[keyof SyncConnectionErrors];
23245
23309
 
23246
- export type GetConnectionResponses = {
23310
+ export type SyncConnectionResponses = {
23247
23311
  /**
23248
23312
  * Successful Response
23249
23313
  */
23250
- 200: ConnectionResponse;
23314
+ 202: OperationEnvelope;
23251
23315
  };
23252
23316
 
23253
- export type GetConnectionResponse = GetConnectionResponses[keyof GetConnectionResponses];
23317
+ export type SyncConnectionResponse = SyncConnectionResponses[keyof SyncConnectionResponses];
23254
23318
 
23255
23319
  export type SetConnectionWritePolicyData = {
23256
23320
  body: SetWritePolicyRequest;
@@ -27121,7 +27185,7 @@ export type StreamOperationEventsData = {
27121
27185
  /**
27122
27186
  * From Sequence
27123
27187
  *
27124
- * Start streaming from this sequence number (0 = from beginning)
27188
+ * 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
27189
  */
27126
27190
  from_sequence?: number;
27127
27191
  /**