carbon_ruby_sdk 0.1.12 → 0.1.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +5 -5
  3. data/README.md +25 -2
  4. data/lib/carbon_ruby_sdk/api/integrations_api.rb +60 -20
  5. data/lib/carbon_ruby_sdk/models/embedding_and_chunk.rb +15 -5
  6. data/lib/carbon_ruby_sdk/models/fresh_desk_connect_request.rb +15 -5
  7. data/lib/carbon_ruby_sdk/models/gitbook_connect_request.rb +15 -5
  8. data/lib/carbon_ruby_sdk/models/gitbook_sync_request.rb +15 -5
  9. data/lib/carbon_ruby_sdk/models/gmail_sync_input.rb +15 -5
  10. data/lib/carbon_ruby_sdk/models/o_auth_url_request.rb +16 -5
  11. data/lib/carbon_ruby_sdk/models/organization_user_files_to_sync_filters.rb +32 -4
  12. data/lib/carbon_ruby_sdk/models/outlook_sync_input.rb +15 -5
  13. data/lib/carbon_ruby_sdk/models/rss_feed_input.rb +15 -5
  14. data/lib/carbon_ruby_sdk/models/s3_file_sync_input.rb +15 -5
  15. data/lib/carbon_ruby_sdk/models/sync_files_request.rb +14 -4
  16. data/lib/carbon_ruby_sdk/models/user_file.rb +11 -1
  17. data/lib/carbon_ruby_sdk/version.rb +1 -1
  18. data/spec/models/embedding_and_chunk_spec.rb +6 -0
  19. data/spec/models/fresh_desk_connect_request_spec.rb +6 -0
  20. data/spec/models/gitbook_connect_request_spec.rb +6 -0
  21. data/spec/models/gitbook_sync_request_spec.rb +6 -0
  22. data/spec/models/gmail_sync_input_spec.rb +6 -0
  23. data/spec/models/o_auth_url_request_spec.rb +6 -0
  24. data/spec/models/organization_user_files_to_sync_filters_spec.rb +6 -0
  25. data/spec/models/outlook_sync_input_spec.rb +6 -0
  26. data/spec/models/rss_feed_input_spec.rb +6 -0
  27. data/spec/models/s3_file_sync_input_spec.rb +6 -0
  28. data/spec/models/sync_files_request_spec.rb +6 -0
  29. data/spec/models/user_file_spec.rb +6 -0
  30. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5179770ad5d7c1f5b1c2ef1af3458c580828918db3f930a6ee35647a86a87ad9
4
- data.tar.gz: b36c127b805ea1bd77d83e300fb5a34ef8a4578a4ce2b81895000381ff3231d5
3
+ metadata.gz: f933446ddcb13014a55fd9b6f8744a083f495d54597cf898af90ca17caf3ac0b
4
+ data.tar.gz: b8d7e752e42e617d4faa0595a8cd41c6b0b3088c678542bc7a8f2be9abe506a3
5
5
  SHA512:
6
- metadata.gz: 1933c50cbc17a4665a8dce352a75454899c8a6335c69382a71490dbacfa8cc37064b2122cfd77c7de2c9afa711d3483b7cf40a939d92d35e90b631ee83383eee
7
- data.tar.gz: c1355a71d679989804e3d33119a9e3ebcd2176974372003f0db176b406079b5de1b1d455b2f0b91674a8d66fa35fe8ce1d3b6884f355dd9021ecac709d3818eb
6
+ metadata.gz: 9d76f26f825fdc1560d7a2b4e103b4b29da0b81bad1131d17583779cb6f5254e717732cb29838b5d80ce2dfebd62dd4ca4b59bb41a1d005f8f88f7f9c237dc47
7
+ data.tar.gz: 1130a78f7270d44827e133cc2a8b6deffb10040b27091e02ec5e54bae72969d0ab63b6716d704244983ad4979351f1c2e5ca0f84005f1e4eae8e7c57c2f87348
data/Gemfile.lock CHANGED
@@ -42,7 +42,7 @@ GEM
42
42
  rainbow (3.1.1)
43
43
  rake (13.0.6)
44
44
  regexp_parser (2.9.0)
45
- reline (0.4.2)
45
+ reline (0.5.0)
46
46
  io-console (~> 0.5)
47
47
  rexml (3.2.6)
48
48
  rspec (3.13.0)
@@ -67,14 +67,14 @@ GEM
67
67
  rubocop-ast (>= 1.2.0, < 2.0)
68
68
  ruby-progressbar (~> 1.7)
69
69
  unicode-display_width (>= 1.4.0, < 3.0)
70
- rubocop-ast (1.30.0)
71
- parser (>= 3.2.1.0)
70
+ rubocop-ast (1.31.2)
71
+ parser (>= 3.3.0.4)
72
72
  ruby-progressbar (1.13.0)
73
73
  unicode-display_width (2.5.0)
74
74
  uri (0.13.0)
75
75
 
76
76
  PLATFORMS
77
- arm64-darwin-21
77
+ arm64-darwin-22
78
78
 
79
79
  DEPENDENCIES
80
80
  carbon_ruby_sdk!
@@ -86,4 +86,4 @@ DEPENDENCIES
86
86
  rubocop (~> 1.12.1)
87
87
 
88
88
  BUNDLED WITH
89
- 2.3.7
89
+ 2.4.19
data/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  Connect external data to LLMs, no matter the source.
8
8
 
9
- [![npm](https://img.shields.io/badge/gem-v0.1.12-blue)](https://rubygems.org/gems/carbon_ruby_sdk/versions/0.1.12)
9
+ [![npm](https://img.shields.io/badge/gem-v0.1.13-blue)](https://rubygems.org/gems/carbon_ruby_sdk/versions/0.1.13)
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.12'
83
+ gem 'carbon_ruby_sdk', '~> 0.1.13'
84
84
  ```
85
85
 
86
86
  ## Getting Started<a id="getting-started"></a>
@@ -1230,6 +1230,7 @@ result = carbon.integrations.connect_freshdesk(
1230
1230
  generate_sparse_vectors: false,
1231
1231
  prepend_filename_to_chunks: false,
1232
1232
  sync_files_on_connection: true,
1233
+ request_id: "string_example",
1233
1234
  )
1234
1235
  p result
1235
1236
  ```
@@ -1246,6 +1247,7 @@ p result
1246
1247
  ##### generate_sparse_vectors: `Boolean`<a id="generate_sparse_vectors-boolean"></a>
1247
1248
  ##### prepend_filename_to_chunks: `Boolean`<a id="prepend_filename_to_chunks-boolean"></a>
1248
1249
  ##### sync_files_on_connection: `Boolean`<a id="sync_files_on_connection-boolean"></a>
1250
+ ##### request_id: `String`<a id="request_id-string"></a>
1249
1251
  #### 🔄 Return<a id="🔄-return"></a>
1250
1252
 
1251
1253
  [GenericSuccessResponse](./lib/carbon_ruby_sdk/models/generic_success_response.rb)
@@ -1280,6 +1282,7 @@ result = carbon.integrations.connect_gitbook(
1280
1282
  generate_sparse_vectors: false,
1281
1283
  prepend_filename_to_chunks: false,
1282
1284
  sync_files_on_connection: true,
1285
+ request_id: "string_example",
1283
1286
  )
1284
1287
  p result
1285
1288
  ```
@@ -1296,6 +1299,7 @@ p result
1296
1299
  ##### generate_sparse_vectors: `Boolean`<a id="generate_sparse_vectors-boolean"></a>
1297
1300
  ##### prepend_filename_to_chunks: `Boolean`<a id="prepend_filename_to_chunks-boolean"></a>
1298
1301
  ##### sync_files_on_connection: `Boolean`<a id="sync_files_on_connection-boolean"></a>
1302
+ ##### request_id: `String`<a id="request_id-string"></a>
1299
1303
  #### 🔄 Return<a id="🔄-return"></a>
1300
1304
 
1301
1305
  [GenericSuccessResponse](./lib/carbon_ruby_sdk/models/generic_success_response.rb)
@@ -1376,6 +1380,7 @@ result = carbon.integrations.get_oauth_url(
1376
1380
  set_page_as_boundary: false,
1377
1381
  data_source_id: 1,
1378
1382
  connecting_new_account: false,
1383
+ request_id: "string_example",
1379
1384
  )
1380
1385
  p result
1381
1386
  ```
@@ -1415,6 +1420,10 @@ connecting a new account.
1415
1420
  Used to connect a new data source. If not specified, we will attempt to create a
1416
1421
  sync URL for an existing data source based on type and ID.
1417
1422
 
1423
+ ##### request_id: `String`<a id="request_id-string"></a>
1424
+ This request id will be added to all files that get synced using the generated
1425
+ OAuth URL
1426
+
1418
1427
  #### 🔄 Return<a id="🔄-return"></a>
1419
1428
 
1420
1429
  [OuthURLResponse](./lib/carbon_ruby_sdk/models/outh_url_response.rb)
@@ -1631,6 +1640,7 @@ result = carbon.integrations.sync_confluence(
1631
1640
  prepend_filename_to_chunks: false,
1632
1641
  max_items_per_chunk: 1,
1633
1642
  set_page_as_boundary: false,
1643
+ request_id: "string_example",
1634
1644
  )
1635
1645
  p result
1636
1646
  ```
@@ -1650,6 +1660,7 @@ p result
1650
1660
  Number of objects per chunk. For csv, tsv, xlsx, and json files only.
1651
1661
 
1652
1662
  ##### set_page_as_boundary: `Boolean`<a id="set_page_as_boundary-boolean"></a>
1663
+ ##### request_id: `String`<a id="request_id-string"></a>
1653
1664
  #### 🔄 Return<a id="🔄-return"></a>
1654
1665
 
1655
1666
  [GenericSuccessResponse](./lib/carbon_ruby_sdk/models/generic_success_response.rb)
@@ -1716,6 +1727,7 @@ result = carbon.integrations.sync_files(
1716
1727
  prepend_filename_to_chunks: false,
1717
1728
  max_items_per_chunk: 1,
1718
1729
  set_page_as_boundary: false,
1730
+ request_id: "string_example",
1719
1731
  )
1720
1732
  p result
1721
1733
  ```
@@ -1735,6 +1747,7 @@ p result
1735
1747
  Number of objects per chunk. For csv, tsv, xlsx, and json files only.
1736
1748
 
1737
1749
  ##### set_page_as_boundary: `Boolean`<a id="set_page_as_boundary-boolean"></a>
1750
+ ##### request_id: `String`<a id="request_id-string"></a>
1738
1751
  #### 🔄 Return<a id="🔄-return"></a>
1739
1752
 
1740
1753
  [GenericSuccessResponse](./lib/carbon_ruby_sdk/models/generic_success_response.rb)
@@ -1768,6 +1781,7 @@ result = carbon.integrations.sync_gitbook(
1768
1781
  embedding_model: "OPENAI",
1769
1782
  generate_sparse_vectors: false,
1770
1783
  prepend_filename_to_chunks: false,
1784
+ request_id: "string_example",
1771
1785
  )
1772
1786
  p result
1773
1787
  ```
@@ -1783,6 +1797,7 @@ p result
1783
1797
  ##### embedding_model: [`EmbeddingGenerators`](./lib/carbon_ruby_sdk/models/embedding_generators.rb)<a id="embedding_model-embeddinggeneratorslibcarbon_ruby_sdkmodelsembedding_generatorsrb"></a>
1784
1798
  ##### generate_sparse_vectors: `Boolean`<a id="generate_sparse_vectors-boolean"></a>
1785
1799
  ##### prepend_filename_to_chunks: `Boolean`<a id="prepend_filename_to_chunks-boolean"></a>
1800
+ ##### request_id: `String`<a id="request_id-string"></a>
1786
1801
  #### 🌐 Endpoint<a id="🌐-endpoint"></a>
1787
1802
 
1788
1803
  `/integrations/gitbook/sync` `POST`
@@ -1858,6 +1873,7 @@ result = carbon.integrations.sync_gmail(
1858
1873
  generate_sparse_vectors: false,
1859
1874
  prepend_filename_to_chunks: false,
1860
1875
  data_source_id: 1,
1876
+ request_id: "string_example",
1861
1877
  )
1862
1878
  p result
1863
1879
  ```
@@ -1873,6 +1889,7 @@ p result
1873
1889
  ##### generate_sparse_vectors: `Boolean`<a id="generate_sparse_vectors-boolean"></a>
1874
1890
  ##### prepend_filename_to_chunks: `Boolean`<a id="prepend_filename_to_chunks-boolean"></a>
1875
1891
  ##### data_source_id: `Integer`<a id="data_source_id-integer"></a>
1892
+ ##### request_id: `String`<a id="request_id-string"></a>
1876
1893
  #### 🔄 Return<a id="🔄-return"></a>
1877
1894
 
1878
1895
  [GenericSuccessResponse](./lib/carbon_ruby_sdk/models/generic_success_response.rb)
@@ -1963,6 +1980,7 @@ result = carbon.integrations.sync_outlook(
1963
1980
  generate_sparse_vectors: false,
1964
1981
  prepend_filename_to_chunks: false,
1965
1982
  data_source_id: 1,
1983
+ request_id: "string_example",
1966
1984
  )
1967
1985
  p result
1968
1986
  ```
@@ -1979,6 +1997,7 @@ p result
1979
1997
  ##### generate_sparse_vectors: `Boolean`<a id="generate_sparse_vectors-boolean"></a>
1980
1998
  ##### prepend_filename_to_chunks: `Boolean`<a id="prepend_filename_to_chunks-boolean"></a>
1981
1999
  ##### data_source_id: `Integer`<a id="data_source_id-integer"></a>
2000
+ ##### request_id: `String`<a id="request_id-string"></a>
1982
2001
  #### 🔄 Return<a id="🔄-return"></a>
1983
2002
 
1984
2003
  [GenericSuccessResponse](./lib/carbon_ruby_sdk/models/generic_success_response.rb)
@@ -2008,6 +2027,7 @@ result = carbon.integrations.sync_rss_feed(
2008
2027
  embedding_model: "OPENAI",
2009
2028
  generate_sparse_vectors: false,
2010
2029
  prepend_filename_to_chunks: false,
2030
+ request_id: "string_example",
2011
2031
  )
2012
2032
  p result
2013
2033
  ```
@@ -2022,6 +2042,7 @@ p result
2022
2042
  ##### embedding_model: [`EmbeddingGenerators`](./lib/carbon_ruby_sdk/models/embedding_generators.rb)<a id="embedding_model-embeddinggeneratorslibcarbon_ruby_sdkmodelsembedding_generatorsrb"></a>
2023
2043
  ##### generate_sparse_vectors: `Boolean`<a id="generate_sparse_vectors-boolean"></a>
2024
2044
  ##### prepend_filename_to_chunks: `Boolean`<a id="prepend_filename_to_chunks-boolean"></a>
2045
+ ##### request_id: `String`<a id="request_id-string"></a>
2025
2046
  #### 🔄 Return<a id="🔄-return"></a>
2026
2047
 
2027
2048
  [GenericSuccessResponse](./lib/carbon_ruby_sdk/models/generic_success_response.rb)
@@ -2059,6 +2080,7 @@ result = carbon.integrations.sync_s3_files(
2059
2080
  max_items_per_chunk: 1,
2060
2081
  set_page_as_boundary: false,
2061
2082
  data_source_id: 1,
2083
+ request_id: "string_example",
2062
2084
  )
2063
2085
  p result
2064
2086
  ```
@@ -2078,6 +2100,7 @@ Number of objects per chunk. For csv, tsv, xlsx, and json files only.
2078
2100
 
2079
2101
  ##### set_page_as_boundary: `Boolean`<a id="set_page_as_boundary-boolean"></a>
2080
2102
  ##### data_source_id: `Integer`<a id="data_source_id-integer"></a>
2103
+ ##### request_id: `String`<a id="request_id-string"></a>
2081
2104
  #### 🔄 Return<a id="🔄-return"></a>
2082
2105
 
2083
2106
  [GenericSuccessResponse](./lib/carbon_ruby_sdk/models/generic_success_response.rb)
@@ -130,9 +130,10 @@ module Carbon
130
130
  # @param generate_sparse_vectors [Boolean]
131
131
  # @param prepend_filename_to_chunks [Boolean]
132
132
  # @param sync_files_on_connection [Boolean]
133
+ # @param request_id [String]
133
134
  # @param body [FreshDeskConnectRequest]
134
135
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
135
- 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, extra: {})
136
+ 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, extra: {})
136
137
  _body = {}
137
138
  _body[:tags] = tags if tags != SENTINEL
138
139
  _body[:domain] = domain if domain != SENTINEL
@@ -144,6 +145,7 @@ module Carbon
144
145
  _body[:generate_sparse_vectors] = generate_sparse_vectors if generate_sparse_vectors != SENTINEL
145
146
  _body[:prepend_filename_to_chunks] = prepend_filename_to_chunks if prepend_filename_to_chunks != SENTINEL
146
147
  _body[:sync_files_on_connection] = sync_files_on_connection if sync_files_on_connection != SENTINEL
148
+ _body[:request_id] = request_id if request_id != SENTINEL
147
149
  fresh_desk_connect_request = _body
148
150
  api_response = connect_freshdesk_with_http_info_impl(fresh_desk_connect_request, extra)
149
151
  api_response.data
@@ -167,9 +169,10 @@ module Carbon
167
169
  # @param generate_sparse_vectors [Boolean]
168
170
  # @param prepend_filename_to_chunks [Boolean]
169
171
  # @param sync_files_on_connection [Boolean]
172
+ # @param request_id [String]
170
173
  # @param body [FreshDeskConnectRequest]
171
174
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
172
- 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, extra: {})
175
+ 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, extra: {})
173
176
  _body = {}
174
177
  _body[:tags] = tags if tags != SENTINEL
175
178
  _body[:domain] = domain if domain != SENTINEL
@@ -181,6 +184,7 @@ module Carbon
181
184
  _body[:generate_sparse_vectors] = generate_sparse_vectors if generate_sparse_vectors != SENTINEL
182
185
  _body[:prepend_filename_to_chunks] = prepend_filename_to_chunks if prepend_filename_to_chunks != SENTINEL
183
186
  _body[:sync_files_on_connection] = sync_files_on_connection if sync_files_on_connection != SENTINEL
187
+ _body[:request_id] = request_id if request_id != SENTINEL
184
188
  fresh_desk_connect_request = _body
185
189
  connect_freshdesk_with_http_info_impl(fresh_desk_connect_request, extra)
186
190
  end
@@ -271,9 +275,10 @@ module Carbon
271
275
  # @param generate_sparse_vectors [Boolean]
272
276
  # @param prepend_filename_to_chunks [Boolean]
273
277
  # @param sync_files_on_connection [Boolean]
278
+ # @param request_id [String]
274
279
  # @param body [GitbookConnectRequest]
275
280
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
276
- def connect_gitbook(organization:, access_token:, 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, extra: {})
281
+ def connect_gitbook(organization:, access_token:, 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, extra: {})
277
282
  _body = {}
278
283
  _body[:tags] = tags if tags != SENTINEL
279
284
  _body[:organization] = organization if organization != SENTINEL
@@ -285,6 +290,7 @@ module Carbon
285
290
  _body[:generate_sparse_vectors] = generate_sparse_vectors if generate_sparse_vectors != SENTINEL
286
291
  _body[:prepend_filename_to_chunks] = prepend_filename_to_chunks if prepend_filename_to_chunks != SENTINEL
287
292
  _body[:sync_files_on_connection] = sync_files_on_connection if sync_files_on_connection != SENTINEL
293
+ _body[:request_id] = request_id if request_id != SENTINEL
288
294
  gitbook_connect_request = _body
289
295
  api_response = connect_gitbook_with_http_info_impl(gitbook_connect_request, extra)
290
296
  api_response.data
@@ -307,9 +313,10 @@ module Carbon
307
313
  # @param generate_sparse_vectors [Boolean]
308
314
  # @param prepend_filename_to_chunks [Boolean]
309
315
  # @param sync_files_on_connection [Boolean]
316
+ # @param request_id [String]
310
317
  # @param body [GitbookConnectRequest]
311
318
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
312
- def connect_gitbook_with_http_info(organization:, access_token:, 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, extra: {})
319
+ def connect_gitbook_with_http_info(organization:, access_token:, 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, extra: {})
313
320
  _body = {}
314
321
  _body[:tags] = tags if tags != SENTINEL
315
322
  _body[:organization] = organization if organization != SENTINEL
@@ -321,6 +328,7 @@ module Carbon
321
328
  _body[:generate_sparse_vectors] = generate_sparse_vectors if generate_sparse_vectors != SENTINEL
322
329
  _body[:prepend_filename_to_chunks] = prepend_filename_to_chunks if prepend_filename_to_chunks != SENTINEL
323
330
  _body[:sync_files_on_connection] = sync_files_on_connection if sync_files_on_connection != SENTINEL
331
+ _body[:request_id] = request_id if request_id != SENTINEL
324
332
  gitbook_connect_request = _body
325
333
  connect_gitbook_with_http_info_impl(gitbook_connect_request, extra)
326
334
  end
@@ -534,9 +542,10 @@ module Carbon
534
542
  # @param set_page_as_boundary [Boolean]
535
543
  # @param data_source_id [Integer] Used to specify a data source to sync from if you have multiple connected. It can be skipped if you only have one data source of that type connected or are connecting a new account.
536
544
  # @param connecting_new_account [Boolean] Used to connect a new data source. If not specified, we will attempt to create a sync URL for an existing data source based on type and ID.
545
+ # @param request_id [String] This request id will be added to all files that get synced using the generated OAuth URL
537
546
  # @param body [OAuthURLRequest]
538
547
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
539
- 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, extra: {})
548
+ 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, extra: {})
540
549
  _body = {}
541
550
  _body[:tags] = tags if tags != SENTINEL
542
551
  _body[:scope] = scope if scope != SENTINEL
@@ -557,6 +566,7 @@ module Carbon
557
566
  _body[:set_page_as_boundary] = set_page_as_boundary if set_page_as_boundary != SENTINEL
558
567
  _body[:data_source_id] = data_source_id if data_source_id != SENTINEL
559
568
  _body[:connecting_new_account] = connecting_new_account if connecting_new_account != SENTINEL
569
+ _body[:request_id] = request_id if request_id != SENTINEL
560
570
  o_auth_url_request = _body
561
571
  api_response = get_oauth_url_with_http_info_impl(o_auth_url_request, extra)
562
572
  api_response.data
@@ -588,9 +598,10 @@ module Carbon
588
598
  # @param set_page_as_boundary [Boolean]
589
599
  # @param data_source_id [Integer] Used to specify a data source to sync from if you have multiple connected. It can be skipped if you only have one data source of that type connected or are connecting a new account.
590
600
  # @param connecting_new_account [Boolean] Used to connect a new data source. If not specified, we will attempt to create a sync URL for an existing data source based on type and ID.
601
+ # @param request_id [String] This request id will be added to all files that get synced using the generated OAuth URL
591
602
  # @param body [OAuthURLRequest]
592
603
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
593
- 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, extra: {})
604
+ 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, extra: {})
594
605
  _body = {}
595
606
  _body[:tags] = tags if tags != SENTINEL
596
607
  _body[:scope] = scope if scope != SENTINEL
@@ -611,6 +622,7 @@ module Carbon
611
622
  _body[:set_page_as_boundary] = set_page_as_boundary if set_page_as_boundary != SENTINEL
612
623
  _body[:data_source_id] = data_source_id if data_source_id != SENTINEL
613
624
  _body[:connecting_new_account] = connecting_new_account if connecting_new_account != SENTINEL
625
+ _body[:request_id] = request_id if request_id != SENTINEL
614
626
  o_auth_url_request = _body
615
627
  get_oauth_url_with_http_info_impl(o_auth_url_request, extra)
616
628
  end
@@ -1264,9 +1276,10 @@ module Carbon
1264
1276
  # @param prepend_filename_to_chunks [Boolean]
1265
1277
  # @param max_items_per_chunk [Integer] Number of objects per chunk. For csv, tsv, xlsx, and json files only.
1266
1278
  # @param set_page_as_boundary [Boolean]
1279
+ # @param request_id [String]
1267
1280
  # @param body [SyncFilesRequest]
1268
1281
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
1269
- 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, extra: {})
1282
+ 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: SENTINEL, extra: {})
1270
1283
  _body = {}
1271
1284
  _body[:tags] = tags if tags != SENTINEL
1272
1285
  _body[:data_source_id] = data_source_id if data_source_id != SENTINEL
@@ -1279,6 +1292,7 @@ module Carbon
1279
1292
  _body[:prepend_filename_to_chunks] = prepend_filename_to_chunks if prepend_filename_to_chunks != SENTINEL
1280
1293
  _body[:max_items_per_chunk] = max_items_per_chunk if max_items_per_chunk != SENTINEL
1281
1294
  _body[:set_page_as_boundary] = set_page_as_boundary if set_page_as_boundary != SENTINEL
1295
+ _body[:request_id] = request_id if request_id != SENTINEL
1282
1296
  sync_files_request = _body
1283
1297
  api_response = sync_confluence_with_http_info_impl(sync_files_request, extra)
1284
1298
  api_response.data
@@ -1302,9 +1316,10 @@ module Carbon
1302
1316
  # @param prepend_filename_to_chunks [Boolean]
1303
1317
  # @param max_items_per_chunk [Integer] Number of objects per chunk. For csv, tsv, xlsx, and json files only.
1304
1318
  # @param set_page_as_boundary [Boolean]
1319
+ # @param request_id [String]
1305
1320
  # @param body [SyncFilesRequest]
1306
1321
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
1307
- 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, extra: {})
1322
+ 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: SENTINEL, extra: {})
1308
1323
  _body = {}
1309
1324
  _body[:tags] = tags if tags != SENTINEL
1310
1325
  _body[:data_source_id] = data_source_id if data_source_id != SENTINEL
@@ -1317,6 +1332,7 @@ module Carbon
1317
1332
  _body[:prepend_filename_to_chunks] = prepend_filename_to_chunks if prepend_filename_to_chunks != SENTINEL
1318
1333
  _body[:max_items_per_chunk] = max_items_per_chunk if max_items_per_chunk != SENTINEL
1319
1334
  _body[:set_page_as_boundary] = set_page_as_boundary if set_page_as_boundary != SENTINEL
1335
+ _body[:request_id] = request_id if request_id != SENTINEL
1320
1336
  sync_files_request = _body
1321
1337
  sync_confluence_with_http_info_impl(sync_files_request, extra)
1322
1338
  end
@@ -1500,9 +1516,10 @@ module Carbon
1500
1516
  # @param prepend_filename_to_chunks [Boolean]
1501
1517
  # @param max_items_per_chunk [Integer] Number of objects per chunk. For csv, tsv, xlsx, and json files only.
1502
1518
  # @param set_page_as_boundary [Boolean]
1519
+ # @param request_id [String]
1503
1520
  # @param body [SyncFilesRequest]
1504
1521
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
1505
- 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, extra: {})
1522
+ 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: SENTINEL, extra: {})
1506
1523
  _body = {}
1507
1524
  _body[:tags] = tags if tags != SENTINEL
1508
1525
  _body[:data_source_id] = data_source_id if data_source_id != SENTINEL
@@ -1515,6 +1532,7 @@ module Carbon
1515
1532
  _body[:prepend_filename_to_chunks] = prepend_filename_to_chunks if prepend_filename_to_chunks != SENTINEL
1516
1533
  _body[:max_items_per_chunk] = max_items_per_chunk if max_items_per_chunk != SENTINEL
1517
1534
  _body[:set_page_as_boundary] = set_page_as_boundary if set_page_as_boundary != SENTINEL
1535
+ _body[:request_id] = request_id if request_id != SENTINEL
1518
1536
  sync_files_request = _body
1519
1537
  api_response = sync_files_with_http_info_impl(sync_files_request, extra)
1520
1538
  api_response.data
@@ -1538,9 +1556,10 @@ module Carbon
1538
1556
  # @param prepend_filename_to_chunks [Boolean]
1539
1557
  # @param max_items_per_chunk [Integer] Number of objects per chunk. For csv, tsv, xlsx, and json files only.
1540
1558
  # @param set_page_as_boundary [Boolean]
1559
+ # @param request_id [String]
1541
1560
  # @param body [SyncFilesRequest]
1542
1561
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
1543
- 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, extra: {})
1562
+ 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: SENTINEL, extra: {})
1544
1563
  _body = {}
1545
1564
  _body[:tags] = tags if tags != SENTINEL
1546
1565
  _body[:data_source_id] = data_source_id if data_source_id != SENTINEL
@@ -1553,6 +1572,7 @@ module Carbon
1553
1572
  _body[:prepend_filename_to_chunks] = prepend_filename_to_chunks if prepend_filename_to_chunks != SENTINEL
1554
1573
  _body[:max_items_per_chunk] = max_items_per_chunk if max_items_per_chunk != SENTINEL
1555
1574
  _body[:set_page_as_boundary] = set_page_as_boundary if set_page_as_boundary != SENTINEL
1575
+ _body[:request_id] = request_id if request_id != SENTINEL
1556
1576
  sync_files_request = _body
1557
1577
  sync_files_with_http_info_impl(sync_files_request, extra)
1558
1578
  end
@@ -1640,9 +1660,10 @@ module Carbon
1640
1660
  # @param embedding_model [EmbeddingGenerators]
1641
1661
  # @param generate_sparse_vectors [Boolean]
1642
1662
  # @param prepend_filename_to_chunks [Boolean]
1663
+ # @param request_id [String]
1643
1664
  # @param body [GitbookSyncRequest]
1644
1665
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
1645
- def sync_gitbook(space_ids:, data_source_id:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, extra: {})
1666
+ def sync_gitbook(space_ids:, data_source_id:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, request_id: SENTINEL, extra: {})
1646
1667
  _body = {}
1647
1668
  _body[:tags] = tags if tags != SENTINEL
1648
1669
  _body[:space_ids] = space_ids if space_ids != SENTINEL
@@ -1653,6 +1674,7 @@ module Carbon
1653
1674
  _body[:embedding_model] = embedding_model if embedding_model != SENTINEL
1654
1675
  _body[:generate_sparse_vectors] = generate_sparse_vectors if generate_sparse_vectors != SENTINEL
1655
1676
  _body[:prepend_filename_to_chunks] = prepend_filename_to_chunks if prepend_filename_to_chunks != SENTINEL
1677
+ _body[:request_id] = request_id if request_id != SENTINEL
1656
1678
  gitbook_sync_request = _body
1657
1679
  api_response = sync_gitbook_with_http_info_impl(gitbook_sync_request, extra)
1658
1680
  api_response.data
@@ -1672,9 +1694,10 @@ module Carbon
1672
1694
  # @param embedding_model [EmbeddingGenerators]
1673
1695
  # @param generate_sparse_vectors [Boolean]
1674
1696
  # @param prepend_filename_to_chunks [Boolean]
1697
+ # @param request_id [String]
1675
1698
  # @param body [GitbookSyncRequest]
1676
1699
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
1677
- def sync_gitbook_with_http_info(space_ids:, data_source_id:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, extra: {})
1700
+ def sync_gitbook_with_http_info(space_ids:, data_source_id:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, request_id: SENTINEL, extra: {})
1678
1701
  _body = {}
1679
1702
  _body[:tags] = tags if tags != SENTINEL
1680
1703
  _body[:space_ids] = space_ids if space_ids != SENTINEL
@@ -1685,6 +1708,7 @@ module Carbon
1685
1708
  _body[:embedding_model] = embedding_model if embedding_model != SENTINEL
1686
1709
  _body[:generate_sparse_vectors] = generate_sparse_vectors if generate_sparse_vectors != SENTINEL
1687
1710
  _body[:prepend_filename_to_chunks] = prepend_filename_to_chunks if prepend_filename_to_chunks != SENTINEL
1711
+ _body[:request_id] = request_id if request_id != SENTINEL
1688
1712
  gitbook_sync_request = _body
1689
1713
  sync_gitbook_with_http_info_impl(gitbook_sync_request, extra)
1690
1714
  end
@@ -1820,9 +1844,10 @@ module Carbon
1820
1844
  # @param generate_sparse_vectors [Boolean]
1821
1845
  # @param prepend_filename_to_chunks [Boolean]
1822
1846
  # @param data_source_id [Integer]
1847
+ # @param request_id [String]
1823
1848
  # @param body [GmailSyncInput]
1824
1849
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
1825
- 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, extra: {})
1850
+ 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: {})
1826
1851
  _body = {}
1827
1852
  _body[:tags] = tags if tags != SENTINEL
1828
1853
  _body[:filters] = filters if filters != SENTINEL
@@ -1833,6 +1858,7 @@ module Carbon
1833
1858
  _body[:generate_sparse_vectors] = generate_sparse_vectors if generate_sparse_vectors != SENTINEL
1834
1859
  _body[:prepend_filename_to_chunks] = prepend_filename_to_chunks if prepend_filename_to_chunks != SENTINEL
1835
1860
  _body[:data_source_id] = data_source_id if data_source_id != SENTINEL
1861
+ _body[:request_id] = request_id if request_id != SENTINEL
1836
1862
  gmail_sync_input = _body
1837
1863
  api_response = sync_gmail_with_http_info_impl(gmail_sync_input, extra)
1838
1864
  api_response.data
@@ -1900,9 +1926,10 @@ module Carbon
1900
1926
  # @param generate_sparse_vectors [Boolean]
1901
1927
  # @param prepend_filename_to_chunks [Boolean]
1902
1928
  # @param data_source_id [Integer]
1929
+ # @param request_id [String]
1903
1930
  # @param body [GmailSyncInput]
1904
1931
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
1905
- 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, extra: {})
1932
+ 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: {})
1906
1933
  _body = {}
1907
1934
  _body[:tags] = tags if tags != SENTINEL
1908
1935
  _body[:filters] = filters if filters != SENTINEL
@@ -1913,6 +1940,7 @@ module Carbon
1913
1940
  _body[:generate_sparse_vectors] = generate_sparse_vectors if generate_sparse_vectors != SENTINEL
1914
1941
  _body[:prepend_filename_to_chunks] = prepend_filename_to_chunks if prepend_filename_to_chunks != SENTINEL
1915
1942
  _body[:data_source_id] = data_source_id if data_source_id != SENTINEL
1943
+ _body[:request_id] = request_id if request_id != SENTINEL
1916
1944
  gmail_sync_input = _body
1917
1945
  sync_gmail_with_http_info_impl(gmail_sync_input, extra)
1918
1946
  end
@@ -2059,9 +2087,10 @@ module Carbon
2059
2087
  # @param generate_sparse_vectors [Boolean]
2060
2088
  # @param prepend_filename_to_chunks [Boolean]
2061
2089
  # @param data_source_id [Integer]
2090
+ # @param request_id [String]
2062
2091
  # @param body [OutlookSyncInput]
2063
2092
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
2064
- 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, extra: {})
2093
+ 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: {})
2065
2094
  _body = {}
2066
2095
  _body[:tags] = tags if tags != SENTINEL
2067
2096
  _body[:folder] = folder if folder != SENTINEL
@@ -2073,6 +2102,7 @@ module Carbon
2073
2102
  _body[:generate_sparse_vectors] = generate_sparse_vectors if generate_sparse_vectors != SENTINEL
2074
2103
  _body[:prepend_filename_to_chunks] = prepend_filename_to_chunks if prepend_filename_to_chunks != SENTINEL
2075
2104
  _body[:data_source_id] = data_source_id if data_source_id != SENTINEL
2105
+ _body[:request_id] = request_id if request_id != SENTINEL
2076
2106
  outlook_sync_input = _body
2077
2107
  api_response = sync_outlook_with_http_info_impl(outlook_sync_input, extra)
2078
2108
  api_response.data
@@ -2151,9 +2181,10 @@ module Carbon
2151
2181
  # @param generate_sparse_vectors [Boolean]
2152
2182
  # @param prepend_filename_to_chunks [Boolean]
2153
2183
  # @param data_source_id [Integer]
2184
+ # @param request_id [String]
2154
2185
  # @param body [OutlookSyncInput]
2155
2186
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
2156
- 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, extra: {})
2187
+ 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: {})
2157
2188
  _body = {}
2158
2189
  _body[:tags] = tags if tags != SENTINEL
2159
2190
  _body[:folder] = folder if folder != SENTINEL
@@ -2165,6 +2196,7 @@ module Carbon
2165
2196
  _body[:generate_sparse_vectors] = generate_sparse_vectors if generate_sparse_vectors != SENTINEL
2166
2197
  _body[:prepend_filename_to_chunks] = prepend_filename_to_chunks if prepend_filename_to_chunks != SENTINEL
2167
2198
  _body[:data_source_id] = data_source_id if data_source_id != SENTINEL
2199
+ _body[:request_id] = request_id if request_id != SENTINEL
2168
2200
  outlook_sync_input = _body
2169
2201
  sync_outlook_with_http_info_impl(outlook_sync_input, extra)
2170
2202
  end
@@ -2248,9 +2280,10 @@ module Carbon
2248
2280
  # @param embedding_model [EmbeddingGenerators]
2249
2281
  # @param generate_sparse_vectors [Boolean]
2250
2282
  # @param prepend_filename_to_chunks [Boolean]
2283
+ # @param request_id [String]
2251
2284
  # @param body [RSSFeedInput]
2252
2285
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
2253
- def sync_rss_feed(url:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, extra: {})
2286
+ def sync_rss_feed(url:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, request_id: SENTINEL, extra: {})
2254
2287
  _body = {}
2255
2288
  _body[:tags] = tags if tags != SENTINEL
2256
2289
  _body[:url] = url if url != SENTINEL
@@ -2260,6 +2293,7 @@ module Carbon
2260
2293
  _body[:embedding_model] = embedding_model if embedding_model != SENTINEL
2261
2294
  _body[:generate_sparse_vectors] = generate_sparse_vectors if generate_sparse_vectors != SENTINEL
2262
2295
  _body[:prepend_filename_to_chunks] = prepend_filename_to_chunks if prepend_filename_to_chunks != SENTINEL
2296
+ _body[:request_id] = request_id if request_id != SENTINEL
2263
2297
  rss_feed_input = _body
2264
2298
  api_response = sync_rss_feed_with_http_info_impl(rss_feed_input, extra)
2265
2299
  api_response.data
@@ -2275,9 +2309,10 @@ module Carbon
2275
2309
  # @param embedding_model [EmbeddingGenerators]
2276
2310
  # @param generate_sparse_vectors [Boolean]
2277
2311
  # @param prepend_filename_to_chunks [Boolean]
2312
+ # @param request_id [String]
2278
2313
  # @param body [RSSFeedInput]
2279
2314
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
2280
- def sync_rss_feed_with_http_info(url:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, extra: {})
2315
+ def sync_rss_feed_with_http_info(url:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, request_id: SENTINEL, extra: {})
2281
2316
  _body = {}
2282
2317
  _body[:tags] = tags if tags != SENTINEL
2283
2318
  _body[:url] = url if url != SENTINEL
@@ -2287,6 +2322,7 @@ module Carbon
2287
2322
  _body[:embedding_model] = embedding_model if embedding_model != SENTINEL
2288
2323
  _body[:generate_sparse_vectors] = generate_sparse_vectors if generate_sparse_vectors != SENTINEL
2289
2324
  _body[:prepend_filename_to_chunks] = prepend_filename_to_chunks if prepend_filename_to_chunks != SENTINEL
2325
+ _body[:request_id] = request_id if request_id != SENTINEL
2290
2326
  rss_feed_input = _body
2291
2327
  sync_rss_feed_with_http_info_impl(rss_feed_input, extra)
2292
2328
  end
@@ -2375,9 +2411,10 @@ module Carbon
2375
2411
  # @param max_items_per_chunk [Integer] Number of objects per chunk. For csv, tsv, xlsx, and json files only.
2376
2412
  # @param set_page_as_boundary [Boolean]
2377
2413
  # @param data_source_id [Integer]
2414
+ # @param request_id [String]
2378
2415
  # @param body [S3FileSyncInput]
2379
2416
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
2380
- 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, extra: {})
2417
+ 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, extra: {})
2381
2418
  _body = {}
2382
2419
  _body[:tags] = tags if tags != SENTINEL
2383
2420
  _body[:ids] = ids if ids != SENTINEL
@@ -2390,6 +2427,7 @@ module Carbon
2390
2427
  _body[:max_items_per_chunk] = max_items_per_chunk if max_items_per_chunk != SENTINEL
2391
2428
  _body[:set_page_as_boundary] = set_page_as_boundary if set_page_as_boundary != SENTINEL
2392
2429
  _body[:data_source_id] = data_source_id if data_source_id != SENTINEL
2430
+ _body[:request_id] = request_id if request_id != SENTINEL
2393
2431
  s3_file_sync_input = _body
2394
2432
  api_response = sync_s3_files_with_http_info_impl(s3_file_sync_input, extra)
2395
2433
  api_response.data
@@ -2412,9 +2450,10 @@ module Carbon
2412
2450
  # @param max_items_per_chunk [Integer] Number of objects per chunk. For csv, tsv, xlsx, and json files only.
2413
2451
  # @param set_page_as_boundary [Boolean]
2414
2452
  # @param data_source_id [Integer]
2453
+ # @param request_id [String]
2415
2454
  # @param body [S3FileSyncInput]
2416
2455
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
2417
- 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, extra: {})
2456
+ 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, extra: {})
2418
2457
  _body = {}
2419
2458
  _body[:tags] = tags if tags != SENTINEL
2420
2459
  _body[:ids] = ids if ids != SENTINEL
@@ -2427,6 +2466,7 @@ module Carbon
2427
2466
  _body[:max_items_per_chunk] = max_items_per_chunk if max_items_per_chunk != SENTINEL
2428
2467
  _body[:set_page_as_boundary] = set_page_as_boundary if set_page_as_boundary != SENTINEL
2429
2468
  _body[:data_source_id] = data_source_id if data_source_id != SENTINEL
2469
+ _body[:request_id] = request_id if request_id != SENTINEL
2430
2470
  s3_file_sync_input = _body
2431
2471
  sync_s3_files_with_http_info_impl(s3_file_sync_input, extra)
2432
2472
  end