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.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +135 -9
- data/lib/carbon_ruby_sdk/api/embeddings_api.rb +2 -2
- data/lib/carbon_ruby_sdk/api/integrations_api.rb +252 -18
- data/lib/carbon_ruby_sdk/api/organizations_api.rb +92 -0
- data/lib/carbon_ruby_sdk/api/users_api.rb +2 -2
- data/lib/carbon_ruby_sdk/models/chunks_and_embeddings_upload_input.rb +4 -2
- data/lib/carbon_ruby_sdk/models/custom_credentials_type.rb +39 -0
- data/lib/carbon_ruby_sdk/models/embedding_generators.rb +2 -1
- data/lib/carbon_ruby_sdk/models/embedding_generators_nullable.rb +2 -1
- data/lib/carbon_ruby_sdk/models/external_source_items_order_by.rb +37 -0
- data/lib/carbon_ruby_sdk/models/file_statistics.rb +15 -5
- data/lib/carbon_ruby_sdk/models/file_statistics_nullable.rb +15 -5
- data/lib/carbon_ruby_sdk/models/fresh_desk_connect_request.rb +17 -5
- data/lib/carbon_ruby_sdk/models/gitbook_connect_request.rb +17 -5
- data/lib/carbon_ruby_sdk/models/github_connect_request.rb +16 -4
- data/lib/carbon_ruby_sdk/models/github_fetch_repos_request.rb +260 -0
- data/lib/carbon_ruby_sdk/models/list_data_source_items_request.rb +26 -4
- data/lib/carbon_ruby_sdk/models/o_auth_url_request.rb +18 -6
- data/lib/carbon_ruby_sdk/models/order_dir_v2.rb +36 -0
- data/lib/carbon_ruby_sdk/models/organization_response.rb +15 -1
- data/lib/carbon_ruby_sdk/models/organization_user_data_source_api.rb +19 -5
- data/lib/carbon_ruby_sdk/models/s3_auth_request.rb +16 -4
- data/lib/carbon_ruby_sdk/models/sync_files_request.rb +1 -1
- data/lib/carbon_ruby_sdk/models/sync_options.rb +17 -5
- data/lib/carbon_ruby_sdk/models/text_embedding_generators.rb +7 -1
- data/lib/carbon_ruby_sdk/models/update_organization_input.rb +216 -0
- data/lib/carbon_ruby_sdk/models/update_users_input.rb +41 -41
- data/lib/carbon_ruby_sdk/models/user_configuration.rb +268 -0
- data/lib/carbon_ruby_sdk/models/user_configuration_nullable.rb +269 -0
- data/lib/carbon_ruby_sdk/version.rb +1 -1
- data/lib/carbon_ruby_sdk.rb +7 -0
- data/spec/api/integrations_api_spec.rb +26 -0
- data/spec/api/organizations_api_spec.rb +11 -0
- data/spec/models/custom_credentials_type_spec.rb +22 -0
- data/spec/models/external_source_items_order_by_spec.rb +22 -0
- data/spec/models/file_statistics_nullable_spec.rb +6 -0
- data/spec/models/file_statistics_spec.rb +6 -0
- data/spec/models/fresh_desk_connect_request_spec.rb +6 -0
- data/spec/models/gitbook_connect_request_spec.rb +6 -0
- data/spec/models/github_connect_request_spec.rb +6 -0
- data/spec/models/github_fetch_repos_request_spec.rb +34 -0
- data/spec/models/list_data_source_items_request_spec.rb +12 -0
- data/spec/models/o_auth_url_request_spec.rb +6 -0
- data/spec/models/order_dir_v2_spec.rb +22 -0
- data/spec/models/organization_response_spec.rb +6 -0
- data/spec/models/organization_user_data_source_api_spec.rb +6 -0
- data/spec/models/s3_auth_request_spec.rb +6 -0
- data/spec/models/sync_options_spec.rb +6 -0
- data/spec/models/update_organization_input_spec.rb +28 -0
- data/spec/models/update_users_input_spec.rb +4 -4
- data/spec/models/user_configuration_nullable_spec.rb +40 -0
- data/spec/models/user_configuration_spec.rb +40 -0
- metadata +23 -2
@@ -0,0 +1,269 @@
|
|
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
|
+
# Used to set organization level defaults for user settings. These settings will apply to all users under the organization that don't have them defined.
|
14
|
+
class UserConfigurationNullable
|
15
|
+
attr_accessor :auto_sync_enabled_sources
|
16
|
+
|
17
|
+
# Custom file upload limit for the user over *all* user's files across all uploads. If set, then the user will not be allowed to upload more files than this limit. If not set, or if set to -1, then the user will have no limit.
|
18
|
+
attr_accessor :max_files
|
19
|
+
|
20
|
+
# Custom file upload limit for the user across a single upload. If set, then the user will not be allowed to upload more files than this limit in a single upload. If not set, or if set to -1, then the user will have no limit.
|
21
|
+
attr_accessor :max_files_per_upload
|
22
|
+
|
23
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
24
|
+
def self.attribute_map
|
25
|
+
{
|
26
|
+
:'auto_sync_enabled_sources' => :'auto_sync_enabled_sources',
|
27
|
+
:'max_files' => :'max_files',
|
28
|
+
:'max_files_per_upload' => :'max_files_per_upload'
|
29
|
+
}
|
30
|
+
end
|
31
|
+
|
32
|
+
# Returns all the JSON keys this model knows about
|
33
|
+
def self.acceptable_attributes
|
34
|
+
attribute_map.values
|
35
|
+
end
|
36
|
+
|
37
|
+
# Attribute type mapping.
|
38
|
+
def self.openapi_types
|
39
|
+
{
|
40
|
+
:'auto_sync_enabled_sources' => :'AutoSyncEnabledSourcesProperty',
|
41
|
+
:'max_files' => :'Integer',
|
42
|
+
:'max_files_per_upload' => :'Integer'
|
43
|
+
}
|
44
|
+
end
|
45
|
+
|
46
|
+
# List of attributes with nullable: true
|
47
|
+
def self.openapi_nullable
|
48
|
+
Set.new([
|
49
|
+
:'auto_sync_enabled_sources',
|
50
|
+
:'max_files',
|
51
|
+
:'max_files_per_upload'
|
52
|
+
])
|
53
|
+
end
|
54
|
+
|
55
|
+
# Initializes the object
|
56
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
57
|
+
def initialize(attributes = {})
|
58
|
+
if (!attributes.is_a?(Hash))
|
59
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Carbon::UserConfigurationNullable` initialize method"
|
60
|
+
end
|
61
|
+
|
62
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
63
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
64
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
65
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Carbon::UserConfigurationNullable`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
66
|
+
end
|
67
|
+
h[k.to_sym] = v
|
68
|
+
}
|
69
|
+
|
70
|
+
if attributes.key?(:'auto_sync_enabled_sources')
|
71
|
+
self.auto_sync_enabled_sources = attributes[:'auto_sync_enabled_sources']
|
72
|
+
end
|
73
|
+
|
74
|
+
if attributes.key?(:'max_files')
|
75
|
+
self.max_files = attributes[:'max_files']
|
76
|
+
end
|
77
|
+
|
78
|
+
if attributes.key?(:'max_files_per_upload')
|
79
|
+
self.max_files_per_upload = attributes[:'max_files_per_upload']
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
84
|
+
# @return Array for valid properties with the reasons
|
85
|
+
def list_invalid_properties
|
86
|
+
invalid_properties = Array.new
|
87
|
+
if !@max_files.nil? && @max_files < -1
|
88
|
+
invalid_properties.push('invalid value for "max_files", must be greater than or equal to -1.')
|
89
|
+
end
|
90
|
+
|
91
|
+
if !@max_files_per_upload.nil? && @max_files_per_upload < -1
|
92
|
+
invalid_properties.push('invalid value for "max_files_per_upload", must be greater than or equal to -1.')
|
93
|
+
end
|
94
|
+
|
95
|
+
invalid_properties
|
96
|
+
end
|
97
|
+
|
98
|
+
# Check to see if the all the properties in the model are valid
|
99
|
+
# @return true if the model is valid
|
100
|
+
def valid?
|
101
|
+
return false if !@max_files.nil? && @max_files < -1
|
102
|
+
return false if !@max_files_per_upload.nil? && @max_files_per_upload < -1
|
103
|
+
true
|
104
|
+
end
|
105
|
+
|
106
|
+
# Custom attribute writer method with validation
|
107
|
+
# @param [Object] max_files Value to be assigned
|
108
|
+
def max_files=(max_files)
|
109
|
+
if !max_files.nil? && max_files < -1
|
110
|
+
fail ArgumentError, 'invalid value for "max_files", must be greater than or equal to -1.'
|
111
|
+
end
|
112
|
+
|
113
|
+
@max_files = max_files
|
114
|
+
end
|
115
|
+
|
116
|
+
# Custom attribute writer method with validation
|
117
|
+
# @param [Object] max_files_per_upload Value to be assigned
|
118
|
+
def max_files_per_upload=(max_files_per_upload)
|
119
|
+
if !max_files_per_upload.nil? && max_files_per_upload < -1
|
120
|
+
fail ArgumentError, 'invalid value for "max_files_per_upload", must be greater than or equal to -1.'
|
121
|
+
end
|
122
|
+
|
123
|
+
@max_files_per_upload = max_files_per_upload
|
124
|
+
end
|
125
|
+
|
126
|
+
# Checks equality by comparing each attribute.
|
127
|
+
# @param [Object] Object to be compared
|
128
|
+
def ==(o)
|
129
|
+
return true if self.equal?(o)
|
130
|
+
self.class == o.class &&
|
131
|
+
auto_sync_enabled_sources == o.auto_sync_enabled_sources &&
|
132
|
+
max_files == o.max_files &&
|
133
|
+
max_files_per_upload == o.max_files_per_upload
|
134
|
+
end
|
135
|
+
|
136
|
+
# @see the `==` method
|
137
|
+
# @param [Object] Object to be compared
|
138
|
+
def eql?(o)
|
139
|
+
self == o
|
140
|
+
end
|
141
|
+
|
142
|
+
# Calculates hash code according to all attributes.
|
143
|
+
# @return [Integer] Hash code
|
144
|
+
def hash
|
145
|
+
[auto_sync_enabled_sources, max_files, max_files_per_upload].hash
|
146
|
+
end
|
147
|
+
|
148
|
+
# Builds the object from hash
|
149
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
150
|
+
# @return [Object] Returns the model itself
|
151
|
+
def self.build_from_hash(attributes)
|
152
|
+
new.build_from_hash(attributes)
|
153
|
+
end
|
154
|
+
|
155
|
+
# Builds the object from hash
|
156
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
157
|
+
# @return [Object] Returns the model itself
|
158
|
+
def build_from_hash(attributes)
|
159
|
+
return nil unless attributes.is_a?(Hash)
|
160
|
+
attributes = attributes.transform_keys(&:to_sym)
|
161
|
+
self.class.openapi_types.each_pair do |key, type|
|
162
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
163
|
+
self.send("#{key}=", nil)
|
164
|
+
elsif type =~ /\AArray<(.*)>/i
|
165
|
+
# check to ensure the input is an array given that the attribute
|
166
|
+
# is documented as an array but the input is not
|
167
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
168
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
169
|
+
end
|
170
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
171
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
172
|
+
end
|
173
|
+
end
|
174
|
+
|
175
|
+
self
|
176
|
+
end
|
177
|
+
|
178
|
+
# Deserializes the data based on type
|
179
|
+
# @param string type Data type
|
180
|
+
# @param string value Value to be deserialized
|
181
|
+
# @return [Object] Deserialized data
|
182
|
+
def _deserialize(type, value)
|
183
|
+
case type.to_sym
|
184
|
+
when :Time
|
185
|
+
Time.parse(value)
|
186
|
+
when :Date
|
187
|
+
Date.parse(value)
|
188
|
+
when :String
|
189
|
+
value.to_s
|
190
|
+
when :Integer
|
191
|
+
value.to_i
|
192
|
+
when :Float
|
193
|
+
value.to_f
|
194
|
+
when :Boolean
|
195
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
196
|
+
true
|
197
|
+
else
|
198
|
+
false
|
199
|
+
end
|
200
|
+
when :Object
|
201
|
+
# generic object (usually a Hash), return directly
|
202
|
+
value
|
203
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
204
|
+
inner_type = Regexp.last_match[:inner_type]
|
205
|
+
value.map { |v| _deserialize(inner_type, v) }
|
206
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
207
|
+
k_type = Regexp.last_match[:k_type]
|
208
|
+
v_type = Regexp.last_match[:v_type]
|
209
|
+
{}.tap do |hash|
|
210
|
+
value.each do |k, v|
|
211
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
212
|
+
end
|
213
|
+
end
|
214
|
+
else # model
|
215
|
+
# models (e.g. Pet) or oneOf
|
216
|
+
klass = Carbon.const_get(type)
|
217
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
218
|
+
end
|
219
|
+
end
|
220
|
+
|
221
|
+
# Returns the string representation of the object
|
222
|
+
# @return [String] String presentation of the object
|
223
|
+
def to_s
|
224
|
+
to_hash.to_s
|
225
|
+
end
|
226
|
+
|
227
|
+
# to_body is an alias to to_hash (backward compatibility)
|
228
|
+
# @return [Hash] Returns the object in the form of hash
|
229
|
+
def to_body
|
230
|
+
to_hash
|
231
|
+
end
|
232
|
+
|
233
|
+
# Returns the object in the form of hash
|
234
|
+
# @return [Hash] Returns the object in the form of hash
|
235
|
+
def to_hash
|
236
|
+
hash = {}
|
237
|
+
self.class.attribute_map.each_pair do |attr, param|
|
238
|
+
value = self.send(attr)
|
239
|
+
if value.nil?
|
240
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
241
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
242
|
+
end
|
243
|
+
|
244
|
+
hash[param] = _to_hash(value)
|
245
|
+
end
|
246
|
+
hash
|
247
|
+
end
|
248
|
+
|
249
|
+
# Outputs non-array value in the form of hash
|
250
|
+
# For object, use to_hash. Otherwise, just return the value
|
251
|
+
# @param [Object] value Any valid value
|
252
|
+
# @return [Hash] Returns the value in the form of hash
|
253
|
+
def _to_hash(value)
|
254
|
+
if value.is_a?(Array)
|
255
|
+
value.compact.map { |v| _to_hash(v) }
|
256
|
+
elsif value.is_a?(Hash)
|
257
|
+
{}.tap do |hash|
|
258
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
259
|
+
end
|
260
|
+
elsif value.respond_to? :to_hash
|
261
|
+
value.to_hash
|
262
|
+
else
|
263
|
+
value
|
264
|
+
end
|
265
|
+
end
|
266
|
+
|
267
|
+
end
|
268
|
+
|
269
|
+
end
|
data/lib/carbon_ruby_sdk.rb
CHANGED
@@ -26,6 +26,7 @@ require 'carbon_ruby_sdk/models/chunks_and_embeddings_upload_input'
|
|
26
26
|
require 'carbon_ruby_sdk/models/confluence_authentication'
|
27
27
|
require 'carbon_ruby_sdk/models/connect_data_source_input'
|
28
28
|
require 'carbon_ruby_sdk/models/connect_data_source_response'
|
29
|
+
require 'carbon_ruby_sdk/models/custom_credentials_type'
|
29
30
|
require 'carbon_ruby_sdk/models/data_source_last_sync_actions'
|
30
31
|
require 'carbon_ruby_sdk/models/data_source_sync_statuses'
|
31
32
|
require 'carbon_ruby_sdk/models/data_source_type'
|
@@ -46,6 +47,7 @@ require 'carbon_ruby_sdk/models/embeddings_and_chunks_query_input'
|
|
46
47
|
require 'carbon_ruby_sdk/models/embeddings_and_chunks_response'
|
47
48
|
require 'carbon_ruby_sdk/models/external_file_sync_statuses'
|
48
49
|
require 'carbon_ruby_sdk/models/external_source_item'
|
50
|
+
require 'carbon_ruby_sdk/models/external_source_items_order_by'
|
49
51
|
require 'carbon_ruby_sdk/models/fetch_urls_response'
|
50
52
|
require 'carbon_ruby_sdk/models/file_content_types'
|
51
53
|
require 'carbon_ruby_sdk/models/file_content_types_nullable'
|
@@ -62,6 +64,7 @@ require 'carbon_ruby_sdk/models/gitbook_connect_request'
|
|
62
64
|
require 'carbon_ruby_sdk/models/gitbook_sync_request'
|
63
65
|
require 'carbon_ruby_sdk/models/github_authentication'
|
64
66
|
require 'carbon_ruby_sdk/models/github_connect_request'
|
67
|
+
require 'carbon_ruby_sdk/models/github_fetch_repos_request'
|
65
68
|
require 'carbon_ruby_sdk/models/gmail_sync_input'
|
66
69
|
require 'carbon_ruby_sdk/models/http_validation_error'
|
67
70
|
require 'carbon_ruby_sdk/models/hybrid_search_tuning_params'
|
@@ -79,6 +82,7 @@ require 'carbon_ruby_sdk/models/notion_authentication'
|
|
79
82
|
require 'carbon_ruby_sdk/models/o_auth_authentication'
|
80
83
|
require 'carbon_ruby_sdk/models/o_auth_url_request'
|
81
84
|
require 'carbon_ruby_sdk/models/order_dir'
|
85
|
+
require 'carbon_ruby_sdk/models/order_dir_v2'
|
82
86
|
require 'carbon_ruby_sdk/models/organization_response'
|
83
87
|
require 'carbon_ruby_sdk/models/organization_user_data_source_api'
|
84
88
|
require 'carbon_ruby_sdk/models/organization_user_data_source_filters'
|
@@ -118,8 +122,11 @@ require 'carbon_ruby_sdk/models/tags'
|
|
118
122
|
require 'carbon_ruby_sdk/models/tags1'
|
119
123
|
require 'carbon_ruby_sdk/models/text_embedding_generators'
|
120
124
|
require 'carbon_ruby_sdk/models/token_response'
|
125
|
+
require 'carbon_ruby_sdk/models/update_organization_input'
|
121
126
|
require 'carbon_ruby_sdk/models/update_users_input'
|
122
127
|
require 'carbon_ruby_sdk/models/upload_file_from_url_input'
|
128
|
+
require 'carbon_ruby_sdk/models/user_configuration'
|
129
|
+
require 'carbon_ruby_sdk/models/user_configuration_nullable'
|
123
130
|
require 'carbon_ruby_sdk/models/user_file'
|
124
131
|
require 'carbon_ruby_sdk/models/user_files_v2'
|
125
132
|
require 'carbon_ruby_sdk/models/user_request_content'
|
@@ -156,6 +156,20 @@ describe 'IntegrationsApi' do
|
|
156
156
|
end
|
157
157
|
end
|
158
158
|
|
159
|
+
# unit tests for list_repos
|
160
|
+
# Github List Repos
|
161
|
+
# Once you have connected your GitHub account, you can use this endpoint to list the repositories your account has access to. You can use a data source ID or username to fetch from a specific account.
|
162
|
+
# @param [Hash] opts the optional parameters
|
163
|
+
# @option opts [Integer] :per_page
|
164
|
+
# @option opts [Integer] :page
|
165
|
+
# @option opts [Integer] :data_source_id
|
166
|
+
# @return [Object]
|
167
|
+
describe 'list_repos test' do
|
168
|
+
it 'should work' do
|
169
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
170
|
+
end
|
171
|
+
end
|
172
|
+
|
159
173
|
# unit tests for sync_confluence
|
160
174
|
# Confluence Sync
|
161
175
|
# After listing pages in a user's Confluence account, the set of selected page `ids` and the connected account's `data_source_id` can be passed into this endpoint to sync them into Carbon. Additional parameters listed below can be used to associate data to the selected pages or alter the behavior of the sync.
|
@@ -239,6 +253,18 @@ describe 'IntegrationsApi' do
|
|
239
253
|
end
|
240
254
|
end
|
241
255
|
|
256
|
+
# unit tests for sync_repos
|
257
|
+
# Github Sync Repos
|
258
|
+
# You can retreive repos your token has access to using /integrations/github/repos and sync their content. You can also pass full name of any public repository (username/repo-name). This will store the repo content with carbon which can be accessed through /integrations/items/list endpoint. Maximum of 25 repositories are accepted per request.
|
259
|
+
# @param github_fetch_repos_request
|
260
|
+
# @param [Hash] opts the optional parameters
|
261
|
+
# @return [Object]
|
262
|
+
describe 'sync_repos test' do
|
263
|
+
it 'should work' do
|
264
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
265
|
+
end
|
266
|
+
end
|
267
|
+
|
242
268
|
# unit tests for sync_rss_feed
|
243
269
|
# Rss Feed
|
244
270
|
# @param rss_feed_input
|
@@ -36,4 +36,15 @@ describe 'OrganizationsApi' do
|
|
36
36
|
end
|
37
37
|
end
|
38
38
|
|
39
|
+
# unit tests for update
|
40
|
+
# Update Organization
|
41
|
+
# @param update_organization_input
|
42
|
+
# @param [Hash] opts the optional parameters
|
43
|
+
# @return [GenericSuccessResponse]
|
44
|
+
describe 'update test' do
|
45
|
+
it 'should work' do
|
46
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
39
50
|
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::CustomCredentialsType
|
14
|
+
describe Carbon::CustomCredentialsType do
|
15
|
+
let(:instance) { Carbon::CustomCredentialsType.new }
|
16
|
+
|
17
|
+
describe 'test an instance of CustomCredentialsType' do
|
18
|
+
it 'should create an instance of CustomCredentialsType' do
|
19
|
+
expect(instance).to be_instance_of(Carbon::CustomCredentialsType)
|
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::ExternalSourceItemsOrderBy
|
14
|
+
describe Carbon::ExternalSourceItemsOrderBy do
|
15
|
+
let(:instance) { Carbon::ExternalSourceItemsOrderBy.new }
|
16
|
+
|
17
|
+
describe 'test an instance of ExternalSourceItemsOrderBy' do
|
18
|
+
it 'should create an instance of ExternalSourceItemsOrderBy' do
|
19
|
+
expect(instance).to be_instance_of(Carbon::ExternalSourceItemsOrderBy)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -85,4 +85,10 @@ describe Carbon::FreshDeskConnectRequest do
|
|
85
85
|
end
|
86
86
|
end
|
87
87
|
|
88
|
+
describe 'test attribute "sync_source_items"' 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
|
+
|
88
94
|
end
|
@@ -85,4 +85,10 @@ describe Carbon::GitbookConnectRequest do
|
|
85
85
|
end
|
86
86
|
end
|
87
87
|
|
88
|
+
describe 'test attribute "sync_source_items"' 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
|
+
|
88
94
|
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::GithubFetchReposRequest
|
14
|
+
describe Carbon::GithubFetchReposRequest do
|
15
|
+
let(:instance) { Carbon::GithubFetchReposRequest.new }
|
16
|
+
|
17
|
+
describe 'test an instance of GithubFetchReposRequest' do
|
18
|
+
it 'should create an instance of GithubFetchReposRequest' do
|
19
|
+
expect(instance).to be_instance_of(Carbon::GithubFetchReposRequest)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
describe 'test attribute "repos"' 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 "data_source_id"' 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
|
@@ -43,4 +43,16 @@ describe Carbon::ListDataSourceItemsRequest do
|
|
43
43
|
end
|
44
44
|
end
|
45
45
|
|
46
|
+
describe 'test attribute "order_by"' 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 "order_dir"' 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
|
+
|
46
58
|
end
|
@@ -157,4 +157,10 @@ describe Carbon::OAuthURLRequest do
|
|
157
157
|
end
|
158
158
|
end
|
159
159
|
|
160
|
+
describe 'test attribute "sync_source_items"' do
|
161
|
+
it 'should work' do
|
162
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
163
|
+
end
|
164
|
+
end
|
165
|
+
|
160
166
|
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::OrderDirV2
|
14
|
+
describe Carbon::OrderDirV2 do
|
15
|
+
let(:instance) { Carbon::OrderDirV2.new }
|
16
|
+
|
17
|
+
describe 'test an instance of OrderDirV2' do
|
18
|
+
it 'should create an instance of OrderDirV2' do
|
19
|
+
expect(instance).to be_instance_of(Carbon::OrderDirV2)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -91,6 +91,12 @@ describe Carbon::OrganizationResponse do
|
|
91
91
|
end
|
92
92
|
end
|
93
93
|
|
94
|
+
describe 'test attribute "global_user_config"' 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
|
+
|
94
100
|
describe 'test attribute "created_at"' do
|
95
101
|
it 'should work' do
|
96
102
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -115,4 +115,10 @@ describe Carbon::OrganizationUserDataSourceAPI do
|
|
115
115
|
end
|
116
116
|
end
|
117
117
|
|
118
|
+
describe 'test attribute "data_source_metadata"' do
|
119
|
+
it 'should work' do
|
120
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
121
|
+
end
|
122
|
+
end
|
123
|
+
|
118
124
|
end
|
@@ -0,0 +1,28 @@
|
|
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::UpdateOrganizationInput
|
14
|
+
describe Carbon::UpdateOrganizationInput do
|
15
|
+
let(:instance) { Carbon::UpdateOrganizationInput.new }
|
16
|
+
|
17
|
+
describe 'test an instance of UpdateOrganizationInput' do
|
18
|
+
it 'should create an instance of UpdateOrganizationInput' do
|
19
|
+
expect(instance).to be_instance_of(Carbon::UpdateOrganizationInput)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
describe 'test attribute "global_user_config"' 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
|
+
end
|