files.com 1.2.85 → 1.2.87

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (214) hide show
  1. package/_VERSION +1 -1
  2. package/docs/models/ActionNotificationExportResult.md +3 -0
  3. package/docs/models/ApiKey.md +6 -0
  4. package/docs/models/ApiRequestLog.md +3 -0
  5. package/docs/models/App.md +3 -0
  6. package/docs/models/As2IncomingMessage.md +3 -0
  7. package/docs/models/As2OutgoingMessage.md +3 -0
  8. package/docs/models/As2Partner.md +42 -29
  9. package/docs/models/As2Station.md +3 -0
  10. package/docs/models/Automation.md +17 -3
  11. package/docs/models/AutomationLog.md +3 -0
  12. package/docs/models/AutomationRun.md +3 -0
  13. package/docs/models/BandwidthSnapshot.md +3 -0
  14. package/docs/models/Behavior.md +26 -19
  15. package/docs/models/Bundle.md +4 -5
  16. package/docs/models/BundleAction.md +4 -0
  17. package/docs/models/BundleDownload.md +3 -0
  18. package/docs/models/BundleNotification.md +3 -0
  19. package/docs/models/BundleRecipient.md +3 -0
  20. package/docs/models/BundleRegistration.md +3 -0
  21. package/docs/models/Clickwrap.md +3 -0
  22. package/docs/models/DnsRecord.md +3 -0
  23. package/docs/models/EmailIncomingMessage.md +3 -0
  24. package/docs/models/EmailLog.md +3 -0
  25. package/docs/models/ExavaultApiRequestLog.md +3 -0
  26. package/docs/models/ExternalEvent.md +3 -0
  27. package/docs/models/FileComment.md +3 -0
  28. package/docs/models/FileMigration.md +1 -1
  29. package/docs/models/FileMigrationLog.md +3 -0
  30. package/docs/models/Folder.md +2 -0
  31. package/docs/models/FormFieldSet.md +3 -0
  32. package/docs/models/FtpActionLog.md +3 -0
  33. package/docs/models/GpgKey.md +3 -0
  34. package/docs/models/Group.md +3 -0
  35. package/docs/models/GroupUser.md +3 -0
  36. package/docs/models/History.md +20 -0
  37. package/docs/models/HistoryExportResult.md +4 -0
  38. package/docs/models/InboxRecipient.md +3 -0
  39. package/docs/models/InboxRegistration.md +3 -0
  40. package/docs/models/InboxUpload.md +3 -0
  41. package/docs/models/Invoice.md +3 -0
  42. package/docs/models/IpAddress.md +12 -0
  43. package/docs/models/Lock.md +6 -3
  44. package/docs/models/Message.md +3 -0
  45. package/docs/models/MessageComment.md +3 -0
  46. package/docs/models/MessageCommentReaction.md +3 -0
  47. package/docs/models/MessageReaction.md +3 -0
  48. package/docs/models/Notification.md +4 -1
  49. package/docs/models/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/Site.md +4 -0
  63. package/docs/models/Snapshot.md +3 -0
  64. package/docs/models/SsoStrategy.md +4 -1
  65. package/docs/models/SyncLog.md +3 -0
  66. package/docs/models/UsageDailySnapshot.md +3 -0
  67. package/docs/models/UsageSnapshot.md +3 -0
  68. package/docs/models/User.md +6 -3
  69. package/docs/models/UserCipherUse.md +3 -0
  70. package/docs/models/UserRequest.md +3 -0
  71. package/docs/models/WebDavActionLog.md +3 -0
  72. package/lib/Files.js +1 -1
  73. package/lib/models/ActionNotificationExportResult.js +19 -5
  74. package/lib/models/ApiKey.js +34 -6
  75. package/lib/models/ApiRequestLog.js +17 -3
  76. package/lib/models/App.js +17 -3
  77. package/lib/models/As2IncomingMessage.js +19 -5
  78. package/lib/models/As2OutgoingMessage.js +19 -5
  79. package/lib/models/As2Partner.js +120 -64
  80. package/lib/models/As2Station.js +17 -3
  81. package/lib/models/Automation.js +31 -6
  82. package/lib/models/AutomationLog.js +17 -3
  83. package/lib/models/AutomationRun.js +19 -5
  84. package/lib/models/BandwidthSnapshot.js +17 -3
  85. package/lib/models/Behavior.js +53 -31
  86. package/lib/models/Bundle.js +18 -6
  87. package/lib/models/BundleAction.js +21 -7
  88. package/lib/models/BundleDownload.js +21 -7
  89. package/lib/models/BundleNotification.js +17 -3
  90. package/lib/models/BundleRecipient.js +19 -5
  91. package/lib/models/BundleRegistration.js +19 -5
  92. package/lib/models/Clickwrap.js +17 -3
  93. package/lib/models/DnsRecord.js +17 -3
  94. package/lib/models/EmailIncomingMessage.js +17 -3
  95. package/lib/models/EmailLog.js +17 -3
  96. package/lib/models/ExavaultApiRequestLog.js +17 -3
  97. package/lib/models/ExternalEvent.js +17 -3
  98. package/lib/models/FileComment.js +19 -5
  99. package/lib/models/FileMigration.js +1 -1
  100. package/lib/models/FileMigrationLog.js +17 -3
  101. package/lib/models/Folder.js +18 -11
  102. package/lib/models/FormFieldSet.js +17 -3
  103. package/lib/models/FtpActionLog.js +17 -3
  104. package/lib/models/GpgKey.js +17 -3
  105. package/lib/models/Group.js +19 -5
  106. package/lib/models/GroupUser.js +19 -5
  107. package/lib/models/History.js +91 -21
  108. package/lib/models/HistoryExportResult.js +19 -5
  109. package/lib/models/InboxRecipient.js +19 -5
  110. package/lib/models/InboxRegistration.js +19 -5
  111. package/lib/models/InboxUpload.js +21 -7
  112. package/lib/models/Invoice.js +17 -3
  113. package/lib/models/IpAddress.js +68 -12
  114. package/lib/models/Lock.js +22 -8
  115. package/lib/models/Message.js +19 -5
  116. package/lib/models/MessageComment.js +19 -5
  117. package/lib/models/MessageCommentReaction.js +19 -5
  118. package/lib/models/MessageReaction.js +19 -5
  119. package/lib/models/Notification.js +22 -8
  120. package/lib/models/Payment.js +17 -3
  121. package/lib/models/Permission.js +23 -9
  122. package/lib/models/Priority.js +19 -5
  123. package/lib/models/Project.js +17 -3
  124. package/lib/models/PublicHostingRequestLog.js +17 -3
  125. package/lib/models/PublicKey.js +17 -3
  126. package/lib/models/RemoteBandwidthSnapshot.js +17 -3
  127. package/lib/models/RemoteServer.js +17 -3
  128. package/lib/models/Request.js +38 -10
  129. package/lib/models/SettingsChange.js +17 -3
  130. package/lib/models/SftpActionLog.js +17 -3
  131. package/lib/models/SftpHostKey.js +17 -3
  132. package/lib/models/ShareGroup.js +17 -3
  133. package/lib/models/Site.js +5 -0
  134. package/lib/models/Snapshot.js +17 -3
  135. package/lib/models/SsoStrategy.js +18 -4
  136. package/lib/models/SyncLog.js +17 -3
  137. package/lib/models/UsageDailySnapshot.js +17 -3
  138. package/lib/models/UsageSnapshot.js +17 -3
  139. package/lib/models/User.js +24 -10
  140. package/lib/models/UserCipherUse.js +17 -3
  141. package/lib/models/UserRequest.js +17 -3
  142. package/lib/models/WebDavActionLog.js +17 -3
  143. package/package.json +1 -1
  144. package/src/Files.js +1 -1
  145. package/src/models/ActionNotificationExportResult.js +10 -0
  146. package/src/models/ApiKey.js +22 -0
  147. package/src/models/ApiRequestLog.js +10 -0
  148. package/src/models/App.js +10 -0
  149. package/src/models/As2IncomingMessage.js +10 -0
  150. package/src/models/As2OutgoingMessage.js +10 -0
  151. package/src/models/As2Partner.js +82 -38
  152. package/src/models/As2Station.js +10 -0
  153. package/src/models/Automation.js +24 -3
  154. package/src/models/AutomationLog.js +10 -0
  155. package/src/models/AutomationRun.js +10 -0
  156. package/src/models/BandwidthSnapshot.js +10 -0
  157. package/src/models/Behavior.js +39 -23
  158. package/src/models/Bundle.js +11 -3
  159. package/src/models/BundleAction.js +10 -0
  160. package/src/models/BundleDownload.js +10 -0
  161. package/src/models/BundleNotification.js +10 -0
  162. package/src/models/BundleRecipient.js +10 -0
  163. package/src/models/BundleRegistration.js +10 -0
  164. package/src/models/Clickwrap.js +10 -0
  165. package/src/models/DnsRecord.js +10 -0
  166. package/src/models/EmailIncomingMessage.js +10 -0
  167. package/src/models/EmailLog.js +10 -0
  168. package/src/models/ExavaultApiRequestLog.js +10 -0
  169. package/src/models/ExternalEvent.js +10 -0
  170. package/src/models/FileComment.js +10 -0
  171. package/src/models/FileMigration.js +1 -1
  172. package/src/models/FileMigrationLog.js +10 -0
  173. package/src/models/Folder.js +5 -0
  174. package/src/models/FormFieldSet.js +10 -0
  175. package/src/models/FtpActionLog.js +10 -0
  176. package/src/models/GpgKey.js +10 -0
  177. package/src/models/Group.js +10 -0
  178. package/src/models/GroupUser.js +10 -0
  179. package/src/models/History.js +50 -0
  180. package/src/models/HistoryExportResult.js +10 -0
  181. package/src/models/InboxRecipient.js +10 -0
  182. package/src/models/InboxRegistration.js +10 -0
  183. package/src/models/InboxUpload.js +10 -0
  184. package/src/models/Invoice.js +10 -0
  185. package/src/models/IpAddress.js +40 -0
  186. package/src/models/Lock.js +13 -3
  187. package/src/models/Message.js +10 -0
  188. package/src/models/MessageComment.js +10 -0
  189. package/src/models/MessageCommentReaction.js +10 -0
  190. package/src/models/MessageReaction.js +10 -0
  191. package/src/models/Notification.js +11 -1
  192. package/src/models/Payment.js +10 -0
  193. package/src/models/Permission.js +10 -0
  194. package/src/models/Priority.js +10 -0
  195. package/src/models/Project.js +10 -0
  196. package/src/models/PublicHostingRequestLog.js +10 -0
  197. package/src/models/PublicKey.js +10 -0
  198. package/src/models/RemoteBandwidthSnapshot.js +10 -0
  199. package/src/models/RemoteServer.js +10 -0
  200. package/src/models/Request.js +20 -0
  201. package/src/models/SettingsChange.js +10 -0
  202. package/src/models/SftpActionLog.js +10 -0
  203. package/src/models/SftpHostKey.js +10 -0
  204. package/src/models/ShareGroup.js +10 -0
  205. package/src/models/Site.js +4 -0
  206. package/src/models/Snapshot.js +10 -0
  207. package/src/models/SsoStrategy.js +11 -1
  208. package/src/models/SyncLog.js +10 -0
  209. package/src/models/UsageDailySnapshot.js +10 -0
  210. package/src/models/UsageSnapshot.js +10 -0
  211. package/src/models/User.js +13 -3
  212. package/src/models/UserCipherUse.js +10 -0
  213. package/src/models/UserRequest.js +10 -0
  214. package/src/models/WebDavActionLog.js +10 -0
@@ -43,6 +43,8 @@ class IpAddress {
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
46
48
  static list = async (params = {}, options = {}) => {
47
49
  if (params.cursor && !isString(params.cursor)) {
48
50
  throw new errors.InvalidParameterError(`Bad parameter: cursor must be of type String, received ${getType(params.cursor)}`)
@@ -52,6 +54,14 @@ class IpAddress {
52
54
  throw new errors.InvalidParameterError(`Bad parameter: per_page must be of type Int, received ${getType(params.per_page)}`)
53
55
  }
54
56
 
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
+
55
65
  const response = await Api.sendRequest('/ip_addresses', 'GET', params, options)
56
66
 
57
67
  return response?.data?.map(obj => new IpAddress(obj, options)) || []
@@ -63,6 +73,8 @@ class IpAddress {
63
73
  // Parameters:
64
74
  // 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.
65
75
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
76
+ // action - string
77
+ // page - int64
66
78
  static getSmartfileReserved = async (params = {}, options = {}) => {
67
79
  if (params.cursor && !isString(params.cursor)) {
68
80
  throw new errors.InvalidParameterError(`Bad parameter: cursor must be of type String, received ${getType(params.cursor)}`)
@@ -72,6 +84,14 @@ class IpAddress {
72
84
  throw new errors.InvalidParameterError(`Bad parameter: per_page must be of type Int, received ${getType(params.per_page)}`)
73
85
  }
74
86
 
87
+ if (params.action && !isString(params.action)) {
88
+ throw new errors.InvalidParameterError(`Bad parameter: action must be of type String, received ${getType(params.action)}`)
89
+ }
90
+
91
+ if (params.page && !isInt(params.page)) {
92
+ throw new errors.InvalidParameterError(`Bad parameter: page must be of type Int, received ${getType(params.page)}`)
93
+ }
94
+
75
95
  const response = await Api.sendRequest('/ip_addresses/smartfile-reserved', 'GET', params, options)
76
96
 
77
97
  const PublicIpAddress = require('./PublicIpAddress.js').default
@@ -81,6 +101,8 @@ class IpAddress {
81
101
  // Parameters:
82
102
  // 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.
83
103
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
104
+ // action - string
105
+ // page - int64
84
106
  static getExavaultReserved = async (params = {}, options = {}) => {
85
107
  if (params.cursor && !isString(params.cursor)) {
86
108
  throw new errors.InvalidParameterError(`Bad parameter: cursor must be of type String, received ${getType(params.cursor)}`)
@@ -90,6 +112,14 @@ class IpAddress {
90
112
  throw new errors.InvalidParameterError(`Bad parameter: per_page must be of type Int, received ${getType(params.per_page)}`)
91
113
  }
92
114
 
115
+ if (params.action && !isString(params.action)) {
116
+ throw new errors.InvalidParameterError(`Bad parameter: action must be of type String, received ${getType(params.action)}`)
117
+ }
118
+
119
+ if (params.page && !isInt(params.page)) {
120
+ throw new errors.InvalidParameterError(`Bad parameter: page must be of type Int, received ${getType(params.page)}`)
121
+ }
122
+
93
123
  const response = await Api.sendRequest('/ip_addresses/exavault-reserved', 'GET', params, options)
94
124
 
95
125
  const PublicIpAddress = require('./PublicIpAddress.js').default
@@ -99,6 +129,8 @@ class IpAddress {
99
129
  // Parameters:
100
130
  // 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.
101
131
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
132
+ // action - string
133
+ // page - int64
102
134
  static getReserved = async (params = {}, options = {}) => {
103
135
  if (params.cursor && !isString(params.cursor)) {
104
136
  throw new errors.InvalidParameterError(`Bad parameter: cursor must be of type String, received ${getType(params.cursor)}`)
@@ -108,6 +140,14 @@ class IpAddress {
108
140
  throw new errors.InvalidParameterError(`Bad parameter: per_page must be of type Int, received ${getType(params.per_page)}`)
109
141
  }
110
142
 
143
+ if (params.action && !isString(params.action)) {
144
+ throw new errors.InvalidParameterError(`Bad parameter: action must be of type String, received ${getType(params.action)}`)
145
+ }
146
+
147
+ if (params.page && !isInt(params.page)) {
148
+ throw new errors.InvalidParameterError(`Bad parameter: page must be of type Int, received ${getType(params.page)}`)
149
+ }
150
+
111
151
  const response = await Api.sendRequest('/ip_addresses/reserved', 'GET', params, options)
112
152
 
113
153
  const PublicIpAddress = require('./PublicIpAddress.js').default
@@ -42,7 +42,7 @@ class Lock {
42
42
  this.attributes.timeout = value
43
43
  }
44
44
 
45
- // string # DEPRECATED: Lock depth
45
+ // string
46
46
  getDepth = () => this.attributes.depth
47
47
 
48
48
  setDepth = value => {
@@ -63,7 +63,7 @@ class Lock {
63
63
  this.attributes.owner = value
64
64
  }
65
65
 
66
- // string # DEPRECATED: Lock scope
66
+ // string
67
67
  getScope = () => this.attributes.scope
68
68
 
69
69
  setScope = value => {
@@ -84,7 +84,7 @@ class Lock {
84
84
  this.attributes.token = value
85
85
  }
86
86
 
87
- // string # DEPRECATED: Lock type
87
+ // string
88
88
  getType = () => this.attributes.type
89
89
 
90
90
  setType = value => {
@@ -163,6 +163,8 @@ class Lock {
163
163
  // Parameters:
164
164
  // 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.
165
165
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
166
+ // action - string
167
+ // page - int64
166
168
  // path (required) - string - Path to operate on.
167
169
  // include_children - boolean - Include locks from children objects?
168
170
  static listFor = async (path, params = {}, options = {}) => {
@@ -184,6 +186,14 @@ class Lock {
184
186
  throw new errors.InvalidParameterError(`Bad parameter: per_page must be of type Int, received ${getType(params.per_page)}`)
185
187
  }
186
188
 
189
+ if (params.action && !isString(params.action)) {
190
+ throw new errors.InvalidParameterError(`Bad parameter: action must be of type String, received ${getType(params.action)}`)
191
+ }
192
+
193
+ if (params.page && !isInt(params.page)) {
194
+ throw new errors.InvalidParameterError(`Bad parameter: page must be of type Int, received ${getType(params.page)}`)
195
+ }
196
+
187
197
  if (params.path && !isString(params.path)) {
188
198
  throw new errors.InvalidParameterError(`Bad parameter: path must be of type String, received ${getType(params.path)}`)
189
199
  }
@@ -181,6 +181,8 @@ class Message {
181
181
  // user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
182
182
  // 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.
183
183
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
184
+ // action - string
185
+ // page - int64
184
186
  // project_id (required) - int64 - Project for which to return messages.
185
187
  static list = async (params = {}, options = {}) => {
186
188
  if (!params.project_id) {
@@ -199,6 +201,14 @@ class Message {
199
201
  throw new errors.InvalidParameterError(`Bad parameter: per_page must be of type Int, received ${getType(params.per_page)}`)
200
202
  }
201
203
 
204
+ if (params.action && !isString(params.action)) {
205
+ throw new errors.InvalidParameterError(`Bad parameter: action must be of type String, received ${getType(params.action)}`)
206
+ }
207
+
208
+ if (params.page && !isInt(params.page)) {
209
+ throw new errors.InvalidParameterError(`Bad parameter: page must be of type Int, received ${getType(params.page)}`)
210
+ }
211
+
202
212
  if (params.project_id && !isInt(params.project_id)) {
203
213
  throw new errors.InvalidParameterError(`Bad parameter: project_id must be of type Int, received ${getType(params.project_id)}`)
204
214
  }
@@ -141,6 +141,8 @@ class MessageComment {
141
141
  // user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
142
142
  // 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.
143
143
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
144
+ // action - string
145
+ // page - int64
144
146
  // message_id (required) - int64 - Message comment to return comments for.
145
147
  static list = async (params = {}, options = {}) => {
146
148
  if (!params.message_id) {
@@ -159,6 +161,14 @@ class MessageComment {
159
161
  throw new errors.InvalidParameterError(`Bad parameter: per_page must be of type Int, received ${getType(params.per_page)}`)
160
162
  }
161
163
 
164
+ if (params.action && !isString(params.action)) {
165
+ throw new errors.InvalidParameterError(`Bad parameter: action must be of type String, received ${getType(params.action)}`)
166
+ }
167
+
168
+ if (params.page && !isInt(params.page)) {
169
+ throw new errors.InvalidParameterError(`Bad parameter: page must be of type Int, received ${getType(params.page)}`)
170
+ }
171
+
162
172
  if (params.message_id && !isInt(params.message_id)) {
163
173
  throw new errors.InvalidParameterError(`Bad parameter: message_id must be of type Int, received ${getType(params.message_id)}`)
164
174
  }
@@ -91,6 +91,8 @@ class MessageCommentReaction {
91
91
  // user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
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
94
96
  // message_comment_id (required) - int64 - Message comment to return reactions for.
95
97
  static list = async (params = {}, options = {}) => {
96
98
  if (!params.message_comment_id) {
@@ -109,6 +111,14 @@ class MessageCommentReaction {
109
111
  throw new errors.InvalidParameterError(`Bad parameter: per_page must be of type Int, received ${getType(params.per_page)}`)
110
112
  }
111
113
 
114
+ if (params.action && !isString(params.action)) {
115
+ throw new errors.InvalidParameterError(`Bad parameter: action must be of type String, received ${getType(params.action)}`)
116
+ }
117
+
118
+ if (params.page && !isInt(params.page)) {
119
+ throw new errors.InvalidParameterError(`Bad parameter: page must be of type Int, received ${getType(params.page)}`)
120
+ }
121
+
112
122
  if (params.message_comment_id && !isInt(params.message_comment_id)) {
113
123
  throw new errors.InvalidParameterError(`Bad parameter: message_comment_id must be of type Int, received ${getType(params.message_comment_id)}`)
114
124
  }
@@ -91,6 +91,8 @@ class MessageReaction {
91
91
  // user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
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
94
96
  // message_id (required) - int64 - Message to return reactions for.
95
97
  static list = async (params = {}, options = {}) => {
96
98
  if (!params.message_id) {
@@ -109,6 +111,14 @@ class MessageReaction {
109
111
  throw new errors.InvalidParameterError(`Bad parameter: per_page must be of type Int, received ${getType(params.per_page)}`)
110
112
  }
111
113
 
114
+ if (params.action && !isString(params.action)) {
115
+ throw new errors.InvalidParameterError(`Bad parameter: action must be of type String, received ${getType(params.action)}`)
116
+ }
117
+
118
+ if (params.page && !isInt(params.page)) {
119
+ throw new errors.InvalidParameterError(`Bad parameter: page must be of type Int, received ${getType(params.page)}`)
120
+ }
121
+
112
122
  if (params.message_id && !isInt(params.message_id)) {
113
123
  throw new errors.InvalidParameterError(`Bad parameter: message_id must be of type Int, received ${getType(params.message_id)}`)
114
124
  }
@@ -284,9 +284,11 @@ class Notification {
284
284
  }
285
285
 
286
286
  // Parameters:
287
- // user_id - int64 - DEPRECATED: Show notifications for this User ID. Use `filter[user_id]` instead.
287
+ // user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
288
288
  // 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.
289
289
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
290
+ // action - string
291
+ // page - int64
290
292
  // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[path]=desc`). Valid fields are `path`, `user_id` or `group_id`.
291
293
  // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `path`, `user_id` or `group_id`.
292
294
  // filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `path`.
@@ -306,6 +308,14 @@ class Notification {
306
308
  throw new errors.InvalidParameterError(`Bad parameter: per_page must be of type Int, received ${getType(params.per_page)}`)
307
309
  }
308
310
 
311
+ if (params.action && !isString(params.action)) {
312
+ throw new errors.InvalidParameterError(`Bad parameter: action must be of type String, received ${getType(params.action)}`)
313
+ }
314
+
315
+ if (params.page && !isInt(params.page)) {
316
+ throw new errors.InvalidParameterError(`Bad parameter: page must be of type Int, received ${getType(params.page)}`)
317
+ }
318
+
309
319
  if (params.path && !isString(params.path)) {
310
320
  throw new errors.InvalidParameterError(`Bad parameter: path must be of type String, received ${getType(params.path)}`)
311
321
  }
@@ -70,6 +70,8 @@ class Payment {
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
73
75
  static list = async (params = {}, options = {}) => {
74
76
  if (params.cursor && !isString(params.cursor)) {
75
77
  throw new errors.InvalidParameterError(`Bad parameter: cursor must be of type String, received ${getType(params.cursor)}`)
@@ -79,6 +81,14 @@ class Payment {
79
81
  throw new errors.InvalidParameterError(`Bad parameter: per_page must be of type Int, received ${getType(params.per_page)}`)
80
82
  }
81
83
 
84
+ if (params.action && !isString(params.action)) {
85
+ throw new errors.InvalidParameterError(`Bad parameter: action must be of type String, received ${getType(params.action)}`)
86
+ }
87
+
88
+ if (params.page && !isInt(params.page)) {
89
+ throw new errors.InvalidParameterError(`Bad parameter: page must be of type Int, received ${getType(params.page)}`)
90
+ }
91
+
82
92
  const response = await Api.sendRequest('/payments', 'GET', params, options)
83
93
 
84
94
  const AccountLineItem = require('./AccountLineItem.js').default
@@ -125,6 +125,8 @@ class Permission {
125
125
  // Parameters:
126
126
  // 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.
127
127
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
128
+ // action - string
129
+ // page - int64
128
130
  // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[group_id]=desc`). Valid fields are `group_id`, `path`, `user_id` or `permission`.
129
131
  // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `path`, `group_id` or `user_id`. Valid field combinations are `[ group_id, path ]`, `[ user_id, path ]` or `[ user_id, group_id, path ]`.
130
132
  // filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `path`.
@@ -141,6 +143,14 @@ class Permission {
141
143
  throw new errors.InvalidParameterError(`Bad parameter: per_page must be of type Int, received ${getType(params.per_page)}`)
142
144
  }
143
145
 
146
+ if (params.action && !isString(params.action)) {
147
+ throw new errors.InvalidParameterError(`Bad parameter: action must be of type String, received ${getType(params.action)}`)
148
+ }
149
+
150
+ if (params.page && !isInt(params.page)) {
151
+ throw new errors.InvalidParameterError(`Bad parameter: page must be of type Int, received ${getType(params.page)}`)
152
+ }
153
+
144
154
  if (params.path && !isString(params.path)) {
145
155
  throw new errors.InvalidParameterError(`Bad parameter: path must be of type String, received ${getType(params.path)}`)
146
156
  }
@@ -37,6 +37,8 @@ class Priority {
37
37
  // Parameters:
38
38
  // 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.
39
39
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
40
+ // action - string
41
+ // page - int64
40
42
  // path (required) - string - The path to query for priorities
41
43
  static list = async (path, params = {}, options = {}) => {
42
44
  if (!isObject(params)) {
@@ -57,6 +59,14 @@ class Priority {
57
59
  throw new errors.InvalidParameterError(`Bad parameter: per_page must be of type Int, received ${getType(params.per_page)}`)
58
60
  }
59
61
 
62
+ if (params.action && !isString(params.action)) {
63
+ throw new errors.InvalidParameterError(`Bad parameter: action must be of type String, received ${getType(params.action)}`)
64
+ }
65
+
66
+ if (params.page && !isInt(params.page)) {
67
+ throw new errors.InvalidParameterError(`Bad parameter: page must be of type Int, received ${getType(params.page)}`)
68
+ }
69
+
60
70
  if (params.path && !isString(params.path)) {
61
71
  throw new errors.InvalidParameterError(`Bad parameter: path must be of type String, received ${getType(params.path)}`)
62
72
  }
@@ -126,6 +126,8 @@ class Project {
126
126
  // Parameters:
127
127
  // 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.
128
128
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
129
+ // action - string
130
+ // page - int64
129
131
  static list = async (params = {}, options = {}) => {
130
132
  if (params.cursor && !isString(params.cursor)) {
131
133
  throw new errors.InvalidParameterError(`Bad parameter: cursor must be of type String, received ${getType(params.cursor)}`)
@@ -135,6 +137,14 @@ class Project {
135
137
  throw new errors.InvalidParameterError(`Bad parameter: per_page must be of type Int, received ${getType(params.per_page)}`)
136
138
  }
137
139
 
140
+ if (params.action && !isString(params.action)) {
141
+ throw new errors.InvalidParameterError(`Bad parameter: action must be of type String, received ${getType(params.action)}`)
142
+ }
143
+
144
+ if (params.page && !isInt(params.page)) {
145
+ throw new errors.InvalidParameterError(`Bad parameter: page must be of type Int, received ${getType(params.page)}`)
146
+ }
147
+
138
148
  const response = await Api.sendRequest('/projects', 'GET', params, options)
139
149
 
140
150
  return response?.data?.map(obj => new Project(obj, options)) || []
@@ -55,6 +55,8 @@ class PublicHostingRequestLog {
55
55
  // Parameters:
56
56
  // 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.
57
57
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
58
+ // action - string
59
+ // page - int64
58
60
  // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `start_date`, `end_date`, `path`, `remote_ip` or `success`. Valid field combinations are `[ start_date ]`, `[ end_date ]`, `[ path ]`, `[ remote_ip ]`, `[ success ]`, `[ start_date, end_date ]`, `[ start_date, path ]`, `[ start_date, remote_ip ]`, `[ start_date, success ]`, `[ end_date, path ]`, `[ end_date, remote_ip ]`, `[ end_date, success ]`, `[ path, remote_ip ]`, `[ path, success ]`, `[ remote_ip, success ]`, `[ start_date, end_date, path ]`, `[ start_date, end_date, remote_ip ]`, `[ start_date, end_date, success ]`, `[ start_date, path, remote_ip ]`, `[ start_date, path, success ]`, `[ start_date, remote_ip, success ]`, `[ end_date, path, remote_ip ]`, `[ end_date, path, success ]`, `[ end_date, remote_ip, success ]`, `[ path, remote_ip, success ]`, `[ start_date, end_date, path, remote_ip ]`, `[ start_date, end_date, path, success ]`, `[ start_date, end_date, remote_ip, success ]`, `[ start_date, path, remote_ip, success ]` or `[ end_date, path, remote_ip, success ]`.
59
61
  // filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `path`. Valid field combinations are `[ start_date ]`, `[ end_date ]`, `[ path ]`, `[ remote_ip ]`, `[ success ]`, `[ start_date, end_date ]`, `[ start_date, path ]`, `[ start_date, remote_ip ]`, `[ start_date, success ]`, `[ end_date, path ]`, `[ end_date, remote_ip ]`, `[ end_date, success ]`, `[ path, remote_ip ]`, `[ path, success ]`, `[ remote_ip, success ]`, `[ start_date, end_date, path ]`, `[ start_date, end_date, remote_ip ]`, `[ start_date, end_date, success ]`, `[ start_date, path, remote_ip ]`, `[ start_date, path, success ]`, `[ start_date, remote_ip, success ]`, `[ end_date, path, remote_ip ]`, `[ end_date, path, success ]`, `[ end_date, remote_ip, success ]`, `[ path, remote_ip, success ]`, `[ start_date, end_date, path, remote_ip ]`, `[ start_date, end_date, path, success ]`, `[ start_date, end_date, remote_ip, success ]`, `[ start_date, path, remote_ip, success ]` or `[ end_date, path, remote_ip, success ]`.
60
62
  static list = async (params = {}, options = {}) => {
@@ -66,6 +68,14 @@ class PublicHostingRequestLog {
66
68
  throw new errors.InvalidParameterError(`Bad parameter: per_page must be of type Int, received ${getType(params.per_page)}`)
67
69
  }
68
70
 
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
+
69
79
  const response = await Api.sendRequest('/public_hosting_request_logs', 'GET', params, options)
70
80
 
71
81
  return response?.data?.map(obj => new PublicHostingRequestLog(obj, options)) || []
@@ -165,6 +165,8 @@ class PublicKey {
165
165
  // user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
166
166
  // 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.
167
167
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
168
+ // action - string
169
+ // page - int64
168
170
  static list = async (params = {}, options = {}) => {
169
171
  if (params.user_id && !isInt(params.user_id)) {
170
172
  throw new errors.InvalidParameterError(`Bad parameter: user_id must be of type Int, received ${getType(params.user_id)}`)
@@ -178,6 +180,14 @@ class PublicKey {
178
180
  throw new errors.InvalidParameterError(`Bad parameter: per_page must be of type Int, received ${getType(params.per_page)}`)
179
181
  }
180
182
 
183
+ if (params.action && !isString(params.action)) {
184
+ throw new errors.InvalidParameterError(`Bad parameter: action must be of type String, received ${getType(params.action)}`)
185
+ }
186
+
187
+ if (params.page && !isInt(params.page)) {
188
+ throw new errors.InvalidParameterError(`Bad parameter: page must be of type Int, received ${getType(params.page)}`)
189
+ }
190
+
181
191
  const response = await Api.sendRequest('/public_keys', 'GET', params, options)
182
192
 
183
193
  return response?.data?.map(obj => new PublicKey(obj, options)) || []
@@ -46,6 +46,8 @@ class RemoteBandwidthSnapshot {
46
46
  // Parameters:
47
47
  // 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.
48
48
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
49
+ // action - string
50
+ // page - int64
49
51
  // 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`.
50
52
  // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `logged_at`.
51
53
  // filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `logged_at`.
@@ -61,6 +63,14 @@ class RemoteBandwidthSnapshot {
61
63
  throw new errors.InvalidParameterError(`Bad parameter: per_page must be of type Int, received ${getType(params.per_page)}`)
62
64
  }
63
65
 
66
+ if (params.action && !isString(params.action)) {
67
+ throw new errors.InvalidParameterError(`Bad parameter: action must be of type String, received ${getType(params.action)}`)
68
+ }
69
+
70
+ if (params.page && !isInt(params.page)) {
71
+ throw new errors.InvalidParameterError(`Bad parameter: page must be of type Int, received ${getType(params.page)}`)
72
+ }
73
+
64
74
  const response = await Api.sendRequest('/remote_bandwidth_snapshots', 'GET', params, options)
65
75
 
66
76
  return response?.data?.map(obj => new RemoteBandwidthSnapshot(obj, options)) || []
@@ -996,6 +996,8 @@ class RemoteServer {
996
996
  // Parameters:
997
997
  // 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.
998
998
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
999
+ // action - string
1000
+ // page - int64
999
1001
  static list = async (params = {}, options = {}) => {
1000
1002
  if (params.cursor && !isString(params.cursor)) {
1001
1003
  throw new errors.InvalidParameterError(`Bad parameter: cursor must be of type String, received ${getType(params.cursor)}`)
@@ -1005,6 +1007,14 @@ class RemoteServer {
1005
1007
  throw new errors.InvalidParameterError(`Bad parameter: per_page must be of type Int, received ${getType(params.per_page)}`)
1006
1008
  }
1007
1009
 
1010
+ if (params.action && !isString(params.action)) {
1011
+ throw new errors.InvalidParameterError(`Bad parameter: action must be of type String, received ${getType(params.action)}`)
1012
+ }
1013
+
1014
+ if (params.page && !isInt(params.page)) {
1015
+ throw new errors.InvalidParameterError(`Bad parameter: page must be of type Int, received ${getType(params.page)}`)
1016
+ }
1017
+
1008
1018
  const response = await Api.sendRequest('/remote_servers', 'GET', params, options)
1009
1019
 
1010
1020
  return response?.data?.map(obj => new RemoteServer(obj, options)) || []
@@ -125,6 +125,8 @@ class Request {
125
125
  // Parameters:
126
126
  // 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.
127
127
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
128
+ // action - string
129
+ // page - int64
128
130
  // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[destination]=desc`). Valid fields are `destination`.
129
131
  // mine - boolean - Only show requests of the current user? (Defaults to true if current user is not a site admin.)
130
132
  // path - string - Path to show requests for. If omitted, shows all paths. Send `/` to represent the root directory.
@@ -137,6 +139,14 @@ class Request {
137
139
  throw new errors.InvalidParameterError(`Bad parameter: per_page must be of type Int, received ${getType(params.per_page)}`)
138
140
  }
139
141
 
142
+ if (params.action && !isString(params.action)) {
143
+ throw new errors.InvalidParameterError(`Bad parameter: action must be of type String, received ${getType(params.action)}`)
144
+ }
145
+
146
+ if (params.page && !isInt(params.page)) {
147
+ throw new errors.InvalidParameterError(`Bad parameter: page must be of type Int, received ${getType(params.page)}`)
148
+ }
149
+
140
150
  if (params.path && !isString(params.path)) {
141
151
  throw new errors.InvalidParameterError(`Bad parameter: path must be of type String, received ${getType(params.path)}`)
142
152
  }
@@ -152,6 +162,8 @@ class Request {
152
162
  // Parameters:
153
163
  // 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.
154
164
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
165
+ // action - string
166
+ // page - int64
155
167
  // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[destination]=desc`). Valid fields are `destination`.
156
168
  // mine - boolean - Only show requests of the current user? (Defaults to true if current user is not a site admin.)
157
169
  // path (required) - string - Path to show requests for. If omitted, shows all paths. Send `/` to represent the root directory.
@@ -174,6 +186,14 @@ class Request {
174
186
  throw new errors.InvalidParameterError(`Bad parameter: per_page must be of type Int, received ${getType(params.per_page)}`)
175
187
  }
176
188
 
189
+ if (params.action && !isString(params.action)) {
190
+ throw new errors.InvalidParameterError(`Bad parameter: action must be of type String, received ${getType(params.action)}`)
191
+ }
192
+
193
+ if (params.page && !isInt(params.page)) {
194
+ throw new errors.InvalidParameterError(`Bad parameter: page must be of type Int, received ${getType(params.page)}`)
195
+ }
196
+
177
197
  if (params.path && !isString(params.path)) {
178
198
  throw new errors.InvalidParameterError(`Bad parameter: path must be of type String, received ${getType(params.path)}`)
179
199
  }
@@ -49,6 +49,8 @@ class SettingsChange {
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
52
54
  // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[api_key_id]=desc`). Valid fields are `api_key_id`, `created_at` or `user_id`.
53
55
  // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `api_key_id` and `user_id`.
54
56
  static list = async (params = {}, options = {}) => {
@@ -60,6 +62,14 @@ class SettingsChange {
60
62
  throw new errors.InvalidParameterError(`Bad parameter: per_page must be of type Int, received ${getType(params.per_page)}`)
61
63
  }
62
64
 
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
+
63
73
  const response = await Api.sendRequest('/settings_changes', 'GET', params, options)
64
74
 
65
75
  return response?.data?.map(obj => new SettingsChange(obj, options)) || []