carbon_ruby_sdk 0.1.33 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +70 -13
- data/lib/carbon_ruby_sdk/api/files_api.rb +9 -2
- data/lib/carbon_ruby_sdk/api/integrations_api.rb +34 -22
- data/lib/carbon_ruby_sdk/api/organizations_api.rb +83 -0
- data/lib/carbon_ruby_sdk/models/data_source_type.rb +9 -2
- data/lib/carbon_ruby_sdk/models/data_source_type_nullable.rb +9 -2
- data/lib/carbon_ruby_sdk/models/fetch_urls_response.rb +14 -4
- data/lib/carbon_ruby_sdk/models/file_content_types.rb +3 -1
- data/lib/carbon_ruby_sdk/models/file_content_types_nullable.rb +3 -1
- data/lib/carbon_ruby_sdk/models/file_formats.rb +9 -3
- data/lib/carbon_ruby_sdk/models/file_formats_nullable.rb +9 -3
- 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/organization_response.rb +39 -1
- 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/models/user_response.rb +85 -1
- data/lib/carbon_ruby_sdk/models/webhook.rb +25 -1
- data/lib/carbon_ruby_sdk/models/webhook_no_key.rb +25 -1
- data/lib/carbon_ruby_sdk/models/webhook_status.rb +36 -0
- data/lib/carbon_ruby_sdk/version.rb +1 -1
- data/lib/carbon_ruby_sdk.rb +3 -4
- data/spec/api/files_api_spec.rb +1 -0
- data/spec/api/organizations_api_spec.rb +11 -0
- 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/organization_response_spec.rb +18 -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
- data/spec/models/user_response_spec.rb +36 -0
- data/spec/models/webhook_no_key_spec.rb +12 -0
- data/spec/models/webhook_spec.rb +12 -0
- data/spec/models/webhook_status_spec.rb +22 -0
- metadata +11 -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: 1a619d3a93e65901cc357afe3bbdd8baa1aceda53801e87dd98f979b479dec97
|
4
|
+
data.tar.gz: e504c2c304dc8ab8c38a79cc36d0f31e332660a4fc3d0263c8f7f5dd1f175412
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40d6938fe03dea03f242e913c6061093a56e8929d938038482b1e2691206b71327b42c6ce2f5d11a4d612496c36bd7a5f08da953e3f2a25bf0e520a51bcf2e53
|
7
|
+
data.tar.gz: 3bd4f9fd552a4feb8cadd2854d9fa80b0ab3a9c9009857de079d196eacbd26e290ddc8444b362a0b783605d308780ca61574e808b2413ca27bcb96f19a21aedb
|
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
|
-
[![npm](https://img.shields.io/badge/gem-v0.
|
9
|
+
[![npm](https://img.shields.io/badge/gem-v0.2.0-blue)](https://rubygems.org/gems/carbon_ruby_sdk/versions/0.2.0)
|
10
10
|
|
11
11
|
</div>
|
12
12
|
|
@@ -63,6 +63,7 @@ Connect external data to LLMs, no matter the source.
|
|
63
63
|
* [`carbon.integrations.sync_s3_files`](#carbonintegrationssync_s3_files)
|
64
64
|
* [`carbon.organizations.get`](#carbonorganizationsget)
|
65
65
|
* [`carbon.organizations.update`](#carbonorganizationsupdate)
|
66
|
+
* [`carbon.organizations.update_stats`](#carbonorganizationsupdate_stats)
|
66
67
|
* [`carbon.users.delete`](#carbonusersdelete)
|
67
68
|
* [`carbon.users.get`](#carbonusersget)
|
68
69
|
* [`carbon.users.toggle_user_features`](#carbonuserstoggle_user_features)
|
@@ -84,7 +85,7 @@ Connect external data to LLMs, no matter the source.
|
|
84
85
|
Add to Gemfile:
|
85
86
|
|
86
87
|
```ruby
|
87
|
-
gem 'carbon_ruby_sdk', '~> 0.
|
88
|
+
gem 'carbon_ruby_sdk', '~> 0.2.0'
|
88
89
|
```
|
89
90
|
|
90
91
|
## Getting Started<a id="getting-started"></a>
|
@@ -1002,6 +1003,7 @@ result = carbon.files.upload(
|
|
1002
1003
|
max_items_per_chunk: 1,
|
1003
1004
|
parse_pdf_tables_with_ocr: false,
|
1004
1005
|
detect_audio_language: false,
|
1006
|
+
media_type: "TEXT",
|
1005
1007
|
)
|
1006
1008
|
p result
|
1007
1009
|
```
|
@@ -1047,6 +1049,10 @@ Whether to use rich table parsing when `use_ocr` is enabled.
|
|
1047
1049
|
##### detect_audio_language: `Boolean`<a id="detect_audio_language-boolean"></a>
|
1048
1050
|
Whether to automatically detect the language of the uploaded audio file.
|
1049
1051
|
|
1052
|
+
##### media_type: [`FileContentTypesNullable`](./lib/carbon_ruby_sdk/models/file_content_types_nullable.rb)<a id="media_type-filecontenttypesnullablelibcarbon_ruby_sdkmodelsfile_content_types_nullablerb"></a>
|
1053
|
+
The media type of the file. If not provided, it will be inferred from the file
|
1054
|
+
extension.
|
1055
|
+
|
1050
1056
|
#### 🔄 Return<a id="🔄-return"></a>
|
1051
1057
|
|
1052
1058
|
[UserFile](./lib/carbon_ruby_sdk/models/user_file.rb)
|
@@ -1208,7 +1214,7 @@ result = carbon.integrations.connect_data_source(
|
|
1208
1214
|
"prepend_filename_to_chunks" => false,
|
1209
1215
|
"sync_files_on_connection" => true,
|
1210
1216
|
"set_page_as_boundary" => false,
|
1211
|
-
"request_id" => "
|
1217
|
+
"request_id" => "f5552316-5da3-46e6-ad9f-2f94e30d02cd",
|
1212
1218
|
"enable_file_picker" => true,
|
1213
1219
|
"sync_source_items" => true,
|
1214
1220
|
"incremental_sync" => false,
|
@@ -1259,8 +1265,9 @@ result = carbon.integrations.connect_freshdesk(
|
|
1259
1265
|
request_id: "string_example",
|
1260
1266
|
sync_source_items: true,
|
1261
1267
|
file_sync_config: {
|
1262
|
-
"
|
1268
|
+
"auto_synced_source_types" => ["ARTICLE"],
|
1263
1269
|
"sync_attachments" => false,
|
1270
|
+
"detect_audio_language" => false,
|
1264
1271
|
},
|
1265
1272
|
)
|
1266
1273
|
p result
|
@@ -1283,7 +1290,7 @@ p result
|
|
1283
1290
|
Enabling this flag will fetch all available content from the source to be listed
|
1284
1291
|
via list items endpoint
|
1285
1292
|
|
1286
|
-
##### file_sync_config: [`
|
1293
|
+
##### 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
1294
|
#### 🔄 Return<a id="🔄-return"></a>
|
1288
1295
|
|
1289
1296
|
[GenericSuccessResponse](./lib/carbon_ruby_sdk/models/generic_success_response.rb)
|
@@ -1426,15 +1433,16 @@ result = carbon.integrations.get_oauth_url(
|
|
1426
1433
|
set_page_as_boundary: false,
|
1427
1434
|
data_source_id: 1,
|
1428
1435
|
connecting_new_account: false,
|
1429
|
-
request_id: "
|
1436
|
+
request_id: "273420dd-e05c-463f-a3cf-0ff28029639e",
|
1430
1437
|
use_ocr: false,
|
1431
1438
|
parse_pdf_tables_with_ocr: false,
|
1432
1439
|
enable_file_picker: true,
|
1433
1440
|
sync_source_items: true,
|
1434
1441
|
incremental_sync: false,
|
1435
1442
|
file_sync_config: {
|
1436
|
-
"
|
1443
|
+
"auto_synced_source_types" => ["ARTICLE"],
|
1437
1444
|
"sync_attachments" => false,
|
1445
|
+
"detect_audio_language" => false,
|
1438
1446
|
},
|
1439
1447
|
)
|
1440
1448
|
p result
|
@@ -1485,7 +1493,7 @@ Enable OCR for files that support it. Supported formats: pdf
|
|
1485
1493
|
##### parse_pdf_tables_with_ocr: `Boolean`<a id="parse_pdf_tables_with_ocr-boolean"></a>
|
1486
1494
|
##### enable_file_picker: `Boolean`<a id="enable_file_picker-boolean"></a>
|
1487
1495
|
Enable integration's file picker for sources that support it. Supported sources:
|
1488
|
-
SHAREPOINT, DROPBOX,
|
1496
|
+
SHAREPOINT, DROPBOX, GOOGLE_DRIVE, BOX, ONEDRIVE
|
1489
1497
|
|
1490
1498
|
##### sync_source_items: `Boolean`<a id="sync_source_items-boolean"></a>
|
1491
1499
|
Enabling this flag will fetch all available content from the source to be listed
|
@@ -1496,7 +1504,7 @@ Only sync files if they have not already been synced or if the embedding
|
|
1496
1504
|
properties have changed. This flag is currently supported by ONEDRIVE,
|
1497
1505
|
GOOGLE_DRIVE, BOX, DROPBOX. It will be ignored for other data sources.
|
1498
1506
|
|
1499
|
-
##### file_sync_config: [`
|
1507
|
+
##### 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
1508
|
#### 🔄 Return<a id="🔄-return"></a>
|
1501
1509
|
|
1502
1510
|
[OuthURLResponse](./lib/carbon_ruby_sdk/models/outh_url_response.rb)
|
@@ -1747,12 +1755,14 @@ result = carbon.integrations.sync_confluence(
|
|
1747
1755
|
prepend_filename_to_chunks: false,
|
1748
1756
|
max_items_per_chunk: 1,
|
1749
1757
|
set_page_as_boundary: false,
|
1750
|
-
request_id: "
|
1758
|
+
request_id: "2782cb96-1bf6-452c-a8d9-60c2378fd079",
|
1751
1759
|
use_ocr: false,
|
1752
1760
|
parse_pdf_tables_with_ocr: false,
|
1753
1761
|
incremental_sync: false,
|
1754
1762
|
file_sync_config: {
|
1763
|
+
"auto_synced_source_types" => ["ARTICLE"],
|
1755
1764
|
"sync_attachments" => false,
|
1765
|
+
"detect_audio_language" => false,
|
1756
1766
|
},
|
1757
1767
|
)
|
1758
1768
|
p result
|
@@ -1781,7 +1791,7 @@ Only sync files if they have not already been synced or if the embedding
|
|
1781
1791
|
properties have changed. This flag is currently supported by ONEDRIVE,
|
1782
1792
|
GOOGLE_DRIVE, BOX, DROPBOX. It will be ignored for other data sources.
|
1783
1793
|
|
1784
|
-
##### file_sync_config: [`
|
1794
|
+
##### 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
1795
|
#### 🔄 Return<a id="🔄-return"></a>
|
1786
1796
|
|
1787
1797
|
[GenericSuccessResponse](./lib/carbon_ruby_sdk/models/generic_success_response.rb)
|
@@ -1848,12 +1858,14 @@ result = carbon.integrations.sync_files(
|
|
1848
1858
|
prepend_filename_to_chunks: false,
|
1849
1859
|
max_items_per_chunk: 1,
|
1850
1860
|
set_page_as_boundary: false,
|
1851
|
-
request_id: "
|
1861
|
+
request_id: "2782cb96-1bf6-452c-a8d9-60c2378fd079",
|
1852
1862
|
use_ocr: false,
|
1853
1863
|
parse_pdf_tables_with_ocr: false,
|
1854
1864
|
incremental_sync: false,
|
1855
1865
|
file_sync_config: {
|
1866
|
+
"auto_synced_source_types" => ["ARTICLE"],
|
1856
1867
|
"sync_attachments" => false,
|
1868
|
+
"detect_audio_language" => false,
|
1857
1869
|
},
|
1858
1870
|
)
|
1859
1871
|
p result
|
@@ -1882,7 +1894,7 @@ Only sync files if they have not already been synced or if the embedding
|
|
1882
1894
|
properties have changed. This flag is currently supported by ONEDRIVE,
|
1883
1895
|
GOOGLE_DRIVE, BOX, DROPBOX. It will be ignored for other data sources.
|
1884
1896
|
|
1885
|
-
##### file_sync_config: [`
|
1897
|
+
##### 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
1898
|
#### 🔄 Return<a id="🔄-return"></a>
|
1887
1899
|
|
1888
1900
|
[GenericSuccessResponse](./lib/carbon_ruby_sdk/models/generic_success_response.rb)
|
@@ -2048,6 +2060,11 @@ result = carbon.integrations.sync_gmail(
|
|
2048
2060
|
data_source_id: 1,
|
2049
2061
|
request_id: "string_example",
|
2050
2062
|
sync_attachments: false,
|
2063
|
+
file_sync_config: {
|
2064
|
+
"auto_synced_source_types" => ["ARTICLE"],
|
2065
|
+
"sync_attachments" => false,
|
2066
|
+
"detect_audio_language" => false,
|
2067
|
+
},
|
2051
2068
|
incremental_sync: false,
|
2052
2069
|
)
|
2053
2070
|
p result
|
@@ -2066,6 +2083,7 @@ p result
|
|
2066
2083
|
##### data_source_id: `Integer`<a id="data_source_id-integer"></a>
|
2067
2084
|
##### request_id: `String`<a id="request_id-string"></a>
|
2068
2085
|
##### sync_attachments: `Boolean`<a id="sync_attachments-boolean"></a>
|
2086
|
+
##### 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
2087
|
##### incremental_sync: `Boolean`<a id="incremental_sync-boolean"></a>
|
2070
2088
|
#### 🔄 Return<a id="🔄-return"></a>
|
2071
2089
|
|
@@ -2159,6 +2177,11 @@ result = carbon.integrations.sync_outlook(
|
|
2159
2177
|
data_source_id: 1,
|
2160
2178
|
request_id: "string_example",
|
2161
2179
|
sync_attachments: false,
|
2180
|
+
file_sync_config: {
|
2181
|
+
"auto_synced_source_types" => ["ARTICLE"],
|
2182
|
+
"sync_attachments" => false,
|
2183
|
+
"detect_audio_language" => false,
|
2184
|
+
},
|
2162
2185
|
incremental_sync: false,
|
2163
2186
|
)
|
2164
2187
|
p result
|
@@ -2178,6 +2201,7 @@ p result
|
|
2178
2201
|
##### data_source_id: `Integer`<a id="data_source_id-integer"></a>
|
2179
2202
|
##### request_id: `String`<a id="request_id-string"></a>
|
2180
2203
|
##### sync_attachments: `Boolean`<a id="sync_attachments-boolean"></a>
|
2204
|
+
##### 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
2205
|
##### incremental_sync: `Boolean`<a id="incremental_sync-boolean"></a>
|
2182
2206
|
#### 🔄 Return<a id="🔄-return"></a>
|
2183
2207
|
|
@@ -2295,6 +2319,11 @@ result = carbon.integrations.sync_s3_files(
|
|
2295
2319
|
request_id: "string_example",
|
2296
2320
|
use_ocr: false,
|
2297
2321
|
parse_pdf_tables_with_ocr: false,
|
2322
|
+
file_sync_config: {
|
2323
|
+
"auto_synced_source_types" => ["ARTICLE"],
|
2324
|
+
"sync_attachments" => false,
|
2325
|
+
"detect_audio_language" => false,
|
2326
|
+
},
|
2298
2327
|
)
|
2299
2328
|
p result
|
2300
2329
|
```
|
@@ -2317,6 +2346,7 @@ Number of objects per chunk. For csv, tsv, xlsx, and json files only.
|
|
2317
2346
|
##### request_id: `String`<a id="request_id-string"></a>
|
2318
2347
|
##### use_ocr: `Boolean`<a id="use_ocr-boolean"></a>
|
2319
2348
|
##### parse_pdf_tables_with_ocr: `Boolean`<a id="parse_pdf_tables_with_ocr-boolean"></a>
|
2349
|
+
##### 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
2350
|
#### 🔄 Return<a id="🔄-return"></a>
|
2321
2351
|
|
2322
2352
|
[GenericSuccessResponse](./lib/carbon_ruby_sdk/models/generic_success_response.rb)
|
@@ -2384,6 +2414,33 @@ p result
|
|
2384
2414
|
---
|
2385
2415
|
|
2386
2416
|
|
2417
|
+
### `carbon.organizations.update_stats`<a id="carbonorganizationsupdate_stats"></a>
|
2418
|
+
|
2419
|
+
Use this endpoint to reaggregate the statistics for an organization, for example aggregate_file_size. The reaggregation
|
2420
|
+
process is asyncronous so a webhook will be sent with the event type being FILE_STATISTICS_AGGREGATED to notify when the
|
2421
|
+
process is complee. After this aggregation is complete, the updated statistics can be retrieved using the /organization
|
2422
|
+
endpoint. The response of /organization willalso contain a timestamp of the last time the statistics were reaggregated.
|
2423
|
+
|
2424
|
+
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
2425
|
+
|
2426
|
+
```ruby
|
2427
|
+
result = carbon.organizations.update_stats
|
2428
|
+
p result
|
2429
|
+
```
|
2430
|
+
|
2431
|
+
#### 🔄 Return<a id="🔄-return"></a>
|
2432
|
+
|
2433
|
+
[GenericSuccessResponse](./lib/carbon_ruby_sdk/models/generic_success_response.rb)
|
2434
|
+
|
2435
|
+
#### 🌐 Endpoint<a id="🌐-endpoint"></a>
|
2436
|
+
|
2437
|
+
`/organization/statistics` `POST`
|
2438
|
+
|
2439
|
+
[🔙 **Back to Table of Contents**](#table-of-contents)
|
2440
|
+
|
2441
|
+
---
|
2442
|
+
|
2443
|
+
|
2387
2444
|
### `carbon.users.delete`<a id="carbonusersdelete"></a>
|
2388
2445
|
|
2389
2446
|
Delete Users
|
@@ -1173,9 +1173,10 @@ module Carbon
|
|
1173
1173
|
# @param max_items_per_chunk [Integer] Number of objects per chunk. For csv, tsv, xlsx, and json files only.
|
1174
1174
|
# @param parse_pdf_tables_with_ocr [Boolean] Whether to use rich table parsing when `use_ocr` is enabled.
|
1175
1175
|
# @param detect_audio_language [Boolean] Whether to automatically detect the language of the uploaded audio file.
|
1176
|
+
# @param media_type [FileContentTypesNullable] The media type of the file. If not provided, it will be inferred from the file extension.
|
1176
1177
|
# @param body [BodyCreateUploadFileUploadfilePost]
|
1177
1178
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
1178
|
-
def upload(file:, chunk_size: SENTINEL, chunk_overlap: SENTINEL, skip_embedding_generation: false, set_page_as_boundary: false, embedding_model: SENTINEL, use_ocr: false, generate_sparse_vectors: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, parse_pdf_tables_with_ocr: false, detect_audio_language: false, extra: {})
|
1179
|
+
def upload(file:, chunk_size: SENTINEL, chunk_overlap: SENTINEL, skip_embedding_generation: false, set_page_as_boundary: false, embedding_model: SENTINEL, use_ocr: false, generate_sparse_vectors: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, parse_pdf_tables_with_ocr: false, detect_audio_language: false, media_type: 'TEXT', extra: {})
|
1179
1180
|
_body = {}
|
1180
1181
|
_body[:file] = file if file != SENTINEL
|
1181
1182
|
body_create_upload_file_uploadfile_post = _body
|
@@ -1190,6 +1191,7 @@ module Carbon
|
|
1190
1191
|
extra[:max_items_per_chunk] = max_items_per_chunk if max_items_per_chunk != SENTINEL
|
1191
1192
|
extra[:parse_pdf_tables_with_ocr] = parse_pdf_tables_with_ocr if parse_pdf_tables_with_ocr != SENTINEL
|
1192
1193
|
extra[:detect_audio_language] = detect_audio_language if detect_audio_language != SENTINEL
|
1194
|
+
extra[:media_type] = media_type if media_type != SENTINEL
|
1193
1195
|
api_response = upload_with_http_info_impl(file, body_create_upload_file_uploadfile_post, extra)
|
1194
1196
|
api_response.data
|
1195
1197
|
end
|
@@ -1234,9 +1236,10 @@ module Carbon
|
|
1234
1236
|
# @param max_items_per_chunk [Integer] Number of objects per chunk. For csv, tsv, xlsx, and json files only.
|
1235
1237
|
# @param parse_pdf_tables_with_ocr [Boolean] Whether to use rich table parsing when `use_ocr` is enabled.
|
1236
1238
|
# @param detect_audio_language [Boolean] Whether to automatically detect the language of the uploaded audio file.
|
1239
|
+
# @param media_type [FileContentTypesNullable] The media type of the file. If not provided, it will be inferred from the file extension.
|
1237
1240
|
# @param body [BodyCreateUploadFileUploadfilePost]
|
1238
1241
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
1239
|
-
def upload_with_http_info(file:, chunk_size: SENTINEL, chunk_overlap: SENTINEL, skip_embedding_generation: false, set_page_as_boundary: false, embedding_model: SENTINEL, use_ocr: false, generate_sparse_vectors: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, parse_pdf_tables_with_ocr: false, detect_audio_language: false, extra: {})
|
1242
|
+
def upload_with_http_info(file:, chunk_size: SENTINEL, chunk_overlap: SENTINEL, skip_embedding_generation: false, set_page_as_boundary: false, embedding_model: SENTINEL, use_ocr: false, generate_sparse_vectors: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, parse_pdf_tables_with_ocr: false, detect_audio_language: false, media_type: 'TEXT', extra: {})
|
1240
1243
|
_body = {}
|
1241
1244
|
_body[:file] = file if file != SENTINEL
|
1242
1245
|
body_create_upload_file_uploadfile_post = _body
|
@@ -1251,6 +1254,7 @@ module Carbon
|
|
1251
1254
|
extra[:max_items_per_chunk] = max_items_per_chunk if max_items_per_chunk != SENTINEL
|
1252
1255
|
extra[:parse_pdf_tables_with_ocr] = parse_pdf_tables_with_ocr if parse_pdf_tables_with_ocr != SENTINEL
|
1253
1256
|
extra[:detect_audio_language] = detect_audio_language if detect_audio_language != SENTINEL
|
1257
|
+
extra[:media_type] = media_type if media_type != SENTINEL
|
1254
1258
|
upload_with_http_info_impl(file, body_create_upload_file_uploadfile_post, extra)
|
1255
1259
|
end
|
1256
1260
|
|
@@ -1270,6 +1274,7 @@ module Carbon
|
|
1270
1274
|
# @option opts [Integer] :max_items_per_chunk Number of objects per chunk. For csv, tsv, xlsx, and json files only.
|
1271
1275
|
# @option opts [Boolean] :parse_pdf_tables_with_ocr Whether to use rich table parsing when `use_ocr` is enabled. (default to false)
|
1272
1276
|
# @option opts [Boolean] :detect_audio_language Whether to automatically detect the language of the uploaded audio file. (default to false)
|
1277
|
+
# @option opts [FileContentTypesNullable] :media_type The media type of the file. If not provided, it will be inferred from the file extension. (default to 'TEXT')
|
1273
1278
|
# @return [UserFile]
|
1274
1279
|
private def upload_impl(file, body_create_upload_file_uploadfile_post, opts = {})
|
1275
1280
|
data, _status_code, _headers = upload_with_http_info(file, body_create_upload_file_uploadfile_post, opts)
|
@@ -1292,6 +1297,7 @@ module Carbon
|
|
1292
1297
|
# @option opts [Integer] :max_items_per_chunk Number of objects per chunk. For csv, tsv, xlsx, and json files only.
|
1293
1298
|
# @option opts [Boolean] :parse_pdf_tables_with_ocr Whether to use rich table parsing when `use_ocr` is enabled. (default to false)
|
1294
1299
|
# @option opts [Boolean] :detect_audio_language Whether to automatically detect the language of the uploaded audio file. (default to false)
|
1300
|
+
# @option opts [FileContentTypesNullable] :media_type The media type of the file. If not provided, it will be inferred from the file extension. (default to 'TEXT')
|
1295
1301
|
# @return [APIResponse] data is UserFile, status code, headers and response
|
1296
1302
|
private def upload_with_http_info_impl(file, body_create_upload_file_uploadfile_post, opts = {})
|
1297
1303
|
if @api_client.config.debugging
|
@@ -1321,6 +1327,7 @@ module Carbon
|
|
1321
1327
|
query_params[:'max_items_per_chunk'] = opts[:'max_items_per_chunk'] if !opts[:'max_items_per_chunk'].nil?
|
1322
1328
|
query_params[:'parse_pdf_tables_with_ocr'] = opts[:'parse_pdf_tables_with_ocr'] if !opts[:'parse_pdf_tables_with_ocr'].nil?
|
1323
1329
|
query_params[:'detect_audio_language'] = opts[:'detect_audio_language'] if !opts[:'detect_audio_language'].nil?
|
1330
|
+
query_params[:'media_type'] = opts[:'media_type'] if !opts[:'media_type'].nil?
|
1324
1331
|
|
1325
1332
|
# header parameters
|
1326
1333
|
header_params = opts[:header_params] || {}
|
@@ -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: SHAREPOINT, DROPBOX,
|
564
|
+
# @param enable_file_picker [Boolean] Enable integration's file picker for sources that support it. Supported sources: SHAREPOINT, DROPBOX, GOOGLE_DRIVE, BOX, 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
|
-
# @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: '273420dd-e05c-463f-a3cf-0ff28029639e', 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,
|
632
|
+
# @param enable_file_picker [Boolean] Enable integration's file picker for sources that support it. Supported sources: SHAREPOINT, DROPBOX, GOOGLE_DRIVE, BOX, 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
|
-
# @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: '273420dd-e05c-463f-a3cf-0ff28029639e', 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: '2782cb96-1bf6-452c-a8d9-60c2378fd079', 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: '2782cb96-1bf6-452c-a8d9-60c2378fd079', 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: '2782cb96-1bf6-452c-a8d9-60c2378fd079', 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: '2782cb96-1bf6-452c-a8d9-60c2378fd079', 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
|