@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/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;
@@ -3230,12 +3250,6 @@ export interface components {
3230
3250
  * @description Additional information to include in the restore operation
3231
3251
  */
3232
3252
  additional_info?: string | null;
3233
- /**
3234
- * Auto Renew
3235
- * @description Whether to automatically renew the domain after restore
3236
- * @default true
3237
- */
3238
- auto_renew: boolean;
3239
3253
  /**
3240
3254
  * Reason
3241
3255
  * @description Reason for restoring the domain
@@ -3557,11 +3571,8 @@ export interface components {
3557
3571
  * @description List of processing events
3558
3572
  */
3559
3573
  events?: components["schemas"]["EmailForwardLogEvent"][];
3560
- /**
3561
- * Final Status
3562
- * @description Final status of the email (QUEUED, DELIVERED, REFUSED, SOFT-BOUNCE, HARD-BOUNCE)
3563
- */
3564
- final_status: string;
3574
+ /** @description Final status of the email (QUEUED, DELIVERED, REFUSED, SOFT-BOUNCE, HARD-BOUNCE) */
3575
+ final_status: components["schemas"]["EmailForwardLogStatus"];
3565
3576
  /**
3566
3577
  * Forward Email
3567
3578
  * @description Forward destination email address
@@ -3664,15 +3675,75 @@ export interface components {
3664
3675
  status: string;
3665
3676
  };
3666
3677
  /**
3667
- * EmailForwardLogFinalStatus
3678
+ * EmailForwardLogSortField
3668
3679
  * @enum {string}
3669
3680
  */
3670
- EmailForwardLogFinalStatus: "QUEUED" | "DELIVERED" | "REFUSED" | "SOFT-BOUNCE" | "HARD-BOUNCE";
3681
+ EmailForwardLogSortField: "log_id" | "sender_email" | "recipient_email" | "forward_email" | "final_status" | "created_on" | "synced_on";
3671
3682
  /**
3672
- * EmailForwardLogSortField
3683
+ * EmailForwardLogStatus
3673
3684
  * @enum {string}
3674
3685
  */
3675
- EmailForwardLogSortField: "log_id" | "sender_email" | "recipient_email" | "forward_email" | "final_status" | "created_on" | "synced_on";
3686
+ EmailForwardLogStatus: "QUEUED" | "DELIVERED" | "REFUSED" | "SOFT-BOUNCE" | "HARD-BOUNCE";
3687
+ /** EmailForwardMetrics */
3688
+ EmailForwardMetrics: {
3689
+ /**
3690
+ * By Status
3691
+ * @description Log counts grouped by status (QUEUED, DELIVERED, REFUSED, SOFT-BOUNCE, HARD-BOUNCE)
3692
+ */
3693
+ by_status: {
3694
+ [key: string]: number;
3695
+ };
3696
+ /** @description Applied filters */
3697
+ filters: components["schemas"]["EmailForwardMetricsFilters"];
3698
+ /** @description Rate percentages for each status */
3699
+ rates: components["schemas"]["EmailForwardMetricsRates"];
3700
+ /**
3701
+ * Total Logs
3702
+ * @description Total number of email forward logs
3703
+ */
3704
+ total_logs: number;
3705
+ };
3706
+ /** EmailForwardMetricsFilters */
3707
+ EmailForwardMetricsFilters: {
3708
+ /**
3709
+ * Domain
3710
+ * @description Domain name
3711
+ */
3712
+ domain: string;
3713
+ /**
3714
+ * End Time
3715
+ * @description End time filter (RFC3339)
3716
+ */
3717
+ end_time?: string | null;
3718
+ /**
3719
+ * Start Time
3720
+ * @description Start time filter (RFC3339)
3721
+ */
3722
+ start_time?: string | null;
3723
+ };
3724
+ /** EmailForwardMetricsRates */
3725
+ EmailForwardMetricsRates: {
3726
+ /**
3727
+ * Delivered
3728
+ * @description Delivery rate percentage
3729
+ */
3730
+ delivered: number;
3731
+ /**
3732
+ * Hard Bounce
3733
+ * @description Hard bounce rate percentage
3734
+ */
3735
+ hard_bounce: number;
3736
+ /**
3737
+ * Refused
3738
+ * @description Refused rate percentage
3739
+ */
3740
+ refused: number;
3741
+ /**
3742
+ * Soft Bounce
3743
+ * @description Soft bounce rate percentage
3744
+ */
3745
+ soft_bounce: number;
3746
+ };
3676
3747
  /** EmailForwardResponse */
3677
3748
  EmailForwardResponse: {
3678
3749
  /** Aliases */
@@ -6030,7 +6101,7 @@ export interface operations {
6030
6101
  sort_order?: components["schemas"]["SortOrder"];
6031
6102
  page_size?: number;
6032
6103
  page?: number;
6033
- final_status?: components["schemas"]["EmailForwardLogFinalStatus"] | null;
6104
+ final_status?: components["schemas"]["EmailForwardLogStatus"] | null;
6034
6105
  start_time?: Date | null;
6035
6106
  end_time?: Date | null;
6036
6107
  };
@@ -6069,7 +6140,7 @@ export interface operations {
6069
6140
  sort_order?: components["schemas"]["SortOrder"];
6070
6141
  page_size?: number;
6071
6142
  page?: number;
6072
- final_status?: components["schemas"]["EmailForwardLogFinalStatus"] | null;
6143
+ final_status?: components["schemas"]["EmailForwardLogStatus"] | null;
6073
6144
  start_time?: Date | null;
6074
6145
  end_time?: Date | null;
6075
6146
  };
@@ -10928,6 +10999,88 @@ export interface operations {
10928
10999
  };
10929
11000
  };
10930
11001
  };
11002
+ get_email_forward_metrics_v1_email_forwards__email_forward_id__metrics_get: {
11003
+ parameters: {
11004
+ query?: {
11005
+ start_time?: Date | null;
11006
+ end_time?: Date | null;
11007
+ };
11008
+ header?: never;
11009
+ path: {
11010
+ email_forward_id: TypeId<"email_forward">;
11011
+ };
11012
+ cookie?: never;
11013
+ };
11014
+ requestBody?: never;
11015
+ responses: {
11016
+ /** @description Successful Response */
11017
+ 200: {
11018
+ headers: {
11019
+ [name: string]: unknown;
11020
+ };
11021
+ content: {
11022
+ "application/json": components["schemas"]["EmailForwardMetrics"];
11023
+ };
11024
+ };
11025
+ /** @description Unauthorized */
11026
+ 401: {
11027
+ headers: {
11028
+ [name: string]: unknown;
11029
+ };
11030
+ content: {
11031
+ /** @example {
11032
+ * "code": "ERROR_AUTHENTICATION",
11033
+ * "detail": "Additional error context.",
11034
+ * "status": 401,
11035
+ * "title": "Authentication Error",
11036
+ * "type": "authentication"
11037
+ * } */
11038
+ "application/problem+json": components["schemas"]["Problem"];
11039
+ };
11040
+ };
11041
+ /** @description Forbidden */
11042
+ 403: {
11043
+ headers: {
11044
+ [name: string]: unknown;
11045
+ };
11046
+ content: {
11047
+ /** @example {
11048
+ * "code": "ERROR_PERMISSION_DENIED",
11049
+ * "detail": "Insufficient permissions to perform this action",
11050
+ * "status": 403,
11051
+ * "title": "Permission Denied",
11052
+ * "type": "permission-denied"
11053
+ * } */
11054
+ "application/problem+json": components["schemas"]["Problem"];
11055
+ };
11056
+ };
11057
+ /** @description Not Found */
11058
+ 404: {
11059
+ headers: {
11060
+ [name: string]: unknown;
11061
+ };
11062
+ content: {
11063
+ /** @example {
11064
+ * "code": "ERROR_EMAIL_FORWARD_NOT_FOUND",
11065
+ * "detail": "Email forward not found for hostname: Additional error context.",
11066
+ * "status": 404,
11067
+ * "title": "Email Forward Error",
11068
+ * "type": "email-forward-not-found"
11069
+ * } */
11070
+ "application/problem+json": components["schemas"]["Problem"];
11071
+ };
11072
+ };
11073
+ /** @description Validation Error */
11074
+ 422: {
11075
+ headers: {
11076
+ [name: string]: unknown;
11077
+ };
11078
+ content: {
11079
+ "application/problem+json": components["schemas"]["HTTPValidationError"];
11080
+ };
11081
+ };
11082
+ };
11083
+ };
10931
11084
  get_events_v1_events_get: {
10932
11085
  parameters: {
10933
11086
  query?: {