carbon_ruby_sdk 0.2.16 → 0.2.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +16 -20
- data/README.md +28 -7
- data/lib/carbon_ruby_sdk/api/embeddings_api.rb +6 -2
- data/lib/carbon_ruby_sdk/api/files_api.rb +15 -4
- data/lib/carbon_ruby_sdk/api/integrations_api.rb +8 -8
- data/lib/carbon_ruby_sdk/models/file_sync_config.rb +11 -1
- data/lib/carbon_ruby_sdk/models/file_sync_config_nullable.rb +11 -1
- data/lib/carbon_ruby_sdk/models/get_embedding_documents_body.rb +18 -5
- data/lib/carbon_ruby_sdk/models/o_auth_url_request.rb +2 -2
- data/lib/carbon_ruby_sdk/models/object_type.rb +42 -0
- data/lib/carbon_ruby_sdk/models/organization_user_files_to_sync_filters.rb +18 -5
- data/lib/carbon_ruby_sdk/models/sent_webhook_payload.rb +276 -0
- data/lib/carbon_ruby_sdk/models/sent_webhook_payload_object.rb +235 -0
- data/lib/carbon_ruby_sdk/models/sent_webhook_payload_object_additional_information.rb +101 -0
- data/lib/carbon_ruby_sdk/models/sent_webhook_payload_object_object_id.rb +103 -0
- data/lib/carbon_ruby_sdk/models/sent_webhook_request_body.rb +215 -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/transcription_service.rb +36 -0
- data/lib/carbon_ruby_sdk/models/transcription_service_nullable.rb +36 -0
- data/lib/carbon_ruby_sdk/models/upload_file_from_url_input.rb +11 -1
- data/lib/carbon_ruby_sdk/version.rb +1 -1
- data/lib/carbon_ruby_sdk.rb +8 -0
- data/spec/api/files_api_spec.rb +1 -0
- data/spec/models/file_sync_config_nullable_spec.rb +6 -0
- data/spec/models/file_sync_config_spec.rb +6 -0
- data/spec/models/get_embedding_documents_body_spec.rb +6 -0
- data/spec/models/object_type_spec.rb +22 -0
- data/spec/models/organization_user_files_to_sync_filters_spec.rb +6 -0
- data/spec/models/sent_webhook_payload_object_additional_information_spec.rb +25 -0
- data/spec/models/sent_webhook_payload_object_object_id_spec.rb +25 -0
- data/spec/models/sent_webhook_payload_object_spec.rb +40 -0
- data/spec/models/sent_webhook_payload_spec.rb +50 -0
- data/spec/models/sent_webhook_request_body_spec.rb +28 -0
- data/spec/models/transcription_service_nullable_spec.rb +22 -0
- data/spec/models/transcription_service_spec.rb +22 -0
- data/spec/models/upload_file_from_url_input_spec.rb +6 -0
- metadata +27 -3
@@ -0,0 +1,36 @@
|
|
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 TranscriptionService
|
14
|
+
ASSEMBLYAI = "assemblyai".freeze
|
15
|
+
DEEPGRAM = "deepgram".freeze
|
16
|
+
|
17
|
+
def self.all_vars
|
18
|
+
@all_vars ||= [ASSEMBLYAI, DEEPGRAM].freeze
|
19
|
+
end
|
20
|
+
|
21
|
+
# Builds the enum from string
|
22
|
+
# @param [String] The enum value in the form of the string
|
23
|
+
# @return [String] The enum value
|
24
|
+
def self.build_from_hash(value)
|
25
|
+
new.build_from_hash(value)
|
26
|
+
end
|
27
|
+
|
28
|
+
# Builds the enum from string
|
29
|
+
# @param [String] The enum value in the form of the string
|
30
|
+
# @return [String] The enum value
|
31
|
+
def build_from_hash(value)
|
32
|
+
return value if TranscriptionService.all_vars.include?(value)
|
33
|
+
raise "Invalid ENUM value #{value} for class #TranscriptionService"
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1,36 @@
|
|
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 TranscriptionServiceNullable
|
14
|
+
ASSEMBLYAI = "assemblyai".freeze
|
15
|
+
DEEPGRAM = "deepgram".freeze
|
16
|
+
|
17
|
+
def self.all_vars
|
18
|
+
@all_vars ||= [ASSEMBLYAI, DEEPGRAM].freeze
|
19
|
+
end
|
20
|
+
|
21
|
+
# Builds the enum from string
|
22
|
+
# @param [String] The enum value in the form of the string
|
23
|
+
# @return [String] The enum value
|
24
|
+
def self.build_from_hash(value)
|
25
|
+
new.build_from_hash(value)
|
26
|
+
end
|
27
|
+
|
28
|
+
# Builds the enum from string
|
29
|
+
# @param [String] The enum value in the form of the string
|
30
|
+
# @return [String] The enum value
|
31
|
+
def build_from_hash(value)
|
32
|
+
return value if TranscriptionServiceNullable.all_vars.include?(value)
|
33
|
+
raise "Invalid ENUM value #{value} for class #TranscriptionServiceNullable"
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -38,6 +38,8 @@ module Carbon
|
|
38
38
|
|
39
39
|
attr_accessor :detect_audio_language
|
40
40
|
|
41
|
+
attr_accessor :transcription_service
|
42
|
+
|
41
43
|
attr_accessor :media_type
|
42
44
|
|
43
45
|
attr_accessor :split_rows
|
@@ -58,6 +60,7 @@ module Carbon
|
|
58
60
|
:'max_items_per_chunk' => :'max_items_per_chunk',
|
59
61
|
:'parse_pdf_tables_with_ocr' => :'parse_pdf_tables_with_ocr',
|
60
62
|
:'detect_audio_language' => :'detect_audio_language',
|
63
|
+
:'transcription_service' => :'transcription_service',
|
61
64
|
:'media_type' => :'media_type',
|
62
65
|
:'split_rows' => :'split_rows'
|
63
66
|
}
|
@@ -84,6 +87,7 @@ module Carbon
|
|
84
87
|
:'max_items_per_chunk' => :'Integer',
|
85
88
|
:'parse_pdf_tables_with_ocr' => :'Boolean',
|
86
89
|
:'detect_audio_language' => :'Boolean',
|
90
|
+
:'transcription_service' => :'TranscriptionServiceNullable',
|
87
91
|
:'media_type' => :'FileContentTypesNullable',
|
88
92
|
:'split_rows' => :'Boolean'
|
89
93
|
}
|
@@ -96,6 +100,7 @@ module Carbon
|
|
96
100
|
:'chunk_size',
|
97
101
|
:'chunk_overlap',
|
98
102
|
:'max_items_per_chunk',
|
103
|
+
:'transcription_service',
|
99
104
|
:'media_type',
|
100
105
|
])
|
101
106
|
end
|
@@ -183,6 +188,10 @@ module Carbon
|
|
183
188
|
self.detect_audio_language = false
|
184
189
|
end
|
185
190
|
|
191
|
+
if attributes.key?(:'transcription_service')
|
192
|
+
self.transcription_service = attributes[:'transcription_service']
|
193
|
+
end
|
194
|
+
|
186
195
|
if attributes.key?(:'media_type')
|
187
196
|
self.media_type = attributes[:'media_type']
|
188
197
|
end
|
@@ -230,6 +239,7 @@ module Carbon
|
|
230
239
|
max_items_per_chunk == o.max_items_per_chunk &&
|
231
240
|
parse_pdf_tables_with_ocr == o.parse_pdf_tables_with_ocr &&
|
232
241
|
detect_audio_language == o.detect_audio_language &&
|
242
|
+
transcription_service == o.transcription_service &&
|
233
243
|
media_type == o.media_type &&
|
234
244
|
split_rows == o.split_rows
|
235
245
|
end
|
@@ -243,7 +253,7 @@ module Carbon
|
|
243
253
|
# Calculates hash code according to all attributes.
|
244
254
|
# @return [Integer] Hash code
|
245
255
|
def hash
|
246
|
-
[url, file_name, chunk_size, chunk_overlap, skip_embedding_generation, set_page_as_boundary, embedding_model, generate_sparse_vectors, use_textract, prepend_filename_to_chunks, max_items_per_chunk, parse_pdf_tables_with_ocr, detect_audio_language, media_type, split_rows].hash
|
256
|
+
[url, file_name, chunk_size, chunk_overlap, skip_embedding_generation, set_page_as_boundary, embedding_model, generate_sparse_vectors, use_textract, prepend_filename_to_chunks, max_items_per_chunk, parse_pdf_tables_with_ocr, detect_audio_language, transcription_service, media_type, split_rows].hash
|
247
257
|
end
|
248
258
|
|
249
259
|
# Builds the object from hash
|
data/lib/carbon_ruby_sdk.rb
CHANGED
@@ -92,6 +92,7 @@ require 'carbon_ruby_sdk/models/modify_user_configuration_input'
|
|
92
92
|
require 'carbon_ruby_sdk/models/notion_authentication'
|
93
93
|
require 'carbon_ruby_sdk/models/o_auth_authentication'
|
94
94
|
require 'carbon_ruby_sdk/models/o_auth_url_request'
|
95
|
+
require 'carbon_ruby_sdk/models/object_type'
|
95
96
|
require 'carbon_ruby_sdk/models/order_dir'
|
96
97
|
require 'carbon_ruby_sdk/models/order_dir_v2'
|
97
98
|
require 'carbon_ruby_sdk/models/organization_response'
|
@@ -122,6 +123,11 @@ require 'carbon_ruby_sdk/models/s3_authentication'
|
|
122
123
|
require 'carbon_ruby_sdk/models/s3_file_sync_input'
|
123
124
|
require 'carbon_ruby_sdk/models/s3_get_file_input'
|
124
125
|
require 'carbon_ruby_sdk/models/salesforce_authentication'
|
126
|
+
require 'carbon_ruby_sdk/models/sent_webhook_payload'
|
127
|
+
require 'carbon_ruby_sdk/models/sent_webhook_payload_object'
|
128
|
+
require 'carbon_ruby_sdk/models/sent_webhook_payload_object_additional_information'
|
129
|
+
require 'carbon_ruby_sdk/models/sent_webhook_payload_object_object_id'
|
130
|
+
require 'carbon_ruby_sdk/models/sent_webhook_request_body'
|
125
131
|
require 'carbon_ruby_sdk/models/sharepoint_authentication'
|
126
132
|
require 'carbon_ruby_sdk/models/simple_o_auth_data_sources'
|
127
133
|
require 'carbon_ruby_sdk/models/single_chunks_and_embeddings_upload_input'
|
@@ -137,6 +143,8 @@ require 'carbon_ruby_sdk/models/tags'
|
|
137
143
|
require 'carbon_ruby_sdk/models/tags1'
|
138
144
|
require 'carbon_ruby_sdk/models/text_embedding_generators'
|
139
145
|
require 'carbon_ruby_sdk/models/token_response'
|
146
|
+
require 'carbon_ruby_sdk/models/transcription_service'
|
147
|
+
require 'carbon_ruby_sdk/models/transcription_service_nullable'
|
140
148
|
require 'carbon_ruby_sdk/models/update_organization_input'
|
141
149
|
require 'carbon_ruby_sdk/models/update_users_input'
|
142
150
|
require 'carbon_ruby_sdk/models/upload_file_from_url_input'
|
data/spec/api/files_api_spec.rb
CHANGED
@@ -158,6 +158,7 @@ describe 'FilesApi' do
|
|
158
158
|
# @option opts [Integer] :max_items_per_chunk Number of objects per chunk. For csv, tsv, xlsx, and json files only.
|
159
159
|
# @option opts [Boolean] :parse_pdf_tables_with_ocr Whether to use rich table parsing when `use_ocr` is enabled.
|
160
160
|
# @option opts [Boolean] :detect_audio_language Whether to automatically detect the language of the uploaded audio file.
|
161
|
+
# @option opts [TranscriptionServiceNullable] :transcription_service The transcription service to use for audio files. If no service is specified, 'deepgram' will be used.
|
161
162
|
# @option opts [FileContentTypesNullable] :media_type The media type of the file. If not provided, it will be inferred from the file extension.
|
162
163
|
# @option opts [Boolean] :split_rows Whether to split tabular rows into chunks. Currently only valid for CSV, TSV, and XLSX files.
|
163
164
|
# @return [UserFile]
|
@@ -37,6 +37,12 @@ describe Carbon::FileSyncConfigNullable do
|
|
37
37
|
end
|
38
38
|
end
|
39
39
|
|
40
|
+
describe 'test attribute "transcription_service"' 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
|
+
|
40
46
|
describe 'test attribute "split_rows"' do
|
41
47
|
it 'should work' do
|
42
48
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -37,6 +37,12 @@ describe Carbon::FileSyncConfig do
|
|
37
37
|
end
|
38
38
|
end
|
39
39
|
|
40
|
+
describe 'test attribute "transcription_service"' 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
|
+
|
40
46
|
describe 'test attribute "split_rows"' do
|
41
47
|
it 'should work' do
|
42
48
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -127,4 +127,10 @@ describe Carbon::GetEmbeddingDocumentsBody do
|
|
127
127
|
end
|
128
128
|
end
|
129
129
|
|
130
|
+
describe 'test attribute "file_types_at_source"' do
|
131
|
+
it 'should work' do
|
132
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
133
|
+
end
|
134
|
+
end
|
135
|
+
|
130
136
|
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::ObjectType
|
14
|
+
describe Carbon::ObjectType do
|
15
|
+
let(:instance) { Carbon::ObjectType.new }
|
16
|
+
|
17
|
+
describe 'test an instance of ObjectType' do
|
18
|
+
it 'should create an instance of ObjectType' do
|
19
|
+
expect(instance).to be_instance_of(Carbon::ObjectType)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -121,4 +121,10 @@ describe Carbon::OrganizationUserFilesToSyncFilters do
|
|
121
121
|
end
|
122
122
|
end
|
123
123
|
|
124
|
+
describe 'test attribute "file_types_at_source"' do
|
125
|
+
it 'should work' do
|
126
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
127
|
+
end
|
128
|
+
end
|
129
|
+
|
124
130
|
end
|
@@ -0,0 +1,25 @@
|
|
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::SentWebhookPayloadObjectAdditionalInformation
|
14
|
+
describe Carbon::SentWebhookPayloadObjectAdditionalInformation do
|
15
|
+
describe '.openapi_one_of' do
|
16
|
+
it 'lists the items referenced in the oneOf array' do
|
17
|
+
expect(described_class.openapi_one_of).to_not be_empty
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
describe '.build' do
|
22
|
+
it 'returns the correct model' do
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,25 @@
|
|
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::SentWebhookPayloadObjectObjectId
|
14
|
+
describe Carbon::SentWebhookPayloadObjectObjectId do
|
15
|
+
describe '.openapi_one_of' do
|
16
|
+
it 'lists the items referenced in the oneOf array' do
|
17
|
+
expect(described_class.openapi_one_of).to_not be_empty
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
describe '.build' do
|
22
|
+
it 'returns the correct model' do
|
23
|
+
end
|
24
|
+
end
|
25
|
+
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::SentWebhookPayloadObject
|
14
|
+
describe Carbon::SentWebhookPayloadObject do
|
15
|
+
let(:instance) { Carbon::SentWebhookPayloadObject.new }
|
16
|
+
|
17
|
+
describe 'test an instance of SentWebhookPayloadObject' do
|
18
|
+
it 'should create an instance of SentWebhookPayloadObject' do
|
19
|
+
expect(instance).to be_instance_of(Carbon::SentWebhookPayloadObject)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
describe 'test attribute "object_type"' 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 "object_id"' 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 "additional_information"' 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,50 @@
|
|
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::SentWebhookPayload
|
14
|
+
describe Carbon::SentWebhookPayload do
|
15
|
+
let(:instance) { Carbon::SentWebhookPayload.new }
|
16
|
+
|
17
|
+
describe 'test an instance of SentWebhookPayload' do
|
18
|
+
it 'should create an instance of SentWebhookPayload' do
|
19
|
+
expect(instance).to be_instance_of(Carbon::SentWebhookPayload)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
describe 'test attribute "webhook_type"' do
|
23
|
+
it 'should work' do
|
24
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
25
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["ADD", "ALL_UPLOADED_FILES_QUEUED", "CANCEL", "CHECKUP", "DATA_SOURCE_READY", "FILES_CREATED", "FILES_SKIPPED", "FILE_DELETED", "FILE_ERROR", "FILE_READY", "FILE_STATISTICS_AGGREGATED", "FILE_SYNC_LIMIT_REACHED", "ORGANIZATION_USER_DELETED", "RATE_LIMIT_ERROR", "REVOKE", "SPARSE_VECTOR_QUEUE_STATUS", "UPDATE", "WEBPAGE_ERROR", "WEBPAGE_READY", "WEBSCRAPE_URLS_READY"])
|
26
|
+
# validator.allowable_values.each do |value|
|
27
|
+
# expect { instance.webhook_type = value }.not_to raise_error
|
28
|
+
# end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
describe 'test attribute "customer_id"' do
|
33
|
+
it 'should work' do
|
34
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
describe 'test attribute "timestamp"' do
|
39
|
+
it 'should work' do
|
40
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
describe 'test attribute "object"' do
|
45
|
+
it 'should work' do
|
46
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
end
|
@@ -0,0 +1,28 @@
|
|
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::SentWebhookRequestBody
|
14
|
+
describe Carbon::SentWebhookRequestBody do
|
15
|
+
let(:instance) { Carbon::SentWebhookRequestBody.new }
|
16
|
+
|
17
|
+
describe 'test an instance of SentWebhookRequestBody' do
|
18
|
+
it 'should create an instance of SentWebhookRequestBody' do
|
19
|
+
expect(instance).to be_instance_of(Carbon::SentWebhookRequestBody)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
describe 'test attribute "payload"' 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
|
+
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::TranscriptionServiceNullable
|
14
|
+
describe Carbon::TranscriptionServiceNullable do
|
15
|
+
let(:instance) { Carbon::TranscriptionServiceNullable.new }
|
16
|
+
|
17
|
+
describe 'test an instance of TranscriptionServiceNullable' do
|
18
|
+
it 'should create an instance of TranscriptionServiceNullable' do
|
19
|
+
expect(instance).to be_instance_of(Carbon::TranscriptionServiceNullable)
|
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::TranscriptionService
|
14
|
+
describe Carbon::TranscriptionService do
|
15
|
+
let(:instance) { Carbon::TranscriptionService.new }
|
16
|
+
|
17
|
+
describe 'test an instance of TranscriptionService' do
|
18
|
+
it 'should create an instance of TranscriptionService' do
|
19
|
+
expect(instance).to be_instance_of(Carbon::TranscriptionService)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -97,6 +97,12 @@ describe Carbon::UploadFileFromUrlInput do
|
|
97
97
|
end
|
98
98
|
end
|
99
99
|
|
100
|
+
describe 'test attribute "transcription_service"' 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
|
+
|
100
106
|
describe 'test attribute "media_type"' do
|
101
107
|
it 'should work' do
|
102
108
|
# 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.18
|
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-08-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -174,6 +174,7 @@ files:
|
|
174
174
|
- lib/carbon_ruby_sdk/models/notion_authentication.rb
|
175
175
|
- lib/carbon_ruby_sdk/models/o_auth_authentication.rb
|
176
176
|
- lib/carbon_ruby_sdk/models/o_auth_url_request.rb
|
177
|
+
- lib/carbon_ruby_sdk/models/object_type.rb
|
177
178
|
- lib/carbon_ruby_sdk/models/order_dir.rb
|
178
179
|
- lib/carbon_ruby_sdk/models/order_dir_v2.rb
|
179
180
|
- lib/carbon_ruby_sdk/models/organization_response.rb
|
@@ -204,6 +205,11 @@ files:
|
|
204
205
|
- lib/carbon_ruby_sdk/models/s3_file_sync_input.rb
|
205
206
|
- lib/carbon_ruby_sdk/models/s3_get_file_input.rb
|
206
207
|
- lib/carbon_ruby_sdk/models/salesforce_authentication.rb
|
208
|
+
- lib/carbon_ruby_sdk/models/sent_webhook_payload.rb
|
209
|
+
- lib/carbon_ruby_sdk/models/sent_webhook_payload_object.rb
|
210
|
+
- lib/carbon_ruby_sdk/models/sent_webhook_payload_object_additional_information.rb
|
211
|
+
- lib/carbon_ruby_sdk/models/sent_webhook_payload_object_object_id.rb
|
212
|
+
- lib/carbon_ruby_sdk/models/sent_webhook_request_body.rb
|
207
213
|
- lib/carbon_ruby_sdk/models/sharepoint_authentication.rb
|
208
214
|
- lib/carbon_ruby_sdk/models/simple_o_auth_data_sources.rb
|
209
215
|
- lib/carbon_ruby_sdk/models/single_chunks_and_embeddings_upload_input.rb
|
@@ -219,6 +225,8 @@ files:
|
|
219
225
|
- lib/carbon_ruby_sdk/models/tags1.rb
|
220
226
|
- lib/carbon_ruby_sdk/models/text_embedding_generators.rb
|
221
227
|
- lib/carbon_ruby_sdk/models/token_response.rb
|
228
|
+
- lib/carbon_ruby_sdk/models/transcription_service.rb
|
229
|
+
- lib/carbon_ruby_sdk/models/transcription_service_nullable.rb
|
222
230
|
- lib/carbon_ruby_sdk/models/update_organization_input.rb
|
223
231
|
- lib/carbon_ruby_sdk/models/update_users_input.rb
|
224
232
|
- lib/carbon_ruby_sdk/models/upload_file_from_url_input.rb
|
@@ -335,6 +343,7 @@ files:
|
|
335
343
|
- spec/models/notion_authentication_spec.rb
|
336
344
|
- spec/models/o_auth_authentication_spec.rb
|
337
345
|
- spec/models/o_auth_url_request_spec.rb
|
346
|
+
- spec/models/object_type_spec.rb
|
338
347
|
- spec/models/order_dir_spec.rb
|
339
348
|
- spec/models/order_dir_v2_spec.rb
|
340
349
|
- spec/models/organization_response_spec.rb
|
@@ -365,6 +374,11 @@ files:
|
|
365
374
|
- spec/models/s3_file_sync_input_spec.rb
|
366
375
|
- spec/models/s3_get_file_input_spec.rb
|
367
376
|
- spec/models/salesforce_authentication_spec.rb
|
377
|
+
- spec/models/sent_webhook_payload_object_additional_information_spec.rb
|
378
|
+
- spec/models/sent_webhook_payload_object_object_id_spec.rb
|
379
|
+
- spec/models/sent_webhook_payload_object_spec.rb
|
380
|
+
- spec/models/sent_webhook_payload_spec.rb
|
381
|
+
- spec/models/sent_webhook_request_body_spec.rb
|
368
382
|
- spec/models/sharepoint_authentication_spec.rb
|
369
383
|
- spec/models/simple_o_auth_data_sources_spec.rb
|
370
384
|
- spec/models/single_chunks_and_embeddings_upload_input_spec.rb
|
@@ -380,6 +394,8 @@ files:
|
|
380
394
|
- spec/models/tags_spec.rb
|
381
395
|
- spec/models/text_embedding_generators_spec.rb
|
382
396
|
- spec/models/token_response_spec.rb
|
397
|
+
- spec/models/transcription_service_nullable_spec.rb
|
398
|
+
- spec/models/transcription_service_spec.rb
|
383
399
|
- spec/models/update_organization_input_spec.rb
|
384
400
|
- spec/models/update_users_input_spec.rb
|
385
401
|
- spec/models/upload_file_from_url_input_spec.rb
|
@@ -428,7 +444,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
428
444
|
- !ruby/object:Gem::Version
|
429
445
|
version: '0'
|
430
446
|
requirements: []
|
431
|
-
rubygems_version: 3.
|
447
|
+
rubygems_version: 3.4.10
|
432
448
|
signing_key:
|
433
449
|
specification_version: 4
|
434
450
|
summary: Carbon Ruby Gem
|
@@ -452,6 +468,7 @@ test_files:
|
|
452
468
|
- spec/models/order_dir_spec.rb
|
453
469
|
- spec/models/webhook_status_spec.rb
|
454
470
|
- spec/models/external_source_item_spec.rb
|
471
|
+
- spec/models/transcription_service_spec.rb
|
455
472
|
- spec/models/organization_user_data_source_query_input_spec.rb
|
456
473
|
- spec/models/organization_user_data_source_filters_spec.rb
|
457
474
|
- spec/models/webhook_spec.rb
|
@@ -461,6 +478,7 @@ test_files:
|
|
461
478
|
- spec/models/github_fetch_repos_request_spec.rb
|
462
479
|
- spec/models/list_data_source_items_response_spec.rb
|
463
480
|
- spec/models/github_authentication_spec.rb
|
481
|
+
- spec/models/sent_webhook_request_body_spec.rb
|
464
482
|
- spec/models/user_web_pages_filters_spec.rb
|
465
483
|
- spec/models/chunk_properties_nullable_spec.rb
|
466
484
|
- spec/models/gitbook_connect_request_spec.rb
|
@@ -484,9 +502,11 @@ test_files:
|
|
484
502
|
- spec/models/file_content_types_nullable_spec.rb
|
485
503
|
- spec/models/user_configuration_spec.rb
|
486
504
|
- spec/models/zendesk_authentication_spec.rb
|
505
|
+
- spec/models/sent_webhook_payload_object_object_id_spec.rb
|
487
506
|
- spec/models/connect_data_source_response_spec.rb
|
488
507
|
- spec/models/list_users_order_by_types_spec.rb
|
489
508
|
- spec/models/simple_o_auth_data_sources_spec.rb
|
509
|
+
- spec/models/transcription_service_nullable_spec.rb
|
490
510
|
- spec/models/add_webhook_props_spec.rb
|
491
511
|
- spec/models/white_labeling_response_spec.rb
|
492
512
|
- spec/models/single_chunks_and_embeddings_upload_input_spec.rb
|
@@ -506,6 +526,7 @@ test_files:
|
|
506
526
|
- spec/models/user_files_v2_spec.rb
|
507
527
|
- spec/models/embeddings_and_chunks_query_input_v2_spec.rb
|
508
528
|
- spec/models/organization_user_files_to_sync_filters_spec.rb
|
529
|
+
- spec/models/sent_webhook_payload_object_additional_information_spec.rb
|
509
530
|
- spec/models/s3_auth_request_spec.rb
|
510
531
|
- spec/models/sharepoint_authentication_spec.rb
|
511
532
|
- spec/models/user_list_response_spec.rb
|
@@ -526,6 +547,7 @@ test_files:
|
|
526
547
|
- spec/models/location_property_inner_spec.rb
|
527
548
|
- spec/models/update_users_input_spec.rb
|
528
549
|
- spec/models/source_property_spec.rb
|
550
|
+
- spec/models/object_type_spec.rb
|
529
551
|
- spec/models/chunks_and_embeddings_spec.rb
|
530
552
|
- spec/models/sync_files_ids_spec.rb
|
531
553
|
- spec/models/s3_get_file_input_spec.rb
|
@@ -542,6 +564,7 @@ test_files:
|
|
542
564
|
- spec/models/fetch_urls_response_spec.rb
|
543
565
|
- spec/models/data_source_type_nullable_spec.rb
|
544
566
|
- spec/models/http_validation_error_spec.rb
|
567
|
+
- spec/models/sent_webhook_payload_object_spec.rb
|
545
568
|
- spec/models/embedding_and_chunk_spec.rb
|
546
569
|
- spec/models/tags_spec.rb
|
547
570
|
- spec/models/embeddings_and_chunks_query_input_spec.rb
|
@@ -576,6 +599,7 @@ test_files:
|
|
576
599
|
- spec/models/freskdesk_authentication_spec.rb
|
577
600
|
- spec/models/fresh_desk_connect_request_spec.rb
|
578
601
|
- spec/models/file_sync_config_nullable_spec.rb
|
602
|
+
- spec/models/sent_webhook_payload_spec.rb
|
579
603
|
- spec/models/embeddings_and_chunks_filters_spec.rb
|
580
604
|
- spec/models/list_users_request_spec.rb
|
581
605
|
- spec/models/raw_transcript_property_inner_value_spec.rb
|