trieve_ruby_client 0.5.0 → 0.6.0
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/GENERATE_COMMAND.txt +1 -0
- data/README.md +22 -11
- data/docs/AddChunkToGroupData.md +4 -2
- data/docs/AuthApi.md +13 -7
- data/docs/ChunkApi.md +9 -9
- data/docs/ChunkGroup.md +4 -0
- data/docs/ChunkGroupApi.md +36 -27
- data/docs/CreateChunkGroupData.md +4 -0
- data/docs/DatasetApi.md +11 -11
- data/docs/EventsApi.md +2 -2
- data/docs/FileApi.md +3 -3
- data/docs/GroupScoreChunkDTO.md +2 -0
- data/docs/GroupSlimChunksDTO.md +20 -0
- data/docs/HealthApi.md +1 -1
- data/docs/InvitationApi.md +1 -1
- data/docs/MessageApi.md +1 -1
- data/docs/OrganizationApi.md +1 -1
- data/docs/Range.md +4 -4
- data/docs/RangeCondition.md +49 -0
- data/docs/ReccomendGroupChunksRequest.md +3 -1
- data/docs/RecommendChunksRequest.md +5 -1
- data/docs/RecommendChunksResponseTypes.md +49 -0
- data/docs/RecommendGroupChunkResponseTypes.md +49 -0
- data/docs/RecommendGroupChunksRequest.md +34 -0
- data/docs/ScoreSlimChunks.md +20 -0
- data/docs/SearchChunkData.md +3 -1
- data/docs/SearchChunkResponseTypes.md +49 -0
- data/docs/SearchGroupSlimChunksResult.md +22 -0
- data/docs/SearchOverGroupsData.md +6 -4
- data/docs/SearchOverGroupsResponseTypes.md +49 -0
- data/docs/SearchOverGroupsSlimChunksResponseBody.md +20 -0
- data/docs/SearchSlimChunkQueryResponseBody.md +20 -0
- data/docs/SearchWithinGroupData.md +3 -1
- data/docs/SearchWithinGroupResponseTypes.md +49 -0
- data/docs/SlimChunkMetadata.md +36 -0
- data/docs/SlimUser.md +1 -7
- data/docs/StripeApi.md +1 -1
- data/docs/TopicApi.md +9 -9
- data/docs/UpdateChunkData.md +2 -0
- data/docs/UpdateChunkGroupData.md +4 -0
- data/docs/UpdateGroupByTrackingIDData.md +4 -0
- data/docs/UpdateUserData.md +1 -7
- data/docs/UserApi.md +9 -9
- data/lib/trieve_ruby_client/api/auth_api.rb +13 -11
- data/lib/trieve_ruby_client/api/chunk_api.rb +7 -7
- data/lib/trieve_ruby_client/api/chunk_group_api.rb +38 -31
- data/lib/trieve_ruby_client/api/dataset_api.rb +17 -22
- data/lib/trieve_ruby_client/api/events_api.rb +3 -3
- data/lib/trieve_ruby_client/api/file_api.rb +5 -5
- 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 +11 -16
- data/lib/trieve_ruby_client/api/user_api.rb +11 -16
- 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 +7 -7
- data/lib/trieve_ruby_client/models/add_chunk_to_group_data.rb +17 -12
- 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 +1 -1
- data/lib/trieve_ruby_client/models/chunk_filter.rb +1 -1
- data/lib/trieve_ruby_client/models/chunk_group.rb +22 -2
- 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_file_data.rb +1 -1
- data/lib/trieve_ruby_client/models/client_dataset_configuration.rb +1 -1
- data/lib/trieve_ruby_client/models/create_chunk_data.rb +1 -1
- data/lib/trieve_ruby_client/models/create_chunk_group_data.rb +26 -2
- 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 +1 -1
- 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 +1 -1
- 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_dto.rb +12 -2
- data/lib/trieve_ruby_client/models/group_slim_chunks_dto.rb +239 -0
- 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 +5 -5
- data/lib/trieve_ruby_client/models/range_condition.rb +105 -0
- data/lib/trieve_ruby_client/models/reccomend_group_chunks_request.rb +17 -6
- data/lib/trieve_ruby_client/models/recommend_chunks_request.rb +28 -6
- data/lib/trieve_ruby_client/models/recommend_chunks_response_types.rb +105 -0
- data/lib/trieve_ruby_client/models/recommend_group_chunk_response_types.rb +105 -0
- data/lib/trieve_ruby_client/models/recommend_group_chunks_request.rb +341 -0
- 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 +239 -0
- data/lib/trieve_ruby_client/models/search_chunk_data.rb +14 -3
- data/lib/trieve_ruby_client/models/search_chunk_query_response_body.rb +1 -1
- data/lib/trieve_ruby_client/models/search_chunk_response_types.rb +105 -0
- data/lib/trieve_ruby_client/models/search_group_slim_chunks_result.rb +255 -0
- data/lib/trieve_ruby_client/models/search_groups_result.rb +1 -1
- data/lib/trieve_ruby_client/models/search_over_groups_data.rb +19 -7
- data/lib/trieve_ruby_client/models/search_over_groups_response_body.rb +1 -1
- data/lib/trieve_ruby_client/models/search_over_groups_response_types.rb +105 -0
- data/lib/trieve_ruby_client/models/search_over_groups_slim_chunks_response_body.rb +239 -0
- data/lib/trieve_ruby_client/models/search_slim_chunk_query_response_body.rb +239 -0
- data/lib/trieve_ruby_client/models/search_within_group_data.rb +14 -3
- data/lib/trieve_ruby_client/models/search_within_group_response_types.rb +105 -0
- 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 +329 -0
- data/lib/trieve_ruby_client/models/slim_group.rb +1 -1
- data/lib/trieve_ruby_client/models/slim_user.rb +5 -41
- 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 +1 -1
- 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 +15 -2
- data/lib/trieve_ruby_client/models/update_chunk_group_data.rb +26 -2
- 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 +26 -2
- 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_data.rb +6 -39
- 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 +14 -3
- data/openapi-generator.yaml +1 -1
- data/openapi.json +679 -261
- data/spec/models/group_slim_chunks_dto_spec.rb +42 -0
- data/spec/models/range_condition_spec.rb +32 -0
- data/spec/models/recommend_chunks_response_types_spec.rb +32 -0
- data/spec/models/recommend_group_chunk_response_types_spec.rb +32 -0
- data/spec/models/recommend_group_chunks_request_spec.rb +84 -0
- data/spec/models/score_slim_chunks_spec.rb +42 -0
- data/spec/models/search_chunk_response_types_spec.rb +32 -0
- data/spec/models/search_group_slim_chunks_result_spec.rb +48 -0
- data/spec/models/search_over_groups_response_types_spec.rb +32 -0
- data/spec/models/search_over_groups_slim_chunks_response_body_spec.rb +42 -0
- data/spec/models/search_slim_chunk_query_response_body_spec.rb +42 -0
- data/spec/models/search_within_group_response_types_spec.rb +32 -0
- data/spec/models/slim_chunk_metadata_spec.rb +90 -0
- data/spec/spec_helper.rb +1 -1
- data/trieve_ruby_client-0.5.0.gem +0 -0
- data/trieve_ruby_client-0.5.7.gem +0 -0
- data/trieve_ruby_client.gemspec +1 -1
- metadata +57 -4
- data/trieve_ruby_client-0.3.5.gem +0 -0
- data/trieve_ruby_client-0.4.0.gem +0 -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.6.0
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -96,35 +96,35 @@ module TrieveRubyClient
|
|
96
96
|
|
97
97
|
# Delete Dataset
|
98
98
|
# Delete Dataset Delete a dataset. The auth'ed user must be an owner of the organization to delete a dataset.
|
99
|
-
# @param
|
100
|
-
# @param
|
99
|
+
# @param tr_dataset [String] The dataset id to use for the request
|
100
|
+
# @param dataset_id [String] The id of the dataset you want to delete.
|
101
101
|
# @param [Hash] opts the optional parameters
|
102
102
|
# @return [nil]
|
103
|
-
def delete_dataset(
|
104
|
-
delete_dataset_with_http_info(
|
103
|
+
def delete_dataset(tr_dataset, dataset_id, opts = {})
|
104
|
+
delete_dataset_with_http_info(tr_dataset, dataset_id, opts)
|
105
105
|
nil
|
106
106
|
end
|
107
107
|
|
108
108
|
# Delete Dataset
|
109
109
|
# Delete Dataset Delete a dataset. The auth'ed user must be an owner of the organization to delete a dataset.
|
110
|
-
# @param
|
111
|
-
# @param
|
110
|
+
# @param tr_dataset [String] The dataset id to use for the request
|
111
|
+
# @param dataset_id [String] The id of the dataset you want to delete.
|
112
112
|
# @param [Hash] opts the optional parameters
|
113
113
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
114
|
-
def delete_dataset_with_http_info(
|
114
|
+
def delete_dataset_with_http_info(tr_dataset, dataset_id, opts = {})
|
115
115
|
if @api_client.config.debugging
|
116
116
|
@api_client.config.logger.debug 'Calling API: DatasetApi.delete_dataset ...'
|
117
117
|
end
|
118
|
-
# verify the required parameter '
|
119
|
-
if @api_client.config.client_side_validation &&
|
120
|
-
fail ArgumentError, "Missing the required parameter '
|
118
|
+
# verify the required parameter 'tr_dataset' is set
|
119
|
+
if @api_client.config.client_side_validation && tr_dataset.nil?
|
120
|
+
fail ArgumentError, "Missing the required parameter 'tr_dataset' when calling DatasetApi.delete_dataset"
|
121
121
|
end
|
122
|
-
# verify the required parameter '
|
123
|
-
if @api_client.config.client_side_validation &&
|
124
|
-
fail ArgumentError, "Missing the required parameter '
|
122
|
+
# verify the required parameter 'dataset_id' is set
|
123
|
+
if @api_client.config.client_side_validation && dataset_id.nil?
|
124
|
+
fail ArgumentError, "Missing the required parameter 'dataset_id' when calling DatasetApi.delete_dataset"
|
125
125
|
end
|
126
126
|
# resource path
|
127
|
-
local_var_path = '/api/dataset'
|
127
|
+
local_var_path = '/api/dataset/{dataset_id}'.sub('{' + 'dataset_id' + '}', CGI.escape(dataset_id.to_s))
|
128
128
|
|
129
129
|
# query parameters
|
130
130
|
query_params = opts[:query_params] || {}
|
@@ -133,18 +133,13 @@ module TrieveRubyClient
|
|
133
133
|
header_params = opts[:header_params] || {}
|
134
134
|
# HTTP header 'Accept' (if needed)
|
135
135
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
136
|
-
|
137
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
138
|
-
if !content_type.nil?
|
139
|
-
header_params['Content-Type'] = content_type
|
140
|
-
end
|
141
|
-
header_params[:'TR-Organization'] = tr_organization
|
136
|
+
header_params[:'TR-Dataset'] = tr_dataset
|
142
137
|
|
143
138
|
# form parameters
|
144
139
|
form_params = opts[:form_params] || {}
|
145
140
|
|
146
141
|
# http body (model)
|
147
|
-
post_body = opts[:debug_body]
|
142
|
+
post_body = opts[:debug_body]
|
148
143
|
|
149
144
|
# return_type
|
150
145
|
return_type = opts[:debug_return_type]
|
@@ -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.6.0
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -20,7 +20,7 @@ module TrieveRubyClient
|
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
22
|
# Get events for the dataset
|
23
|
-
# Get events for the dataset Get events for the
|
23
|
+
# Get events for the dataset Get events for the dataset specified by the TR-Dataset header.
|
24
24
|
# @param tr_dataset [String] The dataset id to use for the request
|
25
25
|
# @param get_events_data [GetEventsData] JSON request payload to get events for a dataset
|
26
26
|
# @param [Hash] opts the optional parameters
|
@@ -31,7 +31,7 @@ module TrieveRubyClient
|
|
31
31
|
end
|
32
32
|
|
33
33
|
# Get events for the dataset
|
34
|
-
# Get events for the dataset Get events for the
|
34
|
+
# Get events for the dataset Get events for the dataset specified by the TR-Dataset header.
|
35
35
|
# @param tr_dataset [String] The dataset id to use for the request
|
36
36
|
# @param get_events_data [GetEventsData] JSON request payload to get events for a dataset
|
37
37
|
# @param [Hash] opts the optional parameters
|
@@ -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.6.0
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -20,7 +20,7 @@ module TrieveRubyClient
|
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
22
|
# Delete File
|
23
|
-
# Delete File Delete a file from S3 attached to the server based on its id. This will disassociate chunks from the file, but
|
23
|
+
# Delete File Delete a file from S3 attached to the server based on its id. This will disassociate chunks from the file, but only delete them all together if you specify delete_chunks to be true. Auth'ed user must be an admin or owner of the dataset's organization to delete a file.
|
24
24
|
# @param tr_dataset [String] The dataset id to use for the request
|
25
25
|
# @param file_id [String] The id of the file to delete
|
26
26
|
# @param delete_chunks [Boolean] Whether or not to delete the chunks associated with the file
|
@@ -32,7 +32,7 @@ module TrieveRubyClient
|
|
32
32
|
end
|
33
33
|
|
34
34
|
# Delete File
|
35
|
-
# Delete File Delete a file from S3 attached to the server based on its id. This will disassociate chunks from the file, but
|
35
|
+
# Delete File Delete a file from S3 attached to the server based on its id. This will disassociate chunks from the file, but only delete them all together if you specify delete_chunks to be true. Auth'ed user must be an admin or owner of the dataset's organization to delete a file.
|
36
36
|
# @param tr_dataset [String] The dataset id to use for the request
|
37
37
|
# @param file_id [String] The id of the file to delete
|
38
38
|
# @param delete_chunks [Boolean] Whether or not to delete the chunks associated with the file
|
@@ -177,7 +177,7 @@ module TrieveRubyClient
|
|
177
177
|
end
|
178
178
|
|
179
179
|
# Get File
|
180
|
-
# Get File Download a file
|
180
|
+
# Get File Download a file based on its id.
|
181
181
|
# @param tr_dataset [String] The dataset id to use for the request
|
182
182
|
# @param file_id [String] The id of the file to fetch
|
183
183
|
# @param [Hash] opts the optional parameters
|
@@ -188,7 +188,7 @@ module TrieveRubyClient
|
|
188
188
|
end
|
189
189
|
|
190
190
|
# Get File
|
191
|
-
# Get File Download a file
|
191
|
+
# Get File Download a file based on its id.
|
192
192
|
# @param tr_dataset [String] The dataset id to use for the request
|
193
193
|
# @param file_id [String] The id of the file to fetch
|
194
194
|
# @param [Hash] opts the optional parameters
|
@@ -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.6.0
|
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.6.0
|
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.6.0
|
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.6.0
|
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.6.0
|
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.6.0
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -97,21 +97,21 @@ module TrieveRubyClient
|
|
97
97
|
# Delete Topic
|
98
98
|
# Delete Topic Delete an existing chat topic. When a topic is deleted, all associated chat messages are also deleted.
|
99
99
|
# @param tr_dataset [String] The dataset id to use for the request
|
100
|
-
# @param
|
100
|
+
# @param topic_id [String] The id of the topic you want to delete.
|
101
101
|
# @param [Hash] opts the optional parameters
|
102
102
|
# @return [nil]
|
103
|
-
def delete_topic(tr_dataset,
|
104
|
-
delete_topic_with_http_info(tr_dataset,
|
103
|
+
def delete_topic(tr_dataset, topic_id, opts = {})
|
104
|
+
delete_topic_with_http_info(tr_dataset, topic_id, opts)
|
105
105
|
nil
|
106
106
|
end
|
107
107
|
|
108
108
|
# Delete Topic
|
109
109
|
# Delete Topic Delete an existing chat topic. When a topic is deleted, all associated chat messages are also deleted.
|
110
110
|
# @param tr_dataset [String] The dataset id to use for the request
|
111
|
-
# @param
|
111
|
+
# @param topic_id [String] The id of the topic you want to delete.
|
112
112
|
# @param [Hash] opts the optional parameters
|
113
113
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
114
|
-
def delete_topic_with_http_info(tr_dataset,
|
114
|
+
def delete_topic_with_http_info(tr_dataset, topic_id, opts = {})
|
115
115
|
if @api_client.config.debugging
|
116
116
|
@api_client.config.logger.debug 'Calling API: TopicApi.delete_topic ...'
|
117
117
|
end
|
@@ -119,12 +119,12 @@ module TrieveRubyClient
|
|
119
119
|
if @api_client.config.client_side_validation && tr_dataset.nil?
|
120
120
|
fail ArgumentError, "Missing the required parameter 'tr_dataset' when calling TopicApi.delete_topic"
|
121
121
|
end
|
122
|
-
# verify the required parameter '
|
123
|
-
if @api_client.config.client_side_validation &&
|
124
|
-
fail ArgumentError, "Missing the required parameter '
|
122
|
+
# verify the required parameter 'topic_id' is set
|
123
|
+
if @api_client.config.client_side_validation && topic_id.nil?
|
124
|
+
fail ArgumentError, "Missing the required parameter 'topic_id' when calling TopicApi.delete_topic"
|
125
125
|
end
|
126
126
|
# resource path
|
127
|
-
local_var_path = '/api/topic'
|
127
|
+
local_var_path = '/api/topic/{topic_id}'.sub('{' + 'topic_id' + '}', CGI.escape(topic_id.to_s))
|
128
128
|
|
129
129
|
# query parameters
|
130
130
|
query_params = opts[:query_params] || {}
|
@@ -133,18 +133,13 @@ module TrieveRubyClient
|
|
133
133
|
header_params = opts[:header_params] || {}
|
134
134
|
# HTTP header 'Accept' (if needed)
|
135
135
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
136
|
-
# HTTP header 'Content-Type'
|
137
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
138
|
-
if !content_type.nil?
|
139
|
-
header_params['Content-Type'] = content_type
|
140
|
-
end
|
141
136
|
header_params[:'TR-Dataset'] = tr_dataset
|
142
137
|
|
143
138
|
# form parameters
|
144
139
|
form_params = opts[:form_params] || {}
|
145
140
|
|
146
141
|
# http body (model)
|
147
|
-
post_body = opts[:debug_body]
|
142
|
+
post_body = opts[:debug_body]
|
148
143
|
|
149
144
|
# return_type
|
150
145
|
return_type = opts[:debug_return_type]
|
@@ -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.6.0
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -21,29 +21,29 @@ module TrieveRubyClient
|
|
21
21
|
end
|
22
22
|
# Delete User Api Key
|
23
23
|
# Delete User Api Key Delete an api key for the auth'ed user.
|
24
|
-
# @param
|
24
|
+
# @param api_key_id [String] The id of the api key to delete
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
26
|
# @return [Array<ApiKeyDTO>]
|
27
|
-
def delete_user_api_key(
|
28
|
-
data, _status_code, _headers = delete_user_api_key_with_http_info(
|
27
|
+
def delete_user_api_key(api_key_id, opts = {})
|
28
|
+
data, _status_code, _headers = delete_user_api_key_with_http_info(api_key_id, opts)
|
29
29
|
data
|
30
30
|
end
|
31
31
|
|
32
32
|
# Delete User Api Key
|
33
33
|
# Delete User Api Key Delete an api key for the auth'ed user.
|
34
|
-
# @param
|
34
|
+
# @param api_key_id [String] The id of the api key to delete
|
35
35
|
# @param [Hash] opts the optional parameters
|
36
36
|
# @return [Array<(Array<ApiKeyDTO>, Integer, Hash)>] Array<ApiKeyDTO> data, response status code and response headers
|
37
|
-
def delete_user_api_key_with_http_info(
|
37
|
+
def delete_user_api_key_with_http_info(api_key_id, opts = {})
|
38
38
|
if @api_client.config.debugging
|
39
39
|
@api_client.config.logger.debug 'Calling API: UserApi.delete_user_api_key ...'
|
40
40
|
end
|
41
|
-
# verify the required parameter '
|
42
|
-
if @api_client.config.client_side_validation &&
|
43
|
-
fail ArgumentError, "Missing the required parameter '
|
41
|
+
# verify the required parameter 'api_key_id' is set
|
42
|
+
if @api_client.config.client_side_validation && api_key_id.nil?
|
43
|
+
fail ArgumentError, "Missing the required parameter 'api_key_id' when calling UserApi.delete_user_api_key"
|
44
44
|
end
|
45
45
|
# resource path
|
46
|
-
local_var_path = '/api/user/delete_api_key'
|
46
|
+
local_var_path = '/api/user/delete_api_key/{api_key_id}'.sub('{' + 'api_key_id' + '}', CGI.escape(api_key_id.to_s))
|
47
47
|
|
48
48
|
# query parameters
|
49
49
|
query_params = opts[:query_params] || {}
|
@@ -52,17 +52,12 @@ module TrieveRubyClient
|
|
52
52
|
header_params = opts[:header_params] || {}
|
53
53
|
# HTTP header 'Accept' (if needed)
|
54
54
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
55
|
-
# HTTP header 'Content-Type'
|
56
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
57
|
-
if !content_type.nil?
|
58
|
-
header_params['Content-Type'] = content_type
|
59
|
-
end
|
60
55
|
|
61
56
|
# form parameters
|
62
57
|
form_params = opts[:form_params] || {}
|
63
58
|
|
64
59
|
# http body (model)
|
65
|
-
post_body = opts[:debug_body]
|
60
|
+
post_body = opts[:debug_body]
|
66
61
|
|
67
62
|
# return_type
|
68
63
|
return_type = opts[:debug_return_type] || 'Array<ApiKeyDTO>'
|
@@ -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.6.0
|
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.6.0
|
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.6.0
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -149,8 +149,8 @@ module TrieveRubyClient
|
|
149
149
|
attr_accessor :force_ending_format
|
150
150
|
|
151
151
|
def initialize
|
152
|
-
@scheme = '
|
153
|
-
@host = '
|
152
|
+
@scheme = 'https'
|
153
|
+
@host = 'api.trieve.ai'
|
154
154
|
@base_path = ''
|
155
155
|
@server_index = nil
|
156
156
|
@server_operation_index = {}
|
@@ -247,13 +247,13 @@ module TrieveRubyClient
|
|
247
247
|
# Returns an array of Server setting
|
248
248
|
def server_settings
|
249
249
|
[
|
250
|
-
{
|
251
|
-
url: "http://localhost:8090",
|
252
|
-
description: "Local development server",
|
253
|
-
},
|
254
250
|
{
|
255
251
|
url: "https://api.trieve.ai",
|
256
252
|
description: "Production server",
|
253
|
+
},
|
254
|
+
{
|
255
|
+
url: "http://localhost:8090",
|
256
|
+
description: "Local development server",
|
257
257
|
}
|
258
258
|
]
|
259
259
|
end
|
@@ -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.6.0
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -18,10 +18,14 @@ module TrieveRubyClient
|
|
18
18
|
# Id of the chunk to make a member of the group.
|
19
19
|
attr_accessor :chunk_id
|
20
20
|
|
21
|
+
# Tracking Id of the chunk to make a member of the group.
|
22
|
+
attr_accessor :tracking_id
|
23
|
+
|
21
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
22
25
|
def self.attribute_map
|
23
26
|
{
|
24
|
-
:'chunk_id' => :'chunk_id'
|
27
|
+
:'chunk_id' => :'chunk_id',
|
28
|
+
:'tracking_id' => :'tracking_id'
|
25
29
|
}
|
26
30
|
end
|
27
31
|
|
@@ -33,13 +37,16 @@ module TrieveRubyClient
|
|
33
37
|
# Attribute type mapping.
|
34
38
|
def self.openapi_types
|
35
39
|
{
|
36
|
-
:'chunk_id' => :'String'
|
40
|
+
:'chunk_id' => :'String',
|
41
|
+
:'tracking_id' => :'String'
|
37
42
|
}
|
38
43
|
end
|
39
44
|
|
40
45
|
# List of attributes with nullable: true
|
41
46
|
def self.openapi_nullable
|
42
47
|
Set.new([
|
48
|
+
:'chunk_id',
|
49
|
+
:'tracking_id'
|
43
50
|
])
|
44
51
|
end
|
45
52
|
|
@@ -60,8 +67,10 @@ module TrieveRubyClient
|
|
60
67
|
|
61
68
|
if attributes.key?(:'chunk_id')
|
62
69
|
self.chunk_id = attributes[:'chunk_id']
|
63
|
-
|
64
|
-
|
70
|
+
end
|
71
|
+
|
72
|
+
if attributes.key?(:'tracking_id')
|
73
|
+
self.tracking_id = attributes[:'tracking_id']
|
65
74
|
end
|
66
75
|
end
|
67
76
|
|
@@ -70,10 +79,6 @@ module TrieveRubyClient
|
|
70
79
|
def list_invalid_properties
|
71
80
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
72
81
|
invalid_properties = Array.new
|
73
|
-
if @chunk_id.nil?
|
74
|
-
invalid_properties.push('invalid value for "chunk_id", chunk_id cannot be nil.')
|
75
|
-
end
|
76
|
-
|
77
82
|
invalid_properties
|
78
83
|
end
|
79
84
|
|
@@ -81,7 +86,6 @@ module TrieveRubyClient
|
|
81
86
|
# @return true if the model is valid
|
82
87
|
def valid?
|
83
88
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
84
|
-
return false if @chunk_id.nil?
|
85
89
|
true
|
86
90
|
end
|
87
91
|
|
@@ -90,7 +94,8 @@ module TrieveRubyClient
|
|
90
94
|
def ==(o)
|
91
95
|
return true if self.equal?(o)
|
92
96
|
self.class == o.class &&
|
93
|
-
chunk_id == o.chunk_id
|
97
|
+
chunk_id == o.chunk_id &&
|
98
|
+
tracking_id == o.tracking_id
|
94
99
|
end
|
95
100
|
|
96
101
|
# @see the `==` method
|
@@ -102,7 +107,7 @@ module TrieveRubyClient
|
|
102
107
|
# Calculates hash code according to all attributes.
|
103
108
|
# @return [Integer] Hash code
|
104
109
|
def hash
|
105
|
-
[chunk_id].hash
|
110
|
+
[chunk_id, tracking_id].hash
|
106
111
|
end
|
107
112
|
|
108
113
|
# 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.6.0
|
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.6.0
|
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.6.0
|
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.6.0
|
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.6.0
|
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.6.0
|
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.6.0
|
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.6.0
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|