/*
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
import * as z from "zod";
import { ClosedEnum } from "../types/enums.js";
import {
NullableIncidentRoleEntity,
NullableIncidentRoleEntity$zodSchema,
} from "./nullableincidentroleentity.js";
import {
NullableUserEntity,
NullableUserEntity$zodSchema,
} from "./nullableuserentity.js";
export const Status = {
Active: "active",
Inactive: "inactive",
} as const;
export type Status = ClosedEnum<typeof Status>;
export const Status$zodSchema = z.enum([
"active",
"inactive",
]);
/**
* Incidents_RoleAssignmentEntity model
*/
export type IncidentsRoleAssignmentEntity = {
id?: string | null | undefined;
status?: Status | null | undefined;
created_at?: string | null | undefined;
updated_at?: string | null | undefined;
incident_role?: NullableIncidentRoleEntity | null | undefined;
user?: NullableUserEntity | null | undefined;
};
export const IncidentsRoleAssignmentEntity$zodSchema: z.ZodType<
IncidentsRoleAssignmentEntity
> = z.object({
created_at: z.iso.datetime({ offset: true }).nullable().optional(),
id: z.string().nullable().optional(),
incident_role: NullableIncidentRoleEntity$zodSchema.nullable().optional(),
status: Status$zodSchema.nullable().optional(),
updated_at: z.iso.datetime({ offset: true }).nullable().optional(),
user: NullableUserEntity$zodSchema.nullable().optional(),
}).describe("Incidents_RoleAssignmentEntity model");