@vectorize-io/hindsight-client 0.4.17 → 0.4.19

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.
Files changed (78) hide show
  1. package/dist/{generated/types.gen.d.ts → index.d.mts} +1482 -358
  2. package/dist/index.d.ts +5384 -0
  3. package/dist/index.js +1597 -0
  4. package/dist/index.js.map +1 -0
  5. package/dist/index.mjs +1572 -0
  6. package/dist/index.mjs.map +1 -0
  7. package/generated/client/client.gen.ts +3 -1
  8. package/generated/sdk.gen.ts +17 -0
  9. package/generated/types.gen.ts +131 -1
  10. package/package.json +15 -5
  11. package/src/index.ts +2 -0
  12. package/dist/generated/client/client.gen.d.ts +0 -3
  13. package/dist/generated/client/client.gen.d.ts.map +0 -1
  14. package/dist/generated/client/client.gen.js +0 -233
  15. package/dist/generated/client/client.gen.js.map +0 -1
  16. package/dist/generated/client/index.d.ts +0 -9
  17. package/dist/generated/client/index.d.ts.map +0 -1
  18. package/dist/generated/client/index.js +0 -18
  19. package/dist/generated/client/index.js.map +0 -1
  20. package/dist/generated/client/types.gen.d.ts +0 -118
  21. package/dist/generated/client/types.gen.d.ts.map +0 -1
  22. package/dist/generated/client/types.gen.js +0 -4
  23. package/dist/generated/client/types.gen.js.map +0 -1
  24. package/dist/generated/client/utils.gen.d.ts +0 -34
  25. package/dist/generated/client/utils.gen.d.ts.map +0 -1
  26. package/dist/generated/client/utils.gen.js +0 -245
  27. package/dist/generated/client/utils.gen.js.map +0 -1
  28. package/dist/generated/client.gen.d.ts +0 -13
  29. package/dist/generated/client.gen.d.ts.map +0 -1
  30. package/dist/generated/client.gen.js +0 -7
  31. package/dist/generated/client.gen.js.map +0 -1
  32. package/dist/generated/core/auth.gen.d.ts +0 -19
  33. package/dist/generated/core/auth.gen.d.ts.map +0 -1
  34. package/dist/generated/core/auth.gen.js +0 -19
  35. package/dist/generated/core/auth.gen.js.map +0 -1
  36. package/dist/generated/core/bodySerializer.gen.d.ts +0 -26
  37. package/dist/generated/core/bodySerializer.gen.d.ts.map +0 -1
  38. package/dist/generated/core/bodySerializer.gen.js +0 -61
  39. package/dist/generated/core/bodySerializer.gen.js.map +0 -1
  40. package/dist/generated/core/params.gen.d.ts +0 -44
  41. package/dist/generated/core/params.gen.d.ts.map +0 -1
  42. package/dist/generated/core/params.gen.js +0 -105
  43. package/dist/generated/core/params.gen.js.map +0 -1
  44. package/dist/generated/core/pathSerializer.gen.d.ts +0 -34
  45. package/dist/generated/core/pathSerializer.gen.d.ts.map +0 -1
  46. package/dist/generated/core/pathSerializer.gen.js +0 -124
  47. package/dist/generated/core/pathSerializer.gen.js.map +0 -1
  48. package/dist/generated/core/queryKeySerializer.gen.d.ts +0 -19
  49. package/dist/generated/core/queryKeySerializer.gen.d.ts.map +0 -1
  50. package/dist/generated/core/queryKeySerializer.gen.js +0 -106
  51. package/dist/generated/core/queryKeySerializer.gen.js.map +0 -1
  52. package/dist/generated/core/serverSentEvents.gen.d.ts +0 -72
  53. package/dist/generated/core/serverSentEvents.gen.d.ts.map +0 -1
  54. package/dist/generated/core/serverSentEvents.gen.js +0 -140
  55. package/dist/generated/core/serverSentEvents.gen.js.map +0 -1
  56. package/dist/generated/core/types.gen.d.ts +0 -79
  57. package/dist/generated/core/types.gen.d.ts.map +0 -1
  58. package/dist/generated/core/types.gen.js +0 -4
  59. package/dist/generated/core/types.gen.js.map +0 -1
  60. package/dist/generated/core/utils.gen.d.ts +0 -20
  61. package/dist/generated/core/utils.gen.d.ts.map +0 -1
  62. package/dist/generated/core/utils.gen.js +0 -94
  63. package/dist/generated/core/utils.gen.js.map +0 -1
  64. package/dist/generated/index.d.ts +0 -3
  65. package/dist/generated/index.d.ts.map +0 -1
  66. package/dist/generated/index.js +0 -19
  67. package/dist/generated/index.js.map +0 -1
  68. package/dist/generated/sdk.gen.d.ts +0 -433
  69. package/dist/generated/sdk.gen.d.ts.map +0 -1
  70. package/dist/generated/sdk.gen.js +0 -636
  71. package/dist/generated/sdk.gen.js.map +0 -1
  72. package/dist/generated/types.gen.d.ts.map +0 -1
  73. package/dist/generated/types.gen.js +0 -4
  74. package/dist/generated/types.gen.js.map +0 -1
  75. package/dist/src/index.d.ts +0 -310
  76. package/dist/src/index.d.ts.map +0 -1
  77. package/dist/src/index.js +0 -518
  78. package/dist/src/index.js.map +0 -1
@@ -1,12 +1,9 @@
1
- export type ClientOptions = {
2
- baseUrl: `${string}://${string}` | (string & {});
3
- };
4
1
  /**
5
2
  * AddBackgroundRequest
6
3
  *
7
4
  * Request model for adding/merging background information. Deprecated: use SetMissionRequest instead.
8
5
  */
9
- export type AddBackgroundRequest = {
6
+ type AddBackgroundRequest = {
10
7
  /**
11
8
  * Content
12
9
  *
@@ -25,7 +22,7 @@ export type AddBackgroundRequest = {
25
22
  *
26
23
  * Response model for submitting an async operation.
27
24
  */
28
- export type AsyncOperationSubmitResponse = {
25
+ type AsyncOperationSubmitResponse = {
29
26
  /**
30
27
  * Operation Id
31
28
  */
@@ -40,7 +37,7 @@ export type AsyncOperationSubmitResponse = {
40
37
  *
41
38
  * Response model for background update. Deprecated: use MissionResponse instead.
42
39
  */
43
- export type BackgroundResponse = {
40
+ type BackgroundResponse = {
44
41
  /**
45
42
  * Mission
46
43
  */
@@ -58,7 +55,7 @@ export type BackgroundResponse = {
58
55
  *
59
56
  * Response model for bank configuration.
60
57
  */
61
- export type BankConfigResponse = {
58
+ type BankConfigResponse = {
62
59
  /**
63
60
  * Bank Id
64
61
  *
@@ -87,7 +84,7 @@ export type BankConfigResponse = {
87
84
  *
88
85
  * Request model for updating bank configuration.
89
86
  */
90
- export type BankConfigUpdate = {
87
+ type BankConfigUpdate = {
91
88
  /**
92
89
  * Updates
93
90
  *
@@ -102,7 +99,7 @@ export type BankConfigUpdate = {
102
99
  *
103
100
  * Bank list item with profile summary.
104
101
  */
105
- export type BankListItem = {
102
+ type BankListItem = {
106
103
  /**
107
104
  * Bank Id
108
105
  */
@@ -130,7 +127,7 @@ export type BankListItem = {
130
127
  *
131
128
  * Response model for listing all banks.
132
129
  */
133
- export type BankListResponse = {
130
+ type BankListResponse = {
134
131
  /**
135
132
  * Banks
136
133
  */
@@ -141,7 +138,7 @@ export type BankListResponse = {
141
138
  *
142
139
  * Response model for bank profile.
143
140
  */
144
- export type BankProfileResponse = {
141
+ type BankProfileResponse = {
145
142
  /**
146
143
  * Bank Id
147
144
  */
@@ -169,7 +166,7 @@ export type BankProfileResponse = {
169
166
  *
170
167
  * Response model for bank statistics endpoint.
171
168
  */
172
- export type BankStatsResponse = {
169
+ type BankStatsResponse = {
173
170
  /**
174
171
  * Bank Id
175
172
  */
@@ -242,7 +239,7 @@ export type BankStatsResponse = {
242
239
  /**
243
240
  * Body_file_retain
244
241
  */
245
- export type BodyFileRetain = {
242
+ type BodyFileRetain = {
246
243
  /**
247
244
  * Files
248
245
  *
@@ -261,13 +258,13 @@ export type BodyFileRetain = {
261
258
  *
262
259
  * Budget levels for recall/reflect operations.
263
260
  */
264
- export type Budget = "low" | "mid" | "high";
261
+ type Budget = "low" | "mid" | "high";
265
262
  /**
266
263
  * CancelOperationResponse
267
264
  *
268
265
  * Response model for cancel operation endpoint.
269
266
  */
270
- export type CancelOperationResponse = {
267
+ type CancelOperationResponse = {
271
268
  /**
272
269
  * Success
273
270
  */
@@ -286,7 +283,7 @@ export type CancelOperationResponse = {
286
283
  *
287
284
  * Status of a child operation (for batch operations).
288
285
  */
289
- export type ChildOperationStatus = {
286
+ type ChildOperationStatus = {
290
287
  /**
291
288
  * Operation Id
292
289
  */
@@ -313,7 +310,7 @@ export type ChildOperationStatus = {
313
310
  *
314
311
  * Chunk data for a single chunk.
315
312
  */
316
- export type ChunkData = {
313
+ type ChunkData = {
317
314
  /**
318
315
  * Id
319
316
  */
@@ -338,7 +335,7 @@ export type ChunkData = {
338
335
  *
339
336
  * Options for including chunks in recall results.
340
337
  */
341
- export type ChunkIncludeOptions = {
338
+ type ChunkIncludeOptions = {
342
339
  /**
343
340
  * Max Tokens
344
341
  *
@@ -351,7 +348,7 @@ export type ChunkIncludeOptions = {
351
348
  *
352
349
  * Response model for get chunk endpoint.
353
350
  */
354
- export type ChunkResponse = {
351
+ type ChunkResponse = {
355
352
  /**
356
353
  * Chunk Id
357
354
  */
@@ -382,7 +379,7 @@ export type ChunkResponse = {
382
379
  *
383
380
  * Response model for clearing observations for a specific memory.
384
381
  */
385
- export type ClearMemoryObservationsResponse = {
382
+ type ClearMemoryObservationsResponse = {
386
383
  /**
387
384
  * Deleted Count
388
385
  */
@@ -393,7 +390,7 @@ export type ClearMemoryObservationsResponse = {
393
390
  *
394
391
  * Response model for consolidation trigger endpoint.
395
392
  */
396
- export type ConsolidationResponse = {
393
+ type ConsolidationResponse = {
397
394
  /**
398
395
  * Operation Id
399
396
  *
@@ -412,7 +409,7 @@ export type ConsolidationResponse = {
412
409
  *
413
410
  * Request model for creating/updating a bank.
414
411
  */
415
- export type CreateBankRequest = {
412
+ type CreateBankRequest = {
416
413
  /**
417
414
  * Name
418
415
  *
@@ -501,7 +498,7 @@ export type CreateBankRequest = {
501
498
  *
502
499
  * Request model for creating a directive.
503
500
  */
504
- export type CreateDirectiveRequest = {
501
+ type CreateDirectiveRequest = {
505
502
  /**
506
503
  * Name
507
504
  *
@@ -538,7 +535,7 @@ export type CreateDirectiveRequest = {
538
535
  *
539
536
  * Request model for creating a mental model.
540
537
  */
541
- export type CreateMentalModelRequest = {
538
+ type CreateMentalModelRequest = {
542
539
  /**
543
540
  * Id
544
541
  *
@@ -579,7 +576,7 @@ export type CreateMentalModelRequest = {
579
576
  *
580
577
  * Response model for mental model creation.
581
578
  */
582
- export type CreateMentalModelResponse = {
579
+ type CreateMentalModelResponse = {
583
580
  /**
584
581
  * Mental Model Id
585
582
  *
@@ -598,7 +595,7 @@ export type CreateMentalModelResponse = {
598
595
  *
599
596
  * Request model for registering a webhook.
600
597
  */
601
- export type CreateWebhookRequest = {
598
+ type CreateWebhookRequest = {
602
599
  /**
603
600
  * Url
604
601
  *
@@ -633,7 +630,7 @@ export type CreateWebhookRequest = {
633
630
  *
634
631
  * Response model for delete document endpoint.
635
632
  */
636
- export type DeleteDocumentResponse = {
633
+ type DeleteDocumentResponse = {
637
634
  /**
638
635
  * Success
639
636
  */
@@ -656,7 +653,7 @@ export type DeleteDocumentResponse = {
656
653
  *
657
654
  * Response model for delete operations.
658
655
  */
659
- export type DeleteResponse = {
656
+ type DeleteResponse = {
660
657
  /**
661
658
  * Success
662
659
  */
@@ -675,7 +672,7 @@ export type DeleteResponse = {
675
672
  *
676
673
  * Response model for listing directives.
677
674
  */
678
- export type DirectiveListResponse = {
675
+ type DirectiveListResponse = {
679
676
  /**
680
677
  * Items
681
678
  */
@@ -686,7 +683,7 @@ export type DirectiveListResponse = {
686
683
  *
687
684
  * Response model for a directive.
688
685
  */
689
- export type DirectiveResponse = {
686
+ type DirectiveResponse = {
690
687
  /**
691
688
  * Id
692
689
  */
@@ -729,7 +726,7 @@ export type DirectiveResponse = {
729
726
  *
730
727
  * Disposition traits that influence how memories are formed and interpreted.
731
728
  */
732
- export type DispositionTraits = {
729
+ type DispositionTraits = {
733
730
  /**
734
731
  * Skepticism
735
732
  *
@@ -754,7 +751,7 @@ export type DispositionTraits = {
754
751
  *
755
752
  * Response model for get document endpoint.
756
753
  */
757
- export type DocumentResponse = {
754
+ type DocumentResponse = {
758
755
  /**
759
756
  * Id
760
757
  */
@@ -795,7 +792,7 @@ export type DocumentResponse = {
795
792
  *
796
793
  * Response model for entity detail endpoint.
797
794
  */
798
- export type EntityDetailResponse = {
795
+ type EntityDetailResponse = {
799
796
  /**
800
797
  * Id
801
798
  */
@@ -832,7 +829,7 @@ export type EntityDetailResponse = {
832
829
  *
833
830
  * Options for including entity observations in recall results.
834
831
  */
835
- export type EntityIncludeOptions = {
832
+ type EntityIncludeOptions = {
836
833
  /**
837
834
  * Max Tokens
838
835
  *
@@ -845,7 +842,7 @@ export type EntityIncludeOptions = {
845
842
  *
846
843
  * Entity to associate with retained content.
847
844
  */
848
- export type EntityInput = {
845
+ type EntityInput$1 = {
849
846
  /**
850
847
  * Text
851
848
  *
@@ -864,7 +861,7 @@ export type EntityInput = {
864
861
  *
865
862
  * Entity list item with summary.
866
863
  */
867
- export type EntityListItem = {
864
+ type EntityListItem = {
868
865
  /**
869
866
  * Id
870
867
  */
@@ -897,7 +894,7 @@ export type EntityListItem = {
897
894
  *
898
895
  * Response model for entity list endpoint.
899
896
  */
900
- export type EntityListResponse = {
897
+ type EntityListResponse = {
901
898
  /**
902
899
  * Items
903
900
  */
@@ -920,7 +917,7 @@ export type EntityListResponse = {
920
917
  *
921
918
  * An observation about an entity.
922
919
  */
923
- export type EntityObservationResponse = {
920
+ type EntityObservationResponse = {
924
921
  /**
925
922
  * Text
926
923
  */
@@ -935,7 +932,7 @@ export type EntityObservationResponse = {
935
932
  *
936
933
  * Current mental model of an entity.
937
934
  */
938
- export type EntityStateResponse = {
935
+ type EntityStateResponse = {
939
936
  /**
940
937
  * Entity Id
941
938
  */
@@ -954,7 +951,7 @@ export type EntityStateResponse = {
954
951
  *
955
952
  * Options for including facts (based_on) in reflect results.
956
953
  */
957
- export type FactsIncludeOptions = {
954
+ type FactsIncludeOptions = {
958
955
  [key: string]: unknown;
959
956
  };
960
957
  /**
@@ -962,7 +959,7 @@ export type FactsIncludeOptions = {
962
959
  *
963
960
  * Feature flags indicating which capabilities are enabled.
964
961
  */
965
- export type FeaturesInfo = {
962
+ type FeaturesInfo = {
966
963
  /**
967
964
  * Observations
968
965
  *
@@ -999,7 +996,7 @@ export type FeaturesInfo = {
999
996
  *
1000
997
  * Response model for file upload endpoint.
1001
998
  */
1002
- export type FileRetainResponse = {
999
+ type FileRetainResponse = {
1003
1000
  /**
1004
1001
  * Operation Ids
1005
1002
  *
@@ -1012,7 +1009,7 @@ export type FileRetainResponse = {
1012
1009
  *
1013
1010
  * Response model for graph data endpoint.
1014
1011
  */
1015
- export type GraphDataResponse = {
1012
+ type GraphDataResponse = {
1016
1013
  /**
1017
1014
  * Nodes
1018
1015
  */
@@ -1043,7 +1040,7 @@ export type GraphDataResponse = {
1043
1040
  /**
1044
1041
  * HTTPValidationError
1045
1042
  */
1046
- export type HttpValidationError = {
1043
+ type HttpValidationError = {
1047
1044
  /**
1048
1045
  * Detail
1049
1046
  */
@@ -1054,7 +1051,7 @@ export type HttpValidationError = {
1054
1051
  *
1055
1052
  * Options for including additional data in recall results.
1056
1053
  */
1057
- export type IncludeOptions = {
1054
+ type IncludeOptions = {
1058
1055
  /**
1059
1056
  * Include entity observations. Set to null to disable entity inclusion.
1060
1057
  */
@@ -1073,7 +1070,7 @@ export type IncludeOptions = {
1073
1070
  *
1074
1071
  * Response model for list documents endpoint.
1075
1072
  */
1076
- export type ListDocumentsResponse = {
1073
+ type ListDocumentsResponse = {
1077
1074
  /**
1078
1075
  * Items
1079
1076
  */
@@ -1098,7 +1095,7 @@ export type ListDocumentsResponse = {
1098
1095
  *
1099
1096
  * Response model for list memory units endpoint.
1100
1097
  */
1101
- export type ListMemoryUnitsResponse = {
1098
+ type ListMemoryUnitsResponse = {
1102
1099
  /**
1103
1100
  * Items
1104
1101
  */
@@ -1123,7 +1120,7 @@ export type ListMemoryUnitsResponse = {
1123
1120
  *
1124
1121
  * Response model for list tags endpoint.
1125
1122
  */
1126
- export type ListTagsResponse = {
1123
+ type ListTagsResponse = {
1127
1124
  /**
1128
1125
  * Items
1129
1126
  */
@@ -1146,7 +1143,7 @@ export type ListTagsResponse = {
1146
1143
  *
1147
1144
  * Single memory item for retain.
1148
1145
  */
1149
- export type MemoryItem = {
1146
+ type MemoryItem = {
1150
1147
  /**
1151
1148
  * Content
1152
1149
  */
@@ -1178,7 +1175,7 @@ export type MemoryItem = {
1178
1175
  *
1179
1176
  * Optional entities to combine with auto-extracted entities.
1180
1177
  */
1181
- entities?: Array<EntityInput> | null;
1178
+ entities?: Array<EntityInput$1> | null;
1182
1179
  /**
1183
1180
  * Tags
1184
1181
  *
@@ -1191,13 +1188,19 @@ export type MemoryItem = {
1191
1188
  * How to scope observations during consolidation. 'per_tag' runs one consolidation pass per individual tag, creating separate observations for each tag. 'combined' (default) runs a single pass with all tags together. A list of tag lists runs one pass per inner list, giving full control over which combinations to use.
1192
1189
  */
1193
1190
  observation_scopes?: "per_tag" | "combined" | "all_combinations" | Array<Array<string>> | null;
1191
+ /**
1192
+ * Strategy
1193
+ *
1194
+ * Named retain strategy for this item. Overrides the bank's default strategy for this item only. Strategies are defined in the bank config under 'retain_strategies'.
1195
+ */
1196
+ strategy?: string | null;
1194
1197
  };
1195
1198
  /**
1196
1199
  * MentalModelListResponse
1197
1200
  *
1198
1201
  * Response model for listing mental models.
1199
1202
  */
1200
- export type MentalModelListResponse = {
1203
+ type MentalModelListResponse = {
1201
1204
  /**
1202
1205
  * Items
1203
1206
  */
@@ -1208,7 +1211,7 @@ export type MentalModelListResponse = {
1208
1211
  *
1209
1212
  * Response model for a mental model (stored reflect response).
1210
1213
  */
1211
- export type MentalModelResponse = {
1214
+ type MentalModelResponse = {
1212
1215
  /**
1213
1216
  * Id
1214
1217
  */
@@ -1262,7 +1265,7 @@ export type MentalModelResponse = {
1262
1265
  *
1263
1266
  * Trigger settings for a mental model.
1264
1267
  */
1265
- export type MentalModelTrigger = {
1268
+ type MentalModelTrigger = {
1266
1269
  /**
1267
1270
  * Refresh After Consolidation
1268
1271
  *
@@ -1275,7 +1278,7 @@ export type MentalModelTrigger = {
1275
1278
  *
1276
1279
  * Response model for a single async operation.
1277
1280
  */
1278
- export type OperationResponse = {
1281
+ type OperationResponse = {
1279
1282
  /**
1280
1283
  * Id
1281
1284
  */
@@ -1310,7 +1313,7 @@ export type OperationResponse = {
1310
1313
  *
1311
1314
  * Response model for getting a single operation status.
1312
1315
  */
1313
- export type OperationStatusResponse = {
1316
+ type OperationStatusResponse = {
1314
1317
  /**
1315
1318
  * Operation Id
1316
1319
  */
@@ -1359,7 +1362,7 @@ export type OperationStatusResponse = {
1359
1362
  *
1360
1363
  * Response model for list operations endpoint.
1361
1364
  */
1362
- export type OperationsListResponse = {
1365
+ type OperationsListResponse = {
1363
1366
  /**
1364
1367
  * Bank Id
1365
1368
  */
@@ -1386,7 +1389,7 @@ export type OperationsListResponse = {
1386
1389
  *
1387
1390
  * Request model for recall endpoint.
1388
1391
  */
1389
- export type RecallRequest = {
1392
+ type RecallRequest = {
1390
1393
  /**
1391
1394
  * Query
1392
1395
  */
@@ -1428,13 +1431,19 @@ export type RecallRequest = {
1428
1431
  * How to match tags: 'any' (OR, includes untagged), 'all' (AND, includes untagged), 'any_strict' (OR, excludes untagged), 'all_strict' (AND, excludes untagged).
1429
1432
  */
1430
1433
  tags_match?: "any" | "all" | "any_strict" | "all_strict";
1434
+ /**
1435
+ * Tag Groups
1436
+ *
1437
+ * Compound tag filter using boolean groups. Groups in the list are AND-ed. Each group is a leaf {tags, match} or compound {and: [...]}, {or: [...]}, {not: ...}.
1438
+ */
1439
+ tag_groups?: Array<TagGroupLeaf | TagGroupAnd | TagGroupOr | TagGroupNot> | null;
1431
1440
  };
1432
1441
  /**
1433
1442
  * RecallResponse
1434
1443
  *
1435
1444
  * Response model for recall endpoints.
1436
1445
  */
1437
- export type RecallResponse = {
1446
+ type RecallResponse = {
1438
1447
  /**
1439
1448
  * Results
1440
1449
  */
@@ -1475,7 +1484,7 @@ export type RecallResponse = {
1475
1484
  *
1476
1485
  * Single recall result item.
1477
1486
  */
1478
- export type RecallResult = {
1487
+ type RecallResult = {
1479
1488
  /**
1480
1489
  * Id
1481
1490
  */
@@ -1531,12 +1540,23 @@ export type RecallResult = {
1531
1540
  */
1532
1541
  source_fact_ids?: Array<string> | null;
1533
1542
  };
1543
+ /**
1544
+ * RecoverConsolidationResponse
1545
+ *
1546
+ * Response model for recovering failed consolidation.
1547
+ */
1548
+ type RecoverConsolidationResponse = {
1549
+ /**
1550
+ * Retried Count
1551
+ */
1552
+ retried_count: number;
1553
+ };
1534
1554
  /**
1535
1555
  * ReflectBasedOn
1536
1556
  *
1537
1557
  * Evidence the response is based on: memories, mental models, and directives.
1538
1558
  */
1539
- export type ReflectBasedOn = {
1559
+ type ReflectBasedOn = {
1540
1560
  /**
1541
1561
  * Memories
1542
1562
  *
@@ -1561,7 +1581,7 @@ export type ReflectBasedOn = {
1561
1581
  *
1562
1582
  * A directive applied during reflect.
1563
1583
  */
1564
- export type ReflectDirective = {
1584
+ type ReflectDirective = {
1565
1585
  /**
1566
1586
  * Id
1567
1587
  *
@@ -1586,7 +1606,7 @@ export type ReflectDirective = {
1586
1606
  *
1587
1607
  * A fact used in think response.
1588
1608
  */
1589
- export type ReflectFact = {
1609
+ type ReflectFact = {
1590
1610
  /**
1591
1611
  * Id
1592
1612
  */
@@ -1619,7 +1639,7 @@ export type ReflectFact = {
1619
1639
  *
1620
1640
  * Options for including additional data in reflect results.
1621
1641
  */
1622
- export type ReflectIncludeOptions = {
1642
+ type ReflectIncludeOptions = {
1623
1643
  /**
1624
1644
  * Include facts that the answer is based on. Set to {} to enable, null to disable (default: disabled).
1625
1645
  */
@@ -1634,7 +1654,7 @@ export type ReflectIncludeOptions = {
1634
1654
  *
1635
1655
  * An LLM call made during reflect agent execution.
1636
1656
  */
1637
- export type ReflectLlmCall = {
1657
+ type ReflectLlmCall = {
1638
1658
  /**
1639
1659
  * Scope
1640
1660
  *
@@ -1653,7 +1673,7 @@ export type ReflectLlmCall = {
1653
1673
  *
1654
1674
  * A mental model used during reflect.
1655
1675
  */
1656
- export type ReflectMentalModel = {
1676
+ type ReflectMentalModel = {
1657
1677
  /**
1658
1678
  * Id
1659
1679
  *
@@ -1678,7 +1698,7 @@ export type ReflectMentalModel = {
1678
1698
  *
1679
1699
  * Request model for reflect endpoint.
1680
1700
  */
1681
- export type ReflectRequest = {
1701
+ type ReflectRequest = {
1682
1702
  /**
1683
1703
  * Query
1684
1704
  */
@@ -1722,13 +1742,19 @@ export type ReflectRequest = {
1722
1742
  * How to match tags: 'any' (OR, includes untagged), 'all' (AND, includes untagged), 'any_strict' (OR, excludes untagged), 'all_strict' (AND, excludes untagged).
1723
1743
  */
1724
1744
  tags_match?: "any" | "all" | "any_strict" | "all_strict";
1745
+ /**
1746
+ * Tag Groups
1747
+ *
1748
+ * Compound tag filter using boolean groups. Groups in the list are AND-ed. Each group is a leaf {tags, match} or compound {and: [...]}, {or: [...]}, {not: ...}.
1749
+ */
1750
+ tag_groups?: Array<TagGroupLeaf | TagGroupAnd | TagGroupOr | TagGroupNot> | null;
1725
1751
  };
1726
1752
  /**
1727
1753
  * ReflectResponse
1728
1754
  *
1729
1755
  * Response model for think endpoint.
1730
1756
  */
1731
- export type ReflectResponse = {
1757
+ type ReflectResponse = {
1732
1758
  /**
1733
1759
  * Text
1734
1760
  *
@@ -1761,7 +1787,7 @@ export type ReflectResponse = {
1761
1787
  *
1762
1788
  * A tool call made during reflect agent execution.
1763
1789
  */
1764
- export type ReflectToolCall = {
1790
+ type ReflectToolCall = {
1765
1791
  /**
1766
1792
  * Tool
1767
1793
  *
@@ -1802,7 +1828,7 @@ export type ReflectToolCall = {
1802
1828
  *
1803
1829
  * Execution trace of LLM and tool calls during reflection.
1804
1830
  */
1805
- export type ReflectTrace = {
1831
+ type ReflectTrace = {
1806
1832
  /**
1807
1833
  * Tool Calls
1808
1834
  *
@@ -1821,7 +1847,7 @@ export type ReflectTrace = {
1821
1847
  *
1822
1848
  * Request model for retain endpoint.
1823
1849
  */
1824
- export type RetainRequest = {
1850
+ type RetainRequest = {
1825
1851
  /**
1826
1852
  * Items
1827
1853
  */
@@ -1846,7 +1872,7 @@ export type RetainRequest = {
1846
1872
  *
1847
1873
  * Response model for retain endpoint.
1848
1874
  */
1849
- export type RetainResponse = {
1875
+ type RetainResponse = {
1850
1876
  /**
1851
1877
  * Success
1852
1878
  */
@@ -1868,9 +1894,15 @@ export type RetainResponse = {
1868
1894
  /**
1869
1895
  * Operation Id
1870
1896
  *
1871
- * Operation ID for tracking async operations. Use GET /v1/default/banks/{bank_id}/operations to list operations. Only present when async=true.
1897
+ * Operation ID for tracking async operations. Use GET /v1/default/banks/{bank_id}/operations to list operations. Only present when async=true. When items use different per-item strategies, use operation_ids instead.
1872
1898
  */
1873
1899
  operation_id?: string | null;
1900
+ /**
1901
+ * Operation Ids
1902
+ *
1903
+ * Operation IDs when items were submitted as multiple strategy groups (async=true with mixed per-item strategies). operation_id is set to the first entry for backward compatibility.
1904
+ */
1905
+ operation_ids?: Array<string> | null;
1874
1906
  /**
1875
1907
  * Token usage metrics for LLM calls during fact extraction (only present for synchronous operations)
1876
1908
  */
@@ -1881,7 +1913,7 @@ export type RetainResponse = {
1881
1913
  *
1882
1914
  * Response model for retry operation endpoint.
1883
1915
  */
1884
- export type RetryOperationResponse = {
1916
+ type RetryOperationResponse = {
1885
1917
  /**
1886
1918
  * Success
1887
1919
  */
@@ -1900,7 +1932,7 @@ export type RetryOperationResponse = {
1900
1932
  *
1901
1933
  * Options for including source facts for observation-type results.
1902
1934
  */
1903
- export type SourceFactsIncludeOptions = {
1935
+ type SourceFactsIncludeOptions = {
1904
1936
  /**
1905
1937
  * Max Tokens
1906
1938
  *
@@ -1914,12 +1946,60 @@ export type SourceFactsIncludeOptions = {
1914
1946
  */
1915
1947
  max_tokens_per_observation?: number;
1916
1948
  };
1949
+ /**
1950
+ * TagGroupAnd
1951
+ *
1952
+ * Compound AND group: all child filters must match.
1953
+ */
1954
+ type TagGroupAnd = {
1955
+ /**
1956
+ * And
1957
+ */
1958
+ and: Array<TagGroupLeaf | TagGroupAnd | TagGroupOr | TagGroupNot>;
1959
+ };
1960
+ /**
1961
+ * TagGroupLeaf
1962
+ *
1963
+ * A leaf tag filter: matches memories by tag list and match mode.
1964
+ */
1965
+ type TagGroupLeaf = {
1966
+ /**
1967
+ * Tags
1968
+ */
1969
+ tags: Array<string>;
1970
+ /**
1971
+ * Match
1972
+ */
1973
+ match?: "any" | "all" | "any_strict" | "all_strict";
1974
+ };
1975
+ /**
1976
+ * TagGroupNot
1977
+ *
1978
+ * Compound NOT group: child filter must NOT match.
1979
+ */
1980
+ type TagGroupNot = {
1981
+ /**
1982
+ * Not
1983
+ */
1984
+ not: TagGroupLeaf | TagGroupAnd | TagGroupOr | TagGroupNot;
1985
+ };
1986
+ /**
1987
+ * TagGroupOr
1988
+ *
1989
+ * Compound OR group: at least one child filter must match.
1990
+ */
1991
+ type TagGroupOr = {
1992
+ /**
1993
+ * Or
1994
+ */
1995
+ or: Array<TagGroupLeaf | TagGroupAnd | TagGroupOr | TagGroupNot>;
1996
+ };
1917
1997
  /**
1918
1998
  * TagItem
1919
1999
  *
1920
2000
  * Single tag with usage count.
1921
2001
  */
1922
- export type TagItem = {
2002
+ type TagItem = {
1923
2003
  /**
1924
2004
  * Tag
1925
2005
  *
@@ -1941,7 +2021,7 @@ export type TagItem = {
1941
2021
  * Tracks input/output tokens for a single request to enable
1942
2022
  * per-request cost tracking and monitoring.
1943
2023
  */
1944
- export type TokenUsage = {
2024
+ type TokenUsage = {
1945
2025
  /**
1946
2026
  * Input Tokens
1947
2027
  *
@@ -1966,7 +2046,7 @@ export type TokenUsage = {
1966
2046
  *
1967
2047
  * Options for including tool calls in reflect results.
1968
2048
  */
1969
- export type ToolCallsIncludeOptions = {
2049
+ type ToolCallsIncludeOptions = {
1970
2050
  /**
1971
2051
  * Output
1972
2052
  *
@@ -1979,7 +2059,7 @@ export type ToolCallsIncludeOptions = {
1979
2059
  *
1980
2060
  * Request model for updating a directive.
1981
2061
  */
1982
- export type UpdateDirectiveRequest = {
2062
+ type UpdateDirectiveRequest = {
1983
2063
  /**
1984
2064
  * Name
1985
2065
  *
@@ -2016,7 +2096,7 @@ export type UpdateDirectiveRequest = {
2016
2096
  *
2017
2097
  * Request model for updating disposition traits.
2018
2098
  */
2019
- export type UpdateDispositionRequest = {
2099
+ type UpdateDispositionRequest = {
2020
2100
  disposition: DispositionTraits;
2021
2101
  };
2022
2102
  /**
@@ -2024,7 +2104,7 @@ export type UpdateDispositionRequest = {
2024
2104
  *
2025
2105
  * Request model for updating a document's mutable fields.
2026
2106
  */
2027
- export type UpdateDocumentRequest = {
2107
+ type UpdateDocumentRequest = {
2028
2108
  /**
2029
2109
  * Tags
2030
2110
  *
@@ -2037,7 +2117,7 @@ export type UpdateDocumentRequest = {
2037
2117
  *
2038
2118
  * Response model for update document endpoint.
2039
2119
  */
2040
- export type UpdateDocumentResponse = {
2120
+ type UpdateDocumentResponse = {
2041
2121
  /**
2042
2122
  * Success
2043
2123
  */
@@ -2048,7 +2128,7 @@ export type UpdateDocumentResponse = {
2048
2128
  *
2049
2129
  * Request model for updating a mental model.
2050
2130
  */
2051
- export type UpdateMentalModelRequest = {
2131
+ type UpdateMentalModelRequest = {
2052
2132
  /**
2053
2133
  * Name
2054
2134
  *
@@ -2083,7 +2163,7 @@ export type UpdateMentalModelRequest = {
2083
2163
  *
2084
2164
  * Request model for updating a webhook. Only provided fields are updated.
2085
2165
  */
2086
- export type UpdateWebhookRequest = {
2166
+ type UpdateWebhookRequest = {
2087
2167
  /**
2088
2168
  * Url
2089
2169
  *
@@ -2116,7 +2196,7 @@ export type UpdateWebhookRequest = {
2116
2196
  /**
2117
2197
  * ValidationError
2118
2198
  */
2119
- export type ValidationError = {
2199
+ type ValidationError = {
2120
2200
  /**
2121
2201
  * Location
2122
2202
  */
@@ -2135,7 +2215,7 @@ export type ValidationError = {
2135
2215
  *
2136
2216
  * Response model for the version/info endpoint.
2137
2217
  */
2138
- export type VersionResponse = {
2218
+ type VersionResponse = {
2139
2219
  /**
2140
2220
  * Api Version
2141
2221
  *
@@ -2152,7 +2232,7 @@ export type VersionResponse = {
2152
2232
  *
2153
2233
  * Response model for listing webhook deliveries.
2154
2234
  */
2155
- export type WebhookDeliveryListResponse = {
2235
+ type WebhookDeliveryListResponse = {
2156
2236
  /**
2157
2237
  * Items
2158
2238
  */
@@ -2167,7 +2247,7 @@ export type WebhookDeliveryListResponse = {
2167
2247
  *
2168
2248
  * Response model for a webhook delivery record.
2169
2249
  */
2170
- export type WebhookDeliveryResponse = {
2250
+ type WebhookDeliveryResponse = {
2171
2251
  /**
2172
2252
  * Id
2173
2253
  */
@@ -2226,7 +2306,7 @@ export type WebhookDeliveryResponse = {
2226
2306
  *
2227
2307
  * HTTP delivery configuration for a webhook.
2228
2308
  */
2229
- export type WebhookHttpConfig = {
2309
+ type WebhookHttpConfig = {
2230
2310
  /**
2231
2311
  * Method
2232
2312
  *
@@ -2261,7 +2341,7 @@ export type WebhookHttpConfig = {
2261
2341
  *
2262
2342
  * Response model for listing webhooks.
2263
2343
  */
2264
- export type WebhookListResponse = {
2344
+ type WebhookListResponse = {
2265
2345
  /**
2266
2346
  * Items
2267
2347
  */
@@ -2272,7 +2352,7 @@ export type WebhookListResponse = {
2272
2352
  *
2273
2353
  * Response model for a webhook.
2274
2354
  */
2275
- export type WebhookResponse = {
2355
+ type WebhookResponse = {
2276
2356
  /**
2277
2357
  * Id
2278
2358
  */
@@ -2309,44 +2389,43 @@ export type WebhookResponse = {
2309
2389
  */
2310
2390
  updated_at?: string | null;
2311
2391
  };
2312
- export type HealthEndpointHealthGetData = {
2392
+ type HealthEndpointHealthGetData = {
2313
2393
  body?: never;
2314
2394
  path?: never;
2315
2395
  query?: never;
2316
2396
  url: "/health";
2317
2397
  };
2318
- export type HealthEndpointHealthGetResponses = {
2398
+ type HealthEndpointHealthGetResponses = {
2319
2399
  /**
2320
2400
  * Successful Response
2321
2401
  */
2322
2402
  200: unknown;
2323
2403
  };
2324
- export type GetVersionData = {
2404
+ type GetVersionData = {
2325
2405
  body?: never;
2326
2406
  path?: never;
2327
2407
  query?: never;
2328
2408
  url: "/version";
2329
2409
  };
2330
- export type GetVersionResponses = {
2410
+ type GetVersionResponses = {
2331
2411
  /**
2332
2412
  * Successful Response
2333
2413
  */
2334
2414
  200: VersionResponse;
2335
2415
  };
2336
- export type GetVersionResponse = GetVersionResponses[keyof GetVersionResponses];
2337
- export type MetricsEndpointMetricsGetData = {
2416
+ type MetricsEndpointMetricsGetData = {
2338
2417
  body?: never;
2339
2418
  path?: never;
2340
2419
  query?: never;
2341
2420
  url: "/metrics";
2342
2421
  };
2343
- export type MetricsEndpointMetricsGetResponses = {
2422
+ type MetricsEndpointMetricsGetResponses = {
2344
2423
  /**
2345
2424
  * Successful Response
2346
2425
  */
2347
2426
  200: unknown;
2348
2427
  };
2349
- export type GetGraphData = {
2428
+ type GetGraphData = {
2350
2429
  body?: never;
2351
2430
  headers?: {
2352
2431
  /**
@@ -2384,21 +2463,19 @@ export type GetGraphData = {
2384
2463
  };
2385
2464
  url: "/v1/default/banks/{bank_id}/graph";
2386
2465
  };
2387
- export type GetGraphErrors = {
2466
+ type GetGraphErrors = {
2388
2467
  /**
2389
2468
  * Validation Error
2390
2469
  */
2391
2470
  422: HttpValidationError;
2392
2471
  };
2393
- export type GetGraphError = GetGraphErrors[keyof GetGraphErrors];
2394
- export type GetGraphResponses = {
2472
+ type GetGraphResponses = {
2395
2473
  /**
2396
2474
  * Successful Response
2397
2475
  */
2398
2476
  200: GraphDataResponse;
2399
2477
  };
2400
- export type GetGraphResponse = GetGraphResponses[keyof GetGraphResponses];
2401
- export type ListMemoriesData = {
2478
+ type ListMemoriesData = {
2402
2479
  body?: never;
2403
2480
  headers?: {
2404
2481
  /**
@@ -2432,21 +2509,19 @@ export type ListMemoriesData = {
2432
2509
  };
2433
2510
  url: "/v1/default/banks/{bank_id}/memories/list";
2434
2511
  };
2435
- export type ListMemoriesErrors = {
2512
+ type ListMemoriesErrors = {
2436
2513
  /**
2437
2514
  * Validation Error
2438
2515
  */
2439
2516
  422: HttpValidationError;
2440
2517
  };
2441
- export type ListMemoriesError = ListMemoriesErrors[keyof ListMemoriesErrors];
2442
- export type ListMemoriesResponses = {
2518
+ type ListMemoriesResponses = {
2443
2519
  /**
2444
2520
  * Successful Response
2445
2521
  */
2446
2522
  200: ListMemoryUnitsResponse;
2447
2523
  };
2448
- export type ListMemoriesResponse = ListMemoriesResponses[keyof ListMemoriesResponses];
2449
- export type GetMemoryData = {
2524
+ type GetMemoryData = {
2450
2525
  body?: never;
2451
2526
  headers?: {
2452
2527
  /**
@@ -2467,20 +2542,19 @@ export type GetMemoryData = {
2467
2542
  query?: never;
2468
2543
  url: "/v1/default/banks/{bank_id}/memories/{memory_id}";
2469
2544
  };
2470
- export type GetMemoryErrors = {
2545
+ type GetMemoryErrors = {
2471
2546
  /**
2472
2547
  * Validation Error
2473
2548
  */
2474
2549
  422: HttpValidationError;
2475
2550
  };
2476
- export type GetMemoryError = GetMemoryErrors[keyof GetMemoryErrors];
2477
- export type GetMemoryResponses = {
2551
+ type GetMemoryResponses = {
2478
2552
  /**
2479
2553
  * Successful Response
2480
2554
  */
2481
2555
  200: unknown;
2482
2556
  };
2483
- export type GetObservationHistoryData = {
2557
+ type GetObservationHistoryData = {
2484
2558
  body?: never;
2485
2559
  headers?: {
2486
2560
  /**
@@ -2501,20 +2575,19 @@ export type GetObservationHistoryData = {
2501
2575
  query?: never;
2502
2576
  url: "/v1/default/banks/{bank_id}/memories/{memory_id}/history";
2503
2577
  };
2504
- export type GetObservationHistoryErrors = {
2578
+ type GetObservationHistoryErrors = {
2505
2579
  /**
2506
2580
  * Validation Error
2507
2581
  */
2508
2582
  422: HttpValidationError;
2509
2583
  };
2510
- export type GetObservationHistoryError = GetObservationHistoryErrors[keyof GetObservationHistoryErrors];
2511
- export type GetObservationHistoryResponses = {
2584
+ type GetObservationHistoryResponses = {
2512
2585
  /**
2513
2586
  * Successful Response
2514
2587
  */
2515
2588
  200: unknown;
2516
2589
  };
2517
- export type RecallMemoriesData = {
2590
+ type RecallMemoriesData = {
2518
2591
  body: RecallRequest;
2519
2592
  headers?: {
2520
2593
  /**
@@ -2531,21 +2604,19 @@ export type RecallMemoriesData = {
2531
2604
  query?: never;
2532
2605
  url: "/v1/default/banks/{bank_id}/memories/recall";
2533
2606
  };
2534
- export type RecallMemoriesErrors = {
2607
+ type RecallMemoriesErrors = {
2535
2608
  /**
2536
2609
  * Validation Error
2537
2610
  */
2538
2611
  422: HttpValidationError;
2539
2612
  };
2540
- export type RecallMemoriesError = RecallMemoriesErrors[keyof RecallMemoriesErrors];
2541
- export type RecallMemoriesResponses = {
2613
+ type RecallMemoriesResponses = {
2542
2614
  /**
2543
2615
  * Successful Response
2544
2616
  */
2545
2617
  200: RecallResponse;
2546
2618
  };
2547
- export type RecallMemoriesResponse = RecallMemoriesResponses[keyof RecallMemoriesResponses];
2548
- export type ReflectData = {
2619
+ type ReflectData = {
2549
2620
  body: ReflectRequest;
2550
2621
  headers?: {
2551
2622
  /**
@@ -2562,21 +2633,19 @@ export type ReflectData = {
2562
2633
  query?: never;
2563
2634
  url: "/v1/default/banks/{bank_id}/reflect";
2564
2635
  };
2565
- export type ReflectErrors = {
2636
+ type ReflectErrors = {
2566
2637
  /**
2567
2638
  * Validation Error
2568
2639
  */
2569
2640
  422: HttpValidationError;
2570
2641
  };
2571
- export type ReflectError = ReflectErrors[keyof ReflectErrors];
2572
- export type ReflectResponses = {
2642
+ type ReflectResponses = {
2573
2643
  /**
2574
2644
  * Successful Response
2575
2645
  */
2576
2646
  200: ReflectResponse;
2577
2647
  };
2578
- export type ReflectResponse2 = ReflectResponses[keyof ReflectResponses];
2579
- export type ListBanksData = {
2648
+ type ListBanksData = {
2580
2649
  body?: never;
2581
2650
  headers?: {
2582
2651
  /**
@@ -2588,21 +2657,19 @@ export type ListBanksData = {
2588
2657
  query?: never;
2589
2658
  url: "/v1/default/banks";
2590
2659
  };
2591
- export type ListBanksErrors = {
2660
+ type ListBanksErrors = {
2592
2661
  /**
2593
2662
  * Validation Error
2594
2663
  */
2595
2664
  422: HttpValidationError;
2596
2665
  };
2597
- export type ListBanksError = ListBanksErrors[keyof ListBanksErrors];
2598
- export type ListBanksResponses = {
2666
+ type ListBanksResponses = {
2599
2667
  /**
2600
2668
  * Successful Response
2601
2669
  */
2602
2670
  200: BankListResponse;
2603
2671
  };
2604
- export type ListBanksResponse = ListBanksResponses[keyof ListBanksResponses];
2605
- export type GetAgentStatsData = {
2672
+ type GetAgentStatsData = {
2606
2673
  body?: never;
2607
2674
  headers?: {
2608
2675
  /**
@@ -2619,21 +2686,19 @@ export type GetAgentStatsData = {
2619
2686
  query?: never;
2620
2687
  url: "/v1/default/banks/{bank_id}/stats";
2621
2688
  };
2622
- export type GetAgentStatsErrors = {
2689
+ type GetAgentStatsErrors = {
2623
2690
  /**
2624
2691
  * Validation Error
2625
2692
  */
2626
2693
  422: HttpValidationError;
2627
2694
  };
2628
- export type GetAgentStatsError = GetAgentStatsErrors[keyof GetAgentStatsErrors];
2629
- export type GetAgentStatsResponses = {
2695
+ type GetAgentStatsResponses = {
2630
2696
  /**
2631
2697
  * Successful Response
2632
2698
  */
2633
2699
  200: BankStatsResponse;
2634
2700
  };
2635
- export type GetAgentStatsResponse = GetAgentStatsResponses[keyof GetAgentStatsResponses];
2636
- export type ListEntitiesData = {
2701
+ type ListEntitiesData = {
2637
2702
  body?: never;
2638
2703
  headers?: {
2639
2704
  /**
@@ -2663,21 +2728,19 @@ export type ListEntitiesData = {
2663
2728
  };
2664
2729
  url: "/v1/default/banks/{bank_id}/entities";
2665
2730
  };
2666
- export type ListEntitiesErrors = {
2731
+ type ListEntitiesErrors = {
2667
2732
  /**
2668
2733
  * Validation Error
2669
2734
  */
2670
2735
  422: HttpValidationError;
2671
2736
  };
2672
- export type ListEntitiesError = ListEntitiesErrors[keyof ListEntitiesErrors];
2673
- export type ListEntitiesResponses = {
2737
+ type ListEntitiesResponses = {
2674
2738
  /**
2675
2739
  * Successful Response
2676
2740
  */
2677
2741
  200: EntityListResponse;
2678
2742
  };
2679
- export type ListEntitiesResponse = ListEntitiesResponses[keyof ListEntitiesResponses];
2680
- export type GetEntityData = {
2743
+ type GetEntityData = {
2681
2744
  body?: never;
2682
2745
  headers?: {
2683
2746
  /**
@@ -2698,21 +2761,19 @@ export type GetEntityData = {
2698
2761
  query?: never;
2699
2762
  url: "/v1/default/banks/{bank_id}/entities/{entity_id}";
2700
2763
  };
2701
- export type GetEntityErrors = {
2764
+ type GetEntityErrors = {
2702
2765
  /**
2703
2766
  * Validation Error
2704
2767
  */
2705
2768
  422: HttpValidationError;
2706
2769
  };
2707
- export type GetEntityError = GetEntityErrors[keyof GetEntityErrors];
2708
- export type GetEntityResponses = {
2770
+ type GetEntityResponses = {
2709
2771
  /**
2710
2772
  * Successful Response
2711
2773
  */
2712
2774
  200: EntityDetailResponse;
2713
2775
  };
2714
- export type GetEntityResponse = GetEntityResponses[keyof GetEntityResponses];
2715
- export type RegenerateEntityObservationsData = {
2776
+ type RegenerateEntityObservationsData = {
2716
2777
  body?: never;
2717
2778
  headers?: {
2718
2779
  /**
@@ -2733,21 +2794,19 @@ export type RegenerateEntityObservationsData = {
2733
2794
  query?: never;
2734
2795
  url: "/v1/default/banks/{bank_id}/entities/{entity_id}/regenerate";
2735
2796
  };
2736
- export type RegenerateEntityObservationsErrors = {
2797
+ type RegenerateEntityObservationsErrors = {
2737
2798
  /**
2738
2799
  * Validation Error
2739
2800
  */
2740
2801
  422: HttpValidationError;
2741
2802
  };
2742
- export type RegenerateEntityObservationsError = RegenerateEntityObservationsErrors[keyof RegenerateEntityObservationsErrors];
2743
- export type RegenerateEntityObservationsResponses = {
2803
+ type RegenerateEntityObservationsResponses = {
2744
2804
  /**
2745
2805
  * Successful Response
2746
2806
  */
2747
2807
  200: EntityDetailResponse;
2748
2808
  };
2749
- export type RegenerateEntityObservationsResponse = RegenerateEntityObservationsResponses[keyof RegenerateEntityObservationsResponses];
2750
- export type ListMentalModelsData = {
2809
+ type ListMentalModelsData = {
2751
2810
  body?: never;
2752
2811
  headers?: {
2753
2812
  /**
@@ -2785,21 +2844,19 @@ export type ListMentalModelsData = {
2785
2844
  };
2786
2845
  url: "/v1/default/banks/{bank_id}/mental-models";
2787
2846
  };
2788
- export type ListMentalModelsErrors = {
2847
+ type ListMentalModelsErrors = {
2789
2848
  /**
2790
2849
  * Validation Error
2791
2850
  */
2792
2851
  422: HttpValidationError;
2793
2852
  };
2794
- export type ListMentalModelsError = ListMentalModelsErrors[keyof ListMentalModelsErrors];
2795
- export type ListMentalModelsResponses = {
2853
+ type ListMentalModelsResponses = {
2796
2854
  /**
2797
2855
  * Successful Response
2798
2856
  */
2799
2857
  200: MentalModelListResponse;
2800
2858
  };
2801
- export type ListMentalModelsResponse = ListMentalModelsResponses[keyof ListMentalModelsResponses];
2802
- export type CreateMentalModelData = {
2859
+ type CreateMentalModelData = {
2803
2860
  body: CreateMentalModelRequest;
2804
2861
  headers?: {
2805
2862
  /**
@@ -2816,21 +2873,19 @@ export type CreateMentalModelData = {
2816
2873
  query?: never;
2817
2874
  url: "/v1/default/banks/{bank_id}/mental-models";
2818
2875
  };
2819
- export type CreateMentalModelErrors = {
2876
+ type CreateMentalModelErrors = {
2820
2877
  /**
2821
2878
  * Validation Error
2822
2879
  */
2823
2880
  422: HttpValidationError;
2824
2881
  };
2825
- export type CreateMentalModelError = CreateMentalModelErrors[keyof CreateMentalModelErrors];
2826
- export type CreateMentalModelResponses = {
2882
+ type CreateMentalModelResponses = {
2827
2883
  /**
2828
2884
  * Successful Response
2829
2885
  */
2830
2886
  200: CreateMentalModelResponse;
2831
2887
  };
2832
- export type CreateMentalModelResponse2 = CreateMentalModelResponses[keyof CreateMentalModelResponses];
2833
- export type DeleteMentalModelData = {
2888
+ type DeleteMentalModelData = {
2834
2889
  body?: never;
2835
2890
  headers?: {
2836
2891
  /**
@@ -2851,20 +2906,19 @@ export type DeleteMentalModelData = {
2851
2906
  query?: never;
2852
2907
  url: "/v1/default/banks/{bank_id}/mental-models/{mental_model_id}";
2853
2908
  };
2854
- export type DeleteMentalModelErrors = {
2909
+ type DeleteMentalModelErrors = {
2855
2910
  /**
2856
2911
  * Validation Error
2857
2912
  */
2858
2913
  422: HttpValidationError;
2859
2914
  };
2860
- export type DeleteMentalModelError = DeleteMentalModelErrors[keyof DeleteMentalModelErrors];
2861
- export type DeleteMentalModelResponses = {
2915
+ type DeleteMentalModelResponses = {
2862
2916
  /**
2863
2917
  * Successful Response
2864
2918
  */
2865
2919
  200: unknown;
2866
2920
  };
2867
- export type GetMentalModelData = {
2921
+ type GetMentalModelData = {
2868
2922
  body?: never;
2869
2923
  headers?: {
2870
2924
  /**
@@ -2885,21 +2939,19 @@ export type GetMentalModelData = {
2885
2939
  query?: never;
2886
2940
  url: "/v1/default/banks/{bank_id}/mental-models/{mental_model_id}";
2887
2941
  };
2888
- export type GetMentalModelErrors = {
2942
+ type GetMentalModelErrors = {
2889
2943
  /**
2890
2944
  * Validation Error
2891
2945
  */
2892
2946
  422: HttpValidationError;
2893
2947
  };
2894
- export type GetMentalModelError = GetMentalModelErrors[keyof GetMentalModelErrors];
2895
- export type GetMentalModelResponses = {
2948
+ type GetMentalModelResponses = {
2896
2949
  /**
2897
2950
  * Successful Response
2898
2951
  */
2899
2952
  200: MentalModelResponse;
2900
2953
  };
2901
- export type GetMentalModelResponse = GetMentalModelResponses[keyof GetMentalModelResponses];
2902
- export type UpdateMentalModelData = {
2954
+ type UpdateMentalModelData = {
2903
2955
  body: UpdateMentalModelRequest;
2904
2956
  headers?: {
2905
2957
  /**
@@ -2920,21 +2972,19 @@ export type UpdateMentalModelData = {
2920
2972
  query?: never;
2921
2973
  url: "/v1/default/banks/{bank_id}/mental-models/{mental_model_id}";
2922
2974
  };
2923
- export type UpdateMentalModelErrors = {
2975
+ type UpdateMentalModelErrors = {
2924
2976
  /**
2925
2977
  * Validation Error
2926
2978
  */
2927
2979
  422: HttpValidationError;
2928
2980
  };
2929
- export type UpdateMentalModelError = UpdateMentalModelErrors[keyof UpdateMentalModelErrors];
2930
- export type UpdateMentalModelResponses = {
2981
+ type UpdateMentalModelResponses = {
2931
2982
  /**
2932
2983
  * Successful Response
2933
2984
  */
2934
2985
  200: MentalModelResponse;
2935
2986
  };
2936
- export type UpdateMentalModelResponse = UpdateMentalModelResponses[keyof UpdateMentalModelResponses];
2937
- export type GetMentalModelHistoryData = {
2987
+ type GetMentalModelHistoryData = {
2938
2988
  body?: never;
2939
2989
  headers?: {
2940
2990
  /**
@@ -2955,20 +3005,19 @@ export type GetMentalModelHistoryData = {
2955
3005
  query?: never;
2956
3006
  url: "/v1/default/banks/{bank_id}/mental-models/{mental_model_id}/history";
2957
3007
  };
2958
- export type GetMentalModelHistoryErrors = {
3008
+ type GetMentalModelHistoryErrors = {
2959
3009
  /**
2960
3010
  * Validation Error
2961
3011
  */
2962
3012
  422: HttpValidationError;
2963
3013
  };
2964
- export type GetMentalModelHistoryError = GetMentalModelHistoryErrors[keyof GetMentalModelHistoryErrors];
2965
- export type GetMentalModelHistoryResponses = {
3014
+ type GetMentalModelHistoryResponses = {
2966
3015
  /**
2967
3016
  * Successful Response
2968
3017
  */
2969
3018
  200: unknown;
2970
3019
  };
2971
- export type RefreshMentalModelData = {
3020
+ type RefreshMentalModelData = {
2972
3021
  body?: never;
2973
3022
  headers?: {
2974
3023
  /**
@@ -2989,21 +3038,19 @@ export type RefreshMentalModelData = {
2989
3038
  query?: never;
2990
3039
  url: "/v1/default/banks/{bank_id}/mental-models/{mental_model_id}/refresh";
2991
3040
  };
2992
- export type RefreshMentalModelErrors = {
3041
+ type RefreshMentalModelErrors = {
2993
3042
  /**
2994
3043
  * Validation Error
2995
3044
  */
2996
3045
  422: HttpValidationError;
2997
3046
  };
2998
- export type RefreshMentalModelError = RefreshMentalModelErrors[keyof RefreshMentalModelErrors];
2999
- export type RefreshMentalModelResponses = {
3047
+ type RefreshMentalModelResponses = {
3000
3048
  /**
3001
3049
  * Successful Response
3002
3050
  */
3003
3051
  200: AsyncOperationSubmitResponse;
3004
3052
  };
3005
- export type RefreshMentalModelResponse = RefreshMentalModelResponses[keyof RefreshMentalModelResponses];
3006
- export type ListDirectivesData = {
3053
+ type ListDirectivesData = {
3007
3054
  body?: never;
3008
3055
  headers?: {
3009
3056
  /**
@@ -3047,21 +3094,19 @@ export type ListDirectivesData = {
3047
3094
  };
3048
3095
  url: "/v1/default/banks/{bank_id}/directives";
3049
3096
  };
3050
- export type ListDirectivesErrors = {
3097
+ type ListDirectivesErrors = {
3051
3098
  /**
3052
3099
  * Validation Error
3053
3100
  */
3054
3101
  422: HttpValidationError;
3055
3102
  };
3056
- export type ListDirectivesError = ListDirectivesErrors[keyof ListDirectivesErrors];
3057
- export type ListDirectivesResponses = {
3103
+ type ListDirectivesResponses = {
3058
3104
  /**
3059
3105
  * Successful Response
3060
3106
  */
3061
3107
  200: DirectiveListResponse;
3062
3108
  };
3063
- export type ListDirectivesResponse = ListDirectivesResponses[keyof ListDirectivesResponses];
3064
- export type CreateDirectiveData = {
3109
+ type CreateDirectiveData = {
3065
3110
  body: CreateDirectiveRequest;
3066
3111
  headers?: {
3067
3112
  /**
@@ -3078,21 +3123,19 @@ export type CreateDirectiveData = {
3078
3123
  query?: never;
3079
3124
  url: "/v1/default/banks/{bank_id}/directives";
3080
3125
  };
3081
- export type CreateDirectiveErrors = {
3126
+ type CreateDirectiveErrors = {
3082
3127
  /**
3083
3128
  * Validation Error
3084
3129
  */
3085
3130
  422: HttpValidationError;
3086
3131
  };
3087
- export type CreateDirectiveError = CreateDirectiveErrors[keyof CreateDirectiveErrors];
3088
- export type CreateDirectiveResponses = {
3132
+ type CreateDirectiveResponses = {
3089
3133
  /**
3090
3134
  * Successful Response
3091
3135
  */
3092
3136
  200: DirectiveResponse;
3093
3137
  };
3094
- export type CreateDirectiveResponse = CreateDirectiveResponses[keyof CreateDirectiveResponses];
3095
- export type DeleteDirectiveData = {
3138
+ type DeleteDirectiveData = {
3096
3139
  body?: never;
3097
3140
  headers?: {
3098
3141
  /**
@@ -3113,20 +3156,19 @@ export type DeleteDirectiveData = {
3113
3156
  query?: never;
3114
3157
  url: "/v1/default/banks/{bank_id}/directives/{directive_id}";
3115
3158
  };
3116
- export type DeleteDirectiveErrors = {
3159
+ type DeleteDirectiveErrors = {
3117
3160
  /**
3118
3161
  * Validation Error
3119
3162
  */
3120
3163
  422: HttpValidationError;
3121
3164
  };
3122
- export type DeleteDirectiveError = DeleteDirectiveErrors[keyof DeleteDirectiveErrors];
3123
- export type DeleteDirectiveResponses = {
3165
+ type DeleteDirectiveResponses = {
3124
3166
  /**
3125
3167
  * Successful Response
3126
3168
  */
3127
3169
  200: unknown;
3128
3170
  };
3129
- export type GetDirectiveData = {
3171
+ type GetDirectiveData = {
3130
3172
  body?: never;
3131
3173
  headers?: {
3132
3174
  /**
@@ -3147,21 +3189,19 @@ export type GetDirectiveData = {
3147
3189
  query?: never;
3148
3190
  url: "/v1/default/banks/{bank_id}/directives/{directive_id}";
3149
3191
  };
3150
- export type GetDirectiveErrors = {
3192
+ type GetDirectiveErrors = {
3151
3193
  /**
3152
3194
  * Validation Error
3153
3195
  */
3154
3196
  422: HttpValidationError;
3155
3197
  };
3156
- export type GetDirectiveError = GetDirectiveErrors[keyof GetDirectiveErrors];
3157
- export type GetDirectiveResponses = {
3198
+ type GetDirectiveResponses = {
3158
3199
  /**
3159
3200
  * Successful Response
3160
3201
  */
3161
3202
  200: DirectiveResponse;
3162
3203
  };
3163
- export type GetDirectiveResponse = GetDirectiveResponses[keyof GetDirectiveResponses];
3164
- export type UpdateDirectiveData = {
3204
+ type UpdateDirectiveData = {
3165
3205
  body: UpdateDirectiveRequest;
3166
3206
  headers?: {
3167
3207
  /**
@@ -3182,21 +3222,19 @@ export type UpdateDirectiveData = {
3182
3222
  query?: never;
3183
3223
  url: "/v1/default/banks/{bank_id}/directives/{directive_id}";
3184
3224
  };
3185
- export type UpdateDirectiveErrors = {
3225
+ type UpdateDirectiveErrors = {
3186
3226
  /**
3187
3227
  * Validation Error
3188
3228
  */
3189
3229
  422: HttpValidationError;
3190
3230
  };
3191
- export type UpdateDirectiveError = UpdateDirectiveErrors[keyof UpdateDirectiveErrors];
3192
- export type UpdateDirectiveResponses = {
3231
+ type UpdateDirectiveResponses = {
3193
3232
  /**
3194
3233
  * Successful Response
3195
3234
  */
3196
3235
  200: DirectiveResponse;
3197
3236
  };
3198
- export type UpdateDirectiveResponse = UpdateDirectiveResponses[keyof UpdateDirectiveResponses];
3199
- export type ListDocumentsData = {
3237
+ type ListDocumentsData = {
3200
3238
  body?: never;
3201
3239
  headers?: {
3202
3240
  /**
@@ -3240,21 +3278,19 @@ export type ListDocumentsData = {
3240
3278
  };
3241
3279
  url: "/v1/default/banks/{bank_id}/documents";
3242
3280
  };
3243
- export type ListDocumentsErrors = {
3281
+ type ListDocumentsErrors = {
3244
3282
  /**
3245
3283
  * Validation Error
3246
3284
  */
3247
3285
  422: HttpValidationError;
3248
3286
  };
3249
- export type ListDocumentsError = ListDocumentsErrors[keyof ListDocumentsErrors];
3250
- export type ListDocumentsResponses = {
3287
+ type ListDocumentsResponses = {
3251
3288
  /**
3252
3289
  * Successful Response
3253
3290
  */
3254
3291
  200: ListDocumentsResponse;
3255
3292
  };
3256
- export type ListDocumentsResponse2 = ListDocumentsResponses[keyof ListDocumentsResponses];
3257
- export type DeleteDocumentData = {
3293
+ type DeleteDocumentData = {
3258
3294
  body?: never;
3259
3295
  headers?: {
3260
3296
  /**
@@ -3275,21 +3311,19 @@ export type DeleteDocumentData = {
3275
3311
  query?: never;
3276
3312
  url: "/v1/default/banks/{bank_id}/documents/{document_id}";
3277
3313
  };
3278
- export type DeleteDocumentErrors = {
3314
+ type DeleteDocumentErrors = {
3279
3315
  /**
3280
3316
  * Validation Error
3281
3317
  */
3282
3318
  422: HttpValidationError;
3283
3319
  };
3284
- export type DeleteDocumentError = DeleteDocumentErrors[keyof DeleteDocumentErrors];
3285
- export type DeleteDocumentResponses = {
3320
+ type DeleteDocumentResponses = {
3286
3321
  /**
3287
3322
  * Successful Response
3288
3323
  */
3289
3324
  200: DeleteDocumentResponse;
3290
3325
  };
3291
- export type DeleteDocumentResponse2 = DeleteDocumentResponses[keyof DeleteDocumentResponses];
3292
- export type GetDocumentData = {
3326
+ type GetDocumentData = {
3293
3327
  body?: never;
3294
3328
  headers?: {
3295
3329
  /**
@@ -3310,21 +3344,19 @@ export type GetDocumentData = {
3310
3344
  query?: never;
3311
3345
  url: "/v1/default/banks/{bank_id}/documents/{document_id}";
3312
3346
  };
3313
- export type GetDocumentErrors = {
3347
+ type GetDocumentErrors = {
3314
3348
  /**
3315
3349
  * Validation Error
3316
3350
  */
3317
3351
  422: HttpValidationError;
3318
3352
  };
3319
- export type GetDocumentError = GetDocumentErrors[keyof GetDocumentErrors];
3320
- export type GetDocumentResponses = {
3353
+ type GetDocumentResponses = {
3321
3354
  /**
3322
3355
  * Successful Response
3323
3356
  */
3324
3357
  200: DocumentResponse;
3325
3358
  };
3326
- export type GetDocumentResponse = GetDocumentResponses[keyof GetDocumentResponses];
3327
- export type UpdateDocumentData = {
3359
+ type UpdateDocumentData = {
3328
3360
  body: UpdateDocumentRequest;
3329
3361
  headers?: {
3330
3362
  /**
@@ -3345,21 +3377,19 @@ export type UpdateDocumentData = {
3345
3377
  query?: never;
3346
3378
  url: "/v1/default/banks/{bank_id}/documents/{document_id}";
3347
3379
  };
3348
- export type UpdateDocumentErrors = {
3380
+ type UpdateDocumentErrors = {
3349
3381
  /**
3350
3382
  * Validation Error
3351
3383
  */
3352
3384
  422: HttpValidationError;
3353
3385
  };
3354
- export type UpdateDocumentError = UpdateDocumentErrors[keyof UpdateDocumentErrors];
3355
- export type UpdateDocumentResponses = {
3386
+ type UpdateDocumentResponses = {
3356
3387
  /**
3357
3388
  * Successful Response
3358
3389
  */
3359
3390
  200: UpdateDocumentResponse;
3360
3391
  };
3361
- export type UpdateDocumentResponse2 = UpdateDocumentResponses[keyof UpdateDocumentResponses];
3362
- export type ListTagsData = {
3392
+ type ListTagsData = {
3363
3393
  body?: never;
3364
3394
  headers?: {
3365
3395
  /**
@@ -3395,21 +3425,19 @@ export type ListTagsData = {
3395
3425
  };
3396
3426
  url: "/v1/default/banks/{bank_id}/tags";
3397
3427
  };
3398
- export type ListTagsErrors = {
3428
+ type ListTagsErrors = {
3399
3429
  /**
3400
3430
  * Validation Error
3401
3431
  */
3402
3432
  422: HttpValidationError;
3403
3433
  };
3404
- export type ListTagsError = ListTagsErrors[keyof ListTagsErrors];
3405
- export type ListTagsResponses = {
3434
+ type ListTagsResponses = {
3406
3435
  /**
3407
3436
  * Successful Response
3408
3437
  */
3409
3438
  200: ListTagsResponse;
3410
3439
  };
3411
- export type ListTagsResponse2 = ListTagsResponses[keyof ListTagsResponses];
3412
- export type GetChunkData = {
3440
+ type GetChunkData = {
3413
3441
  body?: never;
3414
3442
  headers?: {
3415
3443
  /**
@@ -3426,21 +3454,19 @@ export type GetChunkData = {
3426
3454
  query?: never;
3427
3455
  url: "/v1/default/chunks/{chunk_id}";
3428
3456
  };
3429
- export type GetChunkErrors = {
3457
+ type GetChunkErrors = {
3430
3458
  /**
3431
3459
  * Validation Error
3432
3460
  */
3433
3461
  422: HttpValidationError;
3434
3462
  };
3435
- export type GetChunkError = GetChunkErrors[keyof GetChunkErrors];
3436
- export type GetChunkResponses = {
3463
+ type GetChunkResponses = {
3437
3464
  /**
3438
3465
  * Successful Response
3439
3466
  */
3440
3467
  200: ChunkResponse;
3441
3468
  };
3442
- export type GetChunkResponse = GetChunkResponses[keyof GetChunkResponses];
3443
- export type ListOperationsData = {
3469
+ type ListOperationsData = {
3444
3470
  body?: never;
3445
3471
  headers?: {
3446
3472
  /**
@@ -3482,21 +3508,19 @@ export type ListOperationsData = {
3482
3508
  };
3483
3509
  url: "/v1/default/banks/{bank_id}/operations";
3484
3510
  };
3485
- export type ListOperationsErrors = {
3511
+ type ListOperationsErrors = {
3486
3512
  /**
3487
3513
  * Validation Error
3488
3514
  */
3489
3515
  422: HttpValidationError;
3490
3516
  };
3491
- export type ListOperationsError = ListOperationsErrors[keyof ListOperationsErrors];
3492
- export type ListOperationsResponses = {
3517
+ type ListOperationsResponses = {
3493
3518
  /**
3494
3519
  * Successful Response
3495
3520
  */
3496
3521
  200: OperationsListResponse;
3497
3522
  };
3498
- export type ListOperationsResponse = ListOperationsResponses[keyof ListOperationsResponses];
3499
- export type CancelOperationData = {
3523
+ type CancelOperationData = {
3500
3524
  body?: never;
3501
3525
  headers?: {
3502
3526
  /**
@@ -3517,21 +3541,19 @@ export type CancelOperationData = {
3517
3541
  query?: never;
3518
3542
  url: "/v1/default/banks/{bank_id}/operations/{operation_id}";
3519
3543
  };
3520
- export type CancelOperationErrors = {
3544
+ type CancelOperationErrors = {
3521
3545
  /**
3522
3546
  * Validation Error
3523
3547
  */
3524
3548
  422: HttpValidationError;
3525
3549
  };
3526
- export type CancelOperationError = CancelOperationErrors[keyof CancelOperationErrors];
3527
- export type CancelOperationResponses = {
3550
+ type CancelOperationResponses = {
3528
3551
  /**
3529
3552
  * Successful Response
3530
3553
  */
3531
3554
  200: CancelOperationResponse;
3532
3555
  };
3533
- export type CancelOperationResponse2 = CancelOperationResponses[keyof CancelOperationResponses];
3534
- export type GetOperationStatusData = {
3556
+ type GetOperationStatusData = {
3535
3557
  body?: never;
3536
3558
  headers?: {
3537
3559
  /**
@@ -3552,21 +3574,19 @@ export type GetOperationStatusData = {
3552
3574
  query?: never;
3553
3575
  url: "/v1/default/banks/{bank_id}/operations/{operation_id}";
3554
3576
  };
3555
- export type GetOperationStatusErrors = {
3577
+ type GetOperationStatusErrors = {
3556
3578
  /**
3557
3579
  * Validation Error
3558
3580
  */
3559
3581
  422: HttpValidationError;
3560
3582
  };
3561
- export type GetOperationStatusError = GetOperationStatusErrors[keyof GetOperationStatusErrors];
3562
- export type GetOperationStatusResponses = {
3583
+ type GetOperationStatusResponses = {
3563
3584
  /**
3564
3585
  * Successful Response
3565
3586
  */
3566
3587
  200: OperationStatusResponse;
3567
3588
  };
3568
- export type GetOperationStatusResponse = GetOperationStatusResponses[keyof GetOperationStatusResponses];
3569
- export type RetryOperationData = {
3589
+ type RetryOperationData = {
3570
3590
  body?: never;
3571
3591
  headers?: {
3572
3592
  /**
@@ -3587,21 +3607,19 @@ export type RetryOperationData = {
3587
3607
  query?: never;
3588
3608
  url: "/v1/default/banks/{bank_id}/operations/{operation_id}/retry";
3589
3609
  };
3590
- export type RetryOperationErrors = {
3610
+ type RetryOperationErrors = {
3591
3611
  /**
3592
3612
  * Validation Error
3593
3613
  */
3594
3614
  422: HttpValidationError;
3595
3615
  };
3596
- export type RetryOperationError = RetryOperationErrors[keyof RetryOperationErrors];
3597
- export type RetryOperationResponses = {
3616
+ type RetryOperationResponses = {
3598
3617
  /**
3599
3618
  * Successful Response
3600
3619
  */
3601
3620
  200: RetryOperationResponse;
3602
3621
  };
3603
- export type RetryOperationResponse2 = RetryOperationResponses[keyof RetryOperationResponses];
3604
- export type GetBankProfileData = {
3622
+ type GetBankProfileData = {
3605
3623
  body?: never;
3606
3624
  headers?: {
3607
3625
  /**
@@ -3618,21 +3636,19 @@ export type GetBankProfileData = {
3618
3636
  query?: never;
3619
3637
  url: "/v1/default/banks/{bank_id}/profile";
3620
3638
  };
3621
- export type GetBankProfileErrors = {
3639
+ type GetBankProfileErrors = {
3622
3640
  /**
3623
3641
  * Validation Error
3624
3642
  */
3625
3643
  422: HttpValidationError;
3626
3644
  };
3627
- export type GetBankProfileError = GetBankProfileErrors[keyof GetBankProfileErrors];
3628
- export type GetBankProfileResponses = {
3645
+ type GetBankProfileResponses = {
3629
3646
  /**
3630
3647
  * Successful Response
3631
3648
  */
3632
3649
  200: BankProfileResponse;
3633
3650
  };
3634
- export type GetBankProfileResponse = GetBankProfileResponses[keyof GetBankProfileResponses];
3635
- export type UpdateBankDispositionData = {
3651
+ type UpdateBankDispositionData = {
3636
3652
  body: UpdateDispositionRequest;
3637
3653
  headers?: {
3638
3654
  /**
@@ -3649,21 +3665,19 @@ export type UpdateBankDispositionData = {
3649
3665
  query?: never;
3650
3666
  url: "/v1/default/banks/{bank_id}/profile";
3651
3667
  };
3652
- export type UpdateBankDispositionErrors = {
3668
+ type UpdateBankDispositionErrors = {
3653
3669
  /**
3654
3670
  * Validation Error
3655
3671
  */
3656
3672
  422: HttpValidationError;
3657
3673
  };
3658
- export type UpdateBankDispositionError = UpdateBankDispositionErrors[keyof UpdateBankDispositionErrors];
3659
- export type UpdateBankDispositionResponses = {
3674
+ type UpdateBankDispositionResponses = {
3660
3675
  /**
3661
3676
  * Successful Response
3662
3677
  */
3663
3678
  200: BankProfileResponse;
3664
3679
  };
3665
- export type UpdateBankDispositionResponse = UpdateBankDispositionResponses[keyof UpdateBankDispositionResponses];
3666
- export type AddBankBackgroundData = {
3680
+ type AddBankBackgroundData = {
3667
3681
  body: AddBackgroundRequest;
3668
3682
  headers?: {
3669
3683
  /**
@@ -3680,21 +3694,19 @@ export type AddBankBackgroundData = {
3680
3694
  query?: never;
3681
3695
  url: "/v1/default/banks/{bank_id}/background";
3682
3696
  };
3683
- export type AddBankBackgroundErrors = {
3697
+ type AddBankBackgroundErrors = {
3684
3698
  /**
3685
3699
  * Validation Error
3686
3700
  */
3687
3701
  422: HttpValidationError;
3688
3702
  };
3689
- export type AddBankBackgroundError = AddBankBackgroundErrors[keyof AddBankBackgroundErrors];
3690
- export type AddBankBackgroundResponses = {
3703
+ type AddBankBackgroundResponses = {
3691
3704
  /**
3692
3705
  * Successful Response
3693
3706
  */
3694
3707
  200: BackgroundResponse;
3695
3708
  };
3696
- export type AddBankBackgroundResponse = AddBankBackgroundResponses[keyof AddBankBackgroundResponses];
3697
- export type DeleteBankData = {
3709
+ type DeleteBankData = {
3698
3710
  body?: never;
3699
3711
  headers?: {
3700
3712
  /**
@@ -3711,21 +3723,19 @@ export type DeleteBankData = {
3711
3723
  query?: never;
3712
3724
  url: "/v1/default/banks/{bank_id}";
3713
3725
  };
3714
- export type DeleteBankErrors = {
3726
+ type DeleteBankErrors = {
3715
3727
  /**
3716
3728
  * Validation Error
3717
3729
  */
3718
3730
  422: HttpValidationError;
3719
3731
  };
3720
- export type DeleteBankError = DeleteBankErrors[keyof DeleteBankErrors];
3721
- export type DeleteBankResponses = {
3732
+ type DeleteBankResponses = {
3722
3733
  /**
3723
3734
  * Successful Response
3724
3735
  */
3725
3736
  200: DeleteResponse;
3726
3737
  };
3727
- export type DeleteBankResponse = DeleteBankResponses[keyof DeleteBankResponses];
3728
- export type UpdateBankData = {
3738
+ type UpdateBankData = {
3729
3739
  body: CreateBankRequest;
3730
3740
  headers?: {
3731
3741
  /**
@@ -3742,21 +3752,19 @@ export type UpdateBankData = {
3742
3752
  query?: never;
3743
3753
  url: "/v1/default/banks/{bank_id}";
3744
3754
  };
3745
- export type UpdateBankErrors = {
3755
+ type UpdateBankErrors = {
3746
3756
  /**
3747
3757
  * Validation Error
3748
3758
  */
3749
3759
  422: HttpValidationError;
3750
3760
  };
3751
- export type UpdateBankError = UpdateBankErrors[keyof UpdateBankErrors];
3752
- export type UpdateBankResponses = {
3761
+ type UpdateBankResponses = {
3753
3762
  /**
3754
3763
  * Successful Response
3755
3764
  */
3756
3765
  200: BankProfileResponse;
3757
3766
  };
3758
- export type UpdateBankResponse = UpdateBankResponses[keyof UpdateBankResponses];
3759
- export type CreateOrUpdateBankData = {
3767
+ type CreateOrUpdateBankData = {
3760
3768
  body: CreateBankRequest;
3761
3769
  headers?: {
3762
3770
  /**
@@ -3773,21 +3781,19 @@ export type CreateOrUpdateBankData = {
3773
3781
  query?: never;
3774
3782
  url: "/v1/default/banks/{bank_id}";
3775
3783
  };
3776
- export type CreateOrUpdateBankErrors = {
3784
+ type CreateOrUpdateBankErrors = {
3777
3785
  /**
3778
3786
  * Validation Error
3779
3787
  */
3780
3788
  422: HttpValidationError;
3781
3789
  };
3782
- export type CreateOrUpdateBankError = CreateOrUpdateBankErrors[keyof CreateOrUpdateBankErrors];
3783
- export type CreateOrUpdateBankResponses = {
3790
+ type CreateOrUpdateBankResponses = {
3784
3791
  /**
3785
3792
  * Successful Response
3786
3793
  */
3787
3794
  200: BankProfileResponse;
3788
3795
  };
3789
- export type CreateOrUpdateBankResponse = CreateOrUpdateBankResponses[keyof CreateOrUpdateBankResponses];
3790
- export type ClearObservationsData = {
3796
+ type ClearObservationsData = {
3791
3797
  body?: never;
3792
3798
  headers?: {
3793
3799
  /**
@@ -3804,21 +3810,48 @@ export type ClearObservationsData = {
3804
3810
  query?: never;
3805
3811
  url: "/v1/default/banks/{bank_id}/observations";
3806
3812
  };
3807
- export type ClearObservationsErrors = {
3813
+ type ClearObservationsErrors = {
3808
3814
  /**
3809
3815
  * Validation Error
3810
3816
  */
3811
3817
  422: HttpValidationError;
3812
3818
  };
3813
- export type ClearObservationsError = ClearObservationsErrors[keyof ClearObservationsErrors];
3814
- export type ClearObservationsResponses = {
3819
+ type ClearObservationsResponses = {
3815
3820
  /**
3816
3821
  * Successful Response
3817
3822
  */
3818
3823
  200: DeleteResponse;
3819
3824
  };
3820
- export type ClearObservationsResponse = ClearObservationsResponses[keyof ClearObservationsResponses];
3821
- export type ClearMemoryObservationsData = {
3825
+ type RecoverConsolidationData = {
3826
+ body?: never;
3827
+ headers?: {
3828
+ /**
3829
+ * Authorization
3830
+ */
3831
+ authorization?: string | null;
3832
+ };
3833
+ path: {
3834
+ /**
3835
+ * Bank Id
3836
+ */
3837
+ bank_id: string;
3838
+ };
3839
+ query?: never;
3840
+ url: "/v1/default/banks/{bank_id}/consolidation/recover";
3841
+ };
3842
+ type RecoverConsolidationErrors = {
3843
+ /**
3844
+ * Validation Error
3845
+ */
3846
+ 422: HttpValidationError;
3847
+ };
3848
+ type RecoverConsolidationResponses = {
3849
+ /**
3850
+ * Successful Response
3851
+ */
3852
+ 200: RecoverConsolidationResponse;
3853
+ };
3854
+ type ClearMemoryObservationsData = {
3822
3855
  body?: never;
3823
3856
  headers?: {
3824
3857
  /**
@@ -3839,21 +3872,19 @@ export type ClearMemoryObservationsData = {
3839
3872
  query?: never;
3840
3873
  url: "/v1/default/banks/{bank_id}/memories/{memory_id}/observations";
3841
3874
  };
3842
- export type ClearMemoryObservationsErrors = {
3875
+ type ClearMemoryObservationsErrors = {
3843
3876
  /**
3844
3877
  * Validation Error
3845
3878
  */
3846
3879
  422: HttpValidationError;
3847
3880
  };
3848
- export type ClearMemoryObservationsError = ClearMemoryObservationsErrors[keyof ClearMemoryObservationsErrors];
3849
- export type ClearMemoryObservationsResponses = {
3881
+ type ClearMemoryObservationsResponses = {
3850
3882
  /**
3851
3883
  * Successful Response
3852
3884
  */
3853
3885
  200: ClearMemoryObservationsResponse;
3854
3886
  };
3855
- export type ClearMemoryObservationsResponse2 = ClearMemoryObservationsResponses[keyof ClearMemoryObservationsResponses];
3856
- export type ResetBankConfigData = {
3887
+ type ResetBankConfigData = {
3857
3888
  body?: never;
3858
3889
  headers?: {
3859
3890
  /**
@@ -3870,21 +3901,19 @@ export type ResetBankConfigData = {
3870
3901
  query?: never;
3871
3902
  url: "/v1/default/banks/{bank_id}/config";
3872
3903
  };
3873
- export type ResetBankConfigErrors = {
3904
+ type ResetBankConfigErrors = {
3874
3905
  /**
3875
3906
  * Validation Error
3876
3907
  */
3877
3908
  422: HttpValidationError;
3878
3909
  };
3879
- export type ResetBankConfigError = ResetBankConfigErrors[keyof ResetBankConfigErrors];
3880
- export type ResetBankConfigResponses = {
3910
+ type ResetBankConfigResponses = {
3881
3911
  /**
3882
3912
  * Successful Response
3883
3913
  */
3884
3914
  200: BankConfigResponse;
3885
3915
  };
3886
- export type ResetBankConfigResponse = ResetBankConfigResponses[keyof ResetBankConfigResponses];
3887
- export type GetBankConfigData = {
3916
+ type GetBankConfigData = {
3888
3917
  body?: never;
3889
3918
  headers?: {
3890
3919
  /**
@@ -3901,21 +3930,19 @@ export type GetBankConfigData = {
3901
3930
  query?: never;
3902
3931
  url: "/v1/default/banks/{bank_id}/config";
3903
3932
  };
3904
- export type GetBankConfigErrors = {
3933
+ type GetBankConfigErrors = {
3905
3934
  /**
3906
3935
  * Validation Error
3907
3936
  */
3908
3937
  422: HttpValidationError;
3909
3938
  };
3910
- export type GetBankConfigError = GetBankConfigErrors[keyof GetBankConfigErrors];
3911
- export type GetBankConfigResponses = {
3939
+ type GetBankConfigResponses = {
3912
3940
  /**
3913
3941
  * Successful Response
3914
3942
  */
3915
3943
  200: BankConfigResponse;
3916
3944
  };
3917
- export type GetBankConfigResponse = GetBankConfigResponses[keyof GetBankConfigResponses];
3918
- export type UpdateBankConfigData = {
3945
+ type UpdateBankConfigData = {
3919
3946
  body: BankConfigUpdate;
3920
3947
  headers?: {
3921
3948
  /**
@@ -3932,21 +3959,19 @@ export type UpdateBankConfigData = {
3932
3959
  query?: never;
3933
3960
  url: "/v1/default/banks/{bank_id}/config";
3934
3961
  };
3935
- export type UpdateBankConfigErrors = {
3962
+ type UpdateBankConfigErrors = {
3936
3963
  /**
3937
3964
  * Validation Error
3938
3965
  */
3939
3966
  422: HttpValidationError;
3940
3967
  };
3941
- export type UpdateBankConfigError = UpdateBankConfigErrors[keyof UpdateBankConfigErrors];
3942
- export type UpdateBankConfigResponses = {
3968
+ type UpdateBankConfigResponses = {
3943
3969
  /**
3944
3970
  * Successful Response
3945
3971
  */
3946
3972
  200: BankConfigResponse;
3947
3973
  };
3948
- export type UpdateBankConfigResponse = UpdateBankConfigResponses[keyof UpdateBankConfigResponses];
3949
- export type TriggerConsolidationData = {
3974
+ type TriggerConsolidationData = {
3950
3975
  body?: never;
3951
3976
  headers?: {
3952
3977
  /**
@@ -3963,21 +3988,19 @@ export type TriggerConsolidationData = {
3963
3988
  query?: never;
3964
3989
  url: "/v1/default/banks/{bank_id}/consolidate";
3965
3990
  };
3966
- export type TriggerConsolidationErrors = {
3991
+ type TriggerConsolidationErrors = {
3967
3992
  /**
3968
3993
  * Validation Error
3969
3994
  */
3970
3995
  422: HttpValidationError;
3971
3996
  };
3972
- export type TriggerConsolidationError = TriggerConsolidationErrors[keyof TriggerConsolidationErrors];
3973
- export type TriggerConsolidationResponses = {
3997
+ type TriggerConsolidationResponses = {
3974
3998
  /**
3975
3999
  * Successful Response
3976
4000
  */
3977
4001
  200: ConsolidationResponse;
3978
4002
  };
3979
- export type TriggerConsolidationResponse = TriggerConsolidationResponses[keyof TriggerConsolidationResponses];
3980
- export type ListWebhooksData = {
4003
+ type ListWebhooksData = {
3981
4004
  body?: never;
3982
4005
  headers?: {
3983
4006
  /**
@@ -3994,21 +4017,19 @@ export type ListWebhooksData = {
3994
4017
  query?: never;
3995
4018
  url: "/v1/default/banks/{bank_id}/webhooks";
3996
4019
  };
3997
- export type ListWebhooksErrors = {
4020
+ type ListWebhooksErrors = {
3998
4021
  /**
3999
4022
  * Validation Error
4000
4023
  */
4001
4024
  422: HttpValidationError;
4002
4025
  };
4003
- export type ListWebhooksError = ListWebhooksErrors[keyof ListWebhooksErrors];
4004
- export type ListWebhooksResponses = {
4026
+ type ListWebhooksResponses = {
4005
4027
  /**
4006
4028
  * Successful Response
4007
4029
  */
4008
4030
  200: WebhookListResponse;
4009
4031
  };
4010
- export type ListWebhooksResponse = ListWebhooksResponses[keyof ListWebhooksResponses];
4011
- export type CreateWebhookData = {
4032
+ type CreateWebhookData = {
4012
4033
  body: CreateWebhookRequest;
4013
4034
  headers?: {
4014
4035
  /**
@@ -4025,21 +4046,19 @@ export type CreateWebhookData = {
4025
4046
  query?: never;
4026
4047
  url: "/v1/default/banks/{bank_id}/webhooks";
4027
4048
  };
4028
- export type CreateWebhookErrors = {
4049
+ type CreateWebhookErrors = {
4029
4050
  /**
4030
4051
  * Validation Error
4031
4052
  */
4032
4053
  422: HttpValidationError;
4033
4054
  };
4034
- export type CreateWebhookError = CreateWebhookErrors[keyof CreateWebhookErrors];
4035
- export type CreateWebhookResponses = {
4055
+ type CreateWebhookResponses = {
4036
4056
  /**
4037
4057
  * Successful Response
4038
4058
  */
4039
4059
  201: WebhookResponse;
4040
4060
  };
4041
- export type CreateWebhookResponse = CreateWebhookResponses[keyof CreateWebhookResponses];
4042
- export type DeleteWebhookData = {
4061
+ type DeleteWebhookData = {
4043
4062
  body?: never;
4044
4063
  headers?: {
4045
4064
  /**
@@ -4060,21 +4079,19 @@ export type DeleteWebhookData = {
4060
4079
  query?: never;
4061
4080
  url: "/v1/default/banks/{bank_id}/webhooks/{webhook_id}";
4062
4081
  };
4063
- export type DeleteWebhookErrors = {
4082
+ type DeleteWebhookErrors = {
4064
4083
  /**
4065
4084
  * Validation Error
4066
4085
  */
4067
4086
  422: HttpValidationError;
4068
4087
  };
4069
- export type DeleteWebhookError = DeleteWebhookErrors[keyof DeleteWebhookErrors];
4070
- export type DeleteWebhookResponses = {
4088
+ type DeleteWebhookResponses = {
4071
4089
  /**
4072
4090
  * Successful Response
4073
4091
  */
4074
4092
  200: DeleteResponse;
4075
4093
  };
4076
- export type DeleteWebhookResponse = DeleteWebhookResponses[keyof DeleteWebhookResponses];
4077
- export type UpdateWebhookData = {
4094
+ type UpdateWebhookData = {
4078
4095
  body: UpdateWebhookRequest;
4079
4096
  headers?: {
4080
4097
  /**
@@ -4095,21 +4112,19 @@ export type UpdateWebhookData = {
4095
4112
  query?: never;
4096
4113
  url: "/v1/default/banks/{bank_id}/webhooks/{webhook_id}";
4097
4114
  };
4098
- export type UpdateWebhookErrors = {
4115
+ type UpdateWebhookErrors = {
4099
4116
  /**
4100
4117
  * Validation Error
4101
4118
  */
4102
4119
  422: HttpValidationError;
4103
4120
  };
4104
- export type UpdateWebhookError = UpdateWebhookErrors[keyof UpdateWebhookErrors];
4105
- export type UpdateWebhookResponses = {
4121
+ type UpdateWebhookResponses = {
4106
4122
  /**
4107
4123
  * Successful Response
4108
4124
  */
4109
4125
  200: WebhookResponse;
4110
4126
  };
4111
- export type UpdateWebhookResponse = UpdateWebhookResponses[keyof UpdateWebhookResponses];
4112
- export type ListWebhookDeliveriesData = {
4127
+ type ListWebhookDeliveriesData = {
4113
4128
  body?: never;
4114
4129
  headers?: {
4115
4130
  /**
@@ -4143,21 +4158,19 @@ export type ListWebhookDeliveriesData = {
4143
4158
  };
4144
4159
  url: "/v1/default/banks/{bank_id}/webhooks/{webhook_id}/deliveries";
4145
4160
  };
4146
- export type ListWebhookDeliveriesErrors = {
4161
+ type ListWebhookDeliveriesErrors = {
4147
4162
  /**
4148
4163
  * Validation Error
4149
4164
  */
4150
4165
  422: HttpValidationError;
4151
4166
  };
4152
- export type ListWebhookDeliveriesError = ListWebhookDeliveriesErrors[keyof ListWebhookDeliveriesErrors];
4153
- export type ListWebhookDeliveriesResponses = {
4167
+ type ListWebhookDeliveriesResponses = {
4154
4168
  /**
4155
4169
  * Successful Response
4156
4170
  */
4157
4171
  200: WebhookDeliveryListResponse;
4158
4172
  };
4159
- export type ListWebhookDeliveriesResponse = ListWebhookDeliveriesResponses[keyof ListWebhookDeliveriesResponses];
4160
- export type ClearBankMemoriesData = {
4173
+ type ClearBankMemoriesData = {
4161
4174
  body?: never;
4162
4175
  headers?: {
4163
4176
  /**
@@ -4181,21 +4194,19 @@ export type ClearBankMemoriesData = {
4181
4194
  };
4182
4195
  url: "/v1/default/banks/{bank_id}/memories";
4183
4196
  };
4184
- export type ClearBankMemoriesErrors = {
4197
+ type ClearBankMemoriesErrors = {
4185
4198
  /**
4186
4199
  * Validation Error
4187
4200
  */
4188
4201
  422: HttpValidationError;
4189
4202
  };
4190
- export type ClearBankMemoriesError = ClearBankMemoriesErrors[keyof ClearBankMemoriesErrors];
4191
- export type ClearBankMemoriesResponses = {
4203
+ type ClearBankMemoriesResponses = {
4192
4204
  /**
4193
4205
  * Successful Response
4194
4206
  */
4195
4207
  200: DeleteResponse;
4196
4208
  };
4197
- export type ClearBankMemoriesResponse = ClearBankMemoriesResponses[keyof ClearBankMemoriesResponses];
4198
- export type RetainMemoriesData = {
4209
+ type RetainMemoriesData = {
4199
4210
  body: RetainRequest;
4200
4211
  headers?: {
4201
4212
  /**
@@ -4212,21 +4223,19 @@ export type RetainMemoriesData = {
4212
4223
  query?: never;
4213
4224
  url: "/v1/default/banks/{bank_id}/memories";
4214
4225
  };
4215
- export type RetainMemoriesErrors = {
4226
+ type RetainMemoriesErrors = {
4216
4227
  /**
4217
4228
  * Validation Error
4218
4229
  */
4219
4230
  422: HttpValidationError;
4220
4231
  };
4221
- export type RetainMemoriesError = RetainMemoriesErrors[keyof RetainMemoriesErrors];
4222
- export type RetainMemoriesResponses = {
4232
+ type RetainMemoriesResponses = {
4223
4233
  /**
4224
4234
  * Successful Response
4225
4235
  */
4226
4236
  200: RetainResponse;
4227
4237
  };
4228
- export type RetainMemoriesResponse = RetainMemoriesResponses[keyof RetainMemoriesResponses];
4229
- export type FileRetainData = {
4238
+ type FileRetainData = {
4230
4239
  body: BodyFileRetain;
4231
4240
  headers?: {
4232
4241
  /**
@@ -4243,18 +4252,1133 @@ export type FileRetainData = {
4243
4252
  query?: never;
4244
4253
  url: "/v1/default/banks/{bank_id}/files/retain";
4245
4254
  };
4246
- export type FileRetainErrors = {
4255
+ type FileRetainErrors = {
4247
4256
  /**
4248
4257
  * Validation Error
4249
4258
  */
4250
4259
  422: HttpValidationError;
4251
4260
  };
4252
- export type FileRetainError = FileRetainErrors[keyof FileRetainErrors];
4253
- export type FileRetainResponses = {
4261
+ type FileRetainResponses = {
4254
4262
  /**
4255
4263
  * Successful Response
4256
4264
  */
4257
4265
  200: FileRetainResponse;
4258
4266
  };
4259
- export type FileRetainResponse2 = FileRetainResponses[keyof FileRetainResponses];
4260
- //# sourceMappingURL=types.gen.d.ts.map
4267
+
4268
+ type AuthToken = string | undefined;
4269
+ interface Auth {
4270
+ /**
4271
+ * Which part of the request do we use to send the auth?
4272
+ *
4273
+ * @default 'header'
4274
+ */
4275
+ in?: "header" | "query" | "cookie";
4276
+ /**
4277
+ * Header or query parameter name.
4278
+ *
4279
+ * @default 'Authorization'
4280
+ */
4281
+ name?: string;
4282
+ scheme?: "basic" | "bearer";
4283
+ type: "apiKey" | "http";
4284
+ }
4285
+
4286
+ interface SerializerOptions<T> {
4287
+ /**
4288
+ * @default true
4289
+ */
4290
+ explode: boolean;
4291
+ style: T;
4292
+ }
4293
+ type ArrayStyle = "form" | "spaceDelimited" | "pipeDelimited";
4294
+ type ObjectStyle = "form" | "deepObject";
4295
+
4296
+ type QuerySerializer = (query: Record<string, unknown>) => string;
4297
+ type BodySerializer = (body: any) => any;
4298
+ type QuerySerializerOptionsObject = {
4299
+ allowReserved?: boolean;
4300
+ array?: Partial<SerializerOptions<ArrayStyle>>;
4301
+ object?: Partial<SerializerOptions<ObjectStyle>>;
4302
+ };
4303
+ type QuerySerializerOptions = QuerySerializerOptionsObject & {
4304
+ /**
4305
+ * Per-parameter serialization overrides. When provided, these settings
4306
+ * override the global array/object settings for specific parameter names.
4307
+ */
4308
+ parameters?: Record<string, QuerySerializerOptionsObject>;
4309
+ };
4310
+
4311
+ type HttpMethod = "connect" | "delete" | "get" | "head" | "options" | "patch" | "post" | "put" | "trace";
4312
+ type Client$1<RequestFn = never, Config = unknown, MethodFn = never, BuildUrlFn = never, SseFn = never> = {
4313
+ /**
4314
+ * Returns the final request URL.
4315
+ */
4316
+ buildUrl: BuildUrlFn;
4317
+ getConfig: () => Config;
4318
+ request: RequestFn;
4319
+ setConfig: (config: Config) => Config;
4320
+ } & {
4321
+ [K in HttpMethod]: MethodFn;
4322
+ } & ([SseFn] extends [never] ? {
4323
+ sse?: never;
4324
+ } : {
4325
+ sse: {
4326
+ [K in HttpMethod]: SseFn;
4327
+ };
4328
+ });
4329
+ interface Config$1 {
4330
+ /**
4331
+ * Auth token or a function returning auth token. The resolved value will be
4332
+ * added to the request payload as defined by its `security` array.
4333
+ */
4334
+ auth?: ((auth: Auth) => Promise<AuthToken> | AuthToken) | AuthToken;
4335
+ /**
4336
+ * A function for serializing request body parameter. By default,
4337
+ * {@link JSON.stringify()} will be used.
4338
+ */
4339
+ bodySerializer?: BodySerializer | null;
4340
+ /**
4341
+ * An object containing any HTTP headers that you want to pre-populate your
4342
+ * `Headers` object with.
4343
+ *
4344
+ * {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more}
4345
+ */
4346
+ headers?: RequestInit["headers"] | Record<string, string | number | boolean | (string | number | boolean)[] | null | undefined | unknown>;
4347
+ /**
4348
+ * The request method.
4349
+ *
4350
+ * {@link https://developer.mozilla.org/docs/Web/API/fetch#method See more}
4351
+ */
4352
+ method?: Uppercase<HttpMethod>;
4353
+ /**
4354
+ * A function for serializing request query parameters. By default, arrays
4355
+ * will be exploded in form style, objects will be exploded in deepObject
4356
+ * style, and reserved characters are percent-encoded.
4357
+ *
4358
+ * This method will have no effect if the native `paramsSerializer()` Axios
4359
+ * API function is used.
4360
+ *
4361
+ * {@link https://swagger.io/docs/specification/serialization/#query View examples}
4362
+ */
4363
+ querySerializer?: QuerySerializer | QuerySerializerOptions;
4364
+ /**
4365
+ * A function validating request data. This is useful if you want to ensure
4366
+ * the request conforms to the desired shape, so it can be safely sent to
4367
+ * the server.
4368
+ */
4369
+ requestValidator?: (data: unknown) => Promise<unknown>;
4370
+ /**
4371
+ * A function transforming response data before it's returned. This is useful
4372
+ * for post-processing data, e.g. converting ISO strings into Date objects.
4373
+ */
4374
+ responseTransformer?: (data: unknown) => Promise<unknown>;
4375
+ /**
4376
+ * A function validating response data. This is useful if you want to ensure
4377
+ * the response conforms to the desired shape, so it can be safely passed to
4378
+ * the transformers and returned to the user.
4379
+ */
4380
+ responseValidator?: (data: unknown) => Promise<unknown>;
4381
+ }
4382
+
4383
+ type ServerSentEventsOptions<TData = unknown> = Omit<RequestInit, "method"> & Pick<Config$1, "method" | "responseTransformer" | "responseValidator"> & {
4384
+ /**
4385
+ * Fetch API implementation. You can use this option to provide a custom
4386
+ * fetch instance.
4387
+ *
4388
+ * @default globalThis.fetch
4389
+ */
4390
+ fetch?: typeof fetch;
4391
+ /**
4392
+ * Implementing clients can call request interceptors inside this hook.
4393
+ */
4394
+ onRequest?: (url: string, init: RequestInit) => Promise<Request>;
4395
+ /**
4396
+ * Callback invoked when a network or parsing error occurs during streaming.
4397
+ *
4398
+ * This option applies only if the endpoint returns a stream of events.
4399
+ *
4400
+ * @param error The error that occurred.
4401
+ */
4402
+ onSseError?: (error: unknown) => void;
4403
+ /**
4404
+ * Callback invoked when an event is streamed from the server.
4405
+ *
4406
+ * This option applies only if the endpoint returns a stream of events.
4407
+ *
4408
+ * @param event Event streamed from the server.
4409
+ * @returns Nothing (void).
4410
+ */
4411
+ onSseEvent?: (event: StreamEvent<TData>) => void;
4412
+ serializedBody?: RequestInit["body"];
4413
+ /**
4414
+ * Default retry delay in milliseconds.
4415
+ *
4416
+ * This option applies only if the endpoint returns a stream of events.
4417
+ *
4418
+ * @default 3000
4419
+ */
4420
+ sseDefaultRetryDelay?: number;
4421
+ /**
4422
+ * Maximum number of retry attempts before giving up.
4423
+ */
4424
+ sseMaxRetryAttempts?: number;
4425
+ /**
4426
+ * Maximum retry delay in milliseconds.
4427
+ *
4428
+ * Applies only when exponential backoff is used.
4429
+ *
4430
+ * This option applies only if the endpoint returns a stream of events.
4431
+ *
4432
+ * @default 30000
4433
+ */
4434
+ sseMaxRetryDelay?: number;
4435
+ /**
4436
+ * Optional sleep function for retry backoff.
4437
+ *
4438
+ * Defaults to using `setTimeout`.
4439
+ */
4440
+ sseSleepFn?: (ms: number) => Promise<void>;
4441
+ url: string;
4442
+ };
4443
+ interface StreamEvent<TData = unknown> {
4444
+ data: TData;
4445
+ event?: string;
4446
+ id?: string;
4447
+ retry?: number;
4448
+ }
4449
+ type ServerSentEventsResult<TData = unknown, TReturn = void, TNext = unknown> = {
4450
+ stream: AsyncGenerator<TData extends Record<string, unknown> ? TData[keyof TData] : TData, TReturn, TNext>;
4451
+ };
4452
+
4453
+ type ErrInterceptor<Err, Res, Req, Options> = (error: Err, response: Res, request: Req, options: Options) => Err | Promise<Err>;
4454
+ type ReqInterceptor<Req, Options> = (request: Req, options: Options) => Req | Promise<Req>;
4455
+ type ResInterceptor<Res, Req, Options> = (response: Res, request: Req, options: Options) => Res | Promise<Res>;
4456
+ declare class Interceptors<Interceptor> {
4457
+ fns: Array<Interceptor | null>;
4458
+ clear(): void;
4459
+ eject(id: number | Interceptor): void;
4460
+ exists(id: number | Interceptor): boolean;
4461
+ getInterceptorIndex(id: number | Interceptor): number;
4462
+ update(id: number | Interceptor, fn: Interceptor): number | Interceptor | false;
4463
+ use(fn: Interceptor): number;
4464
+ }
4465
+ interface Middleware<Req, Res, Err, Options> {
4466
+ error: Interceptors<ErrInterceptor<Err, Res, Req, Options>>;
4467
+ request: Interceptors<ReqInterceptor<Req, Options>>;
4468
+ response: Interceptors<ResInterceptor<Res, Req, Options>>;
4469
+ }
4470
+ declare const createConfig: <T extends ClientOptions = ClientOptions>(override?: Config<Omit<ClientOptions, keyof T> & T>) => Config<Omit<ClientOptions, keyof T> & T>;
4471
+
4472
+ type ResponseStyle = "data" | "fields";
4473
+ interface Config<T extends ClientOptions = ClientOptions> extends Omit<RequestInit, "body" | "headers" | "method">, Config$1 {
4474
+ /**
4475
+ * Base URL for all requests made by this client.
4476
+ */
4477
+ baseUrl?: T["baseUrl"];
4478
+ /**
4479
+ * Fetch API implementation. You can use this option to provide a custom
4480
+ * fetch instance.
4481
+ *
4482
+ * @default globalThis.fetch
4483
+ */
4484
+ fetch?: typeof fetch;
4485
+ /**
4486
+ * Please don't use the Fetch client for Next.js applications. The `next`
4487
+ * options won't have any effect.
4488
+ *
4489
+ * Install {@link https://www.npmjs.com/package/@hey-api/client-next `@hey-api/client-next`} instead.
4490
+ */
4491
+ next?: never;
4492
+ /**
4493
+ * Return the response data parsed in a specified format. By default, `auto`
4494
+ * will infer the appropriate method from the `Content-Type` response header.
4495
+ * You can override this behavior with any of the {@link Body} methods.
4496
+ * Select `stream` if you don't want to parse response data at all.
4497
+ *
4498
+ * @default 'auto'
4499
+ */
4500
+ parseAs?: "arrayBuffer" | "auto" | "blob" | "formData" | "json" | "stream" | "text";
4501
+ /**
4502
+ * Should we return only data or multiple fields (data, error, response, etc.)?
4503
+ *
4504
+ * @default 'fields'
4505
+ */
4506
+ responseStyle?: ResponseStyle;
4507
+ /**
4508
+ * Throw an error instead of returning it in the response?
4509
+ *
4510
+ * @default false
4511
+ */
4512
+ throwOnError?: T["throwOnError"];
4513
+ }
4514
+ interface RequestOptions<TData = unknown, TResponseStyle extends ResponseStyle = "fields", ThrowOnError extends boolean = boolean, Url extends string = string> extends Config<{
4515
+ responseStyle: TResponseStyle;
4516
+ throwOnError: ThrowOnError;
4517
+ }>, Pick<ServerSentEventsOptions<TData>, "onSseError" | "onSseEvent" | "sseDefaultRetryDelay" | "sseMaxRetryAttempts" | "sseMaxRetryDelay"> {
4518
+ /**
4519
+ * Any body that you want to add to your request.
4520
+ *
4521
+ * {@link https://developer.mozilla.org/docs/Web/API/fetch#body}
4522
+ */
4523
+ body?: unknown;
4524
+ path?: Record<string, unknown>;
4525
+ query?: Record<string, unknown>;
4526
+ /**
4527
+ * Security mechanism(s) to use for the request.
4528
+ */
4529
+ security?: ReadonlyArray<Auth>;
4530
+ url: Url;
4531
+ }
4532
+ interface ResolvedRequestOptions<TResponseStyle extends ResponseStyle = "fields", ThrowOnError extends boolean = boolean, Url extends string = string> extends RequestOptions<unknown, TResponseStyle, ThrowOnError, Url> {
4533
+ serializedBody?: string;
4534
+ }
4535
+ type RequestResult<TData = unknown, TError = unknown, ThrowOnError extends boolean = boolean, TResponseStyle extends ResponseStyle = "fields"> = ThrowOnError extends true ? Promise<TResponseStyle extends "data" ? TData extends Record<string, unknown> ? TData[keyof TData] : TData : {
4536
+ data: TData extends Record<string, unknown> ? TData[keyof TData] : TData;
4537
+ request: Request;
4538
+ response: Response;
4539
+ }> : Promise<TResponseStyle extends "data" ? (TData extends Record<string, unknown> ? TData[keyof TData] : TData) | undefined : ({
4540
+ data: TData extends Record<string, unknown> ? TData[keyof TData] : TData;
4541
+ error: undefined;
4542
+ } | {
4543
+ data: undefined;
4544
+ error: TError extends Record<string, unknown> ? TError[keyof TError] : TError;
4545
+ }) & {
4546
+ request: Request;
4547
+ response: Response;
4548
+ }>;
4549
+ interface ClientOptions {
4550
+ baseUrl?: string;
4551
+ responseStyle?: ResponseStyle;
4552
+ throwOnError?: boolean;
4553
+ }
4554
+ type MethodFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = "fields">(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, "method">) => RequestResult<TData, TError, ThrowOnError, TResponseStyle>;
4555
+ type SseFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = "fields">(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, "method">) => Promise<ServerSentEventsResult<TData, TError>>;
4556
+ type RequestFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = "fields">(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, "method"> & Pick<Required<RequestOptions<TData, TResponseStyle, ThrowOnError>>, "method">) => RequestResult<TData, TError, ThrowOnError, TResponseStyle>;
4557
+ type BuildUrlFn = <TData extends {
4558
+ body?: unknown;
4559
+ path?: Record<string, unknown>;
4560
+ query?: Record<string, unknown>;
4561
+ url: string;
4562
+ }>(options: TData & Options$1<TData>) => string;
4563
+ type Client = Client$1<RequestFn, Config, MethodFn, BuildUrlFn, SseFn> & {
4564
+ interceptors: Middleware<Request, Response, unknown, ResolvedRequestOptions>;
4565
+ };
4566
+ interface TDataShape {
4567
+ body?: unknown;
4568
+ headers?: unknown;
4569
+ path?: unknown;
4570
+ query?: unknown;
4571
+ url: string;
4572
+ }
4573
+ type OmitKeys<T, K> = Pick<T, Exclude<keyof T, K>>;
4574
+ type Options$1<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown, TResponseStyle extends ResponseStyle = "fields"> = OmitKeys<RequestOptions<TResponse, TResponseStyle, ThrowOnError>, "body" | "path" | "query" | "url"> & ([TData] extends [never] ? unknown : Omit<TData, "url">);
4575
+
4576
+ declare const createClient: (config?: Config) => Client;
4577
+
4578
+ type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options$1<TData, ThrowOnError> & {
4579
+ /**
4580
+ * You can provide a client instance returned by `createClient()` instead of
4581
+ * individual options. This might be also useful if you want to implement a
4582
+ * custom client.
4583
+ */
4584
+ client?: Client;
4585
+ /**
4586
+ * You can pass arbitrary values through the `meta` object. This can be
4587
+ * used to access values that aren't defined as part of the SDK function.
4588
+ */
4589
+ meta?: Record<string, unknown>;
4590
+ };
4591
+ /**
4592
+ * Health check endpoint
4593
+ *
4594
+ * Checks the health of the API and database connection
4595
+ */
4596
+ declare const healthEndpointHealthGet: <ThrowOnError extends boolean = false>(options?: Options<HealthEndpointHealthGetData, ThrowOnError>) => RequestResult<HealthEndpointHealthGetResponses, unknown, ThrowOnError, "fields">;
4597
+ /**
4598
+ * Get API version and feature flags
4599
+ *
4600
+ * Returns API version information and enabled feature flags. Use this to check which capabilities are available in this deployment.
4601
+ */
4602
+ declare const getVersion: <ThrowOnError extends boolean = false>(options?: Options<GetVersionData, ThrowOnError>) => RequestResult<GetVersionResponses, unknown, ThrowOnError, "fields">;
4603
+ /**
4604
+ * Prometheus metrics endpoint
4605
+ *
4606
+ * Exports metrics in Prometheus format for scraping
4607
+ */
4608
+ declare const metricsEndpointMetricsGet: <ThrowOnError extends boolean = false>(options?: Options<MetricsEndpointMetricsGetData, ThrowOnError>) => RequestResult<MetricsEndpointMetricsGetResponses, unknown, ThrowOnError, "fields">;
4609
+ /**
4610
+ * Get memory graph data
4611
+ *
4612
+ * Retrieve graph data for visualization, optionally filtered by type (world/experience/opinion).
4613
+ */
4614
+ declare const getGraph: <ThrowOnError extends boolean = false>(options: Options<GetGraphData, ThrowOnError>) => RequestResult<GetGraphResponses, GetGraphErrors, ThrowOnError, "fields">;
4615
+ /**
4616
+ * List memory units
4617
+ *
4618
+ * List memory units with pagination and optional full-text search. Supports filtering by type. Results are sorted by most recent first (mentioned_at DESC, then created_at DESC).
4619
+ */
4620
+ declare const listMemories: <ThrowOnError extends boolean = false>(options: Options<ListMemoriesData, ThrowOnError>) => RequestResult<ListMemoriesResponses, ListMemoriesErrors, ThrowOnError, "fields">;
4621
+ /**
4622
+ * Get memory unit
4623
+ *
4624
+ * Get a single memory unit by ID with all its metadata including entities and tags. Note: the 'history' field is deprecated and always returns an empty list - use GET /memories/{memory_id}/history instead.
4625
+ */
4626
+ declare const getMemory: <ThrowOnError extends boolean = false>(options: Options<GetMemoryData, ThrowOnError>) => RequestResult<GetMemoryResponses, GetMemoryErrors, ThrowOnError, "fields">;
4627
+ /**
4628
+ * Get observation history
4629
+ *
4630
+ * Get the full history of an observation, with each change's source facts resolved to their text.
4631
+ */
4632
+ declare const getObservationHistory: <ThrowOnError extends boolean = false>(options: Options<GetObservationHistoryData, ThrowOnError>) => RequestResult<GetObservationHistoryResponses, GetObservationHistoryErrors, ThrowOnError, "fields">;
4633
+ /**
4634
+ * Recall memory
4635
+ *
4636
+ * Recall memory using semantic similarity and spreading activation.
4637
+ *
4638
+ * The type parameter is optional and must be one of:
4639
+ * - `world`: General knowledge about people, places, events, and things that happen
4640
+ * - `experience`: Memories about experience, conversations, actions taken, and tasks performed
4641
+ */
4642
+ declare const recallMemories: <ThrowOnError extends boolean = false>(options: Options<RecallMemoriesData, ThrowOnError>) => RequestResult<RecallMemoriesResponses, RecallMemoriesErrors, ThrowOnError, "fields">;
4643
+ /**
4644
+ * Reflect and generate answer
4645
+ *
4646
+ * Reflect and formulate an answer using bank identity, world facts, and opinions.
4647
+ *
4648
+ * This endpoint:
4649
+ * 1. Retrieves experience (conversations and events)
4650
+ * 2. Retrieves world facts relevant to the query
4651
+ * 3. Retrieves existing opinions (bank's perspectives)
4652
+ * 4. Uses LLM to formulate a contextual answer
4653
+ * 5. Returns plain text answer and the facts used
4654
+ */
4655
+ declare const reflect: <ThrowOnError extends boolean = false>(options: Options<ReflectData, ThrowOnError>) => RequestResult<ReflectResponses, ReflectErrors, ThrowOnError, "fields">;
4656
+ /**
4657
+ * List all memory banks
4658
+ *
4659
+ * Get a list of all agents with their profiles
4660
+ */
4661
+ declare const listBanks: <ThrowOnError extends boolean = false>(options?: Options<ListBanksData, ThrowOnError>) => RequestResult<ListBanksResponses, ListBanksErrors, ThrowOnError, "fields">;
4662
+ /**
4663
+ * Get statistics for memory bank
4664
+ *
4665
+ * Get statistics about nodes and links for a specific agent
4666
+ */
4667
+ declare const getAgentStats: <ThrowOnError extends boolean = false>(options: Options<GetAgentStatsData, ThrowOnError>) => RequestResult<GetAgentStatsResponses, GetAgentStatsErrors, ThrowOnError, "fields">;
4668
+ /**
4669
+ * List entities
4670
+ *
4671
+ * List all entities (people, organizations, etc.) known by the bank, ordered by mention count. Supports pagination.
4672
+ */
4673
+ declare const listEntities: <ThrowOnError extends boolean = false>(options: Options<ListEntitiesData, ThrowOnError>) => RequestResult<ListEntitiesResponses, ListEntitiesErrors, ThrowOnError, "fields">;
4674
+ /**
4675
+ * Get entity details
4676
+ *
4677
+ * Get detailed information about an entity including observations (mental model).
4678
+ */
4679
+ declare const getEntity: <ThrowOnError extends boolean = false>(options: Options<GetEntityData, ThrowOnError>) => RequestResult<GetEntityResponses, GetEntityErrors, ThrowOnError, "fields">;
4680
+ /**
4681
+ * Regenerate entity observations (deprecated)
4682
+ *
4683
+ * This endpoint is deprecated. Entity observations have been replaced by mental models.
4684
+ *
4685
+ * @deprecated
4686
+ */
4687
+ declare const regenerateEntityObservations: <ThrowOnError extends boolean = false>(options: Options<RegenerateEntityObservationsData, ThrowOnError>) => RequestResult<RegenerateEntityObservationsResponses, RegenerateEntityObservationsErrors, ThrowOnError, "fields">;
4688
+ /**
4689
+ * List mental models
4690
+ *
4691
+ * List user-curated living documents that stay current.
4692
+ */
4693
+ declare const listMentalModels: <ThrowOnError extends boolean = false>(options: Options<ListMentalModelsData, ThrowOnError>) => RequestResult<ListMentalModelsResponses, ListMentalModelsErrors, ThrowOnError, "fields">;
4694
+ /**
4695
+ * Create mental model
4696
+ *
4697
+ * Create a mental model by running reflect with the source query in the background. Returns an operation ID to track progress. The content is auto-generated by the reflect endpoint. Use the operations endpoint to check completion status.
4698
+ */
4699
+ declare const createMentalModel: <ThrowOnError extends boolean = false>(options: Options<CreateMentalModelData, ThrowOnError>) => RequestResult<CreateMentalModelResponses, CreateMentalModelErrors, ThrowOnError, "fields">;
4700
+ /**
4701
+ * Delete mental model
4702
+ *
4703
+ * Delete a mental model.
4704
+ */
4705
+ declare const deleteMentalModel: <ThrowOnError extends boolean = false>(options: Options<DeleteMentalModelData, ThrowOnError>) => RequestResult<DeleteMentalModelResponses, DeleteMentalModelErrors, ThrowOnError, "fields">;
4706
+ /**
4707
+ * Get mental model
4708
+ *
4709
+ * Get a specific mental model by ID.
4710
+ */
4711
+ declare const getMentalModel: <ThrowOnError extends boolean = false>(options: Options<GetMentalModelData, ThrowOnError>) => RequestResult<GetMentalModelResponses, GetMentalModelErrors, ThrowOnError, "fields">;
4712
+ /**
4713
+ * Update mental model
4714
+ *
4715
+ * Update a mental model's name and/or source query.
4716
+ */
4717
+ declare const updateMentalModel: <ThrowOnError extends boolean = false>(options: Options<UpdateMentalModelData, ThrowOnError>) => RequestResult<UpdateMentalModelResponses, UpdateMentalModelErrors, ThrowOnError, "fields">;
4718
+ /**
4719
+ * Get mental model history
4720
+ *
4721
+ * Get the refresh history of a mental model, showing content changes over time.
4722
+ */
4723
+ declare const getMentalModelHistory: <ThrowOnError extends boolean = false>(options: Options<GetMentalModelHistoryData, ThrowOnError>) => RequestResult<GetMentalModelHistoryResponses, GetMentalModelHistoryErrors, ThrowOnError, "fields">;
4724
+ /**
4725
+ * Refresh mental model
4726
+ *
4727
+ * Submit an async task to re-run the source query through reflect and update the content.
4728
+ */
4729
+ declare const refreshMentalModel: <ThrowOnError extends boolean = false>(options: Options<RefreshMentalModelData, ThrowOnError>) => RequestResult<RefreshMentalModelResponses, RefreshMentalModelErrors, ThrowOnError, "fields">;
4730
+ /**
4731
+ * List directives
4732
+ *
4733
+ * List hard rules that are injected into prompts.
4734
+ */
4735
+ declare const listDirectives: <ThrowOnError extends boolean = false>(options: Options<ListDirectivesData, ThrowOnError>) => RequestResult<ListDirectivesResponses, ListDirectivesErrors, ThrowOnError, "fields">;
4736
+ /**
4737
+ * Create directive
4738
+ *
4739
+ * Create a hard rule that will be injected into prompts.
4740
+ */
4741
+ declare const createDirective: <ThrowOnError extends boolean = false>(options: Options<CreateDirectiveData, ThrowOnError>) => RequestResult<CreateDirectiveResponses, CreateDirectiveErrors, ThrowOnError, "fields">;
4742
+ /**
4743
+ * Delete directive
4744
+ *
4745
+ * Delete a directive.
4746
+ */
4747
+ declare const deleteDirective: <ThrowOnError extends boolean = false>(options: Options<DeleteDirectiveData, ThrowOnError>) => RequestResult<DeleteDirectiveResponses, DeleteDirectiveErrors, ThrowOnError, "fields">;
4748
+ /**
4749
+ * Get directive
4750
+ *
4751
+ * Get a specific directive by ID.
4752
+ */
4753
+ declare const getDirective: <ThrowOnError extends boolean = false>(options: Options<GetDirectiveData, ThrowOnError>) => RequestResult<GetDirectiveResponses, GetDirectiveErrors, ThrowOnError, "fields">;
4754
+ /**
4755
+ * Update directive
4756
+ *
4757
+ * Update a directive's properties.
4758
+ */
4759
+ declare const updateDirective: <ThrowOnError extends boolean = false>(options: Options<UpdateDirectiveData, ThrowOnError>) => RequestResult<UpdateDirectiveResponses, UpdateDirectiveErrors, ThrowOnError, "fields">;
4760
+ /**
4761
+ * List documents
4762
+ *
4763
+ * List documents with pagination and optional search. Documents are the source content from which memory units are extracted.
4764
+ */
4765
+ declare const listDocuments: <ThrowOnError extends boolean = false>(options: Options<ListDocumentsData, ThrowOnError>) => RequestResult<ListDocumentsResponses, ListDocumentsErrors, ThrowOnError, "fields">;
4766
+ /**
4767
+ * Delete a document
4768
+ *
4769
+ * Delete a document and all its associated memory units and links.
4770
+ *
4771
+ * This will cascade delete:
4772
+ * - The document itself
4773
+ * - All memory units extracted from this document
4774
+ * - All links (temporal, semantic, entity) associated with those memory units
4775
+ *
4776
+ * This operation cannot be undone.
4777
+ */
4778
+ declare const deleteDocument: <ThrowOnError extends boolean = false>(options: Options<DeleteDocumentData, ThrowOnError>) => RequestResult<DeleteDocumentResponses, DeleteDocumentErrors, ThrowOnError, "fields">;
4779
+ /**
4780
+ * Get document details
4781
+ *
4782
+ * Get a specific document including its original text
4783
+ */
4784
+ declare const getDocument: <ThrowOnError extends boolean = false>(options: Options<GetDocumentData, ThrowOnError>) => RequestResult<GetDocumentResponses, GetDocumentErrors, ThrowOnError, "fields">;
4785
+ /**
4786
+ * Update document
4787
+ *
4788
+ * Update mutable fields on a document without re-processing its content.
4789
+ *
4790
+ * **Tags** (`tags`): Propagated to all associated memory units. Observations derived from those units are invalidated and queued for re-consolidation under the new tags. Co-source memories from other documents that shared those observations are also reset.
4791
+ *
4792
+ * At least one field must be provided.
4793
+ */
4794
+ declare const updateDocument: <ThrowOnError extends boolean = false>(options: Options<UpdateDocumentData, ThrowOnError>) => RequestResult<UpdateDocumentResponses, UpdateDocumentErrors, ThrowOnError, "fields">;
4795
+ /**
4796
+ * List tags
4797
+ *
4798
+ * List all unique tags in a memory bank with usage counts. Supports wildcard search using '*' (e.g., 'user:*', '*-fred', 'tag*-2'). Case-insensitive.
4799
+ */
4800
+ declare const listTags: <ThrowOnError extends boolean = false>(options: Options<ListTagsData, ThrowOnError>) => RequestResult<ListTagsResponses, ListTagsErrors, ThrowOnError, "fields">;
4801
+ /**
4802
+ * Get chunk details
4803
+ *
4804
+ * Get a specific chunk by its ID
4805
+ */
4806
+ declare const getChunk: <ThrowOnError extends boolean = false>(options: Options<GetChunkData, ThrowOnError>) => RequestResult<GetChunkResponses, GetChunkErrors, ThrowOnError, "fields">;
4807
+ /**
4808
+ * List async operations
4809
+ *
4810
+ * Get a list of async operations for a specific agent, with optional filtering by status and operation type. Results are sorted by most recent first.
4811
+ */
4812
+ declare const listOperations: <ThrowOnError extends boolean = false>(options: Options<ListOperationsData, ThrowOnError>) => RequestResult<ListOperationsResponses, ListOperationsErrors, ThrowOnError, "fields">;
4813
+ /**
4814
+ * Cancel a pending async operation
4815
+ *
4816
+ * Cancel a pending async operation by removing it from the queue
4817
+ */
4818
+ declare const cancelOperation: <ThrowOnError extends boolean = false>(options: Options<CancelOperationData, ThrowOnError>) => RequestResult<CancelOperationResponses, CancelOperationErrors, ThrowOnError, "fields">;
4819
+ /**
4820
+ * Get operation status
4821
+ *
4822
+ * Get the status of a specific async operation. Returns 'pending', 'completed', or 'failed'. Completed operations are removed from storage, so 'completed' means the operation finished successfully.
4823
+ */
4824
+ declare const getOperationStatus: <ThrowOnError extends boolean = false>(options: Options<GetOperationStatusData, ThrowOnError>) => RequestResult<GetOperationStatusResponses, GetOperationStatusErrors, ThrowOnError, "fields">;
4825
+ /**
4826
+ * Retry a failed async operation
4827
+ *
4828
+ * Re-queue a failed async operation so the worker picks it up again
4829
+ */
4830
+ declare const retryOperation: <ThrowOnError extends boolean = false>(options: Options<RetryOperationData, ThrowOnError>) => RequestResult<RetryOperationResponses, RetryOperationErrors, ThrowOnError, "fields">;
4831
+ /**
4832
+ * Get memory bank profile
4833
+ *
4834
+ * Get disposition traits and mission for a memory bank. Auto-creates agent with defaults if not exists.
4835
+ *
4836
+ * @deprecated
4837
+ */
4838
+ declare const getBankProfile: <ThrowOnError extends boolean = false>(options: Options<GetBankProfileData, ThrowOnError>) => RequestResult<GetBankProfileResponses, GetBankProfileErrors, ThrowOnError, "fields">;
4839
+ /**
4840
+ * Update memory bank disposition
4841
+ *
4842
+ * Update bank's disposition traits (skepticism, literalism, empathy)
4843
+ *
4844
+ * @deprecated
4845
+ */
4846
+ declare const updateBankDisposition: <ThrowOnError extends boolean = false>(options: Options<UpdateBankDispositionData, ThrowOnError>) => RequestResult<UpdateBankDispositionResponses, UpdateBankDispositionErrors, ThrowOnError, "fields">;
4847
+ /**
4848
+ * Add/merge memory bank background (deprecated)
4849
+ *
4850
+ * Deprecated: Use PUT /mission instead. This endpoint now updates the mission field.
4851
+ *
4852
+ * @deprecated
4853
+ */
4854
+ declare const addBankBackground: <ThrowOnError extends boolean = false>(options: Options<AddBankBackgroundData, ThrowOnError>) => RequestResult<AddBankBackgroundResponses, AddBankBackgroundErrors, ThrowOnError, "fields">;
4855
+ /**
4856
+ * Delete memory bank
4857
+ *
4858
+ * Delete an entire memory bank including all memories, entities, documents, and the bank profile itself. This is a destructive operation that cannot be undone.
4859
+ */
4860
+ declare const deleteBank: <ThrowOnError extends boolean = false>(options: Options<DeleteBankData, ThrowOnError>) => RequestResult<DeleteBankResponses, DeleteBankErrors, ThrowOnError, "fields">;
4861
+ /**
4862
+ * Partial update memory bank
4863
+ *
4864
+ * Partially update an agent's profile. Only provided fields will be updated.
4865
+ */
4866
+ declare const updateBank: <ThrowOnError extends boolean = false>(options: Options<UpdateBankData, ThrowOnError>) => RequestResult<UpdateBankResponses, UpdateBankErrors, ThrowOnError, "fields">;
4867
+ /**
4868
+ * Create or update memory bank
4869
+ *
4870
+ * Create a new agent or update existing agent with disposition and mission. Auto-fills missing fields with defaults.
4871
+ */
4872
+ declare const createOrUpdateBank: <ThrowOnError extends boolean = false>(options: Options<CreateOrUpdateBankData, ThrowOnError>) => RequestResult<CreateOrUpdateBankResponses, CreateOrUpdateBankErrors, ThrowOnError, "fields">;
4873
+ /**
4874
+ * Clear all observations
4875
+ *
4876
+ * Delete all observations for a memory bank. This is useful for resetting the consolidated knowledge.
4877
+ */
4878
+ declare const clearObservations: <ThrowOnError extends boolean = false>(options: Options<ClearObservationsData, ThrowOnError>) => RequestResult<ClearObservationsResponses, ClearObservationsErrors, ThrowOnError, "fields">;
4879
+ /**
4880
+ * Recover failed consolidation
4881
+ *
4882
+ * Reset all memories that were permanently marked as failed during consolidation (after exhausting all LLM retries and adaptive batch splitting) so they are picked up again on the next consolidation run. Does not delete any observations.
4883
+ */
4884
+ declare const recoverConsolidation: <ThrowOnError extends boolean = false>(options: Options<RecoverConsolidationData, ThrowOnError>) => RequestResult<RecoverConsolidationResponses, RecoverConsolidationErrors, ThrowOnError, "fields">;
4885
+ /**
4886
+ * Clear observations for a memory
4887
+ *
4888
+ * Delete all observations derived from a specific memory and reset it for re-consolidation. The memory itself is not deleted. A consolidation job is triggered automatically so the memory will produce fresh observations on the next consolidation run.
4889
+ */
4890
+ declare const clearMemoryObservations: <ThrowOnError extends boolean = false>(options: Options<ClearMemoryObservationsData, ThrowOnError>) => RequestResult<ClearMemoryObservationsResponses, ClearMemoryObservationsErrors, ThrowOnError, "fields">;
4891
+ /**
4892
+ * Reset bank configuration
4893
+ *
4894
+ * Reset bank configuration to defaults by removing all bank-specific overrides. The bank will then use global and tenant-level configuration only.
4895
+ */
4896
+ declare const resetBankConfig: <ThrowOnError extends boolean = false>(options: Options<ResetBankConfigData, ThrowOnError>) => RequestResult<ResetBankConfigResponses, ResetBankConfigErrors, ThrowOnError, "fields">;
4897
+ /**
4898
+ * Get bank configuration
4899
+ *
4900
+ * Get fully resolved configuration for a bank including all hierarchical overrides (global → tenant → bank). The 'config' field contains all resolved config values. The 'overrides' field shows only bank-specific overrides.
4901
+ */
4902
+ declare const getBankConfig: <ThrowOnError extends boolean = false>(options: Options<GetBankConfigData, ThrowOnError>) => RequestResult<GetBankConfigResponses, GetBankConfigErrors, ThrowOnError, "fields">;
4903
+ /**
4904
+ * Update bank configuration
4905
+ *
4906
+ * Update configuration overrides for a bank. Only hierarchical fields can be overridden (LLM settings, retention parameters, etc.). Keys can be provided in Python field format (llm_provider) or environment variable format (HINDSIGHT_API_LLM_PROVIDER).
4907
+ */
4908
+ declare const updateBankConfig: <ThrowOnError extends boolean = false>(options: Options<UpdateBankConfigData, ThrowOnError>) => RequestResult<UpdateBankConfigResponses, UpdateBankConfigErrors, ThrowOnError, "fields">;
4909
+ /**
4910
+ * Trigger consolidation
4911
+ *
4912
+ * Run memory consolidation to create/update observations from recent memories.
4913
+ */
4914
+ declare const triggerConsolidation: <ThrowOnError extends boolean = false>(options: Options<TriggerConsolidationData, ThrowOnError>) => RequestResult<TriggerConsolidationResponses, TriggerConsolidationErrors, ThrowOnError, "fields">;
4915
+ /**
4916
+ * List webhooks
4917
+ *
4918
+ * List all webhooks registered for a bank.
4919
+ */
4920
+ declare const listWebhooks: <ThrowOnError extends boolean = false>(options: Options<ListWebhooksData, ThrowOnError>) => RequestResult<ListWebhooksResponses, ListWebhooksErrors, ThrowOnError, "fields">;
4921
+ /**
4922
+ * Register webhook
4923
+ *
4924
+ * Register a webhook endpoint to receive event notifications for this bank.
4925
+ */
4926
+ declare const createWebhook: <ThrowOnError extends boolean = false>(options: Options<CreateWebhookData, ThrowOnError>) => RequestResult<CreateWebhookResponses, CreateWebhookErrors, ThrowOnError, "fields">;
4927
+ /**
4928
+ * Delete webhook
4929
+ *
4930
+ * Remove a registered webhook.
4931
+ */
4932
+ declare const deleteWebhook: <ThrowOnError extends boolean = false>(options: Options<DeleteWebhookData, ThrowOnError>) => RequestResult<DeleteWebhookResponses, DeleteWebhookErrors, ThrowOnError, "fields">;
4933
+ /**
4934
+ * Update webhook
4935
+ *
4936
+ * Update one or more fields of a registered webhook. Only provided fields are changed.
4937
+ */
4938
+ declare const updateWebhook: <ThrowOnError extends boolean = false>(options: Options<UpdateWebhookData, ThrowOnError>) => RequestResult<UpdateWebhookResponses, UpdateWebhookErrors, ThrowOnError, "fields">;
4939
+ /**
4940
+ * List webhook deliveries
4941
+ *
4942
+ * Inspect delivery history for a webhook (useful for debugging).
4943
+ */
4944
+ declare const listWebhookDeliveries: <ThrowOnError extends boolean = false>(options: Options<ListWebhookDeliveriesData, ThrowOnError>) => RequestResult<ListWebhookDeliveriesResponses, ListWebhookDeliveriesErrors, ThrowOnError, "fields">;
4945
+ /**
4946
+ * Clear memory bank memories
4947
+ *
4948
+ * Delete memory units for a memory bank. Optionally filter by type (world, experience, opinion) to delete only specific types. This is a destructive operation that cannot be undone. The bank profile (disposition and background) will be preserved.
4949
+ */
4950
+ declare const clearBankMemories: <ThrowOnError extends boolean = false>(options: Options<ClearBankMemoriesData, ThrowOnError>) => RequestResult<ClearBankMemoriesResponses, ClearBankMemoriesErrors, ThrowOnError, "fields">;
4951
+ /**
4952
+ * Retain memories
4953
+ *
4954
+ * Retain memory items with automatic fact extraction.
4955
+ *
4956
+ * This is the main endpoint for storing memories. It supports both synchronous and asynchronous processing via the `async` parameter.
4957
+ *
4958
+ * **Features:**
4959
+ * - Efficient batch processing
4960
+ * - Automatic fact extraction from natural language
4961
+ * - Entity recognition and linking
4962
+ * - Document tracking with automatic upsert (when document_id is provided)
4963
+ * - Temporal and semantic linking
4964
+ * - Optional asynchronous processing
4965
+ *
4966
+ * **The system automatically:**
4967
+ * 1. Extracts semantic facts from the content
4968
+ * 2. Generates embeddings
4969
+ * 3. Deduplicates similar facts
4970
+ * 4. Creates temporal, semantic, and entity links
4971
+ * 5. Tracks document metadata
4972
+ *
4973
+ * **When `async=true`:** Returns immediately after queuing. Use the operations endpoint to monitor progress.
4974
+ *
4975
+ * **When `async=false` (default):** Waits for processing to complete.
4976
+ *
4977
+ * **Note:** If a memory item has a `document_id` that already exists, the old document and its memory units will be deleted before creating new ones (upsert behavior).
4978
+ */
4979
+ declare const retainMemories: <ThrowOnError extends boolean = false>(options: Options<RetainMemoriesData, ThrowOnError>) => RequestResult<RetainMemoriesResponses, RetainMemoriesErrors, ThrowOnError, "fields">;
4980
+ /**
4981
+ * Convert files to memories
4982
+ *
4983
+ * Upload files (PDF, DOCX, etc.), convert them to markdown, and retain as memories.
4984
+ *
4985
+ * This endpoint handles file upload, conversion, and memory creation in a single operation.
4986
+ *
4987
+ * **Features:**
4988
+ * - Supports PDF, DOCX, PPTX, XLSX, images (with OCR), audio (with transcription)
4989
+ * - Automatic file-to-markdown conversion using pluggable parsers
4990
+ * - Files stored in object storage (PostgreSQL by default, S3 for production)
4991
+ * - Each file becomes a separate document with optional metadata/tags
4992
+ * - Always processes asynchronously — returns operation IDs immediately
4993
+ *
4994
+ * **The system automatically:**
4995
+ * 1. Stores uploaded files in object storage
4996
+ * 2. Converts files to markdown
4997
+ * 3. Creates document records with file metadata
4998
+ * 4. Extracts facts and creates memory units (same as regular retain)
4999
+ *
5000
+ * Use the operations endpoint to monitor progress.
5001
+ *
5002
+ * **Request format:** multipart/form-data with:
5003
+ * - `files`: One or more files to upload
5004
+ * - `request`: JSON string with FileRetainRequest model
5005
+ *
5006
+ * **Parser selection:**
5007
+ * - Set `parser` in the request body to override the server default for all files.
5008
+ * - Set `parser` inside a `files_metadata` entry for per-file control.
5009
+ * - Pass a list (e.g. `['iris', 'markitdown']`) to define an ordered fallback chain — each parser is tried in sequence until one succeeds.
5010
+ * - Falls back to the server default (`HINDSIGHT_API_FILE_PARSER`) if not specified.
5011
+ * - Only parsers enabled on the server may be requested; others return HTTP 400.
5012
+ */
5013
+ declare const fileRetain: <ThrowOnError extends boolean = false>(options: Options<FileRetainData, ThrowOnError>) => RequestResult<FileRetainResponses, FileRetainErrors, ThrowOnError, "fields">;
5014
+
5015
+ type sdk_gen_Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options<TData, ThrowOnError>;
5016
+ declare const sdk_gen_addBankBackground: typeof addBankBackground;
5017
+ declare const sdk_gen_cancelOperation: typeof cancelOperation;
5018
+ declare const sdk_gen_clearBankMemories: typeof clearBankMemories;
5019
+ declare const sdk_gen_clearMemoryObservations: typeof clearMemoryObservations;
5020
+ declare const sdk_gen_clearObservations: typeof clearObservations;
5021
+ declare const sdk_gen_createDirective: typeof createDirective;
5022
+ declare const sdk_gen_createMentalModel: typeof createMentalModel;
5023
+ declare const sdk_gen_createOrUpdateBank: typeof createOrUpdateBank;
5024
+ declare const sdk_gen_createWebhook: typeof createWebhook;
5025
+ declare const sdk_gen_deleteBank: typeof deleteBank;
5026
+ declare const sdk_gen_deleteDirective: typeof deleteDirective;
5027
+ declare const sdk_gen_deleteDocument: typeof deleteDocument;
5028
+ declare const sdk_gen_deleteMentalModel: typeof deleteMentalModel;
5029
+ declare const sdk_gen_deleteWebhook: typeof deleteWebhook;
5030
+ declare const sdk_gen_fileRetain: typeof fileRetain;
5031
+ declare const sdk_gen_getAgentStats: typeof getAgentStats;
5032
+ declare const sdk_gen_getBankConfig: typeof getBankConfig;
5033
+ declare const sdk_gen_getBankProfile: typeof getBankProfile;
5034
+ declare const sdk_gen_getChunk: typeof getChunk;
5035
+ declare const sdk_gen_getDirective: typeof getDirective;
5036
+ declare const sdk_gen_getDocument: typeof getDocument;
5037
+ declare const sdk_gen_getEntity: typeof getEntity;
5038
+ declare const sdk_gen_getGraph: typeof getGraph;
5039
+ declare const sdk_gen_getMemory: typeof getMemory;
5040
+ declare const sdk_gen_getMentalModel: typeof getMentalModel;
5041
+ declare const sdk_gen_getMentalModelHistory: typeof getMentalModelHistory;
5042
+ declare const sdk_gen_getObservationHistory: typeof getObservationHistory;
5043
+ declare const sdk_gen_getOperationStatus: typeof getOperationStatus;
5044
+ declare const sdk_gen_getVersion: typeof getVersion;
5045
+ declare const sdk_gen_healthEndpointHealthGet: typeof healthEndpointHealthGet;
5046
+ declare const sdk_gen_listBanks: typeof listBanks;
5047
+ declare const sdk_gen_listDirectives: typeof listDirectives;
5048
+ declare const sdk_gen_listDocuments: typeof listDocuments;
5049
+ declare const sdk_gen_listEntities: typeof listEntities;
5050
+ declare const sdk_gen_listMemories: typeof listMemories;
5051
+ declare const sdk_gen_listMentalModels: typeof listMentalModels;
5052
+ declare const sdk_gen_listOperations: typeof listOperations;
5053
+ declare const sdk_gen_listTags: typeof listTags;
5054
+ declare const sdk_gen_listWebhookDeliveries: typeof listWebhookDeliveries;
5055
+ declare const sdk_gen_listWebhooks: typeof listWebhooks;
5056
+ declare const sdk_gen_metricsEndpointMetricsGet: typeof metricsEndpointMetricsGet;
5057
+ declare const sdk_gen_recallMemories: typeof recallMemories;
5058
+ declare const sdk_gen_recoverConsolidation: typeof recoverConsolidation;
5059
+ declare const sdk_gen_reflect: typeof reflect;
5060
+ declare const sdk_gen_refreshMentalModel: typeof refreshMentalModel;
5061
+ declare const sdk_gen_regenerateEntityObservations: typeof regenerateEntityObservations;
5062
+ declare const sdk_gen_resetBankConfig: typeof resetBankConfig;
5063
+ declare const sdk_gen_retainMemories: typeof retainMemories;
5064
+ declare const sdk_gen_retryOperation: typeof retryOperation;
5065
+ declare const sdk_gen_triggerConsolidation: typeof triggerConsolidation;
5066
+ declare const sdk_gen_updateBank: typeof updateBank;
5067
+ declare const sdk_gen_updateBankConfig: typeof updateBankConfig;
5068
+ declare const sdk_gen_updateBankDisposition: typeof updateBankDisposition;
5069
+ declare const sdk_gen_updateDirective: typeof updateDirective;
5070
+ declare const sdk_gen_updateDocument: typeof updateDocument;
5071
+ declare const sdk_gen_updateMentalModel: typeof updateMentalModel;
5072
+ declare const sdk_gen_updateWebhook: typeof updateWebhook;
5073
+ declare namespace sdk_gen {
5074
+ export { type sdk_gen_Options as Options, sdk_gen_addBankBackground as addBankBackground, sdk_gen_cancelOperation as cancelOperation, sdk_gen_clearBankMemories as clearBankMemories, sdk_gen_clearMemoryObservations as clearMemoryObservations, sdk_gen_clearObservations as clearObservations, sdk_gen_createDirective as createDirective, sdk_gen_createMentalModel as createMentalModel, sdk_gen_createOrUpdateBank as createOrUpdateBank, sdk_gen_createWebhook as createWebhook, sdk_gen_deleteBank as deleteBank, sdk_gen_deleteDirective as deleteDirective, sdk_gen_deleteDocument as deleteDocument, sdk_gen_deleteMentalModel as deleteMentalModel, sdk_gen_deleteWebhook as deleteWebhook, sdk_gen_fileRetain as fileRetain, sdk_gen_getAgentStats as getAgentStats, sdk_gen_getBankConfig as getBankConfig, sdk_gen_getBankProfile as getBankProfile, sdk_gen_getChunk as getChunk, sdk_gen_getDirective as getDirective, sdk_gen_getDocument as getDocument, sdk_gen_getEntity as getEntity, sdk_gen_getGraph as getGraph, sdk_gen_getMemory as getMemory, sdk_gen_getMentalModel as getMentalModel, sdk_gen_getMentalModelHistory as getMentalModelHistory, sdk_gen_getObservationHistory as getObservationHistory, sdk_gen_getOperationStatus as getOperationStatus, sdk_gen_getVersion as getVersion, sdk_gen_healthEndpointHealthGet as healthEndpointHealthGet, sdk_gen_listBanks as listBanks, sdk_gen_listDirectives as listDirectives, sdk_gen_listDocuments as listDocuments, sdk_gen_listEntities as listEntities, sdk_gen_listMemories as listMemories, sdk_gen_listMentalModels as listMentalModels, sdk_gen_listOperations as listOperations, sdk_gen_listTags as listTags, sdk_gen_listWebhookDeliveries as listWebhookDeliveries, sdk_gen_listWebhooks as listWebhooks, sdk_gen_metricsEndpointMetricsGet as metricsEndpointMetricsGet, sdk_gen_recallMemories as recallMemories, sdk_gen_recoverConsolidation as recoverConsolidation, sdk_gen_reflect as reflect, sdk_gen_refreshMentalModel as refreshMentalModel, sdk_gen_regenerateEntityObservations as regenerateEntityObservations, sdk_gen_resetBankConfig as resetBankConfig, sdk_gen_retainMemories as retainMemories, sdk_gen_retryOperation as retryOperation, sdk_gen_triggerConsolidation as triggerConsolidation, sdk_gen_updateBank as updateBank, sdk_gen_updateBankConfig as updateBankConfig, sdk_gen_updateBankDisposition as updateBankDisposition, sdk_gen_updateDirective as updateDirective, sdk_gen_updateDocument as updateDocument, sdk_gen_updateMentalModel as updateMentalModel, sdk_gen_updateWebhook as updateWebhook };
5075
+ }
5076
+
5077
+ /**
5078
+ * Hindsight Client - Clean, TypeScript SDK for the Hindsight API.
5079
+ *
5080
+ * Example:
5081
+ * ```typescript
5082
+ * import { HindsightClient } from '@vectorize-io/hindsight-client';
5083
+ *
5084
+ * // Without authentication
5085
+ * const client = new HindsightClient({ baseUrl: 'http://localhost:8888' });
5086
+ *
5087
+ * // With API key authentication
5088
+ * const client = new HindsightClient({
5089
+ * baseUrl: 'http://localhost:8888',
5090
+ * apiKey: 'your-api-key'
5091
+ * });
5092
+ *
5093
+ * // Retain a memory
5094
+ * await client.retain('alice', 'Alice loves AI');
5095
+ *
5096
+ * // Recall memories
5097
+ * const results = await client.recall('alice', 'What does Alice like?');
5098
+ *
5099
+ * // Generate contextual answer
5100
+ * const answer = await client.reflect('alice', 'What are my interests?');
5101
+ * ```
5102
+ */
5103
+
5104
+ interface HindsightClientOptions {
5105
+ baseUrl: string;
5106
+ /**
5107
+ * Optional API key for authentication (sent as Bearer token in Authorization header)
5108
+ */
5109
+ apiKey?: string;
5110
+ }
5111
+ /**
5112
+ * Error thrown by the Hindsight client when an API request fails.
5113
+ * Includes the HTTP status code and error details from the API.
5114
+ */
5115
+ declare class HindsightError extends Error {
5116
+ statusCode?: number;
5117
+ details?: unknown;
5118
+ constructor(message: string, statusCode?: number, details?: unknown);
5119
+ }
5120
+ interface EntityInput {
5121
+ text: string;
5122
+ type?: string;
5123
+ }
5124
+ interface MemoryItemInput {
5125
+ content: string;
5126
+ timestamp?: string | Date;
5127
+ context?: string;
5128
+ metadata?: Record<string, string>;
5129
+ document_id?: string;
5130
+ entities?: EntityInput[];
5131
+ tags?: string[];
5132
+ observation_scopes?: "per_tag" | "combined" | "all_combinations" | string[][];
5133
+ strategy?: string;
5134
+ }
5135
+ declare class HindsightClient {
5136
+ private client;
5137
+ constructor(options: HindsightClientOptions);
5138
+ /**
5139
+ * Validates the API response and throws an error if the request failed.
5140
+ */
5141
+ private validateResponse;
5142
+ /**
5143
+ * Retain a single memory for a bank.
5144
+ */
5145
+ retain(bankId: string, content: string, options?: {
5146
+ timestamp?: Date | string;
5147
+ context?: string;
5148
+ metadata?: Record<string, string>;
5149
+ documentId?: string;
5150
+ async?: boolean;
5151
+ entities?: EntityInput[];
5152
+ /** Optional list of tags for this memory */
5153
+ tags?: string[];
5154
+ }): Promise<RetainResponse>;
5155
+ /**
5156
+ * Retain multiple memories in batch.
5157
+ */
5158
+ retainBatch(bankId: string, items: MemoryItemInput[], options?: {
5159
+ documentId?: string;
5160
+ documentTags?: string[];
5161
+ async?: boolean;
5162
+ }): Promise<RetainResponse>;
5163
+ /**
5164
+ * Upload files and retain their contents as memories.
5165
+ *
5166
+ * Files are automatically converted to text (PDF, DOCX, images via OCR, audio via
5167
+ * transcription, and more) and ingested as memories. Processing is always asynchronous —
5168
+ * use the returned operation IDs to track progress via the operations endpoint.
5169
+ *
5170
+ * @param bankId - The memory bank ID
5171
+ * @param files - Array of File or Blob objects to upload
5172
+ * @param options - Optional settings: context, documentTags, filesMetadata
5173
+ */
5174
+ retainFiles(bankId: string, files: Array<File | Blob>, options?: {
5175
+ context?: string;
5176
+ filesMetadata?: Array<{
5177
+ context?: string;
5178
+ document_id?: string;
5179
+ tags?: string[];
5180
+ metadata?: Record<string, string>;
5181
+ }>;
5182
+ }): Promise<FileRetainResponse>;
5183
+ /**
5184
+ * Recall memories with a natural language query.
5185
+ */
5186
+ recall(bankId: string, query: string, options?: {
5187
+ types?: string[];
5188
+ maxTokens?: number;
5189
+ budget?: Budget;
5190
+ trace?: boolean;
5191
+ queryTimestamp?: string;
5192
+ includeEntities?: boolean;
5193
+ maxEntityTokens?: number;
5194
+ includeChunks?: boolean;
5195
+ maxChunkTokens?: number;
5196
+ /** Include source facts for observation-type results */
5197
+ includeSourceFacts?: boolean;
5198
+ /** Maximum tokens for source facts (default: 4096) */
5199
+ maxSourceFactsTokens?: number;
5200
+ /** Optional list of tags to filter memories by */
5201
+ tags?: string[];
5202
+ /** How to match tags: 'any' (OR, includes untagged), 'all' (AND, includes untagged), 'any_strict' (OR, excludes untagged), 'all_strict' (AND, excludes untagged). Default: 'any' */
5203
+ tagsMatch?: 'any' | 'all' | 'any_strict' | 'all_strict';
5204
+ }): Promise<RecallResponse>;
5205
+ /**
5206
+ * Reflect and generate a contextual answer using the bank's identity and memories.
5207
+ */
5208
+ reflect(bankId: string, query: string, options?: {
5209
+ context?: string;
5210
+ budget?: Budget;
5211
+ /** Optional list of tags to filter memories by */
5212
+ tags?: string[];
5213
+ /** How to match tags: 'any' (OR, includes untagged), 'all' (AND, includes untagged), 'any_strict' (OR, excludes untagged), 'all_strict' (AND, excludes untagged). Default: 'any' */
5214
+ tagsMatch?: 'any' | 'all' | 'any_strict' | 'all_strict';
5215
+ }): Promise<ReflectResponse>;
5216
+ /**
5217
+ * List memories with pagination.
5218
+ */
5219
+ listMemories(bankId: string, options?: {
5220
+ limit?: number;
5221
+ offset?: number;
5222
+ type?: string;
5223
+ q?: string;
5224
+ }): Promise<ListMemoryUnitsResponse>;
5225
+ /**
5226
+ * Create or update a bank with disposition, missions, and operational configuration.
5227
+ */
5228
+ createBank(bankId: string, options?: {
5229
+ /** @deprecated Display label only. */
5230
+ name?: string;
5231
+ /** @deprecated Use reflectMission instead. */
5232
+ mission?: string;
5233
+ /** Mission/context for Reflect operations. */
5234
+ reflectMission?: string;
5235
+ /** @deprecated Alias for mission. */
5236
+ background?: string;
5237
+ /** @deprecated Use dispositionSkepticism, dispositionLiteralism, dispositionEmpathy instead. */
5238
+ disposition?: {
5239
+ skepticism: number;
5240
+ literalism: number;
5241
+ empathy: number;
5242
+ };
5243
+ /** @deprecated Use updateBankConfig({ dispositionSkepticism }) instead. */
5244
+ dispositionSkepticism?: number;
5245
+ /** @deprecated Use updateBankConfig({ dispositionLiteralism }) instead. */
5246
+ dispositionLiteralism?: number;
5247
+ /** @deprecated Use updateBankConfig({ dispositionEmpathy }) instead. */
5248
+ dispositionEmpathy?: number;
5249
+ /** Steers what gets extracted during retain(). Injected alongside built-in rules. */
5250
+ retainMission?: string;
5251
+ /** Fact extraction mode: 'concise' (default), 'verbose', or 'custom'. */
5252
+ retainExtractionMode?: string;
5253
+ /** Custom extraction prompt (only active when retainExtractionMode is 'custom'). */
5254
+ retainCustomInstructions?: string;
5255
+ /** Maximum token size for each content chunk during retain. */
5256
+ retainChunkSize?: number;
5257
+ /** Toggle automatic observation consolidation after retain(). */
5258
+ enableObservations?: boolean;
5259
+ /** Controls what gets synthesised into observations. Replaces built-in rules. */
5260
+ observationsMission?: string;
5261
+ }): Promise<BankProfileResponse>;
5262
+ /**
5263
+ * Set or update the reflect mission for a memory bank.
5264
+ * @deprecated Use createBank({ reflectMission: '...' }) instead.
5265
+ */
5266
+ setMission(bankId: string, mission: string): Promise<BankProfileResponse>;
5267
+ /**
5268
+ * Get a bank's profile.
5269
+ */
5270
+ getBankProfile(bankId: string): Promise<BankProfileResponse>;
5271
+ /**
5272
+ * Get the resolved configuration for a bank, including any bank-level overrides.
5273
+ *
5274
+ * Can be disabled on the server by setting `HINDSIGHT_API_ENABLE_BANK_CONFIG_API=false`.
5275
+ */
5276
+ getBankConfig(bankId: string): Promise<BankConfigResponse>;
5277
+ /**
5278
+ * Update configuration overrides for a bank.
5279
+ *
5280
+ * Can be disabled on the server by setting `HINDSIGHT_API_ENABLE_BANK_CONFIG_API=false`.
5281
+ *
5282
+ * @param bankId - The memory bank ID
5283
+ * @param options - Fields to override
5284
+ */
5285
+ updateBankConfig(bankId: string, options: {
5286
+ reflectMission?: string;
5287
+ retainMission?: string;
5288
+ retainExtractionMode?: string;
5289
+ retainCustomInstructions?: string;
5290
+ retainChunkSize?: number;
5291
+ enableObservations?: boolean;
5292
+ observationsMission?: string;
5293
+ /** How skeptical vs trusting (1=trusting, 5=skeptical). */
5294
+ dispositionSkepticism?: number;
5295
+ /** How literally to interpret information (1=flexible, 5=literal). */
5296
+ dispositionLiteralism?: number;
5297
+ /** How much to consider emotional context (1=detached, 5=empathetic). */
5298
+ dispositionEmpathy?: number;
5299
+ }): Promise<BankConfigResponse>;
5300
+ /**
5301
+ * Reset all bank-level configuration overrides, reverting to server defaults.
5302
+ *
5303
+ * Can be disabled on the server by setting `HINDSIGHT_API_ENABLE_BANK_CONFIG_API=false`.
5304
+ */
5305
+ resetBankConfig(bankId: string): Promise<BankConfigResponse>;
5306
+ /**
5307
+ * Delete a bank.
5308
+ */
5309
+ deleteBank(bankId: string): Promise<void>;
5310
+ /**
5311
+ * Create a directive (hard rule for reflect).
5312
+ */
5313
+ createDirective(bankId: string, name: string, content: string, options?: {
5314
+ priority?: number;
5315
+ isActive?: boolean;
5316
+ tags?: string[];
5317
+ }): Promise<any>;
5318
+ /**
5319
+ * List all directives in a bank.
5320
+ */
5321
+ listDirectives(bankId: string, options?: {
5322
+ tags?: string[];
5323
+ }): Promise<any>;
5324
+ /**
5325
+ * Get a specific directive.
5326
+ */
5327
+ getDirective(bankId: string, directiveId: string): Promise<any>;
5328
+ /**
5329
+ * Update a directive.
5330
+ */
5331
+ updateDirective(bankId: string, directiveId: string, options: {
5332
+ name?: string;
5333
+ content?: string;
5334
+ priority?: number;
5335
+ isActive?: boolean;
5336
+ tags?: string[];
5337
+ }): Promise<any>;
5338
+ /**
5339
+ * Delete a directive.
5340
+ */
5341
+ deleteDirective(bankId: string, directiveId: string): Promise<void>;
5342
+ /**
5343
+ * Create a mental model (runs reflect in background).
5344
+ */
5345
+ createMentalModel(bankId: string, name: string, sourceQuery: string, options?: {
5346
+ tags?: string[];
5347
+ maxTokens?: number;
5348
+ trigger?: {
5349
+ refreshAfterConsolidation?: boolean;
5350
+ };
5351
+ }): Promise<any>;
5352
+ /**
5353
+ * List all mental models in a bank.
5354
+ */
5355
+ listMentalModels(bankId: string, options?: {
5356
+ tags?: string[];
5357
+ }): Promise<any>;
5358
+ /**
5359
+ * Get a specific mental model.
5360
+ */
5361
+ getMentalModel(bankId: string, mentalModelId: string): Promise<any>;
5362
+ /**
5363
+ * Refresh a mental model to update with current knowledge.
5364
+ */
5365
+ refreshMentalModel(bankId: string, mentalModelId: string): Promise<any>;
5366
+ /**
5367
+ * Update a mental model's metadata.
5368
+ */
5369
+ updateMentalModel(bankId: string, mentalModelId: string, options: {
5370
+ name?: string;
5371
+ sourceQuery?: string;
5372
+ tags?: string[];
5373
+ maxTokens?: number;
5374
+ trigger?: {
5375
+ refreshAfterConsolidation?: boolean;
5376
+ };
5377
+ }): Promise<any>;
5378
+ /**
5379
+ * Delete a mental model.
5380
+ */
5381
+ deleteMentalModel(bankId: string, mentalModelId: string): Promise<void>;
5382
+ }
5383
+
5384
+ export { type BankConfigResponse, type BankProfileResponse, type Budget, type Client, type CreateBankRequest, type EntityInput, type FileRetainResponse, HindsightClient, type HindsightClientOptions, HindsightError, type ListMemoryUnitsResponse, type MemoryItemInput, type RecallRequest, type RecallResponse, type RecallResult, type ReflectRequest, type ReflectResponse, type RetainRequest, type RetainResponse, createClient, createConfig, sdk_gen as sdk };