carbon_ruby_sdk 0.2.33 → 0.2.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +159 -2
  4. data/lib/carbon_ruby_sdk/api/files_api.rb +6 -2
  5. data/lib/carbon_ruby_sdk/api/integrations_api.rb +310 -4
  6. data/lib/carbon_ruby_sdk/models/authentication_property.rb +32 -6
  7. data/lib/carbon_ruby_sdk/models/azure_blob_auth_request.rb +245 -0
  8. data/lib/carbon_ruby_sdk/models/azure_blob_file_sync_input.rb +379 -0
  9. data/lib/carbon_ruby_sdk/models/azure_blob_get_file_input.rb +226 -0
  10. data/lib/carbon_ruby_sdk/models/azure_blob_storage_authentication.rb +244 -0
  11. data/lib/carbon_ruby_sdk/models/data_source_type.rb +2 -1
  12. data/lib/carbon_ruby_sdk/models/data_source_type_nullable.rb +2 -1
  13. data/lib/carbon_ruby_sdk/models/external_file_sync_statuses.rb +2 -1
  14. data/lib/carbon_ruby_sdk/models/file_sync_config.rb +16 -4
  15. data/lib/carbon_ruby_sdk/models/file_sync_config_nullable.rb +16 -4
  16. data/lib/carbon_ruby_sdk/models/gitbook_connect_request.rb +14 -4
  17. data/lib/carbon_ruby_sdk/models/gitbook_sync_request.rb +15 -5
  18. data/lib/carbon_ruby_sdk/models/one_drive_authentication.rb +250 -0
  19. data/lib/carbon_ruby_sdk/models/resync_file_query_input.rb +16 -4
  20. data/lib/carbon_ruby_sdk/models/sharepoint_authentication.rb +1 -5
  21. data/lib/carbon_ruby_sdk/version.rb +1 -1
  22. data/lib/carbon_ruby_sdk.rb +5 -0
  23. data/spec/api/integrations_api_spec.rb +24 -0
  24. data/spec/models/authentication_property_spec.rb +12 -0
  25. data/spec/models/azure_blob_auth_request_spec.rb +40 -0
  26. data/spec/models/azure_blob_file_sync_input_spec.rb +112 -0
  27. data/spec/models/azure_blob_get_file_input_spec.rb +34 -0
  28. data/spec/models/azure_blob_storage_authentication_spec.rb +40 -0
  29. data/spec/models/file_sync_config_nullable_spec.rb +6 -0
  30. data/spec/models/file_sync_config_spec.rb +6 -0
  31. data/spec/models/gitbook_connect_request_spec.rb +6 -0
  32. data/spec/models/gitbook_sync_request_spec.rb +6 -0
  33. data/spec/models/one_drive_authentication_spec.rb +46 -0
  34. data/spec/models/resync_file_query_input_spec.rb +6 -0
  35. metadata +169 -154
@@ -0,0 +1,112 @@
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::AzureBlobFileSyncInput
14
+ describe Carbon::AzureBlobFileSyncInput do
15
+ let(:instance) { Carbon::AzureBlobFileSyncInput.new }
16
+
17
+ describe 'test an instance of AzureBlobFileSyncInput' do
18
+ it 'should create an instance of AzureBlobFileSyncInput' do
19
+ expect(instance).to be_instance_of(Carbon::AzureBlobFileSyncInput)
20
+ end
21
+ end
22
+ describe 'test attribute "tags"' 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 "ids"' 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 "chunk_size"' 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
+ describe 'test attribute "chunk_overlap"' do
41
+ it 'should work' do
42
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
43
+ end
44
+ end
45
+
46
+ describe 'test attribute "skip_embedding_generation"' do
47
+ it 'should work' do
48
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
49
+ end
50
+ end
51
+
52
+ describe 'test attribute "embedding_model"' do
53
+ it 'should work' do
54
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
55
+ end
56
+ end
57
+
58
+ describe 'test attribute "generate_sparse_vectors"' 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
+
64
+ describe 'test attribute "prepend_filename_to_chunks"' do
65
+ it 'should work' do
66
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
67
+ end
68
+ end
69
+
70
+ describe 'test attribute "max_items_per_chunk"' do
71
+ it 'should work' do
72
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
73
+ end
74
+ end
75
+
76
+ describe 'test attribute "set_page_as_boundary"' do
77
+ it 'should work' do
78
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
79
+ end
80
+ end
81
+
82
+ describe 'test attribute "data_source_id"' do
83
+ it 'should work' do
84
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
85
+ end
86
+ end
87
+
88
+ describe 'test attribute "request_id"' do
89
+ it 'should work' do
90
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
91
+ end
92
+ end
93
+
94
+ describe 'test attribute "use_ocr"' do
95
+ it 'should work' do
96
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
97
+ end
98
+ end
99
+
100
+ describe 'test attribute "parse_pdf_tables_with_ocr"' do
101
+ it 'should work' do
102
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
103
+ end
104
+ end
105
+
106
+ describe 'test attribute "file_sync_config"' do
107
+ it 'should work' do
108
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
109
+ end
110
+ end
111
+
112
+ end
@@ -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::AzureBlobGetFileInput
14
+ describe Carbon::AzureBlobGetFileInput do
15
+ let(:instance) { Carbon::AzureBlobGetFileInput.new }
16
+
17
+ describe 'test an instance of AzureBlobGetFileInput' do
18
+ it 'should create an instance of AzureBlobGetFileInput' do
19
+ expect(instance).to be_instance_of(Carbon::AzureBlobGetFileInput)
20
+ end
21
+ end
22
+ describe 'test attribute "id"' 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 "container"' 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
@@ -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::AzureBlobStorageAuthentication
14
+ describe Carbon::AzureBlobStorageAuthentication do
15
+ let(:instance) { Carbon::AzureBlobStorageAuthentication.new }
16
+
17
+ describe 'test an instance of AzureBlobStorageAuthentication' do
18
+ it 'should create an instance of AzureBlobStorageAuthentication' do
19
+ expect(instance).to be_instance_of(Carbon::AzureBlobStorageAuthentication)
20
+ end
21
+ end
22
+ describe 'test attribute "source"' 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 "account_name"' 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 "account_key"' 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
@@ -61,4 +61,10 @@ describe Carbon::FileSyncConfigNullable do
61
61
  end
62
62
  end
63
63
 
64
+ describe 'test attribute "skip_file_processing"' do
65
+ it 'should work' do
66
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
67
+ end
68
+ end
69
+
64
70
  end
@@ -61,4 +61,10 @@ describe Carbon::FileSyncConfig do
61
61
  end
62
62
  end
63
63
 
64
+ describe 'test attribute "skip_file_processing"' do
65
+ it 'should work' do
66
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
67
+ end
68
+ end
69
+
64
70
  end
@@ -91,4 +91,10 @@ describe Carbon::GitbookConnectRequest do
91
91
  end
92
92
  end
93
93
 
94
+ describe 'test attribute "file_sync_config"' do
95
+ it 'should work' do
96
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
97
+ end
98
+ end
99
+
94
100
  end
@@ -79,4 +79,10 @@ describe Carbon::GitbookSyncRequest do
79
79
  end
80
80
  end
81
81
 
82
+ describe 'test attribute "file_sync_config"' do
83
+ it 'should work' do
84
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
85
+ end
86
+ end
87
+
82
88
  end
@@ -0,0 +1,46 @@
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::OneDriveAuthentication
14
+ describe Carbon::OneDriveAuthentication do
15
+ let(:instance) { Carbon::OneDriveAuthentication.new }
16
+
17
+ describe 'test an instance of OneDriveAuthentication' do
18
+ it 'should create an instance of OneDriveAuthentication' do
19
+ expect(instance).to be_instance_of(Carbon::OneDriveAuthentication)
20
+ end
21
+ end
22
+ describe 'test attribute "source"' 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 "access_token"' 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 "refresh_token"' 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
+ describe 'test attribute "tenant_name"' do
41
+ it 'should work' do
42
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
43
+ end
44
+ end
45
+
46
+ end
@@ -43,4 +43,10 @@ describe Carbon::ResyncFileQueryInput do
43
43
  end
44
44
  end
45
45
 
46
+ describe 'test attribute "skip_file_processing"' do
47
+ it 'should work' do
48
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
49
+ end
50
+ end
51
+
46
52
  end