@opusdns/api 0.8.0 → 0.9.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.8.0",
11
+ "version": "0.9.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
@@ -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-24-074916
4067
+ version: 2025-07-25-140023
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>
package/src/schema.d.ts CHANGED
@@ -410,6 +410,26 @@ export interface paths {
410
410
  patch?: never;
411
411
  trace?: never;
412
412
  };
413
+ "/v1/domains/summary": {
414
+ parameters: {
415
+ query?: never;
416
+ header?: never;
417
+ path?: never;
418
+ cookie?: never;
419
+ };
420
+ /**
421
+ * Get domain summary
422
+ * @description Retrieves a summary of domains including counts by status, TLD, and expiration timeframes
423
+ */
424
+ get: operations["get_domain_summary_v1_domains_summary_get"];
425
+ put?: never;
426
+ post?: never;
427
+ delete?: never;
428
+ options?: never;
429
+ head?: never;
430
+ patch?: never;
431
+ trace?: never;
432
+ };
413
433
  "/v1/domains/transfer": {
414
434
  parameters: {
415
435
  query?: never;
@@ -1904,6 +1924,41 @@ export interface components {
1904
1924
  * @enum {string}
1905
1925
  */
1906
1926
  DomainStatus: "ok" | "serverTransferProhibited" | "serverUpdateProhibited" | "serverDeleteProhibited" | "serverRenewProhibited" | "serverHold" | "transferPeriod" | "renewPeriod" | "redemptionPeriod" | "pendingUpdate" | "pendingTransfer" | "pendingRestore" | "pendingRenew" | "pendingDelete" | "pendingCreate" | "inactive" | "autoRenewPeriod" | "addPeriod" | "deleted" | "clientTransferProhibited" | "clientUpdateProhibited" | "clientDeleteProhibited" | "clientRenewProhibited" | "clientHold";
1927
+ /** DomainSummaryData */
1928
+ DomainSummaryData: {
1929
+ /**
1930
+ * By Status
1931
+ * @description Domain counts by status (status: count)
1932
+ */
1933
+ by_status: {
1934
+ [key: string]: number;
1935
+ };
1936
+ /**
1937
+ * By Tld
1938
+ * @description Domain counts by TLD (tld: count)
1939
+ */
1940
+ by_tld: {
1941
+ [key: string]: number;
1942
+ };
1943
+ /** @description Domains expiring soon */
1944
+ expiring_soon: components["schemas"]["DomainsExpiringSoon"];
1945
+ /**
1946
+ * Total Count
1947
+ * @description Total number of domains
1948
+ */
1949
+ total_count: number;
1950
+ };
1951
+ /** DomainSummaryResponse */
1952
+ DomainSummaryResponse: {
1953
+ /** @description Domain summary data */
1954
+ domains: components["schemas"]["DomainSummaryData"];
1955
+ /**
1956
+ * Organization Id
1957
+ * Format: typeid
1958
+ * @description The organization ID
1959
+ */
1960
+ organization_id: TypeID<"organization">;
1961
+ };
1907
1962
  /** DomainTransferIn */
1908
1963
  DomainTransferIn: {
1909
1964
  /**
@@ -1952,6 +2007,24 @@ export interface components {
1952
2007
  */
1953
2008
  statuses?: components["schemas"]["DomainClientStatus"][] | null;
1954
2009
  };
2010
+ /** DomainsExpiringSoon */
2011
+ DomainsExpiringSoon: {
2012
+ /**
2013
+ * Next 30 Days
2014
+ * @description Number of domains expiring in the next 30 days
2015
+ */
2016
+ next_30_days: number;
2017
+ /**
2018
+ * Next 60 Days
2019
+ * @description Number of domains expiring in the next 60 days
2020
+ */
2021
+ next_60_days: number;
2022
+ /**
2023
+ * Next 90 Days
2024
+ * @description Number of domains expiring in the next 90 days
2025
+ */
2026
+ next_90_days: number;
2027
+ };
1955
2028
  /** EmailForward */
1956
2029
  EmailForward: {
1957
2030
  /**
@@ -4939,6 +5012,26 @@ export interface operations {
4939
5012
  };
4940
5013
  };
4941
5014
  };
5015
+ get_domain_summary_v1_domains_summary_get: {
5016
+ parameters: {
5017
+ query?: never;
5018
+ header?: never;
5019
+ path?: never;
5020
+ cookie?: never;
5021
+ };
5022
+ requestBody?: never;
5023
+ responses: {
5024
+ /** @description Successful Response */
5025
+ 200: {
5026
+ headers: {
5027
+ [name: string]: unknown;
5028
+ };
5029
+ content: {
5030
+ "application/json": components["schemas"]["DomainSummaryResponse"];
5031
+ };
5032
+ };
5033
+ };
5034
+ };
4942
5035
  transfer_domain_v1_domains_transfer_post: {
4943
5036
  parameters: {
4944
5037
  query?: never;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Auto-generated enums from OpenAPI schema
3
- * Generated on: 2025-07-24T07:50:32.358Z
3
+ * Generated on: 2025-07-25T14:03:33.604Z
4
4
  */
5
5
 
6
6
  /**
package/src/types/keys.ts CHANGED
@@ -17,6 +17,7 @@ import { Get_Domains_Response_V1 } from './types';
17
17
  import { Get_DomainsBydomainReference_Response_V1 } from './types';
18
18
  import { Get_DomainsCheck_Response_V1 } from './types';
19
19
  import { Get_DomainSearchSuggest_Response_V1 } from './types';
20
+ import { Get_DomainsSummary_Response_V1 } from './types';
20
21
  import { Get_EmailForwards_Response_V1 } from './types';
21
22
  import { Get_EmailForwardsByemailForwardId_Response_V1 } from './types';
22
23
  import { Get_Event_Response_V1 } from './types';
@@ -50,6 +51,7 @@ import { DnsZone } from './types';
50
51
  import { DomainCheck } from './types';
51
52
  import { Domain } from './types';
52
53
  import { DomainSearch } from './types';
54
+ import { DomainSummary } from './types';
53
55
  import { EmailForward } from './types';
54
56
  import { EventSchema } from './types';
55
57
  import { IpRestriction } from './types';
@@ -258,6 +260,14 @@ export const GET_DOMAIN_SEARCH_SUGGEST_RESPONSE_V1_KEYS = [
258
260
  GET_DOMAIN_SEARCH_SUGGEST_RESPONSE_V1_KEY_RESULTS,
259
261
  ] as const;
260
262
 
263
+ export const GET_DOMAINS_SUMMARY_RESPONSE_V1_KEY_DOMAINS = 'domains' as keyof Get_DomainsSummary_Response_V1;
264
+ export const GET_DOMAINS_SUMMARY_RESPONSE_V1_KEY_ORGANIZATION_ID = 'organization_id' as keyof Get_DomainsSummary_Response_V1;
265
+
266
+ export const GET_DOMAINS_SUMMARY_RESPONSE_V1_KEYS = [
267
+ GET_DOMAINS_SUMMARY_RESPONSE_V1_KEY_DOMAINS,
268
+ GET_DOMAINS_SUMMARY_RESPONSE_V1_KEY_ORGANIZATION_ID,
269
+ ] as const;
270
+
261
271
  export const GET_EMAIL_FORWARDS_RESPONSE_V1_KEY_PAGINATION = 'pagination' as keyof Get_EmailForwards_Response_V1;
262
272
  export const GET_EMAIL_FORWARDS_RESPONSE_V1_KEY_RESULTS = 'results' as keyof Get_EmailForwards_Response_V1;
263
273
 
@@ -974,6 +984,14 @@ export const DOMAIN_SEARCH_KEYS = [
974
984
  DOMAIN_SEARCH_KEY_RESULTS,
975
985
  ] as const;
976
986
 
987
+ export const DOMAIN_SUMMARY_KEY_DOMAINS = 'domains' as keyof DomainSummary;
988
+ export const DOMAIN_SUMMARY_KEY_ORGANIZATION_ID = 'organization_id' as keyof DomainSummary;
989
+
990
+ export const DOMAIN_SUMMARY_KEYS = [
991
+ DOMAIN_SUMMARY_KEY_DOMAINS,
992
+ DOMAIN_SUMMARY_KEY_ORGANIZATION_ID,
993
+ ] as const;
994
+
977
995
  export const EMAIL_FORWARD_KEY_CREATED_ON = 'created_on' as keyof EmailForward;
978
996
  export const EMAIL_FORWARD_KEY_EMAIL_FORWARD_ID = 'email_forward_id' as keyof EmailForward;
979
997
  export const EMAIL_FORWARD_KEY_SOURCE_ADDRESS = 'source_address' as keyof EmailForward;
@@ -23,6 +23,7 @@ export type Get_Domains_Response_V1 = components['schemas']['Pagination_DomainRe
23
23
  export type Get_DomainsBydomainReference_Response_V1 = components['schemas']['DomainResponse'];
24
24
  export type Get_DomainsCheck_Response_V1 = components['schemas']['DomainCheckResponse'];
25
25
  export type Get_DomainSearchSuggest_Response_V1 = components['schemas']['DomainSearchResponse'];
26
+ export type Get_DomainsSummary_Response_V1 = components['schemas']['DomainSummaryResponse'];
26
27
  export type Get_EmailForwards_Response_V1 = components['schemas']['Pagination_EmailForward_'];
27
28
  export type Get_EmailForwardsByemailForwardId_Response_V1 = components['schemas']['EmailForward'];
28
29
  export type Get_Event_Response_V1 = components['schemas']['Pagination_EventResponse_'];
@@ -151,6 +152,7 @@ export type DomainNameserversArray = Domain['nameservers'];
151
152
  export type DomainRegistry_statusesArray = Domain['registry_statuses'];
152
153
  export type DomainSearch = components['schemas']['DomainSearchResponse'];
153
154
  export type DomainSearchResultsArray = DomainSearch['results'];
155
+ export type DomainSummary = components['schemas']['DomainSummaryResponse'];
154
156
  export type EmailForward = components['schemas']['EmailForward'];
155
157
  export type EventSchema = components['schemas']['EventSchema'];
156
158
  export type IpRestriction = components['schemas']['IpRestrictionResponse'];