@xemahq/memory-api-client 0.2.4 → 0.2.6
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/models/appendEntryBodyDto.d.ts +9 -1
- package/dist/models/createMemoryBodyDto.d.ts +8 -1
- package/dist/models/memoriesUiControllerDeleteFileParams.d.ts +2 -0
- package/dist/models/memoriesUiControllerGetFileParams.d.ts +2 -0
- package/dist/models/memoriesUiControllerListParams.d.ts +4 -0
- package/dist/models/memoriesUiControllerSearchParams.d.ts +7 -0
- package/dist/models/memoryDetailDto.d.ts +7 -0
- package/dist/models/memorySummaryDto.d.ts +6 -0
- package/dist/models/renameMemoryBodyDto.d.ts +8 -0
- package/dist/models/strReplaceBodyDto.d.ts +6 -0
- package/package.json +2 -2
|
@@ -4,7 +4,15 @@
|
|
|
4
4
|
* OpenAPI spec version: 0.1.0
|
|
5
5
|
*/
|
|
6
6
|
export interface AppendEntryBodyDto {
|
|
7
|
+
/**
|
|
8
|
+
* @minLength 1
|
|
9
|
+
* @maxLength 512
|
|
10
|
+
*/
|
|
7
11
|
path: string;
|
|
8
|
-
/**
|
|
12
|
+
/**
|
|
13
|
+
* Markdown body of the new ledger entry. The server stamps the timestamp.
|
|
14
|
+
* @minLength 1
|
|
15
|
+
* @maxLength 16000
|
|
16
|
+
*/
|
|
9
17
|
entry: string;
|
|
10
18
|
}
|
|
@@ -4,7 +4,14 @@
|
|
|
4
4
|
* OpenAPI spec version: 0.1.0
|
|
5
5
|
*/
|
|
6
6
|
export interface CreateMemoryBodyDto {
|
|
7
|
+
/**
|
|
8
|
+
* @minLength 1
|
|
9
|
+
* @maxLength 512
|
|
10
|
+
*/
|
|
7
11
|
path: string;
|
|
8
|
-
/**
|
|
12
|
+
/**
|
|
13
|
+
* Full markdown body for the new memory file.
|
|
14
|
+
* @maxLength 64000
|
|
15
|
+
*/
|
|
9
16
|
fileText: string;
|
|
10
17
|
}
|
|
@@ -8,9 +8,13 @@ import type { MemoryScope } from './memoryScope.js';
|
|
|
8
8
|
export type MemoriesUiControllerListParams = {
|
|
9
9
|
scope?: MemoryScope;
|
|
10
10
|
kind?: MemoryKind;
|
|
11
|
+
/**
|
|
12
|
+
* @maxItems 20
|
|
13
|
+
*/
|
|
11
14
|
tags?: string[];
|
|
12
15
|
/**
|
|
13
16
|
* Other-project slug — read-only access if the actor is a member.
|
|
17
|
+
* @maxLength 128
|
|
14
18
|
*/
|
|
15
19
|
projectSlug?: string;
|
|
16
20
|
};
|
|
@@ -6,9 +6,16 @@
|
|
|
6
6
|
import type { MemoryKind } from './memoryKind.js';
|
|
7
7
|
import type { MemoryScope } from './memoryScope.js';
|
|
8
8
|
export type MemoriesUiControllerSearchParams = {
|
|
9
|
+
/**
|
|
10
|
+
* @minLength 1
|
|
11
|
+
* @maxLength 2048
|
|
12
|
+
*/
|
|
9
13
|
query: string;
|
|
10
14
|
scope?: MemoryScope;
|
|
11
15
|
kind?: MemoryKind;
|
|
16
|
+
/**
|
|
17
|
+
* @maxItems 20
|
|
18
|
+
*/
|
|
12
19
|
tags?: string[];
|
|
13
20
|
/**
|
|
14
21
|
* @minimum 1
|
|
@@ -8,16 +8,23 @@ import type { MemoryScope } from './memoryScope.js';
|
|
|
8
8
|
import type { MemorySurface } from './memorySurface.js';
|
|
9
9
|
export interface MemoryDetailDto {
|
|
10
10
|
id: string;
|
|
11
|
+
/** Canonical path, e.g. `/memories/project/lesson/foo.md`. */
|
|
11
12
|
path: string;
|
|
12
13
|
slug: string;
|
|
13
14
|
scope: MemoryScope;
|
|
14
15
|
kind: MemoryKind;
|
|
15
16
|
tags: string[];
|
|
17
|
+
/** ≤1024-char auto-generated abstract. */
|
|
16
18
|
summary: string;
|
|
17
19
|
updatedAt: string;
|
|
18
20
|
createdByAgent: string;
|
|
19
21
|
createdBySurface: MemorySurface;
|
|
22
|
+
/**
|
|
23
|
+
* Project slug when `scope = PROJECT`. The list endpoint surfaces this so
|
|
24
|
+
* the UI can render cross-project read results next to the canonical path.
|
|
25
|
+
*/
|
|
20
26
|
projectSlug?: string;
|
|
27
|
+
/** Full markdown body, including YAML frontmatter and ledger entries. */
|
|
21
28
|
content: string;
|
|
22
29
|
/** Model slug that produced the current summary (Model Resolution Matrix decision). */
|
|
23
30
|
summaryModel?: string;
|
|
@@ -8,14 +8,20 @@ import type { MemoryScope } from './memoryScope.js';
|
|
|
8
8
|
import type { MemorySurface } from './memorySurface.js';
|
|
9
9
|
export interface MemorySummaryDto {
|
|
10
10
|
id: string;
|
|
11
|
+
/** Canonical path, e.g. `/memories/project/lesson/foo.md`. */
|
|
11
12
|
path: string;
|
|
12
13
|
slug: string;
|
|
13
14
|
scope: MemoryScope;
|
|
14
15
|
kind: MemoryKind;
|
|
15
16
|
tags: string[];
|
|
17
|
+
/** ≤1024-char auto-generated abstract. */
|
|
16
18
|
summary: string;
|
|
17
19
|
updatedAt: string;
|
|
18
20
|
createdByAgent: string;
|
|
19
21
|
createdBySurface: MemorySurface;
|
|
22
|
+
/**
|
|
23
|
+
* Project slug when `scope = PROJECT`. The list endpoint surfaces this so
|
|
24
|
+
* the UI can render cross-project read results next to the canonical path.
|
|
25
|
+
*/
|
|
20
26
|
projectSlug?: string;
|
|
21
27
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xemahq/memory-api-client",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.6",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"service": "memory-api",
|
|
20
20
|
"biome": "memory",
|
|
21
21
|
"target": "server",
|
|
22
|
-
"generator": "@xemahq/api-client-generator@0.
|
|
22
|
+
"generator": "@xemahq/api-client-generator@0.17.1",
|
|
23
23
|
"source": "openapi.public.json"
|
|
24
24
|
},
|
|
25
25
|
"license": "LicenseRef-Xema-Proprietary",
|