files.com 1.0.248 → 1.0.249

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) hide show
  1. package/_VERSION +1 -1
  2. package/lib/models/AccountLineItem.js +14 -0
  3. package/lib/models/Action.js +13 -0
  4. package/lib/models/ActionNotificationExport.js +27 -0
  5. package/lib/models/ActionNotificationExportResult.js +15 -0
  6. package/lib/models/ActionWebhookFailure.js +1 -0
  7. package/lib/models/ApiKey.js +42 -0
  8. package/lib/models/App.js +26 -0
  9. package/lib/models/As2IncomingMessage.js +46 -0
  10. package/lib/models/As2OutgoingMessage.js +42 -0
  11. package/lib/models/As2Partner.js +29 -0
  12. package/lib/models/As2Station.js +31 -0
  13. package/lib/models/Auto.js +1 -0
  14. package/lib/models/Automation.js +72 -0
  15. package/lib/models/AutomationRun.js +20 -0
  16. package/lib/models/BandwidthSnapshot.js +19 -0
  17. package/lib/models/Behavior.js +57 -0
  18. package/lib/models/Bundle.js +98 -0
  19. package/lib/models/BundleDownload.js +16 -0
  20. package/lib/models/BundleNotification.js +20 -0
  21. package/lib/models/BundleRecipient.js +28 -0
  22. package/lib/models/BundleRegistration.js +18 -0
  23. package/lib/models/Clickwrap.js +23 -0
  24. package/lib/models/DnsRecord.js +7 -0
  25. package/lib/models/Errors.js +2 -0
  26. package/lib/models/ExternalEvent.js +26 -0
  27. package/lib/models/File.js +88 -0
  28. package/lib/models/FileAction.js +2 -0
  29. package/lib/models/FileComment.js +13 -0
  30. package/lib/models/FileCommentReaction.js +8 -0
  31. package/lib/models/FileMigration.js +11 -0
  32. package/lib/models/FileUploadPart.js +15 -0
  33. package/lib/models/Folder.js +33 -0
  34. package/lib/models/FormField.js +8 -0
  35. package/lib/models/FormFieldSet.js +27 -0
  36. package/lib/models/Group.js +29 -0
  37. package/lib/models/GroupUser.js +22 -0
  38. package/lib/models/History.js +57 -0
  39. package/lib/models/HistoryExport.js +51 -0
  40. package/lib/models/HistoryExportResult.js +29 -0
  41. package/lib/models/Image.js +2 -0
  42. package/lib/models/InboxRecipient.js +28 -0
  43. package/lib/models/InboxRegistration.js +15 -0
  44. package/lib/models/InboxUpload.js +15 -0
  45. package/lib/models/Invoice.js +19 -0
  46. package/lib/models/InvoiceLineItem.js +9 -0
  47. package/lib/models/IpAddress.js +13 -0
  48. package/lib/models/Lock.js +25 -0
  49. package/lib/models/Message.js +22 -0
  50. package/lib/models/MessageComment.js +16 -0
  51. package/lib/models/MessageCommentReaction.js +13 -0
  52. package/lib/models/MessageReaction.js +13 -0
  53. package/lib/models/Notification.js +70 -0
  54. package/lib/models/Payment.js +19 -0
  55. package/lib/models/PaymentLineItem.js +4 -0
  56. package/lib/models/Permission.js +29 -0
  57. package/lib/models/Preview.js +5 -0
  58. package/lib/models/Priority.js +6 -0
  59. package/lib/models/Project.js +11 -0
  60. package/lib/models/PublicIpAddress.js +4 -0
  61. package/lib/models/PublicKey.js +18 -0
  62. package/lib/models/RemoteBandwidthSnapshot.js +15 -0
  63. package/lib/models/RemoteServer.js +194 -0
  64. package/lib/models/RemoteServerConfigurationFile.js +12 -0
  65. package/lib/models/Request.js +25 -0
  66. package/lib/models/Session.js +13 -0
  67. package/lib/models/SettingsChange.js +15 -0
  68. package/lib/models/SftpHostKey.js +16 -0
  69. package/lib/models/Site.js +276 -0
  70. package/lib/models/SsoStrategy.js +49 -0
  71. package/lib/models/Status.js +7 -0
  72. package/lib/models/Style.js +9 -0
  73. package/lib/models/UsageDailySnapshot.js +21 -0
  74. package/lib/models/UsageSnapshot.js +18 -0
  75. package/lib/models/User.js +183 -0
  76. package/lib/models/UserCipherUse.js +10 -0
  77. package/lib/models/UserRequest.js +13 -0
  78. package/lib/models/WebhookTest.js +24 -0
  79. package/package.json +1 -1
@@ -29,39 +29,51 @@ var RemoteServerConfigurationFile = /*#__PURE__*/(0, _createClass2.default)(func
29
29
  (0, _defineProperty2.default)(this, "isLoaded", function () {
30
30
  return !!_this.attributes.id;
31
31
  });
32
+ // int64 # Agent ID
32
33
  (0, _defineProperty2.default)(this, "getId", function () {
33
34
  return _this.attributes.id;
34
35
  });
36
+ // string #
35
37
  (0, _defineProperty2.default)(this, "getPermissionSet", function () {
36
38
  return _this.attributes.permission_set;
37
39
  });
40
+ // string # Files Agent API Token
38
41
  (0, _defineProperty2.default)(this, "getApiToken", function () {
39
42
  return _this.attributes.api_token;
40
43
  });
44
+ // string # Agent local root path
41
45
  (0, _defineProperty2.default)(this, "getRoot", function () {
42
46
  return _this.attributes.root;
43
47
  });
48
+ // int64 # Incoming port for files agent connections
44
49
  (0, _defineProperty2.default)(this, "getPort", function () {
45
50
  return _this.attributes.port;
46
51
  });
52
+ // string
47
53
  (0, _defineProperty2.default)(this, "getHostname", function () {
48
54
  return _this.attributes.hostname;
49
55
  });
56
+ // string # public key
50
57
  (0, _defineProperty2.default)(this, "getPublicKey", function () {
51
58
  return _this.attributes.public_key;
52
59
  });
60
+ // string # private key
53
61
  (0, _defineProperty2.default)(this, "getPrivateKey", function () {
54
62
  return _this.attributes.private_key;
55
63
  });
64
+ // string # either running or shutdown
56
65
  (0, _defineProperty2.default)(this, "getStatus", function () {
57
66
  return _this.attributes.status;
58
67
  });
68
+ // string # agent config version
59
69
  (0, _defineProperty2.default)(this, "getConfigVersion", function () {
60
70
  return _this.attributes.config_version;
61
71
  });
72
+ // string
62
73
  (0, _defineProperty2.default)(this, "getServerHostKey", function () {
63
74
  return _this.attributes.server_host_key;
64
75
  });
76
+ // string
65
77
  (0, _defineProperty2.default)(this, "getSubdomain", function () {
66
78
  return _this.attributes.subdomain;
67
79
  });
@@ -31,48 +31,56 @@ var Request = /*#__PURE__*/(0, _createClass2.default)(function Request() {
31
31
  (0, _defineProperty2.default)(this, "isLoaded", function () {
32
32
  return !!_this.attributes.id;
33
33
  });
34
+ // int64 # Request ID
34
35
  (0, _defineProperty2.default)(this, "getId", function () {
35
36
  return _this.attributes.id;
36
37
  });
37
38
  (0, _defineProperty2.default)(this, "setId", function (value) {
38
39
  _this.attributes.id = value;
39
40
  });
41
+ // string # Folder path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
40
42
  (0, _defineProperty2.default)(this, "getPath", function () {
41
43
  return _this.attributes.path;
42
44
  });
43
45
  (0, _defineProperty2.default)(this, "setPath", function (value) {
44
46
  _this.attributes.path = value;
45
47
  });
48
+ // string # Source filename, if applicable
46
49
  (0, _defineProperty2.default)(this, "getSource", function () {
47
50
  return _this.attributes.source;
48
51
  });
49
52
  (0, _defineProperty2.default)(this, "setSource", function (value) {
50
53
  _this.attributes.source = value;
51
54
  });
55
+ // string # Destination filename
52
56
  (0, _defineProperty2.default)(this, "getDestination", function () {
53
57
  return _this.attributes.destination;
54
58
  });
55
59
  (0, _defineProperty2.default)(this, "setDestination", function (value) {
56
60
  _this.attributes.destination = value;
57
61
  });
62
+ // string # ID of automation that created request
58
63
  (0, _defineProperty2.default)(this, "getAutomationId", function () {
59
64
  return _this.attributes.automation_id;
60
65
  });
61
66
  (0, _defineProperty2.default)(this, "setAutomationId", function (value) {
62
67
  _this.attributes.automation_id = value;
63
68
  });
69
+ // string # User making the request (if applicable)
64
70
  (0, _defineProperty2.default)(this, "getUserDisplayName", function () {
65
71
  return _this.attributes.user_display_name;
66
72
  });
67
73
  (0, _defineProperty2.default)(this, "setUserDisplayName", function (value) {
68
74
  _this.attributes.user_display_name = value;
69
75
  });
76
+ // string # A list of user IDs to request the file from. If sent as a string, it should be comma-delimited.
70
77
  (0, _defineProperty2.default)(this, "getUserIds", function () {
71
78
  return _this.attributes.user_ids;
72
79
  });
73
80
  (0, _defineProperty2.default)(this, "setUserIds", function (value) {
74
81
  _this.attributes.user_ids = value;
75
82
  });
83
+ // string # A list of group IDs to request the file from. If sent as a string, it should be comma-delimited.
76
84
  (0, _defineProperty2.default)(this, "getGroupIds", function () {
77
85
  return _this.attributes.group_ids;
78
86
  });
@@ -157,6 +165,12 @@ var Request = /*#__PURE__*/(0, _createClass2.default)(function Request() {
157
165
  });
158
166
  this.options = _objectSpread({}, options);
159
167
  });
168
+ // Parameters:
169
+ // cursor - string - Used for pagination. Send a cursor value to resume an existing list from the point at which you left off. Get a cursor from an existing list via either the X-Files-Cursor-Next header or the X-Files-Cursor-Prev header.
170
+ // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
171
+ // sort_by - object - If set, sort records by the specified field in either 'asc' or 'desc' direction (e.g. sort_by[last_login_at]=desc). Valid fields are `destination`.
172
+ // mine - boolean - Only show requests of the current user? (Defaults to true if current user is not a site admin.)
173
+ // path - string - Path to show requests for. If omitted, shows all paths. Send `/` to represent the root directory.
160
174
  (0, _defineProperty2.default)(Request, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
161
175
  var _response$data;
162
176
  var params,
@@ -204,6 +218,12 @@ var Request = /*#__PURE__*/(0, _createClass2.default)(function Request() {
204
218
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
205
219
  return Request.list(params, options);
206
220
  });
221
+ // Parameters:
222
+ // cursor - string - Used for pagination. Send a cursor value to resume an existing list from the point at which you left off. Get a cursor from an existing list via either the X-Files-Cursor-Next header or the X-Files-Cursor-Prev header.
223
+ // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
224
+ // sort_by - object - If set, sort records by the specified field in either 'asc' or 'desc' direction (e.g. sort_by[last_login_at]=desc). Valid fields are `destination`.
225
+ // mine - boolean - Only show requests of the current user? (Defaults to true if current user is not a site admin.)
226
+ // path (required) - string - Path to show requests for. If omitted, shows all paths. Send `/` to represent the root directory.
207
227
  (0, _defineProperty2.default)(Request, "getFolder", /*#__PURE__*/function () {
208
228
  var _ref5 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(path) {
209
229
  var _response$data2;
@@ -264,6 +284,11 @@ var Request = /*#__PURE__*/(0, _createClass2.default)(function Request() {
264
284
  return _ref5.apply(this, arguments);
265
285
  };
266
286
  }());
287
+ // Parameters:
288
+ // path (required) - string - Folder path on which to request the file.
289
+ // destination (required) - string - Destination filename (without extension) to request.
290
+ // user_ids - string - A list of user IDs to request the file from. If sent as a string, it should be comma-delimited.
291
+ // group_ids - string - A list of group IDs to request the file from. If sent as a string, it should be comma-delimited.
267
292
  (0, _defineProperty2.default)(Request, "create", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4() {
268
293
  var params,
269
294
  options,
@@ -31,48 +31,56 @@ var Session = /*#__PURE__*/(0, _createClass2.default)(function Session() {
31
31
  (0, _defineProperty2.default)(this, "isLoaded", function () {
32
32
  return !!_this.attributes.id;
33
33
  });
34
+ // string # Session ID
34
35
  (0, _defineProperty2.default)(this, "getId", function () {
35
36
  return _this.attributes.id;
36
37
  });
37
38
  (0, _defineProperty2.default)(this, "setId", function (value) {
38
39
  _this.attributes.id = value;
39
40
  });
41
+ // string # Session language
40
42
  (0, _defineProperty2.default)(this, "getLanguage", function () {
41
43
  return _this.attributes.language;
42
44
  });
43
45
  (0, _defineProperty2.default)(this, "setLanguage", function (value) {
44
46
  _this.attributes.language = value;
45
47
  });
48
+ // boolean # Is this session read only?
46
49
  (0, _defineProperty2.default)(this, "getReadOnly", function () {
47
50
  return _this.attributes.read_only;
48
51
  });
49
52
  (0, _defineProperty2.default)(this, "setReadOnly", function (value) {
50
53
  _this.attributes.read_only = value;
51
54
  });
55
+ // boolean # Are insecure SFTP ciphers allowed for this user? (If this is set to true, the site administrator has signaled that it is ok to use less secure SSH ciphers for this user.)
52
56
  (0, _defineProperty2.default)(this, "getSftpInsecureCiphers", function () {
53
57
  return _this.attributes.sftp_insecure_ciphers;
54
58
  });
55
59
  (0, _defineProperty2.default)(this, "setSftpInsecureCiphers", function (value) {
56
60
  _this.attributes.sftp_insecure_ciphers = value;
57
61
  });
62
+ // string # Username to sign in as
58
63
  (0, _defineProperty2.default)(this, "getUsername", function () {
59
64
  return _this.attributes.username;
60
65
  });
61
66
  (0, _defineProperty2.default)(this, "setUsername", function (value) {
62
67
  _this.attributes.username = value;
63
68
  });
69
+ // string # Password for sign in
64
70
  (0, _defineProperty2.default)(this, "getPassword", function () {
65
71
  return _this.attributes.password;
66
72
  });
67
73
  (0, _defineProperty2.default)(this, "setPassword", function (value) {
68
74
  _this.attributes.password = value;
69
75
  });
76
+ // string # If this user has a 2FA device, provide its OTP or code here.
70
77
  (0, _defineProperty2.default)(this, "getOtp", function () {
71
78
  return _this.attributes.otp;
72
79
  });
73
80
  (0, _defineProperty2.default)(this, "setOtp", function (value) {
74
81
  _this.attributes.otp = value;
75
82
  });
83
+ // string # Identifier for a partially-completed login
76
84
  (0, _defineProperty2.default)(this, "getPartialSessionId", function () {
77
85
  return _this.attributes.partial_session_id;
78
86
  });
@@ -101,6 +109,11 @@ var Session = /*#__PURE__*/(0, _createClass2.default)(function Session() {
101
109
  });
102
110
  this.options = _objectSpread({}, options);
103
111
  });
112
+ // Parameters:
113
+ // username - string - Username to sign in as
114
+ // password - string - Password for sign in
115
+ // otp - string - If this user has a 2FA device, provide its OTP or code here.
116
+ // partial_session_id - string - Identifier for a partially-completed login
104
117
  (0, _defineProperty2.default)(Session, "create", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
105
118
  var params,
106
119
  options,
@@ -31,18 +31,23 @@ var SettingsChange = /*#__PURE__*/(0, _createClass2.default)(function SettingsCh
31
31
  (0, _defineProperty2.default)(this, "isLoaded", function () {
32
32
  return !!_this.attributes.id;
33
33
  });
34
+ // array # Markdown-formatted change messages.
34
35
  (0, _defineProperty2.default)(this, "getChanges", function () {
35
36
  return _this.attributes.changes;
36
37
  });
38
+ // date-time # The time this change was made
37
39
  (0, _defineProperty2.default)(this, "getCreatedAt", function () {
38
40
  return _this.attributes.created_at;
39
41
  });
42
+ // int64 # The user id responsible for this change
40
43
  (0, _defineProperty2.default)(this, "getUserId", function () {
41
44
  return _this.attributes.user_id;
42
45
  });
46
+ // boolean # true if this change was performed by Files.com support.
43
47
  (0, _defineProperty2.default)(this, "getUserIsFilesSupport", function () {
44
48
  return _this.attributes.user_is_files_support;
45
49
  });
50
+ // string # The username of the user responsible for this change
46
51
  (0, _defineProperty2.default)(this, "getUsername", function () {
47
52
  return _this.attributes.username;
48
53
  });
@@ -59,6 +64,16 @@ var SettingsChange = /*#__PURE__*/(0, _createClass2.default)(function SettingsCh
59
64
  });
60
65
  this.options = _objectSpread({}, options);
61
66
  });
67
+ // Parameters:
68
+ // cursor - string - Used for pagination. Send a cursor value to resume an existing list from the point at which you left off. Get a cursor from an existing list via either the X-Files-Cursor-Next header or the X-Files-Cursor-Prev header.
69
+ // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
70
+ // sort_by - object - If set, sort records by the specified field in either 'asc' or 'desc' direction (e.g. sort_by[last_login_at]=desc). Valid fields are `api_key_id`, `created_at` or `user_id`.
71
+ // 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`.
72
+ // filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `api_key_id` and `user_id`.
73
+ // filter_gteq - object - If set, return records where the specified field is greater than or equal to the supplied value. Valid fields are `api_key_id` and `user_id`.
74
+ // filter_like - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `api_key_id` and `user_id`.
75
+ // filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `api_key_id` and `user_id`.
76
+ // filter_lteq - object - If set, return records where the specified field is less than or equal to the supplied value. Valid fields are `api_key_id` and `user_id`.
62
77
  (0, _defineProperty2.default)(SettingsChange, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
63
78
  var _response$data;
64
79
  var params,
@@ -31,36 +31,44 @@ var SftpHostKey = /*#__PURE__*/(0, _createClass2.default)(function SftpHostKey()
31
31
  (0, _defineProperty2.default)(this, "isLoaded", function () {
32
32
  return !!_this.attributes.id;
33
33
  });
34
+ // int64 # Sftp Host Key ID
34
35
  (0, _defineProperty2.default)(this, "getId", function () {
35
36
  return _this.attributes.id;
36
37
  });
37
38
  (0, _defineProperty2.default)(this, "setId", function (value) {
38
39
  _this.attributes.id = value;
39
40
  });
41
+ // string # The friendly name of this SFTP Host Key.
40
42
  (0, _defineProperty2.default)(this, "getName", function () {
41
43
  return _this.attributes.name;
42
44
  });
43
45
  (0, _defineProperty2.default)(this, "setName", function (value) {
44
46
  _this.attributes.name = value;
45
47
  });
48
+ // string # MD5 Fingerpint of the public key
46
49
  (0, _defineProperty2.default)(this, "getFingerprintMd5", function () {
47
50
  return _this.attributes.fingerprint_md5;
48
51
  });
49
52
  (0, _defineProperty2.default)(this, "setFingerprintMd5", function (value) {
50
53
  _this.attributes.fingerprint_md5 = value;
51
54
  });
55
+ // string # SHA256 Fingerpint of the public key
52
56
  (0, _defineProperty2.default)(this, "getFingerprintSha256", function () {
53
57
  return _this.attributes.fingerprint_sha256;
54
58
  });
55
59
  (0, _defineProperty2.default)(this, "setFingerprintSha256", function (value) {
56
60
  _this.attributes.fingerprint_sha256 = value;
57
61
  });
62
+ // string # The private key data.
58
63
  (0, _defineProperty2.default)(this, "getPrivateKey", function () {
59
64
  return _this.attributes.private_key;
60
65
  });
61
66
  (0, _defineProperty2.default)(this, "setPrivateKey", function (value) {
62
67
  _this.attributes.private_key = value;
63
68
  });
69
+ // Parameters:
70
+ // name - string - The friendly name of this SFTP Host Key.
71
+ // private_key - string - The private key data.
64
72
  (0, _defineProperty2.default)(this, "update", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
65
73
  var params,
66
74
  response,
@@ -203,6 +211,9 @@ var SftpHostKey = /*#__PURE__*/(0, _createClass2.default)(function SftpHostKey()
203
211
  });
204
212
  this.options = _objectSpread({}, options);
205
213
  });
214
+ // Parameters:
215
+ // cursor - string - Used for pagination. Send a cursor value to resume an existing list from the point at which you left off. Get a cursor from an existing list via either the X-Files-Cursor-Next header or the X-Files-Cursor-Prev header.
216
+ // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
206
217
  (0, _defineProperty2.default)(SftpHostKey, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
207
218
  var _response$data;
208
219
  var params,
@@ -244,6 +255,8 @@ var SftpHostKey = /*#__PURE__*/(0, _createClass2.default)(function SftpHostKey()
244
255
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
245
256
  return SftpHostKey.list(params, options);
246
257
  });
258
+ // Parameters:
259
+ // id (required) - int64 - Sftp Host Key ID.
247
260
  (0, _defineProperty2.default)(SftpHostKey, "find", /*#__PURE__*/function () {
248
261
  var _ref6 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4(id) {
249
262
  var params,
@@ -294,6 +307,9 @@ var SftpHostKey = /*#__PURE__*/(0, _createClass2.default)(function SftpHostKey()
294
307
  var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
295
308
  return SftpHostKey.find(id, params, options);
296
309
  });
310
+ // Parameters:
311
+ // name - string - The friendly name of this SFTP Host Key.
312
+ // private_key - string - The private key data.
297
313
  (0, _defineProperty2.default)(SftpHostKey, "create", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5() {
298
314
  var params,
299
315
  options,