carbon_ruby_sdk 0.2.46 → 0.2.48

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +3 -3
  3. data/README.md +39 -2
  4. data/lib/carbon_ruby_sdk/api/integrations_api.rb +109 -0
  5. data/lib/carbon_ruby_sdk/models/confluence_file_types.rb +36 -0
  6. data/lib/carbon_ruby_sdk/models/gitbook_file_types.rb +38 -0
  7. data/lib/carbon_ruby_sdk/models/github_file_types.rb +37 -0
  8. data/lib/carbon_ruby_sdk/models/gong_file_types.rb +37 -0
  9. data/lib/carbon_ruby_sdk/models/guru_file_types.rb +37 -0
  10. data/lib/carbon_ruby_sdk/models/intercom_file_types.rb +43 -0
  11. data/lib/carbon_ruby_sdk/models/item_types_property_inner.rb +235 -0
  12. data/lib/carbon_ruby_sdk/models/list_items_filters.rb +59 -5
  13. data/lib/carbon_ruby_sdk/models/list_items_filters_nullable.rb +59 -5
  14. data/lib/carbon_ruby_sdk/models/shared_source_item_types.rb +36 -0
  15. data/lib/carbon_ruby_sdk/models/storage_file_formats.rb +68 -0
  16. data/lib/carbon_ruby_sdk/models/user_file.rb +11 -1
  17. data/lib/carbon_ruby_sdk/models/zendesk_file_types.rb +39 -0
  18. data/lib/carbon_ruby_sdk/version.rb +1 -1
  19. data/lib/carbon_ruby_sdk.rb +10 -0
  20. data/spec/api/integrations_api_spec.rb +13 -0
  21. data/spec/models/confluence_file_types_spec.rb +22 -0
  22. data/spec/models/gitbook_file_types_spec.rb +22 -0
  23. data/spec/models/github_file_types_spec.rb +22 -0
  24. data/spec/models/gong_file_types_spec.rb +22 -0
  25. data/spec/models/guru_file_types_spec.rb +22 -0
  26. data/spec/models/intercom_file_types_spec.rb +22 -0
  27. data/spec/models/item_types_property_inner_spec.rb +22 -0
  28. data/spec/models/list_items_filters_nullable_spec.rb +12 -0
  29. data/spec/models/list_items_filters_spec.rb +12 -0
  30. data/spec/models/shared_source_item_types_spec.rb +22 -0
  31. data/spec/models/storage_file_formats_spec.rb +22 -0
  32. data/spec/models/user_file_spec.rb +6 -0
  33. data/spec/models/zendesk_file_types_spec.rb +22 -0
  34. metadata +32 -2
@@ -19,13 +19,19 @@ module Carbon
19
19
 
20
20
  attr_accessor :root_files_only
21
21
 
22
+ attr_accessor :file_formats
23
+
24
+ attr_accessor :item_types
25
+
22
26
  # Attribute mapping from ruby-style variable name to JSON key.
23
27
  def self.attribute_map
24
28
  {
25
29
  :'external_ids' => :'external_ids',
26
30
  :'ids' => :'ids',
27
31
  :'name' => :'name',
28
- :'root_files_only' => :'root_files_only'
32
+ :'root_files_only' => :'root_files_only',
33
+ :'file_formats' => :'file_formats',
34
+ :'item_types' => :'item_types'
29
35
  }
30
36
  end
31
37
 
@@ -40,7 +46,9 @@ module Carbon
40
46
  :'external_ids' => :'Array<String>',
41
47
  :'ids' => :'Array<Integer>',
42
48
  :'name' => :'String',
43
- :'root_files_only' => :'Boolean'
49
+ :'root_files_only' => :'Boolean',
50
+ :'file_formats' => :'Array<StorageFileFormats>',
51
+ :'item_types' => :'Array<ItemTypesPropertyInner>'
44
52
  }
45
53
  end
46
54
 
@@ -50,7 +58,9 @@ module Carbon
50
58
  :'external_ids',
51
59
  :'ids',
52
60
  :'name',
53
- :'root_files_only'
61
+ :'root_files_only',
62
+ :'file_formats',
63
+ :'item_types'
54
64
  ])
55
65
  end
56
66
 
@@ -88,21 +98,63 @@ module Carbon
88
98
  if attributes.key?(:'root_files_only')
89
99
  self.root_files_only = attributes[:'root_files_only']
90
100
  end
101
+
102
+ if attributes.key?(:'file_formats')
103
+ if (value = attributes[:'file_formats']).is_a?(Array)
104
+ self.file_formats = value
105
+ end
106
+ end
107
+
108
+ if attributes.key?(:'item_types')
109
+ if (value = attributes[:'item_types']).is_a?(Array)
110
+ self.item_types = value
111
+ end
112
+ end
91
113
  end
92
114
 
93
115
  # Show invalid properties with the reasons. Usually used together with valid?
94
116
  # @return Array for valid properties with the reasons
95
117
  def list_invalid_properties
96
118
  invalid_properties = Array.new
119
+ if !@file_formats.nil? && @file_formats.length > 50
120
+ invalid_properties.push('invalid value for "file_formats", number of items must be less than or equal to 50.')
121
+ end
122
+
123
+ if !@item_types.nil? && @item_types.length > 50
124
+ invalid_properties.push('invalid value for "item_types", number of items must be less than or equal to 50.')
125
+ end
126
+
97
127
  invalid_properties
98
128
  end
99
129
 
100
130
  # Check to see if the all the properties in the model are valid
101
131
  # @return true if the model is valid
102
132
  def valid?
133
+ return false if !@file_formats.nil? && @file_formats.length > 50
134
+ return false if !@item_types.nil? && @item_types.length > 50
103
135
  true
104
136
  end
105
137
 
138
+ # Custom attribute writer method with validation
139
+ # @param [Object] file_formats Value to be assigned
140
+ def file_formats=(file_formats)
141
+ if !file_formats.nil? && file_formats.length > 50
142
+ fail ArgumentError, 'invalid value for "file_formats", number of items must be less than or equal to 50.'
143
+ end
144
+
145
+ @file_formats = file_formats
146
+ end
147
+
148
+ # Custom attribute writer method with validation
149
+ # @param [Object] item_types Value to be assigned
150
+ def item_types=(item_types)
151
+ if !item_types.nil? && item_types.length > 50
152
+ fail ArgumentError, 'invalid value for "item_types", number of items must be less than or equal to 50.'
153
+ end
154
+
155
+ @item_types = item_types
156
+ end
157
+
106
158
  # Checks equality by comparing each attribute.
107
159
  # @param [Object] Object to be compared
108
160
  def ==(o)
@@ -111,7 +163,9 @@ module Carbon
111
163
  external_ids == o.external_ids &&
112
164
  ids == o.ids &&
113
165
  name == o.name &&
114
- root_files_only == o.root_files_only
166
+ root_files_only == o.root_files_only &&
167
+ file_formats == o.file_formats &&
168
+ item_types == o.item_types
115
169
  end
116
170
 
117
171
  # @see the `==` method
@@ -123,7 +177,7 @@ module Carbon
123
177
  # Calculates hash code according to all attributes.
124
178
  # @return [Integer] Hash code
125
179
  def hash
126
- [external_ids, ids, name, root_files_only].hash
180
+ [external_ids, ids, name, root_files_only, file_formats, item_types].hash
127
181
  end
128
182
 
129
183
  # Builds the object from hash
@@ -19,13 +19,19 @@ module Carbon
19
19
 
20
20
  attr_accessor :root_files_only
21
21
 
22
+ attr_accessor :file_formats
23
+
24
+ attr_accessor :item_types
25
+
22
26
  # Attribute mapping from ruby-style variable name to JSON key.
23
27
  def self.attribute_map
24
28
  {
25
29
  :'external_ids' => :'external_ids',
26
30
  :'ids' => :'ids',
27
31
  :'name' => :'name',
28
- :'root_files_only' => :'root_files_only'
32
+ :'root_files_only' => :'root_files_only',
33
+ :'file_formats' => :'file_formats',
34
+ :'item_types' => :'item_types'
29
35
  }
30
36
  end
31
37
 
@@ -40,7 +46,9 @@ module Carbon
40
46
  :'external_ids' => :'Array<String>',
41
47
  :'ids' => :'Array<Integer>',
42
48
  :'name' => :'String',
43
- :'root_files_only' => :'Boolean'
49
+ :'root_files_only' => :'Boolean',
50
+ :'file_formats' => :'Array<StorageFileFormats>',
51
+ :'item_types' => :'Array<ItemTypesPropertyInner>'
44
52
  }
45
53
  end
46
54
 
@@ -50,7 +58,9 @@ module Carbon
50
58
  :'external_ids',
51
59
  :'ids',
52
60
  :'name',
53
- :'root_files_only'
61
+ :'root_files_only',
62
+ :'file_formats',
63
+ :'item_types'
54
64
  ])
55
65
  end
56
66
 
@@ -88,21 +98,63 @@ module Carbon
88
98
  if attributes.key?(:'root_files_only')
89
99
  self.root_files_only = attributes[:'root_files_only']
90
100
  end
101
+
102
+ if attributes.key?(:'file_formats')
103
+ if (value = attributes[:'file_formats']).is_a?(Array)
104
+ self.file_formats = value
105
+ end
106
+ end
107
+
108
+ if attributes.key?(:'item_types')
109
+ if (value = attributes[:'item_types']).is_a?(Array)
110
+ self.item_types = value
111
+ end
112
+ end
91
113
  end
92
114
 
93
115
  # Show invalid properties with the reasons. Usually used together with valid?
94
116
  # @return Array for valid properties with the reasons
95
117
  def list_invalid_properties
96
118
  invalid_properties = Array.new
119
+ if !@file_formats.nil? && @file_formats.length > 50
120
+ invalid_properties.push('invalid value for "file_formats", number of items must be less than or equal to 50.')
121
+ end
122
+
123
+ if !@item_types.nil? && @item_types.length > 50
124
+ invalid_properties.push('invalid value for "item_types", number of items must be less than or equal to 50.')
125
+ end
126
+
97
127
  invalid_properties
98
128
  end
99
129
 
100
130
  # Check to see if the all the properties in the model are valid
101
131
  # @return true if the model is valid
102
132
  def valid?
133
+ return false if !@file_formats.nil? && @file_formats.length > 50
134
+ return false if !@item_types.nil? && @item_types.length > 50
103
135
  true
104
136
  end
105
137
 
138
+ # Custom attribute writer method with validation
139
+ # @param [Object] file_formats Value to be assigned
140
+ def file_formats=(file_formats)
141
+ if !file_formats.nil? && file_formats.length > 50
142
+ fail ArgumentError, 'invalid value for "file_formats", number of items must be less than or equal to 50.'
143
+ end
144
+
145
+ @file_formats = file_formats
146
+ end
147
+
148
+ # Custom attribute writer method with validation
149
+ # @param [Object] item_types Value to be assigned
150
+ def item_types=(item_types)
151
+ if !item_types.nil? && item_types.length > 50
152
+ fail ArgumentError, 'invalid value for "item_types", number of items must be less than or equal to 50.'
153
+ end
154
+
155
+ @item_types = item_types
156
+ end
157
+
106
158
  # Checks equality by comparing each attribute.
107
159
  # @param [Object] Object to be compared
108
160
  def ==(o)
@@ -111,7 +163,9 @@ module Carbon
111
163
  external_ids == o.external_ids &&
112
164
  ids == o.ids &&
113
165
  name == o.name &&
114
- root_files_only == o.root_files_only
166
+ root_files_only == o.root_files_only &&
167
+ file_formats == o.file_formats &&
168
+ item_types == o.item_types
115
169
  end
116
170
 
117
171
  # @see the `==` method
@@ -123,7 +177,7 @@ module Carbon
123
177
  # Calculates hash code according to all attributes.
124
178
  # @return [Integer] Hash code
125
179
  def hash
126
- [external_ids, ids, name, root_files_only].hash
180
+ [external_ids, ids, name, root_files_only, file_formats, item_types].hash
127
181
  end
128
182
 
129
183
  # 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 SharedSourceItemTypes
14
+ FILE = "FILE".freeze
15
+ FOLDER = "FOLDER".freeze
16
+
17
+ def self.all_vars
18
+ @all_vars ||= [FILE, FOLDER].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 SharedSourceItemTypes.all_vars.include?(value)
33
+ raise "Invalid ENUM value #{value} for class #SharedSourceItemTypes"
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,68 @@
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 StorageFileFormats
14
+ TXT = "TXT".freeze
15
+ CSV = "CSV".freeze
16
+ TSV = "TSV".freeze
17
+ PDF = "PDF".freeze
18
+ DOCX = "DOCX".freeze
19
+ PPTX = "PPTX".freeze
20
+ XLSX = "XLSX".freeze
21
+ XLSM = "XLSM".freeze
22
+ MD = "MD".freeze
23
+ RTF = "RTF".freeze
24
+ JSON = "JSON".freeze
25
+ HTML = "HTML".freeze
26
+ JPG = "JPG".freeze
27
+ PNG = "PNG".freeze
28
+ MP3 = "MP3".freeze
29
+ MP2 = "MP2".freeze
30
+ AAC = "AAC".freeze
31
+ WAV = "WAV".freeze
32
+ FLAC = "FLAC".freeze
33
+ PCM = "PCM".freeze
34
+ M4_A = "M4A".freeze
35
+ OGG = "OGG".freeze
36
+ OPUS = "OPUS".freeze
37
+ MPEG = "MPEG".freeze
38
+ MPG = "MPG".freeze
39
+ MP4 = "MP4".freeze
40
+ WMV = "WMV".freeze
41
+ AVI = "AVI".freeze
42
+ MOV = "MOV".freeze
43
+ MKV = "MKV".freeze
44
+ FLV = "FLV".freeze
45
+ WEBM = "WEBM".freeze
46
+ EML = "EML".freeze
47
+ MSG = "MSG".freeze
48
+
49
+ def self.all_vars
50
+ @all_vars ||= [TXT, CSV, TSV, PDF, DOCX, PPTX, XLSX, XLSM, MD, RTF, JSON, HTML, JPG, PNG, MP3, MP2, AAC, WAV, FLAC, PCM, M4_A, OGG, OPUS, MPEG, MPG, MP4, WMV, AVI, MOV, MKV, FLV, WEBM, EML, MSG].freeze
51
+ end
52
+
53
+ # Builds the enum from string
54
+ # @param [String] The enum value in the form of the string
55
+ # @return [String] The enum value
56
+ def self.build_from_hash(value)
57
+ new.build_from_hash(value)
58
+ end
59
+
60
+ # Builds the enum from string
61
+ # @param [String] The enum value in the form of the string
62
+ # @return [String] The enum value
63
+ def build_from_hash(value)
64
+ return value if StorageFileFormats.all_vars.include?(value)
65
+ raise "Invalid ENUM value #{value} for class #StorageFileFormats"
66
+ end
67
+ end
68
+ end
@@ -19,6 +19,8 @@ module Carbon
19
19
 
20
20
  attr_accessor :organization_id
21
21
 
22
+ attr_accessor :organization_user_id
23
+
22
24
  attr_accessor :organization_supplied_user_id
23
25
 
24
26
  attr_accessor :organization_user_data_source_id
@@ -94,6 +96,7 @@ module Carbon
94
96
  :'id' => :'id',
95
97
  :'source' => :'source',
96
98
  :'organization_id' => :'organization_id',
99
+ :'organization_user_id' => :'organization_user_id',
97
100
  :'organization_supplied_user_id' => :'organization_supplied_user_id',
98
101
  :'organization_user_data_source_id' => :'organization_user_data_source_id',
99
102
  :'external_file_id' => :'external_file_id',
@@ -143,6 +146,7 @@ module Carbon
143
146
  :'id' => :'Integer',
144
147
  :'source' => :'DataSourceType',
145
148
  :'organization_id' => :'Integer',
149
+ :'organization_user_id' => :'Integer',
146
150
  :'organization_supplied_user_id' => :'String',
147
151
  :'organization_user_data_source_id' => :'Integer',
148
152
  :'external_file_id' => :'String',
@@ -184,6 +188,7 @@ module Carbon
184
188
  def self.openapi_nullable
185
189
  Set.new([
186
190
  :'tags',
191
+ :'organization_user_id',
187
192
  :'organization_user_data_source_id',
188
193
  :'external_url',
189
194
  :'sync_error_message',
@@ -240,6 +245,10 @@ module Carbon
240
245
  self.organization_id = attributes[:'organization_id']
241
246
  end
242
247
 
248
+ if attributes.key?(:'organization_user_id')
249
+ self.organization_user_id = attributes[:'organization_user_id']
250
+ end
251
+
243
252
  if attributes.key?(:'organization_supplied_user_id')
244
253
  self.organization_supplied_user_id = attributes[:'organization_supplied_user_id']
245
254
  end
@@ -478,6 +487,7 @@ module Carbon
478
487
  id == o.id &&
479
488
  source == o.source &&
480
489
  organization_id == o.organization_id &&
490
+ organization_user_id == o.organization_user_id &&
481
491
  organization_supplied_user_id == o.organization_supplied_user_id &&
482
492
  organization_user_data_source_id == o.organization_user_data_source_id &&
483
493
  external_file_id == o.external_file_id &&
@@ -523,7 +533,7 @@ module Carbon
523
533
  # Calculates hash code according to all attributes.
524
534
  # @return [Integer] Hash code
525
535
  def hash
526
- [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, upload_id, sync_properties, messages_metadata, file_contents_deleted, supports_cold_storage, hot_storage_time_to_live, embedding_storage_status, created_at, updated_at].hash
536
+ [tags, id, source, organization_id, organization_user_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, upload_id, sync_properties, messages_metadata, file_contents_deleted, supports_cold_storage, hot_storage_time_to_live, embedding_storage_status, created_at, updated_at].hash
527
537
  end
528
538
 
529
539
  # Builds the object from hash
@@ -0,0 +1,39 @@
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 ZendeskFileTypes
14
+ TICKET = "TICKET".freeze
15
+ ARTICLE = "ARTICLE".freeze
16
+ TICKET_ATTACHMENT = "TICKET_ATTACHMENT".freeze
17
+ SECTION = "SECTION".freeze
18
+ CATEGORY = "CATEGORY".freeze
19
+
20
+ def self.all_vars
21
+ @all_vars ||= [TICKET, ARTICLE, TICKET_ATTACHMENT, SECTION, CATEGORY].freeze
22
+ end
23
+
24
+ # Builds the enum from string
25
+ # @param [String] The enum value in the form of the string
26
+ # @return [String] The enum value
27
+ def self.build_from_hash(value)
28
+ new.build_from_hash(value)
29
+ end
30
+
31
+ # Builds the enum from string
32
+ # @param [String] The enum value in the form of the string
33
+ # @return [String] The enum value
34
+ def build_from_hash(value)
35
+ return value if ZendeskFileTypes.all_vars.include?(value)
36
+ raise "Invalid ENUM value #{value} for class #ZendeskFileTypes"
37
+ end
38
+ end
39
+ end
@@ -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.2.46'
10
+ VERSION = '0.2.48'
11
11
  end
@@ -47,6 +47,7 @@ require 'carbon_ruby_sdk/models/commit_user_nullable'
47
47
  require 'carbon_ruby_sdk/models/commits_input'
48
48
  require 'carbon_ruby_sdk/models/commits_response'
49
49
  require 'carbon_ruby_sdk/models/confluence_authentication'
50
+ require 'carbon_ruby_sdk/models/confluence_file_types'
50
51
  require 'carbon_ruby_sdk/models/connect_data_source_input'
51
52
  require 'carbon_ruby_sdk/models/connect_data_source_response'
52
53
  require 'carbon_ruby_sdk/models/contact'
@@ -104,22 +105,27 @@ require 'carbon_ruby_sdk/models/generic_success_response'
104
105
  require 'carbon_ruby_sdk/models/get_embedding_documents_body'
105
106
  require 'carbon_ruby_sdk/models/gitbook_authetication'
106
107
  require 'carbon_ruby_sdk/models/gitbook_connect_request'
108
+ require 'carbon_ruby_sdk/models/gitbook_file_types'
107
109
  require 'carbon_ruby_sdk/models/gitbook_sync_request'
108
110
  require 'carbon_ruby_sdk/models/github_authentication'
109
111
  require 'carbon_ruby_sdk/models/github_connect_request'
110
112
  require 'carbon_ruby_sdk/models/github_fetch_repos_request'
113
+ require 'carbon_ruby_sdk/models/github_file_types'
111
114
  require 'carbon_ruby_sdk/models/gmail_sync_input'
112
115
  require 'carbon_ruby_sdk/models/gong_authentication'
116
+ require 'carbon_ruby_sdk/models/gong_file_types'
113
117
  require 'carbon_ruby_sdk/models/google_drive_credentials'
114
118
  require 'carbon_ruby_sdk/models/google_drive_white_label_input'
115
119
  require 'carbon_ruby_sdk/models/guru_authentication'
116
120
  require 'carbon_ruby_sdk/models/guru_connect_request'
121
+ require 'carbon_ruby_sdk/models/guru_file_types'
117
122
  require 'carbon_ruby_sdk/models/http_validation_error'
118
123
  require 'carbon_ruby_sdk/models/head_or_base'
119
124
  require 'carbon_ruby_sdk/models/helpdesk_file_types'
120
125
  require 'carbon_ruby_sdk/models/hybrid_search_tuning_params'
121
126
  require 'carbon_ruby_sdk/models/hybrid_search_tuning_params_nullable'
122
127
  require 'carbon_ruby_sdk/models/ids_property'
128
+ require 'carbon_ruby_sdk/models/intercom_file_types'
123
129
  require 'carbon_ruby_sdk/models/issue'
124
130
  require 'carbon_ruby_sdk/models/issue_pr'
125
131
  require 'carbon_ruby_sdk/models/issue_pr_nullable'
@@ -127,6 +133,7 @@ require 'carbon_ruby_sdk/models/issues_filter'
127
133
  require 'carbon_ruby_sdk/models/issues_input'
128
134
  require 'carbon_ruby_sdk/models/issues_order_by'
129
135
  require 'carbon_ruby_sdk/models/issues_response'
136
+ require 'carbon_ruby_sdk/models/item_types_property_inner'
130
137
  require 'carbon_ruby_sdk/models/label'
131
138
  require 'carbon_ruby_sdk/models/lead'
132
139
  require 'carbon_ruby_sdk/models/lead_filters'
@@ -225,6 +232,7 @@ require 'carbon_ruby_sdk/models/service_now_authentication'
225
232
  require 'carbon_ruby_sdk/models/service_now_credentials'
226
233
  require 'carbon_ruby_sdk/models/service_now_credentials_nullable'
227
234
  require 'carbon_ruby_sdk/models/service_now_file_types'
235
+ require 'carbon_ruby_sdk/models/shared_source_item_types'
228
236
  require 'carbon_ruby_sdk/models/sharepoint_authentication'
229
237
  require 'carbon_ruby_sdk/models/simple_o_auth_data_sources'
230
238
  require 'carbon_ruby_sdk/models/single_chunks_and_embeddings_upload_input'
@@ -232,6 +240,7 @@ require 'carbon_ruby_sdk/models/sitemap_scrape_request'
232
240
  require 'carbon_ruby_sdk/models/slack_filters'
233
241
  require 'carbon_ruby_sdk/models/slack_sync_request'
234
242
  require 'carbon_ruby_sdk/models/source_property'
243
+ require 'carbon_ruby_sdk/models/storage_file_formats'
235
244
  require 'carbon_ruby_sdk/models/sync_directory_request'
236
245
  require 'carbon_ruby_sdk/models/sync_files_ids'
237
246
  require 'carbon_ruby_sdk/models/sync_files_request'
@@ -278,6 +287,7 @@ require 'carbon_ruby_sdk/models/white_label_update_request'
278
287
  require 'carbon_ruby_sdk/models/white_labeling_response'
279
288
  require 'carbon_ruby_sdk/models/youtube_transcript_response'
280
289
  require 'carbon_ruby_sdk/models/zendesk_authentication'
290
+ require 'carbon_ruby_sdk/models/zendesk_file_types'
281
291
  require 'carbon_ruby_sdk/models/zotero_authentication'
282
292
 
283
293
  # APIs
@@ -208,6 +208,19 @@ describe 'IntegrationsApi' do
208
208
  end
209
209
  end
210
210
 
211
+ # unit tests for list_sharepoint_sites
212
+ # List Sharepoint Sites
213
+ # List all Sharepoint sites in the connected tenant. The site names from the response can be used as the site name when connecting a Sharepoint site. If site name is null in the response, then site name should be left null when connecting to the site. This endpoint requires an additional Sharepoint scope: \&quot;Sites.Read.All\&quot;. Include this scope along with the default Sharepoint scopes to list Sharepoint sites, connect to a site, and finally sync files from the site. The default Sharepoint scopes are: [o, p, e, n, i, d, , o, f, f, l, i, n, e, _, a, c, c, e, s, s, , U, s, e, r, ., R, e, a, d, , F, i, l, e, s, ., R, e, a, d, ., A, l, l]. data_soure_id: Data source needs to be specified if you have linked multiple Sharepoint accounts cursor: Used for pagination. If next_cursor is returned in response, you need to pass it as the cursor in the next request
214
+ # @param [Hash] opts the optional parameters
215
+ # @option opts [Integer] :data_source_id
216
+ # @option opts [String] :cursor
217
+ # @return [Object]
218
+ describe 'list_sharepoint_sites test' do
219
+ it 'should work' do
220
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
221
+ end
222
+ end
223
+
211
224
  # unit tests for sync_azure_blob_files
212
225
  # Azure Blob Files
213
226
  # After optionally loading the items via /integrations/items/sync and integrations/items/list, use the container name and file name as the ID in this endpoint to sync them into Carbon. Additional parameters below can associate data with the selected items or modify the sync behavior
@@ -0,0 +1,22 @@
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 'spec_helper'
10
+ require 'json'
11
+ require 'date'
12
+
13
+ # Unit tests for Carbon::ConfluenceFileTypes
14
+ describe Carbon::ConfluenceFileTypes do
15
+ let(:instance) { Carbon::ConfluenceFileTypes.new }
16
+
17
+ describe 'test an instance of ConfluenceFileTypes' do
18
+ it 'should create an instance of ConfluenceFileTypes' do
19
+ expect(instance).to be_instance_of(Carbon::ConfluenceFileTypes)
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,22 @@
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 'spec_helper'
10
+ require 'json'
11
+ require 'date'
12
+
13
+ # Unit tests for Carbon::GitbookFileTypes
14
+ describe Carbon::GitbookFileTypes do
15
+ let(:instance) { Carbon::GitbookFileTypes.new }
16
+
17
+ describe 'test an instance of GitbookFileTypes' do
18
+ it 'should create an instance of GitbookFileTypes' do
19
+ expect(instance).to be_instance_of(Carbon::GitbookFileTypes)
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,22 @@
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 'spec_helper'
10
+ require 'json'
11
+ require 'date'
12
+
13
+ # Unit tests for Carbon::GithubFileTypes
14
+ describe Carbon::GithubFileTypes do
15
+ let(:instance) { Carbon::GithubFileTypes.new }
16
+
17
+ describe 'test an instance of GithubFileTypes' do
18
+ it 'should create an instance of GithubFileTypes' do
19
+ expect(instance).to be_instance_of(Carbon::GithubFileTypes)
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,22 @@
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 'spec_helper'
10
+ require 'json'
11
+ require 'date'
12
+
13
+ # Unit tests for Carbon::GongFileTypes
14
+ describe Carbon::GongFileTypes do
15
+ let(:instance) { Carbon::GongFileTypes.new }
16
+
17
+ describe 'test an instance of GongFileTypes' do
18
+ it 'should create an instance of GongFileTypes' do
19
+ expect(instance).to be_instance_of(Carbon::GongFileTypes)
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,22 @@
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 'spec_helper'
10
+ require 'json'
11
+ require 'date'
12
+
13
+ # Unit tests for Carbon::GuruFileTypes
14
+ describe Carbon::GuruFileTypes do
15
+ let(:instance) { Carbon::GuruFileTypes.new }
16
+
17
+ describe 'test an instance of GuruFileTypes' do
18
+ it 'should create an instance of GuruFileTypes' do
19
+ expect(instance).to be_instance_of(Carbon::GuruFileTypes)
20
+ end
21
+ end
22
+ end