files.com 1.1.581 → 1.1.583

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: c48201f3193bbdcf48190fededfeb7f24a33c88721998f538e96eeeace9c8aa1
4
- data.tar.gz: 5270b772c58f7f9593427e9989044831c27cf79b5d8766ea8cf6c151c7efdcb4
3
+ metadata.gz: 315f62b11f8a9240a25e1c9fd14edab02f41af734f0218abbeb6853550768a15
4
+ data.tar.gz: 9d9e3d5020c9043c5c346a98bce3b306a23f6445160d1ffccb72a05514b3a727
5
5
  SHA512:
6
- metadata.gz: 5a5dc7f29e68c49c19df6efe9d77df85e7dd89f32bca2925602df776f1a80a7dd3daa7ac27ccfa95c1cd67a37d5e96bb8e055d0a8d409b3e91e5ad5f02dda668
7
- data.tar.gz: 43b5843c26e5bfa76da66b54af1d20aaaa199d37dd247acb19a101b92eceaddf34b30a684dcfb3fe966e0064ad01125ae060232fcde47e76d6d37c60dbda4f48
6
+ metadata.gz: b2cf49865ebdd57be968a2279b473789ede631e3bb68a13fd31f51153ba39e4b2036a94a92cd37f7eb37f5b54b244bba0cab14a03894a98725bd3db6f06ff6c8
7
+ data.tar.gz: 57cc111c49b1cac777631bbc9c455f8f3dbc1a0c4438511b41ce0269461524d7e682729749bd1cdc8d78e6850d4ce832bb174c57ea4462009edd6dd7c2a17577
data/README.md CHANGED
@@ -563,6 +563,7 @@ Files::FolderAdminPermissionRequiredError -> Files::NotAuthorizedError -> Files:
563
563
  |`PasswordChangeNotRequiredError`| `NotAuthorizedError` |
564
564
  |`PasswordChangeRequiredError`| `NotAuthorizedError` |
565
565
  |`PaymentMethodErrorError`| `NotAuthorizedError` |
566
+ |`PreviewOnlyPermissionCannotDownloadError`| `NotAuthorizedError` |
566
567
  |`ReadOnlySessionError`| `NotAuthorizedError` |
567
568
  |`ReadPermissionRequiredError`| `NotAuthorizedError` |
568
569
  |`ReauthenticationFailedError`| `NotAuthorizedError` |
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.581
1
+ 1.1.583
data/docs/permission.md CHANGED
@@ -10,6 +10,12 @@
10
10
  "username": "user",
11
11
  "group_id": 1,
12
12
  "group_name": "example",
13
+ "group_ids": [
14
+ 1
15
+ ],
16
+ "group_names": [
17
+ "example"
18
+ ],
13
19
  "partner_id": 1,
14
20
  "partner_name": "Acme Corp.",
15
21
  "permission": "full",
@@ -24,6 +30,8 @@
24
30
  * `username` (string): Username (if applicable)
25
31
  * `group_id` (int64): Group ID
26
32
  * `group_name` (string): Group name (if applicable)
33
+ * `group_ids` (array(int64)): Group IDs when this permission requires multiple groups
34
+ * `group_names` (array(string)): Group names when this permission requires multiple groups
27
35
  * `partner_id` (int64): Partner ID (if applicable)
28
36
  * `partner_name` (string): Partner name (if applicable)
29
37
  * `permission` (string): Permission type. See the table referenced in the documentation for an explanation of each permission.
@@ -67,6 +75,7 @@ Files::Permission.list(
67
75
  Files::Permission.create(
68
76
  path: "path",
69
77
  group_id: 1,
78
+ group_ids: [1],
70
79
  permission: "full",
71
80
  recursive: false,
72
81
  partner_id: 1,
@@ -81,6 +90,7 @@ Files::Permission.create(
81
90
 
82
91
  * `path` (string): Required - Folder path
83
92
  * `group_id` (int64): Group ID. Provide `group_name` or `group_id`
93
+ * `group_ids` (string): Group IDs when the permission requires multiple groups. If sent as a string, it should be comma-delimited.
84
94
  * `permission` (string): Permission type. Can be `admin`, `full`, `readonly`, `writeonly`, `list`, or `history`
85
95
  * `recursive` (boolean): Apply to subfolders recursively?
86
96
  * `partner_id` (int64): Partner ID if this Permission belongs to a partner.
@@ -143,6 +143,7 @@ module Files
143
143
  class PasswordChangeNotRequiredError < NotAuthorizedError; end
144
144
  class PasswordChangeRequiredError < NotAuthorizedError; end
145
145
  class PaymentMethodErrorError < NotAuthorizedError; end
146
+ class PreviewOnlyPermissionCannotDownloadError < NotAuthorizedError; end
146
147
  class ReadOnlySessionError < NotAuthorizedError; end
147
148
  class ReadPermissionRequiredError < NotAuthorizedError; end
148
149
  class ReauthenticationFailedError < NotAuthorizedError; end
@@ -63,6 +63,24 @@ module Files
63
63
  @attributes[:group_name] = value
64
64
  end
65
65
 
66
+ # array(int64) - Group IDs when this permission requires multiple groups
67
+ def group_ids
68
+ @attributes[:group_ids]
69
+ end
70
+
71
+ def group_ids=(value)
72
+ @attributes[:group_ids] = value
73
+ end
74
+
75
+ # array(string) - Group names when this permission requires multiple groups
76
+ def group_names
77
+ @attributes[:group_names]
78
+ end
79
+
80
+ def group_names=(value)
81
+ @attributes[:group_names] = value
82
+ end
83
+
66
84
  # int64 - Partner ID (if applicable)
67
85
  def partner_id
68
86
  @attributes[:partner_id]
@@ -168,6 +186,7 @@ module Files
168
186
  # Parameters:
169
187
  # path (required) - string - Folder path
170
188
  # group_id - int64 - Group ID. Provide `group_name` or `group_id`
189
+ # group_ids - string - Group IDs when the permission requires multiple groups. If sent as a string, it should be comma-delimited.
171
190
  # permission - string - Permission type. Can be `admin`, `full`, `readonly`, `writeonly`, `list`, or `history`
172
191
  # recursive - boolean - Apply to subfolders recursively?
173
192
  # partner_id - int64 - Partner ID if this Permission belongs to a partner.
@@ -178,6 +197,7 @@ module Files
178
197
  def self.create(params = {}, options = {})
179
198
  raise InvalidParameterError.new("Bad parameter: path must be an String") if params[:path] and !params[:path].is_a?(String)
180
199
  raise InvalidParameterError.new("Bad parameter: group_id must be an Integer") if params[:group_id] and !params[:group_id].is_a?(Integer)
200
+ raise InvalidParameterError.new("Bad parameter: group_ids must be an String") if params[:group_ids] and !params[:group_ids].is_a?(String)
181
201
  raise InvalidParameterError.new("Bad parameter: permission must be an String") if params[:permission] and !params[:permission].is_a?(String)
182
202
  raise InvalidParameterError.new("Bad parameter: partner_id must be an Integer") if params[:partner_id] and !params[:partner_id].is_a?(Integer)
183
203
  raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params[:user_id] and !params[:user_id].is_a?(Integer)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Files
4
- VERSION = "1.1.581"
4
+ VERSION = "1.1.583"
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.581
4
+ version: 1.1.583
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-03-22 00:00:00.000000000 Z
11
+ date: 2026-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable