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