@opusdns/api 0.157.0 → 0.159.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 { Pagination_EmailForwardLog, HTTPValidationError, Pagination_ObjectLog, Pagination_RequestHistory, Problem, DomainAvailabilityList, Pagination_ContactSchema, ContactSchema, ContactVerification, Contact, Pagination_DnsZone, DnsZone, DnsChanges, DomainForwardZone, EmailForwardZone, Pagination_DomainForwardZone, Pagination_EmailForwardZone, DnsZoneSummary, Pagination_DomainForward, DomainForward, DomainForwardSet, DomainForwardMetrics, DomainForwardBrowserStats, DomainForwardGeoStats, DomainForwardPlatformStats, DomainForwardReferrerStats, DomainForwardStatusCodeStats, DomainForwardMetricsTimeSeries, DomainForwardUserAgentStats, DomainForwardVisitsByKey, DomainSearch, Pagination_Domain, Domain, DomainRenew, DomainRestore, DomainCheck, DomainSummary, DomainWithdraw, RequestAuthcode, DomainTransit, RequestAuthcode2, Pagination_EmailForward, EmailForward, EmailForwardAlias, Pagination_Event, EventSchema, Pagination_Organization, Organization, OrganizationWithBillingData, Pagination_Invoice, GetPrices, Pagination_BillingTransaction, BillingTransaction, IpRestriction, Pagination_UserPublic, TldSpecification, UserPublic, UserPublicWithAttributes, PermissionSet, RelationSet, UserWithRelationPermissions } from './schemas.d';
37
+ import { Pagination_EmailForwardLog, HTTPValidationError, Pagination_ObjectLog, Pagination_RequestHistory, Problem, DomainAvailabilityList, Pagination_ContactSchema, ContactSchema, ContactVerification, Contact, Pagination_DnsZone, DnsZone, DnsChanges, DomainForwardZone, EmailForwardZone, Pagination_DomainForwardZone, Pagination_EmailForwardZone, DnsZoneSummary, Pagination_DomainForward, DomainForward, DomainForwardSet, DomainForwardMetrics, DomainForwardBrowserStats, DomainForwardGeoStats, DomainForwardPlatformStats, DomainForwardReferrerStats, DomainForwardStatusCodeStats, DomainForwardMetricsTimeSeries, DomainForwardUserAgentStats, DomainForwardVisitsByKey, DomainSearch, Pagination_Domain, Domain, DomainRenew, DomainRestore, DomainCheck, DomainSummary, DomainWithdraw, RequestAuthcode, DomainTransit, RequestAuthcode2, Pagination_EmailForward, EmailForward, EmailForwardAlias, EmailForwardMetrics, Pagination_Event, EventSchema, Pagination_Organization, Organization, OrganizationWithBillingData, Pagination_Invoice, GetPrices, Pagination_BillingTransaction, BillingTransaction, IpRestriction, Pagination_UserPublic, TldSpecification, UserPublic, UserPublicWithAttributes, PermissionSet, RelationSet, UserWithRelationPermissions } from './schemas.d';
38
38
 
39
39
  /**
40
40
  * Response types for GET ArchiveEmailForwardLogsAliasesByEmailForwardAliasId endpoint
@@ -6728,6 +6728,116 @@ export type PATCH_EmailForwardsByEmailForwardIdEnable_Response_404 = Problem
6728
6728
  */
6729
6729
  export type PATCH_EmailForwardsByEmailForwardIdEnable_Response_422 = HTTPValidationError
6730
6730
 
6731
+ /**
6732
+ * Response types for GET EmailForwardsByEmailForwardIdMetrics endpoint
6733
+ *
6734
+ * Retrieve email forward metrics
6735
+ * Retrieves metrics and statistics for a specific email forward, including delivery rates and status counts.
6736
+ *
6737
+ * @remarks
6738
+ * This type defines all possible response structures for the GET EmailForwardsByEmailForwardIdMetrics endpoint.
6739
+ * Each response code maps to a specific response type as defined in the OpenAPI specification.
6740
+ * Use this type to ensure type safety when handling API responses from this endpoint.
6741
+ *
6742
+
6743
+ *
6744
+ * @path /v1/email-forwards/{email_forward_id}/metrics
6745
+ *
6746
+ * @see {@link GET_EmailForwardsByEmailForwardIdMetrics_Response_200} - 200 response type
6747
+ * @see {@link GET_EmailForwardsByEmailForwardIdMetrics_Response_401} - 401 response type
6748
+ * @see {@link GET_EmailForwardsByEmailForwardIdMetrics_Response_403} - 403 response type
6749
+ * @see {@link GET_EmailForwardsByEmailForwardIdMetrics_Response_404} - 404 response type
6750
+ * @see {@link GET_EmailForwardsByEmailForwardIdMetrics_Response_422} - 422 response type
6751
+ *
6752
+
6753
+ */
6754
+ export type GET_EmailForwardsByEmailForwardIdMetrics_Response = GET_EmailForwardsByEmailForwardIdMetrics_Response_200 | GET_EmailForwardsByEmailForwardIdMetrics_Response_401 | GET_EmailForwardsByEmailForwardIdMetrics_Response_403 | GET_EmailForwardsByEmailForwardIdMetrics_Response_404 | GET_EmailForwardsByEmailForwardIdMetrics_Response_422;
6755
+
6756
+ /**
6757
+ * 200 response for GET EmailForwardsByEmailForwardIdMetrics endpoint
6758
+ *
6759
+ * @remarks
6760
+ * This type defines the response structure for the 200 status code
6761
+ * of the GET EmailForwardsByEmailForwardIdMetrics endpoint.
6762
+ * It provides type safety for handling this specific response as defined in the OpenAPI specification.
6763
+ *
6764
+
6765
+ *
6766
+ * @path /v1/email-forwards/{email_forward_id}/metrics
6767
+ *
6768
+ * @see {@link GET_EmailForwardsByEmailForwardIdMetrics_Response} - The main response type definition
6769
+ * @see {@link EmailForwardMetrics} - The actual schema type definition
6770
+ */
6771
+ export type GET_EmailForwardsByEmailForwardIdMetrics_Response_200 = EmailForwardMetrics
6772
+
6773
+ /**
6774
+ * 401 response for GET EmailForwardsByEmailForwardIdMetrics endpoint
6775
+ *
6776
+ * @remarks
6777
+ * This type defines the response structure for the 401 status code
6778
+ * of the GET EmailForwardsByEmailForwardIdMetrics endpoint.
6779
+ * It provides type safety for handling this specific response as defined in the OpenAPI specification.
6780
+ *
6781
+
6782
+ *
6783
+ * @path /v1/email-forwards/{email_forward_id}/metrics
6784
+ *
6785
+ * @see {@link GET_EmailForwardsByEmailForwardIdMetrics_Response} - The main response type definition
6786
+ * @see {@link Problem} - The actual schema type definition
6787
+ */
6788
+ export type GET_EmailForwardsByEmailForwardIdMetrics_Response_401 = Problem
6789
+
6790
+ /**
6791
+ * 403 response for GET EmailForwardsByEmailForwardIdMetrics endpoint
6792
+ *
6793
+ * @remarks
6794
+ * This type defines the response structure for the 403 status code
6795
+ * of the GET EmailForwardsByEmailForwardIdMetrics endpoint.
6796
+ * It provides type safety for handling this specific response as defined in the OpenAPI specification.
6797
+ *
6798
+
6799
+ *
6800
+ * @path /v1/email-forwards/{email_forward_id}/metrics
6801
+ *
6802
+ * @see {@link GET_EmailForwardsByEmailForwardIdMetrics_Response} - The main response type definition
6803
+ * @see {@link Problem} - The actual schema type definition
6804
+ */
6805
+ export type GET_EmailForwardsByEmailForwardIdMetrics_Response_403 = Problem
6806
+
6807
+ /**
6808
+ * 404 response for GET EmailForwardsByEmailForwardIdMetrics endpoint
6809
+ *
6810
+ * @remarks
6811
+ * This type defines the response structure for the 404 status code
6812
+ * of the GET EmailForwardsByEmailForwardIdMetrics endpoint.
6813
+ * It provides type safety for handling this specific response as defined in the OpenAPI specification.
6814
+ *
6815
+
6816
+ *
6817
+ * @path /v1/email-forwards/{email_forward_id}/metrics
6818
+ *
6819
+ * @see {@link GET_EmailForwardsByEmailForwardIdMetrics_Response} - The main response type definition
6820
+ * @see {@link Problem} - The actual schema type definition
6821
+ */
6822
+ export type GET_EmailForwardsByEmailForwardIdMetrics_Response_404 = Problem
6823
+
6824
+ /**
6825
+ * 422 response for GET EmailForwardsByEmailForwardIdMetrics endpoint
6826
+ *
6827
+ * @remarks
6828
+ * This type defines the response structure for the 422 status code
6829
+ * of the GET EmailForwardsByEmailForwardIdMetrics endpoint.
6830
+ * It provides type safety for handling this specific response as defined in the OpenAPI specification.
6831
+ *
6832
+
6833
+ *
6834
+ * @path /v1/email-forwards/{email_forward_id}/metrics
6835
+ *
6836
+ * @see {@link GET_EmailForwardsByEmailForwardIdMetrics_Response} - The main response type definition
6837
+ * @see {@link HTTPValidationError} - The actual schema type definition
6838
+ */
6839
+ export type GET_EmailForwardsByEmailForwardIdMetrics_Response_422 = HTTPValidationError
6840
+
6731
6841
  /**
6732
6842
  * Response types for GET Events endpoint
6733
6843
  *
@@ -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, BrowserStatsBucket, GeoStatsBucket, TimeSeriesBucket, DomainForwardPatchOp, PlatformStatsBucket, HttpRedirectList, ReferrerStatsBucket, StatusCodeStatsBucket, UserAgentStatsBucket, VisitsByKeyBucket, DomainForward, DeletePolicyType, SyncOperationType, DomainContact, DomainHost, DomainSearchSuggestionWithPrice, DomainStatus, DomainClientStatus, EmailForwardAliasCreate, EmailForwardLogEvent, EmailForwardAlias, EmailForward, PriceInfo, ValidationError, LaunchPhaseBase, LocalPresenceRequirementType, DomainContactType, OrganizationAttribute2, User, OrganizationAttributeCreate, UserCreate, BillingTransaction, ContactSchema, DnsZone, DomainForwardZone, Domain, EmailForwardLog, EmailForwardZone, EventResponse, Invoice, ObjectLog, Organization, RequestHistory, UserPublic, 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, BrowserStatsBucket, GeoStatsBucket, TimeSeriesBucket, DomainForwardPatchOp, PlatformStatsBucket, HttpRedirectList, ReferrerStatsBucket, StatusCodeStatsBucket, UserAgentStatsBucket, VisitsByKeyBucket, DomainForward, DeletePolicyType, SyncOperationType, DomainContact, DomainHost, DomainSearchSuggestionWithPrice, DomainStatus, DomainClientStatus, EmailForwardAliasCreate, EmailForwardLogEvent, EmailForwardAliasMetrics, EmailForwardAlias, EmailForward, PriceInfo, ValidationError, LaunchPhaseBase, LocalPresenceRequirementType, DomainContactType, OrganizationAttribute2, User, OrganizationAttributeCreate, UserCreate, BillingTransaction, ContactSchema, DnsZone, DomainForwardZone, Domain, EmailForwardLog, EmailForwardZone, EventResponse, Invoice, ObjectLog, Organization, RequestHistory, UserPublic, Period, Permission, PremiumAffectsType, Relation, TldBase, PostTransferRequirements, UserAttributeBase, DomainAvailability } from './schemas.d';
25
25
 
26
26
  /**
27
27
  * DomainDnssecDataResponse
@@ -597,6 +597,20 @@ export type EmailForwardAliasCreateArray = EmailForwardAliasCreate[];
597
597
  * @see {@link EmailForwardLogEvent} - The individual EmailForwardLogEvent type definition
598
598
  */
599
599
  export type EmailForwardLogEventArray = EmailForwardLogEvent[];
600
+ /**
601
+ * EmailForwardAliasMetrics
602
+ *
603
+ * @remarks
604
+ * Array type for EmailForwardAliasMetrics objects. Used when the API returns a collection of EmailForwardAliasMetrics instances.
605
+ *
606
+ * @example
607
+ * ```typescript
608
+ * const items: EmailForwardAliasMetricsArray = await api.getEmailForwardAliasMetricss();
609
+ * ```
610
+ *
611
+ * @see {@link EmailForwardAliasMetrics} - The individual EmailForwardAliasMetrics type definition
612
+ */
613
+ export type EmailForwardAliasMetricsArray = EmailForwardAliasMetrics[];
600
614
  /**
601
615
  * EmailForwardAlias
602
616
  *
@@ -1818,6 +1818,22 @@ export type EmailForwardAlias = components['schemas']['EmailForwardAlias'];
1818
1818
  * @see {@link components} - The OpenAPI components schema definition
1819
1819
  */
1820
1820
  export type EmailForwardAliasCreate = components['schemas']['EmailForwardAliasCreate'];
1821
+ /**
1822
+ * EmailForwardAliasMetrics
1823
+ *
1824
+ * @remarks
1825
+ * Type alias for the `EmailForwardAliasMetrics` OpenAPI schema.
1826
+ * This type represents emailforwardaliasmetrics data structures used in API requests and responses.
1827
+ *
1828
+ * @example
1829
+ * ```typescript
1830
+ * const response = await api.getEmailForwardAliasMetrics();
1831
+ * const item: EmailForwardAliasMetrics = response.results;
1832
+ * ```
1833
+ *
1834
+ * @see {@link components} - The OpenAPI components schema definition
1835
+ */
1836
+ export type EmailForwardAliasMetrics = components['schemas']['EmailForwardAliasMetrics'];
1821
1837
  /**
1822
1838
  * EmailForwardAliasUpdate
1823
1839
  *
@@ -1883,37 +1899,85 @@ export type EmailForwardLog = components['schemas']['EmailForwardLog'];
1883
1899
  */
1884
1900
  export type EmailForwardLogEvent = components['schemas']['EmailForwardLogEvent'];
1885
1901
  /**
1886
- * EmailForwardLogFinalStatus
1902
+ * EmailForwardLogSortField
1887
1903
  *
1888
1904
  * @remarks
1889
- * Type alias for the `EmailForwardLogFinalStatus` OpenAPI schema.
1890
- * This type represents emailforwardlogfinalstatus data structures used in API requests and responses.
1905
+ * Type alias for the `EmailForwardLogSortField` OpenAPI schema.
1906
+ * This type represents emailforwardlogsortfield data structures used in API requests and responses.
1891
1907
  *
1892
1908
  * @example
1893
1909
  * ```typescript
1894
- * const response = await api.getEmailForwardLogFinalStatus();
1895
- * const item: EmailForwardLogFinalStatus = response.results;
1910
+ * const response = await api.getEmailForwardLogSortField();
1911
+ * const item: EmailForwardLogSortField = response.results;
1896
1912
  * ```
1897
1913
  *
1898
1914
  * @see {@link components} - The OpenAPI components schema definition
1899
1915
  */
1900
- export type EmailForwardLogFinalStatus = components['schemas']['EmailForwardLogFinalStatus'];
1916
+ export type EmailForwardLogSortField = components['schemas']['EmailForwardLogSortField'];
1901
1917
  /**
1902
- * EmailForwardLogSortField
1918
+ * EmailForwardLogStatus
1903
1919
  *
1904
1920
  * @remarks
1905
- * Type alias for the `EmailForwardLogSortField` OpenAPI schema.
1906
- * This type represents emailforwardlogsortfield data structures used in API requests and responses.
1921
+ * Type alias for the `EmailForwardLogStatus` OpenAPI schema.
1922
+ * This type represents emailforwardlogstatus data structures used in API requests and responses.
1907
1923
  *
1908
1924
  * @example
1909
1925
  * ```typescript
1910
- * const response = await api.getEmailForwardLogSortField();
1911
- * const item: EmailForwardLogSortField = response.results;
1926
+ * const response = await api.getEmailForwardLogStatus();
1927
+ * const item: EmailForwardLogStatus = response.results;
1912
1928
  * ```
1913
1929
  *
1914
1930
  * @see {@link components} - The OpenAPI components schema definition
1915
1931
  */
1916
- export type EmailForwardLogSortField = components['schemas']['EmailForwardLogSortField'];
1932
+ export type EmailForwardLogStatus = components['schemas']['EmailForwardLogStatus'];
1933
+ /**
1934
+ * EmailForwardMetrics
1935
+ *
1936
+ * @remarks
1937
+ * Type alias for the `EmailForwardMetrics` OpenAPI schema.
1938
+ * This type represents emailforwardmetrics data structures used in API requests and responses.
1939
+ *
1940
+ * @example
1941
+ * ```typescript
1942
+ * const response = await api.getEmailForwardMetrics();
1943
+ * const item: EmailForwardMetrics = response.results;
1944
+ * ```
1945
+ *
1946
+ * @see {@link components} - The OpenAPI components schema definition
1947
+ */
1948
+ export type EmailForwardMetrics = components['schemas']['EmailForwardMetrics'];
1949
+ /**
1950
+ * EmailForwardMetricsFilters
1951
+ *
1952
+ * @remarks
1953
+ * Type alias for the `EmailForwardMetricsFilters` OpenAPI schema.
1954
+ * This type represents emailforwardmetricsfilters data structures used in API requests and responses.
1955
+ *
1956
+ * @example
1957
+ * ```typescript
1958
+ * const response = await api.getEmailForwardMetricsFilters();
1959
+ * const item: EmailForwardMetricsFilters = response.results;
1960
+ * ```
1961
+ *
1962
+ * @see {@link components} - The OpenAPI components schema definition
1963
+ */
1964
+ export type EmailForwardMetricsFilters = components['schemas']['EmailForwardMetricsFilters'];
1965
+ /**
1966
+ * EmailForwardMetricsRates
1967
+ *
1968
+ * @remarks
1969
+ * Type alias for the `EmailForwardMetricsRates` OpenAPI schema.
1970
+ * This type represents emailforwardmetricsrates data structures used in API requests and responses.
1971
+ *
1972
+ * @example
1973
+ * ```typescript
1974
+ * const response = await api.getEmailForwardMetricsRates();
1975
+ * const item: EmailForwardMetricsRates = response.results;
1976
+ * ```
1977
+ *
1978
+ * @see {@link components} - The OpenAPI components schema definition
1979
+ */
1980
+ export type EmailForwardMetricsRates = components['schemas']['EmailForwardMetricsRates'];
1917
1981
  /**
1918
1982
  * EmailForwardResponse
1919
1983
  *
package/src/openapi.yaml CHANGED
@@ -2705,6 +2705,30 @@ components:
2705
2705
  - forward_to
2706
2706
  title: EmailForwardAliasCreate
2707
2707
  type: object
2708
+ EmailForwardAliasMetrics:
2709
+ properties:
2710
+ alias:
2711
+ description: Email alias address
2712
+ title: Alias
2713
+ type: string
2714
+ by_status:
2715
+ additionalProperties:
2716
+ type: integer
2717
+ description: Log counts grouped by status
2718
+ propertyNames:
2719
+ $ref: '#/components/schemas/EmailForwardLogStatus'
2720
+ title: By Status
2721
+ type: object
2722
+ total_logs:
2723
+ description: Total number of logs for this alias
2724
+ title: Total Logs
2725
+ type: integer
2726
+ required:
2727
+ - alias
2728
+ - total_logs
2729
+ - by_status
2730
+ title: EmailForwardAliasMetrics
2731
+ type: object
2708
2732
  EmailForwardAliasUpdate:
2709
2733
  properties:
2710
2734
  forward_to:
@@ -2755,10 +2779,9 @@ components:
2755
2779
  title: Events
2756
2780
  type: array
2757
2781
  final_status:
2782
+ $ref: '#/components/schemas/EmailForwardLogStatus'
2758
2783
  description: Final status of the email (QUEUED, DELIVERED, REFUSED, SOFT-BOUNCE,
2759
2784
  HARD-BOUNCE)
2760
- title: Final Status
2761
- type: string
2762
2785
  forward_email:
2763
2786
  description: Forward destination email address
2764
2787
  title: Forward Email
@@ -2870,15 +2893,6 @@ components:
2870
2893
  - status
2871
2894
  title: EmailForwardLogEvent
2872
2895
  type: object
2873
- EmailForwardLogFinalStatus:
2874
- enum:
2875
- - QUEUED
2876
- - DELIVERED
2877
- - REFUSED
2878
- - SOFT-BOUNCE
2879
- - HARD-BOUNCE
2880
- title: EmailForwardLogFinalStatus
2881
- type: string
2882
2896
  EmailForwardLogSortField:
2883
2897
  enum:
2884
2898
  - log_id
@@ -2890,6 +2904,110 @@ components:
2890
2904
  - synced_on
2891
2905
  title: EmailForwardLogSortField
2892
2906
  type: string
2907
+ EmailForwardLogStatus:
2908
+ enum:
2909
+ - QUEUED
2910
+ - DELIVERED
2911
+ - REFUSED
2912
+ - SOFT-BOUNCE
2913
+ - HARD-BOUNCE
2914
+ title: EmailForwardLogStatus
2915
+ type: string
2916
+ EmailForwardMetrics:
2917
+ properties:
2918
+ alias_count:
2919
+ anyOf:
2920
+ - type: integer
2921
+ - type: 'null'
2922
+ description: Number of aliases
2923
+ title: Alias Count
2924
+ by_alias:
2925
+ anyOf:
2926
+ - items:
2927
+ $ref: '#/components/schemas/EmailForwardAliasMetrics'
2928
+ type: array
2929
+ - type: 'null'
2930
+ description: Metrics breakdown per alias
2931
+ title: By Alias
2932
+ by_status:
2933
+ additionalProperties:
2934
+ type: integer
2935
+ description: Log counts grouped by status (QUEUED, DELIVERED, REFUSED, SOFT-BOUNCE,
2936
+ HARD-BOUNCE)
2937
+ propertyNames:
2938
+ $ref: '#/components/schemas/EmailForwardLogStatus'
2939
+ title: By Status
2940
+ type: object
2941
+ filters:
2942
+ $ref: '#/components/schemas/EmailForwardMetricsFilters'
2943
+ description: Applied filters
2944
+ rates:
2945
+ $ref: '#/components/schemas/EmailForwardMetricsRates'
2946
+ description: Rate percentages for each status
2947
+ total_logs:
2948
+ description: Total number of email forward logs
2949
+ title: Total Logs
2950
+ type: integer
2951
+ required:
2952
+ - total_logs
2953
+ - by_status
2954
+ - rates
2955
+ - filters
2956
+ title: EmailForwardMetrics
2957
+ type: object
2958
+ EmailForwardMetricsFilters:
2959
+ properties:
2960
+ domain:
2961
+ description: Domain name
2962
+ title: Domain
2963
+ type: string
2964
+ end_time:
2965
+ anyOf:
2966
+ - type: string
2967
+ - type: 'null'
2968
+ description: End time filter (RFC3339)
2969
+ title: End Time
2970
+ include_aliases:
2971
+ anyOf:
2972
+ - type: boolean
2973
+ - type: 'null'
2974
+ description: Whether alias breakdown is included
2975
+ title: Include Aliases
2976
+ start_time:
2977
+ anyOf:
2978
+ - type: string
2979
+ - type: 'null'
2980
+ description: Start time filter (RFC3339)
2981
+ title: Start Time
2982
+ required:
2983
+ - domain
2984
+ title: EmailForwardMetricsFilters
2985
+ type: object
2986
+ EmailForwardMetricsRates:
2987
+ properties:
2988
+ bounce_rate:
2989
+ description: Bounce rate percentage
2990
+ title: Bounce Rate
2991
+ type: number
2992
+ delivery_rate:
2993
+ description: Delivery rate percentage
2994
+ title: Delivery Rate
2995
+ type: number
2996
+ queued_rate:
2997
+ description: Queued rate percentage
2998
+ title: Queued Rate
2999
+ type: number
3000
+ refused_rate:
3001
+ description: Refused rate percentage
3002
+ title: Refused Rate
3003
+ type: number
3004
+ required:
3005
+ - delivery_rate
3006
+ - refused_rate
3007
+ - queued_rate
3008
+ - bounce_rate
3009
+ title: EmailForwardMetricsRates
3010
+ type: object
2893
3011
  EmailForwardResponse:
2894
3012
  properties:
2895
3013
  aliases:
@@ -6539,7 +6657,7 @@ info:
6539
6657
  '
6540
6658
  summary: OpusDNS - your gateway to a seamless domain management experience.
6541
6659
  title: OpusDNS API
6542
- version: 2026-01-14-103335
6660
+ version: 2026-01-15-095407
6543
6661
  x-logo:
6544
6662
  altText: OpusDNS API Reference
6545
6663
  url: https://d24lr4zqs1tgqh.cloudfront.net/c9505a20-5ae1-406c-b060-d392569caebf.jpg
@@ -6608,7 +6726,7 @@ paths:
6608
6726
  required: false
6609
6727
  schema:
6610
6728
  anyOf:
6611
- - $ref: '#/components/schemas/EmailForwardLogFinalStatus'
6729
+ - $ref: '#/components/schemas/EmailForwardLogStatus'
6612
6730
  - type: 'null'
6613
6731
  title: Final Status
6614
6732
  - in: query
@@ -6698,7 +6816,7 @@ paths:
6698
6816
  required: false
6699
6817
  schema:
6700
6818
  anyOf:
6701
- - $ref: '#/components/schemas/EmailForwardLogFinalStatus'
6819
+ - $ref: '#/components/schemas/EmailForwardLogStatus'
6702
6820
  - type: 'null'
6703
6821
  title: Final Status
6704
6822
  - in: query
@@ -12695,6 +12813,95 @@ paths:
12695
12813
  summary: Enable email forwarding
12696
12814
  tags:
12697
12815
  - email_forward
12816
+ /v1/email-forwards/{email_forward_id}/metrics:
12817
+ get:
12818
+ description: Retrieves metrics and statistics for a specific email forward,
12819
+ including delivery rates and status counts.
12820
+ operationId: get_email_forward_metrics_v1_email_forwards__email_forward_id__metrics_get
12821
+ parameters:
12822
+ - in: path
12823
+ name: email_forward_id
12824
+ required: true
12825
+ schema:
12826
+ examples:
12827
+ - email_forward_01h45ytscbebyvny4gc8cr8ma2
12828
+ format: typeid
12829
+ pattern: ^email_forward_[0-7][0-9a-hjkmnpq-tv-z]{25}$
12830
+ title: Email Forward Id
12831
+ type: string
12832
+ x-typeid-prefix: email_forward
12833
+ - in: query
12834
+ name: start_time
12835
+ required: false
12836
+ schema:
12837
+ anyOf:
12838
+ - format: date-time
12839
+ type: string
12840
+ - type: 'null'
12841
+ title: Start Time
12842
+ - in: query
12843
+ name: end_time
12844
+ required: false
12845
+ schema:
12846
+ anyOf:
12847
+ - format: date-time
12848
+ type: string
12849
+ - type: 'null'
12850
+ title: End Time
12851
+ responses:
12852
+ '200':
12853
+ content:
12854
+ application/json:
12855
+ schema:
12856
+ $ref: '#/components/schemas/EmailForwardMetrics'
12857
+ description: Successful Response
12858
+ '401':
12859
+ content:
12860
+ application/problem+json:
12861
+ example:
12862
+ code: ERROR_AUTHENTICATION
12863
+ detail: Additional error context.
12864
+ status: 401
12865
+ title: Authentication Error
12866
+ type: authentication
12867
+ schema:
12868
+ $ref: '#/components/schemas/Problem'
12869
+ description: Unauthorized
12870
+ '403':
12871
+ content:
12872
+ application/problem+json:
12873
+ example:
12874
+ code: ERROR_PERMISSION_DENIED
12875
+ detail: Insufficient permissions to perform this action
12876
+ status: 403
12877
+ title: Permission Denied
12878
+ type: permission-denied
12879
+ schema:
12880
+ $ref: '#/components/schemas/Problem'
12881
+ description: Forbidden
12882
+ '404':
12883
+ content:
12884
+ application/problem+json:
12885
+ example:
12886
+ code: ERROR_EMAIL_FORWARD_NOT_FOUND
12887
+ detail: 'Email forward not found for hostname: Additional error context.'
12888
+ status: 404
12889
+ title: Email Forward Error
12890
+ type: email-forward-not-found
12891
+ schema:
12892
+ $ref: '#/components/schemas/Problem'
12893
+ description: Not Found
12894
+ '422':
12895
+ content:
12896
+ application/problem+json:
12897
+ schema:
12898
+ $ref: '#/components/schemas/HTTPValidationError'
12899
+ description: Validation Error
12900
+ security:
12901
+ - OAuth2PasswordBearer: []
12902
+ summary: Retrieve email forward metrics
12903
+ tags:
12904
+ - email_forward
12698
12905
  /v1/events:
12699
12906
  get:
12700
12907
  description: Retrieves a paginated list of events for the organization