@vectorize-io/hindsight-client 0.4.18 → 0.4.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{generated/types.gen.d.ts → index.d.mts} +1467 -362
- package/dist/index.d.ts +5425 -0
- package/dist/index.js +1608 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +1583 -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 +99 -1
- package/package.json +15 -5
- package/src/index.ts +16 -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,20 +1265,38 @@ 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
|
*
|
|
1269
1272
|
* If true, refresh this mental model after observations consolidation (real-time mode)
|
|
1270
1273
|
*/
|
|
1271
1274
|
refresh_after_consolidation?: boolean;
|
|
1275
|
+
/**
|
|
1276
|
+
* Fact Types
|
|
1277
|
+
*
|
|
1278
|
+
* Filter which fact types are retrieved during reflect. None means all types (world, experience, observation).
|
|
1279
|
+
*/
|
|
1280
|
+
fact_types?: Array<"world" | "experience" | "observation"> | null;
|
|
1281
|
+
/**
|
|
1282
|
+
* Exclude Mental Models
|
|
1283
|
+
*
|
|
1284
|
+
* If true, exclude all mental models from the reflect loop (skip search_mental_models tool).
|
|
1285
|
+
*/
|
|
1286
|
+
exclude_mental_models?: boolean;
|
|
1287
|
+
/**
|
|
1288
|
+
* Exclude Mental Model Ids
|
|
1289
|
+
*
|
|
1290
|
+
* Exclude specific mental models by ID from the reflect loop.
|
|
1291
|
+
*/
|
|
1292
|
+
exclude_mental_model_ids?: Array<string> | null;
|
|
1272
1293
|
};
|
|
1273
1294
|
/**
|
|
1274
1295
|
* OperationResponse
|
|
1275
1296
|
*
|
|
1276
1297
|
* Response model for a single async operation.
|
|
1277
1298
|
*/
|
|
1278
|
-
|
|
1299
|
+
type OperationResponse = {
|
|
1279
1300
|
/**
|
|
1280
1301
|
* Id
|
|
1281
1302
|
*/
|
|
@@ -1310,7 +1331,7 @@ export type OperationResponse = {
|
|
|
1310
1331
|
*
|
|
1311
1332
|
* Response model for getting a single operation status.
|
|
1312
1333
|
*/
|
|
1313
|
-
|
|
1334
|
+
type OperationStatusResponse = {
|
|
1314
1335
|
/**
|
|
1315
1336
|
* Operation Id
|
|
1316
1337
|
*/
|
|
@@ -1359,7 +1380,7 @@ export type OperationStatusResponse = {
|
|
|
1359
1380
|
*
|
|
1360
1381
|
* Response model for list operations endpoint.
|
|
1361
1382
|
*/
|
|
1362
|
-
|
|
1383
|
+
type OperationsListResponse = {
|
|
1363
1384
|
/**
|
|
1364
1385
|
* Bank Id
|
|
1365
1386
|
*/
|
|
@@ -1386,7 +1407,7 @@ export type OperationsListResponse = {
|
|
|
1386
1407
|
*
|
|
1387
1408
|
* Request model for recall endpoint.
|
|
1388
1409
|
*/
|
|
1389
|
-
|
|
1410
|
+
type RecallRequest = {
|
|
1390
1411
|
/**
|
|
1391
1412
|
* Query
|
|
1392
1413
|
*/
|
|
@@ -1440,7 +1461,7 @@ export type RecallRequest = {
|
|
|
1440
1461
|
*
|
|
1441
1462
|
* Response model for recall endpoints.
|
|
1442
1463
|
*/
|
|
1443
|
-
|
|
1464
|
+
type RecallResponse = {
|
|
1444
1465
|
/**
|
|
1445
1466
|
* Results
|
|
1446
1467
|
*/
|
|
@@ -1481,7 +1502,7 @@ export type RecallResponse = {
|
|
|
1481
1502
|
*
|
|
1482
1503
|
* Single recall result item.
|
|
1483
1504
|
*/
|
|
1484
|
-
|
|
1505
|
+
type RecallResult = {
|
|
1485
1506
|
/**
|
|
1486
1507
|
* Id
|
|
1487
1508
|
*/
|
|
@@ -1537,12 +1558,23 @@ export type RecallResult = {
|
|
|
1537
1558
|
*/
|
|
1538
1559
|
source_fact_ids?: Array<string> | null;
|
|
1539
1560
|
};
|
|
1561
|
+
/**
|
|
1562
|
+
* RecoverConsolidationResponse
|
|
1563
|
+
*
|
|
1564
|
+
* Response model for recovering failed consolidation.
|
|
1565
|
+
*/
|
|
1566
|
+
type RecoverConsolidationResponse = {
|
|
1567
|
+
/**
|
|
1568
|
+
* Retried Count
|
|
1569
|
+
*/
|
|
1570
|
+
retried_count: number;
|
|
1571
|
+
};
|
|
1540
1572
|
/**
|
|
1541
1573
|
* ReflectBasedOn
|
|
1542
1574
|
*
|
|
1543
1575
|
* Evidence the response is based on: memories, mental models, and directives.
|
|
1544
1576
|
*/
|
|
1545
|
-
|
|
1577
|
+
type ReflectBasedOn = {
|
|
1546
1578
|
/**
|
|
1547
1579
|
* Memories
|
|
1548
1580
|
*
|
|
@@ -1567,7 +1599,7 @@ export type ReflectBasedOn = {
|
|
|
1567
1599
|
*
|
|
1568
1600
|
* A directive applied during reflect.
|
|
1569
1601
|
*/
|
|
1570
|
-
|
|
1602
|
+
type ReflectDirective = {
|
|
1571
1603
|
/**
|
|
1572
1604
|
* Id
|
|
1573
1605
|
*
|
|
@@ -1592,7 +1624,7 @@ export type ReflectDirective = {
|
|
|
1592
1624
|
*
|
|
1593
1625
|
* A fact used in think response.
|
|
1594
1626
|
*/
|
|
1595
|
-
|
|
1627
|
+
type ReflectFact = {
|
|
1596
1628
|
/**
|
|
1597
1629
|
* Id
|
|
1598
1630
|
*/
|
|
@@ -1625,7 +1657,7 @@ export type ReflectFact = {
|
|
|
1625
1657
|
*
|
|
1626
1658
|
* Options for including additional data in reflect results.
|
|
1627
1659
|
*/
|
|
1628
|
-
|
|
1660
|
+
type ReflectIncludeOptions = {
|
|
1629
1661
|
/**
|
|
1630
1662
|
* Include facts that the answer is based on. Set to {} to enable, null to disable (default: disabled).
|
|
1631
1663
|
*/
|
|
@@ -1640,7 +1672,7 @@ export type ReflectIncludeOptions = {
|
|
|
1640
1672
|
*
|
|
1641
1673
|
* An LLM call made during reflect agent execution.
|
|
1642
1674
|
*/
|
|
1643
|
-
|
|
1675
|
+
type ReflectLlmCall = {
|
|
1644
1676
|
/**
|
|
1645
1677
|
* Scope
|
|
1646
1678
|
*
|
|
@@ -1659,7 +1691,7 @@ export type ReflectLlmCall = {
|
|
|
1659
1691
|
*
|
|
1660
1692
|
* A mental model used during reflect.
|
|
1661
1693
|
*/
|
|
1662
|
-
|
|
1694
|
+
type ReflectMentalModel = {
|
|
1663
1695
|
/**
|
|
1664
1696
|
* Id
|
|
1665
1697
|
*
|
|
@@ -1684,7 +1716,7 @@ export type ReflectMentalModel = {
|
|
|
1684
1716
|
*
|
|
1685
1717
|
* Request model for reflect endpoint.
|
|
1686
1718
|
*/
|
|
1687
|
-
|
|
1719
|
+
type ReflectRequest = {
|
|
1688
1720
|
/**
|
|
1689
1721
|
* Query
|
|
1690
1722
|
*/
|
|
@@ -1734,13 +1766,31 @@ export type ReflectRequest = {
|
|
|
1734
1766
|
* Compound tag filter using boolean groups. Groups in the list are AND-ed. Each group is a leaf {tags, match} or compound {and: [...]}, {or: [...]}, {not: ...}.
|
|
1735
1767
|
*/
|
|
1736
1768
|
tag_groups?: Array<TagGroupLeaf | TagGroupAnd | TagGroupOr | TagGroupNot> | null;
|
|
1769
|
+
/**
|
|
1770
|
+
* Fact Types
|
|
1771
|
+
*
|
|
1772
|
+
* Filter which fact types are retrieved during reflect. None means all types (world, experience, observation).
|
|
1773
|
+
*/
|
|
1774
|
+
fact_types?: Array<"world" | "experience" | "observation"> | null;
|
|
1775
|
+
/**
|
|
1776
|
+
* Exclude Mental Models
|
|
1777
|
+
*
|
|
1778
|
+
* If true, exclude all mental models from the reflect loop (skip search_mental_models tool).
|
|
1779
|
+
*/
|
|
1780
|
+
exclude_mental_models?: boolean;
|
|
1781
|
+
/**
|
|
1782
|
+
* Exclude Mental Model Ids
|
|
1783
|
+
*
|
|
1784
|
+
* Exclude specific mental models by ID from the reflect loop.
|
|
1785
|
+
*/
|
|
1786
|
+
exclude_mental_model_ids?: Array<string> | null;
|
|
1737
1787
|
};
|
|
1738
1788
|
/**
|
|
1739
1789
|
* ReflectResponse
|
|
1740
1790
|
*
|
|
1741
1791
|
* Response model for think endpoint.
|
|
1742
1792
|
*/
|
|
1743
|
-
|
|
1793
|
+
type ReflectResponse = {
|
|
1744
1794
|
/**
|
|
1745
1795
|
* Text
|
|
1746
1796
|
*
|
|
@@ -1773,7 +1823,7 @@ export type ReflectResponse = {
|
|
|
1773
1823
|
*
|
|
1774
1824
|
* A tool call made during reflect agent execution.
|
|
1775
1825
|
*/
|
|
1776
|
-
|
|
1826
|
+
type ReflectToolCall = {
|
|
1777
1827
|
/**
|
|
1778
1828
|
* Tool
|
|
1779
1829
|
*
|
|
@@ -1814,7 +1864,7 @@ export type ReflectToolCall = {
|
|
|
1814
1864
|
*
|
|
1815
1865
|
* Execution trace of LLM and tool calls during reflection.
|
|
1816
1866
|
*/
|
|
1817
|
-
|
|
1867
|
+
type ReflectTrace = {
|
|
1818
1868
|
/**
|
|
1819
1869
|
* Tool Calls
|
|
1820
1870
|
*
|
|
@@ -1833,7 +1883,7 @@ export type ReflectTrace = {
|
|
|
1833
1883
|
*
|
|
1834
1884
|
* Request model for retain endpoint.
|
|
1835
1885
|
*/
|
|
1836
|
-
|
|
1886
|
+
type RetainRequest = {
|
|
1837
1887
|
/**
|
|
1838
1888
|
* Items
|
|
1839
1889
|
*/
|
|
@@ -1858,7 +1908,7 @@ export type RetainRequest = {
|
|
|
1858
1908
|
*
|
|
1859
1909
|
* Response model for retain endpoint.
|
|
1860
1910
|
*/
|
|
1861
|
-
|
|
1911
|
+
type RetainResponse = {
|
|
1862
1912
|
/**
|
|
1863
1913
|
* Success
|
|
1864
1914
|
*/
|
|
@@ -1880,9 +1930,15 @@ export type RetainResponse = {
|
|
|
1880
1930
|
/**
|
|
1881
1931
|
* Operation Id
|
|
1882
1932
|
*
|
|
1883
|
-
* Operation ID for tracking async operations. Use GET /v1/default/banks/{bank_id}/operations to list operations. Only present when async=true.
|
|
1933
|
+
* 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
1934
|
*/
|
|
1885
1935
|
operation_id?: string | null;
|
|
1936
|
+
/**
|
|
1937
|
+
* Operation Ids
|
|
1938
|
+
*
|
|
1939
|
+
* 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.
|
|
1940
|
+
*/
|
|
1941
|
+
operation_ids?: Array<string> | null;
|
|
1886
1942
|
/**
|
|
1887
1943
|
* Token usage metrics for LLM calls during fact extraction (only present for synchronous operations)
|
|
1888
1944
|
*/
|
|
@@ -1893,7 +1949,7 @@ export type RetainResponse = {
|
|
|
1893
1949
|
*
|
|
1894
1950
|
* Response model for retry operation endpoint.
|
|
1895
1951
|
*/
|
|
1896
|
-
|
|
1952
|
+
type RetryOperationResponse = {
|
|
1897
1953
|
/**
|
|
1898
1954
|
* Success
|
|
1899
1955
|
*/
|
|
@@ -1912,7 +1968,7 @@ export type RetryOperationResponse = {
|
|
|
1912
1968
|
*
|
|
1913
1969
|
* Options for including source facts for observation-type results.
|
|
1914
1970
|
*/
|
|
1915
|
-
|
|
1971
|
+
type SourceFactsIncludeOptions = {
|
|
1916
1972
|
/**
|
|
1917
1973
|
* Max Tokens
|
|
1918
1974
|
*
|
|
@@ -1931,7 +1987,7 @@ export type SourceFactsIncludeOptions = {
|
|
|
1931
1987
|
*
|
|
1932
1988
|
* Compound AND group: all child filters must match.
|
|
1933
1989
|
*/
|
|
1934
|
-
|
|
1990
|
+
type TagGroupAnd = {
|
|
1935
1991
|
/**
|
|
1936
1992
|
* And
|
|
1937
1993
|
*/
|
|
@@ -1942,7 +1998,7 @@ export type TagGroupAnd = {
|
|
|
1942
1998
|
*
|
|
1943
1999
|
* A leaf tag filter: matches memories by tag list and match mode.
|
|
1944
2000
|
*/
|
|
1945
|
-
|
|
2001
|
+
type TagGroupLeaf = {
|
|
1946
2002
|
/**
|
|
1947
2003
|
* Tags
|
|
1948
2004
|
*/
|
|
@@ -1957,7 +2013,7 @@ export type TagGroupLeaf = {
|
|
|
1957
2013
|
*
|
|
1958
2014
|
* Compound NOT group: child filter must NOT match.
|
|
1959
2015
|
*/
|
|
1960
|
-
|
|
2016
|
+
type TagGroupNot = {
|
|
1961
2017
|
/**
|
|
1962
2018
|
* Not
|
|
1963
2019
|
*/
|
|
@@ -1968,7 +2024,7 @@ export type TagGroupNot = {
|
|
|
1968
2024
|
*
|
|
1969
2025
|
* Compound OR group: at least one child filter must match.
|
|
1970
2026
|
*/
|
|
1971
|
-
|
|
2027
|
+
type TagGroupOr = {
|
|
1972
2028
|
/**
|
|
1973
2029
|
* Or
|
|
1974
2030
|
*/
|
|
@@ -1979,7 +2035,7 @@ export type TagGroupOr = {
|
|
|
1979
2035
|
*
|
|
1980
2036
|
* Single tag with usage count.
|
|
1981
2037
|
*/
|
|
1982
|
-
|
|
2038
|
+
type TagItem = {
|
|
1983
2039
|
/**
|
|
1984
2040
|
* Tag
|
|
1985
2041
|
*
|
|
@@ -2001,7 +2057,7 @@ export type TagItem = {
|
|
|
2001
2057
|
* Tracks input/output tokens for a single request to enable
|
|
2002
2058
|
* per-request cost tracking and monitoring.
|
|
2003
2059
|
*/
|
|
2004
|
-
|
|
2060
|
+
type TokenUsage = {
|
|
2005
2061
|
/**
|
|
2006
2062
|
* Input Tokens
|
|
2007
2063
|
*
|
|
@@ -2026,7 +2082,7 @@ export type TokenUsage = {
|
|
|
2026
2082
|
*
|
|
2027
2083
|
* Options for including tool calls in reflect results.
|
|
2028
2084
|
*/
|
|
2029
|
-
|
|
2085
|
+
type ToolCallsIncludeOptions = {
|
|
2030
2086
|
/**
|
|
2031
2087
|
* Output
|
|
2032
2088
|
*
|
|
@@ -2039,7 +2095,7 @@ export type ToolCallsIncludeOptions = {
|
|
|
2039
2095
|
*
|
|
2040
2096
|
* Request model for updating a directive.
|
|
2041
2097
|
*/
|
|
2042
|
-
|
|
2098
|
+
type UpdateDirectiveRequest = {
|
|
2043
2099
|
/**
|
|
2044
2100
|
* Name
|
|
2045
2101
|
*
|
|
@@ -2076,7 +2132,7 @@ export type UpdateDirectiveRequest = {
|
|
|
2076
2132
|
*
|
|
2077
2133
|
* Request model for updating disposition traits.
|
|
2078
2134
|
*/
|
|
2079
|
-
|
|
2135
|
+
type UpdateDispositionRequest = {
|
|
2080
2136
|
disposition: DispositionTraits;
|
|
2081
2137
|
};
|
|
2082
2138
|
/**
|
|
@@ -2084,7 +2140,7 @@ export type UpdateDispositionRequest = {
|
|
|
2084
2140
|
*
|
|
2085
2141
|
* Request model for updating a document's mutable fields.
|
|
2086
2142
|
*/
|
|
2087
|
-
|
|
2143
|
+
type UpdateDocumentRequest = {
|
|
2088
2144
|
/**
|
|
2089
2145
|
* Tags
|
|
2090
2146
|
*
|
|
@@ -2097,7 +2153,7 @@ export type UpdateDocumentRequest = {
|
|
|
2097
2153
|
*
|
|
2098
2154
|
* Response model for update document endpoint.
|
|
2099
2155
|
*/
|
|
2100
|
-
|
|
2156
|
+
type UpdateDocumentResponse = {
|
|
2101
2157
|
/**
|
|
2102
2158
|
* Success
|
|
2103
2159
|
*/
|
|
@@ -2108,7 +2164,7 @@ export type UpdateDocumentResponse = {
|
|
|
2108
2164
|
*
|
|
2109
2165
|
* Request model for updating a mental model.
|
|
2110
2166
|
*/
|
|
2111
|
-
|
|
2167
|
+
type UpdateMentalModelRequest = {
|
|
2112
2168
|
/**
|
|
2113
2169
|
* Name
|
|
2114
2170
|
*
|
|
@@ -2143,7 +2199,7 @@ export type UpdateMentalModelRequest = {
|
|
|
2143
2199
|
*
|
|
2144
2200
|
* Request model for updating a webhook. Only provided fields are updated.
|
|
2145
2201
|
*/
|
|
2146
|
-
|
|
2202
|
+
type UpdateWebhookRequest = {
|
|
2147
2203
|
/**
|
|
2148
2204
|
* Url
|
|
2149
2205
|
*
|
|
@@ -2176,7 +2232,7 @@ export type UpdateWebhookRequest = {
|
|
|
2176
2232
|
/**
|
|
2177
2233
|
* ValidationError
|
|
2178
2234
|
*/
|
|
2179
|
-
|
|
2235
|
+
type ValidationError = {
|
|
2180
2236
|
/**
|
|
2181
2237
|
* Location
|
|
2182
2238
|
*/
|
|
@@ -2195,7 +2251,7 @@ export type ValidationError = {
|
|
|
2195
2251
|
*
|
|
2196
2252
|
* Response model for the version/info endpoint.
|
|
2197
2253
|
*/
|
|
2198
|
-
|
|
2254
|
+
type VersionResponse = {
|
|
2199
2255
|
/**
|
|
2200
2256
|
* Api Version
|
|
2201
2257
|
*
|
|
@@ -2212,7 +2268,7 @@ export type VersionResponse = {
|
|
|
2212
2268
|
*
|
|
2213
2269
|
* Response model for listing webhook deliveries.
|
|
2214
2270
|
*/
|
|
2215
|
-
|
|
2271
|
+
type WebhookDeliveryListResponse = {
|
|
2216
2272
|
/**
|
|
2217
2273
|
* Items
|
|
2218
2274
|
*/
|
|
@@ -2227,7 +2283,7 @@ export type WebhookDeliveryListResponse = {
|
|
|
2227
2283
|
*
|
|
2228
2284
|
* Response model for a webhook delivery record.
|
|
2229
2285
|
*/
|
|
2230
|
-
|
|
2286
|
+
type WebhookDeliveryResponse = {
|
|
2231
2287
|
/**
|
|
2232
2288
|
* Id
|
|
2233
2289
|
*/
|
|
@@ -2286,7 +2342,7 @@ export type WebhookDeliveryResponse = {
|
|
|
2286
2342
|
*
|
|
2287
2343
|
* HTTP delivery configuration for a webhook.
|
|
2288
2344
|
*/
|
|
2289
|
-
|
|
2345
|
+
type WebhookHttpConfig = {
|
|
2290
2346
|
/**
|
|
2291
2347
|
* Method
|
|
2292
2348
|
*
|
|
@@ -2321,7 +2377,7 @@ export type WebhookHttpConfig = {
|
|
|
2321
2377
|
*
|
|
2322
2378
|
* Response model for listing webhooks.
|
|
2323
2379
|
*/
|
|
2324
|
-
|
|
2380
|
+
type WebhookListResponse = {
|
|
2325
2381
|
/**
|
|
2326
2382
|
* Items
|
|
2327
2383
|
*/
|
|
@@ -2332,7 +2388,7 @@ export type WebhookListResponse = {
|
|
|
2332
2388
|
*
|
|
2333
2389
|
* Response model for a webhook.
|
|
2334
2390
|
*/
|
|
2335
|
-
|
|
2391
|
+
type WebhookResponse = {
|
|
2336
2392
|
/**
|
|
2337
2393
|
* Id
|
|
2338
2394
|
*/
|
|
@@ -2369,44 +2425,43 @@ export type WebhookResponse = {
|
|
|
2369
2425
|
*/
|
|
2370
2426
|
updated_at?: string | null;
|
|
2371
2427
|
};
|
|
2372
|
-
|
|
2428
|
+
type HealthEndpointHealthGetData = {
|
|
2373
2429
|
body?: never;
|
|
2374
2430
|
path?: never;
|
|
2375
2431
|
query?: never;
|
|
2376
2432
|
url: "/health";
|
|
2377
2433
|
};
|
|
2378
|
-
|
|
2434
|
+
type HealthEndpointHealthGetResponses = {
|
|
2379
2435
|
/**
|
|
2380
2436
|
* Successful Response
|
|
2381
2437
|
*/
|
|
2382
2438
|
200: unknown;
|
|
2383
2439
|
};
|
|
2384
|
-
|
|
2440
|
+
type GetVersionData = {
|
|
2385
2441
|
body?: never;
|
|
2386
2442
|
path?: never;
|
|
2387
2443
|
query?: never;
|
|
2388
2444
|
url: "/version";
|
|
2389
2445
|
};
|
|
2390
|
-
|
|
2446
|
+
type GetVersionResponses = {
|
|
2391
2447
|
/**
|
|
2392
2448
|
* Successful Response
|
|
2393
2449
|
*/
|
|
2394
2450
|
200: VersionResponse;
|
|
2395
2451
|
};
|
|
2396
|
-
|
|
2397
|
-
export type MetricsEndpointMetricsGetData = {
|
|
2452
|
+
type MetricsEndpointMetricsGetData = {
|
|
2398
2453
|
body?: never;
|
|
2399
2454
|
path?: never;
|
|
2400
2455
|
query?: never;
|
|
2401
2456
|
url: "/metrics";
|
|
2402
2457
|
};
|
|
2403
|
-
|
|
2458
|
+
type MetricsEndpointMetricsGetResponses = {
|
|
2404
2459
|
/**
|
|
2405
2460
|
* Successful Response
|
|
2406
2461
|
*/
|
|
2407
2462
|
200: unknown;
|
|
2408
2463
|
};
|
|
2409
|
-
|
|
2464
|
+
type GetGraphData = {
|
|
2410
2465
|
body?: never;
|
|
2411
2466
|
headers?: {
|
|
2412
2467
|
/**
|
|
@@ -2444,21 +2499,19 @@ export type GetGraphData = {
|
|
|
2444
2499
|
};
|
|
2445
2500
|
url: "/v1/default/banks/{bank_id}/graph";
|
|
2446
2501
|
};
|
|
2447
|
-
|
|
2502
|
+
type GetGraphErrors = {
|
|
2448
2503
|
/**
|
|
2449
2504
|
* Validation Error
|
|
2450
2505
|
*/
|
|
2451
2506
|
422: HttpValidationError;
|
|
2452
2507
|
};
|
|
2453
|
-
|
|
2454
|
-
export type GetGraphResponses = {
|
|
2508
|
+
type GetGraphResponses = {
|
|
2455
2509
|
/**
|
|
2456
2510
|
* Successful Response
|
|
2457
2511
|
*/
|
|
2458
2512
|
200: GraphDataResponse;
|
|
2459
2513
|
};
|
|
2460
|
-
|
|
2461
|
-
export type ListMemoriesData = {
|
|
2514
|
+
type ListMemoriesData = {
|
|
2462
2515
|
body?: never;
|
|
2463
2516
|
headers?: {
|
|
2464
2517
|
/**
|
|
@@ -2492,21 +2545,19 @@ export type ListMemoriesData = {
|
|
|
2492
2545
|
};
|
|
2493
2546
|
url: "/v1/default/banks/{bank_id}/memories/list";
|
|
2494
2547
|
};
|
|
2495
|
-
|
|
2548
|
+
type ListMemoriesErrors = {
|
|
2496
2549
|
/**
|
|
2497
2550
|
* Validation Error
|
|
2498
2551
|
*/
|
|
2499
2552
|
422: HttpValidationError;
|
|
2500
2553
|
};
|
|
2501
|
-
|
|
2502
|
-
export type ListMemoriesResponses = {
|
|
2554
|
+
type ListMemoriesResponses = {
|
|
2503
2555
|
/**
|
|
2504
2556
|
* Successful Response
|
|
2505
2557
|
*/
|
|
2506
2558
|
200: ListMemoryUnitsResponse;
|
|
2507
2559
|
};
|
|
2508
|
-
|
|
2509
|
-
export type GetMemoryData = {
|
|
2560
|
+
type GetMemoryData = {
|
|
2510
2561
|
body?: never;
|
|
2511
2562
|
headers?: {
|
|
2512
2563
|
/**
|
|
@@ -2527,20 +2578,19 @@ export type GetMemoryData = {
|
|
|
2527
2578
|
query?: never;
|
|
2528
2579
|
url: "/v1/default/banks/{bank_id}/memories/{memory_id}";
|
|
2529
2580
|
};
|
|
2530
|
-
|
|
2581
|
+
type GetMemoryErrors = {
|
|
2531
2582
|
/**
|
|
2532
2583
|
* Validation Error
|
|
2533
2584
|
*/
|
|
2534
2585
|
422: HttpValidationError;
|
|
2535
2586
|
};
|
|
2536
|
-
|
|
2537
|
-
export type GetMemoryResponses = {
|
|
2587
|
+
type GetMemoryResponses = {
|
|
2538
2588
|
/**
|
|
2539
2589
|
* Successful Response
|
|
2540
2590
|
*/
|
|
2541
2591
|
200: unknown;
|
|
2542
2592
|
};
|
|
2543
|
-
|
|
2593
|
+
type GetObservationHistoryData = {
|
|
2544
2594
|
body?: never;
|
|
2545
2595
|
headers?: {
|
|
2546
2596
|
/**
|
|
@@ -2561,20 +2611,19 @@ export type GetObservationHistoryData = {
|
|
|
2561
2611
|
query?: never;
|
|
2562
2612
|
url: "/v1/default/banks/{bank_id}/memories/{memory_id}/history";
|
|
2563
2613
|
};
|
|
2564
|
-
|
|
2614
|
+
type GetObservationHistoryErrors = {
|
|
2565
2615
|
/**
|
|
2566
2616
|
* Validation Error
|
|
2567
2617
|
*/
|
|
2568
2618
|
422: HttpValidationError;
|
|
2569
2619
|
};
|
|
2570
|
-
|
|
2571
|
-
export type GetObservationHistoryResponses = {
|
|
2620
|
+
type GetObservationHistoryResponses = {
|
|
2572
2621
|
/**
|
|
2573
2622
|
* Successful Response
|
|
2574
2623
|
*/
|
|
2575
2624
|
200: unknown;
|
|
2576
2625
|
};
|
|
2577
|
-
|
|
2626
|
+
type RecallMemoriesData = {
|
|
2578
2627
|
body: RecallRequest;
|
|
2579
2628
|
headers?: {
|
|
2580
2629
|
/**
|
|
@@ -2591,21 +2640,19 @@ export type RecallMemoriesData = {
|
|
|
2591
2640
|
query?: never;
|
|
2592
2641
|
url: "/v1/default/banks/{bank_id}/memories/recall";
|
|
2593
2642
|
};
|
|
2594
|
-
|
|
2643
|
+
type RecallMemoriesErrors = {
|
|
2595
2644
|
/**
|
|
2596
2645
|
* Validation Error
|
|
2597
2646
|
*/
|
|
2598
2647
|
422: HttpValidationError;
|
|
2599
2648
|
};
|
|
2600
|
-
|
|
2601
|
-
export type RecallMemoriesResponses = {
|
|
2649
|
+
type RecallMemoriesResponses = {
|
|
2602
2650
|
/**
|
|
2603
2651
|
* Successful Response
|
|
2604
2652
|
*/
|
|
2605
2653
|
200: RecallResponse;
|
|
2606
2654
|
};
|
|
2607
|
-
|
|
2608
|
-
export type ReflectData = {
|
|
2655
|
+
type ReflectData = {
|
|
2609
2656
|
body: ReflectRequest;
|
|
2610
2657
|
headers?: {
|
|
2611
2658
|
/**
|
|
@@ -2622,21 +2669,19 @@ export type ReflectData = {
|
|
|
2622
2669
|
query?: never;
|
|
2623
2670
|
url: "/v1/default/banks/{bank_id}/reflect";
|
|
2624
2671
|
};
|
|
2625
|
-
|
|
2672
|
+
type ReflectErrors = {
|
|
2626
2673
|
/**
|
|
2627
2674
|
* Validation Error
|
|
2628
2675
|
*/
|
|
2629
2676
|
422: HttpValidationError;
|
|
2630
2677
|
};
|
|
2631
|
-
|
|
2632
|
-
export type ReflectResponses = {
|
|
2678
|
+
type ReflectResponses = {
|
|
2633
2679
|
/**
|
|
2634
2680
|
* Successful Response
|
|
2635
2681
|
*/
|
|
2636
2682
|
200: ReflectResponse;
|
|
2637
2683
|
};
|
|
2638
|
-
|
|
2639
|
-
export type ListBanksData = {
|
|
2684
|
+
type ListBanksData = {
|
|
2640
2685
|
body?: never;
|
|
2641
2686
|
headers?: {
|
|
2642
2687
|
/**
|
|
@@ -2648,21 +2693,19 @@ export type ListBanksData = {
|
|
|
2648
2693
|
query?: never;
|
|
2649
2694
|
url: "/v1/default/banks";
|
|
2650
2695
|
};
|
|
2651
|
-
|
|
2696
|
+
type ListBanksErrors = {
|
|
2652
2697
|
/**
|
|
2653
2698
|
* Validation Error
|
|
2654
2699
|
*/
|
|
2655
2700
|
422: HttpValidationError;
|
|
2656
2701
|
};
|
|
2657
|
-
|
|
2658
|
-
export type ListBanksResponses = {
|
|
2702
|
+
type ListBanksResponses = {
|
|
2659
2703
|
/**
|
|
2660
2704
|
* Successful Response
|
|
2661
2705
|
*/
|
|
2662
2706
|
200: BankListResponse;
|
|
2663
2707
|
};
|
|
2664
|
-
|
|
2665
|
-
export type GetAgentStatsData = {
|
|
2708
|
+
type GetAgentStatsData = {
|
|
2666
2709
|
body?: never;
|
|
2667
2710
|
headers?: {
|
|
2668
2711
|
/**
|
|
@@ -2679,21 +2722,19 @@ export type GetAgentStatsData = {
|
|
|
2679
2722
|
query?: never;
|
|
2680
2723
|
url: "/v1/default/banks/{bank_id}/stats";
|
|
2681
2724
|
};
|
|
2682
|
-
|
|
2725
|
+
type GetAgentStatsErrors = {
|
|
2683
2726
|
/**
|
|
2684
2727
|
* Validation Error
|
|
2685
2728
|
*/
|
|
2686
2729
|
422: HttpValidationError;
|
|
2687
2730
|
};
|
|
2688
|
-
|
|
2689
|
-
export type GetAgentStatsResponses = {
|
|
2731
|
+
type GetAgentStatsResponses = {
|
|
2690
2732
|
/**
|
|
2691
2733
|
* Successful Response
|
|
2692
2734
|
*/
|
|
2693
2735
|
200: BankStatsResponse;
|
|
2694
2736
|
};
|
|
2695
|
-
|
|
2696
|
-
export type ListEntitiesData = {
|
|
2737
|
+
type ListEntitiesData = {
|
|
2697
2738
|
body?: never;
|
|
2698
2739
|
headers?: {
|
|
2699
2740
|
/**
|
|
@@ -2723,21 +2764,19 @@ export type ListEntitiesData = {
|
|
|
2723
2764
|
};
|
|
2724
2765
|
url: "/v1/default/banks/{bank_id}/entities";
|
|
2725
2766
|
};
|
|
2726
|
-
|
|
2767
|
+
type ListEntitiesErrors = {
|
|
2727
2768
|
/**
|
|
2728
2769
|
* Validation Error
|
|
2729
2770
|
*/
|
|
2730
2771
|
422: HttpValidationError;
|
|
2731
2772
|
};
|
|
2732
|
-
|
|
2733
|
-
export type ListEntitiesResponses = {
|
|
2773
|
+
type ListEntitiesResponses = {
|
|
2734
2774
|
/**
|
|
2735
2775
|
* Successful Response
|
|
2736
2776
|
*/
|
|
2737
2777
|
200: EntityListResponse;
|
|
2738
2778
|
};
|
|
2739
|
-
|
|
2740
|
-
export type GetEntityData = {
|
|
2779
|
+
type GetEntityData = {
|
|
2741
2780
|
body?: never;
|
|
2742
2781
|
headers?: {
|
|
2743
2782
|
/**
|
|
@@ -2758,21 +2797,19 @@ export type GetEntityData = {
|
|
|
2758
2797
|
query?: never;
|
|
2759
2798
|
url: "/v1/default/banks/{bank_id}/entities/{entity_id}";
|
|
2760
2799
|
};
|
|
2761
|
-
|
|
2800
|
+
type GetEntityErrors = {
|
|
2762
2801
|
/**
|
|
2763
2802
|
* Validation Error
|
|
2764
2803
|
*/
|
|
2765
2804
|
422: HttpValidationError;
|
|
2766
2805
|
};
|
|
2767
|
-
|
|
2768
|
-
export type GetEntityResponses = {
|
|
2806
|
+
type GetEntityResponses = {
|
|
2769
2807
|
/**
|
|
2770
2808
|
* Successful Response
|
|
2771
2809
|
*/
|
|
2772
2810
|
200: EntityDetailResponse;
|
|
2773
2811
|
};
|
|
2774
|
-
|
|
2775
|
-
export type RegenerateEntityObservationsData = {
|
|
2812
|
+
type RegenerateEntityObservationsData = {
|
|
2776
2813
|
body?: never;
|
|
2777
2814
|
headers?: {
|
|
2778
2815
|
/**
|
|
@@ -2793,21 +2830,19 @@ export type RegenerateEntityObservationsData = {
|
|
|
2793
2830
|
query?: never;
|
|
2794
2831
|
url: "/v1/default/banks/{bank_id}/entities/{entity_id}/regenerate";
|
|
2795
2832
|
};
|
|
2796
|
-
|
|
2833
|
+
type RegenerateEntityObservationsErrors = {
|
|
2797
2834
|
/**
|
|
2798
2835
|
* Validation Error
|
|
2799
2836
|
*/
|
|
2800
2837
|
422: HttpValidationError;
|
|
2801
2838
|
};
|
|
2802
|
-
|
|
2803
|
-
export type RegenerateEntityObservationsResponses = {
|
|
2839
|
+
type RegenerateEntityObservationsResponses = {
|
|
2804
2840
|
/**
|
|
2805
2841
|
* Successful Response
|
|
2806
2842
|
*/
|
|
2807
2843
|
200: EntityDetailResponse;
|
|
2808
2844
|
};
|
|
2809
|
-
|
|
2810
|
-
export type ListMentalModelsData = {
|
|
2845
|
+
type ListMentalModelsData = {
|
|
2811
2846
|
body?: never;
|
|
2812
2847
|
headers?: {
|
|
2813
2848
|
/**
|
|
@@ -2845,21 +2880,19 @@ export type ListMentalModelsData = {
|
|
|
2845
2880
|
};
|
|
2846
2881
|
url: "/v1/default/banks/{bank_id}/mental-models";
|
|
2847
2882
|
};
|
|
2848
|
-
|
|
2883
|
+
type ListMentalModelsErrors = {
|
|
2849
2884
|
/**
|
|
2850
2885
|
* Validation Error
|
|
2851
2886
|
*/
|
|
2852
2887
|
422: HttpValidationError;
|
|
2853
2888
|
};
|
|
2854
|
-
|
|
2855
|
-
export type ListMentalModelsResponses = {
|
|
2889
|
+
type ListMentalModelsResponses = {
|
|
2856
2890
|
/**
|
|
2857
2891
|
* Successful Response
|
|
2858
2892
|
*/
|
|
2859
2893
|
200: MentalModelListResponse;
|
|
2860
2894
|
};
|
|
2861
|
-
|
|
2862
|
-
export type CreateMentalModelData = {
|
|
2895
|
+
type CreateMentalModelData = {
|
|
2863
2896
|
body: CreateMentalModelRequest;
|
|
2864
2897
|
headers?: {
|
|
2865
2898
|
/**
|
|
@@ -2876,21 +2909,19 @@ export type CreateMentalModelData = {
|
|
|
2876
2909
|
query?: never;
|
|
2877
2910
|
url: "/v1/default/banks/{bank_id}/mental-models";
|
|
2878
2911
|
};
|
|
2879
|
-
|
|
2912
|
+
type CreateMentalModelErrors = {
|
|
2880
2913
|
/**
|
|
2881
2914
|
* Validation Error
|
|
2882
2915
|
*/
|
|
2883
2916
|
422: HttpValidationError;
|
|
2884
2917
|
};
|
|
2885
|
-
|
|
2886
|
-
export type CreateMentalModelResponses = {
|
|
2918
|
+
type CreateMentalModelResponses = {
|
|
2887
2919
|
/**
|
|
2888
2920
|
* Successful Response
|
|
2889
2921
|
*/
|
|
2890
2922
|
200: CreateMentalModelResponse;
|
|
2891
2923
|
};
|
|
2892
|
-
|
|
2893
|
-
export type DeleteMentalModelData = {
|
|
2924
|
+
type DeleteMentalModelData = {
|
|
2894
2925
|
body?: never;
|
|
2895
2926
|
headers?: {
|
|
2896
2927
|
/**
|
|
@@ -2911,20 +2942,19 @@ export type DeleteMentalModelData = {
|
|
|
2911
2942
|
query?: never;
|
|
2912
2943
|
url: "/v1/default/banks/{bank_id}/mental-models/{mental_model_id}";
|
|
2913
2944
|
};
|
|
2914
|
-
|
|
2945
|
+
type DeleteMentalModelErrors = {
|
|
2915
2946
|
/**
|
|
2916
2947
|
* Validation Error
|
|
2917
2948
|
*/
|
|
2918
2949
|
422: HttpValidationError;
|
|
2919
2950
|
};
|
|
2920
|
-
|
|
2921
|
-
export type DeleteMentalModelResponses = {
|
|
2951
|
+
type DeleteMentalModelResponses = {
|
|
2922
2952
|
/**
|
|
2923
2953
|
* Successful Response
|
|
2924
2954
|
*/
|
|
2925
2955
|
200: unknown;
|
|
2926
2956
|
};
|
|
2927
|
-
|
|
2957
|
+
type GetMentalModelData = {
|
|
2928
2958
|
body?: never;
|
|
2929
2959
|
headers?: {
|
|
2930
2960
|
/**
|
|
@@ -2945,21 +2975,19 @@ export type GetMentalModelData = {
|
|
|
2945
2975
|
query?: never;
|
|
2946
2976
|
url: "/v1/default/banks/{bank_id}/mental-models/{mental_model_id}";
|
|
2947
2977
|
};
|
|
2948
|
-
|
|
2978
|
+
type GetMentalModelErrors = {
|
|
2949
2979
|
/**
|
|
2950
2980
|
* Validation Error
|
|
2951
2981
|
*/
|
|
2952
2982
|
422: HttpValidationError;
|
|
2953
2983
|
};
|
|
2954
|
-
|
|
2955
|
-
export type GetMentalModelResponses = {
|
|
2984
|
+
type GetMentalModelResponses = {
|
|
2956
2985
|
/**
|
|
2957
2986
|
* Successful Response
|
|
2958
2987
|
*/
|
|
2959
2988
|
200: MentalModelResponse;
|
|
2960
2989
|
};
|
|
2961
|
-
|
|
2962
|
-
export type UpdateMentalModelData = {
|
|
2990
|
+
type UpdateMentalModelData = {
|
|
2963
2991
|
body: UpdateMentalModelRequest;
|
|
2964
2992
|
headers?: {
|
|
2965
2993
|
/**
|
|
@@ -2980,21 +3008,19 @@ export type UpdateMentalModelData = {
|
|
|
2980
3008
|
query?: never;
|
|
2981
3009
|
url: "/v1/default/banks/{bank_id}/mental-models/{mental_model_id}";
|
|
2982
3010
|
};
|
|
2983
|
-
|
|
3011
|
+
type UpdateMentalModelErrors = {
|
|
2984
3012
|
/**
|
|
2985
3013
|
* Validation Error
|
|
2986
3014
|
*/
|
|
2987
3015
|
422: HttpValidationError;
|
|
2988
3016
|
};
|
|
2989
|
-
|
|
2990
|
-
export type UpdateMentalModelResponses = {
|
|
3017
|
+
type UpdateMentalModelResponses = {
|
|
2991
3018
|
/**
|
|
2992
3019
|
* Successful Response
|
|
2993
3020
|
*/
|
|
2994
3021
|
200: MentalModelResponse;
|
|
2995
3022
|
};
|
|
2996
|
-
|
|
2997
|
-
export type GetMentalModelHistoryData = {
|
|
3023
|
+
type GetMentalModelHistoryData = {
|
|
2998
3024
|
body?: never;
|
|
2999
3025
|
headers?: {
|
|
3000
3026
|
/**
|
|
@@ -3015,20 +3041,19 @@ export type GetMentalModelHistoryData = {
|
|
|
3015
3041
|
query?: never;
|
|
3016
3042
|
url: "/v1/default/banks/{bank_id}/mental-models/{mental_model_id}/history";
|
|
3017
3043
|
};
|
|
3018
|
-
|
|
3044
|
+
type GetMentalModelHistoryErrors = {
|
|
3019
3045
|
/**
|
|
3020
3046
|
* Validation Error
|
|
3021
3047
|
*/
|
|
3022
3048
|
422: HttpValidationError;
|
|
3023
3049
|
};
|
|
3024
|
-
|
|
3025
|
-
export type GetMentalModelHistoryResponses = {
|
|
3050
|
+
type GetMentalModelHistoryResponses = {
|
|
3026
3051
|
/**
|
|
3027
3052
|
* Successful Response
|
|
3028
3053
|
*/
|
|
3029
3054
|
200: unknown;
|
|
3030
3055
|
};
|
|
3031
|
-
|
|
3056
|
+
type RefreshMentalModelData = {
|
|
3032
3057
|
body?: never;
|
|
3033
3058
|
headers?: {
|
|
3034
3059
|
/**
|
|
@@ -3049,21 +3074,19 @@ export type RefreshMentalModelData = {
|
|
|
3049
3074
|
query?: never;
|
|
3050
3075
|
url: "/v1/default/banks/{bank_id}/mental-models/{mental_model_id}/refresh";
|
|
3051
3076
|
};
|
|
3052
|
-
|
|
3077
|
+
type RefreshMentalModelErrors = {
|
|
3053
3078
|
/**
|
|
3054
3079
|
* Validation Error
|
|
3055
3080
|
*/
|
|
3056
3081
|
422: HttpValidationError;
|
|
3057
3082
|
};
|
|
3058
|
-
|
|
3059
|
-
export type RefreshMentalModelResponses = {
|
|
3083
|
+
type RefreshMentalModelResponses = {
|
|
3060
3084
|
/**
|
|
3061
3085
|
* Successful Response
|
|
3062
3086
|
*/
|
|
3063
3087
|
200: AsyncOperationSubmitResponse;
|
|
3064
3088
|
};
|
|
3065
|
-
|
|
3066
|
-
export type ListDirectivesData = {
|
|
3089
|
+
type ListDirectivesData = {
|
|
3067
3090
|
body?: never;
|
|
3068
3091
|
headers?: {
|
|
3069
3092
|
/**
|
|
@@ -3107,21 +3130,19 @@ export type ListDirectivesData = {
|
|
|
3107
3130
|
};
|
|
3108
3131
|
url: "/v1/default/banks/{bank_id}/directives";
|
|
3109
3132
|
};
|
|
3110
|
-
|
|
3133
|
+
type ListDirectivesErrors = {
|
|
3111
3134
|
/**
|
|
3112
3135
|
* Validation Error
|
|
3113
3136
|
*/
|
|
3114
3137
|
422: HttpValidationError;
|
|
3115
3138
|
};
|
|
3116
|
-
|
|
3117
|
-
export type ListDirectivesResponses = {
|
|
3139
|
+
type ListDirectivesResponses = {
|
|
3118
3140
|
/**
|
|
3119
3141
|
* Successful Response
|
|
3120
3142
|
*/
|
|
3121
3143
|
200: DirectiveListResponse;
|
|
3122
3144
|
};
|
|
3123
|
-
|
|
3124
|
-
export type CreateDirectiveData = {
|
|
3145
|
+
type CreateDirectiveData = {
|
|
3125
3146
|
body: CreateDirectiveRequest;
|
|
3126
3147
|
headers?: {
|
|
3127
3148
|
/**
|
|
@@ -3138,21 +3159,19 @@ export type CreateDirectiveData = {
|
|
|
3138
3159
|
query?: never;
|
|
3139
3160
|
url: "/v1/default/banks/{bank_id}/directives";
|
|
3140
3161
|
};
|
|
3141
|
-
|
|
3162
|
+
type CreateDirectiveErrors = {
|
|
3142
3163
|
/**
|
|
3143
3164
|
* Validation Error
|
|
3144
3165
|
*/
|
|
3145
3166
|
422: HttpValidationError;
|
|
3146
3167
|
};
|
|
3147
|
-
|
|
3148
|
-
export type CreateDirectiveResponses = {
|
|
3168
|
+
type CreateDirectiveResponses = {
|
|
3149
3169
|
/**
|
|
3150
3170
|
* Successful Response
|
|
3151
3171
|
*/
|
|
3152
3172
|
200: DirectiveResponse;
|
|
3153
3173
|
};
|
|
3154
|
-
|
|
3155
|
-
export type DeleteDirectiveData = {
|
|
3174
|
+
type DeleteDirectiveData = {
|
|
3156
3175
|
body?: never;
|
|
3157
3176
|
headers?: {
|
|
3158
3177
|
/**
|
|
@@ -3173,20 +3192,19 @@ export type DeleteDirectiveData = {
|
|
|
3173
3192
|
query?: never;
|
|
3174
3193
|
url: "/v1/default/banks/{bank_id}/directives/{directive_id}";
|
|
3175
3194
|
};
|
|
3176
|
-
|
|
3195
|
+
type DeleteDirectiveErrors = {
|
|
3177
3196
|
/**
|
|
3178
3197
|
* Validation Error
|
|
3179
3198
|
*/
|
|
3180
3199
|
422: HttpValidationError;
|
|
3181
3200
|
};
|
|
3182
|
-
|
|
3183
|
-
export type DeleteDirectiveResponses = {
|
|
3201
|
+
type DeleteDirectiveResponses = {
|
|
3184
3202
|
/**
|
|
3185
3203
|
* Successful Response
|
|
3186
3204
|
*/
|
|
3187
3205
|
200: unknown;
|
|
3188
3206
|
};
|
|
3189
|
-
|
|
3207
|
+
type GetDirectiveData = {
|
|
3190
3208
|
body?: never;
|
|
3191
3209
|
headers?: {
|
|
3192
3210
|
/**
|
|
@@ -3207,21 +3225,19 @@ export type GetDirectiveData = {
|
|
|
3207
3225
|
query?: never;
|
|
3208
3226
|
url: "/v1/default/banks/{bank_id}/directives/{directive_id}";
|
|
3209
3227
|
};
|
|
3210
|
-
|
|
3228
|
+
type GetDirectiveErrors = {
|
|
3211
3229
|
/**
|
|
3212
3230
|
* Validation Error
|
|
3213
3231
|
*/
|
|
3214
3232
|
422: HttpValidationError;
|
|
3215
3233
|
};
|
|
3216
|
-
|
|
3217
|
-
export type GetDirectiveResponses = {
|
|
3234
|
+
type GetDirectiveResponses = {
|
|
3218
3235
|
/**
|
|
3219
3236
|
* Successful Response
|
|
3220
3237
|
*/
|
|
3221
3238
|
200: DirectiveResponse;
|
|
3222
3239
|
};
|
|
3223
|
-
|
|
3224
|
-
export type UpdateDirectiveData = {
|
|
3240
|
+
type UpdateDirectiveData = {
|
|
3225
3241
|
body: UpdateDirectiveRequest;
|
|
3226
3242
|
headers?: {
|
|
3227
3243
|
/**
|
|
@@ -3242,21 +3258,19 @@ export type UpdateDirectiveData = {
|
|
|
3242
3258
|
query?: never;
|
|
3243
3259
|
url: "/v1/default/banks/{bank_id}/directives/{directive_id}";
|
|
3244
3260
|
};
|
|
3245
|
-
|
|
3261
|
+
type UpdateDirectiveErrors = {
|
|
3246
3262
|
/**
|
|
3247
3263
|
* Validation Error
|
|
3248
3264
|
*/
|
|
3249
3265
|
422: HttpValidationError;
|
|
3250
3266
|
};
|
|
3251
|
-
|
|
3252
|
-
export type UpdateDirectiveResponses = {
|
|
3267
|
+
type UpdateDirectiveResponses = {
|
|
3253
3268
|
/**
|
|
3254
3269
|
* Successful Response
|
|
3255
3270
|
*/
|
|
3256
3271
|
200: DirectiveResponse;
|
|
3257
3272
|
};
|
|
3258
|
-
|
|
3259
|
-
export type ListDocumentsData = {
|
|
3273
|
+
type ListDocumentsData = {
|
|
3260
3274
|
body?: never;
|
|
3261
3275
|
headers?: {
|
|
3262
3276
|
/**
|
|
@@ -3300,21 +3314,19 @@ export type ListDocumentsData = {
|
|
|
3300
3314
|
};
|
|
3301
3315
|
url: "/v1/default/banks/{bank_id}/documents";
|
|
3302
3316
|
};
|
|
3303
|
-
|
|
3317
|
+
type ListDocumentsErrors = {
|
|
3304
3318
|
/**
|
|
3305
3319
|
* Validation Error
|
|
3306
3320
|
*/
|
|
3307
3321
|
422: HttpValidationError;
|
|
3308
3322
|
};
|
|
3309
|
-
|
|
3310
|
-
export type ListDocumentsResponses = {
|
|
3323
|
+
type ListDocumentsResponses = {
|
|
3311
3324
|
/**
|
|
3312
3325
|
* Successful Response
|
|
3313
3326
|
*/
|
|
3314
3327
|
200: ListDocumentsResponse;
|
|
3315
3328
|
};
|
|
3316
|
-
|
|
3317
|
-
export type DeleteDocumentData = {
|
|
3329
|
+
type DeleteDocumentData = {
|
|
3318
3330
|
body?: never;
|
|
3319
3331
|
headers?: {
|
|
3320
3332
|
/**
|
|
@@ -3335,21 +3347,19 @@ export type DeleteDocumentData = {
|
|
|
3335
3347
|
query?: never;
|
|
3336
3348
|
url: "/v1/default/banks/{bank_id}/documents/{document_id}";
|
|
3337
3349
|
};
|
|
3338
|
-
|
|
3350
|
+
type DeleteDocumentErrors = {
|
|
3339
3351
|
/**
|
|
3340
3352
|
* Validation Error
|
|
3341
3353
|
*/
|
|
3342
3354
|
422: HttpValidationError;
|
|
3343
3355
|
};
|
|
3344
|
-
|
|
3345
|
-
export type DeleteDocumentResponses = {
|
|
3356
|
+
type DeleteDocumentResponses = {
|
|
3346
3357
|
/**
|
|
3347
3358
|
* Successful Response
|
|
3348
3359
|
*/
|
|
3349
3360
|
200: DeleteDocumentResponse;
|
|
3350
3361
|
};
|
|
3351
|
-
|
|
3352
|
-
export type GetDocumentData = {
|
|
3362
|
+
type GetDocumentData = {
|
|
3353
3363
|
body?: never;
|
|
3354
3364
|
headers?: {
|
|
3355
3365
|
/**
|
|
@@ -3370,21 +3380,19 @@ export type GetDocumentData = {
|
|
|
3370
3380
|
query?: never;
|
|
3371
3381
|
url: "/v1/default/banks/{bank_id}/documents/{document_id}";
|
|
3372
3382
|
};
|
|
3373
|
-
|
|
3383
|
+
type GetDocumentErrors = {
|
|
3374
3384
|
/**
|
|
3375
3385
|
* Validation Error
|
|
3376
3386
|
*/
|
|
3377
3387
|
422: HttpValidationError;
|
|
3378
3388
|
};
|
|
3379
|
-
|
|
3380
|
-
export type GetDocumentResponses = {
|
|
3389
|
+
type GetDocumentResponses = {
|
|
3381
3390
|
/**
|
|
3382
3391
|
* Successful Response
|
|
3383
3392
|
*/
|
|
3384
3393
|
200: DocumentResponse;
|
|
3385
3394
|
};
|
|
3386
|
-
|
|
3387
|
-
export type UpdateDocumentData = {
|
|
3395
|
+
type UpdateDocumentData = {
|
|
3388
3396
|
body: UpdateDocumentRequest;
|
|
3389
3397
|
headers?: {
|
|
3390
3398
|
/**
|
|
@@ -3405,21 +3413,19 @@ export type UpdateDocumentData = {
|
|
|
3405
3413
|
query?: never;
|
|
3406
3414
|
url: "/v1/default/banks/{bank_id}/documents/{document_id}";
|
|
3407
3415
|
};
|
|
3408
|
-
|
|
3416
|
+
type UpdateDocumentErrors = {
|
|
3409
3417
|
/**
|
|
3410
3418
|
* Validation Error
|
|
3411
3419
|
*/
|
|
3412
3420
|
422: HttpValidationError;
|
|
3413
3421
|
};
|
|
3414
|
-
|
|
3415
|
-
export type UpdateDocumentResponses = {
|
|
3422
|
+
type UpdateDocumentResponses = {
|
|
3416
3423
|
/**
|
|
3417
3424
|
* Successful Response
|
|
3418
3425
|
*/
|
|
3419
3426
|
200: UpdateDocumentResponse;
|
|
3420
3427
|
};
|
|
3421
|
-
|
|
3422
|
-
export type ListTagsData = {
|
|
3428
|
+
type ListTagsData = {
|
|
3423
3429
|
body?: never;
|
|
3424
3430
|
headers?: {
|
|
3425
3431
|
/**
|
|
@@ -3455,21 +3461,19 @@ export type ListTagsData = {
|
|
|
3455
3461
|
};
|
|
3456
3462
|
url: "/v1/default/banks/{bank_id}/tags";
|
|
3457
3463
|
};
|
|
3458
|
-
|
|
3464
|
+
type ListTagsErrors = {
|
|
3459
3465
|
/**
|
|
3460
3466
|
* Validation Error
|
|
3461
3467
|
*/
|
|
3462
3468
|
422: HttpValidationError;
|
|
3463
3469
|
};
|
|
3464
|
-
|
|
3465
|
-
export type ListTagsResponses = {
|
|
3470
|
+
type ListTagsResponses = {
|
|
3466
3471
|
/**
|
|
3467
3472
|
* Successful Response
|
|
3468
3473
|
*/
|
|
3469
3474
|
200: ListTagsResponse;
|
|
3470
3475
|
};
|
|
3471
|
-
|
|
3472
|
-
export type GetChunkData = {
|
|
3476
|
+
type GetChunkData = {
|
|
3473
3477
|
body?: never;
|
|
3474
3478
|
headers?: {
|
|
3475
3479
|
/**
|
|
@@ -3486,21 +3490,19 @@ export type GetChunkData = {
|
|
|
3486
3490
|
query?: never;
|
|
3487
3491
|
url: "/v1/default/chunks/{chunk_id}";
|
|
3488
3492
|
};
|
|
3489
|
-
|
|
3493
|
+
type GetChunkErrors = {
|
|
3490
3494
|
/**
|
|
3491
3495
|
* Validation Error
|
|
3492
3496
|
*/
|
|
3493
3497
|
422: HttpValidationError;
|
|
3494
3498
|
};
|
|
3495
|
-
|
|
3496
|
-
export type GetChunkResponses = {
|
|
3499
|
+
type GetChunkResponses = {
|
|
3497
3500
|
/**
|
|
3498
3501
|
* Successful Response
|
|
3499
3502
|
*/
|
|
3500
3503
|
200: ChunkResponse;
|
|
3501
3504
|
};
|
|
3502
|
-
|
|
3503
|
-
export type ListOperationsData = {
|
|
3505
|
+
type ListOperationsData = {
|
|
3504
3506
|
body?: never;
|
|
3505
3507
|
headers?: {
|
|
3506
3508
|
/**
|
|
@@ -3542,21 +3544,19 @@ export type ListOperationsData = {
|
|
|
3542
3544
|
};
|
|
3543
3545
|
url: "/v1/default/banks/{bank_id}/operations";
|
|
3544
3546
|
};
|
|
3545
|
-
|
|
3547
|
+
type ListOperationsErrors = {
|
|
3546
3548
|
/**
|
|
3547
3549
|
* Validation Error
|
|
3548
3550
|
*/
|
|
3549
3551
|
422: HttpValidationError;
|
|
3550
3552
|
};
|
|
3551
|
-
|
|
3552
|
-
export type ListOperationsResponses = {
|
|
3553
|
+
type ListOperationsResponses = {
|
|
3553
3554
|
/**
|
|
3554
3555
|
* Successful Response
|
|
3555
3556
|
*/
|
|
3556
3557
|
200: OperationsListResponse;
|
|
3557
3558
|
};
|
|
3558
|
-
|
|
3559
|
-
export type CancelOperationData = {
|
|
3559
|
+
type CancelOperationData = {
|
|
3560
3560
|
body?: never;
|
|
3561
3561
|
headers?: {
|
|
3562
3562
|
/**
|
|
@@ -3577,21 +3577,19 @@ export type CancelOperationData = {
|
|
|
3577
3577
|
query?: never;
|
|
3578
3578
|
url: "/v1/default/banks/{bank_id}/operations/{operation_id}";
|
|
3579
3579
|
};
|
|
3580
|
-
|
|
3580
|
+
type CancelOperationErrors = {
|
|
3581
3581
|
/**
|
|
3582
3582
|
* Validation Error
|
|
3583
3583
|
*/
|
|
3584
3584
|
422: HttpValidationError;
|
|
3585
3585
|
};
|
|
3586
|
-
|
|
3587
|
-
export type CancelOperationResponses = {
|
|
3586
|
+
type CancelOperationResponses = {
|
|
3588
3587
|
/**
|
|
3589
3588
|
* Successful Response
|
|
3590
3589
|
*/
|
|
3591
3590
|
200: CancelOperationResponse;
|
|
3592
3591
|
};
|
|
3593
|
-
|
|
3594
|
-
export type GetOperationStatusData = {
|
|
3592
|
+
type GetOperationStatusData = {
|
|
3595
3593
|
body?: never;
|
|
3596
3594
|
headers?: {
|
|
3597
3595
|
/**
|
|
@@ -3612,21 +3610,19 @@ export type GetOperationStatusData = {
|
|
|
3612
3610
|
query?: never;
|
|
3613
3611
|
url: "/v1/default/banks/{bank_id}/operations/{operation_id}";
|
|
3614
3612
|
};
|
|
3615
|
-
|
|
3613
|
+
type GetOperationStatusErrors = {
|
|
3616
3614
|
/**
|
|
3617
3615
|
* Validation Error
|
|
3618
3616
|
*/
|
|
3619
3617
|
422: HttpValidationError;
|
|
3620
3618
|
};
|
|
3621
|
-
|
|
3622
|
-
export type GetOperationStatusResponses = {
|
|
3619
|
+
type GetOperationStatusResponses = {
|
|
3623
3620
|
/**
|
|
3624
3621
|
* Successful Response
|
|
3625
3622
|
*/
|
|
3626
3623
|
200: OperationStatusResponse;
|
|
3627
3624
|
};
|
|
3628
|
-
|
|
3629
|
-
export type RetryOperationData = {
|
|
3625
|
+
type RetryOperationData = {
|
|
3630
3626
|
body?: never;
|
|
3631
3627
|
headers?: {
|
|
3632
3628
|
/**
|
|
@@ -3647,21 +3643,19 @@ export type RetryOperationData = {
|
|
|
3647
3643
|
query?: never;
|
|
3648
3644
|
url: "/v1/default/banks/{bank_id}/operations/{operation_id}/retry";
|
|
3649
3645
|
};
|
|
3650
|
-
|
|
3646
|
+
type RetryOperationErrors = {
|
|
3651
3647
|
/**
|
|
3652
3648
|
* Validation Error
|
|
3653
3649
|
*/
|
|
3654
3650
|
422: HttpValidationError;
|
|
3655
3651
|
};
|
|
3656
|
-
|
|
3657
|
-
export type RetryOperationResponses = {
|
|
3652
|
+
type RetryOperationResponses = {
|
|
3658
3653
|
/**
|
|
3659
3654
|
* Successful Response
|
|
3660
3655
|
*/
|
|
3661
3656
|
200: RetryOperationResponse;
|
|
3662
3657
|
};
|
|
3663
|
-
|
|
3664
|
-
export type GetBankProfileData = {
|
|
3658
|
+
type GetBankProfileData = {
|
|
3665
3659
|
body?: never;
|
|
3666
3660
|
headers?: {
|
|
3667
3661
|
/**
|
|
@@ -3678,21 +3672,19 @@ export type GetBankProfileData = {
|
|
|
3678
3672
|
query?: never;
|
|
3679
3673
|
url: "/v1/default/banks/{bank_id}/profile";
|
|
3680
3674
|
};
|
|
3681
|
-
|
|
3675
|
+
type GetBankProfileErrors = {
|
|
3682
3676
|
/**
|
|
3683
3677
|
* Validation Error
|
|
3684
3678
|
*/
|
|
3685
3679
|
422: HttpValidationError;
|
|
3686
3680
|
};
|
|
3687
|
-
|
|
3688
|
-
export type GetBankProfileResponses = {
|
|
3681
|
+
type GetBankProfileResponses = {
|
|
3689
3682
|
/**
|
|
3690
3683
|
* Successful Response
|
|
3691
3684
|
*/
|
|
3692
3685
|
200: BankProfileResponse;
|
|
3693
3686
|
};
|
|
3694
|
-
|
|
3695
|
-
export type UpdateBankDispositionData = {
|
|
3687
|
+
type UpdateBankDispositionData = {
|
|
3696
3688
|
body: UpdateDispositionRequest;
|
|
3697
3689
|
headers?: {
|
|
3698
3690
|
/**
|
|
@@ -3709,21 +3701,19 @@ export type UpdateBankDispositionData = {
|
|
|
3709
3701
|
query?: never;
|
|
3710
3702
|
url: "/v1/default/banks/{bank_id}/profile";
|
|
3711
3703
|
};
|
|
3712
|
-
|
|
3704
|
+
type UpdateBankDispositionErrors = {
|
|
3713
3705
|
/**
|
|
3714
3706
|
* Validation Error
|
|
3715
3707
|
*/
|
|
3716
3708
|
422: HttpValidationError;
|
|
3717
3709
|
};
|
|
3718
|
-
|
|
3719
|
-
export type UpdateBankDispositionResponses = {
|
|
3710
|
+
type UpdateBankDispositionResponses = {
|
|
3720
3711
|
/**
|
|
3721
3712
|
* Successful Response
|
|
3722
3713
|
*/
|
|
3723
3714
|
200: BankProfileResponse;
|
|
3724
3715
|
};
|
|
3725
|
-
|
|
3726
|
-
export type AddBankBackgroundData = {
|
|
3716
|
+
type AddBankBackgroundData = {
|
|
3727
3717
|
body: AddBackgroundRequest;
|
|
3728
3718
|
headers?: {
|
|
3729
3719
|
/**
|
|
@@ -3740,21 +3730,19 @@ export type AddBankBackgroundData = {
|
|
|
3740
3730
|
query?: never;
|
|
3741
3731
|
url: "/v1/default/banks/{bank_id}/background";
|
|
3742
3732
|
};
|
|
3743
|
-
|
|
3733
|
+
type AddBankBackgroundErrors = {
|
|
3744
3734
|
/**
|
|
3745
3735
|
* Validation Error
|
|
3746
3736
|
*/
|
|
3747
3737
|
422: HttpValidationError;
|
|
3748
3738
|
};
|
|
3749
|
-
|
|
3750
|
-
export type AddBankBackgroundResponses = {
|
|
3739
|
+
type AddBankBackgroundResponses = {
|
|
3751
3740
|
/**
|
|
3752
3741
|
* Successful Response
|
|
3753
3742
|
*/
|
|
3754
3743
|
200: BackgroundResponse;
|
|
3755
3744
|
};
|
|
3756
|
-
|
|
3757
|
-
export type DeleteBankData = {
|
|
3745
|
+
type DeleteBankData = {
|
|
3758
3746
|
body?: never;
|
|
3759
3747
|
headers?: {
|
|
3760
3748
|
/**
|
|
@@ -3771,21 +3759,19 @@ export type DeleteBankData = {
|
|
|
3771
3759
|
query?: never;
|
|
3772
3760
|
url: "/v1/default/banks/{bank_id}";
|
|
3773
3761
|
};
|
|
3774
|
-
|
|
3762
|
+
type DeleteBankErrors = {
|
|
3775
3763
|
/**
|
|
3776
3764
|
* Validation Error
|
|
3777
3765
|
*/
|
|
3778
3766
|
422: HttpValidationError;
|
|
3779
3767
|
};
|
|
3780
|
-
|
|
3781
|
-
export type DeleteBankResponses = {
|
|
3768
|
+
type DeleteBankResponses = {
|
|
3782
3769
|
/**
|
|
3783
3770
|
* Successful Response
|
|
3784
3771
|
*/
|
|
3785
3772
|
200: DeleteResponse;
|
|
3786
3773
|
};
|
|
3787
|
-
|
|
3788
|
-
export type UpdateBankData = {
|
|
3774
|
+
type UpdateBankData = {
|
|
3789
3775
|
body: CreateBankRequest;
|
|
3790
3776
|
headers?: {
|
|
3791
3777
|
/**
|
|
@@ -3802,21 +3788,19 @@ export type UpdateBankData = {
|
|
|
3802
3788
|
query?: never;
|
|
3803
3789
|
url: "/v1/default/banks/{bank_id}";
|
|
3804
3790
|
};
|
|
3805
|
-
|
|
3791
|
+
type UpdateBankErrors = {
|
|
3806
3792
|
/**
|
|
3807
3793
|
* Validation Error
|
|
3808
3794
|
*/
|
|
3809
3795
|
422: HttpValidationError;
|
|
3810
3796
|
};
|
|
3811
|
-
|
|
3812
|
-
export type UpdateBankResponses = {
|
|
3797
|
+
type UpdateBankResponses = {
|
|
3813
3798
|
/**
|
|
3814
3799
|
* Successful Response
|
|
3815
3800
|
*/
|
|
3816
3801
|
200: BankProfileResponse;
|
|
3817
3802
|
};
|
|
3818
|
-
|
|
3819
|
-
export type CreateOrUpdateBankData = {
|
|
3803
|
+
type CreateOrUpdateBankData = {
|
|
3820
3804
|
body: CreateBankRequest;
|
|
3821
3805
|
headers?: {
|
|
3822
3806
|
/**
|
|
@@ -3833,21 +3817,19 @@ export type CreateOrUpdateBankData = {
|
|
|
3833
3817
|
query?: never;
|
|
3834
3818
|
url: "/v1/default/banks/{bank_id}";
|
|
3835
3819
|
};
|
|
3836
|
-
|
|
3820
|
+
type CreateOrUpdateBankErrors = {
|
|
3837
3821
|
/**
|
|
3838
3822
|
* Validation Error
|
|
3839
3823
|
*/
|
|
3840
3824
|
422: HttpValidationError;
|
|
3841
3825
|
};
|
|
3842
|
-
|
|
3843
|
-
export type CreateOrUpdateBankResponses = {
|
|
3826
|
+
type CreateOrUpdateBankResponses = {
|
|
3844
3827
|
/**
|
|
3845
3828
|
* Successful Response
|
|
3846
3829
|
*/
|
|
3847
3830
|
200: BankProfileResponse;
|
|
3848
3831
|
};
|
|
3849
|
-
|
|
3850
|
-
export type ClearObservationsData = {
|
|
3832
|
+
type ClearObservationsData = {
|
|
3851
3833
|
body?: never;
|
|
3852
3834
|
headers?: {
|
|
3853
3835
|
/**
|
|
@@ -3864,21 +3846,48 @@ export type ClearObservationsData = {
|
|
|
3864
3846
|
query?: never;
|
|
3865
3847
|
url: "/v1/default/banks/{bank_id}/observations";
|
|
3866
3848
|
};
|
|
3867
|
-
|
|
3849
|
+
type ClearObservationsErrors = {
|
|
3868
3850
|
/**
|
|
3869
3851
|
* Validation Error
|
|
3870
3852
|
*/
|
|
3871
3853
|
422: HttpValidationError;
|
|
3872
3854
|
};
|
|
3873
|
-
|
|
3874
|
-
export type ClearObservationsResponses = {
|
|
3855
|
+
type ClearObservationsResponses = {
|
|
3875
3856
|
/**
|
|
3876
3857
|
* Successful Response
|
|
3877
3858
|
*/
|
|
3878
3859
|
200: DeleteResponse;
|
|
3879
3860
|
};
|
|
3880
|
-
|
|
3881
|
-
|
|
3861
|
+
type RecoverConsolidationData = {
|
|
3862
|
+
body?: never;
|
|
3863
|
+
headers?: {
|
|
3864
|
+
/**
|
|
3865
|
+
* Authorization
|
|
3866
|
+
*/
|
|
3867
|
+
authorization?: string | null;
|
|
3868
|
+
};
|
|
3869
|
+
path: {
|
|
3870
|
+
/**
|
|
3871
|
+
* Bank Id
|
|
3872
|
+
*/
|
|
3873
|
+
bank_id: string;
|
|
3874
|
+
};
|
|
3875
|
+
query?: never;
|
|
3876
|
+
url: "/v1/default/banks/{bank_id}/consolidation/recover";
|
|
3877
|
+
};
|
|
3878
|
+
type RecoverConsolidationErrors = {
|
|
3879
|
+
/**
|
|
3880
|
+
* Validation Error
|
|
3881
|
+
*/
|
|
3882
|
+
422: HttpValidationError;
|
|
3883
|
+
};
|
|
3884
|
+
type RecoverConsolidationResponses = {
|
|
3885
|
+
/**
|
|
3886
|
+
* Successful Response
|
|
3887
|
+
*/
|
|
3888
|
+
200: RecoverConsolidationResponse;
|
|
3889
|
+
};
|
|
3890
|
+
type ClearMemoryObservationsData = {
|
|
3882
3891
|
body?: never;
|
|
3883
3892
|
headers?: {
|
|
3884
3893
|
/**
|
|
@@ -3899,21 +3908,19 @@ export type ClearMemoryObservationsData = {
|
|
|
3899
3908
|
query?: never;
|
|
3900
3909
|
url: "/v1/default/banks/{bank_id}/memories/{memory_id}/observations";
|
|
3901
3910
|
};
|
|
3902
|
-
|
|
3911
|
+
type ClearMemoryObservationsErrors = {
|
|
3903
3912
|
/**
|
|
3904
3913
|
* Validation Error
|
|
3905
3914
|
*/
|
|
3906
3915
|
422: HttpValidationError;
|
|
3907
3916
|
};
|
|
3908
|
-
|
|
3909
|
-
export type ClearMemoryObservationsResponses = {
|
|
3917
|
+
type ClearMemoryObservationsResponses = {
|
|
3910
3918
|
/**
|
|
3911
3919
|
* Successful Response
|
|
3912
3920
|
*/
|
|
3913
3921
|
200: ClearMemoryObservationsResponse;
|
|
3914
3922
|
};
|
|
3915
|
-
|
|
3916
|
-
export type ResetBankConfigData = {
|
|
3923
|
+
type ResetBankConfigData = {
|
|
3917
3924
|
body?: never;
|
|
3918
3925
|
headers?: {
|
|
3919
3926
|
/**
|
|
@@ -3930,21 +3937,19 @@ export type ResetBankConfigData = {
|
|
|
3930
3937
|
query?: never;
|
|
3931
3938
|
url: "/v1/default/banks/{bank_id}/config";
|
|
3932
3939
|
};
|
|
3933
|
-
|
|
3940
|
+
type ResetBankConfigErrors = {
|
|
3934
3941
|
/**
|
|
3935
3942
|
* Validation Error
|
|
3936
3943
|
*/
|
|
3937
3944
|
422: HttpValidationError;
|
|
3938
3945
|
};
|
|
3939
|
-
|
|
3940
|
-
export type ResetBankConfigResponses = {
|
|
3946
|
+
type ResetBankConfigResponses = {
|
|
3941
3947
|
/**
|
|
3942
3948
|
* Successful Response
|
|
3943
3949
|
*/
|
|
3944
3950
|
200: BankConfigResponse;
|
|
3945
3951
|
};
|
|
3946
|
-
|
|
3947
|
-
export type GetBankConfigData = {
|
|
3952
|
+
type GetBankConfigData = {
|
|
3948
3953
|
body?: never;
|
|
3949
3954
|
headers?: {
|
|
3950
3955
|
/**
|
|
@@ -3961,21 +3966,19 @@ export type GetBankConfigData = {
|
|
|
3961
3966
|
query?: never;
|
|
3962
3967
|
url: "/v1/default/banks/{bank_id}/config";
|
|
3963
3968
|
};
|
|
3964
|
-
|
|
3969
|
+
type GetBankConfigErrors = {
|
|
3965
3970
|
/**
|
|
3966
3971
|
* Validation Error
|
|
3967
3972
|
*/
|
|
3968
3973
|
422: HttpValidationError;
|
|
3969
3974
|
};
|
|
3970
|
-
|
|
3971
|
-
export type GetBankConfigResponses = {
|
|
3975
|
+
type GetBankConfigResponses = {
|
|
3972
3976
|
/**
|
|
3973
3977
|
* Successful Response
|
|
3974
3978
|
*/
|
|
3975
3979
|
200: BankConfigResponse;
|
|
3976
3980
|
};
|
|
3977
|
-
|
|
3978
|
-
export type UpdateBankConfigData = {
|
|
3981
|
+
type UpdateBankConfigData = {
|
|
3979
3982
|
body: BankConfigUpdate;
|
|
3980
3983
|
headers?: {
|
|
3981
3984
|
/**
|
|
@@ -3992,21 +3995,19 @@ export type UpdateBankConfigData = {
|
|
|
3992
3995
|
query?: never;
|
|
3993
3996
|
url: "/v1/default/banks/{bank_id}/config";
|
|
3994
3997
|
};
|
|
3995
|
-
|
|
3998
|
+
type UpdateBankConfigErrors = {
|
|
3996
3999
|
/**
|
|
3997
4000
|
* Validation Error
|
|
3998
4001
|
*/
|
|
3999
4002
|
422: HttpValidationError;
|
|
4000
4003
|
};
|
|
4001
|
-
|
|
4002
|
-
export type UpdateBankConfigResponses = {
|
|
4004
|
+
type UpdateBankConfigResponses = {
|
|
4003
4005
|
/**
|
|
4004
4006
|
* Successful Response
|
|
4005
4007
|
*/
|
|
4006
4008
|
200: BankConfigResponse;
|
|
4007
4009
|
};
|
|
4008
|
-
|
|
4009
|
-
export type TriggerConsolidationData = {
|
|
4010
|
+
type TriggerConsolidationData = {
|
|
4010
4011
|
body?: never;
|
|
4011
4012
|
headers?: {
|
|
4012
4013
|
/**
|
|
@@ -4023,21 +4024,19 @@ export type TriggerConsolidationData = {
|
|
|
4023
4024
|
query?: never;
|
|
4024
4025
|
url: "/v1/default/banks/{bank_id}/consolidate";
|
|
4025
4026
|
};
|
|
4026
|
-
|
|
4027
|
+
type TriggerConsolidationErrors = {
|
|
4027
4028
|
/**
|
|
4028
4029
|
* Validation Error
|
|
4029
4030
|
*/
|
|
4030
4031
|
422: HttpValidationError;
|
|
4031
4032
|
};
|
|
4032
|
-
|
|
4033
|
-
export type TriggerConsolidationResponses = {
|
|
4033
|
+
type TriggerConsolidationResponses = {
|
|
4034
4034
|
/**
|
|
4035
4035
|
* Successful Response
|
|
4036
4036
|
*/
|
|
4037
4037
|
200: ConsolidationResponse;
|
|
4038
4038
|
};
|
|
4039
|
-
|
|
4040
|
-
export type ListWebhooksData = {
|
|
4039
|
+
type ListWebhooksData = {
|
|
4041
4040
|
body?: never;
|
|
4042
4041
|
headers?: {
|
|
4043
4042
|
/**
|
|
@@ -4054,21 +4053,19 @@ export type ListWebhooksData = {
|
|
|
4054
4053
|
query?: never;
|
|
4055
4054
|
url: "/v1/default/banks/{bank_id}/webhooks";
|
|
4056
4055
|
};
|
|
4057
|
-
|
|
4056
|
+
type ListWebhooksErrors = {
|
|
4058
4057
|
/**
|
|
4059
4058
|
* Validation Error
|
|
4060
4059
|
*/
|
|
4061
4060
|
422: HttpValidationError;
|
|
4062
4061
|
};
|
|
4063
|
-
|
|
4064
|
-
export type ListWebhooksResponses = {
|
|
4062
|
+
type ListWebhooksResponses = {
|
|
4065
4063
|
/**
|
|
4066
4064
|
* Successful Response
|
|
4067
4065
|
*/
|
|
4068
4066
|
200: WebhookListResponse;
|
|
4069
4067
|
};
|
|
4070
|
-
|
|
4071
|
-
export type CreateWebhookData = {
|
|
4068
|
+
type CreateWebhookData = {
|
|
4072
4069
|
body: CreateWebhookRequest;
|
|
4073
4070
|
headers?: {
|
|
4074
4071
|
/**
|
|
@@ -4085,21 +4082,19 @@ export type CreateWebhookData = {
|
|
|
4085
4082
|
query?: never;
|
|
4086
4083
|
url: "/v1/default/banks/{bank_id}/webhooks";
|
|
4087
4084
|
};
|
|
4088
|
-
|
|
4085
|
+
type CreateWebhookErrors = {
|
|
4089
4086
|
/**
|
|
4090
4087
|
* Validation Error
|
|
4091
4088
|
*/
|
|
4092
4089
|
422: HttpValidationError;
|
|
4093
4090
|
};
|
|
4094
|
-
|
|
4095
|
-
export type CreateWebhookResponses = {
|
|
4091
|
+
type CreateWebhookResponses = {
|
|
4096
4092
|
/**
|
|
4097
4093
|
* Successful Response
|
|
4098
4094
|
*/
|
|
4099
4095
|
201: WebhookResponse;
|
|
4100
4096
|
};
|
|
4101
|
-
|
|
4102
|
-
export type DeleteWebhookData = {
|
|
4097
|
+
type DeleteWebhookData = {
|
|
4103
4098
|
body?: never;
|
|
4104
4099
|
headers?: {
|
|
4105
4100
|
/**
|
|
@@ -4120,21 +4115,19 @@ export type DeleteWebhookData = {
|
|
|
4120
4115
|
query?: never;
|
|
4121
4116
|
url: "/v1/default/banks/{bank_id}/webhooks/{webhook_id}";
|
|
4122
4117
|
};
|
|
4123
|
-
|
|
4118
|
+
type DeleteWebhookErrors = {
|
|
4124
4119
|
/**
|
|
4125
4120
|
* Validation Error
|
|
4126
4121
|
*/
|
|
4127
4122
|
422: HttpValidationError;
|
|
4128
4123
|
};
|
|
4129
|
-
|
|
4130
|
-
export type DeleteWebhookResponses = {
|
|
4124
|
+
type DeleteWebhookResponses = {
|
|
4131
4125
|
/**
|
|
4132
4126
|
* Successful Response
|
|
4133
4127
|
*/
|
|
4134
4128
|
200: DeleteResponse;
|
|
4135
4129
|
};
|
|
4136
|
-
|
|
4137
|
-
export type UpdateWebhookData = {
|
|
4130
|
+
type UpdateWebhookData = {
|
|
4138
4131
|
body: UpdateWebhookRequest;
|
|
4139
4132
|
headers?: {
|
|
4140
4133
|
/**
|
|
@@ -4155,21 +4148,19 @@ export type UpdateWebhookData = {
|
|
|
4155
4148
|
query?: never;
|
|
4156
4149
|
url: "/v1/default/banks/{bank_id}/webhooks/{webhook_id}";
|
|
4157
4150
|
};
|
|
4158
|
-
|
|
4151
|
+
type UpdateWebhookErrors = {
|
|
4159
4152
|
/**
|
|
4160
4153
|
* Validation Error
|
|
4161
4154
|
*/
|
|
4162
4155
|
422: HttpValidationError;
|
|
4163
4156
|
};
|
|
4164
|
-
|
|
4165
|
-
export type UpdateWebhookResponses = {
|
|
4157
|
+
type UpdateWebhookResponses = {
|
|
4166
4158
|
/**
|
|
4167
4159
|
* Successful Response
|
|
4168
4160
|
*/
|
|
4169
4161
|
200: WebhookResponse;
|
|
4170
4162
|
};
|
|
4171
|
-
|
|
4172
|
-
export type ListWebhookDeliveriesData = {
|
|
4163
|
+
type ListWebhookDeliveriesData = {
|
|
4173
4164
|
body?: never;
|
|
4174
4165
|
headers?: {
|
|
4175
4166
|
/**
|
|
@@ -4203,21 +4194,19 @@ export type ListWebhookDeliveriesData = {
|
|
|
4203
4194
|
};
|
|
4204
4195
|
url: "/v1/default/banks/{bank_id}/webhooks/{webhook_id}/deliveries";
|
|
4205
4196
|
};
|
|
4206
|
-
|
|
4197
|
+
type ListWebhookDeliveriesErrors = {
|
|
4207
4198
|
/**
|
|
4208
4199
|
* Validation Error
|
|
4209
4200
|
*/
|
|
4210
4201
|
422: HttpValidationError;
|
|
4211
4202
|
};
|
|
4212
|
-
|
|
4213
|
-
export type ListWebhookDeliveriesResponses = {
|
|
4203
|
+
type ListWebhookDeliveriesResponses = {
|
|
4214
4204
|
/**
|
|
4215
4205
|
* Successful Response
|
|
4216
4206
|
*/
|
|
4217
4207
|
200: WebhookDeliveryListResponse;
|
|
4218
4208
|
};
|
|
4219
|
-
|
|
4220
|
-
export type ClearBankMemoriesData = {
|
|
4209
|
+
type ClearBankMemoriesData = {
|
|
4221
4210
|
body?: never;
|
|
4222
4211
|
headers?: {
|
|
4223
4212
|
/**
|
|
@@ -4241,21 +4230,19 @@ export type ClearBankMemoriesData = {
|
|
|
4241
4230
|
};
|
|
4242
4231
|
url: "/v1/default/banks/{bank_id}/memories";
|
|
4243
4232
|
};
|
|
4244
|
-
|
|
4233
|
+
type ClearBankMemoriesErrors = {
|
|
4245
4234
|
/**
|
|
4246
4235
|
* Validation Error
|
|
4247
4236
|
*/
|
|
4248
4237
|
422: HttpValidationError;
|
|
4249
4238
|
};
|
|
4250
|
-
|
|
4251
|
-
export type ClearBankMemoriesResponses = {
|
|
4239
|
+
type ClearBankMemoriesResponses = {
|
|
4252
4240
|
/**
|
|
4253
4241
|
* Successful Response
|
|
4254
4242
|
*/
|
|
4255
4243
|
200: DeleteResponse;
|
|
4256
4244
|
};
|
|
4257
|
-
|
|
4258
|
-
export type RetainMemoriesData = {
|
|
4245
|
+
type RetainMemoriesData = {
|
|
4259
4246
|
body: RetainRequest;
|
|
4260
4247
|
headers?: {
|
|
4261
4248
|
/**
|
|
@@ -4272,21 +4259,19 @@ export type RetainMemoriesData = {
|
|
|
4272
4259
|
query?: never;
|
|
4273
4260
|
url: "/v1/default/banks/{bank_id}/memories";
|
|
4274
4261
|
};
|
|
4275
|
-
|
|
4262
|
+
type RetainMemoriesErrors = {
|
|
4276
4263
|
/**
|
|
4277
4264
|
* Validation Error
|
|
4278
4265
|
*/
|
|
4279
4266
|
422: HttpValidationError;
|
|
4280
4267
|
};
|
|
4281
|
-
|
|
4282
|
-
export type RetainMemoriesResponses = {
|
|
4268
|
+
type RetainMemoriesResponses = {
|
|
4283
4269
|
/**
|
|
4284
4270
|
* Successful Response
|
|
4285
4271
|
*/
|
|
4286
4272
|
200: RetainResponse;
|
|
4287
4273
|
};
|
|
4288
|
-
|
|
4289
|
-
export type FileRetainData = {
|
|
4274
|
+
type FileRetainData = {
|
|
4290
4275
|
body: BodyFileRetain;
|
|
4291
4276
|
headers?: {
|
|
4292
4277
|
/**
|
|
@@ -4303,18 +4288,1138 @@ export type FileRetainData = {
|
|
|
4303
4288
|
query?: never;
|
|
4304
4289
|
url: "/v1/default/banks/{bank_id}/files/retain";
|
|
4305
4290
|
};
|
|
4306
|
-
|
|
4291
|
+
type FileRetainErrors = {
|
|
4307
4292
|
/**
|
|
4308
4293
|
* Validation Error
|
|
4309
4294
|
*/
|
|
4310
4295
|
422: HttpValidationError;
|
|
4311
4296
|
};
|
|
4312
|
-
|
|
4313
|
-
export type FileRetainResponses = {
|
|
4297
|
+
type FileRetainResponses = {
|
|
4314
4298
|
/**
|
|
4315
4299
|
* Successful Response
|
|
4316
4300
|
*/
|
|
4317
4301
|
200: FileRetainResponse;
|
|
4318
4302
|
};
|
|
4319
|
-
|
|
4320
|
-
|
|
4303
|
+
|
|
4304
|
+
type AuthToken = string | undefined;
|
|
4305
|
+
interface Auth {
|
|
4306
|
+
/**
|
|
4307
|
+
* Which part of the request do we use to send the auth?
|
|
4308
|
+
*
|
|
4309
|
+
* @default 'header'
|
|
4310
|
+
*/
|
|
4311
|
+
in?: "header" | "query" | "cookie";
|
|
4312
|
+
/**
|
|
4313
|
+
* Header or query parameter name.
|
|
4314
|
+
*
|
|
4315
|
+
* @default 'Authorization'
|
|
4316
|
+
*/
|
|
4317
|
+
name?: string;
|
|
4318
|
+
scheme?: "basic" | "bearer";
|
|
4319
|
+
type: "apiKey" | "http";
|
|
4320
|
+
}
|
|
4321
|
+
|
|
4322
|
+
interface SerializerOptions<T> {
|
|
4323
|
+
/**
|
|
4324
|
+
* @default true
|
|
4325
|
+
*/
|
|
4326
|
+
explode: boolean;
|
|
4327
|
+
style: T;
|
|
4328
|
+
}
|
|
4329
|
+
type ArrayStyle = "form" | "spaceDelimited" | "pipeDelimited";
|
|
4330
|
+
type ObjectStyle = "form" | "deepObject";
|
|
4331
|
+
|
|
4332
|
+
type QuerySerializer = (query: Record<string, unknown>) => string;
|
|
4333
|
+
type BodySerializer = (body: any) => any;
|
|
4334
|
+
type QuerySerializerOptionsObject = {
|
|
4335
|
+
allowReserved?: boolean;
|
|
4336
|
+
array?: Partial<SerializerOptions<ArrayStyle>>;
|
|
4337
|
+
object?: Partial<SerializerOptions<ObjectStyle>>;
|
|
4338
|
+
};
|
|
4339
|
+
type QuerySerializerOptions = QuerySerializerOptionsObject & {
|
|
4340
|
+
/**
|
|
4341
|
+
* Per-parameter serialization overrides. When provided, these settings
|
|
4342
|
+
* override the global array/object settings for specific parameter names.
|
|
4343
|
+
*/
|
|
4344
|
+
parameters?: Record<string, QuerySerializerOptionsObject>;
|
|
4345
|
+
};
|
|
4346
|
+
|
|
4347
|
+
type HttpMethod = "connect" | "delete" | "get" | "head" | "options" | "patch" | "post" | "put" | "trace";
|
|
4348
|
+
type Client$1<RequestFn = never, Config = unknown, MethodFn = never, BuildUrlFn = never, SseFn = never> = {
|
|
4349
|
+
/**
|
|
4350
|
+
* Returns the final request URL.
|
|
4351
|
+
*/
|
|
4352
|
+
buildUrl: BuildUrlFn;
|
|
4353
|
+
getConfig: () => Config;
|
|
4354
|
+
request: RequestFn;
|
|
4355
|
+
setConfig: (config: Config) => Config;
|
|
4356
|
+
} & {
|
|
4357
|
+
[K in HttpMethod]: MethodFn;
|
|
4358
|
+
} & ([SseFn] extends [never] ? {
|
|
4359
|
+
sse?: never;
|
|
4360
|
+
} : {
|
|
4361
|
+
sse: {
|
|
4362
|
+
[K in HttpMethod]: SseFn;
|
|
4363
|
+
};
|
|
4364
|
+
});
|
|
4365
|
+
interface Config$1 {
|
|
4366
|
+
/**
|
|
4367
|
+
* Auth token or a function returning auth token. The resolved value will be
|
|
4368
|
+
* added to the request payload as defined by its `security` array.
|
|
4369
|
+
*/
|
|
4370
|
+
auth?: ((auth: Auth) => Promise<AuthToken> | AuthToken) | AuthToken;
|
|
4371
|
+
/**
|
|
4372
|
+
* A function for serializing request body parameter. By default,
|
|
4373
|
+
* {@link JSON.stringify()} will be used.
|
|
4374
|
+
*/
|
|
4375
|
+
bodySerializer?: BodySerializer | null;
|
|
4376
|
+
/**
|
|
4377
|
+
* An object containing any HTTP headers that you want to pre-populate your
|
|
4378
|
+
* `Headers` object with.
|
|
4379
|
+
*
|
|
4380
|
+
* {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more}
|
|
4381
|
+
*/
|
|
4382
|
+
headers?: RequestInit["headers"] | Record<string, string | number | boolean | (string | number | boolean)[] | null | undefined | unknown>;
|
|
4383
|
+
/**
|
|
4384
|
+
* The request method.
|
|
4385
|
+
*
|
|
4386
|
+
* {@link https://developer.mozilla.org/docs/Web/API/fetch#method See more}
|
|
4387
|
+
*/
|
|
4388
|
+
method?: Uppercase<HttpMethod>;
|
|
4389
|
+
/**
|
|
4390
|
+
* A function for serializing request query parameters. By default, arrays
|
|
4391
|
+
* will be exploded in form style, objects will be exploded in deepObject
|
|
4392
|
+
* style, and reserved characters are percent-encoded.
|
|
4393
|
+
*
|
|
4394
|
+
* This method will have no effect if the native `paramsSerializer()` Axios
|
|
4395
|
+
* API function is used.
|
|
4396
|
+
*
|
|
4397
|
+
* {@link https://swagger.io/docs/specification/serialization/#query View examples}
|
|
4398
|
+
*/
|
|
4399
|
+
querySerializer?: QuerySerializer | QuerySerializerOptions;
|
|
4400
|
+
/**
|
|
4401
|
+
* A function validating request data. This is useful if you want to ensure
|
|
4402
|
+
* the request conforms to the desired shape, so it can be safely sent to
|
|
4403
|
+
* the server.
|
|
4404
|
+
*/
|
|
4405
|
+
requestValidator?: (data: unknown) => Promise<unknown>;
|
|
4406
|
+
/**
|
|
4407
|
+
* A function transforming response data before it's returned. This is useful
|
|
4408
|
+
* for post-processing data, e.g. converting ISO strings into Date objects.
|
|
4409
|
+
*/
|
|
4410
|
+
responseTransformer?: (data: unknown) => Promise<unknown>;
|
|
4411
|
+
/**
|
|
4412
|
+
* A function validating response data. This is useful if you want to ensure
|
|
4413
|
+
* the response conforms to the desired shape, so it can be safely passed to
|
|
4414
|
+
* the transformers and returned to the user.
|
|
4415
|
+
*/
|
|
4416
|
+
responseValidator?: (data: unknown) => Promise<unknown>;
|
|
4417
|
+
}
|
|
4418
|
+
|
|
4419
|
+
type ServerSentEventsOptions<TData = unknown> = Omit<RequestInit, "method"> & Pick<Config$1, "method" | "responseTransformer" | "responseValidator"> & {
|
|
4420
|
+
/**
|
|
4421
|
+
* Fetch API implementation. You can use this option to provide a custom
|
|
4422
|
+
* fetch instance.
|
|
4423
|
+
*
|
|
4424
|
+
* @default globalThis.fetch
|
|
4425
|
+
*/
|
|
4426
|
+
fetch?: typeof fetch;
|
|
4427
|
+
/**
|
|
4428
|
+
* Implementing clients can call request interceptors inside this hook.
|
|
4429
|
+
*/
|
|
4430
|
+
onRequest?: (url: string, init: RequestInit) => Promise<Request>;
|
|
4431
|
+
/**
|
|
4432
|
+
* Callback invoked when a network or parsing error occurs during streaming.
|
|
4433
|
+
*
|
|
4434
|
+
* This option applies only if the endpoint returns a stream of events.
|
|
4435
|
+
*
|
|
4436
|
+
* @param error The error that occurred.
|
|
4437
|
+
*/
|
|
4438
|
+
onSseError?: (error: unknown) => void;
|
|
4439
|
+
/**
|
|
4440
|
+
* Callback invoked when an event is streamed from the server.
|
|
4441
|
+
*
|
|
4442
|
+
* This option applies only if the endpoint returns a stream of events.
|
|
4443
|
+
*
|
|
4444
|
+
* @param event Event streamed from the server.
|
|
4445
|
+
* @returns Nothing (void).
|
|
4446
|
+
*/
|
|
4447
|
+
onSseEvent?: (event: StreamEvent<TData>) => void;
|
|
4448
|
+
serializedBody?: RequestInit["body"];
|
|
4449
|
+
/**
|
|
4450
|
+
* Default retry delay in milliseconds.
|
|
4451
|
+
*
|
|
4452
|
+
* This option applies only if the endpoint returns a stream of events.
|
|
4453
|
+
*
|
|
4454
|
+
* @default 3000
|
|
4455
|
+
*/
|
|
4456
|
+
sseDefaultRetryDelay?: number;
|
|
4457
|
+
/**
|
|
4458
|
+
* Maximum number of retry attempts before giving up.
|
|
4459
|
+
*/
|
|
4460
|
+
sseMaxRetryAttempts?: number;
|
|
4461
|
+
/**
|
|
4462
|
+
* Maximum retry delay in milliseconds.
|
|
4463
|
+
*
|
|
4464
|
+
* Applies only when exponential backoff is used.
|
|
4465
|
+
*
|
|
4466
|
+
* This option applies only if the endpoint returns a stream of events.
|
|
4467
|
+
*
|
|
4468
|
+
* @default 30000
|
|
4469
|
+
*/
|
|
4470
|
+
sseMaxRetryDelay?: number;
|
|
4471
|
+
/**
|
|
4472
|
+
* Optional sleep function for retry backoff.
|
|
4473
|
+
*
|
|
4474
|
+
* Defaults to using `setTimeout`.
|
|
4475
|
+
*/
|
|
4476
|
+
sseSleepFn?: (ms: number) => Promise<void>;
|
|
4477
|
+
url: string;
|
|
4478
|
+
};
|
|
4479
|
+
interface StreamEvent<TData = unknown> {
|
|
4480
|
+
data: TData;
|
|
4481
|
+
event?: string;
|
|
4482
|
+
id?: string;
|
|
4483
|
+
retry?: number;
|
|
4484
|
+
}
|
|
4485
|
+
type ServerSentEventsResult<TData = unknown, TReturn = void, TNext = unknown> = {
|
|
4486
|
+
stream: AsyncGenerator<TData extends Record<string, unknown> ? TData[keyof TData] : TData, TReturn, TNext>;
|
|
4487
|
+
};
|
|
4488
|
+
|
|
4489
|
+
type ErrInterceptor<Err, Res, Req, Options> = (error: Err, response: Res, request: Req, options: Options) => Err | Promise<Err>;
|
|
4490
|
+
type ReqInterceptor<Req, Options> = (request: Req, options: Options) => Req | Promise<Req>;
|
|
4491
|
+
type ResInterceptor<Res, Req, Options> = (response: Res, request: Req, options: Options) => Res | Promise<Res>;
|
|
4492
|
+
declare class Interceptors<Interceptor> {
|
|
4493
|
+
fns: Array<Interceptor | null>;
|
|
4494
|
+
clear(): void;
|
|
4495
|
+
eject(id: number | Interceptor): void;
|
|
4496
|
+
exists(id: number | Interceptor): boolean;
|
|
4497
|
+
getInterceptorIndex(id: number | Interceptor): number;
|
|
4498
|
+
update(id: number | Interceptor, fn: Interceptor): number | Interceptor | false;
|
|
4499
|
+
use(fn: Interceptor): number;
|
|
4500
|
+
}
|
|
4501
|
+
interface Middleware<Req, Res, Err, Options> {
|
|
4502
|
+
error: Interceptors<ErrInterceptor<Err, Res, Req, Options>>;
|
|
4503
|
+
request: Interceptors<ReqInterceptor<Req, Options>>;
|
|
4504
|
+
response: Interceptors<ResInterceptor<Res, Req, Options>>;
|
|
4505
|
+
}
|
|
4506
|
+
declare const createConfig: <T extends ClientOptions = ClientOptions>(override?: Config<Omit<ClientOptions, keyof T> & T>) => Config<Omit<ClientOptions, keyof T> & T>;
|
|
4507
|
+
|
|
4508
|
+
type ResponseStyle = "data" | "fields";
|
|
4509
|
+
interface Config<T extends ClientOptions = ClientOptions> extends Omit<RequestInit, "body" | "headers" | "method">, Config$1 {
|
|
4510
|
+
/**
|
|
4511
|
+
* Base URL for all requests made by this client.
|
|
4512
|
+
*/
|
|
4513
|
+
baseUrl?: T["baseUrl"];
|
|
4514
|
+
/**
|
|
4515
|
+
* Fetch API implementation. You can use this option to provide a custom
|
|
4516
|
+
* fetch instance.
|
|
4517
|
+
*
|
|
4518
|
+
* @default globalThis.fetch
|
|
4519
|
+
*/
|
|
4520
|
+
fetch?: typeof fetch;
|
|
4521
|
+
/**
|
|
4522
|
+
* Please don't use the Fetch client for Next.js applications. The `next`
|
|
4523
|
+
* options won't have any effect.
|
|
4524
|
+
*
|
|
4525
|
+
* Install {@link https://www.npmjs.com/package/@hey-api/client-next `@hey-api/client-next`} instead.
|
|
4526
|
+
*/
|
|
4527
|
+
next?: never;
|
|
4528
|
+
/**
|
|
4529
|
+
* Return the response data parsed in a specified format. By default, `auto`
|
|
4530
|
+
* will infer the appropriate method from the `Content-Type` response header.
|
|
4531
|
+
* You can override this behavior with any of the {@link Body} methods.
|
|
4532
|
+
* Select `stream` if you don't want to parse response data at all.
|
|
4533
|
+
*
|
|
4534
|
+
* @default 'auto'
|
|
4535
|
+
*/
|
|
4536
|
+
parseAs?: "arrayBuffer" | "auto" | "blob" | "formData" | "json" | "stream" | "text";
|
|
4537
|
+
/**
|
|
4538
|
+
* Should we return only data or multiple fields (data, error, response, etc.)?
|
|
4539
|
+
*
|
|
4540
|
+
* @default 'fields'
|
|
4541
|
+
*/
|
|
4542
|
+
responseStyle?: ResponseStyle;
|
|
4543
|
+
/**
|
|
4544
|
+
* Throw an error instead of returning it in the response?
|
|
4545
|
+
*
|
|
4546
|
+
* @default false
|
|
4547
|
+
*/
|
|
4548
|
+
throwOnError?: T["throwOnError"];
|
|
4549
|
+
}
|
|
4550
|
+
interface RequestOptions<TData = unknown, TResponseStyle extends ResponseStyle = "fields", ThrowOnError extends boolean = boolean, Url extends string = string> extends Config<{
|
|
4551
|
+
responseStyle: TResponseStyle;
|
|
4552
|
+
throwOnError: ThrowOnError;
|
|
4553
|
+
}>, Pick<ServerSentEventsOptions<TData>, "onSseError" | "onSseEvent" | "sseDefaultRetryDelay" | "sseMaxRetryAttempts" | "sseMaxRetryDelay"> {
|
|
4554
|
+
/**
|
|
4555
|
+
* Any body that you want to add to your request.
|
|
4556
|
+
*
|
|
4557
|
+
* {@link https://developer.mozilla.org/docs/Web/API/fetch#body}
|
|
4558
|
+
*/
|
|
4559
|
+
body?: unknown;
|
|
4560
|
+
path?: Record<string, unknown>;
|
|
4561
|
+
query?: Record<string, unknown>;
|
|
4562
|
+
/**
|
|
4563
|
+
* Security mechanism(s) to use for the request.
|
|
4564
|
+
*/
|
|
4565
|
+
security?: ReadonlyArray<Auth>;
|
|
4566
|
+
url: Url;
|
|
4567
|
+
}
|
|
4568
|
+
interface ResolvedRequestOptions<TResponseStyle extends ResponseStyle = "fields", ThrowOnError extends boolean = boolean, Url extends string = string> extends RequestOptions<unknown, TResponseStyle, ThrowOnError, Url> {
|
|
4569
|
+
serializedBody?: string;
|
|
4570
|
+
}
|
|
4571
|
+
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 : {
|
|
4572
|
+
data: TData extends Record<string, unknown> ? TData[keyof TData] : TData;
|
|
4573
|
+
request: Request;
|
|
4574
|
+
response: Response;
|
|
4575
|
+
}> : Promise<TResponseStyle extends "data" ? (TData extends Record<string, unknown> ? TData[keyof TData] : TData) | undefined : ({
|
|
4576
|
+
data: TData extends Record<string, unknown> ? TData[keyof TData] : TData;
|
|
4577
|
+
error: undefined;
|
|
4578
|
+
} | {
|
|
4579
|
+
data: undefined;
|
|
4580
|
+
error: TError extends Record<string, unknown> ? TError[keyof TError] : TError;
|
|
4581
|
+
}) & {
|
|
4582
|
+
request: Request;
|
|
4583
|
+
response: Response;
|
|
4584
|
+
}>;
|
|
4585
|
+
interface ClientOptions {
|
|
4586
|
+
baseUrl?: string;
|
|
4587
|
+
responseStyle?: ResponseStyle;
|
|
4588
|
+
throwOnError?: boolean;
|
|
4589
|
+
}
|
|
4590
|
+
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>;
|
|
4591
|
+
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>>;
|
|
4592
|
+
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>;
|
|
4593
|
+
type BuildUrlFn = <TData extends {
|
|
4594
|
+
body?: unknown;
|
|
4595
|
+
path?: Record<string, unknown>;
|
|
4596
|
+
query?: Record<string, unknown>;
|
|
4597
|
+
url: string;
|
|
4598
|
+
}>(options: TData & Options$1<TData>) => string;
|
|
4599
|
+
type Client = Client$1<RequestFn, Config, MethodFn, BuildUrlFn, SseFn> & {
|
|
4600
|
+
interceptors: Middleware<Request, Response, unknown, ResolvedRequestOptions>;
|
|
4601
|
+
};
|
|
4602
|
+
interface TDataShape {
|
|
4603
|
+
body?: unknown;
|
|
4604
|
+
headers?: unknown;
|
|
4605
|
+
path?: unknown;
|
|
4606
|
+
query?: unknown;
|
|
4607
|
+
url: string;
|
|
4608
|
+
}
|
|
4609
|
+
type OmitKeys<T, K> = Pick<T, Exclude<keyof T, K>>;
|
|
4610
|
+
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">);
|
|
4611
|
+
|
|
4612
|
+
declare const createClient: (config?: Config) => Client;
|
|
4613
|
+
|
|
4614
|
+
type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options$1<TData, ThrowOnError> & {
|
|
4615
|
+
/**
|
|
4616
|
+
* You can provide a client instance returned by `createClient()` instead of
|
|
4617
|
+
* individual options. This might be also useful if you want to implement a
|
|
4618
|
+
* custom client.
|
|
4619
|
+
*/
|
|
4620
|
+
client?: Client;
|
|
4621
|
+
/**
|
|
4622
|
+
* You can pass arbitrary values through the `meta` object. This can be
|
|
4623
|
+
* used to access values that aren't defined as part of the SDK function.
|
|
4624
|
+
*/
|
|
4625
|
+
meta?: Record<string, unknown>;
|
|
4626
|
+
};
|
|
4627
|
+
/**
|
|
4628
|
+
* Health check endpoint
|
|
4629
|
+
*
|
|
4630
|
+
* Checks the health of the API and database connection
|
|
4631
|
+
*/
|
|
4632
|
+
declare const healthEndpointHealthGet: <ThrowOnError extends boolean = false>(options?: Options<HealthEndpointHealthGetData, ThrowOnError>) => RequestResult<HealthEndpointHealthGetResponses, unknown, ThrowOnError, "fields">;
|
|
4633
|
+
/**
|
|
4634
|
+
* Get API version and feature flags
|
|
4635
|
+
*
|
|
4636
|
+
* Returns API version information and enabled feature flags. Use this to check which capabilities are available in this deployment.
|
|
4637
|
+
*/
|
|
4638
|
+
declare const getVersion: <ThrowOnError extends boolean = false>(options?: Options<GetVersionData, ThrowOnError>) => RequestResult<GetVersionResponses, unknown, ThrowOnError, "fields">;
|
|
4639
|
+
/**
|
|
4640
|
+
* Prometheus metrics endpoint
|
|
4641
|
+
*
|
|
4642
|
+
* Exports metrics in Prometheus format for scraping
|
|
4643
|
+
*/
|
|
4644
|
+
declare const metricsEndpointMetricsGet: <ThrowOnError extends boolean = false>(options?: Options<MetricsEndpointMetricsGetData, ThrowOnError>) => RequestResult<MetricsEndpointMetricsGetResponses, unknown, ThrowOnError, "fields">;
|
|
4645
|
+
/**
|
|
4646
|
+
* Get memory graph data
|
|
4647
|
+
*
|
|
4648
|
+
* Retrieve graph data for visualization, optionally filtered by type (world/experience/opinion).
|
|
4649
|
+
*/
|
|
4650
|
+
declare const getGraph: <ThrowOnError extends boolean = false>(options: Options<GetGraphData, ThrowOnError>) => RequestResult<GetGraphResponses, GetGraphErrors, ThrowOnError, "fields">;
|
|
4651
|
+
/**
|
|
4652
|
+
* List memory units
|
|
4653
|
+
*
|
|
4654
|
+
* 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).
|
|
4655
|
+
*/
|
|
4656
|
+
declare const listMemories: <ThrowOnError extends boolean = false>(options: Options<ListMemoriesData, ThrowOnError>) => RequestResult<ListMemoriesResponses, ListMemoriesErrors, ThrowOnError, "fields">;
|
|
4657
|
+
/**
|
|
4658
|
+
* Get memory unit
|
|
4659
|
+
*
|
|
4660
|
+
* 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.
|
|
4661
|
+
*/
|
|
4662
|
+
declare const getMemory: <ThrowOnError extends boolean = false>(options: Options<GetMemoryData, ThrowOnError>) => RequestResult<GetMemoryResponses, GetMemoryErrors, ThrowOnError, "fields">;
|
|
4663
|
+
/**
|
|
4664
|
+
* Get observation history
|
|
4665
|
+
*
|
|
4666
|
+
* Get the full history of an observation, with each change's source facts resolved to their text.
|
|
4667
|
+
*/
|
|
4668
|
+
declare const getObservationHistory: <ThrowOnError extends boolean = false>(options: Options<GetObservationHistoryData, ThrowOnError>) => RequestResult<GetObservationHistoryResponses, GetObservationHistoryErrors, ThrowOnError, "fields">;
|
|
4669
|
+
/**
|
|
4670
|
+
* Recall memory
|
|
4671
|
+
*
|
|
4672
|
+
* Recall memory using semantic similarity and spreading activation.
|
|
4673
|
+
*
|
|
4674
|
+
* The type parameter is optional and must be one of:
|
|
4675
|
+
* - `world`: General knowledge about people, places, events, and things that happen
|
|
4676
|
+
* - `experience`: Memories about experience, conversations, actions taken, and tasks performed
|
|
4677
|
+
*/
|
|
4678
|
+
declare const recallMemories: <ThrowOnError extends boolean = false>(options: Options<RecallMemoriesData, ThrowOnError>) => RequestResult<RecallMemoriesResponses, RecallMemoriesErrors, ThrowOnError, "fields">;
|
|
4679
|
+
/**
|
|
4680
|
+
* Reflect and generate answer
|
|
4681
|
+
*
|
|
4682
|
+
* Reflect and formulate an answer using bank identity, world facts, and opinions.
|
|
4683
|
+
*
|
|
4684
|
+
* This endpoint:
|
|
4685
|
+
* 1. Retrieves experience (conversations and events)
|
|
4686
|
+
* 2. Retrieves world facts relevant to the query
|
|
4687
|
+
* 3. Retrieves existing opinions (bank's perspectives)
|
|
4688
|
+
* 4. Uses LLM to formulate a contextual answer
|
|
4689
|
+
* 5. Returns plain text answer and the facts used
|
|
4690
|
+
*/
|
|
4691
|
+
declare const reflect: <ThrowOnError extends boolean = false>(options: Options<ReflectData, ThrowOnError>) => RequestResult<ReflectResponses, ReflectErrors, ThrowOnError, "fields">;
|
|
4692
|
+
/**
|
|
4693
|
+
* List all memory banks
|
|
4694
|
+
*
|
|
4695
|
+
* Get a list of all agents with their profiles
|
|
4696
|
+
*/
|
|
4697
|
+
declare const listBanks: <ThrowOnError extends boolean = false>(options?: Options<ListBanksData, ThrowOnError>) => RequestResult<ListBanksResponses, ListBanksErrors, ThrowOnError, "fields">;
|
|
4698
|
+
/**
|
|
4699
|
+
* Get statistics for memory bank
|
|
4700
|
+
*
|
|
4701
|
+
* Get statistics about nodes and links for a specific agent
|
|
4702
|
+
*/
|
|
4703
|
+
declare const getAgentStats: <ThrowOnError extends boolean = false>(options: Options<GetAgentStatsData, ThrowOnError>) => RequestResult<GetAgentStatsResponses, GetAgentStatsErrors, ThrowOnError, "fields">;
|
|
4704
|
+
/**
|
|
4705
|
+
* List entities
|
|
4706
|
+
*
|
|
4707
|
+
* List all entities (people, organizations, etc.) known by the bank, ordered by mention count. Supports pagination.
|
|
4708
|
+
*/
|
|
4709
|
+
declare const listEntities: <ThrowOnError extends boolean = false>(options: Options<ListEntitiesData, ThrowOnError>) => RequestResult<ListEntitiesResponses, ListEntitiesErrors, ThrowOnError, "fields">;
|
|
4710
|
+
/**
|
|
4711
|
+
* Get entity details
|
|
4712
|
+
*
|
|
4713
|
+
* Get detailed information about an entity including observations (mental model).
|
|
4714
|
+
*/
|
|
4715
|
+
declare const getEntity: <ThrowOnError extends boolean = false>(options: Options<GetEntityData, ThrowOnError>) => RequestResult<GetEntityResponses, GetEntityErrors, ThrowOnError, "fields">;
|
|
4716
|
+
/**
|
|
4717
|
+
* Regenerate entity observations (deprecated)
|
|
4718
|
+
*
|
|
4719
|
+
* This endpoint is deprecated. Entity observations have been replaced by mental models.
|
|
4720
|
+
*
|
|
4721
|
+
* @deprecated
|
|
4722
|
+
*/
|
|
4723
|
+
declare const regenerateEntityObservations: <ThrowOnError extends boolean = false>(options: Options<RegenerateEntityObservationsData, ThrowOnError>) => RequestResult<RegenerateEntityObservationsResponses, RegenerateEntityObservationsErrors, ThrowOnError, "fields">;
|
|
4724
|
+
/**
|
|
4725
|
+
* List mental models
|
|
4726
|
+
*
|
|
4727
|
+
* List user-curated living documents that stay current.
|
|
4728
|
+
*/
|
|
4729
|
+
declare const listMentalModels: <ThrowOnError extends boolean = false>(options: Options<ListMentalModelsData, ThrowOnError>) => RequestResult<ListMentalModelsResponses, ListMentalModelsErrors, ThrowOnError, "fields">;
|
|
4730
|
+
/**
|
|
4731
|
+
* Create mental model
|
|
4732
|
+
*
|
|
4733
|
+
* 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.
|
|
4734
|
+
*/
|
|
4735
|
+
declare const createMentalModel: <ThrowOnError extends boolean = false>(options: Options<CreateMentalModelData, ThrowOnError>) => RequestResult<CreateMentalModelResponses, CreateMentalModelErrors, ThrowOnError, "fields">;
|
|
4736
|
+
/**
|
|
4737
|
+
* Delete mental model
|
|
4738
|
+
*
|
|
4739
|
+
* Delete a mental model.
|
|
4740
|
+
*/
|
|
4741
|
+
declare const deleteMentalModel: <ThrowOnError extends boolean = false>(options: Options<DeleteMentalModelData, ThrowOnError>) => RequestResult<DeleteMentalModelResponses, DeleteMentalModelErrors, ThrowOnError, "fields">;
|
|
4742
|
+
/**
|
|
4743
|
+
* Get mental model
|
|
4744
|
+
*
|
|
4745
|
+
* Get a specific mental model by ID.
|
|
4746
|
+
*/
|
|
4747
|
+
declare const getMentalModel: <ThrowOnError extends boolean = false>(options: Options<GetMentalModelData, ThrowOnError>) => RequestResult<GetMentalModelResponses, GetMentalModelErrors, ThrowOnError, "fields">;
|
|
4748
|
+
/**
|
|
4749
|
+
* Update mental model
|
|
4750
|
+
*
|
|
4751
|
+
* Update a mental model's name and/or source query.
|
|
4752
|
+
*/
|
|
4753
|
+
declare const updateMentalModel: <ThrowOnError extends boolean = false>(options: Options<UpdateMentalModelData, ThrowOnError>) => RequestResult<UpdateMentalModelResponses, UpdateMentalModelErrors, ThrowOnError, "fields">;
|
|
4754
|
+
/**
|
|
4755
|
+
* Get mental model history
|
|
4756
|
+
*
|
|
4757
|
+
* Get the refresh history of a mental model, showing content changes over time.
|
|
4758
|
+
*/
|
|
4759
|
+
declare const getMentalModelHistory: <ThrowOnError extends boolean = false>(options: Options<GetMentalModelHistoryData, ThrowOnError>) => RequestResult<GetMentalModelHistoryResponses, GetMentalModelHistoryErrors, ThrowOnError, "fields">;
|
|
4760
|
+
/**
|
|
4761
|
+
* Refresh mental model
|
|
4762
|
+
*
|
|
4763
|
+
* Submit an async task to re-run the source query through reflect and update the content.
|
|
4764
|
+
*/
|
|
4765
|
+
declare const refreshMentalModel: <ThrowOnError extends boolean = false>(options: Options<RefreshMentalModelData, ThrowOnError>) => RequestResult<RefreshMentalModelResponses, RefreshMentalModelErrors, ThrowOnError, "fields">;
|
|
4766
|
+
/**
|
|
4767
|
+
* List directives
|
|
4768
|
+
*
|
|
4769
|
+
* List hard rules that are injected into prompts.
|
|
4770
|
+
*/
|
|
4771
|
+
declare const listDirectives: <ThrowOnError extends boolean = false>(options: Options<ListDirectivesData, ThrowOnError>) => RequestResult<ListDirectivesResponses, ListDirectivesErrors, ThrowOnError, "fields">;
|
|
4772
|
+
/**
|
|
4773
|
+
* Create directive
|
|
4774
|
+
*
|
|
4775
|
+
* Create a hard rule that will be injected into prompts.
|
|
4776
|
+
*/
|
|
4777
|
+
declare const createDirective: <ThrowOnError extends boolean = false>(options: Options<CreateDirectiveData, ThrowOnError>) => RequestResult<CreateDirectiveResponses, CreateDirectiveErrors, ThrowOnError, "fields">;
|
|
4778
|
+
/**
|
|
4779
|
+
* Delete directive
|
|
4780
|
+
*
|
|
4781
|
+
* Delete a directive.
|
|
4782
|
+
*/
|
|
4783
|
+
declare const deleteDirective: <ThrowOnError extends boolean = false>(options: Options<DeleteDirectiveData, ThrowOnError>) => RequestResult<DeleteDirectiveResponses, DeleteDirectiveErrors, ThrowOnError, "fields">;
|
|
4784
|
+
/**
|
|
4785
|
+
* Get directive
|
|
4786
|
+
*
|
|
4787
|
+
* Get a specific directive by ID.
|
|
4788
|
+
*/
|
|
4789
|
+
declare const getDirective: <ThrowOnError extends boolean = false>(options: Options<GetDirectiveData, ThrowOnError>) => RequestResult<GetDirectiveResponses, GetDirectiveErrors, ThrowOnError, "fields">;
|
|
4790
|
+
/**
|
|
4791
|
+
* Update directive
|
|
4792
|
+
*
|
|
4793
|
+
* Update a directive's properties.
|
|
4794
|
+
*/
|
|
4795
|
+
declare const updateDirective: <ThrowOnError extends boolean = false>(options: Options<UpdateDirectiveData, ThrowOnError>) => RequestResult<UpdateDirectiveResponses, UpdateDirectiveErrors, ThrowOnError, "fields">;
|
|
4796
|
+
/**
|
|
4797
|
+
* List documents
|
|
4798
|
+
*
|
|
4799
|
+
* List documents with pagination and optional search. Documents are the source content from which memory units are extracted.
|
|
4800
|
+
*/
|
|
4801
|
+
declare const listDocuments: <ThrowOnError extends boolean = false>(options: Options<ListDocumentsData, ThrowOnError>) => RequestResult<ListDocumentsResponses, ListDocumentsErrors, ThrowOnError, "fields">;
|
|
4802
|
+
/**
|
|
4803
|
+
* Delete a document
|
|
4804
|
+
*
|
|
4805
|
+
* Delete a document and all its associated memory units and links.
|
|
4806
|
+
*
|
|
4807
|
+
* This will cascade delete:
|
|
4808
|
+
* - The document itself
|
|
4809
|
+
* - All memory units extracted from this document
|
|
4810
|
+
* - All links (temporal, semantic, entity) associated with those memory units
|
|
4811
|
+
*
|
|
4812
|
+
* This operation cannot be undone.
|
|
4813
|
+
*/
|
|
4814
|
+
declare const deleteDocument: <ThrowOnError extends boolean = false>(options: Options<DeleteDocumentData, ThrowOnError>) => RequestResult<DeleteDocumentResponses, DeleteDocumentErrors, ThrowOnError, "fields">;
|
|
4815
|
+
/**
|
|
4816
|
+
* Get document details
|
|
4817
|
+
*
|
|
4818
|
+
* Get a specific document including its original text
|
|
4819
|
+
*/
|
|
4820
|
+
declare const getDocument: <ThrowOnError extends boolean = false>(options: Options<GetDocumentData, ThrowOnError>) => RequestResult<GetDocumentResponses, GetDocumentErrors, ThrowOnError, "fields">;
|
|
4821
|
+
/**
|
|
4822
|
+
* Update document
|
|
4823
|
+
*
|
|
4824
|
+
* Update mutable fields on a document without re-processing its content.
|
|
4825
|
+
*
|
|
4826
|
+
* **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.
|
|
4827
|
+
*
|
|
4828
|
+
* At least one field must be provided.
|
|
4829
|
+
*/
|
|
4830
|
+
declare const updateDocument: <ThrowOnError extends boolean = false>(options: Options<UpdateDocumentData, ThrowOnError>) => RequestResult<UpdateDocumentResponses, UpdateDocumentErrors, ThrowOnError, "fields">;
|
|
4831
|
+
/**
|
|
4832
|
+
* List tags
|
|
4833
|
+
*
|
|
4834
|
+
* List all unique tags in a memory bank with usage counts. Supports wildcard search using '*' (e.g., 'user:*', '*-fred', 'tag*-2'). Case-insensitive.
|
|
4835
|
+
*/
|
|
4836
|
+
declare const listTags: <ThrowOnError extends boolean = false>(options: Options<ListTagsData, ThrowOnError>) => RequestResult<ListTagsResponses, ListTagsErrors, ThrowOnError, "fields">;
|
|
4837
|
+
/**
|
|
4838
|
+
* Get chunk details
|
|
4839
|
+
*
|
|
4840
|
+
* Get a specific chunk by its ID
|
|
4841
|
+
*/
|
|
4842
|
+
declare const getChunk: <ThrowOnError extends boolean = false>(options: Options<GetChunkData, ThrowOnError>) => RequestResult<GetChunkResponses, GetChunkErrors, ThrowOnError, "fields">;
|
|
4843
|
+
/**
|
|
4844
|
+
* List async operations
|
|
4845
|
+
*
|
|
4846
|
+
* 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.
|
|
4847
|
+
*/
|
|
4848
|
+
declare const listOperations: <ThrowOnError extends boolean = false>(options: Options<ListOperationsData, ThrowOnError>) => RequestResult<ListOperationsResponses, ListOperationsErrors, ThrowOnError, "fields">;
|
|
4849
|
+
/**
|
|
4850
|
+
* Cancel a pending async operation
|
|
4851
|
+
*
|
|
4852
|
+
* Cancel a pending async operation by removing it from the queue
|
|
4853
|
+
*/
|
|
4854
|
+
declare const cancelOperation: <ThrowOnError extends boolean = false>(options: Options<CancelOperationData, ThrowOnError>) => RequestResult<CancelOperationResponses, CancelOperationErrors, ThrowOnError, "fields">;
|
|
4855
|
+
/**
|
|
4856
|
+
* Get operation status
|
|
4857
|
+
*
|
|
4858
|
+
* 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.
|
|
4859
|
+
*/
|
|
4860
|
+
declare const getOperationStatus: <ThrowOnError extends boolean = false>(options: Options<GetOperationStatusData, ThrowOnError>) => RequestResult<GetOperationStatusResponses, GetOperationStatusErrors, ThrowOnError, "fields">;
|
|
4861
|
+
/**
|
|
4862
|
+
* Retry a failed async operation
|
|
4863
|
+
*
|
|
4864
|
+
* Re-queue a failed async operation so the worker picks it up again
|
|
4865
|
+
*/
|
|
4866
|
+
declare const retryOperation: <ThrowOnError extends boolean = false>(options: Options<RetryOperationData, ThrowOnError>) => RequestResult<RetryOperationResponses, RetryOperationErrors, ThrowOnError, "fields">;
|
|
4867
|
+
/**
|
|
4868
|
+
* Get memory bank profile
|
|
4869
|
+
*
|
|
4870
|
+
* Get disposition traits and mission for a memory bank. Auto-creates agent with defaults if not exists.
|
|
4871
|
+
*
|
|
4872
|
+
* @deprecated
|
|
4873
|
+
*/
|
|
4874
|
+
declare const getBankProfile: <ThrowOnError extends boolean = false>(options: Options<GetBankProfileData, ThrowOnError>) => RequestResult<GetBankProfileResponses, GetBankProfileErrors, ThrowOnError, "fields">;
|
|
4875
|
+
/**
|
|
4876
|
+
* Update memory bank disposition
|
|
4877
|
+
*
|
|
4878
|
+
* Update bank's disposition traits (skepticism, literalism, empathy)
|
|
4879
|
+
*
|
|
4880
|
+
* @deprecated
|
|
4881
|
+
*/
|
|
4882
|
+
declare const updateBankDisposition: <ThrowOnError extends boolean = false>(options: Options<UpdateBankDispositionData, ThrowOnError>) => RequestResult<UpdateBankDispositionResponses, UpdateBankDispositionErrors, ThrowOnError, "fields">;
|
|
4883
|
+
/**
|
|
4884
|
+
* Add/merge memory bank background (deprecated)
|
|
4885
|
+
*
|
|
4886
|
+
* Deprecated: Use PUT /mission instead. This endpoint now updates the mission field.
|
|
4887
|
+
*
|
|
4888
|
+
* @deprecated
|
|
4889
|
+
*/
|
|
4890
|
+
declare const addBankBackground: <ThrowOnError extends boolean = false>(options: Options<AddBankBackgroundData, ThrowOnError>) => RequestResult<AddBankBackgroundResponses, AddBankBackgroundErrors, ThrowOnError, "fields">;
|
|
4891
|
+
/**
|
|
4892
|
+
* Delete memory bank
|
|
4893
|
+
*
|
|
4894
|
+
* Delete an entire memory bank including all memories, entities, documents, and the bank profile itself. This is a destructive operation that cannot be undone.
|
|
4895
|
+
*/
|
|
4896
|
+
declare const deleteBank: <ThrowOnError extends boolean = false>(options: Options<DeleteBankData, ThrowOnError>) => RequestResult<DeleteBankResponses, DeleteBankErrors, ThrowOnError, "fields">;
|
|
4897
|
+
/**
|
|
4898
|
+
* Partial update memory bank
|
|
4899
|
+
*
|
|
4900
|
+
* Partially update an agent's profile. Only provided fields will be updated.
|
|
4901
|
+
*/
|
|
4902
|
+
declare const updateBank: <ThrowOnError extends boolean = false>(options: Options<UpdateBankData, ThrowOnError>) => RequestResult<UpdateBankResponses, UpdateBankErrors, ThrowOnError, "fields">;
|
|
4903
|
+
/**
|
|
4904
|
+
* Create or update memory bank
|
|
4905
|
+
*
|
|
4906
|
+
* Create a new agent or update existing agent with disposition and mission. Auto-fills missing fields with defaults.
|
|
4907
|
+
*/
|
|
4908
|
+
declare const createOrUpdateBank: <ThrowOnError extends boolean = false>(options: Options<CreateOrUpdateBankData, ThrowOnError>) => RequestResult<CreateOrUpdateBankResponses, CreateOrUpdateBankErrors, ThrowOnError, "fields">;
|
|
4909
|
+
/**
|
|
4910
|
+
* Clear all observations
|
|
4911
|
+
*
|
|
4912
|
+
* Delete all observations for a memory bank. This is useful for resetting the consolidated knowledge.
|
|
4913
|
+
*/
|
|
4914
|
+
declare const clearObservations: <ThrowOnError extends boolean = false>(options: Options<ClearObservationsData, ThrowOnError>) => RequestResult<ClearObservationsResponses, ClearObservationsErrors, ThrowOnError, "fields">;
|
|
4915
|
+
/**
|
|
4916
|
+
* Recover failed consolidation
|
|
4917
|
+
*
|
|
4918
|
+
* 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.
|
|
4919
|
+
*/
|
|
4920
|
+
declare const recoverConsolidation: <ThrowOnError extends boolean = false>(options: Options<RecoverConsolidationData, ThrowOnError>) => RequestResult<RecoverConsolidationResponses, RecoverConsolidationErrors, ThrowOnError, "fields">;
|
|
4921
|
+
/**
|
|
4922
|
+
* Clear observations for a memory
|
|
4923
|
+
*
|
|
4924
|
+
* 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.
|
|
4925
|
+
*/
|
|
4926
|
+
declare const clearMemoryObservations: <ThrowOnError extends boolean = false>(options: Options<ClearMemoryObservationsData, ThrowOnError>) => RequestResult<ClearMemoryObservationsResponses, ClearMemoryObservationsErrors, ThrowOnError, "fields">;
|
|
4927
|
+
/**
|
|
4928
|
+
* Reset bank configuration
|
|
4929
|
+
*
|
|
4930
|
+
* Reset bank configuration to defaults by removing all bank-specific overrides. The bank will then use global and tenant-level configuration only.
|
|
4931
|
+
*/
|
|
4932
|
+
declare const resetBankConfig: <ThrowOnError extends boolean = false>(options: Options<ResetBankConfigData, ThrowOnError>) => RequestResult<ResetBankConfigResponses, ResetBankConfigErrors, ThrowOnError, "fields">;
|
|
4933
|
+
/**
|
|
4934
|
+
* Get bank configuration
|
|
4935
|
+
*
|
|
4936
|
+
* 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.
|
|
4937
|
+
*/
|
|
4938
|
+
declare const getBankConfig: <ThrowOnError extends boolean = false>(options: Options<GetBankConfigData, ThrowOnError>) => RequestResult<GetBankConfigResponses, GetBankConfigErrors, ThrowOnError, "fields">;
|
|
4939
|
+
/**
|
|
4940
|
+
* Update bank configuration
|
|
4941
|
+
*
|
|
4942
|
+
* 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).
|
|
4943
|
+
*/
|
|
4944
|
+
declare const updateBankConfig: <ThrowOnError extends boolean = false>(options: Options<UpdateBankConfigData, ThrowOnError>) => RequestResult<UpdateBankConfigResponses, UpdateBankConfigErrors, ThrowOnError, "fields">;
|
|
4945
|
+
/**
|
|
4946
|
+
* Trigger consolidation
|
|
4947
|
+
*
|
|
4948
|
+
* Run memory consolidation to create/update observations from recent memories.
|
|
4949
|
+
*/
|
|
4950
|
+
declare const triggerConsolidation: <ThrowOnError extends boolean = false>(options: Options<TriggerConsolidationData, ThrowOnError>) => RequestResult<TriggerConsolidationResponses, TriggerConsolidationErrors, ThrowOnError, "fields">;
|
|
4951
|
+
/**
|
|
4952
|
+
* List webhooks
|
|
4953
|
+
*
|
|
4954
|
+
* List all webhooks registered for a bank.
|
|
4955
|
+
*/
|
|
4956
|
+
declare const listWebhooks: <ThrowOnError extends boolean = false>(options: Options<ListWebhooksData, ThrowOnError>) => RequestResult<ListWebhooksResponses, ListWebhooksErrors, ThrowOnError, "fields">;
|
|
4957
|
+
/**
|
|
4958
|
+
* Register webhook
|
|
4959
|
+
*
|
|
4960
|
+
* Register a webhook endpoint to receive event notifications for this bank.
|
|
4961
|
+
*/
|
|
4962
|
+
declare const createWebhook: <ThrowOnError extends boolean = false>(options: Options<CreateWebhookData, ThrowOnError>) => RequestResult<CreateWebhookResponses, CreateWebhookErrors, ThrowOnError, "fields">;
|
|
4963
|
+
/**
|
|
4964
|
+
* Delete webhook
|
|
4965
|
+
*
|
|
4966
|
+
* Remove a registered webhook.
|
|
4967
|
+
*/
|
|
4968
|
+
declare const deleteWebhook: <ThrowOnError extends boolean = false>(options: Options<DeleteWebhookData, ThrowOnError>) => RequestResult<DeleteWebhookResponses, DeleteWebhookErrors, ThrowOnError, "fields">;
|
|
4969
|
+
/**
|
|
4970
|
+
* Update webhook
|
|
4971
|
+
*
|
|
4972
|
+
* Update one or more fields of a registered webhook. Only provided fields are changed.
|
|
4973
|
+
*/
|
|
4974
|
+
declare const updateWebhook: <ThrowOnError extends boolean = false>(options: Options<UpdateWebhookData, ThrowOnError>) => RequestResult<UpdateWebhookResponses, UpdateWebhookErrors, ThrowOnError, "fields">;
|
|
4975
|
+
/**
|
|
4976
|
+
* List webhook deliveries
|
|
4977
|
+
*
|
|
4978
|
+
* Inspect delivery history for a webhook (useful for debugging).
|
|
4979
|
+
*/
|
|
4980
|
+
declare const listWebhookDeliveries: <ThrowOnError extends boolean = false>(options: Options<ListWebhookDeliveriesData, ThrowOnError>) => RequestResult<ListWebhookDeliveriesResponses, ListWebhookDeliveriesErrors, ThrowOnError, "fields">;
|
|
4981
|
+
/**
|
|
4982
|
+
* Clear memory bank memories
|
|
4983
|
+
*
|
|
4984
|
+
* 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.
|
|
4985
|
+
*/
|
|
4986
|
+
declare const clearBankMemories: <ThrowOnError extends boolean = false>(options: Options<ClearBankMemoriesData, ThrowOnError>) => RequestResult<ClearBankMemoriesResponses, ClearBankMemoriesErrors, ThrowOnError, "fields">;
|
|
4987
|
+
/**
|
|
4988
|
+
* Retain memories
|
|
4989
|
+
*
|
|
4990
|
+
* Retain memory items with automatic fact extraction.
|
|
4991
|
+
*
|
|
4992
|
+
* This is the main endpoint for storing memories. It supports both synchronous and asynchronous processing via the `async` parameter.
|
|
4993
|
+
*
|
|
4994
|
+
* **Features:**
|
|
4995
|
+
* - Efficient batch processing
|
|
4996
|
+
* - Automatic fact extraction from natural language
|
|
4997
|
+
* - Entity recognition and linking
|
|
4998
|
+
* - Document tracking with automatic upsert (when document_id is provided)
|
|
4999
|
+
* - Temporal and semantic linking
|
|
5000
|
+
* - Optional asynchronous processing
|
|
5001
|
+
*
|
|
5002
|
+
* **The system automatically:**
|
|
5003
|
+
* 1. Extracts semantic facts from the content
|
|
5004
|
+
* 2. Generates embeddings
|
|
5005
|
+
* 3. Deduplicates similar facts
|
|
5006
|
+
* 4. Creates temporal, semantic, and entity links
|
|
5007
|
+
* 5. Tracks document metadata
|
|
5008
|
+
*
|
|
5009
|
+
* **When `async=true`:** Returns immediately after queuing. Use the operations endpoint to monitor progress.
|
|
5010
|
+
*
|
|
5011
|
+
* **When `async=false` (default):** Waits for processing to complete.
|
|
5012
|
+
*
|
|
5013
|
+
* **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).
|
|
5014
|
+
*/
|
|
5015
|
+
declare const retainMemories: <ThrowOnError extends boolean = false>(options: Options<RetainMemoriesData, ThrowOnError>) => RequestResult<RetainMemoriesResponses, RetainMemoriesErrors, ThrowOnError, "fields">;
|
|
5016
|
+
/**
|
|
5017
|
+
* Convert files to memories
|
|
5018
|
+
*
|
|
5019
|
+
* Upload files (PDF, DOCX, etc.), convert them to markdown, and retain as memories.
|
|
5020
|
+
*
|
|
5021
|
+
* This endpoint handles file upload, conversion, and memory creation in a single operation.
|
|
5022
|
+
*
|
|
5023
|
+
* **Features:**
|
|
5024
|
+
* - Supports PDF, DOCX, PPTX, XLSX, images (with OCR), audio (with transcription)
|
|
5025
|
+
* - Automatic file-to-markdown conversion using pluggable parsers
|
|
5026
|
+
* - Files stored in object storage (PostgreSQL by default, S3 for production)
|
|
5027
|
+
* - Each file becomes a separate document with optional metadata/tags
|
|
5028
|
+
* - Always processes asynchronously — returns operation IDs immediately
|
|
5029
|
+
*
|
|
5030
|
+
* **The system automatically:**
|
|
5031
|
+
* 1. Stores uploaded files in object storage
|
|
5032
|
+
* 2. Converts files to markdown
|
|
5033
|
+
* 3. Creates document records with file metadata
|
|
5034
|
+
* 4. Extracts facts and creates memory units (same as regular retain)
|
|
5035
|
+
*
|
|
5036
|
+
* Use the operations endpoint to monitor progress.
|
|
5037
|
+
*
|
|
5038
|
+
* **Request format:** multipart/form-data with:
|
|
5039
|
+
* - `files`: One or more files to upload
|
|
5040
|
+
* - `request`: JSON string with FileRetainRequest model
|
|
5041
|
+
*
|
|
5042
|
+
* **Parser selection:**
|
|
5043
|
+
* - Set `parser` in the request body to override the server default for all files.
|
|
5044
|
+
* - Set `parser` inside a `files_metadata` entry for per-file control.
|
|
5045
|
+
* - Pass a list (e.g. `['iris', 'markitdown']`) to define an ordered fallback chain — each parser is tried in sequence until one succeeds.
|
|
5046
|
+
* - Falls back to the server default (`HINDSIGHT_API_FILE_PARSER`) if not specified.
|
|
5047
|
+
* - Only parsers enabled on the server may be requested; others return HTTP 400.
|
|
5048
|
+
*/
|
|
5049
|
+
declare const fileRetain: <ThrowOnError extends boolean = false>(options: Options<FileRetainData, ThrowOnError>) => RequestResult<FileRetainResponses, FileRetainErrors, ThrowOnError, "fields">;
|
|
5050
|
+
|
|
5051
|
+
type sdk_gen_Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options<TData, ThrowOnError>;
|
|
5052
|
+
declare const sdk_gen_addBankBackground: typeof addBankBackground;
|
|
5053
|
+
declare const sdk_gen_cancelOperation: typeof cancelOperation;
|
|
5054
|
+
declare const sdk_gen_clearBankMemories: typeof clearBankMemories;
|
|
5055
|
+
declare const sdk_gen_clearMemoryObservations: typeof clearMemoryObservations;
|
|
5056
|
+
declare const sdk_gen_clearObservations: typeof clearObservations;
|
|
5057
|
+
declare const sdk_gen_createDirective: typeof createDirective;
|
|
5058
|
+
declare const sdk_gen_createMentalModel: typeof createMentalModel;
|
|
5059
|
+
declare const sdk_gen_createOrUpdateBank: typeof createOrUpdateBank;
|
|
5060
|
+
declare const sdk_gen_createWebhook: typeof createWebhook;
|
|
5061
|
+
declare const sdk_gen_deleteBank: typeof deleteBank;
|
|
5062
|
+
declare const sdk_gen_deleteDirective: typeof deleteDirective;
|
|
5063
|
+
declare const sdk_gen_deleteDocument: typeof deleteDocument;
|
|
5064
|
+
declare const sdk_gen_deleteMentalModel: typeof deleteMentalModel;
|
|
5065
|
+
declare const sdk_gen_deleteWebhook: typeof deleteWebhook;
|
|
5066
|
+
declare const sdk_gen_fileRetain: typeof fileRetain;
|
|
5067
|
+
declare const sdk_gen_getAgentStats: typeof getAgentStats;
|
|
5068
|
+
declare const sdk_gen_getBankConfig: typeof getBankConfig;
|
|
5069
|
+
declare const sdk_gen_getBankProfile: typeof getBankProfile;
|
|
5070
|
+
declare const sdk_gen_getChunk: typeof getChunk;
|
|
5071
|
+
declare const sdk_gen_getDirective: typeof getDirective;
|
|
5072
|
+
declare const sdk_gen_getDocument: typeof getDocument;
|
|
5073
|
+
declare const sdk_gen_getEntity: typeof getEntity;
|
|
5074
|
+
declare const sdk_gen_getGraph: typeof getGraph;
|
|
5075
|
+
declare const sdk_gen_getMemory: typeof getMemory;
|
|
5076
|
+
declare const sdk_gen_getMentalModel: typeof getMentalModel;
|
|
5077
|
+
declare const sdk_gen_getMentalModelHistory: typeof getMentalModelHistory;
|
|
5078
|
+
declare const sdk_gen_getObservationHistory: typeof getObservationHistory;
|
|
5079
|
+
declare const sdk_gen_getOperationStatus: typeof getOperationStatus;
|
|
5080
|
+
declare const sdk_gen_getVersion: typeof getVersion;
|
|
5081
|
+
declare const sdk_gen_healthEndpointHealthGet: typeof healthEndpointHealthGet;
|
|
5082
|
+
declare const sdk_gen_listBanks: typeof listBanks;
|
|
5083
|
+
declare const sdk_gen_listDirectives: typeof listDirectives;
|
|
5084
|
+
declare const sdk_gen_listDocuments: typeof listDocuments;
|
|
5085
|
+
declare const sdk_gen_listEntities: typeof listEntities;
|
|
5086
|
+
declare const sdk_gen_listMemories: typeof listMemories;
|
|
5087
|
+
declare const sdk_gen_listMentalModels: typeof listMentalModels;
|
|
5088
|
+
declare const sdk_gen_listOperations: typeof listOperations;
|
|
5089
|
+
declare const sdk_gen_listTags: typeof listTags;
|
|
5090
|
+
declare const sdk_gen_listWebhookDeliveries: typeof listWebhookDeliveries;
|
|
5091
|
+
declare const sdk_gen_listWebhooks: typeof listWebhooks;
|
|
5092
|
+
declare const sdk_gen_metricsEndpointMetricsGet: typeof metricsEndpointMetricsGet;
|
|
5093
|
+
declare const sdk_gen_recallMemories: typeof recallMemories;
|
|
5094
|
+
declare const sdk_gen_recoverConsolidation: typeof recoverConsolidation;
|
|
5095
|
+
declare const sdk_gen_reflect: typeof reflect;
|
|
5096
|
+
declare const sdk_gen_refreshMentalModel: typeof refreshMentalModel;
|
|
5097
|
+
declare const sdk_gen_regenerateEntityObservations: typeof regenerateEntityObservations;
|
|
5098
|
+
declare const sdk_gen_resetBankConfig: typeof resetBankConfig;
|
|
5099
|
+
declare const sdk_gen_retainMemories: typeof retainMemories;
|
|
5100
|
+
declare const sdk_gen_retryOperation: typeof retryOperation;
|
|
5101
|
+
declare const sdk_gen_triggerConsolidation: typeof triggerConsolidation;
|
|
5102
|
+
declare const sdk_gen_updateBank: typeof updateBank;
|
|
5103
|
+
declare const sdk_gen_updateBankConfig: typeof updateBankConfig;
|
|
5104
|
+
declare const sdk_gen_updateBankDisposition: typeof updateBankDisposition;
|
|
5105
|
+
declare const sdk_gen_updateDirective: typeof updateDirective;
|
|
5106
|
+
declare const sdk_gen_updateDocument: typeof updateDocument;
|
|
5107
|
+
declare const sdk_gen_updateMentalModel: typeof updateMentalModel;
|
|
5108
|
+
declare const sdk_gen_updateWebhook: typeof updateWebhook;
|
|
5109
|
+
declare namespace sdk_gen {
|
|
5110
|
+
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 };
|
|
5111
|
+
}
|
|
5112
|
+
|
|
5113
|
+
/**
|
|
5114
|
+
* Hindsight Client - Clean, TypeScript SDK for the Hindsight API.
|
|
5115
|
+
*
|
|
5116
|
+
* Example:
|
|
5117
|
+
* ```typescript
|
|
5118
|
+
* import { HindsightClient } from '@vectorize-io/hindsight-client';
|
|
5119
|
+
*
|
|
5120
|
+
* // Without authentication
|
|
5121
|
+
* const client = new HindsightClient({ baseUrl: 'http://localhost:8888' });
|
|
5122
|
+
*
|
|
5123
|
+
* // With API key authentication
|
|
5124
|
+
* const client = new HindsightClient({
|
|
5125
|
+
* baseUrl: 'http://localhost:8888',
|
|
5126
|
+
* apiKey: 'your-api-key'
|
|
5127
|
+
* });
|
|
5128
|
+
*
|
|
5129
|
+
* // Retain a memory
|
|
5130
|
+
* await client.retain('alice', 'Alice loves AI');
|
|
5131
|
+
*
|
|
5132
|
+
* // Recall memories
|
|
5133
|
+
* const results = await client.recall('alice', 'What does Alice like?');
|
|
5134
|
+
*
|
|
5135
|
+
* // Generate contextual answer
|
|
5136
|
+
* const answer = await client.reflect('alice', 'What are my interests?');
|
|
5137
|
+
* ```
|
|
5138
|
+
*/
|
|
5139
|
+
|
|
5140
|
+
interface HindsightClientOptions {
|
|
5141
|
+
baseUrl: string;
|
|
5142
|
+
/**
|
|
5143
|
+
* Optional API key for authentication (sent as Bearer token in Authorization header)
|
|
5144
|
+
*/
|
|
5145
|
+
apiKey?: string;
|
|
5146
|
+
}
|
|
5147
|
+
/**
|
|
5148
|
+
* Error thrown by the Hindsight client when an API request fails.
|
|
5149
|
+
* Includes the HTTP status code and error details from the API.
|
|
5150
|
+
*/
|
|
5151
|
+
declare class HindsightError extends Error {
|
|
5152
|
+
statusCode?: number;
|
|
5153
|
+
details?: unknown;
|
|
5154
|
+
constructor(message: string, statusCode?: number, details?: unknown);
|
|
5155
|
+
}
|
|
5156
|
+
interface EntityInput {
|
|
5157
|
+
text: string;
|
|
5158
|
+
type?: string;
|
|
5159
|
+
}
|
|
5160
|
+
interface MemoryItemInput {
|
|
5161
|
+
content: string;
|
|
5162
|
+
timestamp?: string | Date;
|
|
5163
|
+
context?: string;
|
|
5164
|
+
metadata?: Record<string, string>;
|
|
5165
|
+
document_id?: string;
|
|
5166
|
+
entities?: EntityInput[];
|
|
5167
|
+
tags?: string[];
|
|
5168
|
+
observation_scopes?: "per_tag" | "combined" | "all_combinations" | string[][];
|
|
5169
|
+
strategy?: string;
|
|
5170
|
+
}
|
|
5171
|
+
declare class HindsightClient {
|
|
5172
|
+
private client;
|
|
5173
|
+
constructor(options: HindsightClientOptions);
|
|
5174
|
+
/**
|
|
5175
|
+
* Validates the API response and throws an error if the request failed.
|
|
5176
|
+
*/
|
|
5177
|
+
private validateResponse;
|
|
5178
|
+
/**
|
|
5179
|
+
* Retain a single memory for a bank.
|
|
5180
|
+
*/
|
|
5181
|
+
retain(bankId: string, content: string, options?: {
|
|
5182
|
+
timestamp?: Date | string;
|
|
5183
|
+
context?: string;
|
|
5184
|
+
metadata?: Record<string, string>;
|
|
5185
|
+
documentId?: string;
|
|
5186
|
+
async?: boolean;
|
|
5187
|
+
entities?: EntityInput[];
|
|
5188
|
+
/** Optional list of tags for this memory */
|
|
5189
|
+
tags?: string[];
|
|
5190
|
+
}): Promise<RetainResponse>;
|
|
5191
|
+
/**
|
|
5192
|
+
* Retain multiple memories in batch.
|
|
5193
|
+
*/
|
|
5194
|
+
retainBatch(bankId: string, items: MemoryItemInput[], options?: {
|
|
5195
|
+
documentId?: string;
|
|
5196
|
+
documentTags?: string[];
|
|
5197
|
+
async?: boolean;
|
|
5198
|
+
}): Promise<RetainResponse>;
|
|
5199
|
+
/**
|
|
5200
|
+
* Upload files and retain their contents as memories.
|
|
5201
|
+
*
|
|
5202
|
+
* Files are automatically converted to text (PDF, DOCX, images via OCR, audio via
|
|
5203
|
+
* transcription, and more) and ingested as memories. Processing is always asynchronous —
|
|
5204
|
+
* use the returned operation IDs to track progress via the operations endpoint.
|
|
5205
|
+
*
|
|
5206
|
+
* @param bankId - The memory bank ID
|
|
5207
|
+
* @param files - Array of File or Blob objects to upload
|
|
5208
|
+
* @param options - Optional settings: context, documentTags, filesMetadata
|
|
5209
|
+
*/
|
|
5210
|
+
retainFiles(bankId: string, files: Array<File | Blob>, options?: {
|
|
5211
|
+
context?: string;
|
|
5212
|
+
filesMetadata?: Array<{
|
|
5213
|
+
context?: string;
|
|
5214
|
+
document_id?: string;
|
|
5215
|
+
tags?: string[];
|
|
5216
|
+
metadata?: Record<string, string>;
|
|
5217
|
+
}>;
|
|
5218
|
+
}): Promise<FileRetainResponse>;
|
|
5219
|
+
/**
|
|
5220
|
+
* Recall memories with a natural language query.
|
|
5221
|
+
*/
|
|
5222
|
+
recall(bankId: string, query: string, options?: {
|
|
5223
|
+
types?: string[];
|
|
5224
|
+
maxTokens?: number;
|
|
5225
|
+
budget?: Budget;
|
|
5226
|
+
trace?: boolean;
|
|
5227
|
+
queryTimestamp?: string;
|
|
5228
|
+
includeEntities?: boolean;
|
|
5229
|
+
maxEntityTokens?: number;
|
|
5230
|
+
includeChunks?: boolean;
|
|
5231
|
+
maxChunkTokens?: number;
|
|
5232
|
+
/** Include source facts for observation-type results */
|
|
5233
|
+
includeSourceFacts?: boolean;
|
|
5234
|
+
/** Maximum tokens for source facts (default: 4096) */
|
|
5235
|
+
maxSourceFactsTokens?: number;
|
|
5236
|
+
/** Optional list of tags to filter memories by */
|
|
5237
|
+
tags?: string[];
|
|
5238
|
+
/** How to match tags: 'any' (OR, includes untagged), 'all' (AND, includes untagged), 'any_strict' (OR, excludes untagged), 'all_strict' (AND, excludes untagged). Default: 'any' */
|
|
5239
|
+
tagsMatch?: 'any' | 'all' | 'any_strict' | 'all_strict';
|
|
5240
|
+
}): Promise<RecallResponse>;
|
|
5241
|
+
/**
|
|
5242
|
+
* Reflect and generate a contextual answer using the bank's identity and memories.
|
|
5243
|
+
*/
|
|
5244
|
+
reflect(bankId: string, query: string, options?: {
|
|
5245
|
+
context?: string;
|
|
5246
|
+
budget?: Budget;
|
|
5247
|
+
/** Optional list of tags to filter memories by */
|
|
5248
|
+
tags?: string[];
|
|
5249
|
+
/** How to match tags: 'any' (OR, includes untagged), 'all' (AND, includes untagged), 'any_strict' (OR, excludes untagged), 'all_strict' (AND, excludes untagged). Default: 'any' */
|
|
5250
|
+
tagsMatch?: 'any' | 'all' | 'any_strict' | 'all_strict';
|
|
5251
|
+
}): Promise<ReflectResponse>;
|
|
5252
|
+
/**
|
|
5253
|
+
* List memories with pagination.
|
|
5254
|
+
*/
|
|
5255
|
+
listMemories(bankId: string, options?: {
|
|
5256
|
+
limit?: number;
|
|
5257
|
+
offset?: number;
|
|
5258
|
+
type?: string;
|
|
5259
|
+
q?: string;
|
|
5260
|
+
}): Promise<ListMemoryUnitsResponse>;
|
|
5261
|
+
/**
|
|
5262
|
+
* Create or update a bank with disposition, missions, and operational configuration.
|
|
5263
|
+
*/
|
|
5264
|
+
createBank(bankId: string, options?: {
|
|
5265
|
+
/** @deprecated Display label only. */
|
|
5266
|
+
name?: string;
|
|
5267
|
+
/** @deprecated Use reflectMission instead. */
|
|
5268
|
+
mission?: string;
|
|
5269
|
+
/** Mission/context for Reflect operations. */
|
|
5270
|
+
reflectMission?: string;
|
|
5271
|
+
/** @deprecated Alias for mission. */
|
|
5272
|
+
background?: string;
|
|
5273
|
+
/** @deprecated Use dispositionSkepticism, dispositionLiteralism, dispositionEmpathy instead. */
|
|
5274
|
+
disposition?: {
|
|
5275
|
+
skepticism: number;
|
|
5276
|
+
literalism: number;
|
|
5277
|
+
empathy: number;
|
|
5278
|
+
};
|
|
5279
|
+
/** @deprecated Use updateBankConfig({ dispositionSkepticism }) instead. */
|
|
5280
|
+
dispositionSkepticism?: number;
|
|
5281
|
+
/** @deprecated Use updateBankConfig({ dispositionLiteralism }) instead. */
|
|
5282
|
+
dispositionLiteralism?: number;
|
|
5283
|
+
/** @deprecated Use updateBankConfig({ dispositionEmpathy }) instead. */
|
|
5284
|
+
dispositionEmpathy?: number;
|
|
5285
|
+
/** Steers what gets extracted during retain(). Injected alongside built-in rules. */
|
|
5286
|
+
retainMission?: string;
|
|
5287
|
+
/** Fact extraction mode: 'concise' (default), 'verbose', or 'custom'. */
|
|
5288
|
+
retainExtractionMode?: string;
|
|
5289
|
+
/** Custom extraction prompt (only active when retainExtractionMode is 'custom'). */
|
|
5290
|
+
retainCustomInstructions?: string;
|
|
5291
|
+
/** Maximum token size for each content chunk during retain. */
|
|
5292
|
+
retainChunkSize?: number;
|
|
5293
|
+
/** Toggle automatic observation consolidation after retain(). */
|
|
5294
|
+
enableObservations?: boolean;
|
|
5295
|
+
/** Controls what gets synthesised into observations. Replaces built-in rules. */
|
|
5296
|
+
observationsMission?: string;
|
|
5297
|
+
}): Promise<BankProfileResponse>;
|
|
5298
|
+
/**
|
|
5299
|
+
* Set or update the reflect mission for a memory bank.
|
|
5300
|
+
* @deprecated Use createBank({ reflectMission: '...' }) instead.
|
|
5301
|
+
*/
|
|
5302
|
+
setMission(bankId: string, mission: string): Promise<BankProfileResponse>;
|
|
5303
|
+
/**
|
|
5304
|
+
* Get a bank's profile.
|
|
5305
|
+
*/
|
|
5306
|
+
getBankProfile(bankId: string): Promise<BankProfileResponse>;
|
|
5307
|
+
/**
|
|
5308
|
+
* Get the resolved configuration for a bank, including any bank-level overrides.
|
|
5309
|
+
*
|
|
5310
|
+
* Can be disabled on the server by setting `HINDSIGHT_API_ENABLE_BANK_CONFIG_API=false`.
|
|
5311
|
+
*/
|
|
5312
|
+
getBankConfig(bankId: string): Promise<BankConfigResponse>;
|
|
5313
|
+
/**
|
|
5314
|
+
* Update configuration overrides for a bank.
|
|
5315
|
+
*
|
|
5316
|
+
* Can be disabled on the server by setting `HINDSIGHT_API_ENABLE_BANK_CONFIG_API=false`.
|
|
5317
|
+
*
|
|
5318
|
+
* @param bankId - The memory bank ID
|
|
5319
|
+
* @param options - Fields to override
|
|
5320
|
+
*/
|
|
5321
|
+
updateBankConfig(bankId: string, options: {
|
|
5322
|
+
reflectMission?: string;
|
|
5323
|
+
retainMission?: string;
|
|
5324
|
+
retainExtractionMode?: string;
|
|
5325
|
+
retainCustomInstructions?: string;
|
|
5326
|
+
retainChunkSize?: number;
|
|
5327
|
+
enableObservations?: boolean;
|
|
5328
|
+
observationsMission?: string;
|
|
5329
|
+
/** How skeptical vs trusting (1=trusting, 5=skeptical). */
|
|
5330
|
+
dispositionSkepticism?: number;
|
|
5331
|
+
/** How literally to interpret information (1=flexible, 5=literal). */
|
|
5332
|
+
dispositionLiteralism?: number;
|
|
5333
|
+
/** How much to consider emotional context (1=detached, 5=empathetic). */
|
|
5334
|
+
dispositionEmpathy?: number;
|
|
5335
|
+
}): Promise<BankConfigResponse>;
|
|
5336
|
+
/**
|
|
5337
|
+
* Reset all bank-level configuration overrides, reverting to server defaults.
|
|
5338
|
+
*
|
|
5339
|
+
* Can be disabled on the server by setting `HINDSIGHT_API_ENABLE_BANK_CONFIG_API=false`.
|
|
5340
|
+
*/
|
|
5341
|
+
resetBankConfig(bankId: string): Promise<BankConfigResponse>;
|
|
5342
|
+
/**
|
|
5343
|
+
* Delete a bank.
|
|
5344
|
+
*/
|
|
5345
|
+
deleteBank(bankId: string): Promise<void>;
|
|
5346
|
+
/**
|
|
5347
|
+
* Create a directive (hard rule for reflect).
|
|
5348
|
+
*/
|
|
5349
|
+
createDirective(bankId: string, name: string, content: string, options?: {
|
|
5350
|
+
priority?: number;
|
|
5351
|
+
isActive?: boolean;
|
|
5352
|
+
tags?: string[];
|
|
5353
|
+
}): Promise<any>;
|
|
5354
|
+
/**
|
|
5355
|
+
* List all directives in a bank.
|
|
5356
|
+
*/
|
|
5357
|
+
listDirectives(bankId: string, options?: {
|
|
5358
|
+
tags?: string[];
|
|
5359
|
+
}): Promise<any>;
|
|
5360
|
+
/**
|
|
5361
|
+
* Get a specific directive.
|
|
5362
|
+
*/
|
|
5363
|
+
getDirective(bankId: string, directiveId: string): Promise<any>;
|
|
5364
|
+
/**
|
|
5365
|
+
* Update a directive.
|
|
5366
|
+
*/
|
|
5367
|
+
updateDirective(bankId: string, directiveId: string, options: {
|
|
5368
|
+
name?: string;
|
|
5369
|
+
content?: string;
|
|
5370
|
+
priority?: number;
|
|
5371
|
+
isActive?: boolean;
|
|
5372
|
+
tags?: string[];
|
|
5373
|
+
}): Promise<any>;
|
|
5374
|
+
/**
|
|
5375
|
+
* Delete a directive.
|
|
5376
|
+
*/
|
|
5377
|
+
deleteDirective(bankId: string, directiveId: string): Promise<void>;
|
|
5378
|
+
/**
|
|
5379
|
+
* Create a mental model (runs reflect in background).
|
|
5380
|
+
*/
|
|
5381
|
+
createMentalModel(bankId: string, name: string, sourceQuery: string, options?: {
|
|
5382
|
+
id?: string;
|
|
5383
|
+
tags?: string[];
|
|
5384
|
+
maxTokens?: number;
|
|
5385
|
+
trigger?: {
|
|
5386
|
+
refreshAfterConsolidation?: boolean;
|
|
5387
|
+
};
|
|
5388
|
+
}): Promise<any>;
|
|
5389
|
+
/**
|
|
5390
|
+
* List all mental models in a bank.
|
|
5391
|
+
*/
|
|
5392
|
+
listMentalModels(bankId: string, options?: {
|
|
5393
|
+
tags?: string[];
|
|
5394
|
+
}): Promise<any>;
|
|
5395
|
+
/**
|
|
5396
|
+
* Get a specific mental model.
|
|
5397
|
+
*/
|
|
5398
|
+
getMentalModel(bankId: string, mentalModelId: string): Promise<any>;
|
|
5399
|
+
/**
|
|
5400
|
+
* Refresh a mental model to update with current knowledge.
|
|
5401
|
+
*/
|
|
5402
|
+
refreshMentalModel(bankId: string, mentalModelId: string): Promise<any>;
|
|
5403
|
+
/**
|
|
5404
|
+
* Update a mental model's metadata.
|
|
5405
|
+
*/
|
|
5406
|
+
updateMentalModel(bankId: string, mentalModelId: string, options: {
|
|
5407
|
+
name?: string;
|
|
5408
|
+
sourceQuery?: string;
|
|
5409
|
+
tags?: string[];
|
|
5410
|
+
maxTokens?: number;
|
|
5411
|
+
trigger?: {
|
|
5412
|
+
refreshAfterConsolidation?: boolean;
|
|
5413
|
+
};
|
|
5414
|
+
}): Promise<any>;
|
|
5415
|
+
/**
|
|
5416
|
+
* Delete a mental model.
|
|
5417
|
+
*/
|
|
5418
|
+
deleteMentalModel(bankId: string, mentalModelId: string): Promise<void>;
|
|
5419
|
+
/**
|
|
5420
|
+
* Get the change history of a mental model.
|
|
5421
|
+
*/
|
|
5422
|
+
getMentalModelHistory(bankId: string, mentalModelId: string): Promise<any>;
|
|
5423
|
+
}
|
|
5424
|
+
|
|
5425
|
+
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 };
|