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
data/docs/OrganizationApi.md
CHANGED
@@ -1,24 +1,24 @@
|
|
1
1
|
# TrieveRubyClient::OrganizationApi
|
2
2
|
|
3
|
-
All URIs are relative to *http://localhost*
|
3
|
+
All URIs are relative to *http://localhost:8090*
|
4
4
|
|
5
5
|
| Method | HTTP request | Description |
|
6
6
|
| ------ | ------------ | ----------- |
|
7
|
-
| [**create_organization**](OrganizationApi.md#create_organization) | **POST** /api/organization |
|
8
|
-
| [**delete_organization_by_id**](OrganizationApi.md#delete_organization_by_id) | **DELETE** /api/organization/{organization_id} |
|
9
|
-
| [**get_organization_by_id**](OrganizationApi.md#get_organization_by_id) | **GET** /api/organization/{organization_id} |
|
10
|
-
| [**get_organization_usage**](OrganizationApi.md#get_organization_usage) | **GET** /api/organization/usage/{organization_id} |
|
11
|
-
| [**get_organization_users**](OrganizationApi.md#get_organization_users) | **GET** /api/organization/users/{organization_id} |
|
12
|
-
| [**update_organization**](OrganizationApi.md#update_organization) | **PUT** /api/organization |
|
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
13
|
|
14
14
|
|
15
15
|
## create_organization
|
16
16
|
|
17
17
|
> <Organization> create_organization(create_organization_data)
|
18
18
|
|
19
|
-
|
19
|
+
Create Organization
|
20
20
|
|
21
|
-
|
21
|
+
Create Organization Create a new organization. The auth'ed user who creates the organization will be the default owner of the organization.
|
22
22
|
|
23
23
|
### Examples
|
24
24
|
|
@@ -27,11 +27,6 @@ require 'time'
|
|
27
27
|
require 'trieve_ruby_client'
|
28
28
|
# setup authorization
|
29
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
30
|
# Configure API key authorization: ApiKey
|
36
31
|
config.api_key['ApiKey'] = 'YOUR API KEY'
|
37
32
|
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
@@ -42,7 +37,7 @@ api_instance = TrieveRubyClient::OrganizationApi.new
|
|
42
37
|
create_organization_data = TrieveRubyClient::CreateOrganizationData.new({name: 'name_example'}) # CreateOrganizationData | The organization data that you want to create
|
43
38
|
|
44
39
|
begin
|
45
|
-
#
|
40
|
+
# Create Organization
|
46
41
|
result = api_instance.create_organization(create_organization_data)
|
47
42
|
p result
|
48
43
|
rescue TrieveRubyClient::ApiError => e
|
@@ -58,7 +53,7 @@ This returns an Array which contains the response data, status code and headers.
|
|
58
53
|
|
59
54
|
```ruby
|
60
55
|
begin
|
61
|
-
#
|
56
|
+
# Create Organization
|
62
57
|
data, status_code, headers = api_instance.create_organization_with_http_info(create_organization_data)
|
63
58
|
p status_code # => 2xx
|
64
59
|
p headers # => { ... }
|
@@ -80,7 +75,7 @@ end
|
|
80
75
|
|
81
76
|
### Authorization
|
82
77
|
|
83
|
-
[
|
78
|
+
[ApiKey](../README.md#ApiKey)
|
84
79
|
|
85
80
|
### HTTP request headers
|
86
81
|
|
@@ -92,9 +87,9 @@ end
|
|
92
87
|
|
93
88
|
> <Organization> delete_organization_by_id(tr_organization, organization_id)
|
94
89
|
|
95
|
-
|
90
|
+
Delete Organization
|
96
91
|
|
97
|
-
|
92
|
+
Delete Organization Delete an organization by its id. The auth'ed user must be an owner of the organization to delete it.
|
98
93
|
|
99
94
|
### Examples
|
100
95
|
|
@@ -103,11 +98,6 @@ require 'time'
|
|
103
98
|
require 'trieve_ruby_client'
|
104
99
|
# setup authorization
|
105
100
|
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
101
|
# Configure API key authorization: ApiKey
|
112
102
|
config.api_key['ApiKey'] = 'YOUR API KEY'
|
113
103
|
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
@@ -119,7 +109,7 @@ tr_organization = 'tr_organization_example' # String | The organization id to us
|
|
119
109
|
organization_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | The id of the organization you want to fetch.
|
120
110
|
|
121
111
|
begin
|
122
|
-
#
|
112
|
+
# Delete Organization
|
123
113
|
result = api_instance.delete_organization_by_id(tr_organization, organization_id)
|
124
114
|
p result
|
125
115
|
rescue TrieveRubyClient::ApiError => e
|
@@ -135,7 +125,7 @@ This returns an Array which contains the response data, status code and headers.
|
|
135
125
|
|
136
126
|
```ruby
|
137
127
|
begin
|
138
|
-
#
|
128
|
+
# Delete Organization
|
139
129
|
data, status_code, headers = api_instance.delete_organization_by_id_with_http_info(tr_organization, organization_id)
|
140
130
|
p status_code # => 2xx
|
141
131
|
p headers # => { ... }
|
@@ -158,7 +148,7 @@ end
|
|
158
148
|
|
159
149
|
### Authorization
|
160
150
|
|
161
|
-
[
|
151
|
+
[ApiKey](../README.md#ApiKey)
|
162
152
|
|
163
153
|
### HTTP request headers
|
164
154
|
|
@@ -170,9 +160,9 @@ end
|
|
170
160
|
|
171
161
|
> <Organization> get_organization_by_id(tr_organization, organization_id)
|
172
162
|
|
173
|
-
|
163
|
+
Get Organization
|
174
164
|
|
175
|
-
|
165
|
+
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
166
|
|
177
167
|
### Examples
|
178
168
|
|
@@ -181,11 +171,6 @@ require 'time'
|
|
181
171
|
require 'trieve_ruby_client'
|
182
172
|
# setup authorization
|
183
173
|
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
174
|
# Configure API key authorization: ApiKey
|
190
175
|
config.api_key['ApiKey'] = 'YOUR API KEY'
|
191
176
|
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
@@ -197,7 +182,7 @@ tr_organization = 'tr_organization_example' # String | The organization id to us
|
|
197
182
|
organization_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | The id of the organization you want to fetch.
|
198
183
|
|
199
184
|
begin
|
200
|
-
#
|
185
|
+
# Get Organization
|
201
186
|
result = api_instance.get_organization_by_id(tr_organization, organization_id)
|
202
187
|
p result
|
203
188
|
rescue TrieveRubyClient::ApiError => e
|
@@ -213,7 +198,7 @@ This returns an Array which contains the response data, status code and headers.
|
|
213
198
|
|
214
199
|
```ruby
|
215
200
|
begin
|
216
|
-
#
|
201
|
+
# Get Organization
|
217
202
|
data, status_code, headers = api_instance.get_organization_by_id_with_http_info(tr_organization, organization_id)
|
218
203
|
p status_code # => 2xx
|
219
204
|
p headers # => { ... }
|
@@ -236,7 +221,7 @@ end
|
|
236
221
|
|
237
222
|
### Authorization
|
238
223
|
|
239
|
-
[
|
224
|
+
[ApiKey](../README.md#ApiKey)
|
240
225
|
|
241
226
|
### HTTP request headers
|
242
227
|
|
@@ -248,9 +233,9 @@ end
|
|
248
233
|
|
249
234
|
> <OrganizationUsageCount> get_organization_usage(tr_organization, organization_id)
|
250
235
|
|
251
|
-
|
236
|
+
Get Organization Usage
|
252
237
|
|
253
|
-
|
238
|
+
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
239
|
|
255
240
|
### Examples
|
256
241
|
|
@@ -259,11 +244,6 @@ require 'time'
|
|
259
244
|
require 'trieve_ruby_client'
|
260
245
|
# setup authorization
|
261
246
|
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
247
|
# Configure API key authorization: ApiKey
|
268
248
|
config.api_key['ApiKey'] = 'YOUR API KEY'
|
269
249
|
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
@@ -275,7 +255,7 @@ tr_organization = 'tr_organization_example' # String | The organization id to us
|
|
275
255
|
organization_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | The id of the organization you want to fetch the usage of.
|
276
256
|
|
277
257
|
begin
|
278
|
-
#
|
258
|
+
# Get Organization Usage
|
279
259
|
result = api_instance.get_organization_usage(tr_organization, organization_id)
|
280
260
|
p result
|
281
261
|
rescue TrieveRubyClient::ApiError => e
|
@@ -291,7 +271,7 @@ This returns an Array which contains the response data, status code and headers.
|
|
291
271
|
|
292
272
|
```ruby
|
293
273
|
begin
|
294
|
-
#
|
274
|
+
# Get Organization Usage
|
295
275
|
data, status_code, headers = api_instance.get_organization_usage_with_http_info(tr_organization, organization_id)
|
296
276
|
p status_code # => 2xx
|
297
277
|
p headers # => { ... }
|
@@ -314,7 +294,7 @@ end
|
|
314
294
|
|
315
295
|
### Authorization
|
316
296
|
|
317
|
-
[
|
297
|
+
[ApiKey](../README.md#ApiKey)
|
318
298
|
|
319
299
|
### HTTP request headers
|
320
300
|
|
@@ -326,9 +306,9 @@ end
|
|
326
306
|
|
327
307
|
> <Array<SlimUser>> get_organization_users(tr_organization, organization_id)
|
328
308
|
|
329
|
-
|
309
|
+
Get Organization Users
|
330
310
|
|
331
|
-
|
311
|
+
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
312
|
|
333
313
|
### Examples
|
334
314
|
|
@@ -337,11 +317,6 @@ require 'time'
|
|
337
317
|
require 'trieve_ruby_client'
|
338
318
|
# setup authorization
|
339
319
|
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
320
|
# Configure API key authorization: ApiKey
|
346
321
|
config.api_key['ApiKey'] = 'YOUR API KEY'
|
347
322
|
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
@@ -353,7 +328,7 @@ tr_organization = 'tr_organization_example' # String | The organization id to us
|
|
353
328
|
organization_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | The id of the organization you want to fetch the users of.
|
354
329
|
|
355
330
|
begin
|
356
|
-
#
|
331
|
+
# Get Organization Users
|
357
332
|
result = api_instance.get_organization_users(tr_organization, organization_id)
|
358
333
|
p result
|
359
334
|
rescue TrieveRubyClient::ApiError => e
|
@@ -369,7 +344,7 @@ This returns an Array which contains the response data, status code and headers.
|
|
369
344
|
|
370
345
|
```ruby
|
371
346
|
begin
|
372
|
-
#
|
347
|
+
# Get Organization Users
|
373
348
|
data, status_code, headers = api_instance.get_organization_users_with_http_info(tr_organization, organization_id)
|
374
349
|
p status_code # => 2xx
|
375
350
|
p headers # => { ... }
|
@@ -392,7 +367,7 @@ end
|
|
392
367
|
|
393
368
|
### Authorization
|
394
369
|
|
395
|
-
[
|
370
|
+
[ApiKey](../README.md#ApiKey)
|
396
371
|
|
397
372
|
### HTTP request headers
|
398
373
|
|
@@ -404,9 +379,9 @@ end
|
|
404
379
|
|
405
380
|
> <Organization> update_organization(tr_organization, update_organization_data)
|
406
381
|
|
407
|
-
|
382
|
+
Update Organization
|
408
383
|
|
409
|
-
|
384
|
+
Update Organization Update an organization. Only the owner of the organization can update it.
|
410
385
|
|
411
386
|
### Examples
|
412
387
|
|
@@ -415,11 +390,6 @@ require 'time'
|
|
415
390
|
require 'trieve_ruby_client'
|
416
391
|
# setup authorization
|
417
392
|
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
393
|
# Configure API key authorization: ApiKey
|
424
394
|
config.api_key['ApiKey'] = 'YOUR API KEY'
|
425
395
|
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
@@ -431,7 +401,7 @@ tr_organization = 'tr_organization_example' # String | The organization id to us
|
|
431
401
|
update_organization_data = TrieveRubyClient::UpdateOrganizationData.new({organization_id: 'organization_id_example'}) # UpdateOrganizationData | The organization data that you want to update
|
432
402
|
|
433
403
|
begin
|
434
|
-
#
|
404
|
+
# Update Organization
|
435
405
|
result = api_instance.update_organization(tr_organization, update_organization_data)
|
436
406
|
p result
|
437
407
|
rescue TrieveRubyClient::ApiError => e
|
@@ -447,7 +417,7 @@ This returns an Array which contains the response data, status code and headers.
|
|
447
417
|
|
448
418
|
```ruby
|
449
419
|
begin
|
450
|
-
#
|
420
|
+
# Update Organization
|
451
421
|
data, status_code, headers = api_instance.update_organization_with_http_info(tr_organization, update_organization_data)
|
452
422
|
p status_code # => 2xx
|
453
423
|
p headers # => { ... }
|
@@ -470,7 +440,7 @@ end
|
|
470
440
|
|
471
441
|
### Authorization
|
472
442
|
|
473
|
-
[
|
443
|
+
[ApiKey](../README.md#ApiKey)
|
474
444
|
|
475
445
|
### HTTP request headers
|
476
446
|
|
data/docs/ReturnQueuedChunk.md
CHANGED
@@ -1,20 +1,49 @@
|
|
1
1
|
# TrieveRubyClient::ReturnQueuedChunk
|
2
2
|
|
3
|
-
##
|
3
|
+
## Class instance methods
|
4
4
|
|
5
|
-
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **chunk_metadata** | [**ChunkMetadata**](ChunkMetadata.md) | | |
|
8
|
-
| **pos_in_queue** | **Integer** | | |
|
5
|
+
### `openapi_one_of`
|
9
6
|
|
10
|
-
|
7
|
+
Returns the list of classes defined in oneOf.
|
8
|
+
|
9
|
+
#### Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'trieve_ruby_client'
|
13
|
+
|
14
|
+
TrieveRubyClient::ReturnQueuedChunk.openapi_one_of
|
15
|
+
# =>
|
16
|
+
# [
|
17
|
+
# :'BatchQueuedChunkResponse',
|
18
|
+
# :'SingleQueuedChunkResponse'
|
19
|
+
# ]
|
20
|
+
```
|
21
|
+
|
22
|
+
### build
|
23
|
+
|
24
|
+
Find the appropriate object from the `openapi_one_of` list and casts the data into it.
|
25
|
+
|
26
|
+
#### Example
|
11
27
|
|
12
28
|
```ruby
|
13
29
|
require 'trieve_ruby_client'
|
14
30
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
)
|
31
|
+
TrieveRubyClient::ReturnQueuedChunk.build(data)
|
32
|
+
# => #<BatchQueuedChunkResponse:0x00007fdd4aab02a0>
|
33
|
+
|
34
|
+
TrieveRubyClient::ReturnQueuedChunk.build(data_that_doesnt_match)
|
35
|
+
# => nil
|
19
36
|
```
|
20
37
|
|
38
|
+
#### Parameters
|
39
|
+
|
40
|
+
| Name | Type | Description |
|
41
|
+
| ---- | ---- | ----------- |
|
42
|
+
| **data** | **Mixed** | data to be matched against the list of oneOf items |
|
43
|
+
|
44
|
+
#### Return type
|
45
|
+
|
46
|
+
- `BatchQueuedChunkResponse`
|
47
|
+
- `SingleQueuedChunkResponse`
|
48
|
+
- `nil` (if no type matches)
|
49
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# TrieveRubyClient::SingleQueuedChunkResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **chunk_metadata** | [**ChunkMetadata**](ChunkMetadata.md) | | |
|
8
|
+
| **pos_in_queue** | **Integer** | The current position the last access item is in the queue | |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'trieve_ruby_client'
|
14
|
+
|
15
|
+
instance = TrieveRubyClient::SingleQueuedChunkResponse.new(
|
16
|
+
chunk_metadata: null,
|
17
|
+
pos_in_queue: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
data/docs/StripeApi.md
CHANGED
@@ -1,20 +1,22 @@
|
|
1
1
|
# TrieveRubyClient::StripeApi
|
2
2
|
|
3
|
-
All URIs are relative to *http://localhost*
|
3
|
+
All URIs are relative to *http://localhost:8090*
|
4
4
|
|
5
5
|
| Method | HTTP request | Description |
|
6
6
|
| ------ | ------------ | ----------- |
|
7
|
-
| [**cancel_subscription**](StripeApi.md#cancel_subscription) | **DELETE** /api/stripe/subscription/{subscription_id} |
|
8
|
-
| [**direct_to_payment_link**](StripeApi.md#direct_to_payment_link) | **GET** /api/stripe/payment_link/{plan_id}/{organization_id} |
|
9
|
-
| [**get_all_plans**](StripeApi.md#get_all_plans) | **GET** /api/stripe/plans |
|
10
|
-
| [**update_subscription_plan**](StripeApi.md#update_subscription_plan) | **PATCH** /api/stripe/subscription_plan/{subscription_id}/{plan_id} |
|
7
|
+
| [**cancel_subscription**](StripeApi.md#cancel_subscription) | **DELETE** /api/stripe/subscription/{subscription_id} | Cancel Subscription |
|
8
|
+
| [**direct_to_payment_link**](StripeApi.md#direct_to_payment_link) | **GET** /api/stripe/payment_link/{plan_id}/{organization_id} | Checkout |
|
9
|
+
| [**get_all_plans**](StripeApi.md#get_all_plans) | **GET** /api/stripe/plans | Get All Plans |
|
10
|
+
| [**update_subscription_plan**](StripeApi.md#update_subscription_plan) | **PATCH** /api/stripe/subscription_plan/{subscription_id}/{plan_id} | Update Subscription Plan |
|
11
11
|
|
12
12
|
|
13
13
|
## cancel_subscription
|
14
14
|
|
15
15
|
> cancel_subscription(tr_organization, subscription_id)
|
16
16
|
|
17
|
+
Cancel Subscription
|
17
18
|
|
19
|
+
Cancel Subscription Cancel a subscription by its id
|
18
20
|
|
19
21
|
### Examples
|
20
22
|
|
@@ -23,11 +25,6 @@ require 'time'
|
|
23
25
|
require 'trieve_ruby_client'
|
24
26
|
# setup authorization
|
25
27
|
TrieveRubyClient.configure do |config|
|
26
|
-
# Configure API key authorization: Cookie
|
27
|
-
config.api_key['Cookie'] = 'YOUR API KEY'
|
28
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
29
|
-
# config.api_key_prefix['Cookie'] = 'Bearer'
|
30
|
-
|
31
28
|
# Configure API key authorization: ApiKey
|
32
29
|
config.api_key['ApiKey'] = 'YOUR API KEY'
|
33
30
|
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
@@ -39,7 +36,7 @@ tr_organization = 'tr_organization_example' # String | The organization id to us
|
|
39
36
|
subscription_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | id of the subscription you want to cancel
|
40
37
|
|
41
38
|
begin
|
42
|
-
|
39
|
+
# Cancel Subscription
|
43
40
|
api_instance.cancel_subscription(tr_organization, subscription_id)
|
44
41
|
rescue TrieveRubyClient::ApiError => e
|
45
42
|
puts "Error when calling StripeApi->cancel_subscription: #{e}"
|
@@ -54,7 +51,7 @@ This returns an Array which contains the response data (`nil` in this case), sta
|
|
54
51
|
|
55
52
|
```ruby
|
56
53
|
begin
|
57
|
-
|
54
|
+
# Cancel Subscription
|
58
55
|
data, status_code, headers = api_instance.cancel_subscription_with_http_info(tr_organization, subscription_id)
|
59
56
|
p status_code # => 2xx
|
60
57
|
p headers # => { ... }
|
@@ -77,7 +74,7 @@ nil (empty response body)
|
|
77
74
|
|
78
75
|
### Authorization
|
79
76
|
|
80
|
-
[
|
77
|
+
[ApiKey](../README.md#ApiKey)
|
81
78
|
|
82
79
|
### HTTP request headers
|
83
80
|
|
@@ -89,7 +86,9 @@ nil (empty response body)
|
|
89
86
|
|
90
87
|
> direct_to_payment_link(plan_id, organization_id)
|
91
88
|
|
89
|
+
Checkout
|
92
90
|
|
91
|
+
Checkout Get a direct link to the stripe checkout page for the plan and organization
|
93
92
|
|
94
93
|
### Examples
|
95
94
|
|
@@ -102,7 +101,7 @@ plan_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | id of the plan you w
|
|
102
101
|
organization_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | id of the organization you want to subscribe to the plan
|
103
102
|
|
104
103
|
begin
|
105
|
-
|
104
|
+
# Checkout
|
106
105
|
api_instance.direct_to_payment_link(plan_id, organization_id)
|
107
106
|
rescue TrieveRubyClient::ApiError => e
|
108
107
|
puts "Error when calling StripeApi->direct_to_payment_link: #{e}"
|
@@ -117,7 +116,7 @@ This returns an Array which contains the response data (`nil` in this case), sta
|
|
117
116
|
|
118
117
|
```ruby
|
119
118
|
begin
|
120
|
-
|
119
|
+
# Checkout
|
121
120
|
data, status_code, headers = api_instance.direct_to_payment_link_with_http_info(plan_id, organization_id)
|
122
121
|
p status_code # => 2xx
|
123
122
|
p headers # => { ... }
|
@@ -152,7 +151,9 @@ No authorization required
|
|
152
151
|
|
153
152
|
> <Array<StripePlan>> get_all_plans
|
154
153
|
|
154
|
+
Get All Plans
|
155
155
|
|
156
|
+
Get All Plans Get a list of all plans
|
156
157
|
|
157
158
|
### Examples
|
158
159
|
|
@@ -163,7 +164,7 @@ require 'trieve_ruby_client'
|
|
163
164
|
api_instance = TrieveRubyClient::StripeApi.new
|
164
165
|
|
165
166
|
begin
|
166
|
-
|
167
|
+
# Get All Plans
|
167
168
|
result = api_instance.get_all_plans
|
168
169
|
p result
|
169
170
|
rescue TrieveRubyClient::ApiError => e
|
@@ -179,7 +180,7 @@ This returns an Array which contains the response data, status code and headers.
|
|
179
180
|
|
180
181
|
```ruby
|
181
182
|
begin
|
182
|
-
|
183
|
+
# Get All Plans
|
183
184
|
data, status_code, headers = api_instance.get_all_plans_with_http_info
|
184
185
|
p status_code # => 2xx
|
185
186
|
p headers # => { ... }
|
@@ -211,7 +212,9 @@ No authorization required
|
|
211
212
|
|
212
213
|
> update_subscription_plan(tr_organization, subscription_id, plan_id)
|
213
214
|
|
215
|
+
Update Subscription Plan
|
214
216
|
|
217
|
+
Update Subscription Plan Update a subscription to a new plan
|
215
218
|
|
216
219
|
### Examples
|
217
220
|
|
@@ -220,11 +223,6 @@ require 'time'
|
|
220
223
|
require 'trieve_ruby_client'
|
221
224
|
# setup authorization
|
222
225
|
TrieveRubyClient.configure do |config|
|
223
|
-
# Configure API key authorization: Cookie
|
224
|
-
config.api_key['Cookie'] = 'YOUR API KEY'
|
225
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
226
|
-
# config.api_key_prefix['Cookie'] = 'Bearer'
|
227
|
-
|
228
226
|
# Configure API key authorization: ApiKey
|
229
227
|
config.api_key['ApiKey'] = 'YOUR API KEY'
|
230
228
|
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
@@ -237,7 +235,7 @@ subscription_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | id of the su
|
|
237
235
|
plan_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | id of the plan you want to subscribe to
|
238
236
|
|
239
237
|
begin
|
240
|
-
|
238
|
+
# Update Subscription Plan
|
241
239
|
api_instance.update_subscription_plan(tr_organization, subscription_id, plan_id)
|
242
240
|
rescue TrieveRubyClient::ApiError => e
|
243
241
|
puts "Error when calling StripeApi->update_subscription_plan: #{e}"
|
@@ -252,7 +250,7 @@ This returns an Array which contains the response data (`nil` in this case), sta
|
|
252
250
|
|
253
251
|
```ruby
|
254
252
|
begin
|
255
|
-
|
253
|
+
# Update Subscription Plan
|
256
254
|
data, status_code, headers = api_instance.update_subscription_plan_with_http_info(tr_organization, subscription_id, plan_id)
|
257
255
|
p status_code # => 2xx
|
258
256
|
p headers # => { ... }
|
@@ -276,7 +274,7 @@ nil (empty response body)
|
|
276
274
|
|
277
275
|
### Authorization
|
278
276
|
|
279
|
-
[
|
277
|
+
[ApiKey](../README.md#ApiKey)
|
280
278
|
|
281
279
|
### HTTP request headers
|
282
280
|
|