files.com 1.0.189 → 1.0.192
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 +3127 -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 +51 -43
- 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 +223 -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 -50
- 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 +1 -0
- 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,134 @@
|
|
1
|
+
# Message
|
2
|
+
|
3
|
+
## Example Message Object
|
4
|
+
|
5
|
+
```
|
6
|
+
{
|
7
|
+
"id": 1,
|
8
|
+
"subject": "Files.com Account Upgrade",
|
9
|
+
"body": "We should upgrade our Files.com account!",
|
10
|
+
"comments": {
|
11
|
+
"id": 1,
|
12
|
+
"body": "What a great idea, thank you!",
|
13
|
+
"reactions": {
|
14
|
+
"id": 1,
|
15
|
+
"emoji": "👍"
|
16
|
+
}
|
17
|
+
}
|
18
|
+
}
|
19
|
+
```
|
20
|
+
|
21
|
+
* `id` (int64): Message ID
|
22
|
+
* `subject` (string): Message subject.
|
23
|
+
* `body` (string): Message body.
|
24
|
+
* `comments` (MessageComment): Comments.
|
25
|
+
* `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
|
26
|
+
* `project_id` (int64): Project to which the message should be attached.
|
27
|
+
|
28
|
+
---
|
29
|
+
|
30
|
+
## List Messages
|
31
|
+
|
32
|
+
```
|
33
|
+
await Message.list({
|
34
|
+
'user_id': 1,
|
35
|
+
'per_page': 1,
|
36
|
+
'project_id': 1,
|
37
|
+
})
|
38
|
+
```
|
39
|
+
|
40
|
+
|
41
|
+
### Parameters
|
42
|
+
|
43
|
+
* `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
|
44
|
+
* `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.
|
45
|
+
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
46
|
+
* `project_id` (int64): Required - Project for which to return messages.
|
47
|
+
|
48
|
+
---
|
49
|
+
|
50
|
+
## Show Message
|
51
|
+
|
52
|
+
```
|
53
|
+
await Message.find(id)
|
54
|
+
```
|
55
|
+
|
56
|
+
|
57
|
+
### Parameters
|
58
|
+
|
59
|
+
* `id` (int64): Required - Message ID.
|
60
|
+
|
61
|
+
---
|
62
|
+
|
63
|
+
## Create Message
|
64
|
+
|
65
|
+
```
|
66
|
+
await Message.create({
|
67
|
+
'user_id': 1,
|
68
|
+
'project_id': 1,
|
69
|
+
'subject': "Files.com Account Upgrade",
|
70
|
+
'body': "We should upgrade our Files.com account!",
|
71
|
+
})
|
72
|
+
```
|
73
|
+
|
74
|
+
|
75
|
+
### Parameters
|
76
|
+
|
77
|
+
* `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
|
78
|
+
* `project_id` (int64): Required - Project to which the message should be attached.
|
79
|
+
* `subject` (string): Required - Message subject.
|
80
|
+
* `body` (string): Required - Message body.
|
81
|
+
|
82
|
+
---
|
83
|
+
|
84
|
+
## Update Message
|
85
|
+
|
86
|
+
```
|
87
|
+
const [message] = await Message.list()
|
88
|
+
|
89
|
+
await message.update({
|
90
|
+
'project_id': 1,
|
91
|
+
'subject': "Files.com Account Upgrade",
|
92
|
+
'body': "We should upgrade our Files.com account!",
|
93
|
+
})
|
94
|
+
```
|
95
|
+
|
96
|
+
### Parameters
|
97
|
+
|
98
|
+
* `id` (int64): Required - Message ID.
|
99
|
+
* `project_id` (int64): Required - Project to which the message should be attached.
|
100
|
+
* `subject` (string): Required - Message subject.
|
101
|
+
* `body` (string): Required - Message body.
|
102
|
+
|
103
|
+
### Example Response
|
104
|
+
|
105
|
+
```json
|
106
|
+
{
|
107
|
+
"id": 1,
|
108
|
+
"subject": "Files.com Account Upgrade",
|
109
|
+
"body": "We should upgrade our Files.com account!",
|
110
|
+
"comments": {
|
111
|
+
"id": 1,
|
112
|
+
"body": "What a great idea, thank you!",
|
113
|
+
"reactions": {
|
114
|
+
"id": 1,
|
115
|
+
"emoji": "👍"
|
116
|
+
}
|
117
|
+
}
|
118
|
+
}
|
119
|
+
```
|
120
|
+
|
121
|
+
---
|
122
|
+
|
123
|
+
## Delete Message
|
124
|
+
|
125
|
+
```
|
126
|
+
const [message] = await Message.list()
|
127
|
+
|
128
|
+
await message.delete()
|
129
|
+
```
|
130
|
+
|
131
|
+
### Parameters
|
132
|
+
|
133
|
+
* `id` (int64): Required - Message ID.
|
134
|
+
|
@@ -0,0 +1,114 @@
|
|
1
|
+
# MessageComment
|
2
|
+
|
3
|
+
## Example MessageComment Object
|
4
|
+
|
5
|
+
```
|
6
|
+
{
|
7
|
+
"id": 1,
|
8
|
+
"body": "What a great idea, thank you!",
|
9
|
+
"reactions": {
|
10
|
+
"id": 1,
|
11
|
+
"emoji": "👍"
|
12
|
+
}
|
13
|
+
}
|
14
|
+
```
|
15
|
+
|
16
|
+
* `id` (int64): Message Comment ID
|
17
|
+
* `body` (string): Comment body.
|
18
|
+
* `reactions` (MessageCommentReaction): Reactions to this comment.
|
19
|
+
* `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
|
20
|
+
|
21
|
+
---
|
22
|
+
|
23
|
+
## List Message Comments
|
24
|
+
|
25
|
+
```
|
26
|
+
await MessageComment.list({
|
27
|
+
'user_id': 1,
|
28
|
+
'per_page': 1,
|
29
|
+
'message_id': 1,
|
30
|
+
})
|
31
|
+
```
|
32
|
+
|
33
|
+
|
34
|
+
### Parameters
|
35
|
+
|
36
|
+
* `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
|
37
|
+
* `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.
|
38
|
+
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
39
|
+
* `message_id` (int64): Required - Message comment to return comments for.
|
40
|
+
|
41
|
+
---
|
42
|
+
|
43
|
+
## Show Message Comment
|
44
|
+
|
45
|
+
```
|
46
|
+
await MessageComment.find(id)
|
47
|
+
```
|
48
|
+
|
49
|
+
|
50
|
+
### Parameters
|
51
|
+
|
52
|
+
* `id` (int64): Required - Message Comment ID.
|
53
|
+
|
54
|
+
---
|
55
|
+
|
56
|
+
## Create Message Comment
|
57
|
+
|
58
|
+
```
|
59
|
+
await MessageComment.create({
|
60
|
+
'user_id': 1,
|
61
|
+
'body': "body",
|
62
|
+
})
|
63
|
+
```
|
64
|
+
|
65
|
+
|
66
|
+
### Parameters
|
67
|
+
|
68
|
+
* `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
|
69
|
+
* `body` (string): Required - Comment body.
|
70
|
+
|
71
|
+
---
|
72
|
+
|
73
|
+
## Update Message Comment
|
74
|
+
|
75
|
+
```
|
76
|
+
const [message_comment] = await MessageComment.list()
|
77
|
+
|
78
|
+
await message_comment.update({
|
79
|
+
'body': "body",
|
80
|
+
})
|
81
|
+
```
|
82
|
+
|
83
|
+
### Parameters
|
84
|
+
|
85
|
+
* `id` (int64): Required - Message Comment ID.
|
86
|
+
* `body` (string): Required - Comment body.
|
87
|
+
|
88
|
+
### Example Response
|
89
|
+
|
90
|
+
```json
|
91
|
+
{
|
92
|
+
"id": 1,
|
93
|
+
"body": "What a great idea, thank you!",
|
94
|
+
"reactions": {
|
95
|
+
"id": 1,
|
96
|
+
"emoji": "👍"
|
97
|
+
}
|
98
|
+
}
|
99
|
+
```
|
100
|
+
|
101
|
+
---
|
102
|
+
|
103
|
+
## Delete Message Comment
|
104
|
+
|
105
|
+
```
|
106
|
+
const [message_comment] = await MessageComment.list()
|
107
|
+
|
108
|
+
await message_comment.delete()
|
109
|
+
```
|
110
|
+
|
111
|
+
### Parameters
|
112
|
+
|
113
|
+
* `id` (int64): Required - Message Comment ID.
|
114
|
+
|
@@ -0,0 +1,79 @@
|
|
1
|
+
# MessageCommentReaction
|
2
|
+
|
3
|
+
## Example MessageCommentReaction Object
|
4
|
+
|
5
|
+
```
|
6
|
+
{
|
7
|
+
"id": 1,
|
8
|
+
"emoji": "👍"
|
9
|
+
}
|
10
|
+
```
|
11
|
+
|
12
|
+
* `id` (int64): Reaction ID
|
13
|
+
* `emoji` (string): Emoji used in the reaction.
|
14
|
+
* `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
|
15
|
+
|
16
|
+
---
|
17
|
+
|
18
|
+
## List Message Comment Reactions
|
19
|
+
|
20
|
+
```
|
21
|
+
await MessageCommentReaction.list({
|
22
|
+
'user_id': 1,
|
23
|
+
'per_page': 1,
|
24
|
+
'message_comment_id': 1,
|
25
|
+
})
|
26
|
+
```
|
27
|
+
|
28
|
+
|
29
|
+
### Parameters
|
30
|
+
|
31
|
+
* `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
|
32
|
+
* `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.
|
33
|
+
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
34
|
+
* `message_comment_id` (int64): Required - Message comment to return reactions for.
|
35
|
+
|
36
|
+
---
|
37
|
+
|
38
|
+
## Show Message Comment Reaction
|
39
|
+
|
40
|
+
```
|
41
|
+
await MessageCommentReaction.find(id)
|
42
|
+
```
|
43
|
+
|
44
|
+
|
45
|
+
### Parameters
|
46
|
+
|
47
|
+
* `id` (int64): Required - Message Comment Reaction ID.
|
48
|
+
|
49
|
+
---
|
50
|
+
|
51
|
+
## Create Message Comment Reaction
|
52
|
+
|
53
|
+
```
|
54
|
+
await MessageCommentReaction.create({
|
55
|
+
'user_id': 1,
|
56
|
+
'emoji': "emoji",
|
57
|
+
})
|
58
|
+
```
|
59
|
+
|
60
|
+
|
61
|
+
### Parameters
|
62
|
+
|
63
|
+
* `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
|
64
|
+
* `emoji` (string): Required - Emoji to react with.
|
65
|
+
|
66
|
+
---
|
67
|
+
|
68
|
+
## Delete Message Comment Reaction
|
69
|
+
|
70
|
+
```
|
71
|
+
const [message_comment_reaction] = await MessageCommentReaction.list()
|
72
|
+
|
73
|
+
await message_comment_reaction.delete()
|
74
|
+
```
|
75
|
+
|
76
|
+
### Parameters
|
77
|
+
|
78
|
+
* `id` (int64): Required - Message Comment Reaction ID.
|
79
|
+
|
@@ -0,0 +1,79 @@
|
|
1
|
+
# MessageReaction
|
2
|
+
|
3
|
+
## Example MessageReaction Object
|
4
|
+
|
5
|
+
```
|
6
|
+
{
|
7
|
+
"id": 1,
|
8
|
+
"emoji": "👍"
|
9
|
+
}
|
10
|
+
```
|
11
|
+
|
12
|
+
* `id` (int64): Reaction ID
|
13
|
+
* `emoji` (string): Emoji used in the reaction.
|
14
|
+
* `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
|
15
|
+
|
16
|
+
---
|
17
|
+
|
18
|
+
## List Message Reactions
|
19
|
+
|
20
|
+
```
|
21
|
+
await MessageReaction.list({
|
22
|
+
'user_id': 1,
|
23
|
+
'per_page': 1,
|
24
|
+
'message_id': 1,
|
25
|
+
})
|
26
|
+
```
|
27
|
+
|
28
|
+
|
29
|
+
### Parameters
|
30
|
+
|
31
|
+
* `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
|
32
|
+
* `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.
|
33
|
+
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
34
|
+
* `message_id` (int64): Required - Message to return reactions for.
|
35
|
+
|
36
|
+
---
|
37
|
+
|
38
|
+
## Show Message Reaction
|
39
|
+
|
40
|
+
```
|
41
|
+
await MessageReaction.find(id)
|
42
|
+
```
|
43
|
+
|
44
|
+
|
45
|
+
### Parameters
|
46
|
+
|
47
|
+
* `id` (int64): Required - Message Reaction ID.
|
48
|
+
|
49
|
+
---
|
50
|
+
|
51
|
+
## Create Message Reaction
|
52
|
+
|
53
|
+
```
|
54
|
+
await MessageReaction.create({
|
55
|
+
'user_id': 1,
|
56
|
+
'emoji': "emoji",
|
57
|
+
})
|
58
|
+
```
|
59
|
+
|
60
|
+
|
61
|
+
### Parameters
|
62
|
+
|
63
|
+
* `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
|
64
|
+
* `emoji` (string): Required - Emoji to react with.
|
65
|
+
|
66
|
+
---
|
67
|
+
|
68
|
+
## Delete Message Reaction
|
69
|
+
|
70
|
+
```
|
71
|
+
const [message_reaction] = await MessageReaction.list()
|
72
|
+
|
73
|
+
await message_reaction.delete()
|
74
|
+
```
|
75
|
+
|
76
|
+
### Parameters
|
77
|
+
|
78
|
+
* `id` (int64): Required - Message Reaction ID.
|
79
|
+
|
@@ -0,0 +1,241 @@
|
|
1
|
+
# Notification
|
2
|
+
|
3
|
+
## Example Notification Object
|
4
|
+
|
5
|
+
```
|
6
|
+
{
|
7
|
+
"id": 1,
|
8
|
+
"path": "",
|
9
|
+
"group_id": 1,
|
10
|
+
"group_name": "",
|
11
|
+
"triggering_group_ids": [
|
12
|
+
1
|
13
|
+
],
|
14
|
+
"triggering_user_ids": [
|
15
|
+
1
|
16
|
+
],
|
17
|
+
"trigger_by_share_recipients": true,
|
18
|
+
"notify_user_actions": true,
|
19
|
+
"notify_on_copy": true,
|
20
|
+
"notify_on_delete": true,
|
21
|
+
"notify_on_download": true,
|
22
|
+
"notify_on_move": true,
|
23
|
+
"notify_on_upload": true,
|
24
|
+
"recursive": true,
|
25
|
+
"send_interval": "fifteen_minutes",
|
26
|
+
"message": "custom notification email message",
|
27
|
+
"triggering_filenames": [
|
28
|
+
"*.jpg",
|
29
|
+
"notify_file.txt"
|
30
|
+
],
|
31
|
+
"unsubscribed": true,
|
32
|
+
"unsubscribed_reason": "",
|
33
|
+
"user_id": 1,
|
34
|
+
"username": "User",
|
35
|
+
"suppressed_email": true
|
36
|
+
}
|
37
|
+
```
|
38
|
+
|
39
|
+
* `id` (int64): Notification ID
|
40
|
+
* `path` (string): Folder path to notify on This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
|
41
|
+
* `group_id` (int64): Notification group id
|
42
|
+
* `group_name` (string): Group name if applicable
|
43
|
+
* `triggering_group_ids` (int64): Only notify on actions made by a member of one of the specified groups
|
44
|
+
* `triggering_user_ids` (int64): Only notify on actions made one of the specified users
|
45
|
+
* `trigger_by_share_recipients` (boolean): Notify when actions are performed by a share recipient?
|
46
|
+
* `notify_user_actions` (boolean): Trigger notification on notification user actions?
|
47
|
+
* `notify_on_copy` (boolean): Triggers notification when copying files to this path
|
48
|
+
* `notify_on_delete` (boolean): Triggers notification when deleting files from this path
|
49
|
+
* `notify_on_download` (boolean): Triggers notification when downloading files from this path
|
50
|
+
* `notify_on_move` (boolean): Triggers notification when moving files to this path
|
51
|
+
* `notify_on_upload` (boolean): Triggers notification when uploading new files to this path
|
52
|
+
* `recursive` (boolean): Enable notifications for each subfolder in this path
|
53
|
+
* `send_interval` (string): The time interval that notifications are aggregated to
|
54
|
+
* `message` (string): Custom message to include in notification emails.
|
55
|
+
* `triggering_filenames` (array): Array of filenames (possibly with wildcards) to match for action path
|
56
|
+
* `unsubscribed` (boolean): Is the user unsubscribed from this notification?
|
57
|
+
* `unsubscribed_reason` (string): The reason that the user unsubscribed
|
58
|
+
* `user_id` (int64): Notification user ID
|
59
|
+
* `username` (string): Notification username
|
60
|
+
* `suppressed_email` (boolean): If true, it means that the recipient at this user's email address has manually unsubscribed from all emails, or had their email "hard bounce", which means that we are unable to send mail to this user's current email address. Notifications will resume if the user changes their email address.
|
61
|
+
|
62
|
+
---
|
63
|
+
|
64
|
+
## List Notifications
|
65
|
+
|
66
|
+
```
|
67
|
+
await Notification.list({
|
68
|
+
'user_id': 1,
|
69
|
+
'per_page': 1,
|
70
|
+
'group_id': 1,
|
71
|
+
'include_ancestors': true,
|
72
|
+
})
|
73
|
+
```
|
74
|
+
|
75
|
+
|
76
|
+
### Parameters
|
77
|
+
|
78
|
+
* `user_id` (int64): DEPRECATED: Show notifications for this User ID. Use `filter[user_id]` instead.
|
79
|
+
* `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.
|
80
|
+
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
81
|
+
* `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 `path`, `user_id` or `group_id`.
|
82
|
+
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `user_id`, `group_id` or `path`.
|
83
|
+
* `filter_gt` (object): If set, return records where the specified field is greater than the supplied value. Valid fields are `user_id`, `group_id` or `path`.
|
84
|
+
* `filter_gteq` (object): If set, return records where the specified field is greater than or equal to the supplied value. Valid fields are `user_id`, `group_id` or `path`.
|
85
|
+
* `filter_like` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `user_id`, `group_id` or `path`.
|
86
|
+
* `filter_lt` (object): If set, return records where the specified field is less than the supplied value. Valid fields are `user_id`, `group_id` or `path`.
|
87
|
+
* `filter_lteq` (object): If set, return records where the specified field is less than or equal to the supplied value. Valid fields are `user_id`, `group_id` or `path`.
|
88
|
+
* `group_id` (int64): DEPRECATED: Show notifications for this Group ID. Use `filter[group_id]` instead.
|
89
|
+
* `path` (string): Show notifications for this Path.
|
90
|
+
* `include_ancestors` (boolean): If `include_ancestors` is `true` and `path` is specified, include notifications for any parent paths. Ignored if `path` is not specified.
|
91
|
+
|
92
|
+
---
|
93
|
+
|
94
|
+
## Show Notification
|
95
|
+
|
96
|
+
```
|
97
|
+
await Notification.find(id)
|
98
|
+
```
|
99
|
+
|
100
|
+
|
101
|
+
### Parameters
|
102
|
+
|
103
|
+
* `id` (int64): Required - Notification ID.
|
104
|
+
|
105
|
+
---
|
106
|
+
|
107
|
+
## Create Notification
|
108
|
+
|
109
|
+
```
|
110
|
+
await Notification.create({
|
111
|
+
'user_id': 1,
|
112
|
+
'notify_on_copy': true,
|
113
|
+
'notify_on_delete': true,
|
114
|
+
'notify_on_download': true,
|
115
|
+
'notify_on_move': true,
|
116
|
+
'notify_on_upload': true,
|
117
|
+
'notify_user_actions': true,
|
118
|
+
'recursive': true,
|
119
|
+
'send_interval': "daily",
|
120
|
+
'message': "custom notification email message",
|
121
|
+
'triggering_filenames': ["*.jpg","notify_file.txt"],
|
122
|
+
'triggering_group_ids': [1],
|
123
|
+
'triggering_user_ids': [1],
|
124
|
+
'trigger_by_share_recipients': true,
|
125
|
+
'group_id': 1,
|
126
|
+
'username': "User",
|
127
|
+
})
|
128
|
+
```
|
129
|
+
|
130
|
+
|
131
|
+
### Parameters
|
132
|
+
|
133
|
+
* `user_id` (int64): The id of the user to notify. Provide `user_id`, `username` or `group_id`.
|
134
|
+
* `notify_on_copy` (boolean): If `true`, copying or moving resources into this path will trigger a notification, in addition to just uploads.
|
135
|
+
* `notify_on_delete` (boolean): Triggers notification when deleting files from this path
|
136
|
+
* `notify_on_download` (boolean): Triggers notification when downloading files from this path
|
137
|
+
* `notify_on_move` (boolean): Triggers notification when moving files to this path
|
138
|
+
* `notify_on_upload` (boolean): Triggers notification when uploading new files to this path
|
139
|
+
* `notify_user_actions` (boolean): If `true` actions initiated by the user will still result in a notification
|
140
|
+
* `recursive` (boolean): If `true`, enable notifications for each subfolder in this path
|
141
|
+
* `send_interval` (string): The time interval that notifications are aggregated by. Can be `five_minutes`, `fifteen_minutes`, `hourly`, or `daily`.
|
142
|
+
* `message` (string): Custom message to include in notification emails.
|
143
|
+
* `triggering_filenames` (array(string)): Array of filenames (possibly with wildcards) to match for action path
|
144
|
+
* `triggering_group_ids` (array(int64)): Only notify on actions made by a member of one of the specified groups
|
145
|
+
* `triggering_user_ids` (array(int64)): Only notify on actions made one of the specified users
|
146
|
+
* `trigger_by_share_recipients` (boolean): Notify when actions are performed by a share recipient?
|
147
|
+
* `group_id` (int64): The ID of the group to notify. Provide `user_id`, `username` or `group_id`.
|
148
|
+
* `path` (string): Path
|
149
|
+
* `username` (string): The username of the user to notify. Provide `user_id`, `username` or `group_id`.
|
150
|
+
|
151
|
+
---
|
152
|
+
|
153
|
+
## Update Notification
|
154
|
+
|
155
|
+
```
|
156
|
+
const [notification] = await Notification.list()
|
157
|
+
|
158
|
+
await notification.update({
|
159
|
+
'notify_on_copy': true,
|
160
|
+
'notify_on_delete': true,
|
161
|
+
'notify_on_download': true,
|
162
|
+
'notify_on_move': true,
|
163
|
+
'notify_on_upload': true,
|
164
|
+
'notify_user_actions': true,
|
165
|
+
'recursive': true,
|
166
|
+
'send_interval': "daily",
|
167
|
+
'message': "custom notification email message",
|
168
|
+
'triggering_filenames': ["*.jpg","notify_file.txt"],
|
169
|
+
'triggering_group_ids': [1],
|
170
|
+
'triggering_user_ids': [1],
|
171
|
+
'trigger_by_share_recipients': true,
|
172
|
+
})
|
173
|
+
```
|
174
|
+
|
175
|
+
### Parameters
|
176
|
+
|
177
|
+
* `id` (int64): Required - Notification ID.
|
178
|
+
* `notify_on_copy` (boolean): If `true`, copying or moving resources into this path will trigger a notification, in addition to just uploads.
|
179
|
+
* `notify_on_delete` (boolean): Triggers notification when deleting files from this path
|
180
|
+
* `notify_on_download` (boolean): Triggers notification when downloading files from this path
|
181
|
+
* `notify_on_move` (boolean): Triggers notification when moving files to this path
|
182
|
+
* `notify_on_upload` (boolean): Triggers notification when uploading new files to this path
|
183
|
+
* `notify_user_actions` (boolean): If `true` actions initiated by the user will still result in a notification
|
184
|
+
* `recursive` (boolean): If `true`, enable notifications for each subfolder in this path
|
185
|
+
* `send_interval` (string): The time interval that notifications are aggregated by. Can be `five_minutes`, `fifteen_minutes`, `hourly`, or `daily`.
|
186
|
+
* `message` (string): Custom message to include in notification emails.
|
187
|
+
* `triggering_filenames` (array(string)): Array of filenames (possibly with wildcards) to match for action path
|
188
|
+
* `triggering_group_ids` (array(int64)): Only notify on actions made by a member of one of the specified groups
|
189
|
+
* `triggering_user_ids` (array(int64)): Only notify on actions made one of the specified users
|
190
|
+
* `trigger_by_share_recipients` (boolean): Notify when actions are performed by a share recipient?
|
191
|
+
|
192
|
+
### Example Response
|
193
|
+
|
194
|
+
```json
|
195
|
+
{
|
196
|
+
"id": 1,
|
197
|
+
"path": "",
|
198
|
+
"group_id": 1,
|
199
|
+
"group_name": "",
|
200
|
+
"triggering_group_ids": [
|
201
|
+
1
|
202
|
+
],
|
203
|
+
"triggering_user_ids": [
|
204
|
+
1
|
205
|
+
],
|
206
|
+
"trigger_by_share_recipients": true,
|
207
|
+
"notify_user_actions": true,
|
208
|
+
"notify_on_copy": true,
|
209
|
+
"notify_on_delete": true,
|
210
|
+
"notify_on_download": true,
|
211
|
+
"notify_on_move": true,
|
212
|
+
"notify_on_upload": true,
|
213
|
+
"recursive": true,
|
214
|
+
"send_interval": "fifteen_minutes",
|
215
|
+
"message": "custom notification email message",
|
216
|
+
"triggering_filenames": [
|
217
|
+
"*.jpg",
|
218
|
+
"notify_file.txt"
|
219
|
+
],
|
220
|
+
"unsubscribed": true,
|
221
|
+
"unsubscribed_reason": "",
|
222
|
+
"user_id": 1,
|
223
|
+
"username": "User",
|
224
|
+
"suppressed_email": true
|
225
|
+
}
|
226
|
+
```
|
227
|
+
|
228
|
+
---
|
229
|
+
|
230
|
+
## Delete Notification
|
231
|
+
|
232
|
+
```
|
233
|
+
const [notification] = await Notification.list()
|
234
|
+
|
235
|
+
await notification.delete()
|
236
|
+
```
|
237
|
+
|
238
|
+
### Parameters
|
239
|
+
|
240
|
+
* `id` (int64): Required - Notification ID.
|
241
|
+
|