@opusdns/api 0.87.0 → 0.89.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.87.0",
6
+ "version": "0.89.0",
7
7
  "description": "TypeScript types for the OpusDNS OpenAPI specification",
8
8
  "main": "./src/index.ts",
9
9
  "module": "./src/index.ts",
@@ -21,7 +21,7 @@
21
21
  * ```
22
22
  */
23
23
 
24
- import { AllocationMethodType, AttributeType, BillingTransactionAction, BillingTransactionProductType, BillingTransactionSortField, BillingTransactionStatus, ContactRoleType, ContactSortField, Currency, DeletePolicyType, DnsChangeAction, DnsRrsetType, DnssecAlgorithm, DnssecDigestType, DnssecModeType, DnssecRecordType, DnssecStatus, DomainAttributeKey, DomainAvailabilityStatus, DomainClientStatus, DomainContactType, DomainSortField, DomainStatus, EmailVerificationStatus, EventObjectType, EventSortField, EventSubtype, EventType, GrantType, LaunchPhaseType, LocalPresenceRequirementType, OrganizationStatus, PatchOp, PeriodUnit, Permission, PostTransferRequirements, PostalAddressType, PremiumAffectsType, PremiumSourceType, RegistrantChangeType, RegistryHandleAttributeType, Relation, RenewalMode, ReservedSourceType, SortOrder, SyncOperationType, TLDType, TransferAckType, UserStatus, VerificationType, ZoneSortField } from './schemas';
24
+ import { AllocationMethodType, AttributeType, BillingTransactionAction, BillingTransactionProductType, BillingTransactionSortField, BillingTransactionStatus, ContactRoleType, ContactSortField, Currency, DeletePolicyType, DnsChangeAction, DnsRrsetType, DnssecAlgorithm, DnssecDigestType, DnssecModeType, DnssecRecordType, DnssecStatus, DomainAttributeKey, DomainAvailabilityStatus, DomainClientStatus, DomainContactType, DomainSortField, DomainStatus, EmailVerificationStatus, EventObjectType, EventSortField, EventSubtype, EventType, GrantType, HttpProtocol, InvoiceResponsePaymentStatus, InvoiceResponseStatus, InvoiceResponseType, LaunchPhaseType, LocalPresenceRequirementType, OrganizationStatus, PatchOp, PeriodUnit, Permission, PostTransferRequirements, PostalAddressType, PremiumAffectsType, PremiumSourceType, RedirectCode, RegistrantChangeType, RegistryHandleAttributeType, Relation, RenewalMode, ReservedSourceType, SortOrder, SyncOperationType, TLDType, TransferAckType, UserStatus, VerificationType, ZoneSortField } from './schemas';
25
25
 
26
26
  /**
27
27
  * AllocationMethodType. Auto-generated enum for AllocationMethodType
@@ -1601,6 +1601,222 @@ export const GRANT_TYPE_VALUES = [
1601
1601
  'refresh_token'
1602
1602
  ] as const satisfies [string, ...string[]] | GrantType[];
1603
1603
 
1604
+ /**
1605
+ * HttpProtocol. Auto-generated enum for HttpProtocol
1606
+ *
1607
+ * @remarks
1608
+ * This constant provides both object and array forms for the HttpProtocol enum.
1609
+ * The object form allows key-value access, while the array form enables iteration and validation.
1610
+ *
1611
+ * @example
1612
+ * ```typescript
1613
+ * // Using the object form for key-value access
1614
+ * const status = HTTP_PROTOCOL.SUCCESS;
1615
+ *
1616
+ * // Using the array form for iteration
1617
+ * const allStatuses = HTTP_PROTOCOL_VALUES;
1618
+ * console.log(`Available statuses: ${allStatuses.join(', ')}`);
1619
+ * ```
1620
+ *
1621
+ * @see {@link HttpProtocol} - The TypeScript type definition
1622
+ */
1623
+ export const HTTP_PROTOCOL = {
1624
+ HTTP: "http",
1625
+ HTTPS: "https",
1626
+ } as const satisfies Record<string, HttpProtocol>;
1627
+
1628
+ /**
1629
+ * Array of all HttpProtocol enum values
1630
+ *
1631
+ * @remarks
1632
+ * This constant provides a array containing all valid HttpProtocol enum values.
1633
+ * Useful for iteration, validation, and generating dynamic UI components.
1634
+ *
1635
+ * @example
1636
+ * ```typescript
1637
+ * // Iterating through all values
1638
+ * for (const value of HTTP_PROTOCOL_VALUES) {
1639
+ * console.log(`Processing: ${value}`);
1640
+ * }
1641
+ *
1642
+ * // Validation
1643
+ * const isValid = HTTP_PROTOCOL_VALUES.includes(someValue);
1644
+ * ```
1645
+ *
1646
+ * @see {@link HttpProtocol} - The TypeScript type definition
1647
+ * @see {@link HTTP_PROTOCOL} - The object form of this enum
1648
+ */
1649
+ export const HTTP_PROTOCOL_VALUES = [
1650
+ 'http',
1651
+ 'https'
1652
+ ] as const satisfies [string, ...string[]] | HttpProtocol[];
1653
+
1654
+ /**
1655
+ * InvoiceResponsePaymentStatus. Auto-generated enum for InvoiceResponsePaymentStatus
1656
+ *
1657
+ * @remarks
1658
+ * This constant provides both object and array forms for the InvoiceResponsePaymentStatus enum.
1659
+ * The object form allows key-value access, while the array form enables iteration and validation.
1660
+ *
1661
+ * @example
1662
+ * ```typescript
1663
+ * // Using the object form for key-value access
1664
+ * const status = INVOICE_RESPONSE_PAYMENT_STATUS.SUCCESS;
1665
+ *
1666
+ * // Using the array form for iteration
1667
+ * const allStatuses = INVOICE_RESPONSE_PAYMENT_STATUS_VALUES;
1668
+ * console.log(`Available statuses: ${allStatuses.join(', ')}`);
1669
+ * ```
1670
+ *
1671
+ * @see {@link InvoiceResponsePaymentStatus} - The TypeScript type definition
1672
+ */
1673
+ export const INVOICE_RESPONSE_PAYMENT_STATUS = {
1674
+ PENDING: "pending",
1675
+ FAILED: "failed",
1676
+ SUCCEEDED: "succeeded",
1677
+ } as const satisfies Record<string, InvoiceResponsePaymentStatus>;
1678
+
1679
+ /**
1680
+ * Array of all InvoiceResponsePaymentStatus enum values
1681
+ *
1682
+ * @remarks
1683
+ * This constant provides a array containing all valid InvoiceResponsePaymentStatus enum values.
1684
+ * Useful for iteration, validation, and generating dynamic UI components.
1685
+ *
1686
+ * @example
1687
+ * ```typescript
1688
+ * // Iterating through all values
1689
+ * for (const value of INVOICE_RESPONSE_PAYMENT_STATUS_VALUES) {
1690
+ * console.log(`Processing: ${value}`);
1691
+ * }
1692
+ *
1693
+ * // Validation
1694
+ * const isValid = INVOICE_RESPONSE_PAYMENT_STATUS_VALUES.includes(someValue);
1695
+ * ```
1696
+ *
1697
+ * @see {@link InvoiceResponsePaymentStatus} - The TypeScript type definition
1698
+ * @see {@link INVOICE_RESPONSE_PAYMENT_STATUS} - The object form of this enum
1699
+ */
1700
+ export const INVOICE_RESPONSE_PAYMENT_STATUS_VALUES = [
1701
+ 'pending',
1702
+ 'failed',
1703
+ 'succeeded'
1704
+ ] as const satisfies [string, ...string[]] | InvoiceResponsePaymentStatus[];
1705
+
1706
+ /**
1707
+ * InvoiceResponseStatus. Auto-generated enum for InvoiceResponseStatus
1708
+ *
1709
+ * @remarks
1710
+ * This constant provides both object and array forms for the InvoiceResponseStatus enum.
1711
+ * The object form allows key-value access, while the array form enables iteration and validation.
1712
+ *
1713
+ * @example
1714
+ * ```typescript
1715
+ * // Using the object form for key-value access
1716
+ * const status = INVOICE_RESPONSE_STATUS.SUCCESS;
1717
+ *
1718
+ * // Using the array form for iteration
1719
+ * const allStatuses = INVOICE_RESPONSE_STATUS_VALUES;
1720
+ * console.log(`Available statuses: ${allStatuses.join(', ')}`);
1721
+ * ```
1722
+ *
1723
+ * @see {@link InvoiceResponseStatus} - The TypeScript type definition
1724
+ */
1725
+ export const INVOICE_RESPONSE_STATUS = {
1726
+ DRAFT: "draft",
1727
+ FINALIZED: "finalized",
1728
+ FAILED: "failed",
1729
+ PENDING: "pending",
1730
+ VOIDED: "voided",
1731
+ } as const satisfies Record<string, InvoiceResponseStatus>;
1732
+
1733
+ /**
1734
+ * Array of all InvoiceResponseStatus enum values
1735
+ *
1736
+ * @remarks
1737
+ * This constant provides a array containing all valid InvoiceResponseStatus enum values.
1738
+ * Useful for iteration, validation, and generating dynamic UI components.
1739
+ *
1740
+ * @example
1741
+ * ```typescript
1742
+ * // Iterating through all values
1743
+ * for (const value of INVOICE_RESPONSE_STATUS_VALUES) {
1744
+ * console.log(`Processing: ${value}`);
1745
+ * }
1746
+ *
1747
+ * // Validation
1748
+ * const isValid = INVOICE_RESPONSE_STATUS_VALUES.includes(someValue);
1749
+ * ```
1750
+ *
1751
+ * @see {@link InvoiceResponseStatus} - The TypeScript type definition
1752
+ * @see {@link INVOICE_RESPONSE_STATUS} - The object form of this enum
1753
+ */
1754
+ export const INVOICE_RESPONSE_STATUS_VALUES = [
1755
+ 'draft',
1756
+ 'finalized',
1757
+ 'failed',
1758
+ 'pending',
1759
+ 'voided'
1760
+ ] as const satisfies [string, ...string[]] | InvoiceResponseStatus[];
1761
+
1762
+ /**
1763
+ * InvoiceResponseType. Auto-generated enum for InvoiceResponseType
1764
+ *
1765
+ * @remarks
1766
+ * This constant provides both object and array forms for the InvoiceResponseType enum.
1767
+ * The object form allows key-value access, while the array form enables iteration and validation.
1768
+ *
1769
+ * @example
1770
+ * ```typescript
1771
+ * // Using the object form for key-value access
1772
+ * const status = INVOICE_RESPONSE_TYPE.SUCCESS;
1773
+ *
1774
+ * // Using the array form for iteration
1775
+ * const allStatuses = INVOICE_RESPONSE_TYPE_VALUES;
1776
+ * console.log(`Available statuses: ${allStatuses.join(', ')}`);
1777
+ * ```
1778
+ *
1779
+ * @see {@link InvoiceResponseType} - The TypeScript type definition
1780
+ */
1781
+ export const INVOICE_RESPONSE_TYPE = {
1782
+ SUBSCRIPTION: "subscription",
1783
+ ADD_ON: "add_on",
1784
+ CREDIT: "credit",
1785
+ ONE_OFF: "one_off",
1786
+ ADVANCE_CHARGES: "advance_charges",
1787
+ PROGRESSIVE_BILLING: "progressive_billing",
1788
+ } as const satisfies Record<string, InvoiceResponseType>;
1789
+
1790
+ /**
1791
+ * Array of all InvoiceResponseType enum values
1792
+ *
1793
+ * @remarks
1794
+ * This constant provides a array containing all valid InvoiceResponseType enum values.
1795
+ * Useful for iteration, validation, and generating dynamic UI components.
1796
+ *
1797
+ * @example
1798
+ * ```typescript
1799
+ * // Iterating through all values
1800
+ * for (const value of INVOICE_RESPONSE_TYPE_VALUES) {
1801
+ * console.log(`Processing: ${value}`);
1802
+ * }
1803
+ *
1804
+ * // Validation
1805
+ * const isValid = INVOICE_RESPONSE_TYPE_VALUES.includes(someValue);
1806
+ * ```
1807
+ *
1808
+ * @see {@link InvoiceResponseType} - The TypeScript type definition
1809
+ * @see {@link INVOICE_RESPONSE_TYPE} - The object form of this enum
1810
+ */
1811
+ export const INVOICE_RESPONSE_TYPE_VALUES = [
1812
+ 'subscription',
1813
+ 'add_on',
1814
+ 'credit',
1815
+ 'one_off',
1816
+ 'advance_charges',
1817
+ 'progressive_billing'
1818
+ ] as const satisfies [string, ...string[]] | InvoiceResponseType[];
1819
+
1604
1820
  /**
1605
1821
  * LaunchPhaseType. Auto-generated enum for LaunchPhaseType
1606
1822
  *
@@ -2171,6 +2387,29 @@ export const PREMIUM_SOURCE_TYPE_VALUES = [
2171
2387
  'manual'
2172
2388
  ] as const satisfies [string, ...string[]] | PremiumSourceType[];
2173
2389
 
2390
+ /**
2391
+ * RedirectCode. Auto-generated enum for RedirectCode
2392
+ *
2393
+ * @remarks
2394
+ * This constant provides an array of integer values for the RedirectCode enum.
2395
+ * Integer enums are represented as typed arrays for efficient iteration and validation.
2396
+ *
2397
+ * @example
2398
+ * ```typescript
2399
+ * // Using the array for iteration
2400
+ * const algorithms = DNSSEC_ALGORITHM;
2401
+ * console.log(`Available algorithms: ${algorithms.join(', ')}`);
2402
+ * ```
2403
+ *
2404
+ * @see {@link RedirectCode} - The TypeScript type definition
2405
+ */
2406
+ export const REDIRECT_CODE = [
2407
+ 301,
2408
+ 302,
2409
+ 307,
2410
+ 308
2411
+ ] as const satisfies RedirectCode[];
2412
+
2174
2413
  /**
2175
2414
  * RegistrantChangeType. Auto-generated enum for RegistrantChangeType
2176
2415
  *