carbon_ruby_sdk 0.2.47 → 0.2.48
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 +4 -4
- data/Gemfile.lock +3 -3
- data/README.md +2 -2
- data/lib/carbon_ruby_sdk/models/user_file.rb +11 -1
- data/lib/carbon_ruby_sdk/version.rb +1 -1
- data/spec/models/user_file_spec.rb +6 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 434a81260acd52ada45db2d39bde06663b6556f2826ab8473dbc5d29162f3fb1
|
|
4
|
+
data.tar.gz: 9cf8bc8c009c7aa763a48e429976edf21a00cb701ff6823fa739c413722287cd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bff608f5ce01bbc6cfbb4e239b176546efc364a287d879229fe31f4574af0e62087499df756512f1b3c3f1d54a56bed7baeca533cc52f5729142dac34837b306
|
|
7
|
+
data.tar.gz: b4a211248215ff857b1e19440ee552c63f76753aeec7048084fc0f9acb144e65287127fb571b0c73727c36c09b5cdc85854d484759d89dfe5a0ba223a715e6ca
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
carbon_ruby_sdk (0.2.
|
|
4
|
+
carbon_ruby_sdk (0.2.48)
|
|
5
5
|
faraday (>= 1.0.1, < 3.0)
|
|
6
6
|
faraday-multipart (~> 1.0, >= 1.0.4)
|
|
7
7
|
|
|
@@ -29,7 +29,7 @@ GEM
|
|
|
29
29
|
method_source (1.1.0)
|
|
30
30
|
multipart-post (2.4.1)
|
|
31
31
|
parallel (1.26.3)
|
|
32
|
-
parser (3.3.
|
|
32
|
+
parser (3.3.6.0)
|
|
33
33
|
ast (~> 2.4.1)
|
|
34
34
|
racc
|
|
35
35
|
pry (0.14.2)
|
|
@@ -67,7 +67,7 @@ GEM
|
|
|
67
67
|
rubocop-ast (>= 1.2.0, < 2.0)
|
|
68
68
|
ruby-progressbar (~> 1.7)
|
|
69
69
|
unicode-display_width (>= 1.4.0, < 3.0)
|
|
70
|
-
rubocop-ast (1.
|
|
70
|
+
rubocop-ast (1.34.0)
|
|
71
71
|
parser (>= 3.3.1.0)
|
|
72
72
|
ruby-progressbar (1.13.0)
|
|
73
73
|
ruby2_keywords (0.0.5)
|
data/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
Connect external data to LLMs, no matter the source.
|
|
8
8
|
|
|
9
|
-
[](https://rubygems.org/gems/carbon_ruby_sdk/versions/0.2.48)
|
|
10
10
|
|
|
11
11
|
</div>
|
|
12
12
|
|
|
@@ -119,7 +119,7 @@ Connect external data to LLMs, no matter the source.
|
|
|
119
119
|
Add to Gemfile:
|
|
120
120
|
|
|
121
121
|
```ruby
|
|
122
|
-
gem 'carbon_ruby_sdk', '~> 0.2.
|
|
122
|
+
gem 'carbon_ruby_sdk', '~> 0.2.48'
|
|
123
123
|
```
|
|
124
124
|
|
|
125
125
|
## Getting Started<a id="getting-started"></a>
|
|
@@ -19,6 +19,8 @@ module Carbon
|
|
|
19
19
|
|
|
20
20
|
attr_accessor :organization_id
|
|
21
21
|
|
|
22
|
+
attr_accessor :organization_user_id
|
|
23
|
+
|
|
22
24
|
attr_accessor :organization_supplied_user_id
|
|
23
25
|
|
|
24
26
|
attr_accessor :organization_user_data_source_id
|
|
@@ -94,6 +96,7 @@ module Carbon
|
|
|
94
96
|
:'id' => :'id',
|
|
95
97
|
:'source' => :'source',
|
|
96
98
|
:'organization_id' => :'organization_id',
|
|
99
|
+
:'organization_user_id' => :'organization_user_id',
|
|
97
100
|
:'organization_supplied_user_id' => :'organization_supplied_user_id',
|
|
98
101
|
:'organization_user_data_source_id' => :'organization_user_data_source_id',
|
|
99
102
|
:'external_file_id' => :'external_file_id',
|
|
@@ -143,6 +146,7 @@ module Carbon
|
|
|
143
146
|
:'id' => :'Integer',
|
|
144
147
|
:'source' => :'DataSourceType',
|
|
145
148
|
:'organization_id' => :'Integer',
|
|
149
|
+
:'organization_user_id' => :'Integer',
|
|
146
150
|
:'organization_supplied_user_id' => :'String',
|
|
147
151
|
:'organization_user_data_source_id' => :'Integer',
|
|
148
152
|
:'external_file_id' => :'String',
|
|
@@ -184,6 +188,7 @@ module Carbon
|
|
|
184
188
|
def self.openapi_nullable
|
|
185
189
|
Set.new([
|
|
186
190
|
:'tags',
|
|
191
|
+
:'organization_user_id',
|
|
187
192
|
:'organization_user_data_source_id',
|
|
188
193
|
:'external_url',
|
|
189
194
|
:'sync_error_message',
|
|
@@ -240,6 +245,10 @@ module Carbon
|
|
|
240
245
|
self.organization_id = attributes[:'organization_id']
|
|
241
246
|
end
|
|
242
247
|
|
|
248
|
+
if attributes.key?(:'organization_user_id')
|
|
249
|
+
self.organization_user_id = attributes[:'organization_user_id']
|
|
250
|
+
end
|
|
251
|
+
|
|
243
252
|
if attributes.key?(:'organization_supplied_user_id')
|
|
244
253
|
self.organization_supplied_user_id = attributes[:'organization_supplied_user_id']
|
|
245
254
|
end
|
|
@@ -478,6 +487,7 @@ module Carbon
|
|
|
478
487
|
id == o.id &&
|
|
479
488
|
source == o.source &&
|
|
480
489
|
organization_id == o.organization_id &&
|
|
490
|
+
organization_user_id == o.organization_user_id &&
|
|
481
491
|
organization_supplied_user_id == o.organization_supplied_user_id &&
|
|
482
492
|
organization_user_data_source_id == o.organization_user_data_source_id &&
|
|
483
493
|
external_file_id == o.external_file_id &&
|
|
@@ -523,7 +533,7 @@ module Carbon
|
|
|
523
533
|
# Calculates hash code according to all attributes.
|
|
524
534
|
# @return [Integer] Hash code
|
|
525
535
|
def hash
|
|
526
|
-
[tags, id, source, organization_id, organization_supplied_user_id, organization_user_data_source_id, external_file_id, external_url, sync_status, sync_error_message, last_sync, file_statistics, file_metadata, embedding_properties, chunk_size, chunk_overlap, chunk_properties, ocr_properties, ocr_job_started_at, name, parent_id, enable_auto_sync, presigned_url, parsed_text_url, additional_presigned_urls, skip_embedding_generation, source_created_at, generate_sparse_vectors, request_id, upload_id, sync_properties, messages_metadata, file_contents_deleted, supports_cold_storage, hot_storage_time_to_live, embedding_storage_status, created_at, updated_at].hash
|
|
536
|
+
[tags, id, source, organization_id, organization_user_id, organization_supplied_user_id, organization_user_data_source_id, external_file_id, external_url, sync_status, sync_error_message, last_sync, file_statistics, file_metadata, embedding_properties, chunk_size, chunk_overlap, chunk_properties, ocr_properties, ocr_job_started_at, name, parent_id, enable_auto_sync, presigned_url, parsed_text_url, additional_presigned_urls, skip_embedding_generation, source_created_at, generate_sparse_vectors, request_id, upload_id, sync_properties, messages_metadata, file_contents_deleted, supports_cold_storage, hot_storage_time_to_live, embedding_storage_status, created_at, updated_at].hash
|
|
527
537
|
end
|
|
528
538
|
|
|
529
539
|
# Builds the object from hash
|
|
@@ -43,6 +43,12 @@ describe Carbon::UserFile do
|
|
|
43
43
|
end
|
|
44
44
|
end
|
|
45
45
|
|
|
46
|
+
describe 'test attribute "organization_user_id"' 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
|
+
|
|
46
52
|
describe 'test attribute "organization_supplied_user_id"' do
|
|
47
53
|
it 'should work' do
|
|
48
54
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
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.
|
|
4
|
+
version: 0.2.48
|
|
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-
|
|
11
|
+
date: 2024-11-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|