@vectorize-io/hindsight-client 0.4.14 → 0.4.16
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 +31 -1
- package/dist/generated/sdk.gen.d.ts.map +1 -1
- package/dist/generated/sdk.gen.js +54 -1
- package/dist/generated/sdk.gen.js.map +1 -1
- package/dist/generated/types.gen.d.ts +434 -0
- package/dist/generated/types.gen.d.ts.map +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +2 -1
- package/dist/src/index.js.map +1 -1
- package/generated/sdk.gen.ts +102 -0
- package/generated/types.gen.ts +477 -0
- package/package.json +1 -1
- package/src/index.ts +3 -1
|
@@ -593,6 +593,41 @@ export type CreateMentalModelResponse = {
|
|
|
593
593
|
*/
|
|
594
594
|
operation_id: string;
|
|
595
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
|
+
};
|
|
596
631
|
/**
|
|
597
632
|
* DeleteDocumentResponse
|
|
598
633
|
*
|
|
@@ -1118,6 +1153,8 @@ export type MemoryItem = {
|
|
|
1118
1153
|
content: string;
|
|
1119
1154
|
/**
|
|
1120
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).
|
|
1121
1158
|
*/
|
|
1122
1159
|
timestamp?: string | null;
|
|
1123
1160
|
/**
|
|
@@ -1148,6 +1185,12 @@ export type MemoryItem = {
|
|
|
1148
1185
|
* Optional tags for visibility scoping. Memories with tags can be filtered during recall.
|
|
1149
1186
|
*/
|
|
1150
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;
|
|
1151
1194
|
};
|
|
1152
1195
|
/**
|
|
1153
1196
|
* MentalModelListResponse
|
|
@@ -1986,6 +2029,41 @@ export type UpdateMentalModelRequest = {
|
|
|
1986
2029
|
*/
|
|
1987
2030
|
trigger?: MentalModelTrigger | null;
|
|
1988
2031
|
};
|
|
2032
|
+
/**
|
|
2033
|
+
* UpdateWebhookRequest
|
|
2034
|
+
*
|
|
2035
|
+
* Request model for updating a webhook. Only provided fields are updated.
|
|
2036
|
+
*/
|
|
2037
|
+
export type UpdateWebhookRequest = {
|
|
2038
|
+
/**
|
|
2039
|
+
* Url
|
|
2040
|
+
*
|
|
2041
|
+
* HTTP(S) endpoint URL
|
|
2042
|
+
*/
|
|
2043
|
+
url?: string | null;
|
|
2044
|
+
/**
|
|
2045
|
+
* Secret
|
|
2046
|
+
*
|
|
2047
|
+
* HMAC-SHA256 signing secret. Omit to keep existing; send null to clear.
|
|
2048
|
+
*/
|
|
2049
|
+
secret?: string | null;
|
|
2050
|
+
/**
|
|
2051
|
+
* Event Types
|
|
2052
|
+
*
|
|
2053
|
+
* List of event types
|
|
2054
|
+
*/
|
|
2055
|
+
event_types?: Array<string> | null;
|
|
2056
|
+
/**
|
|
2057
|
+
* Enabled
|
|
2058
|
+
*
|
|
2059
|
+
* Whether this webhook is active
|
|
2060
|
+
*/
|
|
2061
|
+
enabled?: boolean | null;
|
|
2062
|
+
/**
|
|
2063
|
+
* HTTP delivery configuration
|
|
2064
|
+
*/
|
|
2065
|
+
http_config?: WebhookHttpConfig | null;
|
|
2066
|
+
};
|
|
1989
2067
|
/**
|
|
1990
2068
|
* ValidationError
|
|
1991
2069
|
*/
|
|
@@ -2020,6 +2098,168 @@ export type VersionResponse = {
|
|
|
2020
2098
|
*/
|
|
2021
2099
|
features: FeaturesInfo;
|
|
2022
2100
|
};
|
|
2101
|
+
/**
|
|
2102
|
+
* WebhookDeliveryListResponse
|
|
2103
|
+
*
|
|
2104
|
+
* Response model for listing webhook deliveries.
|
|
2105
|
+
*/
|
|
2106
|
+
export type WebhookDeliveryListResponse = {
|
|
2107
|
+
/**
|
|
2108
|
+
* Items
|
|
2109
|
+
*/
|
|
2110
|
+
items: Array<WebhookDeliveryResponse>;
|
|
2111
|
+
/**
|
|
2112
|
+
* Next Cursor
|
|
2113
|
+
*/
|
|
2114
|
+
next_cursor?: string | null;
|
|
2115
|
+
};
|
|
2116
|
+
/**
|
|
2117
|
+
* WebhookDeliveryResponse
|
|
2118
|
+
*
|
|
2119
|
+
* Response model for a webhook delivery record.
|
|
2120
|
+
*/
|
|
2121
|
+
export type WebhookDeliveryResponse = {
|
|
2122
|
+
/**
|
|
2123
|
+
* Id
|
|
2124
|
+
*/
|
|
2125
|
+
id: string;
|
|
2126
|
+
/**
|
|
2127
|
+
* Webhook Id
|
|
2128
|
+
*/
|
|
2129
|
+
webhook_id: string | null;
|
|
2130
|
+
/**
|
|
2131
|
+
* Url
|
|
2132
|
+
*/
|
|
2133
|
+
url: string;
|
|
2134
|
+
/**
|
|
2135
|
+
* Event Type
|
|
2136
|
+
*/
|
|
2137
|
+
event_type: string;
|
|
2138
|
+
/**
|
|
2139
|
+
* Status
|
|
2140
|
+
*/
|
|
2141
|
+
status: string;
|
|
2142
|
+
/**
|
|
2143
|
+
* Attempts
|
|
2144
|
+
*/
|
|
2145
|
+
attempts: number;
|
|
2146
|
+
/**
|
|
2147
|
+
* Next Retry At
|
|
2148
|
+
*/
|
|
2149
|
+
next_retry_at?: string | null;
|
|
2150
|
+
/**
|
|
2151
|
+
* Last Error
|
|
2152
|
+
*/
|
|
2153
|
+
last_error?: string | null;
|
|
2154
|
+
/**
|
|
2155
|
+
* Last Response Status
|
|
2156
|
+
*/
|
|
2157
|
+
last_response_status?: number | null;
|
|
2158
|
+
/**
|
|
2159
|
+
* Last Response Body
|
|
2160
|
+
*/
|
|
2161
|
+
last_response_body?: string | null;
|
|
2162
|
+
/**
|
|
2163
|
+
* Last Attempt At
|
|
2164
|
+
*/
|
|
2165
|
+
last_attempt_at?: string | null;
|
|
2166
|
+
/**
|
|
2167
|
+
* Created At
|
|
2168
|
+
*/
|
|
2169
|
+
created_at?: string | null;
|
|
2170
|
+
/**
|
|
2171
|
+
* Updated At
|
|
2172
|
+
*/
|
|
2173
|
+
updated_at?: string | null;
|
|
2174
|
+
};
|
|
2175
|
+
/**
|
|
2176
|
+
* WebhookHttpConfig
|
|
2177
|
+
*
|
|
2178
|
+
* HTTP delivery configuration for a webhook.
|
|
2179
|
+
*/
|
|
2180
|
+
export type WebhookHttpConfig = {
|
|
2181
|
+
/**
|
|
2182
|
+
* Method
|
|
2183
|
+
*
|
|
2184
|
+
* HTTP method: GET or POST
|
|
2185
|
+
*/
|
|
2186
|
+
method?: string;
|
|
2187
|
+
/**
|
|
2188
|
+
* Timeout Seconds
|
|
2189
|
+
*
|
|
2190
|
+
* HTTP request timeout in seconds
|
|
2191
|
+
*/
|
|
2192
|
+
timeout_seconds?: number;
|
|
2193
|
+
/**
|
|
2194
|
+
* Headers
|
|
2195
|
+
*
|
|
2196
|
+
* Custom HTTP headers
|
|
2197
|
+
*/
|
|
2198
|
+
headers?: {
|
|
2199
|
+
[key: string]: string;
|
|
2200
|
+
};
|
|
2201
|
+
/**
|
|
2202
|
+
* Params
|
|
2203
|
+
*
|
|
2204
|
+
* Custom HTTP query parameters
|
|
2205
|
+
*/
|
|
2206
|
+
params?: {
|
|
2207
|
+
[key: string]: string;
|
|
2208
|
+
};
|
|
2209
|
+
};
|
|
2210
|
+
/**
|
|
2211
|
+
* WebhookListResponse
|
|
2212
|
+
*
|
|
2213
|
+
* Response model for listing webhooks.
|
|
2214
|
+
*/
|
|
2215
|
+
export type WebhookListResponse = {
|
|
2216
|
+
/**
|
|
2217
|
+
* Items
|
|
2218
|
+
*/
|
|
2219
|
+
items: Array<WebhookResponse>;
|
|
2220
|
+
};
|
|
2221
|
+
/**
|
|
2222
|
+
* WebhookResponse
|
|
2223
|
+
*
|
|
2224
|
+
* Response model for a webhook.
|
|
2225
|
+
*/
|
|
2226
|
+
export type WebhookResponse = {
|
|
2227
|
+
/**
|
|
2228
|
+
* Id
|
|
2229
|
+
*/
|
|
2230
|
+
id: string;
|
|
2231
|
+
/**
|
|
2232
|
+
* Bank Id
|
|
2233
|
+
*/
|
|
2234
|
+
bank_id: string | null;
|
|
2235
|
+
/**
|
|
2236
|
+
* Url
|
|
2237
|
+
*/
|
|
2238
|
+
url: string;
|
|
2239
|
+
/**
|
|
2240
|
+
* Secret
|
|
2241
|
+
*
|
|
2242
|
+
* Signing secret (redacted in responses)
|
|
2243
|
+
*/
|
|
2244
|
+
secret?: string | null;
|
|
2245
|
+
/**
|
|
2246
|
+
* Event Types
|
|
2247
|
+
*/
|
|
2248
|
+
event_types: Array<string>;
|
|
2249
|
+
/**
|
|
2250
|
+
* Enabled
|
|
2251
|
+
*/
|
|
2252
|
+
enabled: boolean;
|
|
2253
|
+
http_config?: WebhookHttpConfig;
|
|
2254
|
+
/**
|
|
2255
|
+
* Created At
|
|
2256
|
+
*/
|
|
2257
|
+
created_at?: string | null;
|
|
2258
|
+
/**
|
|
2259
|
+
* Updated At
|
|
2260
|
+
*/
|
|
2261
|
+
updated_at?: string | null;
|
|
2262
|
+
};
|
|
2023
2263
|
export type HealthEndpointHealthGetData = {
|
|
2024
2264
|
body?: never;
|
|
2025
2265
|
path?: never;
|
|
@@ -2856,8 +3096,22 @@ export type ListDocumentsData = {
|
|
|
2856
3096
|
query?: {
|
|
2857
3097
|
/**
|
|
2858
3098
|
* Q
|
|
3099
|
+
*
|
|
3100
|
+
* Case-insensitive substring filter on document ID (e.g. 'report' matches 'report-2024')
|
|
2859
3101
|
*/
|
|
2860
3102
|
q?: string | null;
|
|
3103
|
+
/**
|
|
3104
|
+
* Tags
|
|
3105
|
+
*
|
|
3106
|
+
* Filter documents by tags
|
|
3107
|
+
*/
|
|
3108
|
+
tags?: Array<string> | null;
|
|
3109
|
+
/**
|
|
3110
|
+
* Tags Match
|
|
3111
|
+
*
|
|
3112
|
+
* How to match tags: 'any', 'all', 'any_strict', 'all_strict'
|
|
3113
|
+
*/
|
|
3114
|
+
tags_match?: string;
|
|
2861
3115
|
/**
|
|
2862
3116
|
* Limit
|
|
2863
3117
|
*/
|
|
@@ -3530,6 +3784,186 @@ export type TriggerConsolidationResponses = {
|
|
|
3530
3784
|
200: ConsolidationResponse;
|
|
3531
3785
|
};
|
|
3532
3786
|
export type TriggerConsolidationResponse = TriggerConsolidationResponses[keyof TriggerConsolidationResponses];
|
|
3787
|
+
export type ListWebhooksData = {
|
|
3788
|
+
body?: never;
|
|
3789
|
+
headers?: {
|
|
3790
|
+
/**
|
|
3791
|
+
* Authorization
|
|
3792
|
+
*/
|
|
3793
|
+
authorization?: string | null;
|
|
3794
|
+
};
|
|
3795
|
+
path: {
|
|
3796
|
+
/**
|
|
3797
|
+
* Bank Id
|
|
3798
|
+
*/
|
|
3799
|
+
bank_id: string;
|
|
3800
|
+
};
|
|
3801
|
+
query?: never;
|
|
3802
|
+
url: "/v1/default/banks/{bank_id}/webhooks";
|
|
3803
|
+
};
|
|
3804
|
+
export type ListWebhooksErrors = {
|
|
3805
|
+
/**
|
|
3806
|
+
* Validation Error
|
|
3807
|
+
*/
|
|
3808
|
+
422: HttpValidationError;
|
|
3809
|
+
};
|
|
3810
|
+
export type ListWebhooksError = ListWebhooksErrors[keyof ListWebhooksErrors];
|
|
3811
|
+
export type ListWebhooksResponses = {
|
|
3812
|
+
/**
|
|
3813
|
+
* Successful Response
|
|
3814
|
+
*/
|
|
3815
|
+
200: WebhookListResponse;
|
|
3816
|
+
};
|
|
3817
|
+
export type ListWebhooksResponse = ListWebhooksResponses[keyof ListWebhooksResponses];
|
|
3818
|
+
export type CreateWebhookData = {
|
|
3819
|
+
body: CreateWebhookRequest;
|
|
3820
|
+
headers?: {
|
|
3821
|
+
/**
|
|
3822
|
+
* Authorization
|
|
3823
|
+
*/
|
|
3824
|
+
authorization?: string | null;
|
|
3825
|
+
};
|
|
3826
|
+
path: {
|
|
3827
|
+
/**
|
|
3828
|
+
* Bank Id
|
|
3829
|
+
*/
|
|
3830
|
+
bank_id: string;
|
|
3831
|
+
};
|
|
3832
|
+
query?: never;
|
|
3833
|
+
url: "/v1/default/banks/{bank_id}/webhooks";
|
|
3834
|
+
};
|
|
3835
|
+
export type CreateWebhookErrors = {
|
|
3836
|
+
/**
|
|
3837
|
+
* Validation Error
|
|
3838
|
+
*/
|
|
3839
|
+
422: HttpValidationError;
|
|
3840
|
+
};
|
|
3841
|
+
export type CreateWebhookError = CreateWebhookErrors[keyof CreateWebhookErrors];
|
|
3842
|
+
export type CreateWebhookResponses = {
|
|
3843
|
+
/**
|
|
3844
|
+
* Successful Response
|
|
3845
|
+
*/
|
|
3846
|
+
201: WebhookResponse;
|
|
3847
|
+
};
|
|
3848
|
+
export type CreateWebhookResponse = CreateWebhookResponses[keyof CreateWebhookResponses];
|
|
3849
|
+
export type DeleteWebhookData = {
|
|
3850
|
+
body?: never;
|
|
3851
|
+
headers?: {
|
|
3852
|
+
/**
|
|
3853
|
+
* Authorization
|
|
3854
|
+
*/
|
|
3855
|
+
authorization?: string | null;
|
|
3856
|
+
};
|
|
3857
|
+
path: {
|
|
3858
|
+
/**
|
|
3859
|
+
* Bank Id
|
|
3860
|
+
*/
|
|
3861
|
+
bank_id: string;
|
|
3862
|
+
/**
|
|
3863
|
+
* Webhook Id
|
|
3864
|
+
*/
|
|
3865
|
+
webhook_id: string;
|
|
3866
|
+
};
|
|
3867
|
+
query?: never;
|
|
3868
|
+
url: "/v1/default/banks/{bank_id}/webhooks/{webhook_id}";
|
|
3869
|
+
};
|
|
3870
|
+
export type DeleteWebhookErrors = {
|
|
3871
|
+
/**
|
|
3872
|
+
* Validation Error
|
|
3873
|
+
*/
|
|
3874
|
+
422: HttpValidationError;
|
|
3875
|
+
};
|
|
3876
|
+
export type DeleteWebhookError = DeleteWebhookErrors[keyof DeleteWebhookErrors];
|
|
3877
|
+
export type DeleteWebhookResponses = {
|
|
3878
|
+
/**
|
|
3879
|
+
* Successful Response
|
|
3880
|
+
*/
|
|
3881
|
+
200: DeleteResponse;
|
|
3882
|
+
};
|
|
3883
|
+
export type DeleteWebhookResponse = DeleteWebhookResponses[keyof DeleteWebhookResponses];
|
|
3884
|
+
export type UpdateWebhookData = {
|
|
3885
|
+
body: UpdateWebhookRequest;
|
|
3886
|
+
headers?: {
|
|
3887
|
+
/**
|
|
3888
|
+
* Authorization
|
|
3889
|
+
*/
|
|
3890
|
+
authorization?: string | null;
|
|
3891
|
+
};
|
|
3892
|
+
path: {
|
|
3893
|
+
/**
|
|
3894
|
+
* Bank Id
|
|
3895
|
+
*/
|
|
3896
|
+
bank_id: string;
|
|
3897
|
+
/**
|
|
3898
|
+
* Webhook Id
|
|
3899
|
+
*/
|
|
3900
|
+
webhook_id: string;
|
|
3901
|
+
};
|
|
3902
|
+
query?: never;
|
|
3903
|
+
url: "/v1/default/banks/{bank_id}/webhooks/{webhook_id}";
|
|
3904
|
+
};
|
|
3905
|
+
export type UpdateWebhookErrors = {
|
|
3906
|
+
/**
|
|
3907
|
+
* Validation Error
|
|
3908
|
+
*/
|
|
3909
|
+
422: HttpValidationError;
|
|
3910
|
+
};
|
|
3911
|
+
export type UpdateWebhookError = UpdateWebhookErrors[keyof UpdateWebhookErrors];
|
|
3912
|
+
export type UpdateWebhookResponses = {
|
|
3913
|
+
/**
|
|
3914
|
+
* Successful Response
|
|
3915
|
+
*/
|
|
3916
|
+
200: WebhookResponse;
|
|
3917
|
+
};
|
|
3918
|
+
export type UpdateWebhookResponse = UpdateWebhookResponses[keyof UpdateWebhookResponses];
|
|
3919
|
+
export type ListWebhookDeliveriesData = {
|
|
3920
|
+
body?: never;
|
|
3921
|
+
headers?: {
|
|
3922
|
+
/**
|
|
3923
|
+
* Authorization
|
|
3924
|
+
*/
|
|
3925
|
+
authorization?: string | null;
|
|
3926
|
+
};
|
|
3927
|
+
path: {
|
|
3928
|
+
/**
|
|
3929
|
+
* Bank Id
|
|
3930
|
+
*/
|
|
3931
|
+
bank_id: string;
|
|
3932
|
+
/**
|
|
3933
|
+
* Webhook Id
|
|
3934
|
+
*/
|
|
3935
|
+
webhook_id: string;
|
|
3936
|
+
};
|
|
3937
|
+
query?: {
|
|
3938
|
+
/**
|
|
3939
|
+
* Limit
|
|
3940
|
+
*
|
|
3941
|
+
* Maximum number of deliveries to return
|
|
3942
|
+
*/
|
|
3943
|
+
limit?: number;
|
|
3944
|
+
/**
|
|
3945
|
+
* Cursor
|
|
3946
|
+
*
|
|
3947
|
+
* Pagination cursor (created_at of last item)
|
|
3948
|
+
*/
|
|
3949
|
+
cursor?: string | null;
|
|
3950
|
+
};
|
|
3951
|
+
url: "/v1/default/banks/{bank_id}/webhooks/{webhook_id}/deliveries";
|
|
3952
|
+
};
|
|
3953
|
+
export type ListWebhookDeliveriesErrors = {
|
|
3954
|
+
/**
|
|
3955
|
+
* Validation Error
|
|
3956
|
+
*/
|
|
3957
|
+
422: HttpValidationError;
|
|
3958
|
+
};
|
|
3959
|
+
export type ListWebhookDeliveriesError = ListWebhookDeliveriesErrors[keyof ListWebhookDeliveriesErrors];
|
|
3960
|
+
export type ListWebhookDeliveriesResponses = {
|
|
3961
|
+
/**
|
|
3962
|
+
* Successful Response
|
|
3963
|
+
*/
|
|
3964
|
+
200: WebhookDeliveryListResponse;
|
|
3965
|
+
};
|
|
3966
|
+
export type ListWebhookDeliveriesResponse = ListWebhookDeliveriesResponses[keyof ListWebhookDeliveriesResponses];
|
|
3533
3967
|
export type ClearBankMemoriesData = {
|
|
3534
3968
|
body?: never;
|
|
3535
3969
|
headers?: {
|