@vectorize-io/hindsight-client 0.4.16 → 0.4.18
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/generated/sdk.gen.d.ts +39 -6
- package/dist/generated/sdk.gen.d.ts.map +1 -1
- package/dist/generated/sdk.gen.js +60 -7
- package/dist/generated/sdk.gen.js.map +1 -1
- package/dist/generated/types.gen.d.ts +254 -1
- package/dist/generated/types.gen.d.ts.map +1 -1
- package/generated/sdk.gen.ts +98 -5
- package/generated/types.gen.ts +289 -1
- package/package.json +1 -1
package/generated/types.gen.ts
CHANGED
|
@@ -1488,6 +1488,14 @@ export type RecallRequest = {
|
|
|
1488
1488
|
* How to match tags: 'any' (OR, includes untagged), 'all' (AND, includes untagged), 'any_strict' (OR, excludes untagged), 'all_strict' (AND, excludes untagged).
|
|
1489
1489
|
*/
|
|
1490
1490
|
tags_match?: "any" | "all" | "any_strict" | "all_strict";
|
|
1491
|
+
/**
|
|
1492
|
+
* Tag Groups
|
|
1493
|
+
*
|
|
1494
|
+
* 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: ...}.
|
|
1495
|
+
*/
|
|
1496
|
+
tag_groups?: Array<
|
|
1497
|
+
TagGroupLeaf | TagGroupAnd | TagGroupOr | TagGroupNot
|
|
1498
|
+
> | null;
|
|
1491
1499
|
};
|
|
1492
1500
|
|
|
1493
1501
|
/**
|
|
@@ -1791,6 +1799,14 @@ export type ReflectRequest = {
|
|
|
1791
1799
|
* How to match tags: 'any' (OR, includes untagged), 'all' (AND, includes untagged), 'any_strict' (OR, excludes untagged), 'all_strict' (AND, excludes untagged).
|
|
1792
1800
|
*/
|
|
1793
1801
|
tags_match?: "any" | "all" | "any_strict" | "all_strict";
|
|
1802
|
+
/**
|
|
1803
|
+
* Tag Groups
|
|
1804
|
+
*
|
|
1805
|
+
* 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: ...}.
|
|
1806
|
+
*/
|
|
1807
|
+
tag_groups?: Array<
|
|
1808
|
+
TagGroupLeaf | TagGroupAnd | TagGroupOr | TagGroupNot
|
|
1809
|
+
> | null;
|
|
1794
1810
|
};
|
|
1795
1811
|
|
|
1796
1812
|
/**
|
|
@@ -1951,6 +1967,26 @@ export type RetainResponse = {
|
|
|
1951
1967
|
usage?: TokenUsage | null;
|
|
1952
1968
|
};
|
|
1953
1969
|
|
|
1970
|
+
/**
|
|
1971
|
+
* RetryOperationResponse
|
|
1972
|
+
*
|
|
1973
|
+
* Response model for retry operation endpoint.
|
|
1974
|
+
*/
|
|
1975
|
+
export type RetryOperationResponse = {
|
|
1976
|
+
/**
|
|
1977
|
+
* Success
|
|
1978
|
+
*/
|
|
1979
|
+
success: boolean;
|
|
1980
|
+
/**
|
|
1981
|
+
* Message
|
|
1982
|
+
*/
|
|
1983
|
+
message: string;
|
|
1984
|
+
/**
|
|
1985
|
+
* Operation Id
|
|
1986
|
+
*/
|
|
1987
|
+
operation_id: string;
|
|
1988
|
+
};
|
|
1989
|
+
|
|
1954
1990
|
/**
|
|
1955
1991
|
* SourceFactsIncludeOptions
|
|
1956
1992
|
*
|
|
@@ -1960,9 +1996,67 @@ export type SourceFactsIncludeOptions = {
|
|
|
1960
1996
|
/**
|
|
1961
1997
|
* Max Tokens
|
|
1962
1998
|
*
|
|
1963
|
-
* Maximum tokens for source facts
|
|
1999
|
+
* Maximum total tokens for source facts across all observations (-1 = unlimited)
|
|
1964
2000
|
*/
|
|
1965
2001
|
max_tokens?: number;
|
|
2002
|
+
/**
|
|
2003
|
+
* Max Tokens Per Observation
|
|
2004
|
+
*
|
|
2005
|
+
* Maximum tokens of source facts per observation (-1 = unlimited)
|
|
2006
|
+
*/
|
|
2007
|
+
max_tokens_per_observation?: number;
|
|
2008
|
+
};
|
|
2009
|
+
|
|
2010
|
+
/**
|
|
2011
|
+
* TagGroupAnd
|
|
2012
|
+
*
|
|
2013
|
+
* Compound AND group: all child filters must match.
|
|
2014
|
+
*/
|
|
2015
|
+
export type TagGroupAnd = {
|
|
2016
|
+
/**
|
|
2017
|
+
* And
|
|
2018
|
+
*/
|
|
2019
|
+
and: Array<TagGroupLeaf | TagGroupAnd | TagGroupOr | TagGroupNot>;
|
|
2020
|
+
};
|
|
2021
|
+
|
|
2022
|
+
/**
|
|
2023
|
+
* TagGroupLeaf
|
|
2024
|
+
*
|
|
2025
|
+
* A leaf tag filter: matches memories by tag list and match mode.
|
|
2026
|
+
*/
|
|
2027
|
+
export type TagGroupLeaf = {
|
|
2028
|
+
/**
|
|
2029
|
+
* Tags
|
|
2030
|
+
*/
|
|
2031
|
+
tags: Array<string>;
|
|
2032
|
+
/**
|
|
2033
|
+
* Match
|
|
2034
|
+
*/
|
|
2035
|
+
match?: "any" | "all" | "any_strict" | "all_strict";
|
|
2036
|
+
};
|
|
2037
|
+
|
|
2038
|
+
/**
|
|
2039
|
+
* TagGroupNot
|
|
2040
|
+
*
|
|
2041
|
+
* Compound NOT group: child filter must NOT match.
|
|
2042
|
+
*/
|
|
2043
|
+
export type TagGroupNot = {
|
|
2044
|
+
/**
|
|
2045
|
+
* Not
|
|
2046
|
+
*/
|
|
2047
|
+
not: TagGroupLeaf | TagGroupAnd | TagGroupOr | TagGroupNot;
|
|
2048
|
+
};
|
|
2049
|
+
|
|
2050
|
+
/**
|
|
2051
|
+
* TagGroupOr
|
|
2052
|
+
*
|
|
2053
|
+
* Compound OR group: at least one child filter must match.
|
|
2054
|
+
*/
|
|
2055
|
+
export type TagGroupOr = {
|
|
2056
|
+
/**
|
|
2057
|
+
* Or
|
|
2058
|
+
*/
|
|
2059
|
+
or: Array<TagGroupLeaf | TagGroupAnd | TagGroupOr | TagGroupNot>;
|
|
1966
2060
|
};
|
|
1967
2061
|
|
|
1968
2062
|
/**
|
|
@@ -2075,6 +2169,32 @@ export type UpdateDispositionRequest = {
|
|
|
2075
2169
|
disposition: DispositionTraits;
|
|
2076
2170
|
};
|
|
2077
2171
|
|
|
2172
|
+
/**
|
|
2173
|
+
* UpdateDocumentRequest
|
|
2174
|
+
*
|
|
2175
|
+
* Request model for updating a document's mutable fields.
|
|
2176
|
+
*/
|
|
2177
|
+
export type UpdateDocumentRequest = {
|
|
2178
|
+
/**
|
|
2179
|
+
* Tags
|
|
2180
|
+
*
|
|
2181
|
+
* New tags for the document and its memory units. Triggers observation invalidation and re-consolidation.
|
|
2182
|
+
*/
|
|
2183
|
+
tags?: Array<string> | null;
|
|
2184
|
+
};
|
|
2185
|
+
|
|
2186
|
+
/**
|
|
2187
|
+
* UpdateDocumentResponse
|
|
2188
|
+
*
|
|
2189
|
+
* Response model for update document endpoint.
|
|
2190
|
+
*/
|
|
2191
|
+
export type UpdateDocumentResponse = {
|
|
2192
|
+
/**
|
|
2193
|
+
* Success
|
|
2194
|
+
*/
|
|
2195
|
+
success?: boolean;
|
|
2196
|
+
};
|
|
2197
|
+
|
|
2078
2198
|
/**
|
|
2079
2199
|
* UpdateMentalModelRequest
|
|
2080
2200
|
*
|
|
@@ -2543,6 +2663,45 @@ export type GetMemoryResponses = {
|
|
|
2543
2663
|
200: unknown;
|
|
2544
2664
|
};
|
|
2545
2665
|
|
|
2666
|
+
export type GetObservationHistoryData = {
|
|
2667
|
+
body?: never;
|
|
2668
|
+
headers?: {
|
|
2669
|
+
/**
|
|
2670
|
+
* Authorization
|
|
2671
|
+
*/
|
|
2672
|
+
authorization?: string | null;
|
|
2673
|
+
};
|
|
2674
|
+
path: {
|
|
2675
|
+
/**
|
|
2676
|
+
* Bank Id
|
|
2677
|
+
*/
|
|
2678
|
+
bank_id: string;
|
|
2679
|
+
/**
|
|
2680
|
+
* Memory Id
|
|
2681
|
+
*/
|
|
2682
|
+
memory_id: string;
|
|
2683
|
+
};
|
|
2684
|
+
query?: never;
|
|
2685
|
+
url: "/v1/default/banks/{bank_id}/memories/{memory_id}/history";
|
|
2686
|
+
};
|
|
2687
|
+
|
|
2688
|
+
export type GetObservationHistoryErrors = {
|
|
2689
|
+
/**
|
|
2690
|
+
* Validation Error
|
|
2691
|
+
*/
|
|
2692
|
+
422: HttpValidationError;
|
|
2693
|
+
};
|
|
2694
|
+
|
|
2695
|
+
export type GetObservationHistoryError =
|
|
2696
|
+
GetObservationHistoryErrors[keyof GetObservationHistoryErrors];
|
|
2697
|
+
|
|
2698
|
+
export type GetObservationHistoryResponses = {
|
|
2699
|
+
/**
|
|
2700
|
+
* Successful Response
|
|
2701
|
+
*/
|
|
2702
|
+
200: unknown;
|
|
2703
|
+
};
|
|
2704
|
+
|
|
2546
2705
|
export type RecallMemoriesData = {
|
|
2547
2706
|
body: RecallRequest;
|
|
2548
2707
|
headers?: {
|
|
@@ -3037,6 +3196,45 @@ export type UpdateMentalModelResponses = {
|
|
|
3037
3196
|
export type UpdateMentalModelResponse =
|
|
3038
3197
|
UpdateMentalModelResponses[keyof UpdateMentalModelResponses];
|
|
3039
3198
|
|
|
3199
|
+
export type GetMentalModelHistoryData = {
|
|
3200
|
+
body?: never;
|
|
3201
|
+
headers?: {
|
|
3202
|
+
/**
|
|
3203
|
+
* Authorization
|
|
3204
|
+
*/
|
|
3205
|
+
authorization?: string | null;
|
|
3206
|
+
};
|
|
3207
|
+
path: {
|
|
3208
|
+
/**
|
|
3209
|
+
* Bank Id
|
|
3210
|
+
*/
|
|
3211
|
+
bank_id: string;
|
|
3212
|
+
/**
|
|
3213
|
+
* Mental Model Id
|
|
3214
|
+
*/
|
|
3215
|
+
mental_model_id: string;
|
|
3216
|
+
};
|
|
3217
|
+
query?: never;
|
|
3218
|
+
url: "/v1/default/banks/{bank_id}/mental-models/{mental_model_id}/history";
|
|
3219
|
+
};
|
|
3220
|
+
|
|
3221
|
+
export type GetMentalModelHistoryErrors = {
|
|
3222
|
+
/**
|
|
3223
|
+
* Validation Error
|
|
3224
|
+
*/
|
|
3225
|
+
422: HttpValidationError;
|
|
3226
|
+
};
|
|
3227
|
+
|
|
3228
|
+
export type GetMentalModelHistoryError =
|
|
3229
|
+
GetMentalModelHistoryErrors[keyof GetMentalModelHistoryErrors];
|
|
3230
|
+
|
|
3231
|
+
export type GetMentalModelHistoryResponses = {
|
|
3232
|
+
/**
|
|
3233
|
+
* Successful Response
|
|
3234
|
+
*/
|
|
3235
|
+
200: unknown;
|
|
3236
|
+
};
|
|
3237
|
+
|
|
3040
3238
|
export type RefreshMentalModelData = {
|
|
3041
3239
|
body?: never;
|
|
3042
3240
|
headers?: {
|
|
@@ -3451,6 +3649,48 @@ export type GetDocumentResponses = {
|
|
|
3451
3649
|
export type GetDocumentResponse =
|
|
3452
3650
|
GetDocumentResponses[keyof GetDocumentResponses];
|
|
3453
3651
|
|
|
3652
|
+
export type UpdateDocumentData = {
|
|
3653
|
+
body: UpdateDocumentRequest;
|
|
3654
|
+
headers?: {
|
|
3655
|
+
/**
|
|
3656
|
+
* Authorization
|
|
3657
|
+
*/
|
|
3658
|
+
authorization?: string | null;
|
|
3659
|
+
};
|
|
3660
|
+
path: {
|
|
3661
|
+
/**
|
|
3662
|
+
* Bank Id
|
|
3663
|
+
*/
|
|
3664
|
+
bank_id: string;
|
|
3665
|
+
/**
|
|
3666
|
+
* Document Id
|
|
3667
|
+
*/
|
|
3668
|
+
document_id: string;
|
|
3669
|
+
};
|
|
3670
|
+
query?: never;
|
|
3671
|
+
url: "/v1/default/banks/{bank_id}/documents/{document_id}";
|
|
3672
|
+
};
|
|
3673
|
+
|
|
3674
|
+
export type UpdateDocumentErrors = {
|
|
3675
|
+
/**
|
|
3676
|
+
* Validation Error
|
|
3677
|
+
*/
|
|
3678
|
+
422: HttpValidationError;
|
|
3679
|
+
};
|
|
3680
|
+
|
|
3681
|
+
export type UpdateDocumentError =
|
|
3682
|
+
UpdateDocumentErrors[keyof UpdateDocumentErrors];
|
|
3683
|
+
|
|
3684
|
+
export type UpdateDocumentResponses = {
|
|
3685
|
+
/**
|
|
3686
|
+
* Successful Response
|
|
3687
|
+
*/
|
|
3688
|
+
200: UpdateDocumentResponse;
|
|
3689
|
+
};
|
|
3690
|
+
|
|
3691
|
+
export type UpdateDocumentResponse2 =
|
|
3692
|
+
UpdateDocumentResponses[keyof UpdateDocumentResponses];
|
|
3693
|
+
|
|
3454
3694
|
export type ListTagsData = {
|
|
3455
3695
|
body?: never;
|
|
3456
3696
|
headers?: {
|
|
@@ -3563,6 +3803,12 @@ export type ListOperationsData = {
|
|
|
3563
3803
|
* Filter by status: pending, completed, or failed
|
|
3564
3804
|
*/
|
|
3565
3805
|
status?: string | null;
|
|
3806
|
+
/**
|
|
3807
|
+
* Type
|
|
3808
|
+
*
|
|
3809
|
+
* Filter by operation type: retain, consolidation, refresh_mental_model, file_convert_retain, webhook_delivery
|
|
3810
|
+
*/
|
|
3811
|
+
type?: string | null;
|
|
3566
3812
|
/**
|
|
3567
3813
|
* Limit
|
|
3568
3814
|
*
|
|
@@ -3683,6 +3929,48 @@ export type GetOperationStatusResponses = {
|
|
|
3683
3929
|
export type GetOperationStatusResponse =
|
|
3684
3930
|
GetOperationStatusResponses[keyof GetOperationStatusResponses];
|
|
3685
3931
|
|
|
3932
|
+
export type RetryOperationData = {
|
|
3933
|
+
body?: never;
|
|
3934
|
+
headers?: {
|
|
3935
|
+
/**
|
|
3936
|
+
* Authorization
|
|
3937
|
+
*/
|
|
3938
|
+
authorization?: string | null;
|
|
3939
|
+
};
|
|
3940
|
+
path: {
|
|
3941
|
+
/**
|
|
3942
|
+
* Bank Id
|
|
3943
|
+
*/
|
|
3944
|
+
bank_id: string;
|
|
3945
|
+
/**
|
|
3946
|
+
* Operation Id
|
|
3947
|
+
*/
|
|
3948
|
+
operation_id: string;
|
|
3949
|
+
};
|
|
3950
|
+
query?: never;
|
|
3951
|
+
url: "/v1/default/banks/{bank_id}/operations/{operation_id}/retry";
|
|
3952
|
+
};
|
|
3953
|
+
|
|
3954
|
+
export type RetryOperationErrors = {
|
|
3955
|
+
/**
|
|
3956
|
+
* Validation Error
|
|
3957
|
+
*/
|
|
3958
|
+
422: HttpValidationError;
|
|
3959
|
+
};
|
|
3960
|
+
|
|
3961
|
+
export type RetryOperationError =
|
|
3962
|
+
RetryOperationErrors[keyof RetryOperationErrors];
|
|
3963
|
+
|
|
3964
|
+
export type RetryOperationResponses = {
|
|
3965
|
+
/**
|
|
3966
|
+
* Successful Response
|
|
3967
|
+
*/
|
|
3968
|
+
200: RetryOperationResponse;
|
|
3969
|
+
};
|
|
3970
|
+
|
|
3971
|
+
export type RetryOperationResponse2 =
|
|
3972
|
+
RetryOperationResponses[keyof RetryOperationResponses];
|
|
3973
|
+
|
|
3686
3974
|
export type GetBankProfileData = {
|
|
3687
3975
|
body?: never;
|
|
3688
3976
|
headers?: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vectorize-io/hindsight-client",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.18",
|
|
4
4
|
"description": "TypeScript client for Hindsight - Semantic memory system with personality-driven thinking",
|
|
5
5
|
"main": "./dist/src/index.js",
|
|
6
6
|
"types": "./dist/src/index.d.ts",
|