@opusdns/api 0.307.0 → 0.309.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 +105 -0
- package/src/helpers/requests.d.ts +39 -0
- package/src/helpers/responses.d.ts +129 -1
- package/src/helpers/schemas.d.ts +16 -0
- package/src/openapi.yaml +111 -1
- package/src/schema.d.ts +132 -0
package/package.json
CHANGED
package/src/helpers/keys.ts
CHANGED
|
@@ -339,6 +339,7 @@ import { UserWithRelationPermissions } from './schemas';
|
|
|
339
339
|
import { ValidationError } from './schemas';
|
|
340
340
|
import { VerificationDeadline } from './schemas';
|
|
341
341
|
import { VerificationRegistrantDetails } from './schemas';
|
|
342
|
+
import { Verification } from './schemas';
|
|
342
343
|
import { VisitsByKeyBucket } from './schemas';
|
|
343
344
|
import { WhoisBase } from './schemas';
|
|
344
345
|
import { RequestAuthcode } from './schemas';
|
|
@@ -18174,6 +18175,31 @@ export const KEY_DOMAIN_TRANSFER_LOCK: keyof Domain = 'transfer_lock';
|
|
|
18174
18175
|
* @see {@link KEYS_DOMAIN} - Array of all keys for this type
|
|
18175
18176
|
*/
|
|
18176
18177
|
export const KEY_DOMAIN_UPDATED_ON: keyof Domain = 'updated_on';
|
|
18178
|
+
/**
|
|
18179
|
+
* verification_required property
|
|
18180
|
+
*
|
|
18181
|
+
* Verification data for this domain, including pending claims and deadlines.
|
|
18182
|
+
*
|
|
18183
|
+
*
|
|
18184
|
+
*
|
|
18185
|
+
* @remarks
|
|
18186
|
+
* This key constant provides type-safe access to the `verification_required` property of Domain objects.
|
|
18187
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
18188
|
+
*
|
|
18189
|
+
* @example
|
|
18190
|
+
* ```typescript
|
|
18191
|
+
* // Direct property access
|
|
18192
|
+
* const value = domain[KEY_DOMAIN_VERIFICATION_REQUIRED];
|
|
18193
|
+
*
|
|
18194
|
+
* // Dynamic property access
|
|
18195
|
+
* const propertyName = KEY_DOMAIN_VERIFICATION_REQUIRED;
|
|
18196
|
+
* const value = domain[propertyName];
|
|
18197
|
+
* ```
|
|
18198
|
+
*
|
|
18199
|
+
* @see {@link Domain} - The TypeScript type definition
|
|
18200
|
+
* @see {@link KEYS_DOMAIN} - Array of all keys for this type
|
|
18201
|
+
*/
|
|
18202
|
+
export const KEY_DOMAIN_VERIFICATION_REQUIRED: keyof Domain = 'verification_required';
|
|
18177
18203
|
|
|
18178
18204
|
/**
|
|
18179
18205
|
* Array of all Domain property keys
|
|
@@ -18220,6 +18246,7 @@ export const KEYS_DOMAIN = [
|
|
|
18220
18246
|
KEY_DOMAIN_TLD,
|
|
18221
18247
|
KEY_DOMAIN_TRANSFER_LOCK,
|
|
18222
18248
|
KEY_DOMAIN_UPDATED_ON,
|
|
18249
|
+
KEY_DOMAIN_VERIFICATION_REQUIRED,
|
|
18223
18250
|
] as const satisfies (keyof Domain)[];
|
|
18224
18251
|
|
|
18225
18252
|
/**
|
|
@@ -44424,6 +44451,84 @@ export const KEYS_VERIFICATION_REGISTRANT_DETAILS = [
|
|
|
44424
44451
|
KEY_VERIFICATION_REGISTRANT_DETAILS_NAME,
|
|
44425
44452
|
] as const satisfies (keyof VerificationRegistrantDetails)[];
|
|
44426
44453
|
|
|
44454
|
+
/**
|
|
44455
|
+
* Claims
|
|
44456
|
+
*
|
|
44457
|
+
* Verification claims
|
|
44458
|
+
*
|
|
44459
|
+
* @type {array}
|
|
44460
|
+
*
|
|
44461
|
+
*
|
|
44462
|
+
* @remarks
|
|
44463
|
+
* This key constant provides type-safe access to the `claims` property of Verification objects.
|
|
44464
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
44465
|
+
*
|
|
44466
|
+
* @example
|
|
44467
|
+
* ```typescript
|
|
44468
|
+
* // Direct property access
|
|
44469
|
+
* const value = verification[KEY_VERIFICATION_CLAIMS];
|
|
44470
|
+
*
|
|
44471
|
+
* // Dynamic property access
|
|
44472
|
+
* const propertyName = KEY_VERIFICATION_CLAIMS;
|
|
44473
|
+
* const value = verification[propertyName];
|
|
44474
|
+
* ```
|
|
44475
|
+
*
|
|
44476
|
+
* @see {@link Verification} - The TypeScript type definition
|
|
44477
|
+
* @see {@link KEYS_VERIFICATION} - Array of all keys for this type
|
|
44478
|
+
*/
|
|
44479
|
+
export const KEY_VERIFICATION_CLAIMS: keyof Verification = 'claims';
|
|
44480
|
+
/**
|
|
44481
|
+
* Deadlines
|
|
44482
|
+
*
|
|
44483
|
+
* Verification deadlines
|
|
44484
|
+
*
|
|
44485
|
+
* @type {array}
|
|
44486
|
+
*
|
|
44487
|
+
*
|
|
44488
|
+
* @remarks
|
|
44489
|
+
* This key constant provides type-safe access to the `deadlines` property of Verification objects.
|
|
44490
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
44491
|
+
*
|
|
44492
|
+
* @example
|
|
44493
|
+
* ```typescript
|
|
44494
|
+
* // Direct property access
|
|
44495
|
+
* const value = verification[KEY_VERIFICATION_DEADLINES];
|
|
44496
|
+
*
|
|
44497
|
+
* // Dynamic property access
|
|
44498
|
+
* const propertyName = KEY_VERIFICATION_DEADLINES;
|
|
44499
|
+
* const value = verification[propertyName];
|
|
44500
|
+
* ```
|
|
44501
|
+
*
|
|
44502
|
+
* @see {@link Verification} - The TypeScript type definition
|
|
44503
|
+
* @see {@link KEYS_VERIFICATION} - Array of all keys for this type
|
|
44504
|
+
*/
|
|
44505
|
+
export const KEY_VERIFICATION_DEADLINES: keyof Verification = 'deadlines';
|
|
44506
|
+
|
|
44507
|
+
/**
|
|
44508
|
+
* Array of all Verification property keys
|
|
44509
|
+
*
|
|
44510
|
+
* @remarks
|
|
44511
|
+
* This constant provides a readonly array containing all valid property keys for Verification objects.
|
|
44512
|
+
* Useful for iteration, validation, and generating dynamic UI components.
|
|
44513
|
+
*
|
|
44514
|
+
* @example
|
|
44515
|
+
* ```typescript
|
|
44516
|
+
* // Iterating through all keys
|
|
44517
|
+
* for (const key of KEYS_VERIFICATION) {
|
|
44518
|
+
* console.log(`Property: ${key}, Value: ${verification[key]}`);
|
|
44519
|
+
* }
|
|
44520
|
+
*
|
|
44521
|
+
* // Validation
|
|
44522
|
+
* const isValidKey = KEYS_VERIFICATION.includes(someKey);
|
|
44523
|
+
* ```
|
|
44524
|
+
*
|
|
44525
|
+
* @see {@link Verification} - The TypeScript type definition
|
|
44526
|
+
*/
|
|
44527
|
+
export const KEYS_VERIFICATION = [
|
|
44528
|
+
KEY_VERIFICATION_CLAIMS,
|
|
44529
|
+
KEY_VERIFICATION_DEADLINES,
|
|
44530
|
+
] as const satisfies (keyof Verification)[];
|
|
44531
|
+
|
|
44427
44532
|
/**
|
|
44428
44533
|
* Key
|
|
44429
44534
|
*
|
|
@@ -1691,6 +1691,45 @@ export type PUT_ContactsContactIdVerification_Request_Query = PUT_ContactsContac
|
|
|
1691
1691
|
*/
|
|
1692
1692
|
export type PUT_ContactsContactIdVerification_Request_Path = PUT_ContactsContactIdVerification_Request['parameters']['path'];
|
|
1693
1693
|
|
|
1694
|
+
/**
|
|
1695
|
+
* Request type for GET ContactsContactIdVerifications endpoint
|
|
1696
|
+
*
|
|
1697
|
+
* Get contact verification status
|
|
1698
|
+
* Retrieve the current verification state for a contact from the contact-verification service.
|
|
1699
|
+
*
|
|
1700
|
+
* @remarks
|
|
1701
|
+
* This type defines the complete request structure for the GET ContactsContactIdVerifications endpoint.
|
|
1702
|
+
* It includes all parameters (query, path) and request body types as defined in the OpenAPI specification.
|
|
1703
|
+
* Use this type to ensure type safety when making API requests to this endpoint.
|
|
1704
|
+
*
|
|
1705
|
+
* @example
|
|
1706
|
+
* Use this type to ensure type safety when making API requests to this endpoint.
|
|
1707
|
+
*
|
|
1708
|
+
* @path /v1/contacts/{contact_id}/verifications
|
|
1709
|
+
*
|
|
1710
|
+
* @see {@link GET_ContactsContactIdVerifications_Request_Query} - Query parameters type
|
|
1711
|
+
* @see {@link GET_ContactsContactIdVerifications_Request_Path} - Path parameters type
|
|
1712
|
+
* @see {@link GET_ContactsContactIdVerifications_Request_Body} - Request body type
|
|
1713
|
+
*/
|
|
1714
|
+
export type GET_ContactsContactIdVerifications_Request = {
|
|
1715
|
+
parameters: {
|
|
1716
|
+
path: operations['get_contact_verification_status_v1_contacts__contact_id__verifications_get']['parameters']['path'];
|
|
1717
|
+
};
|
|
1718
|
+
}
|
|
1719
|
+
/**
|
|
1720
|
+
* Path parameters for GET /v1/contacts/{contact_id}/verifications
|
|
1721
|
+
*
|
|
1722
|
+
* @remarks
|
|
1723
|
+
* This type defines the path parameters for the GET /v1/contacts/{contact_id}/verifications endpoint.
|
|
1724
|
+
* It provides type safety for all path parameters as defined in the OpenAPI specification.
|
|
1725
|
+
*
|
|
1726
|
+
* @example
|
|
1727
|
+
* Use this type to ensure type safety for path parameters.
|
|
1728
|
+
*
|
|
1729
|
+
* @path /v1/contacts/{contact_id}/verifications
|
|
1730
|
+
*/
|
|
1731
|
+
export type GET_ContactsContactIdVerifications_Request_Path = GET_ContactsContactIdVerifications_Request['parameters']['path'];
|
|
1732
|
+
|
|
1694
1733
|
/**
|
|
1695
1734
|
* Request type for POST ContactsContactIdVerificationsAttest endpoint
|
|
1696
1735
|
*
|
|
@@ -3257,6 +3257,116 @@ export type PUT_ContactsByContactIdVerification_Response_404 = Problem
|
|
|
3257
3257
|
*/
|
|
3258
3258
|
export type PUT_ContactsByContactIdVerification_Response_422 = HTTPValidationError
|
|
3259
3259
|
|
|
3260
|
+
/**
|
|
3261
|
+
* Response types for GET ContactsByContactIdVerifications endpoint
|
|
3262
|
+
*
|
|
3263
|
+
* Get contact verification status
|
|
3264
|
+
* Retrieve the current verification state for a contact from the contact-verification service.
|
|
3265
|
+
*
|
|
3266
|
+
* @remarks
|
|
3267
|
+
* This type defines all possible response structures for the GET ContactsByContactIdVerifications endpoint.
|
|
3268
|
+
* Each response code maps to a specific response type as defined in the OpenAPI specification.
|
|
3269
|
+
* Use this type to ensure type safety when handling API responses from this endpoint.
|
|
3270
|
+
*
|
|
3271
|
+
|
|
3272
|
+
*
|
|
3273
|
+
* @path /v1/contacts/{contact_id}/verifications
|
|
3274
|
+
*
|
|
3275
|
+
* @see {@link GET_ContactsByContactIdVerifications_Response_200} - 200 response type
|
|
3276
|
+
* @see {@link GET_ContactsByContactIdVerifications_Response_401} - 401 response type
|
|
3277
|
+
* @see {@link GET_ContactsByContactIdVerifications_Response_404} - 404 response type
|
|
3278
|
+
* @see {@link GET_ContactsByContactIdVerifications_Response_422} - 422 response type
|
|
3279
|
+
* @see {@link GET_ContactsByContactIdVerifications_Response_502} - 502 response type
|
|
3280
|
+
*
|
|
3281
|
+
|
|
3282
|
+
*/
|
|
3283
|
+
export type GET_ContactsByContactIdVerifications_Response = GET_ContactsByContactIdVerifications_Response_200 | GET_ContactsByContactIdVerifications_Response_401 | GET_ContactsByContactIdVerifications_Response_404 | GET_ContactsByContactIdVerifications_Response_422 | GET_ContactsByContactIdVerifications_Response_502;
|
|
3284
|
+
|
|
3285
|
+
/**
|
|
3286
|
+
* 200 response for GET ContactsByContactIdVerifications endpoint
|
|
3287
|
+
*
|
|
3288
|
+
* @remarks
|
|
3289
|
+
* This type defines the response structure for the 200 status code
|
|
3290
|
+
* of the GET ContactsByContactIdVerifications endpoint.
|
|
3291
|
+
* It provides type safety for handling this specific response as defined in the OpenAPI specification.
|
|
3292
|
+
*
|
|
3293
|
+
|
|
3294
|
+
*
|
|
3295
|
+
* @path /v1/contacts/{contact_id}/verifications
|
|
3296
|
+
*
|
|
3297
|
+
* @see {@link GET_ContactsByContactIdVerifications_Response} - The main response type definition
|
|
3298
|
+
* @see {@link ContactAttestRes} - The actual schema type definition
|
|
3299
|
+
*/
|
|
3300
|
+
export type GET_ContactsByContactIdVerifications_Response_200 = ContactAttestRes
|
|
3301
|
+
|
|
3302
|
+
/**
|
|
3303
|
+
* 401 response for GET ContactsByContactIdVerifications endpoint
|
|
3304
|
+
*
|
|
3305
|
+
* @remarks
|
|
3306
|
+
* This type defines the response structure for the 401 status code
|
|
3307
|
+
* of the GET ContactsByContactIdVerifications endpoint.
|
|
3308
|
+
* It provides type safety for handling this specific response as defined in the OpenAPI specification.
|
|
3309
|
+
*
|
|
3310
|
+
|
|
3311
|
+
*
|
|
3312
|
+
* @path /v1/contacts/{contact_id}/verifications
|
|
3313
|
+
*
|
|
3314
|
+
* @see {@link GET_ContactsByContactIdVerifications_Response} - The main response type definition
|
|
3315
|
+
* @see {@link Problem} - The actual schema type definition
|
|
3316
|
+
*/
|
|
3317
|
+
export type GET_ContactsByContactIdVerifications_Response_401 = Problem
|
|
3318
|
+
|
|
3319
|
+
/**
|
|
3320
|
+
* 404 response for GET ContactsByContactIdVerifications endpoint
|
|
3321
|
+
*
|
|
3322
|
+
* @remarks
|
|
3323
|
+
* This type defines the response structure for the 404 status code
|
|
3324
|
+
* of the GET ContactsByContactIdVerifications endpoint.
|
|
3325
|
+
* It provides type safety for handling this specific response as defined in the OpenAPI specification.
|
|
3326
|
+
*
|
|
3327
|
+
|
|
3328
|
+
*
|
|
3329
|
+
* @path /v1/contacts/{contact_id}/verifications
|
|
3330
|
+
*
|
|
3331
|
+
* @see {@link GET_ContactsByContactIdVerifications_Response} - The main response type definition
|
|
3332
|
+
* @see {@link Problem} - The actual schema type definition
|
|
3333
|
+
*/
|
|
3334
|
+
export type GET_ContactsByContactIdVerifications_Response_404 = Problem
|
|
3335
|
+
|
|
3336
|
+
/**
|
|
3337
|
+
* 422 response for GET ContactsByContactIdVerifications endpoint
|
|
3338
|
+
*
|
|
3339
|
+
* @remarks
|
|
3340
|
+
* This type defines the response structure for the 422 status code
|
|
3341
|
+
* of the GET ContactsByContactIdVerifications endpoint.
|
|
3342
|
+
* It provides type safety for handling this specific response as defined in the OpenAPI specification.
|
|
3343
|
+
*
|
|
3344
|
+
|
|
3345
|
+
*
|
|
3346
|
+
* @path /v1/contacts/{contact_id}/verifications
|
|
3347
|
+
*
|
|
3348
|
+
* @see {@link GET_ContactsByContactIdVerifications_Response} - The main response type definition
|
|
3349
|
+
* @see {@link HTTPValidationError} - The actual schema type definition
|
|
3350
|
+
*/
|
|
3351
|
+
export type GET_ContactsByContactIdVerifications_Response_422 = HTTPValidationError
|
|
3352
|
+
|
|
3353
|
+
/**
|
|
3354
|
+
* 502 response for GET ContactsByContactIdVerifications endpoint
|
|
3355
|
+
*
|
|
3356
|
+
* @remarks
|
|
3357
|
+
* This type defines the response structure for the 502 status code
|
|
3358
|
+
* of the GET ContactsByContactIdVerifications endpoint.
|
|
3359
|
+
* It provides type safety for handling this specific response as defined in the OpenAPI specification.
|
|
3360
|
+
*
|
|
3361
|
+
|
|
3362
|
+
*
|
|
3363
|
+
* @path /v1/contacts/{contact_id}/verifications
|
|
3364
|
+
*
|
|
3365
|
+
* @see {@link GET_ContactsByContactIdVerifications_Response} - The main response type definition
|
|
3366
|
+
* @see {@link Problem} - The actual schema type definition
|
|
3367
|
+
*/
|
|
3368
|
+
export type GET_ContactsByContactIdVerifications_Response_502 = Problem
|
|
3369
|
+
|
|
3260
3370
|
/**
|
|
3261
3371
|
* Response types for POST ContactsByContactIdVerificationsAttest endpoint
|
|
3262
3372
|
*
|
|
@@ -3275,12 +3385,13 @@ export type PUT_ContactsByContactIdVerification_Response_422 = HTTPValidationErr
|
|
|
3275
3385
|
* @see {@link POST_ContactsByContactIdVerificationsAttest_Response_200} - 200 response type
|
|
3276
3386
|
* @see {@link POST_ContactsByContactIdVerificationsAttest_Response_400} - 400 response type
|
|
3277
3387
|
* @see {@link POST_ContactsByContactIdVerificationsAttest_Response_401} - 401 response type
|
|
3388
|
+
* @see {@link POST_ContactsByContactIdVerificationsAttest_Response_404} - 404 response type
|
|
3278
3389
|
* @see {@link POST_ContactsByContactIdVerificationsAttest_Response_422} - 422 response type
|
|
3279
3390
|
* @see {@link POST_ContactsByContactIdVerificationsAttest_Response_502} - 502 response type
|
|
3280
3391
|
*
|
|
3281
3392
|
|
|
3282
3393
|
*/
|
|
3283
|
-
export type POST_ContactsByContactIdVerificationsAttest_Response = POST_ContactsByContactIdVerificationsAttest_Response_200 | POST_ContactsByContactIdVerificationsAttest_Response_400 | POST_ContactsByContactIdVerificationsAttest_Response_401 | POST_ContactsByContactIdVerificationsAttest_Response_422 | POST_ContactsByContactIdVerificationsAttest_Response_502;
|
|
3394
|
+
export type POST_ContactsByContactIdVerificationsAttest_Response = POST_ContactsByContactIdVerificationsAttest_Response_200 | POST_ContactsByContactIdVerificationsAttest_Response_400 | POST_ContactsByContactIdVerificationsAttest_Response_401 | POST_ContactsByContactIdVerificationsAttest_Response_404 | POST_ContactsByContactIdVerificationsAttest_Response_422 | POST_ContactsByContactIdVerificationsAttest_Response_502;
|
|
3284
3395
|
|
|
3285
3396
|
/**
|
|
3286
3397
|
* 200 response for POST ContactsByContactIdVerificationsAttest endpoint
|
|
@@ -3333,6 +3444,23 @@ export type POST_ContactsByContactIdVerificationsAttest_Response_400 = Problem
|
|
|
3333
3444
|
*/
|
|
3334
3445
|
export type POST_ContactsByContactIdVerificationsAttest_Response_401 = Problem
|
|
3335
3446
|
|
|
3447
|
+
/**
|
|
3448
|
+
* 404 response for POST ContactsByContactIdVerificationsAttest endpoint
|
|
3449
|
+
*
|
|
3450
|
+
* @remarks
|
|
3451
|
+
* This type defines the response structure for the 404 status code
|
|
3452
|
+
* of the POST ContactsByContactIdVerificationsAttest endpoint.
|
|
3453
|
+
* It provides type safety for handling this specific response as defined in the OpenAPI specification.
|
|
3454
|
+
*
|
|
3455
|
+
|
|
3456
|
+
*
|
|
3457
|
+
* @path /v1/contacts/{contact_id}/verifications/attest
|
|
3458
|
+
*
|
|
3459
|
+
* @see {@link POST_ContactsByContactIdVerificationsAttest_Response} - The main response type definition
|
|
3460
|
+
* @see {@link Problem} - The actual schema type definition
|
|
3461
|
+
*/
|
|
3462
|
+
export type POST_ContactsByContactIdVerificationsAttest_Response_404 = Problem
|
|
3463
|
+
|
|
3336
3464
|
/**
|
|
3337
3465
|
* 422 response for POST ContactsByContactIdVerificationsAttest endpoint
|
|
3338
3466
|
*
|
package/src/helpers/schemas.d.ts
CHANGED
|
@@ -7028,6 +7028,22 @@ export type VerificationDeadlineType = components['schemas']['VerificationDeadli
|
|
|
7028
7028
|
* @see {@link components} - The OpenAPI components schema definition
|
|
7029
7029
|
*/
|
|
7030
7030
|
export type VerificationRegistrantDetails = components['schemas']['VerificationRegistrantDetails'];
|
|
7031
|
+
/**
|
|
7032
|
+
* VerificationResponse
|
|
7033
|
+
*
|
|
7034
|
+
* @remarks
|
|
7035
|
+
* Type alias for the `VerificationResponse` OpenAPI schema.
|
|
7036
|
+
* This type represents verificationresponse data structures used in API requests and responses.
|
|
7037
|
+
*
|
|
7038
|
+
* @example
|
|
7039
|
+
* ```typescript
|
|
7040
|
+
* const response = await api.getVerification();
|
|
7041
|
+
* const item: Verification = response.results;
|
|
7042
|
+
* ```
|
|
7043
|
+
*
|
|
7044
|
+
* @see {@link components} - The OpenAPI components schema definition
|
|
7045
|
+
*/
|
|
7046
|
+
export type Verification = components['schemas']['VerificationResponse'];
|
|
7031
7047
|
/**
|
|
7032
7048
|
* VerificationType
|
|
7033
7049
|
*
|
package/src/openapi.yaml
CHANGED
|
@@ -4369,6 +4369,12 @@ components:
|
|
|
4369
4369
|
format: date-time
|
|
4370
4370
|
title: Updated On
|
|
4371
4371
|
type: string
|
|
4372
|
+
verification_required:
|
|
4373
|
+
anyOf:
|
|
4374
|
+
- $ref: '#/components/schemas/VerificationResponse'
|
|
4375
|
+
- type: 'null'
|
|
4376
|
+
description: Verification data for this domain, including pending claims
|
|
4377
|
+
and deadlines.
|
|
4372
4378
|
required:
|
|
4373
4379
|
- name
|
|
4374
4380
|
- sld
|
|
@@ -11269,6 +11275,24 @@ components:
|
|
|
11269
11275
|
- email
|
|
11270
11276
|
title: VerificationRegistrantDetails
|
|
11271
11277
|
type: object
|
|
11278
|
+
VerificationResponse:
|
|
11279
|
+
properties:
|
|
11280
|
+
claims:
|
|
11281
|
+
description: Verification claims
|
|
11282
|
+
items:
|
|
11283
|
+
$ref: '#/components/schemas/VerificationClaimType'
|
|
11284
|
+
title: Claims
|
|
11285
|
+
type: array
|
|
11286
|
+
deadlines:
|
|
11287
|
+
description: Verification deadlines
|
|
11288
|
+
items:
|
|
11289
|
+
$ref: '#/components/schemas/VerificationDeadline'
|
|
11290
|
+
title: Deadlines
|
|
11291
|
+
type: array
|
|
11292
|
+
required:
|
|
11293
|
+
- claims
|
|
11294
|
+
title: VerificationResponse
|
|
11295
|
+
type: object
|
|
11272
11296
|
VerificationType:
|
|
11273
11297
|
enum:
|
|
11274
11298
|
- api
|
|
@@ -11505,7 +11529,7 @@ info:
|
|
|
11505
11529
|
\n\n"
|
|
11506
11530
|
summary: OpusDNS - your gateway to a seamless domain management experience.
|
|
11507
11531
|
title: OpusDNS API
|
|
11508
|
-
version: 2026-05-
|
|
11532
|
+
version: 2026-05-19-074821
|
|
11509
11533
|
x-logo:
|
|
11510
11534
|
altText: OpusDNS API Reference
|
|
11511
11535
|
url: https://d24lr4zqs1tgqh.cloudfront.net/c9505a20-5ae1-406c-b060-d392569caebf.jpg
|
|
@@ -14581,6 +14605,79 @@ paths:
|
|
|
14581
14605
|
summary: Complete contact verification by contact ID
|
|
14582
14606
|
tags:
|
|
14583
14607
|
- contact
|
|
14608
|
+
/v1/contacts/{contact_id}/verifications:
|
|
14609
|
+
get:
|
|
14610
|
+
description: Retrieve the current verification state for a contact from the
|
|
14611
|
+
contact-verification service.
|
|
14612
|
+
operationId: get_contact_verification_status_v1_contacts__contact_id__verifications_get
|
|
14613
|
+
parameters:
|
|
14614
|
+
- in: path
|
|
14615
|
+
name: contact_id
|
|
14616
|
+
required: true
|
|
14617
|
+
schema:
|
|
14618
|
+
examples:
|
|
14619
|
+
- contact_01h45ytscbebyvny4gc8cr8ma2
|
|
14620
|
+
format: typeid
|
|
14621
|
+
pattern: ^contact_[0-7][0-9a-hjkmnpq-tv-z]{25}$
|
|
14622
|
+
title: Contact Id
|
|
14623
|
+
type: string
|
|
14624
|
+
x-typeid-prefix: contact
|
|
14625
|
+
responses:
|
|
14626
|
+
'200':
|
|
14627
|
+
content:
|
|
14628
|
+
application/json:
|
|
14629
|
+
schema:
|
|
14630
|
+
$ref: '#/components/schemas/ContactAttestRes'
|
|
14631
|
+
description: Successful Response
|
|
14632
|
+
'401':
|
|
14633
|
+
content:
|
|
14634
|
+
application/problem+json:
|
|
14635
|
+
example:
|
|
14636
|
+
code: ERROR_AUTHENTICATION
|
|
14637
|
+
detail: Additional error context.
|
|
14638
|
+
status: 401
|
|
14639
|
+
title: Authentication Error
|
|
14640
|
+
type: authentication
|
|
14641
|
+
schema:
|
|
14642
|
+
$ref: '#/components/schemas/Problem'
|
|
14643
|
+
description: Unauthorized
|
|
14644
|
+
'404':
|
|
14645
|
+
content:
|
|
14646
|
+
application/problem+json:
|
|
14647
|
+
example:
|
|
14648
|
+
code: ERROR_CONTACT_VERIFICATION_UPSTREAM_NOT_FOUND
|
|
14649
|
+
contact_id: Additional error context.
|
|
14650
|
+
detail: Contact is not registered with the contact-verification service.
|
|
14651
|
+
status: 404
|
|
14652
|
+
title: Contact Not Registered with Verification Service
|
|
14653
|
+
type: contact-verification-upstream-not-found
|
|
14654
|
+
schema:
|
|
14655
|
+
$ref: '#/components/schemas/Problem'
|
|
14656
|
+
description: Not Found
|
|
14657
|
+
'422':
|
|
14658
|
+
content:
|
|
14659
|
+
application/problem+json:
|
|
14660
|
+
schema:
|
|
14661
|
+
$ref: '#/components/schemas/HTTPValidationError'
|
|
14662
|
+
description: Validation Error
|
|
14663
|
+
'502':
|
|
14664
|
+
content:
|
|
14665
|
+
application/problem+json:
|
|
14666
|
+
example:
|
|
14667
|
+
code: ERROR_CONTACT_VERIFICATION_UPSTREAM_ERROR
|
|
14668
|
+
detail: Additional error context.
|
|
14669
|
+
status: 502
|
|
14670
|
+
title: Contact Verification Service Error
|
|
14671
|
+
type: contact-verification-upstream
|
|
14672
|
+
schema:
|
|
14673
|
+
$ref: '#/components/schemas/Problem'
|
|
14674
|
+
description: Bad Gateway
|
|
14675
|
+
security:
|
|
14676
|
+
- OAuth2PasswordBearer: []
|
|
14677
|
+
- APIKeyHeader: []
|
|
14678
|
+
summary: Get contact verification status
|
|
14679
|
+
tags:
|
|
14680
|
+
- contact
|
|
14584
14681
|
/v1/contacts/{contact_id}/verifications/attest:
|
|
14585
14682
|
post:
|
|
14586
14683
|
description: Submit one or more contact-verification attestations. Returns the
|
|
@@ -14638,6 +14735,19 @@ paths:
|
|
|
14638
14735
|
schema:
|
|
14639
14736
|
$ref: '#/components/schemas/Problem'
|
|
14640
14737
|
description: Unauthorized
|
|
14738
|
+
'404':
|
|
14739
|
+
content:
|
|
14740
|
+
application/problem+json:
|
|
14741
|
+
example:
|
|
14742
|
+
code: ERROR_CONTACT_VERIFICATION_UPSTREAM_NOT_FOUND
|
|
14743
|
+
contact_id: Additional error context.
|
|
14744
|
+
detail: Contact is not registered with the contact-verification service.
|
|
14745
|
+
status: 404
|
|
14746
|
+
title: Contact Not Registered with Verification Service
|
|
14747
|
+
type: contact-verification-upstream-not-found
|
|
14748
|
+
schema:
|
|
14749
|
+
$ref: '#/components/schemas/Problem'
|
|
14750
|
+
description: Not Found
|
|
14641
14751
|
'422':
|
|
14642
14752
|
content:
|
|
14643
14753
|
application/problem+json:
|
package/src/schema.d.ts
CHANGED
|
@@ -471,6 +471,26 @@ export interface paths {
|
|
|
471
471
|
patch?: never;
|
|
472
472
|
trace?: never;
|
|
473
473
|
};
|
|
474
|
+
"/v1/contacts/{contact_id}/verifications": {
|
|
475
|
+
parameters: {
|
|
476
|
+
query?: never;
|
|
477
|
+
header?: never;
|
|
478
|
+
path?: never;
|
|
479
|
+
cookie?: never;
|
|
480
|
+
};
|
|
481
|
+
/**
|
|
482
|
+
* Get contact verification status
|
|
483
|
+
* @description Retrieve the current verification state for a contact from the contact-verification service.
|
|
484
|
+
*/
|
|
485
|
+
get: operations["get_contact_verification_status_v1_contacts__contact_id__verifications_get"];
|
|
486
|
+
put?: never;
|
|
487
|
+
post?: never;
|
|
488
|
+
delete?: never;
|
|
489
|
+
options?: never;
|
|
490
|
+
head?: never;
|
|
491
|
+
patch?: never;
|
|
492
|
+
trace?: never;
|
|
493
|
+
};
|
|
474
494
|
"/v1/contacts/{contact_id}/verifications/attest": {
|
|
475
495
|
parameters: {
|
|
476
496
|
query?: never;
|
|
@@ -5350,6 +5370,8 @@ export interface components {
|
|
|
5350
5370
|
* @description The date/time the entry was last updated on
|
|
5351
5371
|
*/
|
|
5352
5372
|
updated_on?: Date;
|
|
5373
|
+
/** @description Verification data for this domain, including pending claims and deadlines. */
|
|
5374
|
+
verification_required?: components["schemas"]["VerificationResponse"] | null;
|
|
5353
5375
|
};
|
|
5354
5376
|
/** DomainRestoreRequest */
|
|
5355
5377
|
DomainRestoreRequest: {
|
|
@@ -9919,6 +9941,19 @@ export interface components {
|
|
|
9919
9941
|
/** Name */
|
|
9920
9942
|
name: string;
|
|
9921
9943
|
};
|
|
9944
|
+
/** VerificationResponse */
|
|
9945
|
+
VerificationResponse: {
|
|
9946
|
+
/**
|
|
9947
|
+
* Claims
|
|
9948
|
+
* @description Verification claims
|
|
9949
|
+
*/
|
|
9950
|
+
claims: components["schemas"]["VerificationClaimType"][];
|
|
9951
|
+
/**
|
|
9952
|
+
* Deadlines
|
|
9953
|
+
* @description Verification deadlines
|
|
9954
|
+
*/
|
|
9955
|
+
deadlines?: components["schemas"]["VerificationDeadline"][];
|
|
9956
|
+
};
|
|
9922
9957
|
/**
|
|
9923
9958
|
* VerificationType
|
|
9924
9959
|
* @enum {string}
|
|
@@ -12635,6 +12670,86 @@ export interface operations {
|
|
|
12635
12670
|
};
|
|
12636
12671
|
};
|
|
12637
12672
|
};
|
|
12673
|
+
get_contact_verification_status_v1_contacts__contact_id__verifications_get: {
|
|
12674
|
+
parameters: {
|
|
12675
|
+
query?: never;
|
|
12676
|
+
header?: never;
|
|
12677
|
+
path: {
|
|
12678
|
+
contact_id: TypeId<"contact">;
|
|
12679
|
+
};
|
|
12680
|
+
cookie?: never;
|
|
12681
|
+
};
|
|
12682
|
+
requestBody?: never;
|
|
12683
|
+
responses: {
|
|
12684
|
+
/** @description Successful Response */
|
|
12685
|
+
200: {
|
|
12686
|
+
headers: {
|
|
12687
|
+
[name: string]: unknown;
|
|
12688
|
+
};
|
|
12689
|
+
content: {
|
|
12690
|
+
"application/json": components["schemas"]["ContactAttestRes"];
|
|
12691
|
+
};
|
|
12692
|
+
};
|
|
12693
|
+
/** @description Unauthorized */
|
|
12694
|
+
401: {
|
|
12695
|
+
headers: {
|
|
12696
|
+
[name: string]: unknown;
|
|
12697
|
+
};
|
|
12698
|
+
content: {
|
|
12699
|
+
/** @example {
|
|
12700
|
+
* "code": "ERROR_AUTHENTICATION",
|
|
12701
|
+
* "detail": "Additional error context.",
|
|
12702
|
+
* "status": 401,
|
|
12703
|
+
* "title": "Authentication Error",
|
|
12704
|
+
* "type": "authentication"
|
|
12705
|
+
* } */
|
|
12706
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
12707
|
+
};
|
|
12708
|
+
};
|
|
12709
|
+
/** @description Not Found */
|
|
12710
|
+
404: {
|
|
12711
|
+
headers: {
|
|
12712
|
+
[name: string]: unknown;
|
|
12713
|
+
};
|
|
12714
|
+
content: {
|
|
12715
|
+
/** @example {
|
|
12716
|
+
* "code": "ERROR_CONTACT_VERIFICATION_UPSTREAM_NOT_FOUND",
|
|
12717
|
+
* "contact_id": "Additional error context.",
|
|
12718
|
+
* "detail": "Contact is not registered with the contact-verification service.",
|
|
12719
|
+
* "status": 404,
|
|
12720
|
+
* "title": "Contact Not Registered with Verification Service",
|
|
12721
|
+
* "type": "contact-verification-upstream-not-found"
|
|
12722
|
+
* } */
|
|
12723
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
12724
|
+
};
|
|
12725
|
+
};
|
|
12726
|
+
/** @description Validation Error */
|
|
12727
|
+
422: {
|
|
12728
|
+
headers: {
|
|
12729
|
+
[name: string]: unknown;
|
|
12730
|
+
};
|
|
12731
|
+
content: {
|
|
12732
|
+
"application/problem+json": components["schemas"]["HTTPValidationError"];
|
|
12733
|
+
};
|
|
12734
|
+
};
|
|
12735
|
+
/** @description Bad Gateway */
|
|
12736
|
+
502: {
|
|
12737
|
+
headers: {
|
|
12738
|
+
[name: string]: unknown;
|
|
12739
|
+
};
|
|
12740
|
+
content: {
|
|
12741
|
+
/** @example {
|
|
12742
|
+
* "code": "ERROR_CONTACT_VERIFICATION_UPSTREAM_ERROR",
|
|
12743
|
+
* "detail": "Additional error context.",
|
|
12744
|
+
* "status": 502,
|
|
12745
|
+
* "title": "Contact Verification Service Error",
|
|
12746
|
+
* "type": "contact-verification-upstream"
|
|
12747
|
+
* } */
|
|
12748
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
12749
|
+
};
|
|
12750
|
+
};
|
|
12751
|
+
};
|
|
12752
|
+
};
|
|
12638
12753
|
attest_contact_verification_v1_contacts__contact_id__verifications_attest_post: {
|
|
12639
12754
|
parameters: {
|
|
12640
12755
|
query?: never;
|
|
@@ -12692,6 +12807,23 @@ export interface operations {
|
|
|
12692
12807
|
"application/problem+json": components["schemas"]["Problem"];
|
|
12693
12808
|
};
|
|
12694
12809
|
};
|
|
12810
|
+
/** @description Not Found */
|
|
12811
|
+
404: {
|
|
12812
|
+
headers: {
|
|
12813
|
+
[name: string]: unknown;
|
|
12814
|
+
};
|
|
12815
|
+
content: {
|
|
12816
|
+
/** @example {
|
|
12817
|
+
* "code": "ERROR_CONTACT_VERIFICATION_UPSTREAM_NOT_FOUND",
|
|
12818
|
+
* "contact_id": "Additional error context.",
|
|
12819
|
+
* "detail": "Contact is not registered with the contact-verification service.",
|
|
12820
|
+
* "status": 404,
|
|
12821
|
+
* "title": "Contact Not Registered with Verification Service",
|
|
12822
|
+
* "type": "contact-verification-upstream-not-found"
|
|
12823
|
+
* } */
|
|
12824
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
12825
|
+
};
|
|
12826
|
+
};
|
|
12695
12827
|
/** @description Validation Error */
|
|
12696
12828
|
422: {
|
|
12697
12829
|
headers: {
|