trieve_ruby_client 0.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (272) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/LICENSE +21 -0
  4. data/README.md +240 -0
  5. data/Rakefile +10 -0
  6. data/docs/AddChunkToGroupData.md +18 -0
  7. data/docs/ApiKeyDTO.md +28 -0
  8. data/docs/AuthApi.md +274 -0
  9. data/docs/BookmarkData.md +22 -0
  10. data/docs/BookmarkGroupResult.md +20 -0
  11. data/docs/ChatMessageProxy.md +20 -0
  12. data/docs/ChunkApi.md +955 -0
  13. data/docs/ChunkFilter.md +22 -0
  14. data/docs/ChunkGroup.md +30 -0
  15. data/docs/ChunkGroupAndFile.md +32 -0
  16. data/docs/ChunkGroupApi.md +1262 -0
  17. data/docs/ChunkMetadata.md +42 -0
  18. data/docs/ChunkMetadataWithFileData.md +44 -0
  19. data/docs/ClientDatasetConfiguration.md +38 -0
  20. data/docs/CreateChunkData.md +42 -0
  21. data/docs/CreateChunkGroupData.md +22 -0
  22. data/docs/CreateDatasetRequest.md +24 -0
  23. data/docs/CreateMessageData.md +28 -0
  24. data/docs/CreateOrganizationData.md +18 -0
  25. data/docs/CreateTopicData.md +22 -0
  26. data/docs/Dataset.md +30 -0
  27. data/docs/DatasetAndUsage.md +20 -0
  28. data/docs/DatasetApi.md +480 -0
  29. data/docs/DatasetDTO.md +28 -0
  30. data/docs/DatasetUsageCount.md +22 -0
  31. data/docs/DeleteDatasetRequest.md +18 -0
  32. data/docs/DeleteTopicData.md +18 -0
  33. data/docs/DeleteUserApiKeyRequest.md +18 -0
  34. data/docs/EditMessageData.md +30 -0
  35. data/docs/ErrorResponseBody.md +18 -0
  36. data/docs/Event.md +28 -0
  37. data/docs/EventReturn.md +20 -0
  38. data/docs/EventsApi.md +86 -0
  39. data/docs/FieldCondition.md +22 -0
  40. data/docs/File.md +36 -0
  41. data/docs/FileApi.md +326 -0
  42. data/docs/FileDTO.md +32 -0
  43. data/docs/GenerateChunksRequest.md +26 -0
  44. data/docs/GetGroupsForChunksData.md +18 -0
  45. data/docs/GroupData.md +20 -0
  46. data/docs/GroupScoreChunkDTO.md +20 -0
  47. data/docs/HealthApi.md +66 -0
  48. data/docs/InvitationApi.md +85 -0
  49. data/docs/InvitationData.md +26 -0
  50. data/docs/MatchCondition.md +49 -0
  51. data/docs/Message.md +38 -0
  52. data/docs/MessageApi.md +322 -0
  53. data/docs/Organization.md +26 -0
  54. data/docs/OrganizationApi.md +479 -0
  55. data/docs/OrganizationUsageCount.md +28 -0
  56. data/docs/Range.md +24 -0
  57. data/docs/ReccomendGroupChunksRequest.md +30 -0
  58. data/docs/RecommendChunksRequest.md +28 -0
  59. data/docs/RegenerateMessageData.md +26 -0
  60. data/docs/ReturnQueuedChunk.md +20 -0
  61. data/docs/ScoreChunkDTO.md +20 -0
  62. data/docs/SearchChunkData.md +38 -0
  63. data/docs/SearchChunkQueryResponseBody.md +20 -0
  64. data/docs/SearchGroupsResult.md +22 -0
  65. data/docs/SearchOverGroupsData.md +36 -0
  66. data/docs/SearchOverGroupsResponseBody.md +20 -0
  67. data/docs/SearchWithinGroupData.md +40 -0
  68. data/docs/SetUserApiKeyRequest.md +20 -0
  69. data/docs/SetUserApiKeyResponse.md +18 -0
  70. data/docs/SlimGroup.md +24 -0
  71. data/docs/SlimUser.md +32 -0
  72. data/docs/StripeApi.md +285 -0
  73. data/docs/StripePlan.md +38 -0
  74. data/docs/StripeSubscription.md +30 -0
  75. data/docs/SuggestedQueriesRequest.md +18 -0
  76. data/docs/SuggestedQueriesResponse.md +18 -0
  77. data/docs/Topic.md +30 -0
  78. data/docs/TopicApi.md +321 -0
  79. data/docs/UpdateChunkByTrackingIdData.md +32 -0
  80. data/docs/UpdateChunkData.md +34 -0
  81. data/docs/UpdateChunkGroupData.md +24 -0
  82. data/docs/UpdateDatasetRequest.md +24 -0
  83. data/docs/UpdateGroupByTrackingIDData.md +22 -0
  84. data/docs/UpdateOrganizationData.md +20 -0
  85. data/docs/UpdateTopicData.md +20 -0
  86. data/docs/UpdateUserData.md +30 -0
  87. data/docs/UploadFileData.md +34 -0
  88. data/docs/UploadFileResult.md +18 -0
  89. data/docs/UserApi.md +238 -0
  90. data/docs/UserOrganization.md +28 -0
  91. data/git_push.sh +57 -0
  92. data/lib/trieve_ruby_client/api/auth_api.rb +262 -0
  93. data/lib/trieve_ruby_client/api/chunk_api.rb +906 -0
  94. data/lib/trieve_ruby_client/api/chunk_group_api.rb +1230 -0
  95. data/lib/trieve_ruby_client/api/dataset_api.rb +458 -0
  96. data/lib/trieve_ruby_client/api/events_api.rb +92 -0
  97. data/lib/trieve_ruby_client/api/file_api.rb +324 -0
  98. data/lib/trieve_ruby_client/api/health_api.rb +75 -0
  99. data/lib/trieve_ruby_client/api/invitation_api.rb +97 -0
  100. data/lib/trieve_ruby_client/api/message_api.rb +317 -0
  101. data/lib/trieve_ruby_client/api/organization_api.rb +445 -0
  102. data/lib/trieve_ruby_client/api/stripe_api.rb +278 -0
  103. data/lib/trieve_ruby_client/api/topic_api.rb +317 -0
  104. data/lib/trieve_ruby_client/api/user_api.rb +226 -0
  105. data/lib/trieve_ruby_client/api_client.rb +394 -0
  106. data/lib/trieve_ruby_client/api_error.rb +58 -0
  107. data/lib/trieve_ruby_client/configuration.rb +305 -0
  108. data/lib/trieve_ruby_client/models/add_chunk_to_group_data.rb +222 -0
  109. data/lib/trieve_ruby_client/models/api_key_dto.rb +301 -0
  110. data/lib/trieve_ruby_client/models/bookmark_data.rb +255 -0
  111. data/lib/trieve_ruby_client/models/bookmark_group_result.rb +239 -0
  112. data/lib/trieve_ruby_client/models/chat_message_proxy.rb +237 -0
  113. data/lib/trieve_ruby_client/models/chunk_filter.rb +244 -0
  114. data/lib/trieve_ruby_client/models/chunk_group.rb +311 -0
  115. data/lib/trieve_ruby_client/models/chunk_group_and_file.rb +321 -0
  116. data/lib/trieve_ruby_client/models/chunk_metadata.rb +371 -0
  117. data/lib/trieve_ruby_client/models/chunk_metadata_with_file_data.rb +381 -0
  118. data/lib/trieve_ruby_client/models/client_dataset_configuration.rb +336 -0
  119. data/lib/trieve_ruby_client/models/create_chunk_data.rb +356 -0
  120. data/lib/trieve_ruby_client/models/create_chunk_group_data.rb +250 -0
  121. data/lib/trieve_ruby_client/models/create_dataset_request.rb +265 -0
  122. data/lib/trieve_ruby_client/models/create_message_data.rb +285 -0
  123. data/lib/trieve_ruby_client/models/create_organization_data.rb +222 -0
  124. data/lib/trieve_ruby_client/models/create_topic_data.rb +238 -0
  125. data/lib/trieve_ruby_client/models/dataset.rb +309 -0
  126. data/lib/trieve_ruby_client/models/dataset_and_usage.rb +237 -0
  127. data/lib/trieve_ruby_client/models/dataset_dto.rb +297 -0
  128. data/lib/trieve_ruby_client/models/dataset_usage_count.rb +253 -0
  129. data/lib/trieve_ruby_client/models/delete_dataset_request.rb +222 -0
  130. data/lib/trieve_ruby_client/models/delete_topic_data.rb +222 -0
  131. data/lib/trieve_ruby_client/models/delete_user_api_key_request.rb +222 -0
  132. data/lib/trieve_ruby_client/models/edit_message_data.rb +302 -0
  133. data/lib/trieve_ruby_client/models/error_response_body.rb +221 -0
  134. data/lib/trieve_ruby_client/models/event.rb +297 -0
  135. data/lib/trieve_ruby_client/models/event_return.rb +239 -0
  136. data/lib/trieve_ruby_client/models/field_condition.rb +245 -0
  137. data/lib/trieve_ruby_client/models/file.rb +341 -0
  138. data/lib/trieve_ruby_client/models/file_dto.rb +321 -0
  139. data/lib/trieve_ruby_client/models/generate_chunks_request.rb +276 -0
  140. data/lib/trieve_ruby_client/models/get_groups_for_chunks_data.rb +223 -0
  141. data/lib/trieve_ruby_client/models/group_data.rb +239 -0
  142. data/lib/trieve_ruby_client/models/group_score_chunk_dto.rb +239 -0
  143. data/lib/trieve_ruby_client/models/invitation_data.rb +290 -0
  144. data/lib/trieve_ruby_client/models/match_condition.rb +105 -0
  145. data/lib/trieve_ruby_client/models/message.rb +369 -0
  146. data/lib/trieve_ruby_client/models/organization.rb +279 -0
  147. data/lib/trieve_ruby_client/models/organization_usage_count.rb +301 -0
  148. data/lib/trieve_ruby_client/models/range.rb +245 -0
  149. data/lib/trieve_ruby_client/models/reccomend_group_chunks_request.rb +319 -0
  150. data/lib/trieve_ruby_client/models/recommend_chunks_request.rb +293 -0
  151. data/lib/trieve_ruby_client/models/regenerate_message_data.rb +268 -0
  152. data/lib/trieve_ruby_client/models/return_queued_chunk.rb +237 -0
  153. data/lib/trieve_ruby_client/models/score_chunk_dto.rb +239 -0
  154. data/lib/trieve_ruby_client/models/search_chunk_data.rb +369 -0
  155. data/lib/trieve_ruby_client/models/search_chunk_query_response_body.rb +239 -0
  156. data/lib/trieve_ruby_client/models/search_groups_result.rb +255 -0
  157. data/lib/trieve_ruby_client/models/search_over_groups_data.rb +372 -0
  158. data/lib/trieve_ruby_client/models/search_over_groups_response_body.rb +239 -0
  159. data/lib/trieve_ruby_client/models/search_within_group_data.rb +380 -0
  160. data/lib/trieve_ruby_client/models/set_user_api_key_request.rb +239 -0
  161. data/lib/trieve_ruby_client/models/set_user_api_key_response.rb +222 -0
  162. data/lib/trieve_ruby_client/models/slim_group.rb +269 -0
  163. data/lib/trieve_ruby_client/models/slim_user.rb +319 -0
  164. data/lib/trieve_ruby_client/models/stripe_plan.rb +381 -0
  165. data/lib/trieve_ruby_client/models/stripe_subscription.rb +311 -0
  166. data/lib/trieve_ruby_client/models/suggested_queries_request.rb +222 -0
  167. data/lib/trieve_ruby_client/models/suggested_queries_response.rb +223 -0
  168. data/lib/trieve_ruby_client/models/topic.rb +317 -0
  169. data/lib/trieve_ruby_client/models/update_chunk_by_tracking_id_data.rb +303 -0
  170. data/lib/trieve_ruby_client/models/update_chunk_data.rb +308 -0
  171. data/lib/trieve_ruby_client/models/update_chunk_group_data.rb +249 -0
  172. data/lib/trieve_ruby_client/models/update_dataset_request.rb +255 -0
  173. data/lib/trieve_ruby_client/models/update_group_by_tracking_id_data.rb +244 -0
  174. data/lib/trieve_ruby_client/models/update_organization_data.rb +233 -0
  175. data/lib/trieve_ruby_client/models/update_topic_data.rb +239 -0
  176. data/lib/trieve_ruby_client/models/update_user_data.rb +288 -0
  177. data/lib/trieve_ruby_client/models/upload_file_data.rb +324 -0
  178. data/lib/trieve_ruby_client/models/upload_file_result.rb +221 -0
  179. data/lib/trieve_ruby_client/models/user_organization.rb +301 -0
  180. data/lib/trieve_ruby_client/version.rb +15 -0
  181. data/lib/trieve_ruby_client.rb +124 -0
  182. data/openapi-generator.yaml +9 -0
  183. data/openapi.json +6530 -0
  184. data/openapitools.json +7 -0
  185. data/spec/api/auth_api_spec.rb +82 -0
  186. data/spec/api/chunk_api_spec.rb +191 -0
  187. data/spec/api/chunk_group_api_spec.rb +242 -0
  188. data/spec/api/dataset_api_spec.rb +113 -0
  189. data/spec/api/events_api_spec.rb +48 -0
  190. data/spec/api/file_api_spec.rb +89 -0
  191. data/spec/api/health_api_spec.rb +44 -0
  192. data/spec/api/invitation_api_spec.rb +48 -0
  193. data/spec/api/message_api_spec.rb +87 -0
  194. data/spec/api/organization_api_spec.rb +112 -0
  195. data/spec/api/stripe_api_spec.rb +78 -0
  196. data/spec/api/topic_api_spec.rb +87 -0
  197. data/spec/api/user_api_spec.rb +71 -0
  198. data/spec/models/add_chunk_to_group_data_spec.rb +36 -0
  199. data/spec/models/api_key_dto_spec.rb +66 -0
  200. data/spec/models/bookmark_data_spec.rb +48 -0
  201. data/spec/models/bookmark_group_result_spec.rb +42 -0
  202. data/spec/models/chat_message_proxy_spec.rb +42 -0
  203. data/spec/models/chunk_filter_spec.rb +48 -0
  204. data/spec/models/chunk_group_and_file_spec.rb +78 -0
  205. data/spec/models/chunk_group_spec.rb +72 -0
  206. data/spec/models/chunk_metadata_spec.rb +108 -0
  207. data/spec/models/chunk_metadata_with_file_data_spec.rb +114 -0
  208. data/spec/models/client_dataset_configuration_spec.rb +96 -0
  209. data/spec/models/create_chunk_data_spec.rb +108 -0
  210. data/spec/models/create_chunk_group_data_spec.rb +48 -0
  211. data/spec/models/create_dataset_request_spec.rb +54 -0
  212. data/spec/models/create_message_data_spec.rb +66 -0
  213. data/spec/models/create_organization_data_spec.rb +36 -0
  214. data/spec/models/create_topic_data_spec.rb +48 -0
  215. data/spec/models/dataset_and_usage_spec.rb +42 -0
  216. data/spec/models/dataset_dto_spec.rb +66 -0
  217. data/spec/models/dataset_spec.rb +72 -0
  218. data/spec/models/dataset_usage_count_spec.rb +48 -0
  219. data/spec/models/delete_dataset_request_spec.rb +36 -0
  220. data/spec/models/delete_topic_data_spec.rb +36 -0
  221. data/spec/models/delete_user_api_key_request_spec.rb +36 -0
  222. data/spec/models/edit_message_data_spec.rb +72 -0
  223. data/spec/models/error_response_body_spec.rb +36 -0
  224. data/spec/models/event_return_spec.rb +42 -0
  225. data/spec/models/event_spec.rb +66 -0
  226. data/spec/models/field_condition_spec.rb +48 -0
  227. data/spec/models/file_dto_spec.rb +78 -0
  228. data/spec/models/file_spec.rb +90 -0
  229. data/spec/models/generate_chunks_request_spec.rb +60 -0
  230. data/spec/models/get_groups_for_chunks_data_spec.rb +36 -0
  231. data/spec/models/group_data_spec.rb +42 -0
  232. data/spec/models/group_score_chunk_dto_spec.rb +42 -0
  233. data/spec/models/invitation_data_spec.rb +60 -0
  234. data/spec/models/match_condition_spec.rb +32 -0
  235. data/spec/models/message_spec.rb +96 -0
  236. data/spec/models/organization_spec.rb +60 -0
  237. data/spec/models/organization_usage_count_spec.rb +66 -0
  238. data/spec/models/range_spec.rb +54 -0
  239. data/spec/models/reccomend_group_chunks_request_spec.rb +72 -0
  240. data/spec/models/recommend_chunks_request_spec.rb +66 -0
  241. data/spec/models/regenerate_message_data_spec.rb +60 -0
  242. data/spec/models/return_queued_chunk_spec.rb +42 -0
  243. data/spec/models/score_chunk_dto_spec.rb +42 -0
  244. data/spec/models/search_chunk_data_spec.rb +96 -0
  245. data/spec/models/search_chunk_query_response_body_spec.rb +42 -0
  246. data/spec/models/search_groups_result_spec.rb +48 -0
  247. data/spec/models/search_over_groups_data_spec.rb +90 -0
  248. data/spec/models/search_over_groups_response_body_spec.rb +42 -0
  249. data/spec/models/search_within_group_data_spec.rb +102 -0
  250. data/spec/models/set_user_api_key_request_spec.rb +42 -0
  251. data/spec/models/set_user_api_key_response_spec.rb +36 -0
  252. data/spec/models/slim_group_spec.rb +54 -0
  253. data/spec/models/slim_user_spec.rb +78 -0
  254. data/spec/models/stripe_plan_spec.rb +96 -0
  255. data/spec/models/stripe_subscription_spec.rb +72 -0
  256. data/spec/models/suggested_queries_request_spec.rb +36 -0
  257. data/spec/models/suggested_queries_response_spec.rb +36 -0
  258. data/spec/models/topic_spec.rb +72 -0
  259. data/spec/models/update_chunk_by_tracking_id_data_spec.rb +66 -0
  260. data/spec/models/update_chunk_data_spec.rb +72 -0
  261. data/spec/models/update_chunk_group_data_spec.rb +48 -0
  262. data/spec/models/update_dataset_request_spec.rb +54 -0
  263. data/spec/models/update_group_by_tracking_id_data_spec.rb +48 -0
  264. data/spec/models/update_organization_data_spec.rb +42 -0
  265. data/spec/models/update_topic_data_spec.rb +42 -0
  266. data/spec/models/update_user_data_spec.rb +72 -0
  267. data/spec/models/upload_file_data_spec.rb +84 -0
  268. data/spec/models/upload_file_result_spec.rb +36 -0
  269. data/spec/models/user_organization_spec.rb +66 -0
  270. data/spec/spec_helper.rb +111 -0
  271. data/trieve_ruby_client.gemspec +39 -0
  272. metadata +439 -0
@@ -0,0 +1,480 @@
1
+ # TrieveRubyClient::DatasetApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**create_dataset**](DatasetApi.md#create_dataset) | **POST** /api/dataset | create_dataset |
8
+ | [**delete_dataset**](DatasetApi.md#delete_dataset) | **DELETE** /api/dataset | delete_dataset |
9
+ | [**get_client_dataset_config**](DatasetApi.md#get_client_dataset_config) | **GET** /api/dataset/envs | get_client_dataset_config |
10
+ | [**get_dataset**](DatasetApi.md#get_dataset) | **GET** /api/dataset/{dataset_id} | get_dataset |
11
+ | [**get_datasets_from_organization**](DatasetApi.md#get_datasets_from_organization) | **GET** /api/dataset/organization/{organization_id} | get_organization_datasets |
12
+ | [**update_dataset**](DatasetApi.md#update_dataset) | **PUT** /api/dataset | update_dataset |
13
+
14
+
15
+ ## create_dataset
16
+
17
+ > <Dataset> create_dataset(tr_organization, create_dataset_request)
18
+
19
+ create_dataset
20
+
21
+ create_dataset Create a new dataset. The auth'ed user must be an owner of the organization to create a dataset.
22
+
23
+ ### Examples
24
+
25
+ ```ruby
26
+ require 'time'
27
+ require 'trieve_ruby_client'
28
+ # setup authorization
29
+ TrieveRubyClient.configure do |config|
30
+ # Configure API key authorization: Cookie
31
+ config.api_key['Cookie'] = 'YOUR API KEY'
32
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
33
+ # config.api_key_prefix['Cookie'] = 'Bearer'
34
+
35
+ # Configure API key authorization: ApiKey
36
+ config.api_key['ApiKey'] = 'YOUR API KEY'
37
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
38
+ # config.api_key_prefix['ApiKey'] = 'Bearer'
39
+ end
40
+
41
+ api_instance = TrieveRubyClient::DatasetApi.new
42
+ tr_organization = 'tr_organization_example' # String | The organization id to use for the request
43
+ create_dataset_request = TrieveRubyClient::CreateDatasetRequest.new({client_configuration: 3.56, dataset_name: 'dataset_name_example', organization_id: 'organization_id_example', server_configuration: 3.56}) # CreateDatasetRequest | JSON request payload to create a new dataset
44
+
45
+ begin
46
+ # create_dataset
47
+ result = api_instance.create_dataset(tr_organization, create_dataset_request)
48
+ p result
49
+ rescue TrieveRubyClient::ApiError => e
50
+ puts "Error when calling DatasetApi->create_dataset: #{e}"
51
+ end
52
+ ```
53
+
54
+ #### Using the create_dataset_with_http_info variant
55
+
56
+ This returns an Array which contains the response data, status code and headers.
57
+
58
+ > <Array(<Dataset>, Integer, Hash)> create_dataset_with_http_info(tr_organization, create_dataset_request)
59
+
60
+ ```ruby
61
+ begin
62
+ # create_dataset
63
+ data, status_code, headers = api_instance.create_dataset_with_http_info(tr_organization, create_dataset_request)
64
+ p status_code # => 2xx
65
+ p headers # => { ... }
66
+ p data # => <Dataset>
67
+ rescue TrieveRubyClient::ApiError => e
68
+ puts "Error when calling DatasetApi->create_dataset_with_http_info: #{e}"
69
+ end
70
+ ```
71
+
72
+ ### Parameters
73
+
74
+ | Name | Type | Description | Notes |
75
+ | ---- | ---- | ----------- | ----- |
76
+ | **tr_organization** | **String** | The organization id to use for the request | |
77
+ | **create_dataset_request** | [**CreateDatasetRequest**](CreateDatasetRequest.md) | JSON request payload to create a new dataset | |
78
+
79
+ ### Return type
80
+
81
+ [**Dataset**](Dataset.md)
82
+
83
+ ### Authorization
84
+
85
+ [Cookie](../README.md#Cookie), [ApiKey](../README.md#ApiKey)
86
+
87
+ ### HTTP request headers
88
+
89
+ - **Content-Type**: application/json
90
+ - **Accept**: application/json
91
+
92
+
93
+ ## delete_dataset
94
+
95
+ > delete_dataset(tr_organization, delete_dataset_request)
96
+
97
+ delete_dataset
98
+
99
+ delete_dataset Delete a dataset. The auth'ed user must be an owner of the organization to delete a dataset.
100
+
101
+ ### Examples
102
+
103
+ ```ruby
104
+ require 'time'
105
+ require 'trieve_ruby_client'
106
+ # setup authorization
107
+ TrieveRubyClient.configure do |config|
108
+ # Configure API key authorization: Cookie
109
+ config.api_key['Cookie'] = 'YOUR API KEY'
110
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
111
+ # config.api_key_prefix['Cookie'] = 'Bearer'
112
+
113
+ # Configure API key authorization: ApiKey
114
+ config.api_key['ApiKey'] = 'YOUR API KEY'
115
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
116
+ # config.api_key_prefix['ApiKey'] = 'Bearer'
117
+ end
118
+
119
+ api_instance = TrieveRubyClient::DatasetApi.new
120
+ tr_organization = 'tr_organization_example' # String | The organization id to use for the request
121
+ delete_dataset_request = TrieveRubyClient::DeleteDatasetRequest.new({dataset_id: 'dataset_id_example'}) # DeleteDatasetRequest | JSON request payload to delete a dataset
122
+
123
+ begin
124
+ # delete_dataset
125
+ api_instance.delete_dataset(tr_organization, delete_dataset_request)
126
+ rescue TrieveRubyClient::ApiError => e
127
+ puts "Error when calling DatasetApi->delete_dataset: #{e}"
128
+ end
129
+ ```
130
+
131
+ #### Using the delete_dataset_with_http_info variant
132
+
133
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
134
+
135
+ > <Array(nil, Integer, Hash)> delete_dataset_with_http_info(tr_organization, delete_dataset_request)
136
+
137
+ ```ruby
138
+ begin
139
+ # delete_dataset
140
+ data, status_code, headers = api_instance.delete_dataset_with_http_info(tr_organization, delete_dataset_request)
141
+ p status_code # => 2xx
142
+ p headers # => { ... }
143
+ p data # => nil
144
+ rescue TrieveRubyClient::ApiError => e
145
+ puts "Error when calling DatasetApi->delete_dataset_with_http_info: #{e}"
146
+ end
147
+ ```
148
+
149
+ ### Parameters
150
+
151
+ | Name | Type | Description | Notes |
152
+ | ---- | ---- | ----------- | ----- |
153
+ | **tr_organization** | **String** | The organization id to use for the request | |
154
+ | **delete_dataset_request** | [**DeleteDatasetRequest**](DeleteDatasetRequest.md) | JSON request payload to delete a dataset | |
155
+
156
+ ### Return type
157
+
158
+ nil (empty response body)
159
+
160
+ ### Authorization
161
+
162
+ [Cookie](../README.md#Cookie), [ApiKey](../README.md#ApiKey)
163
+
164
+ ### HTTP request headers
165
+
166
+ - **Content-Type**: application/json
167
+ - **Accept**: application/json
168
+
169
+
170
+ ## get_client_dataset_config
171
+
172
+ > <ClientDatasetConfiguration> get_client_dataset_config(tr_dataset)
173
+
174
+ get_client_dataset_config
175
+
176
+ get_client_dataset_config Get the client configuration for a dataset. Will use the TR-D
177
+
178
+ ### Examples
179
+
180
+ ```ruby
181
+ require 'time'
182
+ require 'trieve_ruby_client'
183
+ # setup authorization
184
+ TrieveRubyClient.configure do |config|
185
+ # Configure API key authorization: Cookie
186
+ config.api_key['Cookie'] = 'YOUR API KEY'
187
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
188
+ # config.api_key_prefix['Cookie'] = 'Bearer'
189
+
190
+ # Configure API key authorization: ApiKey
191
+ config.api_key['ApiKey'] = 'YOUR API KEY'
192
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
193
+ # config.api_key_prefix['ApiKey'] = 'Bearer'
194
+ end
195
+
196
+ api_instance = TrieveRubyClient::DatasetApi.new
197
+ tr_dataset = 'tr_dataset_example' # String | The dataset id to use for the request
198
+
199
+ begin
200
+ # get_client_dataset_config
201
+ result = api_instance.get_client_dataset_config(tr_dataset)
202
+ p result
203
+ rescue TrieveRubyClient::ApiError => e
204
+ puts "Error when calling DatasetApi->get_client_dataset_config: #{e}"
205
+ end
206
+ ```
207
+
208
+ #### Using the get_client_dataset_config_with_http_info variant
209
+
210
+ This returns an Array which contains the response data, status code and headers.
211
+
212
+ > <Array(<ClientDatasetConfiguration>, Integer, Hash)> get_client_dataset_config_with_http_info(tr_dataset)
213
+
214
+ ```ruby
215
+ begin
216
+ # get_client_dataset_config
217
+ data, status_code, headers = api_instance.get_client_dataset_config_with_http_info(tr_dataset)
218
+ p status_code # => 2xx
219
+ p headers # => { ... }
220
+ p data # => <ClientDatasetConfiguration>
221
+ rescue TrieveRubyClient::ApiError => e
222
+ puts "Error when calling DatasetApi->get_client_dataset_config_with_http_info: #{e}"
223
+ end
224
+ ```
225
+
226
+ ### Parameters
227
+
228
+ | Name | Type | Description | Notes |
229
+ | ---- | ---- | ----------- | ----- |
230
+ | **tr_dataset** | **String** | The dataset id to use for the request | |
231
+
232
+ ### Return type
233
+
234
+ [**ClientDatasetConfiguration**](ClientDatasetConfiguration.md)
235
+
236
+ ### Authorization
237
+
238
+ [Cookie](../README.md#Cookie), [ApiKey](../README.md#ApiKey)
239
+
240
+ ### HTTP request headers
241
+
242
+ - **Content-Type**: Not defined
243
+ - **Accept**: application/json
244
+
245
+
246
+ ## get_dataset
247
+
248
+ > <Dataset> get_dataset(tr_organization, tr_dataset, dataset_id)
249
+
250
+ get_dataset
251
+
252
+ get_dataset Get a dataset by id. The auth'ed user must be an admin or owner of the organization to get a dataset.
253
+
254
+ ### Examples
255
+
256
+ ```ruby
257
+ require 'time'
258
+ require 'trieve_ruby_client'
259
+ # setup authorization
260
+ TrieveRubyClient.configure do |config|
261
+ # Configure API key authorization: Cookie
262
+ config.api_key['Cookie'] = 'YOUR API KEY'
263
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
264
+ # config.api_key_prefix['Cookie'] = 'Bearer'
265
+
266
+ # Configure API key authorization: ApiKey
267
+ config.api_key['ApiKey'] = 'YOUR API KEY'
268
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
269
+ # config.api_key_prefix['ApiKey'] = 'Bearer'
270
+ end
271
+
272
+ api_instance = TrieveRubyClient::DatasetApi.new
273
+ tr_organization = 'tr_organization_example' # String | The organization id to use for the request
274
+ tr_dataset = 'tr_dataset_example' # String | The dataset id to use for the request
275
+ dataset_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | The id of the dataset you want to retrieve.
276
+
277
+ begin
278
+ # get_dataset
279
+ result = api_instance.get_dataset(tr_organization, tr_dataset, dataset_id)
280
+ p result
281
+ rescue TrieveRubyClient::ApiError => e
282
+ puts "Error when calling DatasetApi->get_dataset: #{e}"
283
+ end
284
+ ```
285
+
286
+ #### Using the get_dataset_with_http_info variant
287
+
288
+ This returns an Array which contains the response data, status code and headers.
289
+
290
+ > <Array(<Dataset>, Integer, Hash)> get_dataset_with_http_info(tr_organization, tr_dataset, dataset_id)
291
+
292
+ ```ruby
293
+ begin
294
+ # get_dataset
295
+ data, status_code, headers = api_instance.get_dataset_with_http_info(tr_organization, tr_dataset, dataset_id)
296
+ p status_code # => 2xx
297
+ p headers # => { ... }
298
+ p data # => <Dataset>
299
+ rescue TrieveRubyClient::ApiError => e
300
+ puts "Error when calling DatasetApi->get_dataset_with_http_info: #{e}"
301
+ end
302
+ ```
303
+
304
+ ### Parameters
305
+
306
+ | Name | Type | Description | Notes |
307
+ | ---- | ---- | ----------- | ----- |
308
+ | **tr_organization** | **String** | The organization id to use for the request | |
309
+ | **tr_dataset** | **String** | The dataset id to use for the request | |
310
+ | **dataset_id** | **String** | The id of the dataset you want to retrieve. | |
311
+
312
+ ### Return type
313
+
314
+ [**Dataset**](Dataset.md)
315
+
316
+ ### Authorization
317
+
318
+ [Cookie](../README.md#Cookie), [ApiKey](../README.md#ApiKey)
319
+
320
+ ### HTTP request headers
321
+
322
+ - **Content-Type**: Not defined
323
+ - **Accept**: application/json
324
+
325
+
326
+ ## get_datasets_from_organization
327
+
328
+ > <Array<DatasetAndUsage>> get_datasets_from_organization(tr_organization, organization_id)
329
+
330
+ get_organization_datasets
331
+
332
+ get_organization_datasets Get all datasets for an organization. The auth'ed user must be an admin or owner of the organization to get its datasets.
333
+
334
+ ### Examples
335
+
336
+ ```ruby
337
+ require 'time'
338
+ require 'trieve_ruby_client'
339
+ # setup authorization
340
+ TrieveRubyClient.configure do |config|
341
+ # Configure API key authorization: Cookie
342
+ config.api_key['Cookie'] = 'YOUR API KEY'
343
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
344
+ # config.api_key_prefix['Cookie'] = 'Bearer'
345
+
346
+ # Configure API key authorization: ApiKey
347
+ config.api_key['ApiKey'] = 'YOUR API KEY'
348
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
349
+ # config.api_key_prefix['ApiKey'] = 'Bearer'
350
+ end
351
+
352
+ api_instance = TrieveRubyClient::DatasetApi.new
353
+ tr_organization = 'tr_organization_example' # String | The organization id to use for the request
354
+ organization_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | id of the organization you want to retrieve datasets for
355
+
356
+ begin
357
+ # get_organization_datasets
358
+ result = api_instance.get_datasets_from_organization(tr_organization, organization_id)
359
+ p result
360
+ rescue TrieveRubyClient::ApiError => e
361
+ puts "Error when calling DatasetApi->get_datasets_from_organization: #{e}"
362
+ end
363
+ ```
364
+
365
+ #### Using the get_datasets_from_organization_with_http_info variant
366
+
367
+ This returns an Array which contains the response data, status code and headers.
368
+
369
+ > <Array(<Array<DatasetAndUsage>>, Integer, Hash)> get_datasets_from_organization_with_http_info(tr_organization, organization_id)
370
+
371
+ ```ruby
372
+ begin
373
+ # get_organization_datasets
374
+ data, status_code, headers = api_instance.get_datasets_from_organization_with_http_info(tr_organization, organization_id)
375
+ p status_code # => 2xx
376
+ p headers # => { ... }
377
+ p data # => <Array<DatasetAndUsage>>
378
+ rescue TrieveRubyClient::ApiError => e
379
+ puts "Error when calling DatasetApi->get_datasets_from_organization_with_http_info: #{e}"
380
+ end
381
+ ```
382
+
383
+ ### Parameters
384
+
385
+ | Name | Type | Description | Notes |
386
+ | ---- | ---- | ----------- | ----- |
387
+ | **tr_organization** | **String** | The organization id to use for the request | |
388
+ | **organization_id** | **String** | id of the organization you want to retrieve datasets for | |
389
+
390
+ ### Return type
391
+
392
+ [**Array&lt;DatasetAndUsage&gt;**](DatasetAndUsage.md)
393
+
394
+ ### Authorization
395
+
396
+ [Cookie](../README.md#Cookie), [ApiKey](../README.md#ApiKey)
397
+
398
+ ### HTTP request headers
399
+
400
+ - **Content-Type**: Not defined
401
+ - **Accept**: application/json
402
+
403
+
404
+ ## update_dataset
405
+
406
+ > <Dataset> update_dataset(tr_organization, update_dataset_request)
407
+
408
+ update_dataset
409
+
410
+ update_dataset Update a dataset. The auth'ed user must be an owner of the organization to update a dataset.
411
+
412
+ ### Examples
413
+
414
+ ```ruby
415
+ require 'time'
416
+ require 'trieve_ruby_client'
417
+ # setup authorization
418
+ TrieveRubyClient.configure do |config|
419
+ # Configure API key authorization: Cookie
420
+ config.api_key['Cookie'] = 'YOUR API KEY'
421
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
422
+ # config.api_key_prefix['Cookie'] = 'Bearer'
423
+
424
+ # Configure API key authorization: ApiKey
425
+ config.api_key['ApiKey'] = 'YOUR API KEY'
426
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
427
+ # config.api_key_prefix['ApiKey'] = 'Bearer'
428
+ end
429
+
430
+ api_instance = TrieveRubyClient::DatasetApi.new
431
+ tr_organization = 'tr_organization_example' # String | The organization id to use for the request
432
+ update_dataset_request = TrieveRubyClient::UpdateDatasetRequest.new({dataset_id: 'dataset_id_example'}) # UpdateDatasetRequest | JSON request payload to update a dataset
433
+
434
+ begin
435
+ # update_dataset
436
+ result = api_instance.update_dataset(tr_organization, update_dataset_request)
437
+ p result
438
+ rescue TrieveRubyClient::ApiError => e
439
+ puts "Error when calling DatasetApi->update_dataset: #{e}"
440
+ end
441
+ ```
442
+
443
+ #### Using the update_dataset_with_http_info variant
444
+
445
+ This returns an Array which contains the response data, status code and headers.
446
+
447
+ > <Array(<Dataset>, Integer, Hash)> update_dataset_with_http_info(tr_organization, update_dataset_request)
448
+
449
+ ```ruby
450
+ begin
451
+ # update_dataset
452
+ data, status_code, headers = api_instance.update_dataset_with_http_info(tr_organization, update_dataset_request)
453
+ p status_code # => 2xx
454
+ p headers # => { ... }
455
+ p data # => <Dataset>
456
+ rescue TrieveRubyClient::ApiError => e
457
+ puts "Error when calling DatasetApi->update_dataset_with_http_info: #{e}"
458
+ end
459
+ ```
460
+
461
+ ### Parameters
462
+
463
+ | Name | Type | Description | Notes |
464
+ | ---- | ---- | ----------- | ----- |
465
+ | **tr_organization** | **String** | The organization id to use for the request | |
466
+ | **update_dataset_request** | [**UpdateDatasetRequest**](UpdateDatasetRequest.md) | JSON request payload to update a dataset | |
467
+
468
+ ### Return type
469
+
470
+ [**Dataset**](Dataset.md)
471
+
472
+ ### Authorization
473
+
474
+ [Cookie](../README.md#Cookie), [ApiKey](../README.md#ApiKey)
475
+
476
+ ### HTTP request headers
477
+
478
+ - **Content-Type**: application/json
479
+ - **Accept**: application/json
480
+
@@ -0,0 +1,28 @@
1
+ # TrieveRubyClient::DatasetDTO
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **client_configuration** | **Object** | | |
8
+ | **created_at** | **Time** | | |
9
+ | **id** | **String** | | |
10
+ | **name** | **String** | | |
11
+ | **organization_id** | **String** | | |
12
+ | **updated_at** | **Time** | | |
13
+
14
+ ## Example
15
+
16
+ ```ruby
17
+ require 'trieve_ruby_client'
18
+
19
+ instance = TrieveRubyClient::DatasetDTO.new(
20
+ client_configuration: null,
21
+ created_at: null,
22
+ id: null,
23
+ name: null,
24
+ organization_id: null,
25
+ updated_at: null
26
+ )
27
+ ```
28
+
@@ -0,0 +1,22 @@
1
+ # TrieveRubyClient::DatasetUsageCount
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **chunk_count** | **Integer** | | |
8
+ | **dataset_id** | **String** | | |
9
+ | **id** | **String** | | |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'trieve_ruby_client'
15
+
16
+ instance = TrieveRubyClient::DatasetUsageCount.new(
17
+ chunk_count: null,
18
+ dataset_id: null,
19
+ id: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,18 @@
1
+ # TrieveRubyClient::DeleteDatasetRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **dataset_id** | **String** | The id of the dataset you want to delete. | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'trieve_ruby_client'
13
+
14
+ instance = TrieveRubyClient::DeleteDatasetRequest.new(
15
+ dataset_id: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,18 @@
1
+ # TrieveRubyClient::DeleteTopicData
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **topic_id** | **String** | The id of the topic to target. | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'trieve_ruby_client'
13
+
14
+ instance = TrieveRubyClient::DeleteTopicData.new(
15
+ topic_id: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,18 @@
1
+ # TrieveRubyClient::DeleteUserApiKeyRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **api_key_id** | **String** | The id of the api key to delete. | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'trieve_ruby_client'
13
+
14
+ instance = TrieveRubyClient::DeleteUserApiKeyRequest.new(
15
+ api_key_id: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,30 @@
1
+ # TrieveRubyClient::EditMessageData
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **highlight_citations** | **Boolean** | Whether or not to highlight the citations in the response. If this is set to true or not included, the citations will be highlighted. If this is set to false, the citations will not be highlighted. Default is true. | [optional] |
8
+ | **highlight_delimiters** | **Array&lt;String&gt;** | The delimiters to use for highlighting the citations. If this is not included, the default delimiters will be used. Default is &#x60;[\&quot;.\&quot;, \&quot;!\&quot;, \&quot;?\&quot;, \&quot;\\n\&quot;, \&quot;\\t\&quot;, \&quot;,\&quot;]&#x60;. | [optional] |
9
+ | **message_sort_order** | **Integer** | The sort order of the message to edit. | |
10
+ | **model** | **String** | The model to use for the assistant generative inferences. This can be any model from the openrouter model list. If no model is provided, the gpt-3.5-turbo will be used.~ | [optional] |
11
+ | **new_message_content** | **String** | The new content of the message to replace the old content with. | |
12
+ | **stream_response** | **Boolean** | Whether or not to stream the response. If this is set to true or not included, the response will be a stream. If this is set to false, the response will be a normal JSON response. Default is true. | [optional] |
13
+ | **topic_id** | **String** | The id of the topic to edit the message at the given sort order for. | |
14
+
15
+ ## Example
16
+
17
+ ```ruby
18
+ require 'trieve_ruby_client'
19
+
20
+ instance = TrieveRubyClient::EditMessageData.new(
21
+ highlight_citations: null,
22
+ highlight_delimiters: null,
23
+ message_sort_order: null,
24
+ model: null,
25
+ new_message_content: null,
26
+ stream_response: null,
27
+ topic_id: null
28
+ )
29
+ ```
30
+
@@ -0,0 +1,18 @@
1
+ # TrieveRubyClient::ErrorResponseBody
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **message** | **String** | | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'trieve_ruby_client'
13
+
14
+ instance = TrieveRubyClient::ErrorResponseBody.new(
15
+ message: null
16
+ )
17
+ ```
18
+
data/docs/Event.md ADDED
@@ -0,0 +1,28 @@
1
+ # TrieveRubyClient::Event
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **created_at** | **Time** | | |
8
+ | **dataset_id** | **String** | | |
9
+ | **event_data** | **Object** | | |
10
+ | **event_type** | **String** | | |
11
+ | **id** | **String** | | |
12
+ | **updated_at** | **Time** | | |
13
+
14
+ ## Example
15
+
16
+ ```ruby
17
+ require 'trieve_ruby_client'
18
+
19
+ instance = TrieveRubyClient::Event.new(
20
+ created_at: null,
21
+ dataset_id: null,
22
+ event_data: null,
23
+ event_type: null,
24
+ id: null,
25
+ updated_at: null
26
+ )
27
+ ```
28
+
@@ -0,0 +1,20 @@
1
+ # TrieveRubyClient::EventReturn
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **events** | [**Array&lt;Event&gt;**](Event.md) | | |
8
+ | **page_count** | **Integer** | | |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'trieve_ruby_client'
14
+
15
+ instance = TrieveRubyClient::EventReturn.new(
16
+ events: null,
17
+ page_count: null
18
+ )
19
+ ```
20
+