@pairsystems/goodmem-client 1.0.9 → 1.0.11
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 +29 -5
- package/dist/api/EmbeddersApi.js +27 -12
- package/dist/api/LLMsApi.js +25 -10
- package/dist/api/MemoriesApi.js +197 -69
- package/dist/api/RerankersApi.js +25 -10
- package/dist/api/SpacesApi.js +31 -16
- package/dist/index.js +157 -3
- package/dist/model/ActiveLicenseMetadata.js +5 -1
- package/dist/model/AdminDrainRequest.js +3 -0
- package/dist/model/AdminDrainResponse.js +33 -2
- package/dist/model/AdminPurgeJobsRequest.js +4 -0
- package/dist/model/AdminPurgeJobsResponse.js +8 -4
- package/dist/model/AdminReloadLicenseResponse.js +4 -1
- package/dist/model/ApiKeyAuth.js +7 -3
- package/dist/model/ApiKeyResponse.js +67 -5
- package/dist/model/BackgroundJobSummary.js +35 -2
- package/dist/model/BatchDeleteMemorySelectorRequest.js +106 -0
- package/dist/model/BatchMemoryDeletionRequest.js +33 -15
- package/dist/model/BatchMemoryResult.js +4 -2
- package/dist/model/ChunkReference.js +3 -2
- package/dist/model/ChunkingConfiguration.js +109 -47
- package/dist/model/ChunkingConfigurationOneOf.js +109 -0
- package/dist/model/ChunkingConfigurationOneOf1.js +109 -0
- package/dist/model/ChunkingConfigurationOneOf2.js +109 -0
- package/dist/model/ContextItem.js +91 -73
- package/dist/model/ContextItemOneOf.js +109 -0
- package/dist/model/ContextItemOneOf1.js +109 -0
- package/dist/model/CreateApiKeyResponse.js +2 -1
- package/dist/model/CreateLLMResponse.js +3 -2
- package/dist/model/EmbedderCreationRequest.js +8 -5
- package/dist/model/EmbedderResponse.js +16 -11
- package/dist/model/EndpointAuthentication.js +7 -4
- package/dist/model/FilteredDeleteMemorySelectorRequest.js +140 -0
- package/dist/model/HnswIterativeScan.js +68 -0
- package/dist/model/HnswOptions.js +115 -0
- package/dist/model/JsonBatchMemoryCreationRequest.js +132 -0
- package/dist/model/JsonMemoryCreationContentRequirement.js +151 -0
- package/dist/model/JsonMemoryCreationContentRequirementOneOf.js +109 -0
- package/dist/model/JsonMemoryCreationContentRequirementOneOf1.js +109 -0
- package/dist/model/JsonMemoryCreationRequest.js +289 -0
- package/dist/model/LLMCreationRequest.js +12 -6
- package/dist/model/LLMResponse.js +18 -12
- package/dist/model/LLMUpdateRequest.js +6 -3
- package/dist/model/LLMUpdateRequestNot.js +118 -0
- package/dist/model/ListApiKeysResponse.js +29 -9
- package/dist/model/ListMemoryPageImagesResponse.js +145 -0
- package/dist/model/ListSpacesResponse.js +29 -9
- package/dist/model/Memory.js +106 -10
- package/dist/model/MemoryChunkResponse.js +39 -2
- package/dist/model/MemoryCreationRequest.js +15 -3
- package/dist/model/MemoryPageImage.js +225 -0
- package/dist/model/OcrCell.js +5 -3
- package/dist/model/OcrDocumentRequest.js +2 -1
- package/dist/model/OcrDocumentResponse.js +6 -4
- package/dist/model/OcrPage.js +9 -6
- package/dist/model/OcrPageResult.js +4 -2
- package/dist/model/PingEndpointInfo.js +3 -2
- package/dist/model/PingEvent.js +108 -50
- package/dist/model/PingEventOneOf.js +109 -0
- package/dist/model/PingEventOneOf1.js +109 -0
- package/dist/model/PingEventOneOf2.js +109 -0
- package/dist/model/PingOnceRequest.js +4 -2
- package/dist/model/PingResult.js +6 -4
- package/dist/model/PingStreamRequest.js +7 -3
- package/dist/model/PingSummary.js +3 -2
- package/dist/model/ProcessingHistory.js +2 -1
- package/dist/model/RecursiveChunkingConfiguration.js +6 -4
- package/dist/model/RerankerCreationRequest.js +5 -3
- package/dist/model/RerankerResponse.js +13 -9
- package/dist/model/ResultSetBoundary.js +20 -2
- package/dist/model/RetrieveMemoryEvent.js +10 -5
- package/dist/model/RetrieveMemoryRequest.js +25 -5
- package/dist/model/RetrievedItem.js +91 -42
- package/dist/model/RetrievedItemOneOf.js +109 -0
- package/dist/model/RetrievedItemOneOf1.js +109 -0
- package/dist/model/SecretReference.js +27 -4
- package/dist/model/SentenceChunkingConfiguration.js +3 -2
- package/dist/model/SortOrder.js +63 -0
- package/dist/model/Space.js +8 -5
- package/dist/model/SpaceCreationRequest.js +13 -8
- package/dist/model/SpaceEmbedderConfig.js +3 -1
- package/dist/model/SystemInfoResponse.js +13 -4
- package/dist/model/UpdateApiKeyRequest.js +19 -9
- package/dist/model/UpdateEmbedderRequest.js +2 -9
- package/dist/model/UpdateRerankerRequest.js +2 -9
- package/dist/model/UpdateSpaceRequest.js +0 -22
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -5,8 +5,8 @@ No description provided (generated by Openapi Generator https://github.com/opena
|
|
|
5
5
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
6
6
|
|
|
7
7
|
- API version:
|
|
8
|
-
- Package version: 1.0.
|
|
9
|
-
- Generator version: 7.
|
|
8
|
+
- Package version: 1.0.11
|
|
9
|
+
- Generator version: 7.22.0-SNAPSHOT
|
|
10
10
|
- Build package: org.openapitools.codegen.languages.JavascriptClientCodegen
|
|
11
11
|
|
|
12
12
|
## Installation
|
|
@@ -114,7 +114,7 @@ defaultClient.defaultHeaders = {
|
|
|
114
114
|
|
|
115
115
|
|
|
116
116
|
var api = new GoodMemClient.APIKeysApi()
|
|
117
|
-
var createApiKeyRequest = {"labels":{"environment":"development","service":"chat-ui"},"expiresAt":
|
|
117
|
+
var createApiKeyRequest = {"labels":{"environment":"development","service":"chat-ui"},"expiresAt":1735689600000}; // {CreateApiKeyRequest} API key configuration
|
|
118
118
|
api.createApiKey(createApiKeyRequest).then(function(data) {
|
|
119
119
|
console.log('API called successfully. Returned data: ' + data);
|
|
120
120
|
}, function(error) {
|
|
@@ -301,13 +301,15 @@ Class | Method | HTTP request | Description
|
|
|
301
301
|
*GoodMemClient.LLMsApi* | [**listLLMs**](docs/LLMsApi.md#listLLMs) | **GET** /v1/llms | List LLMs
|
|
302
302
|
*GoodMemClient.LLMsApi* | [**updateLLM**](docs/LLMsApi.md#updateLLM) | **PUT** /v1/llms/{id} | Update an LLM
|
|
303
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
|
|
304
|
+
*GoodMemClient.MemoriesApi* | [**batchDeleteMemory**](docs/MemoriesApi.md#batchDeleteMemory) | **POST** /v1/memories:batchDelete | Delete memories in batch
|
|
305
305
|
*GoodMemClient.MemoriesApi* | [**batchGetMemory**](docs/MemoriesApi.md#batchGetMemory) | **POST** /v1/memories:batchGet | Get multiple memories by ID
|
|
306
306
|
*GoodMemClient.MemoriesApi* | [**createMemory**](docs/MemoriesApi.md#createMemory) | **POST** /v1/memories | Create a new memory
|
|
307
307
|
*GoodMemClient.MemoriesApi* | [**deleteMemory**](docs/MemoriesApi.md#deleteMemory) | **DELETE** /v1/memories/{id} | Delete a memory
|
|
308
308
|
*GoodMemClient.MemoriesApi* | [**getMemory**](docs/MemoriesApi.md#getMemory) | **GET** /v1/memories/{id} | Get a memory by ID
|
|
309
309
|
*GoodMemClient.MemoriesApi* | [**getMemoryContent**](docs/MemoriesApi.md#getMemoryContent) | **GET** /v1/memories/{id}/content | Download memory content
|
|
310
|
+
*GoodMemClient.MemoriesApi* | [**getMemoryPageImageContent**](docs/MemoriesApi.md#getMemoryPageImageContent) | **GET** /v1/memories/{id}/pages/{pageIndex}/image | Download memory page image content
|
|
310
311
|
*GoodMemClient.MemoriesApi* | [**listMemories**](docs/MemoriesApi.md#listMemories) | **GET** /v1/spaces/{spaceId}/memories | List memories in a space
|
|
312
|
+
*GoodMemClient.MemoriesApi* | [**listMemoryPageImages**](docs/MemoriesApi.md#listMemoryPageImages) | **GET** /v1/memories/{id}/pages | List memory page images
|
|
311
313
|
*GoodMemClient.MemoriesApi* | [**retrieveMemory**](docs/MemoriesApi.md#retrieveMemory) | **GET** /v1/memories:retrieve | Stream semantic memory retrieval
|
|
312
314
|
*GoodMemClient.MemoriesApi* | [**retrieveMemoryAdvanced**](docs/MemoriesApi.md#retrieveMemoryAdvanced) | **POST** /v1/memories:retrieve | Advanced semantic memory retrieval with JSON
|
|
313
315
|
*GoodMemClient.OCRApi* | [**ocrDocument**](docs/OCRApi.md#ocrDocument) | **POST** /v1/ocr:document | Run OCR on a document or image
|
|
@@ -343,7 +345,7 @@ Class | Method | HTTP request | Description
|
|
|
343
345
|
- [GoodMemClient.ApiKeyResponse](docs/ApiKeyResponse.md)
|
|
344
346
|
- [GoodMemClient.BackgroundJobAttempt](docs/BackgroundJobAttempt.md)
|
|
345
347
|
- [GoodMemClient.BackgroundJobSummary](docs/BackgroundJobSummary.md)
|
|
346
|
-
- [GoodMemClient.
|
|
348
|
+
- [GoodMemClient.BatchDeleteMemorySelectorRequest](docs/BatchDeleteMemorySelectorRequest.md)
|
|
347
349
|
- [GoodMemClient.BatchMemoryDeletionRequest](docs/BatchMemoryDeletionRequest.md)
|
|
348
350
|
- [GoodMemClient.BatchMemoryResponse](docs/BatchMemoryResponse.md)
|
|
349
351
|
- [GoodMemClient.BatchMemoryResult](docs/BatchMemoryResult.md)
|
|
@@ -352,7 +354,12 @@ Class | Method | HTTP request | Description
|
|
|
352
354
|
- [GoodMemClient.BoundingBox](docs/BoundingBox.md)
|
|
353
355
|
- [GoodMemClient.ChunkReference](docs/ChunkReference.md)
|
|
354
356
|
- [GoodMemClient.ChunkingConfiguration](docs/ChunkingConfiguration.md)
|
|
357
|
+
- [GoodMemClient.ChunkingConfigurationOneOf](docs/ChunkingConfigurationOneOf.md)
|
|
358
|
+
- [GoodMemClient.ChunkingConfigurationOneOf1](docs/ChunkingConfigurationOneOf1.md)
|
|
359
|
+
- [GoodMemClient.ChunkingConfigurationOneOf2](docs/ChunkingConfigurationOneOf2.md)
|
|
355
360
|
- [GoodMemClient.ContextItem](docs/ContextItem.md)
|
|
361
|
+
- [GoodMemClient.ContextItemOneOf](docs/ContextItemOneOf.md)
|
|
362
|
+
- [GoodMemClient.ContextItemOneOf1](docs/ContextItemOneOf1.md)
|
|
356
363
|
- [GoodMemClient.CreateApiKeyRequest](docs/CreateApiKeyRequest.md)
|
|
357
364
|
- [GoodMemClient.CreateApiKeyResponse](docs/CreateApiKeyResponse.md)
|
|
358
365
|
- [GoodMemClient.CreateLLMResponse](docs/CreateLLMResponse.md)
|
|
@@ -364,25 +371,36 @@ Class | Method | HTTP request | Description
|
|
|
364
371
|
- [GoodMemClient.EmbedderWeight](docs/EmbedderWeight.md)
|
|
365
372
|
- [GoodMemClient.EndpointAuthentication](docs/EndpointAuthentication.md)
|
|
366
373
|
- [GoodMemClient.ErrorDetail](docs/ErrorDetail.md)
|
|
374
|
+
- [GoodMemClient.FilteredDeleteMemorySelectorRequest](docs/FilteredDeleteMemorySelectorRequest.md)
|
|
367
375
|
- [GoodMemClient.GcpAdcAuth](docs/GcpAdcAuth.md)
|
|
368
376
|
- [GoodMemClient.GoodMemStatus](docs/GoodMemStatus.md)
|
|
377
|
+
- [GoodMemClient.HnswIterativeScan](docs/HnswIterativeScan.md)
|
|
378
|
+
- [GoodMemClient.HnswOptions](docs/HnswOptions.md)
|
|
369
379
|
- [GoodMemClient.ImageInfo](docs/ImageInfo.md)
|
|
380
|
+
- [GoodMemClient.JsonBatchMemoryCreationRequest](docs/JsonBatchMemoryCreationRequest.md)
|
|
381
|
+
- [GoodMemClient.JsonMemoryCreationContentRequirement](docs/JsonMemoryCreationContentRequirement.md)
|
|
382
|
+
- [GoodMemClient.JsonMemoryCreationContentRequirementOneOf](docs/JsonMemoryCreationContentRequirementOneOf.md)
|
|
383
|
+
- [GoodMemClient.JsonMemoryCreationContentRequirementOneOf1](docs/JsonMemoryCreationContentRequirementOneOf1.md)
|
|
384
|
+
- [GoodMemClient.JsonMemoryCreationRequest](docs/JsonMemoryCreationRequest.md)
|
|
370
385
|
- [GoodMemClient.LLMCapabilities](docs/LLMCapabilities.md)
|
|
371
386
|
- [GoodMemClient.LLMCreationRequest](docs/LLMCreationRequest.md)
|
|
372
387
|
- [GoodMemClient.LLMProviderType](docs/LLMProviderType.md)
|
|
373
388
|
- [GoodMemClient.LLMResponse](docs/LLMResponse.md)
|
|
374
389
|
- [GoodMemClient.LLMSamplingParams](docs/LLMSamplingParams.md)
|
|
375
390
|
- [GoodMemClient.LLMUpdateRequest](docs/LLMUpdateRequest.md)
|
|
391
|
+
- [GoodMemClient.LLMUpdateRequestNot](docs/LLMUpdateRequestNot.md)
|
|
376
392
|
- [GoodMemClient.LengthMeasurement](docs/LengthMeasurement.md)
|
|
377
393
|
- [GoodMemClient.ListApiKeysResponse](docs/ListApiKeysResponse.md)
|
|
378
394
|
- [GoodMemClient.ListEmbeddersResponse](docs/ListEmbeddersResponse.md)
|
|
379
395
|
- [GoodMemClient.ListLLMsResponse](docs/ListLLMsResponse.md)
|
|
396
|
+
- [GoodMemClient.ListMemoryPageImagesResponse](docs/ListMemoryPageImagesResponse.md)
|
|
380
397
|
- [GoodMemClient.ListRerankersResponse](docs/ListRerankersResponse.md)
|
|
381
398
|
- [GoodMemClient.ListSpacesResponse](docs/ListSpacesResponse.md)
|
|
382
399
|
- [GoodMemClient.Memory](docs/Memory.md)
|
|
383
400
|
- [GoodMemClient.MemoryChunkResponse](docs/MemoryChunkResponse.md)
|
|
384
401
|
- [GoodMemClient.MemoryCreationRequest](docs/MemoryCreationRequest.md)
|
|
385
402
|
- [GoodMemClient.MemoryListResponse](docs/MemoryListResponse.md)
|
|
403
|
+
- [GoodMemClient.MemoryPageImage](docs/MemoryPageImage.md)
|
|
386
404
|
- [GoodMemClient.Modality](docs/Modality.md)
|
|
387
405
|
- [GoodMemClient.OcrCategory](docs/OcrCategory.md)
|
|
388
406
|
- [GoodMemClient.OcrCell](docs/OcrCell.md)
|
|
@@ -395,6 +413,9 @@ Class | Method | HTTP request | Description
|
|
|
395
413
|
- [GoodMemClient.PageTimings](docs/PageTimings.md)
|
|
396
414
|
- [GoodMemClient.PingEndpointInfo](docs/PingEndpointInfo.md)
|
|
397
415
|
- [GoodMemClient.PingEvent](docs/PingEvent.md)
|
|
416
|
+
- [GoodMemClient.PingEventOneOf](docs/PingEventOneOf.md)
|
|
417
|
+
- [GoodMemClient.PingEventOneOf1](docs/PingEventOneOf1.md)
|
|
418
|
+
- [GoodMemClient.PingEventOneOf2](docs/PingEventOneOf2.md)
|
|
398
419
|
- [GoodMemClient.PingNotice](docs/PingNotice.md)
|
|
399
420
|
- [GoodMemClient.PingOnceRequest](docs/PingOnceRequest.md)
|
|
400
421
|
- [GoodMemClient.PingPayloadType](docs/PingPayloadType.md)
|
|
@@ -413,10 +434,13 @@ Class | Method | HTTP request | Description
|
|
|
413
434
|
- [GoodMemClient.RetrieveMemoryEvent](docs/RetrieveMemoryEvent.md)
|
|
414
435
|
- [GoodMemClient.RetrieveMemoryRequest](docs/RetrieveMemoryRequest.md)
|
|
415
436
|
- [GoodMemClient.RetrievedItem](docs/RetrievedItem.md)
|
|
437
|
+
- [GoodMemClient.RetrievedItemOneOf](docs/RetrievedItemOneOf.md)
|
|
438
|
+
- [GoodMemClient.RetrievedItemOneOf1](docs/RetrievedItemOneOf1.md)
|
|
416
439
|
- [GoodMemClient.RpcStatus](docs/RpcStatus.md)
|
|
417
440
|
- [GoodMemClient.SecretReference](docs/SecretReference.md)
|
|
418
441
|
- [GoodMemClient.SentenceChunkingConfiguration](docs/SentenceChunkingConfiguration.md)
|
|
419
442
|
- [GoodMemClient.SeparatorKeepStrategy](docs/SeparatorKeepStrategy.md)
|
|
443
|
+
- [GoodMemClient.SortOrder](docs/SortOrder.md)
|
|
420
444
|
- [GoodMemClient.Space](docs/Space.md)
|
|
421
445
|
- [GoodMemClient.SpaceCreationRequest](docs/SpaceCreationRequest.md)
|
|
422
446
|
- [GoodMemClient.SpaceEmbedder](docs/SpaceEmbedder.md)
|
package/dist/api/EmbeddersApi.js
CHANGED
|
@@ -8,9 +8,19 @@ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
|
8
8
|
var _EmbedderCreationRequest = _interopRequireDefault(require("../model/EmbedderCreationRequest"));
|
|
9
9
|
var _EmbedderResponse = _interopRequireDefault(require("../model/EmbedderResponse"));
|
|
10
10
|
var _ListEmbeddersResponse = _interopRequireDefault(require("../model/ListEmbeddersResponse"));
|
|
11
|
+
var _ProviderType = _interopRequireDefault(require("../model/ProviderType"));
|
|
11
12
|
var _UpdateEmbedderRequest = _interopRequireDefault(require("../model/UpdateEmbedderRequest"));
|
|
12
13
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
13
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 _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
16
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
17
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
18
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
19
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
20
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
21
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
22
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
23
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
14
24
|
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
15
25
|
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); } }
|
|
16
26
|
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
@@ -47,7 +57,7 @@ var EmbeddersApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
47
57
|
|
|
48
58
|
/**
|
|
49
59
|
* 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 HTTP 409 Conflict (ALREADY_EXISTS) if another embedder exists with identical {ownerId, providerType, endpointUrl, apiPath, modelIdentifier, credentialsFingerprint} 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 apiPath 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).
|
|
60
|
+
* 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 {ownerId, providerType, endpointUrl, apiPath, modelIdentifier, dimensionality, distributionType, credentialsFingerprint} 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 apiPath 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
61
|
* @param {module:model/EmbedderCreationRequest} embedderCreationRequest Embedder configuration details
|
|
52
62
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EmbedderResponse} and HTTP response
|
|
53
63
|
*/
|
|
@@ -72,7 +82,7 @@ var EmbeddersApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
72
82
|
|
|
73
83
|
/**
|
|
74
84
|
* 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 HTTP 409 Conflict (ALREADY_EXISTS) if another embedder exists with identical {ownerId, providerType, endpointUrl, apiPath, modelIdentifier, credentialsFingerprint} 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 apiPath 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).
|
|
85
|
+
* 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 {ownerId, providerType, endpointUrl, apiPath, modelIdentifier, dimensionality, distributionType, credentialsFingerprint} 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 apiPath 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
86
|
* @param {module:model/EmbedderCreationRequest} embedderCreationRequest Embedder configuration details
|
|
77
87
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EmbedderResponse}
|
|
78
88
|
*/
|
|
@@ -168,11 +178,11 @@ var EmbeddersApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
168
178
|
|
|
169
179
|
/**
|
|
170
180
|
* List embedders
|
|
171
|
-
* Retrieves a list of embedder configurations accessible to the caller, with optional filtering. PERMISSION-BASED FILTERING: With LIST_EMBEDDER_OWN permission, you can only see your own embedders (ownerId filter is ignored if set to another user). With LIST_EMBEDDER_ANY permission, you can see all embedders or filter by any ownerId. This is a read-only operation with no side effects.
|
|
181
|
+
* Retrieves a list of embedder configurations accessible to the caller, with optional filtering. LABEL FILTERS: Label filters accept either label.<key>=<value> or label[key]=value (for example, label.environment=production or label[environment]=production). PERMISSION-BASED FILTERING: With LIST_EMBEDDER_OWN permission, you can only see your own embedders (ownerId filter is ignored if set to another user). With LIST_EMBEDDER_ANY permission, you can see all embedders or filter by any ownerId. This is a read-only operation with no side effects.
|
|
172
182
|
* @param {Object} opts Optional parameters
|
|
173
183
|
* @param {String} [ownerId] Filter embedders by owner ID. With LIST_EMBEDDER_ANY permission, omitting this shows all accessible embedders; providing it filters by that owner. With LIST_EMBEDDER_OWN permission, only your own embedders are shown regardless of this parameter.
|
|
174
|
-
* @param {
|
|
175
|
-
* @param {String} [label] Filter by label value.
|
|
184
|
+
* @param {module:model/ProviderType} [providerType] Filter embedders by provider type. Allowed values match the ProviderType schema.
|
|
185
|
+
* @param {Object.<String, String>} [label] Filter by label key-value pairs. Label filters accept either label.<key>=<value> or label[key]=value (for example, label.environment=production or label[environment]=production).
|
|
176
186
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListEmbeddersResponse} and HTTP response
|
|
177
187
|
*/
|
|
178
188
|
}, {
|
|
@@ -181,11 +191,16 @@ var EmbeddersApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
181
191
|
opts = opts || {};
|
|
182
192
|
var postBody = null;
|
|
183
193
|
var pathParams = {};
|
|
184
|
-
var queryParams = {
|
|
194
|
+
var queryParams = _objectSpread({
|
|
185
195
|
'ownerId': opts['ownerId'],
|
|
186
|
-
'providerType': opts['providerType']
|
|
187
|
-
|
|
188
|
-
|
|
196
|
+
'providerType': opts['providerType']
|
|
197
|
+
}, Object.entries(opts['label'] || {}).reduce(function (acc, _ref) {
|
|
198
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
199
|
+
k = _ref2[0],
|
|
200
|
+
v = _ref2[1];
|
|
201
|
+
acc["label.".concat(k)] = v;
|
|
202
|
+
return acc;
|
|
203
|
+
}, {}));
|
|
189
204
|
var headerParams = {};
|
|
190
205
|
var formParams = {};
|
|
191
206
|
var authNames = [];
|
|
@@ -197,11 +212,11 @@ var EmbeddersApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
197
212
|
|
|
198
213
|
/**
|
|
199
214
|
* List embedders
|
|
200
|
-
* Retrieves a list of embedder configurations accessible to the caller, with optional filtering. PERMISSION-BASED FILTERING: With LIST_EMBEDDER_OWN permission, you can only see your own embedders (ownerId filter is ignored if set to another user). With LIST_EMBEDDER_ANY permission, you can see all embedders or filter by any ownerId. This is a read-only operation with no side effects.
|
|
215
|
+
* Retrieves a list of embedder configurations accessible to the caller, with optional filtering. LABEL FILTERS: Label filters accept either label.<key>=<value> or label[key]=value (for example, label.environment=production or label[environment]=production). PERMISSION-BASED FILTERING: With LIST_EMBEDDER_OWN permission, you can only see your own embedders (ownerId filter is ignored if set to another user). With LIST_EMBEDDER_ANY permission, you can see all embedders or filter by any ownerId. This is a read-only operation with no side effects.
|
|
201
216
|
* @param {Object} opts Optional parameters
|
|
202
217
|
* @param {String} opts.ownerId Filter embedders by owner ID. With LIST_EMBEDDER_ANY permission, omitting this shows all accessible embedders; providing it filters by that owner. With LIST_EMBEDDER_OWN permission, only your own embedders are shown regardless of this parameter.
|
|
203
|
-
* @param {
|
|
204
|
-
* @param {String} opts.label Filter by label value.
|
|
218
|
+
* @param {module:model/ProviderType} opts.providerType Filter embedders by provider type. Allowed values match the ProviderType schema.
|
|
219
|
+
* @param {Object.<String, String>} opts.label Filter by label key-value pairs. Label filters accept either label.<key>=<value> or label[key]=value (for example, label.environment=production or label[environment]=production).
|
|
205
220
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListEmbeddersResponse}
|
|
206
221
|
*/
|
|
207
222
|
}, {
|
package/dist/api/LLMsApi.js
CHANGED
|
@@ -7,11 +7,21 @@ exports["default"] = void 0;
|
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
8
|
var _CreateLLMResponse = _interopRequireDefault(require("../model/CreateLLMResponse"));
|
|
9
9
|
var _LLMCreationRequest = _interopRequireDefault(require("../model/LLMCreationRequest"));
|
|
10
|
+
var _LLMProviderType = _interopRequireDefault(require("../model/LLMProviderType"));
|
|
10
11
|
var _LLMResponse = _interopRequireDefault(require("../model/LLMResponse"));
|
|
11
12
|
var _LLMUpdateRequest = _interopRequireDefault(require("../model/LLMUpdateRequest"));
|
|
12
13
|
var _ListLLMsResponse = _interopRequireDefault(require("../model/ListLLMsResponse"));
|
|
13
14
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
14
15
|
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); }
|
|
16
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
17
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
18
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
19
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
20
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
21
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
22
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
23
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
24
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
15
25
|
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
16
26
|
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
27
|
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
@@ -169,11 +179,11 @@ var LLMsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
169
179
|
|
|
170
180
|
/**
|
|
171
181
|
* List LLMs
|
|
172
|
-
* Retrieves a list of LLM configurations accessible to the caller, with optional filtering. PERMISSION-BASED FILTERING: With LIST_LLM_OWN permission, you can only see your own LLMs (ownerId filter is ignored if set to another user). With LIST_LLM_ANY permission, you can see all LLMs or filter by any ownerId. This is a read-only operation with no side effects.
|
|
182
|
+
* Retrieves a list of LLM configurations accessible to the caller, with optional filtering. LABEL FILTERS: Label filters accept either label.<key>=<value> or label[key]=value (for example, label.environment=production or label[environment]=production). PERMISSION-BASED FILTERING: With LIST_LLM_OWN permission, you can only see your own LLMs (ownerId filter is ignored if set to another user). With LIST_LLM_ANY permission, you can see all LLMs or filter by any ownerId. This is a read-only operation with no side effects.
|
|
173
183
|
* @param {Object} opts Optional parameters
|
|
174
184
|
* @param {String} [ownerId] Filter LLMs by owner ID. With LIST_LLM_ANY permission, omitting this shows all accessible LLMs; providing it filters by that owner. With LIST_LLM_OWN permission, only your own LLMs are shown regardless of this parameter.
|
|
175
|
-
* @param {
|
|
176
|
-
* @param {String} [label] Filter by label value.
|
|
185
|
+
* @param {module:model/LLMProviderType} [providerType] Filter LLMs by provider type. Allowed values match the LLMProviderType schema.
|
|
186
|
+
* @param {Object.<String, String>} [label] Filter by label key-value pairs. Label filters accept either label.<key>=<value> or label[key]=value (for example, label.environment=production or label[environment]=production).
|
|
177
187
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListLLMsResponse} and HTTP response
|
|
178
188
|
*/
|
|
179
189
|
}, {
|
|
@@ -182,11 +192,16 @@ var LLMsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
182
192
|
opts = opts || {};
|
|
183
193
|
var postBody = null;
|
|
184
194
|
var pathParams = {};
|
|
185
|
-
var queryParams = {
|
|
195
|
+
var queryParams = _objectSpread({
|
|
186
196
|
'ownerId': opts['ownerId'],
|
|
187
|
-
'providerType': opts['providerType']
|
|
188
|
-
|
|
189
|
-
|
|
197
|
+
'providerType': opts['providerType']
|
|
198
|
+
}, Object.entries(opts['label'] || {}).reduce(function (acc, _ref) {
|
|
199
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
200
|
+
k = _ref2[0],
|
|
201
|
+
v = _ref2[1];
|
|
202
|
+
acc["label.".concat(k)] = v;
|
|
203
|
+
return acc;
|
|
204
|
+
}, {}));
|
|
190
205
|
var headerParams = {};
|
|
191
206
|
var formParams = {};
|
|
192
207
|
var authNames = [];
|
|
@@ -198,11 +213,11 @@ var LLMsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
198
213
|
|
|
199
214
|
/**
|
|
200
215
|
* List LLMs
|
|
201
|
-
* Retrieves a list of LLM configurations accessible to the caller, with optional filtering. PERMISSION-BASED FILTERING: With LIST_LLM_OWN permission, you can only see your own LLMs (ownerId filter is ignored if set to another user). With LIST_LLM_ANY permission, you can see all LLMs or filter by any ownerId. This is a read-only operation with no side effects.
|
|
216
|
+
* Retrieves a list of LLM configurations accessible to the caller, with optional filtering. LABEL FILTERS: Label filters accept either label.<key>=<value> or label[key]=value (for example, label.environment=production or label[environment]=production). PERMISSION-BASED FILTERING: With LIST_LLM_OWN permission, you can only see your own LLMs (ownerId filter is ignored if set to another user). With LIST_LLM_ANY permission, you can see all LLMs or filter by any ownerId. This is a read-only operation with no side effects.
|
|
202
217
|
* @param {Object} opts Optional parameters
|
|
203
218
|
* @param {String} opts.ownerId Filter LLMs by owner ID. With LIST_LLM_ANY permission, omitting this shows all accessible LLMs; providing it filters by that owner. With LIST_LLM_OWN permission, only your own LLMs are shown regardless of this parameter.
|
|
204
|
-
* @param {
|
|
205
|
-
* @param {String} opts.label Filter by label value.
|
|
219
|
+
* @param {module:model/LLMProviderType} opts.providerType Filter LLMs by provider type. Allowed values match the LLMProviderType schema.
|
|
220
|
+
* @param {Object.<String, String>} opts.label Filter by label key-value pairs. Label filters accept either label.<key>=<value> or label[key]=value (for example, label.environment=production or label[environment]=production).
|
|
206
221
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListLLMsResponse}
|
|
207
222
|
*/
|
|
208
223
|
}, {
|