@memnexus-ai/typescript-sdk 1.44.0 → 1.46.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +167 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +411 -5
- package/dist/index.d.ts +411 -5
- package/dist/index.js +159 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1164,10 +1164,14 @@ declare const namedMemoryHistoryResponse: z.ZodObject<{
|
|
|
1164
1164
|
declare const batchGetMemoriesRequest: z.ZodObject<{
|
|
1165
1165
|
/** Array of memory IDs to retrieve */
|
|
1166
1166
|
ids: z.ZodArray<z.ZodString, "many">;
|
|
1167
|
+
/** Detail level for each memory. 'minimal' returns raw memory only (default, backward compatible). 'standard' adds topics, entities, facts, and relationships. */
|
|
1168
|
+
detail: z.ZodOptional<z.ZodEnum<["minimal", "standard"]>>;
|
|
1167
1169
|
}, "strip", z.ZodTypeAny, {
|
|
1168
1170
|
ids: string[];
|
|
1171
|
+
detail?: "minimal" | "standard" | undefined;
|
|
1169
1172
|
}, {
|
|
1170
1173
|
ids: string[];
|
|
1174
|
+
detail?: "minimal" | "standard" | undefined;
|
|
1171
1175
|
}>;
|
|
1172
1176
|
declare const batchGetMemoriesMeta: z.ZodObject<{
|
|
1173
1177
|
/** Number of IDs requested */
|
|
@@ -5178,6 +5182,360 @@ declare const digestResponse: z.ZodLazy<z.ZodObject<{
|
|
|
5178
5182
|
conversation?: string | undefined;
|
|
5179
5183
|
}[];
|
|
5180
5184
|
}>>;
|
|
5185
|
+
declare const buildContextRequest: z.ZodObject<{
|
|
5186
|
+
/** What you are about to work on */
|
|
5187
|
+
context: z.ZodString;
|
|
5188
|
+
/** File paths you will be touching */
|
|
5189
|
+
files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5190
|
+
/** How far back to look for recent activity (hours, default 24) */
|
|
5191
|
+
recentHours: z.ZodOptional<z.ZodNumber>;
|
|
5192
|
+
}, "strip", z.ZodTypeAny, {
|
|
5193
|
+
context: string;
|
|
5194
|
+
files?: string[] | undefined;
|
|
5195
|
+
recentHours?: number | undefined;
|
|
5196
|
+
}, {
|
|
5197
|
+
context: string;
|
|
5198
|
+
files?: string[] | undefined;
|
|
5199
|
+
recentHours?: number | undefined;
|
|
5200
|
+
}>;
|
|
5201
|
+
/**
|
|
5202
|
+
* Most relevant active conversation, or null if none found
|
|
5203
|
+
*/
|
|
5204
|
+
declare const buildContextActiveWork: z.ZodNullable<z.ZodObject<{
|
|
5205
|
+
/** Conversation ID */
|
|
5206
|
+
conversationId: z.ZodString;
|
|
5207
|
+
/** Conversation title */
|
|
5208
|
+
title: z.ZodNullable<z.ZodString>;
|
|
5209
|
+
/** ISO 8601 timestamp of last activity */
|
|
5210
|
+
lastActivity: z.ZodString;
|
|
5211
|
+
/** Most recent memory in this conversation */
|
|
5212
|
+
lastMemory: z.ZodObject<{
|
|
5213
|
+
/** Memory ID */
|
|
5214
|
+
id: z.ZodString;
|
|
5215
|
+
/** Truncated content summary */
|
|
5216
|
+
summary: z.ZodString;
|
|
5217
|
+
}, "strip", z.ZodTypeAny, {
|
|
5218
|
+
id: string;
|
|
5219
|
+
summary: string;
|
|
5220
|
+
}, {
|
|
5221
|
+
id: string;
|
|
5222
|
+
summary: string;
|
|
5223
|
+
}>;
|
|
5224
|
+
}, "strip", z.ZodTypeAny, {
|
|
5225
|
+
conversationId: string;
|
|
5226
|
+
title: string | null;
|
|
5227
|
+
lastActivity: string;
|
|
5228
|
+
lastMemory: {
|
|
5229
|
+
id: string;
|
|
5230
|
+
summary: string;
|
|
5231
|
+
};
|
|
5232
|
+
}, {
|
|
5233
|
+
conversationId: string;
|
|
5234
|
+
title: string | null;
|
|
5235
|
+
lastActivity: string;
|
|
5236
|
+
lastMemory: {
|
|
5237
|
+
id: string;
|
|
5238
|
+
summary: string;
|
|
5239
|
+
};
|
|
5240
|
+
}>>;
|
|
5241
|
+
declare const buildContextFact: z.ZodObject<{
|
|
5242
|
+
/** Fact subject */
|
|
5243
|
+
subject: z.ZodString;
|
|
5244
|
+
/** Fact predicate */
|
|
5245
|
+
predicate: z.ZodString;
|
|
5246
|
+
/** Fact object */
|
|
5247
|
+
object: z.ZodString;
|
|
5248
|
+
/** Confidence score (0-1) */
|
|
5249
|
+
confidence: z.ZodNumber;
|
|
5250
|
+
/** Memory this fact was extracted from */
|
|
5251
|
+
sourceMemoryId: z.ZodString;
|
|
5252
|
+
}, "strip", z.ZodTypeAny, {
|
|
5253
|
+
object: string;
|
|
5254
|
+
confidence: number;
|
|
5255
|
+
subject: string;
|
|
5256
|
+
predicate: string;
|
|
5257
|
+
sourceMemoryId: string;
|
|
5258
|
+
}, {
|
|
5259
|
+
object: string;
|
|
5260
|
+
confidence: number;
|
|
5261
|
+
subject: string;
|
|
5262
|
+
predicate: string;
|
|
5263
|
+
sourceMemoryId: string;
|
|
5264
|
+
}>;
|
|
5265
|
+
declare const buildContextGotcha: z.ZodObject<{
|
|
5266
|
+
/** The gotcha fact text */
|
|
5267
|
+
fact: z.ZodString;
|
|
5268
|
+
/** Number of distinct source memories mentioning this */
|
|
5269
|
+
sourceCount: z.ZodNumber;
|
|
5270
|
+
/** Source memory IDs */
|
|
5271
|
+
sourceMemories: z.ZodArray<z.ZodString, "many">;
|
|
5272
|
+
/** ISO 8601 timestamp of most recent source */
|
|
5273
|
+
lastSeen: z.ZodString;
|
|
5274
|
+
}, "strip", z.ZodTypeAny, {
|
|
5275
|
+
fact: string;
|
|
5276
|
+
sourceCount: number;
|
|
5277
|
+
sourceMemories: string[];
|
|
5278
|
+
lastSeen: string;
|
|
5279
|
+
}, {
|
|
5280
|
+
fact: string;
|
|
5281
|
+
sourceCount: number;
|
|
5282
|
+
sourceMemories: string[];
|
|
5283
|
+
lastSeen: string;
|
|
5284
|
+
}>;
|
|
5285
|
+
declare const buildContextActivity: z.ZodObject<{
|
|
5286
|
+
/** Memory ID */
|
|
5287
|
+
id: z.ZodString;
|
|
5288
|
+
/** Truncated content summary (max 200 chars) */
|
|
5289
|
+
summary: z.ZodString;
|
|
5290
|
+
/** ISO 8601 timestamp */
|
|
5291
|
+
date: z.ZodString;
|
|
5292
|
+
/** Conversation ID */
|
|
5293
|
+
conversationId: z.ZodNullable<z.ZodString>;
|
|
5294
|
+
}, "strip", z.ZodTypeAny, {
|
|
5295
|
+
id: string;
|
|
5296
|
+
date: string;
|
|
5297
|
+
conversationId: string | null;
|
|
5298
|
+
summary: string;
|
|
5299
|
+
}, {
|
|
5300
|
+
id: string;
|
|
5301
|
+
date: string;
|
|
5302
|
+
conversationId: string | null;
|
|
5303
|
+
summary: string;
|
|
5304
|
+
}>;
|
|
5305
|
+
declare const buildContextPattern: z.ZodObject<{
|
|
5306
|
+
/** Pattern description */
|
|
5307
|
+
pattern: z.ZodString;
|
|
5308
|
+
/** Confidence score (0-1) */
|
|
5309
|
+
confidence: z.ZodNumber;
|
|
5310
|
+
}, "strip", z.ZodTypeAny, {
|
|
5311
|
+
confidence: number;
|
|
5312
|
+
pattern: string;
|
|
5313
|
+
}, {
|
|
5314
|
+
confidence: number;
|
|
5315
|
+
pattern: string;
|
|
5316
|
+
}>;
|
|
5317
|
+
/**
|
|
5318
|
+
* Request metadata for transparency
|
|
5319
|
+
*/
|
|
5320
|
+
declare const buildContextMeta: z.ZodObject<{
|
|
5321
|
+
/** Search terms extracted from the context and files */
|
|
5322
|
+
contextTerms: z.ZodArray<z.ZodString, "many">;
|
|
5323
|
+
/** Hours window used for recent activity */
|
|
5324
|
+
recentHours: z.ZodNumber;
|
|
5325
|
+
}, "strip", z.ZodTypeAny, {
|
|
5326
|
+
recentHours: number;
|
|
5327
|
+
contextTerms: string[];
|
|
5328
|
+
}, {
|
|
5329
|
+
recentHours: number;
|
|
5330
|
+
contextTerms: string[];
|
|
5331
|
+
}>;
|
|
5332
|
+
declare const buildContextResponse: z.ZodLazy<z.ZodObject<{
|
|
5333
|
+
/** Most relevant active conversation, or null if none found */
|
|
5334
|
+
activeWork: z.ZodNullable<z.ZodObject<{
|
|
5335
|
+
/** Conversation ID */
|
|
5336
|
+
conversationId: z.ZodString;
|
|
5337
|
+
/** Conversation title */
|
|
5338
|
+
title: z.ZodNullable<z.ZodString>;
|
|
5339
|
+
/** ISO 8601 timestamp of last activity */
|
|
5340
|
+
lastActivity: z.ZodString;
|
|
5341
|
+
/** Most recent memory in this conversation */
|
|
5342
|
+
lastMemory: z.ZodObject<{
|
|
5343
|
+
/** Memory ID */
|
|
5344
|
+
id: z.ZodString;
|
|
5345
|
+
/** Truncated content summary */
|
|
5346
|
+
summary: z.ZodString;
|
|
5347
|
+
}, "strip", z.ZodTypeAny, {
|
|
5348
|
+
id: string;
|
|
5349
|
+
summary: string;
|
|
5350
|
+
}, {
|
|
5351
|
+
id: string;
|
|
5352
|
+
summary: string;
|
|
5353
|
+
}>;
|
|
5354
|
+
}, "strip", z.ZodTypeAny, {
|
|
5355
|
+
conversationId: string;
|
|
5356
|
+
title: string | null;
|
|
5357
|
+
lastActivity: string;
|
|
5358
|
+
lastMemory: {
|
|
5359
|
+
id: string;
|
|
5360
|
+
summary: string;
|
|
5361
|
+
};
|
|
5362
|
+
}, {
|
|
5363
|
+
conversationId: string;
|
|
5364
|
+
title: string | null;
|
|
5365
|
+
lastActivity: string;
|
|
5366
|
+
lastMemory: {
|
|
5367
|
+
id: string;
|
|
5368
|
+
summary: string;
|
|
5369
|
+
};
|
|
5370
|
+
}>>;
|
|
5371
|
+
/** Facts related to the context terms */
|
|
5372
|
+
relevantFacts: z.ZodArray<z.ZodObject<{
|
|
5373
|
+
/** Fact subject */
|
|
5374
|
+
subject: z.ZodString;
|
|
5375
|
+
/** Fact predicate */
|
|
5376
|
+
predicate: z.ZodString;
|
|
5377
|
+
/** Fact object */
|
|
5378
|
+
object: z.ZodString;
|
|
5379
|
+
/** Confidence score (0-1) */
|
|
5380
|
+
confidence: z.ZodNumber;
|
|
5381
|
+
/** Memory this fact was extracted from */
|
|
5382
|
+
sourceMemoryId: z.ZodString;
|
|
5383
|
+
}, "strip", z.ZodTypeAny, {
|
|
5384
|
+
object: string;
|
|
5385
|
+
confidence: number;
|
|
5386
|
+
subject: string;
|
|
5387
|
+
predicate: string;
|
|
5388
|
+
sourceMemoryId: string;
|
|
5389
|
+
}, {
|
|
5390
|
+
object: string;
|
|
5391
|
+
confidence: number;
|
|
5392
|
+
subject: string;
|
|
5393
|
+
predicate: string;
|
|
5394
|
+
sourceMemoryId: string;
|
|
5395
|
+
}>, "many">;
|
|
5396
|
+
/** Gotchas — facts appearing in 2+ source memories */
|
|
5397
|
+
gotchas: z.ZodArray<z.ZodObject<{
|
|
5398
|
+
/** The gotcha fact text */
|
|
5399
|
+
fact: z.ZodString;
|
|
5400
|
+
/** Number of distinct source memories mentioning this */
|
|
5401
|
+
sourceCount: z.ZodNumber;
|
|
5402
|
+
/** Source memory IDs */
|
|
5403
|
+
sourceMemories: z.ZodArray<z.ZodString, "many">;
|
|
5404
|
+
/** ISO 8601 timestamp of most recent source */
|
|
5405
|
+
lastSeen: z.ZodString;
|
|
5406
|
+
}, "strip", z.ZodTypeAny, {
|
|
5407
|
+
fact: string;
|
|
5408
|
+
sourceCount: number;
|
|
5409
|
+
sourceMemories: string[];
|
|
5410
|
+
lastSeen: string;
|
|
5411
|
+
}, {
|
|
5412
|
+
fact: string;
|
|
5413
|
+
sourceCount: number;
|
|
5414
|
+
sourceMemories: string[];
|
|
5415
|
+
lastSeen: string;
|
|
5416
|
+
}>, "many">;
|
|
5417
|
+
/** Recent relevant memories within the time window */
|
|
5418
|
+
recentActivity: z.ZodArray<z.ZodObject<{
|
|
5419
|
+
/** Memory ID */
|
|
5420
|
+
id: z.ZodString;
|
|
5421
|
+
/** Truncated content summary (max 200 chars) */
|
|
5422
|
+
summary: z.ZodString;
|
|
5423
|
+
/** ISO 8601 timestamp */
|
|
5424
|
+
date: z.ZodString;
|
|
5425
|
+
/** Conversation ID */
|
|
5426
|
+
conversationId: z.ZodNullable<z.ZodString>;
|
|
5427
|
+
}, "strip", z.ZodTypeAny, {
|
|
5428
|
+
id: string;
|
|
5429
|
+
date: string;
|
|
5430
|
+
conversationId: string | null;
|
|
5431
|
+
summary: string;
|
|
5432
|
+
}, {
|
|
5433
|
+
id: string;
|
|
5434
|
+
date: string;
|
|
5435
|
+
conversationId: string | null;
|
|
5436
|
+
summary: string;
|
|
5437
|
+
}>, "many">;
|
|
5438
|
+
/** Behavioral patterns related to the context */
|
|
5439
|
+
relatedPatterns: z.ZodArray<z.ZodObject<{
|
|
5440
|
+
/** Pattern description */
|
|
5441
|
+
pattern: z.ZodString;
|
|
5442
|
+
/** Confidence score (0-1) */
|
|
5443
|
+
confidence: z.ZodNumber;
|
|
5444
|
+
}, "strip", z.ZodTypeAny, {
|
|
5445
|
+
confidence: number;
|
|
5446
|
+
pattern: string;
|
|
5447
|
+
}, {
|
|
5448
|
+
confidence: number;
|
|
5449
|
+
pattern: string;
|
|
5450
|
+
}>, "many">;
|
|
5451
|
+
/** Request metadata for transparency */
|
|
5452
|
+
meta: z.ZodObject<{
|
|
5453
|
+
/** Search terms extracted from the context and files */
|
|
5454
|
+
contextTerms: z.ZodArray<z.ZodString, "many">;
|
|
5455
|
+
/** Hours window used for recent activity */
|
|
5456
|
+
recentHours: z.ZodNumber;
|
|
5457
|
+
}, "strip", z.ZodTypeAny, {
|
|
5458
|
+
recentHours: number;
|
|
5459
|
+
contextTerms: string[];
|
|
5460
|
+
}, {
|
|
5461
|
+
recentHours: number;
|
|
5462
|
+
contextTerms: string[];
|
|
5463
|
+
}>;
|
|
5464
|
+
}, "strip", z.ZodTypeAny, {
|
|
5465
|
+
meta: {
|
|
5466
|
+
recentHours: number;
|
|
5467
|
+
contextTerms: string[];
|
|
5468
|
+
};
|
|
5469
|
+
activeWork: {
|
|
5470
|
+
conversationId: string;
|
|
5471
|
+
title: string | null;
|
|
5472
|
+
lastActivity: string;
|
|
5473
|
+
lastMemory: {
|
|
5474
|
+
id: string;
|
|
5475
|
+
summary: string;
|
|
5476
|
+
};
|
|
5477
|
+
} | null;
|
|
5478
|
+
relevantFacts: {
|
|
5479
|
+
object: string;
|
|
5480
|
+
confidence: number;
|
|
5481
|
+
subject: string;
|
|
5482
|
+
predicate: string;
|
|
5483
|
+
sourceMemoryId: string;
|
|
5484
|
+
}[];
|
|
5485
|
+
gotchas: {
|
|
5486
|
+
fact: string;
|
|
5487
|
+
sourceCount: number;
|
|
5488
|
+
sourceMemories: string[];
|
|
5489
|
+
lastSeen: string;
|
|
5490
|
+
}[];
|
|
5491
|
+
recentActivity: {
|
|
5492
|
+
id: string;
|
|
5493
|
+
date: string;
|
|
5494
|
+
conversationId: string | null;
|
|
5495
|
+
summary: string;
|
|
5496
|
+
}[];
|
|
5497
|
+
relatedPatterns: {
|
|
5498
|
+
confidence: number;
|
|
5499
|
+
pattern: string;
|
|
5500
|
+
}[];
|
|
5501
|
+
}, {
|
|
5502
|
+
meta: {
|
|
5503
|
+
recentHours: number;
|
|
5504
|
+
contextTerms: string[];
|
|
5505
|
+
};
|
|
5506
|
+
activeWork: {
|
|
5507
|
+
conversationId: string;
|
|
5508
|
+
title: string | null;
|
|
5509
|
+
lastActivity: string;
|
|
5510
|
+
lastMemory: {
|
|
5511
|
+
id: string;
|
|
5512
|
+
summary: string;
|
|
5513
|
+
};
|
|
5514
|
+
} | null;
|
|
5515
|
+
relevantFacts: {
|
|
5516
|
+
object: string;
|
|
5517
|
+
confidence: number;
|
|
5518
|
+
subject: string;
|
|
5519
|
+
predicate: string;
|
|
5520
|
+
sourceMemoryId: string;
|
|
5521
|
+
}[];
|
|
5522
|
+
gotchas: {
|
|
5523
|
+
fact: string;
|
|
5524
|
+
sourceCount: number;
|
|
5525
|
+
sourceMemories: string[];
|
|
5526
|
+
lastSeen: string;
|
|
5527
|
+
}[];
|
|
5528
|
+
recentActivity: {
|
|
5529
|
+
id: string;
|
|
5530
|
+
date: string;
|
|
5531
|
+
conversationId: string | null;
|
|
5532
|
+
summary: string;
|
|
5533
|
+
}[];
|
|
5534
|
+
relatedPatterns: {
|
|
5535
|
+
confidence: number;
|
|
5536
|
+
pattern: string;
|
|
5537
|
+
}[];
|
|
5538
|
+
}>>;
|
|
5181
5539
|
|
|
5182
5540
|
/**
|
|
5183
5541
|
* TypeScript types for API models.
|
|
@@ -5268,6 +5626,20 @@ type DigestTimeRange = z.infer<typeof digestTimeRange>;
|
|
|
5268
5626
|
type DigestMetadata = z.infer<typeof digestMetadata>;
|
|
5269
5627
|
type DigestSource = z.infer<typeof digestSource>;
|
|
5270
5628
|
type DigestResponse = z.infer<typeof digestResponse>;
|
|
5629
|
+
type BuildContextRequest = z.infer<typeof buildContextRequest>;
|
|
5630
|
+
/**
|
|
5631
|
+
* Most relevant active conversation, or null if none found
|
|
5632
|
+
*/
|
|
5633
|
+
type BuildContextActiveWork = z.infer<typeof buildContextActiveWork>;
|
|
5634
|
+
type BuildContextFact = z.infer<typeof buildContextFact>;
|
|
5635
|
+
type BuildContextGotcha = z.infer<typeof buildContextGotcha>;
|
|
5636
|
+
type BuildContextActivity = z.infer<typeof buildContextActivity>;
|
|
5637
|
+
type BuildContextPattern = z.infer<typeof buildContextPattern>;
|
|
5638
|
+
/**
|
|
5639
|
+
* Request metadata for transparency
|
|
5640
|
+
*/
|
|
5641
|
+
type BuildContextMeta = z.infer<typeof buildContextMeta>;
|
|
5642
|
+
type BuildContextResponse = z.infer<typeof buildContextResponse>;
|
|
5271
5643
|
|
|
5272
5644
|
/**
|
|
5273
5645
|
* UsersService - User management and profile endpoints API operations.
|
|
@@ -5921,10 +6293,19 @@ declare class MonitoringService extends BaseService {
|
|
|
5921
6293
|
declare class MemoriesService extends BaseService {
|
|
5922
6294
|
/**
|
|
5923
6295
|
* Get memory by ID
|
|
5924
|
-
* Retrieve a specific memory by its ID
|
|
6296
|
+
* Retrieve a specific memory by its ID with configurable detail level.
|
|
6297
|
+
|
|
6298
|
+
**Detail levels:**
|
|
6299
|
+
- `minimal` — raw memory only, no extra queries
|
|
6300
|
+
- `standard` (default) — adds userTopics, extractedTopics, entities, facts, relationships
|
|
6301
|
+
- `full` — adds conversationContext (title, memoryCount, position) and relationship target previews
|
|
6302
|
+
|
|
5925
6303
|
* @param id - The memory ID
|
|
6304
|
+
* @param detail - Detail level: minimal (raw memory), standard (default, + topics/entities/facts/relationships), full (+ conversation context and relationship previews)
|
|
5926
6305
|
*/
|
|
5927
|
-
getMemoryById(id: string
|
|
6306
|
+
getMemoryById(id: string, options?: {
|
|
6307
|
+
detail?: 'minimal' | 'standard' | 'full';
|
|
6308
|
+
}): Promise<HttpResponse<{
|
|
5928
6309
|
data: Memory;
|
|
5929
6310
|
}>>;
|
|
5930
6311
|
/**
|
|
@@ -6173,6 +6554,7 @@ declare class MemoriesService extends BaseService {
|
|
|
6173
6554
|
*/
|
|
6174
6555
|
getMemoriesBatch(body: {
|
|
6175
6556
|
ids: string[];
|
|
6557
|
+
detail?: 'minimal' | 'standard';
|
|
6176
6558
|
}): Promise<HttpResponse<{
|
|
6177
6559
|
data: Memory[];
|
|
6178
6560
|
meta: BatchGetMemoriesMeta;
|
|
@@ -6211,6 +6593,27 @@ declare class MemoriesService extends BaseService {
|
|
|
6211
6593
|
metadata: DigestMetadata;
|
|
6212
6594
|
sources: DigestSource[];
|
|
6213
6595
|
}>>;
|
|
6596
|
+
/**
|
|
6597
|
+
* Build a context briefing
|
|
6598
|
+
* Answers "What should I know before working on X?" by combining active work
|
|
6599
|
+
detection, fact retrieval, gotcha detection, recent activity, and pattern
|
|
6600
|
+
matching into a single call. Eliminates the 5+ round-trip pattern agents
|
|
6601
|
+
use today.
|
|
6602
|
+
|
|
6603
|
+
* @param body - Request body
|
|
6604
|
+
*/
|
|
6605
|
+
buildContext(body: {
|
|
6606
|
+
context: string;
|
|
6607
|
+
files?: string[];
|
|
6608
|
+
recentHours?: number;
|
|
6609
|
+
}): Promise<HttpResponse<{
|
|
6610
|
+
activeWork: BuildContextActiveWork;
|
|
6611
|
+
relevantFacts: BuildContextFact[];
|
|
6612
|
+
gotchas: BuildContextGotcha[];
|
|
6613
|
+
recentActivity: BuildContextActivity[];
|
|
6614
|
+
relatedPatterns: BuildContextPattern[];
|
|
6615
|
+
meta: BuildContextMeta;
|
|
6616
|
+
}>>;
|
|
6214
6617
|
/**
|
|
6215
6618
|
* Get version history for a named memory
|
|
6216
6619
|
* Returns the full version chain for a named memory, ordered newest-first.
|
|
@@ -6231,11 +6634,14 @@ declare class MemoriesService extends BaseService {
|
|
|
6231
6634
|
/**
|
|
6232
6635
|
* Get a memory by name
|
|
6233
6636
|
* Retrieve the current HEAD version of a named memory by its user-assigned name.
|
|
6234
|
-
|
|
6637
|
+
Supports the same detail levels as GET /api/memories/{id}.
|
|
6235
6638
|
|
|
6236
6639
|
* @param name - Memory name (kebab-case, 2-64 chars)
|
|
6640
|
+
* @param detail - Detail level: minimal (raw memory), standard (default, + topics/entities/facts/relationships), full (+ conversation context and relationship previews)
|
|
6237
6641
|
*/
|
|
6238
|
-
getMemoryByName(name: string
|
|
6642
|
+
getMemoryByName(name: string, options?: {
|
|
6643
|
+
detail?: 'minimal' | 'standard' | 'full';
|
|
6644
|
+
}): Promise<HttpResponse<{
|
|
6239
6645
|
data: Memory;
|
|
6240
6646
|
}>>;
|
|
6241
6647
|
/**
|
|
@@ -7220,4 +7626,4 @@ declare class Memnexus {
|
|
|
7220
7626
|
setEnvironment(environment: Environment): void;
|
|
7221
7627
|
}
|
|
7222
7628
|
|
|
7223
|
-
export { type AddMemoryToNarrativeRequest, AdminService, type ApiKey, ApiKeysService, type Artifact, ArtifactsService, type BatchGetMemoriesMeta, type BatchGetMemoriesRequest, type BatchGetMemoriesResponse, BehaviorService, type BillingOverview, BillingService, type CheckoutSessionResponse, type Community, ContentType, type Conversation, ConversationsService, type CreateArtifactRequest, type CreateCheckoutSessionRequest, type CreateConversationRequest, type CreateFactRequest, type CreateMemoryRelationshipRequest, type CreateMemoryRequest, type CreateMemoryResponse, type CreateMemoryResponseMeta, type CreateNarrativeRequest, type CreatePortalSessionRequest, type DigestMetadata, type DigestRequest, type DigestResponse, type DigestSource, type DigestTimeRange, EntitiesService, type Entity, type EntityNode, Environment, type Error$1 as Error, type ErrorDefinition, type Fact, type FactSearchRequest, FactsService, type GetMemoryResponse, type GetNarrativeResponse, type GraphRAGQueryRequest, type GraphRAGQueryResponse, GraphragService, type HealthCheck, HealthService, type Hook, type HttpError, type HttpMetadata, type HttpMethod, type HttpRequest, type HttpResponse, InvitesService, type Invoice, type ListInvoicesResponse, type ListNarrativesResponse, type ListPaymentMethodsResponse, Memnexus, MemoriesService, type Memory, type MemoryRelationship, type MemoryRelationshipsResponse, MonitoringService, type NamedMemoryHistoryResponse, type NarrativeMemory, type NarrativeThread, type NarrativeTimelineResponse, NarrativesService, type Pagination, type Pattern, PatternsService, type PaymentMethod, type PortalSessionResponse, type RelatedMemoryResult, type RequestParameter, type ResponseDefinition, type RetryOptions, type SdkConfig, type SearchRequest, type SearchResponse, type SearchResult, SerializationStyle, type ServiceCheck, type Subscription, SystemService, type TemporalMetadata, type Topic, type TopicReference, TopicsService, type UpdateArtifactRequest, type UpdateFactRequest, type UpdateMemoryRequest, type UpdateNamedMemoryRequest, type UpdateNarrativeRequest, type User, type UserUsage, UsersService, type ValidationOptions, addMemoryToNarrativeRequest, apiKey, artifact, batchGetMemoriesMeta, batchGetMemoriesRequest, batchGetMemoriesResponse, billingOverview, checkoutSessionResponse, community, conversation, createArtifactRequest, createCheckoutSessionRequest, createConversationRequest, createFactRequest, createMemoryRelationshipRequest, createMemoryRequest, createMemoryResponse, createMemoryResponseMeta, createNarrativeRequest, createPortalSessionRequest, Memnexus as default, digestMetadata, digestRequest, digestResponse, digestSource, digestTimeRange, entity, entityNode, error, fact, factSearchRequest, getMemoryResponse, getNarrativeResponse, graphRAGQueryRequest, graphRAGQueryResponse, healthCheck, invoice, listInvoicesResponse, listNarrativesResponse, listPaymentMethodsResponse, memory, memoryRelationship, memoryRelationshipsResponse, namedMemoryHistoryResponse, narrativeMemory, narrativeThread, narrativeTimelineResponse, pagination, pattern, paymentMethod, portalSessionResponse, relatedMemoryResult, searchRequest, searchResponse, searchResult, serviceCheck, subscription, temporalMetadata, topic, topicReference, updateArtifactRequest, updateFactRequest, updateMemoryRequest, updateNamedMemoryRequest, updateNarrativeRequest, user, userUsage };
|
|
7629
|
+
export { type AddMemoryToNarrativeRequest, AdminService, type ApiKey, ApiKeysService, type Artifact, ArtifactsService, type BatchGetMemoriesMeta, type BatchGetMemoriesRequest, type BatchGetMemoriesResponse, BehaviorService, type BillingOverview, BillingService, type BuildContextActiveWork, type BuildContextActivity, type BuildContextFact, type BuildContextGotcha, type BuildContextMeta, type BuildContextPattern, type BuildContextRequest, type BuildContextResponse, type CheckoutSessionResponse, type Community, ContentType, type Conversation, ConversationsService, type CreateArtifactRequest, type CreateCheckoutSessionRequest, type CreateConversationRequest, type CreateFactRequest, type CreateMemoryRelationshipRequest, type CreateMemoryRequest, type CreateMemoryResponse, type CreateMemoryResponseMeta, type CreateNarrativeRequest, type CreatePortalSessionRequest, type DigestMetadata, type DigestRequest, type DigestResponse, type DigestSource, type DigestTimeRange, EntitiesService, type Entity, type EntityNode, Environment, type Error$1 as Error, type ErrorDefinition, type Fact, type FactSearchRequest, FactsService, type GetMemoryResponse, type GetNarrativeResponse, type GraphRAGQueryRequest, type GraphRAGQueryResponse, GraphragService, type HealthCheck, HealthService, type Hook, type HttpError, type HttpMetadata, type HttpMethod, type HttpRequest, type HttpResponse, InvitesService, type Invoice, type ListInvoicesResponse, type ListNarrativesResponse, type ListPaymentMethodsResponse, Memnexus, MemoriesService, type Memory, type MemoryRelationship, type MemoryRelationshipsResponse, MonitoringService, type NamedMemoryHistoryResponse, type NarrativeMemory, type NarrativeThread, type NarrativeTimelineResponse, NarrativesService, type Pagination, type Pattern, PatternsService, type PaymentMethod, type PortalSessionResponse, type RelatedMemoryResult, type RequestParameter, type ResponseDefinition, type RetryOptions, type SdkConfig, type SearchRequest, type SearchResponse, type SearchResult, SerializationStyle, type ServiceCheck, type Subscription, SystemService, type TemporalMetadata, type Topic, type TopicReference, TopicsService, type UpdateArtifactRequest, type UpdateFactRequest, type UpdateMemoryRequest, type UpdateNamedMemoryRequest, type UpdateNarrativeRequest, type User, type UserUsage, UsersService, type ValidationOptions, addMemoryToNarrativeRequest, apiKey, artifact, batchGetMemoriesMeta, batchGetMemoriesRequest, batchGetMemoriesResponse, billingOverview, buildContextActiveWork, buildContextActivity, buildContextFact, buildContextGotcha, buildContextMeta, buildContextPattern, buildContextRequest, buildContextResponse, checkoutSessionResponse, community, conversation, createArtifactRequest, createCheckoutSessionRequest, createConversationRequest, createFactRequest, createMemoryRelationshipRequest, createMemoryRequest, createMemoryResponse, createMemoryResponseMeta, createNarrativeRequest, createPortalSessionRequest, Memnexus as default, digestMetadata, digestRequest, digestResponse, digestSource, digestTimeRange, entity, entityNode, error, fact, factSearchRequest, getMemoryResponse, getNarrativeResponse, graphRAGQueryRequest, graphRAGQueryResponse, healthCheck, invoice, listInvoicesResponse, listNarrativesResponse, listPaymentMethodsResponse, memory, memoryRelationship, memoryRelationshipsResponse, namedMemoryHistoryResponse, narrativeMemory, narrativeThread, narrativeTimelineResponse, pagination, pattern, paymentMethod, portalSessionResponse, relatedMemoryResult, searchRequest, searchResponse, searchResult, serviceCheck, subscription, temporalMetadata, topic, topicReference, updateArtifactRequest, updateFactRequest, updateMemoryRequest, updateNamedMemoryRequest, updateNarrativeRequest, user, userUsage };
|