@@ -314,9 +314,18 @@ export interface GetCloudWatchTraceResponse {
314314export type { CloudWatchTraceRecord , CloudWatchSpanRecord } from '../../traces/types' ;
315315
316316// ---------------------------------------------------------------------------
317- // GET /api/memory?memoryName=xxx&namespace=yyy[&strategyId=zzz]
317+ // GET /api/memory?memoryName=xxx&( namespace=yyy|namespacePath=yyy) [&strategyId=zzz]
318318// ---------------------------------------------------------------------------
319319
320+ /**
321+ * Query parameters for GET /api/memory. Exactly one of `namespace` (exact match) or
322+ * `namespacePath` (hierarchical path prefix) must be provided.
323+ */
324+ export type ListMemoryRecordsQuery = {
325+ memoryName : string ;
326+ strategyId ?: string ;
327+ } & ( { namespace : string ; namespacePath ?: never } | { namespace ?: never ; namespacePath : string } ) ;
328+
320329/** Response shape for GET /api/memory */
321330export interface ListMemoryRecordsResponse {
322331 success : boolean ;
@@ -340,13 +349,15 @@ export interface MemoryRecordResponse {
340349// POST /api/memory/search
341350// ---------------------------------------------------------------------------
342351
343- /** Request body for POST /api/memory/search */
344- export interface RetrieveMemoryRecordsRequest {
352+ /**
353+ * Request body for POST /api/memory/search. Exactly one of `namespace` (exact match) or
354+ * `namespacePath` (hierarchical path prefix) must be provided.
355+ */
356+ export type RetrieveMemoryRecordsRequest = {
345357 memoryName : string ;
346- namespace : string ;
347358 searchQuery : string ;
348359 strategyId ?: string ;
349- }
360+ } & ( { namespace : string ; namespacePath ?: never } | { namespace ?: never ; namespacePath : string } ) ;
350361
351362/** Response shape for POST /api/memory/search */
352363export interface RetrieveMemoryRecordsResponse {
0 commit comments