@opusdns/api 0.156.0 → 0.158.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 +1 -1
- package/src/helpers/constants.ts +55 -55
- package/src/helpers/keys.ts +369 -29
- package/src/helpers/requests.d.ts +53 -0
- package/src/helpers/responses.d.ts +111 -1
- package/src/helpers/schemas.d.ts +60 -12
- package/src/openapi.yaml +177 -19
- package/src/schema.d.ts +170 -17
|
@@ -3589,6 +3589,59 @@ export type PATCH_EmailForwardsEmailForwardIdEnable_Request = {
|
|
|
3589
3589
|
*/
|
|
3590
3590
|
export type PATCH_EmailForwardsEmailForwardIdEnable_Request_Path = PATCH_EmailForwardsEmailForwardIdEnable_Request['parameters']['path'];
|
|
3591
3591
|
|
|
3592
|
+
/**
|
|
3593
|
+
* Request type for GET EmailForwardsEmailForwardIdMetrics endpoint
|
|
3594
|
+
*
|
|
3595
|
+
* Retrieve email forward metrics
|
|
3596
|
+
* Retrieves metrics and statistics for a specific email forward, including delivery rates and status counts.
|
|
3597
|
+
*
|
|
3598
|
+
* @remarks
|
|
3599
|
+
* This type defines the complete request structure for the GET EmailForwardsEmailForwardIdMetrics endpoint.
|
|
3600
|
+
* It includes all parameters (query, path) and request body types as defined in the OpenAPI specification.
|
|
3601
|
+
* Use this type to ensure type safety when making API requests to this endpoint.
|
|
3602
|
+
*
|
|
3603
|
+
* @example
|
|
3604
|
+
* Use this type to ensure type safety when making API requests to this endpoint.
|
|
3605
|
+
*
|
|
3606
|
+
* @path /v1/email-forwards/{email_forward_id}/metrics
|
|
3607
|
+
*
|
|
3608
|
+
* @see {@link GET_EmailForwardsEmailForwardIdMetrics_Request_Query} - Query parameters type
|
|
3609
|
+
* @see {@link GET_EmailForwardsEmailForwardIdMetrics_Request_Path} - Path parameters type
|
|
3610
|
+
* @see {@link GET_EmailForwardsEmailForwardIdMetrics_Request_Body} - Request body type
|
|
3611
|
+
*/
|
|
3612
|
+
export type GET_EmailForwardsEmailForwardIdMetrics_Request = {
|
|
3613
|
+
parameters: {
|
|
3614
|
+
query: operations['get_email_forward_metrics_v1_email_forwards__email_forward_id__metrics_get']['parameters']['query'];
|
|
3615
|
+
path: operations['get_email_forward_metrics_v1_email_forwards__email_forward_id__metrics_get']['parameters']['path'];
|
|
3616
|
+
};
|
|
3617
|
+
}
|
|
3618
|
+
/**
|
|
3619
|
+
* Query parameters for GET /v1/email-forwards/{email_forward_id}/metrics
|
|
3620
|
+
*
|
|
3621
|
+
* @remarks
|
|
3622
|
+
* This type defines the query parameters for the GET /v1/email-forwards/{email_forward_id}/metrics endpoint.
|
|
3623
|
+
* It provides type safety for all query parameters as defined in the OpenAPI specification.
|
|
3624
|
+
*
|
|
3625
|
+
* @example
|
|
3626
|
+
* Use this type to ensure type safety for query parameters.
|
|
3627
|
+
*
|
|
3628
|
+
* @path /v1/email-forwards/{email_forward_id}/metrics
|
|
3629
|
+
*/
|
|
3630
|
+
export type GET_EmailForwardsEmailForwardIdMetrics_Request_Query = GET_EmailForwardsEmailForwardIdMetrics_Request['parameters']['query'];
|
|
3631
|
+
/**
|
|
3632
|
+
* Path parameters for GET /v1/email-forwards/{email_forward_id}/metrics
|
|
3633
|
+
*
|
|
3634
|
+
* @remarks
|
|
3635
|
+
* This type defines the path parameters for the GET /v1/email-forwards/{email_forward_id}/metrics endpoint.
|
|
3636
|
+
* It provides type safety for all path parameters as defined in the OpenAPI specification.
|
|
3637
|
+
*
|
|
3638
|
+
* @example
|
|
3639
|
+
* Use this type to ensure type safety for path parameters.
|
|
3640
|
+
*
|
|
3641
|
+
* @path /v1/email-forwards/{email_forward_id}/metrics
|
|
3642
|
+
*/
|
|
3643
|
+
export type GET_EmailForwardsEmailForwardIdMetrics_Request_Path = GET_EmailForwardsEmailForwardIdMetrics_Request['parameters']['path'];
|
|
3644
|
+
|
|
3592
3645
|
/**
|
|
3593
3646
|
* Request type for GET Events endpoint
|
|
3594
3647
|
*
|
|
@@ -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
|
*
|
package/src/helpers/schemas.d.ts
CHANGED
|
@@ -1883,37 +1883,85 @@ export type EmailForwardLog = components['schemas']['EmailForwardLog'];
|
|
|
1883
1883
|
*/
|
|
1884
1884
|
export type EmailForwardLogEvent = components['schemas']['EmailForwardLogEvent'];
|
|
1885
1885
|
/**
|
|
1886
|
-
*
|
|
1886
|
+
* EmailForwardLogSortField
|
|
1887
1887
|
*
|
|
1888
1888
|
* @remarks
|
|
1889
|
-
* Type alias for the `
|
|
1890
|
-
* This type represents
|
|
1889
|
+
* Type alias for the `EmailForwardLogSortField` OpenAPI schema.
|
|
1890
|
+
* This type represents emailforwardlogsortfield data structures used in API requests and responses.
|
|
1891
1891
|
*
|
|
1892
1892
|
* @example
|
|
1893
1893
|
* ```typescript
|
|
1894
|
-
* const response = await api.
|
|
1895
|
-
* const item:
|
|
1894
|
+
* const response = await api.getEmailForwardLogSortField();
|
|
1895
|
+
* const item: EmailForwardLogSortField = response.results;
|
|
1896
1896
|
* ```
|
|
1897
1897
|
*
|
|
1898
1898
|
* @see {@link components} - The OpenAPI components schema definition
|
|
1899
1899
|
*/
|
|
1900
|
-
export type
|
|
1900
|
+
export type EmailForwardLogSortField = components['schemas']['EmailForwardLogSortField'];
|
|
1901
1901
|
/**
|
|
1902
|
-
*
|
|
1902
|
+
* EmailForwardLogStatus
|
|
1903
1903
|
*
|
|
1904
1904
|
* @remarks
|
|
1905
|
-
* Type alias for the `
|
|
1906
|
-
* This type represents
|
|
1905
|
+
* Type alias for the `EmailForwardLogStatus` OpenAPI schema.
|
|
1906
|
+
* This type represents emailforwardlogstatus data structures used in API requests and responses.
|
|
1907
1907
|
*
|
|
1908
1908
|
* @example
|
|
1909
1909
|
* ```typescript
|
|
1910
|
-
* const response = await api.
|
|
1911
|
-
* const item:
|
|
1910
|
+
* const response = await api.getEmailForwardLogStatus();
|
|
1911
|
+
* const item: EmailForwardLogStatus = response.results;
|
|
1912
1912
|
* ```
|
|
1913
1913
|
*
|
|
1914
1914
|
* @see {@link components} - The OpenAPI components schema definition
|
|
1915
1915
|
*/
|
|
1916
|
-
export type
|
|
1916
|
+
export type EmailForwardLogStatus = components['schemas']['EmailForwardLogStatus'];
|
|
1917
|
+
/**
|
|
1918
|
+
* EmailForwardMetrics
|
|
1919
|
+
*
|
|
1920
|
+
* @remarks
|
|
1921
|
+
* Type alias for the `EmailForwardMetrics` OpenAPI schema.
|
|
1922
|
+
* This type represents emailforwardmetrics data structures used in API requests and responses.
|
|
1923
|
+
*
|
|
1924
|
+
* @example
|
|
1925
|
+
* ```typescript
|
|
1926
|
+
* const response = await api.getEmailForwardMetrics();
|
|
1927
|
+
* const item: EmailForwardMetrics = response.results;
|
|
1928
|
+
* ```
|
|
1929
|
+
*
|
|
1930
|
+
* @see {@link components} - The OpenAPI components schema definition
|
|
1931
|
+
*/
|
|
1932
|
+
export type EmailForwardMetrics = components['schemas']['EmailForwardMetrics'];
|
|
1933
|
+
/**
|
|
1934
|
+
* EmailForwardMetricsFilters
|
|
1935
|
+
*
|
|
1936
|
+
* @remarks
|
|
1937
|
+
* Type alias for the `EmailForwardMetricsFilters` OpenAPI schema.
|
|
1938
|
+
* This type represents emailforwardmetricsfilters data structures used in API requests and responses.
|
|
1939
|
+
*
|
|
1940
|
+
* @example
|
|
1941
|
+
* ```typescript
|
|
1942
|
+
* const response = await api.getEmailForwardMetricsFilters();
|
|
1943
|
+
* const item: EmailForwardMetricsFilters = response.results;
|
|
1944
|
+
* ```
|
|
1945
|
+
*
|
|
1946
|
+
* @see {@link components} - The OpenAPI components schema definition
|
|
1947
|
+
*/
|
|
1948
|
+
export type EmailForwardMetricsFilters = components['schemas']['EmailForwardMetricsFilters'];
|
|
1949
|
+
/**
|
|
1950
|
+
* EmailForwardMetricsRates
|
|
1951
|
+
*
|
|
1952
|
+
* @remarks
|
|
1953
|
+
* Type alias for the `EmailForwardMetricsRates` OpenAPI schema.
|
|
1954
|
+
* This type represents emailforwardmetricsrates data structures used in API requests and responses.
|
|
1955
|
+
*
|
|
1956
|
+
* @example
|
|
1957
|
+
* ```typescript
|
|
1958
|
+
* const response = await api.getEmailForwardMetricsRates();
|
|
1959
|
+
* const item: EmailForwardMetricsRates = response.results;
|
|
1960
|
+
* ```
|
|
1961
|
+
*
|
|
1962
|
+
* @see {@link components} - The OpenAPI components schema definition
|
|
1963
|
+
*/
|
|
1964
|
+
export type EmailForwardMetricsRates = components['schemas']['EmailForwardMetricsRates'];
|
|
1917
1965
|
/**
|
|
1918
1966
|
* EmailForwardResponse
|
|
1919
1967
|
*
|
package/src/openapi.yaml
CHANGED
|
@@ -2259,11 +2259,6 @@ components:
|
|
|
2259
2259
|
- type: 'null'
|
|
2260
2260
|
description: Additional information to include in the restore operation
|
|
2261
2261
|
title: Additional Info
|
|
2262
|
-
auto_renew:
|
|
2263
|
-
default: true
|
|
2264
|
-
description: Whether to automatically renew the domain after restore
|
|
2265
|
-
title: Auto Renew
|
|
2266
|
-
type: boolean
|
|
2267
2262
|
reason:
|
|
2268
2263
|
anyOf:
|
|
2269
2264
|
- type: string
|
|
@@ -2760,10 +2755,9 @@ components:
|
|
|
2760
2755
|
title: Events
|
|
2761
2756
|
type: array
|
|
2762
2757
|
final_status:
|
|
2758
|
+
$ref: '#/components/schemas/EmailForwardLogStatus'
|
|
2763
2759
|
description: Final status of the email (QUEUED, DELIVERED, REFUSED, SOFT-BOUNCE,
|
|
2764
2760
|
HARD-BOUNCE)
|
|
2765
|
-
title: Final Status
|
|
2766
|
-
type: string
|
|
2767
2761
|
forward_email:
|
|
2768
2762
|
description: Forward destination email address
|
|
2769
2763
|
title: Forward Email
|
|
@@ -2875,15 +2869,6 @@ components:
|
|
|
2875
2869
|
- status
|
|
2876
2870
|
title: EmailForwardLogEvent
|
|
2877
2871
|
type: object
|
|
2878
|
-
EmailForwardLogFinalStatus:
|
|
2879
|
-
enum:
|
|
2880
|
-
- QUEUED
|
|
2881
|
-
- DELIVERED
|
|
2882
|
-
- REFUSED
|
|
2883
|
-
- SOFT-BOUNCE
|
|
2884
|
-
- HARD-BOUNCE
|
|
2885
|
-
title: EmailForwardLogFinalStatus
|
|
2886
|
-
type: string
|
|
2887
2872
|
EmailForwardLogSortField:
|
|
2888
2873
|
enum:
|
|
2889
2874
|
- log_id
|
|
@@ -2895,6 +2880,90 @@ components:
|
|
|
2895
2880
|
- synced_on
|
|
2896
2881
|
title: EmailForwardLogSortField
|
|
2897
2882
|
type: string
|
|
2883
|
+
EmailForwardLogStatus:
|
|
2884
|
+
enum:
|
|
2885
|
+
- QUEUED
|
|
2886
|
+
- DELIVERED
|
|
2887
|
+
- REFUSED
|
|
2888
|
+
- SOFT-BOUNCE
|
|
2889
|
+
- HARD-BOUNCE
|
|
2890
|
+
title: EmailForwardLogStatus
|
|
2891
|
+
type: string
|
|
2892
|
+
EmailForwardMetrics:
|
|
2893
|
+
properties:
|
|
2894
|
+
by_status:
|
|
2895
|
+
additionalProperties:
|
|
2896
|
+
type: integer
|
|
2897
|
+
description: Log counts grouped by status (QUEUED, DELIVERED, REFUSED, SOFT-BOUNCE,
|
|
2898
|
+
HARD-BOUNCE)
|
|
2899
|
+
propertyNames:
|
|
2900
|
+
$ref: '#/components/schemas/EmailForwardLogStatus'
|
|
2901
|
+
title: By Status
|
|
2902
|
+
type: object
|
|
2903
|
+
filters:
|
|
2904
|
+
$ref: '#/components/schemas/EmailForwardMetricsFilters'
|
|
2905
|
+
description: Applied filters
|
|
2906
|
+
rates:
|
|
2907
|
+
$ref: '#/components/schemas/EmailForwardMetricsRates'
|
|
2908
|
+
description: Rate percentages for each status
|
|
2909
|
+
total_logs:
|
|
2910
|
+
description: Total number of email forward logs
|
|
2911
|
+
title: Total Logs
|
|
2912
|
+
type: integer
|
|
2913
|
+
required:
|
|
2914
|
+
- total_logs
|
|
2915
|
+
- by_status
|
|
2916
|
+
- rates
|
|
2917
|
+
- filters
|
|
2918
|
+
title: EmailForwardMetrics
|
|
2919
|
+
type: object
|
|
2920
|
+
EmailForwardMetricsFilters:
|
|
2921
|
+
properties:
|
|
2922
|
+
domain:
|
|
2923
|
+
description: Domain name
|
|
2924
|
+
title: Domain
|
|
2925
|
+
type: string
|
|
2926
|
+
end_time:
|
|
2927
|
+
anyOf:
|
|
2928
|
+
- type: string
|
|
2929
|
+
- type: 'null'
|
|
2930
|
+
description: End time filter (RFC3339)
|
|
2931
|
+
title: End Time
|
|
2932
|
+
start_time:
|
|
2933
|
+
anyOf:
|
|
2934
|
+
- type: string
|
|
2935
|
+
- type: 'null'
|
|
2936
|
+
description: Start time filter (RFC3339)
|
|
2937
|
+
title: Start Time
|
|
2938
|
+
required:
|
|
2939
|
+
- domain
|
|
2940
|
+
title: EmailForwardMetricsFilters
|
|
2941
|
+
type: object
|
|
2942
|
+
EmailForwardMetricsRates:
|
|
2943
|
+
properties:
|
|
2944
|
+
delivered:
|
|
2945
|
+
description: Delivery rate percentage
|
|
2946
|
+
title: Delivered
|
|
2947
|
+
type: number
|
|
2948
|
+
hard_bounce:
|
|
2949
|
+
description: Hard bounce rate percentage
|
|
2950
|
+
title: Hard Bounce
|
|
2951
|
+
type: number
|
|
2952
|
+
refused:
|
|
2953
|
+
description: Refused rate percentage
|
|
2954
|
+
title: Refused
|
|
2955
|
+
type: number
|
|
2956
|
+
soft_bounce:
|
|
2957
|
+
description: Soft bounce rate percentage
|
|
2958
|
+
title: Soft Bounce
|
|
2959
|
+
type: number
|
|
2960
|
+
required:
|
|
2961
|
+
- delivered
|
|
2962
|
+
- refused
|
|
2963
|
+
- soft_bounce
|
|
2964
|
+
- hard_bounce
|
|
2965
|
+
title: EmailForwardMetricsRates
|
|
2966
|
+
type: object
|
|
2898
2967
|
EmailForwardResponse:
|
|
2899
2968
|
properties:
|
|
2900
2969
|
aliases:
|
|
@@ -6544,7 +6613,7 @@ info:
|
|
|
6544
6613
|
'
|
|
6545
6614
|
summary: OpusDNS - your gateway to a seamless domain management experience.
|
|
6546
6615
|
title: OpusDNS API
|
|
6547
|
-
version: 2026-01-
|
|
6616
|
+
version: 2026-01-15-094311
|
|
6548
6617
|
x-logo:
|
|
6549
6618
|
altText: OpusDNS API Reference
|
|
6550
6619
|
url: https://d24lr4zqs1tgqh.cloudfront.net/c9505a20-5ae1-406c-b060-d392569caebf.jpg
|
|
@@ -6613,7 +6682,7 @@ paths:
|
|
|
6613
6682
|
required: false
|
|
6614
6683
|
schema:
|
|
6615
6684
|
anyOf:
|
|
6616
|
-
- $ref: '#/components/schemas/
|
|
6685
|
+
- $ref: '#/components/schemas/EmailForwardLogStatus'
|
|
6617
6686
|
- type: 'null'
|
|
6618
6687
|
title: Final Status
|
|
6619
6688
|
- in: query
|
|
@@ -6703,7 +6772,7 @@ paths:
|
|
|
6703
6772
|
required: false
|
|
6704
6773
|
schema:
|
|
6705
6774
|
anyOf:
|
|
6706
|
-
- $ref: '#/components/schemas/
|
|
6775
|
+
- $ref: '#/components/schemas/EmailForwardLogStatus'
|
|
6707
6776
|
- type: 'null'
|
|
6708
6777
|
title: Final Status
|
|
6709
6778
|
- in: query
|
|
@@ -12700,6 +12769,95 @@ paths:
|
|
|
12700
12769
|
summary: Enable email forwarding
|
|
12701
12770
|
tags:
|
|
12702
12771
|
- email_forward
|
|
12772
|
+
/v1/email-forwards/{email_forward_id}/metrics:
|
|
12773
|
+
get:
|
|
12774
|
+
description: Retrieves metrics and statistics for a specific email forward,
|
|
12775
|
+
including delivery rates and status counts.
|
|
12776
|
+
operationId: get_email_forward_metrics_v1_email_forwards__email_forward_id__metrics_get
|
|
12777
|
+
parameters:
|
|
12778
|
+
- in: path
|
|
12779
|
+
name: email_forward_id
|
|
12780
|
+
required: true
|
|
12781
|
+
schema:
|
|
12782
|
+
examples:
|
|
12783
|
+
- email_forward_01h45ytscbebyvny4gc8cr8ma2
|
|
12784
|
+
format: typeid
|
|
12785
|
+
pattern: ^email_forward_[0-7][0-9a-hjkmnpq-tv-z]{25}$
|
|
12786
|
+
title: Email Forward Id
|
|
12787
|
+
type: string
|
|
12788
|
+
x-typeid-prefix: email_forward
|
|
12789
|
+
- in: query
|
|
12790
|
+
name: start_time
|
|
12791
|
+
required: false
|
|
12792
|
+
schema:
|
|
12793
|
+
anyOf:
|
|
12794
|
+
- format: date-time
|
|
12795
|
+
type: string
|
|
12796
|
+
- type: 'null'
|
|
12797
|
+
title: Start Time
|
|
12798
|
+
- in: query
|
|
12799
|
+
name: end_time
|
|
12800
|
+
required: false
|
|
12801
|
+
schema:
|
|
12802
|
+
anyOf:
|
|
12803
|
+
- format: date-time
|
|
12804
|
+
type: string
|
|
12805
|
+
- type: 'null'
|
|
12806
|
+
title: End Time
|
|
12807
|
+
responses:
|
|
12808
|
+
'200':
|
|
12809
|
+
content:
|
|
12810
|
+
application/json:
|
|
12811
|
+
schema:
|
|
12812
|
+
$ref: '#/components/schemas/EmailForwardMetrics'
|
|
12813
|
+
description: Successful Response
|
|
12814
|
+
'401':
|
|
12815
|
+
content:
|
|
12816
|
+
application/problem+json:
|
|
12817
|
+
example:
|
|
12818
|
+
code: ERROR_AUTHENTICATION
|
|
12819
|
+
detail: Additional error context.
|
|
12820
|
+
status: 401
|
|
12821
|
+
title: Authentication Error
|
|
12822
|
+
type: authentication
|
|
12823
|
+
schema:
|
|
12824
|
+
$ref: '#/components/schemas/Problem'
|
|
12825
|
+
description: Unauthorized
|
|
12826
|
+
'403':
|
|
12827
|
+
content:
|
|
12828
|
+
application/problem+json:
|
|
12829
|
+
example:
|
|
12830
|
+
code: ERROR_PERMISSION_DENIED
|
|
12831
|
+
detail: Insufficient permissions to perform this action
|
|
12832
|
+
status: 403
|
|
12833
|
+
title: Permission Denied
|
|
12834
|
+
type: permission-denied
|
|
12835
|
+
schema:
|
|
12836
|
+
$ref: '#/components/schemas/Problem'
|
|
12837
|
+
description: Forbidden
|
|
12838
|
+
'404':
|
|
12839
|
+
content:
|
|
12840
|
+
application/problem+json:
|
|
12841
|
+
example:
|
|
12842
|
+
code: ERROR_EMAIL_FORWARD_NOT_FOUND
|
|
12843
|
+
detail: 'Email forward not found for hostname: Additional error context.'
|
|
12844
|
+
status: 404
|
|
12845
|
+
title: Email Forward Error
|
|
12846
|
+
type: email-forward-not-found
|
|
12847
|
+
schema:
|
|
12848
|
+
$ref: '#/components/schemas/Problem'
|
|
12849
|
+
description: Not Found
|
|
12850
|
+
'422':
|
|
12851
|
+
content:
|
|
12852
|
+
application/problem+json:
|
|
12853
|
+
schema:
|
|
12854
|
+
$ref: '#/components/schemas/HTTPValidationError'
|
|
12855
|
+
description: Validation Error
|
|
12856
|
+
security:
|
|
12857
|
+
- OAuth2PasswordBearer: []
|
|
12858
|
+
summary: Retrieve email forward metrics
|
|
12859
|
+
tags:
|
|
12860
|
+
- email_forward
|
|
12703
12861
|
/v1/events:
|
|
12704
12862
|
get:
|
|
12705
12863
|
description: Retrieves a paginated list of events for the organization
|