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,479 @@
1
+ # TrieveRubyClient::OrganizationApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**create_organization**](OrganizationApi.md#create_organization) | **POST** /api/organization | create_organization |
8
+ | [**delete_organization_by_id**](OrganizationApi.md#delete_organization_by_id) | **DELETE** /api/organization/{organization_id} | delete_organization |
9
+ | [**get_organization_by_id**](OrganizationApi.md#get_organization_by_id) | **GET** /api/organization/{organization_id} | get_organization |
10
+ | [**get_organization_usage**](OrganizationApi.md#get_organization_usage) | **GET** /api/organization/usage/{organization_id} | get_organization_usage |
11
+ | [**get_organization_users**](OrganizationApi.md#get_organization_users) | **GET** /api/organization/users/{organization_id} | get_organization_users |
12
+ | [**update_organization**](OrganizationApi.md#update_organization) | **PUT** /api/organization | update_organization |
13
+
14
+
15
+ ## create_organization
16
+
17
+ > <Organization> create_organization(create_organization_data)
18
+
19
+ create_organization
20
+
21
+ create_organization Create a new organization. The auth'ed user who creates the organization will be the default owner of the organization.
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::OrganizationApi.new
42
+ create_organization_data = TrieveRubyClient::CreateOrganizationData.new({name: 'name_example'}) # CreateOrganizationData | The organization data that you want to create
43
+
44
+ begin
45
+ # create_organization
46
+ result = api_instance.create_organization(create_organization_data)
47
+ p result
48
+ rescue TrieveRubyClient::ApiError => e
49
+ puts "Error when calling OrganizationApi->create_organization: #{e}"
50
+ end
51
+ ```
52
+
53
+ #### Using the create_organization_with_http_info variant
54
+
55
+ This returns an Array which contains the response data, status code and headers.
56
+
57
+ > <Array(<Organization>, Integer, Hash)> create_organization_with_http_info(create_organization_data)
58
+
59
+ ```ruby
60
+ begin
61
+ # create_organization
62
+ data, status_code, headers = api_instance.create_organization_with_http_info(create_organization_data)
63
+ p status_code # => 2xx
64
+ p headers # => { ... }
65
+ p data # => <Organization>
66
+ rescue TrieveRubyClient::ApiError => e
67
+ puts "Error when calling OrganizationApi->create_organization_with_http_info: #{e}"
68
+ end
69
+ ```
70
+
71
+ ### Parameters
72
+
73
+ | Name | Type | Description | Notes |
74
+ | ---- | ---- | ----------- | ----- |
75
+ | **create_organization_data** | [**CreateOrganizationData**](CreateOrganizationData.md) | The organization data that you want to create | |
76
+
77
+ ### Return type
78
+
79
+ [**Organization**](Organization.md)
80
+
81
+ ### Authorization
82
+
83
+ [Cookie](../README.md#Cookie), [ApiKey](../README.md#ApiKey)
84
+
85
+ ### HTTP request headers
86
+
87
+ - **Content-Type**: application/json
88
+ - **Accept**: application/json
89
+
90
+
91
+ ## delete_organization_by_id
92
+
93
+ > <Organization> delete_organization_by_id(tr_organization, organization_id)
94
+
95
+ delete_organization
96
+
97
+ delete_organization Delete an organization by its id. The auth'ed user must be an owner of the organization to delete it.
98
+
99
+ ### Examples
100
+
101
+ ```ruby
102
+ require 'time'
103
+ require 'trieve_ruby_client'
104
+ # setup authorization
105
+ TrieveRubyClient.configure do |config|
106
+ # Configure API key authorization: Cookie
107
+ config.api_key['Cookie'] = 'YOUR API KEY'
108
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
109
+ # config.api_key_prefix['Cookie'] = 'Bearer'
110
+
111
+ # Configure API key authorization: ApiKey
112
+ config.api_key['ApiKey'] = 'YOUR API KEY'
113
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
114
+ # config.api_key_prefix['ApiKey'] = 'Bearer'
115
+ end
116
+
117
+ api_instance = TrieveRubyClient::OrganizationApi.new
118
+ tr_organization = 'tr_organization_example' # String | The organization id to use for the request
119
+ organization_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | The id of the organization you want to fetch.
120
+
121
+ begin
122
+ # delete_organization
123
+ result = api_instance.delete_organization_by_id(tr_organization, organization_id)
124
+ p result
125
+ rescue TrieveRubyClient::ApiError => e
126
+ puts "Error when calling OrganizationApi->delete_organization_by_id: #{e}"
127
+ end
128
+ ```
129
+
130
+ #### Using the delete_organization_by_id_with_http_info variant
131
+
132
+ This returns an Array which contains the response data, status code and headers.
133
+
134
+ > <Array(<Organization>, Integer, Hash)> delete_organization_by_id_with_http_info(tr_organization, organization_id)
135
+
136
+ ```ruby
137
+ begin
138
+ # delete_organization
139
+ data, status_code, headers = api_instance.delete_organization_by_id_with_http_info(tr_organization, organization_id)
140
+ p status_code # => 2xx
141
+ p headers # => { ... }
142
+ p data # => <Organization>
143
+ rescue TrieveRubyClient::ApiError => e
144
+ puts "Error when calling OrganizationApi->delete_organization_by_id_with_http_info: #{e}"
145
+ end
146
+ ```
147
+
148
+ ### Parameters
149
+
150
+ | Name | Type | Description | Notes |
151
+ | ---- | ---- | ----------- | ----- |
152
+ | **tr_organization** | **String** | The organization id to use for the request | |
153
+ | **organization_id** | **String** | The id of the organization you want to fetch. | |
154
+
155
+ ### Return type
156
+
157
+ [**Organization**](Organization.md)
158
+
159
+ ### Authorization
160
+
161
+ [Cookie](../README.md#Cookie), [ApiKey](../README.md#ApiKey)
162
+
163
+ ### HTTP request headers
164
+
165
+ - **Content-Type**: Not defined
166
+ - **Accept**: application/json
167
+
168
+
169
+ ## get_organization_by_id
170
+
171
+ > <Organization> get_organization_by_id(tr_organization, organization_id)
172
+
173
+ get_organization
174
+
175
+ 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.
176
+
177
+ ### Examples
178
+
179
+ ```ruby
180
+ require 'time'
181
+ require 'trieve_ruby_client'
182
+ # setup authorization
183
+ TrieveRubyClient.configure do |config|
184
+ # Configure API key authorization: Cookie
185
+ config.api_key['Cookie'] = 'YOUR API KEY'
186
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
187
+ # config.api_key_prefix['Cookie'] = 'Bearer'
188
+
189
+ # Configure API key authorization: ApiKey
190
+ config.api_key['ApiKey'] = 'YOUR API KEY'
191
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
192
+ # config.api_key_prefix['ApiKey'] = 'Bearer'
193
+ end
194
+
195
+ api_instance = TrieveRubyClient::OrganizationApi.new
196
+ tr_organization = 'tr_organization_example' # String | The organization id to use for the request
197
+ organization_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | The id of the organization you want to fetch.
198
+
199
+ begin
200
+ # get_organization
201
+ result = api_instance.get_organization_by_id(tr_organization, organization_id)
202
+ p result
203
+ rescue TrieveRubyClient::ApiError => e
204
+ puts "Error when calling OrganizationApi->get_organization_by_id: #{e}"
205
+ end
206
+ ```
207
+
208
+ #### Using the get_organization_by_id_with_http_info variant
209
+
210
+ This returns an Array which contains the response data, status code and headers.
211
+
212
+ > <Array(<Organization>, Integer, Hash)> get_organization_by_id_with_http_info(tr_organization, organization_id)
213
+
214
+ ```ruby
215
+ begin
216
+ # get_organization
217
+ data, status_code, headers = api_instance.get_organization_by_id_with_http_info(tr_organization, organization_id)
218
+ p status_code # => 2xx
219
+ p headers # => { ... }
220
+ p data # => <Organization>
221
+ rescue TrieveRubyClient::ApiError => e
222
+ puts "Error when calling OrganizationApi->get_organization_by_id_with_http_info: #{e}"
223
+ end
224
+ ```
225
+
226
+ ### Parameters
227
+
228
+ | Name | Type | Description | Notes |
229
+ | ---- | ---- | ----------- | ----- |
230
+ | **tr_organization** | **String** | The organization id to use for the request | |
231
+ | **organization_id** | **String** | The id of the organization you want to fetch. | |
232
+
233
+ ### Return type
234
+
235
+ [**Organization**](Organization.md)
236
+
237
+ ### Authorization
238
+
239
+ [Cookie](../README.md#Cookie), [ApiKey](../README.md#ApiKey)
240
+
241
+ ### HTTP request headers
242
+
243
+ - **Content-Type**: Not defined
244
+ - **Accept**: application/json
245
+
246
+
247
+ ## get_organization_usage
248
+
249
+ > <OrganizationUsageCount> get_organization_usage(tr_organization, organization_id)
250
+
251
+ get_organization_usage
252
+
253
+ 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.
254
+
255
+ ### Examples
256
+
257
+ ```ruby
258
+ require 'time'
259
+ require 'trieve_ruby_client'
260
+ # setup authorization
261
+ TrieveRubyClient.configure do |config|
262
+ # Configure API key authorization: Cookie
263
+ config.api_key['Cookie'] = 'YOUR API KEY'
264
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
265
+ # config.api_key_prefix['Cookie'] = 'Bearer'
266
+
267
+ # Configure API key authorization: ApiKey
268
+ config.api_key['ApiKey'] = 'YOUR API KEY'
269
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
270
+ # config.api_key_prefix['ApiKey'] = 'Bearer'
271
+ end
272
+
273
+ api_instance = TrieveRubyClient::OrganizationApi.new
274
+ tr_organization = 'tr_organization_example' # String | The organization id to use for the request
275
+ organization_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | The id of the organization you want to fetch the usage of.
276
+
277
+ begin
278
+ # get_organization_usage
279
+ result = api_instance.get_organization_usage(tr_organization, organization_id)
280
+ p result
281
+ rescue TrieveRubyClient::ApiError => e
282
+ puts "Error when calling OrganizationApi->get_organization_usage: #{e}"
283
+ end
284
+ ```
285
+
286
+ #### Using the get_organization_usage_with_http_info variant
287
+
288
+ This returns an Array which contains the response data, status code and headers.
289
+
290
+ > <Array(<OrganizationUsageCount>, Integer, Hash)> get_organization_usage_with_http_info(tr_organization, organization_id)
291
+
292
+ ```ruby
293
+ begin
294
+ # get_organization_usage
295
+ data, status_code, headers = api_instance.get_organization_usage_with_http_info(tr_organization, organization_id)
296
+ p status_code # => 2xx
297
+ p headers # => { ... }
298
+ p data # => <OrganizationUsageCount>
299
+ rescue TrieveRubyClient::ApiError => e
300
+ puts "Error when calling OrganizationApi->get_organization_usage_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
+ | **organization_id** | **String** | The id of the organization you want to fetch the usage of. | |
310
+
311
+ ### Return type
312
+
313
+ [**OrganizationUsageCount**](OrganizationUsageCount.md)
314
+
315
+ ### Authorization
316
+
317
+ [Cookie](../README.md#Cookie), [ApiKey](../README.md#ApiKey)
318
+
319
+ ### HTTP request headers
320
+
321
+ - **Content-Type**: Not defined
322
+ - **Accept**: application/json
323
+
324
+
325
+ ## get_organization_users
326
+
327
+ > <Array<SlimUser>> get_organization_users(tr_organization, organization_id)
328
+
329
+ get_organization_users
330
+
331
+ 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.
332
+
333
+ ### Examples
334
+
335
+ ```ruby
336
+ require 'time'
337
+ require 'trieve_ruby_client'
338
+ # setup authorization
339
+ TrieveRubyClient.configure do |config|
340
+ # Configure API key authorization: Cookie
341
+ config.api_key['Cookie'] = 'YOUR API KEY'
342
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
343
+ # config.api_key_prefix['Cookie'] = 'Bearer'
344
+
345
+ # Configure API key authorization: ApiKey
346
+ config.api_key['ApiKey'] = 'YOUR API KEY'
347
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
348
+ # config.api_key_prefix['ApiKey'] = 'Bearer'
349
+ end
350
+
351
+ api_instance = TrieveRubyClient::OrganizationApi.new
352
+ tr_organization = 'tr_organization_example' # String | The organization id to use for the request
353
+ organization_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | The id of the organization you want to fetch the users of.
354
+
355
+ begin
356
+ # get_organization_users
357
+ result = api_instance.get_organization_users(tr_organization, organization_id)
358
+ p result
359
+ rescue TrieveRubyClient::ApiError => e
360
+ puts "Error when calling OrganizationApi->get_organization_users: #{e}"
361
+ end
362
+ ```
363
+
364
+ #### Using the get_organization_users_with_http_info variant
365
+
366
+ This returns an Array which contains the response data, status code and headers.
367
+
368
+ > <Array(<Array<SlimUser>>, Integer, Hash)> get_organization_users_with_http_info(tr_organization, organization_id)
369
+
370
+ ```ruby
371
+ begin
372
+ # get_organization_users
373
+ data, status_code, headers = api_instance.get_organization_users_with_http_info(tr_organization, organization_id)
374
+ p status_code # => 2xx
375
+ p headers # => { ... }
376
+ p data # => <Array<SlimUser>>
377
+ rescue TrieveRubyClient::ApiError => e
378
+ puts "Error when calling OrganizationApi->get_organization_users_with_http_info: #{e}"
379
+ end
380
+ ```
381
+
382
+ ### Parameters
383
+
384
+ | Name | Type | Description | Notes |
385
+ | ---- | ---- | ----------- | ----- |
386
+ | **tr_organization** | **String** | The organization id to use for the request | |
387
+ | **organization_id** | **String** | The id of the organization you want to fetch the users of. | |
388
+
389
+ ### Return type
390
+
391
+ [**Array&lt;SlimUser&gt;**](SlimUser.md)
392
+
393
+ ### Authorization
394
+
395
+ [Cookie](../README.md#Cookie), [ApiKey](../README.md#ApiKey)
396
+
397
+ ### HTTP request headers
398
+
399
+ - **Content-Type**: Not defined
400
+ - **Accept**: application/json
401
+
402
+
403
+ ## update_organization
404
+
405
+ > <Organization> update_organization(tr_organization, update_organization_data)
406
+
407
+ update_organization
408
+
409
+ update_organization Update an organization. Only the owner of the organization can update it.
410
+
411
+ ### Examples
412
+
413
+ ```ruby
414
+ require 'time'
415
+ require 'trieve_ruby_client'
416
+ # setup authorization
417
+ TrieveRubyClient.configure do |config|
418
+ # Configure API key authorization: Cookie
419
+ config.api_key['Cookie'] = 'YOUR API KEY'
420
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
421
+ # config.api_key_prefix['Cookie'] = 'Bearer'
422
+
423
+ # Configure API key authorization: ApiKey
424
+ config.api_key['ApiKey'] = 'YOUR API KEY'
425
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
426
+ # config.api_key_prefix['ApiKey'] = 'Bearer'
427
+ end
428
+
429
+ api_instance = TrieveRubyClient::OrganizationApi.new
430
+ tr_organization = 'tr_organization_example' # String | The organization id to use for the request
431
+ update_organization_data = TrieveRubyClient::UpdateOrganizationData.new({organization_id: 'organization_id_example'}) # UpdateOrganizationData | The organization data that you want to update
432
+
433
+ begin
434
+ # update_organization
435
+ result = api_instance.update_organization(tr_organization, update_organization_data)
436
+ p result
437
+ rescue TrieveRubyClient::ApiError => e
438
+ puts "Error when calling OrganizationApi->update_organization: #{e}"
439
+ end
440
+ ```
441
+
442
+ #### Using the update_organization_with_http_info variant
443
+
444
+ This returns an Array which contains the response data, status code and headers.
445
+
446
+ > <Array(<Organization>, Integer, Hash)> update_organization_with_http_info(tr_organization, update_organization_data)
447
+
448
+ ```ruby
449
+ begin
450
+ # update_organization
451
+ data, status_code, headers = api_instance.update_organization_with_http_info(tr_organization, update_organization_data)
452
+ p status_code # => 2xx
453
+ p headers # => { ... }
454
+ p data # => <Organization>
455
+ rescue TrieveRubyClient::ApiError => e
456
+ puts "Error when calling OrganizationApi->update_organization_with_http_info: #{e}"
457
+ end
458
+ ```
459
+
460
+ ### Parameters
461
+
462
+ | Name | Type | Description | Notes |
463
+ | ---- | ---- | ----------- | ----- |
464
+ | **tr_organization** | **String** | The organization id to use for the request | |
465
+ | **update_organization_data** | [**UpdateOrganizationData**](UpdateOrganizationData.md) | The organization data that you want to update | |
466
+
467
+ ### Return type
468
+
469
+ [**Organization**](Organization.md)
470
+
471
+ ### Authorization
472
+
473
+ [Cookie](../README.md#Cookie), [ApiKey](../README.md#ApiKey)
474
+
475
+ ### HTTP request headers
476
+
477
+ - **Content-Type**: application/json
478
+ - **Accept**: application/json
479
+
@@ -0,0 +1,28 @@
1
+ # TrieveRubyClient::OrganizationUsageCount
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **dataset_count** | **Integer** | | |
8
+ | **file_storage** | **Integer** | | |
9
+ | **id** | **String** | | |
10
+ | **message_count** | **Integer** | | |
11
+ | **org_id** | **String** | | |
12
+ | **user_count** | **Integer** | | |
13
+
14
+ ## Example
15
+
16
+ ```ruby
17
+ require 'trieve_ruby_client'
18
+
19
+ instance = TrieveRubyClient::OrganizationUsageCount.new(
20
+ dataset_count: null,
21
+ file_storage: null,
22
+ id: null,
23
+ message_count: null,
24
+ org_id: null,
25
+ user_count: null
26
+ )
27
+ ```
28
+
data/docs/Range.md ADDED
@@ -0,0 +1,24 @@
1
+ # TrieveRubyClient::Range
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **gt** | **Float** | | [optional] |
8
+ | **gte** | **Float** | | [optional] |
9
+ | **lt** | **Float** | | [optional] |
10
+ | **lte** | **Float** | | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'trieve_ruby_client'
16
+
17
+ instance = TrieveRubyClient::Range.new(
18
+ gt: null,
19
+ gte: null,
20
+ lt: null,
21
+ lte: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,30 @@
1
+ # TrieveRubyClient::ReccomendGroupChunksRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **filters** | [**ChunkFilter**](ChunkFilter.md) | | [optional] |
8
+ | **group_size** | **Integer** | The number of chunks to fetch for each group. This is the number of chunks which will be returned in the response for each group. The default is 10. | [optional] |
9
+ | **limit** | **Integer** | The number of groups to return. This is the number of groups which will be returned in the response. The default is 10. | [optional] |
10
+ | **negative_group_ids** | **Array&lt;String&gt;** | The ids of the groups to be used as negative examples for the recommendation. The groups in this array will be used to filter out similar groups. | [optional] |
11
+ | **negative_group_tracking_ids** | **Array&lt;String&gt;** | The ids of the groups to be used as negative examples for the recommendation. The groups in this array will be used to filter out similar groups. | [optional] |
12
+ | **positive_group_ids** | **Array&lt;String&gt;** | The ids of the groups to be used as positive examples for the recommendation. The groups in this array will be used to find similar groups. | [optional] |
13
+ | **positive_group_tracking_ids** | **Array&lt;String&gt;** | The ids of the groups to be used as positive examples for the recommendation. The groups in this array will be used to find similar groups. | [optional] |
14
+
15
+ ## Example
16
+
17
+ ```ruby
18
+ require 'trieve_ruby_client'
19
+
20
+ instance = TrieveRubyClient::ReccomendGroupChunksRequest.new(
21
+ filters: null,
22
+ group_size: null,
23
+ limit: null,
24
+ negative_group_ids: null,
25
+ negative_group_tracking_ids: null,
26
+ positive_group_ids: null,
27
+ positive_group_tracking_ids: null
28
+ )
29
+ ```
30
+
@@ -0,0 +1,28 @@
1
+ # TrieveRubyClient::RecommendChunksRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **filters** | [**ChunkFilter**](ChunkFilter.md) | | [optional] |
8
+ | **limit** | **Integer** | The number of chunks to return. This is the number of chunks which will be returned in the response. The default is 10. | [optional] |
9
+ | **negative_chunk_ids** | **Array&lt;String&gt;** | The ids of the chunks to be used as negative examples for the recommendation. The chunks in this array will be used to filter out similar chunks. | [optional] |
10
+ | **negative_tracking_ids** | **Array&lt;String&gt;** | The tracking_ids of the chunks to be used as negative examples for the recommendation. The chunks in this array will be used to filter out similar chunks. | [optional] |
11
+ | **positive_chunk_ids** | **Array&lt;String&gt;** | The ids of the chunks to be used as positive examples for the recommendation. The chunks in this array will be used to find similar chunks. | [optional] |
12
+ | **positive_tracking_ids** | **Array&lt;String&gt;** | The tracking_ids of the chunks to be used as positive examples for the recommendation. The chunks in this array will be used to find similar chunks. | [optional] |
13
+
14
+ ## Example
15
+
16
+ ```ruby
17
+ require 'trieve_ruby_client'
18
+
19
+ instance = TrieveRubyClient::RecommendChunksRequest.new(
20
+ filters: null,
21
+ limit: null,
22
+ negative_chunk_ids: null,
23
+ negative_tracking_ids: null,
24
+ positive_chunk_ids: null,
25
+ positive_tracking_ids: null
26
+ )
27
+ ```
28
+
@@ -0,0 +1,26 @@
1
+ # TrieveRubyClient::RegenerateMessageData
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
+ | **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] |
10
+ | **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] |
11
+ | **topic_id** | **String** | The id of the topic to regenerate the last message for. | |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'trieve_ruby_client'
17
+
18
+ instance = TrieveRubyClient::RegenerateMessageData.new(
19
+ highlight_citations: null,
20
+ highlight_delimiters: null,
21
+ model: null,
22
+ stream_response: null,
23
+ topic_id: null
24
+ )
25
+ ```
26
+
@@ -0,0 +1,20 @@
1
+ # TrieveRubyClient::ReturnQueuedChunk
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **chunk_metadata** | [**ChunkMetadata**](ChunkMetadata.md) | | |
8
+ | **pos_in_queue** | **Integer** | | |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'trieve_ruby_client'
14
+
15
+ instance = TrieveRubyClient::ReturnQueuedChunk.new(
16
+ chunk_metadata: null,
17
+ pos_in_queue: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,20 @@
1
+ # TrieveRubyClient::ScoreChunkDTO
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **metadata** | [**Array&lt;ChunkMetadataWithFileData&gt;**](ChunkMetadataWithFileData.md) | | |
8
+ | **score** | **Float** | | |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'trieve_ruby_client'
14
+
15
+ instance = TrieveRubyClient::ScoreChunkDTO.new(
16
+ metadata: null,
17
+ score: null
18
+ )
19
+ ```
20
+