@vectorize-io/hindsight-client 0.4.21 → 0.5.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.
- package/dist/index.d.mts +505 -18
- package/dist/index.d.ts +505 -18
- package/dist/index.js +42 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +41 -0
- package/dist/index.mjs.map +1 -1
- package/generated/sdk.gen.ts +50 -0
- package/generated/types.gen.ts +509 -16
- package/package.json +1 -1
- package/src/index.ts +53 -0
package/generated/sdk.gen.ts
CHANGED
|
@@ -53,6 +53,9 @@ import type {
|
|
|
53
53
|
DeleteWebhookData,
|
|
54
54
|
DeleteWebhookErrors,
|
|
55
55
|
DeleteWebhookResponses,
|
|
56
|
+
ExportBankTemplateData,
|
|
57
|
+
ExportBankTemplateErrors,
|
|
58
|
+
ExportBankTemplateResponses,
|
|
56
59
|
FileRetainData,
|
|
57
60
|
FileRetainErrors,
|
|
58
61
|
FileRetainResponses,
|
|
@@ -65,6 +68,8 @@ import type {
|
|
|
65
68
|
GetBankProfileData,
|
|
66
69
|
GetBankProfileErrors,
|
|
67
70
|
GetBankProfileResponses,
|
|
71
|
+
GetBankTemplateSchemaData,
|
|
72
|
+
GetBankTemplateSchemaResponses,
|
|
68
73
|
GetChunkData,
|
|
69
74
|
GetChunkErrors,
|
|
70
75
|
GetChunkResponses,
|
|
@@ -99,6 +104,9 @@ import type {
|
|
|
99
104
|
GetVersionResponses,
|
|
100
105
|
HealthEndpointHealthGetData,
|
|
101
106
|
HealthEndpointHealthGetResponses,
|
|
107
|
+
ImportBankTemplateData,
|
|
108
|
+
ImportBankTemplateErrors,
|
|
109
|
+
ImportBankTemplateResponses,
|
|
102
110
|
ListAuditLogsData,
|
|
103
111
|
ListAuditLogsErrors,
|
|
104
112
|
ListAuditLogsResponses,
|
|
@@ -930,6 +938,48 @@ export const createOrUpdateBank = <ThrowOnError extends boolean = false>(
|
|
|
930
938
|
},
|
|
931
939
|
});
|
|
932
940
|
|
|
941
|
+
/**
|
|
942
|
+
* Import bank template
|
|
943
|
+
*
|
|
944
|
+
* Import a bank template manifest to create or update a bank's configuration, mental models, and directives. If the bank does not exist it is created. Config fields are applied as per-bank overrides. Mental models are matched by id, directives by name — existing ones are updated, new ones are created. Use dry_run=true to validate the manifest without applying changes.
|
|
945
|
+
*/
|
|
946
|
+
export const importBankTemplate = <ThrowOnError extends boolean = false>(
|
|
947
|
+
options: Options<ImportBankTemplateData, ThrowOnError>,
|
|
948
|
+
) =>
|
|
949
|
+
(options.client ?? client).post<
|
|
950
|
+
ImportBankTemplateResponses,
|
|
951
|
+
ImportBankTemplateErrors,
|
|
952
|
+
ThrowOnError
|
|
953
|
+
>({ url: "/v1/default/banks/{bank_id}/import", ...options });
|
|
954
|
+
|
|
955
|
+
/**
|
|
956
|
+
* Export bank template
|
|
957
|
+
*
|
|
958
|
+
* Export a bank's current configuration, mental models, and directives as a template manifest. The exported manifest can be imported into another bank to replicate the setup.
|
|
959
|
+
*/
|
|
960
|
+
export const exportBankTemplate = <ThrowOnError extends boolean = false>(
|
|
961
|
+
options: Options<ExportBankTemplateData, ThrowOnError>,
|
|
962
|
+
) =>
|
|
963
|
+
(options.client ?? client).get<
|
|
964
|
+
ExportBankTemplateResponses,
|
|
965
|
+
ExportBankTemplateErrors,
|
|
966
|
+
ThrowOnError
|
|
967
|
+
>({ url: "/v1/default/banks/{bank_id}/export", ...options });
|
|
968
|
+
|
|
969
|
+
/**
|
|
970
|
+
* Get bank template JSON Schema
|
|
971
|
+
*
|
|
972
|
+
* Returns the JSON Schema for the bank template manifest format. Use this to validate template manifests before importing.
|
|
973
|
+
*/
|
|
974
|
+
export const getBankTemplateSchema = <ThrowOnError extends boolean = false>(
|
|
975
|
+
options?: Options<GetBankTemplateSchemaData, ThrowOnError>,
|
|
976
|
+
) =>
|
|
977
|
+
(options?.client ?? client).get<
|
|
978
|
+
GetBankTemplateSchemaResponses,
|
|
979
|
+
unknown,
|
|
980
|
+
ThrowOnError
|
|
981
|
+
>({ url: "/v1/bank-template-schema", ...options });
|
|
982
|
+
|
|
933
983
|
/**
|
|
934
984
|
* Clear all observations
|
|
935
985
|
*
|
package/generated/types.gen.ts
CHANGED
|
@@ -385,6 +385,263 @@ export type BankStatsResponse = {
|
|
|
385
385
|
total_observations?: number;
|
|
386
386
|
};
|
|
387
387
|
|
|
388
|
+
/**
|
|
389
|
+
* BankTemplateConfig
|
|
390
|
+
*
|
|
391
|
+
* Bank configuration fields within a template manifest.
|
|
392
|
+
*
|
|
393
|
+
* Only includes configurable (per-bank) fields. Credential fields
|
|
394
|
+
* (API keys, base URLs) are intentionally excluded for security.
|
|
395
|
+
*/
|
|
396
|
+
export type BankTemplateConfig = {
|
|
397
|
+
/**
|
|
398
|
+
* Reflect Mission
|
|
399
|
+
*
|
|
400
|
+
* Mission/context for Reflect operations
|
|
401
|
+
*/
|
|
402
|
+
reflect_mission?: string | null;
|
|
403
|
+
/**
|
|
404
|
+
* Retain Mission
|
|
405
|
+
*
|
|
406
|
+
* Steers what gets extracted during retain
|
|
407
|
+
*/
|
|
408
|
+
retain_mission?: string | null;
|
|
409
|
+
/**
|
|
410
|
+
* Retain Extraction Mode
|
|
411
|
+
*
|
|
412
|
+
* Fact extraction mode: 'concise' (default), 'verbose', or 'custom'
|
|
413
|
+
*/
|
|
414
|
+
retain_extraction_mode?: string | null;
|
|
415
|
+
/**
|
|
416
|
+
* Retain Custom Instructions
|
|
417
|
+
*
|
|
418
|
+
* Custom extraction prompt (when mode='custom')
|
|
419
|
+
*/
|
|
420
|
+
retain_custom_instructions?: string | null;
|
|
421
|
+
/**
|
|
422
|
+
* Retain Chunk Size
|
|
423
|
+
*
|
|
424
|
+
* Max token size for each content chunk
|
|
425
|
+
*/
|
|
426
|
+
retain_chunk_size?: number | null;
|
|
427
|
+
/**
|
|
428
|
+
* Enable Observations
|
|
429
|
+
*
|
|
430
|
+
* Toggle observation consolidation
|
|
431
|
+
*/
|
|
432
|
+
enable_observations?: boolean | null;
|
|
433
|
+
/**
|
|
434
|
+
* Observations Mission
|
|
435
|
+
*
|
|
436
|
+
* Controls what gets synthesised
|
|
437
|
+
*/
|
|
438
|
+
observations_mission?: string | null;
|
|
439
|
+
/**
|
|
440
|
+
* Disposition Skepticism
|
|
441
|
+
*
|
|
442
|
+
* Skepticism trait (1-5)
|
|
443
|
+
*/
|
|
444
|
+
disposition_skepticism?: number | null;
|
|
445
|
+
/**
|
|
446
|
+
* Disposition Literalism
|
|
447
|
+
*
|
|
448
|
+
* Literalism trait (1-5)
|
|
449
|
+
*/
|
|
450
|
+
disposition_literalism?: number | null;
|
|
451
|
+
/**
|
|
452
|
+
* Disposition Empathy
|
|
453
|
+
*
|
|
454
|
+
* Empathy trait (1-5)
|
|
455
|
+
*/
|
|
456
|
+
disposition_empathy?: number | null;
|
|
457
|
+
/**
|
|
458
|
+
* Entity Labels
|
|
459
|
+
*
|
|
460
|
+
* Controlled vocabulary for entity labels
|
|
461
|
+
*/
|
|
462
|
+
entity_labels?: Array<{
|
|
463
|
+
[key: string]: unknown;
|
|
464
|
+
}> | null;
|
|
465
|
+
/**
|
|
466
|
+
* Entities Allow Free Form
|
|
467
|
+
*
|
|
468
|
+
* Allow entities outside the label vocabulary
|
|
469
|
+
*/
|
|
470
|
+
entities_allow_free_form?: boolean | null;
|
|
471
|
+
};
|
|
472
|
+
|
|
473
|
+
/**
|
|
474
|
+
* BankTemplateDirective
|
|
475
|
+
*
|
|
476
|
+
* A directive definition within a bank template manifest.
|
|
477
|
+
*
|
|
478
|
+
* Directives are matched by name on re-import: existing directives
|
|
479
|
+
* with the same name are updated, new ones are created.
|
|
480
|
+
*/
|
|
481
|
+
export type BankTemplateDirective = {
|
|
482
|
+
/**
|
|
483
|
+
* Name
|
|
484
|
+
*
|
|
485
|
+
* Human-readable name for the directive (used as match key on re-import)
|
|
486
|
+
*/
|
|
487
|
+
name: string;
|
|
488
|
+
/**
|
|
489
|
+
* Content
|
|
490
|
+
*
|
|
491
|
+
* The directive text to inject into prompts
|
|
492
|
+
*/
|
|
493
|
+
content: string;
|
|
494
|
+
/**
|
|
495
|
+
* Priority
|
|
496
|
+
*
|
|
497
|
+
* Higher priority directives are injected first
|
|
498
|
+
*/
|
|
499
|
+
priority?: number;
|
|
500
|
+
/**
|
|
501
|
+
* Is Active
|
|
502
|
+
*
|
|
503
|
+
* Whether this directive is active
|
|
504
|
+
*/
|
|
505
|
+
is_active?: boolean;
|
|
506
|
+
/**
|
|
507
|
+
* Tags
|
|
508
|
+
*
|
|
509
|
+
* Tags for filtering
|
|
510
|
+
*/
|
|
511
|
+
tags?: Array<string>;
|
|
512
|
+
};
|
|
513
|
+
|
|
514
|
+
/**
|
|
515
|
+
* BankTemplateImportResponse
|
|
516
|
+
*
|
|
517
|
+
* Response model for the bank template import endpoint.
|
|
518
|
+
*/
|
|
519
|
+
export type BankTemplateImportResponse = {
|
|
520
|
+
/**
|
|
521
|
+
* Bank Id
|
|
522
|
+
*
|
|
523
|
+
* Bank that was imported into
|
|
524
|
+
*/
|
|
525
|
+
bank_id: string;
|
|
526
|
+
/**
|
|
527
|
+
* Config Applied
|
|
528
|
+
*
|
|
529
|
+
* Whether bank config was updated
|
|
530
|
+
*/
|
|
531
|
+
config_applied: boolean;
|
|
532
|
+
/**
|
|
533
|
+
* Mental Models Created
|
|
534
|
+
*
|
|
535
|
+
* IDs of newly created mental models
|
|
536
|
+
*/
|
|
537
|
+
mental_models_created?: Array<string>;
|
|
538
|
+
/**
|
|
539
|
+
* Mental Models Updated
|
|
540
|
+
*
|
|
541
|
+
* IDs of updated mental models
|
|
542
|
+
*/
|
|
543
|
+
mental_models_updated?: Array<string>;
|
|
544
|
+
/**
|
|
545
|
+
* Directives Created
|
|
546
|
+
*
|
|
547
|
+
* Names of newly created directives
|
|
548
|
+
*/
|
|
549
|
+
directives_created?: Array<string>;
|
|
550
|
+
/**
|
|
551
|
+
* Directives Updated
|
|
552
|
+
*
|
|
553
|
+
* Names of updated directives
|
|
554
|
+
*/
|
|
555
|
+
directives_updated?: Array<string>;
|
|
556
|
+
/**
|
|
557
|
+
* Operation Ids
|
|
558
|
+
*
|
|
559
|
+
* Operation IDs for mental model content generation (async)
|
|
560
|
+
*/
|
|
561
|
+
operation_ids?: Array<string>;
|
|
562
|
+
/**
|
|
563
|
+
* Dry Run
|
|
564
|
+
*
|
|
565
|
+
* True if this was a validation-only run
|
|
566
|
+
*/
|
|
567
|
+
dry_run?: boolean;
|
|
568
|
+
};
|
|
569
|
+
|
|
570
|
+
/**
|
|
571
|
+
* BankTemplateManifest
|
|
572
|
+
*
|
|
573
|
+
* A bank template manifest for import/export.
|
|
574
|
+
*
|
|
575
|
+
* Version field enables forward-compatible schema evolution: the API
|
|
576
|
+
* auto-upgrades older manifest versions to the current schema on import.
|
|
577
|
+
*/
|
|
578
|
+
export type BankTemplateManifest = {
|
|
579
|
+
/**
|
|
580
|
+
* Version
|
|
581
|
+
*
|
|
582
|
+
* Manifest schema version (currently '1')
|
|
583
|
+
*/
|
|
584
|
+
version: string;
|
|
585
|
+
/**
|
|
586
|
+
* Bank configuration to apply. Omit to leave config unchanged.
|
|
587
|
+
*/
|
|
588
|
+
bank?: BankTemplateConfig | null;
|
|
589
|
+
/**
|
|
590
|
+
* Mental Models
|
|
591
|
+
*
|
|
592
|
+
* Mental models to create or update (matched by id). Omit to leave unchanged.
|
|
593
|
+
*/
|
|
594
|
+
mental_models?: Array<BankTemplateMentalModel> | null;
|
|
595
|
+
/**
|
|
596
|
+
* Directives
|
|
597
|
+
*
|
|
598
|
+
* Directives to create or update (matched by name). Omit to leave unchanged.
|
|
599
|
+
*/
|
|
600
|
+
directives?: Array<BankTemplateDirective> | null;
|
|
601
|
+
};
|
|
602
|
+
|
|
603
|
+
/**
|
|
604
|
+
* BankTemplateMentalModel
|
|
605
|
+
*
|
|
606
|
+
* A mental model definition within a bank template manifest.
|
|
607
|
+
*/
|
|
608
|
+
export type BankTemplateMentalModel = {
|
|
609
|
+
/**
|
|
610
|
+
* Id
|
|
611
|
+
*
|
|
612
|
+
* Unique ID for the mental model (alphanumeric lowercase with hyphens)
|
|
613
|
+
*/
|
|
614
|
+
id: string;
|
|
615
|
+
/**
|
|
616
|
+
* Name
|
|
617
|
+
*
|
|
618
|
+
* Human-readable name for the mental model
|
|
619
|
+
*/
|
|
620
|
+
name: string;
|
|
621
|
+
/**
|
|
622
|
+
* Source Query
|
|
623
|
+
*
|
|
624
|
+
* The query to run to generate content
|
|
625
|
+
*/
|
|
626
|
+
source_query: string;
|
|
627
|
+
/**
|
|
628
|
+
* Tags
|
|
629
|
+
*
|
|
630
|
+
* Tags for scoped visibility
|
|
631
|
+
*/
|
|
632
|
+
tags?: Array<string>;
|
|
633
|
+
/**
|
|
634
|
+
* Max Tokens
|
|
635
|
+
*
|
|
636
|
+
* Maximum tokens for generated content
|
|
637
|
+
*/
|
|
638
|
+
max_tokens?: number;
|
|
639
|
+
/**
|
|
640
|
+
* Trigger settings
|
|
641
|
+
*/
|
|
642
|
+
trigger?: MentalModelTriggerOutput;
|
|
643
|
+
};
|
|
644
|
+
|
|
388
645
|
/**
|
|
389
646
|
* Body_file_retain
|
|
390
647
|
*/
|
|
@@ -729,7 +986,7 @@ export type CreateMentalModelRequest = {
|
|
|
729
986
|
/**
|
|
730
987
|
* Trigger settings
|
|
731
988
|
*/
|
|
732
|
-
trigger?:
|
|
989
|
+
trigger?: MentalModelTriggerInput;
|
|
733
990
|
};
|
|
734
991
|
|
|
735
992
|
/**
|
|
@@ -954,6 +1211,22 @@ export type DocumentResponse = {
|
|
|
954
1211
|
* Tags associated with this document
|
|
955
1212
|
*/
|
|
956
1213
|
tags?: Array<string>;
|
|
1214
|
+
/**
|
|
1215
|
+
* Document Metadata
|
|
1216
|
+
*
|
|
1217
|
+
* Document metadata
|
|
1218
|
+
*/
|
|
1219
|
+
document_metadata?: {
|
|
1220
|
+
[key: string]: unknown;
|
|
1221
|
+
} | null;
|
|
1222
|
+
/**
|
|
1223
|
+
* Retain Params
|
|
1224
|
+
*
|
|
1225
|
+
* Parameters used during retain
|
|
1226
|
+
*/
|
|
1227
|
+
retain_params?: {
|
|
1228
|
+
[key: string]: unknown;
|
|
1229
|
+
} | null;
|
|
957
1230
|
};
|
|
958
1231
|
|
|
959
1232
|
/**
|
|
@@ -1384,6 +1657,12 @@ export type MemoryItem = {
|
|
|
1384
1657
|
* Named retain strategy for this item. Overrides the bank's default strategy for this item only. Strategies are defined in the bank config under 'retain_strategies'.
|
|
1385
1658
|
*/
|
|
1386
1659
|
strategy?: string | null;
|
|
1660
|
+
/**
|
|
1661
|
+
* Update Mode
|
|
1662
|
+
*
|
|
1663
|
+
* How to handle an existing document with the same document_id. 'replace' (default) deletes old data and reprocesses from scratch. 'append' concatenates new content to the existing document text and reprocesses.
|
|
1664
|
+
*/
|
|
1665
|
+
update_mode?: "replace" | "append" | null;
|
|
1387
1666
|
};
|
|
1388
1667
|
|
|
1389
1668
|
/**
|
|
@@ -1419,13 +1698,13 @@ export type MentalModelResponse = {
|
|
|
1419
1698
|
/**
|
|
1420
1699
|
* Source Query
|
|
1421
1700
|
*/
|
|
1422
|
-
source_query
|
|
1701
|
+
source_query?: string | null;
|
|
1423
1702
|
/**
|
|
1424
1703
|
* Content
|
|
1425
1704
|
*
|
|
1426
1705
|
* The mental model content as well-formatted markdown (auto-generated from reflect endpoint)
|
|
1427
1706
|
*/
|
|
1428
|
-
content
|
|
1707
|
+
content?: string | null;
|
|
1429
1708
|
/**
|
|
1430
1709
|
* Tags
|
|
1431
1710
|
*/
|
|
@@ -1433,8 +1712,8 @@ export type MentalModelResponse = {
|
|
|
1433
1712
|
/**
|
|
1434
1713
|
* Max Tokens
|
|
1435
1714
|
*/
|
|
1436
|
-
max_tokens?: number;
|
|
1437
|
-
trigger?:
|
|
1715
|
+
max_tokens?: number | null;
|
|
1716
|
+
trigger?: MentalModelTriggerOutput | null;
|
|
1438
1717
|
/**
|
|
1439
1718
|
* Last Refreshed At
|
|
1440
1719
|
*/
|
|
@@ -1458,7 +1737,53 @@ export type MentalModelResponse = {
|
|
|
1458
1737
|
*
|
|
1459
1738
|
* Trigger settings for a mental model.
|
|
1460
1739
|
*/
|
|
1461
|
-
export type
|
|
1740
|
+
export type MentalModelTriggerInput = {
|
|
1741
|
+
/**
|
|
1742
|
+
* Refresh After Consolidation
|
|
1743
|
+
*
|
|
1744
|
+
* If true, refresh this mental model after observations consolidation (real-time mode)
|
|
1745
|
+
*/
|
|
1746
|
+
refresh_after_consolidation?: boolean;
|
|
1747
|
+
/**
|
|
1748
|
+
* Fact Types
|
|
1749
|
+
*
|
|
1750
|
+
* Filter which fact types are retrieved during reflect. None means all types (world, experience, observation).
|
|
1751
|
+
*/
|
|
1752
|
+
fact_types?: Array<"world" | "experience" | "observation"> | null;
|
|
1753
|
+
/**
|
|
1754
|
+
* Exclude Mental Models
|
|
1755
|
+
*
|
|
1756
|
+
* If true, exclude all mental models from the reflect loop (skip search_mental_models tool).
|
|
1757
|
+
*/
|
|
1758
|
+
exclude_mental_models?: boolean;
|
|
1759
|
+
/**
|
|
1760
|
+
* Exclude Mental Model Ids
|
|
1761
|
+
*
|
|
1762
|
+
* Exclude specific mental models by ID from the reflect loop.
|
|
1763
|
+
*/
|
|
1764
|
+
exclude_mental_model_ids?: Array<string> | null;
|
|
1765
|
+
/**
|
|
1766
|
+
* Tags Match
|
|
1767
|
+
*
|
|
1768
|
+
* Override how the model's tags filter memories during refresh. If not set, defaults to 'all_strict' when the model has tags (security isolation) or 'any' when the model has no tags. Set to 'any' to include untagged memories alongside tagged ones during refresh.
|
|
1769
|
+
*/
|
|
1770
|
+
tags_match?: "any" | "all" | "any_strict" | "all_strict" | null;
|
|
1771
|
+
/**
|
|
1772
|
+
* Tag Groups
|
|
1773
|
+
*
|
|
1774
|
+
* Compound boolean tag expressions to use during refresh instead of the model's own tags. When set, these tag groups are passed to reflect and the model's flat tags are NOT used for filtering. Supports nested and/or/not expressions for complex tag-based scoping.
|
|
1775
|
+
*/
|
|
1776
|
+
tag_groups?: Array<
|
|
1777
|
+
TagGroupLeaf | TagGroupAndInput | TagGroupOrInput | TagGroupNotInput
|
|
1778
|
+
> | null;
|
|
1779
|
+
};
|
|
1780
|
+
|
|
1781
|
+
/**
|
|
1782
|
+
* MentalModelTrigger
|
|
1783
|
+
*
|
|
1784
|
+
* Trigger settings for a mental model.
|
|
1785
|
+
*/
|
|
1786
|
+
export type MentalModelTriggerOutput = {
|
|
1462
1787
|
/**
|
|
1463
1788
|
* Refresh After Consolidation
|
|
1464
1789
|
*
|
|
@@ -1483,6 +1808,20 @@ export type MentalModelTrigger = {
|
|
|
1483
1808
|
* Exclude specific mental models by ID from the reflect loop.
|
|
1484
1809
|
*/
|
|
1485
1810
|
exclude_mental_model_ids?: Array<string> | null;
|
|
1811
|
+
/**
|
|
1812
|
+
* Tags Match
|
|
1813
|
+
*
|
|
1814
|
+
* Override how the model's tags filter memories during refresh. If not set, defaults to 'all_strict' when the model has tags (security isolation) or 'any' when the model has no tags. Set to 'any' to include untagged memories alongside tagged ones during refresh.
|
|
1815
|
+
*/
|
|
1816
|
+
tags_match?: "any" | "all" | "any_strict" | "all_strict" | null;
|
|
1817
|
+
/**
|
|
1818
|
+
* Tag Groups
|
|
1819
|
+
*
|
|
1820
|
+
* Compound boolean tag expressions to use during refresh instead of the model's own tags. When set, these tag groups are passed to reflect and the model's flat tags are NOT used for filtering. Supports nested and/or/not expressions for complex tag-based scoping.
|
|
1821
|
+
*/
|
|
1822
|
+
tag_groups?: Array<
|
|
1823
|
+
TagGroupLeaf | TagGroupAndOutput | TagGroupOrOutput | TagGroupNotOutput
|
|
1824
|
+
> | null;
|
|
1486
1825
|
};
|
|
1487
1826
|
|
|
1488
1827
|
/**
|
|
@@ -1652,7 +1991,7 @@ export type RecallRequest = {
|
|
|
1652
1991
|
* Compound tag filter using boolean groups. Groups in the list are AND-ed. Each group is a leaf {tags, match} or compound {and: [...]}, {or: [...]}, {not: ...}.
|
|
1653
1992
|
*/
|
|
1654
1993
|
tag_groups?: Array<
|
|
1655
|
-
TagGroupLeaf |
|
|
1994
|
+
TagGroupLeaf | TagGroupAndInput | TagGroupOrInput | TagGroupNotInput
|
|
1656
1995
|
> | null;
|
|
1657
1996
|
};
|
|
1658
1997
|
|
|
@@ -1975,7 +2314,7 @@ export type ReflectRequest = {
|
|
|
1975
2314
|
* Compound tag filter using boolean groups. Groups in the list are AND-ed. Each group is a leaf {tags, match} or compound {and: [...]}, {or: [...]}, {not: ...}.
|
|
1976
2315
|
*/
|
|
1977
2316
|
tag_groups?: Array<
|
|
1978
|
-
TagGroupLeaf |
|
|
2317
|
+
TagGroupLeaf | TagGroupAndInput | TagGroupOrInput | TagGroupNotInput
|
|
1979
2318
|
> | null;
|
|
1980
2319
|
/**
|
|
1981
2320
|
* Fact Types
|
|
@@ -2206,11 +2545,27 @@ export type SourceFactsIncludeOptions = {
|
|
|
2206
2545
|
*
|
|
2207
2546
|
* Compound AND group: all child filters must match.
|
|
2208
2547
|
*/
|
|
2209
|
-
export type
|
|
2548
|
+
export type TagGroupAndInput = {
|
|
2210
2549
|
/**
|
|
2211
2550
|
* And
|
|
2212
2551
|
*/
|
|
2213
|
-
and: Array<
|
|
2552
|
+
and: Array<
|
|
2553
|
+
TagGroupLeaf | TagGroupAndInput | TagGroupOrInput | TagGroupNotInput
|
|
2554
|
+
>;
|
|
2555
|
+
};
|
|
2556
|
+
|
|
2557
|
+
/**
|
|
2558
|
+
* TagGroupAnd
|
|
2559
|
+
*
|
|
2560
|
+
* Compound AND group: all child filters must match.
|
|
2561
|
+
*/
|
|
2562
|
+
export type TagGroupAndOutput = {
|
|
2563
|
+
/**
|
|
2564
|
+
* And
|
|
2565
|
+
*/
|
|
2566
|
+
and: Array<
|
|
2567
|
+
TagGroupLeaf | TagGroupAndOutput | TagGroupOrOutput | TagGroupNotOutput
|
|
2568
|
+
>;
|
|
2214
2569
|
};
|
|
2215
2570
|
|
|
2216
2571
|
/**
|
|
@@ -2234,11 +2589,23 @@ export type TagGroupLeaf = {
|
|
|
2234
2589
|
*
|
|
2235
2590
|
* Compound NOT group: child filter must NOT match.
|
|
2236
2591
|
*/
|
|
2237
|
-
export type
|
|
2592
|
+
export type TagGroupNotInput = {
|
|
2593
|
+
/**
|
|
2594
|
+
* Not
|
|
2595
|
+
*/
|
|
2596
|
+
not: TagGroupLeaf | TagGroupAndInput | TagGroupOrInput | TagGroupNotInput;
|
|
2597
|
+
};
|
|
2598
|
+
|
|
2599
|
+
/**
|
|
2600
|
+
* TagGroupNot
|
|
2601
|
+
*
|
|
2602
|
+
* Compound NOT group: child filter must NOT match.
|
|
2603
|
+
*/
|
|
2604
|
+
export type TagGroupNotOutput = {
|
|
2238
2605
|
/**
|
|
2239
2606
|
* Not
|
|
2240
2607
|
*/
|
|
2241
|
-
not: TagGroupLeaf |
|
|
2608
|
+
not: TagGroupLeaf | TagGroupAndOutput | TagGroupOrOutput | TagGroupNotOutput;
|
|
2242
2609
|
};
|
|
2243
2610
|
|
|
2244
2611
|
/**
|
|
@@ -2246,11 +2613,27 @@ export type TagGroupNot = {
|
|
|
2246
2613
|
*
|
|
2247
2614
|
* Compound OR group: at least one child filter must match.
|
|
2248
2615
|
*/
|
|
2249
|
-
export type
|
|
2616
|
+
export type TagGroupOrInput = {
|
|
2250
2617
|
/**
|
|
2251
2618
|
* Or
|
|
2252
2619
|
*/
|
|
2253
|
-
or: Array<
|
|
2620
|
+
or: Array<
|
|
2621
|
+
TagGroupLeaf | TagGroupAndInput | TagGroupOrInput | TagGroupNotInput
|
|
2622
|
+
>;
|
|
2623
|
+
};
|
|
2624
|
+
|
|
2625
|
+
/**
|
|
2626
|
+
* TagGroupOr
|
|
2627
|
+
*
|
|
2628
|
+
* Compound OR group: at least one child filter must match.
|
|
2629
|
+
*/
|
|
2630
|
+
export type TagGroupOrOutput = {
|
|
2631
|
+
/**
|
|
2632
|
+
* Or
|
|
2633
|
+
*/
|
|
2634
|
+
or: Array<
|
|
2635
|
+
TagGroupLeaf | TagGroupAndOutput | TagGroupOrOutput | TagGroupNotOutput
|
|
2636
|
+
>;
|
|
2254
2637
|
};
|
|
2255
2638
|
|
|
2256
2639
|
/**
|
|
@@ -2422,7 +2805,7 @@ export type UpdateMentalModelRequest = {
|
|
|
2422
2805
|
/**
|
|
2423
2806
|
* Trigger settings
|
|
2424
2807
|
*/
|
|
2425
|
-
trigger?:
|
|
2808
|
+
trigger?: MentalModelTriggerInput | null;
|
|
2426
2809
|
};
|
|
2427
2810
|
|
|
2428
2811
|
/**
|
|
@@ -3211,6 +3594,12 @@ export type ListMentalModelsData = {
|
|
|
3211
3594
|
* How to match tags
|
|
3212
3595
|
*/
|
|
3213
3596
|
tags_match?: "any" | "all" | "exact";
|
|
3597
|
+
/**
|
|
3598
|
+
* Detail
|
|
3599
|
+
*
|
|
3600
|
+
* Detail level: 'metadata' (names/tags only), 'content' (adds content/config), 'full' (includes reflect_response)
|
|
3601
|
+
*/
|
|
3602
|
+
detail?: "metadata" | "content" | "full";
|
|
3214
3603
|
/**
|
|
3215
3604
|
* Limit
|
|
3216
3605
|
*/
|
|
@@ -3338,7 +3727,14 @@ export type GetMentalModelData = {
|
|
|
3338
3727
|
*/
|
|
3339
3728
|
mental_model_id: string;
|
|
3340
3729
|
};
|
|
3341
|
-
query?:
|
|
3730
|
+
query?: {
|
|
3731
|
+
/**
|
|
3732
|
+
* Detail
|
|
3733
|
+
*
|
|
3734
|
+
* Detail level: 'metadata' (names/tags only), 'content' (adds content/config), 'full' (includes reflect_response)
|
|
3735
|
+
*/
|
|
3736
|
+
detail?: "metadata" | "content" | "full";
|
|
3737
|
+
};
|
|
3342
3738
|
url: "/v1/default/banks/{bank_id}/mental-models/{mental_model_id}";
|
|
3343
3739
|
};
|
|
3344
3740
|
|
|
@@ -4403,6 +4799,103 @@ export type CreateOrUpdateBankResponses = {
|
|
|
4403
4799
|
export type CreateOrUpdateBankResponse =
|
|
4404
4800
|
CreateOrUpdateBankResponses[keyof CreateOrUpdateBankResponses];
|
|
4405
4801
|
|
|
4802
|
+
export type ImportBankTemplateData = {
|
|
4803
|
+
body?: never;
|
|
4804
|
+
headers?: {
|
|
4805
|
+
/**
|
|
4806
|
+
* Authorization
|
|
4807
|
+
*/
|
|
4808
|
+
authorization?: string | null;
|
|
4809
|
+
};
|
|
4810
|
+
path: {
|
|
4811
|
+
/**
|
|
4812
|
+
* Bank Id
|
|
4813
|
+
*/
|
|
4814
|
+
bank_id: string;
|
|
4815
|
+
};
|
|
4816
|
+
query?: {
|
|
4817
|
+
/**
|
|
4818
|
+
* Dry Run
|
|
4819
|
+
*
|
|
4820
|
+
* Validate only, do not apply changes
|
|
4821
|
+
*/
|
|
4822
|
+
dry_run?: boolean;
|
|
4823
|
+
};
|
|
4824
|
+
url: "/v1/default/banks/{bank_id}/import";
|
|
4825
|
+
};
|
|
4826
|
+
|
|
4827
|
+
export type ImportBankTemplateErrors = {
|
|
4828
|
+
/**
|
|
4829
|
+
* Validation Error
|
|
4830
|
+
*/
|
|
4831
|
+
422: HttpValidationError;
|
|
4832
|
+
};
|
|
4833
|
+
|
|
4834
|
+
export type ImportBankTemplateError =
|
|
4835
|
+
ImportBankTemplateErrors[keyof ImportBankTemplateErrors];
|
|
4836
|
+
|
|
4837
|
+
export type ImportBankTemplateResponses = {
|
|
4838
|
+
/**
|
|
4839
|
+
* Successful Response
|
|
4840
|
+
*/
|
|
4841
|
+
200: BankTemplateImportResponse;
|
|
4842
|
+
};
|
|
4843
|
+
|
|
4844
|
+
export type ImportBankTemplateResponse =
|
|
4845
|
+
ImportBankTemplateResponses[keyof ImportBankTemplateResponses];
|
|
4846
|
+
|
|
4847
|
+
export type ExportBankTemplateData = {
|
|
4848
|
+
body?: never;
|
|
4849
|
+
headers?: {
|
|
4850
|
+
/**
|
|
4851
|
+
* Authorization
|
|
4852
|
+
*/
|
|
4853
|
+
authorization?: string | null;
|
|
4854
|
+
};
|
|
4855
|
+
path: {
|
|
4856
|
+
/**
|
|
4857
|
+
* Bank Id
|
|
4858
|
+
*/
|
|
4859
|
+
bank_id: string;
|
|
4860
|
+
};
|
|
4861
|
+
query?: never;
|
|
4862
|
+
url: "/v1/default/banks/{bank_id}/export";
|
|
4863
|
+
};
|
|
4864
|
+
|
|
4865
|
+
export type ExportBankTemplateErrors = {
|
|
4866
|
+
/**
|
|
4867
|
+
* Validation Error
|
|
4868
|
+
*/
|
|
4869
|
+
422: HttpValidationError;
|
|
4870
|
+
};
|
|
4871
|
+
|
|
4872
|
+
export type ExportBankTemplateError =
|
|
4873
|
+
ExportBankTemplateErrors[keyof ExportBankTemplateErrors];
|
|
4874
|
+
|
|
4875
|
+
export type ExportBankTemplateResponses = {
|
|
4876
|
+
/**
|
|
4877
|
+
* Successful Response
|
|
4878
|
+
*/
|
|
4879
|
+
200: BankTemplateManifest;
|
|
4880
|
+
};
|
|
4881
|
+
|
|
4882
|
+
export type ExportBankTemplateResponse =
|
|
4883
|
+
ExportBankTemplateResponses[keyof ExportBankTemplateResponses];
|
|
4884
|
+
|
|
4885
|
+
export type GetBankTemplateSchemaData = {
|
|
4886
|
+
body?: never;
|
|
4887
|
+
path?: never;
|
|
4888
|
+
query?: never;
|
|
4889
|
+
url: "/v1/bank-template-schema";
|
|
4890
|
+
};
|
|
4891
|
+
|
|
4892
|
+
export type GetBankTemplateSchemaResponses = {
|
|
4893
|
+
/**
|
|
4894
|
+
* Successful Response
|
|
4895
|
+
*/
|
|
4896
|
+
200: unknown;
|
|
4897
|
+
};
|
|
4898
|
+
|
|
4406
4899
|
export type ClearObservationsData = {
|
|
4407
4900
|
body?: never;
|
|
4408
4901
|
headers?: {
|