files.com 1.2.101 → 1.2.102

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 +0 -2
  3. package/docs/models/ApiKey.md +1 -3
  4. package/docs/models/ApiRequestLog.md +0 -2
  5. package/docs/models/App.md +1 -3
  6. package/docs/models/As2IncomingMessage.md +1 -3
  7. package/docs/models/As2OutgoingMessage.md +1 -3
  8. package/docs/models/As2Partner.md +0 -2
  9. package/docs/models/As2Station.md +0 -2
  10. package/docs/models/Automation.md +1 -10
  11. package/docs/models/AutomationLog.md +0 -2
  12. package/docs/models/AutomationRun.md +1 -3
  13. package/docs/models/BandwidthSnapshot.md +1 -3
  14. package/docs/models/Behavior.md +2 -8
  15. package/docs/models/Bundle.md +1 -3
  16. package/docs/models/BundleAction.md +1 -3
  17. package/docs/models/BundleDownload.md +1 -3
  18. package/docs/models/BundleNotification.md +1 -3
  19. package/docs/models/BundleRecipient.md +1 -3
  20. package/docs/models/BundleRegistration.md +0 -2
  21. package/docs/models/Clickwrap.md +0 -2
  22. package/docs/models/DnsRecord.md +0 -2
  23. package/docs/models/EmailIncomingMessage.md +1 -3
  24. package/docs/models/EmailLog.md +0 -2
  25. package/docs/models/ExavaultApiRequestLog.md +0 -2
  26. package/docs/models/ExternalEvent.md +1 -3
  27. package/docs/models/FileComment.md +0 -2
  28. package/docs/models/FileMigrationLog.md +0 -2
  29. package/docs/models/Folder.md +0 -1
  30. package/docs/models/FormFieldSet.md +0 -2
  31. package/docs/models/FtpActionLog.md +0 -2
  32. package/docs/models/GpgKey.md +1 -3
  33. package/docs/models/Group.md +1 -3
  34. package/docs/models/GroupUser.md +0 -2
  35. package/docs/models/History.md +5 -15
  36. package/docs/models/HistoryExportResult.md +0 -2
  37. package/docs/models/InboxRecipient.md +1 -3
  38. package/docs/models/InboxRegistration.md +0 -2
  39. package/docs/models/InboxUpload.md +1 -3
  40. package/docs/models/Invoice.md +0 -2
  41. package/docs/models/IpAddress.md +0 -8
  42. package/docs/models/Lock.md +0 -2
  43. package/docs/models/Message.md +0 -2
  44. package/docs/models/MessageComment.md +0 -2
  45. package/docs/models/MessageCommentReaction.md +0 -2
  46. package/docs/models/MessageReaction.md +0 -2
  47. package/docs/models/Notification.md +1 -5
  48. package/docs/models/OutboundConnectionLog.md +0 -2
  49. package/docs/models/Payment.md +0 -2
  50. package/docs/models/Permission.md +1 -3
  51. package/docs/models/Priority.md +0 -2
  52. package/docs/models/Project.md +0 -2
  53. package/docs/models/PublicHostingRequestLog.md +0 -2
  54. package/docs/models/PublicKey.md +0 -2
  55. package/docs/models/RemoteBandwidthSnapshot.md +1 -3
  56. package/docs/models/RemoteServer.md +0 -2
  57. package/docs/models/Request.md +2 -6
  58. package/docs/models/SettingsChange.md +1 -3
  59. package/docs/models/SftpActionLog.md +0 -2
  60. package/docs/models/SftpHostKey.md +0 -2
  61. package/docs/models/ShareGroup.md +0 -2
  62. package/docs/models/Snapshot.md +0 -2
  63. package/docs/models/SsoStrategy.md +0 -2
  64. package/docs/models/SyncLog.md +0 -2
  65. package/docs/models/UsageDailySnapshot.md +1 -3
  66. package/docs/models/UsageSnapshot.md +0 -2
  67. package/docs/models/User.md +1 -3
  68. package/docs/models/UserCipherUse.md +0 -2
  69. package/docs/models/UserRequest.md +0 -2
  70. package/docs/models/WebDavActionLog.md +0 -2
  71. package/lib/Files.js +1 -1
  72. package/lib/models/ActionNotificationExportResult.js +5 -19
  73. package/lib/models/ApiKey.js +4 -18
  74. package/lib/models/ApiRequestLog.js +3 -17
  75. package/lib/models/App.js +4 -18
  76. package/lib/models/As2IncomingMessage.js +6 -20
  77. package/lib/models/As2OutgoingMessage.js +6 -20
  78. package/lib/models/As2Partner.js +3 -17
  79. package/lib/models/As2Station.js +3 -17
  80. package/lib/models/Automation.js +87 -124
  81. package/lib/models/AutomationLog.js +3 -17
  82. package/lib/models/AutomationRun.js +6 -20
  83. package/lib/models/BandwidthSnapshot.js +4 -18
  84. package/lib/models/Behavior.js +10 -45
  85. package/lib/models/Bundle.js +4 -18
  86. package/lib/models/BundleAction.js +8 -22
  87. package/lib/models/BundleDownload.js +8 -22
  88. package/lib/models/BundleNotification.js +4 -18
  89. package/lib/models/BundleRecipient.js +6 -20
  90. package/lib/models/BundleRegistration.js +5 -19
  91. package/lib/models/Clickwrap.js +3 -17
  92. package/lib/models/DnsRecord.js +3 -17
  93. package/lib/models/EmailIncomingMessage.js +4 -18
  94. package/lib/models/EmailLog.js +3 -17
  95. package/lib/models/ExavaultApiRequestLog.js +3 -17
  96. package/lib/models/ExternalEvent.js +4 -18
  97. package/lib/models/FileComment.js +5 -19
  98. package/lib/models/FileMigrationLog.js +3 -17
  99. package/lib/models/Folder.js +13 -20
  100. package/lib/models/FormFieldSet.js +3 -17
  101. package/lib/models/FtpActionLog.js +3 -17
  102. package/lib/models/GpgKey.js +4 -18
  103. package/lib/models/Group.js +6 -20
  104. package/lib/models/GroupUser.js +5 -19
  105. package/lib/models/History.js +26 -96
  106. package/lib/models/HistoryExportResult.js +5 -19
  107. package/lib/models/InboxRecipient.js +6 -20
  108. package/lib/models/InboxRegistration.js +5 -19
  109. package/lib/models/InboxUpload.js +8 -22
  110. package/lib/models/Invoice.js +3 -17
  111. package/lib/models/IpAddress.js +12 -68
  112. package/lib/models/Lock.js +5 -19
  113. package/lib/models/Message.js +5 -19
  114. package/lib/models/MessageComment.js +5 -19
  115. package/lib/models/MessageCommentReaction.js +5 -19
  116. package/lib/models/MessageReaction.js +5 -19
  117. package/lib/models/Notification.js +12 -33
  118. package/lib/models/OutboundConnectionLog.js +3 -17
  119. package/lib/models/Payment.js +3 -17
  120. package/lib/models/Permission.js +10 -24
  121. package/lib/models/Priority.js +5 -19
  122. package/lib/models/Project.js +3 -17
  123. package/lib/models/PublicHostingRequestLog.js +3 -17
  124. package/lib/models/PublicKey.js +3 -17
  125. package/lib/models/RemoteBandwidthSnapshot.js +4 -18
  126. package/lib/models/RemoteServer.js +3 -17
  127. package/lib/models/Request.js +12 -40
  128. package/lib/models/SettingsChange.js +4 -18
  129. package/lib/models/SftpActionLog.js +3 -17
  130. package/lib/models/SftpHostKey.js +3 -17
  131. package/lib/models/ShareGroup.js +3 -17
  132. package/lib/models/Snapshot.js +3 -17
  133. package/lib/models/SsoStrategy.js +3 -17
  134. package/lib/models/SyncLog.js +3 -17
  135. package/lib/models/UsageDailySnapshot.js +4 -18
  136. package/lib/models/UsageSnapshot.js +3 -17
  137. package/lib/models/User.js +8 -22
  138. package/lib/models/UserCipherUse.js +3 -17
  139. package/lib/models/UserRequest.js +3 -17
  140. package/lib/models/WebDavActionLog.js +3 -17
  141. package/package.json +1 -1
  142. package/src/Files.js +1 -1
  143. package/src/models/ActionNotificationExportResult.js +0 -10
  144. package/src/models/ApiKey.js +1 -11
  145. package/src/models/ApiRequestLog.js +0 -10
  146. package/src/models/App.js +1 -11
  147. package/src/models/As2IncomingMessage.js +1 -11
  148. package/src/models/As2OutgoingMessage.js +1 -11
  149. package/src/models/As2Partner.js +0 -10
  150. package/src/models/As2Station.js +0 -10
  151. package/src/models/Automation.js +1 -30
  152. package/src/models/AutomationLog.js +0 -10
  153. package/src/models/AutomationRun.js +1 -11
  154. package/src/models/BandwidthSnapshot.js +1 -11
  155. package/src/models/Behavior.js +2 -27
  156. package/src/models/Bundle.js +1 -11
  157. package/src/models/BundleAction.js +1 -11
  158. package/src/models/BundleDownload.js +1 -11
  159. package/src/models/BundleNotification.js +1 -11
  160. package/src/models/BundleRecipient.js +1 -11
  161. package/src/models/BundleRegistration.js +0 -10
  162. package/src/models/Clickwrap.js +0 -10
  163. package/src/models/DnsRecord.js +0 -10
  164. package/src/models/EmailIncomingMessage.js +1 -11
  165. package/src/models/EmailLog.js +0 -10
  166. package/src/models/ExavaultApiRequestLog.js +0 -10
  167. package/src/models/ExternalEvent.js +1 -11
  168. package/src/models/FileComment.js +0 -10
  169. package/src/models/FileMigrationLog.js +0 -10
  170. package/src/models/Folder.js +0 -5
  171. package/src/models/FormFieldSet.js +0 -10
  172. package/src/models/FtpActionLog.js +0 -10
  173. package/src/models/GpgKey.js +1 -11
  174. package/src/models/Group.js +1 -11
  175. package/src/models/GroupUser.js +0 -10
  176. package/src/models/History.js +5 -55
  177. package/src/models/HistoryExportResult.js +0 -10
  178. package/src/models/InboxRecipient.js +1 -11
  179. package/src/models/InboxRegistration.js +0 -10
  180. package/src/models/InboxUpload.js +1 -11
  181. package/src/models/Invoice.js +0 -10
  182. package/src/models/IpAddress.js +0 -40
  183. package/src/models/Lock.js +0 -10
  184. package/src/models/Message.js +0 -10
  185. package/src/models/MessageComment.js +0 -10
  186. package/src/models/MessageCommentReaction.js +0 -10
  187. package/src/models/MessageReaction.js +0 -10
  188. package/src/models/Notification.js +1 -16
  189. package/src/models/OutboundConnectionLog.js +0 -10
  190. package/src/models/Payment.js +0 -10
  191. package/src/models/Permission.js +1 -11
  192. package/src/models/Priority.js +0 -10
  193. package/src/models/Project.js +0 -10
  194. package/src/models/PublicHostingRequestLog.js +0 -10
  195. package/src/models/PublicKey.js +0 -10
  196. package/src/models/RemoteBandwidthSnapshot.js +1 -11
  197. package/src/models/RemoteServer.js +0 -10
  198. package/src/models/Request.js +2 -22
  199. package/src/models/SettingsChange.js +1 -11
  200. package/src/models/SftpActionLog.js +0 -10
  201. package/src/models/SftpHostKey.js +0 -10
  202. package/src/models/ShareGroup.js +0 -10
  203. package/src/models/Snapshot.js +0 -10
  204. package/src/models/SsoStrategy.js +0 -10
  205. package/src/models/SyncLog.js +0 -10
  206. package/src/models/UsageDailySnapshot.js +1 -11
  207. package/src/models/UsageSnapshot.js +0 -10
  208. package/src/models/User.js +1 -11
  209. package/src/models/UserCipherUse.js +0 -10
  210. package/src/models/UserRequest.js +0 -10
  211. package/src/models/WebDavActionLog.js +0 -10
package/src/models/App.js CHANGED
@@ -91,9 +91,7 @@ class App {
91
91
  // Parameters:
92
92
  // 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.
93
93
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
94
- // action - string
95
- // page - int64
96
- // 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` and `app_type`.
94
+ // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `name` and `app_type`.
97
95
  // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `name` and `app_type`. Valid field combinations are `[ name, app_type ]` and `[ app_type, name ]`.
98
96
  // filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `name`.
99
97
  static list = async (params = {}, options = {}) => {
@@ -105,14 +103,6 @@ class App {
105
103
  throw new errors.InvalidParameterError(`Bad parameter: per_page must be of type Int, received ${getType(params.per_page)}`)
106
104
  }
107
105
 
108
- if (params.action && !isString(params.action)) {
109
- throw new errors.InvalidParameterError(`Bad parameter: action must be of type String, received ${getType(params.action)}`)
110
- }
111
-
112
- if (params.page && !isInt(params.page)) {
113
- throw new errors.InvalidParameterError(`Bad parameter: page must be of type Int, received ${getType(params.page)}`)
114
- }
115
-
116
106
  const response = await Api.sendRequest('/apps', 'GET', params, options)
117
107
 
118
108
  return response?.data?.map(obj => new App(obj, options)) || []
@@ -136,9 +136,7 @@ class As2IncomingMessage {
136
136
  // Parameters:
137
137
  // 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.
138
138
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
139
- // action - string
140
- // page - int64
141
- // 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` and `as2_partner_id`.
139
+ // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `created_at` and `as2_partner_id`.
142
140
  // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
143
141
  // filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
144
142
  // filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
@@ -154,14 +152,6 @@ class As2IncomingMessage {
154
152
  throw new errors.InvalidParameterError(`Bad parameter: per_page must be of type Int, received ${getType(params.per_page)}`)
155
153
  }
156
154
 
157
- if (params.action && !isString(params.action)) {
158
- throw new errors.InvalidParameterError(`Bad parameter: action must be of type String, received ${getType(params.action)}`)
159
- }
160
-
161
- if (params.page && !isInt(params.page)) {
162
- throw new errors.InvalidParameterError(`Bad parameter: page must be of type Int, received ${getType(params.page)}`)
163
- }
164
-
165
155
  if (params.as2_partner_id && !isInt(params.as2_partner_id)) {
166
156
  throw new errors.InvalidParameterError(`Bad parameter: as2_partner_id must be of type Int, received ${getType(params.as2_partner_id)}`)
167
157
  }
@@ -124,9 +124,7 @@ class As2OutgoingMessage {
124
124
  // Parameters:
125
125
  // cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
126
126
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
127
- // action - string
128
- // page - int64
129
- // 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` and `as2_partner_id`.
127
+ // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `created_at` and `as2_partner_id`.
130
128
  // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
131
129
  // filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
132
130
  // filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
@@ -142,14 +140,6 @@ class As2OutgoingMessage {
142
140
  throw new errors.InvalidParameterError(`Bad parameter: per_page must be of type Int, received ${getType(params.per_page)}`)
143
141
  }
144
142
 
145
- if (params.action && !isString(params.action)) {
146
- throw new errors.InvalidParameterError(`Bad parameter: action must be of type String, received ${getType(params.action)}`)
147
- }
148
-
149
- if (params.page && !isInt(params.page)) {
150
- throw new errors.InvalidParameterError(`Bad parameter: page must be of type Int, received ${getType(params.page)}`)
151
- }
152
-
153
143
  if (params.as2_partner_id && !isInt(params.as2_partner_id)) {
154
144
  throw new errors.InvalidParameterError(`Bad parameter: as2_partner_id must be of type Int, received ${getType(params.as2_partner_id)}`)
155
145
  }
@@ -254,8 +254,6 @@ class As2Partner {
254
254
  // Parameters:
255
255
  // 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.
256
256
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
257
- // action - string
258
- // page - int64
259
257
  static list = async (params = {}, options = {}) => {
260
258
  if (params.cursor && !isString(params.cursor)) {
261
259
  throw new errors.InvalidParameterError(`Bad parameter: cursor must be of type String, received ${getType(params.cursor)}`)
@@ -265,14 +263,6 @@ class As2Partner {
265
263
  throw new errors.InvalidParameterError(`Bad parameter: per_page must be of type Int, received ${getType(params.per_page)}`)
266
264
  }
267
265
 
268
- if (params.action && !isString(params.action)) {
269
- throw new errors.InvalidParameterError(`Bad parameter: action must be of type String, received ${getType(params.action)}`)
270
- }
271
-
272
- if (params.page && !isInt(params.page)) {
273
- throw new errors.InvalidParameterError(`Bad parameter: page must be of type Int, received ${getType(params.page)}`)
274
- }
275
-
276
266
  const response = await Api.sendRequest('/as2_partners', 'GET', params, options)
277
267
 
278
268
  return response?.data?.map(obj => new As2Partner(obj, options)) || []
@@ -231,8 +231,6 @@ class As2Station {
231
231
  // Parameters:
232
232
  // 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.
233
233
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
234
- // action - string
235
- // page - int64
236
234
  static list = async (params = {}, options = {}) => {
237
235
  if (params.cursor && !isString(params.cursor)) {
238
236
  throw new errors.InvalidParameterError(`Bad parameter: cursor must be of type String, received ${getType(params.cursor)}`)
@@ -242,14 +240,6 @@ class As2Station {
242
240
  throw new errors.InvalidParameterError(`Bad parameter: per_page must be of type Int, received ${getType(params.per_page)}`)
243
241
  }
244
242
 
245
- if (params.action && !isString(params.action)) {
246
- throw new errors.InvalidParameterError(`Bad parameter: action must be of type String, received ${getType(params.action)}`)
247
- }
248
-
249
- if (params.page && !isInt(params.page)) {
250
- throw new errors.InvalidParameterError(`Bad parameter: page must be of type Int, received ${getType(params.page)}`)
251
- }
252
-
253
243
  const response = await Api.sendRequest('/as2_stations', 'GET', params, options)
254
244
 
255
245
  return response?.data?.map(obj => new As2Station(obj, options)) || []
@@ -259,13 +259,6 @@ class Automation {
259
259
  this.attributes.webhook_url = value
260
260
  }
261
261
 
262
- // string
263
- getDestination = () => this.attributes.destination
264
-
265
- setDestination = value => {
266
- this.attributes.destination = value
267
- }
268
-
269
262
  // Manually run automation
270
263
  manualRun = async (params = {}) => {
271
264
  if (!this.attributes.id) {
@@ -294,7 +287,6 @@ class Automation {
294
287
 
295
288
  // Parameters:
296
289
  // source - string - Source Path
297
- // destination - string
298
290
  // destinations - array(string) - A list of String destination paths or Hash of folder_path and optional file_path.
299
291
  // destination_replace_from - string - If set, this string in the destination path will be replaced with the value in `destination_replace_to`.
300
292
  // destination_replace_to - string - If set, this string will replace the value `destination_replace_from` in the destination filename. You can use special patterns here.
@@ -303,7 +295,6 @@ class Automation {
303
295
  // sync_ids - string - A list of sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
304
296
  // user_ids - string - A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
305
297
  // group_ids - string - A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
306
- // schedule - object
307
298
  // schedule_days_of_week - array(int64) - If trigger is `custom_schedule`. A list of days of the week to run this automation. 0 is Sunday, 1 is Monday, etc.
308
299
  // schedule_times_of_day - array(string) - If trigger is `custom_schedule`. A list of times of day to run this automation. 24-hour time format.
309
300
  // schedule_time_zone - string - If trigger is `custom_schedule`. Time zone for the schedule.
@@ -339,10 +330,6 @@ class Automation {
339
330
  throw new errors.InvalidParameterError(`Bad parameter: source must be of type String, received ${getType(params.source)}`)
340
331
  }
341
332
 
342
- if (params.destination && !isString(params.destination)) {
343
- throw new errors.InvalidParameterError(`Bad parameter: destination must be of type String, received ${getType(params.destination)}`)
344
- }
345
-
346
333
  if (params.destinations && !isArray(params.destinations)) {
347
334
  throw new errors.InvalidParameterError(`Bad parameter: destinations must be of type Array, received ${getType(params.destinations)}`)
348
335
  }
@@ -471,9 +458,7 @@ class Automation {
471
458
  // Parameters:
472
459
  // 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.
473
460
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
474
- // action - string
475
- // page - int64
476
- // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[automation]=desc`). Valid fields are `automation`, `disabled`, `last_modified_at` or `name`.
461
+ // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `automation`, `disabled`, `last_modified_at` or `name`.
477
462
  // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `disabled`, `last_modified_at` or `automation`. Valid field combinations are `[ automation, disabled ]` and `[ disabled, automation ]`.
478
463
  // filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `last_modified_at`.
479
464
  // filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `last_modified_at`.
@@ -489,14 +474,6 @@ class Automation {
489
474
  throw new errors.InvalidParameterError(`Bad parameter: per_page must be of type Int, received ${getType(params.per_page)}`)
490
475
  }
491
476
 
492
- if (params.action && !isString(params.action)) {
493
- throw new errors.InvalidParameterError(`Bad parameter: action must be of type String, received ${getType(params.action)}`)
494
- }
495
-
496
- if (params.page && !isInt(params.page)) {
497
- throw new errors.InvalidParameterError(`Bad parameter: page must be of type Int, received ${getType(params.page)}`)
498
- }
499
-
500
477
  const response = await Api.sendRequest('/automations', 'GET', params, options)
501
478
 
502
479
  return response?.data?.map(obj => new Automation(obj, options)) || []
@@ -532,7 +509,6 @@ class Automation {
532
509
 
533
510
  // Parameters:
534
511
  // source - string - Source Path
535
- // destination - string
536
512
  // destinations - array(string) - A list of String destination paths or Hash of folder_path and optional file_path.
537
513
  // destination_replace_from - string - If set, this string in the destination path will be replaced with the value in `destination_replace_to`.
538
514
  // destination_replace_to - string - If set, this string will replace the value `destination_replace_from` in the destination filename. You can use special patterns here.
@@ -541,7 +517,6 @@ class Automation {
541
517
  // sync_ids - string - A list of sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
542
518
  // user_ids - string - A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
543
519
  // group_ids - string - A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
544
- // schedule - object
545
520
  // schedule_days_of_week - array(int64) - If trigger is `custom_schedule`. A list of days of the week to run this automation. 0 is Sunday, 1 is Monday, etc.
546
521
  // schedule_times_of_day - array(string) - If trigger is `custom_schedule`. A list of times of day to run this automation. 24-hour time format.
547
522
  // schedule_time_zone - string - If trigger is `custom_schedule`. Time zone for the schedule.
@@ -568,10 +543,6 @@ class Automation {
568
543
  throw new errors.InvalidParameterError(`Bad parameter: source must be of type String, received ${getType(params.source)}`)
569
544
  }
570
545
 
571
- if (params.destination && !isString(params.destination)) {
572
- throw new errors.InvalidParameterError(`Bad parameter: destination must be of type String, received ${getType(params.destination)}`)
573
- }
574
-
575
546
  if (params.destinations && !isArray(params.destinations)) {
576
547
  throw new errors.InvalidParameterError(`Bad parameter: destinations must be of type Array, received ${getType(params.destinations)}`)
577
548
  }
@@ -58,8 +58,6 @@ class AutomationLog {
58
58
  // Parameters:
59
59
  // 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.
60
60
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
61
- // action - string
62
- // page - int64
63
61
  // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `start_date`, `end_date`, `automation_id`, `automation_run_id`, `operation`, `path` or `status`. Valid field combinations are `[ start_date ]`, `[ end_date ]`, `[ automation_id ]`, `[ automation_run_id ]`, `[ operation ]`, `[ path ]`, `[ status ]`, `[ start_date, end_date ]`, `[ start_date, automation_id ]`, `[ start_date, automation_run_id ]`, `[ start_date, operation ]`, `[ start_date, path ]`, `[ start_date, status ]`, `[ end_date, automation_id ]`, `[ end_date, automation_run_id ]`, `[ end_date, operation ]`, `[ end_date, path ]`, `[ end_date, status ]`, `[ automation_id, automation_run_id ]`, `[ automation_id, operation ]`, `[ automation_id, path ]`, `[ automation_id, status ]`, `[ automation_run_id, operation ]`, `[ automation_run_id, path ]`, `[ automation_run_id, status ]`, `[ operation, path ]`, `[ operation, status ]`, `[ path, status ]`, `[ start_date, end_date, automation_id ]`, `[ start_date, end_date, automation_run_id ]`, `[ start_date, end_date, operation ]`, `[ start_date, end_date, path ]`, `[ start_date, end_date, status ]`, `[ start_date, automation_id, automation_run_id ]`, `[ start_date, automation_id, operation ]`, `[ start_date, automation_id, path ]`, `[ start_date, automation_id, status ]`, `[ start_date, automation_run_id, operation ]`, `[ start_date, automation_run_id, path ]`, `[ start_date, automation_run_id, status ]`, `[ start_date, operation, path ]`, `[ start_date, operation, status ]`, `[ start_date, path, status ]`, `[ end_date, automation_id, automation_run_id ]`, `[ end_date, automation_id, operation ]`, `[ end_date, automation_id, path ]`, `[ end_date, automation_id, status ]`, `[ end_date, automation_run_id, operation ]`, `[ end_date, automation_run_id, path ]`, `[ end_date, automation_run_id, status ]`, `[ end_date, operation, path ]`, `[ end_date, operation, status ]`, `[ end_date, path, status ]`, `[ automation_id, automation_run_id, operation ]`, `[ automation_id, automation_run_id, path ]`, `[ automation_id, automation_run_id, status ]`, `[ automation_id, operation, path ]`, `[ automation_id, operation, status ]`, `[ automation_id, path, status ]`, `[ automation_run_id, operation, path ]`, `[ automation_run_id, operation, status ]`, `[ automation_run_id, path, status ]`, `[ operation, path, status ]`, `[ start_date, end_date, automation_id, automation_run_id ]`, `[ start_date, end_date, automation_id, operation ]`, `[ start_date, end_date, automation_id, path ]`, `[ start_date, end_date, automation_id, status ]`, `[ start_date, end_date, automation_run_id, operation ]`, `[ start_date, end_date, automation_run_id, path ]`, `[ start_date, end_date, automation_run_id, status ]`, `[ start_date, end_date, operation, path ]`, `[ start_date, end_date, operation, status ]`, `[ start_date, end_date, path, status ]`, `[ start_date, automation_id, automation_run_id, operation ]`, `[ start_date, automation_id, automation_run_id, path ]`, `[ start_date, automation_id, automation_run_id, status ]`, `[ start_date, automation_id, operation, path ]`, `[ start_date, automation_id, operation, status ]`, `[ start_date, automation_id, path, status ]`, `[ start_date, automation_run_id, operation, path ]`, `[ start_date, automation_run_id, operation, status ]`, `[ start_date, automation_run_id, path, status ]`, `[ start_date, operation, path, status ]`, `[ end_date, automation_id, automation_run_id, operation ]`, `[ end_date, automation_id, automation_run_id, path ]`, `[ end_date, automation_id, automation_run_id, status ]`, `[ end_date, automation_id, operation, path ]`, `[ end_date, automation_id, operation, status ]`, `[ end_date, automation_id, path, status ]`, `[ end_date, automation_run_id, operation, path ]`, `[ end_date, automation_run_id, operation, status ]`, `[ end_date, automation_run_id, path, status ]`, `[ end_date, operation, path, status ]`, `[ automation_id, automation_run_id, operation, path ]`, `[ automation_id, automation_run_id, operation, status ]`, `[ automation_id, automation_run_id, path, status ]`, `[ automation_id, operation, path, status ]`, `[ automation_run_id, operation, path, status ]`, `[ start_date, end_date, automation_id, automation_run_id, operation ]`, `[ start_date, end_date, automation_id, automation_run_id, path ]`, `[ start_date, end_date, automation_id, automation_run_id, status ]`, `[ start_date, end_date, automation_id, operation, path ]`, `[ start_date, end_date, automation_id, operation, status ]`, `[ start_date, end_date, automation_id, path, status ]`, `[ start_date, end_date, automation_run_id, operation, path ]`, `[ start_date, end_date, automation_run_id, operation, status ]`, `[ start_date, end_date, automation_run_id, path, status ]`, `[ start_date, end_date, operation, path, status ]`, `[ start_date, automation_id, automation_run_id, operation, path ]`, `[ start_date, automation_id, automation_run_id, operation, status ]`, `[ start_date, automation_id, automation_run_id, path, status ]`, `[ start_date, automation_id, operation, path, status ]`, `[ start_date, automation_run_id, operation, path, status ]`, `[ end_date, automation_id, automation_run_id, operation, path ]`, `[ end_date, automation_id, automation_run_id, operation, status ]`, `[ end_date, automation_id, automation_run_id, path, status ]`, `[ end_date, automation_id, operation, path, status ]`, `[ end_date, automation_run_id, operation, path, status ]`, `[ automation_id, automation_run_id, operation, path, status ]`, `[ start_date, end_date, automation_id, automation_run_id, operation, path ]`, `[ start_date, end_date, automation_id, automation_run_id, operation, status ]`, `[ start_date, end_date, automation_id, automation_run_id, path, status ]`, `[ start_date, end_date, automation_id, operation, path, status ]`, `[ start_date, end_date, automation_run_id, operation, path, status ]`, `[ start_date, automation_id, automation_run_id, operation, path, status ]` or `[ end_date, automation_id, automation_run_id, operation, path, status ]`.
64
62
  // filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `operation`, `path` or `status`. Valid field combinations are `[ start_date ]`, `[ end_date ]`, `[ automation_id ]`, `[ automation_run_id ]`, `[ operation ]`, `[ path ]`, `[ status ]`, `[ start_date, end_date ]`, `[ start_date, automation_id ]`, `[ start_date, automation_run_id ]`, `[ start_date, operation ]`, `[ start_date, path ]`, `[ start_date, status ]`, `[ end_date, automation_id ]`, `[ end_date, automation_run_id ]`, `[ end_date, operation ]`, `[ end_date, path ]`, `[ end_date, status ]`, `[ automation_id, automation_run_id ]`, `[ automation_id, operation ]`, `[ automation_id, path ]`, `[ automation_id, status ]`, `[ automation_run_id, operation ]`, `[ automation_run_id, path ]`, `[ automation_run_id, status ]`, `[ operation, path ]`, `[ operation, status ]`, `[ path, status ]`, `[ start_date, end_date, automation_id ]`, `[ start_date, end_date, automation_run_id ]`, `[ start_date, end_date, operation ]`, `[ start_date, end_date, path ]`, `[ start_date, end_date, status ]`, `[ start_date, automation_id, automation_run_id ]`, `[ start_date, automation_id, operation ]`, `[ start_date, automation_id, path ]`, `[ start_date, automation_id, status ]`, `[ start_date, automation_run_id, operation ]`, `[ start_date, automation_run_id, path ]`, `[ start_date, automation_run_id, status ]`, `[ start_date, operation, path ]`, `[ start_date, operation, status ]`, `[ start_date, path, status ]`, `[ end_date, automation_id, automation_run_id ]`, `[ end_date, automation_id, operation ]`, `[ end_date, automation_id, path ]`, `[ end_date, automation_id, status ]`, `[ end_date, automation_run_id, operation ]`, `[ end_date, automation_run_id, path ]`, `[ end_date, automation_run_id, status ]`, `[ end_date, operation, path ]`, `[ end_date, operation, status ]`, `[ end_date, path, status ]`, `[ automation_id, automation_run_id, operation ]`, `[ automation_id, automation_run_id, path ]`, `[ automation_id, automation_run_id, status ]`, `[ automation_id, operation, path ]`, `[ automation_id, operation, status ]`, `[ automation_id, path, status ]`, `[ automation_run_id, operation, path ]`, `[ automation_run_id, operation, status ]`, `[ automation_run_id, path, status ]`, `[ operation, path, status ]`, `[ start_date, end_date, automation_id, automation_run_id ]`, `[ start_date, end_date, automation_id, operation ]`, `[ start_date, end_date, automation_id, path ]`, `[ start_date, end_date, automation_id, status ]`, `[ start_date, end_date, automation_run_id, operation ]`, `[ start_date, end_date, automation_run_id, path ]`, `[ start_date, end_date, automation_run_id, status ]`, `[ start_date, end_date, operation, path ]`, `[ start_date, end_date, operation, status ]`, `[ start_date, end_date, path, status ]`, `[ start_date, automation_id, automation_run_id, operation ]`, `[ start_date, automation_id, automation_run_id, path ]`, `[ start_date, automation_id, automation_run_id, status ]`, `[ start_date, automation_id, operation, path ]`, `[ start_date, automation_id, operation, status ]`, `[ start_date, automation_id, path, status ]`, `[ start_date, automation_run_id, operation, path ]`, `[ start_date, automation_run_id, operation, status ]`, `[ start_date, automation_run_id, path, status ]`, `[ start_date, operation, path, status ]`, `[ end_date, automation_id, automation_run_id, operation ]`, `[ end_date, automation_id, automation_run_id, path ]`, `[ end_date, automation_id, automation_run_id, status ]`, `[ end_date, automation_id, operation, path ]`, `[ end_date, automation_id, operation, status ]`, `[ end_date, automation_id, path, status ]`, `[ end_date, automation_run_id, operation, path ]`, `[ end_date, automation_run_id, operation, status ]`, `[ end_date, automation_run_id, path, status ]`, `[ end_date, operation, path, status ]`, `[ automation_id, automation_run_id, operation, path ]`, `[ automation_id, automation_run_id, operation, status ]`, `[ automation_id, automation_run_id, path, status ]`, `[ automation_id, operation, path, status ]`, `[ automation_run_id, operation, path, status ]`, `[ start_date, end_date, automation_id, automation_run_id, operation ]`, `[ start_date, end_date, automation_id, automation_run_id, path ]`, `[ start_date, end_date, automation_id, automation_run_id, status ]`, `[ start_date, end_date, automation_id, operation, path ]`, `[ start_date, end_date, automation_id, operation, status ]`, `[ start_date, end_date, automation_id, path, status ]`, `[ start_date, end_date, automation_run_id, operation, path ]`, `[ start_date, end_date, automation_run_id, operation, status ]`, `[ start_date, end_date, automation_run_id, path, status ]`, `[ start_date, end_date, operation, path, status ]`, `[ start_date, automation_id, automation_run_id, operation, path ]`, `[ start_date, automation_id, automation_run_id, operation, status ]`, `[ start_date, automation_id, automation_run_id, path, status ]`, `[ start_date, automation_id, operation, path, status ]`, `[ start_date, automation_run_id, operation, path, status ]`, `[ end_date, automation_id, automation_run_id, operation, path ]`, `[ end_date, automation_id, automation_run_id, operation, status ]`, `[ end_date, automation_id, automation_run_id, path, status ]`, `[ end_date, automation_id, operation, path, status ]`, `[ end_date, automation_run_id, operation, path, status ]`, `[ automation_id, automation_run_id, operation, path, status ]`, `[ start_date, end_date, automation_id, automation_run_id, operation, path ]`, `[ start_date, end_date, automation_id, automation_run_id, operation, status ]`, `[ start_date, end_date, automation_id, automation_run_id, path, status ]`, `[ start_date, end_date, automation_id, operation, path, status ]`, `[ start_date, end_date, automation_run_id, operation, path, status ]`, `[ start_date, automation_id, automation_run_id, operation, path, status ]` or `[ end_date, automation_id, automation_run_id, operation, path, status ]`.
65
63
  static list = async (params = {}, options = {}) => {
@@ -71,14 +69,6 @@ class AutomationLog {
71
69
  throw new errors.InvalidParameterError(`Bad parameter: per_page must be of type Int, received ${getType(params.per_page)}`)
72
70
  }
73
71
 
74
- if (params.action && !isString(params.action)) {
75
- throw new errors.InvalidParameterError(`Bad parameter: action must be of type String, received ${getType(params.action)}`)
76
- }
77
-
78
- if (params.page && !isInt(params.page)) {
79
- throw new errors.InvalidParameterError(`Bad parameter: page must be of type Int, received ${getType(params.page)}`)
80
- }
81
-
82
72
  const response = await Api.sendRequest('/automation_logs', 'GET', params, options)
83
73
 
84
74
  return response?.data?.map(obj => new AutomationLog(obj, options)) || []
@@ -58,9 +58,7 @@ class AutomationRun {
58
58
  // Parameters:
59
59
  // 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.
60
60
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
61
- // action - string
62
- // page - int64
63
- // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[automation_id]=desc`). Valid fields are `automation_id`, `created_at` or `status`.
61
+ // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `automation_id`, `created_at` or `status`.
64
62
  // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `status` and `automation_id`. Valid field combinations are `[ automation_id, status ]`.
65
63
  // automation_id (required) - int64 - ID of the associated Automation.
66
64
  static list = async (params = {}, options = {}) => {
@@ -76,14 +74,6 @@ class AutomationRun {
76
74
  throw new errors.InvalidParameterError(`Bad parameter: per_page must be of type Int, received ${getType(params.per_page)}`)
77
75
  }
78
76
 
79
- if (params.action && !isString(params.action)) {
80
- throw new errors.InvalidParameterError(`Bad parameter: action must be of type String, received ${getType(params.action)}`)
81
- }
82
-
83
- if (params.page && !isInt(params.page)) {
84
- throw new errors.InvalidParameterError(`Bad parameter: page must be of type Int, received ${getType(params.page)}`)
85
- }
86
-
87
77
  if (params.automation_id && !isInt(params.automation_id)) {
88
78
  throw new errors.InvalidParameterError(`Bad parameter: automation_id must be of type Int, received ${getType(params.automation_id)}`)
89
79
  }
@@ -58,9 +58,7 @@ class BandwidthSnapshot {
58
58
  // Parameters:
59
59
  // 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.
60
60
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
61
- // action - string
62
- // page - int64
63
- // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[logged_at]=desc`). Valid fields are `logged_at`.
61
+ // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `logged_at`.
64
62
  // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `logged_at`.
65
63
  // filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `logged_at`.
66
64
  // filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `logged_at`.
@@ -75,14 +73,6 @@ class BandwidthSnapshot {
75
73
  throw new errors.InvalidParameterError(`Bad parameter: per_page must be of type Int, received ${getType(params.per_page)}`)
76
74
  }
77
75
 
78
- if (params.action && !isString(params.action)) {
79
- throw new errors.InvalidParameterError(`Bad parameter: action must be of type String, received ${getType(params.action)}`)
80
- }
81
-
82
- if (params.page && !isInt(params.page)) {
83
- throw new errors.InvalidParameterError(`Bad parameter: page must be of type Int, received ${getType(params.page)}`)
84
- }
85
-
86
76
  const response = await Api.sendRequest('/bandwidth_snapshots', 'GET', params, options)
87
77
 
88
78
  return response?.data?.map(obj => new BandwidthSnapshot(obj, options)) || []
@@ -195,9 +195,7 @@ class Behavior {
195
195
  // Parameters:
196
196
  // 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.
197
197
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
198
- // action - string
199
- // page - int64
200
- // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[behavior]=desc`). Valid fields are `behavior` and `impacts_ui`.
198
+ // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `behavior` and `impacts_ui`.
201
199
  // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `impacts_ui` and `behavior`.
202
200
  // filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `behavior`.
203
201
  static list = async (params = {}, options = {}) => {
@@ -209,14 +207,6 @@ class Behavior {
209
207
  throw new errors.InvalidParameterError(`Bad parameter: per_page must be of type Int, received ${getType(params.per_page)}`)
210
208
  }
211
209
 
212
- if (params.action && !isString(params.action)) {
213
- throw new errors.InvalidParameterError(`Bad parameter: action must be of type String, received ${getType(params.action)}`)
214
- }
215
-
216
- if (params.page && !isInt(params.page)) {
217
- throw new errors.InvalidParameterError(`Bad parameter: page must be of type Int, received ${getType(params.page)}`)
218
- }
219
-
220
210
  const response = await Api.sendRequest('/behaviors', 'GET', params, options)
221
211
 
222
212
  return response?.data?.map(obj => new Behavior(obj, options)) || []
@@ -253,14 +243,11 @@ class Behavior {
253
243
  // Parameters:
254
244
  // 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.
255
245
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
256
- // action - string
257
- // page - int64
258
- // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[behavior]=desc`). Valid fields are `behavior` and `impacts_ui`.
246
+ // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `behavior` and `impacts_ui`.
259
247
  // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `impacts_ui` and `behavior`.
260
248
  // filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `behavior`.
261
249
  // path (required) - string - Path to operate on.
262
250
  // ancestor_behaviors - boolean - If `true`, behaviors above this path are shown.
263
- // behavior - string
264
251
  static listFor = async (path, params = {}, options = {}) => {
265
252
  if (!isObject(params)) {
266
253
  throw new errors.InvalidParameterError(`Bad parameter: params must be of type object, received ${getType(params)}`)
@@ -280,22 +267,10 @@ class Behavior {
280
267
  throw new errors.InvalidParameterError(`Bad parameter: per_page must be of type Int, received ${getType(params.per_page)}`)
281
268
  }
282
269
 
283
- if (params.action && !isString(params.action)) {
284
- throw new errors.InvalidParameterError(`Bad parameter: action must be of type String, received ${getType(params.action)}`)
285
- }
286
-
287
- if (params.page && !isInt(params.page)) {
288
- throw new errors.InvalidParameterError(`Bad parameter: page must be of type Int, received ${getType(params.page)}`)
289
- }
290
-
291
270
  if (params.path && !isString(params.path)) {
292
271
  throw new errors.InvalidParameterError(`Bad parameter: path must be of type String, received ${getType(params.path)}`)
293
272
  }
294
273
 
295
- if (params.behavior && !isString(params.behavior)) {
296
- throw new errors.InvalidParameterError(`Bad parameter: behavior must be of type String, received ${getType(params.behavior)}`)
297
- }
298
-
299
274
  const response = await Api.sendRequest(`/behaviors/folders/${encodeURIComponent(params.path)}`, 'GET', params, options)
300
275
 
301
276
  return response?.data?.map(obj => new Behavior(obj, options)) || []
@@ -535,9 +535,7 @@ class Bundle {
535
535
  // user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
536
536
  // 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.
537
537
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
538
- // action - string
539
- // page - int64
540
- // 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` and `code`.
538
+ // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `created_at` and `code`.
541
539
  // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
542
540
  // filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
543
541
  // filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
@@ -556,14 +554,6 @@ class Bundle {
556
554
  throw new errors.InvalidParameterError(`Bad parameter: per_page must be of type Int, received ${getType(params.per_page)}`)
557
555
  }
558
556
 
559
- if (params.action && !isString(params.action)) {
560
- throw new errors.InvalidParameterError(`Bad parameter: action must be of type String, received ${getType(params.action)}`)
561
- }
562
-
563
- if (params.page && !isInt(params.page)) {
564
- throw new errors.InvalidParameterError(`Bad parameter: page must be of type Int, received ${getType(params.page)}`)
565
- }
566
-
567
557
  const response = await Api.sendRequest('/bundles', 'GET', params, options)
568
558
 
569
559
  return response?.data?.map(obj => new Bundle(obj, options)) || []
@@ -49,9 +49,7 @@ class BundleAction {
49
49
  // Parameters:
50
50
  // 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.
51
51
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
52
- // action - string
53
- // page - int64
54
- // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[bundle_registration_id]=desc`). Valid fields are `bundle_registration_id` and `created_at`.
52
+ // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `bundle_registration_id` and `created_at`.
55
53
  // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
56
54
  // filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
57
55
  // filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
@@ -68,14 +66,6 @@ class BundleAction {
68
66
  throw new errors.InvalidParameterError(`Bad parameter: per_page must be of type Int, received ${getType(params.per_page)}`)
69
67
  }
70
68
 
71
- if (params.action && !isString(params.action)) {
72
- throw new errors.InvalidParameterError(`Bad parameter: action must be of type String, received ${getType(params.action)}`)
73
- }
74
-
75
- if (params.page && !isInt(params.page)) {
76
- throw new errors.InvalidParameterError(`Bad parameter: page must be of type Int, received ${getType(params.page)}`)
77
- }
78
-
79
69
  if (params.bundle_id && !isInt(params.bundle_id)) {
80
70
  throw new errors.InvalidParameterError(`Bad parameter: bundle_id must be of type Int, received ${getType(params.bundle_id)}`)
81
71
  }
@@ -43,9 +43,7 @@ class BundleDownload {
43
43
  // Parameters:
44
44
  // 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.
45
45
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
46
- // action - string
47
- // page - int64
48
- // 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`.
46
+ // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `created_at`.
49
47
  // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
50
48
  // filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
51
49
  // filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
@@ -62,14 +60,6 @@ class BundleDownload {
62
60
  throw new errors.InvalidParameterError(`Bad parameter: per_page must be of type Int, received ${getType(params.per_page)}`)
63
61
  }
64
62
 
65
- if (params.action && !isString(params.action)) {
66
- throw new errors.InvalidParameterError(`Bad parameter: action must be of type String, received ${getType(params.action)}`)
67
- }
68
-
69
- if (params.page && !isInt(params.page)) {
70
- throw new errors.InvalidParameterError(`Bad parameter: page must be of type Int, received ${getType(params.page)}`)
71
- }
72
-
73
63
  if (params.bundle_id && !isInt(params.bundle_id)) {
74
64
  throw new errors.InvalidParameterError(`Bad parameter: bundle_id must be of type Int, received ${getType(params.bundle_id)}`)
75
65
  }
@@ -136,9 +136,7 @@ class BundleNotification {
136
136
  // Parameters:
137
137
  // 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.
138
138
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
139
- // action - string
140
- // page - int64
141
- // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[bundle_id]=desc`). Valid fields are `bundle_id`.
139
+ // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `bundle_id`.
142
140
  // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `bundle_id`.
143
141
  static list = async (params = {}, options = {}) => {
144
142
  if (params.cursor && !isString(params.cursor)) {
@@ -149,14 +147,6 @@ class BundleNotification {
149
147
  throw new errors.InvalidParameterError(`Bad parameter: per_page must be of type Int, received ${getType(params.per_page)}`)
150
148
  }
151
149
 
152
- if (params.action && !isString(params.action)) {
153
- throw new errors.InvalidParameterError(`Bad parameter: action must be of type String, received ${getType(params.action)}`)
154
- }
155
-
156
- if (params.page && !isInt(params.page)) {
157
- throw new errors.InvalidParameterError(`Bad parameter: page must be of type Int, received ${getType(params.page)}`)
158
- }
159
-
160
150
  const response = await Api.sendRequest('/bundle_notifications', 'GET', params, options)
161
151
 
162
152
  return response?.data?.map(obj => new BundleNotification(obj, options)) || []
@@ -90,9 +90,7 @@ class BundleRecipient {
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
95
- // 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`.
93
+ // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `has_registrations`.
96
94
  // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `has_registrations`.
97
95
  // bundle_id (required) - int64 - List recipients for the bundle with this ID.
98
96
  static list = async (params = {}, options = {}) => {
@@ -108,14 +106,6 @@ class BundleRecipient {
108
106
  throw new errors.InvalidParameterError(`Bad parameter: per_page must be of type Int, received ${getType(params.per_page)}`)
109
107
  }
110
108
 
111
- if (params.action && !isString(params.action)) {
112
- throw new errors.InvalidParameterError(`Bad parameter: action must be of type String, received ${getType(params.action)}`)
113
- }
114
-
115
- if (params.page && !isInt(params.page)) {
116
- throw new errors.InvalidParameterError(`Bad parameter: page must be of type Int, received ${getType(params.page)}`)
117
- }
118
-
119
109
  if (params.bundle_id && !isInt(params.bundle_id)) {
120
110
  throw new errors.InvalidParameterError(`Bad parameter: bundle_id must be of type Int, received ${getType(params.bundle_id)}`)
121
111
  }
@@ -70,8 +70,6 @@ class BundleRegistration {
70
70
  // Parameters:
71
71
  // 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.
72
72
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
73
- // action - string
74
- // page - int64
75
73
  // bundle_id - int64 - ID of the associated Bundle
76
74
  static list = async (params = {}, options = {}) => {
77
75
  if (params.cursor && !isString(params.cursor)) {
@@ -82,14 +80,6 @@ class BundleRegistration {
82
80
  throw new errors.InvalidParameterError(`Bad parameter: per_page must be of type Int, received ${getType(params.per_page)}`)
83
81
  }
84
82
 
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
-
93
83
  if (params.bundle_id && !isInt(params.bundle_id)) {
94
84
  throw new errors.InvalidParameterError(`Bad parameter: bundle_id must be of type Int, received ${getType(params.bundle_id)}`)
95
85
  }
@@ -166,8 +166,6 @@ class Clickwrap {
166
166
  // Parameters:
167
167
  // 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.
168
168
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
169
- // action - string
170
- // page - int64
171
169
  static list = async (params = {}, options = {}) => {
172
170
  if (params.cursor && !isString(params.cursor)) {
173
171
  throw new errors.InvalidParameterError(`Bad parameter: cursor must be of type String, received ${getType(params.cursor)}`)
@@ -177,14 +175,6 @@ class Clickwrap {
177
175
  throw new errors.InvalidParameterError(`Bad parameter: per_page must be of type Int, received ${getType(params.per_page)}`)
178
176
  }
179
177
 
180
- if (params.action && !isString(params.action)) {
181
- throw new errors.InvalidParameterError(`Bad parameter: action must be of type String, received ${getType(params.action)}`)
182
- }
183
-
184
- if (params.page && !isInt(params.page)) {
185
- throw new errors.InvalidParameterError(`Bad parameter: page must be of type Int, received ${getType(params.page)}`)
186
- }
187
-
188
178
  const response = await Api.sendRequest('/clickwraps', 'GET', params, options)
189
179
 
190
180
  return response?.data?.map(obj => new Clickwrap(obj, options)) || []
@@ -43,8 +43,6 @@ class DnsRecord {
43
43
  // Parameters:
44
44
  // 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.
45
45
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
46
- // action - string
47
- // page - int64
48
46
  static list = async (params = {}, options = {}) => {
49
47
  if (params.cursor && !isString(params.cursor)) {
50
48
  throw new errors.InvalidParameterError(`Bad parameter: cursor must be of type String, received ${getType(params.cursor)}`)
@@ -54,14 +52,6 @@ class DnsRecord {
54
52
  throw new errors.InvalidParameterError(`Bad parameter: per_page must be of type Int, received ${getType(params.per_page)}`)
55
53
  }
56
54
 
57
- if (params.action && !isString(params.action)) {
58
- throw new errors.InvalidParameterError(`Bad parameter: action must be of type String, received ${getType(params.action)}`)
59
- }
60
-
61
- if (params.page && !isInt(params.page)) {
62
- throw new errors.InvalidParameterError(`Bad parameter: page must be of type Int, received ${getType(params.page)}`)
63
- }
64
-
65
55
  const response = await Api.sendRequest('/dns_records', 'GET', params, options)
66
56
 
67
57
  return response?.data?.map(obj => new DnsRecord(obj, options)) || []