mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-11-02 01:15:31 +00:00
Add barrel file to types
This commit is contained in:
10 files changed
+18
-9
No files matched your search
@@ -1,7 +1,7 @@
|
||||
import { tool } from "@langchain/core/tools";
|
||||
|
||||
import { aiGetProviderChecks } from "@/lib/lighthouse/helperChecks";
|
||||
import { checkSchema } from "@/types/ai/checks";
|
||||
import { checkSchema } from "@/types/ai";
|
||||
|
||||
export const getProviderChecksTool = tool(
|
||||
async ({ provider_type }) => {
|
||||
|
||||
@@ -9,7 +9,7 @@ import {
|
||||
getComplianceFrameworksSchema,
|
||||
getComplianceOverviewSchema,
|
||||
getCompliancesOverviewSchema,
|
||||
} from "@/types/ai/compliances";
|
||||
} from "@/types/ai";
|
||||
|
||||
export const getCompliancesOverviewTool = tool(
|
||||
async ({ scanId, fields, filters, page, page_size, sort }) => {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { tool } from "@langchain/core/tools";
|
||||
|
||||
import { getFindings, getMetadataInfo } from "@/actions/findings";
|
||||
import { getFindingsSchema, getMetadataInfoSchema } from "@/types/ai/findings";
|
||||
import { getFindingsSchema, getMetadataInfoSchema } from "@/types/ai";
|
||||
|
||||
export const getFindingsTool = tool(
|
||||
async ({ page, pageSize, query, sort, filters }) => {
|
||||
|
||||
@@ -9,7 +9,7 @@ import {
|
||||
getFindingsBySeveritySchema,
|
||||
getFindingsByStatusSchema,
|
||||
getProvidersOverviewSchema,
|
||||
} from "@/types/ai/overviews";
|
||||
} from "@/types/ai";
|
||||
|
||||
export const getProvidersOverviewTool = tool(
|
||||
async ({ page, query, sort, filters }) => {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { tool } from "@langchain/core/tools";
|
||||
|
||||
import { getProvider, getProviders } from "@/actions/providers";
|
||||
import { getProviderSchema, getProvidersSchema } from "@/types/ai/providers";
|
||||
import { getProviderSchema, getProvidersSchema } from "@/types/ai";
|
||||
|
||||
export const getProvidersTool = tool(
|
||||
async ({ page, query, sort, filters }) => {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { tool } from "@langchain/core/tools";
|
||||
|
||||
import { aiGetResource, aiGetResources } from "@/actions/lighthouse/resources";
|
||||
import { getResourceSchema, getResourcesSchema } from "@/types/ai/resources";
|
||||
import { getResourceSchema, getResourcesSchema } from "@/types/ai";
|
||||
|
||||
export const getResourcesTool = tool(
|
||||
async ({ page, query, sort, filters, fields }) => {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { tool } from "@langchain/core/tools";
|
||||
|
||||
import { getRoleInfoById, getRoles } from "@/actions/roles";
|
||||
import { getRoleSchema, getRolesSchema } from "@/types/ai/roles";
|
||||
import { getRoleSchema, getRolesSchema } from "@/types/ai";
|
||||
|
||||
export const getRolesTool = tool(
|
||||
async ({ page, query, sort, filters }) => {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { tool } from "@langchain/core/tools";
|
||||
|
||||
import { getScan, getScans } from "@/actions/scans";
|
||||
import { getScanSchema, getScansSchema } from "@/types/ai/scans";
|
||||
import { getScanSchema, getScansSchema } from "@/types/ai";
|
||||
|
||||
export const getScansTool = tool(
|
||||
async ({ page, query, sort, filters }) => {
|
||||
|
||||
@@ -2,7 +2,7 @@ import { tool } from "@langchain/core/tools";
|
||||
import { z } from "zod";
|
||||
|
||||
import { getProfileInfo, getUsers } from "@/actions/users/users";
|
||||
import { getUsersSchema } from "@/types/ai/users";
|
||||
import { getUsersSchema } from "@/types/ai";
|
||||
|
||||
export const getUsersTool = tool(
|
||||
async ({ page, query, sort, filters }) => {
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
export * from "./checks";
|
||||
export * from "./compliances";
|
||||
export * from "./findings";
|
||||
export * from "./overviews";
|
||||
export * from "./providers";
|
||||
export * from "./resources";
|
||||
export * from "./roles";
|
||||
export * from "./scans";
|
||||
export * from "./users";
|
||||
Reference in new issue
Block a user