@robosystems/client 0.1.18 → 0.1.20

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.d.ts CHANGED
@@ -117,6 +117,26 @@ export type AddOnCreditInfo = {
117
117
  */
118
118
  rollover_amount?: number;
119
119
  };
120
+ /**
121
+ * AgentListResponse
122
+ * Response for listing available agents.
123
+ */
124
+ export type AgentListResponse = {
125
+ /**
126
+ * Agents
127
+ * Dictionary of available agents with metadata
128
+ */
129
+ agents: {
130
+ [key: string]: {
131
+ [key: string]: unknown;
132
+ };
133
+ };
134
+ /**
135
+ * Total
136
+ * Total number of agents
137
+ */
138
+ total: number;
139
+ };
120
140
  /**
121
141
  * AgentMessage
122
142
  * Message in conversation history.
@@ -132,15 +152,136 @@ export type AgentMessage = {
132
152
  * Message content
133
153
  */
134
154
  content: string;
155
+ /**
156
+ * Timestamp
157
+ * Message timestamp
158
+ */
159
+ timestamp?: string | null;
160
+ };
161
+ /**
162
+ * AgentMetadataResponse
163
+ * Response for agent metadata.
164
+ */
165
+ export type AgentMetadataResponse = {
166
+ /**
167
+ * Name
168
+ * Agent name
169
+ */
170
+ name: string;
171
+ /**
172
+ * Description
173
+ * Agent description
174
+ */
175
+ description: string;
176
+ /**
177
+ * Version
178
+ * Agent version
179
+ */
180
+ version: string;
181
+ /**
182
+ * Capabilities
183
+ * Agent capabilities
184
+ */
185
+ capabilities: Array<string>;
186
+ /**
187
+ * Supported Modes
188
+ * Supported execution modes
189
+ */
190
+ supported_modes: Array<string>;
191
+ /**
192
+ * Requires Credits
193
+ * Whether agent requires credits
194
+ */
195
+ requires_credits: boolean;
196
+ /**
197
+ * Author
198
+ * Agent author
199
+ */
200
+ author?: string | null;
201
+ /**
202
+ * Tags
203
+ * Agent tags
204
+ */
205
+ tags?: Array<string>;
206
+ };
207
+ /**
208
+ * AgentMode
209
+ * Agent execution modes.
210
+ */
211
+ export type AgentMode = 'quick' | 'standard' | 'extended' | 'streaming';
212
+ /**
213
+ * AgentRecommendation
214
+ * Single agent recommendation.
215
+ */
216
+ export type AgentRecommendation = {
217
+ /**
218
+ * Agent Type
219
+ * Agent type identifier
220
+ */
221
+ agent_type: string;
222
+ /**
223
+ * Agent Name
224
+ * Agent display name
225
+ */
226
+ agent_name: string;
227
+ /**
228
+ * Confidence
229
+ * Confidence score (0-1)
230
+ */
231
+ confidence: number;
232
+ /**
233
+ * Capabilities
234
+ * Agent capabilities
235
+ */
236
+ capabilities: Array<string>;
237
+ /**
238
+ * Reason
239
+ * Reason for recommendation
240
+ */
241
+ reason?: string | null;
242
+ };
243
+ /**
244
+ * AgentRecommendationRequest
245
+ * Request for agent recommendations.
246
+ */
247
+ export type AgentRecommendationRequest = {
248
+ /**
249
+ * Query
250
+ * Query to analyze
251
+ */
252
+ query: string;
253
+ /**
254
+ * Context
255
+ * Additional context
256
+ */
257
+ context?: {
258
+ [key: string]: unknown;
259
+ } | null;
260
+ };
261
+ /**
262
+ * AgentRecommendationResponse
263
+ * Response for agent recommendations.
264
+ */
265
+ export type AgentRecommendationResponse = {
266
+ /**
267
+ * Recommendations
268
+ * List of agent recommendations sorted by confidence
269
+ */
270
+ recommendations: Array<AgentRecommendation>;
271
+ /**
272
+ * Query
273
+ * The analyzed query
274
+ */
275
+ query: string;
135
276
  };
136
277
  /**
137
278
  * AgentRequest
138
- * Request model for financial agent interactions.
279
+ * Request model for agent interactions.
139
280
  */
140
281
  export type AgentRequest = {
141
282
  /**
142
283
  * Message
143
- * Financial analysis query
284
+ * The query or message to process
144
285
  */
145
286
  message: string;
146
287
  /**
@@ -150,44 +291,105 @@ export type AgentRequest = {
150
291
  history?: Array<AgentMessage>;
151
292
  /**
152
293
  * Context
153
- * Additional context for analysis (e.g., include_schema, limit_results)
294
+ * Additional context for analysis (e.g., enable_rag, include_schema)
154
295
  */
155
296
  context?: {
156
297
  [key: string]: unknown;
157
298
  } | null;
299
+ /**
300
+ * Execution mode
301
+ */
302
+ mode?: AgentMode | null;
303
+ /**
304
+ * Agent Type
305
+ * Specific agent type to use (optional)
306
+ */
307
+ agent_type?: string | null;
308
+ /**
309
+ * Criteria for agent selection
310
+ */
311
+ selection_criteria?: SelectionCriteria | null;
158
312
  /**
159
313
  * Force Extended Analysis
160
- * Force extended analysis mode with comprehensive research (like Claude Desktop's deep research)
314
+ * Force extended analysis mode with comprehensive research
161
315
  */
162
316
  force_extended_analysis?: boolean;
317
+ /**
318
+ * Enable Rag
319
+ * Enable RAG context enrichment
320
+ */
321
+ enable_rag?: boolean;
322
+ /**
323
+ * Stream
324
+ * Enable streaming response
325
+ */
326
+ stream?: boolean;
163
327
  };
164
328
  /**
165
329
  * AgentResponse
166
- * Response model for financial agent interactions.
330
+ * Response model for agent interactions.
167
331
  */
168
332
  export type AgentResponse = {
169
333
  /**
170
- * Response
171
- * Financial analysis response
334
+ * Content
335
+ * The agent's response content
336
+ */
337
+ content: string;
338
+ /**
339
+ * Agent Used
340
+ * The agent type that handled the request
341
+ */
342
+ agent_used: string;
343
+ /**
344
+ * The execution mode used
172
345
  */
173
- response: string;
346
+ mode_used: AgentMode;
174
347
  /**
175
348
  * Metadata
176
- * Analysis metadata (e.g., analysis_type, graph_id)
349
+ * Response metadata including routing info
177
350
  */
178
351
  metadata?: {
179
352
  [key: string]: unknown;
180
353
  } | null;
354
+ /**
355
+ * Tokens Used
356
+ * Token usage statistics
357
+ */
358
+ tokens_used?: {
359
+ [key: string]: number;
360
+ } | null;
361
+ /**
362
+ * Confidence Score
363
+ * Confidence score of the response
364
+ */
365
+ confidence_score?: number | null;
181
366
  /**
182
367
  * Operation Id
183
- * SSE operation ID for monitoring extended analysis via /v1/operations/{operation_id}/stream
368
+ * Operation ID for SSE monitoring
184
369
  */
185
370
  operation_id?: string | null;
186
371
  /**
187
372
  * Is Partial
188
- * Whether this is a partial response with more analysis coming
373
+ * Whether this is a partial response
189
374
  */
190
375
  is_partial?: boolean;
376
+ /**
377
+ * Error Details
378
+ * Error details if any
379
+ */
380
+ error_details?: {
381
+ [key: string]: unknown;
382
+ } | null;
383
+ /**
384
+ * Execution Time
385
+ * Execution time in seconds
386
+ */
387
+ execution_time?: number | null;
388
+ /**
389
+ * Timestamp
390
+ * Response timestamp
391
+ */
392
+ timestamp?: string;
191
393
  };
192
394
  /**
193
395
  * AuthResponse
@@ -208,9 +410,9 @@ export type AuthResponse = {
208
410
  message: string;
209
411
  /**
210
412
  * Token
211
- * JWT authentication token
413
+ * JWT authentication token (optional for cookie-based auth)
212
414
  */
213
- token: string;
415
+ token?: string | null;
214
416
  };
215
417
  /**
216
418
  * AvailableExtension
@@ -439,6 +641,43 @@ export type BackupStatsResponse = {
439
641
  [key: string]: number;
440
642
  };
441
643
  };
644
+ /**
645
+ * BatchAgentRequest
646
+ * Request for batch processing multiple queries.
647
+ */
648
+ export type BatchAgentRequest = {
649
+ /**
650
+ * Queries
651
+ * List of queries to process
652
+ */
653
+ queries: Array<AgentRequest>;
654
+ /**
655
+ * Parallel
656
+ * Process queries in parallel
657
+ */
658
+ parallel?: boolean;
659
+ };
660
+ /**
661
+ * BatchAgentResponse
662
+ * Response for batch processing.
663
+ */
664
+ export type BatchAgentResponse = {
665
+ /**
666
+ * Results
667
+ * List of agent responses
668
+ */
669
+ results: Array<AgentResponse>;
670
+ /**
671
+ * Total Execution Time
672
+ * Total execution time
673
+ */
674
+ total_execution_time: number;
675
+ /**
676
+ * Parallel Processed
677
+ * Whether queries were processed in parallel
678
+ */
679
+ parallel_processed: boolean;
680
+ };
442
681
  /**
443
682
  * CancellationResponse
444
683
  * Response for subscription cancellation.
@@ -807,12 +1046,12 @@ export type CreditSummary = {
807
1046
  * Last Allocation Date
808
1047
  * Last allocation date (ISO format)
809
1048
  */
810
- last_allocation_date?: string;
1049
+ last_allocation_date?: string | null;
811
1050
  /**
812
1051
  * Next Allocation Date
813
1052
  * Next allocation date (ISO format)
814
1053
  */
815
- next_allocation_date?: string;
1054
+ next_allocation_date?: string | null;
816
1055
  /**
817
1056
  * Is Active
818
1057
  * Whether credit pool is active
@@ -879,7 +1118,7 @@ export type CreditsSummaryResponse = {
879
1118
  */
880
1119
  credits_by_addon?: Array<{
881
1120
  [key: string]: unknown;
882
- }>;
1121
+ }> | null;
883
1122
  /**
884
1123
  * Addon Count
885
1124
  * Number of active add-ons
@@ -888,7 +1127,7 @@ export type CreditsSummaryResponse = {
888
1127
  };
889
1128
  /**
890
1129
  * CustomSchemaDefinition
891
- * Custom schema definition for user-defined graphs.
1130
+ * Custom schema definition for custom graphs.
892
1131
  */
893
1132
  export type CustomSchemaDefinition = {
894
1133
  /**
@@ -1916,11 +2155,11 @@ export type RepositoryCreditsResponse = {
1916
2155
  * Message
1917
2156
  * Access message
1918
2157
  */
1919
- message?: string;
2158
+ message?: string | null;
1920
2159
  /**
1921
2160
  * Credit summary if access available
1922
2161
  */
1923
- credits?: CreditSummary;
2162
+ credits?: CreditSummary | null;
1924
2163
  };
1925
2164
  /**
1926
2165
  * RepositoryPlan
@@ -2245,6 +2484,36 @@ export type SchemaValidationResponse = {
2245
2484
  [key: string]: unknown;
2246
2485
  } | null;
2247
2486
  };
2487
+ /**
2488
+ * SelectionCriteria
2489
+ * Criteria for agent selection.
2490
+ */
2491
+ export type SelectionCriteria = {
2492
+ /**
2493
+ * Min Confidence
2494
+ * Minimum confidence score
2495
+ */
2496
+ min_confidence?: number;
2497
+ /**
2498
+ * Required Capabilities
2499
+ * Required agent capabilities
2500
+ */
2501
+ required_capabilities?: Array<string>;
2502
+ /**
2503
+ * Preferred execution mode
2504
+ */
2505
+ preferred_mode?: AgentMode | null;
2506
+ /**
2507
+ * Max Response Time
2508
+ * Maximum response time in seconds
2509
+ */
2510
+ max_response_time?: number;
2511
+ /**
2512
+ * Excluded Agents
2513
+ * Agents to exclude from selection
2514
+ */
2515
+ excluded_agents?: Array<string>;
2516
+ };
2248
2517
  /**
2249
2518
  * StorageLimitResponse
2250
2519
  * Storage limit information response.
@@ -4033,7 +4302,7 @@ export type GetRepositoryCreditsResponses = {
4033
4302
  200: RepositoryCreditsResponse;
4034
4303
  };
4035
4304
  export type GetRepositoryCreditsResponse = GetRepositoryCreditsResponses[keyof GetRepositoryCreditsResponses];
4036
- export type ListConnectionsData = {
4305
+ export type GetConnectionOptionsData = {
4037
4306
  body?: never;
4038
4307
  headers?: {
4039
4308
  /**
@@ -4048,21 +4317,10 @@ export type ListConnectionsData = {
4048
4317
  */
4049
4318
  graph_id: string;
4050
4319
  };
4051
- query?: {
4052
- /**
4053
- * Entity Id
4054
- * Filter by entity ID
4055
- */
4056
- entity_id?: string | null;
4057
- /**
4058
- * Provider
4059
- * Filter by provider type
4060
- */
4061
- provider?: ('sec' | 'quickbooks' | 'plaid') | null;
4062
- };
4063
- url: '/v1/{graph_id}/connections';
4320
+ query?: never;
4321
+ url: '/v1/{graph_id}/connections/options';
4064
4322
  };
4065
- export type ListConnectionsErrors = {
4323
+ export type GetConnectionOptionsErrors = {
4066
4324
  /**
4067
4325
  * Access denied to graph
4068
4326
  */
@@ -4072,21 +4330,20 @@ export type ListConnectionsErrors = {
4072
4330
  */
4073
4331
  422: HttpValidationError;
4074
4332
  /**
4075
- * Failed to list connections
4333
+ * Failed to retrieve options
4076
4334
  */
4077
4335
  500: ErrorResponse;
4078
4336
  };
4079
- export type ListConnectionsError = ListConnectionsErrors[keyof ListConnectionsErrors];
4080
- export type ListConnectionsResponses = {
4337
+ export type GetConnectionOptionsError = GetConnectionOptionsErrors[keyof GetConnectionOptionsErrors];
4338
+ export type GetConnectionOptionsResponses = {
4081
4339
  /**
4082
- * Response Listconnections
4083
- * Connections retrieved successfully
4340
+ * Connection options retrieved successfully
4084
4341
  */
4085
- 200: Array<ConnectionResponse>;
4342
+ 200: ConnectionOptionsResponse;
4086
4343
  };
4087
- export type ListConnectionsResponse = ListConnectionsResponses[keyof ListConnectionsResponses];
4088
- export type CreateConnectionData = {
4089
- body: CreateConnectionRequest;
4344
+ export type GetConnectionOptionsResponse = GetConnectionOptionsResponses[keyof GetConnectionOptionsResponses];
4345
+ export type SyncConnectionData = {
4346
+ body: SyncConnectionRequest;
4090
4347
  headers?: {
4091
4348
  /**
4092
4349
  * Authorization
@@ -4099,42 +4356,46 @@ export type CreateConnectionData = {
4099
4356
  * Graph database identifier
4100
4357
  */
4101
4358
  graph_id: string;
4359
+ /**
4360
+ * Connection Id
4361
+ * Connection identifier
4362
+ */
4363
+ connection_id: string;
4102
4364
  };
4103
4365
  query?: never;
4104
- url: '/v1/{graph_id}/connections';
4366
+ url: '/v1/{graph_id}/connections/{connection_id}/sync';
4105
4367
  };
4106
- export type CreateConnectionErrors = {
4107
- /**
4108
- * Invalid connection configuration
4109
- */
4110
- 400: ErrorResponse;
4368
+ export type SyncConnectionErrors = {
4111
4369
  /**
4112
4370
  * Access denied - admin role required
4113
4371
  */
4114
4372
  403: ErrorResponse;
4115
4373
  /**
4116
- * Connection already exists
4374
+ * Connection not found
4117
4375
  */
4118
- 409: ErrorResponse;
4376
+ 404: ErrorResponse;
4119
4377
  /**
4120
4378
  * Validation Error
4121
4379
  */
4122
4380
  422: HttpValidationError;
4123
4381
  /**
4124
- * Failed to create connection
4382
+ * Failed to start sync
4125
4383
  */
4126
4384
  500: ErrorResponse;
4127
4385
  };
4128
- export type CreateConnectionError = CreateConnectionErrors[keyof CreateConnectionErrors];
4129
- export type CreateConnectionResponses = {
4386
+ export type SyncConnectionError = SyncConnectionErrors[keyof SyncConnectionErrors];
4387
+ export type SyncConnectionResponses = {
4130
4388
  /**
4131
- * Connection created successfully
4389
+ * Response Syncconnection
4390
+ * Sync started successfully
4132
4391
  */
4133
- 201: ConnectionResponse;
4392
+ 200: {
4393
+ [key: string]: unknown;
4394
+ };
4134
4395
  };
4135
- export type CreateConnectionResponse = CreateConnectionResponses[keyof CreateConnectionResponses];
4136
- export type DeleteConnectionData = {
4137
- body?: never;
4396
+ export type SyncConnectionResponse = SyncConnectionResponses[keyof SyncConnectionResponses];
4397
+ export type CreateLinkTokenData = {
4398
+ body: LinkTokenRequest;
4138
4399
  headers?: {
4139
4400
  /**
4140
4401
  * Authorization
@@ -4147,22 +4408,17 @@ export type DeleteConnectionData = {
4147
4408
  * Graph database identifier
4148
4409
  */
4149
4410
  graph_id: string;
4150
- /**
4151
- * Connection Id
4152
- * Connection identifier
4153
- */
4154
- connection_id: string;
4155
4411
  };
4156
4412
  query?: never;
4157
- url: '/v1/{graph_id}/connections/{connection_id}';
4413
+ url: '/v1/{graph_id}/connections/link/token';
4158
4414
  };
4159
- export type DeleteConnectionErrors = {
4415
+ export type CreateLinkTokenErrors = {
4160
4416
  /**
4161
- * Access denied - admin role required
4417
+ * Invalid provider or request
4162
4418
  */
4163
- 403: ErrorResponse;
4419
+ 400: ErrorResponse;
4164
4420
  /**
4165
- * Connection not found
4421
+ * Entity not found
4166
4422
  */
4167
4423
  404: ErrorResponse;
4168
4424
  /**
@@ -4170,20 +4426,19 @@ export type DeleteConnectionErrors = {
4170
4426
  */
4171
4427
  422: HttpValidationError;
4172
4428
  /**
4173
- * Failed to delete connection
4429
+ * Failed to create link token
4174
4430
  */
4175
4431
  500: ErrorResponse;
4176
4432
  };
4177
- export type DeleteConnectionError = DeleteConnectionErrors[keyof DeleteConnectionErrors];
4178
- export type DeleteConnectionResponses = {
4433
+ export type CreateLinkTokenError = CreateLinkTokenErrors[keyof CreateLinkTokenErrors];
4434
+ export type CreateLinkTokenResponses = {
4179
4435
  /**
4180
- * Connection deleted successfully
4436
+ * Link token created successfully
4181
4437
  */
4182
- 200: SuccessResponse;
4438
+ 200: unknown;
4183
4439
  };
4184
- export type DeleteConnectionResponse = DeleteConnectionResponses[keyof DeleteConnectionResponses];
4185
- export type GetConnectionData = {
4186
- body?: never;
4440
+ export type ExchangeLinkTokenData = {
4441
+ body: ExchangeTokenRequest;
4187
4442
  headers?: {
4188
4443
  /**
4189
4444
  * Authorization
@@ -4196,20 +4451,15 @@ export type GetConnectionData = {
4196
4451
  * Graph database identifier
4197
4452
  */
4198
4453
  graph_id: string;
4199
- /**
4200
- * Connection Id
4201
- * Unique connection identifier
4202
- */
4203
- connection_id: string;
4204
4454
  };
4205
4455
  query?: never;
4206
- url: '/v1/{graph_id}/connections/{connection_id}';
4456
+ url: '/v1/{graph_id}/connections/link/exchange';
4207
4457
  };
4208
- export type GetConnectionErrors = {
4458
+ export type ExchangeLinkTokenErrors = {
4209
4459
  /**
4210
- * Access denied to connection
4460
+ * Invalid token or provider
4211
4461
  */
4212
- 403: ErrorResponse;
4462
+ 400: ErrorResponse;
4213
4463
  /**
4214
4464
  * Connection not found
4215
4465
  */
@@ -4219,20 +4469,19 @@ export type GetConnectionErrors = {
4219
4469
  */
4220
4470
  422: HttpValidationError;
4221
4471
  /**
4222
- * Failed to retrieve connection
4472
+ * Token exchange failed
4223
4473
  */
4224
4474
  500: ErrorResponse;
4225
4475
  };
4226
- export type GetConnectionError = GetConnectionErrors[keyof GetConnectionErrors];
4227
- export type GetConnectionResponses = {
4476
+ export type ExchangeLinkTokenError = ExchangeLinkTokenErrors[keyof ExchangeLinkTokenErrors];
4477
+ export type ExchangeLinkTokenResponses = {
4228
4478
  /**
4229
- * Connection details retrieved successfully
4479
+ * Token exchanged successfully
4230
4480
  */
4231
- 200: ConnectionResponse;
4481
+ 200: unknown;
4232
4482
  };
4233
- export type GetConnectionResponse = GetConnectionResponses[keyof GetConnectionResponses];
4234
- export type GetConnectionOptionsData = {
4235
- body?: never;
4483
+ export type InitOAuthData = {
4484
+ body: OAuthInitRequest;
4236
4485
  headers?: {
4237
4486
  /**
4238
4487
  * Authorization
@@ -4247,32 +4496,76 @@ export type GetConnectionOptionsData = {
4247
4496
  graph_id: string;
4248
4497
  };
4249
4498
  query?: never;
4250
- url: '/v1/{graph_id}/connections/options';
4499
+ url: '/v1/{graph_id}/connections/oauth/init';
4251
4500
  };
4252
- export type GetConnectionOptionsErrors = {
4501
+ export type InitOAuthErrors = {
4253
4502
  /**
4254
- * Access denied to graph
4503
+ * Validation Error
4504
+ */
4505
+ 422: HttpValidationError;
4506
+ };
4507
+ export type InitOAuthError = InitOAuthErrors[keyof InitOAuthErrors];
4508
+ export type InitOAuthResponses = {
4509
+ /**
4510
+ * Successful Response
4511
+ */
4512
+ 200: OAuthInitResponse;
4513
+ };
4514
+ export type InitOAuthResponse = InitOAuthResponses[keyof InitOAuthResponses];
4515
+ export type OauthCallbackData = {
4516
+ body: OAuthCallbackRequest;
4517
+ headers?: {
4518
+ /**
4519
+ * Authorization
4520
+ */
4521
+ authorization?: string | null;
4522
+ };
4523
+ path: {
4524
+ /**
4525
+ * Provider
4526
+ * OAuth provider name
4527
+ */
4528
+ provider: string;
4529
+ /**
4530
+ * Graph Id
4531
+ * Graph database identifier
4532
+ */
4533
+ graph_id: string;
4534
+ };
4535
+ query?: never;
4536
+ url: '/v1/{graph_id}/connections/oauth/callback/{provider}';
4537
+ };
4538
+ export type OauthCallbackErrors = {
4539
+ /**
4540
+ * OAuth error or invalid state
4541
+ */
4542
+ 400: ErrorResponse;
4543
+ /**
4544
+ * State does not match user
4255
4545
  */
4256
4546
  403: ErrorResponse;
4547
+ /**
4548
+ * Connection not found
4549
+ */
4550
+ 404: ErrorResponse;
4257
4551
  /**
4258
4552
  * Validation Error
4259
4553
  */
4260
4554
  422: HttpValidationError;
4261
4555
  /**
4262
- * Failed to retrieve options
4556
+ * OAuth callback processing failed
4263
4557
  */
4264
4558
  500: ErrorResponse;
4265
4559
  };
4266
- export type GetConnectionOptionsError = GetConnectionOptionsErrors[keyof GetConnectionOptionsErrors];
4267
- export type GetConnectionOptionsResponses = {
4560
+ export type OauthCallbackError = OauthCallbackErrors[keyof OauthCallbackErrors];
4561
+ export type OauthCallbackResponses = {
4268
4562
  /**
4269
- * Connection options retrieved successfully
4563
+ * OAuth flow completed successfully
4270
4564
  */
4271
- 200: ConnectionOptionsResponse;
4565
+ 200: unknown;
4272
4566
  };
4273
- export type GetConnectionOptionsResponse = GetConnectionOptionsResponses[keyof GetConnectionOptionsResponses];
4274
- export type SyncConnectionData = {
4275
- body?: SyncConnectionRequest;
4567
+ export type ListConnectionsData = {
4568
+ body?: never;
4276
4569
  headers?: {
4277
4570
  /**
4278
4571
  * Authorization
@@ -4285,46 +4578,94 @@ export type SyncConnectionData = {
4285
4578
  * Graph database identifier
4286
4579
  */
4287
4580
  graph_id: string;
4581
+ };
4582
+ query?: {
4288
4583
  /**
4289
- * Connection Id
4290
- * Connection identifier
4584
+ * Entity Id
4585
+ * Filter by entity ID
4291
4586
  */
4292
- connection_id: string;
4587
+ entity_id?: string | null;
4588
+ /**
4589
+ * Provider
4590
+ * Filter by provider type
4591
+ */
4592
+ provider?: ('sec' | 'quickbooks' | 'plaid') | null;
4593
+ };
4594
+ url: '/v1/{graph_id}/connections';
4595
+ };
4596
+ export type ListConnectionsErrors = {
4597
+ /**
4598
+ * Access denied to graph
4599
+ */
4600
+ 403: ErrorResponse;
4601
+ /**
4602
+ * Validation Error
4603
+ */
4604
+ 422: HttpValidationError;
4605
+ /**
4606
+ * Failed to list connections
4607
+ */
4608
+ 500: ErrorResponse;
4609
+ };
4610
+ export type ListConnectionsError = ListConnectionsErrors[keyof ListConnectionsErrors];
4611
+ export type ListConnectionsResponses = {
4612
+ /**
4613
+ * Response Listconnections
4614
+ * Connections retrieved successfully
4615
+ */
4616
+ 200: Array<ConnectionResponse>;
4617
+ };
4618
+ export type ListConnectionsResponse = ListConnectionsResponses[keyof ListConnectionsResponses];
4619
+ export type CreateConnectionData = {
4620
+ body: CreateConnectionRequest;
4621
+ headers?: {
4622
+ /**
4623
+ * Authorization
4624
+ */
4625
+ authorization?: string | null;
4626
+ };
4627
+ path: {
4628
+ /**
4629
+ * Graph Id
4630
+ * Graph database identifier
4631
+ */
4632
+ graph_id: string;
4293
4633
  };
4294
4634
  query?: never;
4295
- url: '/v1/{graph_id}/connections/{connection_id}/sync';
4635
+ url: '/v1/{graph_id}/connections';
4296
4636
  };
4297
- export type SyncConnectionErrors = {
4637
+ export type CreateConnectionErrors = {
4638
+ /**
4639
+ * Invalid connection configuration
4640
+ */
4641
+ 400: ErrorResponse;
4298
4642
  /**
4299
4643
  * Access denied - admin role required
4300
4644
  */
4301
4645
  403: ErrorResponse;
4302
4646
  /**
4303
- * Connection not found
4647
+ * Connection already exists
4304
4648
  */
4305
- 404: ErrorResponse;
4649
+ 409: ErrorResponse;
4306
4650
  /**
4307
4651
  * Validation Error
4308
4652
  */
4309
4653
  422: HttpValidationError;
4310
4654
  /**
4311
- * Failed to start sync
4655
+ * Failed to create connection
4312
4656
  */
4313
4657
  500: ErrorResponse;
4314
4658
  };
4315
- export type SyncConnectionError = SyncConnectionErrors[keyof SyncConnectionErrors];
4316
- export type SyncConnectionResponses = {
4659
+ export type CreateConnectionError = CreateConnectionErrors[keyof CreateConnectionErrors];
4660
+ export type CreateConnectionResponses = {
4317
4661
  /**
4318
- * Response Syncconnection
4319
- * Sync started successfully
4662
+ * Connection created successfully
4320
4663
  */
4321
- 200: {
4322
- [key: string]: unknown;
4323
- };
4664
+ 201: ConnectionResponse;
4324
4665
  };
4325
- export type SyncConnectionResponse = SyncConnectionResponses[keyof SyncConnectionResponses];
4326
- export type CreateLinkTokenData = {
4327
- body: LinkTokenRequest;
4666
+ export type CreateConnectionResponse = CreateConnectionResponses[keyof CreateConnectionResponses];
4667
+ export type DeleteConnectionData = {
4668
+ body?: never;
4328
4669
  headers?: {
4329
4670
  /**
4330
4671
  * Authorization
@@ -4337,17 +4678,22 @@ export type CreateLinkTokenData = {
4337
4678
  * Graph database identifier
4338
4679
  */
4339
4680
  graph_id: string;
4681
+ /**
4682
+ * Connection Id
4683
+ * Connection identifier
4684
+ */
4685
+ connection_id: string;
4340
4686
  };
4341
4687
  query?: never;
4342
- url: '/v1/{graph_id}/connections/link/token';
4688
+ url: '/v1/{graph_id}/connections/{connection_id}';
4343
4689
  };
4344
- export type CreateLinkTokenErrors = {
4690
+ export type DeleteConnectionErrors = {
4345
4691
  /**
4346
- * Invalid provider or request
4692
+ * Access denied - admin role required
4347
4693
  */
4348
- 400: ErrorResponse;
4694
+ 403: ErrorResponse;
4349
4695
  /**
4350
- * Entity not found
4696
+ * Connection not found
4351
4697
  */
4352
4698
  404: ErrorResponse;
4353
4699
  /**
@@ -4355,19 +4701,20 @@ export type CreateLinkTokenErrors = {
4355
4701
  */
4356
4702
  422: HttpValidationError;
4357
4703
  /**
4358
- * Failed to create link token
4704
+ * Failed to delete connection
4359
4705
  */
4360
4706
  500: ErrorResponse;
4361
4707
  };
4362
- export type CreateLinkTokenError = CreateLinkTokenErrors[keyof CreateLinkTokenErrors];
4363
- export type CreateLinkTokenResponses = {
4708
+ export type DeleteConnectionError = DeleteConnectionErrors[keyof DeleteConnectionErrors];
4709
+ export type DeleteConnectionResponses = {
4364
4710
  /**
4365
- * Link token created successfully
4711
+ * Connection deleted successfully
4366
4712
  */
4367
- 200: unknown;
4713
+ 200: SuccessResponse;
4368
4714
  };
4369
- export type ExchangeLinkTokenData = {
4370
- body: ExchangeTokenRequest;
4715
+ export type DeleteConnectionResponse = DeleteConnectionResponses[keyof DeleteConnectionResponses];
4716
+ export type GetConnectionData = {
4717
+ body?: never;
4371
4718
  headers?: {
4372
4719
  /**
4373
4720
  * Authorization
@@ -4380,15 +4727,20 @@ export type ExchangeLinkTokenData = {
4380
4727
  * Graph database identifier
4381
4728
  */
4382
4729
  graph_id: string;
4730
+ /**
4731
+ * Connection Id
4732
+ * Unique connection identifier
4733
+ */
4734
+ connection_id: string;
4383
4735
  };
4384
4736
  query?: never;
4385
- url: '/v1/{graph_id}/connections/link/exchange';
4737
+ url: '/v1/{graph_id}/connections/{connection_id}';
4386
4738
  };
4387
- export type ExchangeLinkTokenErrors = {
4739
+ export type GetConnectionErrors = {
4388
4740
  /**
4389
- * Invalid token or provider
4741
+ * Access denied to connection
4390
4742
  */
4391
- 400: ErrorResponse;
4743
+ 403: ErrorResponse;
4392
4744
  /**
4393
4745
  * Connection not found
4394
4746
  */
@@ -4398,19 +4750,20 @@ export type ExchangeLinkTokenErrors = {
4398
4750
  */
4399
4751
  422: HttpValidationError;
4400
4752
  /**
4401
- * Token exchange failed
4753
+ * Failed to retrieve connection
4402
4754
  */
4403
4755
  500: ErrorResponse;
4404
4756
  };
4405
- export type ExchangeLinkTokenError = ExchangeLinkTokenErrors[keyof ExchangeLinkTokenErrors];
4406
- export type ExchangeLinkTokenResponses = {
4757
+ export type GetConnectionError = GetConnectionErrors[keyof GetConnectionErrors];
4758
+ export type GetConnectionResponses = {
4407
4759
  /**
4408
- * Token exchanged successfully
4760
+ * Connection details retrieved successfully
4409
4761
  */
4410
- 200: unknown;
4762
+ 200: ConnectionResponse;
4411
4763
  };
4412
- export type InitOAuthData = {
4413
- body: OAuthInitRequest;
4764
+ export type GetConnectionResponse = GetConnectionResponses[keyof GetConnectionResponses];
4765
+ export type AutoSelectAgentData = {
4766
+ body: AgentRequest;
4414
4767
  headers?: {
4415
4768
  /**
4416
4769
  * Authorization
@@ -4420,29 +4773,44 @@ export type InitOAuthData = {
4420
4773
  path: {
4421
4774
  /**
4422
4775
  * Graph Id
4423
- * Graph database identifier
4424
4776
  */
4425
4777
  graph_id: string;
4426
4778
  };
4427
4779
  query?: never;
4428
- url: '/v1/{graph_id}/connections/oauth/init';
4780
+ url: '/v1/{graph_id}/agent';
4429
4781
  };
4430
- export type InitOAuthErrors = {
4782
+ export type AutoSelectAgentErrors = {
4783
+ /**
4784
+ * Invalid request parameters
4785
+ */
4786
+ 400: unknown;
4787
+ /**
4788
+ * Insufficient credits for selected agent
4789
+ */
4790
+ 402: unknown;
4431
4791
  /**
4432
4792
  * Validation Error
4433
4793
  */
4434
4794
  422: HttpValidationError;
4795
+ /**
4796
+ * Rate limit exceeded
4797
+ */
4798
+ 429: unknown;
4799
+ /**
4800
+ * Internal server error
4801
+ */
4802
+ 500: ErrorResponse;
4435
4803
  };
4436
- export type InitOAuthError = InitOAuthErrors[keyof InitOAuthErrors];
4437
- export type InitOAuthResponses = {
4804
+ export type AutoSelectAgentError = AutoSelectAgentErrors[keyof AutoSelectAgentErrors];
4805
+ export type AutoSelectAgentResponses = {
4438
4806
  /**
4439
- * Successful Response
4807
+ * Query successfully processed by selected agent
4440
4808
  */
4441
- 200: OAuthInitResponse;
4809
+ 200: AgentResponse;
4442
4810
  };
4443
- export type InitOAuthResponse = InitOAuthResponses[keyof InitOAuthResponses];
4444
- export type OauthCallbackData = {
4445
- body: OAuthCallbackRequest;
4811
+ export type AutoSelectAgentResponse = AutoSelectAgentResponses[keyof AutoSelectAgentResponses];
4812
+ export type ExecuteSpecificAgentData = {
4813
+ body: AgentRequest;
4446
4814
  headers?: {
4447
4815
  /**
4448
4816
  * Authorization
@@ -4451,50 +4819,53 @@ export type OauthCallbackData = {
4451
4819
  };
4452
4820
  path: {
4453
4821
  /**
4454
- * Provider
4455
- * OAuth provider name
4822
+ * Agent Type
4456
4823
  */
4457
- provider: string;
4824
+ agent_type: string;
4458
4825
  /**
4459
4826
  * Graph Id
4460
- * Graph database identifier
4461
4827
  */
4462
4828
  graph_id: string;
4463
4829
  };
4464
4830
  query?: never;
4465
- url: '/v1/{graph_id}/connections/oauth/callback/{provider}';
4831
+ url: '/v1/{graph_id}/agent/{agent_type}';
4466
4832
  };
4467
- export type OauthCallbackErrors = {
4833
+ export type ExecuteSpecificAgentErrors = {
4468
4834
  /**
4469
- * OAuth error or invalid state
4835
+ * Invalid agent type or request parameters
4470
4836
  */
4471
- 400: ErrorResponse;
4837
+ 400: unknown;
4472
4838
  /**
4473
- * State does not match user
4839
+ * Insufficient credits for specified agent
4474
4840
  */
4475
- 403: ErrorResponse;
4841
+ 402: unknown;
4476
4842
  /**
4477
- * Connection not found
4843
+ * Agent type not found
4478
4844
  */
4479
- 404: ErrorResponse;
4845
+ 404: unknown;
4480
4846
  /**
4481
4847
  * Validation Error
4482
4848
  */
4483
4849
  422: HttpValidationError;
4484
4850
  /**
4485
- * OAuth callback processing failed
4851
+ * Rate limit exceeded
4852
+ */
4853
+ 429: unknown;
4854
+ /**
4855
+ * Internal server error
4486
4856
  */
4487
4857
  500: ErrorResponse;
4488
4858
  };
4489
- export type OauthCallbackError = OauthCallbackErrors[keyof OauthCallbackErrors];
4490
- export type OauthCallbackResponses = {
4859
+ export type ExecuteSpecificAgentError = ExecuteSpecificAgentErrors[keyof ExecuteSpecificAgentErrors];
4860
+ export type ExecuteSpecificAgentResponses = {
4491
4861
  /**
4492
- * OAuth flow completed successfully
4862
+ * Query successfully processed by specified agent
4493
4863
  */
4494
- 200: unknown;
4864
+ 200: AgentResponse;
4495
4865
  };
4496
- export type QueryFinancialAgentData = {
4497
- body: AgentRequest;
4866
+ export type ExecuteSpecificAgentResponse = ExecuteSpecificAgentResponses[keyof ExecuteSpecificAgentResponses];
4867
+ export type BatchProcessQueriesData = {
4868
+ body: BatchAgentRequest;
4498
4869
  headers?: {
4499
4870
  /**
4500
4871
  * Authorization
@@ -4508,38 +4879,153 @@ export type QueryFinancialAgentData = {
4508
4879
  graph_id: string;
4509
4880
  };
4510
4881
  query?: never;
4511
- url: '/v1/{graph_id}/agent';
4882
+ url: '/v1/{graph_id}/agent/batch';
4512
4883
  };
4513
- export type QueryFinancialAgentErrors = {
4884
+ export type BatchProcessQueriesErrors = {
4514
4885
  /**
4515
- * Invalid request parameters
4886
+ * Invalid batch request or too many queries
4516
4887
  */
4517
- 400: ErrorResponse;
4888
+ 400: unknown;
4518
4889
  /**
4519
- * Insufficient credits for AI analysis
4890
+ * Insufficient credits for batch processing
4520
4891
  */
4521
- 402: ErrorResponse;
4892
+ 402: unknown;
4522
4893
  /**
4523
- * Access denied to graph
4894
+ * Validation Error
4524
4895
  */
4525
- 403: ErrorResponse;
4896
+ 422: HttpValidationError;
4897
+ /**
4898
+ * Internal server error during batch processing
4899
+ */
4900
+ 500: unknown;
4901
+ };
4902
+ export type BatchProcessQueriesError = BatchProcessQueriesErrors[keyof BatchProcessQueriesErrors];
4903
+ export type BatchProcessQueriesResponses = {
4904
+ /**
4905
+ * Batch processing completed successfully
4906
+ */
4907
+ 200: BatchAgentResponse;
4908
+ };
4909
+ export type BatchProcessQueriesResponse = BatchProcessQueriesResponses[keyof BatchProcessQueriesResponses];
4910
+ export type ListAgentsData = {
4911
+ body?: never;
4912
+ headers?: {
4913
+ /**
4914
+ * Authorization
4915
+ */
4916
+ authorization?: string | null;
4917
+ };
4918
+ path: {
4919
+ /**
4920
+ * Graph Id
4921
+ * Graph database identifier
4922
+ */
4923
+ graph_id: string;
4924
+ };
4925
+ query?: {
4926
+ /**
4927
+ * Capability
4928
+ * Filter by capability (e.g., 'financial_analysis', 'rag_search')
4929
+ */
4930
+ capability?: string | null;
4931
+ };
4932
+ url: '/v1/{graph_id}/agent/list';
4933
+ };
4934
+ export type ListAgentsErrors = {
4935
+ /**
4936
+ * Unauthorized - Invalid or missing authentication
4937
+ */
4938
+ 401: unknown;
4526
4939
  /**
4527
4940
  * Validation Error
4528
4941
  */
4529
4942
  422: HttpValidationError;
4943
+ };
4944
+ export type ListAgentsError = ListAgentsErrors[keyof ListAgentsErrors];
4945
+ export type ListAgentsResponses = {
4530
4946
  /**
4531
- * Internal server error during analysis
4947
+ * List of agents retrieved successfully
4532
4948
  */
4533
- 500: ErrorResponse;
4949
+ 200: AgentListResponse;
4950
+ };
4951
+ export type ListAgentsResponse = ListAgentsResponses[keyof ListAgentsResponses];
4952
+ export type GetAgentMetadataData = {
4953
+ body?: never;
4954
+ headers?: {
4955
+ /**
4956
+ * Authorization
4957
+ */
4958
+ authorization?: string | null;
4959
+ };
4960
+ path: {
4961
+ /**
4962
+ * Graph Id
4963
+ * Graph database identifier
4964
+ */
4965
+ graph_id: string;
4966
+ /**
4967
+ * Agent Type
4968
+ * Agent type identifier (e.g., 'financial', 'research', 'rag')
4969
+ */
4970
+ agent_type: string;
4971
+ };
4972
+ query?: never;
4973
+ url: '/v1/{graph_id}/agent/{agent_type}/metadata';
4534
4974
  };
4535
- export type QueryFinancialAgentError = QueryFinancialAgentErrors[keyof QueryFinancialAgentErrors];
4536
- export type QueryFinancialAgentResponses = {
4975
+ export type GetAgentMetadataErrors = {
4537
4976
  /**
4538
- * Successful financial analysis
4977
+ * Agent type not found
4539
4978
  */
4540
- 200: AgentResponse;
4979
+ 404: unknown;
4980
+ /**
4981
+ * Validation Error
4982
+ */
4983
+ 422: HttpValidationError;
4984
+ };
4985
+ export type GetAgentMetadataError = GetAgentMetadataErrors[keyof GetAgentMetadataErrors];
4986
+ export type GetAgentMetadataResponses = {
4987
+ /**
4988
+ * Agent metadata retrieved successfully
4989
+ */
4990
+ 200: AgentMetadataResponse;
4991
+ };
4992
+ export type GetAgentMetadataResponse = GetAgentMetadataResponses[keyof GetAgentMetadataResponses];
4993
+ export type RecommendAgentData = {
4994
+ body: AgentRecommendationRequest;
4995
+ headers?: {
4996
+ /**
4997
+ * Authorization
4998
+ */
4999
+ authorization?: string | null;
5000
+ };
5001
+ path: {
5002
+ /**
5003
+ * Graph Id
5004
+ * Graph database identifier
5005
+ */
5006
+ graph_id: string;
5007
+ };
5008
+ query?: never;
5009
+ url: '/v1/{graph_id}/agent/recommend';
5010
+ };
5011
+ export type RecommendAgentErrors = {
5012
+ /**
5013
+ * Invalid recommendation request
5014
+ */
5015
+ 400: unknown;
5016
+ /**
5017
+ * Validation Error
5018
+ */
5019
+ 422: HttpValidationError;
5020
+ };
5021
+ export type RecommendAgentError = RecommendAgentErrors[keyof RecommendAgentErrors];
5022
+ export type RecommendAgentResponses = {
5023
+ /**
5024
+ * Recommendations generated successfully
5025
+ */
5026
+ 200: AgentRecommendationResponse;
4541
5027
  };
4542
- export type QueryFinancialAgentResponse = QueryFinancialAgentResponses[keyof QueryFinancialAgentResponses];
5028
+ export type RecommendAgentResponse = RecommendAgentResponses[keyof RecommendAgentResponses];
4543
5029
  export type ListMcpToolsData = {
4544
5030
  body?: never;
4545
5031
  headers?: {
@@ -5625,7 +6111,7 @@ export type CheckCreditBalanceData = {
5625
6111
  * Base Cost
5626
6112
  * Custom base cost (uses default if not provided)
5627
6113
  */
5628
- base_cost?: number | null;
6114
+ base_cost?: number | string | null;
5629
6115
  };
5630
6116
  url: '/v1/{graph_id}/credits/balance/check';
5631
6117
  };
@@ -5951,7 +6437,7 @@ export type CreateSubgraphResponses = {
5951
6437
  };
5952
6438
  export type CreateSubgraphResponse = CreateSubgraphResponses[keyof CreateSubgraphResponses];
5953
6439
  export type DeleteSubgraphData = {
5954
- body?: DeleteSubgraphRequest;
6440
+ body: DeleteSubgraphRequest;
5955
6441
  headers?: {
5956
6442
  /**
5957
6443
  * Authorization