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
|
+
# Create Topic
|
23
|
+
# Create Topic Create a new chat topic. Topics are attached to a user and act as a coordinator for memory of gen-AI chat sessions. We are considering refactoring this resource of the API soon.
|
24
24
|
# @param tr_dataset [String] The dataset id to use for the request
|
25
25
|
# @param create_topic_data [CreateTopicData] JSON request payload to create chat topic
|
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 Topic
|
34
|
+
# Create Topic Create a new chat topic. Topics are attached to a user and act as a coordinator for memory of gen-AI chat sessions. We are considering refactoring this resource of the API soon.
|
35
35
|
# @param tr_dataset [String] The dataset id to use for the request
|
36
36
|
# @param create_topic_data [CreateTopicData] JSON request payload to create chat topic
|
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 Topic
|
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
100
|
# @param delete_topic_data [DeleteTopicData] JSON request payload to delete a chat topic
|
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 Topic
|
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
111
|
# @param delete_topic_data [DeleteTopicData] JSON request payload to delete a chat topic
|
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 All Topics for User
|
173
|
+
# Get All Topics for User Get all topics belonging to a the auth'ed user. Soon, we plan to allow specification of the user for this route and include pagination.
|
174
174
|
# @param user_id [String] The id of the user to get topics for
|
175
175
|
# @param tr_dataset [String] The dataset id to use for the request
|
176
176
|
# @param [Hash] opts the optional parameters
|
@@ -180,8 +180,8 @@ module TrieveRubyClient
|
|
180
180
|
data
|
181
181
|
end
|
182
182
|
|
183
|
-
#
|
184
|
-
#
|
183
|
+
# Get All Topics for User
|
184
|
+
# Get All Topics for User Get all topics belonging to a the auth'ed user. Soon, we plan to allow specification of the user for this route and include pagination.
|
185
185
|
# @param user_id [String] The id of the user to get topics for
|
186
186
|
# @param tr_dataset [String] The dataset id to use for the request
|
187
187
|
# @param [Hash] opts the optional parameters
|
@@ -239,8 +239,8 @@ module TrieveRubyClient
|
|
239
239
|
return data, status_code, headers
|
240
240
|
end
|
241
241
|
|
242
|
-
#
|
243
|
-
#
|
242
|
+
# Update Topic
|
243
|
+
# Update Topic Update an existing chat topic. Currently, only the name of the topic can be updated.
|
244
244
|
# @param tr_dataset [String] The dataset id to use for the request
|
245
245
|
# @param update_topic_data [UpdateTopicData] JSON request payload to update a chat topic
|
246
246
|
# @param [Hash] opts the optional parameters
|
@@ -250,8 +250,8 @@ module TrieveRubyClient
|
|
250
250
|
nil
|
251
251
|
end
|
252
252
|
|
253
|
-
#
|
254
|
-
#
|
253
|
+
# Update Topic
|
254
|
+
# Update Topic Update an existing chat topic. Currently, only the name of the topic can be updated.
|
255
255
|
# @param tr_dataset [String] The dataset id to use for the request
|
256
256
|
# @param update_topic_data [UpdateTopicData] JSON request payload to update a chat topic
|
257
257
|
# @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.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
|
+
# Delete User Api Key
|
23
|
+
# Delete User Api Key Delete an api key for the auth'ed user.
|
24
24
|
# @param delete_user_api_key_request [DeleteUserApiKeyRequest] JSON request payload to delete a user api key
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
26
|
# @return [Array<ApiKeyDTO>]
|
@@ -29,8 +29,8 @@ module TrieveRubyClient
|
|
29
29
|
data
|
30
30
|
end
|
31
31
|
|
32
|
-
#
|
33
|
-
#
|
32
|
+
# Delete User Api Key
|
33
|
+
# Delete User Api Key Delete an api key for the auth'ed user.
|
34
34
|
# @param delete_user_api_key_request [DeleteUserApiKeyRequest] JSON request payload to delete a user api key
|
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
|
@@ -87,8 +87,8 @@ module TrieveRubyClient
|
|
87
87
|
return data, status_code, headers
|
88
88
|
end
|
89
89
|
|
90
|
-
#
|
91
|
-
#
|
90
|
+
# Set User Api Key
|
91
|
+
# Set User Api Key Create a new api key for the auth'ed user. Successful response will contain the newly created api key. If a write role is assigned the api key will have permission level of the auth'ed user who calls this endpoint.
|
92
92
|
# @param set_user_api_key_request [SetUserApiKeyRequest] JSON request payload to create a new user api key
|
93
93
|
# @param [Hash] opts the optional parameters
|
94
94
|
# @return [SetUserApiKeyResponse]
|
@@ -97,8 +97,8 @@ module TrieveRubyClient
|
|
97
97
|
data
|
98
98
|
end
|
99
99
|
|
100
|
-
#
|
101
|
-
#
|
100
|
+
# Set User Api Key
|
101
|
+
# Set User Api Key Create a new api key for the auth'ed user. Successful response will contain the newly created api key. If a write role is assigned the api key will have permission level of the auth'ed user who calls this endpoint.
|
102
102
|
# @param set_user_api_key_request [SetUserApiKeyRequest] JSON request payload to create a new user api key
|
103
103
|
# @param [Hash] opts the optional parameters
|
104
104
|
# @return [Array<(SetUserApiKeyResponse, Integer, Hash)>] SetUserApiKeyResponse data, response status code and response headers
|
@@ -155,8 +155,8 @@ module TrieveRubyClient
|
|
155
155
|
return data, status_code, headers
|
156
156
|
end
|
157
157
|
|
158
|
-
#
|
159
|
-
#
|
158
|
+
# Update User
|
159
|
+
# Update User Update a user's information. If the user_id is not provided, the auth'ed user will be updated. If the user_id is provided, the auth'ed user must be an admin (1) or owner (2) of the organization.
|
160
160
|
# @param update_user_data [UpdateUserData] JSON request payload to update user information for the auth'ed user
|
161
161
|
# @param [Hash] opts the optional parameters
|
162
162
|
# @return [SlimUser]
|
@@ -165,8 +165,8 @@ module TrieveRubyClient
|
|
165
165
|
data
|
166
166
|
end
|
167
167
|
|
168
|
-
#
|
169
|
-
#
|
168
|
+
# Update User
|
169
|
+
# Update User Update a user's information. If the user_id is not provided, the auth'ed user will be updated. If the user_id is provided, the auth'ed user must be an admin (1) or owner (2) of the organization.
|
170
170
|
# @param update_user_data [UpdateUserData] JSON request payload to update user information for the auth'ed user
|
171
171
|
# @param [Hash] opts the optional parameters
|
172
172
|
# @return [Array<(SlimUser, Integer, Hash)>] SlimUser data, response status code and response headers
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -150,7 +150,7 @@ module TrieveRubyClient
|
|
150
150
|
|
151
151
|
def initialize
|
152
152
|
@scheme = 'http'
|
153
|
-
@host = 'localhost'
|
153
|
+
@host = 'localhost:8090'
|
154
154
|
@base_path = ''
|
155
155
|
@server_index = nil
|
156
156
|
@server_operation_index = {}
|
@@ -248,8 +248,12 @@ module TrieveRubyClient
|
|
248
248
|
def server_settings
|
249
249
|
[
|
250
250
|
{
|
251
|
-
url: "",
|
252
|
-
description: "
|
251
|
+
url: "http://localhost:8090",
|
252
|
+
description: "Local development server",
|
253
|
+
},
|
254
|
+
{
|
255
|
+
url: "https://api.trieve.ai",
|
256
|
+
description: "Production server",
|
253
257
|
}
|
254
258
|
]
|
255
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.5.0
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -15,7 +15,7 @@ require 'time'
|
|
15
15
|
|
16
16
|
module TrieveRubyClient
|
17
17
|
class AddChunkToGroupData
|
18
|
-
# Id of the chunk to make a member of the group.
|
18
|
+
# Id of the chunk to make a member of the group.
|
19
19
|
attr_accessor :chunk_id
|
20
20
|
|
21
21
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -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
|
@@ -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
|
@@ -14,31 +14,22 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module TrieveRubyClient
|
17
|
-
class
|
18
|
-
|
19
|
-
|
20
|
-
attr_accessor :current_period_end
|
21
|
-
|
22
|
-
attr_accessor :id
|
17
|
+
class AuthQuery
|
18
|
+
# Code sent via email as a result of successful call to send_invitation
|
19
|
+
attr_accessor :inv_code
|
23
20
|
|
21
|
+
# ID of organization to authenticate into
|
24
22
|
attr_accessor :organization_id
|
25
23
|
|
26
|
-
|
27
|
-
|
28
|
-
attr_accessor :stripe_id
|
29
|
-
|
30
|
-
attr_accessor :updated_at
|
24
|
+
# URL to redirect to after successful login
|
25
|
+
attr_accessor :redirect_uri
|
31
26
|
|
32
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
28
|
def self.attribute_map
|
34
29
|
{
|
35
|
-
:'
|
36
|
-
:'current_period_end' => :'current_period_end',
|
37
|
-
:'id' => :'id',
|
30
|
+
:'inv_code' => :'inv_code',
|
38
31
|
:'organization_id' => :'organization_id',
|
39
|
-
:'
|
40
|
-
:'stripe_id' => :'stripe_id',
|
41
|
-
:'updated_at' => :'updated_at'
|
32
|
+
:'redirect_uri' => :'redirect_uri'
|
42
33
|
}
|
43
34
|
end
|
44
35
|
|
@@ -50,20 +41,18 @@ module TrieveRubyClient
|
|
50
41
|
# Attribute type mapping.
|
51
42
|
def self.openapi_types
|
52
43
|
{
|
53
|
-
:'
|
54
|
-
:'current_period_end' => :'Time',
|
55
|
-
:'id' => :'String',
|
44
|
+
:'inv_code' => :'String',
|
56
45
|
:'organization_id' => :'String',
|
57
|
-
:'
|
58
|
-
:'stripe_id' => :'String',
|
59
|
-
:'updated_at' => :'Time'
|
46
|
+
:'redirect_uri' => :'String'
|
60
47
|
}
|
61
48
|
end
|
62
49
|
|
63
50
|
# List of attributes with nullable: true
|
64
51
|
def self.openapi_nullable
|
65
52
|
Set.new([
|
66
|
-
:'
|
53
|
+
:'inv_code',
|
54
|
+
:'organization_id',
|
55
|
+
:'redirect_uri'
|
67
56
|
])
|
68
57
|
end
|
69
58
|
|
@@ -71,55 +60,27 @@ module TrieveRubyClient
|
|
71
60
|
# @param [Hash] attributes Model attributes in the form of hash
|
72
61
|
def initialize(attributes = {})
|
73
62
|
if (!attributes.is_a?(Hash))
|
74
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `TrieveRubyClient::
|
63
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TrieveRubyClient::AuthQuery` initialize method"
|
75
64
|
end
|
76
65
|
|
77
66
|
# check to see if the attribute exists and convert string to symbol for hash key
|
78
67
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
79
68
|
if (!self.class.attribute_map.key?(k.to_sym))
|
80
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `TrieveRubyClient::
|
69
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TrieveRubyClient::AuthQuery`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
81
70
|
end
|
82
71
|
h[k.to_sym] = v
|
83
72
|
}
|
84
73
|
|
85
|
-
if attributes.key?(:'
|
86
|
-
self.
|
87
|
-
else
|
88
|
-
self.created_at = nil
|
89
|
-
end
|
90
|
-
|
91
|
-
if attributes.key?(:'current_period_end')
|
92
|
-
self.current_period_end = attributes[:'current_period_end']
|
93
|
-
end
|
94
|
-
|
95
|
-
if attributes.key?(:'id')
|
96
|
-
self.id = attributes[:'id']
|
97
|
-
else
|
98
|
-
self.id = nil
|
74
|
+
if attributes.key?(:'inv_code')
|
75
|
+
self.inv_code = attributes[:'inv_code']
|
99
76
|
end
|
100
77
|
|
101
78
|
if attributes.key?(:'organization_id')
|
102
79
|
self.organization_id = attributes[:'organization_id']
|
103
|
-
else
|
104
|
-
self.organization_id = nil
|
105
|
-
end
|
106
|
-
|
107
|
-
if attributes.key?(:'plan_id')
|
108
|
-
self.plan_id = attributes[:'plan_id']
|
109
|
-
else
|
110
|
-
self.plan_id = nil
|
111
|
-
end
|
112
|
-
|
113
|
-
if attributes.key?(:'stripe_id')
|
114
|
-
self.stripe_id = attributes[:'stripe_id']
|
115
|
-
else
|
116
|
-
self.stripe_id = nil
|
117
80
|
end
|
118
81
|
|
119
|
-
if attributes.key?(:'
|
120
|
-
self.
|
121
|
-
else
|
122
|
-
self.updated_at = nil
|
82
|
+
if attributes.key?(:'redirect_uri')
|
83
|
+
self.redirect_uri = attributes[:'redirect_uri']
|
123
84
|
end
|
124
85
|
end
|
125
86
|
|
@@ -128,30 +89,6 @@ module TrieveRubyClient
|
|
128
89
|
def list_invalid_properties
|
129
90
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
130
91
|
invalid_properties = Array.new
|
131
|
-
if @created_at.nil?
|
132
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
133
|
-
end
|
134
|
-
|
135
|
-
if @id.nil?
|
136
|
-
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
137
|
-
end
|
138
|
-
|
139
|
-
if @organization_id.nil?
|
140
|
-
invalid_properties.push('invalid value for "organization_id", organization_id cannot be nil.')
|
141
|
-
end
|
142
|
-
|
143
|
-
if @plan_id.nil?
|
144
|
-
invalid_properties.push('invalid value for "plan_id", plan_id cannot be nil.')
|
145
|
-
end
|
146
|
-
|
147
|
-
if @stripe_id.nil?
|
148
|
-
invalid_properties.push('invalid value for "stripe_id", stripe_id cannot be nil.')
|
149
|
-
end
|
150
|
-
|
151
|
-
if @updated_at.nil?
|
152
|
-
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
153
|
-
end
|
154
|
-
|
155
92
|
invalid_properties
|
156
93
|
end
|
157
94
|
|
@@ -159,12 +96,6 @@ module TrieveRubyClient
|
|
159
96
|
# @return true if the model is valid
|
160
97
|
def valid?
|
161
98
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
162
|
-
return false if @created_at.nil?
|
163
|
-
return false if @id.nil?
|
164
|
-
return false if @organization_id.nil?
|
165
|
-
return false if @plan_id.nil?
|
166
|
-
return false if @stripe_id.nil?
|
167
|
-
return false if @updated_at.nil?
|
168
99
|
true
|
169
100
|
end
|
170
101
|
|
@@ -173,13 +104,9 @@ module TrieveRubyClient
|
|
173
104
|
def ==(o)
|
174
105
|
return true if self.equal?(o)
|
175
106
|
self.class == o.class &&
|
176
|
-
|
177
|
-
current_period_end == o.current_period_end &&
|
178
|
-
id == o.id &&
|
107
|
+
inv_code == o.inv_code &&
|
179
108
|
organization_id == o.organization_id &&
|
180
|
-
|
181
|
-
stripe_id == o.stripe_id &&
|
182
|
-
updated_at == o.updated_at
|
109
|
+
redirect_uri == o.redirect_uri
|
183
110
|
end
|
184
111
|
|
185
112
|
# @see the `==` method
|
@@ -191,7 +118,7 @@ module TrieveRubyClient
|
|
191
118
|
# Calculates hash code according to all attributes.
|
192
119
|
# @return [Integer] Hash code
|
193
120
|
def hash
|
194
|
-
[
|
121
|
+
[inv_code, organization_id, redirect_uri].hash
|
195
122
|
end
|
196
123
|
|
197
124
|
# Builds the object from hash
|