@opusdns/api 0.7.0 → 0.8.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
@@ -8,7 +8,7 @@
8
8
  "typescript": "^5.8.2"
9
9
  },
10
10
  "name": "@opusdns/api",
11
- "version": "0.7.0",
11
+ "version": "0.8.0",
12
12
  "description": "TypeScript types for the OpusDNS OpenAPI specification",
13
13
  "main": "src/schema.d.ts",
14
14
  "types": "src/schema.d.ts",
package/src/openapi.yaml CHANGED
@@ -657,6 +657,17 @@ components:
657
657
  - rdata
658
658
  title: DnsRecordCreate
659
659
  type: object
660
+ DnsRecordPatchOp:
661
+ properties:
662
+ op:
663
+ $ref: '#/components/schemas/PatchOp'
664
+ record:
665
+ $ref: '#/components/schemas/DnsRrsetWithOneRecordPatch'
666
+ required:
667
+ - op
668
+ - record
669
+ title: DnsRecordPatchOp
670
+ type: object
660
671
  DnsRecordResponse:
661
672
  properties:
662
673
  rdata:
@@ -685,8 +696,42 @@ components:
685
696
  - name
686
697
  - type
687
698
  - ttl
699
+ - records
688
700
  title: DnsRrsetCreate
689
701
  type: object
702
+ DnsRrsetPatch:
703
+ properties:
704
+ name:
705
+ title: Name
706
+ type: string
707
+ records:
708
+ items:
709
+ $ref: '#/components/schemas/DnsRecordCreate'
710
+ title: Records
711
+ type: array
712
+ ttl:
713
+ title: Ttl
714
+ type: integer
715
+ type:
716
+ $ref: '#/components/schemas/DnsRrsetType'
717
+ required:
718
+ - name
719
+ - type
720
+ - ttl
721
+ - records
722
+ title: DnsRrsetPatch
723
+ type: object
724
+ DnsRrsetPatchOp:
725
+ properties:
726
+ op:
727
+ $ref: '#/components/schemas/PatchOp'
728
+ rrset:
729
+ $ref: '#/components/schemas/DnsRrsetPatch'
730
+ required:
731
+ - op
732
+ - rrset
733
+ title: DnsRrsetPatchOp
734
+ type: object
690
735
  DnsRrsetResponse:
691
736
  properties:
692
737
  name:
@@ -725,6 +770,26 @@ components:
725
770
  - SRV
726
771
  title: DnsRrsetType
727
772
  type: string
773
+ DnsRrsetWithOneRecordPatch:
774
+ properties:
775
+ name:
776
+ title: Name
777
+ type: string
778
+ rdata:
779
+ title: Rdata
780
+ type: string
781
+ ttl:
782
+ title: Ttl
783
+ type: integer
784
+ type:
785
+ $ref: '#/components/schemas/DnsRrsetType'
786
+ required:
787
+ - rdata
788
+ - name
789
+ - type
790
+ - ttl
791
+ title: DnsRrsetWithOneRecordPatch
792
+ type: object
728
793
  DnsZoneCreate:
729
794
  properties:
730
795
  dnssec_status:
@@ -742,6 +807,17 @@ components:
742
807
  - name
743
808
  title: DnsZoneCreate
744
809
  type: object
810
+ DnsZoneRecordsPatchOps:
811
+ properties:
812
+ ops:
813
+ items:
814
+ $ref: '#/components/schemas/DnsRecordPatchOp'
815
+ title: Ops
816
+ type: array
817
+ required:
818
+ - ops
819
+ title: DnsZoneRecordsPatchOps
820
+ type: object
745
821
  DnsZoneResponse:
746
822
  properties:
747
823
  dnssec_status:
@@ -770,6 +846,17 @@ components:
770
846
  type: array
771
847
  title: DnsZoneRrsetsCreate
772
848
  type: object
849
+ DnsZoneRrsetsPatchOps:
850
+ properties:
851
+ ops:
852
+ items:
853
+ $ref: '#/components/schemas/DnsRrsetPatchOp'
854
+ title: Ops
855
+ type: array
856
+ required:
857
+ - ops
858
+ title: DnsZoneRrsetsPatchOps
859
+ type: object
773
860
  DnssecAlgorithm:
774
861
  enum:
775
862
  - 1
@@ -3059,6 +3146,12 @@ components:
3059
3146
  - pagination
3060
3147
  title: Pagination[User]
3061
3148
  type: object
3149
+ PatchOp:
3150
+ enum:
3151
+ - upsert
3152
+ - remove
3153
+ title: PatchOp
3154
+ type: string
3062
3155
  PeriodUnit:
3063
3156
  enum:
3064
3157
  - y
@@ -3904,7 +3997,7 @@ info:
3904
3997
  '
3905
3998
  summary: OpusDNS - your gateway to a seamless domain management experience.
3906
3999
  title: OpusDNS API
3907
- version: 2025-07-18-231116
4000
+ version: 2025-07-24-074916
3908
4001
  x-logo:
3909
4002
  altText: OpusDNS API Reference
3910
4003
  url: https://d24lr4zqs1tgqh.cloudfront.net/c9505a20-5ae1-406c-b060-d392569caebf.jpg
@@ -5268,9 +5361,72 @@ paths:
5268
5361
  summary: Enable Dnssec
5269
5362
  tags:
5270
5363
  - dns
5364
+ /v1/dns/{zone_name}/records:
5365
+ patch:
5366
+ operationId: patch_zone_records_v1_dns__zone_name__records_patch
5367
+ parameters:
5368
+ - description: DNS zone name (trailing dot optional)
5369
+ in: path
5370
+ name: zone_name
5371
+ required: true
5372
+ schema:
5373
+ description: DNS zone name (trailing dot optional)
5374
+ title: Zone Name
5375
+ type: string
5376
+ requestBody:
5377
+ content:
5378
+ application/json:
5379
+ schema:
5380
+ $ref: '#/components/schemas/DnsZoneRecordsPatchOps'
5381
+ required: true
5382
+ responses:
5383
+ '204':
5384
+ description: Successful Response
5385
+ '422':
5386
+ content:
5387
+ application/problem+json:
5388
+ schema:
5389
+ $ref: '#/components/schemas/HTTPValidationError'
5390
+ description: Validation Error
5391
+ security:
5392
+ - OAuth2PasswordBearer: []
5393
+ summary: Patch Zone Records
5394
+ tags:
5395
+ - dns
5271
5396
  /v1/dns/{zone_name}/rrsets:
5397
+ patch:
5398
+ operationId: patch_zone_rrsets_v1_dns__zone_name__rrsets_patch
5399
+ parameters:
5400
+ - description: DNS zone name (trailing dot optional)
5401
+ in: path
5402
+ name: zone_name
5403
+ required: true
5404
+ schema:
5405
+ description: DNS zone name (trailing dot optional)
5406
+ title: Zone Name
5407
+ type: string
5408
+ requestBody:
5409
+ content:
5410
+ application/json:
5411
+ schema:
5412
+ $ref: '#/components/schemas/DnsZoneRrsetsPatchOps'
5413
+ required: true
5414
+ responses:
5415
+ '204':
5416
+ description: Successful Response
5417
+ '422':
5418
+ content:
5419
+ application/problem+json:
5420
+ schema:
5421
+ $ref: '#/components/schemas/HTTPValidationError'
5422
+ description: Validation Error
5423
+ security:
5424
+ - OAuth2PasswordBearer: []
5425
+ summary: Patch Zone Rrsets
5426
+ tags:
5427
+ - dns
5272
5428
  put:
5273
- operationId: update_zone_v1_dns__zone_name__rrsets_put
5429
+ operationId: update_zone_rrsets_v1_dns__zone_name__rrsets_put
5274
5430
  parameters:
5275
5431
  - description: DNS zone name (trailing dot optional)
5276
5432
  in: path
@@ -5287,10 +5443,7 @@ paths:
5287
5443
  $ref: '#/components/schemas/DnsZoneRrsetsCreate'
5288
5444
  required: true
5289
5445
  responses:
5290
- '200':
5291
- content:
5292
- application/json:
5293
- schema: {}
5446
+ '204':
5294
5447
  description: Successful Response
5295
5448
  '422':
5296
5449
  content:
@@ -5300,7 +5453,7 @@ paths:
5300
5453
  description: Validation Error
5301
5454
  security:
5302
5455
  - OAuth2PasswordBearer: []
5303
- summary: Update Zone
5456
+ summary: Update Zone Rrsets
5304
5457
  tags:
5305
5458
  - dns
5306
5459
  /v1/domain-search/suggest:
package/src/schema.d.ts CHANGED
@@ -317,6 +317,23 @@ export interface paths {
317
317
  patch?: never;
318
318
  trace?: never;
319
319
  };
320
+ "/v1/dns/{zone_name}/records": {
321
+ parameters: {
322
+ query?: never;
323
+ header?: never;
324
+ path?: never;
325
+ cookie?: never;
326
+ };
327
+ get?: never;
328
+ put?: never;
329
+ post?: never;
330
+ delete?: never;
331
+ options?: never;
332
+ head?: never;
333
+ /** Patch Zone Records */
334
+ patch: operations["patch_zone_records_v1_dns__zone_name__records_patch"];
335
+ trace?: never;
336
+ };
320
337
  "/v1/dns/{zone_name}/rrsets": {
321
338
  parameters: {
322
339
  query?: never;
@@ -325,13 +342,14 @@ export interface paths {
325
342
  cookie?: never;
326
343
  };
327
344
  get?: never;
328
- /** Update Zone */
329
- put: operations["update_zone_v1_dns__zone_name__rrsets_put"];
345
+ /** Update Zone Rrsets */
346
+ put: operations["update_zone_rrsets_v1_dns__zone_name__rrsets_put"];
330
347
  post?: never;
331
348
  delete?: never;
332
349
  options?: never;
333
350
  head?: never;
334
- patch?: never;
351
+ /** Patch Zone Rrsets */
352
+ patch: operations["patch_zone_rrsets_v1_dns__zone_name__rrsets_patch"];
335
353
  trace?: never;
336
354
  };
337
355
  "/v1/domain-search/suggest": {
@@ -1428,6 +1446,11 @@ export interface components {
1428
1446
  /** Rdata */
1429
1447
  rdata: string;
1430
1448
  };
1449
+ /** DnsRecordPatchOp */
1450
+ DnsRecordPatchOp: {
1451
+ op: components["schemas"]["PatchOp"];
1452
+ record: components["schemas"]["DnsRrsetWithOneRecordPatch"];
1453
+ };
1431
1454
  /** DnsRecordResponse */
1432
1455
  DnsRecordResponse: {
1433
1456
  /** Rdata */
@@ -1438,11 +1461,26 @@ export interface components {
1438
1461
  /** Name */
1439
1462
  name: string;
1440
1463
  /** Records */
1441
- records?: components["schemas"]["DnsRecordCreate"][];
1464
+ records: components["schemas"]["DnsRecordCreate"][];
1442
1465
  /** Ttl */
1443
1466
  ttl: number;
1444
1467
  type: components["schemas"]["DnsRrsetType"];
1445
1468
  };
1469
+ /** DnsRrsetPatch */
1470
+ DnsRrsetPatch: {
1471
+ /** Name */
1472
+ name: string;
1473
+ /** Records */
1474
+ records: components["schemas"]["DnsRecordCreate"][];
1475
+ /** Ttl */
1476
+ ttl: number;
1477
+ type: components["schemas"]["DnsRrsetType"];
1478
+ };
1479
+ /** DnsRrsetPatchOp */
1480
+ DnsRrsetPatchOp: {
1481
+ op: components["schemas"]["PatchOp"];
1482
+ rrset: components["schemas"]["DnsRrsetPatch"];
1483
+ };
1446
1484
  /** DnsRrsetResponse */
1447
1485
  DnsRrsetResponse: {
1448
1486
  /** Name */
@@ -1458,6 +1496,16 @@ export interface components {
1458
1496
  * @enum {string}
1459
1497
  */
1460
1498
  DnsRrsetType: "A" | "AAAA" | "ALIAS" | "CAA" | "CNAME" | "DNSKEY" | "DS" | "MX" | "NS" | "PTR" | "TXT" | "SOA" | "SRV";
1499
+ /** DnsRrsetWithOneRecordPatch */
1500
+ DnsRrsetWithOneRecordPatch: {
1501
+ /** Name */
1502
+ name: string;
1503
+ /** Rdata */
1504
+ rdata: string;
1505
+ /** Ttl */
1506
+ ttl: number;
1507
+ type: components["schemas"]["DnsRrsetType"];
1508
+ };
1461
1509
  /** DnsZoneCreate */
1462
1510
  DnsZoneCreate: {
1463
1511
  /** @default disabled */
@@ -1467,6 +1515,11 @@ export interface components {
1467
1515
  /** Rrsets */
1468
1516
  rrsets?: components["schemas"]["DnsRrsetCreate"][];
1469
1517
  };
1518
+ /** DnsZoneRecordsPatchOps */
1519
+ DnsZoneRecordsPatchOps: {
1520
+ /** Ops */
1521
+ ops: components["schemas"]["DnsRecordPatchOp"][];
1522
+ };
1470
1523
  /** DnsZoneResponse */
1471
1524
  DnsZoneResponse: {
1472
1525
  /** @default disabled */
@@ -1482,6 +1535,11 @@ export interface components {
1482
1535
  /** Rrsets */
1483
1536
  rrsets?: components["schemas"]["DnsRrsetCreate"][];
1484
1537
  };
1538
+ /** DnsZoneRrsetsPatchOps */
1539
+ DnsZoneRrsetsPatchOps: {
1540
+ /** Ops */
1541
+ ops: components["schemas"]["DnsRrsetPatchOp"][];
1542
+ };
1485
1543
  /**
1486
1544
  * DnssecAlgorithm
1487
1545
  * @enum {integer}
@@ -3009,6 +3067,11 @@ export interface components {
3009
3067
  /** Results */
3010
3068
  results: components["schemas"]["User"][];
3011
3069
  };
3070
+ /**
3071
+ * PatchOp
3072
+ * @enum {string}
3073
+ */
3074
+ PatchOp: "upsert" | "remove";
3012
3075
  /**
3013
3076
  * PeriodUnit
3014
3077
  * @enum {string}
@@ -4575,7 +4638,41 @@ export interface operations {
4575
4638
  };
4576
4639
  };
4577
4640
  };
4578
- update_zone_v1_dns__zone_name__rrsets_put: {
4641
+ patch_zone_records_v1_dns__zone_name__records_patch: {
4642
+ parameters: {
4643
+ query?: never;
4644
+ header?: never;
4645
+ path: {
4646
+ /** @description DNS zone name (trailing dot optional) */
4647
+ zone_name: string;
4648
+ };
4649
+ cookie?: never;
4650
+ };
4651
+ requestBody: {
4652
+ content: {
4653
+ "application/json": components["schemas"]["DnsZoneRecordsPatchOps"];
4654
+ };
4655
+ };
4656
+ responses: {
4657
+ /** @description Successful Response */
4658
+ 204: {
4659
+ headers: {
4660
+ [name: string]: unknown;
4661
+ };
4662
+ content?: never;
4663
+ };
4664
+ /** @description Validation Error */
4665
+ 422: {
4666
+ headers: {
4667
+ [name: string]: unknown;
4668
+ };
4669
+ content: {
4670
+ "application/problem+json": components["schemas"]["HTTPValidationError"];
4671
+ };
4672
+ };
4673
+ };
4674
+ };
4675
+ update_zone_rrsets_v1_dns__zone_name__rrsets_put: {
4579
4676
  parameters: {
4580
4677
  query?: never;
4581
4678
  header?: never;
@@ -4592,14 +4689,46 @@ export interface operations {
4592
4689
  };
4593
4690
  responses: {
4594
4691
  /** @description Successful Response */
4595
- 200: {
4692
+ 204: {
4693
+ headers: {
4694
+ [name: string]: unknown;
4695
+ };
4696
+ content?: never;
4697
+ };
4698
+ /** @description Validation Error */
4699
+ 422: {
4596
4700
  headers: {
4597
4701
  [name: string]: unknown;
4598
4702
  };
4599
4703
  content: {
4600
- "application/json": unknown;
4704
+ "application/problem+json": components["schemas"]["HTTPValidationError"];
4601
4705
  };
4602
4706
  };
4707
+ };
4708
+ };
4709
+ patch_zone_rrsets_v1_dns__zone_name__rrsets_patch: {
4710
+ parameters: {
4711
+ query?: never;
4712
+ header?: never;
4713
+ path: {
4714
+ /** @description DNS zone name (trailing dot optional) */
4715
+ zone_name: string;
4716
+ };
4717
+ cookie?: never;
4718
+ };
4719
+ requestBody: {
4720
+ content: {
4721
+ "application/json": components["schemas"]["DnsZoneRrsetsPatchOps"];
4722
+ };
4723
+ };
4724
+ responses: {
4725
+ /** @description Successful Response */
4726
+ 204: {
4727
+ headers: {
4728
+ [name: string]: unknown;
4729
+ };
4730
+ content?: never;
4731
+ };
4603
4732
  /** @description Validation Error */
4604
4733
  422: {
4605
4734
  headers: {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Auto-generated enums from OpenAPI schema
3
- * Generated on: 2025-07-18T23:11:55.928Z
3
+ * Generated on: 2025-07-24T07:50:32.358Z
4
4
  */
5
5
 
6
6
  /**
@@ -238,6 +238,14 @@ export enum ORGANIZATION_STATUS {
238
238
  INACTIVE = "inactive",
239
239
  }
240
240
 
241
+ /**
242
+ * PATCH_OP
243
+ */
244
+ export enum PATCH_OP {
245
+ UPSERT = "upsert",
246
+ REMOVE = "remove",
247
+ }
248
+
241
249
  /**
242
250
  * PERIOD_UNIT
243
251
  */
@@ -83,7 +83,9 @@ export type Get_DnsByzoneName_ParamsPath_V1 = operations['get_zone_v1_dns__zone_
83
83
  export type Delete_DnsByzoneName_ParamsPath_V1 = operations['delete_zone_v1_dns__zone_name__delete']['parameters']['path'];
84
84
  export type Post_DnsByzoneNameDnssecDisable_ParamsPath_V1 = operations['disable_dnssec_v1_dns__zone_name__dnssec_disable_post']['parameters']['path'];
85
85
  export type Post_DnsByzoneNameDnssecEnable_ParamsPath_V1 = operations['enable_dnssec_v1_dns__zone_name__dnssec_enable_post']['parameters']['path'];
86
- export type Put_DnsByzoneNameRrsets_ParamsPath_V1 = operations['update_zone_v1_dns__zone_name__rrsets_put']['parameters']['path'];
86
+ export type Patch_DnsByzoneNameRecords_ParamsPath_V1 = operations['patch_zone_records_v1_dns__zone_name__records_patch']['parameters']['path'];
87
+ export type Put_DnsByzoneNameRrsets_ParamsPath_V1 = operations['update_zone_rrsets_v1_dns__zone_name__rrsets_put']['parameters']['path'];
88
+ export type Patch_DnsByzoneNameRrsets_ParamsPath_V1 = operations['patch_zone_rrsets_v1_dns__zone_name__rrsets_patch']['parameters']['path'];
87
89
  export type Get_DomainSearchSuggest_ParamsQuery_V1 = operations['suggest_v1_domain_search_suggest_get']['parameters']['query'];
88
90
  export type Get_Domains_ParamsQuery_V1 = operations['get_domains_v1_domains_get']['parameters']['query'];
89
91
  export type Get_DomainsCheck_ParamsQuery_V1 = operations['epp_check_domain_v1_domains_check_get']['parameters']['query'];