@opusdns/api 0.32.0 → 0.34.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 +1375 -203
- package/src/helpers/requests.d.ts +411 -1
- package/src/helpers/responses.d.ts +736 -5
- package/src/helpers/schemas.d.ts +134 -6
- package/src/openapi.yaml +771 -14
- package/src/schema.d.ts +892 -26
package/src/openapi.yaml
CHANGED
|
@@ -23,6 +23,54 @@ components:
|
|
|
23
23
|
- max
|
|
24
24
|
title: AllowedNumberOfNameserverBase
|
|
25
25
|
type: object
|
|
26
|
+
BillingMetadata:
|
|
27
|
+
properties:
|
|
28
|
+
billing_model:
|
|
29
|
+
anyOf:
|
|
30
|
+
- type: string
|
|
31
|
+
- type: 'null'
|
|
32
|
+
description: Payment terms for the organization.
|
|
33
|
+
title: Billing Model
|
|
34
|
+
customer_number:
|
|
35
|
+
anyOf:
|
|
36
|
+
- type: integer
|
|
37
|
+
- type: 'null'
|
|
38
|
+
description: Customer account number for the organization.
|
|
39
|
+
title: Customer Number
|
|
40
|
+
title: BillingMetadata
|
|
41
|
+
type: object
|
|
42
|
+
BillingPlan:
|
|
43
|
+
properties:
|
|
44
|
+
amount:
|
|
45
|
+
default: '0.00'
|
|
46
|
+
description: Price of the billing plan.
|
|
47
|
+
title: Amount
|
|
48
|
+
type: string
|
|
49
|
+
currency:
|
|
50
|
+
anyOf:
|
|
51
|
+
- $ref: '#/components/schemas/Currency'
|
|
52
|
+
- type: 'null'
|
|
53
|
+
description: Currency of the billing plan.
|
|
54
|
+
name:
|
|
55
|
+
anyOf:
|
|
56
|
+
- type: string
|
|
57
|
+
- type: 'null'
|
|
58
|
+
description: Name of the billing plan.
|
|
59
|
+
title: Name
|
|
60
|
+
plan_id:
|
|
61
|
+
anyOf:
|
|
62
|
+
- type: string
|
|
63
|
+
- type: 'null'
|
|
64
|
+
description: Billing plan ID for the organization.
|
|
65
|
+
title: Plan Id
|
|
66
|
+
type:
|
|
67
|
+
anyOf:
|
|
68
|
+
- type: string
|
|
69
|
+
- type: 'null'
|
|
70
|
+
description: Plan type or billing interval.
|
|
71
|
+
title: Type
|
|
72
|
+
title: BillingPlan
|
|
73
|
+
type: object
|
|
26
74
|
BillingTransactionAction:
|
|
27
75
|
enum:
|
|
28
76
|
- create
|
|
@@ -3268,8 +3316,15 @@ components:
|
|
|
3268
3316
|
title: Tax Rate
|
|
3269
3317
|
title: OrganizationUpdate
|
|
3270
3318
|
type: object
|
|
3271
|
-
|
|
3319
|
+
OrganizationWithBillingData:
|
|
3272
3320
|
properties:
|
|
3321
|
+
account_balance:
|
|
3322
|
+
anyOf:
|
|
3323
|
+
- type: string
|
|
3324
|
+
- type: 'null'
|
|
3325
|
+
title: Account Balance
|
|
3326
|
+
active_plan:
|
|
3327
|
+
$ref: '#/components/schemas/BillingPlan'
|
|
3273
3328
|
address_1:
|
|
3274
3329
|
anyOf:
|
|
3275
3330
|
- minLength: 1
|
|
@@ -3289,6 +3344,8 @@ components:
|
|
|
3289
3344
|
$ref: '#/components/schemas/OrganizationAttribute'
|
|
3290
3345
|
title: Attributes
|
|
3291
3346
|
type: array
|
|
3347
|
+
billing_metadata:
|
|
3348
|
+
$ref: '#/components/schemas/BillingMetadata'
|
|
3292
3349
|
business_number:
|
|
3293
3350
|
anyOf:
|
|
3294
3351
|
- maxLength: 100
|
|
@@ -3363,9 +3420,6 @@ components:
|
|
|
3363
3420
|
- type: 'null'
|
|
3364
3421
|
description: ID of the parent organization.
|
|
3365
3422
|
title: Parent Organization Id
|
|
3366
|
-
plan:
|
|
3367
|
-
$ref: '#/components/schemas/PlanRelation'
|
|
3368
|
-
default: basic_plan
|
|
3369
3423
|
postal_code:
|
|
3370
3424
|
anyOf:
|
|
3371
3425
|
- maxLength: 20
|
|
@@ -3414,7 +3468,7 @@ components:
|
|
|
3414
3468
|
type: array
|
|
3415
3469
|
required:
|
|
3416
3470
|
- name
|
|
3417
|
-
title:
|
|
3471
|
+
title: OrganizationWithBillingData
|
|
3418
3472
|
type: object
|
|
3419
3473
|
PaginationMetadata:
|
|
3420
3474
|
properties:
|
|
@@ -3571,6 +3625,17 @@ components:
|
|
|
3571
3625
|
- pagination
|
|
3572
3626
|
title: Pagination[User]
|
|
3573
3627
|
type: object
|
|
3628
|
+
PasswordUpdate:
|
|
3629
|
+
properties:
|
|
3630
|
+
new_password:
|
|
3631
|
+
examples:
|
|
3632
|
+
- correcthorsebatterystaple
|
|
3633
|
+
title: New Password
|
|
3634
|
+
type: string
|
|
3635
|
+
required:
|
|
3636
|
+
- new_password
|
|
3637
|
+
title: PasswordUpdate
|
|
3638
|
+
type: object
|
|
3574
3639
|
PatchOp:
|
|
3575
3640
|
enum:
|
|
3576
3641
|
- upsert
|
|
@@ -3993,6 +4058,16 @@ components:
|
|
|
3993
4058
|
title: Remove
|
|
3994
4059
|
title: SpiceDbRelationshipUpdate
|
|
3995
4060
|
type: object
|
|
4061
|
+
StartPasswordReset:
|
|
4062
|
+
properties:
|
|
4063
|
+
email:
|
|
4064
|
+
format: email
|
|
4065
|
+
title: Email
|
|
4066
|
+
type: string
|
|
4067
|
+
required:
|
|
4068
|
+
- email
|
|
4069
|
+
title: StartPasswordReset
|
|
4070
|
+
type: object
|
|
3996
4071
|
SyncOperationType:
|
|
3997
4072
|
enum:
|
|
3998
4073
|
- registration
|
|
@@ -4506,6 +4581,17 @@ components:
|
|
|
4506
4581
|
- notification
|
|
4507
4582
|
title: UserNotificationSummary
|
|
4508
4583
|
type: object
|
|
4584
|
+
UserPasswordResetEmailResponse:
|
|
4585
|
+
properties:
|
|
4586
|
+
message:
|
|
4587
|
+
default: A password reset link will be sent to this email if an account
|
|
4588
|
+
is registered under it.
|
|
4589
|
+
description: Message to the user. This message is always displayed regarding
|
|
4590
|
+
the password reset process to prevent leaking information.
|
|
4591
|
+
title: Message
|
|
4592
|
+
type: string
|
|
4593
|
+
title: UserPasswordResetEmailResponse
|
|
4594
|
+
type: object
|
|
4509
4595
|
UserStatus:
|
|
4510
4596
|
enum:
|
|
4511
4597
|
- active
|
|
@@ -4592,6 +4678,181 @@ components:
|
|
|
4592
4678
|
title: Username
|
|
4593
4679
|
title: UserUpdate
|
|
4594
4680
|
type: object
|
|
4681
|
+
UserVerificationApiResponse:
|
|
4682
|
+
properties:
|
|
4683
|
+
canceled_on:
|
|
4684
|
+
anyOf:
|
|
4685
|
+
- format: date-time
|
|
4686
|
+
type: string
|
|
4687
|
+
- type: 'null'
|
|
4688
|
+
description: The date the verification was cancelled
|
|
4689
|
+
title: Canceled On
|
|
4690
|
+
created_on:
|
|
4691
|
+
description: The date/time the entry was created on
|
|
4692
|
+
format: date-time
|
|
4693
|
+
title: Created On
|
|
4694
|
+
type: string
|
|
4695
|
+
status:
|
|
4696
|
+
$ref: '#/components/schemas/EmailVerificationStatus'
|
|
4697
|
+
default: pending
|
|
4698
|
+
description: Current status of the email verification
|
|
4699
|
+
token:
|
|
4700
|
+
description: The token to verify the email address
|
|
4701
|
+
maxLength: 256
|
|
4702
|
+
minLength: 35
|
|
4703
|
+
title: Token
|
|
4704
|
+
type: string
|
|
4705
|
+
type:
|
|
4706
|
+
$ref: '#/components/schemas/VerificationType'
|
|
4707
|
+
description: 'The type of verification: ''api'' for retrieving token via
|
|
4708
|
+
API, ''email'' for retrieving via email'
|
|
4709
|
+
updated_on:
|
|
4710
|
+
description: The date/time the entry was last updated on
|
|
4711
|
+
format: date-time
|
|
4712
|
+
title: Updated On
|
|
4713
|
+
type: string
|
|
4714
|
+
user_id:
|
|
4715
|
+
default: None
|
|
4716
|
+
description: The user's id
|
|
4717
|
+
examples:
|
|
4718
|
+
- user_01h45ytscbebyvny4gc8cr8ma2
|
|
4719
|
+
format: typeid
|
|
4720
|
+
pattern: ^user_[0-7][0-9a-hjkmnpq-tv-z]{25}$
|
|
4721
|
+
title: User Id
|
|
4722
|
+
type: string
|
|
4723
|
+
x-typeid-prefix: user
|
|
4724
|
+
user_verification_id:
|
|
4725
|
+
examples:
|
|
4726
|
+
- user_verification_01h45ytscbebyvny4gc8cr8ma2
|
|
4727
|
+
format: typeid
|
|
4728
|
+
pattern: ^user_verification_[0-7][0-9a-hjkmnpq-tv-z]{25}$
|
|
4729
|
+
title: User Verification Id
|
|
4730
|
+
type: string
|
|
4731
|
+
x-typeid-prefix: user_verification
|
|
4732
|
+
verified_on:
|
|
4733
|
+
anyOf:
|
|
4734
|
+
- format: date-time
|
|
4735
|
+
type: string
|
|
4736
|
+
- type: 'null'
|
|
4737
|
+
description: The date the verification was verified
|
|
4738
|
+
title: Verified On
|
|
4739
|
+
required:
|
|
4740
|
+
- token
|
|
4741
|
+
- type
|
|
4742
|
+
title: UserVerificationApiResponse
|
|
4743
|
+
type: object
|
|
4744
|
+
UserVerificationEmailResponse:
|
|
4745
|
+
properties:
|
|
4746
|
+
canceled_on:
|
|
4747
|
+
anyOf:
|
|
4748
|
+
- format: date-time
|
|
4749
|
+
type: string
|
|
4750
|
+
- type: 'null'
|
|
4751
|
+
description: The date the verification was cancelled
|
|
4752
|
+
title: Canceled On
|
|
4753
|
+
created_on:
|
|
4754
|
+
description: The date/time the entry was created on
|
|
4755
|
+
format: date-time
|
|
4756
|
+
title: Created On
|
|
4757
|
+
type: string
|
|
4758
|
+
status:
|
|
4759
|
+
$ref: '#/components/schemas/EmailVerificationStatus'
|
|
4760
|
+
default: pending
|
|
4761
|
+
description: Current status of the email verification
|
|
4762
|
+
type:
|
|
4763
|
+
$ref: '#/components/schemas/VerificationType'
|
|
4764
|
+
description: 'The type of verification: ''api'' for retrieving token via
|
|
4765
|
+
API, ''email'' for retrieving via email'
|
|
4766
|
+
updated_on:
|
|
4767
|
+
description: The date/time the entry was last updated on
|
|
4768
|
+
format: date-time
|
|
4769
|
+
title: Updated On
|
|
4770
|
+
type: string
|
|
4771
|
+
user_id:
|
|
4772
|
+
default: None
|
|
4773
|
+
description: The user's id
|
|
4774
|
+
examples:
|
|
4775
|
+
- user_01h45ytscbebyvny4gc8cr8ma2
|
|
4776
|
+
format: typeid
|
|
4777
|
+
pattern: ^user_[0-7][0-9a-hjkmnpq-tv-z]{25}$
|
|
4778
|
+
title: User Id
|
|
4779
|
+
type: string
|
|
4780
|
+
x-typeid-prefix: user
|
|
4781
|
+
user_verification_id:
|
|
4782
|
+
examples:
|
|
4783
|
+
- user_verification_01h45ytscbebyvny4gc8cr8ma2
|
|
4784
|
+
format: typeid
|
|
4785
|
+
pattern: ^user_verification_[0-7][0-9a-hjkmnpq-tv-z]{25}$
|
|
4786
|
+
title: User Verification Id
|
|
4787
|
+
type: string
|
|
4788
|
+
x-typeid-prefix: user_verification
|
|
4789
|
+
verified_on:
|
|
4790
|
+
anyOf:
|
|
4791
|
+
- format: date-time
|
|
4792
|
+
type: string
|
|
4793
|
+
- type: 'null'
|
|
4794
|
+
description: The date the verification was verified
|
|
4795
|
+
title: Verified On
|
|
4796
|
+
required:
|
|
4797
|
+
- type
|
|
4798
|
+
title: UserVerificationEmailResponse
|
|
4799
|
+
type: object
|
|
4800
|
+
UserVerificationResponse:
|
|
4801
|
+
properties:
|
|
4802
|
+
canceled_on:
|
|
4803
|
+
anyOf:
|
|
4804
|
+
- format: date-time
|
|
4805
|
+
type: string
|
|
4806
|
+
- type: 'null'
|
|
4807
|
+
description: The date the verification was cancelled
|
|
4808
|
+
title: Canceled On
|
|
4809
|
+
created_on:
|
|
4810
|
+
description: The date/time the entry was created on
|
|
4811
|
+
format: date-time
|
|
4812
|
+
title: Created On
|
|
4813
|
+
type: string
|
|
4814
|
+
status:
|
|
4815
|
+
$ref: '#/components/schemas/EmailVerificationStatus'
|
|
4816
|
+
default: pending
|
|
4817
|
+
description: Current status of the email verification
|
|
4818
|
+
type:
|
|
4819
|
+
$ref: '#/components/schemas/VerificationType'
|
|
4820
|
+
description: 'The type of verification: ''api'' for retrieving token via
|
|
4821
|
+
API, ''email'' for retrieving via email'
|
|
4822
|
+
updated_on:
|
|
4823
|
+
description: The date/time the entry was last updated on
|
|
4824
|
+
format: date-time
|
|
4825
|
+
title: Updated On
|
|
4826
|
+
type: string
|
|
4827
|
+
user_id:
|
|
4828
|
+
default: None
|
|
4829
|
+
description: The user's id
|
|
4830
|
+
examples:
|
|
4831
|
+
- user_01h45ytscbebyvny4gc8cr8ma2
|
|
4832
|
+
format: typeid
|
|
4833
|
+
pattern: ^user_[0-7][0-9a-hjkmnpq-tv-z]{25}$
|
|
4834
|
+
title: User Id
|
|
4835
|
+
type: string
|
|
4836
|
+
x-typeid-prefix: user
|
|
4837
|
+
user_verification_id:
|
|
4838
|
+
examples:
|
|
4839
|
+
- user_verification_01h45ytscbebyvny4gc8cr8ma2
|
|
4840
|
+
format: typeid
|
|
4841
|
+
pattern: ^user_verification_[0-7][0-9a-hjkmnpq-tv-z]{25}$
|
|
4842
|
+
title: User Verification Id
|
|
4843
|
+
type: string
|
|
4844
|
+
x-typeid-prefix: user_verification
|
|
4845
|
+
verified_on:
|
|
4846
|
+
anyOf:
|
|
4847
|
+
- format: date-time
|
|
4848
|
+
type: string
|
|
4849
|
+
- type: 'null'
|
|
4850
|
+
description: The date the verification was verified
|
|
4851
|
+
title: Verified On
|
|
4852
|
+
required:
|
|
4853
|
+
- type
|
|
4854
|
+
title: UserVerificationResponse
|
|
4855
|
+
type: object
|
|
4595
4856
|
UserWithAttributes:
|
|
4596
4857
|
properties:
|
|
4597
4858
|
created_on:
|
|
@@ -4931,7 +5192,7 @@ info:
|
|
|
4931
5192
|
'
|
|
4932
5193
|
summary: OpusDNS - your gateway to a seamless domain management experience.
|
|
4933
5194
|
title: OpusDNS API
|
|
4934
|
-
version: 2025-09-
|
|
5195
|
+
version: 2025-09-10-192345
|
|
4935
5196
|
x-logo:
|
|
4936
5197
|
altText: OpusDNS API Reference
|
|
4937
5198
|
url: https://d24lr4zqs1tgqh.cloudfront.net/c9505a20-5ae1-406c-b060-d392569caebf.jpg
|
|
@@ -8614,7 +8875,7 @@ paths:
|
|
|
8614
8875
|
content:
|
|
8615
8876
|
application/json:
|
|
8616
8877
|
schema:
|
|
8617
|
-
$ref: '#/components/schemas/
|
|
8878
|
+
$ref: '#/components/schemas/OrganizationWithBillingData'
|
|
8618
8879
|
description: Successful Response
|
|
8619
8880
|
'422':
|
|
8620
8881
|
content:
|
|
@@ -8691,7 +8952,7 @@ paths:
|
|
|
8691
8952
|
content:
|
|
8692
8953
|
application/json:
|
|
8693
8954
|
schema:
|
|
8694
|
-
$ref: '#/components/schemas/
|
|
8955
|
+
$ref: '#/components/schemas/OrganizationWithBillingData'
|
|
8695
8956
|
description: Successful Response
|
|
8696
8957
|
'422':
|
|
8697
8958
|
content:
|
|
@@ -8876,6 +9137,56 @@ paths:
|
|
|
8876
9137
|
summary: Create User
|
|
8877
9138
|
tags:
|
|
8878
9139
|
- user
|
|
9140
|
+
/v1/users/email/password-reset:
|
|
9141
|
+
post:
|
|
9142
|
+
operationId: create_user_password_reset_v1_users_email_password_reset_post
|
|
9143
|
+
requestBody:
|
|
9144
|
+
content:
|
|
9145
|
+
application/json:
|
|
9146
|
+
schema:
|
|
9147
|
+
$ref: '#/components/schemas/StartPasswordReset'
|
|
9148
|
+
required: true
|
|
9149
|
+
responses:
|
|
9150
|
+
'201':
|
|
9151
|
+
content:
|
|
9152
|
+
application/json:
|
|
9153
|
+
schema:
|
|
9154
|
+
$ref: '#/components/schemas/UserPasswordResetEmailResponse'
|
|
9155
|
+
description: Successful Response
|
|
9156
|
+
'422':
|
|
9157
|
+
content:
|
|
9158
|
+
application/problem+json:
|
|
9159
|
+
schema:
|
|
9160
|
+
$ref: '#/components/schemas/HTTPValidationError'
|
|
9161
|
+
description: Validation Error
|
|
9162
|
+
summary: Create User Password Reset
|
|
9163
|
+
tags:
|
|
9164
|
+
- user
|
|
9165
|
+
/v1/users/email/verify:
|
|
9166
|
+
get:
|
|
9167
|
+
operationId: redirect_verify_user_v1_users_email_verify_get
|
|
9168
|
+
parameters:
|
|
9169
|
+
- in: query
|
|
9170
|
+
name: token
|
|
9171
|
+
required: true
|
|
9172
|
+
schema:
|
|
9173
|
+
title: Token
|
|
9174
|
+
type: string
|
|
9175
|
+
responses:
|
|
9176
|
+
'200':
|
|
9177
|
+
content:
|
|
9178
|
+
application/json:
|
|
9179
|
+
schema: {}
|
|
9180
|
+
description: Successful Response
|
|
9181
|
+
'422':
|
|
9182
|
+
content:
|
|
9183
|
+
application/problem+json:
|
|
9184
|
+
schema:
|
|
9185
|
+
$ref: '#/components/schemas/HTTPValidationError'
|
|
9186
|
+
description: Validation Error
|
|
9187
|
+
summary: Redirect Verify User
|
|
9188
|
+
tags:
|
|
9189
|
+
- user
|
|
8879
9190
|
/v1/users/me:
|
|
8880
9191
|
get:
|
|
8881
9192
|
operationId: get_current_user_v1_users_me_get
|
|
@@ -8908,12 +9219,223 @@ paths:
|
|
|
8908
9219
|
summary: Get Current User
|
|
8909
9220
|
tags:
|
|
8910
9221
|
- user
|
|
8911
|
-
/v1/users/
|
|
8912
|
-
|
|
8913
|
-
operationId:
|
|
8914
|
-
|
|
8915
|
-
|
|
8916
|
-
|
|
9222
|
+
/v1/users/me/password-reset:
|
|
9223
|
+
patch:
|
|
9224
|
+
operationId: confirm_user_password_reset_me_v1_users_me_password_reset_patch
|
|
9225
|
+
requestBody:
|
|
9226
|
+
content:
|
|
9227
|
+
application/json:
|
|
9228
|
+
schema:
|
|
9229
|
+
$ref: '#/components/schemas/PasswordUpdate'
|
|
9230
|
+
required: true
|
|
9231
|
+
responses:
|
|
9232
|
+
'204':
|
|
9233
|
+
description: Successful Response
|
|
9234
|
+
'401':
|
|
9235
|
+
content:
|
|
9236
|
+
application/problem+json:
|
|
9237
|
+
example:
|
|
9238
|
+
code: ERROR_AUTHENTICATION
|
|
9239
|
+
detail: Additional error context.
|
|
9240
|
+
status: 401
|
|
9241
|
+
title: Authentication Error
|
|
9242
|
+
type: authentication
|
|
9243
|
+
schema:
|
|
9244
|
+
$ref: '#/components/schemas/Problem'
|
|
9245
|
+
description: Unauthorized
|
|
9246
|
+
'422':
|
|
9247
|
+
content:
|
|
9248
|
+
application/problem+json:
|
|
9249
|
+
schema:
|
|
9250
|
+
$ref: '#/components/schemas/HTTPValidationError'
|
|
9251
|
+
description: Validation Error
|
|
9252
|
+
security:
|
|
9253
|
+
- OAuth2PasswordBearer: []
|
|
9254
|
+
summary: Confirm User Password Reset Me
|
|
9255
|
+
tags:
|
|
9256
|
+
- user
|
|
9257
|
+
/v1/users/me/verification:
|
|
9258
|
+
delete:
|
|
9259
|
+
operationId: cancel_verification_me_v1_users_me_verification_delete
|
|
9260
|
+
responses:
|
|
9261
|
+
'204':
|
|
9262
|
+
description: Successful Response
|
|
9263
|
+
'401':
|
|
9264
|
+
content:
|
|
9265
|
+
application/problem+json:
|
|
9266
|
+
example:
|
|
9267
|
+
code: ERROR_AUTHENTICATION
|
|
9268
|
+
detail: Additional error context.
|
|
9269
|
+
status: 401
|
|
9270
|
+
title: Authentication Error
|
|
9271
|
+
type: authentication
|
|
9272
|
+
schema:
|
|
9273
|
+
$ref: '#/components/schemas/Problem'
|
|
9274
|
+
description: Unauthorized
|
|
9275
|
+
security:
|
|
9276
|
+
- OAuth2PasswordBearer: []
|
|
9277
|
+
summary: Cancel Verification Me
|
|
9278
|
+
tags:
|
|
9279
|
+
- user
|
|
9280
|
+
get:
|
|
9281
|
+
operationId: get_verification_status_me_v1_users_me_verification_get
|
|
9282
|
+
responses:
|
|
9283
|
+
'200':
|
|
9284
|
+
content:
|
|
9285
|
+
application/json:
|
|
9286
|
+
schema:
|
|
9287
|
+
$ref: '#/components/schemas/UserVerificationResponse'
|
|
9288
|
+
description: Successful Response
|
|
9289
|
+
'401':
|
|
9290
|
+
content:
|
|
9291
|
+
application/problem+json:
|
|
9292
|
+
example:
|
|
9293
|
+
code: ERROR_AUTHENTICATION
|
|
9294
|
+
detail: Additional error context.
|
|
9295
|
+
status: 401
|
|
9296
|
+
title: Authentication Error
|
|
9297
|
+
type: authentication
|
|
9298
|
+
schema:
|
|
9299
|
+
$ref: '#/components/schemas/Problem'
|
|
9300
|
+
description: Unauthorized
|
|
9301
|
+
security:
|
|
9302
|
+
- OAuth2PasswordBearer: []
|
|
9303
|
+
summary: Get Verification Status Me
|
|
9304
|
+
tags:
|
|
9305
|
+
- user
|
|
9306
|
+
patch:
|
|
9307
|
+
operationId: update_verification_me_v1_users_me_verification_patch
|
|
9308
|
+
parameters:
|
|
9309
|
+
- in: query
|
|
9310
|
+
name: token
|
|
9311
|
+
required: true
|
|
9312
|
+
schema:
|
|
9313
|
+
title: Token
|
|
9314
|
+
type: string
|
|
9315
|
+
responses:
|
|
9316
|
+
'204':
|
|
9317
|
+
description: Successful Response
|
|
9318
|
+
'400':
|
|
9319
|
+
content:
|
|
9320
|
+
application/problem+json:
|
|
9321
|
+
examples:
|
|
9322
|
+
User Management Error:
|
|
9323
|
+
value:
|
|
9324
|
+
code: ERROR_USER_VERIFICATION_TOKEN_INVALID
|
|
9325
|
+
detail: Invalid verification token
|
|
9326
|
+
status: 400
|
|
9327
|
+
title: User Management Error
|
|
9328
|
+
type: user-verification-token-invalid
|
|
9329
|
+
schema:
|
|
9330
|
+
$ref: '#/components/schemas/Problem'
|
|
9331
|
+
description: Bad Request
|
|
9332
|
+
'401':
|
|
9333
|
+
content:
|
|
9334
|
+
application/problem+json:
|
|
9335
|
+
example:
|
|
9336
|
+
code: ERROR_AUTHENTICATION
|
|
9337
|
+
detail: Additional error context.
|
|
9338
|
+
status: 401
|
|
9339
|
+
title: Authentication Error
|
|
9340
|
+
type: authentication
|
|
9341
|
+
schema:
|
|
9342
|
+
$ref: '#/components/schemas/Problem'
|
|
9343
|
+
description: Unauthorized
|
|
9344
|
+
'404':
|
|
9345
|
+
content:
|
|
9346
|
+
application/problem+json:
|
|
9347
|
+
example:
|
|
9348
|
+
code: ERROR_USER_VERIFICATION_NOT_FOUND
|
|
9349
|
+
detail: 'No user verification found for user: user_id=Additional error
|
|
9350
|
+
context.'
|
|
9351
|
+
status: 404
|
|
9352
|
+
title: User Management Error
|
|
9353
|
+
type: user-verification-not-found
|
|
9354
|
+
schema:
|
|
9355
|
+
$ref: '#/components/schemas/Problem'
|
|
9356
|
+
description: Not Found
|
|
9357
|
+
'422':
|
|
9358
|
+
content:
|
|
9359
|
+
application/problem+json:
|
|
9360
|
+
schema:
|
|
9361
|
+
$ref: '#/components/schemas/HTTPValidationError'
|
|
9362
|
+
description: Validation Error
|
|
9363
|
+
security:
|
|
9364
|
+
- OAuth2PasswordBearer: []
|
|
9365
|
+
summary: Update Verification Me
|
|
9366
|
+
tags:
|
|
9367
|
+
- user
|
|
9368
|
+
post:
|
|
9369
|
+
operationId: create_verification_me_v1_users_me_verification_post
|
|
9370
|
+
parameters:
|
|
9371
|
+
- in: query
|
|
9372
|
+
name: type
|
|
9373
|
+
required: true
|
|
9374
|
+
schema:
|
|
9375
|
+
$ref: '#/components/schemas/VerificationType'
|
|
9376
|
+
responses:
|
|
9377
|
+
'201':
|
|
9378
|
+
content:
|
|
9379
|
+
application/json:
|
|
9380
|
+
schema:
|
|
9381
|
+
anyOf:
|
|
9382
|
+
- $ref: '#/components/schemas/UserVerificationEmailResponse'
|
|
9383
|
+
- $ref: '#/components/schemas/UserVerificationApiResponse'
|
|
9384
|
+
title: Response Create Verification Me V1 Users Me Verification Post
|
|
9385
|
+
description: Successful Response
|
|
9386
|
+
'401':
|
|
9387
|
+
content:
|
|
9388
|
+
application/problem+json:
|
|
9389
|
+
example:
|
|
9390
|
+
code: ERROR_AUTHENTICATION
|
|
9391
|
+
detail: Additional error context.
|
|
9392
|
+
status: 401
|
|
9393
|
+
title: Authentication Error
|
|
9394
|
+
type: authentication
|
|
9395
|
+
schema:
|
|
9396
|
+
$ref: '#/components/schemas/Problem'
|
|
9397
|
+
description: Unauthorized
|
|
9398
|
+
'404':
|
|
9399
|
+
content:
|
|
9400
|
+
application/problem+json:
|
|
9401
|
+
example:
|
|
9402
|
+
code: ERROR_USER_NOT_FOUND
|
|
9403
|
+
detail: Additional error context.
|
|
9404
|
+
status: 404
|
|
9405
|
+
title: User Management Error
|
|
9406
|
+
type: user-not-found
|
|
9407
|
+
schema:
|
|
9408
|
+
$ref: '#/components/schemas/Problem'
|
|
9409
|
+
description: Not Found
|
|
9410
|
+
'405':
|
|
9411
|
+
content:
|
|
9412
|
+
application/problem+json:
|
|
9413
|
+
example:
|
|
9414
|
+
code: ERROR_USER_VERIFICATION_INVALID_TYPE
|
|
9415
|
+
detail: 'Invalid verification type: Additional error context.'
|
|
9416
|
+
status: 405
|
|
9417
|
+
title: User Management Error
|
|
9418
|
+
type: user-verification-type-invalid
|
|
9419
|
+
schema:
|
|
9420
|
+
$ref: '#/components/schemas/Problem'
|
|
9421
|
+
description: Method Not Allowed
|
|
9422
|
+
'422':
|
|
9423
|
+
content:
|
|
9424
|
+
application/problem+json:
|
|
9425
|
+
schema:
|
|
9426
|
+
$ref: '#/components/schemas/HTTPValidationError'
|
|
9427
|
+
description: Validation Error
|
|
9428
|
+
security:
|
|
9429
|
+
- OAuth2PasswordBearer: []
|
|
9430
|
+
summary: Create Verification Me
|
|
9431
|
+
tags:
|
|
9432
|
+
- user
|
|
9433
|
+
/v1/users/{user_id}:
|
|
9434
|
+
delete:
|
|
9435
|
+
operationId: delete_user_v1_users__user_id__delete
|
|
9436
|
+
parameters:
|
|
9437
|
+
- in: path
|
|
9438
|
+
name: user_id
|
|
8917
9439
|
required: true
|
|
8918
9440
|
schema:
|
|
8919
9441
|
examples:
|
|
@@ -9133,6 +9655,241 @@ paths:
|
|
|
9133
9655
|
summary: Update User Relations
|
|
9134
9656
|
tags:
|
|
9135
9657
|
- user
|
|
9658
|
+
/v1/users/{user_id}/verification:
|
|
9659
|
+
delete:
|
|
9660
|
+
operationId: cancel_verification_v1_users__user_id__verification_delete
|
|
9661
|
+
parameters:
|
|
9662
|
+
- in: path
|
|
9663
|
+
name: user_id
|
|
9664
|
+
required: true
|
|
9665
|
+
schema:
|
|
9666
|
+
examples:
|
|
9667
|
+
- user_01h45ytscbebyvny4gc8cr8ma2
|
|
9668
|
+
format: typeid
|
|
9669
|
+
pattern: ^user_[0-7][0-9a-hjkmnpq-tv-z]{25}$
|
|
9670
|
+
title: User Id
|
|
9671
|
+
type: string
|
|
9672
|
+
x-typeid-prefix: user
|
|
9673
|
+
responses:
|
|
9674
|
+
'204':
|
|
9675
|
+
description: Successful Response
|
|
9676
|
+
'401':
|
|
9677
|
+
content:
|
|
9678
|
+
application/problem+json:
|
|
9679
|
+
example:
|
|
9680
|
+
code: ERROR_AUTHENTICATION
|
|
9681
|
+
detail: Additional error context.
|
|
9682
|
+
status: 401
|
|
9683
|
+
title: Authentication Error
|
|
9684
|
+
type: authentication
|
|
9685
|
+
schema:
|
|
9686
|
+
$ref: '#/components/schemas/Problem'
|
|
9687
|
+
description: Unauthorized
|
|
9688
|
+
'422':
|
|
9689
|
+
content:
|
|
9690
|
+
application/problem+json:
|
|
9691
|
+
schema:
|
|
9692
|
+
$ref: '#/components/schemas/HTTPValidationError'
|
|
9693
|
+
description: Validation Error
|
|
9694
|
+
security:
|
|
9695
|
+
- OAuth2PasswordBearer: []
|
|
9696
|
+
summary: Cancel Verification
|
|
9697
|
+
tags:
|
|
9698
|
+
- user
|
|
9699
|
+
get:
|
|
9700
|
+
operationId: get_verification_status_v1_users__user_id__verification_get
|
|
9701
|
+
parameters:
|
|
9702
|
+
- in: path
|
|
9703
|
+
name: user_id
|
|
9704
|
+
required: true
|
|
9705
|
+
schema:
|
|
9706
|
+
examples:
|
|
9707
|
+
- user_01h45ytscbebyvny4gc8cr8ma2
|
|
9708
|
+
format: typeid
|
|
9709
|
+
pattern: ^user_[0-7][0-9a-hjkmnpq-tv-z]{25}$
|
|
9710
|
+
title: User Id
|
|
9711
|
+
type: string
|
|
9712
|
+
x-typeid-prefix: user
|
|
9713
|
+
responses:
|
|
9714
|
+
'200':
|
|
9715
|
+
content:
|
|
9716
|
+
application/json:
|
|
9717
|
+
schema:
|
|
9718
|
+
$ref: '#/components/schemas/UserVerificationResponse'
|
|
9719
|
+
description: Successful Response
|
|
9720
|
+
'401':
|
|
9721
|
+
content:
|
|
9722
|
+
application/problem+json:
|
|
9723
|
+
example:
|
|
9724
|
+
code: ERROR_AUTHENTICATION
|
|
9725
|
+
detail: Additional error context.
|
|
9726
|
+
status: 401
|
|
9727
|
+
title: Authentication Error
|
|
9728
|
+
type: authentication
|
|
9729
|
+
schema:
|
|
9730
|
+
$ref: '#/components/schemas/Problem'
|
|
9731
|
+
description: Unauthorized
|
|
9732
|
+
'422':
|
|
9733
|
+
content:
|
|
9734
|
+
application/problem+json:
|
|
9735
|
+
schema:
|
|
9736
|
+
$ref: '#/components/schemas/HTTPValidationError'
|
|
9737
|
+
description: Validation Error
|
|
9738
|
+
security:
|
|
9739
|
+
- OAuth2PasswordBearer: []
|
|
9740
|
+
summary: Get Verification Status
|
|
9741
|
+
tags:
|
|
9742
|
+
- user
|
|
9743
|
+
patch:
|
|
9744
|
+
operationId: update_verification_v1_users__user_id__verification_patch
|
|
9745
|
+
parameters:
|
|
9746
|
+
- in: path
|
|
9747
|
+
name: user_id
|
|
9748
|
+
required: true
|
|
9749
|
+
schema:
|
|
9750
|
+
examples:
|
|
9751
|
+
- user_01h45ytscbebyvny4gc8cr8ma2
|
|
9752
|
+
format: typeid
|
|
9753
|
+
pattern: ^user_[0-7][0-9a-hjkmnpq-tv-z]{25}$
|
|
9754
|
+
title: User Id
|
|
9755
|
+
type: string
|
|
9756
|
+
x-typeid-prefix: user
|
|
9757
|
+
- in: query
|
|
9758
|
+
name: token
|
|
9759
|
+
required: true
|
|
9760
|
+
schema:
|
|
9761
|
+
title: Token
|
|
9762
|
+
type: string
|
|
9763
|
+
responses:
|
|
9764
|
+
'204':
|
|
9765
|
+
description: Successful Response
|
|
9766
|
+
'400':
|
|
9767
|
+
content:
|
|
9768
|
+
application/problem+json:
|
|
9769
|
+
examples:
|
|
9770
|
+
User Management Error:
|
|
9771
|
+
value:
|
|
9772
|
+
code: ERROR_USER_VERIFICATION_TOKEN_INVALID
|
|
9773
|
+
detail: Invalid verification token
|
|
9774
|
+
status: 400
|
|
9775
|
+
title: User Management Error
|
|
9776
|
+
type: user-verification-token-invalid
|
|
9777
|
+
schema:
|
|
9778
|
+
$ref: '#/components/schemas/Problem'
|
|
9779
|
+
description: Bad Request
|
|
9780
|
+
'401':
|
|
9781
|
+
content:
|
|
9782
|
+
application/problem+json:
|
|
9783
|
+
example:
|
|
9784
|
+
code: ERROR_AUTHENTICATION
|
|
9785
|
+
detail: Additional error context.
|
|
9786
|
+
status: 401
|
|
9787
|
+
title: Authentication Error
|
|
9788
|
+
type: authentication
|
|
9789
|
+
schema:
|
|
9790
|
+
$ref: '#/components/schemas/Problem'
|
|
9791
|
+
description: Unauthorized
|
|
9792
|
+
'404':
|
|
9793
|
+
content:
|
|
9794
|
+
application/problem+json:
|
|
9795
|
+
example:
|
|
9796
|
+
code: ERROR_USER_VERIFICATION_NOT_FOUND
|
|
9797
|
+
detail: 'No user verification found for user: user_id=Additional error
|
|
9798
|
+
context.'
|
|
9799
|
+
status: 404
|
|
9800
|
+
title: User Management Error
|
|
9801
|
+
type: user-verification-not-found
|
|
9802
|
+
schema:
|
|
9803
|
+
$ref: '#/components/schemas/Problem'
|
|
9804
|
+
description: Not Found
|
|
9805
|
+
'422':
|
|
9806
|
+
content:
|
|
9807
|
+
application/problem+json:
|
|
9808
|
+
schema:
|
|
9809
|
+
$ref: '#/components/schemas/HTTPValidationError'
|
|
9810
|
+
description: Validation Error
|
|
9811
|
+
security:
|
|
9812
|
+
- OAuth2PasswordBearer: []
|
|
9813
|
+
summary: Update Verification
|
|
9814
|
+
tags:
|
|
9815
|
+
- user
|
|
9816
|
+
post:
|
|
9817
|
+
operationId: create_verification_v1_users__user_id__verification_post
|
|
9818
|
+
parameters:
|
|
9819
|
+
- in: path
|
|
9820
|
+
name: user_id
|
|
9821
|
+
required: true
|
|
9822
|
+
schema:
|
|
9823
|
+
examples:
|
|
9824
|
+
- user_01h45ytscbebyvny4gc8cr8ma2
|
|
9825
|
+
format: typeid
|
|
9826
|
+
pattern: ^user_[0-7][0-9a-hjkmnpq-tv-z]{25}$
|
|
9827
|
+
title: User Id
|
|
9828
|
+
type: string
|
|
9829
|
+
x-typeid-prefix: user
|
|
9830
|
+
- in: query
|
|
9831
|
+
name: type
|
|
9832
|
+
required: true
|
|
9833
|
+
schema:
|
|
9834
|
+
$ref: '#/components/schemas/VerificationType'
|
|
9835
|
+
responses:
|
|
9836
|
+
'201':
|
|
9837
|
+
content:
|
|
9838
|
+
application/json:
|
|
9839
|
+
schema:
|
|
9840
|
+
anyOf:
|
|
9841
|
+
- $ref: '#/components/schemas/UserVerificationEmailResponse'
|
|
9842
|
+
- $ref: '#/components/schemas/UserVerificationApiResponse'
|
|
9843
|
+
title: Response Create Verification V1 Users User Id Verification
|
|
9844
|
+
Post
|
|
9845
|
+
description: Successful Response
|
|
9846
|
+
'401':
|
|
9847
|
+
content:
|
|
9848
|
+
application/problem+json:
|
|
9849
|
+
example:
|
|
9850
|
+
code: ERROR_AUTHENTICATION
|
|
9851
|
+
detail: Additional error context.
|
|
9852
|
+
status: 401
|
|
9853
|
+
title: Authentication Error
|
|
9854
|
+
type: authentication
|
|
9855
|
+
schema:
|
|
9856
|
+
$ref: '#/components/schemas/Problem'
|
|
9857
|
+
description: Unauthorized
|
|
9858
|
+
'404':
|
|
9859
|
+
content:
|
|
9860
|
+
application/problem+json:
|
|
9861
|
+
example:
|
|
9862
|
+
code: ERROR_USER_NOT_FOUND
|
|
9863
|
+
detail: Additional error context.
|
|
9864
|
+
status: 404
|
|
9865
|
+
title: User Management Error
|
|
9866
|
+
type: user-not-found
|
|
9867
|
+
schema:
|
|
9868
|
+
$ref: '#/components/schemas/Problem'
|
|
9869
|
+
description: Not Found
|
|
9870
|
+
'405':
|
|
9871
|
+
content:
|
|
9872
|
+
application/problem+json:
|
|
9873
|
+
example:
|
|
9874
|
+
code: ERROR_USER_VERIFICATION_INVALID_TYPE
|
|
9875
|
+
detail: 'Invalid verification type: Additional error context.'
|
|
9876
|
+
status: 405
|
|
9877
|
+
title: User Management Error
|
|
9878
|
+
type: user-verification-type-invalid
|
|
9879
|
+
schema:
|
|
9880
|
+
$ref: '#/components/schemas/Problem'
|
|
9881
|
+
description: Method Not Allowed
|
|
9882
|
+
'422':
|
|
9883
|
+
content:
|
|
9884
|
+
application/problem+json:
|
|
9885
|
+
schema:
|
|
9886
|
+
$ref: '#/components/schemas/HTTPValidationError'
|
|
9887
|
+
description: Validation Error
|
|
9888
|
+
security:
|
|
9889
|
+
- OAuth2PasswordBearer: []
|
|
9890
|
+
summary: Create Verification
|
|
9891
|
+
tags:
|
|
9892
|
+
- user
|
|
9136
9893
|
servers:
|
|
9137
9894
|
- description: Production environment
|
|
9138
9895
|
url: https://api.opusdns.com
|