@robosystems/client 0.3.41 → 0.3.42

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.gen.ts CHANGED
@@ -383,22 +383,13 @@ export const getOrgUsage = <ThrowOnError extends boolean = false>(options: Optio
383
383
  });
384
384
 
385
385
  /**
386
- * List Connections
387
- */
388
- export const listConnections = <ThrowOnError extends boolean = false>(options: Options<ListConnectionsData, ThrowOnError>) => (options.client ?? client).get<ListConnectionsResponses, ListConnectionsErrors, ThrowOnError>({
389
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
390
- url: '/v1/graphs/{graph_id}/connections',
391
- ...options
392
- });
393
-
394
- /**
395
- * Create Connection
386
+ * Sync Connection
396
387
  *
397
- * SEC: provide entity CIK, no auth needed. QuickBooks: returns an OAuth URL complete the flow to activate. One connection allowed per provider per graph.
388
+ * SEC: downloads latest EDGAR filings (5-10 min). QuickBooks: fetches transactions, balances, and chart of accounts. Returns an `OperationEnvelope` monitor progress via SSE at `/v1/operations/{operation_id}/stream`. Supports `Idempotency-Key`.
398
389
  */
399
- export const createConnection = <ThrowOnError extends boolean = false>(options: Options<CreateConnectionData, ThrowOnError>) => (options.client ?? client).post<CreateConnectionResponses, CreateConnectionErrors, ThrowOnError>({
390
+ export const syncConnection = <ThrowOnError extends boolean = false>(options: Options<SyncConnectionData, ThrowOnError>) => (options.client ?? client).post<SyncConnectionResponses, SyncConnectionErrors, ThrowOnError>({
400
391
  security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
401
- url: '/v1/graphs/{graph_id}/connections',
392
+ url: '/v1/graphs/{graph_id}/connections/{connection_id}/sync',
402
393
  ...options,
403
394
  headers: {
404
395
  'Content-Type': 'application/json',
@@ -445,6 +436,30 @@ export const oauthCallback = <ThrowOnError extends boolean = false>(options: Opt
445
436
  }
446
437
  });
447
438
 
439
+ /**
440
+ * List Connections
441
+ */
442
+ export const listConnections = <ThrowOnError extends boolean = false>(options: Options<ListConnectionsData, ThrowOnError>) => (options.client ?? client).get<ListConnectionsResponses, ListConnectionsErrors, ThrowOnError>({
443
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
444
+ url: '/v1/graphs/{graph_id}/connections',
445
+ ...options
446
+ });
447
+
448
+ /**
449
+ * Create Connection
450
+ *
451
+ * SEC: provide entity CIK, no auth needed. QuickBooks: returns an OAuth URL — complete the flow to activate. One connection allowed per provider per graph.
452
+ */
453
+ export const createConnection = <ThrowOnError extends boolean = false>(options: Options<CreateConnectionData, ThrowOnError>) => (options.client ?? client).post<CreateConnectionResponses, CreateConnectionErrors, ThrowOnError>({
454
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
455
+ url: '/v1/graphs/{graph_id}/connections',
456
+ ...options,
457
+ headers: {
458
+ 'Content-Type': 'application/json',
459
+ ...options.headers
460
+ }
461
+ });
462
+
448
463
  /**
449
464
  * Delete Connection
450
465
  *
@@ -465,21 +480,6 @@ export const getConnection = <ThrowOnError extends boolean = false>(options: Opt
465
480
  ...options
466
481
  });
467
482
 
468
- /**
469
- * Sync Connection
470
- *
471
- * SEC: downloads latest EDGAR filings (5-10 min). QuickBooks: fetches transactions, balances, and chart of accounts. Returns an `OperationEnvelope` — monitor progress via SSE at `/v1/operations/{operation_id}/stream`. Supports `Idempotency-Key`.
472
- */
473
- export const syncConnection = <ThrowOnError extends boolean = false>(options: Options<SyncConnectionData, ThrowOnError>) => (options.client ?? client).post<SyncConnectionResponses, SyncConnectionErrors, ThrowOnError>({
474
- security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
475
- url: '/v1/graphs/{graph_id}/connections/{connection_id}/sync',
476
- ...options,
477
- headers: {
478
- 'Content-Type': 'application/json',
479
- ...options.headers
480
- }
481
- });
482
-
483
483
  /**
484
484
  * Set Connection Write Policy
485
485
  *
package/types.gen.d.ts CHANGED
@@ -6548,6 +6548,12 @@ export type McpToolsResponse = {
6548
6548
  tools: Array<{
6549
6549
  [key: string]: unknown;
6550
6550
  }>;
6551
+ /**
6552
+ * Instructions
6553
+ *
6554
+ * Per-graph routing guidance for MCP clients, tailored to the graph's category and live tool set. Clients should pass this to the MCP server's `instructions` handshake field so it is always in the agent's context.
6555
+ */
6556
+ instructions?: string | null;
6551
6557
  };
6552
6558
  /**
6553
6559
  * MaterializeOp
@@ -15112,31 +15118,30 @@ export type GetOrgUsageResponses = {
15112
15118
  200: OrgUsageResponse;
15113
15119
  };
15114
15120
  export type GetOrgUsageResponse = GetOrgUsageResponses[keyof GetOrgUsageResponses];
15115
- export type ListConnectionsData = {
15116
- body?: never;
15117
- path: {
15121
+ export type SyncConnectionData = {
15122
+ body: SyncConnectionRequest;
15123
+ headers?: {
15118
15124
  /**
15119
- * Graph Id
15125
+ * Idempotency-Key
15120
15126
  */
15121
- graph_id: string;
15127
+ 'Idempotency-Key'?: string | null;
15122
15128
  };
15123
- query?: {
15129
+ path: {
15124
15130
  /**
15125
- * Entity Id
15126
- *
15127
- * Filter by entity ID
15131
+ * Graph Id
15128
15132
  */
15129
- entity_id?: string | null;
15133
+ graph_id: string;
15130
15134
  /**
15131
- * Provider
15135
+ * Connection Id
15132
15136
  *
15133
- * Filter by provider type
15137
+ * Connection identifier
15134
15138
  */
15135
- provider?: 'sec' | 'quickbooks' | null;
15139
+ connection_id: string;
15136
15140
  };
15137
- url: '/v1/graphs/{graph_id}/connections';
15141
+ query?: never;
15142
+ url: '/v1/graphs/{graph_id}/connections/{connection_id}/sync';
15138
15143
  };
15139
- export type ListConnectionsErrors = {
15144
+ export type SyncConnectionErrors = {
15140
15145
  /**
15141
15146
  * Invalid request
15142
15147
  */
@@ -15154,9 +15159,13 @@ export type ListConnectionsErrors = {
15154
15159
  */
15155
15160
  404: ErrorResponse;
15156
15161
  /**
15157
- * Validation Error
15162
+ * Idempotency-Key conflict — key reused with different body
15158
15163
  */
15159
- 422: HttpValidationError;
15164
+ 409: ErrorResponse;
15165
+ /**
15166
+ * Validation error
15167
+ */
15168
+ 422: ErrorResponse;
15160
15169
  /**
15161
15170
  * Rate limit exceeded
15162
15171
  */
@@ -15165,19 +15174,21 @@ export type ListConnectionsErrors = {
15165
15174
  * Internal server error
15166
15175
  */
15167
15176
  500: ErrorResponse;
15177
+ /**
15178
+ * Sync request timed out
15179
+ */
15180
+ 504: unknown;
15168
15181
  };
15169
- export type ListConnectionsError = ListConnectionsErrors[keyof ListConnectionsErrors];
15170
- export type ListConnectionsResponses = {
15182
+ export type SyncConnectionError = SyncConnectionErrors[keyof SyncConnectionErrors];
15183
+ export type SyncConnectionResponses = {
15171
15184
  /**
15172
- * Response Listconnections
15173
- *
15174
15185
  * Successful Response
15175
15186
  */
15176
- 200: Array<ConnectionResponse>;
15187
+ 202: OperationEnvelope;
15177
15188
  };
15178
- export type ListConnectionsResponse = ListConnectionsResponses[keyof ListConnectionsResponses];
15179
- export type CreateConnectionData = {
15180
- body: CreateConnectionRequest;
15189
+ export type SyncConnectionResponse = SyncConnectionResponses[keyof SyncConnectionResponses];
15190
+ export type GetConnectionOptionsData = {
15191
+ body?: never;
15181
15192
  path: {
15182
15193
  /**
15183
15194
  * Graph Id
@@ -15185,9 +15196,9 @@ export type CreateConnectionData = {
15185
15196
  graph_id: string;
15186
15197
  };
15187
15198
  query?: never;
15188
- url: '/v1/graphs/{graph_id}/connections';
15199
+ url: '/v1/graphs/{graph_id}/connections/options';
15189
15200
  };
15190
- export type CreateConnectionErrors = {
15201
+ export type GetConnectionOptionsErrors = {
15191
15202
  /**
15192
15203
  * Invalid request
15193
15204
  */
@@ -15204,10 +15215,6 @@ export type CreateConnectionErrors = {
15204
15215
  * Resource not found
15205
15216
  */
15206
15217
  404: ErrorResponse;
15207
- /**
15208
- * Connection already exists for this provider
15209
- */
15210
- 409: unknown;
15211
15218
  /**
15212
15219
  * Validation Error
15213
15220
  */
@@ -15221,16 +15228,16 @@ export type CreateConnectionErrors = {
15221
15228
  */
15222
15229
  500: ErrorResponse;
15223
15230
  };
15224
- export type CreateConnectionError = CreateConnectionErrors[keyof CreateConnectionErrors];
15225
- export type CreateConnectionResponses = {
15231
+ export type GetConnectionOptionsError = GetConnectionOptionsErrors[keyof GetConnectionOptionsErrors];
15232
+ export type GetConnectionOptionsResponses = {
15226
15233
  /**
15227
15234
  * Successful Response
15228
15235
  */
15229
- 201: ConnectionResponse;
15236
+ 200: ConnectionOptionsResponse;
15230
15237
  };
15231
- export type CreateConnectionResponse = CreateConnectionResponses[keyof CreateConnectionResponses];
15232
- export type GetConnectionOptionsData = {
15233
- body?: never;
15238
+ export type GetConnectionOptionsResponse = GetConnectionOptionsResponses[keyof GetConnectionOptionsResponses];
15239
+ export type InitOAuthData = {
15240
+ body: OAuthInitRequest;
15234
15241
  path: {
15235
15242
  /**
15236
15243
  * Graph Id
@@ -15238,9 +15245,9 @@ export type GetConnectionOptionsData = {
15238
15245
  graph_id: string;
15239
15246
  };
15240
15247
  query?: never;
15241
- url: '/v1/graphs/{graph_id}/connections/options';
15248
+ url: '/v1/graphs/{graph_id}/connections/oauth/init';
15242
15249
  };
15243
- export type GetConnectionOptionsErrors = {
15250
+ export type InitOAuthErrors = {
15244
15251
  /**
15245
15252
  * Invalid request
15246
15253
  */
@@ -15270,26 +15277,32 @@ export type GetConnectionOptionsErrors = {
15270
15277
  */
15271
15278
  500: ErrorResponse;
15272
15279
  };
15273
- export type GetConnectionOptionsError = GetConnectionOptionsErrors[keyof GetConnectionOptionsErrors];
15274
- export type GetConnectionOptionsResponses = {
15280
+ export type InitOAuthError = InitOAuthErrors[keyof InitOAuthErrors];
15281
+ export type InitOAuthResponses = {
15275
15282
  /**
15276
15283
  * Successful Response
15277
15284
  */
15278
- 200: ConnectionOptionsResponse;
15285
+ 200: OAuthInitResponse;
15279
15286
  };
15280
- export type GetConnectionOptionsResponse = GetConnectionOptionsResponses[keyof GetConnectionOptionsResponses];
15281
- export type InitOAuthData = {
15282
- body: OAuthInitRequest;
15287
+ export type InitOAuthResponse = InitOAuthResponses[keyof InitOAuthResponses];
15288
+ export type OauthCallbackData = {
15289
+ body: OAuthCallbackRequest;
15283
15290
  path: {
15291
+ /**
15292
+ * Provider
15293
+ *
15294
+ * OAuth provider name
15295
+ */
15296
+ provider: string;
15284
15297
  /**
15285
15298
  * Graph Id
15286
15299
  */
15287
15300
  graph_id: string;
15288
15301
  };
15289
15302
  query?: never;
15290
- url: '/v1/graphs/{graph_id}/connections/oauth/init';
15303
+ url: '/v1/graphs/{graph_id}/connections/oauth/callback/{provider}';
15291
15304
  };
15292
- export type InitOAuthErrors = {
15305
+ export type OauthCallbackErrors = {
15293
15306
  /**
15294
15307
  * Invalid request
15295
15308
  */
@@ -15319,32 +15332,38 @@ export type InitOAuthErrors = {
15319
15332
  */
15320
15333
  500: ErrorResponse;
15321
15334
  };
15322
- export type InitOAuthError = InitOAuthErrors[keyof InitOAuthErrors];
15323
- export type InitOAuthResponses = {
15335
+ export type OauthCallbackError = OauthCallbackErrors[keyof OauthCallbackErrors];
15336
+ export type OauthCallbackResponses = {
15324
15337
  /**
15325
15338
  * Successful Response
15326
15339
  */
15327
- 200: OAuthInitResponse;
15340
+ 200: unknown;
15328
15341
  };
15329
- export type InitOAuthResponse = InitOAuthResponses[keyof InitOAuthResponses];
15330
- export type OauthCallbackData = {
15331
- body: OAuthCallbackRequest;
15342
+ export type ListConnectionsData = {
15343
+ body?: never;
15332
15344
  path: {
15333
15345
  /**
15334
- * Provider
15346
+ * Graph Id
15347
+ */
15348
+ graph_id: string;
15349
+ };
15350
+ query?: {
15351
+ /**
15352
+ * Entity Id
15335
15353
  *
15336
- * OAuth provider name
15354
+ * Filter by entity ID
15337
15355
  */
15338
- provider: string;
15356
+ entity_id?: string | null;
15339
15357
  /**
15340
- * Graph Id
15358
+ * Provider
15359
+ *
15360
+ * Filter by provider type
15341
15361
  */
15342
- graph_id: string;
15362
+ provider?: 'sec' | 'quickbooks' | null;
15343
15363
  };
15344
- query?: never;
15345
- url: '/v1/graphs/{graph_id}/connections/oauth/callback/{provider}';
15364
+ url: '/v1/graphs/{graph_id}/connections';
15346
15365
  };
15347
- export type OauthCallbackErrors = {
15366
+ export type ListConnectionsErrors = {
15348
15367
  /**
15349
15368
  * Invalid request
15350
15369
  */
@@ -15374,31 +15393,28 @@ export type OauthCallbackErrors = {
15374
15393
  */
15375
15394
  500: ErrorResponse;
15376
15395
  };
15377
- export type OauthCallbackError = OauthCallbackErrors[keyof OauthCallbackErrors];
15378
- export type OauthCallbackResponses = {
15396
+ export type ListConnectionsError = ListConnectionsErrors[keyof ListConnectionsErrors];
15397
+ export type ListConnectionsResponses = {
15379
15398
  /**
15399
+ * Response Listconnections
15400
+ *
15380
15401
  * Successful Response
15381
15402
  */
15382
- 200: unknown;
15403
+ 200: Array<ConnectionResponse>;
15383
15404
  };
15384
- export type DeleteConnectionData = {
15385
- body?: never;
15405
+ export type ListConnectionsResponse = ListConnectionsResponses[keyof ListConnectionsResponses];
15406
+ export type CreateConnectionData = {
15407
+ body: CreateConnectionRequest;
15386
15408
  path: {
15387
15409
  /**
15388
15410
  * Graph Id
15389
15411
  */
15390
15412
  graph_id: string;
15391
- /**
15392
- * Connection Id
15393
- *
15394
- * Connection identifier
15395
- */
15396
- connection_id: string;
15397
15413
  };
15398
15414
  query?: never;
15399
- url: '/v1/graphs/{graph_id}/connections/{connection_id}';
15415
+ url: '/v1/graphs/{graph_id}/connections';
15400
15416
  };
15401
- export type DeleteConnectionErrors = {
15417
+ export type CreateConnectionErrors = {
15402
15418
  /**
15403
15419
  * Invalid request
15404
15420
  */
@@ -15415,6 +15431,10 @@ export type DeleteConnectionErrors = {
15415
15431
  * Resource not found
15416
15432
  */
15417
15433
  404: ErrorResponse;
15434
+ /**
15435
+ * Connection already exists for this provider
15436
+ */
15437
+ 409: unknown;
15418
15438
  /**
15419
15439
  * Validation Error
15420
15440
  */
@@ -15428,15 +15448,15 @@ export type DeleteConnectionErrors = {
15428
15448
  */
15429
15449
  500: ErrorResponse;
15430
15450
  };
15431
- export type DeleteConnectionError = DeleteConnectionErrors[keyof DeleteConnectionErrors];
15432
- export type DeleteConnectionResponses = {
15451
+ export type CreateConnectionError = CreateConnectionErrors[keyof CreateConnectionErrors];
15452
+ export type CreateConnectionResponses = {
15433
15453
  /**
15434
15454
  * Successful Response
15435
15455
  */
15436
- 200: SuccessResponse;
15456
+ 201: ConnectionResponse;
15437
15457
  };
15438
- export type DeleteConnectionResponse = DeleteConnectionResponses[keyof DeleteConnectionResponses];
15439
- export type GetConnectionData = {
15458
+ export type CreateConnectionResponse = CreateConnectionResponses[keyof CreateConnectionResponses];
15459
+ export type DeleteConnectionData = {
15440
15460
  body?: never;
15441
15461
  path: {
15442
15462
  /**
@@ -15446,14 +15466,14 @@ export type GetConnectionData = {
15446
15466
  /**
15447
15467
  * Connection Id
15448
15468
  *
15449
- * Unique connection identifier
15469
+ * Connection identifier
15450
15470
  */
15451
15471
  connection_id: string;
15452
15472
  };
15453
15473
  query?: never;
15454
15474
  url: '/v1/graphs/{graph_id}/connections/{connection_id}';
15455
15475
  };
15456
- export type GetConnectionErrors = {
15476
+ export type DeleteConnectionErrors = {
15457
15477
  /**
15458
15478
  * Invalid request
15459
15479
  */
@@ -15483,22 +15503,16 @@ export type GetConnectionErrors = {
15483
15503
  */
15484
15504
  500: ErrorResponse;
15485
15505
  };
15486
- export type GetConnectionError = GetConnectionErrors[keyof GetConnectionErrors];
15487
- export type GetConnectionResponses = {
15506
+ export type DeleteConnectionError = DeleteConnectionErrors[keyof DeleteConnectionErrors];
15507
+ export type DeleteConnectionResponses = {
15488
15508
  /**
15489
15509
  * Successful Response
15490
15510
  */
15491
- 200: ConnectionResponse;
15511
+ 200: SuccessResponse;
15492
15512
  };
15493
- export type GetConnectionResponse = GetConnectionResponses[keyof GetConnectionResponses];
15494
- export type SyncConnectionData = {
15495
- body: SyncConnectionRequest;
15496
- headers?: {
15497
- /**
15498
- * Idempotency-Key
15499
- */
15500
- 'Idempotency-Key'?: string | null;
15501
- };
15513
+ export type DeleteConnectionResponse = DeleteConnectionResponses[keyof DeleteConnectionResponses];
15514
+ export type GetConnectionData = {
15515
+ body?: never;
15502
15516
  path: {
15503
15517
  /**
15504
15518
  * Graph Id
@@ -15507,14 +15521,14 @@ export type SyncConnectionData = {
15507
15521
  /**
15508
15522
  * Connection Id
15509
15523
  *
15510
- * Connection identifier
15524
+ * Unique connection identifier
15511
15525
  */
15512
15526
  connection_id: string;
15513
15527
  };
15514
15528
  query?: never;
15515
- url: '/v1/graphs/{graph_id}/connections/{connection_id}/sync';
15529
+ url: '/v1/graphs/{graph_id}/connections/{connection_id}';
15516
15530
  };
15517
- export type SyncConnectionErrors = {
15531
+ export type GetConnectionErrors = {
15518
15532
  /**
15519
15533
  * Invalid request
15520
15534
  */
@@ -15532,13 +15546,9 @@ export type SyncConnectionErrors = {
15532
15546
  */
15533
15547
  404: ErrorResponse;
15534
15548
  /**
15535
- * Idempotency-Key conflict — key reused with different body
15536
- */
15537
- 409: ErrorResponse;
15538
- /**
15539
- * Validation error
15549
+ * Validation Error
15540
15550
  */
15541
- 422: ErrorResponse;
15551
+ 422: HttpValidationError;
15542
15552
  /**
15543
15553
  * Rate limit exceeded
15544
15554
  */
@@ -15547,19 +15557,15 @@ export type SyncConnectionErrors = {
15547
15557
  * Internal server error
15548
15558
  */
15549
15559
  500: ErrorResponse;
15550
- /**
15551
- * Sync request timed out
15552
- */
15553
- 504: unknown;
15554
15560
  };
15555
- export type SyncConnectionError = SyncConnectionErrors[keyof SyncConnectionErrors];
15556
- export type SyncConnectionResponses = {
15561
+ export type GetConnectionError = GetConnectionErrors[keyof GetConnectionErrors];
15562
+ export type GetConnectionResponses = {
15557
15563
  /**
15558
15564
  * Successful Response
15559
15565
  */
15560
- 202: OperationEnvelope;
15566
+ 200: ConnectionResponse;
15561
15567
  };
15562
- export type SyncConnectionResponse = SyncConnectionResponses[keyof SyncConnectionResponses];
15568
+ export type GetConnectionResponse = GetConnectionResponses[keyof GetConnectionResponses];
15563
15569
  export type SetConnectionWritePolicyData = {
15564
15570
  body: SetWritePolicyRequest;
15565
15571
  path: {