files.com 1.2.12 → 1.2.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_VERSION +1 -1
- package/docs/models/AccountLineItem.md +17 -5
- package/docs/models/Automation.md +35 -7
- package/docs/models/Behavior.md +2 -2
- package/docs/models/Bundle.md +36 -4
- package/docs/models/FileComment.md +8 -2
- package/docs/models/FormFieldSet.md +30 -4
- package/docs/models/Invoice.md +17 -5
- package/docs/models/InvoiceLineItem.md +0 -2
- package/docs/models/Message.md +20 -2
- package/docs/models/MessageComment.md +8 -2
- package/docs/models/Payment.md +17 -5
- package/docs/models/Site.md +50 -13
- package/docs/models/Status.md +8 -1
- package/lib/Files.js +1 -1
- package/lib/models/AccountLineItem.js +0 -4
- package/lib/models/Automation.js +96 -42
- package/lib/models/Behavior.js +2 -2
- package/lib/models/Invoice.js +0 -4
- package/lib/models/InvoiceLineItem.js +0 -4
- package/lib/models/Payment.js +0 -4
- package/lib/models/Site.js +1 -4
- package/package.json +1 -1
- package/src/Files.js +1 -1
- package/src/models/AccountLineItem.js +0 -3
- package/src/models/Automation.js +48 -6
- package/src/models/Behavior.js +2 -2
- package/src/models/Invoice.js +0 -3
- package/src/models/InvoiceLineItem.js +0 -3
- package/src/models/Payment.js +0 -3
- package/src/models/Site.js +1 -3
    
        package/_VERSION
    CHANGED
    
    | @@ -1 +1 @@ | |
| 1 | 
            -
            1.2. | 
| 1 | 
            +
            1.2.14
         | 
| @@ -11,17 +11,30 @@ | |
| 11 11 | 
             
              "currency": "USD",
         | 
| 12 12 | 
             
              "download_uri": "https://url...",
         | 
| 13 13 | 
             
              "invoice_line_items": [
         | 
| 14 | 
            -
                 | 
| 14 | 
            +
                {
         | 
| 15 | 
            +
                  "amount": 1.0,
         | 
| 16 | 
            +
                  "created_at": "2000-01-01T01:00:00Z",
         | 
| 17 | 
            +
                  "description": "Service from 2019-01-01 through 2019-12-31",
         | 
| 18 | 
            +
                  "type": "invoice",
         | 
| 19 | 
            +
                  "service_end_at": "2000-01-01T01:00:00Z",
         | 
| 20 | 
            +
                  "service_start_at": "2000-01-01T01:00:00Z",
         | 
| 21 | 
            +
                  "plan": "Premier",
         | 
| 22 | 
            +
                  "site": "My site"
         | 
| 23 | 
            +
                }
         | 
| 15 24 | 
             
              ],
         | 
| 16 25 | 
             
              "method": "paypal",
         | 
| 17 26 | 
             
              "payment_line_items": [
         | 
| 18 | 
            -
                 | 
| 27 | 
            +
                {
         | 
| 28 | 
            +
                  "amount": 1.0,
         | 
| 29 | 
            +
                  "created_at": "2000-01-01T01:00:00Z",
         | 
| 30 | 
            +
                  "invoice_id": 1,
         | 
| 31 | 
            +
                  "payment_id": 1
         | 
| 32 | 
            +
                }
         | 
| 19 33 | 
             
              ],
         | 
| 20 34 | 
             
              "payment_reversed_at": "2000-01-01T01:00:00Z",
         | 
| 21 35 | 
             
              "payment_type": "example",
         | 
| 22 36 | 
             
              "site_name": "My Site",
         | 
| 23 | 
            -
              "type": "invoice" | 
| 24 | 
            -
              "updated_at": "2000-01-01T01:00:00Z"
         | 
| 37 | 
            +
              "type": "invoice"
         | 
| 25 38 | 
             
            }
         | 
| 26 39 | 
             
            ```
         | 
| 27 40 |  | 
| @@ -38,4 +51,3 @@ | |
| 38 51 | 
             
            * `payment_type` (string): Type of payment if applicable
         | 
| 39 52 | 
             
            * `site_name` (string): Site name this line item is for
         | 
| 40 53 | 
             
            * `type` (string): Type of line item, either payment or invoice
         | 
| 41 | 
            -
            * `updated_at` (date-time): Line item updated at
         | 
| @@ -24,7 +24,16 @@ | |
| 24 24 | 
             
              "name": "example",
         | 
| 25 25 | 
             
              "path": "example",
         | 
| 26 26 | 
             
              "recurring_day": 25,
         | 
| 27 | 
            -
              " | 
| 27 | 
            +
              "schedule_days_of_week": [
         | 
| 28 | 
            +
                0,
         | 
| 29 | 
            +
                2,
         | 
| 30 | 
            +
                4
         | 
| 31 | 
            +
              ],
         | 
| 32 | 
            +
              "schedule_times_of_day": [
         | 
| 33 | 
            +
                "06:30",
         | 
| 34 | 
            +
                "14:30"
         | 
| 35 | 
            +
              ],
         | 
| 36 | 
            +
              "schedule_time_zone": "Eastern Time (US & Canada)",
         | 
| 28 37 | 
             
              "source": "example",
         | 
| 29 38 | 
             
              "sync_ids": [
         | 
| 30 39 | 
             
                1,
         | 
| @@ -61,7 +70,9 @@ | |
| 61 70 | 
             
            * `name` (string): Name for this automation.
         | 
| 62 71 | 
             
            * `path` (string): Path on which this Automation runs.  Supports globs, except on remote mounts. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
         | 
| 63 72 | 
             
            * `recurring_day` (int64): If trigger type is `daily`, this specifies a day number to run in one of the supported intervals: `week`, `month`, `quarter`, `year`.
         | 
| 64 | 
            -
            * ` | 
| 73 | 
            +
            * `schedule_days_of_week` (array): If trigger is `custom_schedule`, Custom schedule description for when the automation should be run.
         | 
| 74 | 
            +
            * `schedule_times_of_day` (array): If trigger is `custom_schedule`, Custom schedule description for when the automation should be run.
         | 
| 75 | 
            +
            * `schedule_time_zone` (string): If trigger is `custom_schedule`, Custom schedule description for when the automation should be run.
         | 
| 65 76 | 
             
            * `source` (string): Source Path
         | 
| 66 77 | 
             
            * `sync_ids` (array): IDs of remote sync folder behaviors to run by this Automation
         | 
| 67 78 | 
             
            * `trigger_actions` (array): If trigger is `action`, this is the list of action types on which to trigger the automation. Valid actions are create, read, update, destroy, move, copy
         | 
| @@ -124,7 +135,9 @@ await Automation.create({ | |
| 124 135 | 
             
              'sync_ids': [1,2],
         | 
| 125 136 | 
             
              'user_ids': [1,2],
         | 
| 126 137 | 
             
              'group_ids': [1,2],
         | 
| 127 | 
            -
              ' | 
| 138 | 
            +
              'schedule_days_of_week': [0,1,3],
         | 
| 139 | 
            +
              'schedule_times_of_day': ["7:30","11:30"],
         | 
| 140 | 
            +
              'schedule_time_zone': "Eastern Time (US & Canada)",
         | 
| 128 141 | 
             
              'always_overwrite_size_matching_files': true,
         | 
| 129 142 | 
             
              'description': "example",
         | 
| 130 143 | 
             
              'disabled': true,
         | 
| @@ -150,7 +163,9 @@ await Automation.create({ | |
| 150 163 | 
             
            * `sync_ids` (string): A list of sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
         | 
| 151 164 | 
             
            * `user_ids` (string): A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
         | 
| 152 165 | 
             
            * `group_ids` (string): A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
         | 
| 153 | 
            -
            * ` | 
| 166 | 
            +
            * `schedule_days_of_week` (array(int64)): If trigger is `custom_schedule`. A list of days of the week to run this automation. 0 is Sunday, 1 is Monday, etc.
         | 
| 167 | 
            +
            * `schedule_times_of_day` (array(string)): If trigger is `custom_schedule`. A list of times of day to run this automation. 24-hour time format.
         | 
| 168 | 
            +
            * `schedule_time_zone` (string): If trigger is `custom_schedule`. Time zone for the schedule.
         | 
| 154 169 | 
             
            * `always_overwrite_size_matching_files` (boolean): Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer.  If this flag is `true` we will overwrite the destination file always.  Note that this may cause large amounts of wasted transfer usage.
         | 
| 155 170 | 
             
            * `description` (string): Description for the this Automation.
         | 
| 156 171 | 
             
            * `disabled` (boolean): If true, this automation will not run.
         | 
| @@ -193,7 +208,9 @@ await automation.update({ | |
| 193 208 | 
             
              'sync_ids': [1,2],
         | 
| 194 209 | 
             
              'user_ids': [1,2],
         | 
| 195 210 | 
             
              'group_ids': [1,2],
         | 
| 196 | 
            -
              ' | 
| 211 | 
            +
              'schedule_days_of_week': [0,1,3],
         | 
| 212 | 
            +
              'schedule_times_of_day': ["7:30","11:30"],
         | 
| 213 | 
            +
              'schedule_time_zone': "Eastern Time (US & Canada)",
         | 
| 197 214 | 
             
              'always_overwrite_size_matching_files': true,
         | 
| 198 215 | 
             
              'description': "example",
         | 
| 199 216 | 
             
              'disabled': true,
         | 
| @@ -219,7 +236,9 @@ await automation.update({ | |
| 219 236 | 
             
            * `sync_ids` (string): A list of sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
         | 
| 220 237 | 
             
            * `user_ids` (string): A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
         | 
| 221 238 | 
             
            * `group_ids` (string): A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
         | 
| 222 | 
            -
            * ` | 
| 239 | 
            +
            * `schedule_days_of_week` (array(int64)): If trigger is `custom_schedule`. A list of days of the week to run this automation. 0 is Sunday, 1 is Monday, etc.
         | 
| 240 | 
            +
            * `schedule_times_of_day` (array(string)): If trigger is `custom_schedule`. A list of times of day to run this automation. 24-hour time format.
         | 
| 241 | 
            +
            * `schedule_time_zone` (string): If trigger is `custom_schedule`. Time zone for the schedule.
         | 
| 223 242 | 
             
            * `always_overwrite_size_matching_files` (boolean): Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer.  If this flag is `true` we will overwrite the destination file always.  Note that this may cause large amounts of wasted transfer usage.
         | 
| 224 243 | 
             
            * `description` (string): Description for the this Automation.
         | 
| 225 244 | 
             
            * `disabled` (boolean): If true, this automation will not run.
         | 
| @@ -254,7 +273,16 @@ await automation.update({ | |
| 254 273 | 
             
              "name": "example",
         | 
| 255 274 | 
             
              "path": "example",
         | 
| 256 275 | 
             
              "recurring_day": 25,
         | 
| 257 | 
            -
              " | 
| 276 | 
            +
              "schedule_days_of_week": [
         | 
| 277 | 
            +
                0,
         | 
| 278 | 
            +
                2,
         | 
| 279 | 
            +
                4
         | 
| 280 | 
            +
              ],
         | 
| 281 | 
            +
              "schedule_times_of_day": [
         | 
| 282 | 
            +
                "06:30",
         | 
| 283 | 
            +
                "14:30"
         | 
| 284 | 
            +
              ],
         | 
| 285 | 
            +
              "schedule_time_zone": "Eastern Time (US & Canada)",
         | 
| 258 286 | 
             
              "source": "example",
         | 
| 259 287 | 
             
              "sync_ids": [
         | 
| 260 288 | 
             
                1,
         | 
    
        package/docs/models/Behavior.md
    CHANGED
    
    | @@ -98,7 +98,7 @@ await Behavior.create({ | |
| 98 98 |  | 
| 99 99 | 
             
            ### Parameters
         | 
| 100 100 |  | 
| 101 | 
            -
            * `value` (string): The value of the folder behavior.  Can be  | 
| 101 | 
            +
            * `value` (string): The value of the folder behavior.  Can be an integer, array, or hash depending on the type of folder behavior. See The Behavior Types section for example values for each type of behavior.
         | 
| 102 102 | 
             
            * `attachment_file` (file): Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
         | 
| 103 103 | 
             
            * `name` (string): Name for this behavior.
         | 
| 104 104 | 
             
            * `description` (string): Description for this behavior.
         | 
| @@ -150,7 +150,7 @@ await behavior.update({ | |
| 150 150 | 
             
            ### Parameters
         | 
| 151 151 |  | 
| 152 152 | 
             
            * `id` (int64): Required - Behavior ID.
         | 
| 153 | 
            -
            * `value` (string): The value of the folder behavior.  Can be  | 
| 153 | 
            +
            * `value` (string): The value of the folder behavior.  Can be an integer, array, or hash depending on the type of folder behavior. See The Behavior Types section for example values for each type of behavior.
         | 
| 154 154 | 
             
            * `attachment_file` (file): Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
         | 
| 155 155 | 
             
            * `name` (string): Name for this behavior.
         | 
| 156 156 | 
             
            * `description` (string): Description for this behavior.
         | 
    
        package/docs/models/Bundle.md
    CHANGED
    
    | @@ -30,7 +30,20 @@ | |
| 30 30 | 
             
                  4
         | 
| 31 31 | 
             
                ],
         | 
| 32 32 | 
             
                "form_fields": [
         | 
| 33 | 
            -
                   | 
| 33 | 
            +
                  {
         | 
| 34 | 
            +
                    "id": 1,
         | 
| 35 | 
            +
                    "label": "Sample Label",
         | 
| 36 | 
            +
                    "required": true,
         | 
| 37 | 
            +
                    "help_text": "Help Text",
         | 
| 38 | 
            +
                    "field_type": "text",
         | 
| 39 | 
            +
                    "options_for_select": [
         | 
| 40 | 
            +
                      "red",
         | 
| 41 | 
            +
                      "green",
         | 
| 42 | 
            +
                      "blue"
         | 
| 43 | 
            +
                    ],
         | 
| 44 | 
            +
                    "default_option": "red",
         | 
| 45 | 
            +
                    "form_field_set_id": 1
         | 
| 46 | 
            +
                  }
         | 
| 34 47 | 
             
                ],
         | 
| 35 48 | 
             
                "skip_name": true,
         | 
| 36 49 | 
             
                "skip_email": true,
         | 
| @@ -52,7 +65,10 @@ | |
| 52 65 | 
             
              "username": "user",
         | 
| 53 66 | 
             
              "clickwrap_id": 1,
         | 
| 54 67 | 
             
              "inbox_id": 1,
         | 
| 55 | 
            -
              "watermark_attachment":  | 
| 68 | 
            +
              "watermark_attachment": {
         | 
| 69 | 
            +
                "name": "My logo",
         | 
| 70 | 
            +
                "uri": "https://mysite.files.com/.../my_image.png"
         | 
| 71 | 
            +
              },
         | 
| 56 72 | 
             
              "watermark_value": {
         | 
| 57 73 | 
             
                "key": "example value"
         | 
| 58 74 | 
             
              },
         | 
| @@ -324,7 +340,20 @@ await bundle.update({ | |
| 324 340 | 
             
                  4
         | 
| 325 341 | 
             
                ],
         | 
| 326 342 | 
             
                "form_fields": [
         | 
| 327 | 
            -
                   | 
| 343 | 
            +
                  {
         | 
| 344 | 
            +
                    "id": 1,
         | 
| 345 | 
            +
                    "label": "Sample Label",
         | 
| 346 | 
            +
                    "required": true,
         | 
| 347 | 
            +
                    "help_text": "Help Text",
         | 
| 348 | 
            +
                    "field_type": "text",
         | 
| 349 | 
            +
                    "options_for_select": [
         | 
| 350 | 
            +
                      "red",
         | 
| 351 | 
            +
                      "green",
         | 
| 352 | 
            +
                      "blue"
         | 
| 353 | 
            +
                    ],
         | 
| 354 | 
            +
                    "default_option": "red",
         | 
| 355 | 
            +
                    "form_field_set_id": 1
         | 
| 356 | 
            +
                  }
         | 
| 328 357 | 
             
                ],
         | 
| 329 358 | 
             
                "skip_name": true,
         | 
| 330 359 | 
             
                "skip_email": true,
         | 
| @@ -346,7 +375,10 @@ await bundle.update({ | |
| 346 375 | 
             
              "username": "user",
         | 
| 347 376 | 
             
              "clickwrap_id": 1,
         | 
| 348 377 | 
             
              "inbox_id": 1,
         | 
| 349 | 
            -
              "watermark_attachment":  | 
| 378 | 
            +
              "watermark_attachment": {
         | 
| 379 | 
            +
                "name": "My logo",
         | 
| 380 | 
            +
                "uri": "https://mysite.files.com/.../my_image.png"
         | 
| 381 | 
            +
              },
         | 
| 350 382 | 
             
              "watermark_value": {
         | 
| 351 383 | 
             
                "key": "example value"
         | 
| 352 384 | 
             
              },
         | 
| @@ -7,7 +7,10 @@ | |
| 7 7 | 
             
              "id": 1,
         | 
| 8 8 | 
             
              "body": "What a great file!",
         | 
| 9 9 | 
             
              "reactions": [
         | 
| 10 | 
            -
                 | 
| 10 | 
            +
                {
         | 
| 11 | 
            +
                  "id": 1,
         | 
| 12 | 
            +
                  "emoji": "👍"
         | 
| 13 | 
            +
                }
         | 
| 11 14 | 
             
              ]
         | 
| 12 15 | 
             
            }
         | 
| 13 16 | 
             
            ```
         | 
| @@ -75,7 +78,10 @@ await file_comment.update({ | |
| 75 78 | 
             
              "id": 1,
         | 
| 76 79 | 
             
              "body": "What a great file!",
         | 
| 77 80 | 
             
              "reactions": [
         | 
| 78 | 
            -
                 | 
| 81 | 
            +
                {
         | 
| 82 | 
            +
                  "id": 1,
         | 
| 83 | 
            +
                  "emoji": "👍"
         | 
| 84 | 
            +
                }
         | 
| 79 85 | 
             
              ]
         | 
| 80 86 | 
             
            }
         | 
| 81 87 | 
             
            ```
         | 
| @@ -13,7 +13,20 @@ | |
| 13 13 | 
             
                4
         | 
| 14 14 | 
             
              ],
         | 
| 15 15 | 
             
              "form_fields": [
         | 
| 16 | 
            -
                 | 
| 16 | 
            +
                {
         | 
| 17 | 
            +
                  "id": 1,
         | 
| 18 | 
            +
                  "label": "Sample Label",
         | 
| 19 | 
            +
                  "required": true,
         | 
| 20 | 
            +
                  "help_text": "Help Text",
         | 
| 21 | 
            +
                  "field_type": "text",
         | 
| 22 | 
            +
                  "options_for_select": [
         | 
| 23 | 
            +
                    "red",
         | 
| 24 | 
            +
                    "green",
         | 
| 25 | 
            +
                    "blue"
         | 
| 26 | 
            +
                  ],
         | 
| 27 | 
            +
                  "default_option": "red",
         | 
| 28 | 
            +
                  "form_field_set_id": 1
         | 
| 29 | 
            +
                }
         | 
| 17 30 | 
             
              ],
         | 
| 18 31 | 
             
              "skip_name": true,
         | 
| 19 32 | 
             
              "skip_email": true,
         | 
| @@ -72,7 +85,7 @@ await FormFieldSet.create({ | |
| 72 85 | 
             
              'skip_email': true,
         | 
| 73 86 | 
             
              'skip_name': true,
         | 
| 74 87 | 
             
              'skip_company': true,
         | 
| 75 | 
            -
              'form_fields': [ | 
| 88 | 
            +
              '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}],
         | 
| 76 89 | 
             
            })
         | 
| 77 90 | 
             
            ```
         | 
| 78 91 |  | 
| @@ -98,7 +111,7 @@ await form_field_set.update({ | |
| 98 111 | 
             
              'skip_email': true,
         | 
| 99 112 | 
             
              'skip_name': true,
         | 
| 100 113 | 
             
              'skip_company': true,
         | 
| 101 | 
            -
              'form_fields': [ | 
| 114 | 
            +
              '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}],
         | 
| 102 115 | 
             
            })
         | 
| 103 116 | 
             
            ```
         | 
| 104 117 |  | 
| @@ -124,7 +137,20 @@ await form_field_set.update({ | |
| 124 137 | 
             
                4
         | 
| 125 138 | 
             
              ],
         | 
| 126 139 | 
             
              "form_fields": [
         | 
| 127 | 
            -
                 | 
| 140 | 
            +
                {
         | 
| 141 | 
            +
                  "id": 1,
         | 
| 142 | 
            +
                  "label": "Sample Label",
         | 
| 143 | 
            +
                  "required": true,
         | 
| 144 | 
            +
                  "help_text": "Help Text",
         | 
| 145 | 
            +
                  "field_type": "text",
         | 
| 146 | 
            +
                  "options_for_select": [
         | 
| 147 | 
            +
                    "red",
         | 
| 148 | 
            +
                    "green",
         | 
| 149 | 
            +
                    "blue"
         | 
| 150 | 
            +
                  ],
         | 
| 151 | 
            +
                  "default_option": "red",
         | 
| 152 | 
            +
                  "form_field_set_id": 1
         | 
| 153 | 
            +
                }
         | 
| 128 154 | 
             
              ],
         | 
| 129 155 | 
             
              "skip_name": true,
         | 
| 130 156 | 
             
              "skip_email": true,
         | 
    
        package/docs/models/Invoice.md
    CHANGED
    
    | @@ -11,17 +11,30 @@ | |
| 11 11 | 
             
              "currency": "USD",
         | 
| 12 12 | 
             
              "download_uri": "https://url...",
         | 
| 13 13 | 
             
              "invoice_line_items": [
         | 
| 14 | 
            -
                 | 
| 14 | 
            +
                {
         | 
| 15 | 
            +
                  "amount": 1.0,
         | 
| 16 | 
            +
                  "created_at": "2000-01-01T01:00:00Z",
         | 
| 17 | 
            +
                  "description": "Service from 2019-01-01 through 2019-12-31",
         | 
| 18 | 
            +
                  "type": "invoice",
         | 
| 19 | 
            +
                  "service_end_at": "2000-01-01T01:00:00Z",
         | 
| 20 | 
            +
                  "service_start_at": "2000-01-01T01:00:00Z",
         | 
| 21 | 
            +
                  "plan": "Premier",
         | 
| 22 | 
            +
                  "site": "My site"
         | 
| 23 | 
            +
                }
         | 
| 15 24 | 
             
              ],
         | 
| 16 25 | 
             
              "method": "paypal",
         | 
| 17 26 | 
             
              "payment_line_items": [
         | 
| 18 | 
            -
                 | 
| 27 | 
            +
                {
         | 
| 28 | 
            +
                  "amount": 1.0,
         | 
| 29 | 
            +
                  "created_at": "2000-01-01T01:00:00Z",
         | 
| 30 | 
            +
                  "invoice_id": 1,
         | 
| 31 | 
            +
                  "payment_id": 1
         | 
| 32 | 
            +
                }
         | 
| 19 33 | 
             
              ],
         | 
| 20 34 | 
             
              "payment_reversed_at": "2000-01-01T01:00:00Z",
         | 
| 21 35 | 
             
              "payment_type": "example",
         | 
| 22 36 | 
             
              "site_name": "My Site",
         | 
| 23 | 
            -
              "type": "invoice" | 
| 24 | 
            -
              "updated_at": "2000-01-01T01:00:00Z"
         | 
| 37 | 
            +
              "type": "invoice"
         | 
| 25 38 | 
             
            }
         | 
| 26 39 | 
             
            ```
         | 
| 27 40 |  | 
| @@ -38,7 +51,6 @@ | |
| 38 51 | 
             
            * `payment_type` (string): Type of payment if applicable
         | 
| 39 52 | 
             
            * `site_name` (string): Site name this line item is for
         | 
| 40 53 | 
             
            * `type` (string): Type of line item, either payment or invoice
         | 
| 41 | 
            -
            * `updated_at` (date-time): Line item updated at
         | 
| 42 54 |  | 
| 43 55 | 
             
            ---
         | 
| 44 56 |  | 
| @@ -10,7 +10,6 @@ | |
| 10 10 | 
             
              "type": "invoice",
         | 
| 11 11 | 
             
              "service_end_at": "2000-01-01T01:00:00Z",
         | 
| 12 12 | 
             
              "service_start_at": "2000-01-01T01:00:00Z",
         | 
| 13 | 
            -
              "updated_at": "2000-01-01T01:00:00Z",
         | 
| 14 13 | 
             
              "plan": "Premier",
         | 
| 15 14 | 
             
              "site": "My site"
         | 
| 16 15 | 
             
            }
         | 
| @@ -22,6 +21,5 @@ | |
| 22 21 | 
             
            * `type` (string): Invoice line item type
         | 
| 23 22 | 
             
            * `service_end_at` (date-time): Invoice line item service end date/time
         | 
| 24 23 | 
             
            * `service_start_at` (date-time): Invoice line item service start date/time
         | 
| 25 | 
            -
            * `updated_at` (date-time): Invoice line item updated date/time
         | 
| 26 24 | 
             
            * `plan` (string): Plan name
         | 
| 27 25 | 
             
            * `site` (string): Site name
         | 
    
        package/docs/models/Message.md
    CHANGED
    
    | @@ -8,7 +8,16 @@ | |
| 8 8 | 
             
              "subject": "Files.com Account Upgrade",
         | 
| 9 9 | 
             
              "body": "We should upgrade our Files.com account!",
         | 
| 10 10 | 
             
              "comments": [
         | 
| 11 | 
            -
                 | 
| 11 | 
            +
                {
         | 
| 12 | 
            +
                  "id": 1,
         | 
| 13 | 
            +
                  "body": "What a great idea, thank you!",
         | 
| 14 | 
            +
                  "reactions": [
         | 
| 15 | 
            +
                    {
         | 
| 16 | 
            +
                      "id": 1,
         | 
| 17 | 
            +
                      "emoji": "👍"
         | 
| 18 | 
            +
                    }
         | 
| 19 | 
            +
                  ]
         | 
| 20 | 
            +
                }
         | 
| 12 21 | 
             
              ]
         | 
| 13 22 | 
             
            }
         | 
| 14 23 | 
             
            ```
         | 
| @@ -103,7 +112,16 @@ await message.update({ | |
| 103 112 | 
             
              "subject": "Files.com Account Upgrade",
         | 
| 104 113 | 
             
              "body": "We should upgrade our Files.com account!",
         | 
| 105 114 | 
             
              "comments": [
         | 
| 106 | 
            -
                 | 
| 115 | 
            +
                {
         | 
| 116 | 
            +
                  "id": 1,
         | 
| 117 | 
            +
                  "body": "What a great idea, thank you!",
         | 
| 118 | 
            +
                  "reactions": [
         | 
| 119 | 
            +
                    {
         | 
| 120 | 
            +
                      "id": 1,
         | 
| 121 | 
            +
                      "emoji": "👍"
         | 
| 122 | 
            +
                    }
         | 
| 123 | 
            +
                  ]
         | 
| 124 | 
            +
                }
         | 
| 107 125 | 
             
              ]
         | 
| 108 126 | 
             
            }
         | 
| 109 127 | 
             
            ```
         | 
| @@ -7,7 +7,10 @@ | |
| 7 7 | 
             
              "id": 1,
         | 
| 8 8 | 
             
              "body": "What a great idea, thank you!",
         | 
| 9 9 | 
             
              "reactions": [
         | 
| 10 | 
            -
                 | 
| 10 | 
            +
                {
         | 
| 11 | 
            +
                  "id": 1,
         | 
| 12 | 
            +
                  "emoji": "👍"
         | 
| 13 | 
            +
                }
         | 
| 11 14 | 
             
              ]
         | 
| 12 15 | 
             
            }
         | 
| 13 16 | 
             
            ```
         | 
| @@ -91,7 +94,10 @@ await message_comment.update({ | |
| 91 94 | 
             
              "id": 1,
         | 
| 92 95 | 
             
              "body": "What a great idea, thank you!",
         | 
| 93 96 | 
             
              "reactions": [
         | 
| 94 | 
            -
                 | 
| 97 | 
            +
                {
         | 
| 98 | 
            +
                  "id": 1,
         | 
| 99 | 
            +
                  "emoji": "👍"
         | 
| 100 | 
            +
                }
         | 
| 95 101 | 
             
              ]
         | 
| 96 102 | 
             
            }
         | 
| 97 103 | 
             
            ```
         | 
    
        package/docs/models/Payment.md
    CHANGED
    
    | @@ -11,17 +11,30 @@ | |
| 11 11 | 
             
              "currency": "USD",
         | 
| 12 12 | 
             
              "download_uri": "https://url...",
         | 
| 13 13 | 
             
              "invoice_line_items": [
         | 
| 14 | 
            -
                 | 
| 14 | 
            +
                {
         | 
| 15 | 
            +
                  "amount": 1.0,
         | 
| 16 | 
            +
                  "created_at": "2000-01-01T01:00:00Z",
         | 
| 17 | 
            +
                  "description": "Service from 2019-01-01 through 2019-12-31",
         | 
| 18 | 
            +
                  "type": "invoice",
         | 
| 19 | 
            +
                  "service_end_at": "2000-01-01T01:00:00Z",
         | 
| 20 | 
            +
                  "service_start_at": "2000-01-01T01:00:00Z",
         | 
| 21 | 
            +
                  "plan": "Premier",
         | 
| 22 | 
            +
                  "site": "My site"
         | 
| 23 | 
            +
                }
         | 
| 15 24 | 
             
              ],
         | 
| 16 25 | 
             
              "method": "paypal",
         | 
| 17 26 | 
             
              "payment_line_items": [
         | 
| 18 | 
            -
                 | 
| 27 | 
            +
                {
         | 
| 28 | 
            +
                  "amount": 1.0,
         | 
| 29 | 
            +
                  "created_at": "2000-01-01T01:00:00Z",
         | 
| 30 | 
            +
                  "invoice_id": 1,
         | 
| 31 | 
            +
                  "payment_id": 1
         | 
| 32 | 
            +
                }
         | 
| 19 33 | 
             
              ],
         | 
| 20 34 | 
             
              "payment_reversed_at": "2000-01-01T01:00:00Z",
         | 
| 21 35 | 
             
              "payment_type": "example",
         | 
| 22 36 | 
             
              "site_name": "My Site",
         | 
| 23 | 
            -
              "type": "invoice" | 
| 24 | 
            -
              "updated_at": "2000-01-01T01:00:00Z"
         | 
| 37 | 
            +
              "type": "invoice"
         | 
| 25 38 | 
             
            }
         | 
| 26 39 | 
             
            ```
         | 
| 27 40 |  | 
| @@ -38,7 +51,6 @@ | |
| 38 51 | 
             
            * `payment_type` (string): Type of payment if applicable
         | 
| 39 52 | 
             
            * `site_name` (string): Site name this line item is for
         | 
| 40 53 | 
             
            * `type` (string): Type of line item, either payment or invoice
         | 
| 41 | 
            -
            * `updated_at` (date-time): Line item updated at
         | 
| 42 54 |  | 
| 43 55 | 
             
            ---
         | 
| 44 56 |  | 
    
        package/docs/models/Site.md
    CHANGED
    
    | @@ -30,7 +30,10 @@ | |
| 30 30 | 
             
              "bundle_require_registration": true,
         | 
| 31 31 | 
             
              "bundle_require_share_recipient": true,
         | 
| 32 32 | 
             
              "bundle_upload_receipt_notifications": "never",
         | 
| 33 | 
            -
              "bundle_watermark_attachment":  | 
| 33 | 
            +
              "bundle_watermark_attachment": {
         | 
| 34 | 
            +
                "name": "My logo",
         | 
| 35 | 
            +
                "uri": "https://mysite.files.com/.../my_image.png"
         | 
| 36 | 
            +
              },
         | 
| 34 37 | 
             
              "bundle_watermark_value": {
         | 
| 35 38 | 
             
                "key": "example value"
         | 
| 36 39 | 
             
              },
         | 
| @@ -68,10 +71,22 @@ | |
| 68 71 | 
             
              "non_sso_users_allowed": true,
         | 
| 69 72 | 
             
              "folder_permissions_groups_only": true,
         | 
| 70 73 | 
             
              "hipaa": true,
         | 
| 71 | 
            -
              "icon128":  | 
| 72 | 
            -
             | 
| 73 | 
            -
             | 
| 74 | 
            -
               | 
| 74 | 
            +
              "icon128": {
         | 
| 75 | 
            +
                "name": "My logo",
         | 
| 76 | 
            +
                "uri": "https://mysite.files.com/.../my_image.png"
         | 
| 77 | 
            +
              },
         | 
| 78 | 
            +
              "icon16": {
         | 
| 79 | 
            +
                "name": "My logo",
         | 
| 80 | 
            +
                "uri": "https://mysite.files.com/.../my_image.png"
         | 
| 81 | 
            +
              },
         | 
| 82 | 
            +
              "icon32": {
         | 
| 83 | 
            +
                "name": "My logo",
         | 
| 84 | 
            +
                "uri": "https://mysite.files.com/.../my_image.png"
         | 
| 85 | 
            +
              },
         | 
| 86 | 
            +
              "icon48": {
         | 
| 87 | 
            +
                "name": "My logo",
         | 
| 88 | 
            +
                "uri": "https://mysite.files.com/.../my_image.png"
         | 
| 89 | 
            +
              },
         | 
| 75 90 | 
             
              "immutable_files_set_at": "2000-01-01T01:00:00Z",
         | 
| 76 91 | 
             
              "include_password_in_welcome_email": true,
         | 
| 77 92 | 
             
              "language": "en",
         | 
| @@ -92,8 +107,14 @@ | |
| 92 107 | 
             
              "ldap_username": "[ldap username]",
         | 
| 93 108 | 
             
              "ldap_username_field": "sAMAccountName",
         | 
| 94 109 | 
             
              "login_help_text": "Login page help text.",
         | 
| 95 | 
            -
              "logo":  | 
| 96 | 
            -
             | 
| 110 | 
            +
              "logo": {
         | 
| 111 | 
            +
                "name": "My logo",
         | 
| 112 | 
            +
                "uri": "https://mysite.files.com/.../my_image.png"
         | 
| 113 | 
            +
              },
         | 
| 114 | 
            +
              "login_page_background_image": {
         | 
| 115 | 
            +
                "name": "My logo",
         | 
| 116 | 
            +
                "uri": "https://mysite.files.com/.../my_image.png"
         | 
| 117 | 
            +
              },
         | 
| 97 118 | 
             
              "max_prior_passwords": 1,
         | 
| 98 119 | 
             
              "motd_text": "example",
         | 
| 99 120 | 
             
              "motd_use_for_ftp": true,
         | 
| @@ -123,8 +144,24 @@ | |
| 123 144 | 
             
              "session": {
         | 
| 124 145 | 
             
                "id": "60525f92e859c4c3d74cb02fd176b1525901b525",
         | 
| 125 146 | 
             
                "language": "en",
         | 
| 147 | 
            +
                "login_token": "@tok-randomcode",
         | 
| 148 | 
            +
                "login_token_domain": "https://mysite.files.com",
         | 
| 149 | 
            +
                "max_dir_listing_size": 1,
         | 
| 150 | 
            +
                "multiple_regions": true,
         | 
| 126 151 | 
             
                "read_only": true,
         | 
| 127 | 
            -
                " | 
| 152 | 
            +
                "root_path": "example",
         | 
| 153 | 
            +
                "sftp_insecure_ciphers": false,
         | 
| 154 | 
            +
                "site_id": 1,
         | 
| 155 | 
            +
                "ssl_required": true,
         | 
| 156 | 
            +
                "tls_disabled": false,
         | 
| 157 | 
            +
                "two_factor_setup_needed": false,
         | 
| 158 | 
            +
                "allowed_2fa_method_sms": true,
         | 
| 159 | 
            +
                "allowed_2fa_method_totp": true,
         | 
| 160 | 
            +
                "allowed_2fa_method_u2f": true,
         | 
| 161 | 
            +
                "allowed_2fa_method_webauthn": true,
         | 
| 162 | 
            +
                "allowed_2fa_method_yubi": true,
         | 
| 163 | 
            +
                "use_provided_modified_at": true,
         | 
| 164 | 
            +
                "windows_mode_ftp": false
         | 
| 128 165 | 
             
              },
         | 
| 129 166 | 
             
              "session_pinned_by_ip": true,
         | 
| 130 167 | 
             
              "sftp_enabled": true,
         | 
| @@ -149,7 +186,6 @@ | |
| 149 186 | 
             
              "tls_disabled": true,
         | 
| 150 187 | 
             
              "trial_days_left": 1,
         | 
| 151 188 | 
             
              "trial_until": "2000-01-01T01:00:00Z",
         | 
| 152 | 
            -
              "updated_at": "2000-01-01T01:00:00Z",
         | 
| 153 189 | 
             
              "use_provided_modified_at": true,
         | 
| 154 190 | 
             
              "user": {
         | 
| 155 191 | 
             
                "id": 1,
         | 
| @@ -163,9 +199,9 @@ | |
| 163 199 | 
             
                "authenticate_until": "2000-01-01T01:00:00Z",
         | 
| 164 200 | 
             
                "authentication_method": "password",
         | 
| 165 201 | 
             
                "avatar_url": "example",
         | 
| 166 | 
            -
                "billing_permission":  | 
| 167 | 
            -
                "bypass_site_allowed_ips":  | 
| 168 | 
            -
                "bypass_inactive_disable":  | 
| 202 | 
            +
                "billing_permission": false,
         | 
| 203 | 
            +
                "bypass_site_allowed_ips": false,
         | 
| 204 | 
            +
                "bypass_inactive_disable": false,
         | 
| 169 205 | 
             
                "created_at": "2000-01-01T01:00:00Z",
         | 
| 170 206 | 
             
                "dav_permission": true,
         | 
| 171 207 | 
             
                "disabled": true,
         | 
| @@ -211,6 +247,7 @@ | |
| 211 247 | 
             
                "externally_managed": true,
         | 
| 212 248 | 
             
                "time_zone": "Pacific Time (US & Canada)",
         | 
| 213 249 | 
             
                "type_of_2fa": "yubi",
         | 
| 250 | 
            +
                "updated_at": "2000-01-01T01:00:00Z",
         | 
| 214 251 | 
             
                "user_root": "example",
         | 
| 215 252 | 
             
                "days_remaining_until_password_expire": 1,
         | 
| 216 253 | 
             
                "password_expire_at": "2000-01-01T01:00:00Z"
         | 
| @@ -368,7 +405,6 @@ | |
| 368 405 | 
             
            * `tls_disabled` (boolean): Are Insecure TLS and SFTP Ciphers allowed?  Enabling this is insecure.
         | 
| 369 406 | 
             
            * `trial_days_left` (int64): Number of days left in trial
         | 
| 370 407 | 
             
            * `trial_until` (date-time): When does this Site trial expire?
         | 
| 371 | 
            -
            * `updated_at` (date-time): Last time this Site was updated
         | 
| 372 408 | 
             
            * `use_provided_modified_at` (boolean): Allow uploaders to set `provided_modified_at` for uploaded files?
         | 
| 373 409 | 
             
            * `user` (User): User of current session
         | 
| 374 410 | 
             
            * `user_lockout` (boolean): Will users be locked out after incorrect login attempts?
         | 
| @@ -585,6 +621,7 @@ await Site.update({ | |
| 585 621 | 
             
            * `motd_text` (string): A message to show users when they connect via FTP or SFTP.
         | 
| 586 622 | 
             
            * `motd_use_for_ftp` (boolean): Show message to users connecting via FTP
         | 
| 587 623 | 
             
            * `motd_use_for_sftp` (boolean): Show message to users connecting via SFTP
         | 
| 624 | 
            +
            * `left_navigation_visibility` (object): Visibility settings for account navigation
         | 
| 588 625 | 
             
            * `session_expiry` (double): Session expiry in hours
         | 
| 589 626 | 
             
            * `ssl_required` (boolean): Is SSL required?  Disabling this is insecure.
         | 
| 590 627 | 
             
            * `tls_disabled` (boolean): Are Insecure TLS and SFTP Ciphers allowed?  Enabling this is insecure.
         | 
    
        package/docs/models/Status.md
    CHANGED
    
    
    
        package/lib/Files.js
    CHANGED
    
    | @@ -11,7 +11,7 @@ var endpointPrefix = '/api/rest/v1'; | |
| 11 11 | 
             
            var apiKey;
         | 
| 12 12 | 
             
            var baseUrl = 'https://app.files.com';
         | 
| 13 13 | 
             
            var sessionId = null;
         | 
| 14 | 
            -
            var version = '1.2. | 
| 14 | 
            +
            var version = '1.2.14';
         | 
| 15 15 | 
             
            var userAgent = "Files.com JavaScript SDK v".concat(version);
         | 
| 16 16 | 
             
            var logLevel = _Logger.LogLevel.INFO;
         | 
| 17 17 | 
             
            var debugRequest = false;
         | 
| @@ -81,10 +81,6 @@ var AccountLineItem = /*#__PURE__*/(0, _createClass2.default)(function AccountLi | |
| 81 81 | 
             
              (0, _defineProperty2.default)(this, "getType", function () {
         | 
| 82 82 | 
             
                return _this.attributes.type;
         | 
| 83 83 | 
             
              });
         | 
| 84 | 
            -
              // date-time # Line item updated at
         | 
| 85 | 
            -
              (0, _defineProperty2.default)(this, "getUpdatedAt", function () {
         | 
| 86 | 
            -
                return _this.attributes.updated_at;
         | 
| 87 | 
            -
              });
         | 
| 88 84 | 
             
              Object.entries(attributes).forEach(function (_ref) {
         | 
| 89 85 | 
             
                var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
         | 
| 90 86 | 
             
                  key = _ref2[0],
         | 
    
        package/lib/models/Automation.js
    CHANGED
    
    | @@ -138,12 +138,26 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() { | |
| 138 138 | 
             
              (0, _defineProperty2.default)(this, "setRecurringDay", function (value) {
         | 
| 139 139 | 
             
                _this.attributes.recurring_day = value;
         | 
| 140 140 | 
             
              });
         | 
| 141 | 
            -
              //  | 
| 142 | 
            -
              (0, _defineProperty2.default)(this, " | 
| 143 | 
            -
                return _this.attributes. | 
| 141 | 
            +
              // array # If trigger is `custom_schedule`, Custom schedule description for when the automation should be run.
         | 
| 142 | 
            +
              (0, _defineProperty2.default)(this, "getScheduleDaysOfWeek", function () {
         | 
| 143 | 
            +
                return _this.attributes.schedule_days_of_week;
         | 
| 144 144 | 
             
              });
         | 
| 145 | 
            -
              (0, _defineProperty2.default)(this, " | 
| 146 | 
            -
                _this.attributes. | 
| 145 | 
            +
              (0, _defineProperty2.default)(this, "setScheduleDaysOfWeek", function (value) {
         | 
| 146 | 
            +
                _this.attributes.schedule_days_of_week = value;
         | 
| 147 | 
            +
              });
         | 
| 148 | 
            +
              // array # If trigger is `custom_schedule`, Custom schedule description for when the automation should be run.
         | 
| 149 | 
            +
              (0, _defineProperty2.default)(this, "getScheduleTimesOfDay", function () {
         | 
| 150 | 
            +
                return _this.attributes.schedule_times_of_day;
         | 
| 151 | 
            +
              });
         | 
| 152 | 
            +
              (0, _defineProperty2.default)(this, "setScheduleTimesOfDay", function (value) {
         | 
| 153 | 
            +
                _this.attributes.schedule_times_of_day = value;
         | 
| 154 | 
            +
              });
         | 
| 155 | 
            +
              // string # If trigger is `custom_schedule`, Custom schedule description for when the automation should be run.
         | 
| 156 | 
            +
              (0, _defineProperty2.default)(this, "getScheduleTimeZone", function () {
         | 
| 157 | 
            +
                return _this.attributes.schedule_time_zone;
         | 
| 158 | 
            +
              });
         | 
| 159 | 
            +
              (0, _defineProperty2.default)(this, "setScheduleTimeZone", function (value) {
         | 
| 160 | 
            +
                _this.attributes.schedule_time_zone = value;
         | 
| 147 161 | 
             
              });
         | 
| 148 162 | 
             
              // string # Source Path
         | 
| 149 163 | 
             
              (0, _defineProperty2.default)(this, "getSource", function () {
         | 
| @@ -268,7 +282,9 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() { | |
| 268 282 | 
             
              //   sync_ids - string - A list of sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
         | 
| 269 283 | 
             
              //   user_ids - string - A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
         | 
| 270 284 | 
             
              //   group_ids - string - A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
         | 
| 271 | 
            -
              //    | 
| 285 | 
            +
              //   schedule_days_of_week - array(int64) - If trigger is `custom_schedule`. A list of days of the week to run this automation. 0 is Sunday, 1 is Monday, etc.
         | 
| 286 | 
            +
              //   schedule_times_of_day - array(string) - If trigger is `custom_schedule`. A list of times of day to run this automation. 24-hour time format.
         | 
| 287 | 
            +
              //   schedule_time_zone - string - If trigger is `custom_schedule`. Time zone for the schedule.
         | 
| 272 288 | 
             
              //   always_overwrite_size_matching_files - boolean - Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer.  If this flag is `true` we will overwrite the destination file always.  Note that this may cause large amounts of wasted transfer usage.
         | 
| 273 289 | 
             
              //   description - string - Description for the this Automation.
         | 
| 274 290 | 
             
              //   disabled - boolean - If true, this automation will not run.
         | 
| @@ -365,62 +381,80 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() { | |
| 365 381 | 
             
                      }
         | 
| 366 382 | 
             
                      throw new errors.InvalidParameterError("Bad parameter: group_ids must be of type String, received ".concat((0, _utils.getType)(params.group_ids)));
         | 
| 367 383 | 
             
                    case 28:
         | 
| 368 | 
            -
                      if (!(params. | 
| 384 | 
            +
                      if (!(params.schedule_days_of_week && !(0, _utils.isArray)(params.schedule_days_of_week))) {
         | 
| 369 385 | 
             
                        _context2.next = 30;
         | 
| 370 386 | 
             
                        break;
         | 
| 371 387 | 
             
                      }
         | 
| 372 | 
            -
                      throw new errors.InvalidParameterError("Bad parameter:  | 
| 388 | 
            +
                      throw new errors.InvalidParameterError("Bad parameter: schedule_days_of_week must be of type Array, received ".concat((0, _utils.getType)(params.schedule_days_of_week)));
         | 
| 373 389 | 
             
                    case 30:
         | 
| 374 | 
            -
                      if (!(params. | 
| 390 | 
            +
                      if (!(params.schedule_times_of_day && !(0, _utils.isArray)(params.schedule_times_of_day))) {
         | 
| 375 391 | 
             
                        _context2.next = 32;
         | 
| 376 392 | 
             
                        break;
         | 
| 377 393 | 
             
                      }
         | 
| 378 | 
            -
                      throw new errors.InvalidParameterError("Bad parameter:  | 
| 394 | 
            +
                      throw new errors.InvalidParameterError("Bad parameter: schedule_times_of_day must be of type Array, received ".concat((0, _utils.getType)(params.schedule_times_of_day)));
         | 
| 379 395 | 
             
                    case 32:
         | 
| 380 | 
            -
                      if (!(params. | 
| 396 | 
            +
                      if (!(params.schedule_time_zone && !(0, _utils.isString)(params.schedule_time_zone))) {
         | 
| 381 397 | 
             
                        _context2.next = 34;
         | 
| 382 398 | 
             
                        break;
         | 
| 383 399 | 
             
                      }
         | 
| 384 | 
            -
                      throw new errors.InvalidParameterError("Bad parameter:  | 
| 400 | 
            +
                      throw new errors.InvalidParameterError("Bad parameter: schedule_time_zone must be of type String, received ".concat((0, _utils.getType)(params.schedule_time_zone)));
         | 
| 385 401 | 
             
                    case 34:
         | 
| 386 | 
            -
                      if (!(params. | 
| 402 | 
            +
                      if (!(params.description && !(0, _utils.isString)(params.description))) {
         | 
| 387 403 | 
             
                        _context2.next = 36;
         | 
| 388 404 | 
             
                        break;
         | 
| 389 405 | 
             
                      }
         | 
| 390 | 
            -
                      throw new errors.InvalidParameterError("Bad parameter:  | 
| 406 | 
            +
                      throw new errors.InvalidParameterError("Bad parameter: description must be of type String, received ".concat((0, _utils.getType)(params.description)));
         | 
| 391 407 | 
             
                    case 36:
         | 
| 392 | 
            -
                      if (!(params. | 
| 408 | 
            +
                      if (!(params.name && !(0, _utils.isString)(params.name))) {
         | 
| 393 409 | 
             
                        _context2.next = 38;
         | 
| 394 410 | 
             
                        break;
         | 
| 395 411 | 
             
                      }
         | 
| 396 | 
            -
                      throw new errors.InvalidParameterError("Bad parameter:  | 
| 412 | 
            +
                      throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params.name)));
         | 
| 397 413 | 
             
                    case 38:
         | 
| 398 | 
            -
                      if (!(params. | 
| 414 | 
            +
                      if (!(params.trigger && !(0, _utils.isString)(params.trigger))) {
         | 
| 399 415 | 
             
                        _context2.next = 40;
         | 
| 400 416 | 
             
                        break;
         | 
| 401 417 | 
             
                      }
         | 
| 402 | 
            -
                      throw new errors.InvalidParameterError("Bad parameter:  | 
| 418 | 
            +
                      throw new errors.InvalidParameterError("Bad parameter: trigger must be of type String, received ".concat((0, _utils.getType)(params.trigger)));
         | 
| 403 419 | 
             
                    case 40:
         | 
| 404 | 
            -
                      if (params. | 
| 420 | 
            +
                      if (!(params.trigger_actions && !(0, _utils.isArray)(params.trigger_actions))) {
         | 
| 421 | 
            +
                        _context2.next = 42;
         | 
| 422 | 
            +
                        break;
         | 
| 423 | 
            +
                      }
         | 
| 424 | 
            +
                      throw new errors.InvalidParameterError("Bad parameter: trigger_actions must be of type Array, received ".concat((0, _utils.getType)(params.trigger_actions)));
         | 
| 425 | 
            +
                    case 42:
         | 
| 426 | 
            +
                      if (!(params.recurring_day && !(0, _utils.isInt)(params.recurring_day))) {
         | 
| 427 | 
            +
                        _context2.next = 44;
         | 
| 428 | 
            +
                        break;
         | 
| 429 | 
            +
                      }
         | 
| 430 | 
            +
                      throw new errors.InvalidParameterError("Bad parameter: recurring_day must be of type Int, received ".concat((0, _utils.getType)(params.recurring_day)));
         | 
| 431 | 
            +
                    case 44:
         | 
| 432 | 
            +
                      if (!(params.automation && !(0, _utils.isString)(params.automation))) {
         | 
| 405 433 | 
             
                        _context2.next = 46;
         | 
| 406 434 | 
             
                        break;
         | 
| 407 435 | 
             
                      }
         | 
| 436 | 
            +
                      throw new errors.InvalidParameterError("Bad parameter: automation must be of type String, received ".concat((0, _utils.getType)(params.automation)));
         | 
| 437 | 
            +
                    case 46:
         | 
| 438 | 
            +
                      if (params.id) {
         | 
| 439 | 
            +
                        _context2.next = 52;
         | 
| 440 | 
            +
                        break;
         | 
| 441 | 
            +
                      }
         | 
| 408 442 | 
             
                      if (!_this.attributes.id) {
         | 
| 409 | 
            -
                        _context2.next =  | 
| 443 | 
            +
                        _context2.next = 51;
         | 
| 410 444 | 
             
                        break;
         | 
| 411 445 | 
             
                      }
         | 
| 412 446 | 
             
                      params.id = _this.id;
         | 
| 413 | 
            -
                      _context2.next =  | 
| 447 | 
            +
                      _context2.next = 52;
         | 
| 414 448 | 
             
                      break;
         | 
| 415 | 
            -
                    case  | 
| 449 | 
            +
                    case 51:
         | 
| 416 450 | 
             
                      throw new errors.MissingParameterError('Parameter missing: id');
         | 
| 417 | 
            -
                    case  | 
| 418 | 
            -
                      _context2.next =  | 
| 451 | 
            +
                    case 52:
         | 
| 452 | 
            +
                      _context2.next = 54;
         | 
| 419 453 | 
             
                      return _Api.default.sendRequest("/automations/".concat(encodeURIComponent(params.id)), 'PATCH', params, _this.options);
         | 
| 420 | 
            -
                    case  | 
| 454 | 
            +
                    case 54:
         | 
| 421 455 | 
             
                      response = _context2.sent;
         | 
| 422 456 | 
             
                      return _context2.abrupt("return", new Automation(response === null || response === void 0 ? void 0 : response.data, _this.options));
         | 
| 423 | 
            -
                    case  | 
| 457 | 
            +
                    case 56:
         | 
| 424 458 | 
             
                    case "end":
         | 
| 425 459 | 
             
                      return _context2.stop();
         | 
| 426 460 | 
             
                  }
         | 
| @@ -634,7 +668,9 @@ _Automation = Automation; | |
| 634 668 | 
             
            //   sync_ids - string - A list of sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
         | 
| 635 669 | 
             
            //   user_ids - string - A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
         | 
| 636 670 | 
             
            //   group_ids - string - A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
         | 
| 637 | 
            -
            //    | 
| 671 | 
            +
            //   schedule_days_of_week - array(int64) - If trigger is `custom_schedule`. A list of days of the week to run this automation. 0 is Sunday, 1 is Monday, etc.
         | 
| 672 | 
            +
            //   schedule_times_of_day - array(string) - If trigger is `custom_schedule`. A list of times of day to run this automation. 24-hour time format.
         | 
| 673 | 
            +
            //   schedule_time_zone - string - If trigger is `custom_schedule`. Time zone for the schedule.
         | 
| 638 674 | 
             
            //   always_overwrite_size_matching_files - boolean - Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer.  If this flag is `true` we will overwrite the destination file always.  Note that this may cause large amounts of wasted transfer usage.
         | 
| 639 675 | 
             
            //   description - string - Description for the this Automation.
         | 
| 640 676 | 
             
            //   disabled - boolean - If true, this automation will not run.
         | 
| @@ -720,48 +756,66 @@ _Automation = Automation; | |
| 720 756 | 
             
                    }
         | 
| 721 757 | 
             
                    throw new errors.InvalidParameterError("Bad parameter: group_ids must be of type String, received ".concat((0, _utils.getType)(params.group_ids)));
         | 
| 722 758 | 
             
                  case 24:
         | 
| 723 | 
            -
                    if (!(params. | 
| 759 | 
            +
                    if (!(params.schedule_days_of_week && !(0, _utils.isArray)(params.schedule_days_of_week))) {
         | 
| 724 760 | 
             
                      _context7.next = 26;
         | 
| 725 761 | 
             
                      break;
         | 
| 726 762 | 
             
                    }
         | 
| 727 | 
            -
                    throw new errors.InvalidParameterError("Bad parameter:  | 
| 763 | 
            +
                    throw new errors.InvalidParameterError("Bad parameter: schedule_days_of_week must be of type Array, received ".concat((0, _utils.getType)(params.schedule_days_of_week)));
         | 
| 728 764 | 
             
                  case 26:
         | 
| 729 | 
            -
                    if (!(params. | 
| 765 | 
            +
                    if (!(params.schedule_times_of_day && !(0, _utils.isArray)(params.schedule_times_of_day))) {
         | 
| 730 766 | 
             
                      _context7.next = 28;
         | 
| 731 767 | 
             
                      break;
         | 
| 732 768 | 
             
                    }
         | 
| 733 | 
            -
                    throw new errors.InvalidParameterError("Bad parameter:  | 
| 769 | 
            +
                    throw new errors.InvalidParameterError("Bad parameter: schedule_times_of_day must be of type Array, received ".concat((0, _utils.getType)(params.schedule_times_of_day)));
         | 
| 734 770 | 
             
                  case 28:
         | 
| 735 | 
            -
                    if (!(params. | 
| 771 | 
            +
                    if (!(params.schedule_time_zone && !(0, _utils.isString)(params.schedule_time_zone))) {
         | 
| 736 772 | 
             
                      _context7.next = 30;
         | 
| 737 773 | 
             
                      break;
         | 
| 738 774 | 
             
                    }
         | 
| 739 | 
            -
                    throw new errors.InvalidParameterError("Bad parameter:  | 
| 775 | 
            +
                    throw new errors.InvalidParameterError("Bad parameter: schedule_time_zone must be of type String, received ".concat((0, _utils.getType)(params.schedule_time_zone)));
         | 
| 740 776 | 
             
                  case 30:
         | 
| 741 | 
            -
                    if (!(params. | 
| 777 | 
            +
                    if (!(params.description && !(0, _utils.isString)(params.description))) {
         | 
| 742 778 | 
             
                      _context7.next = 32;
         | 
| 743 779 | 
             
                      break;
         | 
| 744 780 | 
             
                    }
         | 
| 745 | 
            -
                    throw new errors.InvalidParameterError("Bad parameter:  | 
| 781 | 
            +
                    throw new errors.InvalidParameterError("Bad parameter: description must be of type String, received ".concat((0, _utils.getType)(params.description)));
         | 
| 746 782 | 
             
                  case 32:
         | 
| 747 | 
            -
                    if (!(params. | 
| 783 | 
            +
                    if (!(params.name && !(0, _utils.isString)(params.name))) {
         | 
| 748 784 | 
             
                      _context7.next = 34;
         | 
| 749 785 | 
             
                      break;
         | 
| 750 786 | 
             
                    }
         | 
| 751 | 
            -
                    throw new errors.InvalidParameterError("Bad parameter:  | 
| 787 | 
            +
                    throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params.name)));
         | 
| 752 788 | 
             
                  case 34:
         | 
| 753 | 
            -
                    if (!(params. | 
| 789 | 
            +
                    if (!(params.trigger && !(0, _utils.isString)(params.trigger))) {
         | 
| 754 790 | 
             
                      _context7.next = 36;
         | 
| 755 791 | 
             
                      break;
         | 
| 756 792 | 
             
                    }
         | 
| 757 | 
            -
                    throw new errors.InvalidParameterError("Bad parameter:  | 
| 793 | 
            +
                    throw new errors.InvalidParameterError("Bad parameter: trigger must be of type String, received ".concat((0, _utils.getType)(params.trigger)));
         | 
| 758 794 | 
             
                  case 36:
         | 
| 759 | 
            -
                     | 
| 760 | 
            -
             | 
| 795 | 
            +
                    if (!(params.trigger_actions && !(0, _utils.isArray)(params.trigger_actions))) {
         | 
| 796 | 
            +
                      _context7.next = 38;
         | 
| 797 | 
            +
                      break;
         | 
| 798 | 
            +
                    }
         | 
| 799 | 
            +
                    throw new errors.InvalidParameterError("Bad parameter: trigger_actions must be of type Array, received ".concat((0, _utils.getType)(params.trigger_actions)));
         | 
| 761 800 | 
             
                  case 38:
         | 
| 801 | 
            +
                    if (!(params.recurring_day && !(0, _utils.isInt)(params.recurring_day))) {
         | 
| 802 | 
            +
                      _context7.next = 40;
         | 
| 803 | 
            +
                      break;
         | 
| 804 | 
            +
                    }
         | 
| 805 | 
            +
                    throw new errors.InvalidParameterError("Bad parameter: recurring_day must be of type Int, received ".concat((0, _utils.getType)(params.recurring_day)));
         | 
| 806 | 
            +
                  case 40:
         | 
| 807 | 
            +
                    if (!(params.automation && !(0, _utils.isString)(params.automation))) {
         | 
| 808 | 
            +
                      _context7.next = 42;
         | 
| 809 | 
            +
                      break;
         | 
| 810 | 
            +
                    }
         | 
| 811 | 
            +
                    throw new errors.InvalidParameterError("Bad parameter: automation must be of type String, received ".concat((0, _utils.getType)(params.automation)));
         | 
| 812 | 
            +
                  case 42:
         | 
| 813 | 
            +
                    _context7.next = 44;
         | 
| 814 | 
            +
                    return _Api.default.sendRequest('/automations', 'POST', params, options);
         | 
| 815 | 
            +
                  case 44:
         | 
| 762 816 | 
             
                    response = _context7.sent;
         | 
| 763 817 | 
             
                    return _context7.abrupt("return", new _Automation(response === null || response === void 0 ? void 0 : response.data, options));
         | 
| 764 | 
            -
                  case  | 
| 818 | 
            +
                  case 46:
         | 
| 765 819 | 
             
                  case "end":
         | 
| 766 820 | 
             
                    return _context7.stop();
         | 
| 767 821 | 
             
                }
         | 
    
        package/lib/models/Behavior.js
    CHANGED
    
    | @@ -97,7 +97,7 @@ var Behavior = /*#__PURE__*/(0, _createClass2.default)(function Behavior() { | |
| 97 97 | 
             
                _this.attributes.attachment_delete = value;
         | 
| 98 98 | 
             
              });
         | 
| 99 99 | 
             
              // Parameters:
         | 
| 100 | 
            -
              //   value - string - The value of the folder behavior.  Can be  | 
| 100 | 
            +
              //   value - string - The value of the folder behavior.  Can be an integer, array, or hash depending on the type of folder behavior. See The Behavior Types section for example values for each type of behavior.
         | 
| 101 101 | 
             
              //   attachment_file - file - Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
         | 
| 102 102 | 
             
              //   name - string - Name for this behavior.
         | 
| 103 103 | 
             
              //   description - string - Description for this behavior.
         | 
| @@ -461,7 +461,7 @@ _Behavior = Behavior; | |
| 461 461 | 
             
              };
         | 
| 462 462 | 
             
            }());
         | 
| 463 463 | 
             
            // Parameters:
         | 
| 464 | 
            -
            //   value - string - The value of the folder behavior.  Can be  | 
| 464 | 
            +
            //   value - string - The value of the folder behavior.  Can be an integer, array, or hash depending on the type of folder behavior. See The Behavior Types section for example values for each type of behavior.
         | 
| 465 465 | 
             
            //   attachment_file - file - Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
         | 
| 466 466 | 
             
            //   name - string - Name for this behavior.
         | 
| 467 467 | 
             
            //   description - string - Description for this behavior.
         | 
    
        package/lib/models/Invoice.js
    CHANGED
    
    | @@ -85,10 +85,6 @@ var Invoice = /*#__PURE__*/(0, _createClass2.default)(function Invoice() { | |
| 85 85 | 
             
              (0, _defineProperty2.default)(this, "getType", function () {
         | 
| 86 86 | 
             
                return _this.attributes.type;
         | 
| 87 87 | 
             
              });
         | 
| 88 | 
            -
              // date-time # Line item updated at
         | 
| 89 | 
            -
              (0, _defineProperty2.default)(this, "getUpdatedAt", function () {
         | 
| 90 | 
            -
                return _this.attributes.updated_at;
         | 
| 91 | 
            -
              });
         | 
| 92 88 | 
             
              Object.entries(attributes).forEach(function (_ref) {
         | 
| 93 89 | 
             
                var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
         | 
| 94 90 | 
             
                  key = _ref2[0],
         | 
| @@ -53,10 +53,6 @@ var InvoiceLineItem = /*#__PURE__*/(0, _createClass2.default)(function InvoiceLi | |
| 53 53 | 
             
              (0, _defineProperty2.default)(this, "getServiceStartAt", function () {
         | 
| 54 54 | 
             
                return _this.attributes.service_start_at;
         | 
| 55 55 | 
             
              });
         | 
| 56 | 
            -
              // date-time # Invoice line item updated date/time
         | 
| 57 | 
            -
              (0, _defineProperty2.default)(this, "getUpdatedAt", function () {
         | 
| 58 | 
            -
                return _this.attributes.updated_at;
         | 
| 59 | 
            -
              });
         | 
| 60 56 | 
             
              // string # Plan name
         | 
| 61 57 | 
             
              (0, _defineProperty2.default)(this, "getPlan", function () {
         | 
| 62 58 | 
             
                return _this.attributes.plan;
         | 
    
        package/lib/models/Payment.js
    CHANGED
    
    | @@ -85,10 +85,6 @@ var Payment = /*#__PURE__*/(0, _createClass2.default)(function Payment() { | |
| 85 85 | 
             
              (0, _defineProperty2.default)(this, "getType", function () {
         | 
| 86 86 | 
             
                return _this.attributes.type;
         | 
| 87 87 | 
             
              });
         | 
| 88 | 
            -
              // date-time # Line item updated at
         | 
| 89 | 
            -
              (0, _defineProperty2.default)(this, "getUpdatedAt", function () {
         | 
| 90 | 
            -
                return _this.attributes.updated_at;
         | 
| 91 | 
            -
              });
         | 
| 92 88 | 
             
              Object.entries(attributes).forEach(function (_ref) {
         | 
| 93 89 | 
             
                var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
         | 
| 94 90 | 
             
                  key = _ref2[0],
         | 
    
        package/lib/models/Site.js
    CHANGED
    
    | @@ -577,10 +577,6 @@ var Site = /*#__PURE__*/(0, _createClass2.default)(function Site() { | |
| 577 577 | 
             
              (0, _defineProperty2.default)(this, "getTrialUntil", function () {
         | 
| 578 578 | 
             
                return _this.attributes.trial_until;
         | 
| 579 579 | 
             
              });
         | 
| 580 | 
            -
              // date-time # Last time this Site was updated
         | 
| 581 | 
            -
              (0, _defineProperty2.default)(this, "getUpdatedAt", function () {
         | 
| 582 | 
            -
                return _this.attributes.updated_at;
         | 
| 583 | 
            -
              });
         | 
| 584 580 | 
             
              // boolean # Allow uploaders to set `provided_modified_at` for uploaded files?
         | 
| 585 581 | 
             
              (0, _defineProperty2.default)(this, "getUseProvidedModifiedAt", function () {
         | 
| 586 582 | 
             
                return _this.attributes.use_provided_modified_at;
         | 
| @@ -732,6 +728,7 @@ _Site = Site; | |
| 732 728 | 
             
            //   motd_text - string - A message to show users when they connect via FTP or SFTP.
         | 
| 733 729 | 
             
            //   motd_use_for_ftp - boolean - Show message to users connecting via FTP
         | 
| 734 730 | 
             
            //   motd_use_for_sftp - boolean - Show message to users connecting via SFTP
         | 
| 731 | 
            +
            //   left_navigation_visibility - object - Visibility settings for account navigation
         | 
| 735 732 | 
             
            //   session_expiry - double - Session expiry in hours
         | 
| 736 733 | 
             
            //   ssl_required - boolean - Is SSL required?  Disabling this is insecure.
         | 
| 737 734 | 
             
            //   tls_disabled - boolean - Are Insecure TLS and SFTP Ciphers allowed?  Enabling this is insecure.
         | 
    
        package/package.json
    CHANGED
    
    
    
        package/src/Files.js
    CHANGED
    
    
| @@ -66,9 +66,6 @@ class AccountLineItem { | |
| 66 66 |  | 
| 67 67 | 
             
              // string # Type of line item, either payment or invoice
         | 
| 68 68 | 
             
              getType = () => this.attributes.type
         | 
| 69 | 
            -
             | 
| 70 | 
            -
              // date-time # Line item updated at
         | 
| 71 | 
            -
              getUpdatedAt = () => this.attributes.updated_at
         | 
| 72 69 | 
             
            }
         | 
| 73 70 |  | 
| 74 71 | 
             
            export default AccountLineItem
         | 
    
        package/src/models/Automation.js
    CHANGED
    
    | @@ -133,11 +133,25 @@ class Automation { | |
| 133 133 | 
             
                this.attributes.recurring_day = value
         | 
| 134 134 | 
             
              }
         | 
| 135 135 |  | 
| 136 | 
            -
              //  | 
| 137 | 
            -
               | 
| 136 | 
            +
              // array # If trigger is `custom_schedule`, Custom schedule description for when the automation should be run.
         | 
| 137 | 
            +
              getScheduleDaysOfWeek = () => this.attributes.schedule_days_of_week
         | 
| 138 138 |  | 
| 139 | 
            -
               | 
| 140 | 
            -
                this.attributes. | 
| 139 | 
            +
              setScheduleDaysOfWeek = value => {
         | 
| 140 | 
            +
                this.attributes.schedule_days_of_week = value
         | 
| 141 | 
            +
              }
         | 
| 142 | 
            +
             | 
| 143 | 
            +
              // array # If trigger is `custom_schedule`, Custom schedule description for when the automation should be run.
         | 
| 144 | 
            +
              getScheduleTimesOfDay = () => this.attributes.schedule_times_of_day
         | 
| 145 | 
            +
             | 
| 146 | 
            +
              setScheduleTimesOfDay = value => {
         | 
| 147 | 
            +
                this.attributes.schedule_times_of_day = value
         | 
| 148 | 
            +
              }
         | 
| 149 | 
            +
             | 
| 150 | 
            +
              // string # If trigger is `custom_schedule`, Custom schedule description for when the automation should be run.
         | 
| 151 | 
            +
              getScheduleTimeZone = () => this.attributes.schedule_time_zone
         | 
| 152 | 
            +
             | 
| 153 | 
            +
              setScheduleTimeZone = value => {
         | 
| 154 | 
            +
                this.attributes.schedule_time_zone = value
         | 
| 141 155 | 
             
              }
         | 
| 142 156 |  | 
| 143 157 | 
             
              // string # Source Path
         | 
| @@ -240,7 +254,9 @@ class Automation { | |
| 240 254 | 
             
              //   sync_ids - string - A list of sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
         | 
| 241 255 | 
             
              //   user_ids - string - A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
         | 
| 242 256 | 
             
              //   group_ids - string - A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
         | 
| 243 | 
            -
              //    | 
| 257 | 
            +
              //   schedule_days_of_week - array(int64) - If trigger is `custom_schedule`. A list of days of the week to run this automation. 0 is Sunday, 1 is Monday, etc.
         | 
| 258 | 
            +
              //   schedule_times_of_day - array(string) - If trigger is `custom_schedule`. A list of times of day to run this automation. 24-hour time format.
         | 
| 259 | 
            +
              //   schedule_time_zone - string - If trigger is `custom_schedule`. Time zone for the schedule.
         | 
| 244 260 | 
             
              //   always_overwrite_size_matching_files - boolean - Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer.  If this flag is `true` we will overwrite the destination file always.  Note that this may cause large amounts of wasted transfer usage.
         | 
| 245 261 | 
             
              //   description - string - Description for the this Automation.
         | 
| 246 262 | 
             
              //   disabled - boolean - If true, this automation will not run.
         | 
| @@ -304,6 +320,18 @@ class Automation { | |
| 304 320 | 
             
                  throw new errors.InvalidParameterError(`Bad parameter: group_ids must be of type String, received ${getType(params.group_ids)}`)
         | 
| 305 321 | 
             
                }
         | 
| 306 322 |  | 
| 323 | 
            +
                if (params.schedule_days_of_week && !isArray(params.schedule_days_of_week)) {
         | 
| 324 | 
            +
                  throw new errors.InvalidParameterError(`Bad parameter: schedule_days_of_week must be of type Array, received ${getType(params.schedule_days_of_week)}`)
         | 
| 325 | 
            +
                }
         | 
| 326 | 
            +
             | 
| 327 | 
            +
                if (params.schedule_times_of_day && !isArray(params.schedule_times_of_day)) {
         | 
| 328 | 
            +
                  throw new errors.InvalidParameterError(`Bad parameter: schedule_times_of_day must be of type Array, received ${getType(params.schedule_times_of_day)}`)
         | 
| 329 | 
            +
                }
         | 
| 330 | 
            +
             | 
| 331 | 
            +
                if (params.schedule_time_zone && !isString(params.schedule_time_zone)) {
         | 
| 332 | 
            +
                  throw new errors.InvalidParameterError(`Bad parameter: schedule_time_zone must be of type String, received ${getType(params.schedule_time_zone)}`)
         | 
| 333 | 
            +
                }
         | 
| 334 | 
            +
             | 
| 307 335 | 
             
                if (params.description && !isString(params.description)) {
         | 
| 308 336 | 
             
                  throw new errors.InvalidParameterError(`Bad parameter: description must be of type String, received ${getType(params.description)}`)
         | 
| 309 337 | 
             
                }
         | 
| @@ -444,7 +472,9 @@ class Automation { | |
| 444 472 | 
             
              //   sync_ids - string - A list of sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
         | 
| 445 473 | 
             
              //   user_ids - string - A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
         | 
| 446 474 | 
             
              //   group_ids - string - A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
         | 
| 447 | 
            -
              //    | 
| 475 | 
            +
              //   schedule_days_of_week - array(int64) - If trigger is `custom_schedule`. A list of days of the week to run this automation. 0 is Sunday, 1 is Monday, etc.
         | 
| 476 | 
            +
              //   schedule_times_of_day - array(string) - If trigger is `custom_schedule`. A list of times of day to run this automation. 24-hour time format.
         | 
| 477 | 
            +
              //   schedule_time_zone - string - If trigger is `custom_schedule`. Time zone for the schedule.
         | 
| 448 478 | 
             
              //   always_overwrite_size_matching_files - boolean - Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer.  If this flag is `true` we will overwrite the destination file always.  Note that this may cause large amounts of wasted transfer usage.
         | 
| 449 479 | 
             
              //   description - string - Description for the this Automation.
         | 
| 450 480 | 
             
              //   disabled - boolean - If true, this automation will not run.
         | 
| @@ -499,6 +529,18 @@ class Automation { | |
| 499 529 | 
             
                  throw new errors.InvalidParameterError(`Bad parameter: group_ids must be of type String, received ${getType(params.group_ids)}`)
         | 
| 500 530 | 
             
                }
         | 
| 501 531 |  | 
| 532 | 
            +
                if (params.schedule_days_of_week && !isArray(params.schedule_days_of_week)) {
         | 
| 533 | 
            +
                  throw new errors.InvalidParameterError(`Bad parameter: schedule_days_of_week must be of type Array, received ${getType(params.schedule_days_of_week)}`)
         | 
| 534 | 
            +
                }
         | 
| 535 | 
            +
             | 
| 536 | 
            +
                if (params.schedule_times_of_day && !isArray(params.schedule_times_of_day)) {
         | 
| 537 | 
            +
                  throw new errors.InvalidParameterError(`Bad parameter: schedule_times_of_day must be of type Array, received ${getType(params.schedule_times_of_day)}`)
         | 
| 538 | 
            +
                }
         | 
| 539 | 
            +
             | 
| 540 | 
            +
                if (params.schedule_time_zone && !isString(params.schedule_time_zone)) {
         | 
| 541 | 
            +
                  throw new errors.InvalidParameterError(`Bad parameter: schedule_time_zone must be of type String, received ${getType(params.schedule_time_zone)}`)
         | 
| 542 | 
            +
                }
         | 
| 543 | 
            +
             | 
| 502 544 | 
             
                if (params.description && !isString(params.description)) {
         | 
| 503 545 | 
             
                  throw new errors.InvalidParameterError(`Bad parameter: description must be of type String, received ${getType(params.description)}`)
         | 
| 504 546 | 
             
                }
         | 
    
        package/src/models/Behavior.js
    CHANGED
    
    | @@ -92,7 +92,7 @@ class Behavior { | |
| 92 92 | 
             
              }
         | 
| 93 93 |  | 
| 94 94 | 
             
              // Parameters:
         | 
| 95 | 
            -
              //   value - string - The value of the folder behavior.  Can be  | 
| 95 | 
            +
              //   value - string - The value of the folder behavior.  Can be an integer, array, or hash depending on the type of folder behavior. See The Behavior Types section for example values for each type of behavior.
         | 
| 96 96 | 
             
              //   attachment_file - file - Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
         | 
| 97 97 | 
             
              //   name - string - Name for this behavior.
         | 
| 98 98 | 
             
              //   description - string - Description for this behavior.
         | 
| @@ -280,7 +280,7 @@ class Behavior { | |
| 280 280 | 
             
              }
         | 
| 281 281 |  | 
| 282 282 | 
             
              // Parameters:
         | 
| 283 | 
            -
              //   value - string - The value of the folder behavior.  Can be  | 
| 283 | 
            +
              //   value - string - The value of the folder behavior.  Can be an integer, array, or hash depending on the type of folder behavior. See The Behavior Types section for example values for each type of behavior.
         | 
| 284 284 | 
             
              //   attachment_file - file - Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
         | 
| 285 285 | 
             
              //   name - string - Name for this behavior.
         | 
| 286 286 | 
             
              //   description - string - Description for this behavior.
         | 
    
        package/src/models/Invoice.js
    CHANGED
    
    | @@ -67,9 +67,6 @@ class Invoice { | |
| 67 67 | 
             
              // string # Type of line item, either payment or invoice
         | 
| 68 68 | 
             
              getType = () => this.attributes.type
         | 
| 69 69 |  | 
| 70 | 
            -
              // date-time # Line item updated at
         | 
| 71 | 
            -
              getUpdatedAt = () => this.attributes.updated_at
         | 
| 72 | 
            -
             | 
| 73 70 | 
             
              // Parameters:
         | 
| 74 71 | 
             
              //   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.
         | 
| 75 72 | 
             
              //   per_page - int64 - Number of records to show per page.  (Max: 10,000, 1,000 or less is recommended).
         | 
| @@ -46,9 +46,6 @@ class InvoiceLineItem { | |
| 46 46 | 
             
              // date-time # Invoice line item service start date/time
         | 
| 47 47 | 
             
              getServiceStartAt = () => this.attributes.service_start_at
         | 
| 48 48 |  | 
| 49 | 
            -
              // date-time # Invoice line item updated date/time
         | 
| 50 | 
            -
              getUpdatedAt = () => this.attributes.updated_at
         | 
| 51 | 
            -
             | 
| 52 49 | 
             
              // string # Plan name
         | 
| 53 50 | 
             
              getPlan = () => this.attributes.plan
         | 
| 54 51 |  | 
    
        package/src/models/Payment.js
    CHANGED
    
    | @@ -67,9 +67,6 @@ class Payment { | |
| 67 67 | 
             
              // string # Type of line item, either payment or invoice
         | 
| 68 68 | 
             
              getType = () => this.attributes.type
         | 
| 69 69 |  | 
| 70 | 
            -
              // date-time # Line item updated at
         | 
| 71 | 
            -
              getUpdatedAt = () => this.attributes.updated_at
         | 
| 72 | 
            -
             | 
| 73 70 | 
             
              // Parameters:
         | 
| 74 71 | 
             
              //   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.
         | 
| 75 72 | 
             
              //   per_page - int64 - Number of records to show per page.  (Max: 10,000, 1,000 or less is recommended).
         | 
    
        package/src/models/Site.js
    CHANGED
    
    | @@ -436,9 +436,6 @@ class Site { | |
| 436 436 | 
             
              // date-time # When does this Site trial expire?
         | 
| 437 437 | 
             
              getTrialUntil = () => this.attributes.trial_until
         | 
| 438 438 |  | 
| 439 | 
            -
              // date-time # Last time this Site was updated
         | 
| 440 | 
            -
              getUpdatedAt = () => this.attributes.updated_at
         | 
| 441 | 
            -
             | 
| 442 439 | 
             
              // boolean # Allow uploaders to set `provided_modified_at` for uploaded files?
         | 
| 443 440 | 
             
              getUseProvidedModifiedAt = () => this.attributes.use_provided_modified_at
         | 
| 444 441 |  | 
| @@ -533,6 +530,7 @@ class Site { | |
| 533 530 | 
             
              //   motd_text - string - A message to show users when they connect via FTP or SFTP.
         | 
| 534 531 | 
             
              //   motd_use_for_ftp - boolean - Show message to users connecting via FTP
         | 
| 535 532 | 
             
              //   motd_use_for_sftp - boolean - Show message to users connecting via SFTP
         | 
| 533 | 
            +
              //   left_navigation_visibility - object - Visibility settings for account navigation
         | 
| 536 534 | 
             
              //   session_expiry - double - Session expiry in hours
         | 
| 537 535 | 
             
              //   ssl_required - boolean - Is SSL required?  Disabling this is insecure.
         | 
| 538 536 | 
             
              //   tls_disabled - boolean - Are Insecure TLS and SFTP Ciphers allowed?  Enabling this is insecure.
         |