22 lines
659 B
TypeScript
22 lines
659 B
TypeScript
import { z } from "zod/v4";
|
|
import { ApiEntityBillingControlsParamsSchema } from "../billingControls/entityBillingControls.js";
|
|
|
|
export const EntityDataSchema = z
|
|
.object({
|
|
feature_id: z.string().meta({
|
|
description: "The feature ID that this entity is associated with",
|
|
}),
|
|
name: z.string().optional().meta({
|
|
description: "Name of the entity",
|
|
}),
|
|
billing_controls: ApiEntityBillingControlsParamsSchema.optional().meta({
|
|
description: "Billing controls for the entity.",
|
|
}),
|
|
})
|
|
.meta({
|
|
title: "EntityData",
|
|
description: "Data for creating or identifying an entity.",
|
|
});
|
|
|
|
export type EntityData = z.infer<typeof EntityDataSchema>;
|