carbon_ruby_sdk 0.2.52 → 0.2.53

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 54518051d1fd7fb74f26cf78288de54866a637bc84c0b69fc185e614a7f37a1c
4
- data.tar.gz: 8c230adc37573d4d7edee995df6460fa34bb657252223a708982259b862596b4
3
+ metadata.gz: '0094b8ac6c8c8dc22b6ad1a96e609a167a3adfc74a4599dcc95de1401468ea64'
4
+ data.tar.gz: 3545b6cf22235bc8966a16b0499a5d38083add698c6162333e7714c230a8456f
5
5
  SHA512:
6
- metadata.gz: 52ae687b791d0313ab42c1721932e621fa63f75c533d31c7104e102ef3d77aa761ab14acb5fc6e450f3a71fedb5bc8fb7238064d364408d4e780cb3e6e0bb9cd
7
- data.tar.gz: 29db65b47781bcc0f1bd4bbe1d399d6a95ed5906d2cdda8e6168cbc5fd2e4958291b9a7dd81fe722a6919e9fca1f8f6cd1c9791ab2c69870b07af376d6af23fe
6
+ metadata.gz: f12d08cf001764f21f23ca13eb3b9b91ed56ea789e78d6e5b14b66cd51a424abe6c2314f9de00352fc9ba4b26be82d14351a571963d26b96c53df9350b2b87f8
7
+ data.tar.gz: 40f75f5df7003c20b33a196ea50f8b2204e1973d4a3b8a0962f11b9455f0541bbe888fa8ba8e56541f5d381a9c94766272d07531516eb148de56a3ba07c54a0c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- carbon_ruby_sdk (0.2.52)
4
+ carbon_ruby_sdk (0.2.53)
5
5
  faraday (>= 1.0.1, < 3.0)
6
6
  faraday-multipart (~> 1.0, >= 1.0.4)
7
7
 
@@ -41,8 +41,8 @@ GEM
41
41
  racc (1.8.1)
42
42
  rainbow (3.1.1)
43
43
  rake (13.0.6)
44
- regexp_parser (2.9.2)
45
- reline (0.5.11)
44
+ regexp_parser (2.9.3)
45
+ reline (0.5.12)
46
46
  io-console (~> 0.5)
47
47
  rexml (3.3.9)
48
48
  rspec (3.13.0)
data/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  Connect external data to LLMs, no matter the source.
8
8
 
9
- [![npm](https://img.shields.io/badge/gem-v0.2.52-blue)](https://rubygems.org/gems/carbon_ruby_sdk/versions/0.2.52)
9
+ [![npm](https://img.shields.io/badge/gem-v0.2.53-blue)](https://rubygems.org/gems/carbon_ruby_sdk/versions/0.2.53)
10
10
 
11
11
  </div>
12
12
 
@@ -38,7 +38,6 @@ Connect external data to LLMs, no matter the source.
38
38
  * [`carbon.embeddings.list`](#carbonembeddingslist)
39
39
  * [`carbon.embeddings.upload_chunks_and_embeddings`](#carbonembeddingsupload_chunks_and_embeddings)
40
40
  * [`carbon.files.create_user_file_tags`](#carbonfilescreate_user_file_tags)
41
- * [`carbon.files.delete`](#carbonfilesdelete)
42
41
  * [`carbon.files.delete_file_tags`](#carbonfilesdelete_file_tags)
43
42
  * [`carbon.files.delete_many`](#carbonfilesdelete_many)
44
43
  * [`carbon.files.delete_v2`](#carbonfilesdelete_v2)
@@ -121,7 +120,7 @@ Connect external data to LLMs, no matter the source.
121
120
  Add to Gemfile:
122
121
 
123
122
  ```ruby
124
- gem 'carbon_ruby_sdk', '~> 0.2.52'
123
+ gem 'carbon_ruby_sdk', '~> 0.2.53'
125
124
  ```
126
125
 
127
126
  ## Getting Started<a id="getting-started"></a>
@@ -1116,36 +1115,6 @@ p result
1116
1115
  ---
1117
1116
 
1118
1117
 
1119
- ### `carbon.files.delete`<a id="carbonfilesdelete"></a>
1120
- ![Deprecated](https://img.shields.io/badge/deprecated-yellow)
1121
-
1122
- Delete File Endpoint
1123
-
1124
- #### 🛠️ Usage<a id="🛠️-usage"></a>
1125
-
1126
- ```ruby
1127
- result = carbon.files.delete(
1128
- file_id: 1,
1129
- )
1130
- p result
1131
- ```
1132
-
1133
- #### ⚙️ Parameters<a id="⚙️-parameters"></a>
1134
-
1135
- ##### file_id: `Integer`<a id="file_id-integer"></a>
1136
- #### 🔄 Return<a id="🔄-return"></a>
1137
-
1138
- [GenericSuccessResponse](./lib/carbon_ruby_sdk/models/generic_success_response.rb)
1139
-
1140
- #### 🌐 Endpoint<a id="🌐-endpoint"></a>
1141
-
1142
- `/deletefile/{file_id}` `DELETE`
1143
-
1144
- [🔙 **Back to Table of Contents**](#table-of-contents)
1145
-
1146
- ---
1147
-
1148
-
1149
1118
  ### `carbon.files.delete_file_tags`<a id="carbonfilesdelete_file_tags"></a>
1150
1119
 
1151
1120
  Delete File Tags
@@ -138,85 +138,6 @@ module Carbon
138
138
  end
139
139
 
140
140
 
141
- # Delete File Endpoint
142
- #
143
- # @param file_id [Integer]
144
- # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
145
- def delete(file_id:, extra: {})
146
- api_response = delete_with_http_info_impl(file_id, extra)
147
- api_response.data
148
- end
149
-
150
- # Delete File Endpoint
151
- #
152
- # @param file_id [Integer]
153
- # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
154
- def delete_with_http_info(file_id:, extra: {})
155
- delete_with_http_info_impl(file_id, extra)
156
- end
157
-
158
- # Delete File Endpoint
159
- # @param file_id [Integer]
160
- # @param [Hash] opts the optional parameters
161
- # @return [GenericSuccessResponse]
162
- private def delete_impl(file_id, opts = {})
163
- data, _status_code, _headers = delete_with_http_info(file_id, opts)
164
- data
165
- end
166
-
167
- # Delete File Endpoint
168
- # @param file_id [Integer]
169
- # @param [Hash] opts the optional parameters
170
- # @return [APIResponse] data is GenericSuccessResponse, status code, headers and response
171
- private def delete_with_http_info_impl(file_id, opts = {})
172
- if @api_client.config.debugging
173
- @api_client.config.logger.debug 'Calling API: FilesApi.delete ...'
174
- end
175
- # verify the required parameter 'file_id' is set
176
- if @api_client.config.client_side_validation && file_id.nil?
177
- fail ArgumentError, "Missing the required parameter 'file_id' when calling FilesApi.delete"
178
- end
179
- # resource path
180
- local_var_path = '/deletefile/{file_id}'.sub('{' + 'file_id' + '}', CGI.escape(file_id.to_s))
181
-
182
- # query parameters
183
- query_params = opts[:query_params] || {}
184
-
185
- # header parameters
186
- header_params = opts[:header_params] || {}
187
- # HTTP header 'Accept' (if needed)
188
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
189
-
190
- # form parameters
191
- form_params = opts[:form_params] || {}
192
-
193
- # http body (model)
194
- post_body = opts[:debug_body]
195
-
196
- # return_type
197
- return_type = opts[:debug_return_type] || 'GenericSuccessResponse'
198
-
199
- # auth_names
200
- auth_names = opts[:debug_auth_names] || ['accessToken', 'apiKey', 'customerId']
201
-
202
- new_options = opts.merge(
203
- :operation => :"FilesApi.delete",
204
- :header_params => header_params,
205
- :query_params => query_params,
206
- :form_params => form_params,
207
- :body => post_body,
208
- :auth_names => auth_names,
209
- :return_type => return_type
210
- )
211
-
212
- data, status_code, headers, response = @api_client.call_api(:DELETE, local_var_path, new_options)
213
- if @api_client.config.debugging
214
- @api_client.config.logger.debug "API called: FilesApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
215
- end
216
- APIResponse::new(data, status_code, headers, response)
217
- end
218
-
219
-
220
141
  # Delete File Tags
221
142
  #
222
143
  # @param tags [Array<String>]
@@ -7,5 +7,5 @@ The version of the OpenAPI document: 1.0.0
7
7
  =end
8
8
 
9
9
  module Carbon
10
- VERSION = '0.2.52'
10
+ VERSION = '0.2.53'
11
11
  end
@@ -38,17 +38,6 @@ describe 'FilesApi' do
38
38
  end
39
39
  end
40
40
 
41
- # unit tests for delete
42
- # Delete File Endpoint
43
- # @param file_id
44
- # @param [Hash] opts the optional parameters
45
- # @return [GenericSuccessResponse]
46
- describe 'delete test' do
47
- it 'should work' do
48
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
49
- end
50
- end
51
-
52
41
  # unit tests for delete_file_tags
53
42
  # Delete File Tags
54
43
  # @param organization_user_file_tags_remove
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carbon_ruby_sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.52
4
+ version: 0.2.53
5
5
  platform: ruby
6
6
  authors:
7
7
  - Konfig
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-28 00:00:00.000000000 Z
11
+ date: 2024-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday