@@ -192,6 +192,48 @@ paths:
192
192
- $ref : ' #/components/schemas/Errors'
193
193
- $ref : ' #/components/schemas/Error'
194
194
195
+ /hiddenstore/v2/unlock :
196
+ post :
197
+ tags :
198
+ - hiddenstore
199
+ summary : Unlock a hidden store
200
+ security :
201
+ - bearerAuth : []
202
+
203
+ requestBody :
204
+ $ref : ' #/components/requestBodies/UnlockHiddenStoreRequest'
205
+
206
+ responses :
207
+ ' 200 ' :
208
+ description : OK
209
+ content :
210
+ application/json :
211
+ schema :
212
+ $ref : ' #/components/schemas/UnlockHiddenStoreResponse'
213
+ ' 400 ' :
214
+ description : VALIDATION_ERROR
215
+ content :
216
+ application/json :
217
+ schema :
218
+ $ref : ' #/components/schemas/Errors'
219
+ ' 401 ' :
220
+ description : UNAUTHORIZED
221
+ content :
222
+ application/json :
223
+ schema :
224
+ oneOf :
225
+ - $ref : ' #/components/schemas/Errors'
226
+ - $ref : ' #/components/schemas/Error'
227
+ ' 403 ' :
228
+ description : FORBIDDEN
229
+ content :
230
+ application/json :
231
+ schema :
232
+ $ref : ' #/components/schemas/Errors'
233
+ # happens if the given user_id doesn't match with the given bearer token
234
+ # UNAUTHORIZED
235
+ # Access is denied
236
+
195
237
/auth/v2/token/refresh :
196
238
post :
197
239
tags :
@@ -348,9 +390,31 @@ paths:
348
390
tags :
349
391
- user
350
392
summary : Reset password
351
-
393
+
352
394
requestBody :
353
395
$ref : ' #/components/requestBodies/ResetPasswordRequest'
396
+
397
+ responses :
398
+ ' 200 ' :
399
+ description : ' OK'
400
+ ' 400 ' :
401
+ description : VALIDATION_ERROR
402
+ content :
403
+ application/json :
404
+ schema :
405
+ $ref : ' #/components/schemas/Errors'
406
+
407
+ /user/v1/resendWelcomeEmail :
408
+ post :
409
+ tags :
410
+ - user
411
+ summary : Resend the Welcome email
412
+ security :
413
+ - bearerAuth : []
414
+
415
+ requestBody :
416
+ $ref : ' #/components/requestBodies/ResendWelcomeEmailRequest'
417
+
354
418
responses :
355
419
' 200 ' :
356
420
description : ' OK'
@@ -360,6 +424,23 @@ paths:
360
424
application/json :
361
425
schema :
362
426
$ref : ' #/components/schemas/Errors'
427
+ ' 401 ' :
428
+ description : UNAUTHORIZED
429
+ content :
430
+ application/json :
431
+ schema :
432
+ oneOf :
433
+ - $ref : ' #/components/schemas/Errors'
434
+ - $ref : ' #/components/schemas/Error'
435
+ ' 403 ' :
436
+ description : FORBIDDEN
437
+ content :
438
+ application/json :
439
+ schema :
440
+ $ref : ' #/components/schemas/Errors'
441
+ # happens if the given user_id doesn't match with the given bearer token
442
+ # UNAUTHORIZED
443
+ # Access is denied
363
444
364
445
components :
365
446
# Authentication
@@ -432,6 +513,35 @@ components:
432
513
required :
433
514
- email
434
515
516
+ ResendWelcomeEmailRequest :
517
+ required : true
518
+ content :
519
+ application/json :
520
+ schema :
521
+ type : object
522
+ properties :
523
+ user_id :
524
+ type : string
525
+ example : " 123456"
526
+ required :
527
+ - user_id
528
+
529
+ UnlockHiddenStoreRequest :
530
+ required : true
531
+ content :
532
+ application/json :
533
+ schema :
534
+ type : object
535
+ properties :
536
+ unlock_code :
537
+ type : string
538
+ user_id :
539
+ type : string
540
+ example : " 123456"
541
+ required :
542
+ - unlock_code
543
+ - user_id
544
+
435
545
# Describing Responses
436
546
schemas :
437
547
Errors :
@@ -872,3 +982,12 @@ components:
872
982
- access_token
873
983
- refresh_token
874
984
- startup_data
985
+
986
+ UnlockHiddenStoreResponse :
987
+ type : object
988
+ properties :
989
+ state :
990
+ type : string
991
+ enum : [OK, CODE_INVALID, ALREADY_UNLOCKED]
992
+ required :
993
+ - state
0 commit comments