@opusdns/api 0.32.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/src/openapi.yaml CHANGED
@@ -3571,6 +3571,17 @@ components:
3571
3571
  - pagination
3572
3572
  title: Pagination[User]
3573
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
3574
3585
  PatchOp:
3575
3586
  enum:
3576
3587
  - upsert
@@ -3993,6 +4004,16 @@ components:
3993
4004
  title: Remove
3994
4005
  title: SpiceDbRelationshipUpdate
3995
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
3996
4017
  SyncOperationType:
3997
4018
  enum:
3998
4019
  - registration
@@ -4506,6 +4527,17 @@ components:
4506
4527
  - notification
4507
4528
  title: UserNotificationSummary
4508
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
4509
4541
  UserStatus:
4510
4542
  enum:
4511
4543
  - active
@@ -4592,6 +4624,181 @@ components:
4592
4624
  title: Username
4593
4625
  title: UserUpdate
4594
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
4595
4802
  UserWithAttributes:
4596
4803
  properties:
4597
4804
  created_on:
@@ -4931,7 +5138,7 @@ info:
4931
5138
  '
4932
5139
  summary: OpusDNS - your gateway to a seamless domain management experience.
4933
5140
  title: OpusDNS API
4934
- version: 2025-09-05-210401
5141
+ version: 2025-09-09-123217
4935
5142
  x-logo:
4936
5143
  altText: OpusDNS API Reference
4937
5144
  url: https://d24lr4zqs1tgqh.cloudfront.net/c9505a20-5ae1-406c-b060-d392569caebf.jpg
@@ -8876,26 +9083,21 @@ paths:
8876
9083
  summary: Create User
8877
9084
  tags:
8878
9085
  - user
8879
- /v1/users/me:
8880
- get:
8881
- operationId: get_current_user_v1_users_me_get
8882
- parameters:
8883
- - in: query
8884
- name: attributes
8885
- required: false
8886
- schema:
8887
- anyOf:
8888
- - items:
8889
- type: string
8890
- type: array
8891
- - type: 'null'
8892
- title: Attributes
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
8893
9095
  responses:
8894
- '200':
9096
+ '201':
8895
9097
  content:
8896
9098
  application/json:
8897
9099
  schema:
8898
- $ref: '#/components/schemas/UserWithRelationPermissions'
9100
+ $ref: '#/components/schemas/UserPasswordResetEmailResponse'
8899
9101
  description: Successful Response
8900
9102
  '422':
8901
9103
  content:
@@ -8903,66 +9105,40 @@ paths:
8903
9105
  schema:
8904
9106
  $ref: '#/components/schemas/HTTPValidationError'
8905
9107
  description: Validation Error
8906
- security:
8907
- - OAuth2PasswordBearer: []
8908
- summary: Get Current User
9108
+ summary: Create User Password Reset
8909
9109
  tags:
8910
9110
  - user
8911
- /v1/users/{user_id}:
8912
- delete:
8913
- operationId: delete_user_v1_users__user_id__delete
9111
+ - user
9112
+ /v1/users/email/verify:
9113
+ get:
9114
+ operationId: redirect_verify_user_v1_users_email_verify_get
8914
9115
  parameters:
8915
- - in: path
8916
- name: user_id
9116
+ - in: query
9117
+ name: token
8917
9118
  required: true
8918
9119
  schema:
8919
- examples:
8920
- - user_01h45ytscbebyvny4gc8cr8ma2
8921
- format: typeid
8922
- pattern: ^user_[0-7][0-9a-hjkmnpq-tv-z]{25}$
8923
- title: User Id
9120
+ title: Token
8924
9121
  type: string
8925
- x-typeid-prefix: user
8926
9122
  responses:
8927
- '204':
8928
- description: Successful Response
8929
- '409':
9123
+ '200':
8930
9124
  content:
8931
- application/problem+json:
8932
- example:
8933
- code: ERROR_USER_IS_LAST_ADMIN
8934
- detail: User is the last admin for the organization
8935
- status: 409
8936
- title: User Management Error
8937
- type: user-is-last-admin
8938
- schema:
8939
- $ref: '#/components/schemas/Problem'
8940
- description: Conflict
9125
+ application/json:
9126
+ schema: {}
9127
+ description: Successful Response
8941
9128
  '422':
8942
9129
  content:
8943
9130
  application/problem+json:
8944
9131
  schema:
8945
9132
  $ref: '#/components/schemas/HTTPValidationError'
8946
9133
  description: Validation Error
8947
- security:
8948
- - OAuth2PasswordBearer: []
8949
- summary: Delete User
9134
+ summary: Redirect Verify User
8950
9135
  tags:
8951
9136
  - user
9137
+ - user
9138
+ /v1/users/me:
8952
9139
  get:
8953
- operationId: get_user_v1_users__user_id__get
9140
+ operationId: get_current_user_v1_users_me_get
8954
9141
  parameters:
8955
- - in: path
8956
- name: user_id
8957
- required: true
8958
- schema:
8959
- examples:
8960
- - user_01h45ytscbebyvny4gc8cr8ma2
8961
- format: typeid
8962
- pattern: ^user_[0-7][0-9a-hjkmnpq-tv-z]{25}$
8963
- title: User Id
8964
- type: string
8965
- x-typeid-prefix: user
8966
9142
  - in: query
8967
9143
  name: attributes
8968
9144
  required: false
@@ -8978,7 +9154,7 @@ paths:
8978
9154
  content:
8979
9155
  application/json:
8980
9156
  schema:
8981
- $ref: '#/components/schemas/UserWithAttributes'
9157
+ $ref: '#/components/schemas/UserWithRelationPermissions'
8982
9158
  description: Successful Response
8983
9159
  '422':
8984
9160
  content:
@@ -8988,15 +9164,314 @@ paths:
8988
9164
  description: Validation Error
8989
9165
  security:
8990
9166
  - OAuth2PasswordBearer: []
8991
- summary: Get User
9167
+ summary: Get Current User
8992
9168
  tags:
8993
9169
  - user
9170
+ /v1/users/me/password-reset:
8994
9171
  patch:
8995
- operationId: update_user_v1_users__user_id__patch
8996
- parameters:
8997
- - in: path
8998
- name: user_id
8999
- required: true
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'
9178
+ required: true
9179
+ responses:
9180
+ '204':
9181
+ description: Successful Response
9182
+ '401':
9183
+ content:
9184
+ application/problem+json:
9185
+ example:
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
9411
+ title: User Management Error
9412
+ type: user-is-last-admin
9413
+ schema:
9414
+ $ref: '#/components/schemas/Problem'
9415
+ description: Conflict
9416
+ '422':
9417
+ content:
9418
+ application/problem+json:
9419
+ schema:
9420
+ $ref: '#/components/schemas/HTTPValidationError'
9421
+ description: Validation Error
9422
+ security:
9423
+ - OAuth2PasswordBearer: []
9424
+ summary: Delete User
9425
+ tags:
9426
+ - user
9427
+ get:
9428
+ operationId: get_user_v1_users__user_id__get
9429
+ parameters:
9430
+ - in: path
9431
+ name: user_id
9432
+ required: true
9433
+ schema:
9434
+ examples:
9435
+ - user_01h45ytscbebyvny4gc8cr8ma2
9436
+ format: typeid
9437
+ pattern: ^user_[0-7][0-9a-hjkmnpq-tv-z]{25}$
9438
+ title: User Id
9439
+ type: string
9440
+ x-typeid-prefix: user
9441
+ - in: query
9442
+ name: attributes
9443
+ required: false
9444
+ schema:
9445
+ anyOf:
9446
+ - items:
9447
+ type: string
9448
+ type: array
9449
+ - type: 'null'
9450
+ title: Attributes
9451
+ responses:
9452
+ '200':
9453
+ content:
9454
+ application/json:
9455
+ schema:
9456
+ $ref: '#/components/schemas/UserWithAttributes'
9457
+ description: Successful Response
9458
+ '422':
9459
+ content:
9460
+ application/problem+json:
9461
+ schema:
9462
+ $ref: '#/components/schemas/HTTPValidationError'
9463
+ description: Validation Error
9464
+ security:
9465
+ - OAuth2PasswordBearer: []
9466
+ summary: Get User
9467
+ tags:
9468
+ - user
9469
+ patch:
9470
+ operationId: update_user_v1_users__user_id__patch
9471
+ parameters:
9472
+ - in: path
9473
+ name: user_id
9474
+ required: true
9000
9475
  schema:
9001
9476
  examples:
9002
9477
  - user_01h45ytscbebyvny4gc8cr8ma2
@@ -9133,6 +9608,245 @@ paths:
9133
9608
  summary: Update User Relations
9134
9609
  tags:
9135
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
9136
9850
  servers:
9137
9851
  - description: Production environment
9138
9852
  url: https://api.opusdns.com