import { ObjectSchema } from "./schema.js";

export const UseCaseType = {
  QUERY: "QUERY",
  COMMAND: "COMMAND",
} as const;
export type UseCaseType = (typeof UseCaseType)[keyof typeof UseCaseType];

export interface UseCase {
  name: string;
  type: UseCaseType;
  description: string;
  requiredPermissions: string[];
  optionalPermissions: string[];
  payloadSchema: ObjectSchema;
  responseSchema: ObjectSchema;
}
