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
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: b182ca3ab9a91c173007984bb1699894ccdc8210908ed67ed0e9825dcc51d060
4
+ data.tar.gz: de0527963f83607557a05e2e51946af9739645a5a3a1454fa1e0404305843407
5
+ SHA512:
6
+ metadata.gz: 2506ef4cc37d376616503952fff65408efbe074f75acd3a77861e9bc62072fa0892fbda9b9db99ac59679f85dff80a4ec3ad247d7be1e3535f4aeec90d152a73
7
+ data.tar.gz: 6bfef3a7504a6478c1a45cca713332021a4e16c2ca8d33f022f26ead18c6972bd38cfbb2cae7c088aa88cb3cb9aa10685cc7b842dbda61aafcf993211e0c372e
data/Gemfile ADDED
@@ -0,0 +1,9 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
4
+
5
+ group :development, :test do
6
+ gem 'rake', '~> 13.0.1'
7
+ gem 'pry-byebug'
8
+ gem 'rubocop', '~> 0.66.0'
9
+ end
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Devflow, Inc
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,240 @@
1
+ # trieve_ruby_client
2
+
3
+ TrieveRubyClient - the Ruby gem for the Trieve API
4
+
5
+ Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
6
+
7
+ This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
+
9
+ - API version: 0.3.4
10
+ - Package version: 0.3.4
11
+ - Generator version: 7.4.0
12
+ - Build package: org.openapitools.codegen.languages.RubyClientCodegen
13
+ For more information, please visit [https://trieve.ai](https://trieve.ai)
14
+
15
+ ## Installation
16
+
17
+ ### Build a gem
18
+
19
+ To build the Ruby code into a gem:
20
+
21
+ ```shell
22
+ gem build trieve_ruby_client.gemspec
23
+ ```
24
+
25
+ Then either install the gem locally:
26
+
27
+ ```shell
28
+ gem install ./trieve_ruby_client-0.3.4.gem
29
+ ```
30
+
31
+ (for development, run `gem install --dev ./trieve_ruby_client-0.3.4.gem` to install the development dependencies)
32
+
33
+ or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
34
+
35
+ Finally add this to the Gemfile:
36
+
37
+ gem 'trieve_ruby_client', '~> 0.3.4'
38
+
39
+ ### Install from Git
40
+
41
+ If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:
42
+
43
+ gem 'trieve_ruby_client', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
44
+
45
+ ### Include the Ruby code directly
46
+
47
+ Include the Ruby code directly using `-I` as follows:
48
+
49
+ ```shell
50
+ ruby -Ilib script.rb
51
+ ```
52
+
53
+ ## Getting Started
54
+
55
+ Please follow the [installation](#installation) procedure and then run the following code:
56
+
57
+ ```ruby
58
+ # Load the gem
59
+ require 'trieve_ruby_client'
60
+
61
+ api_instance = TrieveRubyClient::AuthApi.new
62
+
63
+ begin
64
+ #openid_callback
65
+ result = api_instance.callback
66
+ p result
67
+ rescue TrieveRubyClient::ApiError => e
68
+ puts "Exception when calling AuthApi->callback: #{e}"
69
+ end
70
+
71
+ ```
72
+
73
+ ## Documentation for API Endpoints
74
+
75
+ All URIs are relative to *http://localhost*
76
+
77
+ Class | Method | HTTP request | Description
78
+ ------------ | ------------- | ------------- | -------------
79
+ *TrieveRubyClient::AuthApi* | [**callback**](docs/AuthApi.md#callback) | **GET** /api/auth/callback | openid_callback
80
+ *TrieveRubyClient::AuthApi* | [**get_me**](docs/AuthApi.md#get_me) | **GET** /api/auth/me | get_me
81
+ *TrieveRubyClient::AuthApi* | [**login**](docs/AuthApi.md#login) | **GET** /api/auth | login
82
+ *TrieveRubyClient::AuthApi* | [**logout**](docs/AuthApi.md#logout) | **DELETE** /api/auth | logout
83
+ *TrieveRubyClient::ChunkApi* | [**bulk_create_chunk**](docs/ChunkApi.md#bulk_create_chunk) | **POST** /api/chunk/bulk | bulk_create_chunk
84
+ *TrieveRubyClient::ChunkApi* | [**create_chunk**](docs/ChunkApi.md#create_chunk) | **POST** /api/chunk | create_chunk
85
+ *TrieveRubyClient::ChunkApi* | [**create_suggested_queries_handler**](docs/ChunkApi.md#create_suggested_queries_handler) | **POST** /api/chunk/gen_suggestions | get_suggested_queries
86
+ *TrieveRubyClient::ChunkApi* | [**delete_chunk**](docs/ChunkApi.md#delete_chunk) | **DELETE** /api/{tracking_or_chunk}/{chunk_id} | delete_chunk
87
+ *TrieveRubyClient::ChunkApi* | [**delete_chunk_by_tracking_id**](docs/ChunkApi.md#delete_chunk_by_tracking_id) | **DELETE** /api/chunk/tracking_id/{tracking_id} | delete_chunk_by_tracking_id
88
+ *TrieveRubyClient::ChunkApi* | [**generate_off_chunks**](docs/ChunkApi.md#generate_off_chunks) | **POST** /api/chunk/generate | augmented_generation_from_chunks
89
+ *TrieveRubyClient::ChunkApi* | [**get_chunk_by_id**](docs/ChunkApi.md#get_chunk_by_id) | **GET** /api/{tracking_or_chunk}/{chunk_id} | get_chunk
90
+ *TrieveRubyClient::ChunkApi* | [**get_chunk_by_tracking_id**](docs/ChunkApi.md#get_chunk_by_tracking_id) | **GET** /api/chunk/tracking_id/{tracking_id} | get_chunk_by_tracking_id
91
+ *TrieveRubyClient::ChunkApi* | [**get_recommended_chunks**](docs/ChunkApi.md#get_recommended_chunks) | **POST** /api/chunk/recommend | get_recommended_chunks
92
+ *TrieveRubyClient::ChunkApi* | [**search_chunk**](docs/ChunkApi.md#search_chunk) | **POST** /api/chunk/search | search
93
+ *TrieveRubyClient::ChunkApi* | [**update_chunk**](docs/ChunkApi.md#update_chunk) | **PUT** /api/chunk/update | update_chunk
94
+ *TrieveRubyClient::ChunkApi* | [**update_chunk_by_tracking_id**](docs/ChunkApi.md#update_chunk_by_tracking_id) | **PUT** /api/chunk/tracking_id/update | update_chunk_by_tracking_id
95
+ *TrieveRubyClient::ChunkGroupApi* | [**add_chunk_to_group**](docs/ChunkGroupApi.md#add_chunk_to_group) | **POST** /api/chunk_group/chunk/{group_id} | add_chunk_to_group
96
+ *TrieveRubyClient::ChunkGroupApi* | [**add_chunk_to_group_by_tracking_id**](docs/ChunkGroupApi.md#add_chunk_to_group_by_tracking_id) | **POST** /api/chunk_group/tracking_id/{tracking_id} | add_chunk_to_group_by_tracking_id
97
+ *TrieveRubyClient::ChunkGroupApi* | [**create_chunk_group**](docs/ChunkGroupApi.md#create_chunk_group) | **POST** /api/chunk_group | create_chunk_group
98
+ *TrieveRubyClient::ChunkGroupApi* | [**delete_chunk_group**](docs/ChunkGroupApi.md#delete_chunk_group) | **DELETE** /api/{tracking_or_chunk}/{group_id} | delete_chunk_group
99
+ *TrieveRubyClient::ChunkGroupApi* | [**delete_group_by_tracking_id**](docs/ChunkGroupApi.md#delete_group_by_tracking_id) | **DELETE** /api/chunk_group/tracking_id/{tracking_id} |
100
+ *TrieveRubyClient::ChunkGroupApi* | [**get_chunks_in_group**](docs/ChunkGroupApi.md#get_chunks_in_group) | **GET** /api/chunk_group/{tracking_or_chunk}/{group_id}/{page} | get_chunks_in_group
101
+ *TrieveRubyClient::ChunkGroupApi* | [**get_chunks_in_group_by_tracking_id**](docs/ChunkGroupApi.md#get_chunks_in_group_by_tracking_id) | **GET** /api/chunk_group/tracking_id/{group_tracking_id}/{page} | get_chunks_in_group_by_tracking_id
102
+ *TrieveRubyClient::ChunkGroupApi* | [**get_group_by_tracking_id**](docs/ChunkGroupApi.md#get_group_by_tracking_id) | **GET** /api/chunk_group/tracking_id/{tracking_id} | get_group_by_tracking_id
103
+ *TrieveRubyClient::ChunkGroupApi* | [**get_groups_chunk_is_in**](docs/ChunkGroupApi.md#get_groups_chunk_is_in) | **POST** /api/chunk_group/chunks |
104
+ *TrieveRubyClient::ChunkGroupApi* | [**get_recommended_groups**](docs/ChunkGroupApi.md#get_recommended_groups) | **POST** /api/chunk_group/recommend |
105
+ *TrieveRubyClient::ChunkGroupApi* | [**get_specific_dataset_chunk_groups**](docs/ChunkGroupApi.md#get_specific_dataset_chunk_groups) | **GET** /api/dataset/groups/{dataset_id}/{page} | get_dataset_groups
106
+ *TrieveRubyClient::ChunkGroupApi* | [**remove_chunk_from_group**](docs/ChunkGroupApi.md#remove_chunk_from_group) | **DELETE** /api/chunk_group/chunk/{group_id} | remove_chunk_from_group
107
+ *TrieveRubyClient::ChunkGroupApi* | [**search_over_groups**](docs/ChunkGroupApi.md#search_over_groups) | **POST** /api/chunk_group/group_oriented_search | group_oriented_search
108
+ *TrieveRubyClient::ChunkGroupApi* | [**search_within_group**](docs/ChunkGroupApi.md#search_within_group) | **POST** /api/chunk_group/search | search_within_group
109
+ *TrieveRubyClient::ChunkGroupApi* | [**update_chunk_group**](docs/ChunkGroupApi.md#update_chunk_group) | **PUT** /api/chunk_group | update_chunk_group
110
+ *TrieveRubyClient::ChunkGroupApi* | [**update_group_by_tracking_id**](docs/ChunkGroupApi.md#update_group_by_tracking_id) | **PUT** /api/chunk_group/tracking_id/{tracking_id} |
111
+ *TrieveRubyClient::DatasetApi* | [**create_dataset**](docs/DatasetApi.md#create_dataset) | **POST** /api/dataset | create_dataset
112
+ *TrieveRubyClient::DatasetApi* | [**delete_dataset**](docs/DatasetApi.md#delete_dataset) | **DELETE** /api/dataset | delete_dataset
113
+ *TrieveRubyClient::DatasetApi* | [**get_client_dataset_config**](docs/DatasetApi.md#get_client_dataset_config) | **GET** /api/dataset/envs | get_client_dataset_config
114
+ *TrieveRubyClient::DatasetApi* | [**get_dataset**](docs/DatasetApi.md#get_dataset) | **GET** /api/dataset/{dataset_id} | get_dataset
115
+ *TrieveRubyClient::DatasetApi* | [**get_datasets_from_organization**](docs/DatasetApi.md#get_datasets_from_organization) | **GET** /api/dataset/organization/{organization_id} | get_organization_datasets
116
+ *TrieveRubyClient::DatasetApi* | [**update_dataset**](docs/DatasetApi.md#update_dataset) | **PUT** /api/dataset | update_dataset
117
+ *TrieveRubyClient::EventsApi* | [**get_events**](docs/EventsApi.md#get_events) | **GET** /api/events/{page} | get_events
118
+ *TrieveRubyClient::FileApi* | [**delete_file_handler**](docs/FileApi.md#delete_file_handler) | **DELETE** /api/file/{file_id} | delete_file
119
+ *TrieveRubyClient::FileApi* | [**get_dataset_files_handler**](docs/FileApi.md#get_dataset_files_handler) | **GET** /api/dataset/files/{dataset_id}/{page} | get_dataset_files
120
+ *TrieveRubyClient::FileApi* | [**get_file_handler**](docs/FileApi.md#get_file_handler) | **GET** /api/file/{file_id} | get_file
121
+ *TrieveRubyClient::FileApi* | [**upload_file_handler**](docs/FileApi.md#upload_file_handler) | **POST** /api/file | upload_file
122
+ *TrieveRubyClient::HealthApi* | [**health_check**](docs/HealthApi.md#health_check) | **GET** /api/health |
123
+ *TrieveRubyClient::InvitationApi* | [**post_invitation**](docs/InvitationApi.md#post_invitation) | **POST** /api/invitation | send_invitation
124
+ *TrieveRubyClient::MessageApi* | [**create_message_completion_handler**](docs/MessageApi.md#create_message_completion_handler) | **POST** /api/message | create_message
125
+ *TrieveRubyClient::MessageApi* | [**edit_message_handler**](docs/MessageApi.md#edit_message_handler) | **PUT** /api/message | edit_message
126
+ *TrieveRubyClient::MessageApi* | [**get_all_topic_messages**](docs/MessageApi.md#get_all_topic_messages) | **GET** /api/messages/{messages_topic_id} | get_all_messages
127
+ *TrieveRubyClient::MessageApi* | [**regenerate_message_handler**](docs/MessageApi.md#regenerate_message_handler) | **DELETE** /api/message | regenerate_message
128
+ *TrieveRubyClient::OrganizationApi* | [**create_organization**](docs/OrganizationApi.md#create_organization) | **POST** /api/organization | create_organization
129
+ *TrieveRubyClient::OrganizationApi* | [**delete_organization_by_id**](docs/OrganizationApi.md#delete_organization_by_id) | **DELETE** /api/organization/{organization_id} | delete_organization
130
+ *TrieveRubyClient::OrganizationApi* | [**get_organization_by_id**](docs/OrganizationApi.md#get_organization_by_id) | **GET** /api/organization/{organization_id} | get_organization
131
+ *TrieveRubyClient::OrganizationApi* | [**get_organization_usage**](docs/OrganizationApi.md#get_organization_usage) | **GET** /api/organization/usage/{organization_id} | get_organization_usage
132
+ *TrieveRubyClient::OrganizationApi* | [**get_organization_users**](docs/OrganizationApi.md#get_organization_users) | **GET** /api/organization/users/{organization_id} | get_organization_users
133
+ *TrieveRubyClient::OrganizationApi* | [**update_organization**](docs/OrganizationApi.md#update_organization) | **PUT** /api/organization | update_organization
134
+ *TrieveRubyClient::StripeApi* | [**cancel_subscription**](docs/StripeApi.md#cancel_subscription) | **DELETE** /api/stripe/subscription/{subscription_id} |
135
+ *TrieveRubyClient::StripeApi* | [**direct_to_payment_link**](docs/StripeApi.md#direct_to_payment_link) | **GET** /api/stripe/payment_link/{plan_id}/{organization_id} |
136
+ *TrieveRubyClient::StripeApi* | [**get_all_plans**](docs/StripeApi.md#get_all_plans) | **GET** /api/stripe/plans |
137
+ *TrieveRubyClient::StripeApi* | [**update_subscription_plan**](docs/StripeApi.md#update_subscription_plan) | **PATCH** /api/stripe/subscription_plan/{subscription_id}/{plan_id} |
138
+ *TrieveRubyClient::TopicApi* | [**create_topic**](docs/TopicApi.md#create_topic) | **POST** /api/topic | create_topic
139
+ *TrieveRubyClient::TopicApi* | [**delete_topic**](docs/TopicApi.md#delete_topic) | **DELETE** /api/topic | delete_topic
140
+ *TrieveRubyClient::TopicApi* | [**get_all_topics_for_user**](docs/TopicApi.md#get_all_topics_for_user) | **GET** /api/topic/user/{user_id} | get_all_topics_for_user
141
+ *TrieveRubyClient::TopicApi* | [**update_topic**](docs/TopicApi.md#update_topic) | **PUT** /api/topic | update_topic
142
+ *TrieveRubyClient::UserApi* | [**delete_user_api_key**](docs/UserApi.md#delete_user_api_key) | **DELETE** /api/user/delete_api_key | delete_user_api_key
143
+ *TrieveRubyClient::UserApi* | [**set_user_api_key**](docs/UserApi.md#set_user_api_key) | **POST** /api/user/set_api_key | set_user_api_key
144
+ *TrieveRubyClient::UserApi* | [**update_user**](docs/UserApi.md#update_user) | **PUT** /api/user | update_user
145
+
146
+
147
+ ## Documentation for Models
148
+
149
+ - [TrieveRubyClient::AddChunkToGroupData](docs/AddChunkToGroupData.md)
150
+ - [TrieveRubyClient::ApiKeyDTO](docs/ApiKeyDTO.md)
151
+ - [TrieveRubyClient::BookmarkData](docs/BookmarkData.md)
152
+ - [TrieveRubyClient::BookmarkGroupResult](docs/BookmarkGroupResult.md)
153
+ - [TrieveRubyClient::ChatMessageProxy](docs/ChatMessageProxy.md)
154
+ - [TrieveRubyClient::ChunkFilter](docs/ChunkFilter.md)
155
+ - [TrieveRubyClient::ChunkGroup](docs/ChunkGroup.md)
156
+ - [TrieveRubyClient::ChunkGroupAndFile](docs/ChunkGroupAndFile.md)
157
+ - [TrieveRubyClient::ChunkMetadata](docs/ChunkMetadata.md)
158
+ - [TrieveRubyClient::ChunkMetadataWithFileData](docs/ChunkMetadataWithFileData.md)
159
+ - [TrieveRubyClient::ClientDatasetConfiguration](docs/ClientDatasetConfiguration.md)
160
+ - [TrieveRubyClient::CreateChunkData](docs/CreateChunkData.md)
161
+ - [TrieveRubyClient::CreateChunkGroupData](docs/CreateChunkGroupData.md)
162
+ - [TrieveRubyClient::CreateDatasetRequest](docs/CreateDatasetRequest.md)
163
+ - [TrieveRubyClient::CreateMessageData](docs/CreateMessageData.md)
164
+ - [TrieveRubyClient::CreateOrganizationData](docs/CreateOrganizationData.md)
165
+ - [TrieveRubyClient::CreateTopicData](docs/CreateTopicData.md)
166
+ - [TrieveRubyClient::Dataset](docs/Dataset.md)
167
+ - [TrieveRubyClient::DatasetAndUsage](docs/DatasetAndUsage.md)
168
+ - [TrieveRubyClient::DatasetDTO](docs/DatasetDTO.md)
169
+ - [TrieveRubyClient::DatasetUsageCount](docs/DatasetUsageCount.md)
170
+ - [TrieveRubyClient::DeleteDatasetRequest](docs/DeleteDatasetRequest.md)
171
+ - [TrieveRubyClient::DeleteTopicData](docs/DeleteTopicData.md)
172
+ - [TrieveRubyClient::DeleteUserApiKeyRequest](docs/DeleteUserApiKeyRequest.md)
173
+ - [TrieveRubyClient::EditMessageData](docs/EditMessageData.md)
174
+ - [TrieveRubyClient::ErrorResponseBody](docs/ErrorResponseBody.md)
175
+ - [TrieveRubyClient::Event](docs/Event.md)
176
+ - [TrieveRubyClient::EventReturn](docs/EventReturn.md)
177
+ - [TrieveRubyClient::FieldCondition](docs/FieldCondition.md)
178
+ - [TrieveRubyClient::File](docs/File.md)
179
+ - [TrieveRubyClient::FileDTO](docs/FileDTO.md)
180
+ - [TrieveRubyClient::GenerateChunksRequest](docs/GenerateChunksRequest.md)
181
+ - [TrieveRubyClient::GetGroupsForChunksData](docs/GetGroupsForChunksData.md)
182
+ - [TrieveRubyClient::GroupData](docs/GroupData.md)
183
+ - [TrieveRubyClient::GroupScoreChunkDTO](docs/GroupScoreChunkDTO.md)
184
+ - [TrieveRubyClient::InvitationData](docs/InvitationData.md)
185
+ - [TrieveRubyClient::MatchCondition](docs/MatchCondition.md)
186
+ - [TrieveRubyClient::Message](docs/Message.md)
187
+ - [TrieveRubyClient::Organization](docs/Organization.md)
188
+ - [TrieveRubyClient::OrganizationUsageCount](docs/OrganizationUsageCount.md)
189
+ - [TrieveRubyClient::Range](docs/Range.md)
190
+ - [TrieveRubyClient::ReccomendGroupChunksRequest](docs/ReccomendGroupChunksRequest.md)
191
+ - [TrieveRubyClient::RecommendChunksRequest](docs/RecommendChunksRequest.md)
192
+ - [TrieveRubyClient::RegenerateMessageData](docs/RegenerateMessageData.md)
193
+ - [TrieveRubyClient::ReturnQueuedChunk](docs/ReturnQueuedChunk.md)
194
+ - [TrieveRubyClient::ScoreChunkDTO](docs/ScoreChunkDTO.md)
195
+ - [TrieveRubyClient::SearchChunkData](docs/SearchChunkData.md)
196
+ - [TrieveRubyClient::SearchChunkQueryResponseBody](docs/SearchChunkQueryResponseBody.md)
197
+ - [TrieveRubyClient::SearchGroupsResult](docs/SearchGroupsResult.md)
198
+ - [TrieveRubyClient::SearchOverGroupsData](docs/SearchOverGroupsData.md)
199
+ - [TrieveRubyClient::SearchOverGroupsResponseBody](docs/SearchOverGroupsResponseBody.md)
200
+ - [TrieveRubyClient::SearchWithinGroupData](docs/SearchWithinGroupData.md)
201
+ - [TrieveRubyClient::SetUserApiKeyRequest](docs/SetUserApiKeyRequest.md)
202
+ - [TrieveRubyClient::SetUserApiKeyResponse](docs/SetUserApiKeyResponse.md)
203
+ - [TrieveRubyClient::SlimGroup](docs/SlimGroup.md)
204
+ - [TrieveRubyClient::SlimUser](docs/SlimUser.md)
205
+ - [TrieveRubyClient::StripePlan](docs/StripePlan.md)
206
+ - [TrieveRubyClient::StripeSubscription](docs/StripeSubscription.md)
207
+ - [TrieveRubyClient::SuggestedQueriesRequest](docs/SuggestedQueriesRequest.md)
208
+ - [TrieveRubyClient::SuggestedQueriesResponse](docs/SuggestedQueriesResponse.md)
209
+ - [TrieveRubyClient::Topic](docs/Topic.md)
210
+ - [TrieveRubyClient::UpdateChunkByTrackingIdData](docs/UpdateChunkByTrackingIdData.md)
211
+ - [TrieveRubyClient::UpdateChunkData](docs/UpdateChunkData.md)
212
+ - [TrieveRubyClient::UpdateChunkGroupData](docs/UpdateChunkGroupData.md)
213
+ - [TrieveRubyClient::UpdateDatasetRequest](docs/UpdateDatasetRequest.md)
214
+ - [TrieveRubyClient::UpdateGroupByTrackingIDData](docs/UpdateGroupByTrackingIDData.md)
215
+ - [TrieveRubyClient::UpdateOrganizationData](docs/UpdateOrganizationData.md)
216
+ - [TrieveRubyClient::UpdateTopicData](docs/UpdateTopicData.md)
217
+ - [TrieveRubyClient::UpdateUserData](docs/UpdateUserData.md)
218
+ - [TrieveRubyClient::UploadFileData](docs/UploadFileData.md)
219
+ - [TrieveRubyClient::UploadFileResult](docs/UploadFileResult.md)
220
+ - [TrieveRubyClient::UserOrganization](docs/UserOrganization.md)
221
+
222
+
223
+ ## Documentation for Authorization
224
+
225
+
226
+ Authentication schemes defined for the API:
227
+ ### ApiKey
228
+
229
+
230
+ - **Type**: API key
231
+ - **API key parameter name**: Authorization
232
+ - **Location**: HTTP header
233
+
234
+ ### Cookie
235
+
236
+
237
+ - **Type**: API key
238
+ - **API key parameter name**: Authorization
239
+ - **Location**:
240
+
data/Rakefile ADDED
@@ -0,0 +1,10 @@
1
+ require "bundler/gem_tasks"
2
+
3
+ begin
4
+ require 'rspec/core/rake_task'
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+ task default: :spec
8
+ rescue LoadError
9
+ # no rspec available
10
+ end
@@ -0,0 +1,18 @@
1
+ # TrieveRubyClient::AddChunkToGroupData
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **chunk_id** | **String** | Id of the chunk to make a member of the group. Think of this as \"bookmark\"ing a chunk. | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'trieve_ruby_client'
13
+
14
+ instance = TrieveRubyClient::AddChunkToGroupData.new(
15
+ chunk_id: null
16
+ )
17
+ ```
18
+
data/docs/ApiKeyDTO.md ADDED
@@ -0,0 +1,28 @@
1
+ # TrieveRubyClient::ApiKeyDTO
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **created_at** | **Time** | | |
8
+ | **id** | **String** | | |
9
+ | **name** | **String** | | |
10
+ | **role** | **Integer** | | |
11
+ | **updated_at** | **Time** | | |
12
+ | **user_id** | **String** | | |
13
+
14
+ ## Example
15
+
16
+ ```ruby
17
+ require 'trieve_ruby_client'
18
+
19
+ instance = TrieveRubyClient::ApiKeyDTO.new(
20
+ created_at: null,
21
+ id: null,
22
+ name: null,
23
+ role: null,
24
+ updated_at: null,
25
+ user_id: null
26
+ )
27
+ ```
28
+
data/docs/AuthApi.md ADDED
@@ -0,0 +1,274 @@
1
+ # TrieveRubyClient::AuthApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**callback**](AuthApi.md#callback) | **GET** /api/auth/callback | openid_callback |
8
+ | [**get_me**](AuthApi.md#get_me) | **GET** /api/auth/me | get_me |
9
+ | [**login**](AuthApi.md#login) | **GET** /api/auth | login |
10
+ | [**logout**](AuthApi.md#logout) | **DELETE** /api/auth | logout |
11
+
12
+
13
+ ## callback
14
+
15
+ > <SlimUser> callback
16
+
17
+ openid_callback
18
+
19
+ openid_callback This is the callback route for the OAuth provider, it should not be called directly. Redirects to browser with set-cookie header.
20
+
21
+ ### Examples
22
+
23
+ ```ruby
24
+ require 'time'
25
+ require 'trieve_ruby_client'
26
+
27
+ api_instance = TrieveRubyClient::AuthApi.new
28
+
29
+ begin
30
+ # openid_callback
31
+ result = api_instance.callback
32
+ p result
33
+ rescue TrieveRubyClient::ApiError => e
34
+ puts "Error when calling AuthApi->callback: #{e}"
35
+ end
36
+ ```
37
+
38
+ #### Using the callback_with_http_info variant
39
+
40
+ This returns an Array which contains the response data, status code and headers.
41
+
42
+ > <Array(<SlimUser>, Integer, Hash)> callback_with_http_info
43
+
44
+ ```ruby
45
+ begin
46
+ # openid_callback
47
+ data, status_code, headers = api_instance.callback_with_http_info
48
+ p status_code # => 2xx
49
+ p headers # => { ... }
50
+ p data # => <SlimUser>
51
+ rescue TrieveRubyClient::ApiError => e
52
+ puts "Error when calling AuthApi->callback_with_http_info: #{e}"
53
+ end
54
+ ```
55
+
56
+ ### Parameters
57
+
58
+ This endpoint does not need any parameter.
59
+
60
+ ### Return type
61
+
62
+ [**SlimUser**](SlimUser.md)
63
+
64
+ ### Authorization
65
+
66
+ No authorization required
67
+
68
+ ### HTTP request headers
69
+
70
+ - **Content-Type**: Not defined
71
+ - **Accept**: application/json
72
+
73
+
74
+ ## get_me
75
+
76
+ > <SlimUser> get_me
77
+
78
+ get_me
79
+
80
+ get_me Get the user corresponding to your current auth credentials.
81
+
82
+ ### Examples
83
+
84
+ ```ruby
85
+ require 'time'
86
+ require 'trieve_ruby_client'
87
+ # setup authorization
88
+ TrieveRubyClient.configure do |config|
89
+ # Configure API key authorization: Cookie
90
+ config.api_key['Cookie'] = 'YOUR API KEY'
91
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
92
+ # config.api_key_prefix['Cookie'] = 'Bearer'
93
+
94
+ # Configure API key authorization: ApiKey
95
+ config.api_key['ApiKey'] = 'YOUR API KEY'
96
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
97
+ # config.api_key_prefix['ApiKey'] = 'Bearer'
98
+ end
99
+
100
+ api_instance = TrieveRubyClient::AuthApi.new
101
+
102
+ begin
103
+ # get_me
104
+ result = api_instance.get_me
105
+ p result
106
+ rescue TrieveRubyClient::ApiError => e
107
+ puts "Error when calling AuthApi->get_me: #{e}"
108
+ end
109
+ ```
110
+
111
+ #### Using the get_me_with_http_info variant
112
+
113
+ This returns an Array which contains the response data, status code and headers.
114
+
115
+ > <Array(<SlimUser>, Integer, Hash)> get_me_with_http_info
116
+
117
+ ```ruby
118
+ begin
119
+ # get_me
120
+ data, status_code, headers = api_instance.get_me_with_http_info
121
+ p status_code # => 2xx
122
+ p headers # => { ... }
123
+ p data # => <SlimUser>
124
+ rescue TrieveRubyClient::ApiError => e
125
+ puts "Error when calling AuthApi->get_me_with_http_info: #{e}"
126
+ end
127
+ ```
128
+
129
+ ### Parameters
130
+
131
+ This endpoint does not need any parameter.
132
+
133
+ ### Return type
134
+
135
+ [**SlimUser**](SlimUser.md)
136
+
137
+ ### Authorization
138
+
139
+ [Cookie](../README.md#Cookie), [ApiKey](../README.md#ApiKey)
140
+
141
+ ### HTTP request headers
142
+
143
+ - **Content-Type**: Not defined
144
+ - **Accept**: application/json
145
+
146
+
147
+ ## login
148
+
149
+ > login(opts)
150
+
151
+ login
152
+
153
+ login This will redirect you to the OAuth provider for authentication with email/pass, SSO, Google, Github, etc.
154
+
155
+ ### Examples
156
+
157
+ ```ruby
158
+ require 'time'
159
+ require 'trieve_ruby_client'
160
+
161
+ api_instance = TrieveRubyClient::AuthApi.new
162
+ opts = {
163
+ inv_code: '38400000-8cf0-11bd-b23e-10b96e4ef00d', # String | Code sent via email as a result of successful call to send_invitation
164
+ organization_id: '38400000-8cf0-11bd-b23e-10b96e4ef00d', # String | ID of organization to authenticate into
165
+ redirect_uri: 'redirect_uri_example' # String | URL to redirect to after successful login
166
+ }
167
+
168
+ begin
169
+ # login
170
+ api_instance.login(opts)
171
+ rescue TrieveRubyClient::ApiError => e
172
+ puts "Error when calling AuthApi->login: #{e}"
173
+ end
174
+ ```
175
+
176
+ #### Using the login_with_http_info variant
177
+
178
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
179
+
180
+ > <Array(nil, Integer, Hash)> login_with_http_info(opts)
181
+
182
+ ```ruby
183
+ begin
184
+ # login
185
+ data, status_code, headers = api_instance.login_with_http_info(opts)
186
+ p status_code # => 2xx
187
+ p headers # => { ... }
188
+ p data # => nil
189
+ rescue TrieveRubyClient::ApiError => e
190
+ puts "Error when calling AuthApi->login_with_http_info: #{e}"
191
+ end
192
+ ```
193
+
194
+ ### Parameters
195
+
196
+ | Name | Type | Description | Notes |
197
+ | ---- | ---- | ----------- | ----- |
198
+ | **inv_code** | **String** | Code sent via email as a result of successful call to send_invitation | [optional] |
199
+ | **organization_id** | **String** | ID of organization to authenticate into | [optional] |
200
+ | **redirect_uri** | **String** | URL to redirect to after successful login | [optional] |
201
+
202
+ ### Return type
203
+
204
+ nil (empty response body)
205
+
206
+ ### Authorization
207
+
208
+ No authorization required
209
+
210
+ ### HTTP request headers
211
+
212
+ - **Content-Type**: application/x-www-form-urlencoded
213
+ - **Accept**: application/json
214
+
215
+
216
+ ## logout
217
+
218
+ > logout
219
+
220
+ logout
221
+
222
+ logout Invalidate your current auth credential stored typically stored in a cookie. This does not invalidate your API key.
223
+
224
+ ### Examples
225
+
226
+ ```ruby
227
+ require 'time'
228
+ require 'trieve_ruby_client'
229
+
230
+ api_instance = TrieveRubyClient::AuthApi.new
231
+
232
+ begin
233
+ # logout
234
+ api_instance.logout
235
+ rescue TrieveRubyClient::ApiError => e
236
+ puts "Error when calling AuthApi->logout: #{e}"
237
+ end
238
+ ```
239
+
240
+ #### Using the logout_with_http_info variant
241
+
242
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
243
+
244
+ > <Array(nil, Integer, Hash)> logout_with_http_info
245
+
246
+ ```ruby
247
+ begin
248
+ # logout
249
+ data, status_code, headers = api_instance.logout_with_http_info
250
+ p status_code # => 2xx
251
+ p headers # => { ... }
252
+ p data # => nil
253
+ rescue TrieveRubyClient::ApiError => e
254
+ puts "Error when calling AuthApi->logout_with_http_info: #{e}"
255
+ end
256
+ ```
257
+
258
+ ### Parameters
259
+
260
+ This endpoint does not need any parameter.
261
+
262
+ ### Return type
263
+
264
+ nil (empty response body)
265
+
266
+ ### Authorization
267
+
268
+ No authorization required
269
+
270
+ ### HTTP request headers
271
+
272
+ - **Content-Type**: Not defined
273
+ - **Accept**: Not defined
274
+
@@ -0,0 +1,22 @@
1
+ # TrieveRubyClient::BookmarkData
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **chunks** | [**Array&lt;ChunkMetadataWithFileData&gt;**](ChunkMetadataWithFileData.md) | | |
8
+ | **group** | [**ChunkGroup**](ChunkGroup.md) | | |
9
+ | **total_pages** | **Integer** | | |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'trieve_ruby_client'
15
+
16
+ instance = TrieveRubyClient::BookmarkData.new(
17
+ chunks: null,
18
+ group: null,
19
+ total_pages: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,20 @@
1
+ # TrieveRubyClient::BookmarkGroupResult
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **chunk_uuid** | **String** | | |
8
+ | **slim_groups** | [**Array&lt;SlimGroup&gt;**](SlimGroup.md) | | |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'trieve_ruby_client'
14
+
15
+ instance = TrieveRubyClient::BookmarkGroupResult.new(
16
+ chunk_uuid: null,
17
+ slim_groups: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,20 @@
1
+ # TrieveRubyClient::ChatMessageProxy
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **content** | **String** | | |
8
+ | **role** | **String** | | |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'trieve_ruby_client'
14
+
15
+ instance = TrieveRubyClient::ChatMessageProxy.new(
16
+ content: null,
17
+ role: null
18
+ )
19
+ ```
20
+