@pairsystems/goodmem-client 1.0.4 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +28 -12
- package/dist/api/AdministrationApi.js +158 -0
- package/dist/api/EmbeddersApi.js +6 -6
- package/dist/api/LLMsApi.js +2 -2
- package/dist/api/MemoriesApi.js +77 -18
- package/dist/api/RerankersApi.js +4 -4
- package/dist/api/SystemApi.js +39 -5
- package/dist/index.js +133 -0
- package/dist/model/ActiveLicenseMetadata.js +140 -0
- package/dist/model/AdminDrainRequest.js +105 -0
- package/dist/model/AdminDrainResponse.js +132 -0
- package/dist/model/AdminPurgeJobsRequest.js +117 -0
- package/dist/model/AdminPurgeJobsResponse.js +138 -0
- package/dist/model/AdminReloadLicenseResponse.js +115 -0
- package/dist/model/ApiKeyAuth.js +131 -0
- package/dist/model/BackgroundJobAttempt.js +242 -0
- package/dist/model/BackgroundJobSummary.js +215 -0
- package/dist/model/BatchMemoryResponse.js +132 -0
- package/dist/model/BatchMemoryResult.js +151 -0
- package/dist/model/BatchMemoryRetrievalRequest.js +9 -0
- package/dist/model/CreateApiKeyRequest.js +13 -0
- package/dist/model/CredentialKind.js +63 -0
- package/dist/model/EmbedderCreationRequest.js +25 -13
- package/dist/model/EndpointAuthentication.js +149 -0
- package/dist/model/ErrorDetail.js +125 -0
- package/dist/model/GcpAdcAuth.js +104 -0
- package/dist/model/LLMCreationRequest.js +24 -14
- package/dist/model/LLMUpdateRequest.js +7 -6
- package/dist/model/Memory.js +36 -0
- package/dist/model/MemoryCreationRequest.js +13 -0
- package/dist/model/PostProcessor.js +4 -4
- package/dist/model/ProcessingHistory.js +126 -0
- package/dist/model/ProviderType.js +15 -0
- package/dist/model/RerankerCreationRequest.js +20 -6
- package/dist/model/SecretReference.js +101 -0
- package/dist/model/SpaceCreationRequest.js +13 -0
- package/dist/model/SpaceKey.js +13 -0
- package/dist/model/SystemInfoResponse.js +192 -0
- package/dist/model/UpdateEmbedderRequest.js +7 -6
- package/dist/model/UpdateRerankerRequest.js +7 -6
- package/package.json +2 -1
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.
|
|
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
|
|
308
|
-
*GoodMemClient.MemoriesApi* | [**batchDeleteMemory**](docs/MemoriesApi.md#batchDeleteMemory) | **POST** /v1/memories
|
|
309
|
-
*GoodMemClient.MemoriesApi* | [**batchGetMemory**](docs/MemoriesApi.md#batchGetMemory) | **POST** /v1/memories
|
|
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,9 +330,20 @@ 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)
|
|
345
|
+
- [GoodMemClient.BatchMemoryResponse](docs/BatchMemoryResponse.md)
|
|
346
|
+
- [GoodMemClient.BatchMemoryResult](docs/BatchMemoryResult.md)
|
|
338
347
|
- [GoodMemClient.BatchMemoryRetrievalRequest](docs/BatchMemoryRetrievalRequest.md)
|
|
339
348
|
- [GoodMemClient.BinaryContent](docs/BinaryContent.md)
|
|
340
349
|
- [GoodMemClient.ChunkReference](docs/ChunkReference.md)
|
|
@@ -343,10 +352,14 @@ Class | Method | HTTP request | Description
|
|
|
343
352
|
- [GoodMemClient.CreateApiKeyRequest](docs/CreateApiKeyRequest.md)
|
|
344
353
|
- [GoodMemClient.CreateApiKeyResponse](docs/CreateApiKeyResponse.md)
|
|
345
354
|
- [GoodMemClient.CreateLLMResponse](docs/CreateLLMResponse.md)
|
|
355
|
+
- [GoodMemClient.CredentialKind](docs/CredentialKind.md)
|
|
346
356
|
- [GoodMemClient.DistributionType](docs/DistributionType.md)
|
|
347
357
|
- [GoodMemClient.EmbedderCreationRequest](docs/EmbedderCreationRequest.md)
|
|
348
358
|
- [GoodMemClient.EmbedderResponse](docs/EmbedderResponse.md)
|
|
349
359
|
- [GoodMemClient.EmbedderWeight](docs/EmbedderWeight.md)
|
|
360
|
+
- [GoodMemClient.EndpointAuthentication](docs/EndpointAuthentication.md)
|
|
361
|
+
- [GoodMemClient.ErrorDetail](docs/ErrorDetail.md)
|
|
362
|
+
- [GoodMemClient.GcpAdcAuth](docs/GcpAdcAuth.md)
|
|
350
363
|
- [GoodMemClient.GoodMemStatus](docs/GoodMemStatus.md)
|
|
351
364
|
- [GoodMemClient.LLMCapabilities](docs/LLMCapabilities.md)
|
|
352
365
|
- [GoodMemClient.LLMCreationRequest](docs/LLMCreationRequest.md)
|
|
@@ -366,6 +379,7 @@ Class | Method | HTTP request | Description
|
|
|
366
379
|
- [GoodMemClient.MemoryListResponse](docs/MemoryListResponse.md)
|
|
367
380
|
- [GoodMemClient.Modality](docs/Modality.md)
|
|
368
381
|
- [GoodMemClient.PostProcessor](docs/PostProcessor.md)
|
|
382
|
+
- [GoodMemClient.ProcessingHistory](docs/ProcessingHistory.md)
|
|
369
383
|
- [GoodMemClient.ProviderType](docs/ProviderType.md)
|
|
370
384
|
- [GoodMemClient.RecursiveChunkingConfiguration](docs/RecursiveChunkingConfiguration.md)
|
|
371
385
|
- [GoodMemClient.RerankerCreationRequest](docs/RerankerCreationRequest.md)
|
|
@@ -374,6 +388,7 @@ Class | Method | HTTP request | Description
|
|
|
374
388
|
- [GoodMemClient.RetrieveMemoryEvent](docs/RetrieveMemoryEvent.md)
|
|
375
389
|
- [GoodMemClient.RetrieveMemoryRequest](docs/RetrieveMemoryRequest.md)
|
|
376
390
|
- [GoodMemClient.RetrievedItem](docs/RetrievedItem.md)
|
|
391
|
+
- [GoodMemClient.SecretReference](docs/SecretReference.md)
|
|
377
392
|
- [GoodMemClient.SentenceChunkingConfiguration](docs/SentenceChunkingConfiguration.md)
|
|
378
393
|
- [GoodMemClient.SeparatorKeepStrategy](docs/SeparatorKeepStrategy.md)
|
|
379
394
|
- [GoodMemClient.Space](docs/Space.md)
|
|
@@ -381,6 +396,7 @@ Class | Method | HTTP request | Description
|
|
|
381
396
|
- [GoodMemClient.SpaceEmbedder](docs/SpaceEmbedder.md)
|
|
382
397
|
- [GoodMemClient.SpaceEmbedderConfig](docs/SpaceEmbedderConfig.md)
|
|
383
398
|
- [GoodMemClient.SpaceKey](docs/SpaceKey.md)
|
|
399
|
+
- [GoodMemClient.SystemInfoResponse](docs/SystemInfoResponse.md)
|
|
384
400
|
- [GoodMemClient.SystemInitResponse](docs/SystemInitResponse.md)
|
|
385
401
|
- [GoodMemClient.UpdateApiKeyRequest](docs/UpdateApiKeyRequest.md)
|
|
386
402
|
- [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
|
+
}();
|
package/dist/api/EmbeddersApi.js
CHANGED
|
@@ -47,7 +47,7 @@ var EmbeddersApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
49
|
* Create a new embedder
|
|
50
|
-
* Creates a new embedder configuration for vectorizing content. Embedders represent connections to different embedding API services (like OpenAI, vLLM, etc.) and include all the necessary configuration to use them with memory spaces. DUPLICATE DETECTION: Returns ALREADY_EXISTS if another embedder exists with identical {owner_id, provider_type, endpoint_url, api_path, model_identifier, credentials_fingerprint} after URL canonicalization. Uniqueness is enforced per-owner, allowing different users to have identical configurations. Credentials are hashed (SHA-256) for uniqueness while remaining encrypted. The api_path field defaults to '/embeddings'
|
|
50
|
+
* Creates a new embedder configuration for vectorizing content. Embedders represent connections to different embedding API services (like OpenAI, vLLM, etc.) and include all the necessary configuration to use them with memory spaces. DUPLICATE DETECTION: Returns HTTP 409 Conflict (ALREADY_EXISTS) if another embedder exists with identical {owner_id, provider_type, endpoint_url, api_path, model_identifier, credentials_fingerprint} after URL canonicalization. Uniqueness is enforced per-owner, allowing different users to have identical configurations. Credentials are hashed (SHA-256) for uniqueness while remaining encrypted. The api_path field defaults to '/v2/embed' for Cohere, '/embed' for TEI, and '/embeddings' for other providers when omitted. Requires CREATE_EMBEDDER_OWN permission (or CREATE_EMBEDDER_ANY for admin users).
|
|
51
51
|
* @param {module:model/EmbedderCreationRequest} embedderCreationRequest Embedder configuration details
|
|
52
52
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EmbedderResponse} and HTTP response
|
|
53
53
|
*/
|
|
@@ -72,7 +72,7 @@ var EmbeddersApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
72
72
|
|
|
73
73
|
/**
|
|
74
74
|
* Create a new embedder
|
|
75
|
-
* Creates a new embedder configuration for vectorizing content. Embedders represent connections to different embedding API services (like OpenAI, vLLM, etc.) and include all the necessary configuration to use them with memory spaces. DUPLICATE DETECTION: Returns ALREADY_EXISTS if another embedder exists with identical {owner_id, provider_type, endpoint_url, api_path, model_identifier, credentials_fingerprint} after URL canonicalization. Uniqueness is enforced per-owner, allowing different users to have identical configurations. Credentials are hashed (SHA-256) for uniqueness while remaining encrypted. The api_path field defaults to '/embeddings'
|
|
75
|
+
* Creates a new embedder configuration for vectorizing content. Embedders represent connections to different embedding API services (like OpenAI, vLLM, etc.) and include all the necessary configuration to use them with memory spaces. DUPLICATE DETECTION: Returns HTTP 409 Conflict (ALREADY_EXISTS) if another embedder exists with identical {owner_id, provider_type, endpoint_url, api_path, model_identifier, credentials_fingerprint} after URL canonicalization. Uniqueness is enforced per-owner, allowing different users to have identical configurations. Credentials are hashed (SHA-256) for uniqueness while remaining encrypted. The api_path field defaults to '/v2/embed' for Cohere, '/embed' for TEI, and '/embeddings' for other providers when omitted. Requires CREATE_EMBEDDER_OWN permission (or CREATE_EMBEDDER_ANY for admin users).
|
|
76
76
|
* @param {module:model/EmbedderCreationRequest} embedderCreationRequest Embedder configuration details
|
|
77
77
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EmbedderResponse}
|
|
78
78
|
*/
|
|
@@ -86,7 +86,7 @@ var EmbeddersApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
86
86
|
|
|
87
87
|
/**
|
|
88
88
|
* Delete an embedder
|
|
89
|
-
* Permanently deletes an embedder configuration. This operation cannot be undone and removes the embedder record and securely deletes stored credentials. IMPORTANT: This does NOT invalidate or delete embeddings previously created with this embedder - existing embeddings remain accessible. Requires DELETE_EMBEDDER_OWN permission for embedders you own (or DELETE_EMBEDDER_ANY for admin users).
|
|
89
|
+
* Permanently deletes an embedder configuration. This operation cannot be undone and removes the embedder record and securely deletes stored credentials. IMPORTANT: This does NOT invalidate or delete embeddings previously created with this embedder - existing embeddings remain accessible. CONFLICT: Returns HTTP 409 Conflict if the embedder is still referenced by a space. Requires DELETE_EMBEDDER_OWN permission for embedders you own (or DELETE_EMBEDDER_ANY for admin users).
|
|
90
90
|
* @param {String} id The unique identifier of the embedder to delete
|
|
91
91
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
92
92
|
*/
|
|
@@ -113,7 +113,7 @@ var EmbeddersApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
113
113
|
|
|
114
114
|
/**
|
|
115
115
|
* Delete an embedder
|
|
116
|
-
* Permanently deletes an embedder configuration. This operation cannot be undone and removes the embedder record and securely deletes stored credentials. IMPORTANT: This does NOT invalidate or delete embeddings previously created with this embedder - existing embeddings remain accessible. Requires DELETE_EMBEDDER_OWN permission for embedders you own (or DELETE_EMBEDDER_ANY for admin users).
|
|
116
|
+
* Permanently deletes an embedder configuration. This operation cannot be undone and removes the embedder record and securely deletes stored credentials. IMPORTANT: This does NOT invalidate or delete embeddings previously created with this embedder - existing embeddings remain accessible. CONFLICT: Returns HTTP 409 Conflict if the embedder is still referenced by a space. Requires DELETE_EMBEDDER_OWN permission for embedders you own (or DELETE_EMBEDDER_ANY for admin users).
|
|
117
117
|
* @param {String} id The unique identifier of the embedder to delete
|
|
118
118
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
119
119
|
*/
|
|
@@ -214,7 +214,7 @@ var EmbeddersApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
214
214
|
|
|
215
215
|
/**
|
|
216
216
|
* Update an embedder
|
|
217
|
-
* Updates an existing embedder configuration including display information, endpoint configuration, model parameters, credentials, and labels. All fields are optional - only specified fields will be updated. IMPORTANT: provider_type is IMMUTABLE after creation and cannot be changed. CRITICAL: Returns FAILED_PRECONDITION if attempting to update core fields (dimensionality, distribution_type, model_identifier) while the embedder is actively referenced by spaces or ingestion jobs. Requires UPDATE_EMBEDDER_OWN permission for embedders you own (or UPDATE_EMBEDDER_ANY for admin users).
|
|
217
|
+
* Updates an existing embedder configuration including display information, endpoint configuration, model parameters, credentials, and labels. All fields are optional - only specified fields will be updated. IMPORTANT: provider_type is IMMUTABLE after creation and cannot be changed. CRITICAL: Returns HTTP 412 Precondition Failed (FAILED_PRECONDITION) if attempting to update core fields (dimensionality, distribution_type, model_identifier) while the embedder is actively referenced by spaces or ingestion jobs. DUPLICATE DETECTION: Returns HTTP 409 Conflict (ALREADY_EXISTS) if the update would create a duplicate embedder with the same provider, endpoint, model, dimensionality, distribution, and credentials for this owner. Requires UPDATE_EMBEDDER_OWN permission for embedders you own (or UPDATE_EMBEDDER_ANY for admin users).
|
|
218
218
|
* @param {String} id The unique identifier of the embedder to update
|
|
219
219
|
* @param {module:model/UpdateEmbedderRequest} updateEmbedderRequest Embedder update details
|
|
220
220
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EmbedderResponse} and HTTP response
|
|
@@ -246,7 +246,7 @@ var EmbeddersApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
246
246
|
|
|
247
247
|
/**
|
|
248
248
|
* Update an embedder
|
|
249
|
-
* Updates an existing embedder configuration including display information, endpoint configuration, model parameters, credentials, and labels. All fields are optional - only specified fields will be updated. IMPORTANT: provider_type is IMMUTABLE after creation and cannot be changed. CRITICAL: Returns FAILED_PRECONDITION if attempting to update core fields (dimensionality, distribution_type, model_identifier) while the embedder is actively referenced by spaces or ingestion jobs. Requires UPDATE_EMBEDDER_OWN permission for embedders you own (or UPDATE_EMBEDDER_ANY for admin users).
|
|
249
|
+
* Updates an existing embedder configuration including display information, endpoint configuration, model parameters, credentials, and labels. All fields are optional - only specified fields will be updated. IMPORTANT: provider_type is IMMUTABLE after creation and cannot be changed. CRITICAL: Returns HTTP 412 Precondition Failed (FAILED_PRECONDITION) if attempting to update core fields (dimensionality, distribution_type, model_identifier) while the embedder is actively referenced by spaces or ingestion jobs. DUPLICATE DETECTION: Returns HTTP 409 Conflict (ALREADY_EXISTS) if the update would create a duplicate embedder with the same provider, endpoint, model, dimensionality, distribution, and credentials for this owner. Requires UPDATE_EMBEDDER_OWN permission for embedders you own (or UPDATE_EMBEDDER_ANY for admin users).
|
|
250
250
|
* @param {String} id The unique identifier of the embedder to update
|
|
251
251
|
* @param {module:model/UpdateEmbedderRequest} updateEmbedderRequest Embedder update details
|
|
252
252
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EmbedderResponse}
|
package/dist/api/LLMsApi.js
CHANGED
|
@@ -48,7 +48,7 @@ var LLMsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
48
48
|
|
|
49
49
|
/**
|
|
50
50
|
* Create a new LLM
|
|
51
|
-
* Creates a new LLM configuration for text generation services. LLMs represent connections to different language model API services (like OpenAI, vLLM, etc.) and include all the necessary configuration to use them for text generation. DUPLICATE DETECTION: Returns ALREADY_EXISTS if another LLM exists with identical {endpoint_url, api_path, model_identifier} after URL canonicalization. The api_path field defaults to '/v1/chat/completions' if omitted. Requires CREATE_LLM_OWN permission (or CREATE_LLM_ANY for admin users).
|
|
51
|
+
* Creates a new LLM configuration for text generation services. LLMs represent connections to different language model API services (like OpenAI, vLLM, etc.) and include all the necessary configuration to use them for text generation. DUPLICATE DETECTION: Returns HTTP 409 Conflict (ALREADY_EXISTS) if another LLM exists with identical {endpoint_url, api_path, model_identifier} after URL canonicalization. The api_path field defaults to '/v1/chat/completions' if omitted. Requires CREATE_LLM_OWN permission (or CREATE_LLM_ANY for admin users).
|
|
52
52
|
* @param {module:model/LLMCreationRequest} lLMCreationRequest LLM configuration details
|
|
53
53
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateLLMResponse} and HTTP response
|
|
54
54
|
*/
|
|
@@ -73,7 +73,7 @@ var LLMsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
73
73
|
|
|
74
74
|
/**
|
|
75
75
|
* Create a new LLM
|
|
76
|
-
* Creates a new LLM configuration for text generation services. LLMs represent connections to different language model API services (like OpenAI, vLLM, etc.) and include all the necessary configuration to use them for text generation. DUPLICATE DETECTION: Returns ALREADY_EXISTS if another LLM exists with identical {endpoint_url, api_path, model_identifier} after URL canonicalization. The api_path field defaults to '/v1/chat/completions' if omitted. Requires CREATE_LLM_OWN permission (or CREATE_LLM_ANY for admin users).
|
|
76
|
+
* Creates a new LLM configuration for text generation services. LLMs represent connections to different language model API services (like OpenAI, vLLM, etc.) and include all the necessary configuration to use them for text generation. DUPLICATE DETECTION: Returns HTTP 409 Conflict (ALREADY_EXISTS) if another LLM exists with identical {endpoint_url, api_path, model_identifier} after URL canonicalization. The api_path field defaults to '/v1/chat/completions' if omitted. Requires CREATE_LLM_OWN permission (or CREATE_LLM_ANY for admin users).
|
|
77
77
|
* @param {module:model/LLMCreationRequest} lLMCreationRequest LLM configuration details
|
|
78
78
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateLLMResponse}
|
|
79
79
|
*/
|
package/dist/api/MemoriesApi.js
CHANGED
|
@@ -7,6 +7,7 @@ exports["default"] = void 0;
|
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
8
|
var _BatchMemoryCreationRequest = _interopRequireDefault(require("../model/BatchMemoryCreationRequest"));
|
|
9
9
|
var _BatchMemoryDeletionRequest = _interopRequireDefault(require("../model/BatchMemoryDeletionRequest"));
|
|
10
|
+
var _BatchMemoryResponse = _interopRequireDefault(require("../model/BatchMemoryResponse"));
|
|
10
11
|
var _BatchMemoryRetrievalRequest = _interopRequireDefault(require("../model/BatchMemoryRetrievalRequest"));
|
|
11
12
|
var _Memory = _interopRequireDefault(require("../model/Memory"));
|
|
12
13
|
var _MemoryCreationRequest = _interopRequireDefault(require("../model/MemoryCreationRequest"));
|
|
@@ -53,7 +54,7 @@ var MemoriesApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
53
54
|
* Create multiple memories in a batch
|
|
54
55
|
* Creates multiple memories in a single operation, with individual success/failure results.
|
|
55
56
|
* @param {module:model/BatchMemoryCreationRequest} batchMemoryCreationRequest Batch memory creation details
|
|
56
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
57
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/BatchMemoryResponse} and HTTP response
|
|
57
58
|
*/
|
|
58
59
|
return _createClass(MemoriesApi, [{
|
|
59
60
|
key: "batchCreateMemoryWithHttpInfo",
|
|
@@ -70,15 +71,15 @@ var MemoriesApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
70
71
|
var authNames = [];
|
|
71
72
|
var contentTypes = ['application/json'];
|
|
72
73
|
var accepts = ['application/json'];
|
|
73
|
-
var returnType =
|
|
74
|
-
return this.apiClient.callApi('/v1/memories
|
|
74
|
+
var returnType = _BatchMemoryResponse["default"];
|
|
75
|
+
return this.apiClient.callApi('/v1/memories:batchCreate', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
75
76
|
}
|
|
76
77
|
|
|
77
78
|
/**
|
|
78
79
|
* Create multiple memories in a batch
|
|
79
80
|
* Creates multiple memories in a single operation, with individual success/failure results.
|
|
80
81
|
* @param {module:model/BatchMemoryCreationRequest} batchMemoryCreationRequest Batch memory creation details
|
|
81
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
82
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/BatchMemoryResponse}
|
|
82
83
|
*/
|
|
83
84
|
}, {
|
|
84
85
|
key: "batchCreateMemory",
|
|
@@ -92,7 +93,7 @@ var MemoriesApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
92
93
|
* Delete multiple memories by ID
|
|
93
94
|
* Deletes multiple memories in a single operation, with success/failure results for each ID.
|
|
94
95
|
* @param {module:model/BatchMemoryDeletionRequest} batchMemoryDeletionRequest Batch memory deletion details
|
|
95
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
96
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/BatchMemoryResponse} and HTTP response
|
|
96
97
|
*/
|
|
97
98
|
}, {
|
|
98
99
|
key: "batchDeleteMemoryWithHttpInfo",
|
|
@@ -109,15 +110,15 @@ var MemoriesApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
109
110
|
var authNames = [];
|
|
110
111
|
var contentTypes = ['application/json'];
|
|
111
112
|
var accepts = ['application/json'];
|
|
112
|
-
var returnType =
|
|
113
|
-
return this.apiClient.callApi('/v1/memories
|
|
113
|
+
var returnType = _BatchMemoryResponse["default"];
|
|
114
|
+
return this.apiClient.callApi('/v1/memories:batchDelete', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
114
115
|
}
|
|
115
116
|
|
|
116
117
|
/**
|
|
117
118
|
* Delete multiple memories by ID
|
|
118
119
|
* Deletes multiple memories in a single operation, with success/failure results for each ID.
|
|
119
120
|
* @param {module:model/BatchMemoryDeletionRequest} batchMemoryDeletionRequest Batch memory deletion details
|
|
120
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
121
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/BatchMemoryResponse}
|
|
121
122
|
*/
|
|
122
123
|
}, {
|
|
123
124
|
key: "batchDeleteMemory",
|
|
@@ -131,7 +132,7 @@ var MemoriesApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
131
132
|
* Get multiple memories by ID
|
|
132
133
|
* Retrieves multiple memories in a single operation, with individual success/failure results.
|
|
133
134
|
* @param {module:model/BatchMemoryRetrievalRequest} batchMemoryRetrievalRequest Batch memory retrieval details
|
|
134
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
135
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/BatchMemoryResponse} and HTTP response
|
|
135
136
|
*/
|
|
136
137
|
}, {
|
|
137
138
|
key: "batchGetMemoryWithHttpInfo",
|
|
@@ -148,15 +149,15 @@ var MemoriesApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
148
149
|
var authNames = [];
|
|
149
150
|
var contentTypes = ['application/json'];
|
|
150
151
|
var accepts = ['application/json'];
|
|
151
|
-
var returnType =
|
|
152
|
-
return this.apiClient.callApi('/v1/memories
|
|
152
|
+
var returnType = _BatchMemoryResponse["default"];
|
|
153
|
+
return this.apiClient.callApi('/v1/memories:batchGet', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
153
154
|
}
|
|
154
155
|
|
|
155
156
|
/**
|
|
156
157
|
* Get multiple memories by ID
|
|
157
158
|
* Retrieves multiple memories in a single operation, with individual success/failure results.
|
|
158
159
|
* @param {module:model/BatchMemoryRetrievalRequest} batchMemoryRetrievalRequest Batch memory retrieval details
|
|
159
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
160
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/BatchMemoryResponse}
|
|
160
161
|
*/
|
|
161
162
|
}, {
|
|
162
163
|
key: "batchGetMemory",
|
|
@@ -252,6 +253,7 @@ var MemoriesApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
252
253
|
* @param {String} id The unique identifier of the memory to retrieve
|
|
253
254
|
* @param {Object} opts Optional parameters
|
|
254
255
|
* @param {Boolean} [includeContent] Whether to include the original content in the response (defaults to false)
|
|
256
|
+
* @param {Boolean} [includeProcessingHistory] Whether to include background job processing history in the response (defaults to false)
|
|
255
257
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Memory} and HTTP response
|
|
256
258
|
*/
|
|
257
259
|
}, {
|
|
@@ -267,7 +269,8 @@ var MemoriesApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
267
269
|
'id': id
|
|
268
270
|
};
|
|
269
271
|
var queryParams = {
|
|
270
|
-
'includeContent': opts['includeContent']
|
|
272
|
+
'includeContent': opts['includeContent'],
|
|
273
|
+
'includeProcessingHistory': opts['includeProcessingHistory']
|
|
271
274
|
};
|
|
272
275
|
var headerParams = {};
|
|
273
276
|
var formParams = {};
|
|
@@ -284,6 +287,7 @@ var MemoriesApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
284
287
|
* @param {String} id The unique identifier of the memory to retrieve
|
|
285
288
|
* @param {Object} opts Optional parameters
|
|
286
289
|
* @param {Boolean} opts.includeContent Whether to include the original content in the response (defaults to false)
|
|
290
|
+
* @param {Boolean} opts.includeProcessingHistory Whether to include background job processing history in the response (defaults to false)
|
|
287
291
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Memory}
|
|
288
292
|
*/
|
|
289
293
|
}, {
|
|
@@ -294,6 +298,47 @@ var MemoriesApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
294
298
|
});
|
|
295
299
|
}
|
|
296
300
|
|
|
301
|
+
/**
|
|
302
|
+
* Download memory content
|
|
303
|
+
* 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.
|
|
304
|
+
* @param {String} id The unique identifier of the memory to download
|
|
305
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
306
|
+
*/
|
|
307
|
+
}, {
|
|
308
|
+
key: "getMemoryContentWithHttpInfo",
|
|
309
|
+
value: function getMemoryContentWithHttpInfo(id) {
|
|
310
|
+
var postBody = null;
|
|
311
|
+
// verify the required parameter 'id' is set
|
|
312
|
+
if (id === undefined || id === null) {
|
|
313
|
+
throw new Error("Missing the required parameter 'id' when calling getMemoryContent");
|
|
314
|
+
}
|
|
315
|
+
var pathParams = {
|
|
316
|
+
'id': id
|
|
317
|
+
};
|
|
318
|
+
var queryParams = {};
|
|
319
|
+
var headerParams = {};
|
|
320
|
+
var formParams = {};
|
|
321
|
+
var authNames = [];
|
|
322
|
+
var contentTypes = [];
|
|
323
|
+
var accepts = ['application/octet-stream'];
|
|
324
|
+
var returnType = null;
|
|
325
|
+
return this.apiClient.callApi('/v1/memories/{id}/content', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* Download memory content
|
|
330
|
+
* 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.
|
|
331
|
+
* @param {String} id The unique identifier of the memory to download
|
|
332
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
333
|
+
*/
|
|
334
|
+
}, {
|
|
335
|
+
key: "getMemoryContent",
|
|
336
|
+
value: function getMemoryContent(id) {
|
|
337
|
+
return this.getMemoryContentWithHttpInfo(id).then(function (response_and_data) {
|
|
338
|
+
return response_and_data.data;
|
|
339
|
+
});
|
|
340
|
+
}
|
|
341
|
+
|
|
297
342
|
/**
|
|
298
343
|
* List memories in a space
|
|
299
344
|
* 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.
|
|
@@ -362,7 +407,9 @@ var MemoriesApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
362
407
|
* Streams semantic retrieval results based on query and context. Supports SSE (text/event-stream) and NDJSON (application/x-ndjson) formats.
|
|
363
408
|
* @param {String} message Primary query/message for semantic search
|
|
364
409
|
* @param {Object} opts Optional parameters
|
|
410
|
+
* @param {String} [accept] Response format: 'text/event-stream' for Server-Sent Events or 'application/x-ndjson' for newline-delimited JSON
|
|
365
411
|
* @param {String} [spaceIds] Comma-separated list of space UUIDs to search within
|
|
412
|
+
* @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
413
|
* @param {Number} [requestedSize] Maximum number of memories to retrieve
|
|
367
414
|
* @param {Boolean} [fetchMemory] Whether to fetch memory definitions (defaults to true)
|
|
368
415
|
* @param {Boolean} [fetchMemoryContent] Whether to fetch original content for memories (defaults to false)
|
|
@@ -387,6 +434,7 @@ var MemoriesApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
387
434
|
var queryParams = {
|
|
388
435
|
'message': message,
|
|
389
436
|
'spaceIds': opts['spaceIds'],
|
|
437
|
+
'filter': opts['filter'],
|
|
390
438
|
'requestedSize': opts['requestedSize'],
|
|
391
439
|
'fetchMemory': opts['fetchMemory'],
|
|
392
440
|
'fetchMemoryContent': opts['fetchMemoryContent'],
|
|
@@ -397,7 +445,9 @@ var MemoriesApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
397
445
|
'pp_max_results': opts['ppMaxResults'],
|
|
398
446
|
'pp_chronological_resort': opts['ppChronologicalResort']
|
|
399
447
|
};
|
|
400
|
-
var headerParams = {
|
|
448
|
+
var headerParams = {
|
|
449
|
+
'Accept': opts['accept']
|
|
450
|
+
};
|
|
401
451
|
var formParams = {};
|
|
402
452
|
var authNames = [];
|
|
403
453
|
var contentTypes = [];
|
|
@@ -411,7 +461,9 @@ var MemoriesApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
411
461
|
* Streams semantic retrieval results based on query and context. Supports SSE (text/event-stream) and NDJSON (application/x-ndjson) formats.
|
|
412
462
|
* @param {String} message Primary query/message for semantic search
|
|
413
463
|
* @param {Object} opts Optional parameters
|
|
464
|
+
* @param {String} opts.accept Response format: 'text/event-stream' for Server-Sent Events or 'application/x-ndjson' for newline-delimited JSON
|
|
414
465
|
* @param {String} opts.spaceIds Comma-separated list of space UUIDs to search within
|
|
466
|
+
* @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
467
|
* @param {Number} opts.requestedSize Maximum number of memories to retrieve
|
|
416
468
|
* @param {Boolean} opts.fetchMemory Whether to fetch memory definitions (defaults to true)
|
|
417
469
|
* @param {Boolean} opts.fetchMemoryContent Whether to fetch original content for memories (defaults to false)
|
|
@@ -435,11 +487,14 @@ var MemoriesApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
435
487
|
* Advanced semantic memory retrieval with JSON
|
|
436
488
|
* Streams semantic retrieval results with full feature support including context items and embedder weight overrides. Supports SSE (text/event-stream) and NDJSON (application/x-ndjson) formats.
|
|
437
489
|
* @param {module:model/RetrieveMemoryRequest} retrieveMemoryRequest Request body with query, context, and space configurations
|
|
490
|
+
* @param {Object} opts Optional parameters
|
|
491
|
+
* @param {String} [accept] Response format: 'text/event-stream' for Server-Sent Events or 'application/x-ndjson' for newline-delimited JSON
|
|
438
492
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
439
493
|
*/
|
|
440
494
|
}, {
|
|
441
495
|
key: "retrieveMemoryAdvancedWithHttpInfo",
|
|
442
|
-
value: function retrieveMemoryAdvancedWithHttpInfo(retrieveMemoryRequest) {
|
|
496
|
+
value: function retrieveMemoryAdvancedWithHttpInfo(retrieveMemoryRequest, opts) {
|
|
497
|
+
opts = opts || {};
|
|
443
498
|
var postBody = retrieveMemoryRequest;
|
|
444
499
|
// verify the required parameter 'retrieveMemoryRequest' is set
|
|
445
500
|
if (retrieveMemoryRequest === undefined || retrieveMemoryRequest === null) {
|
|
@@ -447,7 +502,9 @@ var MemoriesApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
447
502
|
}
|
|
448
503
|
var pathParams = {};
|
|
449
504
|
var queryParams = {};
|
|
450
|
-
var headerParams = {
|
|
505
|
+
var headerParams = {
|
|
506
|
+
'Accept': opts['accept']
|
|
507
|
+
};
|
|
451
508
|
var formParams = {};
|
|
452
509
|
var authNames = [];
|
|
453
510
|
var contentTypes = ['application/json'];
|
|
@@ -460,12 +517,14 @@ var MemoriesApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
460
517
|
* Advanced semantic memory retrieval with JSON
|
|
461
518
|
* Streams semantic retrieval results with full feature support including context items and embedder weight overrides. Supports SSE (text/event-stream) and NDJSON (application/x-ndjson) formats.
|
|
462
519
|
* @param {module:model/RetrieveMemoryRequest} retrieveMemoryRequest Request body with query, context, and space configurations
|
|
520
|
+
* @param {Object} opts Optional parameters
|
|
521
|
+
* @param {String} opts.accept Response format: 'text/event-stream' for Server-Sent Events or 'application/x-ndjson' for newline-delimited JSON
|
|
463
522
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
464
523
|
*/
|
|
465
524
|
}, {
|
|
466
525
|
key: "retrieveMemoryAdvanced",
|
|
467
|
-
value: function retrieveMemoryAdvanced(retrieveMemoryRequest) {
|
|
468
|
-
return this.retrieveMemoryAdvancedWithHttpInfo(retrieveMemoryRequest).then(function (response_and_data) {
|
|
526
|
+
value: function retrieveMemoryAdvanced(retrieveMemoryRequest, opts) {
|
|
527
|
+
return this.retrieveMemoryAdvancedWithHttpInfo(retrieveMemoryRequest, opts).then(function (response_and_data) {
|
|
469
528
|
return response_and_data.data;
|
|
470
529
|
});
|
|
471
530
|
}
|