/**
 * Cloudflare BOTNET-FEED API
 *
 * Generated from Cloudflare TypeScript SDK.
 * DO NOT EDIT - regenerate with: bun scripts/generate.ts --service botnet-feed
 */
import * as Schema from "effect/Schema";
import * as API from "../client/api.js";
import * as T from "../traits.js";
import {} from "../errors.js";
export const GetConfigAsnRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    accountId: Schema.String.pipe(T.HttpPath("account_id")),
}).pipe(T.Http({
    method: "GET",
    path: "/accounts/{account_id}/botnet_feed/configs/asn",
}));
export const GetConfigAsnResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    asn: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
}).pipe(T.ResponsePath("result"));
export const getConfigAsn = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
    input: GetConfigAsnRequest,
    output: GetConfigAsnResponse,
    errors: [],
}));
export const DeleteConfigAsnRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    asnId: Schema.Number.pipe(T.HttpPath("asnId")),
    accountId: Schema.String.pipe(T.HttpPath("account_id")),
}).pipe(T.Http({
    method: "DELETE",
    path: "/accounts/{account_id}/botnet_feed/configs/asn/{asnId}",
}));
export const DeleteConfigAsnResponse = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    asn: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
}).pipe(T.ResponsePath("result"));
export const deleteConfigAsn = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
    input: DeleteConfigAsnRequest,
    output: DeleteConfigAsnResponse,
    errors: [],
}));
export const DayReportAsnRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    asnId: Schema.Number.pipe(T.HttpPath("asnId")),
    accountId: Schema.String.pipe(T.HttpPath("account_id")),
    date: Schema.optional(Schema.String).pipe(T.HttpQuery("date")),
}).pipe(T.Http({
    method: "GET",
    path: "/accounts/{account_id}/botnet_feed/asn/{asnId}/day_report",
}));
export const DayReportAsnResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    cidr: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
    date: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
    offenseCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
})
    .pipe(Schema.encodeKeys({
    cidr: "cidr",
    date: "date",
    offenseCount: "offense_count",
}))
    .pipe(T.ResponsePath("result"));
export const dayReportAsn = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
    input: DayReportAsnRequest,
    output: DayReportAsnResponse,
    errors: [],
}));
export const FullReportAsnRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    asnId: Schema.Number.pipe(T.HttpPath("asnId")),
    accountId: Schema.String.pipe(T.HttpPath("account_id")),
}).pipe(T.Http({
    method: "GET",
    path: "/accounts/{account_id}/botnet_feed/asn/{asnId}/full_report",
}));
export const FullReportAsnResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    cidr: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
    date: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
    offenseCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
})
    .pipe(Schema.encodeKeys({
    cidr: "cidr",
    date: "date",
    offenseCount: "offense_count",
}))
    .pipe(T.ResponsePath("result"));
export const fullReportAsn = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
    input: FullReportAsnRequest,
    output: FullReportAsnResponse,
    errors: [],
}));
//# sourceMappingURL=botnet-feed.js.map