@opusdns/api 0.305.0 → 0.306.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/constants.ts +255 -1
- package/src/helpers/keys.ts +428 -0
- package/src/helpers/requests.d.ts +54 -1
- package/src/helpers/responses.d.ts +111 -1
- package/src/helpers/schemas-arrays.d.ts +29 -1
- package/src/helpers/schemas.d.ts +128 -0
- package/src/openapi.yaml +268 -4
- package/src/schema.d.ts +155 -0
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/attest": {
|
|
475
|
+
parameters: {
|
|
476
|
+
query?: never;
|
|
477
|
+
header?: never;
|
|
478
|
+
path?: never;
|
|
479
|
+
cookie?: never;
|
|
480
|
+
};
|
|
481
|
+
get?: never;
|
|
482
|
+
put?: never;
|
|
483
|
+
/**
|
|
484
|
+
* Attest a contact verification
|
|
485
|
+
* @description Submit one or more contact-verification attestations. Returns the per-claim verification state.
|
|
486
|
+
*/
|
|
487
|
+
post: operations["attest_contact_verification_v1_contacts__contact_id__verifications_attest_post"];
|
|
488
|
+
delete?: never;
|
|
489
|
+
options?: never;
|
|
490
|
+
head?: never;
|
|
491
|
+
patch?: never;
|
|
492
|
+
trace?: never;
|
|
493
|
+
};
|
|
474
494
|
"/v1/dns": {
|
|
475
495
|
parameters: {
|
|
476
496
|
query?: never;
|
|
@@ -2748,6 +2768,24 @@ export interface components {
|
|
|
2748
2768
|
* @enum {string}
|
|
2749
2769
|
*/
|
|
2750
2770
|
ConditionOperator: "equals" | "not_equals" | "in" | "not_in";
|
|
2771
|
+
/** ContactAttestReq */
|
|
2772
|
+
ContactAttestReq: {
|
|
2773
|
+
/** Attestations */
|
|
2774
|
+
attestations: components["schemas"]["ContactAttestVerificationReq"][];
|
|
2775
|
+
};
|
|
2776
|
+
/** ContactAttestRes */
|
|
2777
|
+
ContactAttestRes: {
|
|
2778
|
+
/** Verifications */
|
|
2779
|
+
verifications: components["schemas"]["ContactVerificationStatus"][];
|
|
2780
|
+
};
|
|
2781
|
+
/** ContactAttestVerificationReq */
|
|
2782
|
+
ContactAttestVerificationReq: {
|
|
2783
|
+
/** Attestation Reference */
|
|
2784
|
+
attestation_reference: string;
|
|
2785
|
+
claim: components["schemas"]["ContactVerificationClaim"];
|
|
2786
|
+
method: components["schemas"]["ContactVerificationMethod"];
|
|
2787
|
+
proof: components["schemas"]["ContactVerificationProof"];
|
|
2788
|
+
};
|
|
2751
2789
|
/**
|
|
2752
2790
|
* ContactAttributeDefinition
|
|
2753
2791
|
* @description Definition of a possible attribute for a TLD.
|
|
@@ -3538,6 +3576,11 @@ export interface components {
|
|
|
3538
3576
|
*/
|
|
3539
3577
|
verified_on?: Date | null;
|
|
3540
3578
|
};
|
|
3579
|
+
/**
|
|
3580
|
+
* ContactVerificationClaim
|
|
3581
|
+
* @enum {string}
|
|
3582
|
+
*/
|
|
3583
|
+
ContactVerificationClaim: "NAME" | "ADDRESS" | "EMAIL" | "PHONE" | "LEGAL_ENTITY";
|
|
3541
3584
|
/** ContactVerificationEmailResponse */
|
|
3542
3585
|
ContactVerificationEmailResponse: {
|
|
3543
3586
|
/**
|
|
@@ -3584,6 +3627,16 @@ export interface components {
|
|
|
3584
3627
|
*/
|
|
3585
3628
|
verified_on?: Date | null;
|
|
3586
3629
|
};
|
|
3630
|
+
/**
|
|
3631
|
+
* ContactVerificationMethod
|
|
3632
|
+
* @enum {string}
|
|
3633
|
+
*/
|
|
3634
|
+
ContactVerificationMethod: "AUTH" | "VDIG" | "ELECTRONIC_DOCUMENT" | "PHYSICAL_DOCUMENT" | "BVR" | "PVR" | "DATA" | "REACHABILITY";
|
|
3635
|
+
/**
|
|
3636
|
+
* ContactVerificationProof
|
|
3637
|
+
* @enum {string}
|
|
3638
|
+
*/
|
|
3639
|
+
ContactVerificationProof: "IDCARD" | "PASSPORT" | "POPULATION_REGISTER" | "RESIDENCE_PERMIT" | "PROOF_OF_ARRIVAL" | "DRIVERS_LICENCE" | "COMPANY_REGISTER" | "COMPANY_STATEMENT" | "BANK_ACCOUNT" | "ONLINE_PAYMENT_ACCOUNT" | "UTILITY_ACCOUNT" | "BANK_STATEMENT" | "TAX_STATEMENT" | "WRITTEN_ATTESTATION" | "DIGITAL_ATTESTATION" | "POSTAL_VER_TRANSACTION_LOG" | "EMAIL_VER_TRANSACTION_LOG" | "ADDRESS_DATABASE";
|
|
3587
3640
|
/** ContactVerificationResponse */
|
|
3588
3641
|
ContactVerificationResponse: {
|
|
3589
3642
|
/**
|
|
@@ -3630,6 +3683,24 @@ export interface components {
|
|
|
3630
3683
|
*/
|
|
3631
3684
|
verified_on?: Date | null;
|
|
3632
3685
|
};
|
|
3686
|
+
/**
|
|
3687
|
+
* ContactVerificationState
|
|
3688
|
+
* @enum {string}
|
|
3689
|
+
*/
|
|
3690
|
+
ContactVerificationState: "UNVERIFIED" | "VERIFIED" | "IN_PROGRESS" | "EXPIRED";
|
|
3691
|
+
/** ContactVerificationStatus */
|
|
3692
|
+
ContactVerificationStatus: {
|
|
3693
|
+
/** Attestation Reference */
|
|
3694
|
+
attestation_reference?: string | null;
|
|
3695
|
+
claim: components["schemas"]["ContactVerificationClaim"];
|
|
3696
|
+
/** Expires On */
|
|
3697
|
+
expires_on?: Date | null;
|
|
3698
|
+
method?: components["schemas"]["ContactVerificationMethod"] | null;
|
|
3699
|
+
proof?: components["schemas"]["ContactVerificationProof"] | null;
|
|
3700
|
+
state: components["schemas"]["ContactVerificationState"];
|
|
3701
|
+
/** Verified On */
|
|
3702
|
+
verified_on?: Date | null;
|
|
3703
|
+
};
|
|
3633
3704
|
/** ContactsBase */
|
|
3634
3705
|
ContactsBase: {
|
|
3635
3706
|
/**
|
|
@@ -12552,6 +12623,90 @@ export interface operations {
|
|
|
12552
12623
|
};
|
|
12553
12624
|
};
|
|
12554
12625
|
};
|
|
12626
|
+
attest_contact_verification_v1_contacts__contact_id__verifications_attest_post: {
|
|
12627
|
+
parameters: {
|
|
12628
|
+
query?: never;
|
|
12629
|
+
header?: never;
|
|
12630
|
+
path: {
|
|
12631
|
+
contact_id: TypeId<"contact">;
|
|
12632
|
+
};
|
|
12633
|
+
cookie?: never;
|
|
12634
|
+
};
|
|
12635
|
+
requestBody: {
|
|
12636
|
+
content: {
|
|
12637
|
+
"application/json": components["schemas"]["ContactAttestReq"];
|
|
12638
|
+
};
|
|
12639
|
+
};
|
|
12640
|
+
responses: {
|
|
12641
|
+
/** @description Successful Response */
|
|
12642
|
+
200: {
|
|
12643
|
+
headers: {
|
|
12644
|
+
[name: string]: unknown;
|
|
12645
|
+
};
|
|
12646
|
+
content: {
|
|
12647
|
+
"application/json": components["schemas"]["ContactAttestRes"];
|
|
12648
|
+
};
|
|
12649
|
+
};
|
|
12650
|
+
/** @description Bad Request */
|
|
12651
|
+
400: {
|
|
12652
|
+
headers: {
|
|
12653
|
+
[name: string]: unknown;
|
|
12654
|
+
};
|
|
12655
|
+
content: {
|
|
12656
|
+
/** @example {
|
|
12657
|
+
* "code": "ERROR_DOMAIN_VERIFICATION_INCONSISTENT_METHOD_PROOF",
|
|
12658
|
+
* "detail": "All attestations in a single submission must share the same method and proof. Submit separate requests if you used different methods or proofs.",
|
|
12659
|
+
* "domain_name": "Additional error context.",
|
|
12660
|
+
* "status": 400,
|
|
12661
|
+
* "title": "Domain Verification Inconsistent Method/Proof",
|
|
12662
|
+
* "type": "domain-verification-inconsistent-method-proof"
|
|
12663
|
+
* } */
|
|
12664
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
12665
|
+
};
|
|
12666
|
+
};
|
|
12667
|
+
/** @description Unauthorized */
|
|
12668
|
+
401: {
|
|
12669
|
+
headers: {
|
|
12670
|
+
[name: string]: unknown;
|
|
12671
|
+
};
|
|
12672
|
+
content: {
|
|
12673
|
+
/** @example {
|
|
12674
|
+
* "code": "ERROR_AUTHENTICATION",
|
|
12675
|
+
* "detail": "Additional error context.",
|
|
12676
|
+
* "status": 401,
|
|
12677
|
+
* "title": "Authentication Error",
|
|
12678
|
+
* "type": "authentication"
|
|
12679
|
+
* } */
|
|
12680
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
12681
|
+
};
|
|
12682
|
+
};
|
|
12683
|
+
/** @description Validation Error */
|
|
12684
|
+
422: {
|
|
12685
|
+
headers: {
|
|
12686
|
+
[name: string]: unknown;
|
|
12687
|
+
};
|
|
12688
|
+
content: {
|
|
12689
|
+
"application/problem+json": components["schemas"]["HTTPValidationError"];
|
|
12690
|
+
};
|
|
12691
|
+
};
|
|
12692
|
+
/** @description Bad Gateway */
|
|
12693
|
+
502: {
|
|
12694
|
+
headers: {
|
|
12695
|
+
[name: string]: unknown;
|
|
12696
|
+
};
|
|
12697
|
+
content: {
|
|
12698
|
+
/** @example {
|
|
12699
|
+
* "code": "ERROR_CONTACT_VERIFICATION_UPSTREAM_ERROR",
|
|
12700
|
+
* "detail": "Additional error context.",
|
|
12701
|
+
* "status": 502,
|
|
12702
|
+
* "title": "Contact Verification Service Error",
|
|
12703
|
+
* "type": "contact-verification-upstream"
|
|
12704
|
+
* } */
|
|
12705
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
12706
|
+
};
|
|
12707
|
+
};
|
|
12708
|
+
};
|
|
12709
|
+
};
|
|
12555
12710
|
list_zones_v1_dns_get: {
|
|
12556
12711
|
parameters: {
|
|
12557
12712
|
query?: {
|