carbon_ruby_sdk 0.1.32 → 0.1.33
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 +11 -7
- data/lib/carbon_ruby_sdk/api/integrations_api.rb +20 -12
- data/lib/carbon_ruby_sdk/models/gmail_sync_input.rb +16 -5
- data/lib/carbon_ruby_sdk/models/o_auth_url_request.rb +2 -2
- data/lib/carbon_ruby_sdk/models/outlook_sync_input.rb +16 -5
- data/lib/carbon_ruby_sdk/models/sync_files_request.rb +1 -1
- data/lib/carbon_ruby_sdk/models/sync_options.rb +1 -1
- data/lib/carbon_ruby_sdk/version.rb +1 -1
- data/spec/models/gmail_sync_input_spec.rb +6 -0
- data/spec/models/outlook_sync_input_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: bbc41e92c2235fecf00bff1b6fca46025606843dcd2b977a1c57ebb8468569b2
|
|
4
|
+
data.tar.gz: d942492dab72ece3a9e26c8e68dfca8b734c4dc99a58502a497048767879f14b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 66c6322d2b03be4bd027451f374a33dca4909bbe9d3ebab92fa7a70c890d5079ec38d06138e856b0916e9c155f1328272f30013e29696e5c1ed507a661762275
|
|
7
|
+
data.tar.gz: e5add56276e1f48d572b3ab59a611d6bc38721400baa048441cd9eca9fd549c6470da25aa756edd951dbaf8bc9a40967ca4cfa27a5629de7a2a3d9c863282bed
|
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.33)
|
|
10
10
|
|
|
11
11
|
</div>
|
|
12
12
|
|
|
@@ -84,7 +84,7 @@ Connect external data to LLMs, no matter the source.
|
|
|
84
84
|
Add to Gemfile:
|
|
85
85
|
|
|
86
86
|
```ruby
|
|
87
|
-
gem 'carbon_ruby_sdk', '~> 0.1.
|
|
87
|
+
gem 'carbon_ruby_sdk', '~> 0.1.33'
|
|
88
88
|
```
|
|
89
89
|
|
|
90
90
|
## Getting Started<a id="getting-started"></a>
|
|
@@ -1208,7 +1208,7 @@ result = carbon.integrations.connect_data_source(
|
|
|
1208
1208
|
"prepend_filename_to_chunks" => false,
|
|
1209
1209
|
"sync_files_on_connection" => true,
|
|
1210
1210
|
"set_page_as_boundary" => false,
|
|
1211
|
-
"request_id" => "
|
|
1211
|
+
"request_id" => "ca195b1c-0656-4db7-96fc-211554e9827b",
|
|
1212
1212
|
"enable_file_picker" => true,
|
|
1213
1213
|
"sync_source_items" => true,
|
|
1214
1214
|
"incremental_sync" => false,
|
|
@@ -1426,7 +1426,7 @@ result = carbon.integrations.get_oauth_url(
|
|
|
1426
1426
|
set_page_as_boundary: false,
|
|
1427
1427
|
data_source_id: 1,
|
|
1428
1428
|
connecting_new_account: false,
|
|
1429
|
-
request_id: "
|
|
1429
|
+
request_id: "a0b57844-5937-42ef-a161-2515fc4f16df",
|
|
1430
1430
|
use_ocr: false,
|
|
1431
1431
|
parse_pdf_tables_with_ocr: false,
|
|
1432
1432
|
enable_file_picker: true,
|
|
@@ -1485,7 +1485,7 @@ Enable OCR for files that support it. Supported formats: pdf
|
|
|
1485
1485
|
##### parse_pdf_tables_with_ocr: `Boolean`<a id="parse_pdf_tables_with_ocr-boolean"></a>
|
|
1486
1486
|
##### enable_file_picker: `Boolean`<a id="enable_file_picker-boolean"></a>
|
|
1487
1487
|
Enable integration's file picker for sources that support it. Supported sources:
|
|
1488
|
-
SHAREPOINT, DROPBOX, BOX,
|
|
1488
|
+
SHAREPOINT, DROPBOX, BOX, GOOGLE_DRIVE, ONEDRIVE
|
|
1489
1489
|
|
|
1490
1490
|
##### sync_source_items: `Boolean`<a id="sync_source_items-boolean"></a>
|
|
1491
1491
|
Enabling this flag will fetch all available content from the source to be listed
|
|
@@ -1747,7 +1747,7 @@ result = carbon.integrations.sync_confluence(
|
|
|
1747
1747
|
prepend_filename_to_chunks: false,
|
|
1748
1748
|
max_items_per_chunk: 1,
|
|
1749
1749
|
set_page_as_boundary: false,
|
|
1750
|
-
request_id: "
|
|
1750
|
+
request_id: "5cb51bcc-08e9-4e31-9784-0005b5390cb6",
|
|
1751
1751
|
use_ocr: false,
|
|
1752
1752
|
parse_pdf_tables_with_ocr: false,
|
|
1753
1753
|
incremental_sync: false,
|
|
@@ -1848,7 +1848,7 @@ result = carbon.integrations.sync_files(
|
|
|
1848
1848
|
prepend_filename_to_chunks: false,
|
|
1849
1849
|
max_items_per_chunk: 1,
|
|
1850
1850
|
set_page_as_boundary: false,
|
|
1851
|
-
request_id: "
|
|
1851
|
+
request_id: "5cb51bcc-08e9-4e31-9784-0005b5390cb6",
|
|
1852
1852
|
use_ocr: false,
|
|
1853
1853
|
parse_pdf_tables_with_ocr: false,
|
|
1854
1854
|
incremental_sync: false,
|
|
@@ -2048,6 +2048,7 @@ result = carbon.integrations.sync_gmail(
|
|
|
2048
2048
|
data_source_id: 1,
|
|
2049
2049
|
request_id: "string_example",
|
|
2050
2050
|
sync_attachments: false,
|
|
2051
|
+
incremental_sync: false,
|
|
2051
2052
|
)
|
|
2052
2053
|
p result
|
|
2053
2054
|
```
|
|
@@ -2065,6 +2066,7 @@ p result
|
|
|
2065
2066
|
##### data_source_id: `Integer`<a id="data_source_id-integer"></a>
|
|
2066
2067
|
##### request_id: `String`<a id="request_id-string"></a>
|
|
2067
2068
|
##### sync_attachments: `Boolean`<a id="sync_attachments-boolean"></a>
|
|
2069
|
+
##### incremental_sync: `Boolean`<a id="incremental_sync-boolean"></a>
|
|
2068
2070
|
#### 🔄 Return<a id="🔄-return"></a>
|
|
2069
2071
|
|
|
2070
2072
|
[GenericSuccessResponse](./lib/carbon_ruby_sdk/models/generic_success_response.rb)
|
|
@@ -2157,6 +2159,7 @@ result = carbon.integrations.sync_outlook(
|
|
|
2157
2159
|
data_source_id: 1,
|
|
2158
2160
|
request_id: "string_example",
|
|
2159
2161
|
sync_attachments: false,
|
|
2162
|
+
incremental_sync: false,
|
|
2160
2163
|
)
|
|
2161
2164
|
p result
|
|
2162
2165
|
```
|
|
@@ -2175,6 +2178,7 @@ p result
|
|
|
2175
2178
|
##### data_source_id: `Integer`<a id="data_source_id-integer"></a>
|
|
2176
2179
|
##### request_id: `String`<a id="request_id-string"></a>
|
|
2177
2180
|
##### sync_attachments: `Boolean`<a id="sync_attachments-boolean"></a>
|
|
2181
|
+
##### incremental_sync: `Boolean`<a id="incremental_sync-boolean"></a>
|
|
2178
2182
|
#### 🔄 Return<a id="🔄-return"></a>
|
|
2179
2183
|
|
|
2180
2184
|
[GenericSuccessResponse](./lib/carbon_ruby_sdk/models/generic_success_response.rb)
|
|
@@ -561,13 +561,13 @@ module Carbon
|
|
|
561
561
|
# @param request_id [String] This request id will be added to all files that get synced using the generated OAuth URL
|
|
562
562
|
# @param use_ocr [Boolean] Enable OCR for files that support it. Supported formats: pdf
|
|
563
563
|
# @param parse_pdf_tables_with_ocr [Boolean]
|
|
564
|
-
# @param enable_file_picker [Boolean] Enable integration's file picker for sources that support it. Supported sources: SHAREPOINT, DROPBOX, BOX,
|
|
564
|
+
# @param enable_file_picker [Boolean] Enable integration's file picker for sources that support it. Supported sources: SHAREPOINT, DROPBOX, BOX, GOOGLE_DRIVE, ONEDRIVE
|
|
565
565
|
# @param sync_source_items [Boolean] Enabling this flag will fetch all available content from the source to be listed via list items endpoint
|
|
566
566
|
# @param incremental_sync [Boolean] Only sync files if they have not already been synced or if the embedding properties have changed. This flag is currently supported by ONEDRIVE, GOOGLE_DRIVE, BOX, DROPBOX. It will be ignored for other data sources.
|
|
567
567
|
# @param file_sync_config [HelpdeskFileSyncConfigNullable]
|
|
568
568
|
# @param body [OAuthURLRequest]
|
|
569
569
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
|
570
|
-
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: '
|
|
570
|
+
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: 'a0b57844-5937-42ef-a161-2515fc4f16df', use_ocr: false, parse_pdf_tables_with_ocr: false, enable_file_picker: true, sync_source_items: true, incremental_sync: false, file_sync_config: SENTINEL, extra: {})
|
|
571
571
|
_body = {}
|
|
572
572
|
_body[:tags] = tags if tags != SENTINEL
|
|
573
573
|
_body[:scope] = scope if scope != SENTINEL
|
|
@@ -629,13 +629,13 @@ module Carbon
|
|
|
629
629
|
# @param request_id [String] This request id will be added to all files that get synced using the generated OAuth URL
|
|
630
630
|
# @param use_ocr [Boolean] Enable OCR for files that support it. Supported formats: pdf
|
|
631
631
|
# @param parse_pdf_tables_with_ocr [Boolean]
|
|
632
|
-
# @param enable_file_picker [Boolean] Enable integration's file picker for sources that support it. Supported sources: SHAREPOINT, DROPBOX, BOX,
|
|
632
|
+
# @param enable_file_picker [Boolean] Enable integration's file picker for sources that support it. Supported sources: SHAREPOINT, DROPBOX, BOX, GOOGLE_DRIVE, ONEDRIVE
|
|
633
633
|
# @param sync_source_items [Boolean] Enabling this flag will fetch all available content from the source to be listed via list items endpoint
|
|
634
634
|
# @param incremental_sync [Boolean] Only sync files if they have not already been synced or if the embedding properties have changed. This flag is currently supported by ONEDRIVE, GOOGLE_DRIVE, BOX, DROPBOX. It will be ignored for other data sources.
|
|
635
635
|
# @param file_sync_config [HelpdeskFileSyncConfigNullable]
|
|
636
636
|
# @param body [OAuthURLRequest]
|
|
637
637
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
|
638
|
-
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: '
|
|
638
|
+
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: 'a0b57844-5937-42ef-a161-2515fc4f16df', use_ocr: false, parse_pdf_tables_with_ocr: false, enable_file_picker: true, sync_source_items: true, incremental_sync: false, file_sync_config: SENTINEL, extra: {})
|
|
639
639
|
_body = {}
|
|
640
640
|
_body[:tags] = tags if tags != SENTINEL
|
|
641
641
|
_body[:scope] = scope if scope != SENTINEL
|
|
@@ -1431,7 +1431,7 @@ module Carbon
|
|
|
1431
1431
|
# @param file_sync_config [HelpdeskGlobalFileSyncConfigNullable]
|
|
1432
1432
|
# @param body [SyncFilesRequest]
|
|
1433
1433
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
|
1434
|
-
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: '
|
|
1434
|
+
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: '5cb51bcc-08e9-4e31-9784-0005b5390cb6', use_ocr: false, parse_pdf_tables_with_ocr: false, incremental_sync: false, file_sync_config: SENTINEL, extra: {})
|
|
1435
1435
|
_body = {}
|
|
1436
1436
|
_body[:tags] = tags if tags != SENTINEL
|
|
1437
1437
|
_body[:data_source_id] = data_source_id if data_source_id != SENTINEL
|
|
@@ -1479,7 +1479,7 @@ module Carbon
|
|
|
1479
1479
|
# @param file_sync_config [HelpdeskGlobalFileSyncConfigNullable]
|
|
1480
1480
|
# @param body [SyncFilesRequest]
|
|
1481
1481
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
|
1482
|
-
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: '
|
|
1482
|
+
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: '5cb51bcc-08e9-4e31-9784-0005b5390cb6', use_ocr: false, parse_pdf_tables_with_ocr: false, incremental_sync: false, file_sync_config: SENTINEL, extra: {})
|
|
1483
1483
|
_body = {}
|
|
1484
1484
|
_body[:tags] = tags if tags != SENTINEL
|
|
1485
1485
|
_body[:data_source_id] = data_source_id if data_source_id != SENTINEL
|
|
@@ -1687,7 +1687,7 @@ module Carbon
|
|
|
1687
1687
|
# @param file_sync_config [HelpdeskGlobalFileSyncConfigNullable]
|
|
1688
1688
|
# @param body [SyncFilesRequest]
|
|
1689
1689
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
|
1690
|
-
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: '
|
|
1690
|
+
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: '5cb51bcc-08e9-4e31-9784-0005b5390cb6', use_ocr: false, parse_pdf_tables_with_ocr: false, incremental_sync: false, file_sync_config: SENTINEL, extra: {})
|
|
1691
1691
|
_body = {}
|
|
1692
1692
|
_body[:tags] = tags if tags != SENTINEL
|
|
1693
1693
|
_body[:data_source_id] = data_source_id if data_source_id != SENTINEL
|
|
@@ -1735,7 +1735,7 @@ module Carbon
|
|
|
1735
1735
|
# @param file_sync_config [HelpdeskGlobalFileSyncConfigNullable]
|
|
1736
1736
|
# @param body [SyncFilesRequest]
|
|
1737
1737
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
|
1738
|
-
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: '
|
|
1738
|
+
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: '5cb51bcc-08e9-4e31-9784-0005b5390cb6', use_ocr: false, parse_pdf_tables_with_ocr: false, incremental_sync: false, file_sync_config: SENTINEL, extra: {})
|
|
1739
1739
|
_body = {}
|
|
1740
1740
|
_body[:tags] = tags if tags != SENTINEL
|
|
1741
1741
|
_body[:data_source_id] = data_source_id if data_source_id != SENTINEL
|
|
@@ -2136,9 +2136,10 @@ module Carbon
|
|
|
2136
2136
|
# @param data_source_id [Integer]
|
|
2137
2137
|
# @param request_id [String]
|
|
2138
2138
|
# @param sync_attachments [Boolean]
|
|
2139
|
+
# @param incremental_sync [Boolean]
|
|
2139
2140
|
# @param body [GmailSyncInput]
|
|
2140
2141
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
|
2141
|
-
def sync_gmail(filters:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, data_source_id: SENTINEL, request_id: SENTINEL, sync_attachments: false, extra: {})
|
|
2142
|
+
def sync_gmail(filters:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, data_source_id: SENTINEL, request_id: SENTINEL, sync_attachments: false, incremental_sync: false, extra: {})
|
|
2142
2143
|
_body = {}
|
|
2143
2144
|
_body[:tags] = tags if tags != SENTINEL
|
|
2144
2145
|
_body[:filters] = filters if filters != SENTINEL
|
|
@@ -2151,6 +2152,7 @@ module Carbon
|
|
|
2151
2152
|
_body[:data_source_id] = data_source_id if data_source_id != SENTINEL
|
|
2152
2153
|
_body[:request_id] = request_id if request_id != SENTINEL
|
|
2153
2154
|
_body[:sync_attachments] = sync_attachments if sync_attachments != SENTINEL
|
|
2155
|
+
_body[:incremental_sync] = incremental_sync if incremental_sync != SENTINEL
|
|
2154
2156
|
gmail_sync_input = _body
|
|
2155
2157
|
api_response = sync_gmail_with_http_info_impl(gmail_sync_input, extra)
|
|
2156
2158
|
api_response.data
|
|
@@ -2220,9 +2222,10 @@ module Carbon
|
|
|
2220
2222
|
# @param data_source_id [Integer]
|
|
2221
2223
|
# @param request_id [String]
|
|
2222
2224
|
# @param sync_attachments [Boolean]
|
|
2225
|
+
# @param incremental_sync [Boolean]
|
|
2223
2226
|
# @param body [GmailSyncInput]
|
|
2224
2227
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
|
2225
|
-
def sync_gmail_with_http_info(filters:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, data_source_id: SENTINEL, request_id: SENTINEL, sync_attachments: false, extra: {})
|
|
2228
|
+
def sync_gmail_with_http_info(filters:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, data_source_id: SENTINEL, request_id: SENTINEL, sync_attachments: false, incremental_sync: false, extra: {})
|
|
2226
2229
|
_body = {}
|
|
2227
2230
|
_body[:tags] = tags if tags != SENTINEL
|
|
2228
2231
|
_body[:filters] = filters if filters != SENTINEL
|
|
@@ -2235,6 +2238,7 @@ module Carbon
|
|
|
2235
2238
|
_body[:data_source_id] = data_source_id if data_source_id != SENTINEL
|
|
2236
2239
|
_body[:request_id] = request_id if request_id != SENTINEL
|
|
2237
2240
|
_body[:sync_attachments] = sync_attachments if sync_attachments != SENTINEL
|
|
2241
|
+
_body[:incremental_sync] = incremental_sync if incremental_sync != SENTINEL
|
|
2238
2242
|
gmail_sync_input = _body
|
|
2239
2243
|
sync_gmail_with_http_info_impl(gmail_sync_input, extra)
|
|
2240
2244
|
end
|
|
@@ -2383,9 +2387,10 @@ module Carbon
|
|
|
2383
2387
|
# @param data_source_id [Integer]
|
|
2384
2388
|
# @param request_id [String]
|
|
2385
2389
|
# @param sync_attachments [Boolean]
|
|
2390
|
+
# @param incremental_sync [Boolean]
|
|
2386
2391
|
# @param body [OutlookSyncInput]
|
|
2387
2392
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
|
2388
|
-
def sync_outlook(filters:, tags: SENTINEL, folder: 'Inbox', chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, data_source_id: SENTINEL, request_id: SENTINEL, sync_attachments: false, extra: {})
|
|
2393
|
+
def sync_outlook(filters:, tags: SENTINEL, folder: 'Inbox', chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, data_source_id: SENTINEL, request_id: SENTINEL, sync_attachments: false, incremental_sync: false, extra: {})
|
|
2389
2394
|
_body = {}
|
|
2390
2395
|
_body[:tags] = tags if tags != SENTINEL
|
|
2391
2396
|
_body[:folder] = folder if folder != SENTINEL
|
|
@@ -2399,6 +2404,7 @@ module Carbon
|
|
|
2399
2404
|
_body[:data_source_id] = data_source_id if data_source_id != SENTINEL
|
|
2400
2405
|
_body[:request_id] = request_id if request_id != SENTINEL
|
|
2401
2406
|
_body[:sync_attachments] = sync_attachments if sync_attachments != SENTINEL
|
|
2407
|
+
_body[:incremental_sync] = incremental_sync if incremental_sync != SENTINEL
|
|
2402
2408
|
outlook_sync_input = _body
|
|
2403
2409
|
api_response = sync_outlook_with_http_info_impl(outlook_sync_input, extra)
|
|
2404
2410
|
api_response.data
|
|
@@ -2479,9 +2485,10 @@ module Carbon
|
|
|
2479
2485
|
# @param data_source_id [Integer]
|
|
2480
2486
|
# @param request_id [String]
|
|
2481
2487
|
# @param sync_attachments [Boolean]
|
|
2488
|
+
# @param incremental_sync [Boolean]
|
|
2482
2489
|
# @param body [OutlookSyncInput]
|
|
2483
2490
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
|
2484
|
-
def sync_outlook_with_http_info(filters:, tags: SENTINEL, folder: 'Inbox', chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, data_source_id: SENTINEL, request_id: SENTINEL, sync_attachments: false, extra: {})
|
|
2491
|
+
def sync_outlook_with_http_info(filters:, tags: SENTINEL, folder: 'Inbox', chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, data_source_id: SENTINEL, request_id: SENTINEL, sync_attachments: false, incremental_sync: false, extra: {})
|
|
2485
2492
|
_body = {}
|
|
2486
2493
|
_body[:tags] = tags if tags != SENTINEL
|
|
2487
2494
|
_body[:folder] = folder if folder != SENTINEL
|
|
@@ -2495,6 +2502,7 @@ module Carbon
|
|
|
2495
2502
|
_body[:data_source_id] = data_source_id if data_source_id != SENTINEL
|
|
2496
2503
|
_body[:request_id] = request_id if request_id != SENTINEL
|
|
2497
2504
|
_body[:sync_attachments] = sync_attachments if sync_attachments != SENTINEL
|
|
2505
|
+
_body[:incremental_sync] = incremental_sync if incremental_sync != SENTINEL
|
|
2498
2506
|
outlook_sync_input = _body
|
|
2499
2507
|
sync_outlook_with_http_info_impl(outlook_sync_input, extra)
|
|
2500
2508
|
end
|
|
@@ -33,6 +33,8 @@ module Carbon
|
|
|
33
33
|
|
|
34
34
|
attr_accessor :sync_attachments
|
|
35
35
|
|
|
36
|
+
attr_accessor :incremental_sync
|
|
37
|
+
|
|
36
38
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
37
39
|
def self.attribute_map
|
|
38
40
|
{
|
|
@@ -46,7 +48,8 @@ module Carbon
|
|
|
46
48
|
:'prepend_filename_to_chunks' => :'prepend_filename_to_chunks',
|
|
47
49
|
:'data_source_id' => :'data_source_id',
|
|
48
50
|
:'request_id' => :'request_id',
|
|
49
|
-
:'sync_attachments' => :'sync_attachments'
|
|
51
|
+
:'sync_attachments' => :'sync_attachments',
|
|
52
|
+
:'incremental_sync' => :'incremental_sync'
|
|
50
53
|
}
|
|
51
54
|
end
|
|
52
55
|
|
|
@@ -68,7 +71,8 @@ module Carbon
|
|
|
68
71
|
:'prepend_filename_to_chunks' => :'Boolean',
|
|
69
72
|
:'data_source_id' => :'Integer',
|
|
70
73
|
:'request_id' => :'String',
|
|
71
|
-
:'sync_attachments' => :'Boolean'
|
|
74
|
+
:'sync_attachments' => :'Boolean',
|
|
75
|
+
:'incremental_sync' => :'Boolean'
|
|
72
76
|
}
|
|
73
77
|
end
|
|
74
78
|
|
|
@@ -83,7 +87,7 @@ module Carbon
|
|
|
83
87
|
:'prepend_filename_to_chunks',
|
|
84
88
|
:'data_source_id',
|
|
85
89
|
:'request_id',
|
|
86
|
-
:'sync_attachments'
|
|
90
|
+
:'sync_attachments',
|
|
87
91
|
])
|
|
88
92
|
end
|
|
89
93
|
|
|
@@ -159,6 +163,12 @@ module Carbon
|
|
|
159
163
|
else
|
|
160
164
|
self.sync_attachments = false
|
|
161
165
|
end
|
|
166
|
+
|
|
167
|
+
if attributes.key?(:'incremental_sync')
|
|
168
|
+
self.incremental_sync = attributes[:'incremental_sync']
|
|
169
|
+
else
|
|
170
|
+
self.incremental_sync = false
|
|
171
|
+
end
|
|
162
172
|
end
|
|
163
173
|
|
|
164
174
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -194,7 +204,8 @@ module Carbon
|
|
|
194
204
|
prepend_filename_to_chunks == o.prepend_filename_to_chunks &&
|
|
195
205
|
data_source_id == o.data_source_id &&
|
|
196
206
|
request_id == o.request_id &&
|
|
197
|
-
sync_attachments == o.sync_attachments
|
|
207
|
+
sync_attachments == o.sync_attachments &&
|
|
208
|
+
incremental_sync == o.incremental_sync
|
|
198
209
|
end
|
|
199
210
|
|
|
200
211
|
# @see the `==` method
|
|
@@ -206,7 +217,7 @@ module Carbon
|
|
|
206
217
|
# Calculates hash code according to all attributes.
|
|
207
218
|
# @return [Integer] Hash code
|
|
208
219
|
def hash
|
|
209
|
-
[tags, filters, chunk_size, chunk_overlap, skip_embedding_generation, embedding_model, generate_sparse_vectors, prepend_filename_to_chunks, data_source_id, request_id, sync_attachments].hash
|
|
220
|
+
[tags, filters, chunk_size, chunk_overlap, skip_embedding_generation, embedding_model, generate_sparse_vectors, prepend_filename_to_chunks, data_source_id, request_id, sync_attachments, incremental_sync].hash
|
|
210
221
|
end
|
|
211
222
|
|
|
212
223
|
# Builds the object from hash
|
|
@@ -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: SHAREPOINT, DROPBOX, BOX,
|
|
64
|
+
# Enable integration's file picker for sources that support it. Supported sources: SHAREPOINT, DROPBOX, BOX, GOOGLE_DRIVE, ONEDRIVE
|
|
65
65
|
attr_accessor :enable_file_picker
|
|
66
66
|
|
|
67
67
|
# Enabling this flag will fetch all available content from the source to be listed via list items endpoint
|
|
@@ -279,7 +279,7 @@ module Carbon
|
|
|
279
279
|
if attributes.key?(:'request_id')
|
|
280
280
|
self.request_id = attributes[:'request_id']
|
|
281
281
|
else
|
|
282
|
-
self.request_id = '
|
|
282
|
+
self.request_id = 'a0b57844-5937-42ef-a161-2515fc4f16df'
|
|
283
283
|
end
|
|
284
284
|
|
|
285
285
|
if attributes.key?(:'use_ocr')
|
|
@@ -35,6 +35,8 @@ module Carbon
|
|
|
35
35
|
|
|
36
36
|
attr_accessor :sync_attachments
|
|
37
37
|
|
|
38
|
+
attr_accessor :incremental_sync
|
|
39
|
+
|
|
38
40
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
39
41
|
def self.attribute_map
|
|
40
42
|
{
|
|
@@ -49,7 +51,8 @@ module Carbon
|
|
|
49
51
|
:'prepend_filename_to_chunks' => :'prepend_filename_to_chunks',
|
|
50
52
|
:'data_source_id' => :'data_source_id',
|
|
51
53
|
:'request_id' => :'request_id',
|
|
52
|
-
:'sync_attachments' => :'sync_attachments'
|
|
54
|
+
:'sync_attachments' => :'sync_attachments',
|
|
55
|
+
:'incremental_sync' => :'incremental_sync'
|
|
53
56
|
}
|
|
54
57
|
end
|
|
55
58
|
|
|
@@ -72,7 +75,8 @@ module Carbon
|
|
|
72
75
|
:'prepend_filename_to_chunks' => :'Boolean',
|
|
73
76
|
:'data_source_id' => :'Integer',
|
|
74
77
|
:'request_id' => :'String',
|
|
75
|
-
:'sync_attachments' => :'Boolean'
|
|
78
|
+
:'sync_attachments' => :'Boolean',
|
|
79
|
+
:'incremental_sync' => :'Boolean'
|
|
76
80
|
}
|
|
77
81
|
end
|
|
78
82
|
|
|
@@ -88,7 +92,7 @@ module Carbon
|
|
|
88
92
|
:'prepend_filename_to_chunks',
|
|
89
93
|
:'data_source_id',
|
|
90
94
|
:'request_id',
|
|
91
|
-
:'sync_attachments'
|
|
95
|
+
:'sync_attachments',
|
|
92
96
|
])
|
|
93
97
|
end
|
|
94
98
|
|
|
@@ -170,6 +174,12 @@ module Carbon
|
|
|
170
174
|
else
|
|
171
175
|
self.sync_attachments = false
|
|
172
176
|
end
|
|
177
|
+
|
|
178
|
+
if attributes.key?(:'incremental_sync')
|
|
179
|
+
self.incremental_sync = attributes[:'incremental_sync']
|
|
180
|
+
else
|
|
181
|
+
self.incremental_sync = false
|
|
182
|
+
end
|
|
173
183
|
end
|
|
174
184
|
|
|
175
185
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -206,7 +216,8 @@ module Carbon
|
|
|
206
216
|
prepend_filename_to_chunks == o.prepend_filename_to_chunks &&
|
|
207
217
|
data_source_id == o.data_source_id &&
|
|
208
218
|
request_id == o.request_id &&
|
|
209
|
-
sync_attachments == o.sync_attachments
|
|
219
|
+
sync_attachments == o.sync_attachments &&
|
|
220
|
+
incremental_sync == o.incremental_sync
|
|
210
221
|
end
|
|
211
222
|
|
|
212
223
|
# @see the `==` method
|
|
@@ -218,7 +229,7 @@ module Carbon
|
|
|
218
229
|
# Calculates hash code according to all attributes.
|
|
219
230
|
# @return [Integer] Hash code
|
|
220
231
|
def hash
|
|
221
|
-
[tags, folder, filters, chunk_size, chunk_overlap, skip_embedding_generation, embedding_model, generate_sparse_vectors, prepend_filename_to_chunks, data_source_id, request_id, sync_attachments].hash
|
|
232
|
+
[tags, folder, filters, chunk_size, chunk_overlap, skip_embedding_generation, embedding_model, generate_sparse_vectors, prepend_filename_to_chunks, data_source_id, request_id, sync_attachments, incremental_sync].hash
|
|
222
233
|
end
|
|
223
234
|
|
|
224
235
|
# Builds the object from hash
|
|
@@ -187,7 +187,7 @@ module Carbon
|
|
|
187
187
|
if attributes.key?(:'request_id')
|
|
188
188
|
self.request_id = attributes[:'request_id']
|
|
189
189
|
else
|
|
190
|
-
self.request_id = '
|
|
190
|
+
self.request_id = '5cb51bcc-08e9-4e31-9784-0005b5390cb6'
|
|
191
191
|
end
|
|
192
192
|
|
|
193
193
|
if attributes.key?(:'use_ocr')
|
|
@@ -182,7 +182,7 @@ module Carbon
|
|
|
182
182
|
if attributes.key?(:'request_id')
|
|
183
183
|
self.request_id = attributes[:'request_id']
|
|
184
184
|
else
|
|
185
|
-
self.request_id = '
|
|
185
|
+
self.request_id = 'ca195b1c-0656-4db7-96fc-211554e9827b'
|
|
186
186
|
end
|
|
187
187
|
|
|
188
188
|
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.33
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Konfig
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-05-
|
|
11
|
+
date: 2024-05-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|