@opusdns/api 0.89.0 → 0.91.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.
@@ -34,7 +34,7 @@
34
34
 
35
35
  import { DomainDnssecDataArray, OrganizationAttribute2Array, IpRestrictionArray, TldResponseShortArray } from './schemas-arrays.d';
36
36
 
37
- import { Problem, HTTPValidationError, DomainAvailabilityList, Pagination_ContactSchema, ContactSchema, ContactVerification, Contact, Pagination_DnsZone, DnsZone, DnsChanges, DnsZoneSummary, DomainForward, DomainSearch, Pagination_Domain, Domain, DomainRenew, DomainRestore, DomainCheck, DomainSummary, Pagination_EmailForwardAlias, EmailForwardAlias, Pagination_Event, EventSchema, Pagination_Organization, Organization, OrganizationWithBillingData, Pagination_Invoice, GetPrices, Pagination_BillingTransaction, BillingTransaction, IpRestriction, Pagination_User, TldSpecification, User, UserWithAttributes, PermissionSet, RelationSet, UserWithRelationPermissions } from './schemas.d';
37
+ import { Problem, HTTPValidationError, DomainAvailabilityList, Pagination_ContactSchema, ContactSchema, ContactVerification, Contact, Pagination_DnsZone, DnsZone, DnsChanges, DnsZoneSummary, Pagination_DomainForwardZone, DomainForward, DomainSearch, Pagination_Domain, Domain, DomainRenew, DomainRestore, DomainCheck, DomainSummary, Pagination_EmailForwardAlias, EmailForwardAlias, Pagination_Event, EventSchema, Pagination_Organization, Organization, OrganizationWithBillingData, Pagination_Invoice, GetPrices, Pagination_BillingTransaction, BillingTransaction, IpRestriction, Pagination_User, TldSpecification, User, UserWithAttributes, PermissionSet, RelationSet, UserWithRelationPermissions } from './schemas.d';
38
38
 
39
39
  /**
40
40
  * Response types for POST AuthToken endpoint
@@ -1661,6 +1661,116 @@ export type GET_DnsSummary_Response = GET_DnsSummary_Response_200;
1661
1661
  */
1662
1662
  export type GET_DnsSummary_Response_200 = DnsZoneSummary
1663
1663
 
1664
+ /**
1665
+ * Response types for GET DomainForwards endpoint
1666
+ *
1667
+ * List Domain Forwards
1668
+ *
1669
+ * @remarks
1670
+ * This type defines all possible response structures for the GET DomainForwards endpoint.
1671
+ * Each response code maps to a specific response type as defined in the OpenAPI specification.
1672
+ * Use this type to ensure type safety when handling API responses from this endpoint.
1673
+ *
1674
+
1675
+ *
1676
+ * @path /v1/domain-forwards
1677
+ *
1678
+ * @see {@link GET_DomainForwards_Response_200} - 200 response type
1679
+ * @see {@link GET_DomainForwards_Response_422} - 422 response type
1680
+ *
1681
+
1682
+ */
1683
+ export type GET_DomainForwards_Response = GET_DomainForwards_Response_200 | GET_DomainForwards_Response_422;
1684
+
1685
+ /**
1686
+ * 200 response for GET DomainForwards endpoint
1687
+ *
1688
+ * @remarks
1689
+ * This type defines the response structure for the 200 status code
1690
+ * of the GET DomainForwards endpoint.
1691
+ * It provides type safety for handling this specific response as defined in the OpenAPI specification.
1692
+ *
1693
+
1694
+ *
1695
+ * @path /v1/domain-forwards
1696
+ *
1697
+ * @see {@link GET_DomainForwards_Response} - The main response type definition
1698
+ * @see {@link Pagination_DomainForwardZone} - The actual schema type definition
1699
+ */
1700
+ export type GET_DomainForwards_Response_200 = Pagination_DomainForwardZone
1701
+
1702
+ /**
1703
+ * 422 response for GET DomainForwards endpoint
1704
+ *
1705
+ * @remarks
1706
+ * This type defines the response structure for the 422 status code
1707
+ * of the GET DomainForwards endpoint.
1708
+ * It provides type safety for handling this specific response as defined in the OpenAPI specification.
1709
+ *
1710
+
1711
+ *
1712
+ * @path /v1/domain-forwards
1713
+ *
1714
+ * @see {@link GET_DomainForwards_Response} - The main response type definition
1715
+ * @see {@link HTTPValidationError} - The actual schema type definition
1716
+ */
1717
+ export type GET_DomainForwards_Response_422 = HTTPValidationError
1718
+
1719
+ /**
1720
+ * Response types for PATCH DomainForwards endpoint
1721
+ *
1722
+ * Patch Redirects
1723
+ *
1724
+ * @remarks
1725
+ * This type defines all possible response structures for the PATCH DomainForwards endpoint.
1726
+ * Each response code maps to a specific response type as defined in the OpenAPI specification.
1727
+ * Use this type to ensure type safety when handling API responses from this endpoint.
1728
+ *
1729
+
1730
+ *
1731
+ * @path /v1/domain-forwards
1732
+ *
1733
+ * @see {@link PATCH_DomainForwards_Response_404} - 404 response type
1734
+ * @see {@link PATCH_DomainForwards_Response_422} - 422 response type
1735
+ *
1736
+
1737
+ */
1738
+ export type PATCH_DomainForwards_Response = PATCH_DomainForwards_Response_404 | PATCH_DomainForwards_Response_422;
1739
+
1740
+ /**
1741
+ * 404 response for PATCH DomainForwards endpoint
1742
+ *
1743
+ * @remarks
1744
+ * This type defines the response structure for the 404 status code
1745
+ * of the PATCH DomainForwards endpoint.
1746
+ * It provides type safety for handling this specific response as defined in the OpenAPI specification.
1747
+ *
1748
+
1749
+ *
1750
+ * @path /v1/domain-forwards
1751
+ *
1752
+ * @see {@link PATCH_DomainForwards_Response} - The main response type definition
1753
+ * @see {@link Problem} - The actual schema type definition
1754
+ */
1755
+ export type PATCH_DomainForwards_Response_404 = Problem
1756
+
1757
+ /**
1758
+ * 422 response for PATCH DomainForwards endpoint
1759
+ *
1760
+ * @remarks
1761
+ * This type defines the response structure for the 422 status code
1762
+ * of the PATCH DomainForwards endpoint.
1763
+ * It provides type safety for handling this specific response as defined in the OpenAPI specification.
1764
+ *
1765
+
1766
+ *
1767
+ * @path /v1/domain-forwards
1768
+ *
1769
+ * @see {@link PATCH_DomainForwards_Response} - The main response type definition
1770
+ * @see {@link HTTPValidationError} - The actual schema type definition
1771
+ */
1772
+ export type PATCH_DomainForwards_Response_422 = HTTPValidationError
1773
+
1664
1774
  /**
1665
1775
  * Response types for DELETE DomainForwardsByZoneNameByRequestProtocol endpoint
1666
1776
  *
@@ -1676,11 +1786,30 @@ export type GET_DnsSummary_Response_200 = DnsZoneSummary
1676
1786
  * @path /v1/domain-forwards/{zone_name}/{request_protocol}
1677
1787
  * @param zone_name (path) - DNS zone name (trailing dot optional)
1678
1788
  *
1789
+ * @see {@link DELETE_DomainForwardsByZoneNameByRequestProtocol_Response_404} - 404 response type
1679
1790
  * @see {@link DELETE_DomainForwardsByZoneNameByRequestProtocol_Response_422} - 422 response type
1680
1791
  *
1681
1792
 
1682
1793
  */
1683
- export type DELETE_DomainForwardsByZoneNameByRequestProtocol_Response = DELETE_DomainForwardsByZoneNameByRequestProtocol_Response_422;
1794
+ export type DELETE_DomainForwardsByZoneNameByRequestProtocol_Response = DELETE_DomainForwardsByZoneNameByRequestProtocol_Response_404 | DELETE_DomainForwardsByZoneNameByRequestProtocol_Response_422;
1795
+
1796
+ /**
1797
+ * 404 response for DELETE DomainForwardsByZoneNameByRequestProtocol endpoint
1798
+ *
1799
+ * @remarks
1800
+ * This type defines the response structure for the 404 status code
1801
+ * of the DELETE DomainForwardsByZoneNameByRequestProtocol endpoint.
1802
+ * It provides type safety for handling this specific response as defined in the OpenAPI specification.
1803
+ *
1804
+
1805
+ *
1806
+ * @path /v1/domain-forwards/{zone_name}/{request_protocol}
1807
+ * @param zone_name (path) - DNS zone name (trailing dot optional)
1808
+ *
1809
+ * @see {@link DELETE_DomainForwardsByZoneNameByRequestProtocol_Response} - The main response type definition
1810
+ * @see {@link Problem} - The actual schema type definition
1811
+ */
1812
+ export type DELETE_DomainForwardsByZoneNameByRequestProtocol_Response_404 = Problem
1684
1813
 
1685
1814
  /**
1686
1815
  * 422 response for DELETE DomainForwardsByZoneNameByRequestProtocol endpoint
@@ -1851,12 +1980,12 @@ export type POST_DomainForwardsByZoneNameByRequestProtocol_Response_422 = HTTPVa
1851
1980
  * @param zone_name (path) - DNS zone name (trailing dot optional)
1852
1981
  *
1853
1982
  * @see {@link PUT_DomainForwardsByZoneNameByRequestProtocol_Response_200} - 200 response type
1854
- * @see {@link PUT_DomainForwardsByZoneNameByRequestProtocol_Response_409} - 409 response type
1983
+ * @see {@link PUT_DomainForwardsByZoneNameByRequestProtocol_Response_404} - 404 response type
1855
1984
  * @see {@link PUT_DomainForwardsByZoneNameByRequestProtocol_Response_422} - 422 response type
1856
1985
  *
1857
1986
 
1858
1987
  */
1859
- export type PUT_DomainForwardsByZoneNameByRequestProtocol_Response = PUT_DomainForwardsByZoneNameByRequestProtocol_Response_200 | PUT_DomainForwardsByZoneNameByRequestProtocol_Response_409 | PUT_DomainForwardsByZoneNameByRequestProtocol_Response_422;
1988
+ export type PUT_DomainForwardsByZoneNameByRequestProtocol_Response = PUT_DomainForwardsByZoneNameByRequestProtocol_Response_200 | PUT_DomainForwardsByZoneNameByRequestProtocol_Response_404 | PUT_DomainForwardsByZoneNameByRequestProtocol_Response_422;
1860
1989
 
1861
1990
  /**
1862
1991
  * 200 response for PUT DomainForwardsByZoneNameByRequestProtocol endpoint
@@ -1877,10 +2006,10 @@ export type PUT_DomainForwardsByZoneNameByRequestProtocol_Response = PUT_DomainF
1877
2006
  export type PUT_DomainForwardsByZoneNameByRequestProtocol_Response_200 = DomainForward
1878
2007
 
1879
2008
  /**
1880
- * 409 response for PUT DomainForwardsByZoneNameByRequestProtocol endpoint
2009
+ * 404 response for PUT DomainForwardsByZoneNameByRequestProtocol endpoint
1881
2010
  *
1882
2011
  * @remarks
1883
- * This type defines the response structure for the 409 status code
2012
+ * This type defines the response structure for the 404 status code
1884
2013
  * of the PUT DomainForwardsByZoneNameByRequestProtocol endpoint.
1885
2014
  * It provides type safety for handling this specific response as defined in the OpenAPI specification.
1886
2015
  *
@@ -1892,7 +2021,7 @@ export type PUT_DomainForwardsByZoneNameByRequestProtocol_Response_200 = DomainF
1892
2021
  * @see {@link PUT_DomainForwardsByZoneNameByRequestProtocol_Response} - The main response type definition
1893
2022
  * @see {@link Problem} - The actual schema type definition
1894
2023
  */
1895
- export type PUT_DomainForwardsByZoneNameByRequestProtocol_Response_409 = Problem
2024
+ export type PUT_DomainForwardsByZoneNameByRequestProtocol_Response_404 = Problem
1896
2025
 
1897
2026
  /**
1898
2027
  * 422 response for PUT DomainForwardsByZoneNameByRequestProtocol endpoint
@@ -21,7 +21,7 @@
21
21
  * This file is auto-generated from the OpenAPI specification.
22
22
  * Do not edit manually.
23
23
  */
24
- import { DomainDnssecData, DomainDnssecDataCreate, OrganizationAttribute, OrganizationAttributeUpdate, IpRestriction, TldResponseShort, RegistryHandleAttributeType, ContactAttributeDefinition, ContactRoleAttributeRequirement, PostalAddressType, ContactConfigBase, DnsChange, DnsRecordCreate, DnsRecord, DnsRrsetCreate, DnsRecordPatchOp, DnsRrset, DnsRrsetPatchOp, DomainAvailabilityCheck, ContactHandle, Nameserver, HttpRedirect, DeletePolicyType, SyncOperationType, DomainContact, DomainSearchSuggestionWithPrice, DomainStatus, DomainClientStatus, PriceInfo, ValidationError, LaunchPhaseBase, LocalPresenceRequirementType, ContactRoleType, OrganizationAttribute2, User, OrganizationAttributeCreate, UserCreate, BillingTransaction, ContactSchema, DnsZone, Domain, EmailForwardAlias, EventResponse, Invoice, Organization, Period, Permission, PremiumAffectsType, Relation, TldBase, PostTransferRequirements, UserAttributeBase, DomainAvailability } from './schemas.d';
24
+ import { DomainDnssecData, DomainDnssecDataCreate, OrganizationAttribute, OrganizationAttributeUpdate, IpRestriction, TldResponseShort, RegistryHandleAttributeType, ContactAttributeDefinition, ContactRoleAttributeRequirement, PostalAddressType, ContactConfigBase, DnsChange, DnsRecordCreate, DnsRecord, DnsRrsetCreate, DnsRecordPatchOp, DnsRrset, DnsRrsetPatchOp, DomainAvailabilityCheck, ContactHandle, Nameserver, HttpRedirect, DomainForwardPatchOp, DeletePolicyType, SyncOperationType, DomainContact, DomainSearchSuggestionWithPrice, DomainStatus, DomainClientStatus, PriceInfo, ValidationError, LaunchPhaseBase, LocalPresenceRequirementType, ContactRoleType, OrganizationAttribute2, User, OrganizationAttributeCreate, UserCreate, BillingTransaction, ContactSchema, DnsZone, DomainForwardZone, Domain, EmailForwardAlias, EventResponse, Invoice, Organization, Period, Permission, PremiumAffectsType, Relation, TldBase, PostTransferRequirements, UserAttributeBase, DomainAvailability } from './schemas.d';
25
25
 
26
26
  /**
27
27
  * DomainDnssecDataResponse
@@ -331,6 +331,20 @@ export type NameserverArray = Nameserver[];
331
331
  * @see {@link HttpRedirect} - The individual HttpRedirect type definition
332
332
  */
333
333
  export type HttpRedirectArray = HttpRedirect[];
334
+ /**
335
+ * DomainForwardPatchOp
336
+ *
337
+ * @remarks
338
+ * Array type for DomainForwardPatchOp objects. Used when the API returns a collection of DomainForwardPatchOp instances.
339
+ *
340
+ * @example
341
+ * ```typescript
342
+ * const items: DomainForwardPatchOpArray = await api.getDomainForwardPatchOps();
343
+ * ```
344
+ *
345
+ * @see {@link DomainForwardPatchOp} - The individual DomainForwardPatchOp type definition
346
+ */
347
+ export type DomainForwardPatchOpArray = DomainForwardPatchOp[];
334
348
  /**
335
349
  * DeletePolicyType
336
350
  *
@@ -583,6 +597,20 @@ export type ContactSchemaArray = ContactSchema[];
583
597
  * @see {@link DnsZone} - The individual DnsZoneResponse type definition
584
598
  */
585
599
  export type DnsZoneArray = DnsZone[];
600
+ /**
601
+ * DomainForwardZone
602
+ *
603
+ * @remarks
604
+ * Array type for DomainForwardZone objects. Used when the API returns a collection of DomainForwardZone instances.
605
+ *
606
+ * @example
607
+ * ```typescript
608
+ * const items: DomainForwardZoneArray = await api.getDomainForwardZones();
609
+ * ```
610
+ *
611
+ * @see {@link DomainForwardZone} - The individual DomainForwardZone type definition
612
+ */
613
+ export type DomainForwardZoneArray = DomainForwardZone[];
586
614
  /**
587
615
  * DomainResponse
588
616
  *
@@ -1034,6 +1034,54 @@ export type DomainDnssecData = components['schemas']['DomainDnssecDataResponse']
1034
1034
  * @see {@link components} - The OpenAPI components schema definition
1035
1035
  */
1036
1036
  export type DomainForward = components['schemas']['DomainForward'];
1037
+ /**
1038
+ * DomainForwardPatchOp
1039
+ *
1040
+ * @remarks
1041
+ * Type alias for the `DomainForwardPatchOp` OpenAPI schema.
1042
+ * This type represents domainforwardpatchop data structures used in API requests and responses.
1043
+ *
1044
+ * @example
1045
+ * ```typescript
1046
+ * const response = await api.getDomainForwardPatchOp();
1047
+ * const item: DomainForwardPatchOp = response.results;
1048
+ * ```
1049
+ *
1050
+ * @see {@link components} - The OpenAPI components schema definition
1051
+ */
1052
+ export type DomainForwardPatchOp = components['schemas']['DomainForwardPatchOp'];
1053
+ /**
1054
+ * DomainForwardPatchOps
1055
+ *
1056
+ * @remarks
1057
+ * Type alias for the `DomainForwardPatchOps` OpenAPI schema.
1058
+ * This type represents domainforwardpatchops data structures used in API requests and responses.
1059
+ *
1060
+ * @example
1061
+ * ```typescript
1062
+ * const response = await api.getDomainForwardPatchOps();
1063
+ * const item: DomainForwardPatchOps = response.results;
1064
+ * ```
1065
+ *
1066
+ * @see {@link components} - The OpenAPI components schema definition
1067
+ */
1068
+ export type DomainForwardPatchOps = components['schemas']['DomainForwardPatchOps'];
1069
+ /**
1070
+ * DomainForwardProtocols
1071
+ *
1072
+ * @remarks
1073
+ * Type alias for the `DomainForwardProtocols` OpenAPI schema.
1074
+ * This type represents domainforwardprotocols data structures used in API requests and responses.
1075
+ *
1076
+ * @example
1077
+ * ```typescript
1078
+ * const response = await api.getDomainForwardProtocols();
1079
+ * const item: DomainForwardProtocols = response.results;
1080
+ * ```
1081
+ *
1082
+ * @see {@link components} - The OpenAPI components schema definition
1083
+ */
1084
+ export type DomainForwardProtocols = components['schemas']['DomainForwardProtocols'];
1037
1085
  /**
1038
1086
  * DomainForwardRequest
1039
1087
  *
@@ -1050,6 +1098,22 @@ export type DomainForward = components['schemas']['DomainForward'];
1050
1098
  * @see {@link components} - The OpenAPI components schema definition
1051
1099
  */
1052
1100
  export type DomainForwardRequest = components['schemas']['DomainForwardRequest'];
1101
+ /**
1102
+ * DomainForwardZone
1103
+ *
1104
+ * @remarks
1105
+ * Type alias for the `DomainForwardZone` OpenAPI schema.
1106
+ * This type represents domainforwardzone data structures used in API requests and responses.
1107
+ *
1108
+ * @example
1109
+ * ```typescript
1110
+ * const response = await api.getDomainForwardZone();
1111
+ * const item: DomainForwardZone = response.results;
1112
+ * ```
1113
+ *
1114
+ * @see {@link components} - The OpenAPI components schema definition
1115
+ */
1116
+ export type DomainForwardZone = components['schemas']['DomainForwardZone'];
1053
1117
  /**
1054
1118
  * DomainLifecycleBase
1055
1119
  *
@@ -1626,6 +1690,22 @@ export type HttpProtocol = components['schemas']['HttpProtocol'];
1626
1690
  * @see {@link components} - The OpenAPI components schema definition
1627
1691
  */
1628
1692
  export type HttpRedirect = components['schemas']['HttpRedirect'];
1693
+ /**
1694
+ * HttpRedirectRemove
1695
+ *
1696
+ * @remarks
1697
+ * Type alias for the `HttpRedirectRemove` OpenAPI schema.
1698
+ * This type represents httpredirectremove data structures used in API requests and responses.
1699
+ *
1700
+ * @example
1701
+ * ```typescript
1702
+ * const response = await api.getHttpRedirectRemove();
1703
+ * const item: HttpRedirectRemove = response.results;
1704
+ * ```
1705
+ *
1706
+ * @see {@link components} - The OpenAPI components schema definition
1707
+ */
1708
+ export type HttpRedirectRemove = components['schemas']['HttpRedirectRemove'];
1629
1709
  /**
1630
1710
  * IdnBase
1631
1711
  *
@@ -2095,6 +2175,22 @@ export type Pagination_ContactSchema = components['schemas']['Pagination_Contact
2095
2175
  * @see {@link components} - The OpenAPI components schema definition
2096
2176
  */
2097
2177
  export type Pagination_DnsZone = components['schemas']['Pagination_DnsZoneResponse_'];
2178
+ /**
2179
+ * Pagination[DomainForwardZone]
2180
+ *
2181
+ * @remarks
2182
+ * Type alias for the `Pagination_DomainForwardZone_` OpenAPI schema.
2183
+ * This type represents pagination[domainforwardzone] data structures used in API requests and responses.
2184
+ *
2185
+ * @example
2186
+ * ```typescript
2187
+ * const response = await api.getPagination_DomainForwardZone();
2188
+ * const item: Pagination_DomainForwardZone = response.results;
2189
+ * ```
2190
+ *
2191
+ * @see {@link components} - The OpenAPI components schema definition
2192
+ */
2193
+ export type Pagination_DomainForwardZone = components['schemas']['Pagination_DomainForwardZone_'];
2098
2194
  /**
2099
2195
  * Pagination[DomainResponse]
2100
2196
  *
@@ -2431,6 +2527,22 @@ export type PricingPeriod = components['schemas']['PricingPeriod'];
2431
2527
  * @see {@link components} - The OpenAPI components schema definition
2432
2528
  */
2433
2529
  export type Problem = components['schemas']['Problem'];
2530
+ /**
2531
+ * ProtocolRedirects
2532
+ *
2533
+ * @remarks
2534
+ * Type alias for the `ProtocolRedirects` OpenAPI schema.
2535
+ * This type represents protocolredirects data structures used in API requests and responses.
2536
+ *
2537
+ * @example
2538
+ * ```typescript
2539
+ * const response = await api.getProtocolRedirects();
2540
+ * const item: ProtocolRedirects = response.results;
2541
+ * ```
2542
+ *
2543
+ * @see {@link components} - The OpenAPI components schema definition
2544
+ */
2545
+ export type ProtocolRedirects = components['schemas']['ProtocolRedirects'];
2434
2546
  /**
2435
2547
  * PublicAuthRequestForm
2436
2548
  *