files.com 1.1.626 → 1.1.628

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9ef502b40a15f8760a8bad93a0776b001c793d231256b316948add84fe4ccf07
4
- data.tar.gz: 7ee13de24009af915993b25da38f5258b54060e7a63a6afe268fb2921ddf2013
3
+ metadata.gz: 1d492bd253920c46a078cbe2a6d105e59a01bd4fb407dbad0f79644f4281c70a
4
+ data.tar.gz: d0ada6b4f1f2f6e1a579d974856f2a5c7a4b593ed50a703a540121b4fce5d747
5
5
  SHA512:
6
- metadata.gz: 01dc8aab7e8b7d6a74c541b1f27873a298d66c7b6012acd5d6e3219578f657642e8ea212fcfd3ddfdbe9b6794e9a704fccdd71a76be34a06721c471ef1b2c5f2
7
- data.tar.gz: 8841dc8e9b63583fa0affa91751dbd6f762b7e6cd1a6ecd94f0ff94732c2b38b6c34589be611c2b9612840a6ca435cc4debc52f294680cfc5993c1f47a752e31
6
+ metadata.gz: 40938227eb0f1ebe31d4a7c6664477e4b228164acda255d801228505b61808b23c9f5c3cfd487cb2f3e782c213838c7e1963d5bf13a19c20de7431fe5d3c7d2a
7
+ data.tar.gz: 30c0ad8c052c8f228e5830596f6a5f05596c9e51351685dcd6b350318467bb2963a761454b3a92bcd83399a92079f06901a302384df31b3134322eb7099e6747
data/README.md CHANGED
@@ -398,6 +398,39 @@ For example, the following two paths are treated as equivalent after NFC normali
398
398
 
399
399
  <div></div>
400
400
 
401
+ ## Workspaces
402
+
403
+ A Workspace is a lightweight way to organize related resources inside a single Files.com Site.
404
+
405
+ Customers commonly group resources by project, department, client, or region. Workspaces provide a built-in structure for that grouping, so the UI can operate within a clear "workspace context" and admins can delegate management for a subset of resources without requiring full site-level isolation.
406
+
407
+ Every Site has an implicit Default workspace (ID `0`). Resources that are not explicitly assigned to a named workspace are considered part of the Default workspace.
408
+ <div></div>
409
+
410
+ ### SDK Support
411
+
412
+ We are still in the process of adding Workspaces support to each SDK. If you require Workspaces support right now, you need to use the REST API.
413
+ <div></div>
414
+
415
+ ### Using Workspaces with the REST API
416
+
417
+ To use Workspaces with the REST API, send the following request header:
418
+
419
+ ```http
420
+ X-Files-Workspace-Id: <workspace_id>
421
+ ```
422
+
423
+ This changes path mapping and "what you're looking at."
424
+
425
+ When the `X-Files-Workspace-Id` header is provided:
426
+
427
+ - List, show, update, and delete operations are constrained to that workspace for workspace-scoped models.
428
+ - Create operations default `workspace_id` to the scoped workspace when not explicitly provided.
429
+ - Attempts to provide a mismatching `workspace_id` are rejected with `not-authorized/insufficient-permission-for-params`.
430
+
431
+ This header only works for sitewide keys, or keys related to users with permissions to more than one workspace.
432
+ <div></div>
433
+
401
434
  ## Foreign Language Support
402
435
 
403
436
  The Files.com Ruby SDK supports localized responses by using the `Files.language` configuration attribute.
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.626
1
+ 1.1.628
data/docs/site.md CHANGED
@@ -184,6 +184,7 @@
184
184
  "aws_secret_key": "example",
185
185
  "login_token": "@tok-randomcode",
186
186
  "login_token_domain": "https://mysite.files.com",
187
+ "default_workspace_id": 1,
187
188
  "max_dir_listing_size": 1,
188
189
  "multiple_regions": true,
189
190
  "read_only": true,
@@ -311,6 +312,7 @@
311
312
  "workspace_admin": true,
312
313
  "site_id": 1,
313
314
  "workspace_id": 1,
315
+ "default_workspace_id": 1,
314
316
  "skip_welcome_screen": true,
315
317
  "ssl_required": "always_require",
316
318
  "sso_strategy_id": 1,
data/docs/user.md CHANGED
@@ -76,6 +76,7 @@
76
76
  "workspace_admin": true,
77
77
  "site_id": 1,
78
78
  "workspace_id": 1,
79
+ "default_workspace_id": 1,
79
80
  "skip_welcome_screen": true,
80
81
  "ssl_required": "always_require",
81
82
  "sso_strategy_id": 1,
@@ -162,6 +163,7 @@
162
163
  * `workspace_admin` (boolean): Is the user a Workspace administrator? Applicable only to the workspace ID related to this user, if one is set.
163
164
  * `site_id` (int64): Site ID
164
165
  * `workspace_id` (int64): Workspace ID
166
+ * `default_workspace_id` (int64): Workspace ID the user should land in by default when more than one Workspace is available.
165
167
  * `skip_welcome_screen` (boolean): Skip Welcome page in the UI?
166
168
  * `ssl_required` (string): SSL required setting
167
169
  * `sso_strategy_id` (int64): SSO (Single Sign On) strategy ID for the user, if applicable.
@@ -248,6 +250,7 @@ Files::User.create(
248
250
  bypass_site_allowed_ips: false,
249
251
  dav_permission: true,
250
252
  desktop_configuration_profile_id: 1,
253
+ default_workspace_id: 1,
251
254
  disabled: true,
252
255
  filesystem_layout: "site_root",
253
256
  ftp_permission: true,
@@ -316,6 +319,7 @@ Files::User.create(
316
319
  * `bypass_site_allowed_ips` (boolean): Allow this user to skip site-wide IP blacklists?
317
320
  * `dav_permission` (boolean): Can the user connect with WebDAV?
318
321
  * `desktop_configuration_profile_id` (int64): Desktop Configuration Profile ID assigned directly to this user, if any.
322
+ * `default_workspace_id` (int64): Workspace ID the user should land in by default when more than one Workspace is available.
319
323
  * `disabled` (boolean): Is user disabled? Disabled users cannot log in, and do not count for billing purposes. Users can be automatically disabled after an inactivity period via a Site setting or schedule to be deactivated after specific date.
320
324
  * `filesystem_layout` (string): File system layout
321
325
  * `ftp_permission` (boolean): Can the user access with FTP/FTPS?
@@ -419,6 +423,7 @@ Files::User.update(id,
419
423
  bypass_site_allowed_ips: false,
420
424
  dav_permission: true,
421
425
  desktop_configuration_profile_id: 1,
426
+ default_workspace_id: 1,
422
427
  disabled: true,
423
428
  filesystem_layout: "site_root",
424
429
  ftp_permission: true,
@@ -489,6 +494,7 @@ Files::User.update(id,
489
494
  * `bypass_site_allowed_ips` (boolean): Allow this user to skip site-wide IP blacklists?
490
495
  * `dav_permission` (boolean): Can the user connect with WebDAV?
491
496
  * `desktop_configuration_profile_id` (int64): Desktop Configuration Profile ID assigned directly to this user, if any.
497
+ * `default_workspace_id` (int64): Workspace ID the user should land in by default when more than one Workspace is available.
492
498
  * `disabled` (boolean): Is user disabled? Disabled users cannot log in, and do not count for billing purposes. Users can be automatically disabled after an inactivity period via a Site setting or schedule to be deactivated after specific date.
493
499
  * `filesystem_layout` (string): File system layout
494
500
  * `ftp_permission` (boolean): Can the user access with FTP/FTPS?
@@ -617,6 +623,7 @@ user.update(
617
623
  bypass_site_allowed_ips: false,
618
624
  dav_permission: true,
619
625
  desktop_configuration_profile_id: 1,
626
+ default_workspace_id: 1,
620
627
  disabled: true,
621
628
  filesystem_layout: "site_root",
622
629
  ftp_permission: true,
@@ -687,6 +694,7 @@ user.update(
687
694
  * `bypass_site_allowed_ips` (boolean): Allow this user to skip site-wide IP blacklists?
688
695
  * `dav_permission` (boolean): Can the user connect with WebDAV?
689
696
  * `desktop_configuration_profile_id` (int64): Desktop Configuration Profile ID assigned directly to this user, if any.
697
+ * `default_workspace_id` (int64): Workspace ID the user should land in by default when more than one Workspace is available.
690
698
  * `disabled` (boolean): Is user disabled? Disabled users cannot log in, and do not count for billing purposes. Users can be automatically disabled after an inactivity period via a Site setting or schedule to be deactivated after specific date.
691
699
  * `filesystem_layout` (string): File system layout
692
700
  * `ftp_permission` (boolean): Can the user access with FTP/FTPS?
@@ -635,6 +635,15 @@ module Files
635
635
  @attributes[:workspace_id] = value
636
636
  end
637
637
 
638
+ # int64 - Workspace ID the user should land in by default when more than one Workspace is available.
639
+ def default_workspace_id
640
+ @attributes[:default_workspace_id]
641
+ end
642
+
643
+ def default_workspace_id=(value)
644
+ @attributes[:default_workspace_id] = value
645
+ end
646
+
638
647
  # boolean - Skip Welcome page in the UI?
639
648
  def skip_welcome_screen
640
649
  @attributes[:skip_welcome_screen]
@@ -915,6 +924,7 @@ module Files
915
924
  # bypass_site_allowed_ips - boolean - Allow this user to skip site-wide IP blacklists?
916
925
  # dav_permission - boolean - Can the user connect with WebDAV?
917
926
  # desktop_configuration_profile_id - int64 - Desktop Configuration Profile ID assigned directly to this user, if any.
927
+ # default_workspace_id - int64 - Workspace ID the user should land in by default when more than one Workspace is available.
918
928
  # disabled - boolean - Is user disabled? Disabled users cannot log in, and do not count for billing purposes. Users can be automatically disabled after an inactivity period via a Site setting or schedule to be deactivated after specific date.
919
929
  # filesystem_layout - string - File system layout
920
930
  # ftp_permission - boolean - Can the user access with FTP/FTPS?
@@ -976,6 +986,7 @@ module Files
976
986
  raise InvalidParameterError.new("Bad parameter: authenticate_until must be an String") if params[:authenticate_until] and !params[:authenticate_until].is_a?(String)
977
987
  raise InvalidParameterError.new("Bad parameter: authentication_method must be an String") if params[:authentication_method] and !params[:authentication_method].is_a?(String)
978
988
  raise InvalidParameterError.new("Bad parameter: desktop_configuration_profile_id must be an Integer") if params[:desktop_configuration_profile_id] and !params[:desktop_configuration_profile_id].is_a?(Integer)
989
+ raise InvalidParameterError.new("Bad parameter: default_workspace_id must be an Integer") if params[:default_workspace_id] and !params[:default_workspace_id].is_a?(Integer)
979
990
  raise InvalidParameterError.new("Bad parameter: filesystem_layout must be an String") if params[:filesystem_layout] and !params[:filesystem_layout].is_a?(String)
980
991
  raise InvalidParameterError.new("Bad parameter: header_text must be an String") if params[:header_text] and !params[:header_text].is_a?(String)
981
992
  raise InvalidParameterError.new("Bad parameter: language must be an String") if params[:language] and !params[:language].is_a?(String)
@@ -1102,6 +1113,7 @@ module Files
1102
1113
  # bypass_site_allowed_ips - boolean - Allow this user to skip site-wide IP blacklists?
1103
1114
  # dav_permission - boolean - Can the user connect with WebDAV?
1104
1115
  # desktop_configuration_profile_id - int64 - Desktop Configuration Profile ID assigned directly to this user, if any.
1116
+ # default_workspace_id - int64 - Workspace ID the user should land in by default when more than one Workspace is available.
1105
1117
  # disabled - boolean - Is user disabled? Disabled users cannot log in, and do not count for billing purposes. Users can be automatically disabled after an inactivity period via a Site setting or schedule to be deactivated after specific date.
1106
1118
  # filesystem_layout - string - File system layout
1107
1119
  # ftp_permission - boolean - Can the user access with FTP/FTPS?
@@ -1158,6 +1170,7 @@ module Files
1158
1170
  raise InvalidParameterError.new("Bad parameter: authenticate_until must be an String") if params[:authenticate_until] and !params[:authenticate_until].is_a?(String)
1159
1171
  raise InvalidParameterError.new("Bad parameter: authentication_method must be an String") if params[:authentication_method] and !params[:authentication_method].is_a?(String)
1160
1172
  raise InvalidParameterError.new("Bad parameter: desktop_configuration_profile_id must be an Integer") if params[:desktop_configuration_profile_id] and !params[:desktop_configuration_profile_id].is_a?(Integer)
1173
+ raise InvalidParameterError.new("Bad parameter: default_workspace_id must be an Integer") if params[:default_workspace_id] and !params[:default_workspace_id].is_a?(Integer)
1161
1174
  raise InvalidParameterError.new("Bad parameter: filesystem_layout must be an String") if params[:filesystem_layout] and !params[:filesystem_layout].is_a?(String)
1162
1175
  raise InvalidParameterError.new("Bad parameter: header_text must be an String") if params[:header_text] and !params[:header_text].is_a?(String)
1163
1176
  raise InvalidParameterError.new("Bad parameter: language must be an String") if params[:language] and !params[:language].is_a?(String)
@@ -1239,6 +1252,7 @@ module Files
1239
1252
  # bypass_site_allowed_ips - boolean - Allow this user to skip site-wide IP blacklists?
1240
1253
  # dav_permission - boolean - Can the user connect with WebDAV?
1241
1254
  # desktop_configuration_profile_id - int64 - Desktop Configuration Profile ID assigned directly to this user, if any.
1255
+ # default_workspace_id - int64 - Workspace ID the user should land in by default when more than one Workspace is available.
1242
1256
  # disabled - boolean - Is user disabled? Disabled users cannot log in, and do not count for billing purposes. Users can be automatically disabled after an inactivity period via a Site setting or schedule to be deactivated after specific date.
1243
1257
  # filesystem_layout - string - File system layout
1244
1258
  # ftp_permission - boolean - Can the user access with FTP/FTPS?
@@ -1299,6 +1313,7 @@ module Files
1299
1313
  raise InvalidParameterError.new("Bad parameter: authenticate_until must be an String") if params[:authenticate_until] and !params[:authenticate_until].is_a?(String)
1300
1314
  raise InvalidParameterError.new("Bad parameter: authentication_method must be an String") if params[:authentication_method] and !params[:authentication_method].is_a?(String)
1301
1315
  raise InvalidParameterError.new("Bad parameter: desktop_configuration_profile_id must be an Integer") if params[:desktop_configuration_profile_id] and !params[:desktop_configuration_profile_id].is_a?(Integer)
1316
+ raise InvalidParameterError.new("Bad parameter: default_workspace_id must be an Integer") if params[:default_workspace_id] and !params[:default_workspace_id].is_a?(Integer)
1302
1317
  raise InvalidParameterError.new("Bad parameter: filesystem_layout must be an String") if params[:filesystem_layout] and !params[:filesystem_layout].is_a?(String)
1303
1318
  raise InvalidParameterError.new("Bad parameter: header_text must be an String") if params[:header_text] and !params[:header_text].is_a?(String)
1304
1319
  raise InvalidParameterError.new("Bad parameter: language must be an String") if params[:language] and !params[:language].is_a?(String)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Files
4
- VERSION = "1.1.626"
4
+ VERSION = "1.1.628"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: files.com
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.626
4
+ version: 1.1.628
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-05-30 00:00:00.000000000 Z
11
+ date: 2026-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable