files.com 1.1.722 → 1.1.724

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: 473149cf50fdfbf087bbaf3b9e9897fe68b36504edf1a4643ea6922346ce123e
4
- data.tar.gz: a874a0ec342cebaa92543551ff6f35c5fc9e3770ca70efc804eae8620c3c97d8
3
+ metadata.gz: e23c9113ed96b29c135b19d6386ab1db06fe9915b66bd9f7290e7557fd8d40db
4
+ data.tar.gz: 3c6a7fb5723b5a4448963b9efb02fc3ebe0e90c80ab1cfc051f11644c3114f91
5
5
  SHA512:
6
- metadata.gz: 6daaaf679e845b885e23e30486638b9f50b88beb5a6598beca6021e2a0f3af19530d34224f4ce0fbc9e91eea762ab5440131716072e3d392253dc4690c50825f
7
- data.tar.gz: b8e210c36ce33b3dde3921870986a563ed418ed5852e2652f7f3abdf4c1a06e9fc61545e3712f1a8a3ac100a1d55055c972baa3fabe7f69d5d677d47dbca2952
6
+ metadata.gz: 12dff8c75085e405bcbafe375424e60a8b7907608974579a25bad627432fe38b118bfb6bc1b0e9e6eb1a55331646be3dc5e8b0e33f652689dde96ce18eac3ae5
7
+ data.tar.gz: 69acaf3ad0fadffd419fc3ab261e819a8c0f10bfb94e71691428866436ba325be1f819aae4e92f60709db9e7c391a1a4060c28743c56ee755d0a2fdd1e60da09
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.722
1
+ 1.1.724
data/docs/file.md CHANGED
@@ -140,6 +140,7 @@ Files::File.download(path,
140
140
 
141
141
  ```
142
142
  Files::File.create(path,
143
+ custom_metadata: {"key":"value"},
143
144
  length: 1,
144
145
  mkdir_parents: false,
145
146
  part: 1,
@@ -158,6 +159,7 @@ Files::File.create(path,
158
159
 
159
160
  * `path` (string): Required - Path to operate on.
160
161
  * `action` (string): The action to perform. Can be `append`, `attachment`, `end`, `upload`, `put`, or may not exist
162
+ * `custom_metadata` (object): Custom metadata map to save when `action=end` completes the upload. Replaces existing metadata; an empty map clears it. No separate metadata-edit permission is required. Supported on native files and configured remote mounts, excluding remote server automount paths. Limited to 32 keys, 256 characters per key and 1024 characters per value.
161
163
  * `etags[etag]` (array(string)): etag identifier.
162
164
  * `etags[part]` (array(int64)): Part number.
163
165
  * `length` (int64): Length of file.
@@ -95,7 +95,11 @@ module Files
95
95
 
96
96
  def execute_request(method, path, base_url: nil, api_key: nil, session_id: nil, workspace_id: nil, headers: {}, params: {})
97
97
  base_url ||= Files.base_url
98
- session_id ||= Files.session_id
98
+ if api_key.nil?
99
+ session_id ||= Files.session_id
100
+ else
101
+ session_id = nil
102
+ end
99
103
  workspace_id = Files.workspace_id if workspace_id.nil?
100
104
 
101
105
  if session_id and session_id != ""
@@ -1312,6 +1312,7 @@ module Files
1312
1312
  # Parameters:
1313
1313
  # path (required) - string - Path to operate on.
1314
1314
  # action - string - The action to perform. Can be `append`, `attachment`, `end`, `upload`, `put`, or may not exist
1315
+ # custom_metadata - object - Custom metadata map to save when `action=end` completes the upload. Replaces existing metadata; an empty map clears it. No separate metadata-edit permission is required. Supported on native files and configured remote mounts, excluding remote server automount paths. Limited to 32 keys, 256 characters per key and 1024 characters per value.
1315
1316
  # etags[etag] (required) - array(string) - etag identifier.
1316
1317
  # etags[part] (required) - array(int64) - Part number.
1317
1318
  # length - int64 - Length of file.
@@ -1332,6 +1333,7 @@ module Files
1332
1333
  params[:path] = path
1333
1334
  raise InvalidParameterError.new("Bad parameter: path must be an String") if params[:path] and !params[:path].is_a?(String)
1334
1335
  raise InvalidParameterError.new("Bad parameter: action must be an String") if params[:action] and !params[:action].is_a?(String)
1336
+ raise InvalidParameterError.new("Bad parameter: custom_metadata must be an Hash") if params[:custom_metadata] and !params[:custom_metadata].is_a?(Hash)
1335
1337
  raise InvalidParameterError.new("Bad parameter: length must be an Integer") if params[:length] and !params[:length].is_a?(Integer)
1336
1338
  raise InvalidParameterError.new("Bad parameter: part must be an Integer") if params[:part] and !params[:part].is_a?(Integer)
1337
1339
  raise InvalidParameterError.new("Bad parameter: parts must be an Integer") if params[:parts] and !params[:parts].is_a?(Integer)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Files
4
- VERSION = "1.1.722"
4
+ VERSION = "1.1.724"
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.722
4
+ version: 1.1.724
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-09-13 00:00:00.000000000 Z
11
+ date: 2026-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable