carbon_ruby_sdk 0.2.7 → 0.2.9

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.
@@ -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.7
4
+ version: 0.2.9
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-18 00:00:00.000000000 Z
11
+ date: 2024-06-26 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
@@ -128,10 +127,12 @@ files:
128
127
  - lib/carbon_ruby_sdk/models/embeddings_and_chunks_filters.rb
129
128
  - lib/carbon_ruby_sdk/models/embeddings_and_chunks_order_by_columns.rb
130
129
  - lib/carbon_ruby_sdk/models/embeddings_and_chunks_query_input.rb
130
+ - lib/carbon_ruby_sdk/models/embeddings_and_chunks_query_input_v2.rb
131
131
  - lib/carbon_ruby_sdk/models/embeddings_and_chunks_response.rb
132
132
  - lib/carbon_ruby_sdk/models/external_file_sync_statuses.rb
133
133
  - lib/carbon_ruby_sdk/models/external_source_item.rb
134
134
  - lib/carbon_ruby_sdk/models/external_source_items_order_by.rb
135
+ - lib/carbon_ruby_sdk/models/fetch_urls_request.rb
135
136
  - lib/carbon_ruby_sdk/models/fetch_urls_response.rb
136
137
  - lib/carbon_ruby_sdk/models/file_content_types.rb
137
138
  - lib/carbon_ruby_sdk/models/file_content_types_nullable.rb
@@ -220,6 +221,9 @@ files:
220
221
  - lib/carbon_ruby_sdk/models/user_files_v2.rb
221
222
  - lib/carbon_ruby_sdk/models/user_request_content.rb
222
223
  - lib/carbon_ruby_sdk/models/user_response.rb
224
+ - lib/carbon_ruby_sdk/models/user_web_page_order_by_types.rb
225
+ - lib/carbon_ruby_sdk/models/user_web_pages_filters.rb
226
+ - lib/carbon_ruby_sdk/models/user_web_pages_request.rb
223
227
  - lib/carbon_ruby_sdk/models/validation_error.rb
224
228
  - lib/carbon_ruby_sdk/models/webhook.rb
225
229
  - lib/carbon_ruby_sdk/models/webhook_filters.rb
@@ -238,7 +242,6 @@ files:
238
242
  - spec/api/data_sources_api_spec.rb
239
243
  - spec/api/embeddings_api_spec.rb
240
244
  - spec/api/files_api_spec.rb
241
- - spec/api/health_api_spec.rb
242
245
  - spec/api/integrations_api_spec.rb
243
246
  - spec/api/organizations_api_spec.rb
244
247
  - spec/api/users_api_spec.rb
@@ -277,10 +280,12 @@ files:
277
280
  - spec/models/embeddings_and_chunks_filters_spec.rb
278
281
  - spec/models/embeddings_and_chunks_order_by_columns_spec.rb
279
282
  - spec/models/embeddings_and_chunks_query_input_spec.rb
283
+ - spec/models/embeddings_and_chunks_query_input_v2_spec.rb
280
284
  - spec/models/embeddings_and_chunks_response_spec.rb
281
285
  - spec/models/external_file_sync_statuses_spec.rb
282
286
  - spec/models/external_source_item_spec.rb
283
287
  - spec/models/external_source_items_order_by_spec.rb
288
+ - spec/models/fetch_urls_request_spec.rb
284
289
  - spec/models/fetch_urls_response_spec.rb
285
290
  - spec/models/file_content_types_nullable_spec.rb
286
291
  - spec/models/file_content_types_spec.rb
@@ -369,6 +374,9 @@ files:
369
374
  - spec/models/user_files_v2_spec.rb
370
375
  - spec/models/user_request_content_spec.rb
371
376
  - spec/models/user_response_spec.rb
377
+ - spec/models/user_web_page_order_by_types_spec.rb
378
+ - spec/models/user_web_pages_filters_spec.rb
379
+ - spec/models/user_web_pages_request_spec.rb
372
380
  - spec/models/validation_error_spec.rb
373
381
  - spec/models/webhook_filters_spec.rb
374
382
  - spec/models/webhook_no_key_spec.rb
@@ -410,7 +418,6 @@ specification_version: 4
410
418
  summary: Carbon Ruby Gem
411
419
  test_files:
412
420
  - spec/api/auth_api_spec.rb
413
- - spec/api/health_api_spec.rb
414
421
  - spec/api/organizations_api_spec.rb
415
422
  - spec/api/integrations_api_spec.rb
416
423
  - spec/api/webhooks_api_spec.rb
@@ -438,6 +445,7 @@ test_files:
438
445
  - spec/models/github_fetch_repos_request_spec.rb
439
446
  - spec/models/list_data_source_items_response_spec.rb
440
447
  - spec/models/github_authentication_spec.rb
448
+ - spec/models/user_web_pages_filters_spec.rb
441
449
  - spec/models/chunk_properties_nullable_spec.rb
442
450
  - spec/models/gitbook_connect_request_spec.rb
443
451
  - spec/models/slack_sync_request_spec.rb
@@ -447,6 +455,7 @@ test_files:
447
455
  - spec/models/update_organization_input_spec.rb
448
456
  - spec/models/user_request_content_spec.rb
449
457
  - spec/models/gmail_sync_input_spec.rb
458
+ - spec/models/fetch_urls_request_spec.rb
450
459
  - spec/models/embedding_model_spec.rb
451
460
  - spec/models/delete_files_query_input_spec.rb
452
461
  - spec/models/webhook_query_input_spec.rb
@@ -474,8 +483,10 @@ test_files:
474
483
  - spec/models/authentication_property_spec.rb
475
484
  - spec/models/validation_error_spec.rb
476
485
  - spec/models/presigned_url_response_spec.rb
486
+ - spec/models/user_web_pages_request_spec.rb
477
487
  - spec/models/webhook_order_by_columns_spec.rb
478
488
  - spec/models/user_files_v2_spec.rb
489
+ - spec/models/embeddings_and_chunks_query_input_v2_spec.rb
479
490
  - spec/models/organization_user_files_to_sync_filters_spec.rb
480
491
  - spec/models/s3_auth_request_spec.rb
481
492
  - spec/models/sharepoint_authentication_spec.rb
@@ -499,6 +510,7 @@ test_files:
499
510
  - spec/models/chunks_and_embeddings_spec.rb
500
511
  - spec/models/sync_files_ids_spec.rb
501
512
  - spec/models/s3_get_file_input_spec.rb
513
+ - spec/models/user_web_page_order_by_types_spec.rb
502
514
  - spec/models/upload_file_from_url_input_spec.rb
503
515
  - spec/models/gitbook_sync_request_spec.rb
504
516
  - spec/models/list_items_filters_nullable_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