files.com 1.1.260 → 1.1.262

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: f52a52428ca9dcb49ece4dbc0c13732b63462ba327923dd62a990789b0142e7d
4
- data.tar.gz: a4940d2510179a9e67e8262d880cfc9b53467a2e29dab0a546e8e91f2ceaa8de
3
+ metadata.gz: 0575377f15d0d20eddd448f88ee14a0344c6a38531f3f96d231c20524c0c4e64
4
+ data.tar.gz: 4a32bd694f0176fb8434e87183448555672ef92cb87fd6df800885641fd45732
5
5
  SHA512:
6
- metadata.gz: 4fc00c78401695a244e919061a199e2973cc8435bf0f9f52869a88afe9c2397e1042e02079e84ffcda009067acba97d4dd4ba19554b40d681ed05744c07fdb43
7
- data.tar.gz: 8a24a098a099cc6ae1cf0e6651775ed36bfa6d90643c5c6d55028ff56e13cc435c85b3a05f3f9d1246702204d853ff82d41bf9e7b098ee43c6c6e23e2bfeec2c
6
+ metadata.gz: f22ed9db31c3c5e3fe44225e2e58059c9decdd09c0151e954a5f32b343b6e35ffaabda00388d62c884c89d58268ad43836c8c47d9a5dc5d1759f8a1226ef762f
7
+ data.tar.gz: b8a1ac6677e2d9c1570f4537070e0105bdbe5c3c93e22244423a2050d77e523c78e038cbb517415159073312b96568b9dac182fe68e1b8897605a6f13915a161
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.260
1
+ 1.1.262
@@ -22,7 +22,8 @@
22
22
  "error_message": "example",
23
23
  "response_code": 1,
24
24
  "success": true,
25
- "duration_ms": 1
25
+ "duration_ms": 1,
26
+ "impersonator_user_id": 1
26
27
  }
27
28
  ```
28
29
 
@@ -45,6 +46,7 @@
45
46
  * `response_code` (int64): HTTP Response Code
46
47
  * `success` (boolean): `false` if HTTP Response Code is 4xx or 5xx
47
48
  * `duration_ms` (int64): Duration (in milliseconds)
49
+ * `impersonator_user_id` (int64): User ID of Site Admin user impersonating this user via a Read-Only session.
48
50
 
49
51
 
50
52
  ---
data/docs/public_key.md CHANGED
@@ -39,6 +39,11 @@ Files::PublicKey.list(
39
39
  * `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
40
40
  * `cursor` (string): Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
41
41
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
42
+ * `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
43
+ * `filter_gt` (object): If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
44
+ * `filter_gteq` (object): If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
45
+ * `filter_lt` (object): If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
46
+ * `filter_lteq` (object): If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at`.
42
47
 
43
48
 
44
49
  ---
data/docs/site.md CHANGED
@@ -184,7 +184,8 @@
184
184
  "legacy_checksums_mode": true,
185
185
  "use_provided_modified_at": true,
186
186
  "windows_mode_ftp": false,
187
- "user_belongs_to_parent_site": false
187
+ "user_belongs_to_parent_site": false,
188
+ "impersonator_user_id": 1
188
189
  },
189
190
  "sftp_enabled": true,
190
191
  "sftp_host_key_type": "default",
@@ -104,6 +104,11 @@ module Files
104
104
  @attributes[:duration_ms]
105
105
  end
106
106
 
107
+ # int64 - User ID of Site Admin user impersonating this user via a Read-Only session.
108
+ def impersonator_user_id
109
+ @attributes[:impersonator_user_id]
110
+ end
111
+
107
112
  # Parameters:
108
113
  # 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.
109
114
  # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
@@ -121,10 +121,20 @@ module Files
121
121
  # user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
122
122
  # 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.
123
123
  # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
124
+ # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
125
+ # filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
126
+ # filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
127
+ # filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
128
+ # filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at`.
124
129
  def self.list(params = {}, options = {})
125
130
  raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params[:user_id] and !params[:user_id].is_a?(Integer)
126
131
  raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
127
132
  raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
133
+ raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params[:filter] and !params[:filter].is_a?(Hash)
134
+ raise InvalidParameterError.new("Bad parameter: filter_gt must be an Hash") if params[:filter_gt] and !params[:filter_gt].is_a?(Hash)
135
+ raise InvalidParameterError.new("Bad parameter: filter_gteq must be an Hash") if params[:filter_gteq] and !params[:filter_gteq].is_a?(Hash)
136
+ raise InvalidParameterError.new("Bad parameter: filter_lt must be an Hash") if params[:filter_lt] and !params[:filter_lt].is_a?(Hash)
137
+ raise InvalidParameterError.new("Bad parameter: filter_lteq must be an Hash") if params[:filter_lteq] and !params[:filter_lteq].is_a?(Hash)
128
138
 
129
139
  List.new(PublicKey, params) do
130
140
  Api.send_request("/public_keys", :get, params, options)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Files
4
- VERSION = "1.1.260"
4
+ VERSION = "1.1.262"
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.260
4
+ version: 1.1.262
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-06-03 00:00:00.000000000 Z
11
+ date: 2025-06-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable