files.com 1.0.180 → 1.0.181
Sign up to get free protection for your applications and to get access to all the features.
- package/_VERSION +1 -1
- package/lib/models/Session.js +0 -96
- package/package.json +1 -1
- package/src/models/Session.js +0 -112
package/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.181
|
package/lib/models/Session.js
CHANGED
@@ -53,114 +53,18 @@ var Session = /*#__PURE__*/(0, _createClass2.default)(function Session() {
|
|
53
53
|
(0, _defineProperty2.default)(this, "setLanguage", function (value) {
|
54
54
|
_this.attributes.language = value;
|
55
55
|
});
|
56
|
-
(0, _defineProperty2.default)(this, "getLoginToken", function () {
|
57
|
-
return _this.attributes.login_token;
|
58
|
-
});
|
59
|
-
(0, _defineProperty2.default)(this, "setLoginToken", function (value) {
|
60
|
-
_this.attributes.login_token = value;
|
61
|
-
});
|
62
|
-
(0, _defineProperty2.default)(this, "getLoginTokenDomain", function () {
|
63
|
-
return _this.attributes.login_token_domain;
|
64
|
-
});
|
65
|
-
(0, _defineProperty2.default)(this, "setLoginTokenDomain", function (value) {
|
66
|
-
_this.attributes.login_token_domain = value;
|
67
|
-
});
|
68
|
-
(0, _defineProperty2.default)(this, "getMaxDirListingSize", function () {
|
69
|
-
return _this.attributes.max_dir_listing_size;
|
70
|
-
});
|
71
|
-
(0, _defineProperty2.default)(this, "setMaxDirListingSize", function (value) {
|
72
|
-
_this.attributes.max_dir_listing_size = value;
|
73
|
-
});
|
74
|
-
(0, _defineProperty2.default)(this, "getMultipleRegions", function () {
|
75
|
-
return _this.attributes.multiple_regions;
|
76
|
-
});
|
77
|
-
(0, _defineProperty2.default)(this, "setMultipleRegions", function (value) {
|
78
|
-
_this.attributes.multiple_regions = value;
|
79
|
-
});
|
80
56
|
(0, _defineProperty2.default)(this, "getReadOnly", function () {
|
81
57
|
return _this.attributes.read_only;
|
82
58
|
});
|
83
59
|
(0, _defineProperty2.default)(this, "setReadOnly", function (value) {
|
84
60
|
_this.attributes.read_only = value;
|
85
61
|
});
|
86
|
-
(0, _defineProperty2.default)(this, "getRootPath", function () {
|
87
|
-
return _this.attributes.root_path;
|
88
|
-
});
|
89
|
-
(0, _defineProperty2.default)(this, "setRootPath", function (value) {
|
90
|
-
_this.attributes.root_path = value;
|
91
|
-
});
|
92
62
|
(0, _defineProperty2.default)(this, "getSftpInsecureCiphers", function () {
|
93
63
|
return _this.attributes.sftp_insecure_ciphers;
|
94
64
|
});
|
95
65
|
(0, _defineProperty2.default)(this, "setSftpInsecureCiphers", function (value) {
|
96
66
|
_this.attributes.sftp_insecure_ciphers = value;
|
97
67
|
});
|
98
|
-
(0, _defineProperty2.default)(this, "getSiteId", function () {
|
99
|
-
return _this.attributes.site_id;
|
100
|
-
});
|
101
|
-
(0, _defineProperty2.default)(this, "setSiteId", function (value) {
|
102
|
-
_this.attributes.site_id = value;
|
103
|
-
});
|
104
|
-
(0, _defineProperty2.default)(this, "getSslRequired", function () {
|
105
|
-
return _this.attributes.ssl_required;
|
106
|
-
});
|
107
|
-
(0, _defineProperty2.default)(this, "setSslRequired", function (value) {
|
108
|
-
_this.attributes.ssl_required = value;
|
109
|
-
});
|
110
|
-
(0, _defineProperty2.default)(this, "getTlsDisabled", function () {
|
111
|
-
return _this.attributes.tls_disabled;
|
112
|
-
});
|
113
|
-
(0, _defineProperty2.default)(this, "setTlsDisabled", function (value) {
|
114
|
-
_this.attributes.tls_disabled = value;
|
115
|
-
});
|
116
|
-
(0, _defineProperty2.default)(this, "getTwoFactorSetupNeeded", function () {
|
117
|
-
return _this.attributes.two_factor_setup_needed;
|
118
|
-
});
|
119
|
-
(0, _defineProperty2.default)(this, "setTwoFactorSetupNeeded", function (value) {
|
120
|
-
_this.attributes.two_factor_setup_needed = value;
|
121
|
-
});
|
122
|
-
(0, _defineProperty2.default)(this, "getAllowed2faMethodSms", function () {
|
123
|
-
return _this.attributes.allowed_2fa_method_sms;
|
124
|
-
});
|
125
|
-
(0, _defineProperty2.default)(this, "setAllowed2faMethodSms", function (value) {
|
126
|
-
_this.attributes.allowed_2fa_method_sms = value;
|
127
|
-
});
|
128
|
-
(0, _defineProperty2.default)(this, "getAllowed2faMethodTotp", function () {
|
129
|
-
return _this.attributes.allowed_2fa_method_totp;
|
130
|
-
});
|
131
|
-
(0, _defineProperty2.default)(this, "setAllowed2faMethodTotp", function (value) {
|
132
|
-
_this.attributes.allowed_2fa_method_totp = value;
|
133
|
-
});
|
134
|
-
(0, _defineProperty2.default)(this, "getAllowed2faMethodU2f", function () {
|
135
|
-
return _this.attributes.allowed_2fa_method_u2f;
|
136
|
-
});
|
137
|
-
(0, _defineProperty2.default)(this, "setAllowed2faMethodU2f", function (value) {
|
138
|
-
_this.attributes.allowed_2fa_method_u2f = value;
|
139
|
-
});
|
140
|
-
(0, _defineProperty2.default)(this, "getAllowed2faMethodWebauthn", function () {
|
141
|
-
return _this.attributes.allowed_2fa_method_webauthn;
|
142
|
-
});
|
143
|
-
(0, _defineProperty2.default)(this, "setAllowed2faMethodWebauthn", function (value) {
|
144
|
-
_this.attributes.allowed_2fa_method_webauthn = value;
|
145
|
-
});
|
146
|
-
(0, _defineProperty2.default)(this, "getAllowed2faMethodYubi", function () {
|
147
|
-
return _this.attributes.allowed_2fa_method_yubi;
|
148
|
-
});
|
149
|
-
(0, _defineProperty2.default)(this, "setAllowed2faMethodYubi", function (value) {
|
150
|
-
_this.attributes.allowed_2fa_method_yubi = value;
|
151
|
-
});
|
152
|
-
(0, _defineProperty2.default)(this, "getUseProvidedModifiedAt", function () {
|
153
|
-
return _this.attributes.use_provided_modified_at;
|
154
|
-
});
|
155
|
-
(0, _defineProperty2.default)(this, "setUseProvidedModifiedAt", function (value) {
|
156
|
-
_this.attributes.use_provided_modified_at = value;
|
157
|
-
});
|
158
|
-
(0, _defineProperty2.default)(this, "getWindowsModeFtp", function () {
|
159
|
-
return _this.attributes.windows_mode_ftp;
|
160
|
-
});
|
161
|
-
(0, _defineProperty2.default)(this, "setWindowsModeFtp", function (value) {
|
162
|
-
_this.attributes.windows_mode_ftp = value;
|
163
|
-
});
|
164
68
|
(0, _defineProperty2.default)(this, "getUsername", function () {
|
165
69
|
return _this.attributes.username;
|
166
70
|
});
|
package/package.json
CHANGED
package/src/models/Session.js
CHANGED
@@ -36,34 +36,6 @@ class Session {
|
|
36
36
|
this.attributes.language = value
|
37
37
|
}
|
38
38
|
|
39
|
-
// string # Login token. If set, this token will allow your user to log in via browser at the domain in `login_token_domain`.
|
40
|
-
getLoginToken = () => this.attributes.login_token
|
41
|
-
|
42
|
-
setLoginToken = value => {
|
43
|
-
this.attributes.login_token = value
|
44
|
-
}
|
45
|
-
|
46
|
-
// string # Domain to use with `login_token`.
|
47
|
-
getLoginTokenDomain = () => this.attributes.login_token_domain
|
48
|
-
|
49
|
-
setLoginTokenDomain = value => {
|
50
|
-
this.attributes.login_token_domain = value
|
51
|
-
}
|
52
|
-
|
53
|
-
// int64 # Maximum number of files to retrieve per folder for a directory listing. This is based on the user's plan.
|
54
|
-
getMaxDirListingSize = () => this.attributes.max_dir_listing_size
|
55
|
-
|
56
|
-
setMaxDirListingSize = value => {
|
57
|
-
this.attributes.max_dir_listing_size = value
|
58
|
-
}
|
59
|
-
|
60
|
-
// boolean # Can access multiple regions?
|
61
|
-
getMultipleRegions = () => this.attributes.multiple_regions
|
62
|
-
|
63
|
-
setMultipleRegions = value => {
|
64
|
-
this.attributes.multiple_regions = value
|
65
|
-
}
|
66
|
-
|
67
39
|
// boolean # Is this session read only?
|
68
40
|
getReadOnly = () => this.attributes.read_only
|
69
41
|
|
@@ -71,13 +43,6 @@ class Session {
|
|
71
43
|
this.attributes.read_only = value
|
72
44
|
}
|
73
45
|
|
74
|
-
// string # Initial root path to start the user's session in.
|
75
|
-
getRootPath = () => this.attributes.root_path
|
76
|
-
|
77
|
-
setRootPath = value => {
|
78
|
-
this.attributes.root_path = value
|
79
|
-
}
|
80
|
-
|
81
46
|
// 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.)
|
82
47
|
getSftpInsecureCiphers = () => this.attributes.sftp_insecure_ciphers
|
83
48
|
|
@@ -85,83 +50,6 @@ class Session {
|
|
85
50
|
this.attributes.sftp_insecure_ciphers = value
|
86
51
|
}
|
87
52
|
|
88
|
-
// int64 # Site ID
|
89
|
-
getSiteId = () => this.attributes.site_id
|
90
|
-
|
91
|
-
setSiteId = value => {
|
92
|
-
this.attributes.site_id = value
|
93
|
-
}
|
94
|
-
|
95
|
-
// boolean # Is SSL required for this user? (If so, ensure all your communications with this user use SSL.)
|
96
|
-
getSslRequired = () => this.attributes.ssl_required
|
97
|
-
|
98
|
-
setSslRequired = value => {
|
99
|
-
this.attributes.ssl_required = value
|
100
|
-
}
|
101
|
-
|
102
|
-
// boolean # Are insecure TLS versions allowed for this user? (If this is set to true, the site administrator has signaled that it is ok to use less secure TLS versions for this user.)
|
103
|
-
getTlsDisabled = () => this.attributes.tls_disabled
|
104
|
-
|
105
|
-
setTlsDisabled = value => {
|
106
|
-
this.attributes.tls_disabled = value
|
107
|
-
}
|
108
|
-
|
109
|
-
// boolean # If true, this user needs to add a Two Factor Authentication method before performing any further actions.
|
110
|
-
getTwoFactorSetupNeeded = () => this.attributes.two_factor_setup_needed
|
111
|
-
|
112
|
-
setTwoFactorSetupNeeded = value => {
|
113
|
-
this.attributes.two_factor_setup_needed = value
|
114
|
-
}
|
115
|
-
|
116
|
-
// boolean # Sent only if 2FA setup is needed. Is SMS two factor authentication allowed?
|
117
|
-
getAllowed2faMethodSms = () => this.attributes.allowed_2fa_method_sms
|
118
|
-
|
119
|
-
setAllowed2faMethodSms = value => {
|
120
|
-
this.attributes.allowed_2fa_method_sms = value
|
121
|
-
}
|
122
|
-
|
123
|
-
// boolean # Sent only if 2FA setup is needed. Is TOTP two factor authentication allowed?
|
124
|
-
getAllowed2faMethodTotp = () => this.attributes.allowed_2fa_method_totp
|
125
|
-
|
126
|
-
setAllowed2faMethodTotp = value => {
|
127
|
-
this.attributes.allowed_2fa_method_totp = value
|
128
|
-
}
|
129
|
-
|
130
|
-
// boolean # Sent only if 2FA setup is needed. Is U2F two factor authentication allowed?
|
131
|
-
getAllowed2faMethodU2f = () => this.attributes.allowed_2fa_method_u2f
|
132
|
-
|
133
|
-
setAllowed2faMethodU2f = value => {
|
134
|
-
this.attributes.allowed_2fa_method_u2f = value
|
135
|
-
}
|
136
|
-
|
137
|
-
// boolean # Sent only if 2FA setup is needed. Is WebAuthn two factor authentication allowed?
|
138
|
-
getAllowed2faMethodWebauthn = () => this.attributes.allowed_2fa_method_webauthn
|
139
|
-
|
140
|
-
setAllowed2faMethodWebauthn = value => {
|
141
|
-
this.attributes.allowed_2fa_method_webauthn = value
|
142
|
-
}
|
143
|
-
|
144
|
-
// boolean # Sent only if 2FA setup is needed. Is Yubikey two factor authentication allowed?
|
145
|
-
getAllowed2faMethodYubi = () => this.attributes.allowed_2fa_method_yubi
|
146
|
-
|
147
|
-
setAllowed2faMethodYubi = value => {
|
148
|
-
this.attributes.allowed_2fa_method_yubi = value
|
149
|
-
}
|
150
|
-
|
151
|
-
// boolean # Allow the user to provide file/folder modified at dates? If false, the server will always use the current date/time.
|
152
|
-
getUseProvidedModifiedAt = () => this.attributes.use_provided_modified_at
|
153
|
-
|
154
|
-
setUseProvidedModifiedAt = value => {
|
155
|
-
this.attributes.use_provided_modified_at = value
|
156
|
-
}
|
157
|
-
|
158
|
-
// boolean # Does this user want to use Windows line-ending emulation? (CR vs CRLF)
|
159
|
-
getWindowsModeFtp = () => this.attributes.windows_mode_ftp
|
160
|
-
|
161
|
-
setWindowsModeFtp = value => {
|
162
|
-
this.attributes.windows_mode_ftp = value
|
163
|
-
}
|
164
|
-
|
165
53
|
// string # Username to sign in as
|
166
54
|
getUsername = () => this.attributes.username
|
167
55
|
|