@robosystems/client 2.6.0 → 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.
@@ -5409,11 +5409,12 @@ export type EventHandlerResponse = {
5409
5409
  * Request to publish an event to the source-of-truth system.
5410
5410
  *
5411
5411
  * 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).
5412
+ * (or `'hybrid'`), this triggers a synchronous write to QuickBooks:
5413
+ * each draft entry posts as its own JournalEntry, with the entry id as
5414
+ * the RequestId, and its QuickBooks id is recorded per entry on
5415
+ * `event.metadata.qb_entry_ids`. The event goes `fulfilled` once no
5416
+ * draft remains, or `pending` when QuickBooks rejects an entry (what
5417
+ * landed is kept).
5417
5418
  *
5418
5419
  * `'native'`-policy events fast-path through with no QB write —
5419
5420
  * RoboSystems IS the source of truth, no outbound publish needed.
@@ -5997,7 +5998,7 @@ export type FiscalCalendarResponse = {
5997
5998
  /**
5998
5999
  * Blockers
5999
6000
  *
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'
6001
+ * 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
6002
  */
6002
6003
  blockers?: Array<string>;
6003
6004
  /**
@@ -15441,6 +15442,12 @@ export type ResolveReconcilingItemRequest = {
15441
15442
  * Event id (evt_ prefixed) to resolve
15442
15443
  */
15443
15444
  event_id: string;
15445
+ /**
15446
+ * Expected Drift Detected At
15447
+ *
15448
+ * The `drift_detected_at` of the preview this resolution was decided on. Pass it: the resolution is refused when the item has been flagged again since, with a newer payload nobody has seen, and must be previewed again.
15449
+ */
15450
+ expected_drift_detected_at?: string | null;
15444
15451
  /**
15445
15452
  * Disposition
15446
15453
  *
@@ -16754,6 +16761,19 @@ export type SetReconciliationPolicyRequest = {
16754
16761
  */
16755
16762
  separate_reviewer?: boolean | null;
16756
16763
  };
16764
+ /**
16765
+ * SetSelectedGraphRequest
16766
+ *
16767
+ * Request model for setting the user's selected graph.
16768
+ */
16769
+ export type SetSelectedGraphRequest = {
16770
+ /**
16771
+ * Graph Id
16772
+ *
16773
+ * The graph the apps open on the caller's next load
16774
+ */
16775
+ graph_id: string;
16776
+ };
16757
16777
  /**
16758
16778
  * SetWritePolicyRequest
16759
16779
  *
@@ -21076,6 +21096,50 @@ export type UpdateUserPasswordResponses = {
21076
21096
  200: SuccessResponse;
21077
21097
  };
21078
21098
  export type UpdateUserPasswordResponse = UpdateUserPasswordResponses[keyof UpdateUserPasswordResponses];
21099
+ export type SetSelectedGraphData = {
21100
+ body: SetSelectedGraphRequest;
21101
+ path?: never;
21102
+ query?: never;
21103
+ url: '/v1/user/selected-graph';
21104
+ };
21105
+ export type SetSelectedGraphErrors = {
21106
+ /**
21107
+ * Invalid request
21108
+ */
21109
+ 400: ErrorResponse;
21110
+ /**
21111
+ * Authentication required
21112
+ */
21113
+ 401: ErrorResponse;
21114
+ /**
21115
+ * Access denied
21116
+ */
21117
+ 403: ErrorResponse;
21118
+ /**
21119
+ * Resource not found
21120
+ */
21121
+ 404: ErrorResponse;
21122
+ /**
21123
+ * Validation Error
21124
+ */
21125
+ 422: HttpValidationError;
21126
+ /**
21127
+ * Rate limit exceeded
21128
+ */
21129
+ 429: ErrorResponse;
21130
+ /**
21131
+ * Internal server error
21132
+ */
21133
+ 500: ErrorResponse;
21134
+ };
21135
+ export type SetSelectedGraphError = SetSelectedGraphErrors[keyof SetSelectedGraphErrors];
21136
+ export type SetSelectedGraphResponses = {
21137
+ /**
21138
+ * Successful Response
21139
+ */
21140
+ 200: SuccessResponse;
21141
+ };
21142
+ export type SetSelectedGraphResponse = SetSelectedGraphResponses[keyof SetSelectedGraphResponses];
21079
21143
  export type ListUserApiKeysData = {
21080
21144
  body?: never;
21081
21145
  path?: never;
@@ -21996,30 +22060,18 @@ export type GetOrgUsageResponses = {
21996
22060
  200: OrgUsageResponse;
21997
22061
  };
21998
22062
  export type GetOrgUsageResponse = GetOrgUsageResponses[keyof GetOrgUsageResponses];
21999
- export type SyncConnectionData = {
22000
- body: SyncConnectionRequest;
22001
- headers?: {
22002
- /**
22003
- * Idempotency-Key
22004
- */
22005
- 'Idempotency-Key'?: string | null;
22006
- };
22063
+ export type GetConnectionOptionsData = {
22064
+ body?: never;
22007
22065
  path: {
22008
22066
  /**
22009
22067
  * Graph Id
22010
22068
  */
22011
22069
  graph_id: string;
22012
- /**
22013
- * Connection Id
22014
- *
22015
- * Connection identifier
22016
- */
22017
- connection_id: string;
22018
22070
  };
22019
22071
  query?: never;
22020
- url: '/v1/graphs/{graph_id}/connections/{connection_id}/sync';
22072
+ url: '/v1/graphs/{graph_id}/connections/options';
22021
22073
  };
22022
- export type SyncConnectionErrors = {
22074
+ export type GetConnectionOptionsErrors = {
22023
22075
  /**
22024
22076
  * Invalid request
22025
22077
  */
@@ -22037,13 +22089,9 @@ export type SyncConnectionErrors = {
22037
22089
  */
22038
22090
  404: ErrorResponse;
22039
22091
  /**
22040
- * Idempotency-Key conflict — key reused with different body
22041
- */
22042
- 409: ErrorResponse;
22043
- /**
22044
- * Validation error
22092
+ * Validation Error
22045
22093
  */
22046
- 422: ErrorResponse;
22094
+ 422: HttpValidationError;
22047
22095
  /**
22048
22096
  * Rate limit exceeded
22049
22097
  */
@@ -22052,20 +22100,16 @@ export type SyncConnectionErrors = {
22052
22100
  * Internal server error
22053
22101
  */
22054
22102
  500: ErrorResponse;
22055
- /**
22056
- * Sync request timed out
22057
- */
22058
- 504: unknown;
22059
22103
  };
22060
- export type SyncConnectionError = SyncConnectionErrors[keyof SyncConnectionErrors];
22061
- export type SyncConnectionResponses = {
22104
+ export type GetConnectionOptionsError = GetConnectionOptionsErrors[keyof GetConnectionOptionsErrors];
22105
+ export type GetConnectionOptionsResponses = {
22062
22106
  /**
22063
22107
  * Successful Response
22064
22108
  */
22065
- 202: OperationEnvelope;
22109
+ 200: ConnectionOptionsResponse;
22066
22110
  };
22067
- export type SyncConnectionResponse = SyncConnectionResponses[keyof SyncConnectionResponses];
22068
- export type GetConnectionOptionsData = {
22111
+ export type GetConnectionOptionsResponse = GetConnectionOptionsResponses[keyof GetConnectionOptionsResponses];
22112
+ export type ListConnectionsData = {
22069
22113
  body?: never;
22070
22114
  path: {
22071
22115
  /**
@@ -22073,10 +22117,23 @@ export type GetConnectionOptionsData = {
22073
22117
  */
22074
22118
  graph_id: string;
22075
22119
  };
22076
- query?: never;
22077
- url: '/v1/graphs/{graph_id}/connections/options';
22120
+ query?: {
22121
+ /**
22122
+ * Entity Id
22123
+ *
22124
+ * Filter by entity ID
22125
+ */
22126
+ entity_id?: string | null;
22127
+ /**
22128
+ * Provider
22129
+ *
22130
+ * Filter by provider type
22131
+ */
22132
+ provider?: 'quickbooks' | 'external' | 'mercury' | 'plaid' | null;
22133
+ };
22134
+ url: '/v1/graphs/{graph_id}/connections';
22078
22135
  };
22079
- export type GetConnectionOptionsErrors = {
22136
+ export type ListConnectionsErrors = {
22080
22137
  /**
22081
22138
  * Invalid request
22082
22139
  */
@@ -22106,16 +22163,18 @@ export type GetConnectionOptionsErrors = {
22106
22163
  */
22107
22164
  500: ErrorResponse;
22108
22165
  };
22109
- export type GetConnectionOptionsError = GetConnectionOptionsErrors[keyof GetConnectionOptionsErrors];
22110
- export type GetConnectionOptionsResponses = {
22166
+ export type ListConnectionsError = ListConnectionsErrors[keyof ListConnectionsErrors];
22167
+ export type ListConnectionsResponses = {
22111
22168
  /**
22169
+ * Response Listconnections
22170
+ *
22112
22171
  * Successful Response
22113
22172
  */
22114
- 200: ConnectionOptionsResponse;
22173
+ 200: Array<ConnectionResponse>;
22115
22174
  };
22116
- export type GetConnectionOptionsResponse = GetConnectionOptionsResponses[keyof GetConnectionOptionsResponses];
22117
- export type InitOAuthData = {
22118
- body: OAuthInitRequest;
22175
+ export type ListConnectionsResponse = ListConnectionsResponses[keyof ListConnectionsResponses];
22176
+ export type CreateConnectionData = {
22177
+ body: CreateConnectionRequest;
22119
22178
  path: {
22120
22179
  /**
22121
22180
  * Graph Id
@@ -22123,9 +22182,9 @@ export type InitOAuthData = {
22123
22182
  graph_id: string;
22124
22183
  };
22125
22184
  query?: never;
22126
- url: '/v1/graphs/{graph_id}/connections/oauth/init';
22185
+ url: '/v1/graphs/{graph_id}/connections';
22127
22186
  };
22128
- export type InitOAuthErrors = {
22187
+ export type CreateConnectionErrors = {
22129
22188
  /**
22130
22189
  * Invalid request
22131
22190
  */
@@ -22142,6 +22201,10 @@ export type InitOAuthErrors = {
22142
22201
  * Resource not found
22143
22202
  */
22144
22203
  404: ErrorResponse;
22204
+ /**
22205
+ * Connection already exists for this provider
22206
+ */
22207
+ 409: unknown;
22145
22208
  /**
22146
22209
  * Validation Error
22147
22210
  */
@@ -22155,32 +22218,26 @@ export type InitOAuthErrors = {
22155
22218
  */
22156
22219
  500: ErrorResponse;
22157
22220
  };
22158
- export type InitOAuthError = InitOAuthErrors[keyof InitOAuthErrors];
22159
- export type InitOAuthResponses = {
22221
+ export type CreateConnectionError = CreateConnectionErrors[keyof CreateConnectionErrors];
22222
+ export type CreateConnectionResponses = {
22160
22223
  /**
22161
22224
  * Successful Response
22162
22225
  */
22163
- 200: OAuthInitResponse;
22226
+ 201: ConnectionResponse;
22164
22227
  };
22165
- export type InitOAuthResponse = InitOAuthResponses[keyof InitOAuthResponses];
22166
- export type OauthCallbackData = {
22167
- body: OAuthCallbackRequest;
22228
+ export type CreateConnectionResponse = CreateConnectionResponses[keyof CreateConnectionResponses];
22229
+ export type InitOAuthData = {
22230
+ body: OAuthInitRequest;
22168
22231
  path: {
22169
- /**
22170
- * Provider
22171
- *
22172
- * OAuth provider name
22173
- */
22174
- provider: string;
22175
22232
  /**
22176
22233
  * Graph Id
22177
22234
  */
22178
22235
  graph_id: string;
22179
22236
  };
22180
22237
  query?: never;
22181
- url: '/v1/graphs/{graph_id}/connections/oauth/callback/{provider}';
22238
+ url: '/v1/graphs/{graph_id}/connections/oauth/init';
22182
22239
  };
22183
- export type OauthCallbackErrors = {
22240
+ export type InitOAuthErrors = {
22184
22241
  /**
22185
22242
  * Invalid request
22186
22243
  */
@@ -22210,39 +22267,32 @@ export type OauthCallbackErrors = {
22210
22267
  */
22211
22268
  500: ErrorResponse;
22212
22269
  };
22213
- export type OauthCallbackError = OauthCallbackErrors[keyof OauthCallbackErrors];
22214
- export type OauthCallbackResponses = {
22270
+ export type InitOAuthError = InitOAuthErrors[keyof InitOAuthErrors];
22271
+ export type InitOAuthResponses = {
22215
22272
  /**
22216
22273
  * Successful Response
22217
22274
  */
22218
- 200: OAuthCallbackResponse;
22275
+ 200: OAuthInitResponse;
22219
22276
  };
22220
- export type OauthCallbackResponse = OauthCallbackResponses[keyof OauthCallbackResponses];
22221
- export type ListConnectionsData = {
22222
- body?: never;
22277
+ export type InitOAuthResponse = InitOAuthResponses[keyof InitOAuthResponses];
22278
+ export type OauthCallbackData = {
22279
+ body: OAuthCallbackRequest;
22223
22280
  path: {
22224
22281
  /**
22225
- * Graph Id
22226
- */
22227
- graph_id: string;
22228
- };
22229
- query?: {
22230
- /**
22231
- * Entity Id
22282
+ * Provider
22232
22283
  *
22233
- * Filter by entity ID
22284
+ * OAuth provider name
22234
22285
  */
22235
- entity_id?: string | null;
22286
+ provider: string;
22236
22287
  /**
22237
- * Provider
22238
- *
22239
- * Filter by provider type
22288
+ * Graph Id
22240
22289
  */
22241
- provider?: 'quickbooks' | 'external' | 'mercury' | 'plaid' | null;
22290
+ graph_id: string;
22242
22291
  };
22243
- url: '/v1/graphs/{graph_id}/connections';
22292
+ query?: never;
22293
+ url: '/v1/graphs/{graph_id}/connections/oauth/callback/{provider}';
22244
22294
  };
22245
- export type ListConnectionsErrors = {
22295
+ export type OauthCallbackErrors = {
22246
22296
  /**
22247
22297
  * Invalid request
22248
22298
  */
@@ -22272,28 +22322,39 @@ export type ListConnectionsErrors = {
22272
22322
  */
22273
22323
  500: ErrorResponse;
22274
22324
  };
22275
- export type ListConnectionsError = ListConnectionsErrors[keyof ListConnectionsErrors];
22276
- export type ListConnectionsResponses = {
22325
+ export type OauthCallbackError = OauthCallbackErrors[keyof OauthCallbackErrors];
22326
+ export type OauthCallbackResponses = {
22277
22327
  /**
22278
- * Response Listconnections
22279
- *
22280
22328
  * Successful Response
22281
22329
  */
22282
- 200: Array<ConnectionResponse>;
22330
+ 200: OAuthCallbackResponse;
22283
22331
  };
22284
- export type ListConnectionsResponse = ListConnectionsResponses[keyof ListConnectionsResponses];
22285
- export type CreateConnectionData = {
22286
- body: CreateConnectionRequest;
22332
+ export type OauthCallbackResponse = OauthCallbackResponses[keyof OauthCallbackResponses];
22333
+ export type DeleteConnectionData = {
22334
+ body?: never;
22287
22335
  path: {
22288
22336
  /**
22289
22337
  * Graph Id
22290
22338
  */
22291
22339
  graph_id: string;
22340
+ /**
22341
+ * Connection Id
22342
+ *
22343
+ * Connection identifier
22344
+ */
22345
+ connection_id: string;
22292
22346
  };
22293
- query?: never;
22294
- url: '/v1/graphs/{graph_id}/connections';
22347
+ query?: {
22348
+ /**
22349
+ * Disposition
22350
+ *
22351
+ * `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.
22352
+ */
22353
+ disposition?: 'disconnect' | 'sever';
22354
+ };
22355
+ url: '/v1/graphs/{graph_id}/connections/{connection_id}';
22295
22356
  };
22296
- export type CreateConnectionErrors = {
22357
+ export type DeleteConnectionErrors = {
22297
22358
  /**
22298
22359
  * Invalid request
22299
22360
  */
@@ -22310,10 +22371,6 @@ export type CreateConnectionErrors = {
22310
22371
  * Resource not found
22311
22372
  */
22312
22373
  404: ErrorResponse;
22313
- /**
22314
- * Connection already exists for this provider
22315
- */
22316
- 409: unknown;
22317
22374
  /**
22318
22375
  * Validation Error
22319
22376
  */
@@ -22327,15 +22384,15 @@ export type CreateConnectionErrors = {
22327
22384
  */
22328
22385
  500: ErrorResponse;
22329
22386
  };
22330
- export type CreateConnectionError = CreateConnectionErrors[keyof CreateConnectionErrors];
22331
- export type CreateConnectionResponses = {
22387
+ export type DeleteConnectionError = DeleteConnectionErrors[keyof DeleteConnectionErrors];
22388
+ export type DeleteConnectionResponses = {
22332
22389
  /**
22333
22390
  * Successful Response
22334
22391
  */
22335
- 201: ConnectionResponse;
22392
+ 200: SuccessResponse;
22336
22393
  };
22337
- export type CreateConnectionResponse = CreateConnectionResponses[keyof CreateConnectionResponses];
22338
- export type DeleteConnectionData = {
22394
+ export type DeleteConnectionResponse = DeleteConnectionResponses[keyof DeleteConnectionResponses];
22395
+ export type GetConnectionData = {
22339
22396
  body?: never;
22340
22397
  path: {
22341
22398
  /**
@@ -22345,21 +22402,14 @@ export type DeleteConnectionData = {
22345
22402
  /**
22346
22403
  * Connection Id
22347
22404
  *
22348
- * Connection identifier
22405
+ * Unique connection identifier
22349
22406
  */
22350
22407
  connection_id: string;
22351
22408
  };
22352
- query?: {
22353
- /**
22354
- * Disposition
22355
- *
22356
- * `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.
22357
- */
22358
- disposition?: 'disconnect' | 'sever';
22359
- };
22409
+ query?: never;
22360
22410
  url: '/v1/graphs/{graph_id}/connections/{connection_id}';
22361
22411
  };
22362
- export type DeleteConnectionErrors = {
22412
+ export type GetConnectionErrors = {
22363
22413
  /**
22364
22414
  * Invalid request
22365
22415
  */
@@ -22389,16 +22439,22 @@ export type DeleteConnectionErrors = {
22389
22439
  */
22390
22440
  500: ErrorResponse;
22391
22441
  };
22392
- export type DeleteConnectionError = DeleteConnectionErrors[keyof DeleteConnectionErrors];
22393
- export type DeleteConnectionResponses = {
22442
+ export type GetConnectionError = GetConnectionErrors[keyof GetConnectionErrors];
22443
+ export type GetConnectionResponses = {
22394
22444
  /**
22395
22445
  * Successful Response
22396
22446
  */
22397
- 200: SuccessResponse;
22447
+ 200: ConnectionResponse;
22398
22448
  };
22399
- export type DeleteConnectionResponse = DeleteConnectionResponses[keyof DeleteConnectionResponses];
22400
- export type GetConnectionData = {
22401
- body?: never;
22449
+ export type GetConnectionResponse = GetConnectionResponses[keyof GetConnectionResponses];
22450
+ export type SyncConnectionData = {
22451
+ body: SyncConnectionRequest;
22452
+ headers?: {
22453
+ /**
22454
+ * Idempotency-Key
22455
+ */
22456
+ 'Idempotency-Key'?: string | null;
22457
+ };
22402
22458
  path: {
22403
22459
  /**
22404
22460
  * Graph Id
@@ -22407,14 +22463,14 @@ export type GetConnectionData = {
22407
22463
  /**
22408
22464
  * Connection Id
22409
22465
  *
22410
- * Unique connection identifier
22466
+ * Connection identifier
22411
22467
  */
22412
22468
  connection_id: string;
22413
22469
  };
22414
22470
  query?: never;
22415
- url: '/v1/graphs/{graph_id}/connections/{connection_id}';
22471
+ url: '/v1/graphs/{graph_id}/connections/{connection_id}/sync';
22416
22472
  };
22417
- export type GetConnectionErrors = {
22473
+ export type SyncConnectionErrors = {
22418
22474
  /**
22419
22475
  * Invalid request
22420
22476
  */
@@ -22432,9 +22488,13 @@ export type GetConnectionErrors = {
22432
22488
  */
22433
22489
  404: ErrorResponse;
22434
22490
  /**
22435
- * Validation Error
22491
+ * Idempotency-Key conflict — key reused with different body
22436
22492
  */
22437
- 422: HttpValidationError;
22493
+ 409: ErrorResponse;
22494
+ /**
22495
+ * Validation error
22496
+ */
22497
+ 422: ErrorResponse;
22438
22498
  /**
22439
22499
  * Rate limit exceeded
22440
22500
  */
@@ -22443,15 +22503,19 @@ export type GetConnectionErrors = {
22443
22503
  * Internal server error
22444
22504
  */
22445
22505
  500: ErrorResponse;
22506
+ /**
22507
+ * Sync request timed out
22508
+ */
22509
+ 504: unknown;
22446
22510
  };
22447
- export type GetConnectionError = GetConnectionErrors[keyof GetConnectionErrors];
22448
- export type GetConnectionResponses = {
22511
+ export type SyncConnectionError = SyncConnectionErrors[keyof SyncConnectionErrors];
22512
+ export type SyncConnectionResponses = {
22449
22513
  /**
22450
22514
  * Successful Response
22451
22515
  */
22452
- 200: ConnectionResponse;
22516
+ 202: OperationEnvelope;
22453
22517
  };
22454
- export type GetConnectionResponse = GetConnectionResponses[keyof GetConnectionResponses];
22518
+ export type SyncConnectionResponse = SyncConnectionResponses[keyof SyncConnectionResponses];
22455
22519
  export type SetConnectionWritePolicyData = {
22456
22520
  body: SetWritePolicyRequest;
22457
22521
  path: {
@@ -26007,7 +26071,7 @@ export type StreamOperationEventsData = {
26007
26071
  /**
26008
26072
  * From Sequence
26009
26073
  *
26010
- * Start streaming from this sequence number (0 = from beginning)
26074
+ * 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.
26011
26075
  */
26012
26076
  from_sequence?: number;
26013
26077
  /**