files.com 1.2.86 → 1.2.87

Sign up to get free protection for your applications and to get access to all the features.
Files changed (211) 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/Payment.md +3 -0
  50. package/docs/models/Permission.md +3 -0
  51. package/docs/models/Priority.md +3 -0
  52. package/docs/models/Project.md +3 -0
  53. package/docs/models/PublicHostingRequestLog.md +3 -0
  54. package/docs/models/PublicKey.md +3 -0
  55. package/docs/models/RemoteBandwidthSnapshot.md +3 -0
  56. package/docs/models/RemoteServer.md +3 -0
  57. package/docs/models/Request.md +6 -0
  58. package/docs/models/SettingsChange.md +3 -0
  59. package/docs/models/SftpActionLog.md +3 -0
  60. package/docs/models/SftpHostKey.md +3 -0
  61. package/docs/models/ShareGroup.md +3 -0
  62. package/docs/models/Snapshot.md +3 -0
  63. package/docs/models/SsoStrategy.md +4 -1
  64. package/docs/models/SyncLog.md +3 -0
  65. package/docs/models/UsageDailySnapshot.md +3 -0
  66. package/docs/models/UsageSnapshot.md +3 -0
  67. package/docs/models/User.md +6 -3
  68. package/docs/models/UserCipherUse.md +3 -0
  69. package/docs/models/UserRequest.md +3 -0
  70. package/docs/models/WebDavActionLog.md +3 -0
  71. package/lib/Files.js +1 -1
  72. package/lib/models/ActionNotificationExportResult.js +19 -5
  73. package/lib/models/ApiKey.js +34 -6
  74. package/lib/models/ApiRequestLog.js +17 -3
  75. package/lib/models/App.js +17 -3
  76. package/lib/models/As2IncomingMessage.js +19 -5
  77. package/lib/models/As2OutgoingMessage.js +19 -5
  78. package/lib/models/As2Partner.js +120 -64
  79. package/lib/models/As2Station.js +17 -3
  80. package/lib/models/Automation.js +31 -6
  81. package/lib/models/AutomationLog.js +17 -3
  82. package/lib/models/AutomationRun.js +19 -5
  83. package/lib/models/BandwidthSnapshot.js +17 -3
  84. package/lib/models/Behavior.js +53 -31
  85. package/lib/models/Bundle.js +18 -6
  86. package/lib/models/BundleAction.js +21 -7
  87. package/lib/models/BundleDownload.js +21 -7
  88. package/lib/models/BundleNotification.js +17 -3
  89. package/lib/models/BundleRecipient.js +19 -5
  90. package/lib/models/BundleRegistration.js +19 -5
  91. package/lib/models/Clickwrap.js +17 -3
  92. package/lib/models/DnsRecord.js +17 -3
  93. package/lib/models/EmailIncomingMessage.js +17 -3
  94. package/lib/models/EmailLog.js +17 -3
  95. package/lib/models/ExavaultApiRequestLog.js +17 -3
  96. package/lib/models/ExternalEvent.js +17 -3
  97. package/lib/models/FileComment.js +19 -5
  98. package/lib/models/FileMigration.js +1 -1
  99. package/lib/models/FileMigrationLog.js +17 -3
  100. package/lib/models/Folder.js +18 -11
  101. package/lib/models/FormFieldSet.js +17 -3
  102. package/lib/models/FtpActionLog.js +17 -3
  103. package/lib/models/GpgKey.js +17 -3
  104. package/lib/models/Group.js +19 -5
  105. package/lib/models/GroupUser.js +19 -5
  106. package/lib/models/History.js +91 -21
  107. package/lib/models/HistoryExportResult.js +19 -5
  108. package/lib/models/InboxRecipient.js +19 -5
  109. package/lib/models/InboxRegistration.js +19 -5
  110. package/lib/models/InboxUpload.js +21 -7
  111. package/lib/models/Invoice.js +17 -3
  112. package/lib/models/IpAddress.js +68 -12
  113. package/lib/models/Lock.js +22 -8
  114. package/lib/models/Message.js +19 -5
  115. package/lib/models/MessageComment.js +19 -5
  116. package/lib/models/MessageCommentReaction.js +19 -5
  117. package/lib/models/MessageReaction.js +19 -5
  118. package/lib/models/Notification.js +22 -8
  119. package/lib/models/Payment.js +17 -3
  120. package/lib/models/Permission.js +23 -9
  121. package/lib/models/Priority.js +19 -5
  122. package/lib/models/Project.js +17 -3
  123. package/lib/models/PublicHostingRequestLog.js +17 -3
  124. package/lib/models/PublicKey.js +17 -3
  125. package/lib/models/RemoteBandwidthSnapshot.js +17 -3
  126. package/lib/models/RemoteServer.js +17 -3
  127. package/lib/models/Request.js +38 -10
  128. package/lib/models/SettingsChange.js +17 -3
  129. package/lib/models/SftpActionLog.js +17 -3
  130. package/lib/models/SftpHostKey.js +17 -3
  131. package/lib/models/ShareGroup.js +17 -3
  132. package/lib/models/Snapshot.js +17 -3
  133. package/lib/models/SsoStrategy.js +18 -4
  134. package/lib/models/SyncLog.js +17 -3
  135. package/lib/models/UsageDailySnapshot.js +17 -3
  136. package/lib/models/UsageSnapshot.js +17 -3
  137. package/lib/models/User.js +24 -10
  138. package/lib/models/UserCipherUse.js +17 -3
  139. package/lib/models/UserRequest.js +17 -3
  140. package/lib/models/WebDavActionLog.js +17 -3
  141. package/package.json +1 -1
  142. package/src/Files.js +1 -1
  143. package/src/models/ActionNotificationExportResult.js +10 -0
  144. package/src/models/ApiKey.js +22 -0
  145. package/src/models/ApiRequestLog.js +10 -0
  146. package/src/models/App.js +10 -0
  147. package/src/models/As2IncomingMessage.js +10 -0
  148. package/src/models/As2OutgoingMessage.js +10 -0
  149. package/src/models/As2Partner.js +82 -38
  150. package/src/models/As2Station.js +10 -0
  151. package/src/models/Automation.js +24 -3
  152. package/src/models/AutomationLog.js +10 -0
  153. package/src/models/AutomationRun.js +10 -0
  154. package/src/models/BandwidthSnapshot.js +10 -0
  155. package/src/models/Behavior.js +39 -23
  156. package/src/models/Bundle.js +11 -3
  157. package/src/models/BundleAction.js +10 -0
  158. package/src/models/BundleDownload.js +10 -0
  159. package/src/models/BundleNotification.js +10 -0
  160. package/src/models/BundleRecipient.js +10 -0
  161. package/src/models/BundleRegistration.js +10 -0
  162. package/src/models/Clickwrap.js +10 -0
  163. package/src/models/DnsRecord.js +10 -0
  164. package/src/models/EmailIncomingMessage.js +10 -0
  165. package/src/models/EmailLog.js +10 -0
  166. package/src/models/ExavaultApiRequestLog.js +10 -0
  167. package/src/models/ExternalEvent.js +10 -0
  168. package/src/models/FileComment.js +10 -0
  169. package/src/models/FileMigration.js +1 -1
  170. package/src/models/FileMigrationLog.js +10 -0
  171. package/src/models/Folder.js +5 -0
  172. package/src/models/FormFieldSet.js +10 -0
  173. package/src/models/FtpActionLog.js +10 -0
  174. package/src/models/GpgKey.js +10 -0
  175. package/src/models/Group.js +10 -0
  176. package/src/models/GroupUser.js +10 -0
  177. package/src/models/History.js +50 -0
  178. package/src/models/HistoryExportResult.js +10 -0
  179. package/src/models/InboxRecipient.js +10 -0
  180. package/src/models/InboxRegistration.js +10 -0
  181. package/src/models/InboxUpload.js +10 -0
  182. package/src/models/Invoice.js +10 -0
  183. package/src/models/IpAddress.js +40 -0
  184. package/src/models/Lock.js +13 -3
  185. package/src/models/Message.js +10 -0
  186. package/src/models/MessageComment.js +10 -0
  187. package/src/models/MessageCommentReaction.js +10 -0
  188. package/src/models/MessageReaction.js +10 -0
  189. package/src/models/Notification.js +11 -1
  190. package/src/models/Payment.js +10 -0
  191. package/src/models/Permission.js +10 -0
  192. package/src/models/Priority.js +10 -0
  193. package/src/models/Project.js +10 -0
  194. package/src/models/PublicHostingRequestLog.js +10 -0
  195. package/src/models/PublicKey.js +10 -0
  196. package/src/models/RemoteBandwidthSnapshot.js +10 -0
  197. package/src/models/RemoteServer.js +10 -0
  198. package/src/models/Request.js +20 -0
  199. package/src/models/SettingsChange.js +10 -0
  200. package/src/models/SftpActionLog.js +10 -0
  201. package/src/models/SftpHostKey.js +10 -0
  202. package/src/models/ShareGroup.js +10 -0
  203. package/src/models/Snapshot.js +10 -0
  204. package/src/models/SsoStrategy.js +11 -1
  205. package/src/models/SyncLog.js +10 -0
  206. package/src/models/UsageDailySnapshot.js +10 -0
  207. package/src/models/UsageSnapshot.js +10 -0
  208. package/src/models/User.js +13 -3
  209. package/src/models/UserCipherUse.js +10 -0
  210. package/src/models/UserRequest.js +10 -0
  211. package/src/models/WebDavActionLog.js +10 -0
@@ -299,6 +299,8 @@ _Group = Group;
299
299
  // Parameters:
300
300
  // 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.
301
301
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
302
+ // action - string
303
+ // page - int64
302
304
  // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[name]=desc`). Valid fields are `name`.
303
305
  // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `name`.
304
306
  // filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `name`.
@@ -326,20 +328,32 @@ _Group = Group;
326
328
  }
327
329
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
328
330
  case 6:
329
- if (!(params.ids && !(0, _utils.isString)(params.ids))) {
331
+ if (!(params.action && !(0, _utils.isString)(params.action))) {
330
332
  _context4.next = 8;
331
333
  break;
332
334
  }
333
- throw new errors.InvalidParameterError("Bad parameter: ids must be of type String, received ".concat((0, _utils.getType)(params.ids)));
335
+ throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
334
336
  case 8:
335
- _context4.next = 10;
336
- return _Api.default.sendRequest('/groups', 'GET', params, options);
337
+ if (!(params.page && !(0, _utils.isInt)(params.page))) {
338
+ _context4.next = 10;
339
+ break;
340
+ }
341
+ throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
337
342
  case 10:
343
+ if (!(params.ids && !(0, _utils.isString)(params.ids))) {
344
+ _context4.next = 12;
345
+ break;
346
+ }
347
+ throw new errors.InvalidParameterError("Bad parameter: ids must be of type String, received ".concat((0, _utils.getType)(params.ids)));
348
+ case 12:
349
+ _context4.next = 14;
350
+ return _Api.default.sendRequest('/groups', 'GET', params, options);
351
+ case 14:
338
352
  response = _context4.sent;
339
353
  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) {
340
354
  return new _Group(obj, options);
341
355
  })) || []);
342
- case 12:
356
+ case 16:
343
357
  case "end":
344
358
  return _context4.stop();
345
359
  }
@@ -312,6 +312,8 @@ _GroupUser = GroupUser;
312
312
  // user_id - int64 - User ID. If provided, will return group_users of this user.
313
313
  // 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.
314
314
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
315
+ // action - string
316
+ // page - int64
315
317
  // group_id - int64 - Group ID. If provided, will return group_users of this group.
316
318
  (0, _defineProperty2.default)(GroupUser, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4() {
317
319
  var _response$data;
@@ -342,20 +344,32 @@ _GroupUser = GroupUser;
342
344
  }
343
345
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
344
346
  case 8:
345
- if (!(params.group_id && !(0, _utils.isInt)(params.group_id))) {
347
+ if (!(params.action && !(0, _utils.isString)(params.action))) {
346
348
  _context4.next = 10;
347
349
  break;
348
350
  }
349
- throw new errors.InvalidParameterError("Bad parameter: group_id must be of type Int, received ".concat((0, _utils.getType)(params.group_id)));
351
+ throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
350
352
  case 10:
351
- _context4.next = 12;
352
- return _Api.default.sendRequest('/group_users', 'GET', params, options);
353
+ if (!(params.page && !(0, _utils.isInt)(params.page))) {
354
+ _context4.next = 12;
355
+ break;
356
+ }
357
+ throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
353
358
  case 12:
359
+ if (!(params.group_id && !(0, _utils.isInt)(params.group_id))) {
360
+ _context4.next = 14;
361
+ break;
362
+ }
363
+ throw new errors.InvalidParameterError("Bad parameter: group_id must be of type Int, received ".concat((0, _utils.getType)(params.group_id)));
364
+ case 14:
365
+ _context4.next = 16;
366
+ return _Api.default.sendRequest('/group_users', 'GET', params, options);
367
+ case 16:
354
368
  response = _context4.sent;
355
369
  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) {
356
370
  return new _GroupUser(obj, options);
357
371
  })) || []);
358
- case 14:
372
+ case 18:
359
373
  case "end":
360
374
  return _context4.stop();
361
375
  }
@@ -105,6 +105,8 @@ _History = History;
105
105
  // display - string - Display format. Leave blank or set to `full` or `parent`.
106
106
  // 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.
107
107
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
108
+ // action - string
109
+ // page - int64
108
110
  // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[user_id]=desc`). Valid fields are `user_id` and `created_at`.
109
111
  // path (required) - string - Path to operate on.
110
112
  (0, _defineProperty2.default)(History, "listForFile", /*#__PURE__*/function () {
@@ -163,21 +165,33 @@ _History = History;
163
165
  }
164
166
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
165
167
  case 17:
166
- if (!(params.path && !(0, _utils.isString)(params.path))) {
168
+ if (!(params.action && !(0, _utils.isString)(params.action))) {
167
169
  _context.next = 19;
168
170
  break;
169
171
  }
170
- throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(params.path)));
172
+ throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
171
173
  case 19:
172
- _context.next = 21;
173
- return _Api.default.sendRequest("/history/files/".concat(encodeURIComponent(params.path)), 'GET', params, options);
174
+ if (!(params.page && !(0, _utils.isInt)(params.page))) {
175
+ _context.next = 21;
176
+ break;
177
+ }
178
+ throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
174
179
  case 21:
180
+ if (!(params.path && !(0, _utils.isString)(params.path))) {
181
+ _context.next = 23;
182
+ break;
183
+ }
184
+ throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(params.path)));
185
+ case 23:
186
+ _context.next = 25;
187
+ return _Api.default.sendRequest("/history/files/".concat(encodeURIComponent(params.path)), 'GET', params, options);
188
+ case 25:
175
189
  response = _context.sent;
176
190
  Action = require('./Action.js').default;
177
191
  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) {
178
192
  return new Action(obj, options);
179
193
  })) || []);
180
- case 24:
194
+ case 28:
181
195
  case "end":
182
196
  return _context.stop();
183
197
  }
@@ -193,6 +207,8 @@ _History = History;
193
207
  // display - string - Display format. Leave blank or set to `full` or `parent`.
194
208
  // 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.
195
209
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
210
+ // action - string
211
+ // page - int64
196
212
  // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[user_id]=desc`). Valid fields are `user_id` and `created_at`.
197
213
  // path (required) - string - Path to operate on.
198
214
  (0, _defineProperty2.default)(History, "listForFolder", /*#__PURE__*/function () {
@@ -251,21 +267,33 @@ _History = History;
251
267
  }
252
268
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
253
269
  case 17:
254
- if (!(params.path && !(0, _utils.isString)(params.path))) {
270
+ if (!(params.action && !(0, _utils.isString)(params.action))) {
255
271
  _context2.next = 19;
256
272
  break;
257
273
  }
258
- throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(params.path)));
274
+ throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
259
275
  case 19:
260
- _context2.next = 21;
261
- return _Api.default.sendRequest("/history/folders/".concat(encodeURIComponent(params.path)), 'GET', params, options);
276
+ if (!(params.page && !(0, _utils.isInt)(params.page))) {
277
+ _context2.next = 21;
278
+ break;
279
+ }
280
+ throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
262
281
  case 21:
282
+ if (!(params.path && !(0, _utils.isString)(params.path))) {
283
+ _context2.next = 23;
284
+ break;
285
+ }
286
+ throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(params.path)));
287
+ case 23:
288
+ _context2.next = 25;
289
+ return _Api.default.sendRequest("/history/folders/".concat(encodeURIComponent(params.path)), 'GET', params, options);
290
+ case 25:
263
291
  response = _context2.sent;
264
292
  Action = require('./Action.js').default;
265
293
  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) {
266
294
  return new Action(obj, options);
267
295
  })) || []);
268
- case 24:
296
+ case 28:
269
297
  case "end":
270
298
  return _context2.stop();
271
299
  }
@@ -281,6 +309,8 @@ _History = History;
281
309
  // display - string - Display format. Leave blank or set to `full` or `parent`.
282
310
  // 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.
283
311
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
312
+ // action - string
313
+ // page - int64
284
314
  // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[user_id]=desc`). Valid fields are `user_id` and `created_at`.
285
315
  // user_id (required) - int64 - User ID.
286
316
  (0, _defineProperty2.default)(History, "listForUser", /*#__PURE__*/function () {
@@ -339,21 +369,33 @@ _History = History;
339
369
  }
340
370
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
341
371
  case 17:
342
- if (!(params.user_id && !(0, _utils.isInt)(params.user_id))) {
372
+ if (!(params.action && !(0, _utils.isString)(params.action))) {
343
373
  _context3.next = 19;
344
374
  break;
345
375
  }
346
- throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params.user_id)));
376
+ throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
347
377
  case 19:
348
- _context3.next = 21;
349
- return _Api.default.sendRequest("/history/users/".concat(encodeURIComponent(params.user_id)), 'GET', params, options);
378
+ if (!(params.page && !(0, _utils.isInt)(params.page))) {
379
+ _context3.next = 21;
380
+ break;
381
+ }
382
+ throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
350
383
  case 21:
384
+ if (!(params.user_id && !(0, _utils.isInt)(params.user_id))) {
385
+ _context3.next = 23;
386
+ break;
387
+ }
388
+ throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params.user_id)));
389
+ case 23:
390
+ _context3.next = 25;
391
+ return _Api.default.sendRequest("/history/users/".concat(encodeURIComponent(params.user_id)), 'GET', params, options);
392
+ case 25:
351
393
  response = _context3.sent;
352
394
  Action = require('./Action.js').default;
353
395
  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) {
354
396
  return new Action(obj, options);
355
397
  })) || []);
356
- case 24:
398
+ case 28:
357
399
  case "end":
358
400
  return _context3.stop();
359
401
  }
@@ -369,6 +411,8 @@ _History = History;
369
411
  // display - string - Display format. Leave blank or set to `full` or `parent`.
370
412
  // 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.
371
413
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
414
+ // action - string
415
+ // page - int64
372
416
  // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[user_id]=desc`). Valid fields are `user_id` and `created_at`.
373
417
  (0, _defineProperty2.default)(History, "listLogins", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4() {
374
418
  var _response$data4;
@@ -412,15 +456,27 @@ _History = History;
412
456
  }
413
457
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
414
458
  case 12:
415
- _context4.next = 14;
416
- return _Api.default.sendRequest('/history/login', 'GET', params, options);
459
+ if (!(params.action && !(0, _utils.isString)(params.action))) {
460
+ _context4.next = 14;
461
+ break;
462
+ }
463
+ throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
417
464
  case 14:
465
+ if (!(params.page && !(0, _utils.isInt)(params.page))) {
466
+ _context4.next = 16;
467
+ break;
468
+ }
469
+ throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
470
+ case 16:
471
+ _context4.next = 18;
472
+ return _Api.default.sendRequest('/history/login', 'GET', params, options);
473
+ case 18:
418
474
  response = _context4.sent;
419
475
  Action = require('./Action.js').default;
420
476
  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) {
421
477
  return new Action(obj, options);
422
478
  })) || []);
423
- case 17:
479
+ case 21:
424
480
  case "end":
425
481
  return _context4.stop();
426
482
  }
@@ -432,6 +488,8 @@ _History = History;
432
488
  // display - string - Display format. Leave blank or set to `full` or `parent`.
433
489
  // 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.
434
490
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
491
+ // action - string
492
+ // page - int64
435
493
  // 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`, `folder`, `user_id` or `created_at`.
436
494
  // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `user_id`, `folder` or `path`.
437
495
  // filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `path`.
@@ -477,15 +535,27 @@ _History = History;
477
535
  }
478
536
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
479
537
  case 12:
480
- _context5.next = 14;
481
- return _Api.default.sendRequest('/history', 'GET', params, options);
538
+ if (!(params.action && !(0, _utils.isString)(params.action))) {
539
+ _context5.next = 14;
540
+ break;
541
+ }
542
+ throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
482
543
  case 14:
544
+ if (!(params.page && !(0, _utils.isInt)(params.page))) {
545
+ _context5.next = 16;
546
+ break;
547
+ }
548
+ throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
549
+ case 16:
550
+ _context5.next = 18;
551
+ return _Api.default.sendRequest('/history', 'GET', params, options);
552
+ case 18:
483
553
  response = _context5.sent;
484
554
  Action = require('./Action.js').default;
485
555
  return _context5.abrupt("return", (response === null || response === void 0 || (_response$data5 = response.data) === null || _response$data5 === void 0 ? void 0 : _response$data5.map(function (obj) {
486
556
  return new Action(obj, options);
487
557
  })) || []);
488
- case 17:
558
+ case 21:
489
559
  case "end":
490
560
  return _context5.stop();
491
561
  }
@@ -151,6 +151,8 @@ _HistoryExportResult = HistoryExportResult;
151
151
  // user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
152
152
  // 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
153
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
154
+ // action - string
155
+ // page - int64
154
156
  // history_export_id (required) - int64 - ID of the associated history export.
155
157
  (0, _defineProperty2.default)(HistoryExportResult, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
156
158
  var _response$data;
@@ -187,20 +189,32 @@ _HistoryExportResult = HistoryExportResult;
187
189
  }
188
190
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
189
191
  case 10:
190
- if (!(params.history_export_id && !(0, _utils.isInt)(params.history_export_id))) {
192
+ if (!(params.action && !(0, _utils.isString)(params.action))) {
191
193
  _context.next = 12;
192
194
  break;
193
195
  }
194
- throw new errors.InvalidParameterError("Bad parameter: history_export_id must be of type Int, received ".concat((0, _utils.getType)(params.history_export_id)));
196
+ throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
195
197
  case 12:
196
- _context.next = 14;
197
- return _Api.default.sendRequest('/history_export_results', 'GET', params, options);
198
+ if (!(params.page && !(0, _utils.isInt)(params.page))) {
199
+ _context.next = 14;
200
+ break;
201
+ }
202
+ throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
198
203
  case 14:
204
+ if (!(params.history_export_id && !(0, _utils.isInt)(params.history_export_id))) {
205
+ _context.next = 16;
206
+ break;
207
+ }
208
+ throw new errors.InvalidParameterError("Bad parameter: history_export_id must be of type Int, received ".concat((0, _utils.getType)(params.history_export_id)));
209
+ case 16:
210
+ _context.next = 18;
211
+ return _Api.default.sendRequest('/history_export_results', 'GET', params, options);
212
+ case 18:
199
213
  response = _context.sent;
200
214
  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) {
201
215
  return new _HistoryExportResult(obj, options);
202
216
  })) || []);
203
- case 16:
217
+ case 20:
204
218
  case "end":
205
219
  return _context.stop();
206
220
  }
@@ -122,6 +122,8 @@ _InboxRecipient = InboxRecipient;
122
122
  // Parameters:
123
123
  // 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.
124
124
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
125
+ // action - string
126
+ // page - int64
125
127
  // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[has_registrations]=desc`). Valid fields are `has_registrations`.
126
128
  // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `has_registrations`.
127
129
  // inbox_id (required) - int64 - List recipients for the inbox with this ID.
@@ -154,20 +156,32 @@ _InboxRecipient = InboxRecipient;
154
156
  }
155
157
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
156
158
  case 8:
157
- if (!(params.inbox_id && !(0, _utils.isInt)(params.inbox_id))) {
159
+ if (!(params.action && !(0, _utils.isString)(params.action))) {
158
160
  _context2.next = 10;
159
161
  break;
160
162
  }
161
- throw new errors.InvalidParameterError("Bad parameter: inbox_id must be of type Int, received ".concat((0, _utils.getType)(params.inbox_id)));
163
+ throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
162
164
  case 10:
163
- _context2.next = 12;
164
- return _Api.default.sendRequest('/inbox_recipients', 'GET', params, options);
165
+ if (!(params.page && !(0, _utils.isInt)(params.page))) {
166
+ _context2.next = 12;
167
+ break;
168
+ }
169
+ throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
165
170
  case 12:
171
+ if (!(params.inbox_id && !(0, _utils.isInt)(params.inbox_id))) {
172
+ _context2.next = 14;
173
+ break;
174
+ }
175
+ throw new errors.InvalidParameterError("Bad parameter: inbox_id must be of type Int, received ".concat((0, _utils.getType)(params.inbox_id)));
176
+ case 14:
177
+ _context2.next = 16;
178
+ return _Api.default.sendRequest('/inbox_recipients', 'GET', params, options);
179
+ case 16:
166
180
  response = _context2.sent;
167
181
  return _context2.abrupt("return", (response === null || response === void 0 || (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
168
182
  return new _InboxRecipient(obj, options);
169
183
  })) || []);
170
- case 14:
184
+ case 18:
171
185
  case "end":
172
186
  return _context2.stop();
173
187
  }
@@ -98,6 +98,8 @@ _InboxRegistration = InboxRegistration;
98
98
  // Parameters:
99
99
  // 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.
100
100
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
101
+ // action - string
102
+ // page - int64
101
103
  // folder_behavior_id - int64 - ID of the associated Inbox.
102
104
  (0, _defineProperty2.default)(InboxRegistration, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
103
105
  var _response$data;
@@ -122,20 +124,32 @@ _InboxRegistration = InboxRegistration;
122
124
  }
123
125
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
124
126
  case 6:
125
- if (!(params.folder_behavior_id && !(0, _utils.isInt)(params.folder_behavior_id))) {
127
+ if (!(params.action && !(0, _utils.isString)(params.action))) {
126
128
  _context.next = 8;
127
129
  break;
128
130
  }
129
- throw new errors.InvalidParameterError("Bad parameter: folder_behavior_id must be of type Int, received ".concat((0, _utils.getType)(params.folder_behavior_id)));
131
+ throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
130
132
  case 8:
131
- _context.next = 10;
132
- return _Api.default.sendRequest('/inbox_registrations', 'GET', params, options);
133
+ if (!(params.page && !(0, _utils.isInt)(params.page))) {
134
+ _context.next = 10;
135
+ break;
136
+ }
137
+ throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
133
138
  case 10:
139
+ if (!(params.folder_behavior_id && !(0, _utils.isInt)(params.folder_behavior_id))) {
140
+ _context.next = 12;
141
+ break;
142
+ }
143
+ throw new errors.InvalidParameterError("Bad parameter: folder_behavior_id must be of type Int, received ".concat((0, _utils.getType)(params.folder_behavior_id)));
144
+ case 12:
145
+ _context.next = 14;
146
+ return _Api.default.sendRequest('/inbox_registrations', 'GET', params, options);
147
+ case 14:
134
148
  response = _context.sent;
135
149
  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) {
136
150
  return new _InboxRegistration(obj, options);
137
151
  })) || []);
138
- case 12:
152
+ case 16:
139
153
  case "end":
140
154
  return _context.stop();
141
155
  }
@@ -62,6 +62,8 @@ _InboxUpload = InboxUpload;
62
62
  // Parameters:
63
63
  // 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.
64
64
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
65
+ // action - string
66
+ // page - int64
65
67
  // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[created_at]=desc`). Valid fields are `created_at`.
66
68
  // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
67
69
  // filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
@@ -93,26 +95,38 @@ _InboxUpload = InboxUpload;
93
95
  }
94
96
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
95
97
  case 6:
96
- if (!(params.inbox_registration_id && !(0, _utils.isInt)(params.inbox_registration_id))) {
98
+ if (!(params.action && !(0, _utils.isString)(params.action))) {
97
99
  _context.next = 8;
98
100
  break;
99
101
  }
100
- throw new errors.InvalidParameterError("Bad parameter: inbox_registration_id must be of type Int, received ".concat((0, _utils.getType)(params.inbox_registration_id)));
102
+ throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
101
103
  case 8:
102
- if (!(params.inbox_id && !(0, _utils.isInt)(params.inbox_id))) {
104
+ if (!(params.page && !(0, _utils.isInt)(params.page))) {
103
105
  _context.next = 10;
104
106
  break;
105
107
  }
106
- throw new errors.InvalidParameterError("Bad parameter: inbox_id must be of type Int, received ".concat((0, _utils.getType)(params.inbox_id)));
108
+ throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
107
109
  case 10:
108
- _context.next = 12;
109
- return _Api.default.sendRequest('/inbox_uploads', 'GET', params, options);
110
+ if (!(params.inbox_registration_id && !(0, _utils.isInt)(params.inbox_registration_id))) {
111
+ _context.next = 12;
112
+ break;
113
+ }
114
+ throw new errors.InvalidParameterError("Bad parameter: inbox_registration_id must be of type Int, received ".concat((0, _utils.getType)(params.inbox_registration_id)));
110
115
  case 12:
116
+ if (!(params.inbox_id && !(0, _utils.isInt)(params.inbox_id))) {
117
+ _context.next = 14;
118
+ break;
119
+ }
120
+ throw new errors.InvalidParameterError("Bad parameter: inbox_id must be of type Int, received ".concat((0, _utils.getType)(params.inbox_id)));
121
+ case 14:
122
+ _context.next = 16;
123
+ return _Api.default.sendRequest('/inbox_uploads', 'GET', params, options);
124
+ case 16:
111
125
  response = _context.sent;
112
126
  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) {
113
127
  return new _InboxUpload(obj, options);
114
128
  })) || []);
115
- case 14:
129
+ case 18:
116
130
  case "end":
117
131
  return _context.stop();
118
132
  }
@@ -102,6 +102,8 @@ _Invoice = Invoice;
102
102
  // Parameters:
103
103
  // 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.
104
104
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
105
+ // action - string
106
+ // page - int64
105
107
  (0, _defineProperty2.default)(Invoice, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
106
108
  var _response$data;
107
109
  var params,
@@ -126,15 +128,27 @@ _Invoice = Invoice;
126
128
  }
127
129
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
128
130
  case 6:
129
- _context.next = 8;
130
- return _Api.default.sendRequest('/invoices', 'GET', params, options);
131
+ if (!(params.action && !(0, _utils.isString)(params.action))) {
132
+ _context.next = 8;
133
+ break;
134
+ }
135
+ throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
131
136
  case 8:
137
+ if (!(params.page && !(0, _utils.isInt)(params.page))) {
138
+ _context.next = 10;
139
+ break;
140
+ }
141
+ throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
142
+ case 10:
143
+ _context.next = 12;
144
+ return _Api.default.sendRequest('/invoices', 'GET', params, options);
145
+ case 12:
132
146
  response = _context.sent;
133
147
  AccountLineItem = require('./AccountLineItem.js').default;
134
148
  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) {
135
149
  return new AccountLineItem(obj, options);
136
150
  })) || []);
137
- case 11:
151
+ case 15:
138
152
  case "end":
139
153
  return _context.stop();
140
154
  }