/** * incident.io * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import type { WebhookDeliveryRequestV2 } from './WebhookDeliveryRequestV2.js'; import type { WebhookDeliveryResponseV2 } from './WebhookDeliveryResponseV2.js'; /** * * @export * @interface WebhookDeliveryV2 */ export interface WebhookDeliveryV2 { /** * Time taken by the request, in milliseconds */ duration_ms?: number; /** * The interpolated URL the request was sent to. Redirects are followed, so this is the URL requested rather than the URL that ultimately served it */ endpoint: string; /** * HTTP method used for the request */ method: string; /** * The result of the delivery attempt. Only success and non_2xx have a response */ outcome: WebhookDeliveryV2OutcomeEnum; /** * */ request: WebhookDeliveryRequestV2; /** * */ response?: WebhookDeliveryResponseV2; /** * HTTP status code returned by the endpoint. Absent when no response was received */ status_code?: number; } /** * @export */ export declare const WebhookDeliveryV2OutcomeEnum: { readonly Success: "success"; readonly Non2xx: "non_2xx"; readonly Timeout: "timeout"; readonly Unreachable: "unreachable"; readonly NetworkError: "network_error"; readonly TlsError: "tls_error"; }; export type WebhookDeliveryV2OutcomeEnum = typeof WebhookDeliveryV2OutcomeEnum[keyof typeof WebhookDeliveryV2OutcomeEnum]; /** * Check if a given object implements the WebhookDeliveryV2 interface. */ export declare function instanceOfWebhookDeliveryV2(value: object): value is WebhookDeliveryV2; export declare function WebhookDeliveryV2FromJSON(json: any): WebhookDeliveryV2; export declare function WebhookDeliveryV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): WebhookDeliveryV2; export declare function WebhookDeliveryV2ToJSON(json: any): WebhookDeliveryV2; export declare function WebhookDeliveryV2ToJSONTyped(value?: WebhookDeliveryV2 | null, ignoreDiscriminator?: boolean): any;