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
data/spec/api/auth_api_spec.rb
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
|
-
#
|
2
|
+
#Trieve API
|
3
3
|
|
4
|
-
#Trieve
|
5
|
-
|
6
|
-
The version of the OpenAPI document: 0.3.3
|
4
|
+
#Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
|
7
5
|
|
6
|
+
The version of the OpenAPI document: 0.5.0
|
7
|
+
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
10
10
|
|
@@ -13,13 +13,13 @@ Generator version: 7.4.0
|
|
13
13
|
require 'spec_helper'
|
14
14
|
require 'json'
|
15
15
|
|
16
|
-
# Unit tests for
|
16
|
+
# Unit tests for TrieveRubyClient::AuthApi
|
17
17
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
18
|
# Please update as you see appropriate
|
19
19
|
describe 'AuthApi' do
|
20
20
|
before do
|
21
21
|
# run before each test
|
22
|
-
@api_instance =
|
22
|
+
@api_instance = TrieveRubyClient::AuthApi.new
|
23
23
|
end
|
24
24
|
|
25
25
|
after do
|
@@ -28,13 +28,13 @@ describe 'AuthApi' do
|
|
28
28
|
|
29
29
|
describe 'test an instance of AuthApi' do
|
30
30
|
it 'should create an instance of AuthApi' do
|
31
|
-
expect(@api_instance).to be_instance_of(
|
31
|
+
expect(@api_instance).to be_instance_of(TrieveRubyClient::AuthApi)
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
35
|
# unit tests for callback
|
36
|
-
#
|
37
|
-
#
|
36
|
+
# OpenID Connect callback
|
37
|
+
# OpenID Connect callback This is the callback route for the OAuth provider, it should not be called directly. Redirects to browser with set-cookie header.
|
38
38
|
# @param [Hash] opts the optional parameters
|
39
39
|
# @return [SlimUser]
|
40
40
|
describe 'callback test' do
|
@@ -44,8 +44,8 @@ describe 'AuthApi' do
|
|
44
44
|
end
|
45
45
|
|
46
46
|
# unit tests for get_me
|
47
|
-
#
|
48
|
-
#
|
47
|
+
# Get Me
|
48
|
+
# Get Me Get the user corresponding to your current auth credentials.
|
49
49
|
# @param [Hash] opts the optional parameters
|
50
50
|
# @return [SlimUser]
|
51
51
|
describe 'get_me test' do
|
@@ -55,12 +55,10 @@ describe 'AuthApi' do
|
|
55
55
|
end
|
56
56
|
|
57
57
|
# unit tests for login
|
58
|
-
#
|
59
|
-
#
|
58
|
+
# Login
|
59
|
+
# Login This will redirect you to the OAuth provider for authentication with email/pass, SSO, Google, Github, etc.
|
60
|
+
# @param content Query parameters for login to be included as kv pairs after ? on the request URL.
|
60
61
|
# @param [Hash] opts the optional parameters
|
61
|
-
# @option opts [String] :inv_code Code sent via email as a result of successful call to send_invitation
|
62
|
-
# @option opts [String] :organization_id ID of organization to authenticate into
|
63
|
-
# @option opts [String] :redirect_uri URL to redirect to after successful login
|
64
62
|
# @return [nil]
|
65
63
|
describe 'login test' do
|
66
64
|
it 'should work' do
|
@@ -69,8 +67,8 @@ describe 'AuthApi' do
|
|
69
67
|
end
|
70
68
|
|
71
69
|
# unit tests for logout
|
72
|
-
#
|
73
|
-
#
|
70
|
+
# Logout
|
71
|
+
# Logout Invalidate your current auth credential stored typically stored in a cookie. This does not invalidate your API key.
|
74
72
|
# @param [Hash] opts the optional parameters
|
75
73
|
# @return [nil]
|
76
74
|
describe 'logout test' do
|
data/spec/api/chunk_api_spec.rb
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
|
-
#
|
2
|
+
#Trieve API
|
3
3
|
|
4
|
-
#Trieve
|
5
|
-
|
6
|
-
The version of the OpenAPI document: 0.3.3
|
4
|
+
#Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
|
7
5
|
|
6
|
+
The version of the OpenAPI document: 0.5.0
|
7
|
+
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
10
10
|
|
@@ -13,13 +13,13 @@ Generator version: 7.4.0
|
|
13
13
|
require 'spec_helper'
|
14
14
|
require 'json'
|
15
15
|
|
16
|
-
# Unit tests for
|
16
|
+
# Unit tests for TrieveRubyClient::ChunkApi
|
17
17
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
18
|
# Please update as you see appropriate
|
19
19
|
describe 'ChunkApi' do
|
20
20
|
before do
|
21
21
|
# run before each test
|
22
|
-
@api_instance =
|
22
|
+
@api_instance = TrieveRubyClient::ChunkApi.new
|
23
23
|
end
|
24
24
|
|
25
25
|
after do
|
@@ -28,26 +28,13 @@ describe 'ChunkApi' do
|
|
28
28
|
|
29
29
|
describe 'test an instance of ChunkApi' do
|
30
30
|
it 'should create an instance of ChunkApi' do
|
31
|
-
expect(@api_instance).to be_instance_of(
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
|
-
# unit tests for bulk_create_chunk
|
36
|
-
# bulk_create_chunk
|
37
|
-
# bulk_create_chunk Create a new chunk from an array of chunks. If the chunk has the same tracking_id as an existing chunk, the request will fail. Once a chunk is created, it can be searched for using the search endpoint.
|
38
|
-
# @param tr_dataset The dataset id to use for the request
|
39
|
-
# @param create_chunk_data JSON request payload to create a new chunk (chunk)
|
40
|
-
# @param [Hash] opts the optional parameters
|
41
|
-
# @return [ReturnQueuedChunk]
|
42
|
-
describe 'bulk_create_chunk test' do
|
43
|
-
it 'should work' do
|
44
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
31
|
+
expect(@api_instance).to be_instance_of(TrieveRubyClient::ChunkApi)
|
45
32
|
end
|
46
33
|
end
|
47
34
|
|
48
35
|
# unit tests for create_chunk
|
49
|
-
#
|
50
|
-
#
|
36
|
+
# Create or Upsert Chunk or Chunks
|
37
|
+
# Create or Upsert Chunk or Chunks Create a new chunk. If the chunk has the same tracking_id as an existing chunk, the request will fail. Once a chunk is created, it can be searched for using the search endpoint.
|
51
38
|
# @param tr_dataset The dataset id to use for the request
|
52
39
|
# @param create_chunk_data JSON request payload to create a new chunk (chunk)
|
53
40
|
# @param [Hash] opts the optional parameters
|
@@ -59,8 +46,8 @@ describe 'ChunkApi' do
|
|
59
46
|
end
|
60
47
|
|
61
48
|
# unit tests for create_suggested_queries_handler
|
62
|
-
#
|
63
|
-
#
|
49
|
+
# Generate suggested queries
|
50
|
+
# Generate suggested queries This endpoint will generate 3 suggested queries based off the query provided in the request body and return them as a JSON object.
|
64
51
|
# @param tr_dataset The dataset id to use for the request
|
65
52
|
# @param suggested_queries_request JSON request payload to get alternative suggested queries
|
66
53
|
# @param [Hash] opts the optional parameters
|
@@ -72,10 +59,10 @@ describe 'ChunkApi' do
|
|
72
59
|
end
|
73
60
|
|
74
61
|
# unit tests for delete_chunk
|
75
|
-
#
|
76
|
-
#
|
62
|
+
# Delete Chunk
|
63
|
+
# Delete Chunk Delete a chunk by its id. If deleting a root chunk which has a collision, the most recently created collision will become a new root chunk.
|
77
64
|
# @param tr_dataset The dataset id to use for the request
|
78
|
-
# @param chunk_id
|
65
|
+
# @param chunk_id Id of the chunk you want to fetch.
|
79
66
|
# @param [Hash] opts the optional parameters
|
80
67
|
# @return [nil]
|
81
68
|
describe 'delete_chunk test' do
|
@@ -85,8 +72,8 @@ describe 'ChunkApi' do
|
|
85
72
|
end
|
86
73
|
|
87
74
|
# unit tests for delete_chunk_by_tracking_id
|
88
|
-
#
|
89
|
-
#
|
75
|
+
# Delete Chunk By Tracking Id
|
76
|
+
# Delete Chunk By Tracking Id Delete a chunk by tracking_id. This is useful for when you are coordinating with an external system and want to use the tracking_id to identify the chunk. If deleting a root chunk which has a collision, the most recently created collision will become a new root chunk.
|
90
77
|
# @param tr_dataset The dataset id to use for the request
|
91
78
|
# @param tracking_id tracking_id of the chunk you want to delete
|
92
79
|
# @param [Hash] opts the optional parameters
|
@@ -98,8 +85,8 @@ describe 'ChunkApi' do
|
|
98
85
|
end
|
99
86
|
|
100
87
|
# unit tests for generate_off_chunks
|
101
|
-
#
|
102
|
-
#
|
88
|
+
# RAG on Specified Chunks
|
89
|
+
# RAG on Specified Chunks This endpoint exists as an alternative to the topic+message concept where our API handles chat memory. With this endpoint, the user is responsible for providing the context window and the prompt. See more in the \"search before generate\" page at docs.trieve.ai.
|
103
90
|
# @param tr_dataset The dataset id to use for the request
|
104
91
|
# @param generate_chunks_request JSON request payload to perform RAG on some chunks (chunks)
|
105
92
|
# @param [Hash] opts the optional parameters
|
@@ -111,8 +98,8 @@ describe 'ChunkApi' do
|
|
111
98
|
end
|
112
99
|
|
113
100
|
# unit tests for get_chunk_by_id
|
114
|
-
#
|
115
|
-
#
|
101
|
+
# Get Chunk By Id
|
102
|
+
# Get Chunk By Id Get a singular chunk by id.
|
116
103
|
# @param tr_dataset The dataset id to use for the request
|
117
104
|
# @param chunk_id Id of the chunk you want to fetch.
|
118
105
|
# @param [Hash] opts the optional parameters
|
@@ -124,8 +111,8 @@ describe 'ChunkApi' do
|
|
124
111
|
end
|
125
112
|
|
126
113
|
# unit tests for get_chunk_by_tracking_id
|
127
|
-
#
|
128
|
-
#
|
114
|
+
# Get Chunk By Tracking Id
|
115
|
+
# Get Chunk By Tracking Id Get a singular chunk by tracking_id. This is useful for when you are coordinating with an external system and want to use your own id as the primary reference for a chunk.
|
129
116
|
# @param tr_dataset The dataset id to use for the request
|
130
117
|
# @param tracking_id tracking_id of the chunk you want to fetch
|
131
118
|
# @param [Hash] opts the optional parameters
|
@@ -137,8 +124,8 @@ describe 'ChunkApi' do
|
|
137
124
|
end
|
138
125
|
|
139
126
|
# unit tests for get_recommended_chunks
|
140
|
-
#
|
141
|
-
#
|
127
|
+
# Get Recommended Chunks
|
128
|
+
# Get Recommended Chunks Get recommendations of chunks similar to the chunks in the request. Think about this as a feature similar to the \"add to playlist\" recommendation feature on Spotify. This request pairs especially well with our groups endpoint.
|
142
129
|
# @param tr_dataset The dataset id to use for the request
|
143
130
|
# @param recommend_chunks_request JSON request payload to get recommendations of chunks similar to the chunks in the request
|
144
131
|
# @param [Hash] opts the optional parameters
|
@@ -150,8 +137,8 @@ describe 'ChunkApi' do
|
|
150
137
|
end
|
151
138
|
|
152
139
|
# unit tests for search_chunk
|
153
|
-
#
|
154
|
-
#
|
140
|
+
# Search
|
141
|
+
# Search This route provides the primary search functionality for the API. It can be used to search for chunks by semantic similarity, full-text similarity, or a combination of both. Results' `chunk_html` values will be modified with `<b>` tags for sub-sentence highlighting.
|
155
142
|
# @param tr_dataset The dataset id to use for the request
|
156
143
|
# @param search_chunk_data JSON request payload to semantically search for chunks (chunks)
|
157
144
|
# @param [Hash] opts the optional parameters
|
@@ -163,8 +150,8 @@ describe 'ChunkApi' do
|
|
163
150
|
end
|
164
151
|
|
165
152
|
# unit tests for update_chunk
|
166
|
-
#
|
167
|
-
#
|
153
|
+
# Update Chunk
|
154
|
+
# Update Chunk Update a chunk. If you try to change the tracking_id of the chunk to have the same tracking_id as an existing chunk, the request will fail.
|
168
155
|
# @param tr_dataset The dataset id to use for the request
|
169
156
|
# @param update_chunk_data JSON request payload to update a chunk (chunk)
|
170
157
|
# @param [Hash] opts the optional parameters
|
@@ -176,8 +163,8 @@ describe 'ChunkApi' do
|
|
176
163
|
end
|
177
164
|
|
178
165
|
# unit tests for update_chunk_by_tracking_id
|
179
|
-
#
|
180
|
-
#
|
166
|
+
# Update Chunk By Tracking Id
|
167
|
+
# Update Chunk By Tracking Id Update a chunk by tracking_id. This is useful for when you are coordinating with an external system and want to use the tracking_id to identify the chunk.
|
181
168
|
# @param tr_dataset The dataset id to use for the request
|
182
169
|
# @param update_chunk_by_tracking_id_data JSON request payload to update a chunk by tracking_id (chunks)
|
183
170
|
# @param [Hash] opts the optional parameters
|
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
|
-
#
|
2
|
+
#Trieve API
|
3
3
|
|
4
|
-
#Trieve
|
5
|
-
|
6
|
-
The version of the OpenAPI document: 0.3.3
|
4
|
+
#Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
|
7
5
|
|
6
|
+
The version of the OpenAPI document: 0.5.0
|
7
|
+
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
10
10
|
|
@@ -13,13 +13,13 @@ Generator version: 7.4.0
|
|
13
13
|
require 'spec_helper'
|
14
14
|
require 'json'
|
15
15
|
|
16
|
-
# Unit tests for
|
16
|
+
# Unit tests for TrieveRubyClient::ChunkGroupApi
|
17
17
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
18
|
# Please update as you see appropriate
|
19
19
|
describe 'ChunkGroupApi' do
|
20
20
|
before do
|
21
21
|
# run before each test
|
22
|
-
@api_instance =
|
22
|
+
@api_instance = TrieveRubyClient::ChunkGroupApi.new
|
23
23
|
end
|
24
24
|
|
25
25
|
after do
|
@@ -28,13 +28,13 @@ describe 'ChunkGroupApi' do
|
|
28
28
|
|
29
29
|
describe 'test an instance of ChunkGroupApi' do
|
30
30
|
it 'should create an instance of ChunkGroupApi' do
|
31
|
-
expect(@api_instance).to be_instance_of(
|
31
|
+
expect(@api_instance).to be_instance_of(TrieveRubyClient::ChunkGroupApi)
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
35
|
# unit tests for add_chunk_to_group
|
36
|
-
#
|
37
|
-
#
|
36
|
+
# Add Chunk to Group
|
37
|
+
# Add Chunk to Group Route to add a chunk to a group.
|
38
38
|
# @param tr_dataset The dataset id to use for the request
|
39
39
|
# @param group_id Id of the group to add the chunk to as a bookmark
|
40
40
|
# @param add_chunk_to_group_data JSON request payload to add a chunk to a group (bookmark it)
|
@@ -47,8 +47,8 @@ describe 'ChunkGroupApi' do
|
|
47
47
|
end
|
48
48
|
|
49
49
|
# unit tests for add_chunk_to_group_by_tracking_id
|
50
|
-
#
|
51
|
-
#
|
50
|
+
# Add Chunk to Group by Tracking ID
|
51
|
+
# Add Chunk to Group by Tracking ID Route to add a chunk to a group by tracking id.
|
52
52
|
# @param tr_dataset The dataset id to use for the request
|
53
53
|
# @param tracking_id Id of the group to add the chunk to as a bookmark
|
54
54
|
# @param add_chunk_to_group_data JSON request payload to add a chunk to a group (bookmark it)
|
@@ -61,8 +61,8 @@ describe 'ChunkGroupApi' do
|
|
61
61
|
end
|
62
62
|
|
63
63
|
# unit tests for create_chunk_group
|
64
|
-
#
|
65
|
-
#
|
64
|
+
# Create Chunk Group
|
65
|
+
# 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.
|
66
66
|
# @param tr_dataset The dataset id to use for the request
|
67
67
|
# @param create_chunk_group_data JSON request payload to cretea a chunkGroup
|
68
68
|
# @param [Hash] opts the optional parameters
|
@@ -74,10 +74,10 @@ describe 'ChunkGroupApi' do
|
|
74
74
|
end
|
75
75
|
|
76
76
|
# unit tests for delete_chunk_group
|
77
|
-
#
|
78
|
-
#
|
77
|
+
# Delete Group
|
78
|
+
# 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.
|
79
79
|
# @param tr_dataset The dataset id to use for the request
|
80
|
-
# @param group_id Id of the
|
80
|
+
# @param group_id Id of the group you want to fetch.
|
81
81
|
# @param delete_chunks Delete the chunks within the group
|
82
82
|
# @param [Hash] opts the optional parameters
|
83
83
|
# @return [nil]
|
@@ -88,6 +88,8 @@ describe 'ChunkGroupApi' do
|
|
88
88
|
end
|
89
89
|
|
90
90
|
# unit tests for delete_group_by_tracking_id
|
91
|
+
# Delete Group by Tracking ID
|
92
|
+
# Delete Group by Tracking ID Delete a chunk_group with the given tracking id.
|
91
93
|
# @param tr_dataset The dataset id to use for the request
|
92
94
|
# @param tracking_id Tracking id of the chunk_group to delete
|
93
95
|
# @param [Hash] opts the optional parameters
|
@@ -98,11 +100,24 @@ describe 'ChunkGroupApi' do
|
|
98
100
|
end
|
99
101
|
end
|
100
102
|
|
103
|
+
# unit tests for get_chunk_group
|
104
|
+
# Get Group
|
105
|
+
# Get Group Fetch the group with the given id. get_group
|
106
|
+
# @param tr_dataset The dataset id to use for the request
|
107
|
+
# @param group_id Id of the group you want to fetch.
|
108
|
+
# @param [Hash] opts the optional parameters
|
109
|
+
# @return [ChunkGroup]
|
110
|
+
describe 'get_chunk_group test' do
|
111
|
+
it 'should work' do
|
112
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
113
|
+
end
|
114
|
+
end
|
115
|
+
|
101
116
|
# unit tests for get_chunks_in_group
|
102
|
-
#
|
103
|
-
#
|
117
|
+
# Get Chunks in Group
|
118
|
+
# 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.
|
104
119
|
# @param tr_dataset The dataset id to use for the request
|
105
|
-
# @param group_id
|
120
|
+
# @param group_id Id of the group you want to fetch.
|
106
121
|
# @param page The page of chunks to get from the group
|
107
122
|
# @param [Hash] opts the optional parameters
|
108
123
|
# @return [BookmarkData]
|
@@ -113,8 +128,8 @@ describe 'ChunkGroupApi' do
|
|
113
128
|
end
|
114
129
|
|
115
130
|
# unit tests for get_chunks_in_group_by_tracking_id
|
116
|
-
#
|
117
|
-
#
|
131
|
+
# Get Chunks in Group by Tracking ID
|
132
|
+
# 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.
|
118
133
|
# @param tr_dataset The dataset id to use for the request
|
119
134
|
# @param group_tracking_id The id of the group to get the chunks from
|
120
135
|
# @param page The page of chunks to get from the group
|
@@ -127,8 +142,8 @@ describe 'ChunkGroupApi' do
|
|
127
142
|
end
|
128
143
|
|
129
144
|
# unit tests for get_group_by_tracking_id
|
130
|
-
#
|
131
|
-
# get_group_by_tracking_id
|
145
|
+
# Get Group by Tracking ID
|
146
|
+
# Get Group by Tracking ID Fetch the group with the given tracking id. get_group_by_tracking_id
|
132
147
|
# @param tr_dataset The dataset id to use for the request
|
133
148
|
# @param tracking_id The tracking id of the group to fetch.
|
134
149
|
# @param [Hash] opts the optional parameters
|
@@ -140,6 +155,8 @@ describe 'ChunkGroupApi' do
|
|
140
155
|
end
|
141
156
|
|
142
157
|
# unit tests for get_groups_chunk_is_in
|
158
|
+
# Get Groups for Chunks
|
159
|
+
# Get Groups for Chunks Route to get the groups that a chunk is in.
|
143
160
|
# @param tr_dataset The dataset id to use for the request
|
144
161
|
# @param get_groups_for_chunks_data JSON request payload to get the groups that a chunk is in
|
145
162
|
# @param [Hash] opts the optional parameters
|
@@ -151,6 +168,8 @@ describe 'ChunkGroupApi' do
|
|
151
168
|
end
|
152
169
|
|
153
170
|
# unit tests for get_recommended_groups
|
171
|
+
# Get Recommended Groups
|
172
|
+
# Get Recommended Groups Route to get recommended groups. This route will return groups which are similar to the groups in the request body.
|
154
173
|
# @param tr_dataset The dataset id to use for the request
|
155
174
|
# @param reccomend_group_chunks_request JSON request payload to get recommendations of chunks similar to the chunks in the request
|
156
175
|
# @param [Hash] opts the optional parameters
|
@@ -162,8 +181,8 @@ describe 'ChunkGroupApi' do
|
|
162
181
|
end
|
163
182
|
|
164
183
|
# unit tests for get_specific_dataset_chunk_groups
|
165
|
-
#
|
166
|
-
#
|
184
|
+
# Get Groups for Dataset
|
185
|
+
# Get Groups for Dataset Fetch the groups which belong to a dataset specified by its id.
|
167
186
|
# @param tr_dataset The dataset id to use for the request
|
168
187
|
# @param dataset_id The id of the dataset to fetch groups for.
|
169
188
|
# @param page The page of groups to fetch. Each page contains 10 groups. Support for custom page size is coming soon.
|
@@ -176,8 +195,8 @@ describe 'ChunkGroupApi' do
|
|
176
195
|
end
|
177
196
|
|
178
197
|
# unit tests for remove_chunk_from_group
|
179
|
-
#
|
180
|
-
#
|
198
|
+
# Remove Chunk from Group
|
199
|
+
# Remove Chunk from Group Route to remove a chunk from a group.
|
181
200
|
# @param tr_dataset The dataset id to use for the request
|
182
201
|
# @param group_id Id of the group to remove the bookmark'ed chunk from
|
183
202
|
# @param create_chunk_group_data JSON request payload to cretea a chunkGroup
|
@@ -190,8 +209,8 @@ describe 'ChunkGroupApi' do
|
|
190
209
|
end
|
191
210
|
|
192
211
|
# unit tests for search_over_groups
|
193
|
-
#
|
194
|
-
#
|
212
|
+
# Search Over Groups
|
213
|
+
# 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.
|
195
214
|
# @param search_over_groups_data JSON request payload to semantically search over groups
|
196
215
|
# @param [Hash] opts the optional parameters
|
197
216
|
# @return [SearchOverGroupsResponseBody]
|
@@ -202,8 +221,8 @@ describe 'ChunkGroupApi' do
|
|
202
221
|
end
|
203
222
|
|
204
223
|
# unit tests for search_within_group
|
205
|
-
#
|
206
|
-
#
|
224
|
+
# Search Within Group
|
225
|
+
# 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.
|
207
226
|
# @param tr_dataset The dataset id to use for the request
|
208
227
|
# @param search_within_group_data JSON request payload to semantically search a group
|
209
228
|
# @param [Hash] opts the optional parameters
|
@@ -215,8 +234,8 @@ describe 'ChunkGroupApi' do
|
|
215
234
|
end
|
216
235
|
|
217
236
|
# unit tests for update_chunk_group
|
218
|
-
#
|
219
|
-
#
|
237
|
+
# Update Group
|
238
|
+
# Update Group Update a chunk_group. If you try to change the tracking_id to one that already exists, this operation will fail.
|
220
239
|
# @param tr_dataset The dataset id to use for the request
|
221
240
|
# @param update_chunk_group_data JSON request payload to update a chunkGroup
|
222
241
|
# @param [Hash] opts the optional parameters
|
@@ -228,6 +247,8 @@ describe 'ChunkGroupApi' do
|
|
228
247
|
end
|
229
248
|
|
230
249
|
# unit tests for update_group_by_tracking_id
|
250
|
+
# Update Group by Tracking ID
|
251
|
+
# Update Group by Tracking ID Update a chunk_group with the given tracking id.
|
231
252
|
# @param tr_dataset The dataset id to use for the request
|
232
253
|
# @param tracking_id Tracking id of the chunk_group to update
|
233
254
|
# @param update_group_by_tracking_id_data JSON request payload to update a chunkGroup
|
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
|
-
#
|
2
|
+
#Trieve API
|
3
3
|
|
4
|
-
#Trieve
|
5
|
-
|
6
|
-
The version of the OpenAPI document: 0.3.3
|
4
|
+
#Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
|
7
5
|
|
6
|
+
The version of the OpenAPI document: 0.5.0
|
7
|
+
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
10
10
|
|
@@ -13,13 +13,13 @@ Generator version: 7.4.0
|
|
13
13
|
require 'spec_helper'
|
14
14
|
require 'json'
|
15
15
|
|
16
|
-
# Unit tests for
|
16
|
+
# Unit tests for TrieveRubyClient::DatasetApi
|
17
17
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
18
|
# Please update as you see appropriate
|
19
19
|
describe 'DatasetApi' do
|
20
20
|
before do
|
21
21
|
# run before each test
|
22
|
-
@api_instance =
|
22
|
+
@api_instance = TrieveRubyClient::DatasetApi.new
|
23
23
|
end
|
24
24
|
|
25
25
|
after do
|
@@ -28,13 +28,13 @@ describe 'DatasetApi' do
|
|
28
28
|
|
29
29
|
describe 'test an instance of DatasetApi' do
|
30
30
|
it 'should create an instance of DatasetApi' do
|
31
|
-
expect(@api_instance).to be_instance_of(
|
31
|
+
expect(@api_instance).to be_instance_of(TrieveRubyClient::DatasetApi)
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
35
|
# unit tests for create_dataset
|
36
|
-
#
|
37
|
-
#
|
36
|
+
# Create dataset
|
37
|
+
# Create dataset Create a new dataset. The auth'ed user must be an owner of the organization to create a dataset.
|
38
38
|
# @param tr_organization The organization id to use for the request
|
39
39
|
# @param create_dataset_request JSON request payload to create a new dataset
|
40
40
|
# @param [Hash] opts the optional parameters
|
@@ -46,8 +46,8 @@ describe 'DatasetApi' do
|
|
46
46
|
end
|
47
47
|
|
48
48
|
# unit tests for delete_dataset
|
49
|
-
#
|
50
|
-
#
|
49
|
+
# Delete Dataset
|
50
|
+
# Delete Dataset Delete a dataset. The auth'ed user must be an owner of the organization to delete a dataset.
|
51
51
|
# @param tr_organization The organization id to use for the request
|
52
52
|
# @param delete_dataset_request JSON request payload to delete a dataset
|
53
53
|
# @param [Hash] opts the optional parameters
|
@@ -59,8 +59,8 @@ describe 'DatasetApi' do
|
|
59
59
|
end
|
60
60
|
|
61
61
|
# unit tests for get_client_dataset_config
|
62
|
-
#
|
63
|
-
#
|
62
|
+
# Get Client Configuration
|
63
|
+
# Get Client Configuration Get the client configuration for a dataset. Will use the TR-D
|
64
64
|
# @param tr_dataset The dataset id to use for the request
|
65
65
|
# @param [Hash] opts the optional parameters
|
66
66
|
# @return [ClientDatasetConfiguration]
|
@@ -71,8 +71,8 @@ describe 'DatasetApi' do
|
|
71
71
|
end
|
72
72
|
|
73
73
|
# unit tests for get_dataset
|
74
|
-
#
|
75
|
-
#
|
74
|
+
# Get Dataset
|
75
|
+
# Get Dataset Get a dataset by id. The auth'ed user must be an admin or owner of the organization to get a dataset.
|
76
76
|
# @param tr_organization The organization id to use for the request
|
77
77
|
# @param tr_dataset The dataset id to use for the request
|
78
78
|
# @param dataset_id The id of the dataset you want to retrieve.
|
@@ -85,8 +85,8 @@ describe 'DatasetApi' do
|
|
85
85
|
end
|
86
86
|
|
87
87
|
# unit tests for get_datasets_from_organization
|
88
|
-
#
|
89
|
-
#
|
88
|
+
# Get Datasets from Organization
|
89
|
+
# 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.
|
90
90
|
# @param tr_organization The organization id to use for the request
|
91
91
|
# @param organization_id id of the organization you want to retrieve datasets for
|
92
92
|
# @param [Hash] opts the optional parameters
|
@@ -98,8 +98,8 @@ describe 'DatasetApi' do
|
|
98
98
|
end
|
99
99
|
|
100
100
|
# unit tests for update_dataset
|
101
|
-
#
|
102
|
-
#
|
101
|
+
# Update Dataset
|
102
|
+
# Update Dataset Update a dataset. The auth'ed user must be an owner of the organization to update a dataset.
|
103
103
|
# @param tr_organization The organization id to use for the request
|
104
104
|
# @param update_dataset_request JSON request payload to update a dataset
|
105
105
|
# @param [Hash] opts the optional parameters
|
data/spec/api/events_api_spec.rb
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
|
-
#
|
2
|
+
#Trieve API
|
3
3
|
|
4
|
-
#Trieve
|
5
|
-
|
6
|
-
The version of the OpenAPI document: 0.3.3
|
4
|
+
#Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
|
7
5
|
|
6
|
+
The version of the OpenAPI document: 0.5.0
|
7
|
+
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
10
10
|
|
@@ -13,13 +13,13 @@ Generator version: 7.4.0
|
|
13
13
|
require 'spec_helper'
|
14
14
|
require 'json'
|
15
15
|
|
16
|
-
# Unit tests for
|
16
|
+
# Unit tests for TrieveRubyClient::EventsApi
|
17
17
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
18
|
# Please update as you see appropriate
|
19
19
|
describe 'EventsApi' do
|
20
20
|
before do
|
21
21
|
# run before each test
|
22
|
-
@api_instance =
|
22
|
+
@api_instance = TrieveRubyClient::EventsApi.new
|
23
23
|
end
|
24
24
|
|
25
25
|
after do
|
@@ -28,15 +28,15 @@ describe 'EventsApi' do
|
|
28
28
|
|
29
29
|
describe 'test an instance of EventsApi' do
|
30
30
|
it 'should create an instance of EventsApi' do
|
31
|
-
expect(@api_instance).to be_instance_of(
|
31
|
+
expect(@api_instance).to be_instance_of(TrieveRubyClient::EventsApi)
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
35
|
# unit tests for get_events
|
36
|
-
#
|
37
|
-
#
|
36
|
+
# Get events for the dataset
|
37
|
+
# Get events for the dataset Get events for the auth'ed user. Currently, this is only for events belonging to the auth'ed user. Soon, we plan to associate events to datasets instead of users.
|
38
38
|
# @param tr_dataset The dataset id to use for the request
|
39
|
-
# @param
|
39
|
+
# @param get_events_data JSON request payload to get events for a dataset
|
40
40
|
# @param [Hash] opts the optional parameters
|
41
41
|
# @return [EventReturn]
|
42
42
|
describe 'get_events test' do
|