files.com 1.0.188 → 1.0.191
Sign up to get free protection for your applications and to get access to all the features.
- package/_VERSION +1 -1
- package/docs/Errors.md +186 -0
- package/docs/models/AccountLineItem.md +53 -0
- package/docs/models/Action.md +37 -0
- package/docs/models/ActionNotificationExport.md +82 -0
- package/docs/models/ActionNotificationExportResult.md +49 -0
- package/docs/models/ActionWebhookFailure.md +16 -0
- package/docs/models/ApiKey.md +183 -0
- package/docs/models/App.md +66 -0
- package/docs/models/As2IncomingMessage.md +104 -0
- package/docs/models/As2OutgoingMessage.md +96 -0
- package/docs/models/As2Partner.md +141 -0
- package/docs/models/As2Station.md +142 -0
- package/docs/models/Auto.md +11 -0
- package/docs/models/Automation.md +257 -0
- package/docs/models/AutomationRun.md +61 -0
- package/docs/models/BandwidthSnapshot.md +50 -0
- package/docs/models/Behavior.md +195 -0
- package/docs/models/Bundle.md +330 -0
- package/docs/models/BundleDownload.md +44 -0
- package/docs/models/BundleRecipient.md +76 -0
- package/docs/models/BundleRegistration.md +53 -0
- package/docs/models/Clickwrap.md +120 -0
- package/docs/models/DnsRecord.md +33 -0
- package/docs/models/Errors.md +17 -0
- package/docs/models/ExternalEvent.md +84 -0
- package/docs/models/File.md +339 -0
- package/docs/models/FileAction.md +13 -0
- package/docs/models/FileComment.md +98 -0
- package/docs/models/FileCommentReaction.md +50 -0
- package/docs/models/FileMigration.md +40 -0
- package/docs/models/FileUploadPart.md +39 -0
- package/docs/models/Folder.md +90 -0
- package/docs/models/FormField.md +29 -0
- package/docs/models/FormFieldSet.md +170 -0
- package/docs/models/Group.md +140 -0
- package/docs/models/GroupUser.md +116 -0
- package/docs/models/History.md +151 -0
- package/docs/models/HistoryExport.md +130 -0
- package/docs/models/HistoryExportResult.md +75 -0
- package/docs/models/Image.md +13 -0
- package/docs/models/InboxRecipient.md +76 -0
- package/docs/models/InboxRegistration.md +47 -0
- package/docs/models/InboxUpload.md +42 -0
- package/docs/models/Invoice.md +82 -0
- package/docs/models/InvoiceLineItem.md +27 -0
- package/docs/models/IpAddress.md +51 -0
- package/docs/models/Lock.md +92 -0
- package/docs/models/Message.md +134 -0
- package/docs/models/MessageComment.md +114 -0
- package/docs/models/MessageCommentReaction.md +79 -0
- package/docs/models/MessageReaction.md +79 -0
- package/docs/models/Notification.md +241 -0
- package/docs/models/Payment.md +82 -0
- package/docs/models/PaymentLineItem.md +19 -0
- package/docs/models/Permission.md +94 -0
- package/docs/models/Preview.md +19 -0
- package/docs/models/Priority.md +30 -0
- package/docs/models/Project.md +98 -0
- package/docs/models/PublicIpAddress.md +17 -0
- package/docs/models/PublicKey.md +112 -0
- package/docs/models/RemoteBandwidthSnapshot.md +42 -0
- package/docs/models/RemoteServer.md +385 -0
- package/docs/models/Request.md +97 -0
- package/docs/models/Session.md +50 -0
- package/docs/models/SettingsChange.md +44 -0
- package/docs/models/Site.md +607 -0
- package/docs/models/SsoStrategy.md +139 -0
- package/docs/models/Status.md +30 -0
- package/docs/models/Style.md +76 -0
- package/docs/models/UsageDailySnapshot.md +56 -0
- package/docs/models/UsageSnapshot.md +63 -0
- package/docs/models/User.md +465 -0
- package/docs/models/UserCipherUse.md +39 -0
- package/docs/models/UserRequest.md +80 -0
- package/docs/models/WebhookTest.md +59 -0
- package/lib/Api.js +12 -11
- package/lib/Errors.js +3126 -0
- package/lib/models/AccountLineItem.js +8 -0
- package/lib/models/Action.js +8 -0
- package/lib/models/ActionNotificationExport.js +21 -13
- package/lib/models/ActionNotificationExportResult.js +13 -5
- package/lib/models/ActionWebhookFailure.js +12 -4
- package/lib/models/ApiKey.js +33 -25
- package/lib/models/App.js +10 -2
- package/lib/models/As2IncomingMessage.js +11 -3
- package/lib/models/As2OutgoingMessage.js +11 -3
- package/lib/models/As2Partner.js +34 -26
- package/lib/models/As2Station.js +32 -24
- package/lib/models/Auto.js +8 -0
- package/lib/models/Automation.js +54 -60
- package/lib/models/AutomationRun.js +16 -8
- package/lib/models/BandwidthSnapshot.js +10 -2
- package/lib/models/Behavior.js +46 -38
- package/lib/models/Bundle.js +51 -43
- package/lib/models/BundleDownload.js +12 -4
- package/lib/models/BundleRecipient.js +22 -14
- package/lib/models/BundleRegistration.js +12 -4
- package/lib/models/Clickwrap.js +31 -23
- package/lib/models/DnsRecord.js +10 -2
- package/lib/models/Errors.js +8 -0
- package/lib/models/ExternalEvent.js +18 -10
- package/lib/models/File.js +68 -60
- package/lib/models/FileAction.js +8 -0
- package/lib/models/FileComment.js +27 -19
- package/lib/models/FileCommentReaction.js +18 -10
- package/lib/models/FileMigration.js +11 -3
- package/lib/models/FileUploadPart.js +8 -0
- package/lib/models/Folder.js +19 -11
- package/lib/models/FormField.js +8 -0
- package/lib/models/FormFieldSet.js +27 -19
- package/lib/models/Group.js +30 -22
- package/lib/models/GroupUser.js +32 -24
- package/lib/models/History.js +42 -34
- package/lib/models/HistoryExport.js +34 -26
- package/lib/models/HistoryExportResult.js +13 -5
- package/lib/models/Image.js +8 -0
- package/lib/models/InboxRecipient.js +22 -14
- package/lib/models/InboxRegistration.js +11 -3
- package/lib/models/InboxUpload.js +12 -4
- package/lib/models/Invoice.js +13 -5
- package/lib/models/InvoiceLineItem.js +8 -0
- package/lib/models/IpAddress.js +12 -4
- package/lib/models/Lock.js +24 -16
- package/lib/models/Message.js +37 -29
- package/lib/models/MessageComment.js +29 -21
- package/lib/models/MessageCommentReaction.js +24 -16
- package/lib/models/MessageReaction.js +24 -16
- package/lib/models/Notification.js +38 -30
- package/lib/models/Payment.js +13 -5
- package/lib/models/PaymentLineItem.js +8 -0
- package/lib/models/Permission.js +23 -15
- package/lib/models/Preview.js +8 -0
- package/lib/models/Priority.js +13 -5
- package/lib/models/Project.js +25 -17
- package/lib/models/PublicIpAddress.js +8 -0
- package/lib/models/PublicKey.js +29 -21
- package/lib/models/RemoteBandwidthSnapshot.js +10 -2
- package/lib/models/RemoteServer.js +226 -196
- package/lib/models/Request.js +27 -19
- package/lib/models/Session.js +13 -5
- package/lib/models/SettingsChange.js +10 -2
- package/lib/models/Site.js +65 -57
- package/lib/models/SsoStrategy.js +17 -9
- package/lib/models/Status.js +8 -0
- package/lib/models/Style.js +20 -12
- package/lib/models/UsageDailySnapshot.js +10 -2
- package/lib/models/UsageSnapshot.js +10 -2
- package/lib/models/User.js +85 -77
- package/lib/models/UserCipherUse.js +11 -3
- package/lib/models/UserRequest.js +24 -16
- package/lib/models/WebhookTest.js +16 -8
- package/package.json +1 -1
- package/src/Api.js +4 -8
- package/src/Errors.js +222 -0
- package/src/models/AccountLineItem.js +1 -0
- package/src/models/Action.js +1 -0
- package/src/models/ActionNotificationExport.js +14 -13
- package/src/models/ActionNotificationExportResult.js +6 -5
- package/src/models/ActionWebhookFailure.js +5 -4
- package/src/models/ApiKey.js +26 -25
- package/src/models/App.js +3 -2
- package/src/models/As2IncomingMessage.js +4 -3
- package/src/models/As2OutgoingMessage.js +4 -3
- package/src/models/As2Partner.js +27 -26
- package/src/models/As2Station.js +25 -24
- package/src/models/Auto.js +1 -0
- package/src/models/Automation.js +51 -62
- package/src/models/AutomationRun.js +9 -8
- package/src/models/BandwidthSnapshot.js +3 -2
- package/src/models/Behavior.js +39 -38
- package/src/models/Bundle.js +44 -43
- package/src/models/BundleDownload.js +5 -4
- package/src/models/BundleRecipient.js +15 -14
- package/src/models/BundleRegistration.js +5 -4
- package/src/models/Clickwrap.js +24 -23
- package/src/models/DnsRecord.js +3 -2
- package/src/models/Errors.js +1 -0
- package/src/models/ExternalEvent.js +11 -10
- package/src/models/File.js +61 -60
- package/src/models/FileAction.js +1 -0
- package/src/models/FileComment.js +20 -19
- package/src/models/FileCommentReaction.js +11 -10
- package/src/models/FileMigration.js +4 -3
- package/src/models/FileUploadPart.js +1 -0
- package/src/models/Folder.js +12 -11
- package/src/models/FormField.js +1 -0
- package/src/models/FormFieldSet.js +20 -19
- package/src/models/Group.js +23 -22
- package/src/models/GroupUser.js +25 -24
- package/src/models/History.js +35 -34
- package/src/models/HistoryExport.js +27 -26
- package/src/models/HistoryExportResult.js +6 -5
- package/src/models/Image.js +1 -0
- package/src/models/InboxRecipient.js +15 -14
- package/src/models/InboxRegistration.js +4 -3
- package/src/models/InboxUpload.js +5 -4
- package/src/models/Invoice.js +6 -5
- package/src/models/InvoiceLineItem.js +1 -0
- package/src/models/IpAddress.js +5 -4
- package/src/models/Lock.js +17 -16
- package/src/models/Message.js +30 -29
- package/src/models/MessageComment.js +22 -21
- package/src/models/MessageCommentReaction.js +17 -16
- package/src/models/MessageReaction.js +17 -16
- package/src/models/Notification.js +31 -30
- package/src/models/Payment.js +6 -5
- package/src/models/PaymentLineItem.js +1 -0
- package/src/models/Permission.js +16 -15
- package/src/models/Preview.js +3 -2
- package/src/models/Priority.js +6 -5
- package/src/models/Project.js +18 -17
- package/src/models/PublicIpAddress.js +1 -0
- package/src/models/PublicKey.js +22 -21
- package/src/models/RemoteBandwidthSnapshot.js +3 -2
- package/src/models/RemoteServer.js +120 -103
- package/src/models/Request.js +20 -19
- package/src/models/Session.js +6 -5
- package/src/models/SettingsChange.js +3 -2
- package/src/models/Site.js +58 -57
- package/src/models/SsoStrategy.js +10 -9
- package/src/models/Status.js +1 -0
- package/src/models/Style.js +13 -12
- package/src/models/UsageDailySnapshot.js +3 -2
- package/src/models/UsageSnapshot.js +3 -2
- package/src/models/User.js +78 -77
- package/src/models/UserCipherUse.js +4 -3
- package/src/models/UserRequest.js +17 -16
- package/src/models/WebhookTest.js +9 -8
- package/test/src/index.js +46 -0
@@ -0,0 +1,385 @@
|
|
1
|
+
# RemoteServer
|
2
|
+
|
3
|
+
## Example RemoteServer Object
|
4
|
+
|
5
|
+
```
|
6
|
+
{
|
7
|
+
"id": 1,
|
8
|
+
"disabled": true,
|
9
|
+
"authentication_method": "password",
|
10
|
+
"hostname": "remote-server.com",
|
11
|
+
"remote_home_path": "/home/user1",
|
12
|
+
"name": "My Remote server",
|
13
|
+
"port": 1,
|
14
|
+
"max_connections": 1,
|
15
|
+
"s3_bucket": "my-bucket",
|
16
|
+
"s3_region": "us-east-1",
|
17
|
+
"aws_access_key": "",
|
18
|
+
"server_certificate": "require_match",
|
19
|
+
"server_host_key": "[public key]",
|
20
|
+
"server_type": "s3",
|
21
|
+
"ssl": "if_available",
|
22
|
+
"username": "user",
|
23
|
+
"google_cloud_storage_bucket": "my-bucket",
|
24
|
+
"google_cloud_storage_project_id": "my-project",
|
25
|
+
"backblaze_b2_s3_endpoint": "s3.us-west-001.backblazeb2.com",
|
26
|
+
"backblaze_b2_bucket": "my-bucket",
|
27
|
+
"wasabi_bucket": "my-bucket",
|
28
|
+
"wasabi_region": "us-west-1",
|
29
|
+
"wasabi_access_key": "",
|
30
|
+
"rackspace_username": "rackspaceuser",
|
31
|
+
"rackspace_region": "dfw",
|
32
|
+
"rackspace_container": "my-container",
|
33
|
+
"auth_setup_link": "auth/:provider",
|
34
|
+
"auth_status": "in_setup",
|
35
|
+
"auth_account_name": "me@example.com",
|
36
|
+
"one_drive_account_type": "personal",
|
37
|
+
"azure_blob_storage_account": "storage-account-name",
|
38
|
+
"azure_blob_storage_sas_token": "storage-sas-token",
|
39
|
+
"azure_blob_storage_container": "container-name",
|
40
|
+
"azure_files_storage_account": "storage-account-name",
|
41
|
+
"azure_files_storage_sas_token": "storage-sas-token",
|
42
|
+
"azure_files_storage_share_name": "share-name",
|
43
|
+
"s3_compatible_bucket": "my-bucket",
|
44
|
+
"s3_compatible_endpoint": "mys3platform.com",
|
45
|
+
"s3_compatible_region": "us-east-1",
|
46
|
+
"s3_compatible_access_key": "",
|
47
|
+
"enable_dedicated_ips": true
|
48
|
+
}
|
49
|
+
```
|
50
|
+
|
51
|
+
* `id` (int64): Remote server ID
|
52
|
+
* `disabled` (boolean): If true, this server has been disabled due to failures. Make any change or set disabled to false to clear this flag.
|
53
|
+
* `authentication_method` (string): Type of authentication method
|
54
|
+
* `hostname` (string): Hostname or IP address
|
55
|
+
* `remote_home_path` (string): Initial home folder on remote server
|
56
|
+
* `name` (string): Internal name for your reference
|
57
|
+
* `port` (int64): Port for remote server. Not needed for S3.
|
58
|
+
* `max_connections` (int64): Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
|
59
|
+
* `s3_bucket` (string): S3 bucket name
|
60
|
+
* `s3_region` (string): S3 region
|
61
|
+
* `aws_access_key` (string): AWS Access Key.
|
62
|
+
* `server_certificate` (string): Remote server certificate
|
63
|
+
* `server_host_key` (string): Remote server SSH Host Key. If provided, we will require that the server host key matches the provided key. Uses OpenSSH format similar to what would go into ~/.ssh/known_hosts
|
64
|
+
* `server_type` (string): Remote server type.
|
65
|
+
* `ssl` (string): Should we require SSL?
|
66
|
+
* `username` (string): Remote server username. Not needed for S3 buckets.
|
67
|
+
* `google_cloud_storage_bucket` (string): Google Cloud Storage bucket name
|
68
|
+
* `google_cloud_storage_project_id` (string): Google Cloud Project ID
|
69
|
+
* `backblaze_b2_s3_endpoint` (string): Backblaze B2 Cloud Storage S3 Endpoint
|
70
|
+
* `backblaze_b2_bucket` (string): Backblaze B2 Cloud Storage Bucket name
|
71
|
+
* `wasabi_bucket` (string): Wasabi Bucket name
|
72
|
+
* `wasabi_region` (string): Wasabi region
|
73
|
+
* `wasabi_access_key` (string): Wasabi access key.
|
74
|
+
* `rackspace_username` (string): Rackspace username used to login to the Rackspace Cloud Control Panel.
|
75
|
+
* `rackspace_region` (string): Three letter airport code for Rackspace region. See https://support.rackspace.com/how-to/about-regions/
|
76
|
+
* `rackspace_container` (string): The name of the container (top level directory) where files will sync.
|
77
|
+
* `auth_setup_link` (string): Returns link to login with an Oauth provider
|
78
|
+
* `auth_status` (string): Either `in_setup` or `complete`
|
79
|
+
* `auth_account_name` (string): Describes the authorized account
|
80
|
+
* `one_drive_account_type` (string): Either personal or business_other account types
|
81
|
+
* `azure_blob_storage_account` (string): Azure Blob Storage Account name
|
82
|
+
* `azure_blob_storage_sas_token` (string): Shared Access Signature (SAS) token
|
83
|
+
* `azure_blob_storage_container` (string): Azure Blob Storage Container name
|
84
|
+
* `azure_files_storage_account` (string): Azure File Storage Account name
|
85
|
+
* `azure_files_storage_sas_token` (string): Shared Access Signature (SAS) token
|
86
|
+
* `azure_files_storage_share_name` (string): Azure File Storage Share name
|
87
|
+
* `s3_compatible_bucket` (string): S3-compatible Bucket name
|
88
|
+
* `s3_compatible_endpoint` (string): S3-compatible endpoint
|
89
|
+
* `s3_compatible_region` (string): S3-compatible endpoint
|
90
|
+
* `s3_compatible_access_key` (string): S3-compatible Access Key.
|
91
|
+
* `enable_dedicated_ips` (boolean): `true` if remote server only accepts connections from dedicated IPs
|
92
|
+
* `aws_secret_key` (string): AWS secret key.
|
93
|
+
* `password` (string): Password if needed.
|
94
|
+
* `private_key` (string): Private key if needed.
|
95
|
+
* `private_key_passphrase` (string): Passphrase for private key if needed.
|
96
|
+
* `ssl_certificate` (string): SSL client certificate.
|
97
|
+
* `google_cloud_storage_credentials_json` (string): A JSON file that contains the private key. To generate see https://cloud.google.com/storage/docs/json_api/v1/how-tos/authorizing#APIKey
|
98
|
+
* `wasabi_secret_key` (string): Wasabi secret key.
|
99
|
+
* `backblaze_b2_key_id` (string): Backblaze B2 Cloud Storage keyID.
|
100
|
+
* `backblaze_b2_application_key` (string): Backblaze B2 Cloud Storage applicationKey.
|
101
|
+
* `rackspace_api_key` (string): Rackspace API key from the Rackspace Cloud Control Panel.
|
102
|
+
* `reset_authentication` (boolean): Reset authenticated account
|
103
|
+
* `azure_blob_storage_access_key` (string): Azure Blob Storage secret key.
|
104
|
+
* `azure_files_storage_access_key` (string): Azure File Storage access key.
|
105
|
+
* `s3_compatible_secret_key` (string): S3-compatible secret key
|
106
|
+
|
107
|
+
---
|
108
|
+
|
109
|
+
## List Remote Servers
|
110
|
+
|
111
|
+
```
|
112
|
+
await RemoteServer.list({
|
113
|
+
'per_page': 1,
|
114
|
+
})
|
115
|
+
```
|
116
|
+
|
117
|
+
|
118
|
+
### Parameters
|
119
|
+
|
120
|
+
* `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.
|
121
|
+
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
122
|
+
|
123
|
+
---
|
124
|
+
|
125
|
+
## Show Remote Server
|
126
|
+
|
127
|
+
```
|
128
|
+
await RemoteServer.find(id)
|
129
|
+
```
|
130
|
+
|
131
|
+
|
132
|
+
### Parameters
|
133
|
+
|
134
|
+
* `id` (int64): Required - Remote Server ID.
|
135
|
+
|
136
|
+
---
|
137
|
+
|
138
|
+
## Create Remote Server
|
139
|
+
|
140
|
+
```
|
141
|
+
await RemoteServer.create({
|
142
|
+
'reset_authentication': true,
|
143
|
+
'hostname': "remote-server.com",
|
144
|
+
'name': "My Remote server",
|
145
|
+
'max_connections': 1,
|
146
|
+
'port': 1,
|
147
|
+
's3_bucket': "my-bucket",
|
148
|
+
's3_region': "us-east-1",
|
149
|
+
'server_certificate': "require_match",
|
150
|
+
'server_host_key': "[public key]",
|
151
|
+
'server_type': "s3",
|
152
|
+
'ssl': "if_available",
|
153
|
+
'username': "user",
|
154
|
+
'google_cloud_storage_bucket': "my-bucket",
|
155
|
+
'google_cloud_storage_project_id': "my-project",
|
156
|
+
'backblaze_b2_bucket': "my-bucket",
|
157
|
+
'backblaze_b2_s3_endpoint': "s3.us-west-001.backblazeb2.com",
|
158
|
+
'wasabi_bucket': "my-bucket",
|
159
|
+
'wasabi_region': "us-west-1",
|
160
|
+
'rackspace_username': "rackspaceuser",
|
161
|
+
'rackspace_region': "dfw",
|
162
|
+
'rackspace_container': "my-container",
|
163
|
+
'one_drive_account_type': "personal",
|
164
|
+
'azure_blob_storage_account': "storage-account-name",
|
165
|
+
'azure_blob_storage_container': "container-name",
|
166
|
+
'azure_blob_storage_sas_token': "storage-sas-token",
|
167
|
+
'azure_files_storage_account': "storage-account-name",
|
168
|
+
'azure_files_storage_share_name': "share-name",
|
169
|
+
'azure_files_storage_sas_token': "storage-sas-token",
|
170
|
+
's3_compatible_bucket': "my-bucket",
|
171
|
+
's3_compatible_endpoint': "mys3platform.com",
|
172
|
+
's3_compatible_region': "us-east-1",
|
173
|
+
'enable_dedicated_ips': true,
|
174
|
+
})
|
175
|
+
```
|
176
|
+
|
177
|
+
|
178
|
+
### Parameters
|
179
|
+
|
180
|
+
* `aws_access_key` (string): AWS Access Key.
|
181
|
+
* `aws_secret_key` (string): AWS secret key.
|
182
|
+
* `password` (string): Password if needed.
|
183
|
+
* `private_key` (string): Private key if needed.
|
184
|
+
* `private_key_passphrase` (string): Passphrase for private key if needed.
|
185
|
+
* `ssl_certificate` (string): SSL client certificate.
|
186
|
+
* `google_cloud_storage_credentials_json` (string): A JSON file that contains the private key. To generate see https://cloud.google.com/storage/docs/json_api/v1/how-tos/authorizing#APIKey
|
187
|
+
* `wasabi_access_key` (string): Wasabi access key.
|
188
|
+
* `wasabi_secret_key` (string): Wasabi secret key.
|
189
|
+
* `backblaze_b2_key_id` (string): Backblaze B2 Cloud Storage keyID.
|
190
|
+
* `backblaze_b2_application_key` (string): Backblaze B2 Cloud Storage applicationKey.
|
191
|
+
* `rackspace_api_key` (string): Rackspace API key from the Rackspace Cloud Control Panel.
|
192
|
+
* `reset_authentication` (boolean): Reset authenticated account
|
193
|
+
* `azure_blob_storage_access_key` (string): Azure Blob Storage secret key.
|
194
|
+
* `azure_files_storage_access_key` (string): Azure File Storage access key.
|
195
|
+
* `hostname` (string): Hostname or IP address
|
196
|
+
* `name` (string): Internal name for your reference
|
197
|
+
* `max_connections` (int64): Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
|
198
|
+
* `port` (int64): Port for remote server. Not needed for S3.
|
199
|
+
* `s3_bucket` (string): S3 bucket name
|
200
|
+
* `s3_region` (string): S3 region
|
201
|
+
* `server_certificate` (string): Remote server certificate
|
202
|
+
* `server_host_key` (string): Remote server SSH Host Key. If provided, we will require that the server host key matches the provided key. Uses OpenSSH format similar to what would go into ~/.ssh/known_hosts
|
203
|
+
* `server_type` (string): Remote server type.
|
204
|
+
* `ssl` (string): Should we require SSL?
|
205
|
+
* `username` (string): Remote server username. Not needed for S3 buckets.
|
206
|
+
* `google_cloud_storage_bucket` (string): Google Cloud Storage bucket name
|
207
|
+
* `google_cloud_storage_project_id` (string): Google Cloud Project ID
|
208
|
+
* `backblaze_b2_bucket` (string): Backblaze B2 Cloud Storage Bucket name
|
209
|
+
* `backblaze_b2_s3_endpoint` (string): Backblaze B2 Cloud Storage S3 Endpoint
|
210
|
+
* `wasabi_bucket` (string): Wasabi Bucket name
|
211
|
+
* `wasabi_region` (string): Wasabi region
|
212
|
+
* `rackspace_username` (string): Rackspace username used to login to the Rackspace Cloud Control Panel.
|
213
|
+
* `rackspace_region` (string): Three letter airport code for Rackspace region. See https://support.rackspace.com/how-to/about-regions/
|
214
|
+
* `rackspace_container` (string): The name of the container (top level directory) where files will sync.
|
215
|
+
* `one_drive_account_type` (string): Either personal or business_other account types
|
216
|
+
* `azure_blob_storage_account` (string): Azure Blob Storage Account name
|
217
|
+
* `azure_blob_storage_container` (string): Azure Blob Storage Container name
|
218
|
+
* `azure_blob_storage_sas_token` (string): Shared Access Signature (SAS) token
|
219
|
+
* `azure_files_storage_account` (string): Azure File Storage Account name
|
220
|
+
* `azure_files_storage_share_name` (string): Azure File Storage Share name
|
221
|
+
* `azure_files_storage_sas_token` (string): Shared Access Signature (SAS) token
|
222
|
+
* `s3_compatible_bucket` (string): S3-compatible Bucket name
|
223
|
+
* `s3_compatible_endpoint` (string): S3-compatible endpoint
|
224
|
+
* `s3_compatible_region` (string): S3-compatible endpoint
|
225
|
+
* `enable_dedicated_ips` (boolean): `true` if remote server only accepts connections from dedicated IPs
|
226
|
+
* `s3_compatible_access_key` (string): S3-compatible Access Key.
|
227
|
+
* `s3_compatible_secret_key` (string): S3-compatible secret key
|
228
|
+
|
229
|
+
---
|
230
|
+
|
231
|
+
## Update Remote Server
|
232
|
+
|
233
|
+
```
|
234
|
+
const [remote_server] = await RemoteServer.list()
|
235
|
+
|
236
|
+
await remote_server.update({
|
237
|
+
'reset_authentication': true,
|
238
|
+
'hostname': "remote-server.com",
|
239
|
+
'name': "My Remote server",
|
240
|
+
'max_connections': 1,
|
241
|
+
'port': 1,
|
242
|
+
's3_bucket': "my-bucket",
|
243
|
+
's3_region': "us-east-1",
|
244
|
+
'server_certificate': "require_match",
|
245
|
+
'server_host_key': "[public key]",
|
246
|
+
'server_type': "s3",
|
247
|
+
'ssl': "if_available",
|
248
|
+
'username': "user",
|
249
|
+
'google_cloud_storage_bucket': "my-bucket",
|
250
|
+
'google_cloud_storage_project_id': "my-project",
|
251
|
+
'backblaze_b2_bucket': "my-bucket",
|
252
|
+
'backblaze_b2_s3_endpoint': "s3.us-west-001.backblazeb2.com",
|
253
|
+
'wasabi_bucket': "my-bucket",
|
254
|
+
'wasabi_region': "us-west-1",
|
255
|
+
'rackspace_username': "rackspaceuser",
|
256
|
+
'rackspace_region': "dfw",
|
257
|
+
'rackspace_container': "my-container",
|
258
|
+
'one_drive_account_type': "personal",
|
259
|
+
'azure_blob_storage_account': "storage-account-name",
|
260
|
+
'azure_blob_storage_container': "container-name",
|
261
|
+
'azure_blob_storage_sas_token': "storage-sas-token",
|
262
|
+
'azure_files_storage_account': "storage-account-name",
|
263
|
+
'azure_files_storage_share_name': "share-name",
|
264
|
+
'azure_files_storage_sas_token': "storage-sas-token",
|
265
|
+
's3_compatible_bucket': "my-bucket",
|
266
|
+
's3_compatible_endpoint': "mys3platform.com",
|
267
|
+
's3_compatible_region': "us-east-1",
|
268
|
+
'enable_dedicated_ips': true,
|
269
|
+
})
|
270
|
+
```
|
271
|
+
|
272
|
+
### Parameters
|
273
|
+
|
274
|
+
* `id` (int64): Required - Remote Server ID.
|
275
|
+
* `aws_access_key` (string): AWS Access Key.
|
276
|
+
* `aws_secret_key` (string): AWS secret key.
|
277
|
+
* `password` (string): Password if needed.
|
278
|
+
* `private_key` (string): Private key if needed.
|
279
|
+
* `private_key_passphrase` (string): Passphrase for private key if needed.
|
280
|
+
* `ssl_certificate` (string): SSL client certificate.
|
281
|
+
* `google_cloud_storage_credentials_json` (string): A JSON file that contains the private key. To generate see https://cloud.google.com/storage/docs/json_api/v1/how-tos/authorizing#APIKey
|
282
|
+
* `wasabi_access_key` (string): Wasabi access key.
|
283
|
+
* `wasabi_secret_key` (string): Wasabi secret key.
|
284
|
+
* `backblaze_b2_key_id` (string): Backblaze B2 Cloud Storage keyID.
|
285
|
+
* `backblaze_b2_application_key` (string): Backblaze B2 Cloud Storage applicationKey.
|
286
|
+
* `rackspace_api_key` (string): Rackspace API key from the Rackspace Cloud Control Panel.
|
287
|
+
* `reset_authentication` (boolean): Reset authenticated account
|
288
|
+
* `azure_blob_storage_access_key` (string): Azure Blob Storage secret key.
|
289
|
+
* `azure_files_storage_access_key` (string): Azure File Storage access key.
|
290
|
+
* `hostname` (string): Hostname or IP address
|
291
|
+
* `name` (string): Internal name for your reference
|
292
|
+
* `max_connections` (int64): Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
|
293
|
+
* `port` (int64): Port for remote server. Not needed for S3.
|
294
|
+
* `s3_bucket` (string): S3 bucket name
|
295
|
+
* `s3_region` (string): S3 region
|
296
|
+
* `server_certificate` (string): Remote server certificate
|
297
|
+
* `server_host_key` (string): Remote server SSH Host Key. If provided, we will require that the server host key matches the provided key. Uses OpenSSH format similar to what would go into ~/.ssh/known_hosts
|
298
|
+
* `server_type` (string): Remote server type.
|
299
|
+
* `ssl` (string): Should we require SSL?
|
300
|
+
* `username` (string): Remote server username. Not needed for S3 buckets.
|
301
|
+
* `google_cloud_storage_bucket` (string): Google Cloud Storage bucket name
|
302
|
+
* `google_cloud_storage_project_id` (string): Google Cloud Project ID
|
303
|
+
* `backblaze_b2_bucket` (string): Backblaze B2 Cloud Storage Bucket name
|
304
|
+
* `backblaze_b2_s3_endpoint` (string): Backblaze B2 Cloud Storage S3 Endpoint
|
305
|
+
* `wasabi_bucket` (string): Wasabi Bucket name
|
306
|
+
* `wasabi_region` (string): Wasabi region
|
307
|
+
* `rackspace_username` (string): Rackspace username used to login to the Rackspace Cloud Control Panel.
|
308
|
+
* `rackspace_region` (string): Three letter airport code for Rackspace region. See https://support.rackspace.com/how-to/about-regions/
|
309
|
+
* `rackspace_container` (string): The name of the container (top level directory) where files will sync.
|
310
|
+
* `one_drive_account_type` (string): Either personal or business_other account types
|
311
|
+
* `azure_blob_storage_account` (string): Azure Blob Storage Account name
|
312
|
+
* `azure_blob_storage_container` (string): Azure Blob Storage Container name
|
313
|
+
* `azure_blob_storage_sas_token` (string): Shared Access Signature (SAS) token
|
314
|
+
* `azure_files_storage_account` (string): Azure File Storage Account name
|
315
|
+
* `azure_files_storage_share_name` (string): Azure File Storage Share name
|
316
|
+
* `azure_files_storage_sas_token` (string): Shared Access Signature (SAS) token
|
317
|
+
* `s3_compatible_bucket` (string): S3-compatible Bucket name
|
318
|
+
* `s3_compatible_endpoint` (string): S3-compatible endpoint
|
319
|
+
* `s3_compatible_region` (string): S3-compatible endpoint
|
320
|
+
* `enable_dedicated_ips` (boolean): `true` if remote server only accepts connections from dedicated IPs
|
321
|
+
* `s3_compatible_access_key` (string): S3-compatible Access Key.
|
322
|
+
* `s3_compatible_secret_key` (string): S3-compatible secret key
|
323
|
+
|
324
|
+
### Example Response
|
325
|
+
|
326
|
+
```json
|
327
|
+
{
|
328
|
+
"id": 1,
|
329
|
+
"disabled": true,
|
330
|
+
"authentication_method": "password",
|
331
|
+
"hostname": "remote-server.com",
|
332
|
+
"remote_home_path": "/home/user1",
|
333
|
+
"name": "My Remote server",
|
334
|
+
"port": 1,
|
335
|
+
"max_connections": 1,
|
336
|
+
"s3_bucket": "my-bucket",
|
337
|
+
"s3_region": "us-east-1",
|
338
|
+
"aws_access_key": "",
|
339
|
+
"server_certificate": "require_match",
|
340
|
+
"server_host_key": "[public key]",
|
341
|
+
"server_type": "s3",
|
342
|
+
"ssl": "if_available",
|
343
|
+
"username": "user",
|
344
|
+
"google_cloud_storage_bucket": "my-bucket",
|
345
|
+
"google_cloud_storage_project_id": "my-project",
|
346
|
+
"backblaze_b2_s3_endpoint": "s3.us-west-001.backblazeb2.com",
|
347
|
+
"backblaze_b2_bucket": "my-bucket",
|
348
|
+
"wasabi_bucket": "my-bucket",
|
349
|
+
"wasabi_region": "us-west-1",
|
350
|
+
"wasabi_access_key": "",
|
351
|
+
"rackspace_username": "rackspaceuser",
|
352
|
+
"rackspace_region": "dfw",
|
353
|
+
"rackspace_container": "my-container",
|
354
|
+
"auth_setup_link": "auth/:provider",
|
355
|
+
"auth_status": "in_setup",
|
356
|
+
"auth_account_name": "me@example.com",
|
357
|
+
"one_drive_account_type": "personal",
|
358
|
+
"azure_blob_storage_account": "storage-account-name",
|
359
|
+
"azure_blob_storage_sas_token": "storage-sas-token",
|
360
|
+
"azure_blob_storage_container": "container-name",
|
361
|
+
"azure_files_storage_account": "storage-account-name",
|
362
|
+
"azure_files_storage_sas_token": "storage-sas-token",
|
363
|
+
"azure_files_storage_share_name": "share-name",
|
364
|
+
"s3_compatible_bucket": "my-bucket",
|
365
|
+
"s3_compatible_endpoint": "mys3platform.com",
|
366
|
+
"s3_compatible_region": "us-east-1",
|
367
|
+
"s3_compatible_access_key": "",
|
368
|
+
"enable_dedicated_ips": true
|
369
|
+
}
|
370
|
+
```
|
371
|
+
|
372
|
+
---
|
373
|
+
|
374
|
+
## Delete Remote Server
|
375
|
+
|
376
|
+
```
|
377
|
+
const [remote_server] = await RemoteServer.list()
|
378
|
+
|
379
|
+
await remote_server.delete()
|
380
|
+
```
|
381
|
+
|
382
|
+
### Parameters
|
383
|
+
|
384
|
+
* `id` (int64): Required - Remote Server ID.
|
385
|
+
|
@@ -0,0 +1,97 @@
|
|
1
|
+
# Request
|
2
|
+
|
3
|
+
## Example Request Object
|
4
|
+
|
5
|
+
```
|
6
|
+
{
|
7
|
+
"id": 1,
|
8
|
+
"path": "",
|
9
|
+
"source": "",
|
10
|
+
"destination": "",
|
11
|
+
"automation_id": "",
|
12
|
+
"user_display_name": ""
|
13
|
+
}
|
14
|
+
```
|
15
|
+
|
16
|
+
* `id` (int64): Request ID
|
17
|
+
* `path` (string): Folder path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
|
18
|
+
* `source` (string): Source filename, if applicable
|
19
|
+
* `destination` (string): Destination filename
|
20
|
+
* `automation_id` (string): ID of automation that created request
|
21
|
+
* `user_display_name` (string): User making the request (if applicable)
|
22
|
+
* `user_ids` (string): A list of user IDs to request the file from. If sent as a string, it should be comma-delimited.
|
23
|
+
* `group_ids` (string): A list of group IDs to request the file from. If sent as a string, it should be comma-delimited.
|
24
|
+
|
25
|
+
---
|
26
|
+
|
27
|
+
## List Requests
|
28
|
+
|
29
|
+
```
|
30
|
+
await Request.list({
|
31
|
+
'per_page': 1,
|
32
|
+
'mine': true,
|
33
|
+
})
|
34
|
+
```
|
35
|
+
|
36
|
+
|
37
|
+
### Parameters
|
38
|
+
|
39
|
+
* `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.
|
40
|
+
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
41
|
+
* `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`.
|
42
|
+
* `mine` (boolean): Only show requests of the current user? (Defaults to true if current user is not a site admin.)
|
43
|
+
* `path` (string): Path to show requests for. If omitted, shows all paths. Send `/` to represent the root directory.
|
44
|
+
|
45
|
+
---
|
46
|
+
|
47
|
+
## List Requests
|
48
|
+
|
49
|
+
```
|
50
|
+
await Request.getFolder(path, {
|
51
|
+
'per_page': 1,
|
52
|
+
'mine': true,
|
53
|
+
})
|
54
|
+
```
|
55
|
+
|
56
|
+
|
57
|
+
### Parameters
|
58
|
+
|
59
|
+
* `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.
|
60
|
+
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
61
|
+
* `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`.
|
62
|
+
* `mine` (boolean): Only show requests of the current user? (Defaults to true if current user is not a site admin.)
|
63
|
+
* `path` (string): Required - Path to show requests for. If omitted, shows all paths. Send `/` to represent the root directory.
|
64
|
+
|
65
|
+
---
|
66
|
+
|
67
|
+
## Create Request
|
68
|
+
|
69
|
+
```
|
70
|
+
await Request.create({
|
71
|
+
'path': "path",
|
72
|
+
'destination': "destination",
|
73
|
+
})
|
74
|
+
```
|
75
|
+
|
76
|
+
|
77
|
+
### Parameters
|
78
|
+
|
79
|
+
* `path` (string): Required - Folder path on which to request the file.
|
80
|
+
* `destination` (string): Required - Destination filename (without extension) to request.
|
81
|
+
* `user_ids` (string): A list of user IDs to request the file from. If sent as a string, it should be comma-delimited.
|
82
|
+
* `group_ids` (string): A list of group IDs to request the file from. If sent as a string, it should be comma-delimited.
|
83
|
+
|
84
|
+
---
|
85
|
+
|
86
|
+
## Delete Request
|
87
|
+
|
88
|
+
```
|
89
|
+
const [request] = await Request.list()
|
90
|
+
|
91
|
+
await request.delete()
|
92
|
+
```
|
93
|
+
|
94
|
+
### Parameters
|
95
|
+
|
96
|
+
* `id` (int64): Required - Request ID.
|
97
|
+
|
@@ -0,0 +1,50 @@
|
|
1
|
+
# Session
|
2
|
+
|
3
|
+
## Example Session Object
|
4
|
+
|
5
|
+
```
|
6
|
+
{
|
7
|
+
"id": "60525f92e859c4c3d74cb02fd176b1525901b525",
|
8
|
+
"language": "en",
|
9
|
+
"read_only": true,
|
10
|
+
"sftp_insecure_ciphers": true
|
11
|
+
}
|
12
|
+
```
|
13
|
+
|
14
|
+
* `id` (string): Session ID
|
15
|
+
* `language` (string): Session language
|
16
|
+
* `read_only` (boolean): Is this session read only?
|
17
|
+
* `sftp_insecure_ciphers` (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.)
|
18
|
+
* `username` (string): Username to sign in as
|
19
|
+
* `password` (string): Password for sign in
|
20
|
+
* `otp` (string): If this user has a 2FA device, provide its OTP or code here.
|
21
|
+
* `partial_session_id` (string): Identifier for a partially-completed login
|
22
|
+
|
23
|
+
---
|
24
|
+
|
25
|
+
## Create user session (log in)
|
26
|
+
|
27
|
+
```
|
28
|
+
await Session.create({
|
29
|
+
'username': "username",
|
30
|
+
'password': "password",
|
31
|
+
'otp': "123456",
|
32
|
+
})
|
33
|
+
```
|
34
|
+
|
35
|
+
|
36
|
+
### Parameters
|
37
|
+
|
38
|
+
* `username` (string): Username to sign in as
|
39
|
+
* `password` (string): Password for sign in
|
40
|
+
* `otp` (string): If this user has a 2FA device, provide its OTP or code here.
|
41
|
+
* `partial_session_id` (string): Identifier for a partially-completed login
|
42
|
+
|
43
|
+
---
|
44
|
+
|
45
|
+
## Delete user session (log out)
|
46
|
+
|
47
|
+
```
|
48
|
+
await Session.delete
|
49
|
+
```
|
50
|
+
|
@@ -0,0 +1,44 @@
|
|
1
|
+
# SettingsChange
|
2
|
+
|
3
|
+
## Example SettingsChange Object
|
4
|
+
|
5
|
+
```
|
6
|
+
{
|
7
|
+
"changes": [
|
8
|
+
""
|
9
|
+
],
|
10
|
+
"created_at": "2000-01-01T01:00:00Z",
|
11
|
+
"user_id": 1,
|
12
|
+
"user_is_files_support": true,
|
13
|
+
"username": "some_user"
|
14
|
+
}
|
15
|
+
```
|
16
|
+
|
17
|
+
* `changes` (string): Markdown-formatted change messages.
|
18
|
+
* `created_at` (date-time): The time this change was made
|
19
|
+
* `user_id` (int64): The user id responsible for this change
|
20
|
+
* `user_is_files_support` (boolean): true if this change was performed by Files.com support.
|
21
|
+
* `username` (string): The username of the user responsible for this change
|
22
|
+
|
23
|
+
---
|
24
|
+
|
25
|
+
## List Settings Changes
|
26
|
+
|
27
|
+
```
|
28
|
+
await SettingsChange.list({
|
29
|
+
'per_page': 1,
|
30
|
+
})
|
31
|
+
```
|
32
|
+
|
33
|
+
|
34
|
+
### Parameters
|
35
|
+
|
36
|
+
* `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.
|
37
|
+
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
38
|
+
* `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`.
|
39
|
+
* `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`.
|
40
|
+
* `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`.
|
41
|
+
* `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`.
|
42
|
+
* `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`.
|
43
|
+
* `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`.
|
44
|
+
* `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`.
|