carbon_ruby_sdk 0.1.11 → 0.1.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +6 -6
- data/README.md +28 -2
- data/lib/carbon_ruby_sdk/api/integrations_api.rb +66 -22
- data/lib/carbon_ruby_sdk/models/embedding_and_chunk.rb +15 -5
- data/lib/carbon_ruby_sdk/models/external_source_item.rb +11 -1
- data/lib/carbon_ruby_sdk/models/fresh_desk_connect_request.rb +15 -5
- data/lib/carbon_ruby_sdk/models/gitbook_connect_request.rb +15 -5
- data/lib/carbon_ruby_sdk/models/gitbook_sync_request.rb +15 -5
- data/lib/carbon_ruby_sdk/models/gmail_sync_input.rb +15 -5
- data/lib/carbon_ruby_sdk/models/list_data_source_items_request.rb +11 -1
- data/lib/carbon_ruby_sdk/models/list_items_filters.rb +250 -0
- data/lib/carbon_ruby_sdk/models/list_items_filters_nullable.rb +250 -0
- data/lib/carbon_ruby_sdk/models/o_auth_url_request.rb +16 -5
- data/lib/carbon_ruby_sdk/models/organization_user_files_to_sync_filters.rb +32 -4
- data/lib/carbon_ruby_sdk/models/outlook_sync_input.rb +15 -5
- data/lib/carbon_ruby_sdk/models/rss_feed_input.rb +15 -5
- data/lib/carbon_ruby_sdk/models/s3_file_sync_input.rb +15 -5
- data/lib/carbon_ruby_sdk/models/sync_files_request.rb +14 -4
- data/lib/carbon_ruby_sdk/models/user_file.rb +11 -1
- data/lib/carbon_ruby_sdk/version.rb +1 -1
- data/lib/carbon_ruby_sdk.rb +2 -0
- data/spec/models/embedding_and_chunk_spec.rb +6 -0
- data/spec/models/external_source_item_spec.rb +6 -0
- data/spec/models/fresh_desk_connect_request_spec.rb +6 -0
- data/spec/models/gitbook_connect_request_spec.rb +6 -0
- data/spec/models/gitbook_sync_request_spec.rb +6 -0
- data/spec/models/gmail_sync_input_spec.rb +6 -0
- data/spec/models/list_data_source_items_request_spec.rb +6 -0
- data/spec/models/list_items_filters_nullable_spec.rb +46 -0
- data/spec/models/list_items_filters_spec.rb +46 -0
- data/spec/models/o_auth_url_request_spec.rb +6 -0
- data/spec/models/organization_user_files_to_sync_filters_spec.rb +6 -0
- data/spec/models/outlook_sync_input_spec.rb +6 -0
- data/spec/models/rss_feed_input_spec.rb +6 -0
- data/spec/models/s3_file_sync_input_spec.rb +6 -0
- data/spec/models/sync_files_request_spec.rb +6 -0
- data/spec/models/user_file_spec.rb +6 -0
- metadata +9 -3
@@ -63,6 +63,8 @@ module Carbon
|
|
63
63
|
|
64
64
|
attr_accessor :generate_sparse_vectors
|
65
65
|
|
66
|
+
attr_accessor :request_id
|
67
|
+
|
66
68
|
attr_accessor :created_at
|
67
69
|
|
68
70
|
attr_accessor :updated_at
|
@@ -96,6 +98,7 @@ module Carbon
|
|
96
98
|
:'skip_embedding_generation' => :'skip_embedding_generation',
|
97
99
|
:'source_created_at' => :'source_created_at',
|
98
100
|
:'generate_sparse_vectors' => :'generate_sparse_vectors',
|
101
|
+
:'request_id' => :'request_id',
|
99
102
|
:'created_at' => :'created_at',
|
100
103
|
:'updated_at' => :'updated_at'
|
101
104
|
}
|
@@ -135,6 +138,7 @@ module Carbon
|
|
135
138
|
:'skip_embedding_generation' => :'Boolean',
|
136
139
|
:'source_created_at' => :'Time',
|
137
140
|
:'generate_sparse_vectors' => :'Boolean',
|
141
|
+
:'request_id' => :'String',
|
138
142
|
:'created_at' => :'Time',
|
139
143
|
:'updated_at' => :'Time'
|
140
144
|
}
|
@@ -162,6 +166,7 @@ module Carbon
|
|
162
166
|
:'additional_presigned_urls',
|
163
167
|
:'source_created_at',
|
164
168
|
:'generate_sparse_vectors',
|
169
|
+
:'request_id',
|
165
170
|
])
|
166
171
|
end
|
167
172
|
|
@@ -286,6 +291,10 @@ module Carbon
|
|
286
291
|
self.generate_sparse_vectors = attributes[:'generate_sparse_vectors']
|
287
292
|
end
|
288
293
|
|
294
|
+
if attributes.key?(:'request_id')
|
295
|
+
self.request_id = attributes[:'request_id']
|
296
|
+
end
|
297
|
+
|
289
298
|
if attributes.key?(:'created_at')
|
290
299
|
self.created_at = attributes[:'created_at']
|
291
300
|
end
|
@@ -384,6 +393,7 @@ module Carbon
|
|
384
393
|
skip_embedding_generation == o.skip_embedding_generation &&
|
385
394
|
source_created_at == o.source_created_at &&
|
386
395
|
generate_sparse_vectors == o.generate_sparse_vectors &&
|
396
|
+
request_id == o.request_id &&
|
387
397
|
created_at == o.created_at &&
|
388
398
|
updated_at == o.updated_at
|
389
399
|
end
|
@@ -397,7 +407,7 @@ module Carbon
|
|
397
407
|
# Calculates hash code according to all attributes.
|
398
408
|
# @return [Integer] Hash code
|
399
409
|
def hash
|
400
|
-
[tags, id, source, organization_id, organization_supplied_user_id, organization_user_data_source_id, external_file_id, external_url, sync_status, sync_error_message, last_sync, file_statistics, file_metadata, embedding_properties, chunk_size, chunk_overlap, chunk_properties, name, parent_id, enable_auto_sync, presigned_url, parsed_text_url, additional_presigned_urls, skip_embedding_generation, source_created_at, generate_sparse_vectors, created_at, updated_at].hash
|
410
|
+
[tags, id, source, organization_id, organization_supplied_user_id, organization_user_data_source_id, external_file_id, external_url, sync_status, sync_error_message, last_sync, file_statistics, file_metadata, embedding_properties, chunk_size, chunk_overlap, chunk_properties, name, parent_id, enable_auto_sync, presigned_url, parsed_text_url, additional_presigned_urls, skip_embedding_generation, source_created_at, generate_sparse_vectors, request_id, created_at, updated_at].hash
|
401
411
|
end
|
402
412
|
|
403
413
|
# Builds the object from hash
|
data/lib/carbon_ruby_sdk.rb
CHANGED
@@ -67,6 +67,8 @@ require 'carbon_ruby_sdk/models/hybrid_search_tuning_params_nullable'
|
|
67
67
|
require 'carbon_ruby_sdk/models/ids_property'
|
68
68
|
require 'carbon_ruby_sdk/models/list_data_source_items_request'
|
69
69
|
require 'carbon_ruby_sdk/models/list_data_source_items_response'
|
70
|
+
require 'carbon_ruby_sdk/models/list_items_filters'
|
71
|
+
require 'carbon_ruby_sdk/models/list_items_filters_nullable'
|
70
72
|
require 'carbon_ruby_sdk/models/list_request'
|
71
73
|
require 'carbon_ruby_sdk/models/list_response'
|
72
74
|
require 'carbon_ruby_sdk/models/location_property_inner'
|
@@ -109,6 +109,12 @@ describe Carbon::ExternalSourceItem do
|
|
109
109
|
end
|
110
110
|
end
|
111
111
|
|
112
|
+
describe 'test attribute "external_url"' do
|
113
|
+
it 'should work' do
|
114
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
115
|
+
end
|
116
|
+
end
|
117
|
+
|
112
118
|
describe 'test attribute "created_at"' do
|
113
119
|
it 'should work' do
|
114
120
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -31,6 +31,12 @@ describe Carbon::ListDataSourceItemsRequest do
|
|
31
31
|
end
|
32
32
|
end
|
33
33
|
|
34
|
+
describe 'test attribute "filters"' 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
|
+
|
34
40
|
describe 'test attribute "pagination"' do
|
35
41
|
it 'should work' do
|
36
42
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -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::ListItemsFiltersNullable
|
14
|
+
describe Carbon::ListItemsFiltersNullable do
|
15
|
+
let(:instance) { Carbon::ListItemsFiltersNullable.new }
|
16
|
+
|
17
|
+
describe 'test an instance of ListItemsFiltersNullable' do
|
18
|
+
it 'should create an instance of ListItemsFiltersNullable' do
|
19
|
+
expect(instance).to be_instance_of(Carbon::ListItemsFiltersNullable)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
describe 'test attribute "external_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
|
+
describe 'test attribute "ids"' 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 "name"' 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 "root_files_only"' 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
|
@@ -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::ListItemsFilters
|
14
|
+
describe Carbon::ListItemsFilters do
|
15
|
+
let(:instance) { Carbon::ListItemsFilters.new }
|
16
|
+
|
17
|
+
describe 'test an instance of ListItemsFilters' do
|
18
|
+
it 'should create an instance of ListItemsFilters' do
|
19
|
+
expect(instance).to be_instance_of(Carbon::ListItemsFilters)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
describe 'test attribute "external_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
|
+
describe 'test attribute "ids"' 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 "name"' 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 "root_files_only"' 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
|
@@ -133,4 +133,10 @@ describe Carbon::OAuthURLRequest do
|
|
133
133
|
end
|
134
134
|
end
|
135
135
|
|
136
|
+
describe 'test attribute "request_id"' do
|
137
|
+
it 'should work' do
|
138
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
139
|
+
end
|
140
|
+
end
|
141
|
+
|
136
142
|
end
|
@@ -97,4 +97,10 @@ describe Carbon::OrganizationUserFilesToSyncFilters do
|
|
97
97
|
end
|
98
98
|
end
|
99
99
|
|
100
|
+
describe 'test attribute "request_ids"' 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
|
end
|
@@ -175,6 +175,12 @@ describe Carbon::UserFile do
|
|
175
175
|
end
|
176
176
|
end
|
177
177
|
|
178
|
+
describe 'test attribute "request_id"' do
|
179
|
+
it 'should work' do
|
180
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
181
|
+
end
|
182
|
+
end
|
183
|
+
|
178
184
|
describe 'test attribute "created_at"' do
|
179
185
|
it 'should work' do
|
180
186
|
# 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.1.
|
4
|
+
version: 0.1.13
|
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-04-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -150,6 +150,8 @@ files:
|
|
150
150
|
- lib/carbon_ruby_sdk/models/ids_property.rb
|
151
151
|
- lib/carbon_ruby_sdk/models/list_data_source_items_request.rb
|
152
152
|
- lib/carbon_ruby_sdk/models/list_data_source_items_response.rb
|
153
|
+
- lib/carbon_ruby_sdk/models/list_items_filters.rb
|
154
|
+
- lib/carbon_ruby_sdk/models/list_items_filters_nullable.rb
|
153
155
|
- lib/carbon_ruby_sdk/models/list_request.rb
|
154
156
|
- lib/carbon_ruby_sdk/models/list_response.rb
|
155
157
|
- lib/carbon_ruby_sdk/models/location_property_inner.rb
|
@@ -281,6 +283,8 @@ files:
|
|
281
283
|
- spec/models/ids_property_spec.rb
|
282
284
|
- spec/models/list_data_source_items_request_spec.rb
|
283
285
|
- spec/models/list_data_source_items_response_spec.rb
|
286
|
+
- spec/models/list_items_filters_nullable_spec.rb
|
287
|
+
- spec/models/list_items_filters_spec.rb
|
284
288
|
- spec/models/list_request_spec.rb
|
285
289
|
- spec/models/list_response_spec.rb
|
286
290
|
- spec/models/location_property_inner_spec.rb
|
@@ -368,7 +372,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
368
372
|
- !ruby/object:Gem::Version
|
369
373
|
version: '0'
|
370
374
|
requirements: []
|
371
|
-
rubygems_version: 3.
|
375
|
+
rubygems_version: 3.4.10
|
372
376
|
signing_key:
|
373
377
|
specification_version: 4
|
374
378
|
summary: Carbon Ruby Gem
|
@@ -419,6 +423,7 @@ test_files:
|
|
419
423
|
- spec/models/add_webhook_props_spec.rb
|
420
424
|
- spec/models/white_labeling_response_spec.rb
|
421
425
|
- spec/models/single_chunks_and_embeddings_upload_input_spec.rb
|
426
|
+
- spec/models/list_items_filters_spec.rb
|
422
427
|
- spec/models/document_response_list_spec.rb
|
423
428
|
- spec/models/list_data_source_items_request_spec.rb
|
424
429
|
- spec/models/organization_user_data_source_response_spec.rb
|
@@ -454,6 +459,7 @@ test_files:
|
|
454
459
|
- spec/models/s3_get_file_input_spec.rb
|
455
460
|
- spec/models/upload_file_from_url_input_spec.rb
|
456
461
|
- spec/models/gitbook_sync_request_spec.rb
|
462
|
+
- spec/models/list_items_filters_nullable_spec.rb
|
457
463
|
- spec/models/data_source_sync_statuses_spec.rb
|
458
464
|
- spec/models/resync_file_query_input_spec.rb
|
459
465
|
- spec/models/modify_user_configuration_input_spec.rb
|