carbon_ruby_sdk 0.1.6 → 0.1.8

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.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +57 -3
  4. data/lib/carbon_ruby_sdk/api/files_api.rb +6 -6
  5. data/lib/carbon_ruby_sdk/api/integrations_api.rb +104 -8
  6. data/lib/carbon_ruby_sdk/models/authentication_property.rb +436 -0
  7. data/lib/carbon_ruby_sdk/models/confluence_authentication.rb +254 -0
  8. data/lib/carbon_ruby_sdk/models/connect_data_source_input.rb +229 -0
  9. data/lib/carbon_ruby_sdk/models/connect_data_source_response.rb +230 -0
  10. data/lib/carbon_ruby_sdk/models/freskdesk_authentication.rb +244 -0
  11. data/lib/carbon_ruby_sdk/models/gitbook_authetication.rb +244 -0
  12. data/lib/carbon_ruby_sdk/models/notion_authentication.rb +244 -0
  13. data/lib/carbon_ruby_sdk/models/o_auth_authentication.rb +244 -0
  14. data/lib/carbon_ruby_sdk/models/o_auth_url_request.rb +1 -0
  15. data/lib/carbon_ruby_sdk/models/organization_user_data_source_api.rb +11 -1
  16. data/lib/carbon_ruby_sdk/models/s3_authentication.rb +244 -0
  17. data/lib/carbon_ruby_sdk/models/s3_file_sync_input.rb +1 -0
  18. data/lib/carbon_ruby_sdk/models/salesforce_authentication.rb +254 -0
  19. data/lib/carbon_ruby_sdk/models/sharepoint_authentication.rb +268 -0
  20. data/lib/carbon_ruby_sdk/models/simple_o_auth_data_sources.rb +41 -0
  21. data/lib/carbon_ruby_sdk/models/sitemap_scrape_request.rb +15 -0
  22. data/lib/carbon_ruby_sdk/models/sync_files_request.rb +1 -0
  23. data/lib/carbon_ruby_sdk/models/sync_options.rb +323 -0
  24. data/lib/carbon_ruby_sdk/models/upload_file_from_url_input.rb +1 -0
  25. data/lib/carbon_ruby_sdk/models/webscrape_request.rb +30 -0
  26. data/lib/carbon_ruby_sdk/models/zendesk_authentication.rb +244 -0
  27. data/lib/carbon_ruby_sdk/models/zotero_authentication.rb +272 -0
  28. data/lib/carbon_ruby_sdk/version.rb +1 -1
  29. data/lib/carbon_ruby_sdk.rb +15 -0
  30. data/spec/api/files_api_spec.rb +1 -1
  31. data/spec/api/integrations_api_spec.rb +11 -0
  32. data/spec/models/authentication_property_spec.rb +112 -0
  33. data/spec/models/confluence_authentication_spec.rb +46 -0
  34. data/spec/models/connect_data_source_input_spec.rb +34 -0
  35. data/spec/models/connect_data_source_response_spec.rb +34 -0
  36. data/spec/models/freskdesk_authentication_spec.rb +40 -0
  37. data/spec/models/gitbook_authetication_spec.rb +40 -0
  38. data/spec/models/notion_authentication_spec.rb +40 -0
  39. data/spec/models/o_auth_authentication_spec.rb +40 -0
  40. data/spec/models/organization_user_data_source_api_spec.rb +6 -0
  41. data/spec/models/s3_authentication_spec.rb +40 -0
  42. data/spec/models/salesforce_authentication_spec.rb +46 -0
  43. data/spec/models/sharepoint_authentication_spec.rb +52 -0
  44. data/spec/models/simple_o_auth_data_sources_spec.rb +22 -0
  45. data/spec/models/sync_options_spec.rb +82 -0
  46. data/spec/models/zendesk_authentication_spec.rb +40 -0
  47. data/spec/models/zotero_authentication_spec.rb +52 -0
  48. metadata +47 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bf47c03b0e27651aa516a1b57c87c83324e769fb98dd2d983d0bd89c9c7e87d3
4
- data.tar.gz: f36807e5b7c143e385e0420641ebf791bef641314eae726214446bcfd6c97a7f
3
+ metadata.gz: c209fcd399aa1413a587d8fb3bc56ab173b56052522fdb5aa6f180a5bec9b5d3
4
+ data.tar.gz: 43aceb3e7bb7ac9dd9ad1a5e16746acc79d90a7de5fd907fbcc26ff3b6f1e2d1
5
5
  SHA512:
6
- metadata.gz: b3a842c472397b3708a9a5517763cdcb3f6cea3dbcbc5af4c5d7f4648f07dae1e2dcd637ba5cdc3b6d1aa2a100483cdcc091cc27f8e4ffbc5e0fd8b066e92fa8
7
- data.tar.gz: fc30a060950f4e7b0e8a30463f5c8529de9edf8e4257ea5e4933b451747e79e1cd375e6b29c34047dd716807a3c804f053863e7a5427d067dfdd09c2ad51b35f
6
+ metadata.gz: 28401ee97a6b8271954bac68c85cc0bdbc2ff5c75f6489f7d588fde1842745ddde812f9e969f4d7d3b9837af6ff5eaa2e53480e3cba4928bc2d4e2d76131a4fa
7
+ data.tar.gz: fdc346900eb6f16ecf77464d9d2b08d80b3a22464dec67c218a501f2410685fe578c4870577d62bceb9d7dc918e03c50840135c65dc43c8060f230084c1b20e6
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- carbon_ruby_sdk (0.1.6)
4
+ carbon_ruby_sdk (0.1.8)
5
5
  faraday (>= 1.0.1, < 3.0)
6
6
  faraday-multipart (~> 1.0, >= 1.0.4)
7
7
 
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.6-blue)](https://rubygems.org/gems/carbon_ruby_sdk/versions/0.1.6)
9
+ [![npm](https://img.shields.io/badge/gem-v0.1.8-blue)](https://rubygems.org/gems/carbon_ruby_sdk/versions/0.1.8)
10
10
 
11
11
  </div>
12
12
 
@@ -38,6 +38,7 @@ Connect external data to LLMs, no matter the source.
38
38
  * [`carbon.files.upload_from_url`](#carbonfilesupload_from_url)
39
39
  * [`carbon.files.upload_text`](#carbonfilesupload_text)
40
40
  * [`carbon.health.check`](#carbonhealthcheck)
41
+ * [`carbon.integrations.connect_data_source`](#carbonintegrationsconnect_data_source)
41
42
  * [`carbon.integrations.connect_freshdesk`](#carbonintegrationsconnect_freshdesk)
42
43
  * [`carbon.integrations.connect_gitbook`](#carbonintegrationsconnect_gitbook)
43
44
  * [`carbon.integrations.create_aws_iam_user`](#carbonintegrationscreate_aws_iam_user)
@@ -77,7 +78,7 @@ Connect external data to LLMs, no matter the source.
77
78
  Add to Gemfile:
78
79
 
79
80
  ```ruby
80
- gem 'carbon_ruby_sdk', '~> 0.1.6'
81
+ gem 'carbon_ruby_sdk', '~> 0.1.8'
81
82
  ```
82
83
 
83
84
  ## Getting Started<a id="getting-started"></a>
@@ -980,7 +981,7 @@ the file to be a candidate for hybrid search.
980
981
  Whether or not to prepend the file's name to chunks.
981
982
 
982
983
  ##### max_items_per_chunk: `Integer`<a id="max_items_per_chunk-integer"></a>
983
- Number of objects per chunk. For json files only.
984
+ Number of objects per chunk. For csv, tsv, xlsx, and json files only.
984
985
 
985
986
  #### 🔄 Return<a id="🔄-return"></a>
986
987
 
@@ -1031,6 +1032,8 @@ p result
1031
1032
  ##### use_textract: `Boolean`<a id="use_textract-boolean"></a>
1032
1033
  ##### prepend_filename_to_chunks: `Boolean`<a id="prepend_filename_to_chunks-boolean"></a>
1033
1034
  ##### max_items_per_chunk: `Integer`<a id="max_items_per_chunk-integer"></a>
1035
+ Number of objects per chunk. For csv, tsv, xlsx, and json files only.
1036
+
1034
1037
  #### 🔄 Return<a id="🔄-return"></a>
1035
1038
 
1036
1039
  [UserFile](./lib/carbon_ruby_sdk/models/user_file.rb)
@@ -1116,6 +1119,49 @@ p result
1116
1119
  ---
1117
1120
 
1118
1121
 
1122
+ ### `carbon.integrations.connect_data_source`<a id="carbonintegrationsconnect_data_source"></a>
1123
+
1124
+ Connect Data Source
1125
+
1126
+ #### 🛠️ Usage<a id="🛠️-usage"></a>
1127
+
1128
+ ```ruby
1129
+ result = carbon.integrations.connect_data_source(
1130
+ authentication: {
1131
+ "source" => "GOOGLE_DRIVE",
1132
+ "access_token" => "access_token_example",
1133
+ },
1134
+ sync_options: {
1135
+ "chunk_size" => 1500,
1136
+ "chunk_overlap" => 20,
1137
+ "skip_embedding_generation" => false,
1138
+ "embedding_model" => "OPENAI",
1139
+ "generate_sparse_vectors" => false,
1140
+ "prepend_filename_to_chunks" => false,
1141
+ "sync_files_on_connection" => true,
1142
+ "set_page_as_boundary" => false,
1143
+ },
1144
+ )
1145
+ p result
1146
+ ```
1147
+
1148
+ #### ⚙️ Parameters<a id="⚙️-parameters"></a>
1149
+
1150
+ ##### authentication: [`AuthenticationProperty`](./lib/carbon_ruby_sdk/models/authentication_property.rb)<a id="authentication-authenticationpropertylibcarbon_ruby_sdkmodelsauthentication_propertyrb"></a>
1151
+ ##### sync_options: [`SyncOptions`](./lib/carbon_ruby_sdk/models/sync_options.rb)<a id="sync_options-syncoptionslibcarbon_ruby_sdkmodelssync_optionsrb"></a>
1152
+ #### 🔄 Return<a id="🔄-return"></a>
1153
+
1154
+ [ConnectDataSourceResponse](./lib/carbon_ruby_sdk/models/connect_data_source_response.rb)
1155
+
1156
+ #### 🌐 Endpoint<a id="🌐-endpoint"></a>
1157
+
1158
+ `/integrations/connect` `POST`
1159
+
1160
+ [🔙 **Back to Table of Contents**](#table-of-contents)
1161
+
1162
+ ---
1163
+
1164
+
1119
1165
  ### `carbon.integrations.connect_freshdesk`<a id="carbonintegrationsconnect_freshdesk"></a>
1120
1166
 
1121
1167
  Refer this article to obtain an API key https://support.freshdesk.com/en/support/solutions/articles/215517.
@@ -1304,6 +1350,8 @@ p result
1304
1350
  ##### generate_sparse_vectors: `Boolean`<a id="generate_sparse_vectors-boolean"></a>
1305
1351
  ##### prepend_filename_to_chunks: `Boolean`<a id="prepend_filename_to_chunks-boolean"></a>
1306
1352
  ##### max_items_per_chunk: `Integer`<a id="max_items_per_chunk-integer"></a>
1353
+ Number of objects per chunk. For csv, tsv, xlsx, and json files only.
1354
+
1307
1355
  ##### salesforce_domain: `String`<a id="salesforce_domain-string"></a>
1308
1356
  ##### sync_files_on_connection: `Boolean`<a id="sync_files_on_connection-boolean"></a>
1309
1357
  Used to specify whether Carbon should attempt to sync all your files
@@ -1550,6 +1598,8 @@ p result
1550
1598
  ##### generate_sparse_vectors: `Boolean`<a id="generate_sparse_vectors-boolean"></a>
1551
1599
  ##### prepend_filename_to_chunks: `Boolean`<a id="prepend_filename_to_chunks-boolean"></a>
1552
1600
  ##### max_items_per_chunk: `Integer`<a id="max_items_per_chunk-integer"></a>
1601
+ Number of objects per chunk. For csv, tsv, xlsx, and json files only.
1602
+
1553
1603
  ##### set_page_as_boundary: `Boolean`<a id="set_page_as_boundary-boolean"></a>
1554
1604
  #### 🔄 Return<a id="🔄-return"></a>
1555
1605
 
@@ -1633,6 +1683,8 @@ p result
1633
1683
  ##### generate_sparse_vectors: `Boolean`<a id="generate_sparse_vectors-boolean"></a>
1634
1684
  ##### prepend_filename_to_chunks: `Boolean`<a id="prepend_filename_to_chunks-boolean"></a>
1635
1685
  ##### max_items_per_chunk: `Integer`<a id="max_items_per_chunk-integer"></a>
1686
+ Number of objects per chunk. For csv, tsv, xlsx, and json files only.
1687
+
1636
1688
  ##### set_page_as_boundary: `Boolean`<a id="set_page_as_boundary-boolean"></a>
1637
1689
  #### 🔄 Return<a id="🔄-return"></a>
1638
1690
 
@@ -1973,6 +2025,8 @@ p result
1973
2025
  ##### generate_sparse_vectors: `Boolean`<a id="generate_sparse_vectors-boolean"></a>
1974
2026
  ##### prepend_filename_to_chunks: `Boolean`<a id="prepend_filename_to_chunks-boolean"></a>
1975
2027
  ##### max_items_per_chunk: `Integer`<a id="max_items_per_chunk-integer"></a>
2028
+ Number of objects per chunk. For csv, tsv, xlsx, and json files only.
2029
+
1976
2030
  ##### set_page_as_boundary: `Boolean`<a id="set_page_as_boundary-boolean"></a>
1977
2031
  ##### data_source_id: `Integer`<a id="data_source_id-integer"></a>
1978
2032
  #### 🔄 Return<a id="🔄-return"></a>
@@ -1074,7 +1074,7 @@ module Carbon
1074
1074
  # @param use_ocr [Boolean] Whether or not to use OCR when processing files. Only valid for PDFs. Useful for documents with tables, images, and/or scanned text.
1075
1075
  # @param generate_sparse_vectors [Boolean] Whether or not to generate sparse vectors for the file. This is *required* for the file to be a candidate for hybrid search.
1076
1076
  # @param prepend_filename_to_chunks [Boolean] Whether or not to prepend the file's name to chunks.
1077
- # @param max_items_per_chunk [Integer] Number of objects per chunk. For json files only.
1077
+ # @param max_items_per_chunk [Integer] Number of objects per chunk. For csv, tsv, xlsx, and json files only.
1078
1078
  # @param body [BodyCreateUploadFileUploadfilePost]
1079
1079
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
1080
1080
  def upload(file:, chunk_size: SENTINEL, chunk_overlap: SENTINEL, skip_embedding_generation: false, set_page_as_boundary: false, embedding_model: SENTINEL, use_ocr: false, generate_sparse_vectors: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, extra: {})
@@ -1131,7 +1131,7 @@ module Carbon
1131
1131
  # @param use_ocr [Boolean] Whether or not to use OCR when processing files. Only valid for PDFs. Useful for documents with tables, images, and/or scanned text.
1132
1132
  # @param generate_sparse_vectors [Boolean] Whether or not to generate sparse vectors for the file. This is *required* for the file to be a candidate for hybrid search.
1133
1133
  # @param prepend_filename_to_chunks [Boolean] Whether or not to prepend the file's name to chunks.
1134
- # @param max_items_per_chunk [Integer] Number of objects per chunk. For json files only.
1134
+ # @param max_items_per_chunk [Integer] Number of objects per chunk. For csv, tsv, xlsx, and json files only.
1135
1135
  # @param body [BodyCreateUploadFileUploadfilePost]
1136
1136
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
1137
1137
  def upload_with_http_info(file:, chunk_size: SENTINEL, chunk_overlap: SENTINEL, skip_embedding_generation: false, set_page_as_boundary: false, embedding_model: SENTINEL, use_ocr: false, generate_sparse_vectors: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, extra: {})
@@ -1163,7 +1163,7 @@ module Carbon
1163
1163
  # @option opts [Boolean] :use_ocr Whether or not to use OCR when processing files. Only valid for PDFs. Useful for documents with tables, images, and/or scanned text. (default to false)
1164
1164
  # @option opts [Boolean] :generate_sparse_vectors Whether or not to generate sparse vectors for the file. This is *required* for the file to be a candidate for hybrid search. (default to false)
1165
1165
  # @option opts [Boolean] :prepend_filename_to_chunks Whether or not to prepend the file's name to chunks. (default to false)
1166
- # @option opts [Integer] :max_items_per_chunk Number of objects per chunk. For json files only.
1166
+ # @option opts [Integer] :max_items_per_chunk Number of objects per chunk. For csv, tsv, xlsx, and json files only.
1167
1167
  # @return [UserFile]
1168
1168
  private def upload_impl(file, body_create_upload_file_uploadfile_post, opts = {})
1169
1169
  data, _status_code, _headers = upload_with_http_info(file, body_create_upload_file_uploadfile_post, opts)
@@ -1183,7 +1183,7 @@ module Carbon
1183
1183
  # @option opts [Boolean] :use_ocr Whether or not to use OCR when processing files. Only valid for PDFs. Useful for documents with tables, images, and/or scanned text. (default to false)
1184
1184
  # @option opts [Boolean] :generate_sparse_vectors Whether or not to generate sparse vectors for the file. This is *required* for the file to be a candidate for hybrid search. (default to false)
1185
1185
  # @option opts [Boolean] :prepend_filename_to_chunks Whether or not to prepend the file's name to chunks. (default to false)
1186
- # @option opts [Integer] :max_items_per_chunk Number of objects per chunk. For json files only.
1186
+ # @option opts [Integer] :max_items_per_chunk Number of objects per chunk. For csv, tsv, xlsx, and json files only.
1187
1187
  # @return [APIResponse] data is UserFile, status code, headers and response
1188
1188
  private def upload_with_http_info_impl(file, body_create_upload_file_uploadfile_post, opts = {})
1189
1189
  if @api_client.config.debugging
@@ -1265,7 +1265,7 @@ module Carbon
1265
1265
  # @param generate_sparse_vectors [Boolean]
1266
1266
  # @param use_textract [Boolean]
1267
1267
  # @param prepend_filename_to_chunks [Boolean]
1268
- # @param max_items_per_chunk [Integer]
1268
+ # @param max_items_per_chunk [Integer] Number of objects per chunk. For csv, tsv, xlsx, and json files only.
1269
1269
  # @param body [UploadFileFromUrlInput]
1270
1270
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
1271
1271
  def upload_from_url(url:, file_name: SENTINEL, chunk_size: SENTINEL, chunk_overlap: SENTINEL, skip_embedding_generation: false, set_page_as_boundary: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, use_textract: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, extra: {})
@@ -1298,7 +1298,7 @@ module Carbon
1298
1298
  # @param generate_sparse_vectors [Boolean]
1299
1299
  # @param use_textract [Boolean]
1300
1300
  # @param prepend_filename_to_chunks [Boolean]
1301
- # @param max_items_per_chunk [Integer]
1301
+ # @param max_items_per_chunk [Integer] Number of objects per chunk. For csv, tsv, xlsx, and json files only.
1302
1302
  # @param body [UploadFileFromUrlInput]
1303
1303
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
1304
1304
  def upload_from_url_with_http_info(url:, file_name: SENTINEL, chunk_size: SENTINEL, chunk_overlap: SENTINEL, skip_embedding_generation: false, set_page_as_boundary: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, use_textract: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, extra: {})
@@ -16,6 +16,102 @@ module Carbon
16
16
  @api_client = api_client
17
17
  end
18
18
 
19
+ # Connect Data Source
20
+ #
21
+ # @param authentication [AuthenticationProperty]
22
+ # @param sync_options [SyncOptions]
23
+ # @param body [ConnectDataSourceInput]
24
+ # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
25
+ def connect_data_source(authentication:, sync_options: SENTINEL, extra: {})
26
+ _body = {}
27
+ _body[:authentication] = authentication if authentication != SENTINEL
28
+ _body[:sync_options] = sync_options if sync_options != SENTINEL
29
+ connect_data_source_input = _body
30
+ api_response = connect_data_source_with_http_info_impl(connect_data_source_input, extra)
31
+ api_response.data
32
+ end
33
+
34
+ # Connect Data Source
35
+ #
36
+ # @param authentication [AuthenticationProperty]
37
+ # @param sync_options [SyncOptions]
38
+ # @param body [ConnectDataSourceInput]
39
+ # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
40
+ def connect_data_source_with_http_info(authentication:, sync_options: SENTINEL, extra: {})
41
+ _body = {}
42
+ _body[:authentication] = authentication if authentication != SENTINEL
43
+ _body[:sync_options] = sync_options if sync_options != SENTINEL
44
+ connect_data_source_input = _body
45
+ connect_data_source_with_http_info_impl(connect_data_source_input, extra)
46
+ end
47
+
48
+ # Connect Data Source
49
+ # @param connect_data_source_input [ConnectDataSourceInput]
50
+ # @param [Hash] opts the optional parameters
51
+ # @return [ConnectDataSourceResponse]
52
+ private def connect_data_source_impl(connect_data_source_input, opts = {})
53
+ data, _status_code, _headers = connect_data_source_with_http_info(connect_data_source_input, opts)
54
+ data
55
+ end
56
+
57
+ # Connect Data Source
58
+ # @param connect_data_source_input [ConnectDataSourceInput]
59
+ # @param [Hash] opts the optional parameters
60
+ # @return [APIResponse] data is ConnectDataSourceResponse, status code, headers and response
61
+ private def connect_data_source_with_http_info_impl(connect_data_source_input, opts = {})
62
+ if @api_client.config.debugging
63
+ @api_client.config.logger.debug 'Calling API: IntegrationsApi.connect_data_source ...'
64
+ end
65
+ # verify the required parameter 'connect_data_source_input' is set
66
+ if @api_client.config.client_side_validation && connect_data_source_input.nil?
67
+ fail ArgumentError, "Missing the required parameter 'connect_data_source_input' when calling IntegrationsApi.connect_data_source"
68
+ end
69
+ # resource path
70
+ local_var_path = '/integrations/connect'
71
+
72
+ # query parameters
73
+ query_params = opts[:query_params] || {}
74
+
75
+ # header parameters
76
+ header_params = opts[:header_params] || {}
77
+ # HTTP header 'Accept' (if needed)
78
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
79
+ # HTTP header 'Content-Type'
80
+ content_type = @api_client.select_header_content_type(['application/json'])
81
+ if !content_type.nil?
82
+ header_params['Content-Type'] = content_type
83
+ end
84
+
85
+ # form parameters
86
+ form_params = opts[:form_params] || {}
87
+
88
+ # http body (model)
89
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(connect_data_source_input)
90
+
91
+ # return_type
92
+ return_type = opts[:debug_return_type] || 'ConnectDataSourceResponse'
93
+
94
+ # auth_names
95
+ auth_names = opts[:debug_auth_names] || ['accessToken', 'apiKey', 'customerId']
96
+
97
+ new_options = opts.merge(
98
+ :operation => :"IntegrationsApi.connect_data_source",
99
+ :header_params => header_params,
100
+ :query_params => query_params,
101
+ :form_params => form_params,
102
+ :body => post_body,
103
+ :auth_names => auth_names,
104
+ :return_type => return_type
105
+ )
106
+
107
+ data, status_code, headers, response = @api_client.call_api(:POST, local_var_path, new_options)
108
+ if @api_client.config.debugging
109
+ @api_client.config.logger.debug "API called: IntegrationsApi#connect_data_source\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
110
+ end
111
+ APIResponse::new(data, status_code, headers, response)
112
+ end
113
+
114
+
19
115
  # Freshdesk Connect
20
116
  #
21
117
  # Refer this article to obtain an API key https://support.freshdesk.com/en/support/solutions/articles/215517.
@@ -432,7 +528,7 @@ module Carbon
432
528
  # @param confluence_subdomain [String]
433
529
  # @param generate_sparse_vectors [Boolean]
434
530
  # @param prepend_filename_to_chunks [Boolean]
435
- # @param max_items_per_chunk [Integer]
531
+ # @param max_items_per_chunk [Integer] Number of objects per chunk. For csv, tsv, xlsx, and json files only.
436
532
  # @param salesforce_domain [String]
437
533
  # @param sync_files_on_connection [Boolean] Used to specify whether Carbon should attempt to sync all your files automatically when authorization is complete. This is only supported for a subset of connectors and will be ignored for the rest. Supported connectors: Intercom, Zendesk, Gitbook, Confluence, Salesforce, Freshdesk
438
534
  # @param set_page_as_boundary [Boolean]
@@ -486,7 +582,7 @@ module Carbon
486
582
  # @param confluence_subdomain [String]
487
583
  # @param generate_sparse_vectors [Boolean]
488
584
  # @param prepend_filename_to_chunks [Boolean]
489
- # @param max_items_per_chunk [Integer]
585
+ # @param max_items_per_chunk [Integer] Number of objects per chunk. For csv, tsv, xlsx, and json files only.
490
586
  # @param salesforce_domain [String]
491
587
  # @param sync_files_on_connection [Boolean] Used to specify whether Carbon should attempt to sync all your files automatically when authorization is complete. This is only supported for a subset of connectors and will be ignored for the rest. Supported connectors: Intercom, Zendesk, Gitbook, Confluence, Salesforce, Freshdesk
492
588
  # @param set_page_as_boundary [Boolean]
@@ -1162,7 +1258,7 @@ module Carbon
1162
1258
  # @param embedding_model [EmbeddingGeneratorsNullable]
1163
1259
  # @param generate_sparse_vectors [Boolean]
1164
1260
  # @param prepend_filename_to_chunks [Boolean]
1165
- # @param max_items_per_chunk [Integer]
1261
+ # @param max_items_per_chunk [Integer] Number of objects per chunk. For csv, tsv, xlsx, and json files only.
1166
1262
  # @param set_page_as_boundary [Boolean]
1167
1263
  # @param body [SyncFilesRequest]
1168
1264
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
@@ -1200,7 +1296,7 @@ module Carbon
1200
1296
  # @param embedding_model [EmbeddingGeneratorsNullable]
1201
1297
  # @param generate_sparse_vectors [Boolean]
1202
1298
  # @param prepend_filename_to_chunks [Boolean]
1203
- # @param max_items_per_chunk [Integer]
1299
+ # @param max_items_per_chunk [Integer] Number of objects per chunk. For csv, tsv, xlsx, and json files only.
1204
1300
  # @param set_page_as_boundary [Boolean]
1205
1301
  # @param body [SyncFilesRequest]
1206
1302
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
@@ -1398,7 +1494,7 @@ module Carbon
1398
1494
  # @param embedding_model [EmbeddingGeneratorsNullable]
1399
1495
  # @param generate_sparse_vectors [Boolean]
1400
1496
  # @param prepend_filename_to_chunks [Boolean]
1401
- # @param max_items_per_chunk [Integer]
1497
+ # @param max_items_per_chunk [Integer] Number of objects per chunk. For csv, tsv, xlsx, and json files only.
1402
1498
  # @param set_page_as_boundary [Boolean]
1403
1499
  # @param body [SyncFilesRequest]
1404
1500
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
@@ -1436,7 +1532,7 @@ module Carbon
1436
1532
  # @param embedding_model [EmbeddingGeneratorsNullable]
1437
1533
  # @param generate_sparse_vectors [Boolean]
1438
1534
  # @param prepend_filename_to_chunks [Boolean]
1439
- # @param max_items_per_chunk [Integer]
1535
+ # @param max_items_per_chunk [Integer] Number of objects per chunk. For csv, tsv, xlsx, and json files only.
1440
1536
  # @param set_page_as_boundary [Boolean]
1441
1537
  # @param body [SyncFilesRequest]
1442
1538
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
@@ -2272,7 +2368,7 @@ module Carbon
2272
2368
  # @param embedding_model [EmbeddingGenerators]
2273
2369
  # @param generate_sparse_vectors [Boolean]
2274
2370
  # @param prepend_filename_to_chunks [Boolean]
2275
- # @param max_items_per_chunk [Integer]
2371
+ # @param max_items_per_chunk [Integer] Number of objects per chunk. For csv, tsv, xlsx, and json files only.
2276
2372
  # @param set_page_as_boundary [Boolean]
2277
2373
  # @param data_source_id [Integer]
2278
2374
  # @param body [S3FileSyncInput]
@@ -2309,7 +2405,7 @@ module Carbon
2309
2405
  # @param embedding_model [EmbeddingGenerators]
2310
2406
  # @param generate_sparse_vectors [Boolean]
2311
2407
  # @param prepend_filename_to_chunks [Boolean]
2312
- # @param max_items_per_chunk [Integer]
2408
+ # @param max_items_per_chunk [Integer] Number of objects per chunk. For csv, tsv, xlsx, and json files only.
2313
2409
  # @param set_page_as_boundary [Boolean]
2314
2410
  # @param data_source_id [Integer]
2315
2411
  # @param body [S3FileSyncInput]