carbon_ruby_sdk 0.1.33 → 0.1.34
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +37 -13
- data/lib/carbon_ruby_sdk/api/integrations_api.rb +34 -22
- data/lib/carbon_ruby_sdk/models/data_source_type.rb +2 -1
- data/lib/carbon_ruby_sdk/models/data_source_type_nullable.rb +2 -1
- data/lib/carbon_ruby_sdk/models/fetch_urls_response.rb +14 -4
- data/lib/carbon_ruby_sdk/models/{helpdesk_file_sync_config.rb → file_sync_config.rb} +28 -14
- data/lib/carbon_ruby_sdk/models/{helpdesk_file_sync_config_nullable.rb → file_sync_config_nullable.rb} +28 -14
- data/lib/carbon_ruby_sdk/models/fresh_desk_connect_request.rb +1 -1
- data/lib/carbon_ruby_sdk/models/gmail_sync_input.rb +11 -1
- data/lib/carbon_ruby_sdk/models/o_auth_url_request.rb +3 -3
- data/lib/carbon_ruby_sdk/models/outlook_sync_input.rb +11 -1
- data/lib/carbon_ruby_sdk/models/s3_file_sync_input.rb +15 -5
- data/lib/carbon_ruby_sdk/models/sync_files_request.rb +2 -2
- data/lib/carbon_ruby_sdk/models/sync_options.rb +2 -2
- data/lib/carbon_ruby_sdk/models/user_file.rb +15 -11
- data/lib/carbon_ruby_sdk/version.rb +1 -1
- data/lib/carbon_ruby_sdk.rb +2 -4
- data/spec/models/fetch_urls_response_spec.rb +6 -0
- data/spec/models/file_sync_config_nullable_spec.rb +40 -0
- data/spec/models/file_sync_config_spec.rb +40 -0
- data/spec/models/gmail_sync_input_spec.rb +6 -0
- data/spec/models/outlook_sync_input_spec.rb +6 -0
- data/spec/models/s3_file_sync_input_spec.rb +6 -0
- data/spec/models/user_file_spec.rb +2 -2
- metadata +8 -14
- data/lib/carbon_ruby_sdk/models/helpdesk_global_file_sync_config.rb +0 -217
- data/lib/carbon_ruby_sdk/models/helpdesk_global_file_sync_config_nullable.rb +0 -218
- data/spec/models/helpdesk_file_sync_config_nullable_spec.rb +0 -34
- data/spec/models/helpdesk_file_sync_config_spec.rb +0 -34
- data/spec/models/helpdesk_global_file_sync_config_nullable_spec.rb +0 -28
- data/spec/models/helpdesk_global_file_sync_config_spec.rb +0 -28
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4c10f0e766b6ff44d82639898430c9f30b04e9a79d20c7426b788854e8e8b5cb
|
4
|
+
data.tar.gz: 4ffdf4710ddf4ffda807f0cdc4b8952583a71e1c7e4004c9f981cead2c3eda1b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8043fcb691c8324d571ee0323a3a7a06597a2f1807db3565e0895a1e5b3a175ed8a12027f1bc9622e046c47bac83ff345cecb24baf453bbb187deaa1443fa776
|
7
|
+
data.tar.gz: ded8a325ac5d7eb6ce81d3365386ec69d255ee64537c741602b49fb81f95f581d37a681dd1242afd9a9f400bc06be0b69b211455f7f79c57a47a924e8a1be023
|
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.1.
|
9
|
+
[![npm](https://img.shields.io/badge/gem-v0.1.34-blue)](https://rubygems.org/gems/carbon_ruby_sdk/versions/0.1.34)
|
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.34'
|
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" => "18ef9025-4c76-443c-a115-ba77b17afd8b",
|
1212
1212
|
"enable_file_picker" => true,
|
1213
1213
|
"sync_source_items" => true,
|
1214
1214
|
"incremental_sync" => false,
|
@@ -1259,8 +1259,9 @@ result = carbon.integrations.connect_freshdesk(
|
|
1259
1259
|
request_id: "string_example",
|
1260
1260
|
sync_source_items: true,
|
1261
1261
|
file_sync_config: {
|
1262
|
-
"
|
1262
|
+
"auto_synced_source_types" => ["ARTICLE"],
|
1263
1263
|
"sync_attachments" => false,
|
1264
|
+
"detect_audio_language" => false,
|
1264
1265
|
},
|
1265
1266
|
)
|
1266
1267
|
p result
|
@@ -1283,7 +1284,7 @@ p result
|
|
1283
1284
|
Enabling this flag will fetch all available content from the source to be listed
|
1284
1285
|
via list items endpoint
|
1285
1286
|
|
1286
|
-
##### file_sync_config: [`
|
1287
|
+
##### file_sync_config: [`FileSyncConfigNullable`](./lib/carbon_ruby_sdk/models/file_sync_config_nullable.rb)<a id="file_sync_config-filesyncconfignullablelibcarbon_ruby_sdkmodelsfile_sync_config_nullablerb"></a>
|
1287
1288
|
#### 🔄 Return<a id="🔄-return"></a>
|
1288
1289
|
|
1289
1290
|
[GenericSuccessResponse](./lib/carbon_ruby_sdk/models/generic_success_response.rb)
|
@@ -1426,15 +1427,16 @@ result = carbon.integrations.get_oauth_url(
|
|
1426
1427
|
set_page_as_boundary: false,
|
1427
1428
|
data_source_id: 1,
|
1428
1429
|
connecting_new_account: false,
|
1429
|
-
request_id: "
|
1430
|
+
request_id: "eb3e536e-fa3e-4f8e-9a22-25f70393e759",
|
1430
1431
|
use_ocr: false,
|
1431
1432
|
parse_pdf_tables_with_ocr: false,
|
1432
1433
|
enable_file_picker: true,
|
1433
1434
|
sync_source_items: true,
|
1434
1435
|
incremental_sync: false,
|
1435
1436
|
file_sync_config: {
|
1436
|
-
"
|
1437
|
+
"auto_synced_source_types" => ["ARTICLE"],
|
1437
1438
|
"sync_attachments" => false,
|
1439
|
+
"detect_audio_language" => false,
|
1438
1440
|
},
|
1439
1441
|
)
|
1440
1442
|
p result
|
@@ -1485,7 +1487,7 @@ Enable OCR for files that support it. Supported formats: pdf
|
|
1485
1487
|
##### parse_pdf_tables_with_ocr: `Boolean`<a id="parse_pdf_tables_with_ocr-boolean"></a>
|
1486
1488
|
##### enable_file_picker: `Boolean`<a id="enable_file_picker-boolean"></a>
|
1487
1489
|
Enable integration's file picker for sources that support it. Supported sources:
|
1488
|
-
|
1490
|
+
ONEDRIVE, GOOGLE_DRIVE, DROPBOX, SHAREPOINT, BOX
|
1489
1491
|
|
1490
1492
|
##### sync_source_items: `Boolean`<a id="sync_source_items-boolean"></a>
|
1491
1493
|
Enabling this flag will fetch all available content from the source to be listed
|
@@ -1496,7 +1498,7 @@ Only sync files if they have not already been synced or if the embedding
|
|
1496
1498
|
properties have changed. This flag is currently supported by ONEDRIVE,
|
1497
1499
|
GOOGLE_DRIVE, BOX, DROPBOX. It will be ignored for other data sources.
|
1498
1500
|
|
1499
|
-
##### file_sync_config: [`
|
1501
|
+
##### file_sync_config: [`FileSyncConfigNullable`](./lib/carbon_ruby_sdk/models/file_sync_config_nullable.rb)<a id="file_sync_config-filesyncconfignullablelibcarbon_ruby_sdkmodelsfile_sync_config_nullablerb"></a>
|
1500
1502
|
#### 🔄 Return<a id="🔄-return"></a>
|
1501
1503
|
|
1502
1504
|
[OuthURLResponse](./lib/carbon_ruby_sdk/models/outh_url_response.rb)
|
@@ -1747,12 +1749,14 @@ result = carbon.integrations.sync_confluence(
|
|
1747
1749
|
prepend_filename_to_chunks: false,
|
1748
1750
|
max_items_per_chunk: 1,
|
1749
1751
|
set_page_as_boundary: false,
|
1750
|
-
request_id: "
|
1752
|
+
request_id: "27036d05-9737-4197-b0c6-e9fb9f60f976",
|
1751
1753
|
use_ocr: false,
|
1752
1754
|
parse_pdf_tables_with_ocr: false,
|
1753
1755
|
incremental_sync: false,
|
1754
1756
|
file_sync_config: {
|
1757
|
+
"auto_synced_source_types" => ["ARTICLE"],
|
1755
1758
|
"sync_attachments" => false,
|
1759
|
+
"detect_audio_language" => false,
|
1756
1760
|
},
|
1757
1761
|
)
|
1758
1762
|
p result
|
@@ -1781,7 +1785,7 @@ Only sync files if they have not already been synced or if the embedding
|
|
1781
1785
|
properties have changed. This flag is currently supported by ONEDRIVE,
|
1782
1786
|
GOOGLE_DRIVE, BOX, DROPBOX. It will be ignored for other data sources.
|
1783
1787
|
|
1784
|
-
##### file_sync_config: [`
|
1788
|
+
##### file_sync_config: [`FileSyncConfigNullable`](./lib/carbon_ruby_sdk/models/file_sync_config_nullable.rb)<a id="file_sync_config-filesyncconfignullablelibcarbon_ruby_sdkmodelsfile_sync_config_nullablerb"></a>
|
1785
1789
|
#### 🔄 Return<a id="🔄-return"></a>
|
1786
1790
|
|
1787
1791
|
[GenericSuccessResponse](./lib/carbon_ruby_sdk/models/generic_success_response.rb)
|
@@ -1848,12 +1852,14 @@ result = carbon.integrations.sync_files(
|
|
1848
1852
|
prepend_filename_to_chunks: false,
|
1849
1853
|
max_items_per_chunk: 1,
|
1850
1854
|
set_page_as_boundary: false,
|
1851
|
-
request_id: "
|
1855
|
+
request_id: "27036d05-9737-4197-b0c6-e9fb9f60f976",
|
1852
1856
|
use_ocr: false,
|
1853
1857
|
parse_pdf_tables_with_ocr: false,
|
1854
1858
|
incremental_sync: false,
|
1855
1859
|
file_sync_config: {
|
1860
|
+
"auto_synced_source_types" => ["ARTICLE"],
|
1856
1861
|
"sync_attachments" => false,
|
1862
|
+
"detect_audio_language" => false,
|
1857
1863
|
},
|
1858
1864
|
)
|
1859
1865
|
p result
|
@@ -1882,7 +1888,7 @@ Only sync files if they have not already been synced or if the embedding
|
|
1882
1888
|
properties have changed. This flag is currently supported by ONEDRIVE,
|
1883
1889
|
GOOGLE_DRIVE, BOX, DROPBOX. It will be ignored for other data sources.
|
1884
1890
|
|
1885
|
-
##### file_sync_config: [`
|
1891
|
+
##### file_sync_config: [`FileSyncConfigNullable`](./lib/carbon_ruby_sdk/models/file_sync_config_nullable.rb)<a id="file_sync_config-filesyncconfignullablelibcarbon_ruby_sdkmodelsfile_sync_config_nullablerb"></a>
|
1886
1892
|
#### 🔄 Return<a id="🔄-return"></a>
|
1887
1893
|
|
1888
1894
|
[GenericSuccessResponse](./lib/carbon_ruby_sdk/models/generic_success_response.rb)
|
@@ -2048,6 +2054,11 @@ result = carbon.integrations.sync_gmail(
|
|
2048
2054
|
data_source_id: 1,
|
2049
2055
|
request_id: "string_example",
|
2050
2056
|
sync_attachments: false,
|
2057
|
+
file_sync_config: {
|
2058
|
+
"auto_synced_source_types" => ["ARTICLE"],
|
2059
|
+
"sync_attachments" => false,
|
2060
|
+
"detect_audio_language" => false,
|
2061
|
+
},
|
2051
2062
|
incremental_sync: false,
|
2052
2063
|
)
|
2053
2064
|
p result
|
@@ -2066,6 +2077,7 @@ p result
|
|
2066
2077
|
##### data_source_id: `Integer`<a id="data_source_id-integer"></a>
|
2067
2078
|
##### request_id: `String`<a id="request_id-string"></a>
|
2068
2079
|
##### sync_attachments: `Boolean`<a id="sync_attachments-boolean"></a>
|
2080
|
+
##### file_sync_config: [`FileSyncConfigNullable`](./lib/carbon_ruby_sdk/models/file_sync_config_nullable.rb)<a id="file_sync_config-filesyncconfignullablelibcarbon_ruby_sdkmodelsfile_sync_config_nullablerb"></a>
|
2069
2081
|
##### incremental_sync: `Boolean`<a id="incremental_sync-boolean"></a>
|
2070
2082
|
#### 🔄 Return<a id="🔄-return"></a>
|
2071
2083
|
|
@@ -2159,6 +2171,11 @@ result = carbon.integrations.sync_outlook(
|
|
2159
2171
|
data_source_id: 1,
|
2160
2172
|
request_id: "string_example",
|
2161
2173
|
sync_attachments: false,
|
2174
|
+
file_sync_config: {
|
2175
|
+
"auto_synced_source_types" => ["ARTICLE"],
|
2176
|
+
"sync_attachments" => false,
|
2177
|
+
"detect_audio_language" => false,
|
2178
|
+
},
|
2162
2179
|
incremental_sync: false,
|
2163
2180
|
)
|
2164
2181
|
p result
|
@@ -2178,6 +2195,7 @@ p result
|
|
2178
2195
|
##### data_source_id: `Integer`<a id="data_source_id-integer"></a>
|
2179
2196
|
##### request_id: `String`<a id="request_id-string"></a>
|
2180
2197
|
##### sync_attachments: `Boolean`<a id="sync_attachments-boolean"></a>
|
2198
|
+
##### file_sync_config: [`FileSyncConfigNullable`](./lib/carbon_ruby_sdk/models/file_sync_config_nullable.rb)<a id="file_sync_config-filesyncconfignullablelibcarbon_ruby_sdkmodelsfile_sync_config_nullablerb"></a>
|
2181
2199
|
##### incremental_sync: `Boolean`<a id="incremental_sync-boolean"></a>
|
2182
2200
|
#### 🔄 Return<a id="🔄-return"></a>
|
2183
2201
|
|
@@ -2295,6 +2313,11 @@ result = carbon.integrations.sync_s3_files(
|
|
2295
2313
|
request_id: "string_example",
|
2296
2314
|
use_ocr: false,
|
2297
2315
|
parse_pdf_tables_with_ocr: false,
|
2316
|
+
file_sync_config: {
|
2317
|
+
"auto_synced_source_types" => ["ARTICLE"],
|
2318
|
+
"sync_attachments" => false,
|
2319
|
+
"detect_audio_language" => false,
|
2320
|
+
},
|
2298
2321
|
)
|
2299
2322
|
p result
|
2300
2323
|
```
|
@@ -2317,6 +2340,7 @@ Number of objects per chunk. For csv, tsv, xlsx, and json files only.
|
|
2317
2340
|
##### request_id: `String`<a id="request_id-string"></a>
|
2318
2341
|
##### use_ocr: `Boolean`<a id="use_ocr-boolean"></a>
|
2319
2342
|
##### parse_pdf_tables_with_ocr: `Boolean`<a id="parse_pdf_tables_with_ocr-boolean"></a>
|
2343
|
+
##### file_sync_config: [`FileSyncConfigNullable`](./lib/carbon_ruby_sdk/models/file_sync_config_nullable.rb)<a id="file_sync_config-filesyncconfignullablelibcarbon_ruby_sdkmodelsfile_sync_config_nullablerb"></a>
|
2320
2344
|
#### 🔄 Return<a id="🔄-return"></a>
|
2321
2345
|
|
2322
2346
|
[GenericSuccessResponse](./lib/carbon_ruby_sdk/models/generic_success_response.rb)
|
@@ -132,7 +132,7 @@ module Carbon
|
|
132
132
|
# @param sync_files_on_connection [Boolean]
|
133
133
|
# @param request_id [String]
|
134
134
|
# @param sync_source_items [Boolean] Enabling this flag will fetch all available content from the source to be listed via list items endpoint
|
135
|
-
# @param file_sync_config [
|
135
|
+
# @param file_sync_config [FileSyncConfigNullable]
|
136
136
|
# @param body [FreshDeskConnectRequest]
|
137
137
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
138
138
|
def connect_freshdesk(domain:, api_key:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, sync_files_on_connection: true, request_id: SENTINEL, sync_source_items: true, file_sync_config: SENTINEL, extra: {})
|
@@ -175,7 +175,7 @@ module Carbon
|
|
175
175
|
# @param sync_files_on_connection [Boolean]
|
176
176
|
# @param request_id [String]
|
177
177
|
# @param sync_source_items [Boolean] Enabling this flag will fetch all available content from the source to be listed via list items endpoint
|
178
|
-
# @param file_sync_config [
|
178
|
+
# @param file_sync_config [FileSyncConfigNullable]
|
179
179
|
# @param body [FreshDeskConnectRequest]
|
180
180
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
181
181
|
def connect_freshdesk_with_http_info(domain:, api_key:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, sync_files_on_connection: true, request_id: SENTINEL, sync_source_items: true, file_sync_config: SENTINEL, extra: {})
|
@@ -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:
|
564
|
+
# @param enable_file_picker [Boolean] Enable integration's file picker for sources that support it. Supported sources: ONEDRIVE, GOOGLE_DRIVE, DROPBOX, SHAREPOINT, BOX
|
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
|
-
# @param file_sync_config [
|
567
|
+
# @param file_sync_config [FileSyncConfigNullable]
|
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: 'eb3e536e-fa3e-4f8e-9a22-25f70393e759', 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:
|
632
|
+
# @param enable_file_picker [Boolean] Enable integration's file picker for sources that support it. Supported sources: ONEDRIVE, GOOGLE_DRIVE, DROPBOX, SHAREPOINT, BOX
|
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
|
-
# @param file_sync_config [
|
635
|
+
# @param file_sync_config [FileSyncConfigNullable]
|
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: 'eb3e536e-fa3e-4f8e-9a22-25f70393e759', 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
|
@@ -1428,10 +1428,10 @@ module Carbon
|
|
1428
1428
|
# @param use_ocr [Boolean]
|
1429
1429
|
# @param parse_pdf_tables_with_ocr [Boolean]
|
1430
1430
|
# @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.
|
1431
|
-
# @param file_sync_config [
|
1431
|
+
# @param file_sync_config [FileSyncConfigNullable]
|
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: '27036d05-9737-4197-b0c6-e9fb9f60f976', 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
|
@@ -1476,10 +1476,10 @@ module Carbon
|
|
1476
1476
|
# @param use_ocr [Boolean]
|
1477
1477
|
# @param parse_pdf_tables_with_ocr [Boolean]
|
1478
1478
|
# @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.
|
1479
|
-
# @param file_sync_config [
|
1479
|
+
# @param file_sync_config [FileSyncConfigNullable]
|
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: '27036d05-9737-4197-b0c6-e9fb9f60f976', 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
|
@@ -1684,10 +1684,10 @@ module Carbon
|
|
1684
1684
|
# @param use_ocr [Boolean]
|
1685
1685
|
# @param parse_pdf_tables_with_ocr [Boolean]
|
1686
1686
|
# @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.
|
1687
|
-
# @param file_sync_config [
|
1687
|
+
# @param file_sync_config [FileSyncConfigNullable]
|
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: '27036d05-9737-4197-b0c6-e9fb9f60f976', 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
|
@@ -1732,10 +1732,10 @@ module Carbon
|
|
1732
1732
|
# @param use_ocr [Boolean]
|
1733
1733
|
# @param parse_pdf_tables_with_ocr [Boolean]
|
1734
1734
|
# @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.
|
1735
|
-
# @param file_sync_config [
|
1735
|
+
# @param file_sync_config [FileSyncConfigNullable]
|
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: '27036d05-9737-4197-b0c6-e9fb9f60f976', 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,10 +2136,11 @@ module Carbon
|
|
2136
2136
|
# @param data_source_id [Integer]
|
2137
2137
|
# @param request_id [String]
|
2138
2138
|
# @param sync_attachments [Boolean]
|
2139
|
+
# @param file_sync_config [FileSyncConfigNullable]
|
2139
2140
|
# @param incremental_sync [Boolean]
|
2140
2141
|
# @param body [GmailSyncInput]
|
2141
2142
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
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: {})
|
2143
|
+
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, file_sync_config: SENTINEL, incremental_sync: false, extra: {})
|
2143
2144
|
_body = {}
|
2144
2145
|
_body[:tags] = tags if tags != SENTINEL
|
2145
2146
|
_body[:filters] = filters if filters != SENTINEL
|
@@ -2152,6 +2153,7 @@ module Carbon
|
|
2152
2153
|
_body[:data_source_id] = data_source_id if data_source_id != SENTINEL
|
2153
2154
|
_body[:request_id] = request_id if request_id != SENTINEL
|
2154
2155
|
_body[:sync_attachments] = sync_attachments if sync_attachments != SENTINEL
|
2156
|
+
_body[:file_sync_config] = file_sync_config if file_sync_config != SENTINEL
|
2155
2157
|
_body[:incremental_sync] = incremental_sync if incremental_sync != SENTINEL
|
2156
2158
|
gmail_sync_input = _body
|
2157
2159
|
api_response = sync_gmail_with_http_info_impl(gmail_sync_input, extra)
|
@@ -2222,10 +2224,11 @@ module Carbon
|
|
2222
2224
|
# @param data_source_id [Integer]
|
2223
2225
|
# @param request_id [String]
|
2224
2226
|
# @param sync_attachments [Boolean]
|
2227
|
+
# @param file_sync_config [FileSyncConfigNullable]
|
2225
2228
|
# @param incremental_sync [Boolean]
|
2226
2229
|
# @param body [GmailSyncInput]
|
2227
2230
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
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: {})
|
2231
|
+
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, file_sync_config: SENTINEL, incremental_sync: false, extra: {})
|
2229
2232
|
_body = {}
|
2230
2233
|
_body[:tags] = tags if tags != SENTINEL
|
2231
2234
|
_body[:filters] = filters if filters != SENTINEL
|
@@ -2238,6 +2241,7 @@ module Carbon
|
|
2238
2241
|
_body[:data_source_id] = data_source_id if data_source_id != SENTINEL
|
2239
2242
|
_body[:request_id] = request_id if request_id != SENTINEL
|
2240
2243
|
_body[:sync_attachments] = sync_attachments if sync_attachments != SENTINEL
|
2244
|
+
_body[:file_sync_config] = file_sync_config if file_sync_config != SENTINEL
|
2241
2245
|
_body[:incremental_sync] = incremental_sync if incremental_sync != SENTINEL
|
2242
2246
|
gmail_sync_input = _body
|
2243
2247
|
sync_gmail_with_http_info_impl(gmail_sync_input, extra)
|
@@ -2387,10 +2391,11 @@ module Carbon
|
|
2387
2391
|
# @param data_source_id [Integer]
|
2388
2392
|
# @param request_id [String]
|
2389
2393
|
# @param sync_attachments [Boolean]
|
2394
|
+
# @param file_sync_config [FileSyncConfigNullable]
|
2390
2395
|
# @param incremental_sync [Boolean]
|
2391
2396
|
# @param body [OutlookSyncInput]
|
2392
2397
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
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: {})
|
2398
|
+
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, file_sync_config: SENTINEL, incremental_sync: false, extra: {})
|
2394
2399
|
_body = {}
|
2395
2400
|
_body[:tags] = tags if tags != SENTINEL
|
2396
2401
|
_body[:folder] = folder if folder != SENTINEL
|
@@ -2404,6 +2409,7 @@ module Carbon
|
|
2404
2409
|
_body[:data_source_id] = data_source_id if data_source_id != SENTINEL
|
2405
2410
|
_body[:request_id] = request_id if request_id != SENTINEL
|
2406
2411
|
_body[:sync_attachments] = sync_attachments if sync_attachments != SENTINEL
|
2412
|
+
_body[:file_sync_config] = file_sync_config if file_sync_config != SENTINEL
|
2407
2413
|
_body[:incremental_sync] = incremental_sync if incremental_sync != SENTINEL
|
2408
2414
|
outlook_sync_input = _body
|
2409
2415
|
api_response = sync_outlook_with_http_info_impl(outlook_sync_input, extra)
|
@@ -2485,10 +2491,11 @@ module Carbon
|
|
2485
2491
|
# @param data_source_id [Integer]
|
2486
2492
|
# @param request_id [String]
|
2487
2493
|
# @param sync_attachments [Boolean]
|
2494
|
+
# @param file_sync_config [FileSyncConfigNullable]
|
2488
2495
|
# @param incremental_sync [Boolean]
|
2489
2496
|
# @param body [OutlookSyncInput]
|
2490
2497
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
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: {})
|
2498
|
+
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, file_sync_config: SENTINEL, incremental_sync: false, extra: {})
|
2492
2499
|
_body = {}
|
2493
2500
|
_body[:tags] = tags if tags != SENTINEL
|
2494
2501
|
_body[:folder] = folder if folder != SENTINEL
|
@@ -2502,6 +2509,7 @@ module Carbon
|
|
2502
2509
|
_body[:data_source_id] = data_source_id if data_source_id != SENTINEL
|
2503
2510
|
_body[:request_id] = request_id if request_id != SENTINEL
|
2504
2511
|
_body[:sync_attachments] = sync_attachments if sync_attachments != SENTINEL
|
2512
|
+
_body[:file_sync_config] = file_sync_config if file_sync_config != SENTINEL
|
2505
2513
|
_body[:incremental_sync] = incremental_sync if incremental_sync != SENTINEL
|
2506
2514
|
outlook_sync_input = _body
|
2507
2515
|
sync_outlook_with_http_info_impl(outlook_sync_input, extra)
|
@@ -2826,9 +2834,10 @@ module Carbon
|
|
2826
2834
|
# @param request_id [String]
|
2827
2835
|
# @param use_ocr [Boolean]
|
2828
2836
|
# @param parse_pdf_tables_with_ocr [Boolean]
|
2837
|
+
# @param file_sync_config [FileSyncConfigNullable]
|
2829
2838
|
# @param body [S3FileSyncInput]
|
2830
2839
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
2831
|
-
def sync_s3_files(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, data_source_id: SENTINEL, request_id: SENTINEL, use_ocr: false, parse_pdf_tables_with_ocr: false, extra: {})
|
2840
|
+
def sync_s3_files(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, data_source_id: SENTINEL, request_id: SENTINEL, use_ocr: false, parse_pdf_tables_with_ocr: false, file_sync_config: SENTINEL, extra: {})
|
2832
2841
|
_body = {}
|
2833
2842
|
_body[:tags] = tags if tags != SENTINEL
|
2834
2843
|
_body[:ids] = ids if ids != SENTINEL
|
@@ -2844,6 +2853,7 @@ module Carbon
|
|
2844
2853
|
_body[:request_id] = request_id if request_id != SENTINEL
|
2845
2854
|
_body[:use_ocr] = use_ocr if use_ocr != SENTINEL
|
2846
2855
|
_body[:parse_pdf_tables_with_ocr] = parse_pdf_tables_with_ocr if parse_pdf_tables_with_ocr != SENTINEL
|
2856
|
+
_body[:file_sync_config] = file_sync_config if file_sync_config != SENTINEL
|
2847
2857
|
s3_file_sync_input = _body
|
2848
2858
|
api_response = sync_s3_files_with_http_info_impl(s3_file_sync_input, extra)
|
2849
2859
|
api_response.data
|
@@ -2869,9 +2879,10 @@ module Carbon
|
|
2869
2879
|
# @param request_id [String]
|
2870
2880
|
# @param use_ocr [Boolean]
|
2871
2881
|
# @param parse_pdf_tables_with_ocr [Boolean]
|
2882
|
+
# @param file_sync_config [FileSyncConfigNullable]
|
2872
2883
|
# @param body [S3FileSyncInput]
|
2873
2884
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
2874
|
-
def sync_s3_files_with_http_info(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, data_source_id: SENTINEL, request_id: SENTINEL, use_ocr: false, parse_pdf_tables_with_ocr: false, extra: {})
|
2885
|
+
def sync_s3_files_with_http_info(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, data_source_id: SENTINEL, request_id: SENTINEL, use_ocr: false, parse_pdf_tables_with_ocr: false, file_sync_config: SENTINEL, extra: {})
|
2875
2886
|
_body = {}
|
2876
2887
|
_body[:tags] = tags if tags != SENTINEL
|
2877
2888
|
_body[:ids] = ids if ids != SENTINEL
|
@@ -2887,6 +2898,7 @@ module Carbon
|
|
2887
2898
|
_body[:request_id] = request_id if request_id != SENTINEL
|
2888
2899
|
_body[:use_ocr] = use_ocr if use_ocr != SENTINEL
|
2889
2900
|
_body[:parse_pdf_tables_with_ocr] = parse_pdf_tables_with_ocr if parse_pdf_tables_with_ocr != SENTINEL
|
2901
|
+
_body[:file_sync_config] = file_sync_config if file_sync_config != SENTINEL
|
2890
2902
|
s3_file_sync_input = _body
|
2891
2903
|
sync_s3_files_with_http_info_impl(s3_file_sync_input, extra)
|
2892
2904
|
end
|
@@ -57,9 +57,10 @@ module Carbon
|
|
57
57
|
OGG = "OGG".freeze
|
58
58
|
OPUS = "OPUS".freeze
|
59
59
|
WEBM = "WEBM".freeze
|
60
|
+
MPEG = "MPEG".freeze
|
60
61
|
|
61
62
|
def self.all_vars
|
62
|
-
@all_vars ||= [GOOGLE_DRIVE, NOTION, NOTION_DATABASE, INTERCOM, DROPBOX, ONEDRIVE, SHAREPOINT, CONFLUENCE, BOX, ZENDESK, ZOTERO, S3, GMAIL, OUTLOOK, TEXT, CSV, TSV, PDF, DOCX, PPTX, XLSX, MD, RTF, JSON, HTML, RAW_TEXT, WEB_SCRAPE, RSS_FEED, FRESHDESK, GITBOOK, SALESFORCE, GITHUB, JPG, PNG, JPEG, MP3, MP4, MP2, AAC, WAV, FLAC, PCM, M4_A, OGG, OPUS, WEBM].freeze
|
63
|
+
@all_vars ||= [GOOGLE_DRIVE, NOTION, NOTION_DATABASE, INTERCOM, DROPBOX, ONEDRIVE, SHAREPOINT, CONFLUENCE, BOX, ZENDESK, ZOTERO, S3, GMAIL, OUTLOOK, TEXT, CSV, TSV, PDF, DOCX, PPTX, XLSX, MD, RTF, JSON, HTML, RAW_TEXT, WEB_SCRAPE, RSS_FEED, FRESHDESK, GITBOOK, SALESFORCE, GITHUB, JPG, PNG, JPEG, MP3, MP4, MP2, AAC, WAV, FLAC, PCM, M4_A, OGG, OPUS, WEBM, MPEG].freeze
|
63
64
|
end
|
64
65
|
|
65
66
|
# Builds the enum from string
|
@@ -57,9 +57,10 @@ module Carbon
|
|
57
57
|
OGG = "OGG".freeze
|
58
58
|
OPUS = "OPUS".freeze
|
59
59
|
WEBM = "WEBM".freeze
|
60
|
+
MPEG = "MPEG".freeze
|
60
61
|
|
61
62
|
def self.all_vars
|
62
|
-
@all_vars ||= [GOOGLE_DRIVE, NOTION, NOTION_DATABASE, INTERCOM, DROPBOX, ONEDRIVE, SHAREPOINT, CONFLUENCE, BOX, ZENDESK, ZOTERO, S3, GMAIL, OUTLOOK, TEXT, CSV, TSV, PDF, DOCX, PPTX, XLSX, MD, RTF, JSON, HTML, RAW_TEXT, WEB_SCRAPE, RSS_FEED, FRESHDESK, GITBOOK, SALESFORCE, GITHUB, JPG, PNG, JPEG, MP3, MP4, MP2, AAC, WAV, FLAC, PCM, M4_A, OGG, OPUS, WEBM].freeze
|
63
|
+
@all_vars ||= [GOOGLE_DRIVE, NOTION, NOTION_DATABASE, INTERCOM, DROPBOX, ONEDRIVE, SHAREPOINT, CONFLUENCE, BOX, ZENDESK, ZOTERO, S3, GMAIL, OUTLOOK, TEXT, CSV, TSV, PDF, DOCX, PPTX, XLSX, MD, RTF, JSON, HTML, RAW_TEXT, WEB_SCRAPE, RSS_FEED, FRESHDESK, GITBOOK, SALESFORCE, GITHUB, JPG, PNG, JPEG, MP3, MP4, MP2, AAC, WAV, FLAC, PCM, M4_A, OGG, OPUS, WEBM, MPEG].freeze
|
63
64
|
end
|
64
65
|
|
65
66
|
# Builds the enum from string
|
@@ -15,11 +15,14 @@ module Carbon
|
|
15
15
|
|
16
16
|
attr_accessor :html_content
|
17
17
|
|
18
|
+
attr_accessor :error_message
|
19
|
+
|
18
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
19
21
|
def self.attribute_map
|
20
22
|
{
|
21
23
|
:'urls' => :'urls',
|
22
|
-
:'html_content' => :'html_content'
|
24
|
+
:'html_content' => :'html_content',
|
25
|
+
:'error_message' => :'error_message'
|
23
26
|
}
|
24
27
|
end
|
25
28
|
|
@@ -32,13 +35,15 @@ module Carbon
|
|
32
35
|
def self.openapi_types
|
33
36
|
{
|
34
37
|
:'urls' => :'Array<String>',
|
35
|
-
:'html_content' => :'String'
|
38
|
+
:'html_content' => :'String',
|
39
|
+
:'error_message' => :'String'
|
36
40
|
}
|
37
41
|
end
|
38
42
|
|
39
43
|
# List of attributes with nullable: true
|
40
44
|
def self.openapi_nullable
|
41
45
|
Set.new([
|
46
|
+
:'error_message'
|
42
47
|
])
|
43
48
|
end
|
44
49
|
|
@@ -66,6 +71,10 @@ module Carbon
|
|
66
71
|
if attributes.key?(:'html_content')
|
67
72
|
self.html_content = attributes[:'html_content']
|
68
73
|
end
|
74
|
+
|
75
|
+
if attributes.key?(:'error_message')
|
76
|
+
self.error_message = attributes[:'error_message']
|
77
|
+
end
|
69
78
|
end
|
70
79
|
|
71
80
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -97,7 +106,8 @@ module Carbon
|
|
97
106
|
return true if self.equal?(o)
|
98
107
|
self.class == o.class &&
|
99
108
|
urls == o.urls &&
|
100
|
-
html_content == o.html_content
|
109
|
+
html_content == o.html_content &&
|
110
|
+
error_message == o.error_message
|
101
111
|
end
|
102
112
|
|
103
113
|
# @see the `==` method
|
@@ -109,7 +119,7 @@ module Carbon
|
|
109
119
|
# Calculates hash code according to all attributes.
|
110
120
|
# @return [Integer] Hash code
|
111
121
|
def hash
|
112
|
-
[urls, html_content].hash
|
122
|
+
[urls, html_content, error_message].hash
|
113
123
|
end
|
114
124
|
|
115
125
|
# Builds the object from hash
|
@@ -10,16 +10,22 @@ require 'date'
|
|
10
10
|
require 'time'
|
11
11
|
|
12
12
|
module Carbon
|
13
|
-
class
|
14
|
-
|
13
|
+
class FileSyncConfig
|
14
|
+
# File types to automatically sync when the data source connects. Only a subset of file types can be controlled. If not supported, then they will always be synced
|
15
|
+
attr_accessor :auto_synced_source_types
|
15
16
|
|
17
|
+
# Automatically sync attachments from files where supported. Currently applies to Helpdesk Tickets
|
16
18
|
attr_accessor :sync_attachments
|
17
19
|
|
20
|
+
# Detect audio language before transcription for audio files
|
21
|
+
attr_accessor :detect_audio_language
|
22
|
+
|
18
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
19
24
|
def self.attribute_map
|
20
25
|
{
|
21
|
-
:'
|
22
|
-
:'sync_attachments' => :'sync_attachments'
|
26
|
+
:'auto_synced_source_types' => :'auto_synced_source_types',
|
27
|
+
:'sync_attachments' => :'sync_attachments',
|
28
|
+
:'detect_audio_language' => :'detect_audio_language'
|
23
29
|
}
|
24
30
|
end
|
25
31
|
|
@@ -31,8 +37,9 @@ module Carbon
|
|
31
37
|
# Attribute type mapping.
|
32
38
|
def self.openapi_types
|
33
39
|
{
|
34
|
-
:'
|
35
|
-
:'sync_attachments' => :'Boolean'
|
40
|
+
:'auto_synced_source_types' => :'Array<HelpdeskFileTypes>',
|
41
|
+
:'sync_attachments' => :'Boolean',
|
42
|
+
:'detect_audio_language' => :'Boolean'
|
36
43
|
}
|
37
44
|
end
|
38
45
|
|
@@ -46,20 +53,20 @@ module Carbon
|
|
46
53
|
# @param [Hash] attributes Model attributes in the form of hash
|
47
54
|
def initialize(attributes = {})
|
48
55
|
if (!attributes.is_a?(Hash))
|
49
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Carbon::
|
56
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Carbon::FileSyncConfig` initialize method"
|
50
57
|
end
|
51
58
|
|
52
59
|
# check to see if the attribute exists and convert string to symbol for hash key
|
53
60
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
54
61
|
if (!self.class.attribute_map.key?(k.to_sym))
|
55
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Carbon::
|
62
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Carbon::FileSyncConfig`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
56
63
|
end
|
57
64
|
h[k.to_sym] = v
|
58
65
|
}
|
59
66
|
|
60
|
-
if attributes.key?(:'
|
61
|
-
if (value = attributes[:'
|
62
|
-
self.
|
67
|
+
if attributes.key?(:'auto_synced_source_types')
|
68
|
+
if (value = attributes[:'auto_synced_source_types']).is_a?(Array)
|
69
|
+
self.auto_synced_source_types = value
|
63
70
|
end
|
64
71
|
end
|
65
72
|
|
@@ -68,6 +75,12 @@ module Carbon
|
|
68
75
|
else
|
69
76
|
self.sync_attachments = false
|
70
77
|
end
|
78
|
+
|
79
|
+
if attributes.key?(:'detect_audio_language')
|
80
|
+
self.detect_audio_language = attributes[:'detect_audio_language']
|
81
|
+
else
|
82
|
+
self.detect_audio_language = false
|
83
|
+
end
|
71
84
|
end
|
72
85
|
|
73
86
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -88,8 +101,9 @@ module Carbon
|
|
88
101
|
def ==(o)
|
89
102
|
return true if self.equal?(o)
|
90
103
|
self.class == o.class &&
|
91
|
-
|
92
|
-
sync_attachments == o.sync_attachments
|
104
|
+
auto_synced_source_types == o.auto_synced_source_types &&
|
105
|
+
sync_attachments == o.sync_attachments &&
|
106
|
+
detect_audio_language == o.detect_audio_language
|
93
107
|
end
|
94
108
|
|
95
109
|
# @see the `==` method
|
@@ -101,7 +115,7 @@ module Carbon
|
|
101
115
|
# Calculates hash code according to all attributes.
|
102
116
|
# @return [Integer] Hash code
|
103
117
|
def hash
|
104
|
-
[
|
118
|
+
[auto_synced_source_types, sync_attachments, detect_audio_language].hash
|
105
119
|
end
|
106
120
|
|
107
121
|
# Builds the object from hash
|