carbon_ruby_sdk 0.1.12 → 0.1.14

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +6 -6
  3. data/README.md +43 -2
  4. data/lib/carbon_ruby_sdk/api/integrations_api.rb +92 -20
  5. data/lib/carbon_ruby_sdk/models/document_response.rb +15 -5
  6. data/lib/carbon_ruby_sdk/models/embedding_and_chunk.rb +15 -5
  7. data/lib/carbon_ruby_sdk/models/fresh_desk_connect_request.rb +15 -5
  8. data/lib/carbon_ruby_sdk/models/gitbook_connect_request.rb +15 -5
  9. data/lib/carbon_ruby_sdk/models/gitbook_sync_request.rb +15 -5
  10. data/lib/carbon_ruby_sdk/models/gmail_sync_input.rb +15 -5
  11. data/lib/carbon_ruby_sdk/models/o_auth_url_request.rb +41 -5
  12. data/lib/carbon_ruby_sdk/models/organization_user_data_source_api.rb +11 -1
  13. data/lib/carbon_ruby_sdk/models/organization_user_files_to_sync_filters.rb +32 -4
  14. data/lib/carbon_ruby_sdk/models/outlook_sync_input.rb +15 -5
  15. data/lib/carbon_ruby_sdk/models/rss_feed_input.rb +15 -5
  16. data/lib/carbon_ruby_sdk/models/s3_file_sync_input.rb +39 -5
  17. data/lib/carbon_ruby_sdk/models/sync_files_request.rb +38 -4
  18. data/lib/carbon_ruby_sdk/models/user_file.rb +11 -1
  19. data/lib/carbon_ruby_sdk/version.rb +1 -1
  20. data/spec/models/document_response_spec.rb +6 -0
  21. data/spec/models/embedding_and_chunk_spec.rb +6 -0
  22. data/spec/models/fresh_desk_connect_request_spec.rb +6 -0
  23. data/spec/models/gitbook_connect_request_spec.rb +6 -0
  24. data/spec/models/gitbook_sync_request_spec.rb +6 -0
  25. data/spec/models/gmail_sync_input_spec.rb +6 -0
  26. data/spec/models/o_auth_url_request_spec.rb +18 -0
  27. data/spec/models/organization_user_data_source_api_spec.rb +6 -0
  28. data/spec/models/organization_user_files_to_sync_filters_spec.rb +6 -0
  29. data/spec/models/outlook_sync_input_spec.rb +6 -0
  30. data/spec/models/rss_feed_input_spec.rb +6 -0
  31. data/spec/models/s3_file_sync_input_spec.rb +18 -0
  32. data/spec/models/sync_files_request_spec.rb +18 -0
  33. data/spec/models/user_file_spec.rb +6 -0
  34. metadata +3 -3
@@ -34,6 +34,12 @@ module Carbon
34
34
 
35
35
  attr_accessor :set_page_as_boundary
36
36
 
37
+ attr_accessor :request_id
38
+
39
+ attr_accessor :use_ocr
40
+
41
+ attr_accessor :parse_pdf_tables_with_ocr
42
+
37
43
  # Attribute mapping from ruby-style variable name to JSON key.
38
44
  def self.attribute_map
39
45
  {
@@ -47,7 +53,10 @@ module Carbon
47
53
  :'generate_sparse_vectors' => :'generate_sparse_vectors',
48
54
  :'prepend_filename_to_chunks' => :'prepend_filename_to_chunks',
49
55
  :'max_items_per_chunk' => :'max_items_per_chunk',
50
- :'set_page_as_boundary' => :'set_page_as_boundary'
56
+ :'set_page_as_boundary' => :'set_page_as_boundary',
57
+ :'request_id' => :'request_id',
58
+ :'use_ocr' => :'use_ocr',
59
+ :'parse_pdf_tables_with_ocr' => :'parse_pdf_tables_with_ocr'
51
60
  }
52
61
  end
53
62
 
@@ -69,7 +78,10 @@ module Carbon
69
78
  :'generate_sparse_vectors' => :'Boolean',
70
79
  :'prepend_filename_to_chunks' => :'Boolean',
71
80
  :'max_items_per_chunk' => :'Integer',
72
- :'set_page_as_boundary' => :'Boolean'
81
+ :'set_page_as_boundary' => :'Boolean',
82
+ :'request_id' => :'String',
83
+ :'use_ocr' => :'Boolean',
84
+ :'parse_pdf_tables_with_ocr' => :'Boolean'
73
85
  }
74
86
  end
75
87
 
@@ -84,6 +96,9 @@ module Carbon
84
96
  :'generate_sparse_vectors',
85
97
  :'prepend_filename_to_chunks',
86
98
  :'max_items_per_chunk',
99
+ :'request_id',
100
+ :'use_ocr',
101
+ :'parse_pdf_tables_with_ocr'
87
102
  ])
88
103
  end
89
104
 
@@ -159,6 +174,22 @@ module Carbon
159
174
  else
160
175
  self.set_page_as_boundary = false
161
176
  end
177
+
178
+ if attributes.key?(:'request_id')
179
+ self.request_id = attributes[:'request_id']
180
+ end
181
+
182
+ if attributes.key?(:'use_ocr')
183
+ self.use_ocr = attributes[:'use_ocr']
184
+ else
185
+ self.use_ocr = false
186
+ end
187
+
188
+ if attributes.key?(:'parse_pdf_tables_with_ocr')
189
+ self.parse_pdf_tables_with_ocr = attributes[:'parse_pdf_tables_with_ocr']
190
+ else
191
+ self.parse_pdf_tables_with_ocr = false
192
+ end
162
193
  end
163
194
 
164
195
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -199,7 +230,10 @@ module Carbon
199
230
  generate_sparse_vectors == o.generate_sparse_vectors &&
200
231
  prepend_filename_to_chunks == o.prepend_filename_to_chunks &&
201
232
  max_items_per_chunk == o.max_items_per_chunk &&
202
- set_page_as_boundary == o.set_page_as_boundary
233
+ set_page_as_boundary == o.set_page_as_boundary &&
234
+ request_id == o.request_id &&
235
+ use_ocr == o.use_ocr &&
236
+ parse_pdf_tables_with_ocr == o.parse_pdf_tables_with_ocr
203
237
  end
204
238
 
205
239
  # @see the `==` method
@@ -211,7 +245,7 @@ module Carbon
211
245
  # Calculates hash code according to all attributes.
212
246
  # @return [Integer] Hash code
213
247
  def hash
214
- [tags, data_source_id, ids, chunk_size, chunk_overlap, skip_embedding_generation, embedding_model, generate_sparse_vectors, prepend_filename_to_chunks, max_items_per_chunk, set_page_as_boundary].hash
248
+ [tags, data_source_id, ids, chunk_size, chunk_overlap, skip_embedding_generation, embedding_model, generate_sparse_vectors, prepend_filename_to_chunks, max_items_per_chunk, set_page_as_boundary, request_id, use_ocr, parse_pdf_tables_with_ocr].hash
215
249
  end
216
250
 
217
251
  # Builds the object from hash
@@ -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
@@ -7,5 +7,5 @@ The version of the OpenAPI document: 1.0.0
7
7
  =end
8
8
 
9
9
  module Carbon
10
- VERSION = '0.1.12'
10
+ VERSION = '0.1.14'
11
11
  end
@@ -85,4 +85,10 @@ describe Carbon::DocumentResponse do
85
85
  end
86
86
  end
87
87
 
88
+ describe 'test attribute "chunk_index"' do
89
+ it 'should work' do
90
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
91
+ end
92
+ end
93
+
88
94
  end
@@ -43,4 +43,10 @@ describe Carbon::EmbeddingAndChunk do
43
43
  end
44
44
  end
45
45
 
46
+ describe 'test attribute "content_metadata"' 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
+
46
52
  end
@@ -79,4 +79,10 @@ describe Carbon::FreshDeskConnectRequest do
79
79
  end
80
80
  end
81
81
 
82
+ describe 'test attribute "request_id"' do
83
+ it 'should work' do
84
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
85
+ end
86
+ end
87
+
82
88
  end
@@ -79,4 +79,10 @@ describe Carbon::GitbookConnectRequest do
79
79
  end
80
80
  end
81
81
 
82
+ describe 'test attribute "request_id"' do
83
+ it 'should work' do
84
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
85
+ end
86
+ end
87
+
82
88
  end
@@ -73,4 +73,10 @@ describe Carbon::GitbookSyncRequest do
73
73
  end
74
74
  end
75
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
+
76
82
  end
@@ -73,4 +73,10 @@ describe Carbon::GmailSyncInput do
73
73
  end
74
74
  end
75
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
+
76
82
  end
@@ -133,4 +133,22 @@ 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
+
142
+ describe 'test attribute "use_ocr"' do
143
+ it 'should work' do
144
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
145
+ end
146
+ end
147
+
148
+ describe 'test attribute "parse_pdf_tables_with_ocr"' do
149
+ it 'should work' do
150
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
151
+ end
152
+ end
153
+
136
154
  end
@@ -91,6 +91,12 @@ describe Carbon::OrganizationUserDataSourceAPI do
91
91
  end
92
92
  end
93
93
 
94
+ describe 'test attribute "enable_auto_sync"' do
95
+ it 'should work' do
96
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
97
+ end
98
+ end
99
+
94
100
  describe 'test attribute "created_at"' do
95
101
  it 'should work' do
96
102
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -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
@@ -79,4 +79,10 @@ describe Carbon::OutlookSyncInput do
79
79
  end
80
80
  end
81
81
 
82
+ describe 'test attribute "request_id"' do
83
+ it 'should work' do
84
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
85
+ end
86
+ end
87
+
82
88
  end
@@ -67,4 +67,10 @@ describe Carbon::RSSFeedInput do
67
67
  end
68
68
  end
69
69
 
70
+ describe 'test attribute "request_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
+
70
76
  end
@@ -85,4 +85,22 @@ describe Carbon::S3FileSyncInput do
85
85
  end
86
86
  end
87
87
 
88
+ describe 'test attribute "request_id"' do
89
+ it 'should work' do
90
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
91
+ end
92
+ end
93
+
94
+ describe 'test attribute "use_ocr"' do
95
+ it 'should work' do
96
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
97
+ end
98
+ end
99
+
100
+ describe 'test attribute "parse_pdf_tables_with_ocr"' 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
+
88
106
  end
@@ -85,4 +85,22 @@ describe Carbon::SyncFilesRequest do
85
85
  end
86
86
  end
87
87
 
88
+ describe 'test attribute "request_id"' do
89
+ it 'should work' do
90
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
91
+ end
92
+ end
93
+
94
+ describe 'test attribute "use_ocr"' do
95
+ it 'should work' do
96
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
97
+ end
98
+ end
99
+
100
+ describe 'test attribute "parse_pdf_tables_with_ocr"' 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
+
88
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.12
4
+ version: 0.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Konfig
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-28 00:00:00.000000000 Z
11
+ date: 2024-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -372,7 +372,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
372
372
  - !ruby/object:Gem::Version
373
373
  version: '0'
374
374
  requirements: []
375
- rubygems_version: 3.3.7
375
+ rubygems_version: 3.4.10
376
376
  signing_key:
377
377
  specification_version: 4
378
378
  summary: Carbon Ruby Gem