trieve_ruby_client 0.8.0 → 0.10.7

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 (229) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +39 -30
  3. data/docs/ApiKeyRespBody.md +32 -0
  4. data/docs/AutocompleteData.md +42 -0
  5. data/docs/AutocompleteReqPayload.md +50 -0
  6. data/docs/BoostPhrase.md +20 -0
  7. data/docs/ChunkApi.md +140 -66
  8. data/docs/ChunkData.md +2 -0
  9. data/docs/ChunkFilter.md +3 -3
  10. data/docs/ChunkGroup.md +1 -1
  11. data/docs/ChunkGroupApi.md +35 -33
  12. data/docs/ChunkMetadata.md +5 -3
  13. data/docs/ChunkMetadataStringTagSet.md +46 -0
  14. data/docs/ChunkMetadataTypes.md +51 -0
  15. data/docs/ChunkMetadataWithScore.md +0 -2
  16. data/docs/ChunkReqPayload.md +50 -0
  17. data/docs/ClientDatasetConfiguration.md +0 -2
  18. data/docs/ConditionType.md +49 -0
  19. data/docs/ContentChunkMetadata.md +32 -0
  20. data/docs/CreateChunkGroupReqPayload.md +28 -0
  21. data/docs/CreateChunkReqPayloadEnum.md +49 -0
  22. data/docs/CreateDatasetRequest.md +2 -2
  23. data/docs/CreateMessageData.md +2 -2
  24. data/docs/CreateMessageReqPayload.md +42 -0
  25. data/docs/CreateTopicReqPayload.md +22 -0
  26. data/docs/Dataset.md +2 -0
  27. data/docs/DatasetApi.md +236 -12
  28. data/docs/DateRange.md +24 -0
  29. data/docs/EditMessageReqPayload.md +44 -0
  30. data/docs/FieldCondition.md +2 -0
  31. data/docs/File.md +1 -1
  32. data/docs/FileApi.md +7 -7
  33. data/docs/GenerateChunksRequest.md +2 -0
  34. data/docs/GetDatasetsPagination.md +20 -0
  35. data/docs/GroupScoreSlimChunks.md +4 -0
  36. data/docs/HasIDCondition.md +20 -0
  37. data/docs/InvitationApi.md +1 -1
  38. data/docs/MatchCondition.md +3 -1
  39. data/docs/MessageApi.md +42 -42
  40. data/docs/Organization.md +2 -0
  41. data/docs/OrganizationApi.md +24 -25
  42. data/docs/RangeCondition.md +1 -3
  43. data/docs/RecommendChunksRequest.md +1 -1
  44. data/docs/RecommendGroupChunksRequest.md +1 -1
  45. data/docs/RegenerateMessageReqPayload.md +40 -0
  46. data/docs/RemoveChunkFromGroupReqPayload.md +18 -0
  47. data/docs/ScoreChunkDTO.md +3 -1
  48. data/docs/SearchChunkData.md +12 -6
  49. data/docs/SearchChunksReqPayload.md +54 -0
  50. data/docs/SearchOverGroupsData.md +12 -4
  51. data/docs/SearchWithinGroupData.md +16 -6
  52. data/docs/SetUserApiKeyRequest.md +4 -0
  53. data/docs/SlimChunkMetadata.md +4 -0
  54. data/docs/SuggestedQueriesReqPayload.md +18 -0
  55. data/docs/TopicApi.md +16 -16
  56. data/docs/UpdateChunkData.md +2 -0
  57. data/docs/UpdateChunkReqPayload.md +46 -0
  58. data/docs/UpdateDatasetRequest.md +2 -0
  59. data/docs/UpdateGroupByTrackingIDReqPayload.md +26 -0
  60. data/docs/UpdateTopicReqPayload.md +20 -0
  61. data/docs/UpdateUserOrgRoleData.md +1 -1
  62. data/docs/UploadFileReqPayload.md +40 -0
  63. data/docs/UserApi.md +7 -8
  64. data/lib/trieve_ruby_client/api/auth_api.rb +1 -1
  65. data/lib/trieve_ruby_client/api/chunk_api.rb +158 -83
  66. data/lib/trieve_ruby_client/api/chunk_group_api.rb +58 -51
  67. data/lib/trieve_ruby_client/api/dataset_api.rb +224 -15
  68. data/lib/trieve_ruby_client/api/events_api.rb +1 -1
  69. data/lib/trieve_ruby_client/api/file_api.rb +12 -12
  70. data/lib/trieve_ruby_client/api/health_api.rb +1 -1
  71. data/lib/trieve_ruby_client/api/invitation_api.rb +3 -3
  72. data/lib/trieve_ruby_client/api/message_api.rb +50 -50
  73. data/lib/trieve_ruby_client/api/organization_api.rb +27 -27
  74. data/lib/trieve_ruby_client/api/stripe_api.rb +1 -1
  75. data/lib/trieve_ruby_client/api/topic_api.rb +27 -27
  76. data/lib/trieve_ruby_client/api/user_api.rb +8 -8
  77. data/lib/trieve_ruby_client/api_client.rb +1 -1
  78. data/lib/trieve_ruby_client/api_error.rb +1 -1
  79. data/lib/trieve_ruby_client/configuration.rb +1 -1
  80. data/lib/trieve_ruby_client/models/add_chunk_to_group_data.rb +1 -1
  81. data/lib/trieve_ruby_client/models/api_key_dto.rb +1 -1
  82. data/lib/trieve_ruby_client/models/api_key_resp_body.rb +325 -0
  83. data/lib/trieve_ruby_client/models/auth_query.rb +1 -1
  84. data/lib/trieve_ruby_client/models/autocomplete_data.rb +378 -0
  85. data/lib/trieve_ruby_client/models/autocomplete_req_payload.rb +467 -0
  86. data/lib/trieve_ruby_client/models/batch_queued_chunk_response.rb +1 -1
  87. data/lib/trieve_ruby_client/models/bookmark_data.rb +1 -1
  88. data/lib/trieve_ruby_client/models/bookmark_group_result.rb +1 -1
  89. data/lib/trieve_ruby_client/models/boost_phrase.rb +240 -0
  90. data/lib/trieve_ruby_client/models/chat_message_proxy.rb +1 -1
  91. data/lib/trieve_ruby_client/models/chunk_data.rb +15 -2
  92. data/lib/trieve_ruby_client/models/chunk_filter.rb +4 -4
  93. data/lib/trieve_ruby_client/models/chunk_group.rb +5 -3
  94. data/lib/trieve_ruby_client/models/chunk_group_and_file.rb +1 -1
  95. data/lib/trieve_ruby_client/models/chunk_metadata.rb +28 -20
  96. data/lib/trieve_ruby_client/models/chunk_metadata_string_tag_set.rb +387 -0
  97. data/lib/trieve_ruby_client/models/chunk_metadata_types.rb +106 -0
  98. data/lib/trieve_ruby_client/models/chunk_metadata_with_score.rb +2 -18
  99. data/lib/trieve_ruby_client/models/chunk_req_payload.rb +400 -0
  100. data/lib/trieve_ruby_client/models/client_dataset_configuration.rb +2 -18
  101. data/lib/trieve_ruby_client/models/condition_type.rb +105 -0
  102. data/lib/trieve_ruby_client/models/content_chunk_metadata.rb +299 -0
  103. data/lib/trieve_ruby_client/models/create_chunk_data.rb +1 -1
  104. data/lib/trieve_ruby_client/models/create_chunk_group_data.rb +1 -1
  105. data/lib/trieve_ruby_client/models/create_chunk_group_req_payload.rb +273 -0
  106. data/lib/trieve_ruby_client/models/create_chunk_req_payload_enum.rb +105 -0
  107. data/lib/trieve_ruby_client/models/create_dataset_request.rb +3 -3
  108. data/lib/trieve_ruby_client/models/create_message_data.rb +13 -13
  109. data/lib/trieve_ruby_client/models/create_message_req_payload.rb +378 -0
  110. data/lib/trieve_ruby_client/models/create_organization_data.rb +1 -1
  111. data/lib/trieve_ruby_client/models/create_topic_data.rb +1 -1
  112. data/lib/trieve_ruby_client/models/create_topic_req_payload.rb +244 -0
  113. data/lib/trieve_ruby_client/models/dataset.rb +18 -2
  114. data/lib/trieve_ruby_client/models/dataset_and_usage.rb +1 -1
  115. data/lib/trieve_ruby_client/models/dataset_dto.rb +1 -1
  116. data/lib/trieve_ruby_client/models/dataset_usage_count.rb +1 -1
  117. data/lib/trieve_ruby_client/models/date_range.rb +245 -0
  118. data/lib/trieve_ruby_client/models/delete_topic_data.rb +1 -1
  119. data/lib/trieve_ruby_client/models/delete_user_api_key_request.rb +1 -1
  120. data/lib/trieve_ruby_client/models/edit_message_data.rb +1 -1
  121. data/lib/trieve_ruby_client/models/edit_message_req_payload.rb +395 -0
  122. data/lib/trieve_ruby_client/models/error_response_body.rb +1 -1
  123. data/lib/trieve_ruby_client/models/event.rb +1 -1
  124. data/lib/trieve_ruby_client/models/event_return.rb +1 -1
  125. data/lib/trieve_ruby_client/models/field_condition.rb +12 -2
  126. data/lib/trieve_ruby_client/models/file.rb +5 -3
  127. data/lib/trieve_ruby_client/models/file_dto.rb +1 -1
  128. data/lib/trieve_ruby_client/models/generate_chunks_request.rb +13 -2
  129. data/lib/trieve_ruby_client/models/geo_info.rb +1 -1
  130. data/lib/trieve_ruby_client/models/geo_types.rb +1 -1
  131. data/lib/trieve_ruby_client/models/get_chunks_data.rb +1 -1
  132. data/lib/trieve_ruby_client/models/get_datasets_pagination.rb +225 -0
  133. data/lib/trieve_ruby_client/models/get_events_data.rb +1 -1
  134. data/lib/trieve_ruby_client/models/get_groups_for_chunks_data.rb +1 -1
  135. data/lib/trieve_ruby_client/models/get_tracking_chunks_data.rb +1 -1
  136. data/lib/trieve_ruby_client/models/group_data.rb +1 -1
  137. data/lib/trieve_ruby_client/models/group_score_chunk.rb +1 -1
  138. data/lib/trieve_ruby_client/models/group_score_slim_chunks.rb +22 -2
  139. data/lib/trieve_ruby_client/models/has_id_condition.rb +229 -0
  140. data/lib/trieve_ruby_client/models/invitation_data.rb +1 -1
  141. data/lib/trieve_ruby_client/models/location_bounding_box.rb +1 -1
  142. data/lib/trieve_ruby_client/models/location_polygon.rb +1 -1
  143. data/lib/trieve_ruby_client/models/location_radius.rb +1 -1
  144. data/lib/trieve_ruby_client/models/match_condition.rb +2 -1
  145. data/lib/trieve_ruby_client/models/message.rb +1 -1
  146. data/lib/trieve_ruby_client/models/organization.rb +18 -2
  147. data/lib/trieve_ruby_client/models/organization_usage_count.rb +1 -1
  148. data/lib/trieve_ruby_client/models/range.rb +1 -1
  149. data/lib/trieve_ruby_client/models/range_condition.rb +2 -3
  150. data/lib/trieve_ruby_client/models/recommend_chunks_request.rb +2 -2
  151. data/lib/trieve_ruby_client/models/recommend_group_chunks_request.rb +2 -2
  152. data/lib/trieve_ruby_client/models/regenerate_message_data.rb +1 -1
  153. data/lib/trieve_ruby_client/models/regenerate_message_req_payload.rb +361 -0
  154. data/lib/trieve_ruby_client/models/remove_chunk_from_group_req_payload.rb +222 -0
  155. data/lib/trieve_ruby_client/models/return_queued_chunk.rb +1 -1
  156. data/lib/trieve_ruby_client/models/score_chunk_dto.rb +15 -3
  157. data/lib/trieve_ruby_client/models/score_slim_chunks.rb +1 -1
  158. data/lib/trieve_ruby_client/models/search_chunk_data.rb +49 -14
  159. data/lib/trieve_ruby_client/models/search_chunk_query_response_body.rb +1 -1
  160. data/lib/trieve_ruby_client/models/search_chunks_req_payload.rb +504 -0
  161. data/lib/trieve_ruby_client/models/search_over_groups_data.rb +95 -6
  162. data/lib/trieve_ruby_client/models/search_over_groups_results.rb +1 -1
  163. data/lib/trieve_ruby_client/models/search_over_groups_slim_results.rb +1 -1
  164. data/lib/trieve_ruby_client/models/search_slim_chunk_query_response_body.rb +1 -1
  165. data/lib/trieve_ruby_client/models/search_within_group_data.rb +119 -17
  166. data/lib/trieve_ruby_client/models/search_within_group_results.rb +1 -1
  167. data/lib/trieve_ruby_client/models/search_within_group_slim_results.rb +1 -1
  168. data/lib/trieve_ruby_client/models/set_user_api_key_request.rb +28 -2
  169. data/lib/trieve_ruby_client/models/set_user_api_key_response.rb +1 -1
  170. data/lib/trieve_ruby_client/models/single_queued_chunk_response.rb +1 -1
  171. data/lib/trieve_ruby_client/models/slim_chunk_metadata.rb +24 -2
  172. data/lib/trieve_ruby_client/models/slim_chunk_metadata_with_score.rb +1 -1
  173. data/lib/trieve_ruby_client/models/slim_group.rb +1 -1
  174. data/lib/trieve_ruby_client/models/slim_user.rb +1 -1
  175. data/lib/trieve_ruby_client/models/stripe_plan.rb +1 -1
  176. data/lib/trieve_ruby_client/models/suggested_queries_req_payload.rb +222 -0
  177. data/lib/trieve_ruby_client/models/suggested_queries_request.rb +1 -1
  178. data/lib/trieve_ruby_client/models/suggested_queries_response.rb +1 -1
  179. data/lib/trieve_ruby_client/models/topic.rb +1 -1
  180. data/lib/trieve_ruby_client/models/update_chunk_by_tracking_id_data.rb +1 -1
  181. data/lib/trieve_ruby_client/models/update_chunk_data.rb +15 -2
  182. data/lib/trieve_ruby_client/models/update_chunk_group_data.rb +1 -1
  183. data/lib/trieve_ruby_client/models/update_chunk_req_payload.rb +376 -0
  184. data/lib/trieve_ruby_client/models/update_dataset_request.rb +13 -2
  185. data/lib/trieve_ruby_client/models/update_group_by_tracking_id_data.rb +1 -1
  186. data/lib/trieve_ruby_client/models/update_group_by_tracking_id_req_payload.rb +268 -0
  187. data/lib/trieve_ruby_client/models/update_organization_data.rb +1 -1
  188. data/lib/trieve_ruby_client/models/update_topic_data.rb +1 -1
  189. data/lib/trieve_ruby_client/models/update_topic_req_payload.rb +239 -0
  190. data/lib/trieve_ruby_client/models/update_user_org_role_data.rb +2 -2
  191. data/lib/trieve_ruby_client/models/upload_file_data.rb +1 -1
  192. data/lib/trieve_ruby_client/models/upload_file_req_payload.rb +368 -0
  193. data/lib/trieve_ruby_client/models/upload_file_result.rb +1 -1
  194. data/lib/trieve_ruby_client/models/user_organization.rb +1 -1
  195. data/lib/trieve_ruby_client/version.rb +2 -2
  196. data/lib/trieve_ruby_client.rb +25 -20
  197. data/openapi-generator.yaml +1 -1
  198. data/openapi.json +1 -7784
  199. data/spec/models/api_key_resp_body_spec.rb +78 -0
  200. data/spec/models/autocomplete_data_spec.rb +108 -0
  201. data/spec/models/autocomplete_req_payload_spec.rb +132 -0
  202. data/spec/models/boost_phrase_spec.rb +42 -0
  203. data/spec/models/chunk_metadata_string_tag_set_spec.rb +120 -0
  204. data/spec/models/chunk_metadata_types_spec.rb +32 -0
  205. data/spec/models/chunk_req_payload_spec.rb +132 -0
  206. data/spec/models/condition_type_spec.rb +32 -0
  207. data/spec/models/content_chunk_metadata_spec.rb +72 -0
  208. data/spec/models/create_chunk_group_req_payload_spec.rb +66 -0
  209. data/spec/models/create_chunk_req_payload_enum_spec.rb +32 -0
  210. data/spec/models/create_message_req_payload_spec.rb +108 -0
  211. data/spec/models/create_topic_req_payload_spec.rb +48 -0
  212. data/spec/models/date_range_spec.rb +54 -0
  213. data/spec/models/edit_message_req_payload_spec.rb +114 -0
  214. data/spec/models/get_datasets_pagination_spec.rb +42 -0
  215. data/spec/models/has_id_condition_spec.rb +42 -0
  216. data/spec/models/regenerate_message_req_payload_spec.rb +102 -0
  217. data/spec/models/remove_chunk_from_group_req_payload_spec.rb +36 -0
  218. data/spec/models/search_chunks_req_payload_spec.rb +144 -0
  219. data/spec/models/suggested_queries_req_payload_spec.rb +36 -0
  220. data/spec/models/update_chunk_req_payload_spec.rb +120 -0
  221. data/spec/models/update_group_by_tracking_id_req_payload_spec.rb +60 -0
  222. data/spec/models/update_topic_req_payload_spec.rb +42 -0
  223. data/spec/models/upload_file_req_payload_spec.rb +102 -0
  224. data/spec/spec_helper.rb +1 -1
  225. data/trieve_ruby_client-0.8.0.gem +0 -0
  226. data/trieve_ruby_client-0.8.2.gem +0 -0
  227. data/trieve_ruby_client-0.8.5.gem +0 -0
  228. data/trieve_ruby_client.gemspec +1 -1
  229. metadata +105 -2
@@ -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.8.0
6
+ The version of the OpenAPI document: 0.10.7
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 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.
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 or api key must have an admin or owner role for the specified dataset's organization.
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 [Hash] opts the optional parameters
@@ -31,7 +31,7 @@ module TrieveRubyClient
31
31
  end
32
32
 
33
33
  # Delete File
34
- # 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.
34
+ # 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 or api key must have an admin or owner role for the specified dataset's organization.
35
35
  # @param tr_dataset [String] The dataset id to use for the request
36
36
  # @param file_id [String] The id of the file to delete
37
37
  # @param [Hash] opts the optional parameters
@@ -242,21 +242,21 @@ module TrieveRubyClient
242
242
  # Upload File
243
243
  # Upload File Upload a file to S3 attached to the server. The file will be converted to HTML with tika and chunked algorithmically, images will be OCR'ed with tesseract. The resulting chunks will be indexed and searchable. Optionally, you can only upload the file and manually create chunks associated to the file after. See docs.trieve.ai and/or contact us for more details and tips. Auth'ed user must be an admin or owner of the dataset's organization to upload a file.
244
244
  # @param tr_dataset [String] The dataset id to use for the request
245
- # @param upload_file_data [UploadFileData] JSON request payload to upload a file
245
+ # @param upload_file_req_payload [UploadFileReqPayload] JSON request payload to upload a file
246
246
  # @param [Hash] opts the optional parameters
247
247
  # @return [UploadFileResult]
248
- def upload_file_handler(tr_dataset, upload_file_data, opts = {})
249
- data, _status_code, _headers = upload_file_handler_with_http_info(tr_dataset, upload_file_data, opts)
248
+ def upload_file_handler(tr_dataset, upload_file_req_payload, opts = {})
249
+ data, _status_code, _headers = upload_file_handler_with_http_info(tr_dataset, upload_file_req_payload, opts)
250
250
  data
251
251
  end
252
252
 
253
253
  # Upload File
254
254
  # Upload File Upload a file to S3 attached to the server. The file will be converted to HTML with tika and chunked algorithmically, images will be OCR'ed with tesseract. The resulting chunks will be indexed and searchable. Optionally, you can only upload the file and manually create chunks associated to the file after. See docs.trieve.ai and/or contact us for more details and tips. Auth'ed user must be an admin or owner of the dataset's organization to upload a file.
255
255
  # @param tr_dataset [String] The dataset id to use for the request
256
- # @param upload_file_data [UploadFileData] JSON request payload to upload a file
256
+ # @param upload_file_req_payload [UploadFileReqPayload] JSON request payload to upload a file
257
257
  # @param [Hash] opts the optional parameters
258
258
  # @return [Array<(UploadFileResult, Integer, Hash)>] UploadFileResult data, response status code and response headers
259
- def upload_file_handler_with_http_info(tr_dataset, upload_file_data, opts = {})
259
+ def upload_file_handler_with_http_info(tr_dataset, upload_file_req_payload, opts = {})
260
260
  if @api_client.config.debugging
261
261
  @api_client.config.logger.debug 'Calling API: FileApi.upload_file_handler ...'
262
262
  end
@@ -264,9 +264,9 @@ module TrieveRubyClient
264
264
  if @api_client.config.client_side_validation && tr_dataset.nil?
265
265
  fail ArgumentError, "Missing the required parameter 'tr_dataset' when calling FileApi.upload_file_handler"
266
266
  end
267
- # verify the required parameter 'upload_file_data' is set
268
- if @api_client.config.client_side_validation && upload_file_data.nil?
269
- fail ArgumentError, "Missing the required parameter 'upload_file_data' when calling FileApi.upload_file_handler"
267
+ # verify the required parameter 'upload_file_req_payload' is set
268
+ if @api_client.config.client_side_validation && upload_file_req_payload.nil?
269
+ fail ArgumentError, "Missing the required parameter 'upload_file_req_payload' when calling FileApi.upload_file_handler"
270
270
  end
271
271
  # resource path
272
272
  local_var_path = '/api/file'
@@ -289,7 +289,7 @@ module TrieveRubyClient
289
289
  form_params = opts[:form_params] || {}
290
290
 
291
291
  # http body (model)
292
- post_body = opts[:debug_body] || @api_client.object_to_http_body(upload_file_data)
292
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(upload_file_req_payload)
293
293
 
294
294
  # return_type
295
295
  return_type = opts[:debug_return_type] || 'UploadFileResult'
@@ -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.8.0
6
+ The version of the OpenAPI document: 0.10.7
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.8.0
6
+ The version of the OpenAPI document: 0.10.7
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
  # Send Invitation
23
- # Send Invitation Invitations act as a way to invite users to join an organization. After a user is invited, they will automatically be added to the organization with the role specified in the invitation once they set their.
23
+ # Send Invitation Invitations act as a way to invite users to join an organization. After a user is invited, they will automatically be added to the organization with the role specified in the invitation once they set their. Auth'ed user or api key must have an admin or owner role for the specified dataset's organization.
24
24
  # @param tr_organization [String] The organization id to use for the request
25
25
  # @param invitation_data [InvitationData] JSON request payload to send an invitation
26
26
  # @param [Hash] opts the optional parameters
@@ -31,7 +31,7 @@ module TrieveRubyClient
31
31
  end
32
32
 
33
33
  # Send Invitation
34
- # Send Invitation Invitations act as a way to invite users to join an organization. After a user is invited, they will automatically be added to the organization with the role specified in the invitation once they set their.
34
+ # Send Invitation Invitations act as a way to invite users to join an organization. After a user is invited, they will automatically be added to the organization with the role specified in the invitation once they set their. Auth&#39;ed user or api key must have an admin or owner role for the specified dataset&#39;s organization.
35
35
  # @param tr_organization [String] The organization id to use for the request
36
36
  # @param invitation_data [InvitationData] JSON request payload to send an invitation
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.8.0
6
+ The version of the OpenAPI document: 0.10.7
7
7
  Contact: developers@trieve.ai
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.4.0
@@ -19,34 +19,34 @@ module TrieveRubyClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- # Create a message
23
- # 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.
22
+ # Create message
23
+ # Create message Create 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. Auth'ed user or api key must have an admin or owner role for the specified dataset's organization.
24
24
  # @param tr_dataset [String] The dataset id to use for the request
25
- # @param create_message_data [CreateMessageData] JSON request payload to create a message completion
25
+ # @param create_message_req_payload [CreateMessageReqPayload] JSON request payload to create a message completion
26
26
  # @param [Hash] opts the optional parameters
27
27
  # @return [String]
28
- def create_message_completion_handler(tr_dataset, create_message_data, opts = {})
29
- data, _status_code, _headers = create_message_completion_handler_with_http_info(tr_dataset, create_message_data, opts)
28
+ def create_message(tr_dataset, create_message_req_payload, opts = {})
29
+ data, _status_code, _headers = create_message_with_http_info(tr_dataset, create_message_req_payload, opts)
30
30
  data
31
31
  end
32
32
 
33
- # Create a message
34
- # 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 &#x60;[chunks]||mesage&#x60;. See docs.trieve.ai for more information.
33
+ # Create message
34
+ # Create message Create 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 &#x60;[chunks]||mesage&#x60;. See docs.trieve.ai for more information. Auth&#39;ed user or api key must have an admin or owner role for the specified dataset&#39;s organization.
35
35
  # @param tr_dataset [String] The dataset id to use for the request
36
- # @param create_message_data [CreateMessageData] JSON request payload to create a message completion
36
+ # @param create_message_req_payload [CreateMessageReqPayload] JSON request payload to create a message completion
37
37
  # @param [Hash] opts the optional parameters
38
38
  # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
39
- def create_message_completion_handler_with_http_info(tr_dataset, create_message_data, opts = {})
39
+ def create_message_with_http_info(tr_dataset, create_message_req_payload, opts = {})
40
40
  if @api_client.config.debugging
41
- @api_client.config.logger.debug 'Calling API: MessageApi.create_message_completion_handler ...'
41
+ @api_client.config.logger.debug 'Calling API: MessageApi.create_message ...'
42
42
  end
43
43
  # verify the required parameter 'tr_dataset' is set
44
44
  if @api_client.config.client_side_validation && tr_dataset.nil?
45
- fail ArgumentError, "Missing the required parameter 'tr_dataset' when calling MessageApi.create_message_completion_handler"
45
+ fail ArgumentError, "Missing the required parameter 'tr_dataset' when calling MessageApi.create_message"
46
46
  end
47
- # verify the required parameter 'create_message_data' is set
48
- if @api_client.config.client_side_validation && create_message_data.nil?
49
- fail ArgumentError, "Missing the required parameter 'create_message_data' when calling MessageApi.create_message_completion_handler"
47
+ # verify the required parameter 'create_message_req_payload' is set
48
+ if @api_client.config.client_side_validation && create_message_req_payload.nil?
49
+ fail ArgumentError, "Missing the required parameter 'create_message_req_payload' when calling MessageApi.create_message"
50
50
  end
51
51
  # resource path
52
52
  local_var_path = '/api/message'
@@ -69,7 +69,7 @@ module TrieveRubyClient
69
69
  form_params = opts[:form_params] || {}
70
70
 
71
71
  # http body (model)
72
- post_body = opts[:debug_body] || @api_client.object_to_http_body(create_message_data)
72
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(create_message_req_payload)
73
73
 
74
74
  # return_type
75
75
  return_type = opts[:debug_return_type] || 'String'
@@ -78,7 +78,7 @@ module TrieveRubyClient
78
78
  auth_names = opts[:debug_auth_names] || ['ApiKey']
79
79
 
80
80
  new_options = opts.merge(
81
- :operation => :"MessageApi.create_message_completion_handler",
81
+ :operation => :"MessageApi.create_message",
82
82
  :header_params => header_params,
83
83
  :query_params => query_params,
84
84
  :form_params => form_params,
@@ -89,39 +89,39 @@ module TrieveRubyClient
89
89
 
90
90
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
91
91
  if @api_client.config.debugging
92
- @api_client.config.logger.debug "API called: MessageApi#create_message_completion_handler\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
92
+ @api_client.config.logger.debug "API called: MessageApi#create_message\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
93
93
  end
94
94
  return data, status_code, headers
95
95
  end
96
96
 
97
- # Edit a message
98
- # 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.
97
+ # Edit message
98
+ # Edit message Edit 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. Auth'ed user or api key must have an admin or owner role for the specified dataset's organization.
99
99
  # @param tr_dataset [String] The dataset id to use for the request
100
- # @param edit_message_data [EditMessageData] JSON request payload to edit a message and get a new stream
100
+ # @param edit_message_req_payload [EditMessageReqPayload] JSON request payload to edit a message and get a new stream
101
101
  # @param [Hash] opts the optional parameters
102
102
  # @return [nil]
103
- def edit_message_handler(tr_dataset, edit_message_data, opts = {})
104
- edit_message_handler_with_http_info(tr_dataset, edit_message_data, opts)
103
+ def edit_message(tr_dataset, edit_message_req_payload, opts = {})
104
+ edit_message_with_http_info(tr_dataset, edit_message_req_payload, opts)
105
105
  nil
106
106
  end
107
107
 
108
- # Edit a message
109
- # Edit a message Edit a message which exists within the topic&#39;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 &#x60;[chunks]||mesage&#x60;. See docs.trieve.ai for more information.
108
+ # Edit message
109
+ # Edit message Edit message which exists within the topic&#39;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 &#x60;[chunks]||mesage&#x60;. See docs.trieve.ai for more information. Auth&#39;ed user or api key must have an admin or owner role for the specified dataset&#39;s organization.
110
110
  # @param tr_dataset [String] The dataset id to use for the request
111
- # @param edit_message_data [EditMessageData] JSON request payload to edit a message and get a new stream
111
+ # @param edit_message_req_payload [EditMessageReqPayload] JSON request payload to edit a message and get a new stream
112
112
  # @param [Hash] opts the optional parameters
113
113
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
114
- def edit_message_handler_with_http_info(tr_dataset, edit_message_data, opts = {})
114
+ def edit_message_with_http_info(tr_dataset, edit_message_req_payload, opts = {})
115
115
  if @api_client.config.debugging
116
- @api_client.config.logger.debug 'Calling API: MessageApi.edit_message_handler ...'
116
+ @api_client.config.logger.debug 'Calling API: MessageApi.edit_message ...'
117
117
  end
118
118
  # verify the required parameter 'tr_dataset' is set
119
119
  if @api_client.config.client_side_validation && tr_dataset.nil?
120
- fail ArgumentError, "Missing the required parameter 'tr_dataset' when calling MessageApi.edit_message_handler"
120
+ fail ArgumentError, "Missing the required parameter 'tr_dataset' when calling MessageApi.edit_message"
121
121
  end
122
- # verify the required parameter 'edit_message_data' is set
123
- if @api_client.config.client_side_validation && edit_message_data.nil?
124
- fail ArgumentError, "Missing the required parameter 'edit_message_data' when calling MessageApi.edit_message_handler"
122
+ # verify the required parameter 'edit_message_req_payload' is set
123
+ if @api_client.config.client_side_validation && edit_message_req_payload.nil?
124
+ fail ArgumentError, "Missing the required parameter 'edit_message_req_payload' when calling MessageApi.edit_message"
125
125
  end
126
126
  # resource path
127
127
  local_var_path = '/api/message'
@@ -144,7 +144,7 @@ module TrieveRubyClient
144
144
  form_params = opts[:form_params] || {}
145
145
 
146
146
  # http body (model)
147
- post_body = opts[:debug_body] || @api_client.object_to_http_body(edit_message_data)
147
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(edit_message_req_payload)
148
148
 
149
149
  # return_type
150
150
  return_type = opts[:debug_return_type]
@@ -153,7 +153,7 @@ module TrieveRubyClient
153
153
  auth_names = opts[:debug_auth_names] || ['ApiKey']
154
154
 
155
155
  new_options = opts.merge(
156
- :operation => :"MessageApi.edit_message_handler",
156
+ :operation => :"MessageApi.edit_message",
157
157
  :header_params => header_params,
158
158
  :query_params => query_params,
159
159
  :form_params => form_params,
@@ -164,7 +164,7 @@ module TrieveRubyClient
164
164
 
165
165
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
166
166
  if @api_client.config.debugging
167
- @api_client.config.logger.debug "API called: MessageApi#edit_message_handler\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
167
+ @api_client.config.logger.debug "API called: MessageApi#edit_message\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
168
168
  end
169
169
  return data, status_code, headers
170
170
  end
@@ -240,33 +240,33 @@ module TrieveRubyClient
240
240
  end
241
241
 
242
242
  # Regenerate message
243
- # 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.
243
+ # 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. Auth'ed user or api key must have an admin or owner role for the specified dataset's organization.
244
244
  # @param tr_dataset [String] The dataset id to use for the request
245
- # @param regenerate_message_data [RegenerateMessageData] JSON request payload to delete an agent message then regenerate it in a strem
245
+ # @param regenerate_message_req_payload [RegenerateMessageReqPayload] JSON request payload to delete an agent message then regenerate it in a strem
246
246
  # @param [Hash] opts the optional parameters
247
247
  # @return [String]
248
- def regenerate_message_handler(tr_dataset, regenerate_message_data, opts = {})
249
- data, _status_code, _headers = regenerate_message_handler_with_http_info(tr_dataset, regenerate_message_data, opts)
248
+ def regenerate_message(tr_dataset, regenerate_message_req_payload, opts = {})
249
+ data, _status_code, _headers = regenerate_message_with_http_info(tr_dataset, regenerate_message_req_payload, opts)
250
250
  data
251
251
  end
252
252
 
253
253
  # Regenerate message
254
- # 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 &#x60;[chunks]||mesage&#x60;. See docs.trieve.ai for more information.
254
+ # 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 &#x60;[chunks]||mesage&#x60;. See docs.trieve.ai for more information. Auth&#39;ed user or api key must have an admin or owner role for the specified dataset&#39;s organization.
255
255
  # @param tr_dataset [String] The dataset id to use for the request
256
- # @param regenerate_message_data [RegenerateMessageData] JSON request payload to delete an agent message then regenerate it in a strem
256
+ # @param regenerate_message_req_payload [RegenerateMessageReqPayload] JSON request payload to delete an agent message then regenerate it in a strem
257
257
  # @param [Hash] opts the optional parameters
258
258
  # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
259
- def regenerate_message_handler_with_http_info(tr_dataset, regenerate_message_data, opts = {})
259
+ def regenerate_message_with_http_info(tr_dataset, regenerate_message_req_payload, opts = {})
260
260
  if @api_client.config.debugging
261
- @api_client.config.logger.debug 'Calling API: MessageApi.regenerate_message_handler ...'
261
+ @api_client.config.logger.debug 'Calling API: MessageApi.regenerate_message ...'
262
262
  end
263
263
  # verify the required parameter 'tr_dataset' is set
264
264
  if @api_client.config.client_side_validation && tr_dataset.nil?
265
- fail ArgumentError, "Missing the required parameter 'tr_dataset' when calling MessageApi.regenerate_message_handler"
265
+ fail ArgumentError, "Missing the required parameter 'tr_dataset' when calling MessageApi.regenerate_message"
266
266
  end
267
- # verify the required parameter 'regenerate_message_data' is set
268
- if @api_client.config.client_side_validation && regenerate_message_data.nil?
269
- fail ArgumentError, "Missing the required parameter 'regenerate_message_data' when calling MessageApi.regenerate_message_handler"
267
+ # verify the required parameter 'regenerate_message_req_payload' is set
268
+ if @api_client.config.client_side_validation && regenerate_message_req_payload.nil?
269
+ fail ArgumentError, "Missing the required parameter 'regenerate_message_req_payload' when calling MessageApi.regenerate_message"
270
270
  end
271
271
  # resource path
272
272
  local_var_path = '/api/message'
@@ -289,7 +289,7 @@ module TrieveRubyClient
289
289
  form_params = opts[:form_params] || {}
290
290
 
291
291
  # http body (model)
292
- post_body = opts[:debug_body] || @api_client.object_to_http_body(regenerate_message_data)
292
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(regenerate_message_req_payload)
293
293
 
294
294
  # return_type
295
295
  return_type = opts[:debug_return_type] || 'String'
@@ -298,7 +298,7 @@ module TrieveRubyClient
298
298
  auth_names = opts[:debug_auth_names] || ['ApiKey']
299
299
 
300
300
  new_options = opts.merge(
301
- :operation => :"MessageApi.regenerate_message_handler",
301
+ :operation => :"MessageApi.regenerate_message",
302
302
  :header_params => header_params,
303
303
  :query_params => query_params,
304
304
  :form_params => form_params,
@@ -309,7 +309,7 @@ module TrieveRubyClient
309
309
 
310
310
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
311
311
  if @api_client.config.debugging
312
- @api_client.config.logger.debug "API called: MessageApi#regenerate_message_handler\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
312
+ @api_client.config.logger.debug "API called: MessageApi#regenerate_message\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
313
313
  end
314
314
  return data, status_code, headers
315
315
  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.8.0
6
+ The version of the OpenAPI document: 0.10.7
7
7
  Contact: developers@trieve.ai
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.4.0
@@ -92,10 +92,10 @@ module TrieveRubyClient
92
92
  # @param tr_organization [String] The organization id to use for the request
93
93
  # @param organization_id [String] The id of the organization you want to fetch.
94
94
  # @param [Hash] opts the optional parameters
95
- # @return [Organization]
96
- def delete_organization_by_id(tr_organization, organization_id, opts = {})
97
- data, _status_code, _headers = delete_organization_by_id_with_http_info(tr_organization, organization_id, opts)
98
- data
95
+ # @return [nil]
96
+ def delete_organization(tr_organization, organization_id, opts = {})
97
+ delete_organization_with_http_info(tr_organization, organization_id, opts)
98
+ nil
99
99
  end
100
100
 
101
101
  # Delete Organization
@@ -103,18 +103,18 @@ module TrieveRubyClient
103
103
  # @param tr_organization [String] The organization id to use for the request
104
104
  # @param organization_id [String] The id of the organization you want to fetch.
105
105
  # @param [Hash] opts the optional parameters
106
- # @return [Array<(Organization, Integer, Hash)>] Organization data, response status code and response headers
107
- def delete_organization_by_id_with_http_info(tr_organization, organization_id, opts = {})
106
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
107
+ def delete_organization_with_http_info(tr_organization, organization_id, opts = {})
108
108
  if @api_client.config.debugging
109
- @api_client.config.logger.debug 'Calling API: OrganizationApi.delete_organization_by_id ...'
109
+ @api_client.config.logger.debug 'Calling API: OrganizationApi.delete_organization ...'
110
110
  end
111
111
  # verify the required parameter 'tr_organization' is set
112
112
  if @api_client.config.client_side_validation && tr_organization.nil?
113
- fail ArgumentError, "Missing the required parameter 'tr_organization' when calling OrganizationApi.delete_organization_by_id"
113
+ fail ArgumentError, "Missing the required parameter 'tr_organization' when calling OrganizationApi.delete_organization"
114
114
  end
115
115
  # verify the required parameter 'organization_id' is set
116
116
  if @api_client.config.client_side_validation && organization_id.nil?
117
- fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationApi.delete_organization_by_id"
117
+ fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationApi.delete_organization"
118
118
  end
119
119
  # resource path
120
120
  local_var_path = '/api/organization/{organization_id}'.sub('{' + 'organization_id' + '}', CGI.escape(organization_id.to_s))
@@ -135,13 +135,13 @@ module TrieveRubyClient
135
135
  post_body = opts[:debug_body]
136
136
 
137
137
  # return_type
138
- return_type = opts[:debug_return_type] || 'Organization'
138
+ return_type = opts[:debug_return_type]
139
139
 
140
140
  # auth_names
141
141
  auth_names = opts[:debug_auth_names] || ['ApiKey']
142
142
 
143
143
  new_options = opts.merge(
144
- :operation => :"OrganizationApi.delete_organization_by_id",
144
+ :operation => :"OrganizationApi.delete_organization",
145
145
  :header_params => header_params,
146
146
  :query_params => query_params,
147
147
  :form_params => form_params,
@@ -152,39 +152,39 @@ module TrieveRubyClient
152
152
 
153
153
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
154
154
  if @api_client.config.debugging
155
- @api_client.config.logger.debug "API called: OrganizationApi#delete_organization_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
155
+ @api_client.config.logger.debug "API called: OrganizationApi#delete_organization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
156
156
  end
157
157
  return data, status_code, headers
158
158
  end
159
159
 
160
160
  # Get Organization
161
- # 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.
161
+ # Get Organization Fetch the details of an organization by its id. Auth'ed user or api key must have an admin or owner role for the specified dataset's organization.
162
162
  # @param tr_organization [String] The organization id to use for the request
163
163
  # @param organization_id [String] The id of the organization you want to fetch.
164
164
  # @param [Hash] opts the optional parameters
165
165
  # @return [Organization]
166
- def get_organization_by_id(tr_organization, organization_id, opts = {})
167
- data, _status_code, _headers = get_organization_by_id_with_http_info(tr_organization, organization_id, opts)
166
+ def get_organization(tr_organization, organization_id, opts = {})
167
+ data, _status_code, _headers = get_organization_with_http_info(tr_organization, organization_id, opts)
168
168
  data
169
169
  end
170
170
 
171
171
  # Get Organization
172
- # Get Organization Fetch the details of an organization by its id. The auth&#39;ed user must be an admin or owner of the organization to fetch it.
172
+ # Get Organization Fetch the details of an organization by its id. Auth&#39;ed user or api key must have an admin or owner role for the specified dataset&#39;s organization.
173
173
  # @param tr_organization [String] The organization id to use for the request
174
174
  # @param organization_id [String] The id of the organization you want to fetch.
175
175
  # @param [Hash] opts the optional parameters
176
176
  # @return [Array<(Organization, Integer, Hash)>] Organization data, response status code and response headers
177
- def get_organization_by_id_with_http_info(tr_organization, organization_id, opts = {})
177
+ def get_organization_with_http_info(tr_organization, organization_id, opts = {})
178
178
  if @api_client.config.debugging
179
- @api_client.config.logger.debug 'Calling API: OrganizationApi.get_organization_by_id ...'
179
+ @api_client.config.logger.debug 'Calling API: OrganizationApi.get_organization ...'
180
180
  end
181
181
  # verify the required parameter 'tr_organization' is set
182
182
  if @api_client.config.client_side_validation && tr_organization.nil?
183
- fail ArgumentError, "Missing the required parameter 'tr_organization' when calling OrganizationApi.get_organization_by_id"
183
+ fail ArgumentError, "Missing the required parameter 'tr_organization' when calling OrganizationApi.get_organization"
184
184
  end
185
185
  # verify the required parameter 'organization_id' is set
186
186
  if @api_client.config.client_side_validation && organization_id.nil?
187
- fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationApi.get_organization_by_id"
187
+ fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationApi.get_organization"
188
188
  end
189
189
  # resource path
190
190
  local_var_path = '/api/organization/{organization_id}'.sub('{' + 'organization_id' + '}', CGI.escape(organization_id.to_s))
@@ -211,7 +211,7 @@ module TrieveRubyClient
211
211
  auth_names = opts[:debug_auth_names] || ['ApiKey']
212
212
 
213
213
  new_options = opts.merge(
214
- :operation => :"OrganizationApi.get_organization_by_id",
214
+ :operation => :"OrganizationApi.get_organization",
215
215
  :header_params => header_params,
216
216
  :query_params => query_params,
217
217
  :form_params => form_params,
@@ -222,13 +222,13 @@ module TrieveRubyClient
222
222
 
223
223
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
224
224
  if @api_client.config.debugging
225
- @api_client.config.logger.debug "API called: OrganizationApi#get_organization_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
225
+ @api_client.config.logger.debug "API called: OrganizationApi#get_organization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
226
226
  end
227
227
  return data, status_code, headers
228
228
  end
229
229
 
230
230
  # Get Organization Usage
231
- # 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.
231
+ # Get Organization Usage Fetch the current usage specification of an organization by its id. Auth'ed user or api key must have an admin or owner role for the specified dataset's organization.
232
232
  # @param tr_organization [String] The organization id to use for the request
233
233
  # @param organization_id [String] The id of the organization you want to fetch the usage of.
234
234
  # @param [Hash] opts the optional parameters
@@ -239,7 +239,7 @@ module TrieveRubyClient
239
239
  end
240
240
 
241
241
  # Get Organization Usage
242
- # Get Organization Usage Fetch the current usage specification of an organization by its id. The auth&#39;ed user must be an admin or owner of the organization to fetch it.
242
+ # Get Organization Usage Fetch the current usage specification of an organization by its id. Auth&#39;ed user or api key must have an admin or owner role for the specified dataset&#39;s organization.
243
243
  # @param tr_organization [String] The organization id to use for the request
244
244
  # @param organization_id [String] The id of the organization you want to fetch the usage of.
245
245
  # @param [Hash] opts the optional parameters
@@ -298,7 +298,7 @@ module TrieveRubyClient
298
298
  end
299
299
 
300
300
  # Get Organization Users
301
- # 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.
301
+ # Get Organization Users Fetch the users of an organization by its id. Auth'ed user or api key must have an admin or owner role for the specified dataset's organization.
302
302
  # @param tr_organization [String] The organization id to use for the request
303
303
  # @param organization_id [String] The id of the organization you want to fetch the users of.
304
304
  # @param [Hash] opts the optional parameters
@@ -309,7 +309,7 @@ module TrieveRubyClient
309
309
  end
310
310
 
311
311
  # Get Organization Users
312
- # Get Organization Users Fetch the users of an organization by its id. The auth&#39;ed user must be an admin or owner of the organization to fetch it.
312
+ # Get Organization Users Fetch the users of an organization by its id. Auth&#39;ed user or api key must have an admin or owner role for the specified dataset&#39;s organization.
313
313
  # @param tr_organization [String] The organization id to use for the request
314
314
  # @param organization_id [String] The id of the organization you want to fetch the users of.
315
315
  # @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.8.0
6
+ The version of the OpenAPI document: 0.10.7
7
7
  Contact: developers@trieve.ai
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.4.0