@pairsystems/goodmem-client 1.0.0-beta.1

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 (36) hide show
  1. package/README.md +200 -0
  2. package/dist/ApiClient.js +718 -0
  3. package/dist/api/APIKeysApi.js +188 -0
  4. package/dist/api/EmbeddersApi.js +232 -0
  5. package/dist/api/MemoriesApi.js +290 -0
  6. package/dist/api/SpacesApi.js +240 -0
  7. package/dist/api/SystemApi.js +77 -0
  8. package/dist/api/UsersApi.js +86 -0
  9. package/dist/client.js +150 -0
  10. package/dist/index.js +230 -0
  11. package/dist/model/ApiKeyResponse.js +203 -0
  12. package/dist/model/BatchMemoryCreationRequest.js +140 -0
  13. package/dist/model/BatchMemoryDeletionRequest.js +122 -0
  14. package/dist/model/BatchMemoryRetrievalRequest.js +131 -0
  15. package/dist/model/CreateApiKeyRequest.js +98 -0
  16. package/dist/model/CreateApiKeyResponse.js +105 -0
  17. package/dist/model/EmbedderCreationRequest.js +288 -0
  18. package/dist/model/EmbedderResponse.js +336 -0
  19. package/dist/model/ListApiKeysResponse.js +112 -0
  20. package/dist/model/ListEmbeddersResponse.js +132 -0
  21. package/dist/model/ListSpacesResponse.js +125 -0
  22. package/dist/model/Memory.js +248 -0
  23. package/dist/model/MemoryCreationRequest.js +187 -0
  24. package/dist/model/MemoryListResponse.js +145 -0
  25. package/dist/model/Modality.js +68 -0
  26. package/dist/model/ProviderType.js +63 -0
  27. package/dist/model/Space.js +251 -0
  28. package/dist/model/SpaceCreationRequest.js +178 -0
  29. package/dist/model/SpaceEmbedder.js +192 -0
  30. package/dist/model/SpaceEmbedderConfig.js +125 -0
  31. package/dist/model/SystemInitResponse.js +151 -0
  32. package/dist/model/UpdateApiKeyRequest.js +121 -0
  33. package/dist/model/UpdateEmbedderRequest.js +244 -0
  34. package/dist/model/UpdateSpaceRequest.js +166 -0
  35. package/dist/model/UserResponse.js +179 -0
  36. package/package.json +78 -0
@@ -0,0 +1,187 @@
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
+ * GoodMem API
19
+ * API for interacting with the GoodMem service, providing vector-based memory storage and retrieval with multiple embedder support. The service enables creation of memory spaces, storing memories with vector representations, and efficient similarity-based retrieval.
20
+ *
21
+ * The version of the OpenAPI document: v1
22
+ * Contact: support@goodmem.io
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 MemoryCreationRequest model module.
31
+ * @module model/MemoryCreationRequest
32
+ * @version v1
33
+ */
34
+ var MemoryCreationRequest = /*#__PURE__*/function () {
35
+ /**
36
+ * Constructs a new <code>MemoryCreationRequest</code>.
37
+ * Request body for creating a new Memory. A Memory represents content stored in a space.
38
+ * @alias module:model/MemoryCreationRequest
39
+ * @param spaceId {String} ID of the space where this memory will be stored
40
+ * @param contentType {String} MIME type of the content
41
+ */
42
+ function MemoryCreationRequest(spaceId, contentType) {
43
+ _classCallCheck(this, MemoryCreationRequest);
44
+ MemoryCreationRequest.initialize(this, spaceId, contentType);
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(MemoryCreationRequest, null, [{
53
+ key: "initialize",
54
+ value: function initialize(obj, spaceId, contentType) {
55
+ obj['spaceId'] = spaceId;
56
+ obj['contentType'] = contentType;
57
+ }
58
+
59
+ /**
60
+ * Constructs a <code>MemoryCreationRequest</code> from a plain JavaScript object, optionally creating a new instance.
61
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
62
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
63
+ * @param {module:model/MemoryCreationRequest} obj Optional instance to populate.
64
+ * @return {module:model/MemoryCreationRequest} The populated <code>MemoryCreationRequest</code> instance.
65
+ */
66
+ }, {
67
+ key: "constructFromObject",
68
+ value: function constructFromObject(data, obj) {
69
+ if (data) {
70
+ obj = obj || new MemoryCreationRequest();
71
+ if (data.hasOwnProperty('validate')) {
72
+ obj['validate'] = _ApiClient["default"].convertToType(data['validate'], Object);
73
+ }
74
+ if (data.hasOwnProperty('spaceId')) {
75
+ obj['spaceId'] = _ApiClient["default"].convertToType(data['spaceId'], 'String');
76
+ }
77
+ if (data.hasOwnProperty('originalContent')) {
78
+ obj['originalContent'] = _ApiClient["default"].convertToType(data['originalContent'], 'String');
79
+ }
80
+ if (data.hasOwnProperty('originalContentB64')) {
81
+ obj['originalContentB64'] = _ApiClient["default"].convertToType(data['originalContentB64'], 'String');
82
+ }
83
+ if (data.hasOwnProperty('originalContentRef')) {
84
+ obj['originalContentRef'] = _ApiClient["default"].convertToType(data['originalContentRef'], 'String');
85
+ }
86
+ if (data.hasOwnProperty('contentType')) {
87
+ obj['contentType'] = _ApiClient["default"].convertToType(data['contentType'], 'String');
88
+ }
89
+ if (data.hasOwnProperty('metadata')) {
90
+ obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], {
91
+ 'String': Object
92
+ });
93
+ }
94
+ }
95
+ return obj;
96
+ }
97
+
98
+ /**
99
+ * Validates the JSON data with respect to <code>MemoryCreationRequest</code>.
100
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
101
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>MemoryCreationRequest</code>.
102
+ */
103
+ }, {
104
+ key: "validateJSON",
105
+ value: function validateJSON(data) {
106
+ // check to make sure all required properties are present in the JSON string
107
+ var _iterator = _createForOfIteratorHelper(MemoryCreationRequest.RequiredProperties),
108
+ _step;
109
+ try {
110
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
111
+ var property = _step.value;
112
+ if (!data.hasOwnProperty(property)) {
113
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
114
+ }
115
+ }
116
+ // ensure the json data is a string
117
+ } catch (err) {
118
+ _iterator.e(err);
119
+ } finally {
120
+ _iterator.f();
121
+ }
122
+ if (data['spaceId'] && !(typeof data['spaceId'] === 'string' || data['spaceId'] instanceof String)) {
123
+ throw new Error("Expected the field `spaceId` to be a primitive type in the JSON string but got " + data['spaceId']);
124
+ }
125
+ // ensure the json data is a string
126
+ if (data['originalContent'] && !(typeof data['originalContent'] === 'string' || data['originalContent'] instanceof String)) {
127
+ throw new Error("Expected the field `originalContent` to be a primitive type in the JSON string but got " + data['originalContent']);
128
+ }
129
+ // ensure the json data is a string
130
+ if (data['originalContentB64'] && !(typeof data['originalContentB64'] === 'string' || data['originalContentB64'] instanceof String)) {
131
+ throw new Error("Expected the field `originalContentB64` to be a primitive type in the JSON string but got " + data['originalContentB64']);
132
+ }
133
+ // ensure the json data is a string
134
+ if (data['originalContentRef'] && !(typeof data['originalContentRef'] === 'string' || data['originalContentRef'] instanceof String)) {
135
+ throw new Error("Expected the field `originalContentRef` to be a primitive type in the JSON string but got " + data['originalContentRef']);
136
+ }
137
+ // ensure the json data is a string
138
+ if (data['contentType'] && !(typeof data['contentType'] === 'string' || data['contentType'] instanceof String)) {
139
+ throw new Error("Expected the field `contentType` to be a primitive type in the JSON string but got " + data['contentType']);
140
+ }
141
+ return true;
142
+ }
143
+ }]);
144
+ }();
145
+ MemoryCreationRequest.RequiredProperties = ["spaceId", "contentType"];
146
+
147
+ /**
148
+ * @member {Object} validate
149
+ */
150
+ MemoryCreationRequest.prototype['validate'] = undefined;
151
+
152
+ /**
153
+ * ID of the space where this memory will be stored
154
+ * @member {String} spaceId
155
+ */
156
+ MemoryCreationRequest.prototype['spaceId'] = undefined;
157
+
158
+ /**
159
+ * Original content as plain text (use either this or originalContentB64)
160
+ * @member {String} originalContent
161
+ */
162
+ MemoryCreationRequest.prototype['originalContent'] = undefined;
163
+
164
+ /**
165
+ * Original content as base64-encoded binary data (use either this or originalContent)
166
+ * @member {String} originalContentB64
167
+ */
168
+ MemoryCreationRequest.prototype['originalContentB64'] = undefined;
169
+
170
+ /**
171
+ * Reference to external content location
172
+ * @member {String} originalContentRef
173
+ */
174
+ MemoryCreationRequest.prototype['originalContentRef'] = undefined;
175
+
176
+ /**
177
+ * MIME type of the content
178
+ * @member {String} contentType
179
+ */
180
+ MemoryCreationRequest.prototype['contentType'] = undefined;
181
+
182
+ /**
183
+ * Additional metadata for the memory
184
+ * @member {Object.<String, Object>} metadata
185
+ */
186
+ MemoryCreationRequest.prototype['metadata'] = undefined;
187
+ var _default = exports["default"] = MemoryCreationRequest;
@@ -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 _Memory = _interopRequireDefault(require("./Memory"));
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
+ * GoodMem API
20
+ * API for interacting with the GoodMem service, providing vector-based memory storage and retrieval with multiple embedder support. The service enables creation of memory spaces, storing memories with vector representations, and efficient similarity-based retrieval.
21
+ *
22
+ * The version of the OpenAPI document: v1
23
+ * Contact: support@goodmem.io
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 MemoryListResponse model module.
32
+ * @module model/MemoryListResponse
33
+ * @version v1
34
+ */
35
+ var MemoryListResponse = /*#__PURE__*/function () {
36
+ /**
37
+ * Constructs a new <code>MemoryListResponse</code>.
38
+ * Response containing a list of memories within a space
39
+ * @alias module:model/MemoryListResponse
40
+ * @param memories {Array.<module:model/Memory>} Array of memories in the space
41
+ */
42
+ function MemoryListResponse(memories) {
43
+ _classCallCheck(this, MemoryListResponse);
44
+ MemoryListResponse.initialize(this, memories);
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(MemoryListResponse, null, [{
53
+ key: "initialize",
54
+ value: function initialize(obj, memories) {
55
+ obj['memories'] = memories;
56
+ }
57
+
58
+ /**
59
+ * Constructs a <code>MemoryListResponse</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/MemoryListResponse} obj Optional instance to populate.
63
+ * @return {module:model/MemoryListResponse} The populated <code>MemoryListResponse</code> instance.
64
+ */
65
+ }, {
66
+ key: "constructFromObject",
67
+ value: function constructFromObject(data, obj) {
68
+ if (data) {
69
+ obj = obj || new MemoryListResponse();
70
+ if (data.hasOwnProperty('memories')) {
71
+ obj['memories'] = _ApiClient["default"].convertToType(data['memories'], [_Memory["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>MemoryListResponse</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>MemoryListResponse</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(MemoryListResponse.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['memories']) {
104
+ // data not null
105
+ // ensure the json data is an array
106
+ if (!Array.isArray(data['memories'])) {
107
+ throw new Error("Expected the field `memories` to be an array in the JSON data but got " + data['memories']);
108
+ }
109
+ // validate the optional field `memories` (array)
110
+ var _iterator2 = _createForOfIteratorHelper(data['memories']),
111
+ _step2;
112
+ try {
113
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
114
+ var item = _step2.value;
115
+ _Memory["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
+ MemoryListResponse.RequiredProperties = ["memories"];
133
+
134
+ /**
135
+ * Array of memories in the space
136
+ * @member {Array.<module:model/Memory>} memories
137
+ */
138
+ MemoryListResponse.prototype['memories'] = undefined;
139
+
140
+ /**
141
+ * Token for retrieving the next page of results
142
+ * @member {String} nextToken
143
+ */
144
+ MemoryListResponse.prototype['nextToken'] = undefined;
145
+ var _default = exports["default"] = MemoryListResponse;
@@ -0,0 +1,68 @@
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
+ * GoodMem API
17
+ * API for interacting with the GoodMem service, providing vector-based memory storage and retrieval with multiple embedder support. The service enables creation of memory spaces, storing memories with vector representations, and efficient similarity-based retrieval.
18
+ *
19
+ * The version of the OpenAPI document: v1
20
+ * Contact: support@goodmem.io
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 Modality.
29
+ * @enum {}
30
+ * @readonly
31
+ */
32
+ var Modality = exports["default"] = /*#__PURE__*/function () {
33
+ function Modality() {
34
+ _classCallCheck(this, Modality);
35
+ /**
36
+ * value: "TEXT"
37
+ * @const
38
+ */
39
+ _defineProperty(this, "TEXT", "TEXT");
40
+ /**
41
+ * value: "IMAGE"
42
+ * @const
43
+ */
44
+ _defineProperty(this, "IMAGE", "IMAGE");
45
+ /**
46
+ * value: "AUDIO"
47
+ * @const
48
+ */
49
+ _defineProperty(this, "AUDIO", "AUDIO");
50
+ /**
51
+ * value: "VIDEO"
52
+ * @const
53
+ */
54
+ _defineProperty(this, "VIDEO", "VIDEO");
55
+ }
56
+ return _createClass(Modality, null, [{
57
+ key: "constructFromObject",
58
+ value:
59
+ /**
60
+ * Returns a <code>Modality</code> enum value from a Javascript object name.
61
+ * @param {Object} data The plain JavaScript object containing the name of the enum value.
62
+ * @return {module:model/Modality} The enum <code>Modality</code> value.
63
+ */
64
+ function constructFromObject(object) {
65
+ return object;
66
+ }
67
+ }]);
68
+ }();
@@ -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
+ * GoodMem API
17
+ * API for interacting with the GoodMem service, providing vector-based memory storage and retrieval with multiple embedder support. The service enables creation of memory spaces, storing memories with vector representations, and efficient similarity-based retrieval.
18
+ *
19
+ * The version of the OpenAPI document: v1
20
+ * Contact: support@goodmem.io
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 ProviderType.
29
+ * @enum {}
30
+ * @readonly
31
+ */
32
+ var ProviderType = exports["default"] = /*#__PURE__*/function () {
33
+ function ProviderType() {
34
+ _classCallCheck(this, ProviderType);
35
+ /**
36
+ * value: "OPENAI"
37
+ * @const
38
+ */
39
+ _defineProperty(this, "OPENAI", "OPENAI");
40
+ /**
41
+ * value: "VLLM"
42
+ * @const
43
+ */
44
+ _defineProperty(this, "VLLM", "VLLM");
45
+ /**
46
+ * value: "TEI"
47
+ * @const
48
+ */
49
+ _defineProperty(this, "TEI", "TEI");
50
+ }
51
+ return _createClass(ProviderType, null, [{
52
+ key: "constructFromObject",
53
+ value:
54
+ /**
55
+ * Returns a <code>ProviderType</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/ProviderType} The enum <code>ProviderType</code> value.
58
+ */
59
+ function constructFromObject(object) {
60
+ return object;
61
+ }
62
+ }]);
63
+ }();