@opusdns/api 0.83.0 → 0.85.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": "^0.9.1"
4
4
  },
5
5
  "name": "@opusdns/api",
6
- "version": "0.83.0",
6
+ "version": "0.85.0",
7
7
  "description": "TypeScript types for the OpusDNS OpenAPI specification",
8
8
  "main": "./src/index.ts",
9
9
  "module": "./src/index.ts",
@@ -1314,9 +1314,23 @@ export type PATCH_DomainForwardsZoneNameDisable_Request_Path = PATCH_DomainForwa
1314
1314
  */
1315
1315
  export type PATCH_DomainForwardsZoneNameEnable_Request = {
1316
1316
  parameters: {
1317
+ query: operations['enable_domain_forward_v1_domain_forwards__zone_name__enable_patch']['parameters']['query'];
1317
1318
  path: operations['enable_domain_forward_v1_domain_forwards__zone_name__enable_patch']['parameters']['path'];
1318
1319
  };
1319
1320
  }
1321
+ /**
1322
+ * Query parameters for PATCH /v1/domain-forwards/{zone_name}/enable
1323
+ *
1324
+ * @remarks
1325
+ * This type defines the query parameters for the PATCH /v1/domain-forwards/{zone_name}/enable endpoint.
1326
+ * It provides type safety for all query parameters as defined in the OpenAPI specification.
1327
+ *
1328
+ * @example
1329
+ * Use this type to ensure type safety for query parameters.
1330
+ *
1331
+ * @path /v1/domain-forwards/{zone_name}/enable
1332
+ */
1333
+ export type PATCH_DomainForwardsZoneNameEnable_Request_Query = PATCH_DomainForwardsZoneNameEnable_Request['parameters']['query'];
1320
1334
  /**
1321
1335
  * Path parameters for PATCH /v1/domain-forwards/{zone_name}/enable
1322
1336
  *
@@ -2393,9 +2407,23 @@ export type PATCH_EmailForwardsZoneNameDisable_Request_Path = PATCH_EmailForward
2393
2407
  */
2394
2408
  export type PATCH_EmailForwardsZoneNameEnable_Request = {
2395
2409
  parameters: {
2410
+ query: operations['enable_email_forward_v1_email_forwards__zone_name__enable_patch']['parameters']['query'];
2396
2411
  path: operations['enable_email_forward_v1_email_forwards__zone_name__enable_patch']['parameters']['path'];
2397
2412
  };
2398
2413
  }
2414
+ /**
2415
+ * Query parameters for PATCH /v1/email-forwards/{zone_name}/enable
2416
+ *
2417
+ * @remarks
2418
+ * This type defines the query parameters for the PATCH /v1/email-forwards/{zone_name}/enable endpoint.
2419
+ * It provides type safety for all query parameters as defined in the OpenAPI specification.
2420
+ *
2421
+ * @example
2422
+ * Use this type to ensure type safety for query parameters.
2423
+ *
2424
+ * @path /v1/email-forwards/{zone_name}/enable
2425
+ */
2426
+ export type PATCH_EmailForwardsZoneNameEnable_Request_Query = PATCH_EmailForwardsZoneNameEnable_Request['parameters']['query'];
2399
2427
  /**
2400
2428
  * Path parameters for PATCH /v1/email-forwards/{zone_name}/enable
2401
2429
  *
package/src/openapi.yaml CHANGED
@@ -4946,7 +4946,7 @@ info:
4946
4946
  '
4947
4947
  summary: OpusDNS - your gateway to a seamless domain management experience.
4948
4948
  title: OpusDNS API
4949
- version: 2025-10-14-131453
4949
+ version: 2025-10-20-101702
4950
4950
  x-logo:
4951
4951
  altText: OpusDNS API Reference
4952
4952
  url: https://d24lr4zqs1tgqh.cloudfront.net/c9505a20-5ae1-406c-b060-d392569caebf.jpg
@@ -5948,6 +5948,55 @@ paths:
5948
5948
  requestBody:
5949
5949
  content:
5950
5950
  application/json:
5951
+ examples:
5952
+ business_setup:
5953
+ description: A comprehensive setup for a business with multiple subdomains
5954
+ and services
5955
+ summary: Business setup with multiple services
5956
+ value:
5957
+ dnssec_status: enabled
5958
+ name: example.com
5959
+ rrsets:
5960
+ - name: '@'
5961
+ records:
5962
+ - rdata: 203.0.113.10
5963
+ ttl: 600
5964
+ type: A
5965
+ - name: www
5966
+ records:
5967
+ - rdata: example.com.
5968
+ ttl: 300
5969
+ type: CNAME
5970
+ - name: api
5971
+ records:
5972
+ - rdata: 203.0.113.20
5973
+ ttl: 300
5974
+ type: A
5975
+ - name: mail
5976
+ records:
5977
+ - rdata: 203.0.113.30
5978
+ ttl: 300
5979
+ type: A
5980
+ - name: '@'
5981
+ records:
5982
+ - rdata: 10 mail.example.com.
5983
+ - rdata: 20 backup-mail.example.com.
5984
+ ttl: 300
5985
+ type: MX
5986
+ - name: '@'
5987
+ records:
5988
+ - rdata: '"v=spf1 include:_spf.google.com ~all"'
5989
+ - rdata: '"google-site-verification=abc123def456"'
5990
+ ttl: 300
5991
+ type: TXT
5992
+ minimal_setup:
5993
+ description: Create a zone with just the zone name - SOA and NS records
5994
+ are automatically generated
5995
+ summary: Minimal zone creation
5996
+ value:
5997
+ dnssec_status: disabled
5998
+ name: example.com
5999
+ rrsets: []
5951
6000
  schema:
5952
6001
  $ref: '#/components/schemas/DnsZoneCreate'
5953
6002
  required: true
@@ -5955,12 +6004,126 @@ paths:
5955
6004
  '201':
5956
6005
  content:
5957
6006
  application/json:
6007
+ examples:
6008
+ business_setup_response:
6009
+ description: Changeset response when creating a comprehensive business
6010
+ zone
6011
+ summary: Response for business setup creation
6012
+ value:
6013
+ changes:
6014
+ - action: create_zone
6015
+ - action: create_record
6016
+ record_data: example.com.
6017
+ rrset_name: www.example.com.
6018
+ rrset_type: CNAME
6019
+ ttl: 300
6020
+ - action: create_record
6021
+ record_data: 203.0.113.30
6022
+ rrset_name: mail.example.com.
6023
+ rrset_type: A
6024
+ ttl: 300
6025
+ - action: create_record
6026
+ record_data: 203.0.113.20
6027
+ rrset_name: api.example.com.
6028
+ rrset_type: A
6029
+ ttl: 300
6030
+ - action: create_record
6031
+ record_data: '"google-site-verification=abc123def456"'
6032
+ rrset_name: example.com.
6033
+ rrset_type: TXT
6034
+ ttl: 300
6035
+ - action: create_record
6036
+ record_data: '"v=spf1 include:_spf.google.com ~all"'
6037
+ rrset_name: example.com.
6038
+ rrset_type: TXT
6039
+ ttl: 300
6040
+ - action: create_record
6041
+ record_data: 10 mail.example.com.
6042
+ rrset_name: example.com.
6043
+ rrset_type: MX
6044
+ ttl: 300
6045
+ - action: create_record
6046
+ record_data: 20 backup-mail.example.com.
6047
+ rrset_name: example.com.
6048
+ rrset_type: MX
6049
+ ttl: 300
6050
+ - action: create_record
6051
+ record_data: ns1.opusdns.com. hostmaster.opusdns.com. 2025101401
6052
+ 10800 3600 604800 300
6053
+ rrset_name: example.com.
6054
+ rrset_type: SOA
6055
+ ttl: 3600
6056
+ - action: create_record
6057
+ record_data: ns1.opusdns.com.
6058
+ rrset_name: example.com.
6059
+ rrset_type: NS
6060
+ ttl: 3600
6061
+ - action: create_record
6062
+ record_data: ns2.opusdns.com.
6063
+ rrset_name: example.com.
6064
+ rrset_type: NS
6065
+ ttl: 3600
6066
+ - action: create_record
6067
+ record_data: 203.0.113.10
6068
+ rrset_name: example.com.
6069
+ rrset_type: A
6070
+ ttl: 600
6071
+ - action: create_record
6072
+ record_data: 256 3 13 4epAMhnUgbFbAmKI2zbTXXFHGlVeHamiWLPdwJ8ehE9NgmvDNraqYF/0YdDcoc2elyelvi72KJyQfIR02axEeQ==
6073
+ rrset_name: example.com.
6074
+ rrset_type: DNSKEY
6075
+ ttl: 300
6076
+ - action: create_record
6077
+ record_data: 257 3 13 Wx1Wk8Sl+PyanAWPYsCPw9qFv2Nv0U/MXoJGgpmdqgbLgtvPlVM1/66j/MFTOjk4ONGKGZoWbZ86ud18lWvacw==
6078
+ rrset_name: example.com.
6079
+ rrset_type: DNSKEY
6080
+ ttl: 300
6081
+ - action: create_record
6082
+ record_data: 17781 13 2 21d0b2b21f501935546de33505a2b43d16ba3b1f375e00b0386dae3942165915
6083
+ rrset_name: example.com.
6084
+ rrset_type: DS
6085
+ ttl: 300
6086
+ - action: create_record
6087
+ record_data: 17781 13 4 d10ab2a071c85c20a0338797401928255be1d08c470236b381fbd87df0d60e3aab5d86c6dee8356374167d9b68652608
6088
+ rrset_name: example.com.
6089
+ rrset_type: DS
6090
+ ttl: 300
6091
+ - action: enable_dnssec
6092
+ changeset_id: 108e6028-2812-4bd9-aa41-5b46cdc7fbdc
6093
+ num_changes: 17
6094
+ zone_name: example.com.
6095
+ minimal_setup_response:
6096
+ description: Changeset response when creating a zone with automatic
6097
+ SOA and NS records
6098
+ summary: Response for minimal zone creation
6099
+ value:
6100
+ changes:
6101
+ - action: create_zone
6102
+ - action: create_record
6103
+ record_data: ns1.opusdns.com. hostmaster.opusdns.com. 2025101401
6104
+ 10800 3600 604800 300
6105
+ rrset_name: example.com.
6106
+ rrset_type: SOA
6107
+ ttl: 3600
6108
+ - action: create_record
6109
+ record_data: ns1.opusdns.com.
6110
+ rrset_name: example.com.
6111
+ rrset_type: NS
6112
+ ttl: 3600
6113
+ - action: create_record
6114
+ record_data: ns2.opusdns.com.
6115
+ rrset_name: example.com.
6116
+ rrset_type: NS
6117
+ ttl: 3600
6118
+ changeset_id: de28f689-b400-45b7-9f67-9f92d512935a
6119
+ num_changes: 4
6120
+ zone_name: example.com.
5958
6121
  schema:
5959
6122
  anyOf:
5960
6123
  - $ref: '#/components/schemas/DnsChangesResponse'
5961
6124
  - type: 'null'
5962
6125
  title: Response Create Zone V1 Dns Post
5963
- description: Successful Response
6126
+ description: Zone created successfully
5964
6127
  '400':
5965
6128
  content:
5966
6129
  application/problem+json:
@@ -5976,9 +6139,25 @@ paths:
5976
6139
  '422':
5977
6140
  content:
5978
6141
  application/problem+json:
6142
+ examples:
6143
+ typo_in_name:
6144
+ description: The request contains a typo in the name field
6145
+ summary: Typo in name
6146
+ value:
6147
+ errors:
6148
+ - input:
6149
+ nme: example.com
6150
+ loc:
6151
+ - body
6152
+ - name
6153
+ msg: Field required
6154
+ type: missing
6155
+ status: 422
6156
+ title: Request validation error.
6157
+ type: request-validation-failed
5979
6158
  schema:
5980
6159
  $ref: '#/components/schemas/HTTPValidationError'
5981
- description: Validation Error
6160
+ description: Invalid request parameters
5982
6161
  security:
5983
6162
  - OAuth2PasswordBearer: []
5984
6163
  summary: Create Zone
@@ -6466,6 +6645,13 @@ paths:
6466
6645
  description: DNS zone name (trailing dot optional)
6467
6646
  title: Zone Name
6468
6647
  type: string
6648
+ - in: query
6649
+ name: auto_create_zone
6650
+ required: false
6651
+ schema:
6652
+ default: false
6653
+ title: Auto Create Zone
6654
+ type: boolean
6469
6655
  responses:
6470
6656
  '204':
6471
6657
  description: Successful Response
@@ -7824,6 +8010,13 @@ paths:
7824
8010
  description: DNS zone name (trailing dot optional)
7825
8011
  title: Zone Name
7826
8012
  type: string
8013
+ - in: query
8014
+ name: auto_create_zone
8015
+ required: false
8016
+ schema:
8017
+ default: false
8018
+ title: Auto Create Zone
8019
+ type: boolean
7827
8020
  responses:
7828
8021
  '204':
7829
8022
  description: Successful Response
@@ -9704,6 +9897,11 @@ tags:
9704
9897
  '
9705
9898
  name: email_forward
9706
9899
  x-displayName: Email forwards
9900
+ - description: 'Endpoints for creating and managing domain forwards.
9901
+
9902
+ '
9903
+ name: domain_forward
9904
+ x-displayName: Domain forwards
9707
9905
  - description: 'Endpoints for interacting with events.
9708
9906
 
9709
9907
  '
@@ -9750,5 +9948,6 @@ x-tagGroups:
9750
9948
  tags:
9751
9949
  - dns
9752
9950
  - email_forward
9951
+ - domain_forward
9753
9952
  - rdap
9754
9953
  - domain_search
package/src/schema.d.ts CHANGED
@@ -5364,7 +5364,7 @@ export interface operations {
5364
5364
  };
5365
5365
  };
5366
5366
  responses: {
5367
- /** @description Successful Response */
5367
+ /** @description Zone created successfully */
5368
5368
  201: {
5369
5369
  headers: {
5370
5370
  [name: string]: unknown;
@@ -5389,7 +5389,7 @@ export interface operations {
5389
5389
  "application/problem+json": components["schemas"]["Problem"];
5390
5390
  };
5391
5391
  };
5392
- /** @description Validation Error */
5392
+ /** @description Invalid request parameters */
5393
5393
  422: {
5394
5394
  headers: {
5395
5395
  [name: string]: unknown;
@@ -5924,7 +5924,9 @@ export interface operations {
5924
5924
  };
5925
5925
  enable_domain_forward_v1_domain_forwards__zone_name__enable_patch: {
5926
5926
  parameters: {
5927
- query?: never;
5927
+ query?: {
5928
+ auto_create_zone?: boolean;
5929
+ };
5928
5930
  header?: never;
5929
5931
  path: {
5930
5932
  /** @description DNS zone name (trailing dot optional) */
@@ -7060,7 +7062,9 @@ export interface operations {
7060
7062
  };
7061
7063
  enable_email_forward_v1_email_forwards__zone_name__enable_patch: {
7062
7064
  parameters: {
7063
- query?: never;
7065
+ query?: {
7066
+ auto_create_zone?: boolean;
7067
+ };
7064
7068
  header?: never;
7065
7069
  path: {
7066
7070
  /** @description DNS zone name (trailing dot optional) */