@anuma/sdk 3.3.0 → 3.4.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/client/index.cjs +793 -1420
- package/dist/client/index.d.mts +406 -402
- package/dist/client/index.d.ts +406 -402
- package/dist/client/index.mjs +793 -1420
- package/dist/expo/{chunk-NMZMXIUM.mjs → chunk-C7PGRFBG.mjs} +82 -9
- package/dist/expo/index.cjs +234 -168
- package/dist/expo/index.d.mts +70 -1
- package/dist/expo/index.d.ts +70 -1
- package/dist/expo/index.mjs +144 -156
- package/dist/expo/{recall-7FUJRHOI.mjs → recall-7ZX6T2VD.mjs} +1 -1
- package/dist/index.cjs +453 -783
- package/dist/index.d.mts +491 -487
- package/dist/index.d.ts +491 -487
- package/dist/index.mjs +453 -783
- package/dist/react/{chunk-GZRK43CA.mjs → chunk-CGC3UJHM.mjs} +82 -9
- package/dist/react/index.cjs +305 -290
- package/dist/react/index.d.mts +453 -380
- package/dist/react/index.d.ts +453 -380
- package/dist/react/index.mjs +215 -278
- package/dist/react/{recall-YZGWZC5W.mjs → recall-OTUNGQHQ.mjs} +1 -1
- package/dist/server/{chunk-NVTMJWFA.mjs → chunk-LUDHA4X4.mjs} +82 -9
- package/dist/server/index.cjs +124 -30
- package/dist/server/index.d.mts +70 -1
- package/dist/server/index.d.ts +70 -1
- package/dist/server/index.mjs +34 -18
- package/dist/server/{recall-76WPPKLR.mjs → recall-GWRWPGE4.mjs} +1 -1
- package/dist/tools/selection/index.cjs +3 -0
- package/dist/tools/selection/index.mjs +3 -0
- package/package.json +2 -2
package/dist/react/index.d.mts
CHANGED
|
@@ -9,6 +9,299 @@ import * as _nozbe_watermelondb_Schema from '@nozbe/watermelondb/Schema';
|
|
|
9
9
|
import { Class } from '@nozbe/watermelondb/types';
|
|
10
10
|
import { DatabaseAdapter } from '@nozbe/watermelondb/adapters/type';
|
|
11
11
|
|
|
12
|
+
type AuthToken = string | undefined;
|
|
13
|
+
interface Auth {
|
|
14
|
+
/**
|
|
15
|
+
* Which part of the request do we use to send the auth?
|
|
16
|
+
*
|
|
17
|
+
* @default 'header'
|
|
18
|
+
*/
|
|
19
|
+
in?: 'header' | 'query' | 'cookie';
|
|
20
|
+
/**
|
|
21
|
+
* Header or query parameter name.
|
|
22
|
+
*
|
|
23
|
+
* @default 'Authorization'
|
|
24
|
+
*/
|
|
25
|
+
name?: string;
|
|
26
|
+
scheme?: 'basic' | 'bearer';
|
|
27
|
+
type: 'apiKey' | 'http';
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
interface SerializerOptions<T> {
|
|
31
|
+
/**
|
|
32
|
+
* @default true
|
|
33
|
+
*/
|
|
34
|
+
explode: boolean;
|
|
35
|
+
style: T;
|
|
36
|
+
}
|
|
37
|
+
type ArrayStyle = 'form' | 'spaceDelimited' | 'pipeDelimited';
|
|
38
|
+
type ObjectStyle = 'form' | 'deepObject';
|
|
39
|
+
|
|
40
|
+
type QuerySerializer = (query: Record<string, unknown>) => string;
|
|
41
|
+
type BodySerializer = (body: unknown) => unknown;
|
|
42
|
+
type QuerySerializerOptionsObject = {
|
|
43
|
+
allowReserved?: boolean;
|
|
44
|
+
array?: Partial<SerializerOptions<ArrayStyle>>;
|
|
45
|
+
object?: Partial<SerializerOptions<ObjectStyle>>;
|
|
46
|
+
};
|
|
47
|
+
type QuerySerializerOptions = QuerySerializerOptionsObject & {
|
|
48
|
+
/**
|
|
49
|
+
* Per-parameter serialization overrides. When provided, these settings
|
|
50
|
+
* override the global array/object settings for specific parameter names.
|
|
51
|
+
*/
|
|
52
|
+
parameters?: Record<string, QuerySerializerOptionsObject>;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
type HttpMethod = 'connect' | 'delete' | 'get' | 'head' | 'options' | 'patch' | 'post' | 'put' | 'trace';
|
|
56
|
+
type Client$1<RequestFn = never, Config = unknown, MethodFn = never, BuildUrlFn = never, SseFn = never> = {
|
|
57
|
+
/**
|
|
58
|
+
* Returns the final request URL.
|
|
59
|
+
*/
|
|
60
|
+
buildUrl: BuildUrlFn;
|
|
61
|
+
getConfig: () => Config;
|
|
62
|
+
request: RequestFn;
|
|
63
|
+
setConfig: (config: Config) => Config;
|
|
64
|
+
} & {
|
|
65
|
+
[K in HttpMethod]: MethodFn;
|
|
66
|
+
} & ([SseFn] extends [never] ? {
|
|
67
|
+
sse?: never;
|
|
68
|
+
} : {
|
|
69
|
+
sse: {
|
|
70
|
+
[K in HttpMethod]: SseFn;
|
|
71
|
+
};
|
|
72
|
+
});
|
|
73
|
+
interface Config$1 {
|
|
74
|
+
/**
|
|
75
|
+
* Auth token or a function returning auth token. The resolved value will be
|
|
76
|
+
* added to the request payload as defined by its `security` array.
|
|
77
|
+
*/
|
|
78
|
+
auth?: ((auth: Auth) => Promise<AuthToken> | AuthToken) | AuthToken;
|
|
79
|
+
/**
|
|
80
|
+
* A function for serializing request body parameter. By default,
|
|
81
|
+
* {@link JSON.stringify()} will be used.
|
|
82
|
+
*/
|
|
83
|
+
bodySerializer?: BodySerializer | null;
|
|
84
|
+
/**
|
|
85
|
+
* An object containing any HTTP headers that you want to pre-populate your
|
|
86
|
+
* `Headers` object with.
|
|
87
|
+
*
|
|
88
|
+
* {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more}
|
|
89
|
+
*/
|
|
90
|
+
headers?: RequestInit['headers'] | Record<string, string | number | boolean | (string | number | boolean)[] | null | undefined | unknown>;
|
|
91
|
+
/**
|
|
92
|
+
* The request method.
|
|
93
|
+
*
|
|
94
|
+
* {@link https://developer.mozilla.org/docs/Web/API/fetch#method See more}
|
|
95
|
+
*/
|
|
96
|
+
method?: Uppercase<HttpMethod>;
|
|
97
|
+
/**
|
|
98
|
+
* A function for serializing request query parameters. By default, arrays
|
|
99
|
+
* will be exploded in form style, objects will be exploded in deepObject
|
|
100
|
+
* style, and reserved characters are percent-encoded.
|
|
101
|
+
*
|
|
102
|
+
* This method will have no effect if the native `paramsSerializer()` Axios
|
|
103
|
+
* API function is used.
|
|
104
|
+
*
|
|
105
|
+
* {@link https://swagger.io/docs/specification/serialization/#query View examples}
|
|
106
|
+
*/
|
|
107
|
+
querySerializer?: QuerySerializer | QuerySerializerOptions;
|
|
108
|
+
/**
|
|
109
|
+
* A function validating request data. This is useful if you want to ensure
|
|
110
|
+
* the request conforms to the desired shape, so it can be safely sent to
|
|
111
|
+
* the server.
|
|
112
|
+
*/
|
|
113
|
+
requestValidator?: (data: unknown) => Promise<unknown>;
|
|
114
|
+
/**
|
|
115
|
+
* A function transforming response data before it's returned. This is useful
|
|
116
|
+
* for post-processing data, e.g., converting ISO strings into Date objects.
|
|
117
|
+
*/
|
|
118
|
+
responseTransformer?: (data: unknown) => Promise<unknown>;
|
|
119
|
+
/**
|
|
120
|
+
* A function validating response data. This is useful if you want to ensure
|
|
121
|
+
* the response conforms to the desired shape, so it can be safely passed to
|
|
122
|
+
* the transformers and returned to the user.
|
|
123
|
+
*/
|
|
124
|
+
responseValidator?: (data: unknown) => Promise<unknown>;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
type ServerSentEventsOptions<TData = unknown> = Omit<RequestInit, 'method'> & Pick<Config$1, 'method' | 'responseTransformer' | 'responseValidator'> & {
|
|
128
|
+
/**
|
|
129
|
+
* Fetch API implementation. You can use this option to provide a custom
|
|
130
|
+
* fetch instance.
|
|
131
|
+
*
|
|
132
|
+
* @default globalThis.fetch
|
|
133
|
+
*/
|
|
134
|
+
fetch?: typeof fetch;
|
|
135
|
+
/**
|
|
136
|
+
* Implementing clients can call request interceptors inside this hook.
|
|
137
|
+
*/
|
|
138
|
+
onRequest?: (url: string, init: RequestInit) => Promise<Request>;
|
|
139
|
+
/**
|
|
140
|
+
* Callback invoked when a network or parsing error occurs during streaming.
|
|
141
|
+
*
|
|
142
|
+
* This option applies only if the endpoint returns a stream of events.
|
|
143
|
+
*
|
|
144
|
+
* @param error The error that occurred.
|
|
145
|
+
*/
|
|
146
|
+
onSseError?: (error: unknown) => void;
|
|
147
|
+
/**
|
|
148
|
+
* Callback invoked when an event is streamed from the server.
|
|
149
|
+
*
|
|
150
|
+
* This option applies only if the endpoint returns a stream of events.
|
|
151
|
+
*
|
|
152
|
+
* @param event Event streamed from the server.
|
|
153
|
+
* @returns Nothing (void).
|
|
154
|
+
*/
|
|
155
|
+
onSseEvent?: (event: StreamEvent<TData>) => void;
|
|
156
|
+
serializedBody?: RequestInit['body'];
|
|
157
|
+
/**
|
|
158
|
+
* Default retry delay in milliseconds.
|
|
159
|
+
*
|
|
160
|
+
* This option applies only if the endpoint returns a stream of events.
|
|
161
|
+
*
|
|
162
|
+
* @default 3000
|
|
163
|
+
*/
|
|
164
|
+
sseDefaultRetryDelay?: number;
|
|
165
|
+
/**
|
|
166
|
+
* Maximum number of retry attempts before giving up.
|
|
167
|
+
*/
|
|
168
|
+
sseMaxRetryAttempts?: number;
|
|
169
|
+
/**
|
|
170
|
+
* Maximum retry delay in milliseconds.
|
|
171
|
+
*
|
|
172
|
+
* Applies only when exponential backoff is used.
|
|
173
|
+
*
|
|
174
|
+
* This option applies only if the endpoint returns a stream of events.
|
|
175
|
+
*
|
|
176
|
+
* @default 30000
|
|
177
|
+
*/
|
|
178
|
+
sseMaxRetryDelay?: number;
|
|
179
|
+
/**
|
|
180
|
+
* Optional sleep function for retry backoff.
|
|
181
|
+
*
|
|
182
|
+
* Defaults to using `setTimeout`.
|
|
183
|
+
*/
|
|
184
|
+
sseSleepFn?: (ms: number) => Promise<void>;
|
|
185
|
+
url: string;
|
|
186
|
+
};
|
|
187
|
+
interface StreamEvent<TData = unknown> {
|
|
188
|
+
data: TData;
|
|
189
|
+
event?: string;
|
|
190
|
+
id?: string;
|
|
191
|
+
retry?: number;
|
|
192
|
+
}
|
|
193
|
+
type ServerSentEventsResult<TData = unknown, TReturn = void, TNext = unknown> = {
|
|
194
|
+
stream: AsyncGenerator<TData extends Record<string, unknown> ? TData[keyof TData] : TData, TReturn, TNext>;
|
|
195
|
+
};
|
|
196
|
+
|
|
197
|
+
type ErrInterceptor<Err, Res, Options> = (error: Err,
|
|
198
|
+
/** response may be undefined due to a network error where no response object is produced */
|
|
199
|
+
response: Res | undefined, options: Options) => Err | Promise<Err>;
|
|
200
|
+
type ReqInterceptor<Options> = (options: Options) => void | Promise<void>;
|
|
201
|
+
type ResInterceptor<Res, Options> = (response: Res, options: Options) => Res | Promise<Res>;
|
|
202
|
+
declare class Interceptors<Interceptor> {
|
|
203
|
+
fns: Array<Interceptor | null>;
|
|
204
|
+
clear(): void;
|
|
205
|
+
eject(id: number | Interceptor): void;
|
|
206
|
+
exists(id: number | Interceptor): boolean;
|
|
207
|
+
getInterceptorIndex(id: number | Interceptor): number;
|
|
208
|
+
update(id: number | Interceptor, fn: Interceptor): number | Interceptor | false;
|
|
209
|
+
use(fn: Interceptor): number;
|
|
210
|
+
}
|
|
211
|
+
interface Middleware<Res, Err, Options> {
|
|
212
|
+
error: Interceptors<ErrInterceptor<Err, Res, Options>>;
|
|
213
|
+
request: Interceptors<ReqInterceptor<Options>>;
|
|
214
|
+
response: Interceptors<ResInterceptor<Res, Options>>;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
interface Config<T extends ClientOptions = ClientOptions> extends Omit<RequestInit, 'body' | 'headers' | 'method'>, Config$1 {
|
|
218
|
+
/**
|
|
219
|
+
* Base URL for all requests made by this client.
|
|
220
|
+
*/
|
|
221
|
+
baseUrl?: T['baseUrl'];
|
|
222
|
+
/**
|
|
223
|
+
* Fetch API implementation. You can use this option to provide a custom
|
|
224
|
+
* fetch instance.
|
|
225
|
+
*
|
|
226
|
+
* @default globalThis.fetch
|
|
227
|
+
*/
|
|
228
|
+
fetch?: typeof fetch;
|
|
229
|
+
/**
|
|
230
|
+
* Return the response data parsed in a specified format. By default, `auto`
|
|
231
|
+
* will infer the appropriate method from the `Content-Type` response header.
|
|
232
|
+
* You can override this behavior with any of the {@link Body} methods.
|
|
233
|
+
* Select `stream` if you don't want to parse response data at all.
|
|
234
|
+
*
|
|
235
|
+
* @default 'auto'
|
|
236
|
+
*/
|
|
237
|
+
parseAs?: 'arrayBuffer' | 'auto' | 'blob' | 'formData' | 'json' | 'stream' | 'text';
|
|
238
|
+
/**
|
|
239
|
+
* Throw an error instead of returning it in the response?
|
|
240
|
+
*
|
|
241
|
+
* @default false
|
|
242
|
+
*/
|
|
243
|
+
throwOnError?: T['throwOnError'];
|
|
244
|
+
}
|
|
245
|
+
interface RequestOptions<TData = unknown, ThrowOnError extends boolean = boolean, Url extends string = string> extends Config<{
|
|
246
|
+
throwOnError: ThrowOnError;
|
|
247
|
+
}>, Pick<ServerSentEventsOptions<TData>, 'onRequest' | 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
|
|
248
|
+
/**
|
|
249
|
+
* Any body that you want to add to your request.
|
|
250
|
+
*
|
|
251
|
+
* {@link https://developer.mozilla.org/docs/Web/API/fetch#body}
|
|
252
|
+
*/
|
|
253
|
+
body?: unknown;
|
|
254
|
+
path?: Record<string, unknown>;
|
|
255
|
+
query?: Record<string, unknown>;
|
|
256
|
+
/**
|
|
257
|
+
* Security mechanism(s) to use for the request.
|
|
258
|
+
*/
|
|
259
|
+
security?: ReadonlyArray<Auth>;
|
|
260
|
+
url: Url;
|
|
261
|
+
}
|
|
262
|
+
interface ResolvedRequestOptions<ThrowOnError extends boolean = boolean, Url extends string = string> extends RequestOptions<unknown, ThrowOnError, Url> {
|
|
263
|
+
headers: Headers;
|
|
264
|
+
serializedBody?: string;
|
|
265
|
+
}
|
|
266
|
+
type RequestResult<TData = unknown, TError = unknown, ThrowOnError extends boolean = boolean> = ThrowOnError extends true ? Promise<{
|
|
267
|
+
data: TData extends Record<string, unknown> ? TData[keyof TData] : TData;
|
|
268
|
+
response: Response;
|
|
269
|
+
}> : Promise<({
|
|
270
|
+
data: TData extends Record<string, unknown> ? TData[keyof TData] : TData;
|
|
271
|
+
error: undefined;
|
|
272
|
+
} | {
|
|
273
|
+
data: undefined;
|
|
274
|
+
error: TError extends Record<string, unknown> ? TError[keyof TError] : TError;
|
|
275
|
+
}) & {
|
|
276
|
+
/** response may be undefined due to a network error where no response object is produced */
|
|
277
|
+
response?: Response;
|
|
278
|
+
}>;
|
|
279
|
+
interface ClientOptions {
|
|
280
|
+
baseUrl?: string;
|
|
281
|
+
throwOnError?: boolean;
|
|
282
|
+
}
|
|
283
|
+
type MethodFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false>(options: Omit<RequestOptions<TData, ThrowOnError>, 'method'>) => RequestResult<TData, TError, ThrowOnError>;
|
|
284
|
+
type SseFn = <TData = unknown, _TError = unknown, ThrowOnError extends boolean = false>(options: Omit<RequestOptions<never, ThrowOnError>, 'method'>) => Promise<ServerSentEventsResult<TData>>;
|
|
285
|
+
type RequestFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false>(options: Omit<RequestOptions<TData, ThrowOnError>, 'method'> & Pick<Required<RequestOptions<TData, ThrowOnError>>, 'method'>) => RequestResult<TData, TError, ThrowOnError>;
|
|
286
|
+
type BuildUrlFn = <TData extends {
|
|
287
|
+
body?: unknown;
|
|
288
|
+
path?: Record<string, unknown>;
|
|
289
|
+
query?: Record<string, unknown>;
|
|
290
|
+
url: string;
|
|
291
|
+
}>(options: TData & Options<TData>) => string;
|
|
292
|
+
type Client = Client$1<RequestFn, Config, MethodFn, BuildUrlFn, SseFn> & {
|
|
293
|
+
interceptors: Middleware<Response, unknown, ResolvedRequestOptions>;
|
|
294
|
+
};
|
|
295
|
+
interface TDataShape {
|
|
296
|
+
body?: unknown;
|
|
297
|
+
headers?: unknown;
|
|
298
|
+
path?: unknown;
|
|
299
|
+
query?: unknown;
|
|
300
|
+
url: string;
|
|
301
|
+
}
|
|
302
|
+
type OmitKeys<T, K> = Pick<T, Exclude<keyof T, K>>;
|
|
303
|
+
type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = OmitKeys<RequestOptions<TResponse, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : Omit<TData, 'url'>);
|
|
304
|
+
|
|
12
305
|
/**
|
|
13
306
|
* ExtraFields contains additional metadata
|
|
14
307
|
*/
|
|
@@ -1204,419 +1497,130 @@ type OpenaiChatCompletionTokenLogprob = {
|
|
|
1204
1497
|
*/
|
|
1205
1498
|
top_logprobs?: Array<OpenaiChatCompletionTokenLogprobTopLogprob>;
|
|
1206
1499
|
};
|
|
1207
|
-
type OpenaiChatCompletionTokenLogprobTopLogprob = {
|
|
1208
|
-
/**
|
|
1209
|
-
* A list of integers representing the UTF-8 bytes representation of the token.
|
|
1210
|
-
* Useful in instances where characters are represented by multiple tokens and
|
|
1211
|
-
* their byte representations must be combined to generate the correct text
|
|
1212
|
-
* representation. Can be `null` if there is no bytes representation for the token.
|
|
1213
|
-
*/
|
|
1214
|
-
bytes?: Array<number>;
|
|
1215
|
-
/**
|
|
1216
|
-
* The log probability of this token, if it is within the top 20 most likely
|
|
1217
|
-
* tokens. Otherwise, the value `-9999.0` is used to signify that the token is very
|
|
1218
|
-
* unlikely.
|
|
1219
|
-
*/
|
|
1220
|
-
logprob?: number;
|
|
1221
|
-
/**
|
|
1222
|
-
* The token.
|
|
1223
|
-
*/
|
|
1224
|
-
token?: string;
|
|
1225
|
-
};
|
|
1226
|
-
type OpenaiChatCompletionToolMessageParam = {
|
|
1227
|
-
any?: unknown;
|
|
1228
|
-
content?: OpenaiChatCompletionToolMessageParamContentUnion;
|
|
1229
|
-
/**
|
|
1230
|
-
* The role of the messages author, in this case `tool`.
|
|
1231
|
-
*
|
|
1232
|
-
* This field can be elided, and will marshal its zero value as "tool".
|
|
1233
|
-
*/
|
|
1234
|
-
role?: string;
|
|
1235
|
-
/**
|
|
1236
|
-
* Tool call that this message is responding to.
|
|
1237
|
-
*/
|
|
1238
|
-
tool_call_id?: string;
|
|
1239
|
-
};
|
|
1240
|
-
/**
|
|
1241
|
-
* The contents of the tool message.
|
|
1242
|
-
*/
|
|
1243
|
-
type OpenaiChatCompletionToolMessageParamContentUnion = {
|
|
1244
|
-
any?: unknown;
|
|
1245
|
-
ofArrayOfContentParts?: Array<OpenaiChatCompletionContentPartTextParam>;
|
|
1246
|
-
ofString?: ParamOptString;
|
|
1247
|
-
};
|
|
1248
|
-
type OpenaiChatCompletionUserMessageParam = {
|
|
1249
|
-
any?: unknown;
|
|
1250
|
-
content?: OpenaiChatCompletionUserMessageParamContentUnion;
|
|
1251
|
-
name?: ParamOptString;
|
|
1252
|
-
/**
|
|
1253
|
-
* The role of the messages author, in this case `user`.
|
|
1254
|
-
*
|
|
1255
|
-
* This field can be elided, and will marshal its zero value as "user".
|
|
1256
|
-
*/
|
|
1257
|
-
role?: string;
|
|
1258
|
-
};
|
|
1259
|
-
/**
|
|
1260
|
-
* The contents of the user message.
|
|
1261
|
-
*/
|
|
1262
|
-
type OpenaiChatCompletionUserMessageParamContentUnion = {
|
|
1263
|
-
any?: unknown;
|
|
1264
|
-
ofArrayOfContentParts?: Array<OpenaiChatCompletionContentPartUnionParam>;
|
|
1265
|
-
ofString?: ParamOptString;
|
|
1266
|
-
};
|
|
1267
|
-
/**
|
|
1268
|
-
* Usage statistics for the completion request.
|
|
1269
|
-
*/
|
|
1270
|
-
type OpenaiCompletionUsage = {
|
|
1271
|
-
/**
|
|
1272
|
-
* Number of tokens in the generated completion.
|
|
1273
|
-
*/
|
|
1274
|
-
completion_tokens?: number;
|
|
1275
|
-
completion_tokens_details?: OpenaiCompletionUsageCompletionTokensDetails;
|
|
1276
|
-
/**
|
|
1277
|
-
* Number of tokens in the prompt.
|
|
1278
|
-
*/
|
|
1279
|
-
prompt_tokens?: number;
|
|
1280
|
-
prompt_tokens_details?: OpenaiCompletionUsagePromptTokensDetails;
|
|
1281
|
-
/**
|
|
1282
|
-
* Total number of tokens used in the request (prompt + completion).
|
|
1283
|
-
*/
|
|
1284
|
-
total_tokens?: number;
|
|
1285
|
-
};
|
|
1286
|
-
/**
|
|
1287
|
-
* Breakdown of tokens used in a completion.
|
|
1288
|
-
*/
|
|
1289
|
-
type OpenaiCompletionUsageCompletionTokensDetails = {
|
|
1290
|
-
/**
|
|
1291
|
-
* When using Predicted Outputs, the number of tokens in the prediction that
|
|
1292
|
-
* appeared in the completion.
|
|
1293
|
-
*/
|
|
1294
|
-
accepted_prediction_tokens?: number;
|
|
1295
|
-
/**
|
|
1296
|
-
* Audio input tokens generated by the model.
|
|
1297
|
-
*/
|
|
1298
|
-
audio_tokens?: number;
|
|
1299
|
-
/**
|
|
1300
|
-
* Tokens generated by the model for reasoning.
|
|
1301
|
-
*/
|
|
1302
|
-
reasoning_tokens?: number;
|
|
1303
|
-
/**
|
|
1304
|
-
* When using Predicted Outputs, the number of tokens in the prediction that did
|
|
1305
|
-
* not appear in the completion. However, like reasoning tokens, these tokens are
|
|
1306
|
-
* still counted in the total completion tokens for purposes of billing, output,
|
|
1307
|
-
* and context window limits.
|
|
1308
|
-
*/
|
|
1309
|
-
rejected_prediction_tokens?: number;
|
|
1310
|
-
};
|
|
1311
|
-
/**
|
|
1312
|
-
* Breakdown of tokens used in the prompt.
|
|
1313
|
-
*/
|
|
1314
|
-
type OpenaiCompletionUsagePromptTokensDetails = {
|
|
1315
|
-
/**
|
|
1316
|
-
* Audio input tokens present in the prompt.
|
|
1317
|
-
*/
|
|
1318
|
-
audio_tokens?: number;
|
|
1319
|
-
/**
|
|
1320
|
-
* Cached tokens present in the prompt.
|
|
1321
|
-
*/
|
|
1322
|
-
cached_tokens?: number;
|
|
1323
|
-
};
|
|
1324
|
-
/**
|
|
1325
|
-
* The [IANA timezone](https://timeapi.io/documentation/iana-timezones) of the
|
|
1326
|
-
* user, e.g. `America/Los_Angeles`.
|
|
1327
|
-
*/
|
|
1328
|
-
type ParamOptString = {
|
|
1329
|
-
value?: string;
|
|
1330
|
-
};
|
|
1331
|
-
|
|
1332
|
-
type AuthToken = string | undefined;
|
|
1333
|
-
interface Auth {
|
|
1334
|
-
/**
|
|
1335
|
-
* Which part of the request do we use to send the auth?
|
|
1336
|
-
*
|
|
1337
|
-
* @default 'header'
|
|
1338
|
-
*/
|
|
1339
|
-
in?: 'header' | 'query' | 'cookie';
|
|
1340
|
-
/**
|
|
1341
|
-
* Header or query parameter name.
|
|
1342
|
-
*
|
|
1343
|
-
* @default 'Authorization'
|
|
1344
|
-
*/
|
|
1345
|
-
name?: string;
|
|
1346
|
-
scheme?: 'basic' | 'bearer';
|
|
1347
|
-
type: 'apiKey' | 'http';
|
|
1348
|
-
}
|
|
1349
|
-
|
|
1350
|
-
interface SerializerOptions<T> {
|
|
1351
|
-
/**
|
|
1352
|
-
* @default true
|
|
1353
|
-
*/
|
|
1354
|
-
explode: boolean;
|
|
1355
|
-
style: T;
|
|
1356
|
-
}
|
|
1357
|
-
type ArrayStyle = 'form' | 'spaceDelimited' | 'pipeDelimited';
|
|
1358
|
-
type ObjectStyle = 'form' | 'deepObject';
|
|
1359
|
-
|
|
1360
|
-
type QuerySerializer = (query: Record<string, unknown>) => string;
|
|
1361
|
-
type BodySerializer = (body: any) => any;
|
|
1362
|
-
type QuerySerializerOptionsObject = {
|
|
1363
|
-
allowReserved?: boolean;
|
|
1364
|
-
array?: Partial<SerializerOptions<ArrayStyle>>;
|
|
1365
|
-
object?: Partial<SerializerOptions<ObjectStyle>>;
|
|
1366
|
-
};
|
|
1367
|
-
type QuerySerializerOptions = QuerySerializerOptionsObject & {
|
|
1368
|
-
/**
|
|
1369
|
-
* Per-parameter serialization overrides. When provided, these settings
|
|
1370
|
-
* override the global array/object settings for specific parameter names.
|
|
1371
|
-
*/
|
|
1372
|
-
parameters?: Record<string, QuerySerializerOptionsObject>;
|
|
1373
|
-
};
|
|
1374
|
-
|
|
1375
|
-
type HttpMethod = 'connect' | 'delete' | 'get' | 'head' | 'options' | 'patch' | 'post' | 'put' | 'trace';
|
|
1376
|
-
type Client$1<RequestFn = never, Config = unknown, MethodFn = never, BuildUrlFn = never, SseFn = never> = {
|
|
1377
|
-
/**
|
|
1378
|
-
* Returns the final request URL.
|
|
1379
|
-
*/
|
|
1380
|
-
buildUrl: BuildUrlFn;
|
|
1381
|
-
getConfig: () => Config;
|
|
1382
|
-
request: RequestFn;
|
|
1383
|
-
setConfig: (config: Config) => Config;
|
|
1384
|
-
} & {
|
|
1385
|
-
[K in HttpMethod]: MethodFn;
|
|
1386
|
-
} & ([SseFn] extends [never] ? {
|
|
1387
|
-
sse?: never;
|
|
1388
|
-
} : {
|
|
1389
|
-
sse: {
|
|
1390
|
-
[K in HttpMethod]: SseFn;
|
|
1391
|
-
};
|
|
1392
|
-
});
|
|
1393
|
-
interface Config$1 {
|
|
1394
|
-
/**
|
|
1395
|
-
* Auth token or a function returning auth token. The resolved value will be
|
|
1396
|
-
* added to the request payload as defined by its `security` array.
|
|
1397
|
-
*/
|
|
1398
|
-
auth?: ((auth: Auth) => Promise<AuthToken> | AuthToken) | AuthToken;
|
|
1399
|
-
/**
|
|
1400
|
-
* A function for serializing request body parameter. By default,
|
|
1401
|
-
* {@link JSON.stringify()} will be used.
|
|
1402
|
-
*/
|
|
1403
|
-
bodySerializer?: BodySerializer | null;
|
|
1404
|
-
/**
|
|
1405
|
-
* An object containing any HTTP headers that you want to pre-populate your
|
|
1406
|
-
* `Headers` object with.
|
|
1407
|
-
*
|
|
1408
|
-
* {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more}
|
|
1409
|
-
*/
|
|
1410
|
-
headers?: RequestInit['headers'] | Record<string, string | number | boolean | (string | number | boolean)[] | null | undefined | unknown>;
|
|
1411
|
-
/**
|
|
1412
|
-
* The request method.
|
|
1413
|
-
*
|
|
1414
|
-
* {@link https://developer.mozilla.org/docs/Web/API/fetch#method See more}
|
|
1415
|
-
*/
|
|
1416
|
-
method?: Uppercase<HttpMethod>;
|
|
1417
|
-
/**
|
|
1418
|
-
* A function for serializing request query parameters. By default, arrays
|
|
1419
|
-
* will be exploded in form style, objects will be exploded in deepObject
|
|
1420
|
-
* style, and reserved characters are percent-encoded.
|
|
1421
|
-
*
|
|
1422
|
-
* This method will have no effect if the native `paramsSerializer()` Axios
|
|
1423
|
-
* API function is used.
|
|
1424
|
-
*
|
|
1425
|
-
* {@link https://swagger.io/docs/specification/serialization/#query View examples}
|
|
1426
|
-
*/
|
|
1427
|
-
querySerializer?: QuerySerializer | QuerySerializerOptions;
|
|
1428
|
-
/**
|
|
1429
|
-
* A function validating request data. This is useful if you want to ensure
|
|
1430
|
-
* the request conforms to the desired shape, so it can be safely sent to
|
|
1431
|
-
* the server.
|
|
1432
|
-
*/
|
|
1433
|
-
requestValidator?: (data: unknown) => Promise<unknown>;
|
|
1434
|
-
/**
|
|
1435
|
-
* A function transforming response data before it's returned. This is useful
|
|
1436
|
-
* for post-processing data, e.g. converting ISO strings into Date objects.
|
|
1437
|
-
*/
|
|
1438
|
-
responseTransformer?: (data: unknown) => Promise<unknown>;
|
|
1500
|
+
type OpenaiChatCompletionTokenLogprobTopLogprob = {
|
|
1439
1501
|
/**
|
|
1440
|
-
* A
|
|
1441
|
-
*
|
|
1442
|
-
*
|
|
1502
|
+
* A list of integers representing the UTF-8 bytes representation of the token.
|
|
1503
|
+
* Useful in instances where characters are represented by multiple tokens and
|
|
1504
|
+
* their byte representations must be combined to generate the correct text
|
|
1505
|
+
* representation. Can be `null` if there is no bytes representation for the token.
|
|
1443
1506
|
*/
|
|
1444
|
-
|
|
1445
|
-
}
|
|
1446
|
-
|
|
1447
|
-
type ServerSentEventsOptions<TData = unknown> = Omit<RequestInit, 'method'> & Pick<Config$1, 'method' | 'responseTransformer' | 'responseValidator'> & {
|
|
1507
|
+
bytes?: Array<number>;
|
|
1448
1508
|
/**
|
|
1449
|
-
*
|
|
1450
|
-
*
|
|
1451
|
-
*
|
|
1452
|
-
* @default globalThis.fetch
|
|
1509
|
+
* The log probability of this token, if it is within the top 20 most likely
|
|
1510
|
+
* tokens. Otherwise, the value `-9999.0` is used to signify that the token is very
|
|
1511
|
+
* unlikely.
|
|
1453
1512
|
*/
|
|
1454
|
-
|
|
1513
|
+
logprob?: number;
|
|
1455
1514
|
/**
|
|
1456
|
-
*
|
|
1515
|
+
* The token.
|
|
1457
1516
|
*/
|
|
1458
|
-
|
|
1517
|
+
token?: string;
|
|
1518
|
+
};
|
|
1519
|
+
type OpenaiChatCompletionToolMessageParam = {
|
|
1520
|
+
any?: unknown;
|
|
1521
|
+
content?: OpenaiChatCompletionToolMessageParamContentUnion;
|
|
1459
1522
|
/**
|
|
1460
|
-
*
|
|
1461
|
-
*
|
|
1462
|
-
* This option applies only if the endpoint returns a stream of events.
|
|
1523
|
+
* The role of the messages author, in this case `tool`.
|
|
1463
1524
|
*
|
|
1464
|
-
*
|
|
1525
|
+
* This field can be elided, and will marshal its zero value as "tool".
|
|
1465
1526
|
*/
|
|
1466
|
-
|
|
1527
|
+
role?: string;
|
|
1467
1528
|
/**
|
|
1468
|
-
*
|
|
1469
|
-
*
|
|
1470
|
-
* This option applies only if the endpoint returns a stream of events.
|
|
1471
|
-
*
|
|
1472
|
-
* @param event Event streamed from the server.
|
|
1473
|
-
* @returns Nothing (void).
|
|
1529
|
+
* Tool call that this message is responding to.
|
|
1474
1530
|
*/
|
|
1475
|
-
|
|
1476
|
-
|
|
1531
|
+
tool_call_id?: string;
|
|
1532
|
+
};
|
|
1533
|
+
/**
|
|
1534
|
+
* The contents of the tool message.
|
|
1535
|
+
*/
|
|
1536
|
+
type OpenaiChatCompletionToolMessageParamContentUnion = {
|
|
1537
|
+
any?: unknown;
|
|
1538
|
+
ofArrayOfContentParts?: Array<OpenaiChatCompletionContentPartTextParam>;
|
|
1539
|
+
ofString?: ParamOptString;
|
|
1540
|
+
};
|
|
1541
|
+
type OpenaiChatCompletionUserMessageParam = {
|
|
1542
|
+
any?: unknown;
|
|
1543
|
+
content?: OpenaiChatCompletionUserMessageParamContentUnion;
|
|
1544
|
+
name?: ParamOptString;
|
|
1477
1545
|
/**
|
|
1478
|
-
*
|
|
1479
|
-
*
|
|
1480
|
-
* This option applies only if the endpoint returns a stream of events.
|
|
1546
|
+
* The role of the messages author, in this case `user`.
|
|
1481
1547
|
*
|
|
1482
|
-
*
|
|
1548
|
+
* This field can be elided, and will marshal its zero value as "user".
|
|
1483
1549
|
*/
|
|
1484
|
-
|
|
1550
|
+
role?: string;
|
|
1551
|
+
};
|
|
1552
|
+
/**
|
|
1553
|
+
* The contents of the user message.
|
|
1554
|
+
*/
|
|
1555
|
+
type OpenaiChatCompletionUserMessageParamContentUnion = {
|
|
1556
|
+
any?: unknown;
|
|
1557
|
+
ofArrayOfContentParts?: Array<OpenaiChatCompletionContentPartUnionParam>;
|
|
1558
|
+
ofString?: ParamOptString;
|
|
1559
|
+
};
|
|
1560
|
+
/**
|
|
1561
|
+
* Usage statistics for the completion request.
|
|
1562
|
+
*/
|
|
1563
|
+
type OpenaiCompletionUsage = {
|
|
1485
1564
|
/**
|
|
1486
|
-
*
|
|
1565
|
+
* Number of tokens in the generated completion.
|
|
1487
1566
|
*/
|
|
1488
|
-
|
|
1567
|
+
completion_tokens?: number;
|
|
1568
|
+
completion_tokens_details?: OpenaiCompletionUsageCompletionTokensDetails;
|
|
1489
1569
|
/**
|
|
1490
|
-
*
|
|
1491
|
-
*
|
|
1492
|
-
* Applies only when exponential backoff is used.
|
|
1493
|
-
*
|
|
1494
|
-
* This option applies only if the endpoint returns a stream of events.
|
|
1495
|
-
*
|
|
1496
|
-
* @default 30000
|
|
1570
|
+
* Number of tokens in the prompt.
|
|
1497
1571
|
*/
|
|
1498
|
-
|
|
1572
|
+
prompt_tokens?: number;
|
|
1573
|
+
prompt_tokens_details?: OpenaiCompletionUsagePromptTokensDetails;
|
|
1499
1574
|
/**
|
|
1500
|
-
*
|
|
1501
|
-
*
|
|
1502
|
-
* Defaults to using `setTimeout`.
|
|
1575
|
+
* Total number of tokens used in the request (prompt + completion).
|
|
1503
1576
|
*/
|
|
1504
|
-
|
|
1505
|
-
url: string;
|
|
1506
|
-
};
|
|
1507
|
-
interface StreamEvent<TData = unknown> {
|
|
1508
|
-
data: TData;
|
|
1509
|
-
event?: string;
|
|
1510
|
-
id?: string;
|
|
1511
|
-
retry?: number;
|
|
1512
|
-
}
|
|
1513
|
-
type ServerSentEventsResult<TData = unknown, TReturn = void, TNext = unknown> = {
|
|
1514
|
-
stream: AsyncGenerator<TData extends Record<string, unknown> ? TData[keyof TData] : TData, TReturn, TNext>;
|
|
1577
|
+
total_tokens?: number;
|
|
1515
1578
|
};
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
type
|
|
1520
|
-
declare class Interceptors<Interceptor> {
|
|
1521
|
-
fns: Array<Interceptor | null>;
|
|
1522
|
-
clear(): void;
|
|
1523
|
-
eject(id: number | Interceptor): void;
|
|
1524
|
-
exists(id: number | Interceptor): boolean;
|
|
1525
|
-
getInterceptorIndex(id: number | Interceptor): number;
|
|
1526
|
-
update(id: number | Interceptor, fn: Interceptor): number | Interceptor | false;
|
|
1527
|
-
use(fn: Interceptor): number;
|
|
1528
|
-
}
|
|
1529
|
-
interface Middleware<Res, Err, Options> {
|
|
1530
|
-
error: Interceptors<ErrInterceptor<Err, Res, Options>>;
|
|
1531
|
-
request: Interceptors<ReqInterceptor<Options>>;
|
|
1532
|
-
response: Interceptors<ResInterceptor<Res, Options>>;
|
|
1533
|
-
}
|
|
1534
|
-
|
|
1535
|
-
interface Config<T extends ClientOptions = ClientOptions> extends Omit<RequestInit, 'body' | 'headers' | 'method'>, Config$1 {
|
|
1579
|
+
/**
|
|
1580
|
+
* Breakdown of tokens used in a completion.
|
|
1581
|
+
*/
|
|
1582
|
+
type OpenaiCompletionUsageCompletionTokensDetails = {
|
|
1536
1583
|
/**
|
|
1537
|
-
*
|
|
1584
|
+
* When using Predicted Outputs, the number of tokens in the prediction that
|
|
1585
|
+
* appeared in the completion.
|
|
1538
1586
|
*/
|
|
1539
|
-
|
|
1587
|
+
accepted_prediction_tokens?: number;
|
|
1540
1588
|
/**
|
|
1541
|
-
*
|
|
1542
|
-
* fetch instance.
|
|
1543
|
-
*
|
|
1544
|
-
* @default globalThis.fetch
|
|
1589
|
+
* Audio input tokens generated by the model.
|
|
1545
1590
|
*/
|
|
1546
|
-
|
|
1591
|
+
audio_tokens?: number;
|
|
1547
1592
|
/**
|
|
1548
|
-
*
|
|
1549
|
-
* will infer the appropriate method from the `Content-Type` response header.
|
|
1550
|
-
* You can override this behavior with any of the {@link Body} methods.
|
|
1551
|
-
* Select `stream` if you don't want to parse response data at all.
|
|
1552
|
-
*
|
|
1553
|
-
* @default 'auto'
|
|
1593
|
+
* Tokens generated by the model for reasoning.
|
|
1554
1594
|
*/
|
|
1555
|
-
|
|
1595
|
+
reasoning_tokens?: number;
|
|
1556
1596
|
/**
|
|
1557
|
-
*
|
|
1558
|
-
*
|
|
1559
|
-
*
|
|
1597
|
+
* When using Predicted Outputs, the number of tokens in the prediction that did
|
|
1598
|
+
* not appear in the completion. However, like reasoning tokens, these tokens are
|
|
1599
|
+
* still counted in the total completion tokens for purposes of billing, output,
|
|
1600
|
+
* and context window limits.
|
|
1560
1601
|
*/
|
|
1561
|
-
|
|
1562
|
-
}
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1602
|
+
rejected_prediction_tokens?: number;
|
|
1603
|
+
};
|
|
1604
|
+
/**
|
|
1605
|
+
* Breakdown of tokens used in the prompt.
|
|
1606
|
+
*/
|
|
1607
|
+
type OpenaiCompletionUsagePromptTokensDetails = {
|
|
1566
1608
|
/**
|
|
1567
|
-
*
|
|
1568
|
-
*
|
|
1569
|
-
* {@link https://developer.mozilla.org/docs/Web/API/fetch#body}
|
|
1609
|
+
* Audio input tokens present in the prompt.
|
|
1570
1610
|
*/
|
|
1571
|
-
|
|
1572
|
-
path?: Record<string, unknown>;
|
|
1573
|
-
query?: Record<string, unknown>;
|
|
1611
|
+
audio_tokens?: number;
|
|
1574
1612
|
/**
|
|
1575
|
-
*
|
|
1613
|
+
* Cached tokens present in the prompt.
|
|
1576
1614
|
*/
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
type
|
|
1584
|
-
|
|
1585
|
-
response: Response;
|
|
1586
|
-
}> : Promise<({
|
|
1587
|
-
data: TData extends Record<string, unknown> ? TData[keyof TData] : TData;
|
|
1588
|
-
error: undefined;
|
|
1589
|
-
} | {
|
|
1590
|
-
data: undefined;
|
|
1591
|
-
error: TError extends Record<string, unknown> ? TError[keyof TError] : TError;
|
|
1592
|
-
}) & {
|
|
1593
|
-
response: Response;
|
|
1594
|
-
}>;
|
|
1595
|
-
interface ClientOptions {
|
|
1596
|
-
baseUrl?: string;
|
|
1597
|
-
throwOnError?: boolean;
|
|
1598
|
-
}
|
|
1599
|
-
type MethodFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false>(options: Omit<RequestOptions<TData, ThrowOnError>, 'method'>) => RequestResult<TData, TError, ThrowOnError>;
|
|
1600
|
-
type SseFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false>(options: Omit<RequestOptions<TData, ThrowOnError>, 'method'>) => Promise<ServerSentEventsResult<TData, TError>>;
|
|
1601
|
-
type RequestFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false>(options: Omit<RequestOptions<TData, ThrowOnError>, 'method'> & Pick<Required<RequestOptions<TData, ThrowOnError>>, 'method'>) => RequestResult<TData, TError, ThrowOnError>;
|
|
1602
|
-
type BuildUrlFn = <TData extends {
|
|
1603
|
-
body?: unknown;
|
|
1604
|
-
path?: Record<string, unknown>;
|
|
1605
|
-
query?: Record<string, unknown>;
|
|
1606
|
-
url: string;
|
|
1607
|
-
}>(options: TData & Options<TData>) => string;
|
|
1608
|
-
type Client = Client$1<RequestFn, Config, MethodFn, BuildUrlFn, SseFn> & {
|
|
1609
|
-
interceptors: Middleware<Response, unknown, ResolvedRequestOptions>;
|
|
1615
|
+
cached_tokens?: number;
|
|
1616
|
+
};
|
|
1617
|
+
/**
|
|
1618
|
+
* The [IANA timezone](https://timeapi.io/documentation/iana-timezones) of the
|
|
1619
|
+
* user, e.g. `America/Los_Angeles`.
|
|
1620
|
+
*/
|
|
1621
|
+
type ParamOptString = {
|
|
1622
|
+
value?: string;
|
|
1610
1623
|
};
|
|
1611
|
-
interface TDataShape {
|
|
1612
|
-
body?: unknown;
|
|
1613
|
-
headers?: unknown;
|
|
1614
|
-
path?: unknown;
|
|
1615
|
-
query?: unknown;
|
|
1616
|
-
url: string;
|
|
1617
|
-
}
|
|
1618
|
-
type OmitKeys<T, K> = Pick<T, Exclude<keyof T, K>>;
|
|
1619
|
-
type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = OmitKeys<RequestOptions<TResponse, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : Omit<TData, 'url'>);
|
|
1620
1624
|
|
|
1621
1625
|
type LlmapiChatCompletionTool = {
|
|
1622
1626
|
[key: string]: unknown;
|
|
@@ -6189,6 +6193,10 @@ interface VaultSearchResult {
|
|
|
6189
6193
|
* real timestamps. Omitted when an item lacks the field upstream. */
|
|
6190
6194
|
createdAt?: Date;
|
|
6191
6195
|
updatedAt?: Date;
|
|
6196
|
+
/** Times this fact has been re-observed — for C2 trend labels. */
|
|
6197
|
+
proofCount?: number | null;
|
|
6198
|
+
/** C3 re-observation watermark (Unix ms) — for C2 trend labels. */
|
|
6199
|
+
lastObservedAt?: number | null;
|
|
6192
6200
|
/** W6 temporal-lane anchors carried through to downstream `RankedMemory`
|
|
6193
6201
|
* so the recall executor can surface dates to the answer model without
|
|
6194
6202
|
* a second per-fact DB lookup + decrypt. Unix ms; null when the fact
|
|
@@ -6230,6 +6238,55 @@ declare function searchVaultMemories(query: string, vaultCtx: VaultMemoryOperati
|
|
|
6230
6238
|
*/
|
|
6231
6239
|
declare function createMemoryVaultSearchTool(vaultCtx: VaultMemoryOperationsContext, embeddingOptions: EmbeddingOptions, cache: VaultEmbeddingCache, searchOptions?: MemoryVaultSearchOptions): ToolConfig;
|
|
6232
6240
|
|
|
6241
|
+
/**
|
|
6242
|
+
* C2 — Observation trend labels.
|
|
6243
|
+
*
|
|
6244
|
+
* Algorithmic (no LLM) classification of how a vault fact's evidence has
|
|
6245
|
+
* been evolving, derived from the C3 re-observation watermark
|
|
6246
|
+
* (`lastObservedAt`), `proofCount`, and `createdAt` over 30/90-day windows.
|
|
6247
|
+
*
|
|
6248
|
+
* We do not store a full observation-timestamp series — only first-seen,
|
|
6249
|
+
* last-seen, and count — so density is approximated from that triple.
|
|
6250
|
+
* Good enough for profile signals ("interests trending up") and vault
|
|
6251
|
+
* hygiene badges; not a substitute for an observations tier (C5).
|
|
6252
|
+
*/
|
|
6253
|
+
/** Recent window — observations inside this count as "active". */
|
|
6254
|
+
declare const TREND_RECENT_WINDOW_DAYS = 30;
|
|
6255
|
+
/** Beyond this since last observation → stale. */
|
|
6256
|
+
declare const TREND_STALE_WINDOW_DAYS = 90;
|
|
6257
|
+
/**
|
|
6258
|
+
* How a fact's evidence has been evolving.
|
|
6259
|
+
*
|
|
6260
|
+
* - `new` — first seen inside the recent window, few proofs yet.
|
|
6261
|
+
* - `strengthening` — established fact re-observed recently (rising density).
|
|
6262
|
+
* - `stable` — known for a while, still observed inside the stale window.
|
|
6263
|
+
* - `weakening` — quiet for ≥30 and <90 days after having been observed.
|
|
6264
|
+
* - `stale` — no observation in ≥90 days.
|
|
6265
|
+
*/
|
|
6266
|
+
type ObservationTrend = "new" | "strengthening" | "stable" | "weakening" | "stale";
|
|
6267
|
+
interface ObservationTrendInput {
|
|
6268
|
+
createdAt: Date | number;
|
|
6269
|
+
/**
|
|
6270
|
+
* C3 re-observation watermark (Unix ms). When null/undefined, the fact
|
|
6271
|
+
* has never been merged-into since the column landed — treat `createdAt`
|
|
6272
|
+
* as last-seen.
|
|
6273
|
+
*/
|
|
6274
|
+
lastObservedAt?: number | null;
|
|
6275
|
+
/** Times this fact has been retained/merged. Defaults to 1. */
|
|
6276
|
+
proofCount?: number | null;
|
|
6277
|
+
}
|
|
6278
|
+
/**
|
|
6279
|
+
* Classify a vault fact's observation trend from its evidence timestamps.
|
|
6280
|
+
*
|
|
6281
|
+
* Pure + deterministic. Pass `now` for back-dated eval harnesses.
|
|
6282
|
+
*/
|
|
6283
|
+
declare function classifyObservationTrend(input: ObservationTrendInput, now?: number): ObservationTrend;
|
|
6284
|
+
/**
|
|
6285
|
+
* Summarize trend counts over a set of facts — handy for profile synthesis
|
|
6286
|
+
* ("N interests strengthening") without another LLM pass.
|
|
6287
|
+
*/
|
|
6288
|
+
declare function summarizeObservationTrends(inputs: readonly ObservationTrendInput[], now?: number): Record<ObservationTrend, number>;
|
|
6289
|
+
|
|
6233
6290
|
/**
|
|
6234
6291
|
* Unified memory layer types — the Recall / Retain API.
|
|
6235
6292
|
*
|
|
@@ -6279,6 +6336,16 @@ interface RankedMemory {
|
|
|
6279
6336
|
proofCount?: number;
|
|
6280
6337
|
source?: string;
|
|
6281
6338
|
folderId?: string | null;
|
|
6339
|
+
/**
|
|
6340
|
+
* C3 re-observation watermark (Unix ms). Null/undefined when the fact
|
|
6341
|
+
* has never been merge-reinforced since the column landed.
|
|
6342
|
+
*/
|
|
6343
|
+
lastObservedAt?: number | null;
|
|
6344
|
+
/**
|
|
6345
|
+
* C2 observation-trend label derived from createdAt / lastObservedAt /
|
|
6346
|
+
* proofCount over 30/90-day windows. Fact-only; omitted for chunks.
|
|
6347
|
+
*/
|
|
6348
|
+
observationTrend?: ObservationTrend;
|
|
6282
6349
|
/**
|
|
6283
6350
|
* Anchored event-time for the fact (the date the underlying event
|
|
6284
6351
|
* occurred, not the write time). When present, the recall executor
|
|
@@ -8375,6 +8442,12 @@ interface ProfileDoc {
|
|
|
8375
8442
|
vaultWatermark: number;
|
|
8376
8443
|
/** The config that produced this doc — see {@link ProfileConfigFingerprint}. */
|
|
8377
8444
|
config: ProfileConfigFingerprint;
|
|
8445
|
+
/**
|
|
8446
|
+
* C2 — counts of observation-trend labels over live vault facts at
|
|
8447
|
+
* synthesis time. Lets People Nearby surface "interests trending up"
|
|
8448
|
+
* without another LLM pass. Recomputed every synthesis (not delta-cached).
|
|
8449
|
+
*/
|
|
8450
|
+
observationTrends: Record<ObservationTrend, number>;
|
|
8378
8451
|
/** Unix ms this doc was produced. */
|
|
8379
8452
|
generatedAt: number;
|
|
8380
8453
|
}
|
|
@@ -13862,4 +13935,4 @@ declare function renderAnumaTree(node: AnumaNode): React.ReactElement | null;
|
|
|
13862
13935
|
*/
|
|
13863
13936
|
declare function renderAnumaJsx(jsx: string): React.ReactElement | null;
|
|
13864
13937
|
|
|
13865
|
-
export { Anuma, type AnumaChild, AnumaJsxError, type AnumaNode, AnumaShadowIsolationProvider, type AnumaShadowIsolationProviderProps, type AnumaTheme, AnumaThemeProvider, type AnumaThemeProviderProps, AppFile as AppFileModel, type AppFileOperationsContext, type AttrValue, type AutoExtractMessage, type AutoExtractor, DEFAULT_CONVERSATIONS_FOLDER as BACKUP_DRIVE_CONVERSATIONS_FOLDER, DEFAULT_ROOT_FOLDER as BACKUP_DRIVE_ROOT_FOLDER, DEFAULT_BACKUP_FOLDER as BACKUP_ICLOUD_FOLDER, BUILT_IN_TOOL_SETS, type BackupAuthContextValue, BackupAuthProvider, type BackupAuthProviderProps, type BackupOperationOptions, BlobUrlManager, type Budget, type CachedChunkVectors, type CachedServerTools, ChartCard, type ChartCardProps, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Conversation as ChatConversation, Message as ChatMessage, type ChatRole, type ChatStorageAdapter, type ChatStorageObservable, type ChunkSearchResult, type ChunkVectorCache, type ChunkingOptions, type CircleProps, type ClientToolsFilterFn, type ConsolidationFallbackReason, type ConversationMemoryInput, ConversationMemory as ConversationMemoryModel, type ConversationMemoryOperationsContext, type ConversationQueryOptions, type CreateAutoExtractorOptions, type CreateConversationOptions, type CreateDecaySweeperOptions, type CreateEntityOptions, type CreateMediaOptions, type CreateMessageOptions, type CreateModelPreferenceOptions, type CreateProjectOptions, type CreateSavedToolOptions, type CreateServerToolsFilterOptions, type CreateUserPreferenceOptions, type CreateVaultFolderOptions, type CreateVaultMemoryOptions, type CryptoPriceClassification, type CryptoPricePreProcessorOptions, DEFAULT_BACKUP_FOLDER$1 as DEFAULT_BACKUP_FOLDER, DEFAULT_CACHE_EXPIRATION_MS, DEFAULT_CHUNK_CACHE_SIZE, DEFAULT_CHUNK_OVERLAP, DEFAULT_CHUNK_SIZE, DEFAULT_DECAY_POLICY, DEFAULT_CONVERSATIONS_FOLDER as DEFAULT_DRIVE_CONVERSATIONS_FOLDER, DEFAULT_ROOT_FOLDER as DEFAULT_DRIVE_ROOT_FOLDER, DEFAULT_BACKUP_FOLDER$1 as DEFAULT_DROPBOX_FOLDER, DEFAULT_EXCLUDED_SERVER_TOOLS, DEFAULT_BACKUP_FOLDER as DEFAULT_ICLOUD_BACKUP_FOLDER, DEFAULT_MAX_CLASSIFIER_CALLS_PER_SWEEP, DEFAULT_MIN_CHUNK_SIZE, DEFAULT_PERSONALITY_SETTINGS, DEFAULT_PROFILE_FACETS, DEFAULT_SERVER_TOOLS_MATCH_OPTIONS, DEFAULT_VAULT_CACHE_SIZE, DatabaseManager, type DatabaseManagerLogger, type DatabaseManagerOptions, type DecayCandidateRaw, type DecayClassifier, type DecayInput, type DecayPolicy, type DecaySweepResult, type DecaySweeper, type DecayVerdict, type DeckProps, type DisplayToolMigrations, type DropboxAuthContextValue, DropboxAuthProvider, type DropboxAuthProviderProps, type DropboxExportResult, type DropboxImportResult, ENTITY_FANOUT, ENTITY_KINDS, type EmbeddedWalletSignerFn, type EntityInput, type EntityKind, Entity as EntityModel, type EntityOperationsContext, ExcelProcessor, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type ExtractionCursorStore, FILE_PLACEHOLDER_PREFIX, FILE_PLACEHOLDER_REGEX, type FactType, type FileMetadata, type FileProcessor, type FileTypeQuery, type FileWithData, type FlushResult, type GetConversationsPageOptions, type GetMessagesPageOptions, type GoogleDriveAuthContextValue, GoogleDriveAuthProvider, type GoogleDriveAuthProviderProps, type GoogleDriveExportResult, type GoogleDriveImportResult, type GraphTraversalOptions, type GroupProps, HARD_DELETE_WINDOW_MS, type ICloudAuthContextValue, ICloudAuthProvider, type ICloudAuthProviderProps, type ICloudExportResult, type ICloudImportResult, INFERENCE_ID_HEADER, type IconProps, type ImageProps, type InjectionClassifierOptions, type InjectionReason, type InteractionType, type KnownTag, type LazyStoredConversation, type LineProps, type LlmDecayClassifierOptions, type LlmNeighborRefinerOptions, type Logger, LoggerProvider, type LoggerProviderProps, MAX_HOPS, MEDIUM_TTL_MS, type MediaDimensions, type MediaFilterOptions, type MediaMetadata, type MediaOperationsContext, type MediaRole, type MediaType, type MemoriesNeedingTopicExtraction, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, MemoryEntity as MemoryEntityModel, type MemoryExtractedEvent, type MemoryKind, type MemoryQuarantinedEvent, type MemoryVaultSearchOptions, type MemoryVaultToolOptions, type MessageChunk, type MessageFeedback, type MessageSkeleton, type ModelLoadProgress, NEVER_TTL_MS, NODE_BUDGET, type NeighborRefiner, type NowSource, type OCRFile, type OperationExecutor, PAST_EVENT_GRACE_MS, PROFILE_DOC_VERSION, type ParsedServerToolsResponse, type PdfExportOptions, type PdfExportProgress, type PdfExportStage, type PdfFile, PdfProcessor, type PendingInteraction, type PersonalitySettings, type PersonalitySliders, type PersonalityStyle, type PhoneCallPollingOptions, type PlatformStorage, type PortalLlmAuth, type PreprocessingOptions, type PreprocessingResult, type ProcessedFileResult, ProcessorRegistry, type ProfileConfigFingerprint, type ProfileDoc, type ProfileFacet, type ProfileFacetKey, type ProfileSection, type ProfileUpdate, type ProgressCallback, Project, type ProjectOperationsContext, type PromptPreProcessor, type PromptPreProcessorContext, type ProviderAuthState, type ProviderBackupState, ProviderStreamError, type QuantizedEmbedding, type QuarantinedMemoryInfo, type QueueEncryptionContext, QueueManager, type QueueStatus, type QueuedOperation, type QueuedOperationType, R2_DEFAULT_TTL_MS, RECALL_MAX_LIMIT, RECALL_TOOL_NAME, type RankedMemory, type RecallContext, type RecallDegradation, type RecallDiagnostics, type RecallOptions, type RecallResult, type RecallToolCallbacks, type RecallToolOptions, type RecencyOptions, type RectProps, type ReflectOptions, type ReflectResult, RerankerUnavailableError, type ResumeStreamOptions, type ResumeStreamResult, type RetainAction, type RetainContext, type RetainOptions, type RetainResult, type RetainSource, SDK_SCHEMA_VERSION, SERVER_TOOL_DEPENDENCY_SETS, SHORT_TTL_MS, SLIDER_CONFIG, SLIDES_FILE_PATH, SLIDE_CANVAS_HEIGHT, SLIDE_CANVAS_WIDTH, STREAM_RESUMABLE_HEADER, SavedTool as SavedToolModel, type SavedToolOperationsContext, type SavedToolParameter, type ScoreBreakdown, type ScreenProps, type ScreenResult, type ScreenedCandidate, type SearchMessagesOptions, type SearchSource, type SelectServerToolsForPromptOptions, type SendMessageWithStorageArgs, type SendMessageWithStorageResult, type ServerTool, type ServerToolsFilter, type ServerToolsFilterFn, type ServerToolsFilterFunction, type ServerToolsOptions, type ServerToolsResponse, type SignMessageFn, type SignMessageOptions, type SlideProps, type StepFinishEvent, type StockPriceClassification, type StockPricePreProcessorOptions, type StorageOperationsContext, type StoredAppFile, type ChatCompletionUsage as StoredChatCompletionUsage, type StoredConversation, type StoredConversationMemory, type StoredEntity, type StoredFileWithContext, type StoredMedia, Media as StoredMediaModel, type StoredMessage, type StoredMessageWithSimilarity, type StoredModelPreference, ModelPreference as StoredModelPreferenceModel, type StoredProject, type StoredSavedTool, type StoredUserPreference, UserPreference as StoredUserPreferenceModel, type StoredVaultFolder, VaultFolder as StoredVaultFolderModel, type StoredVaultMemory, VaultMemory as StoredVaultMemoryModel, StreamExpiredError, type StreamMetaEvent, type StreamResumeHandle, type SynthesizeProfileOptions, THEME_ATTRS, TOPICS_EXTRACTION_VERSION, TOPIC_EXTRACTION_BATCH_SIZE, type TextChunk, TextProcessor, type TextProps, type ThemeAttr, type ToolCallArgumentsDeltaEvent, type ToolMatchOptions, type ToolMatchResult, type ToolSet, type TopicExtractOptions, type TopicExtractionInput, type TopicExtractionRunResult, type TranscriptionResult, type TurnCompleteEvent, type TurnSkippedEvent, type UIInteractionContextValue, UIInteractionProvider, type UIInteractionProviderProps, type UpdateMediaOptions, type UpdateModelPreferenceOptions, type UpdateProjectOptions, type UpdateSavedToolOptions, type UpdateUserPreferenceOptions, type UpdateVaultFolderOptions, type UpdateVaultMemoryOptions, type UseBackupOptions, type UseBackupResult, type UseChatStorageOptions, type UseChatStorageResult, type UseCreditsOptions, type UseCreditsResult, type UseDropboxBackupOptions, type UseDropboxBackupResult, type UseEncryptionResult, type UseExportPdfResult, type UseFilesOptions, type UseFilesResult, type UseGoogleDriveBackupOptions, type UseGoogleDriveBackupResult, type UseICloudBackupOptions, type UseICloudBackupResult, type UseModelsResult, type UseOCRResult, type UsePdfResult, type UsePhoneCallsOptions, type UsePhoneCallsResult, type UseProjectsOptions, type UseProjectsResult, type UseSettingsOptions, type UseSettingsResult, type UseSubscriptionOptions, type UseSubscriptionResult, type UseToolsOptions, type UseToolsResult, type UseVoiceOptions, type UseVoiceResult, type UseWalletBindingOptions, type UseWalletBindingResult, VAULT_SIZE_HOP_CAP, type VaultEmbeddingCache, type VaultFolderOperationsContext, type VaultMemoryOperationsContext, type VaultSaveOperation, type VaultSearchResult, type VoiceRecording, WalletPoller, WatermelonChatStorageAdapter, type WatermelonChatStorageAdapterOptions, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, type WhisperModel, WordProcessor, ZipProcessor, type ZipProcessorOptions, addConversationMemoriesOp, appFileToStored, archiveVaultMemoryOp, backfillMemoryEntityUserIdsOp, capHopsForDensity, chatStorageMigrations, chatStorageSchema, chunkAndEmbedAllMessages, chunkAndEmbedMessage, chunkText, classifyCryptoPrice, classifyCryptoPriceBatch, classifyDecay, classifyInjectionCandidates, classifyStockPrice, classifyStockPriceBatch, classifyWeather, classifyWeatherBatch, classifyWebSearch, classifyWebSearchBatch, clearAllEncryptionKeys, clearAllEncryptionState, clearAllKeyPairs, clearCalendarToken, clearConversationMemoriesOp, clearDriveToken, clearToken as clearDropboxToken, clearEncryptionKey, clearGithubToken, clearGoogleDriveToken, clearICloudAuth, clearKeyPair, clearLazyTitleCache, clearMemoryTopicsOverrideOp, clearNotionToken, clearServerToolsCache, consoleLogger, conversationMemoryToStored, cosineInt8, createAutoExtractor, createChunkVectorCache, createCryptoPricePreProcessor, createDecaySweeper, createGitHubTools, createLlmDecayClassifier, createLlmNeighborRefiner, createMediaBatchOp, createMediaOp, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createPlatformCursorStore, createProjectOp, createRecallTool, createSavedToolOp, createServerToolsFilter, createStockPricePreProcessor, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWeatherPreProcessor, createWebSearchPreProcessor, decryptConversationTitle, decryptData, decryptDataBatch, decryptDataBytes, decryptDataBytesFromBytes, decryptDataWithKey, defaultServerToolsFilter, deleteAllAppFilesOp, deleteAllVaultMemoriesForUserOp, deleteAppFileOp, deleteEncryptedFile, deleteMediaByConversationOp, deleteMediaByMessageOp, deleteMediaOp, deleteProjectOp, deleteSavedToolOp, deleteVaultFolderOp, deleteVaultMemoryOp, dequantizeEmbedding, eagerEmbedContent, embedAllMessages, embedMessage, encryptData, encryptDataBatch, encryptDataBytes, encryptDataWithKey, ensureDefaultFoldersOp, expandToolSetsAdditive, exportElementToPdf, exportMarkdownToPdf, exportPublicKey, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, extractFileIds, fileExists, findById, findMatchingTools, findParentOfId, generateConversationId, generateEmbedding, generateEmbeddings, generateMediaId, generateProjectId, getAIGeneratedMediaOp, getAllSavedToolsOp, getAllVaultFoldersOp, getAllVaultMemoriesOp, getAllVaultMemoryContentsOp, getAndClearCalendarPendingMessage, getAndClearCalendarReturnUrl, getAndClearDrivePendingMessage, getAndClearDriveReturnUrl, getAndClearGithubPendingMessage, getAndClearGithubReturnUrl, getAndClearNotionPendingMessage, getAndClearNotionReturnUrl, getAppFileMapOp, getAppFileOp, getAppFilesOp, getAudioOp, getCachedServerTools, getCalendarAccessToken, getConversationMemoriesOp, getConversationsByProjectLazyOp, getConversationsByProjectOp, getConversationsLazyOp, getConversationsPageOp, getDecayCandidatesRawOp, getDocumentsOp, getDriveAccessToken, getEncryptionKey, getEntitiesByMemoryIdsOp, getGithubAccessToken, getGoogleDriveStoredToken, getId, getImagesOp, getLogger, getMediaByConversationOp, getMediaByIdOp, getMediaByIdsOp, getMediaByMessageOp, getMediaByModelOp, getMediaByRoleOp, getMediaBySourceUrlOp, getMediaByTypeOp, getMediaCountOp, getMediaCountsByTypeOp, getMediaOp, getMediaTypeFromMime, getMemoriesByEntityNamesOp, getMemoriesNeedingTopicExtractionOp, getNotionAccessToken, getNotionMCPUrl, getNumberAttr, getProjectConversationCountOp, getProjectConversationsOp, getProjectOp, getProjectsOp, getRecentMediaOp, getSavedToolByIdOp, getServerTools, getStringAttr, getSupportedFileTypes, getToolsChecksum, getUnfiledVaultMemoriesOp, getUserUploadedMediaOp, getValidCalendarToken, getValidDriveToken, getValidGithubToken, getValidNotionToken, getVaultFolderMemoryCountOp, getVaultMemoryOp, getVideosOp, handleCalendarCallback, handleDriveCallback, handleGithubCallback, handleNotionCallback, hardDeleteDecayedOp, hardDeleteMediaOp, hasCalendarCredentials, hasDriveCredentials, hasDropboxCredentials, hasEncryptionKey, hasGithubCredentials, hasGoogleDriveCredentials, hasICloudCredentials, hasKeyPair, hasNotionCredentials, injectionSignatureCatalog, insertAfterId, insertChild, isAnumaTag, isCalendarCallback, isDriveCallback, isGithubCallback, isHtmlTag, isNotionCallback, isOPFSSupported, isR2UrlExpired, isRerankerAvailable, isSupportedFile, isSupportedMediaType, linkMemoryEntitiesOp, mediaToStored, migrateCalendarToken, migrateDisplayResult, migrateDriveToken, migrateGithubToken, migrateNotionClientRegistration, migrateNotionToken, moveMemoriesToFolderOp, noopLogger, onKeyAvailable, parseJsx, preEmbedVaultMemories, preprocessFiles, previewToolSelection, projectToStored, putAppFileOp, quantizeEmbedding, queueManager, readEncryptedFile, recall, reflect, refreshCalendarToken, refreshDriveToken, refreshGithubToken, refreshNotionToken, relinkMisclassifiedVideosOp, removeById, renderAnumaJsx, renderAnumaTree, renderElementToCanvas, replaceById, replaceMemoryEntitiesGuardedOp, requestEncryptionKey, requestKeyPair, resolveFilePlaceholders, resolveThemeColor, restoreVaultMemoryOp, resumeStream, retain, revokeCalendarToken, revokeDriveToken, revokeGithubToken, revokeNotionAccess, savedToolToStored, screenCandidatesForInjection, sdkMigrations, sdkModelClasses, sdkSchema, searchChunksOp, searchMediaOp, searchMessagesOp, searchVaultMemories, selectServerToolsForPrompt, serializeJsx, setLogger, setMemoryEntitiesOp, settingsStorageSchema, shouldChunkMessage, shouldRefreshTools, stampTopicsExtractedAtOp, startGithubAuth, startNotionAuth, storeCalendarPendingMessage, storeCalendarReturnUrl, storeCalendarToken, storeDrivePendingMessage, storeDriveReturnUrl, storeDriveToken, storeGithubPendingMessage, storeGithubReturnUrl, storeGithubToken, storeNotionPendingMessage, storeNotionReturnUrl, streamCancelPath, streamReplayPath, supersedeVaultMemoryOp, synthesizeProfile, traverseGraphLane, ttlForType, updateAttrs, updateConversationProjectOp, updateMediaMessageIdBatchOp, updateMediaOp, updateMessageFeedbackOp, updateProjectNameOp, updateProjectOp, updateSavedToolOp, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, useAnumaTheme, useBackup, useBackupAuth, useChat, useChatStorage, useCredits, useDatabaseManager, useDropboxAuth, useDropboxBackup, useEncryption, useExportPdf, useFiles, useGoogleDriveAuth, useGoogleDriveBackup, useICloudAuth, useICloudBackup, useModels, useOCR, usePdf, usePhoneCalls, useProjects, useSettings, useSubscription, useTools, useUIInteraction, useVoice, useWalletBinding, userPreferencesStorageSchema, walk, webPlatformStorage, writeEncryptedFile };
|
|
13938
|
+
export { Anuma, type AnumaChild, AnumaJsxError, type AnumaNode, AnumaShadowIsolationProvider, type AnumaShadowIsolationProviderProps, type AnumaTheme, AnumaThemeProvider, type AnumaThemeProviderProps, AppFile as AppFileModel, type AppFileOperationsContext, type AttrValue, type AutoExtractMessage, type AutoExtractor, DEFAULT_CONVERSATIONS_FOLDER as BACKUP_DRIVE_CONVERSATIONS_FOLDER, DEFAULT_ROOT_FOLDER as BACKUP_DRIVE_ROOT_FOLDER, DEFAULT_BACKUP_FOLDER as BACKUP_ICLOUD_FOLDER, BUILT_IN_TOOL_SETS, type BackupAuthContextValue, BackupAuthProvider, type BackupAuthProviderProps, type BackupOperationOptions, BlobUrlManager, type Budget, type CachedChunkVectors, type CachedServerTools, ChartCard, type ChartCardProps, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Conversation as ChatConversation, Message as ChatMessage, type ChatRole, type ChatStorageAdapter, type ChatStorageObservable, type ChunkSearchResult, type ChunkVectorCache, type ChunkingOptions, type CircleProps, type ClientToolsFilterFn, type ConsolidationFallbackReason, type ConversationMemoryInput, ConversationMemory as ConversationMemoryModel, type ConversationMemoryOperationsContext, type ConversationQueryOptions, type CreateAutoExtractorOptions, type CreateConversationOptions, type CreateDecaySweeperOptions, type CreateEntityOptions, type CreateMediaOptions, type CreateMessageOptions, type CreateModelPreferenceOptions, type CreateProjectOptions, type CreateSavedToolOptions, type CreateServerToolsFilterOptions, type CreateUserPreferenceOptions, type CreateVaultFolderOptions, type CreateVaultMemoryOptions, type CryptoPriceClassification, type CryptoPricePreProcessorOptions, DEFAULT_BACKUP_FOLDER$1 as DEFAULT_BACKUP_FOLDER, DEFAULT_CACHE_EXPIRATION_MS, DEFAULT_CHUNK_CACHE_SIZE, DEFAULT_CHUNK_OVERLAP, DEFAULT_CHUNK_SIZE, DEFAULT_DECAY_POLICY, DEFAULT_CONVERSATIONS_FOLDER as DEFAULT_DRIVE_CONVERSATIONS_FOLDER, DEFAULT_ROOT_FOLDER as DEFAULT_DRIVE_ROOT_FOLDER, DEFAULT_BACKUP_FOLDER$1 as DEFAULT_DROPBOX_FOLDER, DEFAULT_EXCLUDED_SERVER_TOOLS, DEFAULT_BACKUP_FOLDER as DEFAULT_ICLOUD_BACKUP_FOLDER, DEFAULT_MAX_CLASSIFIER_CALLS_PER_SWEEP, DEFAULT_MIN_CHUNK_SIZE, DEFAULT_PERSONALITY_SETTINGS, DEFAULT_PROFILE_FACETS, DEFAULT_SERVER_TOOLS_MATCH_OPTIONS, DEFAULT_VAULT_CACHE_SIZE, DatabaseManager, type DatabaseManagerLogger, type DatabaseManagerOptions, type DecayCandidateRaw, type DecayClassifier, type DecayInput, type DecayPolicy, type DecaySweepResult, type DecaySweeper, type DecayVerdict, type DeckProps, type DisplayToolMigrations, type DropboxAuthContextValue, DropboxAuthProvider, type DropboxAuthProviderProps, type DropboxExportResult, type DropboxImportResult, ENTITY_FANOUT, ENTITY_KINDS, type EmbeddedWalletSignerFn, type EntityInput, type EntityKind, Entity as EntityModel, type EntityOperationsContext, ExcelProcessor, type ExtractFactsOptions, type ExtractOutcome, type ExtractedCandidate, type ExtractedEntity, type ExtractionCursorStore, FILE_PLACEHOLDER_PREFIX, FILE_PLACEHOLDER_REGEX, type FactType, type FileMetadata, type FileProcessor, type FileTypeQuery, type FileWithData, type FlushResult, type GetConversationsPageOptions, type GetMessagesPageOptions, type GoogleDriveAuthContextValue, GoogleDriveAuthProvider, type GoogleDriveAuthProviderProps, type GoogleDriveExportResult, type GoogleDriveImportResult, type GraphTraversalOptions, type GroupProps, HARD_DELETE_WINDOW_MS, type ICloudAuthContextValue, ICloudAuthProvider, type ICloudAuthProviderProps, type ICloudExportResult, type ICloudImportResult, INFERENCE_ID_HEADER, type IconProps, type ImageProps, type InjectionClassifierOptions, type InjectionReason, type InteractionType, type KnownTag, type LazyStoredConversation, type LineProps, type LlmDecayClassifierOptions, type LlmNeighborRefinerOptions, type Logger, LoggerProvider, type LoggerProviderProps, MAX_HOPS, MEDIUM_TTL_MS, type MediaDimensions, type MediaFilterOptions, type MediaMetadata, type MediaOperationsContext, type MediaRole, type MediaType, type MemoriesNeedingTopicExtraction, type EmbeddingOptions as MemoryEngineEmbeddingOptions, type MemoryEngineResult, type MemoryEngineSearchOptions, MemoryEntity as MemoryEntityModel, type MemoryExtractedEvent, type MemoryKind, type MemoryQuarantinedEvent, type MemoryVaultSearchOptions, type MemoryVaultToolOptions, type MessageChunk, type MessageFeedback, type MessageSkeleton, type ModelLoadProgress, NEVER_TTL_MS, NODE_BUDGET, type NeighborRefiner, type NowSource, type OCRFile, type ObservationTrend, type ObservationTrendInput, type OperationExecutor, PAST_EVENT_GRACE_MS, PROFILE_DOC_VERSION, type ParsedServerToolsResponse, type PdfExportOptions, type PdfExportProgress, type PdfExportStage, type PdfFile, PdfProcessor, type PendingInteraction, type PersonalitySettings, type PersonalitySliders, type PersonalityStyle, type PhoneCallPollingOptions, type PlatformStorage, type PortalLlmAuth, type PreprocessingOptions, type PreprocessingResult, type ProcessedFileResult, ProcessorRegistry, type ProfileConfigFingerprint, type ProfileDoc, type ProfileFacet, type ProfileFacetKey, type ProfileSection, type ProfileUpdate, type ProgressCallback, Project, type ProjectOperationsContext, type PromptPreProcessor, type PromptPreProcessorContext, type ProviderAuthState, type ProviderBackupState, ProviderStreamError, type QuantizedEmbedding, type QuarantinedMemoryInfo, type QueueEncryptionContext, QueueManager, type QueueStatus, type QueuedOperation, type QueuedOperationType, R2_DEFAULT_TTL_MS, RECALL_MAX_LIMIT, RECALL_TOOL_NAME, type RankedMemory, type RecallContext, type RecallDegradation, type RecallDiagnostics, type RecallOptions, type RecallResult, type RecallToolCallbacks, type RecallToolOptions, type RecencyOptions, type RectProps, type ReflectOptions, type ReflectResult, RerankerUnavailableError, type ResumeStreamOptions, type ResumeStreamResult, type RetainAction, type RetainContext, type RetainOptions, type RetainResult, type RetainSource, SDK_SCHEMA_VERSION, SERVER_TOOL_DEPENDENCY_SETS, SHORT_TTL_MS, SLIDER_CONFIG, SLIDES_FILE_PATH, SLIDE_CANVAS_HEIGHT, SLIDE_CANVAS_WIDTH, STREAM_RESUMABLE_HEADER, SavedTool as SavedToolModel, type SavedToolOperationsContext, type SavedToolParameter, type ScoreBreakdown, type ScreenProps, type ScreenResult, type ScreenedCandidate, type SearchMessagesOptions, type SearchSource, type SelectServerToolsForPromptOptions, type SendMessageWithStorageArgs, type SendMessageWithStorageResult, type ServerTool, type ServerToolsFilter, type ServerToolsFilterFn, type ServerToolsFilterFunction, type ServerToolsOptions, type ServerToolsResponse, type SignMessageFn, type SignMessageOptions, type SlideProps, type StepFinishEvent, type StockPriceClassification, type StockPricePreProcessorOptions, type StorageOperationsContext, type StoredAppFile, type ChatCompletionUsage as StoredChatCompletionUsage, type StoredConversation, type StoredConversationMemory, type StoredEntity, type StoredFileWithContext, type StoredMedia, Media as StoredMediaModel, type StoredMessage, type StoredMessageWithSimilarity, type StoredModelPreference, ModelPreference as StoredModelPreferenceModel, type StoredProject, type StoredSavedTool, type StoredUserPreference, UserPreference as StoredUserPreferenceModel, type StoredVaultFolder, VaultFolder as StoredVaultFolderModel, type StoredVaultMemory, VaultMemory as StoredVaultMemoryModel, StreamExpiredError, type StreamMetaEvent, type StreamResumeHandle, type SynthesizeProfileOptions, THEME_ATTRS, TOPICS_EXTRACTION_VERSION, TOPIC_EXTRACTION_BATCH_SIZE, TREND_RECENT_WINDOW_DAYS, TREND_STALE_WINDOW_DAYS, type TextChunk, TextProcessor, type TextProps, type ThemeAttr, type ToolCallArgumentsDeltaEvent, type ToolMatchOptions, type ToolMatchResult, type ToolSet, type TopicExtractOptions, type TopicExtractionInput, type TopicExtractionRunResult, type TranscriptionResult, type TurnCompleteEvent, type TurnSkippedEvent, type UIInteractionContextValue, UIInteractionProvider, type UIInteractionProviderProps, type UpdateMediaOptions, type UpdateModelPreferenceOptions, type UpdateProjectOptions, type UpdateSavedToolOptions, type UpdateUserPreferenceOptions, type UpdateVaultFolderOptions, type UpdateVaultMemoryOptions, type UseBackupOptions, type UseBackupResult, type UseChatStorageOptions, type UseChatStorageResult, type UseCreditsOptions, type UseCreditsResult, type UseDropboxBackupOptions, type UseDropboxBackupResult, type UseEncryptionResult, type UseExportPdfResult, type UseFilesOptions, type UseFilesResult, type UseGoogleDriveBackupOptions, type UseGoogleDriveBackupResult, type UseICloudBackupOptions, type UseICloudBackupResult, type UseModelsResult, type UseOCRResult, type UsePdfResult, type UsePhoneCallsOptions, type UsePhoneCallsResult, type UseProjectsOptions, type UseProjectsResult, type UseSettingsOptions, type UseSettingsResult, type UseSubscriptionOptions, type UseSubscriptionResult, type UseToolsOptions, type UseToolsResult, type UseVoiceOptions, type UseVoiceResult, type UseWalletBindingOptions, type UseWalletBindingResult, VAULT_SIZE_HOP_CAP, type VaultEmbeddingCache, type VaultFolderOperationsContext, type VaultMemoryOperationsContext, type VaultSaveOperation, type VaultSearchResult, type VoiceRecording, WalletPoller, WatermelonChatStorageAdapter, type WatermelonChatStorageAdapterOptions, type WeatherClassification, type WeatherPreProcessorOptions, type WebSearchClassification, type WebSearchPreProcessorOptions, type WhisperModel, WordProcessor, ZipProcessor, type ZipProcessorOptions, addConversationMemoriesOp, appFileToStored, archiveVaultMemoryOp, backfillMemoryEntityUserIdsOp, capHopsForDensity, chatStorageMigrations, chatStorageSchema, chunkAndEmbedAllMessages, chunkAndEmbedMessage, chunkText, classifyCryptoPrice, classifyCryptoPriceBatch, classifyDecay, classifyInjectionCandidates, classifyObservationTrend, classifyStockPrice, classifyStockPriceBatch, classifyWeather, classifyWeatherBatch, classifyWebSearch, classifyWebSearchBatch, clearAllEncryptionKeys, clearAllEncryptionState, clearAllKeyPairs, clearCalendarToken, clearConversationMemoriesOp, clearDriveToken, clearToken as clearDropboxToken, clearEncryptionKey, clearGithubToken, clearGoogleDriveToken, clearICloudAuth, clearKeyPair, clearLazyTitleCache, clearMemoryTopicsOverrideOp, clearNotionToken, clearServerToolsCache, consoleLogger, conversationMemoryToStored, cosineInt8, createAutoExtractor, createChunkVectorCache, createCryptoPricePreProcessor, createDecaySweeper, createGitHubTools, createLlmDecayClassifier, createLlmNeighborRefiner, createMediaBatchOp, createMediaOp, createMemoryEngineTool, createMemoryVaultSearchTool, createMemoryVaultTool, createPlatformCursorStore, createProjectOp, createRecallTool, createSavedToolOp, createServerToolsFilter, createStockPricePreProcessor, createVaultEmbeddingCache, createVaultFolderOp, createVaultMemoriesBatchOp, createVaultMemoryOp, createWeatherPreProcessor, createWebSearchPreProcessor, decryptConversationTitle, decryptData, decryptDataBatch, decryptDataBytes, decryptDataBytesFromBytes, decryptDataWithKey, defaultServerToolsFilter, deleteAllAppFilesOp, deleteAllVaultMemoriesForUserOp, deleteAppFileOp, deleteEncryptedFile, deleteMediaByConversationOp, deleteMediaByMessageOp, deleteMediaOp, deleteProjectOp, deleteSavedToolOp, deleteVaultFolderOp, deleteVaultMemoryOp, dequantizeEmbedding, eagerEmbedContent, embedAllMessages, embedMessage, encryptData, encryptDataBatch, encryptDataBytes, encryptDataWithKey, ensureDefaultFoldersOp, expandToolSetsAdditive, exportElementToPdf, exportMarkdownToPdf, exportPublicKey, extractAndLinkEntitiesForMemoriesOp, extractAndRetain, extractEntitiesForMemories, extractFacts, extractFileIds, fileExists, findById, findMatchingTools, findParentOfId, generateConversationId, generateEmbedding, generateEmbeddings, generateMediaId, generateProjectId, getAIGeneratedMediaOp, getAllSavedToolsOp, getAllVaultFoldersOp, getAllVaultMemoriesOp, getAllVaultMemoryContentsOp, getAndClearCalendarPendingMessage, getAndClearCalendarReturnUrl, getAndClearDrivePendingMessage, getAndClearDriveReturnUrl, getAndClearGithubPendingMessage, getAndClearGithubReturnUrl, getAndClearNotionPendingMessage, getAndClearNotionReturnUrl, getAppFileMapOp, getAppFileOp, getAppFilesOp, getAudioOp, getCachedServerTools, getCalendarAccessToken, getConversationMemoriesOp, getConversationsByProjectLazyOp, getConversationsByProjectOp, getConversationsLazyOp, getConversationsPageOp, getDecayCandidatesRawOp, getDocumentsOp, getDriveAccessToken, getEncryptionKey, getEntitiesByMemoryIdsOp, getGithubAccessToken, getGoogleDriveStoredToken, getId, getImagesOp, getLogger, getMediaByConversationOp, getMediaByIdOp, getMediaByIdsOp, getMediaByMessageOp, getMediaByModelOp, getMediaByRoleOp, getMediaBySourceUrlOp, getMediaByTypeOp, getMediaCountOp, getMediaCountsByTypeOp, getMediaOp, getMediaTypeFromMime, getMemoriesByEntityNamesOp, getMemoriesNeedingTopicExtractionOp, getNotionAccessToken, getNotionMCPUrl, getNumberAttr, getProjectConversationCountOp, getProjectConversationsOp, getProjectOp, getProjectsOp, getRecentMediaOp, getSavedToolByIdOp, getServerTools, getStringAttr, getSupportedFileTypes, getToolsChecksum, getUnfiledVaultMemoriesOp, getUserUploadedMediaOp, getValidCalendarToken, getValidDriveToken, getValidGithubToken, getValidNotionToken, getVaultFolderMemoryCountOp, getVaultMemoryOp, getVideosOp, handleCalendarCallback, handleDriveCallback, handleGithubCallback, handleNotionCallback, hardDeleteDecayedOp, hardDeleteMediaOp, hasCalendarCredentials, hasDriveCredentials, hasDropboxCredentials, hasEncryptionKey, hasGithubCredentials, hasGoogleDriveCredentials, hasICloudCredentials, hasKeyPair, hasNotionCredentials, injectionSignatureCatalog, insertAfterId, insertChild, isAnumaTag, isCalendarCallback, isDriveCallback, isGithubCallback, isHtmlTag, isNotionCallback, isOPFSSupported, isR2UrlExpired, isRerankerAvailable, isSupportedFile, isSupportedMediaType, linkMemoryEntitiesOp, mediaToStored, migrateCalendarToken, migrateDisplayResult, migrateDriveToken, migrateGithubToken, migrateNotionClientRegistration, migrateNotionToken, moveMemoriesToFolderOp, noopLogger, onKeyAvailable, parseJsx, preEmbedVaultMemories, preprocessFiles, previewToolSelection, projectToStored, putAppFileOp, quantizeEmbedding, queueManager, readEncryptedFile, recall, reflect, refreshCalendarToken, refreshDriveToken, refreshGithubToken, refreshNotionToken, relinkMisclassifiedVideosOp, removeById, renderAnumaJsx, renderAnumaTree, renderElementToCanvas, replaceById, replaceMemoryEntitiesGuardedOp, requestEncryptionKey, requestKeyPair, resolveFilePlaceholders, resolveThemeColor, restoreVaultMemoryOp, resumeStream, retain, revokeCalendarToken, revokeDriveToken, revokeGithubToken, revokeNotionAccess, savedToolToStored, screenCandidatesForInjection, sdkMigrations, sdkModelClasses, sdkSchema, searchChunksOp, searchMediaOp, searchMessagesOp, searchVaultMemories, selectServerToolsForPrompt, serializeJsx, setLogger, setMemoryEntitiesOp, settingsStorageSchema, shouldChunkMessage, shouldRefreshTools, stampTopicsExtractedAtOp, startGithubAuth, startNotionAuth, storeCalendarPendingMessage, storeCalendarReturnUrl, storeCalendarToken, storeDrivePendingMessage, storeDriveReturnUrl, storeDriveToken, storeGithubPendingMessage, storeGithubReturnUrl, storeGithubToken, storeNotionPendingMessage, storeNotionReturnUrl, streamCancelPath, streamReplayPath, summarizeObservationTrends, supersedeVaultMemoryOp, synthesizeProfile, traverseGraphLane, ttlForType, updateAttrs, updateConversationProjectOp, updateMediaMessageIdBatchOp, updateMediaOp, updateMessageFeedbackOp, updateProjectNameOp, updateProjectOp, updateSavedToolOp, updateVaultFolderContextOp, updateVaultFolderOp, updateVaultMemoryEmbeddingOp, updateVaultMemoryOp, useAnumaTheme, useBackup, useBackupAuth, useChat, useChatStorage, useCredits, useDatabaseManager, useDropboxAuth, useDropboxBackup, useEncryption, useExportPdf, useFiles, useGoogleDriveAuth, useGoogleDriveBackup, useICloudAuth, useICloudBackup, useModels, useOCR, usePdf, usePhoneCalls, useProjects, useSettings, useSubscription, useTools, useUIInteraction, useVoice, useWalletBinding, userPreferencesStorageSchema, walk, webPlatformStorage, writeEncryptedFile };
|