carbon_ruby_sdk 0.1.18 → 0.1.19
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 +1 -1
- data/README.md +3 -3
- data/lib/carbon_ruby_sdk/api/integrations_api.rb +2 -2
- data/lib/carbon_ruby_sdk/models/o_auth_url_request.rb +1 -1
- data/lib/carbon_ruby_sdk/models/sync_options.rb +11 -1
- data/lib/carbon_ruby_sdk/version.rb +1 -1
- data/spec/models/sync_options_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: 780eaed0011d89334b59a18257211702cc3d7a6fe51edf77f3f9664e7ba88587
|
|
4
|
+
data.tar.gz: 26fd3c24eb43a87f249a680d348012d01b50907d39caa93fb1567b9ca1bc8488
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '09abc5f33ef39442d0212d4e07729b6c992da4385ba18e54b11ef912bdf71b317f9645804805d5d6ca4d41002d4ea5cb04803a145220107c3a1fe39c6e365ffd'
|
|
7
|
+
data.tar.gz: 4fd4c17f76483be12e2233987173206283c2d98a255189e7cd6701a52a328f1dbdd20913443f3015de19d705be619e67f3e0966c632a9387bd56ecd7a55fd882
|
data/Gemfile.lock
CHANGED
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.1.19)
|
|
10
10
|
|
|
11
11
|
</div>
|
|
12
12
|
|
|
@@ -80,7 +80,7 @@ Connect external data to LLMs, no matter the source.
|
|
|
80
80
|
Add to Gemfile:
|
|
81
81
|
|
|
82
82
|
```ruby
|
|
83
|
-
gem 'carbon_ruby_sdk', '~> 0.1.
|
|
83
|
+
gem 'carbon_ruby_sdk', '~> 0.1.19'
|
|
84
84
|
```
|
|
85
85
|
|
|
86
86
|
## Getting Started<a id="getting-started"></a>
|
|
@@ -1439,7 +1439,7 @@ Enable OCR for files that support it. Supported formats: pdf
|
|
|
1439
1439
|
##### parse_pdf_tables_with_ocr: `Boolean`<a id="parse_pdf_tables_with_ocr-boolean"></a>
|
|
1440
1440
|
##### enable_file_picker: `Boolean`<a id="enable_file_picker-boolean"></a>
|
|
1441
1441
|
Enable integration's file picker for sources that support it. Supported sources:
|
|
1442
|
-
|
|
1442
|
+
BOX, DROPBOX, SHAREPOINT, GOOGLE_DRIVE, ONEDRIVE
|
|
1443
1443
|
|
|
1444
1444
|
#### 🔄 Return<a id="🔄-return"></a>
|
|
1445
1445
|
|
|
@@ -545,7 +545,7 @@ module Carbon
|
|
|
545
545
|
# @param request_id [String] This request id will be added to all files that get synced using the generated OAuth URL
|
|
546
546
|
# @param use_ocr [Boolean] Enable OCR for files that support it. Supported formats: pdf
|
|
547
547
|
# @param parse_pdf_tables_with_ocr [Boolean]
|
|
548
|
-
# @param enable_file_picker [Boolean] Enable integration's file picker for sources that support it. Supported sources:
|
|
548
|
+
# @param enable_file_picker [Boolean] Enable integration's file picker for sources that support it. Supported sources: BOX, DROPBOX, SHAREPOINT, GOOGLE_DRIVE, ONEDRIVE
|
|
549
549
|
# @param body [OAuthURLRequest]
|
|
550
550
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
|
551
551
|
def get_oauth_url(service:, tags: SENTINEL, scope: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', zendesk_subdomain: SENTINEL, microsoft_tenant: SENTINEL, sharepoint_site_name: SENTINEL, confluence_subdomain: SENTINEL, generate_sparse_vectors: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, salesforce_domain: SENTINEL, sync_files_on_connection: true, set_page_as_boundary: false, data_source_id: SENTINEL, connecting_new_account: false, request_id: SENTINEL, use_ocr: false, parse_pdf_tables_with_ocr: false, enable_file_picker: true, extra: {})
|
|
@@ -607,7 +607,7 @@ module Carbon
|
|
|
607
607
|
# @param request_id [String] This request id will be added to all files that get synced using the generated OAuth URL
|
|
608
608
|
# @param use_ocr [Boolean] Enable OCR for files that support it. Supported formats: pdf
|
|
609
609
|
# @param parse_pdf_tables_with_ocr [Boolean]
|
|
610
|
-
# @param enable_file_picker [Boolean] Enable integration's file picker for sources that support it. Supported sources:
|
|
610
|
+
# @param enable_file_picker [Boolean] Enable integration's file picker for sources that support it. Supported sources: BOX, DROPBOX, SHAREPOINT, GOOGLE_DRIVE, ONEDRIVE
|
|
611
611
|
# @param body [OAuthURLRequest]
|
|
612
612
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
|
613
613
|
def get_oauth_url_with_http_info(service:, tags: SENTINEL, scope: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', zendesk_subdomain: SENTINEL, microsoft_tenant: SENTINEL, sharepoint_site_name: SENTINEL, confluence_subdomain: SENTINEL, generate_sparse_vectors: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, salesforce_domain: SENTINEL, sync_files_on_connection: true, set_page_as_boundary: false, data_source_id: SENTINEL, connecting_new_account: false, request_id: SENTINEL, use_ocr: false, parse_pdf_tables_with_ocr: false, enable_file_picker: true, extra: {})
|
|
@@ -61,7 +61,7 @@ module Carbon
|
|
|
61
61
|
|
|
62
62
|
attr_accessor :parse_pdf_tables_with_ocr
|
|
63
63
|
|
|
64
|
-
# Enable integration's file picker for sources that support it. Supported sources:
|
|
64
|
+
# Enable integration's file picker for sources that support it. Supported sources: BOX, DROPBOX, SHAREPOINT, GOOGLE_DRIVE, ONEDRIVE
|
|
65
65
|
attr_accessor :enable_file_picker
|
|
66
66
|
|
|
67
67
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -33,6 +33,8 @@ module Carbon
|
|
|
33
33
|
|
|
34
34
|
attr_accessor :set_page_as_boundary
|
|
35
35
|
|
|
36
|
+
attr_accessor :request_id
|
|
37
|
+
|
|
36
38
|
attr_accessor :enable_file_picker
|
|
37
39
|
|
|
38
40
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -48,6 +50,7 @@ module Carbon
|
|
|
48
50
|
:'max_items_per_chunk' => :'max_items_per_chunk',
|
|
49
51
|
:'sync_files_on_connection' => :'sync_files_on_connection',
|
|
50
52
|
:'set_page_as_boundary' => :'set_page_as_boundary',
|
|
53
|
+
:'request_id' => :'request_id',
|
|
51
54
|
:'enable_file_picker' => :'enable_file_picker'
|
|
52
55
|
}
|
|
53
56
|
end
|
|
@@ -70,6 +73,7 @@ module Carbon
|
|
|
70
73
|
:'max_items_per_chunk' => :'Integer',
|
|
71
74
|
:'sync_files_on_connection' => :'Boolean',
|
|
72
75
|
:'set_page_as_boundary' => :'Boolean',
|
|
76
|
+
:'request_id' => :'String',
|
|
73
77
|
:'enable_file_picker' => :'Boolean'
|
|
74
78
|
}
|
|
75
79
|
end
|
|
@@ -86,6 +90,7 @@ module Carbon
|
|
|
86
90
|
:'prepend_filename_to_chunks',
|
|
87
91
|
:'max_items_per_chunk',
|
|
88
92
|
:'sync_files_on_connection',
|
|
93
|
+
:'request_id',
|
|
89
94
|
])
|
|
90
95
|
end
|
|
91
96
|
|
|
@@ -160,6 +165,10 @@ module Carbon
|
|
|
160
165
|
self.set_page_as_boundary = false
|
|
161
166
|
end
|
|
162
167
|
|
|
168
|
+
if attributes.key?(:'request_id')
|
|
169
|
+
self.request_id = attributes[:'request_id']
|
|
170
|
+
end
|
|
171
|
+
|
|
163
172
|
if attributes.key?(:'enable_file_picker')
|
|
164
173
|
self.enable_file_picker = attributes[:'enable_file_picker']
|
|
165
174
|
else
|
|
@@ -195,6 +204,7 @@ module Carbon
|
|
|
195
204
|
max_items_per_chunk == o.max_items_per_chunk &&
|
|
196
205
|
sync_files_on_connection == o.sync_files_on_connection &&
|
|
197
206
|
set_page_as_boundary == o.set_page_as_boundary &&
|
|
207
|
+
request_id == o.request_id &&
|
|
198
208
|
enable_file_picker == o.enable_file_picker
|
|
199
209
|
end
|
|
200
210
|
|
|
@@ -207,7 +217,7 @@ module Carbon
|
|
|
207
217
|
# Calculates hash code according to all attributes.
|
|
208
218
|
# @return [Integer] Hash code
|
|
209
219
|
def hash
|
|
210
|
-
[tags, chunk_size, chunk_overlap, skip_embedding_generation, embedding_model, generate_sparse_vectors, prepend_filename_to_chunks, max_items_per_chunk, sync_files_on_connection, set_page_as_boundary, enable_file_picker].hash
|
|
220
|
+
[tags, chunk_size, chunk_overlap, skip_embedding_generation, embedding_model, generate_sparse_vectors, prepend_filename_to_chunks, max_items_per_chunk, sync_files_on_connection, set_page_as_boundary, request_id, enable_file_picker].hash
|
|
211
221
|
end
|
|
212
222
|
|
|
213
223
|
# Builds the object from hash
|
|
@@ -79,6 +79,12 @@ describe Carbon::SyncOptions do
|
|
|
79
79
|
end
|
|
80
80
|
end
|
|
81
81
|
|
|
82
|
+
describe 'test attribute "request_id"' do
|
|
83
|
+
it 'should work' do
|
|
84
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
|
|
82
88
|
describe 'test attribute "enable_file_picker"' do
|
|
83
89
|
it 'should work' do
|
|
84
90
|
# 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.1.
|
|
4
|
+
version: 0.1.19
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Konfig
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-04-
|
|
11
|
+
date: 2024-04-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|