@xemahq/memory-api-client 0.1.2

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.
Files changed (132) hide show
  1. package/LICENSE +201 -0
  2. package/dist/custom-fetch.d.ts +52 -0
  3. package/dist/custom-fetch.js +152 -0
  4. package/dist/endpoints/health/health.d.ts +15 -0
  5. package/dist/endpoints/health/health.js +53 -0
  6. package/dist/endpoints/memory/memory.d.ts +53 -0
  7. package/dist/endpoints/memory/memory.js +214 -0
  8. package/dist/endpoints/memory-embedding-migration-admin/memory-embedding-migration-admin.d.ts +13 -0
  9. package/dist/endpoints/memory-embedding-migration-admin/memory-embedding-migration-admin.js +20 -0
  10. package/dist/endpoints/memory-internal/memory-internal.d.ts +26 -0
  11. package/dist/endpoints/memory-internal/memory-internal.js +55 -0
  12. package/dist/endpoints/memory-maintenance-admin/memory-maintenance-admin.d.ts +38 -0
  13. package/dist/endpoints/memory-maintenance-admin/memory-maintenance-admin.js +111 -0
  14. package/dist/index.d.ts +7 -0
  15. package/dist/index.js +29 -0
  16. package/dist/models/appendEntryBodyDto.d.ts +12 -0
  17. package/dist/models/appendEntryBodyDto.js +9 -0
  18. package/dist/models/applyMaintenanceProposalBodyDto.d.ts +20 -0
  19. package/dist/models/applyMaintenanceProposalBodyDto.js +2 -0
  20. package/dist/models/applyMaintenanceProposalBodyDtoKind.d.ts +18 -0
  21. package/dist/models/applyMaintenanceProposalBodyDtoKind.js +17 -0
  22. package/dist/models/applyMaintenanceProposalBodyDtoPayload.d.ts +13 -0
  23. package/dist/models/applyMaintenanceProposalBodyDtoPayload.js +9 -0
  24. package/dist/models/createMemoryBodyDto.d.ts +12 -0
  25. package/dist/models/createMemoryBodyDto.js +9 -0
  26. package/dist/models/index.d.ts +57 -0
  27. package/dist/models/index.js +74 -0
  28. package/dist/models/maintenanceControllerListRunsParams.d.ts +16 -0
  29. package/dist/models/maintenanceControllerListRunsParams.js +9 -0
  30. package/dist/models/maintenanceProposalResponseDto.d.ts +24 -0
  31. package/dist/models/maintenanceProposalResponseDto.js +2 -0
  32. package/dist/models/maintenanceProposalResponseDtoAppliedAt.d.ts +13 -0
  33. package/dist/models/maintenanceProposalResponseDtoAppliedAt.js +9 -0
  34. package/dist/models/maintenanceProposalResponseDtoDataEnvelope.d.ts +11 -0
  35. package/dist/models/maintenanceProposalResponseDtoDataEnvelope.js +2 -0
  36. package/dist/models/maintenanceProposalResponseDtoKind.d.ts +15 -0
  37. package/dist/models/maintenanceProposalResponseDtoKind.js +17 -0
  38. package/dist/models/maintenanceProposalResponseDtoPayload.d.ts +10 -0
  39. package/dist/models/maintenanceProposalResponseDtoPayload.js +9 -0
  40. package/dist/models/maintenanceProposalResponseDtoReason.d.ts +13 -0
  41. package/dist/models/maintenanceProposalResponseDtoReason.js +9 -0
  42. package/dist/models/maintenanceProposalResponseDtoStatus.d.ts +16 -0
  43. package/dist/models/maintenanceProposalResponseDtoStatus.js +18 -0
  44. package/dist/models/maintenanceRunDetailDto.d.ts +28 -0
  45. package/dist/models/maintenanceRunDetailDto.js +2 -0
  46. package/dist/models/maintenanceRunDetailDtoCompletedAt.d.ts +13 -0
  47. package/dist/models/maintenanceRunDetailDtoCompletedAt.js +9 -0
  48. package/dist/models/maintenanceRunDetailDtoDataEnvelope.d.ts +11 -0
  49. package/dist/models/maintenanceRunDetailDtoDataEnvelope.js +2 -0
  50. package/dist/models/maintenanceRunDetailDtoMode.d.ts +12 -0
  51. package/dist/models/maintenanceRunDetailDtoMode.js +14 -0
  52. package/dist/models/maintenanceRunDetailDtoStatus.d.ts +13 -0
  53. package/dist/models/maintenanceRunDetailDtoStatus.js +15 -0
  54. package/dist/models/maintenanceRunDetailDtoTotals.d.ts +14 -0
  55. package/dist/models/maintenanceRunDetailDtoTotals.js +9 -0
  56. package/dist/models/maintenanceRunResponseDto.d.ts +26 -0
  57. package/dist/models/maintenanceRunResponseDto.js +2 -0
  58. package/dist/models/maintenanceRunResponseDtoCompletedAt.d.ts +13 -0
  59. package/dist/models/maintenanceRunResponseDtoCompletedAt.js +9 -0
  60. package/dist/models/maintenanceRunResponseDtoDataArrayEnvelope.d.ts +11 -0
  61. package/dist/models/maintenanceRunResponseDtoDataArrayEnvelope.js +2 -0
  62. package/dist/models/maintenanceRunResponseDtoDataEnvelope.d.ts +11 -0
  63. package/dist/models/maintenanceRunResponseDtoDataEnvelope.js +2 -0
  64. package/dist/models/maintenanceRunResponseDtoMode.d.ts +12 -0
  65. package/dist/models/maintenanceRunResponseDtoMode.js +14 -0
  66. package/dist/models/maintenanceRunResponseDtoStatus.d.ts +13 -0
  67. package/dist/models/maintenanceRunResponseDtoStatus.js +15 -0
  68. package/dist/models/maintenanceRunResponseDtoTotals.d.ts +14 -0
  69. package/dist/models/maintenanceRunResponseDtoTotals.js +9 -0
  70. package/dist/models/memoriesUiControllerDeleteFileParams.d.ts +13 -0
  71. package/dist/models/memoriesUiControllerDeleteFileParams.js +9 -0
  72. package/dist/models/memoriesUiControllerGetFileParams.d.ts +13 -0
  73. package/dist/models/memoriesUiControllerGetFileParams.js +9 -0
  74. package/dist/models/memoriesUiControllerListParams.d.ts +18 -0
  75. package/dist/models/memoriesUiControllerListParams.js +2 -0
  76. package/dist/models/memoriesUiControllerSearchParams.d.ts +20 -0
  77. package/dist/models/memoriesUiControllerSearchParams.js +2 -0
  78. package/dist/models/memoryDetailDto.d.ts +28 -0
  79. package/dist/models/memoryDetailDto.js +2 -0
  80. package/dist/models/memoryDetailDtoDataEnvelope.d.ts +11 -0
  81. package/dist/models/memoryDetailDtoDataEnvelope.js +2 -0
  82. package/dist/models/memoryKind.d.ts +14 -0
  83. package/dist/models/memoryKind.js +16 -0
  84. package/dist/models/memoryListResponseDto.d.ts +13 -0
  85. package/dist/models/memoryListResponseDto.js +2 -0
  86. package/dist/models/memoryListResponseDtoDataEnvelope.d.ts +11 -0
  87. package/dist/models/memoryListResponseDtoDataEnvelope.js +2 -0
  88. package/dist/models/memoryProjectDto.d.ts +13 -0
  89. package/dist/models/memoryProjectDto.js +9 -0
  90. package/dist/models/memoryProjectListResponseDto.d.ts +11 -0
  91. package/dist/models/memoryProjectListResponseDto.js +2 -0
  92. package/dist/models/memoryProjectListResponseDtoDataEnvelope.d.ts +11 -0
  93. package/dist/models/memoryProjectListResponseDtoDataEnvelope.js +2 -0
  94. package/dist/models/memoryRecallBodyDto.d.ts +23 -0
  95. package/dist/models/memoryRecallBodyDto.js +2 -0
  96. package/dist/models/memoryRelateBodyDto.d.ts +17 -0
  97. package/dist/models/memoryRelateBodyDto.js +9 -0
  98. package/dist/models/memoryScope.d.ts +13 -0
  99. package/dist/models/memoryScope.js +15 -0
  100. package/dist/models/memorySearchResponseDto.d.ts +17 -0
  101. package/dist/models/memorySearchResponseDto.js +2 -0
  102. package/dist/models/memorySearchResponseDtoDataEnvelope.d.ts +11 -0
  103. package/dist/models/memorySearchResponseDtoDataEnvelope.js +2 -0
  104. package/dist/models/memoryStoreBodyDto.d.ts +23 -0
  105. package/dist/models/memoryStoreBodyDto.js +2 -0
  106. package/dist/models/memorySummaryDto.d.ts +23 -0
  107. package/dist/models/memorySummaryDto.js +2 -0
  108. package/dist/models/memorySummaryDtoDataEnvelope.d.ts +11 -0
  109. package/dist/models/memorySummaryDtoDataEnvelope.js +2 -0
  110. package/dist/models/memorySurface.d.ts +12 -0
  111. package/dist/models/memorySurface.js +14 -0
  112. package/dist/models/renameMemoryBodyDto.d.ts +11 -0
  113. package/dist/models/renameMemoryBodyDto.js +9 -0
  114. package/dist/models/startMaintenanceRunBodyDto.d.ts +14 -0
  115. package/dist/models/startMaintenanceRunBodyDto.js +2 -0
  116. package/dist/models/startMaintenanceRunBodyDtoMode.d.ts +15 -0
  117. package/dist/models/startMaintenanceRunBodyDtoMode.js +14 -0
  118. package/dist/models/startMaintenanceRunResponseDto.d.ts +13 -0
  119. package/dist/models/startMaintenanceRunResponseDto.js +2 -0
  120. package/dist/models/startMaintenanceRunResponseDtoDataEnvelope.d.ts +11 -0
  121. package/dist/models/startMaintenanceRunResponseDtoDataEnvelope.js +2 -0
  122. package/dist/models/strReplaceBodyDto.d.ts +12 -0
  123. package/dist/models/strReplaceBodyDto.js +9 -0
  124. package/dist/models/triggerEmbeddingMigrationBodyDto.d.ts +11 -0
  125. package/dist/models/triggerEmbeddingMigrationBodyDto.js +9 -0
  126. package/dist/models/triggerEmbeddingMigrationResponseDto.d.ts +17 -0
  127. package/dist/models/triggerEmbeddingMigrationResponseDto.js +2 -0
  128. package/dist/models/triggerEmbeddingMigrationResponseDtoDataEnvelope.d.ts +11 -0
  129. package/dist/models/triggerEmbeddingMigrationResponseDtoDataEnvelope.js +2 -0
  130. package/dist/models/triggerEmbeddingMigrationResponseDtoReason.d.ts +14 -0
  131. package/dist/models/triggerEmbeddingMigrationResponseDtoReason.js +9 -0
  132. package/package.json +18 -0
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by orval v8.6.2 🍺
4
+ * Do not edit manually.
5
+ * Memory API
6
+ * Persistent agent memory — operational insights, decisions, and patterns that survive across executions
7
+ * OpenAPI spec version: 0.1.0
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.MaintenanceRunResponseDtoMode = void 0;
11
+ exports.MaintenanceRunResponseDtoMode = {
12
+ DRY_RUN: 'DRY_RUN',
13
+ APPLY: 'APPLY',
14
+ };
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Memory API
5
+ * Persistent agent memory — operational insights, decisions, and patterns that survive across executions
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ export type MaintenanceRunResponseDtoStatus = typeof MaintenanceRunResponseDtoStatus[keyof typeof MaintenanceRunResponseDtoStatus];
9
+ export declare const MaintenanceRunResponseDtoStatus: {
10
+ readonly RUNNING: "RUNNING";
11
+ readonly SUCCEEDED: "SUCCEEDED";
12
+ readonly FAILED: "FAILED";
13
+ };
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by orval v8.6.2 🍺
4
+ * Do not edit manually.
5
+ * Memory API
6
+ * Persistent agent memory — operational insights, decisions, and patterns that survive across executions
7
+ * OpenAPI spec version: 0.1.0
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.MaintenanceRunResponseDtoStatus = void 0;
11
+ exports.MaintenanceRunResponseDtoStatus = {
12
+ RUNNING: 'RUNNING',
13
+ SUCCEEDED: 'SUCCEEDED',
14
+ FAILED: 'FAILED',
15
+ };
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Memory API
5
+ * Persistent agent memory — operational insights, decisions, and patterns that survive across executions
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ /**
9
+ * Aggregated counters once the run completes. `{ merged, pruned, renamed, summariesRefreshed, flagged, skippedDigestGate, skippedHashMismatch }`.
10
+ * @nullable
11
+ */
12
+ export type MaintenanceRunResponseDtoTotals = {
13
+ [key: string]: unknown;
14
+ } | null;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by orval v8.6.2 🍺
4
+ * Do not edit manually.
5
+ * Memory API
6
+ * Persistent agent memory — operational insights, decisions, and patterns that survive across executions
7
+ * OpenAPI spec version: 0.1.0
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Memory API
5
+ * Persistent agent memory — operational insights, decisions, and patterns that survive across executions
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ export type MemoriesUiControllerDeleteFileParams = {
9
+ /**
10
+ * Canonical memory path, e.g. /memories/project/lesson/foo.md
11
+ */
12
+ path: string;
13
+ };
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by orval v8.6.2 🍺
4
+ * Do not edit manually.
5
+ * Memory API
6
+ * Persistent agent memory — operational insights, decisions, and patterns that survive across executions
7
+ * OpenAPI spec version: 0.1.0
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Memory API
5
+ * Persistent agent memory — operational insights, decisions, and patterns that survive across executions
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ export type MemoriesUiControllerGetFileParams = {
9
+ /**
10
+ * Canonical memory path, e.g. /memories/project/lesson/foo.md
11
+ */
12
+ path: string;
13
+ };
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by orval v8.6.2 🍺
4
+ * Do not edit manually.
5
+ * Memory API
6
+ * Persistent agent memory — operational insights, decisions, and patterns that survive across executions
7
+ * OpenAPI spec version: 0.1.0
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Memory API
5
+ * Persistent agent memory — operational insights, decisions, and patterns that survive across executions
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ import type { MemoryKind } from './memoryKind';
9
+ import type { MemoryScope } from './memoryScope';
10
+ export type MemoriesUiControllerListParams = {
11
+ scope?: MemoryScope;
12
+ kind?: MemoryKind;
13
+ tags?: string[];
14
+ /**
15
+ * Other-project slug — read-only access if the actor is a member.
16
+ */
17
+ projectSlug?: string;
18
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Memory API
5
+ * Persistent agent memory — operational insights, decisions, and patterns that survive across executions
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ import type { MemoryKind } from './memoryKind';
9
+ import type { MemoryScope } from './memoryScope';
10
+ export type MemoriesUiControllerSearchParams = {
11
+ query: string;
12
+ scope?: MemoryScope;
13
+ kind?: MemoryKind;
14
+ tags?: string[];
15
+ /**
16
+ * @minimum 1
17
+ * @maximum 50
18
+ */
19
+ limit?: number;
20
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Memory API
5
+ * Persistent agent memory — operational insights, decisions, and patterns that survive across executions
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ import type { MemoryKind } from './memoryKind';
9
+ import type { MemoryScope } from './memoryScope';
10
+ import type { MemorySurface } from './memorySurface';
11
+ export interface MemoryDetailDto {
12
+ id: string;
13
+ path: string;
14
+ slug: string;
15
+ scope: MemoryScope;
16
+ kind: MemoryKind;
17
+ tags: string[];
18
+ summary: string;
19
+ updatedAt: string;
20
+ createdByAgent: string;
21
+ createdBySurface: MemorySurface;
22
+ projectSlug?: string;
23
+ content: string;
24
+ /** Model slug that produced the current summary (Model Resolution Matrix decision). */
25
+ summaryModel?: string;
26
+ summaryUpdatedAt?: string;
27
+ createdAt: string;
28
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Memory API
5
+ * Persistent agent memory — operational insights, decisions, and patterns that survive across executions
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ import type { MemoryDetailDto } from './memoryDetailDto';
9
+ export interface MemoryDetailDtoDataEnvelope {
10
+ data: MemoryDetailDto;
11
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Memory API
5
+ * Persistent agent memory — operational insights, decisions, and patterns that survive across executions
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ export type MemoryKind = typeof MemoryKind[keyof typeof MemoryKind];
9
+ export declare const MemoryKind: {
10
+ readonly LESSON: "LESSON";
11
+ readonly PATTERN: "PATTERN";
12
+ readonly CORRECTION: "CORRECTION";
13
+ readonly PREFERENCE: "PREFERENCE";
14
+ };
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by orval v8.6.2 🍺
4
+ * Do not edit manually.
5
+ * Memory API
6
+ * Persistent agent memory — operational insights, decisions, and patterns that survive across executions
7
+ * OpenAPI spec version: 0.1.0
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.MemoryKind = void 0;
11
+ exports.MemoryKind = {
12
+ LESSON: 'LESSON',
13
+ PATTERN: 'PATTERN',
14
+ CORRECTION: 'CORRECTION',
15
+ PREFERENCE: 'PREFERENCE',
16
+ };
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Memory API
5
+ * Persistent agent memory — operational insights, decisions, and patterns that survive across executions
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ import type { MemorySummaryDto } from './memorySummaryDto';
9
+ export interface MemoryListResponseDto {
10
+ memories: MemorySummaryDto[];
11
+ /** Scope segments visible to the caller. */
12
+ visibleScopes: string[];
13
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Memory API
5
+ * Persistent agent memory — operational insights, decisions, and patterns that survive across executions
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ import type { MemoryListResponseDto } from './memoryListResponseDto';
9
+ export interface MemoryListResponseDtoDataEnvelope {
10
+ data: MemoryListResponseDto;
11
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Memory API
5
+ * Persistent agent memory — operational insights, decisions, and patterns that survive across executions
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ export interface MemoryProjectDto {
9
+ slug: string;
10
+ name: string;
11
+ role: string;
12
+ projectId: string;
13
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by orval v8.6.2 🍺
4
+ * Do not edit manually.
5
+ * Memory API
6
+ * Persistent agent memory — operational insights, decisions, and patterns that survive across executions
7
+ * OpenAPI spec version: 0.1.0
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Memory API
5
+ * Persistent agent memory — operational insights, decisions, and patterns that survive across executions
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ import type { MemoryProjectDto } from './memoryProjectDto';
9
+ export interface MemoryProjectListResponseDto {
10
+ projects: MemoryProjectDto[];
11
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Memory API
5
+ * Persistent agent memory — operational insights, decisions, and patterns that survive across executions
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ import type { MemoryProjectListResponseDto } from './memoryProjectListResponseDto';
9
+ export interface MemoryProjectListResponseDtoDataEnvelope {
10
+ data: MemoryProjectListResponseDto;
11
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Memory API
5
+ * Persistent agent memory — operational insights, decisions, and patterns that survive across executions
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ import type { MemoryScope } from './memoryScope';
9
+ export interface MemoryRecallBodyDto {
10
+ /** Search query string. */
11
+ query: string;
12
+ /** Organization the caller is acting on behalf of. */
13
+ orgId: string;
14
+ /** Active project scope. When omitted, only ORG-scoped memories are searched. */
15
+ projectId?: string;
16
+ /** Restrict results to one scope tier. */
17
+ scope?: MemoryScope;
18
+ /**
19
+ * @minimum 1
20
+ * @maximum 50
21
+ */
22
+ limit?: number;
23
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Memory API
5
+ * Persistent agent memory — operational insights, decisions, and patterns that survive across executions
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ export interface MemoryRelateBodyDto {
9
+ /** Source memory ID. */
10
+ fromId: string;
11
+ /** Target memory ID. */
12
+ toId: string;
13
+ /** Named relation kind, e.g. "supports", "contradicts", "precedes". Lowercase alnum + hyphens, max 64 chars. */
14
+ relationKind: string;
15
+ /** Organization the caller is acting on behalf of. */
16
+ orgId: string;
17
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by orval v8.6.2 🍺
4
+ * Do not edit manually.
5
+ * Memory API
6
+ * Persistent agent memory — operational insights, decisions, and patterns that survive across executions
7
+ * OpenAPI spec version: 0.1.0
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Memory API
5
+ * Persistent agent memory — operational insights, decisions, and patterns that survive across executions
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ export type MemoryScope = typeof MemoryScope[keyof typeof MemoryScope];
9
+ export declare const MemoryScope: {
10
+ readonly ORG: "ORG";
11
+ readonly PROJECT: "PROJECT";
12
+ readonly USER: "USER";
13
+ };
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by orval v8.6.2 🍺
4
+ * Do not edit manually.
5
+ * Memory API
6
+ * Persistent agent memory — operational insights, decisions, and patterns that survive across executions
7
+ * OpenAPI spec version: 0.1.0
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.MemoryScope = void 0;
11
+ exports.MemoryScope = {
12
+ ORG: 'ORG',
13
+ PROJECT: 'PROJECT',
14
+ USER: 'USER',
15
+ };
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Memory API
5
+ * Persistent agent memory — operational insights, decisions, and patterns that survive across executions
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ import type { MemorySummaryDto } from './memorySummaryDto';
9
+ export interface MemorySearchResponseDto {
10
+ memories: MemorySummaryDto[];
11
+ /** Scope segments visible to the caller. */
12
+ visibleScopes: string[];
13
+ /** Echoed search query. */
14
+ query: string;
15
+ /** True when the embedding provider was transiently unavailable and the response was produced by the keyword-similarity fallback. The frontend should surface a banner so the user knows recall is looser than usual until the embedding service recovers. */
16
+ degraded: boolean;
17
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Memory API
5
+ * Persistent agent memory — operational insights, decisions, and patterns that survive across executions
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ import type { MemorySearchResponseDto } from './memorySearchResponseDto';
9
+ export interface MemorySearchResponseDtoDataEnvelope {
10
+ data: MemorySearchResponseDto;
11
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Memory API
5
+ * Persistent agent memory — operational insights, decisions, and patterns that survive across executions
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ import type { MemoryKind } from './memoryKind';
9
+ import type { MemoryScope } from './memoryScope';
10
+ export interface MemoryStoreBodyDto {
11
+ /** Markdown content for the new memory. */
12
+ content: string;
13
+ /** Organization the caller is acting on behalf of. */
14
+ orgId: string;
15
+ /** Project scope. When omitted, the memory is stored at ORG scope. */
16
+ projectId?: string;
17
+ /** Scope tier. Defaults to ORG. */
18
+ scope?: MemoryScope;
19
+ /** Memory kind. Defaults to LESSON. */
20
+ type?: MemoryKind;
21
+ /** @maxItems 20 */
22
+ tags?: string[];
23
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Memory API
5
+ * Persistent agent memory — operational insights, decisions, and patterns that survive across executions
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ import type { MemoryKind } from './memoryKind';
9
+ import type { MemoryScope } from './memoryScope';
10
+ import type { MemorySurface } from './memorySurface';
11
+ export interface MemorySummaryDto {
12
+ id: string;
13
+ path: string;
14
+ slug: string;
15
+ scope: MemoryScope;
16
+ kind: MemoryKind;
17
+ tags: string[];
18
+ summary: string;
19
+ updatedAt: string;
20
+ createdByAgent: string;
21
+ createdBySurface: MemorySurface;
22
+ projectSlug?: string;
23
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Memory API
5
+ * Persistent agent memory — operational insights, decisions, and patterns that survive across executions
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ import type { MemorySummaryDto } from './memorySummaryDto';
9
+ export interface MemorySummaryDtoDataEnvelope {
10
+ data: MemorySummaryDto;
11
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Memory API
5
+ * Persistent agent memory — operational insights, decisions, and patterns that survive across executions
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ export type MemorySurface = typeof MemorySurface[keyof typeof MemorySurface];
9
+ export declare const MemorySurface: {
10
+ readonly AGENT_SESSION: "AGENT_SESSION";
11
+ readonly WORKFLOW: "WORKFLOW";
12
+ };
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by orval v8.6.2 🍺
4
+ * Do not edit manually.
5
+ * Memory API
6
+ * Persistent agent memory — operational insights, decisions, and patterns that survive across executions
7
+ * OpenAPI spec version: 0.1.0
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.MemorySurface = void 0;
11
+ exports.MemorySurface = {
12
+ AGENT_SESSION: 'AGENT_SESSION',
13
+ WORKFLOW: 'WORKFLOW',
14
+ };
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Memory API
5
+ * Persistent agent memory — operational insights, decisions, and patterns that survive across executions
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ export interface RenameMemoryBodyDto {
9
+ oldPath: string;
10
+ newPath: string;
11
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by orval v8.6.2 🍺
4
+ * Do not edit manually.
5
+ * Memory API
6
+ * Persistent agent memory — operational insights, decisions, and patterns that survive across executions
7
+ * OpenAPI spec version: 0.1.0
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Memory API
5
+ * Persistent agent memory — operational insights, decisions, and patterns that survive across executions
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ import type { StartMaintenanceRunBodyDtoMode } from './startMaintenanceRunBodyDtoMode';
9
+ export interface StartMaintenanceRunBodyDto {
10
+ /** Organization the run targets. */
11
+ orgId: string;
12
+ /** `DRY_RUN` produces proposals without applying; `APPLY` mutates state through the writer. */
13
+ mode: StartMaintenanceRunBodyDtoMode;
14
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Memory API
5
+ * Persistent agent memory — operational insights, decisions, and patterns that survive across executions
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ /**
9
+ * `DRY_RUN` produces proposals without applying; `APPLY` mutates state through the writer.
10
+ */
11
+ export type StartMaintenanceRunBodyDtoMode = typeof StartMaintenanceRunBodyDtoMode[keyof typeof StartMaintenanceRunBodyDtoMode];
12
+ export declare const StartMaintenanceRunBodyDtoMode: {
13
+ readonly DRY_RUN: "DRY_RUN";
14
+ readonly APPLY: "APPLY";
15
+ };