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/docs/MessageApi.md
CHANGED
@@ -1,22 +1,22 @@
|
|
1
1
|
# TrieveRubyClient::MessageApi
|
2
2
|
|
3
|
-
All URIs are relative to *http://localhost*
|
3
|
+
All URIs are relative to *http://localhost:8090*
|
4
4
|
|
5
5
|
| Method | HTTP request | Description |
|
6
6
|
| ------ | ------------ | ----------- |
|
7
|
-
| [**create_message_completion_handler**](MessageApi.md#create_message_completion_handler) | **POST** /api/message |
|
8
|
-
| [**edit_message_handler**](MessageApi.md#edit_message_handler) | **PUT** /api/message |
|
9
|
-
| [**get_all_topic_messages**](MessageApi.md#get_all_topic_messages) | **GET** /api/messages/{messages_topic_id} |
|
10
|
-
| [**regenerate_message_handler**](MessageApi.md#regenerate_message_handler) | **DELETE** /api/message |
|
7
|
+
| [**create_message_completion_handler**](MessageApi.md#create_message_completion_handler) | **POST** /api/message | Create a message |
|
8
|
+
| [**edit_message_handler**](MessageApi.md#edit_message_handler) | **PUT** /api/message | Edit a message |
|
9
|
+
| [**get_all_topic_messages**](MessageApi.md#get_all_topic_messages) | **GET** /api/messages/{messages_topic_id} | Get all messages for a given topic |
|
10
|
+
| [**regenerate_message_handler**](MessageApi.md#regenerate_message_handler) | **DELETE** /api/message | Regenerate message |
|
11
11
|
|
12
12
|
|
13
13
|
## create_message_completion_handler
|
14
14
|
|
15
15
|
> String create_message_completion_handler(tr_dataset, create_message_data)
|
16
16
|
|
17
|
-
|
17
|
+
Create a message
|
18
18
|
|
19
|
-
|
19
|
+
Create a message Create a message. Messages are attached to topics in order to coordinate memory of gen-AI chat sessions. We are considering refactoring this resource of the API soon. Currently, you can only send user messages. If the topic is a RAG topic then the response will include Chunks first on the stream. The structure will look like `[chunks]||mesage`. See docs.trieve.ai for more information.
|
20
20
|
|
21
21
|
### Examples
|
22
22
|
|
@@ -36,7 +36,7 @@ tr_dataset = 'tr_dataset_example' # String | The dataset id to use for the reque
|
|
36
36
|
create_message_data = TrieveRubyClient::CreateMessageData.new({new_message_content: 'new_message_content_example', topic_id: 'topic_id_example'}) # CreateMessageData | JSON request payload to create a message completion
|
37
37
|
|
38
38
|
begin
|
39
|
-
#
|
39
|
+
# Create a message
|
40
40
|
result = api_instance.create_message_completion_handler(tr_dataset, create_message_data)
|
41
41
|
p result
|
42
42
|
rescue TrieveRubyClient::ApiError => e
|
@@ -52,7 +52,7 @@ This returns an Array which contains the response data, status code and headers.
|
|
52
52
|
|
53
53
|
```ruby
|
54
54
|
begin
|
55
|
-
#
|
55
|
+
# Create a message
|
56
56
|
data, status_code, headers = api_instance.create_message_completion_handler_with_http_info(tr_dataset, create_message_data)
|
57
57
|
p status_code # => 2xx
|
58
58
|
p headers # => { ... }
|
@@ -87,9 +87,9 @@ end
|
|
87
87
|
|
88
88
|
> edit_message_handler(tr_dataset, edit_message_data)
|
89
89
|
|
90
|
-
|
90
|
+
Edit a message
|
91
91
|
|
92
|
-
|
92
|
+
Edit a message Edit a message which exists within the topic's chat history. This will delete the message and replace it with a new message. The new message will be generated by the AI based on the new content provided in the request body. The response will include Chunks first on the stream if the topic is using RAG. The structure will look like `[chunks]||mesage`. See docs.trieve.ai for more information.
|
93
93
|
|
94
94
|
### Examples
|
95
95
|
|
@@ -109,7 +109,7 @@ tr_dataset = 'tr_dataset_example' # String | The dataset id to use for the reque
|
|
109
109
|
edit_message_data = TrieveRubyClient::EditMessageData.new({message_sort_order: 37, new_message_content: 'new_message_content_example', topic_id: 'topic_id_example'}) # EditMessageData | JSON request payload to edit a message and get a new stream
|
110
110
|
|
111
111
|
begin
|
112
|
-
#
|
112
|
+
# Edit a message
|
113
113
|
api_instance.edit_message_handler(tr_dataset, edit_message_data)
|
114
114
|
rescue TrieveRubyClient::ApiError => e
|
115
115
|
puts "Error when calling MessageApi->edit_message_handler: #{e}"
|
@@ -124,7 +124,7 @@ This returns an Array which contains the response data (`nil` in this case), sta
|
|
124
124
|
|
125
125
|
```ruby
|
126
126
|
begin
|
127
|
-
#
|
127
|
+
# Edit a message
|
128
128
|
data, status_code, headers = api_instance.edit_message_handler_with_http_info(tr_dataset, edit_message_data)
|
129
129
|
p status_code # => 2xx
|
130
130
|
p headers # => { ... }
|
@@ -159,9 +159,9 @@ nil (empty response body)
|
|
159
159
|
|
160
160
|
> <Array<Message>> get_all_topic_messages(tr_dataset, messages_topic_id)
|
161
161
|
|
162
|
-
|
162
|
+
Get all messages for a given topic
|
163
163
|
|
164
|
-
|
164
|
+
Get all messages for a given topic Get all messages for a given topic. If the topic is a RAG topic then the response will include Chunks first on each message. The structure will look like `[chunks]||mesage`. See docs.trieve.ai for more information.
|
165
165
|
|
166
166
|
### Examples
|
167
167
|
|
@@ -181,7 +181,7 @@ tr_dataset = 'tr_dataset_example' # String | The dataset id to use for the reque
|
|
181
181
|
messages_topic_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | The ID of the topic to get messages for.
|
182
182
|
|
183
183
|
begin
|
184
|
-
#
|
184
|
+
# Get all messages for a given topic
|
185
185
|
result = api_instance.get_all_topic_messages(tr_dataset, messages_topic_id)
|
186
186
|
p result
|
187
187
|
rescue TrieveRubyClient::ApiError => e
|
@@ -197,7 +197,7 @@ This returns an Array which contains the response data, status code and headers.
|
|
197
197
|
|
198
198
|
```ruby
|
199
199
|
begin
|
200
|
-
#
|
200
|
+
# Get all messages for a given topic
|
201
201
|
data, status_code, headers = api_instance.get_all_topic_messages_with_http_info(tr_dataset, messages_topic_id)
|
202
202
|
p status_code # => 2xx
|
203
203
|
p headers # => { ... }
|
@@ -232,9 +232,9 @@ end
|
|
232
232
|
|
233
233
|
> String regenerate_message_handler(tr_dataset, regenerate_message_data)
|
234
234
|
|
235
|
-
|
235
|
+
Regenerate message
|
236
236
|
|
237
|
-
|
237
|
+
Regenerate message Regenerate the assistant response to the last user message of a topic. This will delete the last message and replace it with a new message. The response will include Chunks first on the stream if the topic is using RAG. The structure will look like `[chunks]||mesage`. See docs.trieve.ai for more information.
|
238
238
|
|
239
239
|
### Examples
|
240
240
|
|
@@ -254,7 +254,7 @@ tr_dataset = 'tr_dataset_example' # String | The dataset id to use for the reque
|
|
254
254
|
regenerate_message_data = TrieveRubyClient::RegenerateMessageData.new({topic_id: 'topic_id_example'}) # RegenerateMessageData | JSON request payload to delete an agent message then regenerate it in a strem
|
255
255
|
|
256
256
|
begin
|
257
|
-
#
|
257
|
+
# Regenerate message
|
258
258
|
result = api_instance.regenerate_message_handler(tr_dataset, regenerate_message_data)
|
259
259
|
p result
|
260
260
|
rescue TrieveRubyClient::ApiError => e
|
@@ -270,7 +270,7 @@ This returns an Array which contains the response data, status code and headers.
|
|
270
270
|
|
271
271
|
```ruby
|
272
272
|
begin
|
273
|
-
#
|
273
|
+
# Regenerate message
|
274
274
|
data, status_code, headers = api_instance.regenerate_message_handler_with_http_info(tr_dataset, regenerate_message_data)
|
275
275
|
p status_code # => 2xx
|
276
276
|
p headers # => { ... }
|
data/docs/OrganizationApi.md
CHANGED
@@ -1,24 +1,24 @@
|
|
1
1
|
# TrieveRubyClient::OrganizationApi
|
2
2
|
|
3
|
-
All URIs are relative to *http://localhost*
|
3
|
+
All URIs are relative to *http://localhost:8090*
|
4
4
|
|
5
5
|
| Method | HTTP request | Description |
|
6
6
|
| ------ | ------------ | ----------- |
|
7
|
-
| [**create_organization**](OrganizationApi.md#create_organization) | **POST** /api/organization |
|
8
|
-
| [**delete_organization_by_id**](OrganizationApi.md#delete_organization_by_id) | **DELETE** /api/organization/{organization_id} |
|
9
|
-
| [**get_organization_by_id**](OrganizationApi.md#get_organization_by_id) | **GET** /api/organization/{organization_id} |
|
10
|
-
| [**get_organization_usage**](OrganizationApi.md#get_organization_usage) | **GET** /api/organization/usage/{organization_id} |
|
11
|
-
| [**get_organization_users**](OrganizationApi.md#get_organization_users) | **GET** /api/organization/users/{organization_id} |
|
12
|
-
| [**update_organization**](OrganizationApi.md#update_organization) | **PUT** /api/organization |
|
7
|
+
| [**create_organization**](OrganizationApi.md#create_organization) | **POST** /api/organization | Create Organization |
|
8
|
+
| [**delete_organization_by_id**](OrganizationApi.md#delete_organization_by_id) | **DELETE** /api/organization/{organization_id} | Delete Organization |
|
9
|
+
| [**get_organization_by_id**](OrganizationApi.md#get_organization_by_id) | **GET** /api/organization/{organization_id} | Get Organization |
|
10
|
+
| [**get_organization_usage**](OrganizationApi.md#get_organization_usage) | **GET** /api/organization/usage/{organization_id} | Get Organization Usage |
|
11
|
+
| [**get_organization_users**](OrganizationApi.md#get_organization_users) | **GET** /api/organization/users/{organization_id} | Get Organization Users |
|
12
|
+
| [**update_organization**](OrganizationApi.md#update_organization) | **PUT** /api/organization | Update Organization |
|
13
13
|
|
14
14
|
|
15
15
|
## create_organization
|
16
16
|
|
17
17
|
> <Organization> create_organization(create_organization_data)
|
18
18
|
|
19
|
-
|
19
|
+
Create Organization
|
20
20
|
|
21
|
-
|
21
|
+
Create Organization Create a new organization. The auth'ed user who creates the organization will be the default owner of the organization.
|
22
22
|
|
23
23
|
### Examples
|
24
24
|
|
@@ -37,7 +37,7 @@ api_instance = TrieveRubyClient::OrganizationApi.new
|
|
37
37
|
create_organization_data = TrieveRubyClient::CreateOrganizationData.new({name: 'name_example'}) # CreateOrganizationData | The organization data that you want to create
|
38
38
|
|
39
39
|
begin
|
40
|
-
#
|
40
|
+
# Create Organization
|
41
41
|
result = api_instance.create_organization(create_organization_data)
|
42
42
|
p result
|
43
43
|
rescue TrieveRubyClient::ApiError => e
|
@@ -53,7 +53,7 @@ This returns an Array which contains the response data, status code and headers.
|
|
53
53
|
|
54
54
|
```ruby
|
55
55
|
begin
|
56
|
-
#
|
56
|
+
# Create Organization
|
57
57
|
data, status_code, headers = api_instance.create_organization_with_http_info(create_organization_data)
|
58
58
|
p status_code # => 2xx
|
59
59
|
p headers # => { ... }
|
@@ -87,9 +87,9 @@ end
|
|
87
87
|
|
88
88
|
> <Organization> delete_organization_by_id(tr_organization, organization_id)
|
89
89
|
|
90
|
-
|
90
|
+
Delete Organization
|
91
91
|
|
92
|
-
|
92
|
+
Delete Organization Delete an organization by its id. The auth'ed user must be an owner of the organization to delete it.
|
93
93
|
|
94
94
|
### Examples
|
95
95
|
|
@@ -109,7 +109,7 @@ tr_organization = 'tr_organization_example' # String | The organization id to us
|
|
109
109
|
organization_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | The id of the organization you want to fetch.
|
110
110
|
|
111
111
|
begin
|
112
|
-
#
|
112
|
+
# Delete Organization
|
113
113
|
result = api_instance.delete_organization_by_id(tr_organization, organization_id)
|
114
114
|
p result
|
115
115
|
rescue TrieveRubyClient::ApiError => e
|
@@ -125,7 +125,7 @@ This returns an Array which contains the response data, status code and headers.
|
|
125
125
|
|
126
126
|
```ruby
|
127
127
|
begin
|
128
|
-
#
|
128
|
+
# Delete Organization
|
129
129
|
data, status_code, headers = api_instance.delete_organization_by_id_with_http_info(tr_organization, organization_id)
|
130
130
|
p status_code # => 2xx
|
131
131
|
p headers # => { ... }
|
@@ -160,9 +160,9 @@ end
|
|
160
160
|
|
161
161
|
> <Organization> get_organization_by_id(tr_organization, organization_id)
|
162
162
|
|
163
|
-
|
163
|
+
Get Organization
|
164
164
|
|
165
|
-
|
165
|
+
Get Organization Fetch the details of an organization by its id. The auth'ed user must be an admin or owner of the organization to fetch it.
|
166
166
|
|
167
167
|
### Examples
|
168
168
|
|
@@ -182,7 +182,7 @@ tr_organization = 'tr_organization_example' # String | The organization id to us
|
|
182
182
|
organization_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | The id of the organization you want to fetch.
|
183
183
|
|
184
184
|
begin
|
185
|
-
#
|
185
|
+
# Get Organization
|
186
186
|
result = api_instance.get_organization_by_id(tr_organization, organization_id)
|
187
187
|
p result
|
188
188
|
rescue TrieveRubyClient::ApiError => e
|
@@ -198,7 +198,7 @@ This returns an Array which contains the response data, status code and headers.
|
|
198
198
|
|
199
199
|
```ruby
|
200
200
|
begin
|
201
|
-
#
|
201
|
+
# Get Organization
|
202
202
|
data, status_code, headers = api_instance.get_organization_by_id_with_http_info(tr_organization, organization_id)
|
203
203
|
p status_code # => 2xx
|
204
204
|
p headers # => { ... }
|
@@ -233,9 +233,9 @@ end
|
|
233
233
|
|
234
234
|
> <OrganizationUsageCount> get_organization_usage(tr_organization, organization_id)
|
235
235
|
|
236
|
-
|
236
|
+
Get Organization Usage
|
237
237
|
|
238
|
-
|
238
|
+
Get Organization Usage Fetch the current usage specification of an organization by its id. The auth'ed user must be an admin or owner of the organization to fetch it.
|
239
239
|
|
240
240
|
### Examples
|
241
241
|
|
@@ -255,7 +255,7 @@ tr_organization = 'tr_organization_example' # String | The organization id to us
|
|
255
255
|
organization_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | The id of the organization you want to fetch the usage of.
|
256
256
|
|
257
257
|
begin
|
258
|
-
#
|
258
|
+
# Get Organization Usage
|
259
259
|
result = api_instance.get_organization_usage(tr_organization, organization_id)
|
260
260
|
p result
|
261
261
|
rescue TrieveRubyClient::ApiError => e
|
@@ -271,7 +271,7 @@ This returns an Array which contains the response data, status code and headers.
|
|
271
271
|
|
272
272
|
```ruby
|
273
273
|
begin
|
274
|
-
#
|
274
|
+
# Get Organization Usage
|
275
275
|
data, status_code, headers = api_instance.get_organization_usage_with_http_info(tr_organization, organization_id)
|
276
276
|
p status_code # => 2xx
|
277
277
|
p headers # => { ... }
|
@@ -306,9 +306,9 @@ end
|
|
306
306
|
|
307
307
|
> <Array<SlimUser>> get_organization_users(tr_organization, organization_id)
|
308
308
|
|
309
|
-
|
309
|
+
Get Organization Users
|
310
310
|
|
311
|
-
|
311
|
+
Get Organization Users Fetch the users of an organization by its id. The auth'ed user must be an admin or owner of the organization to fetch it.
|
312
312
|
|
313
313
|
### Examples
|
314
314
|
|
@@ -328,7 +328,7 @@ tr_organization = 'tr_organization_example' # String | The organization id to us
|
|
328
328
|
organization_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | The id of the organization you want to fetch the users of.
|
329
329
|
|
330
330
|
begin
|
331
|
-
#
|
331
|
+
# Get Organization Users
|
332
332
|
result = api_instance.get_organization_users(tr_organization, organization_id)
|
333
333
|
p result
|
334
334
|
rescue TrieveRubyClient::ApiError => e
|
@@ -344,7 +344,7 @@ This returns an Array which contains the response data, status code and headers.
|
|
344
344
|
|
345
345
|
```ruby
|
346
346
|
begin
|
347
|
-
#
|
347
|
+
# Get Organization Users
|
348
348
|
data, status_code, headers = api_instance.get_organization_users_with_http_info(tr_organization, organization_id)
|
349
349
|
p status_code # => 2xx
|
350
350
|
p headers # => { ... }
|
@@ -379,9 +379,9 @@ end
|
|
379
379
|
|
380
380
|
> <Organization> update_organization(tr_organization, update_organization_data)
|
381
381
|
|
382
|
-
|
382
|
+
Update Organization
|
383
383
|
|
384
|
-
|
384
|
+
Update Organization Update an organization. Only the owner of the organization can update it.
|
385
385
|
|
386
386
|
### Examples
|
387
387
|
|
@@ -401,7 +401,7 @@ tr_organization = 'tr_organization_example' # String | The organization id to us
|
|
401
401
|
update_organization_data = TrieveRubyClient::UpdateOrganizationData.new({organization_id: 'organization_id_example'}) # UpdateOrganizationData | The organization data that you want to update
|
402
402
|
|
403
403
|
begin
|
404
|
-
#
|
404
|
+
# Update Organization
|
405
405
|
result = api_instance.update_organization(tr_organization, update_organization_data)
|
406
406
|
p result
|
407
407
|
rescue TrieveRubyClient::ApiError => e
|
@@ -417,7 +417,7 @@ This returns an Array which contains the response data, status code and headers.
|
|
417
417
|
|
418
418
|
```ruby
|
419
419
|
begin
|
420
|
-
#
|
420
|
+
# Update Organization
|
421
421
|
data, status_code, headers = api_instance.update_organization_with_http_info(tr_organization, update_organization_data)
|
422
422
|
p status_code # => 2xx
|
423
423
|
p headers # => { ... }
|
data/docs/ReturnQueuedChunk.md
CHANGED
@@ -1,20 +1,49 @@
|
|
1
1
|
# TrieveRubyClient::ReturnQueuedChunk
|
2
2
|
|
3
|
-
##
|
3
|
+
## Class instance methods
|
4
4
|
|
5
|
-
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **chunk_metadata** | [**ChunkMetadata**](ChunkMetadata.md) | | |
|
8
|
-
| **pos_in_queue** | **Integer** | | |
|
5
|
+
### `openapi_one_of`
|
9
6
|
|
10
|
-
|
7
|
+
Returns the list of classes defined in oneOf.
|
8
|
+
|
9
|
+
#### Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'trieve_ruby_client'
|
13
|
+
|
14
|
+
TrieveRubyClient::ReturnQueuedChunk.openapi_one_of
|
15
|
+
# =>
|
16
|
+
# [
|
17
|
+
# :'BatchQueuedChunkResponse',
|
18
|
+
# :'SingleQueuedChunkResponse'
|
19
|
+
# ]
|
20
|
+
```
|
21
|
+
|
22
|
+
### build
|
23
|
+
|
24
|
+
Find the appropriate object from the `openapi_one_of` list and casts the data into it.
|
25
|
+
|
26
|
+
#### Example
|
11
27
|
|
12
28
|
```ruby
|
13
29
|
require 'trieve_ruby_client'
|
14
30
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
)
|
31
|
+
TrieveRubyClient::ReturnQueuedChunk.build(data)
|
32
|
+
# => #<BatchQueuedChunkResponse:0x00007fdd4aab02a0>
|
33
|
+
|
34
|
+
TrieveRubyClient::ReturnQueuedChunk.build(data_that_doesnt_match)
|
35
|
+
# => nil
|
19
36
|
```
|
20
37
|
|
38
|
+
#### Parameters
|
39
|
+
|
40
|
+
| Name | Type | Description |
|
41
|
+
| ---- | ---- | ----------- |
|
42
|
+
| **data** | **Mixed** | data to be matched against the list of oneOf items |
|
43
|
+
|
44
|
+
#### Return type
|
45
|
+
|
46
|
+
- `BatchQueuedChunkResponse`
|
47
|
+
- `SingleQueuedChunkResponse`
|
48
|
+
- `nil` (if no type matches)
|
49
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# TrieveRubyClient::SingleQueuedChunkResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **chunk_metadata** | [**ChunkMetadata**](ChunkMetadata.md) | | |
|
8
|
+
| **pos_in_queue** | **Integer** | The current position the last access item is in the queue | |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'trieve_ruby_client'
|
14
|
+
|
15
|
+
instance = TrieveRubyClient::SingleQueuedChunkResponse.new(
|
16
|
+
chunk_metadata: null,
|
17
|
+
pos_in_queue: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
data/docs/StripeApi.md
CHANGED
@@ -1,20 +1,22 @@
|
|
1
1
|
# TrieveRubyClient::StripeApi
|
2
2
|
|
3
|
-
All URIs are relative to *http://localhost*
|
3
|
+
All URIs are relative to *http://localhost:8090*
|
4
4
|
|
5
5
|
| Method | HTTP request | Description |
|
6
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} |
|
7
|
+
| [**cancel_subscription**](StripeApi.md#cancel_subscription) | **DELETE** /api/stripe/subscription/{subscription_id} | Cancel Subscription |
|
8
|
+
| [**direct_to_payment_link**](StripeApi.md#direct_to_payment_link) | **GET** /api/stripe/payment_link/{plan_id}/{organization_id} | Checkout |
|
9
|
+
| [**get_all_plans**](StripeApi.md#get_all_plans) | **GET** /api/stripe/plans | Get All Plans |
|
10
|
+
| [**update_subscription_plan**](StripeApi.md#update_subscription_plan) | **PATCH** /api/stripe/subscription_plan/{subscription_id}/{plan_id} | Update Subscription Plan |
|
11
11
|
|
12
12
|
|
13
13
|
## cancel_subscription
|
14
14
|
|
15
15
|
> cancel_subscription(tr_organization, subscription_id)
|
16
16
|
|
17
|
+
Cancel Subscription
|
17
18
|
|
19
|
+
Cancel Subscription Cancel a subscription by its id
|
18
20
|
|
19
21
|
### Examples
|
20
22
|
|
@@ -34,7 +36,7 @@ tr_organization = 'tr_organization_example' # String | The organization id to us
|
|
34
36
|
subscription_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | id of the subscription you want to cancel
|
35
37
|
|
36
38
|
begin
|
37
|
-
|
39
|
+
# Cancel Subscription
|
38
40
|
api_instance.cancel_subscription(tr_organization, subscription_id)
|
39
41
|
rescue TrieveRubyClient::ApiError => e
|
40
42
|
puts "Error when calling StripeApi->cancel_subscription: #{e}"
|
@@ -49,7 +51,7 @@ This returns an Array which contains the response data (`nil` in this case), sta
|
|
49
51
|
|
50
52
|
```ruby
|
51
53
|
begin
|
52
|
-
|
54
|
+
# Cancel Subscription
|
53
55
|
data, status_code, headers = api_instance.cancel_subscription_with_http_info(tr_organization, subscription_id)
|
54
56
|
p status_code # => 2xx
|
55
57
|
p headers # => { ... }
|
@@ -84,7 +86,9 @@ nil (empty response body)
|
|
84
86
|
|
85
87
|
> direct_to_payment_link(plan_id, organization_id)
|
86
88
|
|
89
|
+
Checkout
|
87
90
|
|
91
|
+
Checkout Get a direct link to the stripe checkout page for the plan and organization
|
88
92
|
|
89
93
|
### Examples
|
90
94
|
|
@@ -97,7 +101,7 @@ plan_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | id of the plan you w
|
|
97
101
|
organization_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | id of the organization you want to subscribe to the plan
|
98
102
|
|
99
103
|
begin
|
100
|
-
|
104
|
+
# Checkout
|
101
105
|
api_instance.direct_to_payment_link(plan_id, organization_id)
|
102
106
|
rescue TrieveRubyClient::ApiError => e
|
103
107
|
puts "Error when calling StripeApi->direct_to_payment_link: #{e}"
|
@@ -112,7 +116,7 @@ This returns an Array which contains the response data (`nil` in this case), sta
|
|
112
116
|
|
113
117
|
```ruby
|
114
118
|
begin
|
115
|
-
|
119
|
+
# Checkout
|
116
120
|
data, status_code, headers = api_instance.direct_to_payment_link_with_http_info(plan_id, organization_id)
|
117
121
|
p status_code # => 2xx
|
118
122
|
p headers # => { ... }
|
@@ -147,7 +151,9 @@ No authorization required
|
|
147
151
|
|
148
152
|
> <Array<StripePlan>> get_all_plans
|
149
153
|
|
154
|
+
Get All Plans
|
150
155
|
|
156
|
+
Get All Plans Get a list of all plans
|
151
157
|
|
152
158
|
### Examples
|
153
159
|
|
@@ -158,7 +164,7 @@ require 'trieve_ruby_client'
|
|
158
164
|
api_instance = TrieveRubyClient::StripeApi.new
|
159
165
|
|
160
166
|
begin
|
161
|
-
|
167
|
+
# Get All Plans
|
162
168
|
result = api_instance.get_all_plans
|
163
169
|
p result
|
164
170
|
rescue TrieveRubyClient::ApiError => e
|
@@ -174,7 +180,7 @@ This returns an Array which contains the response data, status code and headers.
|
|
174
180
|
|
175
181
|
```ruby
|
176
182
|
begin
|
177
|
-
|
183
|
+
# Get All Plans
|
178
184
|
data, status_code, headers = api_instance.get_all_plans_with_http_info
|
179
185
|
p status_code # => 2xx
|
180
186
|
p headers # => { ... }
|
@@ -206,7 +212,9 @@ No authorization required
|
|
206
212
|
|
207
213
|
> update_subscription_plan(tr_organization, subscription_id, plan_id)
|
208
214
|
|
215
|
+
Update Subscription Plan
|
209
216
|
|
217
|
+
Update Subscription Plan Update a subscription to a new plan
|
210
218
|
|
211
219
|
### Examples
|
212
220
|
|
@@ -227,7 +235,7 @@ subscription_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | id of the su
|
|
227
235
|
plan_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | id of the plan you want to subscribe to
|
228
236
|
|
229
237
|
begin
|
230
|
-
|
238
|
+
# Update Subscription Plan
|
231
239
|
api_instance.update_subscription_plan(tr_organization, subscription_id, plan_id)
|
232
240
|
rescue TrieveRubyClient::ApiError => e
|
233
241
|
puts "Error when calling StripeApi->update_subscription_plan: #{e}"
|
@@ -242,7 +250,7 @@ This returns an Array which contains the response data (`nil` in this case), sta
|
|
242
250
|
|
243
251
|
```ruby
|
244
252
|
begin
|
245
|
-
|
253
|
+
# Update Subscription Plan
|
246
254
|
data, status_code, headers = api_instance.update_subscription_plan_with_http_info(tr_organization, subscription_id, plan_id)
|
247
255
|
p status_code # => 2xx
|
248
256
|
p headers # => { ... }
|
data/docs/TopicApi.md
CHANGED
@@ -1,22 +1,22 @@
|
|
1
1
|
# TrieveRubyClient::TopicApi
|
2
2
|
|
3
|
-
All URIs are relative to *http://localhost*
|
3
|
+
All URIs are relative to *http://localhost:8090*
|
4
4
|
|
5
5
|
| Method | HTTP request | Description |
|
6
6
|
| ------ | ------------ | ----------- |
|
7
|
-
| [**create_topic**](TopicApi.md#create_topic) | **POST** /api/topic |
|
8
|
-
| [**delete_topic**](TopicApi.md#delete_topic) | **DELETE** /api/topic |
|
9
|
-
| [**get_all_topics_for_user**](TopicApi.md#get_all_topics_for_user) | **GET** /api/topic/user/{user_id} |
|
10
|
-
| [**update_topic**](TopicApi.md#update_topic) | **PUT** /api/topic |
|
7
|
+
| [**create_topic**](TopicApi.md#create_topic) | **POST** /api/topic | Create Topic |
|
8
|
+
| [**delete_topic**](TopicApi.md#delete_topic) | **DELETE** /api/topic | Delete Topic |
|
9
|
+
| [**get_all_topics_for_user**](TopicApi.md#get_all_topics_for_user) | **GET** /api/topic/user/{user_id} | Get All Topics for User |
|
10
|
+
| [**update_topic**](TopicApi.md#update_topic) | **PUT** /api/topic | Update Topic |
|
11
11
|
|
12
12
|
|
13
13
|
## create_topic
|
14
14
|
|
15
15
|
> <Topic> create_topic(tr_dataset, create_topic_data)
|
16
16
|
|
17
|
-
|
17
|
+
Create Topic
|
18
18
|
|
19
|
-
|
19
|
+
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.
|
20
20
|
|
21
21
|
### Examples
|
22
22
|
|
@@ -36,7 +36,7 @@ tr_dataset = 'tr_dataset_example' # String | The dataset id to use for the reque
|
|
36
36
|
create_topic_data = TrieveRubyClient::CreateTopicData.new # CreateTopicData | JSON request payload to create chat topic
|
37
37
|
|
38
38
|
begin
|
39
|
-
#
|
39
|
+
# Create Topic
|
40
40
|
result = api_instance.create_topic(tr_dataset, create_topic_data)
|
41
41
|
p result
|
42
42
|
rescue TrieveRubyClient::ApiError => e
|
@@ -52,7 +52,7 @@ This returns an Array which contains the response data, status code and headers.
|
|
52
52
|
|
53
53
|
```ruby
|
54
54
|
begin
|
55
|
-
#
|
55
|
+
# Create Topic
|
56
56
|
data, status_code, headers = api_instance.create_topic_with_http_info(tr_dataset, create_topic_data)
|
57
57
|
p status_code # => 2xx
|
58
58
|
p headers # => { ... }
|
@@ -87,9 +87,9 @@ end
|
|
87
87
|
|
88
88
|
> delete_topic(tr_dataset, delete_topic_data)
|
89
89
|
|
90
|
-
|
90
|
+
Delete Topic
|
91
91
|
|
92
|
-
|
92
|
+
Delete Topic Delete an existing chat topic. When a topic is deleted, all associated chat messages are also deleted.
|
93
93
|
|
94
94
|
### Examples
|
95
95
|
|
@@ -109,7 +109,7 @@ tr_dataset = 'tr_dataset_example' # String | The dataset id to use for the reque
|
|
109
109
|
delete_topic_data = TrieveRubyClient::DeleteTopicData.new({topic_id: 'topic_id_example'}) # DeleteTopicData | JSON request payload to delete a chat topic
|
110
110
|
|
111
111
|
begin
|
112
|
-
#
|
112
|
+
# Delete Topic
|
113
113
|
api_instance.delete_topic(tr_dataset, delete_topic_data)
|
114
114
|
rescue TrieveRubyClient::ApiError => e
|
115
115
|
puts "Error when calling TopicApi->delete_topic: #{e}"
|
@@ -124,7 +124,7 @@ This returns an Array which contains the response data (`nil` in this case), sta
|
|
124
124
|
|
125
125
|
```ruby
|
126
126
|
begin
|
127
|
-
#
|
127
|
+
# Delete Topic
|
128
128
|
data, status_code, headers = api_instance.delete_topic_with_http_info(tr_dataset, delete_topic_data)
|
129
129
|
p status_code # => 2xx
|
130
130
|
p headers # => { ... }
|
@@ -159,9 +159,9 @@ nil (empty response body)
|
|
159
159
|
|
160
160
|
> <Array<Topic>> get_all_topics_for_user(user_id, tr_dataset)
|
161
161
|
|
162
|
-
|
162
|
+
Get All Topics for User
|
163
163
|
|
164
|
-
|
164
|
+
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.
|
165
165
|
|
166
166
|
### Examples
|
167
167
|
|
@@ -181,7 +181,7 @@ user_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | The id of the user t
|
|
181
181
|
tr_dataset = 'tr_dataset_example' # String | The dataset id to use for the request
|
182
182
|
|
183
183
|
begin
|
184
|
-
#
|
184
|
+
# Get All Topics for User
|
185
185
|
result = api_instance.get_all_topics_for_user(user_id, tr_dataset)
|
186
186
|
p result
|
187
187
|
rescue TrieveRubyClient::ApiError => e
|
@@ -197,7 +197,7 @@ This returns an Array which contains the response data, status code and headers.
|
|
197
197
|
|
198
198
|
```ruby
|
199
199
|
begin
|
200
|
-
#
|
200
|
+
# Get All Topics for User
|
201
201
|
data, status_code, headers = api_instance.get_all_topics_for_user_with_http_info(user_id, tr_dataset)
|
202
202
|
p status_code # => 2xx
|
203
203
|
p headers # => { ... }
|
@@ -232,9 +232,9 @@ end
|
|
232
232
|
|
233
233
|
> update_topic(tr_dataset, update_topic_data)
|
234
234
|
|
235
|
-
|
235
|
+
Update Topic
|
236
236
|
|
237
|
-
|
237
|
+
Update Topic Update an existing chat topic. Currently, only the name of the topic can be updated.
|
238
238
|
|
239
239
|
### Examples
|
240
240
|
|
@@ -254,7 +254,7 @@ tr_dataset = 'tr_dataset_example' # String | The dataset id to use for the reque
|
|
254
254
|
update_topic_data = TrieveRubyClient::UpdateTopicData.new({name: 'name_example', topic_id: 'topic_id_example'}) # UpdateTopicData | JSON request payload to update a chat topic
|
255
255
|
|
256
256
|
begin
|
257
|
-
#
|
257
|
+
# Update Topic
|
258
258
|
api_instance.update_topic(tr_dataset, update_topic_data)
|
259
259
|
rescue TrieveRubyClient::ApiError => e
|
260
260
|
puts "Error when calling TopicApi->update_topic: #{e}"
|
@@ -269,7 +269,7 @@ This returns an Array which contains the response data (`nil` in this case), sta
|
|
269
269
|
|
270
270
|
```ruby
|
271
271
|
begin
|
272
|
-
#
|
272
|
+
# Update Topic
|
273
273
|
data, status_code, headers = api_instance.update_topic_with_http_info(tr_dataset, update_topic_data)
|
274
274
|
p status_code # => 2xx
|
275
275
|
p headers # => { ... }
|