carbon_ruby_sdk 0.1.12 → 0.1.13

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 (30) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +5 -5
  3. data/README.md +25 -2
  4. data/lib/carbon_ruby_sdk/api/integrations_api.rb +60 -20
  5. data/lib/carbon_ruby_sdk/models/embedding_and_chunk.rb +15 -5
  6. data/lib/carbon_ruby_sdk/models/fresh_desk_connect_request.rb +15 -5
  7. data/lib/carbon_ruby_sdk/models/gitbook_connect_request.rb +15 -5
  8. data/lib/carbon_ruby_sdk/models/gitbook_sync_request.rb +15 -5
  9. data/lib/carbon_ruby_sdk/models/gmail_sync_input.rb +15 -5
  10. data/lib/carbon_ruby_sdk/models/o_auth_url_request.rb +16 -5
  11. data/lib/carbon_ruby_sdk/models/organization_user_files_to_sync_filters.rb +32 -4
  12. data/lib/carbon_ruby_sdk/models/outlook_sync_input.rb +15 -5
  13. data/lib/carbon_ruby_sdk/models/rss_feed_input.rb +15 -5
  14. data/lib/carbon_ruby_sdk/models/s3_file_sync_input.rb +15 -5
  15. data/lib/carbon_ruby_sdk/models/sync_files_request.rb +14 -4
  16. data/lib/carbon_ruby_sdk/models/user_file.rb +11 -1
  17. data/lib/carbon_ruby_sdk/version.rb +1 -1
  18. data/spec/models/embedding_and_chunk_spec.rb +6 -0
  19. data/spec/models/fresh_desk_connect_request_spec.rb +6 -0
  20. data/spec/models/gitbook_connect_request_spec.rb +6 -0
  21. data/spec/models/gitbook_sync_request_spec.rb +6 -0
  22. data/spec/models/gmail_sync_input_spec.rb +6 -0
  23. data/spec/models/o_auth_url_request_spec.rb +6 -0
  24. data/spec/models/organization_user_files_to_sync_filters_spec.rb +6 -0
  25. data/spec/models/outlook_sync_input_spec.rb +6 -0
  26. data/spec/models/rss_feed_input_spec.rb +6 -0
  27. data/spec/models/s3_file_sync_input_spec.rb +6 -0
  28. data/spec/models/sync_files_request_spec.rb +6 -0
  29. data/spec/models/user_file_spec.rb +6 -0
  30. metadata +3 -3
@@ -34,6 +34,8 @@ module Carbon
34
34
 
35
35
  attr_accessor :data_source_id
36
36
 
37
+ attr_accessor :request_id
38
+
37
39
  # Attribute mapping from ruby-style variable name to JSON key.
38
40
  def self.attribute_map
39
41
  {
@@ -47,7 +49,8 @@ module Carbon
47
49
  :'prepend_filename_to_chunks' => :'prepend_filename_to_chunks',
48
50
  :'max_items_per_chunk' => :'max_items_per_chunk',
49
51
  :'set_page_as_boundary' => :'set_page_as_boundary',
50
- :'data_source_id' => :'data_source_id'
52
+ :'data_source_id' => :'data_source_id',
53
+ :'request_id' => :'request_id'
51
54
  }
52
55
  end
53
56
 
@@ -69,7 +72,8 @@ module Carbon
69
72
  :'prepend_filename_to_chunks' => :'Boolean',
70
73
  :'max_items_per_chunk' => :'Integer',
71
74
  :'set_page_as_boundary' => :'Boolean',
72
- :'data_source_id' => :'Integer'
75
+ :'data_source_id' => :'Integer',
76
+ :'request_id' => :'String'
73
77
  }
74
78
  end
75
79
 
@@ -83,7 +87,8 @@ module Carbon
83
87
  :'generate_sparse_vectors',
84
88
  :'prepend_filename_to_chunks',
85
89
  :'max_items_per_chunk',
86
- :'data_source_id'
90
+ :'data_source_id',
91
+ :'request_id'
87
92
  ])
88
93
  end
89
94
 
@@ -161,6 +166,10 @@ module Carbon
161
166
  if attributes.key?(:'data_source_id')
162
167
  self.data_source_id = attributes[:'data_source_id']
163
168
  end
169
+
170
+ if attributes.key?(:'request_id')
171
+ self.request_id = attributes[:'request_id']
172
+ end
164
173
  end
165
174
 
166
175
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -196,7 +205,8 @@ module Carbon
196
205
  prepend_filename_to_chunks == o.prepend_filename_to_chunks &&
197
206
  max_items_per_chunk == o.max_items_per_chunk &&
198
207
  set_page_as_boundary == o.set_page_as_boundary &&
199
- data_source_id == o.data_source_id
208
+ data_source_id == o.data_source_id &&
209
+ request_id == o.request_id
200
210
  end
201
211
 
202
212
  # @see the `==` method
@@ -208,7 +218,7 @@ module Carbon
208
218
  # Calculates hash code according to all attributes.
209
219
  # @return [Integer] Hash code
210
220
  def hash
211
- [tags, 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, data_source_id].hash
221
+ [tags, 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, data_source_id, request_id].hash
212
222
  end
213
223
 
214
224
  # Builds the object from hash
@@ -34,6 +34,8 @@ module Carbon
34
34
 
35
35
  attr_accessor :set_page_as_boundary
36
36
 
37
+ attr_accessor :request_id
38
+
37
39
  # Attribute mapping from ruby-style variable name to JSON key.
38
40
  def self.attribute_map
39
41
  {
@@ -47,7 +49,8 @@ module Carbon
47
49
  :'generate_sparse_vectors' => :'generate_sparse_vectors',
48
50
  :'prepend_filename_to_chunks' => :'prepend_filename_to_chunks',
49
51
  :'max_items_per_chunk' => :'max_items_per_chunk',
50
- :'set_page_as_boundary' => :'set_page_as_boundary'
52
+ :'set_page_as_boundary' => :'set_page_as_boundary',
53
+ :'request_id' => :'request_id'
51
54
  }
52
55
  end
53
56
 
@@ -69,7 +72,8 @@ module Carbon
69
72
  :'generate_sparse_vectors' => :'Boolean',
70
73
  :'prepend_filename_to_chunks' => :'Boolean',
71
74
  :'max_items_per_chunk' => :'Integer',
72
- :'set_page_as_boundary' => :'Boolean'
75
+ :'set_page_as_boundary' => :'Boolean',
76
+ :'request_id' => :'String'
73
77
  }
74
78
  end
75
79
 
@@ -84,6 +88,7 @@ module Carbon
84
88
  :'generate_sparse_vectors',
85
89
  :'prepend_filename_to_chunks',
86
90
  :'max_items_per_chunk',
91
+ :'request_id'
87
92
  ])
88
93
  end
89
94
 
@@ -159,6 +164,10 @@ module Carbon
159
164
  else
160
165
  self.set_page_as_boundary = false
161
166
  end
167
+
168
+ if attributes.key?(:'request_id')
169
+ self.request_id = attributes[:'request_id']
170
+ end
162
171
  end
163
172
 
164
173
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -199,7 +208,8 @@ module Carbon
199
208
  generate_sparse_vectors == o.generate_sparse_vectors &&
200
209
  prepend_filename_to_chunks == o.prepend_filename_to_chunks &&
201
210
  max_items_per_chunk == o.max_items_per_chunk &&
202
- set_page_as_boundary == o.set_page_as_boundary
211
+ set_page_as_boundary == o.set_page_as_boundary &&
212
+ request_id == o.request_id
203
213
  end
204
214
 
205
215
  # @see the `==` method
@@ -211,7 +221,7 @@ module Carbon
211
221
  # Calculates hash code according to all attributes.
212
222
  # @return [Integer] Hash code
213
223
  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
224
+ [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].hash
215
225
  end
216
226
 
217
227
  # 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.13'
11
11
  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,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
@@ -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,10 @@ 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
+
88
94
  end
@@ -85,4 +85,10 @@ 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
+
88
94
  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.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-03-28 00:00:00.000000000 Z
11
+ date: 2024-04-02 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