import * as z from "zod/v3";
import { Result as SafeParseResult } from "../../types/fp.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
import { CustomMappingError } from "./custommappingerror.js";
import { ProviderError } from "./providererror.js";
import { StepLog } from "./steplog.js";
/**
 * The request URL data
 */
export type UnifiedLogsUrl = {
    /**
     * The request URL hostname
     */
    hostname?: string | null | undefined;
    /**
     * The request path
     */
    path?: string | null | undefined;
    /**
     * The request query parameters
     */
    queryParams?: {
        [k: string]: any;
    } | null | undefined;
    /**
     * The request URL
     */
    url?: string | null | undefined;
};
/**
 * The advanced log request data
 */
export type UnifiedLogsRequest = {
    body?: any | null | undefined;
    headers?: {
        [k: string]: any;
    } | null | undefined;
    /**
     * The request ID
     */
    id?: string | null | undefined;
    /**
     * The request method
     */
    method?: string | null | undefined;
    /**
     * The request URL data
     */
    url?: UnifiedLogsUrl | null | undefined;
};
/**
 * The advanced log response data
 */
export type UnifiedLogsResponse = {
    body?: any | null | undefined;
    /**
     * The custom mapping errors
     */
    customMappingErrors?: Array<CustomMappingError> | null | undefined;
    headers?: {
        [k: string]: any;
    } | null | undefined;
    /**
     * The provider errors
     */
    providerErrors?: Array<ProviderError> | null | undefined;
    /**
     * The response status code
     */
    statusCode?: number | null | undefined;
};
export type UnifiedLogs = {
    /**
     * The account ID of the request
     */
    accountId?: string | null | undefined;
    /**
     * The requested action
     */
    action?: string | null | undefined;
    /**
     * The requested child resource
     */
    childResource?: string | null | undefined;
    /**
     * The request duration in milliseconds
     */
    duration?: number | null | undefined;
    /**
     * The request end time ISO8601 date string
     */
    endTime?: Date | null | undefined;
    /**
     * The event ISO8601 date string
     */
    eventDatetime?: Date | null | undefined;
    /**
     * The requested HTTP method
     */
    httpMethod?: string | null | undefined;
    /**
     * The asynchronous worker flag
     */
    isWorker?: boolean | null | undefined;
    /**
     * The requested path
     */
    path?: string | null | undefined;
    /**
     * The project ID of the request
     */
    projectId?: string | null | undefined;
    /**
     * The requested provider
     */
    provider?: string | null | undefined;
    /**
     * The advanced log request data
     */
    request?: UnifiedLogsRequest | null | undefined;
    /**
     * The request ID
     */
    requestId?: string | null | undefined;
    /**
     * The requested resource
     */
    resource?: string | null | undefined;
    /**
     * The advanced log response data
     */
    response?: UnifiedLogsResponse | null | undefined;
    /**
     * The requested service
     */
    service?: string | null | undefined;
    /**
     * The requests source ID
     */
    sourceId?: string | null | undefined;
    /**
     * The requests source IPV4 ip address
     */
    sourceIp?: string | null | undefined;
    /**
     * The requests source type
     */
    sourceType?: string | null | undefined;
    /**
     * The requests source value
     */
    sourceValue?: string | null | undefined;
    /**
     * The request start time ISO8601 date string
     */
    startTime?: Date | null | undefined;
    /**
     * The requests response status code
     */
    status?: number | null | undefined;
    /**
     * The list of provider requests
     */
    stepRequests?: Array<StepLog> | null | undefined;
    /**
     * The requested sub resource
     */
    subResource?: string | null | undefined;
    /**
     * The request success flag
     */
    success?: boolean | null | undefined;
    /**
     * The requested URL
     */
    url?: string | null | undefined;
};
/** @internal */
export declare const UnifiedLogsUrl$inboundSchema: z.ZodType<UnifiedLogsUrl, z.ZodTypeDef, unknown>;
export declare function unifiedLogsUrlFromJSON(jsonString: string): SafeParseResult<UnifiedLogsUrl, SDKValidationError>;
/** @internal */
export declare const UnifiedLogsRequest$inboundSchema: z.ZodType<UnifiedLogsRequest, z.ZodTypeDef, unknown>;
export declare function unifiedLogsRequestFromJSON(jsonString: string): SafeParseResult<UnifiedLogsRequest, SDKValidationError>;
/** @internal */
export declare const UnifiedLogsResponse$inboundSchema: z.ZodType<UnifiedLogsResponse, z.ZodTypeDef, unknown>;
export declare function unifiedLogsResponseFromJSON(jsonString: string): SafeParseResult<UnifiedLogsResponse, SDKValidationError>;
/** @internal */
export declare const UnifiedLogs$inboundSchema: z.ZodType<UnifiedLogs, z.ZodTypeDef, unknown>;
export declare function unifiedLogsFromJSON(jsonString: string): SafeParseResult<UnifiedLogs, SDKValidationError>;
//# sourceMappingURL=unifiedlogs.d.ts.map