carbon_ruby_sdk 0.2.48 → 0.2.49
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/README.md +54 -22
- data/lib/carbon_ruby_sdk/api/data_sources_api.rb +106 -2
- data/lib/carbon_ruby_sdk/api/embeddings_api.rb +4 -4
- data/lib/carbon_ruby_sdk/api/files_api.rb +22 -22
- data/lib/carbon_ruby_sdk/api/github_api.rb +6 -6
- data/lib/carbon_ruby_sdk/api/integrations_api.rb +20 -20
- data/lib/carbon_ruby_sdk/api/users_api.rb +10 -6
- data/lib/carbon_ruby_sdk/api/utilities_api.rb +4 -4
- data/lib/carbon_ruby_sdk/api/webhooks_api.rb +2 -2
- data/lib/carbon_ruby_sdk/api/white_label_api.rb +2 -2
- data/lib/carbon_ruby_sdk/models/authentication_property.rb +6 -2
- data/lib/carbon_ruby_sdk/models/auto_sync_enabled_sources_property.rb +1 -1
- data/lib/carbon_ruby_sdk/models/azure_blob_file_sync_input.rb +0 -2
- data/lib/carbon_ruby_sdk/models/azure_blob_storage_authentication.rb +6 -2
- data/lib/carbon_ruby_sdk/models/azure_blob_storage_types.rb +35 -0
- data/lib/carbon_ruby_sdk/models/chunk_properties.rb +0 -10
- data/lib/carbon_ruby_sdk/models/chunk_properties_nullable.rb +0 -10
- data/lib/carbon_ruby_sdk/models/comments_input.rb +0 -2
- data/lib/carbon_ruby_sdk/models/configuration_keys.rb +35 -0
- data/lib/carbon_ruby_sdk/models/confluence_authentication.rb +6 -2
- data/lib/carbon_ruby_sdk/models/confluence_authentication_source.rb +35 -0
- data/lib/carbon_ruby_sdk/models/data_source_extended_input.rb +35 -0
- data/lib/carbon_ruby_sdk/models/directory_item.rb +0 -10
- data/lib/carbon_ruby_sdk/models/embedding_model.rb +1 -1
- data/lib/carbon_ruby_sdk/models/embeddings_and_chunks_query_input.rb +0 -4
- data/lib/carbon_ruby_sdk/models/embeddings_and_chunks_query_input_v2.rb +0 -4
- data/lib/carbon_ruby_sdk/models/freskdesk_authentication.rb +6 -2
- data/lib/carbon_ruby_sdk/models/freskdesk_authentication_source.rb +35 -0
- data/lib/carbon_ruby_sdk/models/gitbook_authetication.rb +6 -2
- data/lib/carbon_ruby_sdk/models/gitbook_authetication_source.rb +35 -0
- data/lib/carbon_ruby_sdk/models/gitbook_connect_request.rb +0 -2
- data/lib/carbon_ruby_sdk/models/gitbook_sync_request.rb +0 -2
- data/lib/carbon_ruby_sdk/models/github_authentication.rb +6 -2
- data/lib/carbon_ruby_sdk/models/github_authentication_source.rb +35 -0
- data/lib/carbon_ruby_sdk/models/gmail_sync_input.rb +0 -2
- data/lib/carbon_ruby_sdk/models/gong_authentication.rb +6 -2
- data/lib/carbon_ruby_sdk/models/gong_authentication_source.rb +35 -0
- data/lib/carbon_ruby_sdk/models/google_drive_white_label_input.rb +6 -2
- data/lib/carbon_ruby_sdk/models/google_drive_white_label_input_data_source_type.rb +35 -0
- data/lib/carbon_ruby_sdk/models/guru_authentication.rb +6 -2
- data/lib/carbon_ruby_sdk/models/guru_authentication_source.rb +35 -0
- data/lib/carbon_ruby_sdk/models/guru_connect_request.rb +0 -2
- data/lib/carbon_ruby_sdk/models/issues_filter.rb +0 -2
- data/lib/carbon_ruby_sdk/models/issues_input.rb +0 -2
- data/lib/carbon_ruby_sdk/models/item_types_property_inner.rb +1 -1
- data/lib/carbon_ruby_sdk/models/list_data_source_items_request.rb +0 -4
- data/lib/carbon_ruby_sdk/models/list_user_response.rb +0 -10
- data/lib/carbon_ruby_sdk/models/list_users_request.rb +0 -4
- data/lib/carbon_ruby_sdk/models/list_white_label_request.rb +0 -4
- data/lib/carbon_ruby_sdk/models/modify_user_configuration_input.rb +1 -1
- data/lib/carbon_ruby_sdk/models/multi_modal_embedding_generators.rb +35 -0
- data/lib/carbon_ruby_sdk/models/notion_authentication.rb +6 -2
- data/lib/carbon_ruby_sdk/models/notion_authentication_source.rb +35 -0
- data/lib/carbon_ruby_sdk/models/one_drive_authentication.rb +6 -2
- data/lib/carbon_ruby_sdk/models/one_drive_authentication_source.rb +35 -0
- data/lib/carbon_ruby_sdk/models/organization_response.rb +0 -20
- data/lib/carbon_ruby_sdk/models/organization_user_data_source_query_input.rb +0 -4
- data/lib/carbon_ruby_sdk/models/organization_user_files_to_sync_query_input.rb +0 -8
- data/lib/carbon_ruby_sdk/models/outlook_sync_input.rb +0 -2
- data/lib/carbon_ruby_sdk/models/pull_request_filters.rb +0 -2
- data/lib/carbon_ruby_sdk/models/pull_requests_input.rb +0 -2
- data/lib/carbon_ruby_sdk/models/rss_feed_input.rb +0 -2
- data/lib/carbon_ruby_sdk/models/s3_authentication.rb +6 -2
- data/lib/carbon_ruby_sdk/models/s3_authentication_source.rb +35 -0
- data/lib/carbon_ruby_sdk/models/s3_file_sync_input.rb +0 -2
- data/lib/carbon_ruby_sdk/models/salesforce_authentication.rb +6 -2
- data/lib/carbon_ruby_sdk/models/salesforce_authentication_source.rb +35 -0
- data/lib/carbon_ruby_sdk/models/service_now_authentication.rb +6 -2
- data/lib/carbon_ruby_sdk/models/service_now_authentication_source.rb +35 -0
- data/lib/carbon_ruby_sdk/models/sharepoint_authentication.rb +6 -2
- data/lib/carbon_ruby_sdk/models/sharepoint_authentication_source.rb +35 -0
- data/lib/carbon_ruby_sdk/models/sitemap_scrape_request.rb +0 -2
- data/lib/carbon_ruby_sdk/models/slack_sync_request.rb +0 -2
- data/lib/carbon_ruby_sdk/models/source.rb +35 -0
- data/lib/carbon_ruby_sdk/models/update_users_input.rb +27 -1
- data/lib/carbon_ruby_sdk/models/upload_file_from_url_input.rb +0 -2
- data/lib/carbon_ruby_sdk/models/user_configuration.rb +31 -5
- data/lib/carbon_ruby_sdk/models/user_configuration_nullable.rb +31 -5
- data/lib/carbon_ruby_sdk/models/user_file.rb +0 -20
- data/lib/carbon_ruby_sdk/models/user_response.rb +0 -15
- data/lib/carbon_ruby_sdk/models/user_web_pages_request.rb +0 -4
- data/lib/carbon_ruby_sdk/models/webhook_query_input.rb +0 -4
- data/lib/carbon_ruby_sdk/models/webscrape_request.rb +0 -2
- data/lib/carbon_ruby_sdk/models/white_labeling_response.rb +0 -5
- data/lib/carbon_ruby_sdk/models/zendesk_authentication.rb +6 -2
- data/lib/carbon_ruby_sdk/models/zendesk_authentication_source.rb +35 -0
- data/lib/carbon_ruby_sdk/models/zotero_authentication.rb +6 -2
- data/lib/carbon_ruby_sdk/models/zotero_authentication_source.rb +35 -0
- data/lib/carbon_ruby_sdk/version.rb +1 -1
- data/lib/carbon_ruby_sdk.rb +20 -0
- data/spec/api/data_sources_api_spec.rb +11 -0
- data/spec/models/azure_blob_storage_types_spec.rb +22 -0
- data/spec/models/configuration_keys_spec.rb +22 -0
- data/spec/models/confluence_authentication_source_spec.rb +22 -0
- data/spec/models/data_source_extended_input_spec.rb +22 -0
- data/spec/models/freskdesk_authentication_source_spec.rb +22 -0
- data/spec/models/gitbook_authetication_source_spec.rb +22 -0
- data/spec/models/github_authentication_source_spec.rb +22 -0
- data/spec/models/gong_authentication_source_spec.rb +22 -0
- data/spec/models/google_drive_white_label_input_data_source_type_spec.rb +22 -0
- data/spec/models/guru_authentication_source_spec.rb +22 -0
- data/spec/models/multi_modal_embedding_generators_spec.rb +22 -0
- data/spec/models/notion_authentication_source_spec.rb +22 -0
- data/spec/models/one_drive_authentication_source_spec.rb +22 -0
- data/spec/models/s3_authentication_source_spec.rb +22 -0
- data/spec/models/salesforce_authentication_source_spec.rb +22 -0
- data/spec/models/service_now_authentication_source_spec.rb +22 -0
- data/spec/models/sharepoint_authentication_source_spec.rb +22 -0
- data/spec/models/source_spec.rb +22 -0
- data/spec/models/update_users_input_spec.rb +6 -0
- data/spec/models/user_configuration_nullable_spec.rb +6 -0
- data/spec/models/user_configuration_spec.rb +6 -0
- data/spec/models/zendesk_authentication_source_spec.rb +22 -0
- data/spec/models/zotero_authentication_source_spec.rb +22 -0
- metadata +62 -2
@@ -0,0 +1,35 @@
|
|
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 DataSourceExtendedInput
|
14
|
+
ALL = "ALL".freeze
|
15
|
+
|
16
|
+
def self.all_vars
|
17
|
+
@all_vars ||= [ALL].freeze
|
18
|
+
end
|
19
|
+
|
20
|
+
# Builds the enum from string
|
21
|
+
# @param [String] The enum value in the form of the string
|
22
|
+
# @return [String] The enum value
|
23
|
+
def self.build_from_hash(value)
|
24
|
+
new.build_from_hash(value)
|
25
|
+
end
|
26
|
+
|
27
|
+
# Builds the enum from string
|
28
|
+
# @param [String] The enum value in the form of the string
|
29
|
+
# @return [String] The enum value
|
30
|
+
def build_from_hash(value)
|
31
|
+
return value if DataSourceExtendedInput.all_vars.include?(value)
|
32
|
+
raise "Invalid ENUM value #{value} for class #DataSourceExtendedInput"
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -98,14 +98,6 @@ module Carbon
|
|
98
98
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
99
99
|
end
|
100
100
|
|
101
|
-
if @is_synced.nil?
|
102
|
-
invalid_properties.push('invalid value for "is_synced", is_synced cannot be nil.')
|
103
|
-
end
|
104
|
-
|
105
|
-
if @has_children.nil?
|
106
|
-
invalid_properties.push('invalid value for "has_children", has_children cannot be nil.')
|
107
|
-
end
|
108
|
-
|
109
101
|
invalid_properties
|
110
102
|
end
|
111
103
|
|
@@ -114,8 +106,6 @@ module Carbon
|
|
114
106
|
def valid?
|
115
107
|
return false if @id.nil?
|
116
108
|
return false if @name.nil?
|
117
|
-
return false if @is_synced.nil?
|
118
|
-
return false if @has_children.nil?
|
119
109
|
true
|
120
110
|
end
|
121
111
|
|
@@ -75,14 +75,10 @@ module Carbon
|
|
75
75
|
|
76
76
|
if attributes.key?(:'order_by')
|
77
77
|
self.order_by = attributes[:'order_by']
|
78
|
-
else
|
79
|
-
self.order_by = 'updated_at'
|
80
78
|
end
|
81
79
|
|
82
80
|
if attributes.key?(:'order_dir')
|
83
81
|
self.order_dir = attributes[:'order_dir']
|
84
|
-
else
|
85
|
-
self.order_dir = 'asc'
|
86
82
|
end
|
87
83
|
|
88
84
|
if attributes.key?(:'filters')
|
@@ -75,14 +75,10 @@ module Carbon
|
|
75
75
|
|
76
76
|
if attributes.key?(:'order_by')
|
77
77
|
self.order_by = attributes[:'order_by']
|
78
|
-
else
|
79
|
-
self.order_by = 'updated_at'
|
80
78
|
end
|
81
79
|
|
82
80
|
if attributes.key?(:'order_dir')
|
83
81
|
self.order_dir = attributes[:'order_dir']
|
84
|
-
else
|
85
|
-
self.order_dir = 'asc'
|
86
82
|
end
|
87
83
|
|
88
84
|
if attributes.key?(:'filters')
|
@@ -34,7 +34,7 @@ module Carbon
|
|
34
34
|
# Attribute type mapping.
|
35
35
|
def self.openapi_types
|
36
36
|
{
|
37
|
-
:'source' => :'
|
37
|
+
:'source' => :'FreskdeskAuthenticationSource',
|
38
38
|
:'domain' => :'String',
|
39
39
|
:'api_key' => :'String'
|
40
40
|
}
|
@@ -43,7 +43,6 @@ module Carbon
|
|
43
43
|
# List of attributes with nullable: true
|
44
44
|
def self.openapi_nullable
|
45
45
|
Set.new([
|
46
|
-
:'source',
|
47
46
|
])
|
48
47
|
end
|
49
48
|
|
@@ -79,6 +78,10 @@ module Carbon
|
|
79
78
|
# @return Array for valid properties with the reasons
|
80
79
|
def list_invalid_properties
|
81
80
|
invalid_properties = Array.new
|
81
|
+
if @source.nil?
|
82
|
+
invalid_properties.push('invalid value for "source", source cannot be nil.')
|
83
|
+
end
|
84
|
+
|
82
85
|
if @domain.nil?
|
83
86
|
invalid_properties.push('invalid value for "domain", domain cannot be nil.')
|
84
87
|
end
|
@@ -93,6 +96,7 @@ module Carbon
|
|
93
96
|
# Check to see if the all the properties in the model are valid
|
94
97
|
# @return true if the model is valid
|
95
98
|
def valid?
|
99
|
+
return false if @source.nil?
|
96
100
|
return false if @domain.nil?
|
97
101
|
return false if @api_key.nil?
|
98
102
|
true
|
@@ -0,0 +1,35 @@
|
|
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 FreskdeskAuthenticationSource
|
14
|
+
FRESHDESK = "FRESHDESK".freeze
|
15
|
+
|
16
|
+
def self.all_vars
|
17
|
+
@all_vars ||= [FRESHDESK].freeze
|
18
|
+
end
|
19
|
+
|
20
|
+
# Builds the enum from string
|
21
|
+
# @param [String] The enum value in the form of the string
|
22
|
+
# @return [String] The enum value
|
23
|
+
def self.build_from_hash(value)
|
24
|
+
new.build_from_hash(value)
|
25
|
+
end
|
26
|
+
|
27
|
+
# Builds the enum from string
|
28
|
+
# @param [String] The enum value in the form of the string
|
29
|
+
# @return [String] The enum value
|
30
|
+
def build_from_hash(value)
|
31
|
+
return value if FreskdeskAuthenticationSource.all_vars.include?(value)
|
32
|
+
raise "Invalid ENUM value #{value} for class #FreskdeskAuthenticationSource"
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -34,7 +34,7 @@ module Carbon
|
|
34
34
|
# Attribute type mapping.
|
35
35
|
def self.openapi_types
|
36
36
|
{
|
37
|
-
:'source' => :'
|
37
|
+
:'source' => :'GitbookAutheticationSource',
|
38
38
|
:'access_token' => :'String',
|
39
39
|
:'organization_name' => :'String'
|
40
40
|
}
|
@@ -43,7 +43,6 @@ module Carbon
|
|
43
43
|
# List of attributes with nullable: true
|
44
44
|
def self.openapi_nullable
|
45
45
|
Set.new([
|
46
|
-
:'source',
|
47
46
|
])
|
48
47
|
end
|
49
48
|
|
@@ -79,6 +78,10 @@ module Carbon
|
|
79
78
|
# @return Array for valid properties with the reasons
|
80
79
|
def list_invalid_properties
|
81
80
|
invalid_properties = Array.new
|
81
|
+
if @source.nil?
|
82
|
+
invalid_properties.push('invalid value for "source", source cannot be nil.')
|
83
|
+
end
|
84
|
+
|
82
85
|
if @access_token.nil?
|
83
86
|
invalid_properties.push('invalid value for "access_token", access_token cannot be nil.')
|
84
87
|
end
|
@@ -93,6 +96,7 @@ module Carbon
|
|
93
96
|
# Check to see if the all the properties in the model are valid
|
94
97
|
# @return true if the model is valid
|
95
98
|
def valid?
|
99
|
+
return false if @source.nil?
|
96
100
|
return false if @access_token.nil?
|
97
101
|
return false if @organization_name.nil?
|
98
102
|
true
|
@@ -0,0 +1,35 @@
|
|
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 GitbookAutheticationSource
|
14
|
+
GITBOOK = "GITBOOK".freeze
|
15
|
+
|
16
|
+
def self.all_vars
|
17
|
+
@all_vars ||= [GITBOOK].freeze
|
18
|
+
end
|
19
|
+
|
20
|
+
# Builds the enum from string
|
21
|
+
# @param [String] The enum value in the form of the string
|
22
|
+
# @return [String] The enum value
|
23
|
+
def self.build_from_hash(value)
|
24
|
+
new.build_from_hash(value)
|
25
|
+
end
|
26
|
+
|
27
|
+
# Builds the enum from string
|
28
|
+
# @param [String] The enum value in the form of the string
|
29
|
+
# @return [String] The enum value
|
30
|
+
def build_from_hash(value)
|
31
|
+
return value if GitbookAutheticationSource.all_vars.include?(value)
|
32
|
+
raise "Invalid ENUM value #{value} for class #GitbookAutheticationSource"
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -34,7 +34,7 @@ module Carbon
|
|
34
34
|
# Attribute type mapping.
|
35
35
|
def self.openapi_types
|
36
36
|
{
|
37
|
-
:'source' => :'
|
37
|
+
:'source' => :'GithubAuthenticationSource',
|
38
38
|
:'access_token' => :'String',
|
39
39
|
:'username' => :'String'
|
40
40
|
}
|
@@ -43,7 +43,6 @@ module Carbon
|
|
43
43
|
# List of attributes with nullable: true
|
44
44
|
def self.openapi_nullable
|
45
45
|
Set.new([
|
46
|
-
:'source',
|
47
46
|
])
|
48
47
|
end
|
49
48
|
|
@@ -79,6 +78,10 @@ module Carbon
|
|
79
78
|
# @return Array for valid properties with the reasons
|
80
79
|
def list_invalid_properties
|
81
80
|
invalid_properties = Array.new
|
81
|
+
if @source.nil?
|
82
|
+
invalid_properties.push('invalid value for "source", source cannot be nil.')
|
83
|
+
end
|
84
|
+
|
82
85
|
if @access_token.nil?
|
83
86
|
invalid_properties.push('invalid value for "access_token", access_token cannot be nil.')
|
84
87
|
end
|
@@ -93,6 +96,7 @@ module Carbon
|
|
93
96
|
# Check to see if the all the properties in the model are valid
|
94
97
|
# @return true if the model is valid
|
95
98
|
def valid?
|
99
|
+
return false if @source.nil?
|
96
100
|
return false if @access_token.nil?
|
97
101
|
return false if @username.nil?
|
98
102
|
true
|
@@ -0,0 +1,35 @@
|
|
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 GithubAuthenticationSource
|
14
|
+
GITHUB = "GITHUB".freeze
|
15
|
+
|
16
|
+
def self.all_vars
|
17
|
+
@all_vars ||= [GITHUB].freeze
|
18
|
+
end
|
19
|
+
|
20
|
+
# Builds the enum from string
|
21
|
+
# @param [String] The enum value in the form of the string
|
22
|
+
# @return [String] The enum value
|
23
|
+
def self.build_from_hash(value)
|
24
|
+
new.build_from_hash(value)
|
25
|
+
end
|
26
|
+
|
27
|
+
# Builds the enum from string
|
28
|
+
# @param [String] The enum value in the form of the string
|
29
|
+
# @return [String] The enum value
|
30
|
+
def build_from_hash(value)
|
31
|
+
return value if GithubAuthenticationSource.all_vars.include?(value)
|
32
|
+
raise "Invalid ENUM value #{value} for class #GithubAuthenticationSource"
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -37,7 +37,7 @@ module Carbon
|
|
37
37
|
# Attribute type mapping.
|
38
38
|
def self.openapi_types
|
39
39
|
{
|
40
|
-
:'source' => :'
|
40
|
+
:'source' => :'GongAuthenticationSource',
|
41
41
|
:'access_token' => :'String',
|
42
42
|
:'refresh_token' => :'String',
|
43
43
|
:'gong_account_email' => :'String'
|
@@ -47,7 +47,6 @@ module Carbon
|
|
47
47
|
# List of attributes with nullable: true
|
48
48
|
def self.openapi_nullable
|
49
49
|
Set.new([
|
50
|
-
:'source',
|
51
50
|
:'refresh_token',
|
52
51
|
])
|
53
52
|
end
|
@@ -88,6 +87,10 @@ module Carbon
|
|
88
87
|
# @return Array for valid properties with the reasons
|
89
88
|
def list_invalid_properties
|
90
89
|
invalid_properties = Array.new
|
90
|
+
if @source.nil?
|
91
|
+
invalid_properties.push('invalid value for "source", source cannot be nil.')
|
92
|
+
end
|
93
|
+
|
91
94
|
if @access_token.nil?
|
92
95
|
invalid_properties.push('invalid value for "access_token", access_token cannot be nil.')
|
93
96
|
end
|
@@ -102,6 +105,7 @@ module Carbon
|
|
102
105
|
# Check to see if the all the properties in the model are valid
|
103
106
|
# @return true if the model is valid
|
104
107
|
def valid?
|
108
|
+
return false if @source.nil?
|
105
109
|
return false if @access_token.nil?
|
106
110
|
return false if @gong_account_email.nil?
|
107
111
|
true
|
@@ -0,0 +1,35 @@
|
|
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 GongAuthenticationSource
|
14
|
+
GONG = "GONG".freeze
|
15
|
+
|
16
|
+
def self.all_vars
|
17
|
+
@all_vars ||= [GONG].freeze
|
18
|
+
end
|
19
|
+
|
20
|
+
# Builds the enum from string
|
21
|
+
# @param [String] The enum value in the form of the string
|
22
|
+
# @return [String] The enum value
|
23
|
+
def self.build_from_hash(value)
|
24
|
+
new.build_from_hash(value)
|
25
|
+
end
|
26
|
+
|
27
|
+
# Builds the enum from string
|
28
|
+
# @param [String] The enum value in the form of the string
|
29
|
+
# @return [String] The enum value
|
30
|
+
def build_from_hash(value)
|
31
|
+
return value if GongAuthenticationSource.all_vars.include?(value)
|
32
|
+
raise "Invalid ENUM value #{value} for class #GongAuthenticationSource"
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -31,7 +31,7 @@ module Carbon
|
|
31
31
|
# Attribute type mapping.
|
32
32
|
def self.openapi_types
|
33
33
|
{
|
34
|
-
:'data_source_type' => :'
|
34
|
+
:'data_source_type' => :'GoogleDriveWhiteLabelInputDataSourceType',
|
35
35
|
:'credentials' => :'GoogleDriveCredentials'
|
36
36
|
}
|
37
37
|
end
|
@@ -39,7 +39,6 @@ module Carbon
|
|
39
39
|
# List of attributes with nullable: true
|
40
40
|
def self.openapi_nullable
|
41
41
|
Set.new([
|
42
|
-
:'data_source_type',
|
43
42
|
])
|
44
43
|
end
|
45
44
|
|
@@ -71,6 +70,10 @@ module Carbon
|
|
71
70
|
# @return Array for valid properties with the reasons
|
72
71
|
def list_invalid_properties
|
73
72
|
invalid_properties = Array.new
|
73
|
+
if @data_source_type.nil?
|
74
|
+
invalid_properties.push('invalid value for "data_source_type", data_source_type cannot be nil.')
|
75
|
+
end
|
76
|
+
|
74
77
|
if @credentials.nil?
|
75
78
|
invalid_properties.push('invalid value for "credentials", credentials cannot be nil.')
|
76
79
|
end
|
@@ -81,6 +84,7 @@ module Carbon
|
|
81
84
|
# Check to see if the all the properties in the model are valid
|
82
85
|
# @return true if the model is valid
|
83
86
|
def valid?
|
87
|
+
return false if @data_source_type.nil?
|
84
88
|
return false if @credentials.nil?
|
85
89
|
true
|
86
90
|
end
|
@@ -0,0 +1,35 @@
|
|
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 GoogleDriveWhiteLabelInputDataSourceType
|
14
|
+
GOOGLE_DRIVE = "GOOGLE_DRIVE".freeze
|
15
|
+
|
16
|
+
def self.all_vars
|
17
|
+
@all_vars ||= [GOOGLE_DRIVE].freeze
|
18
|
+
end
|
19
|
+
|
20
|
+
# Builds the enum from string
|
21
|
+
# @param [String] The enum value in the form of the string
|
22
|
+
# @return [String] The enum value
|
23
|
+
def self.build_from_hash(value)
|
24
|
+
new.build_from_hash(value)
|
25
|
+
end
|
26
|
+
|
27
|
+
# Builds the enum from string
|
28
|
+
# @param [String] The enum value in the form of the string
|
29
|
+
# @return [String] The enum value
|
30
|
+
def build_from_hash(value)
|
31
|
+
return value if GoogleDriveWhiteLabelInputDataSourceType.all_vars.include?(value)
|
32
|
+
raise "Invalid ENUM value #{value} for class #GoogleDriveWhiteLabelInputDataSourceType"
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -34,7 +34,7 @@ module Carbon
|
|
34
34
|
# Attribute type mapping.
|
35
35
|
def self.openapi_types
|
36
36
|
{
|
37
|
-
:'source' => :'
|
37
|
+
:'source' => :'GuruAuthenticationSource',
|
38
38
|
:'access_token' => :'String',
|
39
39
|
:'username' => :'String'
|
40
40
|
}
|
@@ -43,7 +43,6 @@ module Carbon
|
|
43
43
|
# List of attributes with nullable: true
|
44
44
|
def self.openapi_nullable
|
45
45
|
Set.new([
|
46
|
-
:'source',
|
47
46
|
])
|
48
47
|
end
|
49
48
|
|
@@ -79,6 +78,10 @@ module Carbon
|
|
79
78
|
# @return Array for valid properties with the reasons
|
80
79
|
def list_invalid_properties
|
81
80
|
invalid_properties = Array.new
|
81
|
+
if @source.nil?
|
82
|
+
invalid_properties.push('invalid value for "source", source cannot be nil.')
|
83
|
+
end
|
84
|
+
|
82
85
|
if @access_token.nil?
|
83
86
|
invalid_properties.push('invalid value for "access_token", access_token cannot be nil.')
|
84
87
|
end
|
@@ -93,6 +96,7 @@ module Carbon
|
|
93
96
|
# Check to see if the all the properties in the model are valid
|
94
97
|
# @return true if the model is valid
|
95
98
|
def valid?
|
99
|
+
return false if @source.nil?
|
96
100
|
return false if @access_token.nil?
|
97
101
|
return false if @username.nil?
|
98
102
|
true
|
@@ -0,0 +1,35 @@
|
|
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 GuruAuthenticationSource
|
14
|
+
GURU = "GURU".freeze
|
15
|
+
|
16
|
+
def self.all_vars
|
17
|
+
@all_vars ||= [GURU].freeze
|
18
|
+
end
|
19
|
+
|
20
|
+
# Builds the enum from string
|
21
|
+
# @param [String] The enum value in the form of the string
|
22
|
+
# @return [String] The enum value
|
23
|
+
def self.build_from_hash(value)
|
24
|
+
new.build_from_hash(value)
|
25
|
+
end
|
26
|
+
|
27
|
+
# Builds the enum from string
|
28
|
+
# @param [String] The enum value in the form of the string
|
29
|
+
# @return [String] The enum value
|
30
|
+
def build_from_hash(value)
|
31
|
+
return value if GuruAuthenticationSource.all_vars.include?(value)
|
32
|
+
raise "Invalid ENUM value #{value} for class #GuruAuthenticationSource"
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -37,6 +37,7 @@ module Carbon
|
|
37
37
|
# List of class defined in anyOf (OpenAPI v3)
|
38
38
|
def self.openapi_any_of
|
39
39
|
[
|
40
|
+
:'AzureBlobStorageTypes',
|
40
41
|
:'ConfluenceFileTypes',
|
41
42
|
:'GitbookFileTypes',
|
42
43
|
:'GithubFileTypes',
|
@@ -46,7 +47,6 @@ module Carbon
|
|
46
47
|
:'IntercomFileTypes',
|
47
48
|
:'ServiceNowFileTypes',
|
48
49
|
:'SharedSourceItemTypes',
|
49
|
-
:'String',
|
50
50
|
:'ZendeskFileTypes'
|
51
51
|
]
|
52
52
|
end
|
@@ -93,14 +93,10 @@ module Carbon
|
|
93
93
|
|
94
94
|
if attributes.key?(:'order_by')
|
95
95
|
self.order_by = attributes[:'order_by']
|
96
|
-
else
|
97
|
-
self.order_by = 'name'
|
98
96
|
end
|
99
97
|
|
100
98
|
if attributes.key?(:'order_dir')
|
101
99
|
self.order_dir = attributes[:'order_dir']
|
102
|
-
else
|
103
|
-
self.order_dir = 'asc'
|
104
100
|
end
|
105
101
|
end
|
106
102
|
|
@@ -150,14 +150,6 @@ module Carbon
|
|
150
150
|
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
151
151
|
end
|
152
152
|
|
153
|
-
if @custom_limits.nil?
|
154
|
-
invalid_properties.push('invalid value for "custom_limits", custom_limits cannot be nil.')
|
155
|
-
end
|
156
|
-
|
157
|
-
if @auto_sync_enabled_sources.nil?
|
158
|
-
invalid_properties.push('invalid value for "auto_sync_enabled_sources", auto_sync_enabled_sources cannot be nil.')
|
159
|
-
end
|
160
|
-
|
161
153
|
invalid_properties
|
162
154
|
end
|
163
155
|
|
@@ -169,8 +161,6 @@ module Carbon
|
|
169
161
|
return false if @organization_supplied_user_id.nil?
|
170
162
|
return false if @created_at.nil?
|
171
163
|
return false if @updated_at.nil?
|
172
|
-
return false if @custom_limits.nil?
|
173
|
-
return false if @auto_sync_enabled_sources.nil?
|
174
164
|
true
|
175
165
|
end
|
176
166
|
|
@@ -79,14 +79,10 @@ module Carbon
|
|
79
79
|
|
80
80
|
if attributes.key?(:'order_by')
|
81
81
|
self.order_by = attributes[:'order_by']
|
82
|
-
else
|
83
|
-
self.order_by = 'created_at'
|
84
82
|
end
|
85
83
|
|
86
84
|
if attributes.key?(:'order_dir')
|
87
85
|
self.order_dir = attributes[:'order_dir']
|
88
|
-
else
|
89
|
-
self.order_dir = 'desc'
|
90
86
|
end
|
91
87
|
|
92
88
|
if attributes.key?(:'include_count')
|
@@ -71,14 +71,10 @@ module Carbon
|
|
71
71
|
|
72
72
|
if attributes.key?(:'order_by')
|
73
73
|
self.order_by = attributes[:'order_by']
|
74
|
-
else
|
75
|
-
self.order_by = 'created_at'
|
76
74
|
end
|
77
75
|
|
78
76
|
if attributes.key?(:'order_dir')
|
79
77
|
self.order_dir = attributes[:'order_dir']
|
80
|
-
else
|
81
|
-
self.order_dir = 'asc'
|
82
78
|
end
|
83
79
|
|
84
80
|
if attributes.key?(:'filters')
|