@vectorize-io/hindsight-client 0.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/README.md +57 -0
  2. package/dist/generated/client/client.gen.d.ts +3 -0
  3. package/dist/generated/client/client.gen.d.ts.map +1 -0
  4. package/dist/generated/client/client.gen.js +233 -0
  5. package/dist/generated/client/client.gen.js.map +1 -0
  6. package/dist/generated/client/index.d.ts +9 -0
  7. package/dist/generated/client/index.d.ts.map +1 -0
  8. package/dist/generated/client/index.js +18 -0
  9. package/dist/generated/client/index.js.map +1 -0
  10. package/dist/generated/client/types.gen.d.ts +118 -0
  11. package/dist/generated/client/types.gen.d.ts.map +1 -0
  12. package/dist/generated/client/types.gen.js +4 -0
  13. package/dist/generated/client/types.gen.js.map +1 -0
  14. package/dist/generated/client/utils.gen.d.ts +34 -0
  15. package/dist/generated/client/utils.gen.d.ts.map +1 -0
  16. package/dist/generated/client/utils.gen.js +245 -0
  17. package/dist/generated/client/utils.gen.js.map +1 -0
  18. package/dist/generated/client.gen.d.ts +13 -0
  19. package/dist/generated/client.gen.d.ts.map +1 -0
  20. package/dist/generated/client.gen.js +7 -0
  21. package/dist/generated/client.gen.js.map +1 -0
  22. package/dist/generated/core/auth.gen.d.ts +19 -0
  23. package/dist/generated/core/auth.gen.d.ts.map +1 -0
  24. package/dist/generated/core/auth.gen.js +19 -0
  25. package/dist/generated/core/auth.gen.js.map +1 -0
  26. package/dist/generated/core/bodySerializer.gen.d.ts +26 -0
  27. package/dist/generated/core/bodySerializer.gen.d.ts.map +1 -0
  28. package/dist/generated/core/bodySerializer.gen.js +61 -0
  29. package/dist/generated/core/bodySerializer.gen.js.map +1 -0
  30. package/dist/generated/core/params.gen.d.ts +44 -0
  31. package/dist/generated/core/params.gen.d.ts.map +1 -0
  32. package/dist/generated/core/params.gen.js +105 -0
  33. package/dist/generated/core/params.gen.js.map +1 -0
  34. package/dist/generated/core/pathSerializer.gen.d.ts +34 -0
  35. package/dist/generated/core/pathSerializer.gen.d.ts.map +1 -0
  36. package/dist/generated/core/pathSerializer.gen.js +124 -0
  37. package/dist/generated/core/pathSerializer.gen.js.map +1 -0
  38. package/dist/generated/core/queryKeySerializer.gen.d.ts +19 -0
  39. package/dist/generated/core/queryKeySerializer.gen.d.ts.map +1 -0
  40. package/dist/generated/core/queryKeySerializer.gen.js +106 -0
  41. package/dist/generated/core/queryKeySerializer.gen.js.map +1 -0
  42. package/dist/generated/core/serverSentEvents.gen.d.ts +72 -0
  43. package/dist/generated/core/serverSentEvents.gen.d.ts.map +1 -0
  44. package/dist/generated/core/serverSentEvents.gen.js +140 -0
  45. package/dist/generated/core/serverSentEvents.gen.js.map +1 -0
  46. package/dist/generated/core/types.gen.d.ts +79 -0
  47. package/dist/generated/core/types.gen.d.ts.map +1 -0
  48. package/dist/generated/core/types.gen.js +4 -0
  49. package/dist/generated/core/types.gen.js.map +1 -0
  50. package/dist/generated/core/utils.gen.d.ts +20 -0
  51. package/dist/generated/core/utils.gen.d.ts.map +1 -0
  52. package/dist/generated/core/utils.gen.js +94 -0
  53. package/dist/generated/core/utils.gen.js.map +1 -0
  54. package/dist/generated/index.d.ts +3 -0
  55. package/dist/generated/index.d.ts.map +1 -0
  56. package/dist/generated/index.js +19 -0
  57. package/dist/generated/index.js.map +1 -0
  58. package/dist/generated/sdk.gen.d.ts +200 -0
  59. package/dist/generated/sdk.gen.d.ts.map +1 -0
  60. package/dist/generated/sdk.gen.js +254 -0
  61. package/dist/generated/sdk.gen.js.map +1 -0
  62. package/dist/generated/types.gen.d.ts +1437 -0
  63. package/dist/generated/types.gen.d.ts.map +1 -0
  64. package/dist/generated/types.gen.js +4 -0
  65. package/dist/generated/types.gen.js.map +1 -0
  66. package/dist/src/index.d.ts +100 -0
  67. package/dist/src/index.d.ts.map +1 -0
  68. package/dist/src/index.js +216 -0
  69. package/dist/src/index.js.map +1 -0
  70. package/generated/client/client.gen.ts +301 -0
  71. package/generated/client/index.ts +25 -0
  72. package/generated/client/types.gen.ts +241 -0
  73. package/generated/client/utils.gen.ts +332 -0
  74. package/generated/client.gen.ts +16 -0
  75. package/generated/core/auth.gen.ts +42 -0
  76. package/generated/core/bodySerializer.gen.ts +100 -0
  77. package/generated/core/params.gen.ts +176 -0
  78. package/generated/core/pathSerializer.gen.ts +181 -0
  79. package/generated/core/queryKeySerializer.gen.ts +136 -0
  80. package/generated/core/serverSentEvents.gen.ts +264 -0
  81. package/generated/core/types.gen.ts +118 -0
  82. package/generated/core/utils.gen.ts +143 -0
  83. package/generated/index.ts +4 -0
  84. package/generated/sdk.gen.ts +267 -0
  85. package/generated/types.gen.ts +1577 -0
  86. package/package.json +42 -0
  87. package/src/index.ts +273 -0
@@ -0,0 +1,1577 @@
1
+ // This file is auto-generated by @hey-api/openapi-ts
2
+
3
+ export type ClientOptions = {
4
+ baseUrl: `${string}://${string}` | (string & {});
5
+ };
6
+
7
+ /**
8
+ * AddBackgroundRequest
9
+ *
10
+ * Request model for adding/merging background information.
11
+ */
12
+ export type AddBackgroundRequest = {
13
+ /**
14
+ * Content
15
+ *
16
+ * New background information to add or merge
17
+ */
18
+ content: string;
19
+ /**
20
+ * Update Personality
21
+ *
22
+ * If true, infer Big Five personality traits from the merged background (default: true)
23
+ */
24
+ update_personality?: boolean;
25
+ };
26
+
27
+ /**
28
+ * BackgroundResponse
29
+ *
30
+ * Response model for background update.
31
+ */
32
+ export type BackgroundResponse = {
33
+ /**
34
+ * Background
35
+ */
36
+ background: string;
37
+ personality?: PersonalityTraits | null;
38
+ };
39
+
40
+ /**
41
+ * BankListItem
42
+ *
43
+ * Bank list item with profile summary.
44
+ */
45
+ export type BankListItem = {
46
+ /**
47
+ * Bank Id
48
+ */
49
+ bank_id: string;
50
+ /**
51
+ * Name
52
+ */
53
+ name: string;
54
+ personality: PersonalityTraits;
55
+ /**
56
+ * Background
57
+ */
58
+ background: string;
59
+ /**
60
+ * Created At
61
+ */
62
+ created_at?: string | null;
63
+ /**
64
+ * Updated At
65
+ */
66
+ updated_at?: string | null;
67
+ };
68
+
69
+ /**
70
+ * BankListResponse
71
+ *
72
+ * Response model for listing all banks.
73
+ */
74
+ export type BankListResponse = {
75
+ /**
76
+ * Banks
77
+ */
78
+ banks: Array<BankListItem>;
79
+ };
80
+
81
+ /**
82
+ * BankProfileResponse
83
+ *
84
+ * Response model for bank profile.
85
+ */
86
+ export type BankProfileResponse = {
87
+ /**
88
+ * Bank Id
89
+ */
90
+ bank_id: string;
91
+ /**
92
+ * Name
93
+ */
94
+ name: string;
95
+ personality: PersonalityTraits;
96
+ /**
97
+ * Background
98
+ */
99
+ background: string;
100
+ };
101
+
102
+ /**
103
+ * Budget
104
+ *
105
+ * Budget levels for recall/reflect operations.
106
+ */
107
+ export type Budget = 'low' | 'mid' | 'high';
108
+
109
+ /**
110
+ * ChunkData
111
+ *
112
+ * Chunk data for a single chunk.
113
+ */
114
+ export type ChunkData = {
115
+ /**
116
+ * Id
117
+ */
118
+ id: string;
119
+ /**
120
+ * Text
121
+ */
122
+ text: string;
123
+ /**
124
+ * Chunk Index
125
+ */
126
+ chunk_index: number;
127
+ /**
128
+ * Truncated
129
+ *
130
+ * Whether the chunk text was truncated due to token limits
131
+ */
132
+ truncated?: boolean;
133
+ };
134
+
135
+ /**
136
+ * ChunkIncludeOptions
137
+ *
138
+ * Options for including chunks in recall results.
139
+ */
140
+ export type ChunkIncludeOptions = {
141
+ /**
142
+ * Max Tokens
143
+ *
144
+ * Maximum tokens for chunks (chunks may be truncated)
145
+ */
146
+ max_tokens?: number;
147
+ };
148
+
149
+ /**
150
+ * ChunkResponse
151
+ *
152
+ * Response model for get chunk endpoint.
153
+ */
154
+ export type ChunkResponse = {
155
+ /**
156
+ * Chunk Id
157
+ */
158
+ chunk_id: string;
159
+ /**
160
+ * Document Id
161
+ */
162
+ document_id: string;
163
+ /**
164
+ * Bank Id
165
+ */
166
+ bank_id: string;
167
+ /**
168
+ * Chunk Index
169
+ */
170
+ chunk_index: number;
171
+ /**
172
+ * Chunk Text
173
+ */
174
+ chunk_text: string;
175
+ /**
176
+ * Created At
177
+ */
178
+ created_at: string;
179
+ };
180
+
181
+ /**
182
+ * CreateBankRequest
183
+ *
184
+ * Request model for creating/updating a bank.
185
+ */
186
+ export type CreateBankRequest = {
187
+ /**
188
+ * Name
189
+ */
190
+ name?: string | null;
191
+ personality?: PersonalityTraits | null;
192
+ /**
193
+ * Background
194
+ */
195
+ background?: string | null;
196
+ };
197
+
198
+ /**
199
+ * DeleteResponse
200
+ *
201
+ * Response model for delete operations.
202
+ */
203
+ export type DeleteResponse = {
204
+ /**
205
+ * Success
206
+ */
207
+ success: boolean;
208
+ };
209
+
210
+ /**
211
+ * DocumentResponse
212
+ *
213
+ * Response model for get document endpoint.
214
+ */
215
+ export type DocumentResponse = {
216
+ /**
217
+ * Id
218
+ */
219
+ id: string;
220
+ /**
221
+ * Bank Id
222
+ */
223
+ bank_id: string;
224
+ /**
225
+ * Original Text
226
+ */
227
+ original_text: string;
228
+ /**
229
+ * Content Hash
230
+ */
231
+ content_hash: string | null;
232
+ /**
233
+ * Created At
234
+ */
235
+ created_at: string;
236
+ /**
237
+ * Updated At
238
+ */
239
+ updated_at: string;
240
+ /**
241
+ * Memory Unit Count
242
+ */
243
+ memory_unit_count: number;
244
+ };
245
+
246
+ /**
247
+ * EntityDetailResponse
248
+ *
249
+ * Response model for entity detail endpoint.
250
+ */
251
+ export type EntityDetailResponse = {
252
+ /**
253
+ * Id
254
+ */
255
+ id: string;
256
+ /**
257
+ * Canonical Name
258
+ */
259
+ canonical_name: string;
260
+ /**
261
+ * Mention Count
262
+ */
263
+ mention_count: number;
264
+ /**
265
+ * First Seen
266
+ */
267
+ first_seen?: string | null;
268
+ /**
269
+ * Last Seen
270
+ */
271
+ last_seen?: string | null;
272
+ /**
273
+ * Metadata
274
+ */
275
+ metadata?: {
276
+ [key: string]: unknown;
277
+ } | null;
278
+ /**
279
+ * Observations
280
+ */
281
+ observations: Array<EntityObservationResponse>;
282
+ };
283
+
284
+ /**
285
+ * EntityIncludeOptions
286
+ *
287
+ * Options for including entity observations in recall results.
288
+ */
289
+ export type EntityIncludeOptions = {
290
+ /**
291
+ * Max Tokens
292
+ *
293
+ * Maximum tokens for entity observations
294
+ */
295
+ max_tokens?: number;
296
+ };
297
+
298
+ /**
299
+ * EntityListItem
300
+ *
301
+ * Entity list item with summary.
302
+ */
303
+ export type EntityListItem = {
304
+ /**
305
+ * Id
306
+ */
307
+ id: string;
308
+ /**
309
+ * Canonical Name
310
+ */
311
+ canonical_name: string;
312
+ /**
313
+ * Mention Count
314
+ */
315
+ mention_count: number;
316
+ /**
317
+ * First Seen
318
+ */
319
+ first_seen?: string | null;
320
+ /**
321
+ * Last Seen
322
+ */
323
+ last_seen?: string | null;
324
+ /**
325
+ * Metadata
326
+ */
327
+ metadata?: {
328
+ [key: string]: unknown;
329
+ } | null;
330
+ };
331
+
332
+ /**
333
+ * EntityListResponse
334
+ *
335
+ * Response model for entity list endpoint.
336
+ */
337
+ export type EntityListResponse = {
338
+ /**
339
+ * Items
340
+ */
341
+ items: Array<EntityListItem>;
342
+ };
343
+
344
+ /**
345
+ * EntityObservationResponse
346
+ *
347
+ * An observation about an entity.
348
+ */
349
+ export type EntityObservationResponse = {
350
+ /**
351
+ * Text
352
+ */
353
+ text: string;
354
+ /**
355
+ * Mentioned At
356
+ */
357
+ mentioned_at?: string | null;
358
+ };
359
+
360
+ /**
361
+ * EntityStateResponse
362
+ *
363
+ * Current mental model of an entity.
364
+ */
365
+ export type EntityStateResponse = {
366
+ /**
367
+ * Entity Id
368
+ */
369
+ entity_id: string;
370
+ /**
371
+ * Canonical Name
372
+ */
373
+ canonical_name: string;
374
+ /**
375
+ * Observations
376
+ */
377
+ observations: Array<EntityObservationResponse>;
378
+ };
379
+
380
+ /**
381
+ * FactsIncludeOptions
382
+ *
383
+ * Options for including facts (based_on) in reflect results.
384
+ */
385
+ export type FactsIncludeOptions = {
386
+ [key: string]: unknown;
387
+ };
388
+
389
+ /**
390
+ * GraphDataResponse
391
+ *
392
+ * Response model for graph data endpoint.
393
+ */
394
+ export type GraphDataResponse = {
395
+ /**
396
+ * Nodes
397
+ */
398
+ nodes: Array<{
399
+ [key: string]: unknown;
400
+ }>;
401
+ /**
402
+ * Edges
403
+ */
404
+ edges: Array<{
405
+ [key: string]: unknown;
406
+ }>;
407
+ /**
408
+ * Table Rows
409
+ */
410
+ table_rows: Array<{
411
+ [key: string]: unknown;
412
+ }>;
413
+ /**
414
+ * Total Units
415
+ */
416
+ total_units: number;
417
+ };
418
+
419
+ /**
420
+ * HTTPValidationError
421
+ */
422
+ export type HttpValidationError = {
423
+ /**
424
+ * Detail
425
+ */
426
+ detail?: Array<ValidationError>;
427
+ };
428
+
429
+ /**
430
+ * IncludeOptions
431
+ *
432
+ * Options for including additional data in recall results.
433
+ */
434
+ export type IncludeOptions = {
435
+ /**
436
+ * Include entity observations. Set to null to disable entity inclusion.
437
+ */
438
+ entities?: EntityIncludeOptions | null;
439
+ /**
440
+ * Include raw chunks. Set to {} to enable, null to disable (default: disabled).
441
+ */
442
+ chunks?: ChunkIncludeOptions | null;
443
+ };
444
+
445
+ /**
446
+ * ListDocumentsResponse
447
+ *
448
+ * Response model for list documents endpoint.
449
+ */
450
+ export type ListDocumentsResponse = {
451
+ /**
452
+ * Items
453
+ */
454
+ items: Array<{
455
+ [key: string]: unknown;
456
+ }>;
457
+ /**
458
+ * Total
459
+ */
460
+ total: number;
461
+ /**
462
+ * Limit
463
+ */
464
+ limit: number;
465
+ /**
466
+ * Offset
467
+ */
468
+ offset: number;
469
+ };
470
+
471
+ /**
472
+ * ListMemoryUnitsResponse
473
+ *
474
+ * Response model for list memory units endpoint.
475
+ */
476
+ export type ListMemoryUnitsResponse = {
477
+ /**
478
+ * Items
479
+ */
480
+ items: Array<{
481
+ [key: string]: unknown;
482
+ }>;
483
+ /**
484
+ * Total
485
+ */
486
+ total: number;
487
+ /**
488
+ * Limit
489
+ */
490
+ limit: number;
491
+ /**
492
+ * Offset
493
+ */
494
+ offset: number;
495
+ };
496
+
497
+ /**
498
+ * MemoryItem
499
+ *
500
+ * Single memory item for retain.
501
+ */
502
+ export type MemoryItem = {
503
+ /**
504
+ * Content
505
+ */
506
+ content: string;
507
+ /**
508
+ * Timestamp
509
+ */
510
+ timestamp?: string | null;
511
+ /**
512
+ * Context
513
+ */
514
+ context?: string | null;
515
+ /**
516
+ * Metadata
517
+ */
518
+ metadata?: {
519
+ [key: string]: string;
520
+ } | null;
521
+ /**
522
+ * Document Id
523
+ *
524
+ * Optional document ID for this memory item. Items with the same document_id are grouped together for efficient processing.
525
+ */
526
+ document_id?: string | null;
527
+ };
528
+
529
+ /**
530
+ * MetadataFilter
531
+ *
532
+ * Filter for metadata fields. Matches records where (key=value) OR (key not set) when match_unset=True.
533
+ */
534
+ export type MetadataFilter = {
535
+ /**
536
+ * Key
537
+ *
538
+ * Metadata key to filter on
539
+ */
540
+ key: string;
541
+ /**
542
+ * Value
543
+ *
544
+ * Value to match. If None with match_unset=True, matches any record where key is not set.
545
+ */
546
+ value?: string | null;
547
+ /**
548
+ * Match Unset
549
+ *
550
+ * If True, also match records where this metadata key is not set
551
+ */
552
+ match_unset?: boolean;
553
+ };
554
+
555
+ /**
556
+ * PersonalityTraits
557
+ *
558
+ * Personality traits based on Big Five model.
559
+ */
560
+ export type PersonalityTraits = {
561
+ /**
562
+ * Openness
563
+ *
564
+ * Openness to experience (0-1)
565
+ */
566
+ openness: number;
567
+ /**
568
+ * Conscientiousness
569
+ *
570
+ * Conscientiousness (0-1)
571
+ */
572
+ conscientiousness: number;
573
+ /**
574
+ * Extraversion
575
+ *
576
+ * Extraversion (0-1)
577
+ */
578
+ extraversion: number;
579
+ /**
580
+ * Agreeableness
581
+ *
582
+ * Agreeableness (0-1)
583
+ */
584
+ agreeableness: number;
585
+ /**
586
+ * Neuroticism
587
+ *
588
+ * Neuroticism (0-1)
589
+ */
590
+ neuroticism: number;
591
+ /**
592
+ * Bias Strength
593
+ *
594
+ * How strongly personality influences opinions (0-1)
595
+ */
596
+ bias_strength: number;
597
+ };
598
+
599
+ /**
600
+ * RecallRequest
601
+ *
602
+ * Request model for recall endpoint.
603
+ */
604
+ export type RecallRequest = {
605
+ /**
606
+ * Query
607
+ */
608
+ query: string;
609
+ /**
610
+ * Types
611
+ *
612
+ * List of fact types to recall (defaults to all if not specified)
613
+ */
614
+ types?: Array<string> | null;
615
+ budget?: Budget;
616
+ /**
617
+ * Max Tokens
618
+ */
619
+ max_tokens?: number;
620
+ /**
621
+ * Trace
622
+ */
623
+ trace?: boolean;
624
+ /**
625
+ * Query Timestamp
626
+ *
627
+ * ISO format date string (e.g., '2023-05-30T23:40:00')
628
+ */
629
+ query_timestamp?: string | null;
630
+ /**
631
+ * Filters
632
+ *
633
+ * Filter by metadata. Multiple filters are ANDed together.
634
+ */
635
+ filters?: Array<MetadataFilter> | null;
636
+ /**
637
+ * Options for including additional data (entities are included by default)
638
+ */
639
+ include?: IncludeOptions;
640
+ };
641
+
642
+ /**
643
+ * RecallResponse
644
+ *
645
+ * Response model for recall endpoints.
646
+ */
647
+ export type RecallResponse = {
648
+ /**
649
+ * Results
650
+ */
651
+ results: Array<RecallResult>;
652
+ /**
653
+ * Trace
654
+ */
655
+ trace?: {
656
+ [key: string]: unknown;
657
+ } | null;
658
+ /**
659
+ * Entities
660
+ *
661
+ * Entity states for entities mentioned in results
662
+ */
663
+ entities?: {
664
+ [key: string]: EntityStateResponse;
665
+ } | null;
666
+ /**
667
+ * Chunks
668
+ *
669
+ * Chunks for facts, keyed by chunk_id
670
+ */
671
+ chunks?: {
672
+ [key: string]: ChunkData;
673
+ } | null;
674
+ };
675
+
676
+ /**
677
+ * RecallResult
678
+ *
679
+ * Single recall result item.
680
+ */
681
+ export type RecallResult = {
682
+ /**
683
+ * Id
684
+ */
685
+ id: string;
686
+ /**
687
+ * Text
688
+ */
689
+ text: string;
690
+ /**
691
+ * Type
692
+ */
693
+ type?: string | null;
694
+ /**
695
+ * Entities
696
+ */
697
+ entities?: Array<string> | null;
698
+ /**
699
+ * Context
700
+ */
701
+ context?: string | null;
702
+ /**
703
+ * Occurred Start
704
+ */
705
+ occurred_start?: string | null;
706
+ /**
707
+ * Occurred End
708
+ */
709
+ occurred_end?: string | null;
710
+ /**
711
+ * Mentioned At
712
+ */
713
+ mentioned_at?: string | null;
714
+ /**
715
+ * Document Id
716
+ */
717
+ document_id?: string | null;
718
+ /**
719
+ * Metadata
720
+ */
721
+ metadata?: {
722
+ [key: string]: string;
723
+ } | null;
724
+ /**
725
+ * Chunk Id
726
+ */
727
+ chunk_id?: string | null;
728
+ };
729
+
730
+ /**
731
+ * ReflectFact
732
+ *
733
+ * A fact used in think response.
734
+ */
735
+ export type ReflectFact = {
736
+ /**
737
+ * Id
738
+ */
739
+ id?: string | null;
740
+ /**
741
+ * Text
742
+ */
743
+ text: string;
744
+ /**
745
+ * Type
746
+ */
747
+ type?: string | null;
748
+ /**
749
+ * Context
750
+ */
751
+ context?: string | null;
752
+ /**
753
+ * Occurred Start
754
+ */
755
+ occurred_start?: string | null;
756
+ /**
757
+ * Occurred End
758
+ */
759
+ occurred_end?: string | null;
760
+ };
761
+
762
+ /**
763
+ * ReflectIncludeOptions
764
+ *
765
+ * Options for including additional data in reflect results.
766
+ */
767
+ export type ReflectIncludeOptions = {
768
+ /**
769
+ * Include facts that the answer is based on. Set to {} to enable, null to disable (default: disabled).
770
+ */
771
+ facts?: FactsIncludeOptions | null;
772
+ };
773
+
774
+ /**
775
+ * ReflectRequest
776
+ *
777
+ * Request model for reflect endpoint.
778
+ */
779
+ export type ReflectRequest = {
780
+ /**
781
+ * Query
782
+ */
783
+ query: string;
784
+ budget?: Budget;
785
+ /**
786
+ * Context
787
+ */
788
+ context?: string | null;
789
+ /**
790
+ * Filters
791
+ *
792
+ * Filter by metadata. Multiple filters are ANDed together.
793
+ */
794
+ filters?: Array<MetadataFilter> | null;
795
+ /**
796
+ * Options for including additional data (disabled by default)
797
+ */
798
+ include?: ReflectIncludeOptions;
799
+ };
800
+
801
+ /**
802
+ * ReflectResponse
803
+ *
804
+ * Response model for think endpoint.
805
+ */
806
+ export type ReflectResponse = {
807
+ /**
808
+ * Text
809
+ */
810
+ text: string;
811
+ /**
812
+ * Based On
813
+ */
814
+ based_on?: Array<ReflectFact>;
815
+ };
816
+
817
+ /**
818
+ * RetainRequest
819
+ *
820
+ * Request model for retain endpoint.
821
+ */
822
+ export type RetainRequest = {
823
+ /**
824
+ * Items
825
+ */
826
+ items: Array<MemoryItem>;
827
+ /**
828
+ * Async
829
+ *
830
+ * If true, process asynchronously in background. If false, wait for completion (default: false)
831
+ */
832
+ async?: boolean;
833
+ };
834
+
835
+ /**
836
+ * RetainResponse
837
+ *
838
+ * Response model for retain endpoint.
839
+ */
840
+ export type RetainResponse = {
841
+ /**
842
+ * Success
843
+ */
844
+ success: boolean;
845
+ /**
846
+ * Bank Id
847
+ */
848
+ bank_id: string;
849
+ /**
850
+ * Items Count
851
+ */
852
+ items_count: number;
853
+ /**
854
+ * Async
855
+ *
856
+ * Whether the operation was processed asynchronously
857
+ */
858
+ async: boolean;
859
+ };
860
+
861
+ /**
862
+ * UpdatePersonalityRequest
863
+ *
864
+ * Request model for updating personality traits.
865
+ */
866
+ export type UpdatePersonalityRequest = {
867
+ personality: PersonalityTraits;
868
+ };
869
+
870
+ /**
871
+ * ValidationError
872
+ */
873
+ export type ValidationError = {
874
+ /**
875
+ * Location
876
+ */
877
+ loc: Array<string | number>;
878
+ /**
879
+ * Message
880
+ */
881
+ msg: string;
882
+ /**
883
+ * Error Type
884
+ */
885
+ type: string;
886
+ };
887
+
888
+ export type MetricsEndpointMetricsGetData = {
889
+ body?: never;
890
+ path?: never;
891
+ query?: never;
892
+ url: '/metrics';
893
+ };
894
+
895
+ export type MetricsEndpointMetricsGetResponses = {
896
+ /**
897
+ * Successful Response
898
+ */
899
+ 200: unknown;
900
+ };
901
+
902
+ export type GetGraphData = {
903
+ body?: never;
904
+ path: {
905
+ /**
906
+ * Bank Id
907
+ */
908
+ bank_id: string;
909
+ };
910
+ query?: {
911
+ /**
912
+ * Type
913
+ */
914
+ type?: string | null;
915
+ };
916
+ url: '/v1/default/banks/{bank_id}/graph';
917
+ };
918
+
919
+ export type GetGraphErrors = {
920
+ /**
921
+ * Validation Error
922
+ */
923
+ 422: HttpValidationError;
924
+ };
925
+
926
+ export type GetGraphError = GetGraphErrors[keyof GetGraphErrors];
927
+
928
+ export type GetGraphResponses = {
929
+ /**
930
+ * Successful Response
931
+ */
932
+ 200: GraphDataResponse;
933
+ };
934
+
935
+ export type GetGraphResponse = GetGraphResponses[keyof GetGraphResponses];
936
+
937
+ export type ListMemoriesData = {
938
+ body?: never;
939
+ path: {
940
+ /**
941
+ * Bank Id
942
+ */
943
+ bank_id: string;
944
+ };
945
+ query?: {
946
+ /**
947
+ * Type
948
+ */
949
+ type?: string | null;
950
+ /**
951
+ * Q
952
+ */
953
+ q?: string | null;
954
+ /**
955
+ * Limit
956
+ */
957
+ limit?: number;
958
+ /**
959
+ * Offset
960
+ */
961
+ offset?: number;
962
+ };
963
+ url: '/v1/default/banks/{bank_id}/memories/list';
964
+ };
965
+
966
+ export type ListMemoriesErrors = {
967
+ /**
968
+ * Validation Error
969
+ */
970
+ 422: HttpValidationError;
971
+ };
972
+
973
+ export type ListMemoriesError = ListMemoriesErrors[keyof ListMemoriesErrors];
974
+
975
+ export type ListMemoriesResponses = {
976
+ /**
977
+ * Successful Response
978
+ */
979
+ 200: ListMemoryUnitsResponse;
980
+ };
981
+
982
+ export type ListMemoriesResponse = ListMemoriesResponses[keyof ListMemoriesResponses];
983
+
984
+ export type RecallMemoriesData = {
985
+ body: RecallRequest;
986
+ path: {
987
+ /**
988
+ * Bank Id
989
+ */
990
+ bank_id: string;
991
+ };
992
+ query?: never;
993
+ url: '/v1/default/banks/{bank_id}/memories/recall';
994
+ };
995
+
996
+ export type RecallMemoriesErrors = {
997
+ /**
998
+ * Validation Error
999
+ */
1000
+ 422: HttpValidationError;
1001
+ };
1002
+
1003
+ export type RecallMemoriesError = RecallMemoriesErrors[keyof RecallMemoriesErrors];
1004
+
1005
+ export type RecallMemoriesResponses = {
1006
+ /**
1007
+ * Successful Response
1008
+ */
1009
+ 200: RecallResponse;
1010
+ };
1011
+
1012
+ export type RecallMemoriesResponse = RecallMemoriesResponses[keyof RecallMemoriesResponses];
1013
+
1014
+ export type ReflectData = {
1015
+ body: ReflectRequest;
1016
+ path: {
1017
+ /**
1018
+ * Bank Id
1019
+ */
1020
+ bank_id: string;
1021
+ };
1022
+ query?: never;
1023
+ url: '/v1/default/banks/{bank_id}/reflect';
1024
+ };
1025
+
1026
+ export type ReflectErrors = {
1027
+ /**
1028
+ * Validation Error
1029
+ */
1030
+ 422: HttpValidationError;
1031
+ };
1032
+
1033
+ export type ReflectError = ReflectErrors[keyof ReflectErrors];
1034
+
1035
+ export type ReflectResponses = {
1036
+ /**
1037
+ * Successful Response
1038
+ */
1039
+ 200: ReflectResponse;
1040
+ };
1041
+
1042
+ export type ReflectResponse2 = ReflectResponses[keyof ReflectResponses];
1043
+
1044
+ export type ListBanksData = {
1045
+ body?: never;
1046
+ path?: never;
1047
+ query?: never;
1048
+ url: '/v1/default/banks';
1049
+ };
1050
+
1051
+ export type ListBanksResponses = {
1052
+ /**
1053
+ * Successful Response
1054
+ */
1055
+ 200: BankListResponse;
1056
+ };
1057
+
1058
+ export type ListBanksResponse = ListBanksResponses[keyof ListBanksResponses];
1059
+
1060
+ export type GetAgentStatsData = {
1061
+ body?: never;
1062
+ path: {
1063
+ /**
1064
+ * Bank Id
1065
+ */
1066
+ bank_id: string;
1067
+ };
1068
+ query?: never;
1069
+ url: '/v1/default/banks/{bank_id}/stats';
1070
+ };
1071
+
1072
+ export type GetAgentStatsErrors = {
1073
+ /**
1074
+ * Validation Error
1075
+ */
1076
+ 422: HttpValidationError;
1077
+ };
1078
+
1079
+ export type GetAgentStatsError = GetAgentStatsErrors[keyof GetAgentStatsErrors];
1080
+
1081
+ export type GetAgentStatsResponses = {
1082
+ /**
1083
+ * Successful Response
1084
+ */
1085
+ 200: unknown;
1086
+ };
1087
+
1088
+ export type ListEntitiesData = {
1089
+ body?: never;
1090
+ path: {
1091
+ /**
1092
+ * Bank Id
1093
+ */
1094
+ bank_id: string;
1095
+ };
1096
+ query?: {
1097
+ /**
1098
+ * Limit
1099
+ *
1100
+ * Maximum number of entities to return
1101
+ */
1102
+ limit?: number;
1103
+ };
1104
+ url: '/v1/default/banks/{bank_id}/entities';
1105
+ };
1106
+
1107
+ export type ListEntitiesErrors = {
1108
+ /**
1109
+ * Validation Error
1110
+ */
1111
+ 422: HttpValidationError;
1112
+ };
1113
+
1114
+ export type ListEntitiesError = ListEntitiesErrors[keyof ListEntitiesErrors];
1115
+
1116
+ export type ListEntitiesResponses = {
1117
+ /**
1118
+ * Successful Response
1119
+ */
1120
+ 200: EntityListResponse;
1121
+ };
1122
+
1123
+ export type ListEntitiesResponse = ListEntitiesResponses[keyof ListEntitiesResponses];
1124
+
1125
+ export type GetEntityData = {
1126
+ body?: never;
1127
+ path: {
1128
+ /**
1129
+ * Bank Id
1130
+ */
1131
+ bank_id: string;
1132
+ /**
1133
+ * Entity Id
1134
+ */
1135
+ entity_id: string;
1136
+ };
1137
+ query?: never;
1138
+ url: '/v1/default/banks/{bank_id}/entities/{entity_id}';
1139
+ };
1140
+
1141
+ export type GetEntityErrors = {
1142
+ /**
1143
+ * Validation Error
1144
+ */
1145
+ 422: HttpValidationError;
1146
+ };
1147
+
1148
+ export type GetEntityError = GetEntityErrors[keyof GetEntityErrors];
1149
+
1150
+ export type GetEntityResponses = {
1151
+ /**
1152
+ * Successful Response
1153
+ */
1154
+ 200: EntityDetailResponse;
1155
+ };
1156
+
1157
+ export type GetEntityResponse = GetEntityResponses[keyof GetEntityResponses];
1158
+
1159
+ export type RegenerateEntityObservationsData = {
1160
+ body?: never;
1161
+ path: {
1162
+ /**
1163
+ * Bank Id
1164
+ */
1165
+ bank_id: string;
1166
+ /**
1167
+ * Entity Id
1168
+ */
1169
+ entity_id: string;
1170
+ };
1171
+ query?: never;
1172
+ url: '/v1/default/banks/{bank_id}/entities/{entity_id}/regenerate';
1173
+ };
1174
+
1175
+ export type RegenerateEntityObservationsErrors = {
1176
+ /**
1177
+ * Validation Error
1178
+ */
1179
+ 422: HttpValidationError;
1180
+ };
1181
+
1182
+ export type RegenerateEntityObservationsError = RegenerateEntityObservationsErrors[keyof RegenerateEntityObservationsErrors];
1183
+
1184
+ export type RegenerateEntityObservationsResponses = {
1185
+ /**
1186
+ * Successful Response
1187
+ */
1188
+ 200: EntityDetailResponse;
1189
+ };
1190
+
1191
+ export type RegenerateEntityObservationsResponse = RegenerateEntityObservationsResponses[keyof RegenerateEntityObservationsResponses];
1192
+
1193
+ export type ListDocumentsData = {
1194
+ body?: never;
1195
+ path: {
1196
+ /**
1197
+ * Bank Id
1198
+ */
1199
+ bank_id: string;
1200
+ };
1201
+ query?: {
1202
+ /**
1203
+ * Q
1204
+ */
1205
+ q?: string | null;
1206
+ /**
1207
+ * Limit
1208
+ */
1209
+ limit?: number;
1210
+ /**
1211
+ * Offset
1212
+ */
1213
+ offset?: number;
1214
+ };
1215
+ url: '/v1/default/banks/{bank_id}/documents';
1216
+ };
1217
+
1218
+ export type ListDocumentsErrors = {
1219
+ /**
1220
+ * Validation Error
1221
+ */
1222
+ 422: HttpValidationError;
1223
+ };
1224
+
1225
+ export type ListDocumentsError = ListDocumentsErrors[keyof ListDocumentsErrors];
1226
+
1227
+ export type ListDocumentsResponses = {
1228
+ /**
1229
+ * Successful Response
1230
+ */
1231
+ 200: ListDocumentsResponse;
1232
+ };
1233
+
1234
+ export type ListDocumentsResponse2 = ListDocumentsResponses[keyof ListDocumentsResponses];
1235
+
1236
+ export type DeleteDocumentData = {
1237
+ body?: never;
1238
+ path: {
1239
+ /**
1240
+ * Bank Id
1241
+ */
1242
+ bank_id: string;
1243
+ /**
1244
+ * Document Id
1245
+ */
1246
+ document_id: string;
1247
+ };
1248
+ query?: never;
1249
+ url: '/v1/default/banks/{bank_id}/documents/{document_id}';
1250
+ };
1251
+
1252
+ export type DeleteDocumentErrors = {
1253
+ /**
1254
+ * Validation Error
1255
+ */
1256
+ 422: HttpValidationError;
1257
+ };
1258
+
1259
+ export type DeleteDocumentError = DeleteDocumentErrors[keyof DeleteDocumentErrors];
1260
+
1261
+ export type DeleteDocumentResponses = {
1262
+ /**
1263
+ * Successful Response
1264
+ */
1265
+ 200: unknown;
1266
+ };
1267
+
1268
+ export type GetDocumentData = {
1269
+ body?: never;
1270
+ path: {
1271
+ /**
1272
+ * Bank Id
1273
+ */
1274
+ bank_id: string;
1275
+ /**
1276
+ * Document Id
1277
+ */
1278
+ document_id: string;
1279
+ };
1280
+ query?: never;
1281
+ url: '/v1/default/banks/{bank_id}/documents/{document_id}';
1282
+ };
1283
+
1284
+ export type GetDocumentErrors = {
1285
+ /**
1286
+ * Validation Error
1287
+ */
1288
+ 422: HttpValidationError;
1289
+ };
1290
+
1291
+ export type GetDocumentError = GetDocumentErrors[keyof GetDocumentErrors];
1292
+
1293
+ export type GetDocumentResponses = {
1294
+ /**
1295
+ * Successful Response
1296
+ */
1297
+ 200: DocumentResponse;
1298
+ };
1299
+
1300
+ export type GetDocumentResponse = GetDocumentResponses[keyof GetDocumentResponses];
1301
+
1302
+ export type GetChunkData = {
1303
+ body?: never;
1304
+ path: {
1305
+ /**
1306
+ * Chunk Id
1307
+ */
1308
+ chunk_id: string;
1309
+ };
1310
+ query?: never;
1311
+ url: '/v1/default/chunks/{chunk_id}';
1312
+ };
1313
+
1314
+ export type GetChunkErrors = {
1315
+ /**
1316
+ * Validation Error
1317
+ */
1318
+ 422: HttpValidationError;
1319
+ };
1320
+
1321
+ export type GetChunkError = GetChunkErrors[keyof GetChunkErrors];
1322
+
1323
+ export type GetChunkResponses = {
1324
+ /**
1325
+ * Successful Response
1326
+ */
1327
+ 200: ChunkResponse;
1328
+ };
1329
+
1330
+ export type GetChunkResponse = GetChunkResponses[keyof GetChunkResponses];
1331
+
1332
+ export type ListOperationsData = {
1333
+ body?: never;
1334
+ path: {
1335
+ /**
1336
+ * Bank Id
1337
+ */
1338
+ bank_id: string;
1339
+ };
1340
+ query?: never;
1341
+ url: '/v1/default/banks/{bank_id}/operations';
1342
+ };
1343
+
1344
+ export type ListOperationsErrors = {
1345
+ /**
1346
+ * Validation Error
1347
+ */
1348
+ 422: HttpValidationError;
1349
+ };
1350
+
1351
+ export type ListOperationsError = ListOperationsErrors[keyof ListOperationsErrors];
1352
+
1353
+ export type ListOperationsResponses = {
1354
+ /**
1355
+ * Successful Response
1356
+ */
1357
+ 200: unknown;
1358
+ };
1359
+
1360
+ export type CancelOperationData = {
1361
+ body?: never;
1362
+ path: {
1363
+ /**
1364
+ * Bank Id
1365
+ */
1366
+ bank_id: string;
1367
+ /**
1368
+ * Operation Id
1369
+ */
1370
+ operation_id: string;
1371
+ };
1372
+ query?: never;
1373
+ url: '/v1/default/banks/{bank_id}/operations/{operation_id}';
1374
+ };
1375
+
1376
+ export type CancelOperationErrors = {
1377
+ /**
1378
+ * Validation Error
1379
+ */
1380
+ 422: HttpValidationError;
1381
+ };
1382
+
1383
+ export type CancelOperationError = CancelOperationErrors[keyof CancelOperationErrors];
1384
+
1385
+ export type CancelOperationResponses = {
1386
+ /**
1387
+ * Successful Response
1388
+ */
1389
+ 200: unknown;
1390
+ };
1391
+
1392
+ export type GetBankProfileData = {
1393
+ body?: never;
1394
+ path: {
1395
+ /**
1396
+ * Bank Id
1397
+ */
1398
+ bank_id: string;
1399
+ };
1400
+ query?: never;
1401
+ url: '/v1/default/banks/{bank_id}/profile';
1402
+ };
1403
+
1404
+ export type GetBankProfileErrors = {
1405
+ /**
1406
+ * Validation Error
1407
+ */
1408
+ 422: HttpValidationError;
1409
+ };
1410
+
1411
+ export type GetBankProfileError = GetBankProfileErrors[keyof GetBankProfileErrors];
1412
+
1413
+ export type GetBankProfileResponses = {
1414
+ /**
1415
+ * Successful Response
1416
+ */
1417
+ 200: BankProfileResponse;
1418
+ };
1419
+
1420
+ export type GetBankProfileResponse = GetBankProfileResponses[keyof GetBankProfileResponses];
1421
+
1422
+ export type UpdateBankPersonalityData = {
1423
+ body: UpdatePersonalityRequest;
1424
+ path: {
1425
+ /**
1426
+ * Bank Id
1427
+ */
1428
+ bank_id: string;
1429
+ };
1430
+ query?: never;
1431
+ url: '/v1/default/banks/{bank_id}/profile';
1432
+ };
1433
+
1434
+ export type UpdateBankPersonalityErrors = {
1435
+ /**
1436
+ * Validation Error
1437
+ */
1438
+ 422: HttpValidationError;
1439
+ };
1440
+
1441
+ export type UpdateBankPersonalityError = UpdateBankPersonalityErrors[keyof UpdateBankPersonalityErrors];
1442
+
1443
+ export type UpdateBankPersonalityResponses = {
1444
+ /**
1445
+ * Successful Response
1446
+ */
1447
+ 200: BankProfileResponse;
1448
+ };
1449
+
1450
+ export type UpdateBankPersonalityResponse = UpdateBankPersonalityResponses[keyof UpdateBankPersonalityResponses];
1451
+
1452
+ export type AddBankBackgroundData = {
1453
+ body: AddBackgroundRequest;
1454
+ path: {
1455
+ /**
1456
+ * Bank Id
1457
+ */
1458
+ bank_id: string;
1459
+ };
1460
+ query?: never;
1461
+ url: '/v1/default/banks/{bank_id}/background';
1462
+ };
1463
+
1464
+ export type AddBankBackgroundErrors = {
1465
+ /**
1466
+ * Validation Error
1467
+ */
1468
+ 422: HttpValidationError;
1469
+ };
1470
+
1471
+ export type AddBankBackgroundError = AddBankBackgroundErrors[keyof AddBankBackgroundErrors];
1472
+
1473
+ export type AddBankBackgroundResponses = {
1474
+ /**
1475
+ * Successful Response
1476
+ */
1477
+ 200: BackgroundResponse;
1478
+ };
1479
+
1480
+ export type AddBankBackgroundResponse = AddBankBackgroundResponses[keyof AddBankBackgroundResponses];
1481
+
1482
+ export type CreateOrUpdateBankData = {
1483
+ body: CreateBankRequest;
1484
+ path: {
1485
+ /**
1486
+ * Bank Id
1487
+ */
1488
+ bank_id: string;
1489
+ };
1490
+ query?: never;
1491
+ url: '/v1/default/banks/{bank_id}';
1492
+ };
1493
+
1494
+ export type CreateOrUpdateBankErrors = {
1495
+ /**
1496
+ * Validation Error
1497
+ */
1498
+ 422: HttpValidationError;
1499
+ };
1500
+
1501
+ export type CreateOrUpdateBankError = CreateOrUpdateBankErrors[keyof CreateOrUpdateBankErrors];
1502
+
1503
+ export type CreateOrUpdateBankResponses = {
1504
+ /**
1505
+ * Successful Response
1506
+ */
1507
+ 200: BankProfileResponse;
1508
+ };
1509
+
1510
+ export type CreateOrUpdateBankResponse = CreateOrUpdateBankResponses[keyof CreateOrUpdateBankResponses];
1511
+
1512
+ export type ClearBankMemoriesData = {
1513
+ body?: never;
1514
+ path: {
1515
+ /**
1516
+ * Bank Id
1517
+ */
1518
+ bank_id: string;
1519
+ };
1520
+ query?: {
1521
+ /**
1522
+ * Type
1523
+ *
1524
+ * Optional fact type filter (world, agent, opinion)
1525
+ */
1526
+ type?: string | null;
1527
+ };
1528
+ url: '/v1/default/banks/{bank_id}/memories';
1529
+ };
1530
+
1531
+ export type ClearBankMemoriesErrors = {
1532
+ /**
1533
+ * Validation Error
1534
+ */
1535
+ 422: HttpValidationError;
1536
+ };
1537
+
1538
+ export type ClearBankMemoriesError = ClearBankMemoriesErrors[keyof ClearBankMemoriesErrors];
1539
+
1540
+ export type ClearBankMemoriesResponses = {
1541
+ /**
1542
+ * Successful Response
1543
+ */
1544
+ 200: DeleteResponse;
1545
+ };
1546
+
1547
+ export type ClearBankMemoriesResponse = ClearBankMemoriesResponses[keyof ClearBankMemoriesResponses];
1548
+
1549
+ export type RetainMemoriesData = {
1550
+ body: RetainRequest;
1551
+ path: {
1552
+ /**
1553
+ * Bank Id
1554
+ */
1555
+ bank_id: string;
1556
+ };
1557
+ query?: never;
1558
+ url: '/v1/default/banks/{bank_id}/memories';
1559
+ };
1560
+
1561
+ export type RetainMemoriesErrors = {
1562
+ /**
1563
+ * Validation Error
1564
+ */
1565
+ 422: HttpValidationError;
1566
+ };
1567
+
1568
+ export type RetainMemoriesError = RetainMemoriesErrors[keyof RetainMemoriesErrors];
1569
+
1570
+ export type RetainMemoriesResponses = {
1571
+ /**
1572
+ * Successful Response
1573
+ */
1574
+ 200: RetainResponse;
1575
+ };
1576
+
1577
+ export type RetainMemoriesResponse = RetainMemoriesResponses[keyof RetainMemoriesResponses];