@xemahq/memory-api-client 0.1.2 → 0.2.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.
Files changed (115) hide show
  1. package/LICENSE +36 -201
  2. package/README.md +62 -0
  3. package/dist/custom-fetch.d.ts +1 -1
  4. package/dist/custom-fetch.js +1 -1
  5. package/dist/endpoints/memory/memory.d.ts +10 -10
  6. package/dist/endpoints/memory/memory.js +27 -27
  7. package/dist/endpoints/org-admin/org-admin.d.ts +28 -0
  8. package/dist/endpoints/org-admin/org-admin.js +81 -0
  9. package/dist/index.d.ts +1 -4
  10. package/dist/index.js +2 -5
  11. package/dist/models/appendEntryBodyDto.d.ts +1 -1
  12. package/dist/models/appendEntryBodyDto.js +1 -1
  13. package/dist/models/createMemoryBodyDto.d.ts +1 -1
  14. package/dist/models/createMemoryBodyDto.js +1 -1
  15. package/dist/models/index.d.ts +3 -14
  16. package/dist/models/index.js +3 -14
  17. package/dist/models/{maintenanceControllerListRunsParams.d.ts → maintenanceOrgAdminControllerListRunsParams.d.ts} +2 -3
  18. package/dist/models/{memoryRelateBodyDto.js → maintenanceOrgAdminControllerListRunsParams.js} +1 -1
  19. package/dist/models/maintenanceProposalResponseDto.d.ts +6 -6
  20. package/dist/models/maintenanceProposalResponseDtoAppliedAt.d.ts +1 -1
  21. package/dist/models/maintenanceProposalResponseDtoAppliedAt.js +1 -1
  22. package/dist/models/maintenanceProposalResponseDtoDataEnvelope.d.ts +2 -2
  23. package/dist/models/maintenanceProposalResponseDtoKind.d.ts +1 -1
  24. package/dist/models/maintenanceProposalResponseDtoKind.js +1 -1
  25. package/dist/models/maintenanceProposalResponseDtoPayload.d.ts +1 -1
  26. package/dist/models/maintenanceProposalResponseDtoPayload.js +1 -1
  27. package/dist/models/maintenanceProposalResponseDtoReason.d.ts +1 -1
  28. package/dist/models/maintenanceProposalResponseDtoReason.js +1 -1
  29. package/dist/models/maintenanceProposalResponseDtoStatus.d.ts +1 -1
  30. package/dist/models/maintenanceProposalResponseDtoStatus.js +1 -1
  31. package/dist/models/maintenanceRunDetailDto.d.ts +6 -6
  32. package/dist/models/maintenanceRunDetailDtoCompletedAt.d.ts +1 -1
  33. package/dist/models/maintenanceRunDetailDtoCompletedAt.js +1 -1
  34. package/dist/models/maintenanceRunDetailDtoDataEnvelope.d.ts +2 -2
  35. package/dist/models/maintenanceRunDetailDtoMode.d.ts +1 -1
  36. package/dist/models/maintenanceRunDetailDtoMode.js +1 -1
  37. package/dist/models/maintenanceRunDetailDtoStatus.d.ts +1 -1
  38. package/dist/models/maintenanceRunDetailDtoStatus.js +1 -1
  39. package/dist/models/maintenanceRunDetailDtoTotals.d.ts +1 -1
  40. package/dist/models/maintenanceRunDetailDtoTotals.js +1 -1
  41. package/dist/models/maintenanceRunResponseDto.d.ts +5 -5
  42. package/dist/models/maintenanceRunResponseDtoCompletedAt.d.ts +1 -1
  43. package/dist/models/maintenanceRunResponseDtoCompletedAt.js +1 -1
  44. package/dist/models/maintenanceRunResponseDtoDataArrayEnvelope.d.ts +2 -2
  45. package/dist/models/maintenanceRunResponseDtoMode.d.ts +1 -1
  46. package/dist/models/maintenanceRunResponseDtoMode.js +1 -1
  47. package/dist/models/maintenanceRunResponseDtoStatus.d.ts +1 -1
  48. package/dist/models/maintenanceRunResponseDtoStatus.js +1 -1
  49. package/dist/models/maintenanceRunResponseDtoTotals.d.ts +1 -1
  50. package/dist/models/maintenanceRunResponseDtoTotals.js +1 -1
  51. package/dist/models/memoriesUiControllerDeleteFileParams.d.ts +1 -1
  52. package/dist/models/memoriesUiControllerDeleteFileParams.js +1 -1
  53. package/dist/models/memoriesUiControllerGetFileParams.d.ts +1 -1
  54. package/dist/models/memoriesUiControllerGetFileParams.js +1 -1
  55. package/dist/models/memoriesUiControllerListParams.d.ts +3 -3
  56. package/dist/models/memoriesUiControllerSearchParams.d.ts +3 -3
  57. package/dist/models/memoryDetailDto.d.ts +4 -4
  58. package/dist/models/memoryDetailDtoDataEnvelope.d.ts +2 -2
  59. package/dist/models/memoryKind.d.ts +1 -1
  60. package/dist/models/memoryKind.js +1 -1
  61. package/dist/models/memoryListResponseDto.d.ts +2 -2
  62. package/dist/models/memoryListResponseDtoDataEnvelope.d.ts +2 -2
  63. package/dist/models/memoryProjectDto.d.ts +1 -1
  64. package/dist/models/memoryProjectDto.js +1 -1
  65. package/dist/models/memoryProjectListResponseDto.d.ts +2 -2
  66. package/dist/models/memoryProjectListResponseDtoDataEnvelope.d.ts +2 -2
  67. package/dist/models/memoryScope.d.ts +1 -1
  68. package/dist/models/memoryScope.js +1 -1
  69. package/dist/models/memorySearchResponseDto.d.ts +2 -2
  70. package/dist/models/memorySearchResponseDtoDataEnvelope.d.ts +2 -2
  71. package/dist/models/memorySummaryDto.d.ts +4 -4
  72. package/dist/models/memorySummaryDtoDataEnvelope.d.ts +2 -2
  73. package/dist/models/memorySurface.d.ts +1 -1
  74. package/dist/models/memorySurface.js +1 -1
  75. package/dist/models/{startMaintenanceRunBodyDto.d.ts → orgAdminStartRunBodyDto.d.ts} +4 -6
  76. package/dist/models/{startMaintenanceRunBodyDtoMode.d.ts → orgAdminStartRunBodyDtoMode.d.ts} +3 -3
  77. package/dist/models/{startMaintenanceRunBodyDtoMode.js → orgAdminStartRunBodyDtoMode.js} +3 -3
  78. package/dist/models/renameMemoryBodyDto.d.ts +1 -1
  79. package/dist/models/renameMemoryBodyDto.js +1 -1
  80. package/dist/models/startMaintenanceRunResponseDto.d.ts +2 -2
  81. package/dist/models/startMaintenanceRunResponseDtoDataEnvelope.d.ts +2 -2
  82. package/dist/models/strReplaceBodyDto.d.ts +1 -1
  83. package/dist/models/strReplaceBodyDto.js +1 -1
  84. package/package.json +22 -2
  85. package/dist/endpoints/health/health.d.ts +0 -15
  86. package/dist/endpoints/health/health.js +0 -53
  87. package/dist/endpoints/memory-embedding-migration-admin/memory-embedding-migration-admin.d.ts +0 -13
  88. package/dist/endpoints/memory-embedding-migration-admin/memory-embedding-migration-admin.js +0 -20
  89. package/dist/endpoints/memory-internal/memory-internal.d.ts +0 -26
  90. package/dist/endpoints/memory-internal/memory-internal.js +0 -55
  91. package/dist/endpoints/memory-maintenance-admin/memory-maintenance-admin.d.ts +0 -38
  92. package/dist/endpoints/memory-maintenance-admin/memory-maintenance-admin.js +0 -111
  93. package/dist/models/applyMaintenanceProposalBodyDto.d.ts +0 -20
  94. package/dist/models/applyMaintenanceProposalBodyDtoKind.d.ts +0 -18
  95. package/dist/models/applyMaintenanceProposalBodyDtoKind.js +0 -17
  96. package/dist/models/applyMaintenanceProposalBodyDtoPayload.d.ts +0 -13
  97. package/dist/models/applyMaintenanceProposalBodyDtoPayload.js +0 -9
  98. package/dist/models/maintenanceControllerListRunsParams.js +0 -9
  99. package/dist/models/maintenanceRunResponseDtoDataEnvelope.d.ts +0 -11
  100. package/dist/models/maintenanceRunResponseDtoDataEnvelope.js +0 -2
  101. package/dist/models/memoryRecallBodyDto.d.ts +0 -23
  102. package/dist/models/memoryRecallBodyDto.js +0 -2
  103. package/dist/models/memoryRelateBodyDto.d.ts +0 -17
  104. package/dist/models/memoryStoreBodyDto.d.ts +0 -23
  105. package/dist/models/memoryStoreBodyDto.js +0 -2
  106. package/dist/models/startMaintenanceRunBodyDto.js +0 -2
  107. package/dist/models/triggerEmbeddingMigrationBodyDto.d.ts +0 -11
  108. package/dist/models/triggerEmbeddingMigrationBodyDto.js +0 -9
  109. package/dist/models/triggerEmbeddingMigrationResponseDto.d.ts +0 -17
  110. package/dist/models/triggerEmbeddingMigrationResponseDto.js +0 -2
  111. package/dist/models/triggerEmbeddingMigrationResponseDtoDataEnvelope.d.ts +0 -11
  112. package/dist/models/triggerEmbeddingMigrationResponseDtoDataEnvelope.js +0 -2
  113. package/dist/models/triggerEmbeddingMigrationResponseDtoReason.d.ts +0 -14
  114. package/dist/models/triggerEmbeddingMigrationResponseDtoReason.js +0 -9
  115. /package/dist/models/{applyMaintenanceProposalBodyDto.js → orgAdminStartRunBodyDto.js} +0 -0
@@ -1,38 +0,0 @@
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 { ApplyMaintenanceProposalBodyDto, MaintenanceControllerListRunsParams, MaintenanceProposalResponseDtoDataEnvelope, MaintenanceRunDetailDtoDataEnvelope, MaintenanceRunResponseDtoDataArrayEnvelope, MaintenanceRunResponseDtoDataEnvelope, StartMaintenanceRunBodyDto, StartMaintenanceRunResponseDtoDataEnvelope } from '../../models';
9
- /**
10
- * @summary Start a maintenance run for an org. Returns the run row + pre-resolved candidate lists per `(scope, kind)` partition (already digest-gated).
11
- */
12
- export declare const getMaintenanceControllerStartRunUrl: () => string;
13
- export declare const maintenanceControllerStartRun: (startMaintenanceRunBodyDto: StartMaintenanceRunBodyDto, options?: RequestInit) => Promise<StartMaintenanceRunResponseDtoDataEnvelope>;
14
- /**
15
- * @summary Apply a single proposed mutation. Fails fast with `MEMORY_MAINTENANCE_DIGEST_MISMATCH` if the target row has drifted since the workflow proposed against it.
16
- */
17
- export declare const getMaintenanceControllerApplyProposalUrl: () => string;
18
- export declare const maintenanceControllerApplyProposal: (applyMaintenanceProposalBodyDto: ApplyMaintenanceProposalBodyDto, options?: RequestInit) => Promise<MaintenanceProposalResponseDtoDataEnvelope>;
19
- /**
20
- * @summary Mark a maintenance run as SUCCEEDED or FAILED and stamp aggregated totals. Resets the per-org write counter when status=SUCCEEDED.
21
- */
22
- export declare const getMaintenanceControllerCompleteRunUrl: (runId: string) => string;
23
- export declare const maintenanceControllerCompleteRun: (runId: string, options?: RequestInit) => Promise<MaintenanceRunResponseDtoDataEnvelope>;
24
- /**
25
- * @summary Last N maintenance runs for an org.
26
- */
27
- export declare const getMaintenanceControllerListRunsUrl: (params: MaintenanceControllerListRunsParams) => string;
28
- export declare const maintenanceControllerListRuns: (params: MaintenanceControllerListRunsParams, options?: RequestInit) => Promise<MaintenanceRunResponseDtoDataArrayEnvelope>;
29
- /**
30
- * @summary Single run detail with every proposal it produced (applied, skipped, failed, reverted).
31
- */
32
- export declare const getMaintenanceControllerGetRunDetailUrl: (runId: string) => string;
33
- export declare const maintenanceControllerGetRunDetail: (runId: string, options?: RequestInit) => Promise<MaintenanceRunDetailDtoDataEnvelope>;
34
- /**
35
- * @summary Revert a single applied mutation. Supported for PRUNE / RENAME / SUMMARY_REFRESH only — MERGE and FLAG_EMPTY_ORPHAN are not reversible by design.
36
- */
37
- export declare const getMaintenanceControllerRevertProposalUrl: (proposalId: string) => string;
38
- export declare const maintenanceControllerRevertProposal: (proposalId: string, options?: RequestInit) => Promise<MaintenanceProposalResponseDtoDataEnvelope>;
@@ -1,111 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.maintenanceControllerRevertProposal = exports.getMaintenanceControllerRevertProposalUrl = exports.maintenanceControllerGetRunDetail = exports.getMaintenanceControllerGetRunDetailUrl = exports.maintenanceControllerListRuns = exports.getMaintenanceControllerListRunsUrl = exports.maintenanceControllerCompleteRun = exports.getMaintenanceControllerCompleteRunUrl = exports.maintenanceControllerApplyProposal = exports.getMaintenanceControllerApplyProposalUrl = exports.maintenanceControllerStartRun = exports.getMaintenanceControllerStartRunUrl = void 0;
4
- const custom_fetch_1 = require("../../custom-fetch");
5
- /**
6
- * @summary Start a maintenance run for an org. Returns the run row + pre-resolved candidate lists per `(scope, kind)` partition (already digest-gated).
7
- */
8
- const getMaintenanceControllerStartRunUrl = () => {
9
- return `/admin/maintenance/run`;
10
- };
11
- exports.getMaintenanceControllerStartRunUrl = getMaintenanceControllerStartRunUrl;
12
- const maintenanceControllerStartRun = async (startMaintenanceRunBodyDto, options) => {
13
- return (0, custom_fetch_1.customFetch)((0, exports.getMaintenanceControllerStartRunUrl)(), {
14
- ...options,
15
- method: 'POST',
16
- headers: { 'Content-Type': 'application/json', ...options?.headers },
17
- body: JSON.stringify(startMaintenanceRunBodyDto)
18
- });
19
- };
20
- exports.maintenanceControllerStartRun = maintenanceControllerStartRun;
21
- /**
22
- * @summary Apply a single proposed mutation. Fails fast with `MEMORY_MAINTENANCE_DIGEST_MISMATCH` if the target row has drifted since the workflow proposed against it.
23
- */
24
- const getMaintenanceControllerApplyProposalUrl = () => {
25
- return `/admin/maintenance/apply`;
26
- };
27
- exports.getMaintenanceControllerApplyProposalUrl = getMaintenanceControllerApplyProposalUrl;
28
- const maintenanceControllerApplyProposal = async (applyMaintenanceProposalBodyDto, options) => {
29
- return (0, custom_fetch_1.customFetch)((0, exports.getMaintenanceControllerApplyProposalUrl)(), {
30
- ...options,
31
- method: 'POST',
32
- headers: { 'Content-Type': 'application/json', ...options?.headers },
33
- body: JSON.stringify(applyMaintenanceProposalBodyDto)
34
- });
35
- };
36
- exports.maintenanceControllerApplyProposal = maintenanceControllerApplyProposal;
37
- /**
38
- * @summary Mark a maintenance run as SUCCEEDED or FAILED and stamp aggregated totals. Resets the per-org write counter when status=SUCCEEDED.
39
- */
40
- const getMaintenanceControllerCompleteRunUrl = (runId) => {
41
- return `/admin/maintenance/run/${runId}/complete`;
42
- };
43
- exports.getMaintenanceControllerCompleteRunUrl = getMaintenanceControllerCompleteRunUrl;
44
- const maintenanceControllerCompleteRun = async (runId, options) => {
45
- return (0, custom_fetch_1.customFetch)((0, exports.getMaintenanceControllerCompleteRunUrl)(runId), {
46
- ...options,
47
- method: 'POST'
48
- });
49
- };
50
- exports.maintenanceControllerCompleteRun = maintenanceControllerCompleteRun;
51
- /**
52
- * @summary Last N maintenance runs for an org.
53
- */
54
- const getMaintenanceControllerListRunsUrl = (params) => {
55
- const normalizedParams = new URLSearchParams();
56
- Object.entries(params || {}).forEach(([key, value]) => {
57
- if (value === undefined)
58
- return;
59
- if (value === null) {
60
- normalizedParams.append(key, 'null');
61
- return;
62
- }
63
- if (Array.isArray(value)) {
64
- for (const item of value) {
65
- if (item === undefined || item === null)
66
- continue;
67
- normalizedParams.append(key, item.toString());
68
- }
69
- return;
70
- }
71
- normalizedParams.append(key, value.toString());
72
- });
73
- const stringifiedParams = normalizedParams.toString();
74
- return stringifiedParams.length > 0 ? `/admin/maintenance/runs?${stringifiedParams}` : `/admin/maintenance/runs`;
75
- };
76
- exports.getMaintenanceControllerListRunsUrl = getMaintenanceControllerListRunsUrl;
77
- const maintenanceControllerListRuns = async (params, options) => {
78
- return (0, custom_fetch_1.customFetch)((0, exports.getMaintenanceControllerListRunsUrl)(params), {
79
- ...options,
80
- method: 'GET'
81
- });
82
- };
83
- exports.maintenanceControllerListRuns = maintenanceControllerListRuns;
84
- /**
85
- * @summary Single run detail with every proposal it produced (applied, skipped, failed, reverted).
86
- */
87
- const getMaintenanceControllerGetRunDetailUrl = (runId) => {
88
- return `/admin/maintenance/runs/${runId}`;
89
- };
90
- exports.getMaintenanceControllerGetRunDetailUrl = getMaintenanceControllerGetRunDetailUrl;
91
- const maintenanceControllerGetRunDetail = async (runId, options) => {
92
- return (0, custom_fetch_1.customFetch)((0, exports.getMaintenanceControllerGetRunDetailUrl)(runId), {
93
- ...options,
94
- method: 'GET'
95
- });
96
- };
97
- exports.maintenanceControllerGetRunDetail = maintenanceControllerGetRunDetail;
98
- /**
99
- * @summary Revert a single applied mutation. Supported for PRUNE / RENAME / SUMMARY_REFRESH only — MERGE and FLAG_EMPTY_ORPHAN are not reversible by design.
100
- */
101
- const getMaintenanceControllerRevertProposalUrl = (proposalId) => {
102
- return `/admin/maintenance/proposals/${proposalId}/revert`;
103
- };
104
- exports.getMaintenanceControllerRevertProposalUrl = getMaintenanceControllerRevertProposalUrl;
105
- const maintenanceControllerRevertProposal = async (proposalId, options) => {
106
- return (0, custom_fetch_1.customFetch)((0, exports.getMaintenanceControllerRevertProposalUrl)(proposalId), {
107
- ...options,
108
- method: 'POST'
109
- });
110
- };
111
- exports.maintenanceControllerRevertProposal = maintenanceControllerRevertProposal;
@@ -1,20 +0,0 @@
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 { ApplyMaintenanceProposalBodyDtoKind } from './applyMaintenanceProposalBodyDtoKind';
9
- import type { ApplyMaintenanceProposalBodyDtoPayload } from './applyMaintenanceProposalBodyDtoPayload';
10
- export interface ApplyMaintenanceProposalBodyDto {
11
- runId: string;
12
- /** Which mutation kind the workflow is applying. */
13
- kind: ApplyMaintenanceProposalBodyDtoKind;
14
- /** Target memory id. Required for every mutation kind except FLAG_EMPTY_ORPHAN (which is informational and never applies). */
15
- memoryId: string;
16
- /** Digest the workflow proposed against. The apply endpoint re-reads the row's contentDigest and fails fast with `MEMORY_MAINTENANCE_DIGEST_MISMATCH` if it has drifted (an agent wrote between proposal and apply). */
17
- expectedContentDigest: string;
18
- /** Kind-specific structured payload. Shape mirrors `MemoryMaintenanceProposal.payload` documented in schema.prisma. */
19
- payload: ApplyMaintenanceProposalBodyDtoPayload;
20
- }
@@ -1,18 +0,0 @@
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
- * Which mutation kind the workflow is applying.
10
- */
11
- export type ApplyMaintenanceProposalBodyDtoKind = typeof ApplyMaintenanceProposalBodyDtoKind[keyof typeof ApplyMaintenanceProposalBodyDtoKind];
12
- export declare const ApplyMaintenanceProposalBodyDtoKind: {
13
- readonly MERGE: "MERGE";
14
- readonly PRUNE: "PRUNE";
15
- readonly RENAME: "RENAME";
16
- readonly SUMMARY_REFRESH: "SUMMARY_REFRESH";
17
- readonly FLAG_EMPTY_ORPHAN: "FLAG_EMPTY_ORPHAN";
18
- };
@@ -1,17 +0,0 @@
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.ApplyMaintenanceProposalBodyDtoKind = void 0;
11
- exports.ApplyMaintenanceProposalBodyDtoKind = {
12
- MERGE: 'MERGE',
13
- PRUNE: 'PRUNE',
14
- RENAME: 'RENAME',
15
- SUMMARY_REFRESH: 'SUMMARY_REFRESH',
16
- FLAG_EMPTY_ORPHAN: 'FLAG_EMPTY_ORPHAN',
17
- };
@@ -1,13 +0,0 @@
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
- * Kind-specific structured payload. Shape mirrors `MemoryMaintenanceProposal.payload` documented in schema.prisma.
10
- */
11
- export type ApplyMaintenanceProposalBodyDtoPayload = {
12
- [key: string]: unknown;
13
- };
@@ -1,9 +0,0 @@
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 });
@@ -1,9 +0,0 @@
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 });
@@ -1,11 +0,0 @@
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 { MaintenanceRunResponseDto } from './maintenanceRunResponseDto';
9
- export interface MaintenanceRunResponseDtoDataEnvelope {
10
- data: MaintenanceRunResponseDto;
11
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,23 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,17 +0,0 @@
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
- }
@@ -1,23 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,11 +0,0 @@
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 TriggerEmbeddingMigrationBodyDto {
9
- /** Organization whose pending embedding migration should be processed. */
10
- orgId: string;
11
- }
@@ -1,9 +0,0 @@
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 });
@@ -1,17 +0,0 @@
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 { TriggerEmbeddingMigrationResponseDtoReason } from './triggerEmbeddingMigrationResponseDtoReason';
9
- export interface TriggerEmbeddingMigrationResponseDto {
10
- /** Whether the walker was started. `false` when the org is not currently in a migrating state. */
11
- started: boolean;
12
- /**
13
- * Human-readable explanation when `started=false` (e.g. "org is not migrating").
14
- * @nullable
15
- */
16
- reason?: TriggerEmbeddingMigrationResponseDtoReason;
17
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,11 +0,0 @@
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 { TriggerEmbeddingMigrationResponseDto } from './triggerEmbeddingMigrationResponseDto';
9
- export interface TriggerEmbeddingMigrationResponseDtoDataEnvelope {
10
- data: TriggerEmbeddingMigrationResponseDto;
11
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,14 +0,0 @@
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
- * Human-readable explanation when `started=false` (e.g. "org is not migrating").
10
- * @nullable
11
- */
12
- export type TriggerEmbeddingMigrationResponseDtoReason = {
13
- [key: string]: unknown;
14
- } | null;
@@ -1,9 +0,0 @@
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 });