@opusdns/api 1.211.0 → 1.213.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 CHANGED
@@ -3,7 +3,7 @@
3
3
  "@opusdns/api-spec-ts-generator": "^1.6.0"
4
4
  },
5
5
  "name": "@opusdns/api",
6
- "version": "1.211.0",
6
+ "version": "1.213.0",
7
7
  "description": "TypeScript types for the OpusDNS OpenAPI specification",
8
8
  "main": "./src/index.ts",
9
9
  "module": "./src/index.ts",
@@ -274,6 +274,7 @@ export const BILLING_TRANSACTION_PRODUCT_TYPE = {
274
274
  WHITELABEL_BRANDING_PLUS: "whitelabel_branding_plus",
275
275
  RAS_DOMAIN_LIFECYCLE: "ras_domain_lifecycle",
276
276
  AMS_DOMAIN_LIFECYCLE: "ams_domain_lifecycle",
277
+ AMS_MAINTENANCE_FEE: "ams_maintenance_fee",
277
278
  } as const satisfies Record<string, BillingTransactionProductType>;
278
279
 
279
280
  export const BILLING_TRANSACTION_PRODUCT_TYPE_VALUES = [
@@ -287,6 +288,7 @@ export const BILLING_TRANSACTION_PRODUCT_TYPE_VALUES = [
287
288
  'whitelabel_branding_plus',
288
289
  'ras_domain_lifecycle',
289
290
  'ams_domain_lifecycle',
291
+ 'ams_maintenance_fee',
290
292
  ] as const satisfies ReadonlyArray<BillingTransactionProductType>;
291
293
 
292
294
  export const BILLING_TRANSACTION_SORT_FIELD = {
@@ -2223,6 +2225,7 @@ export const STATUS_TAG_TYPE = {
2223
2225
  IMPORT_REQUESTED: "IMPORT_REQUESTED",
2224
2226
  IMPORT_PENDING: "IMPORT_PENDING",
2225
2227
  DNSSEC_PENDING: "DNSSEC_PENDING",
2228
+ TRANSFER_ON_RENEW_PENDING: "TRANSFER_ON_RENEW_PENDING",
2226
2229
  } as const satisfies Record<string, StatusTagType>;
2227
2230
 
2228
2231
  export const STATUS_TAG_TYPE_VALUES = [
@@ -2234,6 +2237,7 @@ export const STATUS_TAG_TYPE_VALUES = [
2234
2237
  'IMPORT_REQUESTED',
2235
2238
  'IMPORT_PENDING',
2236
2239
  'DNSSEC_PENDING',
2240
+ 'TRANSFER_ON_RENEW_PENDING',
2237
2241
  ] as const satisfies ReadonlyArray<StatusTagType>;
2238
2242
 
2239
2243
  export const SYNC_OPERATION_TYPE = {
@@ -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 POST_DomainsByDomainReferenceRenew_Response_422 = HTTPValidationError;
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
 
@@ -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
@@ -423,6 +423,7 @@ components:
423
423
  - whitelabel_branding_plus
424
424
  - ras_domain_lifecycle
425
425
  - ams_domain_lifecycle
426
+ - ams_maintenance_fee
426
427
  title: BillingTransactionProductType
427
428
  type: string
428
429
  BillingTransactionResponse:
@@ -6308,6 +6309,7 @@ components:
6308
6309
  data:
6309
6310
  anyOf:
6310
6311
  - $ref: '#/components/schemas/DomainRenewResponse'
6312
+ - $ref: '#/components/schemas/DomainRenewTransferPendingResponse'
6311
6313
  - type: string
6312
6314
  headers:
6313
6315
  additionalProperties:
@@ -13217,6 +13219,28 @@ components:
13217
13219
  - period_extended
13218
13220
  title: DomainRenewResponse
13219
13221
  type: object
13222
+ DomainRenewTransferPendingResponse:
13223
+ properties:
13224
+ name:
13225
+ description: The domain name the renewal was requested for
13226
+ title: Name
13227
+ type: string
13228
+ request_id:
13229
+ description: Identifier of the transfer this renewal started
13230
+ title: Request Id
13231
+ type: string
13232
+ status:
13233
+ const: transfer_pending
13234
+ default: transfer_pending
13235
+ description: The domain is held at another registrar, so the renewal transfers
13236
+ it into OpusDNS. The outcome is reported as domain events.
13237
+ title: Status
13238
+ type: string
13239
+ required:
13240
+ - name
13241
+ - request_id
13242
+ title: DomainRenewTransferPendingResponse
13243
+ type: object
13220
13244
  DomainRenewalDetails:
13221
13245
  properties:
13222
13246
  detail_type:
@@ -21656,6 +21680,7 @@ components:
21656
21680
  - IMPORT_REQUESTED
21657
21681
  - IMPORT_PENDING
21658
21682
  - DNSSEC_PENDING
21683
+ - TRANSFER_ON_RENEW_PENDING
21659
21684
  title: StatusTagType
21660
21685
  type: string
21661
21686
  StrictMoneyDecimal:
@@ -24831,7 +24856,7 @@ info:
24831
24856
  \n\n"
24832
24857
  summary: OpusDNS - your gateway to a seamless domain management experience.
24833
24858
  title: OpusDNS API
24834
- version: 2026-10-02-174435
24859
+ version: 2026-10-07-124213
24835
24860
  x-logo:
24836
24861
  altText: OpusDNS API Reference
24837
24862
  url: https://d24lr4zqs1tgqh.cloudfront.net/c9505a20-5ae1-406c-b060-d392569caebf.jpg
@@ -35667,7 +35692,13 @@ paths:
35667
35692
  description: 'Extends the registration period of an existing domain. The renewal
35668
35693
  period is added
35669
35694
 
35670
- to the current expiration date of the domain.'
35695
+ to the current expiration date of the domain.
35696
+
35697
+
35698
+ For a domain held at another registrar, the renewal transfers the domain into
35699
+ OpusDNS
35700
+
35701
+ and answers 202 before the transfer starts.'
35671
35702
  operationId: renew_domain_v1_domains__domain_reference__renew_post
35672
35703
  parameters:
35673
35704
  - in: path
@@ -35697,12 +35728,65 @@ paths:
35697
35728
  schema:
35698
35729
  $ref: '#/components/schemas/DomainRenewResponse'
35699
35730
  description: Successful Response
35731
+ '202':
35732
+ content:
35733
+ application/json:
35734
+ schema:
35735
+ $ref: '#/components/schemas/DomainRenewTransferPendingResponse'
35736
+ description: 'The domain is held at another registrar, so the renewal transfers
35737
+ it into OpusDNS: it is unlocked there, its auth code and contacts are
35738
+ copied, and a transfer-in is requested at the transfer price. The transfer''s
35739
+ progress and outcome are reported as domain events, including an inbound-transfer
35740
+ failure event if any step fails.'
35741
+ '409':
35742
+ content:
35743
+ application/problem+json:
35744
+ example:
35745
+ code: ERROR_DOMAIN_TRANSFER_ON_RENEW_PENDING
35746
+ detail: A renewal already started the transfer of this domain into
35747
+ OpusDNS
35748
+ domain_name: example.com
35749
+ status: 409
35750
+ title: Domain Management Error
35751
+ type: domain-transfer-on-renew-pending
35752
+ schema:
35753
+ $ref: '#/components/schemas/Problem'
35754
+ description: Conflict
35700
35755
  '422':
35701
35756
  content:
35702
35757
  application/problem+json:
35758
+ example:
35759
+ code: ERROR_REGISTRAR_CREDENTIAL_REJECTED
35760
+ detail: INTERNETX rejected the connected registrar credential holding
35761
+ the domain. Update the credential under Connected Registrars, then
35762
+ retry the renewal
35763
+ domain_name: example.com
35764
+ registrar: INTERNETX
35765
+ status: 422
35766
+ title: Registrar Credential Rejected
35767
+ type: domain-registrar-credential-rejected
35703
35768
  schema:
35704
- $ref: '#/components/schemas/HTTPValidationError'
35705
- description: Validation Error
35769
+ $ref: '#/components/schemas/Problem'
35770
+ description: Unprocessable Content
35771
+ '503':
35772
+ content:
35773
+ application/problem+json:
35774
+ example:
35775
+ code: ERROR_DOMAIN_REGISTRAR_UNAVAILABLE
35776
+ detail: The registrar currently holding the domain is unavailable,
35777
+ please retry later
35778
+ domain_name: example.com
35779
+ status: 503
35780
+ title: Registrar Unavailable
35781
+ type: domain-registrar-unavailable
35782
+ schema:
35783
+ $ref: '#/components/schemas/Problem'
35784
+ description: Service Unavailable
35785
+ headers:
35786
+ Retry-After:
35787
+ description: Seconds to wait before retrying the renewal
35788
+ schema:
35789
+ type: integer
35706
35790
  security:
35707
35791
  - OAuth2PasswordBearer: []
35708
35792
  - APIKeyHeader: []
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;
@@ -3498,7 +3501,7 @@ export interface components {
3498
3501
  * BillingTransactionProductType
3499
3502
  * @enum {string}
3500
3503
  */
3501
- BillingTransactionProductType: "domain" | "zones" | "email_forward" | "domain_forward" | "account_wallet" | "vanity_nameserver" | "whitelabel_branding" | "whitelabel_branding_plus" | "ras_domain_lifecycle" | "ams_domain_lifecycle";
3504
+ BillingTransactionProductType: "domain" | "zones" | "email_forward" | "domain_forward" | "account_wallet" | "vanity_nameserver" | "whitelabel_branding" | "whitelabel_branding_plus" | "ras_domain_lifecycle" | "ams_domain_lifecycle" | "ams_maintenance_fee";
3502
3505
  /** BillingTransactionResponse */
3503
3506
  BillingTransactionResponse: {
3504
3507
  /** @description The action performed in the transaction */
@@ -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 Validation Error */
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
- "application/problem+json": components["schemas"]["HTTPValidationError"];
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
  };