trieve_ruby_client 0.3.5 → 0.5.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/README.md +78 -74
- data/docs/AddChunkToGroupData.md +1 -1
- data/docs/AuthApi.md +28 -34
- data/docs/AuthQuery.md +22 -0
- data/docs/BatchQueuedChunkResponse.md +20 -0
- data/docs/ChunkApi.md +69 -147
- data/docs/ChunkData.md +42 -0
- data/docs/ChunkGroupApi.md +168 -90
- data/docs/CreateChunkData.md +41 -34
- data/docs/DatasetApi.md +31 -31
- data/docs/EventsApi.md +13 -13
- data/docs/FileApi.md +21 -21
- data/docs/GetEventsData.md +22 -0
- data/docs/HealthApi.md +6 -4
- data/docs/InvitationApi.md +6 -6
- data/docs/MessageApi.md +21 -21
- data/docs/OrganizationApi.md +31 -31
- data/docs/ReturnQueuedChunk.md +39 -10
- data/docs/SingleQueuedChunkResponse.md +20 -0
- data/docs/StripeApi.md +21 -13
- data/docs/TopicApi.md +21 -21
- data/docs/UserApi.md +16 -16
- data/lib/trieve_ruby_client/api/auth_api.rb +27 -34
- data/lib/trieve_ruby_client/api/chunk_api.rb +64 -143
- data/lib/trieve_ruby_client/api/chunk_group_api.rb +153 -75
- data/lib/trieve_ruby_client/api/dataset_api.rb +25 -25
- data/lib/trieve_ruby_client/api/events_api.rb +21 -16
- data/lib/trieve_ruby_client/api/file_api.rb +17 -17
- data/lib/trieve_ruby_client/api/health_api.rb +5 -1
- data/lib/trieve_ruby_client/api/invitation_api.rb +5 -5
- data/lib/trieve_ruby_client/api/message_api.rb +17 -17
- data/lib/trieve_ruby_client/api/organization_api.rb +25 -25
- data/lib/trieve_ruby_client/api/stripe_api.rb +17 -1
- data/lib/trieve_ruby_client/api/topic_api.rb +17 -17
- data/lib/trieve_ruby_client/api/user_api.rb +13 -13
- 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 +8 -4
- data/lib/trieve_ruby_client/models/add_chunk_to_group_data.rb +2 -2
- data/lib/trieve_ruby_client/models/api_key_dto.rb +1 -1
- data/lib/trieve_ruby_client/models/{stripe_subscription.rb → auth_query.rb} +23 -96
- data/lib/trieve_ruby_client/models/batch_queued_chunk_response.rb +240 -0
- 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 +356 -0
- 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_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 +79 -330
- 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 +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_dataset_request.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 +240 -0
- 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 +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/reccomend_group_chunks_request.rb +1 -1
- data/lib/trieve_ruby_client/models/recommend_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 +75 -207
- data/lib/trieve_ruby_client/models/score_chunk_dto.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_groups_result.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_response_body.rb +1 -1
- data/lib/trieve_ruby_client/models/search_within_group_data.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 +238 -0
- 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 +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 +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_data.rb +1 -1
- 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 +6 -2
- data/openapi-generator.yaml +1 -1
- data/openapi.json +1196 -849
- data/spec/api/auth_api_spec.rb +16 -18
- data/spec/api/chunk_api_spec.rb +30 -43
- data/spec/api/chunk_group_api_spec.rb +54 -33
- data/spec/api/dataset_api_spec.rb +19 -19
- data/spec/api/events_api_spec.rb +10 -10
- data/spec/api/file_api_spec.rb +15 -15
- data/spec/api/health_api_spec.rb +9 -7
- data/spec/api/invitation_api_spec.rb +9 -9
- data/spec/api/message_api_spec.rb +15 -15
- data/spec/api/organization_api_spec.rb +19 -19
- data/spec/api/stripe_api_spec.rb +15 -7
- data/spec/api/topic_api_spec.rb +15 -15
- data/spec/api/user_api_spec.rb +13 -13
- data/spec/models/add_chunk_to_group_data_spec.rb +8 -8
- data/spec/models/api_key_dto_spec.rb +8 -8
- data/spec/models/auth_query_spec.rb +48 -0
- data/spec/models/batch_queued_chunk_response_spec.rb +42 -0
- data/spec/models/bookmark_data_spec.rb +8 -8
- data/spec/models/bookmark_group_result_spec.rb +8 -8
- data/spec/models/chat_message_proxy_spec.rb +8 -8
- data/spec/models/chunk_data_spec.rb +108 -0
- data/spec/models/chunk_filter_spec.rb +8 -8
- data/spec/models/chunk_group_and_file_spec.rb +8 -8
- data/spec/models/chunk_group_spec.rb +8 -8
- data/spec/models/chunk_metadata_spec.rb +8 -8
- data/spec/models/chunk_metadata_with_file_data_spec.rb +8 -8
- data/spec/models/client_dataset_configuration_spec.rb +8 -8
- data/spec/models/create_chunk_data_spec.rb +11 -87
- data/spec/models/create_chunk_group_data_spec.rb +8 -8
- data/spec/models/create_dataset_request_spec.rb +8 -8
- data/spec/models/create_message_data_spec.rb +8 -8
- data/spec/models/create_organization_data_spec.rb +8 -8
- data/spec/models/create_topic_data_spec.rb +8 -8
- data/spec/models/dataset_and_usage_spec.rb +8 -8
- data/spec/models/dataset_dto_spec.rb +8 -8
- data/spec/models/dataset_spec.rb +8 -8
- data/spec/models/dataset_usage_count_spec.rb +8 -8
- data/spec/models/delete_dataset_request_spec.rb +8 -8
- data/spec/models/delete_topic_data_spec.rb +8 -8
- data/spec/models/delete_user_api_key_request_spec.rb +8 -8
- data/spec/models/edit_message_data_spec.rb +8 -8
- data/spec/models/error_response_body_spec.rb +8 -8
- data/spec/models/event_return_spec.rb +8 -8
- data/spec/models/event_spec.rb +8 -8
- data/spec/models/field_condition_spec.rb +8 -8
- data/spec/models/file_dto_spec.rb +8 -8
- data/spec/models/file_spec.rb +8 -8
- data/spec/models/generate_chunks_request_spec.rb +8 -8
- data/spec/models/get_events_data_spec.rb +48 -0
- data/spec/models/get_groups_for_chunks_data_spec.rb +8 -8
- data/spec/models/group_data_spec.rb +8 -8
- data/spec/models/group_score_chunk_dto_spec.rb +8 -8
- data/spec/models/invitation_data_spec.rb +8 -8
- data/spec/models/match_condition_spec.rb +6 -6
- data/spec/models/message_spec.rb +8 -8
- data/spec/models/organization_spec.rb +8 -8
- data/spec/models/organization_usage_count_spec.rb +8 -8
- data/spec/models/range_spec.rb +8 -8
- data/spec/models/reccomend_group_chunks_request_spec.rb +8 -8
- data/spec/models/recommend_chunks_request_spec.rb +8 -8
- data/spec/models/regenerate_message_data_spec.rb +8 -8
- data/spec/models/return_queued_chunk_spec.rb +11 -21
- data/spec/models/score_chunk_dto_spec.rb +8 -8
- data/spec/models/search_chunk_data_spec.rb +8 -8
- data/spec/models/search_chunk_query_response_body_spec.rb +8 -8
- data/spec/models/search_groups_result_spec.rb +8 -8
- data/spec/models/search_over_groups_data_spec.rb +8 -8
- data/spec/models/search_over_groups_response_body_spec.rb +8 -8
- data/spec/models/search_within_group_data_spec.rb +8 -8
- data/spec/models/set_user_api_key_request_spec.rb +8 -8
- data/spec/models/set_user_api_key_response_spec.rb +8 -8
- data/spec/models/single_queued_chunk_response_spec.rb +42 -0
- data/spec/models/slim_group_spec.rb +8 -8
- data/spec/models/slim_user_spec.rb +8 -8
- data/spec/models/stripe_plan_spec.rb +8 -8
- data/spec/models/suggested_queries_request_spec.rb +8 -8
- data/spec/models/suggested_queries_response_spec.rb +8 -8
- data/spec/models/topic_spec.rb +8 -8
- data/spec/models/update_chunk_by_tracking_id_data_spec.rb +20 -8
- data/spec/models/update_chunk_data_spec.rb +20 -8
- data/spec/models/update_chunk_group_data_spec.rb +14 -8
- data/spec/models/update_dataset_request_spec.rb +8 -8
- data/spec/models/update_group_by_tracking_id_data_spec.rb +8 -8
- data/spec/models/update_organization_data_spec.rb +8 -8
- data/spec/models/update_topic_data_spec.rb +8 -8
- data/spec/models/update_user_data_spec.rb +8 -8
- data/spec/models/upload_file_data_spec.rb +8 -8
- data/spec/models/upload_file_result_spec.rb +8 -8
- data/spec/models/user_organization_spec.rb +8 -8
- data/spec/spec_helper.rb +1 -1
- data/trieve_ruby_client-0.3.5.gem +0 -0
- data/trieve_ruby_client-0.4.0.gem +0 -0
- data/trieve_ruby_client.gemspec +1 -1
- metadata +24 -8
- data/docs/StripeSubscription.md +0 -30
- data/spec/models/stripe_subscription_spec.rb +0 -72
- data/trieve_ruby_client-0.3.4.gem +0 -0
- data/trieve_ruby_client-0.3.41.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.5.0
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -19,8 +19,8 @@ module TrieveRubyClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
#
|
23
|
-
#
|
22
|
+
# Add Chunk to Group
|
23
|
+
# Add Chunk to Group Route to add a chunk to a group.
|
24
24
|
# @param tr_dataset [String] The dataset id to use for the request
|
25
25
|
# @param group_id [String] Id of the group to add the chunk to as a bookmark
|
26
26
|
# @param add_chunk_to_group_data [AddChunkToGroupData] JSON request payload to add a chunk to a group (bookmark it)
|
@@ -31,8 +31,8 @@ module TrieveRubyClient
|
|
31
31
|
nil
|
32
32
|
end
|
33
33
|
|
34
|
-
#
|
35
|
-
#
|
34
|
+
# Add Chunk to Group
|
35
|
+
# Add Chunk to Group Route to add a chunk to a group.
|
36
36
|
# @param tr_dataset [String] The dataset id to use for the request
|
37
37
|
# @param group_id [String] Id of the group to add the chunk to as a bookmark
|
38
38
|
# @param add_chunk_to_group_data [AddChunkToGroupData] JSON request payload to add a chunk to a group (bookmark it)
|
@@ -100,8 +100,8 @@ module TrieveRubyClient
|
|
100
100
|
return data, status_code, headers
|
101
101
|
end
|
102
102
|
|
103
|
-
#
|
104
|
-
#
|
103
|
+
# Add Chunk to Group by Tracking ID
|
104
|
+
# Add Chunk to Group by Tracking ID Route to add a chunk to a group by tracking id.
|
105
105
|
# @param tr_dataset [String] The dataset id to use for the request
|
106
106
|
# @param tracking_id [String] Id of the group to add the chunk to as a bookmark
|
107
107
|
# @param add_chunk_to_group_data [AddChunkToGroupData] JSON request payload to add a chunk to a group (bookmark it)
|
@@ -112,8 +112,8 @@ module TrieveRubyClient
|
|
112
112
|
nil
|
113
113
|
end
|
114
114
|
|
115
|
-
#
|
116
|
-
#
|
115
|
+
# Add Chunk to Group by Tracking ID
|
116
|
+
# Add Chunk to Group by Tracking ID Route to add a chunk to a group by tracking id.
|
117
117
|
# @param tr_dataset [String] The dataset id to use for the request
|
118
118
|
# @param tracking_id [String] Id of the group to add the chunk to as a bookmark
|
119
119
|
# @param add_chunk_to_group_data [AddChunkToGroupData] JSON request payload to add a chunk to a group (bookmark it)
|
@@ -181,8 +181,8 @@ module TrieveRubyClient
|
|
181
181
|
return data, status_code, headers
|
182
182
|
end
|
183
183
|
|
184
|
-
#
|
185
|
-
#
|
184
|
+
# Create Chunk Group
|
185
|
+
# Create Chunk Group Create a new chunk_group. This is a way to group chunks together. If you try to create a chunk_group with the same tracking_id as an existing chunk_group, this operation will fail.
|
186
186
|
# @param tr_dataset [String] The dataset id to use for the request
|
187
187
|
# @param create_chunk_group_data [CreateChunkGroupData] JSON request payload to cretea a chunkGroup
|
188
188
|
# @param [Hash] opts the optional parameters
|
@@ -192,8 +192,8 @@ module TrieveRubyClient
|
|
192
192
|
data
|
193
193
|
end
|
194
194
|
|
195
|
-
#
|
196
|
-
#
|
195
|
+
# Create Chunk Group
|
196
|
+
# Create Chunk Group Create a new chunk_group. This is a way to group chunks together. If you try to create a chunk_group with the same tracking_id as an existing chunk_group, this operation will fail.
|
197
197
|
# @param tr_dataset [String] The dataset id to use for the request
|
198
198
|
# @param create_chunk_group_data [CreateChunkGroupData] JSON request payload to cretea a chunkGroup
|
199
199
|
# @param [Hash] opts the optional parameters
|
@@ -256,28 +256,26 @@ module TrieveRubyClient
|
|
256
256
|
return data, status_code, headers
|
257
257
|
end
|
258
258
|
|
259
|
-
#
|
260
|
-
#
|
259
|
+
# Delete Group
|
260
|
+
# Delete Group This will delete a chunk_group. This will not delete the chunks that are in the group. We will soon support deleting a chunk_group along with its member chunks.
|
261
261
|
# @param tr_dataset [String] The dataset id to use for the request
|
262
|
-
# @param group_id [
|
263
|
-
# @param tracking_or_chunk [String] The type of id you are using to search for the group. This can be either 'chunk' or 'tracking_id'
|
262
|
+
# @param group_id [String] Id of the group you want to fetch.
|
264
263
|
# @param delete_chunks [Boolean] Delete the chunks within the group
|
265
264
|
# @param [Hash] opts the optional parameters
|
266
265
|
# @return [nil]
|
267
|
-
def delete_chunk_group(tr_dataset, group_id,
|
268
|
-
delete_chunk_group_with_http_info(tr_dataset, group_id,
|
266
|
+
def delete_chunk_group(tr_dataset, group_id, delete_chunks, opts = {})
|
267
|
+
delete_chunk_group_with_http_info(tr_dataset, group_id, delete_chunks, opts)
|
269
268
|
nil
|
270
269
|
end
|
271
270
|
|
272
|
-
#
|
273
|
-
#
|
271
|
+
# Delete Group
|
272
|
+
# Delete Group This will delete a chunk_group. This will not delete the chunks that are in the group. We will soon support deleting a chunk_group along with its member chunks.
|
274
273
|
# @param tr_dataset [String] The dataset id to use for the request
|
275
|
-
# @param group_id [
|
276
|
-
# @param tracking_or_chunk [String] The type of id you are using to search for the group. This can be either 'chunk' or 'tracking_id'
|
274
|
+
# @param group_id [String] Id of the group you want to fetch.
|
277
275
|
# @param delete_chunks [Boolean] Delete the chunks within the group
|
278
276
|
# @param [Hash] opts the optional parameters
|
279
277
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
280
|
-
def delete_chunk_group_with_http_info(tr_dataset, group_id,
|
278
|
+
def delete_chunk_group_with_http_info(tr_dataset, group_id, delete_chunks, opts = {})
|
281
279
|
if @api_client.config.debugging
|
282
280
|
@api_client.config.logger.debug 'Calling API: ChunkGroupApi.delete_chunk_group ...'
|
283
281
|
end
|
@@ -285,16 +283,16 @@ module TrieveRubyClient
|
|
285
283
|
if @api_client.config.client_side_validation && tr_dataset.nil?
|
286
284
|
fail ArgumentError, "Missing the required parameter 'tr_dataset' when calling ChunkGroupApi.delete_chunk_group"
|
287
285
|
end
|
288
|
-
# verify the required parameter '
|
289
|
-
if @api_client.config.client_side_validation &&
|
290
|
-
fail ArgumentError, "Missing the required parameter '
|
286
|
+
# verify the required parameter 'group_id' is set
|
287
|
+
if @api_client.config.client_side_validation && group_id.nil?
|
288
|
+
fail ArgumentError, "Missing the required parameter 'group_id' when calling ChunkGroupApi.delete_chunk_group"
|
291
289
|
end
|
292
290
|
# verify the required parameter 'delete_chunks' is set
|
293
291
|
if @api_client.config.client_side_validation && delete_chunks.nil?
|
294
292
|
fail ArgumentError, "Missing the required parameter 'delete_chunks' when calling ChunkGroupApi.delete_chunk_group"
|
295
293
|
end
|
296
294
|
# resource path
|
297
|
-
local_var_path = '/api/
|
295
|
+
local_var_path = '/api/chunk_group/{group_id}'.sub('{' + 'group_id' + '}', CGI.escape(group_id.to_s))
|
298
296
|
|
299
297
|
# query parameters
|
300
298
|
query_params = opts[:query_params] || {}
|
@@ -335,6 +333,8 @@ module TrieveRubyClient
|
|
335
333
|
return data, status_code, headers
|
336
334
|
end
|
337
335
|
|
336
|
+
# Delete Group by Tracking ID
|
337
|
+
# Delete Group by Tracking ID Delete a chunk_group with the given tracking id.
|
338
338
|
# @param tr_dataset [String] The dataset id to use for the request
|
339
339
|
# @param tracking_id [String] Tracking id of the chunk_group to delete
|
340
340
|
# @param [Hash] opts the optional parameters
|
@@ -344,6 +344,8 @@ module TrieveRubyClient
|
|
344
344
|
nil
|
345
345
|
end
|
346
346
|
|
347
|
+
# Delete Group by Tracking ID
|
348
|
+
# Delete Group by Tracking ID Delete a chunk_group with the given tracking id.
|
347
349
|
# @param tr_dataset [String] The dataset id to use for the request
|
348
350
|
# @param tracking_id [String] Tracking id of the chunk_group to delete
|
349
351
|
# @param [Hash] opts the optional parameters
|
@@ -401,28 +403,96 @@ module TrieveRubyClient
|
|
401
403
|
return data, status_code, headers
|
402
404
|
end
|
403
405
|
|
404
|
-
#
|
405
|
-
#
|
406
|
+
# Get Group
|
407
|
+
# Get Group Fetch the group with the given id. get_group
|
408
|
+
# @param tr_dataset [String] The dataset id to use for the request
|
409
|
+
# @param group_id [String] Id of the group you want to fetch.
|
410
|
+
# @param [Hash] opts the optional parameters
|
411
|
+
# @return [ChunkGroup]
|
412
|
+
def get_chunk_group(tr_dataset, group_id, opts = {})
|
413
|
+
data, _status_code, _headers = get_chunk_group_with_http_info(tr_dataset, group_id, opts)
|
414
|
+
data
|
415
|
+
end
|
416
|
+
|
417
|
+
# Get Group
|
418
|
+
# Get Group Fetch the group with the given id. get_group
|
419
|
+
# @param tr_dataset [String] The dataset id to use for the request
|
420
|
+
# @param group_id [String] Id of the group you want to fetch.
|
421
|
+
# @param [Hash] opts the optional parameters
|
422
|
+
# @return [Array<(ChunkGroup, Integer, Hash)>] ChunkGroup data, response status code and response headers
|
423
|
+
def get_chunk_group_with_http_info(tr_dataset, group_id, opts = {})
|
424
|
+
if @api_client.config.debugging
|
425
|
+
@api_client.config.logger.debug 'Calling API: ChunkGroupApi.get_chunk_group ...'
|
426
|
+
end
|
427
|
+
# verify the required parameter 'tr_dataset' is set
|
428
|
+
if @api_client.config.client_side_validation && tr_dataset.nil?
|
429
|
+
fail ArgumentError, "Missing the required parameter 'tr_dataset' when calling ChunkGroupApi.get_chunk_group"
|
430
|
+
end
|
431
|
+
# verify the required parameter 'group_id' is set
|
432
|
+
if @api_client.config.client_side_validation && group_id.nil?
|
433
|
+
fail ArgumentError, "Missing the required parameter 'group_id' when calling ChunkGroupApi.get_chunk_group"
|
434
|
+
end
|
435
|
+
# resource path
|
436
|
+
local_var_path = '/api/chunk_group/{group_id}'.sub('{' + 'group_id' + '}', CGI.escape(group_id.to_s))
|
437
|
+
|
438
|
+
# query parameters
|
439
|
+
query_params = opts[:query_params] || {}
|
440
|
+
|
441
|
+
# header parameters
|
442
|
+
header_params = opts[:header_params] || {}
|
443
|
+
# HTTP header 'Accept' (if needed)
|
444
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
445
|
+
header_params[:'TR-Dataset'] = tr_dataset
|
446
|
+
|
447
|
+
# form parameters
|
448
|
+
form_params = opts[:form_params] || {}
|
449
|
+
|
450
|
+
# http body (model)
|
451
|
+
post_body = opts[:debug_body]
|
452
|
+
|
453
|
+
# return_type
|
454
|
+
return_type = opts[:debug_return_type] || 'ChunkGroup'
|
455
|
+
|
456
|
+
# auth_names
|
457
|
+
auth_names = opts[:debug_auth_names] || ['ApiKey']
|
458
|
+
|
459
|
+
new_options = opts.merge(
|
460
|
+
:operation => :"ChunkGroupApi.get_chunk_group",
|
461
|
+
:header_params => header_params,
|
462
|
+
:query_params => query_params,
|
463
|
+
:form_params => form_params,
|
464
|
+
:body => post_body,
|
465
|
+
:auth_names => auth_names,
|
466
|
+
:return_type => return_type
|
467
|
+
)
|
468
|
+
|
469
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
470
|
+
if @api_client.config.debugging
|
471
|
+
@api_client.config.logger.debug "API called: ChunkGroupApi#get_chunk_group\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
472
|
+
end
|
473
|
+
return data, status_code, headers
|
474
|
+
end
|
475
|
+
|
476
|
+
# Get Chunks in Group
|
477
|
+
# Get Chunks in Group Route to get all chunks for a group. The response is paginated, with each page containing 10 chunks. Support for custom page size is coming soon.
|
406
478
|
# @param tr_dataset [String] The dataset id to use for the request
|
407
|
-
# @param group_id [
|
408
|
-
# @param tracking_or_chunk [String] The type of id you are using to search for the group. This can be either 'chunk' or 'tracking_id'
|
479
|
+
# @param group_id [String] Id of the group you want to fetch.
|
409
480
|
# @param page [Integer] The page of chunks to get from the group
|
410
481
|
# @param [Hash] opts the optional parameters
|
411
482
|
# @return [BookmarkData]
|
412
|
-
def get_chunks_in_group(tr_dataset, group_id,
|
413
|
-
data, _status_code, _headers = get_chunks_in_group_with_http_info(tr_dataset, group_id,
|
483
|
+
def get_chunks_in_group(tr_dataset, group_id, page, opts = {})
|
484
|
+
data, _status_code, _headers = get_chunks_in_group_with_http_info(tr_dataset, group_id, page, opts)
|
414
485
|
data
|
415
486
|
end
|
416
487
|
|
417
|
-
#
|
418
|
-
#
|
488
|
+
# Get Chunks in Group
|
489
|
+
# Get Chunks in Group Route to get all chunks for a group. The response is paginated, with each page containing 10 chunks. Support for custom page size is coming soon.
|
419
490
|
# @param tr_dataset [String] The dataset id to use for the request
|
420
|
-
# @param group_id [
|
421
|
-
# @param tracking_or_chunk [String] The type of id you are using to search for the group. This can be either 'chunk' or 'tracking_id'
|
491
|
+
# @param group_id [String] Id of the group you want to fetch.
|
422
492
|
# @param page [Integer] The page of chunks to get from the group
|
423
493
|
# @param [Hash] opts the optional parameters
|
424
494
|
# @return [Array<(BookmarkData, Integer, Hash)>] BookmarkData data, response status code and response headers
|
425
|
-
def get_chunks_in_group_with_http_info(tr_dataset, group_id,
|
495
|
+
def get_chunks_in_group_with_http_info(tr_dataset, group_id, page, opts = {})
|
426
496
|
if @api_client.config.debugging
|
427
497
|
@api_client.config.logger.debug 'Calling API: ChunkGroupApi.get_chunks_in_group ...'
|
428
498
|
end
|
@@ -430,20 +500,16 @@ module TrieveRubyClient
|
|
430
500
|
if @api_client.config.client_side_validation && tr_dataset.nil?
|
431
501
|
fail ArgumentError, "Missing the required parameter 'tr_dataset' when calling ChunkGroupApi.get_chunks_in_group"
|
432
502
|
end
|
433
|
-
# verify the required parameter '
|
434
|
-
if @api_client.config.client_side_validation &&
|
435
|
-
fail ArgumentError, "Missing the required parameter '
|
436
|
-
end
|
437
|
-
# verify the required parameter 'page' is set
|
438
|
-
if @api_client.config.client_side_validation && page.nil?
|
439
|
-
fail ArgumentError, "Missing the required parameter 'page' when calling ChunkGroupApi.get_chunks_in_group"
|
503
|
+
# verify the required parameter 'group_id' is set
|
504
|
+
if @api_client.config.client_side_validation && group_id.nil?
|
505
|
+
fail ArgumentError, "Missing the required parameter 'group_id' when calling ChunkGroupApi.get_chunks_in_group"
|
440
506
|
end
|
441
507
|
if @api_client.config.client_side_validation && page < 0
|
442
508
|
fail ArgumentError, 'invalid value for "page" when calling ChunkGroupApi.get_chunks_in_group, must be greater than or equal to 0.'
|
443
509
|
end
|
444
510
|
|
445
511
|
# resource path
|
446
|
-
local_var_path = '/api/chunk_group/{
|
512
|
+
local_var_path = '/api/chunk_group/{group_id}/{page}'.sub('{' + 'group_id' + '}', CGI.escape(group_id.to_s)).sub('{' + 'page' + '}', CGI.escape(page.to_s))
|
447
513
|
|
448
514
|
# query parameters
|
449
515
|
query_params = opts[:query_params] || {}
|
@@ -483,8 +549,8 @@ module TrieveRubyClient
|
|
483
549
|
return data, status_code, headers
|
484
550
|
end
|
485
551
|
|
486
|
-
#
|
487
|
-
#
|
552
|
+
# Get Chunks in Group by Tracking ID
|
553
|
+
# Get Chunks in Group by Tracking ID Route to get all chunks for a group. The response is paginated, with each page containing 10 chunks. Support for custom page size is coming soon.
|
488
554
|
# @param tr_dataset [String] The dataset id to use for the request
|
489
555
|
# @param group_tracking_id [String] The id of the group to get the chunks from
|
490
556
|
# @param page [Integer] The page of chunks to get from the group
|
@@ -495,8 +561,8 @@ module TrieveRubyClient
|
|
495
561
|
data
|
496
562
|
end
|
497
563
|
|
498
|
-
#
|
499
|
-
#
|
564
|
+
# Get Chunks in Group by Tracking ID
|
565
|
+
# Get Chunks in Group by Tracking ID Route to get all chunks for a group. The response is paginated, with each page containing 10 chunks. Support for custom page size is coming soon.
|
500
566
|
# @param tr_dataset [String] The dataset id to use for the request
|
501
567
|
# @param group_tracking_id [String] The id of the group to get the chunks from
|
502
568
|
# @param page [Integer] The page of chunks to get from the group
|
@@ -563,8 +629,8 @@ module TrieveRubyClient
|
|
563
629
|
return data, status_code, headers
|
564
630
|
end
|
565
631
|
|
566
|
-
#
|
567
|
-
# get_group_by_tracking_id
|
632
|
+
# Get Group by Tracking ID
|
633
|
+
# Get Group by Tracking ID Fetch the group with the given tracking id. get_group_by_tracking_id
|
568
634
|
# @param tr_dataset [String] The dataset id to use for the request
|
569
635
|
# @param tracking_id [String] The tracking id of the group to fetch.
|
570
636
|
# @param [Hash] opts the optional parameters
|
@@ -574,8 +640,8 @@ module TrieveRubyClient
|
|
574
640
|
data
|
575
641
|
end
|
576
642
|
|
577
|
-
#
|
578
|
-
# get_group_by_tracking_id
|
643
|
+
# Get Group by Tracking ID
|
644
|
+
# Get Group by Tracking ID Fetch the group with the given tracking id. get_group_by_tracking_id
|
579
645
|
# @param tr_dataset [String] The dataset id to use for the request
|
580
646
|
# @param tracking_id [String] The tracking id of the group to fetch.
|
581
647
|
# @param [Hash] opts the optional parameters
|
@@ -633,6 +699,8 @@ module TrieveRubyClient
|
|
633
699
|
return data, status_code, headers
|
634
700
|
end
|
635
701
|
|
702
|
+
# Get Groups for Chunks
|
703
|
+
# Get Groups for Chunks Route to get the groups that a chunk is in.
|
636
704
|
# @param tr_dataset [String] The dataset id to use for the request
|
637
705
|
# @param get_groups_for_chunks_data [GetGroupsForChunksData] JSON request payload to get the groups that a chunk is in
|
638
706
|
# @param [Hash] opts the optional parameters
|
@@ -642,6 +710,8 @@ module TrieveRubyClient
|
|
642
710
|
data
|
643
711
|
end
|
644
712
|
|
713
|
+
# Get Groups for Chunks
|
714
|
+
# Get Groups for Chunks Route to get the groups that a chunk is in.
|
645
715
|
# @param tr_dataset [String] The dataset id to use for the request
|
646
716
|
# @param get_groups_for_chunks_data [GetGroupsForChunksData] JSON request payload to get the groups that a chunk is in
|
647
717
|
# @param [Hash] opts the optional parameters
|
@@ -704,6 +774,8 @@ module TrieveRubyClient
|
|
704
774
|
return data, status_code, headers
|
705
775
|
end
|
706
776
|
|
777
|
+
# Get Recommended Groups
|
778
|
+
# Get Recommended Groups Route to get recommended groups. This route will return groups which are similar to the groups in the request body.
|
707
779
|
# @param tr_dataset [String] The dataset id to use for the request
|
708
780
|
# @param reccomend_group_chunks_request [ReccomendGroupChunksRequest] JSON request payload to get recommendations of chunks similar to the chunks in the request
|
709
781
|
# @param [Hash] opts the optional parameters
|
@@ -713,6 +785,8 @@ module TrieveRubyClient
|
|
713
785
|
data
|
714
786
|
end
|
715
787
|
|
788
|
+
# Get Recommended Groups
|
789
|
+
# Get Recommended Groups Route to get recommended groups. This route will return groups which are similar to the groups in the request body.
|
716
790
|
# @param tr_dataset [String] The dataset id to use for the request
|
717
791
|
# @param reccomend_group_chunks_request [ReccomendGroupChunksRequest] JSON request payload to get recommendations of chunks similar to the chunks in the request
|
718
792
|
# @param [Hash] opts the optional parameters
|
@@ -775,8 +849,8 @@ module TrieveRubyClient
|
|
775
849
|
return data, status_code, headers
|
776
850
|
end
|
777
851
|
|
778
|
-
#
|
779
|
-
#
|
852
|
+
# Get Groups for Dataset
|
853
|
+
# Get Groups for Dataset Fetch the groups which belong to a dataset specified by its id.
|
780
854
|
# @param tr_dataset [String] The dataset id to use for the request
|
781
855
|
# @param dataset_id [String] The id of the dataset to fetch groups for.
|
782
856
|
# @param page [Integer] The page of groups to fetch. Each page contains 10 groups. Support for custom page size is coming soon.
|
@@ -787,8 +861,8 @@ module TrieveRubyClient
|
|
787
861
|
data
|
788
862
|
end
|
789
863
|
|
790
|
-
#
|
791
|
-
#
|
864
|
+
# Get Groups for Dataset
|
865
|
+
# Get Groups for Dataset Fetch the groups which belong to a dataset specified by its id.
|
792
866
|
# @param tr_dataset [String] The dataset id to use for the request
|
793
867
|
# @param dataset_id [String] The id of the dataset to fetch groups for.
|
794
868
|
# @param page [Integer] The page of groups to fetch. Each page contains 10 groups. Support for custom page size is coming soon.
|
@@ -851,8 +925,8 @@ module TrieveRubyClient
|
|
851
925
|
return data, status_code, headers
|
852
926
|
end
|
853
927
|
|
854
|
-
#
|
855
|
-
#
|
928
|
+
# Remove Chunk from Group
|
929
|
+
# Remove Chunk from Group Route to remove a chunk from a group.
|
856
930
|
# @param tr_dataset [String] The dataset id to use for the request
|
857
931
|
# @param group_id [String] Id of the group to remove the bookmark'ed chunk from
|
858
932
|
# @param create_chunk_group_data [CreateChunkGroupData] JSON request payload to cretea a chunkGroup
|
@@ -863,8 +937,8 @@ module TrieveRubyClient
|
|
863
937
|
nil
|
864
938
|
end
|
865
939
|
|
866
|
-
#
|
867
|
-
#
|
940
|
+
# Remove Chunk from Group
|
941
|
+
# Remove Chunk from Group Route to remove a chunk from a group.
|
868
942
|
# @param tr_dataset [String] The dataset id to use for the request
|
869
943
|
# @param group_id [String] Id of the group to remove the bookmark'ed chunk from
|
870
944
|
# @param create_chunk_group_data [CreateChunkGroupData] JSON request payload to cretea a chunkGroup
|
@@ -932,8 +1006,8 @@ module TrieveRubyClient
|
|
932
1006
|
return data, status_code, headers
|
933
1007
|
end
|
934
1008
|
|
935
|
-
#
|
936
|
-
#
|
1009
|
+
# Search Over Groups
|
1010
|
+
# Search Over Groups This route allows you to get groups as results instead of chunks. Each group returned will have the matching chunks sorted by similarity within the group. This is useful for when you want to get groups of chunks which are similar to the search query. If choosing hybrid search, the results will be re-ranked using BAAI/bge-reranker-large. Compatible with semantic, fulltext, or hybrid search modes.
|
937
1011
|
# @param search_over_groups_data [SearchOverGroupsData] JSON request payload to semantically search over groups
|
938
1012
|
# @param [Hash] opts the optional parameters
|
939
1013
|
# @return [SearchOverGroupsResponseBody]
|
@@ -942,8 +1016,8 @@ module TrieveRubyClient
|
|
942
1016
|
data
|
943
1017
|
end
|
944
1018
|
|
945
|
-
#
|
946
|
-
#
|
1019
|
+
# Search Over Groups
|
1020
|
+
# Search Over Groups This route allows you to get groups as results instead of chunks. Each group returned will have the matching chunks sorted by similarity within the group. This is useful for when you want to get groups of chunks which are similar to the search query. If choosing hybrid search, the results will be re-ranked using BAAI/bge-reranker-large. Compatible with semantic, fulltext, or hybrid search modes.
|
947
1021
|
# @param search_over_groups_data [SearchOverGroupsData] JSON request payload to semantically search over groups
|
948
1022
|
# @param [Hash] opts the optional parameters
|
949
1023
|
# @return [Array<(SearchOverGroupsResponseBody, Integer, Hash)>] SearchOverGroupsResponseBody data, response status code and response headers
|
@@ -1000,8 +1074,8 @@ module TrieveRubyClient
|
|
1000
1074
|
return data, status_code, headers
|
1001
1075
|
end
|
1002
1076
|
|
1003
|
-
#
|
1004
|
-
#
|
1077
|
+
# Search Within Group
|
1078
|
+
# Search Within Group This route allows you to search only within a group. This is useful for when you only want search results to contain chunks which are members of a specific group. If choosing hybrid search, the results will be re-ranked using BAAI/bge-reranker-large.
|
1005
1079
|
# @param tr_dataset [String] The dataset id to use for the request
|
1006
1080
|
# @param search_within_group_data [SearchWithinGroupData] JSON request payload to semantically search a group
|
1007
1081
|
# @param [Hash] opts the optional parameters
|
@@ -1011,8 +1085,8 @@ module TrieveRubyClient
|
|
1011
1085
|
data
|
1012
1086
|
end
|
1013
1087
|
|
1014
|
-
#
|
1015
|
-
#
|
1088
|
+
# Search Within Group
|
1089
|
+
# Search Within Group This route allows you to search only within a group. This is useful for when you only want search results to contain chunks which are members of a specific group. If choosing hybrid search, the results will be re-ranked using BAAI/bge-reranker-large.
|
1016
1090
|
# @param tr_dataset [String] The dataset id to use for the request
|
1017
1091
|
# @param search_within_group_data [SearchWithinGroupData] JSON request payload to semantically search a group
|
1018
1092
|
# @param [Hash] opts the optional parameters
|
@@ -1075,8 +1149,8 @@ module TrieveRubyClient
|
|
1075
1149
|
return data, status_code, headers
|
1076
1150
|
end
|
1077
1151
|
|
1078
|
-
#
|
1079
|
-
#
|
1152
|
+
# Update Group
|
1153
|
+
# Update Group Update a chunk_group. If you try to change the tracking_id to one that already exists, this operation will fail.
|
1080
1154
|
# @param tr_dataset [String] The dataset id to use for the request
|
1081
1155
|
# @param update_chunk_group_data [UpdateChunkGroupData] JSON request payload to update a chunkGroup
|
1082
1156
|
# @param [Hash] opts the optional parameters
|
@@ -1086,8 +1160,8 @@ module TrieveRubyClient
|
|
1086
1160
|
nil
|
1087
1161
|
end
|
1088
1162
|
|
1089
|
-
#
|
1090
|
-
#
|
1163
|
+
# Update Group
|
1164
|
+
# Update Group Update a chunk_group. If you try to change the tracking_id to one that already exists, this operation will fail.
|
1091
1165
|
# @param tr_dataset [String] The dataset id to use for the request
|
1092
1166
|
# @param update_chunk_group_data [UpdateChunkGroupData] JSON request payload to update a chunkGroup
|
1093
1167
|
# @param [Hash] opts the optional parameters
|
@@ -1150,6 +1224,8 @@ module TrieveRubyClient
|
|
1150
1224
|
return data, status_code, headers
|
1151
1225
|
end
|
1152
1226
|
|
1227
|
+
# Update Group by Tracking ID
|
1228
|
+
# Update Group by Tracking ID Update a chunk_group with the given tracking id.
|
1153
1229
|
# @param tr_dataset [String] The dataset id to use for the request
|
1154
1230
|
# @param tracking_id [String] Tracking id of the chunk_group to update
|
1155
1231
|
# @param update_group_by_tracking_id_data [UpdateGroupByTrackingIDData] JSON request payload to update a chunkGroup
|
@@ -1160,6 +1236,8 @@ module TrieveRubyClient
|
|
1160
1236
|
nil
|
1161
1237
|
end
|
1162
1238
|
|
1239
|
+
# Update Group by Tracking ID
|
1240
|
+
# Update Group by Tracking ID Update a chunk_group with the given tracking id.
|
1163
1241
|
# @param tr_dataset [String] The dataset id to use for the request
|
1164
1242
|
# @param tracking_id [String] Tracking id of the chunk_group to update
|
1165
1243
|
# @param update_group_by_tracking_id_data [UpdateGroupByTrackingIDData] JSON request payload to update a chunkGroup
|
@@ -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.5.0
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -19,8 +19,8 @@ module TrieveRubyClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
#
|
23
|
-
#
|
22
|
+
# Create dataset
|
23
|
+
# Create dataset Create a new dataset. The auth'ed user must be an owner of the organization to create a dataset.
|
24
24
|
# @param tr_organization [String] The organization id to use for the request
|
25
25
|
# @param create_dataset_request [CreateDatasetRequest] JSON request payload to create a new dataset
|
26
26
|
# @param [Hash] opts the optional parameters
|
@@ -30,8 +30,8 @@ module TrieveRubyClient
|
|
30
30
|
data
|
31
31
|
end
|
32
32
|
|
33
|
-
#
|
34
|
-
#
|
33
|
+
# Create dataset
|
34
|
+
# Create dataset Create a new dataset. The auth'ed user must be an owner of the organization to create a dataset.
|
35
35
|
# @param tr_organization [String] The organization id to use for the request
|
36
36
|
# @param create_dataset_request [CreateDatasetRequest] JSON request payload to create a new dataset
|
37
37
|
# @param [Hash] opts the optional parameters
|
@@ -94,8 +94,8 @@ module TrieveRubyClient
|
|
94
94
|
return data, status_code, headers
|
95
95
|
end
|
96
96
|
|
97
|
-
#
|
98
|
-
#
|
97
|
+
# Delete Dataset
|
98
|
+
# Delete Dataset Delete a dataset. The auth'ed user must be an owner of the organization to delete a dataset.
|
99
99
|
# @param tr_organization [String] The organization id to use for the request
|
100
100
|
# @param delete_dataset_request [DeleteDatasetRequest] JSON request payload to delete a dataset
|
101
101
|
# @param [Hash] opts the optional parameters
|
@@ -105,8 +105,8 @@ module TrieveRubyClient
|
|
105
105
|
nil
|
106
106
|
end
|
107
107
|
|
108
|
-
#
|
109
|
-
#
|
108
|
+
# Delete Dataset
|
109
|
+
# Delete Dataset Delete a dataset. The auth'ed user must be an owner of the organization to delete a dataset.
|
110
110
|
# @param tr_organization [String] The organization id to use for the request
|
111
111
|
# @param delete_dataset_request [DeleteDatasetRequest] JSON request payload to delete a dataset
|
112
112
|
# @param [Hash] opts the optional parameters
|
@@ -169,8 +169,8 @@ module TrieveRubyClient
|
|
169
169
|
return data, status_code, headers
|
170
170
|
end
|
171
171
|
|
172
|
-
#
|
173
|
-
#
|
172
|
+
# Get Client Configuration
|
173
|
+
# Get Client Configuration Get the client configuration for a dataset. Will use the TR-D
|
174
174
|
# @param tr_dataset [String] The dataset id to use for the request
|
175
175
|
# @param [Hash] opts the optional parameters
|
176
176
|
# @return [ClientDatasetConfiguration]
|
@@ -179,8 +179,8 @@ module TrieveRubyClient
|
|
179
179
|
data
|
180
180
|
end
|
181
181
|
|
182
|
-
#
|
183
|
-
#
|
182
|
+
# Get Client Configuration
|
183
|
+
# Get Client Configuration Get the client configuration for a dataset. Will use the TR-D
|
184
184
|
# @param tr_dataset [String] The dataset id to use for the request
|
185
185
|
# @param [Hash] opts the optional parameters
|
186
186
|
# @return [Array<(ClientDatasetConfiguration, Integer, Hash)>] ClientDatasetConfiguration data, response status code and response headers
|
@@ -233,8 +233,8 @@ module TrieveRubyClient
|
|
233
233
|
return data, status_code, headers
|
234
234
|
end
|
235
235
|
|
236
|
-
#
|
237
|
-
#
|
236
|
+
# Get Dataset
|
237
|
+
# Get Dataset Get a dataset by id. The auth'ed user must be an admin or owner of the organization to get a dataset.
|
238
238
|
# @param tr_organization [String] The organization id to use for the request
|
239
239
|
# @param tr_dataset [String] The dataset id to use for the request
|
240
240
|
# @param dataset_id [String] The id of the dataset you want to retrieve.
|
@@ -245,8 +245,8 @@ module TrieveRubyClient
|
|
245
245
|
data
|
246
246
|
end
|
247
247
|
|
248
|
-
#
|
249
|
-
#
|
248
|
+
# Get Dataset
|
249
|
+
# Get Dataset Get a dataset by id. The auth'ed user must be an admin or owner of the organization to get a dataset.
|
250
250
|
# @param tr_organization [String] The organization id to use for the request
|
251
251
|
# @param tr_dataset [String] The dataset id to use for the request
|
252
252
|
# @param dataset_id [String] The id of the dataset you want to retrieve.
|
@@ -310,8 +310,8 @@ module TrieveRubyClient
|
|
310
310
|
return data, status_code, headers
|
311
311
|
end
|
312
312
|
|
313
|
-
#
|
314
|
-
#
|
313
|
+
# Get Datasets from Organization
|
314
|
+
# Get Datasets from Organization Get all datasets for an organization. The auth'ed user must be an admin or owner of the organization to get its datasets.
|
315
315
|
# @param tr_organization [String] The organization id to use for the request
|
316
316
|
# @param organization_id [String] id of the organization you want to retrieve datasets for
|
317
317
|
# @param [Hash] opts the optional parameters
|
@@ -321,8 +321,8 @@ module TrieveRubyClient
|
|
321
321
|
data
|
322
322
|
end
|
323
323
|
|
324
|
-
#
|
325
|
-
#
|
324
|
+
# Get Datasets from Organization
|
325
|
+
# Get Datasets from Organization Get all datasets for an organization. The auth'ed user must be an admin or owner of the organization to get its datasets.
|
326
326
|
# @param tr_organization [String] The organization id to use for the request
|
327
327
|
# @param organization_id [String] id of the organization you want to retrieve datasets for
|
328
328
|
# @param [Hash] opts the optional parameters
|
@@ -380,8 +380,8 @@ module TrieveRubyClient
|
|
380
380
|
return data, status_code, headers
|
381
381
|
end
|
382
382
|
|
383
|
-
#
|
384
|
-
#
|
383
|
+
# Update Dataset
|
384
|
+
# Update Dataset Update a dataset. The auth'ed user must be an owner of the organization to update a dataset.
|
385
385
|
# @param tr_organization [String] The organization id to use for the request
|
386
386
|
# @param update_dataset_request [UpdateDatasetRequest] JSON request payload to update a dataset
|
387
387
|
# @param [Hash] opts the optional parameters
|
@@ -391,8 +391,8 @@ module TrieveRubyClient
|
|
391
391
|
data
|
392
392
|
end
|
393
393
|
|
394
|
-
#
|
395
|
-
#
|
394
|
+
# Update Dataset
|
395
|
+
# Update Dataset Update a dataset. The auth'ed user must be an owner of the organization to update a dataset.
|
396
396
|
# @param tr_organization [String] The organization id to use for the request
|
397
397
|
# @param update_dataset_request [UpdateDatasetRequest] JSON request payload to update a dataset
|
398
398
|
# @param [Hash] opts the optional parameters
|