weft-sdk 0.2.1
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 +7 -0
- data/README.md +9 -0
- data/docs/APIKeysApi.md +208 -0
- data/docs/AccountApi.md +72 -0
- data/docs/AccountDetails.md +30 -0
- data/docs/Agent.md +38 -0
- data/docs/AgentListResponse.md +20 -0
- data/docs/AgentResponse.md +18 -0
- data/docs/AgentStats.md +30 -0
- data/docs/AgentsApi.md +147 -0
- data/docs/ApiKey.md +28 -0
- data/docs/ApiKeyCreated.md +26 -0
- data/docs/ApiKeyCreatedResponse.md +18 -0
- data/docs/ApiKeyListResponse.md +18 -0
- data/docs/AuthApi.md +385 -0
- data/docs/AuthResponse.md +18 -0
- data/docs/AuthResponseData.md +22 -0
- data/docs/ConfirmRequest.md +18 -0
- data/docs/CreateApiKeyRequest.md +18 -0
- data/docs/DefaultApi.md +67 -0
- data/docs/Error.md +24 -0
- data/docs/ErrorResponse.md +18 -0
- data/docs/MeResponse.md +18 -0
- data/docs/MessageResponse.md +18 -0
- data/docs/MessageResponseData.md +18 -0
- data/docs/Pagination.md +24 -0
- data/docs/PasswordResetRequest.md +18 -0
- data/docs/PasswordUpdateRequest.md +22 -0
- data/docs/Payment.md +44 -0
- data/docs/PaymentListResponse.md +20 -0
- data/docs/PaymentResponse.md +18 -0
- data/docs/PaymentsApi.md +147 -0
- data/docs/ResendConfirmationRequest.md +18 -0
- data/docs/SignInRequest.md +20 -0
- data/docs/SignUpRequest.md +22 -0
- data/docs/User.md +22 -0
- data/lib/weft/facilitator/client.rb +89 -0
- data/lib/weft/facilitator/fee.rb +47 -0
- data/lib/weft/facilitator/middleware.rb +190 -0
- data/lib/weft/generated/api/account_api.rb +77 -0
- data/lib/weft/generated/api/agents_api.rb +148 -0
- data/lib/weft/generated/api/api_keys_api.rb +204 -0
- data/lib/weft/generated/api/auth_api.rb +418 -0
- data/lib/weft/generated/api/default_api.rb +77 -0
- data/lib/weft/generated/api/payments_api.rb +148 -0
- data/lib/weft/generated/api_client.rb +397 -0
- data/lib/weft/generated/api_error.rb +58 -0
- data/lib/weft/generated/api_model_base.rb +88 -0
- data/lib/weft/generated/configuration.rb +317 -0
- data/lib/weft/generated/models/account_details.rb +310 -0
- data/lib/weft/generated/models/agent.rb +417 -0
- data/lib/weft/generated/models/agent_list_response.rb +192 -0
- data/lib/weft/generated/models/agent_response.rb +164 -0
- data/lib/weft/generated/models/agent_stats.rb +201 -0
- data/lib/weft/generated/models/api_key.rb +244 -0
- data/lib/weft/generated/models/api_key_created.rb +252 -0
- data/lib/weft/generated/models/api_key_created_response.rb +164 -0
- data/lib/weft/generated/models/api_key_list_response.rb +166 -0
- data/lib/weft/generated/models/auth_response.rb +164 -0
- data/lib/weft/generated/models/auth_response_data.rb +199 -0
- data/lib/weft/generated/models/confirm_request.rb +164 -0
- data/lib/weft/generated/models/create_api_key_request.rb +148 -0
- data/lib/weft/generated/models/error.rb +208 -0
- data/lib/weft/generated/models/error_response.rb +164 -0
- data/lib/weft/generated/models/me_response.rb +164 -0
- data/lib/weft/generated/models/message_response.rb +164 -0
- data/lib/weft/generated/models/message_response_data.rb +164 -0
- data/lib/weft/generated/models/pagination.rb +242 -0
- data/lib/weft/generated/models/password_reset_request.rb +164 -0
- data/lib/weft/generated/models/password_update_request.rb +216 -0
- data/lib/weft/generated/models/payment.rb +437 -0
- data/lib/weft/generated/models/payment_list_response.rb +192 -0
- data/lib/weft/generated/models/payment_response.rb +164 -0
- data/lib/weft/generated/models/resend_confirmation_request.rb +164 -0
- data/lib/weft/generated/models/sign_in_request.rb +190 -0
- data/lib/weft/generated/models/sign_up_request.rb +216 -0
- data/lib/weft/generated/models/user.rb +199 -0
- data/lib/weft/generated/version.rb +15 -0
- data/lib/weft/generated.rb +4 -0
- data/lib/weft/sdk.rb +10 -0
- metadata +123 -0
data/docs/AuthApi.md
ADDED
|
@@ -0,0 +1,385 @@
|
|
|
1
|
+
# Weft::AuthApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.weftlabs.com*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**confirm_account**](AuthApi.md#confirm_account) | **POST** /api/v1/auth/confirm | Confirm an account |
|
|
8
|
+
| [**request_password_reset**](AuthApi.md#request_password_reset) | **POST** /api/v1/auth/password/reset | Request password reset |
|
|
9
|
+
| [**resend_confirmation**](AuthApi.md#resend_confirmation) | **POST** /api/v1/auth/resend-confirmation | Resend confirmation email |
|
|
10
|
+
| [**sign_in**](AuthApi.md#sign_in) | **POST** /api/v1/auth/sign_in | Sign in with email and password |
|
|
11
|
+
| [**sign_up**](AuthApi.md#sign_up) | **POST** /api/v1/auth/sign_up | Create an account |
|
|
12
|
+
| [**update_password**](AuthApi.md#update_password) | **POST** /api/v1/auth/password/update | Update password with reset token |
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## confirm_account
|
|
16
|
+
|
|
17
|
+
> <AuthResponse> confirm_account(confirm_request)
|
|
18
|
+
|
|
19
|
+
Confirm an account
|
|
20
|
+
|
|
21
|
+
### Examples
|
|
22
|
+
|
|
23
|
+
```ruby
|
|
24
|
+
require 'time'
|
|
25
|
+
require 'weft-sdk'
|
|
26
|
+
|
|
27
|
+
api_instance = Weft::AuthApi.new
|
|
28
|
+
confirm_request = Weft::ConfirmRequest.new({confirmation_token: 'confirmation_token_example'}) # ConfirmRequest |
|
|
29
|
+
|
|
30
|
+
begin
|
|
31
|
+
# Confirm an account
|
|
32
|
+
result = api_instance.confirm_account(confirm_request)
|
|
33
|
+
p result
|
|
34
|
+
rescue Weft::ApiError => e
|
|
35
|
+
puts "Error when calling AuthApi->confirm_account: #{e}"
|
|
36
|
+
end
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
#### Using the confirm_account_with_http_info variant
|
|
40
|
+
|
|
41
|
+
This returns an Array which contains the response data, status code and headers.
|
|
42
|
+
|
|
43
|
+
> <Array(<AuthResponse>, Integer, Hash)> confirm_account_with_http_info(confirm_request)
|
|
44
|
+
|
|
45
|
+
```ruby
|
|
46
|
+
begin
|
|
47
|
+
# Confirm an account
|
|
48
|
+
data, status_code, headers = api_instance.confirm_account_with_http_info(confirm_request)
|
|
49
|
+
p status_code # => 2xx
|
|
50
|
+
p headers # => { ... }
|
|
51
|
+
p data # => <AuthResponse>
|
|
52
|
+
rescue Weft::ApiError => e
|
|
53
|
+
puts "Error when calling AuthApi->confirm_account_with_http_info: #{e}"
|
|
54
|
+
end
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
### Parameters
|
|
58
|
+
|
|
59
|
+
| Name | Type | Description | Notes |
|
|
60
|
+
| ---- | ---- | ----------- | ----- |
|
|
61
|
+
| **confirm_request** | [**ConfirmRequest**](ConfirmRequest.md) | | |
|
|
62
|
+
|
|
63
|
+
### Return type
|
|
64
|
+
|
|
65
|
+
[**AuthResponse**](AuthResponse.md)
|
|
66
|
+
|
|
67
|
+
### Authorization
|
|
68
|
+
|
|
69
|
+
No authorization required
|
|
70
|
+
|
|
71
|
+
### HTTP request headers
|
|
72
|
+
|
|
73
|
+
- **Content-Type**: application/json
|
|
74
|
+
- **Accept**: application/json
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
## request_password_reset
|
|
78
|
+
|
|
79
|
+
> <MessageResponse> request_password_reset(password_reset_request)
|
|
80
|
+
|
|
81
|
+
Request password reset
|
|
82
|
+
|
|
83
|
+
### Examples
|
|
84
|
+
|
|
85
|
+
```ruby
|
|
86
|
+
require 'time'
|
|
87
|
+
require 'weft-sdk'
|
|
88
|
+
|
|
89
|
+
api_instance = Weft::AuthApi.new
|
|
90
|
+
password_reset_request = Weft::PasswordResetRequest.new({email: 'email_example'}) # PasswordResetRequest |
|
|
91
|
+
|
|
92
|
+
begin
|
|
93
|
+
# Request password reset
|
|
94
|
+
result = api_instance.request_password_reset(password_reset_request)
|
|
95
|
+
p result
|
|
96
|
+
rescue Weft::ApiError => e
|
|
97
|
+
puts "Error when calling AuthApi->request_password_reset: #{e}"
|
|
98
|
+
end
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
#### Using the request_password_reset_with_http_info variant
|
|
102
|
+
|
|
103
|
+
This returns an Array which contains the response data, status code and headers.
|
|
104
|
+
|
|
105
|
+
> <Array(<MessageResponse>, Integer, Hash)> request_password_reset_with_http_info(password_reset_request)
|
|
106
|
+
|
|
107
|
+
```ruby
|
|
108
|
+
begin
|
|
109
|
+
# Request password reset
|
|
110
|
+
data, status_code, headers = api_instance.request_password_reset_with_http_info(password_reset_request)
|
|
111
|
+
p status_code # => 2xx
|
|
112
|
+
p headers # => { ... }
|
|
113
|
+
p data # => <MessageResponse>
|
|
114
|
+
rescue Weft::ApiError => e
|
|
115
|
+
puts "Error when calling AuthApi->request_password_reset_with_http_info: #{e}"
|
|
116
|
+
end
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
### Parameters
|
|
120
|
+
|
|
121
|
+
| Name | Type | Description | Notes |
|
|
122
|
+
| ---- | ---- | ----------- | ----- |
|
|
123
|
+
| **password_reset_request** | [**PasswordResetRequest**](PasswordResetRequest.md) | | |
|
|
124
|
+
|
|
125
|
+
### Return type
|
|
126
|
+
|
|
127
|
+
[**MessageResponse**](MessageResponse.md)
|
|
128
|
+
|
|
129
|
+
### Authorization
|
|
130
|
+
|
|
131
|
+
No authorization required
|
|
132
|
+
|
|
133
|
+
### HTTP request headers
|
|
134
|
+
|
|
135
|
+
- **Content-Type**: application/json
|
|
136
|
+
- **Accept**: application/json
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
## resend_confirmation
|
|
140
|
+
|
|
141
|
+
> <MessageResponse> resend_confirmation(resend_confirmation_request)
|
|
142
|
+
|
|
143
|
+
Resend confirmation email
|
|
144
|
+
|
|
145
|
+
### Examples
|
|
146
|
+
|
|
147
|
+
```ruby
|
|
148
|
+
require 'time'
|
|
149
|
+
require 'weft-sdk'
|
|
150
|
+
|
|
151
|
+
api_instance = Weft::AuthApi.new
|
|
152
|
+
resend_confirmation_request = Weft::ResendConfirmationRequest.new({email: 'email_example'}) # ResendConfirmationRequest |
|
|
153
|
+
|
|
154
|
+
begin
|
|
155
|
+
# Resend confirmation email
|
|
156
|
+
result = api_instance.resend_confirmation(resend_confirmation_request)
|
|
157
|
+
p result
|
|
158
|
+
rescue Weft::ApiError => e
|
|
159
|
+
puts "Error when calling AuthApi->resend_confirmation: #{e}"
|
|
160
|
+
end
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
#### Using the resend_confirmation_with_http_info variant
|
|
164
|
+
|
|
165
|
+
This returns an Array which contains the response data, status code and headers.
|
|
166
|
+
|
|
167
|
+
> <Array(<MessageResponse>, Integer, Hash)> resend_confirmation_with_http_info(resend_confirmation_request)
|
|
168
|
+
|
|
169
|
+
```ruby
|
|
170
|
+
begin
|
|
171
|
+
# Resend confirmation email
|
|
172
|
+
data, status_code, headers = api_instance.resend_confirmation_with_http_info(resend_confirmation_request)
|
|
173
|
+
p status_code # => 2xx
|
|
174
|
+
p headers # => { ... }
|
|
175
|
+
p data # => <MessageResponse>
|
|
176
|
+
rescue Weft::ApiError => e
|
|
177
|
+
puts "Error when calling AuthApi->resend_confirmation_with_http_info: #{e}"
|
|
178
|
+
end
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
### Parameters
|
|
182
|
+
|
|
183
|
+
| Name | Type | Description | Notes |
|
|
184
|
+
| ---- | ---- | ----------- | ----- |
|
|
185
|
+
| **resend_confirmation_request** | [**ResendConfirmationRequest**](ResendConfirmationRequest.md) | | |
|
|
186
|
+
|
|
187
|
+
### Return type
|
|
188
|
+
|
|
189
|
+
[**MessageResponse**](MessageResponse.md)
|
|
190
|
+
|
|
191
|
+
### Authorization
|
|
192
|
+
|
|
193
|
+
No authorization required
|
|
194
|
+
|
|
195
|
+
### HTTP request headers
|
|
196
|
+
|
|
197
|
+
- **Content-Type**: application/json
|
|
198
|
+
- **Accept**: application/json
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
## sign_in
|
|
202
|
+
|
|
203
|
+
> <AuthResponse> sign_in(sign_in_request)
|
|
204
|
+
|
|
205
|
+
Sign in with email and password
|
|
206
|
+
|
|
207
|
+
### Examples
|
|
208
|
+
|
|
209
|
+
```ruby
|
|
210
|
+
require 'time'
|
|
211
|
+
require 'weft-sdk'
|
|
212
|
+
|
|
213
|
+
api_instance = Weft::AuthApi.new
|
|
214
|
+
sign_in_request = Weft::SignInRequest.new({email: 'email_example', password: 'password_example'}) # SignInRequest |
|
|
215
|
+
|
|
216
|
+
begin
|
|
217
|
+
# Sign in with email and password
|
|
218
|
+
result = api_instance.sign_in(sign_in_request)
|
|
219
|
+
p result
|
|
220
|
+
rescue Weft::ApiError => e
|
|
221
|
+
puts "Error when calling AuthApi->sign_in: #{e}"
|
|
222
|
+
end
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
#### Using the sign_in_with_http_info variant
|
|
226
|
+
|
|
227
|
+
This returns an Array which contains the response data, status code and headers.
|
|
228
|
+
|
|
229
|
+
> <Array(<AuthResponse>, Integer, Hash)> sign_in_with_http_info(sign_in_request)
|
|
230
|
+
|
|
231
|
+
```ruby
|
|
232
|
+
begin
|
|
233
|
+
# Sign in with email and password
|
|
234
|
+
data, status_code, headers = api_instance.sign_in_with_http_info(sign_in_request)
|
|
235
|
+
p status_code # => 2xx
|
|
236
|
+
p headers # => { ... }
|
|
237
|
+
p data # => <AuthResponse>
|
|
238
|
+
rescue Weft::ApiError => e
|
|
239
|
+
puts "Error when calling AuthApi->sign_in_with_http_info: #{e}"
|
|
240
|
+
end
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
### Parameters
|
|
244
|
+
|
|
245
|
+
| Name | Type | Description | Notes |
|
|
246
|
+
| ---- | ---- | ----------- | ----- |
|
|
247
|
+
| **sign_in_request** | [**SignInRequest**](SignInRequest.md) | | |
|
|
248
|
+
|
|
249
|
+
### Return type
|
|
250
|
+
|
|
251
|
+
[**AuthResponse**](AuthResponse.md)
|
|
252
|
+
|
|
253
|
+
### Authorization
|
|
254
|
+
|
|
255
|
+
No authorization required
|
|
256
|
+
|
|
257
|
+
### HTTP request headers
|
|
258
|
+
|
|
259
|
+
- **Content-Type**: application/json
|
|
260
|
+
- **Accept**: application/json
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
## sign_up
|
|
264
|
+
|
|
265
|
+
> <AuthResponse> sign_up(sign_up_request)
|
|
266
|
+
|
|
267
|
+
Create an account
|
|
268
|
+
|
|
269
|
+
### Examples
|
|
270
|
+
|
|
271
|
+
```ruby
|
|
272
|
+
require 'time'
|
|
273
|
+
require 'weft-sdk'
|
|
274
|
+
|
|
275
|
+
api_instance = Weft::AuthApi.new
|
|
276
|
+
sign_up_request = Weft::SignUpRequest.new({email: 'email_example', password: 'password_example', password_confirmation: 'password_confirmation_example'}) # SignUpRequest |
|
|
277
|
+
|
|
278
|
+
begin
|
|
279
|
+
# Create an account
|
|
280
|
+
result = api_instance.sign_up(sign_up_request)
|
|
281
|
+
p result
|
|
282
|
+
rescue Weft::ApiError => e
|
|
283
|
+
puts "Error when calling AuthApi->sign_up: #{e}"
|
|
284
|
+
end
|
|
285
|
+
```
|
|
286
|
+
|
|
287
|
+
#### Using the sign_up_with_http_info variant
|
|
288
|
+
|
|
289
|
+
This returns an Array which contains the response data, status code and headers.
|
|
290
|
+
|
|
291
|
+
> <Array(<AuthResponse>, Integer, Hash)> sign_up_with_http_info(sign_up_request)
|
|
292
|
+
|
|
293
|
+
```ruby
|
|
294
|
+
begin
|
|
295
|
+
# Create an account
|
|
296
|
+
data, status_code, headers = api_instance.sign_up_with_http_info(sign_up_request)
|
|
297
|
+
p status_code # => 2xx
|
|
298
|
+
p headers # => { ... }
|
|
299
|
+
p data # => <AuthResponse>
|
|
300
|
+
rescue Weft::ApiError => e
|
|
301
|
+
puts "Error when calling AuthApi->sign_up_with_http_info: #{e}"
|
|
302
|
+
end
|
|
303
|
+
```
|
|
304
|
+
|
|
305
|
+
### Parameters
|
|
306
|
+
|
|
307
|
+
| Name | Type | Description | Notes |
|
|
308
|
+
| ---- | ---- | ----------- | ----- |
|
|
309
|
+
| **sign_up_request** | [**SignUpRequest**](SignUpRequest.md) | | |
|
|
310
|
+
|
|
311
|
+
### Return type
|
|
312
|
+
|
|
313
|
+
[**AuthResponse**](AuthResponse.md)
|
|
314
|
+
|
|
315
|
+
### Authorization
|
|
316
|
+
|
|
317
|
+
No authorization required
|
|
318
|
+
|
|
319
|
+
### HTTP request headers
|
|
320
|
+
|
|
321
|
+
- **Content-Type**: application/json
|
|
322
|
+
- **Accept**: application/json
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
## update_password
|
|
326
|
+
|
|
327
|
+
> <MessageResponse> update_password(password_update_request)
|
|
328
|
+
|
|
329
|
+
Update password with reset token
|
|
330
|
+
|
|
331
|
+
### Examples
|
|
332
|
+
|
|
333
|
+
```ruby
|
|
334
|
+
require 'time'
|
|
335
|
+
require 'weft-sdk'
|
|
336
|
+
|
|
337
|
+
api_instance = Weft::AuthApi.new
|
|
338
|
+
password_update_request = Weft::PasswordUpdateRequest.new({reset_password_token: 'reset_password_token_example', password: 'password_example', password_confirmation: 'password_confirmation_example'}) # PasswordUpdateRequest |
|
|
339
|
+
|
|
340
|
+
begin
|
|
341
|
+
# Update password with reset token
|
|
342
|
+
result = api_instance.update_password(password_update_request)
|
|
343
|
+
p result
|
|
344
|
+
rescue Weft::ApiError => e
|
|
345
|
+
puts "Error when calling AuthApi->update_password: #{e}"
|
|
346
|
+
end
|
|
347
|
+
```
|
|
348
|
+
|
|
349
|
+
#### Using the update_password_with_http_info variant
|
|
350
|
+
|
|
351
|
+
This returns an Array which contains the response data, status code and headers.
|
|
352
|
+
|
|
353
|
+
> <Array(<MessageResponse>, Integer, Hash)> update_password_with_http_info(password_update_request)
|
|
354
|
+
|
|
355
|
+
```ruby
|
|
356
|
+
begin
|
|
357
|
+
# Update password with reset token
|
|
358
|
+
data, status_code, headers = api_instance.update_password_with_http_info(password_update_request)
|
|
359
|
+
p status_code # => 2xx
|
|
360
|
+
p headers # => { ... }
|
|
361
|
+
p data # => <MessageResponse>
|
|
362
|
+
rescue Weft::ApiError => e
|
|
363
|
+
puts "Error when calling AuthApi->update_password_with_http_info: #{e}"
|
|
364
|
+
end
|
|
365
|
+
```
|
|
366
|
+
|
|
367
|
+
### Parameters
|
|
368
|
+
|
|
369
|
+
| Name | Type | Description | Notes |
|
|
370
|
+
| ---- | ---- | ----------- | ----- |
|
|
371
|
+
| **password_update_request** | [**PasswordUpdateRequest**](PasswordUpdateRequest.md) | | |
|
|
372
|
+
|
|
373
|
+
### Return type
|
|
374
|
+
|
|
375
|
+
[**MessageResponse**](MessageResponse.md)
|
|
376
|
+
|
|
377
|
+
### Authorization
|
|
378
|
+
|
|
379
|
+
No authorization required
|
|
380
|
+
|
|
381
|
+
### HTTP request headers
|
|
382
|
+
|
|
383
|
+
- **Content-Type**: application/json
|
|
384
|
+
- **Accept**: application/json
|
|
385
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Weft::AuthResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **data** | [**AuthResponseData**](AuthResponseData.md) | | |
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'weft-sdk'
|
|
13
|
+
|
|
14
|
+
instance = Weft::AuthResponse.new(
|
|
15
|
+
data: null
|
|
16
|
+
)
|
|
17
|
+
```
|
|
18
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Weft::AuthResponseData
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **user** | [**User**](User.md) | | |
|
|
8
|
+
| **token** | **String** | | [optional] |
|
|
9
|
+
| **confirmation_required** | **Boolean** | | |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'weft-sdk'
|
|
15
|
+
|
|
16
|
+
instance = Weft::AuthResponseData.new(
|
|
17
|
+
user: null,
|
|
18
|
+
token: null,
|
|
19
|
+
confirmation_required: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Weft::ConfirmRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **confirmation_token** | **String** | | |
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'weft-sdk'
|
|
13
|
+
|
|
14
|
+
instance = Weft::ConfirmRequest.new(
|
|
15
|
+
confirmation_token: null
|
|
16
|
+
)
|
|
17
|
+
```
|
|
18
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Weft::CreateApiKeyRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **name** | **String** | A friendly name for the API key | [optional] |
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'weft-sdk'
|
|
13
|
+
|
|
14
|
+
instance = Weft::CreateApiKeyRequest.new(
|
|
15
|
+
name: null
|
|
16
|
+
)
|
|
17
|
+
```
|
|
18
|
+
|
data/docs/DefaultApi.md
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# Weft::DefaultApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.weftlabs.com*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**get_api_docs**](DefaultApi.md#get_api_docs) | **GET** /api/v1/docs | Fetch OpenAPI spec |
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
## get_api_docs
|
|
11
|
+
|
|
12
|
+
> String get_api_docs
|
|
13
|
+
|
|
14
|
+
Fetch OpenAPI spec
|
|
15
|
+
|
|
16
|
+
### Examples
|
|
17
|
+
|
|
18
|
+
```ruby
|
|
19
|
+
require 'time'
|
|
20
|
+
require 'weft-sdk'
|
|
21
|
+
|
|
22
|
+
api_instance = Weft::DefaultApi.new
|
|
23
|
+
|
|
24
|
+
begin
|
|
25
|
+
# Fetch OpenAPI spec
|
|
26
|
+
result = api_instance.get_api_docs
|
|
27
|
+
p result
|
|
28
|
+
rescue Weft::ApiError => e
|
|
29
|
+
puts "Error when calling DefaultApi->get_api_docs: #{e}"
|
|
30
|
+
end
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
#### Using the get_api_docs_with_http_info variant
|
|
34
|
+
|
|
35
|
+
This returns an Array which contains the response data, status code and headers.
|
|
36
|
+
|
|
37
|
+
> <Array(String, Integer, Hash)> get_api_docs_with_http_info
|
|
38
|
+
|
|
39
|
+
```ruby
|
|
40
|
+
begin
|
|
41
|
+
# Fetch OpenAPI spec
|
|
42
|
+
data, status_code, headers = api_instance.get_api_docs_with_http_info
|
|
43
|
+
p status_code # => 2xx
|
|
44
|
+
p headers # => { ... }
|
|
45
|
+
p data # => String
|
|
46
|
+
rescue Weft::ApiError => e
|
|
47
|
+
puts "Error when calling DefaultApi->get_api_docs_with_http_info: #{e}"
|
|
48
|
+
end
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### Parameters
|
|
52
|
+
|
|
53
|
+
This endpoint does not need any parameter.
|
|
54
|
+
|
|
55
|
+
### Return type
|
|
56
|
+
|
|
57
|
+
**String**
|
|
58
|
+
|
|
59
|
+
### Authorization
|
|
60
|
+
|
|
61
|
+
No authorization required
|
|
62
|
+
|
|
63
|
+
### HTTP request headers
|
|
64
|
+
|
|
65
|
+
- **Content-Type**: Not defined
|
|
66
|
+
- **Accept**: application/yaml
|
|
67
|
+
|
data/docs/Error.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Weft::Error
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **code** | **String** | | |
|
|
8
|
+
| **message** | **String** | | |
|
|
9
|
+
| **details** | **Object** | | [optional] |
|
|
10
|
+
| **request_id** | **String** | | [optional] |
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```ruby
|
|
15
|
+
require 'weft-sdk'
|
|
16
|
+
|
|
17
|
+
instance = Weft::Error.new(
|
|
18
|
+
code: null,
|
|
19
|
+
message: null,
|
|
20
|
+
details: null,
|
|
21
|
+
request_id: null
|
|
22
|
+
)
|
|
23
|
+
```
|
|
24
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Weft::ErrorResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **error** | [**Error**](Error.md) | | |
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'weft-sdk'
|
|
13
|
+
|
|
14
|
+
instance = Weft::ErrorResponse.new(
|
|
15
|
+
error: null
|
|
16
|
+
)
|
|
17
|
+
```
|
|
18
|
+
|
data/docs/MeResponse.md
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Weft::MeResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **data** | [**AccountDetails**](AccountDetails.md) | | |
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'weft-sdk'
|
|
13
|
+
|
|
14
|
+
instance = Weft::MeResponse.new(
|
|
15
|
+
data: null
|
|
16
|
+
)
|
|
17
|
+
```
|
|
18
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Weft::MessageResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **data** | [**MessageResponseData**](MessageResponseData.md) | | |
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'weft-sdk'
|
|
13
|
+
|
|
14
|
+
instance = Weft::MessageResponse.new(
|
|
15
|
+
data: null
|
|
16
|
+
)
|
|
17
|
+
```
|
|
18
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Weft::MessageResponseData
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **message** | **String** | | |
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'weft-sdk'
|
|
13
|
+
|
|
14
|
+
instance = Weft::MessageResponseData.new(
|
|
15
|
+
message: null
|
|
16
|
+
)
|
|
17
|
+
```
|
|
18
|
+
|
data/docs/Pagination.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Weft::Pagination
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **page** | **Integer** | | |
|
|
8
|
+
| **per_page** | **Integer** | | |
|
|
9
|
+
| **total** | **Integer** | | |
|
|
10
|
+
| **total_pages** | **Integer** | | |
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```ruby
|
|
15
|
+
require 'weft-sdk'
|
|
16
|
+
|
|
17
|
+
instance = Weft::Pagination.new(
|
|
18
|
+
page: null,
|
|
19
|
+
per_page: null,
|
|
20
|
+
total: null,
|
|
21
|
+
total_pages: null
|
|
22
|
+
)
|
|
23
|
+
```
|
|
24
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Weft::PasswordResetRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **email** | **String** | | |
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'weft-sdk'
|
|
13
|
+
|
|
14
|
+
instance = Weft::PasswordResetRequest.new(
|
|
15
|
+
email: null
|
|
16
|
+
)
|
|
17
|
+
```
|
|
18
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Weft::PasswordUpdateRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **reset_password_token** | **String** | | |
|
|
8
|
+
| **password** | **String** | | |
|
|
9
|
+
| **password_confirmation** | **String** | | |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'weft-sdk'
|
|
15
|
+
|
|
16
|
+
instance = Weft::PasswordUpdateRequest.new(
|
|
17
|
+
reset_password_token: null,
|
|
18
|
+
password: null,
|
|
19
|
+
password_confirmation: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|