carbon_ruby_sdk 0.1.32 → 0.1.34

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +41 -13
  4. data/lib/carbon_ruby_sdk/api/integrations_api.rb +42 -22
  5. data/lib/carbon_ruby_sdk/models/data_source_type.rb +2 -1
  6. data/lib/carbon_ruby_sdk/models/data_source_type_nullable.rb +2 -1
  7. data/lib/carbon_ruby_sdk/models/fetch_urls_response.rb +14 -4
  8. data/lib/carbon_ruby_sdk/models/{helpdesk_file_sync_config.rb → file_sync_config.rb} +28 -14
  9. data/lib/carbon_ruby_sdk/models/{helpdesk_file_sync_config_nullable.rb → file_sync_config_nullable.rb} +28 -14
  10. data/lib/carbon_ruby_sdk/models/fresh_desk_connect_request.rb +1 -1
  11. data/lib/carbon_ruby_sdk/models/gmail_sync_input.rb +26 -5
  12. data/lib/carbon_ruby_sdk/models/o_auth_url_request.rb +3 -3
  13. data/lib/carbon_ruby_sdk/models/outlook_sync_input.rb +26 -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 +2 -2
  16. data/lib/carbon_ruby_sdk/models/sync_options.rb +2 -2
  17. data/lib/carbon_ruby_sdk/models/user_file.rb +15 -11
  18. data/lib/carbon_ruby_sdk/version.rb +1 -1
  19. data/lib/carbon_ruby_sdk.rb +2 -4
  20. data/spec/models/fetch_urls_response_spec.rb +6 -0
  21. data/spec/models/file_sync_config_nullable_spec.rb +40 -0
  22. data/spec/models/file_sync_config_spec.rb +40 -0
  23. data/spec/models/gmail_sync_input_spec.rb +12 -0
  24. data/spec/models/outlook_sync_input_spec.rb +12 -0
  25. data/spec/models/s3_file_sync_input_spec.rb +6 -0
  26. data/spec/models/user_file_spec.rb +2 -2
  27. metadata +8 -14
  28. data/lib/carbon_ruby_sdk/models/helpdesk_global_file_sync_config.rb +0 -217
  29. data/lib/carbon_ruby_sdk/models/helpdesk_global_file_sync_config_nullable.rb +0 -218
  30. data/spec/models/helpdesk_file_sync_config_nullable_spec.rb +0 -34
  31. data/spec/models/helpdesk_file_sync_config_spec.rb +0 -34
  32. data/spec/models/helpdesk_global_file_sync_config_nullable_spec.rb +0 -28
  33. data/spec/models/helpdesk_global_file_sync_config_spec.rb +0 -28
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c4ae5d4f0f541a79e55ebbc31e389288ade690388320b312bfdfb93470623885
4
- data.tar.gz: b04a0fb5010f8aea77b631fd8bae0eb01fe9e21c21e61aff1067cb4f97167293
3
+ metadata.gz: 4c10f0e766b6ff44d82639898430c9f30b04e9a79d20c7426b788854e8e8b5cb
4
+ data.tar.gz: 4ffdf4710ddf4ffda807f0cdc4b8952583a71e1c7e4004c9f981cead2c3eda1b
5
5
  SHA512:
6
- metadata.gz: 869780fefbc58a5bdd2aa88b8681755c26ae8e356fedfb116ff601e4aba5769ca00c9a699f96b922327f5ddc0ed1448fcfc27b54e09838cf6a8a16c824067d26
7
- data.tar.gz: 37846de55b750be951be3c478aabf2d66944eeb50b61641f62daf03f4df9333aaea4a97f793d14938baecdca0ee24e6f4906b0408a70885b11c83f66e97ce803
6
+ metadata.gz: 8043fcb691c8324d571ee0323a3a7a06597a2f1807db3565e0895a1e5b3a175ed8a12027f1bc9622e046c47bac83ff345cecb24baf453bbb187deaa1443fa776
7
+ data.tar.gz: ded8a325ac5d7eb6ce81d3365386ec69d255ee64537c741602b49fb81f95f581d37a681dd1242afd9a9f400bc06be0b69b211455f7f79c57a47a924e8a1be023
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- carbon_ruby_sdk (0.1.31)
4
+ carbon_ruby_sdk (0.1.33)
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.32-blue)](https://rubygems.org/gems/carbon_ruby_sdk/versions/0.1.32)
9
+ [![npm](https://img.shields.io/badge/gem-v0.1.34-blue)](https://rubygems.org/gems/carbon_ruby_sdk/versions/0.1.34)
10
10
 
11
11
  </div>
12
12
 
@@ -84,7 +84,7 @@ Connect external data to LLMs, no matter the source.
84
84
  Add to Gemfile:
85
85
 
86
86
  ```ruby
87
- gem 'carbon_ruby_sdk', '~> 0.1.32'
87
+ gem 'carbon_ruby_sdk', '~> 0.1.34'
88
88
  ```
89
89
 
90
90
  ## Getting Started<a id="getting-started"></a>
@@ -1208,7 +1208,7 @@ result = carbon.integrations.connect_data_source(
1208
1208
  "prepend_filename_to_chunks" => false,
1209
1209
  "sync_files_on_connection" => true,
1210
1210
  "set_page_as_boundary" => false,
1211
- "request_id" => "b360dae1-b5fd-4803-a53a-1691e3c32558",
1211
+ "request_id" => "18ef9025-4c76-443c-a115-ba77b17afd8b",
1212
1212
  "enable_file_picker" => true,
1213
1213
  "sync_source_items" => true,
1214
1214
  "incremental_sync" => false,
@@ -1259,8 +1259,9 @@ result = carbon.integrations.connect_freshdesk(
1259
1259
  request_id: "string_example",
1260
1260
  sync_source_items: true,
1261
1261
  file_sync_config: {
1262
- "file_types" => ["ARTICLE"],
1262
+ "auto_synced_source_types" => ["ARTICLE"],
1263
1263
  "sync_attachments" => false,
1264
+ "detect_audio_language" => false,
1264
1265
  },
1265
1266
  )
1266
1267
  p result
@@ -1283,7 +1284,7 @@ p result
1283
1284
  Enabling this flag will fetch all available content from the source to be listed
1284
1285
  via list items endpoint
1285
1286
 
1286
- ##### file_sync_config: [`HelpdeskFileSyncConfigNullable`](./lib/carbon_ruby_sdk/models/helpdesk_file_sync_config_nullable.rb)<a id="file_sync_config-helpdeskfilesyncconfignullablelibcarbon_ruby_sdkmodelshelpdesk_file_sync_config_nullablerb"></a>
1287
+ ##### file_sync_config: [`FileSyncConfigNullable`](./lib/carbon_ruby_sdk/models/file_sync_config_nullable.rb)<a id="file_sync_config-filesyncconfignullablelibcarbon_ruby_sdkmodelsfile_sync_config_nullablerb"></a>
1287
1288
  #### 🔄 Return<a id="🔄-return"></a>
1288
1289
 
1289
1290
  [GenericSuccessResponse](./lib/carbon_ruby_sdk/models/generic_success_response.rb)
@@ -1426,15 +1427,16 @@ result = carbon.integrations.get_oauth_url(
1426
1427
  set_page_as_boundary: false,
1427
1428
  data_source_id: 1,
1428
1429
  connecting_new_account: false,
1429
- request_id: "26453c8f-69ab-4eb3-bc25-0ca995b118a0",
1430
+ request_id: "eb3e536e-fa3e-4f8e-9a22-25f70393e759",
1430
1431
  use_ocr: false,
1431
1432
  parse_pdf_tables_with_ocr: false,
1432
1433
  enable_file_picker: true,
1433
1434
  sync_source_items: true,
1434
1435
  incremental_sync: false,
1435
1436
  file_sync_config: {
1436
- "file_types" => ["ARTICLE"],
1437
+ "auto_synced_source_types" => ["ARTICLE"],
1437
1438
  "sync_attachments" => false,
1439
+ "detect_audio_language" => false,
1438
1440
  },
1439
1441
  )
1440
1442
  p result
@@ -1485,7 +1487,7 @@ Enable OCR for files that support it. Supported formats: pdf
1485
1487
  ##### parse_pdf_tables_with_ocr: `Boolean`<a id="parse_pdf_tables_with_ocr-boolean"></a>
1486
1488
  ##### enable_file_picker: `Boolean`<a id="enable_file_picker-boolean"></a>
1487
1489
  Enable integration's file picker for sources that support it. Supported sources:
1488
- SHAREPOINT, DROPBOX, BOX, ONEDRIVE, GOOGLE_DRIVE
1490
+ ONEDRIVE, GOOGLE_DRIVE, DROPBOX, SHAREPOINT, BOX
1489
1491
 
1490
1492
  ##### sync_source_items: `Boolean`<a id="sync_source_items-boolean"></a>
1491
1493
  Enabling this flag will fetch all available content from the source to be listed
@@ -1496,7 +1498,7 @@ Only sync files if they have not already been synced or if the embedding
1496
1498
  properties have changed. This flag is currently supported by ONEDRIVE,
1497
1499
  GOOGLE_DRIVE, BOX, DROPBOX. It will be ignored for other data sources.
1498
1500
 
1499
- ##### file_sync_config: [`HelpdeskFileSyncConfigNullable`](./lib/carbon_ruby_sdk/models/helpdesk_file_sync_config_nullable.rb)<a id="file_sync_config-helpdeskfilesyncconfignullablelibcarbon_ruby_sdkmodelshelpdesk_file_sync_config_nullablerb"></a>
1501
+ ##### file_sync_config: [`FileSyncConfigNullable`](./lib/carbon_ruby_sdk/models/file_sync_config_nullable.rb)<a id="file_sync_config-filesyncconfignullablelibcarbon_ruby_sdkmodelsfile_sync_config_nullablerb"></a>
1500
1502
  #### 🔄 Return<a id="🔄-return"></a>
1501
1503
 
1502
1504
  [OuthURLResponse](./lib/carbon_ruby_sdk/models/outh_url_response.rb)
@@ -1747,12 +1749,14 @@ result = carbon.integrations.sync_confluence(
1747
1749
  prepend_filename_to_chunks: false,
1748
1750
  max_items_per_chunk: 1,
1749
1751
  set_page_as_boundary: false,
1750
- request_id: "3d0330f2-f2e4-482b-9ca7-91d3a1bbbd18",
1752
+ request_id: "27036d05-9737-4197-b0c6-e9fb9f60f976",
1751
1753
  use_ocr: false,
1752
1754
  parse_pdf_tables_with_ocr: false,
1753
1755
  incremental_sync: false,
1754
1756
  file_sync_config: {
1757
+ "auto_synced_source_types" => ["ARTICLE"],
1755
1758
  "sync_attachments" => false,
1759
+ "detect_audio_language" => false,
1756
1760
  },
1757
1761
  )
1758
1762
  p result
@@ -1781,7 +1785,7 @@ Only sync files if they have not already been synced or if the embedding
1781
1785
  properties have changed. This flag is currently supported by ONEDRIVE,
1782
1786
  GOOGLE_DRIVE, BOX, DROPBOX. It will be ignored for other data sources.
1783
1787
 
1784
- ##### file_sync_config: [`HelpdeskGlobalFileSyncConfigNullable`](./lib/carbon_ruby_sdk/models/helpdesk_global_file_sync_config_nullable.rb)<a id="file_sync_config-helpdeskglobalfilesyncconfignullablelibcarbon_ruby_sdkmodelshelpdesk_global_file_sync_config_nullablerb"></a>
1788
+ ##### file_sync_config: [`FileSyncConfigNullable`](./lib/carbon_ruby_sdk/models/file_sync_config_nullable.rb)<a id="file_sync_config-filesyncconfignullablelibcarbon_ruby_sdkmodelsfile_sync_config_nullablerb"></a>
1785
1789
  #### 🔄 Return<a id="🔄-return"></a>
1786
1790
 
1787
1791
  [GenericSuccessResponse](./lib/carbon_ruby_sdk/models/generic_success_response.rb)
@@ -1848,12 +1852,14 @@ result = carbon.integrations.sync_files(
1848
1852
  prepend_filename_to_chunks: false,
1849
1853
  max_items_per_chunk: 1,
1850
1854
  set_page_as_boundary: false,
1851
- request_id: "3d0330f2-f2e4-482b-9ca7-91d3a1bbbd18",
1855
+ request_id: "27036d05-9737-4197-b0c6-e9fb9f60f976",
1852
1856
  use_ocr: false,
1853
1857
  parse_pdf_tables_with_ocr: false,
1854
1858
  incremental_sync: false,
1855
1859
  file_sync_config: {
1860
+ "auto_synced_source_types" => ["ARTICLE"],
1856
1861
  "sync_attachments" => false,
1862
+ "detect_audio_language" => false,
1857
1863
  },
1858
1864
  )
1859
1865
  p result
@@ -1882,7 +1888,7 @@ Only sync files if they have not already been synced or if the embedding
1882
1888
  properties have changed. This flag is currently supported by ONEDRIVE,
1883
1889
  GOOGLE_DRIVE, BOX, DROPBOX. It will be ignored for other data sources.
1884
1890
 
1885
- ##### file_sync_config: [`HelpdeskGlobalFileSyncConfigNullable`](./lib/carbon_ruby_sdk/models/helpdesk_global_file_sync_config_nullable.rb)<a id="file_sync_config-helpdeskglobalfilesyncconfignullablelibcarbon_ruby_sdkmodelshelpdesk_global_file_sync_config_nullablerb"></a>
1891
+ ##### file_sync_config: [`FileSyncConfigNullable`](./lib/carbon_ruby_sdk/models/file_sync_config_nullable.rb)<a id="file_sync_config-filesyncconfignullablelibcarbon_ruby_sdkmodelsfile_sync_config_nullablerb"></a>
1886
1892
  #### 🔄 Return<a id="🔄-return"></a>
1887
1893
 
1888
1894
  [GenericSuccessResponse](./lib/carbon_ruby_sdk/models/generic_success_response.rb)
@@ -2048,6 +2054,12 @@ result = carbon.integrations.sync_gmail(
2048
2054
  data_source_id: 1,
2049
2055
  request_id: "string_example",
2050
2056
  sync_attachments: false,
2057
+ file_sync_config: {
2058
+ "auto_synced_source_types" => ["ARTICLE"],
2059
+ "sync_attachments" => false,
2060
+ "detect_audio_language" => false,
2061
+ },
2062
+ incremental_sync: false,
2051
2063
  )
2052
2064
  p result
2053
2065
  ```
@@ -2065,6 +2077,8 @@ p result
2065
2077
  ##### data_source_id: `Integer`<a id="data_source_id-integer"></a>
2066
2078
  ##### request_id: `String`<a id="request_id-string"></a>
2067
2079
  ##### sync_attachments: `Boolean`<a id="sync_attachments-boolean"></a>
2080
+ ##### file_sync_config: [`FileSyncConfigNullable`](./lib/carbon_ruby_sdk/models/file_sync_config_nullable.rb)<a id="file_sync_config-filesyncconfignullablelibcarbon_ruby_sdkmodelsfile_sync_config_nullablerb"></a>
2081
+ ##### incremental_sync: `Boolean`<a id="incremental_sync-boolean"></a>
2068
2082
  #### 🔄 Return<a id="🔄-return"></a>
2069
2083
 
2070
2084
  [GenericSuccessResponse](./lib/carbon_ruby_sdk/models/generic_success_response.rb)
@@ -2157,6 +2171,12 @@ result = carbon.integrations.sync_outlook(
2157
2171
  data_source_id: 1,
2158
2172
  request_id: "string_example",
2159
2173
  sync_attachments: false,
2174
+ file_sync_config: {
2175
+ "auto_synced_source_types" => ["ARTICLE"],
2176
+ "sync_attachments" => false,
2177
+ "detect_audio_language" => false,
2178
+ },
2179
+ incremental_sync: false,
2160
2180
  )
2161
2181
  p result
2162
2182
  ```
@@ -2175,6 +2195,8 @@ p result
2175
2195
  ##### data_source_id: `Integer`<a id="data_source_id-integer"></a>
2176
2196
  ##### request_id: `String`<a id="request_id-string"></a>
2177
2197
  ##### sync_attachments: `Boolean`<a id="sync_attachments-boolean"></a>
2198
+ ##### file_sync_config: [`FileSyncConfigNullable`](./lib/carbon_ruby_sdk/models/file_sync_config_nullable.rb)<a id="file_sync_config-filesyncconfignullablelibcarbon_ruby_sdkmodelsfile_sync_config_nullablerb"></a>
2199
+ ##### incremental_sync: `Boolean`<a id="incremental_sync-boolean"></a>
2178
2200
  #### 🔄 Return<a id="🔄-return"></a>
2179
2201
 
2180
2202
  [GenericSuccessResponse](./lib/carbon_ruby_sdk/models/generic_success_response.rb)
@@ -2291,6 +2313,11 @@ result = carbon.integrations.sync_s3_files(
2291
2313
  request_id: "string_example",
2292
2314
  use_ocr: false,
2293
2315
  parse_pdf_tables_with_ocr: false,
2316
+ file_sync_config: {
2317
+ "auto_synced_source_types" => ["ARTICLE"],
2318
+ "sync_attachments" => false,
2319
+ "detect_audio_language" => false,
2320
+ },
2294
2321
  )
2295
2322
  p result
2296
2323
  ```
@@ -2313,6 +2340,7 @@ Number of objects per chunk. For csv, tsv, xlsx, and json files only.
2313
2340
  ##### request_id: `String`<a id="request_id-string"></a>
2314
2341
  ##### use_ocr: `Boolean`<a id="use_ocr-boolean"></a>
2315
2342
  ##### parse_pdf_tables_with_ocr: `Boolean`<a id="parse_pdf_tables_with_ocr-boolean"></a>
2343
+ ##### file_sync_config: [`FileSyncConfigNullable`](./lib/carbon_ruby_sdk/models/file_sync_config_nullable.rb)<a id="file_sync_config-filesyncconfignullablelibcarbon_ruby_sdkmodelsfile_sync_config_nullablerb"></a>
2316
2344
  #### 🔄 Return<a id="🔄-return"></a>
2317
2345
 
2318
2346
  [GenericSuccessResponse](./lib/carbon_ruby_sdk/models/generic_success_response.rb)
@@ -132,7 +132,7 @@ module Carbon
132
132
  # @param sync_files_on_connection [Boolean]
133
133
  # @param request_id [String]
134
134
  # @param sync_source_items [Boolean] Enabling this flag will fetch all available content from the source to be listed via list items endpoint
135
- # @param file_sync_config [HelpdeskFileSyncConfigNullable]
135
+ # @param file_sync_config [FileSyncConfigNullable]
136
136
  # @param body [FreshDeskConnectRequest]
137
137
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
138
138
  def connect_freshdesk(domain:, api_key:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, sync_files_on_connection: true, request_id: SENTINEL, sync_source_items: true, file_sync_config: SENTINEL, extra: {})
@@ -175,7 +175,7 @@ module Carbon
175
175
  # @param sync_files_on_connection [Boolean]
176
176
  # @param request_id [String]
177
177
  # @param sync_source_items [Boolean] Enabling this flag will fetch all available content from the source to be listed via list items endpoint
178
- # @param file_sync_config [HelpdeskFileSyncConfigNullable]
178
+ # @param file_sync_config [FileSyncConfigNullable]
179
179
  # @param body [FreshDeskConnectRequest]
180
180
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
181
181
  def connect_freshdesk_with_http_info(domain:, api_key:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, sync_files_on_connection: true, request_id: SENTINEL, sync_source_items: true, file_sync_config: SENTINEL, extra: {})
@@ -561,13 +561,13 @@ module Carbon
561
561
  # @param request_id [String] This request id will be added to all files that get synced using the generated OAuth URL
562
562
  # @param use_ocr [Boolean] Enable OCR for files that support it. Supported formats: pdf
563
563
  # @param parse_pdf_tables_with_ocr [Boolean]
564
- # @param enable_file_picker [Boolean] Enable integration's file picker for sources that support it. Supported sources: SHAREPOINT, DROPBOX, BOX, ONEDRIVE, GOOGLE_DRIVE
564
+ # @param enable_file_picker [Boolean] Enable integration's file picker for sources that support it. Supported sources: ONEDRIVE, GOOGLE_DRIVE, DROPBOX, SHAREPOINT, BOX
565
565
  # @param sync_source_items [Boolean] Enabling this flag will fetch all available content from the source to be listed via list items endpoint
566
566
  # @param incremental_sync [Boolean] Only sync files if they have not already been synced or if the embedding properties have changed. This flag is currently supported by ONEDRIVE, GOOGLE_DRIVE, BOX, DROPBOX. It will be ignored for other data sources.
567
- # @param file_sync_config [HelpdeskFileSyncConfigNullable]
567
+ # @param file_sync_config [FileSyncConfigNullable]
568
568
  # @param body [OAuthURLRequest]
569
569
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
570
- def get_oauth_url(service:, tags: SENTINEL, scope: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', zendesk_subdomain: SENTINEL, microsoft_tenant: SENTINEL, sharepoint_site_name: SENTINEL, confluence_subdomain: SENTINEL, generate_sparse_vectors: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, salesforce_domain: SENTINEL, sync_files_on_connection: true, set_page_as_boundary: false, data_source_id: SENTINEL, connecting_new_account: false, request_id: '26453c8f-69ab-4eb3-bc25-0ca995b118a0', use_ocr: false, parse_pdf_tables_with_ocr: false, enable_file_picker: true, sync_source_items: true, incremental_sync: false, file_sync_config: SENTINEL, extra: {})
570
+ def get_oauth_url(service:, tags: SENTINEL, scope: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', zendesk_subdomain: SENTINEL, microsoft_tenant: SENTINEL, sharepoint_site_name: SENTINEL, confluence_subdomain: SENTINEL, generate_sparse_vectors: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, salesforce_domain: SENTINEL, sync_files_on_connection: true, set_page_as_boundary: false, data_source_id: SENTINEL, connecting_new_account: false, request_id: 'eb3e536e-fa3e-4f8e-9a22-25f70393e759', use_ocr: false, parse_pdf_tables_with_ocr: false, enable_file_picker: true, sync_source_items: true, incremental_sync: false, file_sync_config: SENTINEL, extra: {})
571
571
  _body = {}
572
572
  _body[:tags] = tags if tags != SENTINEL
573
573
  _body[:scope] = scope if scope != SENTINEL
@@ -629,13 +629,13 @@ module Carbon
629
629
  # @param request_id [String] This request id will be added to all files that get synced using the generated OAuth URL
630
630
  # @param use_ocr [Boolean] Enable OCR for files that support it. Supported formats: pdf
631
631
  # @param parse_pdf_tables_with_ocr [Boolean]
632
- # @param enable_file_picker [Boolean] Enable integration's file picker for sources that support it. Supported sources: SHAREPOINT, DROPBOX, BOX, ONEDRIVE, GOOGLE_DRIVE
632
+ # @param enable_file_picker [Boolean] Enable integration's file picker for sources that support it. Supported sources: ONEDRIVE, GOOGLE_DRIVE, DROPBOX, SHAREPOINT, BOX
633
633
  # @param sync_source_items [Boolean] Enabling this flag will fetch all available content from the source to be listed via list items endpoint
634
634
  # @param incremental_sync [Boolean] Only sync files if they have not already been synced or if the embedding properties have changed. This flag is currently supported by ONEDRIVE, GOOGLE_DRIVE, BOX, DROPBOX. It will be ignored for other data sources.
635
- # @param file_sync_config [HelpdeskFileSyncConfigNullable]
635
+ # @param file_sync_config [FileSyncConfigNullable]
636
636
  # @param body [OAuthURLRequest]
637
637
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
638
- def get_oauth_url_with_http_info(service:, tags: SENTINEL, scope: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', zendesk_subdomain: SENTINEL, microsoft_tenant: SENTINEL, sharepoint_site_name: SENTINEL, confluence_subdomain: SENTINEL, generate_sparse_vectors: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, salesforce_domain: SENTINEL, sync_files_on_connection: true, set_page_as_boundary: false, data_source_id: SENTINEL, connecting_new_account: false, request_id: '26453c8f-69ab-4eb3-bc25-0ca995b118a0', use_ocr: false, parse_pdf_tables_with_ocr: false, enable_file_picker: true, sync_source_items: true, incremental_sync: false, file_sync_config: SENTINEL, extra: {})
638
+ def get_oauth_url_with_http_info(service:, tags: SENTINEL, scope: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', zendesk_subdomain: SENTINEL, microsoft_tenant: SENTINEL, sharepoint_site_name: SENTINEL, confluence_subdomain: SENTINEL, generate_sparse_vectors: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, salesforce_domain: SENTINEL, sync_files_on_connection: true, set_page_as_boundary: false, data_source_id: SENTINEL, connecting_new_account: false, request_id: 'eb3e536e-fa3e-4f8e-9a22-25f70393e759', use_ocr: false, parse_pdf_tables_with_ocr: false, enable_file_picker: true, sync_source_items: true, incremental_sync: false, file_sync_config: SENTINEL, extra: {})
639
639
  _body = {}
640
640
  _body[:tags] = tags if tags != SENTINEL
641
641
  _body[:scope] = scope if scope != SENTINEL
@@ -1428,10 +1428,10 @@ module Carbon
1428
1428
  # @param use_ocr [Boolean]
1429
1429
  # @param parse_pdf_tables_with_ocr [Boolean]
1430
1430
  # @param incremental_sync [Boolean] Only sync files if they have not already been synced or if the embedding properties have changed. This flag is currently supported by ONEDRIVE, GOOGLE_DRIVE, BOX, DROPBOX. It will be ignored for other data sources.
1431
- # @param file_sync_config [HelpdeskGlobalFileSyncConfigNullable]
1431
+ # @param file_sync_config [FileSyncConfigNullable]
1432
1432
  # @param body [SyncFilesRequest]
1433
1433
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
1434
- def sync_confluence(data_source_id:, ids:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, set_page_as_boundary: false, request_id: '3d0330f2-f2e4-482b-9ca7-91d3a1bbbd18', use_ocr: false, parse_pdf_tables_with_ocr: false, incremental_sync: false, file_sync_config: SENTINEL, extra: {})
1434
+ def sync_confluence(data_source_id:, ids:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, set_page_as_boundary: false, request_id: '27036d05-9737-4197-b0c6-e9fb9f60f976', use_ocr: false, parse_pdf_tables_with_ocr: false, incremental_sync: false, file_sync_config: SENTINEL, extra: {})
1435
1435
  _body = {}
1436
1436
  _body[:tags] = tags if tags != SENTINEL
1437
1437
  _body[:data_source_id] = data_source_id if data_source_id != SENTINEL
@@ -1476,10 +1476,10 @@ module Carbon
1476
1476
  # @param use_ocr [Boolean]
1477
1477
  # @param parse_pdf_tables_with_ocr [Boolean]
1478
1478
  # @param incremental_sync [Boolean] Only sync files if they have not already been synced or if the embedding properties have changed. This flag is currently supported by ONEDRIVE, GOOGLE_DRIVE, BOX, DROPBOX. It will be ignored for other data sources.
1479
- # @param file_sync_config [HelpdeskGlobalFileSyncConfigNullable]
1479
+ # @param file_sync_config [FileSyncConfigNullable]
1480
1480
  # @param body [SyncFilesRequest]
1481
1481
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
1482
- def sync_confluence_with_http_info(data_source_id:, ids:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, set_page_as_boundary: false, request_id: '3d0330f2-f2e4-482b-9ca7-91d3a1bbbd18', use_ocr: false, parse_pdf_tables_with_ocr: false, incremental_sync: false, file_sync_config: SENTINEL, extra: {})
1482
+ def sync_confluence_with_http_info(data_source_id:, ids:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, set_page_as_boundary: false, request_id: '27036d05-9737-4197-b0c6-e9fb9f60f976', use_ocr: false, parse_pdf_tables_with_ocr: false, incremental_sync: false, file_sync_config: SENTINEL, extra: {})
1483
1483
  _body = {}
1484
1484
  _body[:tags] = tags if tags != SENTINEL
1485
1485
  _body[:data_source_id] = data_source_id if data_source_id != SENTINEL
@@ -1684,10 +1684,10 @@ module Carbon
1684
1684
  # @param use_ocr [Boolean]
1685
1685
  # @param parse_pdf_tables_with_ocr [Boolean]
1686
1686
  # @param incremental_sync [Boolean] Only sync files if they have not already been synced or if the embedding properties have changed. This flag is currently supported by ONEDRIVE, GOOGLE_DRIVE, BOX, DROPBOX. It will be ignored for other data sources.
1687
- # @param file_sync_config [HelpdeskGlobalFileSyncConfigNullable]
1687
+ # @param file_sync_config [FileSyncConfigNullable]
1688
1688
  # @param body [SyncFilesRequest]
1689
1689
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
1690
- def sync_files(data_source_id:, ids:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, set_page_as_boundary: false, request_id: '3d0330f2-f2e4-482b-9ca7-91d3a1bbbd18', use_ocr: false, parse_pdf_tables_with_ocr: false, incremental_sync: false, file_sync_config: SENTINEL, extra: {})
1690
+ def sync_files(data_source_id:, ids:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, set_page_as_boundary: false, request_id: '27036d05-9737-4197-b0c6-e9fb9f60f976', use_ocr: false, parse_pdf_tables_with_ocr: false, incremental_sync: false, file_sync_config: SENTINEL, extra: {})
1691
1691
  _body = {}
1692
1692
  _body[:tags] = tags if tags != SENTINEL
1693
1693
  _body[:data_source_id] = data_source_id if data_source_id != SENTINEL
@@ -1732,10 +1732,10 @@ module Carbon
1732
1732
  # @param use_ocr [Boolean]
1733
1733
  # @param parse_pdf_tables_with_ocr [Boolean]
1734
1734
  # @param incremental_sync [Boolean] Only sync files if they have not already been synced or if the embedding properties have changed. This flag is currently supported by ONEDRIVE, GOOGLE_DRIVE, BOX, DROPBOX. It will be ignored for other data sources.
1735
- # @param file_sync_config [HelpdeskGlobalFileSyncConfigNullable]
1735
+ # @param file_sync_config [FileSyncConfigNullable]
1736
1736
  # @param body [SyncFilesRequest]
1737
1737
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
1738
- def sync_files_with_http_info(data_source_id:, ids:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, set_page_as_boundary: false, request_id: '3d0330f2-f2e4-482b-9ca7-91d3a1bbbd18', use_ocr: false, parse_pdf_tables_with_ocr: false, incremental_sync: false, file_sync_config: SENTINEL, extra: {})
1738
+ def sync_files_with_http_info(data_source_id:, ids:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, set_page_as_boundary: false, request_id: '27036d05-9737-4197-b0c6-e9fb9f60f976', use_ocr: false, parse_pdf_tables_with_ocr: false, incremental_sync: false, file_sync_config: SENTINEL, extra: {})
1739
1739
  _body = {}
1740
1740
  _body[:tags] = tags if tags != SENTINEL
1741
1741
  _body[:data_source_id] = data_source_id if data_source_id != SENTINEL
@@ -2136,9 +2136,11 @@ module Carbon
2136
2136
  # @param data_source_id [Integer]
2137
2137
  # @param request_id [String]
2138
2138
  # @param sync_attachments [Boolean]
2139
+ # @param file_sync_config [FileSyncConfigNullable]
2140
+ # @param incremental_sync [Boolean]
2139
2141
  # @param body [GmailSyncInput]
2140
2142
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
2141
- 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: {})
2143
+ def sync_gmail(filters:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, data_source_id: SENTINEL, request_id: SENTINEL, sync_attachments: false, file_sync_config: SENTINEL, incremental_sync: false, extra: {})
2142
2144
  _body = {}
2143
2145
  _body[:tags] = tags if tags != SENTINEL
2144
2146
  _body[:filters] = filters if filters != SENTINEL
@@ -2151,6 +2153,8 @@ module Carbon
2151
2153
  _body[:data_source_id] = data_source_id if data_source_id != SENTINEL
2152
2154
  _body[:request_id] = request_id if request_id != SENTINEL
2153
2155
  _body[:sync_attachments] = sync_attachments if sync_attachments != SENTINEL
2156
+ _body[:file_sync_config] = file_sync_config if file_sync_config != SENTINEL
2157
+ _body[:incremental_sync] = incremental_sync if incremental_sync != SENTINEL
2154
2158
  gmail_sync_input = _body
2155
2159
  api_response = sync_gmail_with_http_info_impl(gmail_sync_input, extra)
2156
2160
  api_response.data
@@ -2220,9 +2224,11 @@ module Carbon
2220
2224
  # @param data_source_id [Integer]
2221
2225
  # @param request_id [String]
2222
2226
  # @param sync_attachments [Boolean]
2227
+ # @param file_sync_config [FileSyncConfigNullable]
2228
+ # @param incremental_sync [Boolean]
2223
2229
  # @param body [GmailSyncInput]
2224
2230
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
2225
- 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: {})
2231
+ def sync_gmail_with_http_info(filters:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, data_source_id: SENTINEL, request_id: SENTINEL, sync_attachments: false, file_sync_config: SENTINEL, incremental_sync: false, extra: {})
2226
2232
  _body = {}
2227
2233
  _body[:tags] = tags if tags != SENTINEL
2228
2234
  _body[:filters] = filters if filters != SENTINEL
@@ -2235,6 +2241,8 @@ module Carbon
2235
2241
  _body[:data_source_id] = data_source_id if data_source_id != SENTINEL
2236
2242
  _body[:request_id] = request_id if request_id != SENTINEL
2237
2243
  _body[:sync_attachments] = sync_attachments if sync_attachments != SENTINEL
2244
+ _body[:file_sync_config] = file_sync_config if file_sync_config != SENTINEL
2245
+ _body[:incremental_sync] = incremental_sync if incremental_sync != SENTINEL
2238
2246
  gmail_sync_input = _body
2239
2247
  sync_gmail_with_http_info_impl(gmail_sync_input, extra)
2240
2248
  end
@@ -2383,9 +2391,11 @@ module Carbon
2383
2391
  # @param data_source_id [Integer]
2384
2392
  # @param request_id [String]
2385
2393
  # @param sync_attachments [Boolean]
2394
+ # @param file_sync_config [FileSyncConfigNullable]
2395
+ # @param incremental_sync [Boolean]
2386
2396
  # @param body [OutlookSyncInput]
2387
2397
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
2388
- 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: {})
2398
+ def sync_outlook(filters:, tags: SENTINEL, folder: 'Inbox', chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, data_source_id: SENTINEL, request_id: SENTINEL, sync_attachments: false, file_sync_config: SENTINEL, incremental_sync: false, extra: {})
2389
2399
  _body = {}
2390
2400
  _body[:tags] = tags if tags != SENTINEL
2391
2401
  _body[:folder] = folder if folder != SENTINEL
@@ -2399,6 +2409,8 @@ module Carbon
2399
2409
  _body[:data_source_id] = data_source_id if data_source_id != SENTINEL
2400
2410
  _body[:request_id] = request_id if request_id != SENTINEL
2401
2411
  _body[:sync_attachments] = sync_attachments if sync_attachments != SENTINEL
2412
+ _body[:file_sync_config] = file_sync_config if file_sync_config != SENTINEL
2413
+ _body[:incremental_sync] = incremental_sync if incremental_sync != SENTINEL
2402
2414
  outlook_sync_input = _body
2403
2415
  api_response = sync_outlook_with_http_info_impl(outlook_sync_input, extra)
2404
2416
  api_response.data
@@ -2479,9 +2491,11 @@ module Carbon
2479
2491
  # @param data_source_id [Integer]
2480
2492
  # @param request_id [String]
2481
2493
  # @param sync_attachments [Boolean]
2494
+ # @param file_sync_config [FileSyncConfigNullable]
2495
+ # @param incremental_sync [Boolean]
2482
2496
  # @param body [OutlookSyncInput]
2483
2497
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
2484
- 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: {})
2498
+ def sync_outlook_with_http_info(filters:, tags: SENTINEL, folder: 'Inbox', chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, data_source_id: SENTINEL, request_id: SENTINEL, sync_attachments: false, file_sync_config: SENTINEL, incremental_sync: false, extra: {})
2485
2499
  _body = {}
2486
2500
  _body[:tags] = tags if tags != SENTINEL
2487
2501
  _body[:folder] = folder if folder != SENTINEL
@@ -2495,6 +2509,8 @@ module Carbon
2495
2509
  _body[:data_source_id] = data_source_id if data_source_id != SENTINEL
2496
2510
  _body[:request_id] = request_id if request_id != SENTINEL
2497
2511
  _body[:sync_attachments] = sync_attachments if sync_attachments != SENTINEL
2512
+ _body[:file_sync_config] = file_sync_config if file_sync_config != SENTINEL
2513
+ _body[:incremental_sync] = incremental_sync if incremental_sync != SENTINEL
2498
2514
  outlook_sync_input = _body
2499
2515
  sync_outlook_with_http_info_impl(outlook_sync_input, extra)
2500
2516
  end
@@ -2818,9 +2834,10 @@ module Carbon
2818
2834
  # @param request_id [String]
2819
2835
  # @param use_ocr [Boolean]
2820
2836
  # @param parse_pdf_tables_with_ocr [Boolean]
2837
+ # @param file_sync_config [FileSyncConfigNullable]
2821
2838
  # @param body [S3FileSyncInput]
2822
2839
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
2823
- def sync_s3_files(ids:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, set_page_as_boundary: false, data_source_id: SENTINEL, request_id: SENTINEL, use_ocr: false, parse_pdf_tables_with_ocr: false, extra: {})
2840
+ def sync_s3_files(ids:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, set_page_as_boundary: false, data_source_id: SENTINEL, request_id: SENTINEL, use_ocr: false, parse_pdf_tables_with_ocr: false, file_sync_config: SENTINEL, extra: {})
2824
2841
  _body = {}
2825
2842
  _body[:tags] = tags if tags != SENTINEL
2826
2843
  _body[:ids] = ids if ids != SENTINEL
@@ -2836,6 +2853,7 @@ module Carbon
2836
2853
  _body[:request_id] = request_id if request_id != SENTINEL
2837
2854
  _body[:use_ocr] = use_ocr if use_ocr != SENTINEL
2838
2855
  _body[:parse_pdf_tables_with_ocr] = parse_pdf_tables_with_ocr if parse_pdf_tables_with_ocr != SENTINEL
2856
+ _body[:file_sync_config] = file_sync_config if file_sync_config != SENTINEL
2839
2857
  s3_file_sync_input = _body
2840
2858
  api_response = sync_s3_files_with_http_info_impl(s3_file_sync_input, extra)
2841
2859
  api_response.data
@@ -2861,9 +2879,10 @@ module Carbon
2861
2879
  # @param request_id [String]
2862
2880
  # @param use_ocr [Boolean]
2863
2881
  # @param parse_pdf_tables_with_ocr [Boolean]
2882
+ # @param file_sync_config [FileSyncConfigNullable]
2864
2883
  # @param body [S3FileSyncInput]
2865
2884
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
2866
- def sync_s3_files_with_http_info(ids:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, set_page_as_boundary: false, data_source_id: SENTINEL, request_id: SENTINEL, use_ocr: false, parse_pdf_tables_with_ocr: false, extra: {})
2885
+ def sync_s3_files_with_http_info(ids:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, set_page_as_boundary: false, data_source_id: SENTINEL, request_id: SENTINEL, use_ocr: false, parse_pdf_tables_with_ocr: false, file_sync_config: SENTINEL, extra: {})
2867
2886
  _body = {}
2868
2887
  _body[:tags] = tags if tags != SENTINEL
2869
2888
  _body[:ids] = ids if ids != SENTINEL
@@ -2879,6 +2898,7 @@ module Carbon
2879
2898
  _body[:request_id] = request_id if request_id != SENTINEL
2880
2899
  _body[:use_ocr] = use_ocr if use_ocr != SENTINEL
2881
2900
  _body[:parse_pdf_tables_with_ocr] = parse_pdf_tables_with_ocr if parse_pdf_tables_with_ocr != SENTINEL
2901
+ _body[:file_sync_config] = file_sync_config if file_sync_config != SENTINEL
2882
2902
  s3_file_sync_input = _body
2883
2903
  sync_s3_files_with_http_info_impl(s3_file_sync_input, extra)
2884
2904
  end
@@ -57,9 +57,10 @@ module Carbon
57
57
  OGG = "OGG".freeze
58
58
  OPUS = "OPUS".freeze
59
59
  WEBM = "WEBM".freeze
60
+ MPEG = "MPEG".freeze
60
61
 
61
62
  def self.all_vars
62
- @all_vars ||= [GOOGLE_DRIVE, NOTION, NOTION_DATABASE, INTERCOM, DROPBOX, ONEDRIVE, SHAREPOINT, CONFLUENCE, BOX, ZENDESK, ZOTERO, S3, GMAIL, OUTLOOK, TEXT, CSV, TSV, PDF, DOCX, PPTX, XLSX, MD, RTF, JSON, HTML, RAW_TEXT, WEB_SCRAPE, RSS_FEED, FRESHDESK, GITBOOK, SALESFORCE, GITHUB, JPG, PNG, JPEG, MP3, MP4, MP2, AAC, WAV, FLAC, PCM, M4_A, OGG, OPUS, WEBM].freeze
63
+ @all_vars ||= [GOOGLE_DRIVE, NOTION, NOTION_DATABASE, INTERCOM, DROPBOX, ONEDRIVE, SHAREPOINT, CONFLUENCE, BOX, ZENDESK, ZOTERO, S3, GMAIL, OUTLOOK, TEXT, CSV, TSV, PDF, DOCX, PPTX, XLSX, MD, RTF, JSON, HTML, RAW_TEXT, WEB_SCRAPE, RSS_FEED, FRESHDESK, GITBOOK, SALESFORCE, GITHUB, JPG, PNG, JPEG, MP3, MP4, MP2, AAC, WAV, FLAC, PCM, M4_A, OGG, OPUS, WEBM, MPEG].freeze
63
64
  end
64
65
 
65
66
  # Builds the enum from string
@@ -57,9 +57,10 @@ module Carbon
57
57
  OGG = "OGG".freeze
58
58
  OPUS = "OPUS".freeze
59
59
  WEBM = "WEBM".freeze
60
+ MPEG = "MPEG".freeze
60
61
 
61
62
  def self.all_vars
62
- @all_vars ||= [GOOGLE_DRIVE, NOTION, NOTION_DATABASE, INTERCOM, DROPBOX, ONEDRIVE, SHAREPOINT, CONFLUENCE, BOX, ZENDESK, ZOTERO, S3, GMAIL, OUTLOOK, TEXT, CSV, TSV, PDF, DOCX, PPTX, XLSX, MD, RTF, JSON, HTML, RAW_TEXT, WEB_SCRAPE, RSS_FEED, FRESHDESK, GITBOOK, SALESFORCE, GITHUB, JPG, PNG, JPEG, MP3, MP4, MP2, AAC, WAV, FLAC, PCM, M4_A, OGG, OPUS, WEBM].freeze
63
+ @all_vars ||= [GOOGLE_DRIVE, NOTION, NOTION_DATABASE, INTERCOM, DROPBOX, ONEDRIVE, SHAREPOINT, CONFLUENCE, BOX, ZENDESK, ZOTERO, S3, GMAIL, OUTLOOK, TEXT, CSV, TSV, PDF, DOCX, PPTX, XLSX, MD, RTF, JSON, HTML, RAW_TEXT, WEB_SCRAPE, RSS_FEED, FRESHDESK, GITBOOK, SALESFORCE, GITHUB, JPG, PNG, JPEG, MP3, MP4, MP2, AAC, WAV, FLAC, PCM, M4_A, OGG, OPUS, WEBM, MPEG].freeze
63
64
  end
64
65
 
65
66
  # Builds the enum from string
@@ -15,11 +15,14 @@ module Carbon
15
15
 
16
16
  attr_accessor :html_content
17
17
 
18
+ attr_accessor :error_message
19
+
18
20
  # Attribute mapping from ruby-style variable name to JSON key.
19
21
  def self.attribute_map
20
22
  {
21
23
  :'urls' => :'urls',
22
- :'html_content' => :'html_content'
24
+ :'html_content' => :'html_content',
25
+ :'error_message' => :'error_message'
23
26
  }
24
27
  end
25
28
 
@@ -32,13 +35,15 @@ module Carbon
32
35
  def self.openapi_types
33
36
  {
34
37
  :'urls' => :'Array<String>',
35
- :'html_content' => :'String'
38
+ :'html_content' => :'String',
39
+ :'error_message' => :'String'
36
40
  }
37
41
  end
38
42
 
39
43
  # List of attributes with nullable: true
40
44
  def self.openapi_nullable
41
45
  Set.new([
46
+ :'error_message'
42
47
  ])
43
48
  end
44
49
 
@@ -66,6 +71,10 @@ module Carbon
66
71
  if attributes.key?(:'html_content')
67
72
  self.html_content = attributes[:'html_content']
68
73
  end
74
+
75
+ if attributes.key?(:'error_message')
76
+ self.error_message = attributes[:'error_message']
77
+ end
69
78
  end
70
79
 
71
80
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -97,7 +106,8 @@ module Carbon
97
106
  return true if self.equal?(o)
98
107
  self.class == o.class &&
99
108
  urls == o.urls &&
100
- html_content == o.html_content
109
+ html_content == o.html_content &&
110
+ error_message == o.error_message
101
111
  end
102
112
 
103
113
  # @see the `==` method
@@ -109,7 +119,7 @@ module Carbon
109
119
  # Calculates hash code according to all attributes.
110
120
  # @return [Integer] Hash code
111
121
  def hash
112
- [urls, html_content].hash
122
+ [urls, html_content, error_message].hash
113
123
  end
114
124
 
115
125
  # Builds the object from hash