@pairsystems/goodmem-client 1.0.10 → 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.
Files changed (84) hide show
  1. package/README.md +24 -4
  2. package/dist/api/EmbeddersApi.js +25 -10
  3. package/dist/api/LLMsApi.js +25 -10
  4. package/dist/api/MemoriesApi.js +186 -61
  5. package/dist/api/RerankersApi.js +25 -10
  6. package/dist/api/SpacesApi.js +31 -16
  7. package/dist/index.js +133 -7
  8. package/dist/model/ActiveLicenseMetadata.js +5 -1
  9. package/dist/model/AdminDrainRequest.js +3 -0
  10. package/dist/model/AdminDrainResponse.js +33 -2
  11. package/dist/model/AdminPurgeJobsRequest.js +4 -0
  12. package/dist/model/AdminPurgeJobsResponse.js +8 -4
  13. package/dist/model/AdminReloadLicenseResponse.js +4 -1
  14. package/dist/model/ApiKeyAuth.js +7 -3
  15. package/dist/model/ApiKeyResponse.js +67 -5
  16. package/dist/model/BackgroundJobSummary.js +35 -2
  17. package/dist/model/BatchDeleteMemorySelectorRequest.js +2 -1
  18. package/dist/model/BatchMemoryResult.js +4 -2
  19. package/dist/model/ChunkReference.js +3 -2
  20. package/dist/model/ChunkingConfiguration.js +109 -47
  21. package/dist/model/ChunkingConfigurationOneOf.js +109 -0
  22. package/dist/model/ChunkingConfigurationOneOf1.js +109 -0
  23. package/dist/model/ChunkingConfigurationOneOf2.js +109 -0
  24. package/dist/model/ContextItem.js +91 -73
  25. package/dist/model/ContextItemOneOf.js +109 -0
  26. package/dist/model/ContextItemOneOf1.js +109 -0
  27. package/dist/model/CreateApiKeyResponse.js +2 -1
  28. package/dist/model/CreateLLMResponse.js +3 -2
  29. package/dist/model/EmbedderCreationRequest.js +8 -5
  30. package/dist/model/EmbedderResponse.js +16 -11
  31. package/dist/model/EndpointAuthentication.js +7 -4
  32. package/dist/model/HnswOptions.js +2 -1
  33. package/dist/model/JsonBatchMemoryCreationRequest.js +132 -0
  34. package/dist/model/JsonMemoryCreationContentRequirement.js +151 -0
  35. package/dist/model/JsonMemoryCreationContentRequirementOneOf.js +109 -0
  36. package/dist/model/JsonMemoryCreationContentRequirementOneOf1.js +109 -0
  37. package/dist/model/JsonMemoryCreationRequest.js +289 -0
  38. package/dist/model/LLMCreationRequest.js +12 -6
  39. package/dist/model/LLMResponse.js +18 -12
  40. package/dist/model/LLMUpdateRequest.js +6 -3
  41. package/dist/model/LLMUpdateRequestNot.js +118 -0
  42. package/dist/model/ListApiKeysResponse.js +29 -9
  43. package/dist/model/ListMemoryPageImagesResponse.js +145 -0
  44. package/dist/model/ListSpacesResponse.js +29 -9
  45. package/dist/model/Memory.js +106 -10
  46. package/dist/model/MemoryChunkResponse.js +30 -2
  47. package/dist/model/MemoryCreationRequest.js +15 -3
  48. package/dist/model/MemoryPageImage.js +225 -0
  49. package/dist/model/OcrCell.js +5 -3
  50. package/dist/model/OcrDocumentRequest.js +2 -1
  51. package/dist/model/OcrDocumentResponse.js +6 -4
  52. package/dist/model/OcrPage.js +9 -6
  53. package/dist/model/OcrPageResult.js +4 -2
  54. package/dist/model/PingEndpointInfo.js +3 -2
  55. package/dist/model/PingEvent.js +108 -50
  56. package/dist/model/PingEventOneOf.js +109 -0
  57. package/dist/model/PingEventOneOf1.js +109 -0
  58. package/dist/model/PingEventOneOf2.js +109 -0
  59. package/dist/model/PingOnceRequest.js +4 -2
  60. package/dist/model/PingResult.js +6 -4
  61. package/dist/model/PingStreamRequest.js +7 -3
  62. package/dist/model/PingSummary.js +3 -2
  63. package/dist/model/ProcessingHistory.js +2 -1
  64. package/dist/model/RecursiveChunkingConfiguration.js +6 -4
  65. package/dist/model/RerankerCreationRequest.js +5 -3
  66. package/dist/model/RerankerResponse.js +13 -9
  67. package/dist/model/ResultSetBoundary.js +20 -2
  68. package/dist/model/RetrieveMemoryEvent.js +10 -5
  69. package/dist/model/RetrieveMemoryRequest.js +12 -6
  70. package/dist/model/RetrievedItem.js +91 -42
  71. package/dist/model/RetrievedItemOneOf.js +109 -0
  72. package/dist/model/RetrievedItemOneOf1.js +109 -0
  73. package/dist/model/SecretReference.js +27 -4
  74. package/dist/model/SentenceChunkingConfiguration.js +3 -2
  75. package/dist/model/SortOrder.js +63 -0
  76. package/dist/model/Space.js +8 -5
  77. package/dist/model/SpaceCreationRequest.js +13 -8
  78. package/dist/model/SpaceEmbedderConfig.js +3 -1
  79. package/dist/model/SystemInfoResponse.js +13 -4
  80. package/dist/model/UpdateApiKeyRequest.js +19 -9
  81. package/dist/model/UpdateEmbedderRequest.js +2 -9
  82. package/dist/model/UpdateRerankerRequest.js +2 -9
  83. package/dist/model/UpdateSpaceRequest.js +0 -22
  84. package/package.json +1 -1
@@ -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/BatchMemoryCreationRequest} batchMemoryCreationRequest Batch memory creation details. Accepts application/json or multipart/form-data with a requests part and one file part per request.
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(batchMemoryCreationRequest) {
62
- var postBody = batchMemoryCreationRequest;
63
- // verify the required parameter 'batchMemoryCreationRequest' is set
64
- if (batchMemoryCreationRequest === undefined || batchMemoryCreationRequest === null) {
65
- throw new Error("Missing the required parameter 'batchMemoryCreationRequest' when calling batchCreateMemory");
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,13 +79,13 @@ 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/BatchMemoryCreationRequest} batchMemoryCreationRequest Batch memory creation details. Accepts application/json or multipart/form-data with a requests part and one file part per request.
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(batchMemoryCreationRequest) {
87
- return this.batchCreateMemoryWithHttpInfo(batchMemoryCreationRequest).then(function (response_and_data) {
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
  }
@@ -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. IMPORTANT: This operation is NOT idempotent - each request creates a new memory record. 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, generating a unique UUID, and enqueuing a background processing job.
173
- * @param {module:model/MemoryCreationRequest} memoryCreationRequest Memory creation details. Accepts application/json or multipart/form-data with a JSON request part and a file part.
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(memoryCreationRequest) {
179
- var postBody = memoryCreationRequest;
180
- // verify the required parameter 'memoryCreationRequest' is set
181
- if (memoryCreationRequest === undefined || memoryCreationRequest === null) {
182
- throw new Error("Missing the required parameter 'memoryCreationRequest' when calling createMemory");
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. IMPORTANT: This operation is NOT idempotent - each request creates a new memory record. 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, generating a unique UUID, and enqueuing a background processing job.
198
- * @param {module:model/MemoryCreationRequest} memoryCreationRequest Memory creation details. Accepts application/json or multipart/form-data with a JSON request part and a file part.
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(memoryCreationRequest) {
204
- return this.createMemoryWithHttpInfo(memoryCreationRequest).then(function (response_and_data) {
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 = null;
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,18 +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 {String} [statusFilter] Filter memories by processing status (PENDING, PROCESSING, COMPLETED, FAILED)
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.
349
409
  * @param {String} [filter] Optional metadata filter expression for list results
350
- * @param {Number} [maxResults] Maximum number of results per page (defaults to 50, clamped to [1, 500]).
351
- * @param {String} [nextToken] Opaque pagination token for the next page. URL-safe Base64 without padding; do not parse or construct it.
352
- * @param {String} [sortBy] Field to sort by (e.g., 'created_at')
353
- * @param {String} [sortOrder] Sort direction (ASCENDING or DESCENDING)
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.
354
414
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/MemoryListResponse} and HTTP response
355
415
  */
356
416
  }, {
@@ -367,6 +427,7 @@ var MemoriesApi = exports["default"] = /*#__PURE__*/function () {
367
427
  };
368
428
  var queryParams = {
369
429
  'includeContent': opts['includeContent'],
430
+ 'includeProcessingHistory': opts['includeProcessingHistory'],
370
431
  'statusFilter': opts['statusFilter'],
371
432
  'filter': opts['filter'],
372
433
  'maxResults': opts['maxResults'],
@@ -388,13 +449,14 @@ var MemoriesApi = exports["default"] = /*#__PURE__*/function () {
388
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.
389
450
  * @param {String} spaceId The unique identifier of the space containing the memories
390
451
  * @param {Object} opts Optional parameters
391
- * @param {Boolean} opts.includeContent Whether to include the original content in the response (defaults to false)
392
- * @param {String} opts.statusFilter Filter memories by processing status (PENDING, PROCESSING, COMPLETED, FAILED)
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.
393
455
  * @param {String} opts.filter Optional metadata filter expression for list results
394
- * @param {Number} opts.maxResults Maximum number of results per page (defaults to 50, clamped to [1, 500]).
395
- * @param {String} opts.nextToken Opaque pagination token for the next page. URL-safe Base64 without padding; do not parse or construct it.
396
- * @param {String} opts.sortBy Field to sort by (e.g., 'created_at')
397
- * @param {String} opts.sortOrder Sort direction (ASCENDING or DESCENDING)
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.
398
460
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/MemoryListResponse}
399
461
  */
400
462
  }, {
@@ -405,23 +467,86 @@ var MemoriesApi = exports["default"] = /*#__PURE__*/function () {
405
467
  });
406
468
  }
407
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
+
408
533
  /**
409
534
  * Stream semantic memory retrieval
410
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.
411
536
  * @param {String} message Primary query/message for semantic search
412
537
  * @param {Object} opts Optional parameters
413
538
  * @param {String} [accept] Response format: 'text/event-stream' for Server-Sent Events or 'application/x-ndjson' for newline-delimited JSON
414
- * @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.
415
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.
416
- * @param {Number} [requestedSize] Maximum number of memories to retrieve
417
- * @param {Boolean} [fetchMemory] Whether to fetch memory definitions (defaults to true)
418
- * @param {Boolean} [fetchMemoryContent] Whether to fetch original content for memories (defaults to false)
419
- * @param {String} [postProcessorRerankerId] UUID of reranker to use for ChatPostProcessor (enables post-processing). Legacy alias: pp_reranker_id.
420
- * @param {String} [postProcessorLlmId] UUID of LLM to use for ChatPostProcessor generation. Legacy alias: pp_llm_id.
421
- * @param {Number} [postProcessorRelevanceThreshold] Minimum relevance score for ChatPostProcessor (default: 0.5). Legacy alias: pp_relevance_threshold.
422
- * @param {Number} [postProcessorLlmTemp] LLM temperature for ChatPostProcessor generation (default: 0.3). Legacy alias: pp_llm_temp.
423
- * @param {Number} [postProcessorMaxResults] Maximum results for ChatPostProcessor (default: 10). Legacy alias: pp_max_results.
424
- * @param {Boolean} [postProcessorChronologicalResort] Whether ChatPostProcessor should resort by creation time (default: true). Legacy alias: pp_chronological_resort.
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.
425
550
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RetrieveMemoryEvent} and HTTP response
426
551
  */
427
552
  }, {
@@ -465,17 +590,17 @@ var MemoriesApi = exports["default"] = /*#__PURE__*/function () {
465
590
  * @param {String} message Primary query/message for semantic search
466
591
  * @param {Object} opts Optional parameters
467
592
  * @param {String} opts.accept Response format: 'text/event-stream' for Server-Sent Events or 'application/x-ndjson' for newline-delimited JSON
468
- * @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.
469
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.
470
- * @param {Number} opts.requestedSize Maximum number of memories to retrieve
471
- * @param {Boolean} opts.fetchMemory Whether to fetch memory definitions (defaults to true)
472
- * @param {Boolean} opts.fetchMemoryContent Whether to fetch original content for memories (defaults to false)
473
- * @param {String} opts.postProcessorRerankerId UUID of reranker to use for ChatPostProcessor (enables post-processing). Legacy alias: pp_reranker_id.
474
- * @param {String} opts.postProcessorLlmId UUID of LLM to use for ChatPostProcessor generation. Legacy alias: pp_llm_id.
475
- * @param {Number} opts.postProcessorRelevanceThreshold Minimum relevance score for ChatPostProcessor (default: 0.5). Legacy alias: pp_relevance_threshold.
476
- * @param {Number} opts.postProcessorLlmTemp LLM temperature for ChatPostProcessor generation (default: 0.3). Legacy alias: pp_llm_temp.
477
- * @param {Number} opts.postProcessorMaxResults Maximum results for ChatPostProcessor (default: 10). Legacy alias: pp_max_results.
478
- * @param {Boolean} opts.postProcessorChronologicalResort Whether ChatPostProcessor should resort by creation time (default: true). Legacy alias: pp_chronological_resort.
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)
479
604
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RetrieveMemoryEvent}
480
605
  */
481
606
  }, {
@@ -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 {String} [providerType] Filter rerankers by provider type (e.g., OPENAI, TEI, VLLM, etc.)
175
- * @param {String} [label] Filter by label value. Multiple label filters can be specified (e.g., ?label.environment=production&label.team=search)
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
- 'label.*': opts['label']
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 {String} opts.providerType Filter rerankers by provider type (e.g., OPENAI, TEI, VLLM, etc.)
204
- * @param {String} opts.label Filter by label value. Multiple label filters can be specified (e.g., ?label.environment=production&label.team=search)
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
  }, {
@@ -6,11 +6,21 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
8
  var _ListSpacesResponse = _interopRequireDefault(require("../model/ListSpacesResponse"));
9
+ var _SortOrder = _interopRequireDefault(require("../model/SortOrder"));
9
10
  var _Space = _interopRequireDefault(require("../model/Space"));
10
11
  var _SpaceCreationRequest = _interopRequireDefault(require("../model/SpaceCreationRequest"));
11
12
  var _UpdateSpaceRequest = _interopRequireDefault(require("../model/UpdateSpaceRequest"));
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 SpacesApi = exports["default"] = /*#__PURE__*/function () {
47
57
 
48
58
  /**
49
59
  * Create a new Space
50
- * Creates a new space with the provided name, labels, and embedder configuration. A space is a container for organizing related memories. OWNER DEFAULTS: Owner defaults to authenticated user unless ownerId is provided (requires CREATE_SPACE_ANY if differs). EMBEDDER DEFAULTS: If no embedders are specified, a system-default embedder is attached. DUPLICATE DETECTION: Returns ALREADY_EXISTS if another space exists with identical {ownerId, name} (case-sensitive). Requires CREATE_SPACE_OWN permission (or CREATE_SPACE_ANY for admin users). This operation is NOT idempotent.
60
+ * Creates a new space with the provided name, labels, and embedder configuration. A space is a container for organizing related memories. OWNER DEFAULTS: Owner defaults to authenticated user unless ownerId is provided (requires CREATE_SPACE_ANY if differs). EMBEDDER REQUIREMENTS: At least one embedder configuration must be specified. DUPLICATE DETECTION: Returns ALREADY_EXISTS if another space exists with identical {ownerId, name} (case-sensitive). Requires CREATE_SPACE_OWN permission (or CREATE_SPACE_ANY for admin users). This operation is NOT idempotent.
51
61
  * @param {module:model/SpaceCreationRequest} spaceCreationRequest Space configuration details
52
62
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Space} and HTTP response
53
63
  */
@@ -72,7 +82,7 @@ var SpacesApi = exports["default"] = /*#__PURE__*/function () {
72
82
 
73
83
  /**
74
84
  * Create a new Space
75
- * Creates a new space with the provided name, labels, and embedder configuration. A space is a container for organizing related memories. OWNER DEFAULTS: Owner defaults to authenticated user unless ownerId is provided (requires CREATE_SPACE_ANY if differs). EMBEDDER DEFAULTS: If no embedders are specified, a system-default embedder is attached. DUPLICATE DETECTION: Returns ALREADY_EXISTS if another space exists with identical {ownerId, name} (case-sensitive). Requires CREATE_SPACE_OWN permission (or CREATE_SPACE_ANY for admin users). This operation is NOT idempotent.
85
+ * Creates a new space with the provided name, labels, and embedder configuration. A space is a container for organizing related memories. OWNER DEFAULTS: Owner defaults to authenticated user unless ownerId is provided (requires CREATE_SPACE_ANY if differs). EMBEDDER REQUIREMENTS: At least one embedder configuration must be specified. DUPLICATE DETECTION: Returns ALREADY_EXISTS if another space exists with identical {ownerId, name} (case-sensitive). Requires CREATE_SPACE_OWN permission (or CREATE_SPACE_ANY for admin users). This operation is NOT idempotent.
76
86
  * @param {module:model/SpaceCreationRequest} spaceCreationRequest Space configuration details
77
87
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Space}
78
88
  */
@@ -168,15 +178,15 @@ var SpacesApi = exports["default"] = /*#__PURE__*/function () {
168
178
 
169
179
  /**
170
180
  * List spaces
171
- * Retrieves a list of spaces accessible to the caller, with optional filtering by owner, labels, and name. Results are paginated with a maximum number of spaces per response. PERMISSION-BASED FILTERING: With LIST_SPACE_ANY and ownerId omitted, returns all visible spaces; otherwise returns caller-owned spaces only. DEFAULT SORT: Results ordered by created_at DESCENDING unless specified otherwise. MAX_RESULTS CLAMPING: maxResults defaults to 50 and is clamped to [1, 1000] range. Requires LIST_SPACE_OWN or LIST_SPACE_ANY permission.
181
+ * Retrieves a list of spaces accessible to the caller, with optional filtering by owner, labels, and name. Results are paginated with a maximum number of spaces per response. 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_SPACE_ANY and ownerId omitted, returns all visible spaces; otherwise returns caller-owned spaces only. DEFAULT SORT: Results ordered by created_at DESCENDING unless specified otherwise. MAX_RESULTS CLAMPING: maxResults defaults to 50 and is clamped to [1, 1000] range. Requires LIST_SPACE_OWN or LIST_SPACE_ANY permission.
172
182
  * @param {Object} opts Optional parameters
173
183
  * @param {String} [ownerId] Filter spaces by owner ID. With LIST_SPACE_ANY permission and ownerId omitted, returns all visible spaces. Otherwise returns caller-owned spaces only. Specifying ownerId without LIST_SPACE_ANY returns PERMISSION_DENIED.
174
184
  * @param {String} [nameFilter] Filter spaces by name using glob pattern matching
175
- * @param {Number} [maxResults] Maximum number of results to return in a single page (defaults to 50, clamped to [1, 1000])
185
+ * @param {Number} [maxResults = 50)] Maximum number of results to return in a single page (defaults to 50, clamped to [1, 1000])
176
186
  * @param {String} [nextToken] Pagination token for retrieving the next set of results
177
- * @param {String} [sortBy] Field to sort by: 'created_at' or 'name' (default: 'created_at'). Unsupported values return INVALID_ARGUMENT.
178
- * @param {String} [sortOrder] Sort order (ASCENDING or DESCENDING, default: DESCENDING)
179
- * @param {String} [label] Filter by label value. Multiple label filters can be specified (e.g., ?label.project=AI&label.team=NLP)
187
+ * @param {module:model/String} [sortBy = 'created_time')] Field to sort by: 'created_time', 'updated_time', or 'name' (default: 'created_time'). Unsupported values return INVALID_ARGUMENT.
188
+ * @param {module:model/SortOrder} [sortOrder] Sort order (ASCENDING or DESCENDING, default: DESCENDING)
189
+ * @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).
180
190
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListSpacesResponse} and HTTP response
181
191
  */
182
192
  }, {
@@ -185,15 +195,20 @@ var SpacesApi = exports["default"] = /*#__PURE__*/function () {
185
195
  opts = opts || {};
186
196
  var postBody = null;
187
197
  var pathParams = {};
188
- var queryParams = {
198
+ var queryParams = _objectSpread({
189
199
  'ownerId': opts['ownerId'],
190
200
  'nameFilter': opts['nameFilter'],
191
201
  'maxResults': opts['maxResults'],
192
202
  'nextToken': opts['nextToken'],
193
203
  'sortBy': opts['sortBy'],
194
- 'sortOrder': opts['sortOrder'],
195
- 'label.*': opts['label']
196
- };
204
+ 'sortOrder': opts['sortOrder']
205
+ }, Object.entries(opts['label'] || {}).reduce(function (acc, _ref) {
206
+ var _ref2 = _slicedToArray(_ref, 2),
207
+ k = _ref2[0],
208
+ v = _ref2[1];
209
+ acc["label.".concat(k)] = v;
210
+ return acc;
211
+ }, {}));
197
212
  var headerParams = {};
198
213
  var formParams = {};
199
214
  var authNames = [];
@@ -205,15 +220,15 @@ var SpacesApi = exports["default"] = /*#__PURE__*/function () {
205
220
 
206
221
  /**
207
222
  * List spaces
208
- * Retrieves a list of spaces accessible to the caller, with optional filtering by owner, labels, and name. Results are paginated with a maximum number of spaces per response. PERMISSION-BASED FILTERING: With LIST_SPACE_ANY and ownerId omitted, returns all visible spaces; otherwise returns caller-owned spaces only. DEFAULT SORT: Results ordered by created_at DESCENDING unless specified otherwise. MAX_RESULTS CLAMPING: maxResults defaults to 50 and is clamped to [1, 1000] range. Requires LIST_SPACE_OWN or LIST_SPACE_ANY permission.
223
+ * Retrieves a list of spaces accessible to the caller, with optional filtering by owner, labels, and name. Results are paginated with a maximum number of spaces per response. 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_SPACE_ANY and ownerId omitted, returns all visible spaces; otherwise returns caller-owned spaces only. DEFAULT SORT: Results ordered by created_at DESCENDING unless specified otherwise. MAX_RESULTS CLAMPING: maxResults defaults to 50 and is clamped to [1, 1000] range. Requires LIST_SPACE_OWN or LIST_SPACE_ANY permission.
209
224
  * @param {Object} opts Optional parameters
210
225
  * @param {String} opts.ownerId Filter spaces by owner ID. With LIST_SPACE_ANY permission and ownerId omitted, returns all visible spaces. Otherwise returns caller-owned spaces only. Specifying ownerId without LIST_SPACE_ANY returns PERMISSION_DENIED.
211
226
  * @param {String} opts.nameFilter Filter spaces by name using glob pattern matching
212
- * @param {Number} opts.maxResults Maximum number of results to return in a single page (defaults to 50, clamped to [1, 1000])
227
+ * @param {Number} opts.maxResults Maximum number of results to return in a single page (defaults to 50, clamped to [1, 1000]) (default to 50)
213
228
  * @param {String} opts.nextToken Pagination token for retrieving the next set of results
214
- * @param {String} opts.sortBy Field to sort by: 'created_at' or 'name' (default: 'created_at'). Unsupported values return INVALID_ARGUMENT.
215
- * @param {String} opts.sortOrder Sort order (ASCENDING or DESCENDING, default: DESCENDING)
216
- * @param {String} opts.label Filter by label value. Multiple label filters can be specified (e.g., ?label.project=AI&label.team=NLP)
229
+ * @param {module:model/String} opts.sortBy Field to sort by: 'created_time', 'updated_time', or 'name' (default: 'created_time'). Unsupported values return INVALID_ARGUMENT. (default to 'created_time')
230
+ * @param {module:model/SortOrder} opts.sortOrder Sort order (ASCENDING or DESCENDING, default: DESCENDING)
231
+ * @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).
217
232
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListSpacesResponse}
218
233
  */
219
234
  }, {