@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.
- package/README.md +24 -4
- package/dist/api/EmbeddersApi.js +25 -10
- package/dist/api/LLMsApi.js +25 -10
- package/dist/api/MemoriesApi.js +186 -61
- package/dist/api/RerankersApi.js +25 -10
- package/dist/api/SpacesApi.js +31 -16
- package/dist/index.js +133 -7
- 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 +2 -1
- 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/HnswOptions.js +2 -1
- 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 +30 -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 +12 -6
- 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
|
@@ -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;
|
|
@@ -39,11 +39,12 @@ var SpaceCreationRequest = /*#__PURE__*/function () {
|
|
|
39
39
|
* Request body for creating a new Space. A Space is a container for organizing related memories with vector embeddings.
|
|
40
40
|
* @alias module:model/SpaceCreationRequest
|
|
41
41
|
* @param name {String} The desired name for the space. Must be unique within the user's scope.
|
|
42
|
-
* @param
|
|
42
|
+
* @param spaceEmbedders {Array.<module:model/SpaceEmbedderConfig>} List of embedder configurations to associate with this space. At least one embedder configuration is required. Each specifies an embedder ID and a relative default retrieval weight used when no per-request overrides are provided.
|
|
43
|
+
* @param defaultChunkingConfig {module:model/ChunkingConfiguration} Default chunking strategy for memories in this space
|
|
43
44
|
*/
|
|
44
|
-
function SpaceCreationRequest(name, defaultChunkingConfig) {
|
|
45
|
+
function SpaceCreationRequest(name, spaceEmbedders, defaultChunkingConfig) {
|
|
45
46
|
_classCallCheck(this, SpaceCreationRequest);
|
|
46
|
-
SpaceCreationRequest.initialize(this, name, defaultChunkingConfig);
|
|
47
|
+
SpaceCreationRequest.initialize(this, name, spaceEmbedders, defaultChunkingConfig);
|
|
47
48
|
}
|
|
48
49
|
|
|
49
50
|
/**
|
|
@@ -53,8 +54,10 @@ var SpaceCreationRequest = /*#__PURE__*/function () {
|
|
|
53
54
|
*/
|
|
54
55
|
return _createClass(SpaceCreationRequest, null, [{
|
|
55
56
|
key: "initialize",
|
|
56
|
-
value: function initialize(obj, name, defaultChunkingConfig) {
|
|
57
|
+
value: function initialize(obj, name, spaceEmbedders, defaultChunkingConfig) {
|
|
57
58
|
obj['name'] = name;
|
|
59
|
+
obj['spaceEmbedders'] = spaceEmbedders;
|
|
60
|
+
obj['publicRead'] = false;
|
|
58
61
|
obj['defaultChunkingConfig'] = defaultChunkingConfig;
|
|
59
62
|
}
|
|
60
63
|
|
|
@@ -88,7 +91,7 @@ var SpaceCreationRequest = /*#__PURE__*/function () {
|
|
|
88
91
|
obj['ownerId'] = _ApiClient["default"].convertToType(data['ownerId'], 'String');
|
|
89
92
|
}
|
|
90
93
|
if (data.hasOwnProperty('defaultChunkingConfig')) {
|
|
91
|
-
obj['defaultChunkingConfig'] =
|
|
94
|
+
obj['defaultChunkingConfig'] = _ApiClient["default"].convertToType(data['defaultChunkingConfig'], _ChunkingConfiguration["default"]);
|
|
92
95
|
}
|
|
93
96
|
if (data.hasOwnProperty('spaceId')) {
|
|
94
97
|
obj['spaceId'] = _ApiClient["default"].convertToType(data['spaceId'], 'String');
|
|
@@ -162,7 +165,7 @@ var SpaceCreationRequest = /*#__PURE__*/function () {
|
|
|
162
165
|
}
|
|
163
166
|
}]);
|
|
164
167
|
}();
|
|
165
|
-
SpaceCreationRequest.RequiredProperties = ["name", "defaultChunkingConfig"];
|
|
168
|
+
SpaceCreationRequest.RequiredProperties = ["name", "spaceEmbedders", "defaultChunkingConfig"];
|
|
166
169
|
|
|
167
170
|
/**
|
|
168
171
|
* The desired name for the space. Must be unique within the user's scope.
|
|
@@ -177,7 +180,7 @@ SpaceCreationRequest.prototype['name'] = undefined;
|
|
|
177
180
|
SpaceCreationRequest.prototype['labels'] = undefined;
|
|
178
181
|
|
|
179
182
|
/**
|
|
180
|
-
* List of embedder configurations to associate with this space. Each specifies an embedder ID and a relative default retrieval weight used when no per-request overrides are provided.
|
|
183
|
+
* List of embedder configurations to associate with this space. At least one embedder configuration is required. Each specifies an embedder ID and a relative default retrieval weight used when no per-request overrides are provided.
|
|
181
184
|
* @member {Array.<module:model/SpaceEmbedderConfig>} spaceEmbedders
|
|
182
185
|
*/
|
|
183
186
|
SpaceCreationRequest.prototype['spaceEmbedders'] = undefined;
|
|
@@ -185,8 +188,9 @@ SpaceCreationRequest.prototype['spaceEmbedders'] = undefined;
|
|
|
185
188
|
/**
|
|
186
189
|
* Indicates if the space and its memories can be read by unauthenticated users or users other than the owner. Defaults to false.
|
|
187
190
|
* @member {Boolean} publicRead
|
|
191
|
+
* @default false
|
|
188
192
|
*/
|
|
189
|
-
SpaceCreationRequest.prototype['publicRead'] =
|
|
193
|
+
SpaceCreationRequest.prototype['publicRead'] = false;
|
|
190
194
|
|
|
191
195
|
/**
|
|
192
196
|
* Optional owner ID. If not provided, derived from the authentication context. Requires CREATE_SPACE_ANY permission if specified.
|
|
@@ -195,6 +199,7 @@ SpaceCreationRequest.prototype['publicRead'] = undefined;
|
|
|
195
199
|
SpaceCreationRequest.prototype['ownerId'] = undefined;
|
|
196
200
|
|
|
197
201
|
/**
|
|
202
|
+
* Default chunking strategy for memories in this space
|
|
198
203
|
* @member {module:model/ChunkingConfiguration} defaultChunkingConfig
|
|
199
204
|
*/
|
|
200
205
|
SpaceCreationRequest.prototype['defaultChunkingConfig'] = undefined;
|
|
@@ -52,6 +52,7 @@ var SpaceEmbedderConfig = /*#__PURE__*/function () {
|
|
|
52
52
|
key: "initialize",
|
|
53
53
|
value: function initialize(obj, embedderId) {
|
|
54
54
|
obj['embedderId'] = embedderId;
|
|
55
|
+
obj['defaultRetrievalWeight'] = 1.0;
|
|
55
56
|
}
|
|
56
57
|
|
|
57
58
|
/**
|
|
@@ -118,6 +119,7 @@ SpaceEmbedderConfig.prototype['embedderId'] = undefined;
|
|
|
118
119
|
/**
|
|
119
120
|
* Relative weight for this embedder used by default during retrieval. If omitted, defaults to 1.0; values need not sum to 1 and can be overridden per request.
|
|
120
121
|
* @member {Number} defaultRetrievalWeight
|
|
122
|
+
* @default 1.0
|
|
121
123
|
*/
|
|
122
|
-
SpaceEmbedderConfig.prototype['defaultRetrievalWeight'] =
|
|
124
|
+
SpaceEmbedderConfig.prototype['defaultRetrievalWeight'] = 1.0;
|
|
123
125
|
var _default = exports["default"] = SpaceEmbedderConfig;
|
|
@@ -35,10 +35,10 @@ var SystemInfoResponse = /*#__PURE__*/function () {
|
|
|
35
35
|
/**
|
|
36
36
|
* Constructs a new <code>SystemInfoResponse</code>.
|
|
37
37
|
* @alias module:model/SystemInfoResponse
|
|
38
|
-
* @param major {Number}
|
|
39
|
-
* @param minor {Number}
|
|
40
|
-
* @param patch {Number}
|
|
41
|
-
* @param dirty {Boolean}
|
|
38
|
+
* @param major {Number} Major version component parsed from the advertised semantic version.
|
|
39
|
+
* @param minor {Number} Minor version component parsed from the advertised semantic version.
|
|
40
|
+
* @param patch {Number} Patch version component parsed from the advertised semantic version.
|
|
41
|
+
* @param dirty {Boolean} Whether the running build reports uncommitted workspace changes.
|
|
42
42
|
*/
|
|
43
43
|
function SystemInfoResponse(major, minor, patch, dirty) {
|
|
44
44
|
_classCallCheck(this, SystemInfoResponse);
|
|
@@ -146,46 +146,55 @@ var SystemInfoResponse = /*#__PURE__*/function () {
|
|
|
146
146
|
SystemInfoResponse.RequiredProperties = ["major", "minor", "patch", "dirty"];
|
|
147
147
|
|
|
148
148
|
/**
|
|
149
|
+
* Semantic version string advertised by the running server.
|
|
149
150
|
* @member {String} version
|
|
150
151
|
*/
|
|
151
152
|
SystemInfoResponse.prototype['version'] = undefined;
|
|
152
153
|
|
|
153
154
|
/**
|
|
155
|
+
* Major version component parsed from the advertised semantic version.
|
|
154
156
|
* @member {Number} major
|
|
155
157
|
*/
|
|
156
158
|
SystemInfoResponse.prototype['major'] = undefined;
|
|
157
159
|
|
|
158
160
|
/**
|
|
161
|
+
* Minor version component parsed from the advertised semantic version.
|
|
159
162
|
* @member {Number} minor
|
|
160
163
|
*/
|
|
161
164
|
SystemInfoResponse.prototype['minor'] = undefined;
|
|
162
165
|
|
|
163
166
|
/**
|
|
167
|
+
* Patch version component parsed from the advertised semantic version.
|
|
164
168
|
* @member {Number} patch
|
|
165
169
|
*/
|
|
166
170
|
SystemInfoResponse.prototype['patch'] = undefined;
|
|
167
171
|
|
|
168
172
|
/**
|
|
173
|
+
* Whether the running build reports uncommitted workspace changes.
|
|
169
174
|
* @member {Boolean} dirty
|
|
170
175
|
*/
|
|
171
176
|
SystemInfoResponse.prototype['dirty'] = undefined;
|
|
172
177
|
|
|
173
178
|
/**
|
|
179
|
+
* Git commit SHA baked into the build, when available.
|
|
174
180
|
* @member {String} gitCommit
|
|
175
181
|
*/
|
|
176
182
|
SystemInfoResponse.prototype['gitCommit'] = undefined;
|
|
177
183
|
|
|
178
184
|
/**
|
|
185
|
+
* Git describe output baked into the build, when available.
|
|
179
186
|
* @member {String} gitDescribe
|
|
180
187
|
*/
|
|
181
188
|
SystemInfoResponse.prototype['gitDescribe'] = undefined;
|
|
182
189
|
|
|
183
190
|
/**
|
|
191
|
+
* Build timestamp recorded for this server binary, when available.
|
|
184
192
|
* @member {Date} buildTime
|
|
185
193
|
*/
|
|
186
194
|
SystemInfoResponse.prototype['buildTime'] = undefined;
|
|
187
195
|
|
|
188
196
|
/**
|
|
197
|
+
* Optional capability flags or metadata advertised by the running server.
|
|
189
198
|
* @member {Object.<String, String>} capabilities
|
|
190
199
|
*/
|
|
191
200
|
SystemInfoResponse.prototype['capabilities'] = undefined;
|
|
@@ -60,9 +60,6 @@ var UpdateApiKeyRequest = /*#__PURE__*/function () {
|
|
|
60
60
|
value: function constructFromObject(data, obj) {
|
|
61
61
|
if (data) {
|
|
62
62
|
obj = obj || new UpdateApiKeyRequest();
|
|
63
|
-
if (data.hasOwnProperty('validateLabelStrategy')) {
|
|
64
|
-
obj['validateLabelStrategy'] = _ApiClient["default"].convertToType(data['validateLabelStrategy'], Object);
|
|
65
|
-
}
|
|
66
63
|
if (data.hasOwnProperty('status')) {
|
|
67
64
|
obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String');
|
|
68
65
|
}
|
|
@@ -96,14 +93,9 @@ var UpdateApiKeyRequest = /*#__PURE__*/function () {
|
|
|
96
93
|
}
|
|
97
94
|
}]);
|
|
98
95
|
}();
|
|
99
|
-
/**
|
|
100
|
-
* @member {Object} validateLabelStrategy
|
|
101
|
-
*/
|
|
102
|
-
UpdateApiKeyRequest.prototype['validateLabelStrategy'] = undefined;
|
|
103
|
-
|
|
104
96
|
/**
|
|
105
97
|
* New status for the API key. Allowed values: ACTIVE, INACTIVE.
|
|
106
|
-
* @member {
|
|
98
|
+
* @member {module:model/UpdateApiKeyRequest.StatusEnum} status
|
|
107
99
|
*/
|
|
108
100
|
UpdateApiKeyRequest.prototype['status'] = undefined;
|
|
109
101
|
|
|
@@ -118,4 +110,22 @@ UpdateApiKeyRequest.prototype['replaceLabels'] = undefined;
|
|
|
118
110
|
* @member {Object.<String, String>} mergeLabels
|
|
119
111
|
*/
|
|
120
112
|
UpdateApiKeyRequest.prototype['mergeLabels'] = undefined;
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Allowed values for the <code>status</code> property.
|
|
116
|
+
* @enum {String}
|
|
117
|
+
* @readonly
|
|
118
|
+
*/
|
|
119
|
+
UpdateApiKeyRequest['StatusEnum'] = {
|
|
120
|
+
/**
|
|
121
|
+
* value: "ACTIVE"
|
|
122
|
+
* @const
|
|
123
|
+
*/
|
|
124
|
+
"ACTIVE": "ACTIVE",
|
|
125
|
+
/**
|
|
126
|
+
* value: "INACTIVE"
|
|
127
|
+
* @const
|
|
128
|
+
*/
|
|
129
|
+
"INACTIVE": "INACTIVE"
|
|
130
|
+
};
|
|
121
131
|
var _default = exports["default"] = UpdateApiKeyRequest;
|