@opusdns/api 1.210.0 → 1.212.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 +2 -0
- package/src/helpers/keys.ts +11 -0
- package/src/helpers/responses.d.ts +6 -2
- package/src/helpers/schemas.d.ts +1 -0
- package/src/openapi.yaml +89 -6
- package/src/schema.d.ts +82 -5
package/package.json
CHANGED
package/src/helpers/constants.ts
CHANGED
|
@@ -2223,6 +2223,7 @@ export const STATUS_TAG_TYPE = {
|
|
|
2223
2223
|
IMPORT_REQUESTED: "IMPORT_REQUESTED",
|
|
2224
2224
|
IMPORT_PENDING: "IMPORT_PENDING",
|
|
2225
2225
|
DNSSEC_PENDING: "DNSSEC_PENDING",
|
|
2226
|
+
TRANSFER_ON_RENEW_PENDING: "TRANSFER_ON_RENEW_PENDING",
|
|
2226
2227
|
} as const satisfies Record<string, StatusTagType>;
|
|
2227
2228
|
|
|
2228
2229
|
export const STATUS_TAG_TYPE_VALUES = [
|
|
@@ -2234,6 +2235,7 @@ export const STATUS_TAG_TYPE_VALUES = [
|
|
|
2234
2235
|
'IMPORT_REQUESTED',
|
|
2235
2236
|
'IMPORT_PENDING',
|
|
2236
2237
|
'DNSSEC_PENDING',
|
|
2238
|
+
'TRANSFER_ON_RENEW_PENDING',
|
|
2237
2239
|
] as const satisfies ReadonlyArray<StatusTagType>;
|
|
2238
2240
|
|
|
2239
2241
|
export const SYNC_OPERATION_TYPE = {
|
package/src/helpers/keys.ts
CHANGED
|
@@ -195,6 +195,7 @@ import type {
|
|
|
195
195
|
DomainRegistrarCredential,
|
|
196
196
|
DomainRenewRequest,
|
|
197
197
|
DomainRenew,
|
|
198
|
+
DomainRenewTransferPending,
|
|
198
199
|
DomainRenewalDetails,
|
|
199
200
|
DomainRenewalPrice,
|
|
200
201
|
Domain,
|
|
@@ -2803,6 +2804,16 @@ export const KEYS_DOMAIN_RENEW = [
|
|
|
2803
2804
|
KEY_DOMAIN_RENEW_PERIOD_EXTENDED,
|
|
2804
2805
|
] as const satisfies (keyof DomainRenew)[];
|
|
2805
2806
|
|
|
2807
|
+
export const KEY_DOMAIN_RENEW_TRANSFER_PENDING_NAME = 'name' satisfies keyof DomainRenewTransferPending;
|
|
2808
|
+
export const KEY_DOMAIN_RENEW_TRANSFER_PENDING_REQUEST_ID = 'request_id' satisfies keyof DomainRenewTransferPending;
|
|
2809
|
+
export const KEY_DOMAIN_RENEW_TRANSFER_PENDING_STATUS = 'status' satisfies keyof DomainRenewTransferPending;
|
|
2810
|
+
|
|
2811
|
+
export const KEYS_DOMAIN_RENEW_TRANSFER_PENDING = [
|
|
2812
|
+
KEY_DOMAIN_RENEW_TRANSFER_PENDING_NAME,
|
|
2813
|
+
KEY_DOMAIN_RENEW_TRANSFER_PENDING_REQUEST_ID,
|
|
2814
|
+
KEY_DOMAIN_RENEW_TRANSFER_PENDING_STATUS,
|
|
2815
|
+
] as const satisfies (keyof DomainRenewTransferPending)[];
|
|
2816
|
+
|
|
2806
2817
|
export const KEY_DOMAIN_RENEWAL_DETAILS_DETAIL_TYPE = 'detail_type' satisfies keyof DomainRenewalDetails;
|
|
2807
2818
|
export const KEY_DOMAIN_RENEWAL_DETAILS_EXPIRES_ON = 'expires_on' satisfies keyof DomainRenewalDetails;
|
|
2808
2819
|
|
|
@@ -36,6 +36,7 @@ import type {
|
|
|
36
36
|
DomainForwardVisitsByKey,
|
|
37
37
|
DomainForwardZone,
|
|
38
38
|
DomainRenew,
|
|
39
|
+
DomainRenewTransferPending,
|
|
39
40
|
DomainRestore,
|
|
40
41
|
DomainSearch,
|
|
41
42
|
DomainStatistics,
|
|
@@ -1201,10 +1202,13 @@ export type POST_DomainsByDomainReferenceDnssecEnable_Response_404 = Problem;
|
|
|
1201
1202
|
export type POST_DomainsByDomainReferenceDnssecEnable_Response_409 = Problem;
|
|
1202
1203
|
export type POST_DomainsByDomainReferenceDnssecEnable_Response_422 = Problem;
|
|
1203
1204
|
|
|
1204
|
-
export type POST_DomainsByDomainReferenceRenew_Response = POST_DomainsByDomainReferenceRenew_Response_200 | POST_DomainsByDomainReferenceRenew_Response_422;
|
|
1205
|
+
export type POST_DomainsByDomainReferenceRenew_Response = POST_DomainsByDomainReferenceRenew_Response_200 | POST_DomainsByDomainReferenceRenew_Response_202 | POST_DomainsByDomainReferenceRenew_Response_409 | POST_DomainsByDomainReferenceRenew_Response_422 | POST_DomainsByDomainReferenceRenew_Response_503;
|
|
1205
1206
|
|
|
1206
1207
|
export type POST_DomainsByDomainReferenceRenew_Response_200 = DomainRenew;
|
|
1207
|
-
export type
|
|
1208
|
+
export type POST_DomainsByDomainReferenceRenew_Response_202 = DomainRenewTransferPending;
|
|
1209
|
+
export type POST_DomainsByDomainReferenceRenew_Response_409 = Problem;
|
|
1210
|
+
export type POST_DomainsByDomainReferenceRenew_Response_422 = Problem;
|
|
1211
|
+
export type POST_DomainsByDomainReferenceRenew_Response_503 = Problem;
|
|
1208
1212
|
|
|
1209
1213
|
export type POST_DomainsByDomainReferenceRestore_Response = POST_DomainsByDomainReferenceRestore_Response_200 | POST_DomainsByDomainReferenceRestore_Response_422;
|
|
1210
1214
|
|
package/src/helpers/schemas.d.ts
CHANGED
|
@@ -242,6 +242,7 @@ export type DomainRecommendationsContextCreate = components['schemas']['DomainRe
|
|
|
242
242
|
export type DomainRegistrarCredential = components['schemas']['DomainRegistrarCredentialResponse'];
|
|
243
243
|
export type DomainRenewRequest = components['schemas']['DomainRenewRequest'];
|
|
244
244
|
export type DomainRenew = components['schemas']['DomainRenewResponse'];
|
|
245
|
+
export type DomainRenewTransferPending = components['schemas']['DomainRenewTransferPendingResponse'];
|
|
245
246
|
export type DomainRenewalDetails = components['schemas']['DomainRenewalDetails'];
|
|
246
247
|
export type DomainRenewalPrice = components['schemas']['DomainRenewalPriceResponse'];
|
|
247
248
|
export type Domain = components['schemas']['DomainResponse'];
|
package/src/openapi.yaml
CHANGED
|
@@ -6308,6 +6308,7 @@ components:
|
|
|
6308
6308
|
data:
|
|
6309
6309
|
anyOf:
|
|
6310
6310
|
- $ref: '#/components/schemas/DomainRenewResponse'
|
|
6311
|
+
- $ref: '#/components/schemas/DomainRenewTransferPendingResponse'
|
|
6311
6312
|
- type: string
|
|
6312
6313
|
headers:
|
|
6313
6314
|
additionalProperties:
|
|
@@ -13217,6 +13218,28 @@ components:
|
|
|
13217
13218
|
- period_extended
|
|
13218
13219
|
title: DomainRenewResponse
|
|
13219
13220
|
type: object
|
|
13221
|
+
DomainRenewTransferPendingResponse:
|
|
13222
|
+
properties:
|
|
13223
|
+
name:
|
|
13224
|
+
description: The domain name the renewal was requested for
|
|
13225
|
+
title: Name
|
|
13226
|
+
type: string
|
|
13227
|
+
request_id:
|
|
13228
|
+
description: Identifier of the transfer this renewal started
|
|
13229
|
+
title: Request Id
|
|
13230
|
+
type: string
|
|
13231
|
+
status:
|
|
13232
|
+
const: transfer_pending
|
|
13233
|
+
default: transfer_pending
|
|
13234
|
+
description: The domain is held at another registrar, so the renewal transfers
|
|
13235
|
+
it into OpusDNS. The outcome is reported as domain events.
|
|
13236
|
+
title: Status
|
|
13237
|
+
type: string
|
|
13238
|
+
required:
|
|
13239
|
+
- name
|
|
13240
|
+
- request_id
|
|
13241
|
+
title: DomainRenewTransferPendingResponse
|
|
13242
|
+
type: object
|
|
13220
13243
|
DomainRenewalDetails:
|
|
13221
13244
|
properties:
|
|
13222
13245
|
detail_type:
|
|
@@ -21656,6 +21679,7 @@ components:
|
|
|
21656
21679
|
- IMPORT_REQUESTED
|
|
21657
21680
|
- IMPORT_PENDING
|
|
21658
21681
|
- DNSSEC_PENDING
|
|
21682
|
+
- TRANSFER_ON_RENEW_PENDING
|
|
21659
21683
|
title: StatusTagType
|
|
21660
21684
|
type: string
|
|
21661
21685
|
StrictMoneyDecimal:
|
|
@@ -24831,7 +24855,7 @@ info:
|
|
|
24831
24855
|
\n\n"
|
|
24832
24856
|
summary: OpusDNS - your gateway to a seamless domain management experience.
|
|
24833
24857
|
title: OpusDNS API
|
|
24834
|
-
version: 2026-10-
|
|
24858
|
+
version: 2026-10-05-214656
|
|
24835
24859
|
x-logo:
|
|
24836
24860
|
altText: OpusDNS API Reference
|
|
24837
24861
|
url: https://d24lr4zqs1tgqh.cloudfront.net/c9505a20-5ae1-406c-b060-d392569caebf.jpg
|
|
@@ -35667,7 +35691,13 @@ paths:
|
|
|
35667
35691
|
description: 'Extends the registration period of an existing domain. The renewal
|
|
35668
35692
|
period is added
|
|
35669
35693
|
|
|
35670
|
-
to the current expiration date of the domain.
|
|
35694
|
+
to the current expiration date of the domain.
|
|
35695
|
+
|
|
35696
|
+
|
|
35697
|
+
For a domain held at another registrar, the renewal transfers the domain into
|
|
35698
|
+
OpusDNS
|
|
35699
|
+
|
|
35700
|
+
and answers 202 before the transfer starts.'
|
|
35671
35701
|
operationId: renew_domain_v1_domains__domain_reference__renew_post
|
|
35672
35702
|
parameters:
|
|
35673
35703
|
- in: path
|
|
@@ -35697,12 +35727,65 @@ paths:
|
|
|
35697
35727
|
schema:
|
|
35698
35728
|
$ref: '#/components/schemas/DomainRenewResponse'
|
|
35699
35729
|
description: Successful Response
|
|
35730
|
+
'202':
|
|
35731
|
+
content:
|
|
35732
|
+
application/json:
|
|
35733
|
+
schema:
|
|
35734
|
+
$ref: '#/components/schemas/DomainRenewTransferPendingResponse'
|
|
35735
|
+
description: 'The domain is held at another registrar, so the renewal transfers
|
|
35736
|
+
it into OpusDNS: it is unlocked there, its auth code and contacts are
|
|
35737
|
+
copied, and a transfer-in is requested at the transfer price. The transfer''s
|
|
35738
|
+
progress and outcome are reported as domain events, including an inbound-transfer
|
|
35739
|
+
failure event if any step fails.'
|
|
35740
|
+
'409':
|
|
35741
|
+
content:
|
|
35742
|
+
application/problem+json:
|
|
35743
|
+
example:
|
|
35744
|
+
code: ERROR_DOMAIN_TRANSFER_ON_RENEW_PENDING
|
|
35745
|
+
detail: A renewal already started the transfer of this domain into
|
|
35746
|
+
OpusDNS
|
|
35747
|
+
domain_name: example.com
|
|
35748
|
+
status: 409
|
|
35749
|
+
title: Domain Management Error
|
|
35750
|
+
type: domain-transfer-on-renew-pending
|
|
35751
|
+
schema:
|
|
35752
|
+
$ref: '#/components/schemas/Problem'
|
|
35753
|
+
description: Conflict
|
|
35700
35754
|
'422':
|
|
35701
35755
|
content:
|
|
35702
35756
|
application/problem+json:
|
|
35757
|
+
example:
|
|
35758
|
+
code: ERROR_REGISTRAR_CREDENTIAL_REJECTED
|
|
35759
|
+
detail: INTERNETX rejected the connected registrar credential holding
|
|
35760
|
+
the domain. Update the credential under Connected Registrars, then
|
|
35761
|
+
retry the renewal
|
|
35762
|
+
domain_name: example.com
|
|
35763
|
+
registrar: INTERNETX
|
|
35764
|
+
status: 422
|
|
35765
|
+
title: Registrar Credential Rejected
|
|
35766
|
+
type: domain-registrar-credential-rejected
|
|
35703
35767
|
schema:
|
|
35704
|
-
$ref: '#/components/schemas/
|
|
35705
|
-
description:
|
|
35768
|
+
$ref: '#/components/schemas/Problem'
|
|
35769
|
+
description: Unprocessable Content
|
|
35770
|
+
'503':
|
|
35771
|
+
content:
|
|
35772
|
+
application/problem+json:
|
|
35773
|
+
example:
|
|
35774
|
+
code: ERROR_DOMAIN_REGISTRAR_UNAVAILABLE
|
|
35775
|
+
detail: The registrar currently holding the domain is unavailable,
|
|
35776
|
+
please retry later
|
|
35777
|
+
domain_name: example.com
|
|
35778
|
+
status: 503
|
|
35779
|
+
title: Registrar Unavailable
|
|
35780
|
+
type: domain-registrar-unavailable
|
|
35781
|
+
schema:
|
|
35782
|
+
$ref: '#/components/schemas/Problem'
|
|
35783
|
+
description: Service Unavailable
|
|
35784
|
+
headers:
|
|
35785
|
+
Retry-After:
|
|
35786
|
+
description: Seconds to wait before retrying the renewal
|
|
35787
|
+
schema:
|
|
35788
|
+
type: integer
|
|
35706
35789
|
security:
|
|
35707
35790
|
- OAuth2PasswordBearer: []
|
|
35708
35791
|
- APIKeyHeader: []
|
|
@@ -36939,7 +37022,7 @@ paths:
|
|
|
36939
37022
|
$ref: '#/components/schemas/SortOrder'
|
|
36940
37023
|
default: desc
|
|
36941
37024
|
description: Sort order direction
|
|
36942
|
-
- description: Filter by
|
|
37025
|
+
- description: Filter by the type of object the event is about
|
|
36943
37026
|
in: query
|
|
36944
37027
|
name: object_type
|
|
36945
37028
|
required: false
|
|
@@ -36947,7 +37030,7 @@ paths:
|
|
|
36947
37030
|
anyOf:
|
|
36948
37031
|
- $ref: '#/components/schemas/EventObjectType'
|
|
36949
37032
|
- type: 'null'
|
|
36950
|
-
description: Filter by
|
|
37033
|
+
description: Filter by the type of object the event is about
|
|
36951
37034
|
title: Object Type
|
|
36952
37035
|
- description: Filter by specific domain/contact/host name
|
|
36953
37036
|
in: query
|
package/src/schema.d.ts
CHANGED
|
@@ -1612,6 +1612,9 @@ export interface paths {
|
|
|
1612
1612
|
* Renew a domain
|
|
1613
1613
|
* @description Extends the registration period of an existing domain. The renewal period is added
|
|
1614
1614
|
* to the current expiration date of the domain.
|
|
1615
|
+
*
|
|
1616
|
+
* For a domain held at another registrar, the renewal transfers the domain into OpusDNS
|
|
1617
|
+
* and answers 202 before the transfer starts.
|
|
1615
1618
|
*/
|
|
1616
1619
|
post: operations["renew_domain_v1_domains__domain_reference__renew_post"];
|
|
1617
1620
|
delete?: never;
|
|
@@ -7912,7 +7915,7 @@ export interface components {
|
|
|
7912
7915
|
*/
|
|
7913
7916
|
truncated: boolean;
|
|
7914
7917
|
} | {
|
|
7915
|
-
data?: components["schemas"]["DomainRenewResponse"] | string;
|
|
7918
|
+
data?: components["schemas"]["DomainRenewResponse"] | components["schemas"]["DomainRenewTransferPendingResponse"] | string;
|
|
7916
7919
|
/**
|
|
7917
7920
|
* Headers
|
|
7918
7921
|
* @description Selected response headers
|
|
@@ -12632,6 +12635,26 @@ export interface components {
|
|
|
12632
12635
|
/** @description The period by which the domain was extended */
|
|
12633
12636
|
period_extended: components["schemas"]["DomainPeriod"];
|
|
12634
12637
|
};
|
|
12638
|
+
/** DomainRenewTransferPendingResponse */
|
|
12639
|
+
DomainRenewTransferPendingResponse: {
|
|
12640
|
+
/**
|
|
12641
|
+
* Name
|
|
12642
|
+
* @description The domain name the renewal was requested for
|
|
12643
|
+
*/
|
|
12644
|
+
name: string;
|
|
12645
|
+
/**
|
|
12646
|
+
* Request Id
|
|
12647
|
+
* @description Identifier of the transfer this renewal started
|
|
12648
|
+
*/
|
|
12649
|
+
request_id: string;
|
|
12650
|
+
/**
|
|
12651
|
+
* Status
|
|
12652
|
+
* @description The domain is held at another registrar, so the renewal transfers it into OpusDNS. The outcome is reported as domain events.
|
|
12653
|
+
* @default transfer_pending
|
|
12654
|
+
* @constant
|
|
12655
|
+
*/
|
|
12656
|
+
status: "transfer_pending";
|
|
12657
|
+
};
|
|
12635
12658
|
/** DomainRenewalDetails */
|
|
12636
12659
|
DomainRenewalDetails: {
|
|
12637
12660
|
/**
|
|
@@ -18236,7 +18259,7 @@ export interface components {
|
|
|
18236
18259
|
* StatusTagType
|
|
18237
18260
|
* @enum {string}
|
|
18238
18261
|
*/
|
|
18239
|
-
StatusTagType: "VERIFICATION_REQUIRED" | "CREATE_REQUESTED" | "INBOUND_TRANSFER_PENDING" | "OUTBOUND_TRANSFER_PENDING" | "EXTERNAL" | "IMPORT_REQUESTED" | "IMPORT_PENDING" | "DNSSEC_PENDING";
|
|
18262
|
+
StatusTagType: "VERIFICATION_REQUIRED" | "CREATE_REQUESTED" | "INBOUND_TRANSFER_PENDING" | "OUTBOUND_TRANSFER_PENDING" | "EXTERNAL" | "IMPORT_REQUESTED" | "IMPORT_PENDING" | "DNSSEC_PENDING" | "TRANSFER_ON_RENEW_PENDING";
|
|
18240
18263
|
/** @example 12.50 */
|
|
18241
18264
|
StrictMoneyDecimal: string;
|
|
18242
18265
|
/** Support */
|
|
@@ -28648,13 +28671,67 @@ export interface operations {
|
|
|
28648
28671
|
"application/json": components["schemas"]["DomainRenewResponse"];
|
|
28649
28672
|
};
|
|
28650
28673
|
};
|
|
28651
|
-
/** @description
|
|
28674
|
+
/** @description The domain is held at another registrar, so the renewal transfers it into OpusDNS: it is unlocked there, its auth code and contacts are copied, and a transfer-in is requested at the transfer price. The transfer's progress and outcome are reported as domain events, including an inbound-transfer failure event if any step fails. */
|
|
28675
|
+
202: {
|
|
28676
|
+
headers: {
|
|
28677
|
+
[name: string]: unknown;
|
|
28678
|
+
};
|
|
28679
|
+
content: {
|
|
28680
|
+
"application/json": components["schemas"]["DomainRenewTransferPendingResponse"];
|
|
28681
|
+
};
|
|
28682
|
+
};
|
|
28683
|
+
/** @description Conflict */
|
|
28684
|
+
409: {
|
|
28685
|
+
headers: {
|
|
28686
|
+
[name: string]: unknown;
|
|
28687
|
+
};
|
|
28688
|
+
content: {
|
|
28689
|
+
/** @example {
|
|
28690
|
+
* "code": "ERROR_DOMAIN_TRANSFER_ON_RENEW_PENDING",
|
|
28691
|
+
* "detail": "A renewal already started the transfer of this domain into OpusDNS",
|
|
28692
|
+
* "domain_name": "example.com",
|
|
28693
|
+
* "status": 409,
|
|
28694
|
+
* "title": "Domain Management Error",
|
|
28695
|
+
* "type": "domain-transfer-on-renew-pending"
|
|
28696
|
+
* } */
|
|
28697
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
28698
|
+
};
|
|
28699
|
+
};
|
|
28700
|
+
/** @description Unprocessable Content */
|
|
28652
28701
|
422: {
|
|
28653
28702
|
headers: {
|
|
28654
28703
|
[name: string]: unknown;
|
|
28655
28704
|
};
|
|
28656
28705
|
content: {
|
|
28657
|
-
|
|
28706
|
+
/** @example {
|
|
28707
|
+
* "code": "ERROR_REGISTRAR_CREDENTIAL_REJECTED",
|
|
28708
|
+
* "detail": "INTERNETX rejected the connected registrar credential holding the domain. Update the credential under Connected Registrars, then retry the renewal",
|
|
28709
|
+
* "domain_name": "example.com",
|
|
28710
|
+
* "registrar": "INTERNETX",
|
|
28711
|
+
* "status": 422,
|
|
28712
|
+
* "title": "Registrar Credential Rejected",
|
|
28713
|
+
* "type": "domain-registrar-credential-rejected"
|
|
28714
|
+
* } */
|
|
28715
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
28716
|
+
};
|
|
28717
|
+
};
|
|
28718
|
+
/** @description Service Unavailable */
|
|
28719
|
+
503: {
|
|
28720
|
+
headers: {
|
|
28721
|
+
/** @description Seconds to wait before retrying the renewal */
|
|
28722
|
+
"Retry-After"?: number;
|
|
28723
|
+
[name: string]: unknown;
|
|
28724
|
+
};
|
|
28725
|
+
content: {
|
|
28726
|
+
/** @example {
|
|
28727
|
+
* "code": "ERROR_DOMAIN_REGISTRAR_UNAVAILABLE",
|
|
28728
|
+
* "detail": "The registrar currently holding the domain is unavailable, please retry later",
|
|
28729
|
+
* "domain_name": "example.com",
|
|
28730
|
+
* "status": 503,
|
|
28731
|
+
* "title": "Registrar Unavailable",
|
|
28732
|
+
* "type": "domain-registrar-unavailable"
|
|
28733
|
+
* } */
|
|
28734
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
28658
28735
|
};
|
|
28659
28736
|
};
|
|
28660
28737
|
};
|
|
@@ -29745,7 +29822,7 @@ export interface operations {
|
|
|
29745
29822
|
sort_by?: components["schemas"]["EventSortField"];
|
|
29746
29823
|
/** @description Sort order direction */
|
|
29747
29824
|
sort_order?: components["schemas"]["SortOrder"];
|
|
29748
|
-
/** @description Filter by */
|
|
29825
|
+
/** @description Filter by the type of object the event is about */
|
|
29749
29826
|
object_type?: components["schemas"]["EventObjectType"] | null;
|
|
29750
29827
|
/** @description Filter by specific domain/contact/host name */
|
|
29751
29828
|
object_id?: string | null;
|