@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,166 @@
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 UpdateSpaceRequest model module.
31
+ * @module model/UpdateSpaceRequest
32
+ * @version v1
33
+ */
34
+ var UpdateSpaceRequest = /*#__PURE__*/function () {
35
+ /**
36
+ * Constructs a new <code>UpdateSpaceRequest</code>.
37
+ * Request parameters for updating a space.
38
+ * @alias module:model/UpdateSpaceRequest
39
+ * @param spaceId {String} The unique identifier of the space to update.
40
+ */
41
+ function UpdateSpaceRequest(spaceId) {
42
+ _classCallCheck(this, UpdateSpaceRequest);
43
+ UpdateSpaceRequest.initialize(this, spaceId);
44
+ }
45
+
46
+ /**
47
+ * Initializes the fields of this object.
48
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
49
+ * Only for internal use.
50
+ */
51
+ return _createClass(UpdateSpaceRequest, null, [{
52
+ key: "initialize",
53
+ value: function initialize(obj, spaceId) {
54
+ obj['spaceId'] = spaceId;
55
+ }
56
+
57
+ /**
58
+ * Constructs a <code>UpdateSpaceRequest</code> from a plain JavaScript object, optionally creating a new instance.
59
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
60
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
61
+ * @param {module:model/UpdateSpaceRequest} obj Optional instance to populate.
62
+ * @return {module:model/UpdateSpaceRequest} The populated <code>UpdateSpaceRequest</code> instance.
63
+ */
64
+ }, {
65
+ key: "constructFromObject",
66
+ value: function constructFromObject(data, obj) {
67
+ if (data) {
68
+ obj = obj || new UpdateSpaceRequest();
69
+ if (data.hasOwnProperty('validateLabelStrategy')) {
70
+ obj['validateLabelStrategy'] = _ApiClient["default"].convertToType(data['validateLabelStrategy'], Object);
71
+ }
72
+ if (data.hasOwnProperty('spaceId')) {
73
+ obj['spaceId'] = _ApiClient["default"].convertToType(data['spaceId'], 'String');
74
+ }
75
+ if (data.hasOwnProperty('name')) {
76
+ obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
77
+ }
78
+ if (data.hasOwnProperty('publicRead')) {
79
+ obj['publicRead'] = _ApiClient["default"].convertToType(data['publicRead'], 'Boolean');
80
+ }
81
+ if (data.hasOwnProperty('replaceLabels')) {
82
+ obj['replaceLabels'] = _ApiClient["default"].convertToType(data['replaceLabels'], {
83
+ 'String': 'String'
84
+ });
85
+ }
86
+ if (data.hasOwnProperty('mergeLabels')) {
87
+ obj['mergeLabels'] = _ApiClient["default"].convertToType(data['mergeLabels'], {
88
+ 'String': 'String'
89
+ });
90
+ }
91
+ }
92
+ return obj;
93
+ }
94
+
95
+ /**
96
+ * Validates the JSON data with respect to <code>UpdateSpaceRequest</code>.
97
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
98
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>UpdateSpaceRequest</code>.
99
+ */
100
+ }, {
101
+ key: "validateJSON",
102
+ value: function validateJSON(data) {
103
+ // check to make sure all required properties are present in the JSON string
104
+ var _iterator = _createForOfIteratorHelper(UpdateSpaceRequest.RequiredProperties),
105
+ _step;
106
+ try {
107
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
108
+ var property = _step.value;
109
+ if (!data.hasOwnProperty(property)) {
110
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
111
+ }
112
+ }
113
+ // ensure the json data is a string
114
+ } catch (err) {
115
+ _iterator.e(err);
116
+ } finally {
117
+ _iterator.f();
118
+ }
119
+ if (data['spaceId'] && !(typeof data['spaceId'] === 'string' || data['spaceId'] instanceof String)) {
120
+ throw new Error("Expected the field `spaceId` to be a primitive type in the JSON string but got " + data['spaceId']);
121
+ }
122
+ // ensure the json data is a string
123
+ if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
124
+ throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
125
+ }
126
+ return true;
127
+ }
128
+ }]);
129
+ }();
130
+ UpdateSpaceRequest.RequiredProperties = ["spaceId"];
131
+
132
+ /**
133
+ * @member {Object} validateLabelStrategy
134
+ */
135
+ UpdateSpaceRequest.prototype['validateLabelStrategy'] = undefined;
136
+
137
+ /**
138
+ * The unique identifier of the space to update.
139
+ * @member {String} spaceId
140
+ */
141
+ UpdateSpaceRequest.prototype['spaceId'] = undefined;
142
+
143
+ /**
144
+ * The new name for the space.
145
+ * @member {String} name
146
+ */
147
+ UpdateSpaceRequest.prototype['name'] = undefined;
148
+
149
+ /**
150
+ * Whether the space is publicly readable by all users.
151
+ * @member {Boolean} publicRead
152
+ */
153
+ UpdateSpaceRequest.prototype['publicRead'] = undefined;
154
+
155
+ /**
156
+ * Labels to replace all existing labels. Mutually exclusive with mergeLabels.
157
+ * @member {Object.<String, String>} replaceLabels
158
+ */
159
+ UpdateSpaceRequest.prototype['replaceLabels'] = undefined;
160
+
161
+ /**
162
+ * Labels to merge with existing labels. Mutually exclusive with replaceLabels.
163
+ * @member {Object.<String, String>} mergeLabels
164
+ */
165
+ UpdateSpaceRequest.prototype['mergeLabels'] = undefined;
166
+ var _default = exports["default"] = UpdateSpaceRequest;
@@ -0,0 +1,179 @@
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 UserResponse model module.
31
+ * @module model/UserResponse
32
+ * @version v1
33
+ */
34
+ var UserResponse = /*#__PURE__*/function () {
35
+ /**
36
+ * Constructs a new <code>UserResponse</code>.
37
+ * User information response
38
+ * @alias module:model/UserResponse
39
+ * @param userId {String} The unique identifier of the user
40
+ * @param email {String} The user's email address
41
+ * @param displayName {String} The user's display name
42
+ * @param createdAt {Number} Timestamp when the user was created (milliseconds since epoch)
43
+ * @param updatedAt {Number} Timestamp when the user was last updated (milliseconds since epoch)
44
+ */
45
+ function UserResponse(userId, email, displayName, createdAt, updatedAt) {
46
+ _classCallCheck(this, UserResponse);
47
+ UserResponse.initialize(this, userId, email, displayName, createdAt, updatedAt);
48
+ }
49
+
50
+ /**
51
+ * Initializes the fields of this object.
52
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
53
+ * Only for internal use.
54
+ */
55
+ return _createClass(UserResponse, null, [{
56
+ key: "initialize",
57
+ value: function initialize(obj, userId, email, displayName, createdAt, updatedAt) {
58
+ obj['userId'] = userId;
59
+ obj['email'] = email;
60
+ obj['displayName'] = displayName;
61
+ obj['createdAt'] = createdAt;
62
+ obj['updatedAt'] = updatedAt;
63
+ }
64
+
65
+ /**
66
+ * Constructs a <code>UserResponse</code> from a plain JavaScript object, optionally creating a new instance.
67
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
68
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
69
+ * @param {module:model/UserResponse} obj Optional instance to populate.
70
+ * @return {module:model/UserResponse} The populated <code>UserResponse</code> instance.
71
+ */
72
+ }, {
73
+ key: "constructFromObject",
74
+ value: function constructFromObject(data, obj) {
75
+ if (data) {
76
+ obj = obj || new UserResponse();
77
+ if (data.hasOwnProperty('userId')) {
78
+ obj['userId'] = _ApiClient["default"].convertToType(data['userId'], 'String');
79
+ }
80
+ if (data.hasOwnProperty('email')) {
81
+ obj['email'] = _ApiClient["default"].convertToType(data['email'], 'String');
82
+ }
83
+ if (data.hasOwnProperty('displayName')) {
84
+ obj['displayName'] = _ApiClient["default"].convertToType(data['displayName'], 'String');
85
+ }
86
+ if (data.hasOwnProperty('username')) {
87
+ obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String');
88
+ }
89
+ if (data.hasOwnProperty('createdAt')) {
90
+ obj['createdAt'] = _ApiClient["default"].convertToType(data['createdAt'], 'Number');
91
+ }
92
+ if (data.hasOwnProperty('updatedAt')) {
93
+ obj['updatedAt'] = _ApiClient["default"].convertToType(data['updatedAt'], 'Number');
94
+ }
95
+ }
96
+ return obj;
97
+ }
98
+
99
+ /**
100
+ * Validates the JSON data with respect to <code>UserResponse</code>.
101
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
102
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>UserResponse</code>.
103
+ */
104
+ }, {
105
+ key: "validateJSON",
106
+ value: function validateJSON(data) {
107
+ // check to make sure all required properties are present in the JSON string
108
+ var _iterator = _createForOfIteratorHelper(UserResponse.RequiredProperties),
109
+ _step;
110
+ try {
111
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
112
+ var property = _step.value;
113
+ if (!data.hasOwnProperty(property)) {
114
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
115
+ }
116
+ }
117
+ // ensure the json data is a string
118
+ } catch (err) {
119
+ _iterator.e(err);
120
+ } finally {
121
+ _iterator.f();
122
+ }
123
+ if (data['userId'] && !(typeof data['userId'] === 'string' || data['userId'] instanceof String)) {
124
+ throw new Error("Expected the field `userId` to be a primitive type in the JSON string but got " + data['userId']);
125
+ }
126
+ // ensure the json data is a string
127
+ if (data['email'] && !(typeof data['email'] === 'string' || data['email'] instanceof String)) {
128
+ throw new Error("Expected the field `email` to be a primitive type in the JSON string but got " + data['email']);
129
+ }
130
+ // ensure the json data is a string
131
+ if (data['displayName'] && !(typeof data['displayName'] === 'string' || data['displayName'] instanceof String)) {
132
+ throw new Error("Expected the field `displayName` to be a primitive type in the JSON string but got " + data['displayName']);
133
+ }
134
+ // ensure the json data is a string
135
+ if (data['username'] && !(typeof data['username'] === 'string' || data['username'] instanceof String)) {
136
+ throw new Error("Expected the field `username` to be a primitive type in the JSON string but got " + data['username']);
137
+ }
138
+ return true;
139
+ }
140
+ }]);
141
+ }();
142
+ UserResponse.RequiredProperties = ["userId", "email", "displayName", "createdAt", "updatedAt"];
143
+
144
+ /**
145
+ * The unique identifier of the user
146
+ * @member {String} userId
147
+ */
148
+ UserResponse.prototype['userId'] = undefined;
149
+
150
+ /**
151
+ * The user's email address
152
+ * @member {String} email
153
+ */
154
+ UserResponse.prototype['email'] = undefined;
155
+
156
+ /**
157
+ * The user's display name
158
+ * @member {String} displayName
159
+ */
160
+ UserResponse.prototype['displayName'] = undefined;
161
+
162
+ /**
163
+ * The user's username (optional)
164
+ * @member {String} username
165
+ */
166
+ UserResponse.prototype['username'] = undefined;
167
+
168
+ /**
169
+ * Timestamp when the user was created (milliseconds since epoch)
170
+ * @member {Number} createdAt
171
+ */
172
+ UserResponse.prototype['createdAt'] = undefined;
173
+
174
+ /**
175
+ * Timestamp when the user was last updated (milliseconds since epoch)
176
+ * @member {Number} updatedAt
177
+ */
178
+ UserResponse.prototype['updatedAt'] = undefined;
179
+ var _default = exports["default"] = UserResponse;
package/package.json ADDED
@@ -0,0 +1,78 @@
1
+ {
2
+ "name": "@pairsystems/goodmem-client",
3
+ "version": "1.0.0-beta.1",
4
+ "description": "JavaScript client library for GoodMem API - 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.",
5
+ "license": "Apache-2.0",
6
+ "main": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/PAIR-Systems-Inc/goodmem.git",
11
+ "directory": "clients/js"
12
+ },
13
+ "homepage": "https://github.com/PAIR-Systems-Inc/goodmem/tree/main/clients/js",
14
+ "bugs": {
15
+ "url": "https://github.com/PAIR-Systems-Inc/goodmem/issues"
16
+ },
17
+ "keywords": [
18
+ "goodmem",
19
+ "vector",
20
+ "embeddings",
21
+ "memory",
22
+ "api",
23
+ "client",
24
+ "openapi",
25
+ "ai"
26
+ ],
27
+ "author": {
28
+ "name": "PAIR Systems Inc",
29
+ "email": "support@pairsys.ai",
30
+ "url": "https://pairsys.ai"
31
+ },
32
+ "publishConfig": {
33
+ "access": "public",
34
+ "registry": "https://registry.npmjs.org/"
35
+ },
36
+ "scripts": {
37
+ "build": "babel src -d dist",
38
+ "prepare": "npm run build",
39
+ "test": "mocha --require @babel/register --recursive",
40
+ "prepublishOnly": "npm run build",
41
+ "version": "npm run build",
42
+ "postversion": "git push && git push --tags"
43
+ },
44
+ "browser": {
45
+ "fs": false
46
+ },
47
+ "dependencies": {
48
+ "@babel/cli": "^7.0.0",
49
+ "superagent": "^5.3.0"
50
+ },
51
+ "devDependencies": {
52
+ "@babel/core": "^7.0.0",
53
+ "@babel/plugin-proposal-class-properties": "^7.0.0",
54
+ "@babel/plugin-proposal-decorators": "^7.0.0",
55
+ "@babel/plugin-proposal-do-expressions": "^7.0.0",
56
+ "@babel/plugin-proposal-export-default-from": "^7.0.0",
57
+ "@babel/plugin-proposal-export-namespace-from": "^7.0.0",
58
+ "@babel/plugin-proposal-function-bind": "^7.0.0",
59
+ "@babel/plugin-proposal-function-sent": "^7.0.0",
60
+ "@babel/plugin-proposal-json-strings": "^7.0.0",
61
+ "@babel/plugin-proposal-logical-assignment-operators": "^7.0.0",
62
+ "@babel/plugin-proposal-nullish-coalescing-operator": "^7.0.0",
63
+ "@babel/plugin-proposal-numeric-separator": "^7.0.0",
64
+ "@babel/plugin-proposal-optional-chaining": "^7.0.0",
65
+ "@babel/plugin-proposal-pipeline-operator": "^7.0.0",
66
+ "@babel/plugin-proposal-throw-expressions": "^7.0.0",
67
+ "@babel/plugin-syntax-dynamic-import": "^7.0.0",
68
+ "@babel/plugin-syntax-import-meta": "^7.0.0",
69
+ "@babel/preset-env": "^7.0.0",
70
+ "@babel/register": "^7.0.0",
71
+ "expect.js": "^0.3.1",
72
+ "mocha": "^8.0.1",
73
+ "sinon": "^7.2.0"
74
+ },
75
+ "files": [
76
+ "dist"
77
+ ]
78
+ }