/**
* Zod schemas for Domain endpoints
*/
import { z } from 'zod';
import { PaginationSchema, ResponseFormatSchema, SortDirectionSchema, IdSchema, NameFilterSchema, OrganizationIdFilterSchema } from './common.js';
/**
* List domains input schema
*/
export const ListDomainsSchema = z.object({
...PaginationSchema.shape,
response_format: ResponseFormatSchema,
organization_id: OrganizationIdFilterSchema,
name: NameFilterSchema,
sort: z.enum(['name', 'id', 'expires_on', 'updated_at', 'created_at'])
.default('name')
.describe('Field to sort by'),
sort_direction: SortDirectionSchema,
include: z.array(z.enum(['passwords']))
.optional()
.describe('Related resources to include')
}).strict();
export type ListDomainsInput = z.infer<typeof ListDomainsSchema>;
/**
* Get domain by ID schema
*/
export const GetDomainSchema = z.object({
id: IdSchema,
response_format: ResponseFormatSchema,
include: z.array(z.enum(['passwords']))
.optional()
.describe('Related resources to include')
}).strict();
export type GetDomainInput = z.infer<typeof GetDomainSchema>;