Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

1.1 KB
Raw Blame
// Code generated by automation script, DO NOT EDIT.
// Automated by pulling database and generating zod schema
// To update. Just run npm run generate:schema
// Written by akhilmhdh.

import { z } from "zod";

import { TImmutableDBKeys } from "./models";

export const ProjectUserMembershipRolesSchema = z.object({
  id: z.string().uuid(),
  role: z.string(),
  projectMembershipId: z.string().uuid(),
  customRoleId: z.string().uuid().nullable().optional(),
  isTemporary: z.boolean().default(false),
  temporaryMode: z.string().nullable().optional(),
  temporaryRange: z.string().nullable().optional(),
  temporaryAccessStartTime: z.date().nullable().optional(),
  temporaryAccessEndTime: z.date().nullable().optional(),
  createdAt: z.date(),
  updatedAt: z.date()
});

export type TProjectUserMembershipRoles = z.infer<typeof ProjectUserMembershipRolesSchema>;
export type TProjectUserMembershipRolesInsert = Omit<
  z.input<typeof ProjectUserMembershipRolesSchema>,
  TImmutableDBKeys
>;
export type TProjectUserMembershipRolesUpdate = Partial<
  Omit<z.input<typeof ProjectUserMembershipRolesSchema>, TImmutableDBKeys>
>;