carbon_ruby_sdk 0.2.15 → 0.2.16

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 06d33414be65f6bd0cd426ab4a944e8de9dcc7dca64b35d4ea90fa2ce3bf0474
4
- data.tar.gz: 3a9d7272878fa2303e3bd0f2cf41796646f9f1689c034a5a16770db3e3fdcc02
3
+ metadata.gz: 60c08043b97e6964d1c87a7461e6e93a0cff8c7db0fa98be4e0dd2991540a0cf
4
+ data.tar.gz: a6b5dd7321fb52625d1e8f3c1acbaa1ec6165412980c1cd679b083dfb5dced35
5
5
  SHA512:
6
- metadata.gz: 41d5d17eb9b5f4bf0dedccadba7b29d796baddca4fe74bf4f1844b5bb52b440242bb917d6c49d074ca83598097b57483fe2cc5dc6a1acaade61cc9f5c1fb9813
7
- data.tar.gz: 19f659c16c5845b371f99d82daf3cb8d37a5ffa88b7166e9afb7386a5e2991c2caed36c1d494a6a2237be4f0e0754b01b7bdd7e7ec6e8410f25c65754e20a436
6
+ metadata.gz: '07691a370c7f1e6a94e6a9974451e301cd2fe2150c2b5b4618c970a608eef457c42194935ccc8eb718112eb7fee4ab39f746bee654def58d2c50d109e0dd6499'
7
+ data.tar.gz: 75acc5f7eb04e965000af6070ba92aa82c47ff65f2ee378ff745b38b9357e101c3493c9d645bd14a361f13c3938ff1a3d6ae1104ad1cd8a694c0e6284cf0259a
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- carbon_ruby_sdk (0.2.14)
4
+ carbon_ruby_sdk (0.2.16)
5
5
  faraday (>= 1.0.1, < 3.0)
6
6
  faraday-multipart (~> 1.0, >= 1.0.4)
7
7
 
@@ -15,8 +15,9 @@ GEM
15
15
  irb (>= 1.5.0)
16
16
  reline (>= 0.3.1)
17
17
  diff-lcs (1.5.1)
18
- faraday (2.9.0)
18
+ faraday (2.10.0)
19
19
  faraday-net_http (>= 2.0, < 3.2)
20
+ logger
20
21
  faraday-multipart (1.0.4)
21
22
  multipart-post (~> 2)
22
23
  faraday-net_http (3.1.0)
@@ -24,12 +25,13 @@ GEM
24
25
  io-console (0.7.2)
25
26
  irb (1.6.4)
26
27
  reline (>= 0.3.0)
27
- method_source (1.0.0)
28
- multipart-post (2.4.0)
28
+ logger (1.6.0)
29
+ method_source (1.1.0)
30
+ multipart-post (2.4.1)
29
31
  net-http (0.4.1)
30
32
  uri
31
- parallel (1.24.0)
32
- parser (3.3.0.5)
33
+ parallel (1.25.1)
34
+ parser (3.3.4.0)
33
35
  ast (~> 2.4.1)
34
36
  racc
35
37
  pry (0.14.2)
@@ -38,23 +40,24 @@ GEM
38
40
  pry-byebug (3.10.1)
39
41
  byebug (~> 11.0)
40
42
  pry (>= 0.13, < 0.15)
41
- racc (1.7.3)
43
+ racc (1.8.0)
42
44
  rainbow (3.1.1)
43
45
  rake (13.0.6)
44
- regexp_parser (2.9.0)
45
- reline (0.5.0)
46
+ regexp_parser (2.9.2)
47
+ reline (0.5.9)
46
48
  io-console (~> 0.5)
47
- rexml (3.2.6)
49
+ rexml (3.3.2)
50
+ strscan
48
51
  rspec (3.13.0)
49
52
  rspec-core (~> 3.13.0)
50
53
  rspec-expectations (~> 3.13.0)
51
54
  rspec-mocks (~> 3.13.0)
52
55
  rspec-core (3.13.0)
53
56
  rspec-support (~> 3.13.0)
54
- rspec-expectations (3.13.0)
57
+ rspec-expectations (3.13.1)
55
58
  diff-lcs (>= 1.2.0, < 2.0)
56
59
  rspec-support (~> 3.13.0)
57
- rspec-mocks (3.13.0)
60
+ rspec-mocks (3.13.1)
58
61
  diff-lcs (>= 1.2.0, < 2.0)
59
62
  rspec-support (~> 3.13.0)
60
63
  rspec-support (3.13.1)
@@ -67,14 +70,15 @@ GEM
67
70
  rubocop-ast (>= 1.2.0, < 2.0)
68
71
  ruby-progressbar (~> 1.7)
69
72
  unicode-display_width (>= 1.4.0, < 3.0)
70
- rubocop-ast (1.31.2)
71
- parser (>= 3.3.0.4)
73
+ rubocop-ast (1.31.3)
74
+ parser (>= 3.3.1.0)
72
75
  ruby-progressbar (1.13.0)
76
+ strscan (3.1.0)
73
77
  unicode-display_width (2.5.0)
74
78
  uri (0.13.0)
75
79
 
76
80
  PLATFORMS
77
- arm64-darwin-22
81
+ arm64-darwin-21
78
82
 
79
83
  DEPENDENCIES
80
84
  carbon_ruby_sdk!
@@ -86,4 +90,4 @@ DEPENDENCIES
86
90
  rubocop (~> 1.12.1)
87
91
 
88
92
  BUNDLED WITH
89
- 2.4.19
93
+ 2.3.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.2.15-blue)](https://rubygems.org/gems/carbon_ruby_sdk/versions/0.2.15)
9
+ [![npm](https://img.shields.io/badge/gem-v0.2.16-blue)](https://rubygems.org/gems/carbon_ruby_sdk/versions/0.2.16)
10
10
 
11
11
  </div>
12
12
 
@@ -91,7 +91,7 @@ Connect external data to LLMs, no matter the source.
91
91
  Add to Gemfile:
92
92
 
93
93
  ```ruby
94
- gem 'carbon_ruby_sdk', '~> 0.2.15'
94
+ gem 'carbon_ruby_sdk', '~> 0.2.16'
95
95
  ```
96
96
 
97
97
  ## Getting Started<a id="getting-started"></a>
@@ -1300,7 +1300,7 @@ result = carbon.integrations.connect_data_source(
1300
1300
  "prepend_filename_to_chunks" => false,
1301
1301
  "sync_files_on_connection" => true,
1302
1302
  "set_page_as_boundary" => false,
1303
- "request_id" => "07b02a24-9429-4a3c-aa98-27ff63503082",
1303
+ "request_id" => "e38a7eee-02b7-4f73-be14-ea9bb1f09e85",
1304
1304
  "enable_file_picker" => true,
1305
1305
  "sync_source_items" => true,
1306
1306
  "incremental_sync" => false,
@@ -1520,7 +1520,7 @@ result = carbon.integrations.get_oauth_url(
1520
1520
  set_page_as_boundary: false,
1521
1521
  data_source_id: 1,
1522
1522
  connecting_new_account: false,
1523
- request_id: "d29ec177-bbc6-43c7-9b16-0ee340804c99",
1523
+ request_id: "e5fd53f8-ed96-474a-ba66-1fc1948facdf",
1524
1524
  use_ocr: false,
1525
1525
  parse_pdf_tables_with_ocr: false,
1526
1526
  enable_file_picker: true,
@@ -1581,7 +1581,7 @@ Enable OCR for files that support it. Supported formats: pdf
1581
1581
  ##### parse_pdf_tables_with_ocr: `Boolean`<a id="parse_pdf_tables_with_ocr-boolean"></a>
1582
1582
  ##### enable_file_picker: `Boolean`<a id="enable_file_picker-boolean"></a>
1583
1583
  Enable integration's file picker for sources that support it. Supported sources:
1584
- BOX, GOOGLE_DRIVE, SHAREPOINT, ONEDRIVE, DROPBOX
1584
+ BOX, ONEDRIVE, DROPBOX, SHAREPOINT, GOOGLE_DRIVE
1585
1585
 
1586
1586
  ##### sync_source_items: `Boolean`<a id="sync_source_items-boolean"></a>
1587
1587
  Enabling this flag will fetch all available content from the source to be listed
@@ -1887,7 +1887,7 @@ result = carbon.integrations.sync_confluence(
1887
1887
  prepend_filename_to_chunks: false,
1888
1888
  max_items_per_chunk: 1,
1889
1889
  set_page_as_boundary: false,
1890
- request_id: "ca60b474-8b43-4b44-9deb-adb701e40610",
1890
+ request_id: "77b56048-a895-4377-b0d3-e190d1b7de32",
1891
1891
  use_ocr: false,
1892
1892
  parse_pdf_tables_with_ocr: false,
1893
1893
  incremental_sync: false,
@@ -1992,7 +1992,7 @@ result = carbon.integrations.sync_files(
1992
1992
  prepend_filename_to_chunks: false,
1993
1993
  max_items_per_chunk: 1,
1994
1994
  set_page_as_boundary: false,
1995
- request_id: "ca60b474-8b43-4b44-9deb-adb701e40610",
1995
+ request_id: "77b56048-a895-4377-b0d3-e190d1b7de32",
1996
1996
  use_ocr: false,
1997
1997
  parse_pdf_tables_with_ocr: false,
1998
1998
  incremental_sync: false,
@@ -2582,6 +2582,11 @@ Update Organization
2582
2582
  result = carbon.organizations.update(
2583
2583
  global_user_config: {
2584
2584
  },
2585
+ data_source_configs: {
2586
+ "key": {
2587
+ "allowed_file_formats" => [],
2588
+ },
2589
+ },
2585
2590
  )
2586
2591
  p result
2587
2592
  ```
@@ -2589,6 +2594,10 @@ p result
2589
2594
  #### ⚙️ Parameters<a id="⚙️-parameters"></a>
2590
2595
 
2591
2596
  ##### global_user_config: [`UserConfigurationNullable`](./lib/carbon_ruby_sdk/models/user_configuration_nullable.rb)<a id="global_user_config-userconfigurationnullablelibcarbon_ruby_sdkmodelsuser_configuration_nullablerb"></a>
2597
+ ##### data_source_configs: Hash<string, [`DataSourceConfiguration`](./lib/carbon_ruby_sdk/models/data_source_configuration.rb)><a id="data_source_configs-hash"></a>
2598
+ Used to set organization level defaults for configuration related to data
2599
+ sources.
2600
+
2592
2601
  #### 🔄 Return<a id="🔄-return"></a>
2593
2602
 
2594
2603
  [GenericSuccessResponse](./lib/carbon_ruby_sdk/models/generic_success_response.rb)
@@ -653,13 +653,13 @@ module Carbon
653
653
  # @param request_id [String] This request id will be added to all files that get synced using the generated OAuth URL
654
654
  # @param use_ocr [Boolean] Enable OCR for files that support it. Supported formats: pdf
655
655
  # @param parse_pdf_tables_with_ocr [Boolean]
656
- # @param enable_file_picker [Boolean] Enable integration's file picker for sources that support it. Supported sources: BOX, GOOGLE_DRIVE, SHAREPOINT, ONEDRIVE, DROPBOX
656
+ # @param enable_file_picker [Boolean] Enable integration's file picker for sources that support it. Supported sources: BOX, ONEDRIVE, DROPBOX, SHAREPOINT, GOOGLE_DRIVE
657
657
  # @param sync_source_items [Boolean] Enabling this flag will fetch all available content from the source to be listed via list items endpoint
658
658
  # @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, INTERCOM, GMAIL, OUTLOOK. It will be ignored for other data sources.
659
659
  # @param file_sync_config [FileSyncConfigNullable]
660
660
  # @param body [OAuthURLRequest]
661
661
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
662
- 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: 'd29ec177-bbc6-43c7-9b16-0ee340804c99', 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: {})
662
+ 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: 'e5fd53f8-ed96-474a-ba66-1fc1948facdf', 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: {})
663
663
  _body = {}
664
664
  _body[:tags] = tags if tags != SENTINEL
665
665
  _body[:scope] = scope if scope != SENTINEL
@@ -721,13 +721,13 @@ module Carbon
721
721
  # @param request_id [String] This request id will be added to all files that get synced using the generated OAuth URL
722
722
  # @param use_ocr [Boolean] Enable OCR for files that support it. Supported formats: pdf
723
723
  # @param parse_pdf_tables_with_ocr [Boolean]
724
- # @param enable_file_picker [Boolean] Enable integration's file picker for sources that support it. Supported sources: BOX, GOOGLE_DRIVE, SHAREPOINT, ONEDRIVE, DROPBOX
724
+ # @param enable_file_picker [Boolean] Enable integration's file picker for sources that support it. Supported sources: BOX, ONEDRIVE, DROPBOX, SHAREPOINT, GOOGLE_DRIVE
725
725
  # @param sync_source_items [Boolean] Enabling this flag will fetch all available content from the source to be listed via list items endpoint
726
726
  # @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, INTERCOM, GMAIL, OUTLOOK. It will be ignored for other data sources.
727
727
  # @param file_sync_config [FileSyncConfigNullable]
728
728
  # @param body [OAuthURLRequest]
729
729
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
730
- 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: 'd29ec177-bbc6-43c7-9b16-0ee340804c99', 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: {})
730
+ 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: 'e5fd53f8-ed96-474a-ba66-1fc1948facdf', 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: {})
731
731
  _body = {}
732
732
  _body[:tags] = tags if tags != SENTINEL
733
733
  _body[:scope] = scope if scope != SENTINEL
@@ -1646,7 +1646,7 @@ module Carbon
1646
1646
  # @param file_sync_config [FileSyncConfigNullable]
1647
1647
  # @param body [SyncFilesRequest]
1648
1648
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
1649
- 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: 'ca60b474-8b43-4b44-9deb-adb701e40610', use_ocr: false, parse_pdf_tables_with_ocr: false, incremental_sync: false, file_sync_config: SENTINEL, extra: {})
1649
+ 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: '77b56048-a895-4377-b0d3-e190d1b7de32', use_ocr: false, parse_pdf_tables_with_ocr: false, incremental_sync: false, file_sync_config: SENTINEL, extra: {})
1650
1650
  _body = {}
1651
1651
  _body[:tags] = tags if tags != SENTINEL
1652
1652
  _body[:data_source_id] = data_source_id if data_source_id != SENTINEL
@@ -1696,7 +1696,7 @@ module Carbon
1696
1696
  # @param file_sync_config [FileSyncConfigNullable]
1697
1697
  # @param body [SyncFilesRequest]
1698
1698
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
1699
- 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: 'ca60b474-8b43-4b44-9deb-adb701e40610', use_ocr: false, parse_pdf_tables_with_ocr: false, incremental_sync: false, file_sync_config: SENTINEL, extra: {})
1699
+ 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: '77b56048-a895-4377-b0d3-e190d1b7de32', use_ocr: false, parse_pdf_tables_with_ocr: false, incremental_sync: false, file_sync_config: SENTINEL, extra: {})
1700
1700
  _body = {}
1701
1701
  _body[:tags] = tags if tags != SENTINEL
1702
1702
  _body[:data_source_id] = data_source_id if data_source_id != SENTINEL
@@ -1904,7 +1904,7 @@ module Carbon
1904
1904
  # @param file_sync_config [FileSyncConfigNullable]
1905
1905
  # @param body [SyncFilesRequest]
1906
1906
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
1907
- 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: 'ca60b474-8b43-4b44-9deb-adb701e40610', use_ocr: false, parse_pdf_tables_with_ocr: false, incremental_sync: false, file_sync_config: SENTINEL, extra: {})
1907
+ 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: '77b56048-a895-4377-b0d3-e190d1b7de32', use_ocr: false, parse_pdf_tables_with_ocr: false, incremental_sync: false, file_sync_config: SENTINEL, extra: {})
1908
1908
  _body = {}
1909
1909
  _body[:tags] = tags if tags != SENTINEL
1910
1910
  _body[:data_source_id] = data_source_id if data_source_id != SENTINEL
@@ -1952,7 +1952,7 @@ module Carbon
1952
1952
  # @param file_sync_config [FileSyncConfigNullable]
1953
1953
  # @param body [SyncFilesRequest]
1954
1954
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
1955
- 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: 'ca60b474-8b43-4b44-9deb-adb701e40610', use_ocr: false, parse_pdf_tables_with_ocr: false, incremental_sync: false, file_sync_config: SENTINEL, extra: {})
1955
+ 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: '77b56048-a895-4377-b0d3-e190d1b7de32', use_ocr: false, parse_pdf_tables_with_ocr: false, incremental_sync: false, file_sync_config: SENTINEL, extra: {})
1956
1956
  _body = {}
1957
1957
  _body[:tags] = tags if tags != SENTINEL
1958
1958
  _body[:data_source_id] = data_source_id if data_source_id != SENTINEL
@@ -90,11 +90,13 @@ module Carbon
90
90
  # Update Organization
91
91
  #
92
92
  # @param global_user_config [UserConfigurationNullable]
93
+ # @param data_source_configs [Hash<String, DataSourceConfiguration>] Used to set organization level defaults for configuration related to data sources.
93
94
  # @param body [UpdateOrganizationInput]
94
95
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
95
- def update(global_user_config: SENTINEL, extra: {})
96
+ def update(global_user_config: SENTINEL, data_source_configs: SENTINEL, extra: {})
96
97
  _body = {}
97
98
  _body[:global_user_config] = global_user_config if global_user_config != SENTINEL
99
+ _body[:data_source_configs] = data_source_configs if data_source_configs != SENTINEL
98
100
  update_organization_input = _body
99
101
  api_response = update_with_http_info_impl(update_organization_input, extra)
100
102
  api_response.data
@@ -103,11 +105,13 @@ module Carbon
103
105
  # Update Organization
104
106
  #
105
107
  # @param global_user_config [UserConfigurationNullable]
108
+ # @param data_source_configs [Hash<String, DataSourceConfiguration>] Used to set organization level defaults for configuration related to data sources.
106
109
  # @param body [UpdateOrganizationInput]
107
110
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
108
- def update_with_http_info(global_user_config: SENTINEL, extra: {})
111
+ def update_with_http_info(global_user_config: SENTINEL, data_source_configs: SENTINEL, extra: {})
109
112
  _body = {}
110
113
  _body[:global_user_config] = global_user_config if global_user_config != SENTINEL
114
+ _body[:data_source_configs] = data_source_configs if data_source_configs != SENTINEL
111
115
  update_organization_input = _body
112
116
  update_with_http_info_impl(update_organization_input, extra)
113
117
  end
@@ -0,0 +1,229 @@
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 DataSourceConfiguration
14
+ # List of allowed file formats for the organization. An empty list means all file formats are allowed.
15
+ attr_accessor :allowed_file_formats
16
+
17
+ # Used to set the format Google Workspace documents (Docs, Sheets, Slides) are stored as for raw files uploads in S3. The default format is TXT
18
+ attr_accessor :google_workspace_docs_save_as
19
+
20
+ # Attribute mapping from ruby-style variable name to JSON key.
21
+ def self.attribute_map
22
+ {
23
+ :'allowed_file_formats' => :'allowed_file_formats',
24
+ :'google_workspace_docs_save_as' => :'google_workspace_docs_save_as'
25
+ }
26
+ end
27
+
28
+ # Returns all the JSON keys this model knows about
29
+ def self.acceptable_attributes
30
+ attribute_map.values
31
+ end
32
+
33
+ # Attribute type mapping.
34
+ def self.openapi_types
35
+ {
36
+ :'allowed_file_formats' => :'Array<String>',
37
+ :'google_workspace_docs_save_as' => :'String'
38
+ }
39
+ end
40
+
41
+ # List of attributes with nullable: true
42
+ def self.openapi_nullable
43
+ Set.new([
44
+ :'google_workspace_docs_save_as'
45
+ ])
46
+ end
47
+
48
+ # Initializes the object
49
+ # @param [Hash] attributes Model attributes in the form of hash
50
+ def initialize(attributes = {})
51
+ if (!attributes.is_a?(Hash))
52
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Carbon::DataSourceConfiguration` initialize method"
53
+ end
54
+
55
+ # check to see if the attribute exists and convert string to symbol for hash key
56
+ attributes = attributes.each_with_object({}) { |(k, v), h|
57
+ if (!self.class.attribute_map.key?(k.to_sym))
58
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Carbon::DataSourceConfiguration`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
59
+ end
60
+ h[k.to_sym] = v
61
+ }
62
+
63
+ if attributes.key?(:'allowed_file_formats')
64
+ if (value = attributes[:'allowed_file_formats']).is_a?(Array)
65
+ self.allowed_file_formats = value
66
+ end
67
+ end
68
+
69
+ if attributes.key?(:'google_workspace_docs_save_as')
70
+ self.google_workspace_docs_save_as = attributes[:'google_workspace_docs_save_as']
71
+ end
72
+ end
73
+
74
+ # Show invalid properties with the reasons. Usually used together with valid?
75
+ # @return Array for valid properties with the reasons
76
+ def list_invalid_properties
77
+ invalid_properties = Array.new
78
+ invalid_properties
79
+ end
80
+
81
+ # Check to see if the all the properties in the model are valid
82
+ # @return true if the model is valid
83
+ def valid?
84
+ true
85
+ end
86
+
87
+ # Checks equality by comparing each attribute.
88
+ # @param [Object] Object to be compared
89
+ def ==(o)
90
+ return true if self.equal?(o)
91
+ self.class == o.class &&
92
+ allowed_file_formats == o.allowed_file_formats &&
93
+ google_workspace_docs_save_as == o.google_workspace_docs_save_as
94
+ end
95
+
96
+ # @see the `==` method
97
+ # @param [Object] Object to be compared
98
+ def eql?(o)
99
+ self == o
100
+ end
101
+
102
+ # Calculates hash code according to all attributes.
103
+ # @return [Integer] Hash code
104
+ def hash
105
+ [allowed_file_formats, google_workspace_docs_save_as].hash
106
+ end
107
+
108
+ # Builds the object from hash
109
+ # @param [Hash] attributes Model attributes in the form of hash
110
+ # @return [Object] Returns the model itself
111
+ def self.build_from_hash(attributes)
112
+ new.build_from_hash(attributes)
113
+ end
114
+
115
+ # Builds the object from hash
116
+ # @param [Hash] attributes Model attributes in the form of hash
117
+ # @return [Object] Returns the model itself
118
+ def build_from_hash(attributes)
119
+ return nil unless attributes.is_a?(Hash)
120
+ attributes = attributes.transform_keys(&:to_sym)
121
+ self.class.openapi_types.each_pair do |key, type|
122
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
123
+ self.send("#{key}=", nil)
124
+ elsif type =~ /\AArray<(.*)>/i
125
+ # check to ensure the input is an array given that the attribute
126
+ # is documented as an array but the input is not
127
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
128
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
129
+ end
130
+ elsif !attributes[self.class.attribute_map[key]].nil?
131
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
132
+ end
133
+ end
134
+
135
+ self
136
+ end
137
+
138
+ # Deserializes the data based on type
139
+ # @param string type Data type
140
+ # @param string value Value to be deserialized
141
+ # @return [Object] Deserialized data
142
+ def _deserialize(type, value)
143
+ case type.to_sym
144
+ when :Time
145
+ Time.parse(value)
146
+ when :Date
147
+ Date.parse(value)
148
+ when :String
149
+ value.to_s
150
+ when :Integer
151
+ value.to_i
152
+ when :Float
153
+ value.to_f
154
+ when :Boolean
155
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
156
+ true
157
+ else
158
+ false
159
+ end
160
+ when :Object
161
+ # generic object (usually a Hash), return directly
162
+ value
163
+ when /\AArray<(?<inner_type>.+)>\z/
164
+ inner_type = Regexp.last_match[:inner_type]
165
+ value.map { |v| _deserialize(inner_type, v) }
166
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
167
+ k_type = Regexp.last_match[:k_type]
168
+ v_type = Regexp.last_match[:v_type]
169
+ {}.tap do |hash|
170
+ value.each do |k, v|
171
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
172
+ end
173
+ end
174
+ else # model
175
+ # models (e.g. Pet) or oneOf
176
+ klass = Carbon.const_get(type)
177
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
178
+ end
179
+ end
180
+
181
+ # Returns the string representation of the object
182
+ # @return [String] String presentation of the object
183
+ def to_s
184
+ to_hash.to_s
185
+ end
186
+
187
+ # to_body is an alias to to_hash (backward compatibility)
188
+ # @return [Hash] Returns the object in the form of hash
189
+ def to_body
190
+ to_hash
191
+ end
192
+
193
+ # Returns the object in the form of hash
194
+ # @return [Hash] Returns the object in the form of hash
195
+ def to_hash
196
+ hash = {}
197
+ self.class.attribute_map.each_pair do |attr, param|
198
+ value = self.send(attr)
199
+ if value.nil?
200
+ is_nullable = self.class.openapi_nullable.include?(attr)
201
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
202
+ end
203
+
204
+ hash[param] = _to_hash(value)
205
+ end
206
+ hash
207
+ end
208
+
209
+ # Outputs non-array value in the form of hash
210
+ # For object, use to_hash. Otherwise, just return the value
211
+ # @param [Object] value Any valid value
212
+ # @return [Hash] Returns the value in the form of hash
213
+ def _to_hash(value)
214
+ if value.is_a?(Array)
215
+ value.compact.map { |v| _to_hash(v) }
216
+ elsif value.is_a?(Hash)
217
+ {}.tap do |hash|
218
+ value.each { |k, v| hash[k] = _to_hash(v) }
219
+ end
220
+ elsif value.respond_to? :to_hash
221
+ value.to_hash
222
+ else
223
+ value
224
+ end
225
+ end
226
+
227
+ end
228
+
229
+ end
@@ -65,9 +65,10 @@ module Carbon
65
65
  MKV = "MKV".freeze
66
66
  FLV = "FLV".freeze
67
67
  WEBM = "WEBM".freeze
68
+ EML = "EML".freeze
68
69
 
69
70
  def self.all_vars
70
- @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, SLACK, JPG, PNG, JPEG, MP3, MP2, AAC, WAV, FLAC, PCM, M4_A, OGG, OPUS, MPEG, MPG, MP4, WMV, AVI, MOV, MKV, FLV, WEBM].freeze
71
+ @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, SLACK, JPG, PNG, JPEG, MP3, MP2, AAC, WAV, FLAC, PCM, M4_A, OGG, OPUS, MPEG, MPG, MP4, WMV, AVI, MOV, MKV, FLV, WEBM, EML].freeze
71
72
  end
72
73
 
73
74
  # Builds the enum from string
@@ -65,9 +65,10 @@ module Carbon
65
65
  MKV = "MKV".freeze
66
66
  FLV = "FLV".freeze
67
67
  WEBM = "WEBM".freeze
68
+ EML = "EML".freeze
68
69
 
69
70
  def self.all_vars
70
- @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, SLACK, JPG, PNG, JPEG, MP3, MP2, AAC, WAV, FLAC, PCM, M4_A, OGG, OPUS, MPEG, MPG, MP4, WMV, AVI, MOV, MKV, FLV, WEBM].freeze
71
+ @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, SLACK, JPG, PNG, JPEG, MP3, MP2, AAC, WAV, FLAC, PCM, M4_A, OGG, OPUS, MPEG, MPG, MP4, WMV, AVI, MOV, MKV, FLV, WEBM, EML].freeze
71
72
  end
72
73
 
73
74
  # Builds the enum from string
@@ -58,9 +58,10 @@ module Carbon
58
58
  MKV = "MKV".freeze
59
59
  FLV = "FLV".freeze
60
60
  WEBM = "WEBM".freeze
61
+ EML = "EML".freeze
61
62
 
62
63
  def self.all_vars
63
- @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, SLACK, JPG, PNG, MP3, MP2, AAC, WAV, FLAC, PCM, M4_A, OGG, OPUS, MPEG, MPG, MP4, WMV, AVI, MOV, MKV, FLV, WEBM].freeze
64
+ @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, SLACK, JPG, PNG, MP3, MP2, AAC, WAV, FLAC, PCM, M4_A, OGG, OPUS, MPEG, MPG, MP4, WMV, AVI, MOV, MKV, FLV, WEBM, EML].freeze
64
65
  end
65
66
 
66
67
  # Builds the enum from string
@@ -58,9 +58,10 @@ module Carbon
58
58
  MKV = "MKV".freeze
59
59
  FLV = "FLV".freeze
60
60
  WEBM = "WEBM".freeze
61
+ EML = "EML".freeze
61
62
 
62
63
  def self.all_vars
63
- @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, SLACK, JPG, PNG, MP3, MP2, AAC, WAV, FLAC, PCM, M4_A, OGG, OPUS, MPEG, MPG, MP4, WMV, AVI, MOV, MKV, FLV, WEBM].freeze
64
+ @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, SLACK, JPG, PNG, MP3, MP2, AAC, WAV, FLAC, PCM, M4_A, OGG, OPUS, MPEG, MPG, MP4, WMV, AVI, MOV, MKV, FLV, WEBM, EML].freeze
64
65
  end
65
66
 
66
67
  # 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: BOX, GOOGLE_DRIVE, SHAREPOINT, ONEDRIVE, DROPBOX
64
+ # Enable integration's file picker for sources that support it. Supported sources: BOX, ONEDRIVE, DROPBOX, SHAREPOINT, GOOGLE_DRIVE
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 = 'd29ec177-bbc6-43c7-9b16-0ee340804c99'
282
+ self.request_id = 'e5fd53f8-ed96-474a-ba66-1fc1948facdf'
283
283
  end
284
284
 
285
285
  if attributes.key?(:'use_ocr')
@@ -41,6 +41,8 @@ module Carbon
41
41
 
42
42
  attr_accessor :cancel_at_period_end
43
43
 
44
+ attr_accessor :connector_settings
45
+
44
46
  attr_accessor :global_user_config
45
47
 
46
48
  attr_accessor :file_sync_usage
@@ -67,6 +69,7 @@ module Carbon
67
69
  :'file_statistics_aggregated_at' => :'file_statistics_aggregated_at',
68
70
  :'period_ends_at' => :'period_ends_at',
69
71
  :'cancel_at_period_end' => :'cancel_at_period_end',
72
+ :'connector_settings' => :'connector_settings',
70
73
  :'global_user_config' => :'global_user_config',
71
74
  :'file_sync_usage' => :'file_sync_usage',
72
75
  :'created_at' => :'created_at',
@@ -97,6 +100,7 @@ module Carbon
97
100
  :'file_statistics_aggregated_at' => :'Time',
98
101
  :'period_ends_at' => :'Time',
99
102
  :'cancel_at_period_end' => :'Boolean',
103
+ :'connector_settings' => :'Object',
100
104
  :'global_user_config' => :'Object',
101
105
  :'file_sync_usage' => :'Object',
102
106
  :'created_at' => :'Time',
@@ -191,6 +195,10 @@ module Carbon
191
195
  self.cancel_at_period_end = attributes[:'cancel_at_period_end']
192
196
  end
193
197
 
198
+ if attributes.key?(:'connector_settings')
199
+ self.connector_settings = attributes[:'connector_settings']
200
+ end
201
+
194
202
  if attributes.key?(:'global_user_config')
195
203
  self.global_user_config = attributes[:'global_user_config']
196
204
  end
@@ -248,6 +256,10 @@ module Carbon
248
256
  invalid_properties.push('invalid value for "aggregate_num_files_by_file_format", aggregate_num_files_by_file_format cannot be nil.')
249
257
  end
250
258
 
259
+ if @connector_settings.nil?
260
+ invalid_properties.push('invalid value for "connector_settings", connector_settings cannot be nil.')
261
+ end
262
+
251
263
  if @global_user_config.nil?
252
264
  invalid_properties.push('invalid value for "global_user_config", global_user_config cannot be nil.')
253
265
  end
@@ -279,6 +291,7 @@ module Carbon
279
291
  return false if @aggregate_num_embeddings.nil?
280
292
  return false if @aggregate_num_files_by_source.nil?
281
293
  return false if @aggregate_num_files_by_file_format.nil?
294
+ return false if @connector_settings.nil?
282
295
  return false if @global_user_config.nil?
283
296
  return false if @file_sync_usage.nil?
284
297
  return false if @created_at.nil?
@@ -306,6 +319,7 @@ module Carbon
306
319
  file_statistics_aggregated_at == o.file_statistics_aggregated_at &&
307
320
  period_ends_at == o.period_ends_at &&
308
321
  cancel_at_period_end == o.cancel_at_period_end &&
322
+ connector_settings == o.connector_settings &&
309
323
  global_user_config == o.global_user_config &&
310
324
  file_sync_usage == o.file_sync_usage &&
311
325
  created_at == o.created_at &&
@@ -321,7 +335,7 @@ module Carbon
321
335
  # Calculates hash code according to all attributes.
322
336
  # @return [Integer] Hash code
323
337
  def hash
324
- [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, file_sync_usage, created_at, updated_at].hash
338
+ [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, connector_settings, global_user_config, file_sync_usage, created_at, updated_at].hash
325
339
  end
326
340
 
327
341
  # 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 = 'ca60b474-8b43-4b44-9deb-adb701e40610'
190
+ self.request_id = '77b56048-a895-4377-b0d3-e190d1b7de32'
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 = '07b02a24-9429-4a3c-aa98-27ff63503082'
185
+ self.request_id = 'e38a7eee-02b7-4f73-be14-ea9bb1f09e85'
186
186
  end
187
187
 
188
188
  if attributes.key?(:'enable_file_picker')
@@ -13,10 +13,14 @@ module Carbon
13
13
  class UpdateOrganizationInput
14
14
  attr_accessor :global_user_config
15
15
 
16
+ # Used to set organization level defaults for configuration related to data sources.
17
+ attr_accessor :data_source_configs
18
+
16
19
  # Attribute mapping from ruby-style variable name to JSON key.
17
20
  def self.attribute_map
18
21
  {
19
- :'global_user_config' => :'global_user_config'
22
+ :'global_user_config' => :'global_user_config',
23
+ :'data_source_configs' => :'data_source_configs'
20
24
  }
21
25
  end
22
26
 
@@ -28,14 +32,16 @@ module Carbon
28
32
  # Attribute type mapping.
29
33
  def self.openapi_types
30
34
  {
31
- :'global_user_config' => :'UserConfigurationNullable'
35
+ :'global_user_config' => :'UserConfigurationNullable',
36
+ :'data_source_configs' => :'Hash<String, DataSourceConfiguration>'
32
37
  }
33
38
  end
34
39
 
35
40
  # List of attributes with nullable: true
36
41
  def self.openapi_nullable
37
42
  Set.new([
38
- :'global_user_config'
43
+ :'global_user_config',
44
+ :'data_source_configs'
39
45
  ])
40
46
  end
41
47
 
@@ -57,6 +63,12 @@ module Carbon
57
63
  if attributes.key?(:'global_user_config')
58
64
  self.global_user_config = attributes[:'global_user_config']
59
65
  end
66
+
67
+ if attributes.key?(:'data_source_configs')
68
+ if (value = attributes[:'data_source_configs']).is_a?(Hash)
69
+ self.data_source_configs = value
70
+ end
71
+ end
60
72
  end
61
73
 
62
74
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -77,7 +89,8 @@ module Carbon
77
89
  def ==(o)
78
90
  return true if self.equal?(o)
79
91
  self.class == o.class &&
80
- global_user_config == o.global_user_config
92
+ global_user_config == o.global_user_config &&
93
+ data_source_configs == o.data_source_configs
81
94
  end
82
95
 
83
96
  # @see the `==` method
@@ -89,7 +102,7 @@ module Carbon
89
102
  # Calculates hash code according to all attributes.
90
103
  # @return [Integer] Hash code
91
104
  def hash
92
- [global_user_config].hash
105
+ [global_user_config, data_source_configs].hash
93
106
  end
94
107
 
95
108
  # Builds the object from hash
@@ -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.2.15'
10
+ VERSION = '0.2.16'
11
11
  end
@@ -27,6 +27,7 @@ require 'carbon_ruby_sdk/models/confluence_authentication'
27
27
  require 'carbon_ruby_sdk/models/connect_data_source_input'
28
28
  require 'carbon_ruby_sdk/models/connect_data_source_response'
29
29
  require 'carbon_ruby_sdk/models/custom_credentials_type'
30
+ require 'carbon_ruby_sdk/models/data_source_configuration'
30
31
  require 'carbon_ruby_sdk/models/data_source_last_sync_actions'
31
32
  require 'carbon_ruby_sdk/models/data_source_sync_statuses'
32
33
  require 'carbon_ruby_sdk/models/data_source_type'
@@ -0,0 +1,34 @@
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::DataSourceConfiguration
14
+ describe Carbon::DataSourceConfiguration do
15
+ let(:instance) { Carbon::DataSourceConfiguration.new }
16
+
17
+ describe 'test an instance of DataSourceConfiguration' do
18
+ it 'should create an instance of DataSourceConfiguration' do
19
+ expect(instance).to be_instance_of(Carbon::DataSourceConfiguration)
20
+ end
21
+ end
22
+ describe 'test attribute "allowed_file_formats"' do
23
+ it 'should work' do
24
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
25
+ end
26
+ end
27
+
28
+ describe 'test attribute "google_workspace_docs_save_as"' do
29
+ it 'should work' do
30
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
31
+ end
32
+ end
33
+
34
+ end
@@ -109,6 +109,12 @@ describe Carbon::OrganizationResponse do
109
109
  end
110
110
  end
111
111
 
112
+ describe 'test attribute "connector_settings"' do
113
+ it 'should work' do
114
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
115
+ end
116
+ end
117
+
112
118
  describe 'test attribute "global_user_config"' do
113
119
  it 'should work' do
114
120
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -25,4 +25,10 @@ describe Carbon::UpdateOrganizationInput do
25
25
  end
26
26
  end
27
27
 
28
+ describe 'test attribute "data_source_configs"' do
29
+ it 'should work' do
30
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
31
+ end
32
+ end
33
+
28
34
  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.2.15
4
+ version: 0.2.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Konfig
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-19 00:00:00.000000000 Z
11
+ date: 2024-07-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -109,6 +109,7 @@ files:
109
109
  - lib/carbon_ruby_sdk/models/connect_data_source_input.rb
110
110
  - lib/carbon_ruby_sdk/models/connect_data_source_response.rb
111
111
  - lib/carbon_ruby_sdk/models/custom_credentials_type.rb
112
+ - lib/carbon_ruby_sdk/models/data_source_configuration.rb
112
113
  - lib/carbon_ruby_sdk/models/data_source_last_sync_actions.rb
113
114
  - lib/carbon_ruby_sdk/models/data_source_sync_statuses.rb
114
115
  - lib/carbon_ruby_sdk/models/data_source_type.rb
@@ -269,6 +270,7 @@ files:
269
270
  - spec/models/connect_data_source_input_spec.rb
270
271
  - spec/models/connect_data_source_response_spec.rb
271
272
  - spec/models/custom_credentials_type_spec.rb
273
+ - spec/models/data_source_configuration_spec.rb
272
274
  - spec/models/data_source_last_sync_actions_spec.rb
273
275
  - spec/models/data_source_sync_statuses_spec.rb
274
276
  - spec/models/data_source_type_nullable_spec.rb
@@ -426,7 +428,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
426
428
  - !ruby/object:Gem::Version
427
429
  version: '0'
428
430
  requirements: []
429
- rubygems_version: 3.4.10
431
+ rubygems_version: 3.3.7
430
432
  signing_key:
431
433
  specification_version: 4
432
434
  summary: Carbon Ruby Gem
@@ -564,6 +566,7 @@ test_files:
564
566
  - spec/models/file_statistics_spec.rb
565
567
  - spec/models/confluence_authentication_spec.rb
566
568
  - spec/models/get_embedding_documents_body_spec.rb
569
+ - spec/models/data_source_configuration_spec.rb
567
570
  - spec/models/tags1_spec.rb
568
571
  - spec/models/webscrape_request_spec.rb
569
572
  - spec/models/embeddings_and_chunks_response_spec.rb