carbon_ruby_sdk 0.1.34 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4c10f0e766b6ff44d82639898430c9f30b04e9a79d20c7426b788854e8e8b5cb
4
- data.tar.gz: 4ffdf4710ddf4ffda807f0cdc4b8952583a71e1c7e4004c9f981cead2c3eda1b
3
+ metadata.gz: 1a619d3a93e65901cc357afe3bbdd8baa1aceda53801e87dd98f979b479dec97
4
+ data.tar.gz: e504c2c304dc8ab8c38a79cc36d0f31e332660a4fc3d0263c8f7f5dd1f175412
5
5
  SHA512:
6
- metadata.gz: 8043fcb691c8324d571ee0323a3a7a06597a2f1807db3565e0895a1e5b3a175ed8a12027f1bc9622e046c47bac83ff345cecb24baf453bbb187deaa1443fa776
7
- data.tar.gz: ded8a325ac5d7eb6ce81d3365386ec69d255ee64537c741602b49fb81f95f581d37a681dd1242afd9a9f400bc06be0b69b211455f7f79c57a47a924e8a1be023
6
+ metadata.gz: 40d6938fe03dea03f242e913c6061093a56e8929d938038482b1e2691206b71327b42c6ce2f5d11a4d612496c36bd7a5f08da953e3f2a25bf0e520a51bcf2e53
7
+ data.tar.gz: 3bd4f9fd552a4feb8cadd2854d9fa80b0ab3a9c9009857de079d196eacbd26e290ddc8444b362a0b783605d308780ca61574e808b2413ca27bcb96f19a21aedb
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- carbon_ruby_sdk (0.1.33)
4
+ carbon_ruby_sdk (0.1.34)
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.34-blue)](https://rubygems.org/gems/carbon_ruby_sdk/versions/0.1.34)
9
+ [![npm](https://img.shields.io/badge/gem-v0.2.0-blue)](https://rubygems.org/gems/carbon_ruby_sdk/versions/0.2.0)
10
10
 
11
11
  </div>
12
12
 
@@ -63,6 +63,7 @@ Connect external data to LLMs, no matter the source.
63
63
  * [`carbon.integrations.sync_s3_files`](#carbonintegrationssync_s3_files)
64
64
  * [`carbon.organizations.get`](#carbonorganizationsget)
65
65
  * [`carbon.organizations.update`](#carbonorganizationsupdate)
66
+ * [`carbon.organizations.update_stats`](#carbonorganizationsupdate_stats)
66
67
  * [`carbon.users.delete`](#carbonusersdelete)
67
68
  * [`carbon.users.get`](#carbonusersget)
68
69
  * [`carbon.users.toggle_user_features`](#carbonuserstoggle_user_features)
@@ -84,7 +85,7 @@ Connect external data to LLMs, no matter the source.
84
85
  Add to Gemfile:
85
86
 
86
87
  ```ruby
87
- gem 'carbon_ruby_sdk', '~> 0.1.34'
88
+ gem 'carbon_ruby_sdk', '~> 0.2.0'
88
89
  ```
89
90
 
90
91
  ## Getting Started<a id="getting-started"></a>
@@ -1002,6 +1003,7 @@ result = carbon.files.upload(
1002
1003
  max_items_per_chunk: 1,
1003
1004
  parse_pdf_tables_with_ocr: false,
1004
1005
  detect_audio_language: false,
1006
+ media_type: "TEXT",
1005
1007
  )
1006
1008
  p result
1007
1009
  ```
@@ -1047,6 +1049,10 @@ Whether to use rich table parsing when `use_ocr` is enabled.
1047
1049
  ##### detect_audio_language: `Boolean`<a id="detect_audio_language-boolean"></a>
1048
1050
  Whether to automatically detect the language of the uploaded audio file.
1049
1051
 
1052
+ ##### media_type: [`FileContentTypesNullable`](./lib/carbon_ruby_sdk/models/file_content_types_nullable.rb)<a id="media_type-filecontenttypesnullablelibcarbon_ruby_sdkmodelsfile_content_types_nullablerb"></a>
1053
+ The media type of the file. If not provided, it will be inferred from the file
1054
+ extension.
1055
+
1050
1056
  #### 🔄 Return<a id="🔄-return"></a>
1051
1057
 
1052
1058
  [UserFile](./lib/carbon_ruby_sdk/models/user_file.rb)
@@ -1208,7 +1214,7 @@ result = carbon.integrations.connect_data_source(
1208
1214
  "prepend_filename_to_chunks" => false,
1209
1215
  "sync_files_on_connection" => true,
1210
1216
  "set_page_as_boundary" => false,
1211
- "request_id" => "18ef9025-4c76-443c-a115-ba77b17afd8b",
1217
+ "request_id" => "f5552316-5da3-46e6-ad9f-2f94e30d02cd",
1212
1218
  "enable_file_picker" => true,
1213
1219
  "sync_source_items" => true,
1214
1220
  "incremental_sync" => false,
@@ -1427,7 +1433,7 @@ result = carbon.integrations.get_oauth_url(
1427
1433
  set_page_as_boundary: false,
1428
1434
  data_source_id: 1,
1429
1435
  connecting_new_account: false,
1430
- request_id: "eb3e536e-fa3e-4f8e-9a22-25f70393e759",
1436
+ request_id: "273420dd-e05c-463f-a3cf-0ff28029639e",
1431
1437
  use_ocr: false,
1432
1438
  parse_pdf_tables_with_ocr: false,
1433
1439
  enable_file_picker: true,
@@ -1487,7 +1493,7 @@ Enable OCR for files that support it. Supported formats: pdf
1487
1493
  ##### parse_pdf_tables_with_ocr: `Boolean`<a id="parse_pdf_tables_with_ocr-boolean"></a>
1488
1494
  ##### enable_file_picker: `Boolean`<a id="enable_file_picker-boolean"></a>
1489
1495
  Enable integration's file picker for sources that support it. Supported sources:
1490
- ONEDRIVE, GOOGLE_DRIVE, DROPBOX, SHAREPOINT, BOX
1496
+ SHAREPOINT, DROPBOX, GOOGLE_DRIVE, BOX, ONEDRIVE
1491
1497
 
1492
1498
  ##### sync_source_items: `Boolean`<a id="sync_source_items-boolean"></a>
1493
1499
  Enabling this flag will fetch all available content from the source to be listed
@@ -1749,7 +1755,7 @@ result = carbon.integrations.sync_confluence(
1749
1755
  prepend_filename_to_chunks: false,
1750
1756
  max_items_per_chunk: 1,
1751
1757
  set_page_as_boundary: false,
1752
- request_id: "27036d05-9737-4197-b0c6-e9fb9f60f976",
1758
+ request_id: "2782cb96-1bf6-452c-a8d9-60c2378fd079",
1753
1759
  use_ocr: false,
1754
1760
  parse_pdf_tables_with_ocr: false,
1755
1761
  incremental_sync: false,
@@ -1852,7 +1858,7 @@ result = carbon.integrations.sync_files(
1852
1858
  prepend_filename_to_chunks: false,
1853
1859
  max_items_per_chunk: 1,
1854
1860
  set_page_as_boundary: false,
1855
- request_id: "27036d05-9737-4197-b0c6-e9fb9f60f976",
1861
+ request_id: "2782cb96-1bf6-452c-a8d9-60c2378fd079",
1856
1862
  use_ocr: false,
1857
1863
  parse_pdf_tables_with_ocr: false,
1858
1864
  incremental_sync: false,
@@ -2408,6 +2414,33 @@ p result
2408
2414
  ---
2409
2415
 
2410
2416
 
2417
+ ### `carbon.organizations.update_stats`<a id="carbonorganizationsupdate_stats"></a>
2418
+
2419
+ Use this endpoint to reaggregate the statistics for an organization, for example aggregate_file_size. The reaggregation
2420
+ process is asyncronous so a webhook will be sent with the event type being FILE_STATISTICS_AGGREGATED to notify when the
2421
+ process is complee. After this aggregation is complete, the updated statistics can be retrieved using the /organization
2422
+ endpoint. The response of /organization willalso contain a timestamp of the last time the statistics were reaggregated.
2423
+
2424
+ #### 🛠️ Usage<a id="🛠️-usage"></a>
2425
+
2426
+ ```ruby
2427
+ result = carbon.organizations.update_stats
2428
+ p result
2429
+ ```
2430
+
2431
+ #### 🔄 Return<a id="🔄-return"></a>
2432
+
2433
+ [GenericSuccessResponse](./lib/carbon_ruby_sdk/models/generic_success_response.rb)
2434
+
2435
+ #### 🌐 Endpoint<a id="🌐-endpoint"></a>
2436
+
2437
+ `/organization/statistics` `POST`
2438
+
2439
+ [🔙 **Back to Table of Contents**](#table-of-contents)
2440
+
2441
+ ---
2442
+
2443
+
2411
2444
  ### `carbon.users.delete`<a id="carbonusersdelete"></a>
2412
2445
 
2413
2446
  Delete Users
@@ -1173,9 +1173,10 @@ module Carbon
1173
1173
  # @param max_items_per_chunk [Integer] Number of objects per chunk. For csv, tsv, xlsx, and json files only.
1174
1174
  # @param parse_pdf_tables_with_ocr [Boolean] Whether to use rich table parsing when `use_ocr` is enabled.
1175
1175
  # @param detect_audio_language [Boolean] Whether to automatically detect the language of the uploaded audio file.
1176
+ # @param media_type [FileContentTypesNullable] The media type of the file. If not provided, it will be inferred from the file extension.
1176
1177
  # @param body [BodyCreateUploadFileUploadfilePost]
1177
1178
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
1178
- def upload(file:, chunk_size: SENTINEL, chunk_overlap: SENTINEL, skip_embedding_generation: false, set_page_as_boundary: false, embedding_model: SENTINEL, use_ocr: false, generate_sparse_vectors: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, parse_pdf_tables_with_ocr: false, detect_audio_language: false, extra: {})
1179
+ def upload(file:, chunk_size: SENTINEL, chunk_overlap: SENTINEL, skip_embedding_generation: false, set_page_as_boundary: false, embedding_model: SENTINEL, use_ocr: false, generate_sparse_vectors: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, parse_pdf_tables_with_ocr: false, detect_audio_language: false, media_type: 'TEXT', extra: {})
1179
1180
  _body = {}
1180
1181
  _body[:file] = file if file != SENTINEL
1181
1182
  body_create_upload_file_uploadfile_post = _body
@@ -1190,6 +1191,7 @@ module Carbon
1190
1191
  extra[:max_items_per_chunk] = max_items_per_chunk if max_items_per_chunk != SENTINEL
1191
1192
  extra[:parse_pdf_tables_with_ocr] = parse_pdf_tables_with_ocr if parse_pdf_tables_with_ocr != SENTINEL
1192
1193
  extra[:detect_audio_language] = detect_audio_language if detect_audio_language != SENTINEL
1194
+ extra[:media_type] = media_type if media_type != SENTINEL
1193
1195
  api_response = upload_with_http_info_impl(file, body_create_upload_file_uploadfile_post, extra)
1194
1196
  api_response.data
1195
1197
  end
@@ -1234,9 +1236,10 @@ module Carbon
1234
1236
  # @param max_items_per_chunk [Integer] Number of objects per chunk. For csv, tsv, xlsx, and json files only.
1235
1237
  # @param parse_pdf_tables_with_ocr [Boolean] Whether to use rich table parsing when `use_ocr` is enabled.
1236
1238
  # @param detect_audio_language [Boolean] Whether to automatically detect the language of the uploaded audio file.
1239
+ # @param media_type [FileContentTypesNullable] The media type of the file. If not provided, it will be inferred from the file extension.
1237
1240
  # @param body [BodyCreateUploadFileUploadfilePost]
1238
1241
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
1239
- def upload_with_http_info(file:, chunk_size: SENTINEL, chunk_overlap: SENTINEL, skip_embedding_generation: false, set_page_as_boundary: false, embedding_model: SENTINEL, use_ocr: false, generate_sparse_vectors: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, parse_pdf_tables_with_ocr: false, detect_audio_language: false, extra: {})
1242
+ def upload_with_http_info(file:, chunk_size: SENTINEL, chunk_overlap: SENTINEL, skip_embedding_generation: false, set_page_as_boundary: false, embedding_model: SENTINEL, use_ocr: false, generate_sparse_vectors: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, parse_pdf_tables_with_ocr: false, detect_audio_language: false, media_type: 'TEXT', extra: {})
1240
1243
  _body = {}
1241
1244
  _body[:file] = file if file != SENTINEL
1242
1245
  body_create_upload_file_uploadfile_post = _body
@@ -1251,6 +1254,7 @@ module Carbon
1251
1254
  extra[:max_items_per_chunk] = max_items_per_chunk if max_items_per_chunk != SENTINEL
1252
1255
  extra[:parse_pdf_tables_with_ocr] = parse_pdf_tables_with_ocr if parse_pdf_tables_with_ocr != SENTINEL
1253
1256
  extra[:detect_audio_language] = detect_audio_language if detect_audio_language != SENTINEL
1257
+ extra[:media_type] = media_type if media_type != SENTINEL
1254
1258
  upload_with_http_info_impl(file, body_create_upload_file_uploadfile_post, extra)
1255
1259
  end
1256
1260
 
@@ -1270,6 +1274,7 @@ module Carbon
1270
1274
  # @option opts [Integer] :max_items_per_chunk Number of objects per chunk. For csv, tsv, xlsx, and json files only.
1271
1275
  # @option opts [Boolean] :parse_pdf_tables_with_ocr Whether to use rich table parsing when `use_ocr` is enabled. (default to false)
1272
1276
  # @option opts [Boolean] :detect_audio_language Whether to automatically detect the language of the uploaded audio file. (default to false)
1277
+ # @option opts [FileContentTypesNullable] :media_type The media type of the file. If not provided, it will be inferred from the file extension. (default to 'TEXT')
1273
1278
  # @return [UserFile]
1274
1279
  private def upload_impl(file, body_create_upload_file_uploadfile_post, opts = {})
1275
1280
  data, _status_code, _headers = upload_with_http_info(file, body_create_upload_file_uploadfile_post, opts)
@@ -1292,6 +1297,7 @@ module Carbon
1292
1297
  # @option opts [Integer] :max_items_per_chunk Number of objects per chunk. For csv, tsv, xlsx, and json files only.
1293
1298
  # @option opts [Boolean] :parse_pdf_tables_with_ocr Whether to use rich table parsing when `use_ocr` is enabled. (default to false)
1294
1299
  # @option opts [Boolean] :detect_audio_language Whether to automatically detect the language of the uploaded audio file. (default to false)
1300
+ # @option opts [FileContentTypesNullable] :media_type The media type of the file. If not provided, it will be inferred from the file extension. (default to 'TEXT')
1295
1301
  # @return [APIResponse] data is UserFile, status code, headers and response
1296
1302
  private def upload_with_http_info_impl(file, body_create_upload_file_uploadfile_post, opts = {})
1297
1303
  if @api_client.config.debugging
@@ -1321,6 +1327,7 @@ module Carbon
1321
1327
  query_params[:'max_items_per_chunk'] = opts[:'max_items_per_chunk'] if !opts[:'max_items_per_chunk'].nil?
1322
1328
  query_params[:'parse_pdf_tables_with_ocr'] = opts[:'parse_pdf_tables_with_ocr'] if !opts[:'parse_pdf_tables_with_ocr'].nil?
1323
1329
  query_params[:'detect_audio_language'] = opts[:'detect_audio_language'] if !opts[:'detect_audio_language'].nil?
1330
+ query_params[:'media_type'] = opts[:'media_type'] if !opts[:'media_type'].nil?
1324
1331
 
1325
1332
  # header parameters
1326
1333
  header_params = opts[:header_params] || {}
@@ -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: ONEDRIVE, GOOGLE_DRIVE, DROPBOX, SHAREPOINT, BOX
564
+ # @param enable_file_picker [Boolean] Enable integration's file picker for sources that support it. Supported sources: SHAREPOINT, DROPBOX, GOOGLE_DRIVE, BOX, ONEDRIVE
565
565
  # @param sync_source_items [Boolean] Enabling this flag will fetch all available content from the source to be listed via list items endpoint
566
566
  # @param incremental_sync [Boolean] Only sync files if they have not already been synced or if the embedding properties have changed. This flag is currently supported by ONEDRIVE, GOOGLE_DRIVE, BOX, DROPBOX. It will be ignored for other data sources.
567
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: '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: {})
570
+ def get_oauth_url(service:, tags: SENTINEL, scope: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', zendesk_subdomain: SENTINEL, microsoft_tenant: SENTINEL, sharepoint_site_name: SENTINEL, confluence_subdomain: SENTINEL, generate_sparse_vectors: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, salesforce_domain: SENTINEL, sync_files_on_connection: true, set_page_as_boundary: false, data_source_id: SENTINEL, connecting_new_account: false, request_id: '273420dd-e05c-463f-a3cf-0ff28029639e', use_ocr: false, parse_pdf_tables_with_ocr: false, enable_file_picker: true, sync_source_items: true, incremental_sync: false, file_sync_config: SENTINEL, extra: {})
571
571
  _body = {}
572
572
  _body[:tags] = tags if tags != SENTINEL
573
573
  _body[:scope] = scope if scope != SENTINEL
@@ -629,13 +629,13 @@ module Carbon
629
629
  # @param request_id [String] This request id will be added to all files that get synced using the generated OAuth URL
630
630
  # @param use_ocr [Boolean] Enable OCR for files that support it. Supported formats: pdf
631
631
  # @param parse_pdf_tables_with_ocr [Boolean]
632
- # @param enable_file_picker [Boolean] Enable integration's file picker for sources that support it. Supported sources: ONEDRIVE, GOOGLE_DRIVE, DROPBOX, SHAREPOINT, BOX
632
+ # @param enable_file_picker [Boolean] Enable integration's file picker for sources that support it. Supported sources: SHAREPOINT, DROPBOX, GOOGLE_DRIVE, BOX, ONEDRIVE
633
633
  # @param sync_source_items [Boolean] Enabling this flag will fetch all available content from the source to be listed via list items endpoint
634
634
  # @param incremental_sync [Boolean] Only sync files if they have not already been synced or if the embedding properties have changed. This flag is currently supported by ONEDRIVE, GOOGLE_DRIVE, BOX, DROPBOX. It will be ignored for other data sources.
635
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: '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: {})
638
+ def get_oauth_url_with_http_info(service:, tags: SENTINEL, scope: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', zendesk_subdomain: SENTINEL, microsoft_tenant: SENTINEL, sharepoint_site_name: SENTINEL, confluence_subdomain: SENTINEL, generate_sparse_vectors: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, salesforce_domain: SENTINEL, sync_files_on_connection: true, set_page_as_boundary: false, data_source_id: SENTINEL, connecting_new_account: false, request_id: '273420dd-e05c-463f-a3cf-0ff28029639e', use_ocr: false, parse_pdf_tables_with_ocr: false, enable_file_picker: true, sync_source_items: true, incremental_sync: false, file_sync_config: SENTINEL, extra: {})
639
639
  _body = {}
640
640
  _body[:tags] = tags if tags != SENTINEL
641
641
  _body[:scope] = scope if scope != SENTINEL
@@ -1431,7 +1431,7 @@ module Carbon
1431
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: '27036d05-9737-4197-b0c6-e9fb9f60f976', 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: '2782cb96-1bf6-452c-a8d9-60c2378fd079', use_ocr: false, parse_pdf_tables_with_ocr: false, incremental_sync: false, file_sync_config: SENTINEL, extra: {})
1435
1435
  _body = {}
1436
1436
  _body[:tags] = tags if tags != SENTINEL
1437
1437
  _body[:data_source_id] = data_source_id if data_source_id != SENTINEL
@@ -1479,7 +1479,7 @@ module Carbon
1479
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: '27036d05-9737-4197-b0c6-e9fb9f60f976', 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: '2782cb96-1bf6-452c-a8d9-60c2378fd079', use_ocr: false, parse_pdf_tables_with_ocr: false, incremental_sync: false, file_sync_config: SENTINEL, extra: {})
1483
1483
  _body = {}
1484
1484
  _body[:tags] = tags if tags != SENTINEL
1485
1485
  _body[:data_source_id] = data_source_id if data_source_id != SENTINEL
@@ -1687,7 +1687,7 @@ module Carbon
1687
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: '27036d05-9737-4197-b0c6-e9fb9f60f976', 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: '2782cb96-1bf6-452c-a8d9-60c2378fd079', use_ocr: false, parse_pdf_tables_with_ocr: false, incremental_sync: false, file_sync_config: SENTINEL, extra: {})
1691
1691
  _body = {}
1692
1692
  _body[:tags] = tags if tags != SENTINEL
1693
1693
  _body[:data_source_id] = data_source_id if data_source_id != SENTINEL
@@ -1735,7 +1735,7 @@ module Carbon
1735
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: '27036d05-9737-4197-b0c6-e9fb9f60f976', 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: '2782cb96-1bf6-452c-a8d9-60c2378fd079', use_ocr: false, parse_pdf_tables_with_ocr: false, incremental_sync: false, file_sync_config: SENTINEL, extra: {})
1739
1739
  _body = {}
1740
1740
  _body[:tags] = tags if tags != SENTINEL
1741
1741
  _body[:data_source_id] = data_source_id if data_source_id != SENTINEL
@@ -177,6 +177,89 @@ module Carbon
177
177
  end
178
178
  APIResponse::new(data, status_code, headers, response)
179
179
  end
180
+
181
+
182
+ # Update Organization Statistics
183
+ #
184
+ # Use this endpoint to reaggregate the statistics for an organization, for example aggregate_file_size. The reaggregation
185
+ # process is asyncronous so a webhook will be sent with the event type being FILE_STATISTICS_AGGREGATED to notify when the
186
+ # process is complee. After this aggregation is complete, the updated statistics can be retrieved using the /organization
187
+ # endpoint. The response of /organization willalso contain a timestamp of the last time the statistics were reaggregated.
188
+ #
189
+ # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
190
+ def update_stats(extra: {})
191
+ api_response = update_stats_with_http_info_impl(extra)
192
+ api_response.data
193
+ end
194
+
195
+ # Update Organization Statistics
196
+ #
197
+ # Use this endpoint to reaggregate the statistics for an organization, for example aggregate_file_size. The reaggregation
198
+ # process is asyncronous so a webhook will be sent with the event type being FILE_STATISTICS_AGGREGATED to notify when the
199
+ # process is complee. After this aggregation is complete, the updated statistics can be retrieved using the /organization
200
+ # endpoint. The response of /organization willalso contain a timestamp of the last time the statistics were reaggregated.
201
+ #
202
+ # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
203
+ def update_stats_with_http_info(extra: {})
204
+ update_stats_with_http_info_impl(extra)
205
+ end
206
+
207
+ # Update Organization Statistics
208
+ # Use this endpoint to reaggregate the statistics for an organization, for example aggregate_file_size. The reaggregation process is asyncronous so a webhook will be sent with the event type being FILE_STATISTICS_AGGREGATED to notify when the process is complee. After this aggregation is complete, the updated statistics can be retrieved using the /organization endpoint. The response of /organization willalso contain a timestamp of the last time the statistics were reaggregated.
209
+ # @param [Hash] opts the optional parameters
210
+ # @return [GenericSuccessResponse]
211
+ private def update_stats_impl(opts = {})
212
+ data, _status_code, _headers = update_stats_with_http_info(opts)
213
+ data
214
+ end
215
+
216
+ # Update Organization Statistics
217
+ # Use this endpoint to reaggregate the statistics for an organization, for example aggregate_file_size. The reaggregation process is asyncronous so a webhook will be sent with the event type being FILE_STATISTICS_AGGREGATED to notify when the process is complee. After this aggregation is complete, the updated statistics can be retrieved using the /organization endpoint. The response of /organization willalso contain a timestamp of the last time the statistics were reaggregated.
218
+ # @param [Hash] opts the optional parameters
219
+ # @return [APIResponse] data is GenericSuccessResponse, status code, headers and response
220
+ private def update_stats_with_http_info_impl(opts = {})
221
+ if @api_client.config.debugging
222
+ @api_client.config.logger.debug 'Calling API: OrganizationsApi.update_stats ...'
223
+ end
224
+ # resource path
225
+ local_var_path = '/organization/statistics'
226
+
227
+ # query parameters
228
+ query_params = opts[:query_params] || {}
229
+
230
+ # header parameters
231
+ header_params = opts[:header_params] || {}
232
+ # HTTP header 'Accept' (if needed)
233
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
234
+
235
+ # form parameters
236
+ form_params = opts[:form_params] || {}
237
+
238
+ # http body (model)
239
+ post_body = opts[:debug_body]
240
+
241
+ # return_type
242
+ return_type = opts[:debug_return_type] || 'GenericSuccessResponse'
243
+
244
+ # auth_names
245
+ auth_names = opts[:debug_auth_names] || ['apiKey']
246
+
247
+ new_options = opts.merge(
248
+ :operation => :"OrganizationsApi.update_stats",
249
+ :header_params => header_params,
250
+ :query_params => query_params,
251
+ :form_params => form_params,
252
+ :body => post_body,
253
+ :auth_names => auth_names,
254
+ :return_type => return_type
255
+ )
256
+
257
+ data, status_code, headers, response = @api_client.call_api(:POST, local_var_path, new_options)
258
+ if @api_client.config.debugging
259
+ @api_client.config.logger.debug "API called: OrganizationsApi#update_stats\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
260
+ end
261
+ APIResponse::new(data, status_code, headers, response)
262
+ end
180
263
  end
181
264
 
182
265
  # top-level client access to avoid having the user to insantiate their own API instances
@@ -47,7 +47,6 @@ module Carbon
47
47
  PNG = "PNG".freeze
48
48
  JPEG = "JPEG".freeze
49
49
  MP3 = "MP3".freeze
50
- MP4 = "MP4".freeze
51
50
  MP2 = "MP2".freeze
52
51
  AAC = "AAC".freeze
53
52
  WAV = "WAV".freeze
@@ -56,11 +55,18 @@ module Carbon
56
55
  M4_A = "M4A".freeze
57
56
  OGG = "OGG".freeze
58
57
  OPUS = "OPUS".freeze
59
- WEBM = "WEBM".freeze
60
58
  MPEG = "MPEG".freeze
59
+ MPG = "MPG".freeze
60
+ MP4 = "MP4".freeze
61
+ WMV = "WMV".freeze
62
+ AVI = "AVI".freeze
63
+ MOV = "MOV".freeze
64
+ MKV = "MKV".freeze
65
+ FLV = "FLV".freeze
66
+ WEBM = "WEBM".freeze
61
67
 
62
68
  def self.all_vars
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
69
+ @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, MP2, AAC, WAV, FLAC, PCM, M4_A, OGG, OPUS, MPEG, MPG, MP4, WMV, AVI, MOV, MKV, FLV, WEBM].freeze
64
70
  end
65
71
 
66
72
  # Builds the enum from string
@@ -47,7 +47,6 @@ module Carbon
47
47
  PNG = "PNG".freeze
48
48
  JPEG = "JPEG".freeze
49
49
  MP3 = "MP3".freeze
50
- MP4 = "MP4".freeze
51
50
  MP2 = "MP2".freeze
52
51
  AAC = "AAC".freeze
53
52
  WAV = "WAV".freeze
@@ -56,11 +55,18 @@ module Carbon
56
55
  M4_A = "M4A".freeze
57
56
  OGG = "OGG".freeze
58
57
  OPUS = "OPUS".freeze
59
- WEBM = "WEBM".freeze
60
58
  MPEG = "MPEG".freeze
59
+ MPG = "MPG".freeze
60
+ MP4 = "MP4".freeze
61
+ WMV = "WMV".freeze
62
+ AVI = "AVI".freeze
63
+ MOV = "MOV".freeze
64
+ MKV = "MKV".freeze
65
+ FLV = "FLV".freeze
66
+ WEBM = "WEBM".freeze
61
67
 
62
68
  def self.all_vars
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
69
+ @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, MP2, AAC, WAV, FLAC, PCM, M4_A, OGG, OPUS, MPEG, MPG, MP4, WMV, AVI, MOV, MKV, FLV, WEBM].freeze
64
70
  end
65
71
 
66
72
  # Builds the enum from string
@@ -13,9 +13,11 @@ module Carbon
13
13
  class FileContentTypes
14
14
  TEXT = "TEXT".freeze
15
15
  IMAGE = "IMAGE".freeze
16
+ AUDIO = "AUDIO".freeze
17
+ VIDEO = "VIDEO".freeze
16
18
 
17
19
  def self.all_vars
18
- @all_vars ||= [TEXT, IMAGE].freeze
20
+ @all_vars ||= [TEXT, IMAGE, AUDIO, VIDEO].freeze
19
21
  end
20
22
 
21
23
  # Builds the enum from string
@@ -13,9 +13,11 @@ module Carbon
13
13
  class FileContentTypesNullable
14
14
  TEXT = "TEXT".freeze
15
15
  IMAGE = "IMAGE".freeze
16
+ AUDIO = "AUDIO".freeze
17
+ VIDEO = "VIDEO".freeze
16
18
 
17
19
  def self.all_vars
18
- @all_vars ||= [TEXT, IMAGE].freeze
20
+ @all_vars ||= [TEXT, IMAGE, AUDIO, VIDEO].freeze
19
21
  end
20
22
 
21
23
  # Builds the enum from string
@@ -39,9 +39,7 @@ module Carbon
39
39
  GITHUB = "GITHUB".freeze
40
40
  JPG = "JPG".freeze
41
41
  PNG = "PNG".freeze
42
- MPEG = "MPEG".freeze
43
42
  MP3 = "MP3".freeze
44
- MP4 = "MP4".freeze
45
43
  MP2 = "MP2".freeze
46
44
  AAC = "AAC".freeze
47
45
  WAV = "WAV".freeze
@@ -50,10 +48,18 @@ module Carbon
50
48
  M4_A = "M4A".freeze
51
49
  OGG = "OGG".freeze
52
50
  OPUS = "OPUS".freeze
51
+ MPEG = "MPEG".freeze
52
+ MPG = "MPG".freeze
53
+ MP4 = "MP4".freeze
54
+ WMV = "WMV".freeze
55
+ AVI = "AVI".freeze
56
+ MOV = "MOV".freeze
57
+ MKV = "MKV".freeze
58
+ FLV = "FLV".freeze
53
59
  WEBM = "WEBM".freeze
54
60
 
55
61
  def self.all_vars
56
- @all_vars ||= [TXT, CSV, TSV, PDF, DOCX, PPTX, XLSX, MD, RTF, JSON, HTML, NOTION, GOOGLE_DOCS, GOOGLE_SHEETS, GOOGLE_SLIDES, INTERCOM, CONFLUENCE, RSS_FEED, GMAIL, OUTLOOK, ZENDESK, FRESHDESK, WEB_SCRAPE, GITBOOK, SALESFORCE, GITHUB, JPG, PNG, MPEG, MP3, MP4, MP2, AAC, WAV, FLAC, PCM, M4_A, OGG, OPUS, WEBM].freeze
62
+ @all_vars ||= [TXT, CSV, TSV, PDF, DOCX, PPTX, XLSX, MD, RTF, JSON, HTML, NOTION, GOOGLE_DOCS, GOOGLE_SHEETS, GOOGLE_SLIDES, INTERCOM, CONFLUENCE, RSS_FEED, GMAIL, OUTLOOK, ZENDESK, FRESHDESK, WEB_SCRAPE, GITBOOK, SALESFORCE, GITHUB, JPG, PNG, MP3, MP2, AAC, WAV, FLAC, PCM, M4_A, OGG, OPUS, MPEG, MPG, MP4, WMV, AVI, MOV, MKV, FLV, WEBM].freeze
57
63
  end
58
64
 
59
65
  # Builds the enum from string
@@ -39,9 +39,7 @@ module Carbon
39
39
  GITHUB = "GITHUB".freeze
40
40
  JPG = "JPG".freeze
41
41
  PNG = "PNG".freeze
42
- MPEG = "MPEG".freeze
43
42
  MP3 = "MP3".freeze
44
- MP4 = "MP4".freeze
45
43
  MP2 = "MP2".freeze
46
44
  AAC = "AAC".freeze
47
45
  WAV = "WAV".freeze
@@ -50,10 +48,18 @@ module Carbon
50
48
  M4_A = "M4A".freeze
51
49
  OGG = "OGG".freeze
52
50
  OPUS = "OPUS".freeze
51
+ MPEG = "MPEG".freeze
52
+ MPG = "MPG".freeze
53
+ MP4 = "MP4".freeze
54
+ WMV = "WMV".freeze
55
+ AVI = "AVI".freeze
56
+ MOV = "MOV".freeze
57
+ MKV = "MKV".freeze
58
+ FLV = "FLV".freeze
53
59
  WEBM = "WEBM".freeze
54
60
 
55
61
  def self.all_vars
56
- @all_vars ||= [TXT, CSV, TSV, PDF, DOCX, PPTX, XLSX, MD, RTF, JSON, HTML, NOTION, GOOGLE_DOCS, GOOGLE_SHEETS, GOOGLE_SLIDES, INTERCOM, CONFLUENCE, RSS_FEED, GMAIL, OUTLOOK, ZENDESK, FRESHDESK, WEB_SCRAPE, GITBOOK, SALESFORCE, GITHUB, JPG, PNG, MPEG, MP3, MP4, MP2, AAC, WAV, FLAC, PCM, M4_A, OGG, OPUS, WEBM].freeze
62
+ @all_vars ||= [TXT, CSV, TSV, PDF, DOCX, PPTX, XLSX, MD, RTF, JSON, HTML, NOTION, GOOGLE_DOCS, GOOGLE_SHEETS, GOOGLE_SLIDES, INTERCOM, CONFLUENCE, RSS_FEED, GMAIL, OUTLOOK, ZENDESK, FRESHDESK, WEB_SCRAPE, GITBOOK, SALESFORCE, GITHUB, JPG, PNG, MP3, MP2, AAC, WAV, FLAC, PCM, M4_A, OGG, OPUS, MPEG, MPG, MP4, WMV, AVI, MOV, MKV, FLV, WEBM].freeze
57
63
  end
58
64
 
59
65
  # Builds the enum from string
@@ -61,7 +61,7 @@ module Carbon
61
61
 
62
62
  attr_accessor :parse_pdf_tables_with_ocr
63
63
 
64
- # Enable integration's file picker for sources that support it. Supported sources: ONEDRIVE, GOOGLE_DRIVE, DROPBOX, SHAREPOINT, BOX
64
+ # Enable integration's file picker for sources that support it. Supported sources: SHAREPOINT, DROPBOX, GOOGLE_DRIVE, BOX, ONEDRIVE
65
65
  attr_accessor :enable_file_picker
66
66
 
67
67
  # Enabling this flag will fetch all available content from the source to be listed via list items endpoint
@@ -279,7 +279,7 @@ module Carbon
279
279
  if attributes.key?(:'request_id')
280
280
  self.request_id = attributes[:'request_id']
281
281
  else
282
- self.request_id = 'eb3e536e-fa3e-4f8e-9a22-25f70393e759'
282
+ self.request_id = '273420dd-e05c-463f-a3cf-0ff28029639e'
283
283
  end
284
284
 
285
285
  if attributes.key?(:'use_ocr')
@@ -31,6 +31,12 @@ module Carbon
31
31
 
32
32
  attr_accessor :aggregate_num_embeddings
33
33
 
34
+ attr_accessor :aggregate_num_files_by_source
35
+
36
+ attr_accessor :aggregate_num_files_by_file_format
37
+
38
+ attr_accessor :file_statistics_aggregated_at
39
+
34
40
  attr_accessor :period_ends_at
35
41
 
36
42
  attr_accessor :cancel_at_period_end
@@ -54,6 +60,9 @@ module Carbon
54
60
  :'aggregate_num_characters' => :'aggregate_num_characters',
55
61
  :'aggregate_num_tokens' => :'aggregate_num_tokens',
56
62
  :'aggregate_num_embeddings' => :'aggregate_num_embeddings',
63
+ :'aggregate_num_files_by_source' => :'aggregate_num_files_by_source',
64
+ :'aggregate_num_files_by_file_format' => :'aggregate_num_files_by_file_format',
65
+ :'file_statistics_aggregated_at' => :'file_statistics_aggregated_at',
57
66
  :'period_ends_at' => :'period_ends_at',
58
67
  :'cancel_at_period_end' => :'cancel_at_period_end',
59
68
  :'global_user_config' => :'global_user_config',
@@ -80,6 +89,9 @@ module Carbon
80
89
  :'aggregate_num_characters' => :'Object',
81
90
  :'aggregate_num_tokens' => :'Object',
82
91
  :'aggregate_num_embeddings' => :'Object',
92
+ :'aggregate_num_files_by_source' => :'Object',
93
+ :'aggregate_num_files_by_file_format' => :'Object',
94
+ :'file_statistics_aggregated_at' => :'Time',
83
95
  :'period_ends_at' => :'Time',
84
96
  :'cancel_at_period_end' => :'Boolean',
85
97
  :'global_user_config' => :'Object',
@@ -94,6 +106,7 @@ module Carbon
94
106
  :'nickname',
95
107
  :'custom_branding',
96
108
  :'custom_limits',
109
+ :'file_statistics_aggregated_at',
97
110
  :'period_ends_at',
98
111
  :'cancel_at_period_end',
99
112
  ])
@@ -154,6 +167,18 @@ module Carbon
154
167
  self.aggregate_num_embeddings = attributes[:'aggregate_num_embeddings']
155
168
  end
156
169
 
170
+ if attributes.key?(:'aggregate_num_files_by_source')
171
+ self.aggregate_num_files_by_source = attributes[:'aggregate_num_files_by_source']
172
+ end
173
+
174
+ if attributes.key?(:'aggregate_num_files_by_file_format')
175
+ self.aggregate_num_files_by_file_format = attributes[:'aggregate_num_files_by_file_format']
176
+ end
177
+
178
+ if attributes.key?(:'file_statistics_aggregated_at')
179
+ self.file_statistics_aggregated_at = attributes[:'file_statistics_aggregated_at']
180
+ end
181
+
157
182
  if attributes.key?(:'period_ends_at')
158
183
  self.period_ends_at = attributes[:'period_ends_at']
159
184
  end
@@ -207,6 +232,14 @@ module Carbon
207
232
  invalid_properties.push('invalid value for "aggregate_num_embeddings", aggregate_num_embeddings cannot be nil.')
208
233
  end
209
234
 
235
+ if @aggregate_num_files_by_source.nil?
236
+ invalid_properties.push('invalid value for "aggregate_num_files_by_source", aggregate_num_files_by_source cannot be nil.')
237
+ end
238
+
239
+ if @aggregate_num_files_by_file_format.nil?
240
+ invalid_properties.push('invalid value for "aggregate_num_files_by_file_format", aggregate_num_files_by_file_format cannot be nil.')
241
+ end
242
+
210
243
  if @global_user_config.nil?
211
244
  invalid_properties.push('invalid value for "global_user_config", global_user_config cannot be nil.')
212
245
  end
@@ -232,6 +265,8 @@ module Carbon
232
265
  return false if @aggregate_num_characters.nil?
233
266
  return false if @aggregate_num_tokens.nil?
234
267
  return false if @aggregate_num_embeddings.nil?
268
+ return false if @aggregate_num_files_by_source.nil?
269
+ return false if @aggregate_num_files_by_file_format.nil?
235
270
  return false if @global_user_config.nil?
236
271
  return false if @created_at.nil?
237
272
  return false if @updated_at.nil?
@@ -253,6 +288,9 @@ module Carbon
253
288
  aggregate_num_characters == o.aggregate_num_characters &&
254
289
  aggregate_num_tokens == o.aggregate_num_tokens &&
255
290
  aggregate_num_embeddings == o.aggregate_num_embeddings &&
291
+ aggregate_num_files_by_source == o.aggregate_num_files_by_source &&
292
+ aggregate_num_files_by_file_format == o.aggregate_num_files_by_file_format &&
293
+ file_statistics_aggregated_at == o.file_statistics_aggregated_at &&
256
294
  period_ends_at == o.period_ends_at &&
257
295
  cancel_at_period_end == o.cancel_at_period_end &&
258
296
  global_user_config == o.global_user_config &&
@@ -269,7 +307,7 @@ module Carbon
269
307
  # Calculates hash code according to all attributes.
270
308
  # @return [Integer] Hash code
271
309
  def hash
272
- [id, name, nickname, remove_branding, custom_branding, custom_limits, aggregate_file_size, aggregate_num_characters, aggregate_num_tokens, aggregate_num_embeddings, period_ends_at, cancel_at_period_end, global_user_config, created_at, updated_at].hash
310
+ [id, name, nickname, remove_branding, custom_branding, custom_limits, aggregate_file_size, aggregate_num_characters, aggregate_num_tokens, aggregate_num_embeddings, aggregate_num_files_by_source, aggregate_num_files_by_file_format, file_statistics_aggregated_at, period_ends_at, cancel_at_period_end, global_user_config, created_at, updated_at].hash
273
311
  end
274
312
 
275
313
  # Builds the object from hash
@@ -187,7 +187,7 @@ module Carbon
187
187
  if attributes.key?(:'request_id')
188
188
  self.request_id = attributes[:'request_id']
189
189
  else
190
- self.request_id = '27036d05-9737-4197-b0c6-e9fb9f60f976'
190
+ self.request_id = '2782cb96-1bf6-452c-a8d9-60c2378fd079'
191
191
  end
192
192
 
193
193
  if attributes.key?(:'use_ocr')
@@ -182,7 +182,7 @@ module Carbon
182
182
  if attributes.key?(:'request_id')
183
183
  self.request_id = attributes[:'request_id']
184
184
  else
185
- self.request_id = '18ef9025-4c76-443c-a115-ba77b17afd8b'
185
+ self.request_id = 'f5552316-5da3-46e6-ad9f-2f94e30d02cd'
186
186
  end
187
187
 
188
188
  if attributes.key?(:'enable_file_picker')
@@ -29,6 +29,18 @@ module Carbon
29
29
 
30
30
  attr_accessor :num_tokens_synced
31
31
 
32
+ attr_accessor :aggregate_file_size
33
+
34
+ attr_accessor :aggregate_num_characters
35
+
36
+ attr_accessor :aggregate_num_tokens
37
+
38
+ attr_accessor :aggregate_num_embeddings
39
+
40
+ attr_accessor :aggregate_num_files_by_source
41
+
42
+ attr_accessor :aggregate_num_files_by_file_format
43
+
32
44
  attr_accessor :unique_file_tags
33
45
 
34
46
  attr_accessor :enabled_features
@@ -49,6 +61,12 @@ module Carbon
49
61
  :'num_files_synced' => :'num_files_synced',
50
62
  :'num_characters_synced' => :'num_characters_synced',
51
63
  :'num_tokens_synced' => :'num_tokens_synced',
64
+ :'aggregate_file_size' => :'aggregate_file_size',
65
+ :'aggregate_num_characters' => :'aggregate_num_characters',
66
+ :'aggregate_num_tokens' => :'aggregate_num_tokens',
67
+ :'aggregate_num_embeddings' => :'aggregate_num_embeddings',
68
+ :'aggregate_num_files_by_source' => :'aggregate_num_files_by_source',
69
+ :'aggregate_num_files_by_file_format' => :'aggregate_num_files_by_file_format',
52
70
  :'unique_file_tags' => :'unique_file_tags',
53
71
  :'enabled_features' => :'enabled_features',
54
72
  :'custom_limits' => :'custom_limits',
@@ -73,6 +91,12 @@ module Carbon
73
91
  :'num_files_synced' => :'Integer',
74
92
  :'num_characters_synced' => :'Integer',
75
93
  :'num_tokens_synced' => :'Integer',
94
+ :'aggregate_file_size' => :'Object',
95
+ :'aggregate_num_characters' => :'Object',
96
+ :'aggregate_num_tokens' => :'Object',
97
+ :'aggregate_num_embeddings' => :'Object',
98
+ :'aggregate_num_files_by_source' => :'Object',
99
+ :'aggregate_num_files_by_file_format' => :'Object',
76
100
  :'unique_file_tags' => :'Array<Object>',
77
101
  :'enabled_features' => :'Object',
78
102
  :'custom_limits' => :'Object',
@@ -139,6 +163,30 @@ module Carbon
139
163
  self.num_tokens_synced = attributes[:'num_tokens_synced']
140
164
  end
141
165
 
166
+ if attributes.key?(:'aggregate_file_size')
167
+ self.aggregate_file_size = attributes[:'aggregate_file_size']
168
+ end
169
+
170
+ if attributes.key?(:'aggregate_num_characters')
171
+ self.aggregate_num_characters = attributes[:'aggregate_num_characters']
172
+ end
173
+
174
+ if attributes.key?(:'aggregate_num_tokens')
175
+ self.aggregate_num_tokens = attributes[:'aggregate_num_tokens']
176
+ end
177
+
178
+ if attributes.key?(:'aggregate_num_embeddings')
179
+ self.aggregate_num_embeddings = attributes[:'aggregate_num_embeddings']
180
+ end
181
+
182
+ if attributes.key?(:'aggregate_num_files_by_source')
183
+ self.aggregate_num_files_by_source = attributes[:'aggregate_num_files_by_source']
184
+ end
185
+
186
+ if attributes.key?(:'aggregate_num_files_by_file_format')
187
+ self.aggregate_num_files_by_file_format = attributes[:'aggregate_num_files_by_file_format']
188
+ end
189
+
142
190
  if attributes.key?(:'unique_file_tags')
143
191
  if (value = attributes[:'unique_file_tags']).is_a?(Array)
144
192
  self.unique_file_tags = value
@@ -196,6 +244,30 @@ module Carbon
196
244
  invalid_properties.push('invalid value for "num_tokens_synced", num_tokens_synced cannot be nil.')
197
245
  end
198
246
 
247
+ if @aggregate_file_size.nil?
248
+ invalid_properties.push('invalid value for "aggregate_file_size", aggregate_file_size cannot be nil.')
249
+ end
250
+
251
+ if @aggregate_num_characters.nil?
252
+ invalid_properties.push('invalid value for "aggregate_num_characters", aggregate_num_characters cannot be nil.')
253
+ end
254
+
255
+ if @aggregate_num_tokens.nil?
256
+ invalid_properties.push('invalid value for "aggregate_num_tokens", aggregate_num_tokens cannot be nil.')
257
+ end
258
+
259
+ if @aggregate_num_embeddings.nil?
260
+ invalid_properties.push('invalid value for "aggregate_num_embeddings", aggregate_num_embeddings cannot be nil.')
261
+ end
262
+
263
+ if @aggregate_num_files_by_source.nil?
264
+ invalid_properties.push('invalid value for "aggregate_num_files_by_source", aggregate_num_files_by_source cannot be nil.')
265
+ end
266
+
267
+ if @aggregate_num_files_by_file_format.nil?
268
+ invalid_properties.push('invalid value for "aggregate_num_files_by_file_format", aggregate_num_files_by_file_format cannot be nil.')
269
+ end
270
+
199
271
  if @unique_file_tags.nil?
200
272
  invalid_properties.push('invalid value for "unique_file_tags", unique_file_tags cannot be nil.')
201
273
  end
@@ -222,6 +294,12 @@ module Carbon
222
294
  return false if @num_files_synced.nil?
223
295
  return false if @num_characters_synced.nil?
224
296
  return false if @num_tokens_synced.nil?
297
+ return false if @aggregate_file_size.nil?
298
+ return false if @aggregate_num_characters.nil?
299
+ return false if @aggregate_num_tokens.nil?
300
+ return false if @aggregate_num_embeddings.nil?
301
+ return false if @aggregate_num_files_by_source.nil?
302
+ return false if @aggregate_num_files_by_file_format.nil?
225
303
  return false if @unique_file_tags.nil?
226
304
  return false if @custom_limits.nil?
227
305
  return false if @auto_sync_enabled_sources.nil?
@@ -242,6 +320,12 @@ module Carbon
242
320
  num_files_synced == o.num_files_synced &&
243
321
  num_characters_synced == o.num_characters_synced &&
244
322
  num_tokens_synced == o.num_tokens_synced &&
323
+ aggregate_file_size == o.aggregate_file_size &&
324
+ aggregate_num_characters == o.aggregate_num_characters &&
325
+ aggregate_num_tokens == o.aggregate_num_tokens &&
326
+ aggregate_num_embeddings == o.aggregate_num_embeddings &&
327
+ aggregate_num_files_by_source == o.aggregate_num_files_by_source &&
328
+ aggregate_num_files_by_file_format == o.aggregate_num_files_by_file_format &&
245
329
  unique_file_tags == o.unique_file_tags &&
246
330
  enabled_features == o.enabled_features &&
247
331
  custom_limits == o.custom_limits &&
@@ -257,7 +341,7 @@ module Carbon
257
341
  # Calculates hash code according to all attributes.
258
342
  # @return [Integer] Hash code
259
343
  def hash
260
- [id, organization_id, organization_supplied_user_id, created_at, updated_at, deleted_at, num_files_synced, num_characters_synced, num_tokens_synced, unique_file_tags, enabled_features, custom_limits, auto_sync_enabled_sources].hash
344
+ [id, organization_id, organization_supplied_user_id, created_at, updated_at, deleted_at, num_files_synced, num_characters_synced, num_tokens_synced, aggregate_file_size, aggregate_num_characters, aggregate_num_tokens, aggregate_num_embeddings, aggregate_num_files_by_source, aggregate_num_files_by_file_format, unique_file_tags, enabled_features, custom_limits, auto_sync_enabled_sources].hash
261
345
  end
262
346
 
263
347
  # Builds the object from hash
@@ -19,6 +19,10 @@ module Carbon
19
19
 
20
20
  attr_accessor :signing_key
21
21
 
22
+ attr_accessor :status
23
+
24
+ attr_accessor :status_reason
25
+
22
26
  attr_accessor :created_at
23
27
 
24
28
  attr_accessor :updated_at
@@ -30,6 +34,8 @@ module Carbon
30
34
  :'organization_id' => :'organization_id',
31
35
  :'url' => :'url',
32
36
  :'signing_key' => :'signing_key',
37
+ :'status' => :'status',
38
+ :'status_reason' => :'status_reason',
33
39
  :'created_at' => :'created_at',
34
40
  :'updated_at' => :'updated_at'
35
41
  }
@@ -47,6 +53,8 @@ module Carbon
47
53
  :'organization_id' => :'Integer',
48
54
  :'url' => :'String',
49
55
  :'signing_key' => :'String',
56
+ :'status' => :'WebhookStatus',
57
+ :'status_reason' => :'String',
50
58
  :'created_at' => :'Time',
51
59
  :'updated_at' => :'Time'
52
60
  }
@@ -55,6 +63,7 @@ module Carbon
55
63
  # List of attributes with nullable: true
56
64
  def self.openapi_nullable
57
65
  Set.new([
66
+ :'status_reason',
58
67
  ])
59
68
  end
60
69
 
@@ -89,6 +98,14 @@ module Carbon
89
98
  self.signing_key = attributes[:'signing_key']
90
99
  end
91
100
 
101
+ if attributes.key?(:'status')
102
+ self.status = attributes[:'status']
103
+ end
104
+
105
+ if attributes.key?(:'status_reason')
106
+ self.status_reason = attributes[:'status_reason']
107
+ end
108
+
92
109
  if attributes.key?(:'created_at')
93
110
  self.created_at = attributes[:'created_at']
94
111
  end
@@ -118,6 +135,10 @@ module Carbon
118
135
  invalid_properties.push('invalid value for "signing_key", signing_key cannot be nil.')
119
136
  end
120
137
 
138
+ if @status.nil?
139
+ invalid_properties.push('invalid value for "status", status cannot be nil.')
140
+ end
141
+
121
142
  if @created_at.nil?
122
143
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
123
144
  end
@@ -136,6 +157,7 @@ module Carbon
136
157
  return false if @organization_id.nil?
137
158
  return false if @url.nil?
138
159
  return false if @signing_key.nil?
160
+ return false if @status.nil?
139
161
  return false if @created_at.nil?
140
162
  return false if @updated_at.nil?
141
163
  true
@@ -150,6 +172,8 @@ module Carbon
150
172
  organization_id == o.organization_id &&
151
173
  url == o.url &&
152
174
  signing_key == o.signing_key &&
175
+ status == o.status &&
176
+ status_reason == o.status_reason &&
153
177
  created_at == o.created_at &&
154
178
  updated_at == o.updated_at
155
179
  end
@@ -163,7 +187,7 @@ module Carbon
163
187
  # Calculates hash code according to all attributes.
164
188
  # @return [Integer] Hash code
165
189
  def hash
166
- [id, organization_id, url, signing_key, created_at, updated_at].hash
190
+ [id, organization_id, url, signing_key, status, status_reason, created_at, updated_at].hash
167
191
  end
168
192
 
169
193
  # Builds the object from hash
@@ -17,6 +17,10 @@ module Carbon
17
17
 
18
18
  attr_accessor :url
19
19
 
20
+ attr_accessor :status
21
+
22
+ attr_accessor :status_reason
23
+
20
24
  attr_accessor :created_at
21
25
 
22
26
  attr_accessor :updated_at
@@ -27,6 +31,8 @@ module Carbon
27
31
  :'id' => :'id',
28
32
  :'organization_id' => :'organization_id',
29
33
  :'url' => :'url',
34
+ :'status' => :'status',
35
+ :'status_reason' => :'status_reason',
30
36
  :'created_at' => :'created_at',
31
37
  :'updated_at' => :'updated_at'
32
38
  }
@@ -43,6 +49,8 @@ module Carbon
43
49
  :'id' => :'Integer',
44
50
  :'organization_id' => :'Integer',
45
51
  :'url' => :'String',
52
+ :'status' => :'WebhookStatus',
53
+ :'status_reason' => :'String',
46
54
  :'created_at' => :'Time',
47
55
  :'updated_at' => :'Time'
48
56
  }
@@ -51,6 +59,7 @@ module Carbon
51
59
  # List of attributes with nullable: true
52
60
  def self.openapi_nullable
53
61
  Set.new([
62
+ :'status_reason',
54
63
  ])
55
64
  end
56
65
 
@@ -81,6 +90,14 @@ module Carbon
81
90
  self.url = attributes[:'url']
82
91
  end
83
92
 
93
+ if attributes.key?(:'status')
94
+ self.status = attributes[:'status']
95
+ end
96
+
97
+ if attributes.key?(:'status_reason')
98
+ self.status_reason = attributes[:'status_reason']
99
+ end
100
+
84
101
  if attributes.key?(:'created_at')
85
102
  self.created_at = attributes[:'created_at']
86
103
  end
@@ -106,6 +123,10 @@ module Carbon
106
123
  invalid_properties.push('invalid value for "url", url cannot be nil.')
107
124
  end
108
125
 
126
+ if @status.nil?
127
+ invalid_properties.push('invalid value for "status", status cannot be nil.')
128
+ end
129
+
109
130
  if @created_at.nil?
110
131
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
111
132
  end
@@ -123,6 +144,7 @@ module Carbon
123
144
  return false if @id.nil?
124
145
  return false if @organization_id.nil?
125
146
  return false if @url.nil?
147
+ return false if @status.nil?
126
148
  return false if @created_at.nil?
127
149
  return false if @updated_at.nil?
128
150
  true
@@ -136,6 +158,8 @@ module Carbon
136
158
  id == o.id &&
137
159
  organization_id == o.organization_id &&
138
160
  url == o.url &&
161
+ status == o.status &&
162
+ status_reason == o.status_reason &&
139
163
  created_at == o.created_at &&
140
164
  updated_at == o.updated_at
141
165
  end
@@ -149,7 +173,7 @@ module Carbon
149
173
  # Calculates hash code according to all attributes.
150
174
  # @return [Integer] Hash code
151
175
  def hash
152
- [id, organization_id, url, created_at, updated_at].hash
176
+ [id, organization_id, url, status, status_reason, created_at, updated_at].hash
153
177
  end
154
178
 
155
179
  # Builds the object from hash
@@ -0,0 +1,36 @@
1
+ =begin
2
+ #Carbon
3
+
4
+ #Connect external data to LLMs, no matter the source.
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ =end
8
+
9
+ require 'date'
10
+ require 'time'
11
+
12
+ module Carbon
13
+ class WebhookStatus
14
+ ACTIVE = "ACTIVE".freeze
15
+ FLAGGED = "FLAGGED".freeze
16
+
17
+ def self.all_vars
18
+ @all_vars ||= [ACTIVE, FLAGGED].freeze
19
+ end
20
+
21
+ # Builds the enum from string
22
+ # @param [String] The enum value in the form of the string
23
+ # @return [String] The enum value
24
+ def self.build_from_hash(value)
25
+ new.build_from_hash(value)
26
+ end
27
+
28
+ # Builds the enum from string
29
+ # @param [String] The enum value in the form of the string
30
+ # @return [String] The enum value
31
+ def build_from_hash(value)
32
+ return value if WebhookStatus.all_vars.include?(value)
33
+ raise "Invalid ENUM value #{value} for class #WebhookStatus"
34
+ end
35
+ end
36
+ end
@@ -7,5 +7,5 @@ The version of the OpenAPI document: 1.0.0
7
7
  =end
8
8
 
9
9
  module Carbon
10
- VERSION = '0.1.34'
10
+ VERSION = '0.2.0'
11
11
  end
@@ -141,6 +141,7 @@ require 'carbon_ruby_sdk/models/webhook_no_key'
141
141
  require 'carbon_ruby_sdk/models/webhook_order_by_columns'
142
142
  require 'carbon_ruby_sdk/models/webhook_query_input'
143
143
  require 'carbon_ruby_sdk/models/webhook_query_response'
144
+ require 'carbon_ruby_sdk/models/webhook_status'
144
145
  require 'carbon_ruby_sdk/models/webscrape_request'
145
146
  require 'carbon_ruby_sdk/models/white_labeling_response'
146
147
  require 'carbon_ruby_sdk/models/youtube_transcript_response'
@@ -158,6 +158,7 @@ describe 'FilesApi' do
158
158
  # @option opts [Integer] :max_items_per_chunk Number of objects per chunk. For csv, tsv, xlsx, and json files only.
159
159
  # @option opts [Boolean] :parse_pdf_tables_with_ocr Whether to use rich table parsing when &#x60;use_ocr&#x60; is enabled.
160
160
  # @option opts [Boolean] :detect_audio_language Whether to automatically detect the language of the uploaded audio file.
161
+ # @option opts [FileContentTypesNullable] :media_type The media type of the file. If not provided, it will be inferred from the file extension.
161
162
  # @return [UserFile]
162
163
  describe 'upload test' do
163
164
  it 'should work' do
@@ -47,4 +47,15 @@ describe 'OrganizationsApi' do
47
47
  end
48
48
  end
49
49
 
50
+ # unit tests for update_stats
51
+ # Update Organization Statistics
52
+ # Use this endpoint to reaggregate the statistics for an organization, for example aggregate_file_size. The reaggregation process is asyncronous so a webhook will be sent with the event type being FILE_STATISTICS_AGGREGATED to notify when the process is complee. After this aggregation is complete, the updated statistics can be retrieved using the /organization endpoint. The response of /organization willalso contain a timestamp of the last time the statistics were reaggregated.
53
+ # @param [Hash] opts the optional parameters
54
+ # @return [GenericSuccessResponse]
55
+ describe 'update_stats test' do
56
+ it 'should work' do
57
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
58
+ end
59
+ end
60
+
50
61
  end
@@ -79,6 +79,24 @@ describe Carbon::OrganizationResponse do
79
79
  end
80
80
  end
81
81
 
82
+ describe 'test attribute "aggregate_num_files_by_source"' do
83
+ it 'should work' do
84
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
85
+ end
86
+ end
87
+
88
+ describe 'test attribute "aggregate_num_files_by_file_format"' do
89
+ it 'should work' do
90
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
91
+ end
92
+ end
93
+
94
+ describe 'test attribute "file_statistics_aggregated_at"' do
95
+ it 'should work' do
96
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
97
+ end
98
+ end
99
+
82
100
  describe 'test attribute "period_ends_at"' do
83
101
  it 'should work' do
84
102
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -73,6 +73,42 @@ describe Carbon::UserResponse do
73
73
  end
74
74
  end
75
75
 
76
+ describe 'test attribute "aggregate_file_size"' do
77
+ it 'should work' do
78
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
79
+ end
80
+ end
81
+
82
+ describe 'test attribute "aggregate_num_characters"' do
83
+ it 'should work' do
84
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
85
+ end
86
+ end
87
+
88
+ describe 'test attribute "aggregate_num_tokens"' do
89
+ it 'should work' do
90
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
91
+ end
92
+ end
93
+
94
+ describe 'test attribute "aggregate_num_embeddings"' do
95
+ it 'should work' do
96
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
97
+ end
98
+ end
99
+
100
+ describe 'test attribute "aggregate_num_files_by_source"' do
101
+ it 'should work' do
102
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
103
+ end
104
+ end
105
+
106
+ describe 'test attribute "aggregate_num_files_by_file_format"' do
107
+ it 'should work' do
108
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
109
+ end
110
+ end
111
+
76
112
  describe 'test attribute "unique_file_tags"' do
77
113
  it 'should work' do
78
114
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -37,6 +37,18 @@ describe Carbon::WebhookNoKey do
37
37
  end
38
38
  end
39
39
 
40
+ describe 'test attribute "status"' do
41
+ it 'should work' do
42
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
43
+ end
44
+ end
45
+
46
+ describe 'test attribute "status_reason"' do
47
+ it 'should work' do
48
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
49
+ end
50
+ end
51
+
40
52
  describe 'test attribute "created_at"' do
41
53
  it 'should work' do
42
54
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -43,6 +43,18 @@ describe Carbon::Webhook do
43
43
  end
44
44
  end
45
45
 
46
+ describe 'test attribute "status"' do
47
+ it 'should work' do
48
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
49
+ end
50
+ end
51
+
52
+ describe 'test attribute "status_reason"' do
53
+ it 'should work' do
54
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
55
+ end
56
+ end
57
+
46
58
  describe 'test attribute "created_at"' do
47
59
  it 'should work' do
48
60
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -0,0 +1,22 @@
1
+ =begin
2
+ #Carbon
3
+
4
+ #Connect external data to LLMs, no matter the source.
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ =end
8
+
9
+ require 'spec_helper'
10
+ require 'json'
11
+ require 'date'
12
+
13
+ # Unit tests for Carbon::WebhookStatus
14
+ describe Carbon::WebhookStatus do
15
+ let(:instance) { Carbon::WebhookStatus.new }
16
+
17
+ describe 'test an instance of WebhookStatus' do
18
+ it 'should create an instance of WebhookStatus' do
19
+ expect(instance).to be_instance_of(Carbon::WebhookStatus)
20
+ end
21
+ end
22
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carbon_ruby_sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.34
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Konfig
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-24 00:00:00.000000000 Z
11
+ date: 2024-05-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -224,6 +224,7 @@ files:
224
224
  - lib/carbon_ruby_sdk/models/webhook_order_by_columns.rb
225
225
  - lib/carbon_ruby_sdk/models/webhook_query_input.rb
226
226
  - lib/carbon_ruby_sdk/models/webhook_query_response.rb
227
+ - lib/carbon_ruby_sdk/models/webhook_status.rb
227
228
  - lib/carbon_ruby_sdk/models/webscrape_request.rb
228
229
  - lib/carbon_ruby_sdk/models/white_labeling_response.rb
229
230
  - lib/carbon_ruby_sdk/models/youtube_transcript_response.rb
@@ -369,6 +370,7 @@ files:
369
370
  - spec/models/webhook_query_input_spec.rb
370
371
  - spec/models/webhook_query_response_spec.rb
371
372
  - spec/models/webhook_spec.rb
373
+ - spec/models/webhook_status_spec.rb
372
374
  - spec/models/webscrape_request_spec.rb
373
375
  - spec/models/white_labeling_response_spec.rb
374
376
  - spec/models/youtube_transcript_response_spec.rb
@@ -419,6 +421,7 @@ test_files:
419
421
  - spec/models/sitemap_scrape_request_spec.rb
420
422
  - spec/models/organization_user_files_to_sync_order_by_types_spec.rb
421
423
  - spec/models/order_dir_spec.rb
424
+ - spec/models/webhook_status_spec.rb
422
425
  - spec/models/external_source_item_spec.rb
423
426
  - spec/models/organization_user_data_source_query_input_spec.rb
424
427
  - spec/models/organization_user_data_source_filters_spec.rb