import { inspect, InspectOptions } from "util"; import V1 from "../V1"; import { ApiResponse } from "../../../base/ApiResponse"; /** * Delivery outcome of a webhook test */ export declare class TestDeliveryResult { /** * Whether the webhook was successfully delivered to the target endpoint */ "outcome": string; "response": TestDeliveryResultResponse; "timing": TestDeliveryResultTiming; /** * Human-readable error message (present only when outcome is FAILED) */ "error"?: string; constructor(payload: any); } /** * HTTP response received from target endpoint with the result of the webhook call. */ export declare class TestDeliveryResultResponse { "statusCode"?: number; "headers"?: { [key: string]: Array; }; constructor(payload: any); } /** * Delivery timing information */ export declare class TestDeliveryResultTiming { /** * Total time taken for the webhook delivery in milliseconds */ "totalMs"?: number; constructor(payload: any); } /** * Request to test webhook delivery */ export declare class TestRequest { /** * Target webhook URL to test */ "url": string; /** * Setting to use for test configuration */ "settingId": string; /** * HTTP method to use when sending the test webhook request */ "method"?: string; constructor(payload: any); } /** * Options to pass to create a TestInstance */ export interface TestListInstanceCreateOptions { /** */ testRequest: TestRequest; } export interface TestSolution { } export interface TestListInstance { _version: V1; _solution: TestSolution; _uri: string; /** * Create a TestInstance * * @param params - Body for request * @param headers - header params for request * @param callback - Callback to handle processed record * * @returns Resolves to processed TestInstance */ create(params: TestRequest, headers?: any, callback?: (error: Error | null, item?: TestInstance) => any): Promise; /** * Create a TestInstance and return HTTP info * * @param params - Body for request * @param headers - header params for request * @param callback - Callback to handle processed record * * @returns Resolves to processed TestInstance with HTTP metadata */ createWithHttpInfo(params: TestRequest, headers?: any, callback?: (error: Error | null, item?: ApiResponse) => any): Promise>; /** * Provide a user-friendly representation */ toJSON(): any; [inspect.custom](_depth: any, options: InspectOptions): any; } export declare function TestListInstance(version: V1): TestListInstance; interface TestResource { url: string; result: TestDeliveryResult; createdAt: Date; } /** * Result of a webhook test */ export declare class TestInstance { protected _version: V1; constructor(_version: V1, _payload: TestResource); url: string; result: TestDeliveryResult; createdAt: Date; /** * Provide a user-friendly representation * * @returns Object */ toJSON(): { url: string; result: TestDeliveryResult; createdAt: Date; }; [inspect.custom](_depth: any, options: InspectOptions): string; } export {};