mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-10-09 21:14:22 +00:00
90 lines
2.7 KiB
TypeScript
90 lines
2.7 KiB
TypeScript
import type { z } from "zod";
|
|
|
|
import {
|
|
LIGHTHOUSE_CONTEXT_KIND,
|
|
LIGHTHOUSE_CONTEXT_LIMIT,
|
|
LIGHTHOUSE_CONTEXT_SOURCE,
|
|
LIGHTHOUSE_CONTEXT_TRANSPORT,
|
|
LIGHTHOUSE_PAGE_ID,
|
|
} from "@/lib/lighthouse/context/constants";
|
|
import type {
|
|
lighthouseAttackPathContextItemSchema,
|
|
lighthouseAttackPathParameterSchema,
|
|
lighthouseAttackPathParametersSchema,
|
|
lighthouseAttackPathTypeCountsSchema,
|
|
lighthouseComplianceContextItemSchema,
|
|
lighthouseComplianceTotalsSchema,
|
|
lighthouseContextEnvelopeSchema,
|
|
lighthouseContextFiltersSchema,
|
|
lighthouseContextItemBaseSchema,
|
|
lighthouseContextItemSchema,
|
|
lighthouseContextSourceSchema,
|
|
lighthouseContextTransportSchema,
|
|
lighthouseFindingContextItemSchema,
|
|
lighthousePageContextItemSchema,
|
|
lighthouseProviderContextItemSchema,
|
|
lighthouseResourceContextItemSchema,
|
|
lighthouseScanContextItemSchema,
|
|
} from "@/lib/lighthouse/context/schema";
|
|
|
|
export {
|
|
LIGHTHOUSE_CONTEXT_KIND,
|
|
LIGHTHOUSE_CONTEXT_LIMIT,
|
|
LIGHTHOUSE_CONTEXT_SOURCE,
|
|
LIGHTHOUSE_CONTEXT_TRANSPORT,
|
|
LIGHTHOUSE_PAGE_ID,
|
|
};
|
|
|
|
export type LighthouseContextSource = z.infer<
|
|
typeof lighthouseContextSourceSchema
|
|
>;
|
|
export type LighthouseContextTransport = z.infer<
|
|
typeof lighthouseContextTransportSchema
|
|
>;
|
|
export type LighthousePageId =
|
|
(typeof LIGHTHOUSE_PAGE_ID)[keyof typeof LIGHTHOUSE_PAGE_ID];
|
|
|
|
export type LighthouseContextFilters = z.infer<
|
|
typeof lighthouseContextFiltersSchema
|
|
>;
|
|
export type LighthouseContextItemBase = z.infer<
|
|
typeof lighthouseContextItemBaseSchema
|
|
>;
|
|
export type LighthousePageContextItem = z.infer<
|
|
typeof lighthousePageContextItemSchema
|
|
>;
|
|
export type LighthouseFindingContextItem = z.infer<
|
|
typeof lighthouseFindingContextItemSchema
|
|
>;
|
|
export type LighthouseResourceContextItem = z.infer<
|
|
typeof lighthouseResourceContextItemSchema
|
|
>;
|
|
export type LighthouseComplianceTotals = z.infer<
|
|
typeof lighthouseComplianceTotalsSchema
|
|
>;
|
|
export type LighthouseComplianceContextItem = z.infer<
|
|
typeof lighthouseComplianceContextItemSchema
|
|
>;
|
|
export type LighthouseAttackPathParameter = z.infer<
|
|
typeof lighthouseAttackPathParameterSchema
|
|
>;
|
|
export type LighthouseAttackPathParameters = z.infer<
|
|
typeof lighthouseAttackPathParametersSchema
|
|
>;
|
|
export type LighthouseAttackPathTypeCounts = z.infer<
|
|
typeof lighthouseAttackPathTypeCountsSchema
|
|
>;
|
|
export type LighthouseAttackPathContextItem = z.infer<
|
|
typeof lighthouseAttackPathContextItemSchema
|
|
>;
|
|
export type LighthouseScanContextItem = z.infer<
|
|
typeof lighthouseScanContextItemSchema
|
|
>;
|
|
export type LighthouseProviderContextItem = z.infer<
|
|
typeof lighthouseProviderContextItemSchema
|
|
>;
|
|
export type LighthouseContextItem = z.infer<typeof lighthouseContextItemSchema>;
|
|
export type LighthouseContextEnvelope = z.infer<
|
|
typeof lighthouseContextEnvelopeSchema
|
|
>;
|