trieve_ruby_client 0.6.9 → 0.7.2
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/README.md +7 -7
- data/docs/ChunkData.md +0 -2
- data/docs/ClientDatasetConfiguration.md +2 -0
- data/docs/CreateTopicData.md +3 -1
- data/docs/FileApi.md +4 -6
- data/docs/GetEventsData.md +1 -1
- data/docs/Topic.md +3 -3
- data/docs/TopicApi.md +17 -17
- data/docs/UpdateUserOrgRoleData.md +22 -0
- data/docs/UserApi.md +9 -10
- data/lib/trieve_ruby_client/api/auth_api.rb +1 -1
- data/lib/trieve_ruby_client/api/chunk_api.rb +1 -1
- data/lib/trieve_ruby_client/api/chunk_group_api.rb +1 -1
- data/lib/trieve_ruby_client/api/dataset_api.rb +1 -1
- data/lib/trieve_ruby_client/api/events_api.rb +1 -1
- data/lib/trieve_ruby_client/api/file_api.rb +4 -11
- data/lib/trieve_ruby_client/api/health_api.rb +1 -1
- data/lib/trieve_ruby_client/api/invitation_api.rb +1 -1
- data/lib/trieve_ruby_client/api/message_api.rb +1 -1
- data/lib/trieve_ruby_client/api/organization_api.rb +1 -1
- data/lib/trieve_ruby_client/api/stripe_api.rb +1 -1
- data/lib/trieve_ruby_client/api/topic_api.rb +20 -20
- data/lib/trieve_ruby_client/api/user_api.rb +14 -14
- data/lib/trieve_ruby_client/api_client.rb +1 -1
- data/lib/trieve_ruby_client/api_error.rb +1 -1
- data/lib/trieve_ruby_client/configuration.rb +1 -1
- data/lib/trieve_ruby_client/models/add_chunk_to_group_data.rb +1 -1
- data/lib/trieve_ruby_client/models/api_key_dto.rb +1 -1
- data/lib/trieve_ruby_client/models/auth_query.rb +1 -1
- data/lib/trieve_ruby_client/models/batch_queued_chunk_response.rb +1 -1
- data/lib/trieve_ruby_client/models/bookmark_data.rb +1 -1
- data/lib/trieve_ruby_client/models/bookmark_group_result.rb +1 -1
- data/lib/trieve_ruby_client/models/chat_message_proxy.rb +1 -1
- data/lib/trieve_ruby_client/models/chunk_data.rb +2 -13
- data/lib/trieve_ruby_client/models/chunk_filter.rb +1 -1
- data/lib/trieve_ruby_client/models/chunk_group.rb +1 -1
- data/lib/trieve_ruby_client/models/chunk_group_and_file.rb +1 -1
- data/lib/trieve_ruby_client/models/chunk_metadata.rb +1 -1
- data/lib/trieve_ruby_client/models/chunk_metadata_with_score.rb +1 -1
- data/lib/trieve_ruby_client/models/client_dataset_configuration.rb +18 -2
- data/lib/trieve_ruby_client/models/create_chunk_data.rb +1 -1
- data/lib/trieve_ruby_client/models/create_chunk_group_data.rb +1 -1
- data/lib/trieve_ruby_client/models/create_dataset_request.rb +1 -1
- data/lib/trieve_ruby_client/models/create_message_data.rb +1 -1
- data/lib/trieve_ruby_client/models/create_organization_data.rb +1 -1
- data/lib/trieve_ruby_client/models/create_topic_data.rb +23 -6
- data/lib/trieve_ruby_client/models/dataset.rb +1 -1
- data/lib/trieve_ruby_client/models/dataset_and_usage.rb +1 -1
- data/lib/trieve_ruby_client/models/dataset_dto.rb +1 -1
- data/lib/trieve_ruby_client/models/dataset_usage_count.rb +1 -1
- data/lib/trieve_ruby_client/models/delete_topic_data.rb +1 -1
- data/lib/trieve_ruby_client/models/delete_user_api_key_request.rb +1 -1
- data/lib/trieve_ruby_client/models/edit_message_data.rb +1 -1
- data/lib/trieve_ruby_client/models/error_response_body.rb +1 -1
- data/lib/trieve_ruby_client/models/event.rb +1 -1
- data/lib/trieve_ruby_client/models/event_return.rb +1 -1
- data/lib/trieve_ruby_client/models/field_condition.rb +1 -1
- data/lib/trieve_ruby_client/models/file.rb +1 -1
- data/lib/trieve_ruby_client/models/file_dto.rb +1 -1
- data/lib/trieve_ruby_client/models/generate_chunks_request.rb +1 -1
- data/lib/trieve_ruby_client/models/get_events_data.rb +2 -2
- data/lib/trieve_ruby_client/models/get_groups_for_chunks_data.rb +1 -1
- data/lib/trieve_ruby_client/models/group_data.rb +1 -1
- data/lib/trieve_ruby_client/models/group_score_chunk.rb +1 -1
- data/lib/trieve_ruby_client/models/group_score_slim_chunks.rb +1 -1
- data/lib/trieve_ruby_client/models/invitation_data.rb +1 -1
- data/lib/trieve_ruby_client/models/match_condition.rb +1 -1
- data/lib/trieve_ruby_client/models/message.rb +1 -1
- data/lib/trieve_ruby_client/models/organization.rb +1 -1
- data/lib/trieve_ruby_client/models/organization_usage_count.rb +1 -1
- data/lib/trieve_ruby_client/models/range.rb +1 -1
- data/lib/trieve_ruby_client/models/range_condition.rb +1 -1
- data/lib/trieve_ruby_client/models/recommend_chunks_request.rb +1 -1
- data/lib/trieve_ruby_client/models/recommend_group_chunks_request.rb +1 -1
- data/lib/trieve_ruby_client/models/regenerate_message_data.rb +1 -1
- data/lib/trieve_ruby_client/models/return_queued_chunk.rb +1 -1
- data/lib/trieve_ruby_client/models/score_chunk_dto.rb +1 -1
- data/lib/trieve_ruby_client/models/score_slim_chunks.rb +1 -1
- data/lib/trieve_ruby_client/models/search_chunk_data.rb +1 -1
- data/lib/trieve_ruby_client/models/search_chunk_query_response_body.rb +1 -1
- data/lib/trieve_ruby_client/models/search_over_groups_data.rb +1 -1
- data/lib/trieve_ruby_client/models/search_over_groups_results.rb +1 -1
- data/lib/trieve_ruby_client/models/search_over_groups_slim_results.rb +1 -1
- data/lib/trieve_ruby_client/models/search_slim_chunk_query_response_body.rb +1 -1
- data/lib/trieve_ruby_client/models/search_within_group_data.rb +1 -1
- data/lib/trieve_ruby_client/models/search_within_group_results.rb +1 -1
- data/lib/trieve_ruby_client/models/search_within_group_slim_results.rb +1 -1
- data/lib/trieve_ruby_client/models/set_user_api_key_request.rb +1 -1
- data/lib/trieve_ruby_client/models/set_user_api_key_response.rb +1 -1
- data/lib/trieve_ruby_client/models/single_queued_chunk_response.rb +1 -1
- data/lib/trieve_ruby_client/models/slim_chunk_metadata.rb +1 -1
- data/lib/trieve_ruby_client/models/slim_chunk_metadata_with_score.rb +1 -1
- data/lib/trieve_ruby_client/models/slim_group.rb +1 -1
- data/lib/trieve_ruby_client/models/slim_user.rb +1 -1
- data/lib/trieve_ruby_client/models/stripe_plan.rb +1 -1
- data/lib/trieve_ruby_client/models/suggested_queries_request.rb +1 -1
- data/lib/trieve_ruby_client/models/suggested_queries_response.rb +1 -1
- data/lib/trieve_ruby_client/models/topic.rb +21 -21
- data/lib/trieve_ruby_client/models/update_chunk_by_tracking_id_data.rb +1 -1
- data/lib/trieve_ruby_client/models/update_chunk_data.rb +1 -1
- data/lib/trieve_ruby_client/models/update_chunk_group_data.rb +1 -1
- data/lib/trieve_ruby_client/models/update_dataset_request.rb +1 -1
- data/lib/trieve_ruby_client/models/update_group_by_tracking_id_data.rb +1 -1
- data/lib/trieve_ruby_client/models/update_organization_data.rb +1 -1
- data/lib/trieve_ruby_client/models/update_topic_data.rb +1 -1
- data/lib/trieve_ruby_client/models/update_user_org_role_data.rb +250 -0
- data/lib/trieve_ruby_client/models/upload_file_data.rb +1 -1
- data/lib/trieve_ruby_client/models/upload_file_result.rb +1 -1
- data/lib/trieve_ruby_client/models/user_organization.rb +1 -1
- data/lib/trieve_ruby_client/version.rb +2 -2
- data/lib/trieve_ruby_client.rb +2 -2
- data/openapi-generator.yaml +1 -1
- data/openapi.json +39 -56
- data/spec/models/update_user_org_role_data_spec.rb +48 -0
- data/spec/spec_helper.rb +1 -1
- data/trieve_ruby_client-0.6.9.gem +0 -0
- data/trieve_ruby_client.gemspec +1 -1
- metadata +7 -2
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.7.2
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -152,26 +152,26 @@ module TrieveRubyClient
|
|
152
152
|
|
153
153
|
# Update User
|
154
154
|
# Update User Update a user's information. If the user_id is not provided, the auth'ed user will be updated. If the user_id is provided, the auth'ed user must be an admin (1) or owner (2) of the organization.
|
155
|
-
# @param
|
155
|
+
# @param update_user_org_role_data [UpdateUserOrgRoleData] JSON request payload to update user information for the auth'ed user
|
156
156
|
# @param [Hash] opts the optional parameters
|
157
|
-
# @return [
|
158
|
-
def update_user(
|
159
|
-
|
160
|
-
|
157
|
+
# @return [nil]
|
158
|
+
def update_user(update_user_org_role_data, opts = {})
|
159
|
+
update_user_with_http_info(update_user_org_role_data, opts)
|
160
|
+
nil
|
161
161
|
end
|
162
162
|
|
163
163
|
# Update User
|
164
164
|
# Update User Update a user's information. If the user_id is not provided, the auth'ed user will be updated. If the user_id is provided, the auth'ed user must be an admin (1) or owner (2) of the organization.
|
165
|
-
# @param
|
165
|
+
# @param update_user_org_role_data [UpdateUserOrgRoleData] JSON request payload to update user information for the auth'ed user
|
166
166
|
# @param [Hash] opts the optional parameters
|
167
|
-
# @return [Array<(
|
168
|
-
def update_user_with_http_info(
|
167
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
168
|
+
def update_user_with_http_info(update_user_org_role_data, opts = {})
|
169
169
|
if @api_client.config.debugging
|
170
170
|
@api_client.config.logger.debug 'Calling API: UserApi.update_user ...'
|
171
171
|
end
|
172
|
-
# verify the required parameter '
|
173
|
-
if @api_client.config.client_side_validation &&
|
174
|
-
fail ArgumentError, "Missing the required parameter '
|
172
|
+
# verify the required parameter 'update_user_org_role_data' is set
|
173
|
+
if @api_client.config.client_side_validation && update_user_org_role_data.nil?
|
174
|
+
fail ArgumentError, "Missing the required parameter 'update_user_org_role_data' when calling UserApi.update_user"
|
175
175
|
end
|
176
176
|
# resource path
|
177
177
|
local_var_path = '/api/user'
|
@@ -193,10 +193,10 @@ module TrieveRubyClient
|
|
193
193
|
form_params = opts[:form_params] || {}
|
194
194
|
|
195
195
|
# http body (model)
|
196
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
196
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_user_org_role_data)
|
197
197
|
|
198
198
|
# return_type
|
199
|
-
return_type = opts[:debug_return_type]
|
199
|
+
return_type = opts[:debug_return_type]
|
200
200
|
|
201
201
|
# auth_names
|
202
202
|
auth_names = opts[:debug_auth_names] || ['ApiKey']
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.7.2
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.7.2
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.7.2
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.7.2
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.7.2
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.7.2
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.7.2
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.7.2
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.7.2
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.7.2
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.7.2
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -24,9 +24,6 @@ module TrieveRubyClient
|
|
24
24
|
# Convert HTML to raw text before processing to avoid adding noise to the vector embeddings. By default this is true. If you are using HTML content that you want to be included in the vector embeddings, set this to false.
|
25
25
|
attr_accessor :convert_html_to_text
|
26
26
|
|
27
|
-
# File_uuid is the uuid of the file that the chunk is associated with. This is used to associate chunks with files. This is useful for when you want to delete a file and all of its associated chunks.
|
28
|
-
attr_accessor :file_id
|
29
|
-
|
30
27
|
# Group ids are the ids of the groups that the chunk should be placed into. This is useful for when you want to create a chunk and add it to a group or multiple groups in one request. Necessary because this route queues the chunk for ingestion and the chunk may not exist yet immediately after response.
|
31
28
|
attr_accessor :group_ids
|
32
29
|
|
@@ -63,7 +60,6 @@ module TrieveRubyClient
|
|
63
60
|
:'chunk_html' => :'chunk_html',
|
64
61
|
:'chunk_vector' => :'chunk_vector',
|
65
62
|
:'convert_html_to_text' => :'convert_html_to_text',
|
66
|
-
:'file_id' => :'file_id',
|
67
63
|
:'group_ids' => :'group_ids',
|
68
64
|
:'group_tracking_ids' => :'group_tracking_ids',
|
69
65
|
:'link' => :'link',
|
@@ -88,7 +84,6 @@ module TrieveRubyClient
|
|
88
84
|
:'chunk_html' => :'String',
|
89
85
|
:'chunk_vector' => :'Array<Float>',
|
90
86
|
:'convert_html_to_text' => :'Boolean',
|
91
|
-
:'file_id' => :'String',
|
92
87
|
:'group_ids' => :'Array<String>',
|
93
88
|
:'group_tracking_ids' => :'Array<String>',
|
94
89
|
:'link' => :'String',
|
@@ -108,7 +103,6 @@ module TrieveRubyClient
|
|
108
103
|
:'chunk_html',
|
109
104
|
:'chunk_vector',
|
110
105
|
:'convert_html_to_text',
|
111
|
-
:'file_id',
|
112
106
|
:'group_ids',
|
113
107
|
:'group_tracking_ids',
|
114
108
|
:'link',
|
@@ -151,10 +145,6 @@ module TrieveRubyClient
|
|
151
145
|
self.convert_html_to_text = attributes[:'convert_html_to_text']
|
152
146
|
end
|
153
147
|
|
154
|
-
if attributes.key?(:'file_id')
|
155
|
-
self.file_id = attributes[:'file_id']
|
156
|
-
end
|
157
|
-
|
158
148
|
if attributes.key?(:'group_ids')
|
159
149
|
if (value = attributes[:'group_ids']).is_a?(Array)
|
160
150
|
self.group_ids = value
|
@@ -225,7 +215,6 @@ module TrieveRubyClient
|
|
225
215
|
chunk_html == o.chunk_html &&
|
226
216
|
chunk_vector == o.chunk_vector &&
|
227
217
|
convert_html_to_text == o.convert_html_to_text &&
|
228
|
-
file_id == o.file_id &&
|
229
218
|
group_ids == o.group_ids &&
|
230
219
|
group_tracking_ids == o.group_tracking_ids &&
|
231
220
|
link == o.link &&
|
@@ -247,7 +236,7 @@ module TrieveRubyClient
|
|
247
236
|
# Calculates hash code according to all attributes.
|
248
237
|
# @return [Integer] Hash code
|
249
238
|
def hash
|
250
|
-
[chunk_html, chunk_vector, convert_html_to_text,
|
239
|
+
[chunk_html, chunk_vector, convert_html_to_text, group_ids, group_tracking_ids, link, metadata, split_avg, tag_set, time_stamp, tracking_id, upsert_by_tracking_id, weight].hash
|
251
240
|
end
|
252
241
|
|
253
242
|
# Builds the object from hash
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.7.2
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.7.2
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.7.2
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.7.2
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.7.2
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.7.2
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -27,6 +27,8 @@ module TrieveRubyClient
|
|
27
27
|
|
28
28
|
attr_accessor :frontmatter_vals
|
29
29
|
|
30
|
+
attr_accessor :image_metadata_key
|
31
|
+
|
30
32
|
attr_accessor :image_range_end_key
|
31
33
|
|
32
34
|
attr_accessor :image_range_start_key
|
@@ -46,6 +48,7 @@ module TrieveRubyClient
|
|
46
48
|
:'file_name_key' => :'FILE_NAME_KEY',
|
47
49
|
:'filter_items' => :'FILTER_ITEMS',
|
48
50
|
:'frontmatter_vals' => :'FRONTMATTER_VALS',
|
51
|
+
:'image_metadata_key' => :'IMAGE_METADATA_KEY',
|
49
52
|
:'image_range_end_key' => :'IMAGE_RANGE_END_KEY',
|
50
53
|
:'image_range_start_key' => :'IMAGE_RANGE_START_KEY',
|
51
54
|
:'lines_before_show_more' => :'LINES_BEFORE_SHOW_MORE',
|
@@ -68,6 +71,7 @@ module TrieveRubyClient
|
|
68
71
|
:'file_name_key' => :'String',
|
69
72
|
:'filter_items' => :'Object',
|
70
73
|
:'frontmatter_vals' => :'String',
|
74
|
+
:'image_metadata_key' => :'String',
|
71
75
|
:'image_range_end_key' => :'String',
|
72
76
|
:'image_range_start_key' => :'String',
|
73
77
|
:'lines_before_show_more' => :'Integer',
|
@@ -133,6 +137,12 @@ module TrieveRubyClient
|
|
133
137
|
self.frontmatter_vals = attributes[:'frontmatter_vals']
|
134
138
|
end
|
135
139
|
|
140
|
+
if attributes.key?(:'image_metadata_key')
|
141
|
+
self.image_metadata_key = attributes[:'image_metadata_key']
|
142
|
+
else
|
143
|
+
self.image_metadata_key = nil
|
144
|
+
end
|
145
|
+
|
136
146
|
if attributes.key?(:'image_range_end_key')
|
137
147
|
self.image_range_end_key = attributes[:'image_range_end_key']
|
138
148
|
end
|
@@ -163,6 +173,10 @@ module TrieveRubyClient
|
|
163
173
|
invalid_properties.push('invalid value for "file_name_key", file_name_key cannot be nil.')
|
164
174
|
end
|
165
175
|
|
176
|
+
if @image_metadata_key.nil?
|
177
|
+
invalid_properties.push('invalid value for "image_metadata_key", image_metadata_key cannot be nil.')
|
178
|
+
end
|
179
|
+
|
166
180
|
if !@lines_before_show_more.nil? && @lines_before_show_more < 0
|
167
181
|
invalid_properties.push('invalid value for "lines_before_show_more", must be greater than or equal to 0.')
|
168
182
|
end
|
@@ -175,6 +189,7 @@ module TrieveRubyClient
|
|
175
189
|
def valid?
|
176
190
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
177
191
|
return false if @file_name_key.nil?
|
192
|
+
return false if @image_metadata_key.nil?
|
178
193
|
return false if !@lines_before_show_more.nil? && @lines_before_show_more < 0
|
179
194
|
true
|
180
195
|
end
|
@@ -200,6 +215,7 @@ module TrieveRubyClient
|
|
200
215
|
file_name_key == o.file_name_key &&
|
201
216
|
filter_items == o.filter_items &&
|
202
217
|
frontmatter_vals == o.frontmatter_vals &&
|
218
|
+
image_metadata_key == o.image_metadata_key &&
|
203
219
|
image_range_end_key == o.image_range_end_key &&
|
204
220
|
image_range_start_key == o.image_range_start_key &&
|
205
221
|
lines_before_show_more == o.lines_before_show_more &&
|
@@ -216,7 +232,7 @@ module TrieveRubyClient
|
|
216
232
|
# Calculates hash code according to all attributes.
|
217
233
|
# @return [Integer] Hash code
|
218
234
|
def hash
|
219
|
-
[create_chunk_feature, date_range_value, document_upload_feature, file_name_key, filter_items, frontmatter_vals, image_range_end_key, image_range_start_key, lines_before_show_more, search_queries, suggested_queries].hash
|
235
|
+
[create_chunk_feature, date_range_value, document_upload_feature, file_name_key, filter_items, frontmatter_vals, image_metadata_key, image_range_end_key, image_range_start_key, lines_before_show_more, search_queries, suggested_queries].hash
|
220
236
|
end
|
221
237
|
|
222
238
|
# Builds the object from hash
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.7.2
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.7.2
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.7.2
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.7.2
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.7.2
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.7.2
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -24,12 +24,16 @@ module TrieveRubyClient
|
|
24
24
|
# The name of the topic. If this is not provided, the topic name is generated from the first_user_message.
|
25
25
|
attr_accessor :name
|
26
26
|
|
27
|
+
# The owner_id of the topic. This is typically a browser fingerprint or your user's id. It is used to group topics together for a user.
|
28
|
+
attr_accessor :owner_id
|
29
|
+
|
27
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
28
31
|
def self.attribute_map
|
29
32
|
{
|
30
33
|
:'first_user_message' => :'first_user_message',
|
31
34
|
:'model' => :'model',
|
32
|
-
:'name' => :'name'
|
35
|
+
:'name' => :'name',
|
36
|
+
:'owner_id' => :'owner_id'
|
33
37
|
}
|
34
38
|
end
|
35
39
|
|
@@ -43,7 +47,8 @@ module TrieveRubyClient
|
|
43
47
|
{
|
44
48
|
:'first_user_message' => :'String',
|
45
49
|
:'model' => :'String',
|
46
|
-
:'name' => :'String'
|
50
|
+
:'name' => :'String',
|
51
|
+
:'owner_id' => :'String'
|
47
52
|
}
|
48
53
|
end
|
49
54
|
|
@@ -52,7 +57,7 @@ module TrieveRubyClient
|
|
52
57
|
Set.new([
|
53
58
|
:'first_user_message',
|
54
59
|
:'model',
|
55
|
-
:'name'
|
60
|
+
:'name',
|
56
61
|
])
|
57
62
|
end
|
58
63
|
|
@@ -82,6 +87,12 @@ module TrieveRubyClient
|
|
82
87
|
if attributes.key?(:'name')
|
83
88
|
self.name = attributes[:'name']
|
84
89
|
end
|
90
|
+
|
91
|
+
if attributes.key?(:'owner_id')
|
92
|
+
self.owner_id = attributes[:'owner_id']
|
93
|
+
else
|
94
|
+
self.owner_id = nil
|
95
|
+
end
|
85
96
|
end
|
86
97
|
|
87
98
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -89,6 +100,10 @@ module TrieveRubyClient
|
|
89
100
|
def list_invalid_properties
|
90
101
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
91
102
|
invalid_properties = Array.new
|
103
|
+
if @owner_id.nil?
|
104
|
+
invalid_properties.push('invalid value for "owner_id", owner_id cannot be nil.')
|
105
|
+
end
|
106
|
+
|
92
107
|
invalid_properties
|
93
108
|
end
|
94
109
|
|
@@ -96,6 +111,7 @@ module TrieveRubyClient
|
|
96
111
|
# @return true if the model is valid
|
97
112
|
def valid?
|
98
113
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
114
|
+
return false if @owner_id.nil?
|
99
115
|
true
|
100
116
|
end
|
101
117
|
|
@@ -106,7 +122,8 @@ module TrieveRubyClient
|
|
106
122
|
self.class == o.class &&
|
107
123
|
first_user_message == o.first_user_message &&
|
108
124
|
model == o.model &&
|
109
|
-
name == o.name
|
125
|
+
name == o.name &&
|
126
|
+
owner_id == o.owner_id
|
110
127
|
end
|
111
128
|
|
112
129
|
# @see the `==` method
|
@@ -118,7 +135,7 @@ module TrieveRubyClient
|
|
118
135
|
# Calculates hash code according to all attributes.
|
119
136
|
# @return [Integer] Hash code
|
120
137
|
def hash
|
121
|
-
[first_user_message, model, name].hash
|
138
|
+
[first_user_message, model, name, owner_id].hash
|
122
139
|
end
|
123
140
|
|
124
141
|
# Builds the object from hash
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.7.2
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.7.2
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.7.2
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.7.2
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.7.2
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.7.2
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.7.2
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.7.2
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.7.2
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.7.2
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.7.2
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.7.2
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.7.2
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|