trieve_ruby_client 0.3.4
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 +7 -0
- data/Gemfile +9 -0
- data/LICENSE +21 -0
- data/README.md +240 -0
- data/Rakefile +10 -0
- data/docs/AddChunkToGroupData.md +18 -0
- data/docs/ApiKeyDTO.md +28 -0
- data/docs/AuthApi.md +274 -0
- data/docs/BookmarkData.md +22 -0
- data/docs/BookmarkGroupResult.md +20 -0
- data/docs/ChatMessageProxy.md +20 -0
- data/docs/ChunkApi.md +955 -0
- data/docs/ChunkFilter.md +22 -0
- data/docs/ChunkGroup.md +30 -0
- data/docs/ChunkGroupAndFile.md +32 -0
- data/docs/ChunkGroupApi.md +1262 -0
- data/docs/ChunkMetadata.md +42 -0
- data/docs/ChunkMetadataWithFileData.md +44 -0
- data/docs/ClientDatasetConfiguration.md +38 -0
- data/docs/CreateChunkData.md +42 -0
- data/docs/CreateChunkGroupData.md +22 -0
- data/docs/CreateDatasetRequest.md +24 -0
- data/docs/CreateMessageData.md +28 -0
- data/docs/CreateOrganizationData.md +18 -0
- data/docs/CreateTopicData.md +22 -0
- data/docs/Dataset.md +30 -0
- data/docs/DatasetAndUsage.md +20 -0
- data/docs/DatasetApi.md +480 -0
- data/docs/DatasetDTO.md +28 -0
- data/docs/DatasetUsageCount.md +22 -0
- data/docs/DeleteDatasetRequest.md +18 -0
- data/docs/DeleteTopicData.md +18 -0
- data/docs/DeleteUserApiKeyRequest.md +18 -0
- data/docs/EditMessageData.md +30 -0
- data/docs/ErrorResponseBody.md +18 -0
- data/docs/Event.md +28 -0
- data/docs/EventReturn.md +20 -0
- data/docs/EventsApi.md +86 -0
- data/docs/FieldCondition.md +22 -0
- data/docs/File.md +36 -0
- data/docs/FileApi.md +326 -0
- data/docs/FileDTO.md +32 -0
- data/docs/GenerateChunksRequest.md +26 -0
- data/docs/GetGroupsForChunksData.md +18 -0
- data/docs/GroupData.md +20 -0
- data/docs/GroupScoreChunkDTO.md +20 -0
- data/docs/HealthApi.md +66 -0
- data/docs/InvitationApi.md +85 -0
- data/docs/InvitationData.md +26 -0
- data/docs/MatchCondition.md +49 -0
- data/docs/Message.md +38 -0
- data/docs/MessageApi.md +322 -0
- data/docs/Organization.md +26 -0
- data/docs/OrganizationApi.md +479 -0
- data/docs/OrganizationUsageCount.md +28 -0
- data/docs/Range.md +24 -0
- data/docs/ReccomendGroupChunksRequest.md +30 -0
- data/docs/RecommendChunksRequest.md +28 -0
- data/docs/RegenerateMessageData.md +26 -0
- data/docs/ReturnQueuedChunk.md +20 -0
- data/docs/ScoreChunkDTO.md +20 -0
- data/docs/SearchChunkData.md +38 -0
- data/docs/SearchChunkQueryResponseBody.md +20 -0
- data/docs/SearchGroupsResult.md +22 -0
- data/docs/SearchOverGroupsData.md +36 -0
- data/docs/SearchOverGroupsResponseBody.md +20 -0
- data/docs/SearchWithinGroupData.md +40 -0
- data/docs/SetUserApiKeyRequest.md +20 -0
- data/docs/SetUserApiKeyResponse.md +18 -0
- data/docs/SlimGroup.md +24 -0
- data/docs/SlimUser.md +32 -0
- data/docs/StripeApi.md +285 -0
- data/docs/StripePlan.md +38 -0
- data/docs/StripeSubscription.md +30 -0
- data/docs/SuggestedQueriesRequest.md +18 -0
- data/docs/SuggestedQueriesResponse.md +18 -0
- data/docs/Topic.md +30 -0
- data/docs/TopicApi.md +321 -0
- data/docs/UpdateChunkByTrackingIdData.md +32 -0
- data/docs/UpdateChunkData.md +34 -0
- data/docs/UpdateChunkGroupData.md +24 -0
- data/docs/UpdateDatasetRequest.md +24 -0
- data/docs/UpdateGroupByTrackingIDData.md +22 -0
- data/docs/UpdateOrganizationData.md +20 -0
- data/docs/UpdateTopicData.md +20 -0
- data/docs/UpdateUserData.md +30 -0
- data/docs/UploadFileData.md +34 -0
- data/docs/UploadFileResult.md +18 -0
- data/docs/UserApi.md +238 -0
- data/docs/UserOrganization.md +28 -0
- data/git_push.sh +57 -0
- data/lib/trieve_ruby_client/api/auth_api.rb +262 -0
- data/lib/trieve_ruby_client/api/chunk_api.rb +906 -0
- data/lib/trieve_ruby_client/api/chunk_group_api.rb +1230 -0
- data/lib/trieve_ruby_client/api/dataset_api.rb +458 -0
- data/lib/trieve_ruby_client/api/events_api.rb +92 -0
- data/lib/trieve_ruby_client/api/file_api.rb +324 -0
- data/lib/trieve_ruby_client/api/health_api.rb +75 -0
- data/lib/trieve_ruby_client/api/invitation_api.rb +97 -0
- data/lib/trieve_ruby_client/api/message_api.rb +317 -0
- data/lib/trieve_ruby_client/api/organization_api.rb +445 -0
- data/lib/trieve_ruby_client/api/stripe_api.rb +278 -0
- data/lib/trieve_ruby_client/api/topic_api.rb +317 -0
- data/lib/trieve_ruby_client/api/user_api.rb +226 -0
- data/lib/trieve_ruby_client/api_client.rb +394 -0
- data/lib/trieve_ruby_client/api_error.rb +58 -0
- data/lib/trieve_ruby_client/configuration.rb +305 -0
- data/lib/trieve_ruby_client/models/add_chunk_to_group_data.rb +222 -0
- data/lib/trieve_ruby_client/models/api_key_dto.rb +301 -0
- data/lib/trieve_ruby_client/models/bookmark_data.rb +255 -0
- data/lib/trieve_ruby_client/models/bookmark_group_result.rb +239 -0
- data/lib/trieve_ruby_client/models/chat_message_proxy.rb +237 -0
- data/lib/trieve_ruby_client/models/chunk_filter.rb +244 -0
- data/lib/trieve_ruby_client/models/chunk_group.rb +311 -0
- data/lib/trieve_ruby_client/models/chunk_group_and_file.rb +321 -0
- data/lib/trieve_ruby_client/models/chunk_metadata.rb +371 -0
- data/lib/trieve_ruby_client/models/chunk_metadata_with_file_data.rb +381 -0
- data/lib/trieve_ruby_client/models/client_dataset_configuration.rb +336 -0
- data/lib/trieve_ruby_client/models/create_chunk_data.rb +356 -0
- data/lib/trieve_ruby_client/models/create_chunk_group_data.rb +250 -0
- data/lib/trieve_ruby_client/models/create_dataset_request.rb +265 -0
- data/lib/trieve_ruby_client/models/create_message_data.rb +285 -0
- data/lib/trieve_ruby_client/models/create_organization_data.rb +222 -0
- data/lib/trieve_ruby_client/models/create_topic_data.rb +238 -0
- data/lib/trieve_ruby_client/models/dataset.rb +309 -0
- data/lib/trieve_ruby_client/models/dataset_and_usage.rb +237 -0
- data/lib/trieve_ruby_client/models/dataset_dto.rb +297 -0
- data/lib/trieve_ruby_client/models/dataset_usage_count.rb +253 -0
- data/lib/trieve_ruby_client/models/delete_dataset_request.rb +222 -0
- data/lib/trieve_ruby_client/models/delete_topic_data.rb +222 -0
- data/lib/trieve_ruby_client/models/delete_user_api_key_request.rb +222 -0
- data/lib/trieve_ruby_client/models/edit_message_data.rb +302 -0
- data/lib/trieve_ruby_client/models/error_response_body.rb +221 -0
- data/lib/trieve_ruby_client/models/event.rb +297 -0
- data/lib/trieve_ruby_client/models/event_return.rb +239 -0
- data/lib/trieve_ruby_client/models/field_condition.rb +245 -0
- data/lib/trieve_ruby_client/models/file.rb +341 -0
- data/lib/trieve_ruby_client/models/file_dto.rb +321 -0
- data/lib/trieve_ruby_client/models/generate_chunks_request.rb +276 -0
- data/lib/trieve_ruby_client/models/get_groups_for_chunks_data.rb +223 -0
- data/lib/trieve_ruby_client/models/group_data.rb +239 -0
- data/lib/trieve_ruby_client/models/group_score_chunk_dto.rb +239 -0
- data/lib/trieve_ruby_client/models/invitation_data.rb +290 -0
- data/lib/trieve_ruby_client/models/match_condition.rb +105 -0
- data/lib/trieve_ruby_client/models/message.rb +369 -0
- data/lib/trieve_ruby_client/models/organization.rb +279 -0
- data/lib/trieve_ruby_client/models/organization_usage_count.rb +301 -0
- data/lib/trieve_ruby_client/models/range.rb +245 -0
- data/lib/trieve_ruby_client/models/reccomend_group_chunks_request.rb +319 -0
- data/lib/trieve_ruby_client/models/recommend_chunks_request.rb +293 -0
- data/lib/trieve_ruby_client/models/regenerate_message_data.rb +268 -0
- data/lib/trieve_ruby_client/models/return_queued_chunk.rb +237 -0
- data/lib/trieve_ruby_client/models/score_chunk_dto.rb +239 -0
- data/lib/trieve_ruby_client/models/search_chunk_data.rb +369 -0
- data/lib/trieve_ruby_client/models/search_chunk_query_response_body.rb +239 -0
- data/lib/trieve_ruby_client/models/search_groups_result.rb +255 -0
- data/lib/trieve_ruby_client/models/search_over_groups_data.rb +372 -0
- data/lib/trieve_ruby_client/models/search_over_groups_response_body.rb +239 -0
- data/lib/trieve_ruby_client/models/search_within_group_data.rb +380 -0
- data/lib/trieve_ruby_client/models/set_user_api_key_request.rb +239 -0
- data/lib/trieve_ruby_client/models/set_user_api_key_response.rb +222 -0
- data/lib/trieve_ruby_client/models/slim_group.rb +269 -0
- data/lib/trieve_ruby_client/models/slim_user.rb +319 -0
- data/lib/trieve_ruby_client/models/stripe_plan.rb +381 -0
- data/lib/trieve_ruby_client/models/stripe_subscription.rb +311 -0
- data/lib/trieve_ruby_client/models/suggested_queries_request.rb +222 -0
- data/lib/trieve_ruby_client/models/suggested_queries_response.rb +223 -0
- data/lib/trieve_ruby_client/models/topic.rb +317 -0
- data/lib/trieve_ruby_client/models/update_chunk_by_tracking_id_data.rb +303 -0
- data/lib/trieve_ruby_client/models/update_chunk_data.rb +308 -0
- data/lib/trieve_ruby_client/models/update_chunk_group_data.rb +249 -0
- data/lib/trieve_ruby_client/models/update_dataset_request.rb +255 -0
- data/lib/trieve_ruby_client/models/update_group_by_tracking_id_data.rb +244 -0
- data/lib/trieve_ruby_client/models/update_organization_data.rb +233 -0
- data/lib/trieve_ruby_client/models/update_topic_data.rb +239 -0
- data/lib/trieve_ruby_client/models/update_user_data.rb +288 -0
- data/lib/trieve_ruby_client/models/upload_file_data.rb +324 -0
- data/lib/trieve_ruby_client/models/upload_file_result.rb +221 -0
- data/lib/trieve_ruby_client/models/user_organization.rb +301 -0
- data/lib/trieve_ruby_client/version.rb +15 -0
- data/lib/trieve_ruby_client.rb +124 -0
- data/openapi-generator.yaml +9 -0
- data/openapi.json +6530 -0
- data/openapitools.json +7 -0
- data/spec/api/auth_api_spec.rb +82 -0
- data/spec/api/chunk_api_spec.rb +191 -0
- data/spec/api/chunk_group_api_spec.rb +242 -0
- data/spec/api/dataset_api_spec.rb +113 -0
- data/spec/api/events_api_spec.rb +48 -0
- data/spec/api/file_api_spec.rb +89 -0
- data/spec/api/health_api_spec.rb +44 -0
- data/spec/api/invitation_api_spec.rb +48 -0
- data/spec/api/message_api_spec.rb +87 -0
- data/spec/api/organization_api_spec.rb +112 -0
- data/spec/api/stripe_api_spec.rb +78 -0
- data/spec/api/topic_api_spec.rb +87 -0
- data/spec/api/user_api_spec.rb +71 -0
- data/spec/models/add_chunk_to_group_data_spec.rb +36 -0
- data/spec/models/api_key_dto_spec.rb +66 -0
- data/spec/models/bookmark_data_spec.rb +48 -0
- data/spec/models/bookmark_group_result_spec.rb +42 -0
- data/spec/models/chat_message_proxy_spec.rb +42 -0
- data/spec/models/chunk_filter_spec.rb +48 -0
- data/spec/models/chunk_group_and_file_spec.rb +78 -0
- data/spec/models/chunk_group_spec.rb +72 -0
- data/spec/models/chunk_metadata_spec.rb +108 -0
- data/spec/models/chunk_metadata_with_file_data_spec.rb +114 -0
- data/spec/models/client_dataset_configuration_spec.rb +96 -0
- data/spec/models/create_chunk_data_spec.rb +108 -0
- data/spec/models/create_chunk_group_data_spec.rb +48 -0
- data/spec/models/create_dataset_request_spec.rb +54 -0
- data/spec/models/create_message_data_spec.rb +66 -0
- data/spec/models/create_organization_data_spec.rb +36 -0
- data/spec/models/create_topic_data_spec.rb +48 -0
- data/spec/models/dataset_and_usage_spec.rb +42 -0
- data/spec/models/dataset_dto_spec.rb +66 -0
- data/spec/models/dataset_spec.rb +72 -0
- data/spec/models/dataset_usage_count_spec.rb +48 -0
- data/spec/models/delete_dataset_request_spec.rb +36 -0
- data/spec/models/delete_topic_data_spec.rb +36 -0
- data/spec/models/delete_user_api_key_request_spec.rb +36 -0
- data/spec/models/edit_message_data_spec.rb +72 -0
- data/spec/models/error_response_body_spec.rb +36 -0
- data/spec/models/event_return_spec.rb +42 -0
- data/spec/models/event_spec.rb +66 -0
- data/spec/models/field_condition_spec.rb +48 -0
- data/spec/models/file_dto_spec.rb +78 -0
- data/spec/models/file_spec.rb +90 -0
- data/spec/models/generate_chunks_request_spec.rb +60 -0
- data/spec/models/get_groups_for_chunks_data_spec.rb +36 -0
- data/spec/models/group_data_spec.rb +42 -0
- data/spec/models/group_score_chunk_dto_spec.rb +42 -0
- data/spec/models/invitation_data_spec.rb +60 -0
- data/spec/models/match_condition_spec.rb +32 -0
- data/spec/models/message_spec.rb +96 -0
- data/spec/models/organization_spec.rb +60 -0
- data/spec/models/organization_usage_count_spec.rb +66 -0
- data/spec/models/range_spec.rb +54 -0
- data/spec/models/reccomend_group_chunks_request_spec.rb +72 -0
- data/spec/models/recommend_chunks_request_spec.rb +66 -0
- data/spec/models/regenerate_message_data_spec.rb +60 -0
- data/spec/models/return_queued_chunk_spec.rb +42 -0
- data/spec/models/score_chunk_dto_spec.rb +42 -0
- data/spec/models/search_chunk_data_spec.rb +96 -0
- data/spec/models/search_chunk_query_response_body_spec.rb +42 -0
- data/spec/models/search_groups_result_spec.rb +48 -0
- data/spec/models/search_over_groups_data_spec.rb +90 -0
- data/spec/models/search_over_groups_response_body_spec.rb +42 -0
- data/spec/models/search_within_group_data_spec.rb +102 -0
- data/spec/models/set_user_api_key_request_spec.rb +42 -0
- data/spec/models/set_user_api_key_response_spec.rb +36 -0
- data/spec/models/slim_group_spec.rb +54 -0
- data/spec/models/slim_user_spec.rb +78 -0
- data/spec/models/stripe_plan_spec.rb +96 -0
- data/spec/models/stripe_subscription_spec.rb +72 -0
- data/spec/models/suggested_queries_request_spec.rb +36 -0
- data/spec/models/suggested_queries_response_spec.rb +36 -0
- data/spec/models/topic_spec.rb +72 -0
- data/spec/models/update_chunk_by_tracking_id_data_spec.rb +66 -0
- data/spec/models/update_chunk_data_spec.rb +72 -0
- data/spec/models/update_chunk_group_data_spec.rb +48 -0
- data/spec/models/update_dataset_request_spec.rb +54 -0
- data/spec/models/update_group_by_tracking_id_data_spec.rb +48 -0
- data/spec/models/update_organization_data_spec.rb +42 -0
- data/spec/models/update_topic_data_spec.rb +42 -0
- data/spec/models/update_user_data_spec.rb +72 -0
- data/spec/models/upload_file_data_spec.rb +84 -0
- data/spec/models/upload_file_result_spec.rb +36 -0
- data/spec/models/user_organization_spec.rb +66 -0
- data/spec/spec_helper.rb +111 -0
- data/trieve_ruby_client.gemspec +39 -0
- metadata +439 -0
@@ -0,0 +1,38 @@
|
|
1
|
+
# TrieveRubyClient::SearchChunkData
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **date_bias** | **Boolean** | Set date_bias to true to bias search results towards more recent chunks. This will work best in hybrid search mode. | [optional] |
|
8
|
+
| **filters** | [**ChunkFilter**](ChunkFilter.md) | | [optional] |
|
9
|
+
| **get_collisions** | **Boolean** | Set get_collisions to true to get the collisions for each chunk. This will only apply if environment variable COLLISIONS_ENABLED is set to true. | [optional] |
|
10
|
+
| **highlight_delimiters** | **Array<String>** | Set highlight_delimiters to a list of strings to use as delimiters for highlighting. If not specified, this defaults to [\"?\", \",\", \".\", \"!\"]. | [optional] |
|
11
|
+
| **highlight_results** | **Boolean** | Set highlight_results to true to highlight the results. If not specified, this defaults to true. | [optional] |
|
12
|
+
| **page** | **Integer** | Page of chunks to fetch. Each page is 10 chunks. Support for custom page size is coming soon. | [optional] |
|
13
|
+
| **page_size** | **Integer** | Page size is the number of chunks to fetch. This can be used to fetch more than 10 chunks at a time. | [optional] |
|
14
|
+
| **query** | **String** | Query is the search query. This can be any string. The query will be used to create an embedding vector and/or SPLADE vector which will be used to find the result set. | |
|
15
|
+
| **score_threshold** | **Float** | Set score_threshold to a float to filter out chunks with a score below the threshold. | [optional] |
|
16
|
+
| **search_type** | **String** | Can be either \"semantic\", \"fulltext\", or \"hybrid\". \"hybrid\" will pull in one page (10 chunks) of both semantic and full-text results then re-rank them using BAAI/bge-reranker-large. \"semantic\" will pull in one page (10 chunks) of the nearest cosine distant vectors. \"fulltext\" will pull in one page (10 chunks) of full-text results based on SPLADE. | |
|
17
|
+
| **use_weights** | **Boolean** | Set use_weights to true to use the weights of the chunks in the result set in order to sort them. If not specified, this defaults to true. | [optional] |
|
18
|
+
|
19
|
+
## Example
|
20
|
+
|
21
|
+
```ruby
|
22
|
+
require 'trieve_ruby_client'
|
23
|
+
|
24
|
+
instance = TrieveRubyClient::SearchChunkData.new(
|
25
|
+
date_bias: null,
|
26
|
+
filters: null,
|
27
|
+
get_collisions: null,
|
28
|
+
highlight_delimiters: null,
|
29
|
+
highlight_results: null,
|
30
|
+
page: null,
|
31
|
+
page_size: null,
|
32
|
+
query: null,
|
33
|
+
score_threshold: null,
|
34
|
+
search_type: null,
|
35
|
+
use_weights: null
|
36
|
+
)
|
37
|
+
```
|
38
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# TrieveRubyClient::SearchChunkQueryResponseBody
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **score_chunks** | [**Array<ScoreChunkDTO>**](ScoreChunkDTO.md) | | |
|
8
|
+
| **total_chunk_pages** | **Integer** | | |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'trieve_ruby_client'
|
14
|
+
|
15
|
+
instance = TrieveRubyClient::SearchChunkQueryResponseBody.new(
|
16
|
+
score_chunks: null,
|
17
|
+
total_chunk_pages: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# TrieveRubyClient::SearchGroupsResult
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **bookmarks** | [**Array<ScoreChunkDTO>**](ScoreChunkDTO.md) | | |
|
8
|
+
| **group** | [**ChunkGroup**](ChunkGroup.md) | | |
|
9
|
+
| **total_pages** | **Integer** | | |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'trieve_ruby_client'
|
15
|
+
|
16
|
+
instance = TrieveRubyClient::SearchGroupsResult.new(
|
17
|
+
bookmarks: null,
|
18
|
+
group: null,
|
19
|
+
total_pages: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# TrieveRubyClient::SearchOverGroupsData
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **filters** | [**ChunkFilter**](ChunkFilter.md) | | [optional] |
|
8
|
+
| **get_collisions** | **Boolean** | Set get_collisions to true to get the collisions for each chunk. This will only apply if environment variable COLLISIONS_ENABLED is set to true. | [optional] |
|
9
|
+
| **group_size** | **Integer** | | [optional] |
|
10
|
+
| **highlight_delimiters** | **Array<String>** | Set highlight_delimiters to a list of strings to use as delimiters for highlighting. If not specified, this defaults to [\"?\", \",\", \".\", \"!\"]. | [optional] |
|
11
|
+
| **highlight_results** | **Boolean** | Set highlight_results to true to highlight the results. If not specified, this defaults to true. | [optional] |
|
12
|
+
| **page** | **Integer** | Page of chunks to fetch. Each page is 10 chunks. Support for custom page size is coming soon. | [optional] |
|
13
|
+
| **page_size** | **Integer** | Page size is the number of chunks to fetch. This can be used to fetch more than 10 chunks at a time. | [optional] |
|
14
|
+
| **query** | **String** | Query is the search query. This can be any string. The query will be used to create an embedding vector and/or SPLADE vector which will be used to find the result set. | |
|
15
|
+
| **score_threshold** | **Float** | Set score_threshold to a float to filter out chunks with a score below the threshold. | [optional] |
|
16
|
+
| **search_type** | **String** | Can be either \"semantic\", \"fulltext\", or \"hybrid\". \"hybrid\" will pull in one page (10 chunks) of both semantic and full-text results then re-rank them using BAAI/bge-reranker-large. \"semantic\" will pull in one page (10 chunks) of the nearest cosine distant vectors. \"fulltext\" will pull in one page (10 chunks) of full-text results based on SPLADE. | |
|
17
|
+
|
18
|
+
## Example
|
19
|
+
|
20
|
+
```ruby
|
21
|
+
require 'trieve_ruby_client'
|
22
|
+
|
23
|
+
instance = TrieveRubyClient::SearchOverGroupsData.new(
|
24
|
+
filters: null,
|
25
|
+
get_collisions: null,
|
26
|
+
group_size: null,
|
27
|
+
highlight_delimiters: null,
|
28
|
+
highlight_results: null,
|
29
|
+
page: null,
|
30
|
+
page_size: null,
|
31
|
+
query: null,
|
32
|
+
score_threshold: null,
|
33
|
+
search_type: null
|
34
|
+
)
|
35
|
+
```
|
36
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# TrieveRubyClient::SearchOverGroupsResponseBody
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **group_chunks** | [**Array<GroupScoreChunkDTO>**](GroupScoreChunkDTO.md) | | |
|
8
|
+
| **total_chunk_pages** | **Integer** | | |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'trieve_ruby_client'
|
14
|
+
|
15
|
+
instance = TrieveRubyClient::SearchOverGroupsResponseBody.new(
|
16
|
+
group_chunks: null,
|
17
|
+
total_chunk_pages: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
@@ -0,0 +1,40 @@
|
|
1
|
+
# TrieveRubyClient::SearchWithinGroupData
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **date_bias** | **Boolean** | Set date_bias to true to bias search results towards more recent chunks. This will work best in hybrid search mode. | [optional] |
|
8
|
+
| **filters** | [**ChunkFilter**](ChunkFilter.md) | | [optional] |
|
9
|
+
| **group_id** | **String** | Group specifies the group to search within. Results will only consist of chunks which are bookmarks within the specified group. | [optional] |
|
10
|
+
| **group_tracking_id** | **String** | Group_tracking_id specifies the group to search within by tracking id. Results will only consist of chunks which are bookmarks within the specified group. If both group_id and group_tracking_id are provided, group_id will be used. | [optional] |
|
11
|
+
| **highlight_delimiters** | **Array<String>** | Set highlight_delimiters to a list of strings to use as delimiters for highlighting. If not specified, this defaults to [\"?\", \",\", \".\", \"!\"]. | [optional] |
|
12
|
+
| **highlight_results** | **Boolean** | Set highlight_results to true to highlight the results. If not specified, this defaults to true. | [optional] |
|
13
|
+
| **page** | **Integer** | The page of chunks to fetch. Each page is 10 chunks. Support for custom page size is coming soon. | [optional] |
|
14
|
+
| **page_size** | **Integer** | The page size is the number of chunks to fetch. This can be used to fetch more than 10 chunks at a time. | [optional] |
|
15
|
+
| **query** | **String** | The query is the search query. This can be any string. The query will be used to create an embedding vector and/or SPLADE vector which will be used to find the result set. | |
|
16
|
+
| **score_threshold** | **Float** | Set score_threshold to a float to filter out chunks with a score below the threshold. | [optional] |
|
17
|
+
| **search_type** | **String** | Search_type can be either \"semantic\", \"fulltext\", or \"hybrid\". \"hybrid\" will pull in one page (10 chunks) of both semantic and full-text results then re-rank them using BAAI/bge-reranker-large. \"semantic\" will pull in one page (10 chunks) of the nearest cosine distant vectors. \"fulltext\" will pull in one page (10 chunks) of full-text results based on SPLADE. | |
|
18
|
+
| **use_weights** | **Boolean** | Set use_weights to true to use the weights of the chunks in the result set in order to sort them. If not specified, this defaults to true. | [optional] |
|
19
|
+
|
20
|
+
## Example
|
21
|
+
|
22
|
+
```ruby
|
23
|
+
require 'trieve_ruby_client'
|
24
|
+
|
25
|
+
instance = TrieveRubyClient::SearchWithinGroupData.new(
|
26
|
+
date_bias: null,
|
27
|
+
filters: null,
|
28
|
+
group_id: null,
|
29
|
+
group_tracking_id: null,
|
30
|
+
highlight_delimiters: null,
|
31
|
+
highlight_results: null,
|
32
|
+
page: null,
|
33
|
+
page_size: null,
|
34
|
+
query: null,
|
35
|
+
score_threshold: null,
|
36
|
+
search_type: null,
|
37
|
+
use_weights: null
|
38
|
+
)
|
39
|
+
```
|
40
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# TrieveRubyClient::SetUserApiKeyRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **name** | **String** | The name which will be assigned to the new api key. | |
|
8
|
+
| **role** | **Integer** | The role which will be assigned to the new api key. Either 0 (read), 1 (read and write at the level of the currently auth'ed user). The auth'ed user must have a role greater than or equal to the role being assigned which means they must be an admin (1) or owner (2) of the organization to assign write permissions with a role of 1. | |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'trieve_ruby_client'
|
14
|
+
|
15
|
+
instance = TrieveRubyClient::SetUserApiKeyRequest.new(
|
16
|
+
name: null,
|
17
|
+
role: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# TrieveRubyClient::SetUserApiKeyResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **api_key** | **String** | The api key which was created. This is the value which should be used in the Authorization header. | |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'trieve_ruby_client'
|
13
|
+
|
14
|
+
instance = TrieveRubyClient::SetUserApiKeyResponse.new(
|
15
|
+
api_key: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
data/docs/SlimGroup.md
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
# TrieveRubyClient::SlimGroup
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **dataset_id** | **String** | | |
|
8
|
+
| **id** | **String** | | |
|
9
|
+
| **name** | **String** | | |
|
10
|
+
| **of_current_dataset** | **Boolean** | | |
|
11
|
+
|
12
|
+
## Example
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'trieve_ruby_client'
|
16
|
+
|
17
|
+
instance = TrieveRubyClient::SlimGroup.new(
|
18
|
+
dataset_id: null,
|
19
|
+
id: null,
|
20
|
+
name: null,
|
21
|
+
of_current_dataset: null
|
22
|
+
)
|
23
|
+
```
|
24
|
+
|
data/docs/SlimUser.md
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
# TrieveRubyClient::SlimUser
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **email** | **String** | | |
|
8
|
+
| **id** | **String** | | |
|
9
|
+
| **name** | **String** | | [optional] |
|
10
|
+
| **orgs** | [**Array<Organization>**](Organization.md) | | |
|
11
|
+
| **user_orgs** | [**Array<UserOrganization>**](UserOrganization.md) | | |
|
12
|
+
| **username** | **String** | | [optional] |
|
13
|
+
| **visible_email** | **Boolean** | | |
|
14
|
+
| **website** | **String** | | [optional] |
|
15
|
+
|
16
|
+
## Example
|
17
|
+
|
18
|
+
```ruby
|
19
|
+
require 'trieve_ruby_client'
|
20
|
+
|
21
|
+
instance = TrieveRubyClient::SlimUser.new(
|
22
|
+
email: null,
|
23
|
+
id: null,
|
24
|
+
name: null,
|
25
|
+
orgs: null,
|
26
|
+
user_orgs: null,
|
27
|
+
username: null,
|
28
|
+
visible_email: null,
|
29
|
+
website: null
|
30
|
+
)
|
31
|
+
```
|
32
|
+
|
data/docs/StripeApi.md
ADDED
@@ -0,0 +1,285 @@
|
|
1
|
+
# TrieveRubyClient::StripeApi
|
2
|
+
|
3
|
+
All URIs are relative to *http://localhost*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**cancel_subscription**](StripeApi.md#cancel_subscription) | **DELETE** /api/stripe/subscription/{subscription_id} | |
|
8
|
+
| [**direct_to_payment_link**](StripeApi.md#direct_to_payment_link) | **GET** /api/stripe/payment_link/{plan_id}/{organization_id} | |
|
9
|
+
| [**get_all_plans**](StripeApi.md#get_all_plans) | **GET** /api/stripe/plans | |
|
10
|
+
| [**update_subscription_plan**](StripeApi.md#update_subscription_plan) | **PATCH** /api/stripe/subscription_plan/{subscription_id}/{plan_id} | |
|
11
|
+
|
12
|
+
|
13
|
+
## cancel_subscription
|
14
|
+
|
15
|
+
> cancel_subscription(tr_organization, subscription_id)
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
### Examples
|
20
|
+
|
21
|
+
```ruby
|
22
|
+
require 'time'
|
23
|
+
require 'trieve_ruby_client'
|
24
|
+
# setup authorization
|
25
|
+
TrieveRubyClient.configure do |config|
|
26
|
+
# Configure API key authorization: Cookie
|
27
|
+
config.api_key['Cookie'] = 'YOUR API KEY'
|
28
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
29
|
+
# config.api_key_prefix['Cookie'] = 'Bearer'
|
30
|
+
|
31
|
+
# Configure API key authorization: ApiKey
|
32
|
+
config.api_key['ApiKey'] = 'YOUR API KEY'
|
33
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
34
|
+
# config.api_key_prefix['ApiKey'] = 'Bearer'
|
35
|
+
end
|
36
|
+
|
37
|
+
api_instance = TrieveRubyClient::StripeApi.new
|
38
|
+
tr_organization = 'tr_organization_example' # String | The organization id to use for the request
|
39
|
+
subscription_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | id of the subscription you want to cancel
|
40
|
+
|
41
|
+
begin
|
42
|
+
|
43
|
+
api_instance.cancel_subscription(tr_organization, subscription_id)
|
44
|
+
rescue TrieveRubyClient::ApiError => e
|
45
|
+
puts "Error when calling StripeApi->cancel_subscription: #{e}"
|
46
|
+
end
|
47
|
+
```
|
48
|
+
|
49
|
+
#### Using the cancel_subscription_with_http_info variant
|
50
|
+
|
51
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
52
|
+
|
53
|
+
> <Array(nil, Integer, Hash)> cancel_subscription_with_http_info(tr_organization, subscription_id)
|
54
|
+
|
55
|
+
```ruby
|
56
|
+
begin
|
57
|
+
|
58
|
+
data, status_code, headers = api_instance.cancel_subscription_with_http_info(tr_organization, subscription_id)
|
59
|
+
p status_code # => 2xx
|
60
|
+
p headers # => { ... }
|
61
|
+
p data # => nil
|
62
|
+
rescue TrieveRubyClient::ApiError => e
|
63
|
+
puts "Error when calling StripeApi->cancel_subscription_with_http_info: #{e}"
|
64
|
+
end
|
65
|
+
```
|
66
|
+
|
67
|
+
### Parameters
|
68
|
+
|
69
|
+
| Name | Type | Description | Notes |
|
70
|
+
| ---- | ---- | ----------- | ----- |
|
71
|
+
| **tr_organization** | **String** | The organization id to use for the request | |
|
72
|
+
| **subscription_id** | **String** | id of the subscription you want to cancel | |
|
73
|
+
|
74
|
+
### Return type
|
75
|
+
|
76
|
+
nil (empty response body)
|
77
|
+
|
78
|
+
### Authorization
|
79
|
+
|
80
|
+
[Cookie](../README.md#Cookie), [ApiKey](../README.md#ApiKey)
|
81
|
+
|
82
|
+
### HTTP request headers
|
83
|
+
|
84
|
+
- **Content-Type**: Not defined
|
85
|
+
- **Accept**: application/json
|
86
|
+
|
87
|
+
|
88
|
+
## direct_to_payment_link
|
89
|
+
|
90
|
+
> direct_to_payment_link(plan_id, organization_id)
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
### Examples
|
95
|
+
|
96
|
+
```ruby
|
97
|
+
require 'time'
|
98
|
+
require 'trieve_ruby_client'
|
99
|
+
|
100
|
+
api_instance = TrieveRubyClient::StripeApi.new
|
101
|
+
plan_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | id of the plan you want to subscribe to
|
102
|
+
organization_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | id of the organization you want to subscribe to the plan
|
103
|
+
|
104
|
+
begin
|
105
|
+
|
106
|
+
api_instance.direct_to_payment_link(plan_id, organization_id)
|
107
|
+
rescue TrieveRubyClient::ApiError => e
|
108
|
+
puts "Error when calling StripeApi->direct_to_payment_link: #{e}"
|
109
|
+
end
|
110
|
+
```
|
111
|
+
|
112
|
+
#### Using the direct_to_payment_link_with_http_info variant
|
113
|
+
|
114
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
115
|
+
|
116
|
+
> <Array(nil, Integer, Hash)> direct_to_payment_link_with_http_info(plan_id, organization_id)
|
117
|
+
|
118
|
+
```ruby
|
119
|
+
begin
|
120
|
+
|
121
|
+
data, status_code, headers = api_instance.direct_to_payment_link_with_http_info(plan_id, organization_id)
|
122
|
+
p status_code # => 2xx
|
123
|
+
p headers # => { ... }
|
124
|
+
p data # => nil
|
125
|
+
rescue TrieveRubyClient::ApiError => e
|
126
|
+
puts "Error when calling StripeApi->direct_to_payment_link_with_http_info: #{e}"
|
127
|
+
end
|
128
|
+
```
|
129
|
+
|
130
|
+
### Parameters
|
131
|
+
|
132
|
+
| Name | Type | Description | Notes |
|
133
|
+
| ---- | ---- | ----------- | ----- |
|
134
|
+
| **plan_id** | **String** | id of the plan you want to subscribe to | |
|
135
|
+
| **organization_id** | **String** | id of the organization you want to subscribe to the plan | |
|
136
|
+
|
137
|
+
### Return type
|
138
|
+
|
139
|
+
nil (empty response body)
|
140
|
+
|
141
|
+
### Authorization
|
142
|
+
|
143
|
+
No authorization required
|
144
|
+
|
145
|
+
### HTTP request headers
|
146
|
+
|
147
|
+
- **Content-Type**: Not defined
|
148
|
+
- **Accept**: application/json
|
149
|
+
|
150
|
+
|
151
|
+
## get_all_plans
|
152
|
+
|
153
|
+
> <Array<StripePlan>> get_all_plans
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
### Examples
|
158
|
+
|
159
|
+
```ruby
|
160
|
+
require 'time'
|
161
|
+
require 'trieve_ruby_client'
|
162
|
+
|
163
|
+
api_instance = TrieveRubyClient::StripeApi.new
|
164
|
+
|
165
|
+
begin
|
166
|
+
|
167
|
+
result = api_instance.get_all_plans
|
168
|
+
p result
|
169
|
+
rescue TrieveRubyClient::ApiError => e
|
170
|
+
puts "Error when calling StripeApi->get_all_plans: #{e}"
|
171
|
+
end
|
172
|
+
```
|
173
|
+
|
174
|
+
#### Using the get_all_plans_with_http_info variant
|
175
|
+
|
176
|
+
This returns an Array which contains the response data, status code and headers.
|
177
|
+
|
178
|
+
> <Array(<Array<StripePlan>>, Integer, Hash)> get_all_plans_with_http_info
|
179
|
+
|
180
|
+
```ruby
|
181
|
+
begin
|
182
|
+
|
183
|
+
data, status_code, headers = api_instance.get_all_plans_with_http_info
|
184
|
+
p status_code # => 2xx
|
185
|
+
p headers # => { ... }
|
186
|
+
p data # => <Array<StripePlan>>
|
187
|
+
rescue TrieveRubyClient::ApiError => e
|
188
|
+
puts "Error when calling StripeApi->get_all_plans_with_http_info: #{e}"
|
189
|
+
end
|
190
|
+
```
|
191
|
+
|
192
|
+
### Parameters
|
193
|
+
|
194
|
+
This endpoint does not need any parameter.
|
195
|
+
|
196
|
+
### Return type
|
197
|
+
|
198
|
+
[**Array<StripePlan>**](StripePlan.md)
|
199
|
+
|
200
|
+
### Authorization
|
201
|
+
|
202
|
+
No authorization required
|
203
|
+
|
204
|
+
### HTTP request headers
|
205
|
+
|
206
|
+
- **Content-Type**: Not defined
|
207
|
+
- **Accept**: application/json
|
208
|
+
|
209
|
+
|
210
|
+
## update_subscription_plan
|
211
|
+
|
212
|
+
> update_subscription_plan(tr_organization, subscription_id, plan_id)
|
213
|
+
|
214
|
+
|
215
|
+
|
216
|
+
### Examples
|
217
|
+
|
218
|
+
```ruby
|
219
|
+
require 'time'
|
220
|
+
require 'trieve_ruby_client'
|
221
|
+
# setup authorization
|
222
|
+
TrieveRubyClient.configure do |config|
|
223
|
+
# Configure API key authorization: Cookie
|
224
|
+
config.api_key['Cookie'] = 'YOUR API KEY'
|
225
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
226
|
+
# config.api_key_prefix['Cookie'] = 'Bearer'
|
227
|
+
|
228
|
+
# Configure API key authorization: ApiKey
|
229
|
+
config.api_key['ApiKey'] = 'YOUR API KEY'
|
230
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
231
|
+
# config.api_key_prefix['ApiKey'] = 'Bearer'
|
232
|
+
end
|
233
|
+
|
234
|
+
api_instance = TrieveRubyClient::StripeApi.new
|
235
|
+
tr_organization = 'tr_organization_example' # String | The organization id to use for the request
|
236
|
+
subscription_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | id of the subscription you want to update
|
237
|
+
plan_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | id of the plan you want to subscribe to
|
238
|
+
|
239
|
+
begin
|
240
|
+
|
241
|
+
api_instance.update_subscription_plan(tr_organization, subscription_id, plan_id)
|
242
|
+
rescue TrieveRubyClient::ApiError => e
|
243
|
+
puts "Error when calling StripeApi->update_subscription_plan: #{e}"
|
244
|
+
end
|
245
|
+
```
|
246
|
+
|
247
|
+
#### Using the update_subscription_plan_with_http_info variant
|
248
|
+
|
249
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
250
|
+
|
251
|
+
> <Array(nil, Integer, Hash)> update_subscription_plan_with_http_info(tr_organization, subscription_id, plan_id)
|
252
|
+
|
253
|
+
```ruby
|
254
|
+
begin
|
255
|
+
|
256
|
+
data, status_code, headers = api_instance.update_subscription_plan_with_http_info(tr_organization, subscription_id, plan_id)
|
257
|
+
p status_code # => 2xx
|
258
|
+
p headers # => { ... }
|
259
|
+
p data # => nil
|
260
|
+
rescue TrieveRubyClient::ApiError => e
|
261
|
+
puts "Error when calling StripeApi->update_subscription_plan_with_http_info: #{e}"
|
262
|
+
end
|
263
|
+
```
|
264
|
+
|
265
|
+
### Parameters
|
266
|
+
|
267
|
+
| Name | Type | Description | Notes |
|
268
|
+
| ---- | ---- | ----------- | ----- |
|
269
|
+
| **tr_organization** | **String** | The organization id to use for the request | |
|
270
|
+
| **subscription_id** | **String** | id of the subscription you want to update | |
|
271
|
+
| **plan_id** | **String** | id of the plan you want to subscribe to | |
|
272
|
+
|
273
|
+
### Return type
|
274
|
+
|
275
|
+
nil (empty response body)
|
276
|
+
|
277
|
+
### Authorization
|
278
|
+
|
279
|
+
[Cookie](../README.md#Cookie), [ApiKey](../README.md#ApiKey)
|
280
|
+
|
281
|
+
### HTTP request headers
|
282
|
+
|
283
|
+
- **Content-Type**: Not defined
|
284
|
+
- **Accept**: application/json
|
285
|
+
|
data/docs/StripePlan.md
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
# TrieveRubyClient::StripePlan
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **amount** | **Integer** | | |
|
8
|
+
| **chunk_count** | **Integer** | | |
|
9
|
+
| **created_at** | **Time** | | |
|
10
|
+
| **dataset_count** | **Integer** | | |
|
11
|
+
| **file_storage** | **Integer** | | |
|
12
|
+
| **id** | **String** | | |
|
13
|
+
| **message_count** | **Integer** | | |
|
14
|
+
| **name** | **String** | | |
|
15
|
+
| **stripe_id** | **String** | | |
|
16
|
+
| **updated_at** | **Time** | | |
|
17
|
+
| **user_count** | **Integer** | | |
|
18
|
+
|
19
|
+
## Example
|
20
|
+
|
21
|
+
```ruby
|
22
|
+
require 'trieve_ruby_client'
|
23
|
+
|
24
|
+
instance = TrieveRubyClient::StripePlan.new(
|
25
|
+
amount: null,
|
26
|
+
chunk_count: null,
|
27
|
+
created_at: null,
|
28
|
+
dataset_count: null,
|
29
|
+
file_storage: null,
|
30
|
+
id: null,
|
31
|
+
message_count: null,
|
32
|
+
name: null,
|
33
|
+
stripe_id: null,
|
34
|
+
updated_at: null,
|
35
|
+
user_count: null
|
36
|
+
)
|
37
|
+
```
|
38
|
+
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# TrieveRubyClient::StripeSubscription
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **created_at** | **Time** | | |
|
8
|
+
| **current_period_end** | **Time** | | [optional] |
|
9
|
+
| **id** | **String** | | |
|
10
|
+
| **organization_id** | **String** | | |
|
11
|
+
| **plan_id** | **String** | | |
|
12
|
+
| **stripe_id** | **String** | | |
|
13
|
+
| **updated_at** | **Time** | | |
|
14
|
+
|
15
|
+
## Example
|
16
|
+
|
17
|
+
```ruby
|
18
|
+
require 'trieve_ruby_client'
|
19
|
+
|
20
|
+
instance = TrieveRubyClient::StripeSubscription.new(
|
21
|
+
created_at: null,
|
22
|
+
current_period_end: null,
|
23
|
+
id: null,
|
24
|
+
organization_id: null,
|
25
|
+
plan_id: null,
|
26
|
+
stripe_id: null,
|
27
|
+
updated_at: null
|
28
|
+
)
|
29
|
+
```
|
30
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# TrieveRubyClient::SuggestedQueriesRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **query** | **String** | The query to base the generated suggested queries off of. | |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'trieve_ruby_client'
|
13
|
+
|
14
|
+
instance = TrieveRubyClient::SuggestedQueriesRequest.new(
|
15
|
+
query: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# TrieveRubyClient::SuggestedQueriesResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **queries** | **Array<String>** | | |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'trieve_ruby_client'
|
13
|
+
|
14
|
+
instance = TrieveRubyClient::SuggestedQueriesResponse.new(
|
15
|
+
queries: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|