@opusdns/api 1.91.0 → 1.93.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.2.0"
4
4
  },
5
5
  "name": "@opusdns/api",
6
- "version": "1.91.0",
6
+ "version": "1.93.0",
7
7
  "description": "TypeScript types for the OpusDNS OpenAPI specification",
8
8
  "main": "./src/index.ts",
9
9
  "module": "./src/index.ts",
@@ -623,6 +623,7 @@ export const DOMAIN_ATTRIBUTE_KEY = {
623
623
  NOR_ID_DECLARATION_TOKEN: "nor_id_declaration_token",
624
624
  PUNKTUM_DK_TERMS_ACCEPTANCE: "punktum_dk_terms_acceptance",
625
625
  PUNKTUM_DK_TRACKING_NO: "punktum_dk_tracking_no",
626
+ PROMOTION: "promotion",
626
627
  } as const satisfies Record<string, DomainAttributeKey>;
627
628
 
628
629
  export const DOMAIN_ATTRIBUTE_KEY_VALUES = [
@@ -640,6 +641,7 @@ export const DOMAIN_ATTRIBUTE_KEY_VALUES = [
640
641
  'nor_id_declaration_token',
641
642
  'punktum_dk_terms_acceptance',
642
643
  'punktum_dk_tracking_no',
644
+ 'promotion',
643
645
  ] as const satisfies ReadonlyArray<DomainAttributeKey>;
644
646
 
645
647
  export const DOMAIN_AVAILABILITY_STATUS = {
@@ -112,6 +112,7 @@ import type {
112
112
  DnsZoneUpdateWorkerPayload,
113
113
  DnsZoneVanitySetUpdateRes,
114
114
  DomainAvailability,
115
+ DomainAvailabilityError,
115
116
  DomainAvailabilityMeta,
116
117
  DomainAvailabilityRequest,
117
118
  DomainCheck,
@@ -1804,13 +1805,23 @@ export const KEYS_DNS_ZONE_VANITY_SET_UPDATE_RES = [
1804
1805
  ] as const satisfies (keyof DnsZoneVanitySetUpdateRes)[];
1805
1806
 
1806
1807
  export const KEY_DOMAIN_AVAILABILITY_DOMAIN = 'domain' satisfies keyof DomainAvailability;
1808
+ export const KEY_DOMAIN_AVAILABILITY_ERROR = 'error' satisfies keyof DomainAvailability;
1807
1809
  export const KEY_DOMAIN_AVAILABILITY_STATUS = 'status' satisfies keyof DomainAvailability;
1808
1810
 
1809
1811
  export const KEYS_DOMAIN_AVAILABILITY = [
1810
1812
  KEY_DOMAIN_AVAILABILITY_DOMAIN,
1813
+ KEY_DOMAIN_AVAILABILITY_ERROR,
1811
1814
  KEY_DOMAIN_AVAILABILITY_STATUS,
1812
1815
  ] as const satisfies (keyof DomainAvailability)[];
1813
1816
 
1817
+ export const KEY_DOMAIN_AVAILABILITY_ERROR_MESSAGE = 'message' satisfies keyof DomainAvailabilityError;
1818
+ export const KEY_DOMAIN_AVAILABILITY_ERROR_TYPE = 'type' satisfies keyof DomainAvailabilityError;
1819
+
1820
+ export const KEYS_DOMAIN_AVAILABILITY_ERROR = [
1821
+ KEY_DOMAIN_AVAILABILITY_ERROR_MESSAGE,
1822
+ KEY_DOMAIN_AVAILABILITY_ERROR_TYPE,
1823
+ ] as const satisfies (keyof DomainAvailabilityError)[];
1824
+
1814
1825
  export const KEY_DOMAIN_AVAILABILITY_META_PROCESSING_TIME_MS = 'processing_time_ms' satisfies keyof DomainAvailabilityMeta;
1815
1826
  export const KEY_DOMAIN_AVAILABILITY_META_TOTAL = 'total' satisfies keyof DomainAvailabilityMeta;
1816
1827
 
@@ -146,6 +146,7 @@ export type DnssecRecordType = components['schemas']['DnssecRecordType'];
146
146
  export type DnssecStatus = components['schemas']['DnssecStatus'];
147
147
  export type DomainAttributeKey = components['schemas']['DomainAttributeKey'];
148
148
  export type DomainAvailability = components['schemas']['DomainAvailability'];
149
+ export type DomainAvailabilityError = components['schemas']['DomainAvailabilityError'];
149
150
  export type DomainAvailabilityMeta = components['schemas']['DomainAvailabilityMeta'];
150
151
  export type DomainAvailabilityRequest = components['schemas']['DomainAvailabilityRequest'];
151
152
  export type DomainAvailabilityStatus = components['schemas']['DomainAvailabilityStatus'];
package/src/openapi.yaml CHANGED
@@ -3640,6 +3640,7 @@ components:
3640
3640
  - nor_id_declaration_token
3641
3641
  - punktum_dk_terms_acceptance
3642
3642
  - punktum_dk_tracking_no
3643
+ - promotion
3643
3644
  title: DomainAttributeKey
3644
3645
  type: string
3645
3646
  DomainAvailability:
@@ -3647,6 +3648,12 @@ components:
3647
3648
  domain:
3648
3649
  title: Domain
3649
3650
  type: string
3651
+ error:
3652
+ anyOf:
3653
+ - $ref: '#/components/schemas/DomainAvailabilityError'
3654
+ - type: 'null'
3655
+ description: Error details when status is 'error', e.g. why a domain is
3656
+ invalid
3650
3657
  status:
3651
3658
  $ref: '#/components/schemas/DomainAvailabilityStatus'
3652
3659
  required:
@@ -3654,6 +3661,21 @@ components:
3654
3661
  - status
3655
3662
  title: DomainAvailability
3656
3663
  type: object
3664
+ DomainAvailabilityError:
3665
+ properties:
3666
+ message:
3667
+ description: Human-readable error message
3668
+ title: Message
3669
+ type: string
3670
+ type:
3671
+ description: Error type identifier, e.g. validation_error or check_error
3672
+ title: Type
3673
+ type: string
3674
+ required:
3675
+ - type
3676
+ - message
3677
+ title: DomainAvailabilityError
3678
+ type: object
3657
3679
  DomainAvailabilityMeta:
3658
3680
  properties:
3659
3681
  processing_time_ms:
@@ -3671,6 +3693,7 @@ components:
3671
3693
  properties:
3672
3694
  domains:
3673
3695
  items:
3696
+ maxLength: 1024
3674
3697
  type: string
3675
3698
  maxItems: 1000
3676
3699
  minItems: 1
@@ -3756,7 +3779,8 @@ components:
3756
3779
  $ref: '#/components/schemas/DomainAttributeKey'
3757
3780
  type: object
3758
3781
  - type: 'null'
3759
- description: Additional attributes of the domain
3782
+ description: Additional attributes of the domain. Platform-reserved keys
3783
+ are rejected if supplied.
3760
3784
  title: Attributes
3761
3785
  auth_code:
3762
3786
  anyOf:
@@ -3851,7 +3875,8 @@ components:
3851
3875
  $ref: '#/components/schemas/DomainAttributeKey'
3852
3876
  type: object
3853
3877
  - type: 'null'
3854
- description: Override attributes for this domain
3878
+ description: Override attributes for this domain. Platform-reserved keys
3879
+ are rejected if supplied.
3855
3880
  title: Attributes
3856
3881
  auth_code:
3857
3882
  anyOf:
@@ -3933,7 +3958,8 @@ components:
3933
3958
  $ref: '#/components/schemas/DomainAttributeKey'
3934
3959
  type: object
3935
3960
  - type: 'null'
3936
- description: Additional attributes of the domain
3961
+ description: Additional attributes of the domain. Platform-reserved keys
3962
+ are rejected if supplied.
3937
3963
  title: Attributes
3938
3964
  auth_code:
3939
3965
  anyOf:
@@ -4005,7 +4031,8 @@ components:
4005
4031
  $ref: '#/components/schemas/DomainAttributeKey'
4006
4032
  type: object
4007
4033
  - type: 'null'
4008
- description: Additional attributes of the domain
4034
+ description: Additional attributes of the domain. Platform-reserved keys
4035
+ are rejected if supplied.
4009
4036
  title: Attributes
4010
4037
  auth_code:
4011
4038
  anyOf:
@@ -5739,7 +5766,8 @@ components:
5739
5766
  $ref: '#/components/schemas/DomainAttributeKey'
5740
5767
  type: object
5741
5768
  - type: 'null'
5742
- description: Override attributes for this domain
5769
+ description: Override attributes for this domain. Platform-reserved keys
5770
+ are rejected if supplied.
5743
5771
  title: Attributes
5744
5772
  auth_code:
5745
5773
  anyOf:
@@ -5821,7 +5849,8 @@ components:
5821
5849
  $ref: '#/components/schemas/DomainAttributeKey'
5822
5850
  type: object
5823
5851
  - type: 'null'
5824
- description: Additional attributes of the domain
5852
+ description: Additional attributes of the domain. Platform-reserved keys
5853
+ are rejected if supplied.
5825
5854
  title: Attributes
5826
5855
  contacts:
5827
5856
  $ref: '#/components/schemas/DomainContactHandles'
@@ -5887,7 +5916,8 @@ components:
5887
5916
  $ref: '#/components/schemas/DomainAttributeKey'
5888
5917
  type: object
5889
5918
  - type: 'null'
5890
- description: Additional attributes of the domain
5919
+ description: Additional attributes of the domain. Platform-reserved keys
5920
+ are rejected if supplied.
5891
5921
  title: Attributes
5892
5922
  auth_code:
5893
5923
  anyOf:
@@ -5951,7 +5981,8 @@ components:
5951
5981
  $ref: '#/components/schemas/DomainAttributeKey'
5952
5982
  type: object
5953
5983
  - type: 'null'
5954
- description: Additional attributes of the domain
5984
+ description: Additional attributes of the domain. Platform-reserved keys
5985
+ are rejected if supplied.
5955
5986
  title: Attributes
5956
5987
  auth_code:
5957
5988
  anyOf:
@@ -6060,7 +6091,8 @@ components:
6060
6091
  $ref: '#/components/schemas/DomainAttributeKey'
6061
6092
  type: object
6062
6093
  - type: 'null'
6063
- description: Additional attributes of the domain
6094
+ description: Additional attributes of the domain. Platform-reserved keys
6095
+ are rejected if supplied.
6064
6096
  title: Attributes
6065
6097
  auth_code:
6066
6098
  anyOf:
@@ -6278,7 +6310,8 @@ components:
6278
6310
  $ref: '#/components/schemas/DomainAttributeKey'
6279
6311
  type: object
6280
6312
  - type: 'null'
6281
- description: Additional attributes of the domain
6313
+ description: Additional attributes of the domain. Platform-reserved keys
6314
+ are rejected if supplied.
6282
6315
  title: Attributes
6283
6316
  auth_code:
6284
6317
  anyOf:
@@ -14954,7 +14987,7 @@ info:
14954
14987
  \n\n"
14955
14988
  summary: OpusDNS - your gateway to a seamless domain management experience.
14956
14989
  title: OpusDNS API
14957
- version: 2026-07-30-170548
14990
+ version: 2026-07-31-125734
14958
14991
  x-logo:
14959
14992
  altText: OpusDNS API Reference
14960
14993
  url: https://d24lr4zqs1tgqh.cloudfront.net/c9505a20-5ae1-406c-b060-d392569caebf.jpg
@@ -16930,7 +16963,9 @@ paths:
16930
16963
  - authentication
16931
16964
  /v1/availability:
16932
16965
  get:
16933
- description: Check the availability of one or more domains.
16966
+ description: Check the availability of one or more domains. Invalid domains
16967
+ are reported per domain (status 'error' with error details) instead of failing
16968
+ the whole request.
16934
16969
  operationId: bulk_availability_v1_availability_get
16935
16970
  parameters:
16936
16971
  - description: '
@@ -16954,6 +16989,7 @@ paths:
16954
16989
 
16955
16990
  '
16956
16991
  items:
16992
+ maxLength: 1024
16957
16993
  type: string
16958
16994
  maxItems: 50
16959
16995
  title: Domains
@@ -17018,6 +17054,7 @@ paths:
17018
17054
 
17019
17055
  '
17020
17056
  items:
17057
+ maxLength: 1024
17021
17058
  type: string
17022
17059
  maxItems: 1000
17023
17060
  title: Domains
package/src/schema.d.ts CHANGED
@@ -301,7 +301,7 @@ export interface paths {
301
301
  };
302
302
  /**
303
303
  * Check domain availability
304
- * @description Check the availability of one or more domains.
304
+ * @description Check the availability of one or more domains. Invalid domains are reported per domain (status 'error' with error details) instead of failing the whole request.
305
305
  */
306
306
  get: operations["bulk_availability_v1_availability_get"];
307
307
  put?: never;
@@ -5266,13 +5266,28 @@ export interface components {
5266
5266
  * DomainAttributeKey
5267
5267
  * @enum {string}
5268
5268
  */
5269
- DomainAttributeKey: "auto_renew_period" | "music_registrant_attestation" | "nic_it_compliance_confirmation" | "travel_industry_acknowledgement" | "verification_required" | "de_general_request_contact" | "de_abuse_contact" | "nor_id_applicant_version" | "nor_id_applicant_accept_name" | "nor_id_applicant_accept_date" | "nor_id_declaration" | "nor_id_declaration_token" | "punktum_dk_terms_acceptance" | "punktum_dk_tracking_no";
5269
+ DomainAttributeKey: "auto_renew_period" | "music_registrant_attestation" | "nic_it_compliance_confirmation" | "travel_industry_acknowledgement" | "verification_required" | "de_general_request_contact" | "de_abuse_contact" | "nor_id_applicant_version" | "nor_id_applicant_accept_name" | "nor_id_applicant_accept_date" | "nor_id_declaration" | "nor_id_declaration_token" | "punktum_dk_terms_acceptance" | "punktum_dk_tracking_no" | "promotion";
5270
5270
  /** DomainAvailability */
5271
5271
  DomainAvailability: {
5272
5272
  /** Domain */
5273
5273
  domain: string;
5274
+ /** @description Error details when status is 'error', e.g. why a domain is invalid */
5275
+ error?: components["schemas"]["DomainAvailabilityError"] | null;
5274
5276
  status: components["schemas"]["DomainAvailabilityStatus"];
5275
5277
  };
5278
+ /** DomainAvailabilityError */
5279
+ DomainAvailabilityError: {
5280
+ /**
5281
+ * Message
5282
+ * @description Human-readable error message
5283
+ */
5284
+ message: string;
5285
+ /**
5286
+ * Type
5287
+ * @description Error type identifier, e.g. validation_error or check_error
5288
+ */
5289
+ type: string;
5290
+ };
5276
5291
  /** DomainAvailabilityMeta */
5277
5292
  DomainAvailabilityMeta: {
5278
5293
  /** Processing Time Ms */
@@ -5325,7 +5340,7 @@ export interface components {
5325
5340
  DomainCreate: {
5326
5341
  /**
5327
5342
  * Attributes
5328
- * @description Additional attributes of the domain
5343
+ * @description Additional attributes of the domain. Platform-reserved keys are rejected if supplied.
5329
5344
  */
5330
5345
  attributes?: {
5331
5346
  [key: string]: string;
@@ -5396,7 +5411,7 @@ export interface components {
5396
5411
  DomainCreateBulkInstance: {
5397
5412
  /**
5398
5413
  * Attributes
5399
- * @description Override attributes for this domain
5414
+ * @description Override attributes for this domain. Platform-reserved keys are rejected if supplied.
5400
5415
  */
5401
5416
  attributes?: {
5402
5417
  [key: string]: string;
@@ -5444,7 +5459,7 @@ export interface components {
5444
5459
  DomainCreateBulkTemplate: {
5445
5460
  /**
5446
5461
  * Attributes
5447
- * @description Additional attributes of the domain
5462
+ * @description Additional attributes of the domain. Platform-reserved keys are rejected if supplied.
5448
5463
  */
5449
5464
  attributes?: {
5450
5465
  [key: string]: string;
@@ -5496,7 +5511,7 @@ export interface components {
5496
5511
  DomainCreatePayloadData: {
5497
5512
  /**
5498
5513
  * Attributes
5499
- * @description Additional attributes of the domain
5514
+ * @description Additional attributes of the domain. Platform-reserved keys are rejected if supplied.
5500
5515
  */
5501
5516
  attributes?: {
5502
5517
  [key: string]: string;
@@ -6635,7 +6650,7 @@ export interface components {
6635
6650
  DomainTransferBulkInstance: {
6636
6651
  /**
6637
6652
  * Attributes
6638
- * @description Override attributes for this domain
6653
+ * @description Override attributes for this domain. Platform-reserved keys are rejected if supplied.
6639
6654
  */
6640
6655
  attributes?: {
6641
6656
  [key: string]: string;
@@ -6683,7 +6698,7 @@ export interface components {
6683
6698
  DomainTransferBulkTemplate: {
6684
6699
  /**
6685
6700
  * Attributes
6686
- * @description Additional attributes of the domain
6701
+ * @description Additional attributes of the domain. Platform-reserved keys are rejected if supplied.
6687
6702
  */
6688
6703
  attributes?: {
6689
6704
  [key: string]: string;
@@ -6731,7 +6746,7 @@ export interface components {
6731
6746
  DomainTransferIn: {
6732
6747
  /**
6733
6748
  * Attributes
6734
- * @description Additional attributes of the domain
6749
+ * @description Additional attributes of the domain. Platform-reserved keys are rejected if supplied.
6735
6750
  */
6736
6751
  attributes?: {
6737
6752
  [key: string]: string;
@@ -6776,7 +6791,7 @@ export interface components {
6776
6791
  DomainTransferPayloadData: {
6777
6792
  /**
6778
6793
  * Attributes
6779
- * @description Additional attributes of the domain
6794
+ * @description Additional attributes of the domain. Platform-reserved keys are rejected if supplied.
6780
6795
  */
6781
6796
  attributes?: {
6782
6797
  [key: string]: string;
@@ -6853,7 +6868,7 @@ export interface components {
6853
6868
  DomainUpdate: {
6854
6869
  /**
6855
6870
  * Attributes
6856
- * @description Additional attributes of the domain
6871
+ * @description Additional attributes of the domain. Platform-reserved keys are rejected if supplied.
6857
6872
  */
6858
6873
  attributes?: {
6859
6874
  [key: string]: string;
@@ -6998,7 +7013,7 @@ export interface components {
6998
7013
  DomainUpdatePayloadData: {
6999
7014
  /**
7000
7015
  * Attributes
7001
- * @description Additional attributes of the domain
7016
+ * @description Additional attributes of the domain. Platform-reserved keys are rejected if supplied.
7002
7017
  */
7003
7018
  attributes?: {
7004
7019
  [key: string]: string;