@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.
- package/package.json +1 -1
- package/src/helpers/constants.ts +55 -55
- package/src/helpers/keys.ts +553 -2
- package/src/helpers/requests.d.ts +53 -0
- package/src/helpers/responses.d.ts +111 -1
- package/src/helpers/schemas-arrays.d.ts +15 -1
- package/src/helpers/schemas.d.ts +76 -12
- package/src/openapi.yaml +221 -14
- package/src/schema.d.ts +205 -11
package/src/schema.d.ts
CHANGED
|
@@ -1198,6 +1198,26 @@ export interface paths {
|
|
|
1198
1198
|
patch: operations["enable_email_forward_v1_email_forwards__email_forward_id__enable_patch"];
|
|
1199
1199
|
trace?: never;
|
|
1200
1200
|
};
|
|
1201
|
+
"/v1/email-forwards/{email_forward_id}/metrics": {
|
|
1202
|
+
parameters: {
|
|
1203
|
+
query?: never;
|
|
1204
|
+
header?: never;
|
|
1205
|
+
path?: never;
|
|
1206
|
+
cookie?: never;
|
|
1207
|
+
};
|
|
1208
|
+
/**
|
|
1209
|
+
* Retrieve email forward metrics
|
|
1210
|
+
* @description Retrieves metrics and statistics for a specific email forward, including delivery rates and status counts.
|
|
1211
|
+
*/
|
|
1212
|
+
get: operations["get_email_forward_metrics_v1_email_forwards__email_forward_id__metrics_get"];
|
|
1213
|
+
put?: never;
|
|
1214
|
+
post?: never;
|
|
1215
|
+
delete?: never;
|
|
1216
|
+
options?: never;
|
|
1217
|
+
head?: never;
|
|
1218
|
+
patch?: never;
|
|
1219
|
+
trace?: never;
|
|
1220
|
+
};
|
|
1201
1221
|
"/v1/events": {
|
|
1202
1222
|
parameters: {
|
|
1203
1223
|
query?: never;
|
|
@@ -3513,6 +3533,26 @@ export interface components {
|
|
|
3513
3533
|
/** Forward To */
|
|
3514
3534
|
forward_to: string[];
|
|
3515
3535
|
};
|
|
3536
|
+
/** EmailForwardAliasMetrics */
|
|
3537
|
+
EmailForwardAliasMetrics: {
|
|
3538
|
+
/**
|
|
3539
|
+
* Alias
|
|
3540
|
+
* @description Email alias address
|
|
3541
|
+
*/
|
|
3542
|
+
alias: string;
|
|
3543
|
+
/**
|
|
3544
|
+
* By Status
|
|
3545
|
+
* @description Log counts grouped by status
|
|
3546
|
+
*/
|
|
3547
|
+
by_status: {
|
|
3548
|
+
[key: string]: number;
|
|
3549
|
+
};
|
|
3550
|
+
/**
|
|
3551
|
+
* Total Logs
|
|
3552
|
+
* @description Total number of logs for this alias
|
|
3553
|
+
*/
|
|
3554
|
+
total_logs: number;
|
|
3555
|
+
};
|
|
3516
3556
|
/** EmailForwardAliasUpdate */
|
|
3517
3557
|
EmailForwardAliasUpdate: {
|
|
3518
3558
|
/** Forward To */
|
|
@@ -3551,11 +3591,8 @@ export interface components {
|
|
|
3551
3591
|
* @description List of processing events
|
|
3552
3592
|
*/
|
|
3553
3593
|
events?: components["schemas"]["EmailForwardLogEvent"][];
|
|
3554
|
-
/**
|
|
3555
|
-
|
|
3556
|
-
* @description Final status of the email (QUEUED, DELIVERED, REFUSED, SOFT-BOUNCE, HARD-BOUNCE)
|
|
3557
|
-
*/
|
|
3558
|
-
final_status: string;
|
|
3594
|
+
/** @description Final status of the email (QUEUED, DELIVERED, REFUSED, SOFT-BOUNCE, HARD-BOUNCE) */
|
|
3595
|
+
final_status: components["schemas"]["EmailForwardLogStatus"];
|
|
3559
3596
|
/**
|
|
3560
3597
|
* Forward Email
|
|
3561
3598
|
* @description Forward destination email address
|
|
@@ -3658,15 +3695,90 @@ export interface components {
|
|
|
3658
3695
|
status: string;
|
|
3659
3696
|
};
|
|
3660
3697
|
/**
|
|
3661
|
-
*
|
|
3698
|
+
* EmailForwardLogSortField
|
|
3662
3699
|
* @enum {string}
|
|
3663
3700
|
*/
|
|
3664
|
-
|
|
3701
|
+
EmailForwardLogSortField: "log_id" | "sender_email" | "recipient_email" | "forward_email" | "final_status" | "created_on" | "synced_on";
|
|
3665
3702
|
/**
|
|
3666
|
-
*
|
|
3703
|
+
* EmailForwardLogStatus
|
|
3667
3704
|
* @enum {string}
|
|
3668
3705
|
*/
|
|
3669
|
-
|
|
3706
|
+
EmailForwardLogStatus: "QUEUED" | "DELIVERED" | "REFUSED" | "SOFT-BOUNCE" | "HARD-BOUNCE";
|
|
3707
|
+
/** EmailForwardMetrics */
|
|
3708
|
+
EmailForwardMetrics: {
|
|
3709
|
+
/**
|
|
3710
|
+
* Alias Count
|
|
3711
|
+
* @description Number of aliases
|
|
3712
|
+
*/
|
|
3713
|
+
alias_count?: number | null;
|
|
3714
|
+
/**
|
|
3715
|
+
* By Alias
|
|
3716
|
+
* @description Metrics breakdown per alias
|
|
3717
|
+
*/
|
|
3718
|
+
by_alias?: components["schemas"]["EmailForwardAliasMetrics"][] | null;
|
|
3719
|
+
/**
|
|
3720
|
+
* By Status
|
|
3721
|
+
* @description Log counts grouped by status (QUEUED, DELIVERED, REFUSED, SOFT-BOUNCE, HARD-BOUNCE)
|
|
3722
|
+
*/
|
|
3723
|
+
by_status: {
|
|
3724
|
+
[key: string]: number;
|
|
3725
|
+
};
|
|
3726
|
+
/** @description Applied filters */
|
|
3727
|
+
filters: components["schemas"]["EmailForwardMetricsFilters"];
|
|
3728
|
+
/** @description Rate percentages for each status */
|
|
3729
|
+
rates: components["schemas"]["EmailForwardMetricsRates"];
|
|
3730
|
+
/**
|
|
3731
|
+
* Total Logs
|
|
3732
|
+
* @description Total number of email forward logs
|
|
3733
|
+
*/
|
|
3734
|
+
total_logs: number;
|
|
3735
|
+
};
|
|
3736
|
+
/** EmailForwardMetricsFilters */
|
|
3737
|
+
EmailForwardMetricsFilters: {
|
|
3738
|
+
/**
|
|
3739
|
+
* Domain
|
|
3740
|
+
* @description Domain name
|
|
3741
|
+
*/
|
|
3742
|
+
domain: string;
|
|
3743
|
+
/**
|
|
3744
|
+
* End Time
|
|
3745
|
+
* @description End time filter (RFC3339)
|
|
3746
|
+
*/
|
|
3747
|
+
end_time?: string | null;
|
|
3748
|
+
/**
|
|
3749
|
+
* Include Aliases
|
|
3750
|
+
* @description Whether alias breakdown is included
|
|
3751
|
+
*/
|
|
3752
|
+
include_aliases?: boolean | null;
|
|
3753
|
+
/**
|
|
3754
|
+
* Start Time
|
|
3755
|
+
* @description Start time filter (RFC3339)
|
|
3756
|
+
*/
|
|
3757
|
+
start_time?: string | null;
|
|
3758
|
+
};
|
|
3759
|
+
/** EmailForwardMetricsRates */
|
|
3760
|
+
EmailForwardMetricsRates: {
|
|
3761
|
+
/**
|
|
3762
|
+
* Bounce Rate
|
|
3763
|
+
* @description Bounce rate percentage
|
|
3764
|
+
*/
|
|
3765
|
+
bounce_rate: number;
|
|
3766
|
+
/**
|
|
3767
|
+
* Delivery Rate
|
|
3768
|
+
* @description Delivery rate percentage
|
|
3769
|
+
*/
|
|
3770
|
+
delivery_rate: number;
|
|
3771
|
+
/**
|
|
3772
|
+
* Queued Rate
|
|
3773
|
+
* @description Queued rate percentage
|
|
3774
|
+
*/
|
|
3775
|
+
queued_rate: number;
|
|
3776
|
+
/**
|
|
3777
|
+
* Refused Rate
|
|
3778
|
+
* @description Refused rate percentage
|
|
3779
|
+
*/
|
|
3780
|
+
refused_rate: number;
|
|
3781
|
+
};
|
|
3670
3782
|
/** EmailForwardResponse */
|
|
3671
3783
|
EmailForwardResponse: {
|
|
3672
3784
|
/** Aliases */
|
|
@@ -6024,7 +6136,7 @@ export interface operations {
|
|
|
6024
6136
|
sort_order?: components["schemas"]["SortOrder"];
|
|
6025
6137
|
page_size?: number;
|
|
6026
6138
|
page?: number;
|
|
6027
|
-
final_status?: components["schemas"]["
|
|
6139
|
+
final_status?: components["schemas"]["EmailForwardLogStatus"] | null;
|
|
6028
6140
|
start_time?: Date | null;
|
|
6029
6141
|
end_time?: Date | null;
|
|
6030
6142
|
};
|
|
@@ -6063,7 +6175,7 @@ export interface operations {
|
|
|
6063
6175
|
sort_order?: components["schemas"]["SortOrder"];
|
|
6064
6176
|
page_size?: number;
|
|
6065
6177
|
page?: number;
|
|
6066
|
-
final_status?: components["schemas"]["
|
|
6178
|
+
final_status?: components["schemas"]["EmailForwardLogStatus"] | null;
|
|
6067
6179
|
start_time?: Date | null;
|
|
6068
6180
|
end_time?: Date | null;
|
|
6069
6181
|
};
|
|
@@ -10922,6 +11034,88 @@ export interface operations {
|
|
|
10922
11034
|
};
|
|
10923
11035
|
};
|
|
10924
11036
|
};
|
|
11037
|
+
get_email_forward_metrics_v1_email_forwards__email_forward_id__metrics_get: {
|
|
11038
|
+
parameters: {
|
|
11039
|
+
query?: {
|
|
11040
|
+
start_time?: Date | null;
|
|
11041
|
+
end_time?: Date | null;
|
|
11042
|
+
};
|
|
11043
|
+
header?: never;
|
|
11044
|
+
path: {
|
|
11045
|
+
email_forward_id: TypeId<"email_forward">;
|
|
11046
|
+
};
|
|
11047
|
+
cookie?: never;
|
|
11048
|
+
};
|
|
11049
|
+
requestBody?: never;
|
|
11050
|
+
responses: {
|
|
11051
|
+
/** @description Successful Response */
|
|
11052
|
+
200: {
|
|
11053
|
+
headers: {
|
|
11054
|
+
[name: string]: unknown;
|
|
11055
|
+
};
|
|
11056
|
+
content: {
|
|
11057
|
+
"application/json": components["schemas"]["EmailForwardMetrics"];
|
|
11058
|
+
};
|
|
11059
|
+
};
|
|
11060
|
+
/** @description Unauthorized */
|
|
11061
|
+
401: {
|
|
11062
|
+
headers: {
|
|
11063
|
+
[name: string]: unknown;
|
|
11064
|
+
};
|
|
11065
|
+
content: {
|
|
11066
|
+
/** @example {
|
|
11067
|
+
* "code": "ERROR_AUTHENTICATION",
|
|
11068
|
+
* "detail": "Additional error context.",
|
|
11069
|
+
* "status": 401,
|
|
11070
|
+
* "title": "Authentication Error",
|
|
11071
|
+
* "type": "authentication"
|
|
11072
|
+
* } */
|
|
11073
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
11074
|
+
};
|
|
11075
|
+
};
|
|
11076
|
+
/** @description Forbidden */
|
|
11077
|
+
403: {
|
|
11078
|
+
headers: {
|
|
11079
|
+
[name: string]: unknown;
|
|
11080
|
+
};
|
|
11081
|
+
content: {
|
|
11082
|
+
/** @example {
|
|
11083
|
+
* "code": "ERROR_PERMISSION_DENIED",
|
|
11084
|
+
* "detail": "Insufficient permissions to perform this action",
|
|
11085
|
+
* "status": 403,
|
|
11086
|
+
* "title": "Permission Denied",
|
|
11087
|
+
* "type": "permission-denied"
|
|
11088
|
+
* } */
|
|
11089
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
11090
|
+
};
|
|
11091
|
+
};
|
|
11092
|
+
/** @description Not Found */
|
|
11093
|
+
404: {
|
|
11094
|
+
headers: {
|
|
11095
|
+
[name: string]: unknown;
|
|
11096
|
+
};
|
|
11097
|
+
content: {
|
|
11098
|
+
/** @example {
|
|
11099
|
+
* "code": "ERROR_EMAIL_FORWARD_NOT_FOUND",
|
|
11100
|
+
* "detail": "Email forward not found for hostname: Additional error context.",
|
|
11101
|
+
* "status": 404,
|
|
11102
|
+
* "title": "Email Forward Error",
|
|
11103
|
+
* "type": "email-forward-not-found"
|
|
11104
|
+
* } */
|
|
11105
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
11106
|
+
};
|
|
11107
|
+
};
|
|
11108
|
+
/** @description Validation Error */
|
|
11109
|
+
422: {
|
|
11110
|
+
headers: {
|
|
11111
|
+
[name: string]: unknown;
|
|
11112
|
+
};
|
|
11113
|
+
content: {
|
|
11114
|
+
"application/problem+json": components["schemas"]["HTTPValidationError"];
|
|
11115
|
+
};
|
|
11116
|
+
};
|
|
11117
|
+
};
|
|
11118
|
+
};
|
|
10925
11119
|
get_events_v1_events_get: {
|
|
10926
11120
|
parameters: {
|
|
10927
11121
|
query?: {
|