@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/src/schema.d.ts CHANGED
@@ -1042,6 +1042,40 @@ export interface paths {
1042
1042
  patch?: never;
1043
1043
  trace?: never;
1044
1044
  };
1045
+ "/v1/users/email/password-reset": {
1046
+ parameters: {
1047
+ query?: never;
1048
+ header?: never;
1049
+ path?: never;
1050
+ cookie?: never;
1051
+ };
1052
+ get?: never;
1053
+ put?: never;
1054
+ /** Create User Password Reset */
1055
+ post: operations["create_user_password_reset_v1_users_email_password_reset_post"];
1056
+ delete?: never;
1057
+ options?: never;
1058
+ head?: never;
1059
+ patch?: never;
1060
+ trace?: never;
1061
+ };
1062
+ "/v1/users/email/verify": {
1063
+ parameters: {
1064
+ query?: never;
1065
+ header?: never;
1066
+ path?: never;
1067
+ cookie?: never;
1068
+ };
1069
+ /** Redirect Verify User */
1070
+ get: operations["redirect_verify_user_v1_users_email_verify_get"];
1071
+ put?: never;
1072
+ post?: never;
1073
+ delete?: never;
1074
+ options?: never;
1075
+ head?: never;
1076
+ patch?: never;
1077
+ trace?: never;
1078
+ };
1045
1079
  "/v1/users/me": {
1046
1080
  parameters: {
1047
1081
  query?: never;
@@ -1059,6 +1093,43 @@ export interface paths {
1059
1093
  patch?: never;
1060
1094
  trace?: never;
1061
1095
  };
1096
+ "/v1/users/me/password-reset": {
1097
+ parameters: {
1098
+ query?: never;
1099
+ header?: never;
1100
+ path?: never;
1101
+ cookie?: never;
1102
+ };
1103
+ get?: never;
1104
+ put?: never;
1105
+ post?: never;
1106
+ delete?: never;
1107
+ options?: never;
1108
+ head?: never;
1109
+ /** Confirm User Password Reset Me */
1110
+ patch: operations["confirm_user_password_reset_me_v1_users_me_password_reset_patch"];
1111
+ trace?: never;
1112
+ };
1113
+ "/v1/users/me/verification": {
1114
+ parameters: {
1115
+ query?: never;
1116
+ header?: never;
1117
+ path?: never;
1118
+ cookie?: never;
1119
+ };
1120
+ /** Get Verification Status Me */
1121
+ get: operations["get_verification_status_me_v1_users_me_verification_get"];
1122
+ put?: never;
1123
+ /** Create Verification Me */
1124
+ post: operations["create_verification_me_v1_users_me_verification_post"];
1125
+ /** Cancel Verification Me */
1126
+ delete: operations["cancel_verification_me_v1_users_me_verification_delete"];
1127
+ options?: never;
1128
+ head?: never;
1129
+ /** Update Verification Me */
1130
+ patch: operations["update_verification_me_v1_users_me_verification_patch"];
1131
+ trace?: never;
1132
+ };
1062
1133
  "/v1/users/{user_id}": {
1063
1134
  parameters: {
1064
1135
  query?: never;
@@ -1113,6 +1184,26 @@ export interface paths {
1113
1184
  patch: operations["update_user_relations_v1_users__user_id__roles_patch"];
1114
1185
  trace?: never;
1115
1186
  };
1187
+ "/v1/users/{user_id}/verification": {
1188
+ parameters: {
1189
+ query?: never;
1190
+ header?: never;
1191
+ path?: never;
1192
+ cookie?: never;
1193
+ };
1194
+ /** Get Verification Status */
1195
+ get: operations["get_verification_status_v1_users__user_id__verification_get"];
1196
+ put?: never;
1197
+ /** Create Verification */
1198
+ post: operations["create_verification_v1_users__user_id__verification_post"];
1199
+ /** Cancel Verification */
1200
+ delete: operations["cancel_verification_v1_users__user_id__verification_delete"];
1201
+ options?: never;
1202
+ head?: never;
1203
+ /** Update Verification */
1204
+ patch: operations["update_verification_v1_users__user_id__verification_patch"];
1205
+ trace?: never;
1206
+ };
1116
1207
  }
1117
1208
  export type webhooks = Record<string, never>;
1118
1209
  export interface components {
@@ -2212,16 +2303,25 @@ export interface components {
2212
2303
  DomainSearchResponse: {
2213
2304
  meta: components["schemas"]["DomainSearchMeta"];
2214
2305
  /** Results */
2215
- results: components["schemas"]["DomainSearchSuggestion"][];
2306
+ results: components["schemas"]["DomainSearchSuggestionWithPrice"][];
2216
2307
  };
2217
- /** DomainSearchSuggestion */
2218
- DomainSearchSuggestion: {
2308
+ /** DomainSearchSuggestionPriceData */
2309
+ DomainSearchSuggestionPriceData: {
2310
+ /** Amount */
2311
+ amount: string | null;
2312
+ /** Currency */
2313
+ currency: string;
2314
+ period: components["schemas"]["DomainPeriod"];
2315
+ };
2316
+ /** DomainSearchSuggestionWithPrice */
2317
+ DomainSearchSuggestionWithPrice: {
2219
2318
  /** Available */
2220
2319
  available: boolean;
2221
2320
  /** Domain */
2222
2321
  domain: string;
2223
2322
  /** Premium */
2224
2323
  premium: boolean;
2324
+ price: components["schemas"]["DomainSearchSuggestionPriceData"];
2225
2325
  };
2226
2326
  /**
2227
2327
  * DomainSortField
@@ -3484,6 +3584,11 @@ export interface components {
3484
3584
  /** Results */
3485
3585
  results: components["schemas"]["User"][];
3486
3586
  };
3587
+ /** PasswordUpdate */
3588
+ PasswordUpdate: {
3589
+ /** New Password */
3590
+ new_password: string;
3591
+ };
3487
3592
  /**
3488
3593
  * PatchOp
3489
3594
  * @enum {string}
@@ -3737,6 +3842,14 @@ export interface components {
3737
3842
  /** Remove */
3738
3843
  remove?: components["schemas"]["Relation"][] | null;
3739
3844
  };
3845
+ /** StartPasswordReset */
3846
+ StartPasswordReset: {
3847
+ /**
3848
+ * Email
3849
+ * Format: email
3850
+ */
3851
+ email: string;
3852
+ };
3740
3853
  /**
3741
3854
  * SyncOperationType
3742
3855
  * @enum {string}
@@ -4077,6 +4190,15 @@ export interface components {
4077
4190
  */
4078
4191
  user_notification_id?: TypeID<"user_notification">;
4079
4192
  };
4193
+ /** UserPasswordResetEmailResponse */
4194
+ UserPasswordResetEmailResponse: {
4195
+ /**
4196
+ * Message
4197
+ * @description Message to the user. This message is always displayed regarding the password reset process to prevent leaking information.
4198
+ * @default A password reset link will be sent to this email if an account is registered under it.
4199
+ */
4200
+ message: string;
4201
+ };
4080
4202
  /**
4081
4203
  * UserStatus
4082
4204
  * @enum {string}
@@ -4136,6 +4258,143 @@ export interface components {
4136
4258
  */
4137
4259
  username?: string | null;
4138
4260
  };
4261
+ /** UserVerificationApiResponse */
4262
+ UserVerificationApiResponse: {
4263
+ /**
4264
+ * Canceled On
4265
+ * @description The date the verification was cancelled
4266
+ */
4267
+ canceled_on?: Date | null;
4268
+ /**
4269
+ * Created On
4270
+ * Format: date-time
4271
+ * @description The date/time the entry was created on
4272
+ */
4273
+ created_on?: Date;
4274
+ /**
4275
+ * @description Current status of the email verification
4276
+ * @default pending
4277
+ */
4278
+ status: components["schemas"]["EmailVerificationStatus"];
4279
+ /**
4280
+ * Token
4281
+ * @description The token to verify the email address
4282
+ */
4283
+ token: string;
4284
+ /** @description The type of verification: 'api' for retrieving token via API, 'email' for retrieving via email */
4285
+ type: components["schemas"]["VerificationType"];
4286
+ /**
4287
+ * Updated On
4288
+ * Format: date-time
4289
+ * @description The date/time the entry was last updated on
4290
+ */
4291
+ updated_on?: Date;
4292
+ /**
4293
+ * User Id
4294
+ * Format: typeid
4295
+ * @description The user's id
4296
+ * @default None
4297
+ */
4298
+ user_id: TypeID<"user">;
4299
+ /**
4300
+ * User Verification Id
4301
+ * Format: typeid
4302
+ */
4303
+ user_verification_id?: TypeID<"user_verification">;
4304
+ /**
4305
+ * Verified On
4306
+ * @description The date the verification was verified
4307
+ */
4308
+ verified_on?: Date | null;
4309
+ };
4310
+ /** UserVerificationEmailResponse */
4311
+ UserVerificationEmailResponse: {
4312
+ /**
4313
+ * Canceled On
4314
+ * @description The date the verification was cancelled
4315
+ */
4316
+ canceled_on?: Date | null;
4317
+ /**
4318
+ * Created On
4319
+ * Format: date-time
4320
+ * @description The date/time the entry was created on
4321
+ */
4322
+ created_on?: Date;
4323
+ /**
4324
+ * @description Current status of the email verification
4325
+ * @default pending
4326
+ */
4327
+ status: components["schemas"]["EmailVerificationStatus"];
4328
+ /** @description The type of verification: 'api' for retrieving token via API, 'email' for retrieving via email */
4329
+ type: components["schemas"]["VerificationType"];
4330
+ /**
4331
+ * Updated On
4332
+ * Format: date-time
4333
+ * @description The date/time the entry was last updated on
4334
+ */
4335
+ updated_on?: Date;
4336
+ /**
4337
+ * User Id
4338
+ * Format: typeid
4339
+ * @description The user's id
4340
+ * @default None
4341
+ */
4342
+ user_id: TypeID<"user">;
4343
+ /**
4344
+ * User Verification Id
4345
+ * Format: typeid
4346
+ */
4347
+ user_verification_id?: TypeID<"user_verification">;
4348
+ /**
4349
+ * Verified On
4350
+ * @description The date the verification was verified
4351
+ */
4352
+ verified_on?: Date | null;
4353
+ };
4354
+ /** UserVerificationResponse */
4355
+ UserVerificationResponse: {
4356
+ /**
4357
+ * Canceled On
4358
+ * @description The date the verification was cancelled
4359
+ */
4360
+ canceled_on?: Date | null;
4361
+ /**
4362
+ * Created On
4363
+ * Format: date-time
4364
+ * @description The date/time the entry was created on
4365
+ */
4366
+ created_on?: Date;
4367
+ /**
4368
+ * @description Current status of the email verification
4369
+ * @default pending
4370
+ */
4371
+ status: components["schemas"]["EmailVerificationStatus"];
4372
+ /** @description The type of verification: 'api' for retrieving token via API, 'email' for retrieving via email */
4373
+ type: components["schemas"]["VerificationType"];
4374
+ /**
4375
+ * Updated On
4376
+ * Format: date-time
4377
+ * @description The date/time the entry was last updated on
4378
+ */
4379
+ updated_on?: Date;
4380
+ /**
4381
+ * User Id
4382
+ * Format: typeid
4383
+ * @description The user's id
4384
+ * @default None
4385
+ */
4386
+ user_id: TypeID<"user">;
4387
+ /**
4388
+ * User Verification Id
4389
+ * Format: typeid
4390
+ */
4391
+ user_verification_id?: TypeID<"user_verification">;
4392
+ /**
4393
+ * Verified On
4394
+ * @description The date the verification was verified
4395
+ */
4396
+ verified_on?: Date | null;
4397
+ };
4139
4398
  /** UserWithAttributes */
4140
4399
  UserWithAttributes: {
4141
4400
  /**
@@ -7949,24 +8208,26 @@ export interface operations {
7949
8208
  };
7950
8209
  };
7951
8210
  };
7952
- get_current_user_v1_users_me_get: {
8211
+ create_user_password_reset_v1_users_email_password_reset_post: {
7953
8212
  parameters: {
7954
- query?: {
7955
- attributes?: string[] | null;
7956
- };
8213
+ query?: never;
7957
8214
  header?: never;
7958
8215
  path?: never;
7959
8216
  cookie?: never;
7960
8217
  };
7961
- requestBody?: never;
8218
+ requestBody: {
8219
+ content: {
8220
+ "application/json": components["schemas"]["StartPasswordReset"];
8221
+ };
8222
+ };
7962
8223
  responses: {
7963
8224
  /** @description Successful Response */
7964
- 200: {
8225
+ 201: {
7965
8226
  headers: {
7966
8227
  [name: string]: unknown;
7967
8228
  };
7968
8229
  content: {
7969
- "application/json": components["schemas"]["UserWithRelationPermissions"];
8230
+ "application/json": components["schemas"]["UserPasswordResetEmailResponse"];
7970
8231
  };
7971
8232
  };
7972
8233
  /** @description Validation Error */
@@ -7980,15 +8241,13 @@ export interface operations {
7980
8241
  };
7981
8242
  };
7982
8243
  };
7983
- get_user_v1_users__user_id__get: {
8244
+ redirect_verify_user_v1_users_email_verify_get: {
7984
8245
  parameters: {
7985
- query?: {
7986
- attributes?: string[] | null;
8246
+ query: {
8247
+ token: string;
7987
8248
  };
7988
8249
  header?: never;
7989
- path: {
7990
- user_id: TypeID<"user">;
7991
- };
8250
+ path?: never;
7992
8251
  cookie?: never;
7993
8252
  };
7994
8253
  requestBody?: never;
@@ -7999,7 +8258,7 @@ export interface operations {
7999
8258
  [name: string]: unknown;
8000
8259
  };
8001
8260
  content: {
8002
- "application/json": components["schemas"]["UserWithAttributes"];
8261
+ "application/json": unknown;
8003
8262
  };
8004
8263
  };
8005
8264
  /** @description Validation Error */
@@ -8013,38 +8272,24 @@ export interface operations {
8013
8272
  };
8014
8273
  };
8015
8274
  };
8016
- delete_user_v1_users__user_id__delete: {
8275
+ get_current_user_v1_users_me_get: {
8017
8276
  parameters: {
8018
- query?: never;
8019
- header?: never;
8020
- path: {
8021
- user_id: TypeID<"user">;
8277
+ query?: {
8278
+ attributes?: string[] | null;
8022
8279
  };
8280
+ header?: never;
8281
+ path?: never;
8023
8282
  cookie?: never;
8024
8283
  };
8025
8284
  requestBody?: never;
8026
8285
  responses: {
8027
8286
  /** @description Successful Response */
8028
- 204: {
8029
- headers: {
8030
- [name: string]: unknown;
8031
- };
8032
- content?: never;
8033
- };
8034
- /** @description Conflict */
8035
- 409: {
8287
+ 200: {
8036
8288
  headers: {
8037
8289
  [name: string]: unknown;
8038
8290
  };
8039
8291
  content: {
8040
- /** @example {
8041
- * "code": "ERROR_USER_IS_LAST_ADMIN",
8042
- * "detail": "User is the last admin for the organization",
8043
- * "status": 409,
8044
- * "title": "User Management Error",
8045
- * "type": "user-is-last-admin"
8046
- * } */
8047
- "application/problem+json": components["schemas"]["Problem"];
8292
+ "application/json": components["schemas"]["UserWithRelationPermissions"];
8048
8293
  };
8049
8294
  };
8050
8295
  /** @description Validation Error */
@@ -8058,11 +8303,355 @@ export interface operations {
8058
8303
  };
8059
8304
  };
8060
8305
  };
8061
- update_user_v1_users__user_id__patch: {
8306
+ confirm_user_password_reset_me_v1_users_me_password_reset_patch: {
8062
8307
  parameters: {
8063
8308
  query?: never;
8064
8309
  header?: never;
8065
- path: {
8310
+ path?: never;
8311
+ cookie?: never;
8312
+ };
8313
+ requestBody: {
8314
+ content: {
8315
+ "application/json": components["schemas"]["PasswordUpdate"];
8316
+ };
8317
+ };
8318
+ responses: {
8319
+ /** @description Successful Response */
8320
+ 204: {
8321
+ headers: {
8322
+ [name: string]: unknown;
8323
+ };
8324
+ content?: never;
8325
+ };
8326
+ /** @description Unauthorized */
8327
+ 401: {
8328
+ headers: {
8329
+ [name: string]: unknown;
8330
+ };
8331
+ content: {
8332
+ /** @example {
8333
+ * "code": "ERROR_AUTHENTICATION",
8334
+ * "detail": "Additional error context.",
8335
+ * "status": 401,
8336
+ * "title": "Authentication Error",
8337
+ * "type": "authentication"
8338
+ * } */
8339
+ "application/problem+json": components["schemas"]["Problem"];
8340
+ };
8341
+ };
8342
+ /** @description Validation Error */
8343
+ 422: {
8344
+ headers: {
8345
+ [name: string]: unknown;
8346
+ };
8347
+ content: {
8348
+ "application/problem+json": components["schemas"]["HTTPValidationError"];
8349
+ };
8350
+ };
8351
+ };
8352
+ };
8353
+ get_verification_status_me_v1_users_me_verification_get: {
8354
+ parameters: {
8355
+ query?: never;
8356
+ header?: never;
8357
+ path?: never;
8358
+ cookie?: never;
8359
+ };
8360
+ requestBody?: never;
8361
+ responses: {
8362
+ /** @description Successful Response */
8363
+ 200: {
8364
+ headers: {
8365
+ [name: string]: unknown;
8366
+ };
8367
+ content: {
8368
+ "application/json": components["schemas"]["UserVerificationResponse"];
8369
+ };
8370
+ };
8371
+ /** @description Unauthorized */
8372
+ 401: {
8373
+ headers: {
8374
+ [name: string]: unknown;
8375
+ };
8376
+ content: {
8377
+ /** @example {
8378
+ * "code": "ERROR_AUTHENTICATION",
8379
+ * "detail": "Additional error context.",
8380
+ * "status": 401,
8381
+ * "title": "Authentication Error",
8382
+ * "type": "authentication"
8383
+ * } */
8384
+ "application/problem+json": components["schemas"]["Problem"];
8385
+ };
8386
+ };
8387
+ };
8388
+ };
8389
+ create_verification_me_v1_users_me_verification_post: {
8390
+ parameters: {
8391
+ query: {
8392
+ type: components["schemas"]["VerificationType"];
8393
+ };
8394
+ header?: never;
8395
+ path?: never;
8396
+ cookie?: never;
8397
+ };
8398
+ requestBody?: never;
8399
+ responses: {
8400
+ /** @description Successful Response */
8401
+ 201: {
8402
+ headers: {
8403
+ [name: string]: unknown;
8404
+ };
8405
+ content: {
8406
+ "application/json": components["schemas"]["UserVerificationEmailResponse"] | components["schemas"]["UserVerificationApiResponse"];
8407
+ };
8408
+ };
8409
+ /** @description Unauthorized */
8410
+ 401: {
8411
+ headers: {
8412
+ [name: string]: unknown;
8413
+ };
8414
+ content: {
8415
+ /** @example {
8416
+ * "code": "ERROR_AUTHENTICATION",
8417
+ * "detail": "Additional error context.",
8418
+ * "status": 401,
8419
+ * "title": "Authentication Error",
8420
+ * "type": "authentication"
8421
+ * } */
8422
+ "application/problem+json": components["schemas"]["Problem"];
8423
+ };
8424
+ };
8425
+ /** @description Not Found */
8426
+ 404: {
8427
+ headers: {
8428
+ [name: string]: unknown;
8429
+ };
8430
+ content: {
8431
+ /** @example {
8432
+ * "code": "ERROR_USER_NOT_FOUND",
8433
+ * "detail": "Additional error context.",
8434
+ * "status": 404,
8435
+ * "title": "User Management Error",
8436
+ * "type": "user-not-found"
8437
+ * } */
8438
+ "application/problem+json": components["schemas"]["Problem"];
8439
+ };
8440
+ };
8441
+ /** @description Method Not Allowed */
8442
+ 405: {
8443
+ headers: {
8444
+ [name: string]: unknown;
8445
+ };
8446
+ content: {
8447
+ /** @example {
8448
+ * "code": "ERROR_USER_VERIFICATION_INVALID_TYPE",
8449
+ * "detail": "Invalid verification type: Additional error context.",
8450
+ * "status": 405,
8451
+ * "title": "User Management Error",
8452
+ * "type": "user-verification-type-invalid"
8453
+ * } */
8454
+ "application/problem+json": components["schemas"]["Problem"];
8455
+ };
8456
+ };
8457
+ /** @description Validation Error */
8458
+ 422: {
8459
+ headers: {
8460
+ [name: string]: unknown;
8461
+ };
8462
+ content: {
8463
+ "application/problem+json": components["schemas"]["HTTPValidationError"];
8464
+ };
8465
+ };
8466
+ };
8467
+ };
8468
+ cancel_verification_me_v1_users_me_verification_delete: {
8469
+ parameters: {
8470
+ query?: never;
8471
+ header?: never;
8472
+ path?: never;
8473
+ cookie?: never;
8474
+ };
8475
+ requestBody?: never;
8476
+ responses: {
8477
+ /** @description Successful Response */
8478
+ 204: {
8479
+ headers: {
8480
+ [name: string]: unknown;
8481
+ };
8482
+ content?: never;
8483
+ };
8484
+ /** @description Unauthorized */
8485
+ 401: {
8486
+ headers: {
8487
+ [name: string]: unknown;
8488
+ };
8489
+ content: {
8490
+ /** @example {
8491
+ * "code": "ERROR_AUTHENTICATION",
8492
+ * "detail": "Additional error context.",
8493
+ * "status": 401,
8494
+ * "title": "Authentication Error",
8495
+ * "type": "authentication"
8496
+ * } */
8497
+ "application/problem+json": components["schemas"]["Problem"];
8498
+ };
8499
+ };
8500
+ };
8501
+ };
8502
+ update_verification_me_v1_users_me_verification_patch: {
8503
+ parameters: {
8504
+ query: {
8505
+ token: string;
8506
+ };
8507
+ header?: never;
8508
+ path?: never;
8509
+ cookie?: never;
8510
+ };
8511
+ requestBody?: never;
8512
+ responses: {
8513
+ /** @description Successful Response */
8514
+ 204: {
8515
+ headers: {
8516
+ [name: string]: unknown;
8517
+ };
8518
+ content?: never;
8519
+ };
8520
+ /** @description Bad Request */
8521
+ 400: {
8522
+ headers: {
8523
+ [name: string]: unknown;
8524
+ };
8525
+ content: {
8526
+ "application/problem+json": components["schemas"]["Problem"];
8527
+ };
8528
+ };
8529
+ /** @description Unauthorized */
8530
+ 401: {
8531
+ headers: {
8532
+ [name: string]: unknown;
8533
+ };
8534
+ content: {
8535
+ /** @example {
8536
+ * "code": "ERROR_AUTHENTICATION",
8537
+ * "detail": "Additional error context.",
8538
+ * "status": 401,
8539
+ * "title": "Authentication Error",
8540
+ * "type": "authentication"
8541
+ * } */
8542
+ "application/problem+json": components["schemas"]["Problem"];
8543
+ };
8544
+ };
8545
+ /** @description Not Found */
8546
+ 404: {
8547
+ headers: {
8548
+ [name: string]: unknown;
8549
+ };
8550
+ content: {
8551
+ /** @example {
8552
+ * "code": "ERROR_USER_VERIFICATION_NOT_FOUND",
8553
+ * "detail": "No user verification found for user: user_id=Additional error context.",
8554
+ * "status": 404,
8555
+ * "title": "User Management Error",
8556
+ * "type": "user-verification-not-found"
8557
+ * } */
8558
+ "application/problem+json": components["schemas"]["Problem"];
8559
+ };
8560
+ };
8561
+ /** @description Validation Error */
8562
+ 422: {
8563
+ headers: {
8564
+ [name: string]: unknown;
8565
+ };
8566
+ content: {
8567
+ "application/problem+json": components["schemas"]["HTTPValidationError"];
8568
+ };
8569
+ };
8570
+ };
8571
+ };
8572
+ get_user_v1_users__user_id__get: {
8573
+ parameters: {
8574
+ query?: {
8575
+ attributes?: string[] | null;
8576
+ };
8577
+ header?: never;
8578
+ path: {
8579
+ user_id: TypeID<"user">;
8580
+ };
8581
+ cookie?: never;
8582
+ };
8583
+ requestBody?: never;
8584
+ responses: {
8585
+ /** @description Successful Response */
8586
+ 200: {
8587
+ headers: {
8588
+ [name: string]: unknown;
8589
+ };
8590
+ content: {
8591
+ "application/json": components["schemas"]["UserWithAttributes"];
8592
+ };
8593
+ };
8594
+ /** @description Validation Error */
8595
+ 422: {
8596
+ headers: {
8597
+ [name: string]: unknown;
8598
+ };
8599
+ content: {
8600
+ "application/problem+json": components["schemas"]["HTTPValidationError"];
8601
+ };
8602
+ };
8603
+ };
8604
+ };
8605
+ delete_user_v1_users__user_id__delete: {
8606
+ parameters: {
8607
+ query?: never;
8608
+ header?: never;
8609
+ path: {
8610
+ user_id: TypeID<"user">;
8611
+ };
8612
+ cookie?: never;
8613
+ };
8614
+ requestBody?: never;
8615
+ responses: {
8616
+ /** @description Successful Response */
8617
+ 204: {
8618
+ headers: {
8619
+ [name: string]: unknown;
8620
+ };
8621
+ content?: never;
8622
+ };
8623
+ /** @description Conflict */
8624
+ 409: {
8625
+ headers: {
8626
+ [name: string]: unknown;
8627
+ };
8628
+ content: {
8629
+ /** @example {
8630
+ * "code": "ERROR_USER_IS_LAST_ADMIN",
8631
+ * "detail": "User is the last admin for the organization",
8632
+ * "status": 409,
8633
+ * "title": "User Management Error",
8634
+ * "type": "user-is-last-admin"
8635
+ * } */
8636
+ "application/problem+json": components["schemas"]["Problem"];
8637
+ };
8638
+ };
8639
+ /** @description Validation Error */
8640
+ 422: {
8641
+ headers: {
8642
+ [name: string]: unknown;
8643
+ };
8644
+ content: {
8645
+ "application/problem+json": components["schemas"]["HTTPValidationError"];
8646
+ };
8647
+ };
8648
+ };
8649
+ };
8650
+ update_user_v1_users__user_id__patch: {
8651
+ parameters: {
8652
+ query?: never;
8653
+ header?: never;
8654
+ path: {
8066
8655
  user_id: TypeID<"user">;
8067
8656
  };
8068
8657
  cookie?: never;
@@ -8190,4 +8779,249 @@ export interface operations {
8190
8779
  };
8191
8780
  };
8192
8781
  };
8782
+ get_verification_status_v1_users__user_id__verification_get: {
8783
+ parameters: {
8784
+ query?: never;
8785
+ header?: never;
8786
+ path: {
8787
+ user_id: TypeID<"user">;
8788
+ };
8789
+ cookie?: never;
8790
+ };
8791
+ requestBody?: never;
8792
+ responses: {
8793
+ /** @description Successful Response */
8794
+ 200: {
8795
+ headers: {
8796
+ [name: string]: unknown;
8797
+ };
8798
+ content: {
8799
+ "application/json": components["schemas"]["UserVerificationResponse"];
8800
+ };
8801
+ };
8802
+ /** @description Unauthorized */
8803
+ 401: {
8804
+ headers: {
8805
+ [name: string]: unknown;
8806
+ };
8807
+ content: {
8808
+ /** @example {
8809
+ * "code": "ERROR_AUTHENTICATION",
8810
+ * "detail": "Additional error context.",
8811
+ * "status": 401,
8812
+ * "title": "Authentication Error",
8813
+ * "type": "authentication"
8814
+ * } */
8815
+ "application/problem+json": components["schemas"]["Problem"];
8816
+ };
8817
+ };
8818
+ /** @description Validation Error */
8819
+ 422: {
8820
+ headers: {
8821
+ [name: string]: unknown;
8822
+ };
8823
+ content: {
8824
+ "application/problem+json": components["schemas"]["HTTPValidationError"];
8825
+ };
8826
+ };
8827
+ };
8828
+ };
8829
+ create_verification_v1_users__user_id__verification_post: {
8830
+ parameters: {
8831
+ query: {
8832
+ type: components["schemas"]["VerificationType"];
8833
+ };
8834
+ header?: never;
8835
+ path: {
8836
+ user_id: TypeID<"user">;
8837
+ };
8838
+ cookie?: never;
8839
+ };
8840
+ requestBody?: never;
8841
+ responses: {
8842
+ /** @description Successful Response */
8843
+ 201: {
8844
+ headers: {
8845
+ [name: string]: unknown;
8846
+ };
8847
+ content: {
8848
+ "application/json": components["schemas"]["UserVerificationEmailResponse"] | components["schemas"]["UserVerificationApiResponse"];
8849
+ };
8850
+ };
8851
+ /** @description Unauthorized */
8852
+ 401: {
8853
+ headers: {
8854
+ [name: string]: unknown;
8855
+ };
8856
+ content: {
8857
+ /** @example {
8858
+ * "code": "ERROR_AUTHENTICATION",
8859
+ * "detail": "Additional error context.",
8860
+ * "status": 401,
8861
+ * "title": "Authentication Error",
8862
+ * "type": "authentication"
8863
+ * } */
8864
+ "application/problem+json": components["schemas"]["Problem"];
8865
+ };
8866
+ };
8867
+ /** @description Not Found */
8868
+ 404: {
8869
+ headers: {
8870
+ [name: string]: unknown;
8871
+ };
8872
+ content: {
8873
+ /** @example {
8874
+ * "code": "ERROR_USER_NOT_FOUND",
8875
+ * "detail": "Additional error context.",
8876
+ * "status": 404,
8877
+ * "title": "User Management Error",
8878
+ * "type": "user-not-found"
8879
+ * } */
8880
+ "application/problem+json": components["schemas"]["Problem"];
8881
+ };
8882
+ };
8883
+ /** @description Method Not Allowed */
8884
+ 405: {
8885
+ headers: {
8886
+ [name: string]: unknown;
8887
+ };
8888
+ content: {
8889
+ /** @example {
8890
+ * "code": "ERROR_USER_VERIFICATION_INVALID_TYPE",
8891
+ * "detail": "Invalid verification type: Additional error context.",
8892
+ * "status": 405,
8893
+ * "title": "User Management Error",
8894
+ * "type": "user-verification-type-invalid"
8895
+ * } */
8896
+ "application/problem+json": components["schemas"]["Problem"];
8897
+ };
8898
+ };
8899
+ /** @description Validation Error */
8900
+ 422: {
8901
+ headers: {
8902
+ [name: string]: unknown;
8903
+ };
8904
+ content: {
8905
+ "application/problem+json": components["schemas"]["HTTPValidationError"];
8906
+ };
8907
+ };
8908
+ };
8909
+ };
8910
+ cancel_verification_v1_users__user_id__verification_delete: {
8911
+ parameters: {
8912
+ query?: never;
8913
+ header?: never;
8914
+ path: {
8915
+ user_id: TypeID<"user">;
8916
+ };
8917
+ cookie?: never;
8918
+ };
8919
+ requestBody?: never;
8920
+ responses: {
8921
+ /** @description Successful Response */
8922
+ 204: {
8923
+ headers: {
8924
+ [name: string]: unknown;
8925
+ };
8926
+ content?: never;
8927
+ };
8928
+ /** @description Unauthorized */
8929
+ 401: {
8930
+ headers: {
8931
+ [name: string]: unknown;
8932
+ };
8933
+ content: {
8934
+ /** @example {
8935
+ * "code": "ERROR_AUTHENTICATION",
8936
+ * "detail": "Additional error context.",
8937
+ * "status": 401,
8938
+ * "title": "Authentication Error",
8939
+ * "type": "authentication"
8940
+ * } */
8941
+ "application/problem+json": components["schemas"]["Problem"];
8942
+ };
8943
+ };
8944
+ /** @description Validation Error */
8945
+ 422: {
8946
+ headers: {
8947
+ [name: string]: unknown;
8948
+ };
8949
+ content: {
8950
+ "application/problem+json": components["schemas"]["HTTPValidationError"];
8951
+ };
8952
+ };
8953
+ };
8954
+ };
8955
+ update_verification_v1_users__user_id__verification_patch: {
8956
+ parameters: {
8957
+ query: {
8958
+ token: string;
8959
+ };
8960
+ header?: never;
8961
+ path: {
8962
+ user_id: TypeID<"user">;
8963
+ };
8964
+ cookie?: never;
8965
+ };
8966
+ requestBody?: never;
8967
+ responses: {
8968
+ /** @description Successful Response */
8969
+ 204: {
8970
+ headers: {
8971
+ [name: string]: unknown;
8972
+ };
8973
+ content?: never;
8974
+ };
8975
+ /** @description Bad Request */
8976
+ 400: {
8977
+ headers: {
8978
+ [name: string]: unknown;
8979
+ };
8980
+ content: {
8981
+ "application/problem+json": components["schemas"]["Problem"];
8982
+ };
8983
+ };
8984
+ /** @description Unauthorized */
8985
+ 401: {
8986
+ headers: {
8987
+ [name: string]: unknown;
8988
+ };
8989
+ content: {
8990
+ /** @example {
8991
+ * "code": "ERROR_AUTHENTICATION",
8992
+ * "detail": "Additional error context.",
8993
+ * "status": 401,
8994
+ * "title": "Authentication Error",
8995
+ * "type": "authentication"
8996
+ * } */
8997
+ "application/problem+json": components["schemas"]["Problem"];
8998
+ };
8999
+ };
9000
+ /** @description Not Found */
9001
+ 404: {
9002
+ headers: {
9003
+ [name: string]: unknown;
9004
+ };
9005
+ content: {
9006
+ /** @example {
9007
+ * "code": "ERROR_USER_VERIFICATION_NOT_FOUND",
9008
+ * "detail": "No user verification found for user: user_id=Additional error context.",
9009
+ * "status": 404,
9010
+ * "title": "User Management Error",
9011
+ * "type": "user-verification-not-found"
9012
+ * } */
9013
+ "application/problem+json": components["schemas"]["Problem"];
9014
+ };
9015
+ };
9016
+ /** @description Validation Error */
9017
+ 422: {
9018
+ headers: {
9019
+ [name: string]: unknown;
9020
+ };
9021
+ content: {
9022
+ "application/problem+json": components["schemas"]["HTTPValidationError"];
9023
+ };
9024
+ };
9025
+ };
9026
+ };
8193
9027
  }