Add barrel file to types

This commit is contained in:
Chandrapal Badshah committed 2025-05-14 14:42:50 +05:30
1 parent dbe74ae6e3
commit 0f9387f790
10 files changed
+18 -9

No files matched your search

+1 -1
View File
@@ -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 }) => {
+1 -1
View File
@@ -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 -1
View File
@@ -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 }) => {
+1 -1
View File
@@ -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 -1
View File
@@ -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 -1
View File
@@ -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 -1
View File
@@ -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 -1
View File
@@ -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 }) => {
+1 -1
View File
@@ -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 }) => {
+9
View File
@@ -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";