@eight-atulya/atulya-client 0.8.0

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 +89 -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 +417 -0
  59. package/dist/generated/sdk.gen.d.ts.map +1 -0
  60. package/dist/generated/sdk.gen.js +608 -0
  61. package/dist/generated/sdk.gen.js.map +1 -0
  62. package/dist/generated/types.gen.d.ts +4147 -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 +310 -0
  67. package/dist/src/index.d.ts.map +1 -0
  68. package/dist/src/index.js +518 -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 +242 -0
  73. package/generated/client/utils.gen.ts +337 -0
  74. package/generated/client.gen.ts +23 -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 +180 -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 +1163 -0
  85. package/generated/types.gen.ts +4560 -0
  86. package/package.json +42 -0
  87. package/src/index.ts +749 -0
@@ -0,0 +1,4560 @@
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. Deprecated: use SetMissionRequest instead.
11
+ */
12
+ export type AddBackgroundRequest = {
13
+ /**
14
+ * Content
15
+ *
16
+ * New background information to add or merge
17
+ */
18
+ content: string;
19
+ /**
20
+ * Update Disposition
21
+ *
22
+ * Deprecated - disposition is no longer auto-inferred from mission
23
+ */
24
+ update_disposition?: boolean;
25
+ };
26
+
27
+ /**
28
+ * AsyncOperationSubmitResponse
29
+ *
30
+ * Response model for submitting an async operation.
31
+ */
32
+ export type AsyncOperationSubmitResponse = {
33
+ /**
34
+ * Operation Id
35
+ */
36
+ operation_id: string;
37
+ /**
38
+ * Status
39
+ */
40
+ status: string;
41
+ };
42
+
43
+ /**
44
+ * BackgroundResponse
45
+ *
46
+ * Response model for background update. Deprecated: use MissionResponse instead.
47
+ */
48
+ export type BackgroundResponse = {
49
+ /**
50
+ * Mission
51
+ */
52
+ mission: string;
53
+ /**
54
+ * Background
55
+ *
56
+ * Deprecated: same as mission
57
+ */
58
+ background?: string | null;
59
+ disposition?: DispositionTraits | null;
60
+ };
61
+
62
+ /**
63
+ * BankConfigResponse
64
+ *
65
+ * Response model for bank configuration.
66
+ */
67
+ export type BankConfigResponse = {
68
+ /**
69
+ * Bank Id
70
+ *
71
+ * Bank identifier
72
+ */
73
+ bank_id: string;
74
+ /**
75
+ * Config
76
+ *
77
+ * Fully resolved configuration with all hierarchical overrides applied (Python field names)
78
+ */
79
+ config: {
80
+ [key: string]: unknown;
81
+ };
82
+ /**
83
+ * Overrides
84
+ *
85
+ * Bank-specific configuration overrides only (Python field names)
86
+ */
87
+ overrides: {
88
+ [key: string]: unknown;
89
+ };
90
+ };
91
+
92
+ /**
93
+ * BankConfigUpdate
94
+ *
95
+ * Request model for updating bank configuration.
96
+ */
97
+ export type BankConfigUpdate = {
98
+ /**
99
+ * Updates
100
+ *
101
+ * Configuration overrides. Keys can be in Python field format (llm_provider) or environment variable format (ATULYA_API_LLM_PROVIDER). Only hierarchical fields can be overridden per-bank.
102
+ */
103
+ updates: {
104
+ [key: string]: unknown;
105
+ };
106
+ };
107
+
108
+ /**
109
+ * BankListItem
110
+ *
111
+ * Bank list item with profile summary.
112
+ */
113
+ export type BankListItem = {
114
+ /**
115
+ * Bank Id
116
+ */
117
+ bank_id: string;
118
+ /**
119
+ * Name
120
+ */
121
+ name?: string | null;
122
+ disposition: DispositionTraits;
123
+ /**
124
+ * Mission
125
+ */
126
+ mission?: string | null;
127
+ /**
128
+ * Created At
129
+ */
130
+ created_at?: string | null;
131
+ /**
132
+ * Updated At
133
+ */
134
+ updated_at?: string | null;
135
+ };
136
+
137
+ /**
138
+ * BankListResponse
139
+ *
140
+ * Response model for listing all banks.
141
+ */
142
+ export type BankListResponse = {
143
+ /**
144
+ * Banks
145
+ */
146
+ banks: Array<BankListItem>;
147
+ };
148
+
149
+ /**
150
+ * BankProfileResponse
151
+ *
152
+ * Response model for bank profile.
153
+ */
154
+ export type BankProfileResponse = {
155
+ /**
156
+ * Bank Id
157
+ */
158
+ bank_id: string;
159
+ /**
160
+ * Name
161
+ */
162
+ name: string;
163
+ disposition: DispositionTraits;
164
+ /**
165
+ * Mission
166
+ *
167
+ * The agent's mission - who they are and what they're trying to accomplish
168
+ */
169
+ mission: string;
170
+ /**
171
+ * Background
172
+ *
173
+ * Deprecated: use mission instead
174
+ */
175
+ background?: string | null;
176
+ };
177
+
178
+ /**
179
+ * BankStatsResponse
180
+ *
181
+ * Response model for bank statistics endpoint.
182
+ */
183
+ export type BankStatsResponse = {
184
+ /**
185
+ * Bank Id
186
+ */
187
+ bank_id: string;
188
+ /**
189
+ * Total Nodes
190
+ */
191
+ total_nodes: number;
192
+ /**
193
+ * Total Links
194
+ */
195
+ total_links: number;
196
+ /**
197
+ * Total Documents
198
+ */
199
+ total_documents: number;
200
+ /**
201
+ * Nodes By Fact Type
202
+ */
203
+ nodes_by_fact_type: {
204
+ [key: string]: number;
205
+ };
206
+ /**
207
+ * Links By Link Type
208
+ */
209
+ links_by_link_type: {
210
+ [key: string]: number;
211
+ };
212
+ /**
213
+ * Links By Fact Type
214
+ */
215
+ links_by_fact_type: {
216
+ [key: string]: number;
217
+ };
218
+ /**
219
+ * Links Breakdown
220
+ */
221
+ links_breakdown: {
222
+ [key: string]: {
223
+ [key: string]: number;
224
+ };
225
+ };
226
+ /**
227
+ * Pending Operations
228
+ */
229
+ pending_operations: number;
230
+ /**
231
+ * Failed Operations
232
+ */
233
+ failed_operations: number;
234
+ /**
235
+ * Last Consolidated At
236
+ *
237
+ * When consolidation last ran (ISO format)
238
+ */
239
+ last_consolidated_at?: string | null;
240
+ /**
241
+ * Pending Consolidation
242
+ *
243
+ * Number of memories not yet processed into observations
244
+ */
245
+ pending_consolidation?: number;
246
+ /**
247
+ * Total Observations
248
+ *
249
+ * Total number of observations
250
+ */
251
+ total_observations?: number;
252
+ };
253
+
254
+ /**
255
+ * Body_file_retain
256
+ */
257
+ export type BodyFileRetain = {
258
+ /**
259
+ * Files
260
+ *
261
+ * Files to upload and convert
262
+ */
263
+ files: Array<Blob | File>;
264
+ /**
265
+ * Request
266
+ *
267
+ * JSON string with FileRetainRequest model
268
+ */
269
+ request: string;
270
+ };
271
+
272
+ /**
273
+ * Budget
274
+ *
275
+ * Budget levels for recall/reflect operations.
276
+ */
277
+ export type Budget = "low" | "mid" | "high";
278
+
279
+ /**
280
+ * CancelOperationResponse
281
+ *
282
+ * Response model for cancel operation endpoint.
283
+ */
284
+ export type CancelOperationResponse = {
285
+ /**
286
+ * Success
287
+ */
288
+ success: boolean;
289
+ /**
290
+ * Message
291
+ */
292
+ message: string;
293
+ /**
294
+ * Operation Id
295
+ */
296
+ operation_id: string;
297
+ };
298
+
299
+ /**
300
+ * ChildOperationStatus
301
+ *
302
+ * Status of a child operation (for batch operations).
303
+ */
304
+ export type ChildOperationStatus = {
305
+ /**
306
+ * Operation Id
307
+ */
308
+ operation_id: string;
309
+ /**
310
+ * Status
311
+ */
312
+ status: string;
313
+ /**
314
+ * Sub Batch Index
315
+ */
316
+ sub_batch_index?: number | null;
317
+ /**
318
+ * Items Count
319
+ */
320
+ items_count?: number | null;
321
+ /**
322
+ * Error Message
323
+ */
324
+ error_message?: string | null;
325
+ };
326
+
327
+ /**
328
+ * ChunkData
329
+ *
330
+ * Chunk data for a single chunk.
331
+ */
332
+ export type ChunkData = {
333
+ /**
334
+ * Id
335
+ */
336
+ id: string;
337
+ /**
338
+ * Text
339
+ */
340
+ text: string;
341
+ /**
342
+ * Chunk Index
343
+ */
344
+ chunk_index: number;
345
+ /**
346
+ * Truncated
347
+ *
348
+ * Whether the chunk text was truncated due to token limits
349
+ */
350
+ truncated?: boolean;
351
+ };
352
+
353
+ /**
354
+ * ChunkIncludeOptions
355
+ *
356
+ * Options for including chunks in recall results.
357
+ */
358
+ export type ChunkIncludeOptions = {
359
+ /**
360
+ * Max Tokens
361
+ *
362
+ * Maximum tokens for chunks (chunks may be truncated)
363
+ */
364
+ max_tokens?: number;
365
+ };
366
+
367
+ /**
368
+ * ChunkResponse
369
+ *
370
+ * Response model for get chunk endpoint.
371
+ */
372
+ export type ChunkResponse = {
373
+ /**
374
+ * Chunk Id
375
+ */
376
+ chunk_id: string;
377
+ /**
378
+ * Document Id
379
+ */
380
+ document_id: string;
381
+ /**
382
+ * Bank Id
383
+ */
384
+ bank_id: string;
385
+ /**
386
+ * Chunk Index
387
+ */
388
+ chunk_index: number;
389
+ /**
390
+ * Chunk Text
391
+ */
392
+ chunk_text: string;
393
+ /**
394
+ * Created At
395
+ */
396
+ created_at: string;
397
+ };
398
+
399
+ /**
400
+ * ClearMemoryObservationsResponse
401
+ *
402
+ * Response model for clearing observations for a specific memory.
403
+ */
404
+ export type ClearMemoryObservationsResponse = {
405
+ /**
406
+ * Deleted Count
407
+ */
408
+ deleted_count: number;
409
+ };
410
+
411
+ /**
412
+ * ConsolidationResponse
413
+ *
414
+ * Response model for consolidation trigger endpoint.
415
+ */
416
+ export type ConsolidationResponse = {
417
+ /**
418
+ * Operation Id
419
+ *
420
+ * ID of the async consolidation operation
421
+ */
422
+ operation_id: string;
423
+ /**
424
+ * Deduplicated
425
+ *
426
+ * True if an existing pending task was reused
427
+ */
428
+ deduplicated?: boolean;
429
+ };
430
+
431
+ /**
432
+ * CreateBankRequest
433
+ *
434
+ * Request model for creating/updating a bank.
435
+ */
436
+ export type CreateBankRequest = {
437
+ /**
438
+ * Name
439
+ *
440
+ * Deprecated: display label only, not advertised
441
+ */
442
+ name?: string | null;
443
+ /**
444
+ * Deprecated: use update_bank_config instead
445
+ */
446
+ disposition?: DispositionTraits | null;
447
+ /**
448
+ * Disposition Skepticism
449
+ *
450
+ * Deprecated: use update_bank_config instead
451
+ */
452
+ disposition_skepticism?: number | null;
453
+ /**
454
+ * Disposition Literalism
455
+ *
456
+ * Deprecated: use update_bank_config instead
457
+ */
458
+ disposition_literalism?: number | null;
459
+ /**
460
+ * Disposition Empathy
461
+ *
462
+ * Deprecated: use update_bank_config instead
463
+ */
464
+ disposition_empathy?: number | null;
465
+ /**
466
+ * Mission
467
+ *
468
+ * Deprecated: use update_bank_config with reflect_mission instead
469
+ */
470
+ mission?: string | null;
471
+ /**
472
+ * Background
473
+ *
474
+ * Deprecated: use update_bank_config with reflect_mission instead
475
+ */
476
+ background?: string | null;
477
+ /**
478
+ * Reflect Mission
479
+ *
480
+ * Mission/context for Reflect operations. Guides how Reflect interprets and uses memories.
481
+ */
482
+ reflect_mission?: string | null;
483
+ /**
484
+ * Retain Mission
485
+ *
486
+ * Steers what gets extracted during retain(). Injected alongside built-in extraction rules.
487
+ */
488
+ retain_mission?: string | null;
489
+ /**
490
+ * Retain Extraction Mode
491
+ *
492
+ * Fact extraction mode: 'concise' (default), 'verbose', or 'custom'.
493
+ */
494
+ retain_extraction_mode?: string | null;
495
+ /**
496
+ * Retain Custom Instructions
497
+ *
498
+ * Custom extraction prompt. Only active when retain_extraction_mode is 'custom'.
499
+ */
500
+ retain_custom_instructions?: string | null;
501
+ /**
502
+ * Retain Chunk Size
503
+ *
504
+ * Maximum token size for each content chunk during retain.
505
+ */
506
+ retain_chunk_size?: number | null;
507
+ /**
508
+ * Enable Observations
509
+ *
510
+ * Toggle automatic observation consolidation after retain().
511
+ */
512
+ enable_observations?: boolean | null;
513
+ /**
514
+ * Observations Mission
515
+ *
516
+ * Controls what gets synthesised into observations. Replaces built-in consolidation rules entirely.
517
+ */
518
+ observations_mission?: string | null;
519
+ };
520
+
521
+ /**
522
+ * CreateDirectiveRequest
523
+ *
524
+ * Request model for creating a directive.
525
+ */
526
+ export type CreateDirectiveRequest = {
527
+ /**
528
+ * Name
529
+ *
530
+ * Human-readable name for the directive
531
+ */
532
+ name: string;
533
+ /**
534
+ * Content
535
+ *
536
+ * The directive text to inject into prompts
537
+ */
538
+ content: string;
539
+ /**
540
+ * Priority
541
+ *
542
+ * Higher priority directives are injected first
543
+ */
544
+ priority?: number;
545
+ /**
546
+ * Is Active
547
+ *
548
+ * Whether this directive is active
549
+ */
550
+ is_active?: boolean;
551
+ /**
552
+ * Tags
553
+ *
554
+ * Tags for filtering
555
+ */
556
+ tags?: Array<string>;
557
+ };
558
+
559
+ /**
560
+ * CreateMentalModelRequest
561
+ *
562
+ * Request model for creating a mental model.
563
+ */
564
+ export type CreateMentalModelRequest = {
565
+ /**
566
+ * Id
567
+ *
568
+ * Optional custom ID for the mental model (alphanumeric lowercase with hyphens)
569
+ */
570
+ id?: string | null;
571
+ /**
572
+ * Name
573
+ *
574
+ * Human-readable name for the mental model
575
+ */
576
+ name: string;
577
+ /**
578
+ * Source Query
579
+ *
580
+ * The query to run to generate content
581
+ */
582
+ source_query: string;
583
+ /**
584
+ * Tags
585
+ *
586
+ * Tags for scoped visibility
587
+ */
588
+ tags?: Array<string>;
589
+ /**
590
+ * Max Tokens
591
+ *
592
+ * Maximum tokens for generated content
593
+ */
594
+ max_tokens?: number;
595
+ /**
596
+ * Trigger settings
597
+ */
598
+ trigger?: MentalModelTrigger;
599
+ };
600
+
601
+ /**
602
+ * CreateMentalModelResponse
603
+ *
604
+ * Response model for mental model creation.
605
+ */
606
+ export type CreateMentalModelResponse = {
607
+ /**
608
+ * Mental Model Id
609
+ *
610
+ * ID of the created mental model
611
+ */
612
+ mental_model_id?: string | null;
613
+ /**
614
+ * Operation Id
615
+ *
616
+ * Operation ID to track refresh progress
617
+ */
618
+ operation_id: string;
619
+ };
620
+
621
+ /**
622
+ * CreateWebhookRequest
623
+ *
624
+ * Request model for registering a webhook.
625
+ */
626
+ export type CreateWebhookRequest = {
627
+ /**
628
+ * Url
629
+ *
630
+ * HTTP(S) endpoint URL to deliver events to
631
+ */
632
+ url: string;
633
+ /**
634
+ * Secret
635
+ *
636
+ * HMAC-SHA256 signing secret (optional)
637
+ */
638
+ secret?: string | null;
639
+ /**
640
+ * Event Types
641
+ *
642
+ * List of event types to deliver. Currently supported: 'consolidation.completed'
643
+ */
644
+ event_types?: Array<string>;
645
+ /**
646
+ * Enabled
647
+ *
648
+ * Whether this webhook is active
649
+ */
650
+ enabled?: boolean;
651
+ /**
652
+ * HTTP delivery configuration (method, timeout, headers, params)
653
+ */
654
+ http_config?: WebhookHttpConfig;
655
+ };
656
+
657
+ /**
658
+ * DeleteDocumentResponse
659
+ *
660
+ * Response model for delete document endpoint.
661
+ */
662
+ export type DeleteDocumentResponse = {
663
+ /**
664
+ * Success
665
+ */
666
+ success: boolean;
667
+ /**
668
+ * Message
669
+ */
670
+ message: string;
671
+ /**
672
+ * Document Id
673
+ */
674
+ document_id: string;
675
+ /**
676
+ * Memory Units Deleted
677
+ */
678
+ memory_units_deleted: number;
679
+ };
680
+
681
+ /**
682
+ * DeleteResponse
683
+ *
684
+ * Response model for delete operations.
685
+ */
686
+ export type DeleteResponse = {
687
+ /**
688
+ * Success
689
+ */
690
+ success: boolean;
691
+ /**
692
+ * Message
693
+ */
694
+ message?: string | null;
695
+ /**
696
+ * Deleted Count
697
+ */
698
+ deleted_count?: number | null;
699
+ };
700
+
701
+ /**
702
+ * DirectiveListResponse
703
+ *
704
+ * Response model for listing directives.
705
+ */
706
+ export type DirectiveListResponse = {
707
+ /**
708
+ * Items
709
+ */
710
+ items: Array<DirectiveResponse>;
711
+ };
712
+
713
+ /**
714
+ * DirectiveResponse
715
+ *
716
+ * Response model for a directive.
717
+ */
718
+ export type DirectiveResponse = {
719
+ /**
720
+ * Id
721
+ */
722
+ id: string;
723
+ /**
724
+ * Bank Id
725
+ */
726
+ bank_id: string;
727
+ /**
728
+ * Name
729
+ */
730
+ name: string;
731
+ /**
732
+ * Content
733
+ */
734
+ content: string;
735
+ /**
736
+ * Priority
737
+ */
738
+ priority?: number;
739
+ /**
740
+ * Is Active
741
+ */
742
+ is_active?: boolean;
743
+ /**
744
+ * Tags
745
+ */
746
+ tags?: Array<string>;
747
+ /**
748
+ * Created At
749
+ */
750
+ created_at?: string | null;
751
+ /**
752
+ * Updated At
753
+ */
754
+ updated_at?: string | null;
755
+ };
756
+
757
+ /**
758
+ * DispositionTraits
759
+ *
760
+ * Disposition traits that influence how memories are formed and interpreted.
761
+ */
762
+ export type DispositionTraits = {
763
+ /**
764
+ * Skepticism
765
+ *
766
+ * How skeptical vs trusting (1=trusting, 5=skeptical)
767
+ */
768
+ skepticism: number;
769
+ /**
770
+ * Literalism
771
+ *
772
+ * How literally to interpret information (1=flexible, 5=literal)
773
+ */
774
+ literalism: number;
775
+ /**
776
+ * Empathy
777
+ *
778
+ * How much to consider emotional context (1=detached, 5=empathetic)
779
+ */
780
+ empathy: number;
781
+ };
782
+
783
+ /**
784
+ * DocumentResponse
785
+ *
786
+ * Response model for get document endpoint.
787
+ */
788
+ export type DocumentResponse = {
789
+ /**
790
+ * Id
791
+ */
792
+ id: string;
793
+ /**
794
+ * Bank Id
795
+ */
796
+ bank_id: string;
797
+ /**
798
+ * Original Text
799
+ */
800
+ original_text: string;
801
+ /**
802
+ * Content Hash
803
+ */
804
+ content_hash: string | null;
805
+ /**
806
+ * Created At
807
+ */
808
+ created_at: string;
809
+ /**
810
+ * Updated At
811
+ */
812
+ updated_at: string;
813
+ /**
814
+ * Memory Unit Count
815
+ */
816
+ memory_unit_count: number;
817
+ /**
818
+ * Tags
819
+ *
820
+ * Tags associated with this document
821
+ */
822
+ tags?: Array<string>;
823
+ };
824
+
825
+ /**
826
+ * EntityDetailResponse
827
+ *
828
+ * Response model for entity detail endpoint.
829
+ */
830
+ export type EntityDetailResponse = {
831
+ /**
832
+ * Id
833
+ */
834
+ id: string;
835
+ /**
836
+ * Canonical Name
837
+ */
838
+ canonical_name: string;
839
+ /**
840
+ * Mention Count
841
+ */
842
+ mention_count: number;
843
+ /**
844
+ * First Seen
845
+ */
846
+ first_seen?: string | null;
847
+ /**
848
+ * Last Seen
849
+ */
850
+ last_seen?: string | null;
851
+ /**
852
+ * Metadata
853
+ */
854
+ metadata?: {
855
+ [key: string]: unknown;
856
+ } | null;
857
+ /**
858
+ * Observations
859
+ */
860
+ observations: Array<EntityObservationResponse>;
861
+ };
862
+
863
+ /**
864
+ * EntityIncludeOptions
865
+ *
866
+ * Options for including entity observations in recall results.
867
+ */
868
+ export type EntityIncludeOptions = {
869
+ /**
870
+ * Max Tokens
871
+ *
872
+ * Maximum tokens for entity observations
873
+ */
874
+ max_tokens?: number;
875
+ };
876
+
877
+ /**
878
+ * EntityInput
879
+ *
880
+ * Entity to associate with retained content.
881
+ */
882
+ export type EntityInput = {
883
+ /**
884
+ * Text
885
+ *
886
+ * The entity name/text
887
+ */
888
+ text: string;
889
+ /**
890
+ * Type
891
+ *
892
+ * Optional entity type (e.g., 'PERSON', 'ORG', 'CONCEPT')
893
+ */
894
+ type?: string | null;
895
+ };
896
+
897
+ /**
898
+ * EntityListItem
899
+ *
900
+ * Entity list item with summary.
901
+ */
902
+ export type EntityListItem = {
903
+ /**
904
+ * Id
905
+ */
906
+ id: string;
907
+ /**
908
+ * Canonical Name
909
+ */
910
+ canonical_name: string;
911
+ /**
912
+ * Mention Count
913
+ */
914
+ mention_count: number;
915
+ /**
916
+ * First Seen
917
+ */
918
+ first_seen?: string | null;
919
+ /**
920
+ * Last Seen
921
+ */
922
+ last_seen?: string | null;
923
+ /**
924
+ * Metadata
925
+ */
926
+ metadata?: {
927
+ [key: string]: unknown;
928
+ } | null;
929
+ };
930
+
931
+ /**
932
+ * EntityListResponse
933
+ *
934
+ * Response model for entity list endpoint.
935
+ */
936
+ export type EntityListResponse = {
937
+ /**
938
+ * Items
939
+ */
940
+ items: Array<EntityListItem>;
941
+ /**
942
+ * Total
943
+ */
944
+ total: number;
945
+ /**
946
+ * Limit
947
+ */
948
+ limit: number;
949
+ /**
950
+ * Offset
951
+ */
952
+ offset: number;
953
+ };
954
+
955
+ /**
956
+ * EntityObservationResponse
957
+ *
958
+ * An observation about an entity.
959
+ */
960
+ export type EntityObservationResponse = {
961
+ /**
962
+ * Text
963
+ */
964
+ text: string;
965
+ /**
966
+ * Mentioned At
967
+ */
968
+ mentioned_at?: string | null;
969
+ };
970
+
971
+ /**
972
+ * EntityStateResponse
973
+ *
974
+ * Current mental model of an entity.
975
+ */
976
+ export type EntityStateResponse = {
977
+ /**
978
+ * Entity Id
979
+ */
980
+ entity_id: string;
981
+ /**
982
+ * Canonical Name
983
+ */
984
+ canonical_name: string;
985
+ /**
986
+ * Observations
987
+ */
988
+ observations: Array<EntityObservationResponse>;
989
+ };
990
+
991
+ /**
992
+ * FactsIncludeOptions
993
+ *
994
+ * Options for including facts (based_on) in reflect results.
995
+ */
996
+ export type FactsIncludeOptions = {
997
+ [key: string]: unknown;
998
+ };
999
+
1000
+ /**
1001
+ * FeaturesInfo
1002
+ *
1003
+ * Feature flags indicating which capabilities are enabled.
1004
+ */
1005
+ export type FeaturesInfo = {
1006
+ /**
1007
+ * Observations
1008
+ *
1009
+ * Whether observations (auto-consolidation) are enabled
1010
+ */
1011
+ observations: boolean;
1012
+ /**
1013
+ * Mcp
1014
+ *
1015
+ * Whether MCP (Model Context Protocol) server is enabled
1016
+ */
1017
+ mcp: boolean;
1018
+ /**
1019
+ * Worker
1020
+ *
1021
+ * Whether the background worker is enabled
1022
+ */
1023
+ worker: boolean;
1024
+ /**
1025
+ * Bank Config Api
1026
+ *
1027
+ * Whether per-bank configuration API is enabled
1028
+ */
1029
+ bank_config_api: boolean;
1030
+ /**
1031
+ * File Upload Api
1032
+ *
1033
+ * Whether file upload/conversion API is enabled
1034
+ */
1035
+ file_upload_api: boolean;
1036
+ };
1037
+
1038
+ /**
1039
+ * FileRetainResponse
1040
+ *
1041
+ * Response model for file upload endpoint.
1042
+ */
1043
+ export type FileRetainResponse = {
1044
+ /**
1045
+ * Operation Ids
1046
+ *
1047
+ * Operation IDs for tracking file conversion operations. Use GET /v1/default/banks/{bank_id}/operations to list operations.
1048
+ */
1049
+ operation_ids: Array<string>;
1050
+ };
1051
+
1052
+ /**
1053
+ * GraphDataResponse
1054
+ *
1055
+ * Response model for graph data endpoint.
1056
+ */
1057
+ export type GraphDataResponse = {
1058
+ /**
1059
+ * Nodes
1060
+ */
1061
+ nodes: Array<{
1062
+ [key: string]: unknown;
1063
+ }>;
1064
+ /**
1065
+ * Edges
1066
+ */
1067
+ edges: Array<{
1068
+ [key: string]: unknown;
1069
+ }>;
1070
+ /**
1071
+ * Table Rows
1072
+ */
1073
+ table_rows: Array<{
1074
+ [key: string]: unknown;
1075
+ }>;
1076
+ /**
1077
+ * Total Units
1078
+ */
1079
+ total_units: number;
1080
+ /**
1081
+ * Limit
1082
+ */
1083
+ limit: number;
1084
+ };
1085
+
1086
+ /**
1087
+ * HTTPValidationError
1088
+ */
1089
+ export type HttpValidationError = {
1090
+ /**
1091
+ * Detail
1092
+ */
1093
+ detail?: Array<ValidationError>;
1094
+ };
1095
+
1096
+ /**
1097
+ * IncludeOptions
1098
+ *
1099
+ * Options for including additional data in recall results.
1100
+ */
1101
+ export type IncludeOptions = {
1102
+ /**
1103
+ * Include entity observations. Set to null to disable entity inclusion.
1104
+ */
1105
+ entities?: EntityIncludeOptions | null;
1106
+ /**
1107
+ * Include raw chunks. Set to {} to enable, null to disable (default: disabled).
1108
+ */
1109
+ chunks?: ChunkIncludeOptions | null;
1110
+ /**
1111
+ * Include source facts for observation-type results. Set to {} to enable, null to disable (default: disabled).
1112
+ */
1113
+ source_facts?: SourceFactsIncludeOptions | null;
1114
+ };
1115
+
1116
+ /**
1117
+ * ListDocumentsResponse
1118
+ *
1119
+ * Response model for list documents endpoint.
1120
+ */
1121
+ export type ListDocumentsResponse = {
1122
+ /**
1123
+ * Items
1124
+ */
1125
+ items: Array<{
1126
+ [key: string]: unknown;
1127
+ }>;
1128
+ /**
1129
+ * Total
1130
+ */
1131
+ total: number;
1132
+ /**
1133
+ * Limit
1134
+ */
1135
+ limit: number;
1136
+ /**
1137
+ * Offset
1138
+ */
1139
+ offset: number;
1140
+ };
1141
+
1142
+ /**
1143
+ * ListMemoryUnitsResponse
1144
+ *
1145
+ * Response model for list memory units endpoint.
1146
+ */
1147
+ export type ListMemoryUnitsResponse = {
1148
+ /**
1149
+ * Items
1150
+ */
1151
+ items: Array<{
1152
+ [key: string]: unknown;
1153
+ }>;
1154
+ /**
1155
+ * Total
1156
+ */
1157
+ total: number;
1158
+ /**
1159
+ * Limit
1160
+ */
1161
+ limit: number;
1162
+ /**
1163
+ * Offset
1164
+ */
1165
+ offset: number;
1166
+ };
1167
+
1168
+ /**
1169
+ * ListTagsResponse
1170
+ *
1171
+ * Response model for list tags endpoint.
1172
+ */
1173
+ export type ListTagsResponse = {
1174
+ /**
1175
+ * Items
1176
+ */
1177
+ items: Array<TagItem>;
1178
+ /**
1179
+ * Total
1180
+ */
1181
+ total: number;
1182
+ /**
1183
+ * Limit
1184
+ */
1185
+ limit: number;
1186
+ /**
1187
+ * Offset
1188
+ */
1189
+ offset: number;
1190
+ };
1191
+
1192
+ /**
1193
+ * MemoryItem
1194
+ *
1195
+ * Single memory item for retain.
1196
+ */
1197
+ export type MemoryItem = {
1198
+ /**
1199
+ * Content
1200
+ */
1201
+ content: string;
1202
+ /**
1203
+ * Timestamp
1204
+ *
1205
+ * When the content occurred. Accepts an ISO 8601 datetime string (e.g. '2024-01-15T10:30:00Z'), null/omitted (defaults to now), or the special string 'unset' to explicitly store without any timestamp (use this for timeless content such as fictional documents or static reference material).
1206
+ */
1207
+ timestamp?: string | null;
1208
+ /**
1209
+ * Context
1210
+ */
1211
+ context?: string | null;
1212
+ /**
1213
+ * Metadata
1214
+ */
1215
+ metadata?: {
1216
+ [key: string]: string;
1217
+ } | null;
1218
+ /**
1219
+ * Document Id
1220
+ *
1221
+ * Optional document ID for this memory item.
1222
+ */
1223
+ document_id?: string | null;
1224
+ /**
1225
+ * Entities
1226
+ *
1227
+ * Optional entities to combine with auto-extracted entities.
1228
+ */
1229
+ entities?: Array<EntityInput> | null;
1230
+ /**
1231
+ * Tags
1232
+ *
1233
+ * Optional tags for visibility scoping. Memories with tags can be filtered during recall.
1234
+ */
1235
+ tags?: Array<string> | null;
1236
+ /**
1237
+ * ObservationScopes
1238
+ *
1239
+ * 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.
1240
+ */
1241
+ observation_scopes?:
1242
+ | "per_tag"
1243
+ | "combined"
1244
+ | "all_combinations"
1245
+ | Array<Array<string>>
1246
+ | null;
1247
+ };
1248
+
1249
+ /**
1250
+ * MentalModelListResponse
1251
+ *
1252
+ * Response model for listing mental models.
1253
+ */
1254
+ export type MentalModelListResponse = {
1255
+ /**
1256
+ * Items
1257
+ */
1258
+ items: Array<MentalModelResponse>;
1259
+ };
1260
+
1261
+ /**
1262
+ * MentalModelResponse
1263
+ *
1264
+ * Response model for a mental model (stored reflect response).
1265
+ */
1266
+ export type MentalModelResponse = {
1267
+ /**
1268
+ * Id
1269
+ */
1270
+ id: string;
1271
+ /**
1272
+ * Bank Id
1273
+ */
1274
+ bank_id: string;
1275
+ /**
1276
+ * Name
1277
+ */
1278
+ name: string;
1279
+ /**
1280
+ * Source Query
1281
+ */
1282
+ source_query: string;
1283
+ /**
1284
+ * Content
1285
+ *
1286
+ * The mental model content as well-formatted markdown (auto-generated from reflect endpoint)
1287
+ */
1288
+ content: string;
1289
+ /**
1290
+ * Tags
1291
+ */
1292
+ tags?: Array<string>;
1293
+ /**
1294
+ * Max Tokens
1295
+ */
1296
+ max_tokens?: number;
1297
+ trigger?: MentalModelTrigger;
1298
+ /**
1299
+ * Last Refreshed At
1300
+ */
1301
+ last_refreshed_at?: string | null;
1302
+ /**
1303
+ * Created At
1304
+ */
1305
+ created_at?: string | null;
1306
+ /**
1307
+ * Reflect Response
1308
+ *
1309
+ * Full reflect API response payload including based_on facts and observations
1310
+ */
1311
+ reflect_response?: {
1312
+ [key: string]: unknown;
1313
+ } | null;
1314
+ };
1315
+
1316
+ /**
1317
+ * MentalModelTrigger
1318
+ *
1319
+ * Trigger settings for a mental model.
1320
+ */
1321
+ export type MentalModelTrigger = {
1322
+ /**
1323
+ * Refresh After Consolidation
1324
+ *
1325
+ * If true, refresh this mental model after observations consolidation (real-time mode)
1326
+ */
1327
+ refresh_after_consolidation?: boolean;
1328
+ };
1329
+
1330
+ /**
1331
+ * OperationResponse
1332
+ *
1333
+ * Response model for a single async operation.
1334
+ */
1335
+ export type OperationResponse = {
1336
+ /**
1337
+ * Id
1338
+ */
1339
+ id: string;
1340
+ /**
1341
+ * Task Type
1342
+ */
1343
+ task_type: string;
1344
+ /**
1345
+ * Items Count
1346
+ */
1347
+ items_count: number;
1348
+ /**
1349
+ * Document Id
1350
+ */
1351
+ document_id?: string | null;
1352
+ /**
1353
+ * Created At
1354
+ */
1355
+ created_at: string;
1356
+ /**
1357
+ * Status
1358
+ */
1359
+ status: string;
1360
+ /**
1361
+ * Error Message
1362
+ */
1363
+ error_message: string | null;
1364
+ };
1365
+
1366
+ /**
1367
+ * OperationStatusResponse
1368
+ *
1369
+ * Response model for getting a single operation status.
1370
+ */
1371
+ export type OperationStatusResponse = {
1372
+ /**
1373
+ * Operation Id
1374
+ */
1375
+ operation_id: string;
1376
+ /**
1377
+ * Status
1378
+ */
1379
+ status: "pending" | "completed" | "failed" | "not_found";
1380
+ /**
1381
+ * Operation Type
1382
+ */
1383
+ operation_type?: string | null;
1384
+ /**
1385
+ * Created At
1386
+ */
1387
+ created_at?: string | null;
1388
+ /**
1389
+ * Updated At
1390
+ */
1391
+ updated_at?: string | null;
1392
+ /**
1393
+ * Completed At
1394
+ */
1395
+ completed_at?: string | null;
1396
+ /**
1397
+ * Error Message
1398
+ */
1399
+ error_message?: string | null;
1400
+ /**
1401
+ * Result Metadata
1402
+ *
1403
+ * Internal metadata for debugging. Structure may change without notice. Not for production use.
1404
+ */
1405
+ result_metadata?: {
1406
+ [key: string]: unknown;
1407
+ } | null;
1408
+ /**
1409
+ * Child Operations
1410
+ *
1411
+ * Child operations for batch operations (if applicable)
1412
+ */
1413
+ child_operations?: Array<ChildOperationStatus> | null;
1414
+ };
1415
+
1416
+ /**
1417
+ * OperationsListResponse
1418
+ *
1419
+ * Response model for list operations endpoint.
1420
+ */
1421
+ export type OperationsListResponse = {
1422
+ /**
1423
+ * Bank Id
1424
+ */
1425
+ bank_id: string;
1426
+ /**
1427
+ * Total
1428
+ */
1429
+ total: number;
1430
+ /**
1431
+ * Limit
1432
+ */
1433
+ limit: number;
1434
+ /**
1435
+ * Offset
1436
+ */
1437
+ offset: number;
1438
+ /**
1439
+ * Operations
1440
+ */
1441
+ operations: Array<OperationResponse>;
1442
+ };
1443
+
1444
+ /**
1445
+ * RecallRequest
1446
+ *
1447
+ * Request model for recall endpoint.
1448
+ */
1449
+ export type RecallRequest = {
1450
+ /**
1451
+ * Query
1452
+ */
1453
+ query: string;
1454
+ /**
1455
+ * Types
1456
+ *
1457
+ * List of fact types to recall: 'world', 'experience', 'observation'. Defaults to world and experience if not specified.
1458
+ */
1459
+ types?: Array<string> | null;
1460
+ budget?: Budget;
1461
+ /**
1462
+ * Max Tokens
1463
+ */
1464
+ max_tokens?: number;
1465
+ /**
1466
+ * Trace
1467
+ */
1468
+ trace?: boolean;
1469
+ /**
1470
+ * Query Timestamp
1471
+ *
1472
+ * ISO format date string (e.g., '2023-05-30T23:40:00')
1473
+ */
1474
+ query_timestamp?: string | null;
1475
+ /**
1476
+ * Options for including additional data (entities are included by default)
1477
+ */
1478
+ include?: IncludeOptions;
1479
+ /**
1480
+ * Tags
1481
+ *
1482
+ * Filter memories by tags. If not specified, all memories are returned.
1483
+ */
1484
+ tags?: Array<string> | null;
1485
+ /**
1486
+ * Tags Match
1487
+ *
1488
+ * How to match tags: 'any' (OR, includes untagged), 'all' (AND, includes untagged), 'any_strict' (OR, excludes untagged), 'all_strict' (AND, excludes untagged).
1489
+ */
1490
+ tags_match?: "any" | "all" | "any_strict" | "all_strict";
1491
+ };
1492
+
1493
+ /**
1494
+ * RecallResponse
1495
+ *
1496
+ * Response model for recall endpoints.
1497
+ */
1498
+ export type RecallResponse = {
1499
+ /**
1500
+ * Results
1501
+ */
1502
+ results: Array<RecallResult>;
1503
+ /**
1504
+ * Trace
1505
+ */
1506
+ trace?: {
1507
+ [key: string]: unknown;
1508
+ } | null;
1509
+ /**
1510
+ * Entities
1511
+ *
1512
+ * Entity states for entities mentioned in results
1513
+ */
1514
+ entities?: {
1515
+ [key: string]: EntityStateResponse;
1516
+ } | null;
1517
+ /**
1518
+ * Chunks
1519
+ *
1520
+ * Chunks for facts, keyed by chunk_id
1521
+ */
1522
+ chunks?: {
1523
+ [key: string]: ChunkData;
1524
+ } | null;
1525
+ /**
1526
+ * Source Facts
1527
+ *
1528
+ * Source facts for observation-type results, keyed by fact ID
1529
+ */
1530
+ source_facts?: {
1531
+ [key: string]: RecallResult;
1532
+ } | null;
1533
+ };
1534
+
1535
+ /**
1536
+ * RecallResult
1537
+ *
1538
+ * Single recall result item.
1539
+ */
1540
+ export type RecallResult = {
1541
+ /**
1542
+ * Id
1543
+ */
1544
+ id: string;
1545
+ /**
1546
+ * Text
1547
+ */
1548
+ text: string;
1549
+ /**
1550
+ * Type
1551
+ */
1552
+ type?: string | null;
1553
+ /**
1554
+ * Entities
1555
+ */
1556
+ entities?: Array<string> | null;
1557
+ /**
1558
+ * Context
1559
+ */
1560
+ context?: string | null;
1561
+ /**
1562
+ * Occurred Start
1563
+ */
1564
+ occurred_start?: string | null;
1565
+ /**
1566
+ * Occurred End
1567
+ */
1568
+ occurred_end?: string | null;
1569
+ /**
1570
+ * Mentioned At
1571
+ */
1572
+ mentioned_at?: string | null;
1573
+ /**
1574
+ * Document Id
1575
+ */
1576
+ document_id?: string | null;
1577
+ /**
1578
+ * Metadata
1579
+ */
1580
+ metadata?: {
1581
+ [key: string]: string;
1582
+ } | null;
1583
+ /**
1584
+ * Chunk Id
1585
+ */
1586
+ chunk_id?: string | null;
1587
+ /**
1588
+ * Tags
1589
+ */
1590
+ tags?: Array<string> | null;
1591
+ /**
1592
+ * Source Fact Ids
1593
+ */
1594
+ source_fact_ids?: Array<string> | null;
1595
+ };
1596
+
1597
+ /**
1598
+ * ReflectBasedOn
1599
+ *
1600
+ * Evidence the response is based on: memories, mental models, and directives.
1601
+ */
1602
+ export type ReflectBasedOn = {
1603
+ /**
1604
+ * Memories
1605
+ *
1606
+ * Memory facts used to generate the response
1607
+ */
1608
+ memories?: Array<ReflectFact>;
1609
+ /**
1610
+ * Mental Models
1611
+ *
1612
+ * Mental models used during reflection
1613
+ */
1614
+ mental_models?: Array<ReflectMentalModel>;
1615
+ /**
1616
+ * Directives
1617
+ *
1618
+ * Directives applied during reflection
1619
+ */
1620
+ directives?: Array<ReflectDirective>;
1621
+ };
1622
+
1623
+ /**
1624
+ * ReflectDirective
1625
+ *
1626
+ * A directive applied during reflect.
1627
+ */
1628
+ export type ReflectDirective = {
1629
+ /**
1630
+ * Id
1631
+ *
1632
+ * Directive ID
1633
+ */
1634
+ id: string;
1635
+ /**
1636
+ * Name
1637
+ *
1638
+ * Directive name
1639
+ */
1640
+ name: string;
1641
+ /**
1642
+ * Content
1643
+ *
1644
+ * Directive content
1645
+ */
1646
+ content: string;
1647
+ };
1648
+
1649
+ /**
1650
+ * ReflectFact
1651
+ *
1652
+ * A fact used in think response.
1653
+ */
1654
+ export type ReflectFact = {
1655
+ /**
1656
+ * Id
1657
+ */
1658
+ id?: string | null;
1659
+ /**
1660
+ * Text
1661
+ *
1662
+ * Fact text. When type='observation', this contains markdown-formatted consolidated knowledge
1663
+ */
1664
+ text: string;
1665
+ /**
1666
+ * Type
1667
+ */
1668
+ type?: string | null;
1669
+ /**
1670
+ * Context
1671
+ */
1672
+ context?: string | null;
1673
+ /**
1674
+ * Occurred Start
1675
+ */
1676
+ occurred_start?: string | null;
1677
+ /**
1678
+ * Occurred End
1679
+ */
1680
+ occurred_end?: string | null;
1681
+ };
1682
+
1683
+ /**
1684
+ * ReflectIncludeOptions
1685
+ *
1686
+ * Options for including additional data in reflect results.
1687
+ */
1688
+ export type ReflectIncludeOptions = {
1689
+ /**
1690
+ * Include facts that the answer is based on. Set to {} to enable, null to disable (default: disabled).
1691
+ */
1692
+ facts?: FactsIncludeOptions | null;
1693
+ /**
1694
+ * Include tool calls trace. Set to {} for full trace (input+output), {output: false} for inputs only.
1695
+ */
1696
+ tool_calls?: ToolCallsIncludeOptions | null;
1697
+ };
1698
+
1699
+ /**
1700
+ * ReflectLLMCall
1701
+ *
1702
+ * An LLM call made during reflect agent execution.
1703
+ */
1704
+ export type ReflectLlmCall = {
1705
+ /**
1706
+ * Scope
1707
+ *
1708
+ * Call scope: agent_1, agent_2, final, etc.
1709
+ */
1710
+ scope: string;
1711
+ /**
1712
+ * Duration Ms
1713
+ *
1714
+ * Execution time in milliseconds
1715
+ */
1716
+ duration_ms: number;
1717
+ };
1718
+
1719
+ /**
1720
+ * ReflectMentalModel
1721
+ *
1722
+ * A mental model used during reflect.
1723
+ */
1724
+ export type ReflectMentalModel = {
1725
+ /**
1726
+ * Id
1727
+ *
1728
+ * Mental model ID
1729
+ */
1730
+ id: string;
1731
+ /**
1732
+ * Text
1733
+ *
1734
+ * Mental model content
1735
+ */
1736
+ text: string;
1737
+ /**
1738
+ * Context
1739
+ *
1740
+ * Additional context
1741
+ */
1742
+ context?: string | null;
1743
+ };
1744
+
1745
+ /**
1746
+ * ReflectRequest
1747
+ *
1748
+ * Request model for reflect endpoint.
1749
+ */
1750
+ export type ReflectRequest = {
1751
+ /**
1752
+ * Query
1753
+ */
1754
+ query: string;
1755
+ budget?: Budget;
1756
+ /**
1757
+ * Context
1758
+ *
1759
+ * DEPRECATED: Additional context is now concatenated with the query. Pass context directly in the query field instead. If provided, it will be appended to the query for backward compatibility.
1760
+ *
1761
+ * @deprecated
1762
+ */
1763
+ context?: string | null;
1764
+ /**
1765
+ * Max Tokens
1766
+ *
1767
+ * Maximum tokens for the response
1768
+ */
1769
+ max_tokens?: number;
1770
+ /**
1771
+ * Options for including additional data (disabled by default)
1772
+ */
1773
+ include?: ReflectIncludeOptions;
1774
+ /**
1775
+ * Response Schema
1776
+ *
1777
+ * Optional JSON Schema for structured output. When provided, the response will include a 'structured_output' field with the LLM response parsed according to this schema.
1778
+ */
1779
+ response_schema?: {
1780
+ [key: string]: unknown;
1781
+ } | null;
1782
+ /**
1783
+ * Tags
1784
+ *
1785
+ * Filter memories by tags during reflection. If not specified, all memories are considered.
1786
+ */
1787
+ tags?: Array<string> | null;
1788
+ /**
1789
+ * Tags Match
1790
+ *
1791
+ * How to match tags: 'any' (OR, includes untagged), 'all' (AND, includes untagged), 'any_strict' (OR, excludes untagged), 'all_strict' (AND, excludes untagged).
1792
+ */
1793
+ tags_match?: "any" | "all" | "any_strict" | "all_strict";
1794
+ };
1795
+
1796
+ /**
1797
+ * ReflectResponse
1798
+ *
1799
+ * Response model for think endpoint.
1800
+ */
1801
+ export type ReflectResponse = {
1802
+ /**
1803
+ * Text
1804
+ *
1805
+ * The reflect response as well-formatted markdown (headers, lists, bold/italic, code blocks, etc.)
1806
+ */
1807
+ text: string;
1808
+ /**
1809
+ * Evidence used to generate the response. Only present when include.facts is set.
1810
+ */
1811
+ based_on?: ReflectBasedOn | null;
1812
+ /**
1813
+ * Structured Output
1814
+ *
1815
+ * Structured output parsed according to the request's response_schema. Only present when response_schema was provided in the request.
1816
+ */
1817
+ structured_output?: {
1818
+ [key: string]: unknown;
1819
+ } | null;
1820
+ /**
1821
+ * Token usage metrics for LLM calls during reflection.
1822
+ */
1823
+ usage?: TokenUsage | null;
1824
+ /**
1825
+ * Execution trace of tool and LLM calls. Only present when include.tool_calls is set.
1826
+ */
1827
+ trace?: ReflectTrace | null;
1828
+ };
1829
+
1830
+ /**
1831
+ * ReflectToolCall
1832
+ *
1833
+ * A tool call made during reflect agent execution.
1834
+ */
1835
+ export type ReflectToolCall = {
1836
+ /**
1837
+ * Tool
1838
+ *
1839
+ * Tool name: lookup, recall, learn, expand
1840
+ */
1841
+ tool: string;
1842
+ /**
1843
+ * Input
1844
+ *
1845
+ * Tool input parameters
1846
+ */
1847
+ input: {
1848
+ [key: string]: unknown;
1849
+ };
1850
+ /**
1851
+ * Output
1852
+ *
1853
+ * Tool output (only included when include.tool_calls.output is true)
1854
+ */
1855
+ output?: {
1856
+ [key: string]: unknown;
1857
+ } | null;
1858
+ /**
1859
+ * Duration Ms
1860
+ *
1861
+ * Execution time in milliseconds
1862
+ */
1863
+ duration_ms: number;
1864
+ /**
1865
+ * Iteration
1866
+ *
1867
+ * Iteration number (1-based) when this tool was called
1868
+ */
1869
+ iteration?: number;
1870
+ };
1871
+
1872
+ /**
1873
+ * ReflectTrace
1874
+ *
1875
+ * Execution trace of LLM and tool calls during reflection.
1876
+ */
1877
+ export type ReflectTrace = {
1878
+ /**
1879
+ * Tool Calls
1880
+ *
1881
+ * Tool calls made during reflection
1882
+ */
1883
+ tool_calls?: Array<ReflectToolCall>;
1884
+ /**
1885
+ * Llm Calls
1886
+ *
1887
+ * LLM calls made during reflection
1888
+ */
1889
+ llm_calls?: Array<ReflectLlmCall>;
1890
+ };
1891
+
1892
+ /**
1893
+ * RetainRequest
1894
+ *
1895
+ * Request model for retain endpoint.
1896
+ */
1897
+ export type RetainRequest = {
1898
+ /**
1899
+ * Items
1900
+ */
1901
+ items: Array<MemoryItem>;
1902
+ /**
1903
+ * Async
1904
+ *
1905
+ * If true, process asynchronously in background. If false, wait for completion (default: false)
1906
+ */
1907
+ async?: boolean;
1908
+ /**
1909
+ * Document Tags
1910
+ *
1911
+ * Deprecated. Use item-level tags instead.
1912
+ *
1913
+ * @deprecated
1914
+ */
1915
+ document_tags?: Array<string> | null;
1916
+ };
1917
+
1918
+ /**
1919
+ * RetainResponse
1920
+ *
1921
+ * Response model for retain endpoint.
1922
+ */
1923
+ export type RetainResponse = {
1924
+ /**
1925
+ * Success
1926
+ */
1927
+ success: boolean;
1928
+ /**
1929
+ * Bank Id
1930
+ */
1931
+ bank_id: string;
1932
+ /**
1933
+ * Items Count
1934
+ */
1935
+ items_count: number;
1936
+ /**
1937
+ * Async
1938
+ *
1939
+ * Whether the operation was processed asynchronously
1940
+ */
1941
+ async: boolean;
1942
+ /**
1943
+ * Operation Id
1944
+ *
1945
+ * Operation ID for tracking async operations. Use GET /v1/default/banks/{bank_id}/operations to list operations. Only present when async=true.
1946
+ */
1947
+ operation_id?: string | null;
1948
+ /**
1949
+ * Token usage metrics for LLM calls during fact extraction (only present for synchronous operations)
1950
+ */
1951
+ usage?: TokenUsage | null;
1952
+ };
1953
+
1954
+ /**
1955
+ * SourceFactsIncludeOptions
1956
+ *
1957
+ * Options for including source facts for observation-type results.
1958
+ */
1959
+ export type SourceFactsIncludeOptions = {
1960
+ /**
1961
+ * Max Tokens
1962
+ *
1963
+ * Maximum total tokens for source facts across all observations (-1 = unlimited)
1964
+ */
1965
+ max_tokens?: number;
1966
+ /**
1967
+ * Max Tokens Per Observation
1968
+ *
1969
+ * Maximum tokens of source facts per observation (-1 = unlimited)
1970
+ */
1971
+ max_tokens_per_observation?: number;
1972
+ };
1973
+
1974
+ /**
1975
+ * TagItem
1976
+ *
1977
+ * Single tag with usage count.
1978
+ */
1979
+ export type TagItem = {
1980
+ /**
1981
+ * Tag
1982
+ *
1983
+ * The tag value
1984
+ */
1985
+ tag: string;
1986
+ /**
1987
+ * Count
1988
+ *
1989
+ * Number of memories with this tag
1990
+ */
1991
+ count: number;
1992
+ };
1993
+
1994
+ /**
1995
+ * TokenUsage
1996
+ *
1997
+ * Token usage metrics for LLM calls.
1998
+ *
1999
+ * Tracks input/output tokens for a single request to enable
2000
+ * per-request cost tracking and monitoring.
2001
+ */
2002
+ export type TokenUsage = {
2003
+ /**
2004
+ * Input Tokens
2005
+ *
2006
+ * Number of input/prompt tokens consumed
2007
+ */
2008
+ input_tokens?: number;
2009
+ /**
2010
+ * Output Tokens
2011
+ *
2012
+ * Number of output/completion tokens generated
2013
+ */
2014
+ output_tokens?: number;
2015
+ /**
2016
+ * Total Tokens
2017
+ *
2018
+ * Total tokens (input + output)
2019
+ */
2020
+ total_tokens?: number;
2021
+ };
2022
+
2023
+ /**
2024
+ * ToolCallsIncludeOptions
2025
+ *
2026
+ * Options for including tool calls in reflect results.
2027
+ */
2028
+ export type ToolCallsIncludeOptions = {
2029
+ /**
2030
+ * Output
2031
+ *
2032
+ * Include tool outputs in the trace. Set to false to only include inputs (smaller payload).
2033
+ */
2034
+ output?: boolean;
2035
+ };
2036
+
2037
+ /**
2038
+ * UpdateDirectiveRequest
2039
+ *
2040
+ * Request model for updating a directive.
2041
+ */
2042
+ export type UpdateDirectiveRequest = {
2043
+ /**
2044
+ * Name
2045
+ *
2046
+ * New name
2047
+ */
2048
+ name?: string | null;
2049
+ /**
2050
+ * Content
2051
+ *
2052
+ * New content
2053
+ */
2054
+ content?: string | null;
2055
+ /**
2056
+ * Priority
2057
+ *
2058
+ * New priority
2059
+ */
2060
+ priority?: number | null;
2061
+ /**
2062
+ * Is Active
2063
+ *
2064
+ * New active status
2065
+ */
2066
+ is_active?: boolean | null;
2067
+ /**
2068
+ * Tags
2069
+ *
2070
+ * New tags
2071
+ */
2072
+ tags?: Array<string> | null;
2073
+ };
2074
+
2075
+ /**
2076
+ * UpdateDispositionRequest
2077
+ *
2078
+ * Request model for updating disposition traits.
2079
+ */
2080
+ export type UpdateDispositionRequest = {
2081
+ disposition: DispositionTraits;
2082
+ };
2083
+
2084
+ /**
2085
+ * UpdateMentalModelRequest
2086
+ *
2087
+ * Request model for updating a mental model.
2088
+ */
2089
+ export type UpdateMentalModelRequest = {
2090
+ /**
2091
+ * Name
2092
+ *
2093
+ * New name for the mental model
2094
+ */
2095
+ name?: string | null;
2096
+ /**
2097
+ * Source Query
2098
+ *
2099
+ * New source query for the mental model
2100
+ */
2101
+ source_query?: string | null;
2102
+ /**
2103
+ * Max Tokens
2104
+ *
2105
+ * Maximum tokens for generated content
2106
+ */
2107
+ max_tokens?: number | null;
2108
+ /**
2109
+ * Tags
2110
+ *
2111
+ * Tags for scoped visibility
2112
+ */
2113
+ tags?: Array<string> | null;
2114
+ /**
2115
+ * Trigger settings
2116
+ */
2117
+ trigger?: MentalModelTrigger | null;
2118
+ };
2119
+
2120
+ /**
2121
+ * UpdateWebhookRequest
2122
+ *
2123
+ * Request model for updating a webhook. Only provided fields are updated.
2124
+ */
2125
+ export type UpdateWebhookRequest = {
2126
+ /**
2127
+ * Url
2128
+ *
2129
+ * HTTP(S) endpoint URL
2130
+ */
2131
+ url?: string | null;
2132
+ /**
2133
+ * Secret
2134
+ *
2135
+ * HMAC-SHA256 signing secret. Omit to keep existing; send null to clear.
2136
+ */
2137
+ secret?: string | null;
2138
+ /**
2139
+ * Event Types
2140
+ *
2141
+ * List of event types
2142
+ */
2143
+ event_types?: Array<string> | null;
2144
+ /**
2145
+ * Enabled
2146
+ *
2147
+ * Whether this webhook is active
2148
+ */
2149
+ enabled?: boolean | null;
2150
+ /**
2151
+ * HTTP delivery configuration
2152
+ */
2153
+ http_config?: WebhookHttpConfig | null;
2154
+ };
2155
+
2156
+ /**
2157
+ * ValidationError
2158
+ */
2159
+ export type ValidationError = {
2160
+ /**
2161
+ * Location
2162
+ */
2163
+ loc: Array<string | number>;
2164
+ /**
2165
+ * Message
2166
+ */
2167
+ msg: string;
2168
+ /**
2169
+ * Error Type
2170
+ */
2171
+ type: string;
2172
+ };
2173
+
2174
+ /**
2175
+ * VersionResponse
2176
+ *
2177
+ * Response model for the version/info endpoint.
2178
+ */
2179
+ export type VersionResponse = {
2180
+ /**
2181
+ * Api Version
2182
+ *
2183
+ * API version string
2184
+ */
2185
+ api_version: string;
2186
+ /**
2187
+ * Enabled feature flags
2188
+ */
2189
+ features: FeaturesInfo;
2190
+ };
2191
+
2192
+ /**
2193
+ * WebhookDeliveryListResponse
2194
+ *
2195
+ * Response model for listing webhook deliveries.
2196
+ */
2197
+ export type WebhookDeliveryListResponse = {
2198
+ /**
2199
+ * Items
2200
+ */
2201
+ items: Array<WebhookDeliveryResponse>;
2202
+ /**
2203
+ * Next Cursor
2204
+ */
2205
+ next_cursor?: string | null;
2206
+ };
2207
+
2208
+ /**
2209
+ * WebhookDeliveryResponse
2210
+ *
2211
+ * Response model for a webhook delivery record.
2212
+ */
2213
+ export type WebhookDeliveryResponse = {
2214
+ /**
2215
+ * Id
2216
+ */
2217
+ id: string;
2218
+ /**
2219
+ * Webhook Id
2220
+ */
2221
+ webhook_id: string | null;
2222
+ /**
2223
+ * Url
2224
+ */
2225
+ url: string;
2226
+ /**
2227
+ * Event Type
2228
+ */
2229
+ event_type: string;
2230
+ /**
2231
+ * Status
2232
+ */
2233
+ status: string;
2234
+ /**
2235
+ * Attempts
2236
+ */
2237
+ attempts: number;
2238
+ /**
2239
+ * Next Retry At
2240
+ */
2241
+ next_retry_at?: string | null;
2242
+ /**
2243
+ * Last Error
2244
+ */
2245
+ last_error?: string | null;
2246
+ /**
2247
+ * Last Response Status
2248
+ */
2249
+ last_response_status?: number | null;
2250
+ /**
2251
+ * Last Response Body
2252
+ */
2253
+ last_response_body?: string | null;
2254
+ /**
2255
+ * Last Attempt At
2256
+ */
2257
+ last_attempt_at?: string | null;
2258
+ /**
2259
+ * Created At
2260
+ */
2261
+ created_at?: string | null;
2262
+ /**
2263
+ * Updated At
2264
+ */
2265
+ updated_at?: string | null;
2266
+ };
2267
+
2268
+ /**
2269
+ * WebhookHttpConfig
2270
+ *
2271
+ * HTTP delivery configuration for a webhook.
2272
+ */
2273
+ export type WebhookHttpConfig = {
2274
+ /**
2275
+ * Method
2276
+ *
2277
+ * HTTP method: GET or POST
2278
+ */
2279
+ method?: string;
2280
+ /**
2281
+ * Timeout Seconds
2282
+ *
2283
+ * HTTP request timeout in seconds
2284
+ */
2285
+ timeout_seconds?: number;
2286
+ /**
2287
+ * Headers
2288
+ *
2289
+ * Custom HTTP headers
2290
+ */
2291
+ headers?: {
2292
+ [key: string]: string;
2293
+ };
2294
+ /**
2295
+ * Params
2296
+ *
2297
+ * Custom HTTP query parameters
2298
+ */
2299
+ params?: {
2300
+ [key: string]: string;
2301
+ };
2302
+ };
2303
+
2304
+ /**
2305
+ * WebhookListResponse
2306
+ *
2307
+ * Response model for listing webhooks.
2308
+ */
2309
+ export type WebhookListResponse = {
2310
+ /**
2311
+ * Items
2312
+ */
2313
+ items: Array<WebhookResponse>;
2314
+ };
2315
+
2316
+ /**
2317
+ * WebhookResponse
2318
+ *
2319
+ * Response model for a webhook.
2320
+ */
2321
+ export type WebhookResponse = {
2322
+ /**
2323
+ * Id
2324
+ */
2325
+ id: string;
2326
+ /**
2327
+ * Bank Id
2328
+ */
2329
+ bank_id: string | null;
2330
+ /**
2331
+ * Url
2332
+ */
2333
+ url: string;
2334
+ /**
2335
+ * Secret
2336
+ *
2337
+ * Signing secret (redacted in responses)
2338
+ */
2339
+ secret?: string | null;
2340
+ /**
2341
+ * Event Types
2342
+ */
2343
+ event_types: Array<string>;
2344
+ /**
2345
+ * Enabled
2346
+ */
2347
+ enabled: boolean;
2348
+ http_config?: WebhookHttpConfig;
2349
+ /**
2350
+ * Created At
2351
+ */
2352
+ created_at?: string | null;
2353
+ /**
2354
+ * Updated At
2355
+ */
2356
+ updated_at?: string | null;
2357
+ };
2358
+
2359
+ export type HealthEndpointHealthGetData = {
2360
+ body?: never;
2361
+ path?: never;
2362
+ query?: never;
2363
+ url: "/health";
2364
+ };
2365
+
2366
+ export type HealthEndpointHealthGetResponses = {
2367
+ /**
2368
+ * Successful Response
2369
+ */
2370
+ 200: unknown;
2371
+ };
2372
+
2373
+ export type GetVersionData = {
2374
+ body?: never;
2375
+ path?: never;
2376
+ query?: never;
2377
+ url: "/version";
2378
+ };
2379
+
2380
+ export type GetVersionResponses = {
2381
+ /**
2382
+ * Successful Response
2383
+ */
2384
+ 200: VersionResponse;
2385
+ };
2386
+
2387
+ export type GetVersionResponse = GetVersionResponses[keyof GetVersionResponses];
2388
+
2389
+ export type MetricsEndpointMetricsGetData = {
2390
+ body?: never;
2391
+ path?: never;
2392
+ query?: never;
2393
+ url: "/metrics";
2394
+ };
2395
+
2396
+ export type MetricsEndpointMetricsGetResponses = {
2397
+ /**
2398
+ * Successful Response
2399
+ */
2400
+ 200: unknown;
2401
+ };
2402
+
2403
+ export type GetGraphData = {
2404
+ body?: never;
2405
+ headers?: {
2406
+ /**
2407
+ * Authorization
2408
+ */
2409
+ authorization?: string | null;
2410
+ };
2411
+ path: {
2412
+ /**
2413
+ * Bank Id
2414
+ */
2415
+ bank_id: string;
2416
+ };
2417
+ query?: {
2418
+ /**
2419
+ * Type
2420
+ */
2421
+ type?: string | null;
2422
+ /**
2423
+ * Limit
2424
+ */
2425
+ limit?: number;
2426
+ /**
2427
+ * Q
2428
+ */
2429
+ q?: string | null;
2430
+ /**
2431
+ * Tags
2432
+ */
2433
+ tags?: Array<string> | null;
2434
+ /**
2435
+ * Tags Match
2436
+ */
2437
+ tags_match?: string;
2438
+ };
2439
+ url: "/v1/default/banks/{bank_id}/graph";
2440
+ };
2441
+
2442
+ export type GetGraphErrors = {
2443
+ /**
2444
+ * Validation Error
2445
+ */
2446
+ 422: HttpValidationError;
2447
+ };
2448
+
2449
+ export type GetGraphError = GetGraphErrors[keyof GetGraphErrors];
2450
+
2451
+ export type GetGraphResponses = {
2452
+ /**
2453
+ * Successful Response
2454
+ */
2455
+ 200: GraphDataResponse;
2456
+ };
2457
+
2458
+ export type GetGraphResponse = GetGraphResponses[keyof GetGraphResponses];
2459
+
2460
+ export type ListMemoriesData = {
2461
+ body?: never;
2462
+ headers?: {
2463
+ /**
2464
+ * Authorization
2465
+ */
2466
+ authorization?: string | null;
2467
+ };
2468
+ path: {
2469
+ /**
2470
+ * Bank Id
2471
+ */
2472
+ bank_id: string;
2473
+ };
2474
+ query?: {
2475
+ /**
2476
+ * Type
2477
+ */
2478
+ type?: string | null;
2479
+ /**
2480
+ * Q
2481
+ */
2482
+ q?: string | null;
2483
+ /**
2484
+ * Limit
2485
+ */
2486
+ limit?: number;
2487
+ /**
2488
+ * Offset
2489
+ */
2490
+ offset?: number;
2491
+ };
2492
+ url: "/v1/default/banks/{bank_id}/memories/list";
2493
+ };
2494
+
2495
+ export type ListMemoriesErrors = {
2496
+ /**
2497
+ * Validation Error
2498
+ */
2499
+ 422: HttpValidationError;
2500
+ };
2501
+
2502
+ export type ListMemoriesError = ListMemoriesErrors[keyof ListMemoriesErrors];
2503
+
2504
+ export type ListMemoriesResponses = {
2505
+ /**
2506
+ * Successful Response
2507
+ */
2508
+ 200: ListMemoryUnitsResponse;
2509
+ };
2510
+
2511
+ export type ListMemoriesResponse =
2512
+ ListMemoriesResponses[keyof ListMemoriesResponses];
2513
+
2514
+ export type GetMemoryData = {
2515
+ body?: never;
2516
+ headers?: {
2517
+ /**
2518
+ * Authorization
2519
+ */
2520
+ authorization?: string | null;
2521
+ };
2522
+ path: {
2523
+ /**
2524
+ * Bank Id
2525
+ */
2526
+ bank_id: string;
2527
+ /**
2528
+ * Memory Id
2529
+ */
2530
+ memory_id: string;
2531
+ };
2532
+ query?: never;
2533
+ url: "/v1/default/banks/{bank_id}/memories/{memory_id}";
2534
+ };
2535
+
2536
+ export type GetMemoryErrors = {
2537
+ /**
2538
+ * Validation Error
2539
+ */
2540
+ 422: HttpValidationError;
2541
+ };
2542
+
2543
+ export type GetMemoryError = GetMemoryErrors[keyof GetMemoryErrors];
2544
+
2545
+ export type GetMemoryResponses = {
2546
+ /**
2547
+ * Successful Response
2548
+ */
2549
+ 200: unknown;
2550
+ };
2551
+
2552
+ export type GetObservationHistoryData = {
2553
+ body?: never;
2554
+ headers?: {
2555
+ /**
2556
+ * Authorization
2557
+ */
2558
+ authorization?: string | null;
2559
+ };
2560
+ path: {
2561
+ /**
2562
+ * Bank Id
2563
+ */
2564
+ bank_id: string;
2565
+ /**
2566
+ * Memory Id
2567
+ */
2568
+ memory_id: string;
2569
+ };
2570
+ query?: never;
2571
+ url: "/v1/default/banks/{bank_id}/memories/{memory_id}/history";
2572
+ };
2573
+
2574
+ export type GetObservationHistoryErrors = {
2575
+ /**
2576
+ * Validation Error
2577
+ */
2578
+ 422: HttpValidationError;
2579
+ };
2580
+
2581
+ export type GetObservationHistoryError =
2582
+ GetObservationHistoryErrors[keyof GetObservationHistoryErrors];
2583
+
2584
+ export type GetObservationHistoryResponses = {
2585
+ /**
2586
+ * Successful Response
2587
+ */
2588
+ 200: unknown;
2589
+ };
2590
+
2591
+ export type RecallMemoriesData = {
2592
+ body: RecallRequest;
2593
+ headers?: {
2594
+ /**
2595
+ * Authorization
2596
+ */
2597
+ authorization?: string | null;
2598
+ };
2599
+ path: {
2600
+ /**
2601
+ * Bank Id
2602
+ */
2603
+ bank_id: string;
2604
+ };
2605
+ query?: never;
2606
+ url: "/v1/default/banks/{bank_id}/memories/recall";
2607
+ };
2608
+
2609
+ export type RecallMemoriesErrors = {
2610
+ /**
2611
+ * Validation Error
2612
+ */
2613
+ 422: HttpValidationError;
2614
+ };
2615
+
2616
+ export type RecallMemoriesError =
2617
+ RecallMemoriesErrors[keyof RecallMemoriesErrors];
2618
+
2619
+ export type RecallMemoriesResponses = {
2620
+ /**
2621
+ * Successful Response
2622
+ */
2623
+ 200: RecallResponse;
2624
+ };
2625
+
2626
+ export type RecallMemoriesResponse =
2627
+ RecallMemoriesResponses[keyof RecallMemoriesResponses];
2628
+
2629
+ export type ReflectData = {
2630
+ body: ReflectRequest;
2631
+ headers?: {
2632
+ /**
2633
+ * Authorization
2634
+ */
2635
+ authorization?: string | null;
2636
+ };
2637
+ path: {
2638
+ /**
2639
+ * Bank Id
2640
+ */
2641
+ bank_id: string;
2642
+ };
2643
+ query?: never;
2644
+ url: "/v1/default/banks/{bank_id}/reflect";
2645
+ };
2646
+
2647
+ export type ReflectErrors = {
2648
+ /**
2649
+ * Validation Error
2650
+ */
2651
+ 422: HttpValidationError;
2652
+ };
2653
+
2654
+ export type ReflectError = ReflectErrors[keyof ReflectErrors];
2655
+
2656
+ export type ReflectResponses = {
2657
+ /**
2658
+ * Successful Response
2659
+ */
2660
+ 200: ReflectResponse;
2661
+ };
2662
+
2663
+ export type ReflectResponse2 = ReflectResponses[keyof ReflectResponses];
2664
+
2665
+ export type ListBanksData = {
2666
+ body?: never;
2667
+ headers?: {
2668
+ /**
2669
+ * Authorization
2670
+ */
2671
+ authorization?: string | null;
2672
+ };
2673
+ path?: never;
2674
+ query?: never;
2675
+ url: "/v1/default/banks";
2676
+ };
2677
+
2678
+ export type ListBanksErrors = {
2679
+ /**
2680
+ * Validation Error
2681
+ */
2682
+ 422: HttpValidationError;
2683
+ };
2684
+
2685
+ export type ListBanksError = ListBanksErrors[keyof ListBanksErrors];
2686
+
2687
+ export type ListBanksResponses = {
2688
+ /**
2689
+ * Successful Response
2690
+ */
2691
+ 200: BankListResponse;
2692
+ };
2693
+
2694
+ export type ListBanksResponse = ListBanksResponses[keyof ListBanksResponses];
2695
+
2696
+ export type GetAgentStatsData = {
2697
+ body?: never;
2698
+ headers?: {
2699
+ /**
2700
+ * Authorization
2701
+ */
2702
+ authorization?: string | null;
2703
+ };
2704
+ path: {
2705
+ /**
2706
+ * Bank Id
2707
+ */
2708
+ bank_id: string;
2709
+ };
2710
+ query?: never;
2711
+ url: "/v1/default/banks/{bank_id}/stats";
2712
+ };
2713
+
2714
+ export type GetAgentStatsErrors = {
2715
+ /**
2716
+ * Validation Error
2717
+ */
2718
+ 422: HttpValidationError;
2719
+ };
2720
+
2721
+ export type GetAgentStatsError = GetAgentStatsErrors[keyof GetAgentStatsErrors];
2722
+
2723
+ export type GetAgentStatsResponses = {
2724
+ /**
2725
+ * Successful Response
2726
+ */
2727
+ 200: BankStatsResponse;
2728
+ };
2729
+
2730
+ export type GetAgentStatsResponse =
2731
+ GetAgentStatsResponses[keyof GetAgentStatsResponses];
2732
+
2733
+ export type ListEntitiesData = {
2734
+ body?: never;
2735
+ headers?: {
2736
+ /**
2737
+ * Authorization
2738
+ */
2739
+ authorization?: string | null;
2740
+ };
2741
+ path: {
2742
+ /**
2743
+ * Bank Id
2744
+ */
2745
+ bank_id: string;
2746
+ };
2747
+ query?: {
2748
+ /**
2749
+ * Limit
2750
+ *
2751
+ * Maximum number of entities to return
2752
+ */
2753
+ limit?: number;
2754
+ /**
2755
+ * Offset
2756
+ *
2757
+ * Offset for pagination
2758
+ */
2759
+ offset?: number;
2760
+ };
2761
+ url: "/v1/default/banks/{bank_id}/entities";
2762
+ };
2763
+
2764
+ export type ListEntitiesErrors = {
2765
+ /**
2766
+ * Validation Error
2767
+ */
2768
+ 422: HttpValidationError;
2769
+ };
2770
+
2771
+ export type ListEntitiesError = ListEntitiesErrors[keyof ListEntitiesErrors];
2772
+
2773
+ export type ListEntitiesResponses = {
2774
+ /**
2775
+ * Successful Response
2776
+ */
2777
+ 200: EntityListResponse;
2778
+ };
2779
+
2780
+ export type ListEntitiesResponse =
2781
+ ListEntitiesResponses[keyof ListEntitiesResponses];
2782
+
2783
+ export type GetEntityData = {
2784
+ body?: never;
2785
+ headers?: {
2786
+ /**
2787
+ * Authorization
2788
+ */
2789
+ authorization?: string | null;
2790
+ };
2791
+ path: {
2792
+ /**
2793
+ * Bank Id
2794
+ */
2795
+ bank_id: string;
2796
+ /**
2797
+ * Entity Id
2798
+ */
2799
+ entity_id: string;
2800
+ };
2801
+ query?: never;
2802
+ url: "/v1/default/banks/{bank_id}/entities/{entity_id}";
2803
+ };
2804
+
2805
+ export type GetEntityErrors = {
2806
+ /**
2807
+ * Validation Error
2808
+ */
2809
+ 422: HttpValidationError;
2810
+ };
2811
+
2812
+ export type GetEntityError = GetEntityErrors[keyof GetEntityErrors];
2813
+
2814
+ export type GetEntityResponses = {
2815
+ /**
2816
+ * Successful Response
2817
+ */
2818
+ 200: EntityDetailResponse;
2819
+ };
2820
+
2821
+ export type GetEntityResponse = GetEntityResponses[keyof GetEntityResponses];
2822
+
2823
+ export type RegenerateEntityObservationsData = {
2824
+ body?: never;
2825
+ headers?: {
2826
+ /**
2827
+ * Authorization
2828
+ */
2829
+ authorization?: string | null;
2830
+ };
2831
+ path: {
2832
+ /**
2833
+ * Bank Id
2834
+ */
2835
+ bank_id: string;
2836
+ /**
2837
+ * Entity Id
2838
+ */
2839
+ entity_id: string;
2840
+ };
2841
+ query?: never;
2842
+ url: "/v1/default/banks/{bank_id}/entities/{entity_id}/regenerate";
2843
+ };
2844
+
2845
+ export type RegenerateEntityObservationsErrors = {
2846
+ /**
2847
+ * Validation Error
2848
+ */
2849
+ 422: HttpValidationError;
2850
+ };
2851
+
2852
+ export type RegenerateEntityObservationsError =
2853
+ RegenerateEntityObservationsErrors[keyof RegenerateEntityObservationsErrors];
2854
+
2855
+ export type RegenerateEntityObservationsResponses = {
2856
+ /**
2857
+ * Successful Response
2858
+ */
2859
+ 200: EntityDetailResponse;
2860
+ };
2861
+
2862
+ export type RegenerateEntityObservationsResponse =
2863
+ RegenerateEntityObservationsResponses[keyof RegenerateEntityObservationsResponses];
2864
+
2865
+ export type ListMentalModelsData = {
2866
+ body?: never;
2867
+ headers?: {
2868
+ /**
2869
+ * Authorization
2870
+ */
2871
+ authorization?: string | null;
2872
+ };
2873
+ path: {
2874
+ /**
2875
+ * Bank Id
2876
+ */
2877
+ bank_id: string;
2878
+ };
2879
+ query?: {
2880
+ /**
2881
+ * Tags
2882
+ *
2883
+ * Filter by tags
2884
+ */
2885
+ tags?: Array<string> | null;
2886
+ /**
2887
+ * Tags Match
2888
+ *
2889
+ * How to match tags
2890
+ */
2891
+ tags_match?: "any" | "all" | "exact";
2892
+ /**
2893
+ * Limit
2894
+ */
2895
+ limit?: number;
2896
+ /**
2897
+ * Offset
2898
+ */
2899
+ offset?: number;
2900
+ };
2901
+ url: "/v1/default/banks/{bank_id}/mental-models";
2902
+ };
2903
+
2904
+ export type ListMentalModelsErrors = {
2905
+ /**
2906
+ * Validation Error
2907
+ */
2908
+ 422: HttpValidationError;
2909
+ };
2910
+
2911
+ export type ListMentalModelsError =
2912
+ ListMentalModelsErrors[keyof ListMentalModelsErrors];
2913
+
2914
+ export type ListMentalModelsResponses = {
2915
+ /**
2916
+ * Successful Response
2917
+ */
2918
+ 200: MentalModelListResponse;
2919
+ };
2920
+
2921
+ export type ListMentalModelsResponse =
2922
+ ListMentalModelsResponses[keyof ListMentalModelsResponses];
2923
+
2924
+ export type CreateMentalModelData = {
2925
+ body: CreateMentalModelRequest;
2926
+ headers?: {
2927
+ /**
2928
+ * Authorization
2929
+ */
2930
+ authorization?: string | null;
2931
+ };
2932
+ path: {
2933
+ /**
2934
+ * Bank Id
2935
+ */
2936
+ bank_id: string;
2937
+ };
2938
+ query?: never;
2939
+ url: "/v1/default/banks/{bank_id}/mental-models";
2940
+ };
2941
+
2942
+ export type CreateMentalModelErrors = {
2943
+ /**
2944
+ * Validation Error
2945
+ */
2946
+ 422: HttpValidationError;
2947
+ };
2948
+
2949
+ export type CreateMentalModelError =
2950
+ CreateMentalModelErrors[keyof CreateMentalModelErrors];
2951
+
2952
+ export type CreateMentalModelResponses = {
2953
+ /**
2954
+ * Successful Response
2955
+ */
2956
+ 200: CreateMentalModelResponse;
2957
+ };
2958
+
2959
+ export type CreateMentalModelResponse2 =
2960
+ CreateMentalModelResponses[keyof CreateMentalModelResponses];
2961
+
2962
+ export type DeleteMentalModelData = {
2963
+ body?: never;
2964
+ headers?: {
2965
+ /**
2966
+ * Authorization
2967
+ */
2968
+ authorization?: string | null;
2969
+ };
2970
+ path: {
2971
+ /**
2972
+ * Bank Id
2973
+ */
2974
+ bank_id: string;
2975
+ /**
2976
+ * Mental Model Id
2977
+ */
2978
+ mental_model_id: string;
2979
+ };
2980
+ query?: never;
2981
+ url: "/v1/default/banks/{bank_id}/mental-models/{mental_model_id}";
2982
+ };
2983
+
2984
+ export type DeleteMentalModelErrors = {
2985
+ /**
2986
+ * Validation Error
2987
+ */
2988
+ 422: HttpValidationError;
2989
+ };
2990
+
2991
+ export type DeleteMentalModelError =
2992
+ DeleteMentalModelErrors[keyof DeleteMentalModelErrors];
2993
+
2994
+ export type DeleteMentalModelResponses = {
2995
+ /**
2996
+ * Successful Response
2997
+ */
2998
+ 200: unknown;
2999
+ };
3000
+
3001
+ export type GetMentalModelData = {
3002
+ body?: never;
3003
+ headers?: {
3004
+ /**
3005
+ * Authorization
3006
+ */
3007
+ authorization?: string | null;
3008
+ };
3009
+ path: {
3010
+ /**
3011
+ * Bank Id
3012
+ */
3013
+ bank_id: string;
3014
+ /**
3015
+ * Mental Model Id
3016
+ */
3017
+ mental_model_id: string;
3018
+ };
3019
+ query?: never;
3020
+ url: "/v1/default/banks/{bank_id}/mental-models/{mental_model_id}";
3021
+ };
3022
+
3023
+ export type GetMentalModelErrors = {
3024
+ /**
3025
+ * Validation Error
3026
+ */
3027
+ 422: HttpValidationError;
3028
+ };
3029
+
3030
+ export type GetMentalModelError =
3031
+ GetMentalModelErrors[keyof GetMentalModelErrors];
3032
+
3033
+ export type GetMentalModelResponses = {
3034
+ /**
3035
+ * Successful Response
3036
+ */
3037
+ 200: MentalModelResponse;
3038
+ };
3039
+
3040
+ export type GetMentalModelResponse =
3041
+ GetMentalModelResponses[keyof GetMentalModelResponses];
3042
+
3043
+ export type UpdateMentalModelData = {
3044
+ body: UpdateMentalModelRequest;
3045
+ headers?: {
3046
+ /**
3047
+ * Authorization
3048
+ */
3049
+ authorization?: string | null;
3050
+ };
3051
+ path: {
3052
+ /**
3053
+ * Bank Id
3054
+ */
3055
+ bank_id: string;
3056
+ /**
3057
+ * Mental Model Id
3058
+ */
3059
+ mental_model_id: string;
3060
+ };
3061
+ query?: never;
3062
+ url: "/v1/default/banks/{bank_id}/mental-models/{mental_model_id}";
3063
+ };
3064
+
3065
+ export type UpdateMentalModelErrors = {
3066
+ /**
3067
+ * Validation Error
3068
+ */
3069
+ 422: HttpValidationError;
3070
+ };
3071
+
3072
+ export type UpdateMentalModelError =
3073
+ UpdateMentalModelErrors[keyof UpdateMentalModelErrors];
3074
+
3075
+ export type UpdateMentalModelResponses = {
3076
+ /**
3077
+ * Successful Response
3078
+ */
3079
+ 200: MentalModelResponse;
3080
+ };
3081
+
3082
+ export type UpdateMentalModelResponse =
3083
+ UpdateMentalModelResponses[keyof UpdateMentalModelResponses];
3084
+
3085
+ export type GetMentalModelHistoryData = {
3086
+ body?: never;
3087
+ headers?: {
3088
+ /**
3089
+ * Authorization
3090
+ */
3091
+ authorization?: string | null;
3092
+ };
3093
+ path: {
3094
+ /**
3095
+ * Bank Id
3096
+ */
3097
+ bank_id: string;
3098
+ /**
3099
+ * Mental Model Id
3100
+ */
3101
+ mental_model_id: string;
3102
+ };
3103
+ query?: never;
3104
+ url: "/v1/default/banks/{bank_id}/mental-models/{mental_model_id}/history";
3105
+ };
3106
+
3107
+ export type GetMentalModelHistoryErrors = {
3108
+ /**
3109
+ * Validation Error
3110
+ */
3111
+ 422: HttpValidationError;
3112
+ };
3113
+
3114
+ export type GetMentalModelHistoryError =
3115
+ GetMentalModelHistoryErrors[keyof GetMentalModelHistoryErrors];
3116
+
3117
+ export type GetMentalModelHistoryResponses = {
3118
+ /**
3119
+ * Successful Response
3120
+ */
3121
+ 200: unknown;
3122
+ };
3123
+
3124
+ export type RefreshMentalModelData = {
3125
+ body?: never;
3126
+ headers?: {
3127
+ /**
3128
+ * Authorization
3129
+ */
3130
+ authorization?: string | null;
3131
+ };
3132
+ path: {
3133
+ /**
3134
+ * Bank Id
3135
+ */
3136
+ bank_id: string;
3137
+ /**
3138
+ * Mental Model Id
3139
+ */
3140
+ mental_model_id: string;
3141
+ };
3142
+ query?: never;
3143
+ url: "/v1/default/banks/{bank_id}/mental-models/{mental_model_id}/refresh";
3144
+ };
3145
+
3146
+ export type RefreshMentalModelErrors = {
3147
+ /**
3148
+ * Validation Error
3149
+ */
3150
+ 422: HttpValidationError;
3151
+ };
3152
+
3153
+ export type RefreshMentalModelError =
3154
+ RefreshMentalModelErrors[keyof RefreshMentalModelErrors];
3155
+
3156
+ export type RefreshMentalModelResponses = {
3157
+ /**
3158
+ * Successful Response
3159
+ */
3160
+ 200: AsyncOperationSubmitResponse;
3161
+ };
3162
+
3163
+ export type RefreshMentalModelResponse =
3164
+ RefreshMentalModelResponses[keyof RefreshMentalModelResponses];
3165
+
3166
+ export type ListDirectivesData = {
3167
+ body?: never;
3168
+ headers?: {
3169
+ /**
3170
+ * Authorization
3171
+ */
3172
+ authorization?: string | null;
3173
+ };
3174
+ path: {
3175
+ /**
3176
+ * Bank Id
3177
+ */
3178
+ bank_id: string;
3179
+ };
3180
+ query?: {
3181
+ /**
3182
+ * Tags
3183
+ *
3184
+ * Filter by tags
3185
+ */
3186
+ tags?: Array<string> | null;
3187
+ /**
3188
+ * Tags Match
3189
+ *
3190
+ * How to match tags
3191
+ */
3192
+ tags_match?: "any" | "all" | "exact";
3193
+ /**
3194
+ * Active Only
3195
+ *
3196
+ * Only return active directives
3197
+ */
3198
+ active_only?: boolean;
3199
+ /**
3200
+ * Limit
3201
+ */
3202
+ limit?: number;
3203
+ /**
3204
+ * Offset
3205
+ */
3206
+ offset?: number;
3207
+ };
3208
+ url: "/v1/default/banks/{bank_id}/directives";
3209
+ };
3210
+
3211
+ export type ListDirectivesErrors = {
3212
+ /**
3213
+ * Validation Error
3214
+ */
3215
+ 422: HttpValidationError;
3216
+ };
3217
+
3218
+ export type ListDirectivesError =
3219
+ ListDirectivesErrors[keyof ListDirectivesErrors];
3220
+
3221
+ export type ListDirectivesResponses = {
3222
+ /**
3223
+ * Successful Response
3224
+ */
3225
+ 200: DirectiveListResponse;
3226
+ };
3227
+
3228
+ export type ListDirectivesResponse =
3229
+ ListDirectivesResponses[keyof ListDirectivesResponses];
3230
+
3231
+ export type CreateDirectiveData = {
3232
+ body: CreateDirectiveRequest;
3233
+ headers?: {
3234
+ /**
3235
+ * Authorization
3236
+ */
3237
+ authorization?: string | null;
3238
+ };
3239
+ path: {
3240
+ /**
3241
+ * Bank Id
3242
+ */
3243
+ bank_id: string;
3244
+ };
3245
+ query?: never;
3246
+ url: "/v1/default/banks/{bank_id}/directives";
3247
+ };
3248
+
3249
+ export type CreateDirectiveErrors = {
3250
+ /**
3251
+ * Validation Error
3252
+ */
3253
+ 422: HttpValidationError;
3254
+ };
3255
+
3256
+ export type CreateDirectiveError =
3257
+ CreateDirectiveErrors[keyof CreateDirectiveErrors];
3258
+
3259
+ export type CreateDirectiveResponses = {
3260
+ /**
3261
+ * Successful Response
3262
+ */
3263
+ 200: DirectiveResponse;
3264
+ };
3265
+
3266
+ export type CreateDirectiveResponse =
3267
+ CreateDirectiveResponses[keyof CreateDirectiveResponses];
3268
+
3269
+ export type DeleteDirectiveData = {
3270
+ body?: never;
3271
+ headers?: {
3272
+ /**
3273
+ * Authorization
3274
+ */
3275
+ authorization?: string | null;
3276
+ };
3277
+ path: {
3278
+ /**
3279
+ * Bank Id
3280
+ */
3281
+ bank_id: string;
3282
+ /**
3283
+ * Directive Id
3284
+ */
3285
+ directive_id: string;
3286
+ };
3287
+ query?: never;
3288
+ url: "/v1/default/banks/{bank_id}/directives/{directive_id}";
3289
+ };
3290
+
3291
+ export type DeleteDirectiveErrors = {
3292
+ /**
3293
+ * Validation Error
3294
+ */
3295
+ 422: HttpValidationError;
3296
+ };
3297
+
3298
+ export type DeleteDirectiveError =
3299
+ DeleteDirectiveErrors[keyof DeleteDirectiveErrors];
3300
+
3301
+ export type DeleteDirectiveResponses = {
3302
+ /**
3303
+ * Successful Response
3304
+ */
3305
+ 200: unknown;
3306
+ };
3307
+
3308
+ export type GetDirectiveData = {
3309
+ body?: never;
3310
+ headers?: {
3311
+ /**
3312
+ * Authorization
3313
+ */
3314
+ authorization?: string | null;
3315
+ };
3316
+ path: {
3317
+ /**
3318
+ * Bank Id
3319
+ */
3320
+ bank_id: string;
3321
+ /**
3322
+ * Directive Id
3323
+ */
3324
+ directive_id: string;
3325
+ };
3326
+ query?: never;
3327
+ url: "/v1/default/banks/{bank_id}/directives/{directive_id}";
3328
+ };
3329
+
3330
+ export type GetDirectiveErrors = {
3331
+ /**
3332
+ * Validation Error
3333
+ */
3334
+ 422: HttpValidationError;
3335
+ };
3336
+
3337
+ export type GetDirectiveError = GetDirectiveErrors[keyof GetDirectiveErrors];
3338
+
3339
+ export type GetDirectiveResponses = {
3340
+ /**
3341
+ * Successful Response
3342
+ */
3343
+ 200: DirectiveResponse;
3344
+ };
3345
+
3346
+ export type GetDirectiveResponse =
3347
+ GetDirectiveResponses[keyof GetDirectiveResponses];
3348
+
3349
+ export type UpdateDirectiveData = {
3350
+ body: UpdateDirectiveRequest;
3351
+ headers?: {
3352
+ /**
3353
+ * Authorization
3354
+ */
3355
+ authorization?: string | null;
3356
+ };
3357
+ path: {
3358
+ /**
3359
+ * Bank Id
3360
+ */
3361
+ bank_id: string;
3362
+ /**
3363
+ * Directive Id
3364
+ */
3365
+ directive_id: string;
3366
+ };
3367
+ query?: never;
3368
+ url: "/v1/default/banks/{bank_id}/directives/{directive_id}";
3369
+ };
3370
+
3371
+ export type UpdateDirectiveErrors = {
3372
+ /**
3373
+ * Validation Error
3374
+ */
3375
+ 422: HttpValidationError;
3376
+ };
3377
+
3378
+ export type UpdateDirectiveError =
3379
+ UpdateDirectiveErrors[keyof UpdateDirectiveErrors];
3380
+
3381
+ export type UpdateDirectiveResponses = {
3382
+ /**
3383
+ * Successful Response
3384
+ */
3385
+ 200: DirectiveResponse;
3386
+ };
3387
+
3388
+ export type UpdateDirectiveResponse =
3389
+ UpdateDirectiveResponses[keyof UpdateDirectiveResponses];
3390
+
3391
+ export type ListDocumentsData = {
3392
+ body?: never;
3393
+ headers?: {
3394
+ /**
3395
+ * Authorization
3396
+ */
3397
+ authorization?: string | null;
3398
+ };
3399
+ path: {
3400
+ /**
3401
+ * Bank Id
3402
+ */
3403
+ bank_id: string;
3404
+ };
3405
+ query?: {
3406
+ /**
3407
+ * Q
3408
+ *
3409
+ * Case-insensitive substring filter on document ID (e.g. 'report' matches 'report-2024')
3410
+ */
3411
+ q?: string | null;
3412
+ /**
3413
+ * Tags
3414
+ *
3415
+ * Filter documents by tags
3416
+ */
3417
+ tags?: Array<string> | null;
3418
+ /**
3419
+ * Tags Match
3420
+ *
3421
+ * How to match tags: 'any', 'all', 'any_strict', 'all_strict'
3422
+ */
3423
+ tags_match?: string;
3424
+ /**
3425
+ * Limit
3426
+ */
3427
+ limit?: number;
3428
+ /**
3429
+ * Offset
3430
+ */
3431
+ offset?: number;
3432
+ };
3433
+ url: "/v1/default/banks/{bank_id}/documents";
3434
+ };
3435
+
3436
+ export type ListDocumentsErrors = {
3437
+ /**
3438
+ * Validation Error
3439
+ */
3440
+ 422: HttpValidationError;
3441
+ };
3442
+
3443
+ export type ListDocumentsError = ListDocumentsErrors[keyof ListDocumentsErrors];
3444
+
3445
+ export type ListDocumentsResponses = {
3446
+ /**
3447
+ * Successful Response
3448
+ */
3449
+ 200: ListDocumentsResponse;
3450
+ };
3451
+
3452
+ export type ListDocumentsResponse2 =
3453
+ ListDocumentsResponses[keyof ListDocumentsResponses];
3454
+
3455
+ export type DeleteDocumentData = {
3456
+ body?: never;
3457
+ headers?: {
3458
+ /**
3459
+ * Authorization
3460
+ */
3461
+ authorization?: string | null;
3462
+ };
3463
+ path: {
3464
+ /**
3465
+ * Bank Id
3466
+ */
3467
+ bank_id: string;
3468
+ /**
3469
+ * Document Id
3470
+ */
3471
+ document_id: string;
3472
+ };
3473
+ query?: never;
3474
+ url: "/v1/default/banks/{bank_id}/documents/{document_id}";
3475
+ };
3476
+
3477
+ export type DeleteDocumentErrors = {
3478
+ /**
3479
+ * Validation Error
3480
+ */
3481
+ 422: HttpValidationError;
3482
+ };
3483
+
3484
+ export type DeleteDocumentError =
3485
+ DeleteDocumentErrors[keyof DeleteDocumentErrors];
3486
+
3487
+ export type DeleteDocumentResponses = {
3488
+ /**
3489
+ * Successful Response
3490
+ */
3491
+ 200: DeleteDocumentResponse;
3492
+ };
3493
+
3494
+ export type DeleteDocumentResponse2 =
3495
+ DeleteDocumentResponses[keyof DeleteDocumentResponses];
3496
+
3497
+ export type GetDocumentData = {
3498
+ body?: never;
3499
+ headers?: {
3500
+ /**
3501
+ * Authorization
3502
+ */
3503
+ authorization?: string | null;
3504
+ };
3505
+ path: {
3506
+ /**
3507
+ * Bank Id
3508
+ */
3509
+ bank_id: string;
3510
+ /**
3511
+ * Document Id
3512
+ */
3513
+ document_id: string;
3514
+ };
3515
+ query?: never;
3516
+ url: "/v1/default/banks/{bank_id}/documents/{document_id}";
3517
+ };
3518
+
3519
+ export type GetDocumentErrors = {
3520
+ /**
3521
+ * Validation Error
3522
+ */
3523
+ 422: HttpValidationError;
3524
+ };
3525
+
3526
+ export type GetDocumentError = GetDocumentErrors[keyof GetDocumentErrors];
3527
+
3528
+ export type GetDocumentResponses = {
3529
+ /**
3530
+ * Successful Response
3531
+ */
3532
+ 200: DocumentResponse;
3533
+ };
3534
+
3535
+ export type GetDocumentResponse =
3536
+ GetDocumentResponses[keyof GetDocumentResponses];
3537
+
3538
+ export type ListTagsData = {
3539
+ body?: never;
3540
+ headers?: {
3541
+ /**
3542
+ * Authorization
3543
+ */
3544
+ authorization?: string | null;
3545
+ };
3546
+ path: {
3547
+ /**
3548
+ * Bank Id
3549
+ */
3550
+ bank_id: string;
3551
+ };
3552
+ query?: {
3553
+ /**
3554
+ * Q
3555
+ *
3556
+ * Wildcard pattern to filter tags (e.g., 'user:*' for user:alice, '*-admin' for role-admin). Use '*' as wildcard. Case-insensitive.
3557
+ */
3558
+ q?: string | null;
3559
+ /**
3560
+ * Limit
3561
+ *
3562
+ * Maximum number of tags to return
3563
+ */
3564
+ limit?: number;
3565
+ /**
3566
+ * Offset
3567
+ *
3568
+ * Offset for pagination
3569
+ */
3570
+ offset?: number;
3571
+ };
3572
+ url: "/v1/default/banks/{bank_id}/tags";
3573
+ };
3574
+
3575
+ export type ListTagsErrors = {
3576
+ /**
3577
+ * Validation Error
3578
+ */
3579
+ 422: HttpValidationError;
3580
+ };
3581
+
3582
+ export type ListTagsError = ListTagsErrors[keyof ListTagsErrors];
3583
+
3584
+ export type ListTagsResponses = {
3585
+ /**
3586
+ * Successful Response
3587
+ */
3588
+ 200: ListTagsResponse;
3589
+ };
3590
+
3591
+ export type ListTagsResponse2 = ListTagsResponses[keyof ListTagsResponses];
3592
+
3593
+ export type GetChunkData = {
3594
+ body?: never;
3595
+ headers?: {
3596
+ /**
3597
+ * Authorization
3598
+ */
3599
+ authorization?: string | null;
3600
+ };
3601
+ path: {
3602
+ /**
3603
+ * Chunk Id
3604
+ */
3605
+ chunk_id: string;
3606
+ };
3607
+ query?: never;
3608
+ url: "/v1/default/chunks/{chunk_id}";
3609
+ };
3610
+
3611
+ export type GetChunkErrors = {
3612
+ /**
3613
+ * Validation Error
3614
+ */
3615
+ 422: HttpValidationError;
3616
+ };
3617
+
3618
+ export type GetChunkError = GetChunkErrors[keyof GetChunkErrors];
3619
+
3620
+ export type GetChunkResponses = {
3621
+ /**
3622
+ * Successful Response
3623
+ */
3624
+ 200: ChunkResponse;
3625
+ };
3626
+
3627
+ export type GetChunkResponse = GetChunkResponses[keyof GetChunkResponses];
3628
+
3629
+ export type ListOperationsData = {
3630
+ body?: never;
3631
+ headers?: {
3632
+ /**
3633
+ * Authorization
3634
+ */
3635
+ authorization?: string | null;
3636
+ };
3637
+ path: {
3638
+ /**
3639
+ * Bank Id
3640
+ */
3641
+ bank_id: string;
3642
+ };
3643
+ query?: {
3644
+ /**
3645
+ * Status
3646
+ *
3647
+ * Filter by status: pending, completed, or failed
3648
+ */
3649
+ status?: string | null;
3650
+ /**
3651
+ * Type
3652
+ *
3653
+ * Filter by operation type: retain, consolidation, refresh_mental_model, file_convert_retain, webhook_delivery
3654
+ */
3655
+ type?: string | null;
3656
+ /**
3657
+ * Limit
3658
+ *
3659
+ * Maximum number of operations to return
3660
+ */
3661
+ limit?: number;
3662
+ /**
3663
+ * Offset
3664
+ *
3665
+ * Number of operations to skip
3666
+ */
3667
+ offset?: number;
3668
+ };
3669
+ url: "/v1/default/banks/{bank_id}/operations";
3670
+ };
3671
+
3672
+ export type ListOperationsErrors = {
3673
+ /**
3674
+ * Validation Error
3675
+ */
3676
+ 422: HttpValidationError;
3677
+ };
3678
+
3679
+ export type ListOperationsError =
3680
+ ListOperationsErrors[keyof ListOperationsErrors];
3681
+
3682
+ export type ListOperationsResponses = {
3683
+ /**
3684
+ * Successful Response
3685
+ */
3686
+ 200: OperationsListResponse;
3687
+ };
3688
+
3689
+ export type ListOperationsResponse =
3690
+ ListOperationsResponses[keyof ListOperationsResponses];
3691
+
3692
+ export type CancelOperationData = {
3693
+ body?: never;
3694
+ headers?: {
3695
+ /**
3696
+ * Authorization
3697
+ */
3698
+ authorization?: string | null;
3699
+ };
3700
+ path: {
3701
+ /**
3702
+ * Bank Id
3703
+ */
3704
+ bank_id: string;
3705
+ /**
3706
+ * Operation Id
3707
+ */
3708
+ operation_id: string;
3709
+ };
3710
+ query?: never;
3711
+ url: "/v1/default/banks/{bank_id}/operations/{operation_id}";
3712
+ };
3713
+
3714
+ export type CancelOperationErrors = {
3715
+ /**
3716
+ * Validation Error
3717
+ */
3718
+ 422: HttpValidationError;
3719
+ };
3720
+
3721
+ export type CancelOperationError =
3722
+ CancelOperationErrors[keyof CancelOperationErrors];
3723
+
3724
+ export type CancelOperationResponses = {
3725
+ /**
3726
+ * Successful Response
3727
+ */
3728
+ 200: CancelOperationResponse;
3729
+ };
3730
+
3731
+ export type CancelOperationResponse2 =
3732
+ CancelOperationResponses[keyof CancelOperationResponses];
3733
+
3734
+ export type GetOperationStatusData = {
3735
+ body?: never;
3736
+ headers?: {
3737
+ /**
3738
+ * Authorization
3739
+ */
3740
+ authorization?: string | null;
3741
+ };
3742
+ path: {
3743
+ /**
3744
+ * Bank Id
3745
+ */
3746
+ bank_id: string;
3747
+ /**
3748
+ * Operation Id
3749
+ */
3750
+ operation_id: string;
3751
+ };
3752
+ query?: never;
3753
+ url: "/v1/default/banks/{bank_id}/operations/{operation_id}";
3754
+ };
3755
+
3756
+ export type GetOperationStatusErrors = {
3757
+ /**
3758
+ * Validation Error
3759
+ */
3760
+ 422: HttpValidationError;
3761
+ };
3762
+
3763
+ export type GetOperationStatusError =
3764
+ GetOperationStatusErrors[keyof GetOperationStatusErrors];
3765
+
3766
+ export type GetOperationStatusResponses = {
3767
+ /**
3768
+ * Successful Response
3769
+ */
3770
+ 200: OperationStatusResponse;
3771
+ };
3772
+
3773
+ export type GetOperationStatusResponse =
3774
+ GetOperationStatusResponses[keyof GetOperationStatusResponses];
3775
+
3776
+ export type GetBankProfileData = {
3777
+ body?: never;
3778
+ headers?: {
3779
+ /**
3780
+ * Authorization
3781
+ */
3782
+ authorization?: string | null;
3783
+ };
3784
+ path: {
3785
+ /**
3786
+ * Bank Id
3787
+ */
3788
+ bank_id: string;
3789
+ };
3790
+ query?: never;
3791
+ url: "/v1/default/banks/{bank_id}/profile";
3792
+ };
3793
+
3794
+ export type GetBankProfileErrors = {
3795
+ /**
3796
+ * Validation Error
3797
+ */
3798
+ 422: HttpValidationError;
3799
+ };
3800
+
3801
+ export type GetBankProfileError =
3802
+ GetBankProfileErrors[keyof GetBankProfileErrors];
3803
+
3804
+ export type GetBankProfileResponses = {
3805
+ /**
3806
+ * Successful Response
3807
+ */
3808
+ 200: BankProfileResponse;
3809
+ };
3810
+
3811
+ export type GetBankProfileResponse =
3812
+ GetBankProfileResponses[keyof GetBankProfileResponses];
3813
+
3814
+ export type UpdateBankDispositionData = {
3815
+ body: UpdateDispositionRequest;
3816
+ headers?: {
3817
+ /**
3818
+ * Authorization
3819
+ */
3820
+ authorization?: string | null;
3821
+ };
3822
+ path: {
3823
+ /**
3824
+ * Bank Id
3825
+ */
3826
+ bank_id: string;
3827
+ };
3828
+ query?: never;
3829
+ url: "/v1/default/banks/{bank_id}/profile";
3830
+ };
3831
+
3832
+ export type UpdateBankDispositionErrors = {
3833
+ /**
3834
+ * Validation Error
3835
+ */
3836
+ 422: HttpValidationError;
3837
+ };
3838
+
3839
+ export type UpdateBankDispositionError =
3840
+ UpdateBankDispositionErrors[keyof UpdateBankDispositionErrors];
3841
+
3842
+ export type UpdateBankDispositionResponses = {
3843
+ /**
3844
+ * Successful Response
3845
+ */
3846
+ 200: BankProfileResponse;
3847
+ };
3848
+
3849
+ export type UpdateBankDispositionResponse =
3850
+ UpdateBankDispositionResponses[keyof UpdateBankDispositionResponses];
3851
+
3852
+ export type AddBankBackgroundData = {
3853
+ body: AddBackgroundRequest;
3854
+ headers?: {
3855
+ /**
3856
+ * Authorization
3857
+ */
3858
+ authorization?: string | null;
3859
+ };
3860
+ path: {
3861
+ /**
3862
+ * Bank Id
3863
+ */
3864
+ bank_id: string;
3865
+ };
3866
+ query?: never;
3867
+ url: "/v1/default/banks/{bank_id}/background";
3868
+ };
3869
+
3870
+ export type AddBankBackgroundErrors = {
3871
+ /**
3872
+ * Validation Error
3873
+ */
3874
+ 422: HttpValidationError;
3875
+ };
3876
+
3877
+ export type AddBankBackgroundError =
3878
+ AddBankBackgroundErrors[keyof AddBankBackgroundErrors];
3879
+
3880
+ export type AddBankBackgroundResponses = {
3881
+ /**
3882
+ * Successful Response
3883
+ */
3884
+ 200: BackgroundResponse;
3885
+ };
3886
+
3887
+ export type AddBankBackgroundResponse =
3888
+ AddBankBackgroundResponses[keyof AddBankBackgroundResponses];
3889
+
3890
+ export type DeleteBankData = {
3891
+ body?: never;
3892
+ headers?: {
3893
+ /**
3894
+ * Authorization
3895
+ */
3896
+ authorization?: string | null;
3897
+ };
3898
+ path: {
3899
+ /**
3900
+ * Bank Id
3901
+ */
3902
+ bank_id: string;
3903
+ };
3904
+ query?: never;
3905
+ url: "/v1/default/banks/{bank_id}";
3906
+ };
3907
+
3908
+ export type DeleteBankErrors = {
3909
+ /**
3910
+ * Validation Error
3911
+ */
3912
+ 422: HttpValidationError;
3913
+ };
3914
+
3915
+ export type DeleteBankError = DeleteBankErrors[keyof DeleteBankErrors];
3916
+
3917
+ export type DeleteBankResponses = {
3918
+ /**
3919
+ * Successful Response
3920
+ */
3921
+ 200: DeleteResponse;
3922
+ };
3923
+
3924
+ export type DeleteBankResponse = DeleteBankResponses[keyof DeleteBankResponses];
3925
+
3926
+ export type UpdateBankData = {
3927
+ body: CreateBankRequest;
3928
+ headers?: {
3929
+ /**
3930
+ * Authorization
3931
+ */
3932
+ authorization?: string | null;
3933
+ };
3934
+ path: {
3935
+ /**
3936
+ * Bank Id
3937
+ */
3938
+ bank_id: string;
3939
+ };
3940
+ query?: never;
3941
+ url: "/v1/default/banks/{bank_id}";
3942
+ };
3943
+
3944
+ export type UpdateBankErrors = {
3945
+ /**
3946
+ * Validation Error
3947
+ */
3948
+ 422: HttpValidationError;
3949
+ };
3950
+
3951
+ export type UpdateBankError = UpdateBankErrors[keyof UpdateBankErrors];
3952
+
3953
+ export type UpdateBankResponses = {
3954
+ /**
3955
+ * Successful Response
3956
+ */
3957
+ 200: BankProfileResponse;
3958
+ };
3959
+
3960
+ export type UpdateBankResponse = UpdateBankResponses[keyof UpdateBankResponses];
3961
+
3962
+ export type CreateOrUpdateBankData = {
3963
+ body: CreateBankRequest;
3964
+ headers?: {
3965
+ /**
3966
+ * Authorization
3967
+ */
3968
+ authorization?: string | null;
3969
+ };
3970
+ path: {
3971
+ /**
3972
+ * Bank Id
3973
+ */
3974
+ bank_id: string;
3975
+ };
3976
+ query?: never;
3977
+ url: "/v1/default/banks/{bank_id}";
3978
+ };
3979
+
3980
+ export type CreateOrUpdateBankErrors = {
3981
+ /**
3982
+ * Validation Error
3983
+ */
3984
+ 422: HttpValidationError;
3985
+ };
3986
+
3987
+ export type CreateOrUpdateBankError =
3988
+ CreateOrUpdateBankErrors[keyof CreateOrUpdateBankErrors];
3989
+
3990
+ export type CreateOrUpdateBankResponses = {
3991
+ /**
3992
+ * Successful Response
3993
+ */
3994
+ 200: BankProfileResponse;
3995
+ };
3996
+
3997
+ export type CreateOrUpdateBankResponse =
3998
+ CreateOrUpdateBankResponses[keyof CreateOrUpdateBankResponses];
3999
+
4000
+ export type ClearObservationsData = {
4001
+ body?: never;
4002
+ headers?: {
4003
+ /**
4004
+ * Authorization
4005
+ */
4006
+ authorization?: string | null;
4007
+ };
4008
+ path: {
4009
+ /**
4010
+ * Bank Id
4011
+ */
4012
+ bank_id: string;
4013
+ };
4014
+ query?: never;
4015
+ url: "/v1/default/banks/{bank_id}/observations";
4016
+ };
4017
+
4018
+ export type ClearObservationsErrors = {
4019
+ /**
4020
+ * Validation Error
4021
+ */
4022
+ 422: HttpValidationError;
4023
+ };
4024
+
4025
+ export type ClearObservationsError =
4026
+ ClearObservationsErrors[keyof ClearObservationsErrors];
4027
+
4028
+ export type ClearObservationsResponses = {
4029
+ /**
4030
+ * Successful Response
4031
+ */
4032
+ 200: DeleteResponse;
4033
+ };
4034
+
4035
+ export type ClearObservationsResponse =
4036
+ ClearObservationsResponses[keyof ClearObservationsResponses];
4037
+
4038
+ export type ClearMemoryObservationsData = {
4039
+ body?: never;
4040
+ headers?: {
4041
+ /**
4042
+ * Authorization
4043
+ */
4044
+ authorization?: string | null;
4045
+ };
4046
+ path: {
4047
+ /**
4048
+ * Bank Id
4049
+ */
4050
+ bank_id: string;
4051
+ /**
4052
+ * Memory Id
4053
+ */
4054
+ memory_id: string;
4055
+ };
4056
+ query?: never;
4057
+ url: "/v1/default/banks/{bank_id}/memories/{memory_id}/observations";
4058
+ };
4059
+
4060
+ export type ClearMemoryObservationsErrors = {
4061
+ /**
4062
+ * Validation Error
4063
+ */
4064
+ 422: HttpValidationError;
4065
+ };
4066
+
4067
+ export type ClearMemoryObservationsError =
4068
+ ClearMemoryObservationsErrors[keyof ClearMemoryObservationsErrors];
4069
+
4070
+ export type ClearMemoryObservationsResponses = {
4071
+ /**
4072
+ * Successful Response
4073
+ */
4074
+ 200: ClearMemoryObservationsResponse;
4075
+ };
4076
+
4077
+ export type ClearMemoryObservationsResponse2 =
4078
+ ClearMemoryObservationsResponses[keyof ClearMemoryObservationsResponses];
4079
+
4080
+ export type ResetBankConfigData = {
4081
+ body?: never;
4082
+ headers?: {
4083
+ /**
4084
+ * Authorization
4085
+ */
4086
+ authorization?: string | null;
4087
+ };
4088
+ path: {
4089
+ /**
4090
+ * Bank Id
4091
+ */
4092
+ bank_id: string;
4093
+ };
4094
+ query?: never;
4095
+ url: "/v1/default/banks/{bank_id}/config";
4096
+ };
4097
+
4098
+ export type ResetBankConfigErrors = {
4099
+ /**
4100
+ * Validation Error
4101
+ */
4102
+ 422: HttpValidationError;
4103
+ };
4104
+
4105
+ export type ResetBankConfigError =
4106
+ ResetBankConfigErrors[keyof ResetBankConfigErrors];
4107
+
4108
+ export type ResetBankConfigResponses = {
4109
+ /**
4110
+ * Successful Response
4111
+ */
4112
+ 200: BankConfigResponse;
4113
+ };
4114
+
4115
+ export type ResetBankConfigResponse =
4116
+ ResetBankConfigResponses[keyof ResetBankConfigResponses];
4117
+
4118
+ export type GetBankConfigData = {
4119
+ body?: never;
4120
+ headers?: {
4121
+ /**
4122
+ * Authorization
4123
+ */
4124
+ authorization?: string | null;
4125
+ };
4126
+ path: {
4127
+ /**
4128
+ * Bank Id
4129
+ */
4130
+ bank_id: string;
4131
+ };
4132
+ query?: never;
4133
+ url: "/v1/default/banks/{bank_id}/config";
4134
+ };
4135
+
4136
+ export type GetBankConfigErrors = {
4137
+ /**
4138
+ * Validation Error
4139
+ */
4140
+ 422: HttpValidationError;
4141
+ };
4142
+
4143
+ export type GetBankConfigError = GetBankConfigErrors[keyof GetBankConfigErrors];
4144
+
4145
+ export type GetBankConfigResponses = {
4146
+ /**
4147
+ * Successful Response
4148
+ */
4149
+ 200: BankConfigResponse;
4150
+ };
4151
+
4152
+ export type GetBankConfigResponse =
4153
+ GetBankConfigResponses[keyof GetBankConfigResponses];
4154
+
4155
+ export type UpdateBankConfigData = {
4156
+ body: BankConfigUpdate;
4157
+ headers?: {
4158
+ /**
4159
+ * Authorization
4160
+ */
4161
+ authorization?: string | null;
4162
+ };
4163
+ path: {
4164
+ /**
4165
+ * Bank Id
4166
+ */
4167
+ bank_id: string;
4168
+ };
4169
+ query?: never;
4170
+ url: "/v1/default/banks/{bank_id}/config";
4171
+ };
4172
+
4173
+ export type UpdateBankConfigErrors = {
4174
+ /**
4175
+ * Validation Error
4176
+ */
4177
+ 422: HttpValidationError;
4178
+ };
4179
+
4180
+ export type UpdateBankConfigError =
4181
+ UpdateBankConfigErrors[keyof UpdateBankConfigErrors];
4182
+
4183
+ export type UpdateBankConfigResponses = {
4184
+ /**
4185
+ * Successful Response
4186
+ */
4187
+ 200: BankConfigResponse;
4188
+ };
4189
+
4190
+ export type UpdateBankConfigResponse =
4191
+ UpdateBankConfigResponses[keyof UpdateBankConfigResponses];
4192
+
4193
+ export type TriggerConsolidationData = {
4194
+ body?: never;
4195
+ headers?: {
4196
+ /**
4197
+ * Authorization
4198
+ */
4199
+ authorization?: string | null;
4200
+ };
4201
+ path: {
4202
+ /**
4203
+ * Bank Id
4204
+ */
4205
+ bank_id: string;
4206
+ };
4207
+ query?: never;
4208
+ url: "/v1/default/banks/{bank_id}/consolidate";
4209
+ };
4210
+
4211
+ export type TriggerConsolidationErrors = {
4212
+ /**
4213
+ * Validation Error
4214
+ */
4215
+ 422: HttpValidationError;
4216
+ };
4217
+
4218
+ export type TriggerConsolidationError =
4219
+ TriggerConsolidationErrors[keyof TriggerConsolidationErrors];
4220
+
4221
+ export type TriggerConsolidationResponses = {
4222
+ /**
4223
+ * Successful Response
4224
+ */
4225
+ 200: ConsolidationResponse;
4226
+ };
4227
+
4228
+ export type TriggerConsolidationResponse =
4229
+ TriggerConsolidationResponses[keyof TriggerConsolidationResponses];
4230
+
4231
+ export type ListWebhooksData = {
4232
+ body?: never;
4233
+ headers?: {
4234
+ /**
4235
+ * Authorization
4236
+ */
4237
+ authorization?: string | null;
4238
+ };
4239
+ path: {
4240
+ /**
4241
+ * Bank Id
4242
+ */
4243
+ bank_id: string;
4244
+ };
4245
+ query?: never;
4246
+ url: "/v1/default/banks/{bank_id}/webhooks";
4247
+ };
4248
+
4249
+ export type ListWebhooksErrors = {
4250
+ /**
4251
+ * Validation Error
4252
+ */
4253
+ 422: HttpValidationError;
4254
+ };
4255
+
4256
+ export type ListWebhooksError = ListWebhooksErrors[keyof ListWebhooksErrors];
4257
+
4258
+ export type ListWebhooksResponses = {
4259
+ /**
4260
+ * Successful Response
4261
+ */
4262
+ 200: WebhookListResponse;
4263
+ };
4264
+
4265
+ export type ListWebhooksResponse =
4266
+ ListWebhooksResponses[keyof ListWebhooksResponses];
4267
+
4268
+ export type CreateWebhookData = {
4269
+ body: CreateWebhookRequest;
4270
+ headers?: {
4271
+ /**
4272
+ * Authorization
4273
+ */
4274
+ authorization?: string | null;
4275
+ };
4276
+ path: {
4277
+ /**
4278
+ * Bank Id
4279
+ */
4280
+ bank_id: string;
4281
+ };
4282
+ query?: never;
4283
+ url: "/v1/default/banks/{bank_id}/webhooks";
4284
+ };
4285
+
4286
+ export type CreateWebhookErrors = {
4287
+ /**
4288
+ * Validation Error
4289
+ */
4290
+ 422: HttpValidationError;
4291
+ };
4292
+
4293
+ export type CreateWebhookError = CreateWebhookErrors[keyof CreateWebhookErrors];
4294
+
4295
+ export type CreateWebhookResponses = {
4296
+ /**
4297
+ * Successful Response
4298
+ */
4299
+ 201: WebhookResponse;
4300
+ };
4301
+
4302
+ export type CreateWebhookResponse =
4303
+ CreateWebhookResponses[keyof CreateWebhookResponses];
4304
+
4305
+ export type DeleteWebhookData = {
4306
+ body?: never;
4307
+ headers?: {
4308
+ /**
4309
+ * Authorization
4310
+ */
4311
+ authorization?: string | null;
4312
+ };
4313
+ path: {
4314
+ /**
4315
+ * Bank Id
4316
+ */
4317
+ bank_id: string;
4318
+ /**
4319
+ * Webhook Id
4320
+ */
4321
+ webhook_id: string;
4322
+ };
4323
+ query?: never;
4324
+ url: "/v1/default/banks/{bank_id}/webhooks/{webhook_id}";
4325
+ };
4326
+
4327
+ export type DeleteWebhookErrors = {
4328
+ /**
4329
+ * Validation Error
4330
+ */
4331
+ 422: HttpValidationError;
4332
+ };
4333
+
4334
+ export type DeleteWebhookError = DeleteWebhookErrors[keyof DeleteWebhookErrors];
4335
+
4336
+ export type DeleteWebhookResponses = {
4337
+ /**
4338
+ * Successful Response
4339
+ */
4340
+ 200: DeleteResponse;
4341
+ };
4342
+
4343
+ export type DeleteWebhookResponse =
4344
+ DeleteWebhookResponses[keyof DeleteWebhookResponses];
4345
+
4346
+ export type UpdateWebhookData = {
4347
+ body: UpdateWebhookRequest;
4348
+ headers?: {
4349
+ /**
4350
+ * Authorization
4351
+ */
4352
+ authorization?: string | null;
4353
+ };
4354
+ path: {
4355
+ /**
4356
+ * Bank Id
4357
+ */
4358
+ bank_id: string;
4359
+ /**
4360
+ * Webhook Id
4361
+ */
4362
+ webhook_id: string;
4363
+ };
4364
+ query?: never;
4365
+ url: "/v1/default/banks/{bank_id}/webhooks/{webhook_id}";
4366
+ };
4367
+
4368
+ export type UpdateWebhookErrors = {
4369
+ /**
4370
+ * Validation Error
4371
+ */
4372
+ 422: HttpValidationError;
4373
+ };
4374
+
4375
+ export type UpdateWebhookError = UpdateWebhookErrors[keyof UpdateWebhookErrors];
4376
+
4377
+ export type UpdateWebhookResponses = {
4378
+ /**
4379
+ * Successful Response
4380
+ */
4381
+ 200: WebhookResponse;
4382
+ };
4383
+
4384
+ export type UpdateWebhookResponse =
4385
+ UpdateWebhookResponses[keyof UpdateWebhookResponses];
4386
+
4387
+ export type ListWebhookDeliveriesData = {
4388
+ body?: never;
4389
+ headers?: {
4390
+ /**
4391
+ * Authorization
4392
+ */
4393
+ authorization?: string | null;
4394
+ };
4395
+ path: {
4396
+ /**
4397
+ * Bank Id
4398
+ */
4399
+ bank_id: string;
4400
+ /**
4401
+ * Webhook Id
4402
+ */
4403
+ webhook_id: string;
4404
+ };
4405
+ query?: {
4406
+ /**
4407
+ * Limit
4408
+ *
4409
+ * Maximum number of deliveries to return
4410
+ */
4411
+ limit?: number;
4412
+ /**
4413
+ * Cursor
4414
+ *
4415
+ * Pagination cursor (created_at of last item)
4416
+ */
4417
+ cursor?: string | null;
4418
+ };
4419
+ url: "/v1/default/banks/{bank_id}/webhooks/{webhook_id}/deliveries";
4420
+ };
4421
+
4422
+ export type ListWebhookDeliveriesErrors = {
4423
+ /**
4424
+ * Validation Error
4425
+ */
4426
+ 422: HttpValidationError;
4427
+ };
4428
+
4429
+ export type ListWebhookDeliveriesError =
4430
+ ListWebhookDeliveriesErrors[keyof ListWebhookDeliveriesErrors];
4431
+
4432
+ export type ListWebhookDeliveriesResponses = {
4433
+ /**
4434
+ * Successful Response
4435
+ */
4436
+ 200: WebhookDeliveryListResponse;
4437
+ };
4438
+
4439
+ export type ListWebhookDeliveriesResponse =
4440
+ ListWebhookDeliveriesResponses[keyof ListWebhookDeliveriesResponses];
4441
+
4442
+ export type ClearBankMemoriesData = {
4443
+ body?: never;
4444
+ headers?: {
4445
+ /**
4446
+ * Authorization
4447
+ */
4448
+ authorization?: string | null;
4449
+ };
4450
+ path: {
4451
+ /**
4452
+ * Bank Id
4453
+ */
4454
+ bank_id: string;
4455
+ };
4456
+ query?: {
4457
+ /**
4458
+ * Type
4459
+ *
4460
+ * Optional fact type filter (world, experience, opinion)
4461
+ */
4462
+ type?: string | null;
4463
+ };
4464
+ url: "/v1/default/banks/{bank_id}/memories";
4465
+ };
4466
+
4467
+ export type ClearBankMemoriesErrors = {
4468
+ /**
4469
+ * Validation Error
4470
+ */
4471
+ 422: HttpValidationError;
4472
+ };
4473
+
4474
+ export type ClearBankMemoriesError =
4475
+ ClearBankMemoriesErrors[keyof ClearBankMemoriesErrors];
4476
+
4477
+ export type ClearBankMemoriesResponses = {
4478
+ /**
4479
+ * Successful Response
4480
+ */
4481
+ 200: DeleteResponse;
4482
+ };
4483
+
4484
+ export type ClearBankMemoriesResponse =
4485
+ ClearBankMemoriesResponses[keyof ClearBankMemoriesResponses];
4486
+
4487
+ export type RetainMemoriesData = {
4488
+ body: RetainRequest;
4489
+ headers?: {
4490
+ /**
4491
+ * Authorization
4492
+ */
4493
+ authorization?: string | null;
4494
+ };
4495
+ path: {
4496
+ /**
4497
+ * Bank Id
4498
+ */
4499
+ bank_id: string;
4500
+ };
4501
+ query?: never;
4502
+ url: "/v1/default/banks/{bank_id}/memories";
4503
+ };
4504
+
4505
+ export type RetainMemoriesErrors = {
4506
+ /**
4507
+ * Validation Error
4508
+ */
4509
+ 422: HttpValidationError;
4510
+ };
4511
+
4512
+ export type RetainMemoriesError =
4513
+ RetainMemoriesErrors[keyof RetainMemoriesErrors];
4514
+
4515
+ export type RetainMemoriesResponses = {
4516
+ /**
4517
+ * Successful Response
4518
+ */
4519
+ 200: RetainResponse;
4520
+ };
4521
+
4522
+ export type RetainMemoriesResponse =
4523
+ RetainMemoriesResponses[keyof RetainMemoriesResponses];
4524
+
4525
+ export type FileRetainData = {
4526
+ body: BodyFileRetain;
4527
+ headers?: {
4528
+ /**
4529
+ * Authorization
4530
+ */
4531
+ authorization?: string | null;
4532
+ };
4533
+ path: {
4534
+ /**
4535
+ * Bank Id
4536
+ */
4537
+ bank_id: string;
4538
+ };
4539
+ query?: never;
4540
+ url: "/v1/default/banks/{bank_id}/files/retain";
4541
+ };
4542
+
4543
+ export type FileRetainErrors = {
4544
+ /**
4545
+ * Validation Error
4546
+ */
4547
+ 422: HttpValidationError;
4548
+ };
4549
+
4550
+ export type FileRetainError = FileRetainErrors[keyof FileRetainErrors];
4551
+
4552
+ export type FileRetainResponses = {
4553
+ /**
4554
+ * Successful Response
4555
+ */
4556
+ 200: FileRetainResponse;
4557
+ };
4558
+
4559
+ export type FileRetainResponse2 =
4560
+ FileRetainResponses[keyof FileRetainResponses];