files.com 1.0.251 → 1.0.253

Sign up to get free protection for your applications and to get access to all the features.
Files changed (158) hide show
  1. package/_VERSION +1 -1
  2. package/docs/models/ActionNotificationExportResult.md +1 -1
  3. package/docs/models/ApiKey.md +2 -2
  4. package/docs/models/App.md +2 -2
  5. package/docs/models/As2IncomingMessage.md +2 -2
  6. package/docs/models/As2OutgoingMessage.md +2 -2
  7. package/docs/models/As2Partner.md +1 -1
  8. package/docs/models/As2Station.md +1 -1
  9. package/docs/models/Automation.md +15 -2
  10. package/docs/models/AutomationRun.md +2 -2
  11. package/docs/models/BandwidthSnapshot.md +2 -2
  12. package/docs/models/Behavior.md +4 -4
  13. package/docs/models/Bundle.md +2 -2
  14. package/docs/models/BundleDownload.md +2 -2
  15. package/docs/models/BundleNotification.md +1 -1
  16. package/docs/models/BundleRecipient.md +2 -2
  17. package/docs/models/BundleRegistration.md +1 -1
  18. package/docs/models/Clickwrap.md +1 -1
  19. package/docs/models/DnsRecord.md +1 -1
  20. package/docs/models/ExternalEvent.md +2 -2
  21. package/docs/models/FileComment.md +1 -1
  22. package/docs/models/FormFieldSet.md +1 -1
  23. package/docs/models/Group.md +2 -2
  24. package/docs/models/GroupUser.md +1 -1
  25. package/docs/models/History.md +10 -10
  26. package/docs/models/HistoryExportResult.md +1 -1
  27. package/docs/models/InboxRecipient.md +2 -2
  28. package/docs/models/InboxRegistration.md +1 -1
  29. package/docs/models/InboxUpload.md +2 -2
  30. package/docs/models/Invoice.md +1 -1
  31. package/docs/models/IpAddress.md +3 -3
  32. package/docs/models/Lock.md +1 -1
  33. package/docs/models/Message.md +1 -1
  34. package/docs/models/MessageComment.md +1 -1
  35. package/docs/models/MessageCommentReaction.md +1 -1
  36. package/docs/models/MessageReaction.md +1 -1
  37. package/docs/models/Notification.md +2 -2
  38. package/docs/models/Payment.md +1 -1
  39. package/docs/models/Permission.md +2 -2
  40. package/docs/models/Priority.md +1 -1
  41. package/docs/models/Project.md +1 -1
  42. package/docs/models/PublicKey.md +1 -1
  43. package/docs/models/RemoteBandwidthSnapshot.md +2 -2
  44. package/docs/models/RemoteServer.md +1 -1
  45. package/docs/models/Request.md +4 -4
  46. package/docs/models/SettingsChange.md +2 -2
  47. package/docs/models/SftpHostKey.md +1 -1
  48. package/docs/models/SsoStrategy.md +1 -1
  49. package/docs/models/UsageDailySnapshot.md +2 -2
  50. package/docs/models/UsageSnapshot.md +1 -1
  51. package/docs/models/User.md +2 -2
  52. package/docs/models/UserCipherUse.md +1 -1
  53. package/docs/models/UserRequest.md +1 -1
  54. package/lib/models/ActionNotificationExportResult.js +1 -1
  55. package/lib/models/ApiKey.js +2 -2
  56. package/lib/models/App.js +2 -2
  57. package/lib/models/As2IncomingMessage.js +2 -2
  58. package/lib/models/As2OutgoingMessage.js +2 -2
  59. package/lib/models/As2Partner.js +1 -1
  60. package/lib/models/As2Station.js +1 -1
  61. package/lib/models/Automation.js +62 -41
  62. package/lib/models/AutomationRun.js +2 -2
  63. package/lib/models/BandwidthSnapshot.js +2 -2
  64. package/lib/models/Behavior.js +4 -4
  65. package/lib/models/Bundle.js +2 -2
  66. package/lib/models/BundleDownload.js +2 -2
  67. package/lib/models/BundleNotification.js +1 -1
  68. package/lib/models/BundleRecipient.js +2 -2
  69. package/lib/models/BundleRegistration.js +1 -1
  70. package/lib/models/Clickwrap.js +1 -1
  71. package/lib/models/DnsRecord.js +1 -1
  72. package/lib/models/ExternalEvent.js +2 -2
  73. package/lib/models/FileComment.js +1 -1
  74. package/lib/models/FormFieldSet.js +1 -1
  75. package/lib/models/Group.js +2 -2
  76. package/lib/models/GroupUser.js +1 -1
  77. package/lib/models/History.js +10 -10
  78. package/lib/models/HistoryExportResult.js +1 -1
  79. package/lib/models/InboxRecipient.js +2 -2
  80. package/lib/models/InboxRegistration.js +1 -1
  81. package/lib/models/InboxUpload.js +2 -2
  82. package/lib/models/Invoice.js +1 -1
  83. package/lib/models/IpAddress.js +3 -3
  84. package/lib/models/Lock.js +1 -1
  85. package/lib/models/Message.js +1 -1
  86. package/lib/models/MessageComment.js +1 -1
  87. package/lib/models/MessageCommentReaction.js +1 -1
  88. package/lib/models/MessageReaction.js +1 -1
  89. package/lib/models/Notification.js +2 -2
  90. package/lib/models/Payment.js +1 -1
  91. package/lib/models/Permission.js +2 -2
  92. package/lib/models/Priority.js +1 -1
  93. package/lib/models/Project.js +1 -1
  94. package/lib/models/PublicKey.js +1 -1
  95. package/lib/models/RemoteBandwidthSnapshot.js +2 -2
  96. package/lib/models/RemoteServer.js +1 -1
  97. package/lib/models/Request.js +4 -4
  98. package/lib/models/SettingsChange.js +2 -2
  99. package/lib/models/SftpHostKey.js +1 -1
  100. package/lib/models/SsoStrategy.js +1 -1
  101. package/lib/models/UsageDailySnapshot.js +2 -2
  102. package/lib/models/UsageSnapshot.js +1 -1
  103. package/lib/models/User.js +2 -2
  104. package/lib/models/UserCipherUse.js +1 -1
  105. package/lib/models/UserRequest.js +1 -1
  106. package/package.json +1 -1
  107. package/src/models/ActionNotificationExportResult.js +1 -1
  108. package/src/models/ApiKey.js +2 -2
  109. package/src/models/App.js +2 -2
  110. package/src/models/As2IncomingMessage.js +2 -2
  111. package/src/models/As2OutgoingMessage.js +2 -2
  112. package/src/models/As2Partner.js +1 -1
  113. package/src/models/As2Station.js +1 -1
  114. package/src/models/Automation.js +18 -2
  115. package/src/models/AutomationRun.js +2 -2
  116. package/src/models/BandwidthSnapshot.js +2 -2
  117. package/src/models/Behavior.js +4 -4
  118. package/src/models/Bundle.js +2 -2
  119. package/src/models/BundleDownload.js +2 -2
  120. package/src/models/BundleNotification.js +1 -1
  121. package/src/models/BundleRecipient.js +2 -2
  122. package/src/models/BundleRegistration.js +1 -1
  123. package/src/models/Clickwrap.js +1 -1
  124. package/src/models/DnsRecord.js +1 -1
  125. package/src/models/ExternalEvent.js +2 -2
  126. package/src/models/FileComment.js +1 -1
  127. package/src/models/FormFieldSet.js +1 -1
  128. package/src/models/Group.js +2 -2
  129. package/src/models/GroupUser.js +1 -1
  130. package/src/models/History.js +10 -10
  131. package/src/models/HistoryExportResult.js +1 -1
  132. package/src/models/InboxRecipient.js +2 -2
  133. package/src/models/InboxRegistration.js +1 -1
  134. package/src/models/InboxUpload.js +2 -2
  135. package/src/models/Invoice.js +1 -1
  136. package/src/models/IpAddress.js +3 -3
  137. package/src/models/Lock.js +1 -1
  138. package/src/models/Message.js +1 -1
  139. package/src/models/MessageComment.js +1 -1
  140. package/src/models/MessageCommentReaction.js +1 -1
  141. package/src/models/MessageReaction.js +1 -1
  142. package/src/models/Notification.js +2 -2
  143. package/src/models/Payment.js +1 -1
  144. package/src/models/Permission.js +2 -2
  145. package/src/models/Priority.js +1 -1
  146. package/src/models/Project.js +1 -1
  147. package/src/models/PublicKey.js +1 -1
  148. package/src/models/RemoteBandwidthSnapshot.js +2 -2
  149. package/src/models/RemoteServer.js +1 -1
  150. package/src/models/Request.js +4 -4
  151. package/src/models/SettingsChange.js +2 -2
  152. package/src/models/SftpHostKey.js +1 -1
  153. package/src/models/SsoStrategy.js +1 -1
  154. package/src/models/UsageDailySnapshot.js +2 -2
  155. package/src/models/UsageSnapshot.js +1 -1
  156. package/src/models/User.js +2 -2
  157. package/src/models/UserCipherUse.js +1 -1
  158. package/src/models/UserRequest.js +1 -1
@@ -33,7 +33,7 @@ await MessageComment.list({
33
33
  ### Parameters
34
34
 
35
35
  * `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
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.
36
+ * `cursor` (string): Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
37
37
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
38
38
  * `message_id` (int64): Required - Message comment to return comments for.
39
39
 
@@ -29,7 +29,7 @@ await MessageCommentReaction.list({
29
29
  ### Parameters
30
30
 
31
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.
32
+ * `cursor` (string): Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
33
33
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
34
34
  * `message_comment_id` (int64): Required - Message comment to return reactions for.
35
35
 
@@ -29,7 +29,7 @@ await MessageReaction.list({
29
29
  ### Parameters
30
30
 
31
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.
32
+ * `cursor` (string): Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
33
33
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
34
34
  * `message_id` (int64): Required - Message to return reactions for.
35
35
 
@@ -76,9 +76,9 @@ await Notification.list({
76
76
  ### Parameters
77
77
 
78
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.
79
+ * `cursor` (string): Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
80
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`.
81
+ * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[path]=desc`). Valid fields are `path`, `user_id` or `group_id`.
82
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
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
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`.
@@ -53,7 +53,7 @@ await Payment.list({
53
53
 
54
54
  ### Parameters
55
55
 
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.
56
+ * `cursor` (string): Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
57
57
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
58
58
 
59
59
  ---
@@ -41,9 +41,9 @@ await Permission.list({
41
41
 
42
42
  ### Parameters
43
43
 
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.
44
+ * `cursor` (string): Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
45
45
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
46
- * `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 `group_id`, `path`, `user_id` or `permission`.
46
+ * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[group_id]=desc`). Valid fields are `group_id`, `path`, `user_id` or `permission`.
47
47
  * `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `group_id`, `user_id` or `path`. Valid field combinations are `[ group_id, path ]` and `[ user_id, path ]`.
48
48
  * `filter_gt` (object): If set, return records where the specified field is greater than the supplied value. Valid fields are `group_id`, `user_id` or `path`. Valid field combinations are `[ group_id, path ]` and `[ user_id, path ]`.
49
49
  * `filter_gteq` (object): If set, return records where the specified field is greater than or equal to the supplied value. Valid fields are `group_id`, `user_id` or `path`. Valid field combinations are `[ group_id, path ]` and `[ user_id, path ]`.
@@ -25,6 +25,6 @@ await Priority.list(path, {
25
25
 
26
26
  ### Parameters
27
27
 
28
- * `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.
28
+ * `cursor` (string): Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
29
29
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
30
30
  * `path` (string): Required - The path to query for priorities
@@ -25,7 +25,7 @@ await Project.list({
25
25
 
26
26
  ### Parameters
27
27
 
28
- * `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.
28
+ * `cursor` (string): Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
29
29
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
30
30
 
31
31
  ---
@@ -33,7 +33,7 @@ await PublicKey.list({
33
33
  ### Parameters
34
34
 
35
35
  * `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
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.
36
+ * `cursor` (string): Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
37
37
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
38
38
 
39
39
  ---
@@ -31,9 +31,9 @@ await RemoteBandwidthSnapshot.list({
31
31
 
32
32
  ### Parameters
33
33
 
34
- * `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.
34
+ * `cursor` (string): Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
35
35
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
36
- * `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 `logged_at`.
36
+ * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[logged_at]=desc`). Valid fields are `logged_at`.
37
37
  * `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `logged_at`.
38
38
  * `filter_gt` (object): If set, return records where the specified field is greater than the supplied value. Valid fields are `logged_at`.
39
39
  * `filter_gteq` (object): If set, return records where the specified field is greater than or equal to the supplied value. Valid fields are `logged_at`.
@@ -132,7 +132,7 @@ await RemoteServer.list({
132
132
 
133
133
  ### Parameters
134
134
 
135
- * `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.
135
+ * `cursor` (string): Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
136
136
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
137
137
 
138
138
  ---
@@ -37,9 +37,9 @@ await Request.list({
37
37
 
38
38
  ### Parameters
39
39
 
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.
40
+ * `cursor` (string): Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
41
41
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
42
- * `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
+ * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[destination]=desc`). Valid fields are `destination`.
43
43
  * `mine` (boolean): Only show requests of the current user? (Defaults to true if current user is not a site admin.)
44
44
  * `path` (string): Path to show requests for. If omitted, shows all paths. Send `/` to represent the root directory.
45
45
 
@@ -57,9 +57,9 @@ await Request.getFolder(path, {
57
57
 
58
58
  ### Parameters
59
59
 
60
- * `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
+ * `cursor` (string): Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
61
61
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
62
- * `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
+ * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[destination]=desc`). Valid fields are `destination`.
63
63
  * `mine` (boolean): Only show requests of the current user? (Defaults to true if current user is not a site admin.)
64
64
  * `path` (string): Required - Path to show requests for. If omitted, shows all paths. Send `/` to represent the root directory.
65
65
 
@@ -33,9 +33,9 @@ await SettingsChange.list({
33
33
 
34
34
  ### Parameters
35
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.
36
+ * `cursor` (string): Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
37
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`.
38
+ * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[api_key_id]=desc`). Valid fields are `api_key_id`, `created_at` or `user_id`.
39
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
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
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`.
@@ -30,7 +30,7 @@ await SftpHostKey.list({
30
30
 
31
31
  ### Parameters
32
32
 
33
- * `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
+ * `cursor` (string): Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
34
34
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
35
35
 
36
36
  ---
@@ -107,7 +107,7 @@ await SsoStrategy.list({
107
107
 
108
108
  ### Parameters
109
109
 
110
- * `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.
110
+ * `cursor` (string): Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
111
111
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
112
112
 
113
113
  ---
@@ -45,9 +45,9 @@ await UsageDailySnapshot.list({
45
45
 
46
46
  ### Parameters
47
47
 
48
- * `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.
48
+ * `cursor` (string): Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
49
49
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
50
- * `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 `date` and `usage_snapshot_id`.
50
+ * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[date]=desc`). Valid fields are `date` and `usage_snapshot_id`.
51
51
  * `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `date` and `usage_snapshot_id`. Valid field combinations are `[ usage_snapshot_id, date ]`.
52
52
  * `filter_gt` (object): If set, return records where the specified field is greater than the supplied value. Valid fields are `date` and `usage_snapshot_id`. Valid field combinations are `[ usage_snapshot_id, date ]`.
53
53
  * `filter_gteq` (object): If set, return records where the specified field is greater than or equal to the supplied value. Valid fields are `date` and `usage_snapshot_id`. Valid field combinations are `[ usage_snapshot_id, date ]`.
@@ -53,5 +53,5 @@ await UsageSnapshot.list({
53
53
 
54
54
  ### Parameters
55
55
 
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.
56
+ * `cursor` (string): Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
57
57
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
@@ -151,9 +151,9 @@ await User.list({
151
151
 
152
152
  ### Parameters
153
153
 
154
- * `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.
154
+ * `cursor` (string): Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
155
155
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
156
- * `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 `authenticate_until`, `active`, `email`, `last_desktop_login_at`, `last_login_at`, `username`, `company`, `name`, `site_admin`, `receive_admin_alerts`, `password_validity_days`, `ssl_required` or `not_site_admin`.
156
+ * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[authenticate_until]=desc`). Valid fields are `authenticate_until`, `active`, `email`, `last_desktop_login_at`, `last_login_at`, `username`, `company`, `name`, `site_admin`, `receive_admin_alerts`, `password_validity_days`, `ssl_required` or `not_site_admin`.
157
157
  * `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `username`, `email`, `company`, `site_admin`, `password_validity_days`, `ssl_required`, `last_login_at`, `authenticate_until` or `not_site_admin`. Valid field combinations are `[ not_site_admin, username ]`.
158
158
  * `filter_gt` (object): If set, return records where the specified field is greater than the supplied value. Valid fields are `username`, `email`, `company`, `site_admin`, `password_validity_days`, `ssl_required`, `last_login_at`, `authenticate_until` or `not_site_admin`. Valid field combinations are `[ not_site_admin, username ]`.
159
159
  * `filter_gteq` (object): If set, return records where the specified field is greater than or equal to the supplied value. Valid fields are `username`, `email`, `company`, `site_admin`, `password_validity_days`, `ssl_required`, `last_login_at`, `authenticate_until` or `not_site_admin`. Valid field combinations are `[ not_site_admin, username ]`.
@@ -35,5 +35,5 @@ await UserCipherUse.list({
35
35
  ### Parameters
36
36
 
37
37
  * `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
38
- * `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
+ * `cursor` (string): Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
39
39
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
@@ -29,7 +29,7 @@ await UserRequest.list({
29
29
 
30
30
  ### Parameters
31
31
 
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.
32
+ * `cursor` (string): Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
33
33
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
34
34
 
35
35
  ---
@@ -86,7 +86,7 @@ var ActionNotificationExportResult = /*#__PURE__*/(0, _createClass2.default)(fun
86
86
  });
87
87
  // Parameters:
88
88
  // user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
89
- // 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.
89
+ // cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
90
90
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
91
91
  // action_notification_export_id (required) - int64 - ID of the associated action notification export.
92
92
  (0, _defineProperty2.default)(ActionNotificationExportResult, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
@@ -280,9 +280,9 @@ var ApiKey = /*#__PURE__*/(0, _createClass2.default)(function ApiKey() {
280
280
  });
281
281
  // Parameters:
282
282
  // user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
283
- // 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.
283
+ // cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
284
284
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
285
- // 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 `expires_at`.
285
+ // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[expires_at]=desc`). Valid fields are `expires_at`.
286
286
  // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `expires_at`.
287
287
  // filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `expires_at`.
288
288
  // filter_gteq - object - If set, return records where the specified field is greater than or equal to the supplied value. Valid fields are `expires_at`.
package/lib/models/App.js CHANGED
@@ -109,9 +109,9 @@ var App = /*#__PURE__*/(0, _createClass2.default)(function App() {
109
109
  this.options = _objectSpread({}, options);
110
110
  });
111
111
  // Parameters:
112
- // 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.
112
+ // cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
113
113
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
114
- // 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` and `app_type`.
114
+ // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[name]=desc`). Valid fields are `name` and `app_type`.
115
115
  // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `name` and `app_type`. Valid field combinations are `[ name, app_type ]` and `[ app_type, name ]`.
116
116
  // filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `name` and `app_type`. Valid field combinations are `[ name, app_type ]` and `[ app_type, name ]`.
117
117
  // filter_gteq - object - If set, return records where the specified field is greater than or equal to the supplied value. Valid fields are `name` and `app_type`. Valid field combinations are `[ name, app_type ]` and `[ app_type, name ]`.
@@ -185,9 +185,9 @@ var As2IncomingMessage = /*#__PURE__*/(0, _createClass2.default)(function As2Inc
185
185
  this.options = _objectSpread({}, options);
186
186
  });
187
187
  // Parameters:
188
- // 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.
188
+ // cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
189
189
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
190
- // 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 `created_at` and `as2_partner_id`.
190
+ // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[created_at]=desc`). Valid fields are `created_at` and `as2_partner_id`.
191
191
  // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
192
192
  // filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
193
193
  // filter_gteq - object - If set, return records where the specified field is greater than or equal to the supplied value. Valid fields are `created_at`.
@@ -169,9 +169,9 @@ var As2OutgoingMessage = /*#__PURE__*/(0, _createClass2.default)(function As2Out
169
169
  this.options = _objectSpread({}, options);
170
170
  });
171
171
  // Parameters:
172
- // 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.
172
+ // cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
173
173
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
174
- // 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 `created_at` and `as2_partner_id`.
174
+ // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[created_at]=desc`). Valid fields are `created_at` and `as2_partner_id`.
175
175
  // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
176
176
  // filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
177
177
  // filter_gteq - object - If set, return records where the specified field is greater than or equal to the supplied value. Valid fields are `created_at`.
@@ -282,7 +282,7 @@ var As2Partner = /*#__PURE__*/(0, _createClass2.default)(function As2Partner() {
282
282
  this.options = _objectSpread({}, options);
283
283
  });
284
284
  // Parameters:
285
- // 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.
285
+ // cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
286
286
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
287
287
  (0, _defineProperty2.default)(As2Partner, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
288
288
  var _response$data;
@@ -303,7 +303,7 @@ var As2Station = /*#__PURE__*/(0, _createClass2.default)(function As2Station() {
303
303
  this.options = _objectSpread({}, options);
304
304
  });
305
305
  // Parameters:
306
- // 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.
306
+ // cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
307
307
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
308
308
  (0, _defineProperty2.default)(As2Station, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
309
309
  var _response$data;
@@ -143,6 +143,13 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
143
143
  (0, _defineProperty2.default)(this, "setUserId", function (value) {
144
144
  _this.attributes.user_id = value;
145
145
  });
146
+ // array # IDs of remote sync folder behaviors to run by this Automation
147
+ (0, _defineProperty2.default)(this, "getSyncIds", function () {
148
+ return _this.attributes.sync_ids;
149
+ });
150
+ (0, _defineProperty2.default)(this, "setSyncIds", function (value) {
151
+ _this.attributes.sync_ids = value;
152
+ });
146
153
  // array # IDs of Users for the Automation (i.e. who to Request File from)
147
154
  (0, _defineProperty2.default)(this, "getUserIds", function () {
148
155
  return _this.attributes.user_ids;
@@ -193,6 +200,7 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
193
200
  // destination_replace_to - string - If set, this string will replace the value `destination_replace_from` in the destination filename. You can use special patterns here.
194
201
  // interval - string - How often to run this automation? One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
195
202
  // path - string - Path on which this Automation runs. Supports globs.
203
+ // sync_ids - string - A list of sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
196
204
  // user_ids - string - A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
197
205
  // group_ids - string - A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
198
206
  // schedule - object - Custom schedule for running this automation.
@@ -272,68 +280,74 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
272
280
  }
273
281
  throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(path)));
274
282
  case 22:
275
- if (!(params['user_ids'] && !(0, _utils.isString)(params['user_ids']))) {
283
+ if (!(params['sync_ids'] && !(0, _utils.isString)(params['sync_ids']))) {
276
284
  _context.next = 24;
277
285
  break;
278
286
  }
279
- throw new errors.InvalidParameterError("Bad parameter: user_ids must be of type String, received ".concat((0, _utils.getType)(user_ids)));
287
+ throw new errors.InvalidParameterError("Bad parameter: sync_ids must be of type String, received ".concat((0, _utils.getType)(sync_ids)));
280
288
  case 24:
281
- if (!(params['group_ids'] && !(0, _utils.isString)(params['group_ids']))) {
289
+ if (!(params['user_ids'] && !(0, _utils.isString)(params['user_ids']))) {
282
290
  _context.next = 26;
283
291
  break;
284
292
  }
285
- throw new errors.InvalidParameterError("Bad parameter: group_ids must be of type String, received ".concat((0, _utils.getType)(group_ids)));
293
+ throw new errors.InvalidParameterError("Bad parameter: user_ids must be of type String, received ".concat((0, _utils.getType)(user_ids)));
286
294
  case 26:
287
- if (!(params['description'] && !(0, _utils.isString)(params['description']))) {
295
+ if (!(params['group_ids'] && !(0, _utils.isString)(params['group_ids']))) {
288
296
  _context.next = 28;
289
297
  break;
290
298
  }
291
- throw new errors.InvalidParameterError("Bad parameter: description must be of type String, received ".concat((0, _utils.getType)(description)));
299
+ throw new errors.InvalidParameterError("Bad parameter: group_ids must be of type String, received ".concat((0, _utils.getType)(group_ids)));
292
300
  case 28:
293
- if (!(params['name'] && !(0, _utils.isString)(params['name']))) {
301
+ if (!(params['description'] && !(0, _utils.isString)(params['description']))) {
294
302
  _context.next = 30;
295
303
  break;
296
304
  }
297
- throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(name)));
305
+ throw new errors.InvalidParameterError("Bad parameter: description must be of type String, received ".concat((0, _utils.getType)(description)));
298
306
  case 30:
299
- if (!(params['trigger'] && !(0, _utils.isString)(params['trigger']))) {
307
+ if (!(params['name'] && !(0, _utils.isString)(params['name']))) {
300
308
  _context.next = 32;
301
309
  break;
302
310
  }
303
- throw new errors.InvalidParameterError("Bad parameter: trigger must be of type String, received ".concat((0, _utils.getType)(trigger)));
311
+ throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(name)));
304
312
  case 32:
305
- if (!(params['trigger_actions'] && !(0, _utils.isArray)(params['trigger_actions']))) {
313
+ if (!(params['trigger'] && !(0, _utils.isString)(params['trigger']))) {
306
314
  _context.next = 34;
307
315
  break;
308
316
  }
309
- throw new errors.InvalidParameterError("Bad parameter: trigger_actions must be of type Array, received ".concat((0, _utils.getType)(trigger_actions)));
317
+ throw new errors.InvalidParameterError("Bad parameter: trigger must be of type String, received ".concat((0, _utils.getType)(trigger)));
310
318
  case 34:
311
- if (!(params['automation'] && !(0, _utils.isString)(params['automation']))) {
319
+ if (!(params['trigger_actions'] && !(0, _utils.isArray)(params['trigger_actions']))) {
312
320
  _context.next = 36;
313
321
  break;
314
322
  }
315
- throw new errors.InvalidParameterError("Bad parameter: automation must be of type String, received ".concat((0, _utils.getType)(automation)));
323
+ throw new errors.InvalidParameterError("Bad parameter: trigger_actions must be of type Array, received ".concat((0, _utils.getType)(trigger_actions)));
316
324
  case 36:
325
+ if (!(params['automation'] && !(0, _utils.isString)(params['automation']))) {
326
+ _context.next = 38;
327
+ break;
328
+ }
329
+ throw new errors.InvalidParameterError("Bad parameter: automation must be of type String, received ".concat((0, _utils.getType)(automation)));
330
+ case 38:
317
331
  if (params['id']) {
318
- _context.next = 42;
332
+ _context.next = 44;
319
333
  break;
320
334
  }
321
335
  if (!_this.attributes.id) {
322
- _context.next = 41;
336
+ _context.next = 43;
323
337
  break;
324
338
  }
325
339
  params['id'] = _this.id;
326
- _context.next = 42;
340
+ _context.next = 44;
327
341
  break;
328
- case 41:
342
+ case 43:
329
343
  throw new errors.MissingParameterError('Parameter missing: id');
330
- case 42:
331
- _context.next = 44;
332
- return _Api.default.sendRequest("/automations/".concat(encodeURIComponent(params['id'])), 'PATCH', params, _this.options);
333
344
  case 44:
345
+ _context.next = 46;
346
+ return _Api.default.sendRequest("/automations/".concat(encodeURIComponent(params['id'])), 'PATCH', params, _this.options);
347
+ case 46:
334
348
  response = _context.sent;
335
349
  return _context.abrupt("return", new Automation(response === null || response === void 0 ? void 0 : response.data, _this.options));
336
- case 46:
350
+ case 48:
337
351
  case "end":
338
352
  return _context.stop();
339
353
  }
@@ -418,9 +432,9 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
418
432
  this.options = _objectSpread({}, options);
419
433
  });
420
434
  // Parameters:
421
- // 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.
435
+ // cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
422
436
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
423
- // 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 `automation`, `disabled` or `last_modified_at`.
437
+ // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[automation]=desc`). Valid fields are `automation`, `disabled`, `last_modified_at` or `name`.
424
438
  // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `automation`, `last_modified_at` or `disabled`. Valid field combinations are `[ automation, disabled ]` and `[ disabled, automation ]`.
425
439
  // filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `automation`, `last_modified_at` or `disabled`. Valid field combinations are `[ automation, disabled ]` and `[ disabled, automation ]`.
426
440
  // filter_gteq - object - If set, return records where the specified field is greater than or equal to the supplied value. Valid fields are `automation`, `last_modified_at` or `disabled`. Valid field combinations are `[ automation, disabled ]` and `[ disabled, automation ]`.
@@ -536,6 +550,7 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
536
550
  // destination_replace_to - string - If set, this string will replace the value `destination_replace_from` in the destination filename. You can use special patterns here.
537
551
  // interval - string - How often to run this automation? One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
538
552
  // path - string - Path on which this Automation runs. Supports globs.
553
+ // sync_ids - string - A list of sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
539
554
  // user_ids - string - A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
540
555
  // group_ids - string - A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
541
556
  // schedule - object - Custom schedule for running this automation.
@@ -604,54 +619,60 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
604
619
  }
605
620
  throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(params['path'])));
606
621
  case 18:
607
- if (!(params['user_ids'] && !(0, _utils.isString)(params['user_ids']))) {
622
+ if (!(params['sync_ids'] && !(0, _utils.isString)(params['sync_ids']))) {
608
623
  _context5.next = 20;
609
624
  break;
610
625
  }
611
- throw new errors.InvalidParameterError("Bad parameter: user_ids must be of type String, received ".concat((0, _utils.getType)(params['user_ids'])));
626
+ throw new errors.InvalidParameterError("Bad parameter: sync_ids must be of type String, received ".concat((0, _utils.getType)(params['sync_ids'])));
612
627
  case 20:
613
- if (!(params['group_ids'] && !(0, _utils.isString)(params['group_ids']))) {
628
+ if (!(params['user_ids'] && !(0, _utils.isString)(params['user_ids']))) {
614
629
  _context5.next = 22;
615
630
  break;
616
631
  }
617
- throw new errors.InvalidParameterError("Bad parameter: group_ids must be of type String, received ".concat((0, _utils.getType)(params['group_ids'])));
632
+ throw new errors.InvalidParameterError("Bad parameter: user_ids must be of type String, received ".concat((0, _utils.getType)(params['user_ids'])));
618
633
  case 22:
619
- if (!(params['description'] && !(0, _utils.isString)(params['description']))) {
634
+ if (!(params['group_ids'] && !(0, _utils.isString)(params['group_ids']))) {
620
635
  _context5.next = 24;
621
636
  break;
622
637
  }
623
- throw new errors.InvalidParameterError("Bad parameter: description must be of type String, received ".concat((0, _utils.getType)(params['description'])));
638
+ throw new errors.InvalidParameterError("Bad parameter: group_ids must be of type String, received ".concat((0, _utils.getType)(params['group_ids'])));
624
639
  case 24:
625
- if (!(params['name'] && !(0, _utils.isString)(params['name']))) {
640
+ if (!(params['description'] && !(0, _utils.isString)(params['description']))) {
626
641
  _context5.next = 26;
627
642
  break;
628
643
  }
629
- throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params['name'])));
644
+ throw new errors.InvalidParameterError("Bad parameter: description must be of type String, received ".concat((0, _utils.getType)(params['description'])));
630
645
  case 26:
631
- if (!(params['trigger'] && !(0, _utils.isString)(params['trigger']))) {
646
+ if (!(params['name'] && !(0, _utils.isString)(params['name']))) {
632
647
  _context5.next = 28;
633
648
  break;
634
649
  }
635
- throw new errors.InvalidParameterError("Bad parameter: trigger must be of type String, received ".concat((0, _utils.getType)(params['trigger'])));
650
+ throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params['name'])));
636
651
  case 28:
637
- if (!(params['trigger_actions'] && !(0, _utils.isArray)(params['trigger_actions']))) {
652
+ if (!(params['trigger'] && !(0, _utils.isString)(params['trigger']))) {
638
653
  _context5.next = 30;
639
654
  break;
640
655
  }
641
- throw new errors.InvalidParameterError("Bad parameter: trigger_actions must be of type Array, received ".concat((0, _utils.getType)(params['trigger_actions'])));
656
+ throw new errors.InvalidParameterError("Bad parameter: trigger must be of type String, received ".concat((0, _utils.getType)(params['trigger'])));
642
657
  case 30:
643
- if (!(params['automation'] && !(0, _utils.isString)(params['automation']))) {
658
+ if (!(params['trigger_actions'] && !(0, _utils.isArray)(params['trigger_actions']))) {
644
659
  _context5.next = 32;
645
660
  break;
646
661
  }
647
- throw new errors.InvalidParameterError("Bad parameter: automation must be of type String, received ".concat((0, _utils.getType)(params['automation'])));
662
+ throw new errors.InvalidParameterError("Bad parameter: trigger_actions must be of type Array, received ".concat((0, _utils.getType)(params['trigger_actions'])));
648
663
  case 32:
649
- _context5.next = 34;
650
- return _Api.default.sendRequest("/automations", 'POST', params, options);
664
+ if (!(params['automation'] && !(0, _utils.isString)(params['automation']))) {
665
+ _context5.next = 34;
666
+ break;
667
+ }
668
+ throw new errors.InvalidParameterError("Bad parameter: automation must be of type String, received ".concat((0, _utils.getType)(params['automation'])));
651
669
  case 34:
670
+ _context5.next = 36;
671
+ return _Api.default.sendRequest("/automations", 'POST', params, options);
672
+ case 36:
652
673
  response = _context5.sent;
653
674
  return _context5.abrupt("return", new Automation(response === null || response === void 0 ? void 0 : response.data, options));
654
- case 36:
675
+ case 38:
655
676
  case "end":
656
677
  return _context5.stop();
657
678
  }