carbon_ruby_sdk 0.1.21 → 0.1.22
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.
- checksums.yaml +4 -4
- data/Gemfile.lock +6 -6
- data/README.md +3 -3
- data/lib/carbon_ruby_sdk/api/integrations_api.rb +2 -2
- data/lib/carbon_ruby_sdk/models/o_auth_url_request.rb +1 -1
- data/lib/carbon_ruby_sdk/models/organization_user_files_to_sync_filters.rb +16 -5
- data/lib/carbon_ruby_sdk/version.rb +1 -1
- data/spec/models/organization_user_files_to_sync_filters_spec.rb +6 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '080102ce7c1ece17f804c75431e1716daabd5a70f83657e16f4a627fd7de26fb'
|
|
4
|
+
data.tar.gz: e5a823db1b5b09da8d975226c12a02c831ddf9e111640deda5cad99cf9183453
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1a8702a024da0d5c63eba40f1964c784ce236f4b700edd501661676bfa1f5dd4ce068a3ae29ea3e38132267a27315a01659cb0888b323fec700612b34f7f02c6
|
|
7
|
+
data.tar.gz: b9fd8e806ea2fb79802ed6a494c94f82051ec7fc78a9d9fa7798c0abcdcd69e79f169e5d39fe47dd68b305801e14a2741e18293dfb20bac133ae8865bc5dce23
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
carbon_ruby_sdk (0.1.
|
|
4
|
+
carbon_ruby_sdk (0.1.22)
|
|
5
5
|
faraday (>= 1.0.1, < 3.0)
|
|
6
6
|
faraday-multipart (~> 1.0, >= 1.0.4)
|
|
7
7
|
|
|
@@ -42,7 +42,7 @@ GEM
|
|
|
42
42
|
rainbow (3.1.1)
|
|
43
43
|
rake (13.0.6)
|
|
44
44
|
regexp_parser (2.9.0)
|
|
45
|
-
reline (0.
|
|
45
|
+
reline (0.5.0)
|
|
46
46
|
io-console (~> 0.5)
|
|
47
47
|
rexml (3.2.6)
|
|
48
48
|
rspec (3.13.0)
|
|
@@ -67,14 +67,14 @@ GEM
|
|
|
67
67
|
rubocop-ast (>= 1.2.0, < 2.0)
|
|
68
68
|
ruby-progressbar (~> 1.7)
|
|
69
69
|
unicode-display_width (>= 1.4.0, < 3.0)
|
|
70
|
-
rubocop-ast (1.
|
|
71
|
-
parser (>= 3.
|
|
70
|
+
rubocop-ast (1.31.2)
|
|
71
|
+
parser (>= 3.3.0.4)
|
|
72
72
|
ruby-progressbar (1.13.0)
|
|
73
73
|
unicode-display_width (2.5.0)
|
|
74
74
|
uri (0.13.0)
|
|
75
75
|
|
|
76
76
|
PLATFORMS
|
|
77
|
-
arm64-darwin-
|
|
77
|
+
arm64-darwin-22
|
|
78
78
|
|
|
79
79
|
DEPENDENCIES
|
|
80
80
|
carbon_ruby_sdk!
|
|
@@ -86,4 +86,4 @@ DEPENDENCIES
|
|
|
86
86
|
rubocop (~> 1.12.1)
|
|
87
87
|
|
|
88
88
|
BUNDLED WITH
|
|
89
|
-
2.
|
|
89
|
+
2.4.19
|
data/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
Connect external data to LLMs, no matter the source.
|
|
8
8
|
|
|
9
|
-
[](https://rubygems.org/gems/carbon_ruby_sdk/versions/0.1.22)
|
|
10
10
|
|
|
11
11
|
</div>
|
|
12
12
|
|
|
@@ -81,7 +81,7 @@ Connect external data to LLMs, no matter the source.
|
|
|
81
81
|
Add to Gemfile:
|
|
82
82
|
|
|
83
83
|
```ruby
|
|
84
|
-
gem 'carbon_ruby_sdk', '~> 0.1.
|
|
84
|
+
gem 'carbon_ruby_sdk', '~> 0.1.22'
|
|
85
85
|
```
|
|
86
86
|
|
|
87
87
|
## Getting Started<a id="getting-started"></a>
|
|
@@ -1440,7 +1440,7 @@ Enable OCR for files that support it. Supported formats: pdf
|
|
|
1440
1440
|
##### parse_pdf_tables_with_ocr: `Boolean`<a id="parse_pdf_tables_with_ocr-boolean"></a>
|
|
1441
1441
|
##### enable_file_picker: `Boolean`<a id="enable_file_picker-boolean"></a>
|
|
1442
1442
|
Enable integration's file picker for sources that support it. Supported sources:
|
|
1443
|
-
|
|
1443
|
+
ONEDRIVE, DROPBOX, BOX, GOOGLE_DRIVE, SHAREPOINT
|
|
1444
1444
|
|
|
1445
1445
|
#### 🔄 Return<a id="🔄-return"></a>
|
|
1446
1446
|
|
|
@@ -545,7 +545,7 @@ module Carbon
|
|
|
545
545
|
# @param request_id [String] This request id will be added to all files that get synced using the generated OAuth URL
|
|
546
546
|
# @param use_ocr [Boolean] Enable OCR for files that support it. Supported formats: pdf
|
|
547
547
|
# @param parse_pdf_tables_with_ocr [Boolean]
|
|
548
|
-
# @param enable_file_picker [Boolean] Enable integration's file picker for sources that support it. Supported sources:
|
|
548
|
+
# @param enable_file_picker [Boolean] Enable integration's file picker for sources that support it. Supported sources: ONEDRIVE, DROPBOX, BOX, GOOGLE_DRIVE, SHAREPOINT
|
|
549
549
|
# @param body [OAuthURLRequest]
|
|
550
550
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
|
551
551
|
def get_oauth_url(service:, tags: SENTINEL, scope: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', zendesk_subdomain: SENTINEL, microsoft_tenant: SENTINEL, sharepoint_site_name: SENTINEL, confluence_subdomain: SENTINEL, generate_sparse_vectors: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, salesforce_domain: SENTINEL, sync_files_on_connection: true, set_page_as_boundary: false, data_source_id: SENTINEL, connecting_new_account: false, request_id: SENTINEL, use_ocr: false, parse_pdf_tables_with_ocr: false, enable_file_picker: true, extra: {})
|
|
@@ -607,7 +607,7 @@ module Carbon
|
|
|
607
607
|
# @param request_id [String] This request id will be added to all files that get synced using the generated OAuth URL
|
|
608
608
|
# @param use_ocr [Boolean] Enable OCR for files that support it. Supported formats: pdf
|
|
609
609
|
# @param parse_pdf_tables_with_ocr [Boolean]
|
|
610
|
-
# @param enable_file_picker [Boolean] Enable integration's file picker for sources that support it. Supported sources:
|
|
610
|
+
# @param enable_file_picker [Boolean] Enable integration's file picker for sources that support it. Supported sources: ONEDRIVE, DROPBOX, BOX, GOOGLE_DRIVE, SHAREPOINT
|
|
611
611
|
# @param body [OAuthURLRequest]
|
|
612
612
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
|
613
613
|
def get_oauth_url_with_http_info(service:, tags: SENTINEL, scope: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', zendesk_subdomain: SENTINEL, microsoft_tenant: SENTINEL, sharepoint_site_name: SENTINEL, confluence_subdomain: SENTINEL, generate_sparse_vectors: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, salesforce_domain: SENTINEL, sync_files_on_connection: true, set_page_as_boundary: false, data_source_id: SENTINEL, connecting_new_account: false, request_id: SENTINEL, use_ocr: false, parse_pdf_tables_with_ocr: false, enable_file_picker: true, extra: {})
|
|
@@ -61,7 +61,7 @@ module Carbon
|
|
|
61
61
|
|
|
62
62
|
attr_accessor :parse_pdf_tables_with_ocr
|
|
63
63
|
|
|
64
|
-
# Enable integration's file picker for sources that support it. Supported sources:
|
|
64
|
+
# Enable integration's file picker for sources that support it. Supported sources: ONEDRIVE, DROPBOX, BOX, GOOGLE_DRIVE, SHAREPOINT
|
|
65
65
|
attr_accessor :enable_file_picker
|
|
66
66
|
|
|
67
67
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -50,6 +50,9 @@ module Carbon
|
|
|
50
50
|
# Filter by request ID(s) which were used to sync the files
|
|
51
51
|
attr_accessor :request_ids
|
|
52
52
|
|
|
53
|
+
# The error message of the file. The query will return files with error messages that contain this string. To search for files with no error message, use an empty string.
|
|
54
|
+
attr_accessor :sync_error_message
|
|
55
|
+
|
|
53
56
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
54
57
|
def self.attribute_map
|
|
55
58
|
{
|
|
@@ -66,7 +69,8 @@ module Carbon
|
|
|
66
69
|
:'root_files_only' => :'root_files_only',
|
|
67
70
|
:'include_all_children' => :'include_all_children',
|
|
68
71
|
:'non_synced_only' => :'non_synced_only',
|
|
69
|
-
:'request_ids' => :'request_ids'
|
|
72
|
+
:'request_ids' => :'request_ids',
|
|
73
|
+
:'sync_error_message' => :'sync_error_message'
|
|
70
74
|
}
|
|
71
75
|
end
|
|
72
76
|
|
|
@@ -91,7 +95,8 @@ module Carbon
|
|
|
91
95
|
:'root_files_only' => :'Boolean',
|
|
92
96
|
:'include_all_children' => :'Boolean',
|
|
93
97
|
:'non_synced_only' => :'Boolean',
|
|
94
|
-
:'request_ids' => :'Array<String>'
|
|
98
|
+
:'request_ids' => :'Array<String>',
|
|
99
|
+
:'sync_error_message' => :'String'
|
|
95
100
|
}
|
|
96
101
|
end
|
|
97
102
|
|
|
@@ -109,7 +114,8 @@ module Carbon
|
|
|
109
114
|
:'organization_user_data_source_id',
|
|
110
115
|
:'embedding_generators',
|
|
111
116
|
:'root_files_only',
|
|
112
|
-
:'request_ids'
|
|
117
|
+
:'request_ids',
|
|
118
|
+
:'sync_error_message'
|
|
113
119
|
])
|
|
114
120
|
end
|
|
115
121
|
|
|
@@ -203,6 +209,10 @@ module Carbon
|
|
|
203
209
|
self.request_ids = value
|
|
204
210
|
end
|
|
205
211
|
end
|
|
212
|
+
|
|
213
|
+
if attributes.key?(:'sync_error_message')
|
|
214
|
+
self.sync_error_message = attributes[:'sync_error_message']
|
|
215
|
+
end
|
|
206
216
|
end
|
|
207
217
|
|
|
208
218
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -251,7 +261,8 @@ module Carbon
|
|
|
251
261
|
root_files_only == o.root_files_only &&
|
|
252
262
|
include_all_children == o.include_all_children &&
|
|
253
263
|
non_synced_only == o.non_synced_only &&
|
|
254
|
-
request_ids == o.request_ids
|
|
264
|
+
request_ids == o.request_ids &&
|
|
265
|
+
sync_error_message == o.sync_error_message
|
|
255
266
|
end
|
|
256
267
|
|
|
257
268
|
# @see the `==` method
|
|
@@ -263,7 +274,7 @@ module Carbon
|
|
|
263
274
|
# Calculates hash code according to all attributes.
|
|
264
275
|
# @return [Integer] Hash code
|
|
265
276
|
def hash
|
|
266
|
-
[tags, source, name, tags_v2, ids, external_file_ids, sync_statuses, parent_file_ids, organization_user_data_source_id, embedding_generators, root_files_only, include_all_children, non_synced_only, request_ids].hash
|
|
277
|
+
[tags, source, name, tags_v2, ids, external_file_ids, sync_statuses, parent_file_ids, organization_user_data_source_id, embedding_generators, root_files_only, include_all_children, non_synced_only, request_ids, sync_error_message].hash
|
|
267
278
|
end
|
|
268
279
|
|
|
269
280
|
# Builds the object from hash
|
|
@@ -103,4 +103,10 @@ describe Carbon::OrganizationUserFilesToSyncFilters do
|
|
|
103
103
|
end
|
|
104
104
|
end
|
|
105
105
|
|
|
106
|
+
describe 'test attribute "sync_error_message"' 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
|
+
|
|
106
112
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: carbon_ruby_sdk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.22
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Konfig
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-04-
|
|
11
|
+
date: 2024-04-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -376,7 +376,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
376
376
|
- !ruby/object:Gem::Version
|
|
377
377
|
version: '0'
|
|
378
378
|
requirements: []
|
|
379
|
-
rubygems_version: 3.
|
|
379
|
+
rubygems_version: 3.4.10
|
|
380
380
|
signing_key:
|
|
381
381
|
specification_version: 4
|
|
382
382
|
summary: Carbon Ruby Gem
|