carbon_ruby_sdk 0.1.33 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +70 -13
  4. data/lib/carbon_ruby_sdk/api/files_api.rb +9 -2
  5. data/lib/carbon_ruby_sdk/api/integrations_api.rb +34 -22
  6. data/lib/carbon_ruby_sdk/api/organizations_api.rb +83 -0
  7. data/lib/carbon_ruby_sdk/models/data_source_type.rb +9 -2
  8. data/lib/carbon_ruby_sdk/models/data_source_type_nullable.rb +9 -2
  9. data/lib/carbon_ruby_sdk/models/fetch_urls_response.rb +14 -4
  10. data/lib/carbon_ruby_sdk/models/file_content_types.rb +3 -1
  11. data/lib/carbon_ruby_sdk/models/file_content_types_nullable.rb +3 -1
  12. data/lib/carbon_ruby_sdk/models/file_formats.rb +9 -3
  13. data/lib/carbon_ruby_sdk/models/file_formats_nullable.rb +9 -3
  14. data/lib/carbon_ruby_sdk/models/{helpdesk_file_sync_config.rb → file_sync_config.rb} +28 -14
  15. data/lib/carbon_ruby_sdk/models/{helpdesk_file_sync_config_nullable.rb → file_sync_config_nullable.rb} +28 -14
  16. data/lib/carbon_ruby_sdk/models/fresh_desk_connect_request.rb +1 -1
  17. data/lib/carbon_ruby_sdk/models/gmail_sync_input.rb +11 -1
  18. data/lib/carbon_ruby_sdk/models/o_auth_url_request.rb +3 -3
  19. data/lib/carbon_ruby_sdk/models/organization_response.rb +39 -1
  20. data/lib/carbon_ruby_sdk/models/outlook_sync_input.rb +11 -1
  21. data/lib/carbon_ruby_sdk/models/s3_file_sync_input.rb +15 -5
  22. data/lib/carbon_ruby_sdk/models/sync_files_request.rb +2 -2
  23. data/lib/carbon_ruby_sdk/models/sync_options.rb +2 -2
  24. data/lib/carbon_ruby_sdk/models/user_file.rb +15 -11
  25. data/lib/carbon_ruby_sdk/models/user_response.rb +85 -1
  26. data/lib/carbon_ruby_sdk/models/webhook.rb +25 -1
  27. data/lib/carbon_ruby_sdk/models/webhook_no_key.rb +25 -1
  28. data/lib/carbon_ruby_sdk/models/webhook_status.rb +36 -0
  29. data/lib/carbon_ruby_sdk/version.rb +1 -1
  30. data/lib/carbon_ruby_sdk.rb +3 -4
  31. data/spec/api/files_api_spec.rb +1 -0
  32. data/spec/api/organizations_api_spec.rb +11 -0
  33. data/spec/models/fetch_urls_response_spec.rb +6 -0
  34. data/spec/models/file_sync_config_nullable_spec.rb +40 -0
  35. data/spec/models/file_sync_config_spec.rb +40 -0
  36. data/spec/models/gmail_sync_input_spec.rb +6 -0
  37. data/spec/models/organization_response_spec.rb +18 -0
  38. data/spec/models/outlook_sync_input_spec.rb +6 -0
  39. data/spec/models/s3_file_sync_input_spec.rb +6 -0
  40. data/spec/models/user_file_spec.rb +2 -2
  41. data/spec/models/user_response_spec.rb +36 -0
  42. data/spec/models/webhook_no_key_spec.rb +12 -0
  43. data/spec/models/webhook_spec.rb +12 -0
  44. data/spec/models/webhook_status_spec.rb +22 -0
  45. metadata +11 -14
  46. data/lib/carbon_ruby_sdk/models/helpdesk_global_file_sync_config.rb +0 -217
  47. data/lib/carbon_ruby_sdk/models/helpdesk_global_file_sync_config_nullable.rb +0 -218
  48. data/spec/models/helpdesk_file_sync_config_nullable_spec.rb +0 -34
  49. data/spec/models/helpdesk_file_sync_config_spec.rb +0 -34
  50. data/spec/models/helpdesk_global_file_sync_config_nullable_spec.rb +0 -28
  51. data/spec/models/helpdesk_global_file_sync_config_spec.rb +0 -28
@@ -31,6 +31,12 @@ module Carbon
31
31
 
32
32
  attr_accessor :aggregate_num_embeddings
33
33
 
34
+ attr_accessor :aggregate_num_files_by_source
35
+
36
+ attr_accessor :aggregate_num_files_by_file_format
37
+
38
+ attr_accessor :file_statistics_aggregated_at
39
+
34
40
  attr_accessor :period_ends_at
35
41
 
36
42
  attr_accessor :cancel_at_period_end
@@ -54,6 +60,9 @@ module Carbon
54
60
  :'aggregate_num_characters' => :'aggregate_num_characters',
55
61
  :'aggregate_num_tokens' => :'aggregate_num_tokens',
56
62
  :'aggregate_num_embeddings' => :'aggregate_num_embeddings',
63
+ :'aggregate_num_files_by_source' => :'aggregate_num_files_by_source',
64
+ :'aggregate_num_files_by_file_format' => :'aggregate_num_files_by_file_format',
65
+ :'file_statistics_aggregated_at' => :'file_statistics_aggregated_at',
57
66
  :'period_ends_at' => :'period_ends_at',
58
67
  :'cancel_at_period_end' => :'cancel_at_period_end',
59
68
  :'global_user_config' => :'global_user_config',
@@ -80,6 +89,9 @@ module Carbon
80
89
  :'aggregate_num_characters' => :'Object',
81
90
  :'aggregate_num_tokens' => :'Object',
82
91
  :'aggregate_num_embeddings' => :'Object',
92
+ :'aggregate_num_files_by_source' => :'Object',
93
+ :'aggregate_num_files_by_file_format' => :'Object',
94
+ :'file_statistics_aggregated_at' => :'Time',
83
95
  :'period_ends_at' => :'Time',
84
96
  :'cancel_at_period_end' => :'Boolean',
85
97
  :'global_user_config' => :'Object',
@@ -94,6 +106,7 @@ module Carbon
94
106
  :'nickname',
95
107
  :'custom_branding',
96
108
  :'custom_limits',
109
+ :'file_statistics_aggregated_at',
97
110
  :'period_ends_at',
98
111
  :'cancel_at_period_end',
99
112
  ])
@@ -154,6 +167,18 @@ module Carbon
154
167
  self.aggregate_num_embeddings = attributes[:'aggregate_num_embeddings']
155
168
  end
156
169
 
170
+ if attributes.key?(:'aggregate_num_files_by_source')
171
+ self.aggregate_num_files_by_source = attributes[:'aggregate_num_files_by_source']
172
+ end
173
+
174
+ if attributes.key?(:'aggregate_num_files_by_file_format')
175
+ self.aggregate_num_files_by_file_format = attributes[:'aggregate_num_files_by_file_format']
176
+ end
177
+
178
+ if attributes.key?(:'file_statistics_aggregated_at')
179
+ self.file_statistics_aggregated_at = attributes[:'file_statistics_aggregated_at']
180
+ end
181
+
157
182
  if attributes.key?(:'period_ends_at')
158
183
  self.period_ends_at = attributes[:'period_ends_at']
159
184
  end
@@ -207,6 +232,14 @@ module Carbon
207
232
  invalid_properties.push('invalid value for "aggregate_num_embeddings", aggregate_num_embeddings cannot be nil.')
208
233
  end
209
234
 
235
+ if @aggregate_num_files_by_source.nil?
236
+ invalid_properties.push('invalid value for "aggregate_num_files_by_source", aggregate_num_files_by_source cannot be nil.')
237
+ end
238
+
239
+ if @aggregate_num_files_by_file_format.nil?
240
+ invalid_properties.push('invalid value for "aggregate_num_files_by_file_format", aggregate_num_files_by_file_format cannot be nil.')
241
+ end
242
+
210
243
  if @global_user_config.nil?
211
244
  invalid_properties.push('invalid value for "global_user_config", global_user_config cannot be nil.')
212
245
  end
@@ -232,6 +265,8 @@ module Carbon
232
265
  return false if @aggregate_num_characters.nil?
233
266
  return false if @aggregate_num_tokens.nil?
234
267
  return false if @aggregate_num_embeddings.nil?
268
+ return false if @aggregate_num_files_by_source.nil?
269
+ return false if @aggregate_num_files_by_file_format.nil?
235
270
  return false if @global_user_config.nil?
236
271
  return false if @created_at.nil?
237
272
  return false if @updated_at.nil?
@@ -253,6 +288,9 @@ module Carbon
253
288
  aggregate_num_characters == o.aggregate_num_characters &&
254
289
  aggregate_num_tokens == o.aggregate_num_tokens &&
255
290
  aggregate_num_embeddings == o.aggregate_num_embeddings &&
291
+ aggregate_num_files_by_source == o.aggregate_num_files_by_source &&
292
+ aggregate_num_files_by_file_format == o.aggregate_num_files_by_file_format &&
293
+ file_statistics_aggregated_at == o.file_statistics_aggregated_at &&
256
294
  period_ends_at == o.period_ends_at &&
257
295
  cancel_at_period_end == o.cancel_at_period_end &&
258
296
  global_user_config == o.global_user_config &&
@@ -269,7 +307,7 @@ module Carbon
269
307
  # Calculates hash code according to all attributes.
270
308
  # @return [Integer] Hash code
271
309
  def 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
310
+ [id, name, nickname, remove_branding, custom_branding, custom_limits, aggregate_file_size, aggregate_num_characters, aggregate_num_tokens, aggregate_num_embeddings, aggregate_num_files_by_source, aggregate_num_files_by_file_format, file_statistics_aggregated_at, period_ends_at, cancel_at_period_end, global_user_config, created_at, updated_at].hash
273
311
  end
274
312
 
275
313
  # Builds the object from hash
@@ -35,6 +35,8 @@ module Carbon
35
35
 
36
36
  attr_accessor :sync_attachments
37
37
 
38
+ attr_accessor :file_sync_config
39
+
38
40
  attr_accessor :incremental_sync
39
41
 
40
42
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -52,6 +54,7 @@ module Carbon
52
54
  :'data_source_id' => :'data_source_id',
53
55
  :'request_id' => :'request_id',
54
56
  :'sync_attachments' => :'sync_attachments',
57
+ :'file_sync_config' => :'file_sync_config',
55
58
  :'incremental_sync' => :'incremental_sync'
56
59
  }
57
60
  end
@@ -76,6 +79,7 @@ module Carbon
76
79
  :'data_source_id' => :'Integer',
77
80
  :'request_id' => :'String',
78
81
  :'sync_attachments' => :'Boolean',
82
+ :'file_sync_config' => :'FileSyncConfigNullable',
79
83
  :'incremental_sync' => :'Boolean'
80
84
  }
81
85
  end
@@ -93,6 +97,7 @@ module Carbon
93
97
  :'data_source_id',
94
98
  :'request_id',
95
99
  :'sync_attachments',
100
+ :'file_sync_config',
96
101
  ])
97
102
  end
98
103
 
@@ -175,6 +180,10 @@ module Carbon
175
180
  self.sync_attachments = false
176
181
  end
177
182
 
183
+ if attributes.key?(:'file_sync_config')
184
+ self.file_sync_config = attributes[:'file_sync_config']
185
+ end
186
+
178
187
  if attributes.key?(:'incremental_sync')
179
188
  self.incremental_sync = attributes[:'incremental_sync']
180
189
  else
@@ -217,6 +226,7 @@ module Carbon
217
226
  data_source_id == o.data_source_id &&
218
227
  request_id == o.request_id &&
219
228
  sync_attachments == o.sync_attachments &&
229
+ file_sync_config == o.file_sync_config &&
220
230
  incremental_sync == o.incremental_sync
221
231
  end
222
232
 
@@ -229,7 +239,7 @@ module Carbon
229
239
  # Calculates hash code according to all attributes.
230
240
  # @return [Integer] Hash code
231
241
  def hash
232
- [tags, folder, filters, chunk_size, chunk_overlap, skip_embedding_generation, embedding_model, generate_sparse_vectors, prepend_filename_to_chunks, data_source_id, request_id, sync_attachments, incremental_sync].hash
242
+ [tags, folder, filters, chunk_size, chunk_overlap, skip_embedding_generation, embedding_model, generate_sparse_vectors, prepend_filename_to_chunks, data_source_id, request_id, sync_attachments, file_sync_config, incremental_sync].hash
233
243
  end
234
244
 
235
245
  # Builds the object from hash
@@ -40,6 +40,8 @@ module Carbon
40
40
 
41
41
  attr_accessor :parse_pdf_tables_with_ocr
42
42
 
43
+ attr_accessor :file_sync_config
44
+
43
45
  # Attribute mapping from ruby-style variable name to JSON key.
44
46
  def self.attribute_map
45
47
  {
@@ -56,7 +58,8 @@ module Carbon
56
58
  :'data_source_id' => :'data_source_id',
57
59
  :'request_id' => :'request_id',
58
60
  :'use_ocr' => :'use_ocr',
59
- :'parse_pdf_tables_with_ocr' => :'parse_pdf_tables_with_ocr'
61
+ :'parse_pdf_tables_with_ocr' => :'parse_pdf_tables_with_ocr',
62
+ :'file_sync_config' => :'file_sync_config'
60
63
  }
61
64
  end
62
65
 
@@ -81,7 +84,8 @@ module Carbon
81
84
  :'data_source_id' => :'Integer',
82
85
  :'request_id' => :'String',
83
86
  :'use_ocr' => :'Boolean',
84
- :'parse_pdf_tables_with_ocr' => :'Boolean'
87
+ :'parse_pdf_tables_with_ocr' => :'Boolean',
88
+ :'file_sync_config' => :'FileSyncConfigNullable'
85
89
  }
86
90
  end
87
91
 
@@ -98,7 +102,8 @@ module Carbon
98
102
  :'data_source_id',
99
103
  :'request_id',
100
104
  :'use_ocr',
101
- :'parse_pdf_tables_with_ocr'
105
+ :'parse_pdf_tables_with_ocr',
106
+ :'file_sync_config'
102
107
  ])
103
108
  end
104
109
 
@@ -192,6 +197,10 @@ module Carbon
192
197
  else
193
198
  self.parse_pdf_tables_with_ocr = false
194
199
  end
200
+
201
+ if attributes.key?(:'file_sync_config')
202
+ self.file_sync_config = attributes[:'file_sync_config']
203
+ end
195
204
  end
196
205
 
197
206
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -230,7 +239,8 @@ module Carbon
230
239
  data_source_id == o.data_source_id &&
231
240
  request_id == o.request_id &&
232
241
  use_ocr == o.use_ocr &&
233
- parse_pdf_tables_with_ocr == o.parse_pdf_tables_with_ocr
242
+ parse_pdf_tables_with_ocr == o.parse_pdf_tables_with_ocr &&
243
+ file_sync_config == o.file_sync_config
234
244
  end
235
245
 
236
246
  # @see the `==` method
@@ -242,7 +252,7 @@ module Carbon
242
252
  # Calculates hash code according to all attributes.
243
253
  # @return [Integer] Hash code
244
254
  def hash
245
- [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, use_ocr, parse_pdf_tables_with_ocr].hash
255
+ [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, use_ocr, parse_pdf_tables_with_ocr, file_sync_config].hash
246
256
  end
247
257
 
248
258
  # Builds the object from hash
@@ -90,7 +90,7 @@ module Carbon
90
90
  :'use_ocr' => :'Boolean',
91
91
  :'parse_pdf_tables_with_ocr' => :'Boolean',
92
92
  :'incremental_sync' => :'Boolean',
93
- :'file_sync_config' => :'HelpdeskGlobalFileSyncConfigNullable'
93
+ :'file_sync_config' => :'FileSyncConfigNullable'
94
94
  }
95
95
  end
96
96
 
@@ -187,7 +187,7 @@ module Carbon
187
187
  if attributes.key?(:'request_id')
188
188
  self.request_id = attributes[:'request_id']
189
189
  else
190
- self.request_id = '5cb51bcc-08e9-4e31-9784-0005b5390cb6'
190
+ self.request_id = '2782cb96-1bf6-452c-a8d9-60c2378fd079'
191
191
  end
192
192
 
193
193
  if attributes.key?(:'use_ocr')
@@ -88,7 +88,7 @@ module Carbon
88
88
  :'enable_file_picker' => :'Boolean',
89
89
  :'sync_source_items' => :'Boolean',
90
90
  :'incremental_sync' => :'Boolean',
91
- :'file_sync_config' => :'HelpdeskFileSyncConfigNullable'
91
+ :'file_sync_config' => :'FileSyncConfigNullable'
92
92
  }
93
93
  end
94
94
 
@@ -182,7 +182,7 @@ module Carbon
182
182
  if attributes.key?(:'request_id')
183
183
  self.request_id = attributes[:'request_id']
184
184
  else
185
- self.request_id = 'ca195b1c-0656-4db7-96fc-211554e9827b'
185
+ self.request_id = 'f5552316-5da3-46e6-ad9f-2f94e30d02cd'
186
186
  end
187
187
 
188
188
  if attributes.key?(:'enable_file_picker')
@@ -67,10 +67,10 @@ module Carbon
67
67
 
68
68
  attr_accessor :generate_sparse_vectors
69
69
 
70
- attr_accessor :audio_properties
71
-
72
70
  attr_accessor :request_id
73
71
 
72
+ attr_accessor :sync_properties
73
+
74
74
  attr_accessor :created_at
75
75
 
76
76
  attr_accessor :updated_at
@@ -106,8 +106,8 @@ module Carbon
106
106
  :'skip_embedding_generation' => :'skip_embedding_generation',
107
107
  :'source_created_at' => :'source_created_at',
108
108
  :'generate_sparse_vectors' => :'generate_sparse_vectors',
109
- :'audio_properties' => :'audio_properties',
110
109
  :'request_id' => :'request_id',
110
+ :'sync_properties' => :'sync_properties',
111
111
  :'created_at' => :'created_at',
112
112
  :'updated_at' => :'updated_at'
113
113
  }
@@ -149,8 +149,8 @@ module Carbon
149
149
  :'skip_embedding_generation' => :'Boolean',
150
150
  :'source_created_at' => :'Time',
151
151
  :'generate_sparse_vectors' => :'Boolean',
152
- :'audio_properties' => :'Object',
153
152
  :'request_id' => :'String',
153
+ :'sync_properties' => :'Object',
154
154
  :'created_at' => :'Time',
155
155
  :'updated_at' => :'Time'
156
156
  }
@@ -179,7 +179,6 @@ module Carbon
179
179
  :'additional_presigned_urls',
180
180
  :'source_created_at',
181
181
  :'generate_sparse_vectors',
182
- :'audio_properties',
183
182
  :'request_id',
184
183
  ])
185
184
  end
@@ -313,14 +312,14 @@ module Carbon
313
312
  self.generate_sparse_vectors = attributes[:'generate_sparse_vectors']
314
313
  end
315
314
 
316
- if attributes.key?(:'audio_properties')
317
- self.audio_properties = attributes[:'audio_properties']
318
- end
319
-
320
315
  if attributes.key?(:'request_id')
321
316
  self.request_id = attributes[:'request_id']
322
317
  end
323
318
 
319
+ if attributes.key?(:'sync_properties')
320
+ self.sync_properties = attributes[:'sync_properties']
321
+ end
322
+
324
323
  if attributes.key?(:'created_at')
325
324
  self.created_at = attributes[:'created_at']
326
325
  end
@@ -366,6 +365,10 @@ module Carbon
366
365
  invalid_properties.push('invalid value for "skip_embedding_generation", skip_embedding_generation cannot be nil.')
367
366
  end
368
367
 
368
+ if @sync_properties.nil?
369
+ invalid_properties.push('invalid value for "sync_properties", sync_properties cannot be nil.')
370
+ end
371
+
369
372
  if @created_at.nil?
370
373
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
371
374
  end
@@ -388,6 +391,7 @@ module Carbon
388
391
  return false if @sync_status.nil?
389
392
  return false if @ocr_properties.nil?
390
393
  return false if @skip_embedding_generation.nil?
394
+ return false if @sync_properties.nil?
391
395
  return false if @created_at.nil?
392
396
  return false if @updated_at.nil?
393
397
  true
@@ -426,8 +430,8 @@ module Carbon
426
430
  skip_embedding_generation == o.skip_embedding_generation &&
427
431
  source_created_at == o.source_created_at &&
428
432
  generate_sparse_vectors == o.generate_sparse_vectors &&
429
- audio_properties == o.audio_properties &&
430
433
  request_id == o.request_id &&
434
+ sync_properties == o.sync_properties &&
431
435
  created_at == o.created_at &&
432
436
  updated_at == o.updated_at
433
437
  end
@@ -441,7 +445,7 @@ module Carbon
441
445
  # Calculates hash code according to all attributes.
442
446
  # @return [Integer] Hash code
443
447
  def hash
444
- [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, ocr_properties, ocr_job_started_at, name, parent_id, enable_auto_sync, presigned_url, parsed_text_url, additional_presigned_urls, skip_embedding_generation, source_created_at, generate_sparse_vectors, audio_properties, request_id, created_at, updated_at].hash
448
+ [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, ocr_properties, ocr_job_started_at, 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, sync_properties, created_at, updated_at].hash
445
449
  end
446
450
 
447
451
  # Builds the object from hash
@@ -29,6 +29,18 @@ module Carbon
29
29
 
30
30
  attr_accessor :num_tokens_synced
31
31
 
32
+ attr_accessor :aggregate_file_size
33
+
34
+ attr_accessor :aggregate_num_characters
35
+
36
+ attr_accessor :aggregate_num_tokens
37
+
38
+ attr_accessor :aggregate_num_embeddings
39
+
40
+ attr_accessor :aggregate_num_files_by_source
41
+
42
+ attr_accessor :aggregate_num_files_by_file_format
43
+
32
44
  attr_accessor :unique_file_tags
33
45
 
34
46
  attr_accessor :enabled_features
@@ -49,6 +61,12 @@ module Carbon
49
61
  :'num_files_synced' => :'num_files_synced',
50
62
  :'num_characters_synced' => :'num_characters_synced',
51
63
  :'num_tokens_synced' => :'num_tokens_synced',
64
+ :'aggregate_file_size' => :'aggregate_file_size',
65
+ :'aggregate_num_characters' => :'aggregate_num_characters',
66
+ :'aggregate_num_tokens' => :'aggregate_num_tokens',
67
+ :'aggregate_num_embeddings' => :'aggregate_num_embeddings',
68
+ :'aggregate_num_files_by_source' => :'aggregate_num_files_by_source',
69
+ :'aggregate_num_files_by_file_format' => :'aggregate_num_files_by_file_format',
52
70
  :'unique_file_tags' => :'unique_file_tags',
53
71
  :'enabled_features' => :'enabled_features',
54
72
  :'custom_limits' => :'custom_limits',
@@ -73,6 +91,12 @@ module Carbon
73
91
  :'num_files_synced' => :'Integer',
74
92
  :'num_characters_synced' => :'Integer',
75
93
  :'num_tokens_synced' => :'Integer',
94
+ :'aggregate_file_size' => :'Object',
95
+ :'aggregate_num_characters' => :'Object',
96
+ :'aggregate_num_tokens' => :'Object',
97
+ :'aggregate_num_embeddings' => :'Object',
98
+ :'aggregate_num_files_by_source' => :'Object',
99
+ :'aggregate_num_files_by_file_format' => :'Object',
76
100
  :'unique_file_tags' => :'Array<Object>',
77
101
  :'enabled_features' => :'Object',
78
102
  :'custom_limits' => :'Object',
@@ -139,6 +163,30 @@ module Carbon
139
163
  self.num_tokens_synced = attributes[:'num_tokens_synced']
140
164
  end
141
165
 
166
+ if attributes.key?(:'aggregate_file_size')
167
+ self.aggregate_file_size = attributes[:'aggregate_file_size']
168
+ end
169
+
170
+ if attributes.key?(:'aggregate_num_characters')
171
+ self.aggregate_num_characters = attributes[:'aggregate_num_characters']
172
+ end
173
+
174
+ if attributes.key?(:'aggregate_num_tokens')
175
+ self.aggregate_num_tokens = attributes[:'aggregate_num_tokens']
176
+ end
177
+
178
+ if attributes.key?(:'aggregate_num_embeddings')
179
+ self.aggregate_num_embeddings = attributes[:'aggregate_num_embeddings']
180
+ end
181
+
182
+ if attributes.key?(:'aggregate_num_files_by_source')
183
+ self.aggregate_num_files_by_source = attributes[:'aggregate_num_files_by_source']
184
+ end
185
+
186
+ if attributes.key?(:'aggregate_num_files_by_file_format')
187
+ self.aggregate_num_files_by_file_format = attributes[:'aggregate_num_files_by_file_format']
188
+ end
189
+
142
190
  if attributes.key?(:'unique_file_tags')
143
191
  if (value = attributes[:'unique_file_tags']).is_a?(Array)
144
192
  self.unique_file_tags = value
@@ -196,6 +244,30 @@ module Carbon
196
244
  invalid_properties.push('invalid value for "num_tokens_synced", num_tokens_synced cannot be nil.')
197
245
  end
198
246
 
247
+ if @aggregate_file_size.nil?
248
+ invalid_properties.push('invalid value for "aggregate_file_size", aggregate_file_size cannot be nil.')
249
+ end
250
+
251
+ if @aggregate_num_characters.nil?
252
+ invalid_properties.push('invalid value for "aggregate_num_characters", aggregate_num_characters cannot be nil.')
253
+ end
254
+
255
+ if @aggregate_num_tokens.nil?
256
+ invalid_properties.push('invalid value for "aggregate_num_tokens", aggregate_num_tokens cannot be nil.')
257
+ end
258
+
259
+ if @aggregate_num_embeddings.nil?
260
+ invalid_properties.push('invalid value for "aggregate_num_embeddings", aggregate_num_embeddings cannot be nil.')
261
+ end
262
+
263
+ if @aggregate_num_files_by_source.nil?
264
+ invalid_properties.push('invalid value for "aggregate_num_files_by_source", aggregate_num_files_by_source cannot be nil.')
265
+ end
266
+
267
+ if @aggregate_num_files_by_file_format.nil?
268
+ invalid_properties.push('invalid value for "aggregate_num_files_by_file_format", aggregate_num_files_by_file_format cannot be nil.')
269
+ end
270
+
199
271
  if @unique_file_tags.nil?
200
272
  invalid_properties.push('invalid value for "unique_file_tags", unique_file_tags cannot be nil.')
201
273
  end
@@ -222,6 +294,12 @@ module Carbon
222
294
  return false if @num_files_synced.nil?
223
295
  return false if @num_characters_synced.nil?
224
296
  return false if @num_tokens_synced.nil?
297
+ return false if @aggregate_file_size.nil?
298
+ return false if @aggregate_num_characters.nil?
299
+ return false if @aggregate_num_tokens.nil?
300
+ return false if @aggregate_num_embeddings.nil?
301
+ return false if @aggregate_num_files_by_source.nil?
302
+ return false if @aggregate_num_files_by_file_format.nil?
225
303
  return false if @unique_file_tags.nil?
226
304
  return false if @custom_limits.nil?
227
305
  return false if @auto_sync_enabled_sources.nil?
@@ -242,6 +320,12 @@ module Carbon
242
320
  num_files_synced == o.num_files_synced &&
243
321
  num_characters_synced == o.num_characters_synced &&
244
322
  num_tokens_synced == o.num_tokens_synced &&
323
+ aggregate_file_size == o.aggregate_file_size &&
324
+ aggregate_num_characters == o.aggregate_num_characters &&
325
+ aggregate_num_tokens == o.aggregate_num_tokens &&
326
+ aggregate_num_embeddings == o.aggregate_num_embeddings &&
327
+ aggregate_num_files_by_source == o.aggregate_num_files_by_source &&
328
+ aggregate_num_files_by_file_format == o.aggregate_num_files_by_file_format &&
245
329
  unique_file_tags == o.unique_file_tags &&
246
330
  enabled_features == o.enabled_features &&
247
331
  custom_limits == o.custom_limits &&
@@ -257,7 +341,7 @@ module Carbon
257
341
  # Calculates hash code according to all attributes.
258
342
  # @return [Integer] Hash code
259
343
  def hash
260
- [id, organization_id, organization_supplied_user_id, created_at, updated_at, deleted_at, num_files_synced, num_characters_synced, num_tokens_synced, unique_file_tags, enabled_features, custom_limits, auto_sync_enabled_sources].hash
344
+ [id, organization_id, organization_supplied_user_id, created_at, updated_at, deleted_at, num_files_synced, num_characters_synced, num_tokens_synced, aggregate_file_size, aggregate_num_characters, aggregate_num_tokens, aggregate_num_embeddings, aggregate_num_files_by_source, aggregate_num_files_by_file_format, unique_file_tags, enabled_features, custom_limits, auto_sync_enabled_sources].hash
261
345
  end
262
346
 
263
347
  # Builds the object from hash
@@ -19,6 +19,10 @@ module Carbon
19
19
 
20
20
  attr_accessor :signing_key
21
21
 
22
+ attr_accessor :status
23
+
24
+ attr_accessor :status_reason
25
+
22
26
  attr_accessor :created_at
23
27
 
24
28
  attr_accessor :updated_at
@@ -30,6 +34,8 @@ module Carbon
30
34
  :'organization_id' => :'organization_id',
31
35
  :'url' => :'url',
32
36
  :'signing_key' => :'signing_key',
37
+ :'status' => :'status',
38
+ :'status_reason' => :'status_reason',
33
39
  :'created_at' => :'created_at',
34
40
  :'updated_at' => :'updated_at'
35
41
  }
@@ -47,6 +53,8 @@ module Carbon
47
53
  :'organization_id' => :'Integer',
48
54
  :'url' => :'String',
49
55
  :'signing_key' => :'String',
56
+ :'status' => :'WebhookStatus',
57
+ :'status_reason' => :'String',
50
58
  :'created_at' => :'Time',
51
59
  :'updated_at' => :'Time'
52
60
  }
@@ -55,6 +63,7 @@ module Carbon
55
63
  # List of attributes with nullable: true
56
64
  def self.openapi_nullable
57
65
  Set.new([
66
+ :'status_reason',
58
67
  ])
59
68
  end
60
69
 
@@ -89,6 +98,14 @@ module Carbon
89
98
  self.signing_key = attributes[:'signing_key']
90
99
  end
91
100
 
101
+ if attributes.key?(:'status')
102
+ self.status = attributes[:'status']
103
+ end
104
+
105
+ if attributes.key?(:'status_reason')
106
+ self.status_reason = attributes[:'status_reason']
107
+ end
108
+
92
109
  if attributes.key?(:'created_at')
93
110
  self.created_at = attributes[:'created_at']
94
111
  end
@@ -118,6 +135,10 @@ module Carbon
118
135
  invalid_properties.push('invalid value for "signing_key", signing_key cannot be nil.')
119
136
  end
120
137
 
138
+ if @status.nil?
139
+ invalid_properties.push('invalid value for "status", status cannot be nil.')
140
+ end
141
+
121
142
  if @created_at.nil?
122
143
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
123
144
  end
@@ -136,6 +157,7 @@ module Carbon
136
157
  return false if @organization_id.nil?
137
158
  return false if @url.nil?
138
159
  return false if @signing_key.nil?
160
+ return false if @status.nil?
139
161
  return false if @created_at.nil?
140
162
  return false if @updated_at.nil?
141
163
  true
@@ -150,6 +172,8 @@ module Carbon
150
172
  organization_id == o.organization_id &&
151
173
  url == o.url &&
152
174
  signing_key == o.signing_key &&
175
+ status == o.status &&
176
+ status_reason == o.status_reason &&
153
177
  created_at == o.created_at &&
154
178
  updated_at == o.updated_at
155
179
  end
@@ -163,7 +187,7 @@ module Carbon
163
187
  # Calculates hash code according to all attributes.
164
188
  # @return [Integer] Hash code
165
189
  def hash
166
- [id, organization_id, url, signing_key, created_at, updated_at].hash
190
+ [id, organization_id, url, signing_key, status, status_reason, created_at, updated_at].hash
167
191
  end
168
192
 
169
193
  # Builds the object from hash
@@ -17,6 +17,10 @@ module Carbon
17
17
 
18
18
  attr_accessor :url
19
19
 
20
+ attr_accessor :status
21
+
22
+ attr_accessor :status_reason
23
+
20
24
  attr_accessor :created_at
21
25
 
22
26
  attr_accessor :updated_at
@@ -27,6 +31,8 @@ module Carbon
27
31
  :'id' => :'id',
28
32
  :'organization_id' => :'organization_id',
29
33
  :'url' => :'url',
34
+ :'status' => :'status',
35
+ :'status_reason' => :'status_reason',
30
36
  :'created_at' => :'created_at',
31
37
  :'updated_at' => :'updated_at'
32
38
  }
@@ -43,6 +49,8 @@ module Carbon
43
49
  :'id' => :'Integer',
44
50
  :'organization_id' => :'Integer',
45
51
  :'url' => :'String',
52
+ :'status' => :'WebhookStatus',
53
+ :'status_reason' => :'String',
46
54
  :'created_at' => :'Time',
47
55
  :'updated_at' => :'Time'
48
56
  }
@@ -51,6 +59,7 @@ module Carbon
51
59
  # List of attributes with nullable: true
52
60
  def self.openapi_nullable
53
61
  Set.new([
62
+ :'status_reason',
54
63
  ])
55
64
  end
56
65
 
@@ -81,6 +90,14 @@ module Carbon
81
90
  self.url = attributes[:'url']
82
91
  end
83
92
 
93
+ if attributes.key?(:'status')
94
+ self.status = attributes[:'status']
95
+ end
96
+
97
+ if attributes.key?(:'status_reason')
98
+ self.status_reason = attributes[:'status_reason']
99
+ end
100
+
84
101
  if attributes.key?(:'created_at')
85
102
  self.created_at = attributes[:'created_at']
86
103
  end
@@ -106,6 +123,10 @@ module Carbon
106
123
  invalid_properties.push('invalid value for "url", url cannot be nil.')
107
124
  end
108
125
 
126
+ if @status.nil?
127
+ invalid_properties.push('invalid value for "status", status cannot be nil.')
128
+ end
129
+
109
130
  if @created_at.nil?
110
131
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
111
132
  end
@@ -123,6 +144,7 @@ module Carbon
123
144
  return false if @id.nil?
124
145
  return false if @organization_id.nil?
125
146
  return false if @url.nil?
147
+ return false if @status.nil?
126
148
  return false if @created_at.nil?
127
149
  return false if @updated_at.nil?
128
150
  true
@@ -136,6 +158,8 @@ module Carbon
136
158
  id == o.id &&
137
159
  organization_id == o.organization_id &&
138
160
  url == o.url &&
161
+ status == o.status &&
162
+ status_reason == o.status_reason &&
139
163
  created_at == o.created_at &&
140
164
  updated_at == o.updated_at
141
165
  end
@@ -149,7 +173,7 @@ module Carbon
149
173
  # Calculates hash code according to all attributes.
150
174
  # @return [Integer] Hash code
151
175
  def hash
152
- [id, organization_id, url, created_at, updated_at].hash
176
+ [id, organization_id, url, status, status_reason, created_at, updated_at].hash
153
177
  end
154
178
 
155
179
  # Builds the object from hash