@opusdns/api 0.8.0 → 0.10.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 +3 -3
- package/src/helpers/constants.ts +1863 -0
- package/src/helpers/index.ts +19 -0
- package/src/helpers/keys.ts +15719 -0
- package/src/helpers/requests.ts +3493 -0
- package/src/helpers/responses.ts +5428 -0
- package/src/helpers/schemas-arrays.ts +543 -0
- package/src/helpers/schemas.ts +2284 -0
- package/src/index.ts +2 -0
- package/src/openapi.yaml +96 -3
- package/src/schema.d.ts +489 -0
- package/src/types/constants.ts +110 -1
- package/src/types/keys.ts +1547 -7
- package/src/types/types.ts +472 -4
package/src/index.ts
ADDED
package/src/openapi.yaml
CHANGED
|
@@ -1438,6 +1438,53 @@ components:
|
|
|
1438
1438
|
- clientHold
|
|
1439
1439
|
title: DomainStatus
|
|
1440
1440
|
type: string
|
|
1441
|
+
DomainSummaryData:
|
|
1442
|
+
properties:
|
|
1443
|
+
by_status:
|
|
1444
|
+
additionalProperties:
|
|
1445
|
+
type: integer
|
|
1446
|
+
description: 'Domain counts by status (status: count)'
|
|
1447
|
+
title: By Status
|
|
1448
|
+
type: object
|
|
1449
|
+
by_tld:
|
|
1450
|
+
additionalProperties:
|
|
1451
|
+
type: integer
|
|
1452
|
+
description: 'Domain counts by TLD (tld: count)'
|
|
1453
|
+
title: By Tld
|
|
1454
|
+
type: object
|
|
1455
|
+
expiring_soon:
|
|
1456
|
+
$ref: '#/components/schemas/DomainsExpiringSoon'
|
|
1457
|
+
description: Domains expiring soon
|
|
1458
|
+
total_count:
|
|
1459
|
+
description: Total number of domains
|
|
1460
|
+
title: Total Count
|
|
1461
|
+
type: integer
|
|
1462
|
+
required:
|
|
1463
|
+
- total_count
|
|
1464
|
+
- by_status
|
|
1465
|
+
- by_tld
|
|
1466
|
+
- expiring_soon
|
|
1467
|
+
title: DomainSummaryData
|
|
1468
|
+
type: object
|
|
1469
|
+
DomainSummaryResponse:
|
|
1470
|
+
properties:
|
|
1471
|
+
domains:
|
|
1472
|
+
$ref: '#/components/schemas/DomainSummaryData'
|
|
1473
|
+
description: Domain summary data
|
|
1474
|
+
organization_id:
|
|
1475
|
+
description: The organization ID
|
|
1476
|
+
examples:
|
|
1477
|
+
- organization_01h45ytscbebyvny4gc8cr8ma2
|
|
1478
|
+
format: typeid
|
|
1479
|
+
pattern: ^organization_[0-7][0-9a-hjkmnpq-tv-z]{25}$
|
|
1480
|
+
title: Organization Id
|
|
1481
|
+
type: string
|
|
1482
|
+
x-typeid-prefix: organization
|
|
1483
|
+
required:
|
|
1484
|
+
- organization_id
|
|
1485
|
+
- domains
|
|
1486
|
+
title: DomainSummaryResponse
|
|
1487
|
+
type: object
|
|
1441
1488
|
DomainTransferIn:
|
|
1442
1489
|
properties:
|
|
1443
1490
|
auth_code:
|
|
@@ -1528,6 +1575,26 @@ components:
|
|
|
1528
1575
|
title: Statuses
|
|
1529
1576
|
title: DomainUpdate
|
|
1530
1577
|
type: object
|
|
1578
|
+
DomainsExpiringSoon:
|
|
1579
|
+
properties:
|
|
1580
|
+
next_30_days:
|
|
1581
|
+
description: Number of domains expiring in the next 30 days
|
|
1582
|
+
title: Next 30 Days
|
|
1583
|
+
type: integer
|
|
1584
|
+
next_60_days:
|
|
1585
|
+
description: Number of domains expiring in the next 60 days
|
|
1586
|
+
title: Next 60 Days
|
|
1587
|
+
type: integer
|
|
1588
|
+
next_90_days:
|
|
1589
|
+
description: Number of domains expiring in the next 90 days
|
|
1590
|
+
title: Next 90 Days
|
|
1591
|
+
type: integer
|
|
1592
|
+
required:
|
|
1593
|
+
- next_30_days
|
|
1594
|
+
- next_60_days
|
|
1595
|
+
- next_90_days
|
|
1596
|
+
title: DomainsExpiringSoon
|
|
1597
|
+
type: object
|
|
1531
1598
|
EmailForward:
|
|
1532
1599
|
properties:
|
|
1533
1600
|
created_on:
|
|
@@ -3997,7 +4064,7 @@ info:
|
|
|
3997
4064
|
'
|
|
3998
4065
|
summary: OpusDNS - your gateway to a seamless domain management experience.
|
|
3999
4066
|
title: OpusDNS API
|
|
4000
|
-
version: 2025-07-
|
|
4067
|
+
version: 2025-07-31-022547
|
|
4001
4068
|
x-logo:
|
|
4002
4069
|
altText: OpusDNS API Reference
|
|
4003
4070
|
url: https://d24lr4zqs1tgqh.cloudfront.net/c9505a20-5ae1-406c-b060-d392569caebf.jpg
|
|
@@ -5835,6 +5902,23 @@ paths:
|
|
|
5835
5902
|
summary: Check domain availability
|
|
5836
5903
|
tags:
|
|
5837
5904
|
- domain
|
|
5905
|
+
/v1/domains/summary:
|
|
5906
|
+
get:
|
|
5907
|
+
description: Retrieves a summary of domains including counts by status, TLD,
|
|
5908
|
+
and expiration timeframes
|
|
5909
|
+
operationId: get_domain_summary_v1_domains_summary_get
|
|
5910
|
+
responses:
|
|
5911
|
+
'200':
|
|
5912
|
+
content:
|
|
5913
|
+
application/json:
|
|
5914
|
+
schema:
|
|
5915
|
+
$ref: '#/components/schemas/DomainSummaryResponse'
|
|
5916
|
+
description: Successful Response
|
|
5917
|
+
security:
|
|
5918
|
+
- OAuth2PasswordBearer: []
|
|
5919
|
+
summary: Get domain summary
|
|
5920
|
+
tags:
|
|
5921
|
+
- domain
|
|
5838
5922
|
/v1/domains/transfer:
|
|
5839
5923
|
post:
|
|
5840
5924
|
description: 'Start the transfer process for a domain <br>
|
|
@@ -5868,6 +5952,15 @@ paths:
|
|
|
5868
5952
|
title: Domain Management Error
|
|
5869
5953
|
tld: Additional error context.
|
|
5870
5954
|
type: domain-tld-not-available
|
|
5955
|
+
Domain Transfer Error:
|
|
5956
|
+
value:
|
|
5957
|
+
code: ERROR_DOMAIN_TRANSFER
|
|
5958
|
+
detail: An unspecified error occurred
|
|
5959
|
+
domain_name: Additional error context.
|
|
5960
|
+
reason: There was an error transferring the domain
|
|
5961
|
+
status: 400
|
|
5962
|
+
title: Domain Transfer Error
|
|
5963
|
+
type: domain-transfer
|
|
5871
5964
|
schema:
|
|
5872
5965
|
$ref: '#/components/schemas/Problem'
|
|
5873
5966
|
description: Bad Request
|
|
@@ -6336,11 +6429,11 @@ paths:
|
|
|
6336
6429
|
application/problem+json:
|
|
6337
6430
|
example:
|
|
6338
6431
|
code: ERROR_DOMAIN_TRANSFER
|
|
6339
|
-
detail:
|
|
6432
|
+
detail: An unspecified error occurred
|
|
6340
6433
|
domain_name: Additional error context.
|
|
6341
6434
|
reason: There was an error transferring the domain
|
|
6342
6435
|
status: 400
|
|
6343
|
-
title: Domain
|
|
6436
|
+
title: Domain Transfer Error
|
|
6344
6437
|
type: domain-transfer
|
|
6345
6438
|
schema:
|
|
6346
6439
|
$ref: '#/components/schemas/Problem'
|