@opusdns/api 0.31.0 → 0.33.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.
- package/package.json +1 -1
- package/src/helpers/keys.ts +1048 -33
- package/src/helpers/requests.d.ts +411 -1
- package/src/helpers/responses.d.ts +732 -1
- package/src/helpers/schemas-arrays.d.ts +6 -6
- package/src/helpers/schemas.d.ts +118 -6
- package/src/openapi.yaml +757 -22
- package/src/schema.d.ts +874 -40
package/src/openapi.yaml
CHANGED
|
@@ -1654,7 +1654,7 @@ components:
|
|
|
1654
1654
|
$ref: '#/components/schemas/DomainSearchMeta'
|
|
1655
1655
|
results:
|
|
1656
1656
|
items:
|
|
1657
|
-
$ref: '#/components/schemas/
|
|
1657
|
+
$ref: '#/components/schemas/DomainSearchSuggestionWithPrice'
|
|
1658
1658
|
title: Results
|
|
1659
1659
|
type: array
|
|
1660
1660
|
required:
|
|
@@ -1662,7 +1662,25 @@ components:
|
|
|
1662
1662
|
- results
|
|
1663
1663
|
title: DomainSearchResponse
|
|
1664
1664
|
type: object
|
|
1665
|
-
|
|
1665
|
+
DomainSearchSuggestionPriceData:
|
|
1666
|
+
properties:
|
|
1667
|
+
amount:
|
|
1668
|
+
anyOf:
|
|
1669
|
+
- type: string
|
|
1670
|
+
- type: 'null'
|
|
1671
|
+
title: Amount
|
|
1672
|
+
currency:
|
|
1673
|
+
title: Currency
|
|
1674
|
+
type: string
|
|
1675
|
+
period:
|
|
1676
|
+
$ref: '#/components/schemas/DomainPeriod'
|
|
1677
|
+
required:
|
|
1678
|
+
- amount
|
|
1679
|
+
- currency
|
|
1680
|
+
- period
|
|
1681
|
+
title: DomainSearchSuggestionPriceData
|
|
1682
|
+
type: object
|
|
1683
|
+
DomainSearchSuggestionWithPrice:
|
|
1666
1684
|
properties:
|
|
1667
1685
|
available:
|
|
1668
1686
|
title: Available
|
|
@@ -1673,11 +1691,14 @@ components:
|
|
|
1673
1691
|
premium:
|
|
1674
1692
|
title: Premium
|
|
1675
1693
|
type: boolean
|
|
1694
|
+
price:
|
|
1695
|
+
$ref: '#/components/schemas/DomainSearchSuggestionPriceData'
|
|
1676
1696
|
required:
|
|
1677
1697
|
- domain
|
|
1678
1698
|
- available
|
|
1679
1699
|
- premium
|
|
1680
|
-
|
|
1700
|
+
- price
|
|
1701
|
+
title: DomainSearchSuggestionWithPrice
|
|
1681
1702
|
type: object
|
|
1682
1703
|
DomainSortField:
|
|
1683
1704
|
enum:
|
|
@@ -3550,6 +3571,17 @@ components:
|
|
|
3550
3571
|
- pagination
|
|
3551
3572
|
title: Pagination[User]
|
|
3552
3573
|
type: object
|
|
3574
|
+
PasswordUpdate:
|
|
3575
|
+
properties:
|
|
3576
|
+
new_password:
|
|
3577
|
+
examples:
|
|
3578
|
+
- correcthorsebatterystaple
|
|
3579
|
+
title: New Password
|
|
3580
|
+
type: string
|
|
3581
|
+
required:
|
|
3582
|
+
- new_password
|
|
3583
|
+
title: PasswordUpdate
|
|
3584
|
+
type: object
|
|
3553
3585
|
PatchOp:
|
|
3554
3586
|
enum:
|
|
3555
3587
|
- upsert
|
|
@@ -3972,6 +4004,16 @@ components:
|
|
|
3972
4004
|
title: Remove
|
|
3973
4005
|
title: SpiceDbRelationshipUpdate
|
|
3974
4006
|
type: object
|
|
4007
|
+
StartPasswordReset:
|
|
4008
|
+
properties:
|
|
4009
|
+
email:
|
|
4010
|
+
format: email
|
|
4011
|
+
title: Email
|
|
4012
|
+
type: string
|
|
4013
|
+
required:
|
|
4014
|
+
- email
|
|
4015
|
+
title: StartPasswordReset
|
|
4016
|
+
type: object
|
|
3975
4017
|
SyncOperationType:
|
|
3976
4018
|
enum:
|
|
3977
4019
|
- registration
|
|
@@ -4485,6 +4527,17 @@ components:
|
|
|
4485
4527
|
- notification
|
|
4486
4528
|
title: UserNotificationSummary
|
|
4487
4529
|
type: object
|
|
4530
|
+
UserPasswordResetEmailResponse:
|
|
4531
|
+
properties:
|
|
4532
|
+
message:
|
|
4533
|
+
default: A password reset link will be sent to this email if an account
|
|
4534
|
+
is registered under it.
|
|
4535
|
+
description: Message to the user. This message is always displayed regarding
|
|
4536
|
+
the password reset process to prevent leaking information.
|
|
4537
|
+
title: Message
|
|
4538
|
+
type: string
|
|
4539
|
+
title: UserPasswordResetEmailResponse
|
|
4540
|
+
type: object
|
|
4488
4541
|
UserStatus:
|
|
4489
4542
|
enum:
|
|
4490
4543
|
- active
|
|
@@ -4571,6 +4624,181 @@ components:
|
|
|
4571
4624
|
title: Username
|
|
4572
4625
|
title: UserUpdate
|
|
4573
4626
|
type: object
|
|
4627
|
+
UserVerificationApiResponse:
|
|
4628
|
+
properties:
|
|
4629
|
+
canceled_on:
|
|
4630
|
+
anyOf:
|
|
4631
|
+
- format: date-time
|
|
4632
|
+
type: string
|
|
4633
|
+
- type: 'null'
|
|
4634
|
+
description: The date the verification was cancelled
|
|
4635
|
+
title: Canceled On
|
|
4636
|
+
created_on:
|
|
4637
|
+
description: The date/time the entry was created on
|
|
4638
|
+
format: date-time
|
|
4639
|
+
title: Created On
|
|
4640
|
+
type: string
|
|
4641
|
+
status:
|
|
4642
|
+
$ref: '#/components/schemas/EmailVerificationStatus'
|
|
4643
|
+
default: pending
|
|
4644
|
+
description: Current status of the email verification
|
|
4645
|
+
token:
|
|
4646
|
+
description: The token to verify the email address
|
|
4647
|
+
maxLength: 256
|
|
4648
|
+
minLength: 35
|
|
4649
|
+
title: Token
|
|
4650
|
+
type: string
|
|
4651
|
+
type:
|
|
4652
|
+
$ref: '#/components/schemas/VerificationType'
|
|
4653
|
+
description: 'The type of verification: ''api'' for retrieving token via
|
|
4654
|
+
API, ''email'' for retrieving via email'
|
|
4655
|
+
updated_on:
|
|
4656
|
+
description: The date/time the entry was last updated on
|
|
4657
|
+
format: date-time
|
|
4658
|
+
title: Updated On
|
|
4659
|
+
type: string
|
|
4660
|
+
user_id:
|
|
4661
|
+
default: None
|
|
4662
|
+
description: The user's id
|
|
4663
|
+
examples:
|
|
4664
|
+
- user_01h45ytscbebyvny4gc8cr8ma2
|
|
4665
|
+
format: typeid
|
|
4666
|
+
pattern: ^user_[0-7][0-9a-hjkmnpq-tv-z]{25}$
|
|
4667
|
+
title: User Id
|
|
4668
|
+
type: string
|
|
4669
|
+
x-typeid-prefix: user
|
|
4670
|
+
user_verification_id:
|
|
4671
|
+
examples:
|
|
4672
|
+
- user_verification_01h45ytscbebyvny4gc8cr8ma2
|
|
4673
|
+
format: typeid
|
|
4674
|
+
pattern: ^user_verification_[0-7][0-9a-hjkmnpq-tv-z]{25}$
|
|
4675
|
+
title: User Verification Id
|
|
4676
|
+
type: string
|
|
4677
|
+
x-typeid-prefix: user_verification
|
|
4678
|
+
verified_on:
|
|
4679
|
+
anyOf:
|
|
4680
|
+
- format: date-time
|
|
4681
|
+
type: string
|
|
4682
|
+
- type: 'null'
|
|
4683
|
+
description: The date the verification was verified
|
|
4684
|
+
title: Verified On
|
|
4685
|
+
required:
|
|
4686
|
+
- token
|
|
4687
|
+
- type
|
|
4688
|
+
title: UserVerificationApiResponse
|
|
4689
|
+
type: object
|
|
4690
|
+
UserVerificationEmailResponse:
|
|
4691
|
+
properties:
|
|
4692
|
+
canceled_on:
|
|
4693
|
+
anyOf:
|
|
4694
|
+
- format: date-time
|
|
4695
|
+
type: string
|
|
4696
|
+
- type: 'null'
|
|
4697
|
+
description: The date the verification was cancelled
|
|
4698
|
+
title: Canceled On
|
|
4699
|
+
created_on:
|
|
4700
|
+
description: The date/time the entry was created on
|
|
4701
|
+
format: date-time
|
|
4702
|
+
title: Created On
|
|
4703
|
+
type: string
|
|
4704
|
+
status:
|
|
4705
|
+
$ref: '#/components/schemas/EmailVerificationStatus'
|
|
4706
|
+
default: pending
|
|
4707
|
+
description: Current status of the email verification
|
|
4708
|
+
type:
|
|
4709
|
+
$ref: '#/components/schemas/VerificationType'
|
|
4710
|
+
description: 'The type of verification: ''api'' for retrieving token via
|
|
4711
|
+
API, ''email'' for retrieving via email'
|
|
4712
|
+
updated_on:
|
|
4713
|
+
description: The date/time the entry was last updated on
|
|
4714
|
+
format: date-time
|
|
4715
|
+
title: Updated On
|
|
4716
|
+
type: string
|
|
4717
|
+
user_id:
|
|
4718
|
+
default: None
|
|
4719
|
+
description: The user's id
|
|
4720
|
+
examples:
|
|
4721
|
+
- user_01h45ytscbebyvny4gc8cr8ma2
|
|
4722
|
+
format: typeid
|
|
4723
|
+
pattern: ^user_[0-7][0-9a-hjkmnpq-tv-z]{25}$
|
|
4724
|
+
title: User Id
|
|
4725
|
+
type: string
|
|
4726
|
+
x-typeid-prefix: user
|
|
4727
|
+
user_verification_id:
|
|
4728
|
+
examples:
|
|
4729
|
+
- user_verification_01h45ytscbebyvny4gc8cr8ma2
|
|
4730
|
+
format: typeid
|
|
4731
|
+
pattern: ^user_verification_[0-7][0-9a-hjkmnpq-tv-z]{25}$
|
|
4732
|
+
title: User Verification Id
|
|
4733
|
+
type: string
|
|
4734
|
+
x-typeid-prefix: user_verification
|
|
4735
|
+
verified_on:
|
|
4736
|
+
anyOf:
|
|
4737
|
+
- format: date-time
|
|
4738
|
+
type: string
|
|
4739
|
+
- type: 'null'
|
|
4740
|
+
description: The date the verification was verified
|
|
4741
|
+
title: Verified On
|
|
4742
|
+
required:
|
|
4743
|
+
- type
|
|
4744
|
+
title: UserVerificationEmailResponse
|
|
4745
|
+
type: object
|
|
4746
|
+
UserVerificationResponse:
|
|
4747
|
+
properties:
|
|
4748
|
+
canceled_on:
|
|
4749
|
+
anyOf:
|
|
4750
|
+
- format: date-time
|
|
4751
|
+
type: string
|
|
4752
|
+
- type: 'null'
|
|
4753
|
+
description: The date the verification was cancelled
|
|
4754
|
+
title: Canceled On
|
|
4755
|
+
created_on:
|
|
4756
|
+
description: The date/time the entry was created on
|
|
4757
|
+
format: date-time
|
|
4758
|
+
title: Created On
|
|
4759
|
+
type: string
|
|
4760
|
+
status:
|
|
4761
|
+
$ref: '#/components/schemas/EmailVerificationStatus'
|
|
4762
|
+
default: pending
|
|
4763
|
+
description: Current status of the email verification
|
|
4764
|
+
type:
|
|
4765
|
+
$ref: '#/components/schemas/VerificationType'
|
|
4766
|
+
description: 'The type of verification: ''api'' for retrieving token via
|
|
4767
|
+
API, ''email'' for retrieving via email'
|
|
4768
|
+
updated_on:
|
|
4769
|
+
description: The date/time the entry was last updated on
|
|
4770
|
+
format: date-time
|
|
4771
|
+
title: Updated On
|
|
4772
|
+
type: string
|
|
4773
|
+
user_id:
|
|
4774
|
+
default: None
|
|
4775
|
+
description: The user's id
|
|
4776
|
+
examples:
|
|
4777
|
+
- user_01h45ytscbebyvny4gc8cr8ma2
|
|
4778
|
+
format: typeid
|
|
4779
|
+
pattern: ^user_[0-7][0-9a-hjkmnpq-tv-z]{25}$
|
|
4780
|
+
title: User Id
|
|
4781
|
+
type: string
|
|
4782
|
+
x-typeid-prefix: user
|
|
4783
|
+
user_verification_id:
|
|
4784
|
+
examples:
|
|
4785
|
+
- user_verification_01h45ytscbebyvny4gc8cr8ma2
|
|
4786
|
+
format: typeid
|
|
4787
|
+
pattern: ^user_verification_[0-7][0-9a-hjkmnpq-tv-z]{25}$
|
|
4788
|
+
title: User Verification Id
|
|
4789
|
+
type: string
|
|
4790
|
+
x-typeid-prefix: user_verification
|
|
4791
|
+
verified_on:
|
|
4792
|
+
anyOf:
|
|
4793
|
+
- format: date-time
|
|
4794
|
+
type: string
|
|
4795
|
+
- type: 'null'
|
|
4796
|
+
description: The date the verification was verified
|
|
4797
|
+
title: Verified On
|
|
4798
|
+
required:
|
|
4799
|
+
- type
|
|
4800
|
+
title: UserVerificationResponse
|
|
4801
|
+
type: object
|
|
4574
4802
|
UserWithAttributes:
|
|
4575
4803
|
properties:
|
|
4576
4804
|
created_on:
|
|
@@ -4910,7 +5138,7 @@ info:
|
|
|
4910
5138
|
'
|
|
4911
5139
|
summary: OpusDNS - your gateway to a seamless domain management experience.
|
|
4912
5140
|
title: OpusDNS API
|
|
4913
|
-
version: 2025-09-
|
|
5141
|
+
version: 2025-09-09-123217
|
|
4914
5142
|
x-logo:
|
|
4915
5143
|
altText: OpusDNS API Reference
|
|
4916
5144
|
url: https://d24lr4zqs1tgqh.cloudfront.net/c9505a20-5ae1-406c-b060-d392569caebf.jpg
|
|
@@ -8855,6 +9083,58 @@ paths:
|
|
|
8855
9083
|
summary: Create User
|
|
8856
9084
|
tags:
|
|
8857
9085
|
- user
|
|
9086
|
+
/v1/users/email/password-reset:
|
|
9087
|
+
post:
|
|
9088
|
+
operationId: create_user_password_reset_v1_users_email_password_reset_post
|
|
9089
|
+
requestBody:
|
|
9090
|
+
content:
|
|
9091
|
+
application/json:
|
|
9092
|
+
schema:
|
|
9093
|
+
$ref: '#/components/schemas/StartPasswordReset'
|
|
9094
|
+
required: true
|
|
9095
|
+
responses:
|
|
9096
|
+
'201':
|
|
9097
|
+
content:
|
|
9098
|
+
application/json:
|
|
9099
|
+
schema:
|
|
9100
|
+
$ref: '#/components/schemas/UserPasswordResetEmailResponse'
|
|
9101
|
+
description: Successful Response
|
|
9102
|
+
'422':
|
|
9103
|
+
content:
|
|
9104
|
+
application/problem+json:
|
|
9105
|
+
schema:
|
|
9106
|
+
$ref: '#/components/schemas/HTTPValidationError'
|
|
9107
|
+
description: Validation Error
|
|
9108
|
+
summary: Create User Password Reset
|
|
9109
|
+
tags:
|
|
9110
|
+
- user
|
|
9111
|
+
- user
|
|
9112
|
+
/v1/users/email/verify:
|
|
9113
|
+
get:
|
|
9114
|
+
operationId: redirect_verify_user_v1_users_email_verify_get
|
|
9115
|
+
parameters:
|
|
9116
|
+
- in: query
|
|
9117
|
+
name: token
|
|
9118
|
+
required: true
|
|
9119
|
+
schema:
|
|
9120
|
+
title: Token
|
|
9121
|
+
type: string
|
|
9122
|
+
responses:
|
|
9123
|
+
'200':
|
|
9124
|
+
content:
|
|
9125
|
+
application/json:
|
|
9126
|
+
schema: {}
|
|
9127
|
+
description: Successful Response
|
|
9128
|
+
'422':
|
|
9129
|
+
content:
|
|
9130
|
+
application/problem+json:
|
|
9131
|
+
schema:
|
|
9132
|
+
$ref: '#/components/schemas/HTTPValidationError'
|
|
9133
|
+
description: Validation Error
|
|
9134
|
+
summary: Redirect Verify User
|
|
9135
|
+
tags:
|
|
9136
|
+
- user
|
|
9137
|
+
- user
|
|
8858
9138
|
/v1/users/me:
|
|
8859
9139
|
get:
|
|
8860
9140
|
operationId: get_current_user_v1_users_me_get
|
|
@@ -8887,31 +9167,247 @@ paths:
|
|
|
8887
9167
|
summary: Get Current User
|
|
8888
9168
|
tags:
|
|
8889
9169
|
- user
|
|
8890
|
-
/v1/users/
|
|
8891
|
-
|
|
8892
|
-
operationId:
|
|
8893
|
-
|
|
8894
|
-
|
|
8895
|
-
|
|
9170
|
+
/v1/users/me/password-reset:
|
|
9171
|
+
patch:
|
|
9172
|
+
operationId: confirm_user_password_reset_me_v1_users_me_password_reset_patch
|
|
9173
|
+
requestBody:
|
|
9174
|
+
content:
|
|
9175
|
+
application/json:
|
|
9176
|
+
schema:
|
|
9177
|
+
$ref: '#/components/schemas/PasswordUpdate'
|
|
8896
9178
|
required: true
|
|
8897
|
-
schema:
|
|
8898
|
-
examples:
|
|
8899
|
-
- user_01h45ytscbebyvny4gc8cr8ma2
|
|
8900
|
-
format: typeid
|
|
8901
|
-
pattern: ^user_[0-7][0-9a-hjkmnpq-tv-z]{25}$
|
|
8902
|
-
title: User Id
|
|
8903
|
-
type: string
|
|
8904
|
-
x-typeid-prefix: user
|
|
8905
9179
|
responses:
|
|
8906
9180
|
'204':
|
|
8907
9181
|
description: Successful Response
|
|
8908
|
-
'
|
|
9182
|
+
'401':
|
|
8909
9183
|
content:
|
|
8910
9184
|
application/problem+json:
|
|
8911
9185
|
example:
|
|
8912
|
-
code:
|
|
8913
|
-
detail:
|
|
8914
|
-
status:
|
|
9186
|
+
code: ERROR_AUTHENTICATION
|
|
9187
|
+
detail: Additional error context.
|
|
9188
|
+
status: 401
|
|
9189
|
+
title: Authentication Error
|
|
9190
|
+
type: authentication
|
|
9191
|
+
schema:
|
|
9192
|
+
$ref: '#/components/schemas/Problem'
|
|
9193
|
+
description: Unauthorized
|
|
9194
|
+
'422':
|
|
9195
|
+
content:
|
|
9196
|
+
application/problem+json:
|
|
9197
|
+
schema:
|
|
9198
|
+
$ref: '#/components/schemas/HTTPValidationError'
|
|
9199
|
+
description: Validation Error
|
|
9200
|
+
security:
|
|
9201
|
+
- OAuth2PasswordBearer: []
|
|
9202
|
+
summary: Confirm User Password Reset Me
|
|
9203
|
+
tags:
|
|
9204
|
+
- user
|
|
9205
|
+
- user
|
|
9206
|
+
/v1/users/me/verification:
|
|
9207
|
+
delete:
|
|
9208
|
+
operationId: cancel_verification_me_v1_users_me_verification_delete
|
|
9209
|
+
responses:
|
|
9210
|
+
'204':
|
|
9211
|
+
description: Successful Response
|
|
9212
|
+
'401':
|
|
9213
|
+
content:
|
|
9214
|
+
application/problem+json:
|
|
9215
|
+
example:
|
|
9216
|
+
code: ERROR_AUTHENTICATION
|
|
9217
|
+
detail: Additional error context.
|
|
9218
|
+
status: 401
|
|
9219
|
+
title: Authentication Error
|
|
9220
|
+
type: authentication
|
|
9221
|
+
schema:
|
|
9222
|
+
$ref: '#/components/schemas/Problem'
|
|
9223
|
+
description: Unauthorized
|
|
9224
|
+
security:
|
|
9225
|
+
- OAuth2PasswordBearer: []
|
|
9226
|
+
summary: Cancel Verification Me
|
|
9227
|
+
tags:
|
|
9228
|
+
- user
|
|
9229
|
+
- user
|
|
9230
|
+
get:
|
|
9231
|
+
operationId: get_verification_status_me_v1_users_me_verification_get
|
|
9232
|
+
responses:
|
|
9233
|
+
'200':
|
|
9234
|
+
content:
|
|
9235
|
+
application/json:
|
|
9236
|
+
schema:
|
|
9237
|
+
$ref: '#/components/schemas/UserVerificationResponse'
|
|
9238
|
+
description: Successful Response
|
|
9239
|
+
'401':
|
|
9240
|
+
content:
|
|
9241
|
+
application/problem+json:
|
|
9242
|
+
example:
|
|
9243
|
+
code: ERROR_AUTHENTICATION
|
|
9244
|
+
detail: Additional error context.
|
|
9245
|
+
status: 401
|
|
9246
|
+
title: Authentication Error
|
|
9247
|
+
type: authentication
|
|
9248
|
+
schema:
|
|
9249
|
+
$ref: '#/components/schemas/Problem'
|
|
9250
|
+
description: Unauthorized
|
|
9251
|
+
security:
|
|
9252
|
+
- OAuth2PasswordBearer: []
|
|
9253
|
+
summary: Get Verification Status Me
|
|
9254
|
+
tags:
|
|
9255
|
+
- user
|
|
9256
|
+
- user
|
|
9257
|
+
patch:
|
|
9258
|
+
operationId: update_verification_me_v1_users_me_verification_patch
|
|
9259
|
+
parameters:
|
|
9260
|
+
- in: query
|
|
9261
|
+
name: token
|
|
9262
|
+
required: true
|
|
9263
|
+
schema:
|
|
9264
|
+
title: Token
|
|
9265
|
+
type: string
|
|
9266
|
+
responses:
|
|
9267
|
+
'204':
|
|
9268
|
+
description: Successful Response
|
|
9269
|
+
'400':
|
|
9270
|
+
content:
|
|
9271
|
+
application/problem+json:
|
|
9272
|
+
examples:
|
|
9273
|
+
User Management Error:
|
|
9274
|
+
value:
|
|
9275
|
+
code: ERROR_USER_VERIFICATION_TOKEN_INVALID
|
|
9276
|
+
detail: Invalid verification token
|
|
9277
|
+
status: 400
|
|
9278
|
+
title: User Management Error
|
|
9279
|
+
type: user-verification-token-invalid
|
|
9280
|
+
schema:
|
|
9281
|
+
$ref: '#/components/schemas/Problem'
|
|
9282
|
+
description: Bad Request
|
|
9283
|
+
'401':
|
|
9284
|
+
content:
|
|
9285
|
+
application/problem+json:
|
|
9286
|
+
example:
|
|
9287
|
+
code: ERROR_AUTHENTICATION
|
|
9288
|
+
detail: Additional error context.
|
|
9289
|
+
status: 401
|
|
9290
|
+
title: Authentication Error
|
|
9291
|
+
type: authentication
|
|
9292
|
+
schema:
|
|
9293
|
+
$ref: '#/components/schemas/Problem'
|
|
9294
|
+
description: Unauthorized
|
|
9295
|
+
'404':
|
|
9296
|
+
content:
|
|
9297
|
+
application/problem+json:
|
|
9298
|
+
example:
|
|
9299
|
+
code: ERROR_USER_VERIFICATION_NOT_FOUND
|
|
9300
|
+
detail: 'No user verification found for user: user_id=Additional error
|
|
9301
|
+
context.'
|
|
9302
|
+
status: 404
|
|
9303
|
+
title: User Management Error
|
|
9304
|
+
type: user-verification-not-found
|
|
9305
|
+
schema:
|
|
9306
|
+
$ref: '#/components/schemas/Problem'
|
|
9307
|
+
description: Not Found
|
|
9308
|
+
'422':
|
|
9309
|
+
content:
|
|
9310
|
+
application/problem+json:
|
|
9311
|
+
schema:
|
|
9312
|
+
$ref: '#/components/schemas/HTTPValidationError'
|
|
9313
|
+
description: Validation Error
|
|
9314
|
+
security:
|
|
9315
|
+
- OAuth2PasswordBearer: []
|
|
9316
|
+
summary: Update Verification Me
|
|
9317
|
+
tags:
|
|
9318
|
+
- user
|
|
9319
|
+
- user
|
|
9320
|
+
post:
|
|
9321
|
+
operationId: create_verification_me_v1_users_me_verification_post
|
|
9322
|
+
parameters:
|
|
9323
|
+
- in: query
|
|
9324
|
+
name: type
|
|
9325
|
+
required: true
|
|
9326
|
+
schema:
|
|
9327
|
+
$ref: '#/components/schemas/VerificationType'
|
|
9328
|
+
responses:
|
|
9329
|
+
'201':
|
|
9330
|
+
content:
|
|
9331
|
+
application/json:
|
|
9332
|
+
schema:
|
|
9333
|
+
anyOf:
|
|
9334
|
+
- $ref: '#/components/schemas/UserVerificationEmailResponse'
|
|
9335
|
+
- $ref: '#/components/schemas/UserVerificationApiResponse'
|
|
9336
|
+
title: Response Create Verification Me V1 Users Me Verification Post
|
|
9337
|
+
description: Successful Response
|
|
9338
|
+
'401':
|
|
9339
|
+
content:
|
|
9340
|
+
application/problem+json:
|
|
9341
|
+
example:
|
|
9342
|
+
code: ERROR_AUTHENTICATION
|
|
9343
|
+
detail: Additional error context.
|
|
9344
|
+
status: 401
|
|
9345
|
+
title: Authentication Error
|
|
9346
|
+
type: authentication
|
|
9347
|
+
schema:
|
|
9348
|
+
$ref: '#/components/schemas/Problem'
|
|
9349
|
+
description: Unauthorized
|
|
9350
|
+
'404':
|
|
9351
|
+
content:
|
|
9352
|
+
application/problem+json:
|
|
9353
|
+
example:
|
|
9354
|
+
code: ERROR_USER_NOT_FOUND
|
|
9355
|
+
detail: Additional error context.
|
|
9356
|
+
status: 404
|
|
9357
|
+
title: User Management Error
|
|
9358
|
+
type: user-not-found
|
|
9359
|
+
schema:
|
|
9360
|
+
$ref: '#/components/schemas/Problem'
|
|
9361
|
+
description: Not Found
|
|
9362
|
+
'405':
|
|
9363
|
+
content:
|
|
9364
|
+
application/problem+json:
|
|
9365
|
+
example:
|
|
9366
|
+
code: ERROR_USER_VERIFICATION_INVALID_TYPE
|
|
9367
|
+
detail: 'Invalid verification type: Additional error context.'
|
|
9368
|
+
status: 405
|
|
9369
|
+
title: User Management Error
|
|
9370
|
+
type: user-verification-type-invalid
|
|
9371
|
+
schema:
|
|
9372
|
+
$ref: '#/components/schemas/Problem'
|
|
9373
|
+
description: Method Not Allowed
|
|
9374
|
+
'422':
|
|
9375
|
+
content:
|
|
9376
|
+
application/problem+json:
|
|
9377
|
+
schema:
|
|
9378
|
+
$ref: '#/components/schemas/HTTPValidationError'
|
|
9379
|
+
description: Validation Error
|
|
9380
|
+
security:
|
|
9381
|
+
- OAuth2PasswordBearer: []
|
|
9382
|
+
summary: Create Verification Me
|
|
9383
|
+
tags:
|
|
9384
|
+
- user
|
|
9385
|
+
- user
|
|
9386
|
+
/v1/users/{user_id}:
|
|
9387
|
+
delete:
|
|
9388
|
+
operationId: delete_user_v1_users__user_id__delete
|
|
9389
|
+
parameters:
|
|
9390
|
+
- in: path
|
|
9391
|
+
name: user_id
|
|
9392
|
+
required: true
|
|
9393
|
+
schema:
|
|
9394
|
+
examples:
|
|
9395
|
+
- user_01h45ytscbebyvny4gc8cr8ma2
|
|
9396
|
+
format: typeid
|
|
9397
|
+
pattern: ^user_[0-7][0-9a-hjkmnpq-tv-z]{25}$
|
|
9398
|
+
title: User Id
|
|
9399
|
+
type: string
|
|
9400
|
+
x-typeid-prefix: user
|
|
9401
|
+
responses:
|
|
9402
|
+
'204':
|
|
9403
|
+
description: Successful Response
|
|
9404
|
+
'409':
|
|
9405
|
+
content:
|
|
9406
|
+
application/problem+json:
|
|
9407
|
+
example:
|
|
9408
|
+
code: ERROR_USER_IS_LAST_ADMIN
|
|
9409
|
+
detail: User is the last admin for the organization
|
|
9410
|
+
status: 409
|
|
8915
9411
|
title: User Management Error
|
|
8916
9412
|
type: user-is-last-admin
|
|
8917
9413
|
schema:
|
|
@@ -9112,6 +9608,245 @@ paths:
|
|
|
9112
9608
|
summary: Update User Relations
|
|
9113
9609
|
tags:
|
|
9114
9610
|
- user
|
|
9611
|
+
/v1/users/{user_id}/verification:
|
|
9612
|
+
delete:
|
|
9613
|
+
operationId: cancel_verification_v1_users__user_id__verification_delete
|
|
9614
|
+
parameters:
|
|
9615
|
+
- in: path
|
|
9616
|
+
name: user_id
|
|
9617
|
+
required: true
|
|
9618
|
+
schema:
|
|
9619
|
+
examples:
|
|
9620
|
+
- user_01h45ytscbebyvny4gc8cr8ma2
|
|
9621
|
+
format: typeid
|
|
9622
|
+
pattern: ^user_[0-7][0-9a-hjkmnpq-tv-z]{25}$
|
|
9623
|
+
title: User Id
|
|
9624
|
+
type: string
|
|
9625
|
+
x-typeid-prefix: user
|
|
9626
|
+
responses:
|
|
9627
|
+
'204':
|
|
9628
|
+
description: Successful Response
|
|
9629
|
+
'401':
|
|
9630
|
+
content:
|
|
9631
|
+
application/problem+json:
|
|
9632
|
+
example:
|
|
9633
|
+
code: ERROR_AUTHENTICATION
|
|
9634
|
+
detail: Additional error context.
|
|
9635
|
+
status: 401
|
|
9636
|
+
title: Authentication Error
|
|
9637
|
+
type: authentication
|
|
9638
|
+
schema:
|
|
9639
|
+
$ref: '#/components/schemas/Problem'
|
|
9640
|
+
description: Unauthorized
|
|
9641
|
+
'422':
|
|
9642
|
+
content:
|
|
9643
|
+
application/problem+json:
|
|
9644
|
+
schema:
|
|
9645
|
+
$ref: '#/components/schemas/HTTPValidationError'
|
|
9646
|
+
description: Validation Error
|
|
9647
|
+
security:
|
|
9648
|
+
- OAuth2PasswordBearer: []
|
|
9649
|
+
summary: Cancel Verification
|
|
9650
|
+
tags:
|
|
9651
|
+
- user
|
|
9652
|
+
- user
|
|
9653
|
+
get:
|
|
9654
|
+
operationId: get_verification_status_v1_users__user_id__verification_get
|
|
9655
|
+
parameters:
|
|
9656
|
+
- in: path
|
|
9657
|
+
name: user_id
|
|
9658
|
+
required: true
|
|
9659
|
+
schema:
|
|
9660
|
+
examples:
|
|
9661
|
+
- user_01h45ytscbebyvny4gc8cr8ma2
|
|
9662
|
+
format: typeid
|
|
9663
|
+
pattern: ^user_[0-7][0-9a-hjkmnpq-tv-z]{25}$
|
|
9664
|
+
title: User Id
|
|
9665
|
+
type: string
|
|
9666
|
+
x-typeid-prefix: user
|
|
9667
|
+
responses:
|
|
9668
|
+
'200':
|
|
9669
|
+
content:
|
|
9670
|
+
application/json:
|
|
9671
|
+
schema:
|
|
9672
|
+
$ref: '#/components/schemas/UserVerificationResponse'
|
|
9673
|
+
description: Successful Response
|
|
9674
|
+
'401':
|
|
9675
|
+
content:
|
|
9676
|
+
application/problem+json:
|
|
9677
|
+
example:
|
|
9678
|
+
code: ERROR_AUTHENTICATION
|
|
9679
|
+
detail: Additional error context.
|
|
9680
|
+
status: 401
|
|
9681
|
+
title: Authentication Error
|
|
9682
|
+
type: authentication
|
|
9683
|
+
schema:
|
|
9684
|
+
$ref: '#/components/schemas/Problem'
|
|
9685
|
+
description: Unauthorized
|
|
9686
|
+
'422':
|
|
9687
|
+
content:
|
|
9688
|
+
application/problem+json:
|
|
9689
|
+
schema:
|
|
9690
|
+
$ref: '#/components/schemas/HTTPValidationError'
|
|
9691
|
+
description: Validation Error
|
|
9692
|
+
security:
|
|
9693
|
+
- OAuth2PasswordBearer: []
|
|
9694
|
+
summary: Get Verification Status
|
|
9695
|
+
tags:
|
|
9696
|
+
- user
|
|
9697
|
+
- user
|
|
9698
|
+
patch:
|
|
9699
|
+
operationId: update_verification_v1_users__user_id__verification_patch
|
|
9700
|
+
parameters:
|
|
9701
|
+
- in: path
|
|
9702
|
+
name: user_id
|
|
9703
|
+
required: true
|
|
9704
|
+
schema:
|
|
9705
|
+
examples:
|
|
9706
|
+
- user_01h45ytscbebyvny4gc8cr8ma2
|
|
9707
|
+
format: typeid
|
|
9708
|
+
pattern: ^user_[0-7][0-9a-hjkmnpq-tv-z]{25}$
|
|
9709
|
+
title: User Id
|
|
9710
|
+
type: string
|
|
9711
|
+
x-typeid-prefix: user
|
|
9712
|
+
- in: query
|
|
9713
|
+
name: token
|
|
9714
|
+
required: true
|
|
9715
|
+
schema:
|
|
9716
|
+
title: Token
|
|
9717
|
+
type: string
|
|
9718
|
+
responses:
|
|
9719
|
+
'204':
|
|
9720
|
+
description: Successful Response
|
|
9721
|
+
'400':
|
|
9722
|
+
content:
|
|
9723
|
+
application/problem+json:
|
|
9724
|
+
examples:
|
|
9725
|
+
User Management Error:
|
|
9726
|
+
value:
|
|
9727
|
+
code: ERROR_USER_VERIFICATION_TOKEN_INVALID
|
|
9728
|
+
detail: Invalid verification token
|
|
9729
|
+
status: 400
|
|
9730
|
+
title: User Management Error
|
|
9731
|
+
type: user-verification-token-invalid
|
|
9732
|
+
schema:
|
|
9733
|
+
$ref: '#/components/schemas/Problem'
|
|
9734
|
+
description: Bad Request
|
|
9735
|
+
'401':
|
|
9736
|
+
content:
|
|
9737
|
+
application/problem+json:
|
|
9738
|
+
example:
|
|
9739
|
+
code: ERROR_AUTHENTICATION
|
|
9740
|
+
detail: Additional error context.
|
|
9741
|
+
status: 401
|
|
9742
|
+
title: Authentication Error
|
|
9743
|
+
type: authentication
|
|
9744
|
+
schema:
|
|
9745
|
+
$ref: '#/components/schemas/Problem'
|
|
9746
|
+
description: Unauthorized
|
|
9747
|
+
'404':
|
|
9748
|
+
content:
|
|
9749
|
+
application/problem+json:
|
|
9750
|
+
example:
|
|
9751
|
+
code: ERROR_USER_VERIFICATION_NOT_FOUND
|
|
9752
|
+
detail: 'No user verification found for user: user_id=Additional error
|
|
9753
|
+
context.'
|
|
9754
|
+
status: 404
|
|
9755
|
+
title: User Management Error
|
|
9756
|
+
type: user-verification-not-found
|
|
9757
|
+
schema:
|
|
9758
|
+
$ref: '#/components/schemas/Problem'
|
|
9759
|
+
description: Not Found
|
|
9760
|
+
'422':
|
|
9761
|
+
content:
|
|
9762
|
+
application/problem+json:
|
|
9763
|
+
schema:
|
|
9764
|
+
$ref: '#/components/schemas/HTTPValidationError'
|
|
9765
|
+
description: Validation Error
|
|
9766
|
+
security:
|
|
9767
|
+
- OAuth2PasswordBearer: []
|
|
9768
|
+
summary: Update Verification
|
|
9769
|
+
tags:
|
|
9770
|
+
- user
|
|
9771
|
+
- user
|
|
9772
|
+
post:
|
|
9773
|
+
operationId: create_verification_v1_users__user_id__verification_post
|
|
9774
|
+
parameters:
|
|
9775
|
+
- in: path
|
|
9776
|
+
name: user_id
|
|
9777
|
+
required: true
|
|
9778
|
+
schema:
|
|
9779
|
+
examples:
|
|
9780
|
+
- user_01h45ytscbebyvny4gc8cr8ma2
|
|
9781
|
+
format: typeid
|
|
9782
|
+
pattern: ^user_[0-7][0-9a-hjkmnpq-tv-z]{25}$
|
|
9783
|
+
title: User Id
|
|
9784
|
+
type: string
|
|
9785
|
+
x-typeid-prefix: user
|
|
9786
|
+
- in: query
|
|
9787
|
+
name: type
|
|
9788
|
+
required: true
|
|
9789
|
+
schema:
|
|
9790
|
+
$ref: '#/components/schemas/VerificationType'
|
|
9791
|
+
responses:
|
|
9792
|
+
'201':
|
|
9793
|
+
content:
|
|
9794
|
+
application/json:
|
|
9795
|
+
schema:
|
|
9796
|
+
anyOf:
|
|
9797
|
+
- $ref: '#/components/schemas/UserVerificationEmailResponse'
|
|
9798
|
+
- $ref: '#/components/schemas/UserVerificationApiResponse'
|
|
9799
|
+
title: Response Create Verification V1 Users User Id Verification
|
|
9800
|
+
Post
|
|
9801
|
+
description: Successful Response
|
|
9802
|
+
'401':
|
|
9803
|
+
content:
|
|
9804
|
+
application/problem+json:
|
|
9805
|
+
example:
|
|
9806
|
+
code: ERROR_AUTHENTICATION
|
|
9807
|
+
detail: Additional error context.
|
|
9808
|
+
status: 401
|
|
9809
|
+
title: Authentication Error
|
|
9810
|
+
type: authentication
|
|
9811
|
+
schema:
|
|
9812
|
+
$ref: '#/components/schemas/Problem'
|
|
9813
|
+
description: Unauthorized
|
|
9814
|
+
'404':
|
|
9815
|
+
content:
|
|
9816
|
+
application/problem+json:
|
|
9817
|
+
example:
|
|
9818
|
+
code: ERROR_USER_NOT_FOUND
|
|
9819
|
+
detail: Additional error context.
|
|
9820
|
+
status: 404
|
|
9821
|
+
title: User Management Error
|
|
9822
|
+
type: user-not-found
|
|
9823
|
+
schema:
|
|
9824
|
+
$ref: '#/components/schemas/Problem'
|
|
9825
|
+
description: Not Found
|
|
9826
|
+
'405':
|
|
9827
|
+
content:
|
|
9828
|
+
application/problem+json:
|
|
9829
|
+
example:
|
|
9830
|
+
code: ERROR_USER_VERIFICATION_INVALID_TYPE
|
|
9831
|
+
detail: 'Invalid verification type: Additional error context.'
|
|
9832
|
+
status: 405
|
|
9833
|
+
title: User Management Error
|
|
9834
|
+
type: user-verification-type-invalid
|
|
9835
|
+
schema:
|
|
9836
|
+
$ref: '#/components/schemas/Problem'
|
|
9837
|
+
description: Method Not Allowed
|
|
9838
|
+
'422':
|
|
9839
|
+
content:
|
|
9840
|
+
application/problem+json:
|
|
9841
|
+
schema:
|
|
9842
|
+
$ref: '#/components/schemas/HTTPValidationError'
|
|
9843
|
+
description: Validation Error
|
|
9844
|
+
security:
|
|
9845
|
+
- OAuth2PasswordBearer: []
|
|
9846
|
+
summary: Create Verification
|
|
9847
|
+
tags:
|
|
9848
|
+
- user
|
|
9849
|
+
- user
|
|
9115
9850
|
servers:
|
|
9116
9851
|
- description: Production environment
|
|
9117
9852
|
url: https://api.opusdns.com
|