carbon_ruby_sdk 0.2.16 → 0.2.17
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 +15 -19
- data/README.md +21 -7
- 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/o_auth_url_request.rb +2 -2
- data/lib/carbon_ruby_sdk/models/object_type.rb +42 -0
- 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/object_type_spec.rb +22 -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,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', ["ALL_UPLOADED_FILES_QUEUED", "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", "SPARSE_VECTOR_QUEUE_STATUS", "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.17
|
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
|