@vfarcic/dot-ai
Version:
AI-powered development productivity platform that enhances software development workflows through intelligent automation and AI-driven assistance
128 lines • 4.47 kB
TypeScript
/**
* User Management Endpoint Schemas (PRD #380 Task 2.5)
*
* Schemas for the /api/v1/users endpoints.
*/
import { z } from 'zod';
export declare const UserCreateRequestSchema: z.ZodObject<{
email: z.ZodString;
password: z.ZodString;
}, z.core.$strip>;
export type UserCreateRequest = z.infer<typeof UserCreateRequestSchema>;
export declare const UserEmailParamsSchema: z.ZodObject<{
email: z.ZodString;
}, z.core.$strip>;
export declare const UserEntrySchema: z.ZodObject<{
email: z.ZodString;
}, z.core.$strip>;
export declare const UserCreateDataSchema: z.ZodObject<{
email: z.ZodString;
message: z.ZodString;
}, z.core.$strip>;
export type UserCreateData = z.infer<typeof UserCreateDataSchema>;
export declare const UserCreateResponseSchema: z.ZodObject<{
success: z.ZodLiteral<true>;
data: z.ZodObject<{
email: z.ZodString;
message: z.ZodString;
}, z.core.$strip>;
meta: z.ZodOptional<z.ZodObject<{
timestamp: z.ZodString;
requestId: z.ZodOptional<z.ZodString>;
version: z.ZodString;
}, z.core.$strip>>;
}, z.core.$strip>;
export type UserCreateResponse = z.infer<typeof UserCreateResponseSchema>;
export declare const UserListDataSchema: z.ZodObject<{
users: z.ZodArray<z.ZodObject<{
email: z.ZodString;
}, z.core.$strip>>;
total: z.ZodNumber;
}, z.core.$strip>;
export type UserListData = z.infer<typeof UserListDataSchema>;
export declare const UserListResponseSchema: z.ZodObject<{
success: z.ZodLiteral<true>;
data: z.ZodObject<{
users: z.ZodArray<z.ZodObject<{
email: z.ZodString;
}, z.core.$strip>>;
total: z.ZodNumber;
}, z.core.$strip>;
meta: z.ZodOptional<z.ZodObject<{
timestamp: z.ZodString;
requestId: z.ZodOptional<z.ZodString>;
version: z.ZodString;
}, z.core.$strip>>;
}, z.core.$strip>;
export type UserListResponse = z.infer<typeof UserListResponseSchema>;
export declare const UserDeleteDataSchema: z.ZodObject<{
email: z.ZodString;
message: z.ZodString;
}, z.core.$strip>;
export type UserDeleteData = z.infer<typeof UserDeleteDataSchema>;
export declare const UserDeleteResponseSchema: z.ZodObject<{
success: z.ZodLiteral<true>;
data: z.ZodObject<{
email: z.ZodString;
message: z.ZodString;
}, z.core.$strip>;
meta: z.ZodOptional<z.ZodObject<{
timestamp: z.ZodString;
requestId: z.ZodOptional<z.ZodString>;
version: z.ZodString;
}, z.core.$strip>>;
}, z.core.$strip>;
export type UserDeleteResponse = z.infer<typeof UserDeleteResponseSchema>;
export declare const UserConflictErrorSchema: z.ZodObject<{
success: z.ZodLiteral<false>;
meta: z.ZodOptional<z.ZodObject<{
timestamp: z.ZodString;
requestId: z.ZodOptional<z.ZodString>;
version: z.ZodString;
}, z.core.$strip>>;
error: z.ZodObject<{
message: z.ZodString;
details: z.ZodOptional<z.ZodAny>;
code: z.ZodLiteral<"USER_CONFLICT">;
}, z.core.$strip>;
}, z.core.$strip>;
export declare const UserNotFoundErrorSchema: z.ZodObject<{
success: z.ZodLiteral<false>;
meta: z.ZodOptional<z.ZodObject<{
timestamp: z.ZodString;
requestId: z.ZodOptional<z.ZodString>;
version: z.ZodString;
}, z.core.$strip>>;
error: z.ZodObject<{
message: z.ZodString;
details: z.ZodOptional<z.ZodAny>;
code: z.ZodLiteral<"USER_NOT_FOUND">;
}, z.core.$strip>;
}, z.core.$strip>;
export declare const UserBadRequestErrorSchema: z.ZodObject<{
success: z.ZodLiteral<false>;
meta: z.ZodOptional<z.ZodObject<{
timestamp: z.ZodString;
requestId: z.ZodOptional<z.ZodString>;
version: z.ZodString;
}, z.core.$strip>>;
error: z.ZodObject<{
message: z.ZodString;
details: z.ZodOptional<z.ZodAny>;
code: z.ZodLiteral<"INVALID_REQUEST">;
}, z.core.$strip>;
}, z.core.$strip>;
export declare const UserManagementErrorSchema: z.ZodObject<{
success: z.ZodLiteral<false>;
meta: z.ZodOptional<z.ZodObject<{
timestamp: z.ZodString;
requestId: z.ZodOptional<z.ZodString>;
version: z.ZodString;
}, z.core.$strip>>;
error: z.ZodObject<{
message: z.ZodString;
details: z.ZodOptional<z.ZodAny>;
code: z.ZodLiteral<"USER_MANAGEMENT_ERROR">;
}, z.core.$strip>;
}, z.core.$strip>;
//# sourceMappingURL=users.d.ts.map