trieve_ruby_client 0.3.4 → 0.4.0
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.
- checksums.yaml +4 -4
- data/README.md +78 -81
- data/docs/AuthApi.md +29 -40
- data/docs/AuthQuery.md +22 -0
- data/docs/BatchQueuedChunkResponse.md +20 -0
- data/docs/ChunkApi.md +80 -214
- data/docs/ChunkData.md +42 -0
- data/docs/ChunkGroupApi.md +183 -174
- data/docs/CreateChunkData.md +41 -34
- data/docs/DatasetApi.md +37 -67
- data/docs/EventsApi.md +14 -19
- data/docs/FileApi.md +25 -45
- data/docs/GetEventsData.md +22 -0
- data/docs/HealthApi.md +6 -4
- data/docs/InvitationApi.md +7 -12
- data/docs/MessageApi.md +25 -45
- data/docs/OrganizationApi.md +37 -67
- data/docs/ReturnQueuedChunk.md +39 -10
- data/docs/SingleQueuedChunkResponse.md +20 -0
- data/docs/StripeApi.md +23 -25
- data/docs/TopicApi.md +25 -45
- data/docs/UserApi.md +19 -34
- data/lib/trieve_ruby_client/api/auth_api.rb +28 -35
- data/lib/trieve_ruby_client/api/chunk_api.rb +68 -143
- data/lib/trieve_ruby_client/api/chunk_group_api.rb +164 -76
- data/lib/trieve_ruby_client/api/dataset_api.rb +31 -31
- data/lib/trieve_ruby_client/api/events_api.rb +22 -17
- data/lib/trieve_ruby_client/api/file_api.rb +21 -21
- data/lib/trieve_ruby_client/api/health_api.rb +5 -1
- data/lib/trieve_ruby_client/api/invitation_api.rb +6 -6
- data/lib/trieve_ruby_client/api/message_api.rb +21 -21
- data/lib/trieve_ruby_client/api/organization_api.rb +31 -31
- data/lib/trieve_ruby_client/api/stripe_api.rb +19 -3
- data/lib/trieve_ruby_client/api/topic_api.rb +21 -21
- data/lib/trieve_ruby_client/api/user_api.rb +16 -16
- data/lib/trieve_ruby_client/api_client.rb +1 -1
- data/lib/trieve_ruby_client/api_error.rb +1 -1
- data/lib/trieve_ruby_client/configuration.rb +8 -11
- data/lib/trieve_ruby_client/models/add_chunk_to_group_data.rb +1 -1
- data/lib/trieve_ruby_client/models/api_key_dto.rb +1 -1
- data/lib/trieve_ruby_client/models/auth_query.rb +238 -0
- data/lib/trieve_ruby_client/models/batch_queued_chunk_response.rb +240 -0
- data/lib/trieve_ruby_client/models/bookmark_data.rb +1 -1
- data/lib/trieve_ruby_client/models/bookmark_group_result.rb +1 -1
- data/lib/trieve_ruby_client/models/chat_message_proxy.rb +1 -1
- data/lib/trieve_ruby_client/models/chunk_data.rb +356 -0
- data/lib/trieve_ruby_client/models/chunk_filter.rb +1 -1
- data/lib/trieve_ruby_client/models/chunk_group.rb +1 -1
- data/lib/trieve_ruby_client/models/chunk_group_and_file.rb +1 -1
- data/lib/trieve_ruby_client/models/chunk_metadata.rb +1 -1
- data/lib/trieve_ruby_client/models/chunk_metadata_with_file_data.rb +1 -1
- data/lib/trieve_ruby_client/models/client_dataset_configuration.rb +1 -1
- data/lib/trieve_ruby_client/models/create_chunk_data.rb +79 -330
- data/lib/trieve_ruby_client/models/create_chunk_group_data.rb +1 -1
- data/lib/trieve_ruby_client/models/create_dataset_request.rb +1 -1
- data/lib/trieve_ruby_client/models/create_message_data.rb +1 -1
- data/lib/trieve_ruby_client/models/create_organization_data.rb +1 -1
- data/lib/trieve_ruby_client/models/create_topic_data.rb +1 -1
- data/lib/trieve_ruby_client/models/dataset.rb +1 -1
- data/lib/trieve_ruby_client/models/dataset_and_usage.rb +1 -1
- data/lib/trieve_ruby_client/models/dataset_dto.rb +1 -1
- data/lib/trieve_ruby_client/models/dataset_usage_count.rb +1 -1
- data/lib/trieve_ruby_client/models/delete_dataset_request.rb +1 -1
- data/lib/trieve_ruby_client/models/delete_topic_data.rb +1 -1
- data/lib/trieve_ruby_client/models/delete_user_api_key_request.rb +1 -1
- data/lib/trieve_ruby_client/models/edit_message_data.rb +1 -1
- data/lib/trieve_ruby_client/models/error_response_body.rb +1 -1
- data/lib/trieve_ruby_client/models/event.rb +1 -1
- data/lib/trieve_ruby_client/models/event_return.rb +1 -1
- data/lib/trieve_ruby_client/models/field_condition.rb +1 -1
- data/lib/trieve_ruby_client/models/file.rb +1 -1
- data/lib/trieve_ruby_client/models/file_dto.rb +1 -1
- data/lib/trieve_ruby_client/models/generate_chunks_request.rb +1 -1
- data/lib/trieve_ruby_client/models/get_events_data.rb +240 -0
- data/lib/trieve_ruby_client/models/get_groups_for_chunks_data.rb +1 -1
- data/lib/trieve_ruby_client/models/group_data.rb +1 -1
- data/lib/trieve_ruby_client/models/group_score_chunk_dto.rb +1 -1
- data/lib/trieve_ruby_client/models/invitation_data.rb +1 -1
- data/lib/trieve_ruby_client/models/match_condition.rb +1 -1
- data/lib/trieve_ruby_client/models/message.rb +1 -1
- data/lib/trieve_ruby_client/models/organization.rb +1 -1
- data/lib/trieve_ruby_client/models/organization_usage_count.rb +1 -1
- data/lib/trieve_ruby_client/models/range.rb +1 -1
- data/lib/trieve_ruby_client/models/reccomend_group_chunks_request.rb +1 -1
- data/lib/trieve_ruby_client/models/recommend_chunks_request.rb +1 -1
- data/lib/trieve_ruby_client/models/regenerate_message_data.rb +1 -1
- data/lib/trieve_ruby_client/models/return_queued_chunk.rb +75 -207
- data/lib/trieve_ruby_client/models/score_chunk_dto.rb +1 -1
- data/lib/trieve_ruby_client/models/search_chunk_data.rb +1 -1
- data/lib/trieve_ruby_client/models/search_chunk_query_response_body.rb +1 -1
- data/lib/trieve_ruby_client/models/search_groups_result.rb +1 -1
- data/lib/trieve_ruby_client/models/search_over_groups_data.rb +1 -1
- data/lib/trieve_ruby_client/models/search_over_groups_response_body.rb +1 -1
- data/lib/trieve_ruby_client/models/search_within_group_data.rb +1 -1
- data/lib/trieve_ruby_client/models/set_user_api_key_request.rb +1 -1
- data/lib/trieve_ruby_client/models/set_user_api_key_response.rb +1 -1
- data/lib/trieve_ruby_client/models/single_queued_chunk_response.rb +238 -0
- data/lib/trieve_ruby_client/models/slim_group.rb +1 -1
- data/lib/trieve_ruby_client/models/slim_user.rb +1 -1
- data/lib/trieve_ruby_client/models/stripe_plan.rb +1 -1
- data/lib/trieve_ruby_client/models/stripe_subscription.rb +1 -1
- data/lib/trieve_ruby_client/models/suggested_queries_request.rb +1 -1
- data/lib/trieve_ruby_client/models/suggested_queries_response.rb +1 -1
- data/lib/trieve_ruby_client/models/topic.rb +1 -1
- data/lib/trieve_ruby_client/models/update_chunk_by_tracking_id_data.rb +1 -1
- data/lib/trieve_ruby_client/models/update_chunk_data.rb +1 -1
- data/lib/trieve_ruby_client/models/update_chunk_group_data.rb +1 -1
- data/lib/trieve_ruby_client/models/update_dataset_request.rb +1 -1
- data/lib/trieve_ruby_client/models/update_group_by_tracking_id_data.rb +1 -1
- data/lib/trieve_ruby_client/models/update_organization_data.rb +1 -1
- data/lib/trieve_ruby_client/models/update_topic_data.rb +1 -1
- data/lib/trieve_ruby_client/models/update_user_data.rb +1 -1
- data/lib/trieve_ruby_client/models/upload_file_data.rb +1 -1
- data/lib/trieve_ruby_client/models/upload_file_result.rb +1 -1
- data/lib/trieve_ruby_client/models/user_organization.rb +1 -1
- data/lib/trieve_ruby_client/version.rb +2 -2
- data/lib/trieve_ruby_client.rb +6 -2
- data/openapi-generator.yaml +2 -2
- data/openapi.json +1280 -876
- data/spec/models/auth_query_spec.rb +48 -0
- data/spec/models/batch_queued_chunk_response_spec.rb +42 -0
- data/spec/models/chunk_data_spec.rb +108 -0
- data/spec/models/get_events_data_spec.rb +48 -0
- data/spec/models/single_queued_chunk_response_spec.rb +42 -0
- data/spec/spec_helper.rb +1 -1
- data/trieve_ruby_client-0.3.5.gem +0 -0
- data/trieve_ruby_client.gemspec +2 -2
- metadata +25 -3
@@ -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.
|
6
|
+
The version of the OpenAPI document: 0.4.0
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -19,8 +19,8 @@ module TrieveRubyClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
#
|
23
|
-
#
|
22
|
+
# Create Organization
|
23
|
+
# Create Organization Create a new organization. The auth'ed user who creates the organization will be the default owner of the organization.
|
24
24
|
# @param create_organization_data [CreateOrganizationData] The organization data that you want to create
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
26
|
# @return [Organization]
|
@@ -29,8 +29,8 @@ module TrieveRubyClient
|
|
29
29
|
data
|
30
30
|
end
|
31
31
|
|
32
|
-
#
|
33
|
-
#
|
32
|
+
# Create Organization
|
33
|
+
# Create Organization Create a new organization. The auth'ed user who creates the organization will be the default owner of the organization.
|
34
34
|
# @param create_organization_data [CreateOrganizationData] The organization data that you want to create
|
35
35
|
# @param [Hash] opts the optional parameters
|
36
36
|
# @return [Array<(Organization, Integer, Hash)>] Organization data, response status code and response headers
|
@@ -68,7 +68,7 @@ module TrieveRubyClient
|
|
68
68
|
return_type = opts[:debug_return_type] || 'Organization'
|
69
69
|
|
70
70
|
# auth_names
|
71
|
-
auth_names = opts[:debug_auth_names] || ['
|
71
|
+
auth_names = opts[:debug_auth_names] || ['ApiKey']
|
72
72
|
|
73
73
|
new_options = opts.merge(
|
74
74
|
:operation => :"OrganizationApi.create_organization",
|
@@ -87,8 +87,8 @@ module TrieveRubyClient
|
|
87
87
|
return data, status_code, headers
|
88
88
|
end
|
89
89
|
|
90
|
-
#
|
91
|
-
#
|
90
|
+
# Delete Organization
|
91
|
+
# Delete Organization Delete an organization by its id. The auth'ed user must be an owner of the organization to delete it.
|
92
92
|
# @param tr_organization [String] The organization id to use for the request
|
93
93
|
# @param organization_id [String] The id of the organization you want to fetch.
|
94
94
|
# @param [Hash] opts the optional parameters
|
@@ -98,8 +98,8 @@ module TrieveRubyClient
|
|
98
98
|
data
|
99
99
|
end
|
100
100
|
|
101
|
-
#
|
102
|
-
#
|
101
|
+
# Delete Organization
|
102
|
+
# Delete Organization Delete an organization by its id. The auth'ed user must be an owner of the organization to delete it.
|
103
103
|
# @param tr_organization [String] The organization id to use for the request
|
104
104
|
# @param organization_id [String] The id of the organization you want to fetch.
|
105
105
|
# @param [Hash] opts the optional parameters
|
@@ -138,7 +138,7 @@ module TrieveRubyClient
|
|
138
138
|
return_type = opts[:debug_return_type] || 'Organization'
|
139
139
|
|
140
140
|
# auth_names
|
141
|
-
auth_names = opts[:debug_auth_names] || ['
|
141
|
+
auth_names = opts[:debug_auth_names] || ['ApiKey']
|
142
142
|
|
143
143
|
new_options = opts.merge(
|
144
144
|
:operation => :"OrganizationApi.delete_organization_by_id",
|
@@ -157,8 +157,8 @@ module TrieveRubyClient
|
|
157
157
|
return data, status_code, headers
|
158
158
|
end
|
159
159
|
|
160
|
-
#
|
161
|
-
#
|
160
|
+
# Get Organization
|
161
|
+
# Get Organization Fetch the details of an organization by its id. The auth'ed user must be an admin or owner of the organization to fetch it.
|
162
162
|
# @param tr_organization [String] The organization id to use for the request
|
163
163
|
# @param organization_id [String] The id of the organization you want to fetch.
|
164
164
|
# @param [Hash] opts the optional parameters
|
@@ -168,8 +168,8 @@ module TrieveRubyClient
|
|
168
168
|
data
|
169
169
|
end
|
170
170
|
|
171
|
-
#
|
172
|
-
#
|
171
|
+
# Get Organization
|
172
|
+
# 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.
|
173
173
|
# @param tr_organization [String] The organization id to use for the request
|
174
174
|
# @param organization_id [String] The id of the organization you want to fetch.
|
175
175
|
# @param [Hash] opts the optional parameters
|
@@ -208,7 +208,7 @@ module TrieveRubyClient
|
|
208
208
|
return_type = opts[:debug_return_type] || 'Organization'
|
209
209
|
|
210
210
|
# auth_names
|
211
|
-
auth_names = opts[:debug_auth_names] || ['
|
211
|
+
auth_names = opts[:debug_auth_names] || ['ApiKey']
|
212
212
|
|
213
213
|
new_options = opts.merge(
|
214
214
|
:operation => :"OrganizationApi.get_organization_by_id",
|
@@ -227,8 +227,8 @@ module TrieveRubyClient
|
|
227
227
|
return data, status_code, headers
|
228
228
|
end
|
229
229
|
|
230
|
-
#
|
231
|
-
#
|
230
|
+
# Get Organization Usage
|
231
|
+
# Get Organization Usage Fetch the current usage specification of an organization by its id. The auth'ed user must be an admin or owner of the organization to fetch it.
|
232
232
|
# @param tr_organization [String] The organization id to use for the request
|
233
233
|
# @param organization_id [String] The id of the organization you want to fetch the usage of.
|
234
234
|
# @param [Hash] opts the optional parameters
|
@@ -238,8 +238,8 @@ module TrieveRubyClient
|
|
238
238
|
data
|
239
239
|
end
|
240
240
|
|
241
|
-
#
|
242
|
-
#
|
241
|
+
# Get Organization Usage
|
242
|
+
# 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.
|
243
243
|
# @param tr_organization [String] The organization id to use for the request
|
244
244
|
# @param organization_id [String] The id of the organization you want to fetch the usage of.
|
245
245
|
# @param [Hash] opts the optional parameters
|
@@ -278,7 +278,7 @@ module TrieveRubyClient
|
|
278
278
|
return_type = opts[:debug_return_type] || 'OrganizationUsageCount'
|
279
279
|
|
280
280
|
# auth_names
|
281
|
-
auth_names = opts[:debug_auth_names] || ['
|
281
|
+
auth_names = opts[:debug_auth_names] || ['ApiKey']
|
282
282
|
|
283
283
|
new_options = opts.merge(
|
284
284
|
:operation => :"OrganizationApi.get_organization_usage",
|
@@ -297,8 +297,8 @@ module TrieveRubyClient
|
|
297
297
|
return data, status_code, headers
|
298
298
|
end
|
299
299
|
|
300
|
-
#
|
301
|
-
#
|
300
|
+
# Get Organization Users
|
301
|
+
# Get Organization Users Fetch the users of an organization by its id. The auth'ed user must be an admin or owner of the organization to fetch it.
|
302
302
|
# @param tr_organization [String] The organization id to use for the request
|
303
303
|
# @param organization_id [String] The id of the organization you want to fetch the users of.
|
304
304
|
# @param [Hash] opts the optional parameters
|
@@ -308,8 +308,8 @@ module TrieveRubyClient
|
|
308
308
|
data
|
309
309
|
end
|
310
310
|
|
311
|
-
#
|
312
|
-
#
|
311
|
+
# Get Organization Users
|
312
|
+
# 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.
|
313
313
|
# @param tr_organization [String] The organization id to use for the request
|
314
314
|
# @param organization_id [String] The id of the organization you want to fetch the users of.
|
315
315
|
# @param [Hash] opts the optional parameters
|
@@ -348,7 +348,7 @@ module TrieveRubyClient
|
|
348
348
|
return_type = opts[:debug_return_type] || 'Array<SlimUser>'
|
349
349
|
|
350
350
|
# auth_names
|
351
|
-
auth_names = opts[:debug_auth_names] || ['
|
351
|
+
auth_names = opts[:debug_auth_names] || ['ApiKey']
|
352
352
|
|
353
353
|
new_options = opts.merge(
|
354
354
|
:operation => :"OrganizationApi.get_organization_users",
|
@@ -367,8 +367,8 @@ module TrieveRubyClient
|
|
367
367
|
return data, status_code, headers
|
368
368
|
end
|
369
369
|
|
370
|
-
#
|
371
|
-
#
|
370
|
+
# Update Organization
|
371
|
+
# Update Organization Update an organization. Only the owner of the organization can update it.
|
372
372
|
# @param tr_organization [String] The organization id to use for the request
|
373
373
|
# @param update_organization_data [UpdateOrganizationData] The organization data that you want to update
|
374
374
|
# @param [Hash] opts the optional parameters
|
@@ -378,8 +378,8 @@ module TrieveRubyClient
|
|
378
378
|
data
|
379
379
|
end
|
380
380
|
|
381
|
-
#
|
382
|
-
#
|
381
|
+
# Update Organization
|
382
|
+
# Update Organization Update an organization. Only the owner of the organization can update it.
|
383
383
|
# @param tr_organization [String] The organization id to use for the request
|
384
384
|
# @param update_organization_data [UpdateOrganizationData] The organization data that you want to update
|
385
385
|
# @param [Hash] opts the optional parameters
|
@@ -423,7 +423,7 @@ module TrieveRubyClient
|
|
423
423
|
return_type = opts[:debug_return_type] || 'Organization'
|
424
424
|
|
425
425
|
# auth_names
|
426
|
-
auth_names = opts[:debug_auth_names] || ['
|
426
|
+
auth_names = opts[:debug_auth_names] || ['ApiKey']
|
427
427
|
|
428
428
|
new_options = opts.merge(
|
429
429
|
:operation => :"OrganizationApi.update_organization",
|
@@ -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.
|
6
|
+
The version of the OpenAPI document: 0.4.0
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -19,6 +19,8 @@ module TrieveRubyClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
+
# Cancel Subscription
|
23
|
+
# Cancel Subscription Cancel a subscription by its id
|
22
24
|
# @param tr_organization [String] The organization id to use for the request
|
23
25
|
# @param subscription_id [String] id of the subscription you want to cancel
|
24
26
|
# @param [Hash] opts the optional parameters
|
@@ -28,6 +30,8 @@ module TrieveRubyClient
|
|
28
30
|
nil
|
29
31
|
end
|
30
32
|
|
33
|
+
# Cancel Subscription
|
34
|
+
# Cancel Subscription Cancel a subscription by its id
|
31
35
|
# @param tr_organization [String] The organization id to use for the request
|
32
36
|
# @param subscription_id [String] id of the subscription you want to cancel
|
33
37
|
# @param [Hash] opts the optional parameters
|
@@ -66,7 +70,7 @@ module TrieveRubyClient
|
|
66
70
|
return_type = opts[:debug_return_type]
|
67
71
|
|
68
72
|
# auth_names
|
69
|
-
auth_names = opts[:debug_auth_names] || ['
|
73
|
+
auth_names = opts[:debug_auth_names] || ['ApiKey']
|
70
74
|
|
71
75
|
new_options = opts.merge(
|
72
76
|
:operation => :"StripeApi.cancel_subscription",
|
@@ -85,6 +89,8 @@ module TrieveRubyClient
|
|
85
89
|
return data, status_code, headers
|
86
90
|
end
|
87
91
|
|
92
|
+
# Checkout
|
93
|
+
# Checkout Get a direct link to the stripe checkout page for the plan and organization
|
88
94
|
# @param plan_id [String] id of the plan you want to subscribe to
|
89
95
|
# @param organization_id [String] id of the organization you want to subscribe to the plan
|
90
96
|
# @param [Hash] opts the optional parameters
|
@@ -94,6 +100,8 @@ module TrieveRubyClient
|
|
94
100
|
nil
|
95
101
|
end
|
96
102
|
|
103
|
+
# Checkout
|
104
|
+
# Checkout Get a direct link to the stripe checkout page for the plan and organization
|
97
105
|
# @param plan_id [String] id of the plan you want to subscribe to
|
98
106
|
# @param organization_id [String] id of the organization you want to subscribe to the plan
|
99
107
|
# @param [Hash] opts the optional parameters
|
@@ -150,6 +158,8 @@ module TrieveRubyClient
|
|
150
158
|
return data, status_code, headers
|
151
159
|
end
|
152
160
|
|
161
|
+
# Get All Plans
|
162
|
+
# Get All Plans Get a list of all plans
|
153
163
|
# @param [Hash] opts the optional parameters
|
154
164
|
# @return [Array<StripePlan>]
|
155
165
|
def get_all_plans(opts = {})
|
@@ -157,6 +167,8 @@ module TrieveRubyClient
|
|
157
167
|
data
|
158
168
|
end
|
159
169
|
|
170
|
+
# Get All Plans
|
171
|
+
# Get All Plans Get a list of all plans
|
160
172
|
# @param [Hash] opts the optional parameters
|
161
173
|
# @return [Array<(Array<StripePlan>, Integer, Hash)>] Array<StripePlan> data, response status code and response headers
|
162
174
|
def get_all_plans_with_http_info(opts = {})
|
@@ -203,6 +215,8 @@ module TrieveRubyClient
|
|
203
215
|
return data, status_code, headers
|
204
216
|
end
|
205
217
|
|
218
|
+
# Update Subscription Plan
|
219
|
+
# Update Subscription Plan Update a subscription to a new plan
|
206
220
|
# @param tr_organization [String] The organization id to use for the request
|
207
221
|
# @param subscription_id [String] id of the subscription you want to update
|
208
222
|
# @param plan_id [String] id of the plan you want to subscribe to
|
@@ -213,6 +227,8 @@ module TrieveRubyClient
|
|
213
227
|
nil
|
214
228
|
end
|
215
229
|
|
230
|
+
# Update Subscription Plan
|
231
|
+
# Update Subscription Plan Update a subscription to a new plan
|
216
232
|
# @param tr_organization [String] The organization id to use for the request
|
217
233
|
# @param subscription_id [String] id of the subscription you want to update
|
218
234
|
# @param plan_id [String] id of the plan you want to subscribe to
|
@@ -256,7 +272,7 @@ module TrieveRubyClient
|
|
256
272
|
return_type = opts[:debug_return_type]
|
257
273
|
|
258
274
|
# auth_names
|
259
|
-
auth_names = opts[:debug_auth_names] || ['
|
275
|
+
auth_names = opts[:debug_auth_names] || ['ApiKey']
|
260
276
|
|
261
277
|
new_options = opts.merge(
|
262
278
|
:operation => :"StripeApi.update_subscription_plan",
|
@@ -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.
|
6
|
+
The version of the OpenAPI document: 0.4.0
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -19,8 +19,8 @@ module TrieveRubyClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
#
|
23
|
-
#
|
22
|
+
# Create Topic
|
23
|
+
# Create Topic Create a new chat topic. Topics are attached to a user and act as a coordinator for memory of gen-AI chat sessions. We are considering refactoring this resource of the API soon.
|
24
24
|
# @param tr_dataset [String] The dataset id to use for the request
|
25
25
|
# @param create_topic_data [CreateTopicData] JSON request payload to create chat topic
|
26
26
|
# @param [Hash] opts the optional parameters
|
@@ -30,8 +30,8 @@ module TrieveRubyClient
|
|
30
30
|
data
|
31
31
|
end
|
32
32
|
|
33
|
-
#
|
34
|
-
#
|
33
|
+
# Create Topic
|
34
|
+
# Create Topic Create a new chat topic. Topics are attached to a user and act as a coordinator for memory of gen-AI chat sessions. We are considering refactoring this resource of the API soon.
|
35
35
|
# @param tr_dataset [String] The dataset id to use for the request
|
36
36
|
# @param create_topic_data [CreateTopicData] JSON request payload to create chat topic
|
37
37
|
# @param [Hash] opts the optional parameters
|
@@ -75,7 +75,7 @@ module TrieveRubyClient
|
|
75
75
|
return_type = opts[:debug_return_type] || 'Topic'
|
76
76
|
|
77
77
|
# auth_names
|
78
|
-
auth_names = opts[:debug_auth_names] || ['
|
78
|
+
auth_names = opts[:debug_auth_names] || ['ApiKey']
|
79
79
|
|
80
80
|
new_options = opts.merge(
|
81
81
|
:operation => :"TopicApi.create_topic",
|
@@ -94,8 +94,8 @@ module TrieveRubyClient
|
|
94
94
|
return data, status_code, headers
|
95
95
|
end
|
96
96
|
|
97
|
-
#
|
98
|
-
#
|
97
|
+
# Delete Topic
|
98
|
+
# Delete Topic Delete an existing chat topic. When a topic is deleted, all associated chat messages are also deleted.
|
99
99
|
# @param tr_dataset [String] The dataset id to use for the request
|
100
100
|
# @param delete_topic_data [DeleteTopicData] JSON request payload to delete a chat topic
|
101
101
|
# @param [Hash] opts the optional parameters
|
@@ -105,8 +105,8 @@ module TrieveRubyClient
|
|
105
105
|
nil
|
106
106
|
end
|
107
107
|
|
108
|
-
#
|
109
|
-
#
|
108
|
+
# Delete Topic
|
109
|
+
# Delete Topic Delete an existing chat topic. When a topic is deleted, all associated chat messages are also deleted.
|
110
110
|
# @param tr_dataset [String] The dataset id to use for the request
|
111
111
|
# @param delete_topic_data [DeleteTopicData] JSON request payload to delete a chat topic
|
112
112
|
# @param [Hash] opts the optional parameters
|
@@ -150,7 +150,7 @@ module TrieveRubyClient
|
|
150
150
|
return_type = opts[:debug_return_type]
|
151
151
|
|
152
152
|
# auth_names
|
153
|
-
auth_names = opts[:debug_auth_names] || ['
|
153
|
+
auth_names = opts[:debug_auth_names] || ['ApiKey']
|
154
154
|
|
155
155
|
new_options = opts.merge(
|
156
156
|
:operation => :"TopicApi.delete_topic",
|
@@ -169,8 +169,8 @@ module TrieveRubyClient
|
|
169
169
|
return data, status_code, headers
|
170
170
|
end
|
171
171
|
|
172
|
-
#
|
173
|
-
#
|
172
|
+
# Get All Topics for User
|
173
|
+
# Get All Topics for User Get all topics belonging to a the auth'ed user. Soon, we plan to allow specification of the user for this route and include pagination.
|
174
174
|
# @param user_id [String] The id of the user to get topics for
|
175
175
|
# @param tr_dataset [String] The dataset id to use for the request
|
176
176
|
# @param [Hash] opts the optional parameters
|
@@ -180,8 +180,8 @@ module TrieveRubyClient
|
|
180
180
|
data
|
181
181
|
end
|
182
182
|
|
183
|
-
#
|
184
|
-
#
|
183
|
+
# Get All Topics for User
|
184
|
+
# Get All Topics for User Get all topics belonging to a the auth'ed user. Soon, we plan to allow specification of the user for this route and include pagination.
|
185
185
|
# @param user_id [String] The id of the user to get topics for
|
186
186
|
# @param tr_dataset [String] The dataset id to use for the request
|
187
187
|
# @param [Hash] opts the optional parameters
|
@@ -220,7 +220,7 @@ module TrieveRubyClient
|
|
220
220
|
return_type = opts[:debug_return_type] || 'Array<Topic>'
|
221
221
|
|
222
222
|
# auth_names
|
223
|
-
auth_names = opts[:debug_auth_names] || ['
|
223
|
+
auth_names = opts[:debug_auth_names] || ['ApiKey']
|
224
224
|
|
225
225
|
new_options = opts.merge(
|
226
226
|
:operation => :"TopicApi.get_all_topics_for_user",
|
@@ -239,8 +239,8 @@ module TrieveRubyClient
|
|
239
239
|
return data, status_code, headers
|
240
240
|
end
|
241
241
|
|
242
|
-
#
|
243
|
-
#
|
242
|
+
# Update Topic
|
243
|
+
# Update Topic Update an existing chat topic. Currently, only the name of the topic can be updated.
|
244
244
|
# @param tr_dataset [String] The dataset id to use for the request
|
245
245
|
# @param update_topic_data [UpdateTopicData] JSON request payload to update a chat topic
|
246
246
|
# @param [Hash] opts the optional parameters
|
@@ -250,8 +250,8 @@ module TrieveRubyClient
|
|
250
250
|
nil
|
251
251
|
end
|
252
252
|
|
253
|
-
#
|
254
|
-
#
|
253
|
+
# Update Topic
|
254
|
+
# Update Topic Update an existing chat topic. Currently, only the name of the topic can be updated.
|
255
255
|
# @param tr_dataset [String] The dataset id to use for the request
|
256
256
|
# @param update_topic_data [UpdateTopicData] JSON request payload to update a chat topic
|
257
257
|
# @param [Hash] opts the optional parameters
|
@@ -295,7 +295,7 @@ module TrieveRubyClient
|
|
295
295
|
return_type = opts[:debug_return_type]
|
296
296
|
|
297
297
|
# auth_names
|
298
|
-
auth_names = opts[:debug_auth_names] || ['
|
298
|
+
auth_names = opts[:debug_auth_names] || ['ApiKey']
|
299
299
|
|
300
300
|
new_options = opts.merge(
|
301
301
|
:operation => :"TopicApi.update_topic",
|
@@ -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.
|
6
|
+
The version of the OpenAPI document: 0.4.0
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -19,8 +19,8 @@ module TrieveRubyClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
#
|
23
|
-
#
|
22
|
+
# Delete User Api Key
|
23
|
+
# Delete User Api Key Delete an api key for the auth'ed user.
|
24
24
|
# @param delete_user_api_key_request [DeleteUserApiKeyRequest] JSON request payload to delete a user api key
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
26
|
# @return [Array<ApiKeyDTO>]
|
@@ -29,8 +29,8 @@ module TrieveRubyClient
|
|
29
29
|
data
|
30
30
|
end
|
31
31
|
|
32
|
-
#
|
33
|
-
#
|
32
|
+
# Delete User Api Key
|
33
|
+
# Delete User Api Key Delete an api key for the auth'ed user.
|
34
34
|
# @param delete_user_api_key_request [DeleteUserApiKeyRequest] JSON request payload to delete a user api key
|
35
35
|
# @param [Hash] opts the optional parameters
|
36
36
|
# @return [Array<(Array<ApiKeyDTO>, Integer, Hash)>] Array<ApiKeyDTO> data, response status code and response headers
|
@@ -68,7 +68,7 @@ module TrieveRubyClient
|
|
68
68
|
return_type = opts[:debug_return_type] || 'Array<ApiKeyDTO>'
|
69
69
|
|
70
70
|
# auth_names
|
71
|
-
auth_names = opts[:debug_auth_names] || ['
|
71
|
+
auth_names = opts[:debug_auth_names] || ['ApiKey']
|
72
72
|
|
73
73
|
new_options = opts.merge(
|
74
74
|
:operation => :"UserApi.delete_user_api_key",
|
@@ -87,8 +87,8 @@ module TrieveRubyClient
|
|
87
87
|
return data, status_code, headers
|
88
88
|
end
|
89
89
|
|
90
|
-
#
|
91
|
-
#
|
90
|
+
# Set User Api Key
|
91
|
+
# Set User Api Key Create a new api key for the auth'ed user. Successful response will contain the newly created api key. If a write role is assigned the api key will have permission level of the auth'ed user who calls this endpoint.
|
92
92
|
# @param set_user_api_key_request [SetUserApiKeyRequest] JSON request payload to create a new user api key
|
93
93
|
# @param [Hash] opts the optional parameters
|
94
94
|
# @return [SetUserApiKeyResponse]
|
@@ -97,8 +97,8 @@ module TrieveRubyClient
|
|
97
97
|
data
|
98
98
|
end
|
99
99
|
|
100
|
-
#
|
101
|
-
#
|
100
|
+
# Set User Api Key
|
101
|
+
# Set User Api Key Create a new api key for the auth'ed user. Successful response will contain the newly created api key. If a write role is assigned the api key will have permission level of the auth'ed user who calls this endpoint.
|
102
102
|
# @param set_user_api_key_request [SetUserApiKeyRequest] JSON request payload to create a new user api key
|
103
103
|
# @param [Hash] opts the optional parameters
|
104
104
|
# @return [Array<(SetUserApiKeyResponse, Integer, Hash)>] SetUserApiKeyResponse data, response status code and response headers
|
@@ -136,7 +136,7 @@ module TrieveRubyClient
|
|
136
136
|
return_type = opts[:debug_return_type] || 'SetUserApiKeyResponse'
|
137
137
|
|
138
138
|
# auth_names
|
139
|
-
auth_names = opts[:debug_auth_names] || ['
|
139
|
+
auth_names = opts[:debug_auth_names] || ['ApiKey']
|
140
140
|
|
141
141
|
new_options = opts.merge(
|
142
142
|
:operation => :"UserApi.set_user_api_key",
|
@@ -155,8 +155,8 @@ module TrieveRubyClient
|
|
155
155
|
return data, status_code, headers
|
156
156
|
end
|
157
157
|
|
158
|
-
#
|
159
|
-
#
|
158
|
+
# Update User
|
159
|
+
# Update User Update a user's information. If the user_id is not provided, the auth'ed user will be updated. If the user_id is provided, the auth'ed user must be an admin (1) or owner (2) of the organization.
|
160
160
|
# @param update_user_data [UpdateUserData] JSON request payload to update user information for the auth'ed user
|
161
161
|
# @param [Hash] opts the optional parameters
|
162
162
|
# @return [SlimUser]
|
@@ -165,8 +165,8 @@ module TrieveRubyClient
|
|
165
165
|
data
|
166
166
|
end
|
167
167
|
|
168
|
-
#
|
169
|
-
#
|
168
|
+
# Update User
|
169
|
+
# Update User Update a user's information. If the user_id is not provided, the auth'ed user will be updated. If the user_id is provided, the auth'ed user must be an admin (1) or owner (2) of the organization.
|
170
170
|
# @param update_user_data [UpdateUserData] JSON request payload to update user information for the auth'ed user
|
171
171
|
# @param [Hash] opts the optional parameters
|
172
172
|
# @return [Array<(SlimUser, Integer, Hash)>] SlimUser data, response status code and response headers
|
@@ -204,7 +204,7 @@ module TrieveRubyClient
|
|
204
204
|
return_type = opts[:debug_return_type] || 'SlimUser'
|
205
205
|
|
206
206
|
# auth_names
|
207
|
-
auth_names = opts[:debug_auth_names] || ['
|
207
|
+
auth_names = opts[:debug_auth_names] || ['ApiKey']
|
208
208
|
|
209
209
|
new_options = opts.merge(
|
210
210
|
:operation => :"UserApi.update_user",
|
@@ -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.
|
6
|
+
The version of the OpenAPI document: 0.4.0
|
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.
|
6
|
+
The version of the OpenAPI document: 0.4.0
|
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.
|
6
|
+
The version of the OpenAPI document: 0.4.0
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|
@@ -150,7 +150,7 @@ module TrieveRubyClient
|
|
150
150
|
|
151
151
|
def initialize
|
152
152
|
@scheme = 'http'
|
153
|
-
@host = 'localhost'
|
153
|
+
@host = 'localhost:8090'
|
154
154
|
@base_path = ''
|
155
155
|
@server_index = nil
|
156
156
|
@server_operation_index = {}
|
@@ -241,13 +241,6 @@ module TrieveRubyClient
|
|
241
241
|
key: 'Authorization',
|
242
242
|
value: api_key_with_prefix('ApiKey')
|
243
243
|
},
|
244
|
-
'Cookie' =>
|
245
|
-
{
|
246
|
-
type: 'api_key',
|
247
|
-
in: ,
|
248
|
-
key: 'Authorization',
|
249
|
-
value: api_key_with_prefix('Cookie')
|
250
|
-
},
|
251
244
|
}
|
252
245
|
end
|
253
246
|
|
@@ -255,8 +248,12 @@ module TrieveRubyClient
|
|
255
248
|
def server_settings
|
256
249
|
[
|
257
250
|
{
|
258
|
-
url: "",
|
259
|
-
description: "
|
251
|
+
url: "http://localhost:8090",
|
252
|
+
description: "Local development server",
|
253
|
+
},
|
254
|
+
{
|
255
|
+
url: "https://api.trieve.ai",
|
256
|
+
description: "Production server",
|
260
257
|
}
|
261
258
|
]
|
262
259
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.4.0
|
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.
|
6
|
+
The version of the OpenAPI document: 0.4.0
|
7
7
|
Contact: developers@trieve.ai
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
Generator version: 7.4.0
|