files.com 1.0.247 → 1.0.249
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.
- package/_VERSION +1 -1
- package/docs/models/RemoteServer.md +16 -2
- package/lib/models/AccountLineItem.js +14 -0
- package/lib/models/Action.js +13 -0
- package/lib/models/ActionNotificationExport.js +27 -0
- package/lib/models/ActionNotificationExportResult.js +15 -0
- package/lib/models/ActionWebhookFailure.js +1 -0
- package/lib/models/ApiKey.js +42 -0
- package/lib/models/App.js +26 -0
- package/lib/models/As2IncomingMessage.js +46 -0
- package/lib/models/As2OutgoingMessage.js +42 -0
- package/lib/models/As2Partner.js +29 -0
- package/lib/models/As2Station.js +31 -0
- package/lib/models/Auto.js +1 -0
- package/lib/models/Automation.js +72 -0
- package/lib/models/AutomationRun.js +20 -0
- package/lib/models/BandwidthSnapshot.js +19 -0
- package/lib/models/Behavior.js +57 -0
- package/lib/models/Bundle.js +98 -0
- package/lib/models/BundleDownload.js +16 -0
- package/lib/models/BundleNotification.js +20 -0
- package/lib/models/BundleRecipient.js +28 -0
- package/lib/models/BundleRegistration.js +18 -0
- package/lib/models/Clickwrap.js +23 -0
- package/lib/models/DnsRecord.js +7 -0
- package/lib/models/Errors.js +2 -0
- package/lib/models/ExternalEvent.js +26 -0
- package/lib/models/File.js +88 -0
- package/lib/models/FileAction.js +2 -0
- package/lib/models/FileComment.js +13 -0
- package/lib/models/FileCommentReaction.js +8 -0
- package/lib/models/FileMigration.js +11 -0
- package/lib/models/FileUploadPart.js +15 -0
- package/lib/models/Folder.js +33 -0
- package/lib/models/FormField.js +8 -0
- package/lib/models/FormFieldSet.js +27 -0
- package/lib/models/Group.js +29 -0
- package/lib/models/GroupUser.js +22 -0
- package/lib/models/History.js +57 -0
- package/lib/models/HistoryExport.js +51 -0
- package/lib/models/HistoryExportResult.js +29 -0
- package/lib/models/Image.js +2 -0
- package/lib/models/InboxRecipient.js +28 -0
- package/lib/models/InboxRegistration.js +15 -0
- package/lib/models/InboxUpload.js +15 -0
- package/lib/models/Invoice.js +19 -0
- package/lib/models/InvoiceLineItem.js +9 -0
- package/lib/models/IpAddress.js +13 -0
- package/lib/models/Lock.js +25 -0
- package/lib/models/Message.js +22 -0
- package/lib/models/MessageComment.js +16 -0
- package/lib/models/MessageCommentReaction.js +13 -0
- package/lib/models/MessageReaction.js +13 -0
- package/lib/models/Notification.js +70 -0
- package/lib/models/Payment.js +19 -0
- package/lib/models/PaymentLineItem.js +4 -0
- package/lib/models/Permission.js +29 -0
- package/lib/models/Preview.js +5 -0
- package/lib/models/Priority.js +6 -0
- package/lib/models/Project.js +11 -0
- package/lib/models/PublicIpAddress.js +4 -0
- package/lib/models/PublicKey.js +18 -0
- package/lib/models/RemoteBandwidthSnapshot.js +15 -0
- package/lib/models/RemoteServer.js +253 -11
- package/lib/models/RemoteServerConfigurationFile.js +12 -0
- package/lib/models/Request.js +25 -0
- package/lib/models/Session.js +13 -0
- package/lib/models/SettingsChange.js +15 -0
- package/lib/models/SftpHostKey.js +16 -0
- package/lib/models/Site.js +276 -0
- package/lib/models/SsoStrategy.js +49 -0
- package/lib/models/Status.js +7 -0
- package/lib/models/Style.js +9 -0
- package/lib/models/UsageDailySnapshot.js +21 -0
- package/lib/models/UsageSnapshot.js +18 -0
- package/lib/models/User.js +183 -0
- package/lib/models/UserCipherUse.js +10 -0
- package/lib/models/UserRequest.js +13 -0
- package/lib/models/WebhookTest.js +24 -0
- package/package.json +1 -1
- package/src/models/RemoteServer.js +41 -0
@@ -31,21 +31,27 @@ var UserCipherUse = /*#__PURE__*/(0, _createClass2.default)(function UserCipherU
|
|
31
31
|
(0, _defineProperty2.default)(this, "isLoaded", function () {
|
32
32
|
return !!_this.attributes.id;
|
33
33
|
});
|
34
|
+
// int64 # UserCipherUse ID
|
34
35
|
(0, _defineProperty2.default)(this, "getId", function () {
|
35
36
|
return _this.attributes.id;
|
36
37
|
});
|
38
|
+
// string # The protocol and cipher employed
|
37
39
|
(0, _defineProperty2.default)(this, "getProtocolCipher", function () {
|
38
40
|
return _this.attributes.protocol_cipher;
|
39
41
|
});
|
42
|
+
// date-time # The earliest recorded use of this combination of interface and protocol and cipher (for this user)
|
40
43
|
(0, _defineProperty2.default)(this, "getCreatedAt", function () {
|
41
44
|
return _this.attributes.created_at;
|
42
45
|
});
|
46
|
+
// string # The interface accessed
|
43
47
|
(0, _defineProperty2.default)(this, "getInterface", function () {
|
44
48
|
return _this.attributes.interface;
|
45
49
|
});
|
50
|
+
// date-time # The most recent use of this combination of interface and protocol and cipher (for this user)
|
46
51
|
(0, _defineProperty2.default)(this, "getUpdatedAt", function () {
|
47
52
|
return _this.attributes.updated_at;
|
48
53
|
});
|
54
|
+
// int64 # ID of the user who performed this access
|
49
55
|
(0, _defineProperty2.default)(this, "getUserId", function () {
|
50
56
|
return _this.attributes.user_id;
|
51
57
|
});
|
@@ -62,6 +68,10 @@ var UserCipherUse = /*#__PURE__*/(0, _createClass2.default)(function UserCipherU
|
|
62
68
|
});
|
63
69
|
this.options = _objectSpread({}, options);
|
64
70
|
});
|
71
|
+
// Parameters:
|
72
|
+
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
73
|
+
// 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.
|
74
|
+
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
65
75
|
(0, _defineProperty2.default)(UserCipherUse, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
66
76
|
var _response$data;
|
67
77
|
var params,
|
@@ -31,24 +31,28 @@ var UserRequest = /*#__PURE__*/(0, _createClass2.default)(function UserRequest()
|
|
31
31
|
(0, _defineProperty2.default)(this, "isLoaded", function () {
|
32
32
|
return !!_this.attributes.id;
|
33
33
|
});
|
34
|
+
// int64 # 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 # User's full name
|
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
|
+
// email # User email address
|
46
49
|
(0, _defineProperty2.default)(this, "getEmail", function () {
|
47
50
|
return _this.attributes.email;
|
48
51
|
});
|
49
52
|
(0, _defineProperty2.default)(this, "setEmail", function (value) {
|
50
53
|
_this.attributes.email = value;
|
51
54
|
});
|
55
|
+
// string # Details of the user's request
|
52
56
|
(0, _defineProperty2.default)(this, "getDetails", function () {
|
53
57
|
return _this.attributes.details;
|
54
58
|
});
|
@@ -133,6 +137,9 @@ var UserRequest = /*#__PURE__*/(0, _createClass2.default)(function UserRequest()
|
|
133
137
|
});
|
134
138
|
this.options = _objectSpread({}, options);
|
135
139
|
});
|
140
|
+
// Parameters:
|
141
|
+
// 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.
|
142
|
+
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
136
143
|
(0, _defineProperty2.default)(UserRequest, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
137
144
|
var _response$data;
|
138
145
|
var params,
|
@@ -174,6 +181,8 @@ var UserRequest = /*#__PURE__*/(0, _createClass2.default)(function UserRequest()
|
|
174
181
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
175
182
|
return UserRequest.list(params, options);
|
176
183
|
});
|
184
|
+
// Parameters:
|
185
|
+
// id (required) - int64 - User Request ID.
|
177
186
|
(0, _defineProperty2.default)(UserRequest, "find", /*#__PURE__*/function () {
|
178
187
|
var _ref5 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(id) {
|
179
188
|
var params,
|
@@ -224,6 +233,10 @@ var UserRequest = /*#__PURE__*/(0, _createClass2.default)(function UserRequest()
|
|
224
233
|
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
225
234
|
return UserRequest.find(id, params, options);
|
226
235
|
});
|
236
|
+
// Parameters:
|
237
|
+
// name (required) - string - Name of user requested
|
238
|
+
// email (required) - string - Email of user requested
|
239
|
+
// details (required) - string - Details of the user request
|
227
240
|
(0, _defineProperty2.default)(UserRequest, "create", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4() {
|
228
241
|
var params,
|
229
242
|
options,
|
@@ -31,84 +31,98 @@ var WebhookTest = /*#__PURE__*/(0, _createClass2.default)(function WebhookTest()
|
|
31
31
|
(0, _defineProperty2.default)(this, "isLoaded", function () {
|
32
32
|
return !!_this.attributes.id;
|
33
33
|
});
|
34
|
+
// int64 # Status HTTP code
|
34
35
|
(0, _defineProperty2.default)(this, "getCode", function () {
|
35
36
|
return _this.attributes.code;
|
36
37
|
});
|
37
38
|
(0, _defineProperty2.default)(this, "setCode", function (value) {
|
38
39
|
_this.attributes.code = value;
|
39
40
|
});
|
41
|
+
// string # Error message
|
40
42
|
(0, _defineProperty2.default)(this, "getMessage", function () {
|
41
43
|
return _this.attributes.message;
|
42
44
|
});
|
43
45
|
(0, _defineProperty2.default)(this, "setMessage", function (value) {
|
44
46
|
_this.attributes.message = value;
|
45
47
|
});
|
48
|
+
// string # Status message
|
46
49
|
(0, _defineProperty2.default)(this, "getStatus", function () {
|
47
50
|
return _this.attributes.status;
|
48
51
|
});
|
49
52
|
(0, _defineProperty2.default)(this, "setStatus", function (value) {
|
50
53
|
_this.attributes.status = value;
|
51
54
|
});
|
55
|
+
// Auto # Additional data
|
52
56
|
(0, _defineProperty2.default)(this, "getData", function () {
|
53
57
|
return _this.attributes.data;
|
54
58
|
});
|
55
59
|
(0, _defineProperty2.default)(this, "setData", function (value) {
|
56
60
|
_this.attributes.data = value;
|
57
61
|
});
|
62
|
+
// boolean # The success status of the webhook test
|
58
63
|
(0, _defineProperty2.default)(this, "getSuccess", function () {
|
59
64
|
return _this.attributes.success;
|
60
65
|
});
|
61
66
|
(0, _defineProperty2.default)(this, "setSuccess", function (value) {
|
62
67
|
_this.attributes.success = value;
|
63
68
|
});
|
69
|
+
// string # URL for testing the webhook.
|
64
70
|
(0, _defineProperty2.default)(this, "getUrl", function () {
|
65
71
|
return _this.attributes.url;
|
66
72
|
});
|
67
73
|
(0, _defineProperty2.default)(this, "setUrl", function (value) {
|
68
74
|
_this.attributes.url = value;
|
69
75
|
});
|
76
|
+
// string # HTTP method(GET or POST).
|
70
77
|
(0, _defineProperty2.default)(this, "getMethod", function () {
|
71
78
|
return _this.attributes.method;
|
72
79
|
});
|
73
80
|
(0, _defineProperty2.default)(this, "setMethod", function (value) {
|
74
81
|
_this.attributes.method = value;
|
75
82
|
});
|
83
|
+
// string # HTTP encoding method. Can be JSON, XML, or RAW (form data).
|
76
84
|
(0, _defineProperty2.default)(this, "getEncoding", function () {
|
77
85
|
return _this.attributes.encoding;
|
78
86
|
});
|
79
87
|
(0, _defineProperty2.default)(this, "setEncoding", function (value) {
|
80
88
|
_this.attributes.encoding = value;
|
81
89
|
});
|
90
|
+
// object # Additional request headers.
|
82
91
|
(0, _defineProperty2.default)(this, "getHeaders", function () {
|
83
92
|
return _this.attributes.headers;
|
84
93
|
});
|
85
94
|
(0, _defineProperty2.default)(this, "setHeaders", function (value) {
|
86
95
|
_this.attributes.headers = value;
|
87
96
|
});
|
97
|
+
// object # Additional body parameters.
|
88
98
|
(0, _defineProperty2.default)(this, "getBody", function () {
|
89
99
|
return _this.attributes.body;
|
90
100
|
});
|
91
101
|
(0, _defineProperty2.default)(this, "setBody", function (value) {
|
92
102
|
_this.attributes.body = value;
|
93
103
|
});
|
104
|
+
// string # raw body text
|
94
105
|
(0, _defineProperty2.default)(this, "getRawBody", function () {
|
95
106
|
return _this.attributes.raw_body;
|
96
107
|
});
|
97
108
|
(0, _defineProperty2.default)(this, "setRawBody", function (value) {
|
98
109
|
_this.attributes.raw_body = value;
|
99
110
|
});
|
111
|
+
// boolean # Send the file data as the request body?
|
100
112
|
(0, _defineProperty2.default)(this, "getFileAsBody", function () {
|
101
113
|
return _this.attributes.file_as_body;
|
102
114
|
});
|
103
115
|
(0, _defineProperty2.default)(this, "setFileAsBody", function (value) {
|
104
116
|
_this.attributes.file_as_body = value;
|
105
117
|
});
|
118
|
+
// string # Send the file data as a named parameter in the request POST body
|
106
119
|
(0, _defineProperty2.default)(this, "getFileFormField", function () {
|
107
120
|
return _this.attributes.file_form_field;
|
108
121
|
});
|
109
122
|
(0, _defineProperty2.default)(this, "setFileFormField", function (value) {
|
110
123
|
_this.attributes.file_form_field = value;
|
111
124
|
});
|
125
|
+
// string # action for test body
|
112
126
|
(0, _defineProperty2.default)(this, "getAction", function () {
|
113
127
|
return _this.attributes.action;
|
114
128
|
});
|
@@ -137,6 +151,16 @@ var WebhookTest = /*#__PURE__*/(0, _createClass2.default)(function WebhookTest()
|
|
137
151
|
});
|
138
152
|
this.options = _objectSpread({}, options);
|
139
153
|
});
|
154
|
+
// Parameters:
|
155
|
+
// url (required) - string - URL for testing the webhook.
|
156
|
+
// method - string - HTTP method(GET or POST).
|
157
|
+
// encoding - string - HTTP encoding method. Can be JSON, XML, or RAW (form data).
|
158
|
+
// headers - object - Additional request headers.
|
159
|
+
// body - object - Additional body parameters.
|
160
|
+
// raw_body - string - raw body text
|
161
|
+
// file_as_body - boolean - Send the file data as the request body?
|
162
|
+
// file_form_field - string - Send the file data as a named parameter in the request POST body
|
163
|
+
// action - string - action for test body
|
140
164
|
(0, _defineProperty2.default)(WebhookTest, "create", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
141
165
|
var params,
|
142
166
|
options,
|
package/package.json
CHANGED
@@ -352,6 +352,13 @@ class RemoteServer {
|
|
352
352
|
this.attributes.filebase_bucket = value
|
353
353
|
}
|
354
354
|
|
355
|
+
// string # Filebase Access Key.
|
356
|
+
getFilebaseAccessKey = () => this.attributes.filebase_access_key
|
357
|
+
|
358
|
+
setFilebaseAccessKey = value => {
|
359
|
+
this.attributes.filebase_access_key = value
|
360
|
+
}
|
361
|
+
|
355
362
|
// string # AWS secret key.
|
356
363
|
getAwsSecretKey = () => this.attributes.aws_secret_key
|
357
364
|
|
@@ -450,6 +457,13 @@ class RemoteServer {
|
|
450
457
|
this.attributes.s3_compatible_secret_key = value
|
451
458
|
}
|
452
459
|
|
460
|
+
// string # Filebase secret key
|
461
|
+
getFilebaseSecretKey = () => this.attributes.filebase_secret_key
|
462
|
+
|
463
|
+
setFilebaseSecretKey = value => {
|
464
|
+
this.attributes.filebase_secret_key = value
|
465
|
+
}
|
466
|
+
|
453
467
|
|
454
468
|
// Post local changes, check in, and download configuration file (used by some Remote Server integrations, such as the Files.com Agent)
|
455
469
|
//
|
@@ -577,6 +591,9 @@ class RemoteServer {
|
|
577
591
|
// s3_compatible_secret_key - string - S3-compatible secret key
|
578
592
|
// files_agent_root - string - Agent local root path
|
579
593
|
// files_agent_permission_set - string - Local permissions for files agent. read_only, write_only, or read_write
|
594
|
+
// filebase_access_key - string - Filebase Access Key.
|
595
|
+
// filebase_secret_key - string - Filebase secret key
|
596
|
+
// filebase_bucket - string - Filebase Bucket name
|
580
597
|
update = async (params = {}) => {
|
581
598
|
if (!this.attributes.id) {
|
582
599
|
throw new errors.EmptyPropertyError('Current object has no id')
|
@@ -734,6 +751,15 @@ class RemoteServer {
|
|
734
751
|
if (params['files_agent_permission_set'] && !isString(params['files_agent_permission_set'])) {
|
735
752
|
throw new errors.InvalidParameterError(`Bad parameter: files_agent_permission_set must be of type String, received ${getType(files_agent_permission_set)}`)
|
736
753
|
}
|
754
|
+
if (params['filebase_access_key'] && !isString(params['filebase_access_key'])) {
|
755
|
+
throw new errors.InvalidParameterError(`Bad parameter: filebase_access_key must be of type String, received ${getType(filebase_access_key)}`)
|
756
|
+
}
|
757
|
+
if (params['filebase_secret_key'] && !isString(params['filebase_secret_key'])) {
|
758
|
+
throw new errors.InvalidParameterError(`Bad parameter: filebase_secret_key must be of type String, received ${getType(filebase_secret_key)}`)
|
759
|
+
}
|
760
|
+
if (params['filebase_bucket'] && !isString(params['filebase_bucket'])) {
|
761
|
+
throw new errors.InvalidParameterError(`Bad parameter: filebase_bucket must be of type String, received ${getType(filebase_bucket)}`)
|
762
|
+
}
|
737
763
|
|
738
764
|
if (!params['id']) {
|
739
765
|
if (this.attributes.id) {
|
@@ -907,6 +933,9 @@ class RemoteServer {
|
|
907
933
|
// s3_compatible_secret_key - string - S3-compatible secret key
|
908
934
|
// files_agent_root - string - Agent local root path
|
909
935
|
// files_agent_permission_set - string - Local permissions for files agent. read_only, write_only, or read_write
|
936
|
+
// filebase_access_key - string - Filebase Access Key.
|
937
|
+
// filebase_secret_key - string - Filebase secret key
|
938
|
+
// filebase_bucket - string - Filebase Bucket name
|
910
939
|
static create = async (params = {}, options = {}) => {
|
911
940
|
if (params['aws_access_key'] && !isString(params['aws_access_key'])) {
|
912
941
|
throw new errors.InvalidParameterError(`Bad parameter: aws_access_key must be of type String, received ${getType(params['aws_access_key'])}`)
|
@@ -1100,6 +1129,18 @@ class RemoteServer {
|
|
1100
1129
|
throw new errors.InvalidParameterError(`Bad parameter: files_agent_permission_set must be of type String, received ${getType(params['files_agent_permission_set'])}`)
|
1101
1130
|
}
|
1102
1131
|
|
1132
|
+
if (params['filebase_access_key'] && !isString(params['filebase_access_key'])) {
|
1133
|
+
throw new errors.InvalidParameterError(`Bad parameter: filebase_access_key must be of type String, received ${getType(params['filebase_access_key'])}`)
|
1134
|
+
}
|
1135
|
+
|
1136
|
+
if (params['filebase_secret_key'] && !isString(params['filebase_secret_key'])) {
|
1137
|
+
throw new errors.InvalidParameterError(`Bad parameter: filebase_secret_key must be of type String, received ${getType(params['filebase_secret_key'])}`)
|
1138
|
+
}
|
1139
|
+
|
1140
|
+
if (params['filebase_bucket'] && !isString(params['filebase_bucket'])) {
|
1141
|
+
throw new errors.InvalidParameterError(`Bad parameter: filebase_bucket must be of type String, received ${getType(params['filebase_bucket'])}`)
|
1142
|
+
}
|
1143
|
+
|
1103
1144
|
const response = await Api.sendRequest(`/remote_servers`, 'POST', params, options)
|
1104
1145
|
|
1105
1146
|
return new RemoteServer(response?.data, options)
|