@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
package/LICENSE CHANGED
@@ -1,201 +1,36 @@
1
- Apache License
2
- Version 2.0, January 2004
3
- http://www.apache.org/licenses/
4
-
5
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
-
7
- 1. Definitions.
8
-
9
- "License" shall mean the terms and conditions for use, reproduction,
10
- and distribution as defined by Sections 1 through 9 of this document.
11
-
12
- "Licensor" shall mean the copyright owner or entity authorized by
13
- the copyright owner that is granting the License.
14
-
15
- "Legal Entity" shall mean the union of the acting entity and all
16
- other entities that control, are controlled by, or are under common
17
- control with that entity. For the purposes of this definition,
18
- "control" means (i) the power, direct or indirect, to cause the
19
- direction or management of such entity, whether by contract or
20
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
- outstanding shares, or (iii) beneficial ownership of such entity.
22
-
23
- "You" (or "Your") shall mean an individual or Legal Entity
24
- exercising permissions granted by this License.
25
-
26
- "Source" form shall mean the preferred form for making modifications,
27
- including but not limited to software source code, documentation
28
- source, and configuration files.
29
-
30
- "Object" form shall mean any form resulting from mechanical
31
- transformation or translation of a Source form, including but
32
- not limited to compiled object code, generated documentation,
33
- and conversions to other media types.
34
-
35
- "Work" shall mean the work of authorship, whether in Source or
36
- Object form, made available under the License, as indicated by a
37
- copyright notice that is included in or attached to the work
38
- (an example is provided in the Appendix below).
39
-
40
- "Derivative Works" shall mean any work, whether in Source or Object
41
- form, that is based on (or derived from) the Work and for which the
42
- editorial revisions, annotations, elaborations, or other modifications
43
- represent, as a whole, an original work of authorship. For the purposes
44
- of this License, Derivative Works shall not include works that remain
45
- separable from, or merely link (or bind by name) to the interfaces of,
46
- the Work and Derivative Works thereof.
47
-
48
- "Contribution" shall mean any work of authorship, including
49
- the original version of the Work and any modifications or additions
50
- to that Work or Derivative Works thereof, that is intentionally
51
- submitted to Licensor for inclusion in the Work by the copyright owner
52
- or by an individual or Legal Entity authorized to submit on behalf of
53
- the copyright owner. For the purposes of this definition, "submitted"
54
- means any form of electronic, verbal, or written communication sent
55
- to the Licensor or its representatives, including but not limited to
56
- communication on electronic mailing lists, source code control systems,
57
- and issue tracking systems that are managed by, or on behalf of, the
58
- Licensor for the purpose of discussing and improving the Work, but
59
- excluding communication that is conspicuously marked or otherwise
60
- designated in writing by the copyright owner as "Not a Contribution."
61
-
62
- "Contributor" shall mean Licensor and any individual or Legal Entity
63
- on behalf of whom a Contribution has been received by Licensor and
64
- subsequently incorporated within the Work.
65
-
66
- 2. Grant of Copyright License. Subject to the terms and conditions of
67
- this License, each Contributor hereby grants to You a perpetual,
68
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
- copyright license to reproduce, prepare Derivative Works of,
70
- publicly display, publicly perform, sublicense, and distribute the
71
- Work and such Derivative Works in Source or Object form.
72
-
73
- 3. Grant of Patent License. Subject to the terms and conditions of
74
- this License, each Contributor hereby grants to You a perpetual,
75
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
- (except as stated in this section) patent license to make, have made,
77
- use, offer to sell, sell, import, and otherwise transfer the Work,
78
- where such license applies only to those patent claims licensable
79
- by such Contributor that are necessarily infringed by their
80
- Contribution(s) alone or by combination of their Contribution(s)
81
- with the Work to which such Contribution(s) was submitted. If You
82
- institute patent litigation against any entity (including a
83
- cross-claim or counterclaim in a lawsuit) alleging that the Work
84
- or a Contribution incorporated within the Work constitutes direct
85
- or contributory patent infringement, then any patent licenses
86
- granted to You under this License for that Work shall terminate
87
- as of the date such litigation is filed.
88
-
89
- 4. Redistribution. You may reproduce and distribute copies of the
90
- Work or Derivative Works thereof in any medium, with or without
91
- modifications, and in Source or Object form, provided that You
92
- meet the following conditions:
93
-
94
- (a) You must give any other recipients of the Work or
95
- Derivative Works a copy of this License; and
96
-
97
- (b) You must cause any modified files to carry prominent notices
98
- stating that You changed the files; and
99
-
100
- (c) You must retain, in the Source form of any Derivative Works
101
- that You distribute, all copyright, patent, trademark, and
102
- attribution notices from the Source form of the Work,
103
- excluding those notices that do not pertain to any part of
104
- the Derivative Works; and
105
-
106
- (d) If the Work includes a "NOTICE" text file as part of its
107
- distribution, then any Derivative Works that You distribute must
108
- include a readable copy of the attribution notices contained
109
- within such NOTICE file, excluding those notices that do not
110
- pertain to any part of the Derivative Works, in at least one
111
- of the following places: within a NOTICE text file distributed
112
- as part of the Derivative Works; within the Source form or
113
- documentation, if provided along with the Derivative Works; or,
114
- within a display generated by the Derivative Works, if and
115
- wherever such third-party notices normally appear. The contents
116
- of the NOTICE file are for informational purposes only and
117
- do not modify the License. You may add Your own attribution
118
- notices within Derivative Works that You distribute, alongside
119
- or as an addendum to the NOTICE text from the Work, provided
120
- that such additional attribution notices cannot be construed
121
- as modifying the License.
122
-
123
- You may add Your own copyright statement to Your modifications and
124
- may provide additional or different license terms and conditions
125
- for use, reproduction, or distribution of Your modifications, or
126
- for any such Derivative Works as a whole, provided Your use,
127
- reproduction, and distribution of the Work otherwise complies with
128
- the conditions stated in this License.
129
-
130
- 5. Submission of Contributions. Unless You explicitly state otherwise,
131
- any Contribution intentionally submitted for inclusion in the Work
132
- by You to the Licensor shall be under the terms and conditions of
133
- this License, without any additional terms or conditions.
134
- Notwithstanding the above, nothing herein shall supersede or modify
135
- the terms of any separate license agreement you may have executed
136
- with Licensor regarding such Contributions.
137
-
138
- 6. Trademarks. This License does not grant permission to use the trade
139
- names, trademarks, service marks, or product names of the Licensor,
140
- except as required for describing the origin of the Work and
141
- reproducing the content of the NOTICE file.
142
-
143
- 7. Disclaimer of Warranty. Unless required by applicable law or
144
- agreed to in writing, Licensor provides the Work (and each
145
- Contributor provides its Contributions) on an "AS IS" BASIS,
146
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
- implied, including, without limitation, any warranties or conditions
148
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
- PARTICULAR PURPOSE. You are solely responsible for determining the
150
- appropriateness of using or redistributing the Work and assume any
151
- risks associated with Your exercise of permissions under this License.
152
-
153
- 8. Limitation of Liability. In no event and under no legal theory,
154
- whether in tort (including negligence), contract, or otherwise,
155
- unless required by applicable law (such as deliberate and grossly
156
- negligent acts) or agreed to in writing, shall any Contributor be
157
- liable to You for damages, including any direct, indirect, special,
158
- incidental, or consequential damages of any character arising as a
159
- result of this License or out of the use or inability to use the
160
- Work (including but not limited to damages for loss of goodwill,
161
- work stoppage, computer failure or malfunction, or any and all
162
- other commercial damages or losses), even if such Contributor
163
- has been advised of the possibility of such damages.
164
-
165
- 9. Accepting Warranty or Support. While redistributing the Work or
166
- Derivative Works thereof, You may choose to offer, and charge a
167
- fee for, acceptance of support, warranty, indemnity, or other
168
- liability obligations and/or rights consistent with this License.
169
- However, in accepting such obligations, You may act only on Your
170
- own behalf and on Your sole responsibility, not on behalf of any
171
- other Contributor, and only if You agree to indemnify, defend, and
172
- hold each Contributor harmless for any liability incurred by, or
173
- claims asserted against, such Contributor by reason of your
174
- accepting any such warranty or support.
175
-
176
- END OF TERMS AND CONDITIONS
177
-
178
- APPENDIX: How to apply the Apache License to your work.
179
-
180
- To apply the Apache License to your work, attach the following
181
- boilerplate notice, with the fields enclosed by brackets "[]"
182
- replaced with your own identifying information. (Don't include
183
- the brackets!) The text should be enclosed in the appropriate
184
- comment syntax for the file format. We also recommend that a
185
- file or class name and description of purpose be included on the
186
- same "printed page" as the copyright notice for easier
187
- identification within third-party archives.
188
-
189
- Copyright 2026 Xema
190
-
191
- Licensed under the Apache License, Version 2.0 (the "License");
192
- you may not use this file except in compliance with the License.
193
- You may obtain a copy of the License at
194
-
195
- http://www.apache.org/licenses/LICENSE-2.0
196
-
197
- Unless required by applicable law or agreed to in writing, software
198
- distributed under the License is distributed on an "AS IS" BASIS,
199
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
- See the License for the specific language governing permissions and
201
- limitations under the License.
1
+ Xema Proprietary License
2
+
3
+ Copyright (c) 2026 Neuralchowder Inc.. All Rights Reserved.
4
+
5
+ This software and its source code, object code, documentation, and all
6
+ associated materials (the "Software") are the confidential and proprietary
7
+ property of Neuralchowder Inc. ("Licensor") and are protected by copyright, trade secret,
8
+ and other intellectual property laws.
9
+
10
+ NO LICENSE IS GRANTED BY THIS FILE. No right or license to use, copy, modify,
11
+ merge, publish, distribute, sublicense, sell, host, embed, or create
12
+ derivative works of the Software is granted, whether by implication, estoppel,
13
+ or otherwise, except under a separate written agreement signed by an
14
+ authorized representative of Neuralchowder Inc..
15
+
16
+ Unauthorized copying, use, distribution, or disclosure of the Software, in
17
+ whole or in part, by any means, is strictly prohibited and may violate
18
+ applicable law.
19
+
20
+ Access to the Software, where provided, is granted solely under and subject to
21
+ the terms of a separate written commercial, evaluation, or subscription
22
+ agreement between you and Neuralchowder Inc.. In the event of any conflict between
23
+ this file and such signed agreement, the signed agreement controls.
24
+
25
+ Third-party software, libraries, packages, and assets included with or used by
26
+ the Software remain subject to their own respective license terms.
27
+
28
+ TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, THE SOFTWARE IS PROVIDED ON
29
+ AN "AS IS" AND "AS AVAILABLE" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
30
+ KIND, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION WARRANTIES OF
31
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE, AND NON-INFRINGEMENT.
32
+ TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, IN NO EVENT SHALL
33
+ Neuralchowder Inc. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
34
+ CONSEQUENTIAL, OR EXEMPLARY DAMAGES ARISING OUT OF OR RELATED TO THE SOFTWARE.
35
+
36
+ For licensing inquiries, contact: licensing@neuralchowder.com
package/README.md ADDED
@@ -0,0 +1,62 @@
1
+ <!-- Generated by @xemahq/api-client-generator. Do not edit by hand. -->
2
+ <p align="center">
3
+ <svg width="680" height="120" viewBox="0 0 680 120" fill="none" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="@xemahq/memory-api-client">
4
+ <rect width="680" height="120" rx="14" fill="#0B1020"/>
5
+ <g transform="translate(28,34)">
6
+ <path d="M26 0 L52 15 L52 45 L26 60 L0 45 L0 15 Z" fill="#14B8A6" opacity="0.18"/>
7
+ <path d="M26 12 L41 21 L41 39 L26 48 L11 39 L11 21 Z" fill="#14B8A6"/>
8
+ </g>
9
+ <text x="92" y="52" font-family="ui-monospace,SFMono-Regular,Menlo,monospace" font-size="22" fill="#F8FAFC" font-weight="700">@xemahq/memory-api-client</text>
10
+ <text x="92" y="80" font-family="ui-sans-serif,system-ui,sans-serif" font-size="15" fill="#94A3B8">Typed, generated HTTP client for the Memory API.</text>
11
+ <text x="652" y="105" text-anchor="end" font-family="ui-sans-serif,system-ui,sans-serif" font-size="12" fill="#475569">xema.dev</text>
12
+ </svg>
13
+ </p>
14
+
15
+ <p align="center">
16
+ <a href="https://xema.dev">Website</a> &middot;
17
+ <a href="https://www.npmjs.com/package/@xemahq/memory-api-client">npm</a>
18
+ </p>
19
+
20
+ <p align="center">
21
+ <img alt="npm" src="https://img.shields.io/npm/v/%40xemahq%2Fmemory-api-client?color=2563eb&label=npm">
22
+ <img alt="license" src="https://img.shields.io/npm/l/%40xemahq%2Fmemory-api-client?color=10b981">
23
+ <img alt="types" src="https://img.shields.io/npm/types/%40xemahq%2Fmemory-api-client?color=3178c6">
24
+ </p>
25
+
26
+ # @xemahq/memory-api-client
27
+
28
+ > Typed, generated HTTP client for the Memory API.
29
+
30
+ ## Overview
31
+
32
+ Auto-generated TypeScript client for the **Memory API**. It exports typed
33
+ request functions and response models that mirror the service's OpenAPI surface,
34
+ so callers get end-to-end type safety without hand-writing HTTP calls. This
35
+ package is produced by `@xemahq/api-client-generator` and regenerated whenever
36
+ the service's API changes — do not edit it by hand.
37
+
38
+ ## When to use it
39
+
40
+ - Use it from any TypeScript service or app that calls the Memory API over HTTP.
41
+ - You get compile-time types for every endpoint and payload; regenerate to pick
42
+ up API changes rather than editing the client.
43
+
44
+ ## Installation
45
+
46
+ ```bash
47
+ pnpm add @xemahq/memory-api-client
48
+ ```
49
+
50
+ ## Usage
51
+
52
+ ```ts
53
+ // Every endpoint function and response model is exported from the package root.
54
+ import * as client from '@xemahq/memory-api-client';
55
+ ```
56
+
57
+ Call the typed endpoint functions; request and response shapes are fully typed
58
+ from the service's OpenAPI spec.
59
+
60
+ ## License
61
+
62
+ Proprietary — &copy; Xema. All rights reserved. — [xema.dev](https://xema.dev)
@@ -16,7 +16,7 @@
16
16
  * configureClient({
17
17
  * baseUrl: 'http://governance-api:3400',
18
18
  * getAuthToken: () => identityBootstrapService.getAccessToken(),
19
- * getHeaders: () => ({ 'X-Org-Id': orgId, 'X-Correlation-Id': crypto.randomUUID() }),
19
+ * getHeaders: () => ({ 'X-Xema-Org-Id': orgId, 'X-Correlation-Id': crypto.randomUUID() }),
20
20
  * });
21
21
  */
22
22
  export interface ClientConfig {
@@ -17,7 +17,7 @@
17
17
  * configureClient({
18
18
  * baseUrl: 'http://governance-api:3400',
19
19
  * getAuthToken: () => identityBootstrapService.getAccessToken(),
20
- * getHeaders: () => ({ 'X-Org-Id': orgId, 'X-Correlation-Id': crypto.randomUUID() }),
20
+ * getHeaders: () => ({ 'X-Xema-Org-Id': orgId, 'X-Correlation-Id': crypto.randomUUID() }),
21
21
  * });
22
22
  */
23
23
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,53 +1,53 @@
1
1
  /**
2
- * Generated by orval v8.6.2 🍺
2
+ * Generated by orval v8.15.0 🍺
3
3
  * Do not edit manually.
4
4
  * Memory API
5
5
  * Persistent agent memory — operational insights, decisions, and patterns that survive across executions
6
6
  * OpenAPI spec version: 0.1.0
7
7
  */
8
8
  import type { AppendEntryBodyDto, CreateMemoryBodyDto, MemoriesUiControllerDeleteFileParams, MemoriesUiControllerGetFileParams, MemoriesUiControllerListParams, MemoriesUiControllerSearchParams, MemoryDetailDtoDataEnvelope, MemoryListResponseDtoDataEnvelope, MemoryProjectListResponseDtoDataEnvelope, MemorySearchResponseDtoDataEnvelope, MemorySummaryDtoDataEnvelope, RenameMemoryBodyDto, StrReplaceBodyDto } from '../../models';
9
+ export declare const getMemoriesUiControllerListProjectsUrl: () => string;
9
10
  /**
10
11
  * @summary List projects the current human actor can read memories from.
11
12
  */
12
- export declare const getMemoriesUiControllerListProjectsUrl: () => string;
13
13
  export declare const memoriesUiControllerListProjects: (options?: RequestInit) => Promise<MemoryProjectListResponseDtoDataEnvelope>;
14
+ export declare const getMemoriesUiControllerListUrl: (params?: MemoriesUiControllerListParams) => string;
14
15
  /**
15
16
  * @summary Flat list of memories visible to the caller (org + active project + own user). Optional filters: scope, kind, tags, projectSlug for cross-project read.
16
17
  */
17
- export declare const getMemoriesUiControllerListUrl: (params?: MemoriesUiControllerListParams) => string;
18
18
  export declare const memoriesUiControllerList: (params?: MemoriesUiControllerListParams, options?: RequestInit) => Promise<MemoryListResponseDtoDataEnvelope>;
19
+ export declare const getMemoriesUiControllerSearchUrl: (params: MemoriesUiControllerSearchParams) => string;
19
20
  /**
20
21
  * @summary Vector search across memories the caller can read. Returns the same row shape as `GET /memory/list`.
21
22
  */
22
- export declare const getMemoriesUiControllerSearchUrl: (params: MemoriesUiControllerSearchParams) => string;
23
23
  export declare const memoriesUiControllerSearch: (params: MemoriesUiControllerSearchParams, options?: RequestInit) => Promise<MemorySearchResponseDtoDataEnvelope>;
24
+ export declare const getMemoriesUiControllerGetFileUrl: (params: MemoriesUiControllerGetFileParams) => string;
24
25
  /**
25
26
  * @summary Fetch the full markdown body + audit metadata for one memory.
26
27
  */
27
- export declare const getMemoriesUiControllerGetFileUrl: (params: MemoriesUiControllerGetFileParams) => string;
28
28
  export declare const memoriesUiControllerGetFile: (params: MemoriesUiControllerGetFileParams, options?: RequestInit) => Promise<MemoryDetailDtoDataEnvelope>;
29
+ export declare const getMemoriesUiControllerCreateFileUrl: () => string;
29
30
  /**
30
31
  * @summary Create a new memory file. Same path grammar + scope rules as the MCP `memory_create` tool.
31
32
  */
32
- export declare const getMemoriesUiControllerCreateFileUrl: () => string;
33
33
  export declare const memoriesUiControllerCreateFile: (createMemoryBodyDto: CreateMemoryBodyDto, options?: RequestInit) => Promise<MemorySummaryDtoDataEnvelope>;
34
+ export declare const getMemoriesUiControllerStrReplaceUrl: () => string;
34
35
  /**
35
36
  * @summary Replace `oldStr` with `newStr` in a memory file. The match must be unique within the body.
36
37
  */
37
- export declare const getMemoriesUiControllerStrReplaceUrl: () => string;
38
38
  export declare const memoriesUiControllerStrReplace: (strReplaceBodyDto: StrReplaceBodyDto, options?: RequestInit) => Promise<MemorySummaryDtoDataEnvelope>;
39
+ export declare const getMemoriesUiControllerDeleteFileUrl: (params: MemoriesUiControllerDeleteFileParams) => string;
39
40
  /**
40
41
  * @summary Delete a memory file.
41
42
  */
42
- export declare const getMemoriesUiControllerDeleteFileUrl: (params: MemoriesUiControllerDeleteFileParams) => string;
43
43
  export declare const memoriesUiControllerDeleteFile: (params: MemoriesUiControllerDeleteFileParams, options?: RequestInit) => Promise<void>;
44
+ export declare const getMemoriesUiControllerAppendEntryUrl: () => string;
44
45
  /**
45
46
  * @summary Append a new ledger entry to an existing memory. The server stamps the `## <ISO-8601>` heading.
46
47
  */
47
- export declare const getMemoriesUiControllerAppendEntryUrl: () => string;
48
48
  export declare const memoriesUiControllerAppendEntry: (appendEntryBodyDto: AppendEntryBodyDto, options?: RequestInit) => Promise<MemorySummaryDtoDataEnvelope>;
49
+ export declare const getMemoriesUiControllerRenameFileUrl: () => string;
49
50
  /**
50
51
  * @summary Rename a memory slug. Scope + kind segments are immutable; only the slug changes.
51
52
  */
52
- export declare const getMemoriesUiControllerRenameFileUrl: () => string;
53
53
  export declare const memoriesUiControllerRenameFile: (renameMemoryBodyDto: RenameMemoryBodyDto, options?: RequestInit) => Promise<MemorySummaryDtoDataEnvelope>;
@@ -2,13 +2,13 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.memoriesUiControllerRenameFile = exports.getMemoriesUiControllerRenameFileUrl = exports.memoriesUiControllerAppendEntry = exports.getMemoriesUiControllerAppendEntryUrl = exports.memoriesUiControllerDeleteFile = exports.getMemoriesUiControllerDeleteFileUrl = exports.memoriesUiControllerStrReplace = exports.getMemoriesUiControllerStrReplaceUrl = exports.memoriesUiControllerCreateFile = exports.getMemoriesUiControllerCreateFileUrl = exports.memoriesUiControllerGetFile = exports.getMemoriesUiControllerGetFileUrl = exports.memoriesUiControllerSearch = exports.getMemoriesUiControllerSearchUrl = exports.memoriesUiControllerList = exports.getMemoriesUiControllerListUrl = exports.memoriesUiControllerListProjects = exports.getMemoriesUiControllerListProjectsUrl = void 0;
4
4
  const custom_fetch_1 = require("../../custom-fetch");
5
- /**
6
- * @summary List projects the current human actor can read memories from.
7
- */
8
5
  const getMemoriesUiControllerListProjectsUrl = () => {
9
6
  return `/memory/projects`;
10
7
  };
11
8
  exports.getMemoriesUiControllerListProjectsUrl = getMemoriesUiControllerListProjectsUrl;
9
+ /**
10
+ * @summary List projects the current human actor can read memories from.
11
+ */
12
12
  const memoriesUiControllerListProjects = async (options) => {
13
13
  return (0, custom_fetch_1.customFetch)((0, exports.getMemoriesUiControllerListProjectsUrl)(), {
14
14
  ...options,
@@ -16,9 +16,6 @@ const memoriesUiControllerListProjects = async (options) => {
16
16
  });
17
17
  };
18
18
  exports.memoriesUiControllerListProjects = memoriesUiControllerListProjects;
19
- /**
20
- * @summary Flat list of memories visible to the caller (org + active project + own user). Optional filters: scope, kind, tags, projectSlug for cross-project read.
21
- */
22
19
  const getMemoriesUiControllerListUrl = (params) => {
23
20
  const normalizedParams = new URLSearchParams();
24
21
  Object.entries(params || {}).forEach(([key, value]) => {
@@ -42,6 +39,9 @@ const getMemoriesUiControllerListUrl = (params) => {
42
39
  return stringifiedParams.length > 0 ? `/memory/list?${stringifiedParams}` : `/memory/list`;
43
40
  };
44
41
  exports.getMemoriesUiControllerListUrl = getMemoriesUiControllerListUrl;
42
+ /**
43
+ * @summary Flat list of memories visible to the caller (org + active project + own user). Optional filters: scope, kind, tags, projectSlug for cross-project read.
44
+ */
45
45
  const memoriesUiControllerList = async (params, options) => {
46
46
  return (0, custom_fetch_1.customFetch)((0, exports.getMemoriesUiControllerListUrl)(params), {
47
47
  ...options,
@@ -49,9 +49,6 @@ const memoriesUiControllerList = async (params, options) => {
49
49
  });
50
50
  };
51
51
  exports.memoriesUiControllerList = memoriesUiControllerList;
52
- /**
53
- * @summary Vector search across memories the caller can read. Returns the same row shape as `GET /memory/list`.
54
- */
55
52
  const getMemoriesUiControllerSearchUrl = (params) => {
56
53
  const normalizedParams = new URLSearchParams();
57
54
  Object.entries(params || {}).forEach(([key, value]) => {
@@ -75,6 +72,9 @@ const getMemoriesUiControllerSearchUrl = (params) => {
75
72
  return stringifiedParams.length > 0 ? `/memory/search?${stringifiedParams}` : `/memory/search`;
76
73
  };
77
74
  exports.getMemoriesUiControllerSearchUrl = getMemoriesUiControllerSearchUrl;
75
+ /**
76
+ * @summary Vector search across memories the caller can read. Returns the same row shape as `GET /memory/list`.
77
+ */
78
78
  const memoriesUiControllerSearch = async (params, options) => {
79
79
  return (0, custom_fetch_1.customFetch)((0, exports.getMemoriesUiControllerSearchUrl)(params), {
80
80
  ...options,
@@ -82,9 +82,6 @@ const memoriesUiControllerSearch = async (params, options) => {
82
82
  });
83
83
  };
84
84
  exports.memoriesUiControllerSearch = memoriesUiControllerSearch;
85
- /**
86
- * @summary Fetch the full markdown body + audit metadata for one memory.
87
- */
88
85
  const getMemoriesUiControllerGetFileUrl = (params) => {
89
86
  const normalizedParams = new URLSearchParams();
90
87
  Object.entries(params || {}).forEach(([key, value]) => {
@@ -108,6 +105,9 @@ const getMemoriesUiControllerGetFileUrl = (params) => {
108
105
  return stringifiedParams.length > 0 ? `/memory/file?${stringifiedParams}` : `/memory/file`;
109
106
  };
110
107
  exports.getMemoriesUiControllerGetFileUrl = getMemoriesUiControllerGetFileUrl;
108
+ /**
109
+ * @summary Fetch the full markdown body + audit metadata for one memory.
110
+ */
111
111
  const memoriesUiControllerGetFile = async (params, options) => {
112
112
  return (0, custom_fetch_1.customFetch)((0, exports.getMemoriesUiControllerGetFileUrl)(params), {
113
113
  ...options,
@@ -115,13 +115,13 @@ const memoriesUiControllerGetFile = async (params, options) => {
115
115
  });
116
116
  };
117
117
  exports.memoriesUiControllerGetFile = memoriesUiControllerGetFile;
118
- /**
119
- * @summary Create a new memory file. Same path grammar + scope rules as the MCP `memory_create` tool.
120
- */
121
118
  const getMemoriesUiControllerCreateFileUrl = () => {
122
119
  return `/memory/file`;
123
120
  };
124
121
  exports.getMemoriesUiControllerCreateFileUrl = getMemoriesUiControllerCreateFileUrl;
122
+ /**
123
+ * @summary Create a new memory file. Same path grammar + scope rules as the MCP `memory_create` tool.
124
+ */
125
125
  const memoriesUiControllerCreateFile = async (createMemoryBodyDto, options) => {
126
126
  return (0, custom_fetch_1.customFetch)((0, exports.getMemoriesUiControllerCreateFileUrl)(), {
127
127
  ...options,
@@ -131,13 +131,13 @@ const memoriesUiControllerCreateFile = async (createMemoryBodyDto, options) => {
131
131
  });
132
132
  };
133
133
  exports.memoriesUiControllerCreateFile = memoriesUiControllerCreateFile;
134
- /**
135
- * @summary Replace `oldStr` with `newStr` in a memory file. The match must be unique within the body.
136
- */
137
134
  const getMemoriesUiControllerStrReplaceUrl = () => {
138
135
  return `/memory/file`;
139
136
  };
140
137
  exports.getMemoriesUiControllerStrReplaceUrl = getMemoriesUiControllerStrReplaceUrl;
138
+ /**
139
+ * @summary Replace `oldStr` with `newStr` in a memory file. The match must be unique within the body.
140
+ */
141
141
  const memoriesUiControllerStrReplace = async (strReplaceBodyDto, options) => {
142
142
  return (0, custom_fetch_1.customFetch)((0, exports.getMemoriesUiControllerStrReplaceUrl)(), {
143
143
  ...options,
@@ -147,9 +147,6 @@ const memoriesUiControllerStrReplace = async (strReplaceBodyDto, options) => {
147
147
  });
148
148
  };
149
149
  exports.memoriesUiControllerStrReplace = memoriesUiControllerStrReplace;
150
- /**
151
- * @summary Delete a memory file.
152
- */
153
150
  const getMemoriesUiControllerDeleteFileUrl = (params) => {
154
151
  const normalizedParams = new URLSearchParams();
155
152
  Object.entries(params || {}).forEach(([key, value]) => {
@@ -173,6 +170,9 @@ const getMemoriesUiControllerDeleteFileUrl = (params) => {
173
170
  return stringifiedParams.length > 0 ? `/memory/file?${stringifiedParams}` : `/memory/file`;
174
171
  };
175
172
  exports.getMemoriesUiControllerDeleteFileUrl = getMemoriesUiControllerDeleteFileUrl;
173
+ /**
174
+ * @summary Delete a memory file.
175
+ */
176
176
  const memoriesUiControllerDeleteFile = async (params, options) => {
177
177
  return (0, custom_fetch_1.customFetch)((0, exports.getMemoriesUiControllerDeleteFileUrl)(params), {
178
178
  ...options,
@@ -180,13 +180,13 @@ const memoriesUiControllerDeleteFile = async (params, options) => {
180
180
  });
181
181
  };
182
182
  exports.memoriesUiControllerDeleteFile = memoriesUiControllerDeleteFile;
183
- /**
184
- * @summary Append a new ledger entry to an existing memory. The server stamps the `## <ISO-8601>` heading.
185
- */
186
183
  const getMemoriesUiControllerAppendEntryUrl = () => {
187
184
  return `/memory/file/append`;
188
185
  };
189
186
  exports.getMemoriesUiControllerAppendEntryUrl = getMemoriesUiControllerAppendEntryUrl;
187
+ /**
188
+ * @summary Append a new ledger entry to an existing memory. The server stamps the `## <ISO-8601>` heading.
189
+ */
190
190
  const memoriesUiControllerAppendEntry = async (appendEntryBodyDto, options) => {
191
191
  return (0, custom_fetch_1.customFetch)((0, exports.getMemoriesUiControllerAppendEntryUrl)(), {
192
192
  ...options,
@@ -196,13 +196,13 @@ const memoriesUiControllerAppendEntry = async (appendEntryBodyDto, options) => {
196
196
  });
197
197
  };
198
198
  exports.memoriesUiControllerAppendEntry = memoriesUiControllerAppendEntry;
199
- /**
200
- * @summary Rename a memory slug. Scope + kind segments are immutable; only the slug changes.
201
- */
202
199
  const getMemoriesUiControllerRenameFileUrl = () => {
203
200
  return `/memory/file/rename`;
204
201
  };
205
202
  exports.getMemoriesUiControllerRenameFileUrl = getMemoriesUiControllerRenameFileUrl;
203
+ /**
204
+ * @summary Rename a memory slug. Scope + kind segments are immutable; only the slug changes.
205
+ */
206
206
  const memoriesUiControllerRenameFile = async (renameMemoryBodyDto, options) => {
207
207
  return (0, custom_fetch_1.customFetch)((0, exports.getMemoriesUiControllerRenameFileUrl)(), {
208
208
  ...options,
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Generated by orval v8.15.0 🍺
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 { MaintenanceOrgAdminControllerListRunsParams, MaintenanceProposalResponseDtoDataEnvelope, MaintenanceRunDetailDtoDataEnvelope, MaintenanceRunResponseDtoDataArrayEnvelope, OrgAdminStartRunBodyDto, StartMaintenanceRunResponseDtoDataEnvelope } from '../../models';
9
+ export declare const getMaintenanceOrgAdminControllerListRunsUrl: (params?: MaintenanceOrgAdminControllerListRunsParams) => string;
10
+ /**
11
+ * @summary Last N maintenance runs for the caller org.
12
+ */
13
+ export declare const maintenanceOrgAdminControllerListRuns: (params?: MaintenanceOrgAdminControllerListRunsParams, options?: RequestInit) => Promise<MaintenanceRunResponseDtoDataArrayEnvelope>;
14
+ export declare const getMaintenanceOrgAdminControllerStartRunUrl: () => string;
15
+ /**
16
+ * @summary Start a dry-run or apply maintenance run for the caller org. The org is forced from the verified JWT context.
17
+ */
18
+ export declare const maintenanceOrgAdminControllerStartRun: (orgAdminStartRunBodyDto: OrgAdminStartRunBodyDto, options?: RequestInit) => Promise<StartMaintenanceRunResponseDtoDataEnvelope>;
19
+ export declare const getMaintenanceOrgAdminControllerGetRunDetailUrl: (runId: string) => string;
20
+ /**
21
+ * @summary Single run detail with every proposal it produced. 404 if the run is not owned by the caller org.
22
+ */
23
+ export declare const maintenanceOrgAdminControllerGetRunDetail: (runId: string, options?: RequestInit) => Promise<MaintenanceRunDetailDtoDataEnvelope>;
24
+ export declare const getMaintenanceOrgAdminControllerRevertProposalUrl: (proposalId: string) => string;
25
+ /**
26
+ * @summary Revert a single applied PRUNE / RENAME / SUMMARY_REFRESH mutation. 404 if the proposal is not owned by the caller org.
27
+ */
28
+ export declare const maintenanceOrgAdminControllerRevertProposal: (proposalId: string, options?: RequestInit) => Promise<MaintenanceProposalResponseDtoDataEnvelope>;