files.com 1.2.86 → 1.2.88

Sign up to get free protection for your applications and to get access to all the features.
Files changed (214) hide show
  1. package/_VERSION +1 -1
  2. package/docs/models/ActionNotificationExportResult.md +3 -0
  3. package/docs/models/ApiKey.md +6 -0
  4. package/docs/models/ApiRequestLog.md +3 -0
  5. package/docs/models/App.md +3 -0
  6. package/docs/models/As2IncomingMessage.md +3 -0
  7. package/docs/models/As2OutgoingMessage.md +3 -0
  8. package/docs/models/As2Partner.md +42 -29
  9. package/docs/models/As2Station.md +3 -0
  10. package/docs/models/Automation.md +17 -3
  11. package/docs/models/AutomationLog.md +3 -0
  12. package/docs/models/AutomationRun.md +3 -0
  13. package/docs/models/BandwidthSnapshot.md +3 -0
  14. package/docs/models/Behavior.md +26 -19
  15. package/docs/models/Bundle.md +4 -5
  16. package/docs/models/BundleAction.md +4 -0
  17. package/docs/models/BundleDownload.md +3 -0
  18. package/docs/models/BundleNotification.md +3 -0
  19. package/docs/models/BundleRecipient.md +3 -0
  20. package/docs/models/BundleRegistration.md +3 -0
  21. package/docs/models/Clickwrap.md +3 -0
  22. package/docs/models/DnsRecord.md +3 -0
  23. package/docs/models/EmailIncomingMessage.md +3 -0
  24. package/docs/models/EmailLog.md +3 -0
  25. package/docs/models/ExavaultApiRequestLog.md +3 -0
  26. package/docs/models/ExternalEvent.md +3 -0
  27. package/docs/models/FileComment.md +3 -0
  28. package/docs/models/FileMigration.md +1 -1
  29. package/docs/models/FileMigrationLog.md +3 -0
  30. package/docs/models/Folder.md +2 -0
  31. package/docs/models/FormFieldSet.md +3 -0
  32. package/docs/models/FtpActionLog.md +3 -0
  33. package/docs/models/GpgKey.md +3 -0
  34. package/docs/models/Group.md +3 -0
  35. package/docs/models/GroupUser.md +3 -0
  36. package/docs/models/History.md +20 -0
  37. package/docs/models/HistoryExportResult.md +4 -0
  38. package/docs/models/InboxRecipient.md +3 -0
  39. package/docs/models/InboxRegistration.md +3 -0
  40. package/docs/models/InboxUpload.md +3 -0
  41. package/docs/models/Invoice.md +3 -0
  42. package/docs/models/IpAddress.md +12 -0
  43. package/docs/models/Lock.md +6 -3
  44. package/docs/models/Message.md +3 -0
  45. package/docs/models/MessageComment.md +3 -0
  46. package/docs/models/MessageCommentReaction.md +3 -0
  47. package/docs/models/MessageReaction.md +3 -0
  48. package/docs/models/Notification.md +4 -1
  49. package/docs/models/OutboundConnectionLog.md +56 -0
  50. package/docs/models/Payment.md +3 -0
  51. package/docs/models/Permission.md +3 -0
  52. package/docs/models/Priority.md +3 -0
  53. package/docs/models/Project.md +3 -0
  54. package/docs/models/PublicHostingRequestLog.md +3 -0
  55. package/docs/models/PublicKey.md +3 -0
  56. package/docs/models/RemoteBandwidthSnapshot.md +3 -0
  57. package/docs/models/RemoteServer.md +3 -0
  58. package/docs/models/Request.md +6 -0
  59. package/docs/models/SettingsChange.md +3 -0
  60. package/docs/models/SftpActionLog.md +3 -0
  61. package/docs/models/SftpHostKey.md +3 -0
  62. package/docs/models/ShareGroup.md +3 -0
  63. package/docs/models/Snapshot.md +3 -0
  64. package/docs/models/SsoStrategy.md +4 -1
  65. package/docs/models/SyncLog.md +3 -0
  66. package/docs/models/UsageDailySnapshot.md +3 -0
  67. package/docs/models/UsageSnapshot.md +3 -0
  68. package/docs/models/User.md +6 -3
  69. package/docs/models/UserCipherUse.md +3 -0
  70. package/docs/models/UserRequest.md +3 -0
  71. package/docs/models/WebDavActionLog.md +3 -0
  72. package/lib/Files.js +1 -1
  73. package/lib/models/ActionNotificationExportResult.js +19 -5
  74. package/lib/models/ApiKey.js +34 -6
  75. package/lib/models/ApiRequestLog.js +17 -3
  76. package/lib/models/App.js +17 -3
  77. package/lib/models/As2IncomingMessage.js +19 -5
  78. package/lib/models/As2OutgoingMessage.js +19 -5
  79. package/lib/models/As2Partner.js +120 -64
  80. package/lib/models/As2Station.js +17 -3
  81. package/lib/models/Automation.js +31 -6
  82. package/lib/models/AutomationLog.js +17 -3
  83. package/lib/models/AutomationRun.js +19 -5
  84. package/lib/models/BandwidthSnapshot.js +17 -3
  85. package/lib/models/Behavior.js +53 -31
  86. package/lib/models/Bundle.js +18 -6
  87. package/lib/models/BundleAction.js +21 -7
  88. package/lib/models/BundleDownload.js +21 -7
  89. package/lib/models/BundleNotification.js +17 -3
  90. package/lib/models/BundleRecipient.js +19 -5
  91. package/lib/models/BundleRegistration.js +19 -5
  92. package/lib/models/Clickwrap.js +17 -3
  93. package/lib/models/DnsRecord.js +17 -3
  94. package/lib/models/EmailIncomingMessage.js +17 -3
  95. package/lib/models/EmailLog.js +17 -3
  96. package/lib/models/ExavaultApiRequestLog.js +17 -3
  97. package/lib/models/ExternalEvent.js +17 -3
  98. package/lib/models/FileComment.js +19 -5
  99. package/lib/models/FileMigration.js +1 -1
  100. package/lib/models/FileMigrationLog.js +17 -3
  101. package/lib/models/Folder.js +18 -11
  102. package/lib/models/FormFieldSet.js +17 -3
  103. package/lib/models/FtpActionLog.js +17 -3
  104. package/lib/models/GpgKey.js +17 -3
  105. package/lib/models/Group.js +19 -5
  106. package/lib/models/GroupUser.js +19 -5
  107. package/lib/models/History.js +91 -21
  108. package/lib/models/HistoryExportResult.js +19 -5
  109. package/lib/models/InboxRecipient.js +19 -5
  110. package/lib/models/InboxRegistration.js +19 -5
  111. package/lib/models/InboxUpload.js +21 -7
  112. package/lib/models/Invoice.js +17 -3
  113. package/lib/models/IpAddress.js +68 -12
  114. package/lib/models/Lock.js +22 -8
  115. package/lib/models/Message.js +19 -5
  116. package/lib/models/MessageComment.js +19 -5
  117. package/lib/models/MessageCommentReaction.js +19 -5
  118. package/lib/models/MessageReaction.js +19 -5
  119. package/lib/models/Notification.js +22 -8
  120. package/lib/models/OutboundConnectionLog.js +164 -0
  121. package/lib/models/Payment.js +17 -3
  122. package/lib/models/Permission.js +23 -9
  123. package/lib/models/Priority.js +19 -5
  124. package/lib/models/Project.js +17 -3
  125. package/lib/models/PublicHostingRequestLog.js +17 -3
  126. package/lib/models/PublicKey.js +17 -3
  127. package/lib/models/RemoteBandwidthSnapshot.js +17 -3
  128. package/lib/models/RemoteServer.js +17 -3
  129. package/lib/models/Request.js +38 -10
  130. package/lib/models/SettingsChange.js +17 -3
  131. package/lib/models/SftpActionLog.js +17 -3
  132. package/lib/models/SftpHostKey.js +17 -3
  133. package/lib/models/ShareGroup.js +17 -3
  134. package/lib/models/Snapshot.js +17 -3
  135. package/lib/models/SsoStrategy.js +18 -4
  136. package/lib/models/SyncLog.js +17 -3
  137. package/lib/models/UsageDailySnapshot.js +17 -3
  138. package/lib/models/UsageSnapshot.js +17 -3
  139. package/lib/models/User.js +24 -10
  140. package/lib/models/UserCipherUse.js +17 -3
  141. package/lib/models/UserRequest.js +17 -3
  142. package/lib/models/WebDavActionLog.js +17 -3
  143. package/package.json +1 -1
  144. package/src/Files.js +1 -1
  145. package/src/models/ActionNotificationExportResult.js +10 -0
  146. package/src/models/ApiKey.js +22 -0
  147. package/src/models/ApiRequestLog.js +10 -0
  148. package/src/models/App.js +10 -0
  149. package/src/models/As2IncomingMessage.js +10 -0
  150. package/src/models/As2OutgoingMessage.js +10 -0
  151. package/src/models/As2Partner.js +82 -38
  152. package/src/models/As2Station.js +10 -0
  153. package/src/models/Automation.js +24 -3
  154. package/src/models/AutomationLog.js +10 -0
  155. package/src/models/AutomationRun.js +10 -0
  156. package/src/models/BandwidthSnapshot.js +10 -0
  157. package/src/models/Behavior.js +39 -23
  158. package/src/models/Bundle.js +11 -3
  159. package/src/models/BundleAction.js +10 -0
  160. package/src/models/BundleDownload.js +10 -0
  161. package/src/models/BundleNotification.js +10 -0
  162. package/src/models/BundleRecipient.js +10 -0
  163. package/src/models/BundleRegistration.js +10 -0
  164. package/src/models/Clickwrap.js +10 -0
  165. package/src/models/DnsRecord.js +10 -0
  166. package/src/models/EmailIncomingMessage.js +10 -0
  167. package/src/models/EmailLog.js +10 -0
  168. package/src/models/ExavaultApiRequestLog.js +10 -0
  169. package/src/models/ExternalEvent.js +10 -0
  170. package/src/models/FileComment.js +10 -0
  171. package/src/models/FileMigration.js +1 -1
  172. package/src/models/FileMigrationLog.js +10 -0
  173. package/src/models/Folder.js +5 -0
  174. package/src/models/FormFieldSet.js +10 -0
  175. package/src/models/FtpActionLog.js +10 -0
  176. package/src/models/GpgKey.js +10 -0
  177. package/src/models/Group.js +10 -0
  178. package/src/models/GroupUser.js +10 -0
  179. package/src/models/History.js +50 -0
  180. package/src/models/HistoryExportResult.js +10 -0
  181. package/src/models/InboxRecipient.js +10 -0
  182. package/src/models/InboxRegistration.js +10 -0
  183. package/src/models/InboxUpload.js +10 -0
  184. package/src/models/Invoice.js +10 -0
  185. package/src/models/IpAddress.js +40 -0
  186. package/src/models/Lock.js +13 -3
  187. package/src/models/Message.js +10 -0
  188. package/src/models/MessageComment.js +10 -0
  189. package/src/models/MessageCommentReaction.js +10 -0
  190. package/src/models/MessageReaction.js +10 -0
  191. package/src/models/Notification.js +11 -1
  192. package/src/models/OutboundConnectionLog.js +106 -0
  193. package/src/models/Payment.js +10 -0
  194. package/src/models/Permission.js +10 -0
  195. package/src/models/Priority.js +10 -0
  196. package/src/models/Project.js +10 -0
  197. package/src/models/PublicHostingRequestLog.js +10 -0
  198. package/src/models/PublicKey.js +10 -0
  199. package/src/models/RemoteBandwidthSnapshot.js +10 -0
  200. package/src/models/RemoteServer.js +10 -0
  201. package/src/models/Request.js +20 -0
  202. package/src/models/SettingsChange.js +10 -0
  203. package/src/models/SftpActionLog.js +10 -0
  204. package/src/models/SftpHostKey.js +10 -0
  205. package/src/models/ShareGroup.js +10 -0
  206. package/src/models/Snapshot.js +10 -0
  207. package/src/models/SsoStrategy.js +11 -1
  208. package/src/models/SyncLog.js +10 -0
  209. package/src/models/UsageDailySnapshot.js +10 -0
  210. package/src/models/UsageSnapshot.js +10 -0
  211. package/src/models/User.js +13 -3
  212. package/src/models/UserCipherUse.js +10 -0
  213. package/src/models/UserRequest.js +10 -0
  214. package/src/models/WebDavActionLog.js +10 -0
@@ -66,6 +66,8 @@ _IpAddress = IpAddress;
66
66
  // Parameters:
67
67
  // cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
68
68
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
69
+ // action - string
70
+ // page - int64
69
71
  (0, _defineProperty2.default)(IpAddress, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
70
72
  var _response$data;
71
73
  var params,
@@ -89,14 +91,26 @@ _IpAddress = IpAddress;
89
91
  }
90
92
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
91
93
  case 6:
92
- _context.next = 8;
93
- return _Api.default.sendRequest('/ip_addresses', 'GET', params, options);
94
+ if (!(params.action && !(0, _utils.isString)(params.action))) {
95
+ _context.next = 8;
96
+ break;
97
+ }
98
+ throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
94
99
  case 8:
100
+ if (!(params.page && !(0, _utils.isInt)(params.page))) {
101
+ _context.next = 10;
102
+ break;
103
+ }
104
+ throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
105
+ case 10:
106
+ _context.next = 12;
107
+ return _Api.default.sendRequest('/ip_addresses', 'GET', params, options);
108
+ case 12:
95
109
  response = _context.sent;
96
110
  return _context.abrupt("return", (response === null || response === void 0 || (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
97
111
  return new _IpAddress(obj, options);
98
112
  })) || []);
99
- case 10:
113
+ case 14:
100
114
  case "end":
101
115
  return _context.stop();
102
116
  }
@@ -110,6 +124,8 @@ _IpAddress = IpAddress;
110
124
  // Parameters:
111
125
  // cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
112
126
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
127
+ // action - string
128
+ // page - int64
113
129
  (0, _defineProperty2.default)(IpAddress, "getSmartfileReserved", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
114
130
  var _response$data2;
115
131
  var params,
@@ -134,15 +150,27 @@ _IpAddress = IpAddress;
134
150
  }
135
151
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
136
152
  case 6:
137
- _context2.next = 8;
138
- return _Api.default.sendRequest('/ip_addresses/smartfile-reserved', 'GET', params, options);
153
+ if (!(params.action && !(0, _utils.isString)(params.action))) {
154
+ _context2.next = 8;
155
+ break;
156
+ }
157
+ throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
139
158
  case 8:
159
+ if (!(params.page && !(0, _utils.isInt)(params.page))) {
160
+ _context2.next = 10;
161
+ break;
162
+ }
163
+ throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
164
+ case 10:
165
+ _context2.next = 12;
166
+ return _Api.default.sendRequest('/ip_addresses/smartfile-reserved', 'GET', params, options);
167
+ case 12:
140
168
  response = _context2.sent;
141
169
  PublicIpAddress = require('./PublicIpAddress.js').default;
142
170
  return _context2.abrupt("return", (response === null || response === void 0 || (_response$data2 = response.data) === null || _response$data2 === void 0 ? void 0 : _response$data2.map(function (obj) {
143
171
  return new PublicIpAddress(obj, options);
144
172
  })) || []);
145
- case 11:
173
+ case 15:
146
174
  case "end":
147
175
  return _context2.stop();
148
176
  }
@@ -151,6 +179,8 @@ _IpAddress = IpAddress;
151
179
  // Parameters:
152
180
  // cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
153
181
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
182
+ // action - string
183
+ // page - int64
154
184
  (0, _defineProperty2.default)(IpAddress, "getExavaultReserved", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
155
185
  var _response$data3;
156
186
  var params,
@@ -175,15 +205,27 @@ _IpAddress = IpAddress;
175
205
  }
176
206
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
177
207
  case 6:
178
- _context3.next = 8;
179
- return _Api.default.sendRequest('/ip_addresses/exavault-reserved', 'GET', params, options);
208
+ if (!(params.action && !(0, _utils.isString)(params.action))) {
209
+ _context3.next = 8;
210
+ break;
211
+ }
212
+ throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
180
213
  case 8:
214
+ if (!(params.page && !(0, _utils.isInt)(params.page))) {
215
+ _context3.next = 10;
216
+ break;
217
+ }
218
+ throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
219
+ case 10:
220
+ _context3.next = 12;
221
+ return _Api.default.sendRequest('/ip_addresses/exavault-reserved', 'GET', params, options);
222
+ case 12:
181
223
  response = _context3.sent;
182
224
  PublicIpAddress = require('./PublicIpAddress.js').default;
183
225
  return _context3.abrupt("return", (response === null || response === void 0 || (_response$data3 = response.data) === null || _response$data3 === void 0 ? void 0 : _response$data3.map(function (obj) {
184
226
  return new PublicIpAddress(obj, options);
185
227
  })) || []);
186
- case 11:
228
+ case 15:
187
229
  case "end":
188
230
  return _context3.stop();
189
231
  }
@@ -192,6 +234,8 @@ _IpAddress = IpAddress;
192
234
  // Parameters:
193
235
  // cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
194
236
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
237
+ // action - string
238
+ // page - int64
195
239
  (0, _defineProperty2.default)(IpAddress, "getReserved", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4() {
196
240
  var _response$data4;
197
241
  var params,
@@ -216,15 +260,27 @@ _IpAddress = IpAddress;
216
260
  }
217
261
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
218
262
  case 6:
219
- _context4.next = 8;
220
- return _Api.default.sendRequest('/ip_addresses/reserved', 'GET', params, options);
263
+ if (!(params.action && !(0, _utils.isString)(params.action))) {
264
+ _context4.next = 8;
265
+ break;
266
+ }
267
+ throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
221
268
  case 8:
269
+ if (!(params.page && !(0, _utils.isInt)(params.page))) {
270
+ _context4.next = 10;
271
+ break;
272
+ }
273
+ throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
274
+ case 10:
275
+ _context4.next = 12;
276
+ return _Api.default.sendRequest('/ip_addresses/reserved', 'GET', params, options);
277
+ case 12:
222
278
  response = _context4.sent;
223
279
  PublicIpAddress = require('./PublicIpAddress.js').default;
224
280
  return _context4.abrupt("return", (response === null || response === void 0 || (_response$data4 = response.data) === null || _response$data4 === void 0 ? void 0 : _response$data4.map(function (obj) {
225
281
  return new PublicIpAddress(obj, options);
226
282
  })) || []);
227
- case 11:
283
+ case 15:
228
284
  case "end":
229
285
  return _context4.stop();
230
286
  }
@@ -47,7 +47,7 @@ var Lock = /*#__PURE__*/(0, _createClass2.default)(function Lock() {
47
47
  (0, _defineProperty2.default)(this, "setTimeout", function (value) {
48
48
  _this.attributes.timeout = value;
49
49
  });
50
- // string # DEPRECATED: Lock depth
50
+ // string
51
51
  (0, _defineProperty2.default)(this, "getDepth", function () {
52
52
  return _this.attributes.depth;
53
53
  });
@@ -68,7 +68,7 @@ var Lock = /*#__PURE__*/(0, _createClass2.default)(function Lock() {
68
68
  (0, _defineProperty2.default)(this, "setOwner", function (value) {
69
69
  _this.attributes.owner = value;
70
70
  });
71
- // string # DEPRECATED: Lock scope
71
+ // string
72
72
  (0, _defineProperty2.default)(this, "getScope", function () {
73
73
  return _this.attributes.scope;
74
74
  });
@@ -89,7 +89,7 @@ var Lock = /*#__PURE__*/(0, _createClass2.default)(function Lock() {
89
89
  (0, _defineProperty2.default)(this, "setToken", function (value) {
90
90
  _this.attributes.token = value;
91
91
  });
92
- // string # DEPRECATED: Lock type
92
+ // string
93
93
  (0, _defineProperty2.default)(this, "getType", function () {
94
94
  return _this.attributes.type;
95
95
  });
@@ -225,6 +225,8 @@ _Lock = Lock;
225
225
  // Parameters:
226
226
  // cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
227
227
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
228
+ // action - string
229
+ // page - int64
228
230
  // path (required) - string - Path to operate on.
229
231
  // include_children - boolean - Include locks from children objects?
230
232
  (0, _defineProperty2.default)(Lock, "listFor", /*#__PURE__*/function () {
@@ -264,20 +266,32 @@ _Lock = Lock;
264
266
  }
265
267
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
266
268
  case 11:
267
- if (!(params.path && !(0, _utils.isString)(params.path))) {
269
+ if (!(params.action && !(0, _utils.isString)(params.action))) {
268
270
  _context3.next = 13;
269
271
  break;
270
272
  }
271
- throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(params.path)));
273
+ throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
272
274
  case 13:
273
- _context3.next = 15;
274
- return _Api.default.sendRequest("/locks/".concat(encodeURIComponent(params.path)), 'GET', params, options);
275
+ if (!(params.page && !(0, _utils.isInt)(params.page))) {
276
+ _context3.next = 15;
277
+ break;
278
+ }
279
+ throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
275
280
  case 15:
281
+ if (!(params.path && !(0, _utils.isString)(params.path))) {
282
+ _context3.next = 17;
283
+ break;
284
+ }
285
+ throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(params.path)));
286
+ case 17:
287
+ _context3.next = 19;
288
+ return _Api.default.sendRequest("/locks/".concat(encodeURIComponent(params.path)), 'GET', params, options);
289
+ case 19:
276
290
  response = _context3.sent;
277
291
  return _context3.abrupt("return", (response === null || response === void 0 || (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
278
292
  return new _Lock(obj, options);
279
293
  })) || []);
280
- case 17:
294
+ case 21:
281
295
  case "end":
282
296
  return _context3.stop();
283
297
  }
@@ -289,6 +289,8 @@ _Message = Message;
289
289
  // user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
290
290
  // cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
291
291
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
292
+ // action - string
293
+ // page - int64
292
294
  // project_id (required) - int64 - Project for which to return messages.
293
295
  (0, _defineProperty2.default)(Message, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4() {
294
296
  var _response$data;
@@ -325,20 +327,32 @@ _Message = Message;
325
327
  }
326
328
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
327
329
  case 10:
328
- if (!(params.project_id && !(0, _utils.isInt)(params.project_id))) {
330
+ if (!(params.action && !(0, _utils.isString)(params.action))) {
329
331
  _context4.next = 12;
330
332
  break;
331
333
  }
332
- throw new errors.InvalidParameterError("Bad parameter: project_id must be of type Int, received ".concat((0, _utils.getType)(params.project_id)));
334
+ throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
333
335
  case 12:
334
- _context4.next = 14;
335
- return _Api.default.sendRequest('/messages', 'GET', params, options);
336
+ if (!(params.page && !(0, _utils.isInt)(params.page))) {
337
+ _context4.next = 14;
338
+ break;
339
+ }
340
+ throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
336
341
  case 14:
342
+ if (!(params.project_id && !(0, _utils.isInt)(params.project_id))) {
343
+ _context4.next = 16;
344
+ break;
345
+ }
346
+ throw new errors.InvalidParameterError("Bad parameter: project_id must be of type Int, received ".concat((0, _utils.getType)(params.project_id)));
347
+ case 16:
348
+ _context4.next = 18;
349
+ return _Api.default.sendRequest('/messages', 'GET', params, options);
350
+ case 18:
337
351
  response = _context4.sent;
338
352
  return _context4.abrupt("return", (response === null || response === void 0 || (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
339
353
  return new _Message(obj, options);
340
354
  })) || []);
341
- case 16:
355
+ case 20:
342
356
  case "end":
343
357
  return _context4.stop();
344
358
  }
@@ -233,6 +233,8 @@ _MessageComment = MessageComment;
233
233
  // user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
234
234
  // cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
235
235
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
236
+ // action - string
237
+ // page - int64
236
238
  // message_id (required) - int64 - Message comment to return comments for.
237
239
  (0, _defineProperty2.default)(MessageComment, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4() {
238
240
  var _response$data;
@@ -269,20 +271,32 @@ _MessageComment = MessageComment;
269
271
  }
270
272
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
271
273
  case 10:
272
- if (!(params.message_id && !(0, _utils.isInt)(params.message_id))) {
274
+ if (!(params.action && !(0, _utils.isString)(params.action))) {
273
275
  _context4.next = 12;
274
276
  break;
275
277
  }
276
- throw new errors.InvalidParameterError("Bad parameter: message_id must be of type Int, received ".concat((0, _utils.getType)(params.message_id)));
278
+ throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
277
279
  case 12:
278
- _context4.next = 14;
279
- return _Api.default.sendRequest('/message_comments', 'GET', params, options);
280
+ if (!(params.page && !(0, _utils.isInt)(params.page))) {
281
+ _context4.next = 14;
282
+ break;
283
+ }
284
+ throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
280
285
  case 14:
286
+ if (!(params.message_id && !(0, _utils.isInt)(params.message_id))) {
287
+ _context4.next = 16;
288
+ break;
289
+ }
290
+ throw new errors.InvalidParameterError("Bad parameter: message_id must be of type Int, received ".concat((0, _utils.getType)(params.message_id)));
291
+ case 16:
292
+ _context4.next = 18;
293
+ return _Api.default.sendRequest('/message_comments', 'GET', params, options);
294
+ case 18:
281
295
  response = _context4.sent;
282
296
  return _context4.abrupt("return", (response === null || response === void 0 || (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
283
297
  return new _MessageComment(obj, options);
284
298
  })) || []);
285
- case 16:
299
+ case 20:
286
300
  case "end":
287
301
  return _context4.stop();
288
302
  }
@@ -147,6 +147,8 @@ _MessageCommentReaction = MessageCommentReaction;
147
147
  // user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
148
148
  // cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
149
149
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
150
+ // action - string
151
+ // page - int64
150
152
  // message_comment_id (required) - int64 - Message comment to return reactions for.
151
153
  (0, _defineProperty2.default)(MessageCommentReaction, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
152
154
  var _response$data;
@@ -183,20 +185,32 @@ _MessageCommentReaction = MessageCommentReaction;
183
185
  }
184
186
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
185
187
  case 10:
186
- if (!(params.message_comment_id && !(0, _utils.isInt)(params.message_comment_id))) {
188
+ if (!(params.action && !(0, _utils.isString)(params.action))) {
187
189
  _context3.next = 12;
188
190
  break;
189
191
  }
190
- throw new errors.InvalidParameterError("Bad parameter: message_comment_id must be of type Int, received ".concat((0, _utils.getType)(params.message_comment_id)));
192
+ throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
191
193
  case 12:
192
- _context3.next = 14;
193
- return _Api.default.sendRequest('/message_comment_reactions', 'GET', params, options);
194
+ if (!(params.page && !(0, _utils.isInt)(params.page))) {
195
+ _context3.next = 14;
196
+ break;
197
+ }
198
+ throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
194
199
  case 14:
200
+ if (!(params.message_comment_id && !(0, _utils.isInt)(params.message_comment_id))) {
201
+ _context3.next = 16;
202
+ break;
203
+ }
204
+ throw new errors.InvalidParameterError("Bad parameter: message_comment_id must be of type Int, received ".concat((0, _utils.getType)(params.message_comment_id)));
205
+ case 16:
206
+ _context3.next = 18;
207
+ return _Api.default.sendRequest('/message_comment_reactions', 'GET', params, options);
208
+ case 18:
195
209
  response = _context3.sent;
196
210
  return _context3.abrupt("return", (response === null || response === void 0 || (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
197
211
  return new _MessageCommentReaction(obj, options);
198
212
  })) || []);
199
- case 16:
213
+ case 20:
200
214
  case "end":
201
215
  return _context3.stop();
202
216
  }
@@ -147,6 +147,8 @@ _MessageReaction = MessageReaction;
147
147
  // user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
148
148
  // cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
149
149
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
150
+ // action - string
151
+ // page - int64
150
152
  // message_id (required) - int64 - Message to return reactions for.
151
153
  (0, _defineProperty2.default)(MessageReaction, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
152
154
  var _response$data;
@@ -183,20 +185,32 @@ _MessageReaction = MessageReaction;
183
185
  }
184
186
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
185
187
  case 10:
186
- if (!(params.message_id && !(0, _utils.isInt)(params.message_id))) {
188
+ if (!(params.action && !(0, _utils.isString)(params.action))) {
187
189
  _context3.next = 12;
188
190
  break;
189
191
  }
190
- throw new errors.InvalidParameterError("Bad parameter: message_id must be of type Int, received ".concat((0, _utils.getType)(params.message_id)));
192
+ throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
191
193
  case 12:
192
- _context3.next = 14;
193
- return _Api.default.sendRequest('/message_reactions', 'GET', params, options);
194
+ if (!(params.page && !(0, _utils.isInt)(params.page))) {
195
+ _context3.next = 14;
196
+ break;
197
+ }
198
+ throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
194
199
  case 14:
200
+ if (!(params.message_id && !(0, _utils.isInt)(params.message_id))) {
201
+ _context3.next = 16;
202
+ break;
203
+ }
204
+ throw new errors.InvalidParameterError("Bad parameter: message_id must be of type Int, received ".concat((0, _utils.getType)(params.message_id)));
205
+ case 16:
206
+ _context3.next = 18;
207
+ return _Api.default.sendRequest('/message_reactions', 'GET', params, options);
208
+ case 18:
195
209
  response = _context3.sent;
196
210
  return _context3.abrupt("return", (response === null || response === void 0 || (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
197
211
  return new _MessageReaction(obj, options);
198
212
  })) || []);
199
- case 16:
213
+ case 20:
200
214
  case "end":
201
215
  return _context3.stop();
202
216
  }
@@ -378,9 +378,11 @@ var Notification = /*#__PURE__*/(0, _createClass2.default)(function Notification
378
378
  });
379
379
  _Notification = Notification;
380
380
  // Parameters:
381
- // user_id - int64 - DEPRECATED: Show notifications for this User ID. Use `filter[user_id]` instead.
381
+ // user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
382
382
  // cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
383
383
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
384
+ // action - string
385
+ // page - int64
384
386
  // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[path]=desc`). Valid fields are `path`, `user_id` or `group_id`.
385
387
  // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `path`, `user_id` or `group_id`.
386
388
  // filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `path`.
@@ -416,26 +418,38 @@ _Notification = Notification;
416
418
  }
417
419
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
418
420
  case 8:
419
- if (!(params.path && !(0, _utils.isString)(params.path))) {
421
+ if (!(params.action && !(0, _utils.isString)(params.action))) {
420
422
  _context4.next = 10;
421
423
  break;
422
424
  }
423
- throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(params.path)));
425
+ throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
424
426
  case 10:
425
- if (!(params.group_id && !(0, _utils.isString)(params.group_id))) {
427
+ if (!(params.page && !(0, _utils.isInt)(params.page))) {
426
428
  _context4.next = 12;
427
429
  break;
428
430
  }
429
- throw new errors.InvalidParameterError("Bad parameter: group_id must be of type String, received ".concat((0, _utils.getType)(params.group_id)));
431
+ throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
430
432
  case 12:
431
- _context4.next = 14;
432
- return _Api.default.sendRequest('/notifications', 'GET', params, options);
433
+ if (!(params.path && !(0, _utils.isString)(params.path))) {
434
+ _context4.next = 14;
435
+ break;
436
+ }
437
+ throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(params.path)));
433
438
  case 14:
439
+ if (!(params.group_id && !(0, _utils.isString)(params.group_id))) {
440
+ _context4.next = 16;
441
+ break;
442
+ }
443
+ throw new errors.InvalidParameterError("Bad parameter: group_id must be of type String, received ".concat((0, _utils.getType)(params.group_id)));
444
+ case 16:
445
+ _context4.next = 18;
446
+ return _Api.default.sendRequest('/notifications', 'GET', params, options);
447
+ case 18:
434
448
  response = _context4.sent;
435
449
  return _context4.abrupt("return", (response === null || response === void 0 || (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
436
450
  return new _Notification(obj, options);
437
451
  })) || []);
438
- case 16:
452
+ case 20:
439
453
  case "end":
440
454
  return _context4.stop();
441
455
  }