files.com 1.2.86 → 1.2.88
Sign up to get free protection for your applications and to get access to all the features.
- package/_VERSION +1 -1
- package/docs/models/ActionNotificationExportResult.md +3 -0
- package/docs/models/ApiKey.md +6 -0
- package/docs/models/ApiRequestLog.md +3 -0
- package/docs/models/App.md +3 -0
- package/docs/models/As2IncomingMessage.md +3 -0
- package/docs/models/As2OutgoingMessage.md +3 -0
- package/docs/models/As2Partner.md +42 -29
- package/docs/models/As2Station.md +3 -0
- package/docs/models/Automation.md +17 -3
- package/docs/models/AutomationLog.md +3 -0
- package/docs/models/AutomationRun.md +3 -0
- package/docs/models/BandwidthSnapshot.md +3 -0
- package/docs/models/Behavior.md +26 -19
- package/docs/models/Bundle.md +4 -5
- package/docs/models/BundleAction.md +4 -0
- package/docs/models/BundleDownload.md +3 -0
- package/docs/models/BundleNotification.md +3 -0
- package/docs/models/BundleRecipient.md +3 -0
- package/docs/models/BundleRegistration.md +3 -0
- package/docs/models/Clickwrap.md +3 -0
- package/docs/models/DnsRecord.md +3 -0
- package/docs/models/EmailIncomingMessage.md +3 -0
- package/docs/models/EmailLog.md +3 -0
- package/docs/models/ExavaultApiRequestLog.md +3 -0
- package/docs/models/ExternalEvent.md +3 -0
- package/docs/models/FileComment.md +3 -0
- package/docs/models/FileMigration.md +1 -1
- package/docs/models/FileMigrationLog.md +3 -0
- package/docs/models/Folder.md +2 -0
- package/docs/models/FormFieldSet.md +3 -0
- package/docs/models/FtpActionLog.md +3 -0
- package/docs/models/GpgKey.md +3 -0
- package/docs/models/Group.md +3 -0
- package/docs/models/GroupUser.md +3 -0
- package/docs/models/History.md +20 -0
- package/docs/models/HistoryExportResult.md +4 -0
- package/docs/models/InboxRecipient.md +3 -0
- package/docs/models/InboxRegistration.md +3 -0
- package/docs/models/InboxUpload.md +3 -0
- package/docs/models/Invoice.md +3 -0
- package/docs/models/IpAddress.md +12 -0
- package/docs/models/Lock.md +6 -3
- package/docs/models/Message.md +3 -0
- package/docs/models/MessageComment.md +3 -0
- package/docs/models/MessageCommentReaction.md +3 -0
- package/docs/models/MessageReaction.md +3 -0
- package/docs/models/Notification.md +4 -1
- package/docs/models/OutboundConnectionLog.md +56 -0
- package/docs/models/Payment.md +3 -0
- package/docs/models/Permission.md +3 -0
- package/docs/models/Priority.md +3 -0
- package/docs/models/Project.md +3 -0
- package/docs/models/PublicHostingRequestLog.md +3 -0
- package/docs/models/PublicKey.md +3 -0
- package/docs/models/RemoteBandwidthSnapshot.md +3 -0
- package/docs/models/RemoteServer.md +3 -0
- package/docs/models/Request.md +6 -0
- package/docs/models/SettingsChange.md +3 -0
- package/docs/models/SftpActionLog.md +3 -0
- package/docs/models/SftpHostKey.md +3 -0
- package/docs/models/ShareGroup.md +3 -0
- package/docs/models/Snapshot.md +3 -0
- package/docs/models/SsoStrategy.md +4 -1
- package/docs/models/SyncLog.md +3 -0
- package/docs/models/UsageDailySnapshot.md +3 -0
- package/docs/models/UsageSnapshot.md +3 -0
- package/docs/models/User.md +6 -3
- package/docs/models/UserCipherUse.md +3 -0
- package/docs/models/UserRequest.md +3 -0
- package/docs/models/WebDavActionLog.md +3 -0
- package/lib/Files.js +1 -1
- package/lib/models/ActionNotificationExportResult.js +19 -5
- package/lib/models/ApiKey.js +34 -6
- package/lib/models/ApiRequestLog.js +17 -3
- package/lib/models/App.js +17 -3
- package/lib/models/As2IncomingMessage.js +19 -5
- package/lib/models/As2OutgoingMessage.js +19 -5
- package/lib/models/As2Partner.js +120 -64
- package/lib/models/As2Station.js +17 -3
- package/lib/models/Automation.js +31 -6
- package/lib/models/AutomationLog.js +17 -3
- package/lib/models/AutomationRun.js +19 -5
- package/lib/models/BandwidthSnapshot.js +17 -3
- package/lib/models/Behavior.js +53 -31
- package/lib/models/Bundle.js +18 -6
- package/lib/models/BundleAction.js +21 -7
- package/lib/models/BundleDownload.js +21 -7
- package/lib/models/BundleNotification.js +17 -3
- package/lib/models/BundleRecipient.js +19 -5
- package/lib/models/BundleRegistration.js +19 -5
- package/lib/models/Clickwrap.js +17 -3
- package/lib/models/DnsRecord.js +17 -3
- package/lib/models/EmailIncomingMessage.js +17 -3
- package/lib/models/EmailLog.js +17 -3
- package/lib/models/ExavaultApiRequestLog.js +17 -3
- package/lib/models/ExternalEvent.js +17 -3
- package/lib/models/FileComment.js +19 -5
- package/lib/models/FileMigration.js +1 -1
- package/lib/models/FileMigrationLog.js +17 -3
- package/lib/models/Folder.js +18 -11
- package/lib/models/FormFieldSet.js +17 -3
- package/lib/models/FtpActionLog.js +17 -3
- package/lib/models/GpgKey.js +17 -3
- package/lib/models/Group.js +19 -5
- package/lib/models/GroupUser.js +19 -5
- package/lib/models/History.js +91 -21
- package/lib/models/HistoryExportResult.js +19 -5
- package/lib/models/InboxRecipient.js +19 -5
- package/lib/models/InboxRegistration.js +19 -5
- package/lib/models/InboxUpload.js +21 -7
- package/lib/models/Invoice.js +17 -3
- package/lib/models/IpAddress.js +68 -12
- package/lib/models/Lock.js +22 -8
- package/lib/models/Message.js +19 -5
- package/lib/models/MessageComment.js +19 -5
- package/lib/models/MessageCommentReaction.js +19 -5
- package/lib/models/MessageReaction.js +19 -5
- package/lib/models/Notification.js +22 -8
- package/lib/models/OutboundConnectionLog.js +164 -0
- package/lib/models/Payment.js +17 -3
- package/lib/models/Permission.js +23 -9
- package/lib/models/Priority.js +19 -5
- package/lib/models/Project.js +17 -3
- package/lib/models/PublicHostingRequestLog.js +17 -3
- package/lib/models/PublicKey.js +17 -3
- package/lib/models/RemoteBandwidthSnapshot.js +17 -3
- package/lib/models/RemoteServer.js +17 -3
- package/lib/models/Request.js +38 -10
- package/lib/models/SettingsChange.js +17 -3
- package/lib/models/SftpActionLog.js +17 -3
- package/lib/models/SftpHostKey.js +17 -3
- package/lib/models/ShareGroup.js +17 -3
- package/lib/models/Snapshot.js +17 -3
- package/lib/models/SsoStrategy.js +18 -4
- package/lib/models/SyncLog.js +17 -3
- package/lib/models/UsageDailySnapshot.js +17 -3
- package/lib/models/UsageSnapshot.js +17 -3
- package/lib/models/User.js +24 -10
- package/lib/models/UserCipherUse.js +17 -3
- package/lib/models/UserRequest.js +17 -3
- package/lib/models/WebDavActionLog.js +17 -3
- package/package.json +1 -1
- package/src/Files.js +1 -1
- package/src/models/ActionNotificationExportResult.js +10 -0
- package/src/models/ApiKey.js +22 -0
- package/src/models/ApiRequestLog.js +10 -0
- package/src/models/App.js +10 -0
- package/src/models/As2IncomingMessage.js +10 -0
- package/src/models/As2OutgoingMessage.js +10 -0
- package/src/models/As2Partner.js +82 -38
- package/src/models/As2Station.js +10 -0
- package/src/models/Automation.js +24 -3
- package/src/models/AutomationLog.js +10 -0
- package/src/models/AutomationRun.js +10 -0
- package/src/models/BandwidthSnapshot.js +10 -0
- package/src/models/Behavior.js +39 -23
- package/src/models/Bundle.js +11 -3
- package/src/models/BundleAction.js +10 -0
- package/src/models/BundleDownload.js +10 -0
- package/src/models/BundleNotification.js +10 -0
- package/src/models/BundleRecipient.js +10 -0
- package/src/models/BundleRegistration.js +10 -0
- package/src/models/Clickwrap.js +10 -0
- package/src/models/DnsRecord.js +10 -0
- package/src/models/EmailIncomingMessage.js +10 -0
- package/src/models/EmailLog.js +10 -0
- package/src/models/ExavaultApiRequestLog.js +10 -0
- package/src/models/ExternalEvent.js +10 -0
- package/src/models/FileComment.js +10 -0
- package/src/models/FileMigration.js +1 -1
- package/src/models/FileMigrationLog.js +10 -0
- package/src/models/Folder.js +5 -0
- package/src/models/FormFieldSet.js +10 -0
- package/src/models/FtpActionLog.js +10 -0
- package/src/models/GpgKey.js +10 -0
- package/src/models/Group.js +10 -0
- package/src/models/GroupUser.js +10 -0
- package/src/models/History.js +50 -0
- package/src/models/HistoryExportResult.js +10 -0
- package/src/models/InboxRecipient.js +10 -0
- package/src/models/InboxRegistration.js +10 -0
- package/src/models/InboxUpload.js +10 -0
- package/src/models/Invoice.js +10 -0
- package/src/models/IpAddress.js +40 -0
- package/src/models/Lock.js +13 -3
- package/src/models/Message.js +10 -0
- package/src/models/MessageComment.js +10 -0
- package/src/models/MessageCommentReaction.js +10 -0
- package/src/models/MessageReaction.js +10 -0
- package/src/models/Notification.js +11 -1
- package/src/models/OutboundConnectionLog.js +106 -0
- package/src/models/Payment.js +10 -0
- package/src/models/Permission.js +10 -0
- package/src/models/Priority.js +10 -0
- package/src/models/Project.js +10 -0
- package/src/models/PublicHostingRequestLog.js +10 -0
- package/src/models/PublicKey.js +10 -0
- package/src/models/RemoteBandwidthSnapshot.js +10 -0
- package/src/models/RemoteServer.js +10 -0
- package/src/models/Request.js +20 -0
- package/src/models/SettingsChange.js +10 -0
- package/src/models/SftpActionLog.js +10 -0
- package/src/models/SftpHostKey.js +10 -0
- package/src/models/ShareGroup.js +10 -0
- package/src/models/Snapshot.js +10 -0
- package/src/models/SsoStrategy.js +11 -1
- package/src/models/SyncLog.js +10 -0
- package/src/models/UsageDailySnapshot.js +10 -0
- package/src/models/UsageSnapshot.js +10 -0
- package/src/models/User.js +13 -3
- package/src/models/UserCipherUse.js +10 -0
- package/src/models/UserRequest.js +10 -0
- package/src/models/WebDavActionLog.js +10 -0
package/src/models/GpgKey.js
CHANGED
@@ -169,6 +169,8 @@ class GpgKey {
|
|
169
169
|
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
170
170
|
// 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.
|
171
171
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
172
|
+
// action - string
|
173
|
+
// page - int64
|
172
174
|
// 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 `expires_at`.
|
173
175
|
static list = async (params = {}, options = {}) => {
|
174
176
|
if (params.user_id && !isInt(params.user_id)) {
|
@@ -183,6 +185,14 @@ class GpgKey {
|
|
183
185
|
throw new errors.InvalidParameterError(`Bad parameter: per_page must be of type Int, received ${getType(params.per_page)}`)
|
184
186
|
}
|
185
187
|
|
188
|
+
if (params.action && !isString(params.action)) {
|
189
|
+
throw new errors.InvalidParameterError(`Bad parameter: action must be of type String, received ${getType(params.action)}`)
|
190
|
+
}
|
191
|
+
|
192
|
+
if (params.page && !isInt(params.page)) {
|
193
|
+
throw new errors.InvalidParameterError(`Bad parameter: page must be of type Int, received ${getType(params.page)}`)
|
194
|
+
}
|
195
|
+
|
186
196
|
const response = await Api.sendRequest('/gpg_keys', 'GET', params, options)
|
187
197
|
|
188
198
|
return response?.data?.map(obj => new GpgKey(obj, options)) || []
|
package/src/models/Group.js
CHANGED
@@ -205,6 +205,8 @@ class Group {
|
|
205
205
|
// Parameters:
|
206
206
|
// 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.
|
207
207
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
208
|
+
// action - string
|
209
|
+
// page - int64
|
208
210
|
// 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`.
|
209
211
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `name`.
|
210
212
|
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `name`.
|
@@ -218,6 +220,14 @@ class Group {
|
|
218
220
|
throw new errors.InvalidParameterError(`Bad parameter: per_page must be of type Int, received ${getType(params.per_page)}`)
|
219
221
|
}
|
220
222
|
|
223
|
+
if (params.action && !isString(params.action)) {
|
224
|
+
throw new errors.InvalidParameterError(`Bad parameter: action must be of type String, received ${getType(params.action)}`)
|
225
|
+
}
|
226
|
+
|
227
|
+
if (params.page && !isInt(params.page)) {
|
228
|
+
throw new errors.InvalidParameterError(`Bad parameter: page must be of type Int, received ${getType(params.page)}`)
|
229
|
+
}
|
230
|
+
|
221
231
|
if (params.ids && !isString(params.ids)) {
|
222
232
|
throw new errors.InvalidParameterError(`Bad parameter: ids must be of type String, received ${getType(params.ids)}`)
|
223
233
|
}
|
package/src/models/GroupUser.js
CHANGED
@@ -196,6 +196,8 @@ class GroupUser {
|
|
196
196
|
// user_id - int64 - User ID. If provided, will return group_users of this user.
|
197
197
|
// 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.
|
198
198
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
199
|
+
// action - string
|
200
|
+
// page - int64
|
199
201
|
// group_id - int64 - Group ID. If provided, will return group_users of this group.
|
200
202
|
static list = async (params = {}, options = {}) => {
|
201
203
|
if (params.user_id && !isInt(params.user_id)) {
|
@@ -210,6 +212,14 @@ class GroupUser {
|
|
210
212
|
throw new errors.InvalidParameterError(`Bad parameter: per_page must be of type Int, received ${getType(params.per_page)}`)
|
211
213
|
}
|
212
214
|
|
215
|
+
if (params.action && !isString(params.action)) {
|
216
|
+
throw new errors.InvalidParameterError(`Bad parameter: action must be of type String, received ${getType(params.action)}`)
|
217
|
+
}
|
218
|
+
|
219
|
+
if (params.page && !isInt(params.page)) {
|
220
|
+
throw new errors.InvalidParameterError(`Bad parameter: page must be of type Int, received ${getType(params.page)}`)
|
221
|
+
}
|
222
|
+
|
213
223
|
if (params.group_id && !isInt(params.group_id)) {
|
214
224
|
throw new errors.InvalidParameterError(`Bad parameter: group_id must be of type Int, received ${getType(params.group_id)}`)
|
215
225
|
}
|
package/src/models/History.js
CHANGED
@@ -73,6 +73,8 @@ class History {
|
|
73
73
|
// display - string - Display format. Leave blank or set to `full` or `parent`.
|
74
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.
|
75
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
|
76
78
|
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[user_id]=desc`). Valid fields are `user_id` and `created_at`.
|
77
79
|
// path (required) - string - Path to operate on.
|
78
80
|
static listForFile = async (path, params = {}, options = {}) => {
|
@@ -106,6 +108,14 @@ class History {
|
|
106
108
|
throw new errors.InvalidParameterError(`Bad parameter: per_page must be of type Int, received ${getType(params.per_page)}`)
|
107
109
|
}
|
108
110
|
|
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
|
+
|
109
119
|
if (params.path && !isString(params.path)) {
|
110
120
|
throw new errors.InvalidParameterError(`Bad parameter: path must be of type String, received ${getType(params.path)}`)
|
111
121
|
}
|
@@ -122,6 +132,8 @@ class History {
|
|
122
132
|
// display - string - Display format. Leave blank or set to `full` or `parent`.
|
123
133
|
// cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
124
134
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
135
|
+
// action - string
|
136
|
+
// page - int64
|
125
137
|
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[user_id]=desc`). Valid fields are `user_id` and `created_at`.
|
126
138
|
// path (required) - string - Path to operate on.
|
127
139
|
static listForFolder = async (path, params = {}, options = {}) => {
|
@@ -155,6 +167,14 @@ class History {
|
|
155
167
|
throw new errors.InvalidParameterError(`Bad parameter: per_page must be of type Int, received ${getType(params.per_page)}`)
|
156
168
|
}
|
157
169
|
|
170
|
+
if (params.action && !isString(params.action)) {
|
171
|
+
throw new errors.InvalidParameterError(`Bad parameter: action must be of type String, received ${getType(params.action)}`)
|
172
|
+
}
|
173
|
+
|
174
|
+
if (params.page && !isInt(params.page)) {
|
175
|
+
throw new errors.InvalidParameterError(`Bad parameter: page must be of type Int, received ${getType(params.page)}`)
|
176
|
+
}
|
177
|
+
|
158
178
|
if (params.path && !isString(params.path)) {
|
159
179
|
throw new errors.InvalidParameterError(`Bad parameter: path must be of type String, received ${getType(params.path)}`)
|
160
180
|
}
|
@@ -171,6 +191,8 @@ class History {
|
|
171
191
|
// display - string - Display format. Leave blank or set to `full` or `parent`.
|
172
192
|
// 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.
|
173
193
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
194
|
+
// action - string
|
195
|
+
// page - int64
|
174
196
|
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[user_id]=desc`). Valid fields are `user_id` and `created_at`.
|
175
197
|
// user_id (required) - int64 - User ID.
|
176
198
|
static listForUser = async (userId, params = {}, options = {}) => {
|
@@ -204,6 +226,14 @@ class History {
|
|
204
226
|
throw new errors.InvalidParameterError(`Bad parameter: per_page must be of type Int, received ${getType(params.per_page)}`)
|
205
227
|
}
|
206
228
|
|
229
|
+
if (params.action && !isString(params.action)) {
|
230
|
+
throw new errors.InvalidParameterError(`Bad parameter: action must be of type String, received ${getType(params.action)}`)
|
231
|
+
}
|
232
|
+
|
233
|
+
if (params.page && !isInt(params.page)) {
|
234
|
+
throw new errors.InvalidParameterError(`Bad parameter: page must be of type Int, received ${getType(params.page)}`)
|
235
|
+
}
|
236
|
+
|
207
237
|
if (params.user_id && !isInt(params.user_id)) {
|
208
238
|
throw new errors.InvalidParameterError(`Bad parameter: user_id must be of type Int, received ${getType(params.user_id)}`)
|
209
239
|
}
|
@@ -220,6 +250,8 @@ class History {
|
|
220
250
|
// display - string - Display format. Leave blank or set to `full` or `parent`.
|
221
251
|
// 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.
|
222
252
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
253
|
+
// action - string
|
254
|
+
// page - int64
|
223
255
|
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[user_id]=desc`). Valid fields are `user_id` and `created_at`.
|
224
256
|
static listLogins = async (params = {}, options = {}) => {
|
225
257
|
if (params.start_at && !isString(params.start_at)) {
|
@@ -242,6 +274,14 @@ class History {
|
|
242
274
|
throw new errors.InvalidParameterError(`Bad parameter: per_page must be of type Int, received ${getType(params.per_page)}`)
|
243
275
|
}
|
244
276
|
|
277
|
+
if (params.action && !isString(params.action)) {
|
278
|
+
throw new errors.InvalidParameterError(`Bad parameter: action must be of type String, received ${getType(params.action)}`)
|
279
|
+
}
|
280
|
+
|
281
|
+
if (params.page && !isInt(params.page)) {
|
282
|
+
throw new errors.InvalidParameterError(`Bad parameter: page must be of type Int, received ${getType(params.page)}`)
|
283
|
+
}
|
284
|
+
|
245
285
|
const response = await Api.sendRequest('/history/login', 'GET', params, options)
|
246
286
|
|
247
287
|
const Action = require('./Action.js').default
|
@@ -254,6 +294,8 @@ class History {
|
|
254
294
|
// display - string - Display format. Leave blank or set to `full` or `parent`.
|
255
295
|
// 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
296
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
297
|
+
// action - string
|
298
|
+
// page - int64
|
257
299
|
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[path]=desc`). Valid fields are `path`, `folder`, `user_id` or `created_at`.
|
258
300
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `user_id`, `folder` or `path`.
|
259
301
|
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `path`.
|
@@ -278,6 +320,14 @@ class History {
|
|
278
320
|
throw new errors.InvalidParameterError(`Bad parameter: per_page must be of type Int, received ${getType(params.per_page)}`)
|
279
321
|
}
|
280
322
|
|
323
|
+
if (params.action && !isString(params.action)) {
|
324
|
+
throw new errors.InvalidParameterError(`Bad parameter: action must be of type String, received ${getType(params.action)}`)
|
325
|
+
}
|
326
|
+
|
327
|
+
if (params.page && !isInt(params.page)) {
|
328
|
+
throw new errors.InvalidParameterError(`Bad parameter: page must be of type Int, received ${getType(params.page)}`)
|
329
|
+
}
|
330
|
+
|
281
331
|
const response = await Api.sendRequest('/history', 'GET', params, options)
|
282
332
|
|
283
333
|
const Action = require('./Action.js').default
|
@@ -107,6 +107,8 @@ class HistoryExportResult {
|
|
107
107
|
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
108
108
|
// 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.
|
109
109
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
110
|
+
// action - string
|
111
|
+
// page - int64
|
110
112
|
// history_export_id (required) - int64 - ID of the associated history export.
|
111
113
|
static list = async (params = {}, options = {}) => {
|
112
114
|
if (!params.history_export_id) {
|
@@ -125,6 +127,14 @@ class HistoryExportResult {
|
|
125
127
|
throw new errors.InvalidParameterError(`Bad parameter: per_page must be of type Int, received ${getType(params.per_page)}`)
|
126
128
|
}
|
127
129
|
|
130
|
+
if (params.action && !isString(params.action)) {
|
131
|
+
throw new errors.InvalidParameterError(`Bad parameter: action must be of type String, received ${getType(params.action)}`)
|
132
|
+
}
|
133
|
+
|
134
|
+
if (params.page && !isInt(params.page)) {
|
135
|
+
throw new errors.InvalidParameterError(`Bad parameter: page must be of type Int, received ${getType(params.page)}`)
|
136
|
+
}
|
137
|
+
|
128
138
|
if (params.history_export_id && !isInt(params.history_export_id)) {
|
129
139
|
throw new errors.InvalidParameterError(`Bad parameter: history_export_id must be of type Int, received ${getType(params.history_export_id)}`)
|
130
140
|
}
|
@@ -90,6 +90,8 @@ class InboxRecipient {
|
|
90
90
|
// Parameters:
|
91
91
|
// cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
92
92
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
93
|
+
// action - string
|
94
|
+
// page - int64
|
93
95
|
// 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`.
|
94
96
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `has_registrations`.
|
95
97
|
// inbox_id (required) - int64 - List recipients for the inbox with this ID.
|
@@ -106,6 +108,14 @@ class InboxRecipient {
|
|
106
108
|
throw new errors.InvalidParameterError(`Bad parameter: per_page must be of type Int, received ${getType(params.per_page)}`)
|
107
109
|
}
|
108
110
|
|
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
|
+
|
109
119
|
if (params.inbox_id && !isInt(params.inbox_id)) {
|
110
120
|
throw new errors.InvalidParameterError(`Bad parameter: inbox_id must be of type Int, received ${getType(params.inbox_id)}`)
|
111
121
|
}
|
@@ -67,6 +67,8 @@ class InboxRegistration {
|
|
67
67
|
// Parameters:
|
68
68
|
// 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.
|
69
69
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
70
|
+
// action - string
|
71
|
+
// page - int64
|
70
72
|
// folder_behavior_id - int64 - ID of the associated Inbox.
|
71
73
|
static list = async (params = {}, options = {}) => {
|
72
74
|
if (params.cursor && !isString(params.cursor)) {
|
@@ -77,6 +79,14 @@ class InboxRegistration {
|
|
77
79
|
throw new errors.InvalidParameterError(`Bad parameter: per_page must be of type Int, received ${getType(params.per_page)}`)
|
78
80
|
}
|
79
81
|
|
82
|
+
if (params.action && !isString(params.action)) {
|
83
|
+
throw new errors.InvalidParameterError(`Bad parameter: action must be of type String, received ${getType(params.action)}`)
|
84
|
+
}
|
85
|
+
|
86
|
+
if (params.page && !isInt(params.page)) {
|
87
|
+
throw new errors.InvalidParameterError(`Bad parameter: page must be of type Int, received ${getType(params.page)}`)
|
88
|
+
}
|
89
|
+
|
80
90
|
if (params.folder_behavior_id && !isInt(params.folder_behavior_id)) {
|
81
91
|
throw new errors.InvalidParameterError(`Bad parameter: folder_behavior_id must be of type Int, received ${getType(params.folder_behavior_id)}`)
|
82
92
|
}
|
@@ -40,6 +40,8 @@ class InboxUpload {
|
|
40
40
|
// Parameters:
|
41
41
|
// 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.
|
42
42
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
43
|
+
// action - string
|
44
|
+
// page - int64
|
43
45
|
// 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`.
|
44
46
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
|
45
47
|
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
|
@@ -57,6 +59,14 @@ class InboxUpload {
|
|
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.inbox_registration_id && !isInt(params.inbox_registration_id)) {
|
61
71
|
throw new errors.InvalidParameterError(`Bad parameter: inbox_registration_id must be of type Int, received ${getType(params.inbox_registration_id)}`)
|
62
72
|
}
|
package/src/models/Invoice.js
CHANGED
@@ -70,6 +70,8 @@ class Invoice {
|
|
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 Invoice {
|
|
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('/invoices', 'GET', params, options)
|
83
93
|
|
84
94
|
const AccountLineItem = require('./AccountLineItem.js').default
|
package/src/models/IpAddress.js
CHANGED
@@ -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
|
package/src/models/Lock.js
CHANGED
@@ -42,7 +42,7 @@ class Lock {
|
|
42
42
|
this.attributes.timeout = value
|
43
43
|
}
|
44
44
|
|
45
|
-
// string
|
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
|
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
|
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
|
}
|
package/src/models/Message.js
CHANGED
@@ -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 -
|
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
|
}
|