files.com 1.0.190 → 1.0.193

Sign up to get free protection for your applications and to get access to all the features.
Files changed (230) hide show
  1. package/_VERSION +1 -1
  2. package/docs/Errors.md +186 -0
  3. package/docs/models/AccountLineItem.md +53 -0
  4. package/docs/models/Action.md +37 -0
  5. package/docs/models/ActionNotificationExport.md +82 -0
  6. package/docs/models/ActionNotificationExportResult.md +49 -0
  7. package/docs/models/ActionWebhookFailure.md +16 -0
  8. package/docs/models/ApiKey.md +183 -0
  9. package/docs/models/App.md +66 -0
  10. package/docs/models/As2IncomingMessage.md +104 -0
  11. package/docs/models/As2OutgoingMessage.md +96 -0
  12. package/docs/models/As2Partner.md +141 -0
  13. package/docs/models/As2Station.md +142 -0
  14. package/docs/models/Auto.md +11 -0
  15. package/docs/models/Automation.md +257 -0
  16. package/docs/models/AutomationRun.md +61 -0
  17. package/docs/models/BandwidthSnapshot.md +50 -0
  18. package/docs/models/Behavior.md +195 -0
  19. package/docs/models/Bundle.md +330 -0
  20. package/docs/models/BundleDownload.md +44 -0
  21. package/docs/models/BundleRecipient.md +76 -0
  22. package/docs/models/BundleRegistration.md +53 -0
  23. package/docs/models/Clickwrap.md +120 -0
  24. package/docs/models/DnsRecord.md +33 -0
  25. package/docs/models/Errors.md +17 -0
  26. package/docs/models/ExternalEvent.md +84 -0
  27. package/docs/models/File.md +339 -0
  28. package/docs/models/FileAction.md +13 -0
  29. package/docs/models/FileComment.md +98 -0
  30. package/docs/models/FileCommentReaction.md +50 -0
  31. package/docs/models/FileMigration.md +40 -0
  32. package/docs/models/FileUploadPart.md +39 -0
  33. package/docs/models/Folder.md +90 -0
  34. package/docs/models/FormField.md +29 -0
  35. package/docs/models/FormFieldSet.md +170 -0
  36. package/docs/models/Group.md +140 -0
  37. package/docs/models/GroupUser.md +116 -0
  38. package/docs/models/History.md +151 -0
  39. package/docs/models/HistoryExport.md +130 -0
  40. package/docs/models/HistoryExportResult.md +75 -0
  41. package/docs/models/Image.md +13 -0
  42. package/docs/models/InboxRecipient.md +76 -0
  43. package/docs/models/InboxRegistration.md +47 -0
  44. package/docs/models/InboxUpload.md +42 -0
  45. package/docs/models/Invoice.md +82 -0
  46. package/docs/models/InvoiceLineItem.md +27 -0
  47. package/docs/models/IpAddress.md +51 -0
  48. package/docs/models/Lock.md +92 -0
  49. package/docs/models/Message.md +134 -0
  50. package/docs/models/MessageComment.md +114 -0
  51. package/docs/models/MessageCommentReaction.md +79 -0
  52. package/docs/models/MessageReaction.md +79 -0
  53. package/docs/models/Notification.md +241 -0
  54. package/docs/models/Payment.md +82 -0
  55. package/docs/models/PaymentLineItem.md +19 -0
  56. package/docs/models/Permission.md +94 -0
  57. package/docs/models/Preview.md +19 -0
  58. package/docs/models/Priority.md +30 -0
  59. package/docs/models/Project.md +98 -0
  60. package/docs/models/PublicIpAddress.md +17 -0
  61. package/docs/models/PublicKey.md +112 -0
  62. package/docs/models/RemoteBandwidthSnapshot.md +42 -0
  63. package/docs/models/RemoteServer.md +385 -0
  64. package/docs/models/Request.md +97 -0
  65. package/docs/models/Session.md +50 -0
  66. package/docs/models/SettingsChange.md +44 -0
  67. package/docs/models/Site.md +607 -0
  68. package/docs/models/SsoStrategy.md +139 -0
  69. package/docs/models/Status.md +30 -0
  70. package/docs/models/Style.md +76 -0
  71. package/docs/models/UsageDailySnapshot.md +56 -0
  72. package/docs/models/UsageSnapshot.md +63 -0
  73. package/docs/models/User.md +465 -0
  74. package/docs/models/UserCipherUse.md +39 -0
  75. package/docs/models/UserRequest.md +80 -0
  76. package/docs/models/WebhookTest.md +59 -0
  77. package/lib/Api.js +12 -11
  78. package/lib/Errors.js +3125 -0
  79. package/lib/models/AccountLineItem.js +8 -0
  80. package/lib/models/Action.js +8 -0
  81. package/lib/models/ActionNotificationExport.js +21 -13
  82. package/lib/models/ActionNotificationExportResult.js +13 -5
  83. package/lib/models/ActionWebhookFailure.js +12 -4
  84. package/lib/models/ApiKey.js +33 -25
  85. package/lib/models/App.js +10 -2
  86. package/lib/models/As2IncomingMessage.js +11 -3
  87. package/lib/models/As2OutgoingMessage.js +11 -3
  88. package/lib/models/As2Partner.js +34 -26
  89. package/lib/models/As2Station.js +32 -24
  90. package/lib/models/Auto.js +8 -0
  91. package/lib/models/Automation.js +51 -43
  92. package/lib/models/AutomationRun.js +16 -8
  93. package/lib/models/BandwidthSnapshot.js +10 -2
  94. package/lib/models/Behavior.js +46 -38
  95. package/lib/models/Bundle.js +51 -43
  96. package/lib/models/BundleDownload.js +12 -4
  97. package/lib/models/BundleRecipient.js +22 -14
  98. package/lib/models/BundleRegistration.js +12 -4
  99. package/lib/models/Clickwrap.js +31 -23
  100. package/lib/models/DnsRecord.js +10 -2
  101. package/lib/models/Errors.js +8 -0
  102. package/lib/models/ExternalEvent.js +18 -10
  103. package/lib/models/File.js +68 -60
  104. package/lib/models/FileAction.js +8 -0
  105. package/lib/models/FileComment.js +27 -19
  106. package/lib/models/FileCommentReaction.js +18 -10
  107. package/lib/models/FileMigration.js +11 -3
  108. package/lib/models/FileUploadPart.js +8 -0
  109. package/lib/models/Folder.js +19 -11
  110. package/lib/models/FormField.js +8 -0
  111. package/lib/models/FormFieldSet.js +27 -19
  112. package/lib/models/Group.js +30 -22
  113. package/lib/models/GroupUser.js +32 -24
  114. package/lib/models/History.js +42 -34
  115. package/lib/models/HistoryExport.js +34 -26
  116. package/lib/models/HistoryExportResult.js +13 -5
  117. package/lib/models/Image.js +8 -0
  118. package/lib/models/InboxRecipient.js +22 -14
  119. package/lib/models/InboxRegistration.js +11 -3
  120. package/lib/models/InboxUpload.js +12 -4
  121. package/lib/models/Invoice.js +13 -5
  122. package/lib/models/InvoiceLineItem.js +8 -0
  123. package/lib/models/IpAddress.js +12 -4
  124. package/lib/models/Lock.js +24 -16
  125. package/lib/models/Message.js +37 -29
  126. package/lib/models/MessageComment.js +29 -21
  127. package/lib/models/MessageCommentReaction.js +24 -16
  128. package/lib/models/MessageReaction.js +24 -16
  129. package/lib/models/Notification.js +38 -30
  130. package/lib/models/Payment.js +13 -5
  131. package/lib/models/PaymentLineItem.js +8 -0
  132. package/lib/models/Permission.js +23 -15
  133. package/lib/models/Preview.js +8 -0
  134. package/lib/models/Priority.js +13 -5
  135. package/lib/models/Project.js +25 -17
  136. package/lib/models/PublicIpAddress.js +8 -0
  137. package/lib/models/PublicKey.js +29 -21
  138. package/lib/models/RemoteBandwidthSnapshot.js +10 -2
  139. package/lib/models/RemoteServer.js +113 -105
  140. package/lib/models/Request.js +27 -19
  141. package/lib/models/Session.js +13 -5
  142. package/lib/models/SettingsChange.js +10 -2
  143. package/lib/models/Site.js +65 -57
  144. package/lib/models/SsoStrategy.js +17 -9
  145. package/lib/models/Status.js +8 -0
  146. package/lib/models/Style.js +20 -12
  147. package/lib/models/UsageDailySnapshot.js +10 -2
  148. package/lib/models/UsageSnapshot.js +10 -2
  149. package/lib/models/User.js +85 -77
  150. package/lib/models/UserCipherUse.js +11 -3
  151. package/lib/models/UserRequest.js +24 -16
  152. package/lib/models/WebhookTest.js +16 -8
  153. package/package.json +1 -1
  154. package/src/Api.js +4 -8
  155. package/src/Errors.js +221 -0
  156. package/src/models/AccountLineItem.js +1 -0
  157. package/src/models/Action.js +1 -0
  158. package/src/models/ActionNotificationExport.js +14 -13
  159. package/src/models/ActionNotificationExportResult.js +6 -5
  160. package/src/models/ActionWebhookFailure.js +5 -4
  161. package/src/models/ApiKey.js +26 -25
  162. package/src/models/App.js +3 -2
  163. package/src/models/As2IncomingMessage.js +4 -3
  164. package/src/models/As2OutgoingMessage.js +4 -3
  165. package/src/models/As2Partner.js +27 -26
  166. package/src/models/As2Station.js +25 -24
  167. package/src/models/Auto.js +1 -0
  168. package/src/models/Automation.js +44 -43
  169. package/src/models/AutomationRun.js +9 -8
  170. package/src/models/BandwidthSnapshot.js +3 -2
  171. package/src/models/Behavior.js +39 -38
  172. package/src/models/Bundle.js +44 -43
  173. package/src/models/BundleDownload.js +5 -4
  174. package/src/models/BundleRecipient.js +15 -14
  175. package/src/models/BundleRegistration.js +5 -4
  176. package/src/models/Clickwrap.js +24 -23
  177. package/src/models/DnsRecord.js +3 -2
  178. package/src/models/Errors.js +1 -0
  179. package/src/models/ExternalEvent.js +11 -10
  180. package/src/models/File.js +61 -60
  181. package/src/models/FileAction.js +1 -0
  182. package/src/models/FileComment.js +20 -19
  183. package/src/models/FileCommentReaction.js +11 -10
  184. package/src/models/FileMigration.js +4 -3
  185. package/src/models/FileUploadPart.js +1 -0
  186. package/src/models/Folder.js +12 -11
  187. package/src/models/FormField.js +1 -0
  188. package/src/models/FormFieldSet.js +20 -19
  189. package/src/models/Group.js +23 -22
  190. package/src/models/GroupUser.js +25 -24
  191. package/src/models/History.js +35 -34
  192. package/src/models/HistoryExport.js +27 -26
  193. package/src/models/HistoryExportResult.js +6 -5
  194. package/src/models/Image.js +1 -0
  195. package/src/models/InboxRecipient.js +15 -14
  196. package/src/models/InboxRegistration.js +4 -3
  197. package/src/models/InboxUpload.js +5 -4
  198. package/src/models/Invoice.js +6 -5
  199. package/src/models/InvoiceLineItem.js +1 -0
  200. package/src/models/IpAddress.js +5 -4
  201. package/src/models/Lock.js +17 -16
  202. package/src/models/Message.js +30 -29
  203. package/src/models/MessageComment.js +22 -21
  204. package/src/models/MessageCommentReaction.js +17 -16
  205. package/src/models/MessageReaction.js +17 -16
  206. package/src/models/Notification.js +31 -30
  207. package/src/models/Payment.js +6 -5
  208. package/src/models/PaymentLineItem.js +1 -0
  209. package/src/models/Permission.js +16 -15
  210. package/src/models/Preview.js +1 -0
  211. package/src/models/Priority.js +6 -5
  212. package/src/models/Project.js +18 -17
  213. package/src/models/PublicIpAddress.js +1 -0
  214. package/src/models/PublicKey.js +22 -21
  215. package/src/models/RemoteBandwidthSnapshot.js +3 -2
  216. package/src/models/RemoteServer.js +106 -105
  217. package/src/models/Request.js +20 -19
  218. package/src/models/Session.js +6 -5
  219. package/src/models/SettingsChange.js +3 -2
  220. package/src/models/Site.js +58 -57
  221. package/src/models/SsoStrategy.js +10 -9
  222. package/src/models/Status.js +1 -0
  223. package/src/models/Style.js +13 -12
  224. package/src/models/UsageDailySnapshot.js +3 -2
  225. package/src/models/UsageSnapshot.js +3 -2
  226. package/src/models/User.js +78 -77
  227. package/src/models/UserCipherUse.js +4 -3
  228. package/src/models/UserRequest.js +17 -16
  229. package/src/models/WebhookTest.js +9 -8
  230. package/test/src/index.js +46 -0
@@ -0,0 +1,90 @@
1
+ # Folder
2
+
3
+ ## Example Folder Object
4
+
5
+ ```
6
+ {
7
+ "path": "path/file.txt",
8
+ "display_name": "file.txt",
9
+ "type": "file",
10
+ "size": 1024,
11
+ "mtime": "2000-01-01T01:00:00Z",
12
+ "provided_mtime": "2000-01-01T01:00:00Z",
13
+ "crc32": "70976923",
14
+ "md5": "17c54824e9931a4688ca032d03f6663c",
15
+ "mime_type": "application/octet-stream",
16
+ "region": "us-east-1",
17
+ "permissions": "rwd",
18
+ "subfolders_locked?": true,
19
+ "download_uri": "https://mysite.files.com/...",
20
+ "priority_color": "red",
21
+ "preview_id": 1,
22
+ "preview": {
23
+ "id": 1,
24
+ "status": "complete",
25
+ "download_uri": "https://mysite.files.com/...",
26
+ "type": "image",
27
+ "size": "large"
28
+ }
29
+ }
30
+ ```
31
+
32
+ * `path` (string): File/Folder path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
33
+ * `display_name` (string): File/Folder display name
34
+ * `type` (string): Type: `directory` or `file`.
35
+ * `size` (int64): File/Folder size
36
+ * `mtime` (date-time): File last modified date/time, according to the server. This is the timestamp of the last Files.com operation of the file, regardless of what modified timestamp was sent.
37
+ * `provided_mtime` (date-time): File last modified date/time, according to the client who set it. Files.com allows desktop, FTP, SFTP, and WebDAV clients to set modified at times. This allows Desktop<->Cloud syncing to preserve modified at times.
38
+ * `crc32` (string): File CRC32 checksum. This is sometimes delayed, so if you get a blank response, wait and try again.
39
+ * `md5` (string): File MD5 checksum. This is sometimes delayed, so if you get a blank response, wait and try again.
40
+ * `mime_type` (string): MIME Type. This is determined by the filename extension and is not stored separately internally.
41
+ * `region` (string): Region location
42
+ * `permissions` (string): A short string representing the current user's permissions. Can be `r`,`w`,`d`, `l` or any combination
43
+ * `subfolders_locked?` (boolean): Are subfolders locked and unable to be modified?
44
+ * `download_uri` (string): Link to download file. Provided only in response to a download request.
45
+ * `priority_color` (string): Bookmark/priority color of file/folder
46
+ * `preview_id` (int64): File preview ID
47
+ * `preview` (Preview): File preview
48
+ * `mkdir_parents` (boolean): Create parent directories if they do not exist?
49
+
50
+ ---
51
+
52
+ ## List Folders by path
53
+
54
+ ```
55
+ await Folder.listFor(path, {
56
+ 'per_page': 1,
57
+ 'search_all': true,
58
+ 'with_previews': true,
59
+ 'with_priority_color': true,
60
+ })
61
+ ```
62
+
63
+
64
+ ### Parameters
65
+
66
+ * `cursor` (string): Send cursor to resume an existing list from the point at which you left off. Get a cursor from an existing list via the X-Files-Cursor-Next header or the X-Files-Cursor-Prev header.
67
+ * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
68
+ * `path` (string): Required - Path to operate on.
69
+ * `filter` (string): If specified, will filter folders/files list by this string. Wildcards of `*` and `?` are acceptable here.
70
+ * `preview_size` (string): Request a preview size. Can be `small` (default), `large`, `xlarge`, or `pdf`.
71
+ * `search` (string): If `search_all` is `true`, provide the search string here. Otherwise, this parameter acts like an alias of `filter`.
72
+ * `search_all` (boolean): Search entire site? If set, we will ignore the folder path provided and search the entire site. This is the same API used by the search bar in the UI. Search results are a best effort, not real time, and not guaranteed to match every file. This field should only be used for ad-hoc (human) searching, and not as part of an automated process.
73
+ * `with_previews` (boolean): Include file previews?
74
+ * `with_priority_color` (boolean): Include file priority color information?
75
+
76
+ ---
77
+
78
+ ## Create folder
79
+
80
+ ```
81
+ await Folder.create(path, {
82
+ 'mkdir_parents': true,
83
+ })
84
+ ```
85
+
86
+
87
+ ### Parameters
88
+
89
+ * `path` (string): Required - Path to operate on.
90
+ * `mkdir_parents` (boolean): Create parent directories if they do not exist?
@@ -0,0 +1,29 @@
1
+ # FormField
2
+
3
+ ## Example FormField Object
4
+
5
+ ```
6
+ {
7
+ "id": 1,
8
+ "label": "Sample Label",
9
+ "required": true,
10
+ "help_text": "Help Text",
11
+ "field_type": "text",
12
+ "options_for_select": [
13
+ "red",
14
+ "green",
15
+ "blue"
16
+ ],
17
+ "default_option": "red",
18
+ "form_field_set_id": 1
19
+ }
20
+ ```
21
+
22
+ * `id` (int64): Form field id
23
+ * `label` (string): Label to be displayed
24
+ * `required` (boolean): Is this a required field?
25
+ * `help_text` (string): Help text to be displayed
26
+ * `field_type` (string): Type of Field
27
+ * `options_for_select` (string): Options to display for radio and dropdown
28
+ * `default_option` (string): Default option for radio and dropdown
29
+ * `form_field_set_id` (int64): Form field set id
@@ -0,0 +1,170 @@
1
+ # FormFieldSet
2
+
3
+ ## Example FormFieldSet Object
4
+
5
+ ```
6
+ {
7
+ "id": 1,
8
+ "title": "Sample Form Title",
9
+ "form_layout": [
10
+ 1,
11
+ 2,
12
+ 3,
13
+ 4
14
+ ],
15
+ "form_fields": {
16
+ "id": 1,
17
+ "label": "Sample Label",
18
+ "required": true,
19
+ "help_text": "Help Text",
20
+ "field_type": "text",
21
+ "options_for_select": [
22
+ "red",
23
+ "green",
24
+ "blue"
25
+ ],
26
+ "default_option": "red",
27
+ "form_field_set_id": 1
28
+ },
29
+ "skip_name": true,
30
+ "skip_email": true,
31
+ "skip_company": true
32
+ }
33
+ ```
34
+
35
+ * `id` (int64): Form field set id
36
+ * `title` (string): Title to be displayed
37
+ * `form_layout` (int64): Layout of the form
38
+ * `form_fields` (FormField): Associated form fields
39
+ * `skip_name` (boolean): Any associated InboxRegistrations or BundleRegistrations can be saved without providing name
40
+ * `skip_email` (boolean): Any associated InboxRegistrations or BundleRegistrations can be saved without providing email
41
+ * `skip_company` (boolean): Any associated InboxRegistrations or BundleRegistrations can be saved without providing company
42
+ * `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
43
+
44
+ ---
45
+
46
+ ## List Form Field Sets
47
+
48
+ ```
49
+ await FormFieldSet.list({
50
+ 'user_id': 1,
51
+ 'per_page': 1,
52
+ })
53
+ ```
54
+
55
+
56
+ ### Parameters
57
+
58
+ * `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
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
+
62
+ ---
63
+
64
+ ## Show Form Field Set
65
+
66
+ ```
67
+ await FormFieldSet.find(id)
68
+ ```
69
+
70
+
71
+ ### Parameters
72
+
73
+ * `id` (int64): Required - Form Field Set ID.
74
+
75
+ ---
76
+
77
+ ## Create Form Field Set
78
+
79
+ ```
80
+ await FormFieldSet.create({
81
+ 'user_id': 1,
82
+ 'title': "Sample Form Title",
83
+ 'skip_email': true,
84
+ 'skip_name': true,
85
+ 'skip_company': true,
86
+ 'form_fields': {"label":"Sample Label","required":true,"help_text":"Help Text","field_type":"text","options_for_select":["red","green","blue"],"default_option":"red","form_field_set_id":1},
87
+ })
88
+ ```
89
+
90
+
91
+ ### Parameters
92
+
93
+ * `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
94
+ * `title` (string): Title to be displayed
95
+ * `skip_email` (boolean): Skip validating form email
96
+ * `skip_name` (boolean): Skip validating form name
97
+ * `skip_company` (boolean): Skip validating company
98
+ * `form_fields` (array(object)):
99
+
100
+ ---
101
+
102
+ ## Update Form Field Set
103
+
104
+ ```
105
+ const [form_field_set] = await FormFieldSet.list()
106
+
107
+ await form_field_set.update({
108
+ 'title': "Sample Form Title",
109
+ 'skip_email': true,
110
+ 'skip_name': true,
111
+ 'skip_company': true,
112
+ 'form_fields': {"id":1,"label":"Sample Label","required":true,"help_text":"Help Text","field_type":"text","options_for_select":["red","green","blue"],"default_option":"red","form_field_set_id":1},
113
+ })
114
+ ```
115
+
116
+ ### Parameters
117
+
118
+ * `id` (int64): Required - Form Field Set ID.
119
+ * `title` (string): Title to be displayed
120
+ * `skip_email` (boolean): Skip validating form email
121
+ * `skip_name` (boolean): Skip validating form name
122
+ * `skip_company` (boolean): Skip validating company
123
+ * `form_fields` (array(object)):
124
+
125
+ ### Example Response
126
+
127
+ ```json
128
+ {
129
+ "id": 1,
130
+ "title": "Sample Form Title",
131
+ "form_layout": [
132
+ 1,
133
+ 2,
134
+ 3,
135
+ 4
136
+ ],
137
+ "form_fields": {
138
+ "id": 1,
139
+ "label": "Sample Label",
140
+ "required": true,
141
+ "help_text": "Help Text",
142
+ "field_type": "text",
143
+ "options_for_select": [
144
+ "red",
145
+ "green",
146
+ "blue"
147
+ ],
148
+ "default_option": "red",
149
+ "form_field_set_id": 1
150
+ },
151
+ "skip_name": true,
152
+ "skip_email": true,
153
+ "skip_company": true
154
+ }
155
+ ```
156
+
157
+ ---
158
+
159
+ ## Delete Form Field Set
160
+
161
+ ```
162
+ const [form_field_set] = await FormFieldSet.list()
163
+
164
+ await form_field_set.delete()
165
+ ```
166
+
167
+ ### Parameters
168
+
169
+ * `id` (int64): Required - Form Field Set ID.
170
+
@@ -0,0 +1,140 @@
1
+ # Group
2
+
3
+ ## Example Group Object
4
+
5
+ ```
6
+ {
7
+ "id": 1,
8
+ "name": "owners",
9
+ "admin_ids": [
10
+ 1
11
+ ],
12
+ "notes": "",
13
+ "user_ids": [
14
+ 1
15
+ ],
16
+ "usernames": [
17
+ "user"
18
+ ]
19
+ }
20
+ ```
21
+
22
+ * `id` (int64): Group ID
23
+ * `name` (string): Group name
24
+ * `admin_ids` (string): List of user IDs who are group administrators (separated by commas)
25
+ * `notes` (string): Notes about this group
26
+ * `user_ids` (array): List of user IDs who belong to this group (separated by commas)
27
+ * `usernames` (array): List of usernames who belong to this group (separated by commas)
28
+
29
+ ---
30
+
31
+ ## List Groups
32
+
33
+ ```
34
+ await Group.list({
35
+ 'per_page': 1,
36
+ })
37
+ ```
38
+
39
+
40
+ ### Parameters
41
+
42
+ * `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.
43
+ * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
44
+ * `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 `name`.
45
+ * `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `name`.
46
+ * `filter_gt` (object): If set, return records where the specified field is greater than the supplied value. Valid fields are `name`.
47
+ * `filter_gteq` (object): If set, return records where the specified field is greater than or equal to the supplied value. Valid fields are `name`.
48
+ * `filter_like` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `name`.
49
+ * `filter_lt` (object): If set, return records where the specified field is less than the supplied value. Valid fields are `name`.
50
+ * `filter_lteq` (object): If set, return records where the specified field is less than or equal to the supplied value. Valid fields are `name`.
51
+ * `ids` (string): Comma-separated list of group ids to include in results.
52
+
53
+ ---
54
+
55
+ ## Show Group
56
+
57
+ ```
58
+ await Group.find(id)
59
+ ```
60
+
61
+
62
+ ### Parameters
63
+
64
+ * `id` (int64): Required - Group ID.
65
+
66
+ ---
67
+
68
+ ## Create Group
69
+
70
+ ```
71
+ await Group.create({
72
+ 'name': "owners",
73
+ 'user_ids': [1],
74
+ 'admin_ids': [1],
75
+ })
76
+ ```
77
+
78
+
79
+ ### Parameters
80
+
81
+ * `name` (string): Group name.
82
+ * `notes` (string): Group notes.
83
+ * `user_ids` (string): A list of user ids. If sent as a string, should be comma-delimited.
84
+ * `admin_ids` (string): A list of group admin user ids. If sent as a string, should be comma-delimited.
85
+
86
+ ---
87
+
88
+ ## Update Group
89
+
90
+ ```
91
+ const [group] = await Group.list()
92
+
93
+ await group.update({
94
+ 'name': "owners",
95
+ 'user_ids': [1],
96
+ 'admin_ids': [1],
97
+ })
98
+ ```
99
+
100
+ ### Parameters
101
+
102
+ * `id` (int64): Required - Group ID.
103
+ * `name` (string): Group name.
104
+ * `notes` (string): Group notes.
105
+ * `user_ids` (string): A list of user ids. If sent as a string, should be comma-delimited.
106
+ * `admin_ids` (string): A list of group admin user ids. If sent as a string, should be comma-delimited.
107
+
108
+ ### Example Response
109
+
110
+ ```json
111
+ {
112
+ "id": 1,
113
+ "name": "owners",
114
+ "admin_ids": [
115
+ 1
116
+ ],
117
+ "notes": "",
118
+ "user_ids": [
119
+ 1
120
+ ],
121
+ "usernames": [
122
+ "user"
123
+ ]
124
+ }
125
+ ```
126
+
127
+ ---
128
+
129
+ ## Delete Group
130
+
131
+ ```
132
+ const [group] = await Group.list()
133
+
134
+ await group.delete()
135
+ ```
136
+
137
+ ### Parameters
138
+
139
+ * `id` (int64): Required - Group ID.
140
+
@@ -0,0 +1,116 @@
1
+ # GroupUser
2
+
3
+ ## Example GroupUser Object
4
+
5
+ ```
6
+ {
7
+ "group_name": "My Group",
8
+ "group_id": 1,
9
+ "user_id": 1,
10
+ "admin": true,
11
+ "usernames": [
12
+ "user"
13
+ ]
14
+ }
15
+ ```
16
+
17
+ * `group_name` (string): Group name
18
+ * `group_id` (int64): Group ID
19
+ * `user_id` (int64): User ID
20
+ * `admin` (boolean): Is this user an administrator of this group?
21
+ * `usernames` (array): A list of usernames for users in this group
22
+ * `id` (int64): Group User ID.
23
+
24
+ ---
25
+
26
+ ## List Group Users
27
+
28
+ ```
29
+ await GroupUser.list({
30
+ 'user_id': 1,
31
+ 'per_page': 1,
32
+ 'group_id': 1,
33
+ })
34
+ ```
35
+
36
+
37
+ ### Parameters
38
+
39
+ * `user_id` (int64): User ID. If provided, will return group_users of this user.
40
+ * `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.
41
+ * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
42
+ * `group_id` (int64): Group ID. If provided, will return group_users of this group.
43
+
44
+ ---
45
+
46
+ ## Create Group User
47
+
48
+ ```
49
+ await GroupUser.create({
50
+ 'group_id': 1,
51
+ 'user_id': 1,
52
+ 'admin': true,
53
+ })
54
+ ```
55
+
56
+
57
+ ### Parameters
58
+
59
+ * `group_id` (int64): Required - Group ID to add user to.
60
+ * `user_id` (int64): Required - User ID to add to group.
61
+ * `admin` (boolean): Is the user a group administrator?
62
+
63
+ ---
64
+
65
+ ## Update Group User
66
+
67
+ ```
68
+ const [group_user] = await GroupUser.list()
69
+
70
+ await group_user.update({
71
+ 'group_id': 1,
72
+ 'user_id': 1,
73
+ 'admin': true,
74
+ })
75
+ ```
76
+
77
+ ### Parameters
78
+
79
+ * `id` (int64): Required - Group User ID.
80
+ * `group_id` (int64): Required - Group ID to add user to.
81
+ * `user_id` (int64): Required - User ID to add to group.
82
+ * `admin` (boolean): Is the user a group administrator?
83
+
84
+ ### Example Response
85
+
86
+ ```json
87
+ {
88
+ "group_name": "My Group",
89
+ "group_id": 1,
90
+ "user_id": 1,
91
+ "admin": true,
92
+ "usernames": [
93
+ "user"
94
+ ]
95
+ }
96
+ ```
97
+
98
+ ---
99
+
100
+ ## Delete Group User
101
+
102
+ ```
103
+ const [group_user] = await GroupUser.list()
104
+
105
+ await group_user.delete({
106
+ 'group_id': 1,
107
+ 'user_id': 1,
108
+ })
109
+ ```
110
+
111
+ ### Parameters
112
+
113
+ * `id` (int64): Required - Group User ID.
114
+ * `group_id` (int64): Required - Group ID from which to remove user.
115
+ * `user_id` (int64): Required - User ID to remove from group.
116
+
@@ -0,0 +1,151 @@
1
+ # History
2
+
3
+ ## Example History Object
4
+
5
+ ```
6
+ {
7
+ "id": 1,
8
+ "path": "",
9
+ "when": "2000-01-01T01:00:00Z",
10
+ "destination": "/to_path",
11
+ "display": "Actual text of the action here.",
12
+ "ip": "192.283.128.182",
13
+ "source": "/from_path",
14
+ "targets": [
15
+
16
+ ],
17
+ "user_id": 1,
18
+ "username": "user",
19
+ "action": "create",
20
+ "failure_type": "none",
21
+ "interface": "web"
22
+ }
23
+ ```
24
+
25
+ * `id` (int64): Action ID
26
+ * `path` (string): Path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
27
+ * `when` (date-time): Action occurrence date/time
28
+ * `destination` (string): The destination path for this action, if applicable
29
+ * `display` (string): Friendly displayed output
30
+ * `ip` (string): IP Address that performed this action
31
+ * `source` (string): The source path for this action, if applicable
32
+ * `targets` (array): Targets
33
+ * `user_id` (int64): User ID
34
+ * `username` (string): Username
35
+ * `action` (string): Type of action
36
+ * `failure_type` (string): Failure type. If action was a user login or session failure, why did it fail?
37
+ * `interface` (string): Interface on which this action occurred.
38
+
39
+ ---
40
+
41
+ ## List history for specific file
42
+
43
+ ```
44
+ await History.listForFile(path, {
45
+ 'display': "Actual text of the action here.",
46
+ 'per_page': 1,
47
+ })
48
+ ```
49
+
50
+
51
+ ### Parameters
52
+
53
+ * `start_at` (string): Leave blank or set to a date/time to filter earlier entries.
54
+ * `end_at` (string): Leave blank or set to a date/time to filter later entries.
55
+ * `display` (string): Display format. Leave blank or set to `full` or `parent`.
56
+ * `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.
57
+ * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
58
+ * `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 `user_id` and `created_at`.
59
+ * `path` (string): Required - Path to operate on.
60
+
61
+ ---
62
+
63
+ ## List history for specific folder
64
+
65
+ ```
66
+ await History.listForFolder(path, {
67
+ 'display': "Actual text of the action here.",
68
+ 'per_page': 1,
69
+ })
70
+ ```
71
+
72
+
73
+ ### Parameters
74
+
75
+ * `start_at` (string): Leave blank or set to a date/time to filter earlier entries.
76
+ * `end_at` (string): Leave blank or set to a date/time to filter later entries.
77
+ * `display` (string): Display format. Leave blank or set to `full` or `parent`.
78
+ * `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.
79
+ * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
80
+ * `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 `user_id` and `created_at`.
81
+ * `path` (string): Required - Path to operate on.
82
+
83
+ ---
84
+
85
+ ## List history for specific user
86
+
87
+ ```
88
+ await History.listForUser(user_id, {
89
+ 'display': "Actual text of the action here.",
90
+ 'per_page': 1,
91
+ })
92
+ ```
93
+
94
+
95
+ ### Parameters
96
+
97
+ * `start_at` (string): Leave blank or set to a date/time to filter earlier entries.
98
+ * `end_at` (string): Leave blank or set to a date/time to filter later entries.
99
+ * `display` (string): Display format. Leave blank or set to `full` or `parent`.
100
+ * `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.
101
+ * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
102
+ * `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 `user_id` and `created_at`.
103
+ * `user_id` (int64): Required - User ID.
104
+
105
+ ---
106
+
107
+ ## List site login history
108
+
109
+ ```
110
+ await History.listLogins({
111
+ 'display': "Actual text of the action here.",
112
+ 'per_page': 1,
113
+ })
114
+ ```
115
+
116
+
117
+ ### Parameters
118
+
119
+ * `start_at` (string): Leave blank or set to a date/time to filter earlier entries.
120
+ * `end_at` (string): Leave blank or set to a date/time to filter later entries.
121
+ * `display` (string): Display format. Leave blank or set to `full` or `parent`.
122
+ * `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.
123
+ * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
124
+ * `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 `user_id` and `created_at`.
125
+
126
+ ---
127
+
128
+ ## List site full action history
129
+
130
+ ```
131
+ await History.list({
132
+ 'display': "Actual text of the action here.",
133
+ 'per_page': 1,
134
+ })
135
+ ```
136
+
137
+
138
+ ### Parameters
139
+
140
+ * `start_at` (string): Leave blank or set to a date/time to filter earlier entries.
141
+ * `end_at` (string): Leave blank or set to a date/time to filter later entries.
142
+ * `display` (string): Display format. Leave blank or set to `full` or `parent`.
143
+ * `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.
144
+ * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
145
+ * `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`, `folder`, `user_id` or `created_at`.
146
+ * `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `user_id`, `folder` or `path`.
147
+ * `filter_gt` (object): If set, return records where the specified field is greater than the supplied value. Valid fields are `user_id`, `folder` or `path`.
148
+ * `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`, `folder` or `path`.
149
+ * `filter_like` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `user_id`, `folder` or `path`.
150
+ * `filter_lt` (object): If set, return records where the specified field is less than the supplied value. Valid fields are `user_id`, `folder` or `path`.
151
+ * `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`, `folder` or `path`.