@pairsystems/goodmem-client 1.0.9 → 1.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +29 -5
- package/dist/api/EmbeddersApi.js +27 -12
- package/dist/api/LLMsApi.js +25 -10
- package/dist/api/MemoriesApi.js +197 -69
- package/dist/api/RerankersApi.js +25 -10
- package/dist/api/SpacesApi.js +31 -16
- package/dist/index.js +157 -3
- package/dist/model/ActiveLicenseMetadata.js +5 -1
- package/dist/model/AdminDrainRequest.js +3 -0
- package/dist/model/AdminDrainResponse.js +33 -2
- package/dist/model/AdminPurgeJobsRequest.js +4 -0
- package/dist/model/AdminPurgeJobsResponse.js +8 -4
- package/dist/model/AdminReloadLicenseResponse.js +4 -1
- package/dist/model/ApiKeyAuth.js +7 -3
- package/dist/model/ApiKeyResponse.js +67 -5
- package/dist/model/BackgroundJobSummary.js +35 -2
- package/dist/model/BatchDeleteMemorySelectorRequest.js +106 -0
- package/dist/model/BatchMemoryDeletionRequest.js +33 -15
- package/dist/model/BatchMemoryResult.js +4 -2
- package/dist/model/ChunkReference.js +3 -2
- package/dist/model/ChunkingConfiguration.js +109 -47
- package/dist/model/ChunkingConfigurationOneOf.js +109 -0
- package/dist/model/ChunkingConfigurationOneOf1.js +109 -0
- package/dist/model/ChunkingConfigurationOneOf2.js +109 -0
- package/dist/model/ContextItem.js +91 -73
- package/dist/model/ContextItemOneOf.js +109 -0
- package/dist/model/ContextItemOneOf1.js +109 -0
- package/dist/model/CreateApiKeyResponse.js +2 -1
- package/dist/model/CreateLLMResponse.js +3 -2
- package/dist/model/EmbedderCreationRequest.js +8 -5
- package/dist/model/EmbedderResponse.js +16 -11
- package/dist/model/EndpointAuthentication.js +7 -4
- package/dist/model/FilteredDeleteMemorySelectorRequest.js +140 -0
- package/dist/model/HnswIterativeScan.js +68 -0
- package/dist/model/HnswOptions.js +115 -0
- package/dist/model/JsonBatchMemoryCreationRequest.js +132 -0
- package/dist/model/JsonMemoryCreationContentRequirement.js +151 -0
- package/dist/model/JsonMemoryCreationContentRequirementOneOf.js +109 -0
- package/dist/model/JsonMemoryCreationContentRequirementOneOf1.js +109 -0
- package/dist/model/JsonMemoryCreationRequest.js +289 -0
- package/dist/model/LLMCreationRequest.js +12 -6
- package/dist/model/LLMResponse.js +18 -12
- package/dist/model/LLMUpdateRequest.js +6 -3
- package/dist/model/LLMUpdateRequestNot.js +118 -0
- package/dist/model/ListApiKeysResponse.js +29 -9
- package/dist/model/ListMemoryPageImagesResponse.js +145 -0
- package/dist/model/ListSpacesResponse.js +29 -9
- package/dist/model/Memory.js +106 -10
- package/dist/model/MemoryChunkResponse.js +39 -2
- package/dist/model/MemoryCreationRequest.js +15 -3
- package/dist/model/MemoryPageImage.js +225 -0
- package/dist/model/OcrCell.js +5 -3
- package/dist/model/OcrDocumentRequest.js +2 -1
- package/dist/model/OcrDocumentResponse.js +6 -4
- package/dist/model/OcrPage.js +9 -6
- package/dist/model/OcrPageResult.js +4 -2
- package/dist/model/PingEndpointInfo.js +3 -2
- package/dist/model/PingEvent.js +108 -50
- package/dist/model/PingEventOneOf.js +109 -0
- package/dist/model/PingEventOneOf1.js +109 -0
- package/dist/model/PingEventOneOf2.js +109 -0
- package/dist/model/PingOnceRequest.js +4 -2
- package/dist/model/PingResult.js +6 -4
- package/dist/model/PingStreamRequest.js +7 -3
- package/dist/model/PingSummary.js +3 -2
- package/dist/model/ProcessingHistory.js +2 -1
- package/dist/model/RecursiveChunkingConfiguration.js +6 -4
- package/dist/model/RerankerCreationRequest.js +5 -3
- package/dist/model/RerankerResponse.js +13 -9
- package/dist/model/ResultSetBoundary.js +20 -2
- package/dist/model/RetrieveMemoryEvent.js +10 -5
- package/dist/model/RetrieveMemoryRequest.js +25 -5
- package/dist/model/RetrievedItem.js +91 -42
- package/dist/model/RetrievedItemOneOf.js +109 -0
- package/dist/model/RetrievedItemOneOf1.js +109 -0
- package/dist/model/SecretReference.js +27 -4
- package/dist/model/SentenceChunkingConfiguration.js +3 -2
- package/dist/model/SortOrder.js +63 -0
- package/dist/model/Space.js +8 -5
- package/dist/model/SpaceCreationRequest.js +13 -8
- package/dist/model/SpaceEmbedderConfig.js +3 -1
- package/dist/model/SystemInfoResponse.js +13 -4
- package/dist/model/UpdateApiKeyRequest.js +19 -9
- package/dist/model/UpdateEmbedderRequest.js +2 -9
- package/dist/model/UpdateRerankerRequest.js +2 -9
- package/dist/model/UpdateSpaceRequest.js +0 -22
- package/package.json +1 -1
|
@@ -7,11 +7,15 @@ exports["default"] = void 0;
|
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
8
|
var _ChunkReference = _interopRequireDefault(require("./ChunkReference"));
|
|
9
9
|
var _Memory = _interopRequireDefault(require("./Memory"));
|
|
10
|
+
var _RetrievedItemOneOf = _interopRequireDefault(require("./RetrievedItemOneOf"));
|
|
11
|
+
var _RetrievedItemOneOf2 = _interopRequireDefault(require("./RetrievedItemOneOf1"));
|
|
12
|
+
var _RetrievedItem;
|
|
10
13
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
11
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); }
|
|
12
15
|
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
13
16
|
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
14
17
|
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
18
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
15
19
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
16
20
|
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); } /**
|
|
17
21
|
*
|
|
@@ -35,72 +39,117 @@ var RetrievedItem = /*#__PURE__*/function () {
|
|
|
35
39
|
* Constructs a new <code>RetrievedItem</code>.
|
|
36
40
|
* A retrieved result that can be either a Memory or MemoryChunk
|
|
37
41
|
* @alias module:model/RetrievedItem
|
|
42
|
+
* @param {(module:model/RetrievedItemOneOf|module:model/RetrievedItemOneOf1)} instance The actual instance to initialize RetrievedItem.
|
|
38
43
|
*/
|
|
39
44
|
function RetrievedItem() {
|
|
45
|
+
var instance = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
40
46
|
_classCallCheck(this, RetrievedItem);
|
|
41
|
-
|
|
47
|
+
/**
|
|
48
|
+
* Returns the JSON representation of the actual instance.
|
|
49
|
+
* @return {string}
|
|
50
|
+
*/
|
|
51
|
+
_defineProperty(this, "toJSON", function () {
|
|
52
|
+
return this.getActualInstance();
|
|
53
|
+
});
|
|
54
|
+
if (instance === null) {
|
|
55
|
+
this.actualInstance = null;
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
var match = 0;
|
|
59
|
+
var errorMessages = [];
|
|
60
|
+
try {
|
|
61
|
+
if (instance instanceof _RetrievedItemOneOf["default"]) {
|
|
62
|
+
this.actualInstance = instance;
|
|
63
|
+
} else {
|
|
64
|
+
// plain JS object
|
|
65
|
+
// validate the object
|
|
66
|
+
_RetrievedItemOneOf["default"].validateJSON(instance); // throw an exception if no match
|
|
67
|
+
// create RetrievedItemOneOf from JS object
|
|
68
|
+
this.actualInstance = _RetrievedItemOneOf["default"].constructFromObject(instance);
|
|
69
|
+
}
|
|
70
|
+
match++;
|
|
71
|
+
} catch (err) {
|
|
72
|
+
// json data failed to deserialize into RetrievedItemOneOf
|
|
73
|
+
errorMessages.push("Failed to construct RetrievedItemOneOf: " + err);
|
|
74
|
+
}
|
|
75
|
+
try {
|
|
76
|
+
if (instance instanceof _RetrievedItemOneOf2["default"]) {
|
|
77
|
+
this.actualInstance = instance;
|
|
78
|
+
} else {
|
|
79
|
+
// plain JS object
|
|
80
|
+
// validate the object
|
|
81
|
+
_RetrievedItemOneOf2["default"].validateJSON(instance); // throw an exception if no match
|
|
82
|
+
// create RetrievedItemOneOf1 from JS object
|
|
83
|
+
this.actualInstance = _RetrievedItemOneOf2["default"].constructFromObject(instance);
|
|
84
|
+
}
|
|
85
|
+
match++;
|
|
86
|
+
} catch (err) {
|
|
87
|
+
// json data failed to deserialize into RetrievedItemOneOf1
|
|
88
|
+
errorMessages.push("Failed to construct RetrievedItemOneOf1: " + err);
|
|
89
|
+
}
|
|
90
|
+
if (match > 1) {
|
|
91
|
+
throw new Error("Multiple matches found constructing `RetrievedItem` with oneOf schemas RetrievedItemOneOf, RetrievedItemOneOf1. Input: " + JSON.stringify(instance));
|
|
92
|
+
} else if (match === 0) {
|
|
93
|
+
this.actualInstance = null; // clear the actual instance in case there are multiple matches
|
|
94
|
+
throw new Error("No match found constructing `RetrievedItem` with oneOf schemas RetrievedItemOneOf, RetrievedItemOneOf1. Details: " + errorMessages.join(", "));
|
|
95
|
+
} else {// only 1 match
|
|
96
|
+
// the input is valid
|
|
97
|
+
}
|
|
42
98
|
}
|
|
43
99
|
|
|
44
100
|
/**
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
101
|
+
* Constructs a <code>RetrievedItem</code> from a plain JavaScript object, optionally creating a new instance.
|
|
102
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
103
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
104
|
+
* @param {module:model/RetrievedItem} obj Optional instance to populate.
|
|
105
|
+
* @return {module:model/RetrievedItem} The populated <code>RetrievedItem</code> instance.
|
|
48
106
|
*/
|
|
49
|
-
return _createClass(RetrievedItem,
|
|
50
|
-
key: "
|
|
51
|
-
value:
|
|
52
|
-
|
|
107
|
+
return _createClass(RetrievedItem, [{
|
|
108
|
+
key: "getActualInstance",
|
|
109
|
+
value:
|
|
53
110
|
/**
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
57
|
-
* @param {module:model/RetrievedItem} obj Optional instance to populate.
|
|
58
|
-
* @return {module:model/RetrievedItem} The populated <code>RetrievedItem</code> instance.
|
|
111
|
+
* Gets the actual instance, which can be <code>RetrievedItemOneOf</code>, <code>RetrievedItemOneOf1</code>.
|
|
112
|
+
* @return {(module:model/RetrievedItemOneOf|module:model/RetrievedItemOneOf1)} The actual instance.
|
|
59
113
|
*/
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
value: function constructFromObject(data, obj) {
|
|
63
|
-
if (data) {
|
|
64
|
-
obj = obj || new RetrievedItem();
|
|
65
|
-
if (data.hasOwnProperty('memory')) {
|
|
66
|
-
obj['memory'] = _Memory["default"].constructFromObject(data['memory']);
|
|
67
|
-
}
|
|
68
|
-
if (data.hasOwnProperty('chunk')) {
|
|
69
|
-
obj['chunk'] = _ChunkReference["default"].constructFromObject(data['chunk']);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
return obj;
|
|
114
|
+
function getActualInstance() {
|
|
115
|
+
return this.actualInstance;
|
|
73
116
|
}
|
|
74
117
|
|
|
75
118
|
/**
|
|
76
|
-
*
|
|
77
|
-
* @param {
|
|
78
|
-
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>RetrievedItem</code>.
|
|
119
|
+
* Sets the actual instance, which can be <code>RetrievedItemOneOf</code>, <code>RetrievedItemOneOf1</code>.
|
|
120
|
+
* @param {(module:model/RetrievedItemOneOf|module:model/RetrievedItemOneOf1)} obj The actual instance.
|
|
79
121
|
*/
|
|
80
122
|
}, {
|
|
81
|
-
key: "
|
|
82
|
-
value: function
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
if (data['chunk']) {
|
|
90
|
-
// data not null
|
|
91
|
-
_ChunkReference["default"].validateJSON(data['chunk']);
|
|
92
|
-
}
|
|
93
|
-
return true;
|
|
123
|
+
key: "setActualInstance",
|
|
124
|
+
value: function setActualInstance(obj) {
|
|
125
|
+
this.actualInstance = RetrievedItem.constructFromObject(obj).getActualInstance();
|
|
126
|
+
}
|
|
127
|
+
}], [{
|
|
128
|
+
key: "constructFromObject",
|
|
129
|
+
value: function constructFromObject(data, obj) {
|
|
130
|
+
return new RetrievedItem(data);
|
|
94
131
|
}
|
|
95
132
|
}]);
|
|
96
133
|
}();
|
|
97
134
|
/**
|
|
135
|
+
* Complete memory object (if retrieved)
|
|
98
136
|
* @member {module:model/Memory} memory
|
|
99
137
|
*/
|
|
138
|
+
_RetrievedItem = RetrievedItem;
|
|
139
|
+
/**
|
|
140
|
+
* Create an instance of RetrievedItem from a JSON string.
|
|
141
|
+
* @param {string} json_string JSON string.
|
|
142
|
+
* @return {module:model/RetrievedItem} An instance of RetrievedItem.
|
|
143
|
+
*/
|
|
144
|
+
_defineProperty(RetrievedItem, "fromJSON", function (json_string) {
|
|
145
|
+
return _RetrievedItem.constructFromObject(JSON.parse(json_string));
|
|
146
|
+
});
|
|
100
147
|
RetrievedItem.prototype['memory'] = undefined;
|
|
101
148
|
|
|
102
149
|
/**
|
|
150
|
+
* Reference to a memory chunk (if retrieved)
|
|
103
151
|
* @member {module:model/ChunkReference} chunk
|
|
104
152
|
*/
|
|
105
153
|
RetrievedItem.prototype['chunk'] = undefined;
|
|
154
|
+
RetrievedItem.OneOf = ["RetrievedItemOneOf", "RetrievedItemOneOf1"];
|
|
106
155
|
var _default = exports["default"] = RetrievedItem;
|
|
@@ -0,0 +1,109 @@
|
|
|
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 RetrievedItemOneOf model module.
|
|
31
|
+
* @module model/RetrievedItemOneOf
|
|
32
|
+
* @version 1.0.0
|
|
33
|
+
*/
|
|
34
|
+
var RetrievedItemOneOf = /*#__PURE__*/function () {
|
|
35
|
+
/**
|
|
36
|
+
* Constructs a new <code>RetrievedItemOneOf</code>.
|
|
37
|
+
* @alias module:model/RetrievedItemOneOf
|
|
38
|
+
* @param memory {Object}
|
|
39
|
+
*/
|
|
40
|
+
function RetrievedItemOneOf(memory) {
|
|
41
|
+
_classCallCheck(this, RetrievedItemOneOf);
|
|
42
|
+
RetrievedItemOneOf.initialize(this, memory);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Initializes the fields of this object.
|
|
47
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
48
|
+
* Only for internal use.
|
|
49
|
+
*/
|
|
50
|
+
return _createClass(RetrievedItemOneOf, null, [{
|
|
51
|
+
key: "initialize",
|
|
52
|
+
value: function initialize(obj, memory) {
|
|
53
|
+
obj['memory'] = memory;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Constructs a <code>RetrievedItemOneOf</code> from a plain JavaScript object, optionally creating a new instance.
|
|
58
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
59
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
60
|
+
* @param {module:model/RetrievedItemOneOf} obj Optional instance to populate.
|
|
61
|
+
* @return {module:model/RetrievedItemOneOf} The populated <code>RetrievedItemOneOf</code> instance.
|
|
62
|
+
*/
|
|
63
|
+
}, {
|
|
64
|
+
key: "constructFromObject",
|
|
65
|
+
value: function constructFromObject(data, obj) {
|
|
66
|
+
if (data) {
|
|
67
|
+
obj = obj || new RetrievedItemOneOf();
|
|
68
|
+
if (data.hasOwnProperty('memory')) {
|
|
69
|
+
obj['memory'] = _ApiClient["default"].convertToType(data['memory'], Object);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
return obj;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Validates the JSON data with respect to <code>RetrievedItemOneOf</code>.
|
|
77
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
78
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>RetrievedItemOneOf</code>.
|
|
79
|
+
*/
|
|
80
|
+
}, {
|
|
81
|
+
key: "validateJSON",
|
|
82
|
+
value: function validateJSON(data) {
|
|
83
|
+
// check to make sure all required properties are present in the JSON string
|
|
84
|
+
var _iterator = _createForOfIteratorHelper(RetrievedItemOneOf.RequiredProperties),
|
|
85
|
+
_step;
|
|
86
|
+
try {
|
|
87
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
88
|
+
var property = _step.value;
|
|
89
|
+
// null-value check for oneOf discrimination (see build.sh)
|
|
90
|
+
if (!data.hasOwnProperty(property) || data[property] === null || data[property] === undefined) {
|
|
91
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
} catch (err) {
|
|
95
|
+
_iterator.e(err);
|
|
96
|
+
} finally {
|
|
97
|
+
_iterator.f();
|
|
98
|
+
}
|
|
99
|
+
return true;
|
|
100
|
+
}
|
|
101
|
+
}]);
|
|
102
|
+
}();
|
|
103
|
+
RetrievedItemOneOf.RequiredProperties = ["memory"];
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* @member {Object} memory
|
|
107
|
+
*/
|
|
108
|
+
RetrievedItemOneOf.prototype['memory'] = undefined;
|
|
109
|
+
var _default = exports["default"] = RetrievedItemOneOf;
|
|
@@ -0,0 +1,109 @@
|
|
|
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 RetrievedItemOneOf1 model module.
|
|
31
|
+
* @module model/RetrievedItemOneOf1
|
|
32
|
+
* @version 1.0.0
|
|
33
|
+
*/
|
|
34
|
+
var RetrievedItemOneOf1 = /*#__PURE__*/function () {
|
|
35
|
+
/**
|
|
36
|
+
* Constructs a new <code>RetrievedItemOneOf1</code>.
|
|
37
|
+
* @alias module:model/RetrievedItemOneOf1
|
|
38
|
+
* @param chunk {Object}
|
|
39
|
+
*/
|
|
40
|
+
function RetrievedItemOneOf1(chunk) {
|
|
41
|
+
_classCallCheck(this, RetrievedItemOneOf1);
|
|
42
|
+
RetrievedItemOneOf1.initialize(this, chunk);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Initializes the fields of this object.
|
|
47
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
48
|
+
* Only for internal use.
|
|
49
|
+
*/
|
|
50
|
+
return _createClass(RetrievedItemOneOf1, null, [{
|
|
51
|
+
key: "initialize",
|
|
52
|
+
value: function initialize(obj, chunk) {
|
|
53
|
+
obj['chunk'] = chunk;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Constructs a <code>RetrievedItemOneOf1</code> from a plain JavaScript object, optionally creating a new instance.
|
|
58
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
59
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
60
|
+
* @param {module:model/RetrievedItemOneOf1} obj Optional instance to populate.
|
|
61
|
+
* @return {module:model/RetrievedItemOneOf1} The populated <code>RetrievedItemOneOf1</code> instance.
|
|
62
|
+
*/
|
|
63
|
+
}, {
|
|
64
|
+
key: "constructFromObject",
|
|
65
|
+
value: function constructFromObject(data, obj) {
|
|
66
|
+
if (data) {
|
|
67
|
+
obj = obj || new RetrievedItemOneOf1();
|
|
68
|
+
if (data.hasOwnProperty('chunk')) {
|
|
69
|
+
obj['chunk'] = _ApiClient["default"].convertToType(data['chunk'], Object);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
return obj;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Validates the JSON data with respect to <code>RetrievedItemOneOf1</code>.
|
|
77
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
78
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>RetrievedItemOneOf1</code>.
|
|
79
|
+
*/
|
|
80
|
+
}, {
|
|
81
|
+
key: "validateJSON",
|
|
82
|
+
value: function validateJSON(data) {
|
|
83
|
+
// check to make sure all required properties are present in the JSON string
|
|
84
|
+
var _iterator = _createForOfIteratorHelper(RetrievedItemOneOf1.RequiredProperties),
|
|
85
|
+
_step;
|
|
86
|
+
try {
|
|
87
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
88
|
+
var property = _step.value;
|
|
89
|
+
// null-value check for oneOf discrimination (see build.sh)
|
|
90
|
+
if (!data.hasOwnProperty(property) || data[property] === null || data[property] === undefined) {
|
|
91
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
} catch (err) {
|
|
95
|
+
_iterator.e(err);
|
|
96
|
+
} finally {
|
|
97
|
+
_iterator.f();
|
|
98
|
+
}
|
|
99
|
+
return true;
|
|
100
|
+
}
|
|
101
|
+
}]);
|
|
102
|
+
}();
|
|
103
|
+
RetrievedItemOneOf1.RequiredProperties = ["chunk"];
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* @member {Object} chunk
|
|
107
|
+
*/
|
|
108
|
+
RetrievedItemOneOf1.prototype['chunk'] = undefined;
|
|
109
|
+
var _default = exports["default"] = RetrievedItemOneOf1;
|
|
@@ -7,6 +7,9 @@ exports["default"] = void 0;
|
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
8
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
9
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; }
|
|
10
13
|
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
11
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); } }
|
|
12
15
|
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
@@ -32,10 +35,11 @@ var SecretReference = /*#__PURE__*/function () {
|
|
|
32
35
|
/**
|
|
33
36
|
* Constructs a new <code>SecretReference</code>.
|
|
34
37
|
* @alias module:model/SecretReference
|
|
38
|
+
* @param uri {String} URI identifying where the secret can be resolved (e.g., vault://, env://)
|
|
35
39
|
*/
|
|
36
|
-
function SecretReference() {
|
|
40
|
+
function SecretReference(uri) {
|
|
37
41
|
_classCallCheck(this, SecretReference);
|
|
38
|
-
SecretReference.initialize(this);
|
|
42
|
+
SecretReference.initialize(this, uri);
|
|
39
43
|
}
|
|
40
44
|
|
|
41
45
|
/**
|
|
@@ -45,7 +49,9 @@ var SecretReference = /*#__PURE__*/function () {
|
|
|
45
49
|
*/
|
|
46
50
|
return _createClass(SecretReference, null, [{
|
|
47
51
|
key: "initialize",
|
|
48
|
-
value: function initialize(obj) {
|
|
52
|
+
value: function initialize(obj, uri) {
|
|
53
|
+
obj['uri'] = uri;
|
|
54
|
+
}
|
|
49
55
|
|
|
50
56
|
/**
|
|
51
57
|
* Constructs a <code>SecretReference</code> from a plain JavaScript object, optionally creating a new instance.
|
|
@@ -79,7 +85,22 @@ var SecretReference = /*#__PURE__*/function () {
|
|
|
79
85
|
}, {
|
|
80
86
|
key: "validateJSON",
|
|
81
87
|
value: function validateJSON(data) {
|
|
82
|
-
//
|
|
88
|
+
// check to make sure all required properties are present in the JSON string
|
|
89
|
+
var _iterator = _createForOfIteratorHelper(SecretReference.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
|
+
// ensure the json data is a string
|
|
99
|
+
} catch (err) {
|
|
100
|
+
_iterator.e(err);
|
|
101
|
+
} finally {
|
|
102
|
+
_iterator.f();
|
|
103
|
+
}
|
|
83
104
|
if (data['uri'] && !(typeof data['uri'] === 'string' || data['uri'] instanceof String)) {
|
|
84
105
|
throw new Error("Expected the field `uri` to be a primitive type in the JSON string but got " + data['uri']);
|
|
85
106
|
}
|
|
@@ -87,6 +108,8 @@ var SecretReference = /*#__PURE__*/function () {
|
|
|
87
108
|
}
|
|
88
109
|
}]);
|
|
89
110
|
}();
|
|
111
|
+
SecretReference.RequiredProperties = ["uri"];
|
|
112
|
+
|
|
90
113
|
/**
|
|
91
114
|
* URI identifying where the secret can be resolved (e.g., vault://, env://)
|
|
92
115
|
* @member {String} uri
|
|
@@ -39,7 +39,7 @@ var SentenceChunkingConfiguration = /*#__PURE__*/function () {
|
|
|
39
39
|
* @alias module:model/SentenceChunkingConfiguration
|
|
40
40
|
* @param maxChunkSize {Number} Maximum size of a chunk
|
|
41
41
|
* @param minChunkSize {Number} Minimum size before creating a new chunk
|
|
42
|
-
* @param lengthMeasurement {module:model/LengthMeasurement}
|
|
42
|
+
* @param lengthMeasurement {module:model/LengthMeasurement} How to measure chunk length
|
|
43
43
|
*/
|
|
44
44
|
function SentenceChunkingConfiguration(maxChunkSize, minChunkSize, lengthMeasurement) {
|
|
45
45
|
_classCallCheck(this, SentenceChunkingConfiguration);
|
|
@@ -81,7 +81,7 @@ var SentenceChunkingConfiguration = /*#__PURE__*/function () {
|
|
|
81
81
|
obj['enableLanguageDetection'] = _ApiClient["default"].convertToType(data['enableLanguageDetection'], 'Boolean');
|
|
82
82
|
}
|
|
83
83
|
if (data.hasOwnProperty('lengthMeasurement')) {
|
|
84
|
-
obj['lengthMeasurement'] =
|
|
84
|
+
obj['lengthMeasurement'] = _ApiClient["default"].convertToType(data['lengthMeasurement'], _LengthMeasurement["default"]);
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
return obj;
|
|
@@ -135,6 +135,7 @@ SentenceChunkingConfiguration.prototype['minChunkSize'] = undefined;
|
|
|
135
135
|
SentenceChunkingConfiguration.prototype['enableLanguageDetection'] = undefined;
|
|
136
136
|
|
|
137
137
|
/**
|
|
138
|
+
* How to measure chunk length
|
|
138
139
|
* @member {module:model/LengthMeasurement} lengthMeasurement
|
|
139
140
|
*/
|
|
140
141
|
SentenceChunkingConfiguration.prototype['lengthMeasurement'] = undefined;
|
|
@@ -0,0 +1,63 @@
|
|
|
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 _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
11
|
+
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); } }
|
|
12
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
13
|
+
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
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
15
|
+
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); } /**
|
|
16
|
+
*
|
|
17
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
18
|
+
*
|
|
19
|
+
* The version of the OpenAPI document:
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
23
|
+
* https://openapi-generator.tech
|
|
24
|
+
* Do not edit the class manually.
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
/**
|
|
28
|
+
* Enum class SortOrder.
|
|
29
|
+
* @enum {}
|
|
30
|
+
* @readonly
|
|
31
|
+
*/
|
|
32
|
+
var SortOrder = exports["default"] = /*#__PURE__*/function () {
|
|
33
|
+
function SortOrder() {
|
|
34
|
+
_classCallCheck(this, SortOrder);
|
|
35
|
+
/**
|
|
36
|
+
* value: "ASCENDING"
|
|
37
|
+
* @const
|
|
38
|
+
*/
|
|
39
|
+
_defineProperty(this, "ASCENDING", "ASCENDING");
|
|
40
|
+
/**
|
|
41
|
+
* value: "DESCENDING"
|
|
42
|
+
* @const
|
|
43
|
+
*/
|
|
44
|
+
_defineProperty(this, "DESCENDING", "DESCENDING");
|
|
45
|
+
/**
|
|
46
|
+
* value: "SORT_ORDER_UNSPECIFIED"
|
|
47
|
+
* @const
|
|
48
|
+
*/
|
|
49
|
+
_defineProperty(this, "SORT_ORDER_UNSPECIFIED", "SORT_ORDER_UNSPECIFIED");
|
|
50
|
+
}
|
|
51
|
+
return _createClass(SortOrder, null, [{
|
|
52
|
+
key: "constructFromObject",
|
|
53
|
+
value:
|
|
54
|
+
/**
|
|
55
|
+
* Returns a <code>SortOrder</code> enum value from a Javascript object name.
|
|
56
|
+
* @param {Object} data The plain JavaScript object containing the name of the enum value.
|
|
57
|
+
* @return {module:model/SortOrder} The enum <code>SortOrder</code> value.
|
|
58
|
+
*/
|
|
59
|
+
function constructFromObject(object) {
|
|
60
|
+
return object;
|
|
61
|
+
}
|
|
62
|
+
}]);
|
|
63
|
+
}();
|
package/dist/model/Space.js
CHANGED
|
@@ -40,6 +40,7 @@ var Space = /*#__PURE__*/function () {
|
|
|
40
40
|
* @alias module:model/Space
|
|
41
41
|
* @param spaceId {String} The unique identifier for this space.
|
|
42
42
|
* @param name {String} The name of the space.
|
|
43
|
+
* @param labels {Object.<String, String>} Key-value pairs of metadata associated with the space.
|
|
43
44
|
* @param spaceEmbedders {Array.<module:model/SpaceEmbedder>} The list of embedders associated with this space.
|
|
44
45
|
* @param createdAt {Number} Timestamp when this space was created (milliseconds since epoch).
|
|
45
46
|
* @param updatedAt {Number} Timestamp when this space was last updated (milliseconds since epoch).
|
|
@@ -48,9 +49,9 @@ var Space = /*#__PURE__*/function () {
|
|
|
48
49
|
* @param updatedById {String} The ID of the user who last updated this space.
|
|
49
50
|
* @param publicRead {Boolean} Whether this space is publicly readable by all users.
|
|
50
51
|
*/
|
|
51
|
-
function Space(spaceId, name, spaceEmbedders, createdAt, updatedAt, ownerId, createdById, updatedById, publicRead) {
|
|
52
|
+
function Space(spaceId, name, labels, spaceEmbedders, createdAt, updatedAt, ownerId, createdById, updatedById, publicRead) {
|
|
52
53
|
_classCallCheck(this, Space);
|
|
53
|
-
Space.initialize(this, spaceId, name, spaceEmbedders, createdAt, updatedAt, ownerId, createdById, updatedById, publicRead);
|
|
54
|
+
Space.initialize(this, spaceId, name, labels, spaceEmbedders, createdAt, updatedAt, ownerId, createdById, updatedById, publicRead);
|
|
54
55
|
}
|
|
55
56
|
|
|
56
57
|
/**
|
|
@@ -60,9 +61,10 @@ var Space = /*#__PURE__*/function () {
|
|
|
60
61
|
*/
|
|
61
62
|
return _createClass(Space, null, [{
|
|
62
63
|
key: "initialize",
|
|
63
|
-
value: function initialize(obj, spaceId, name, spaceEmbedders, createdAt, updatedAt, ownerId, createdById, updatedById, publicRead) {
|
|
64
|
+
value: function initialize(obj, spaceId, name, labels, spaceEmbedders, createdAt, updatedAt, ownerId, createdById, updatedById, publicRead) {
|
|
64
65
|
obj['spaceId'] = spaceId;
|
|
65
66
|
obj['name'] = name;
|
|
67
|
+
obj['labels'] = labels;
|
|
66
68
|
obj['spaceEmbedders'] = spaceEmbedders;
|
|
67
69
|
obj['createdAt'] = createdAt;
|
|
68
70
|
obj['updatedAt'] = updatedAt;
|
|
@@ -117,7 +119,7 @@ var Space = /*#__PURE__*/function () {
|
|
|
117
119
|
obj['publicRead'] = _ApiClient["default"].convertToType(data['publicRead'], 'Boolean');
|
|
118
120
|
}
|
|
119
121
|
if (data.hasOwnProperty('defaultChunkingConfig')) {
|
|
120
|
-
obj['defaultChunkingConfig'] =
|
|
122
|
+
obj['defaultChunkingConfig'] = _ApiClient["default"].convertToType(data['defaultChunkingConfig'], _ChunkingConfiguration["default"]);
|
|
121
123
|
}
|
|
122
124
|
}
|
|
123
125
|
return obj;
|
|
@@ -196,7 +198,7 @@ var Space = /*#__PURE__*/function () {
|
|
|
196
198
|
}
|
|
197
199
|
}]);
|
|
198
200
|
}();
|
|
199
|
-
Space.RequiredProperties = ["spaceId", "name", "spaceEmbedders", "createdAt", "updatedAt", "ownerId", "createdById", "updatedById", "publicRead"];
|
|
201
|
+
Space.RequiredProperties = ["spaceId", "name", "labels", "spaceEmbedders", "createdAt", "updatedAt", "ownerId", "createdById", "updatedById", "publicRead"];
|
|
200
202
|
|
|
201
203
|
/**
|
|
202
204
|
* The unique identifier for this space.
|
|
@@ -259,6 +261,7 @@ Space.prototype['updatedById'] = undefined;
|
|
|
259
261
|
Space.prototype['publicRead'] = undefined;
|
|
260
262
|
|
|
261
263
|
/**
|
|
264
|
+
* Default chunking strategy for memories in this space
|
|
262
265
|
* @member {module:model/ChunkingConfiguration} defaultChunkingConfig
|
|
263
266
|
*/
|
|
264
267
|
Space.prototype['defaultChunkingConfig'] = undefined;
|