carbon_ruby_sdk 0.1.23 → 0.1.25

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +135 -9
  4. data/lib/carbon_ruby_sdk/api/embeddings_api.rb +2 -2
  5. data/lib/carbon_ruby_sdk/api/integrations_api.rb +252 -18
  6. data/lib/carbon_ruby_sdk/api/organizations_api.rb +92 -0
  7. data/lib/carbon_ruby_sdk/api/users_api.rb +2 -2
  8. data/lib/carbon_ruby_sdk/models/chunks_and_embeddings_upload_input.rb +4 -2
  9. data/lib/carbon_ruby_sdk/models/custom_credentials_type.rb +39 -0
  10. data/lib/carbon_ruby_sdk/models/embedding_generators.rb +2 -1
  11. data/lib/carbon_ruby_sdk/models/embedding_generators_nullable.rb +2 -1
  12. data/lib/carbon_ruby_sdk/models/external_source_items_order_by.rb +37 -0
  13. data/lib/carbon_ruby_sdk/models/file_statistics.rb +15 -5
  14. data/lib/carbon_ruby_sdk/models/file_statistics_nullable.rb +15 -5
  15. data/lib/carbon_ruby_sdk/models/fresh_desk_connect_request.rb +17 -5
  16. data/lib/carbon_ruby_sdk/models/gitbook_connect_request.rb +17 -5
  17. data/lib/carbon_ruby_sdk/models/github_connect_request.rb +16 -4
  18. data/lib/carbon_ruby_sdk/models/github_fetch_repos_request.rb +260 -0
  19. data/lib/carbon_ruby_sdk/models/list_data_source_items_request.rb +26 -4
  20. data/lib/carbon_ruby_sdk/models/o_auth_url_request.rb +18 -6
  21. data/lib/carbon_ruby_sdk/models/order_dir_v2.rb +36 -0
  22. data/lib/carbon_ruby_sdk/models/organization_response.rb +15 -1
  23. data/lib/carbon_ruby_sdk/models/organization_user_data_source_api.rb +19 -5
  24. data/lib/carbon_ruby_sdk/models/s3_auth_request.rb +16 -4
  25. data/lib/carbon_ruby_sdk/models/sync_files_request.rb +1 -1
  26. data/lib/carbon_ruby_sdk/models/sync_options.rb +17 -5
  27. data/lib/carbon_ruby_sdk/models/text_embedding_generators.rb +7 -1
  28. data/lib/carbon_ruby_sdk/models/update_organization_input.rb +216 -0
  29. data/lib/carbon_ruby_sdk/models/update_users_input.rb +41 -41
  30. data/lib/carbon_ruby_sdk/models/user_configuration.rb +268 -0
  31. data/lib/carbon_ruby_sdk/models/user_configuration_nullable.rb +269 -0
  32. data/lib/carbon_ruby_sdk/version.rb +1 -1
  33. data/lib/carbon_ruby_sdk.rb +7 -0
  34. data/spec/api/integrations_api_spec.rb +26 -0
  35. data/spec/api/organizations_api_spec.rb +11 -0
  36. data/spec/models/custom_credentials_type_spec.rb +22 -0
  37. data/spec/models/external_source_items_order_by_spec.rb +22 -0
  38. data/spec/models/file_statistics_nullable_spec.rb +6 -0
  39. data/spec/models/file_statistics_spec.rb +6 -0
  40. data/spec/models/fresh_desk_connect_request_spec.rb +6 -0
  41. data/spec/models/gitbook_connect_request_spec.rb +6 -0
  42. data/spec/models/github_connect_request_spec.rb +6 -0
  43. data/spec/models/github_fetch_repos_request_spec.rb +34 -0
  44. data/spec/models/list_data_source_items_request_spec.rb +12 -0
  45. data/spec/models/o_auth_url_request_spec.rb +6 -0
  46. data/spec/models/order_dir_v2_spec.rb +22 -0
  47. data/spec/models/organization_response_spec.rb +6 -0
  48. data/spec/models/organization_user_data_source_api_spec.rb +6 -0
  49. data/spec/models/s3_auth_request_spec.rb +6 -0
  50. data/spec/models/sync_options_spec.rb +6 -0
  51. data/spec/models/update_organization_input_spec.rb +28 -0
  52. data/spec/models/update_users_input_spec.rb +4 -4
  53. data/spec/models/user_configuration_nullable_spec.rb +40 -0
  54. data/spec/models/user_configuration_spec.rb +40 -0
  55. metadata +23 -2
@@ -19,13 +19,19 @@ module Carbon
19
19
 
20
20
  attr_accessor :pagination
21
21
 
22
+ attr_accessor :order_by
23
+
24
+ attr_accessor :order_dir
25
+
22
26
  # Attribute mapping from ruby-style variable name to JSON key.
23
27
  def self.attribute_map
24
28
  {
25
29
  :'data_source_id' => :'data_source_id',
26
30
  :'parent_id' => :'parent_id',
27
31
  :'filters' => :'filters',
28
- :'pagination' => :'pagination'
32
+ :'pagination' => :'pagination',
33
+ :'order_by' => :'order_by',
34
+ :'order_dir' => :'order_dir'
29
35
  }
30
36
  end
31
37
 
@@ -40,7 +46,9 @@ module Carbon
40
46
  :'data_source_id' => :'Integer',
41
47
  :'parent_id' => :'String',
42
48
  :'filters' => :'ListItemsFiltersNullable',
43
- :'pagination' => :'Pagination'
49
+ :'pagination' => :'Pagination',
50
+ :'order_by' => :'ExternalSourceItemsOrderBy',
51
+ :'order_dir' => :'OrderDirV2'
44
52
  }
45
53
  end
46
54
 
@@ -82,6 +90,18 @@ module Carbon
82
90
  if attributes.key?(:'pagination')
83
91
  self.pagination = attributes[:'pagination']
84
92
  end
93
+
94
+ if attributes.key?(:'order_by')
95
+ self.order_by = attributes[:'order_by']
96
+ else
97
+ self.order_by = 'name'
98
+ end
99
+
100
+ if attributes.key?(:'order_dir')
101
+ self.order_dir = attributes[:'order_dir']
102
+ else
103
+ self.order_dir = 'asc'
104
+ end
85
105
  end
86
106
 
87
107
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -110,7 +130,9 @@ module Carbon
110
130
  data_source_id == o.data_source_id &&
111
131
  parent_id == o.parent_id &&
112
132
  filters == o.filters &&
113
- pagination == o.pagination
133
+ pagination == o.pagination &&
134
+ order_by == o.order_by &&
135
+ order_dir == o.order_dir
114
136
  end
115
137
 
116
138
  # @see the `==` method
@@ -122,7 +144,7 @@ module Carbon
122
144
  # Calculates hash code according to all attributes.
123
145
  # @return [Integer] Hash code
124
146
  def hash
125
- [data_source_id, parent_id, filters, pagination].hash
147
+ [data_source_id, parent_id, filters, pagination, order_by, order_dir].hash
126
148
  end
127
149
 
128
150
  # Builds the object from hash
@@ -61,9 +61,12 @@ module Carbon
61
61
 
62
62
  attr_accessor :parse_pdf_tables_with_ocr
63
63
 
64
- # Enable integration's file picker for sources that support it. Supported sources: DROPBOX, BOX, ONEDRIVE, GOOGLE_DRIVE, SHAREPOINT
64
+ # Enable integration's file picker for sources that support it. Supported sources: BOX, SHAREPOINT, ONEDRIVE, DROPBOX, GOOGLE_DRIVE
65
65
  attr_accessor :enable_file_picker
66
66
 
67
+ # Enabling this flag will fetch all available content from the source to be listed via list items endpoint
68
+ attr_accessor :sync_source_items
69
+
67
70
  # Attribute mapping from ruby-style variable name to JSON key.
68
71
  def self.attribute_map
69
72
  {
@@ -89,7 +92,8 @@ module Carbon
89
92
  :'request_id' => :'request_id',
90
93
  :'use_ocr' => :'use_ocr',
91
94
  :'parse_pdf_tables_with_ocr' => :'parse_pdf_tables_with_ocr',
92
- :'enable_file_picker' => :'enable_file_picker'
95
+ :'enable_file_picker' => :'enable_file_picker',
96
+ :'sync_source_items' => :'sync_source_items'
93
97
  }
94
98
  end
95
99
 
@@ -123,7 +127,8 @@ module Carbon
123
127
  :'request_id' => :'String',
124
128
  :'use_ocr' => :'Boolean',
125
129
  :'parse_pdf_tables_with_ocr' => :'Boolean',
126
- :'enable_file_picker' => :'Boolean'
130
+ :'enable_file_picker' => :'Boolean',
131
+ :'sync_source_items' => :'Boolean'
127
132
  }
128
133
  end
129
134
 
@@ -264,7 +269,7 @@ module Carbon
264
269
  if attributes.key?(:'request_id')
265
270
  self.request_id = attributes[:'request_id']
266
271
  else
267
- self.request_id = '76343a7e-0175-49f8-957c-e1133ae388ac'
272
+ self.request_id = '1975f217-47e4-4867-8acd-5bdb2858049b'
268
273
  end
269
274
 
270
275
  if attributes.key?(:'use_ocr')
@@ -284,6 +289,12 @@ module Carbon
284
289
  else
285
290
  self.enable_file_picker = true
286
291
  end
292
+
293
+ if attributes.key?(:'sync_source_items')
294
+ self.sync_source_items = attributes[:'sync_source_items']
295
+ else
296
+ self.sync_source_items = true
297
+ end
287
298
  end
288
299
 
289
300
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -331,7 +342,8 @@ module Carbon
331
342
  request_id == o.request_id &&
332
343
  use_ocr == o.use_ocr &&
333
344
  parse_pdf_tables_with_ocr == o.parse_pdf_tables_with_ocr &&
334
- enable_file_picker == o.enable_file_picker
345
+ enable_file_picker == o.enable_file_picker &&
346
+ sync_source_items == o.sync_source_items
335
347
  end
336
348
 
337
349
  # @see the `==` method
@@ -343,7 +355,7 @@ module Carbon
343
355
  # Calculates hash code according to all attributes.
344
356
  # @return [Integer] Hash code
345
357
  def hash
346
- [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, use_ocr, parse_pdf_tables_with_ocr, enable_file_picker].hash
358
+ [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, use_ocr, parse_pdf_tables_with_ocr, enable_file_picker, sync_source_items].hash
347
359
  end
348
360
 
349
361
  # Builds the object from hash
@@ -0,0 +1,36 @@
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 'date'
10
+ require 'time'
11
+
12
+ module Carbon
13
+ class OrderDirV2
14
+ ASC = "asc".freeze
15
+ DESC = "desc".freeze
16
+
17
+ def self.all_vars
18
+ @all_vars ||= [ASC, DESC].freeze
19
+ end
20
+
21
+ # Builds the enum from string
22
+ # @param [String] The enum value in the form of the string
23
+ # @return [String] The enum value
24
+ def self.build_from_hash(value)
25
+ new.build_from_hash(value)
26
+ end
27
+
28
+ # Builds the enum from string
29
+ # @param [String] The enum value in the form of the string
30
+ # @return [String] The enum value
31
+ def build_from_hash(value)
32
+ return value if OrderDirV2.all_vars.include?(value)
33
+ raise "Invalid ENUM value #{value} for class #OrderDirV2"
34
+ end
35
+ end
36
+ end
@@ -35,6 +35,8 @@ module Carbon
35
35
 
36
36
  attr_accessor :cancel_at_period_end
37
37
 
38
+ attr_accessor :global_user_config
39
+
38
40
  attr_accessor :created_at
39
41
 
40
42
  attr_accessor :updated_at
@@ -54,6 +56,7 @@ module Carbon
54
56
  :'aggregate_num_embeddings' => :'aggregate_num_embeddings',
55
57
  :'period_ends_at' => :'period_ends_at',
56
58
  :'cancel_at_period_end' => :'cancel_at_period_end',
59
+ :'global_user_config' => :'global_user_config',
57
60
  :'created_at' => :'created_at',
58
61
  :'updated_at' => :'updated_at'
59
62
  }
@@ -79,6 +82,7 @@ module Carbon
79
82
  :'aggregate_num_embeddings' => :'Object',
80
83
  :'period_ends_at' => :'Time',
81
84
  :'cancel_at_period_end' => :'Boolean',
85
+ :'global_user_config' => :'Object',
82
86
  :'created_at' => :'Time',
83
87
  :'updated_at' => :'Time'
84
88
  }
@@ -158,6 +162,10 @@ module Carbon
158
162
  self.cancel_at_period_end = attributes[:'cancel_at_period_end']
159
163
  end
160
164
 
165
+ if attributes.key?(:'global_user_config')
166
+ self.global_user_config = attributes[:'global_user_config']
167
+ end
168
+
161
169
  if attributes.key?(:'created_at')
162
170
  self.created_at = attributes[:'created_at']
163
171
  end
@@ -199,6 +207,10 @@ module Carbon
199
207
  invalid_properties.push('invalid value for "aggregate_num_embeddings", aggregate_num_embeddings cannot be nil.')
200
208
  end
201
209
 
210
+ if @global_user_config.nil?
211
+ invalid_properties.push('invalid value for "global_user_config", global_user_config cannot be nil.')
212
+ end
213
+
202
214
  if @created_at.nil?
203
215
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
204
216
  end
@@ -220,6 +232,7 @@ module Carbon
220
232
  return false if @aggregate_num_characters.nil?
221
233
  return false if @aggregate_num_tokens.nil?
222
234
  return false if @aggregate_num_embeddings.nil?
235
+ return false if @global_user_config.nil?
223
236
  return false if @created_at.nil?
224
237
  return false if @updated_at.nil?
225
238
  true
@@ -242,6 +255,7 @@ module Carbon
242
255
  aggregate_num_embeddings == o.aggregate_num_embeddings &&
243
256
  period_ends_at == o.period_ends_at &&
244
257
  cancel_at_period_end == o.cancel_at_period_end &&
258
+ global_user_config == o.global_user_config &&
245
259
  created_at == o.created_at &&
246
260
  updated_at == o.updated_at
247
261
  end
@@ -255,7 +269,7 @@ module Carbon
255
269
  # Calculates hash code according to all attributes.
256
270
  # @return [Integer] Hash code
257
271
  def hash
258
- [id, name, nickname, remove_branding, custom_branding, custom_limits, aggregate_file_size, aggregate_num_characters, aggregate_num_tokens, aggregate_num_embeddings, period_ends_at, cancel_at_period_end, created_at, updated_at].hash
272
+ [id, name, nickname, remove_branding, custom_branding, custom_limits, aggregate_file_size, aggregate_num_characters, aggregate_num_tokens, aggregate_num_embeddings, period_ends_at, cancel_at_period_end, global_user_config, created_at, updated_at].hash
259
273
  end
260
274
 
261
275
  # Builds the object from hash
@@ -43,6 +43,8 @@ module Carbon
43
43
 
44
44
  attr_accessor :files_synced_at
45
45
 
46
+ attr_accessor :data_source_metadata
47
+
46
48
  # Attribute mapping from ruby-style variable name to JSON key.
47
49
  def self.attribute_map
48
50
  {
@@ -61,7 +63,8 @@ module Carbon
61
63
  :'enable_auto_sync' => :'enable_auto_sync',
62
64
  :'created_at' => :'created_at',
63
65
  :'updated_at' => :'updated_at',
64
- :'files_synced_at' => :'files_synced_at'
66
+ :'files_synced_at' => :'files_synced_at',
67
+ :'data_source_metadata' => :'data_source_metadata'
65
68
  }
66
69
  end
67
70
 
@@ -88,7 +91,8 @@ module Carbon
88
91
  :'enable_auto_sync' => :'Boolean',
89
92
  :'created_at' => :'Time',
90
93
  :'updated_at' => :'Time',
91
- :'files_synced_at' => :'Time'
94
+ :'files_synced_at' => :'Time',
95
+ :'data_source_metadata' => :'Object'
92
96
  }
93
97
  end
94
98
 
@@ -99,7 +103,7 @@ module Carbon
99
103
  :'token',
100
104
  :'source_items_synced_at',
101
105
  :'enable_auto_sync',
102
- :'files_synced_at'
106
+ :'files_synced_at',
103
107
  ])
104
108
  end
105
109
 
@@ -181,6 +185,10 @@ module Carbon
181
185
  if attributes.key?(:'files_synced_at')
182
186
  self.files_synced_at = attributes[:'files_synced_at']
183
187
  end
188
+
189
+ if attributes.key?(:'data_source_metadata')
190
+ self.data_source_metadata = attributes[:'data_source_metadata']
191
+ end
184
192
  end
185
193
 
186
194
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -231,6 +239,10 @@ module Carbon
231
239
  invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
232
240
  end
233
241
 
242
+ if @data_source_metadata.nil?
243
+ invalid_properties.push('invalid value for "data_source_metadata", data_source_metadata cannot be nil.')
244
+ end
245
+
234
246
  invalid_properties
235
247
  end
236
248
 
@@ -248,6 +260,7 @@ module Carbon
248
260
  return false if @last_sync_action.nil?
249
261
  return false if @created_at.nil?
250
262
  return false if @updated_at.nil?
263
+ return false if @data_source_metadata.nil?
251
264
  true
252
265
  end
253
266
 
@@ -271,7 +284,8 @@ module Carbon
271
284
  enable_auto_sync == o.enable_auto_sync &&
272
285
  created_at == o.created_at &&
273
286
  updated_at == o.updated_at &&
274
- files_synced_at == o.files_synced_at
287
+ files_synced_at == o.files_synced_at &&
288
+ data_source_metadata == o.data_source_metadata
275
289
  end
276
290
 
277
291
  # @see the `==` method
@@ -283,7 +297,7 @@ module Carbon
283
297
  # Calculates hash code according to all attributes.
284
298
  # @return [Integer] Hash code
285
299
  def hash
286
- [id, data_source_external_id, data_source_type, token, sync_status, source_items_synced_at, organization_user_id, organization_id, organization_supplied_user_id, revoked_access, last_synced_at, last_sync_action, enable_auto_sync, created_at, updated_at, files_synced_at].hash
300
+ [id, data_source_external_id, data_source_type, token, sync_status, source_items_synced_at, organization_user_id, organization_id, organization_supplied_user_id, revoked_access, last_synced_at, last_sync_action, enable_auto_sync, created_at, updated_at, files_synced_at, data_source_metadata].hash
287
301
  end
288
302
 
289
303
  # Builds the object from hash
@@ -15,11 +15,15 @@ module Carbon
15
15
 
16
16
  attr_accessor :access_key_secret
17
17
 
18
+ # Enabling this flag will fetch all available content from the source to be listed via list items endpoint
19
+ attr_accessor :sync_source_items
20
+
18
21
  # Attribute mapping from ruby-style variable name to JSON key.
19
22
  def self.attribute_map
20
23
  {
21
24
  :'access_key' => :'access_key',
22
- :'access_key_secret' => :'access_key_secret'
25
+ :'access_key_secret' => :'access_key_secret',
26
+ :'sync_source_items' => :'sync_source_items'
23
27
  }
24
28
  end
25
29
 
@@ -32,7 +36,8 @@ module Carbon
32
36
  def self.openapi_types
33
37
  {
34
38
  :'access_key' => :'String',
35
- :'access_key_secret' => :'String'
39
+ :'access_key_secret' => :'String',
40
+ :'sync_source_items' => :'Boolean'
36
41
  }
37
42
  end
38
43
 
@@ -64,6 +69,12 @@ module Carbon
64
69
  if attributes.key?(:'access_key_secret')
65
70
  self.access_key_secret = attributes[:'access_key_secret']
66
71
  end
72
+
73
+ if attributes.key?(:'sync_source_items')
74
+ self.sync_source_items = attributes[:'sync_source_items']
75
+ else
76
+ self.sync_source_items = true
77
+ end
67
78
  end
68
79
 
69
80
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -95,7 +106,8 @@ module Carbon
95
106
  return true if self.equal?(o)
96
107
  self.class == o.class &&
97
108
  access_key == o.access_key &&
98
- access_key_secret == o.access_key_secret
109
+ access_key_secret == o.access_key_secret &&
110
+ sync_source_items == o.sync_source_items
99
111
  end
100
112
 
101
113
  # @see the `==` method
@@ -107,7 +119,7 @@ module Carbon
107
119
  # Calculates hash code according to all attributes.
108
120
  # @return [Integer] Hash code
109
121
  def hash
110
- [access_key, access_key_secret].hash
122
+ [access_key, access_key_secret, sync_source_items].hash
111
123
  end
112
124
 
113
125
  # Builds the object from hash
@@ -177,7 +177,7 @@ module Carbon
177
177
  if attributes.key?(:'request_id')
178
178
  self.request_id = attributes[:'request_id']
179
179
  else
180
- self.request_id = '74c95466-42b2-4213-ae36-bfafbaecfcf5'
180
+ self.request_id = 'a7c990f4-5923-47b5-a9f8-6ef5416fe5c3'
181
181
  end
182
182
 
183
183
  if attributes.key?(:'use_ocr')
@@ -37,6 +37,9 @@ module Carbon
37
37
 
38
38
  attr_accessor :enable_file_picker
39
39
 
40
+ # Enabling this flag will fetch all available content from the source to be listed via list items endpoint
41
+ attr_accessor :sync_source_items
42
+
40
43
  # Attribute mapping from ruby-style variable name to JSON key.
41
44
  def self.attribute_map
42
45
  {
@@ -51,7 +54,8 @@ module Carbon
51
54
  :'sync_files_on_connection' => :'sync_files_on_connection',
52
55
  :'set_page_as_boundary' => :'set_page_as_boundary',
53
56
  :'request_id' => :'request_id',
54
- :'enable_file_picker' => :'enable_file_picker'
57
+ :'enable_file_picker' => :'enable_file_picker',
58
+ :'sync_source_items' => :'sync_source_items'
55
59
  }
56
60
  end
57
61
 
@@ -74,7 +78,8 @@ module Carbon
74
78
  :'sync_files_on_connection' => :'Boolean',
75
79
  :'set_page_as_boundary' => :'Boolean',
76
80
  :'request_id' => :'String',
77
- :'enable_file_picker' => :'Boolean'
81
+ :'enable_file_picker' => :'Boolean',
82
+ :'sync_source_items' => :'Boolean'
78
83
  }
79
84
  end
80
85
 
@@ -167,7 +172,7 @@ module Carbon
167
172
  if attributes.key?(:'request_id')
168
173
  self.request_id = attributes[:'request_id']
169
174
  else
170
- self.request_id = 'e8fddc9a-4810-48b2-b1b5-b1ec0159625a'
175
+ self.request_id = '18492fc0-bd2f-48d4-a035-8d12f762cc76'
171
176
  end
172
177
 
173
178
  if attributes.key?(:'enable_file_picker')
@@ -175,6 +180,12 @@ module Carbon
175
180
  else
176
181
  self.enable_file_picker = true
177
182
  end
183
+
184
+ if attributes.key?(:'sync_source_items')
185
+ self.sync_source_items = attributes[:'sync_source_items']
186
+ else
187
+ self.sync_source_items = true
188
+ end
178
189
  end
179
190
 
180
191
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -206,7 +217,8 @@ module Carbon
206
217
  sync_files_on_connection == o.sync_files_on_connection &&
207
218
  set_page_as_boundary == o.set_page_as_boundary &&
208
219
  request_id == o.request_id &&
209
- enable_file_picker == o.enable_file_picker
220
+ enable_file_picker == o.enable_file_picker &&
221
+ sync_source_items == o.sync_source_items
210
222
  end
211
223
 
212
224
  # @see the `==` method
@@ -218,7 +230,7 @@ module Carbon
218
230
  # Calculates hash code according to all attributes.
219
231
  # @return [Integer] Hash code
220
232
  def hash
221
- [tags, chunk_size, chunk_overlap, skip_embedding_generation, embedding_model, generate_sparse_vectors, prepend_filename_to_chunks, max_items_per_chunk, sync_files_on_connection, set_page_as_boundary, request_id, enable_file_picker].hash
233
+ [tags, chunk_size, chunk_overlap, skip_embedding_generation, embedding_model, generate_sparse_vectors, prepend_filename_to_chunks, max_items_per_chunk, sync_files_on_connection, set_page_as_boundary, request_id, enable_file_picker, sync_source_items].hash
222
234
  end
223
235
 
224
236
  # Builds the object from hash
@@ -19,9 +19,15 @@ module Carbon
19
19
  OPENAI_ADA_LARGE_3072 = "OPENAI_ADA_LARGE_3072".freeze
20
20
  OPENAI_ADA_SMALL_512 = "OPENAI_ADA_SMALL_512".freeze
21
21
  OPENAI_ADA_SMALL_1536 = "OPENAI_ADA_SMALL_1536".freeze
22
+ AZURE_ADA_LARGE_256 = "AZURE_ADA_LARGE_256".freeze
23
+ AZURE_ADA_LARGE_1024 = "AZURE_ADA_LARGE_1024".freeze
24
+ AZURE_ADA_LARGE_3072 = "AZURE_ADA_LARGE_3072".freeze
25
+ AZURE_ADA_SMALL_512 = "AZURE_ADA_SMALL_512".freeze
26
+ AZURE_ADA_SMALL_1536 = "AZURE_ADA_SMALL_1536".freeze
27
+ SOLAR_1_MINI = "SOLAR_1_MINI".freeze
22
28
 
23
29
  def self.all_vars
24
- @all_vars ||= [OPENAI, AZURE_OPENAI, COHERE_MULTILINGUAL_V3, OPENAI_ADA_LARGE_256, OPENAI_ADA_LARGE_1024, OPENAI_ADA_LARGE_3072, OPENAI_ADA_SMALL_512, OPENAI_ADA_SMALL_1536].freeze
30
+ @all_vars ||= [OPENAI, AZURE_OPENAI, COHERE_MULTILINGUAL_V3, OPENAI_ADA_LARGE_256, OPENAI_ADA_LARGE_1024, OPENAI_ADA_LARGE_3072, OPENAI_ADA_SMALL_512, OPENAI_ADA_SMALL_1536, AZURE_ADA_LARGE_256, AZURE_ADA_LARGE_1024, AZURE_ADA_LARGE_3072, AZURE_ADA_SMALL_512, AZURE_ADA_SMALL_1536, SOLAR_1_MINI].freeze
25
31
  end
26
32
 
27
33
  # Builds the enum from string