Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Update schemas.ts

Kiran Kffaf2b50b98e
diff --git a/apps/web/lib/api/audit-logs/schemas.ts b/apps/web/lib/api/audit-logs/schemas.ts
index 68ac65adde..116324f82f 100644
--- a/apps/web/lib/api/audit-logs/schemas.ts
+++ b/apps/web/lib/api/audit-logs/schemas.ts
@@ -23,23 +23,6 @@ export const auditLogSchemaTB = z.object({
metadata: z.string().nullable(),
});
-// Schema that represents the audit log in the CSV file
-export const auditLogSchema = z.object({
- id: z.string(),
- timestamp: z.string(),
- workspaceId: z.string(),
- programId: z.string(),
- action: z.string(),
- actorId: z.string(),
- actorType: z.string(),
- actorName: z.string(),
- description: z.string(),
- targets: z.array(z.record(z.string(), z.any())).nullable(),
- ipAddress: z.string().nullable(),
- userAgent: z.string().nullable(),
- metadata: z.record(z.string(), z.any()).nullable(),
-});
-
const actionSchema = z.enum([
// Program
"program.created",