carbon_ruby_sdk 0.2.6 → 0.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +92 -7
- data/lib/carbon_ruby_sdk/api/integrations_api.rb +261 -8
- data/lib/carbon_ruby_sdk/models/data_source_type.rb +2 -1
- data/lib/carbon_ruby_sdk/models/data_source_type_nullable.rb +2 -1
- data/lib/carbon_ruby_sdk/models/file_formats.rb +2 -1
- data/lib/carbon_ruby_sdk/models/file_formats_nullable.rb +2 -1
- data/lib/carbon_ruby_sdk/models/o_auth_url_request.rb +2 -2
- data/lib/carbon_ruby_sdk/models/simple_o_auth_data_sources.rb +2 -1
- data/lib/carbon_ruby_sdk/models/slack_filters.rb +232 -0
- data/lib/carbon_ruby_sdk/models/slack_sync_request.rb +321 -0
- data/lib/carbon_ruby_sdk/models/sync_files_request.rb +1 -1
- data/lib/carbon_ruby_sdk/models/sync_options.rb +1 -1
- data/lib/carbon_ruby_sdk/models/user_file.rb +15 -1
- data/lib/carbon_ruby_sdk/version.rb +1 -1
- data/lib/carbon_ruby_sdk.rb +2 -0
- data/spec/api/integrations_api_spec.rb +27 -0
- data/spec/models/slack_filters_spec.rb +34 -0
- data/spec/models/slack_sync_request_spec.rb +82 -0
- data/spec/models/user_file_spec.rb +6 -0
- metadata +8 -2
@@ -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::SlackFilters
|
14
|
+
describe Carbon::SlackFilters do
|
15
|
+
let(:instance) { Carbon::SlackFilters.new }
|
16
|
+
|
17
|
+
describe 'test an instance of SlackFilters' do
|
18
|
+
it 'should create an instance of SlackFilters' do
|
19
|
+
expect(instance).to be_instance_of(Carbon::SlackFilters)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
describe 'test attribute "conversation_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 "after"' 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,82 @@
|
|
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::SlackSyncRequest
|
14
|
+
describe Carbon::SlackSyncRequest do
|
15
|
+
let(:instance) { Carbon::SlackSyncRequest.new }
|
16
|
+
|
17
|
+
describe 'test an instance of SlackSyncRequest' do
|
18
|
+
it 'should create an instance of SlackSyncRequest' do
|
19
|
+
expect(instance).to be_instance_of(Carbon::SlackSyncRequest)
|
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 "filters"' 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 "data_source_id"' 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 "request_id"' 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
|
+
end
|
@@ -199,6 +199,12 @@ describe Carbon::UserFile do
|
|
199
199
|
end
|
200
200
|
end
|
201
201
|
|
202
|
+
describe 'test attribute "messages_metadata"' do
|
203
|
+
it 'should work' do
|
204
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
205
|
+
end
|
206
|
+
end
|
207
|
+
|
202
208
|
describe 'test attribute "created_at"' do
|
203
209
|
it 'should work' do
|
204
210
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
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.
|
4
|
+
version: 0.2.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Konfig
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-06-
|
11
|
+
date: 2024-06-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -200,6 +200,8 @@ files:
|
|
200
200
|
- lib/carbon_ruby_sdk/models/simple_o_auth_data_sources.rb
|
201
201
|
- lib/carbon_ruby_sdk/models/single_chunks_and_embeddings_upload_input.rb
|
202
202
|
- lib/carbon_ruby_sdk/models/sitemap_scrape_request.rb
|
203
|
+
- lib/carbon_ruby_sdk/models/slack_filters.rb
|
204
|
+
- lib/carbon_ruby_sdk/models/slack_sync_request.rb
|
203
205
|
- lib/carbon_ruby_sdk/models/source_property.rb
|
204
206
|
- lib/carbon_ruby_sdk/models/sync_directory_request.rb
|
205
207
|
- lib/carbon_ruby_sdk/models/sync_files_ids.rb
|
@@ -347,6 +349,8 @@ files:
|
|
347
349
|
- spec/models/simple_o_auth_data_sources_spec.rb
|
348
350
|
- spec/models/single_chunks_and_embeddings_upload_input_spec.rb
|
349
351
|
- spec/models/sitemap_scrape_request_spec.rb
|
352
|
+
- spec/models/slack_filters_spec.rb
|
353
|
+
- spec/models/slack_sync_request_spec.rb
|
350
354
|
- spec/models/source_property_spec.rb
|
351
355
|
- spec/models/sync_directory_request_spec.rb
|
352
356
|
- spec/models/sync_files_ids_spec.rb
|
@@ -436,6 +440,7 @@ test_files:
|
|
436
440
|
- spec/models/github_authentication_spec.rb
|
437
441
|
- spec/models/chunk_properties_nullable_spec.rb
|
438
442
|
- spec/models/gitbook_connect_request_spec.rb
|
443
|
+
- spec/models/slack_sync_request_spec.rb
|
439
444
|
- spec/models/token_response_spec.rb
|
440
445
|
- spec/models/sync_options_spec.rb
|
441
446
|
- spec/models/file_formats_spec.rb
|
@@ -523,6 +528,7 @@ test_files:
|
|
523
528
|
- spec/models/custom_credentials_type_spec.rb
|
524
529
|
- spec/models/file_formats_nullable_spec.rb
|
525
530
|
- spec/models/s3_authentication_spec.rb
|
531
|
+
- spec/models/slack_filters_spec.rb
|
526
532
|
- spec/models/file_statistics_spec.rb
|
527
533
|
- spec/models/confluence_authentication_spec.rb
|
528
534
|
- spec/models/get_embedding_documents_body_spec.rb
|