@opusdns/api 0.12.0 → 0.13.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/README.md CHANGED
@@ -1,8 +1,65 @@
1
- ### OpusDNS OpenAPI specification and types
1
+ # OpusDNS API Types, Specification and Constants
2
2
 
3
- This repository contains the [OpenAPI specification](https://swagger.io/specification/) for the backend API of [OpusDNS](https://www.opusdns.com/).
3
+ This repository contains the [OpenAPI specification](https://swagger.io/specification/) for the backend API of [OpusDNS](https://www.opusdns.com/) along with generated TypeScript types and constants.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install @opusdns/api
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ Import the types, constants, and schemas you need directly from the package:
14
+
15
+ ```typescript
16
+ import {
17
+ Domain,
18
+ DOMAIN_AVAILABILITY_STATUS,
19
+ paths,
20
+ operations,
21
+ components,
22
+ GET_Domains_Request,
23
+ POST_Domains_Request_Body,
24
+ ALLOCATION_METHOD_TYPE
25
+ } from '@opusdns/api';
26
+ ```
27
+
28
+ ### Available Exports
29
+
30
+ #### Schema Types
31
+ - `paths` - OpenAPI paths interface
32
+ - `operations` - OpenAPI operations interface
33
+ - `components` - OpenAPI components interface
34
+
35
+ #### Domain Types
36
+ - `Domain` - Domain object type
37
+ - `DomainCreate` - Domain creation type
38
+ - `DomainUpdate` - Domain update type
39
+ - `DomainRenewRequest` - Domain renewal type
40
+
41
+ #### Request/Response Types
42
+ - `GET_Domains_Request` - GET domains request type
43
+ - `POST_Domains_Request_Body` - POST domains request body type
44
+ - `GET_Domains_Response` - GET domains response type
45
+
46
+ #### Constants
47
+ - `DOMAIN_AVAILABILITY_STATUS` - Domain availability status enum
48
+ - `ALLOCATION_METHOD_TYPE` - Allocation method type enum
49
+ - `DOMAIN_STATUS` - Domain status enum
50
+ - `CONTACT_ROLE_TYPE` - Contact role type enum
51
+
52
+ #### DNS Types
53
+ - `DnsZone` - DNS zone type
54
+ - `DnsRecord` - DNS record type
55
+ - `DnsRrset` - DNS RRset type
56
+
57
+ #### Organization Types
58
+ - `Organization` - Organization type
59
+ - `User` - User type
60
+ - `Contact` - Contact type
4
61
 
5
62
  ### Links
6
63
 
7
- - [Main website](https://www.opusdns.com/).
8
- - [Developer docs](https://developers.opusdns.com/).
64
+ - [Main website](https://www.opusdns.com/)
65
+ - [Developer docs](https://developers.opusdns.com/)
package/package.json CHANGED
@@ -8,11 +8,20 @@
8
8
  "typescript": "^5.8.2"
9
9
  },
10
10
  "name": "@opusdns/api",
11
- "version": "0.12.0",
11
+ "version": "0.13.0",
12
12
  "description": "TypeScript types for the OpusDNS OpenAPI specification",
13
- "main": "src/index.d.ts",
14
- "types": "src/index.d.ts",
13
+ "main": "./src/index.ts",
14
+ "module": "./src/index.ts",
15
+ "types": "./src/index.d.ts",
15
16
  "type": "module",
17
+ "exports": {
18
+ ".": {
19
+ "types": "./src/index.d.ts",
20
+ "import": "./src/index.ts"
21
+ },
22
+ "./helpers": "./src/helpers/index.ts",
23
+ "./types": "./src/index.d.ts"
24
+ },
16
25
  "dependencies": {
17
26
  "typeid-js": "^1.2.0"
18
27
  },
@@ -25,13 +34,15 @@
25
34
  "bugs": {
26
35
  "url": "https://github.com/OpusDNS/api-spec/issues"
27
36
  },
28
- "homepage": "https://github.com/OpusDNS/api-spec#readme",
29
37
  "scripts": {
30
38
  "generate:schema": "tsx scripts/generate-schema.ts",
31
39
  "generate:helpers": "tsx scripts/helpers/generate-all.ts"
32
40
  },
41
+ "homepage": "https://github.com/OpusDNS/api-spec#readme",
33
42
  "files": [
34
43
  "package.json",
35
- "src/"
44
+ "src/",
45
+ "README.md",
46
+ "LICENSE"
36
47
  ]
37
48
  }
@@ -14,7 +14,7 @@
14
14
 
15
15
  export * from './keys';
16
16
  export * from './requests';
17
- export * from './schemas';
18
- export * from './schemas-arrays';
19
- export * from './constants';
20
- export * from './responses';
17
+ export * from './schemas.d';
18
+ export * from './schemas-arrays.d';
19
+ export * from './constants.d';
20
+ export * from './responses.d';
@@ -32,9 +32,9 @@
32
32
 
33
33
  import { operations } from '../schema';
34
34
 
35
- import { DomainDnssecDataCreateArray, OrganizationAttributeUpdateArray } from './schemas-arrays';
35
+ import { DomainDnssecDataCreateArray, OrganizationAttributeUpdateArray } from './schemas-arrays.d';
36
36
 
37
- import { OrganizationCredentialExtra, SignupCreate, ContactCreate, DnsZoneCreate, DnsZoneRecordsPatchOps, DnsZoneRrsetsPatchOps, DnsZoneRrsetsCreate, DomainCreate, DomainUpdate, DomainRenewRequest, DomainTransferIn, EmailForwardCreate, EmailForwardBulkDelete, EmailForwardBulkUpdate, EmailForwardUpdate, NotificationCreate, NotificationUpdate, OrganizationCreate, IpRestrictionCreate, IpRestrictionUpdate, OrganizationUpdate, PlanUpdate, UserCreate, TermsOfServiceAccept, UserUpdate, SpiceDbRelationshipUpdate } from './schemas';
37
+ import { OrganizationCredentialExtra, SignupCreate, ContactCreate, DnsZoneCreate, DnsZoneRecordsPatchOps, DnsZoneRrsetsPatchOps, DnsZoneRrsetsCreate, DomainCreate, DomainUpdate, DomainRenewRequest, DomainTransferIn, EmailForwardCreate, EmailForwardBulkDelete, EmailForwardBulkUpdate, EmailForwardUpdate, NotificationCreate, NotificationUpdate, OrganizationCreate, IpRestrictionCreate, IpRestrictionUpdate, OrganizationUpdate, PlanUpdate, UserCreate, TermsOfServiceAccept, UserUpdate, SpiceDbRelationshipUpdate } from './schemas.d';
38
38
 
39
39
  /**
40
40
  * Request type for GET AuthClientCredentials endpoint
@@ -32,9 +32,9 @@
32
32
 
33
33
 
34
34
 
35
- import { DomainDnssecDataArray, OrganizationAttribute2Array, IpRestrictionArray, TldResponseShortArray } from './schemas-arrays';
35
+ import { DomainDnssecDataArray, OrganizationAttribute2Array, IpRestrictionArray, TldResponseShortArray } from './schemas-arrays.d';
36
36
 
37
- import { Pagination_OrganizationCredential, Problem, HTTPValidationError, OrganizationCredentialCreated, DomainAvailabilityList, Pagination_ContactSchema, ContactSchema, ContactVerification, Contact, Pagination_DnsZone, DnsZone, DnsChanges, DomainSearch, Pagination_Domain, Domain, DomainRenew, DomainCheck, DomainSummary, Pagination_EmailForward, EmailForward, EmailForwardBulkDeleteResult, EmailForwardBulkUpdateResult, Pagination_Event, EventSchema, Pagination_UserNotificationSummary, Notification, UserNotification, Pagination_Organization, Organization, OrganizationWithPlan, IpRestriction, Pagination_User, TldSpecification, User, UserWithAttributes, PermissionSet, RelationSet, UserWithRelationPermissions } from './schemas';
37
+ import { Pagination_OrganizationCredential, Problem, HTTPValidationError, OrganizationCredentialCreated, DomainAvailabilityList, Pagination_ContactSchema, ContactSchema, ContactVerification, Contact, Pagination_DnsZone, DnsZone, DnsChanges, DomainSearch, Pagination_Domain, Domain, DomainRenew, DomainCheck, DomainSummary, Pagination_EmailForward, EmailForward, EmailForwardBulkDeleteResult, EmailForwardBulkUpdateResult, Pagination_Event, EventSchema, Pagination_UserNotificationSummary, Notification, UserNotification, Pagination_Organization, Organization, OrganizationWithPlan, IpRestriction, Pagination_User, TldSpecification, User, UserWithAttributes, PermissionSet, RelationSet, UserWithRelationPermissions } from './schemas.d';
38
38
 
39
39
  /**
40
40
  * Response types for GET AuthClientCredentials 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, BulkOperationResult, PostalAddressType, ContactConfigBase, DnsChange, DnsRecordCreate, DnsRecord, DnsRrsetCreate, DnsRecordPatchOp, DnsRrset, DnsRrsetPatchOp, DomainAvailabilityCheck, Nameserver, DeletePolicyType, SyncOperationType, DomainContact, DomainStatus, DomainSearchSuggestion, DomainClientStatus, EmailForwardBulkUpdateItem, ValidationError, LaunchPhaseBase, LocalPresenceRequirementType, ContactRoleType, OrganizationAttribute2, User, OrganizationAttributeCreate, UserCreate, ContactSchema, DnsZone, Domain, EmailForward, EventResponse, OrganizationCredential, Organization, UserNotificationSummary, Period, Permission, PremiumAffectsType, Relation, TldBase, PostTransferRequirements, UserAttributeUpdate, DomainAvailability } from './schemas';
24
+ import { DomainDnssecData, DomainDnssecDataCreate, OrganizationAttribute, OrganizationAttributeUpdate, IpRestriction, TldResponseShort, BulkOperationResult, PostalAddressType, ContactConfigBase, DnsChange, DnsRecordCreate, DnsRecord, DnsRrsetCreate, DnsRecordPatchOp, DnsRrset, DnsRrsetPatchOp, DomainAvailabilityCheck, Nameserver, DeletePolicyType, SyncOperationType, DomainContact, DomainStatus, DomainSearchSuggestion, DomainClientStatus, EmailForwardBulkUpdateItem, ValidationError, LaunchPhaseBase, LocalPresenceRequirementType, ContactRoleType, OrganizationAttribute2, User, OrganizationAttributeCreate, UserCreate, ContactSchema, DnsZone, Domain, EmailForward, EventResponse, OrganizationCredential, Organization, UserNotificationSummary, Period, Permission, PremiumAffectsType, Relation, TldBase, PostTransferRequirements, UserAttributeUpdate, DomainAvailability } from './schemas.d';
25
25
 
26
26
  /**
27
27
  * DomainDnssecDataResponse
package/src/index.ts ADDED
@@ -0,0 +1,10 @@
1
+ // Runtime exports (constants and keys)
2
+ export * from './helpers/keys';
3
+ export * from './helpers/constants';
4
+
5
+ // Export all types including schema types
6
+ export type * from './helpers/responses.d';
7
+ export type * from './helpers/requests.d';
8
+ export type * from './helpers/schemas.d';
9
+ export type * from './helpers/schemas-arrays.d';
10
+ export type * from './schema.d';
package/src/openapi.yaml CHANGED
@@ -4953,7 +4953,7 @@ info:
4953
4953
  '
4954
4954
  summary: OpusDNS - your gateway to a seamless domain management experience.
4955
4955
  title: OpusDNS API
4956
- version: 2025-07-31-215514
4956
+ version: 2025-08-01-144220
4957
4957
  x-logo:
4958
4958
  altText: OpusDNS API Reference
4959
4959
  url: https://d24lr4zqs1tgqh.cloudfront.net/c9505a20-5ae1-406c-b060-d392569caebf.jpg
@@ -6670,6 +6670,30 @@ paths:
6670
6670
  type: string
6671
6671
  - type: 'null'
6672
6672
  title: Expires Before
6673
+ - in: query
6674
+ name: expires_in_30_days
6675
+ required: false
6676
+ schema:
6677
+ anyOf:
6678
+ - type: boolean
6679
+ - type: 'null'
6680
+ title: Expires In 30 Days
6681
+ - in: query
6682
+ name: expires_in_60_days
6683
+ required: false
6684
+ schema:
6685
+ anyOf:
6686
+ - type: boolean
6687
+ - type: 'null'
6688
+ title: Expires In 60 Days
6689
+ - in: query
6690
+ name: expires_in_90_days
6691
+ required: false
6692
+ schema:
6693
+ anyOf:
6694
+ - type: boolean
6695
+ - type: 'null'
6696
+ title: Expires In 90 Days
6673
6697
  - in: query
6674
6698
  name: registered_after
6675
6699
  required: false
package/src/schema.d.ts CHANGED
@@ -5801,6 +5801,9 @@ export interface operations {
5801
5801
  updated_before?: Date | null;
5802
5802
  expires_after?: Date | null;
5803
5803
  expires_before?: Date | null;
5804
+ expires_in_30_days?: boolean | null;
5805
+ expires_in_60_days?: boolean | null;
5806
+ expires_in_90_days?: boolean | null;
5804
5807
  registered_after?: Date | null;
5805
5808
  registered_before?: Date | null;
5806
5809
  };
@@ -7,5 +7,4 @@
7
7
 
8
8
  export * from './constants';
9
9
  export * from './keys';
10
- export * from './paths';
11
10
  export * from './types';
@@ -3,7 +3,7 @@
3
3
  * All types have moved to the helpers directory (see src/helpers/schemas.ts and related files). Please update your imports.
4
4
  */
5
5
 
6
- import { components, operations } from '../schema';
6
+ import type { components, operations } from '../schema.d.ts';
7
7
 
8
8
 
9
9
  /**
package/src/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export * from './helpers';
2
- export * from './schema';
File without changes