@pairsystems/goodmem-client 1.0.4 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -6,7 +6,7 @@ This SDK is automatically generated by the [OpenAPI Generator](https://openapi-g
6
6
 
7
7
  - API version:
8
8
  - Package version: 1.0.0
9
- - Generator version: 7.17.0-SNAPSHOT
9
+ - Generator version: 7.18.0-SNAPSHOT
10
10
  - Build package: org.openapitools.codegen.languages.JavascriptClientCodegen
11
11
 
12
12
  ## Installation
@@ -114,14 +114,7 @@ defaultClient.defaultHeaders = {
114
114
 
115
115
 
116
116
  var api = new GoodMemClient.APIKeysApi()
117
- var createApiKeyRequest = {
118
- "labels": {
119
- "environment": "development",
120
- "service": "chat-ui"
121
- },
122
- "expiresAt": 1735689600000
123
- }
124
- ; // {CreateApiKeyRequest} API key configuration
117
+ var createApiKeyRequest = {"labels":{"environment":"development","service":"chat-ui"},"expiresAt":"1735689600000"}; // {CreateApiKeyRequest} API key configuration
125
118
  api.createApiKey(createApiKeyRequest).then(function(data) {
126
119
  console.log('API called successfully. Returned data: ' + data);
127
120
  }, function(error) {
@@ -294,6 +287,9 @@ Class | Method | HTTP request | Description
294
287
  *GoodMemClient.APIKeysApi* | [**deleteApiKey**](docs/APIKeysApi.md#deleteApiKey) | **DELETE** /v1/apikeys/{id} | Delete an API key
295
288
  *GoodMemClient.APIKeysApi* | [**listApiKeys**](docs/APIKeysApi.md#listApiKeys) | **GET** /v1/apikeys | List API keys
296
289
  *GoodMemClient.APIKeysApi* | [**updateApiKey**](docs/APIKeysApi.md#updateApiKey) | **PUT** /v1/apikeys/{id} | Update an API key
290
+ *GoodMemClient.AdministrationApi* | [**drainServer**](docs/AdministrationApi.md#drainServer) | **POST** /v1/admin:drain | Request the server to enter drain mode
291
+ *GoodMemClient.AdministrationApi* | [**purgeBackgroundJobs**](docs/AdministrationApi.md#purgeBackgroundJobs) | **POST** /v1/admin/background-jobs:purge | Purge completed background jobs
292
+ *GoodMemClient.AdministrationApi* | [**reloadLicense**](docs/AdministrationApi.md#reloadLicense) | **POST** /v1/admin/license:reload | Reload the active license from disk
297
293
  *GoodMemClient.EmbeddersApi* | [**createEmbedder**](docs/EmbeddersApi.md#createEmbedder) | **POST** /v1/embedders | Create a new embedder
298
294
  *GoodMemClient.EmbeddersApi* | [**deleteEmbedder**](docs/EmbeddersApi.md#deleteEmbedder) | **DELETE** /v1/embedders/{id} | Delete an embedder
299
295
  *GoodMemClient.EmbeddersApi* | [**getEmbedder**](docs/EmbeddersApi.md#getEmbedder) | **GET** /v1/embedders/{id} | Get an embedder by ID
@@ -304,12 +300,13 @@ Class | Method | HTTP request | Description
304
300
  *GoodMemClient.LLMsApi* | [**getLLM**](docs/LLMsApi.md#getLLM) | **GET** /v1/llms/{id} | Get an LLM by ID
305
301
  *GoodMemClient.LLMsApi* | [**listLLMs**](docs/LLMsApi.md#listLLMs) | **GET** /v1/llms | List LLMs
306
302
  *GoodMemClient.LLMsApi* | [**updateLLM**](docs/LLMsApi.md#updateLLM) | **PUT** /v1/llms/{id} | Update an LLM
307
- *GoodMemClient.MemoriesApi* | [**batchCreateMemory**](docs/MemoriesApi.md#batchCreateMemory) | **POST** /v1/memories/batch | Create multiple memories in a batch
308
- *GoodMemClient.MemoriesApi* | [**batchDeleteMemory**](docs/MemoriesApi.md#batchDeleteMemory) | **POST** /v1/memories/batch/delete | Delete multiple memories by ID
309
- *GoodMemClient.MemoriesApi* | [**batchGetMemory**](docs/MemoriesApi.md#batchGetMemory) | **POST** /v1/memories/batch/get | Get multiple memories by ID
303
+ *GoodMemClient.MemoriesApi* | [**batchCreateMemory**](docs/MemoriesApi.md#batchCreateMemory) | **POST** /v1/memories:batchCreate | Create multiple memories in a batch
304
+ *GoodMemClient.MemoriesApi* | [**batchDeleteMemory**](docs/MemoriesApi.md#batchDeleteMemory) | **POST** /v1/memories:batchDelete | Delete multiple memories by ID
305
+ *GoodMemClient.MemoriesApi* | [**batchGetMemory**](docs/MemoriesApi.md#batchGetMemory) | **POST** /v1/memories:batchGet | Get multiple memories by ID
310
306
  *GoodMemClient.MemoriesApi* | [**createMemory**](docs/MemoriesApi.md#createMemory) | **POST** /v1/memories | Create a new memory
311
307
  *GoodMemClient.MemoriesApi* | [**deleteMemory**](docs/MemoriesApi.md#deleteMemory) | **DELETE** /v1/memories/{id} | Delete a memory
312
308
  *GoodMemClient.MemoriesApi* | [**getMemory**](docs/MemoriesApi.md#getMemory) | **GET** /v1/memories/{id} | Get a memory by ID
309
+ *GoodMemClient.MemoriesApi* | [**getMemoryContent**](docs/MemoriesApi.md#getMemoryContent) | **GET** /v1/memories/{id}/content | Download memory content
313
310
  *GoodMemClient.MemoriesApi* | [**listMemories**](docs/MemoriesApi.md#listMemories) | **GET** /v1/spaces/{spaceId}/memories | List memories in a space
314
311
  *GoodMemClient.MemoriesApi* | [**retrieveMemory**](docs/MemoriesApi.md#retrieveMemory) | **GET** /v1/memories:retrieve | Stream semantic memory retrieval
315
312
  *GoodMemClient.MemoriesApi* | [**retrieveMemoryAdvanced**](docs/MemoriesApi.md#retrieveMemoryAdvanced) | **POST** /v1/memories:retrieve | Advanced semantic memory retrieval with JSON
@@ -323,6 +320,7 @@ Class | Method | HTTP request | Description
323
320
  *GoodMemClient.SpacesApi* | [**getSpace**](docs/SpacesApi.md#getSpace) | **GET** /v1/spaces/{id} | Get a space by ID
324
321
  *GoodMemClient.SpacesApi* | [**listSpaces**](docs/SpacesApi.md#listSpaces) | **GET** /v1/spaces | List spaces
325
322
  *GoodMemClient.SpacesApi* | [**updateSpace**](docs/SpacesApi.md#updateSpace) | **PUT** /v1/spaces/{id} | Update a space
323
+ *GoodMemClient.SystemApi* | [**getSystemInfo**](docs/SystemApi.md#getSystemInfo) | **GET** /v1/system/info | Retrieve server build metadata
326
324
  *GoodMemClient.SystemApi* | [**initializeSystem**](docs/SystemApi.md#initializeSystem) | **POST** /v1/system/init | Initialize the system
327
325
  *GoodMemClient.UsersApi* | [**getCurrentUser**](docs/UsersApi.md#getCurrentUser) | **GET** /v1/users/me | Get current user profile
328
326
  *GoodMemClient.UsersApi* | [**getUser**](docs/UsersApi.md#getUser) | **GET** /v1/users/{id} | Get a user by ID
@@ -332,7 +330,16 @@ Class | Method | HTTP request | Description
332
330
  ## Documentation for Models
333
331
 
334
332
  - [GoodMemClient.AbstractReply](docs/AbstractReply.md)
333
+ - [GoodMemClient.ActiveLicenseMetadata](docs/ActiveLicenseMetadata.md)
334
+ - [GoodMemClient.AdminDrainRequest](docs/AdminDrainRequest.md)
335
+ - [GoodMemClient.AdminDrainResponse](docs/AdminDrainResponse.md)
336
+ - [GoodMemClient.AdminPurgeJobsRequest](docs/AdminPurgeJobsRequest.md)
337
+ - [GoodMemClient.AdminPurgeJobsResponse](docs/AdminPurgeJobsResponse.md)
338
+ - [GoodMemClient.AdminReloadLicenseResponse](docs/AdminReloadLicenseResponse.md)
339
+ - [GoodMemClient.ApiKeyAuth](docs/ApiKeyAuth.md)
335
340
  - [GoodMemClient.ApiKeyResponse](docs/ApiKeyResponse.md)
341
+ - [GoodMemClient.BackgroundJobAttempt](docs/BackgroundJobAttempt.md)
342
+ - [GoodMemClient.BackgroundJobSummary](docs/BackgroundJobSummary.md)
336
343
  - [GoodMemClient.BatchMemoryCreationRequest](docs/BatchMemoryCreationRequest.md)
337
344
  - [GoodMemClient.BatchMemoryDeletionRequest](docs/BatchMemoryDeletionRequest.md)
338
345
  - [GoodMemClient.BatchMemoryRetrievalRequest](docs/BatchMemoryRetrievalRequest.md)
@@ -343,10 +350,13 @@ Class | Method | HTTP request | Description
343
350
  - [GoodMemClient.CreateApiKeyRequest](docs/CreateApiKeyRequest.md)
344
351
  - [GoodMemClient.CreateApiKeyResponse](docs/CreateApiKeyResponse.md)
345
352
  - [GoodMemClient.CreateLLMResponse](docs/CreateLLMResponse.md)
353
+ - [GoodMemClient.CredentialKind](docs/CredentialKind.md)
346
354
  - [GoodMemClient.DistributionType](docs/DistributionType.md)
347
355
  - [GoodMemClient.EmbedderCreationRequest](docs/EmbedderCreationRequest.md)
348
356
  - [GoodMemClient.EmbedderResponse](docs/EmbedderResponse.md)
349
357
  - [GoodMemClient.EmbedderWeight](docs/EmbedderWeight.md)
358
+ - [GoodMemClient.EndpointAuthentication](docs/EndpointAuthentication.md)
359
+ - [GoodMemClient.GcpAdcAuth](docs/GcpAdcAuth.md)
350
360
  - [GoodMemClient.GoodMemStatus](docs/GoodMemStatus.md)
351
361
  - [GoodMemClient.LLMCapabilities](docs/LLMCapabilities.md)
352
362
  - [GoodMemClient.LLMCreationRequest](docs/LLMCreationRequest.md)
@@ -366,6 +376,7 @@ Class | Method | HTTP request | Description
366
376
  - [GoodMemClient.MemoryListResponse](docs/MemoryListResponse.md)
367
377
  - [GoodMemClient.Modality](docs/Modality.md)
368
378
  - [GoodMemClient.PostProcessor](docs/PostProcessor.md)
379
+ - [GoodMemClient.ProcessingHistory](docs/ProcessingHistory.md)
369
380
  - [GoodMemClient.ProviderType](docs/ProviderType.md)
370
381
  - [GoodMemClient.RecursiveChunkingConfiguration](docs/RecursiveChunkingConfiguration.md)
371
382
  - [GoodMemClient.RerankerCreationRequest](docs/RerankerCreationRequest.md)
@@ -374,6 +385,7 @@ Class | Method | HTTP request | Description
374
385
  - [GoodMemClient.RetrieveMemoryEvent](docs/RetrieveMemoryEvent.md)
375
386
  - [GoodMemClient.RetrieveMemoryRequest](docs/RetrieveMemoryRequest.md)
376
387
  - [GoodMemClient.RetrievedItem](docs/RetrievedItem.md)
388
+ - [GoodMemClient.SecretReference](docs/SecretReference.md)
377
389
  - [GoodMemClient.SentenceChunkingConfiguration](docs/SentenceChunkingConfiguration.md)
378
390
  - [GoodMemClient.SeparatorKeepStrategy](docs/SeparatorKeepStrategy.md)
379
391
  - [GoodMemClient.Space](docs/Space.md)
@@ -381,6 +393,7 @@ Class | Method | HTTP request | Description
381
393
  - [GoodMemClient.SpaceEmbedder](docs/SpaceEmbedder.md)
382
394
  - [GoodMemClient.SpaceEmbedderConfig](docs/SpaceEmbedderConfig.md)
383
395
  - [GoodMemClient.SpaceKey](docs/SpaceKey.md)
396
+ - [GoodMemClient.SystemInfoResponse](docs/SystemInfoResponse.md)
384
397
  - [GoodMemClient.SystemInitResponse](docs/SystemInitResponse.md)
385
398
  - [GoodMemClient.UpdateApiKeyRequest](docs/UpdateApiKeyRequest.md)
386
399
  - [GoodMemClient.UpdateEmbedderRequest](docs/UpdateEmbedderRequest.md)
@@ -0,0 +1,158 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ var _AdminDrainRequest = _interopRequireDefault(require("../model/AdminDrainRequest"));
9
+ var _AdminDrainResponse = _interopRequireDefault(require("../model/AdminDrainResponse"));
10
+ var _AdminPurgeJobsRequest = _interopRequireDefault(require("../model/AdminPurgeJobsRequest"));
11
+ var _AdminPurgeJobsResponse = _interopRequireDefault(require("../model/AdminPurgeJobsResponse"));
12
+ var _AdminReloadLicenseResponse = _interopRequireDefault(require("../model/AdminReloadLicenseResponse"));
13
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
14
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
15
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
16
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
17
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
18
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
19
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
20
+ *
21
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
22
+ *
23
+ * The version of the OpenAPI document:
24
+ *
25
+ *
26
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
27
+ * https://openapi-generator.tech
28
+ * Do not edit the class manually.
29
+ *
30
+ */
31
+ /**
32
+ * Administration service.
33
+ * @module api/AdministrationApi
34
+ * @version 1.0.0
35
+ */
36
+ var AdministrationApi = exports["default"] = /*#__PURE__*/function () {
37
+ /**
38
+ * Constructs a new AdministrationApi.
39
+ * @alias module:api/AdministrationApi
40
+ * @class
41
+ * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
42
+ * default to {@link module:ApiClient#instance} if unspecified.
43
+ */
44
+ function AdministrationApi(apiClient) {
45
+ _classCallCheck(this, AdministrationApi);
46
+ this.apiClient = apiClient || _ApiClient["default"].instance;
47
+ }
48
+
49
+ /**
50
+ * Request the server to enter drain mode
51
+ * Initiates drain mode and optionally waits for the server to quiesce.
52
+ * @param {Object} opts Optional parameters
53
+ * @param {module:model/AdminDrainRequest} [adminDrainRequest]
54
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AdminDrainResponse} and HTTP response
55
+ */
56
+ return _createClass(AdministrationApi, [{
57
+ key: "drainServerWithHttpInfo",
58
+ value: function drainServerWithHttpInfo(opts) {
59
+ opts = opts || {};
60
+ var postBody = opts['adminDrainRequest'];
61
+ var pathParams = {};
62
+ var queryParams = {};
63
+ var headerParams = {};
64
+ var formParams = {};
65
+ var authNames = [];
66
+ var contentTypes = ['application/json'];
67
+ var accepts = ['application/json'];
68
+ var returnType = _AdminDrainResponse["default"];
69
+ return this.apiClient.callApi('/v1/admin:drain', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
70
+ }
71
+
72
+ /**
73
+ * Request the server to enter drain mode
74
+ * Initiates drain mode and optionally waits for the server to quiesce.
75
+ * @param {Object} opts Optional parameters
76
+ * @param {module:model/AdminDrainRequest} opts.adminDrainRequest
77
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AdminDrainResponse}
78
+ */
79
+ }, {
80
+ key: "drainServer",
81
+ value: function drainServer(opts) {
82
+ return this.drainServerWithHttpInfo(opts).then(function (response_and_data) {
83
+ return response_and_data.data;
84
+ });
85
+ }
86
+
87
+ /**
88
+ * Purge completed background jobs
89
+ * Deletes terminal background jobs older than a retention cutoff.
90
+ * @param {Object} opts Optional parameters
91
+ * @param {module:model/AdminPurgeJobsRequest} [adminPurgeJobsRequest]
92
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AdminPurgeJobsResponse} and HTTP response
93
+ */
94
+ }, {
95
+ key: "purgeBackgroundJobsWithHttpInfo",
96
+ value: function purgeBackgroundJobsWithHttpInfo(opts) {
97
+ opts = opts || {};
98
+ var postBody = opts['adminPurgeJobsRequest'];
99
+ var pathParams = {};
100
+ var queryParams = {};
101
+ var headerParams = {};
102
+ var formParams = {};
103
+ var authNames = [];
104
+ var contentTypes = ['application/json'];
105
+ var accepts = ['application/json'];
106
+ var returnType = _AdminPurgeJobsResponse["default"];
107
+ return this.apiClient.callApi('/v1/admin/background-jobs:purge', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
108
+ }
109
+
110
+ /**
111
+ * Purge completed background jobs
112
+ * Deletes terminal background jobs older than a retention cutoff.
113
+ * @param {Object} opts Optional parameters
114
+ * @param {module:model/AdminPurgeJobsRequest} opts.adminPurgeJobsRequest
115
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AdminPurgeJobsResponse}
116
+ */
117
+ }, {
118
+ key: "purgeBackgroundJobs",
119
+ value: function purgeBackgroundJobs(opts) {
120
+ return this.purgeBackgroundJobsWithHttpInfo(opts).then(function (response_and_data) {
121
+ return response_and_data.data;
122
+ });
123
+ }
124
+
125
+ /**
126
+ * Reload the active license from disk
127
+ * Triggers the server to reload its license file from the configured directory and returns metadata about the currently active license.
128
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AdminReloadLicenseResponse} and HTTP response
129
+ */
130
+ }, {
131
+ key: "reloadLicenseWithHttpInfo",
132
+ value: function reloadLicenseWithHttpInfo() {
133
+ var postBody = null;
134
+ var pathParams = {};
135
+ var queryParams = {};
136
+ var headerParams = {};
137
+ var formParams = {};
138
+ var authNames = [];
139
+ var contentTypes = [];
140
+ var accepts = ['application/json'];
141
+ var returnType = _AdminReloadLicenseResponse["default"];
142
+ return this.apiClient.callApi('/v1/admin/license:reload', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
143
+ }
144
+
145
+ /**
146
+ * Reload the active license from disk
147
+ * Triggers the server to reload its license file from the configured directory and returns metadata about the currently active license.
148
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AdminReloadLicenseResponse}
149
+ */
150
+ }, {
151
+ key: "reloadLicense",
152
+ value: function reloadLicense() {
153
+ return this.reloadLicenseWithHttpInfo().then(function (response_and_data) {
154
+ return response_and_data.data;
155
+ });
156
+ }
157
+ }]);
158
+ }();
@@ -71,7 +71,7 @@ var MemoriesApi = exports["default"] = /*#__PURE__*/function () {
71
71
  var contentTypes = ['application/json'];
72
72
  var accepts = ['application/json'];
73
73
  var returnType = null;
74
- return this.apiClient.callApi('/v1/memories/batch', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
74
+ return this.apiClient.callApi('/v1/memories:batchCreate', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
75
75
  }
76
76
 
77
77
  /**
@@ -110,7 +110,7 @@ var MemoriesApi = exports["default"] = /*#__PURE__*/function () {
110
110
  var contentTypes = ['application/json'];
111
111
  var accepts = ['application/json'];
112
112
  var returnType = null;
113
- return this.apiClient.callApi('/v1/memories/batch/delete', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
113
+ return this.apiClient.callApi('/v1/memories:batchDelete', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
114
114
  }
115
115
 
116
116
  /**
@@ -149,7 +149,7 @@ var MemoriesApi = exports["default"] = /*#__PURE__*/function () {
149
149
  var contentTypes = ['application/json'];
150
150
  var accepts = ['application/json'];
151
151
  var returnType = null;
152
- return this.apiClient.callApi('/v1/memories/batch/get', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
152
+ return this.apiClient.callApi('/v1/memories:batchGet', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
153
153
  }
154
154
 
155
155
  /**
@@ -252,6 +252,7 @@ var MemoriesApi = exports["default"] = /*#__PURE__*/function () {
252
252
  * @param {String} id The unique identifier of the memory to retrieve
253
253
  * @param {Object} opts Optional parameters
254
254
  * @param {Boolean} [includeContent] Whether to include the original content in the response (defaults to false)
255
+ * @param {Boolean} [includeProcessingHistory] Whether to include background job processing history in the response (defaults to false)
255
256
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Memory} and HTTP response
256
257
  */
257
258
  }, {
@@ -267,7 +268,8 @@ var MemoriesApi = exports["default"] = /*#__PURE__*/function () {
267
268
  'id': id
268
269
  };
269
270
  var queryParams = {
270
- 'includeContent': opts['includeContent']
271
+ 'includeContent': opts['includeContent'],
272
+ 'includeProcessingHistory': opts['includeProcessingHistory']
271
273
  };
272
274
  var headerParams = {};
273
275
  var formParams = {};
@@ -284,6 +286,7 @@ var MemoriesApi = exports["default"] = /*#__PURE__*/function () {
284
286
  * @param {String} id The unique identifier of the memory to retrieve
285
287
  * @param {Object} opts Optional parameters
286
288
  * @param {Boolean} opts.includeContent Whether to include the original content in the response (defaults to false)
289
+ * @param {Boolean} opts.includeProcessingHistory Whether to include background job processing history in the response (defaults to false)
287
290
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Memory}
288
291
  */
289
292
  }, {
@@ -294,6 +297,47 @@ var MemoriesApi = exports["default"] = /*#__PURE__*/function () {
294
297
  });
295
298
  }
296
299
 
300
+ /**
301
+ * Download memory content
302
+ * Streams the original binary payload for a memory. The response uses the memory's stored content type when available. Returns 404 when the memory does not have inline content; clients can check originalContentRef from the metadata endpoint to locate external content.
303
+ * @param {String} id The unique identifier of the memory to download
304
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
305
+ */
306
+ }, {
307
+ key: "getMemoryContentWithHttpInfo",
308
+ value: function getMemoryContentWithHttpInfo(id) {
309
+ var postBody = null;
310
+ // verify the required parameter 'id' is set
311
+ if (id === undefined || id === null) {
312
+ throw new Error("Missing the required parameter 'id' when calling getMemoryContent");
313
+ }
314
+ var pathParams = {
315
+ 'id': id
316
+ };
317
+ var queryParams = {};
318
+ var headerParams = {};
319
+ var formParams = {};
320
+ var authNames = [];
321
+ var contentTypes = [];
322
+ var accepts = ['application/octet-stream'];
323
+ var returnType = null;
324
+ return this.apiClient.callApi('/v1/memories/{id}/content', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
325
+ }
326
+
327
+ /**
328
+ * Download memory content
329
+ * Streams the original binary payload for a memory. The response uses the memory's stored content type when available. Returns 404 when the memory does not have inline content; clients can check originalContentRef from the metadata endpoint to locate external content.
330
+ * @param {String} id The unique identifier of the memory to download
331
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
332
+ */
333
+ }, {
334
+ key: "getMemoryContent",
335
+ value: function getMemoryContent(id) {
336
+ return this.getMemoryContentWithHttpInfo(id).then(function (response_and_data) {
337
+ return response_and_data.data;
338
+ });
339
+ }
340
+
297
341
  /**
298
342
  * List memories in a space
299
343
  * Lists all memories within a given space. CRITICAL: The current server implementation does NOT support pagination - the max_results and next_token parameters are IGNORED and all matching memories are returned. This is a read-only operation with no side effects and is safe to retry. Requires LIST_MEMORY_OWN or LIST_MEMORY_ANY permission. Returns NOT_FOUND if the specified space does not exist.
@@ -363,6 +407,7 @@ var MemoriesApi = exports["default"] = /*#__PURE__*/function () {
363
407
  * @param {String} message Primary query/message for semantic search
364
408
  * @param {Object} opts Optional parameters
365
409
  * @param {String} [spaceIds] Comma-separated list of space UUIDs to search within
410
+ * @param {String} [filter] Optional filter expression applied to every space ID supplied via the query parameter. Use the POST variant if you need distinct filters per space.
366
411
  * @param {Number} [requestedSize] Maximum number of memories to retrieve
367
412
  * @param {Boolean} [fetchMemory] Whether to fetch memory definitions (defaults to true)
368
413
  * @param {Boolean} [fetchMemoryContent] Whether to fetch original content for memories (defaults to false)
@@ -387,6 +432,7 @@ var MemoriesApi = exports["default"] = /*#__PURE__*/function () {
387
432
  var queryParams = {
388
433
  'message': message,
389
434
  'spaceIds': opts['spaceIds'],
435
+ 'filter': opts['filter'],
390
436
  'requestedSize': opts['requestedSize'],
391
437
  'fetchMemory': opts['fetchMemory'],
392
438
  'fetchMemoryContent': opts['fetchMemoryContent'],
@@ -412,6 +458,7 @@ var MemoriesApi = exports["default"] = /*#__PURE__*/function () {
412
458
  * @param {String} message Primary query/message for semantic search
413
459
  * @param {Object} opts Optional parameters
414
460
  * @param {String} opts.spaceIds Comma-separated list of space UUIDs to search within
461
+ * @param {String} opts.filter Optional filter expression applied to every space ID supplied via the query parameter. Use the POST variant if you need distinct filters per space.
415
462
  * @param {Number} opts.requestedSize Maximum number of memories to retrieve
416
463
  * @param {Boolean} opts.fetchMemory Whether to fetch memory definitions (defaults to true)
417
464
  * @param {Boolean} opts.fetchMemoryContent Whether to fetch original content for memories (defaults to false)
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ var _SystemInfoResponse = _interopRequireDefault(require("../model/SystemInfoResponse"));
8
9
  var _SystemInitResponse = _interopRequireDefault(require("../model/SystemInitResponse"));
9
10
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
10
11
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
@@ -43,13 +44,46 @@ var SystemApi = exports["default"] = /*#__PURE__*/function () {
43
44
  }
44
45
 
45
46
  /**
46
- * Initialize the system
47
- * Initializes the system by creating a root user and API key. This endpoint should only be called once during first-time setup. If the system is already initialized, the endpoint will return a success response without creating new credentials.
48
- * @param {Object} opts Optional parameters
49
- * @param {Object.<String, Object>} [body] Empty request body - no parameters required
50
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SystemInitResponse} and HTTP response
47
+ * Retrieve server build metadata
48
+ * Returns the server's advertised semantic version, git metadata, build timestamp, and optional capability flags. The endpoint is intentionally unauthenticated so bootstrap tooling can call it before API keys exist.
49
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SystemInfoResponse} and HTTP response
51
50
  */
52
51
  return _createClass(SystemApi, [{
52
+ key: "getSystemInfoWithHttpInfo",
53
+ value: function getSystemInfoWithHttpInfo() {
54
+ var postBody = null;
55
+ var pathParams = {};
56
+ var queryParams = {};
57
+ var headerParams = {};
58
+ var formParams = {};
59
+ var authNames = [];
60
+ var contentTypes = [];
61
+ var accepts = ['application/json'];
62
+ var returnType = _SystemInfoResponse["default"];
63
+ return this.apiClient.callApi('/v1/system/info', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
64
+ }
65
+
66
+ /**
67
+ * Retrieve server build metadata
68
+ * Returns the server's advertised semantic version, git metadata, build timestamp, and optional capability flags. The endpoint is intentionally unauthenticated so bootstrap tooling can call it before API keys exist.
69
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SystemInfoResponse}
70
+ */
71
+ }, {
72
+ key: "getSystemInfo",
73
+ value: function getSystemInfo() {
74
+ return this.getSystemInfoWithHttpInfo().then(function (response_and_data) {
75
+ return response_and_data.data;
76
+ });
77
+ }
78
+
79
+ /**
80
+ * Initialize the system
81
+ * Initializes the system by creating a root user and API key. This endpoint should only be called once during first-time setup. If the system is already initialized, the endpoint will return a success response without creating new credentials.
82
+ * @param {Object} opts Optional parameters
83
+ * @param {Object.<String, Object>} [body] Empty request body - no parameters required
84
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SystemInitResponse} and HTTP response
85
+ */
86
+ }, {
53
87
  key: "initializeSystemWithHttpInfo",
54
88
  value: function initializeSystemWithHttpInfo(opts) {
55
89
  opts = opts || {};