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
@@ -149,7 +149,7 @@ var SsoStrategy = /*#__PURE__*/(0, _createClass2.default)(function SsoStrategy()
149
149
  (0, _defineProperty2.default)(this, "getProvisionGroupAdminGroups", function () {
150
150
  return _this.attributes.provision_group_admin_groups;
151
151
  });
152
- // boolean # DEPRECATED: Auto-provisioned users get Sharing permission. Use a Group with the Bundle permission instead.
152
+ // boolean
153
153
  (0, _defineProperty2.default)(this, "getProvisionAttachmentsPermission", function () {
154
154
  return _this.attributes.provision_attachments_permission;
155
155
  });
@@ -283,6 +283,8 @@ _SsoStrategy = SsoStrategy;
283
283
  // Parameters:
284
284
  // 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.
285
285
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
286
+ // action - string
287
+ // page - int64
286
288
  (0, _defineProperty2.default)(SsoStrategy, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
287
289
  var _response$data;
288
290
  var params,
@@ -306,14 +308,26 @@ _SsoStrategy = SsoStrategy;
306
308
  }
307
309
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
308
310
  case 6:
309
- _context2.next = 8;
310
- return _Api.default.sendRequest('/sso_strategies', 'GET', params, options);
311
+ if (!(params.action && !(0, _utils.isString)(params.action))) {
312
+ _context2.next = 8;
313
+ break;
314
+ }
315
+ throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
311
316
  case 8:
317
+ if (!(params.page && !(0, _utils.isInt)(params.page))) {
318
+ _context2.next = 10;
319
+ break;
320
+ }
321
+ throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
322
+ case 10:
323
+ _context2.next = 12;
324
+ return _Api.default.sendRequest('/sso_strategies', 'GET', params, options);
325
+ case 12:
312
326
  response = _context2.sent;
313
327
  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) {
314
328
  return new _SsoStrategy(obj, options);
315
329
  })) || []);
316
- case 10:
330
+ case 14:
317
331
  case "end":
318
332
  return _context2.stop();
319
333
  }
@@ -90,6 +90,8 @@ _SyncLog = SyncLog;
90
90
  // Parameters:
91
91
  // 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.
92
92
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
93
+ // action - string
94
+ // page - int64
93
95
  // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `start_date`, `end_date`, `external_event_id`, `operation`, `status` or `sync_id`. Valid field combinations are `[ start_date ]`, `[ end_date ]`, `[ external_event_id ]`, `[ operation ]`, `[ status ]`, `[ sync_id ]`, `[ start_date, end_date ]`, `[ start_date, external_event_id ]`, `[ start_date, operation ]`, `[ start_date, status ]`, `[ start_date, sync_id ]`, `[ end_date, external_event_id ]`, `[ end_date, operation ]`, `[ end_date, status ]`, `[ end_date, sync_id ]`, `[ external_event_id, operation ]`, `[ external_event_id, status ]`, `[ external_event_id, sync_id ]`, `[ operation, status ]`, `[ operation, sync_id ]`, `[ status, sync_id ]`, `[ start_date, end_date, external_event_id ]`, `[ start_date, end_date, operation ]`, `[ start_date, end_date, status ]`, `[ start_date, end_date, sync_id ]`, `[ start_date, external_event_id, operation ]`, `[ start_date, external_event_id, status ]`, `[ start_date, external_event_id, sync_id ]`, `[ start_date, operation, status ]`, `[ start_date, operation, sync_id ]`, `[ start_date, status, sync_id ]`, `[ end_date, external_event_id, operation ]`, `[ end_date, external_event_id, status ]`, `[ end_date, external_event_id, sync_id ]`, `[ end_date, operation, status ]`, `[ end_date, operation, sync_id ]`, `[ end_date, status, sync_id ]`, `[ external_event_id, operation, status ]`, `[ external_event_id, operation, sync_id ]`, `[ external_event_id, status, sync_id ]`, `[ operation, status, sync_id ]`, `[ start_date, end_date, external_event_id, operation ]`, `[ start_date, end_date, external_event_id, status ]`, `[ start_date, end_date, external_event_id, sync_id ]`, `[ start_date, end_date, operation, status ]`, `[ start_date, end_date, operation, sync_id ]`, `[ start_date, end_date, status, sync_id ]`, `[ start_date, external_event_id, operation, status ]`, `[ start_date, external_event_id, operation, sync_id ]`, `[ start_date, external_event_id, status, sync_id ]`, `[ start_date, operation, status, sync_id ]`, `[ end_date, external_event_id, operation, status ]`, `[ end_date, external_event_id, operation, sync_id ]`, `[ end_date, external_event_id, status, sync_id ]`, `[ end_date, operation, status, sync_id ]`, `[ external_event_id, operation, status, sync_id ]`, `[ start_date, end_date, external_event_id, operation, status ]`, `[ start_date, end_date, external_event_id, operation, sync_id ]`, `[ start_date, end_date, external_event_id, status, sync_id ]`, `[ start_date, end_date, operation, status, sync_id ]`, `[ start_date, external_event_id, operation, status, sync_id ]` or `[ end_date, external_event_id, operation, status, sync_id ]`.
94
96
  // filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `operation` and `status`. Valid field combinations are `[ start_date ]`, `[ end_date ]`, `[ external_event_id ]`, `[ operation ]`, `[ status ]`, `[ sync_id ]`, `[ start_date, end_date ]`, `[ start_date, external_event_id ]`, `[ start_date, operation ]`, `[ start_date, status ]`, `[ start_date, sync_id ]`, `[ end_date, external_event_id ]`, `[ end_date, operation ]`, `[ end_date, status ]`, `[ end_date, sync_id ]`, `[ external_event_id, operation ]`, `[ external_event_id, status ]`, `[ external_event_id, sync_id ]`, `[ operation, status ]`, `[ operation, sync_id ]`, `[ status, sync_id ]`, `[ start_date, end_date, external_event_id ]`, `[ start_date, end_date, operation ]`, `[ start_date, end_date, status ]`, `[ start_date, end_date, sync_id ]`, `[ start_date, external_event_id, operation ]`, `[ start_date, external_event_id, status ]`, `[ start_date, external_event_id, sync_id ]`, `[ start_date, operation, status ]`, `[ start_date, operation, sync_id ]`, `[ start_date, status, sync_id ]`, `[ end_date, external_event_id, operation ]`, `[ end_date, external_event_id, status ]`, `[ end_date, external_event_id, sync_id ]`, `[ end_date, operation, status ]`, `[ end_date, operation, sync_id ]`, `[ end_date, status, sync_id ]`, `[ external_event_id, operation, status ]`, `[ external_event_id, operation, sync_id ]`, `[ external_event_id, status, sync_id ]`, `[ operation, status, sync_id ]`, `[ start_date, end_date, external_event_id, operation ]`, `[ start_date, end_date, external_event_id, status ]`, `[ start_date, end_date, external_event_id, sync_id ]`, `[ start_date, end_date, operation, status ]`, `[ start_date, end_date, operation, sync_id ]`, `[ start_date, end_date, status, sync_id ]`, `[ start_date, external_event_id, operation, status ]`, `[ start_date, external_event_id, operation, sync_id ]`, `[ start_date, external_event_id, status, sync_id ]`, `[ start_date, operation, status, sync_id ]`, `[ end_date, external_event_id, operation, status ]`, `[ end_date, external_event_id, operation, sync_id ]`, `[ end_date, external_event_id, status, sync_id ]`, `[ end_date, operation, status, sync_id ]`, `[ external_event_id, operation, status, sync_id ]`, `[ start_date, end_date, external_event_id, operation, status ]`, `[ start_date, end_date, external_event_id, operation, sync_id ]`, `[ start_date, end_date, external_event_id, status, sync_id ]`, `[ start_date, end_date, operation, status, sync_id ]`, `[ start_date, external_event_id, operation, status, sync_id ]` or `[ end_date, external_event_id, operation, status, sync_id ]`.
95
97
  (0, _defineProperty2.default)(SyncLog, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
@@ -115,14 +117,26 @@ _SyncLog = SyncLog;
115
117
  }
116
118
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
117
119
  case 6:
118
- _context.next = 8;
119
- return _Api.default.sendRequest('/sync_logs', 'GET', params, options);
120
+ if (!(params.action && !(0, _utils.isString)(params.action))) {
121
+ _context.next = 8;
122
+ break;
123
+ }
124
+ throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
120
125
  case 8:
126
+ if (!(params.page && !(0, _utils.isInt)(params.page))) {
127
+ _context.next = 10;
128
+ break;
129
+ }
130
+ throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
131
+ case 10:
132
+ _context.next = 12;
133
+ return _Api.default.sendRequest('/sync_logs', 'GET', params, options);
134
+ case 12:
121
135
  response = _context.sent;
122
136
  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) {
123
137
  return new _SyncLog(obj, options);
124
138
  })) || []);
125
- case 10:
139
+ case 14:
126
140
  case "end":
127
141
  return _context.stop();
128
142
  }
@@ -94,6 +94,8 @@ _UsageDailySnapshot = UsageDailySnapshot;
94
94
  // Parameters:
95
95
  // 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.
96
96
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
97
+ // action - string
98
+ // page - int64
97
99
  // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[date]=desc`). Valid fields are `date` and `usage_snapshot_id`.
98
100
  // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `date` and `usage_snapshot_id`. Valid field combinations are `[ usage_snapshot_id, date ]`.
99
101
  // filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `date`.
@@ -123,14 +125,26 @@ _UsageDailySnapshot = UsageDailySnapshot;
123
125
  }
124
126
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
125
127
  case 6:
126
- _context.next = 8;
127
- return _Api.default.sendRequest('/usage_daily_snapshots', 'GET', params, options);
128
+ if (!(params.action && !(0, _utils.isString)(params.action))) {
129
+ _context.next = 8;
130
+ break;
131
+ }
132
+ throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
128
133
  case 8:
134
+ if (!(params.page && !(0, _utils.isInt)(params.page))) {
135
+ _context.next = 10;
136
+ break;
137
+ }
138
+ throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
139
+ case 10:
140
+ _context.next = 12;
141
+ return _Api.default.sendRequest('/usage_daily_snapshots', 'GET', params, options);
142
+ case 12:
129
143
  response = _context.sent;
130
144
  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) {
131
145
  return new _UsageDailySnapshot(obj, options);
132
146
  })) || []);
133
- case 10:
147
+ case 14:
134
148
  case "end":
135
149
  return _context.stop();
136
150
  }
@@ -110,6 +110,8 @@ _UsageSnapshot = UsageSnapshot;
110
110
  // Parameters:
111
111
  // 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
112
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
113
+ // action - string
114
+ // page - int64
113
115
  (0, _defineProperty2.default)(UsageSnapshot, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
114
116
  var _response$data;
115
117
  var params,
@@ -133,14 +135,26 @@ _UsageSnapshot = UsageSnapshot;
133
135
  }
134
136
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
135
137
  case 6:
136
- _context.next = 8;
137
- return _Api.default.sendRequest('/usage_snapshots', 'GET', params, options);
138
+ if (!(params.action && !(0, _utils.isString)(params.action))) {
139
+ _context.next = 8;
140
+ break;
141
+ }
142
+ throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
138
143
  case 8:
144
+ if (!(params.page && !(0, _utils.isInt)(params.page))) {
145
+ _context.next = 10;
146
+ break;
147
+ }
148
+ throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
149
+ case 10:
150
+ _context.next = 12;
151
+ return _Api.default.sendRequest('/usage_snapshots', 'GET', params, options);
152
+ case 12:
139
153
  response = _context.sent;
140
154
  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) {
141
155
  return new _UsageSnapshot(obj, options);
142
156
  })) || []);
143
- case 10:
157
+ case 14:
144
158
  case "end":
145
159
  return _context.stop();
146
160
  }
@@ -61,7 +61,7 @@ var User = /*#__PURE__*/(0, _createClass2.default)(function User() {
61
61
  (0, _defineProperty2.default)(this, "setAllowedIps", function (value) {
62
62
  _this.attributes.allowed_ips = value;
63
63
  });
64
- // boolean # DEPRECATED: Can the user create Bundles (aka Share Links)? Use the bundle permission instead.
64
+ // boolean # If `true`, the user can user create Bundles (aka Share Links). Use the bundle permission instead.
65
65
  (0, _defineProperty2.default)(this, "getAttachmentsPermission", function () {
66
66
  return _this.attributes.attachments_permission;
67
67
  });
@@ -695,7 +695,7 @@ var User = /*#__PURE__*/(0, _createClass2.default)(function User() {
695
695
  // password_confirmation - string - Optional, but if provided, we will ensure that it matches the value sent in `password`.
696
696
  // announcements_read - boolean - Signifies that the user has read all the announcements in the UI.
697
697
  // allowed_ips - string - A list of allowed IPs if applicable. Newline delimited
698
- // attachments_permission - boolean - DEPRECATED: Can the user create Bundles (aka Share Links)? Use the bundle permission instead.
698
+ // attachments_permission - boolean - DEPRECATED: If `true`, the user can user create Bundles (aka Share Links). Use the bundle permission instead.
699
699
  // authenticate_until - string - Scheduled Date/Time at which user will be deactivated
700
700
  // authentication_method - string - How is this user authenticated?
701
701
  // billing_permission - boolean - Allow this user to perform operations on the account, payments, and invoices?
@@ -1032,6 +1032,8 @@ _User = User;
1032
1032
  // Parameters:
1033
1033
  // 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.
1034
1034
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
1035
+ // action - string
1036
+ // page - int64
1035
1037
  // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[authenticate_until]=desc`). Valid fields are `authenticate_until`, `email`, `last_desktop_login_at`, `last_login_at`, `username`, `company`, `name`, `site_admin`, `receive_admin_alerts`, `password_validity_days`, `ssl_required` or `not_site_admin`.
1036
1038
  // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `username`, `email`, `company`, `site_admin`, `password_validity_days`, `ssl_required`, `last_login_at`, `authenticate_until` or `not_site_admin`. Valid field combinations are `[ not_site_admin, username ]`.
1037
1039
  // filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `password_validity_days`, `last_login_at` or `authenticate_until`.
@@ -1064,26 +1066,38 @@ _User = User;
1064
1066
  }
1065
1067
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
1066
1068
  case 6:
1067
- if (!(params.ids && !(0, _utils.isString)(params.ids))) {
1069
+ if (!(params.action && !(0, _utils.isString)(params.action))) {
1068
1070
  _context7.next = 8;
1069
1071
  break;
1070
1072
  }
1071
- throw new errors.InvalidParameterError("Bad parameter: ids must be of type String, received ".concat((0, _utils.getType)(params.ids)));
1073
+ throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
1072
1074
  case 8:
1073
- if (!(params.search && !(0, _utils.isString)(params.search))) {
1075
+ if (!(params.page && !(0, _utils.isInt)(params.page))) {
1074
1076
  _context7.next = 10;
1075
1077
  break;
1076
1078
  }
1077
- throw new errors.InvalidParameterError("Bad parameter: search must be of type String, received ".concat((0, _utils.getType)(params.search)));
1079
+ throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
1078
1080
  case 10:
1079
- _context7.next = 12;
1080
- return _Api.default.sendRequest('/users', 'GET', params, options);
1081
+ if (!(params.ids && !(0, _utils.isString)(params.ids))) {
1082
+ _context7.next = 12;
1083
+ break;
1084
+ }
1085
+ throw new errors.InvalidParameterError("Bad parameter: ids must be of type String, received ".concat((0, _utils.getType)(params.ids)));
1081
1086
  case 12:
1087
+ if (!(params.search && !(0, _utils.isString)(params.search))) {
1088
+ _context7.next = 14;
1089
+ break;
1090
+ }
1091
+ throw new errors.InvalidParameterError("Bad parameter: search must be of type String, received ".concat((0, _utils.getType)(params.search)));
1092
+ case 14:
1093
+ _context7.next = 16;
1094
+ return _Api.default.sendRequest('/users', 'GET', params, options);
1095
+ case 16:
1082
1096
  response = _context7.sent;
1083
1097
  return _context7.abrupt("return", (response === null || response === void 0 || (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
1084
1098
  return new _User(obj, options);
1085
1099
  })) || []);
1086
- case 14:
1100
+ case 18:
1087
1101
  case "end":
1088
1102
  return _context7.stop();
1089
1103
  }
@@ -1160,7 +1174,7 @@ _User = User;
1160
1174
  // password_confirmation - string - Optional, but if provided, we will ensure that it matches the value sent in `password`.
1161
1175
  // announcements_read - boolean - Signifies that the user has read all the announcements in the UI.
1162
1176
  // allowed_ips - string - A list of allowed IPs if applicable. Newline delimited
1163
- // attachments_permission - boolean - DEPRECATED: Can the user create Bundles (aka Share Links)? Use the bundle permission instead.
1177
+ // attachments_permission - boolean - DEPRECATED: If `true`, the user can user create Bundles (aka Share Links). Use the bundle permission instead.
1164
1178
  // authenticate_until - string - Scheduled Date/Time at which user will be deactivated
1165
1179
  // authentication_method - string - How is this user authenticated?
1166
1180
  // billing_permission - boolean - Allow this user to perform operations on the account, payments, and invoices?
@@ -75,6 +75,8 @@ _UserCipherUse = UserCipherUse;
75
75
  // user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
76
76
  // 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.
77
77
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
78
+ // action - string
79
+ // page - int64
78
80
  (0, _defineProperty2.default)(UserCipherUse, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
79
81
  var _response$data;
80
82
  var params,
@@ -104,14 +106,26 @@ _UserCipherUse = UserCipherUse;
104
106
  }
105
107
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
106
108
  case 8:
107
- _context.next = 10;
108
- return _Api.default.sendRequest('/user_cipher_uses', 'GET', params, options);
109
+ if (!(params.action && !(0, _utils.isString)(params.action))) {
110
+ _context.next = 10;
111
+ break;
112
+ }
113
+ throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
109
114
  case 10:
115
+ if (!(params.page && !(0, _utils.isInt)(params.page))) {
116
+ _context.next = 12;
117
+ break;
118
+ }
119
+ throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
120
+ case 12:
121
+ _context.next = 14;
122
+ return _Api.default.sendRequest('/user_cipher_uses', 'GET', params, options);
123
+ case 14:
110
124
  response = _context.sent;
111
125
  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) {
112
126
  return new _UserCipherUse(obj, options);
113
127
  })) || []);
114
- case 12:
128
+ case 16:
115
129
  case "end":
116
130
  return _context.stop();
117
131
  }
@@ -160,6 +160,8 @@ _UserRequest = UserRequest;
160
160
  // Parameters:
161
161
  // 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.
162
162
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
163
+ // action - string
164
+ // page - int64
163
165
  (0, _defineProperty2.default)(UserRequest, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
164
166
  var _response$data;
165
167
  var params,
@@ -183,14 +185,26 @@ _UserRequest = UserRequest;
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 6:
186
- _context3.next = 8;
187
- return _Api.default.sendRequest('/user_requests', 'GET', params, options);
188
+ if (!(params.action && !(0, _utils.isString)(params.action))) {
189
+ _context3.next = 8;
190
+ break;
191
+ }
192
+ throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
188
193
  case 8:
194
+ if (!(params.page && !(0, _utils.isInt)(params.page))) {
195
+ _context3.next = 10;
196
+ break;
197
+ }
198
+ throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
199
+ case 10:
200
+ _context3.next = 12;
201
+ return _Api.default.sendRequest('/user_requests', 'GET', params, options);
202
+ case 12:
189
203
  response = _context3.sent;
190
204
  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) {
191
205
  return new _UserRequest(obj, options);
192
206
  })) || []);
193
- case 10:
207
+ case 14:
194
208
  case "end":
195
209
  return _context3.stop();
196
210
  }
@@ -114,6 +114,8 @@ _WebDavActionLog = WebDavActionLog;
114
114
  // Parameters:
115
115
  // 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.
116
116
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
117
+ // action - string
118
+ // page - int64
117
119
  // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `start_date`, `end_date`, `path`, `true_path`, `remote_ip`, `success`, `action_type` or `username`. Valid field combinations are `[ start_date ]`, `[ end_date ]`, `[ path ]`, `[ true_path ]`, `[ remote_ip ]`, `[ success ]`, `[ action_type ]`, `[ username ]`, `[ start_date, end_date ]`, `[ start_date, path ]`, `[ start_date, true_path ]`, `[ start_date, remote_ip ]`, `[ start_date, success ]`, `[ start_date, action_type ]`, `[ start_date, username ]`, `[ end_date, path ]`, `[ end_date, true_path ]`, `[ end_date, remote_ip ]`, `[ end_date, success ]`, `[ end_date, action_type ]`, `[ end_date, username ]`, `[ path, true_path ]`, `[ path, remote_ip ]`, `[ path, success ]`, `[ path, action_type ]`, `[ path, username ]`, `[ true_path, remote_ip ]`, `[ true_path, success ]`, `[ true_path, action_type ]`, `[ true_path, username ]`, `[ remote_ip, success ]`, `[ remote_ip, action_type ]`, `[ remote_ip, username ]`, `[ success, action_type ]`, `[ success, username ]`, `[ action_type, username ]`, `[ start_date, end_date, path ]`, `[ start_date, end_date, true_path ]`, `[ start_date, end_date, remote_ip ]`, `[ start_date, end_date, success ]`, `[ start_date, end_date, action_type ]`, `[ start_date, end_date, username ]`, `[ start_date, path, true_path ]`, `[ start_date, path, remote_ip ]`, `[ start_date, path, success ]`, `[ start_date, path, action_type ]`, `[ start_date, path, username ]`, `[ start_date, true_path, remote_ip ]`, `[ start_date, true_path, success ]`, `[ start_date, true_path, action_type ]`, `[ start_date, true_path, username ]`, `[ start_date, remote_ip, success ]`, `[ start_date, remote_ip, action_type ]`, `[ start_date, remote_ip, username ]`, `[ start_date, success, action_type ]`, `[ start_date, success, username ]`, `[ start_date, action_type, username ]`, `[ end_date, path, true_path ]`, `[ end_date, path, remote_ip ]`, `[ end_date, path, success ]`, `[ end_date, path, action_type ]`, `[ end_date, path, username ]`, `[ end_date, true_path, remote_ip ]`, `[ end_date, true_path, success ]`, `[ end_date, true_path, action_type ]`, `[ end_date, true_path, username ]`, `[ end_date, remote_ip, success ]`, `[ end_date, remote_ip, action_type ]`, `[ end_date, remote_ip, username ]`, `[ end_date, success, action_type ]`, `[ end_date, success, username ]`, `[ end_date, action_type, username ]`, `[ path, true_path, remote_ip ]`, `[ path, true_path, success ]`, `[ path, true_path, action_type ]`, `[ path, true_path, username ]`, `[ path, remote_ip, success ]`, `[ path, remote_ip, action_type ]`, `[ path, remote_ip, username ]`, `[ path, success, action_type ]`, `[ path, success, username ]`, `[ path, action_type, username ]`, `[ true_path, remote_ip, success ]`, `[ true_path, remote_ip, action_type ]`, `[ true_path, remote_ip, username ]`, `[ true_path, success, action_type ]`, `[ true_path, success, username ]`, `[ true_path, action_type, username ]`, `[ remote_ip, success, action_type ]`, `[ remote_ip, success, username ]`, `[ remote_ip, action_type, username ]`, `[ success, action_type, username ]`, `[ start_date, end_date, path, true_path ]`, `[ start_date, end_date, path, remote_ip ]`, `[ start_date, end_date, path, success ]`, `[ start_date, end_date, path, action_type ]`, `[ start_date, end_date, path, username ]`, `[ start_date, end_date, true_path, remote_ip ]`, `[ start_date, end_date, true_path, success ]`, `[ start_date, end_date, true_path, action_type ]`, `[ start_date, end_date, true_path, username ]`, `[ start_date, end_date, remote_ip, success ]`, `[ start_date, end_date, remote_ip, action_type ]`, `[ start_date, end_date, remote_ip, username ]`, `[ start_date, end_date, success, action_type ]`, `[ start_date, end_date, success, username ]`, `[ start_date, end_date, action_type, username ]`, `[ start_date, path, true_path, remote_ip ]`, `[ start_date, path, true_path, success ]`, `[ start_date, path, true_path, action_type ]`, `[ start_date, path, true_path, username ]`, `[ start_date, path, remote_ip, success ]`, `[ start_date, path, remote_ip, action_type ]`, `[ start_date, path, remote_ip, username ]`, `[ start_date, path, success, action_type ]`, `[ start_date, path, success, username ]`, `[ start_date, path, action_type, username ]`, `[ start_date, true_path, remote_ip, success ]`, `[ start_date, true_path, remote_ip, action_type ]`, `[ start_date, true_path, remote_ip, username ]`, `[ start_date, true_path, success, action_type ]`, `[ start_date, true_path, success, username ]`, `[ start_date, true_path, action_type, username ]`, `[ start_date, remote_ip, success, action_type ]`, `[ start_date, remote_ip, success, username ]`, `[ start_date, remote_ip, action_type, username ]`, `[ start_date, success, action_type, username ]`, `[ end_date, path, true_path, remote_ip ]`, `[ end_date, path, true_path, success ]`, `[ end_date, path, true_path, action_type ]`, `[ end_date, path, true_path, username ]`, `[ end_date, path, remote_ip, success ]`, `[ end_date, path, remote_ip, action_type ]`, `[ end_date, path, remote_ip, username ]`, `[ end_date, path, success, action_type ]`, `[ end_date, path, success, username ]`, `[ end_date, path, action_type, username ]`, `[ end_date, true_path, remote_ip, success ]`, `[ end_date, true_path, remote_ip, action_type ]`, `[ end_date, true_path, remote_ip, username ]`, `[ end_date, true_path, success, action_type ]`, `[ end_date, true_path, success, username ]`, `[ end_date, true_path, action_type, username ]`, `[ end_date, remote_ip, success, action_type ]`, `[ end_date, remote_ip, success, username ]`, `[ end_date, remote_ip, action_type, username ]`, `[ end_date, success, action_type, username ]`, `[ path, true_path, remote_ip, success ]`, `[ path, true_path, remote_ip, action_type ]`, `[ path, true_path, remote_ip, username ]`, `[ path, true_path, success, action_type ]`, `[ path, true_path, success, username ]`, `[ path, true_path, action_type, username ]`, `[ path, remote_ip, success, action_type ]`, `[ path, remote_ip, success, username ]`, `[ path, remote_ip, action_type, username ]`, `[ path, success, action_type, username ]`, `[ true_path, remote_ip, success, action_type ]`, `[ true_path, remote_ip, success, username ]`, `[ true_path, remote_ip, action_type, username ]`, `[ true_path, success, action_type, username ]`, `[ remote_ip, success, action_type, username ]`, `[ start_date, end_date, path, true_path, remote_ip ]`, `[ start_date, end_date, path, true_path, success ]`, `[ start_date, end_date, path, true_path, action_type ]`, `[ start_date, end_date, path, true_path, username ]`, `[ start_date, end_date, path, remote_ip, success ]`, `[ start_date, end_date, path, remote_ip, action_type ]`, `[ start_date, end_date, path, remote_ip, username ]`, `[ start_date, end_date, path, success, action_type ]`, `[ start_date, end_date, path, success, username ]`, `[ start_date, end_date, path, action_type, username ]`, `[ start_date, end_date, true_path, remote_ip, success ]`, `[ start_date, end_date, true_path, remote_ip, action_type ]`, `[ start_date, end_date, true_path, remote_ip, username ]`, `[ start_date, end_date, true_path, success, action_type ]`, `[ start_date, end_date, true_path, success, username ]`, `[ start_date, end_date, true_path, action_type, username ]`, `[ start_date, end_date, remote_ip, success, action_type ]`, `[ start_date, end_date, remote_ip, success, username ]`, `[ start_date, end_date, remote_ip, action_type, username ]`, `[ start_date, end_date, success, action_type, username ]`, `[ start_date, path, true_path, remote_ip, success ]`, `[ start_date, path, true_path, remote_ip, action_type ]`, `[ start_date, path, true_path, remote_ip, username ]`, `[ start_date, path, true_path, success, action_type ]`, `[ start_date, path, true_path, success, username ]`, `[ start_date, path, true_path, action_type, username ]`, `[ start_date, path, remote_ip, success, action_type ]`, `[ start_date, path, remote_ip, success, username ]`, `[ start_date, path, remote_ip, action_type, username ]`, `[ start_date, path, success, action_type, username ]`, `[ start_date, true_path, remote_ip, success, action_type ]`, `[ start_date, true_path, remote_ip, success, username ]`, `[ start_date, true_path, remote_ip, action_type, username ]`, `[ start_date, true_path, success, action_type, username ]`, `[ start_date, remote_ip, success, action_type, username ]`, `[ end_date, path, true_path, remote_ip, success ]`, `[ end_date, path, true_path, remote_ip, action_type ]`, `[ end_date, path, true_path, remote_ip, username ]`, `[ end_date, path, true_path, success, action_type ]`, `[ end_date, path, true_path, success, username ]`, `[ end_date, path, true_path, action_type, username ]`, `[ end_date, path, remote_ip, success, action_type ]`, `[ end_date, path, remote_ip, success, username ]`, `[ end_date, path, remote_ip, action_type, username ]`, `[ end_date, path, success, action_type, username ]`, `[ end_date, true_path, remote_ip, success, action_type ]`, `[ end_date, true_path, remote_ip, success, username ]`, `[ end_date, true_path, remote_ip, action_type, username ]`, `[ end_date, true_path, success, action_type, username ]`, `[ end_date, remote_ip, success, action_type, username ]`, `[ path, true_path, remote_ip, success, action_type ]`, `[ path, true_path, remote_ip, success, username ]`, `[ path, true_path, remote_ip, action_type, username ]`, `[ path, true_path, success, action_type, username ]`, `[ path, remote_ip, success, action_type, username ]`, `[ true_path, remote_ip, success, action_type, username ]`, `[ start_date, end_date, path, true_path, remote_ip, success ]`, `[ start_date, end_date, path, true_path, remote_ip, action_type ]`, `[ start_date, end_date, path, true_path, remote_ip, username ]`, `[ start_date, end_date, path, true_path, success, action_type ]`, `[ start_date, end_date, path, true_path, success, username ]`, `[ start_date, end_date, path, true_path, action_type, username ]`, `[ start_date, end_date, path, remote_ip, success, action_type ]`, `[ start_date, end_date, path, remote_ip, success, username ]`, `[ start_date, end_date, path, remote_ip, action_type, username ]`, `[ start_date, end_date, path, success, action_type, username ]`, `[ start_date, end_date, true_path, remote_ip, success, action_type ]`, `[ start_date, end_date, true_path, remote_ip, success, username ]`, `[ start_date, end_date, true_path, remote_ip, action_type, username ]`, `[ start_date, end_date, true_path, success, action_type, username ]`, `[ start_date, end_date, remote_ip, success, action_type, username ]`, `[ start_date, path, true_path, remote_ip, success, action_type ]`, `[ start_date, path, true_path, remote_ip, success, username ]`, `[ start_date, path, true_path, remote_ip, action_type, username ]`, `[ start_date, path, true_path, success, action_type, username ]`, `[ start_date, path, remote_ip, success, action_type, username ]`, `[ start_date, true_path, remote_ip, success, action_type, username ]`, `[ end_date, path, true_path, remote_ip, success, action_type ]`, `[ end_date, path, true_path, remote_ip, success, username ]`, `[ end_date, path, true_path, remote_ip, action_type, username ]`, `[ end_date, path, true_path, success, action_type, username ]`, `[ end_date, path, remote_ip, success, action_type, username ]`, `[ end_date, true_path, remote_ip, success, action_type, username ]`, `[ path, true_path, remote_ip, success, action_type, username ]`, `[ start_date, end_date, path, true_path, remote_ip, success, action_type ]`, `[ start_date, end_date, path, true_path, remote_ip, success, username ]`, `[ start_date, end_date, path, true_path, remote_ip, action_type, username ]`, `[ start_date, end_date, path, true_path, success, action_type, username ]`, `[ start_date, end_date, path, remote_ip, success, action_type, username ]`, `[ start_date, end_date, true_path, remote_ip, success, action_type, username ]`, `[ start_date, path, true_path, remote_ip, success, action_type, username ]` or `[ end_date, path, true_path, remote_ip, success, action_type, username ]`.
118
120
  // filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `path`, `true_path`, `action_type` or `username`. Valid field combinations are `[ start_date ]`, `[ end_date ]`, `[ path ]`, `[ true_path ]`, `[ remote_ip ]`, `[ success ]`, `[ action_type ]`, `[ username ]`, `[ start_date, end_date ]`, `[ start_date, path ]`, `[ start_date, true_path ]`, `[ start_date, remote_ip ]`, `[ start_date, success ]`, `[ start_date, action_type ]`, `[ start_date, username ]`, `[ end_date, path ]`, `[ end_date, true_path ]`, `[ end_date, remote_ip ]`, `[ end_date, success ]`, `[ end_date, action_type ]`, `[ end_date, username ]`, `[ path, true_path ]`, `[ path, remote_ip ]`, `[ path, success ]`, `[ path, action_type ]`, `[ path, username ]`, `[ true_path, remote_ip ]`, `[ true_path, success ]`, `[ true_path, action_type ]`, `[ true_path, username ]`, `[ remote_ip, success ]`, `[ remote_ip, action_type ]`, `[ remote_ip, username ]`, `[ success, action_type ]`, `[ success, username ]`, `[ action_type, username ]`, `[ start_date, end_date, path ]`, `[ start_date, end_date, true_path ]`, `[ start_date, end_date, remote_ip ]`, `[ start_date, end_date, success ]`, `[ start_date, end_date, action_type ]`, `[ start_date, end_date, username ]`, `[ start_date, path, true_path ]`, `[ start_date, path, remote_ip ]`, `[ start_date, path, success ]`, `[ start_date, path, action_type ]`, `[ start_date, path, username ]`, `[ start_date, true_path, remote_ip ]`, `[ start_date, true_path, success ]`, `[ start_date, true_path, action_type ]`, `[ start_date, true_path, username ]`, `[ start_date, remote_ip, success ]`, `[ start_date, remote_ip, action_type ]`, `[ start_date, remote_ip, username ]`, `[ start_date, success, action_type ]`, `[ start_date, success, username ]`, `[ start_date, action_type, username ]`, `[ end_date, path, true_path ]`, `[ end_date, path, remote_ip ]`, `[ end_date, path, success ]`, `[ end_date, path, action_type ]`, `[ end_date, path, username ]`, `[ end_date, true_path, remote_ip ]`, `[ end_date, true_path, success ]`, `[ end_date, true_path, action_type ]`, `[ end_date, true_path, username ]`, `[ end_date, remote_ip, success ]`, `[ end_date, remote_ip, action_type ]`, `[ end_date, remote_ip, username ]`, `[ end_date, success, action_type ]`, `[ end_date, success, username ]`, `[ end_date, action_type, username ]`, `[ path, true_path, remote_ip ]`, `[ path, true_path, success ]`, `[ path, true_path, action_type ]`, `[ path, true_path, username ]`, `[ path, remote_ip, success ]`, `[ path, remote_ip, action_type ]`, `[ path, remote_ip, username ]`, `[ path, success, action_type ]`, `[ path, success, username ]`, `[ path, action_type, username ]`, `[ true_path, remote_ip, success ]`, `[ true_path, remote_ip, action_type ]`, `[ true_path, remote_ip, username ]`, `[ true_path, success, action_type ]`, `[ true_path, success, username ]`, `[ true_path, action_type, username ]`, `[ remote_ip, success, action_type ]`, `[ remote_ip, success, username ]`, `[ remote_ip, action_type, username ]`, `[ success, action_type, username ]`, `[ start_date, end_date, path, true_path ]`, `[ start_date, end_date, path, remote_ip ]`, `[ start_date, end_date, path, success ]`, `[ start_date, end_date, path, action_type ]`, `[ start_date, end_date, path, username ]`, `[ start_date, end_date, true_path, remote_ip ]`, `[ start_date, end_date, true_path, success ]`, `[ start_date, end_date, true_path, action_type ]`, `[ start_date, end_date, true_path, username ]`, `[ start_date, end_date, remote_ip, success ]`, `[ start_date, end_date, remote_ip, action_type ]`, `[ start_date, end_date, remote_ip, username ]`, `[ start_date, end_date, success, action_type ]`, `[ start_date, end_date, success, username ]`, `[ start_date, end_date, action_type, username ]`, `[ start_date, path, true_path, remote_ip ]`, `[ start_date, path, true_path, success ]`, `[ start_date, path, true_path, action_type ]`, `[ start_date, path, true_path, username ]`, `[ start_date, path, remote_ip, success ]`, `[ start_date, path, remote_ip, action_type ]`, `[ start_date, path, remote_ip, username ]`, `[ start_date, path, success, action_type ]`, `[ start_date, path, success, username ]`, `[ start_date, path, action_type, username ]`, `[ start_date, true_path, remote_ip, success ]`, `[ start_date, true_path, remote_ip, action_type ]`, `[ start_date, true_path, remote_ip, username ]`, `[ start_date, true_path, success, action_type ]`, `[ start_date, true_path, success, username ]`, `[ start_date, true_path, action_type, username ]`, `[ start_date, remote_ip, success, action_type ]`, `[ start_date, remote_ip, success, username ]`, `[ start_date, remote_ip, action_type, username ]`, `[ start_date, success, action_type, username ]`, `[ end_date, path, true_path, remote_ip ]`, `[ end_date, path, true_path, success ]`, `[ end_date, path, true_path, action_type ]`, `[ end_date, path, true_path, username ]`, `[ end_date, path, remote_ip, success ]`, `[ end_date, path, remote_ip, action_type ]`, `[ end_date, path, remote_ip, username ]`, `[ end_date, path, success, action_type ]`, `[ end_date, path, success, username ]`, `[ end_date, path, action_type, username ]`, `[ end_date, true_path, remote_ip, success ]`, `[ end_date, true_path, remote_ip, action_type ]`, `[ end_date, true_path, remote_ip, username ]`, `[ end_date, true_path, success, action_type ]`, `[ end_date, true_path, success, username ]`, `[ end_date, true_path, action_type, username ]`, `[ end_date, remote_ip, success, action_type ]`, `[ end_date, remote_ip, success, username ]`, `[ end_date, remote_ip, action_type, username ]`, `[ end_date, success, action_type, username ]`, `[ path, true_path, remote_ip, success ]`, `[ path, true_path, remote_ip, action_type ]`, `[ path, true_path, remote_ip, username ]`, `[ path, true_path, success, action_type ]`, `[ path, true_path, success, username ]`, `[ path, true_path, action_type, username ]`, `[ path, remote_ip, success, action_type ]`, `[ path, remote_ip, success, username ]`, `[ path, remote_ip, action_type, username ]`, `[ path, success, action_type, username ]`, `[ true_path, remote_ip, success, action_type ]`, `[ true_path, remote_ip, success, username ]`, `[ true_path, remote_ip, action_type, username ]`, `[ true_path, success, action_type, username ]`, `[ remote_ip, success, action_type, username ]`, `[ start_date, end_date, path, true_path, remote_ip ]`, `[ start_date, end_date, path, true_path, success ]`, `[ start_date, end_date, path, true_path, action_type ]`, `[ start_date, end_date, path, true_path, username ]`, `[ start_date, end_date, path, remote_ip, success ]`, `[ start_date, end_date, path, remote_ip, action_type ]`, `[ start_date, end_date, path, remote_ip, username ]`, `[ start_date, end_date, path, success, action_type ]`, `[ start_date, end_date, path, success, username ]`, `[ start_date, end_date, path, action_type, username ]`, `[ start_date, end_date, true_path, remote_ip, success ]`, `[ start_date, end_date, true_path, remote_ip, action_type ]`, `[ start_date, end_date, true_path, remote_ip, username ]`, `[ start_date, end_date, true_path, success, action_type ]`, `[ start_date, end_date, true_path, success, username ]`, `[ start_date, end_date, true_path, action_type, username ]`, `[ start_date, end_date, remote_ip, success, action_type ]`, `[ start_date, end_date, remote_ip, success, username ]`, `[ start_date, end_date, remote_ip, action_type, username ]`, `[ start_date, end_date, success, action_type, username ]`, `[ start_date, path, true_path, remote_ip, success ]`, `[ start_date, path, true_path, remote_ip, action_type ]`, `[ start_date, path, true_path, remote_ip, username ]`, `[ start_date, path, true_path, success, action_type ]`, `[ start_date, path, true_path, success, username ]`, `[ start_date, path, true_path, action_type, username ]`, `[ start_date, path, remote_ip, success, action_type ]`, `[ start_date, path, remote_ip, success, username ]`, `[ start_date, path, remote_ip, action_type, username ]`, `[ start_date, path, success, action_type, username ]`, `[ start_date, true_path, remote_ip, success, action_type ]`, `[ start_date, true_path, remote_ip, success, username ]`, `[ start_date, true_path, remote_ip, action_type, username ]`, `[ start_date, true_path, success, action_type, username ]`, `[ start_date, remote_ip, success, action_type, username ]`, `[ end_date, path, true_path, remote_ip, success ]`, `[ end_date, path, true_path, remote_ip, action_type ]`, `[ end_date, path, true_path, remote_ip, username ]`, `[ end_date, path, true_path, success, action_type ]`, `[ end_date, path, true_path, success, username ]`, `[ end_date, path, true_path, action_type, username ]`, `[ end_date, path, remote_ip, success, action_type ]`, `[ end_date, path, remote_ip, success, username ]`, `[ end_date, path, remote_ip, action_type, username ]`, `[ end_date, path, success, action_type, username ]`, `[ end_date, true_path, remote_ip, success, action_type ]`, `[ end_date, true_path, remote_ip, success, username ]`, `[ end_date, true_path, remote_ip, action_type, username ]`, `[ end_date, true_path, success, action_type, username ]`, `[ end_date, remote_ip, success, action_type, username ]`, `[ path, true_path, remote_ip, success, action_type ]`, `[ path, true_path, remote_ip, success, username ]`, `[ path, true_path, remote_ip, action_type, username ]`, `[ path, true_path, success, action_type, username ]`, `[ path, remote_ip, success, action_type, username ]`, `[ true_path, remote_ip, success, action_type, username ]`, `[ start_date, end_date, path, true_path, remote_ip, success ]`, `[ start_date, end_date, path, true_path, remote_ip, action_type ]`, `[ start_date, end_date, path, true_path, remote_ip, username ]`, `[ start_date, end_date, path, true_path, success, action_type ]`, `[ start_date, end_date, path, true_path, success, username ]`, `[ start_date, end_date, path, true_path, action_type, username ]`, `[ start_date, end_date, path, remote_ip, success, action_type ]`, `[ start_date, end_date, path, remote_ip, success, username ]`, `[ start_date, end_date, path, remote_ip, action_type, username ]`, `[ start_date, end_date, path, success, action_type, username ]`, `[ start_date, end_date, true_path, remote_ip, success, action_type ]`, `[ start_date, end_date, true_path, remote_ip, success, username ]`, `[ start_date, end_date, true_path, remote_ip, action_type, username ]`, `[ start_date, end_date, true_path, success, action_type, username ]`, `[ start_date, end_date, remote_ip, success, action_type, username ]`, `[ start_date, path, true_path, remote_ip, success, action_type ]`, `[ start_date, path, true_path, remote_ip, success, username ]`, `[ start_date, path, true_path, remote_ip, action_type, username ]`, `[ start_date, path, true_path, success, action_type, username ]`, `[ start_date, path, remote_ip, success, action_type, username ]`, `[ start_date, true_path, remote_ip, success, action_type, username ]`, `[ end_date, path, true_path, remote_ip, success, action_type ]`, `[ end_date, path, true_path, remote_ip, success, username ]`, `[ end_date, path, true_path, remote_ip, action_type, username ]`, `[ end_date, path, true_path, success, action_type, username ]`, `[ end_date, path, remote_ip, success, action_type, username ]`, `[ end_date, true_path, remote_ip, success, action_type, username ]`, `[ path, true_path, remote_ip, success, action_type, username ]`, `[ start_date, end_date, path, true_path, remote_ip, success, action_type ]`, `[ start_date, end_date, path, true_path, remote_ip, success, username ]`, `[ start_date, end_date, path, true_path, remote_ip, action_type, username ]`, `[ start_date, end_date, path, true_path, success, action_type, username ]`, `[ start_date, end_date, path, remote_ip, success, action_type, username ]`, `[ start_date, end_date, true_path, remote_ip, success, action_type, username ]`, `[ start_date, path, true_path, remote_ip, success, action_type, username ]` or `[ end_date, path, true_path, remote_ip, success, action_type, username ]`.
119
121
  (0, _defineProperty2.default)(WebDavActionLog, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
@@ -139,14 +141,26 @@ _WebDavActionLog = WebDavActionLog;
139
141
  }
140
142
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
141
143
  case 6:
142
- _context.next = 8;
143
- return _Api.default.sendRequest('/web_dav_action_logs', 'GET', params, options);
144
+ if (!(params.action && !(0, _utils.isString)(params.action))) {
145
+ _context.next = 8;
146
+ break;
147
+ }
148
+ throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
144
149
  case 8:
150
+ if (!(params.page && !(0, _utils.isInt)(params.page))) {
151
+ _context.next = 10;
152
+ break;
153
+ }
154
+ throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
155
+ case 10:
156
+ _context.next = 12;
157
+ return _Api.default.sendRequest('/web_dav_action_logs', 'GET', params, options);
158
+ case 12:
145
159
  response = _context.sent;
146
160
  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) {
147
161
  return new _WebDavActionLog(obj, options);
148
162
  })) || []);
149
- case 10:
163
+ case 14:
150
164
  case "end":
151
165
  return _context.stop();
152
166
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.2.86",
3
+ "version": "1.2.87",
4
4
  "description": "Files.com SDK for JavaScript",
5
5
  "keywords": [
6
6
  "files.com",
package/src/Files.js CHANGED
@@ -5,7 +5,7 @@ const endpointPrefix = '/api/rest/v1'
5
5
  let apiKey
6
6
  let baseUrl = 'https://app.files.com'
7
7
  let sessionId = null
8
- const version = '1.2.86'
8
+ const version = '1.2.87'
9
9
  let userAgent = `Files.com JavaScript SDK v${version}`
10
10
 
11
11
  let logLevel = LogLevel.INFO
@@ -62,6 +62,8 @@ class ActionNotificationExportResult {
62
62
  // user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
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
  // action_notification_export_id (required) - int64 - ID of the associated action notification export.
66
68
  static list = async (params = {}, options = {}) => {
67
69
  if (!params.action_notification_export_id) {
@@ -80,6 +82,14 @@ class ActionNotificationExportResult {
80
82
  throw new errors.InvalidParameterError(`Bad parameter: per_page must be of type Int, received ${getType(params.per_page)}`)
81
83
  }
82
84
 
85
+ if (params.action && !isString(params.action)) {
86
+ throw new errors.InvalidParameterError(`Bad parameter: action must be of type String, received ${getType(params.action)}`)
87
+ }
88
+
89
+ if (params.page && !isInt(params.page)) {
90
+ throw new errors.InvalidParameterError(`Bad parameter: page must be of type Int, received ${getType(params.page)}`)
91
+ }
92
+
83
93
  if (params.action_notification_export_id && !isInt(params.action_notification_export_id)) {
84
94
  throw new errors.InvalidParameterError(`Bad parameter: action_notification_export_id must be of type Int, received ${getType(params.action_notification_export_id)}`)
85
95
  }
@@ -108,6 +108,13 @@ class ApiKey {
108
108
  this.attributes.user_id = value
109
109
  }
110
110
 
111
+ // string # Folder path restriction for this api key.
112
+ getPath = () => this.attributes.path
113
+
114
+ setPath = value => {
115
+ this.attributes.path = value
116
+ }
117
+
111
118
  // Parameters:
112
119
  // description - string - User-supplied description of API key.
113
120
  // expires_at - string - API Key expiration date
@@ -200,6 +207,8 @@ class ApiKey {
200
207
  // user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
201
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.
202
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
203
212
  // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[expires_at]=desc`). Valid fields are `expires_at`.
204
213
  // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `expires_at`.
205
214
  // filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `expires_at`.
@@ -219,6 +228,14 @@ class ApiKey {
219
228
  throw new errors.InvalidParameterError(`Bad parameter: per_page must be of type Int, received ${getType(params.per_page)}`)
220
229
  }
221
230
 
231
+ if (params.action && !isString(params.action)) {
232
+ throw new errors.InvalidParameterError(`Bad parameter: action must be of type String, received ${getType(params.action)}`)
233
+ }
234
+
235
+ if (params.page && !isInt(params.page)) {
236
+ throw new errors.InvalidParameterError(`Bad parameter: page must be of type Int, received ${getType(params.page)}`)
237
+ }
238
+
222
239
  const response = await Api.sendRequest('/api_keys', 'GET', params, options)
223
240
 
224
241
  return response?.data?.map(obj => new ApiKey(obj, options)) || []
@@ -264,6 +281,7 @@ class ApiKey {
264
281
  // expires_at - string - API Key expiration date
265
282
  // permission_set - string - Permissions for this API Key. It must be full for site-wide API Keys. Keys with the `desktop_app` permission set only have the ability to do the functions provided in our Desktop App (File and Share Link operations). Additional permission sets may become available in the future, such as for a Site Admin to give a key with no administrator privileges. If you have ideas for permission sets, please let us know.
266
283
  // name (required) - string - Internal name for the API Key. For your use.
284
+ // path - string - Folder path restriction for this api key.
267
285
  static create = async (params = {}, options = {}) => {
268
286
  if (!params.name) {
269
287
  throw new errors.MissingParameterError('Parameter missing: name')
@@ -289,6 +307,10 @@ class ApiKey {
289
307
  throw new errors.InvalidParameterError(`Bad parameter: name must be of type String, received ${getType(params.name)}`)
290
308
  }
291
309
 
310
+ if (params.path && !isString(params.path)) {
311
+ throw new errors.InvalidParameterError(`Bad parameter: path must be of type String, received ${getType(params.path)}`)
312
+ }
313
+
292
314
  const response = await Api.sendRequest('/api_keys', 'POST', params, options)
293
315
 
294
316
  return new ApiKey(response?.data, options)