carbon_ruby_sdk 0.1.15 → 0.1.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +24 -2
- data/lib/carbon_ruby_sdk/api/integrations_api.rb +18 -6
- data/lib/carbon_ruby_sdk/api/users_api.rb +10 -2
- 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/gmail_sync_input.rb +17 -5
- data/lib/carbon_ruby_sdk/models/o_auth_url_request.rb +17 -5
- data/lib/carbon_ruby_sdk/models/outlook_sync_input.rb +17 -5
- data/lib/carbon_ruby_sdk/models/sync_options.rb +15 -4
- data/lib/carbon_ruby_sdk/models/update_users_input.rb +57 -5
- data/lib/carbon_ruby_sdk/models/user_file.rb +11 -1
- data/lib/carbon_ruby_sdk/models/user_response.rb +19 -5
- data/lib/carbon_ruby_sdk/version.rb +1 -1
- data/spec/models/gmail_sync_input_spec.rb +6 -0
- data/spec/models/o_auth_url_request_spec.rb +6 -0
- data/spec/models/outlook_sync_input_spec.rb +6 -0
- data/spec/models/sync_options_spec.rb +6 -0
- data/spec/models/update_users_input_spec.rb +12 -0
- data/spec/models/user_file_spec.rb +6 -0
- data/spec/models/user_response_spec.rb +6 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 41b973ad8e62b552db19546d3a3755e4c16c9212de8cf9ea371ce39d1a505387
|
4
|
+
data.tar.gz: 18d9889d6e9f99f2c02d97408d4620d1c768eb7d2519f9cbebccedef375dd3c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e66f4386a86fb62c0da7a79ddb0dc197b6de76a90ba267913d79e2136ee58e92b42f5ddc591c45b5e171b450e557276c2429d91e8f49937eab0cd8b13c1b58f
|
7
|
+
data.tar.gz: bb3f6bb1a28029ea0312dd539720c4d2f5cae934817d240eeee4b8b24a7ce27a663e584e2c44c7837a47f54f8d48784227eb7c13f0f50ef0164ca05c3174921e
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
Connect external data to LLMs, no matter the source.
|
8
8
|
|
9
|
-
[](https://rubygems.org/gems/carbon_ruby_sdk/versions/0.1.17)
|
10
10
|
|
11
11
|
</div>
|
12
12
|
|
@@ -80,7 +80,7 @@ Connect external data to LLMs, no matter the source.
|
|
80
80
|
Add to Gemfile:
|
81
81
|
|
82
82
|
```ruby
|
83
|
-
gem 'carbon_ruby_sdk', '~> 0.1.
|
83
|
+
gem 'carbon_ruby_sdk', '~> 0.1.17'
|
84
84
|
```
|
85
85
|
|
86
86
|
## Getting Started<a id="getting-started"></a>
|
@@ -1186,6 +1186,7 @@ result = carbon.integrations.connect_data_source(
|
|
1186
1186
|
"prepend_filename_to_chunks" => false,
|
1187
1187
|
"sync_files_on_connection" => true,
|
1188
1188
|
"set_page_as_boundary" => false,
|
1189
|
+
"enable_file_picker" => true,
|
1189
1190
|
},
|
1190
1191
|
)
|
1191
1192
|
p result
|
@@ -1383,6 +1384,7 @@ result = carbon.integrations.get_oauth_url(
|
|
1383
1384
|
request_id: "string_example",
|
1384
1385
|
use_ocr: false,
|
1385
1386
|
parse_pdf_tables_with_ocr: false,
|
1387
|
+
enable_file_picker: true,
|
1386
1388
|
)
|
1387
1389
|
p result
|
1388
1390
|
```
|
@@ -1430,6 +1432,10 @@ OAuth URL
|
|
1430
1432
|
Enable OCR for files that support it. Supported formats: pdf
|
1431
1433
|
|
1432
1434
|
##### parse_pdf_tables_with_ocr: `Boolean`<a id="parse_pdf_tables_with_ocr-boolean"></a>
|
1435
|
+
##### enable_file_picker: `Boolean`<a id="enable_file_picker-boolean"></a>
|
1436
|
+
Enable integration's file picker for sources that support it. Supported sources:
|
1437
|
+
DROPBOX, BOX, GOOGLE_DRIVE, SHAREPOINT, ONEDRIVE
|
1438
|
+
|
1433
1439
|
#### 🔄 Return<a id="🔄-return"></a>
|
1434
1440
|
|
1435
1441
|
[OuthURLResponse](./lib/carbon_ruby_sdk/models/outh_url_response.rb)
|
@@ -1888,6 +1894,7 @@ result = carbon.integrations.sync_gmail(
|
|
1888
1894
|
prepend_filename_to_chunks: false,
|
1889
1895
|
data_source_id: 1,
|
1890
1896
|
request_id: "string_example",
|
1897
|
+
sync_attachments: false,
|
1891
1898
|
)
|
1892
1899
|
p result
|
1893
1900
|
```
|
@@ -1904,6 +1911,7 @@ p result
|
|
1904
1911
|
##### prepend_filename_to_chunks: `Boolean`<a id="prepend_filename_to_chunks-boolean"></a>
|
1905
1912
|
##### data_source_id: `Integer`<a id="data_source_id-integer"></a>
|
1906
1913
|
##### request_id: `String`<a id="request_id-string"></a>
|
1914
|
+
##### sync_attachments: `Boolean`<a id="sync_attachments-boolean"></a>
|
1907
1915
|
#### 🔄 Return<a id="🔄-return"></a>
|
1908
1916
|
|
1909
1917
|
[GenericSuccessResponse](./lib/carbon_ruby_sdk/models/generic_success_response.rb)
|
@@ -1995,6 +2003,7 @@ result = carbon.integrations.sync_outlook(
|
|
1995
2003
|
prepend_filename_to_chunks: false,
|
1996
2004
|
data_source_id: 1,
|
1997
2005
|
request_id: "string_example",
|
2006
|
+
sync_attachments: false,
|
1998
2007
|
)
|
1999
2008
|
p result
|
2000
2009
|
```
|
@@ -2012,6 +2021,7 @@ p result
|
|
2012
2021
|
##### prepend_filename_to_chunks: `Boolean`<a id="prepend_filename_to_chunks-boolean"></a>
|
2013
2022
|
##### data_source_id: `Integer`<a id="data_source_id-integer"></a>
|
2014
2023
|
##### request_id: `String`<a id="request_id-string"></a>
|
2024
|
+
##### sync_attachments: `Boolean`<a id="sync_attachments-boolean"></a>
|
2015
2025
|
#### 🔄 Return<a id="🔄-return"></a>
|
2016
2026
|
|
2017
2027
|
[GenericSuccessResponse](./lib/carbon_ruby_sdk/models/generic_success_response.rb)
|
@@ -2261,6 +2271,8 @@ result = carbon.users.update_users(
|
|
2261
2271
|
auto_sync_enabled_sources: [
|
2262
2272
|
"string_example"
|
2263
2273
|
],
|
2274
|
+
max_files: -1,
|
2275
|
+
max_files_per_upload: -1,
|
2264
2276
|
)
|
2265
2277
|
p result
|
2266
2278
|
```
|
@@ -2271,6 +2283,16 @@ p result
|
|
2271
2283
|
List of organization supplied user IDs
|
2272
2284
|
|
2273
2285
|
##### auto_sync_enabled_sources: [`AutoSyncEnabledSourcesProperty`](./lib/carbon_ruby_sdk/models/auto_sync_enabled_sources_property.rb)<a id="auto_sync_enabled_sources-autosyncenabledsourcespropertylibcarbon_ruby_sdkmodelsauto_sync_enabled_sources_propertyrb"></a>
|
2286
|
+
##### max_files: `Integer`<a id="max_files-integer"></a>
|
2287
|
+
Custom file upload limit for the user over *all* user's files across all
|
2288
|
+
uploads. If set, then the user will not be allowed to upload more files than
|
2289
|
+
this limit. If not set, or if set to -1, then the user will have no limit.
|
2290
|
+
|
2291
|
+
##### max_files_per_upload: `Integer`<a id="max_files_per_upload-integer"></a>
|
2292
|
+
Custom file upload limit for the user across a single upload. If set, then the
|
2293
|
+
user will not be allowed to upload more files than this limit in a single
|
2294
|
+
upload. If not set, or if set to -1, then the user will have no limit.
|
2295
|
+
|
2274
2296
|
#### 🔄 Return<a id="🔄-return"></a>
|
2275
2297
|
|
2276
2298
|
[GenericSuccessResponse](./lib/carbon_ruby_sdk/models/generic_success_response.rb)
|
@@ -545,9 +545,10 @@ module Carbon
|
|
545
545
|
# @param request_id [String] This request id will be added to all files that get synced using the generated OAuth URL
|
546
546
|
# @param use_ocr [Boolean] Enable OCR for files that support it. Supported formats: pdf
|
547
547
|
# @param parse_pdf_tables_with_ocr [Boolean]
|
548
|
+
# @param enable_file_picker [Boolean] Enable integration's file picker for sources that support it. Supported sources: DROPBOX, BOX, GOOGLE_DRIVE, SHAREPOINT, ONEDRIVE
|
548
549
|
# @param body [OAuthURLRequest]
|
549
550
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
550
|
-
def get_oauth_url(service:, tags: SENTINEL, scope: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', zendesk_subdomain: SENTINEL, microsoft_tenant: SENTINEL, sharepoint_site_name: SENTINEL, confluence_subdomain: SENTINEL, generate_sparse_vectors: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, salesforce_domain: SENTINEL, sync_files_on_connection: true, set_page_as_boundary: false, data_source_id: SENTINEL, connecting_new_account: false, request_id: SENTINEL, use_ocr: false, parse_pdf_tables_with_ocr: false, extra: {})
|
551
|
+
def get_oauth_url(service:, tags: SENTINEL, scope: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', zendesk_subdomain: SENTINEL, microsoft_tenant: SENTINEL, sharepoint_site_name: SENTINEL, confluence_subdomain: SENTINEL, generate_sparse_vectors: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, salesforce_domain: SENTINEL, sync_files_on_connection: true, set_page_as_boundary: false, data_source_id: SENTINEL, connecting_new_account: false, request_id: SENTINEL, use_ocr: false, parse_pdf_tables_with_ocr: false, enable_file_picker: true, extra: {})
|
551
552
|
_body = {}
|
552
553
|
_body[:tags] = tags if tags != SENTINEL
|
553
554
|
_body[:scope] = scope if scope != SENTINEL
|
@@ -571,6 +572,7 @@ module Carbon
|
|
571
572
|
_body[:request_id] = request_id if request_id != SENTINEL
|
572
573
|
_body[:use_ocr] = use_ocr if use_ocr != SENTINEL
|
573
574
|
_body[:parse_pdf_tables_with_ocr] = parse_pdf_tables_with_ocr if parse_pdf_tables_with_ocr != SENTINEL
|
575
|
+
_body[:enable_file_picker] = enable_file_picker if enable_file_picker != SENTINEL
|
574
576
|
o_auth_url_request = _body
|
575
577
|
api_response = get_oauth_url_with_http_info_impl(o_auth_url_request, extra)
|
576
578
|
api_response.data
|
@@ -605,9 +607,10 @@ module Carbon
|
|
605
607
|
# @param request_id [String] This request id will be added to all files that get synced using the generated OAuth URL
|
606
608
|
# @param use_ocr [Boolean] Enable OCR for files that support it. Supported formats: pdf
|
607
609
|
# @param parse_pdf_tables_with_ocr [Boolean]
|
610
|
+
# @param enable_file_picker [Boolean] Enable integration's file picker for sources that support it. Supported sources: DROPBOX, BOX, GOOGLE_DRIVE, SHAREPOINT, ONEDRIVE
|
608
611
|
# @param body [OAuthURLRequest]
|
609
612
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
610
|
-
def get_oauth_url_with_http_info(service:, tags: SENTINEL, scope: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', zendesk_subdomain: SENTINEL, microsoft_tenant: SENTINEL, sharepoint_site_name: SENTINEL, confluence_subdomain: SENTINEL, generate_sparse_vectors: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, salesforce_domain: SENTINEL, sync_files_on_connection: true, set_page_as_boundary: false, data_source_id: SENTINEL, connecting_new_account: false, request_id: SENTINEL, use_ocr: false, parse_pdf_tables_with_ocr: false, extra: {})
|
613
|
+
def get_oauth_url_with_http_info(service:, tags: SENTINEL, scope: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', zendesk_subdomain: SENTINEL, microsoft_tenant: SENTINEL, sharepoint_site_name: SENTINEL, confluence_subdomain: SENTINEL, generate_sparse_vectors: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, salesforce_domain: SENTINEL, sync_files_on_connection: true, set_page_as_boundary: false, data_source_id: SENTINEL, connecting_new_account: false, request_id: SENTINEL, use_ocr: false, parse_pdf_tables_with_ocr: false, enable_file_picker: true, extra: {})
|
611
614
|
_body = {}
|
612
615
|
_body[:tags] = tags if tags != SENTINEL
|
613
616
|
_body[:scope] = scope if scope != SENTINEL
|
@@ -631,6 +634,7 @@ module Carbon
|
|
631
634
|
_body[:request_id] = request_id if request_id != SENTINEL
|
632
635
|
_body[:use_ocr] = use_ocr if use_ocr != SENTINEL
|
633
636
|
_body[:parse_pdf_tables_with_ocr] = parse_pdf_tables_with_ocr if parse_pdf_tables_with_ocr != SENTINEL
|
637
|
+
_body[:enable_file_picker] = enable_file_picker if enable_file_picker != SENTINEL
|
634
638
|
o_auth_url_request = _body
|
635
639
|
get_oauth_url_with_http_info_impl(o_auth_url_request, extra)
|
636
640
|
end
|
@@ -1869,9 +1873,10 @@ module Carbon
|
|
1869
1873
|
# @param prepend_filename_to_chunks [Boolean]
|
1870
1874
|
# @param data_source_id [Integer]
|
1871
1875
|
# @param request_id [String]
|
1876
|
+
# @param sync_attachments [Boolean]
|
1872
1877
|
# @param body [GmailSyncInput]
|
1873
1878
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
1874
|
-
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, extra: {})
|
1879
|
+
def sync_gmail(filters:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, data_source_id: SENTINEL, request_id: SENTINEL, sync_attachments: false, extra: {})
|
1875
1880
|
_body = {}
|
1876
1881
|
_body[:tags] = tags if tags != SENTINEL
|
1877
1882
|
_body[:filters] = filters if filters != SENTINEL
|
@@ -1883,6 +1888,7 @@ module Carbon
|
|
1883
1888
|
_body[:prepend_filename_to_chunks] = prepend_filename_to_chunks if prepend_filename_to_chunks != SENTINEL
|
1884
1889
|
_body[:data_source_id] = data_source_id if data_source_id != SENTINEL
|
1885
1890
|
_body[:request_id] = request_id if request_id != SENTINEL
|
1891
|
+
_body[:sync_attachments] = sync_attachments if sync_attachments != SENTINEL
|
1886
1892
|
gmail_sync_input = _body
|
1887
1893
|
api_response = sync_gmail_with_http_info_impl(gmail_sync_input, extra)
|
1888
1894
|
api_response.data
|
@@ -1951,9 +1957,10 @@ module Carbon
|
|
1951
1957
|
# @param prepend_filename_to_chunks [Boolean]
|
1952
1958
|
# @param data_source_id [Integer]
|
1953
1959
|
# @param request_id [String]
|
1960
|
+
# @param sync_attachments [Boolean]
|
1954
1961
|
# @param body [GmailSyncInput]
|
1955
1962
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
1956
|
-
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, extra: {})
|
1963
|
+
def sync_gmail_with_http_info(filters:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, data_source_id: SENTINEL, request_id: SENTINEL, sync_attachments: false, extra: {})
|
1957
1964
|
_body = {}
|
1958
1965
|
_body[:tags] = tags if tags != SENTINEL
|
1959
1966
|
_body[:filters] = filters if filters != SENTINEL
|
@@ -1965,6 +1972,7 @@ module Carbon
|
|
1965
1972
|
_body[:prepend_filename_to_chunks] = prepend_filename_to_chunks if prepend_filename_to_chunks != SENTINEL
|
1966
1973
|
_body[:data_source_id] = data_source_id if data_source_id != SENTINEL
|
1967
1974
|
_body[:request_id] = request_id if request_id != SENTINEL
|
1975
|
+
_body[:sync_attachments] = sync_attachments if sync_attachments != SENTINEL
|
1968
1976
|
gmail_sync_input = _body
|
1969
1977
|
sync_gmail_with_http_info_impl(gmail_sync_input, extra)
|
1970
1978
|
end
|
@@ -2112,9 +2120,10 @@ module Carbon
|
|
2112
2120
|
# @param prepend_filename_to_chunks [Boolean]
|
2113
2121
|
# @param data_source_id [Integer]
|
2114
2122
|
# @param request_id [String]
|
2123
|
+
# @param sync_attachments [Boolean]
|
2115
2124
|
# @param body [OutlookSyncInput]
|
2116
2125
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
2117
|
-
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, extra: {})
|
2126
|
+
def sync_outlook(filters:, tags: SENTINEL, folder: 'Inbox', chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, data_source_id: SENTINEL, request_id: SENTINEL, sync_attachments: false, extra: {})
|
2118
2127
|
_body = {}
|
2119
2128
|
_body[:tags] = tags if tags != SENTINEL
|
2120
2129
|
_body[:folder] = folder if folder != SENTINEL
|
@@ -2127,6 +2136,7 @@ module Carbon
|
|
2127
2136
|
_body[:prepend_filename_to_chunks] = prepend_filename_to_chunks if prepend_filename_to_chunks != SENTINEL
|
2128
2137
|
_body[:data_source_id] = data_source_id if data_source_id != SENTINEL
|
2129
2138
|
_body[:request_id] = request_id if request_id != SENTINEL
|
2139
|
+
_body[:sync_attachments] = sync_attachments if sync_attachments != SENTINEL
|
2130
2140
|
outlook_sync_input = _body
|
2131
2141
|
api_response = sync_outlook_with_http_info_impl(outlook_sync_input, extra)
|
2132
2142
|
api_response.data
|
@@ -2206,9 +2216,10 @@ module Carbon
|
|
2206
2216
|
# @param prepend_filename_to_chunks [Boolean]
|
2207
2217
|
# @param data_source_id [Integer]
|
2208
2218
|
# @param request_id [String]
|
2219
|
+
# @param sync_attachments [Boolean]
|
2209
2220
|
# @param body [OutlookSyncInput]
|
2210
2221
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
2211
|
-
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, extra: {})
|
2222
|
+
def sync_outlook_with_http_info(filters:, tags: SENTINEL, folder: 'Inbox', chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, data_source_id: SENTINEL, request_id: SENTINEL, sync_attachments: false, extra: {})
|
2212
2223
|
_body = {}
|
2213
2224
|
_body[:tags] = tags if tags != SENTINEL
|
2214
2225
|
_body[:folder] = folder if folder != SENTINEL
|
@@ -2221,6 +2232,7 @@ module Carbon
|
|
2221
2232
|
_body[:prepend_filename_to_chunks] = prepend_filename_to_chunks if prepend_filename_to_chunks != SENTINEL
|
2222
2233
|
_body[:data_source_id] = data_source_id if data_source_id != SENTINEL
|
2223
2234
|
_body[:request_id] = request_id if request_id != SENTINEL
|
2235
|
+
_body[:sync_attachments] = sync_attachments if sync_attachments != SENTINEL
|
2224
2236
|
outlook_sync_input = _body
|
2225
2237
|
sync_outlook_with_http_info_impl(outlook_sync_input, extra)
|
2226
2238
|
end
|
@@ -300,12 +300,16 @@ module Carbon
|
|
300
300
|
#
|
301
301
|
# @param customer_ids [Array<String>] List of organization supplied user IDs
|
302
302
|
# @param auto_sync_enabled_sources [AutoSyncEnabledSourcesProperty]
|
303
|
+
# @param max_files [Integer] Custom file upload limit for the user over *all* user's files across all uploads. If set, then the user will not be allowed to upload more files than this limit. If not set, or if set to -1, then the user will have no limit.
|
304
|
+
# @param max_files_per_upload [Integer] Custom file upload limit for the user across a single upload. If set, then the user will not be allowed to upload more files than this limit in a single upload. If not set, or if set to -1, then the user will have no limit.
|
303
305
|
# @param body [UpdateUsersInput]
|
304
306
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
305
|
-
def update_users(customer_ids:, auto_sync_enabled_sources: SENTINEL, extra: {})
|
307
|
+
def update_users(customer_ids:, auto_sync_enabled_sources: SENTINEL, max_files: SENTINEL, max_files_per_upload: SENTINEL, extra: {})
|
306
308
|
_body = {}
|
307
309
|
_body[:customer_ids] = customer_ids if customer_ids != SENTINEL
|
308
310
|
_body[:auto_sync_enabled_sources] = auto_sync_enabled_sources if auto_sync_enabled_sources != SENTINEL
|
311
|
+
_body[:max_files] = max_files if max_files != SENTINEL
|
312
|
+
_body[:max_files_per_upload] = max_files_per_upload if max_files_per_upload != SENTINEL
|
309
313
|
update_users_input = _body
|
310
314
|
api_response = update_users_with_http_info_impl(update_users_input, extra)
|
311
315
|
api_response.data
|
@@ -315,12 +319,16 @@ module Carbon
|
|
315
319
|
#
|
316
320
|
# @param customer_ids [Array<String>] List of organization supplied user IDs
|
317
321
|
# @param auto_sync_enabled_sources [AutoSyncEnabledSourcesProperty]
|
322
|
+
# @param max_files [Integer] Custom file upload limit for the user over *all* user's files across all uploads. If set, then the user will not be allowed to upload more files than this limit. If not set, or if set to -1, then the user will have no limit.
|
323
|
+
# @param max_files_per_upload [Integer] Custom file upload limit for the user across a single upload. If set, then the user will not be allowed to upload more files than this limit in a single upload. If not set, or if set to -1, then the user will have no limit.
|
318
324
|
# @param body [UpdateUsersInput]
|
319
325
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
320
|
-
def update_users_with_http_info(customer_ids:, auto_sync_enabled_sources: SENTINEL, extra: {})
|
326
|
+
def update_users_with_http_info(customer_ids:, auto_sync_enabled_sources: SENTINEL, max_files: SENTINEL, max_files_per_upload: SENTINEL, extra: {})
|
321
327
|
_body = {}
|
322
328
|
_body[:customer_ids] = customer_ids if customer_ids != SENTINEL
|
323
329
|
_body[:auto_sync_enabled_sources] = auto_sync_enabled_sources if auto_sync_enabled_sources != SENTINEL
|
330
|
+
_body[:max_files] = max_files if max_files != SENTINEL
|
331
|
+
_body[:max_files_per_upload] = max_files_per_upload if max_files_per_upload != SENTINEL
|
324
332
|
update_users_input = _body
|
325
333
|
update_users_with_http_info_impl(update_users_input, extra)
|
326
334
|
end
|
@@ -43,6 +43,7 @@ module Carbon
|
|
43
43
|
SALESFORCE = "SALESFORCE".freeze
|
44
44
|
JPG = "JPG".freeze
|
45
45
|
PNG = "PNG".freeze
|
46
|
+
JPEG = "JPEG".freeze
|
46
47
|
MP3 = "MP3".freeze
|
47
48
|
MP4 = "MP4".freeze
|
48
49
|
MP2 = "MP2".freeze
|
@@ -56,7 +57,7 @@ module Carbon
|
|
56
57
|
WEBM = "WEBM".freeze
|
57
58
|
|
58
59
|
def self.all_vars
|
59
|
-
@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, RAW_TEXT, WEB_SCRAPE, RSS_FEED, FRESHDESK, GITBOOK, SALESFORCE, JPG, PNG, MP3, MP4, MP2, AAC, WAV, FLAC, PCM, M4_A, OGG, OPUS, WEBM].freeze
|
60
|
+
@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, RAW_TEXT, WEB_SCRAPE, RSS_FEED, FRESHDESK, GITBOOK, SALESFORCE, JPG, PNG, JPEG, MP3, MP4, MP2, AAC, WAV, FLAC, PCM, M4_A, OGG, OPUS, WEBM].freeze
|
60
61
|
end
|
61
62
|
|
62
63
|
# Builds the enum from string
|
@@ -43,6 +43,7 @@ module Carbon
|
|
43
43
|
SALESFORCE = "SALESFORCE".freeze
|
44
44
|
JPG = "JPG".freeze
|
45
45
|
PNG = "PNG".freeze
|
46
|
+
JPEG = "JPEG".freeze
|
46
47
|
MP3 = "MP3".freeze
|
47
48
|
MP4 = "MP4".freeze
|
48
49
|
MP2 = "MP2".freeze
|
@@ -56,7 +57,7 @@ module Carbon
|
|
56
57
|
WEBM = "WEBM".freeze
|
57
58
|
|
58
59
|
def self.all_vars
|
59
|
-
@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, RAW_TEXT, WEB_SCRAPE, RSS_FEED, FRESHDESK, GITBOOK, SALESFORCE, JPG, PNG, MP3, MP4, MP2, AAC, WAV, FLAC, PCM, M4_A, OGG, OPUS, WEBM].freeze
|
60
|
+
@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, RAW_TEXT, WEB_SCRAPE, RSS_FEED, FRESHDESK, GITBOOK, SALESFORCE, JPG, PNG, JPEG, MP3, MP4, MP2, AAC, WAV, FLAC, PCM, M4_A, OGG, OPUS, WEBM].freeze
|
60
61
|
end
|
61
62
|
|
62
63
|
# Builds the enum from string
|
@@ -31,6 +31,8 @@ module Carbon
|
|
31
31
|
|
32
32
|
attr_accessor :request_id
|
33
33
|
|
34
|
+
attr_accessor :sync_attachments
|
35
|
+
|
34
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
35
37
|
def self.attribute_map
|
36
38
|
{
|
@@ -43,7 +45,8 @@ module Carbon
|
|
43
45
|
:'generate_sparse_vectors' => :'generate_sparse_vectors',
|
44
46
|
:'prepend_filename_to_chunks' => :'prepend_filename_to_chunks',
|
45
47
|
:'data_source_id' => :'data_source_id',
|
46
|
-
:'request_id' => :'request_id'
|
48
|
+
:'request_id' => :'request_id',
|
49
|
+
:'sync_attachments' => :'sync_attachments'
|
47
50
|
}
|
48
51
|
end
|
49
52
|
|
@@ -64,7 +67,8 @@ module Carbon
|
|
64
67
|
:'generate_sparse_vectors' => :'Boolean',
|
65
68
|
:'prepend_filename_to_chunks' => :'Boolean',
|
66
69
|
:'data_source_id' => :'Integer',
|
67
|
-
:'request_id' => :'String'
|
70
|
+
:'request_id' => :'String',
|
71
|
+
:'sync_attachments' => :'Boolean'
|
68
72
|
}
|
69
73
|
end
|
70
74
|
|
@@ -78,7 +82,8 @@ module Carbon
|
|
78
82
|
:'generate_sparse_vectors',
|
79
83
|
:'prepend_filename_to_chunks',
|
80
84
|
:'data_source_id',
|
81
|
-
:'request_id'
|
85
|
+
:'request_id',
|
86
|
+
:'sync_attachments'
|
82
87
|
])
|
83
88
|
end
|
84
89
|
|
@@ -148,6 +153,12 @@ module Carbon
|
|
148
153
|
if attributes.key?(:'request_id')
|
149
154
|
self.request_id = attributes[:'request_id']
|
150
155
|
end
|
156
|
+
|
157
|
+
if attributes.key?(:'sync_attachments')
|
158
|
+
self.sync_attachments = attributes[:'sync_attachments']
|
159
|
+
else
|
160
|
+
self.sync_attachments = false
|
161
|
+
end
|
151
162
|
end
|
152
163
|
|
153
164
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -182,7 +193,8 @@ module Carbon
|
|
182
193
|
generate_sparse_vectors == o.generate_sparse_vectors &&
|
183
194
|
prepend_filename_to_chunks == o.prepend_filename_to_chunks &&
|
184
195
|
data_source_id == o.data_source_id &&
|
185
|
-
request_id == o.request_id
|
196
|
+
request_id == o.request_id &&
|
197
|
+
sync_attachments == o.sync_attachments
|
186
198
|
end
|
187
199
|
|
188
200
|
# @see the `==` method
|
@@ -194,7 +206,7 @@ module Carbon
|
|
194
206
|
# Calculates hash code according to all attributes.
|
195
207
|
# @return [Integer] Hash code
|
196
208
|
def hash
|
197
|
-
[tags, filters, chunk_size, chunk_overlap, skip_embedding_generation, embedding_model, generate_sparse_vectors, prepend_filename_to_chunks, data_source_id, request_id].hash
|
209
|
+
[tags, filters, chunk_size, chunk_overlap, skip_embedding_generation, embedding_model, generate_sparse_vectors, prepend_filename_to_chunks, data_source_id, request_id, sync_attachments].hash
|
198
210
|
end
|
199
211
|
|
200
212
|
# Builds the object from hash
|
@@ -61,6 +61,9 @@ module Carbon
|
|
61
61
|
|
62
62
|
attr_accessor :parse_pdf_tables_with_ocr
|
63
63
|
|
64
|
+
# Enable integration's file picker for sources that support it. Supported sources: DROPBOX, BOX, GOOGLE_DRIVE, SHAREPOINT, ONEDRIVE
|
65
|
+
attr_accessor :enable_file_picker
|
66
|
+
|
64
67
|
# Attribute mapping from ruby-style variable name to JSON key.
|
65
68
|
def self.attribute_map
|
66
69
|
{
|
@@ -85,7 +88,8 @@ module Carbon
|
|
85
88
|
:'connecting_new_account' => :'connecting_new_account',
|
86
89
|
:'request_id' => :'request_id',
|
87
90
|
:'use_ocr' => :'use_ocr',
|
88
|
-
:'parse_pdf_tables_with_ocr' => :'parse_pdf_tables_with_ocr'
|
91
|
+
:'parse_pdf_tables_with_ocr' => :'parse_pdf_tables_with_ocr',
|
92
|
+
:'enable_file_picker' => :'enable_file_picker'
|
89
93
|
}
|
90
94
|
end
|
91
95
|
|
@@ -118,7 +122,8 @@ module Carbon
|
|
118
122
|
:'connecting_new_account' => :'Boolean',
|
119
123
|
:'request_id' => :'String',
|
120
124
|
:'use_ocr' => :'Boolean',
|
121
|
-
:'parse_pdf_tables_with_ocr' => :'Boolean'
|
125
|
+
:'parse_pdf_tables_with_ocr' => :'Boolean',
|
126
|
+
:'enable_file_picker' => :'Boolean'
|
122
127
|
}
|
123
128
|
end
|
124
129
|
|
@@ -144,7 +149,7 @@ module Carbon
|
|
144
149
|
:'connecting_new_account',
|
145
150
|
:'request_id',
|
146
151
|
:'use_ocr',
|
147
|
-
:'parse_pdf_tables_with_ocr'
|
152
|
+
:'parse_pdf_tables_with_ocr',
|
148
153
|
])
|
149
154
|
end
|
150
155
|
|
@@ -272,6 +277,12 @@ module Carbon
|
|
272
277
|
else
|
273
278
|
self.parse_pdf_tables_with_ocr = false
|
274
279
|
end
|
280
|
+
|
281
|
+
if attributes.key?(:'enable_file_picker')
|
282
|
+
self.enable_file_picker = attributes[:'enable_file_picker']
|
283
|
+
else
|
284
|
+
self.enable_file_picker = true
|
285
|
+
end
|
275
286
|
end
|
276
287
|
|
277
288
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -318,7 +329,8 @@ module Carbon
|
|
318
329
|
connecting_new_account == o.connecting_new_account &&
|
319
330
|
request_id == o.request_id &&
|
320
331
|
use_ocr == o.use_ocr &&
|
321
|
-
parse_pdf_tables_with_ocr == o.parse_pdf_tables_with_ocr
|
332
|
+
parse_pdf_tables_with_ocr == o.parse_pdf_tables_with_ocr &&
|
333
|
+
enable_file_picker == o.enable_file_picker
|
322
334
|
end
|
323
335
|
|
324
336
|
# @see the `==` method
|
@@ -330,7 +342,7 @@ module Carbon
|
|
330
342
|
# Calculates hash code according to all attributes.
|
331
343
|
# @return [Integer] Hash code
|
332
344
|
def hash
|
333
|
-
[tags, scope, service, chunk_size, chunk_overlap, skip_embedding_generation, embedding_model, zendesk_subdomain, microsoft_tenant, sharepoint_site_name, confluence_subdomain, generate_sparse_vectors, prepend_filename_to_chunks, max_items_per_chunk, salesforce_domain, sync_files_on_connection, set_page_as_boundary, data_source_id, connecting_new_account, request_id, use_ocr, parse_pdf_tables_with_ocr].hash
|
345
|
+
[tags, scope, service, chunk_size, chunk_overlap, skip_embedding_generation, embedding_model, zendesk_subdomain, microsoft_tenant, sharepoint_site_name, confluence_subdomain, generate_sparse_vectors, prepend_filename_to_chunks, max_items_per_chunk, salesforce_domain, sync_files_on_connection, set_page_as_boundary, data_source_id, connecting_new_account, request_id, use_ocr, parse_pdf_tables_with_ocr, enable_file_picker].hash
|
334
346
|
end
|
335
347
|
|
336
348
|
# Builds the object from hash
|
@@ -33,6 +33,8 @@ module Carbon
|
|
33
33
|
|
34
34
|
attr_accessor :request_id
|
35
35
|
|
36
|
+
attr_accessor :sync_attachments
|
37
|
+
|
36
38
|
# Attribute mapping from ruby-style variable name to JSON key.
|
37
39
|
def self.attribute_map
|
38
40
|
{
|
@@ -46,7 +48,8 @@ module Carbon
|
|
46
48
|
:'generate_sparse_vectors' => :'generate_sparse_vectors',
|
47
49
|
:'prepend_filename_to_chunks' => :'prepend_filename_to_chunks',
|
48
50
|
:'data_source_id' => :'data_source_id',
|
49
|
-
:'request_id' => :'request_id'
|
51
|
+
:'request_id' => :'request_id',
|
52
|
+
:'sync_attachments' => :'sync_attachments'
|
50
53
|
}
|
51
54
|
end
|
52
55
|
|
@@ -68,7 +71,8 @@ module Carbon
|
|
68
71
|
:'generate_sparse_vectors' => :'Boolean',
|
69
72
|
:'prepend_filename_to_chunks' => :'Boolean',
|
70
73
|
:'data_source_id' => :'Integer',
|
71
|
-
:'request_id' => :'String'
|
74
|
+
:'request_id' => :'String',
|
75
|
+
:'sync_attachments' => :'Boolean'
|
72
76
|
}
|
73
77
|
end
|
74
78
|
|
@@ -83,7 +87,8 @@ module Carbon
|
|
83
87
|
:'generate_sparse_vectors',
|
84
88
|
:'prepend_filename_to_chunks',
|
85
89
|
:'data_source_id',
|
86
|
-
:'request_id'
|
90
|
+
:'request_id',
|
91
|
+
:'sync_attachments'
|
87
92
|
])
|
88
93
|
end
|
89
94
|
|
@@ -159,6 +164,12 @@ module Carbon
|
|
159
164
|
if attributes.key?(:'request_id')
|
160
165
|
self.request_id = attributes[:'request_id']
|
161
166
|
end
|
167
|
+
|
168
|
+
if attributes.key?(:'sync_attachments')
|
169
|
+
self.sync_attachments = attributes[:'sync_attachments']
|
170
|
+
else
|
171
|
+
self.sync_attachments = false
|
172
|
+
end
|
162
173
|
end
|
163
174
|
|
164
175
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -194,7 +205,8 @@ module Carbon
|
|
194
205
|
generate_sparse_vectors == o.generate_sparse_vectors &&
|
195
206
|
prepend_filename_to_chunks == o.prepend_filename_to_chunks &&
|
196
207
|
data_source_id == o.data_source_id &&
|
197
|
-
request_id == o.request_id
|
208
|
+
request_id == o.request_id &&
|
209
|
+
sync_attachments == o.sync_attachments
|
198
210
|
end
|
199
211
|
|
200
212
|
# @see the `==` method
|
@@ -206,7 +218,7 @@ module Carbon
|
|
206
218
|
# Calculates hash code according to all attributes.
|
207
219
|
# @return [Integer] Hash code
|
208
220
|
def hash
|
209
|
-
[tags, folder, filters, chunk_size, chunk_overlap, skip_embedding_generation, embedding_model, generate_sparse_vectors, prepend_filename_to_chunks, data_source_id, request_id].hash
|
221
|
+
[tags, folder, filters, chunk_size, chunk_overlap, skip_embedding_generation, embedding_model, generate_sparse_vectors, prepend_filename_to_chunks, data_source_id, request_id, sync_attachments].hash
|
210
222
|
end
|
211
223
|
|
212
224
|
# Builds the object from hash
|
@@ -33,6 +33,8 @@ module Carbon
|
|
33
33
|
|
34
34
|
attr_accessor :set_page_as_boundary
|
35
35
|
|
36
|
+
attr_accessor :enable_file_picker
|
37
|
+
|
36
38
|
# Attribute mapping from ruby-style variable name to JSON key.
|
37
39
|
def self.attribute_map
|
38
40
|
{
|
@@ -45,7 +47,8 @@ module Carbon
|
|
45
47
|
:'prepend_filename_to_chunks' => :'prepend_filename_to_chunks',
|
46
48
|
:'max_items_per_chunk' => :'max_items_per_chunk',
|
47
49
|
:'sync_files_on_connection' => :'sync_files_on_connection',
|
48
|
-
:'set_page_as_boundary' => :'set_page_as_boundary'
|
50
|
+
:'set_page_as_boundary' => :'set_page_as_boundary',
|
51
|
+
:'enable_file_picker' => :'enable_file_picker'
|
49
52
|
}
|
50
53
|
end
|
51
54
|
|
@@ -66,7 +69,8 @@ module Carbon
|
|
66
69
|
:'prepend_filename_to_chunks' => :'Boolean',
|
67
70
|
:'max_items_per_chunk' => :'Integer',
|
68
71
|
:'sync_files_on_connection' => :'Boolean',
|
69
|
-
:'set_page_as_boundary' => :'Boolean'
|
72
|
+
:'set_page_as_boundary' => :'Boolean',
|
73
|
+
:'enable_file_picker' => :'Boolean'
|
70
74
|
}
|
71
75
|
end
|
72
76
|
|
@@ -155,6 +159,12 @@ module Carbon
|
|
155
159
|
else
|
156
160
|
self.set_page_as_boundary = false
|
157
161
|
end
|
162
|
+
|
163
|
+
if attributes.key?(:'enable_file_picker')
|
164
|
+
self.enable_file_picker = attributes[:'enable_file_picker']
|
165
|
+
else
|
166
|
+
self.enable_file_picker = true
|
167
|
+
end
|
158
168
|
end
|
159
169
|
|
160
170
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -184,7 +194,8 @@ module Carbon
|
|
184
194
|
prepend_filename_to_chunks == o.prepend_filename_to_chunks &&
|
185
195
|
max_items_per_chunk == o.max_items_per_chunk &&
|
186
196
|
sync_files_on_connection == o.sync_files_on_connection &&
|
187
|
-
set_page_as_boundary == o.set_page_as_boundary
|
197
|
+
set_page_as_boundary == o.set_page_as_boundary &&
|
198
|
+
enable_file_picker == o.enable_file_picker
|
188
199
|
end
|
189
200
|
|
190
201
|
# @see the `==` method
|
@@ -196,7 +207,7 @@ module Carbon
|
|
196
207
|
# Calculates hash code according to all attributes.
|
197
208
|
# @return [Integer] Hash code
|
198
209
|
def hash
|
199
|
-
[tags, chunk_size, chunk_overlap, skip_embedding_generation, embedding_model, generate_sparse_vectors, prepend_filename_to_chunks, max_items_per_chunk, sync_files_on_connection, set_page_as_boundary].hash
|
210
|
+
[tags, chunk_size, chunk_overlap, skip_embedding_generation, embedding_model, generate_sparse_vectors, prepend_filename_to_chunks, max_items_per_chunk, sync_files_on_connection, set_page_as_boundary, enable_file_picker].hash
|
200
211
|
end
|
201
212
|
|
202
213
|
# Builds the object from hash
|
@@ -16,11 +16,19 @@ module Carbon
|
|
16
16
|
|
17
17
|
attr_accessor :auto_sync_enabled_sources
|
18
18
|
|
19
|
+
# Custom file upload limit for the user over *all* user's files across all uploads. If set, then the user will not be allowed to upload more files than this limit. If not set, or if set to -1, then the user will have no limit.
|
20
|
+
attr_accessor :max_files
|
21
|
+
|
22
|
+
# Custom file upload limit for the user across a single upload. If set, then the user will not be allowed to upload more files than this limit in a single upload. If not set, or if set to -1, then the user will have no limit.
|
23
|
+
attr_accessor :max_files_per_upload
|
24
|
+
|
19
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
20
26
|
def self.attribute_map
|
21
27
|
{
|
22
28
|
:'customer_ids' => :'customer_ids',
|
23
|
-
:'auto_sync_enabled_sources' => :'auto_sync_enabled_sources'
|
29
|
+
:'auto_sync_enabled_sources' => :'auto_sync_enabled_sources',
|
30
|
+
:'max_files' => :'max_files',
|
31
|
+
:'max_files_per_upload' => :'max_files_per_upload'
|
24
32
|
}
|
25
33
|
end
|
26
34
|
|
@@ -33,14 +41,18 @@ module Carbon
|
|
33
41
|
def self.openapi_types
|
34
42
|
{
|
35
43
|
:'customer_ids' => :'Array<String>',
|
36
|
-
:'auto_sync_enabled_sources' => :'AutoSyncEnabledSourcesProperty'
|
44
|
+
:'auto_sync_enabled_sources' => :'AutoSyncEnabledSourcesProperty',
|
45
|
+
:'max_files' => :'Integer',
|
46
|
+
:'max_files_per_upload' => :'Integer'
|
37
47
|
}
|
38
48
|
end
|
39
49
|
|
40
50
|
# List of attributes with nullable: true
|
41
51
|
def self.openapi_nullable
|
42
52
|
Set.new([
|
43
|
-
:'auto_sync_enabled_sources'
|
53
|
+
:'auto_sync_enabled_sources',
|
54
|
+
:'max_files',
|
55
|
+
:'max_files_per_upload'
|
44
56
|
])
|
45
57
|
end
|
46
58
|
|
@@ -68,6 +80,14 @@ module Carbon
|
|
68
80
|
if attributes.key?(:'auto_sync_enabled_sources')
|
69
81
|
self.auto_sync_enabled_sources = attributes[:'auto_sync_enabled_sources']
|
70
82
|
end
|
83
|
+
|
84
|
+
if attributes.key?(:'max_files')
|
85
|
+
self.max_files = attributes[:'max_files']
|
86
|
+
end
|
87
|
+
|
88
|
+
if attributes.key?(:'max_files_per_upload')
|
89
|
+
self.max_files_per_upload = attributes[:'max_files_per_upload']
|
90
|
+
end
|
71
91
|
end
|
72
92
|
|
73
93
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -82,6 +102,14 @@ module Carbon
|
|
82
102
|
invalid_properties.push('invalid value for "customer_ids", number of items must be less than or equal to 100.')
|
83
103
|
end
|
84
104
|
|
105
|
+
if !@max_files.nil? && @max_files < -1
|
106
|
+
invalid_properties.push('invalid value for "max_files", must be greater than or equal to -1.')
|
107
|
+
end
|
108
|
+
|
109
|
+
if !@max_files_per_upload.nil? && @max_files_per_upload < -1
|
110
|
+
invalid_properties.push('invalid value for "max_files_per_upload", must be greater than or equal to -1.')
|
111
|
+
end
|
112
|
+
|
85
113
|
invalid_properties
|
86
114
|
end
|
87
115
|
|
@@ -90,6 +118,8 @@ module Carbon
|
|
90
118
|
def valid?
|
91
119
|
return false if @customer_ids.nil?
|
92
120
|
return false if @customer_ids.length > 100
|
121
|
+
return false if !@max_files.nil? && @max_files < -1
|
122
|
+
return false if !@max_files_per_upload.nil? && @max_files_per_upload < -1
|
93
123
|
true
|
94
124
|
end
|
95
125
|
|
@@ -107,13 +137,35 @@ module Carbon
|
|
107
137
|
@customer_ids = customer_ids
|
108
138
|
end
|
109
139
|
|
140
|
+
# Custom attribute writer method with validation
|
141
|
+
# @param [Object] max_files Value to be assigned
|
142
|
+
def max_files=(max_files)
|
143
|
+
if !max_files.nil? && max_files < -1
|
144
|
+
fail ArgumentError, 'invalid value for "max_files", must be greater than or equal to -1.'
|
145
|
+
end
|
146
|
+
|
147
|
+
@max_files = max_files
|
148
|
+
end
|
149
|
+
|
150
|
+
# Custom attribute writer method with validation
|
151
|
+
# @param [Object] max_files_per_upload Value to be assigned
|
152
|
+
def max_files_per_upload=(max_files_per_upload)
|
153
|
+
if !max_files_per_upload.nil? && max_files_per_upload < -1
|
154
|
+
fail ArgumentError, 'invalid value for "max_files_per_upload", must be greater than or equal to -1.'
|
155
|
+
end
|
156
|
+
|
157
|
+
@max_files_per_upload = max_files_per_upload
|
158
|
+
end
|
159
|
+
|
110
160
|
# Checks equality by comparing each attribute.
|
111
161
|
# @param [Object] Object to be compared
|
112
162
|
def ==(o)
|
113
163
|
return true if self.equal?(o)
|
114
164
|
self.class == o.class &&
|
115
165
|
customer_ids == o.customer_ids &&
|
116
|
-
auto_sync_enabled_sources == o.auto_sync_enabled_sources
|
166
|
+
auto_sync_enabled_sources == o.auto_sync_enabled_sources &&
|
167
|
+
max_files == o.max_files &&
|
168
|
+
max_files_per_upload == o.max_files_per_upload
|
117
169
|
end
|
118
170
|
|
119
171
|
# @see the `==` method
|
@@ -125,7 +177,7 @@ module Carbon
|
|
125
177
|
# Calculates hash code according to all attributes.
|
126
178
|
# @return [Integer] Hash code
|
127
179
|
def hash
|
128
|
-
[customer_ids, auto_sync_enabled_sources].hash
|
180
|
+
[customer_ids, auto_sync_enabled_sources, max_files, max_files_per_upload].hash
|
129
181
|
end
|
130
182
|
|
131
183
|
# Builds the object from hash
|
@@ -47,6 +47,8 @@ module Carbon
|
|
47
47
|
|
48
48
|
attr_accessor :ocr_properties
|
49
49
|
|
50
|
+
attr_accessor :ocr_job_started_at
|
51
|
+
|
50
52
|
attr_accessor :name
|
51
53
|
|
52
54
|
attr_accessor :parent_id
|
@@ -92,6 +94,7 @@ module Carbon
|
|
92
94
|
:'chunk_overlap' => :'chunk_overlap',
|
93
95
|
:'chunk_properties' => :'chunk_properties',
|
94
96
|
:'ocr_properties' => :'ocr_properties',
|
97
|
+
:'ocr_job_started_at' => :'ocr_job_started_at',
|
95
98
|
:'name' => :'name',
|
96
99
|
:'parent_id' => :'parent_id',
|
97
100
|
:'enable_auto_sync' => :'enable_auto_sync',
|
@@ -133,6 +136,7 @@ module Carbon
|
|
133
136
|
:'chunk_overlap' => :'Integer',
|
134
137
|
:'chunk_properties' => :'ChunkPropertiesNullable',
|
135
138
|
:'ocr_properties' => :'Object',
|
139
|
+
:'ocr_job_started_at' => :'Time',
|
136
140
|
:'name' => :'String',
|
137
141
|
:'parent_id' => :'Integer',
|
138
142
|
:'enable_auto_sync' => :'Boolean',
|
@@ -162,6 +166,7 @@ module Carbon
|
|
162
166
|
:'chunk_size',
|
163
167
|
:'chunk_overlap',
|
164
168
|
:'chunk_properties',
|
169
|
+
:'ocr_job_started_at',
|
165
170
|
:'name',
|
166
171
|
:'parent_id',
|
167
172
|
:'enable_auto_sync',
|
@@ -263,6 +268,10 @@ module Carbon
|
|
263
268
|
self.ocr_properties = attributes[:'ocr_properties']
|
264
269
|
end
|
265
270
|
|
271
|
+
if attributes.key?(:'ocr_job_started_at')
|
272
|
+
self.ocr_job_started_at = attributes[:'ocr_job_started_at']
|
273
|
+
end
|
274
|
+
|
266
275
|
if attributes.key?(:'name')
|
267
276
|
self.name = attributes[:'name']
|
268
277
|
end
|
@@ -398,6 +407,7 @@ module Carbon
|
|
398
407
|
chunk_overlap == o.chunk_overlap &&
|
399
408
|
chunk_properties == o.chunk_properties &&
|
400
409
|
ocr_properties == o.ocr_properties &&
|
410
|
+
ocr_job_started_at == o.ocr_job_started_at &&
|
401
411
|
name == o.name &&
|
402
412
|
parent_id == o.parent_id &&
|
403
413
|
enable_auto_sync == o.enable_auto_sync &&
|
@@ -421,7 +431,7 @@ module Carbon
|
|
421
431
|
# Calculates hash code according to all attributes.
|
422
432
|
# @return [Integer] Hash code
|
423
433
|
def hash
|
424
|
-
[tags, id, source, organization_id, organization_supplied_user_id, organization_user_data_source_id, external_file_id, external_url, sync_status, sync_error_message, last_sync, file_statistics, file_metadata, embedding_properties, chunk_size, chunk_overlap, chunk_properties, ocr_properties, name, parent_id, enable_auto_sync, presigned_url, parsed_text_url, additional_presigned_urls, skip_embedding_generation, source_created_at, generate_sparse_vectors, request_id, created_at, updated_at].hash
|
434
|
+
[tags, id, source, organization_id, organization_supplied_user_id, organization_user_data_source_id, external_file_id, external_url, sync_status, sync_error_message, last_sync, file_statistics, file_metadata, embedding_properties, chunk_size, chunk_overlap, chunk_properties, ocr_properties, ocr_job_started_at, name, parent_id, enable_auto_sync, presigned_url, parsed_text_url, additional_presigned_urls, skip_embedding_generation, source_created_at, generate_sparse_vectors, request_id, created_at, updated_at].hash
|
425
435
|
end
|
426
436
|
|
427
437
|
# Builds the object from hash
|
@@ -33,6 +33,8 @@ module Carbon
|
|
33
33
|
|
34
34
|
attr_accessor :enabled_features
|
35
35
|
|
36
|
+
attr_accessor :custom_limits
|
37
|
+
|
36
38
|
# Attribute mapping from ruby-style variable name to JSON key.
|
37
39
|
def self.attribute_map
|
38
40
|
{
|
@@ -46,7 +48,8 @@ module Carbon
|
|
46
48
|
:'num_characters_synced' => :'num_characters_synced',
|
47
49
|
:'num_tokens_synced' => :'num_tokens_synced',
|
48
50
|
:'unique_file_tags' => :'unique_file_tags',
|
49
|
-
:'enabled_features' => :'enabled_features'
|
51
|
+
:'enabled_features' => :'enabled_features',
|
52
|
+
:'custom_limits' => :'custom_limits'
|
50
53
|
}
|
51
54
|
end
|
52
55
|
|
@@ -68,7 +71,8 @@ module Carbon
|
|
68
71
|
:'num_characters_synced' => :'Integer',
|
69
72
|
:'num_tokens_synced' => :'Integer',
|
70
73
|
:'unique_file_tags' => :'Array<Object>',
|
71
|
-
:'enabled_features' => :'Object'
|
74
|
+
:'enabled_features' => :'Object',
|
75
|
+
:'custom_limits' => :'Object'
|
72
76
|
}
|
73
77
|
end
|
74
78
|
|
@@ -76,7 +80,7 @@ module Carbon
|
|
76
80
|
def self.openapi_nullable
|
77
81
|
Set.new([
|
78
82
|
:'deleted_at',
|
79
|
-
:'enabled_features'
|
83
|
+
:'enabled_features',
|
80
84
|
])
|
81
85
|
end
|
82
86
|
|
@@ -140,6 +144,10 @@ module Carbon
|
|
140
144
|
if attributes.key?(:'enabled_features')
|
141
145
|
self.enabled_features = attributes[:'enabled_features']
|
142
146
|
end
|
147
|
+
|
148
|
+
if attributes.key?(:'custom_limits')
|
149
|
+
self.custom_limits = attributes[:'custom_limits']
|
150
|
+
end
|
143
151
|
end
|
144
152
|
|
145
153
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -182,6 +190,10 @@ module Carbon
|
|
182
190
|
invalid_properties.push('invalid value for "unique_file_tags", unique_file_tags cannot be nil.')
|
183
191
|
end
|
184
192
|
|
193
|
+
if @custom_limits.nil?
|
194
|
+
invalid_properties.push('invalid value for "custom_limits", custom_limits cannot be nil.')
|
195
|
+
end
|
196
|
+
|
185
197
|
invalid_properties
|
186
198
|
end
|
187
199
|
|
@@ -197,6 +209,7 @@ module Carbon
|
|
197
209
|
return false if @num_characters_synced.nil?
|
198
210
|
return false if @num_tokens_synced.nil?
|
199
211
|
return false if @unique_file_tags.nil?
|
212
|
+
return false if @custom_limits.nil?
|
200
213
|
true
|
201
214
|
end
|
202
215
|
|
@@ -215,7 +228,8 @@ module Carbon
|
|
215
228
|
num_characters_synced == o.num_characters_synced &&
|
216
229
|
num_tokens_synced == o.num_tokens_synced &&
|
217
230
|
unique_file_tags == o.unique_file_tags &&
|
218
|
-
enabled_features == o.enabled_features
|
231
|
+
enabled_features == o.enabled_features &&
|
232
|
+
custom_limits == o.custom_limits
|
219
233
|
end
|
220
234
|
|
221
235
|
# @see the `==` method
|
@@ -227,7 +241,7 @@ module Carbon
|
|
227
241
|
# Calculates hash code according to all attributes.
|
228
242
|
# @return [Integer] Hash code
|
229
243
|
def hash
|
230
|
-
[id, organization_id, organization_supplied_user_id, created_at, updated_at, deleted_at, num_files_synced, num_characters_synced, num_tokens_synced, unique_file_tags, enabled_features].hash
|
244
|
+
[id, organization_id, organization_supplied_user_id, created_at, updated_at, deleted_at, num_files_synced, num_characters_synced, num_tokens_synced, unique_file_tags, enabled_features, custom_limits].hash
|
231
245
|
end
|
232
246
|
|
233
247
|
# Builds the object from hash
|
@@ -151,4 +151,10 @@ describe Carbon::OAuthURLRequest do
|
|
151
151
|
end
|
152
152
|
end
|
153
153
|
|
154
|
+
describe 'test attribute "enable_file_picker"' do
|
155
|
+
it 'should work' do
|
156
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
157
|
+
end
|
158
|
+
end
|
159
|
+
|
154
160
|
end
|
@@ -31,4 +31,16 @@ describe Carbon::UpdateUsersInput do
|
|
31
31
|
end
|
32
32
|
end
|
33
33
|
|
34
|
+
describe 'test attribute "max_files"' do
|
35
|
+
it 'should work' do
|
36
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
describe 'test attribute "max_files_per_upload"' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
34
46
|
end
|
@@ -127,6 +127,12 @@ describe Carbon::UserFile do
|
|
127
127
|
end
|
128
128
|
end
|
129
129
|
|
130
|
+
describe 'test attribute "ocr_job_started_at"' do
|
131
|
+
it 'should work' do
|
132
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
133
|
+
end
|
134
|
+
end
|
135
|
+
|
130
136
|
describe 'test attribute "name"' do
|
131
137
|
it 'should work' do
|
132
138
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: carbon_ruby_sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Konfig
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-04-
|
11
|
+
date: 2024-04-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|