@memnexus-ai/typescript-sdk 1.1.1
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/LICENSE +21 -0
- package/README.md +197 -0
- package/dist/index.d.ts +4821 -0
- package/dist/index.js +5581 -0
- package/dist/index.mjs +5521 -0
- package/package.json +50 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,4821 @@
|
|
|
1
|
+
import { ZodType, z } from 'zod';
|
|
2
|
+
|
|
3
|
+
declare enum Environment {
|
|
4
|
+
DEFAULT = "http://localhost:3000"
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
type HttpMethod$1 = 'CONNECT' | 'DELETE' | 'GET' | 'HEAD' | 'OPTIONS' | 'PATCH' | 'POST' | 'PUT' | 'TRACE';
|
|
8
|
+
interface HttpRequest {
|
|
9
|
+
baseUrl: string;
|
|
10
|
+
method: HttpMethod$1;
|
|
11
|
+
path: string;
|
|
12
|
+
headers: Map<string, unknown>;
|
|
13
|
+
body?: BodyInit;
|
|
14
|
+
abortSignal?: AbortSignal;
|
|
15
|
+
queryParams: Map<string, unknown>;
|
|
16
|
+
pathParams: Map<string, unknown>;
|
|
17
|
+
}
|
|
18
|
+
interface HttpMetadata$1 {
|
|
19
|
+
status: number;
|
|
20
|
+
statusText: string;
|
|
21
|
+
headers: Record<string, string>;
|
|
22
|
+
}
|
|
23
|
+
interface HttpResponse$1<T> {
|
|
24
|
+
data?: T;
|
|
25
|
+
metadata: HttpMetadata$1;
|
|
26
|
+
raw: ArrayBuffer;
|
|
27
|
+
}
|
|
28
|
+
interface HttpError$1 {
|
|
29
|
+
error: string;
|
|
30
|
+
metadata: HttpMetadata$1;
|
|
31
|
+
}
|
|
32
|
+
interface Hook {
|
|
33
|
+
beforeRequest(request: HttpRequest, params: Map<string, string>): Promise<HttpRequest>;
|
|
34
|
+
afterResponse(request: HttpRequest, response: HttpResponse$1<any>, params: Map<string, string>): Promise<HttpResponse$1<any>>;
|
|
35
|
+
onError(request: HttpRequest, response: HttpResponse$1<any>, params: Map<string, string>): Promise<HttpError$1>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
declare enum SerializationStyle {
|
|
39
|
+
SIMPLE = "simple",
|
|
40
|
+
LABEL = "label",
|
|
41
|
+
MATRIX = "matrix",
|
|
42
|
+
FORM = "form",
|
|
43
|
+
SPACE_DELIMITED = "space_delimited",
|
|
44
|
+
PIPE_DELIMITED = "pipe_delimited",
|
|
45
|
+
DEEP_OBJECT = "deep_object",
|
|
46
|
+
NONE = "none"
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
declare class ThrowableError extends Error {
|
|
50
|
+
message: string;
|
|
51
|
+
protected response?: unknown;
|
|
52
|
+
constructor(message: string, response?: unknown);
|
|
53
|
+
throw(): void;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
interface ResponseDefinition {
|
|
57
|
+
schema: ZodType;
|
|
58
|
+
contentType: ContentType;
|
|
59
|
+
status: number;
|
|
60
|
+
}
|
|
61
|
+
interface ErrorDefinition {
|
|
62
|
+
error: new (...args: any[]) => ThrowableError;
|
|
63
|
+
contentType: ContentType;
|
|
64
|
+
status: number;
|
|
65
|
+
}
|
|
66
|
+
interface CreateRequestParameters<Page = unknown[]> {
|
|
67
|
+
baseUrl: string;
|
|
68
|
+
method: HttpMethod;
|
|
69
|
+
body?: any;
|
|
70
|
+
headers: Map<string, RequestParameter>;
|
|
71
|
+
queryParams: Map<string, RequestParameter>;
|
|
72
|
+
pathParams: Map<string, RequestParameter>;
|
|
73
|
+
path: string;
|
|
74
|
+
config: SdkConfig;
|
|
75
|
+
responses: ResponseDefinition[];
|
|
76
|
+
errors: ErrorDefinition[];
|
|
77
|
+
requestSchema: ZodType;
|
|
78
|
+
requestContentType: ContentType;
|
|
79
|
+
validation: ValidationOptions;
|
|
80
|
+
retry: RetryOptions;
|
|
81
|
+
pagination?: RequestPagination<Page> | RequestCursorPagination<Page>;
|
|
82
|
+
filename?: string;
|
|
83
|
+
filenames?: string[];
|
|
84
|
+
}
|
|
85
|
+
interface RequestParameter {
|
|
86
|
+
key: string | undefined;
|
|
87
|
+
value: unknown;
|
|
88
|
+
explode: boolean;
|
|
89
|
+
encode: boolean;
|
|
90
|
+
style: SerializationStyle;
|
|
91
|
+
isLimit: boolean;
|
|
92
|
+
isOffset: boolean;
|
|
93
|
+
isCursor: boolean;
|
|
94
|
+
}
|
|
95
|
+
interface RequestPagination<Page> {
|
|
96
|
+
pageSize?: number;
|
|
97
|
+
pagePath: string[];
|
|
98
|
+
pageSchema?: ZodType<Page, any, any>;
|
|
99
|
+
}
|
|
100
|
+
interface RequestCursorPagination<Page> {
|
|
101
|
+
pagePath: string[];
|
|
102
|
+
pageSchema?: ZodType<Page, any, any>;
|
|
103
|
+
cursorPath: string[];
|
|
104
|
+
cursorSchema?: ZodType<string | null | undefined>;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
declare class Request<PageSchema = unknown[]> {
|
|
108
|
+
baseUrl: string;
|
|
109
|
+
headers: Map<string, RequestParameter>;
|
|
110
|
+
queryParams: Map<string, RequestParameter>;
|
|
111
|
+
pathParams: Map<string, RequestParameter>;
|
|
112
|
+
body?: any;
|
|
113
|
+
method: HttpMethod;
|
|
114
|
+
path: string;
|
|
115
|
+
config: SdkConfig;
|
|
116
|
+
responses: ResponseDefinition[];
|
|
117
|
+
errors: ErrorDefinition[];
|
|
118
|
+
requestSchema: ZodType;
|
|
119
|
+
requestContentType: ContentType;
|
|
120
|
+
validation: ValidationOptions;
|
|
121
|
+
retry: RetryOptions;
|
|
122
|
+
pagination?: RequestPagination<PageSchema> | RequestCursorPagination<PageSchema>;
|
|
123
|
+
filename?: string;
|
|
124
|
+
filenames?: string[];
|
|
125
|
+
private readonly pathPattern;
|
|
126
|
+
constructor(params: CreateRequestParameters<PageSchema>);
|
|
127
|
+
addHeaderParam(key: string, param: RequestParameter): void;
|
|
128
|
+
addQueryParam(key: string, param: RequestParameter): void;
|
|
129
|
+
addPathParam(key: string, param: RequestParameter): void;
|
|
130
|
+
addBody(body: any): void;
|
|
131
|
+
updateFromHookRequest(hookRequest: HttpRequest): void;
|
|
132
|
+
constructFullUrl(): string;
|
|
133
|
+
copy(overrides?: Partial<CreateRequestParameters>): Request<unknown[]>;
|
|
134
|
+
getHeaders(): HeadersInit | undefined;
|
|
135
|
+
nextPage(cursor?: string): void;
|
|
136
|
+
private constructPath;
|
|
137
|
+
private getOffsetParam;
|
|
138
|
+
private getCursorParam;
|
|
139
|
+
private getAllParams;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
type HttpMethod = 'CONNECT' | 'DELETE' | 'GET' | 'HEAD' | 'OPTIONS' | 'PATCH' | 'POST' | 'PUT' | 'TRACE';
|
|
143
|
+
interface SdkConfig {
|
|
144
|
+
baseUrl?: string;
|
|
145
|
+
environment?: Environment;
|
|
146
|
+
timeoutMs?: number;
|
|
147
|
+
token?: string;
|
|
148
|
+
retry?: RetryOptions;
|
|
149
|
+
validation?: ValidationOptions;
|
|
150
|
+
}
|
|
151
|
+
interface HttpMetadata {
|
|
152
|
+
status: number;
|
|
153
|
+
statusText: string;
|
|
154
|
+
headers: Record<string, string>;
|
|
155
|
+
}
|
|
156
|
+
interface HttpResponse<T = unknown> {
|
|
157
|
+
data?: T;
|
|
158
|
+
metadata: HttpMetadata;
|
|
159
|
+
raw: ArrayBuffer;
|
|
160
|
+
}
|
|
161
|
+
interface PaginatedHttpResponse<T = unknown> extends HttpResponse<T> {
|
|
162
|
+
}
|
|
163
|
+
interface CursorPaginatedHttpResponse<T = unknown> extends HttpResponse<T> {
|
|
164
|
+
nextCursor?: string | null;
|
|
165
|
+
}
|
|
166
|
+
declare enum ContentType {
|
|
167
|
+
Json = "json",
|
|
168
|
+
Xml = "xml",
|
|
169
|
+
Pdf = "pdf",
|
|
170
|
+
Image = "image",
|
|
171
|
+
File = "file",
|
|
172
|
+
Binary = "binary",
|
|
173
|
+
FormUrlEncoded = "form",
|
|
174
|
+
Text = "text",
|
|
175
|
+
MultipartFormData = "multipartFormData",
|
|
176
|
+
EventStream = "eventStream",
|
|
177
|
+
NoContent = "noContent"
|
|
178
|
+
}
|
|
179
|
+
interface RequestConfig {
|
|
180
|
+
retry?: RetryOptions;
|
|
181
|
+
validation?: ValidationOptions;
|
|
182
|
+
baseUrl?: string;
|
|
183
|
+
}
|
|
184
|
+
interface RetryOptions {
|
|
185
|
+
attempts: number;
|
|
186
|
+
delayMs?: number;
|
|
187
|
+
}
|
|
188
|
+
interface ValidationOptions {
|
|
189
|
+
responseValidation?: boolean;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
declare class HttpError extends Error {
|
|
193
|
+
readonly error: string;
|
|
194
|
+
readonly metadata: HttpMetadata;
|
|
195
|
+
readonly raw?: ArrayBuffer;
|
|
196
|
+
constructor(metadata: HttpMetadata, raw?: ArrayBuffer, error?: string);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
declare class CustomHook implements Hook {
|
|
200
|
+
beforeRequest(request: HttpRequest, params: Map<string, string>): Promise<HttpRequest>;
|
|
201
|
+
afterResponse(request: HttpRequest, response: HttpResponse$1<any>, params: Map<string, string>): Promise<HttpResponse$1<any>>;
|
|
202
|
+
onError(request: HttpRequest, response: HttpResponse$1<any>, params: Map<string, string>): Promise<HttpError>;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
declare class HttpClient {
|
|
206
|
+
private config;
|
|
207
|
+
private readonly requestHandlerChain;
|
|
208
|
+
constructor(config: SdkConfig, hook?: CustomHook);
|
|
209
|
+
call<T>(request: Request): Promise<HttpResponse<T>>;
|
|
210
|
+
stream<T>(request: Request): AsyncGenerator<HttpResponse<T>>;
|
|
211
|
+
callPaginated<FullResponse, Page>(request: Request<Page>): Promise<PaginatedHttpResponse<Page>>;
|
|
212
|
+
callCursorPaginated<FullResponse, Page>(request: Request<Page>): Promise<CursorPaginatedHttpResponse<Page>>;
|
|
213
|
+
setBaseUrl(url: string): void;
|
|
214
|
+
setConfig(config: SdkConfig): void;
|
|
215
|
+
private getPage;
|
|
216
|
+
private getNextCursor;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
declare class BaseService {
|
|
220
|
+
config: SdkConfig;
|
|
221
|
+
client: HttpClient;
|
|
222
|
+
constructor(config: SdkConfig);
|
|
223
|
+
set baseUrl(baseUrl: string);
|
|
224
|
+
set environment(environment: Environment);
|
|
225
|
+
set timeoutMs(timeoutMs: number);
|
|
226
|
+
set token(token: string);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* The shape of the model inside the application code - what the users use
|
|
231
|
+
*/
|
|
232
|
+
declare const listApiKeysOkResponse: z.ZodLazy<z.ZodObject<{
|
|
233
|
+
data: z.ZodOptional<z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
234
|
+
id: z.ZodString;
|
|
235
|
+
label: z.ZodString;
|
|
236
|
+
prefix: z.ZodString;
|
|
237
|
+
createdAt: z.ZodString;
|
|
238
|
+
expiresAt: z.ZodNullable<z.ZodString>;
|
|
239
|
+
lastUsedAt: z.ZodNullable<z.ZodString>;
|
|
240
|
+
}, "strip", z.ZodTypeAny, {
|
|
241
|
+
label: string;
|
|
242
|
+
id: string;
|
|
243
|
+
prefix: string;
|
|
244
|
+
createdAt: string;
|
|
245
|
+
expiresAt: string | null;
|
|
246
|
+
lastUsedAt: string | null;
|
|
247
|
+
}, {
|
|
248
|
+
label: string;
|
|
249
|
+
id: string;
|
|
250
|
+
prefix: string;
|
|
251
|
+
createdAt: string;
|
|
252
|
+
expiresAt: string | null;
|
|
253
|
+
lastUsedAt: string | null;
|
|
254
|
+
}>>, "many">>;
|
|
255
|
+
}, "strip", z.ZodTypeAny, {
|
|
256
|
+
data?: {
|
|
257
|
+
label: string;
|
|
258
|
+
id: string;
|
|
259
|
+
prefix: string;
|
|
260
|
+
createdAt: string;
|
|
261
|
+
expiresAt: string | null;
|
|
262
|
+
lastUsedAt: string | null;
|
|
263
|
+
}[] | undefined;
|
|
264
|
+
}, {
|
|
265
|
+
data?: {
|
|
266
|
+
label: string;
|
|
267
|
+
id: string;
|
|
268
|
+
prefix: string;
|
|
269
|
+
createdAt: string;
|
|
270
|
+
expiresAt: string | null;
|
|
271
|
+
lastUsedAt: string | null;
|
|
272
|
+
}[] | undefined;
|
|
273
|
+
}>>;
|
|
274
|
+
/**
|
|
275
|
+
*
|
|
276
|
+
* @typedef {ListApiKeysOkResponse} listApiKeysOkResponse
|
|
277
|
+
* @property {ApiKey[]}
|
|
278
|
+
*/
|
|
279
|
+
type ListApiKeysOkResponse = z.infer<typeof listApiKeysOkResponse>;
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* The shape of the model inside the application code - what the users use
|
|
283
|
+
*/
|
|
284
|
+
declare const createApiKeyRequest: z.ZodLazy<z.ZodObject<{
|
|
285
|
+
label: z.ZodOptional<z.ZodString>;
|
|
286
|
+
expiresAt: z.ZodOptional<z.ZodString>;
|
|
287
|
+
}, "strip", z.ZodTypeAny, {
|
|
288
|
+
label?: string | undefined;
|
|
289
|
+
expiresAt?: string | undefined;
|
|
290
|
+
}, {
|
|
291
|
+
label?: string | undefined;
|
|
292
|
+
expiresAt?: string | undefined;
|
|
293
|
+
}>>;
|
|
294
|
+
/**
|
|
295
|
+
*
|
|
296
|
+
* @typedef {CreateApiKeyRequest} createApiKeyRequest
|
|
297
|
+
* @property {string}
|
|
298
|
+
* @property {string}
|
|
299
|
+
*/
|
|
300
|
+
type CreateApiKeyRequest = z.infer<typeof createApiKeyRequest>;
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* The shape of the model inside the application code - what the users use
|
|
304
|
+
*/
|
|
305
|
+
declare const createApiKeyCreatedResponse: z.ZodLazy<z.ZodObject<{
|
|
306
|
+
data: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
307
|
+
apiKey: z.ZodOptional<z.ZodString>;
|
|
308
|
+
keyInfo: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
309
|
+
id: z.ZodString;
|
|
310
|
+
label: z.ZodString;
|
|
311
|
+
prefix: z.ZodString;
|
|
312
|
+
createdAt: z.ZodString;
|
|
313
|
+
expiresAt: z.ZodNullable<z.ZodString>;
|
|
314
|
+
lastUsedAt: z.ZodNullable<z.ZodString>;
|
|
315
|
+
}, "strip", z.ZodTypeAny, {
|
|
316
|
+
label: string;
|
|
317
|
+
id: string;
|
|
318
|
+
prefix: string;
|
|
319
|
+
createdAt: string;
|
|
320
|
+
expiresAt: string | null;
|
|
321
|
+
lastUsedAt: string | null;
|
|
322
|
+
}, {
|
|
323
|
+
label: string;
|
|
324
|
+
id: string;
|
|
325
|
+
prefix: string;
|
|
326
|
+
createdAt: string;
|
|
327
|
+
expiresAt: string | null;
|
|
328
|
+
lastUsedAt: string | null;
|
|
329
|
+
}>>>;
|
|
330
|
+
}, "strip", z.ZodTypeAny, {
|
|
331
|
+
apiKey?: string | undefined;
|
|
332
|
+
keyInfo?: {
|
|
333
|
+
label: string;
|
|
334
|
+
id: string;
|
|
335
|
+
prefix: string;
|
|
336
|
+
createdAt: string;
|
|
337
|
+
expiresAt: string | null;
|
|
338
|
+
lastUsedAt: string | null;
|
|
339
|
+
} | undefined;
|
|
340
|
+
}, {
|
|
341
|
+
apiKey?: string | undefined;
|
|
342
|
+
keyInfo?: {
|
|
343
|
+
label: string;
|
|
344
|
+
id: string;
|
|
345
|
+
prefix: string;
|
|
346
|
+
createdAt: string;
|
|
347
|
+
expiresAt: string | null;
|
|
348
|
+
lastUsedAt: string | null;
|
|
349
|
+
} | undefined;
|
|
350
|
+
}>>>;
|
|
351
|
+
}, "strip", z.ZodTypeAny, {
|
|
352
|
+
data?: {
|
|
353
|
+
apiKey?: string | undefined;
|
|
354
|
+
keyInfo?: {
|
|
355
|
+
label: string;
|
|
356
|
+
id: string;
|
|
357
|
+
prefix: string;
|
|
358
|
+
createdAt: string;
|
|
359
|
+
expiresAt: string | null;
|
|
360
|
+
lastUsedAt: string | null;
|
|
361
|
+
} | undefined;
|
|
362
|
+
} | undefined;
|
|
363
|
+
}, {
|
|
364
|
+
data?: {
|
|
365
|
+
apiKey?: string | undefined;
|
|
366
|
+
keyInfo?: {
|
|
367
|
+
label: string;
|
|
368
|
+
id: string;
|
|
369
|
+
prefix: string;
|
|
370
|
+
createdAt: string;
|
|
371
|
+
expiresAt: string | null;
|
|
372
|
+
lastUsedAt: string | null;
|
|
373
|
+
} | undefined;
|
|
374
|
+
} | undefined;
|
|
375
|
+
}>>;
|
|
376
|
+
/**
|
|
377
|
+
*
|
|
378
|
+
* @typedef {CreateApiKeyCreatedResponse} createApiKeyCreatedResponse
|
|
379
|
+
* @property {CreateApiKeyCreatedResponseData}
|
|
380
|
+
*/
|
|
381
|
+
type CreateApiKeyCreatedResponse = z.infer<typeof createApiKeyCreatedResponse>;
|
|
382
|
+
|
|
383
|
+
declare class ApiKeysService extends BaseService {
|
|
384
|
+
/**
|
|
385
|
+
* Debug endpoint to retrieve user ID and authentication method from the current API key
|
|
386
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
387
|
+
* @returns {Promise<HttpResponse<any>>} - OK
|
|
388
|
+
*/
|
|
389
|
+
debugUser(requestConfig?: RequestConfig): Promise<HttpResponse<void>>;
|
|
390
|
+
/**
|
|
391
|
+
* List all API keys for the authenticated user
|
|
392
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
393
|
+
* @returns {Promise<HttpResponse<ListApiKeysOkResponse>>} - List of API keys retrieved successfully
|
|
394
|
+
*/
|
|
395
|
+
listApiKeys(requestConfig?: RequestConfig): Promise<HttpResponse<ListApiKeysOkResponse>>;
|
|
396
|
+
/**
|
|
397
|
+
* Create a new API key for the authenticated user
|
|
398
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
399
|
+
* @returns {Promise<HttpResponse<CreateApiKeyCreatedResponse>>} - API key created successfully
|
|
400
|
+
*/
|
|
401
|
+
createApiKey(body: CreateApiKeyRequest, requestConfig?: RequestConfig): Promise<HttpResponse<CreateApiKeyCreatedResponse>>;
|
|
402
|
+
/**
|
|
403
|
+
* Delete (revoke) an API key by its ID
|
|
404
|
+
* @param {string} id - The API key ID
|
|
405
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
406
|
+
* @returns {Promise<HttpResponse<any>>} - No Content
|
|
407
|
+
*/
|
|
408
|
+
deleteApiKey(id: string, requestConfig?: RequestConfig): Promise<HttpResponse<void>>;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
/**
|
|
412
|
+
* The shape of the model inside the application code - what the users use
|
|
413
|
+
*/
|
|
414
|
+
declare const apiKey: z.ZodLazy<z.ZodObject<{
|
|
415
|
+
id: z.ZodString;
|
|
416
|
+
label: z.ZodString;
|
|
417
|
+
prefix: z.ZodString;
|
|
418
|
+
createdAt: z.ZodString;
|
|
419
|
+
expiresAt: z.ZodNullable<z.ZodString>;
|
|
420
|
+
lastUsedAt: z.ZodNullable<z.ZodString>;
|
|
421
|
+
}, "strip", z.ZodTypeAny, {
|
|
422
|
+
label: string;
|
|
423
|
+
id: string;
|
|
424
|
+
prefix: string;
|
|
425
|
+
createdAt: string;
|
|
426
|
+
expiresAt: string | null;
|
|
427
|
+
lastUsedAt: string | null;
|
|
428
|
+
}, {
|
|
429
|
+
label: string;
|
|
430
|
+
id: string;
|
|
431
|
+
prefix: string;
|
|
432
|
+
createdAt: string;
|
|
433
|
+
expiresAt: string | null;
|
|
434
|
+
lastUsedAt: string | null;
|
|
435
|
+
}>>;
|
|
436
|
+
/**
|
|
437
|
+
*
|
|
438
|
+
* @typedef {ApiKey} apiKey
|
|
439
|
+
* @property {string} - Unique API key identifier
|
|
440
|
+
* @property {string} - Human-readable label for the API key
|
|
441
|
+
* @property {string} - API key prefix for identification
|
|
442
|
+
* @property {string} - Creation timestamp
|
|
443
|
+
* @property {string} - Expiration timestamp (null if never expires)
|
|
444
|
+
* @property {string} - Last usage timestamp (null if never used)
|
|
445
|
+
*/
|
|
446
|
+
type ApiKey = z.infer<typeof apiKey>;
|
|
447
|
+
|
|
448
|
+
/**
|
|
449
|
+
* The shape of the model inside the application code - what the users use
|
|
450
|
+
*/
|
|
451
|
+
declare const createApiKeyCreatedResponseData: z.ZodLazy<z.ZodObject<{
|
|
452
|
+
apiKey: z.ZodOptional<z.ZodString>;
|
|
453
|
+
keyInfo: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
454
|
+
id: z.ZodString;
|
|
455
|
+
label: z.ZodString;
|
|
456
|
+
prefix: z.ZodString;
|
|
457
|
+
createdAt: z.ZodString;
|
|
458
|
+
expiresAt: z.ZodNullable<z.ZodString>;
|
|
459
|
+
lastUsedAt: z.ZodNullable<z.ZodString>;
|
|
460
|
+
}, "strip", z.ZodTypeAny, {
|
|
461
|
+
label: string;
|
|
462
|
+
id: string;
|
|
463
|
+
prefix: string;
|
|
464
|
+
createdAt: string;
|
|
465
|
+
expiresAt: string | null;
|
|
466
|
+
lastUsedAt: string | null;
|
|
467
|
+
}, {
|
|
468
|
+
label: string;
|
|
469
|
+
id: string;
|
|
470
|
+
prefix: string;
|
|
471
|
+
createdAt: string;
|
|
472
|
+
expiresAt: string | null;
|
|
473
|
+
lastUsedAt: string | null;
|
|
474
|
+
}>>>;
|
|
475
|
+
}, "strip", z.ZodTypeAny, {
|
|
476
|
+
apiKey?: string | undefined;
|
|
477
|
+
keyInfo?: {
|
|
478
|
+
label: string;
|
|
479
|
+
id: string;
|
|
480
|
+
prefix: string;
|
|
481
|
+
createdAt: string;
|
|
482
|
+
expiresAt: string | null;
|
|
483
|
+
lastUsedAt: string | null;
|
|
484
|
+
} | undefined;
|
|
485
|
+
}, {
|
|
486
|
+
apiKey?: string | undefined;
|
|
487
|
+
keyInfo?: {
|
|
488
|
+
label: string;
|
|
489
|
+
id: string;
|
|
490
|
+
prefix: string;
|
|
491
|
+
createdAt: string;
|
|
492
|
+
expiresAt: string | null;
|
|
493
|
+
lastUsedAt: string | null;
|
|
494
|
+
} | undefined;
|
|
495
|
+
}>>;
|
|
496
|
+
/**
|
|
497
|
+
*
|
|
498
|
+
* @typedef {CreateApiKeyCreatedResponseData} createApiKeyCreatedResponseData
|
|
499
|
+
* @property {string} - The full API key (only shown once)
|
|
500
|
+
* @property {ApiKey}
|
|
501
|
+
*/
|
|
502
|
+
type CreateApiKeyCreatedResponseData = z.infer<typeof createApiKeyCreatedResponseData>;
|
|
503
|
+
|
|
504
|
+
/**
|
|
505
|
+
* The shape of the model inside the application code - what the users use
|
|
506
|
+
*/
|
|
507
|
+
declare const listArtifactsOkResponse: z.ZodLazy<z.ZodObject<{
|
|
508
|
+
data: z.ZodOptional<z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
509
|
+
id: z.ZodString;
|
|
510
|
+
userId: z.ZodString;
|
|
511
|
+
content: z.ZodString;
|
|
512
|
+
type: z.ZodString;
|
|
513
|
+
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
514
|
+
description: z.ZodNullable<z.ZodOptional<z.ZodString>>; /**
|
|
515
|
+
*
|
|
516
|
+
* @typedef {ListArtifactsOkResponse} listArtifactsOkResponse
|
|
517
|
+
* @property {Artifact[]}
|
|
518
|
+
* @property {number}
|
|
519
|
+
*/
|
|
520
|
+
memoryId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
521
|
+
conversationId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
522
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
523
|
+
createdAt: z.ZodString;
|
|
524
|
+
updatedAt: z.ZodString;
|
|
525
|
+
}, "strip", z.ZodTypeAny, {
|
|
526
|
+
type: string;
|
|
527
|
+
id: string;
|
|
528
|
+
createdAt: string;
|
|
529
|
+
userId: string;
|
|
530
|
+
content: string;
|
|
531
|
+
updatedAt: string;
|
|
532
|
+
name?: string | null | undefined;
|
|
533
|
+
description?: string | null | undefined;
|
|
534
|
+
memoryId?: string | null | undefined;
|
|
535
|
+
conversationId?: string | null | undefined;
|
|
536
|
+
metadata?: any;
|
|
537
|
+
}, {
|
|
538
|
+
type: string;
|
|
539
|
+
id: string;
|
|
540
|
+
createdAt: string;
|
|
541
|
+
userId: string;
|
|
542
|
+
content: string;
|
|
543
|
+
updatedAt: string;
|
|
544
|
+
name?: string | null | undefined;
|
|
545
|
+
description?: string | null | undefined;
|
|
546
|
+
memoryId?: string | null | undefined;
|
|
547
|
+
conversationId?: string | null | undefined;
|
|
548
|
+
metadata?: any;
|
|
549
|
+
}>>, "many">>;
|
|
550
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
551
|
+
}, "strip", z.ZodTypeAny, {
|
|
552
|
+
data?: {
|
|
553
|
+
type: string;
|
|
554
|
+
id: string;
|
|
555
|
+
createdAt: string;
|
|
556
|
+
userId: string;
|
|
557
|
+
content: string;
|
|
558
|
+
updatedAt: string;
|
|
559
|
+
name?: string | null | undefined;
|
|
560
|
+
description?: string | null | undefined;
|
|
561
|
+
memoryId?: string | null | undefined;
|
|
562
|
+
conversationId?: string | null | undefined;
|
|
563
|
+
metadata?: any;
|
|
564
|
+
}[] | undefined;
|
|
565
|
+
count?: number | undefined;
|
|
566
|
+
}, {
|
|
567
|
+
data?: {
|
|
568
|
+
type: string;
|
|
569
|
+
id: string;
|
|
570
|
+
createdAt: string;
|
|
571
|
+
userId: string;
|
|
572
|
+
content: string;
|
|
573
|
+
updatedAt: string;
|
|
574
|
+
name?: string | null | undefined;
|
|
575
|
+
description?: string | null | undefined;
|
|
576
|
+
memoryId?: string | null | undefined;
|
|
577
|
+
conversationId?: string | null | undefined;
|
|
578
|
+
metadata?: any;
|
|
579
|
+
}[] | undefined;
|
|
580
|
+
count?: number | undefined;
|
|
581
|
+
}>>;
|
|
582
|
+
/**
|
|
583
|
+
*
|
|
584
|
+
* @typedef {ListArtifactsOkResponse} listArtifactsOkResponse
|
|
585
|
+
* @property {Artifact[]}
|
|
586
|
+
* @property {number}
|
|
587
|
+
*/
|
|
588
|
+
type ListArtifactsOkResponse = z.infer<typeof listArtifactsOkResponse>;
|
|
589
|
+
|
|
590
|
+
interface ListArtifactsParams {
|
|
591
|
+
limit?: number;
|
|
592
|
+
offset?: number;
|
|
593
|
+
memoryId?: string;
|
|
594
|
+
conversationId?: string;
|
|
595
|
+
type?: string;
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
/**
|
|
599
|
+
* The shape of the model inside the application code - what the users use
|
|
600
|
+
*/
|
|
601
|
+
declare const createArtifactRequest: z.ZodLazy<z.ZodObject<{
|
|
602
|
+
content: z.ZodString;
|
|
603
|
+
type: z.ZodString;
|
|
604
|
+
name: z.ZodOptional<z.ZodString>;
|
|
605
|
+
description: z.ZodOptional<z.ZodString>;
|
|
606
|
+
memoryId: z.ZodOptional<z.ZodString>;
|
|
607
|
+
conversationId: z.ZodOptional<z.ZodString>;
|
|
608
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
609
|
+
}, "strip", z.ZodTypeAny, {
|
|
610
|
+
type: string;
|
|
611
|
+
content: string;
|
|
612
|
+
name?: string | undefined;
|
|
613
|
+
description?: string | undefined;
|
|
614
|
+
memoryId?: string | undefined;
|
|
615
|
+
conversationId?: string | undefined;
|
|
616
|
+
metadata?: any;
|
|
617
|
+
}, {
|
|
618
|
+
type: string;
|
|
619
|
+
content: string;
|
|
620
|
+
name?: string | undefined;
|
|
621
|
+
description?: string | undefined;
|
|
622
|
+
memoryId?: string | undefined;
|
|
623
|
+
conversationId?: string | undefined;
|
|
624
|
+
metadata?: any;
|
|
625
|
+
}>>;
|
|
626
|
+
/**
|
|
627
|
+
*
|
|
628
|
+
* @typedef {CreateArtifactRequest} createArtifactRequest
|
|
629
|
+
* @property {string} - Artifact content
|
|
630
|
+
* @property {string} - Artifact type (e.g., note, document, code)
|
|
631
|
+
* @property {string} - Artifact name
|
|
632
|
+
* @property {string} - Artifact description
|
|
633
|
+
* @property {string} - Associated memory ID
|
|
634
|
+
* @property {string} - Associated conversation ID
|
|
635
|
+
* @property {any} - Additional metadata
|
|
636
|
+
*/
|
|
637
|
+
type CreateArtifactRequest = z.infer<typeof createArtifactRequest>;
|
|
638
|
+
|
|
639
|
+
/**
|
|
640
|
+
* The shape of the model inside the application code - what the users use
|
|
641
|
+
*/
|
|
642
|
+
declare const createArtifactCreatedResponse: z.ZodLazy<z.ZodObject<{
|
|
643
|
+
data: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
644
|
+
id: z.ZodString;
|
|
645
|
+
userId: z.ZodString;
|
|
646
|
+
content: z.ZodString;
|
|
647
|
+
type: z.ZodString;
|
|
648
|
+
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
649
|
+
description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
650
|
+
memoryId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
651
|
+
conversationId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
652
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
653
|
+
createdAt: z.ZodString;
|
|
654
|
+
/**
|
|
655
|
+
* The shape of the model mapping from the api schema into the application shape.
|
|
656
|
+
* Is equal to application shape if all property names match the api schema
|
|
657
|
+
*/
|
|
658
|
+
updatedAt: z.ZodString;
|
|
659
|
+
}, "strip", z.ZodTypeAny, {
|
|
660
|
+
type: string;
|
|
661
|
+
id: string;
|
|
662
|
+
createdAt: string;
|
|
663
|
+
userId: string;
|
|
664
|
+
content: string;
|
|
665
|
+
updatedAt: string;
|
|
666
|
+
name?: string | null | undefined;
|
|
667
|
+
description?: string | null | undefined;
|
|
668
|
+
memoryId?: string | null | undefined;
|
|
669
|
+
conversationId?: string | null | undefined;
|
|
670
|
+
metadata?: any;
|
|
671
|
+
}, {
|
|
672
|
+
type: string;
|
|
673
|
+
id: string;
|
|
674
|
+
createdAt: string;
|
|
675
|
+
userId: string;
|
|
676
|
+
content: string;
|
|
677
|
+
updatedAt: string;
|
|
678
|
+
name?: string | null | undefined;
|
|
679
|
+
description?: string | null | undefined;
|
|
680
|
+
memoryId?: string | null | undefined;
|
|
681
|
+
conversationId?: string | null | undefined;
|
|
682
|
+
metadata?: any;
|
|
683
|
+
}>>>;
|
|
684
|
+
}, "strip", z.ZodTypeAny, {
|
|
685
|
+
data?: {
|
|
686
|
+
type: string;
|
|
687
|
+
id: string;
|
|
688
|
+
createdAt: string;
|
|
689
|
+
userId: string;
|
|
690
|
+
content: string;
|
|
691
|
+
updatedAt: string;
|
|
692
|
+
name?: string | null | undefined;
|
|
693
|
+
description?: string | null | undefined;
|
|
694
|
+
memoryId?: string | null | undefined;
|
|
695
|
+
conversationId?: string | null | undefined;
|
|
696
|
+
metadata?: any;
|
|
697
|
+
} | undefined;
|
|
698
|
+
}, {
|
|
699
|
+
data?: {
|
|
700
|
+
type: string;
|
|
701
|
+
id: string;
|
|
702
|
+
createdAt: string;
|
|
703
|
+
userId: string;
|
|
704
|
+
content: string;
|
|
705
|
+
updatedAt: string;
|
|
706
|
+
name?: string | null | undefined;
|
|
707
|
+
description?: string | null | undefined;
|
|
708
|
+
memoryId?: string | null | undefined;
|
|
709
|
+
conversationId?: string | null | undefined;
|
|
710
|
+
metadata?: any;
|
|
711
|
+
} | undefined;
|
|
712
|
+
}>>;
|
|
713
|
+
/**
|
|
714
|
+
*
|
|
715
|
+
* @typedef {CreateArtifactCreatedResponse} createArtifactCreatedResponse
|
|
716
|
+
* @property {Artifact}
|
|
717
|
+
*/
|
|
718
|
+
type CreateArtifactCreatedResponse = z.infer<typeof createArtifactCreatedResponse>;
|
|
719
|
+
|
|
720
|
+
/**
|
|
721
|
+
* The shape of the model inside the application code - what the users use
|
|
722
|
+
*/
|
|
723
|
+
declare const getArtifactByIdOkResponse: z.ZodLazy<z.ZodObject<{
|
|
724
|
+
data: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
725
|
+
id: z.ZodString;
|
|
726
|
+
userId: z.ZodString;
|
|
727
|
+
content: z.ZodString;
|
|
728
|
+
type: z.ZodString;
|
|
729
|
+
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
730
|
+
description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
731
|
+
memoryId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
732
|
+
conversationId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
733
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
734
|
+
createdAt: z.ZodString;
|
|
735
|
+
updatedAt: z.ZodString;
|
|
736
|
+
}, "strip", z.ZodTypeAny, {
|
|
737
|
+
type: string;
|
|
738
|
+
id: string;
|
|
739
|
+
createdAt: string;
|
|
740
|
+
userId: string;
|
|
741
|
+
content: string;
|
|
742
|
+
updatedAt: string;
|
|
743
|
+
name?: string | null | undefined;
|
|
744
|
+
description?: string | null | undefined;
|
|
745
|
+
memoryId?: string | null | undefined;
|
|
746
|
+
conversationId?: string | null | undefined;
|
|
747
|
+
metadata?: any;
|
|
748
|
+
}, {
|
|
749
|
+
type: string;
|
|
750
|
+
id: string;
|
|
751
|
+
createdAt: string;
|
|
752
|
+
userId: string;
|
|
753
|
+
content: string;
|
|
754
|
+
updatedAt: string;
|
|
755
|
+
name?: string | null | undefined;
|
|
756
|
+
description?: string | null | undefined;
|
|
757
|
+
memoryId?: string | null | undefined;
|
|
758
|
+
conversationId?: string | null | undefined;
|
|
759
|
+
metadata?: any;
|
|
760
|
+
}>>>;
|
|
761
|
+
}, "strip", z.ZodTypeAny, {
|
|
762
|
+
data?: {
|
|
763
|
+
type: string;
|
|
764
|
+
id: string;
|
|
765
|
+
createdAt: string;
|
|
766
|
+
userId: string;
|
|
767
|
+
content: string;
|
|
768
|
+
updatedAt: string;
|
|
769
|
+
name?: string | null | undefined;
|
|
770
|
+
description?: string | null | undefined;
|
|
771
|
+
memoryId?: string | null | undefined;
|
|
772
|
+
conversationId?: string | null | undefined;
|
|
773
|
+
metadata?: any;
|
|
774
|
+
} | undefined;
|
|
775
|
+
}, {
|
|
776
|
+
data?: {
|
|
777
|
+
type: string;
|
|
778
|
+
id: string;
|
|
779
|
+
createdAt: string;
|
|
780
|
+
userId: string;
|
|
781
|
+
content: string;
|
|
782
|
+
updatedAt: string;
|
|
783
|
+
name?: string | null | undefined;
|
|
784
|
+
description?: string | null | undefined;
|
|
785
|
+
memoryId?: string | null | undefined;
|
|
786
|
+
conversationId?: string | null | undefined;
|
|
787
|
+
metadata?: any;
|
|
788
|
+
} | undefined;
|
|
789
|
+
}>>;
|
|
790
|
+
/**
|
|
791
|
+
*
|
|
792
|
+
* @typedef {GetArtifactByIdOkResponse} getArtifactByIdOkResponse
|
|
793
|
+
* @property {Artifact}
|
|
794
|
+
*/
|
|
795
|
+
type GetArtifactByIdOkResponse = z.infer<typeof getArtifactByIdOkResponse>;
|
|
796
|
+
|
|
797
|
+
/**
|
|
798
|
+
* The shape of the model inside the application code - what the users use
|
|
799
|
+
*/
|
|
800
|
+
declare const updateArtifactRequest: z.ZodLazy<z.ZodObject<{
|
|
801
|
+
content: z.ZodOptional<z.ZodString>;
|
|
802
|
+
type: z.ZodOptional<z.ZodString>;
|
|
803
|
+
name: z.ZodOptional<z.ZodString>;
|
|
804
|
+
description: z.ZodOptional<z.ZodString>;
|
|
805
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
806
|
+
}, "strip", z.ZodTypeAny, {
|
|
807
|
+
content?: string | undefined;
|
|
808
|
+
type?: string | undefined;
|
|
809
|
+
name?: string | undefined;
|
|
810
|
+
description?: string | undefined;
|
|
811
|
+
metadata?: any;
|
|
812
|
+
}, {
|
|
813
|
+
content?: string | undefined;
|
|
814
|
+
type?: string | undefined;
|
|
815
|
+
name?: string | undefined;
|
|
816
|
+
description?: string | undefined;
|
|
817
|
+
metadata?: any;
|
|
818
|
+
}>>;
|
|
819
|
+
/**
|
|
820
|
+
*
|
|
821
|
+
* @typedef {UpdateArtifactRequest} updateArtifactRequest
|
|
822
|
+
* @property {string} - Artifact content
|
|
823
|
+
* @property {string} - Artifact type (e.g., note, document, code)
|
|
824
|
+
* @property {string} - Artifact name
|
|
825
|
+
* @property {string} - Artifact description
|
|
826
|
+
* @property {any} - Additional metadata
|
|
827
|
+
*/
|
|
828
|
+
type UpdateArtifactRequest = z.infer<typeof updateArtifactRequest>;
|
|
829
|
+
|
|
830
|
+
/**
|
|
831
|
+
* The shape of the model inside the application code - what the users use
|
|
832
|
+
*/
|
|
833
|
+
declare const updateArtifactOkResponse: z.ZodLazy<z.ZodObject<{
|
|
834
|
+
data: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
835
|
+
id: z.ZodString;
|
|
836
|
+
userId: z.ZodString;
|
|
837
|
+
content: z.ZodString;
|
|
838
|
+
type: z.ZodString;
|
|
839
|
+
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
840
|
+
description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
841
|
+
memoryId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
842
|
+
conversationId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
843
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
844
|
+
createdAt: z.ZodString;
|
|
845
|
+
updatedAt: z.ZodString;
|
|
846
|
+
}, "strip", z.ZodTypeAny, {
|
|
847
|
+
type: string;
|
|
848
|
+
id: string;
|
|
849
|
+
createdAt: string;
|
|
850
|
+
userId: string;
|
|
851
|
+
content: string;
|
|
852
|
+
updatedAt: string;
|
|
853
|
+
name?: string | null | undefined;
|
|
854
|
+
description?: string | null | undefined;
|
|
855
|
+
memoryId?: string | null | undefined;
|
|
856
|
+
conversationId?: string | null | undefined;
|
|
857
|
+
metadata?: any;
|
|
858
|
+
}, {
|
|
859
|
+
type: string;
|
|
860
|
+
id: string;
|
|
861
|
+
createdAt: string;
|
|
862
|
+
userId: string;
|
|
863
|
+
content: string;
|
|
864
|
+
updatedAt: string;
|
|
865
|
+
name?: string | null | undefined;
|
|
866
|
+
description?: string | null | undefined;
|
|
867
|
+
memoryId?: string | null | undefined;
|
|
868
|
+
conversationId?: string | null | undefined;
|
|
869
|
+
metadata?: any;
|
|
870
|
+
}>>>;
|
|
871
|
+
}, "strip", z.ZodTypeAny, {
|
|
872
|
+
data?: {
|
|
873
|
+
type: string;
|
|
874
|
+
id: string;
|
|
875
|
+
createdAt: string;
|
|
876
|
+
userId: string;
|
|
877
|
+
content: string;
|
|
878
|
+
updatedAt: string;
|
|
879
|
+
name?: string | null | undefined;
|
|
880
|
+
description?: string | null | undefined;
|
|
881
|
+
memoryId?: string | null | undefined;
|
|
882
|
+
conversationId?: string | null | undefined;
|
|
883
|
+
metadata?: any;
|
|
884
|
+
} | undefined;
|
|
885
|
+
}, {
|
|
886
|
+
data?: {
|
|
887
|
+
type: string;
|
|
888
|
+
id: string;
|
|
889
|
+
createdAt: string;
|
|
890
|
+
userId: string;
|
|
891
|
+
content: string;
|
|
892
|
+
updatedAt: string;
|
|
893
|
+
name?: string | null | undefined;
|
|
894
|
+
description?: string | null | undefined;
|
|
895
|
+
memoryId?: string | null | undefined;
|
|
896
|
+
conversationId?: string | null | undefined;
|
|
897
|
+
metadata?: any;
|
|
898
|
+
} | undefined;
|
|
899
|
+
}>>;
|
|
900
|
+
/**
|
|
901
|
+
*
|
|
902
|
+
* @typedef {UpdateArtifactOkResponse} updateArtifactOkResponse
|
|
903
|
+
* @property {Artifact}
|
|
904
|
+
*/
|
|
905
|
+
type UpdateArtifactOkResponse = z.infer<typeof updateArtifactOkResponse>;
|
|
906
|
+
|
|
907
|
+
declare class ArtifactsService extends BaseService {
|
|
908
|
+
/**
|
|
909
|
+
* List all artifacts for the authenticated user with optional filters
|
|
910
|
+
* @param {number} [params.limit] - Maximum number of artifacts to return
|
|
911
|
+
* @param {number} [params.offset] - Number of artifacts to skip
|
|
912
|
+
* @param {string} [params.memoryId] - Filter by memory ID
|
|
913
|
+
* @param {string} [params.conversationId] - Filter by conversation ID
|
|
914
|
+
* @param {string} [params.type] - Filter by artifact type
|
|
915
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
916
|
+
* @returns {Promise<HttpResponse<ListArtifactsOkResponse>>} - OK
|
|
917
|
+
*/
|
|
918
|
+
listArtifacts(params?: ListArtifactsParams, requestConfig?: RequestConfig): Promise<HttpResponse<ListArtifactsOkResponse>>;
|
|
919
|
+
/**
|
|
920
|
+
* Create a new artifact for the authenticated user
|
|
921
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
922
|
+
* @returns {Promise<HttpResponse<CreateArtifactCreatedResponse>>} - Created
|
|
923
|
+
*/
|
|
924
|
+
createArtifact(body: CreateArtifactRequest, requestConfig?: RequestConfig): Promise<HttpResponse<CreateArtifactCreatedResponse>>;
|
|
925
|
+
/**
|
|
926
|
+
* Retrieve a specific artifact by its ID
|
|
927
|
+
* @param {string} id - The artifact ID
|
|
928
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
929
|
+
* @returns {Promise<HttpResponse<GetArtifactByIdOkResponse>>} - OK
|
|
930
|
+
*/
|
|
931
|
+
getArtifactById(id: string, requestConfig?: RequestConfig): Promise<HttpResponse<GetArtifactByIdOkResponse>>;
|
|
932
|
+
/**
|
|
933
|
+
* Update an existing artifact with partial data
|
|
934
|
+
* @param {string} id - The artifact ID
|
|
935
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
936
|
+
* @returns {Promise<HttpResponse<UpdateArtifactOkResponse>>} - OK
|
|
937
|
+
*/
|
|
938
|
+
updateArtifact(id: string, body: UpdateArtifactRequest, requestConfig?: RequestConfig): Promise<HttpResponse<UpdateArtifactOkResponse>>;
|
|
939
|
+
/**
|
|
940
|
+
* Delete an artifact by its ID
|
|
941
|
+
* @param {string} id - The artifact ID
|
|
942
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
943
|
+
* @returns {Promise<HttpResponse<any>>} - No Content
|
|
944
|
+
*/
|
|
945
|
+
deleteArtifact(id: string, requestConfig?: RequestConfig): Promise<HttpResponse<void>>;
|
|
946
|
+
}
|
|
947
|
+
|
|
948
|
+
/**
|
|
949
|
+
* The shape of the model inside the application code - what the users use
|
|
950
|
+
*/
|
|
951
|
+
declare const artifact: z.ZodLazy<z.ZodObject<{
|
|
952
|
+
id: z.ZodString;
|
|
953
|
+
userId: z.ZodString;
|
|
954
|
+
content: z.ZodString;
|
|
955
|
+
type: z.ZodString;
|
|
956
|
+
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
957
|
+
description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
958
|
+
memoryId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
959
|
+
conversationId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
960
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
961
|
+
createdAt: z.ZodString;
|
|
962
|
+
updatedAt: z.ZodString;
|
|
963
|
+
}, "strip", z.ZodTypeAny, {
|
|
964
|
+
type: string;
|
|
965
|
+
id: string;
|
|
966
|
+
createdAt: string;
|
|
967
|
+
userId: string;
|
|
968
|
+
content: string;
|
|
969
|
+
updatedAt: string;
|
|
970
|
+
name?: string | null | undefined;
|
|
971
|
+
description?: string | null | undefined;
|
|
972
|
+
memoryId?: string | null | undefined;
|
|
973
|
+
conversationId?: string | null | undefined;
|
|
974
|
+
metadata?: any;
|
|
975
|
+
}, {
|
|
976
|
+
type: string;
|
|
977
|
+
id: string;
|
|
978
|
+
createdAt: string;
|
|
979
|
+
userId: string;
|
|
980
|
+
content: string;
|
|
981
|
+
updatedAt: string;
|
|
982
|
+
name?: string | null | undefined;
|
|
983
|
+
description?: string | null | undefined;
|
|
984
|
+
memoryId?: string | null | undefined;
|
|
985
|
+
conversationId?: string | null | undefined;
|
|
986
|
+
metadata?: any;
|
|
987
|
+
}>>;
|
|
988
|
+
/**
|
|
989
|
+
*
|
|
990
|
+
* @typedef {Artifact} artifact
|
|
991
|
+
* @property {string} - Unique identifier for the artifact
|
|
992
|
+
* @property {string} - User ID who owns this artifact
|
|
993
|
+
* @property {string} - Artifact content
|
|
994
|
+
* @property {string} - Artifact type (e.g., note, document, code)
|
|
995
|
+
* @property {string} - Artifact name
|
|
996
|
+
* @property {string} - Artifact description
|
|
997
|
+
* @property {string} - Associated memory ID
|
|
998
|
+
* @property {string} - Associated conversation ID
|
|
999
|
+
* @property {any} - Additional metadata
|
|
1000
|
+
* @property {string} - Creation timestamp
|
|
1001
|
+
* @property {string} - Last update timestamp
|
|
1002
|
+
*/
|
|
1003
|
+
type Artifact = z.infer<typeof artifact>;
|
|
1004
|
+
|
|
1005
|
+
/**
|
|
1006
|
+
* The shape of the model inside the application code - what the users use
|
|
1007
|
+
*/
|
|
1008
|
+
declare const listConversationsOkResponse: z.ZodLazy<z.ZodObject<{
|
|
1009
|
+
data: z.ZodOptional<z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
1010
|
+
id: z.ZodString;
|
|
1011
|
+
title: z.ZodString;
|
|
1012
|
+
summary: z.ZodNullable<z.ZodString>;
|
|
1013
|
+
createdAt: z.ZodString;
|
|
1014
|
+
updatedAt: z.ZodString;
|
|
1015
|
+
}, "strip", z.ZodTypeAny, {
|
|
1016
|
+
id: string;
|
|
1017
|
+
createdAt: string;
|
|
1018
|
+
updatedAt: string;
|
|
1019
|
+
title: string;
|
|
1020
|
+
summary: string | null;
|
|
1021
|
+
}, {
|
|
1022
|
+
id: string;
|
|
1023
|
+
createdAt: string;
|
|
1024
|
+
updatedAt: string;
|
|
1025
|
+
title: string;
|
|
1026
|
+
summary: string | null;
|
|
1027
|
+
}>>, "many">>;
|
|
1028
|
+
pagination: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
1029
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
1030
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
1031
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
1032
|
+
}, "strip", z.ZodTypeAny, {
|
|
1033
|
+
limit?: number | undefined;
|
|
1034
|
+
offset?: number | undefined;
|
|
1035
|
+
count?: number | undefined;
|
|
1036
|
+
}, {
|
|
1037
|
+
limit?: number | undefined;
|
|
1038
|
+
offset?: number | undefined;
|
|
1039
|
+
count?: number | undefined;
|
|
1040
|
+
}>>>;
|
|
1041
|
+
}, "strip", z.ZodTypeAny, {
|
|
1042
|
+
data?: {
|
|
1043
|
+
id: string;
|
|
1044
|
+
createdAt: string;
|
|
1045
|
+
updatedAt: string;
|
|
1046
|
+
title: string;
|
|
1047
|
+
summary: string | null;
|
|
1048
|
+
}[] | undefined;
|
|
1049
|
+
pagination?: {
|
|
1050
|
+
limit?: number | undefined;
|
|
1051
|
+
offset?: number | undefined;
|
|
1052
|
+
count?: number | undefined;
|
|
1053
|
+
} | undefined;
|
|
1054
|
+
}, {
|
|
1055
|
+
data?: {
|
|
1056
|
+
id: string;
|
|
1057
|
+
createdAt: string;
|
|
1058
|
+
updatedAt: string;
|
|
1059
|
+
title: string;
|
|
1060
|
+
summary: string | null;
|
|
1061
|
+
}[] | undefined;
|
|
1062
|
+
pagination?: {
|
|
1063
|
+
limit?: number | undefined;
|
|
1064
|
+
offset?: number | undefined;
|
|
1065
|
+
count?: number | undefined;
|
|
1066
|
+
} | undefined;
|
|
1067
|
+
}>>;
|
|
1068
|
+
/**
|
|
1069
|
+
*
|
|
1070
|
+
* @typedef {ListConversationsOkResponse} listConversationsOkResponse
|
|
1071
|
+
* @property {Conversation[]}
|
|
1072
|
+
* @property {ListConversationsOkResponsePagination}
|
|
1073
|
+
*/
|
|
1074
|
+
type ListConversationsOkResponse = z.infer<typeof listConversationsOkResponse>;
|
|
1075
|
+
|
|
1076
|
+
interface ListConversationsParams {
|
|
1077
|
+
limit?: number;
|
|
1078
|
+
offset?: number;
|
|
1079
|
+
}
|
|
1080
|
+
|
|
1081
|
+
/**
|
|
1082
|
+
* The shape of the model inside the application code - what the users use
|
|
1083
|
+
*/
|
|
1084
|
+
declare const createConversationRequest: z.ZodLazy<z.ZodObject<{
|
|
1085
|
+
title: z.ZodString;
|
|
1086
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
1087
|
+
}, "strip", z.ZodTypeAny, {
|
|
1088
|
+
title: string;
|
|
1089
|
+
summary?: string | undefined;
|
|
1090
|
+
}, {
|
|
1091
|
+
title: string;
|
|
1092
|
+
summary?: string | undefined;
|
|
1093
|
+
}>>;
|
|
1094
|
+
/**
|
|
1095
|
+
*
|
|
1096
|
+
* @typedef {CreateConversationRequest} createConversationRequest
|
|
1097
|
+
* @property {string} - Conversation title
|
|
1098
|
+
* @property {string} - Optional conversation summary
|
|
1099
|
+
*/
|
|
1100
|
+
type CreateConversationRequest = z.infer<typeof createConversationRequest>;
|
|
1101
|
+
|
|
1102
|
+
/**
|
|
1103
|
+
* The shape of the model inside the application code - what the users use
|
|
1104
|
+
*/
|
|
1105
|
+
declare const createConversationCreatedResponse: z.ZodLazy<z.ZodObject<{
|
|
1106
|
+
data: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
1107
|
+
id: z.ZodString;
|
|
1108
|
+
title: z.ZodString;
|
|
1109
|
+
summary: z.ZodNullable<z.ZodString>;
|
|
1110
|
+
createdAt: z.ZodString;
|
|
1111
|
+
updatedAt: z.ZodString;
|
|
1112
|
+
}, "strip", z.ZodTypeAny, {
|
|
1113
|
+
id: string;
|
|
1114
|
+
createdAt: string;
|
|
1115
|
+
updatedAt: string;
|
|
1116
|
+
title: string;
|
|
1117
|
+
summary: string | null;
|
|
1118
|
+
}, {
|
|
1119
|
+
id: string;
|
|
1120
|
+
createdAt: string;
|
|
1121
|
+
updatedAt: string;
|
|
1122
|
+
title: string;
|
|
1123
|
+
summary: string | null;
|
|
1124
|
+
}>>>;
|
|
1125
|
+
}, "strip", z.ZodTypeAny, {
|
|
1126
|
+
data?: {
|
|
1127
|
+
id: string;
|
|
1128
|
+
createdAt: string;
|
|
1129
|
+
updatedAt: string;
|
|
1130
|
+
title: string;
|
|
1131
|
+
summary: string | null;
|
|
1132
|
+
} | undefined;
|
|
1133
|
+
}, {
|
|
1134
|
+
data?: {
|
|
1135
|
+
id: string;
|
|
1136
|
+
createdAt: string;
|
|
1137
|
+
updatedAt: string;
|
|
1138
|
+
title: string;
|
|
1139
|
+
summary: string | null;
|
|
1140
|
+
} | undefined;
|
|
1141
|
+
}>>;
|
|
1142
|
+
/**
|
|
1143
|
+
*
|
|
1144
|
+
* @typedef {CreateConversationCreatedResponse} createConversationCreatedResponse
|
|
1145
|
+
* @property {Conversation}
|
|
1146
|
+
*/
|
|
1147
|
+
type CreateConversationCreatedResponse = z.infer<typeof createConversationCreatedResponse>;
|
|
1148
|
+
|
|
1149
|
+
/**
|
|
1150
|
+
* The shape of the model inside the application code - what the users use
|
|
1151
|
+
*/
|
|
1152
|
+
declare const getConversationSummaryOkResponse: z.ZodLazy<z.ZodObject<{
|
|
1153
|
+
data: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
1154
|
+
id: z.ZodString;
|
|
1155
|
+
title: z.ZodString;
|
|
1156
|
+
summary: z.ZodNullable<z.ZodString>;
|
|
1157
|
+
createdAt: z.ZodString;
|
|
1158
|
+
updatedAt: z.ZodString;
|
|
1159
|
+
}, "strip", z.ZodTypeAny, {
|
|
1160
|
+
id: string;
|
|
1161
|
+
createdAt: string;
|
|
1162
|
+
updatedAt: string;
|
|
1163
|
+
title: string;
|
|
1164
|
+
summary: string | null;
|
|
1165
|
+
}, {
|
|
1166
|
+
id: string;
|
|
1167
|
+
createdAt: string;
|
|
1168
|
+
updatedAt: string;
|
|
1169
|
+
title: string;
|
|
1170
|
+
summary: string | null;
|
|
1171
|
+
}>>>;
|
|
1172
|
+
}, "strip", z.ZodTypeAny, {
|
|
1173
|
+
data?: {
|
|
1174
|
+
id: string;
|
|
1175
|
+
createdAt: string;
|
|
1176
|
+
updatedAt: string;
|
|
1177
|
+
title: string;
|
|
1178
|
+
summary: string | null;
|
|
1179
|
+
} | undefined;
|
|
1180
|
+
}, {
|
|
1181
|
+
data?: {
|
|
1182
|
+
id: string;
|
|
1183
|
+
createdAt: string;
|
|
1184
|
+
updatedAt: string;
|
|
1185
|
+
title: string;
|
|
1186
|
+
summary: string | null;
|
|
1187
|
+
} | undefined;
|
|
1188
|
+
}>>;
|
|
1189
|
+
/**
|
|
1190
|
+
*
|
|
1191
|
+
* @typedef {GetConversationSummaryOkResponse} getConversationSummaryOkResponse
|
|
1192
|
+
* @property {Conversation}
|
|
1193
|
+
*/
|
|
1194
|
+
type GetConversationSummaryOkResponse = z.infer<typeof getConversationSummaryOkResponse>;
|
|
1195
|
+
|
|
1196
|
+
/**
|
|
1197
|
+
* The shape of the model inside the application code - what the users use
|
|
1198
|
+
*/
|
|
1199
|
+
declare const getConversationTimelineOkResponse: z.ZodLazy<z.ZodObject<{
|
|
1200
|
+
data: z.ZodOptional<z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
1201
|
+
id: z.ZodString;
|
|
1202
|
+
content: z.ZodString;
|
|
1203
|
+
memoryType: z.ZodString;
|
|
1204
|
+
context: z.ZodOptional<z.ZodString>;
|
|
1205
|
+
topics: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1206
|
+
timestamp: z.ZodOptional<z.ZodString>;
|
|
1207
|
+
eventTime: z.ZodOptional<z.ZodString>;
|
|
1208
|
+
validFrom: z.ZodOptional<z.ZodString>;
|
|
1209
|
+
validTo: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1210
|
+
createdAt: z.ZodString;
|
|
1211
|
+
updatedAt: z.ZodString;
|
|
1212
|
+
}, "strip", z.ZodTypeAny, {
|
|
1213
|
+
id: string;
|
|
1214
|
+
createdAt: string;
|
|
1215
|
+
content: string;
|
|
1216
|
+
updatedAt: string;
|
|
1217
|
+
memoryType: string;
|
|
1218
|
+
context?: string | undefined;
|
|
1219
|
+
topics?: string[] | undefined;
|
|
1220
|
+
timestamp?: string | undefined;
|
|
1221
|
+
eventTime?: string | undefined;
|
|
1222
|
+
validFrom?: string | undefined;
|
|
1223
|
+
validTo?: string | null | undefined;
|
|
1224
|
+
}, {
|
|
1225
|
+
id: string;
|
|
1226
|
+
createdAt: string;
|
|
1227
|
+
content: string;
|
|
1228
|
+
updatedAt: string;
|
|
1229
|
+
memoryType: string;
|
|
1230
|
+
context?: string | undefined;
|
|
1231
|
+
topics?: string[] | undefined;
|
|
1232
|
+
timestamp?: string | undefined;
|
|
1233
|
+
eventTime?: string | undefined;
|
|
1234
|
+
validFrom?: string | undefined;
|
|
1235
|
+
validTo?: string | null | undefined;
|
|
1236
|
+
}>>, "many">>;
|
|
1237
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
1238
|
+
}, "strip", z.ZodTypeAny, {
|
|
1239
|
+
data?: {
|
|
1240
|
+
id: string;
|
|
1241
|
+
createdAt: string;
|
|
1242
|
+
content: string;
|
|
1243
|
+
updatedAt: string;
|
|
1244
|
+
memoryType: string;
|
|
1245
|
+
context?: string | undefined;
|
|
1246
|
+
topics?: string[] | undefined;
|
|
1247
|
+
timestamp?: string | undefined;
|
|
1248
|
+
eventTime?: string | undefined;
|
|
1249
|
+
validFrom?: string | undefined;
|
|
1250
|
+
validTo?: string | null | undefined;
|
|
1251
|
+
}[] | undefined;
|
|
1252
|
+
count?: number | undefined;
|
|
1253
|
+
}, {
|
|
1254
|
+
data?: {
|
|
1255
|
+
id: string;
|
|
1256
|
+
createdAt: string;
|
|
1257
|
+
content: string;
|
|
1258
|
+
updatedAt: string;
|
|
1259
|
+
memoryType: string;
|
|
1260
|
+
context?: string | undefined;
|
|
1261
|
+
topics?: string[] | undefined;
|
|
1262
|
+
timestamp?: string | undefined;
|
|
1263
|
+
eventTime?: string | undefined;
|
|
1264
|
+
validFrom?: string | undefined;
|
|
1265
|
+
validTo?: string | null | undefined;
|
|
1266
|
+
}[] | undefined;
|
|
1267
|
+
count?: number | undefined;
|
|
1268
|
+
}>>;
|
|
1269
|
+
/**
|
|
1270
|
+
*
|
|
1271
|
+
* @typedef {GetConversationTimelineOkResponse} getConversationTimelineOkResponse
|
|
1272
|
+
* @property {Memory[]}
|
|
1273
|
+
* @property {number}
|
|
1274
|
+
*/
|
|
1275
|
+
type GetConversationTimelineOkResponse = z.infer<typeof getConversationTimelineOkResponse>;
|
|
1276
|
+
|
|
1277
|
+
/**
|
|
1278
|
+
* The shape of the model inside the application code - what the users use
|
|
1279
|
+
*/
|
|
1280
|
+
declare const searchConversationsRequest: z.ZodLazy<z.ZodObject<{
|
|
1281
|
+
query: z.ZodString;
|
|
1282
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
1283
|
+
}, "strip", z.ZodTypeAny, {
|
|
1284
|
+
query: string;
|
|
1285
|
+
limit?: number | undefined;
|
|
1286
|
+
}, {
|
|
1287
|
+
query: string;
|
|
1288
|
+
limit?: number | undefined;
|
|
1289
|
+
}>>;
|
|
1290
|
+
/**
|
|
1291
|
+
*
|
|
1292
|
+
* @typedef {SearchConversationsRequest} searchConversationsRequest
|
|
1293
|
+
* @property {string}
|
|
1294
|
+
* @property {number}
|
|
1295
|
+
*/
|
|
1296
|
+
type SearchConversationsRequest = z.infer<typeof searchConversationsRequest>;
|
|
1297
|
+
|
|
1298
|
+
/**
|
|
1299
|
+
* The shape of the model inside the application code - what the users use
|
|
1300
|
+
*/
|
|
1301
|
+
declare const searchConversationsOkResponse: z.ZodLazy<z.ZodObject<{
|
|
1302
|
+
data: z.ZodOptional<z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
1303
|
+
id: z.ZodString;
|
|
1304
|
+
title: z.ZodString;
|
|
1305
|
+
summary: z.ZodNullable<z.ZodString>;
|
|
1306
|
+
createdAt: z.ZodString;
|
|
1307
|
+
updatedAt: z.ZodString;
|
|
1308
|
+
}, "strip", z.ZodTypeAny, {
|
|
1309
|
+
id: string;
|
|
1310
|
+
createdAt: string;
|
|
1311
|
+
updatedAt: string;
|
|
1312
|
+
title: string;
|
|
1313
|
+
summary: string | null;
|
|
1314
|
+
}, {
|
|
1315
|
+
id: string;
|
|
1316
|
+
createdAt: string;
|
|
1317
|
+
updatedAt: string;
|
|
1318
|
+
title: string;
|
|
1319
|
+
summary: string | null;
|
|
1320
|
+
}>>, "many">>;
|
|
1321
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
1322
|
+
}, "strip", z.ZodTypeAny, {
|
|
1323
|
+
data?: {
|
|
1324
|
+
id: string;
|
|
1325
|
+
createdAt: string;
|
|
1326
|
+
updatedAt: string;
|
|
1327
|
+
title: string;
|
|
1328
|
+
summary: string | null;
|
|
1329
|
+
}[] | undefined;
|
|
1330
|
+
count?: number | undefined;
|
|
1331
|
+
}, {
|
|
1332
|
+
data?: {
|
|
1333
|
+
id: string;
|
|
1334
|
+
createdAt: string;
|
|
1335
|
+
updatedAt: string;
|
|
1336
|
+
title: string;
|
|
1337
|
+
summary: string | null;
|
|
1338
|
+
}[] | undefined;
|
|
1339
|
+
count?: number | undefined;
|
|
1340
|
+
}>>;
|
|
1341
|
+
/**
|
|
1342
|
+
*
|
|
1343
|
+
* @typedef {SearchConversationsOkResponse} searchConversationsOkResponse
|
|
1344
|
+
* @property {Conversation[]}
|
|
1345
|
+
* @property {number}
|
|
1346
|
+
*/
|
|
1347
|
+
type SearchConversationsOkResponse = z.infer<typeof searchConversationsOkResponse>;
|
|
1348
|
+
|
|
1349
|
+
/**
|
|
1350
|
+
* The shape of the model inside the application code - what the users use
|
|
1351
|
+
*/
|
|
1352
|
+
declare const findConversationsByTopicRequest: z.ZodLazy<z.ZodObject<{
|
|
1353
|
+
topicId: z.ZodString;
|
|
1354
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
1355
|
+
}, "strip", z.ZodTypeAny, {
|
|
1356
|
+
topicId: string;
|
|
1357
|
+
limit?: number | undefined;
|
|
1358
|
+
}, {
|
|
1359
|
+
topicId: string;
|
|
1360
|
+
limit?: number | undefined;
|
|
1361
|
+
}>>;
|
|
1362
|
+
/**
|
|
1363
|
+
*
|
|
1364
|
+
* @typedef {FindConversationsByTopicRequest} findConversationsByTopicRequest
|
|
1365
|
+
* @property {string}
|
|
1366
|
+
* @property {number}
|
|
1367
|
+
*/
|
|
1368
|
+
type FindConversationsByTopicRequest = z.infer<typeof findConversationsByTopicRequest>;
|
|
1369
|
+
|
|
1370
|
+
/**
|
|
1371
|
+
* The shape of the model inside the application code - what the users use
|
|
1372
|
+
*/
|
|
1373
|
+
declare const findConversationsByTopicOkResponse: z.ZodLazy<z.ZodObject<{
|
|
1374
|
+
data: z.ZodOptional<z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
1375
|
+
id: z.ZodString;
|
|
1376
|
+
title: z.ZodString;
|
|
1377
|
+
summary: z.ZodNullable<z.ZodString>;
|
|
1378
|
+
createdAt: z.ZodString;
|
|
1379
|
+
updatedAt: z.ZodString;
|
|
1380
|
+
}, "strip", z.ZodTypeAny, {
|
|
1381
|
+
id: string;
|
|
1382
|
+
createdAt: string;
|
|
1383
|
+
updatedAt: string;
|
|
1384
|
+
title: string;
|
|
1385
|
+
summary: string | null;
|
|
1386
|
+
}, {
|
|
1387
|
+
id: string;
|
|
1388
|
+
createdAt: string;
|
|
1389
|
+
updatedAt: string;
|
|
1390
|
+
title: string;
|
|
1391
|
+
summary: string | null;
|
|
1392
|
+
}>>, "many">>;
|
|
1393
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
1394
|
+
metadata: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
1395
|
+
topicId: z.ZodOptional<z.ZodString>;
|
|
1396
|
+
}, "strip", z.ZodTypeAny, {
|
|
1397
|
+
topicId?: string | undefined;
|
|
1398
|
+
}, {
|
|
1399
|
+
topicId?: string | undefined;
|
|
1400
|
+
}>>>;
|
|
1401
|
+
}, "strip", z.ZodTypeAny, {
|
|
1402
|
+
data?: {
|
|
1403
|
+
id: string;
|
|
1404
|
+
createdAt: string;
|
|
1405
|
+
updatedAt: string;
|
|
1406
|
+
title: string;
|
|
1407
|
+
summary: string | null;
|
|
1408
|
+
}[] | undefined;
|
|
1409
|
+
count?: number | undefined;
|
|
1410
|
+
metadata?: {
|
|
1411
|
+
topicId?: string | undefined;
|
|
1412
|
+
} | undefined;
|
|
1413
|
+
}, {
|
|
1414
|
+
data?: {
|
|
1415
|
+
id: string;
|
|
1416
|
+
createdAt: string;
|
|
1417
|
+
updatedAt: string;
|
|
1418
|
+
title: string;
|
|
1419
|
+
summary: string | null;
|
|
1420
|
+
}[] | undefined;
|
|
1421
|
+
count?: number | undefined;
|
|
1422
|
+
metadata?: {
|
|
1423
|
+
topicId?: string | undefined;
|
|
1424
|
+
} | undefined;
|
|
1425
|
+
}>>;
|
|
1426
|
+
/**
|
|
1427
|
+
*
|
|
1428
|
+
* @typedef {FindConversationsByTopicOkResponse} findConversationsByTopicOkResponse
|
|
1429
|
+
* @property {Conversation[]}
|
|
1430
|
+
* @property {number}
|
|
1431
|
+
* @property {FindConversationsByTopicOkResponseMetadata}
|
|
1432
|
+
*/
|
|
1433
|
+
type FindConversationsByTopicOkResponse = z.infer<typeof findConversationsByTopicOkResponse>;
|
|
1434
|
+
|
|
1435
|
+
declare class ConversationsService extends BaseService {
|
|
1436
|
+
/**
|
|
1437
|
+
* List all conversations for the authenticated user with pagination
|
|
1438
|
+
* @param {number} [params.limit] - Maximum number of conversations to return
|
|
1439
|
+
* @param {number} [params.offset] - Number of conversations to skip
|
|
1440
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
1441
|
+
* @returns {Promise<HttpResponse<ListConversationsOkResponse>>} - List of conversations retrieved successfully
|
|
1442
|
+
*/
|
|
1443
|
+
listConversations(params?: ListConversationsParams, requestConfig?: RequestConfig): Promise<HttpResponse<ListConversationsOkResponse>>;
|
|
1444
|
+
/**
|
|
1445
|
+
* Create a new conversation for the authenticated user
|
|
1446
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
1447
|
+
* @returns {Promise<HttpResponse<CreateConversationCreatedResponse>>} - Conversation created successfully
|
|
1448
|
+
*/
|
|
1449
|
+
createConversation(body: CreateConversationRequest, requestConfig?: RequestConfig): Promise<HttpResponse<CreateConversationCreatedResponse>>;
|
|
1450
|
+
/**
|
|
1451
|
+
* Retrieve a conversation summary by its ID
|
|
1452
|
+
* @param {string} conversationId - The conversation ID
|
|
1453
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
1454
|
+
* @returns {Promise<HttpResponse<GetConversationSummaryOkResponse>>} - Conversation retrieved successfully
|
|
1455
|
+
*/
|
|
1456
|
+
getConversationSummary(conversationId: string, requestConfig?: RequestConfig): Promise<HttpResponse<GetConversationSummaryOkResponse>>;
|
|
1457
|
+
/**
|
|
1458
|
+
* Get all memories in a conversation in chronological order
|
|
1459
|
+
* @param {string} conversationId - The conversation ID
|
|
1460
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
1461
|
+
* @returns {Promise<HttpResponse<GetConversationTimelineOkResponse>>} - Timeline retrieved successfully
|
|
1462
|
+
*/
|
|
1463
|
+
getConversationTimeline(conversationId: string, requestConfig?: RequestConfig): Promise<HttpResponse<GetConversationTimelineOkResponse>>;
|
|
1464
|
+
/**
|
|
1465
|
+
* Search conversations by query string
|
|
1466
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
1467
|
+
* @returns {Promise<HttpResponse<SearchConversationsOkResponse>>} - Search results retrieved successfully
|
|
1468
|
+
*/
|
|
1469
|
+
searchConversations(body: SearchConversationsRequest, requestConfig?: RequestConfig): Promise<HttpResponse<SearchConversationsOkResponse>>;
|
|
1470
|
+
/**
|
|
1471
|
+
* Find conversations that contain a specific topic
|
|
1472
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
1473
|
+
* @returns {Promise<HttpResponse<FindConversationsByTopicOkResponse>>} - Conversations retrieved successfully
|
|
1474
|
+
*/
|
|
1475
|
+
findConversationsByTopic(body: FindConversationsByTopicRequest, requestConfig?: RequestConfig): Promise<HttpResponse<FindConversationsByTopicOkResponse>>;
|
|
1476
|
+
}
|
|
1477
|
+
|
|
1478
|
+
/**
|
|
1479
|
+
* The shape of the model inside the application code - what the users use
|
|
1480
|
+
*/
|
|
1481
|
+
declare const conversation: z.ZodLazy<z.ZodObject<{
|
|
1482
|
+
id: z.ZodString;
|
|
1483
|
+
title: z.ZodString;
|
|
1484
|
+
summary: z.ZodNullable<z.ZodString>;
|
|
1485
|
+
createdAt: z.ZodString;
|
|
1486
|
+
updatedAt: z.ZodString;
|
|
1487
|
+
}, "strip", z.ZodTypeAny, {
|
|
1488
|
+
id: string;
|
|
1489
|
+
createdAt: string;
|
|
1490
|
+
updatedAt: string;
|
|
1491
|
+
title: string;
|
|
1492
|
+
summary: string | null;
|
|
1493
|
+
}, {
|
|
1494
|
+
id: string;
|
|
1495
|
+
createdAt: string;
|
|
1496
|
+
updatedAt: string;
|
|
1497
|
+
title: string;
|
|
1498
|
+
summary: string | null;
|
|
1499
|
+
}>>;
|
|
1500
|
+
/**
|
|
1501
|
+
*
|
|
1502
|
+
* @typedef {Conversation} conversation
|
|
1503
|
+
* @property {string} - Unique conversation identifier
|
|
1504
|
+
* @property {string} - Conversation title
|
|
1505
|
+
* @property {string} - Conversation summary
|
|
1506
|
+
* @property {string} - Creation timestamp
|
|
1507
|
+
* @property {string} - Last update timestamp
|
|
1508
|
+
*/
|
|
1509
|
+
type Conversation = z.infer<typeof conversation>;
|
|
1510
|
+
|
|
1511
|
+
/**
|
|
1512
|
+
* The shape of the model inside the application code - what the users use
|
|
1513
|
+
*/
|
|
1514
|
+
declare const listConversationsOkResponsePagination: z.ZodLazy<z.ZodObject<{
|
|
1515
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
1516
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
1517
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
1518
|
+
}, "strip", z.ZodTypeAny, {
|
|
1519
|
+
limit?: number | undefined;
|
|
1520
|
+
offset?: number | undefined;
|
|
1521
|
+
count?: number | undefined;
|
|
1522
|
+
}, {
|
|
1523
|
+
limit?: number | undefined;
|
|
1524
|
+
offset?: number | undefined;
|
|
1525
|
+
count?: number | undefined;
|
|
1526
|
+
}>>;
|
|
1527
|
+
/**
|
|
1528
|
+
*
|
|
1529
|
+
* @typedef {ListConversationsOkResponsePagination} listConversationsOkResponsePagination
|
|
1530
|
+
* @property {number}
|
|
1531
|
+
* @property {number}
|
|
1532
|
+
* @property {number}
|
|
1533
|
+
*/
|
|
1534
|
+
type ListConversationsOkResponsePagination = z.infer<typeof listConversationsOkResponsePagination>;
|
|
1535
|
+
|
|
1536
|
+
declare enum MemoryMemoryType {
|
|
1537
|
+
EPISODIC = "episodic",
|
|
1538
|
+
SEMANTIC = "semantic",
|
|
1539
|
+
PROCEDURAL = "procedural"
|
|
1540
|
+
}
|
|
1541
|
+
|
|
1542
|
+
/**
|
|
1543
|
+
* The shape of the model inside the application code - what the users use
|
|
1544
|
+
*/
|
|
1545
|
+
declare const findConversationsByTopicOkResponseMetadata: z.ZodLazy<z.ZodObject<{
|
|
1546
|
+
topicId: z.ZodOptional<z.ZodString>;
|
|
1547
|
+
}, "strip", z.ZodTypeAny, {
|
|
1548
|
+
topicId?: string | undefined;
|
|
1549
|
+
}, {
|
|
1550
|
+
topicId?: string | undefined;
|
|
1551
|
+
}>>;
|
|
1552
|
+
/**
|
|
1553
|
+
*
|
|
1554
|
+
* @typedef {FindConversationsByTopicOkResponseMetadata} findConversationsByTopicOkResponseMetadata
|
|
1555
|
+
* @property {string}
|
|
1556
|
+
*/
|
|
1557
|
+
type FindConversationsByTopicOkResponseMetadata = z.infer<typeof findConversationsByTopicOkResponseMetadata>;
|
|
1558
|
+
|
|
1559
|
+
/**
|
|
1560
|
+
* The shape of the model inside the application code - what the users use
|
|
1561
|
+
*/
|
|
1562
|
+
declare const listFactsOkResponse: z.ZodLazy<z.ZodObject<{
|
|
1563
|
+
data: z.ZodOptional<z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
1564
|
+
id: z.ZodString;
|
|
1565
|
+
userId: z.ZodString;
|
|
1566
|
+
name: z.ZodString;
|
|
1567
|
+
type: z.ZodString;
|
|
1568
|
+
description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1569
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
1570
|
+
createdAt: z.ZodString;
|
|
1571
|
+
updatedAt: z.ZodString;
|
|
1572
|
+
}, "strip", z.ZodTypeAny, {
|
|
1573
|
+
type: string;
|
|
1574
|
+
id: string;
|
|
1575
|
+
createdAt: string;
|
|
1576
|
+
userId: string;
|
|
1577
|
+
name: string;
|
|
1578
|
+
updatedAt: string;
|
|
1579
|
+
description?: string | null | undefined;
|
|
1580
|
+
confidence?: number | undefined;
|
|
1581
|
+
}, {
|
|
1582
|
+
type: string;
|
|
1583
|
+
id: string;
|
|
1584
|
+
createdAt: string;
|
|
1585
|
+
userId: string;
|
|
1586
|
+
name: string;
|
|
1587
|
+
updatedAt: string;
|
|
1588
|
+
description?: string | null | undefined;
|
|
1589
|
+
confidence?: number | undefined;
|
|
1590
|
+
}>>, "many">>;
|
|
1591
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
1592
|
+
}, "strip", z.ZodTypeAny, {
|
|
1593
|
+
data?: {
|
|
1594
|
+
type: string;
|
|
1595
|
+
id: string;
|
|
1596
|
+
createdAt: string;
|
|
1597
|
+
userId: string;
|
|
1598
|
+
name: string;
|
|
1599
|
+
updatedAt: string;
|
|
1600
|
+
description?: string | null | undefined;
|
|
1601
|
+
confidence?: number | undefined;
|
|
1602
|
+
}[] | undefined;
|
|
1603
|
+
count?: number | undefined;
|
|
1604
|
+
}, {
|
|
1605
|
+
data?: {
|
|
1606
|
+
type: string;
|
|
1607
|
+
id: string;
|
|
1608
|
+
createdAt: string;
|
|
1609
|
+
userId: string;
|
|
1610
|
+
name: string;
|
|
1611
|
+
updatedAt: string;
|
|
1612
|
+
description?: string | null | undefined;
|
|
1613
|
+
confidence?: number | undefined;
|
|
1614
|
+
}[] | undefined;
|
|
1615
|
+
count?: number | undefined;
|
|
1616
|
+
}>>;
|
|
1617
|
+
/**
|
|
1618
|
+
*
|
|
1619
|
+
* @typedef {ListFactsOkResponse} listFactsOkResponse
|
|
1620
|
+
* @property {Fact[]}
|
|
1621
|
+
* @property {number}
|
|
1622
|
+
*/
|
|
1623
|
+
type ListFactsOkResponse = z.infer<typeof listFactsOkResponse>;
|
|
1624
|
+
|
|
1625
|
+
interface ListFactsParams {
|
|
1626
|
+
limit?: number;
|
|
1627
|
+
offset?: number;
|
|
1628
|
+
}
|
|
1629
|
+
|
|
1630
|
+
/**
|
|
1631
|
+
* The shape of the model inside the application code - what the users use
|
|
1632
|
+
*/
|
|
1633
|
+
declare const createFactRequest: z.ZodLazy<z.ZodObject<{
|
|
1634
|
+
subject: z.ZodString;
|
|
1635
|
+
predicate: z.ZodString;
|
|
1636
|
+
object: z.ZodString;
|
|
1637
|
+
}, "strip", z.ZodTypeAny, {
|
|
1638
|
+
object: string;
|
|
1639
|
+
subject: string;
|
|
1640
|
+
predicate: string;
|
|
1641
|
+
}, {
|
|
1642
|
+
object: string;
|
|
1643
|
+
subject: string;
|
|
1644
|
+
predicate: string;
|
|
1645
|
+
}>>;
|
|
1646
|
+
/**
|
|
1647
|
+
*
|
|
1648
|
+
* @typedef {CreateFactRequest} createFactRequest
|
|
1649
|
+
* @property {string} - Fact subject (entity name)
|
|
1650
|
+
* @property {string} - Relationship type
|
|
1651
|
+
* @property {string} - Fact object (related entity)
|
|
1652
|
+
*/
|
|
1653
|
+
type CreateFactRequest = z.infer<typeof createFactRequest>;
|
|
1654
|
+
|
|
1655
|
+
/**
|
|
1656
|
+
* The shape of the model inside the application code - what the users use
|
|
1657
|
+
*/
|
|
1658
|
+
declare const createFactCreatedResponse: z.ZodLazy<z.ZodObject<{
|
|
1659
|
+
data: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
1660
|
+
id: z.ZodString;
|
|
1661
|
+
userId: z.ZodString;
|
|
1662
|
+
name: z.ZodString;
|
|
1663
|
+
type: z.ZodString;
|
|
1664
|
+
description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1665
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
1666
|
+
createdAt: z.ZodString;
|
|
1667
|
+
updatedAt: z.ZodString;
|
|
1668
|
+
}, "strip", z.ZodTypeAny, {
|
|
1669
|
+
type: string;
|
|
1670
|
+
id: string;
|
|
1671
|
+
createdAt: string;
|
|
1672
|
+
userId: string;
|
|
1673
|
+
name: string;
|
|
1674
|
+
updatedAt: string;
|
|
1675
|
+
description?: string | null | undefined;
|
|
1676
|
+
confidence?: number | undefined;
|
|
1677
|
+
}, {
|
|
1678
|
+
type: string;
|
|
1679
|
+
id: string;
|
|
1680
|
+
createdAt: string;
|
|
1681
|
+
userId: string;
|
|
1682
|
+
name: string;
|
|
1683
|
+
updatedAt: string;
|
|
1684
|
+
description?: string | null | undefined;
|
|
1685
|
+
confidence?: number | undefined;
|
|
1686
|
+
}>>>;
|
|
1687
|
+
}, "strip", z.ZodTypeAny, {
|
|
1688
|
+
data?: {
|
|
1689
|
+
type: string;
|
|
1690
|
+
id: string;
|
|
1691
|
+
createdAt: string;
|
|
1692
|
+
userId: string;
|
|
1693
|
+
name: string;
|
|
1694
|
+
updatedAt: string;
|
|
1695
|
+
description?: string | null | undefined;
|
|
1696
|
+
confidence?: number | undefined;
|
|
1697
|
+
} | undefined;
|
|
1698
|
+
}, {
|
|
1699
|
+
data?: {
|
|
1700
|
+
type: string;
|
|
1701
|
+
id: string;
|
|
1702
|
+
createdAt: string;
|
|
1703
|
+
userId: string;
|
|
1704
|
+
name: string;
|
|
1705
|
+
updatedAt: string;
|
|
1706
|
+
description?: string | null | undefined;
|
|
1707
|
+
confidence?: number | undefined;
|
|
1708
|
+
} | undefined;
|
|
1709
|
+
}>>;
|
|
1710
|
+
/**
|
|
1711
|
+
*
|
|
1712
|
+
* @typedef {CreateFactCreatedResponse} createFactCreatedResponse
|
|
1713
|
+
* @property {Fact}
|
|
1714
|
+
*/
|
|
1715
|
+
type CreateFactCreatedResponse = z.infer<typeof createFactCreatedResponse>;
|
|
1716
|
+
|
|
1717
|
+
/**
|
|
1718
|
+
* The shape of the model inside the application code - what the users use
|
|
1719
|
+
*/
|
|
1720
|
+
declare const getFactByIdOkResponse: z.ZodLazy<z.ZodObject<{
|
|
1721
|
+
data: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
1722
|
+
id: z.ZodString;
|
|
1723
|
+
userId: z.ZodString;
|
|
1724
|
+
name: z.ZodString;
|
|
1725
|
+
type: z.ZodString;
|
|
1726
|
+
description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1727
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
1728
|
+
createdAt: z.ZodString;
|
|
1729
|
+
updatedAt: z.ZodString;
|
|
1730
|
+
}, "strip", z.ZodTypeAny, {
|
|
1731
|
+
type: string;
|
|
1732
|
+
id: string;
|
|
1733
|
+
createdAt: string;
|
|
1734
|
+
userId: string;
|
|
1735
|
+
name: string;
|
|
1736
|
+
updatedAt: string;
|
|
1737
|
+
description?: string | null | undefined;
|
|
1738
|
+
confidence?: number | undefined;
|
|
1739
|
+
}, {
|
|
1740
|
+
type: string;
|
|
1741
|
+
id: string;
|
|
1742
|
+
createdAt: string;
|
|
1743
|
+
userId: string;
|
|
1744
|
+
name: string;
|
|
1745
|
+
updatedAt: string;
|
|
1746
|
+
description?: string | null | undefined;
|
|
1747
|
+
confidence?: number | undefined;
|
|
1748
|
+
}>>>;
|
|
1749
|
+
}, "strip", z.ZodTypeAny, {
|
|
1750
|
+
data?: {
|
|
1751
|
+
type: string;
|
|
1752
|
+
id: string;
|
|
1753
|
+
createdAt: string;
|
|
1754
|
+
userId: string;
|
|
1755
|
+
name: string;
|
|
1756
|
+
updatedAt: string;
|
|
1757
|
+
description?: string | null | undefined;
|
|
1758
|
+
confidence?: number | undefined;
|
|
1759
|
+
} | undefined;
|
|
1760
|
+
}, {
|
|
1761
|
+
data?: {
|
|
1762
|
+
type: string;
|
|
1763
|
+
id: string;
|
|
1764
|
+
createdAt: string;
|
|
1765
|
+
userId: string;
|
|
1766
|
+
name: string;
|
|
1767
|
+
updatedAt: string;
|
|
1768
|
+
description?: string | null | undefined;
|
|
1769
|
+
confidence?: number | undefined;
|
|
1770
|
+
} | undefined;
|
|
1771
|
+
}>>;
|
|
1772
|
+
/**
|
|
1773
|
+
*
|
|
1774
|
+
* @typedef {GetFactByIdOkResponse} getFactByIdOkResponse
|
|
1775
|
+
* @property {Fact}
|
|
1776
|
+
*/
|
|
1777
|
+
type GetFactByIdOkResponse = z.infer<typeof getFactByIdOkResponse>;
|
|
1778
|
+
|
|
1779
|
+
/**
|
|
1780
|
+
* The shape of the model inside the application code - what the users use
|
|
1781
|
+
*/
|
|
1782
|
+
declare const updateFactRequest: z.ZodLazy<z.ZodObject<{
|
|
1783
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
1784
|
+
predicate: z.ZodOptional<z.ZodString>;
|
|
1785
|
+
object: z.ZodOptional<z.ZodString>;
|
|
1786
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
1787
|
+
}, "strip", z.ZodTypeAny, {
|
|
1788
|
+
subject?: string | undefined;
|
|
1789
|
+
predicate?: string | undefined;
|
|
1790
|
+
object?: string | undefined;
|
|
1791
|
+
confidence?: number | undefined;
|
|
1792
|
+
}, {
|
|
1793
|
+
subject?: string | undefined;
|
|
1794
|
+
predicate?: string | undefined;
|
|
1795
|
+
object?: string | undefined;
|
|
1796
|
+
confidence?: number | undefined;
|
|
1797
|
+
}>>;
|
|
1798
|
+
/**
|
|
1799
|
+
*
|
|
1800
|
+
* @typedef {UpdateFactRequest} updateFactRequest
|
|
1801
|
+
* @property {string} - Fact subject (entity name)
|
|
1802
|
+
* @property {string} - Relationship type
|
|
1803
|
+
* @property {string} - Fact object (related entity)
|
|
1804
|
+
* @property {number} - Confidence score (0-1)
|
|
1805
|
+
*/
|
|
1806
|
+
type UpdateFactRequest = z.infer<typeof updateFactRequest>;
|
|
1807
|
+
|
|
1808
|
+
/**
|
|
1809
|
+
* The shape of the model inside the application code - what the users use
|
|
1810
|
+
*/
|
|
1811
|
+
declare const updateFactOkResponse: z.ZodLazy<z.ZodObject<{
|
|
1812
|
+
data: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
1813
|
+
id: z.ZodString;
|
|
1814
|
+
userId: z.ZodString;
|
|
1815
|
+
name: z.ZodString;
|
|
1816
|
+
type: z.ZodString;
|
|
1817
|
+
description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1818
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
1819
|
+
createdAt: z.ZodString;
|
|
1820
|
+
updatedAt: z.ZodString;
|
|
1821
|
+
}, "strip", z.ZodTypeAny, {
|
|
1822
|
+
type: string;
|
|
1823
|
+
id: string;
|
|
1824
|
+
createdAt: string;
|
|
1825
|
+
userId: string;
|
|
1826
|
+
name: string;
|
|
1827
|
+
updatedAt: string;
|
|
1828
|
+
description?: string | null | undefined;
|
|
1829
|
+
confidence?: number | undefined;
|
|
1830
|
+
}, {
|
|
1831
|
+
type: string;
|
|
1832
|
+
id: string;
|
|
1833
|
+
createdAt: string;
|
|
1834
|
+
userId: string;
|
|
1835
|
+
name: string;
|
|
1836
|
+
updatedAt: string;
|
|
1837
|
+
description?: string | null | undefined;
|
|
1838
|
+
confidence?: number | undefined;
|
|
1839
|
+
}>>>;
|
|
1840
|
+
}, "strip", z.ZodTypeAny, {
|
|
1841
|
+
data?: {
|
|
1842
|
+
type: string;
|
|
1843
|
+
id: string;
|
|
1844
|
+
createdAt: string;
|
|
1845
|
+
userId: string;
|
|
1846
|
+
name: string;
|
|
1847
|
+
updatedAt: string;
|
|
1848
|
+
description?: string | null | undefined;
|
|
1849
|
+
confidence?: number | undefined;
|
|
1850
|
+
} | undefined;
|
|
1851
|
+
}, {
|
|
1852
|
+
data?: {
|
|
1853
|
+
type: string;
|
|
1854
|
+
id: string;
|
|
1855
|
+
createdAt: string;
|
|
1856
|
+
userId: string;
|
|
1857
|
+
name: string;
|
|
1858
|
+
updatedAt: string;
|
|
1859
|
+
description?: string | null | undefined;
|
|
1860
|
+
confidence?: number | undefined;
|
|
1861
|
+
} | undefined;
|
|
1862
|
+
}>>;
|
|
1863
|
+
/**
|
|
1864
|
+
*
|
|
1865
|
+
* @typedef {UpdateFactOkResponse} updateFactOkResponse
|
|
1866
|
+
* @property {Fact}
|
|
1867
|
+
*/
|
|
1868
|
+
type UpdateFactOkResponse = z.infer<typeof updateFactOkResponse>;
|
|
1869
|
+
|
|
1870
|
+
/**
|
|
1871
|
+
* The shape of the model inside the application code - what the users use
|
|
1872
|
+
*/
|
|
1873
|
+
declare const factSearchRequest: z.ZodLazy<z.ZodObject<{
|
|
1874
|
+
query: z.ZodString;
|
|
1875
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
1876
|
+
}, "strip", z.ZodTypeAny, {
|
|
1877
|
+
query: string;
|
|
1878
|
+
limit?: number | undefined;
|
|
1879
|
+
}, {
|
|
1880
|
+
query: string;
|
|
1881
|
+
limit?: number | undefined;
|
|
1882
|
+
}>>;
|
|
1883
|
+
/**
|
|
1884
|
+
*
|
|
1885
|
+
* @typedef {FactSearchRequest} factSearchRequest
|
|
1886
|
+
* @property {string} - Search query string
|
|
1887
|
+
* @property {number} - Maximum number of results to return
|
|
1888
|
+
*/
|
|
1889
|
+
type FactSearchRequest = z.infer<typeof factSearchRequest>;
|
|
1890
|
+
|
|
1891
|
+
/**
|
|
1892
|
+
* The shape of the model inside the application code - what the users use
|
|
1893
|
+
*/
|
|
1894
|
+
declare const searchFactsOkResponse: z.ZodLazy<z.ZodObject<{
|
|
1895
|
+
data: z.ZodOptional<z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
1896
|
+
id: z.ZodString;
|
|
1897
|
+
userId: z.ZodString;
|
|
1898
|
+
name: z.ZodString;
|
|
1899
|
+
type: z.ZodString;
|
|
1900
|
+
description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1901
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
1902
|
+
createdAt: z.ZodString;
|
|
1903
|
+
updatedAt: z.ZodString;
|
|
1904
|
+
}, "strip", z.ZodTypeAny, {
|
|
1905
|
+
type: string;
|
|
1906
|
+
id: string;
|
|
1907
|
+
createdAt: string;
|
|
1908
|
+
userId: string;
|
|
1909
|
+
name: string;
|
|
1910
|
+
updatedAt: string;
|
|
1911
|
+
description?: string | null | undefined;
|
|
1912
|
+
confidence?: number | undefined;
|
|
1913
|
+
}, {
|
|
1914
|
+
type: string;
|
|
1915
|
+
id: string;
|
|
1916
|
+
createdAt: string;
|
|
1917
|
+
userId: string;
|
|
1918
|
+
name: string;
|
|
1919
|
+
updatedAt: string;
|
|
1920
|
+
description?: string | null | undefined;
|
|
1921
|
+
confidence?: number | undefined;
|
|
1922
|
+
}>>, "many">>;
|
|
1923
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
1924
|
+
metadata: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
1925
|
+
query: z.ZodOptional<z.ZodString>;
|
|
1926
|
+
}, "strip", z.ZodTypeAny, {
|
|
1927
|
+
query?: string | undefined;
|
|
1928
|
+
}, {
|
|
1929
|
+
query?: string | undefined;
|
|
1930
|
+
}>>>;
|
|
1931
|
+
}, "strip", z.ZodTypeAny, {
|
|
1932
|
+
data?: {
|
|
1933
|
+
type: string;
|
|
1934
|
+
id: string;
|
|
1935
|
+
createdAt: string;
|
|
1936
|
+
userId: string;
|
|
1937
|
+
name: string;
|
|
1938
|
+
updatedAt: string;
|
|
1939
|
+
description?: string | null | undefined;
|
|
1940
|
+
confidence?: number | undefined;
|
|
1941
|
+
}[] | undefined;
|
|
1942
|
+
count?: number | undefined;
|
|
1943
|
+
metadata?: {
|
|
1944
|
+
query?: string | undefined;
|
|
1945
|
+
} | undefined;
|
|
1946
|
+
}, {
|
|
1947
|
+
data?: {
|
|
1948
|
+
type: string;
|
|
1949
|
+
id: string;
|
|
1950
|
+
createdAt: string;
|
|
1951
|
+
userId: string;
|
|
1952
|
+
name: string;
|
|
1953
|
+
updatedAt: string;
|
|
1954
|
+
description?: string | null | undefined;
|
|
1955
|
+
confidence?: number | undefined;
|
|
1956
|
+
}[] | undefined;
|
|
1957
|
+
count?: number | undefined;
|
|
1958
|
+
metadata?: {
|
|
1959
|
+
query?: string | undefined;
|
|
1960
|
+
} | undefined;
|
|
1961
|
+
}>>;
|
|
1962
|
+
/**
|
|
1963
|
+
*
|
|
1964
|
+
* @typedef {SearchFactsOkResponse} searchFactsOkResponse
|
|
1965
|
+
* @property {Fact[]}
|
|
1966
|
+
* @property {number} - Total number of results
|
|
1967
|
+
* @property {SearchFactsOkResponseMetadata} - Search metadata
|
|
1968
|
+
*/
|
|
1969
|
+
type SearchFactsOkResponse = z.infer<typeof searchFactsOkResponse>;
|
|
1970
|
+
|
|
1971
|
+
declare class FactsService extends BaseService {
|
|
1972
|
+
/**
|
|
1973
|
+
* List all facts for the authenticated user
|
|
1974
|
+
* @param {number} [params.limit] - Maximum number of facts to return
|
|
1975
|
+
* @param {number} [params.offset] - Number of facts to skip
|
|
1976
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
1977
|
+
* @returns {Promise<HttpResponse<ListFactsOkResponse>>} - OK
|
|
1978
|
+
*/
|
|
1979
|
+
listFacts(params?: ListFactsParams, requestConfig?: RequestConfig): Promise<HttpResponse<ListFactsOkResponse>>;
|
|
1980
|
+
/**
|
|
1981
|
+
* Create a new semantic fact
|
|
1982
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
1983
|
+
* @returns {Promise<HttpResponse<CreateFactCreatedResponse>>} - Created
|
|
1984
|
+
*/
|
|
1985
|
+
createFact(body: CreateFactRequest, requestConfig?: RequestConfig): Promise<HttpResponse<CreateFactCreatedResponse>>;
|
|
1986
|
+
/**
|
|
1987
|
+
* Retrieve a specific fact by its ID
|
|
1988
|
+
* @param {string} id - The fact ID
|
|
1989
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
1990
|
+
* @returns {Promise<HttpResponse<GetFactByIdOkResponse>>} - OK
|
|
1991
|
+
*/
|
|
1992
|
+
getFactById(id: string, requestConfig?: RequestConfig): Promise<HttpResponse<GetFactByIdOkResponse>>;
|
|
1993
|
+
/**
|
|
1994
|
+
* Update an existing fact completely
|
|
1995
|
+
* @param {string} id - The fact ID
|
|
1996
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
1997
|
+
* @returns {Promise<HttpResponse<UpdateFactOkResponse>>} - OK
|
|
1998
|
+
*/
|
|
1999
|
+
updateFact(id: string, body: UpdateFactRequest, requestConfig?: RequestConfig): Promise<HttpResponse<UpdateFactOkResponse>>;
|
|
2000
|
+
/**
|
|
2001
|
+
* Delete a fact by its ID
|
|
2002
|
+
* @param {string} id - The fact ID
|
|
2003
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
2004
|
+
* @returns {Promise<HttpResponse<any>>} - No Content
|
|
2005
|
+
*/
|
|
2006
|
+
deleteFact(id: string, requestConfig?: RequestConfig): Promise<HttpResponse<void>>;
|
|
2007
|
+
/**
|
|
2008
|
+
* Search semantic facts by query string
|
|
2009
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
2010
|
+
* @returns {Promise<HttpResponse<SearchFactsOkResponse>>} - OK
|
|
2011
|
+
*/
|
|
2012
|
+
searchFacts(body: FactSearchRequest, requestConfig?: RequestConfig): Promise<HttpResponse<SearchFactsOkResponse>>;
|
|
2013
|
+
}
|
|
2014
|
+
|
|
2015
|
+
/**
|
|
2016
|
+
* The shape of the model inside the application code - what the users use
|
|
2017
|
+
*/
|
|
2018
|
+
declare const fact: z.ZodLazy<z.ZodObject<{
|
|
2019
|
+
id: z.ZodString;
|
|
2020
|
+
userId: z.ZodString;
|
|
2021
|
+
name: z.ZodString;
|
|
2022
|
+
type: z.ZodString;
|
|
2023
|
+
description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2024
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
2025
|
+
createdAt: z.ZodString;
|
|
2026
|
+
updatedAt: z.ZodString;
|
|
2027
|
+
}, "strip", z.ZodTypeAny, {
|
|
2028
|
+
type: string;
|
|
2029
|
+
id: string;
|
|
2030
|
+
createdAt: string;
|
|
2031
|
+
userId: string;
|
|
2032
|
+
name: string;
|
|
2033
|
+
updatedAt: string;
|
|
2034
|
+
description?: string | null | undefined;
|
|
2035
|
+
confidence?: number | undefined;
|
|
2036
|
+
}, {
|
|
2037
|
+
type: string;
|
|
2038
|
+
id: string;
|
|
2039
|
+
createdAt: string;
|
|
2040
|
+
userId: string;
|
|
2041
|
+
name: string;
|
|
2042
|
+
updatedAt: string;
|
|
2043
|
+
description?: string | null | undefined;
|
|
2044
|
+
confidence?: number | undefined;
|
|
2045
|
+
}>>;
|
|
2046
|
+
/**
|
|
2047
|
+
*
|
|
2048
|
+
* @typedef {Fact} fact
|
|
2049
|
+
* @property {string} - Unique identifier for the fact
|
|
2050
|
+
* @property {string} - User ID who owns this fact
|
|
2051
|
+
* @property {string} - Fact name/label
|
|
2052
|
+
* @property {string} - Entity type
|
|
2053
|
+
* @property {string} - Fact description
|
|
2054
|
+
* @property {number} - Confidence score (0-1)
|
|
2055
|
+
* @property {string} - Creation timestamp
|
|
2056
|
+
* @property {string} - Last update timestamp
|
|
2057
|
+
*/
|
|
2058
|
+
type Fact = z.infer<typeof fact>;
|
|
2059
|
+
|
|
2060
|
+
/**
|
|
2061
|
+
* The shape of the model inside the application code - what the users use
|
|
2062
|
+
*/
|
|
2063
|
+
declare const searchFactsOkResponseMetadata: z.ZodLazy<z.ZodObject<{
|
|
2064
|
+
query: z.ZodOptional<z.ZodString>;
|
|
2065
|
+
}, "strip", z.ZodTypeAny, {
|
|
2066
|
+
query?: string | undefined;
|
|
2067
|
+
}, {
|
|
2068
|
+
query?: string | undefined;
|
|
2069
|
+
}>>;
|
|
2070
|
+
/**
|
|
2071
|
+
* Search metadata
|
|
2072
|
+
* @typedef {SearchFactsOkResponseMetadata} searchFactsOkResponseMetadata - Search metadata - Search metadata
|
|
2073
|
+
* @property {string} - The search query that was executed
|
|
2074
|
+
*/
|
|
2075
|
+
type SearchFactsOkResponseMetadata = z.infer<typeof searchFactsOkResponseMetadata>;
|
|
2076
|
+
|
|
2077
|
+
interface ExplainGraphRagQueryParams {
|
|
2078
|
+
queryId: string;
|
|
2079
|
+
}
|
|
2080
|
+
|
|
2081
|
+
/**
|
|
2082
|
+
* The shape of the model inside the application code - what the users use
|
|
2083
|
+
*/
|
|
2084
|
+
declare const queryCommunitiesRequest: z.ZodLazy<z.ZodObject<{
|
|
2085
|
+
query: z.ZodString;
|
|
2086
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
2087
|
+
}, "strip", z.ZodTypeAny, {
|
|
2088
|
+
query: string;
|
|
2089
|
+
limit?: number | undefined;
|
|
2090
|
+
}, {
|
|
2091
|
+
query: string;
|
|
2092
|
+
limit?: number | undefined;
|
|
2093
|
+
}>>;
|
|
2094
|
+
/**
|
|
2095
|
+
*
|
|
2096
|
+
* @typedef {QueryCommunitiesRequest} queryCommunitiesRequest
|
|
2097
|
+
* @property {string}
|
|
2098
|
+
* @property {number}
|
|
2099
|
+
*/
|
|
2100
|
+
type QueryCommunitiesRequest = z.infer<typeof queryCommunitiesRequest>;
|
|
2101
|
+
|
|
2102
|
+
/**
|
|
2103
|
+
* The shape of the model inside the application code - what the users use
|
|
2104
|
+
*/
|
|
2105
|
+
declare const graphRagQueryRequest: z.ZodLazy<z.ZodObject<{
|
|
2106
|
+
query: z.ZodString;
|
|
2107
|
+
maxDepth: z.ZodOptional<z.ZodNumber>;
|
|
2108
|
+
depth: z.ZodOptional<z.ZodNumber>;
|
|
2109
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
2110
|
+
includeRelationships: z.ZodOptional<z.ZodBoolean>;
|
|
2111
|
+
}, "strip", z.ZodTypeAny, {
|
|
2112
|
+
query: string;
|
|
2113
|
+
maxDepth?: number | undefined;
|
|
2114
|
+
depth?: number | undefined;
|
|
2115
|
+
limit?: number | undefined;
|
|
2116
|
+
includeRelationships?: boolean | undefined;
|
|
2117
|
+
}, {
|
|
2118
|
+
query: string;
|
|
2119
|
+
maxDepth?: number | undefined;
|
|
2120
|
+
depth?: number | undefined;
|
|
2121
|
+
limit?: number | undefined;
|
|
2122
|
+
includeRelationships?: boolean | undefined;
|
|
2123
|
+
}>>;
|
|
2124
|
+
/**
|
|
2125
|
+
*
|
|
2126
|
+
* @typedef {GraphRagQueryRequest} graphRagQueryRequest
|
|
2127
|
+
* @property {string} - GraphRAG query string
|
|
2128
|
+
* @property {number} - Maximum graph traversal depth (alias: depth)
|
|
2129
|
+
* @property {number} - Graph traversal depth (deprecated, use maxDepth)
|
|
2130
|
+
* @property {number} - Maximum number of results to return
|
|
2131
|
+
* @property {boolean} - Include relationship data in response
|
|
2132
|
+
*/
|
|
2133
|
+
type GraphRagQueryRequest = z.infer<typeof graphRagQueryRequest>;
|
|
2134
|
+
|
|
2135
|
+
/**
|
|
2136
|
+
* The shape of the model inside the application code - what the users use
|
|
2137
|
+
*/
|
|
2138
|
+
declare const executeGraphRagQueryOkResponse: z.ZodLazy<z.ZodObject<{
|
|
2139
|
+
data: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
2140
|
+
queryId: z.ZodString;
|
|
2141
|
+
results: z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
2142
|
+
memory: z.ZodLazy<z.ZodObject<{
|
|
2143
|
+
id: z.ZodString;
|
|
2144
|
+
/**
|
|
2145
|
+
* The shape of the model inside the application code - what the users use
|
|
2146
|
+
*/
|
|
2147
|
+
content: z.ZodString;
|
|
2148
|
+
memoryType: z.ZodString;
|
|
2149
|
+
context: z.ZodOptional<z.ZodString>;
|
|
2150
|
+
topics: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2151
|
+
timestamp: z.ZodOptional<z.ZodString>;
|
|
2152
|
+
eventTime: z.ZodOptional<z.ZodString>;
|
|
2153
|
+
validFrom: z.ZodOptional<z.ZodString>;
|
|
2154
|
+
validTo: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2155
|
+
createdAt: z.ZodString;
|
|
2156
|
+
updatedAt: z.ZodString;
|
|
2157
|
+
}, "strip", z.ZodTypeAny, {
|
|
2158
|
+
id: string;
|
|
2159
|
+
createdAt: string;
|
|
2160
|
+
content: string;
|
|
2161
|
+
updatedAt: string;
|
|
2162
|
+
memoryType: string;
|
|
2163
|
+
context?: string | undefined;
|
|
2164
|
+
topics?: string[] | undefined;
|
|
2165
|
+
timestamp?: string | undefined;
|
|
2166
|
+
eventTime?: string | undefined;
|
|
2167
|
+
validFrom?: string | undefined;
|
|
2168
|
+
validTo?: string | null | undefined;
|
|
2169
|
+
}, {
|
|
2170
|
+
id: string;
|
|
2171
|
+
createdAt: string;
|
|
2172
|
+
content: string;
|
|
2173
|
+
updatedAt: string;
|
|
2174
|
+
memoryType: string;
|
|
2175
|
+
context?: string | undefined;
|
|
2176
|
+
topics?: string[] | undefined;
|
|
2177
|
+
timestamp?: string | undefined;
|
|
2178
|
+
eventTime?: string | undefined;
|
|
2179
|
+
validFrom?: string | undefined;
|
|
2180
|
+
validTo?: string | null | undefined;
|
|
2181
|
+
}>>;
|
|
2182
|
+
score: z.ZodNumber;
|
|
2183
|
+
topics: z.ZodArray<z.ZodAny, "many">;
|
|
2184
|
+
entities: z.ZodArray<z.ZodAny, "many">;
|
|
2185
|
+
relatedMemories: z.ZodArray<z.ZodAny, "many">;
|
|
2186
|
+
}, "strip", z.ZodTypeAny, {
|
|
2187
|
+
topics: any[];
|
|
2188
|
+
memory: {
|
|
2189
|
+
id: string;
|
|
2190
|
+
createdAt: string;
|
|
2191
|
+
content: string;
|
|
2192
|
+
updatedAt: string;
|
|
2193
|
+
memoryType: string;
|
|
2194
|
+
context?: string | undefined;
|
|
2195
|
+
topics?: string[] | undefined;
|
|
2196
|
+
timestamp?: string | undefined;
|
|
2197
|
+
eventTime?: string | undefined;
|
|
2198
|
+
validFrom?: string | undefined;
|
|
2199
|
+
validTo?: string | null | undefined;
|
|
2200
|
+
};
|
|
2201
|
+
score: number;
|
|
2202
|
+
entities: any[];
|
|
2203
|
+
relatedMemories: any[];
|
|
2204
|
+
}, {
|
|
2205
|
+
topics: any[];
|
|
2206
|
+
memory: {
|
|
2207
|
+
id: string;
|
|
2208
|
+
createdAt: string;
|
|
2209
|
+
content: string;
|
|
2210
|
+
updatedAt: string;
|
|
2211
|
+
memoryType: string;
|
|
2212
|
+
context?: string | undefined;
|
|
2213
|
+
topics?: string[] | undefined;
|
|
2214
|
+
timestamp?: string | undefined;
|
|
2215
|
+
eventTime?: string | undefined;
|
|
2216
|
+
validFrom?: string | undefined;
|
|
2217
|
+
validTo?: string | null | undefined;
|
|
2218
|
+
};
|
|
2219
|
+
score: number;
|
|
2220
|
+
entities: any[];
|
|
2221
|
+
relatedMemories: any[];
|
|
2222
|
+
}>>, "many">;
|
|
2223
|
+
metadata: z.ZodLazy<z.ZodObject<{
|
|
2224
|
+
query: z.ZodString;
|
|
2225
|
+
depth: z.ZodNumber;
|
|
2226
|
+
limit: z.ZodNumber;
|
|
2227
|
+
timestamp: z.ZodString;
|
|
2228
|
+
}, "strip", z.ZodTypeAny, {
|
|
2229
|
+
limit: number;
|
|
2230
|
+
timestamp: string;
|
|
2231
|
+
query: string;
|
|
2232
|
+
depth: number;
|
|
2233
|
+
}, {
|
|
2234
|
+
limit: number;
|
|
2235
|
+
timestamp: string;
|
|
2236
|
+
query: string;
|
|
2237
|
+
depth: number;
|
|
2238
|
+
}>>;
|
|
2239
|
+
}, "strip", z.ZodTypeAny, {
|
|
2240
|
+
metadata: {
|
|
2241
|
+
limit: number;
|
|
2242
|
+
timestamp: string;
|
|
2243
|
+
query: string;
|
|
2244
|
+
depth: number;
|
|
2245
|
+
};
|
|
2246
|
+
queryId: string;
|
|
2247
|
+
results: {
|
|
2248
|
+
topics: any[];
|
|
2249
|
+
memory: {
|
|
2250
|
+
id: string;
|
|
2251
|
+
createdAt: string;
|
|
2252
|
+
content: string;
|
|
2253
|
+
updatedAt: string;
|
|
2254
|
+
memoryType: string;
|
|
2255
|
+
context?: string | undefined;
|
|
2256
|
+
topics?: string[] | undefined;
|
|
2257
|
+
timestamp?: string | undefined;
|
|
2258
|
+
eventTime?: string | undefined;
|
|
2259
|
+
validFrom?: string | undefined;
|
|
2260
|
+
validTo?: string | null | undefined;
|
|
2261
|
+
};
|
|
2262
|
+
score: number;
|
|
2263
|
+
entities: any[];
|
|
2264
|
+
relatedMemories: any[];
|
|
2265
|
+
}[];
|
|
2266
|
+
}, {
|
|
2267
|
+
metadata: {
|
|
2268
|
+
limit: number;
|
|
2269
|
+
timestamp: string;
|
|
2270
|
+
query: string;
|
|
2271
|
+
depth: number;
|
|
2272
|
+
};
|
|
2273
|
+
queryId: string;
|
|
2274
|
+
results: {
|
|
2275
|
+
topics: any[];
|
|
2276
|
+
memory: {
|
|
2277
|
+
id: string;
|
|
2278
|
+
createdAt: string;
|
|
2279
|
+
content: string;
|
|
2280
|
+
updatedAt: string;
|
|
2281
|
+
memoryType: string;
|
|
2282
|
+
context?: string | undefined;
|
|
2283
|
+
topics?: string[] | undefined;
|
|
2284
|
+
timestamp?: string | undefined;
|
|
2285
|
+
eventTime?: string | undefined;
|
|
2286
|
+
validFrom?: string | undefined;
|
|
2287
|
+
validTo?: string | null | undefined;
|
|
2288
|
+
};
|
|
2289
|
+
score: number;
|
|
2290
|
+
entities: any[];
|
|
2291
|
+
relatedMemories: any[];
|
|
2292
|
+
}[];
|
|
2293
|
+
}>>>;
|
|
2294
|
+
}, "strip", z.ZodTypeAny, {
|
|
2295
|
+
data?: {
|
|
2296
|
+
metadata: {
|
|
2297
|
+
limit: number;
|
|
2298
|
+
timestamp: string;
|
|
2299
|
+
query: string;
|
|
2300
|
+
depth: number;
|
|
2301
|
+
};
|
|
2302
|
+
queryId: string;
|
|
2303
|
+
results: {
|
|
2304
|
+
topics: any[];
|
|
2305
|
+
memory: {
|
|
2306
|
+
id: string;
|
|
2307
|
+
createdAt: string;
|
|
2308
|
+
content: string;
|
|
2309
|
+
updatedAt: string;
|
|
2310
|
+
memoryType: string;
|
|
2311
|
+
context?: string | undefined;
|
|
2312
|
+
topics?: string[] | undefined;
|
|
2313
|
+
timestamp?: string | undefined;
|
|
2314
|
+
eventTime?: string | undefined;
|
|
2315
|
+
validFrom?: string | undefined;
|
|
2316
|
+
validTo?: string | null | undefined;
|
|
2317
|
+
};
|
|
2318
|
+
score: number;
|
|
2319
|
+
entities: any[];
|
|
2320
|
+
relatedMemories: any[];
|
|
2321
|
+
}[];
|
|
2322
|
+
} | undefined;
|
|
2323
|
+
}, {
|
|
2324
|
+
data?: {
|
|
2325
|
+
metadata: {
|
|
2326
|
+
limit: number;
|
|
2327
|
+
timestamp: string;
|
|
2328
|
+
query: string;
|
|
2329
|
+
depth: number;
|
|
2330
|
+
};
|
|
2331
|
+
queryId: string;
|
|
2332
|
+
results: {
|
|
2333
|
+
topics: any[];
|
|
2334
|
+
memory: {
|
|
2335
|
+
id: string;
|
|
2336
|
+
createdAt: string;
|
|
2337
|
+
content: string;
|
|
2338
|
+
updatedAt: string;
|
|
2339
|
+
memoryType: string;
|
|
2340
|
+
context?: string | undefined;
|
|
2341
|
+
topics?: string[] | undefined;
|
|
2342
|
+
timestamp?: string | undefined;
|
|
2343
|
+
eventTime?: string | undefined;
|
|
2344
|
+
validFrom?: string | undefined;
|
|
2345
|
+
validTo?: string | null | undefined;
|
|
2346
|
+
};
|
|
2347
|
+
score: number;
|
|
2348
|
+
entities: any[];
|
|
2349
|
+
relatedMemories: any[];
|
|
2350
|
+
}[];
|
|
2351
|
+
} | undefined;
|
|
2352
|
+
}>>;
|
|
2353
|
+
/**
|
|
2354
|
+
*
|
|
2355
|
+
* @typedef {ExecuteGraphRagQueryOkResponse} executeGraphRagQueryOkResponse
|
|
2356
|
+
* @property {GraphRagQueryResponse}
|
|
2357
|
+
*/
|
|
2358
|
+
type ExecuteGraphRagQueryOkResponse = z.infer<typeof executeGraphRagQueryOkResponse>;
|
|
2359
|
+
|
|
2360
|
+
declare class GraphRagService extends BaseService {
|
|
2361
|
+
/**
|
|
2362
|
+
* Get explanation for a previously executed GraphRAG query result
|
|
2363
|
+
* @param {string} params.queryId - The query ID to explain
|
|
2364
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
2365
|
+
* @returns {Promise<HttpResponse<any>>} - OK
|
|
2366
|
+
*/
|
|
2367
|
+
explainGraphRagQuery(params: ExplainGraphRagQueryParams, requestConfig?: RequestConfig): Promise<HttpResponse<void>>;
|
|
2368
|
+
/**
|
|
2369
|
+
* Query communities for relevant information using semantic search
|
|
2370
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
2371
|
+
* @returns {Promise<HttpResponse<any>>} - OK
|
|
2372
|
+
*/
|
|
2373
|
+
queryCommunities(body: QueryCommunitiesRequest, requestConfig?: RequestConfig): Promise<HttpResponse<void>>;
|
|
2374
|
+
/**
|
|
2375
|
+
* Execute a graph-based retrieval augmented generation query
|
|
2376
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
2377
|
+
* @returns {Promise<HttpResponse<ExecuteGraphRagQueryOkResponse>>} - GraphRAG query results
|
|
2378
|
+
*/
|
|
2379
|
+
executeGraphRagQuery(body: GraphRagQueryRequest, requestConfig?: RequestConfig): Promise<HttpResponse<ExecuteGraphRagQueryOkResponse>>;
|
|
2380
|
+
}
|
|
2381
|
+
|
|
2382
|
+
/**
|
|
2383
|
+
* The shape of the model inside the application code - what the users use
|
|
2384
|
+
*/
|
|
2385
|
+
declare const graphRagQueryResponse: z.ZodLazy<z.ZodObject<{
|
|
2386
|
+
queryId: z.ZodString;
|
|
2387
|
+
results: z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
2388
|
+
memory: z.ZodLazy<z.ZodObject<{
|
|
2389
|
+
id: z.ZodString;
|
|
2390
|
+
content: z.ZodString;
|
|
2391
|
+
memoryType: z.ZodString;
|
|
2392
|
+
context: z.ZodOptional<z.ZodString>;
|
|
2393
|
+
topics: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2394
|
+
timestamp: z.ZodOptional<z.ZodString>;
|
|
2395
|
+
eventTime: z.ZodOptional<z.ZodString>;
|
|
2396
|
+
validFrom: z.ZodOptional<z.ZodString>;
|
|
2397
|
+
validTo: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2398
|
+
createdAt: z.ZodString;
|
|
2399
|
+
updatedAt: z.ZodString;
|
|
2400
|
+
}, "strip", z.ZodTypeAny, {
|
|
2401
|
+
id: string;
|
|
2402
|
+
createdAt: string;
|
|
2403
|
+
content: string;
|
|
2404
|
+
updatedAt: string;
|
|
2405
|
+
memoryType: string;
|
|
2406
|
+
context?: string | undefined;
|
|
2407
|
+
topics?: string[] | undefined;
|
|
2408
|
+
timestamp?: string | undefined;
|
|
2409
|
+
eventTime?: string | undefined;
|
|
2410
|
+
validFrom?: string | undefined;
|
|
2411
|
+
validTo?: string | null | undefined;
|
|
2412
|
+
}, {
|
|
2413
|
+
id: string;
|
|
2414
|
+
createdAt: string;
|
|
2415
|
+
content: string;
|
|
2416
|
+
updatedAt: string;
|
|
2417
|
+
memoryType: string;
|
|
2418
|
+
context?: string | undefined;
|
|
2419
|
+
topics?: string[] | undefined;
|
|
2420
|
+
timestamp?: string | undefined;
|
|
2421
|
+
eventTime?: string | undefined;
|
|
2422
|
+
validFrom?: string | undefined;
|
|
2423
|
+
validTo?: string | null | undefined;
|
|
2424
|
+
}>>;
|
|
2425
|
+
score: z.ZodNumber;
|
|
2426
|
+
topics: z.ZodArray<z.ZodAny, "many">;
|
|
2427
|
+
entities: z.ZodArray<z.ZodAny, "many">;
|
|
2428
|
+
relatedMemories: z.ZodArray<z.ZodAny, "many">;
|
|
2429
|
+
}, "strip", z.ZodTypeAny, {
|
|
2430
|
+
topics: any[];
|
|
2431
|
+
memory: {
|
|
2432
|
+
id: string;
|
|
2433
|
+
createdAt: string;
|
|
2434
|
+
content: string;
|
|
2435
|
+
updatedAt: string;
|
|
2436
|
+
memoryType: string;
|
|
2437
|
+
context?: string | undefined;
|
|
2438
|
+
topics?: string[] | undefined;
|
|
2439
|
+
timestamp?: string | undefined;
|
|
2440
|
+
eventTime?: string | undefined;
|
|
2441
|
+
validFrom?: string | undefined;
|
|
2442
|
+
validTo?: string | null | undefined;
|
|
2443
|
+
};
|
|
2444
|
+
score: number;
|
|
2445
|
+
entities: any[];
|
|
2446
|
+
relatedMemories: any[];
|
|
2447
|
+
}, {
|
|
2448
|
+
topics: any[];
|
|
2449
|
+
memory: {
|
|
2450
|
+
id: string;
|
|
2451
|
+
createdAt: string;
|
|
2452
|
+
content: string;
|
|
2453
|
+
updatedAt: string;
|
|
2454
|
+
memoryType: string;
|
|
2455
|
+
context?: string | undefined;
|
|
2456
|
+
topics?: string[] | undefined;
|
|
2457
|
+
timestamp?: string | undefined;
|
|
2458
|
+
eventTime?: string | undefined;
|
|
2459
|
+
validFrom?: string | undefined;
|
|
2460
|
+
validTo?: string | null | undefined;
|
|
2461
|
+
};
|
|
2462
|
+
score: number;
|
|
2463
|
+
entities: any[];
|
|
2464
|
+
relatedMemories: any[];
|
|
2465
|
+
}>>, "many">;
|
|
2466
|
+
metadata: z.ZodLazy<z.ZodObject<{
|
|
2467
|
+
query: z.ZodString;
|
|
2468
|
+
depth: z.ZodNumber;
|
|
2469
|
+
limit: z.ZodNumber;
|
|
2470
|
+
timestamp: z.ZodString;
|
|
2471
|
+
}, "strip", z.ZodTypeAny, {
|
|
2472
|
+
limit: number;
|
|
2473
|
+
timestamp: string;
|
|
2474
|
+
query: string;
|
|
2475
|
+
depth: number;
|
|
2476
|
+
}, {
|
|
2477
|
+
limit: number;
|
|
2478
|
+
timestamp: string;
|
|
2479
|
+
query: string;
|
|
2480
|
+
depth: number;
|
|
2481
|
+
}>>;
|
|
2482
|
+
}, "strip", z.ZodTypeAny, {
|
|
2483
|
+
metadata: {
|
|
2484
|
+
limit: number;
|
|
2485
|
+
timestamp: string;
|
|
2486
|
+
query: string;
|
|
2487
|
+
depth: number;
|
|
2488
|
+
};
|
|
2489
|
+
queryId: string;
|
|
2490
|
+
results: {
|
|
2491
|
+
topics: any[];
|
|
2492
|
+
memory: {
|
|
2493
|
+
id: string;
|
|
2494
|
+
createdAt: string;
|
|
2495
|
+
content: string;
|
|
2496
|
+
updatedAt: string;
|
|
2497
|
+
memoryType: string;
|
|
2498
|
+
context?: string | undefined;
|
|
2499
|
+
topics?: string[] | undefined;
|
|
2500
|
+
timestamp?: string | undefined;
|
|
2501
|
+
eventTime?: string | undefined;
|
|
2502
|
+
validFrom?: string | undefined;
|
|
2503
|
+
validTo?: string | null | undefined;
|
|
2504
|
+
};
|
|
2505
|
+
score: number;
|
|
2506
|
+
entities: any[];
|
|
2507
|
+
relatedMemories: any[];
|
|
2508
|
+
}[];
|
|
2509
|
+
}, {
|
|
2510
|
+
metadata: {
|
|
2511
|
+
limit: number;
|
|
2512
|
+
timestamp: string;
|
|
2513
|
+
query: string;
|
|
2514
|
+
depth: number;
|
|
2515
|
+
};
|
|
2516
|
+
queryId: string;
|
|
2517
|
+
results: {
|
|
2518
|
+
topics: any[];
|
|
2519
|
+
memory: {
|
|
2520
|
+
id: string;
|
|
2521
|
+
createdAt: string;
|
|
2522
|
+
content: string;
|
|
2523
|
+
updatedAt: string;
|
|
2524
|
+
memoryType: string;
|
|
2525
|
+
context?: string | undefined;
|
|
2526
|
+
topics?: string[] | undefined;
|
|
2527
|
+
timestamp?: string | undefined;
|
|
2528
|
+
eventTime?: string | undefined;
|
|
2529
|
+
validFrom?: string | undefined;
|
|
2530
|
+
validTo?: string | null | undefined;
|
|
2531
|
+
};
|
|
2532
|
+
score: number;
|
|
2533
|
+
entities: any[];
|
|
2534
|
+
relatedMemories: any[];
|
|
2535
|
+
}[];
|
|
2536
|
+
}>>;
|
|
2537
|
+
/**
|
|
2538
|
+
*
|
|
2539
|
+
* @typedef {GraphRagQueryResponse} graphRagQueryResponse
|
|
2540
|
+
* @property {string} - Unique identifier for this query execution
|
|
2541
|
+
* @property {Results[]} - Array of query results with graph context
|
|
2542
|
+
* @property {GraphRagQueryResponseMetadata} - Query execution metadata
|
|
2543
|
+
*/
|
|
2544
|
+
type GraphRagQueryResponse = z.infer<typeof graphRagQueryResponse>;
|
|
2545
|
+
|
|
2546
|
+
/**
|
|
2547
|
+
* The shape of the model inside the application code - what the users use
|
|
2548
|
+
*/
|
|
2549
|
+
declare const results: z.ZodLazy<z.ZodObject<{
|
|
2550
|
+
memory: z.ZodLazy<z.ZodObject<{
|
|
2551
|
+
id: z.ZodString;
|
|
2552
|
+
content: z.ZodString;
|
|
2553
|
+
memoryType: z.ZodString;
|
|
2554
|
+
context: z.ZodOptional<z.ZodString>;
|
|
2555
|
+
topics: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2556
|
+
timestamp: z.ZodOptional<z.ZodString>;
|
|
2557
|
+
eventTime: z.ZodOptional<z.ZodString>;
|
|
2558
|
+
validFrom: z.ZodOptional<z.ZodString>;
|
|
2559
|
+
validTo: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2560
|
+
createdAt: z.ZodString;
|
|
2561
|
+
updatedAt: z.ZodString;
|
|
2562
|
+
}, "strip", z.ZodTypeAny, {
|
|
2563
|
+
id: string;
|
|
2564
|
+
createdAt: string;
|
|
2565
|
+
content: string;
|
|
2566
|
+
updatedAt: string;
|
|
2567
|
+
memoryType: string;
|
|
2568
|
+
context?: string | undefined;
|
|
2569
|
+
topics?: string[] | undefined;
|
|
2570
|
+
timestamp?: string | undefined;
|
|
2571
|
+
eventTime?: string | undefined;
|
|
2572
|
+
validFrom?: string | undefined;
|
|
2573
|
+
validTo?: string | null | undefined;
|
|
2574
|
+
}, {
|
|
2575
|
+
id: string;
|
|
2576
|
+
createdAt: string;
|
|
2577
|
+
content: string;
|
|
2578
|
+
updatedAt: string;
|
|
2579
|
+
memoryType: string;
|
|
2580
|
+
context?: string | undefined;
|
|
2581
|
+
topics?: string[] | undefined;
|
|
2582
|
+
timestamp?: string | undefined;
|
|
2583
|
+
eventTime?: string | undefined;
|
|
2584
|
+
validFrom?: string | undefined;
|
|
2585
|
+
validTo?: string | null | undefined;
|
|
2586
|
+
}>>;
|
|
2587
|
+
score: z.ZodNumber;
|
|
2588
|
+
topics: z.ZodArray<z.ZodAny, "many">;
|
|
2589
|
+
entities: z.ZodArray<z.ZodAny, "many">;
|
|
2590
|
+
relatedMemories: z.ZodArray<z.ZodAny, "many">;
|
|
2591
|
+
}, "strip", z.ZodTypeAny, {
|
|
2592
|
+
topics: any[];
|
|
2593
|
+
memory: {
|
|
2594
|
+
id: string;
|
|
2595
|
+
createdAt: string;
|
|
2596
|
+
content: string;
|
|
2597
|
+
updatedAt: string;
|
|
2598
|
+
memoryType: string;
|
|
2599
|
+
context?: string | undefined;
|
|
2600
|
+
topics?: string[] | undefined;
|
|
2601
|
+
timestamp?: string | undefined;
|
|
2602
|
+
eventTime?: string | undefined;
|
|
2603
|
+
validFrom?: string | undefined;
|
|
2604
|
+
validTo?: string | null | undefined;
|
|
2605
|
+
};
|
|
2606
|
+
score: number;
|
|
2607
|
+
entities: any[];
|
|
2608
|
+
relatedMemories: any[];
|
|
2609
|
+
}, {
|
|
2610
|
+
topics: any[];
|
|
2611
|
+
memory: {
|
|
2612
|
+
id: string;
|
|
2613
|
+
createdAt: string;
|
|
2614
|
+
content: string;
|
|
2615
|
+
updatedAt: string;
|
|
2616
|
+
memoryType: string;
|
|
2617
|
+
context?: string | undefined;
|
|
2618
|
+
topics?: string[] | undefined;
|
|
2619
|
+
timestamp?: string | undefined;
|
|
2620
|
+
eventTime?: string | undefined;
|
|
2621
|
+
validFrom?: string | undefined;
|
|
2622
|
+
validTo?: string | null | undefined;
|
|
2623
|
+
};
|
|
2624
|
+
score: number;
|
|
2625
|
+
entities: any[];
|
|
2626
|
+
relatedMemories: any[];
|
|
2627
|
+
}>>;
|
|
2628
|
+
/**
|
|
2629
|
+
*
|
|
2630
|
+
* @typedef {Results} results
|
|
2631
|
+
* @property {Memory}
|
|
2632
|
+
* @property {number} - Relevance score from full-text search
|
|
2633
|
+
* @property {any[]} - Topics associated with this memory
|
|
2634
|
+
* @property {any[]} - Entities mentioned in this memory
|
|
2635
|
+
* @property {any[]} - Related memories through shared topics
|
|
2636
|
+
*/
|
|
2637
|
+
type Results = z.infer<typeof results>;
|
|
2638
|
+
|
|
2639
|
+
/**
|
|
2640
|
+
* The shape of the model inside the application code - what the users use
|
|
2641
|
+
*/
|
|
2642
|
+
declare const graphRagQueryResponseMetadata: z.ZodLazy<z.ZodObject<{
|
|
2643
|
+
query: z.ZodString;
|
|
2644
|
+
depth: z.ZodNumber;
|
|
2645
|
+
limit: z.ZodNumber;
|
|
2646
|
+
timestamp: z.ZodString;
|
|
2647
|
+
}, "strip", z.ZodTypeAny, {
|
|
2648
|
+
limit: number;
|
|
2649
|
+
timestamp: string;
|
|
2650
|
+
query: string;
|
|
2651
|
+
depth: number;
|
|
2652
|
+
}, {
|
|
2653
|
+
limit: number;
|
|
2654
|
+
timestamp: string;
|
|
2655
|
+
query: string;
|
|
2656
|
+
depth: number;
|
|
2657
|
+
}>>;
|
|
2658
|
+
/**
|
|
2659
|
+
* Query execution metadata
|
|
2660
|
+
* @typedef {GraphRagQueryResponseMetadata} graphRagQueryResponseMetadata - Query execution metadata - Query execution metadata
|
|
2661
|
+
* @property {string} - Original query string
|
|
2662
|
+
* @property {number} - Graph traversal depth used
|
|
2663
|
+
* @property {number} - Maximum number of results returned
|
|
2664
|
+
* @property {string} - Query execution timestamp
|
|
2665
|
+
*/
|
|
2666
|
+
type GraphRagQueryResponseMetadata = z.infer<typeof graphRagQueryResponseMetadata>;
|
|
2667
|
+
|
|
2668
|
+
/**
|
|
2669
|
+
* The shape of the model inside the application code - what the users use
|
|
2670
|
+
*/
|
|
2671
|
+
declare const healthCheck: z.ZodLazy<z.ZodObject<{
|
|
2672
|
+
status: z.ZodString;
|
|
2673
|
+
timestamp: z.ZodString;
|
|
2674
|
+
version: z.ZodString;
|
|
2675
|
+
uptime: z.ZodNumber;
|
|
2676
|
+
checks: z.ZodAny;
|
|
2677
|
+
}, "strip", z.ZodTypeAny, {
|
|
2678
|
+
status: string;
|
|
2679
|
+
timestamp: string;
|
|
2680
|
+
version: string;
|
|
2681
|
+
uptime: number;
|
|
2682
|
+
checks?: any;
|
|
2683
|
+
}, {
|
|
2684
|
+
status: string;
|
|
2685
|
+
timestamp: string;
|
|
2686
|
+
version: string;
|
|
2687
|
+
uptime: number;
|
|
2688
|
+
checks?: any;
|
|
2689
|
+
}>>;
|
|
2690
|
+
/**
|
|
2691
|
+
*
|
|
2692
|
+
* @typedef {HealthCheck} healthCheck
|
|
2693
|
+
* @property {HealthCheckStatus} - Overall system health status
|
|
2694
|
+
* @property {string} - Health check timestamp
|
|
2695
|
+
* @property {string} - API version
|
|
2696
|
+
* @property {number} - System uptime in seconds
|
|
2697
|
+
* @property {any} - Individual service health checks
|
|
2698
|
+
*/
|
|
2699
|
+
type HealthCheck = z.infer<typeof healthCheck>;
|
|
2700
|
+
|
|
2701
|
+
declare class HealthService extends BaseService {
|
|
2702
|
+
/**
|
|
2703
|
+
* Returns the health status and uptime of the API service.This endpoint is public and requires no authentication.
|
|
2704
|
+
Use this endpoint for monitoring, health checks, and availability verification.
|
|
2705
|
+
|
|
2706
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
2707
|
+
* @returns {Promise<HttpResponse<HealthCheck>>} - Service is healthy
|
|
2708
|
+
*/
|
|
2709
|
+
healthCheck(requestConfig?: RequestConfig): Promise<HttpResponse<HealthCheck>>;
|
|
2710
|
+
}
|
|
2711
|
+
|
|
2712
|
+
declare enum HealthCheckStatus {
|
|
2713
|
+
HEALTHY = "healthy",
|
|
2714
|
+
DEGRADED = "degraded",
|
|
2715
|
+
UNHEALTHY = "unhealthy"
|
|
2716
|
+
}
|
|
2717
|
+
|
|
2718
|
+
/**
|
|
2719
|
+
* The shape of the model inside the application code - what the users use
|
|
2720
|
+
*/
|
|
2721
|
+
declare const serviceCheck: z.ZodLazy<z.ZodObject<{
|
|
2722
|
+
status: z.ZodString;
|
|
2723
|
+
responseTime: z.ZodOptional<z.ZodNumber>;
|
|
2724
|
+
}, "strip", z.ZodTypeAny, {
|
|
2725
|
+
status: string;
|
|
2726
|
+
responseTime?: number | undefined;
|
|
2727
|
+
}, {
|
|
2728
|
+
status: string;
|
|
2729
|
+
responseTime?: number | undefined;
|
|
2730
|
+
}>>;
|
|
2731
|
+
/**
|
|
2732
|
+
*
|
|
2733
|
+
* @typedef {ServiceCheck} serviceCheck
|
|
2734
|
+
* @property {ServiceCheckStatus} - Service status
|
|
2735
|
+
* @property {number} - Response time in milliseconds
|
|
2736
|
+
*/
|
|
2737
|
+
type ServiceCheck = z.infer<typeof serviceCheck>;
|
|
2738
|
+
|
|
2739
|
+
declare enum ServiceCheckStatus {
|
|
2740
|
+
UP = "up",
|
|
2741
|
+
DOWN = "down"
|
|
2742
|
+
}
|
|
2743
|
+
|
|
2744
|
+
/**
|
|
2745
|
+
* The shape of the model inside the application code - what the users use
|
|
2746
|
+
*/
|
|
2747
|
+
declare const updateMemoryRequest: z.ZodLazy<z.ZodObject<{
|
|
2748
|
+
content: z.ZodOptional<z.ZodString>;
|
|
2749
|
+
memoryType: z.ZodOptional<z.ZodString>;
|
|
2750
|
+
context: z.ZodOptional<z.ZodString>;
|
|
2751
|
+
topics: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2752
|
+
}, "strip", z.ZodTypeAny, {
|
|
2753
|
+
content?: string | undefined;
|
|
2754
|
+
memoryType?: string | undefined;
|
|
2755
|
+
context?: string | undefined;
|
|
2756
|
+
topics?: string[] | undefined;
|
|
2757
|
+
}, {
|
|
2758
|
+
content?: string | undefined;
|
|
2759
|
+
memoryType?: string | undefined;
|
|
2760
|
+
context?: string | undefined;
|
|
2761
|
+
topics?: string[] | undefined;
|
|
2762
|
+
}>>;
|
|
2763
|
+
/**
|
|
2764
|
+
*
|
|
2765
|
+
* @typedef {UpdateMemoryRequest} updateMemoryRequest
|
|
2766
|
+
* @property {string} - Updated memory content
|
|
2767
|
+
* @property {UpdateMemoryRequestMemoryType} - Updated memory type
|
|
2768
|
+
* @property {string} - Updated context or domain
|
|
2769
|
+
* @property {string[]} - Updated topics
|
|
2770
|
+
*/
|
|
2771
|
+
type UpdateMemoryRequest = z.infer<typeof updateMemoryRequest>;
|
|
2772
|
+
|
|
2773
|
+
/**
|
|
2774
|
+
* The shape of the model inside the application code - what the users use
|
|
2775
|
+
*/
|
|
2776
|
+
declare const updateMemoryOkResponse: z.ZodLazy<z.ZodObject<{
|
|
2777
|
+
data: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
2778
|
+
id: z.ZodString;
|
|
2779
|
+
content: z.ZodString;
|
|
2780
|
+
memoryType: z.ZodString;
|
|
2781
|
+
context: z.ZodOptional<z.ZodString>;
|
|
2782
|
+
topics: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2783
|
+
timestamp: z.ZodOptional<z.ZodString>;
|
|
2784
|
+
eventTime: z.ZodOptional<z.ZodString>;
|
|
2785
|
+
validFrom: z.ZodOptional<z.ZodString>;
|
|
2786
|
+
validTo: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2787
|
+
createdAt: z.ZodString;
|
|
2788
|
+
updatedAt: z.ZodString;
|
|
2789
|
+
}, "strip", z.ZodTypeAny, {
|
|
2790
|
+
id: string;
|
|
2791
|
+
createdAt: string;
|
|
2792
|
+
content: string;
|
|
2793
|
+
updatedAt: string;
|
|
2794
|
+
memoryType: string;
|
|
2795
|
+
context?: string | undefined;
|
|
2796
|
+
topics?: string[] | undefined;
|
|
2797
|
+
timestamp?: string | undefined;
|
|
2798
|
+
eventTime?: string | undefined;
|
|
2799
|
+
validFrom?: string | undefined;
|
|
2800
|
+
validTo?: string | null | undefined;
|
|
2801
|
+
}, {
|
|
2802
|
+
id: string;
|
|
2803
|
+
createdAt: string;
|
|
2804
|
+
content: string;
|
|
2805
|
+
updatedAt: string;
|
|
2806
|
+
memoryType: string;
|
|
2807
|
+
context?: string | undefined;
|
|
2808
|
+
topics?: string[] | undefined;
|
|
2809
|
+
timestamp?: string | undefined;
|
|
2810
|
+
eventTime?: string | undefined;
|
|
2811
|
+
validFrom?: string | undefined;
|
|
2812
|
+
validTo?: string | null | undefined;
|
|
2813
|
+
}>>>;
|
|
2814
|
+
}, "strip", z.ZodTypeAny, {
|
|
2815
|
+
data?: {
|
|
2816
|
+
id: string;
|
|
2817
|
+
createdAt: string;
|
|
2818
|
+
content: string;
|
|
2819
|
+
updatedAt: string;
|
|
2820
|
+
memoryType: string;
|
|
2821
|
+
context?: string | undefined;
|
|
2822
|
+
topics?: string[] | undefined;
|
|
2823
|
+
timestamp?: string | undefined;
|
|
2824
|
+
eventTime?: string | undefined;
|
|
2825
|
+
validFrom?: string | undefined;
|
|
2826
|
+
validTo?: string | null | undefined;
|
|
2827
|
+
} | undefined;
|
|
2828
|
+
}, {
|
|
2829
|
+
data?: {
|
|
2830
|
+
id: string;
|
|
2831
|
+
createdAt: string;
|
|
2832
|
+
content: string;
|
|
2833
|
+
updatedAt: string;
|
|
2834
|
+
memoryType: string;
|
|
2835
|
+
context?: string | undefined;
|
|
2836
|
+
topics?: string[] | undefined;
|
|
2837
|
+
timestamp?: string | undefined;
|
|
2838
|
+
eventTime?: string | undefined;
|
|
2839
|
+
validFrom?: string | undefined;
|
|
2840
|
+
validTo?: string | null | undefined;
|
|
2841
|
+
} | undefined;
|
|
2842
|
+
}>>;
|
|
2843
|
+
/**
|
|
2844
|
+
*
|
|
2845
|
+
* @typedef {UpdateMemoryOkResponse} updateMemoryOkResponse
|
|
2846
|
+
* @property {Memory}
|
|
2847
|
+
*/
|
|
2848
|
+
type UpdateMemoryOkResponse = z.infer<typeof updateMemoryOkResponse>;
|
|
2849
|
+
|
|
2850
|
+
/**
|
|
2851
|
+
* The shape of the model inside the application code - what the users use
|
|
2852
|
+
*/
|
|
2853
|
+
declare const listMemoriesOkResponse: z.ZodLazy<z.ZodObject<{
|
|
2854
|
+
data: z.ZodOptional<z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
2855
|
+
id: z.ZodString;
|
|
2856
|
+
content: z.ZodString;
|
|
2857
|
+
memoryType: z.ZodString;
|
|
2858
|
+
context: z.ZodOptional<z.ZodString>;
|
|
2859
|
+
topics: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2860
|
+
timestamp: z.ZodOptional<z.ZodString>;
|
|
2861
|
+
eventTime: z.ZodOptional<z.ZodString>;
|
|
2862
|
+
validFrom: z.ZodOptional<z.ZodString>;
|
|
2863
|
+
validTo: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2864
|
+
createdAt: z.ZodString;
|
|
2865
|
+
updatedAt: z.ZodString;
|
|
2866
|
+
}, "strip", z.ZodTypeAny, {
|
|
2867
|
+
id: string;
|
|
2868
|
+
createdAt: string;
|
|
2869
|
+
content: string;
|
|
2870
|
+
updatedAt: string;
|
|
2871
|
+
memoryType: string;
|
|
2872
|
+
context?: string | undefined;
|
|
2873
|
+
topics?: string[] | undefined;
|
|
2874
|
+
timestamp?: string | undefined;
|
|
2875
|
+
eventTime?: string | undefined;
|
|
2876
|
+
validFrom?: string | undefined;
|
|
2877
|
+
validTo?: string | null | undefined;
|
|
2878
|
+
}, {
|
|
2879
|
+
id: string;
|
|
2880
|
+
createdAt: string;
|
|
2881
|
+
content: string;
|
|
2882
|
+
updatedAt: string;
|
|
2883
|
+
memoryType: string;
|
|
2884
|
+
context?: string | undefined;
|
|
2885
|
+
topics?: string[] | undefined;
|
|
2886
|
+
timestamp?: string | undefined;
|
|
2887
|
+
eventTime?: string | undefined;
|
|
2888
|
+
validFrom?: string | undefined;
|
|
2889
|
+
validTo?: string | null | undefined;
|
|
2890
|
+
}>>, "many">>;
|
|
2891
|
+
pagination: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
2892
|
+
limit: z.ZodNumber;
|
|
2893
|
+
offset: z.ZodNumber;
|
|
2894
|
+
count: z.ZodNumber;
|
|
2895
|
+
}, "strip", z.ZodTypeAny, {
|
|
2896
|
+
count: number;
|
|
2897
|
+
limit: number;
|
|
2898
|
+
offset: number;
|
|
2899
|
+
}, {
|
|
2900
|
+
count: number;
|
|
2901
|
+
limit: number;
|
|
2902
|
+
offset: number;
|
|
2903
|
+
}>>>;
|
|
2904
|
+
}, "strip", z.ZodTypeAny, {
|
|
2905
|
+
data?: {
|
|
2906
|
+
id: string;
|
|
2907
|
+
createdAt: string;
|
|
2908
|
+
content: string;
|
|
2909
|
+
updatedAt: string;
|
|
2910
|
+
memoryType: string;
|
|
2911
|
+
context?: string | undefined;
|
|
2912
|
+
topics?: string[] | undefined;
|
|
2913
|
+
timestamp?: string | undefined;
|
|
2914
|
+
eventTime?: string | undefined;
|
|
2915
|
+
validFrom?: string | undefined;
|
|
2916
|
+
validTo?: string | null | undefined;
|
|
2917
|
+
}[] | undefined;
|
|
2918
|
+
pagination?: {
|
|
2919
|
+
count: number;
|
|
2920
|
+
limit: number;
|
|
2921
|
+
offset: number;
|
|
2922
|
+
} | undefined;
|
|
2923
|
+
}, {
|
|
2924
|
+
data?: {
|
|
2925
|
+
id: string;
|
|
2926
|
+
createdAt: string;
|
|
2927
|
+
content: string;
|
|
2928
|
+
updatedAt: string;
|
|
2929
|
+
memoryType: string;
|
|
2930
|
+
context?: string | undefined;
|
|
2931
|
+
topics?: string[] | undefined;
|
|
2932
|
+
timestamp?: string | undefined;
|
|
2933
|
+
eventTime?: string | undefined;
|
|
2934
|
+
validFrom?: string | undefined;
|
|
2935
|
+
validTo?: string | null | undefined;
|
|
2936
|
+
}[] | undefined;
|
|
2937
|
+
pagination?: {
|
|
2938
|
+
count: number;
|
|
2939
|
+
limit: number;
|
|
2940
|
+
offset: number;
|
|
2941
|
+
} | undefined;
|
|
2942
|
+
}>>;
|
|
2943
|
+
/**
|
|
2944
|
+
*
|
|
2945
|
+
* @typedef {ListMemoriesOkResponse} listMemoriesOkResponse
|
|
2946
|
+
* @property {Memory[]}
|
|
2947
|
+
* @property {Pagination}
|
|
2948
|
+
*/
|
|
2949
|
+
type ListMemoriesOkResponse = z.infer<typeof listMemoriesOkResponse>;
|
|
2950
|
+
|
|
2951
|
+
interface ListMemoriesParams {
|
|
2952
|
+
limit?: number;
|
|
2953
|
+
offset?: number;
|
|
2954
|
+
page?: number;
|
|
2955
|
+
}
|
|
2956
|
+
|
|
2957
|
+
/**
|
|
2958
|
+
* The shape of the model inside the application code - what the users use
|
|
2959
|
+
*/
|
|
2960
|
+
declare const createMemoryRequest: z.ZodLazy<z.ZodObject<{
|
|
2961
|
+
conversationId: z.ZodString;
|
|
2962
|
+
content: z.ZodString;
|
|
2963
|
+
memoryType: z.ZodOptional<z.ZodString>;
|
|
2964
|
+
role: z.ZodOptional<z.ZodString>;
|
|
2965
|
+
context: z.ZodOptional<z.ZodString>;
|
|
2966
|
+
topics: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2967
|
+
eventTime: z.ZodOptional<z.ZodString>;
|
|
2968
|
+
validFrom: z.ZodOptional<z.ZodString>;
|
|
2969
|
+
validTo: z.ZodOptional<z.ZodString>;
|
|
2970
|
+
}, "strip", z.ZodTypeAny, {
|
|
2971
|
+
content: string;
|
|
2972
|
+
conversationId: string;
|
|
2973
|
+
memoryType?: string | undefined;
|
|
2974
|
+
role?: string | undefined;
|
|
2975
|
+
context?: string | undefined;
|
|
2976
|
+
topics?: string[] | undefined;
|
|
2977
|
+
eventTime?: string | undefined;
|
|
2978
|
+
validFrom?: string | undefined;
|
|
2979
|
+
validTo?: string | undefined;
|
|
2980
|
+
}, {
|
|
2981
|
+
content: string;
|
|
2982
|
+
conversationId: string;
|
|
2983
|
+
memoryType?: string | undefined;
|
|
2984
|
+
role?: string | undefined;
|
|
2985
|
+
context?: string | undefined;
|
|
2986
|
+
topics?: string[] | undefined;
|
|
2987
|
+
eventTime?: string | undefined;
|
|
2988
|
+
validFrom?: string | undefined;
|
|
2989
|
+
validTo?: string | undefined;
|
|
2990
|
+
}>>;
|
|
2991
|
+
/**
|
|
2992
|
+
*
|
|
2993
|
+
* @typedef {CreateMemoryRequest} createMemoryRequest
|
|
2994
|
+
* @property {string} - Conversation ID - use "NEW" to create a new conversation or provide existing conversation ID
|
|
2995
|
+
* @property {string} - Memory content
|
|
2996
|
+
* @property {CreateMemoryRequestMemoryType} - Type of memory
|
|
2997
|
+
* @property {Role} - Role (MCP protocol compatibility)
|
|
2998
|
+
* @property {string} - Context or domain
|
|
2999
|
+
* @property {string[]} - Associated topics
|
|
3000
|
+
* @property {string} - Event time (when the event actually occurred in reality, ISO 8601 format)
|
|
3001
|
+
* @property {string} - Validity start time (when this fact becomes valid, ISO 8601 format)
|
|
3002
|
+
* @property {string} - Validity end time (when this fact expires, ISO 8601 format, omit for never expires)
|
|
3003
|
+
*/
|
|
3004
|
+
type CreateMemoryRequest = z.infer<typeof createMemoryRequest>;
|
|
3005
|
+
|
|
3006
|
+
/**
|
|
3007
|
+
* The shape of the model inside the application code - what the users use
|
|
3008
|
+
*/
|
|
3009
|
+
declare const createMemoryResponse: z.ZodLazy<z.ZodObject<{
|
|
3010
|
+
data: z.ZodLazy<z.ZodObject<{
|
|
3011
|
+
id: z.ZodString;
|
|
3012
|
+
content: z.ZodString;
|
|
3013
|
+
memoryType: z.ZodString;
|
|
3014
|
+
context: z.ZodOptional<z.ZodString>;
|
|
3015
|
+
topics: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3016
|
+
timestamp: z.ZodOptional<z.ZodString>;
|
|
3017
|
+
eventTime: z.ZodOptional<z.ZodString>;
|
|
3018
|
+
validFrom: z.ZodOptional<z.ZodString>;
|
|
3019
|
+
validTo: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
3020
|
+
createdAt: z.ZodString;
|
|
3021
|
+
updatedAt: z.ZodString;
|
|
3022
|
+
}, "strip", z.ZodTypeAny, {
|
|
3023
|
+
id: string;
|
|
3024
|
+
createdAt: string;
|
|
3025
|
+
content: string;
|
|
3026
|
+
updatedAt: string;
|
|
3027
|
+
memoryType: string;
|
|
3028
|
+
context?: string | undefined;
|
|
3029
|
+
topics?: string[] | undefined;
|
|
3030
|
+
timestamp?: string | undefined;
|
|
3031
|
+
eventTime?: string | undefined;
|
|
3032
|
+
validFrom?: string | undefined;
|
|
3033
|
+
validTo?: string | null | undefined;
|
|
3034
|
+
}, {
|
|
3035
|
+
id: string;
|
|
3036
|
+
createdAt: string;
|
|
3037
|
+
content: string;
|
|
3038
|
+
updatedAt: string;
|
|
3039
|
+
memoryType: string;
|
|
3040
|
+
context?: string | undefined;
|
|
3041
|
+
topics?: string[] | undefined;
|
|
3042
|
+
timestamp?: string | undefined;
|
|
3043
|
+
eventTime?: string | undefined;
|
|
3044
|
+
validFrom?: string | undefined;
|
|
3045
|
+
validTo?: string | null | undefined;
|
|
3046
|
+
}>>;
|
|
3047
|
+
meta: z.ZodLazy<z.ZodObject<{
|
|
3048
|
+
conversationId: z.ZodString;
|
|
3049
|
+
sessionId: z.ZodString;
|
|
3050
|
+
sessionCreated: z.ZodBoolean;
|
|
3051
|
+
conversationCreated: z.ZodBoolean;
|
|
3052
|
+
}, "strip", z.ZodTypeAny, {
|
|
3053
|
+
conversationId: string;
|
|
3054
|
+
sessionId: string;
|
|
3055
|
+
sessionCreated: boolean;
|
|
3056
|
+
conversationCreated: boolean;
|
|
3057
|
+
}, {
|
|
3058
|
+
conversationId: string;
|
|
3059
|
+
sessionId: string;
|
|
3060
|
+
sessionCreated: boolean;
|
|
3061
|
+
conversationCreated: boolean;
|
|
3062
|
+
}>>;
|
|
3063
|
+
}, "strip", z.ZodTypeAny, {
|
|
3064
|
+
data: {
|
|
3065
|
+
id: string;
|
|
3066
|
+
createdAt: string;
|
|
3067
|
+
content: string;
|
|
3068
|
+
updatedAt: string;
|
|
3069
|
+
memoryType: string;
|
|
3070
|
+
context?: string | undefined;
|
|
3071
|
+
topics?: string[] | undefined;
|
|
3072
|
+
timestamp?: string | undefined;
|
|
3073
|
+
eventTime?: string | undefined;
|
|
3074
|
+
validFrom?: string | undefined;
|
|
3075
|
+
validTo?: string | null | undefined;
|
|
3076
|
+
};
|
|
3077
|
+
meta: {
|
|
3078
|
+
conversationId: string;
|
|
3079
|
+
sessionId: string;
|
|
3080
|
+
sessionCreated: boolean;
|
|
3081
|
+
conversationCreated: boolean;
|
|
3082
|
+
};
|
|
3083
|
+
}, {
|
|
3084
|
+
data: {
|
|
3085
|
+
id: string;
|
|
3086
|
+
createdAt: string;
|
|
3087
|
+
content: string;
|
|
3088
|
+
updatedAt: string;
|
|
3089
|
+
memoryType: string;
|
|
3090
|
+
context?: string | undefined;
|
|
3091
|
+
topics?: string[] | undefined;
|
|
3092
|
+
timestamp?: string | undefined;
|
|
3093
|
+
eventTime?: string | undefined;
|
|
3094
|
+
validFrom?: string | undefined;
|
|
3095
|
+
validTo?: string | null | undefined;
|
|
3096
|
+
};
|
|
3097
|
+
meta: {
|
|
3098
|
+
conversationId: string;
|
|
3099
|
+
sessionId: string;
|
|
3100
|
+
sessionCreated: boolean;
|
|
3101
|
+
conversationCreated: boolean;
|
|
3102
|
+
};
|
|
3103
|
+
}>>;
|
|
3104
|
+
/**
|
|
3105
|
+
* Response from creating a memory, includes the memory and session/conversation metadata
|
|
3106
|
+
* @typedef {CreateMemoryResponse} createMemoryResponse - Response from creating a memory, includes the memory and session/conversation metadata - Response from creating a memory, includes the memory and session/conversation metadata
|
|
3107
|
+
* @property {Memory}
|
|
3108
|
+
* @property {CreateMemoryResponseMeta}
|
|
3109
|
+
*/
|
|
3110
|
+
type CreateMemoryResponse = z.infer<typeof createMemoryResponse>;
|
|
3111
|
+
|
|
3112
|
+
/**
|
|
3113
|
+
* The shape of the model inside the application code - what the users use
|
|
3114
|
+
*/
|
|
3115
|
+
declare const searchRequest: z.ZodLazy<z.ZodObject<{
|
|
3116
|
+
query: z.ZodString;
|
|
3117
|
+
mode: z.ZodOptional<z.ZodString>;
|
|
3118
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
3119
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
3120
|
+
asOfTime: z.ZodOptional<z.ZodString>;
|
|
3121
|
+
validAtTime: z.ZodOptional<z.ZodString>;
|
|
3122
|
+
eventTimeFrom: z.ZodOptional<z.ZodString>;
|
|
3123
|
+
eventTimeTo: z.ZodOptional<z.ZodString>;
|
|
3124
|
+
ingestionTimeFrom: z.ZodOptional<z.ZodString>;
|
|
3125
|
+
ingestionTimeTo: z.ZodOptional<z.ZodString>;
|
|
3126
|
+
includeExpired: z.ZodOptional<z.ZodBoolean>;
|
|
3127
|
+
temporalMode: z.ZodOptional<z.ZodString>;
|
|
3128
|
+
}, "strip", z.ZodTypeAny, {
|
|
3129
|
+
query: string;
|
|
3130
|
+
mode?: string | undefined;
|
|
3131
|
+
limit?: number | undefined;
|
|
3132
|
+
offset?: number | undefined;
|
|
3133
|
+
asOfTime?: string | undefined;
|
|
3134
|
+
validAtTime?: string | undefined;
|
|
3135
|
+
eventTimeFrom?: string | undefined;
|
|
3136
|
+
eventTimeTo?: string | undefined;
|
|
3137
|
+
ingestionTimeFrom?: string | undefined;
|
|
3138
|
+
ingestionTimeTo?: string | undefined;
|
|
3139
|
+
includeExpired?: boolean | undefined;
|
|
3140
|
+
temporalMode?: string | undefined;
|
|
3141
|
+
}, {
|
|
3142
|
+
query: string;
|
|
3143
|
+
mode?: string | undefined;
|
|
3144
|
+
limit?: number | undefined;
|
|
3145
|
+
offset?: number | undefined;
|
|
3146
|
+
asOfTime?: string | undefined;
|
|
3147
|
+
validAtTime?: string | undefined;
|
|
3148
|
+
eventTimeFrom?: string | undefined;
|
|
3149
|
+
eventTimeTo?: string | undefined;
|
|
3150
|
+
ingestionTimeFrom?: string | undefined;
|
|
3151
|
+
ingestionTimeTo?: string | undefined;
|
|
3152
|
+
includeExpired?: boolean | undefined;
|
|
3153
|
+
temporalMode?: string | undefined;
|
|
3154
|
+
}>>;
|
|
3155
|
+
/**
|
|
3156
|
+
*
|
|
3157
|
+
* @typedef {SearchRequest} searchRequest
|
|
3158
|
+
* @property {string} - Search query
|
|
3159
|
+
* @property {Mode} - Search mode (defaults to unified)
|
|
3160
|
+
* @property {number} - Maximum number of results (defaults to 20)
|
|
3161
|
+
* @property {number} - Offset for pagination (defaults to 0)
|
|
3162
|
+
* @property {string} - Point-in-time query: show what the system knew at this time (ISO 8601 format)
|
|
3163
|
+
* @property {string} - Validity query: show facts that were valid at this time (ISO 8601 format)
|
|
3164
|
+
* @property {string} - Event time range start (ISO 8601 format)
|
|
3165
|
+
* @property {string} - Event time range end (ISO 8601 format)
|
|
3166
|
+
* @property {string} - Ingestion time range start (ISO 8601 format)
|
|
3167
|
+
* @property {string} - Ingestion time range end (ISO 8601 format)
|
|
3168
|
+
* @property {boolean} - Include expired facts (defaults to false)
|
|
3169
|
+
* @property {TemporalMode} - Temporal query mode: 'current' (only valid now), 'historical' (as of a point in time), 'evolution' (chronological)
|
|
3170
|
+
*/
|
|
3171
|
+
type SearchRequest = z.infer<typeof searchRequest>;
|
|
3172
|
+
|
|
3173
|
+
/**
|
|
3174
|
+
* The shape of the model inside the application code - what the users use
|
|
3175
|
+
*/
|
|
3176
|
+
declare const searchResponse: z.ZodLazy<z.ZodObject<{
|
|
3177
|
+
data: z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
3178
|
+
id: z.ZodString;
|
|
3179
|
+
content: z.ZodString;
|
|
3180
|
+
memoryType: z.ZodString;
|
|
3181
|
+
context: z.ZodOptional<z.ZodString>;
|
|
3182
|
+
topics: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3183
|
+
timestamp: z.ZodOptional<z.ZodString>;
|
|
3184
|
+
eventTime: z.ZodOptional<z.ZodString>;
|
|
3185
|
+
validFrom: z.ZodOptional<z.ZodString>;
|
|
3186
|
+
validTo: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
3187
|
+
createdAt: z.ZodString;
|
|
3188
|
+
updatedAt: z.ZodString;
|
|
3189
|
+
}, "strip", z.ZodTypeAny, {
|
|
3190
|
+
id: string;
|
|
3191
|
+
createdAt: string;
|
|
3192
|
+
content: string;
|
|
3193
|
+
updatedAt: string;
|
|
3194
|
+
memoryType: string;
|
|
3195
|
+
context?: string | undefined;
|
|
3196
|
+
topics?: string[] | undefined;
|
|
3197
|
+
timestamp?: string | undefined;
|
|
3198
|
+
eventTime?: string | undefined;
|
|
3199
|
+
validFrom?: string | undefined;
|
|
3200
|
+
validTo?: string | null | undefined;
|
|
3201
|
+
}, {
|
|
3202
|
+
id: string;
|
|
3203
|
+
createdAt: string;
|
|
3204
|
+
content: string;
|
|
3205
|
+
updatedAt: string;
|
|
3206
|
+
memoryType: string;
|
|
3207
|
+
context?: string | undefined;
|
|
3208
|
+
topics?: string[] | undefined;
|
|
3209
|
+
timestamp?: string | undefined;
|
|
3210
|
+
eventTime?: string | undefined;
|
|
3211
|
+
validFrom?: string | undefined;
|
|
3212
|
+
validTo?: string | null | undefined;
|
|
3213
|
+
}>>, "many">;
|
|
3214
|
+
count: z.ZodNumber;
|
|
3215
|
+
metadata: z.ZodAny;
|
|
3216
|
+
}, "strip", z.ZodTypeAny, {
|
|
3217
|
+
data: {
|
|
3218
|
+
id: string;
|
|
3219
|
+
createdAt: string;
|
|
3220
|
+
content: string;
|
|
3221
|
+
updatedAt: string;
|
|
3222
|
+
memoryType: string;
|
|
3223
|
+
context?: string | undefined;
|
|
3224
|
+
topics?: string[] | undefined;
|
|
3225
|
+
timestamp?: string | undefined;
|
|
3226
|
+
eventTime?: string | undefined;
|
|
3227
|
+
validFrom?: string | undefined;
|
|
3228
|
+
validTo?: string | null | undefined;
|
|
3229
|
+
}[];
|
|
3230
|
+
count: number;
|
|
3231
|
+
metadata?: any;
|
|
3232
|
+
}, {
|
|
3233
|
+
data: {
|
|
3234
|
+
id: string;
|
|
3235
|
+
createdAt: string;
|
|
3236
|
+
content: string;
|
|
3237
|
+
updatedAt: string;
|
|
3238
|
+
memoryType: string;
|
|
3239
|
+
context?: string | undefined;
|
|
3240
|
+
topics?: string[] | undefined;
|
|
3241
|
+
timestamp?: string | undefined;
|
|
3242
|
+
eventTime?: string | undefined;
|
|
3243
|
+
validFrom?: string | undefined;
|
|
3244
|
+
validTo?: string | null | undefined;
|
|
3245
|
+
}[];
|
|
3246
|
+
count: number;
|
|
3247
|
+
metadata?: any;
|
|
3248
|
+
}>>;
|
|
3249
|
+
/**
|
|
3250
|
+
*
|
|
3251
|
+
* @typedef {SearchResponse} searchResponse
|
|
3252
|
+
* @property {Memory[]} - Search results
|
|
3253
|
+
* @property {number} - Total number of results
|
|
3254
|
+
* @property {any} - Search metadata
|
|
3255
|
+
*/
|
|
3256
|
+
type SearchResponse = z.infer<typeof searchResponse>;
|
|
3257
|
+
|
|
3258
|
+
declare class MemoriesService extends BaseService {
|
|
3259
|
+
/**
|
|
3260
|
+
* Retrieve a specific memory by its ID
|
|
3261
|
+
* @param {string} id - The memory ID
|
|
3262
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
3263
|
+
* @returns {Promise<HttpResponse<any>>} - OK
|
|
3264
|
+
*/
|
|
3265
|
+
getMemoryById(id: string, requestConfig?: RequestConfig): Promise<HttpResponse<void>>;
|
|
3266
|
+
/**
|
|
3267
|
+
* Update an existing memory for the authenticated user
|
|
3268
|
+
* @param {string} id - Memory ID
|
|
3269
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
3270
|
+
* @returns {Promise<HttpResponse<UpdateMemoryOkResponse>>} - Memory updated successfully
|
|
3271
|
+
*/
|
|
3272
|
+
updateMemory(id: string, body: UpdateMemoryRequest, requestConfig?: RequestConfig): Promise<HttpResponse<UpdateMemoryOkResponse>>;
|
|
3273
|
+
/**
|
|
3274
|
+
* Delete a memory by its ID
|
|
3275
|
+
* @param {string} id - The memory ID
|
|
3276
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
3277
|
+
* @returns {Promise<HttpResponse<any>>} - No Content
|
|
3278
|
+
*/
|
|
3279
|
+
deleteMemory(id: string, requestConfig?: RequestConfig): Promise<HttpResponse<void>>;
|
|
3280
|
+
/**
|
|
3281
|
+
* List all memories for the authenticated user with pagination
|
|
3282
|
+
* @param {number} [params.limit] - Maximum number of memories to return
|
|
3283
|
+
* @param {number} [params.offset] - Number of memories to skip
|
|
3284
|
+
* @param {number} [params.page] - Page number (alternative to offset)
|
|
3285
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
3286
|
+
* @returns {Promise<HttpResponse<ListMemoriesOkResponse>>} - List of memories
|
|
3287
|
+
*/
|
|
3288
|
+
listMemories(params?: ListMemoriesParams, requestConfig?: RequestConfig): Promise<HttpResponse<ListMemoriesOkResponse>>;
|
|
3289
|
+
/**
|
|
3290
|
+
* Create a new memory for the authenticated user.
|
|
3291
|
+
**Conversation Management:**
|
|
3292
|
+
- Use `conversationId: "NEW"` to create a new conversation automatically
|
|
3293
|
+
- Provide an existing conversation ID to add to that conversation
|
|
3294
|
+
|
|
3295
|
+
**Session Management:**
|
|
3296
|
+
- Sessions are automatically assigned based on 90-minute gap detection
|
|
3297
|
+
- If the last memory in the conversation was within 90 minutes, the same session is reused
|
|
3298
|
+
- If the gap exceeds 90 minutes, a new session is created
|
|
3299
|
+
|
|
3300
|
+
**Response:**
|
|
3301
|
+
- Returns the created memory in `data` field
|
|
3302
|
+
- Returns session/conversation metadata in `meta` field
|
|
3303
|
+
|
|
3304
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
3305
|
+
* @returns {Promise<HttpResponse<CreateMemoryResponse>>} - Memory created successfully
|
|
3306
|
+
*/
|
|
3307
|
+
createMemory(body: CreateMemoryRequest, requestConfig?: RequestConfig): Promise<HttpResponse<CreateMemoryResponse>>;
|
|
3308
|
+
/**
|
|
3309
|
+
* Search memories by content with different modes (unified, content, facts)
|
|
3310
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
3311
|
+
* @returns {Promise<HttpResponse<SearchResponse>>} - Search results
|
|
3312
|
+
*/
|
|
3313
|
+
searchMemories(body: SearchRequest, requestConfig?: RequestConfig): Promise<HttpResponse<SearchResponse>>;
|
|
3314
|
+
}
|
|
3315
|
+
|
|
3316
|
+
declare enum UpdateMemoryRequestMemoryType {
|
|
3317
|
+
EPISODIC = "episodic",
|
|
3318
|
+
SEMANTIC = "semantic",
|
|
3319
|
+
PROCEDURAL = "procedural"
|
|
3320
|
+
}
|
|
3321
|
+
|
|
3322
|
+
/**
|
|
3323
|
+
* The shape of the model inside the application code - what the users use
|
|
3324
|
+
*/
|
|
3325
|
+
declare const pagination: z.ZodLazy<z.ZodObject<{
|
|
3326
|
+
limit: z.ZodNumber;
|
|
3327
|
+
offset: z.ZodNumber;
|
|
3328
|
+
count: z.ZodNumber;
|
|
3329
|
+
}, "strip", z.ZodTypeAny, {
|
|
3330
|
+
count: number;
|
|
3331
|
+
limit: number;
|
|
3332
|
+
offset: number;
|
|
3333
|
+
}, {
|
|
3334
|
+
count: number;
|
|
3335
|
+
limit: number;
|
|
3336
|
+
offset: number;
|
|
3337
|
+
}>>;
|
|
3338
|
+
/**
|
|
3339
|
+
*
|
|
3340
|
+
* @typedef {Pagination} pagination
|
|
3341
|
+
* @property {number} - Maximum number of items per page
|
|
3342
|
+
* @property {number} - Number of items to skip
|
|
3343
|
+
* @property {number} - Total number of items
|
|
3344
|
+
*/
|
|
3345
|
+
type Pagination = z.infer<typeof pagination>;
|
|
3346
|
+
|
|
3347
|
+
declare enum CreateMemoryRequestMemoryType {
|
|
3348
|
+
EPISODIC = "episodic",
|
|
3349
|
+
SEMANTIC = "semantic",
|
|
3350
|
+
PROCEDURAL = "procedural"
|
|
3351
|
+
}
|
|
3352
|
+
|
|
3353
|
+
declare enum Role {
|
|
3354
|
+
USER = "user",
|
|
3355
|
+
ASSISTANT = "assistant",
|
|
3356
|
+
SYSTEM = "system"
|
|
3357
|
+
}
|
|
3358
|
+
|
|
3359
|
+
/**
|
|
3360
|
+
* The shape of the model inside the application code - what the users use
|
|
3361
|
+
*/
|
|
3362
|
+
declare const createMemoryResponseMeta: z.ZodLazy<z.ZodObject<{
|
|
3363
|
+
conversationId: z.ZodString;
|
|
3364
|
+
sessionId: z.ZodString;
|
|
3365
|
+
sessionCreated: z.ZodBoolean;
|
|
3366
|
+
conversationCreated: z.ZodBoolean;
|
|
3367
|
+
}, "strip", z.ZodTypeAny, {
|
|
3368
|
+
conversationId: string;
|
|
3369
|
+
sessionId: string;
|
|
3370
|
+
sessionCreated: boolean;
|
|
3371
|
+
conversationCreated: boolean;
|
|
3372
|
+
}, {
|
|
3373
|
+
conversationId: string;
|
|
3374
|
+
sessionId: string;
|
|
3375
|
+
sessionCreated: boolean;
|
|
3376
|
+
conversationCreated: boolean;
|
|
3377
|
+
}>>;
|
|
3378
|
+
/**
|
|
3379
|
+
*
|
|
3380
|
+
* @typedef {CreateMemoryResponseMeta} createMemoryResponseMeta
|
|
3381
|
+
* @property {string} - Conversation ID (actual ID if "NEW" was provided)
|
|
3382
|
+
* @property {string} - Auto-assigned session ID based on 90-minute gap detection
|
|
3383
|
+
* @property {boolean} - Whether a new session was created (true) or existing session was reused (false)
|
|
3384
|
+
* @property {boolean} - Whether a new conversation was created (true if conversationId was "NEW")
|
|
3385
|
+
*/
|
|
3386
|
+
type CreateMemoryResponseMeta = z.infer<typeof createMemoryResponseMeta>;
|
|
3387
|
+
|
|
3388
|
+
declare enum Mode {
|
|
3389
|
+
UNIFIED = "unified",
|
|
3390
|
+
CONTENT = "content",
|
|
3391
|
+
FACTS = "facts"
|
|
3392
|
+
}
|
|
3393
|
+
|
|
3394
|
+
declare enum TemporalMode {
|
|
3395
|
+
CURRENT = "current",
|
|
3396
|
+
HISTORICAL = "historical",
|
|
3397
|
+
EVOLUTION = "evolution"
|
|
3398
|
+
}
|
|
3399
|
+
|
|
3400
|
+
declare enum NoCache {
|
|
3401
|
+
_1 = "1",
|
|
3402
|
+
TRUE_ = "true"
|
|
3403
|
+
}
|
|
3404
|
+
|
|
3405
|
+
interface GetOpenApiSpecParams {
|
|
3406
|
+
noCache?: NoCache;
|
|
3407
|
+
}
|
|
3408
|
+
interface AnalyzeMemoryQualityParams {
|
|
3409
|
+
includeDetails?: boolean;
|
|
3410
|
+
minQualityThreshold?: number;
|
|
3411
|
+
}
|
|
3412
|
+
|
|
3413
|
+
/**
|
|
3414
|
+
* The shape of the model inside the application code - what the users use
|
|
3415
|
+
*/
|
|
3416
|
+
declare const evaluateFeatureFlagRequest: z.ZodLazy<z.ZodObject<{
|
|
3417
|
+
flagName: z.ZodString;
|
|
3418
|
+
context: z.ZodOptional<z.ZodAny>;
|
|
3419
|
+
}, "strip", z.ZodTypeAny, {
|
|
3420
|
+
flagName: string;
|
|
3421
|
+
context?: any;
|
|
3422
|
+
}, {
|
|
3423
|
+
flagName: string;
|
|
3424
|
+
context?: any;
|
|
3425
|
+
}>>;
|
|
3426
|
+
/**
|
|
3427
|
+
*
|
|
3428
|
+
* @typedef {EvaluateFeatureFlagRequest} evaluateFeatureFlagRequest
|
|
3429
|
+
* @property {string}
|
|
3430
|
+
* @property {any}
|
|
3431
|
+
*/
|
|
3432
|
+
type EvaluateFeatureFlagRequest = z.infer<typeof evaluateFeatureFlagRequest>;
|
|
3433
|
+
|
|
3434
|
+
/**
|
|
3435
|
+
* The shape of the model inside the application code - what the users use
|
|
3436
|
+
*/
|
|
3437
|
+
declare const analyzeMemoryQualityOkResponse: z.ZodLazy<z.ZodObject<{
|
|
3438
|
+
data: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
3439
|
+
totalMemories: z.ZodOptional<z.ZodNumber>;
|
|
3440
|
+
qualityDistribution: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
3441
|
+
high: z.ZodOptional<z.ZodNumber>;
|
|
3442
|
+
medium: z.ZodOptional<z.ZodNumber>;
|
|
3443
|
+
low: z.ZodOptional<z.ZodNumber>;
|
|
3444
|
+
}, "strip", z.ZodTypeAny, {
|
|
3445
|
+
high?: number | undefined;
|
|
3446
|
+
medium?: number | undefined;
|
|
3447
|
+
low?: number | undefined;
|
|
3448
|
+
}, {
|
|
3449
|
+
high?: number | undefined;
|
|
3450
|
+
medium?: number | undefined;
|
|
3451
|
+
low?: number | undefined;
|
|
3452
|
+
}>>>;
|
|
3453
|
+
averageQuality: z.ZodOptional<z.ZodNumber>;
|
|
3454
|
+
/**
|
|
3455
|
+
*
|
|
3456
|
+
* @typedef {AnalyzeMemoryQualityOkResponse} analyzeMemoryQualityOkResponse
|
|
3457
|
+
* @property {AnalyzeMemoryQualityOkResponseData}
|
|
3458
|
+
*/
|
|
3459
|
+
pruningCandidates: z.ZodOptional<z.ZodNumber>;
|
|
3460
|
+
}, "strip", z.ZodTypeAny, {
|
|
3461
|
+
totalMemories?: number | undefined;
|
|
3462
|
+
qualityDistribution?: {
|
|
3463
|
+
high?: number | undefined;
|
|
3464
|
+
medium?: number | undefined;
|
|
3465
|
+
low?: number | undefined;
|
|
3466
|
+
} | undefined;
|
|
3467
|
+
averageQuality?: number | undefined;
|
|
3468
|
+
pruningCandidates?: number | undefined;
|
|
3469
|
+
}, {
|
|
3470
|
+
totalMemories?: number | undefined;
|
|
3471
|
+
qualityDistribution?: {
|
|
3472
|
+
high?: number | undefined;
|
|
3473
|
+
medium?: number | undefined;
|
|
3474
|
+
low?: number | undefined;
|
|
3475
|
+
} | undefined;
|
|
3476
|
+
averageQuality?: number | undefined;
|
|
3477
|
+
pruningCandidates?: number | undefined;
|
|
3478
|
+
}>>>;
|
|
3479
|
+
}, "strip", z.ZodTypeAny, {
|
|
3480
|
+
data?: {
|
|
3481
|
+
totalMemories?: number | undefined;
|
|
3482
|
+
qualityDistribution?: {
|
|
3483
|
+
high?: number | undefined;
|
|
3484
|
+
medium?: number | undefined;
|
|
3485
|
+
low?: number | undefined;
|
|
3486
|
+
} | undefined;
|
|
3487
|
+
averageQuality?: number | undefined;
|
|
3488
|
+
pruningCandidates?: number | undefined;
|
|
3489
|
+
} | undefined;
|
|
3490
|
+
}, {
|
|
3491
|
+
data?: {
|
|
3492
|
+
totalMemories?: number | undefined;
|
|
3493
|
+
qualityDistribution?: {
|
|
3494
|
+
high?: number | undefined;
|
|
3495
|
+
medium?: number | undefined;
|
|
3496
|
+
low?: number | undefined;
|
|
3497
|
+
} | undefined;
|
|
3498
|
+
averageQuality?: number | undefined;
|
|
3499
|
+
pruningCandidates?: number | undefined;
|
|
3500
|
+
} | undefined;
|
|
3501
|
+
}>>;
|
|
3502
|
+
/**
|
|
3503
|
+
*
|
|
3504
|
+
* @typedef {AnalyzeMemoryQualityOkResponse} analyzeMemoryQualityOkResponse
|
|
3505
|
+
* @property {AnalyzeMemoryQualityOkResponseData}
|
|
3506
|
+
*/
|
|
3507
|
+
type AnalyzeMemoryQualityOkResponse = z.infer<typeof analyzeMemoryQualityOkResponse>;
|
|
3508
|
+
|
|
3509
|
+
/**
|
|
3510
|
+
* The shape of the model inside the application code - what the users use
|
|
3511
|
+
*/
|
|
3512
|
+
declare const pruneMemoriesRequest: z.ZodLazy<z.ZodObject<{
|
|
3513
|
+
targetReduction: z.ZodOptional<z.ZodNumber>;
|
|
3514
|
+
minQualityThreshold: z.ZodOptional<z.ZodNumber>;
|
|
3515
|
+
preserveRecent: z.ZodOptional<z.ZodBoolean>;
|
|
3516
|
+
recentDaysToPreserve: z.ZodOptional<z.ZodNumber>;
|
|
3517
|
+
dryRun: z.ZodOptional<z.ZodBoolean>;
|
|
3518
|
+
}, "strip", z.ZodTypeAny, {
|
|
3519
|
+
targetReduction?: number | undefined;
|
|
3520
|
+
minQualityThreshold?: number | undefined;
|
|
3521
|
+
preserveRecent?: boolean | undefined;
|
|
3522
|
+
recentDaysToPreserve?: number | undefined;
|
|
3523
|
+
dryRun?: boolean | undefined;
|
|
3524
|
+
}, {
|
|
3525
|
+
targetReduction?: number | undefined;
|
|
3526
|
+
minQualityThreshold?: number | undefined;
|
|
3527
|
+
preserveRecent?: boolean | undefined;
|
|
3528
|
+
recentDaysToPreserve?: number | undefined;
|
|
3529
|
+
dryRun?: boolean | undefined;
|
|
3530
|
+
}>>;
|
|
3531
|
+
/**
|
|
3532
|
+
*
|
|
3533
|
+
* @typedef {PruneMemoriesRequest} pruneMemoriesRequest
|
|
3534
|
+
* @property {number} - Number of memories to prune
|
|
3535
|
+
* @property {number} - Prune memories below this score (default 0.4)
|
|
3536
|
+
* @property {boolean} - Don't prune recent memories (default true)
|
|
3537
|
+
* @property {number} - Days to consider "recent" (default 7)
|
|
3538
|
+
* @property {boolean} - Return what would be pruned without deleting (default false)
|
|
3539
|
+
*/
|
|
3540
|
+
type PruneMemoriesRequest = z.infer<typeof pruneMemoriesRequest>;
|
|
3541
|
+
|
|
3542
|
+
/**
|
|
3543
|
+
* The shape of the model inside the application code - what the users use
|
|
3544
|
+
*/
|
|
3545
|
+
declare const pruneMemoriesOkResponse: z.ZodLazy<z.ZodObject<{
|
|
3546
|
+
data: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
3547
|
+
prunedCount: z.ZodOptional<z.ZodNumber>;
|
|
3548
|
+
prunedIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3549
|
+
dryRun: z.ZodOptional<z.ZodBoolean>;
|
|
3550
|
+
}, "strip", z.ZodTypeAny, {
|
|
3551
|
+
prunedCount?: number | undefined;
|
|
3552
|
+
prunedIds?: string[] | undefined;
|
|
3553
|
+
dryRun?: boolean | undefined;
|
|
3554
|
+
}, {
|
|
3555
|
+
prunedCount?: number | undefined;
|
|
3556
|
+
prunedIds?: string[] | undefined;
|
|
3557
|
+
dryRun?: boolean | undefined;
|
|
3558
|
+
}>>>;
|
|
3559
|
+
}, "strip", z.ZodTypeAny, {
|
|
3560
|
+
data?: {
|
|
3561
|
+
prunedCount?: number | undefined;
|
|
3562
|
+
prunedIds?: string[] | undefined;
|
|
3563
|
+
dryRun?: boolean | undefined;
|
|
3564
|
+
} | undefined;
|
|
3565
|
+
}, {
|
|
3566
|
+
data?: {
|
|
3567
|
+
prunedCount?: number | undefined;
|
|
3568
|
+
prunedIds?: string[] | undefined;
|
|
3569
|
+
dryRun?: boolean | undefined;
|
|
3570
|
+
} | undefined;
|
|
3571
|
+
}>>;
|
|
3572
|
+
/**
|
|
3573
|
+
*
|
|
3574
|
+
* @typedef {PruneMemoriesOkResponse} pruneMemoriesOkResponse
|
|
3575
|
+
* @property {PruneMemoriesOkResponseData}
|
|
3576
|
+
*/
|
|
3577
|
+
type PruneMemoriesOkResponse = z.infer<typeof pruneMemoriesOkResponse>;
|
|
3578
|
+
|
|
3579
|
+
declare class SystemService extends BaseService {
|
|
3580
|
+
/**
|
|
3581
|
+
* Returns the OpenAPI 3.x specification for the entire API. This endpoint is used by CI/CD to sync the API Gateway.
|
|
3582
|
+
* @param {NoCache} [params.noCache] - Bypass cache and regenerate specification
|
|
3583
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
3584
|
+
* @returns {Promise<HttpResponse<any>>} - OpenAPI specification
|
|
3585
|
+
*/
|
|
3586
|
+
getOpenApiSpec(params?: GetOpenApiSpecParams, requestConfig?: RequestConfig): Promise<HttpResponse<any>>;
|
|
3587
|
+
/**
|
|
3588
|
+
* Get the current health status of the system including database connectivity
|
|
3589
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
3590
|
+
* @returns {Promise<HttpResponse<any>>} - OK
|
|
3591
|
+
*/
|
|
3592
|
+
getSystemHealth(requestConfig?: RequestConfig): Promise<HttpResponse<void>>;
|
|
3593
|
+
/**
|
|
3594
|
+
* Get database statistics and context information
|
|
3595
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
3596
|
+
* @returns {Promise<HttpResponse<any>>} - OK
|
|
3597
|
+
*/
|
|
3598
|
+
getContextStatus(requestConfig?: RequestConfig): Promise<HttpResponse<void>>;
|
|
3599
|
+
/**
|
|
3600
|
+
* Get all feature flags for the authenticated user
|
|
3601
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
3602
|
+
* @returns {Promise<HttpResponse<any>>} - OK
|
|
3603
|
+
*/
|
|
3604
|
+
getFeatureFlags(requestConfig?: RequestConfig): Promise<HttpResponse<void>>;
|
|
3605
|
+
/**
|
|
3606
|
+
* Evaluate a specific feature flag for the authenticated user
|
|
3607
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
3608
|
+
* @returns {Promise<HttpResponse<any>>} - OK
|
|
3609
|
+
*/
|
|
3610
|
+
evaluateFeatureFlag(body: EvaluateFeatureFlagRequest, requestConfig?: RequestConfig): Promise<HttpResponse<void>>;
|
|
3611
|
+
/**
|
|
3612
|
+
* Analyze the quality distribution of memories for the authenticated user
|
|
3613
|
+
* @param {boolean} [params.includeDetails] - Include detailed pruning candidate information
|
|
3614
|
+
* @param {number} [params.minQualityThreshold] - Minimum quality threshold for pruning candidates (default 0.4)
|
|
3615
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
3616
|
+
* @returns {Promise<HttpResponse<AnalyzeMemoryQualityOkResponse>>} - OK
|
|
3617
|
+
*/
|
|
3618
|
+
analyzeMemoryQuality(params?: AnalyzeMemoryQualityParams, requestConfig?: RequestConfig): Promise<HttpResponse<AnalyzeMemoryQualityOkResponse>>;
|
|
3619
|
+
/**
|
|
3620
|
+
* Prune (soft delete) low-quality memories for the authenticated user
|
|
3621
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
3622
|
+
* @returns {Promise<HttpResponse<PruneMemoriesOkResponse>>} - OK
|
|
3623
|
+
*/
|
|
3624
|
+
pruneMemories(body: PruneMemoriesRequest, requestConfig?: RequestConfig): Promise<HttpResponse<PruneMemoriesOkResponse>>;
|
|
3625
|
+
}
|
|
3626
|
+
|
|
3627
|
+
/**
|
|
3628
|
+
* The shape of the model inside the application code - what the users use
|
|
3629
|
+
*/
|
|
3630
|
+
declare const analyzeMemoryQualityOkResponseData: z.ZodLazy<z.ZodObject<{
|
|
3631
|
+
totalMemories: z.ZodOptional<z.ZodNumber>;
|
|
3632
|
+
qualityDistribution: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
3633
|
+
high: z.ZodOptional<z.ZodNumber>;
|
|
3634
|
+
medium: z.ZodOptional<z.ZodNumber>;
|
|
3635
|
+
low: z.ZodOptional<z.ZodNumber>;
|
|
3636
|
+
}, "strip", z.ZodTypeAny, {
|
|
3637
|
+
high?: number | undefined;
|
|
3638
|
+
medium?: number | undefined;
|
|
3639
|
+
low?: number | undefined;
|
|
3640
|
+
}, {
|
|
3641
|
+
high?: number | undefined;
|
|
3642
|
+
medium?: number | undefined;
|
|
3643
|
+
low?: number | undefined;
|
|
3644
|
+
}>>>;
|
|
3645
|
+
averageQuality: z.ZodOptional<z.ZodNumber>;
|
|
3646
|
+
pruningCandidates: z.ZodOptional<z.ZodNumber>;
|
|
3647
|
+
}, "strip", z.ZodTypeAny, {
|
|
3648
|
+
totalMemories?: number | undefined;
|
|
3649
|
+
qualityDistribution?: {
|
|
3650
|
+
high?: number | undefined;
|
|
3651
|
+
medium?: number | undefined;
|
|
3652
|
+
low?: number | undefined;
|
|
3653
|
+
} | undefined;
|
|
3654
|
+
averageQuality?: number | undefined;
|
|
3655
|
+
pruningCandidates?: number | undefined;
|
|
3656
|
+
}, {
|
|
3657
|
+
totalMemories?: number | undefined;
|
|
3658
|
+
qualityDistribution?: {
|
|
3659
|
+
high?: number | undefined;
|
|
3660
|
+
medium?: number | undefined;
|
|
3661
|
+
low?: number | undefined;
|
|
3662
|
+
} | undefined;
|
|
3663
|
+
averageQuality?: number | undefined;
|
|
3664
|
+
pruningCandidates?: number | undefined;
|
|
3665
|
+
}>>;
|
|
3666
|
+
/**
|
|
3667
|
+
*
|
|
3668
|
+
* @typedef {AnalyzeMemoryQualityOkResponseData} analyzeMemoryQualityOkResponseData
|
|
3669
|
+
* @property {number}
|
|
3670
|
+
* @property {QualityDistribution}
|
|
3671
|
+
* @property {number}
|
|
3672
|
+
* @property {number}
|
|
3673
|
+
*/
|
|
3674
|
+
type AnalyzeMemoryQualityOkResponseData = z.infer<typeof analyzeMemoryQualityOkResponseData>;
|
|
3675
|
+
|
|
3676
|
+
/**
|
|
3677
|
+
* The shape of the model inside the application code - what the users use
|
|
3678
|
+
*/
|
|
3679
|
+
declare const qualityDistribution: z.ZodLazy<z.ZodObject<{
|
|
3680
|
+
high: z.ZodOptional<z.ZodNumber>;
|
|
3681
|
+
medium: z.ZodOptional<z.ZodNumber>;
|
|
3682
|
+
low: z.ZodOptional<z.ZodNumber>;
|
|
3683
|
+
}, "strip", z.ZodTypeAny, {
|
|
3684
|
+
high?: number | undefined;
|
|
3685
|
+
medium?: number | undefined;
|
|
3686
|
+
low?: number | undefined;
|
|
3687
|
+
}, {
|
|
3688
|
+
high?: number | undefined;
|
|
3689
|
+
medium?: number | undefined;
|
|
3690
|
+
low?: number | undefined;
|
|
3691
|
+
}>>;
|
|
3692
|
+
/**
|
|
3693
|
+
*
|
|
3694
|
+
* @typedef {QualityDistribution} qualityDistribution
|
|
3695
|
+
* @property {number}
|
|
3696
|
+
* @property {number}
|
|
3697
|
+
* @property {number}
|
|
3698
|
+
*/
|
|
3699
|
+
type QualityDistribution = z.infer<typeof qualityDistribution>;
|
|
3700
|
+
|
|
3701
|
+
/**
|
|
3702
|
+
* The shape of the model inside the application code - what the users use
|
|
3703
|
+
*/
|
|
3704
|
+
declare const pruneMemoriesOkResponseData: z.ZodLazy<z.ZodObject<{
|
|
3705
|
+
prunedCount: z.ZodOptional<z.ZodNumber>;
|
|
3706
|
+
prunedIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3707
|
+
dryRun: z.ZodOptional<z.ZodBoolean>;
|
|
3708
|
+
}, "strip", z.ZodTypeAny, {
|
|
3709
|
+
prunedCount?: number | undefined;
|
|
3710
|
+
prunedIds?: string[] | undefined;
|
|
3711
|
+
dryRun?: boolean | undefined;
|
|
3712
|
+
}, {
|
|
3713
|
+
prunedCount?: number | undefined;
|
|
3714
|
+
prunedIds?: string[] | undefined;
|
|
3715
|
+
dryRun?: boolean | undefined;
|
|
3716
|
+
}>>;
|
|
3717
|
+
/**
|
|
3718
|
+
*
|
|
3719
|
+
* @typedef {PruneMemoriesOkResponseData} pruneMemoriesOkResponseData
|
|
3720
|
+
* @property {number}
|
|
3721
|
+
* @property {string[]}
|
|
3722
|
+
* @property {boolean}
|
|
3723
|
+
*/
|
|
3724
|
+
type PruneMemoriesOkResponseData = z.infer<typeof pruneMemoriesOkResponseData>;
|
|
3725
|
+
|
|
3726
|
+
/**
|
|
3727
|
+
* The shape of the model inside the application code - what the users use
|
|
3728
|
+
*/
|
|
3729
|
+
declare const listPatternsOkResponse: z.ZodLazy<z.ZodObject<{
|
|
3730
|
+
data: z.ZodOptional<z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
3731
|
+
id: z.ZodString;
|
|
3732
|
+
type: z.ZodString;
|
|
3733
|
+
description: z.ZodString;
|
|
3734
|
+
confidence: z.ZodNumber;
|
|
3735
|
+
}, "strip", z.ZodTypeAny, {
|
|
3736
|
+
type: string;
|
|
3737
|
+
id: string;
|
|
3738
|
+
description: string;
|
|
3739
|
+
confidence: number;
|
|
3740
|
+
}, {
|
|
3741
|
+
type: string;
|
|
3742
|
+
id: string;
|
|
3743
|
+
description: string;
|
|
3744
|
+
confidence: number;
|
|
3745
|
+
}>>, "many">>;
|
|
3746
|
+
pagination: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
3747
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
3748
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
3749
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
3750
|
+
}, "strip", z.ZodTypeAny, {
|
|
3751
|
+
limit?: number | undefined;
|
|
3752
|
+
offset?: number | undefined;
|
|
3753
|
+
count?: number | undefined;
|
|
3754
|
+
}, {
|
|
3755
|
+
limit?: number | undefined;
|
|
3756
|
+
offset?: number | undefined;
|
|
3757
|
+
count?: number | undefined;
|
|
3758
|
+
}>>>;
|
|
3759
|
+
}, "strip", z.ZodTypeAny, {
|
|
3760
|
+
data?: {
|
|
3761
|
+
type: string;
|
|
3762
|
+
id: string;
|
|
3763
|
+
description: string;
|
|
3764
|
+
confidence: number;
|
|
3765
|
+
}[] | undefined;
|
|
3766
|
+
pagination?: {
|
|
3767
|
+
limit?: number | undefined;
|
|
3768
|
+
offset?: number | undefined;
|
|
3769
|
+
count?: number | undefined;
|
|
3770
|
+
} | undefined;
|
|
3771
|
+
}, {
|
|
3772
|
+
data?: {
|
|
3773
|
+
type: string;
|
|
3774
|
+
id: string;
|
|
3775
|
+
description: string;
|
|
3776
|
+
confidence: number;
|
|
3777
|
+
}[] | undefined;
|
|
3778
|
+
pagination?: {
|
|
3779
|
+
limit?: number | undefined;
|
|
3780
|
+
offset?: number | undefined;
|
|
3781
|
+
count?: number | undefined;
|
|
3782
|
+
} | undefined;
|
|
3783
|
+
}>>;
|
|
3784
|
+
/**
|
|
3785
|
+
*
|
|
3786
|
+
* @typedef {ListPatternsOkResponse} listPatternsOkResponse
|
|
3787
|
+
* @property {Pattern[]}
|
|
3788
|
+
* @property {ListPatternsOkResponsePagination}
|
|
3789
|
+
*/
|
|
3790
|
+
type ListPatternsOkResponse = z.infer<typeof listPatternsOkResponse>;
|
|
3791
|
+
|
|
3792
|
+
interface ListPatternsParams {
|
|
3793
|
+
limit?: number;
|
|
3794
|
+
offset?: number;
|
|
3795
|
+
}
|
|
3796
|
+
|
|
3797
|
+
/**
|
|
3798
|
+
* The shape of the model inside the application code - what the users use
|
|
3799
|
+
*/
|
|
3800
|
+
declare const compilePatternsRequest: z.ZodLazy<z.ZodObject<{
|
|
3801
|
+
minOccurrences: z.ZodOptional<z.ZodNumber>;
|
|
3802
|
+
timeWindow: z.ZodOptional<z.ZodString>;
|
|
3803
|
+
}, "strip", z.ZodTypeAny, {
|
|
3804
|
+
minOccurrences?: number | undefined;
|
|
3805
|
+
timeWindow?: string | undefined;
|
|
3806
|
+
}, {
|
|
3807
|
+
minOccurrences?: number | undefined;
|
|
3808
|
+
timeWindow?: string | undefined;
|
|
3809
|
+
}>>;
|
|
3810
|
+
/**
|
|
3811
|
+
*
|
|
3812
|
+
* @typedef {CompilePatternsRequest} compilePatternsRequest
|
|
3813
|
+
* @property {number}
|
|
3814
|
+
* @property {string}
|
|
3815
|
+
*/
|
|
3816
|
+
type CompilePatternsRequest = z.infer<typeof compilePatternsRequest>;
|
|
3817
|
+
|
|
3818
|
+
/**
|
|
3819
|
+
* The shape of the model inside the application code - what the users use
|
|
3820
|
+
*/
|
|
3821
|
+
declare const detectPatternsRequest: z.ZodLazy<z.ZodObject<{
|
|
3822
|
+
contextFilter: z.ZodOptional<z.ZodString>;
|
|
3823
|
+
timeframeStart: z.ZodOptional<z.ZodString>;
|
|
3824
|
+
timeframeEnd: z.ZodOptional<z.ZodString>;
|
|
3825
|
+
minConfidence: z.ZodOptional<z.ZodNumber>;
|
|
3826
|
+
maxResults: z.ZodOptional<z.ZodNumber>;
|
|
3827
|
+
autoStore: z.ZodOptional<z.ZodBoolean>;
|
|
3828
|
+
}, "strip", z.ZodTypeAny, {
|
|
3829
|
+
contextFilter?: string | undefined;
|
|
3830
|
+
timeframeStart?: string | undefined;
|
|
3831
|
+
timeframeEnd?: string | undefined;
|
|
3832
|
+
minConfidence?: number | undefined;
|
|
3833
|
+
maxResults?: number | undefined;
|
|
3834
|
+
autoStore?: boolean | undefined;
|
|
3835
|
+
}, {
|
|
3836
|
+
contextFilter?: string | undefined;
|
|
3837
|
+
timeframeStart?: string | undefined;
|
|
3838
|
+
timeframeEnd?: string | undefined;
|
|
3839
|
+
minConfidence?: number | undefined;
|
|
3840
|
+
maxResults?: number | undefined;
|
|
3841
|
+
autoStore?: boolean | undefined;
|
|
3842
|
+
}>>;
|
|
3843
|
+
/**
|
|
3844
|
+
*
|
|
3845
|
+
* @typedef {DetectPatternsRequest} detectPatternsRequest
|
|
3846
|
+
* @property {string} - Filter patterns by context
|
|
3847
|
+
* @property {string} - Start of detection timeframe
|
|
3848
|
+
* @property {string} - End of detection timeframe
|
|
3849
|
+
* @property {number} - Minimum confidence threshold
|
|
3850
|
+
* @property {number} - Maximum patterns to return
|
|
3851
|
+
* @property {boolean} - Automatically store detected patterns
|
|
3852
|
+
*/
|
|
3853
|
+
type DetectPatternsRequest = z.infer<typeof detectPatternsRequest>;
|
|
3854
|
+
|
|
3855
|
+
/**
|
|
3856
|
+
* The shape of the model inside the application code - what the users use
|
|
3857
|
+
*/
|
|
3858
|
+
declare const analyzePatternsRequest: z.ZodLazy<z.ZodObject<{
|
|
3859
|
+
timeRange: z.ZodOptional<z.ZodNumber>;
|
|
3860
|
+
groupBy: z.ZodOptional<z.ZodString>;
|
|
3861
|
+
includeDetails: z.ZodOptional<z.ZodBoolean>;
|
|
3862
|
+
}, "strip", z.ZodTypeAny, {
|
|
3863
|
+
timeRange?: number | undefined;
|
|
3864
|
+
groupBy?: string | undefined;
|
|
3865
|
+
includeDetails?: boolean | undefined;
|
|
3866
|
+
}, {
|
|
3867
|
+
timeRange?: number | undefined;
|
|
3868
|
+
groupBy?: string | undefined;
|
|
3869
|
+
includeDetails?: boolean | undefined;
|
|
3870
|
+
}>>;
|
|
3871
|
+
/**
|
|
3872
|
+
*
|
|
3873
|
+
* @typedef {AnalyzePatternsRequest} analyzePatternsRequest
|
|
3874
|
+
* @property {number} - Analysis time range in days
|
|
3875
|
+
* @property {GroupBy} - Group analysis by criteria
|
|
3876
|
+
* @property {boolean} - Include detailed breakdown
|
|
3877
|
+
*/
|
|
3878
|
+
type AnalyzePatternsRequest = z.infer<typeof analyzePatternsRequest>;
|
|
3879
|
+
|
|
3880
|
+
/**
|
|
3881
|
+
* The shape of the model inside the application code - what the users use
|
|
3882
|
+
*/
|
|
3883
|
+
declare const updatePatternRequest: z.ZodLazy<z.ZodObject<{
|
|
3884
|
+
name: z.ZodOptional<z.ZodString>;
|
|
3885
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3886
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
3887
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
3888
|
+
}, "strip", z.ZodTypeAny, {
|
|
3889
|
+
name?: string | undefined;
|
|
3890
|
+
description?: string | undefined;
|
|
3891
|
+
confidence?: number | undefined;
|
|
3892
|
+
metadata?: any;
|
|
3893
|
+
}, {
|
|
3894
|
+
name?: string | undefined;
|
|
3895
|
+
description?: string | undefined;
|
|
3896
|
+
confidence?: number | undefined;
|
|
3897
|
+
metadata?: any;
|
|
3898
|
+
}>>;
|
|
3899
|
+
/**
|
|
3900
|
+
*
|
|
3901
|
+
* @typedef {UpdatePatternRequest} updatePatternRequest
|
|
3902
|
+
* @property {string}
|
|
3903
|
+
* @property {string}
|
|
3904
|
+
* @property {number}
|
|
3905
|
+
* @property {any}
|
|
3906
|
+
*/
|
|
3907
|
+
type UpdatePatternRequest = z.infer<typeof updatePatternRequest>;
|
|
3908
|
+
|
|
3909
|
+
/**
|
|
3910
|
+
* The shape of the model inside the application code - what the users use
|
|
3911
|
+
*/
|
|
3912
|
+
declare const recordPatternFeedbackRequest: z.ZodLazy<z.ZodObject<{
|
|
3913
|
+
patternId: z.ZodString;
|
|
3914
|
+
feedback: z.ZodString;
|
|
3915
|
+
}, "strip", z.ZodTypeAny, {
|
|
3916
|
+
patternId: string;
|
|
3917
|
+
feedback: string;
|
|
3918
|
+
}, {
|
|
3919
|
+
patternId: string;
|
|
3920
|
+
feedback: string;
|
|
3921
|
+
}>>;
|
|
3922
|
+
/**
|
|
3923
|
+
*
|
|
3924
|
+
* @typedef {RecordPatternFeedbackRequest} recordPatternFeedbackRequest
|
|
3925
|
+
* @property {string}
|
|
3926
|
+
* @property {string}
|
|
3927
|
+
*/
|
|
3928
|
+
type RecordPatternFeedbackRequest = z.infer<typeof recordPatternFeedbackRequest>;
|
|
3929
|
+
|
|
3930
|
+
declare class PatternsService extends BaseService {
|
|
3931
|
+
/**
|
|
3932
|
+
* List all patterns for the authenticated user
|
|
3933
|
+
* @param {number} [params.limit] - Maximum number of patterns to return
|
|
3934
|
+
* @param {number} [params.offset] - Number of patterns to skip
|
|
3935
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
3936
|
+
* @returns {Promise<HttpResponse<ListPatternsOkResponse>>} - List of patterns retrieved successfully
|
|
3937
|
+
*/
|
|
3938
|
+
listPatterns(params?: ListPatternsParams, requestConfig?: RequestConfig): Promise<HttpResponse<ListPatternsOkResponse>>;
|
|
3939
|
+
/**
|
|
3940
|
+
* Compile patterns from user's memories
|
|
3941
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
3942
|
+
* @returns {Promise<HttpResponse<any>>} - OK
|
|
3943
|
+
*/
|
|
3944
|
+
compilePatterns(body: CompilePatternsRequest, requestConfig?: RequestConfig): Promise<HttpResponse<void>>;
|
|
3945
|
+
/**
|
|
3946
|
+
* Run pattern detection algorithms to identify recurring behavioral patterns
|
|
3947
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
3948
|
+
* @returns {Promise<HttpResponse<any>>} - Patterns detected successfully
|
|
3949
|
+
*/
|
|
3950
|
+
detectPatterns(body: DetectPatternsRequest, requestConfig?: RequestConfig): Promise<HttpResponse<void>>;
|
|
3951
|
+
/**
|
|
3952
|
+
* Analyze pattern trends, correlations, and generate insights
|
|
3953
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
3954
|
+
* @returns {Promise<HttpResponse<any>>} - Analysis completed successfully
|
|
3955
|
+
*/
|
|
3956
|
+
analyzePatterns(body: AnalyzePatternsRequest, requestConfig?: RequestConfig): Promise<HttpResponse<void>>;
|
|
3957
|
+
/**
|
|
3958
|
+
* Update an existing pattern with partial data
|
|
3959
|
+
* @param {string} id - The pattern ID
|
|
3960
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
3961
|
+
* @returns {Promise<HttpResponse<any>>} - OK
|
|
3962
|
+
*/
|
|
3963
|
+
updatePattern(id: string, body: UpdatePatternRequest, requestConfig?: RequestConfig): Promise<HttpResponse<void>>;
|
|
3964
|
+
/**
|
|
3965
|
+
* Record feedback on a pattern
|
|
3966
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
3967
|
+
* @returns {Promise<HttpResponse<any>>} - OK
|
|
3968
|
+
*/
|
|
3969
|
+
recordPatternFeedback(body: RecordPatternFeedbackRequest, requestConfig?: RequestConfig): Promise<HttpResponse<void>>;
|
|
3970
|
+
}
|
|
3971
|
+
|
|
3972
|
+
/**
|
|
3973
|
+
* The shape of the model inside the application code - what the users use
|
|
3974
|
+
*/
|
|
3975
|
+
declare const pattern: z.ZodLazy<z.ZodObject<{
|
|
3976
|
+
id: z.ZodString;
|
|
3977
|
+
type: z.ZodString;
|
|
3978
|
+
description: z.ZodString;
|
|
3979
|
+
confidence: z.ZodNumber;
|
|
3980
|
+
}, "strip", z.ZodTypeAny, {
|
|
3981
|
+
type: string;
|
|
3982
|
+
id: string;
|
|
3983
|
+
description: string;
|
|
3984
|
+
confidence: number;
|
|
3985
|
+
}, {
|
|
3986
|
+
type: string;
|
|
3987
|
+
id: string;
|
|
3988
|
+
description: string;
|
|
3989
|
+
confidence: number;
|
|
3990
|
+
}>>;
|
|
3991
|
+
/**
|
|
3992
|
+
*
|
|
3993
|
+
* @typedef {Pattern} pattern
|
|
3994
|
+
* @property {string} - Unique pattern identifier
|
|
3995
|
+
* @property {string} - Pattern type
|
|
3996
|
+
* @property {string} - Pattern description
|
|
3997
|
+
* @property {number} - Confidence score (0-1)
|
|
3998
|
+
*/
|
|
3999
|
+
type Pattern = z.infer<typeof pattern>;
|
|
4000
|
+
|
|
4001
|
+
/**
|
|
4002
|
+
* The shape of the model inside the application code - what the users use
|
|
4003
|
+
*/
|
|
4004
|
+
declare const listPatternsOkResponsePagination: z.ZodLazy<z.ZodObject<{
|
|
4005
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
4006
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
4007
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
4008
|
+
}, "strip", z.ZodTypeAny, {
|
|
4009
|
+
limit?: number | undefined;
|
|
4010
|
+
offset?: number | undefined;
|
|
4011
|
+
count?: number | undefined;
|
|
4012
|
+
}, {
|
|
4013
|
+
limit?: number | undefined;
|
|
4014
|
+
offset?: number | undefined;
|
|
4015
|
+
count?: number | undefined;
|
|
4016
|
+
}>>;
|
|
4017
|
+
/**
|
|
4018
|
+
*
|
|
4019
|
+
* @typedef {ListPatternsOkResponsePagination} listPatternsOkResponsePagination
|
|
4020
|
+
* @property {number}
|
|
4021
|
+
* @property {number}
|
|
4022
|
+
* @property {number}
|
|
4023
|
+
*/
|
|
4024
|
+
type ListPatternsOkResponsePagination = z.infer<typeof listPatternsOkResponsePagination>;
|
|
4025
|
+
|
|
4026
|
+
declare enum GroupBy {
|
|
4027
|
+
TYPE_ = "type",
|
|
4028
|
+
CONTEXT = "context",
|
|
4029
|
+
CONFIDENCE = "confidence"
|
|
4030
|
+
}
|
|
4031
|
+
|
|
4032
|
+
/**
|
|
4033
|
+
* The shape of the model inside the application code - what the users use
|
|
4034
|
+
*/
|
|
4035
|
+
declare const updateBehavioralStateRequest: z.ZodLazy<z.ZodObject<{
|
|
4036
|
+
state: z.ZodOptional<z.ZodAny>;
|
|
4037
|
+
mutations: z.ZodOptional<z.ZodAny>;
|
|
4038
|
+
}, "strip", z.ZodTypeAny, {
|
|
4039
|
+
state?: any;
|
|
4040
|
+
mutations?: any;
|
|
4041
|
+
}, {
|
|
4042
|
+
state?: any;
|
|
4043
|
+
mutations?: any;
|
|
4044
|
+
}>>;
|
|
4045
|
+
/**
|
|
4046
|
+
*
|
|
4047
|
+
* @typedef {UpdateBehavioralStateRequest} updateBehavioralStateRequest
|
|
4048
|
+
* @property {any}
|
|
4049
|
+
* @property {any}
|
|
4050
|
+
*/
|
|
4051
|
+
type UpdateBehavioralStateRequest = z.infer<typeof updateBehavioralStateRequest>;
|
|
4052
|
+
|
|
4053
|
+
declare class BehaviorService extends BaseService {
|
|
4054
|
+
/**
|
|
4055
|
+
* Get current behavioral state for the authenticated user
|
|
4056
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
4057
|
+
* @returns {Promise<HttpResponse<any>>} - OK
|
|
4058
|
+
*/
|
|
4059
|
+
getBehavioralState(requestConfig?: RequestConfig): Promise<HttpResponse<void>>;
|
|
4060
|
+
/**
|
|
4061
|
+
* Update or mutate behavioral state
|
|
4062
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
4063
|
+
* @returns {Promise<HttpResponse<any>>} - OK
|
|
4064
|
+
*/
|
|
4065
|
+
updateBehavioralState(body: UpdateBehavioralStateRequest, requestConfig?: RequestConfig): Promise<HttpResponse<void>>;
|
|
4066
|
+
}
|
|
4067
|
+
|
|
4068
|
+
/**
|
|
4069
|
+
* The shape of the model inside the application code - what the users use
|
|
4070
|
+
*/
|
|
4071
|
+
declare const listTopicsOkResponse: z.ZodLazy<z.ZodObject<{
|
|
4072
|
+
data: z.ZodOptional<z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
4073
|
+
name: z.ZodString;
|
|
4074
|
+
count: z.ZodNumber;
|
|
4075
|
+
}, "strip", z.ZodTypeAny, {
|
|
4076
|
+
name: string;
|
|
4077
|
+
count: number;
|
|
4078
|
+
}, {
|
|
4079
|
+
name: string;
|
|
4080
|
+
count: number;
|
|
4081
|
+
}>>, "many">>;
|
|
4082
|
+
pagination: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
4083
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
4084
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
4085
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
4086
|
+
}, "strip", z.ZodTypeAny, {
|
|
4087
|
+
limit?: number | undefined;
|
|
4088
|
+
offset?: number | undefined;
|
|
4089
|
+
count?: number | undefined;
|
|
4090
|
+
}, {
|
|
4091
|
+
limit?: number | undefined;
|
|
4092
|
+
offset?: number | undefined;
|
|
4093
|
+
count?: number | undefined;
|
|
4094
|
+
}>>>;
|
|
4095
|
+
}, "strip", z.ZodTypeAny, {
|
|
4096
|
+
data?: {
|
|
4097
|
+
name: string;
|
|
4098
|
+
count: number;
|
|
4099
|
+
}[] | undefined;
|
|
4100
|
+
pagination?: {
|
|
4101
|
+
limit?: number | undefined;
|
|
4102
|
+
offset?: number | undefined;
|
|
4103
|
+
count?: number | undefined;
|
|
4104
|
+
} | undefined;
|
|
4105
|
+
}, {
|
|
4106
|
+
data?: {
|
|
4107
|
+
name: string;
|
|
4108
|
+
count: number;
|
|
4109
|
+
}[] | undefined;
|
|
4110
|
+
pagination?: {
|
|
4111
|
+
limit?: number | undefined;
|
|
4112
|
+
offset?: number | undefined;
|
|
4113
|
+
count?: number | undefined;
|
|
4114
|
+
} | undefined;
|
|
4115
|
+
}>>;
|
|
4116
|
+
/**
|
|
4117
|
+
*
|
|
4118
|
+
* @typedef {ListTopicsOkResponse} listTopicsOkResponse
|
|
4119
|
+
* @property {Topic[]}
|
|
4120
|
+
* @property {ListTopicsOkResponsePagination}
|
|
4121
|
+
*/
|
|
4122
|
+
type ListTopicsOkResponse = z.infer<typeof listTopicsOkResponse>;
|
|
4123
|
+
|
|
4124
|
+
interface ListTopicsParams {
|
|
4125
|
+
limit?: number;
|
|
4126
|
+
offset?: number;
|
|
4127
|
+
}
|
|
4128
|
+
|
|
4129
|
+
/**
|
|
4130
|
+
* The shape of the model inside the application code - what the users use
|
|
4131
|
+
*/
|
|
4132
|
+
declare const getTopicByIdOkResponse: z.ZodLazy<z.ZodObject<{
|
|
4133
|
+
data: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
4134
|
+
name: z.ZodString;
|
|
4135
|
+
count: z.ZodNumber;
|
|
4136
|
+
}, "strip", z.ZodTypeAny, {
|
|
4137
|
+
name: string;
|
|
4138
|
+
count: number;
|
|
4139
|
+
}, {
|
|
4140
|
+
name: string;
|
|
4141
|
+
count: number;
|
|
4142
|
+
}>>>;
|
|
4143
|
+
}, "strip", z.ZodTypeAny, {
|
|
4144
|
+
data?: {
|
|
4145
|
+
name: string;
|
|
4146
|
+
count: number;
|
|
4147
|
+
} | undefined;
|
|
4148
|
+
}, {
|
|
4149
|
+
data?: {
|
|
4150
|
+
name: string;
|
|
4151
|
+
count: number;
|
|
4152
|
+
} | undefined;
|
|
4153
|
+
}>>;
|
|
4154
|
+
/**
|
|
4155
|
+
*
|
|
4156
|
+
* @typedef {GetTopicByIdOkResponse} getTopicByIdOkResponse
|
|
4157
|
+
* @property {Topic}
|
|
4158
|
+
*/
|
|
4159
|
+
type GetTopicByIdOkResponse = z.infer<typeof getTopicByIdOkResponse>;
|
|
4160
|
+
|
|
4161
|
+
/**
|
|
4162
|
+
* The shape of the model inside the application code - what the users use
|
|
4163
|
+
*/
|
|
4164
|
+
declare const mergeTopicsRequest: z.ZodLazy<z.ZodObject<{
|
|
4165
|
+
sourceTopicId: z.ZodString;
|
|
4166
|
+
targetTopicId: z.ZodString;
|
|
4167
|
+
}, "strip", z.ZodTypeAny, {
|
|
4168
|
+
sourceTopicId: string;
|
|
4169
|
+
targetTopicId: string;
|
|
4170
|
+
}, {
|
|
4171
|
+
sourceTopicId: string;
|
|
4172
|
+
targetTopicId: string;
|
|
4173
|
+
}>>;
|
|
4174
|
+
/**
|
|
4175
|
+
*
|
|
4176
|
+
* @typedef {MergeTopicsRequest} mergeTopicsRequest
|
|
4177
|
+
* @property {string}
|
|
4178
|
+
* @property {string}
|
|
4179
|
+
*/
|
|
4180
|
+
type MergeTopicsRequest = z.infer<typeof mergeTopicsRequest>;
|
|
4181
|
+
|
|
4182
|
+
/**
|
|
4183
|
+
* The shape of the model inside the application code - what the users use
|
|
4184
|
+
*/
|
|
4185
|
+
declare const discoverRelatedTopicsRequest: z.ZodLazy<z.ZodObject<{
|
|
4186
|
+
topicId: z.ZodString;
|
|
4187
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
4188
|
+
}, "strip", z.ZodTypeAny, {
|
|
4189
|
+
topicId: string;
|
|
4190
|
+
limit?: number | undefined;
|
|
4191
|
+
}, {
|
|
4192
|
+
topicId: string;
|
|
4193
|
+
limit?: number | undefined;
|
|
4194
|
+
}>>;
|
|
4195
|
+
/**
|
|
4196
|
+
*
|
|
4197
|
+
* @typedef {DiscoverRelatedTopicsRequest} discoverRelatedTopicsRequest
|
|
4198
|
+
* @property {string}
|
|
4199
|
+
* @property {number}
|
|
4200
|
+
*/
|
|
4201
|
+
type DiscoverRelatedTopicsRequest = z.infer<typeof discoverRelatedTopicsRequest>;
|
|
4202
|
+
|
|
4203
|
+
/**
|
|
4204
|
+
* The shape of the model inside the application code - what the users use
|
|
4205
|
+
*/
|
|
4206
|
+
declare const calculateTopicSimilarityRequest: z.ZodLazy<z.ZodObject<{
|
|
4207
|
+
topicId1: z.ZodString;
|
|
4208
|
+
topicId2: z.ZodString;
|
|
4209
|
+
}, "strip", z.ZodTypeAny, {
|
|
4210
|
+
topicId1: string;
|
|
4211
|
+
topicId2: string;
|
|
4212
|
+
}, {
|
|
4213
|
+
topicId1: string;
|
|
4214
|
+
topicId2: string;
|
|
4215
|
+
}>>;
|
|
4216
|
+
/**
|
|
4217
|
+
*
|
|
4218
|
+
* @typedef {CalculateTopicSimilarityRequest} calculateTopicSimilarityRequest
|
|
4219
|
+
* @property {string}
|
|
4220
|
+
* @property {string}
|
|
4221
|
+
*/
|
|
4222
|
+
type CalculateTopicSimilarityRequest = z.infer<typeof calculateTopicSimilarityRequest>;
|
|
4223
|
+
|
|
4224
|
+
/**
|
|
4225
|
+
* The shape of the model inside the application code - what the users use
|
|
4226
|
+
*/
|
|
4227
|
+
declare const findSimilarTopicsRequest: z.ZodLazy<z.ZodObject<{
|
|
4228
|
+
topicId: z.ZodString;
|
|
4229
|
+
threshold: z.ZodOptional<z.ZodNumber>;
|
|
4230
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
4231
|
+
}, "strip", z.ZodTypeAny, {
|
|
4232
|
+
topicId: string;
|
|
4233
|
+
threshold?: number | undefined;
|
|
4234
|
+
limit?: number | undefined;
|
|
4235
|
+
}, {
|
|
4236
|
+
topicId: string;
|
|
4237
|
+
threshold?: number | undefined;
|
|
4238
|
+
limit?: number | undefined;
|
|
4239
|
+
}>>;
|
|
4240
|
+
/**
|
|
4241
|
+
*
|
|
4242
|
+
* @typedef {FindSimilarTopicsRequest} findSimilarTopicsRequest
|
|
4243
|
+
* @property {string}
|
|
4244
|
+
* @property {number}
|
|
4245
|
+
* @property {number}
|
|
4246
|
+
*/
|
|
4247
|
+
type FindSimilarTopicsRequest = z.infer<typeof findSimilarTopicsRequest>;
|
|
4248
|
+
|
|
4249
|
+
/**
|
|
4250
|
+
* The shape of the model inside the application code - what the users use
|
|
4251
|
+
*/
|
|
4252
|
+
declare const clusterTopicsRequest: z.ZodLazy<z.ZodObject<{
|
|
4253
|
+
minClusterSize: z.ZodOptional<z.ZodNumber>;
|
|
4254
|
+
}, "strip", z.ZodTypeAny, {
|
|
4255
|
+
minClusterSize?: number | undefined;
|
|
4256
|
+
}, {
|
|
4257
|
+
minClusterSize?: number | undefined;
|
|
4258
|
+
}>>;
|
|
4259
|
+
/**
|
|
4260
|
+
*
|
|
4261
|
+
* @typedef {ClusterTopicsRequest} clusterTopicsRequest
|
|
4262
|
+
* @property {number}
|
|
4263
|
+
*/
|
|
4264
|
+
type ClusterTopicsRequest = z.infer<typeof clusterTopicsRequest>;
|
|
4265
|
+
|
|
4266
|
+
/**
|
|
4267
|
+
* The shape of the model inside the application code - what the users use
|
|
4268
|
+
*/
|
|
4269
|
+
declare const detectCommunitiesRequest: z.ZodLazy<z.ZodObject<{
|
|
4270
|
+
algorithm: z.ZodOptional<z.ZodString>;
|
|
4271
|
+
}, "strip", z.ZodTypeAny, {
|
|
4272
|
+
algorithm?: string | undefined;
|
|
4273
|
+
}, {
|
|
4274
|
+
algorithm?: string | undefined;
|
|
4275
|
+
}>>;
|
|
4276
|
+
/**
|
|
4277
|
+
*
|
|
4278
|
+
* @typedef {DetectCommunitiesRequest} detectCommunitiesRequest
|
|
4279
|
+
* @property {string}
|
|
4280
|
+
*/
|
|
4281
|
+
type DetectCommunitiesRequest = z.infer<typeof detectCommunitiesRequest>;
|
|
4282
|
+
|
|
4283
|
+
/**
|
|
4284
|
+
* The shape of the model inside the application code - what the users use
|
|
4285
|
+
*/
|
|
4286
|
+
declare const searchTopicsRequest: z.ZodLazy<z.ZodObject<{
|
|
4287
|
+
query: z.ZodString;
|
|
4288
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
4289
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
4290
|
+
}, "strip", z.ZodTypeAny, {
|
|
4291
|
+
query: string;
|
|
4292
|
+
limit?: number | undefined;
|
|
4293
|
+
offset?: number | undefined;
|
|
4294
|
+
}, {
|
|
4295
|
+
query: string;
|
|
4296
|
+
limit?: number | undefined;
|
|
4297
|
+
offset?: number | undefined;
|
|
4298
|
+
}>>;
|
|
4299
|
+
/**
|
|
4300
|
+
*
|
|
4301
|
+
* @typedef {SearchTopicsRequest} searchTopicsRequest
|
|
4302
|
+
* @property {string}
|
|
4303
|
+
* @property {number}
|
|
4304
|
+
* @property {number}
|
|
4305
|
+
*/
|
|
4306
|
+
type SearchTopicsRequest = z.infer<typeof searchTopicsRequest>;
|
|
4307
|
+
|
|
4308
|
+
/**
|
|
4309
|
+
* The shape of the model inside the application code - what the users use
|
|
4310
|
+
*/
|
|
4311
|
+
declare const searchTopicsOkResponse: z.ZodLazy<z.ZodObject<{
|
|
4312
|
+
data: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
4313
|
+
total: z.ZodOptional<z.ZodNumber>;
|
|
4314
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
4315
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
4316
|
+
}, "strip", z.ZodTypeAny, {
|
|
4317
|
+
data?: any[] | undefined;
|
|
4318
|
+
total?: number | undefined;
|
|
4319
|
+
limit?: number | undefined;
|
|
4320
|
+
offset?: number | undefined;
|
|
4321
|
+
}, {
|
|
4322
|
+
data?: any[] | undefined;
|
|
4323
|
+
total?: number | undefined;
|
|
4324
|
+
limit?: number | undefined;
|
|
4325
|
+
offset?: number | undefined;
|
|
4326
|
+
}>>;
|
|
4327
|
+
/**
|
|
4328
|
+
*
|
|
4329
|
+
* @typedef {SearchTopicsOkResponse} searchTopicsOkResponse
|
|
4330
|
+
* @property {any[]}
|
|
4331
|
+
* @property {number}
|
|
4332
|
+
* @property {number}
|
|
4333
|
+
* @property {number}
|
|
4334
|
+
*/
|
|
4335
|
+
type SearchTopicsOkResponse = z.infer<typeof searchTopicsOkResponse>;
|
|
4336
|
+
|
|
4337
|
+
declare class TopicsService extends BaseService {
|
|
4338
|
+
/**
|
|
4339
|
+
* List all topics with pagination
|
|
4340
|
+
* @param {number} [params.limit] - Maximum number of topics to return
|
|
4341
|
+
* @param {number} [params.offset] - Number of topics to skip
|
|
4342
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
4343
|
+
* @returns {Promise<HttpResponse<ListTopicsOkResponse>>} - List of topics retrieved successfully
|
|
4344
|
+
*/
|
|
4345
|
+
listTopics(params?: ListTopicsParams, requestConfig?: RequestConfig): Promise<HttpResponse<ListTopicsOkResponse>>;
|
|
4346
|
+
/**
|
|
4347
|
+
* Retrieve a specific topic by its ID
|
|
4348
|
+
* @param {string} id - The topic ID
|
|
4349
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
4350
|
+
* @returns {Promise<HttpResponse<GetTopicByIdOkResponse>>} - Topic retrieved successfully
|
|
4351
|
+
*/
|
|
4352
|
+
getTopicById(id: string, requestConfig?: RequestConfig): Promise<HttpResponse<GetTopicByIdOkResponse>>;
|
|
4353
|
+
/**
|
|
4354
|
+
* Merge two topics into one
|
|
4355
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
4356
|
+
* @returns {Promise<HttpResponse<any>>} - OK
|
|
4357
|
+
*/
|
|
4358
|
+
mergeTopics(body: MergeTopicsRequest, requestConfig?: RequestConfig): Promise<HttpResponse<void>>;
|
|
4359
|
+
/**
|
|
4360
|
+
* Discover topics related to a given topic
|
|
4361
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
4362
|
+
* @returns {Promise<HttpResponse<any>>} - OK
|
|
4363
|
+
*/
|
|
4364
|
+
discoverRelatedTopics(body: DiscoverRelatedTopicsRequest, requestConfig?: RequestConfig): Promise<HttpResponse<void>>;
|
|
4365
|
+
/**
|
|
4366
|
+
* Calculate similarity score between two topics
|
|
4367
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
4368
|
+
* @returns {Promise<HttpResponse<any>>} - OK
|
|
4369
|
+
*/
|
|
4370
|
+
calculateTopicSimilarity(body: CalculateTopicSimilarityRequest, requestConfig?: RequestConfig): Promise<HttpResponse<void>>;
|
|
4371
|
+
/**
|
|
4372
|
+
* Find topics similar to a given topic
|
|
4373
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
4374
|
+
* @returns {Promise<HttpResponse<any>>} - OK
|
|
4375
|
+
*/
|
|
4376
|
+
findSimilarTopics(body: FindSimilarTopicsRequest, requestConfig?: RequestConfig): Promise<HttpResponse<void>>;
|
|
4377
|
+
/**
|
|
4378
|
+
* Cluster topics using community detection algorithms
|
|
4379
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
4380
|
+
* @returns {Promise<HttpResponse<any>>} - OK
|
|
4381
|
+
*/
|
|
4382
|
+
clusterTopics(body: ClusterTopicsRequest, requestConfig?: RequestConfig): Promise<HttpResponse<void>>;
|
|
4383
|
+
/**
|
|
4384
|
+
* Detect communities in the topic graph using specified algorithm
|
|
4385
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
4386
|
+
* @returns {Promise<HttpResponse<any>>} - OK
|
|
4387
|
+
*/
|
|
4388
|
+
detectCommunities(body: DetectCommunitiesRequest, requestConfig?: RequestConfig): Promise<HttpResponse<void>>;
|
|
4389
|
+
/**
|
|
4390
|
+
* Search topics by query string using fulltext search
|
|
4391
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
4392
|
+
* @returns {Promise<HttpResponse<SearchTopicsOkResponse>>} - OK
|
|
4393
|
+
*/
|
|
4394
|
+
searchTopics(body: SearchTopicsRequest, requestConfig?: RequestConfig): Promise<HttpResponse<SearchTopicsOkResponse>>;
|
|
4395
|
+
}
|
|
4396
|
+
|
|
4397
|
+
/**
|
|
4398
|
+
* The shape of the model inside the application code - what the users use
|
|
4399
|
+
*/
|
|
4400
|
+
declare const topic: z.ZodLazy<z.ZodObject<{
|
|
4401
|
+
name: z.ZodString;
|
|
4402
|
+
count: z.ZodNumber;
|
|
4403
|
+
}, "strip", z.ZodTypeAny, {
|
|
4404
|
+
name: string;
|
|
4405
|
+
count: number;
|
|
4406
|
+
}, {
|
|
4407
|
+
name: string;
|
|
4408
|
+
count: number;
|
|
4409
|
+
}>>;
|
|
4410
|
+
/**
|
|
4411
|
+
*
|
|
4412
|
+
* @typedef {Topic} topic
|
|
4413
|
+
* @property {string} - Topic name
|
|
4414
|
+
* @property {number} - Number of memories associated with this topic
|
|
4415
|
+
*/
|
|
4416
|
+
type Topic = z.infer<typeof topic>;
|
|
4417
|
+
|
|
4418
|
+
/**
|
|
4419
|
+
* The shape of the model inside the application code - what the users use
|
|
4420
|
+
*/
|
|
4421
|
+
declare const listTopicsOkResponsePagination: z.ZodLazy<z.ZodObject<{
|
|
4422
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
4423
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
4424
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
4425
|
+
}, "strip", z.ZodTypeAny, {
|
|
4426
|
+
limit?: number | undefined;
|
|
4427
|
+
offset?: number | undefined;
|
|
4428
|
+
count?: number | undefined;
|
|
4429
|
+
}, {
|
|
4430
|
+
limit?: number | undefined;
|
|
4431
|
+
offset?: number | undefined;
|
|
4432
|
+
count?: number | undefined;
|
|
4433
|
+
}>>;
|
|
4434
|
+
/**
|
|
4435
|
+
*
|
|
4436
|
+
* @typedef {ListTopicsOkResponsePagination} listTopicsOkResponsePagination
|
|
4437
|
+
* @property {number}
|
|
4438
|
+
* @property {number}
|
|
4439
|
+
* @property {number}
|
|
4440
|
+
*/
|
|
4441
|
+
type ListTopicsOkResponsePagination = z.infer<typeof listTopicsOkResponsePagination>;
|
|
4442
|
+
|
|
4443
|
+
/**
|
|
4444
|
+
* The shape of the model inside the application code - what the users use
|
|
4445
|
+
*/
|
|
4446
|
+
declare const listCommunitiesOkResponse: z.ZodLazy<z.ZodObject<{
|
|
4447
|
+
data: z.ZodOptional<z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
4448
|
+
id: z.ZodString;
|
|
4449
|
+
name: z.ZodString;
|
|
4450
|
+
description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
4451
|
+
topicCount: z.ZodOptional<z.ZodNumber>;
|
|
4452
|
+
createdAt: z.ZodString;
|
|
4453
|
+
updatedAt: z.ZodString;
|
|
4454
|
+
}, "strip", z.ZodTypeAny, {
|
|
4455
|
+
id: string;
|
|
4456
|
+
createdAt: string;
|
|
4457
|
+
name: string;
|
|
4458
|
+
updatedAt: string;
|
|
4459
|
+
description?: string | null | undefined;
|
|
4460
|
+
topicCount?: number | undefined;
|
|
4461
|
+
}, {
|
|
4462
|
+
id: string;
|
|
4463
|
+
createdAt: string;
|
|
4464
|
+
name: string;
|
|
4465
|
+
updatedAt: string;
|
|
4466
|
+
description?: string | null | undefined;
|
|
4467
|
+
topicCount?: number | undefined;
|
|
4468
|
+
}>>, "many">>;
|
|
4469
|
+
pagination: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
4470
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
4471
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
4472
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
4473
|
+
}, "strip", z.ZodTypeAny, {
|
|
4474
|
+
limit?: number | undefined;
|
|
4475
|
+
offset?: number | undefined;
|
|
4476
|
+
count?: number | undefined;
|
|
4477
|
+
}, {
|
|
4478
|
+
limit?: number | undefined;
|
|
4479
|
+
offset?: number | undefined;
|
|
4480
|
+
count?: number | undefined;
|
|
4481
|
+
}>>>;
|
|
4482
|
+
}, "strip", z.ZodTypeAny, {
|
|
4483
|
+
data?: {
|
|
4484
|
+
id: string;
|
|
4485
|
+
createdAt: string;
|
|
4486
|
+
name: string;
|
|
4487
|
+
updatedAt: string;
|
|
4488
|
+
description?: string | null | undefined;
|
|
4489
|
+
topicCount?: number | undefined;
|
|
4490
|
+
}[] | undefined;
|
|
4491
|
+
pagination?: {
|
|
4492
|
+
limit?: number | undefined;
|
|
4493
|
+
offset?: number | undefined;
|
|
4494
|
+
count?: number | undefined;
|
|
4495
|
+
} | undefined;
|
|
4496
|
+
}, {
|
|
4497
|
+
data?: {
|
|
4498
|
+
id: string;
|
|
4499
|
+
createdAt: string;
|
|
4500
|
+
name: string;
|
|
4501
|
+
updatedAt: string;
|
|
4502
|
+
description?: string | null | undefined;
|
|
4503
|
+
topicCount?: number | undefined;
|
|
4504
|
+
}[] | undefined;
|
|
4505
|
+
pagination?: {
|
|
4506
|
+
limit?: number | undefined;
|
|
4507
|
+
offset?: number | undefined;
|
|
4508
|
+
count?: number | undefined;
|
|
4509
|
+
} | undefined;
|
|
4510
|
+
}>>;
|
|
4511
|
+
/**
|
|
4512
|
+
*
|
|
4513
|
+
* @typedef {ListCommunitiesOkResponse} listCommunitiesOkResponse
|
|
4514
|
+
* @property {Community[]}
|
|
4515
|
+
* @property {ListCommunitiesOkResponsePagination}
|
|
4516
|
+
*/
|
|
4517
|
+
type ListCommunitiesOkResponse = z.infer<typeof listCommunitiesOkResponse>;
|
|
4518
|
+
|
|
4519
|
+
interface ListCommunitiesParams {
|
|
4520
|
+
limit?: number;
|
|
4521
|
+
offset?: number;
|
|
4522
|
+
}
|
|
4523
|
+
|
|
4524
|
+
/**
|
|
4525
|
+
* The shape of the model inside the application code - what the users use
|
|
4526
|
+
*/
|
|
4527
|
+
declare const getCommunityByIdOkResponse: z.ZodLazy<z.ZodObject<{
|
|
4528
|
+
data: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
4529
|
+
id: z.ZodString;
|
|
4530
|
+
name: z.ZodString;
|
|
4531
|
+
description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
4532
|
+
topicCount: z.ZodOptional<z.ZodNumber>;
|
|
4533
|
+
createdAt: z.ZodString;
|
|
4534
|
+
updatedAt: z.ZodString;
|
|
4535
|
+
}, "strip", z.ZodTypeAny, {
|
|
4536
|
+
id: string;
|
|
4537
|
+
createdAt: string;
|
|
4538
|
+
name: string;
|
|
4539
|
+
updatedAt: string;
|
|
4540
|
+
description?: string | null | undefined;
|
|
4541
|
+
topicCount?: number | undefined;
|
|
4542
|
+
}, {
|
|
4543
|
+
id: string;
|
|
4544
|
+
createdAt: string;
|
|
4545
|
+
name: string;
|
|
4546
|
+
updatedAt: string;
|
|
4547
|
+
description?: string | null | undefined;
|
|
4548
|
+
topicCount?: number | undefined;
|
|
4549
|
+
}>>>;
|
|
4550
|
+
}, "strip", z.ZodTypeAny, {
|
|
4551
|
+
data?: {
|
|
4552
|
+
id: string;
|
|
4553
|
+
createdAt: string;
|
|
4554
|
+
name: string;
|
|
4555
|
+
updatedAt: string;
|
|
4556
|
+
description?: string | null | undefined;
|
|
4557
|
+
topicCount?: number | undefined;
|
|
4558
|
+
} | undefined;
|
|
4559
|
+
}, {
|
|
4560
|
+
data?: {
|
|
4561
|
+
id: string;
|
|
4562
|
+
createdAt: string;
|
|
4563
|
+
name: string;
|
|
4564
|
+
updatedAt: string;
|
|
4565
|
+
description?: string | null | undefined;
|
|
4566
|
+
topicCount?: number | undefined;
|
|
4567
|
+
} | undefined;
|
|
4568
|
+
}>>;
|
|
4569
|
+
/**
|
|
4570
|
+
*
|
|
4571
|
+
* @typedef {GetCommunityByIdOkResponse} getCommunityByIdOkResponse
|
|
4572
|
+
* @property {Community}
|
|
4573
|
+
*/
|
|
4574
|
+
type GetCommunityByIdOkResponse = z.infer<typeof getCommunityByIdOkResponse>;
|
|
4575
|
+
|
|
4576
|
+
/**
|
|
4577
|
+
* The shape of the model inside the application code - what the users use
|
|
4578
|
+
*/
|
|
4579
|
+
declare const mergeCommunitiesRequest: z.ZodLazy<z.ZodObject<{
|
|
4580
|
+
sourceCommunityId: z.ZodString;
|
|
4581
|
+
targetCommunityId: z.ZodString;
|
|
4582
|
+
}, "strip", z.ZodTypeAny, {
|
|
4583
|
+
sourceCommunityId: string;
|
|
4584
|
+
targetCommunityId: string;
|
|
4585
|
+
}, {
|
|
4586
|
+
sourceCommunityId: string;
|
|
4587
|
+
targetCommunityId: string;
|
|
4588
|
+
}>>;
|
|
4589
|
+
/**
|
|
4590
|
+
*
|
|
4591
|
+
* @typedef {MergeCommunitiesRequest} mergeCommunitiesRequest
|
|
4592
|
+
* @property {string} - Source community ID to merge from
|
|
4593
|
+
* @property {string} - Target community ID to merge into
|
|
4594
|
+
*/
|
|
4595
|
+
type MergeCommunitiesRequest = z.infer<typeof mergeCommunitiesRequest>;
|
|
4596
|
+
|
|
4597
|
+
/**
|
|
4598
|
+
* The shape of the model inside the application code - what the users use
|
|
4599
|
+
*/
|
|
4600
|
+
declare const mergeCommunitiesOkResponse: z.ZodLazy<z.ZodObject<{
|
|
4601
|
+
data: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
4602
|
+
id: z.ZodString;
|
|
4603
|
+
name: z.ZodString;
|
|
4604
|
+
description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
4605
|
+
topicCount: z.ZodOptional<z.ZodNumber>;
|
|
4606
|
+
createdAt: z.ZodString;
|
|
4607
|
+
updatedAt: z.ZodString;
|
|
4608
|
+
}, "strip", z.ZodTypeAny, {
|
|
4609
|
+
id: string;
|
|
4610
|
+
createdAt: string;
|
|
4611
|
+
name: string;
|
|
4612
|
+
updatedAt: string;
|
|
4613
|
+
description?: string | null | undefined;
|
|
4614
|
+
topicCount?: number | undefined;
|
|
4615
|
+
}, {
|
|
4616
|
+
id: string;
|
|
4617
|
+
createdAt: string;
|
|
4618
|
+
name: string;
|
|
4619
|
+
updatedAt: string;
|
|
4620
|
+
description?: string | null | undefined;
|
|
4621
|
+
topicCount?: number | undefined;
|
|
4622
|
+
}>>>;
|
|
4623
|
+
}, "strip", z.ZodTypeAny, {
|
|
4624
|
+
data?: {
|
|
4625
|
+
id: string;
|
|
4626
|
+
createdAt: string;
|
|
4627
|
+
name: string;
|
|
4628
|
+
updatedAt: string;
|
|
4629
|
+
description?: string | null | undefined;
|
|
4630
|
+
topicCount?: number | undefined;
|
|
4631
|
+
} | undefined;
|
|
4632
|
+
}, {
|
|
4633
|
+
data?: {
|
|
4634
|
+
id: string;
|
|
4635
|
+
createdAt: string;
|
|
4636
|
+
name: string;
|
|
4637
|
+
updatedAt: string;
|
|
4638
|
+
description?: string | null | undefined;
|
|
4639
|
+
topicCount?: number | undefined;
|
|
4640
|
+
} | undefined;
|
|
4641
|
+
}>>;
|
|
4642
|
+
/**
|
|
4643
|
+
*
|
|
4644
|
+
* @typedef {MergeCommunitiesOkResponse} mergeCommunitiesOkResponse
|
|
4645
|
+
* @property {Community}
|
|
4646
|
+
*/
|
|
4647
|
+
type MergeCommunitiesOkResponse = z.infer<typeof mergeCommunitiesOkResponse>;
|
|
4648
|
+
|
|
4649
|
+
declare class CommunitiesService extends BaseService {
|
|
4650
|
+
/**
|
|
4651
|
+
* List all communities with pagination
|
|
4652
|
+
* @param {number} [params.limit] - Maximum number of communities to return
|
|
4653
|
+
* @param {number} [params.offset] - Number of communities to skip
|
|
4654
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
4655
|
+
* @returns {Promise<HttpResponse<ListCommunitiesOkResponse>>} - OK
|
|
4656
|
+
*/
|
|
4657
|
+
listCommunities(params?: ListCommunitiesParams, requestConfig?: RequestConfig): Promise<HttpResponse<ListCommunitiesOkResponse>>;
|
|
4658
|
+
/**
|
|
4659
|
+
* Retrieve a specific community by its ID
|
|
4660
|
+
* @param {string} id - The community ID
|
|
4661
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
4662
|
+
* @returns {Promise<HttpResponse<GetCommunityByIdOkResponse>>} - OK
|
|
4663
|
+
*/
|
|
4664
|
+
getCommunityById(id: string, requestConfig?: RequestConfig): Promise<HttpResponse<GetCommunityByIdOkResponse>>;
|
|
4665
|
+
/**
|
|
4666
|
+
* Merge two communities into one
|
|
4667
|
+
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
4668
|
+
* @returns {Promise<HttpResponse<MergeCommunitiesOkResponse>>} - OK
|
|
4669
|
+
*/
|
|
4670
|
+
mergeCommunities(body: MergeCommunitiesRequest, requestConfig?: RequestConfig): Promise<HttpResponse<MergeCommunitiesOkResponse>>;
|
|
4671
|
+
}
|
|
4672
|
+
|
|
4673
|
+
/**
|
|
4674
|
+
* The shape of the model inside the application code - what the users use
|
|
4675
|
+
*/
|
|
4676
|
+
declare const community: z.ZodLazy<z.ZodObject<{
|
|
4677
|
+
id: z.ZodString;
|
|
4678
|
+
name: z.ZodString;
|
|
4679
|
+
description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
4680
|
+
topicCount: z.ZodOptional<z.ZodNumber>;
|
|
4681
|
+
createdAt: z.ZodString;
|
|
4682
|
+
updatedAt: z.ZodString;
|
|
4683
|
+
}, "strip", z.ZodTypeAny, {
|
|
4684
|
+
id: string;
|
|
4685
|
+
createdAt: string;
|
|
4686
|
+
name: string;
|
|
4687
|
+
updatedAt: string;
|
|
4688
|
+
description?: string | null | undefined;
|
|
4689
|
+
topicCount?: number | undefined;
|
|
4690
|
+
}, {
|
|
4691
|
+
id: string;
|
|
4692
|
+
createdAt: string;
|
|
4693
|
+
name: string;
|
|
4694
|
+
updatedAt: string;
|
|
4695
|
+
description?: string | null | undefined;
|
|
4696
|
+
topicCount?: number | undefined;
|
|
4697
|
+
}>>;
|
|
4698
|
+
/**
|
|
4699
|
+
*
|
|
4700
|
+
* @typedef {Community} community
|
|
4701
|
+
* @property {string} - Unique identifier for the community
|
|
4702
|
+
* @property {string} - Community name
|
|
4703
|
+
* @property {string} - Community description
|
|
4704
|
+
* @property {number} - Number of topics in this community
|
|
4705
|
+
* @property {string} - Creation timestamp
|
|
4706
|
+
* @property {string} - Last update timestamp
|
|
4707
|
+
*/
|
|
4708
|
+
type Community = z.infer<typeof community>;
|
|
4709
|
+
|
|
4710
|
+
/**
|
|
4711
|
+
* The shape of the model inside the application code - what the users use
|
|
4712
|
+
*/
|
|
4713
|
+
declare const listCommunitiesOkResponsePagination: z.ZodLazy<z.ZodObject<{
|
|
4714
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
4715
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
4716
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
4717
|
+
}, "strip", z.ZodTypeAny, {
|
|
4718
|
+
limit?: number | undefined;
|
|
4719
|
+
offset?: number | undefined;
|
|
4720
|
+
count?: number | undefined;
|
|
4721
|
+
}, {
|
|
4722
|
+
limit?: number | undefined;
|
|
4723
|
+
offset?: number | undefined;
|
|
4724
|
+
count?: number | undefined;
|
|
4725
|
+
}>>;
|
|
4726
|
+
/**
|
|
4727
|
+
*
|
|
4728
|
+
* @typedef {ListCommunitiesOkResponsePagination} listCommunitiesOkResponsePagination
|
|
4729
|
+
* @property {number}
|
|
4730
|
+
* @property {number}
|
|
4731
|
+
* @property {number}
|
|
4732
|
+
*/
|
|
4733
|
+
type ListCommunitiesOkResponsePagination = z.infer<typeof listCommunitiesOkResponsePagination>;
|
|
4734
|
+
|
|
4735
|
+
/**
|
|
4736
|
+
* The shape of the model inside the application code - what the users use
|
|
4737
|
+
*/
|
|
4738
|
+
declare const memory: z.ZodLazy<z.ZodObject<{
|
|
4739
|
+
id: z.ZodString;
|
|
4740
|
+
content: z.ZodString;
|
|
4741
|
+
memoryType: z.ZodString;
|
|
4742
|
+
context: z.ZodOptional<z.ZodString>;
|
|
4743
|
+
topics: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4744
|
+
timestamp: z.ZodOptional<z.ZodString>;
|
|
4745
|
+
eventTime: z.ZodOptional<z.ZodString>;
|
|
4746
|
+
validFrom: z.ZodOptional<z.ZodString>;
|
|
4747
|
+
validTo: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
4748
|
+
createdAt: z.ZodString;
|
|
4749
|
+
updatedAt: z.ZodString;
|
|
4750
|
+
}, "strip", z.ZodTypeAny, {
|
|
4751
|
+
id: string;
|
|
4752
|
+
createdAt: string;
|
|
4753
|
+
content: string;
|
|
4754
|
+
updatedAt: string;
|
|
4755
|
+
memoryType: string;
|
|
4756
|
+
context?: string | undefined;
|
|
4757
|
+
topics?: string[] | undefined;
|
|
4758
|
+
timestamp?: string | undefined;
|
|
4759
|
+
eventTime?: string | undefined;
|
|
4760
|
+
validFrom?: string | undefined;
|
|
4761
|
+
validTo?: string | null | undefined;
|
|
4762
|
+
}, {
|
|
4763
|
+
id: string;
|
|
4764
|
+
createdAt: string;
|
|
4765
|
+
content: string;
|
|
4766
|
+
updatedAt: string;
|
|
4767
|
+
memoryType: string;
|
|
4768
|
+
context?: string | undefined;
|
|
4769
|
+
topics?: string[] | undefined;
|
|
4770
|
+
timestamp?: string | undefined;
|
|
4771
|
+
eventTime?: string | undefined;
|
|
4772
|
+
validFrom?: string | undefined;
|
|
4773
|
+
validTo?: string | null | undefined;
|
|
4774
|
+
}>>;
|
|
4775
|
+
/**
|
|
4776
|
+
*
|
|
4777
|
+
* @typedef {Memory} memory
|
|
4778
|
+
* @property {string} - Unique memory identifier
|
|
4779
|
+
* @property {string} - Memory content
|
|
4780
|
+
* @property {MemoryMemoryType} - Type of memory
|
|
4781
|
+
* @property {string} - Context or domain of the memory
|
|
4782
|
+
* @property {string[]} - Associated topics
|
|
4783
|
+
* @property {string} - System ingestion timestamp (when the system learned about this)
|
|
4784
|
+
* @property {string} - Event time (when the event actually occurred in reality)
|
|
4785
|
+
* @property {string} - Validity start time (when this fact becomes valid)
|
|
4786
|
+
* @property {string} - Validity end time (when this fact expires, null means never expires)
|
|
4787
|
+
* @property {string} - Creation timestamp
|
|
4788
|
+
* @property {string} - Last update timestamp
|
|
4789
|
+
*/
|
|
4790
|
+
type Memory = z.infer<typeof memory>;
|
|
4791
|
+
|
|
4792
|
+
declare class Error$1 extends ThrowableError {
|
|
4793
|
+
message: string;
|
|
4794
|
+
protected response?: unknown;
|
|
4795
|
+
error: string;
|
|
4796
|
+
constructor(message: string, response?: unknown);
|
|
4797
|
+
throw(): void;
|
|
4798
|
+
}
|
|
4799
|
+
|
|
4800
|
+
declare class Memnexus {
|
|
4801
|
+
config: SdkConfig;
|
|
4802
|
+
readonly apiKeys: ApiKeysService;
|
|
4803
|
+
readonly artifacts: ArtifactsService;
|
|
4804
|
+
readonly conversations: ConversationsService;
|
|
4805
|
+
readonly facts: FactsService;
|
|
4806
|
+
readonly graphRag: GraphRagService;
|
|
4807
|
+
readonly health: HealthService;
|
|
4808
|
+
readonly memories: MemoriesService;
|
|
4809
|
+
readonly system: SystemService;
|
|
4810
|
+
readonly patterns: PatternsService;
|
|
4811
|
+
readonly behavior: BehaviorService;
|
|
4812
|
+
readonly topics: TopicsService;
|
|
4813
|
+
readonly communities: CommunitiesService;
|
|
4814
|
+
constructor(config: SdkConfig);
|
|
4815
|
+
set baseUrl(baseUrl: string);
|
|
4816
|
+
set environment(environment: Environment);
|
|
4817
|
+
set timeoutMs(timeoutMs: number);
|
|
4818
|
+
set token(token: string);
|
|
4819
|
+
}
|
|
4820
|
+
|
|
4821
|
+
export { AnalyzeMemoryQualityOkResponse, AnalyzeMemoryQualityOkResponseData, AnalyzePatternsRequest, ApiKey, ApiKeysService, Artifact, ArtifactsService, BehaviorService, CalculateTopicSimilarityRequest, ClusterTopicsRequest, CommunitiesService, Community, CompilePatternsRequest, Conversation, ConversationsService, CreateApiKeyCreatedResponse, CreateApiKeyCreatedResponseData, CreateApiKeyRequest, CreateArtifactCreatedResponse, CreateArtifactRequest, CreateConversationCreatedResponse, CreateConversationRequest, CreateFactCreatedResponse, CreateFactRequest, CreateMemoryRequest, CreateMemoryRequestMemoryType, CreateMemoryResponse, CreateMemoryResponseMeta, DetectCommunitiesRequest, DetectPatternsRequest, DiscoverRelatedTopicsRequest, Environment, Error$1 as Error, EvaluateFeatureFlagRequest, ExecuteGraphRagQueryOkResponse, Fact, FactSearchRequest, FactsService, FindConversationsByTopicOkResponse, FindConversationsByTopicOkResponseMetadata, FindConversationsByTopicRequest, FindSimilarTopicsRequest, GetArtifactByIdOkResponse, GetCommunityByIdOkResponse, GetConversationSummaryOkResponse, GetConversationTimelineOkResponse, GetFactByIdOkResponse, GetTopicByIdOkResponse, GraphRagQueryRequest, GraphRagQueryResponse, GraphRagQueryResponseMetadata, GraphRagService, GroupBy, HealthCheck, HealthCheckStatus, HealthService, HttpError, HttpMetadata, HttpMethod, HttpResponse, ListApiKeysOkResponse, ListArtifactsOkResponse, ListCommunitiesOkResponse, ListCommunitiesOkResponsePagination, ListConversationsOkResponse, ListConversationsOkResponsePagination, ListFactsOkResponse, ListMemoriesOkResponse, ListPatternsOkResponse, ListPatternsOkResponsePagination, ListTopicsOkResponse, ListTopicsOkResponsePagination, Memnexus, MemoriesService, Memory, MemoryMemoryType, MergeCommunitiesOkResponse, MergeCommunitiesRequest, MergeTopicsRequest, Mode, NoCache, Pagination, Pattern, PatternsService, PruneMemoriesOkResponse, PruneMemoriesOkResponseData, PruneMemoriesRequest, QualityDistribution, QueryCommunitiesRequest, RecordPatternFeedbackRequest, RequestConfig, Results, RetryOptions, Role, SdkConfig, SearchConversationsOkResponse, SearchConversationsRequest, SearchFactsOkResponse, SearchFactsOkResponseMetadata, SearchRequest, SearchResponse, SearchTopicsOkResponse, SearchTopicsRequest, ServiceCheck, ServiceCheckStatus, SystemService, TemporalMode, Topic, TopicsService, UpdateArtifactOkResponse, UpdateArtifactRequest, UpdateBehavioralStateRequest, UpdateFactOkResponse, UpdateFactRequest, UpdateMemoryOkResponse, UpdateMemoryRequest, UpdateMemoryRequestMemoryType, UpdatePatternRequest, ValidationOptions };
|