carbon_ruby_sdk 0.2.46 → 0.2.47
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 +39 -2
- data/lib/carbon_ruby_sdk/api/integrations_api.rb +109 -0
- data/lib/carbon_ruby_sdk/models/confluence_file_types.rb +36 -0
- data/lib/carbon_ruby_sdk/models/gitbook_file_types.rb +38 -0
- data/lib/carbon_ruby_sdk/models/github_file_types.rb +37 -0
- data/lib/carbon_ruby_sdk/models/gong_file_types.rb +37 -0
- data/lib/carbon_ruby_sdk/models/guru_file_types.rb +37 -0
- data/lib/carbon_ruby_sdk/models/intercom_file_types.rb +43 -0
- data/lib/carbon_ruby_sdk/models/item_types_property_inner.rb +235 -0
- data/lib/carbon_ruby_sdk/models/list_items_filters.rb +59 -5
- data/lib/carbon_ruby_sdk/models/list_items_filters_nullable.rb +59 -5
- data/lib/carbon_ruby_sdk/models/shared_source_item_types.rb +36 -0
- data/lib/carbon_ruby_sdk/models/storage_file_formats.rb +68 -0
- data/lib/carbon_ruby_sdk/models/zendesk_file_types.rb +39 -0
- data/lib/carbon_ruby_sdk/version.rb +1 -1
- data/lib/carbon_ruby_sdk.rb +10 -0
- data/spec/api/integrations_api_spec.rb +13 -0
- data/spec/models/confluence_file_types_spec.rb +22 -0
- data/spec/models/gitbook_file_types_spec.rb +22 -0
- data/spec/models/github_file_types_spec.rb +22 -0
- data/spec/models/gong_file_types_spec.rb +22 -0
- data/spec/models/guru_file_types_spec.rb +22 -0
- data/spec/models/intercom_file_types_spec.rb +22 -0
- data/spec/models/item_types_property_inner_spec.rb +22 -0
- data/spec/models/list_items_filters_nullable_spec.rb +12 -0
- data/spec/models/list_items_filters_spec.rb +12 -0
- data/spec/models/shared_source_item_types_spec.rb +22 -0
- data/spec/models/storage_file_formats_spec.rb +22 -0
- data/spec/models/zendesk_file_types_spec.rb +22 -0
- 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
|
@@ -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
|
data/lib/carbon_ruby_sdk.rb
CHANGED
@@ -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: \"Sites.Read.All\". 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
|
@@ -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::IntercomFileTypes
|
14
|
+
describe Carbon::IntercomFileTypes do
|
15
|
+
let(:instance) { Carbon::IntercomFileTypes.new }
|
16
|
+
|
17
|
+
describe 'test an instance of IntercomFileTypes' do
|
18
|
+
it 'should create an instance of IntercomFileTypes' do
|
19
|
+
expect(instance).to be_instance_of(Carbon::IntercomFileTypes)
|
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::ItemTypesPropertyInner
|
14
|
+
describe Carbon::ItemTypesPropertyInner do
|
15
|
+
let(:instance) { Carbon::ItemTypesPropertyInner.new }
|
16
|
+
|
17
|
+
describe 'test an instance of ItemTypesPropertyInner' do
|
18
|
+
it 'should create an instance of ItemTypesPropertyInner' do
|
19
|
+
expect(instance).to be_instance_of(Carbon::ItemTypesPropertyInner)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -43,4 +43,16 @@ describe Carbon::ListItemsFiltersNullable do
|
|
43
43
|
end
|
44
44
|
end
|
45
45
|
|
46
|
+
describe 'test attribute "file_formats"' 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 "item_types"' 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
|