/**
 * Cloudflare LOGPUSH API
 *
 * Generated from Cloudflare TypeScript SDK.
 * DO NOT EDIT - regenerate with: bun scripts/generate.ts --service logpush
 */
import * as Schema from "effect/Schema";
import type * as HttpClient from "effect/unstable/http/HttpClient";
import * as API from "../client/api.ts";
import type { Credentials } from "../credentials.ts";
import { type DefaultErrors } from "../errors.ts";
interface GetDatasetFieldBaseRequest {
    datasetId: "access_requests" | "audit_logs" | "audit_logs_v2" | "biso_user_actions" | "casb_findings" | "device_posture_results" | "dex_application_tests" | "dex_device_state_events" | "dlp_forensic_copies" | "dns_firewall_logs" | "dns_logs" | "email_security_alerts" | "firewall_events" | "gateway_dns" | "gateway_http" | "gateway_network" | "http_requests" | "ipsec_logs" | "magic_ids_detections" | "nel_reports" | "network_analytics_logs" | "page_shield_events" | "sinkhole_http_logs" | "spectrum_events" | "ssh_logs" | "warp_config_changes" | "warp_toggle_changes" | "workers_trace_events" | "zaraz_events" | "zero_trust_network_sessions" | null;
}
export interface GetDatasetFieldForAccountRequest extends GetDatasetFieldBaseRequest {
    /** Path param: The Account ID to use for this endpoint. */
    accountId: string;
}
export interface GetDatasetFieldForZoneRequest extends GetDatasetFieldBaseRequest {
    /** Path param: The Zone ID to use for this endpoint. */
    zoneId: string;
}
export declare const GetDatasetFieldForAccountRequest: Schema.Schema<GetDatasetFieldForAccountRequest>;
export declare const GetDatasetFieldForZoneRequest: Schema.Schema<GetDatasetFieldForZoneRequest>;
export type GetDatasetFieldResponse = unknown;
export declare const GetDatasetFieldResponse: Schema.Schema<GetDatasetFieldResponse>;
export type GetDatasetFieldError = DefaultErrors;
export declare const getDatasetFieldForAccount: API.OperationMethod<GetDatasetFieldForAccountRequest, GetDatasetFieldResponse, GetDatasetFieldError, Credentials | HttpClient.HttpClient>;
export declare const getDatasetFieldForZone: API.OperationMethod<GetDatasetFieldForZoneRequest, GetDatasetFieldResponse, GetDatasetFieldError, Credentials | HttpClient.HttpClient>;
interface GetDatasetJobBaseRequest {
    datasetId: "access_requests" | "audit_logs" | "audit_logs_v2" | "biso_user_actions" | "casb_findings" | "device_posture_results" | "dex_application_tests" | "dex_device_state_events" | "dlp_forensic_copies" | "dns_firewall_logs" | "dns_logs" | "email_security_alerts" | "firewall_events" | "gateway_dns" | "gateway_http" | "gateway_network" | "http_requests" | "ipsec_logs" | "magic_ids_detections" | "nel_reports" | "network_analytics_logs" | "page_shield_events" | "sinkhole_http_logs" | "spectrum_events" | "ssh_logs" | "warp_config_changes" | "warp_toggle_changes" | "workers_trace_events" | "zaraz_events" | "zero_trust_network_sessions" | null;
}
export interface GetDatasetJobForAccountRequest extends GetDatasetJobBaseRequest {
    /** Path param: The Account ID to use for this endpoint. */
    accountId: string;
}
export interface GetDatasetJobForZoneRequest extends GetDatasetJobBaseRequest {
    /** Path param: The Zone ID to use for this endpoint. */
    zoneId: string;
}
export declare const GetDatasetJobForAccountRequest: Schema.Schema<GetDatasetJobForAccountRequest>;
export declare const GetDatasetJobForZoneRequest: Schema.Schema<GetDatasetJobForZoneRequest>;
export interface GetDatasetJobResponse {
    result: ({
        id?: number | null;
        dataset?: "access_requests" | "audit_logs" | "audit_logs_v2" | "biso_user_actions" | "casb_findings" | "device_posture_results" | "dex_application_tests" | "dex_device_state_events" | "dlp_forensic_copies" | "dns_firewall_logs" | "dns_logs" | "email_security_alerts" | "firewall_events" | "gateway_dns" | "gateway_http" | "gateway_network" | "http_requests" | "ipsec_logs" | "magic_ids_detections" | "nel_reports" | "network_analytics_logs" | "page_shield_events" | "sinkhole_http_logs" | "spectrum_events" | "ssh_logs" | "warp_config_changes" | "warp_toggle_changes" | "workers_trace_events" | "zaraz_events" | "zero_trust_network_sessions" | null;
        destinationConf?: string | null;
        enabled?: boolean | null;
        errorMessage?: string | null;
        frequency?: "high" | "low" | null;
        kind?: "" | "edge" | null;
        lastComplete?: string | null;
        lastError?: string | null;
        logpullOptions?: string | null;
        maxUploadBytes?: "0" | number | null;
        maxUploadIntervalSeconds?: "0" | number | null;
        maxUploadRecords?: "0" | number | null;
        name?: string | null;
        outputOptions?: {
            batchPrefix?: string | null;
            batchSuffix?: string | null;
            "cve-2021-44228"?: boolean | null;
            fieldDelimiter?: string | null;
            fieldNames?: string[] | null;
            outputType?: "ndjson" | "csv" | null;
            recordDelimiter?: string | null;
            recordPrefix?: string | null;
            recordSuffix?: string | null;
            recordTemplate?: string | null;
            sampleRate?: number | null;
            timestampFormat?: "unixnano" | "unix" | "rfc3339" | null;
        } | null;
    } | null)[];
}
export declare const GetDatasetJobResponse: Schema.Schema<GetDatasetJobResponse>;
export type GetDatasetJobError = DefaultErrors;
export declare const getDatasetJobForAccount: API.PaginatedOperationMethod<GetDatasetJobForAccountRequest, GetDatasetJobResponse, GetDatasetJobError, Credentials | HttpClient.HttpClient>;
export declare const getDatasetJobForZone: API.PaginatedOperationMethod<GetDatasetJobForZoneRequest, GetDatasetJobResponse, GetDatasetJobError, Credentials | HttpClient.HttpClient>;
export interface GetEdgeRequest {
    /** Identifier. */
    zoneId: string;
}
export declare const GetEdgeRequest: Schema.Schema<GetEdgeRequest>;
export interface GetEdgeResponse {
    result: ({
        destinationConf?: string | null;
        fields?: string | null;
        filter?: string | null;
        sample?: number | null;
        sessionId?: string | null;
    } | null)[];
}
export declare const GetEdgeResponse: Schema.Schema<GetEdgeResponse>;
export type GetEdgeError = DefaultErrors;
export declare const getEdge: API.PaginatedOperationMethod<GetEdgeRequest, GetEdgeResponse, GetEdgeError, Credentials | HttpClient.HttpClient>;
export interface CreateEdgeRequest {
    /** Path param: Identifier. */
    zoneId: string;
    /** Body param: Comma-separated list of fields. */
    fields?: string;
    /** Body param: Filters to drill down into specific events. */
    filter?: string;
    /** Body param: The sample parameter is the sample rate of the records set by the client: "sample": 1 is 100% of records "sample": 10 is 10% and so on. */
    sample?: number;
}
export declare const CreateEdgeRequest: Schema.Schema<CreateEdgeRequest>;
export interface CreateEdgeResponse {
    /** Unique WebSocket address that will receive messages from Cloudflare’s edge. */
    destinationConf?: string | null;
    /** Comma-separated list of fields. */
    fields?: string | null;
    /** Filters to drill down into specific events. */
    filter?: string | null;
    /** The sample parameter is the sample rate of the records set by the client: "sample": 1 is 100% of records "sample": 10 is 10% and so on. */
    sample?: number | null;
    /** Unique session id of the job. */
    sessionId?: string | null;
}
export declare const CreateEdgeResponse: Schema.Schema<CreateEdgeResponse>;
export type CreateEdgeError = DefaultErrors;
export declare const createEdge: API.OperationMethod<CreateEdgeRequest, CreateEdgeResponse, CreateEdgeError, Credentials | HttpClient.HttpClient>;
interface DestinationExistsValidateBaseRequest {
    /** Body param: Uniquely identifies a resource (such as an s3 bucket) where data. will be pushed. Additional configuration parameters supported by the destination may be included. */
    destinationConf: string;
}
export interface DestinationExistsValidateForAccountRequest extends DestinationExistsValidateBaseRequest {
    /** Path param: The Account ID to use for this endpoint. */
    accountId: string;
}
export interface DestinationExistsValidateForZoneRequest extends DestinationExistsValidateBaseRequest {
    /** Path param: The Zone ID to use for this endpoint. */
    zoneId: string;
}
export declare const DestinationExistsValidateForAccountRequest: Schema.Schema<DestinationExistsValidateForAccountRequest>;
export declare const DestinationExistsValidateForZoneRequest: Schema.Schema<DestinationExistsValidateForZoneRequest>;
export interface DestinationExistsValidateResponse {
    exists?: boolean | null;
}
export declare const DestinationExistsValidateResponse: Schema.Schema<DestinationExistsValidateResponse>;
export type DestinationExistsValidateError = DefaultErrors;
export declare const destinationExistsValidateForAccount: API.OperationMethod<DestinationExistsValidateForAccountRequest, DestinationExistsValidateResponse, DestinationExistsValidateError, Credentials | HttpClient.HttpClient>;
export declare const destinationExistsValidateForZone: API.OperationMethod<DestinationExistsValidateForZoneRequest, DestinationExistsValidateResponse, DestinationExistsValidateError, Credentials | HttpClient.HttpClient>;
interface GetJobBaseRequest {
    jobId: number;
}
export interface GetJobForAccountRequest extends GetJobBaseRequest {
    /** Path param: The Account ID to use for this endpoint. */
    accountId: string;
}
export interface GetJobForZoneRequest extends GetJobBaseRequest {
    /** Path param: The Zone ID to use for this endpoint. */
    zoneId: string;
}
export declare const GetJobForAccountRequest: Schema.Schema<GetJobForAccountRequest>;
export declare const GetJobForZoneRequest: Schema.Schema<GetJobForZoneRequest>;
export interface GetJobResponse {
    /** Unique id of the job. */
    id?: number | null;
    /** Name of the dataset. A list of supported datasets can be found on the [Developer Docs](https://developers.cloudflare.com/logs/reference/log-fields/). */
    dataset?: "access_requests" | "audit_logs" | "audit_logs_v2" | "biso_user_actions" | "casb_findings" | "device_posture_results" | "dex_application_tests" | "dex_device_state_events" | "dlp_forensic_copies" | "dns_firewall_logs" | "dns_logs" | "email_security_alerts" | "firewall_events" | "gateway_dns" | "gateway_http" | "gateway_network" | "http_requests" | "ipsec_logs" | "magic_ids_detections" | "nel_reports" | "network_analytics_logs" | "page_shield_events" | "sinkhole_http_logs" | "spectrum_events" | "ssh_logs" | "warp_config_changes" | "warp_toggle_changes" | "workers_trace_events" | "zaraz_events" | "zero_trust_network_sessions" | null;
    /** Uniquely identifies a resource (such as an s3 bucket) where data. will be pushed. Additional configuration parameters supported by the destination may be included. */
    destinationConf?: string | null;
    /** Flag that indicates if the job is enabled. */
    enabled?: boolean | null;
    /** If not null, the job is currently failing. Failures are usually. repetitive (example: no permissions to write to destination bucket). Only the last failure is recorded. On successful execution of a jo */
    errorMessage?: string | null;
    /** @deprecated This field is deprecated. Please use `max_upload_ ` parameters instead. . The frequency at which Cloudflare sends batches of logs to your destination. Setting frequency to high sends your  */
    frequency?: "high" | "low" | null;
    /** The kind parameter (optional) is used to differentiate between Logpush and Edge Log Delivery jobs (when supported by the dataset). */
    kind?: "" | "edge" | null;
    /** Records the last time for which logs have been successfully pushed. If the last successful push was for logs range 2018-07-23T10:00:00Z to 2018-07-23T10:01:00Z then the value of this field will be 201 */
    lastComplete?: string | null;
    /** Records the last time the job failed. If not null, the job is currently. failing. If null, the job has either never failed or has run successfully at least once since last failure. See also the error_ */
    lastError?: string | null;
    /** @deprecated This field is deprecated. Use `output_options` instead. Configuration string. It specifies things like requested fields and timestamp formats. If migrating from the logpull api, copy the u */
    logpullOptions?: string | null;
    /** The maximum uncompressed file size of a batch of logs. This setting value must be between `5 MB` and `1 GB`, or `0` to disable it. Note that you cannot set a minimum file size; this means that log fil */
    maxUploadBytes?: "0" | number | null;
    /** The maximum interval in seconds for log batches. This setting must be between 30 and 300 seconds (5 minutes), or `0` to disable it. Note that you cannot specify a minimum interval for log batches; thi */
    maxUploadIntervalSeconds?: "0" | number | null;
    /** The maximum number of log lines per batch. This setting must be between 1000 and 1,000,000 lines, or `0` to disable it. Note that you cannot specify a minimum number of log lines per batch; this means */
    maxUploadRecords?: "0" | number | null;
    /** Optional human readable job name. Not unique. Cloudflare suggests. that you set this to a meaningful string, like the domain name, to make it easier to identify your job. */
    name?: string | null;
    /** The structured replacement for `logpull_options`. When including this field, the `logpull_option` field will be ignored. */
    outputOptions?: {
        batchPrefix?: string | null;
        batchSuffix?: string | null;
        "cve-2021-44228"?: boolean | null;
        fieldDelimiter?: string | null;
        fieldNames?: string[] | null;
        outputType?: "ndjson" | "csv" | null;
        recordDelimiter?: string | null;
        recordPrefix?: string | null;
        recordSuffix?: string | null;
        recordTemplate?: string | null;
        sampleRate?: number | null;
        timestampFormat?: "unixnano" | "unix" | "rfc3339" | null;
    } | null;
}
export declare const GetJobResponse: Schema.Schema<GetJobResponse>;
export type GetJobError = DefaultErrors;
export declare const getJobForAccount: API.OperationMethod<GetJobForAccountRequest, GetJobResponse, GetJobError, Credentials | HttpClient.HttpClient>;
export declare const getJobForZone: API.OperationMethod<GetJobForZoneRequest, GetJobResponse, GetJobError, Credentials | HttpClient.HttpClient>;
interface ListJobsBaseRequest {
}
export interface ListJobsForAccountRequest extends ListJobsBaseRequest {
    /** Path param: The Account ID to use for this endpoint. */
    accountId: string;
}
export interface ListJobsForZoneRequest extends ListJobsBaseRequest {
    /** Path param: The Zone ID to use for this endpoint. */
    zoneId: string;
}
export declare const ListJobsForAccountRequest: Schema.Schema<ListJobsForAccountRequest>;
export declare const ListJobsForZoneRequest: Schema.Schema<ListJobsForZoneRequest>;
export interface ListJobsResponse {
    result: ({
        id?: number | null;
        dataset?: "access_requests" | "audit_logs" | "audit_logs_v2" | "biso_user_actions" | "casb_findings" | "device_posture_results" | "dex_application_tests" | "dex_device_state_events" | "dlp_forensic_copies" | "dns_firewall_logs" | "dns_logs" | "email_security_alerts" | "firewall_events" | "gateway_dns" | "gateway_http" | "gateway_network" | "http_requests" | "ipsec_logs" | "magic_ids_detections" | "nel_reports" | "network_analytics_logs" | "page_shield_events" | "sinkhole_http_logs" | "spectrum_events" | "ssh_logs" | "warp_config_changes" | "warp_toggle_changes" | "workers_trace_events" | "zaraz_events" | "zero_trust_network_sessions" | null;
        destinationConf?: string | null;
        enabled?: boolean | null;
        errorMessage?: string | null;
        frequency?: "high" | "low" | null;
        kind?: "" | "edge" | null;
        lastComplete?: string | null;
        lastError?: string | null;
        logpullOptions?: string | null;
        maxUploadBytes?: "0" | number | null;
        maxUploadIntervalSeconds?: "0" | number | null;
        maxUploadRecords?: "0" | number | null;
        name?: string | null;
        outputOptions?: {
            batchPrefix?: string | null;
            batchSuffix?: string | null;
            "cve-2021-44228"?: boolean | null;
            fieldDelimiter?: string | null;
            fieldNames?: string[] | null;
            outputType?: "ndjson" | "csv" | null;
            recordDelimiter?: string | null;
            recordPrefix?: string | null;
            recordSuffix?: string | null;
            recordTemplate?: string | null;
            sampleRate?: number | null;
            timestampFormat?: "unixnano" | "unix" | "rfc3339" | null;
        } | null;
    } | null)[];
}
export declare const ListJobsResponse: Schema.Schema<ListJobsResponse>;
export type ListJobsError = DefaultErrors;
export declare const listJobsForAccount: API.PaginatedOperationMethod<ListJobsForAccountRequest, ListJobsResponse, ListJobsError, Credentials | HttpClient.HttpClient>;
export declare const listJobsForZone: API.PaginatedOperationMethod<ListJobsForZoneRequest, ListJobsResponse, ListJobsError, Credentials | HttpClient.HttpClient>;
interface CreateJobBaseRequest {
    /** Body param: Uniquely identifies a resource (such as an s3 bucket) where data. will be pushed. Additional configuration parameters supported by the destination may be included. */
    destinationConf: string;
    /** Body param: Name of the dataset. A list of supported datasets can be found on the [Developer Docs](https://developers.cloudflare.com/logs/reference/log-fields/). */
    dataset?: "access_requests" | "audit_logs" | "audit_logs_v2" | "biso_user_actions" | "casb_findings" | "device_posture_results" | "dex_application_tests" | "dex_device_state_events" | "dlp_forensic_copies" | "dns_firewall_logs" | "dns_logs" | "email_security_alerts" | "firewall_events" | "gateway_dns" | "gateway_http" | "gateway_network" | "http_requests" | "ipsec_logs" | "magic_ids_detections" | "nel_reports" | "network_analytics_logs" | "page_shield_events" | "sinkhole_http_logs" | "spectrum_events" | "ssh_logs" | "warp_config_changes" | "warp_toggle_changes" | "workers_trace_events" | "zaraz_events" | "zero_trust_network_sessions" | null;
    /** Body param: Flag that indicates if the job is enabled. */
    enabled?: boolean;
    /** Body param: The filters to select the events to include and/or remove from your logs. For more information, refer to [Filters](https://developers.cloudflare.com/logs/reference/filters/). */
    filter?: string | null;
    /** @deprecated Body param: This field is deprecated. Please use `max_upload_ ` parameters instead. . The frequency at which Cloudflare sends batches of logs to your destination. Setting frequency to high */
    frequency?: "high" | "low" | null;
    /** Body param: The kind parameter (optional) is used to differentiate between Logpush and Edge Log Delivery jobs (when supported by the dataset). */
    kind?: "" | "edge";
    /** @deprecated Body param: This field is deprecated. Use `output_options` instead. Configuration string. It specifies things like requested fields and timestamp formats. If migrating from the logpull api */
    logpullOptions?: string | null;
    /** Body param: The maximum uncompressed file size of a batch of logs. This setting value must be between `5 MB` and `1 GB`, or `0` to disable it. Note that you cannot set a minimum file size; this means  */
    maxUploadBytes?: "0" | number | null;
    /** Body param: The maximum interval in seconds for log batches. This setting must be between 30 and 300 seconds (5 minutes), or `0` to disable it. Note that you cannot specify a minimum interval for log  */
    maxUploadIntervalSeconds?: "0" | number | null;
    /** Body param: The maximum number of log lines per batch. This setting must be between 1000 and 1,000,000 lines, or `0` to disable it. Note that you cannot specify a minimum number of log lines per batch */
    maxUploadRecords?: "0" | number | null;
    /** Body param: Optional human readable job name. Not unique. Cloudflare suggests. that you set this to a meaningful string, like the domain name, to make it easier to identify your job. */
    name?: string | null;
    /** Body param: The structured replacement for `logpull_options`. When including this field, the `logpull_option` field will be ignored. */
    outputOptions?: {
        batchPrefix?: string | null;
        batchSuffix?: string | null;
        "cve-2021-44228"?: boolean | null;
        fieldDelimiter?: string | null;
        fieldNames?: string[];
        outputType?: "ndjson" | "csv";
        recordDelimiter?: string | null;
        recordPrefix?: string | null;
        recordSuffix?: string | null;
        recordTemplate?: string | null;
        sampleRate?: number | null;
        timestampFormat?: "unixnano" | "unix" | "rfc3339";
    } | null;
    /** Body param: Ownership challenge token to prove destination ownership. */
    ownershipChallenge?: string;
}
export interface CreateJobForAccountRequest extends CreateJobBaseRequest {
    /** Path param: The Account ID to use for this endpoint. */
    accountId: string;
}
export interface CreateJobForZoneRequest extends CreateJobBaseRequest {
    /** Path param: The Zone ID to use for this endpoint. */
    zoneId: string;
}
export declare const CreateJobForAccountRequest: Schema.Schema<CreateJobForAccountRequest>;
export declare const CreateJobForZoneRequest: Schema.Schema<CreateJobForZoneRequest>;
export interface CreateJobResponse {
    /** Unique id of the job. */
    id?: number | null;
    /** Name of the dataset. A list of supported datasets can be found on the [Developer Docs](https://developers.cloudflare.com/logs/reference/log-fields/). */
    dataset?: "access_requests" | "audit_logs" | "audit_logs_v2" | "biso_user_actions" | "casb_findings" | "device_posture_results" | "dex_application_tests" | "dex_device_state_events" | "dlp_forensic_copies" | "dns_firewall_logs" | "dns_logs" | "email_security_alerts" | "firewall_events" | "gateway_dns" | "gateway_http" | "gateway_network" | "http_requests" | "ipsec_logs" | "magic_ids_detections" | "nel_reports" | "network_analytics_logs" | "page_shield_events" | "sinkhole_http_logs" | "spectrum_events" | "ssh_logs" | "warp_config_changes" | "warp_toggle_changes" | "workers_trace_events" | "zaraz_events" | "zero_trust_network_sessions" | null;
    /** Uniquely identifies a resource (such as an s3 bucket) where data. will be pushed. Additional configuration parameters supported by the destination may be included. */
    destinationConf?: string | null;
    /** Flag that indicates if the job is enabled. */
    enabled?: boolean | null;
    /** If not null, the job is currently failing. Failures are usually. repetitive (example: no permissions to write to destination bucket). Only the last failure is recorded. On successful execution of a jo */
    errorMessage?: string | null;
    /** @deprecated This field is deprecated. Please use `max_upload_ ` parameters instead. . The frequency at which Cloudflare sends batches of logs to your destination. Setting frequency to high sends your  */
    frequency?: "high" | "low" | null;
    /** The kind parameter (optional) is used to differentiate between Logpush and Edge Log Delivery jobs (when supported by the dataset). */
    kind?: "" | "edge" | null;
    /** Records the last time for which logs have been successfully pushed. If the last successful push was for logs range 2018-07-23T10:00:00Z to 2018-07-23T10:01:00Z then the value of this field will be 201 */
    lastComplete?: string | null;
    /** Records the last time the job failed. If not null, the job is currently. failing. If null, the job has either never failed or has run successfully at least once since last failure. See also the error_ */
    lastError?: string | null;
    /** @deprecated This field is deprecated. Use `output_options` instead. Configuration string. It specifies things like requested fields and timestamp formats. If migrating from the logpull api, copy the u */
    logpullOptions?: string | null;
    /** The maximum uncompressed file size of a batch of logs. This setting value must be between `5 MB` and `1 GB`, or `0` to disable it. Note that you cannot set a minimum file size; this means that log fil */
    maxUploadBytes?: "0" | number | null;
    /** The maximum interval in seconds for log batches. This setting must be between 30 and 300 seconds (5 minutes), or `0` to disable it. Note that you cannot specify a minimum interval for log batches; thi */
    maxUploadIntervalSeconds?: "0" | number | null;
    /** The maximum number of log lines per batch. This setting must be between 1000 and 1,000,000 lines, or `0` to disable it. Note that you cannot specify a minimum number of log lines per batch; this means */
    maxUploadRecords?: "0" | number | null;
    /** Optional human readable job name. Not unique. Cloudflare suggests. that you set this to a meaningful string, like the domain name, to make it easier to identify your job. */
    name?: string | null;
    /** The structured replacement for `logpull_options`. When including this field, the `logpull_option` field will be ignored. */
    outputOptions?: {
        batchPrefix?: string | null;
        batchSuffix?: string | null;
        "cve-2021-44228"?: boolean | null;
        fieldDelimiter?: string | null;
        fieldNames?: string[] | null;
        outputType?: "ndjson" | "csv" | null;
        recordDelimiter?: string | null;
        recordPrefix?: string | null;
        recordSuffix?: string | null;
        recordTemplate?: string | null;
        sampleRate?: number | null;
        timestampFormat?: "unixnano" | "unix" | "rfc3339" | null;
    } | null;
}
export declare const CreateJobResponse: Schema.Schema<CreateJobResponse>;
export type CreateJobError = DefaultErrors;
export declare const createJobForAccount: API.OperationMethod<CreateJobForAccountRequest, CreateJobResponse, CreateJobError, Credentials | HttpClient.HttpClient>;
export declare const createJobForZone: API.OperationMethod<CreateJobForZoneRequest, CreateJobResponse, CreateJobError, Credentials | HttpClient.HttpClient>;
interface UpdateJobBaseRequest {
    jobId: number;
    /** Body param: Uniquely identifies a resource (such as an s3 bucket) where data. will be pushed. Additional configuration parameters supported by the destination may be included. */
    destinationConf?: string;
    /** Body param: Flag that indicates if the job is enabled. */
    enabled?: boolean;
    /** Body param: The filters to select the events to include and/or remove from your logs. For more information, refer to [Filters](https://developers.cloudflare.com/logs/reference/filters/). */
    filter?: string | null;
    /** @deprecated Body param: This field is deprecated. Please use `max_upload_ ` parameters instead. . The frequency at which Cloudflare sends batches of logs to your destination. Setting frequency to high */
    frequency?: "high" | "low" | null;
    /** Body param: The kind parameter (optional) is used to differentiate between Logpush and Edge Log Delivery jobs (when supported by the dataset). */
    kind?: "" | "edge";
    /** @deprecated Body param: This field is deprecated. Use `output_options` instead. Configuration string. It specifies things like requested fields and timestamp formats. If migrating from the logpull api */
    logpullOptions?: string | null;
    /** Body param: The maximum uncompressed file size of a batch of logs. This setting value must be between `5 MB` and `1 GB`, or `0` to disable it. Note that you cannot set a minimum file size; this means  */
    maxUploadBytes?: "0" | number | null;
    /** Body param: The maximum interval in seconds for log batches. This setting must be between 30 and 300 seconds (5 minutes), or `0` to disable it. Note that you cannot specify a minimum interval for log  */
    maxUploadIntervalSeconds?: "0" | number | null;
    /** Body param: The maximum number of log lines per batch. This setting must be between 1000 and 1,000,000 lines, or `0` to disable it. Note that you cannot specify a minimum number of log lines per batch */
    maxUploadRecords?: "0" | number | null;
    /** Body param: Optional human readable job name. Not unique. Cloudflare suggests. that you set this to a meaningful string, like the domain name, to make it easier to identify your job. */
    name?: string | null;
    /** Body param: The structured replacement for `logpull_options`. When including this field, the `logpull_option` field will be ignored. */
    outputOptions?: {
        batchPrefix?: string | null;
        batchSuffix?: string | null;
        "cve-2021-44228"?: boolean | null;
        fieldDelimiter?: string | null;
        fieldNames?: string[];
        outputType?: "ndjson" | "csv";
        recordDelimiter?: string | null;
        recordPrefix?: string | null;
        recordSuffix?: string | null;
        recordTemplate?: string | null;
        sampleRate?: number | null;
        timestampFormat?: "unixnano" | "unix" | "rfc3339";
    } | null;
    /** Body param: Ownership challenge token to prove destination ownership. */
    ownershipChallenge?: string;
}
export interface UpdateJobForAccountRequest extends UpdateJobBaseRequest {
    /** Path param: The Account ID to use for this endpoint. */
    accountId: string;
}
export interface UpdateJobForZoneRequest extends UpdateJobBaseRequest {
    /** Path param: The Zone ID to use for this endpoint. */
    zoneId: string;
}
export declare const UpdateJobForAccountRequest: Schema.Schema<UpdateJobForAccountRequest>;
export declare const UpdateJobForZoneRequest: Schema.Schema<UpdateJobForZoneRequest>;
export interface UpdateJobResponse {
    /** Unique id of the job. */
    id?: number | null;
    /** Name of the dataset. A list of supported datasets can be found on the [Developer Docs](https://developers.cloudflare.com/logs/reference/log-fields/). */
    dataset?: "access_requests" | "audit_logs" | "audit_logs_v2" | "biso_user_actions" | "casb_findings" | "device_posture_results" | "dex_application_tests" | "dex_device_state_events" | "dlp_forensic_copies" | "dns_firewall_logs" | "dns_logs" | "email_security_alerts" | "firewall_events" | "gateway_dns" | "gateway_http" | "gateway_network" | "http_requests" | "ipsec_logs" | "magic_ids_detections" | "nel_reports" | "network_analytics_logs" | "page_shield_events" | "sinkhole_http_logs" | "spectrum_events" | "ssh_logs" | "warp_config_changes" | "warp_toggle_changes" | "workers_trace_events" | "zaraz_events" | "zero_trust_network_sessions" | null;
    /** Uniquely identifies a resource (such as an s3 bucket) where data. will be pushed. Additional configuration parameters supported by the destination may be included. */
    destinationConf?: string | null;
    /** Flag that indicates if the job is enabled. */
    enabled?: boolean | null;
    /** If not null, the job is currently failing. Failures are usually. repetitive (example: no permissions to write to destination bucket). Only the last failure is recorded. On successful execution of a jo */
    errorMessage?: string | null;
    /** @deprecated This field is deprecated. Please use `max_upload_ ` parameters instead. . The frequency at which Cloudflare sends batches of logs to your destination. Setting frequency to high sends your  */
    frequency?: "high" | "low" | null;
    /** The kind parameter (optional) is used to differentiate between Logpush and Edge Log Delivery jobs (when supported by the dataset). */
    kind?: "" | "edge" | null;
    /** Records the last time for which logs have been successfully pushed. If the last successful push was for logs range 2018-07-23T10:00:00Z to 2018-07-23T10:01:00Z then the value of this field will be 201 */
    lastComplete?: string | null;
    /** Records the last time the job failed. If not null, the job is currently. failing. If null, the job has either never failed or has run successfully at least once since last failure. See also the error_ */
    lastError?: string | null;
    /** @deprecated This field is deprecated. Use `output_options` instead. Configuration string. It specifies things like requested fields and timestamp formats. If migrating from the logpull api, copy the u */
    logpullOptions?: string | null;
    /** The maximum uncompressed file size of a batch of logs. This setting value must be between `5 MB` and `1 GB`, or `0` to disable it. Note that you cannot set a minimum file size; this means that log fil */
    maxUploadBytes?: "0" | number | null;
    /** The maximum interval in seconds for log batches. This setting must be between 30 and 300 seconds (5 minutes), or `0` to disable it. Note that you cannot specify a minimum interval for log batches; thi */
    maxUploadIntervalSeconds?: "0" | number | null;
    /** The maximum number of log lines per batch. This setting must be between 1000 and 1,000,000 lines, or `0` to disable it. Note that you cannot specify a minimum number of log lines per batch; this means */
    maxUploadRecords?: "0" | number | null;
    /** Optional human readable job name. Not unique. Cloudflare suggests. that you set this to a meaningful string, like the domain name, to make it easier to identify your job. */
    name?: string | null;
    /** The structured replacement for `logpull_options`. When including this field, the `logpull_option` field will be ignored. */
    outputOptions?: {
        batchPrefix?: string | null;
        batchSuffix?: string | null;
        "cve-2021-44228"?: boolean | null;
        fieldDelimiter?: string | null;
        fieldNames?: string[] | null;
        outputType?: "ndjson" | "csv" | null;
        recordDelimiter?: string | null;
        recordPrefix?: string | null;
        recordSuffix?: string | null;
        recordTemplate?: string | null;
        sampleRate?: number | null;
        timestampFormat?: "unixnano" | "unix" | "rfc3339" | null;
    } | null;
}
export declare const UpdateJobResponse: Schema.Schema<UpdateJobResponse>;
export type UpdateJobError = DefaultErrors;
export declare const updateJobForAccount: API.OperationMethod<UpdateJobForAccountRequest, UpdateJobResponse, UpdateJobError, Credentials | HttpClient.HttpClient>;
export declare const updateJobForZone: API.OperationMethod<UpdateJobForZoneRequest, UpdateJobResponse, UpdateJobError, Credentials | HttpClient.HttpClient>;
interface DeleteJobBaseRequest {
    jobId: number;
}
export interface DeleteJobForAccountRequest extends DeleteJobBaseRequest {
    /** Path param: The Account ID to use for this endpoint. */
    accountId: string;
}
export interface DeleteJobForZoneRequest extends DeleteJobBaseRequest {
    /** Path param: The Zone ID to use for this endpoint. */
    zoneId: string;
}
export declare const DeleteJobForAccountRequest: Schema.Schema<DeleteJobForAccountRequest>;
export declare const DeleteJobForZoneRequest: Schema.Schema<DeleteJobForZoneRequest>;
export interface DeleteJobResponse {
    /** Unique id of the job. */
    id?: number | null;
}
export declare const DeleteJobResponse: Schema.Schema<DeleteJobResponse>;
export type DeleteJobError = DefaultErrors;
export declare const deleteJobForAccount: API.OperationMethod<DeleteJobForAccountRequest, DeleteJobResponse, DeleteJobError, Credentials | HttpClient.HttpClient>;
export declare const deleteJobForZone: API.OperationMethod<DeleteJobForZoneRequest, DeleteJobResponse, DeleteJobError, Credentials | HttpClient.HttpClient>;
interface CreateOwnershipBaseRequest {
    /** Body param: Uniquely identifies a resource (such as an s3 bucket) where data. will be pushed. Additional configuration parameters supported by the destination may be included. */
    destinationConf: string;
}
export interface CreateOwnershipForAccountRequest extends CreateOwnershipBaseRequest {
    /** Path param: The Account ID to use for this endpoint. */
    accountId: string;
}
export interface CreateOwnershipForZoneRequest extends CreateOwnershipBaseRequest {
    /** Path param: The Zone ID to use for this endpoint. */
    zoneId: string;
}
export declare const CreateOwnershipForAccountRequest: Schema.Schema<CreateOwnershipForAccountRequest>;
export declare const CreateOwnershipForZoneRequest: Schema.Schema<CreateOwnershipForZoneRequest>;
export interface CreateOwnershipResponse {
    filename?: string | null;
    message?: string | null;
    valid?: boolean | null;
}
export declare const CreateOwnershipResponse: Schema.Schema<CreateOwnershipResponse>;
export type CreateOwnershipError = DefaultErrors;
export declare const createOwnershipForAccount: API.OperationMethod<CreateOwnershipForAccountRequest, CreateOwnershipResponse, CreateOwnershipError, Credentials | HttpClient.HttpClient>;
export declare const createOwnershipForZone: API.OperationMethod<CreateOwnershipForZoneRequest, CreateOwnershipResponse, CreateOwnershipError, Credentials | HttpClient.HttpClient>;
interface ValidateOwnershipBaseRequest {
    /** Body param: Uniquely identifies a resource (such as an s3 bucket) where data. will be pushed. Additional configuration parameters supported by the destination may be included. */
    destinationConf: string;
    /** Body param: Ownership challenge token to prove destination ownership. */
    ownershipChallenge: string;
}
export interface ValidateOwnershipForAccountRequest extends ValidateOwnershipBaseRequest {
    /** Path param: The Account ID to use for this endpoint. */
    accountId: string;
}
export interface ValidateOwnershipForZoneRequest extends ValidateOwnershipBaseRequest {
    /** Path param: The Zone ID to use for this endpoint. */
    zoneId: string;
}
export declare const ValidateOwnershipForAccountRequest: Schema.Schema<ValidateOwnershipForAccountRequest>;
export declare const ValidateOwnershipForZoneRequest: Schema.Schema<ValidateOwnershipForZoneRequest>;
export interface ValidateOwnershipResponse {
    valid?: boolean | null;
}
export declare const ValidateOwnershipResponse: Schema.Schema<ValidateOwnershipResponse>;
export type ValidateOwnershipError = DefaultErrors;
export declare const validateOwnershipForAccount: API.OperationMethod<ValidateOwnershipForAccountRequest, ValidateOwnershipResponse, ValidateOwnershipError, Credentials | HttpClient.HttpClient>;
export declare const validateOwnershipForZone: API.OperationMethod<ValidateOwnershipForZoneRequest, ValidateOwnershipResponse, ValidateOwnershipError, Credentials | HttpClient.HttpClient>;
interface DestinationValidateBaseRequest {
    /** Body param: Uniquely identifies a resource (such as an s3 bucket) where data. will be pushed. Additional configuration parameters supported by the destination may be included. */
    destinationConf: string;
}
export interface DestinationValidateForAccountRequest extends DestinationValidateBaseRequest {
    /** Path param: The Account ID to use for this endpoint. */
    accountId: string;
}
export interface DestinationValidateForZoneRequest extends DestinationValidateBaseRequest {
    /** Path param: The Zone ID to use for this endpoint. */
    zoneId: string;
}
export declare const DestinationValidateForAccountRequest: Schema.Schema<DestinationValidateForAccountRequest>;
export declare const DestinationValidateForZoneRequest: Schema.Schema<DestinationValidateForZoneRequest>;
export interface DestinationValidateResponse {
    message?: string | null;
    valid?: boolean | null;
}
export declare const DestinationValidateResponse: Schema.Schema<DestinationValidateResponse>;
export type DestinationValidateError = DefaultErrors;
export declare const destinationValidateForAccount: API.OperationMethod<DestinationValidateForAccountRequest, DestinationValidateResponse, DestinationValidateError, Credentials | HttpClient.HttpClient>;
export declare const destinationValidateForZone: API.OperationMethod<DestinationValidateForZoneRequest, DestinationValidateResponse, DestinationValidateError, Credentials | HttpClient.HttpClient>;
interface OriginValidateBaseRequest {
    /** @deprecated Body param: This field is deprecated. Use `output_options` instead. Configuration string. It specifies things like requested fields and timestamp formats. If migrating from the logpull api */
    logpullOptions: string | null;
}
export interface OriginValidateForAccountRequest extends OriginValidateBaseRequest {
    /** Path param: The Account ID to use for this endpoint. */
    accountId: string;
}
export interface OriginValidateForZoneRequest extends OriginValidateBaseRequest {
    /** Path param: The Zone ID to use for this endpoint. */
    zoneId: string;
}
export declare const OriginValidateForAccountRequest: Schema.Schema<OriginValidateForAccountRequest>;
export declare const OriginValidateForZoneRequest: Schema.Schema<OriginValidateForZoneRequest>;
export interface OriginValidateResponse {
    message?: string | null;
    valid?: boolean | null;
}
export declare const OriginValidateResponse: Schema.Schema<OriginValidateResponse>;
export type OriginValidateError = DefaultErrors;
export declare const originValidateForAccount: API.OperationMethod<OriginValidateForAccountRequest, OriginValidateResponse, OriginValidateError, Credentials | HttpClient.HttpClient>;
export declare const originValidateForZone: API.OperationMethod<OriginValidateForZoneRequest, OriginValidateResponse, OriginValidateError, Credentials | HttpClient.HttpClient>;
export {};
//# sourceMappingURL=logpush.d.ts.map