carbon_ruby_sdk 0.2.6 → 0.2.8

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 (34) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +155 -28
  4. data/lib/carbon_ruby_sdk/api/integrations_api.rb +261 -8
  5. data/lib/carbon_ruby_sdk/api/utilities_api.rb +196 -0
  6. data/lib/carbon_ruby_sdk/models/data_source_type.rb +2 -1
  7. data/lib/carbon_ruby_sdk/models/data_source_type_nullable.rb +2 -1
  8. data/lib/carbon_ruby_sdk/models/fetch_urls_request.rb +220 -0
  9. data/lib/carbon_ruby_sdk/models/file_formats.rb +2 -1
  10. data/lib/carbon_ruby_sdk/models/file_formats_nullable.rb +2 -1
  11. data/lib/carbon_ruby_sdk/models/o_auth_url_request.rb +2 -2
  12. data/lib/carbon_ruby_sdk/models/simple_o_auth_data_sources.rb +2 -1
  13. data/lib/carbon_ruby_sdk/models/slack_filters.rb +232 -0
  14. data/lib/carbon_ruby_sdk/models/slack_sync_request.rb +321 -0
  15. data/lib/carbon_ruby_sdk/models/sync_files_request.rb +1 -1
  16. data/lib/carbon_ruby_sdk/models/sync_options.rb +1 -1
  17. data/lib/carbon_ruby_sdk/models/user_file.rb +15 -1
  18. data/lib/carbon_ruby_sdk/models/user_web_page_order_by_types.rb +37 -0
  19. data/lib/carbon_ruby_sdk/models/user_web_pages_filters.rb +218 -0
  20. data/lib/carbon_ruby_sdk/models/user_web_pages_request.rb +246 -0
  21. data/lib/carbon_ruby_sdk/version.rb +1 -1
  22. data/lib/carbon_ruby_sdk.rb +6 -3
  23. data/spec/api/integrations_api_spec.rb +27 -0
  24. data/spec/api/utilities_api_spec.rb +22 -0
  25. data/spec/models/fetch_urls_request_spec.rb +28 -0
  26. data/spec/models/slack_filters_spec.rb +34 -0
  27. data/spec/models/slack_sync_request_spec.rb +82 -0
  28. data/spec/models/user_file_spec.rb +6 -0
  29. data/spec/models/user_web_page_order_by_types_spec.rb +22 -0
  30. data/spec/models/user_web_pages_filters_spec.rb +28 -0
  31. data/spec/models/user_web_pages_request_spec.rb +46 -0
  32. metadata +20 -5
  33. data/lib/carbon_ruby_sdk/api/health_api.rb +0 -92
  34. data/spec/api/health_api_spec.rb +0 -39
@@ -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
@@ -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::UserWebPageOrderByTypes
14
+ describe Carbon::UserWebPageOrderByTypes do
15
+ let(:instance) { Carbon::UserWebPageOrderByTypes.new }
16
+
17
+ describe 'test an instance of UserWebPageOrderByTypes' do
18
+ it 'should create an instance of UserWebPageOrderByTypes' do
19
+ expect(instance).to be_instance_of(Carbon::UserWebPageOrderByTypes)
20
+ end
21
+ end
22
+ 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::UserWebPagesFilters
14
+ describe Carbon::UserWebPagesFilters do
15
+ let(:instance) { Carbon::UserWebPagesFilters.new }
16
+
17
+ describe 'test an instance of UserWebPagesFilters' do
18
+ it 'should create an instance of UserWebPagesFilters' do
19
+ expect(instance).to be_instance_of(Carbon::UserWebPagesFilters)
20
+ end
21
+ end
22
+ describe 'test attribute "ids"' 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,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::UserWebPagesRequest
14
+ describe Carbon::UserWebPagesRequest do
15
+ let(:instance) { Carbon::UserWebPagesRequest.new }
16
+
17
+ describe 'test an instance of UserWebPagesRequest' do
18
+ it 'should create an instance of UserWebPagesRequest' do
19
+ expect(instance).to be_instance_of(Carbon::UserWebPagesRequest)
20
+ end
21
+ end
22
+ describe 'test attribute "filters"' 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 "pagination"' 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 "order_by"' 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 "order_dir"' 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
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.6
4
+ version: 0.2.8
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-17 00:00:00.000000000 Z
11
+ date: 2024-06-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -88,7 +88,6 @@ files:
88
88
  - lib/carbon_ruby_sdk/api/data_sources_api.rb
89
89
  - lib/carbon_ruby_sdk/api/embeddings_api.rb
90
90
  - lib/carbon_ruby_sdk/api/files_api.rb
91
- - lib/carbon_ruby_sdk/api/health_api.rb
92
91
  - lib/carbon_ruby_sdk/api/integrations_api.rb
93
92
  - lib/carbon_ruby_sdk/api/organizations_api.rb
94
93
  - lib/carbon_ruby_sdk/api/users_api.rb
@@ -132,6 +131,7 @@ files:
132
131
  - lib/carbon_ruby_sdk/models/external_file_sync_statuses.rb
133
132
  - lib/carbon_ruby_sdk/models/external_source_item.rb
134
133
  - lib/carbon_ruby_sdk/models/external_source_items_order_by.rb
134
+ - lib/carbon_ruby_sdk/models/fetch_urls_request.rb
135
135
  - lib/carbon_ruby_sdk/models/fetch_urls_response.rb
136
136
  - lib/carbon_ruby_sdk/models/file_content_types.rb
137
137
  - lib/carbon_ruby_sdk/models/file_content_types_nullable.rb
@@ -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
@@ -218,6 +220,9 @@ files:
218
220
  - lib/carbon_ruby_sdk/models/user_files_v2.rb
219
221
  - lib/carbon_ruby_sdk/models/user_request_content.rb
220
222
  - lib/carbon_ruby_sdk/models/user_response.rb
223
+ - lib/carbon_ruby_sdk/models/user_web_page_order_by_types.rb
224
+ - lib/carbon_ruby_sdk/models/user_web_pages_filters.rb
225
+ - lib/carbon_ruby_sdk/models/user_web_pages_request.rb
221
226
  - lib/carbon_ruby_sdk/models/validation_error.rb
222
227
  - lib/carbon_ruby_sdk/models/webhook.rb
223
228
  - lib/carbon_ruby_sdk/models/webhook_filters.rb
@@ -236,7 +241,6 @@ files:
236
241
  - spec/api/data_sources_api_spec.rb
237
242
  - spec/api/embeddings_api_spec.rb
238
243
  - spec/api/files_api_spec.rb
239
- - spec/api/health_api_spec.rb
240
244
  - spec/api/integrations_api_spec.rb
241
245
  - spec/api/organizations_api_spec.rb
242
246
  - spec/api/users_api_spec.rb
@@ -279,6 +283,7 @@ files:
279
283
  - spec/models/external_file_sync_statuses_spec.rb
280
284
  - spec/models/external_source_item_spec.rb
281
285
  - spec/models/external_source_items_order_by_spec.rb
286
+ - spec/models/fetch_urls_request_spec.rb
282
287
  - spec/models/fetch_urls_response_spec.rb
283
288
  - spec/models/file_content_types_nullable_spec.rb
284
289
  - spec/models/file_content_types_spec.rb
@@ -347,6 +352,8 @@ files:
347
352
  - spec/models/simple_o_auth_data_sources_spec.rb
348
353
  - spec/models/single_chunks_and_embeddings_upload_input_spec.rb
349
354
  - spec/models/sitemap_scrape_request_spec.rb
355
+ - spec/models/slack_filters_spec.rb
356
+ - spec/models/slack_sync_request_spec.rb
350
357
  - spec/models/source_property_spec.rb
351
358
  - spec/models/sync_directory_request_spec.rb
352
359
  - spec/models/sync_files_ids_spec.rb
@@ -365,6 +372,9 @@ files:
365
372
  - spec/models/user_files_v2_spec.rb
366
373
  - spec/models/user_request_content_spec.rb
367
374
  - spec/models/user_response_spec.rb
375
+ - spec/models/user_web_page_order_by_types_spec.rb
376
+ - spec/models/user_web_pages_filters_spec.rb
377
+ - spec/models/user_web_pages_request_spec.rb
368
378
  - spec/models/validation_error_spec.rb
369
379
  - spec/models/webhook_filters_spec.rb
370
380
  - spec/models/webhook_no_key_spec.rb
@@ -406,7 +416,6 @@ specification_version: 4
406
416
  summary: Carbon Ruby Gem
407
417
  test_files:
408
418
  - spec/api/auth_api_spec.rb
409
- - spec/api/health_api_spec.rb
410
419
  - spec/api/organizations_api_spec.rb
411
420
  - spec/api/integrations_api_spec.rb
412
421
  - spec/api/webhooks_api_spec.rb
@@ -434,14 +443,17 @@ test_files:
434
443
  - spec/models/github_fetch_repos_request_spec.rb
435
444
  - spec/models/list_data_source_items_response_spec.rb
436
445
  - spec/models/github_authentication_spec.rb
446
+ - spec/models/user_web_pages_filters_spec.rb
437
447
  - spec/models/chunk_properties_nullable_spec.rb
438
448
  - spec/models/gitbook_connect_request_spec.rb
449
+ - spec/models/slack_sync_request_spec.rb
439
450
  - spec/models/token_response_spec.rb
440
451
  - spec/models/sync_options_spec.rb
441
452
  - spec/models/file_formats_spec.rb
442
453
  - spec/models/update_organization_input_spec.rb
443
454
  - spec/models/user_request_content_spec.rb
444
455
  - spec/models/gmail_sync_input_spec.rb
456
+ - spec/models/fetch_urls_request_spec.rb
445
457
  - spec/models/embedding_model_spec.rb
446
458
  - spec/models/delete_files_query_input_spec.rb
447
459
  - spec/models/webhook_query_input_spec.rb
@@ -469,6 +481,7 @@ test_files:
469
481
  - spec/models/authentication_property_spec.rb
470
482
  - spec/models/validation_error_spec.rb
471
483
  - spec/models/presigned_url_response_spec.rb
484
+ - spec/models/user_web_pages_request_spec.rb
472
485
  - spec/models/webhook_order_by_columns_spec.rb
473
486
  - spec/models/user_files_v2_spec.rb
474
487
  - spec/models/organization_user_files_to_sync_filters_spec.rb
@@ -494,6 +507,7 @@ test_files:
494
507
  - spec/models/chunks_and_embeddings_spec.rb
495
508
  - spec/models/sync_files_ids_spec.rb
496
509
  - spec/models/s3_get_file_input_spec.rb
510
+ - spec/models/user_web_page_order_by_types_spec.rb
497
511
  - spec/models/upload_file_from_url_input_spec.rb
498
512
  - spec/models/gitbook_sync_request_spec.rb
499
513
  - spec/models/list_items_filters_nullable_spec.rb
@@ -523,6 +537,7 @@ test_files:
523
537
  - spec/models/custom_credentials_type_spec.rb
524
538
  - spec/models/file_formats_nullable_spec.rb
525
539
  - spec/models/s3_authentication_spec.rb
540
+ - spec/models/slack_filters_spec.rb
526
541
  - spec/models/file_statistics_spec.rb
527
542
  - spec/models/confluence_authentication_spec.rb
528
543
  - spec/models/get_embedding_documents_body_spec.rb
@@ -1,92 +0,0 @@
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 'cgi'
10
-
11
- module Carbon
12
- class HealthApi
13
- attr_accessor :api_client
14
-
15
- def initialize(api_client = ApiClient.default)
16
- @api_client = api_client
17
- end
18
-
19
- # Health
20
- #
21
- # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
22
- def check(extra: {})
23
- api_response = check_with_http_info_impl(extra)
24
- api_response.data
25
- end
26
-
27
- # Health
28
- #
29
- # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
30
- def check_with_http_info(extra: {})
31
- check_with_http_info_impl(extra)
32
- end
33
-
34
- # Health
35
- # @param [Hash] opts the optional parameters
36
- # @return [Object]
37
- private def check_impl(opts = {})
38
- data, _status_code, _headers = check_with_http_info(opts)
39
- data
40
- end
41
-
42
- # Health
43
- # @param [Hash] opts the optional parameters
44
- # @return [APIResponse] data is Object, status code, headers and response
45
- private def check_with_http_info_impl(opts = {})
46
- if @api_client.config.debugging
47
- @api_client.config.logger.debug 'Calling API: HealthApi.check ...'
48
- end
49
- # resource path
50
- local_var_path = '/health'
51
-
52
- # query parameters
53
- query_params = opts[:query_params] || {}
54
-
55
- # header parameters
56
- header_params = opts[:header_params] || {}
57
- # HTTP header 'Accept' (if needed)
58
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
59
-
60
- # form parameters
61
- form_params = opts[:form_params] || {}
62
-
63
- # http body (model)
64
- post_body = opts[:debug_body]
65
-
66
- # return_type
67
- return_type = opts[:debug_return_type] || 'Object'
68
-
69
- # auth_names
70
- auth_names = opts[:debug_auth_names] || []
71
-
72
- new_options = opts.merge(
73
- :operation => :"HealthApi.check",
74
- :header_params => header_params,
75
- :query_params => query_params,
76
- :form_params => form_params,
77
- :body => post_body,
78
- :auth_names => auth_names,
79
- :return_type => return_type
80
- )
81
-
82
- data, status_code, headers, response = @api_client.call_api(:GET, local_var_path, new_options)
83
- if @api_client.config.debugging
84
- @api_client.config.logger.debug "API called: HealthApi#check\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
85
- end
86
- APIResponse::new(data, status_code, headers, response)
87
- end
88
- end
89
-
90
- # top-level client access to avoid having the user to insantiate their own API instances
91
- Health = HealthApi::new
92
- end
@@ -1,39 +0,0 @@
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
-
12
- # Unit tests for Carbon::HealthApi
13
- describe 'HealthApi' do
14
- before do
15
- # run before each test
16
- @api_instance = Carbon::HealthApi.new
17
- end
18
-
19
- after do
20
- # run after each test
21
- end
22
-
23
- describe 'test an instance of HealthApi' do
24
- it 'should create an instance of HealthApi' do
25
- expect(@api_instance).to be_instance_of(Carbon::HealthApi)
26
- end
27
- end
28
-
29
- # unit tests for check
30
- # Health
31
- # @param [Hash] opts the optional parameters
32
- # @return [Object]
33
- describe 'check test' do
34
- it 'should work' do
35
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
36
- end
37
- end
38
-
39
- end