trieve_ruby_client 0.5.0 → 0.6.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.
Files changed (172) hide show
  1. checksums.yaml +4 -4
  2. data/GENERATE_COMMAND.txt +1 -0
  3. data/README.md +22 -11
  4. data/docs/AddChunkToGroupData.md +4 -2
  5. data/docs/AuthApi.md +13 -7
  6. data/docs/ChunkApi.md +9 -9
  7. data/docs/ChunkGroup.md +4 -0
  8. data/docs/ChunkGroupApi.md +36 -27
  9. data/docs/CreateChunkGroupData.md +4 -0
  10. data/docs/DatasetApi.md +11 -11
  11. data/docs/EventsApi.md +2 -2
  12. data/docs/FileApi.md +3 -3
  13. data/docs/GroupScoreChunkDTO.md +2 -0
  14. data/docs/GroupSlimChunksDTO.md +20 -0
  15. data/docs/HealthApi.md +1 -1
  16. data/docs/InvitationApi.md +1 -1
  17. data/docs/MessageApi.md +1 -1
  18. data/docs/OrganizationApi.md +1 -1
  19. data/docs/Range.md +4 -4
  20. data/docs/RangeCondition.md +49 -0
  21. data/docs/ReccomendGroupChunksRequest.md +3 -1
  22. data/docs/RecommendChunksRequest.md +5 -1
  23. data/docs/RecommendChunksResponseTypes.md +49 -0
  24. data/docs/RecommendGroupChunkResponseTypes.md +49 -0
  25. data/docs/RecommendGroupChunksRequest.md +34 -0
  26. data/docs/ScoreSlimChunks.md +20 -0
  27. data/docs/SearchChunkData.md +3 -1
  28. data/docs/SearchChunkResponseTypes.md +49 -0
  29. data/docs/SearchGroupSlimChunksResult.md +22 -0
  30. data/docs/SearchOverGroupsData.md +6 -4
  31. data/docs/SearchOverGroupsResponseTypes.md +49 -0
  32. data/docs/SearchOverGroupsSlimChunksResponseBody.md +20 -0
  33. data/docs/SearchSlimChunkQueryResponseBody.md +20 -0
  34. data/docs/SearchWithinGroupData.md +3 -1
  35. data/docs/SearchWithinGroupResponseTypes.md +49 -0
  36. data/docs/SlimChunkMetadata.md +36 -0
  37. data/docs/SlimUser.md +1 -7
  38. data/docs/StripeApi.md +1 -1
  39. data/docs/TopicApi.md +9 -9
  40. data/docs/UpdateChunkData.md +2 -0
  41. data/docs/UpdateChunkGroupData.md +4 -0
  42. data/docs/UpdateGroupByTrackingIDData.md +4 -0
  43. data/docs/UpdateUserData.md +1 -7
  44. data/docs/UserApi.md +9 -9
  45. data/lib/trieve_ruby_client/api/auth_api.rb +13 -11
  46. data/lib/trieve_ruby_client/api/chunk_api.rb +7 -7
  47. data/lib/trieve_ruby_client/api/chunk_group_api.rb +38 -31
  48. data/lib/trieve_ruby_client/api/dataset_api.rb +17 -22
  49. data/lib/trieve_ruby_client/api/events_api.rb +3 -3
  50. data/lib/trieve_ruby_client/api/file_api.rb +5 -5
  51. data/lib/trieve_ruby_client/api/health_api.rb +1 -1
  52. data/lib/trieve_ruby_client/api/invitation_api.rb +1 -1
  53. data/lib/trieve_ruby_client/api/message_api.rb +1 -1
  54. data/lib/trieve_ruby_client/api/organization_api.rb +1 -1
  55. data/lib/trieve_ruby_client/api/stripe_api.rb +1 -1
  56. data/lib/trieve_ruby_client/api/topic_api.rb +11 -16
  57. data/lib/trieve_ruby_client/api/user_api.rb +11 -16
  58. data/lib/trieve_ruby_client/api_client.rb +1 -1
  59. data/lib/trieve_ruby_client/api_error.rb +1 -1
  60. data/lib/trieve_ruby_client/configuration.rb +7 -7
  61. data/lib/trieve_ruby_client/models/add_chunk_to_group_data.rb +17 -12
  62. data/lib/trieve_ruby_client/models/api_key_dto.rb +1 -1
  63. data/lib/trieve_ruby_client/models/auth_query.rb +1 -1
  64. data/lib/trieve_ruby_client/models/batch_queued_chunk_response.rb +1 -1
  65. data/lib/trieve_ruby_client/models/bookmark_data.rb +1 -1
  66. data/lib/trieve_ruby_client/models/bookmark_group_result.rb +1 -1
  67. data/lib/trieve_ruby_client/models/chat_message_proxy.rb +1 -1
  68. data/lib/trieve_ruby_client/models/chunk_data.rb +1 -1
  69. data/lib/trieve_ruby_client/models/chunk_filter.rb +1 -1
  70. data/lib/trieve_ruby_client/models/chunk_group.rb +22 -2
  71. data/lib/trieve_ruby_client/models/chunk_group_and_file.rb +1 -1
  72. data/lib/trieve_ruby_client/models/chunk_metadata.rb +1 -1
  73. data/lib/trieve_ruby_client/models/chunk_metadata_with_file_data.rb +1 -1
  74. data/lib/trieve_ruby_client/models/client_dataset_configuration.rb +1 -1
  75. data/lib/trieve_ruby_client/models/create_chunk_data.rb +1 -1
  76. data/lib/trieve_ruby_client/models/create_chunk_group_data.rb +26 -2
  77. data/lib/trieve_ruby_client/models/create_dataset_request.rb +1 -1
  78. data/lib/trieve_ruby_client/models/create_message_data.rb +1 -1
  79. data/lib/trieve_ruby_client/models/create_organization_data.rb +1 -1
  80. data/lib/trieve_ruby_client/models/create_topic_data.rb +1 -1
  81. data/lib/trieve_ruby_client/models/dataset.rb +1 -1
  82. data/lib/trieve_ruby_client/models/dataset_and_usage.rb +1 -1
  83. data/lib/trieve_ruby_client/models/dataset_dto.rb +1 -1
  84. data/lib/trieve_ruby_client/models/dataset_usage_count.rb +1 -1
  85. data/lib/trieve_ruby_client/models/delete_topic_data.rb +1 -1
  86. data/lib/trieve_ruby_client/models/delete_user_api_key_request.rb +1 -1
  87. data/lib/trieve_ruby_client/models/edit_message_data.rb +1 -1
  88. data/lib/trieve_ruby_client/models/error_response_body.rb +1 -1
  89. data/lib/trieve_ruby_client/models/event.rb +1 -1
  90. data/lib/trieve_ruby_client/models/event_return.rb +1 -1
  91. data/lib/trieve_ruby_client/models/field_condition.rb +1 -1
  92. data/lib/trieve_ruby_client/models/file.rb +1 -1
  93. data/lib/trieve_ruby_client/models/file_dto.rb +1 -1
  94. data/lib/trieve_ruby_client/models/generate_chunks_request.rb +1 -1
  95. data/lib/trieve_ruby_client/models/get_events_data.rb +1 -1
  96. data/lib/trieve_ruby_client/models/get_groups_for_chunks_data.rb +1 -1
  97. data/lib/trieve_ruby_client/models/group_data.rb +1 -1
  98. data/lib/trieve_ruby_client/models/group_score_chunk_dto.rb +12 -2
  99. data/lib/trieve_ruby_client/models/group_slim_chunks_dto.rb +239 -0
  100. data/lib/trieve_ruby_client/models/invitation_data.rb +1 -1
  101. data/lib/trieve_ruby_client/models/match_condition.rb +1 -1
  102. data/lib/trieve_ruby_client/models/message.rb +1 -1
  103. data/lib/trieve_ruby_client/models/organization.rb +1 -1
  104. data/lib/trieve_ruby_client/models/organization_usage_count.rb +1 -1
  105. data/lib/trieve_ruby_client/models/range.rb +5 -5
  106. data/lib/trieve_ruby_client/models/range_condition.rb +105 -0
  107. data/lib/trieve_ruby_client/models/reccomend_group_chunks_request.rb +17 -6
  108. data/lib/trieve_ruby_client/models/recommend_chunks_request.rb +28 -6
  109. data/lib/trieve_ruby_client/models/recommend_chunks_response_types.rb +105 -0
  110. data/lib/trieve_ruby_client/models/recommend_group_chunk_response_types.rb +105 -0
  111. data/lib/trieve_ruby_client/models/recommend_group_chunks_request.rb +341 -0
  112. data/lib/trieve_ruby_client/models/regenerate_message_data.rb +1 -1
  113. data/lib/trieve_ruby_client/models/return_queued_chunk.rb +1 -1
  114. data/lib/trieve_ruby_client/models/score_chunk_dto.rb +1 -1
  115. data/lib/trieve_ruby_client/models/score_slim_chunks.rb +239 -0
  116. data/lib/trieve_ruby_client/models/search_chunk_data.rb +14 -3
  117. data/lib/trieve_ruby_client/models/search_chunk_query_response_body.rb +1 -1
  118. data/lib/trieve_ruby_client/models/search_chunk_response_types.rb +105 -0
  119. data/lib/trieve_ruby_client/models/search_group_slim_chunks_result.rb +255 -0
  120. data/lib/trieve_ruby_client/models/search_groups_result.rb +1 -1
  121. data/lib/trieve_ruby_client/models/search_over_groups_data.rb +19 -7
  122. data/lib/trieve_ruby_client/models/search_over_groups_response_body.rb +1 -1
  123. data/lib/trieve_ruby_client/models/search_over_groups_response_types.rb +105 -0
  124. data/lib/trieve_ruby_client/models/search_over_groups_slim_chunks_response_body.rb +239 -0
  125. data/lib/trieve_ruby_client/models/search_slim_chunk_query_response_body.rb +239 -0
  126. data/lib/trieve_ruby_client/models/search_within_group_data.rb +14 -3
  127. data/lib/trieve_ruby_client/models/search_within_group_response_types.rb +105 -0
  128. data/lib/trieve_ruby_client/models/set_user_api_key_request.rb +1 -1
  129. data/lib/trieve_ruby_client/models/set_user_api_key_response.rb +1 -1
  130. data/lib/trieve_ruby_client/models/single_queued_chunk_response.rb +1 -1
  131. data/lib/trieve_ruby_client/models/slim_chunk_metadata.rb +329 -0
  132. data/lib/trieve_ruby_client/models/slim_group.rb +1 -1
  133. data/lib/trieve_ruby_client/models/slim_user.rb +5 -41
  134. data/lib/trieve_ruby_client/models/stripe_plan.rb +1 -1
  135. data/lib/trieve_ruby_client/models/suggested_queries_request.rb +1 -1
  136. data/lib/trieve_ruby_client/models/suggested_queries_response.rb +1 -1
  137. data/lib/trieve_ruby_client/models/topic.rb +1 -1
  138. data/lib/trieve_ruby_client/models/update_chunk_by_tracking_id_data.rb +1 -1
  139. data/lib/trieve_ruby_client/models/update_chunk_data.rb +15 -2
  140. data/lib/trieve_ruby_client/models/update_chunk_group_data.rb +26 -2
  141. data/lib/trieve_ruby_client/models/update_dataset_request.rb +1 -1
  142. data/lib/trieve_ruby_client/models/update_group_by_tracking_id_data.rb +26 -2
  143. data/lib/trieve_ruby_client/models/update_organization_data.rb +1 -1
  144. data/lib/trieve_ruby_client/models/update_topic_data.rb +1 -1
  145. data/lib/trieve_ruby_client/models/update_user_data.rb +6 -39
  146. data/lib/trieve_ruby_client/models/upload_file_data.rb +1 -1
  147. data/lib/trieve_ruby_client/models/upload_file_result.rb +1 -1
  148. data/lib/trieve_ruby_client/models/user_organization.rb +1 -1
  149. data/lib/trieve_ruby_client/version.rb +2 -2
  150. data/lib/trieve_ruby_client.rb +14 -3
  151. data/openapi-generator.yaml +1 -1
  152. data/openapi.json +679 -261
  153. data/spec/models/group_slim_chunks_dto_spec.rb +42 -0
  154. data/spec/models/range_condition_spec.rb +32 -0
  155. data/spec/models/recommend_chunks_response_types_spec.rb +32 -0
  156. data/spec/models/recommend_group_chunk_response_types_spec.rb +32 -0
  157. data/spec/models/recommend_group_chunks_request_spec.rb +84 -0
  158. data/spec/models/score_slim_chunks_spec.rb +42 -0
  159. data/spec/models/search_chunk_response_types_spec.rb +32 -0
  160. data/spec/models/search_group_slim_chunks_result_spec.rb +48 -0
  161. data/spec/models/search_over_groups_response_types_spec.rb +32 -0
  162. data/spec/models/search_over_groups_slim_chunks_response_body_spec.rb +42 -0
  163. data/spec/models/search_slim_chunk_query_response_body_spec.rb +42 -0
  164. data/spec/models/search_within_group_response_types_spec.rb +32 -0
  165. data/spec/models/slim_chunk_metadata_spec.rb +90 -0
  166. data/spec/spec_helper.rb +1 -1
  167. data/trieve_ruby_client-0.5.0.gem +0 -0
  168. data/trieve_ruby_client-0.5.7.gem +0 -0
  169. data/trieve_ruby_client.gemspec +1 -1
  170. metadata +57 -4
  171. data/trieve_ruby_client-0.3.5.gem +0 -0
  172. data/trieve_ruby_client-0.4.0.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.5.0
6
+ The version of the OpenAPI document: 0.6.0
7
7
  Contact: developers@trieve.ai
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.4.0
@@ -96,35 +96,35 @@ module TrieveRubyClient
96
96
 
97
97
  # Delete Dataset
98
98
  # Delete Dataset Delete a dataset. The auth'ed user must be an owner of the organization to delete a dataset.
99
- # @param tr_organization [String] The organization id to use for the request
100
- # @param delete_dataset_request [DeleteDatasetRequest] JSON request payload to delete a dataset
99
+ # @param tr_dataset [String] The dataset id to use for the request
100
+ # @param dataset_id [String] The id of the dataset you want to delete.
101
101
  # @param [Hash] opts the optional parameters
102
102
  # @return [nil]
103
- def delete_dataset(tr_organization, delete_dataset_request, opts = {})
104
- delete_dataset_with_http_info(tr_organization, delete_dataset_request, opts)
103
+ def delete_dataset(tr_dataset, dataset_id, opts = {})
104
+ delete_dataset_with_http_info(tr_dataset, dataset_id, opts)
105
105
  nil
106
106
  end
107
107
 
108
108
  # Delete Dataset
109
109
  # Delete Dataset Delete a dataset. The auth'ed user must be an owner of the organization to delete a dataset.
110
- # @param tr_organization [String] The organization id to use for the request
111
- # @param delete_dataset_request [DeleteDatasetRequest] JSON request payload to delete a dataset
110
+ # @param tr_dataset [String] The dataset id to use for the request
111
+ # @param dataset_id [String] The id of the dataset you want to delete.
112
112
  # @param [Hash] opts the optional parameters
113
113
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
114
- def delete_dataset_with_http_info(tr_organization, delete_dataset_request, opts = {})
114
+ def delete_dataset_with_http_info(tr_dataset, dataset_id, opts = {})
115
115
  if @api_client.config.debugging
116
116
  @api_client.config.logger.debug 'Calling API: DatasetApi.delete_dataset ...'
117
117
  end
118
- # verify the required parameter 'tr_organization' is set
119
- if @api_client.config.client_side_validation && tr_organization.nil?
120
- fail ArgumentError, "Missing the required parameter 'tr_organization' when calling DatasetApi.delete_dataset"
118
+ # verify the required parameter 'tr_dataset' is set
119
+ if @api_client.config.client_side_validation && tr_dataset.nil?
120
+ fail ArgumentError, "Missing the required parameter 'tr_dataset' when calling DatasetApi.delete_dataset"
121
121
  end
122
- # verify the required parameter 'delete_dataset_request' is set
123
- if @api_client.config.client_side_validation && delete_dataset_request.nil?
124
- fail ArgumentError, "Missing the required parameter 'delete_dataset_request' when calling DatasetApi.delete_dataset"
122
+ # verify the required parameter 'dataset_id' is set
123
+ if @api_client.config.client_side_validation && dataset_id.nil?
124
+ fail ArgumentError, "Missing the required parameter 'dataset_id' when calling DatasetApi.delete_dataset"
125
125
  end
126
126
  # resource path
127
- local_var_path = '/api/dataset'
127
+ local_var_path = '/api/dataset/{dataset_id}'.sub('{' + 'dataset_id' + '}', CGI.escape(dataset_id.to_s))
128
128
 
129
129
  # query parameters
130
130
  query_params = opts[:query_params] || {}
@@ -133,18 +133,13 @@ module TrieveRubyClient
133
133
  header_params = opts[:header_params] || {}
134
134
  # HTTP header 'Accept' (if needed)
135
135
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
136
- # HTTP header 'Content-Type'
137
- content_type = @api_client.select_header_content_type(['application/json'])
138
- if !content_type.nil?
139
- header_params['Content-Type'] = content_type
140
- end
141
- header_params[:'TR-Organization'] = tr_organization
136
+ header_params[:'TR-Dataset'] = tr_dataset
142
137
 
143
138
  # form parameters
144
139
  form_params = opts[:form_params] || {}
145
140
 
146
141
  # http body (model)
147
- post_body = opts[:debug_body] || @api_client.object_to_http_body(delete_dataset_request)
142
+ post_body = opts[:debug_body]
148
143
 
149
144
  # return_type
150
145
  return_type = opts[:debug_return_type]
@@ -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.5.0
6
+ The version of the OpenAPI document: 0.6.0
7
7
  Contact: developers@trieve.ai
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.4.0
@@ -20,7 +20,7 @@ module TrieveRubyClient
20
20
  @api_client = api_client
21
21
  end
22
22
  # Get events for the dataset
23
- # Get events for the dataset Get events for the auth'ed user. Currently, this is only for events belonging to the auth'ed user. Soon, we plan to associate events to datasets instead of users.
23
+ # Get events for the dataset Get events for the dataset specified by the TR-Dataset header.
24
24
  # @param tr_dataset [String] The dataset id to use for the request
25
25
  # @param get_events_data [GetEventsData] JSON request payload to get events for a dataset
26
26
  # @param [Hash] opts the optional parameters
@@ -31,7 +31,7 @@ module TrieveRubyClient
31
31
  end
32
32
 
33
33
  # Get events for the dataset
34
- # Get events for the dataset Get events for the auth&#39;ed user. Currently, this is only for events belonging to the auth&#39;ed user. Soon, we plan to associate events to datasets instead of users.
34
+ # Get events for the dataset Get events for the dataset specified by the TR-Dataset header.
35
35
  # @param tr_dataset [String] The dataset id to use for the request
36
36
  # @param get_events_data [GetEventsData] JSON request payload to get events for a dataset
37
37
  # @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.5.0
6
+ The version of the OpenAPI document: 0.6.0
7
7
  Contact: developers@trieve.ai
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.4.0
@@ -20,7 +20,7 @@ module TrieveRubyClient
20
20
  @api_client = api_client
21
21
  end
22
22
  # Delete File
23
- # Delete File Delete a file from S3 attached to the server based on its id. This will disassociate chunks from the file, but will not delete the chunks. We plan to add support for deleting chunks in a release soon. Auth'ed user must be an admin or owner of the dataset's organization to upload a file.
23
+ # Delete File Delete a file from S3 attached to the server based on its id. This will disassociate chunks from the file, but only delete them all together if you specify delete_chunks to be true. Auth'ed user must be an admin or owner of the dataset's organization to delete a file.
24
24
  # @param tr_dataset [String] The dataset id to use for the request
25
25
  # @param file_id [String] The id of the file to delete
26
26
  # @param delete_chunks [Boolean] Whether or not to delete the chunks associated with the file
@@ -32,7 +32,7 @@ module TrieveRubyClient
32
32
  end
33
33
 
34
34
  # Delete File
35
- # Delete File Delete a file from S3 attached to the server based on its id. This will disassociate chunks from the file, but will not delete the chunks. We plan to add support for deleting chunks in a release soon. Auth&#39;ed user must be an admin or owner of the dataset&#39;s organization to upload a file.
35
+ # Delete File Delete a file from S3 attached to the server based on its id. This will disassociate chunks from the file, but only delete them all together if you specify delete_chunks to be true. Auth&#39;ed user must be an admin or owner of the dataset&#39;s organization to delete a file.
36
36
  # @param tr_dataset [String] The dataset id to use for the request
37
37
  # @param file_id [String] The id of the file to delete
38
38
  # @param delete_chunks [Boolean] Whether or not to delete the chunks associated with the file
@@ -177,7 +177,7 @@ module TrieveRubyClient
177
177
  end
178
178
 
179
179
  # Get File
180
- # Get File Download a file from S3 attached to the server based on its id. We plan to add support for getting signed S3 URLs to download from S3 directly in a release soon.
180
+ # Get File Download a file based on its id.
181
181
  # @param tr_dataset [String] The dataset id to use for the request
182
182
  # @param file_id [String] The id of the file to fetch
183
183
  # @param [Hash] opts the optional parameters
@@ -188,7 +188,7 @@ module TrieveRubyClient
188
188
  end
189
189
 
190
190
  # Get File
191
- # Get File Download a file from S3 attached to the server based on its id. We plan to add support for getting signed S3 URLs to download from S3 directly in a release soon.
191
+ # Get File Download a file based on its id.
192
192
  # @param tr_dataset [String] The dataset id to use for the request
193
193
  # @param file_id [String] The id of the file to fetch
194
194
  # @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.5.0
6
+ The version of the OpenAPI document: 0.6.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.5.0
6
+ The version of the OpenAPI document: 0.6.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.5.0
6
+ The version of the OpenAPI document: 0.6.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.5.0
6
+ The version of the OpenAPI document: 0.6.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.5.0
6
+ The version of the OpenAPI document: 0.6.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.5.0
6
+ The version of the OpenAPI document: 0.6.0
7
7
  Contact: developers@trieve.ai
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.4.0
@@ -97,21 +97,21 @@ module TrieveRubyClient
97
97
  # Delete Topic
98
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
- # @param delete_topic_data [DeleteTopicData] JSON request payload to delete a chat topic
100
+ # @param topic_id [String] The id of the topic you want to delete.
101
101
  # @param [Hash] opts the optional parameters
102
102
  # @return [nil]
103
- def delete_topic(tr_dataset, delete_topic_data, opts = {})
104
- delete_topic_with_http_info(tr_dataset, delete_topic_data, opts)
103
+ def delete_topic(tr_dataset, topic_id, opts = {})
104
+ delete_topic_with_http_info(tr_dataset, topic_id, opts)
105
105
  nil
106
106
  end
107
107
 
108
108
  # Delete Topic
109
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
- # @param delete_topic_data [DeleteTopicData] JSON request payload to delete a chat topic
111
+ # @param topic_id [String] The id of the topic you want to delete.
112
112
  # @param [Hash] opts the optional parameters
113
113
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
114
- def delete_topic_with_http_info(tr_dataset, delete_topic_data, opts = {})
114
+ def delete_topic_with_http_info(tr_dataset, topic_id, opts = {})
115
115
  if @api_client.config.debugging
116
116
  @api_client.config.logger.debug 'Calling API: TopicApi.delete_topic ...'
117
117
  end
@@ -119,12 +119,12 @@ module TrieveRubyClient
119
119
  if @api_client.config.client_side_validation && tr_dataset.nil?
120
120
  fail ArgumentError, "Missing the required parameter 'tr_dataset' when calling TopicApi.delete_topic"
121
121
  end
122
- # verify the required parameter 'delete_topic_data' is set
123
- if @api_client.config.client_side_validation && delete_topic_data.nil?
124
- fail ArgumentError, "Missing the required parameter 'delete_topic_data' when calling TopicApi.delete_topic"
122
+ # verify the required parameter 'topic_id' is set
123
+ if @api_client.config.client_side_validation && topic_id.nil?
124
+ fail ArgumentError, "Missing the required parameter 'topic_id' when calling TopicApi.delete_topic"
125
125
  end
126
126
  # resource path
127
- local_var_path = '/api/topic'
127
+ local_var_path = '/api/topic/{topic_id}'.sub('{' + 'topic_id' + '}', CGI.escape(topic_id.to_s))
128
128
 
129
129
  # query parameters
130
130
  query_params = opts[:query_params] || {}
@@ -133,18 +133,13 @@ module TrieveRubyClient
133
133
  header_params = opts[:header_params] || {}
134
134
  # HTTP header 'Accept' (if needed)
135
135
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
136
- # HTTP header 'Content-Type'
137
- content_type = @api_client.select_header_content_type(['application/json'])
138
- if !content_type.nil?
139
- header_params['Content-Type'] = content_type
140
- end
141
136
  header_params[:'TR-Dataset'] = tr_dataset
142
137
 
143
138
  # form parameters
144
139
  form_params = opts[:form_params] || {}
145
140
 
146
141
  # http body (model)
147
- post_body = opts[:debug_body] || @api_client.object_to_http_body(delete_topic_data)
142
+ post_body = opts[:debug_body]
148
143
 
149
144
  # return_type
150
145
  return_type = opts[:debug_return_type]
@@ -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.5.0
6
+ The version of the OpenAPI document: 0.6.0
7
7
  Contact: developers@trieve.ai
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.4.0
@@ -21,29 +21,29 @@ module TrieveRubyClient
21
21
  end
22
22
  # Delete User Api Key
23
23
  # Delete User Api Key Delete an api key for the auth'ed user.
24
- # @param delete_user_api_key_request [DeleteUserApiKeyRequest] JSON request payload to delete a user api key
24
+ # @param api_key_id [String] The id of the api key to delete
25
25
  # @param [Hash] opts the optional parameters
26
26
  # @return [Array<ApiKeyDTO>]
27
- def delete_user_api_key(delete_user_api_key_request, opts = {})
28
- data, _status_code, _headers = delete_user_api_key_with_http_info(delete_user_api_key_request, opts)
27
+ def delete_user_api_key(api_key_id, opts = {})
28
+ data, _status_code, _headers = delete_user_api_key_with_http_info(api_key_id, opts)
29
29
  data
30
30
  end
31
31
 
32
32
  # Delete User Api Key
33
33
  # Delete User Api Key Delete an api key for the auth&#39;ed user.
34
- # @param delete_user_api_key_request [DeleteUserApiKeyRequest] JSON request payload to delete a user api key
34
+ # @param api_key_id [String] The id of the api key to delete
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
37
- def delete_user_api_key_with_http_info(delete_user_api_key_request, opts = {})
37
+ def delete_user_api_key_with_http_info(api_key_id, opts = {})
38
38
  if @api_client.config.debugging
39
39
  @api_client.config.logger.debug 'Calling API: UserApi.delete_user_api_key ...'
40
40
  end
41
- # verify the required parameter 'delete_user_api_key_request' is set
42
- if @api_client.config.client_side_validation && delete_user_api_key_request.nil?
43
- fail ArgumentError, "Missing the required parameter 'delete_user_api_key_request' when calling UserApi.delete_user_api_key"
41
+ # verify the required parameter 'api_key_id' is set
42
+ if @api_client.config.client_side_validation && api_key_id.nil?
43
+ fail ArgumentError, "Missing the required parameter 'api_key_id' when calling UserApi.delete_user_api_key"
44
44
  end
45
45
  # resource path
46
- local_var_path = '/api/user/delete_api_key'
46
+ local_var_path = '/api/user/delete_api_key/{api_key_id}'.sub('{' + 'api_key_id' + '}', CGI.escape(api_key_id.to_s))
47
47
 
48
48
  # query parameters
49
49
  query_params = opts[:query_params] || {}
@@ -52,17 +52,12 @@ module TrieveRubyClient
52
52
  header_params = opts[:header_params] || {}
53
53
  # HTTP header 'Accept' (if needed)
54
54
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
55
- # HTTP header 'Content-Type'
56
- content_type = @api_client.select_header_content_type(['application/json'])
57
- if !content_type.nil?
58
- header_params['Content-Type'] = content_type
59
- end
60
55
 
61
56
  # form parameters
62
57
  form_params = opts[:form_params] || {}
63
58
 
64
59
  # http body (model)
65
- post_body = opts[:debug_body] || @api_client.object_to_http_body(delete_user_api_key_request)
60
+ post_body = opts[:debug_body]
66
61
 
67
62
  # return_type
68
63
  return_type = opts[:debug_return_type] || 'Array<ApiKeyDTO>'
@@ -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.5.0
6
+ The version of the OpenAPI document: 0.6.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.5.0
6
+ The version of the OpenAPI document: 0.6.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.5.0
6
+ The version of the OpenAPI document: 0.6.0
7
7
  Contact: developers@trieve.ai
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.4.0
@@ -149,8 +149,8 @@ module TrieveRubyClient
149
149
  attr_accessor :force_ending_format
150
150
 
151
151
  def initialize
152
- @scheme = 'http'
153
- @host = 'localhost:8090'
152
+ @scheme = 'https'
153
+ @host = 'api.trieve.ai'
154
154
  @base_path = ''
155
155
  @server_index = nil
156
156
  @server_operation_index = {}
@@ -247,13 +247,13 @@ module TrieveRubyClient
247
247
  # Returns an array of Server setting
248
248
  def server_settings
249
249
  [
250
- {
251
- url: "http://localhost:8090",
252
- description: "Local development server",
253
- },
254
250
  {
255
251
  url: "https://api.trieve.ai",
256
252
  description: "Production server",
253
+ },
254
+ {
255
+ url: "http://localhost:8090",
256
+ description: "Local development server",
257
257
  }
258
258
  ]
259
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.5.0
6
+ The version of the OpenAPI document: 0.6.0
7
7
  Contact: developers@trieve.ai
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.4.0
@@ -18,10 +18,14 @@ module TrieveRubyClient
18
18
  # Id of the chunk to make a member of the group.
19
19
  attr_accessor :chunk_id
20
20
 
21
+ # Tracking Id of the chunk to make a member of the group.
22
+ attr_accessor :tracking_id
23
+
21
24
  # Attribute mapping from ruby-style variable name to JSON key.
22
25
  def self.attribute_map
23
26
  {
24
- :'chunk_id' => :'chunk_id'
27
+ :'chunk_id' => :'chunk_id',
28
+ :'tracking_id' => :'tracking_id'
25
29
  }
26
30
  end
27
31
 
@@ -33,13 +37,16 @@ module TrieveRubyClient
33
37
  # Attribute type mapping.
34
38
  def self.openapi_types
35
39
  {
36
- :'chunk_id' => :'String'
40
+ :'chunk_id' => :'String',
41
+ :'tracking_id' => :'String'
37
42
  }
38
43
  end
39
44
 
40
45
  # List of attributes with nullable: true
41
46
  def self.openapi_nullable
42
47
  Set.new([
48
+ :'chunk_id',
49
+ :'tracking_id'
43
50
  ])
44
51
  end
45
52
 
@@ -60,8 +67,10 @@ module TrieveRubyClient
60
67
 
61
68
  if attributes.key?(:'chunk_id')
62
69
  self.chunk_id = attributes[:'chunk_id']
63
- else
64
- self.chunk_id = nil
70
+ end
71
+
72
+ if attributes.key?(:'tracking_id')
73
+ self.tracking_id = attributes[:'tracking_id']
65
74
  end
66
75
  end
67
76
 
@@ -70,10 +79,6 @@ module TrieveRubyClient
70
79
  def list_invalid_properties
71
80
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
72
81
  invalid_properties = Array.new
73
- if @chunk_id.nil?
74
- invalid_properties.push('invalid value for "chunk_id", chunk_id cannot be nil.')
75
- end
76
-
77
82
  invalid_properties
78
83
  end
79
84
 
@@ -81,7 +86,6 @@ module TrieveRubyClient
81
86
  # @return true if the model is valid
82
87
  def valid?
83
88
  warn '[DEPRECATED] the `valid?` method is obsolete'
84
- return false if @chunk_id.nil?
85
89
  true
86
90
  end
87
91
 
@@ -90,7 +94,8 @@ module TrieveRubyClient
90
94
  def ==(o)
91
95
  return true if self.equal?(o)
92
96
  self.class == o.class &&
93
- chunk_id == o.chunk_id
97
+ chunk_id == o.chunk_id &&
98
+ tracking_id == o.tracking_id
94
99
  end
95
100
 
96
101
  # @see the `==` method
@@ -102,7 +107,7 @@ module TrieveRubyClient
102
107
  # Calculates hash code according to all attributes.
103
108
  # @return [Integer] Hash code
104
109
  def hash
105
- [chunk_id].hash
110
+ [chunk_id, tracking_id].hash
106
111
  end
107
112
 
108
113
  # Builds the object from hash
@@ -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.5.0
6
+ The version of the OpenAPI document: 0.6.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.5.0
6
+ The version of the OpenAPI document: 0.6.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.5.0
6
+ The version of the OpenAPI document: 0.6.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.5.0
6
+ The version of the OpenAPI document: 0.6.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.5.0
6
+ The version of the OpenAPI document: 0.6.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.5.0
6
+ The version of the OpenAPI document: 0.6.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.5.0
6
+ The version of the OpenAPI document: 0.6.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.5.0
6
+ The version of the OpenAPI document: 0.6.0
7
7
  Contact: developers@trieve.ai
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.4.0