carbon_ruby_sdk 0.1.6 → 0.1.8

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 (48) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +57 -3
  4. data/lib/carbon_ruby_sdk/api/files_api.rb +6 -6
  5. data/lib/carbon_ruby_sdk/api/integrations_api.rb +104 -8
  6. data/lib/carbon_ruby_sdk/models/authentication_property.rb +436 -0
  7. data/lib/carbon_ruby_sdk/models/confluence_authentication.rb +254 -0
  8. data/lib/carbon_ruby_sdk/models/connect_data_source_input.rb +229 -0
  9. data/lib/carbon_ruby_sdk/models/connect_data_source_response.rb +230 -0
  10. data/lib/carbon_ruby_sdk/models/freskdesk_authentication.rb +244 -0
  11. data/lib/carbon_ruby_sdk/models/gitbook_authetication.rb +244 -0
  12. data/lib/carbon_ruby_sdk/models/notion_authentication.rb +244 -0
  13. data/lib/carbon_ruby_sdk/models/o_auth_authentication.rb +244 -0
  14. data/lib/carbon_ruby_sdk/models/o_auth_url_request.rb +1 -0
  15. data/lib/carbon_ruby_sdk/models/organization_user_data_source_api.rb +11 -1
  16. data/lib/carbon_ruby_sdk/models/s3_authentication.rb +244 -0
  17. data/lib/carbon_ruby_sdk/models/s3_file_sync_input.rb +1 -0
  18. data/lib/carbon_ruby_sdk/models/salesforce_authentication.rb +254 -0
  19. data/lib/carbon_ruby_sdk/models/sharepoint_authentication.rb +268 -0
  20. data/lib/carbon_ruby_sdk/models/simple_o_auth_data_sources.rb +41 -0
  21. data/lib/carbon_ruby_sdk/models/sitemap_scrape_request.rb +15 -0
  22. data/lib/carbon_ruby_sdk/models/sync_files_request.rb +1 -0
  23. data/lib/carbon_ruby_sdk/models/sync_options.rb +323 -0
  24. data/lib/carbon_ruby_sdk/models/upload_file_from_url_input.rb +1 -0
  25. data/lib/carbon_ruby_sdk/models/webscrape_request.rb +30 -0
  26. data/lib/carbon_ruby_sdk/models/zendesk_authentication.rb +244 -0
  27. data/lib/carbon_ruby_sdk/models/zotero_authentication.rb +272 -0
  28. data/lib/carbon_ruby_sdk/version.rb +1 -1
  29. data/lib/carbon_ruby_sdk.rb +15 -0
  30. data/spec/api/files_api_spec.rb +1 -1
  31. data/spec/api/integrations_api_spec.rb +11 -0
  32. data/spec/models/authentication_property_spec.rb +112 -0
  33. data/spec/models/confluence_authentication_spec.rb +46 -0
  34. data/spec/models/connect_data_source_input_spec.rb +34 -0
  35. data/spec/models/connect_data_source_response_spec.rb +34 -0
  36. data/spec/models/freskdesk_authentication_spec.rb +40 -0
  37. data/spec/models/gitbook_authetication_spec.rb +40 -0
  38. data/spec/models/notion_authentication_spec.rb +40 -0
  39. data/spec/models/o_auth_authentication_spec.rb +40 -0
  40. data/spec/models/organization_user_data_source_api_spec.rb +6 -0
  41. data/spec/models/s3_authentication_spec.rb +40 -0
  42. data/spec/models/salesforce_authentication_spec.rb +46 -0
  43. data/spec/models/sharepoint_authentication_spec.rb +52 -0
  44. data/spec/models/simple_o_auth_data_sources_spec.rb +22 -0
  45. data/spec/models/sync_options_spec.rb +82 -0
  46. data/spec/models/zendesk_authentication_spec.rb +40 -0
  47. data/spec/models/zotero_authentication_spec.rb +52 -0
  48. metadata +47 -2
@@ -0,0 +1,272 @@
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 ZoteroAuthentication
14
+ attr_accessor :source
15
+
16
+ attr_accessor :access_token
17
+
18
+ attr_accessor :access_token_secret
19
+
20
+ attr_accessor :username
21
+
22
+ attr_accessor :zotero_id
23
+
24
+ # Attribute mapping from ruby-style variable name to JSON key.
25
+ def self.attribute_map
26
+ {
27
+ :'source' => :'source',
28
+ :'access_token' => :'access_token',
29
+ :'access_token_secret' => :'access_token_secret',
30
+ :'username' => :'username',
31
+ :'zotero_id' => :'zotero_id'
32
+ }
33
+ end
34
+
35
+ # Returns all the JSON keys this model knows about
36
+ def self.acceptable_attributes
37
+ attribute_map.values
38
+ end
39
+
40
+ # Attribute type mapping.
41
+ def self.openapi_types
42
+ {
43
+ :'source' => :'Object',
44
+ :'access_token' => :'String',
45
+ :'access_token_secret' => :'String',
46
+ :'username' => :'String',
47
+ :'zotero_id' => :'String'
48
+ }
49
+ end
50
+
51
+ # List of attributes with nullable: true
52
+ def self.openapi_nullable
53
+ Set.new([
54
+ :'source',
55
+ ])
56
+ end
57
+
58
+ # Initializes the object
59
+ # @param [Hash] attributes Model attributes in the form of hash
60
+ def initialize(attributes = {})
61
+ if (!attributes.is_a?(Hash))
62
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Carbon::ZoteroAuthentication` initialize method"
63
+ end
64
+
65
+ # check to see if the attribute exists and convert string to symbol for hash key
66
+ attributes = attributes.each_with_object({}) { |(k, v), h|
67
+ if (!self.class.attribute_map.key?(k.to_sym))
68
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Carbon::ZoteroAuthentication`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
69
+ end
70
+ h[k.to_sym] = v
71
+ }
72
+
73
+ if attributes.key?(:'source')
74
+ self.source = attributes[:'source']
75
+ end
76
+
77
+ if attributes.key?(:'access_token')
78
+ self.access_token = attributes[:'access_token']
79
+ end
80
+
81
+ if attributes.key?(:'access_token_secret')
82
+ self.access_token_secret = attributes[:'access_token_secret']
83
+ end
84
+
85
+ if attributes.key?(:'username')
86
+ self.username = attributes[:'username']
87
+ end
88
+
89
+ if attributes.key?(:'zotero_id')
90
+ self.zotero_id = attributes[:'zotero_id']
91
+ end
92
+ end
93
+
94
+ # Show invalid properties with the reasons. Usually used together with valid?
95
+ # @return Array for valid properties with the reasons
96
+ def list_invalid_properties
97
+ invalid_properties = Array.new
98
+ if @access_token.nil?
99
+ invalid_properties.push('invalid value for "access_token", access_token cannot be nil.')
100
+ end
101
+
102
+ if @access_token_secret.nil?
103
+ invalid_properties.push('invalid value for "access_token_secret", access_token_secret cannot be nil.')
104
+ end
105
+
106
+ if @username.nil?
107
+ invalid_properties.push('invalid value for "username", username cannot be nil.')
108
+ end
109
+
110
+ if @zotero_id.nil?
111
+ invalid_properties.push('invalid value for "zotero_id", zotero_id cannot be nil.')
112
+ end
113
+
114
+ invalid_properties
115
+ end
116
+
117
+ # Check to see if the all the properties in the model are valid
118
+ # @return true if the model is valid
119
+ def valid?
120
+ return false if @access_token.nil?
121
+ return false if @access_token_secret.nil?
122
+ return false if @username.nil?
123
+ return false if @zotero_id.nil?
124
+ true
125
+ end
126
+
127
+ # Checks equality by comparing each attribute.
128
+ # @param [Object] Object to be compared
129
+ def ==(o)
130
+ return true if self.equal?(o)
131
+ self.class == o.class &&
132
+ source == o.source &&
133
+ access_token == o.access_token &&
134
+ access_token_secret == o.access_token_secret &&
135
+ username == o.username &&
136
+ zotero_id == o.zotero_id
137
+ end
138
+
139
+ # @see the `==` method
140
+ # @param [Object] Object to be compared
141
+ def eql?(o)
142
+ self == o
143
+ end
144
+
145
+ # Calculates hash code according to all attributes.
146
+ # @return [Integer] Hash code
147
+ def hash
148
+ [source, access_token, access_token_secret, username, zotero_id].hash
149
+ end
150
+
151
+ # Builds the object from hash
152
+ # @param [Hash] attributes Model attributes in the form of hash
153
+ # @return [Object] Returns the model itself
154
+ def self.build_from_hash(attributes)
155
+ new.build_from_hash(attributes)
156
+ end
157
+
158
+ # Builds the object from hash
159
+ # @param [Hash] attributes Model attributes in the form of hash
160
+ # @return [Object] Returns the model itself
161
+ def build_from_hash(attributes)
162
+ return nil unless attributes.is_a?(Hash)
163
+ attributes = attributes.transform_keys(&:to_sym)
164
+ self.class.openapi_types.each_pair do |key, type|
165
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
166
+ self.send("#{key}=", nil)
167
+ elsif type =~ /\AArray<(.*)>/i
168
+ # check to ensure the input is an array given that the attribute
169
+ # is documented as an array but the input is not
170
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
171
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
172
+ end
173
+ elsif !attributes[self.class.attribute_map[key]].nil?
174
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
175
+ end
176
+ end
177
+
178
+ self
179
+ end
180
+
181
+ # Deserializes the data based on type
182
+ # @param string type Data type
183
+ # @param string value Value to be deserialized
184
+ # @return [Object] Deserialized data
185
+ def _deserialize(type, value)
186
+ case type.to_sym
187
+ when :Time
188
+ Time.parse(value)
189
+ when :Date
190
+ Date.parse(value)
191
+ when :String
192
+ value.to_s
193
+ when :Integer
194
+ value.to_i
195
+ when :Float
196
+ value.to_f
197
+ when :Boolean
198
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
199
+ true
200
+ else
201
+ false
202
+ end
203
+ when :Object
204
+ # generic object (usually a Hash), return directly
205
+ value
206
+ when /\AArray<(?<inner_type>.+)>\z/
207
+ inner_type = Regexp.last_match[:inner_type]
208
+ value.map { |v| _deserialize(inner_type, v) }
209
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
210
+ k_type = Regexp.last_match[:k_type]
211
+ v_type = Regexp.last_match[:v_type]
212
+ {}.tap do |hash|
213
+ value.each do |k, v|
214
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
215
+ end
216
+ end
217
+ else # model
218
+ # models (e.g. Pet) or oneOf
219
+ klass = Carbon.const_get(type)
220
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
221
+ end
222
+ end
223
+
224
+ # Returns the string representation of the object
225
+ # @return [String] String presentation of the object
226
+ def to_s
227
+ to_hash.to_s
228
+ end
229
+
230
+ # to_body is an alias to to_hash (backward compatibility)
231
+ # @return [Hash] Returns the object in the form of hash
232
+ def to_body
233
+ to_hash
234
+ end
235
+
236
+ # Returns the object in the form of hash
237
+ # @return [Hash] Returns the object in the form of hash
238
+ def to_hash
239
+ hash = {}
240
+ self.class.attribute_map.each_pair do |attr, param|
241
+ value = self.send(attr)
242
+ if value.nil?
243
+ is_nullable = self.class.openapi_nullable.include?(attr)
244
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
245
+ end
246
+
247
+ hash[param] = _to_hash(value)
248
+ end
249
+ hash
250
+ end
251
+
252
+ # Outputs non-array value in the form of hash
253
+ # For object, use to_hash. Otherwise, just return the value
254
+ # @param [Object] value Any valid value
255
+ # @return [Hash] Returns the value in the form of hash
256
+ def _to_hash(value)
257
+ if value.is_a?(Array)
258
+ value.compact.map { |v| _to_hash(v) }
259
+ elsif value.is_a?(Hash)
260
+ {}.tap do |hash|
261
+ value.each { |k, v| hash[k] = _to_hash(v) }
262
+ end
263
+ elsif value.respond_to? :to_hash
264
+ value.to_hash
265
+ else
266
+ value
267
+ end
268
+ end
269
+
270
+ end
271
+
272
+ 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.1.6'
10
+ VERSION = '0.1.8'
11
11
  end
@@ -16,11 +16,15 @@ require 'carbon_ruby_sdk/configuration'
16
16
 
17
17
  # Models
18
18
  require 'carbon_ruby_sdk/models/add_webhook_props'
19
+ require 'carbon_ruby_sdk/models/authentication_property'
19
20
  require 'carbon_ruby_sdk/models/body_create_upload_file_uploadfile_post'
20
21
  require 'carbon_ruby_sdk/models/chunk_properties'
21
22
  require 'carbon_ruby_sdk/models/chunk_properties_nullable'
22
23
  require 'carbon_ruby_sdk/models/chunks_and_embeddings'
23
24
  require 'carbon_ruby_sdk/models/chunks_and_embeddings_upload_input'
25
+ require 'carbon_ruby_sdk/models/confluence_authentication'
26
+ require 'carbon_ruby_sdk/models/connect_data_source_input'
27
+ require 'carbon_ruby_sdk/models/connect_data_source_response'
24
28
  require 'carbon_ruby_sdk/models/data_source_last_sync_actions'
25
29
  require 'carbon_ruby_sdk/models/data_source_sync_statuses'
26
30
  require 'carbon_ruby_sdk/models/data_source_type'
@@ -48,8 +52,10 @@ require 'carbon_ruby_sdk/models/file_formats_nullable'
48
52
  require 'carbon_ruby_sdk/models/file_statistics'
49
53
  require 'carbon_ruby_sdk/models/file_statistics_nullable'
50
54
  require 'carbon_ruby_sdk/models/fresh_desk_connect_request'
55
+ require 'carbon_ruby_sdk/models/freskdesk_authentication'
51
56
  require 'carbon_ruby_sdk/models/generic_success_response'
52
57
  require 'carbon_ruby_sdk/models/get_embedding_documents_body'
58
+ require 'carbon_ruby_sdk/models/gitbook_authetication'
53
59
  require 'carbon_ruby_sdk/models/gitbook_connect_request'
54
60
  require 'carbon_ruby_sdk/models/gitbook_sync_request'
55
61
  require 'carbon_ruby_sdk/models/gmail_sync_input'
@@ -63,6 +69,8 @@ require 'carbon_ruby_sdk/models/list_request'
63
69
  require 'carbon_ruby_sdk/models/list_response'
64
70
  require 'carbon_ruby_sdk/models/location_property_inner'
65
71
  require 'carbon_ruby_sdk/models/modify_user_configuration_input'
72
+ require 'carbon_ruby_sdk/models/notion_authentication'
73
+ require 'carbon_ruby_sdk/models/o_auth_authentication'
66
74
  require 'carbon_ruby_sdk/models/o_auth_url_request'
67
75
  require 'carbon_ruby_sdk/models/order_dir'
68
76
  require 'carbon_ruby_sdk/models/organization_response'
@@ -87,14 +95,19 @@ require 'carbon_ruby_sdk/models/raw_transcript_property_inner_value'
87
95
  require 'carbon_ruby_sdk/models/resync_file_query_input'
88
96
  require 'carbon_ruby_sdk/models/revoke_access_token_input'
89
97
  require 'carbon_ruby_sdk/models/s3_auth_request'
98
+ require 'carbon_ruby_sdk/models/s3_authentication'
90
99
  require 'carbon_ruby_sdk/models/s3_file_sync_input'
91
100
  require 'carbon_ruby_sdk/models/s3_get_file_input'
101
+ require 'carbon_ruby_sdk/models/salesforce_authentication'
102
+ require 'carbon_ruby_sdk/models/sharepoint_authentication'
103
+ require 'carbon_ruby_sdk/models/simple_o_auth_data_sources'
92
104
  require 'carbon_ruby_sdk/models/single_chunks_and_embeddings_upload_input'
93
105
  require 'carbon_ruby_sdk/models/sitemap_scrape_request'
94
106
  require 'carbon_ruby_sdk/models/source_property'
95
107
  require 'carbon_ruby_sdk/models/sync_directory_request'
96
108
  require 'carbon_ruby_sdk/models/sync_files_ids'
97
109
  require 'carbon_ruby_sdk/models/sync_files_request'
110
+ require 'carbon_ruby_sdk/models/sync_options'
98
111
  require 'carbon_ruby_sdk/models/tags'
99
112
  require 'carbon_ruby_sdk/models/tags1'
100
113
  require 'carbon_ruby_sdk/models/text_embedding_generators'
@@ -114,6 +127,8 @@ require 'carbon_ruby_sdk/models/webhook_query_response'
114
127
  require 'carbon_ruby_sdk/models/webscrape_request'
115
128
  require 'carbon_ruby_sdk/models/white_labeling_response'
116
129
  require 'carbon_ruby_sdk/models/youtube_transcript_response'
130
+ require 'carbon_ruby_sdk/models/zendesk_authentication'
131
+ require 'carbon_ruby_sdk/models/zotero_authentication'
117
132
 
118
133
  # APIs
119
134
  require 'carbon_ruby_sdk/api/auth_api'
@@ -144,7 +144,7 @@ describe 'FilesApi' do
144
144
  # @option opts [Boolean] :use_ocr Whether or not to use OCR when processing files. Only valid for PDFs. Useful for documents with tables, images, and/or scanned text.
145
145
  # @option opts [Boolean] :generate_sparse_vectors Whether or not to generate sparse vectors for the file. This is *required* for the file to be a candidate for hybrid search.
146
146
  # @option opts [Boolean] :prepend_filename_to_chunks Whether or not to prepend the file&#39;s name to chunks.
147
- # @option opts [Integer] :max_items_per_chunk Number of objects per chunk. For json files only.
147
+ # @option opts [Integer] :max_items_per_chunk Number of objects per chunk. For csv, tsv, xlsx, and json files only.
148
148
  # @return [UserFile]
149
149
  describe 'upload test' do
150
150
  it 'should work' do
@@ -26,6 +26,17 @@ describe 'IntegrationsApi' do
26
26
  end
27
27
  end
28
28
 
29
+ # unit tests for connect_data_source
30
+ # Connect Data Source
31
+ # @param connect_data_source_input
32
+ # @param [Hash] opts the optional parameters
33
+ # @return [ConnectDataSourceResponse]
34
+ describe 'connect_data_source test' do
35
+ it 'should work' do
36
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
37
+ end
38
+ end
39
+
29
40
  # unit tests for connect_freshdesk
30
41
  # Freshdesk Connect
31
42
  # Refer this article to obtain an API key https://support.freshdesk.com/en/support/solutions/articles/215517. Make sure that your API key has the permission to read solutions from your account and you are on a &lt;b&gt;paid&lt;/b&gt; plan. Once you have an API key, you can make a request to this endpoint along with your freshdesk domain. This will trigger an automatic sync of the articles in your \&quot;solutions\&quot; tab. Additional parameters below can be used to associate data with the synced articles or modify the sync behavior.
@@ -0,0 +1,112 @@
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::AuthenticationProperty
14
+ describe Carbon::AuthenticationProperty do
15
+ let(:instance) { Carbon::AuthenticationProperty.new }
16
+
17
+ describe 'test an instance of AuthenticationProperty' do
18
+ it 'should create an instance of AuthenticationProperty' do
19
+ expect(instance).to be_instance_of(Carbon::AuthenticationProperty)
20
+ end
21
+ end
22
+ describe 'test attribute "source"' do
23
+ it 'should work' do
24
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
25
+ end
26
+ end
27
+
28
+ describe 'test attribute "access_token"' do
29
+ it 'should work' do
30
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
31
+ end
32
+ end
33
+
34
+ describe 'test attribute "refresh_token"' do
35
+ it 'should work' do
36
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
37
+ end
38
+ end
39
+
40
+ describe 'test attribute "workspace_id"' do
41
+ it 'should work' do
42
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
43
+ end
44
+ end
45
+
46
+ describe 'test attribute "tenant_name"' do
47
+ it 'should work' do
48
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
49
+ end
50
+ end
51
+
52
+ describe 'test attribute "site_name"' do
53
+ it 'should work' do
54
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
55
+ end
56
+ end
57
+
58
+ describe 'test attribute "subdomain"' do
59
+ it 'should work' do
60
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
61
+ end
62
+ end
63
+
64
+ describe 'test attribute "access_token_secret"' do
65
+ it 'should work' do
66
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
67
+ end
68
+ end
69
+
70
+ describe 'test attribute "username"' do
71
+ it 'should work' do
72
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
73
+ end
74
+ end
75
+
76
+ describe 'test attribute "zotero_id"' do
77
+ it 'should work' do
78
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
79
+ end
80
+ end
81
+
82
+ describe 'test attribute "organization_name"' do
83
+ it 'should work' do
84
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
85
+ end
86
+ end
87
+
88
+ describe 'test attribute "domain"' do
89
+ it 'should work' do
90
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
91
+ end
92
+ end
93
+
94
+ describe 'test attribute "api_key"' do
95
+ it 'should work' do
96
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
97
+ end
98
+ end
99
+
100
+ describe 'test attribute "access_key"' do
101
+ it 'should work' do
102
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
103
+ end
104
+ end
105
+
106
+ describe 'test attribute "access_key_secret"' do
107
+ it 'should work' do
108
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
109
+ end
110
+ end
111
+
112
+ end
@@ -0,0 +1,46 @@
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::ConfluenceAuthentication
14
+ describe Carbon::ConfluenceAuthentication do
15
+ let(:instance) { Carbon::ConfluenceAuthentication.new }
16
+
17
+ describe 'test an instance of ConfluenceAuthentication' do
18
+ it 'should create an instance of ConfluenceAuthentication' do
19
+ expect(instance).to be_instance_of(Carbon::ConfluenceAuthentication)
20
+ end
21
+ end
22
+ describe 'test attribute "source"' do
23
+ it 'should work' do
24
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
25
+ end
26
+ end
27
+
28
+ describe 'test attribute "access_token"' do
29
+ it 'should work' do
30
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
31
+ end
32
+ end
33
+
34
+ describe 'test attribute "refresh_token"' do
35
+ it 'should work' do
36
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
37
+ end
38
+ end
39
+
40
+ describe 'test attribute "subdomain"' do
41
+ it 'should work' do
42
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
43
+ end
44
+ end
45
+
46
+ end
@@ -0,0 +1,34 @@
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::ConnectDataSourceInput
14
+ describe Carbon::ConnectDataSourceInput do
15
+ let(:instance) { Carbon::ConnectDataSourceInput.new }
16
+
17
+ describe 'test an instance of ConnectDataSourceInput' do
18
+ it 'should create an instance of ConnectDataSourceInput' do
19
+ expect(instance).to be_instance_of(Carbon::ConnectDataSourceInput)
20
+ end
21
+ end
22
+ describe 'test attribute "authentication"' do
23
+ it 'should work' do
24
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
25
+ end
26
+ end
27
+
28
+ describe 'test attribute "sync_options"' do
29
+ it 'should work' do
30
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
31
+ end
32
+ end
33
+
34
+ end
@@ -0,0 +1,34 @@
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::ConnectDataSourceResponse
14
+ describe Carbon::ConnectDataSourceResponse do
15
+ let(:instance) { Carbon::ConnectDataSourceResponse.new }
16
+
17
+ describe 'test an instance of ConnectDataSourceResponse' do
18
+ it 'should create an instance of ConnectDataSourceResponse' do
19
+ expect(instance).to be_instance_of(Carbon::ConnectDataSourceResponse)
20
+ end
21
+ end
22
+ describe 'test attribute "data_source"' do
23
+ it 'should work' do
24
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
25
+ end
26
+ end
27
+
28
+ describe 'test attribute "sync_url"' do
29
+ it 'should work' do
30
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
31
+ end
32
+ end
33
+
34
+ end
@@ -0,0 +1,40 @@
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::FreskdeskAuthentication
14
+ describe Carbon::FreskdeskAuthentication do
15
+ let(:instance) { Carbon::FreskdeskAuthentication.new }
16
+
17
+ describe 'test an instance of FreskdeskAuthentication' do
18
+ it 'should create an instance of FreskdeskAuthentication' do
19
+ expect(instance).to be_instance_of(Carbon::FreskdeskAuthentication)
20
+ end
21
+ end
22
+ describe 'test attribute "source"' do
23
+ it 'should work' do
24
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
25
+ end
26
+ end
27
+
28
+ describe 'test attribute "domain"' do
29
+ it 'should work' do
30
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
31
+ end
32
+ end
33
+
34
+ describe 'test attribute "api_key"' do
35
+ it 'should work' do
36
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
37
+ end
38
+ end
39
+
40
+ end
@@ -0,0 +1,40 @@
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::GitbookAuthetication
14
+ describe Carbon::GitbookAuthetication do
15
+ let(:instance) { Carbon::GitbookAuthetication.new }
16
+
17
+ describe 'test an instance of GitbookAuthetication' do
18
+ it 'should create an instance of GitbookAuthetication' do
19
+ expect(instance).to be_instance_of(Carbon::GitbookAuthetication)
20
+ end
21
+ end
22
+ describe 'test attribute "source"' do
23
+ it 'should work' do
24
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
25
+ end
26
+ end
27
+
28
+ describe 'test attribute "access_token"' do
29
+ it 'should work' do
30
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
31
+ end
32
+ end
33
+
34
+ describe 'test attribute "organization_name"' do
35
+ it 'should work' do
36
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
37
+ end
38
+ end
39
+
40
+ end