@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.
Files changed (87) hide show
  1. package/README.md +29 -5
  2. package/dist/api/EmbeddersApi.js +27 -12
  3. package/dist/api/LLMsApi.js +25 -10
  4. package/dist/api/MemoriesApi.js +197 -69
  5. package/dist/api/RerankersApi.js +25 -10
  6. package/dist/api/SpacesApi.js +31 -16
  7. package/dist/index.js +157 -3
  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 +106 -0
  18. package/dist/model/BatchMemoryDeletionRequest.js +33 -15
  19. package/dist/model/BatchMemoryResult.js +4 -2
  20. package/dist/model/ChunkReference.js +3 -2
  21. package/dist/model/ChunkingConfiguration.js +109 -47
  22. package/dist/model/ChunkingConfigurationOneOf.js +109 -0
  23. package/dist/model/ChunkingConfigurationOneOf1.js +109 -0
  24. package/dist/model/ChunkingConfigurationOneOf2.js +109 -0
  25. package/dist/model/ContextItem.js +91 -73
  26. package/dist/model/ContextItemOneOf.js +109 -0
  27. package/dist/model/ContextItemOneOf1.js +109 -0
  28. package/dist/model/CreateApiKeyResponse.js +2 -1
  29. package/dist/model/CreateLLMResponse.js +3 -2
  30. package/dist/model/EmbedderCreationRequest.js +8 -5
  31. package/dist/model/EmbedderResponse.js +16 -11
  32. package/dist/model/EndpointAuthentication.js +7 -4
  33. package/dist/model/FilteredDeleteMemorySelectorRequest.js +140 -0
  34. package/dist/model/HnswIterativeScan.js +68 -0
  35. package/dist/model/HnswOptions.js +115 -0
  36. package/dist/model/JsonBatchMemoryCreationRequest.js +132 -0
  37. package/dist/model/JsonMemoryCreationContentRequirement.js +151 -0
  38. package/dist/model/JsonMemoryCreationContentRequirementOneOf.js +109 -0
  39. package/dist/model/JsonMemoryCreationContentRequirementOneOf1.js +109 -0
  40. package/dist/model/JsonMemoryCreationRequest.js +289 -0
  41. package/dist/model/LLMCreationRequest.js +12 -6
  42. package/dist/model/LLMResponse.js +18 -12
  43. package/dist/model/LLMUpdateRequest.js +6 -3
  44. package/dist/model/LLMUpdateRequestNot.js +118 -0
  45. package/dist/model/ListApiKeysResponse.js +29 -9
  46. package/dist/model/ListMemoryPageImagesResponse.js +145 -0
  47. package/dist/model/ListSpacesResponse.js +29 -9
  48. package/dist/model/Memory.js +106 -10
  49. package/dist/model/MemoryChunkResponse.js +39 -2
  50. package/dist/model/MemoryCreationRequest.js +15 -3
  51. package/dist/model/MemoryPageImage.js +225 -0
  52. package/dist/model/OcrCell.js +5 -3
  53. package/dist/model/OcrDocumentRequest.js +2 -1
  54. package/dist/model/OcrDocumentResponse.js +6 -4
  55. package/dist/model/OcrPage.js +9 -6
  56. package/dist/model/OcrPageResult.js +4 -2
  57. package/dist/model/PingEndpointInfo.js +3 -2
  58. package/dist/model/PingEvent.js +108 -50
  59. package/dist/model/PingEventOneOf.js +109 -0
  60. package/dist/model/PingEventOneOf1.js +109 -0
  61. package/dist/model/PingEventOneOf2.js +109 -0
  62. package/dist/model/PingOnceRequest.js +4 -2
  63. package/dist/model/PingResult.js +6 -4
  64. package/dist/model/PingStreamRequest.js +7 -3
  65. package/dist/model/PingSummary.js +3 -2
  66. package/dist/model/ProcessingHistory.js +2 -1
  67. package/dist/model/RecursiveChunkingConfiguration.js +6 -4
  68. package/dist/model/RerankerCreationRequest.js +5 -3
  69. package/dist/model/RerankerResponse.js +13 -9
  70. package/dist/model/ResultSetBoundary.js +20 -2
  71. package/dist/model/RetrieveMemoryEvent.js +10 -5
  72. package/dist/model/RetrieveMemoryRequest.js +25 -5
  73. package/dist/model/RetrievedItem.js +91 -42
  74. package/dist/model/RetrievedItemOneOf.js +109 -0
  75. package/dist/model/RetrievedItemOneOf1.js +109 -0
  76. package/dist/model/SecretReference.js +27 -4
  77. package/dist/model/SentenceChunkingConfiguration.js +3 -2
  78. package/dist/model/SortOrder.js +63 -0
  79. package/dist/model/Space.js +8 -5
  80. package/dist/model/SpaceCreationRequest.js +13 -8
  81. package/dist/model/SpaceEmbedderConfig.js +3 -1
  82. package/dist/model/SystemInfoResponse.js +13 -4
  83. package/dist/model/UpdateApiKeyRequest.js +19 -9
  84. package/dist/model/UpdateEmbedderRequest.js +2 -9
  85. package/dist/model/UpdateRerankerRequest.js +2 -9
  86. package/dist/model/UpdateSpaceRequest.js +0 -22
  87. package/package.json +1 -1
@@ -43,20 +43,21 @@ var LLMResponse = /*#__PURE__*/function () {
43
43
  * @alias module:model/LLMResponse
44
44
  * @param llmId {String} Unique identifier of the LLM
45
45
  * @param displayName {String} User-facing name of the LLM
46
- * @param providerType {module:model/LLMProviderType}
46
+ * @param providerType {module:model/LLMProviderType} Type of LLM provider
47
47
  * @param endpointUrl {String} API endpoint base URL
48
- * @param apiPath {String} API path for chat/completions request
49
48
  * @param modelIdentifier {String} Model identifier
50
- * @param capabilities {module:model/LLMCapabilities}
49
+ * @param supportedModalities {Array.<module:model/Modality>} Supported content modalities
50
+ * @param labels {Object.<String, String>} User-defined labels for categorization
51
+ * @param capabilities {module:model/LLMCapabilities} LLM capabilities defining supported features and modes
51
52
  * @param ownerId {String} Owner ID of the LLM
52
53
  * @param createdAt {Number} Creation timestamp (milliseconds since epoch)
53
54
  * @param updatedAt {Number} Last update timestamp (milliseconds since epoch)
54
55
  * @param createdById {String} ID of the user who created the LLM
55
56
  * @param updatedById {String} ID of the user who last updated the LLM
56
57
  */
57
- function LLMResponse(llmId, displayName, providerType, endpointUrl, apiPath, modelIdentifier, capabilities, ownerId, createdAt, updatedAt, createdById, updatedById) {
58
+ function LLMResponse(llmId, displayName, providerType, endpointUrl, modelIdentifier, supportedModalities, labels, capabilities, ownerId, createdAt, updatedAt, createdById, updatedById) {
58
59
  _classCallCheck(this, LLMResponse);
59
- LLMResponse.initialize(this, llmId, displayName, providerType, endpointUrl, apiPath, modelIdentifier, capabilities, ownerId, createdAt, updatedAt, createdById, updatedById);
60
+ LLMResponse.initialize(this, llmId, displayName, providerType, endpointUrl, modelIdentifier, supportedModalities, labels, capabilities, ownerId, createdAt, updatedAt, createdById, updatedById);
60
61
  }
61
62
 
62
63
  /**
@@ -66,13 +67,14 @@ var LLMResponse = /*#__PURE__*/function () {
66
67
  */
67
68
  return _createClass(LLMResponse, null, [{
68
69
  key: "initialize",
69
- value: function initialize(obj, llmId, displayName, providerType, endpointUrl, apiPath, modelIdentifier, capabilities, ownerId, createdAt, updatedAt, createdById, updatedById) {
70
+ value: function initialize(obj, llmId, displayName, providerType, endpointUrl, modelIdentifier, supportedModalities, labels, capabilities, ownerId, createdAt, updatedAt, createdById, updatedById) {
70
71
  obj['llmId'] = llmId;
71
72
  obj['displayName'] = displayName;
72
73
  obj['providerType'] = providerType;
73
74
  obj['endpointUrl'] = endpointUrl;
74
- obj['apiPath'] = apiPath;
75
75
  obj['modelIdentifier'] = modelIdentifier;
76
+ obj['supportedModalities'] = supportedModalities;
77
+ obj['labels'] = labels;
76
78
  obj['capabilities'] = capabilities;
77
79
  obj['ownerId'] = ownerId;
78
80
  obj['createdAt'] = createdAt;
@@ -103,7 +105,7 @@ var LLMResponse = /*#__PURE__*/function () {
103
105
  obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String');
104
106
  }
105
107
  if (data.hasOwnProperty('providerType')) {
106
- obj['providerType'] = _LLMProviderType["default"].constructFromObject(data['providerType']);
108
+ obj['providerType'] = _ApiClient["default"].convertToType(data['providerType'], _LLMProviderType["default"]);
107
109
  }
108
110
  if (data.hasOwnProperty('endpointUrl')) {
109
111
  obj['endpointUrl'] = _ApiClient["default"].convertToType(data['endpointUrl'], 'String');
@@ -118,7 +120,7 @@ var LLMResponse = /*#__PURE__*/function () {
118
120
  obj['supportedModalities'] = _ApiClient["default"].convertToType(data['supportedModalities'], [_Modality["default"]]);
119
121
  }
120
122
  if (data.hasOwnProperty('credentials')) {
121
- obj['credentials'] = _EndpointAuthentication["default"].constructFromObject(data['credentials']);
123
+ obj['credentials'] = _ApiClient["default"].convertToType(data['credentials'], _EndpointAuthentication["default"]);
122
124
  }
123
125
  if (data.hasOwnProperty('labels')) {
124
126
  obj['labels'] = _ApiClient["default"].convertToType(data['labels'], {
@@ -132,10 +134,10 @@ var LLMResponse = /*#__PURE__*/function () {
132
134
  obj['monitoringEndpoint'] = _ApiClient["default"].convertToType(data['monitoringEndpoint'], 'String');
133
135
  }
134
136
  if (data.hasOwnProperty('capabilities')) {
135
- obj['capabilities'] = _LLMCapabilities["default"].constructFromObject(data['capabilities']);
137
+ obj['capabilities'] = _ApiClient["default"].convertToType(data['capabilities'], _LLMCapabilities["default"]);
136
138
  }
137
139
  if (data.hasOwnProperty('defaultSamplingParams')) {
138
- obj['defaultSamplingParams'] = _LLMSamplingParams["default"].constructFromObject(data['defaultSamplingParams']);
140
+ obj['defaultSamplingParams'] = _ApiClient["default"].convertToType(data['defaultSamplingParams'], _LLMSamplingParams["default"]);
139
141
  }
140
142
  if (data.hasOwnProperty('maxContextLength')) {
141
143
  obj['maxContextLength'] = _ApiClient["default"].convertToType(data['maxContextLength'], 'Number');
@@ -254,7 +256,7 @@ var LLMResponse = /*#__PURE__*/function () {
254
256
  }
255
257
  }]);
256
258
  }();
257
- LLMResponse.RequiredProperties = ["llmId", "displayName", "providerType", "endpointUrl", "apiPath", "modelIdentifier", "capabilities", "ownerId", "createdAt", "updatedAt", "createdById", "updatedById"];
259
+ LLMResponse.RequiredProperties = ["llmId", "displayName", "providerType", "endpointUrl", "modelIdentifier", "supportedModalities", "labels", "capabilities", "ownerId", "createdAt", "updatedAt", "createdById", "updatedById"];
258
260
 
259
261
  /**
260
262
  * Unique identifier of the LLM
@@ -275,6 +277,7 @@ LLMResponse.prototype['displayName'] = undefined;
275
277
  LLMResponse.prototype['description'] = undefined;
276
278
 
277
279
  /**
280
+ * Type of LLM provider
278
281
  * @member {module:model/LLMProviderType} providerType
279
282
  */
280
283
  LLMResponse.prototype['providerType'] = undefined;
@@ -304,6 +307,7 @@ LLMResponse.prototype['modelIdentifier'] = undefined;
304
307
  LLMResponse.prototype['supportedModalities'] = undefined;
305
308
 
306
309
  /**
310
+ * Structured credential payload used for upstream authentication
307
311
  * @member {module:model/EndpointAuthentication} credentials
308
312
  */
309
313
  LLMResponse.prototype['credentials'] = undefined;
@@ -327,11 +331,13 @@ LLMResponse.prototype['version'] = undefined;
327
331
  LLMResponse.prototype['monitoringEndpoint'] = undefined;
328
332
 
329
333
  /**
334
+ * LLM capabilities defining supported features and modes
330
335
  * @member {module:model/LLMCapabilities} capabilities
331
336
  */
332
337
  LLMResponse.prototype['capabilities'] = undefined;
333
338
 
334
339
  /**
340
+ * Default sampling parameters for generation requests
335
341
  * @member {module:model/LLMSamplingParams} defaultSamplingParams
336
342
  */
337
343
  LLMResponse.prototype['defaultSamplingParams'] = undefined;
@@ -83,7 +83,7 @@ var LLMUpdateRequest = /*#__PURE__*/function () {
83
83
  obj['supportedModalities'] = _ApiClient["default"].convertToType(data['supportedModalities'], [_Modality["default"]]);
84
84
  }
85
85
  if (data.hasOwnProperty('credentials')) {
86
- obj['credentials'] = _EndpointAuthentication["default"].constructFromObject(data['credentials']);
86
+ obj['credentials'] = _ApiClient["default"].convertToType(data['credentials'], _EndpointAuthentication["default"]);
87
87
  }
88
88
  if (data.hasOwnProperty('version')) {
89
89
  obj['version'] = _ApiClient["default"].convertToType(data['version'], 'String');
@@ -92,10 +92,10 @@ var LLMUpdateRequest = /*#__PURE__*/function () {
92
92
  obj['monitoringEndpoint'] = _ApiClient["default"].convertToType(data['monitoringEndpoint'], 'String');
93
93
  }
94
94
  if (data.hasOwnProperty('capabilities')) {
95
- obj['capabilities'] = _LLMCapabilities["default"].constructFromObject(data['capabilities']);
95
+ obj['capabilities'] = _ApiClient["default"].convertToType(data['capabilities'], _LLMCapabilities["default"]);
96
96
  }
97
97
  if (data.hasOwnProperty('defaultSamplingParams')) {
98
- obj['defaultSamplingParams'] = _LLMSamplingParams["default"].constructFromObject(data['defaultSamplingParams']);
98
+ obj['defaultSamplingParams'] = _ApiClient["default"].convertToType(data['defaultSamplingParams'], _LLMSamplingParams["default"]);
99
99
  }
100
100
  if (data.hasOwnProperty('maxContextLength')) {
101
101
  obj['maxContextLength'] = _ApiClient["default"].convertToType(data['maxContextLength'], 'Number');
@@ -215,6 +215,7 @@ LLMUpdateRequest.prototype['modelIdentifier'] = undefined;
215
215
  LLMUpdateRequest.prototype['supportedModalities'] = undefined;
216
216
 
217
217
  /**
218
+ * Update credentials
218
219
  * @member {module:model/EndpointAuthentication} credentials
219
220
  */
220
221
  LLMUpdateRequest.prototype['credentials'] = undefined;
@@ -232,11 +233,13 @@ LLMUpdateRequest.prototype['version'] = undefined;
232
233
  LLMUpdateRequest.prototype['monitoringEndpoint'] = undefined;
233
234
 
234
235
  /**
236
+ * Update LLM capabilities (replaces entire capability set; clients MUST send all flags)
235
237
  * @member {module:model/LLMCapabilities} capabilities
236
238
  */
237
239
  LLMUpdateRequest.prototype['capabilities'] = undefined;
238
240
 
239
241
  /**
242
+ * Update default sampling parameters
240
243
  * @member {module:model/LLMSamplingParams} defaultSamplingParams
241
244
  */
242
245
  LLMUpdateRequest.prototype['defaultSamplingParams'] = undefined;
@@ -0,0 +1,118 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
+ 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); }
10
+ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
11
+ 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; } }
12
+ 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; }
13
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
14
+ 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); } }
15
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
16
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
18
+ *
19
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
20
+ *
21
+ * The version of the OpenAPI document:
22
+ *
23
+ *
24
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
25
+ * https://openapi-generator.tech
26
+ * Do not edit the class manually.
27
+ *
28
+ */
29
+ /**
30
+ * The LLMUpdateRequestNot model module.
31
+ * @module model/LLMUpdateRequestNot
32
+ * @version 1.0.0
33
+ */
34
+ var LLMUpdateRequestNot = /*#__PURE__*/function () {
35
+ /**
36
+ * Constructs a new <code>LLMUpdateRequestNot</code>.
37
+ * @alias module:model/LLMUpdateRequestNot
38
+ * @param replaceLabels {Object}
39
+ * @param mergeLabels {Object}
40
+ */
41
+ function LLMUpdateRequestNot(replaceLabels, mergeLabels) {
42
+ _classCallCheck(this, LLMUpdateRequestNot);
43
+ LLMUpdateRequestNot.initialize(this, replaceLabels, mergeLabels);
44
+ }
45
+
46
+ /**
47
+ * Initializes the fields of this object.
48
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
49
+ * Only for internal use.
50
+ */
51
+ return _createClass(LLMUpdateRequestNot, null, [{
52
+ key: "initialize",
53
+ value: function initialize(obj, replaceLabels, mergeLabels) {
54
+ obj['replaceLabels'] = replaceLabels;
55
+ obj['mergeLabels'] = mergeLabels;
56
+ }
57
+
58
+ /**
59
+ * Constructs a <code>LLMUpdateRequestNot</code> from a plain JavaScript object, optionally creating a new instance.
60
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
61
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
62
+ * @param {module:model/LLMUpdateRequestNot} obj Optional instance to populate.
63
+ * @return {module:model/LLMUpdateRequestNot} The populated <code>LLMUpdateRequestNot</code> instance.
64
+ */
65
+ }, {
66
+ key: "constructFromObject",
67
+ value: function constructFromObject(data, obj) {
68
+ if (data) {
69
+ obj = obj || new LLMUpdateRequestNot();
70
+ if (data.hasOwnProperty('replaceLabels')) {
71
+ obj['replaceLabels'] = _ApiClient["default"].convertToType(data['replaceLabels'], Object);
72
+ }
73
+ if (data.hasOwnProperty('mergeLabels')) {
74
+ obj['mergeLabels'] = _ApiClient["default"].convertToType(data['mergeLabels'], Object);
75
+ }
76
+ }
77
+ return obj;
78
+ }
79
+
80
+ /**
81
+ * Validates the JSON data with respect to <code>LLMUpdateRequestNot</code>.
82
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
83
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>LLMUpdateRequestNot</code>.
84
+ */
85
+ }, {
86
+ key: "validateJSON",
87
+ value: function validateJSON(data) {
88
+ // check to make sure all required properties are present in the JSON string
89
+ var _iterator = _createForOfIteratorHelper(LLMUpdateRequestNot.RequiredProperties),
90
+ _step;
91
+ try {
92
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
93
+ var property = _step.value;
94
+ if (!data.hasOwnProperty(property)) {
95
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
96
+ }
97
+ }
98
+ } catch (err) {
99
+ _iterator.e(err);
100
+ } finally {
101
+ _iterator.f();
102
+ }
103
+ return true;
104
+ }
105
+ }]);
106
+ }();
107
+ LLMUpdateRequestNot.RequiredProperties = ["replaceLabels", "mergeLabels"];
108
+
109
+ /**
110
+ * @member {Object} replaceLabels
111
+ */
112
+ LLMUpdateRequestNot.prototype['replaceLabels'] = undefined;
113
+
114
+ /**
115
+ * @member {Object} mergeLabels
116
+ */
117
+ LLMUpdateRequestNot.prototype['mergeLabels'] = undefined;
118
+ var _default = exports["default"] = LLMUpdateRequestNot;
@@ -37,10 +37,11 @@ var ListApiKeysResponse = /*#__PURE__*/function () {
37
37
  * Constructs a new <code>ListApiKeysResponse</code>.
38
38
  * Response containing a list of API keys.
39
39
  * @alias module:model/ListApiKeysResponse
40
+ * @param keys {Array.<module:model/ApiKeyResponse>} List of API keys belonging to the authenticated user.
40
41
  */
41
- function ListApiKeysResponse() {
42
+ function ListApiKeysResponse(keys) {
42
43
  _classCallCheck(this, ListApiKeysResponse);
43
- ListApiKeysResponse.initialize(this);
44
+ ListApiKeysResponse.initialize(this, keys);
44
45
  }
45
46
 
46
47
  /**
@@ -50,7 +51,9 @@ var ListApiKeysResponse = /*#__PURE__*/function () {
50
51
  */
51
52
  return _createClass(ListApiKeysResponse, null, [{
52
53
  key: "initialize",
53
- value: function initialize(obj) {}
54
+ value: function initialize(obj, keys) {
55
+ obj['keys'] = keys;
56
+ }
54
57
 
55
58
  /**
56
59
  * Constructs a <code>ListApiKeysResponse</code> from a plain JavaScript object, optionally creating a new instance.
@@ -79,6 +82,21 @@ var ListApiKeysResponse = /*#__PURE__*/function () {
79
82
  }, {
80
83
  key: "validateJSON",
81
84
  value: function validateJSON(data) {
85
+ // check to make sure all required properties are present in the JSON string
86
+ var _iterator = _createForOfIteratorHelper(ListApiKeysResponse.RequiredProperties),
87
+ _step;
88
+ try {
89
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
90
+ var property = _step.value;
91
+ if (!data.hasOwnProperty(property)) {
92
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
93
+ }
94
+ }
95
+ } catch (err) {
96
+ _iterator.e(err);
97
+ } finally {
98
+ _iterator.f();
99
+ }
82
100
  if (data['keys']) {
83
101
  // data not null
84
102
  // ensure the json data is an array
@@ -86,17 +104,17 @@ var ListApiKeysResponse = /*#__PURE__*/function () {
86
104
  throw new Error("Expected the field `keys` to be an array in the JSON data but got " + data['keys']);
87
105
  }
88
106
  // validate the optional field `keys` (array)
89
- var _iterator = _createForOfIteratorHelper(data['keys']),
90
- _step;
107
+ var _iterator2 = _createForOfIteratorHelper(data['keys']),
108
+ _step2;
91
109
  try {
92
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
93
- var item = _step.value;
110
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
111
+ var item = _step2.value;
94
112
  _ApiKeyResponse["default"].validateJSON(item);
95
113
  }
96
114
  } catch (err) {
97
- _iterator.e(err);
115
+ _iterator2.e(err);
98
116
  } finally {
99
- _iterator.f();
117
+ _iterator2.f();
100
118
  }
101
119
  ;
102
120
  }
@@ -104,6 +122,8 @@ var ListApiKeysResponse = /*#__PURE__*/function () {
104
122
  }
105
123
  }]);
106
124
  }();
125
+ ListApiKeysResponse.RequiredProperties = ["keys"];
126
+
107
127
  /**
108
128
  * List of API keys belonging to the authenticated user.
109
129
  * @member {Array.<module:model/ApiKeyResponse>} keys
@@ -0,0 +1,145 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ var _MemoryPageImage = _interopRequireDefault(require("./MemoryPageImage"));
9
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
10
+ 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); }
11
+ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
12
+ 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; } }
13
+ 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; }
14
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
15
+ 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
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
17
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
18
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
19
+ *
20
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
21
+ *
22
+ * The version of the OpenAPI document:
23
+ *
24
+ *
25
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
26
+ * https://openapi-generator.tech
27
+ * Do not edit the class manually.
28
+ *
29
+ */
30
+ /**
31
+ * The ListMemoryPageImagesResponse model module.
32
+ * @module model/ListMemoryPageImagesResponse
33
+ * @version 1.0.0
34
+ */
35
+ var ListMemoryPageImagesResponse = /*#__PURE__*/function () {
36
+ /**
37
+ * Constructs a new <code>ListMemoryPageImagesResponse</code>.
38
+ * Page of memory page-image metadata
39
+ * @alias module:model/ListMemoryPageImagesResponse
40
+ * @param pageImages {Array.<module:model/MemoryPageImage>} Page-image metadata rows
41
+ */
42
+ function ListMemoryPageImagesResponse(pageImages) {
43
+ _classCallCheck(this, ListMemoryPageImagesResponse);
44
+ ListMemoryPageImagesResponse.initialize(this, pageImages);
45
+ }
46
+
47
+ /**
48
+ * Initializes the fields of this object.
49
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
50
+ * Only for internal use.
51
+ */
52
+ return _createClass(ListMemoryPageImagesResponse, null, [{
53
+ key: "initialize",
54
+ value: function initialize(obj, pageImages) {
55
+ obj['pageImages'] = pageImages;
56
+ }
57
+
58
+ /**
59
+ * Constructs a <code>ListMemoryPageImagesResponse</code> from a plain JavaScript object, optionally creating a new instance.
60
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
61
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
62
+ * @param {module:model/ListMemoryPageImagesResponse} obj Optional instance to populate.
63
+ * @return {module:model/ListMemoryPageImagesResponse} The populated <code>ListMemoryPageImagesResponse</code> instance.
64
+ */
65
+ }, {
66
+ key: "constructFromObject",
67
+ value: function constructFromObject(data, obj) {
68
+ if (data) {
69
+ obj = obj || new ListMemoryPageImagesResponse();
70
+ if (data.hasOwnProperty('pageImages')) {
71
+ obj['pageImages'] = _ApiClient["default"].convertToType(data['pageImages'], [_MemoryPageImage["default"]]);
72
+ }
73
+ if (data.hasOwnProperty('nextToken')) {
74
+ obj['nextToken'] = _ApiClient["default"].convertToType(data['nextToken'], 'String');
75
+ }
76
+ }
77
+ return obj;
78
+ }
79
+
80
+ /**
81
+ * Validates the JSON data with respect to <code>ListMemoryPageImagesResponse</code>.
82
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
83
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>ListMemoryPageImagesResponse</code>.
84
+ */
85
+ }, {
86
+ key: "validateJSON",
87
+ value: function validateJSON(data) {
88
+ // check to make sure all required properties are present in the JSON string
89
+ var _iterator = _createForOfIteratorHelper(ListMemoryPageImagesResponse.RequiredProperties),
90
+ _step;
91
+ try {
92
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
93
+ var property = _step.value;
94
+ if (!data.hasOwnProperty(property)) {
95
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
96
+ }
97
+ }
98
+ } catch (err) {
99
+ _iterator.e(err);
100
+ } finally {
101
+ _iterator.f();
102
+ }
103
+ if (data['pageImages']) {
104
+ // data not null
105
+ // ensure the json data is an array
106
+ if (!Array.isArray(data['pageImages'])) {
107
+ throw new Error("Expected the field `pageImages` to be an array in the JSON data but got " + data['pageImages']);
108
+ }
109
+ // validate the optional field `pageImages` (array)
110
+ var _iterator2 = _createForOfIteratorHelper(data['pageImages']),
111
+ _step2;
112
+ try {
113
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
114
+ var item = _step2.value;
115
+ _MemoryPageImage["default"].validateJSON(item);
116
+ }
117
+ } catch (err) {
118
+ _iterator2.e(err);
119
+ } finally {
120
+ _iterator2.f();
121
+ }
122
+ ;
123
+ }
124
+ // ensure the json data is a string
125
+ if (data['nextToken'] && !(typeof data['nextToken'] === 'string' || data['nextToken'] instanceof String)) {
126
+ throw new Error("Expected the field `nextToken` to be a primitive type in the JSON string but got " + data['nextToken']);
127
+ }
128
+ return true;
129
+ }
130
+ }]);
131
+ }();
132
+ ListMemoryPageImagesResponse.RequiredProperties = ["pageImages"];
133
+
134
+ /**
135
+ * Page-image metadata rows
136
+ * @member {Array.<module:model/MemoryPageImage>} pageImages
137
+ */
138
+ ListMemoryPageImagesResponse.prototype['pageImages'] = undefined;
139
+
140
+ /**
141
+ * Opaque token for retrieving the next page
142
+ * @member {String} nextToken
143
+ */
144
+ ListMemoryPageImagesResponse.prototype['nextToken'] = undefined;
145
+ var _default = exports["default"] = ListMemoryPageImagesResponse;
@@ -37,10 +37,11 @@ var ListSpacesResponse = /*#__PURE__*/function () {
37
37
  * Constructs a new <code>ListSpacesResponse</code>.
38
38
  * Response containing a list of spaces and optional pagination token.
39
39
  * @alias module:model/ListSpacesResponse
40
+ * @param spaces {Array.<module:model/Space>} The list of spaces matching the query criteria.
40
41
  */
41
- function ListSpacesResponse() {
42
+ function ListSpacesResponse(spaces) {
42
43
  _classCallCheck(this, ListSpacesResponse);
43
- ListSpacesResponse.initialize(this);
44
+ ListSpacesResponse.initialize(this, spaces);
44
45
  }
45
46
 
46
47
  /**
@@ -50,7 +51,9 @@ var ListSpacesResponse = /*#__PURE__*/function () {
50
51
  */
51
52
  return _createClass(ListSpacesResponse, null, [{
52
53
  key: "initialize",
53
- value: function initialize(obj) {}
54
+ value: function initialize(obj, spaces) {
55
+ obj['spaces'] = spaces;
56
+ }
54
57
 
55
58
  /**
56
59
  * Constructs a <code>ListSpacesResponse</code> from a plain JavaScript object, optionally creating a new instance.
@@ -82,6 +85,21 @@ var ListSpacesResponse = /*#__PURE__*/function () {
82
85
  }, {
83
86
  key: "validateJSON",
84
87
  value: function validateJSON(data) {
88
+ // check to make sure all required properties are present in the JSON string
89
+ var _iterator = _createForOfIteratorHelper(ListSpacesResponse.RequiredProperties),
90
+ _step;
91
+ try {
92
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
93
+ var property = _step.value;
94
+ if (!data.hasOwnProperty(property)) {
95
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
96
+ }
97
+ }
98
+ } catch (err) {
99
+ _iterator.e(err);
100
+ } finally {
101
+ _iterator.f();
102
+ }
85
103
  if (data['spaces']) {
86
104
  // data not null
87
105
  // ensure the json data is an array
@@ -89,17 +107,17 @@ var ListSpacesResponse = /*#__PURE__*/function () {
89
107
  throw new Error("Expected the field `spaces` to be an array in the JSON data but got " + data['spaces']);
90
108
  }
91
109
  // validate the optional field `spaces` (array)
92
- var _iterator = _createForOfIteratorHelper(data['spaces']),
93
- _step;
110
+ var _iterator2 = _createForOfIteratorHelper(data['spaces']),
111
+ _step2;
94
112
  try {
95
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
96
- var item = _step.value;
113
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
114
+ var item = _step2.value;
97
115
  _Space["default"].validateJSON(item);
98
116
  }
99
117
  } catch (err) {
100
- _iterator.e(err);
118
+ _iterator2.e(err);
101
119
  } finally {
102
- _iterator.f();
120
+ _iterator2.f();
103
121
  }
104
122
  ;
105
123
  }
@@ -111,6 +129,8 @@ var ListSpacesResponse = /*#__PURE__*/function () {
111
129
  }
112
130
  }]);
113
131
  }();
132
+ ListSpacesResponse.RequiredProperties = ["spaces"];
133
+
114
134
  /**
115
135
  * The list of spaces matching the query criteria.
116
136
  * @member {Array.<module:model/Space>} spaces