@vectorize-io/hindsight-client 0.4.18 → 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.
- package/dist/{generated/types.gen.d.ts → index.d.mts} +1426 -362
- package/dist/index.d.ts +5384 -0
- package/dist/index.js +1597 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +1572 -0
- package/dist/index.mjs.map +1 -0
- package/generated/client/client.gen.ts +3 -1
- package/generated/sdk.gen.ts +17 -0
- package/generated/types.gen.ts +63 -1
- package/package.json +15 -5
- package/src/index.ts +2 -0
- package/dist/generated/client/client.gen.d.ts +0 -3
- package/dist/generated/client/client.gen.d.ts.map +0 -1
- package/dist/generated/client/client.gen.js +0 -233
- package/dist/generated/client/client.gen.js.map +0 -1
- package/dist/generated/client/index.d.ts +0 -9
- package/dist/generated/client/index.d.ts.map +0 -1
- package/dist/generated/client/index.js +0 -18
- package/dist/generated/client/index.js.map +0 -1
- package/dist/generated/client/types.gen.d.ts +0 -118
- package/dist/generated/client/types.gen.d.ts.map +0 -1
- package/dist/generated/client/types.gen.js +0 -4
- package/dist/generated/client/types.gen.js.map +0 -1
- package/dist/generated/client/utils.gen.d.ts +0 -34
- package/dist/generated/client/utils.gen.d.ts.map +0 -1
- package/dist/generated/client/utils.gen.js +0 -245
- package/dist/generated/client/utils.gen.js.map +0 -1
- package/dist/generated/client.gen.d.ts +0 -13
- package/dist/generated/client.gen.d.ts.map +0 -1
- package/dist/generated/client.gen.js +0 -7
- package/dist/generated/client.gen.js.map +0 -1
- package/dist/generated/core/auth.gen.d.ts +0 -19
- package/dist/generated/core/auth.gen.d.ts.map +0 -1
- package/dist/generated/core/auth.gen.js +0 -19
- package/dist/generated/core/auth.gen.js.map +0 -1
- package/dist/generated/core/bodySerializer.gen.d.ts +0 -26
- package/dist/generated/core/bodySerializer.gen.d.ts.map +0 -1
- package/dist/generated/core/bodySerializer.gen.js +0 -61
- package/dist/generated/core/bodySerializer.gen.js.map +0 -1
- package/dist/generated/core/params.gen.d.ts +0 -44
- package/dist/generated/core/params.gen.d.ts.map +0 -1
- package/dist/generated/core/params.gen.js +0 -105
- package/dist/generated/core/params.gen.js.map +0 -1
- package/dist/generated/core/pathSerializer.gen.d.ts +0 -34
- package/dist/generated/core/pathSerializer.gen.d.ts.map +0 -1
- package/dist/generated/core/pathSerializer.gen.js +0 -124
- package/dist/generated/core/pathSerializer.gen.js.map +0 -1
- package/dist/generated/core/queryKeySerializer.gen.d.ts +0 -19
- package/dist/generated/core/queryKeySerializer.gen.d.ts.map +0 -1
- package/dist/generated/core/queryKeySerializer.gen.js +0 -106
- package/dist/generated/core/queryKeySerializer.gen.js.map +0 -1
- package/dist/generated/core/serverSentEvents.gen.d.ts +0 -72
- package/dist/generated/core/serverSentEvents.gen.d.ts.map +0 -1
- package/dist/generated/core/serverSentEvents.gen.js +0 -140
- package/dist/generated/core/serverSentEvents.gen.js.map +0 -1
- package/dist/generated/core/types.gen.d.ts +0 -79
- package/dist/generated/core/types.gen.d.ts.map +0 -1
- package/dist/generated/core/types.gen.js +0 -4
- package/dist/generated/core/types.gen.js.map +0 -1
- package/dist/generated/core/utils.gen.d.ts +0 -20
- package/dist/generated/core/utils.gen.d.ts.map +0 -1
- package/dist/generated/core/utils.gen.js +0 -94
- package/dist/generated/core/utils.gen.js.map +0 -1
- package/dist/generated/index.d.ts +0 -3
- package/dist/generated/index.d.ts.map +0 -1
- package/dist/generated/index.js +0 -19
- package/dist/generated/index.js.map +0 -1
- package/dist/generated/sdk.gen.d.ts +0 -433
- package/dist/generated/sdk.gen.d.ts.map +0 -1
- package/dist/generated/sdk.gen.js +0 -636
- package/dist/generated/sdk.gen.js.map +0 -1
- package/dist/generated/types.gen.d.ts.map +0 -1
- package/dist/generated/types.gen.js +0 -4
- package/dist/generated/types.gen.js.map +0 -1
- package/dist/src/index.d.ts +0 -310
- package/dist/src/index.d.ts.map +0 -1
- package/dist/src/index.js +0 -518
- 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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
261
|
+
type Budget = "low" | "mid" | "high";
|
|
265
262
|
/**
|
|
266
263
|
* CancelOperationResponse
|
|
267
264
|
*
|
|
268
265
|
* Response model for cancel operation endpoint.
|
|
269
266
|
*/
|
|
270
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1392
|
+
type RecallRequest = {
|
|
1390
1393
|
/**
|
|
1391
1394
|
* Query
|
|
1392
1395
|
*/
|
|
@@ -1440,7 +1443,7 @@ export type RecallRequest = {
|
|
|
1440
1443
|
*
|
|
1441
1444
|
* Response model for recall endpoints.
|
|
1442
1445
|
*/
|
|
1443
|
-
|
|
1446
|
+
type RecallResponse = {
|
|
1444
1447
|
/**
|
|
1445
1448
|
* Results
|
|
1446
1449
|
*/
|
|
@@ -1481,7 +1484,7 @@ export type RecallResponse = {
|
|
|
1481
1484
|
*
|
|
1482
1485
|
* Single recall result item.
|
|
1483
1486
|
*/
|
|
1484
|
-
|
|
1487
|
+
type RecallResult = {
|
|
1485
1488
|
/**
|
|
1486
1489
|
* Id
|
|
1487
1490
|
*/
|
|
@@ -1537,12 +1540,23 @@ export type RecallResult = {
|
|
|
1537
1540
|
*/
|
|
1538
1541
|
source_fact_ids?: Array<string> | null;
|
|
1539
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
|
+
};
|
|
1540
1554
|
/**
|
|
1541
1555
|
* ReflectBasedOn
|
|
1542
1556
|
*
|
|
1543
1557
|
* Evidence the response is based on: memories, mental models, and directives.
|
|
1544
1558
|
*/
|
|
1545
|
-
|
|
1559
|
+
type ReflectBasedOn = {
|
|
1546
1560
|
/**
|
|
1547
1561
|
* Memories
|
|
1548
1562
|
*
|
|
@@ -1567,7 +1581,7 @@ export type ReflectBasedOn = {
|
|
|
1567
1581
|
*
|
|
1568
1582
|
* A directive applied during reflect.
|
|
1569
1583
|
*/
|
|
1570
|
-
|
|
1584
|
+
type ReflectDirective = {
|
|
1571
1585
|
/**
|
|
1572
1586
|
* Id
|
|
1573
1587
|
*
|
|
@@ -1592,7 +1606,7 @@ export type ReflectDirective = {
|
|
|
1592
1606
|
*
|
|
1593
1607
|
* A fact used in think response.
|
|
1594
1608
|
*/
|
|
1595
|
-
|
|
1609
|
+
type ReflectFact = {
|
|
1596
1610
|
/**
|
|
1597
1611
|
* Id
|
|
1598
1612
|
*/
|
|
@@ -1625,7 +1639,7 @@ export type ReflectFact = {
|
|
|
1625
1639
|
*
|
|
1626
1640
|
* Options for including additional data in reflect results.
|
|
1627
1641
|
*/
|
|
1628
|
-
|
|
1642
|
+
type ReflectIncludeOptions = {
|
|
1629
1643
|
/**
|
|
1630
1644
|
* Include facts that the answer is based on. Set to {} to enable, null to disable (default: disabled).
|
|
1631
1645
|
*/
|
|
@@ -1640,7 +1654,7 @@ export type ReflectIncludeOptions = {
|
|
|
1640
1654
|
*
|
|
1641
1655
|
* An LLM call made during reflect agent execution.
|
|
1642
1656
|
*/
|
|
1643
|
-
|
|
1657
|
+
type ReflectLlmCall = {
|
|
1644
1658
|
/**
|
|
1645
1659
|
* Scope
|
|
1646
1660
|
*
|
|
@@ -1659,7 +1673,7 @@ export type ReflectLlmCall = {
|
|
|
1659
1673
|
*
|
|
1660
1674
|
* A mental model used during reflect.
|
|
1661
1675
|
*/
|
|
1662
|
-
|
|
1676
|
+
type ReflectMentalModel = {
|
|
1663
1677
|
/**
|
|
1664
1678
|
* Id
|
|
1665
1679
|
*
|
|
@@ -1684,7 +1698,7 @@ export type ReflectMentalModel = {
|
|
|
1684
1698
|
*
|
|
1685
1699
|
* Request model for reflect endpoint.
|
|
1686
1700
|
*/
|
|
1687
|
-
|
|
1701
|
+
type ReflectRequest = {
|
|
1688
1702
|
/**
|
|
1689
1703
|
* Query
|
|
1690
1704
|
*/
|
|
@@ -1740,7 +1754,7 @@ export type ReflectRequest = {
|
|
|
1740
1754
|
*
|
|
1741
1755
|
* Response model for think endpoint.
|
|
1742
1756
|
*/
|
|
1743
|
-
|
|
1757
|
+
type ReflectResponse = {
|
|
1744
1758
|
/**
|
|
1745
1759
|
* Text
|
|
1746
1760
|
*
|
|
@@ -1773,7 +1787,7 @@ export type ReflectResponse = {
|
|
|
1773
1787
|
*
|
|
1774
1788
|
* A tool call made during reflect agent execution.
|
|
1775
1789
|
*/
|
|
1776
|
-
|
|
1790
|
+
type ReflectToolCall = {
|
|
1777
1791
|
/**
|
|
1778
1792
|
* Tool
|
|
1779
1793
|
*
|
|
@@ -1814,7 +1828,7 @@ export type ReflectToolCall = {
|
|
|
1814
1828
|
*
|
|
1815
1829
|
* Execution trace of LLM and tool calls during reflection.
|
|
1816
1830
|
*/
|
|
1817
|
-
|
|
1831
|
+
type ReflectTrace = {
|
|
1818
1832
|
/**
|
|
1819
1833
|
* Tool Calls
|
|
1820
1834
|
*
|
|
@@ -1833,7 +1847,7 @@ export type ReflectTrace = {
|
|
|
1833
1847
|
*
|
|
1834
1848
|
* Request model for retain endpoint.
|
|
1835
1849
|
*/
|
|
1836
|
-
|
|
1850
|
+
type RetainRequest = {
|
|
1837
1851
|
/**
|
|
1838
1852
|
* Items
|
|
1839
1853
|
*/
|
|
@@ -1858,7 +1872,7 @@ export type RetainRequest = {
|
|
|
1858
1872
|
*
|
|
1859
1873
|
* Response model for retain endpoint.
|
|
1860
1874
|
*/
|
|
1861
|
-
|
|
1875
|
+
type RetainResponse = {
|
|
1862
1876
|
/**
|
|
1863
1877
|
* Success
|
|
1864
1878
|
*/
|
|
@@ -1880,9 +1894,15 @@ export type RetainResponse = {
|
|
|
1880
1894
|
/**
|
|
1881
1895
|
* Operation Id
|
|
1882
1896
|
*
|
|
1883
|
-
* 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.
|
|
1884
1898
|
*/
|
|
1885
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;
|
|
1886
1906
|
/**
|
|
1887
1907
|
* Token usage metrics for LLM calls during fact extraction (only present for synchronous operations)
|
|
1888
1908
|
*/
|
|
@@ -1893,7 +1913,7 @@ export type RetainResponse = {
|
|
|
1893
1913
|
*
|
|
1894
1914
|
* Response model for retry operation endpoint.
|
|
1895
1915
|
*/
|
|
1896
|
-
|
|
1916
|
+
type RetryOperationResponse = {
|
|
1897
1917
|
/**
|
|
1898
1918
|
* Success
|
|
1899
1919
|
*/
|
|
@@ -1912,7 +1932,7 @@ export type RetryOperationResponse = {
|
|
|
1912
1932
|
*
|
|
1913
1933
|
* Options for including source facts for observation-type results.
|
|
1914
1934
|
*/
|
|
1915
|
-
|
|
1935
|
+
type SourceFactsIncludeOptions = {
|
|
1916
1936
|
/**
|
|
1917
1937
|
* Max Tokens
|
|
1918
1938
|
*
|
|
@@ -1931,7 +1951,7 @@ export type SourceFactsIncludeOptions = {
|
|
|
1931
1951
|
*
|
|
1932
1952
|
* Compound AND group: all child filters must match.
|
|
1933
1953
|
*/
|
|
1934
|
-
|
|
1954
|
+
type TagGroupAnd = {
|
|
1935
1955
|
/**
|
|
1936
1956
|
* And
|
|
1937
1957
|
*/
|
|
@@ -1942,7 +1962,7 @@ export type TagGroupAnd = {
|
|
|
1942
1962
|
*
|
|
1943
1963
|
* A leaf tag filter: matches memories by tag list and match mode.
|
|
1944
1964
|
*/
|
|
1945
|
-
|
|
1965
|
+
type TagGroupLeaf = {
|
|
1946
1966
|
/**
|
|
1947
1967
|
* Tags
|
|
1948
1968
|
*/
|
|
@@ -1957,7 +1977,7 @@ export type TagGroupLeaf = {
|
|
|
1957
1977
|
*
|
|
1958
1978
|
* Compound NOT group: child filter must NOT match.
|
|
1959
1979
|
*/
|
|
1960
|
-
|
|
1980
|
+
type TagGroupNot = {
|
|
1961
1981
|
/**
|
|
1962
1982
|
* Not
|
|
1963
1983
|
*/
|
|
@@ -1968,7 +1988,7 @@ export type TagGroupNot = {
|
|
|
1968
1988
|
*
|
|
1969
1989
|
* Compound OR group: at least one child filter must match.
|
|
1970
1990
|
*/
|
|
1971
|
-
|
|
1991
|
+
type TagGroupOr = {
|
|
1972
1992
|
/**
|
|
1973
1993
|
* Or
|
|
1974
1994
|
*/
|
|
@@ -1979,7 +1999,7 @@ export type TagGroupOr = {
|
|
|
1979
1999
|
*
|
|
1980
2000
|
* Single tag with usage count.
|
|
1981
2001
|
*/
|
|
1982
|
-
|
|
2002
|
+
type TagItem = {
|
|
1983
2003
|
/**
|
|
1984
2004
|
* Tag
|
|
1985
2005
|
*
|
|
@@ -2001,7 +2021,7 @@ export type TagItem = {
|
|
|
2001
2021
|
* Tracks input/output tokens for a single request to enable
|
|
2002
2022
|
* per-request cost tracking and monitoring.
|
|
2003
2023
|
*/
|
|
2004
|
-
|
|
2024
|
+
type TokenUsage = {
|
|
2005
2025
|
/**
|
|
2006
2026
|
* Input Tokens
|
|
2007
2027
|
*
|
|
@@ -2026,7 +2046,7 @@ export type TokenUsage = {
|
|
|
2026
2046
|
*
|
|
2027
2047
|
* Options for including tool calls in reflect results.
|
|
2028
2048
|
*/
|
|
2029
|
-
|
|
2049
|
+
type ToolCallsIncludeOptions = {
|
|
2030
2050
|
/**
|
|
2031
2051
|
* Output
|
|
2032
2052
|
*
|
|
@@ -2039,7 +2059,7 @@ export type ToolCallsIncludeOptions = {
|
|
|
2039
2059
|
*
|
|
2040
2060
|
* Request model for updating a directive.
|
|
2041
2061
|
*/
|
|
2042
|
-
|
|
2062
|
+
type UpdateDirectiveRequest = {
|
|
2043
2063
|
/**
|
|
2044
2064
|
* Name
|
|
2045
2065
|
*
|
|
@@ -2076,7 +2096,7 @@ export type UpdateDirectiveRequest = {
|
|
|
2076
2096
|
*
|
|
2077
2097
|
* Request model for updating disposition traits.
|
|
2078
2098
|
*/
|
|
2079
|
-
|
|
2099
|
+
type UpdateDispositionRequest = {
|
|
2080
2100
|
disposition: DispositionTraits;
|
|
2081
2101
|
};
|
|
2082
2102
|
/**
|
|
@@ -2084,7 +2104,7 @@ export type UpdateDispositionRequest = {
|
|
|
2084
2104
|
*
|
|
2085
2105
|
* Request model for updating a document's mutable fields.
|
|
2086
2106
|
*/
|
|
2087
|
-
|
|
2107
|
+
type UpdateDocumentRequest = {
|
|
2088
2108
|
/**
|
|
2089
2109
|
* Tags
|
|
2090
2110
|
*
|
|
@@ -2097,7 +2117,7 @@ export type UpdateDocumentRequest = {
|
|
|
2097
2117
|
*
|
|
2098
2118
|
* Response model for update document endpoint.
|
|
2099
2119
|
*/
|
|
2100
|
-
|
|
2120
|
+
type UpdateDocumentResponse = {
|
|
2101
2121
|
/**
|
|
2102
2122
|
* Success
|
|
2103
2123
|
*/
|
|
@@ -2108,7 +2128,7 @@ export type UpdateDocumentResponse = {
|
|
|
2108
2128
|
*
|
|
2109
2129
|
* Request model for updating a mental model.
|
|
2110
2130
|
*/
|
|
2111
|
-
|
|
2131
|
+
type UpdateMentalModelRequest = {
|
|
2112
2132
|
/**
|
|
2113
2133
|
* Name
|
|
2114
2134
|
*
|
|
@@ -2143,7 +2163,7 @@ export type UpdateMentalModelRequest = {
|
|
|
2143
2163
|
*
|
|
2144
2164
|
* Request model for updating a webhook. Only provided fields are updated.
|
|
2145
2165
|
*/
|
|
2146
|
-
|
|
2166
|
+
type UpdateWebhookRequest = {
|
|
2147
2167
|
/**
|
|
2148
2168
|
* Url
|
|
2149
2169
|
*
|
|
@@ -2176,7 +2196,7 @@ export type UpdateWebhookRequest = {
|
|
|
2176
2196
|
/**
|
|
2177
2197
|
* ValidationError
|
|
2178
2198
|
*/
|
|
2179
|
-
|
|
2199
|
+
type ValidationError = {
|
|
2180
2200
|
/**
|
|
2181
2201
|
* Location
|
|
2182
2202
|
*/
|
|
@@ -2195,7 +2215,7 @@ export type ValidationError = {
|
|
|
2195
2215
|
*
|
|
2196
2216
|
* Response model for the version/info endpoint.
|
|
2197
2217
|
*/
|
|
2198
|
-
|
|
2218
|
+
type VersionResponse = {
|
|
2199
2219
|
/**
|
|
2200
2220
|
* Api Version
|
|
2201
2221
|
*
|
|
@@ -2212,7 +2232,7 @@ export type VersionResponse = {
|
|
|
2212
2232
|
*
|
|
2213
2233
|
* Response model for listing webhook deliveries.
|
|
2214
2234
|
*/
|
|
2215
|
-
|
|
2235
|
+
type WebhookDeliveryListResponse = {
|
|
2216
2236
|
/**
|
|
2217
2237
|
* Items
|
|
2218
2238
|
*/
|
|
@@ -2227,7 +2247,7 @@ export type WebhookDeliveryListResponse = {
|
|
|
2227
2247
|
*
|
|
2228
2248
|
* Response model for a webhook delivery record.
|
|
2229
2249
|
*/
|
|
2230
|
-
|
|
2250
|
+
type WebhookDeliveryResponse = {
|
|
2231
2251
|
/**
|
|
2232
2252
|
* Id
|
|
2233
2253
|
*/
|
|
@@ -2286,7 +2306,7 @@ export type WebhookDeliveryResponse = {
|
|
|
2286
2306
|
*
|
|
2287
2307
|
* HTTP delivery configuration for a webhook.
|
|
2288
2308
|
*/
|
|
2289
|
-
|
|
2309
|
+
type WebhookHttpConfig = {
|
|
2290
2310
|
/**
|
|
2291
2311
|
* Method
|
|
2292
2312
|
*
|
|
@@ -2321,7 +2341,7 @@ export type WebhookHttpConfig = {
|
|
|
2321
2341
|
*
|
|
2322
2342
|
* Response model for listing webhooks.
|
|
2323
2343
|
*/
|
|
2324
|
-
|
|
2344
|
+
type WebhookListResponse = {
|
|
2325
2345
|
/**
|
|
2326
2346
|
* Items
|
|
2327
2347
|
*/
|
|
@@ -2332,7 +2352,7 @@ export type WebhookListResponse = {
|
|
|
2332
2352
|
*
|
|
2333
2353
|
* Response model for a webhook.
|
|
2334
2354
|
*/
|
|
2335
|
-
|
|
2355
|
+
type WebhookResponse = {
|
|
2336
2356
|
/**
|
|
2337
2357
|
* Id
|
|
2338
2358
|
*/
|
|
@@ -2369,44 +2389,43 @@ export type WebhookResponse = {
|
|
|
2369
2389
|
*/
|
|
2370
2390
|
updated_at?: string | null;
|
|
2371
2391
|
};
|
|
2372
|
-
|
|
2392
|
+
type HealthEndpointHealthGetData = {
|
|
2373
2393
|
body?: never;
|
|
2374
2394
|
path?: never;
|
|
2375
2395
|
query?: never;
|
|
2376
2396
|
url: "/health";
|
|
2377
2397
|
};
|
|
2378
|
-
|
|
2398
|
+
type HealthEndpointHealthGetResponses = {
|
|
2379
2399
|
/**
|
|
2380
2400
|
* Successful Response
|
|
2381
2401
|
*/
|
|
2382
2402
|
200: unknown;
|
|
2383
2403
|
};
|
|
2384
|
-
|
|
2404
|
+
type GetVersionData = {
|
|
2385
2405
|
body?: never;
|
|
2386
2406
|
path?: never;
|
|
2387
2407
|
query?: never;
|
|
2388
2408
|
url: "/version";
|
|
2389
2409
|
};
|
|
2390
|
-
|
|
2410
|
+
type GetVersionResponses = {
|
|
2391
2411
|
/**
|
|
2392
2412
|
* Successful Response
|
|
2393
2413
|
*/
|
|
2394
2414
|
200: VersionResponse;
|
|
2395
2415
|
};
|
|
2396
|
-
|
|
2397
|
-
export type MetricsEndpointMetricsGetData = {
|
|
2416
|
+
type MetricsEndpointMetricsGetData = {
|
|
2398
2417
|
body?: never;
|
|
2399
2418
|
path?: never;
|
|
2400
2419
|
query?: never;
|
|
2401
2420
|
url: "/metrics";
|
|
2402
2421
|
};
|
|
2403
|
-
|
|
2422
|
+
type MetricsEndpointMetricsGetResponses = {
|
|
2404
2423
|
/**
|
|
2405
2424
|
* Successful Response
|
|
2406
2425
|
*/
|
|
2407
2426
|
200: unknown;
|
|
2408
2427
|
};
|
|
2409
|
-
|
|
2428
|
+
type GetGraphData = {
|
|
2410
2429
|
body?: never;
|
|
2411
2430
|
headers?: {
|
|
2412
2431
|
/**
|
|
@@ -2444,21 +2463,19 @@ export type GetGraphData = {
|
|
|
2444
2463
|
};
|
|
2445
2464
|
url: "/v1/default/banks/{bank_id}/graph";
|
|
2446
2465
|
};
|
|
2447
|
-
|
|
2466
|
+
type GetGraphErrors = {
|
|
2448
2467
|
/**
|
|
2449
2468
|
* Validation Error
|
|
2450
2469
|
*/
|
|
2451
2470
|
422: HttpValidationError;
|
|
2452
2471
|
};
|
|
2453
|
-
|
|
2454
|
-
export type GetGraphResponses = {
|
|
2472
|
+
type GetGraphResponses = {
|
|
2455
2473
|
/**
|
|
2456
2474
|
* Successful Response
|
|
2457
2475
|
*/
|
|
2458
2476
|
200: GraphDataResponse;
|
|
2459
2477
|
};
|
|
2460
|
-
|
|
2461
|
-
export type ListMemoriesData = {
|
|
2478
|
+
type ListMemoriesData = {
|
|
2462
2479
|
body?: never;
|
|
2463
2480
|
headers?: {
|
|
2464
2481
|
/**
|
|
@@ -2492,21 +2509,19 @@ export type ListMemoriesData = {
|
|
|
2492
2509
|
};
|
|
2493
2510
|
url: "/v1/default/banks/{bank_id}/memories/list";
|
|
2494
2511
|
};
|
|
2495
|
-
|
|
2512
|
+
type ListMemoriesErrors = {
|
|
2496
2513
|
/**
|
|
2497
2514
|
* Validation Error
|
|
2498
2515
|
*/
|
|
2499
2516
|
422: HttpValidationError;
|
|
2500
2517
|
};
|
|
2501
|
-
|
|
2502
|
-
export type ListMemoriesResponses = {
|
|
2518
|
+
type ListMemoriesResponses = {
|
|
2503
2519
|
/**
|
|
2504
2520
|
* Successful Response
|
|
2505
2521
|
*/
|
|
2506
2522
|
200: ListMemoryUnitsResponse;
|
|
2507
2523
|
};
|
|
2508
|
-
|
|
2509
|
-
export type GetMemoryData = {
|
|
2524
|
+
type GetMemoryData = {
|
|
2510
2525
|
body?: never;
|
|
2511
2526
|
headers?: {
|
|
2512
2527
|
/**
|
|
@@ -2527,20 +2542,19 @@ export type GetMemoryData = {
|
|
|
2527
2542
|
query?: never;
|
|
2528
2543
|
url: "/v1/default/banks/{bank_id}/memories/{memory_id}";
|
|
2529
2544
|
};
|
|
2530
|
-
|
|
2545
|
+
type GetMemoryErrors = {
|
|
2531
2546
|
/**
|
|
2532
2547
|
* Validation Error
|
|
2533
2548
|
*/
|
|
2534
2549
|
422: HttpValidationError;
|
|
2535
2550
|
};
|
|
2536
|
-
|
|
2537
|
-
export type GetMemoryResponses = {
|
|
2551
|
+
type GetMemoryResponses = {
|
|
2538
2552
|
/**
|
|
2539
2553
|
* Successful Response
|
|
2540
2554
|
*/
|
|
2541
2555
|
200: unknown;
|
|
2542
2556
|
};
|
|
2543
|
-
|
|
2557
|
+
type GetObservationHistoryData = {
|
|
2544
2558
|
body?: never;
|
|
2545
2559
|
headers?: {
|
|
2546
2560
|
/**
|
|
@@ -2561,20 +2575,19 @@ export type GetObservationHistoryData = {
|
|
|
2561
2575
|
query?: never;
|
|
2562
2576
|
url: "/v1/default/banks/{bank_id}/memories/{memory_id}/history";
|
|
2563
2577
|
};
|
|
2564
|
-
|
|
2578
|
+
type GetObservationHistoryErrors = {
|
|
2565
2579
|
/**
|
|
2566
2580
|
* Validation Error
|
|
2567
2581
|
*/
|
|
2568
2582
|
422: HttpValidationError;
|
|
2569
2583
|
};
|
|
2570
|
-
|
|
2571
|
-
export type GetObservationHistoryResponses = {
|
|
2584
|
+
type GetObservationHistoryResponses = {
|
|
2572
2585
|
/**
|
|
2573
2586
|
* Successful Response
|
|
2574
2587
|
*/
|
|
2575
2588
|
200: unknown;
|
|
2576
2589
|
};
|
|
2577
|
-
|
|
2590
|
+
type RecallMemoriesData = {
|
|
2578
2591
|
body: RecallRequest;
|
|
2579
2592
|
headers?: {
|
|
2580
2593
|
/**
|
|
@@ -2591,21 +2604,19 @@ export type RecallMemoriesData = {
|
|
|
2591
2604
|
query?: never;
|
|
2592
2605
|
url: "/v1/default/banks/{bank_id}/memories/recall";
|
|
2593
2606
|
};
|
|
2594
|
-
|
|
2607
|
+
type RecallMemoriesErrors = {
|
|
2595
2608
|
/**
|
|
2596
2609
|
* Validation Error
|
|
2597
2610
|
*/
|
|
2598
2611
|
422: HttpValidationError;
|
|
2599
2612
|
};
|
|
2600
|
-
|
|
2601
|
-
export type RecallMemoriesResponses = {
|
|
2613
|
+
type RecallMemoriesResponses = {
|
|
2602
2614
|
/**
|
|
2603
2615
|
* Successful Response
|
|
2604
2616
|
*/
|
|
2605
2617
|
200: RecallResponse;
|
|
2606
2618
|
};
|
|
2607
|
-
|
|
2608
|
-
export type ReflectData = {
|
|
2619
|
+
type ReflectData = {
|
|
2609
2620
|
body: ReflectRequest;
|
|
2610
2621
|
headers?: {
|
|
2611
2622
|
/**
|
|
@@ -2622,21 +2633,19 @@ export type ReflectData = {
|
|
|
2622
2633
|
query?: never;
|
|
2623
2634
|
url: "/v1/default/banks/{bank_id}/reflect";
|
|
2624
2635
|
};
|
|
2625
|
-
|
|
2636
|
+
type ReflectErrors = {
|
|
2626
2637
|
/**
|
|
2627
2638
|
* Validation Error
|
|
2628
2639
|
*/
|
|
2629
2640
|
422: HttpValidationError;
|
|
2630
2641
|
};
|
|
2631
|
-
|
|
2632
|
-
export type ReflectResponses = {
|
|
2642
|
+
type ReflectResponses = {
|
|
2633
2643
|
/**
|
|
2634
2644
|
* Successful Response
|
|
2635
2645
|
*/
|
|
2636
2646
|
200: ReflectResponse;
|
|
2637
2647
|
};
|
|
2638
|
-
|
|
2639
|
-
export type ListBanksData = {
|
|
2648
|
+
type ListBanksData = {
|
|
2640
2649
|
body?: never;
|
|
2641
2650
|
headers?: {
|
|
2642
2651
|
/**
|
|
@@ -2648,21 +2657,19 @@ export type ListBanksData = {
|
|
|
2648
2657
|
query?: never;
|
|
2649
2658
|
url: "/v1/default/banks";
|
|
2650
2659
|
};
|
|
2651
|
-
|
|
2660
|
+
type ListBanksErrors = {
|
|
2652
2661
|
/**
|
|
2653
2662
|
* Validation Error
|
|
2654
2663
|
*/
|
|
2655
2664
|
422: HttpValidationError;
|
|
2656
2665
|
};
|
|
2657
|
-
|
|
2658
|
-
export type ListBanksResponses = {
|
|
2666
|
+
type ListBanksResponses = {
|
|
2659
2667
|
/**
|
|
2660
2668
|
* Successful Response
|
|
2661
2669
|
*/
|
|
2662
2670
|
200: BankListResponse;
|
|
2663
2671
|
};
|
|
2664
|
-
|
|
2665
|
-
export type GetAgentStatsData = {
|
|
2672
|
+
type GetAgentStatsData = {
|
|
2666
2673
|
body?: never;
|
|
2667
2674
|
headers?: {
|
|
2668
2675
|
/**
|
|
@@ -2679,21 +2686,19 @@ export type GetAgentStatsData = {
|
|
|
2679
2686
|
query?: never;
|
|
2680
2687
|
url: "/v1/default/banks/{bank_id}/stats";
|
|
2681
2688
|
};
|
|
2682
|
-
|
|
2689
|
+
type GetAgentStatsErrors = {
|
|
2683
2690
|
/**
|
|
2684
2691
|
* Validation Error
|
|
2685
2692
|
*/
|
|
2686
2693
|
422: HttpValidationError;
|
|
2687
2694
|
};
|
|
2688
|
-
|
|
2689
|
-
export type GetAgentStatsResponses = {
|
|
2695
|
+
type GetAgentStatsResponses = {
|
|
2690
2696
|
/**
|
|
2691
2697
|
* Successful Response
|
|
2692
2698
|
*/
|
|
2693
2699
|
200: BankStatsResponse;
|
|
2694
2700
|
};
|
|
2695
|
-
|
|
2696
|
-
export type ListEntitiesData = {
|
|
2701
|
+
type ListEntitiesData = {
|
|
2697
2702
|
body?: never;
|
|
2698
2703
|
headers?: {
|
|
2699
2704
|
/**
|
|
@@ -2723,21 +2728,19 @@ export type ListEntitiesData = {
|
|
|
2723
2728
|
};
|
|
2724
2729
|
url: "/v1/default/banks/{bank_id}/entities";
|
|
2725
2730
|
};
|
|
2726
|
-
|
|
2731
|
+
type ListEntitiesErrors = {
|
|
2727
2732
|
/**
|
|
2728
2733
|
* Validation Error
|
|
2729
2734
|
*/
|
|
2730
2735
|
422: HttpValidationError;
|
|
2731
2736
|
};
|
|
2732
|
-
|
|
2733
|
-
export type ListEntitiesResponses = {
|
|
2737
|
+
type ListEntitiesResponses = {
|
|
2734
2738
|
/**
|
|
2735
2739
|
* Successful Response
|
|
2736
2740
|
*/
|
|
2737
2741
|
200: EntityListResponse;
|
|
2738
2742
|
};
|
|
2739
|
-
|
|
2740
|
-
export type GetEntityData = {
|
|
2743
|
+
type GetEntityData = {
|
|
2741
2744
|
body?: never;
|
|
2742
2745
|
headers?: {
|
|
2743
2746
|
/**
|
|
@@ -2758,21 +2761,19 @@ export type GetEntityData = {
|
|
|
2758
2761
|
query?: never;
|
|
2759
2762
|
url: "/v1/default/banks/{bank_id}/entities/{entity_id}";
|
|
2760
2763
|
};
|
|
2761
|
-
|
|
2764
|
+
type GetEntityErrors = {
|
|
2762
2765
|
/**
|
|
2763
2766
|
* Validation Error
|
|
2764
2767
|
*/
|
|
2765
2768
|
422: HttpValidationError;
|
|
2766
2769
|
};
|
|
2767
|
-
|
|
2768
|
-
export type GetEntityResponses = {
|
|
2770
|
+
type GetEntityResponses = {
|
|
2769
2771
|
/**
|
|
2770
2772
|
* Successful Response
|
|
2771
2773
|
*/
|
|
2772
2774
|
200: EntityDetailResponse;
|
|
2773
2775
|
};
|
|
2774
|
-
|
|
2775
|
-
export type RegenerateEntityObservationsData = {
|
|
2776
|
+
type RegenerateEntityObservationsData = {
|
|
2776
2777
|
body?: never;
|
|
2777
2778
|
headers?: {
|
|
2778
2779
|
/**
|
|
@@ -2793,21 +2794,19 @@ export type RegenerateEntityObservationsData = {
|
|
|
2793
2794
|
query?: never;
|
|
2794
2795
|
url: "/v1/default/banks/{bank_id}/entities/{entity_id}/regenerate";
|
|
2795
2796
|
};
|
|
2796
|
-
|
|
2797
|
+
type RegenerateEntityObservationsErrors = {
|
|
2797
2798
|
/**
|
|
2798
2799
|
* Validation Error
|
|
2799
2800
|
*/
|
|
2800
2801
|
422: HttpValidationError;
|
|
2801
2802
|
};
|
|
2802
|
-
|
|
2803
|
-
export type RegenerateEntityObservationsResponses = {
|
|
2803
|
+
type RegenerateEntityObservationsResponses = {
|
|
2804
2804
|
/**
|
|
2805
2805
|
* Successful Response
|
|
2806
2806
|
*/
|
|
2807
2807
|
200: EntityDetailResponse;
|
|
2808
2808
|
};
|
|
2809
|
-
|
|
2810
|
-
export type ListMentalModelsData = {
|
|
2809
|
+
type ListMentalModelsData = {
|
|
2811
2810
|
body?: never;
|
|
2812
2811
|
headers?: {
|
|
2813
2812
|
/**
|
|
@@ -2845,21 +2844,19 @@ export type ListMentalModelsData = {
|
|
|
2845
2844
|
};
|
|
2846
2845
|
url: "/v1/default/banks/{bank_id}/mental-models";
|
|
2847
2846
|
};
|
|
2848
|
-
|
|
2847
|
+
type ListMentalModelsErrors = {
|
|
2849
2848
|
/**
|
|
2850
2849
|
* Validation Error
|
|
2851
2850
|
*/
|
|
2852
2851
|
422: HttpValidationError;
|
|
2853
2852
|
};
|
|
2854
|
-
|
|
2855
|
-
export type ListMentalModelsResponses = {
|
|
2853
|
+
type ListMentalModelsResponses = {
|
|
2856
2854
|
/**
|
|
2857
2855
|
* Successful Response
|
|
2858
2856
|
*/
|
|
2859
2857
|
200: MentalModelListResponse;
|
|
2860
2858
|
};
|
|
2861
|
-
|
|
2862
|
-
export type CreateMentalModelData = {
|
|
2859
|
+
type CreateMentalModelData = {
|
|
2863
2860
|
body: CreateMentalModelRequest;
|
|
2864
2861
|
headers?: {
|
|
2865
2862
|
/**
|
|
@@ -2876,21 +2873,19 @@ export type CreateMentalModelData = {
|
|
|
2876
2873
|
query?: never;
|
|
2877
2874
|
url: "/v1/default/banks/{bank_id}/mental-models";
|
|
2878
2875
|
};
|
|
2879
|
-
|
|
2876
|
+
type CreateMentalModelErrors = {
|
|
2880
2877
|
/**
|
|
2881
2878
|
* Validation Error
|
|
2882
2879
|
*/
|
|
2883
2880
|
422: HttpValidationError;
|
|
2884
2881
|
};
|
|
2885
|
-
|
|
2886
|
-
export type CreateMentalModelResponses = {
|
|
2882
|
+
type CreateMentalModelResponses = {
|
|
2887
2883
|
/**
|
|
2888
2884
|
* Successful Response
|
|
2889
2885
|
*/
|
|
2890
2886
|
200: CreateMentalModelResponse;
|
|
2891
2887
|
};
|
|
2892
|
-
|
|
2893
|
-
export type DeleteMentalModelData = {
|
|
2888
|
+
type DeleteMentalModelData = {
|
|
2894
2889
|
body?: never;
|
|
2895
2890
|
headers?: {
|
|
2896
2891
|
/**
|
|
@@ -2911,20 +2906,19 @@ export type DeleteMentalModelData = {
|
|
|
2911
2906
|
query?: never;
|
|
2912
2907
|
url: "/v1/default/banks/{bank_id}/mental-models/{mental_model_id}";
|
|
2913
2908
|
};
|
|
2914
|
-
|
|
2909
|
+
type DeleteMentalModelErrors = {
|
|
2915
2910
|
/**
|
|
2916
2911
|
* Validation Error
|
|
2917
2912
|
*/
|
|
2918
2913
|
422: HttpValidationError;
|
|
2919
2914
|
};
|
|
2920
|
-
|
|
2921
|
-
export type DeleteMentalModelResponses = {
|
|
2915
|
+
type DeleteMentalModelResponses = {
|
|
2922
2916
|
/**
|
|
2923
2917
|
* Successful Response
|
|
2924
2918
|
*/
|
|
2925
2919
|
200: unknown;
|
|
2926
2920
|
};
|
|
2927
|
-
|
|
2921
|
+
type GetMentalModelData = {
|
|
2928
2922
|
body?: never;
|
|
2929
2923
|
headers?: {
|
|
2930
2924
|
/**
|
|
@@ -2945,21 +2939,19 @@ export type GetMentalModelData = {
|
|
|
2945
2939
|
query?: never;
|
|
2946
2940
|
url: "/v1/default/banks/{bank_id}/mental-models/{mental_model_id}";
|
|
2947
2941
|
};
|
|
2948
|
-
|
|
2942
|
+
type GetMentalModelErrors = {
|
|
2949
2943
|
/**
|
|
2950
2944
|
* Validation Error
|
|
2951
2945
|
*/
|
|
2952
2946
|
422: HttpValidationError;
|
|
2953
2947
|
};
|
|
2954
|
-
|
|
2955
|
-
export type GetMentalModelResponses = {
|
|
2948
|
+
type GetMentalModelResponses = {
|
|
2956
2949
|
/**
|
|
2957
2950
|
* Successful Response
|
|
2958
2951
|
*/
|
|
2959
2952
|
200: MentalModelResponse;
|
|
2960
2953
|
};
|
|
2961
|
-
|
|
2962
|
-
export type UpdateMentalModelData = {
|
|
2954
|
+
type UpdateMentalModelData = {
|
|
2963
2955
|
body: UpdateMentalModelRequest;
|
|
2964
2956
|
headers?: {
|
|
2965
2957
|
/**
|
|
@@ -2980,21 +2972,19 @@ export type UpdateMentalModelData = {
|
|
|
2980
2972
|
query?: never;
|
|
2981
2973
|
url: "/v1/default/banks/{bank_id}/mental-models/{mental_model_id}";
|
|
2982
2974
|
};
|
|
2983
|
-
|
|
2975
|
+
type UpdateMentalModelErrors = {
|
|
2984
2976
|
/**
|
|
2985
2977
|
* Validation Error
|
|
2986
2978
|
*/
|
|
2987
2979
|
422: HttpValidationError;
|
|
2988
2980
|
};
|
|
2989
|
-
|
|
2990
|
-
export type UpdateMentalModelResponses = {
|
|
2981
|
+
type UpdateMentalModelResponses = {
|
|
2991
2982
|
/**
|
|
2992
2983
|
* Successful Response
|
|
2993
2984
|
*/
|
|
2994
2985
|
200: MentalModelResponse;
|
|
2995
2986
|
};
|
|
2996
|
-
|
|
2997
|
-
export type GetMentalModelHistoryData = {
|
|
2987
|
+
type GetMentalModelHistoryData = {
|
|
2998
2988
|
body?: never;
|
|
2999
2989
|
headers?: {
|
|
3000
2990
|
/**
|
|
@@ -3015,20 +3005,19 @@ export type GetMentalModelHistoryData = {
|
|
|
3015
3005
|
query?: never;
|
|
3016
3006
|
url: "/v1/default/banks/{bank_id}/mental-models/{mental_model_id}/history";
|
|
3017
3007
|
};
|
|
3018
|
-
|
|
3008
|
+
type GetMentalModelHistoryErrors = {
|
|
3019
3009
|
/**
|
|
3020
3010
|
* Validation Error
|
|
3021
3011
|
*/
|
|
3022
3012
|
422: HttpValidationError;
|
|
3023
3013
|
};
|
|
3024
|
-
|
|
3025
|
-
export type GetMentalModelHistoryResponses = {
|
|
3014
|
+
type GetMentalModelHistoryResponses = {
|
|
3026
3015
|
/**
|
|
3027
3016
|
* Successful Response
|
|
3028
3017
|
*/
|
|
3029
3018
|
200: unknown;
|
|
3030
3019
|
};
|
|
3031
|
-
|
|
3020
|
+
type RefreshMentalModelData = {
|
|
3032
3021
|
body?: never;
|
|
3033
3022
|
headers?: {
|
|
3034
3023
|
/**
|
|
@@ -3049,21 +3038,19 @@ export type RefreshMentalModelData = {
|
|
|
3049
3038
|
query?: never;
|
|
3050
3039
|
url: "/v1/default/banks/{bank_id}/mental-models/{mental_model_id}/refresh";
|
|
3051
3040
|
};
|
|
3052
|
-
|
|
3041
|
+
type RefreshMentalModelErrors = {
|
|
3053
3042
|
/**
|
|
3054
3043
|
* Validation Error
|
|
3055
3044
|
*/
|
|
3056
3045
|
422: HttpValidationError;
|
|
3057
3046
|
};
|
|
3058
|
-
|
|
3059
|
-
export type RefreshMentalModelResponses = {
|
|
3047
|
+
type RefreshMentalModelResponses = {
|
|
3060
3048
|
/**
|
|
3061
3049
|
* Successful Response
|
|
3062
3050
|
*/
|
|
3063
3051
|
200: AsyncOperationSubmitResponse;
|
|
3064
3052
|
};
|
|
3065
|
-
|
|
3066
|
-
export type ListDirectivesData = {
|
|
3053
|
+
type ListDirectivesData = {
|
|
3067
3054
|
body?: never;
|
|
3068
3055
|
headers?: {
|
|
3069
3056
|
/**
|
|
@@ -3107,21 +3094,19 @@ export type ListDirectivesData = {
|
|
|
3107
3094
|
};
|
|
3108
3095
|
url: "/v1/default/banks/{bank_id}/directives";
|
|
3109
3096
|
};
|
|
3110
|
-
|
|
3097
|
+
type ListDirectivesErrors = {
|
|
3111
3098
|
/**
|
|
3112
3099
|
* Validation Error
|
|
3113
3100
|
*/
|
|
3114
3101
|
422: HttpValidationError;
|
|
3115
3102
|
};
|
|
3116
|
-
|
|
3117
|
-
export type ListDirectivesResponses = {
|
|
3103
|
+
type ListDirectivesResponses = {
|
|
3118
3104
|
/**
|
|
3119
3105
|
* Successful Response
|
|
3120
3106
|
*/
|
|
3121
3107
|
200: DirectiveListResponse;
|
|
3122
3108
|
};
|
|
3123
|
-
|
|
3124
|
-
export type CreateDirectiveData = {
|
|
3109
|
+
type CreateDirectiveData = {
|
|
3125
3110
|
body: CreateDirectiveRequest;
|
|
3126
3111
|
headers?: {
|
|
3127
3112
|
/**
|
|
@@ -3138,21 +3123,19 @@ export type CreateDirectiveData = {
|
|
|
3138
3123
|
query?: never;
|
|
3139
3124
|
url: "/v1/default/banks/{bank_id}/directives";
|
|
3140
3125
|
};
|
|
3141
|
-
|
|
3126
|
+
type CreateDirectiveErrors = {
|
|
3142
3127
|
/**
|
|
3143
3128
|
* Validation Error
|
|
3144
3129
|
*/
|
|
3145
3130
|
422: HttpValidationError;
|
|
3146
3131
|
};
|
|
3147
|
-
|
|
3148
|
-
export type CreateDirectiveResponses = {
|
|
3132
|
+
type CreateDirectiveResponses = {
|
|
3149
3133
|
/**
|
|
3150
3134
|
* Successful Response
|
|
3151
3135
|
*/
|
|
3152
3136
|
200: DirectiveResponse;
|
|
3153
3137
|
};
|
|
3154
|
-
|
|
3155
|
-
export type DeleteDirectiveData = {
|
|
3138
|
+
type DeleteDirectiveData = {
|
|
3156
3139
|
body?: never;
|
|
3157
3140
|
headers?: {
|
|
3158
3141
|
/**
|
|
@@ -3173,20 +3156,19 @@ export type DeleteDirectiveData = {
|
|
|
3173
3156
|
query?: never;
|
|
3174
3157
|
url: "/v1/default/banks/{bank_id}/directives/{directive_id}";
|
|
3175
3158
|
};
|
|
3176
|
-
|
|
3159
|
+
type DeleteDirectiveErrors = {
|
|
3177
3160
|
/**
|
|
3178
3161
|
* Validation Error
|
|
3179
3162
|
*/
|
|
3180
3163
|
422: HttpValidationError;
|
|
3181
3164
|
};
|
|
3182
|
-
|
|
3183
|
-
export type DeleteDirectiveResponses = {
|
|
3165
|
+
type DeleteDirectiveResponses = {
|
|
3184
3166
|
/**
|
|
3185
3167
|
* Successful Response
|
|
3186
3168
|
*/
|
|
3187
3169
|
200: unknown;
|
|
3188
3170
|
};
|
|
3189
|
-
|
|
3171
|
+
type GetDirectiveData = {
|
|
3190
3172
|
body?: never;
|
|
3191
3173
|
headers?: {
|
|
3192
3174
|
/**
|
|
@@ -3207,21 +3189,19 @@ export type GetDirectiveData = {
|
|
|
3207
3189
|
query?: never;
|
|
3208
3190
|
url: "/v1/default/banks/{bank_id}/directives/{directive_id}";
|
|
3209
3191
|
};
|
|
3210
|
-
|
|
3192
|
+
type GetDirectiveErrors = {
|
|
3211
3193
|
/**
|
|
3212
3194
|
* Validation Error
|
|
3213
3195
|
*/
|
|
3214
3196
|
422: HttpValidationError;
|
|
3215
3197
|
};
|
|
3216
|
-
|
|
3217
|
-
export type GetDirectiveResponses = {
|
|
3198
|
+
type GetDirectiveResponses = {
|
|
3218
3199
|
/**
|
|
3219
3200
|
* Successful Response
|
|
3220
3201
|
*/
|
|
3221
3202
|
200: DirectiveResponse;
|
|
3222
3203
|
};
|
|
3223
|
-
|
|
3224
|
-
export type UpdateDirectiveData = {
|
|
3204
|
+
type UpdateDirectiveData = {
|
|
3225
3205
|
body: UpdateDirectiveRequest;
|
|
3226
3206
|
headers?: {
|
|
3227
3207
|
/**
|
|
@@ -3242,21 +3222,19 @@ export type UpdateDirectiveData = {
|
|
|
3242
3222
|
query?: never;
|
|
3243
3223
|
url: "/v1/default/banks/{bank_id}/directives/{directive_id}";
|
|
3244
3224
|
};
|
|
3245
|
-
|
|
3225
|
+
type UpdateDirectiveErrors = {
|
|
3246
3226
|
/**
|
|
3247
3227
|
* Validation Error
|
|
3248
3228
|
*/
|
|
3249
3229
|
422: HttpValidationError;
|
|
3250
3230
|
};
|
|
3251
|
-
|
|
3252
|
-
export type UpdateDirectiveResponses = {
|
|
3231
|
+
type UpdateDirectiveResponses = {
|
|
3253
3232
|
/**
|
|
3254
3233
|
* Successful Response
|
|
3255
3234
|
*/
|
|
3256
3235
|
200: DirectiveResponse;
|
|
3257
3236
|
};
|
|
3258
|
-
|
|
3259
|
-
export type ListDocumentsData = {
|
|
3237
|
+
type ListDocumentsData = {
|
|
3260
3238
|
body?: never;
|
|
3261
3239
|
headers?: {
|
|
3262
3240
|
/**
|
|
@@ -3300,21 +3278,19 @@ export type ListDocumentsData = {
|
|
|
3300
3278
|
};
|
|
3301
3279
|
url: "/v1/default/banks/{bank_id}/documents";
|
|
3302
3280
|
};
|
|
3303
|
-
|
|
3281
|
+
type ListDocumentsErrors = {
|
|
3304
3282
|
/**
|
|
3305
3283
|
* Validation Error
|
|
3306
3284
|
*/
|
|
3307
3285
|
422: HttpValidationError;
|
|
3308
3286
|
};
|
|
3309
|
-
|
|
3310
|
-
export type ListDocumentsResponses = {
|
|
3287
|
+
type ListDocumentsResponses = {
|
|
3311
3288
|
/**
|
|
3312
3289
|
* Successful Response
|
|
3313
3290
|
*/
|
|
3314
3291
|
200: ListDocumentsResponse;
|
|
3315
3292
|
};
|
|
3316
|
-
|
|
3317
|
-
export type DeleteDocumentData = {
|
|
3293
|
+
type DeleteDocumentData = {
|
|
3318
3294
|
body?: never;
|
|
3319
3295
|
headers?: {
|
|
3320
3296
|
/**
|
|
@@ -3335,21 +3311,19 @@ export type DeleteDocumentData = {
|
|
|
3335
3311
|
query?: never;
|
|
3336
3312
|
url: "/v1/default/banks/{bank_id}/documents/{document_id}";
|
|
3337
3313
|
};
|
|
3338
|
-
|
|
3314
|
+
type DeleteDocumentErrors = {
|
|
3339
3315
|
/**
|
|
3340
3316
|
* Validation Error
|
|
3341
3317
|
*/
|
|
3342
3318
|
422: HttpValidationError;
|
|
3343
3319
|
};
|
|
3344
|
-
|
|
3345
|
-
export type DeleteDocumentResponses = {
|
|
3320
|
+
type DeleteDocumentResponses = {
|
|
3346
3321
|
/**
|
|
3347
3322
|
* Successful Response
|
|
3348
3323
|
*/
|
|
3349
3324
|
200: DeleteDocumentResponse;
|
|
3350
3325
|
};
|
|
3351
|
-
|
|
3352
|
-
export type GetDocumentData = {
|
|
3326
|
+
type GetDocumentData = {
|
|
3353
3327
|
body?: never;
|
|
3354
3328
|
headers?: {
|
|
3355
3329
|
/**
|
|
@@ -3370,21 +3344,19 @@ export type GetDocumentData = {
|
|
|
3370
3344
|
query?: never;
|
|
3371
3345
|
url: "/v1/default/banks/{bank_id}/documents/{document_id}";
|
|
3372
3346
|
};
|
|
3373
|
-
|
|
3347
|
+
type GetDocumentErrors = {
|
|
3374
3348
|
/**
|
|
3375
3349
|
* Validation Error
|
|
3376
3350
|
*/
|
|
3377
3351
|
422: HttpValidationError;
|
|
3378
3352
|
};
|
|
3379
|
-
|
|
3380
|
-
export type GetDocumentResponses = {
|
|
3353
|
+
type GetDocumentResponses = {
|
|
3381
3354
|
/**
|
|
3382
3355
|
* Successful Response
|
|
3383
3356
|
*/
|
|
3384
3357
|
200: DocumentResponse;
|
|
3385
3358
|
};
|
|
3386
|
-
|
|
3387
|
-
export type UpdateDocumentData = {
|
|
3359
|
+
type UpdateDocumentData = {
|
|
3388
3360
|
body: UpdateDocumentRequest;
|
|
3389
3361
|
headers?: {
|
|
3390
3362
|
/**
|
|
@@ -3405,21 +3377,19 @@ export type UpdateDocumentData = {
|
|
|
3405
3377
|
query?: never;
|
|
3406
3378
|
url: "/v1/default/banks/{bank_id}/documents/{document_id}";
|
|
3407
3379
|
};
|
|
3408
|
-
|
|
3380
|
+
type UpdateDocumentErrors = {
|
|
3409
3381
|
/**
|
|
3410
3382
|
* Validation Error
|
|
3411
3383
|
*/
|
|
3412
3384
|
422: HttpValidationError;
|
|
3413
3385
|
};
|
|
3414
|
-
|
|
3415
|
-
export type UpdateDocumentResponses = {
|
|
3386
|
+
type UpdateDocumentResponses = {
|
|
3416
3387
|
/**
|
|
3417
3388
|
* Successful Response
|
|
3418
3389
|
*/
|
|
3419
3390
|
200: UpdateDocumentResponse;
|
|
3420
3391
|
};
|
|
3421
|
-
|
|
3422
|
-
export type ListTagsData = {
|
|
3392
|
+
type ListTagsData = {
|
|
3423
3393
|
body?: never;
|
|
3424
3394
|
headers?: {
|
|
3425
3395
|
/**
|
|
@@ -3455,21 +3425,19 @@ export type ListTagsData = {
|
|
|
3455
3425
|
};
|
|
3456
3426
|
url: "/v1/default/banks/{bank_id}/tags";
|
|
3457
3427
|
};
|
|
3458
|
-
|
|
3428
|
+
type ListTagsErrors = {
|
|
3459
3429
|
/**
|
|
3460
3430
|
* Validation Error
|
|
3461
3431
|
*/
|
|
3462
3432
|
422: HttpValidationError;
|
|
3463
3433
|
};
|
|
3464
|
-
|
|
3465
|
-
export type ListTagsResponses = {
|
|
3434
|
+
type ListTagsResponses = {
|
|
3466
3435
|
/**
|
|
3467
3436
|
* Successful Response
|
|
3468
3437
|
*/
|
|
3469
3438
|
200: ListTagsResponse;
|
|
3470
3439
|
};
|
|
3471
|
-
|
|
3472
|
-
export type GetChunkData = {
|
|
3440
|
+
type GetChunkData = {
|
|
3473
3441
|
body?: never;
|
|
3474
3442
|
headers?: {
|
|
3475
3443
|
/**
|
|
@@ -3486,21 +3454,19 @@ export type GetChunkData = {
|
|
|
3486
3454
|
query?: never;
|
|
3487
3455
|
url: "/v1/default/chunks/{chunk_id}";
|
|
3488
3456
|
};
|
|
3489
|
-
|
|
3457
|
+
type GetChunkErrors = {
|
|
3490
3458
|
/**
|
|
3491
3459
|
* Validation Error
|
|
3492
3460
|
*/
|
|
3493
3461
|
422: HttpValidationError;
|
|
3494
3462
|
};
|
|
3495
|
-
|
|
3496
|
-
export type GetChunkResponses = {
|
|
3463
|
+
type GetChunkResponses = {
|
|
3497
3464
|
/**
|
|
3498
3465
|
* Successful Response
|
|
3499
3466
|
*/
|
|
3500
3467
|
200: ChunkResponse;
|
|
3501
3468
|
};
|
|
3502
|
-
|
|
3503
|
-
export type ListOperationsData = {
|
|
3469
|
+
type ListOperationsData = {
|
|
3504
3470
|
body?: never;
|
|
3505
3471
|
headers?: {
|
|
3506
3472
|
/**
|
|
@@ -3542,21 +3508,19 @@ export type ListOperationsData = {
|
|
|
3542
3508
|
};
|
|
3543
3509
|
url: "/v1/default/banks/{bank_id}/operations";
|
|
3544
3510
|
};
|
|
3545
|
-
|
|
3511
|
+
type ListOperationsErrors = {
|
|
3546
3512
|
/**
|
|
3547
3513
|
* Validation Error
|
|
3548
3514
|
*/
|
|
3549
3515
|
422: HttpValidationError;
|
|
3550
3516
|
};
|
|
3551
|
-
|
|
3552
|
-
export type ListOperationsResponses = {
|
|
3517
|
+
type ListOperationsResponses = {
|
|
3553
3518
|
/**
|
|
3554
3519
|
* Successful Response
|
|
3555
3520
|
*/
|
|
3556
3521
|
200: OperationsListResponse;
|
|
3557
3522
|
};
|
|
3558
|
-
|
|
3559
|
-
export type CancelOperationData = {
|
|
3523
|
+
type CancelOperationData = {
|
|
3560
3524
|
body?: never;
|
|
3561
3525
|
headers?: {
|
|
3562
3526
|
/**
|
|
@@ -3577,21 +3541,19 @@ export type CancelOperationData = {
|
|
|
3577
3541
|
query?: never;
|
|
3578
3542
|
url: "/v1/default/banks/{bank_id}/operations/{operation_id}";
|
|
3579
3543
|
};
|
|
3580
|
-
|
|
3544
|
+
type CancelOperationErrors = {
|
|
3581
3545
|
/**
|
|
3582
3546
|
* Validation Error
|
|
3583
3547
|
*/
|
|
3584
3548
|
422: HttpValidationError;
|
|
3585
3549
|
};
|
|
3586
|
-
|
|
3587
|
-
export type CancelOperationResponses = {
|
|
3550
|
+
type CancelOperationResponses = {
|
|
3588
3551
|
/**
|
|
3589
3552
|
* Successful Response
|
|
3590
3553
|
*/
|
|
3591
3554
|
200: CancelOperationResponse;
|
|
3592
3555
|
};
|
|
3593
|
-
|
|
3594
|
-
export type GetOperationStatusData = {
|
|
3556
|
+
type GetOperationStatusData = {
|
|
3595
3557
|
body?: never;
|
|
3596
3558
|
headers?: {
|
|
3597
3559
|
/**
|
|
@@ -3612,21 +3574,19 @@ export type GetOperationStatusData = {
|
|
|
3612
3574
|
query?: never;
|
|
3613
3575
|
url: "/v1/default/banks/{bank_id}/operations/{operation_id}";
|
|
3614
3576
|
};
|
|
3615
|
-
|
|
3577
|
+
type GetOperationStatusErrors = {
|
|
3616
3578
|
/**
|
|
3617
3579
|
* Validation Error
|
|
3618
3580
|
*/
|
|
3619
3581
|
422: HttpValidationError;
|
|
3620
3582
|
};
|
|
3621
|
-
|
|
3622
|
-
export type GetOperationStatusResponses = {
|
|
3583
|
+
type GetOperationStatusResponses = {
|
|
3623
3584
|
/**
|
|
3624
3585
|
* Successful Response
|
|
3625
3586
|
*/
|
|
3626
3587
|
200: OperationStatusResponse;
|
|
3627
3588
|
};
|
|
3628
|
-
|
|
3629
|
-
export type RetryOperationData = {
|
|
3589
|
+
type RetryOperationData = {
|
|
3630
3590
|
body?: never;
|
|
3631
3591
|
headers?: {
|
|
3632
3592
|
/**
|
|
@@ -3647,21 +3607,19 @@ export type RetryOperationData = {
|
|
|
3647
3607
|
query?: never;
|
|
3648
3608
|
url: "/v1/default/banks/{bank_id}/operations/{operation_id}/retry";
|
|
3649
3609
|
};
|
|
3650
|
-
|
|
3610
|
+
type RetryOperationErrors = {
|
|
3651
3611
|
/**
|
|
3652
3612
|
* Validation Error
|
|
3653
3613
|
*/
|
|
3654
3614
|
422: HttpValidationError;
|
|
3655
3615
|
};
|
|
3656
|
-
|
|
3657
|
-
export type RetryOperationResponses = {
|
|
3616
|
+
type RetryOperationResponses = {
|
|
3658
3617
|
/**
|
|
3659
3618
|
* Successful Response
|
|
3660
3619
|
*/
|
|
3661
3620
|
200: RetryOperationResponse;
|
|
3662
3621
|
};
|
|
3663
|
-
|
|
3664
|
-
export type GetBankProfileData = {
|
|
3622
|
+
type GetBankProfileData = {
|
|
3665
3623
|
body?: never;
|
|
3666
3624
|
headers?: {
|
|
3667
3625
|
/**
|
|
@@ -3678,21 +3636,19 @@ export type GetBankProfileData = {
|
|
|
3678
3636
|
query?: never;
|
|
3679
3637
|
url: "/v1/default/banks/{bank_id}/profile";
|
|
3680
3638
|
};
|
|
3681
|
-
|
|
3639
|
+
type GetBankProfileErrors = {
|
|
3682
3640
|
/**
|
|
3683
3641
|
* Validation Error
|
|
3684
3642
|
*/
|
|
3685
3643
|
422: HttpValidationError;
|
|
3686
3644
|
};
|
|
3687
|
-
|
|
3688
|
-
export type GetBankProfileResponses = {
|
|
3645
|
+
type GetBankProfileResponses = {
|
|
3689
3646
|
/**
|
|
3690
3647
|
* Successful Response
|
|
3691
3648
|
*/
|
|
3692
3649
|
200: BankProfileResponse;
|
|
3693
3650
|
};
|
|
3694
|
-
|
|
3695
|
-
export type UpdateBankDispositionData = {
|
|
3651
|
+
type UpdateBankDispositionData = {
|
|
3696
3652
|
body: UpdateDispositionRequest;
|
|
3697
3653
|
headers?: {
|
|
3698
3654
|
/**
|
|
@@ -3709,21 +3665,19 @@ export type UpdateBankDispositionData = {
|
|
|
3709
3665
|
query?: never;
|
|
3710
3666
|
url: "/v1/default/banks/{bank_id}/profile";
|
|
3711
3667
|
};
|
|
3712
|
-
|
|
3668
|
+
type UpdateBankDispositionErrors = {
|
|
3713
3669
|
/**
|
|
3714
3670
|
* Validation Error
|
|
3715
3671
|
*/
|
|
3716
3672
|
422: HttpValidationError;
|
|
3717
3673
|
};
|
|
3718
|
-
|
|
3719
|
-
export type UpdateBankDispositionResponses = {
|
|
3674
|
+
type UpdateBankDispositionResponses = {
|
|
3720
3675
|
/**
|
|
3721
3676
|
* Successful Response
|
|
3722
3677
|
*/
|
|
3723
3678
|
200: BankProfileResponse;
|
|
3724
3679
|
};
|
|
3725
|
-
|
|
3726
|
-
export type AddBankBackgroundData = {
|
|
3680
|
+
type AddBankBackgroundData = {
|
|
3727
3681
|
body: AddBackgroundRequest;
|
|
3728
3682
|
headers?: {
|
|
3729
3683
|
/**
|
|
@@ -3740,21 +3694,19 @@ export type AddBankBackgroundData = {
|
|
|
3740
3694
|
query?: never;
|
|
3741
3695
|
url: "/v1/default/banks/{bank_id}/background";
|
|
3742
3696
|
};
|
|
3743
|
-
|
|
3697
|
+
type AddBankBackgroundErrors = {
|
|
3744
3698
|
/**
|
|
3745
3699
|
* Validation Error
|
|
3746
3700
|
*/
|
|
3747
3701
|
422: HttpValidationError;
|
|
3748
3702
|
};
|
|
3749
|
-
|
|
3750
|
-
export type AddBankBackgroundResponses = {
|
|
3703
|
+
type AddBankBackgroundResponses = {
|
|
3751
3704
|
/**
|
|
3752
3705
|
* Successful Response
|
|
3753
3706
|
*/
|
|
3754
3707
|
200: BackgroundResponse;
|
|
3755
3708
|
};
|
|
3756
|
-
|
|
3757
|
-
export type DeleteBankData = {
|
|
3709
|
+
type DeleteBankData = {
|
|
3758
3710
|
body?: never;
|
|
3759
3711
|
headers?: {
|
|
3760
3712
|
/**
|
|
@@ -3771,21 +3723,19 @@ export type DeleteBankData = {
|
|
|
3771
3723
|
query?: never;
|
|
3772
3724
|
url: "/v1/default/banks/{bank_id}";
|
|
3773
3725
|
};
|
|
3774
|
-
|
|
3726
|
+
type DeleteBankErrors = {
|
|
3775
3727
|
/**
|
|
3776
3728
|
* Validation Error
|
|
3777
3729
|
*/
|
|
3778
3730
|
422: HttpValidationError;
|
|
3779
3731
|
};
|
|
3780
|
-
|
|
3781
|
-
export type DeleteBankResponses = {
|
|
3732
|
+
type DeleteBankResponses = {
|
|
3782
3733
|
/**
|
|
3783
3734
|
* Successful Response
|
|
3784
3735
|
*/
|
|
3785
3736
|
200: DeleteResponse;
|
|
3786
3737
|
};
|
|
3787
|
-
|
|
3788
|
-
export type UpdateBankData = {
|
|
3738
|
+
type UpdateBankData = {
|
|
3789
3739
|
body: CreateBankRequest;
|
|
3790
3740
|
headers?: {
|
|
3791
3741
|
/**
|
|
@@ -3802,21 +3752,19 @@ export type UpdateBankData = {
|
|
|
3802
3752
|
query?: never;
|
|
3803
3753
|
url: "/v1/default/banks/{bank_id}";
|
|
3804
3754
|
};
|
|
3805
|
-
|
|
3755
|
+
type UpdateBankErrors = {
|
|
3806
3756
|
/**
|
|
3807
3757
|
* Validation Error
|
|
3808
3758
|
*/
|
|
3809
3759
|
422: HttpValidationError;
|
|
3810
3760
|
};
|
|
3811
|
-
|
|
3812
|
-
export type UpdateBankResponses = {
|
|
3761
|
+
type UpdateBankResponses = {
|
|
3813
3762
|
/**
|
|
3814
3763
|
* Successful Response
|
|
3815
3764
|
*/
|
|
3816
3765
|
200: BankProfileResponse;
|
|
3817
3766
|
};
|
|
3818
|
-
|
|
3819
|
-
export type CreateOrUpdateBankData = {
|
|
3767
|
+
type CreateOrUpdateBankData = {
|
|
3820
3768
|
body: CreateBankRequest;
|
|
3821
3769
|
headers?: {
|
|
3822
3770
|
/**
|
|
@@ -3833,21 +3781,19 @@ export type CreateOrUpdateBankData = {
|
|
|
3833
3781
|
query?: never;
|
|
3834
3782
|
url: "/v1/default/banks/{bank_id}";
|
|
3835
3783
|
};
|
|
3836
|
-
|
|
3784
|
+
type CreateOrUpdateBankErrors = {
|
|
3837
3785
|
/**
|
|
3838
3786
|
* Validation Error
|
|
3839
3787
|
*/
|
|
3840
3788
|
422: HttpValidationError;
|
|
3841
3789
|
};
|
|
3842
|
-
|
|
3843
|
-
export type CreateOrUpdateBankResponses = {
|
|
3790
|
+
type CreateOrUpdateBankResponses = {
|
|
3844
3791
|
/**
|
|
3845
3792
|
* Successful Response
|
|
3846
3793
|
*/
|
|
3847
3794
|
200: BankProfileResponse;
|
|
3848
3795
|
};
|
|
3849
|
-
|
|
3850
|
-
export type ClearObservationsData = {
|
|
3796
|
+
type ClearObservationsData = {
|
|
3851
3797
|
body?: never;
|
|
3852
3798
|
headers?: {
|
|
3853
3799
|
/**
|
|
@@ -3864,21 +3810,48 @@ export type ClearObservationsData = {
|
|
|
3864
3810
|
query?: never;
|
|
3865
3811
|
url: "/v1/default/banks/{bank_id}/observations";
|
|
3866
3812
|
};
|
|
3867
|
-
|
|
3813
|
+
type ClearObservationsErrors = {
|
|
3868
3814
|
/**
|
|
3869
3815
|
* Validation Error
|
|
3870
3816
|
*/
|
|
3871
3817
|
422: HttpValidationError;
|
|
3872
3818
|
};
|
|
3873
|
-
|
|
3874
|
-
export type ClearObservationsResponses = {
|
|
3819
|
+
type ClearObservationsResponses = {
|
|
3875
3820
|
/**
|
|
3876
3821
|
* Successful Response
|
|
3877
3822
|
*/
|
|
3878
3823
|
200: DeleteResponse;
|
|
3879
3824
|
};
|
|
3880
|
-
|
|
3881
|
-
|
|
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 = {
|
|
3882
3855
|
body?: never;
|
|
3883
3856
|
headers?: {
|
|
3884
3857
|
/**
|
|
@@ -3899,21 +3872,19 @@ export type ClearMemoryObservationsData = {
|
|
|
3899
3872
|
query?: never;
|
|
3900
3873
|
url: "/v1/default/banks/{bank_id}/memories/{memory_id}/observations";
|
|
3901
3874
|
};
|
|
3902
|
-
|
|
3875
|
+
type ClearMemoryObservationsErrors = {
|
|
3903
3876
|
/**
|
|
3904
3877
|
* Validation Error
|
|
3905
3878
|
*/
|
|
3906
3879
|
422: HttpValidationError;
|
|
3907
3880
|
};
|
|
3908
|
-
|
|
3909
|
-
export type ClearMemoryObservationsResponses = {
|
|
3881
|
+
type ClearMemoryObservationsResponses = {
|
|
3910
3882
|
/**
|
|
3911
3883
|
* Successful Response
|
|
3912
3884
|
*/
|
|
3913
3885
|
200: ClearMemoryObservationsResponse;
|
|
3914
3886
|
};
|
|
3915
|
-
|
|
3916
|
-
export type ResetBankConfigData = {
|
|
3887
|
+
type ResetBankConfigData = {
|
|
3917
3888
|
body?: never;
|
|
3918
3889
|
headers?: {
|
|
3919
3890
|
/**
|
|
@@ -3930,21 +3901,19 @@ export type ResetBankConfigData = {
|
|
|
3930
3901
|
query?: never;
|
|
3931
3902
|
url: "/v1/default/banks/{bank_id}/config";
|
|
3932
3903
|
};
|
|
3933
|
-
|
|
3904
|
+
type ResetBankConfigErrors = {
|
|
3934
3905
|
/**
|
|
3935
3906
|
* Validation Error
|
|
3936
3907
|
*/
|
|
3937
3908
|
422: HttpValidationError;
|
|
3938
3909
|
};
|
|
3939
|
-
|
|
3940
|
-
export type ResetBankConfigResponses = {
|
|
3910
|
+
type ResetBankConfigResponses = {
|
|
3941
3911
|
/**
|
|
3942
3912
|
* Successful Response
|
|
3943
3913
|
*/
|
|
3944
3914
|
200: BankConfigResponse;
|
|
3945
3915
|
};
|
|
3946
|
-
|
|
3947
|
-
export type GetBankConfigData = {
|
|
3916
|
+
type GetBankConfigData = {
|
|
3948
3917
|
body?: never;
|
|
3949
3918
|
headers?: {
|
|
3950
3919
|
/**
|
|
@@ -3961,21 +3930,19 @@ export type GetBankConfigData = {
|
|
|
3961
3930
|
query?: never;
|
|
3962
3931
|
url: "/v1/default/banks/{bank_id}/config";
|
|
3963
3932
|
};
|
|
3964
|
-
|
|
3933
|
+
type GetBankConfigErrors = {
|
|
3965
3934
|
/**
|
|
3966
3935
|
* Validation Error
|
|
3967
3936
|
*/
|
|
3968
3937
|
422: HttpValidationError;
|
|
3969
3938
|
};
|
|
3970
|
-
|
|
3971
|
-
export type GetBankConfigResponses = {
|
|
3939
|
+
type GetBankConfigResponses = {
|
|
3972
3940
|
/**
|
|
3973
3941
|
* Successful Response
|
|
3974
3942
|
*/
|
|
3975
3943
|
200: BankConfigResponse;
|
|
3976
3944
|
};
|
|
3977
|
-
|
|
3978
|
-
export type UpdateBankConfigData = {
|
|
3945
|
+
type UpdateBankConfigData = {
|
|
3979
3946
|
body: BankConfigUpdate;
|
|
3980
3947
|
headers?: {
|
|
3981
3948
|
/**
|
|
@@ -3992,21 +3959,19 @@ export type UpdateBankConfigData = {
|
|
|
3992
3959
|
query?: never;
|
|
3993
3960
|
url: "/v1/default/banks/{bank_id}/config";
|
|
3994
3961
|
};
|
|
3995
|
-
|
|
3962
|
+
type UpdateBankConfigErrors = {
|
|
3996
3963
|
/**
|
|
3997
3964
|
* Validation Error
|
|
3998
3965
|
*/
|
|
3999
3966
|
422: HttpValidationError;
|
|
4000
3967
|
};
|
|
4001
|
-
|
|
4002
|
-
export type UpdateBankConfigResponses = {
|
|
3968
|
+
type UpdateBankConfigResponses = {
|
|
4003
3969
|
/**
|
|
4004
3970
|
* Successful Response
|
|
4005
3971
|
*/
|
|
4006
3972
|
200: BankConfigResponse;
|
|
4007
3973
|
};
|
|
4008
|
-
|
|
4009
|
-
export type TriggerConsolidationData = {
|
|
3974
|
+
type TriggerConsolidationData = {
|
|
4010
3975
|
body?: never;
|
|
4011
3976
|
headers?: {
|
|
4012
3977
|
/**
|
|
@@ -4023,21 +3988,19 @@ export type TriggerConsolidationData = {
|
|
|
4023
3988
|
query?: never;
|
|
4024
3989
|
url: "/v1/default/banks/{bank_id}/consolidate";
|
|
4025
3990
|
};
|
|
4026
|
-
|
|
3991
|
+
type TriggerConsolidationErrors = {
|
|
4027
3992
|
/**
|
|
4028
3993
|
* Validation Error
|
|
4029
3994
|
*/
|
|
4030
3995
|
422: HttpValidationError;
|
|
4031
3996
|
};
|
|
4032
|
-
|
|
4033
|
-
export type TriggerConsolidationResponses = {
|
|
3997
|
+
type TriggerConsolidationResponses = {
|
|
4034
3998
|
/**
|
|
4035
3999
|
* Successful Response
|
|
4036
4000
|
*/
|
|
4037
4001
|
200: ConsolidationResponse;
|
|
4038
4002
|
};
|
|
4039
|
-
|
|
4040
|
-
export type ListWebhooksData = {
|
|
4003
|
+
type ListWebhooksData = {
|
|
4041
4004
|
body?: never;
|
|
4042
4005
|
headers?: {
|
|
4043
4006
|
/**
|
|
@@ -4054,21 +4017,19 @@ export type ListWebhooksData = {
|
|
|
4054
4017
|
query?: never;
|
|
4055
4018
|
url: "/v1/default/banks/{bank_id}/webhooks";
|
|
4056
4019
|
};
|
|
4057
|
-
|
|
4020
|
+
type ListWebhooksErrors = {
|
|
4058
4021
|
/**
|
|
4059
4022
|
* Validation Error
|
|
4060
4023
|
*/
|
|
4061
4024
|
422: HttpValidationError;
|
|
4062
4025
|
};
|
|
4063
|
-
|
|
4064
|
-
export type ListWebhooksResponses = {
|
|
4026
|
+
type ListWebhooksResponses = {
|
|
4065
4027
|
/**
|
|
4066
4028
|
* Successful Response
|
|
4067
4029
|
*/
|
|
4068
4030
|
200: WebhookListResponse;
|
|
4069
4031
|
};
|
|
4070
|
-
|
|
4071
|
-
export type CreateWebhookData = {
|
|
4032
|
+
type CreateWebhookData = {
|
|
4072
4033
|
body: CreateWebhookRequest;
|
|
4073
4034
|
headers?: {
|
|
4074
4035
|
/**
|
|
@@ -4085,21 +4046,19 @@ export type CreateWebhookData = {
|
|
|
4085
4046
|
query?: never;
|
|
4086
4047
|
url: "/v1/default/banks/{bank_id}/webhooks";
|
|
4087
4048
|
};
|
|
4088
|
-
|
|
4049
|
+
type CreateWebhookErrors = {
|
|
4089
4050
|
/**
|
|
4090
4051
|
* Validation Error
|
|
4091
4052
|
*/
|
|
4092
4053
|
422: HttpValidationError;
|
|
4093
4054
|
};
|
|
4094
|
-
|
|
4095
|
-
export type CreateWebhookResponses = {
|
|
4055
|
+
type CreateWebhookResponses = {
|
|
4096
4056
|
/**
|
|
4097
4057
|
* Successful Response
|
|
4098
4058
|
*/
|
|
4099
4059
|
201: WebhookResponse;
|
|
4100
4060
|
};
|
|
4101
|
-
|
|
4102
|
-
export type DeleteWebhookData = {
|
|
4061
|
+
type DeleteWebhookData = {
|
|
4103
4062
|
body?: never;
|
|
4104
4063
|
headers?: {
|
|
4105
4064
|
/**
|
|
@@ -4120,21 +4079,19 @@ export type DeleteWebhookData = {
|
|
|
4120
4079
|
query?: never;
|
|
4121
4080
|
url: "/v1/default/banks/{bank_id}/webhooks/{webhook_id}";
|
|
4122
4081
|
};
|
|
4123
|
-
|
|
4082
|
+
type DeleteWebhookErrors = {
|
|
4124
4083
|
/**
|
|
4125
4084
|
* Validation Error
|
|
4126
4085
|
*/
|
|
4127
4086
|
422: HttpValidationError;
|
|
4128
4087
|
};
|
|
4129
|
-
|
|
4130
|
-
export type DeleteWebhookResponses = {
|
|
4088
|
+
type DeleteWebhookResponses = {
|
|
4131
4089
|
/**
|
|
4132
4090
|
* Successful Response
|
|
4133
4091
|
*/
|
|
4134
4092
|
200: DeleteResponse;
|
|
4135
4093
|
};
|
|
4136
|
-
|
|
4137
|
-
export type UpdateWebhookData = {
|
|
4094
|
+
type UpdateWebhookData = {
|
|
4138
4095
|
body: UpdateWebhookRequest;
|
|
4139
4096
|
headers?: {
|
|
4140
4097
|
/**
|
|
@@ -4155,21 +4112,19 @@ export type UpdateWebhookData = {
|
|
|
4155
4112
|
query?: never;
|
|
4156
4113
|
url: "/v1/default/banks/{bank_id}/webhooks/{webhook_id}";
|
|
4157
4114
|
};
|
|
4158
|
-
|
|
4115
|
+
type UpdateWebhookErrors = {
|
|
4159
4116
|
/**
|
|
4160
4117
|
* Validation Error
|
|
4161
4118
|
*/
|
|
4162
4119
|
422: HttpValidationError;
|
|
4163
4120
|
};
|
|
4164
|
-
|
|
4165
|
-
export type UpdateWebhookResponses = {
|
|
4121
|
+
type UpdateWebhookResponses = {
|
|
4166
4122
|
/**
|
|
4167
4123
|
* Successful Response
|
|
4168
4124
|
*/
|
|
4169
4125
|
200: WebhookResponse;
|
|
4170
4126
|
};
|
|
4171
|
-
|
|
4172
|
-
export type ListWebhookDeliveriesData = {
|
|
4127
|
+
type ListWebhookDeliveriesData = {
|
|
4173
4128
|
body?: never;
|
|
4174
4129
|
headers?: {
|
|
4175
4130
|
/**
|
|
@@ -4203,21 +4158,19 @@ export type ListWebhookDeliveriesData = {
|
|
|
4203
4158
|
};
|
|
4204
4159
|
url: "/v1/default/banks/{bank_id}/webhooks/{webhook_id}/deliveries";
|
|
4205
4160
|
};
|
|
4206
|
-
|
|
4161
|
+
type ListWebhookDeliveriesErrors = {
|
|
4207
4162
|
/**
|
|
4208
4163
|
* Validation Error
|
|
4209
4164
|
*/
|
|
4210
4165
|
422: HttpValidationError;
|
|
4211
4166
|
};
|
|
4212
|
-
|
|
4213
|
-
export type ListWebhookDeliveriesResponses = {
|
|
4167
|
+
type ListWebhookDeliveriesResponses = {
|
|
4214
4168
|
/**
|
|
4215
4169
|
* Successful Response
|
|
4216
4170
|
*/
|
|
4217
4171
|
200: WebhookDeliveryListResponse;
|
|
4218
4172
|
};
|
|
4219
|
-
|
|
4220
|
-
export type ClearBankMemoriesData = {
|
|
4173
|
+
type ClearBankMemoriesData = {
|
|
4221
4174
|
body?: never;
|
|
4222
4175
|
headers?: {
|
|
4223
4176
|
/**
|
|
@@ -4241,21 +4194,19 @@ export type ClearBankMemoriesData = {
|
|
|
4241
4194
|
};
|
|
4242
4195
|
url: "/v1/default/banks/{bank_id}/memories";
|
|
4243
4196
|
};
|
|
4244
|
-
|
|
4197
|
+
type ClearBankMemoriesErrors = {
|
|
4245
4198
|
/**
|
|
4246
4199
|
* Validation Error
|
|
4247
4200
|
*/
|
|
4248
4201
|
422: HttpValidationError;
|
|
4249
4202
|
};
|
|
4250
|
-
|
|
4251
|
-
export type ClearBankMemoriesResponses = {
|
|
4203
|
+
type ClearBankMemoriesResponses = {
|
|
4252
4204
|
/**
|
|
4253
4205
|
* Successful Response
|
|
4254
4206
|
*/
|
|
4255
4207
|
200: DeleteResponse;
|
|
4256
4208
|
};
|
|
4257
|
-
|
|
4258
|
-
export type RetainMemoriesData = {
|
|
4209
|
+
type RetainMemoriesData = {
|
|
4259
4210
|
body: RetainRequest;
|
|
4260
4211
|
headers?: {
|
|
4261
4212
|
/**
|
|
@@ -4272,21 +4223,19 @@ export type RetainMemoriesData = {
|
|
|
4272
4223
|
query?: never;
|
|
4273
4224
|
url: "/v1/default/banks/{bank_id}/memories";
|
|
4274
4225
|
};
|
|
4275
|
-
|
|
4226
|
+
type RetainMemoriesErrors = {
|
|
4276
4227
|
/**
|
|
4277
4228
|
* Validation Error
|
|
4278
4229
|
*/
|
|
4279
4230
|
422: HttpValidationError;
|
|
4280
4231
|
};
|
|
4281
|
-
|
|
4282
|
-
export type RetainMemoriesResponses = {
|
|
4232
|
+
type RetainMemoriesResponses = {
|
|
4283
4233
|
/**
|
|
4284
4234
|
* Successful Response
|
|
4285
4235
|
*/
|
|
4286
4236
|
200: RetainResponse;
|
|
4287
4237
|
};
|
|
4288
|
-
|
|
4289
|
-
export type FileRetainData = {
|
|
4238
|
+
type FileRetainData = {
|
|
4290
4239
|
body: BodyFileRetain;
|
|
4291
4240
|
headers?: {
|
|
4292
4241
|
/**
|
|
@@ -4303,18 +4252,1133 @@ export type FileRetainData = {
|
|
|
4303
4252
|
query?: never;
|
|
4304
4253
|
url: "/v1/default/banks/{bank_id}/files/retain";
|
|
4305
4254
|
};
|
|
4306
|
-
|
|
4255
|
+
type FileRetainErrors = {
|
|
4307
4256
|
/**
|
|
4308
4257
|
* Validation Error
|
|
4309
4258
|
*/
|
|
4310
4259
|
422: HttpValidationError;
|
|
4311
4260
|
};
|
|
4312
|
-
|
|
4313
|
-
export type FileRetainResponses = {
|
|
4261
|
+
type FileRetainResponses = {
|
|
4314
4262
|
/**
|
|
4315
4263
|
* Successful Response
|
|
4316
4264
|
*/
|
|
4317
4265
|
200: FileRetainResponse;
|
|
4318
4266
|
};
|
|
4319
|
-
|
|
4320
|
-
|
|
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 };
|