carbon_ruby_sdk 0.1.22 → 0.1.23
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 +7 -6
- data/lib/carbon_ruby_sdk/api/integrations_api.rb +8 -8
- data/lib/carbon_ruby_sdk/models/o_auth_url_request.rb +3 -2
- data/lib/carbon_ruby_sdk/models/sync_files_request.rb +2 -1
- data/lib/carbon_ruby_sdk/models/sync_options.rb +2 -1
- data/lib/carbon_ruby_sdk/version.rb +1 -1
- 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: 90722a7ecfc31440fc4c8d747ec60cf0bbb0a318667b70341c2d460cc949feaa
|
|
4
|
+
data.tar.gz: 85cb731964c95eb6828d0c315a9a9ae6f10eb70f80a6b8e41c399055cd2b4b2e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 56b2a9ed2f3768e929ac35396220ff7fa1d5b9d3a2568bc4f150824418d109a1016800d1e8867b806446fa80453549e435d7425119fae9810da83676e42b6889
|
|
7
|
+
data.tar.gz: b1d67f344769c11a113edc54244450fb53339c3410c64e42eaeda3c683f33ee56f6e4751fd6a7441a7efcb48c7fdb7b8e53427b177ae672bde496e3bf3375767
|
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.23)
|
|
10
10
|
|
|
11
11
|
</div>
|
|
12
12
|
|
|
@@ -81,7 +81,7 @@ Connect external data to LLMs, no matter the source.
|
|
|
81
81
|
Add to Gemfile:
|
|
82
82
|
|
|
83
83
|
```ruby
|
|
84
|
-
gem 'carbon_ruby_sdk', '~> 0.1.
|
|
84
|
+
gem 'carbon_ruby_sdk', '~> 0.1.23'
|
|
85
85
|
```
|
|
86
86
|
|
|
87
87
|
## Getting Started<a id="getting-started"></a>
|
|
@@ -1192,6 +1192,7 @@ result = carbon.integrations.connect_data_source(
|
|
|
1192
1192
|
"prepend_filename_to_chunks" => false,
|
|
1193
1193
|
"sync_files_on_connection" => true,
|
|
1194
1194
|
"set_page_as_boundary" => false,
|
|
1195
|
+
"request_id" => "e8fddc9a-4810-48b2-b1b5-b1ec0159625a",
|
|
1195
1196
|
"enable_file_picker" => true,
|
|
1196
1197
|
},
|
|
1197
1198
|
)
|
|
@@ -1387,7 +1388,7 @@ result = carbon.integrations.get_oauth_url(
|
|
|
1387
1388
|
set_page_as_boundary: false,
|
|
1388
1389
|
data_source_id: 1,
|
|
1389
1390
|
connecting_new_account: false,
|
|
1390
|
-
request_id: "
|
|
1391
|
+
request_id: "76343a7e-0175-49f8-957c-e1133ae388ac",
|
|
1391
1392
|
use_ocr: false,
|
|
1392
1393
|
parse_pdf_tables_with_ocr: false,
|
|
1393
1394
|
enable_file_picker: true,
|
|
@@ -1440,7 +1441,7 @@ Enable OCR for files that support it. Supported formats: pdf
|
|
|
1440
1441
|
##### parse_pdf_tables_with_ocr: `Boolean`<a id="parse_pdf_tables_with_ocr-boolean"></a>
|
|
1441
1442
|
##### enable_file_picker: `Boolean`<a id="enable_file_picker-boolean"></a>
|
|
1442
1443
|
Enable integration's file picker for sources that support it. Supported sources:
|
|
1443
|
-
|
|
1444
|
+
DROPBOX, BOX, ONEDRIVE, GOOGLE_DRIVE, SHAREPOINT
|
|
1444
1445
|
|
|
1445
1446
|
#### 🔄 Return<a id="🔄-return"></a>
|
|
1446
1447
|
|
|
@@ -1658,7 +1659,7 @@ result = carbon.integrations.sync_confluence(
|
|
|
1658
1659
|
prepend_filename_to_chunks: false,
|
|
1659
1660
|
max_items_per_chunk: 1,
|
|
1660
1661
|
set_page_as_boundary: false,
|
|
1661
|
-
request_id: "
|
|
1662
|
+
request_id: "74c95466-42b2-4213-ae36-bfafbaecfcf5",
|
|
1662
1663
|
use_ocr: false,
|
|
1663
1664
|
parse_pdf_tables_with_ocr: false,
|
|
1664
1665
|
)
|
|
@@ -1749,7 +1750,7 @@ result = carbon.integrations.sync_files(
|
|
|
1749
1750
|
prepend_filename_to_chunks: false,
|
|
1750
1751
|
max_items_per_chunk: 1,
|
|
1751
1752
|
set_page_as_boundary: false,
|
|
1752
|
-
request_id: "
|
|
1753
|
+
request_id: "74c95466-42b2-4213-ae36-bfafbaecfcf5",
|
|
1753
1754
|
use_ocr: false,
|
|
1754
1755
|
parse_pdf_tables_with_ocr: false,
|
|
1755
1756
|
)
|
|
@@ -545,10 +545,10 @@ 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: DROPBOX, BOX, ONEDRIVE, GOOGLE_DRIVE, SHAREPOINT
|
|
549
549
|
# @param body [OAuthURLRequest]
|
|
550
550
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
|
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:
|
|
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: '76343a7e-0175-49f8-957c-e1133ae388ac', use_ocr: false, parse_pdf_tables_with_ocr: false, enable_file_picker: true, extra: {})
|
|
552
552
|
_body = {}
|
|
553
553
|
_body[:tags] = tags if tags != SENTINEL
|
|
554
554
|
_body[:scope] = scope if scope != SENTINEL
|
|
@@ -607,10 +607,10 @@ 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: DROPBOX, BOX, ONEDRIVE, GOOGLE_DRIVE, SHAREPOINT
|
|
611
611
|
# @param body [OAuthURLRequest]
|
|
612
612
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
|
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:
|
|
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: '76343a7e-0175-49f8-957c-e1133ae388ac', use_ocr: false, parse_pdf_tables_with_ocr: false, enable_file_picker: true, extra: {})
|
|
614
614
|
_body = {}
|
|
615
615
|
_body[:tags] = tags if tags != SENTINEL
|
|
616
616
|
_body[:scope] = scope if scope != SENTINEL
|
|
@@ -1293,7 +1293,7 @@ module Carbon
|
|
|
1293
1293
|
# @param parse_pdf_tables_with_ocr [Boolean]
|
|
1294
1294
|
# @param body [SyncFilesRequest]
|
|
1295
1295
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
|
1296
|
-
def sync_confluence(data_source_id:, ids:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, set_page_as_boundary: false, request_id:
|
|
1296
|
+
def sync_confluence(data_source_id:, ids:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, set_page_as_boundary: false, request_id: '74c95466-42b2-4213-ae36-bfafbaecfcf5', use_ocr: false, parse_pdf_tables_with_ocr: false, extra: {})
|
|
1297
1297
|
_body = {}
|
|
1298
1298
|
_body[:tags] = tags if tags != SENTINEL
|
|
1299
1299
|
_body[:data_source_id] = data_source_id if data_source_id != SENTINEL
|
|
@@ -1337,7 +1337,7 @@ module Carbon
|
|
|
1337
1337
|
# @param parse_pdf_tables_with_ocr [Boolean]
|
|
1338
1338
|
# @param body [SyncFilesRequest]
|
|
1339
1339
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
|
1340
|
-
def sync_confluence_with_http_info(data_source_id:, ids:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, set_page_as_boundary: false, request_id:
|
|
1340
|
+
def sync_confluence_with_http_info(data_source_id:, ids:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, set_page_as_boundary: false, request_id: '74c95466-42b2-4213-ae36-bfafbaecfcf5', use_ocr: false, parse_pdf_tables_with_ocr: false, extra: {})
|
|
1341
1341
|
_body = {}
|
|
1342
1342
|
_body[:tags] = tags if tags != SENTINEL
|
|
1343
1343
|
_body[:data_source_id] = data_source_id if data_source_id != SENTINEL
|
|
@@ -1541,7 +1541,7 @@ module Carbon
|
|
|
1541
1541
|
# @param parse_pdf_tables_with_ocr [Boolean]
|
|
1542
1542
|
# @param body [SyncFilesRequest]
|
|
1543
1543
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
|
1544
|
-
def sync_files(data_source_id:, ids:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, set_page_as_boundary: false, request_id:
|
|
1544
|
+
def sync_files(data_source_id:, ids:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, set_page_as_boundary: false, request_id: '74c95466-42b2-4213-ae36-bfafbaecfcf5', use_ocr: false, parse_pdf_tables_with_ocr: false, extra: {})
|
|
1545
1545
|
_body = {}
|
|
1546
1546
|
_body[:tags] = tags if tags != SENTINEL
|
|
1547
1547
|
_body[:data_source_id] = data_source_id if data_source_id != SENTINEL
|
|
@@ -1585,7 +1585,7 @@ module Carbon
|
|
|
1585
1585
|
# @param parse_pdf_tables_with_ocr [Boolean]
|
|
1586
1586
|
# @param body [SyncFilesRequest]
|
|
1587
1587
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
|
1588
|
-
def sync_files_with_http_info(data_source_id:, ids:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, set_page_as_boundary: false, request_id:
|
|
1588
|
+
def sync_files_with_http_info(data_source_id:, ids:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, set_page_as_boundary: false, request_id: '74c95466-42b2-4213-ae36-bfafbaecfcf5', use_ocr: false, parse_pdf_tables_with_ocr: false, extra: {})
|
|
1589
1589
|
_body = {}
|
|
1590
1590
|
_body[:tags] = tags if tags != SENTINEL
|
|
1591
1591
|
_body[:data_source_id] = data_source_id if data_source_id != SENTINEL
|
|
@@ -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: DROPBOX, BOX, ONEDRIVE, GOOGLE_DRIVE, SHAREPOINT
|
|
65
65
|
attr_accessor :enable_file_picker
|
|
66
66
|
|
|
67
67
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -147,7 +147,6 @@ module Carbon
|
|
|
147
147
|
:'sync_files_on_connection',
|
|
148
148
|
:'data_source_id',
|
|
149
149
|
:'connecting_new_account',
|
|
150
|
-
:'request_id',
|
|
151
150
|
:'use_ocr',
|
|
152
151
|
:'parse_pdf_tables_with_ocr',
|
|
153
152
|
])
|
|
@@ -264,6 +263,8 @@ module Carbon
|
|
|
264
263
|
|
|
265
264
|
if attributes.key?(:'request_id')
|
|
266
265
|
self.request_id = attributes[:'request_id']
|
|
266
|
+
else
|
|
267
|
+
self.request_id = '76343a7e-0175-49f8-957c-e1133ae388ac'
|
|
267
268
|
end
|
|
268
269
|
|
|
269
270
|
if attributes.key?(:'use_ocr')
|
|
@@ -96,7 +96,6 @@ module Carbon
|
|
|
96
96
|
:'generate_sparse_vectors',
|
|
97
97
|
:'prepend_filename_to_chunks',
|
|
98
98
|
:'max_items_per_chunk',
|
|
99
|
-
:'request_id',
|
|
100
99
|
:'use_ocr',
|
|
101
100
|
:'parse_pdf_tables_with_ocr'
|
|
102
101
|
])
|
|
@@ -177,6 +176,8 @@ module Carbon
|
|
|
177
176
|
|
|
178
177
|
if attributes.key?(:'request_id')
|
|
179
178
|
self.request_id = attributes[:'request_id']
|
|
179
|
+
else
|
|
180
|
+
self.request_id = '74c95466-42b2-4213-ae36-bfafbaecfcf5'
|
|
180
181
|
end
|
|
181
182
|
|
|
182
183
|
if attributes.key?(:'use_ocr')
|
|
@@ -90,7 +90,6 @@ module Carbon
|
|
|
90
90
|
:'prepend_filename_to_chunks',
|
|
91
91
|
:'max_items_per_chunk',
|
|
92
92
|
:'sync_files_on_connection',
|
|
93
|
-
:'request_id',
|
|
94
93
|
])
|
|
95
94
|
end
|
|
96
95
|
|
|
@@ -167,6 +166,8 @@ module Carbon
|
|
|
167
166
|
|
|
168
167
|
if attributes.key?(:'request_id')
|
|
169
168
|
self.request_id = attributes[:'request_id']
|
|
169
|
+
else
|
|
170
|
+
self.request_id = 'e8fddc9a-4810-48b2-b1b5-b1ec0159625a'
|
|
170
171
|
end
|
|
171
172
|
|
|
172
173
|
if attributes.key?(:'enable_file_picker')
|
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.23
|
|
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-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|