@vectorize-io/hindsight-client 0.3.0 → 0.4.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.
@@ -4,7 +4,7 @@ export type ClientOptions = {
4
4
  /**
5
5
  * AddBackgroundRequest
6
6
  *
7
- * Request model for adding/merging background information.
7
+ * Request model for adding/merging background information. Deprecated: use SetMissionRequest instead.
8
8
  */
9
9
  export type AddBackgroundRequest = {
10
10
  /**
@@ -16,20 +16,41 @@ export type AddBackgroundRequest = {
16
16
  /**
17
17
  * Update Disposition
18
18
  *
19
- * If true, infer disposition traits from the merged background (default: true)
19
+ * Deprecated - disposition is no longer auto-inferred from mission
20
20
  */
21
21
  update_disposition?: boolean;
22
22
  };
23
+ /**
24
+ * AsyncOperationSubmitResponse
25
+ *
26
+ * Response model for submitting an async operation.
27
+ */
28
+ export type AsyncOperationSubmitResponse = {
29
+ /**
30
+ * Operation Id
31
+ */
32
+ operation_id: string;
33
+ /**
34
+ * Status
35
+ */
36
+ status: string;
37
+ };
23
38
  /**
24
39
  * BackgroundResponse
25
40
  *
26
- * Response model for background update.
41
+ * Response model for background update. Deprecated: use MissionResponse instead.
27
42
  */
28
43
  export type BackgroundResponse = {
44
+ /**
45
+ * Mission
46
+ */
47
+ mission: string;
29
48
  /**
30
49
  * Background
50
+ *
51
+ * Deprecated: same as mission
31
52
  */
32
- background: string;
53
+ background?: string | null;
33
54
  disposition?: DispositionTraits | null;
34
55
  };
35
56
  /**
@@ -48,9 +69,9 @@ export type BankListItem = {
48
69
  name?: string | null;
49
70
  disposition: DispositionTraits;
50
71
  /**
51
- * Background
72
+ * Mission
52
73
  */
53
- background?: string | null;
74
+ mission?: string | null;
54
75
  /**
55
76
  * Created At
56
77
  */
@@ -86,10 +107,18 @@ export type BankProfileResponse = {
86
107
  */
87
108
  name: string;
88
109
  disposition: DispositionTraits;
110
+ /**
111
+ * Mission
112
+ *
113
+ * The agent's mission - who they are and what they're trying to accomplish
114
+ */
115
+ mission: string;
89
116
  /**
90
117
  * Background
118
+ *
119
+ * Deprecated: use mission instead
91
120
  */
92
- background: string;
121
+ background?: string | null;
93
122
  };
94
123
  /**
95
124
  * BankStatsResponse
@@ -147,6 +176,24 @@ export type BankStatsResponse = {
147
176
  * Failed Operations
148
177
  */
149
178
  failed_operations: number;
179
+ /**
180
+ * Last Consolidated At
181
+ *
182
+ * When consolidation last ran (ISO format)
183
+ */
184
+ last_consolidated_at?: string | null;
185
+ /**
186
+ * Pending Consolidation
187
+ *
188
+ * Number of memories not yet processed into observations
189
+ */
190
+ pending_consolidation?: number;
191
+ /**
192
+ * Total Observations
193
+ *
194
+ * Total number of observations
195
+ */
196
+ total_observations?: number;
150
197
  };
151
198
  /**
152
199
  * Budget
@@ -242,6 +289,25 @@ export type ChunkResponse = {
242
289
  */
243
290
  created_at: string;
244
291
  };
292
+ /**
293
+ * ConsolidationResponse
294
+ *
295
+ * Response model for consolidation trigger endpoint.
296
+ */
297
+ export type ConsolidationResponse = {
298
+ /**
299
+ * Operation Id
300
+ *
301
+ * ID of the async consolidation operation
302
+ */
303
+ operation_id: string;
304
+ /**
305
+ * Deduplicated
306
+ *
307
+ * True if an existing pending task was reused
308
+ */
309
+ deduplicated?: boolean;
310
+ };
245
311
  /**
246
312
  * CreateBankRequest
247
313
  *
@@ -253,11 +319,104 @@ export type CreateBankRequest = {
253
319
  */
254
320
  name?: string | null;
255
321
  disposition?: DispositionTraits | null;
322
+ /**
323
+ * Mission
324
+ *
325
+ * The agent's mission
326
+ */
327
+ mission?: string | null;
256
328
  /**
257
329
  * Background
330
+ *
331
+ * Deprecated: use mission instead
258
332
  */
259
333
  background?: string | null;
260
334
  };
335
+ /**
336
+ * CreateDirectiveRequest
337
+ *
338
+ * Request model for creating a directive.
339
+ */
340
+ export type CreateDirectiveRequest = {
341
+ /**
342
+ * Name
343
+ *
344
+ * Human-readable name for the directive
345
+ */
346
+ name: string;
347
+ /**
348
+ * Content
349
+ *
350
+ * The directive text to inject into prompts
351
+ */
352
+ content: string;
353
+ /**
354
+ * Priority
355
+ *
356
+ * Higher priority directives are injected first
357
+ */
358
+ priority?: number;
359
+ /**
360
+ * Is Active
361
+ *
362
+ * Whether this directive is active
363
+ */
364
+ is_active?: boolean;
365
+ /**
366
+ * Tags
367
+ *
368
+ * Tags for filtering
369
+ */
370
+ tags?: Array<string>;
371
+ };
372
+ /**
373
+ * CreateMentalModelRequest
374
+ *
375
+ * Request model for creating a mental model.
376
+ */
377
+ export type CreateMentalModelRequest = {
378
+ /**
379
+ * Name
380
+ *
381
+ * Human-readable name for the mental model
382
+ */
383
+ name: string;
384
+ /**
385
+ * Source Query
386
+ *
387
+ * The query to run to generate content
388
+ */
389
+ source_query: string;
390
+ /**
391
+ * Tags
392
+ *
393
+ * Tags for scoped visibility
394
+ */
395
+ tags?: Array<string>;
396
+ /**
397
+ * Max Tokens
398
+ *
399
+ * Maximum tokens for generated content
400
+ */
401
+ max_tokens?: number;
402
+ /**
403
+ * Trigger settings
404
+ */
405
+ trigger?: MentalModelTrigger;
406
+ };
407
+ /**
408
+ * CreateMentalModelResponse
409
+ *
410
+ * Response model for mental model creation.
411
+ */
412
+ export type CreateMentalModelResponse = {
413
+ /**
414
+ * Operation Id
415
+ *
416
+ * Operation ID to track progress
417
+ */
418
+ operation_id: string;
419
+ };
261
420
  /**
262
421
  * DeleteDocumentResponse
263
422
  *
@@ -300,6 +459,60 @@ export type DeleteResponse = {
300
459
  */
301
460
  deleted_count?: number | null;
302
461
  };
462
+ /**
463
+ * DirectiveListResponse
464
+ *
465
+ * Response model for listing directives.
466
+ */
467
+ export type DirectiveListResponse = {
468
+ /**
469
+ * Items
470
+ */
471
+ items: Array<DirectiveResponse>;
472
+ };
473
+ /**
474
+ * DirectiveResponse
475
+ *
476
+ * Response model for a directive.
477
+ */
478
+ export type DirectiveResponse = {
479
+ /**
480
+ * Id
481
+ */
482
+ id: string;
483
+ /**
484
+ * Bank Id
485
+ */
486
+ bank_id: string;
487
+ /**
488
+ * Name
489
+ */
490
+ name: string;
491
+ /**
492
+ * Content
493
+ */
494
+ content: string;
495
+ /**
496
+ * Priority
497
+ */
498
+ priority?: number;
499
+ /**
500
+ * Is Active
501
+ */
502
+ is_active?: boolean;
503
+ /**
504
+ * Tags
505
+ */
506
+ tags?: Array<string>;
507
+ /**
508
+ * Created At
509
+ */
510
+ created_at?: string | null;
511
+ /**
512
+ * Updated At
513
+ */
514
+ updated_at?: string | null;
515
+ };
303
516
  /**
304
517
  * DispositionTraits
305
518
  *
@@ -533,6 +746,31 @@ export type EntityStateResponse = {
533
746
  export type FactsIncludeOptions = {
534
747
  [key: string]: unknown;
535
748
  };
749
+ /**
750
+ * FeaturesInfo
751
+ *
752
+ * Feature flags indicating which capabilities are enabled.
753
+ */
754
+ export type FeaturesInfo = {
755
+ /**
756
+ * Observations
757
+ *
758
+ * Whether observations (auto-consolidation) are enabled
759
+ */
760
+ observations: boolean;
761
+ /**
762
+ * Mcp
763
+ *
764
+ * Whether MCP (Model Context Protocol) server is enabled
765
+ */
766
+ mcp: boolean;
767
+ /**
768
+ * Worker
769
+ *
770
+ * Whether the background worker is enabled
771
+ */
772
+ worker: boolean;
773
+ };
536
774
  /**
537
775
  * GraphDataResponse
538
776
  *
@@ -706,6 +944,82 @@ export type MemoryItem = {
706
944
  */
707
945
  tags?: Array<string> | null;
708
946
  };
947
+ /**
948
+ * MentalModelListResponse
949
+ *
950
+ * Response model for listing mental models.
951
+ */
952
+ export type MentalModelListResponse = {
953
+ /**
954
+ * Items
955
+ */
956
+ items: Array<MentalModelResponse>;
957
+ };
958
+ /**
959
+ * MentalModelResponse
960
+ *
961
+ * Response model for a mental model (stored reflect response).
962
+ */
963
+ export type MentalModelResponse = {
964
+ /**
965
+ * Id
966
+ */
967
+ id: string;
968
+ /**
969
+ * Bank Id
970
+ */
971
+ bank_id: string;
972
+ /**
973
+ * Name
974
+ */
975
+ name: string;
976
+ /**
977
+ * Source Query
978
+ */
979
+ source_query: string;
980
+ /**
981
+ * Content
982
+ */
983
+ content: string;
984
+ /**
985
+ * Tags
986
+ */
987
+ tags?: Array<string>;
988
+ /**
989
+ * Max Tokens
990
+ */
991
+ max_tokens?: number;
992
+ trigger?: MentalModelTrigger;
993
+ /**
994
+ * Last Refreshed At
995
+ */
996
+ last_refreshed_at?: string | null;
997
+ /**
998
+ * Created At
999
+ */
1000
+ created_at?: string | null;
1001
+ /**
1002
+ * Reflect Response
1003
+ *
1004
+ * Full reflect API response payload including based_on facts and observations
1005
+ */
1006
+ reflect_response?: {
1007
+ [key: string]: unknown;
1008
+ } | null;
1009
+ };
1010
+ /**
1011
+ * MentalModelTrigger
1012
+ *
1013
+ * Trigger settings for a mental model.
1014
+ */
1015
+ export type MentalModelTrigger = {
1016
+ /**
1017
+ * Refresh After Consolidation
1018
+ *
1019
+ * If true, refresh this mental model after observations consolidation (real-time mode)
1020
+ */
1021
+ refresh_after_consolidation?: boolean;
1022
+ };
709
1023
  /**
710
1024
  * OperationResponse
711
1025
  *
@@ -727,7 +1041,7 @@ export type OperationResponse = {
727
1041
  /**
728
1042
  * Document Id
729
1043
  */
730
- document_id: string | null;
1044
+ document_id?: string | null;
731
1045
  /**
732
1046
  * Created At
733
1047
  */
@@ -742,52 +1056,99 @@ export type OperationResponse = {
742
1056
  error_message: string | null;
743
1057
  };
744
1058
  /**
745
- * OperationsListResponse
1059
+ * OperationStatusResponse
746
1060
  *
747
- * Response model for list operations endpoint.
1061
+ * Response model for getting a single operation status.
748
1062
  */
749
- export type OperationsListResponse = {
1063
+ export type OperationStatusResponse = {
750
1064
  /**
751
- * Bank Id
1065
+ * Operation Id
752
1066
  */
753
- bank_id: string;
1067
+ operation_id: string;
754
1068
  /**
755
- * Operations
1069
+ * Status
756
1070
  */
757
- operations: Array<OperationResponse>;
758
- };
759
- /**
760
- * RecallRequest
761
- *
762
- * Request model for recall endpoint.
763
- */
764
- export type RecallRequest = {
1071
+ status: "pending" | "completed" | "failed" | "not_found";
765
1072
  /**
766
- * Query
1073
+ * Operation Type
767
1074
  */
768
- query: string;
1075
+ operation_type?: string | null;
769
1076
  /**
770
- * Types
771
- *
772
- * List of fact types to recall (defaults to all if not specified)
1077
+ * Created At
773
1078
  */
774
- types?: Array<string> | null;
775
- budget?: Budget;
1079
+ created_at?: string | null;
776
1080
  /**
777
- * Max Tokens
1081
+ * Updated At
778
1082
  */
779
- max_tokens?: number;
1083
+ updated_at?: string | null;
780
1084
  /**
781
- * Trace
1085
+ * Completed At
782
1086
  */
783
- trace?: boolean;
1087
+ completed_at?: string | null;
784
1088
  /**
785
- * Query Timestamp
786
- *
787
- * ISO format date string (e.g., '2023-05-30T23:40:00')
1089
+ * Error Message
788
1090
  */
789
- query_timestamp?: string | null;
790
- /**
1091
+ error_message?: string | null;
1092
+ };
1093
+ /**
1094
+ * OperationsListResponse
1095
+ *
1096
+ * Response model for list operations endpoint.
1097
+ */
1098
+ export type OperationsListResponse = {
1099
+ /**
1100
+ * Bank Id
1101
+ */
1102
+ bank_id: string;
1103
+ /**
1104
+ * Total
1105
+ */
1106
+ total: number;
1107
+ /**
1108
+ * Limit
1109
+ */
1110
+ limit: number;
1111
+ /**
1112
+ * Offset
1113
+ */
1114
+ offset: number;
1115
+ /**
1116
+ * Operations
1117
+ */
1118
+ operations: Array<OperationResponse>;
1119
+ };
1120
+ /**
1121
+ * RecallRequest
1122
+ *
1123
+ * Request model for recall endpoint.
1124
+ */
1125
+ export type RecallRequest = {
1126
+ /**
1127
+ * Query
1128
+ */
1129
+ query: string;
1130
+ /**
1131
+ * Types
1132
+ *
1133
+ * List of fact types to recall: 'world', 'experience', 'observation'. Defaults to world and experience if not specified. Note: 'opinion' is accepted but ignored (opinions are excluded from recall).
1134
+ */
1135
+ types?: Array<string> | null;
1136
+ budget?: Budget;
1137
+ /**
1138
+ * Max Tokens
1139
+ */
1140
+ max_tokens?: number;
1141
+ /**
1142
+ * Trace
1143
+ */
1144
+ trace?: boolean;
1145
+ /**
1146
+ * Query Timestamp
1147
+ *
1148
+ * ISO format date string (e.g., '2023-05-30T23:40:00')
1149
+ */
1150
+ query_timestamp?: string | null;
1151
+ /**
791
1152
  * Options for including additional data (entities are included by default)
792
1153
  */
793
1154
  include?: IncludeOptions;
@@ -894,6 +1255,56 @@ export type RecallResult = {
894
1255
  */
895
1256
  tags?: Array<string> | null;
896
1257
  };
1258
+ /**
1259
+ * ReflectBasedOn
1260
+ *
1261
+ * Evidence the response is based on: memories, mental models, and directives.
1262
+ */
1263
+ export type ReflectBasedOn = {
1264
+ /**
1265
+ * Memories
1266
+ *
1267
+ * Memory facts used to generate the response
1268
+ */
1269
+ memories?: Array<ReflectFact>;
1270
+ /**
1271
+ * Mental Models
1272
+ *
1273
+ * Mental models used during reflection
1274
+ */
1275
+ mental_models?: Array<ReflectMentalModel>;
1276
+ /**
1277
+ * Directives
1278
+ *
1279
+ * Directives applied during reflection
1280
+ */
1281
+ directives?: Array<ReflectDirective>;
1282
+ };
1283
+ /**
1284
+ * ReflectDirective
1285
+ *
1286
+ * A directive applied during reflect.
1287
+ */
1288
+ export type ReflectDirective = {
1289
+ /**
1290
+ * Id
1291
+ *
1292
+ * Directive ID
1293
+ */
1294
+ id: string;
1295
+ /**
1296
+ * Name
1297
+ *
1298
+ * Directive name
1299
+ */
1300
+ name: string;
1301
+ /**
1302
+ * Content
1303
+ *
1304
+ * Directive content
1305
+ */
1306
+ content: string;
1307
+ };
897
1308
  /**
898
1309
  * ReflectFact
899
1310
  *
@@ -935,6 +1346,54 @@ export type ReflectIncludeOptions = {
935
1346
  * Include facts that the answer is based on. Set to {} to enable, null to disable (default: disabled).
936
1347
  */
937
1348
  facts?: FactsIncludeOptions | null;
1349
+ /**
1350
+ * Include tool calls trace. Set to {} for full trace (input+output), {output: false} for inputs only.
1351
+ */
1352
+ tool_calls?: ToolCallsIncludeOptions | null;
1353
+ };
1354
+ /**
1355
+ * ReflectLLMCall
1356
+ *
1357
+ * An LLM call made during reflect agent execution.
1358
+ */
1359
+ export type ReflectLlmCall = {
1360
+ /**
1361
+ * Scope
1362
+ *
1363
+ * Call scope: agent_1, agent_2, final, etc.
1364
+ */
1365
+ scope: string;
1366
+ /**
1367
+ * Duration Ms
1368
+ *
1369
+ * Execution time in milliseconds
1370
+ */
1371
+ duration_ms: number;
1372
+ };
1373
+ /**
1374
+ * ReflectMentalModel
1375
+ *
1376
+ * A mental model used during reflect.
1377
+ */
1378
+ export type ReflectMentalModel = {
1379
+ /**
1380
+ * Id
1381
+ *
1382
+ * Mental model ID
1383
+ */
1384
+ id: string;
1385
+ /**
1386
+ * Text
1387
+ *
1388
+ * Mental model content
1389
+ */
1390
+ text: string;
1391
+ /**
1392
+ * Context
1393
+ *
1394
+ * Additional context
1395
+ */
1396
+ context?: string | null;
938
1397
  };
939
1398
  /**
940
1399
  * ReflectRequest
@@ -949,6 +1408,10 @@ export type ReflectRequest = {
949
1408
  budget?: Budget;
950
1409
  /**
951
1410
  * Context
1411
+ *
1412
+ * DEPRECATED: Additional context is now concatenated with the query. Pass context directly in the query field instead. If provided, it will be appended to the query for backward compatibility.
1413
+ *
1414
+ * @deprecated
952
1415
  */
953
1416
  context?: string | null;
954
1417
  /**
@@ -993,9 +1456,9 @@ export type ReflectResponse = {
993
1456
  */
994
1457
  text: string;
995
1458
  /**
996
- * Based On
1459
+ * Evidence used to generate the response. Only present when include.facts is set.
997
1460
  */
998
- based_on?: Array<ReflectFact>;
1461
+ based_on?: ReflectBasedOn | null;
999
1462
  /**
1000
1463
  * Structured Output
1001
1464
  *
@@ -1008,6 +1471,70 @@ export type ReflectResponse = {
1008
1471
  * Token usage metrics for LLM calls during reflection.
1009
1472
  */
1010
1473
  usage?: TokenUsage | null;
1474
+ /**
1475
+ * Execution trace of tool and LLM calls. Only present when include.tool_calls is set.
1476
+ */
1477
+ trace?: ReflectTrace | null;
1478
+ };
1479
+ /**
1480
+ * ReflectToolCall
1481
+ *
1482
+ * A tool call made during reflect agent execution.
1483
+ */
1484
+ export type ReflectToolCall = {
1485
+ /**
1486
+ * Tool
1487
+ *
1488
+ * Tool name: lookup, recall, learn, expand
1489
+ */
1490
+ tool: string;
1491
+ /**
1492
+ * Input
1493
+ *
1494
+ * Tool input parameters
1495
+ */
1496
+ input: {
1497
+ [key: string]: unknown;
1498
+ };
1499
+ /**
1500
+ * Output
1501
+ *
1502
+ * Tool output (only included when include.tool_calls.output is true)
1503
+ */
1504
+ output?: {
1505
+ [key: string]: unknown;
1506
+ } | null;
1507
+ /**
1508
+ * Duration Ms
1509
+ *
1510
+ * Execution time in milliseconds
1511
+ */
1512
+ duration_ms: number;
1513
+ /**
1514
+ * Iteration
1515
+ *
1516
+ * Iteration number (1-based) when this tool was called
1517
+ */
1518
+ iteration?: number;
1519
+ };
1520
+ /**
1521
+ * ReflectTrace
1522
+ *
1523
+ * Execution trace of LLM and tool calls during reflection.
1524
+ */
1525
+ export type ReflectTrace = {
1526
+ /**
1527
+ * Tool Calls
1528
+ *
1529
+ * Tool calls made during reflection
1530
+ */
1531
+ tool_calls?: Array<ReflectToolCall>;
1532
+ /**
1533
+ * Llm Calls
1534
+ *
1535
+ * LLM calls made during reflection
1536
+ */
1537
+ llm_calls?: Array<ReflectLlmCall>;
1011
1538
  };
1012
1539
  /**
1013
1540
  * RetainRequest
@@ -1114,6 +1641,56 @@ export type TokenUsage = {
1114
1641
  */
1115
1642
  total_tokens?: number;
1116
1643
  };
1644
+ /**
1645
+ * ToolCallsIncludeOptions
1646
+ *
1647
+ * Options for including tool calls in reflect results.
1648
+ */
1649
+ export type ToolCallsIncludeOptions = {
1650
+ /**
1651
+ * Output
1652
+ *
1653
+ * Include tool outputs in the trace. Set to false to only include inputs (smaller payload).
1654
+ */
1655
+ output?: boolean;
1656
+ };
1657
+ /**
1658
+ * UpdateDirectiveRequest
1659
+ *
1660
+ * Request model for updating a directive.
1661
+ */
1662
+ export type UpdateDirectiveRequest = {
1663
+ /**
1664
+ * Name
1665
+ *
1666
+ * New name
1667
+ */
1668
+ name?: string | null;
1669
+ /**
1670
+ * Content
1671
+ *
1672
+ * New content
1673
+ */
1674
+ content?: string | null;
1675
+ /**
1676
+ * Priority
1677
+ *
1678
+ * New priority
1679
+ */
1680
+ priority?: number | null;
1681
+ /**
1682
+ * Is Active
1683
+ *
1684
+ * New active status
1685
+ */
1686
+ is_active?: boolean | null;
1687
+ /**
1688
+ * Tags
1689
+ *
1690
+ * New tags
1691
+ */
1692
+ tags?: Array<string> | null;
1693
+ };
1117
1694
  /**
1118
1695
  * UpdateDispositionRequest
1119
1696
  *
@@ -1122,6 +1699,41 @@ export type TokenUsage = {
1122
1699
  export type UpdateDispositionRequest = {
1123
1700
  disposition: DispositionTraits;
1124
1701
  };
1702
+ /**
1703
+ * UpdateMentalModelRequest
1704
+ *
1705
+ * Request model for updating a mental model.
1706
+ */
1707
+ export type UpdateMentalModelRequest = {
1708
+ /**
1709
+ * Name
1710
+ *
1711
+ * New name for the mental model
1712
+ */
1713
+ name?: string | null;
1714
+ /**
1715
+ * Source Query
1716
+ *
1717
+ * New source query for the mental model
1718
+ */
1719
+ source_query?: string | null;
1720
+ /**
1721
+ * Max Tokens
1722
+ *
1723
+ * Maximum tokens for generated content
1724
+ */
1725
+ max_tokens?: number | null;
1726
+ /**
1727
+ * Tags
1728
+ *
1729
+ * Tags for scoped visibility
1730
+ */
1731
+ tags?: Array<string> | null;
1732
+ /**
1733
+ * Trigger settings
1734
+ */
1735
+ trigger?: MentalModelTrigger | null;
1736
+ };
1125
1737
  /**
1126
1738
  * ValidationError
1127
1739
  */
@@ -1139,6 +1751,23 @@ export type ValidationError = {
1139
1751
  */
1140
1752
  type: string;
1141
1753
  };
1754
+ /**
1755
+ * VersionResponse
1756
+ *
1757
+ * Response model for the version/info endpoint.
1758
+ */
1759
+ export type VersionResponse = {
1760
+ /**
1761
+ * Api Version
1762
+ *
1763
+ * API version string
1764
+ */
1765
+ api_version: string;
1766
+ /**
1767
+ * Enabled feature flags
1768
+ */
1769
+ features: FeaturesInfo;
1770
+ };
1142
1771
  export type HealthEndpointHealthGetData = {
1143
1772
  body?: never;
1144
1773
  path?: never;
@@ -1151,6 +1780,19 @@ export type HealthEndpointHealthGetResponses = {
1151
1780
  */
1152
1781
  200: unknown;
1153
1782
  };
1783
+ export type GetVersionData = {
1784
+ body?: never;
1785
+ path?: never;
1786
+ query?: never;
1787
+ url: "/version";
1788
+ };
1789
+ export type GetVersionResponses = {
1790
+ /**
1791
+ * Successful Response
1792
+ */
1793
+ 200: VersionResponse;
1794
+ };
1795
+ export type GetVersionResponse = GetVersionResponses[keyof GetVersionResponses];
1154
1796
  export type MetricsEndpointMetricsGetData = {
1155
1797
  body?: never;
1156
1798
  path?: never;
@@ -1518,7 +2160,7 @@ export type RegenerateEntityObservationsResponses = {
1518
2160
  200: EntityDetailResponse;
1519
2161
  };
1520
2162
  export type RegenerateEntityObservationsResponse = RegenerateEntityObservationsResponses[keyof RegenerateEntityObservationsResponses];
1521
- export type ListDocumentsData = {
2163
+ export type ListMentalModelsData = {
1522
2164
  body?: never;
1523
2165
  headers?: {
1524
2166
  /**
@@ -1534,9 +2176,17 @@ export type ListDocumentsData = {
1534
2176
  };
1535
2177
  query?: {
1536
2178
  /**
1537
- * Q
2179
+ * Tags
2180
+ *
2181
+ * Filter by tags
1538
2182
  */
1539
- q?: string | null;
2183
+ tags?: Array<string> | null;
2184
+ /**
2185
+ * Tags Match
2186
+ *
2187
+ * How to match tags
2188
+ */
2189
+ tags_match?: "any" | "all" | "exact";
1540
2190
  /**
1541
2191
  * Limit
1542
2192
  */
@@ -1546,24 +2196,24 @@ export type ListDocumentsData = {
1546
2196
  */
1547
2197
  offset?: number;
1548
2198
  };
1549
- url: "/v1/default/banks/{bank_id}/documents";
2199
+ url: "/v1/default/banks/{bank_id}/mental-models";
1550
2200
  };
1551
- export type ListDocumentsErrors = {
2201
+ export type ListMentalModelsErrors = {
1552
2202
  /**
1553
2203
  * Validation Error
1554
2204
  */
1555
2205
  422: HttpValidationError;
1556
2206
  };
1557
- export type ListDocumentsError = ListDocumentsErrors[keyof ListDocumentsErrors];
1558
- export type ListDocumentsResponses = {
2207
+ export type ListMentalModelsError = ListMentalModelsErrors[keyof ListMentalModelsErrors];
2208
+ export type ListMentalModelsResponses = {
1559
2209
  /**
1560
2210
  * Successful Response
1561
2211
  */
1562
- 200: ListDocumentsResponse;
2212
+ 200: MentalModelListResponse;
1563
2213
  };
1564
- export type ListDocumentsResponse2 = ListDocumentsResponses[keyof ListDocumentsResponses];
1565
- export type DeleteDocumentData = {
1566
- body?: never;
2214
+ export type ListMentalModelsResponse = ListMentalModelsResponses[keyof ListMentalModelsResponses];
2215
+ export type CreateMentalModelData = {
2216
+ body: CreateMentalModelRequest;
1567
2217
  headers?: {
1568
2218
  /**
1569
2219
  * Authorization
@@ -1575,29 +2225,436 @@ export type DeleteDocumentData = {
1575
2225
  * Bank Id
1576
2226
  */
1577
2227
  bank_id: string;
1578
- /**
1579
- * Document Id
1580
- */
1581
- document_id: string;
1582
2228
  };
1583
2229
  query?: never;
1584
- url: "/v1/default/banks/{bank_id}/documents/{document_id}";
2230
+ url: "/v1/default/banks/{bank_id}/mental-models";
1585
2231
  };
1586
- export type DeleteDocumentErrors = {
2232
+ export type CreateMentalModelErrors = {
1587
2233
  /**
1588
2234
  * Validation Error
1589
2235
  */
1590
2236
  422: HttpValidationError;
1591
2237
  };
1592
- export type DeleteDocumentError = DeleteDocumentErrors[keyof DeleteDocumentErrors];
1593
- export type DeleteDocumentResponses = {
2238
+ export type CreateMentalModelError = CreateMentalModelErrors[keyof CreateMentalModelErrors];
2239
+ export type CreateMentalModelResponses = {
1594
2240
  /**
1595
2241
  * Successful Response
1596
2242
  */
1597
- 200: DeleteDocumentResponse;
2243
+ 200: CreateMentalModelResponse;
1598
2244
  };
1599
- export type DeleteDocumentResponse2 = DeleteDocumentResponses[keyof DeleteDocumentResponses];
1600
- export type GetDocumentData = {
2245
+ export type CreateMentalModelResponse2 = CreateMentalModelResponses[keyof CreateMentalModelResponses];
2246
+ export type DeleteMentalModelData = {
2247
+ body?: never;
2248
+ headers?: {
2249
+ /**
2250
+ * Authorization
2251
+ */
2252
+ authorization?: string | null;
2253
+ };
2254
+ path: {
2255
+ /**
2256
+ * Bank Id
2257
+ */
2258
+ bank_id: string;
2259
+ /**
2260
+ * Mental Model Id
2261
+ */
2262
+ mental_model_id: string;
2263
+ };
2264
+ query?: never;
2265
+ url: "/v1/default/banks/{bank_id}/mental-models/{mental_model_id}";
2266
+ };
2267
+ export type DeleteMentalModelErrors = {
2268
+ /**
2269
+ * Validation Error
2270
+ */
2271
+ 422: HttpValidationError;
2272
+ };
2273
+ export type DeleteMentalModelError = DeleteMentalModelErrors[keyof DeleteMentalModelErrors];
2274
+ export type DeleteMentalModelResponses = {
2275
+ /**
2276
+ * Successful Response
2277
+ */
2278
+ 200: unknown;
2279
+ };
2280
+ export type GetMentalModelData = {
2281
+ body?: never;
2282
+ headers?: {
2283
+ /**
2284
+ * Authorization
2285
+ */
2286
+ authorization?: string | null;
2287
+ };
2288
+ path: {
2289
+ /**
2290
+ * Bank Id
2291
+ */
2292
+ bank_id: string;
2293
+ /**
2294
+ * Mental Model Id
2295
+ */
2296
+ mental_model_id: string;
2297
+ };
2298
+ query?: never;
2299
+ url: "/v1/default/banks/{bank_id}/mental-models/{mental_model_id}";
2300
+ };
2301
+ export type GetMentalModelErrors = {
2302
+ /**
2303
+ * Validation Error
2304
+ */
2305
+ 422: HttpValidationError;
2306
+ };
2307
+ export type GetMentalModelError = GetMentalModelErrors[keyof GetMentalModelErrors];
2308
+ export type GetMentalModelResponses = {
2309
+ /**
2310
+ * Successful Response
2311
+ */
2312
+ 200: MentalModelResponse;
2313
+ };
2314
+ export type GetMentalModelResponse = GetMentalModelResponses[keyof GetMentalModelResponses];
2315
+ export type UpdateMentalModelData = {
2316
+ body: UpdateMentalModelRequest;
2317
+ headers?: {
2318
+ /**
2319
+ * Authorization
2320
+ */
2321
+ authorization?: string | null;
2322
+ };
2323
+ path: {
2324
+ /**
2325
+ * Bank Id
2326
+ */
2327
+ bank_id: string;
2328
+ /**
2329
+ * Mental Model Id
2330
+ */
2331
+ mental_model_id: string;
2332
+ };
2333
+ query?: never;
2334
+ url: "/v1/default/banks/{bank_id}/mental-models/{mental_model_id}";
2335
+ };
2336
+ export type UpdateMentalModelErrors = {
2337
+ /**
2338
+ * Validation Error
2339
+ */
2340
+ 422: HttpValidationError;
2341
+ };
2342
+ export type UpdateMentalModelError = UpdateMentalModelErrors[keyof UpdateMentalModelErrors];
2343
+ export type UpdateMentalModelResponses = {
2344
+ /**
2345
+ * Successful Response
2346
+ */
2347
+ 200: MentalModelResponse;
2348
+ };
2349
+ export type UpdateMentalModelResponse = UpdateMentalModelResponses[keyof UpdateMentalModelResponses];
2350
+ export type RefreshMentalModelData = {
2351
+ body?: never;
2352
+ headers?: {
2353
+ /**
2354
+ * Authorization
2355
+ */
2356
+ authorization?: string | null;
2357
+ };
2358
+ path: {
2359
+ /**
2360
+ * Bank Id
2361
+ */
2362
+ bank_id: string;
2363
+ /**
2364
+ * Mental Model Id
2365
+ */
2366
+ mental_model_id: string;
2367
+ };
2368
+ query?: never;
2369
+ url: "/v1/default/banks/{bank_id}/mental-models/{mental_model_id}/refresh";
2370
+ };
2371
+ export type RefreshMentalModelErrors = {
2372
+ /**
2373
+ * Validation Error
2374
+ */
2375
+ 422: HttpValidationError;
2376
+ };
2377
+ export type RefreshMentalModelError = RefreshMentalModelErrors[keyof RefreshMentalModelErrors];
2378
+ export type RefreshMentalModelResponses = {
2379
+ /**
2380
+ * Successful Response
2381
+ */
2382
+ 200: AsyncOperationSubmitResponse;
2383
+ };
2384
+ export type RefreshMentalModelResponse = RefreshMentalModelResponses[keyof RefreshMentalModelResponses];
2385
+ export type ListDirectivesData = {
2386
+ body?: never;
2387
+ headers?: {
2388
+ /**
2389
+ * Authorization
2390
+ */
2391
+ authorization?: string | null;
2392
+ };
2393
+ path: {
2394
+ /**
2395
+ * Bank Id
2396
+ */
2397
+ bank_id: string;
2398
+ };
2399
+ query?: {
2400
+ /**
2401
+ * Tags
2402
+ *
2403
+ * Filter by tags
2404
+ */
2405
+ tags?: Array<string> | null;
2406
+ /**
2407
+ * Tags Match
2408
+ *
2409
+ * How to match tags
2410
+ */
2411
+ tags_match?: "any" | "all" | "exact";
2412
+ /**
2413
+ * Active Only
2414
+ *
2415
+ * Only return active directives
2416
+ */
2417
+ active_only?: boolean;
2418
+ /**
2419
+ * Limit
2420
+ */
2421
+ limit?: number;
2422
+ /**
2423
+ * Offset
2424
+ */
2425
+ offset?: number;
2426
+ };
2427
+ url: "/v1/default/banks/{bank_id}/directives";
2428
+ };
2429
+ export type ListDirectivesErrors = {
2430
+ /**
2431
+ * Validation Error
2432
+ */
2433
+ 422: HttpValidationError;
2434
+ };
2435
+ export type ListDirectivesError = ListDirectivesErrors[keyof ListDirectivesErrors];
2436
+ export type ListDirectivesResponses = {
2437
+ /**
2438
+ * Successful Response
2439
+ */
2440
+ 200: DirectiveListResponse;
2441
+ };
2442
+ export type ListDirectivesResponse = ListDirectivesResponses[keyof ListDirectivesResponses];
2443
+ export type CreateDirectiveData = {
2444
+ body: CreateDirectiveRequest;
2445
+ headers?: {
2446
+ /**
2447
+ * Authorization
2448
+ */
2449
+ authorization?: string | null;
2450
+ };
2451
+ path: {
2452
+ /**
2453
+ * Bank Id
2454
+ */
2455
+ bank_id: string;
2456
+ };
2457
+ query?: never;
2458
+ url: "/v1/default/banks/{bank_id}/directives";
2459
+ };
2460
+ export type CreateDirectiveErrors = {
2461
+ /**
2462
+ * Validation Error
2463
+ */
2464
+ 422: HttpValidationError;
2465
+ };
2466
+ export type CreateDirectiveError = CreateDirectiveErrors[keyof CreateDirectiveErrors];
2467
+ export type CreateDirectiveResponses = {
2468
+ /**
2469
+ * Successful Response
2470
+ */
2471
+ 200: DirectiveResponse;
2472
+ };
2473
+ export type CreateDirectiveResponse = CreateDirectiveResponses[keyof CreateDirectiveResponses];
2474
+ export type DeleteDirectiveData = {
2475
+ body?: never;
2476
+ headers?: {
2477
+ /**
2478
+ * Authorization
2479
+ */
2480
+ authorization?: string | null;
2481
+ };
2482
+ path: {
2483
+ /**
2484
+ * Bank Id
2485
+ */
2486
+ bank_id: string;
2487
+ /**
2488
+ * Directive Id
2489
+ */
2490
+ directive_id: string;
2491
+ };
2492
+ query?: never;
2493
+ url: "/v1/default/banks/{bank_id}/directives/{directive_id}";
2494
+ };
2495
+ export type DeleteDirectiveErrors = {
2496
+ /**
2497
+ * Validation Error
2498
+ */
2499
+ 422: HttpValidationError;
2500
+ };
2501
+ export type DeleteDirectiveError = DeleteDirectiveErrors[keyof DeleteDirectiveErrors];
2502
+ export type DeleteDirectiveResponses = {
2503
+ /**
2504
+ * Successful Response
2505
+ */
2506
+ 200: unknown;
2507
+ };
2508
+ export type GetDirectiveData = {
2509
+ body?: never;
2510
+ headers?: {
2511
+ /**
2512
+ * Authorization
2513
+ */
2514
+ authorization?: string | null;
2515
+ };
2516
+ path: {
2517
+ /**
2518
+ * Bank Id
2519
+ */
2520
+ bank_id: string;
2521
+ /**
2522
+ * Directive Id
2523
+ */
2524
+ directive_id: string;
2525
+ };
2526
+ query?: never;
2527
+ url: "/v1/default/banks/{bank_id}/directives/{directive_id}";
2528
+ };
2529
+ export type GetDirectiveErrors = {
2530
+ /**
2531
+ * Validation Error
2532
+ */
2533
+ 422: HttpValidationError;
2534
+ };
2535
+ export type GetDirectiveError = GetDirectiveErrors[keyof GetDirectiveErrors];
2536
+ export type GetDirectiveResponses = {
2537
+ /**
2538
+ * Successful Response
2539
+ */
2540
+ 200: DirectiveResponse;
2541
+ };
2542
+ export type GetDirectiveResponse = GetDirectiveResponses[keyof GetDirectiveResponses];
2543
+ export type UpdateDirectiveData = {
2544
+ body: UpdateDirectiveRequest;
2545
+ headers?: {
2546
+ /**
2547
+ * Authorization
2548
+ */
2549
+ authorization?: string | null;
2550
+ };
2551
+ path: {
2552
+ /**
2553
+ * Bank Id
2554
+ */
2555
+ bank_id: string;
2556
+ /**
2557
+ * Directive Id
2558
+ */
2559
+ directive_id: string;
2560
+ };
2561
+ query?: never;
2562
+ url: "/v1/default/banks/{bank_id}/directives/{directive_id}";
2563
+ };
2564
+ export type UpdateDirectiveErrors = {
2565
+ /**
2566
+ * Validation Error
2567
+ */
2568
+ 422: HttpValidationError;
2569
+ };
2570
+ export type UpdateDirectiveError = UpdateDirectiveErrors[keyof UpdateDirectiveErrors];
2571
+ export type UpdateDirectiveResponses = {
2572
+ /**
2573
+ * Successful Response
2574
+ */
2575
+ 200: DirectiveResponse;
2576
+ };
2577
+ export type UpdateDirectiveResponse = UpdateDirectiveResponses[keyof UpdateDirectiveResponses];
2578
+ export type ListDocumentsData = {
2579
+ body?: never;
2580
+ headers?: {
2581
+ /**
2582
+ * Authorization
2583
+ */
2584
+ authorization?: string | null;
2585
+ };
2586
+ path: {
2587
+ /**
2588
+ * Bank Id
2589
+ */
2590
+ bank_id: string;
2591
+ };
2592
+ query?: {
2593
+ /**
2594
+ * Q
2595
+ */
2596
+ q?: string | null;
2597
+ /**
2598
+ * Limit
2599
+ */
2600
+ limit?: number;
2601
+ /**
2602
+ * Offset
2603
+ */
2604
+ offset?: number;
2605
+ };
2606
+ url: "/v1/default/banks/{bank_id}/documents";
2607
+ };
2608
+ export type ListDocumentsErrors = {
2609
+ /**
2610
+ * Validation Error
2611
+ */
2612
+ 422: HttpValidationError;
2613
+ };
2614
+ export type ListDocumentsError = ListDocumentsErrors[keyof ListDocumentsErrors];
2615
+ export type ListDocumentsResponses = {
2616
+ /**
2617
+ * Successful Response
2618
+ */
2619
+ 200: ListDocumentsResponse;
2620
+ };
2621
+ export type ListDocumentsResponse2 = ListDocumentsResponses[keyof ListDocumentsResponses];
2622
+ export type DeleteDocumentData = {
2623
+ body?: never;
2624
+ headers?: {
2625
+ /**
2626
+ * Authorization
2627
+ */
2628
+ authorization?: string | null;
2629
+ };
2630
+ path: {
2631
+ /**
2632
+ * Bank Id
2633
+ */
2634
+ bank_id: string;
2635
+ /**
2636
+ * Document Id
2637
+ */
2638
+ document_id: string;
2639
+ };
2640
+ query?: never;
2641
+ url: "/v1/default/banks/{bank_id}/documents/{document_id}";
2642
+ };
2643
+ export type DeleteDocumentErrors = {
2644
+ /**
2645
+ * Validation Error
2646
+ */
2647
+ 422: HttpValidationError;
2648
+ };
2649
+ export type DeleteDocumentError = DeleteDocumentErrors[keyof DeleteDocumentErrors];
2650
+ export type DeleteDocumentResponses = {
2651
+ /**
2652
+ * Successful Response
2653
+ */
2654
+ 200: DeleteDocumentResponse;
2655
+ };
2656
+ export type DeleteDocumentResponse2 = DeleteDocumentResponses[keyof DeleteDocumentResponses];
2657
+ export type GetDocumentData = {
1601
2658
  body?: never;
1602
2659
  headers?: {
1603
2660
  /**
@@ -1727,7 +2784,26 @@ export type ListOperationsData = {
1727
2784
  */
1728
2785
  bank_id: string;
1729
2786
  };
1730
- query?: never;
2787
+ query?: {
2788
+ /**
2789
+ * Status
2790
+ *
2791
+ * Filter by status: pending, completed, or failed
2792
+ */
2793
+ status?: string | null;
2794
+ /**
2795
+ * Limit
2796
+ *
2797
+ * Maximum number of operations to return
2798
+ */
2799
+ limit?: number;
2800
+ /**
2801
+ * Offset
2802
+ *
2803
+ * Number of operations to skip
2804
+ */
2805
+ offset?: number;
2806
+ };
1731
2807
  url: "/v1/default/banks/{bank_id}/operations";
1732
2808
  };
1733
2809
  export type ListOperationsErrors = {
@@ -1779,6 +2855,41 @@ export type CancelOperationResponses = {
1779
2855
  200: CancelOperationResponse;
1780
2856
  };
1781
2857
  export type CancelOperationResponse2 = CancelOperationResponses[keyof CancelOperationResponses];
2858
+ export type GetOperationStatusData = {
2859
+ body?: never;
2860
+ headers?: {
2861
+ /**
2862
+ * Authorization
2863
+ */
2864
+ authorization?: string | null;
2865
+ };
2866
+ path: {
2867
+ /**
2868
+ * Bank Id
2869
+ */
2870
+ bank_id: string;
2871
+ /**
2872
+ * Operation Id
2873
+ */
2874
+ operation_id: string;
2875
+ };
2876
+ query?: never;
2877
+ url: "/v1/default/banks/{bank_id}/operations/{operation_id}";
2878
+ };
2879
+ export type GetOperationStatusErrors = {
2880
+ /**
2881
+ * Validation Error
2882
+ */
2883
+ 422: HttpValidationError;
2884
+ };
2885
+ export type GetOperationStatusError = GetOperationStatusErrors[keyof GetOperationStatusErrors];
2886
+ export type GetOperationStatusResponses = {
2887
+ /**
2888
+ * Successful Response
2889
+ */
2890
+ 200: OperationStatusResponse;
2891
+ };
2892
+ export type GetOperationStatusResponse = GetOperationStatusResponses[keyof GetOperationStatusResponses];
1782
2893
  export type GetBankProfileData = {
1783
2894
  body?: never;
1784
2895
  headers?: {
@@ -1903,6 +3014,37 @@ export type DeleteBankResponses = {
1903
3014
  200: DeleteResponse;
1904
3015
  };
1905
3016
  export type DeleteBankResponse = DeleteBankResponses[keyof DeleteBankResponses];
3017
+ export type UpdateBankData = {
3018
+ body: CreateBankRequest;
3019
+ headers?: {
3020
+ /**
3021
+ * Authorization
3022
+ */
3023
+ authorization?: string | null;
3024
+ };
3025
+ path: {
3026
+ /**
3027
+ * Bank Id
3028
+ */
3029
+ bank_id: string;
3030
+ };
3031
+ query?: never;
3032
+ url: "/v1/default/banks/{bank_id}";
3033
+ };
3034
+ export type UpdateBankErrors = {
3035
+ /**
3036
+ * Validation Error
3037
+ */
3038
+ 422: HttpValidationError;
3039
+ };
3040
+ export type UpdateBankError = UpdateBankErrors[keyof UpdateBankErrors];
3041
+ export type UpdateBankResponses = {
3042
+ /**
3043
+ * Successful Response
3044
+ */
3045
+ 200: BankProfileResponse;
3046
+ };
3047
+ export type UpdateBankResponse = UpdateBankResponses[keyof UpdateBankResponses];
1906
3048
  export type CreateOrUpdateBankData = {
1907
3049
  body: CreateBankRequest;
1908
3050
  headers?: {
@@ -1934,6 +3076,68 @@ export type CreateOrUpdateBankResponses = {
1934
3076
  200: BankProfileResponse;
1935
3077
  };
1936
3078
  export type CreateOrUpdateBankResponse = CreateOrUpdateBankResponses[keyof CreateOrUpdateBankResponses];
3079
+ export type ClearObservationsData = {
3080
+ body?: never;
3081
+ headers?: {
3082
+ /**
3083
+ * Authorization
3084
+ */
3085
+ authorization?: string | null;
3086
+ };
3087
+ path: {
3088
+ /**
3089
+ * Bank Id
3090
+ */
3091
+ bank_id: string;
3092
+ };
3093
+ query?: never;
3094
+ url: "/v1/default/banks/{bank_id}/observations";
3095
+ };
3096
+ export type ClearObservationsErrors = {
3097
+ /**
3098
+ * Validation Error
3099
+ */
3100
+ 422: HttpValidationError;
3101
+ };
3102
+ export type ClearObservationsError = ClearObservationsErrors[keyof ClearObservationsErrors];
3103
+ export type ClearObservationsResponses = {
3104
+ /**
3105
+ * Successful Response
3106
+ */
3107
+ 200: DeleteResponse;
3108
+ };
3109
+ export type ClearObservationsResponse = ClearObservationsResponses[keyof ClearObservationsResponses];
3110
+ export type TriggerConsolidationData = {
3111
+ body?: never;
3112
+ headers?: {
3113
+ /**
3114
+ * Authorization
3115
+ */
3116
+ authorization?: string | null;
3117
+ };
3118
+ path: {
3119
+ /**
3120
+ * Bank Id
3121
+ */
3122
+ bank_id: string;
3123
+ };
3124
+ query?: never;
3125
+ url: "/v1/default/banks/{bank_id}/consolidate";
3126
+ };
3127
+ export type TriggerConsolidationErrors = {
3128
+ /**
3129
+ * Validation Error
3130
+ */
3131
+ 422: HttpValidationError;
3132
+ };
3133
+ export type TriggerConsolidationError = TriggerConsolidationErrors[keyof TriggerConsolidationErrors];
3134
+ export type TriggerConsolidationResponses = {
3135
+ /**
3136
+ * Successful Response
3137
+ */
3138
+ 200: ConsolidationResponse;
3139
+ };
3140
+ export type TriggerConsolidationResponse = TriggerConsolidationResponses[keyof TriggerConsolidationResponses];
1937
3141
  export type ClearBankMemoriesData = {
1938
3142
  body?: never;
1939
3143
  headers?: {