carbon_ruby_sdk 0.2.48 → 0.2.50
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/README.md +58 -22
- data/lib/carbon_ruby_sdk/api/data_sources_api.rb +106 -2
- data/lib/carbon_ruby_sdk/api/embeddings_api.rb +4 -4
- data/lib/carbon_ruby_sdk/api/files_api.rb +22 -22
- data/lib/carbon_ruby_sdk/api/github_api.rb +6 -6
- data/lib/carbon_ruby_sdk/api/integrations_api.rb +22 -22
- data/lib/carbon_ruby_sdk/api/users_api.rb +10 -6
- data/lib/carbon_ruby_sdk/api/utilities_api.rb +4 -4
- data/lib/carbon_ruby_sdk/api/webhooks_api.rb +2 -2
- data/lib/carbon_ruby_sdk/api/white_label_api.rb +2 -2
- data/lib/carbon_ruby_sdk/models/authentication_property.rb +6 -2
- data/lib/carbon_ruby_sdk/models/auto_sync_enabled_sources_property.rb +1 -1
- data/lib/carbon_ruby_sdk/models/azure_blob_file_sync_input.rb +0 -2
- data/lib/carbon_ruby_sdk/models/azure_blob_storage_authentication.rb +6 -2
- data/lib/carbon_ruby_sdk/models/azure_blob_storage_types.rb +35 -0
- data/lib/carbon_ruby_sdk/models/chunk_properties.rb +0 -10
- data/lib/carbon_ruby_sdk/models/chunk_properties_nullable.rb +0 -10
- data/lib/carbon_ruby_sdk/models/comments_input.rb +0 -2
- data/lib/carbon_ruby_sdk/models/configuration_keys.rb +35 -0
- data/lib/carbon_ruby_sdk/models/confluence_authentication.rb +6 -2
- data/lib/carbon_ruby_sdk/models/confluence_authentication_source.rb +35 -0
- data/lib/carbon_ruby_sdk/models/data_source_extended_input.rb +35 -0
- data/lib/carbon_ruby_sdk/models/directory_item.rb +0 -10
- data/lib/carbon_ruby_sdk/models/embedding_model.rb +1 -1
- data/lib/carbon_ruby_sdk/models/embeddings_and_chunks_query_input.rb +0 -4
- data/lib/carbon_ruby_sdk/models/embeddings_and_chunks_query_input_v2.rb +0 -4
- data/lib/carbon_ruby_sdk/models/freskdesk_authentication.rb +6 -2
- data/lib/carbon_ruby_sdk/models/freskdesk_authentication_source.rb +35 -0
- data/lib/carbon_ruby_sdk/models/gitbook_authetication.rb +6 -2
- data/lib/carbon_ruby_sdk/models/gitbook_authetication_source.rb +35 -0
- data/lib/carbon_ruby_sdk/models/gitbook_connect_request.rb +0 -2
- data/lib/carbon_ruby_sdk/models/gitbook_sync_request.rb +0 -2
- data/lib/carbon_ruby_sdk/models/github_authentication.rb +6 -2
- data/lib/carbon_ruby_sdk/models/github_authentication_source.rb +35 -0
- data/lib/carbon_ruby_sdk/models/gmail_sync_input.rb +0 -2
- data/lib/carbon_ruby_sdk/models/gong_authentication.rb +6 -2
- data/lib/carbon_ruby_sdk/models/gong_authentication_source.rb +35 -0
- data/lib/carbon_ruby_sdk/models/google_drive_white_label_input.rb +6 -2
- data/lib/carbon_ruby_sdk/models/google_drive_white_label_input_data_source_type.rb +35 -0
- data/lib/carbon_ruby_sdk/models/guru_authentication.rb +6 -2
- data/lib/carbon_ruby_sdk/models/guru_authentication_source.rb +35 -0
- data/lib/carbon_ruby_sdk/models/guru_connect_request.rb +0 -2
- data/lib/carbon_ruby_sdk/models/issues_filter.rb +0 -2
- data/lib/carbon_ruby_sdk/models/issues_input.rb +0 -2
- data/lib/carbon_ruby_sdk/models/item_types_property_inner.rb +1 -1
- data/lib/carbon_ruby_sdk/models/list_data_source_items_request.rb +0 -4
- data/lib/carbon_ruby_sdk/models/list_user_response.rb +0 -10
- data/lib/carbon_ruby_sdk/models/list_users_request.rb +0 -4
- data/lib/carbon_ruby_sdk/models/list_white_label_request.rb +0 -4
- data/lib/carbon_ruby_sdk/models/modify_user_configuration_input.rb +1 -1
- data/lib/carbon_ruby_sdk/models/multi_modal_embedding_generators.rb +35 -0
- data/lib/carbon_ruby_sdk/models/notion_authentication.rb +6 -2
- data/lib/carbon_ruby_sdk/models/notion_authentication_source.rb +35 -0
- data/lib/carbon_ruby_sdk/models/one_drive_authentication.rb +6 -2
- data/lib/carbon_ruby_sdk/models/one_drive_authentication_source.rb +35 -0
- data/lib/carbon_ruby_sdk/models/organization_response.rb +0 -20
- data/lib/carbon_ruby_sdk/models/organization_user_data_source_query_input.rb +0 -4
- data/lib/carbon_ruby_sdk/models/organization_user_files_to_sync_query_input.rb +0 -8
- data/lib/carbon_ruby_sdk/models/outlook_sync_input.rb +0 -2
- data/lib/carbon_ruby_sdk/models/pull_request_filters.rb +0 -2
- data/lib/carbon_ruby_sdk/models/pull_requests_input.rb +0 -2
- data/lib/carbon_ruby_sdk/models/rss_feed_input.rb +0 -2
- data/lib/carbon_ruby_sdk/models/s3_authentication.rb +6 -2
- data/lib/carbon_ruby_sdk/models/s3_authentication_source.rb +35 -0
- data/lib/carbon_ruby_sdk/models/s3_file_sync_input.rb +1 -2
- data/lib/carbon_ruby_sdk/models/s3_get_file_input.rb +15 -5
- data/lib/carbon_ruby_sdk/models/salesforce_authentication.rb +6 -2
- data/lib/carbon_ruby_sdk/models/salesforce_authentication_source.rb +35 -0
- data/lib/carbon_ruby_sdk/models/service_now_authentication.rb +6 -2
- data/lib/carbon_ruby_sdk/models/service_now_authentication_source.rb +35 -0
- data/lib/carbon_ruby_sdk/models/sharepoint_authentication.rb +6 -2
- data/lib/carbon_ruby_sdk/models/sharepoint_authentication_source.rb +35 -0
- data/lib/carbon_ruby_sdk/models/sitemap_scrape_request.rb +0 -2
- data/lib/carbon_ruby_sdk/models/slack_sync_request.rb +0 -2
- data/lib/carbon_ruby_sdk/models/source.rb +35 -0
- data/lib/carbon_ruby_sdk/models/update_users_input.rb +27 -1
- data/lib/carbon_ruby_sdk/models/upload_file_from_url_input.rb +0 -2
- data/lib/carbon_ruby_sdk/models/user_configuration.rb +31 -5
- data/lib/carbon_ruby_sdk/models/user_configuration_nullable.rb +31 -5
- data/lib/carbon_ruby_sdk/models/user_file.rb +0 -20
- data/lib/carbon_ruby_sdk/models/user_response.rb +0 -15
- data/lib/carbon_ruby_sdk/models/user_web_pages_request.rb +0 -4
- data/lib/carbon_ruby_sdk/models/webhook_query_input.rb +0 -4
- data/lib/carbon_ruby_sdk/models/webscrape_request.rb +0 -2
- data/lib/carbon_ruby_sdk/models/white_labeling_response.rb +0 -5
- data/lib/carbon_ruby_sdk/models/zendesk_authentication.rb +6 -2
- data/lib/carbon_ruby_sdk/models/zendesk_authentication_source.rb +35 -0
- data/lib/carbon_ruby_sdk/models/zotero_authentication.rb +6 -2
- data/lib/carbon_ruby_sdk/models/zotero_authentication_source.rb +35 -0
- data/lib/carbon_ruby_sdk/version.rb +1 -1
- data/lib/carbon_ruby_sdk.rb +20 -0
- data/spec/api/data_sources_api_spec.rb +11 -0
- data/spec/models/azure_blob_storage_types_spec.rb +22 -0
- data/spec/models/configuration_keys_spec.rb +22 -0
- data/spec/models/confluence_authentication_source_spec.rb +22 -0
- data/spec/models/data_source_extended_input_spec.rb +22 -0
- data/spec/models/freskdesk_authentication_source_spec.rb +22 -0
- data/spec/models/gitbook_authetication_source_spec.rb +22 -0
- data/spec/models/github_authentication_source_spec.rb +22 -0
- data/spec/models/gong_authentication_source_spec.rb +22 -0
- data/spec/models/google_drive_white_label_input_data_source_type_spec.rb +22 -0
- data/spec/models/guru_authentication_source_spec.rb +22 -0
- data/spec/models/multi_modal_embedding_generators_spec.rb +22 -0
- data/spec/models/notion_authentication_source_spec.rb +22 -0
- data/spec/models/one_drive_authentication_source_spec.rb +22 -0
- data/spec/models/s3_authentication_source_spec.rb +22 -0
- data/spec/models/s3_get_file_input_spec.rb +6 -0
- data/spec/models/salesforce_authentication_source_spec.rb +22 -0
- data/spec/models/service_now_authentication_source_spec.rb +22 -0
- data/spec/models/sharepoint_authentication_source_spec.rb +22 -0
- data/spec/models/source_spec.rb +22 -0
- data/spec/models/update_users_input_spec.rb +6 -0
- data/spec/models/user_configuration_nullable_spec.rb +6 -0
- data/spec/models/user_configuration_spec.rb +6 -0
- data/spec/models/zendesk_authentication_source_spec.rb +22 -0
- data/spec/models/zotero_authentication_source_spec.rb +22 -0
- metadata +62 -2
@@ -0,0 +1,35 @@
|
|
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 ZoteroAuthenticationSource
|
14
|
+
ZOTERO = "ZOTERO".freeze
|
15
|
+
|
16
|
+
def self.all_vars
|
17
|
+
@all_vars ||= [ZOTERO].freeze
|
18
|
+
end
|
19
|
+
|
20
|
+
# Builds the enum from string
|
21
|
+
# @param [String] The enum value in the form of the string
|
22
|
+
# @return [String] The enum value
|
23
|
+
def self.build_from_hash(value)
|
24
|
+
new.build_from_hash(value)
|
25
|
+
end
|
26
|
+
|
27
|
+
# Builds the enum from string
|
28
|
+
# @param [String] The enum value in the form of the string
|
29
|
+
# @return [String] The enum value
|
30
|
+
def build_from_hash(value)
|
31
|
+
return value if ZoteroAuthenticationSource.all_vars.include?(value)
|
32
|
+
raise "Invalid ENUM value #{value} for class #ZoteroAuthenticationSource"
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
data/lib/carbon_ruby_sdk.rb
CHANGED
@@ -31,6 +31,7 @@ require 'carbon_ruby_sdk/models/azure_blob_auth_request'
|
|
31
31
|
require 'carbon_ruby_sdk/models/azure_blob_file_sync_input'
|
32
32
|
require 'carbon_ruby_sdk/models/azure_blob_get_file_input'
|
33
33
|
require 'carbon_ruby_sdk/models/azure_blob_storage_authentication'
|
34
|
+
require 'carbon_ruby_sdk/models/azure_blob_storage_types'
|
34
35
|
require 'carbon_ruby_sdk/models/base_includes'
|
35
36
|
require 'carbon_ruby_sdk/models/body_create_upload_file_uploadfile_post'
|
36
37
|
require 'carbon_ruby_sdk/models/chunk_properties'
|
@@ -46,7 +47,9 @@ require 'carbon_ruby_sdk/models/commit_user'
|
|
46
47
|
require 'carbon_ruby_sdk/models/commit_user_nullable'
|
47
48
|
require 'carbon_ruby_sdk/models/commits_input'
|
48
49
|
require 'carbon_ruby_sdk/models/commits_response'
|
50
|
+
require 'carbon_ruby_sdk/models/configuration_keys'
|
49
51
|
require 'carbon_ruby_sdk/models/confluence_authentication'
|
52
|
+
require 'carbon_ruby_sdk/models/confluence_authentication_source'
|
50
53
|
require 'carbon_ruby_sdk/models/confluence_file_types'
|
51
54
|
require 'carbon_ruby_sdk/models/connect_data_source_input'
|
52
55
|
require 'carbon_ruby_sdk/models/connect_data_source_response'
|
@@ -59,6 +62,7 @@ require 'carbon_ruby_sdk/models/contacts_response'
|
|
59
62
|
require 'carbon_ruby_sdk/models/credentials'
|
60
63
|
require 'carbon_ruby_sdk/models/custom_credentials_type'
|
61
64
|
require 'carbon_ruby_sdk/models/data_source_configuration'
|
65
|
+
require 'carbon_ruby_sdk/models/data_source_extended_input'
|
62
66
|
require 'carbon_ruby_sdk/models/data_source_last_sync_actions'
|
63
67
|
require 'carbon_ruby_sdk/models/data_source_sync_statuses'
|
64
68
|
require 'carbon_ruby_sdk/models/data_source_type'
|
@@ -101,22 +105,28 @@ require 'carbon_ruby_sdk/models/files_input'
|
|
101
105
|
require 'carbon_ruby_sdk/models/files_response'
|
102
106
|
require 'carbon_ruby_sdk/models/fresh_desk_connect_request'
|
103
107
|
require 'carbon_ruby_sdk/models/freskdesk_authentication'
|
108
|
+
require 'carbon_ruby_sdk/models/freskdesk_authentication_source'
|
104
109
|
require 'carbon_ruby_sdk/models/generic_success_response'
|
105
110
|
require 'carbon_ruby_sdk/models/get_embedding_documents_body'
|
106
111
|
require 'carbon_ruby_sdk/models/gitbook_authetication'
|
112
|
+
require 'carbon_ruby_sdk/models/gitbook_authetication_source'
|
107
113
|
require 'carbon_ruby_sdk/models/gitbook_connect_request'
|
108
114
|
require 'carbon_ruby_sdk/models/gitbook_file_types'
|
109
115
|
require 'carbon_ruby_sdk/models/gitbook_sync_request'
|
110
116
|
require 'carbon_ruby_sdk/models/github_authentication'
|
117
|
+
require 'carbon_ruby_sdk/models/github_authentication_source'
|
111
118
|
require 'carbon_ruby_sdk/models/github_connect_request'
|
112
119
|
require 'carbon_ruby_sdk/models/github_fetch_repos_request'
|
113
120
|
require 'carbon_ruby_sdk/models/github_file_types'
|
114
121
|
require 'carbon_ruby_sdk/models/gmail_sync_input'
|
115
122
|
require 'carbon_ruby_sdk/models/gong_authentication'
|
123
|
+
require 'carbon_ruby_sdk/models/gong_authentication_source'
|
116
124
|
require 'carbon_ruby_sdk/models/gong_file_types'
|
117
125
|
require 'carbon_ruby_sdk/models/google_drive_credentials'
|
118
126
|
require 'carbon_ruby_sdk/models/google_drive_white_label_input'
|
127
|
+
require 'carbon_ruby_sdk/models/google_drive_white_label_input_data_source_type'
|
119
128
|
require 'carbon_ruby_sdk/models/guru_authentication'
|
129
|
+
require 'carbon_ruby_sdk/models/guru_authentication_source'
|
120
130
|
require 'carbon_ruby_sdk/models/guru_connect_request'
|
121
131
|
require 'carbon_ruby_sdk/models/guru_file_types'
|
122
132
|
require 'carbon_ruby_sdk/models/http_validation_error'
|
@@ -156,12 +166,15 @@ require 'carbon_ruby_sdk/models/location_property_inner'
|
|
156
166
|
require 'carbon_ruby_sdk/models/modify_cold_storage_parameters_query_input'
|
157
167
|
require 'carbon_ruby_sdk/models/modify_user_configuration_input'
|
158
168
|
require 'carbon_ruby_sdk/models/move_to_hot_storage_query_input'
|
169
|
+
require 'carbon_ruby_sdk/models/multi_modal_embedding_generators'
|
159
170
|
require 'carbon_ruby_sdk/models/notion_authentication'
|
171
|
+
require 'carbon_ruby_sdk/models/notion_authentication_source'
|
160
172
|
require 'carbon_ruby_sdk/models/o_auth_authentication'
|
161
173
|
require 'carbon_ruby_sdk/models/o_auth_url_request'
|
162
174
|
require 'carbon_ruby_sdk/models/oauth_based_connectors'
|
163
175
|
require 'carbon_ruby_sdk/models/object_type'
|
164
176
|
require 'carbon_ruby_sdk/models/one_drive_authentication'
|
177
|
+
require 'carbon_ruby_sdk/models/one_drive_authentication_source'
|
165
178
|
require 'carbon_ruby_sdk/models/one_drive_sharepoint_credentials'
|
166
179
|
require 'carbon_ruby_sdk/models/one_drive_sharepoint_white_label_input'
|
167
180
|
require 'carbon_ruby_sdk/models/one_drive_sharepoint_white_label_input_data_source_type'
|
@@ -220,25 +233,30 @@ require 'carbon_ruby_sdk/models/resync_file_query_input'
|
|
220
233
|
require 'carbon_ruby_sdk/models/revoke_access_token_input'
|
221
234
|
require 'carbon_ruby_sdk/models/s3_auth_request'
|
222
235
|
require 'carbon_ruby_sdk/models/s3_authentication'
|
236
|
+
require 'carbon_ruby_sdk/models/s3_authentication_source'
|
223
237
|
require 'carbon_ruby_sdk/models/s3_file_sync_input'
|
224
238
|
require 'carbon_ruby_sdk/models/s3_get_file_input'
|
225
239
|
require 'carbon_ruby_sdk/models/salesforce_authentication'
|
240
|
+
require 'carbon_ruby_sdk/models/salesforce_authentication_source'
|
226
241
|
require 'carbon_ruby_sdk/models/sent_webhook_payload'
|
227
242
|
require 'carbon_ruby_sdk/models/sent_webhook_payload_object'
|
228
243
|
require 'carbon_ruby_sdk/models/sent_webhook_payload_object_additional_information'
|
229
244
|
require 'carbon_ruby_sdk/models/sent_webhook_payload_object_object_id'
|
230
245
|
require 'carbon_ruby_sdk/models/sent_webhook_request_body'
|
231
246
|
require 'carbon_ruby_sdk/models/service_now_authentication'
|
247
|
+
require 'carbon_ruby_sdk/models/service_now_authentication_source'
|
232
248
|
require 'carbon_ruby_sdk/models/service_now_credentials'
|
233
249
|
require 'carbon_ruby_sdk/models/service_now_credentials_nullable'
|
234
250
|
require 'carbon_ruby_sdk/models/service_now_file_types'
|
235
251
|
require 'carbon_ruby_sdk/models/shared_source_item_types'
|
236
252
|
require 'carbon_ruby_sdk/models/sharepoint_authentication'
|
253
|
+
require 'carbon_ruby_sdk/models/sharepoint_authentication_source'
|
237
254
|
require 'carbon_ruby_sdk/models/simple_o_auth_data_sources'
|
238
255
|
require 'carbon_ruby_sdk/models/single_chunks_and_embeddings_upload_input'
|
239
256
|
require 'carbon_ruby_sdk/models/sitemap_scrape_request'
|
240
257
|
require 'carbon_ruby_sdk/models/slack_filters'
|
241
258
|
require 'carbon_ruby_sdk/models/slack_sync_request'
|
259
|
+
require 'carbon_ruby_sdk/models/source'
|
242
260
|
require 'carbon_ruby_sdk/models/source_property'
|
243
261
|
require 'carbon_ruby_sdk/models/storage_file_formats'
|
244
262
|
require 'carbon_ruby_sdk/models/sync_directory_request'
|
@@ -287,8 +305,10 @@ require 'carbon_ruby_sdk/models/white_label_update_request'
|
|
287
305
|
require 'carbon_ruby_sdk/models/white_labeling_response'
|
288
306
|
require 'carbon_ruby_sdk/models/youtube_transcript_response'
|
289
307
|
require 'carbon_ruby_sdk/models/zendesk_authentication'
|
308
|
+
require 'carbon_ruby_sdk/models/zendesk_authentication_source'
|
290
309
|
require 'carbon_ruby_sdk/models/zendesk_file_types'
|
291
310
|
require 'carbon_ruby_sdk/models/zotero_authentication'
|
311
|
+
require 'carbon_ruby_sdk/models/zotero_authentication_source'
|
292
312
|
|
293
313
|
# APIs
|
294
314
|
require 'carbon_ruby_sdk/api/auth_api'
|
@@ -37,6 +37,17 @@ describe 'DataSourcesApi' do
|
|
37
37
|
end
|
38
38
|
end
|
39
39
|
|
40
|
+
# unit tests for query
|
41
|
+
# Data Sources
|
42
|
+
# @param organization_user_data_source_query_input
|
43
|
+
# @param [Hash] opts the optional parameters
|
44
|
+
# @return [OrganizationUserDataSourceResponse]
|
45
|
+
describe 'query test' do
|
46
|
+
it 'should work' do
|
47
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
40
51
|
# unit tests for query_user_data_sources
|
41
52
|
# User Data Sources
|
42
53
|
# @param organization_user_data_source_query_input
|
@@ -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::AzureBlobStorageTypes
|
14
|
+
describe Carbon::AzureBlobStorageTypes do
|
15
|
+
let(:instance) { Carbon::AzureBlobStorageTypes.new }
|
16
|
+
|
17
|
+
describe 'test an instance of AzureBlobStorageTypes' do
|
18
|
+
it 'should create an instance of AzureBlobStorageTypes' do
|
19
|
+
expect(instance).to be_instance_of(Carbon::AzureBlobStorageTypes)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -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::ConfigurationKeys
|
14
|
+
describe Carbon::ConfigurationKeys do
|
15
|
+
let(:instance) { Carbon::ConfigurationKeys.new }
|
16
|
+
|
17
|
+
describe 'test an instance of ConfigurationKeys' do
|
18
|
+
it 'should create an instance of ConfigurationKeys' do
|
19
|
+
expect(instance).to be_instance_of(Carbon::ConfigurationKeys)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -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::ConfluenceAuthenticationSource
|
14
|
+
describe Carbon::ConfluenceAuthenticationSource do
|
15
|
+
let(:instance) { Carbon::ConfluenceAuthenticationSource.new }
|
16
|
+
|
17
|
+
describe 'test an instance of ConfluenceAuthenticationSource' do
|
18
|
+
it 'should create an instance of ConfluenceAuthenticationSource' do
|
19
|
+
expect(instance).to be_instance_of(Carbon::ConfluenceAuthenticationSource)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -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::DataSourceExtendedInput
|
14
|
+
describe Carbon::DataSourceExtendedInput do
|
15
|
+
let(:instance) { Carbon::DataSourceExtendedInput.new }
|
16
|
+
|
17
|
+
describe 'test an instance of DataSourceExtendedInput' do
|
18
|
+
it 'should create an instance of DataSourceExtendedInput' do
|
19
|
+
expect(instance).to be_instance_of(Carbon::DataSourceExtendedInput)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -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::FreskdeskAuthenticationSource
|
14
|
+
describe Carbon::FreskdeskAuthenticationSource do
|
15
|
+
let(:instance) { Carbon::FreskdeskAuthenticationSource.new }
|
16
|
+
|
17
|
+
describe 'test an instance of FreskdeskAuthenticationSource' do
|
18
|
+
it 'should create an instance of FreskdeskAuthenticationSource' do
|
19
|
+
expect(instance).to be_instance_of(Carbon::FreskdeskAuthenticationSource)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -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::GitbookAutheticationSource
|
14
|
+
describe Carbon::GitbookAutheticationSource do
|
15
|
+
let(:instance) { Carbon::GitbookAutheticationSource.new }
|
16
|
+
|
17
|
+
describe 'test an instance of GitbookAutheticationSource' do
|
18
|
+
it 'should create an instance of GitbookAutheticationSource' do
|
19
|
+
expect(instance).to be_instance_of(Carbon::GitbookAutheticationSource)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -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::GithubAuthenticationSource
|
14
|
+
describe Carbon::GithubAuthenticationSource do
|
15
|
+
let(:instance) { Carbon::GithubAuthenticationSource.new }
|
16
|
+
|
17
|
+
describe 'test an instance of GithubAuthenticationSource' do
|
18
|
+
it 'should create an instance of GithubAuthenticationSource' do
|
19
|
+
expect(instance).to be_instance_of(Carbon::GithubAuthenticationSource)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -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::GongAuthenticationSource
|
14
|
+
describe Carbon::GongAuthenticationSource do
|
15
|
+
let(:instance) { Carbon::GongAuthenticationSource.new }
|
16
|
+
|
17
|
+
describe 'test an instance of GongAuthenticationSource' do
|
18
|
+
it 'should create an instance of GongAuthenticationSource' do
|
19
|
+
expect(instance).to be_instance_of(Carbon::GongAuthenticationSource)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -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::GoogleDriveWhiteLabelInputDataSourceType
|
14
|
+
describe Carbon::GoogleDriveWhiteLabelInputDataSourceType do
|
15
|
+
let(:instance) { Carbon::GoogleDriveWhiteLabelInputDataSourceType.new }
|
16
|
+
|
17
|
+
describe 'test an instance of GoogleDriveWhiteLabelInputDataSourceType' do
|
18
|
+
it 'should create an instance of GoogleDriveWhiteLabelInputDataSourceType' do
|
19
|
+
expect(instance).to be_instance_of(Carbon::GoogleDriveWhiteLabelInputDataSourceType)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -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::GuruAuthenticationSource
|
14
|
+
describe Carbon::GuruAuthenticationSource do
|
15
|
+
let(:instance) { Carbon::GuruAuthenticationSource.new }
|
16
|
+
|
17
|
+
describe 'test an instance of GuruAuthenticationSource' do
|
18
|
+
it 'should create an instance of GuruAuthenticationSource' do
|
19
|
+
expect(instance).to be_instance_of(Carbon::GuruAuthenticationSource)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -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::MultiModalEmbeddingGenerators
|
14
|
+
describe Carbon::MultiModalEmbeddingGenerators do
|
15
|
+
let(:instance) { Carbon::MultiModalEmbeddingGenerators.new }
|
16
|
+
|
17
|
+
describe 'test an instance of MultiModalEmbeddingGenerators' do
|
18
|
+
it 'should create an instance of MultiModalEmbeddingGenerators' do
|
19
|
+
expect(instance).to be_instance_of(Carbon::MultiModalEmbeddingGenerators)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -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::NotionAuthenticationSource
|
14
|
+
describe Carbon::NotionAuthenticationSource do
|
15
|
+
let(:instance) { Carbon::NotionAuthenticationSource.new }
|
16
|
+
|
17
|
+
describe 'test an instance of NotionAuthenticationSource' do
|
18
|
+
it 'should create an instance of NotionAuthenticationSource' do
|
19
|
+
expect(instance).to be_instance_of(Carbon::NotionAuthenticationSource)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -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::OneDriveAuthenticationSource
|
14
|
+
describe Carbon::OneDriveAuthenticationSource do
|
15
|
+
let(:instance) { Carbon::OneDriveAuthenticationSource.new }
|
16
|
+
|
17
|
+
describe 'test an instance of OneDriveAuthenticationSource' do
|
18
|
+
it 'should create an instance of OneDriveAuthenticationSource' do
|
19
|
+
expect(instance).to be_instance_of(Carbon::OneDriveAuthenticationSource)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -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::S3AuthenticationSource
|
14
|
+
describe Carbon::S3AuthenticationSource do
|
15
|
+
let(:instance) { Carbon::S3AuthenticationSource.new }
|
16
|
+
|
17
|
+
describe 'test an instance of S3AuthenticationSource' do
|
18
|
+
it 'should create an instance of S3AuthenticationSource' do
|
19
|
+
expect(instance).to be_instance_of(Carbon::S3AuthenticationSource)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -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::SalesforceAuthenticationSource
|
14
|
+
describe Carbon::SalesforceAuthenticationSource do
|
15
|
+
let(:instance) { Carbon::SalesforceAuthenticationSource.new }
|
16
|
+
|
17
|
+
describe 'test an instance of SalesforceAuthenticationSource' do
|
18
|
+
it 'should create an instance of SalesforceAuthenticationSource' do
|
19
|
+
expect(instance).to be_instance_of(Carbon::SalesforceAuthenticationSource)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -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::ServiceNowAuthenticationSource
|
14
|
+
describe Carbon::ServiceNowAuthenticationSource do
|
15
|
+
let(:instance) { Carbon::ServiceNowAuthenticationSource.new }
|
16
|
+
|
17
|
+
describe 'test an instance of ServiceNowAuthenticationSource' do
|
18
|
+
it 'should create an instance of ServiceNowAuthenticationSource' do
|
19
|
+
expect(instance).to be_instance_of(Carbon::ServiceNowAuthenticationSource)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -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::SharepointAuthenticationSource
|
14
|
+
describe Carbon::SharepointAuthenticationSource do
|
15
|
+
let(:instance) { Carbon::SharepointAuthenticationSource.new }
|
16
|
+
|
17
|
+
describe 'test an instance of SharepointAuthenticationSource' do
|
18
|
+
it 'should create an instance of SharepointAuthenticationSource' do
|
19
|
+
expect(instance).to be_instance_of(Carbon::SharepointAuthenticationSource)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -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::Source
|
14
|
+
describe Carbon::Source do
|
15
|
+
let(:instance) { Carbon::Source.new }
|
16
|
+
|
17
|
+
describe 'test an instance of Source' do
|
18
|
+
it 'should create an instance of Source' do
|
19
|
+
expect(instance).to be_instance_of(Carbon::Source)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -55,6 +55,12 @@ describe Carbon::UpdateUsersInput do
|
|
55
55
|
end
|
56
56
|
end
|
57
57
|
|
58
|
+
describe 'test attribute "auto_sync_interval"' do
|
59
|
+
it 'should work' do
|
60
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
58
64
|
describe 'test attribute "customer_ids"' do
|
59
65
|
it 'should work' do
|
60
66
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -55,4 +55,10 @@ describe Carbon::UserConfigurationNullable do
|
|
55
55
|
end
|
56
56
|
end
|
57
57
|
|
58
|
+
describe 'test attribute "auto_sync_interval"' do
|
59
|
+
it 'should work' do
|
60
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
58
64
|
end
|
@@ -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::ZendeskAuthenticationSource
|
14
|
+
describe Carbon::ZendeskAuthenticationSource do
|
15
|
+
let(:instance) { Carbon::ZendeskAuthenticationSource.new }
|
16
|
+
|
17
|
+
describe 'test an instance of ZendeskAuthenticationSource' do
|
18
|
+
it 'should create an instance of ZendeskAuthenticationSource' do
|
19
|
+
expect(instance).to be_instance_of(Carbon::ZendeskAuthenticationSource)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|