carbon_ruby_sdk 0.1.23 → 0.1.25
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +135 -9
- data/lib/carbon_ruby_sdk/api/embeddings_api.rb +2 -2
- data/lib/carbon_ruby_sdk/api/integrations_api.rb +252 -18
- data/lib/carbon_ruby_sdk/api/organizations_api.rb +92 -0
- data/lib/carbon_ruby_sdk/api/users_api.rb +2 -2
- data/lib/carbon_ruby_sdk/models/chunks_and_embeddings_upload_input.rb +4 -2
- data/lib/carbon_ruby_sdk/models/custom_credentials_type.rb +39 -0
- data/lib/carbon_ruby_sdk/models/embedding_generators.rb +2 -1
- data/lib/carbon_ruby_sdk/models/embedding_generators_nullable.rb +2 -1
- data/lib/carbon_ruby_sdk/models/external_source_items_order_by.rb +37 -0
- data/lib/carbon_ruby_sdk/models/file_statistics.rb +15 -5
- data/lib/carbon_ruby_sdk/models/file_statistics_nullable.rb +15 -5
- data/lib/carbon_ruby_sdk/models/fresh_desk_connect_request.rb +17 -5
- data/lib/carbon_ruby_sdk/models/gitbook_connect_request.rb +17 -5
- data/lib/carbon_ruby_sdk/models/github_connect_request.rb +16 -4
- data/lib/carbon_ruby_sdk/models/github_fetch_repos_request.rb +260 -0
- data/lib/carbon_ruby_sdk/models/list_data_source_items_request.rb +26 -4
- data/lib/carbon_ruby_sdk/models/o_auth_url_request.rb +18 -6
- data/lib/carbon_ruby_sdk/models/order_dir_v2.rb +36 -0
- data/lib/carbon_ruby_sdk/models/organization_response.rb +15 -1
- data/lib/carbon_ruby_sdk/models/organization_user_data_source_api.rb +19 -5
- data/lib/carbon_ruby_sdk/models/s3_auth_request.rb +16 -4
- data/lib/carbon_ruby_sdk/models/sync_files_request.rb +1 -1
- data/lib/carbon_ruby_sdk/models/sync_options.rb +17 -5
- data/lib/carbon_ruby_sdk/models/text_embedding_generators.rb +7 -1
- data/lib/carbon_ruby_sdk/models/update_organization_input.rb +216 -0
- data/lib/carbon_ruby_sdk/models/update_users_input.rb +41 -41
- data/lib/carbon_ruby_sdk/models/user_configuration.rb +268 -0
- data/lib/carbon_ruby_sdk/models/user_configuration_nullable.rb +269 -0
- data/lib/carbon_ruby_sdk/version.rb +1 -1
- data/lib/carbon_ruby_sdk.rb +7 -0
- data/spec/api/integrations_api_spec.rb +26 -0
- data/spec/api/organizations_api_spec.rb +11 -0
- data/spec/models/custom_credentials_type_spec.rb +22 -0
- data/spec/models/external_source_items_order_by_spec.rb +22 -0
- data/spec/models/file_statistics_nullable_spec.rb +6 -0
- data/spec/models/file_statistics_spec.rb +6 -0
- data/spec/models/fresh_desk_connect_request_spec.rb +6 -0
- data/spec/models/gitbook_connect_request_spec.rb +6 -0
- data/spec/models/github_connect_request_spec.rb +6 -0
- data/spec/models/github_fetch_repos_request_spec.rb +34 -0
- data/spec/models/list_data_source_items_request_spec.rb +12 -0
- data/spec/models/o_auth_url_request_spec.rb +6 -0
- data/spec/models/order_dir_v2_spec.rb +22 -0
- data/spec/models/organization_response_spec.rb +6 -0
- data/spec/models/organization_user_data_source_api_spec.rb +6 -0
- data/spec/models/s3_auth_request_spec.rb +6 -0
- data/spec/models/sync_options_spec.rb +6 -0
- data/spec/models/update_organization_input_spec.rb +28 -0
- data/spec/models/update_users_input_spec.rb +4 -4
- data/spec/models/user_configuration_nullable_spec.rb +40 -0
- data/spec/models/user_configuration_spec.rb +40 -0
- metadata +23 -2
@@ -19,25 +19,25 @@ describe Carbon::UpdateUsersInput do
|
|
19
19
|
expect(instance).to be_instance_of(Carbon::UpdateUsersInput)
|
20
20
|
end
|
21
21
|
end
|
22
|
-
describe 'test attribute "
|
22
|
+
describe 'test attribute "auto_sync_enabled_sources"' do
|
23
23
|
it 'should work' do
|
24
24
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
25
25
|
end
|
26
26
|
end
|
27
27
|
|
28
|
-
describe 'test attribute "
|
28
|
+
describe 'test attribute "max_files"' do
|
29
29
|
it 'should work' do
|
30
30
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
31
|
end
|
32
32
|
end
|
33
33
|
|
34
|
-
describe 'test attribute "
|
34
|
+
describe 'test attribute "max_files_per_upload"' do
|
35
35
|
it 'should work' do
|
36
36
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
37
37
|
end
|
38
38
|
end
|
39
39
|
|
40
|
-
describe 'test attribute "
|
40
|
+
describe 'test attribute "customer_ids"' do
|
41
41
|
it 'should work' do
|
42
42
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
43
43
|
end
|
@@ -0,0 +1,40 @@
|
|
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::UserConfigurationNullable
|
14
|
+
describe Carbon::UserConfigurationNullable do
|
15
|
+
let(:instance) { Carbon::UserConfigurationNullable.new }
|
16
|
+
|
17
|
+
describe 'test an instance of UserConfigurationNullable' do
|
18
|
+
it 'should create an instance of UserConfigurationNullable' do
|
19
|
+
expect(instance).to be_instance_of(Carbon::UserConfigurationNullable)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
describe 'test attribute "auto_sync_enabled_sources"' 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 "max_files"' 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
|
+
describe 'test attribute "max_files_per_upload"' do
|
35
|
+
it 'should work' do
|
36
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
end
|
@@ -0,0 +1,40 @@
|
|
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::UserConfiguration
|
14
|
+
describe Carbon::UserConfiguration do
|
15
|
+
let(:instance) { Carbon::UserConfiguration.new }
|
16
|
+
|
17
|
+
describe 'test an instance of UserConfiguration' do
|
18
|
+
it 'should create an instance of UserConfiguration' do
|
19
|
+
expect(instance).to be_instance_of(Carbon::UserConfiguration)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
describe 'test attribute "auto_sync_enabled_sources"' 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 "max_files"' 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
|
+
describe 'test attribute "max_files_per_upload"' do
|
35
|
+
it 'should work' do
|
36
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
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.
|
4
|
+
version: 0.1.25
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Konfig
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-05-07 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/confluence_authentication.rb
|
110
110
|
- lib/carbon_ruby_sdk/models/connect_data_source_input.rb
|
111
111
|
- lib/carbon_ruby_sdk/models/connect_data_source_response.rb
|
112
|
+
- lib/carbon_ruby_sdk/models/custom_credentials_type.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
|
@@ -129,6 +130,7 @@ files:
|
|
129
130
|
- lib/carbon_ruby_sdk/models/embeddings_and_chunks_response.rb
|
130
131
|
- lib/carbon_ruby_sdk/models/external_file_sync_statuses.rb
|
131
132
|
- lib/carbon_ruby_sdk/models/external_source_item.rb
|
133
|
+
- lib/carbon_ruby_sdk/models/external_source_items_order_by.rb
|
132
134
|
- lib/carbon_ruby_sdk/models/fetch_urls_response.rb
|
133
135
|
- lib/carbon_ruby_sdk/models/file_content_types.rb
|
134
136
|
- lib/carbon_ruby_sdk/models/file_content_types_nullable.rb
|
@@ -145,6 +147,7 @@ files:
|
|
145
147
|
- lib/carbon_ruby_sdk/models/gitbook_sync_request.rb
|
146
148
|
- lib/carbon_ruby_sdk/models/github_authentication.rb
|
147
149
|
- lib/carbon_ruby_sdk/models/github_connect_request.rb
|
150
|
+
- lib/carbon_ruby_sdk/models/github_fetch_repos_request.rb
|
148
151
|
- lib/carbon_ruby_sdk/models/gmail_sync_input.rb
|
149
152
|
- lib/carbon_ruby_sdk/models/http_validation_error.rb
|
150
153
|
- lib/carbon_ruby_sdk/models/hybrid_search_tuning_params.rb
|
@@ -162,6 +165,7 @@ files:
|
|
162
165
|
- lib/carbon_ruby_sdk/models/o_auth_authentication.rb
|
163
166
|
- lib/carbon_ruby_sdk/models/o_auth_url_request.rb
|
164
167
|
- lib/carbon_ruby_sdk/models/order_dir.rb
|
168
|
+
- lib/carbon_ruby_sdk/models/order_dir_v2.rb
|
165
169
|
- lib/carbon_ruby_sdk/models/organization_response.rb
|
166
170
|
- lib/carbon_ruby_sdk/models/organization_user_data_source_api.rb
|
167
171
|
- lib/carbon_ruby_sdk/models/organization_user_data_source_filters.rb
|
@@ -201,8 +205,11 @@ files:
|
|
201
205
|
- lib/carbon_ruby_sdk/models/tags1.rb
|
202
206
|
- lib/carbon_ruby_sdk/models/text_embedding_generators.rb
|
203
207
|
- lib/carbon_ruby_sdk/models/token_response.rb
|
208
|
+
- lib/carbon_ruby_sdk/models/update_organization_input.rb
|
204
209
|
- lib/carbon_ruby_sdk/models/update_users_input.rb
|
205
210
|
- lib/carbon_ruby_sdk/models/upload_file_from_url_input.rb
|
211
|
+
- lib/carbon_ruby_sdk/models/user_configuration.rb
|
212
|
+
- lib/carbon_ruby_sdk/models/user_configuration_nullable.rb
|
206
213
|
- lib/carbon_ruby_sdk/models/user_file.rb
|
207
214
|
- lib/carbon_ruby_sdk/models/user_files_v2.rb
|
208
215
|
- lib/carbon_ruby_sdk/models/user_request_content.rb
|
@@ -244,6 +251,7 @@ files:
|
|
244
251
|
- spec/models/confluence_authentication_spec.rb
|
245
252
|
- spec/models/connect_data_source_input_spec.rb
|
246
253
|
- spec/models/connect_data_source_response_spec.rb
|
254
|
+
- spec/models/custom_credentials_type_spec.rb
|
247
255
|
- spec/models/data_source_last_sync_actions_spec.rb
|
248
256
|
- spec/models/data_source_sync_statuses_spec.rb
|
249
257
|
- spec/models/data_source_type_nullable_spec.rb
|
@@ -264,6 +272,7 @@ files:
|
|
264
272
|
- spec/models/embeddings_and_chunks_response_spec.rb
|
265
273
|
- spec/models/external_file_sync_statuses_spec.rb
|
266
274
|
- spec/models/external_source_item_spec.rb
|
275
|
+
- spec/models/external_source_items_order_by_spec.rb
|
267
276
|
- spec/models/fetch_urls_response_spec.rb
|
268
277
|
- spec/models/file_content_types_nullable_spec.rb
|
269
278
|
- spec/models/file_content_types_spec.rb
|
@@ -280,6 +289,7 @@ files:
|
|
280
289
|
- spec/models/gitbook_sync_request_spec.rb
|
281
290
|
- spec/models/github_authentication_spec.rb
|
282
291
|
- spec/models/github_connect_request_spec.rb
|
292
|
+
- spec/models/github_fetch_repos_request_spec.rb
|
283
293
|
- spec/models/gmail_sync_input_spec.rb
|
284
294
|
- spec/models/http_validation_error_spec.rb
|
285
295
|
- spec/models/hybrid_search_tuning_params_nullable_spec.rb
|
@@ -297,6 +307,7 @@ files:
|
|
297
307
|
- spec/models/o_auth_authentication_spec.rb
|
298
308
|
- spec/models/o_auth_url_request_spec.rb
|
299
309
|
- spec/models/order_dir_spec.rb
|
310
|
+
- spec/models/order_dir_v2_spec.rb
|
300
311
|
- spec/models/organization_response_spec.rb
|
301
312
|
- spec/models/organization_user_data_source_api_spec.rb
|
302
313
|
- spec/models/organization_user_data_source_filters_spec.rb
|
@@ -336,8 +347,11 @@ files:
|
|
336
347
|
- spec/models/tags_spec.rb
|
337
348
|
- spec/models/text_embedding_generators_spec.rb
|
338
349
|
- spec/models/token_response_spec.rb
|
350
|
+
- spec/models/update_organization_input_spec.rb
|
339
351
|
- spec/models/update_users_input_spec.rb
|
340
352
|
- spec/models/upload_file_from_url_input_spec.rb
|
353
|
+
- spec/models/user_configuration_nullable_spec.rb
|
354
|
+
- spec/models/user_configuration_spec.rb
|
341
355
|
- spec/models/user_file_spec.rb
|
342
356
|
- spec/models/user_files_v2_spec.rb
|
343
357
|
- spec/models/user_request_content_spec.rb
|
@@ -406,6 +420,7 @@ test_files:
|
|
406
420
|
- spec/models/data_source_type_spec.rb
|
407
421
|
- spec/models/sync_files_request_spec.rb
|
408
422
|
- spec/models/github_connect_request_spec.rb
|
423
|
+
- spec/models/github_fetch_repos_request_spec.rb
|
409
424
|
- spec/models/list_data_source_items_response_spec.rb
|
410
425
|
- spec/models/github_authentication_spec.rb
|
411
426
|
- spec/models/chunk_properties_nullable_spec.rb
|
@@ -413,6 +428,7 @@ test_files:
|
|
413
428
|
- spec/models/token_response_spec.rb
|
414
429
|
- spec/models/sync_options_spec.rb
|
415
430
|
- spec/models/file_formats_spec.rb
|
431
|
+
- spec/models/update_organization_input_spec.rb
|
416
432
|
- spec/models/user_request_content_spec.rb
|
417
433
|
- spec/models/gmail_sync_input_spec.rb
|
418
434
|
- spec/models/delete_files_query_input_spec.rb
|
@@ -423,6 +439,7 @@ test_files:
|
|
423
439
|
- spec/models/youtube_transcript_response_spec.rb
|
424
440
|
- spec/models/o_auth_authentication_spec.rb
|
425
441
|
- spec/models/file_content_types_nullable_spec.rb
|
442
|
+
- spec/models/user_configuration_spec.rb
|
426
443
|
- spec/models/zendesk_authentication_spec.rb
|
427
444
|
- spec/models/connect_data_source_response_spec.rb
|
428
445
|
- spec/models/simple_o_auth_data_sources_spec.rb
|
@@ -477,6 +494,7 @@ test_files:
|
|
477
494
|
- spec/models/embedding_and_chunk_spec.rb
|
478
495
|
- spec/models/tags_spec.rb
|
479
496
|
- spec/models/embeddings_and_chunks_query_input_spec.rb
|
497
|
+
- spec/models/external_source_items_order_by_spec.rb
|
480
498
|
- spec/models/auto_sync_enabled_sources_property_spec.rb
|
481
499
|
- spec/models/pagination_spec.rb
|
482
500
|
- spec/models/generic_success_response_spec.rb
|
@@ -488,6 +506,7 @@ test_files:
|
|
488
506
|
- spec/models/chunks_and_embeddings_upload_input_spec.rb
|
489
507
|
- spec/models/organization_user_file_tag_create_spec.rb
|
490
508
|
- spec/models/organization_user_data_source_order_by_columns_spec.rb
|
509
|
+
- spec/models/custom_credentials_type_spec.rb
|
491
510
|
- spec/models/file_formats_nullable_spec.rb
|
492
511
|
- spec/models/s3_authentication_spec.rb
|
493
512
|
- spec/models/file_statistics_spec.rb
|
@@ -509,10 +528,12 @@ test_files:
|
|
509
528
|
- spec/models/outh_url_response_spec.rb
|
510
529
|
- spec/models/sync_directory_request_spec.rb
|
511
530
|
- spec/models/file_statistics_nullable_spec.rb
|
531
|
+
- spec/models/user_configuration_nullable_spec.rb
|
512
532
|
- spec/models/embeddings_and_chunks_order_by_columns_spec.rb
|
513
533
|
- spec/models/webhook_query_response_spec.rb
|
514
534
|
- spec/models/user_file_spec.rb
|
515
535
|
- spec/models/delete_files_v2_query_input_spec.rb
|
536
|
+
- spec/models/order_dir_v2_spec.rb
|
516
537
|
- spec/models/raw_text_input_spec.rb
|
517
538
|
- spec/models/salesforce_authentication_spec.rb
|
518
539
|
- spec/spec_helper.rb
|