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
@@ -19,13 +19,16 @@ module Carbon
19
19
 
20
20
  attr_accessor :embedding
21
21
 
22
+ attr_accessor :content_metadata
23
+
22
24
  # Attribute mapping from ruby-style variable name to JSON key.
23
25
  def self.attribute_map
24
26
  {
25
27
  :'user_file_id' => :'user_file_id',
26
28
  :'chunk_index' => :'chunk_index',
27
29
  :'source_content' => :'source_content',
28
- :'embedding' => :'embedding'
30
+ :'embedding' => :'embedding',
31
+ :'content_metadata' => :'content_metadata'
29
32
  }
30
33
  end
31
34
 
@@ -40,7 +43,8 @@ module Carbon
40
43
  :'user_file_id' => :'Integer',
41
44
  :'chunk_index' => :'Integer',
42
45
  :'source_content' => :'String',
43
- :'embedding' => :'Array<Float>'
46
+ :'embedding' => :'Array<Float>',
47
+ :'content_metadata' => :'Object'
44
48
  }
45
49
  end
46
50
 
@@ -48,7 +52,8 @@ module Carbon
48
52
  def self.openapi_nullable
49
53
  Set.new([
50
54
  :'chunk_index',
51
- :'embedding'
55
+ :'embedding',
56
+ :'content_metadata'
52
57
  ])
53
58
  end
54
59
 
@@ -84,6 +89,10 @@ module Carbon
84
89
  self.embedding = value
85
90
  end
86
91
  end
92
+
93
+ if attributes.key?(:'content_metadata')
94
+ self.content_metadata = attributes[:'content_metadata']
95
+ end
87
96
  end
88
97
 
89
98
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -117,7 +126,8 @@ module Carbon
117
126
  user_file_id == o.user_file_id &&
118
127
  chunk_index == o.chunk_index &&
119
128
  source_content == o.source_content &&
120
- embedding == o.embedding
129
+ embedding == o.embedding &&
130
+ content_metadata == o.content_metadata
121
131
  end
122
132
 
123
133
  # @see the `==` method
@@ -129,7 +139,7 @@ module Carbon
129
139
  # Calculates hash code according to all attributes.
130
140
  # @return [Integer] Hash code
131
141
  def hash
132
- [user_file_id, chunk_index, source_content, embedding].hash
142
+ [user_file_id, chunk_index, source_content, embedding, content_metadata].hash
133
143
  end
134
144
 
135
145
  # Builds the object from hash
@@ -31,6 +31,8 @@ module Carbon
31
31
 
32
32
  attr_accessor :sync_files_on_connection
33
33
 
34
+ attr_accessor :request_id
35
+
34
36
  # Attribute mapping from ruby-style variable name to JSON key.
35
37
  def self.attribute_map
36
38
  {
@@ -43,7 +45,8 @@ module Carbon
43
45
  :'embedding_model' => :'embedding_model',
44
46
  :'generate_sparse_vectors' => :'generate_sparse_vectors',
45
47
  :'prepend_filename_to_chunks' => :'prepend_filename_to_chunks',
46
- :'sync_files_on_connection' => :'sync_files_on_connection'
48
+ :'sync_files_on_connection' => :'sync_files_on_connection',
49
+ :'request_id' => :'request_id'
47
50
  }
48
51
  end
49
52
 
@@ -64,7 +67,8 @@ module Carbon
64
67
  :'embedding_model' => :'EmbeddingGeneratorsNullable',
65
68
  :'generate_sparse_vectors' => :'Boolean',
66
69
  :'prepend_filename_to_chunks' => :'Boolean',
67
- :'sync_files_on_connection' => :'Boolean'
70
+ :'sync_files_on_connection' => :'Boolean',
71
+ :'request_id' => :'String'
68
72
  }
69
73
  end
70
74
 
@@ -78,7 +82,8 @@ module Carbon
78
82
  :'embedding_model',
79
83
  :'generate_sparse_vectors',
80
84
  :'prepend_filename_to_chunks',
81
- :'sync_files_on_connection'
85
+ :'sync_files_on_connection',
86
+ :'request_id'
82
87
  ])
83
88
  end
84
89
 
@@ -150,6 +155,10 @@ module Carbon
150
155
  else
151
156
  self.sync_files_on_connection = true
152
157
  end
158
+
159
+ if attributes.key?(:'request_id')
160
+ self.request_id = attributes[:'request_id']
161
+ end
153
162
  end
154
163
 
155
164
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -189,7 +198,8 @@ module Carbon
189
198
  embedding_model == o.embedding_model &&
190
199
  generate_sparse_vectors == o.generate_sparse_vectors &&
191
200
  prepend_filename_to_chunks == o.prepend_filename_to_chunks &&
192
- sync_files_on_connection == o.sync_files_on_connection
201
+ sync_files_on_connection == o.sync_files_on_connection &&
202
+ request_id == o.request_id
193
203
  end
194
204
 
195
205
  # @see the `==` method
@@ -201,7 +211,7 @@ module Carbon
201
211
  # Calculates hash code according to all attributes.
202
212
  # @return [Integer] Hash code
203
213
  def hash
204
- [tags, domain, api_key, chunk_size, chunk_overlap, skip_embedding_generation, embedding_model, generate_sparse_vectors, prepend_filename_to_chunks, sync_files_on_connection].hash
214
+ [tags, domain, api_key, chunk_size, chunk_overlap, skip_embedding_generation, embedding_model, generate_sparse_vectors, prepend_filename_to_chunks, sync_files_on_connection, request_id].hash
205
215
  end
206
216
 
207
217
  # Builds the object from hash
@@ -31,6 +31,8 @@ module Carbon
31
31
 
32
32
  attr_accessor :sync_files_on_connection
33
33
 
34
+ attr_accessor :request_id
35
+
34
36
  # Attribute mapping from ruby-style variable name to JSON key.
35
37
  def self.attribute_map
36
38
  {
@@ -43,7 +45,8 @@ module Carbon
43
45
  :'embedding_model' => :'embedding_model',
44
46
  :'generate_sparse_vectors' => :'generate_sparse_vectors',
45
47
  :'prepend_filename_to_chunks' => :'prepend_filename_to_chunks',
46
- :'sync_files_on_connection' => :'sync_files_on_connection'
48
+ :'sync_files_on_connection' => :'sync_files_on_connection',
49
+ :'request_id' => :'request_id'
47
50
  }
48
51
  end
49
52
 
@@ -64,7 +67,8 @@ module Carbon
64
67
  :'embedding_model' => :'EmbeddingGenerators',
65
68
  :'generate_sparse_vectors' => :'Boolean',
66
69
  :'prepend_filename_to_chunks' => :'Boolean',
67
- :'sync_files_on_connection' => :'Boolean'
70
+ :'sync_files_on_connection' => :'Boolean',
71
+ :'request_id' => :'String'
68
72
  }
69
73
  end
70
74
 
@@ -77,7 +81,8 @@ module Carbon
77
81
  :'skip_embedding_generation',
78
82
  :'generate_sparse_vectors',
79
83
  :'prepend_filename_to_chunks',
80
- :'sync_files_on_connection'
84
+ :'sync_files_on_connection',
85
+ :'request_id'
81
86
  ])
82
87
  end
83
88
 
@@ -149,6 +154,10 @@ module Carbon
149
154
  else
150
155
  self.sync_files_on_connection = true
151
156
  end
157
+
158
+ if attributes.key?(:'request_id')
159
+ self.request_id = attributes[:'request_id']
160
+ end
152
161
  end
153
162
 
154
163
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -188,7 +197,8 @@ module Carbon
188
197
  embedding_model == o.embedding_model &&
189
198
  generate_sparse_vectors == o.generate_sparse_vectors &&
190
199
  prepend_filename_to_chunks == o.prepend_filename_to_chunks &&
191
- sync_files_on_connection == o.sync_files_on_connection
200
+ sync_files_on_connection == o.sync_files_on_connection &&
201
+ request_id == o.request_id
192
202
  end
193
203
 
194
204
  # @see the `==` method
@@ -200,7 +210,7 @@ module Carbon
200
210
  # Calculates hash code according to all attributes.
201
211
  # @return [Integer] Hash code
202
212
  def hash
203
- [tags, organization, access_token, chunk_size, chunk_overlap, skip_embedding_generation, embedding_model, generate_sparse_vectors, prepend_filename_to_chunks, sync_files_on_connection].hash
213
+ [tags, organization, access_token, chunk_size, chunk_overlap, skip_embedding_generation, embedding_model, generate_sparse_vectors, prepend_filename_to_chunks, sync_files_on_connection, request_id].hash
204
214
  end
205
215
 
206
216
  # Builds the object from hash
@@ -29,6 +29,8 @@ module Carbon
29
29
 
30
30
  attr_accessor :prepend_filename_to_chunks
31
31
 
32
+ attr_accessor :request_id
33
+
32
34
  # Attribute mapping from ruby-style variable name to JSON key.
33
35
  def self.attribute_map
34
36
  {
@@ -40,7 +42,8 @@ module Carbon
40
42
  :'skip_embedding_generation' => :'skip_embedding_generation',
41
43
  :'embedding_model' => :'embedding_model',
42
44
  :'generate_sparse_vectors' => :'generate_sparse_vectors',
43
- :'prepend_filename_to_chunks' => :'prepend_filename_to_chunks'
45
+ :'prepend_filename_to_chunks' => :'prepend_filename_to_chunks',
46
+ :'request_id' => :'request_id'
44
47
  }
45
48
  end
46
49
 
@@ -60,7 +63,8 @@ module Carbon
60
63
  :'skip_embedding_generation' => :'Boolean',
61
64
  :'embedding_model' => :'EmbeddingGenerators',
62
65
  :'generate_sparse_vectors' => :'Boolean',
63
- :'prepend_filename_to_chunks' => :'Boolean'
66
+ :'prepend_filename_to_chunks' => :'Boolean',
67
+ :'request_id' => :'String'
64
68
  }
65
69
  end
66
70
 
@@ -72,7 +76,8 @@ module Carbon
72
76
  :'chunk_overlap',
73
77
  :'skip_embedding_generation',
74
78
  :'generate_sparse_vectors',
75
- :'prepend_filename_to_chunks'
79
+ :'prepend_filename_to_chunks',
80
+ :'request_id'
76
81
  ])
77
82
  end
78
83
 
@@ -140,6 +145,10 @@ module Carbon
140
145
  else
141
146
  self.prepend_filename_to_chunks = false
142
147
  end
148
+
149
+ if attributes.key?(:'request_id')
150
+ self.request_id = attributes[:'request_id']
151
+ end
143
152
  end
144
153
 
145
154
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -197,7 +206,8 @@ module Carbon
197
206
  skip_embedding_generation == o.skip_embedding_generation &&
198
207
  embedding_model == o.embedding_model &&
199
208
  generate_sparse_vectors == o.generate_sparse_vectors &&
200
- prepend_filename_to_chunks == o.prepend_filename_to_chunks
209
+ prepend_filename_to_chunks == o.prepend_filename_to_chunks &&
210
+ request_id == o.request_id
201
211
  end
202
212
 
203
213
  # @see the `==` method
@@ -209,7 +219,7 @@ module Carbon
209
219
  # Calculates hash code according to all attributes.
210
220
  # @return [Integer] Hash code
211
221
  def hash
212
- [tags, space_ids, data_source_id, chunk_size, chunk_overlap, skip_embedding_generation, embedding_model, generate_sparse_vectors, prepend_filename_to_chunks].hash
222
+ [tags, space_ids, data_source_id, chunk_size, chunk_overlap, skip_embedding_generation, embedding_model, generate_sparse_vectors, prepend_filename_to_chunks, request_id].hash
213
223
  end
214
224
 
215
225
  # Builds the object from hash
@@ -29,6 +29,8 @@ module Carbon
29
29
 
30
30
  attr_accessor :data_source_id
31
31
 
32
+ attr_accessor :request_id
33
+
32
34
  # Attribute mapping from ruby-style variable name to JSON key.
33
35
  def self.attribute_map
34
36
  {
@@ -40,7 +42,8 @@ module Carbon
40
42
  :'embedding_model' => :'embedding_model',
41
43
  :'generate_sparse_vectors' => :'generate_sparse_vectors',
42
44
  :'prepend_filename_to_chunks' => :'prepend_filename_to_chunks',
43
- :'data_source_id' => :'data_source_id'
45
+ :'data_source_id' => :'data_source_id',
46
+ :'request_id' => :'request_id'
44
47
  }
45
48
  end
46
49
 
@@ -60,7 +63,8 @@ module Carbon
60
63
  :'embedding_model' => :'EmbeddingGenerators',
61
64
  :'generate_sparse_vectors' => :'Boolean',
62
65
  :'prepend_filename_to_chunks' => :'Boolean',
63
- :'data_source_id' => :'Integer'
66
+ :'data_source_id' => :'Integer',
67
+ :'request_id' => :'String'
64
68
  }
65
69
  end
66
70
 
@@ -73,7 +77,8 @@ module Carbon
73
77
  :'skip_embedding_generation',
74
78
  :'generate_sparse_vectors',
75
79
  :'prepend_filename_to_chunks',
76
- :'data_source_id'
80
+ :'data_source_id',
81
+ :'request_id'
77
82
  ])
78
83
  end
79
84
 
@@ -139,6 +144,10 @@ module Carbon
139
144
  if attributes.key?(:'data_source_id')
140
145
  self.data_source_id = attributes[:'data_source_id']
141
146
  end
147
+
148
+ if attributes.key?(:'request_id')
149
+ self.request_id = attributes[:'request_id']
150
+ end
142
151
  end
143
152
 
144
153
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -172,7 +181,8 @@ module Carbon
172
181
  embedding_model == o.embedding_model &&
173
182
  generate_sparse_vectors == o.generate_sparse_vectors &&
174
183
  prepend_filename_to_chunks == o.prepend_filename_to_chunks &&
175
- data_source_id == o.data_source_id
184
+ data_source_id == o.data_source_id &&
185
+ request_id == o.request_id
176
186
  end
177
187
 
178
188
  # @see the `==` method
@@ -184,7 +194,7 @@ module Carbon
184
194
  # Calculates hash code according to all attributes.
185
195
  # @return [Integer] Hash code
186
196
  def hash
187
- [tags, filters, chunk_size, chunk_overlap, skip_embedding_generation, embedding_model, generate_sparse_vectors, prepend_filename_to_chunks, data_source_id].hash
197
+ [tags, filters, chunk_size, chunk_overlap, skip_embedding_generation, embedding_model, generate_sparse_vectors, prepend_filename_to_chunks, data_source_id, request_id].hash
188
198
  end
189
199
 
190
200
  # Builds the object from hash
@@ -53,6 +53,9 @@ module Carbon
53
53
  # Used to connect a new data source. If not specified, we will attempt to create a sync URL for an existing data source based on type and ID.
54
54
  attr_accessor :connecting_new_account
55
55
 
56
+ # This request id will be added to all files that get synced using the generated OAuth URL
57
+ attr_accessor :request_id
58
+
56
59
  # Attribute mapping from ruby-style variable name to JSON key.
57
60
  def self.attribute_map
58
61
  {
@@ -74,7 +77,8 @@ module Carbon
74
77
  :'sync_files_on_connection' => :'sync_files_on_connection',
75
78
  :'set_page_as_boundary' => :'set_page_as_boundary',
76
79
  :'data_source_id' => :'data_source_id',
77
- :'connecting_new_account' => :'connecting_new_account'
80
+ :'connecting_new_account' => :'connecting_new_account',
81
+ :'request_id' => :'request_id'
78
82
  }
79
83
  end
80
84
 
@@ -104,7 +108,8 @@ module Carbon
104
108
  :'sync_files_on_connection' => :'Boolean',
105
109
  :'set_page_as_boundary' => :'Boolean',
106
110
  :'data_source_id' => :'Integer',
107
- :'connecting_new_account' => :'Boolean'
111
+ :'connecting_new_account' => :'Boolean',
112
+ :'request_id' => :'String'
108
113
  }
109
114
  end
110
115
 
@@ -127,7 +132,8 @@ module Carbon
127
132
  :'salesforce_domain',
128
133
  :'sync_files_on_connection',
129
134
  :'data_source_id',
130
- :'connecting_new_account'
135
+ :'connecting_new_account',
136
+ :'request_id'
131
137
  ])
132
138
  end
133
139
 
@@ -239,6 +245,10 @@ module Carbon
239
245
  else
240
246
  self.connecting_new_account = false
241
247
  end
248
+
249
+ if attributes.key?(:'request_id')
250
+ self.request_id = attributes[:'request_id']
251
+ end
242
252
  end
243
253
 
244
254
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -282,7 +292,8 @@ module Carbon
282
292
  sync_files_on_connection == o.sync_files_on_connection &&
283
293
  set_page_as_boundary == o.set_page_as_boundary &&
284
294
  data_source_id == o.data_source_id &&
285
- connecting_new_account == o.connecting_new_account
295
+ connecting_new_account == o.connecting_new_account &&
296
+ request_id == o.request_id
286
297
  end
287
298
 
288
299
  # @see the `==` method
@@ -294,7 +305,7 @@ module Carbon
294
305
  # Calculates hash code according to all attributes.
295
306
  # @return [Integer] Hash code
296
307
  def hash
297
- [tags, scope, service, chunk_size, chunk_overlap, skip_embedding_generation, embedding_model, zendesk_subdomain, microsoft_tenant, sharepoint_site_name, confluence_subdomain, generate_sparse_vectors, prepend_filename_to_chunks, max_items_per_chunk, salesforce_domain, sync_files_on_connection, set_page_as_boundary, data_source_id, connecting_new_account].hash
308
+ [tags, scope, service, chunk_size, chunk_overlap, skip_embedding_generation, embedding_model, zendesk_subdomain, microsoft_tenant, sharepoint_site_name, confluence_subdomain, generate_sparse_vectors, prepend_filename_to_chunks, max_items_per_chunk, salesforce_domain, sync_files_on_connection, set_page_as_boundary, data_source_id, connecting_new_account, request_id].hash
298
309
  end
299
310
 
300
311
  # Builds the object from hash
@@ -47,6 +47,9 @@ module Carbon
47
47
  # If true, the query will return only files that have not been synced yet.
48
48
  attr_accessor :non_synced_only
49
49
 
50
+ # Filter by request ID(s) which were used to sync the files
51
+ attr_accessor :request_ids
52
+
50
53
  # Attribute mapping from ruby-style variable name to JSON key.
51
54
  def self.attribute_map
52
55
  {
@@ -62,7 +65,8 @@ module Carbon
62
65
  :'embedding_generators' => :'embedding_generators',
63
66
  :'root_files_only' => :'root_files_only',
64
67
  :'include_all_children' => :'include_all_children',
65
- :'non_synced_only' => :'non_synced_only'
68
+ :'non_synced_only' => :'non_synced_only',
69
+ :'request_ids' => :'request_ids'
66
70
  }
67
71
  end
68
72
 
@@ -86,7 +90,8 @@ module Carbon
86
90
  :'embedding_generators' => :'Array<EmbeddingGenerators>',
87
91
  :'root_files_only' => :'Boolean',
88
92
  :'include_all_children' => :'Boolean',
89
- :'non_synced_only' => :'Boolean'
93
+ :'non_synced_only' => :'Boolean',
94
+ :'request_ids' => :'Array<String>'
90
95
  }
91
96
  end
92
97
 
@@ -104,6 +109,7 @@ module Carbon
104
109
  :'organization_user_data_source_id',
105
110
  :'embedding_generators',
106
111
  :'root_files_only',
112
+ :'request_ids'
107
113
  ])
108
114
  end
109
115
 
@@ -191,21 +197,42 @@ module Carbon
191
197
  else
192
198
  self.non_synced_only = false
193
199
  end
200
+
201
+ if attributes.key?(:'request_ids')
202
+ if (value = attributes[:'request_ids']).is_a?(Array)
203
+ self.request_ids = value
204
+ end
205
+ end
194
206
  end
195
207
 
196
208
  # Show invalid properties with the reasons. Usually used together with valid?
197
209
  # @return Array for valid properties with the reasons
198
210
  def list_invalid_properties
199
211
  invalid_properties = Array.new
212
+ if !@request_ids.nil? && @request_ids.length > 100
213
+ invalid_properties.push('invalid value for "request_ids", number of items must be less than or equal to 100.')
214
+ end
215
+
200
216
  invalid_properties
201
217
  end
202
218
 
203
219
  # Check to see if the all the properties in the model are valid
204
220
  # @return true if the model is valid
205
221
  def valid?
222
+ return false if !@request_ids.nil? && @request_ids.length > 100
206
223
  true
207
224
  end
208
225
 
226
+ # Custom attribute writer method with validation
227
+ # @param [Object] request_ids Value to be assigned
228
+ def request_ids=(request_ids)
229
+ if !request_ids.nil? && request_ids.length > 100
230
+ fail ArgumentError, 'invalid value for "request_ids", number of items must be less than or equal to 100.'
231
+ end
232
+
233
+ @request_ids = request_ids
234
+ end
235
+
209
236
  # Checks equality by comparing each attribute.
210
237
  # @param [Object] Object to be compared
211
238
  def ==(o)
@@ -223,7 +250,8 @@ module Carbon
223
250
  embedding_generators == o.embedding_generators &&
224
251
  root_files_only == o.root_files_only &&
225
252
  include_all_children == o.include_all_children &&
226
- non_synced_only == o.non_synced_only
253
+ non_synced_only == o.non_synced_only &&
254
+ request_ids == o.request_ids
227
255
  end
228
256
 
229
257
  # @see the `==` method
@@ -235,7 +263,7 @@ module Carbon
235
263
  # Calculates hash code according to all attributes.
236
264
  # @return [Integer] Hash code
237
265
  def hash
238
- [tags, source, name, tags_v2, ids, external_file_ids, sync_statuses, parent_file_ids, organization_user_data_source_id, embedding_generators, root_files_only, include_all_children, non_synced_only].hash
266
+ [tags, source, name, tags_v2, ids, external_file_ids, sync_statuses, parent_file_ids, organization_user_data_source_id, embedding_generators, root_files_only, include_all_children, non_synced_only, request_ids].hash
239
267
  end
240
268
 
241
269
  # Builds the object from hash
@@ -31,6 +31,8 @@ module Carbon
31
31
 
32
32
  attr_accessor :data_source_id
33
33
 
34
+ attr_accessor :request_id
35
+
34
36
  # Attribute mapping from ruby-style variable name to JSON key.
35
37
  def self.attribute_map
36
38
  {
@@ -43,7 +45,8 @@ module Carbon
43
45
  :'embedding_model' => :'embedding_model',
44
46
  :'generate_sparse_vectors' => :'generate_sparse_vectors',
45
47
  :'prepend_filename_to_chunks' => :'prepend_filename_to_chunks',
46
- :'data_source_id' => :'data_source_id'
48
+ :'data_source_id' => :'data_source_id',
49
+ :'request_id' => :'request_id'
47
50
  }
48
51
  end
49
52
 
@@ -64,7 +67,8 @@ module Carbon
64
67
  :'embedding_model' => :'EmbeddingGenerators',
65
68
  :'generate_sparse_vectors' => :'Boolean',
66
69
  :'prepend_filename_to_chunks' => :'Boolean',
67
- :'data_source_id' => :'Integer'
70
+ :'data_source_id' => :'Integer',
71
+ :'request_id' => :'String'
68
72
  }
69
73
  end
70
74
 
@@ -78,7 +82,8 @@ module Carbon
78
82
  :'skip_embedding_generation',
79
83
  :'generate_sparse_vectors',
80
84
  :'prepend_filename_to_chunks',
81
- :'data_source_id'
85
+ :'data_source_id',
86
+ :'request_id'
82
87
  ])
83
88
  end
84
89
 
@@ -150,6 +155,10 @@ module Carbon
150
155
  if attributes.key?(:'data_source_id')
151
156
  self.data_source_id = attributes[:'data_source_id']
152
157
  end
158
+
159
+ if attributes.key?(:'request_id')
160
+ self.request_id = attributes[:'request_id']
161
+ end
153
162
  end
154
163
 
155
164
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -184,7 +193,8 @@ module Carbon
184
193
  embedding_model == o.embedding_model &&
185
194
  generate_sparse_vectors == o.generate_sparse_vectors &&
186
195
  prepend_filename_to_chunks == o.prepend_filename_to_chunks &&
187
- data_source_id == o.data_source_id
196
+ data_source_id == o.data_source_id &&
197
+ request_id == o.request_id
188
198
  end
189
199
 
190
200
  # @see the `==` method
@@ -196,7 +206,7 @@ module Carbon
196
206
  # Calculates hash code according to all attributes.
197
207
  # @return [Integer] Hash code
198
208
  def hash
199
- [tags, folder, filters, chunk_size, chunk_overlap, skip_embedding_generation, embedding_model, generate_sparse_vectors, prepend_filename_to_chunks, data_source_id].hash
209
+ [tags, folder, filters, chunk_size, chunk_overlap, skip_embedding_generation, embedding_model, generate_sparse_vectors, prepend_filename_to_chunks, data_source_id, request_id].hash
200
210
  end
201
211
 
202
212
  # Builds the object from hash
@@ -27,6 +27,8 @@ module Carbon
27
27
 
28
28
  attr_accessor :prepend_filename_to_chunks
29
29
 
30
+ attr_accessor :request_id
31
+
30
32
  # Attribute mapping from ruby-style variable name to JSON key.
31
33
  def self.attribute_map
32
34
  {
@@ -37,7 +39,8 @@ module Carbon
37
39
  :'skip_embedding_generation' => :'skip_embedding_generation',
38
40
  :'embedding_model' => :'embedding_model',
39
41
  :'generate_sparse_vectors' => :'generate_sparse_vectors',
40
- :'prepend_filename_to_chunks' => :'prepend_filename_to_chunks'
42
+ :'prepend_filename_to_chunks' => :'prepend_filename_to_chunks',
43
+ :'request_id' => :'request_id'
41
44
  }
42
45
  end
43
46
 
@@ -56,7 +59,8 @@ module Carbon
56
59
  :'skip_embedding_generation' => :'Boolean',
57
60
  :'embedding_model' => :'EmbeddingGenerators',
58
61
  :'generate_sparse_vectors' => :'Boolean',
59
- :'prepend_filename_to_chunks' => :'Boolean'
62
+ :'prepend_filename_to_chunks' => :'Boolean',
63
+ :'request_id' => :'String'
60
64
  }
61
65
  end
62
66
 
@@ -68,7 +72,8 @@ module Carbon
68
72
  :'chunk_overlap',
69
73
  :'skip_embedding_generation',
70
74
  :'generate_sparse_vectors',
71
- :'prepend_filename_to_chunks'
75
+ :'prepend_filename_to_chunks',
76
+ :'request_id'
72
77
  ])
73
78
  end
74
79
 
@@ -130,6 +135,10 @@ module Carbon
130
135
  else
131
136
  self.prepend_filename_to_chunks = false
132
137
  end
138
+
139
+ if attributes.key?(:'request_id')
140
+ self.request_id = attributes[:'request_id']
141
+ end
133
142
  end
134
143
 
135
144
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -162,7 +171,8 @@ module Carbon
162
171
  skip_embedding_generation == o.skip_embedding_generation &&
163
172
  embedding_model == o.embedding_model &&
164
173
  generate_sparse_vectors == o.generate_sparse_vectors &&
165
- prepend_filename_to_chunks == o.prepend_filename_to_chunks
174
+ prepend_filename_to_chunks == o.prepend_filename_to_chunks &&
175
+ request_id == o.request_id
166
176
  end
167
177
 
168
178
  # @see the `==` method
@@ -174,7 +184,7 @@ module Carbon
174
184
  # Calculates hash code according to all attributes.
175
185
  # @return [Integer] Hash code
176
186
  def hash
177
- [tags, url, chunk_size, chunk_overlap, skip_embedding_generation, embedding_model, generate_sparse_vectors, prepend_filename_to_chunks].hash
187
+ [tags, url, chunk_size, chunk_overlap, skip_embedding_generation, embedding_model, generate_sparse_vectors, prepend_filename_to_chunks, request_id].hash
178
188
  end
179
189
 
180
190
  # Builds the object from hash