// Copyright 2026 Synnax Labs, Inc. // // Use of this software is governed by the Business Source License included in the file // licenses/BSL.txt. // // As of the Change Date specified in that file, in accordance with the Business Source // License, use of this software will be governed by the Apache License, Version 2.0, // included in the file licenses/APL.txt. // Code generated by Oracle. DO NOT EDIT. import { z } from "zod"; import { color } from "@/color"; export const keyZ = z.uuid(); export type Key = z.infer; /** * Label is a tagging and categorization entity with a name and associated color. * Labels can be attached to resources like ranges for organization and * filtering. */ export const labelZ = z.object({ /** key is the unique identifier for this label. */ key: keyZ, /** name is a human-readable name for the label. */ name: z.string().min(1), /** color is the display color for visual identification of the label. */ color: color.colorZ, }); export interface Label extends z.infer {} export const newZ = labelZ.partial({ key: true }); export interface New extends z.input {}