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