trieve_ruby_client 0.4.0 → 0.5.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (255) hide show
  1. checksums.yaml +4 -4
  2. data/GENERATE_COMMAND.txt +1 -0
  3. data/README.md +29 -18
  4. data/docs/AddChunkToGroupData.md +1 -1
  5. data/docs/AuthApi.md +1 -1
  6. data/docs/ChunkApi.md +34 -38
  7. data/docs/ChunkGroupApi.md +51 -48
  8. data/docs/DatasetApi.md +9 -9
  9. data/docs/EventsApi.md +1 -1
  10. data/docs/FileApi.md +1 -1
  11. data/docs/GetEventsData.md +1 -1
  12. data/docs/GroupScoreChunkDTO.md +2 -0
  13. data/docs/GroupSlimChunksDTO.md +20 -0
  14. data/docs/HealthApi.md +1 -1
  15. data/docs/InvitationApi.md +1 -1
  16. data/docs/MessageApi.md +1 -1
  17. data/docs/OrganizationApi.md +1 -1
  18. data/docs/Range.md +4 -4
  19. data/docs/RangeCondition.md +49 -0
  20. data/docs/ReccomendGroupChunksRequest.md +3 -1
  21. data/docs/RecommendChunksRequest.md +3 -1
  22. data/docs/RecommendChunksResponseTypes.md +49 -0
  23. data/docs/RecommendGroupChunkResponseTypes.md +49 -0
  24. data/docs/ScoreSlimChunks.md +20 -0
  25. data/docs/SearchChunkData.md +4 -0
  26. data/docs/SearchChunkResponseTypes.md +49 -0
  27. data/docs/SearchGroupSlimChunksResult.md +22 -0
  28. data/docs/SearchOverGroupsData.md +5 -1
  29. data/docs/SearchOverGroupsResponseTypes.md +49 -0
  30. data/docs/SearchOverGroupsSlimChunksResponseBody.md +20 -0
  31. data/docs/SearchSlimChunkQueryResponseBody.md +20 -0
  32. data/docs/SearchWithinGroupData.md +4 -0
  33. data/docs/SearchWithinGroupResponseTypes.md +49 -0
  34. data/docs/SlimChunkMetadata.md +36 -0
  35. data/docs/SlimUser.md +1 -7
  36. data/docs/StripeApi.md +1 -1
  37. data/docs/TopicApi.md +9 -9
  38. data/docs/UpdateChunkData.md +2 -0
  39. data/docs/UpdateUserData.md +1 -7
  40. data/docs/UserApi.md +9 -9
  41. data/lib/trieve_ruby_client/api/auth_api.rb +1 -1
  42. data/lib/trieve_ruby_client/api/chunk_api.rb +34 -38
  43. data/lib/trieve_ruby_client/api/chunk_group_api.rb +56 -59
  44. data/lib/trieve_ruby_client/api/dataset_api.rb +11 -16
  45. data/lib/trieve_ruby_client/api/events_api.rb +1 -1
  46. data/lib/trieve_ruby_client/api/file_api.rb +1 -1
  47. data/lib/trieve_ruby_client/api/health_api.rb +1 -1
  48. data/lib/trieve_ruby_client/api/invitation_api.rb +1 -1
  49. data/lib/trieve_ruby_client/api/message_api.rb +1 -1
  50. data/lib/trieve_ruby_client/api/organization_api.rb +1 -1
  51. data/lib/trieve_ruby_client/api/stripe_api.rb +1 -1
  52. data/lib/trieve_ruby_client/api/topic_api.rb +11 -16
  53. data/lib/trieve_ruby_client/api/user_api.rb +11 -16
  54. data/lib/trieve_ruby_client/api_client.rb +1 -1
  55. data/lib/trieve_ruby_client/api_error.rb +1 -1
  56. data/lib/trieve_ruby_client/configuration.rb +7 -7
  57. data/lib/trieve_ruby_client/models/add_chunk_to_group_data.rb +2 -2
  58. data/lib/trieve_ruby_client/models/api_key_dto.rb +1 -1
  59. data/lib/trieve_ruby_client/models/auth_query.rb +1 -1
  60. data/lib/trieve_ruby_client/models/batch_queued_chunk_response.rb +1 -1
  61. data/lib/trieve_ruby_client/models/bookmark_data.rb +1 -1
  62. data/lib/trieve_ruby_client/models/bookmark_group_result.rb +1 -1
  63. data/lib/trieve_ruby_client/models/chat_message_proxy.rb +1 -1
  64. data/lib/trieve_ruby_client/models/chunk_data.rb +1 -1
  65. data/lib/trieve_ruby_client/models/chunk_filter.rb +1 -1
  66. data/lib/trieve_ruby_client/models/chunk_group.rb +1 -1
  67. data/lib/trieve_ruby_client/models/chunk_group_and_file.rb +1 -1
  68. data/lib/trieve_ruby_client/models/chunk_metadata.rb +1 -1
  69. data/lib/trieve_ruby_client/models/chunk_metadata_with_file_data.rb +1 -1
  70. data/lib/trieve_ruby_client/models/client_dataset_configuration.rb +1 -1
  71. data/lib/trieve_ruby_client/models/create_chunk_data.rb +1 -1
  72. data/lib/trieve_ruby_client/models/create_chunk_group_data.rb +1 -1
  73. data/lib/trieve_ruby_client/models/create_dataset_request.rb +1 -1
  74. data/lib/trieve_ruby_client/models/create_message_data.rb +1 -1
  75. data/lib/trieve_ruby_client/models/create_organization_data.rb +1 -1
  76. data/lib/trieve_ruby_client/models/create_topic_data.rb +1 -1
  77. data/lib/trieve_ruby_client/models/dataset.rb +1 -1
  78. data/lib/trieve_ruby_client/models/dataset_and_usage.rb +1 -1
  79. data/lib/trieve_ruby_client/models/dataset_dto.rb +1 -1
  80. data/lib/trieve_ruby_client/models/dataset_usage_count.rb +1 -1
  81. data/lib/trieve_ruby_client/models/delete_dataset_request.rb +1 -1
  82. data/lib/trieve_ruby_client/models/delete_topic_data.rb +1 -1
  83. data/lib/trieve_ruby_client/models/delete_user_api_key_request.rb +1 -1
  84. data/lib/trieve_ruby_client/models/edit_message_data.rb +1 -1
  85. data/lib/trieve_ruby_client/models/error_response_body.rb +1 -1
  86. data/lib/trieve_ruby_client/models/event.rb +1 -1
  87. data/lib/trieve_ruby_client/models/event_return.rb +1 -1
  88. data/lib/trieve_ruby_client/models/field_condition.rb +1 -1
  89. data/lib/trieve_ruby_client/models/file.rb +1 -1
  90. data/lib/trieve_ruby_client/models/file_dto.rb +1 -1
  91. data/lib/trieve_ruby_client/models/generate_chunks_request.rb +1 -1
  92. data/lib/trieve_ruby_client/models/get_events_data.rb +2 -2
  93. data/lib/trieve_ruby_client/models/get_groups_for_chunks_data.rb +1 -1
  94. data/lib/trieve_ruby_client/models/group_data.rb +1 -1
  95. data/lib/trieve_ruby_client/models/group_score_chunk_dto.rb +12 -2
  96. data/lib/trieve_ruby_client/models/group_slim_chunks_dto.rb +239 -0
  97. data/lib/trieve_ruby_client/models/invitation_data.rb +1 -1
  98. data/lib/trieve_ruby_client/models/match_condition.rb +1 -1
  99. data/lib/trieve_ruby_client/models/message.rb +1 -1
  100. data/lib/trieve_ruby_client/models/organization.rb +1 -1
  101. data/lib/trieve_ruby_client/models/organization_usage_count.rb +1 -1
  102. data/lib/trieve_ruby_client/models/range.rb +5 -5
  103. data/lib/trieve_ruby_client/models/range_condition.rb +105 -0
  104. data/lib/trieve_ruby_client/models/reccomend_group_chunks_request.rb +17 -6
  105. data/lib/trieve_ruby_client/models/recommend_chunks_request.rb +17 -6
  106. data/lib/trieve_ruby_client/models/recommend_chunks_response_types.rb +105 -0
  107. data/lib/trieve_ruby_client/models/recommend_group_chunk_response_types.rb +105 -0
  108. data/lib/trieve_ruby_client/models/regenerate_message_data.rb +1 -1
  109. data/lib/trieve_ruby_client/models/return_queued_chunk.rb +1 -1
  110. data/lib/trieve_ruby_client/models/score_chunk_dto.rb +1 -1
  111. data/lib/trieve_ruby_client/models/score_slim_chunks.rb +239 -0
  112. data/lib/trieve_ruby_client/models/search_chunk_data.rb +24 -2
  113. data/lib/trieve_ruby_client/models/search_chunk_query_response_body.rb +1 -1
  114. data/lib/trieve_ruby_client/models/search_chunk_response_types.rb +105 -0
  115. data/lib/trieve_ruby_client/models/search_group_slim_chunks_result.rb +255 -0
  116. data/lib/trieve_ruby_client/models/search_groups_result.rb +1 -1
  117. data/lib/trieve_ruby_client/models/search_over_groups_data.rb +27 -5
  118. data/lib/trieve_ruby_client/models/search_over_groups_response_body.rb +1 -1
  119. data/lib/trieve_ruby_client/models/search_over_groups_response_types.rb +105 -0
  120. data/lib/trieve_ruby_client/models/search_over_groups_slim_chunks_response_body.rb +239 -0
  121. data/lib/trieve_ruby_client/models/search_slim_chunk_query_response_body.rb +239 -0
  122. data/lib/trieve_ruby_client/models/search_within_group_data.rb +24 -2
  123. data/lib/trieve_ruby_client/models/search_within_group_response_types.rb +105 -0
  124. data/lib/trieve_ruby_client/models/set_user_api_key_request.rb +1 -1
  125. data/lib/trieve_ruby_client/models/set_user_api_key_response.rb +1 -1
  126. data/lib/trieve_ruby_client/models/single_queued_chunk_response.rb +1 -1
  127. data/lib/trieve_ruby_client/models/{stripe_subscription.rb → slim_chunk_metadata.rb} +75 -57
  128. data/lib/trieve_ruby_client/models/slim_group.rb +1 -1
  129. data/lib/trieve_ruby_client/models/slim_user.rb +5 -41
  130. data/lib/trieve_ruby_client/models/stripe_plan.rb +1 -1
  131. data/lib/trieve_ruby_client/models/suggested_queries_request.rb +1 -1
  132. data/lib/trieve_ruby_client/models/suggested_queries_response.rb +1 -1
  133. data/lib/trieve_ruby_client/models/topic.rb +1 -1
  134. data/lib/trieve_ruby_client/models/update_chunk_by_tracking_id_data.rb +1 -1
  135. data/lib/trieve_ruby_client/models/update_chunk_data.rb +15 -2
  136. data/lib/trieve_ruby_client/models/update_chunk_group_data.rb +1 -1
  137. data/lib/trieve_ruby_client/models/update_dataset_request.rb +1 -1
  138. data/lib/trieve_ruby_client/models/update_group_by_tracking_id_data.rb +1 -1
  139. data/lib/trieve_ruby_client/models/update_organization_data.rb +1 -1
  140. data/lib/trieve_ruby_client/models/update_topic_data.rb +1 -1
  141. data/lib/trieve_ruby_client/models/update_user_data.rb +6 -39
  142. data/lib/trieve_ruby_client/models/upload_file_data.rb +1 -1
  143. data/lib/trieve_ruby_client/models/upload_file_result.rb +1 -1
  144. data/lib/trieve_ruby_client/models/user_organization.rb +1 -1
  145. data/lib/trieve_ruby_client/version.rb +2 -2
  146. data/lib/trieve_ruby_client.rb +13 -2
  147. data/openapi-generator.yaml +1 -1
  148. data/openapi.json +692 -335
  149. data/spec/api/auth_api_spec.rb +16 -18
  150. data/spec/api/chunk_api_spec.rb +30 -43
  151. data/spec/api/chunk_group_api_spec.rb +54 -33
  152. data/spec/api/dataset_api_spec.rb +19 -19
  153. data/spec/api/events_api_spec.rb +10 -10
  154. data/spec/api/file_api_spec.rb +15 -15
  155. data/spec/api/health_api_spec.rb +9 -7
  156. data/spec/api/invitation_api_spec.rb +9 -9
  157. data/spec/api/message_api_spec.rb +15 -15
  158. data/spec/api/organization_api_spec.rb +19 -19
  159. data/spec/api/stripe_api_spec.rb +15 -7
  160. data/spec/api/topic_api_spec.rb +15 -15
  161. data/spec/api/user_api_spec.rb +13 -13
  162. data/spec/models/add_chunk_to_group_data_spec.rb +8 -8
  163. data/spec/models/api_key_dto_spec.rb +8 -8
  164. data/spec/models/auth_query_spec.rb +1 -1
  165. data/spec/models/batch_queued_chunk_response_spec.rb +1 -1
  166. data/spec/models/bookmark_data_spec.rb +8 -8
  167. data/spec/models/bookmark_group_result_spec.rb +8 -8
  168. data/spec/models/chat_message_proxy_spec.rb +8 -8
  169. data/spec/models/chunk_data_spec.rb +1 -1
  170. data/spec/models/chunk_filter_spec.rb +8 -8
  171. data/spec/models/chunk_group_and_file_spec.rb +8 -8
  172. data/spec/models/chunk_group_spec.rb +8 -8
  173. data/spec/models/chunk_metadata_spec.rb +8 -8
  174. data/spec/models/chunk_metadata_with_file_data_spec.rb +8 -8
  175. data/spec/models/client_dataset_configuration_spec.rb +8 -8
  176. data/spec/models/create_chunk_data_spec.rb +11 -87
  177. data/spec/models/create_chunk_group_data_spec.rb +8 -8
  178. data/spec/models/create_dataset_request_spec.rb +8 -8
  179. data/spec/models/create_message_data_spec.rb +8 -8
  180. data/spec/models/create_organization_data_spec.rb +8 -8
  181. data/spec/models/create_topic_data_spec.rb +8 -8
  182. data/spec/models/dataset_and_usage_spec.rb +8 -8
  183. data/spec/models/dataset_dto_spec.rb +8 -8
  184. data/spec/models/dataset_spec.rb +8 -8
  185. data/spec/models/dataset_usage_count_spec.rb +8 -8
  186. data/spec/models/delete_dataset_request_spec.rb +8 -8
  187. data/spec/models/delete_topic_data_spec.rb +8 -8
  188. data/spec/models/delete_user_api_key_request_spec.rb +8 -8
  189. data/spec/models/edit_message_data_spec.rb +8 -8
  190. data/spec/models/error_response_body_spec.rb +8 -8
  191. data/spec/models/event_return_spec.rb +8 -8
  192. data/spec/models/event_spec.rb +8 -8
  193. data/spec/models/field_condition_spec.rb +8 -8
  194. data/spec/models/file_dto_spec.rb +8 -8
  195. data/spec/models/file_spec.rb +8 -8
  196. data/spec/models/generate_chunks_request_spec.rb +8 -8
  197. data/spec/models/get_events_data_spec.rb +1 -1
  198. data/spec/models/get_groups_for_chunks_data_spec.rb +8 -8
  199. data/spec/models/group_data_spec.rb +8 -8
  200. data/spec/models/group_score_chunk_dto_spec.rb +8 -8
  201. data/spec/models/group_slim_chunks_dto_spec.rb +42 -0
  202. data/spec/models/invitation_data_spec.rb +8 -8
  203. data/spec/models/match_condition_spec.rb +6 -6
  204. data/spec/models/message_spec.rb +8 -8
  205. data/spec/models/organization_spec.rb +8 -8
  206. data/spec/models/organization_usage_count_spec.rb +8 -8
  207. data/spec/models/range_condition_spec.rb +32 -0
  208. data/spec/models/range_spec.rb +8 -8
  209. data/spec/models/reccomend_group_chunks_request_spec.rb +8 -8
  210. data/spec/models/recommend_chunks_request_spec.rb +8 -8
  211. data/spec/models/recommend_chunks_response_types_spec.rb +32 -0
  212. data/spec/models/recommend_group_chunk_response_types_spec.rb +32 -0
  213. data/spec/models/regenerate_message_data_spec.rb +8 -8
  214. data/spec/models/return_queued_chunk_spec.rb +11 -21
  215. data/spec/models/score_chunk_dto_spec.rb +8 -8
  216. data/spec/models/score_slim_chunks_spec.rb +42 -0
  217. data/spec/models/search_chunk_data_spec.rb +8 -8
  218. data/spec/models/search_chunk_query_response_body_spec.rb +8 -8
  219. data/spec/models/search_chunk_response_types_spec.rb +32 -0
  220. data/spec/models/search_group_slim_chunks_result_spec.rb +48 -0
  221. data/spec/models/search_groups_result_spec.rb +8 -8
  222. data/spec/models/search_over_groups_data_spec.rb +8 -8
  223. data/spec/models/search_over_groups_response_body_spec.rb +8 -8
  224. data/spec/models/search_over_groups_response_types_spec.rb +32 -0
  225. data/spec/models/search_over_groups_slim_chunks_response_body_spec.rb +42 -0
  226. data/spec/models/search_slim_chunk_query_response_body_spec.rb +42 -0
  227. data/spec/models/search_within_group_data_spec.rb +8 -8
  228. data/spec/models/search_within_group_response_types_spec.rb +32 -0
  229. data/spec/models/set_user_api_key_request_spec.rb +8 -8
  230. data/spec/models/set_user_api_key_response_spec.rb +8 -8
  231. data/spec/models/single_queued_chunk_response_spec.rb +1 -1
  232. data/spec/models/{stripe_subscription_spec.rb → slim_chunk_metadata_spec.rb} +33 -15
  233. data/spec/models/slim_group_spec.rb +8 -8
  234. data/spec/models/slim_user_spec.rb +8 -8
  235. data/spec/models/stripe_plan_spec.rb +8 -8
  236. data/spec/models/suggested_queries_request_spec.rb +8 -8
  237. data/spec/models/suggested_queries_response_spec.rb +8 -8
  238. data/spec/models/topic_spec.rb +8 -8
  239. data/spec/models/update_chunk_by_tracking_id_data_spec.rb +20 -8
  240. data/spec/models/update_chunk_data_spec.rb +20 -8
  241. data/spec/models/update_chunk_group_data_spec.rb +14 -8
  242. data/spec/models/update_dataset_request_spec.rb +8 -8
  243. data/spec/models/update_group_by_tracking_id_data_spec.rb +8 -8
  244. data/spec/models/update_organization_data_spec.rb +8 -8
  245. data/spec/models/update_topic_data_spec.rb +8 -8
  246. data/spec/models/update_user_data_spec.rb +8 -8
  247. data/spec/models/upload_file_data_spec.rb +8 -8
  248. data/spec/models/upload_file_result_spec.rb +8 -8
  249. data/spec/models/user_organization_spec.rb +8 -8
  250. data/spec/spec_helper.rb +1 -1
  251. data/trieve_ruby_client-0.5.0.gem +0 -0
  252. data/trieve_ruby_client.gemspec +1 -1
  253. metadata +52 -7
  254. data/docs/StripeSubscription.md +0 -30
  255. data/trieve_ruby_client-0.3.5.gem +0 -0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
5
5
 
6
- The version of the OpenAPI document: 0.4.0
6
+ The version of the OpenAPI document: 0.5.7
7
7
  Contact: developers@trieve.ai
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.4.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
5
5
 
6
- The version of the OpenAPI document: 0.3.5
6
+ The version of the OpenAPI document: 0.5.7
7
7
  Contact: developers@trieve.ai
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.4.0
@@ -14,31 +14,40 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module TrieveRubyClient
17
- class StripeSubscription
17
+ class SlimChunkMetadata
18
18
  attr_accessor :created_at
19
19
 
20
- attr_accessor :current_period_end
21
-
22
20
  attr_accessor :id
23
21
 
24
- attr_accessor :organization_id
22
+ attr_accessor :link
23
+
24
+ attr_accessor :metadata
25
+
26
+ attr_accessor :qdrant_point_id
27
+
28
+ attr_accessor :tag_set
25
29
 
26
- attr_accessor :plan_id
30
+ attr_accessor :time_stamp
27
31
 
28
- attr_accessor :stripe_id
32
+ attr_accessor :tracking_id
29
33
 
30
34
  attr_accessor :updated_at
31
35
 
36
+ attr_accessor :weight
37
+
32
38
  # Attribute mapping from ruby-style variable name to JSON key.
33
39
  def self.attribute_map
34
40
  {
35
41
  :'created_at' => :'created_at',
36
- :'current_period_end' => :'current_period_end',
37
42
  :'id' => :'id',
38
- :'organization_id' => :'organization_id',
39
- :'plan_id' => :'plan_id',
40
- :'stripe_id' => :'stripe_id',
41
- :'updated_at' => :'updated_at'
43
+ :'link' => :'link',
44
+ :'metadata' => :'metadata',
45
+ :'qdrant_point_id' => :'qdrant_point_id',
46
+ :'tag_set' => :'tag_set',
47
+ :'time_stamp' => :'time_stamp',
48
+ :'tracking_id' => :'tracking_id',
49
+ :'updated_at' => :'updated_at',
50
+ :'weight' => :'weight'
42
51
  }
43
52
  end
44
53
 
@@ -51,19 +60,27 @@ module TrieveRubyClient
51
60
  def self.openapi_types
52
61
  {
53
62
  :'created_at' => :'Time',
54
- :'current_period_end' => :'Time',
55
63
  :'id' => :'String',
56
- :'organization_id' => :'String',
57
- :'plan_id' => :'String',
58
- :'stripe_id' => :'String',
59
- :'updated_at' => :'Time'
64
+ :'link' => :'String',
65
+ :'metadata' => :'Object',
66
+ :'qdrant_point_id' => :'String',
67
+ :'tag_set' => :'String',
68
+ :'time_stamp' => :'Time',
69
+ :'tracking_id' => :'String',
70
+ :'updated_at' => :'Time',
71
+ :'weight' => :'Float'
60
72
  }
61
73
  end
62
74
 
63
75
  # List of attributes with nullable: true
64
76
  def self.openapi_nullable
65
77
  Set.new([
66
- :'current_period_end',
78
+ :'link',
79
+ :'metadata',
80
+ :'qdrant_point_id',
81
+ :'tag_set',
82
+ :'time_stamp',
83
+ :'tracking_id',
67
84
  ])
68
85
  end
69
86
 
@@ -71,13 +88,13 @@ module TrieveRubyClient
71
88
  # @param [Hash] attributes Model attributes in the form of hash
72
89
  def initialize(attributes = {})
73
90
  if (!attributes.is_a?(Hash))
74
- fail ArgumentError, "The input argument (attributes) must be a hash in `TrieveRubyClient::StripeSubscription` initialize method"
91
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TrieveRubyClient::SlimChunkMetadata` initialize method"
75
92
  end
76
93
 
77
94
  # check to see if the attribute exists and convert string to symbol for hash key
78
95
  attributes = attributes.each_with_object({}) { |(k, v), h|
79
96
  if (!self.class.attribute_map.key?(k.to_sym))
80
- fail ArgumentError, "`#{k}` is not a valid attribute in `TrieveRubyClient::StripeSubscription`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
97
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TrieveRubyClient::SlimChunkMetadata`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
81
98
  end
82
99
  h[k.to_sym] = v
83
100
  }
@@ -88,32 +105,34 @@ module TrieveRubyClient
88
105
  self.created_at = nil
89
106
  end
90
107
 
91
- if attributes.key?(:'current_period_end')
92
- self.current_period_end = attributes[:'current_period_end']
93
- end
94
-
95
108
  if attributes.key?(:'id')
96
109
  self.id = attributes[:'id']
97
110
  else
98
111
  self.id = nil
99
112
  end
100
113
 
101
- if attributes.key?(:'organization_id')
102
- self.organization_id = attributes[:'organization_id']
103
- else
104
- self.organization_id = nil
114
+ if attributes.key?(:'link')
115
+ self.link = attributes[:'link']
105
116
  end
106
117
 
107
- if attributes.key?(:'plan_id')
108
- self.plan_id = attributes[:'plan_id']
109
- else
110
- self.plan_id = nil
118
+ if attributes.key?(:'metadata')
119
+ self.metadata = attributes[:'metadata']
111
120
  end
112
121
 
113
- if attributes.key?(:'stripe_id')
114
- self.stripe_id = attributes[:'stripe_id']
115
- else
116
- self.stripe_id = nil
122
+ if attributes.key?(:'qdrant_point_id')
123
+ self.qdrant_point_id = attributes[:'qdrant_point_id']
124
+ end
125
+
126
+ if attributes.key?(:'tag_set')
127
+ self.tag_set = attributes[:'tag_set']
128
+ end
129
+
130
+ if attributes.key?(:'time_stamp')
131
+ self.time_stamp = attributes[:'time_stamp']
132
+ end
133
+
134
+ if attributes.key?(:'tracking_id')
135
+ self.tracking_id = attributes[:'tracking_id']
117
136
  end
118
137
 
119
138
  if attributes.key?(:'updated_at')
@@ -121,6 +140,12 @@ module TrieveRubyClient
121
140
  else
122
141
  self.updated_at = nil
123
142
  end
143
+
144
+ if attributes.key?(:'weight')
145
+ self.weight = attributes[:'weight']
146
+ else
147
+ self.weight = nil
148
+ end
124
149
  end
125
150
 
126
151
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -136,22 +161,14 @@ module TrieveRubyClient
136
161
  invalid_properties.push('invalid value for "id", id cannot be nil.')
137
162
  end
138
163
 
139
- if @organization_id.nil?
140
- invalid_properties.push('invalid value for "organization_id", organization_id cannot be nil.')
141
- end
142
-
143
- if @plan_id.nil?
144
- invalid_properties.push('invalid value for "plan_id", plan_id cannot be nil.')
145
- end
146
-
147
- if @stripe_id.nil?
148
- invalid_properties.push('invalid value for "stripe_id", stripe_id cannot be nil.')
149
- end
150
-
151
164
  if @updated_at.nil?
152
165
  invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
153
166
  end
154
167
 
168
+ if @weight.nil?
169
+ invalid_properties.push('invalid value for "weight", weight cannot be nil.')
170
+ end
171
+
155
172
  invalid_properties
156
173
  end
157
174
 
@@ -161,10 +178,8 @@ module TrieveRubyClient
161
178
  warn '[DEPRECATED] the `valid?` method is obsolete'
162
179
  return false if @created_at.nil?
163
180
  return false if @id.nil?
164
- return false if @organization_id.nil?
165
- return false if @plan_id.nil?
166
- return false if @stripe_id.nil?
167
181
  return false if @updated_at.nil?
182
+ return false if @weight.nil?
168
183
  true
169
184
  end
170
185
 
@@ -174,12 +189,15 @@ module TrieveRubyClient
174
189
  return true if self.equal?(o)
175
190
  self.class == o.class &&
176
191
  created_at == o.created_at &&
177
- current_period_end == o.current_period_end &&
178
192
  id == o.id &&
179
- organization_id == o.organization_id &&
180
- plan_id == o.plan_id &&
181
- stripe_id == o.stripe_id &&
182
- updated_at == o.updated_at
193
+ link == o.link &&
194
+ metadata == o.metadata &&
195
+ qdrant_point_id == o.qdrant_point_id &&
196
+ tag_set == o.tag_set &&
197
+ time_stamp == o.time_stamp &&
198
+ tracking_id == o.tracking_id &&
199
+ updated_at == o.updated_at &&
200
+ weight == o.weight
183
201
  end
184
202
 
185
203
  # @see the `==` method
@@ -191,7 +209,7 @@ module TrieveRubyClient
191
209
  # Calculates hash code according to all attributes.
192
210
  # @return [Integer] Hash code
193
211
  def hash
194
- [created_at, current_period_end, id, organization_id, plan_id, stripe_id, updated_at].hash
212
+ [created_at, id, link, metadata, qdrant_point_id, tag_set, time_stamp, tracking_id, updated_at, weight].hash
195
213
  end
196
214
 
197
215
  # Builds the object from hash
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
5
5
 
6
- The version of the OpenAPI document: 0.4.0
6
+ The version of the OpenAPI document: 0.5.7
7
7
  Contact: developers@trieve.ai
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.4.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
5
5
 
6
- The version of the OpenAPI document: 0.4.0
6
+ The version of the OpenAPI document: 0.5.7
7
7
  Contact: developers@trieve.ai
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.4.0
@@ -25,12 +25,6 @@ module TrieveRubyClient
25
25
 
26
26
  attr_accessor :user_orgs
27
27
 
28
- attr_accessor :username
29
-
30
- attr_accessor :visible_email
31
-
32
- attr_accessor :website
33
-
34
28
  # Attribute mapping from ruby-style variable name to JSON key.
35
29
  def self.attribute_map
36
30
  {
@@ -38,10 +32,7 @@ module TrieveRubyClient
38
32
  :'id' => :'id',
39
33
  :'name' => :'name',
40
34
  :'orgs' => :'orgs',
41
- :'user_orgs' => :'user_orgs',
42
- :'username' => :'username',
43
- :'visible_email' => :'visible_email',
44
- :'website' => :'website'
35
+ :'user_orgs' => :'user_orgs'
45
36
  }
46
37
  end
47
38
 
@@ -57,10 +48,7 @@ module TrieveRubyClient
57
48
  :'id' => :'String',
58
49
  :'name' => :'String',
59
50
  :'orgs' => :'Array<Organization>',
60
- :'user_orgs' => :'Array<UserOrganization>',
61
- :'username' => :'String',
62
- :'visible_email' => :'Boolean',
63
- :'website' => :'String'
51
+ :'user_orgs' => :'Array<UserOrganization>'
64
52
  }
65
53
  end
66
54
 
@@ -68,8 +56,6 @@ module TrieveRubyClient
68
56
  def self.openapi_nullable
69
57
  Set.new([
70
58
  :'name',
71
- :'username',
72
- :'website'
73
59
  ])
74
60
  end
75
61
 
@@ -119,20 +105,6 @@ module TrieveRubyClient
119
105
  else
120
106
  self.user_orgs = nil
121
107
  end
122
-
123
- if attributes.key?(:'username')
124
- self.username = attributes[:'username']
125
- end
126
-
127
- if attributes.key?(:'visible_email')
128
- self.visible_email = attributes[:'visible_email']
129
- else
130
- self.visible_email = nil
131
- end
132
-
133
- if attributes.key?(:'website')
134
- self.website = attributes[:'website']
135
- end
136
108
  end
137
109
 
138
110
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -156,10 +128,6 @@ module TrieveRubyClient
156
128
  invalid_properties.push('invalid value for "user_orgs", user_orgs cannot be nil.')
157
129
  end
158
130
 
159
- if @visible_email.nil?
160
- invalid_properties.push('invalid value for "visible_email", visible_email cannot be nil.')
161
- end
162
-
163
131
  invalid_properties
164
132
  end
165
133
 
@@ -171,7 +139,6 @@ module TrieveRubyClient
171
139
  return false if @id.nil?
172
140
  return false if @orgs.nil?
173
141
  return false if @user_orgs.nil?
174
- return false if @visible_email.nil?
175
142
  true
176
143
  end
177
144
 
@@ -184,10 +151,7 @@ module TrieveRubyClient
184
151
  id == o.id &&
185
152
  name == o.name &&
186
153
  orgs == o.orgs &&
187
- user_orgs == o.user_orgs &&
188
- username == o.username &&
189
- visible_email == o.visible_email &&
190
- website == o.website
154
+ user_orgs == o.user_orgs
191
155
  end
192
156
 
193
157
  # @see the `==` method
@@ -199,7 +163,7 @@ module TrieveRubyClient
199
163
  # Calculates hash code according to all attributes.
200
164
  # @return [Integer] Hash code
201
165
  def hash
202
- [email, id, name, orgs, user_orgs, username, visible_email, website].hash
166
+ [email, id, name, orgs, user_orgs].hash
203
167
  end
204
168
 
205
169
  # Builds the object from hash
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
5
5
 
6
- The version of the OpenAPI document: 0.4.0
6
+ The version of the OpenAPI document: 0.5.7
7
7
  Contact: developers@trieve.ai
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.4.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
5
5
 
6
- The version of the OpenAPI document: 0.4.0
6
+ The version of the OpenAPI document: 0.5.7
7
7
  Contact: developers@trieve.ai
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.4.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
5
5
 
6
- The version of the OpenAPI document: 0.4.0
6
+ The version of the OpenAPI document: 0.5.7
7
7
  Contact: developers@trieve.ai
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.4.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
5
5
 
6
- The version of the OpenAPI document: 0.4.0
6
+ The version of the OpenAPI document: 0.5.7
7
7
  Contact: developers@trieve.ai
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.4.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
5
5
 
6
- The version of the OpenAPI document: 0.4.0
6
+ The version of the OpenAPI document: 0.5.7
7
7
  Contact: developers@trieve.ai
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.4.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
5
5
 
6
- The version of the OpenAPI document: 0.4.0
6
+ The version of the OpenAPI document: 0.5.7
7
7
  Contact: developers@trieve.ai
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.4.0
@@ -33,6 +33,9 @@ module TrieveRubyClient
33
33
  # The metadata is a JSON object which can be used to filter chunks. This is useful for when you want to filter chunks by arbitrary metadata. Unlike with tag filtering, there is a performance hit for filtering on metadata. If no metadata is provided, the existing metadata will be used.
34
34
  attr_accessor :metadata
35
35
 
36
+ # Tag set is a list of tags. This can be used to filter chunks by tag. Unlike with metadata filtering, HNSW indices will exist for each tag such that there is not a performance hit for filtering on them. If no tag_set is provided, the existing tag_set will be used.
37
+ attr_accessor :tag_set
38
+
36
39
  # Time_stamp should be an ISO 8601 combined date and time without timezone. It is used for time window filtering and recency-biasing search results. If no time_stamp is provided, the existing time_stamp will be used.
37
40
  attr_accessor :time_stamp
38
41
 
@@ -51,6 +54,7 @@ module TrieveRubyClient
51
54
  :'group_tracking_ids' => :'group_tracking_ids',
52
55
  :'link' => :'link',
53
56
  :'metadata' => :'metadata',
57
+ :'tag_set' => :'tag_set',
54
58
  :'time_stamp' => :'time_stamp',
55
59
  :'tracking_id' => :'tracking_id',
56
60
  :'weight' => :'weight'
@@ -71,6 +75,7 @@ module TrieveRubyClient
71
75
  :'group_tracking_ids' => :'Array<String>',
72
76
  :'link' => :'String',
73
77
  :'metadata' => :'Object',
78
+ :'tag_set' => :'Array<String>',
74
79
  :'time_stamp' => :'String',
75
80
  :'tracking_id' => :'String',
76
81
  :'weight' => :'Float'
@@ -86,6 +91,7 @@ module TrieveRubyClient
86
91
  :'group_tracking_ids',
87
92
  :'link',
88
93
  :'metadata',
94
+ :'tag_set',
89
95
  :'time_stamp',
90
96
  :'tracking_id',
91
97
  :'weight'
@@ -135,6 +141,12 @@ module TrieveRubyClient
135
141
  self.metadata = attributes[:'metadata']
136
142
  end
137
143
 
144
+ if attributes.key?(:'tag_set')
145
+ if (value = attributes[:'tag_set']).is_a?(Array)
146
+ self.tag_set = value
147
+ end
148
+ end
149
+
138
150
  if attributes.key?(:'time_stamp')
139
151
  self.time_stamp = attributes[:'time_stamp']
140
152
  end
@@ -174,6 +186,7 @@ module TrieveRubyClient
174
186
  group_tracking_ids == o.group_tracking_ids &&
175
187
  link == o.link &&
176
188
  metadata == o.metadata &&
189
+ tag_set == o.tag_set &&
177
190
  time_stamp == o.time_stamp &&
178
191
  tracking_id == o.tracking_id &&
179
192
  weight == o.weight
@@ -188,7 +201,7 @@ module TrieveRubyClient
188
201
  # Calculates hash code according to all attributes.
189
202
  # @return [Integer] Hash code
190
203
  def hash
191
- [chunk_html, chunk_id, group_ids, group_tracking_ids, link, metadata, time_stamp, tracking_id, weight].hash
204
+ [chunk_html, chunk_id, group_ids, group_tracking_ids, link, metadata, tag_set, time_stamp, tracking_id, weight].hash
192
205
  end
193
206
 
194
207
  # Builds the object from hash
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
5
5
 
6
- The version of the OpenAPI document: 0.4.0
6
+ The version of the OpenAPI document: 0.5.7
7
7
  Contact: developers@trieve.ai
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.4.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
5
5
 
6
- The version of the OpenAPI document: 0.4.0
6
+ The version of the OpenAPI document: 0.5.7
7
7
  Contact: developers@trieve.ai
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.4.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
5
5
 
6
- The version of the OpenAPI document: 0.4.0
6
+ The version of the OpenAPI document: 0.5.7
7
7
  Contact: developers@trieve.ai
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.4.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
5
5
 
6
- The version of the OpenAPI document: 0.4.0
6
+ The version of the OpenAPI document: 0.5.7
7
7
  Contact: developers@trieve.ai
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.4.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
5
5
 
6
- The version of the OpenAPI document: 0.4.0
6
+ The version of the OpenAPI document: 0.5.7
7
7
  Contact: developers@trieve.ai
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.4.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
5
5
 
6
- The version of the OpenAPI document: 0.4.0
6
+ The version of the OpenAPI document: 0.5.7
7
7
  Contact: developers@trieve.ai
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.4.0
@@ -27,25 +27,13 @@ module TrieveRubyClient
27
27
  # The id of the user to update, if not provided, the auth'ed user will be updated. If provided, the auth'ed user must be an admin (1) or owner (2) of the organization.
28
28
  attr_accessor :user_id
29
29
 
30
- # The new username to assign to the user, if not provided, the current username will be used.
31
- attr_accessor :username
32
-
33
- # Determines if the user's email is visible to other users, if not provided, the current value will be used.
34
- attr_accessor :visible_email
35
-
36
- # The new website to assign to the user, if not provided, the current website will be used. Used for linking to the user's personal or company website.
37
- attr_accessor :website
38
-
39
30
  # Attribute mapping from ruby-style variable name to JSON key.
40
31
  def self.attribute_map
41
32
  {
42
33
  :'name' => :'name',
43
34
  :'organization_id' => :'organization_id',
44
35
  :'role' => :'role',
45
- :'user_id' => :'user_id',
46
- :'username' => :'username',
47
- :'visible_email' => :'visible_email',
48
- :'website' => :'website'
36
+ :'user_id' => :'user_id'
49
37
  }
50
38
  end
51
39
 
@@ -60,10 +48,7 @@ module TrieveRubyClient
60
48
  :'name' => :'String',
61
49
  :'organization_id' => :'String',
62
50
  :'role' => :'Integer',
63
- :'user_id' => :'String',
64
- :'username' => :'String',
65
- :'visible_email' => :'Boolean',
66
- :'website' => :'String'
51
+ :'user_id' => :'String'
67
52
  }
68
53
  end
69
54
 
@@ -72,10 +57,7 @@ module TrieveRubyClient
72
57
  Set.new([
73
58
  :'name',
74
59
  :'role',
75
- :'user_id',
76
- :'username',
77
- :'visible_email',
78
- :'website'
60
+ :'user_id'
79
61
  ])
80
62
  end
81
63
 
@@ -111,18 +93,6 @@ module TrieveRubyClient
111
93
  if attributes.key?(:'user_id')
112
94
  self.user_id = attributes[:'user_id']
113
95
  end
114
-
115
- if attributes.key?(:'username')
116
- self.username = attributes[:'username']
117
- end
118
-
119
- if attributes.key?(:'visible_email')
120
- self.visible_email = attributes[:'visible_email']
121
- end
122
-
123
- if attributes.key?(:'website')
124
- self.website = attributes[:'website']
125
- end
126
96
  end
127
97
 
128
98
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -153,10 +123,7 @@ module TrieveRubyClient
153
123
  name == o.name &&
154
124
  organization_id == o.organization_id &&
155
125
  role == o.role &&
156
- user_id == o.user_id &&
157
- username == o.username &&
158
- visible_email == o.visible_email &&
159
- website == o.website
126
+ user_id == o.user_id
160
127
  end
161
128
 
162
129
  # @see the `==` method
@@ -168,7 +135,7 @@ module TrieveRubyClient
168
135
  # Calculates hash code according to all attributes.
169
136
  # @return [Integer] Hash code
170
137
  def hash
171
- [name, organization_id, role, user_id, username, visible_email, website].hash
138
+ [name, organization_id, role, user_id].hash
172
139
  end
173
140
 
174
141
  # Builds the object from hash
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
5
5
 
6
- The version of the OpenAPI document: 0.4.0
6
+ The version of the OpenAPI document: 0.5.7
7
7
  Contact: developers@trieve.ai
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.4.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
5
5
 
6
- The version of the OpenAPI document: 0.4.0
6
+ The version of the OpenAPI document: 0.5.7
7
7
  Contact: developers@trieve.ai
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.4.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
5
5
 
6
- The version of the OpenAPI document: 0.4.0
6
+ The version of the OpenAPI document: 0.5.7
7
7
  Contact: developers@trieve.ai
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.4.0