@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/dist/api/MemoriesApi.js
CHANGED
|
@@ -5,12 +5,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
-
var _BatchMemoryCreationRequest = _interopRequireDefault(require("../model/BatchMemoryCreationRequest"));
|
|
9
8
|
var _BatchMemoryDeletionRequest = _interopRequireDefault(require("../model/BatchMemoryDeletionRequest"));
|
|
10
9
|
var _BatchMemoryResponse = _interopRequireDefault(require("../model/BatchMemoryResponse"));
|
|
11
10
|
var _BatchMemoryRetrievalRequest = _interopRequireDefault(require("../model/BatchMemoryRetrievalRequest"));
|
|
11
|
+
var _JsonBatchMemoryCreationRequest = _interopRequireDefault(require("../model/JsonBatchMemoryCreationRequest"));
|
|
12
|
+
var _JsonMemoryCreationRequest = _interopRequireDefault(require("../model/JsonMemoryCreationRequest"));
|
|
13
|
+
var _ListMemoryPageImagesResponse = _interopRequireDefault(require("../model/ListMemoryPageImagesResponse"));
|
|
12
14
|
var _Memory = _interopRequireDefault(require("../model/Memory"));
|
|
13
|
-
var _MemoryCreationRequest = _interopRequireDefault(require("../model/MemoryCreationRequest"));
|
|
14
15
|
var _MemoryListResponse = _interopRequireDefault(require("../model/MemoryListResponse"));
|
|
15
16
|
var _RetrieveMemoryEvent = _interopRequireDefault(require("../model/RetrieveMemoryEvent"));
|
|
16
17
|
var _RetrieveMemoryRequest = _interopRequireDefault(require("../model/RetrieveMemoryRequest"));
|
|
@@ -53,16 +54,16 @@ var MemoriesApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
53
54
|
/**
|
|
54
55
|
* Create multiple memories in a batch
|
|
55
56
|
* Creates multiple memories in a single operation, with individual success/failure results.
|
|
56
|
-
* @param {module:model/
|
|
57
|
+
* @param {module:model/JsonBatchMemoryCreationRequest} jsonBatchMemoryCreationRequest Batch memory creation details. For application/json requests, each item must provide exactly one of originalContent or originalContentB64. For multipart/form-data, provide a requests part and one file part per request.
|
|
57
58
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/BatchMemoryResponse} and HTTP response
|
|
58
59
|
*/
|
|
59
60
|
return _createClass(MemoriesApi, [{
|
|
60
61
|
key: "batchCreateMemoryWithHttpInfo",
|
|
61
|
-
value: function batchCreateMemoryWithHttpInfo(
|
|
62
|
-
var postBody =
|
|
63
|
-
// verify the required parameter '
|
|
64
|
-
if (
|
|
65
|
-
throw new Error("Missing the required parameter '
|
|
62
|
+
value: function batchCreateMemoryWithHttpInfo(jsonBatchMemoryCreationRequest) {
|
|
63
|
+
var postBody = jsonBatchMemoryCreationRequest;
|
|
64
|
+
// verify the required parameter 'jsonBatchMemoryCreationRequest' is set
|
|
65
|
+
if (jsonBatchMemoryCreationRequest === undefined || jsonBatchMemoryCreationRequest === null) {
|
|
66
|
+
throw new Error("Missing the required parameter 'jsonBatchMemoryCreationRequest' when calling batchCreateMemory");
|
|
66
67
|
}
|
|
67
68
|
var pathParams = {};
|
|
68
69
|
var queryParams = {};
|
|
@@ -78,20 +79,20 @@ var MemoriesApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
78
79
|
/**
|
|
79
80
|
* Create multiple memories in a batch
|
|
80
81
|
* Creates multiple memories in a single operation, with individual success/failure results.
|
|
81
|
-
* @param {module:model/
|
|
82
|
+
* @param {module:model/JsonBatchMemoryCreationRequest} jsonBatchMemoryCreationRequest Batch memory creation details. For application/json requests, each item must provide exactly one of originalContent or originalContentB64. For multipart/form-data, provide a requests part and one file part per request.
|
|
82
83
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/BatchMemoryResponse}
|
|
83
84
|
*/
|
|
84
85
|
}, {
|
|
85
86
|
key: "batchCreateMemory",
|
|
86
|
-
value: function batchCreateMemory(
|
|
87
|
-
return this.batchCreateMemoryWithHttpInfo(
|
|
87
|
+
value: function batchCreateMemory(jsonBatchMemoryCreationRequest) {
|
|
88
|
+
return this.batchCreateMemoryWithHttpInfo(jsonBatchMemoryCreationRequest).then(function (response_and_data) {
|
|
88
89
|
return response_and_data.data;
|
|
89
90
|
});
|
|
90
91
|
}
|
|
91
92
|
|
|
92
93
|
/**
|
|
93
|
-
* Delete
|
|
94
|
-
* Deletes
|
|
94
|
+
* Delete memories in batch
|
|
95
|
+
* Deletes memories using selector entries. Each selector can target either a specific memory ID or a filtered subset scoped to a specific space.
|
|
95
96
|
* @param {module:model/BatchMemoryDeletionRequest} batchMemoryDeletionRequest Batch memory deletion details
|
|
96
97
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/BatchMemoryResponse} and HTTP response
|
|
97
98
|
*/
|
|
@@ -115,8 +116,8 @@ var MemoriesApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
115
116
|
}
|
|
116
117
|
|
|
117
118
|
/**
|
|
118
|
-
* Delete
|
|
119
|
-
* Deletes
|
|
119
|
+
* Delete memories in batch
|
|
120
|
+
* Deletes memories using selector entries. Each selector can target either a specific memory ID or a filtered subset scoped to a specific space.
|
|
120
121
|
* @param {module:model/BatchMemoryDeletionRequest} batchMemoryDeletionRequest Batch memory deletion details
|
|
121
122
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/BatchMemoryResponse}
|
|
122
123
|
*/
|
|
@@ -169,17 +170,17 @@ var MemoriesApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
169
170
|
|
|
170
171
|
/**
|
|
171
172
|
* Create a new memory
|
|
172
|
-
* Creates a new memory in a specified space and starts asynchronous processing. The memory begins in PENDING status while a background job performs chunking and embedding generation.
|
|
173
|
-
* @param {module:model/
|
|
173
|
+
* Creates a new memory in a specified space and starts asynchronous processing. The memory begins in PENDING status while a background job performs chunking and embedding generation. IDEMPOTENCY: If memoryId is omitted, the server generates a new UUID and retries are not idempotent. If the client supplies a stable memoryId, the operation behaves as create-if-absent: the first request creates the memory and subsequent retries return HTTP 409 Conflict (ALREADY_EXISTS) rather than creating duplicates. Returns INVALID_ARGUMENT if space_id, original_content, or content_type is missing or invalid. Returns NOT_FOUND if the specified space does not exist. Requires CREATE_MEMORY_OWN permission for spaces you own (or CREATE_MEMORY_ANY for admin users to create in any space). Side effects include creating the memory record and enqueuing a background processing job.
|
|
174
|
+
* @param {module:model/JsonMemoryCreationRequest} jsonMemoryCreationRequest Memory creation details. For application/json requests, provide exactly one of originalContent or originalContentB64. For multipart/form-data, provide a JSON request part plus a file part.
|
|
174
175
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Memory} and HTTP response
|
|
175
176
|
*/
|
|
176
177
|
}, {
|
|
177
178
|
key: "createMemoryWithHttpInfo",
|
|
178
|
-
value: function createMemoryWithHttpInfo(
|
|
179
|
-
var postBody =
|
|
180
|
-
// verify the required parameter '
|
|
181
|
-
if (
|
|
182
|
-
throw new Error("Missing the required parameter '
|
|
179
|
+
value: function createMemoryWithHttpInfo(jsonMemoryCreationRequest) {
|
|
180
|
+
var postBody = jsonMemoryCreationRequest;
|
|
181
|
+
// verify the required parameter 'jsonMemoryCreationRequest' is set
|
|
182
|
+
if (jsonMemoryCreationRequest === undefined || jsonMemoryCreationRequest === null) {
|
|
183
|
+
throw new Error("Missing the required parameter 'jsonMemoryCreationRequest' when calling createMemory");
|
|
183
184
|
}
|
|
184
185
|
var pathParams = {};
|
|
185
186
|
var queryParams = {};
|
|
@@ -194,14 +195,14 @@ var MemoriesApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
194
195
|
|
|
195
196
|
/**
|
|
196
197
|
* Create a new memory
|
|
197
|
-
* Creates a new memory in a specified space and starts asynchronous processing. The memory begins in PENDING status while a background job performs chunking and embedding generation.
|
|
198
|
-
* @param {module:model/
|
|
198
|
+
* Creates a new memory in a specified space and starts asynchronous processing. The memory begins in PENDING status while a background job performs chunking and embedding generation. IDEMPOTENCY: If memoryId is omitted, the server generates a new UUID and retries are not idempotent. If the client supplies a stable memoryId, the operation behaves as create-if-absent: the first request creates the memory and subsequent retries return HTTP 409 Conflict (ALREADY_EXISTS) rather than creating duplicates. Returns INVALID_ARGUMENT if space_id, original_content, or content_type is missing or invalid. Returns NOT_FOUND if the specified space does not exist. Requires CREATE_MEMORY_OWN permission for spaces you own (or CREATE_MEMORY_ANY for admin users to create in any space). Side effects include creating the memory record and enqueuing a background processing job.
|
|
199
|
+
* @param {module:model/JsonMemoryCreationRequest} jsonMemoryCreationRequest Memory creation details. For application/json requests, provide exactly one of originalContent or originalContentB64. For multipart/form-data, provide a JSON request part plus a file part.
|
|
199
200
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Memory}
|
|
200
201
|
*/
|
|
201
202
|
}, {
|
|
202
203
|
key: "createMemory",
|
|
203
|
-
value: function createMemory(
|
|
204
|
-
return this.createMemoryWithHttpInfo(
|
|
204
|
+
value: function createMemory(jsonMemoryCreationRequest) {
|
|
205
|
+
return this.createMemoryWithHttpInfo(jsonMemoryCreationRequest).then(function (response_and_data) {
|
|
205
206
|
return response_and_data.data;
|
|
206
207
|
});
|
|
207
208
|
}
|
|
@@ -252,8 +253,8 @@ var MemoriesApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
252
253
|
* Retrieves a single memory by its ID. PERMISSION CLARIFICATION: With READ_MEMORY_OWN permission, access is granted if you own the parent space OR if the parent space is public (public_read=true). With READ_MEMORY_ANY permission, you can access any memory regardless of ownership. This is a read-only operation with no side effects and is safe to retry. Returns NOT_FOUND if the memory or its parent space does not exist.
|
|
253
254
|
* @param {String} id The unique identifier of the memory to retrieve
|
|
254
255
|
* @param {Object} opts Optional parameters
|
|
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)
|
|
256
|
+
* @param {Boolean} [includeContent = false)] Whether to include the original content in the response (defaults to false). The snake_case alias include_content is also accepted.
|
|
257
|
+
* @param {Boolean} [includeProcessingHistory = false)] Whether to include background job processing history in the response (defaults to false). The snake_case alias include_processing_history is also accepted.
|
|
257
258
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Memory} and HTTP response
|
|
258
259
|
*/
|
|
259
260
|
}, {
|
|
@@ -286,8 +287,8 @@ var MemoriesApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
286
287
|
* Retrieves a single memory by its ID. PERMISSION CLARIFICATION: With READ_MEMORY_OWN permission, access is granted if you own the parent space OR if the parent space is public (public_read=true). With READ_MEMORY_ANY permission, you can access any memory regardless of ownership. This is a read-only operation with no side effects and is safe to retry. Returns NOT_FOUND if the memory or its parent space does not exist.
|
|
287
288
|
* @param {String} id The unique identifier of the memory to retrieve
|
|
288
289
|
* @param {Object} opts Optional parameters
|
|
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)
|
|
290
|
+
* @param {Boolean} opts.includeContent Whether to include the original content in the response (defaults to false). The snake_case alias include_content is also accepted. (default to false)
|
|
291
|
+
* @param {Boolean} opts.includeProcessingHistory Whether to include background job processing history in the response (defaults to false). The snake_case alias include_processing_history is also accepted. (default to false)
|
|
291
292
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Memory}
|
|
292
293
|
*/
|
|
293
294
|
}, {
|
|
@@ -302,7 +303,7 @@ var MemoriesApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
302
303
|
* Download memory content
|
|
303
304
|
* 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
305
|
* @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
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link File} and HTTP response
|
|
306
307
|
*/
|
|
307
308
|
}, {
|
|
308
309
|
key: "getMemoryContentWithHttpInfo",
|
|
@@ -321,7 +322,7 @@ var MemoriesApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
321
322
|
var authNames = [];
|
|
322
323
|
var contentTypes = [];
|
|
323
324
|
var accepts = ['application/octet-stream'];
|
|
324
|
-
var returnType =
|
|
325
|
+
var returnType = File;
|
|
325
326
|
return this.apiClient.callApi('/v1/memories/{id}/content', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
326
327
|
}
|
|
327
328
|
|
|
@@ -329,7 +330,7 @@ var MemoriesApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
329
330
|
* Download memory content
|
|
330
331
|
* 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
332
|
* @param {String} id The unique identifier of the memory to download
|
|
332
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
333
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link File}
|
|
333
334
|
*/
|
|
334
335
|
}, {
|
|
335
336
|
key: "getMemoryContent",
|
|
@@ -339,17 +340,77 @@ var MemoriesApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
339
340
|
});
|
|
340
341
|
}
|
|
341
342
|
|
|
343
|
+
/**
|
|
344
|
+
* Download memory page image content
|
|
345
|
+
* Downloads inline bytes for one page image. The page index is required. The optional dpi and content type query parameters act as rendition filters; if omitted, the server returns the unique rendition for that page or rejects ambiguous matches.
|
|
346
|
+
* @param {String} id Memory UUID
|
|
347
|
+
* @param {Number} pageIndex 0-based page index
|
|
348
|
+
* @param {Object} opts Optional parameters
|
|
349
|
+
* @param {Number} [dpi] Optional rendition filter. If omitted, the unique page-image rendition for the page is returned; if multiple renditions exist, specify dpi and/or contentType.
|
|
350
|
+
* @param {String} [contentType] Optional rendition filter. MIME type of the desired page image, such as image/png. The snake_case alias content_type is also accepted.
|
|
351
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link File} and HTTP response
|
|
352
|
+
*/
|
|
353
|
+
}, {
|
|
354
|
+
key: "getMemoryPageImageContentWithHttpInfo",
|
|
355
|
+
value: function getMemoryPageImageContentWithHttpInfo(id, pageIndex, opts) {
|
|
356
|
+
opts = opts || {};
|
|
357
|
+
var postBody = null;
|
|
358
|
+
// verify the required parameter 'id' is set
|
|
359
|
+
if (id === undefined || id === null) {
|
|
360
|
+
throw new Error("Missing the required parameter 'id' when calling getMemoryPageImageContent");
|
|
361
|
+
}
|
|
362
|
+
// verify the required parameter 'pageIndex' is set
|
|
363
|
+
if (pageIndex === undefined || pageIndex === null) {
|
|
364
|
+
throw new Error("Missing the required parameter 'pageIndex' when calling getMemoryPageImageContent");
|
|
365
|
+
}
|
|
366
|
+
var pathParams = {
|
|
367
|
+
'id': id,
|
|
368
|
+
'pageIndex': pageIndex
|
|
369
|
+
};
|
|
370
|
+
var queryParams = {
|
|
371
|
+
'dpi': opts['dpi'],
|
|
372
|
+
'contentType': opts['contentType']
|
|
373
|
+
};
|
|
374
|
+
var headerParams = {};
|
|
375
|
+
var formParams = {};
|
|
376
|
+
var authNames = [];
|
|
377
|
+
var contentTypes = [];
|
|
378
|
+
var accepts = ['application/octet-stream'];
|
|
379
|
+
var returnType = File;
|
|
380
|
+
return this.apiClient.callApi('/v1/memories/{id}/pages/{pageIndex}/image', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* Download memory page image content
|
|
385
|
+
* Downloads inline bytes for one page image. The page index is required. The optional dpi and content type query parameters act as rendition filters; if omitted, the server returns the unique rendition for that page or rejects ambiguous matches.
|
|
386
|
+
* @param {String} id Memory UUID
|
|
387
|
+
* @param {Number} pageIndex 0-based page index
|
|
388
|
+
* @param {Object} opts Optional parameters
|
|
389
|
+
* @param {Number} opts.dpi Optional rendition filter. If omitted, the unique page-image rendition for the page is returned; if multiple renditions exist, specify dpi and/or contentType.
|
|
390
|
+
* @param {String} opts.contentType Optional rendition filter. MIME type of the desired page image, such as image/png. The snake_case alias content_type is also accepted.
|
|
391
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link File}
|
|
392
|
+
*/
|
|
393
|
+
}, {
|
|
394
|
+
key: "getMemoryPageImageContent",
|
|
395
|
+
value: function getMemoryPageImageContent(id, pageIndex, opts) {
|
|
396
|
+
return this.getMemoryPageImageContentWithHttpInfo(id, pageIndex, opts).then(function (response_and_data) {
|
|
397
|
+
return response_and_data.data;
|
|
398
|
+
});
|
|
399
|
+
}
|
|
400
|
+
|
|
342
401
|
/**
|
|
343
402
|
* List memories in a space
|
|
344
403
|
* Lists all memories within a given space. Pagination is supported via maxResults and nextToken (opaque). nextToken is a URL-safe Base64 string without padding; do not parse or construct it. 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.
|
|
345
404
|
* @param {String} spaceId The unique identifier of the space containing the memories
|
|
346
405
|
* @param {Object} opts Optional parameters
|
|
347
|
-
* @param {Boolean} [includeContent] Whether to include the original content in the response (defaults to false)
|
|
348
|
-
* @param {
|
|
349
|
-
* @param {
|
|
350
|
-
* @param {String} [
|
|
351
|
-
* @param {
|
|
352
|
-
* @param {String} [
|
|
406
|
+
* @param {Boolean} [includeContent = false)] Whether to include the original content in the response (defaults to false). The snake_case alias include_content is also accepted.
|
|
407
|
+
* @param {Boolean} [includeProcessingHistory = false)] Whether to include background job processing history in the response (defaults to false). The snake_case alias include_processing_history is also accepted.
|
|
408
|
+
* @param {module:model/String} [statusFilter] Filter memories by processing status (PENDING, PROCESSING, COMPLETED, FAILED). The snake_case alias status_filter is also accepted.
|
|
409
|
+
* @param {String} [filter] Optional metadata filter expression for list results
|
|
410
|
+
* @param {Number} [maxResults = 50)] Maximum number of results per page (defaults to 50, clamped to [1, 500]). The snake_case alias max_results is also accepted.
|
|
411
|
+
* @param {String} [nextToken] Opaque pagination token for the next page. URL-safe Base64 without padding; do not parse or construct it. The snake_case alias next_token is also accepted.
|
|
412
|
+
* @param {String} [sortBy] Field to sort by (e.g., 'created_at'). The snake_case alias sort_by is also accepted.
|
|
413
|
+
* @param {String} [sortOrder] Sort direction (ASCENDING or DESCENDING). The snake_case alias sort_order is also accepted.
|
|
353
414
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/MemoryListResponse} and HTTP response
|
|
354
415
|
*/
|
|
355
416
|
}, {
|
|
@@ -366,7 +427,9 @@ var MemoriesApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
366
427
|
};
|
|
367
428
|
var queryParams = {
|
|
368
429
|
'includeContent': opts['includeContent'],
|
|
430
|
+
'includeProcessingHistory': opts['includeProcessingHistory'],
|
|
369
431
|
'statusFilter': opts['statusFilter'],
|
|
432
|
+
'filter': opts['filter'],
|
|
370
433
|
'maxResults': opts['maxResults'],
|
|
371
434
|
'nextToken': opts['nextToken'],
|
|
372
435
|
'sortBy': opts['sortBy'],
|
|
@@ -386,12 +449,14 @@ var MemoriesApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
386
449
|
* Lists all memories within a given space. Pagination is supported via maxResults and nextToken (opaque). nextToken is a URL-safe Base64 string without padding; do not parse or construct it. 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.
|
|
387
450
|
* @param {String} spaceId The unique identifier of the space containing the memories
|
|
388
451
|
* @param {Object} opts Optional parameters
|
|
389
|
-
* @param {Boolean} opts.includeContent Whether to include the original content in the response (defaults to false)
|
|
390
|
-
* @param {
|
|
391
|
-
* @param {
|
|
392
|
-
* @param {String} opts.
|
|
393
|
-
* @param {
|
|
394
|
-
* @param {String} opts.
|
|
452
|
+
* @param {Boolean} opts.includeContent Whether to include the original content in the response (defaults to false). The snake_case alias include_content is also accepted. (default to false)
|
|
453
|
+
* @param {Boolean} opts.includeProcessingHistory Whether to include background job processing history in the response (defaults to false). The snake_case alias include_processing_history is also accepted. (default to false)
|
|
454
|
+
* @param {module:model/String} opts.statusFilter Filter memories by processing status (PENDING, PROCESSING, COMPLETED, FAILED). The snake_case alias status_filter is also accepted.
|
|
455
|
+
* @param {String} opts.filter Optional metadata filter expression for list results
|
|
456
|
+
* @param {Number} opts.maxResults Maximum number of results per page (defaults to 50, clamped to [1, 500]). The snake_case alias max_results is also accepted. (default to 50)
|
|
457
|
+
* @param {String} opts.nextToken Opaque pagination token for the next page. URL-safe Base64 without padding; do not parse or construct it. The snake_case alias next_token is also accepted.
|
|
458
|
+
* @param {String} opts.sortBy Field to sort by (e.g., 'created_at'). The snake_case alias sort_by is also accepted.
|
|
459
|
+
* @param {String} opts.sortOrder Sort direction (ASCENDING or DESCENDING). The snake_case alias sort_order is also accepted.
|
|
395
460
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/MemoryListResponse}
|
|
396
461
|
*/
|
|
397
462
|
}, {
|
|
@@ -402,23 +467,86 @@ var MemoriesApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
402
467
|
});
|
|
403
468
|
}
|
|
404
469
|
|
|
470
|
+
/**
|
|
471
|
+
* List memory page images
|
|
472
|
+
* Lists extracted page-image metadata for a memory with optional filters and pagination.
|
|
473
|
+
* @param {String} id Memory UUID
|
|
474
|
+
* @param {Object} opts Optional parameters
|
|
475
|
+
* @param {Number} [startPageIndex] Optional lower bound for returned page indices, inclusive. The snake_case alias start_page_index is also accepted.
|
|
476
|
+
* @param {Number} [endPageIndex] Optional upper bound for returned page indices, inclusive. The snake_case alias end_page_index is also accepted.
|
|
477
|
+
* @param {Number} [dpi] Optional rendition filter for page-image DPI.
|
|
478
|
+
* @param {String} [contentType] Optional rendition filter for page-image MIME type, such as image/png. The snake_case alias content_type is also accepted.
|
|
479
|
+
* @param {Number} [maxResults] Maximum number of results per page. The snake_case alias max_results is also accepted.
|
|
480
|
+
* @param {String} [nextToken] Opaque pagination token for the next page. The snake_case alias next_token is also accepted. Do not parse or construct it.
|
|
481
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListMemoryPageImagesResponse} and HTTP response
|
|
482
|
+
*/
|
|
483
|
+
}, {
|
|
484
|
+
key: "listMemoryPageImagesWithHttpInfo",
|
|
485
|
+
value: function listMemoryPageImagesWithHttpInfo(id, opts) {
|
|
486
|
+
opts = opts || {};
|
|
487
|
+
var postBody = null;
|
|
488
|
+
// verify the required parameter 'id' is set
|
|
489
|
+
if (id === undefined || id === null) {
|
|
490
|
+
throw new Error("Missing the required parameter 'id' when calling listMemoryPageImages");
|
|
491
|
+
}
|
|
492
|
+
var pathParams = {
|
|
493
|
+
'id': id
|
|
494
|
+
};
|
|
495
|
+
var queryParams = {
|
|
496
|
+
'startPageIndex': opts['startPageIndex'],
|
|
497
|
+
'endPageIndex': opts['endPageIndex'],
|
|
498
|
+
'dpi': opts['dpi'],
|
|
499
|
+
'contentType': opts['contentType'],
|
|
500
|
+
'maxResults': opts['maxResults'],
|
|
501
|
+
'nextToken': opts['nextToken']
|
|
502
|
+
};
|
|
503
|
+
var headerParams = {};
|
|
504
|
+
var formParams = {};
|
|
505
|
+
var authNames = [];
|
|
506
|
+
var contentTypes = [];
|
|
507
|
+
var accepts = ['application/json'];
|
|
508
|
+
var returnType = _ListMemoryPageImagesResponse["default"];
|
|
509
|
+
return this.apiClient.callApi('/v1/memories/{id}/pages', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
/**
|
|
513
|
+
* List memory page images
|
|
514
|
+
* Lists extracted page-image metadata for a memory with optional filters and pagination.
|
|
515
|
+
* @param {String} id Memory UUID
|
|
516
|
+
* @param {Object} opts Optional parameters
|
|
517
|
+
* @param {Number} opts.startPageIndex Optional lower bound for returned page indices, inclusive. The snake_case alias start_page_index is also accepted.
|
|
518
|
+
* @param {Number} opts.endPageIndex Optional upper bound for returned page indices, inclusive. The snake_case alias end_page_index is also accepted.
|
|
519
|
+
* @param {Number} opts.dpi Optional rendition filter for page-image DPI.
|
|
520
|
+
* @param {String} opts.contentType Optional rendition filter for page-image MIME type, such as image/png. The snake_case alias content_type is also accepted.
|
|
521
|
+
* @param {Number} opts.maxResults Maximum number of results per page. The snake_case alias max_results is also accepted.
|
|
522
|
+
* @param {String} opts.nextToken Opaque pagination token for the next page. The snake_case alias next_token is also accepted. Do not parse or construct it.
|
|
523
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListMemoryPageImagesResponse}
|
|
524
|
+
*/
|
|
525
|
+
}, {
|
|
526
|
+
key: "listMemoryPageImages",
|
|
527
|
+
value: function listMemoryPageImages(id, opts) {
|
|
528
|
+
return this.listMemoryPageImagesWithHttpInfo(id, opts).then(function (response_and_data) {
|
|
529
|
+
return response_and_data.data;
|
|
530
|
+
});
|
|
531
|
+
}
|
|
532
|
+
|
|
405
533
|
/**
|
|
406
534
|
* Stream semantic memory retrieval
|
|
407
|
-
* Streams semantic retrieval results based on query and context. Supports SSE (text/event-stream) and NDJSON (application/x-ndjson) formats.
|
|
535
|
+
* Streams semantic retrieval results based on query and context. Supports SSE (text/event-stream) and NDJSON (application/x-ndjson) formats. Advanced HNSW tuning options are available on POST /v1/memories:retrieve only.
|
|
408
536
|
* @param {String} message Primary query/message for semantic search
|
|
409
537
|
* @param {Object} opts Optional parameters
|
|
410
538
|
* @param {String} [accept] Response format: 'text/event-stream' for Server-Sent Events or 'application/x-ndjson' for newline-delimited JSON
|
|
411
|
-
* @param {String} [spaceIds] Comma-separated list of space UUIDs to search within
|
|
539
|
+
* @param {String} [spaceIds] Comma-separated list of space UUIDs to search within. The snake_case alias space_ids is also accepted.
|
|
412
540
|
* @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.
|
|
413
|
-
* @param {Number} [requestedSize] Maximum number of memories to retrieve
|
|
414
|
-
* @param {Boolean} [fetchMemory] Whether to
|
|
415
|
-
* @param {Boolean} [fetchMemoryContent] Whether
|
|
416
|
-
* @param {String} [postProcessorRerankerId] UUID of reranker to use for ChatPostProcessor (enables post-processing).
|
|
417
|
-
* @param {String} [postProcessorLlmId] UUID of LLM to use for ChatPostProcessor generation.
|
|
418
|
-
* @param {Number} [postProcessorRelevanceThreshold] Minimum relevance score for ChatPostProcessor
|
|
419
|
-
* @param {Number} [postProcessorLlmTemp] LLM temperature for ChatPostProcessor generation (default: 0.3).
|
|
420
|
-
* @param {Number} [postProcessorMaxResults] Maximum results for ChatPostProcessor
|
|
421
|
-
* @param {Boolean} [postProcessorChronologicalResort] Whether ChatPostProcessor should resort by creation time (default: true).
|
|
541
|
+
* @param {Number} [requestedSize] Maximum number of memories to retrieve. The snake_case alias requested_size is also accepted.
|
|
542
|
+
* @param {Boolean} [fetchMemory = true)] Whether to stream memory-definition records (defaults to true). These omit originalContent unless fetchMemoryContent=true. The snake_case alias fetch_memory is also accepted.
|
|
543
|
+
* @param {Boolean} [fetchMemoryContent = false)] Whether streamed memory-definition records include originalContent bytes (defaults to false). Requires fetchMemory=true. The snake_case alias fetch_memory_content is also accepted.
|
|
544
|
+
* @param {String} [postProcessorRerankerId] UUID of reranker to use for ChatPostProcessor (enables post-processing). Accepted aliases: ppRerankerId, pp_reranker_id.
|
|
545
|
+
* @param {String} [postProcessorLlmId] UUID of LLM to use for ChatPostProcessor generation. Accepted aliases: ppLlmId, pp_llm_id.
|
|
546
|
+
* @param {Number} [postProcessorRelevanceThreshold] Minimum relevance score for ChatPostProcessor. If omitted, no relevance threshold is applied. Accepted aliases: ppRelevanceThreshold, pp_relevance_threshold.
|
|
547
|
+
* @param {Number} [postProcessorLlmTemp = 0.3)] LLM temperature for ChatPostProcessor generation (default: 0.3). Accepted aliases: ppLlmTemp, pp_llm_temp.
|
|
548
|
+
* @param {Number} [postProcessorMaxResults] Maximum results for ChatPostProcessor. If omitted, the processor uses requestedSize when that value is positive; otherwise it falls back to 10. Accepted aliases: ppMaxResults, pp_max_results.
|
|
549
|
+
* @param {Boolean} [postProcessorChronologicalResort = true)] Whether ChatPostProcessor should resort by creation time (default: true). Accepted aliases: ppChronologicalResort, pp_chronological_resort.
|
|
422
550
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RetrieveMemoryEvent} and HTTP response
|
|
423
551
|
*/
|
|
424
552
|
}, {
|
|
@@ -458,21 +586,21 @@ var MemoriesApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
458
586
|
|
|
459
587
|
/**
|
|
460
588
|
* Stream semantic memory retrieval
|
|
461
|
-
* Streams semantic retrieval results based on query and context. Supports SSE (text/event-stream) and NDJSON (application/x-ndjson) formats.
|
|
589
|
+
* Streams semantic retrieval results based on query and context. Supports SSE (text/event-stream) and NDJSON (application/x-ndjson) formats. Advanced HNSW tuning options are available on POST /v1/memories:retrieve only.
|
|
462
590
|
* @param {String} message Primary query/message for semantic search
|
|
463
591
|
* @param {Object} opts Optional parameters
|
|
464
592
|
* @param {String} opts.accept Response format: 'text/event-stream' for Server-Sent Events or 'application/x-ndjson' for newline-delimited JSON
|
|
465
|
-
* @param {String} opts.spaceIds Comma-separated list of space UUIDs to search within
|
|
593
|
+
* @param {String} opts.spaceIds Comma-separated list of space UUIDs to search within. The snake_case alias space_ids is also accepted.
|
|
466
594
|
* @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.
|
|
467
|
-
* @param {Number} opts.requestedSize Maximum number of memories to retrieve
|
|
468
|
-
* @param {Boolean} opts.fetchMemory Whether to
|
|
469
|
-
* @param {Boolean} opts.fetchMemoryContent Whether
|
|
470
|
-
* @param {String} opts.postProcessorRerankerId UUID of reranker to use for ChatPostProcessor (enables post-processing).
|
|
471
|
-
* @param {String} opts.postProcessorLlmId UUID of LLM to use for ChatPostProcessor generation.
|
|
472
|
-
* @param {Number} opts.postProcessorRelevanceThreshold Minimum relevance score for ChatPostProcessor
|
|
473
|
-
* @param {Number} opts.postProcessorLlmTemp LLM temperature for ChatPostProcessor generation (default: 0.3).
|
|
474
|
-
* @param {Number} opts.postProcessorMaxResults Maximum results for ChatPostProcessor
|
|
475
|
-
* @param {Boolean} opts.postProcessorChronologicalResort Whether ChatPostProcessor should resort by creation time (default: true).
|
|
595
|
+
* @param {Number} opts.requestedSize Maximum number of memories to retrieve. The snake_case alias requested_size is also accepted.
|
|
596
|
+
* @param {Boolean} opts.fetchMemory Whether to stream memory-definition records (defaults to true). These omit originalContent unless fetchMemoryContent=true. The snake_case alias fetch_memory is also accepted. (default to true)
|
|
597
|
+
* @param {Boolean} opts.fetchMemoryContent Whether streamed memory-definition records include originalContent bytes (defaults to false). Requires fetchMemory=true. The snake_case alias fetch_memory_content is also accepted. (default to false)
|
|
598
|
+
* @param {String} opts.postProcessorRerankerId UUID of reranker to use for ChatPostProcessor (enables post-processing). Accepted aliases: ppRerankerId, pp_reranker_id.
|
|
599
|
+
* @param {String} opts.postProcessorLlmId UUID of LLM to use for ChatPostProcessor generation. Accepted aliases: ppLlmId, pp_llm_id.
|
|
600
|
+
* @param {Number} opts.postProcessorRelevanceThreshold Minimum relevance score for ChatPostProcessor. If omitted, no relevance threshold is applied. Accepted aliases: ppRelevanceThreshold, pp_relevance_threshold.
|
|
601
|
+
* @param {Number} opts.postProcessorLlmTemp LLM temperature for ChatPostProcessor generation (default: 0.3). Accepted aliases: ppLlmTemp, pp_llm_temp. (default to 0.3)
|
|
602
|
+
* @param {Number} opts.postProcessorMaxResults Maximum results for ChatPostProcessor. If omitted, the processor uses requestedSize when that value is positive; otherwise it falls back to 10. Accepted aliases: ppMaxResults, pp_max_results.
|
|
603
|
+
* @param {Boolean} opts.postProcessorChronologicalResort Whether ChatPostProcessor should resort by creation time (default: true). Accepted aliases: ppChronologicalResort, pp_chronological_resort. (default to true)
|
|
476
604
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RetrieveMemoryEvent}
|
|
477
605
|
*/
|
|
478
606
|
}, {
|
|
@@ -485,7 +613,7 @@ var MemoriesApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
485
613
|
|
|
486
614
|
/**
|
|
487
615
|
* Advanced semantic memory retrieval with JSON
|
|
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.
|
|
616
|
+
* Streams semantic retrieval results with full feature support including context items and embedder weight overrides, per-space filters, and request-level HNSW tuning. Supports SSE (text/event-stream) and NDJSON (application/x-ndjson) formats.
|
|
489
617
|
* @param {module:model/RetrieveMemoryRequest} retrieveMemoryRequest Request body with query, context, and space configurations
|
|
490
618
|
* @param {Object} opts Optional parameters
|
|
491
619
|
* @param {String} [accept] Response format: 'text/event-stream' for Server-Sent Events or 'application/x-ndjson' for newline-delimited JSON
|
|
@@ -515,7 +643,7 @@ var MemoriesApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
515
643
|
|
|
516
644
|
/**
|
|
517
645
|
* Advanced semantic memory retrieval with JSON
|
|
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.
|
|
646
|
+
* Streams semantic retrieval results with full feature support including context items and embedder weight overrides, per-space filters, and request-level HNSW tuning. Supports SSE (text/event-stream) and NDJSON (application/x-ndjson) formats.
|
|
519
647
|
* @param {module:model/RetrieveMemoryRequest} retrieveMemoryRequest Request body with query, context, and space configurations
|
|
520
648
|
* @param {Object} opts Optional parameters
|
|
521
649
|
* @param {String} opts.accept Response format: 'text/event-stream' for Server-Sent Events or 'application/x-ndjson' for newline-delimited JSON
|
package/dist/api/RerankersApi.js
CHANGED
|
@@ -6,11 +6,21 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
8
|
var _ListRerankersResponse = _interopRequireDefault(require("../model/ListRerankersResponse"));
|
|
9
|
+
var _ProviderType = _interopRequireDefault(require("../model/ProviderType"));
|
|
9
10
|
var _RerankerCreationRequest = _interopRequireDefault(require("../model/RerankerCreationRequest"));
|
|
10
11
|
var _RerankerResponse = _interopRequireDefault(require("../model/RerankerResponse"));
|
|
11
12
|
var _UpdateRerankerRequest = _interopRequireDefault(require("../model/UpdateRerankerRequest"));
|
|
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; }
|
|
@@ -168,11 +178,11 @@ var RerankersApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
168
178
|
|
|
169
179
|
/**
|
|
170
180
|
* List rerankers
|
|
171
|
-
* Retrieves a list of reranker configurations accessible to the caller, with optional filtering. IMPORTANT: Pagination is NOT supported - all matching results are returned. Results are ordered by created_at descending. Responses include stored credentials, matching gRPC response semantics. PERMISSION-BASED FILTERING: With LIST_RERANKER_OWN permission, only your own rerankers are shown. With LIST_RERANKER_ANY permission, you can see all rerankers or filter by any ownerId. Specifying ownerId without LIST_RERANKER_ANY permission returns PERMISSION_DENIED.
|
|
181
|
+
* Retrieves a list of reranker configurations accessible to the caller, with optional filtering. IMPORTANT: Pagination is NOT supported - all matching results are returned. Results are ordered by created_at descending. Responses include stored credentials, matching gRPC response semantics. 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_RERANKER_OWN permission, only your own rerankers are shown. With LIST_RERANKER_ANY permission, you can see all rerankers or filter by any ownerId. Specifying ownerId without LIST_RERANKER_ANY permission returns PERMISSION_DENIED.
|
|
172
182
|
* @param {Object} opts Optional parameters
|
|
173
183
|
* @param {String} [ownerId] Filter rerankers by owner ID. With LIST_RERANKER_ANY permission, omitting this shows all accessible rerankers; providing it filters by that owner. With LIST_RERANKER_OWN permission, only your own rerankers are shown regardless of this parameter (PERMISSION_DENIED if set to another user).
|
|
174
|
-
* @param {
|
|
175
|
-
* @param {String} [label] Filter by label value.
|
|
184
|
+
* @param {module:model/ProviderType} [providerType] Filter rerankers 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/ListRerankersResponse} and HTTP response
|
|
177
187
|
*/
|
|
178
188
|
}, {
|
|
@@ -181,11 +191,16 @@ var RerankersApi = 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 RerankersApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
197
212
|
|
|
198
213
|
/**
|
|
199
214
|
* List rerankers
|
|
200
|
-
* Retrieves a list of reranker configurations accessible to the caller, with optional filtering. IMPORTANT: Pagination is NOT supported - all matching results are returned. Results are ordered by created_at descending. Responses include stored credentials, matching gRPC response semantics. PERMISSION-BASED FILTERING: With LIST_RERANKER_OWN permission, only your own rerankers are shown. With LIST_RERANKER_ANY permission, you can see all rerankers or filter by any ownerId. Specifying ownerId without LIST_RERANKER_ANY permission returns PERMISSION_DENIED.
|
|
215
|
+
* Retrieves a list of reranker configurations accessible to the caller, with optional filtering. IMPORTANT: Pagination is NOT supported - all matching results are returned. Results are ordered by created_at descending. Responses include stored credentials, matching gRPC response semantics. 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_RERANKER_OWN permission, only your own rerankers are shown. With LIST_RERANKER_ANY permission, you can see all rerankers or filter by any ownerId. Specifying ownerId without LIST_RERANKER_ANY permission returns PERMISSION_DENIED.
|
|
201
216
|
* @param {Object} opts Optional parameters
|
|
202
217
|
* @param {String} opts.ownerId Filter rerankers by owner ID. With LIST_RERANKER_ANY permission, omitting this shows all accessible rerankers; providing it filters by that owner. With LIST_RERANKER_OWN permission, only your own rerankers are shown regardless of this parameter (PERMISSION_DENIED if set to another user).
|
|
203
|
-
* @param {
|
|
204
|
-
* @param {String} opts.label Filter by label value.
|
|
218
|
+
* @param {module:model/ProviderType} opts.providerType Filter rerankers 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/ListRerankersResponse}
|
|
206
221
|
*/
|
|
207
222
|
}, {
|