files.com 1.0.196 → 1.0.199

Sign up to get free protection for your applications and to get access to all the features.
Files changed (106) hide show
  1. package/_VERSION +1 -1
  2. package/docs/models/AccountLineItem.md +24 -20
  3. package/docs/models/App.md +1 -1
  4. package/docs/models/Automation.md +10 -6
  5. package/docs/models/Bundle.md +39 -28
  6. package/docs/models/File.md +4 -0
  7. package/docs/models/FileComment.md +13 -9
  8. package/docs/models/Folder.md +2 -0
  9. package/docs/models/FormField.md +1 -1
  10. package/docs/models/FormFieldSet.md +36 -32
  11. package/docs/models/Group.md +13 -25
  12. package/docs/models/Invoice.md +24 -20
  13. package/docs/models/InvoiceLineItem.md +1 -1
  14. package/docs/models/Message.md +21 -13
  15. package/docs/models/MessageComment.md +13 -9
  16. package/docs/models/Notification.md +2 -2
  17. package/docs/models/Payment.md +24 -20
  18. package/docs/models/RemoteServer.md +10 -0
  19. package/docs/models/SettingsChange.md +1 -1
  20. package/docs/models/Site.md +8 -0
  21. package/docs/models/Status.md +9 -7
  22. package/docs/models/UsageDailySnapshot.md +1 -1
  23. package/lib/models/ActionNotificationExport.js +1 -1
  24. package/lib/models/ActionWebhookFailure.js +1 -1
  25. package/lib/models/ApiKey.js +3 -3
  26. package/lib/models/As2Partner.js +3 -3
  27. package/lib/models/As2Station.js +3 -3
  28. package/lib/models/Automation.js +3 -3
  29. package/lib/models/AutomationRun.js +1 -1
  30. package/lib/models/Behavior.js +4 -4
  31. package/lib/models/Bundle.js +41 -19
  32. package/lib/models/Clickwrap.js +3 -3
  33. package/lib/models/ExternalEvent.js +1 -1
  34. package/lib/models/File.js +11 -8
  35. package/lib/models/FileComment.js +3 -3
  36. package/lib/models/FileCommentReaction.js +1 -1
  37. package/lib/models/FileMigration.js +1 -1
  38. package/lib/models/Folder.js +5 -2
  39. package/lib/models/FormFieldSet.js +3 -3
  40. package/lib/models/Group.js +3 -3
  41. package/lib/models/GroupUser.js +2 -2
  42. package/lib/models/History.js +3 -3
  43. package/lib/models/HistoryExport.js +1 -1
  44. package/lib/models/Invoice.js +1 -1
  45. package/lib/models/Lock.js +3 -3
  46. package/lib/models/Message.js +3 -3
  47. package/lib/models/MessageComment.js +3 -3
  48. package/lib/models/MessageCommentReaction.js +2 -2
  49. package/lib/models/MessageReaction.js +2 -2
  50. package/lib/models/Notification.js +3 -3
  51. package/lib/models/Payment.js +1 -1
  52. package/lib/models/Permission.js +1 -1
  53. package/lib/models/Project.js +3 -3
  54. package/lib/models/PublicKey.js +3 -3
  55. package/lib/models/RemoteServer.js +15 -3
  56. package/lib/models/Request.js +2 -2
  57. package/lib/models/Site.js +6 -0
  58. package/lib/models/SsoStrategy.js +2 -2
  59. package/lib/models/Style.js +3 -3
  60. package/lib/models/User.js +6 -6
  61. package/lib/models/UserRequest.js +2 -2
  62. package/package.json +1 -1
  63. package/src/models/AccountLineItem.js +2 -2
  64. package/src/models/ActionNotificationExport.js +1 -1
  65. package/src/models/ActionWebhookFailure.js +1 -1
  66. package/src/models/ApiKey.js +3 -3
  67. package/src/models/App.js +1 -1
  68. package/src/models/As2Partner.js +3 -3
  69. package/src/models/As2Station.js +3 -3
  70. package/src/models/Automation.js +5 -5
  71. package/src/models/AutomationRun.js +1 -1
  72. package/src/models/Behavior.js +4 -4
  73. package/src/models/Bundle.js +20 -4
  74. package/src/models/Clickwrap.js +3 -3
  75. package/src/models/ExternalEvent.js +1 -1
  76. package/src/models/File.js +11 -8
  77. package/src/models/FileComment.js +4 -4
  78. package/src/models/FileCommentReaction.js +1 -1
  79. package/src/models/FileMigration.js +1 -1
  80. package/src/models/Folder.js +5 -2
  81. package/src/models/FormField.js +1 -1
  82. package/src/models/FormFieldSet.js +5 -5
  83. package/src/models/Group.js +6 -6
  84. package/src/models/GroupUser.js +2 -2
  85. package/src/models/History.js +3 -3
  86. package/src/models/HistoryExport.js +1 -1
  87. package/src/models/Invoice.js +3 -3
  88. package/src/models/Lock.js +3 -3
  89. package/src/models/Message.js +4 -4
  90. package/src/models/MessageComment.js +4 -4
  91. package/src/models/MessageCommentReaction.js +2 -2
  92. package/src/models/MessageReaction.js +2 -2
  93. package/src/models/Notification.js +5 -5
  94. package/src/models/Payment.js +3 -3
  95. package/src/models/Permission.js +1 -1
  96. package/src/models/Project.js +3 -3
  97. package/src/models/PublicKey.js +3 -3
  98. package/src/models/RemoteServer.js +19 -3
  99. package/src/models/Request.js +2 -2
  100. package/src/models/SettingsChange.js +1 -1
  101. package/src/models/Site.js +8 -0
  102. package/src/models/SsoStrategy.js +2 -2
  103. package/src/models/Status.js +1 -1
  104. package/src/models/Style.js +3 -3
  105. package/src/models/User.js +6 -6
  106. package/src/models/UserRequest.js +2 -2
@@ -79,6 +79,20 @@ class RemoteServer {
79
79
  this.attributes.max_connections = value
80
80
  }
81
81
 
82
+ // boolean # If true, we will ensure that all communications with this remote server are made through the primary region of the site. This setting can also be overridden by a sitewide setting which will force it to true.
83
+ getPinToSiteRegion = () => this.attributes.pin_to_site_region
84
+
85
+ setPinToSiteRegion = value => {
86
+ this.attributes.pin_to_site_region = value
87
+ }
88
+
89
+ // string # If set, all communciations with this remote server are made through the provided region.
90
+ getPinnedRegion = () => this.attributes.pinned_region
91
+
92
+ setPinnedRegion = value => {
93
+ this.attributes.pinned_region = value
94
+ }
95
+
82
96
  // string # S3 bucket name
83
97
  getS3Bucket = () => this.attributes.s3_bucket
84
98
 
@@ -428,6 +442,7 @@ class RemoteServer {
428
442
  // hostname - string - Hostname or IP address
429
443
  // name - string - Internal name for your reference
430
444
  // max_connections - int64 - Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
445
+ // pin_to_site_region - boolean - If true, we will ensure that all communications with this remote server are made through the primary region of the site. This setting can also be overridden by a sitewide setting which will force it to true.
431
446
  // port - int64 - Port for remote server. Not needed for S3.
432
447
  // s3_bucket - string - S3 bucket name
433
448
  // s3_region - string - S3 region
@@ -618,7 +633,7 @@ class RemoteServer {
618
633
  }
619
634
  }
620
635
 
621
- const response = await Api.sendRequest(`/remote_servers/${params['id']}`, 'PATCH', params, this.options)
636
+ const response = await Api.sendRequest(`/remote_servers/${encodeURIComponent(params['id'])}`, 'PATCH', params, this.options)
622
637
 
623
638
  return new RemoteServer(response?.data, this.options)
624
639
  }
@@ -645,7 +660,7 @@ class RemoteServer {
645
660
  }
646
661
  }
647
662
 
648
- const response = await Api.sendRequest(`/remote_servers/${params['id']}`, 'DELETE', params, this.options)
663
+ const response = await Api.sendRequest(`/remote_servers/${encodeURIComponent(params['id'])}`, 'DELETE', params, this.options)
649
664
 
650
665
  return response?.data
651
666
  }
@@ -700,7 +715,7 @@ class RemoteServer {
700
715
  throw new errors.InvalidParameterError(`Bad parameter: id must be of type Int, received ${getType(params['id'])}`)
701
716
  }
702
717
 
703
- const response = await Api.sendRequest(`/remote_servers/${params['id']}`, 'GET', params, options)
718
+ const response = await Api.sendRequest(`/remote_servers/${encodeURIComponent(params['id'])}`, 'GET', params, options)
704
719
 
705
720
  return new RemoteServer(response?.data, options)
706
721
  }
@@ -727,6 +742,7 @@ class RemoteServer {
727
742
  // hostname - string - Hostname or IP address
728
743
  // name - string - Internal name for your reference
729
744
  // max_connections - int64 - Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
745
+ // pin_to_site_region - boolean - If true, we will ensure that all communications with this remote server are made through the primary region of the site. This setting can also be overridden by a sitewide setting which will force it to true.
730
746
  // port - int64 - Port for remote server. Not needed for S3.
731
747
  // s3_bucket - string - S3 bucket name
732
748
  // s3_region - string - S3 region
@@ -102,7 +102,7 @@ class Request {
102
102
  }
103
103
  }
104
104
 
105
- const response = await Api.sendRequest(`/requests/${params['id']}`, 'DELETE', params, this.options)
105
+ const response = await Api.sendRequest(`/requests/${encodeURIComponent(params['id'])}`, 'DELETE', params, this.options)
106
106
 
107
107
  return response?.data
108
108
  }
@@ -176,7 +176,7 @@ class Request {
176
176
  throw new errors.InvalidParameterError(`Bad parameter: path must be of type String, received ${getType(params['path'])}`)
177
177
  }
178
178
 
179
- const response = await Api.sendRequest(`/requests/folders/${params['path']}`, 'GET', params, options)
179
+ const response = await Api.sendRequest(`/requests/folders/${encodeURIComponent(params['path'])}`, 'GET', params, options)
180
180
 
181
181
  return response?.data?.map(obj => new Request(obj, options)) || []
182
182
  }
@@ -23,7 +23,7 @@ class SettingsChange {
23
23
  }
24
24
 
25
25
  isLoaded = () => !!this.attributes.id
26
- // string # Markdown-formatted change messages.
26
+ // array # Markdown-formatted change messages.
27
27
  getChanges = () => this.attributes.changes
28
28
 
29
29
  // date-time # The time this change was made
@@ -293,6 +293,9 @@ class Site {
293
293
  // string # Site phone number
294
294
  getPhone = () => this.attributes.phone
295
295
 
296
+ // boolean # If true, we will ensure that all internal communications with any remote server are made through the primary region of the site. This setting overrides individual remote server settings.
297
+ getPinAllRemoteServersToSiteRegion = () => this.attributes.pin_all_remote_servers_to_site_region
298
+
296
299
  // boolean # Require two-factor authentication for all users?
297
300
  getRequire2fa = () => this.attributes.require_2fa
298
301
 
@@ -389,6 +392,9 @@ class Site {
389
392
  // boolean # Enable User Requests feature
390
393
  getUserRequestsEnabled = () => this.attributes.user_requests_enabled
391
394
 
395
+ // boolean # Send email to site admins when a user request is received?
396
+ getUserRequestsNotifyAdmins = () => this.attributes.user_requests_notify_admins
397
+
392
398
  // string # Custom text send in user welcome email
393
399
  getWelcomeCustomText = () => this.attributes.welcome_custom_text
394
400
 
@@ -452,6 +458,7 @@ class Site {
452
458
  // folder_permissions_groups_only - boolean - If true, permissions for this site must be bound to a group (not a user). Otherwise, permissions must be bound to a user.
453
459
  // welcome_screen - string - Does the welcome screen appear?
454
460
  // office_integration_available - boolean - Allow users to use Office for the web?
461
+ // pin_all_remote_servers_to_site_region - boolean - If true, we will ensure that all internal communications with any remote server are made through the primary region of the site. This setting overrides individual remote server settings.
455
462
  // session_expiry - double - Session expiry in hours
456
463
  // ssl_required - boolean - Is SSL required? Disabling this is insecure.
457
464
  // tls_disabled - boolean - Are Insecure TLS and SFTP Ciphers allowed? Enabling this is insecure.
@@ -488,6 +495,7 @@ class Site {
488
495
  // non_sso_users_allowed - boolean - If true, users can be manually created / modified / deleted by Site Admins. Otherwise, users can only be managed via your SSO provider.
489
496
  // sharing_enabled - boolean - Allow bundle creation
490
497
  // user_requests_enabled - boolean - Enable User Requests feature
498
+ // user_requests_notify_admins - boolean - Send email to site admins when a user request is received?
491
499
  // ftp_enabled - boolean - Is FTP enabled?
492
500
  // sftp_enabled - boolean - Is SFTP enabled?
493
501
  // allowed_2fa_method_sms - boolean - Is SMS two factor authentication allowed?
@@ -176,7 +176,7 @@ class SsoStrategy {
176
176
  }
177
177
  }
178
178
 
179
- const response = await Api.sendRequest(`/sso_strategies/${params['id']}/sync`, 'POST', params, this.options)
179
+ const response = await Api.sendRequest(`/sso_strategies/${encodeURIComponent(params['id'])}/sync`, 'POST', params, this.options)
180
180
 
181
181
  return response?.data
182
182
  }
@@ -218,7 +218,7 @@ class SsoStrategy {
218
218
  throw new errors.InvalidParameterError(`Bad parameter: id must be of type Int, received ${getType(params['id'])}`)
219
219
  }
220
220
 
221
- const response = await Api.sendRequest(`/sso_strategies/${params['id']}`, 'GET', params, options)
221
+ const response = await Api.sendRequest(`/sso_strategies/${encodeURIComponent(params['id'])}`, 'GET', params, options)
222
222
 
223
223
  return new SsoStrategy(response?.data, options)
224
224
  }
@@ -35,7 +35,7 @@ class Status {
35
35
  // Auto # Additional data
36
36
  getData = () => this.attributes.data
37
37
 
38
- // Errors # A list of api errors
38
+ // array # A list of api errors
39
39
  getErrors = () => this.attributes.errors
40
40
 
41
41
  // int64 # Required Clickwrap id
@@ -91,7 +91,7 @@ class Style {
91
91
  }
92
92
  }
93
93
 
94
- const response = await Api.sendRequest(`/styles/${params['path']}`, 'PATCH', params, this.options)
94
+ const response = await Api.sendRequest(`/styles/${encodeURIComponent(params['path'])}`, 'PATCH', params, this.options)
95
95
 
96
96
  return new Style(response?.data, this.options)
97
97
  }
@@ -118,7 +118,7 @@ class Style {
118
118
  }
119
119
  }
120
120
 
121
- const response = await Api.sendRequest(`/styles/${params['path']}`, 'DELETE', params, this.options)
121
+ const response = await Api.sendRequest(`/styles/${encodeURIComponent(params['path'])}`, 'DELETE', params, this.options)
122
122
 
123
123
  return response?.data
124
124
  }
@@ -146,7 +146,7 @@ class Style {
146
146
  throw new errors.InvalidParameterError(`Bad parameter: path must be of type String, received ${getType(params['path'])}`)
147
147
  }
148
148
 
149
- const response = await Api.sendRequest(`/styles/${params['path']}`, 'GET', params, options)
149
+ const response = await Api.sendRequest(`/styles/${encodeURIComponent(params['path'])}`, 'GET', params, options)
150
150
 
151
151
  return new Style(response?.data, options)
152
152
  }
@@ -459,7 +459,7 @@ class User {
459
459
  }
460
460
  }
461
461
 
462
- const response = await Api.sendRequest(`/users/${params['id']}/unlock`, 'POST', params, this.options)
462
+ const response = await Api.sendRequest(`/users/${encodeURIComponent(params['id'])}/unlock`, 'POST', params, this.options)
463
463
 
464
464
  return response?.data
465
465
  }
@@ -487,7 +487,7 @@ class User {
487
487
  }
488
488
  }
489
489
 
490
- const response = await Api.sendRequest(`/users/${params['id']}/resend_welcome_email`, 'POST', params, this.options)
490
+ const response = await Api.sendRequest(`/users/${encodeURIComponent(params['id'])}/resend_welcome_email`, 'POST', params, this.options)
491
491
 
492
492
  return response?.data
493
493
  }
@@ -515,7 +515,7 @@ class User {
515
515
  }
516
516
  }
517
517
 
518
- const response = await Api.sendRequest(`/users/${params['id']}/2fa/reset`, 'POST', params, this.options)
518
+ const response = await Api.sendRequest(`/users/${encodeURIComponent(params['id'])}/2fa/reset`, 'POST', params, this.options)
519
519
 
520
520
  return response?.data
521
521
  }
@@ -662,7 +662,7 @@ class User {
662
662
  }
663
663
  }
664
664
 
665
- const response = await Api.sendRequest(`/users/${params['id']}`, 'PATCH', params, this.options)
665
+ const response = await Api.sendRequest(`/users/${encodeURIComponent(params['id'])}`, 'PATCH', params, this.options)
666
666
 
667
667
  return new User(response?.data, this.options)
668
668
  }
@@ -689,7 +689,7 @@ class User {
689
689
  }
690
690
  }
691
691
 
692
- const response = await Api.sendRequest(`/users/${params['id']}`, 'DELETE', params, this.options)
692
+ const response = await Api.sendRequest(`/users/${encodeURIComponent(params['id'])}`, 'DELETE', params, this.options)
693
693
 
694
694
  return response?.data
695
695
  }
@@ -768,7 +768,7 @@ class User {
768
768
  throw new errors.InvalidParameterError(`Bad parameter: id must be of type Int, received ${getType(params['id'])}`)
769
769
  }
770
770
 
771
- const response = await Api.sendRequest(`/users/${params['id']}`, 'GET', params, options)
771
+ const response = await Api.sendRequest(`/users/${encodeURIComponent(params['id'])}`, 'GET', params, options)
772
772
 
773
773
  return new User(response?.data, options)
774
774
  }
@@ -74,7 +74,7 @@ class UserRequest {
74
74
  }
75
75
  }
76
76
 
77
- const response = await Api.sendRequest(`/user_requests/${params['id']}`, 'DELETE', params, this.options)
77
+ const response = await Api.sendRequest(`/user_requests/${encodeURIComponent(params['id'])}`, 'DELETE', params, this.options)
78
78
 
79
79
  return response?.data
80
80
  }
@@ -129,7 +129,7 @@ class UserRequest {
129
129
  throw new errors.InvalidParameterError(`Bad parameter: id must be of type Int, received ${getType(params['id'])}`)
130
130
  }
131
131
 
132
- const response = await Api.sendRequest(`/user_requests/${params['id']}`, 'GET', params, options)
132
+ const response = await Api.sendRequest(`/user_requests/${encodeURIComponent(params['id'])}`, 'GET', params, options)
133
133
 
134
134
  return new UserRequest(response?.data, options)
135
135
  }