@xemahq/memory-api-client 0.2.5 → 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.
@@ -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
- /** Markdown body of the new ledger entry. The server stamps the timestamp. */
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
- /** Full markdown body for the new memory file. */
12
+ /**
13
+ * Full markdown body for the new memory file.
14
+ * @maxLength 64000
15
+ */
9
16
  fileText: string;
10
17
  }
@@ -6,6 +6,8 @@
6
6
  export type MemoriesUiControllerDeleteFileParams = {
7
7
  /**
8
8
  * Canonical memory path, e.g. /memories/project/lesson/foo.md
9
+ * @minLength 1
10
+ * @maxLength 512
9
11
  */
10
12
  path: string;
11
13
  };
@@ -6,6 +6,8 @@
6
6
  export type MemoriesUiControllerGetFileParams = {
7
7
  /**
8
8
  * Canonical memory path, e.g. /memories/project/lesson/foo.md
9
+ * @minLength 1
10
+ * @maxLength 512
9
11
  */
10
12
  path: string;
11
13
  };
@@ -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
  }
@@ -4,6 +4,14 @@
4
4
  * OpenAPI spec version: 0.1.0
5
5
  */
6
6
  export interface RenameMemoryBodyDto {
7
+ /**
8
+ * @minLength 1
9
+ * @maxLength 512
10
+ */
7
11
  oldPath: string;
12
+ /**
13
+ * @minLength 1
14
+ * @maxLength 512
15
+ */
8
16
  newPath: string;
9
17
  }
@@ -4,7 +4,13 @@
4
4
  * OpenAPI spec version: 0.1.0
5
5
  */
6
6
  export interface StrReplaceBodyDto {
7
+ /**
8
+ * @minLength 1
9
+ * @maxLength 512
10
+ */
7
11
  path: string;
12
+ /** @maxLength 16000 */
8
13
  oldStr: string;
14
+ /** @maxLength 16000 */
9
15
  newStr: string;
10
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xemahq/memory-api-client",
3
- "version": "0.2.5",
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.15.0",
22
+ "generator": "@xemahq/api-client-generator@0.17.1",
23
23
  "source": "openapi.public.json"
24
24
  },
25
25
  "license": "LicenseRef-Xema-Proprietary",