import z from 'zod'; export declare const zRoleTypes: z.ZodEnum<["Owner", "Member"]>; export declare const role: z.ZodObject<{ _id: z.ZodString; organizationId: z.ZodString; userId: z.ZodNullable; userEmail: z.ZodNullable; type: z.ZodEnum<["Owner", "Member"]>; acceptedAt: z.ZodNullable; meta: z.ZodObject<{ createdAt: z.ZodOptional; createdBy: z.ZodOptional; lastUpdatedAt: z.ZodOptional; lastUpdatedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }>; }, "strip", z.ZodTypeAny, { type: "Owner" | "Member"; userId: string | null; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; userEmail: string | null; acceptedAt: number | null; }, { type: "Owner" | "Member"; userId: string | null; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; userEmail: string | null; acceptedAt: number | null; }>; export type Role = z.infer; export type RoleTypes = z.infer; export interface RoleService { create(request: CreateRoleRequest): Promise; delete(request: DeleteRoleRequest): Promise; accept(request: AcceptRoleRequest): Promise; assign(request: AssignRolesRequest): Promise; get(request: GetRoleRequest): Promise; list(request: ListRolesRequest): Promise; superAssignOwner(request: SuperAssignOwnerRoleRequest): Promise; } /** ****************************************************************************** * Create Role ******************************************************************************* */ export declare const createRoleParams: z.ZodObject<{ userId: z.ZodOptional>; userEmail: z.ZodOptional>; type: z.ZodEnum<["Owner", "Member"]>; }, "strip", z.ZodTypeAny, { type: "Owner" | "Member"; userId?: string | null | undefined; userEmail?: string | null | undefined; }, { type: "Owner" | "Member"; userId?: string | null | undefined; userEmail?: string | null | undefined; }>; export declare const createRoleRequest: z.ZodObject<{ auth: z.ZodObject<{ email: z.ZodOptional; userId: z.ZodOptional; organizationId: z.ZodOptional; token: z.ZodOptional; }, "strip", z.ZodTypeAny, { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }, { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }>; params: z.ZodObject<{ userId: z.ZodOptional>; userEmail: z.ZodOptional>; type: z.ZodEnum<["Owner", "Member"]>; }, "strip", z.ZodTypeAny, { type: "Owner" | "Member"; userId?: string | null | undefined; userEmail?: string | null | undefined; }, { type: "Owner" | "Member"; userId?: string | null | undefined; userEmail?: string | null | undefined; }>; }, "strip", z.ZodTypeAny, { params: { type: "Owner" | "Member"; userId?: string | null | undefined; userEmail?: string | null | undefined; }; auth: { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }; }, { params: { type: "Owner" | "Member"; userId?: string | null | undefined; userEmail?: string | null | undefined; }; auth: { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }; }>; export declare const createRoleResponse: z.ZodObject<{ status: z.ZodEnum<[string, ...string[]]>; error: z.ZodOptional>; }, "strip", z.ZodTypeAny, { message: string; fields?: Record | undefined; }, { message: string; fields?: Record | undefined; }>>; role: z.ZodOptional; userEmail: z.ZodNullable; type: z.ZodEnum<["Owner", "Member"]>; acceptedAt: z.ZodNullable; meta: z.ZodObject<{ createdAt: z.ZodOptional; createdBy: z.ZodOptional; lastUpdatedAt: z.ZodOptional; lastUpdatedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }>; }, "strip", z.ZodTypeAny, { type: "Owner" | "Member"; userId: string | null; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; userEmail: string | null; acceptedAt: number | null; }, { type: "Owner" | "Member"; userId: string | null; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; userEmail: string | null; acceptedAt: number | null; }>>; user: z.ZodOptional; }, "strip", z.ZodTypeAny, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; role?: { type: "Owner" | "Member"; userId: string | null; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; userEmail: string | null; acceptedAt: number | null; } | undefined; user?: any; }, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; role?: { type: "Owner" | "Member"; userId: string | null; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; userEmail: string | null; acceptedAt: number | null; } | undefined; user?: any; }>; export type CreateRoleParams = z.infer; export type CreateRoleRequest = z.infer; export type CreateRoleResponse = z.infer; /** ****************************************************************************** * Delete Role ******************************************************************************* */ export declare const deleteRoleParams: z.ZodObject<{ _id: z.ZodString; }, "strip", z.ZodTypeAny, { _id: string; }, { _id: string; }>; export declare const deleteRoleRequest: z.ZodObject<{ auth: z.ZodObject<{ email: z.ZodOptional; userId: z.ZodOptional; organizationId: z.ZodOptional; token: z.ZodOptional; }, "strip", z.ZodTypeAny, { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }, { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }>; params: z.ZodObject<{ _id: z.ZodString; }, "strip", z.ZodTypeAny, { _id: string; }, { _id: string; }>; }, "strip", z.ZodTypeAny, { params: { _id: string; }; auth: { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }; }, { params: { _id: string; }; auth: { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }; }>; export declare const deleteRoleResponse: z.ZodObject<{ status: z.ZodEnum<[string, ...string[]]>; error: z.ZodOptional>; }, "strip", z.ZodTypeAny, { message: string; fields?: Record | undefined; }, { message: string; fields?: Record | undefined; }>>; _id: z.ZodOptional; success: z.ZodOptional; }, "strip", z.ZodTypeAny, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; _id?: string | undefined; success?: boolean | undefined; }, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; _id?: string | undefined; success?: boolean | undefined; }>; export type DeleteRoleParams = z.infer; export type DeleteRoleRequest = z.infer; export type DeleteRoleResponse = z.infer; /** ****************************************************************************** * Accept Role ******************************************************************************* */ export declare const acceptRoleParams: z.ZodObject<{ _id: z.ZodString; accept: z.ZodBoolean; }, "strip", z.ZodTypeAny, { _id: string; accept: boolean; }, { _id: string; accept: boolean; }>; export declare const acceptRoleRequest: z.ZodObject<{ auth: z.ZodObject<{ email: z.ZodOptional; userId: z.ZodOptional; organizationId: z.ZodOptional; token: z.ZodOptional; }, "strip", z.ZodTypeAny, { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }, { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }>; params: z.ZodObject<{ _id: z.ZodString; accept: z.ZodBoolean; }, "strip", z.ZodTypeAny, { _id: string; accept: boolean; }, { _id: string; accept: boolean; }>; }, "strip", z.ZodTypeAny, { params: { _id: string; accept: boolean; }; auth: { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }; }, { params: { _id: string; accept: boolean; }; auth: { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }; }>; export declare const acceptRoleResponse: z.ZodObject<{ status: z.ZodEnum<[string, ...string[]]>; error: z.ZodOptional>; }, "strip", z.ZodTypeAny, { message: string; fields?: Record | undefined; }, { message: string; fields?: Record | undefined; }>>; role: z.ZodOptional; userEmail: z.ZodNullable; type: z.ZodEnum<["Owner", "Member"]>; acceptedAt: z.ZodNullable; meta: z.ZodObject<{ createdAt: z.ZodOptional; createdBy: z.ZodOptional; lastUpdatedAt: z.ZodOptional; lastUpdatedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }>; }, "strip", z.ZodTypeAny, { type: "Owner" | "Member"; userId: string | null; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; userEmail: string | null; acceptedAt: number | null; }, { type: "Owner" | "Member"; userId: string | null; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; userEmail: string | null; acceptedAt: number | null; }>>>; }, "strip", z.ZodTypeAny, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; role?: { type: "Owner" | "Member"; userId: string | null; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; userEmail: string | null; acceptedAt: number | null; } | null | undefined; }, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; role?: { type: "Owner" | "Member"; userId: string | null; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; userEmail: string | null; acceptedAt: number | null; } | null | undefined; }>; export type AcceptRoleParams = z.infer; export type AcceptRoleRequest = z.infer; export type AcceptRoleResponse = z.infer; /** ****************************************************************************** * Assign Roles ******************************************************************************* */ export declare const assignRolesParams: z.ZodObject<{ userEmail: z.ZodString; userId: z.ZodString; }, "strip", z.ZodTypeAny, { userId: string; userEmail: string; }, { userId: string; userEmail: string; }>; export declare const assignRolesRequest: z.ZodObject<{ params: z.ZodObject<{ userEmail: z.ZodString; userId: z.ZodString; }, "strip", z.ZodTypeAny, { userId: string; userEmail: string; }, { userId: string; userEmail: string; }>; }, "strip", z.ZodTypeAny, { params: { userId: string; userEmail: string; }; }, { params: { userId: string; userEmail: string; }; }>; export declare const assignRolesResponse: z.ZodObject<{ status: z.ZodEnum<[string, ...string[]]>; error: z.ZodOptional>; }, "strip", z.ZodTypeAny, { message: string; fields?: Record | undefined; }, { message: string; fields?: Record | undefined; }>>; roles: z.ZodOptional; userEmail: z.ZodNullable; type: z.ZodEnum<["Owner", "Member"]>; acceptedAt: z.ZodNullable; meta: z.ZodObject<{ createdAt: z.ZodOptional; createdBy: z.ZodOptional; lastUpdatedAt: z.ZodOptional; lastUpdatedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }>; }, "strip", z.ZodTypeAny, { type: "Owner" | "Member"; userId: string | null; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; userEmail: string | null; acceptedAt: number | null; }, { type: "Owner" | "Member"; userId: string | null; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; userEmail: string | null; acceptedAt: number | null; }>, "many">>; }, "strip", z.ZodTypeAny, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; roles?: { type: "Owner" | "Member"; userId: string | null; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; userEmail: string | null; acceptedAt: number | null; }[] | undefined; }, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; roles?: { type: "Owner" | "Member"; userId: string | null; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; userEmail: string | null; acceptedAt: number | null; }[] | undefined; }>; export type AssignRolesParams = z.infer; export type AssignRolesRequest = z.infer; export type AssignRolesResponse = z.infer; /** ****************************************************************************** * Get Role ******************************************************************************* */ export declare const getRoleParams: z.ZodObject<{ roleId: z.ZodString; }, "strip", z.ZodTypeAny, { roleId: string; }, { roleId: string; }>; export declare const getRoleRequest: z.ZodObject<{ params: z.ZodObject<{ roleId: z.ZodString; }, "strip", z.ZodTypeAny, { roleId: string; }, { roleId: string; }>; }, "strip", z.ZodTypeAny, { params: { roleId: string; }; }, { params: { roleId: string; }; }>; export declare const getRoleResponse: z.ZodObject<{ status: z.ZodEnum<[string, ...string[]]>; error: z.ZodOptional>; }, "strip", z.ZodTypeAny, { message: string; fields?: Record | undefined; }, { message: string; fields?: Record | undefined; }>>; role: z.ZodOptional; userEmail: z.ZodNullable; type: z.ZodEnum<["Owner", "Member"]>; acceptedAt: z.ZodNullable; meta: z.ZodObject<{ createdAt: z.ZodOptional; createdBy: z.ZodOptional; lastUpdatedAt: z.ZodOptional; lastUpdatedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }>; }, "strip", z.ZodTypeAny, { type: "Owner" | "Member"; userId: string | null; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; userEmail: string | null; acceptedAt: number | null; }, { type: "Owner" | "Member"; userId: string | null; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; userEmail: string | null; acceptedAt: number | null; }>>>; }, "strip", z.ZodTypeAny, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; role?: { type: "Owner" | "Member"; userId: string | null; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; userEmail: string | null; acceptedAt: number | null; } | null | undefined; }, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; role?: { type: "Owner" | "Member"; userId: string | null; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; userEmail: string | null; acceptedAt: number | null; } | null | undefined; }>; export type GetRoleParams = z.infer; export type GetRoleRequest = z.infer; export type GetRoleResponse = z.infer; /** ****************************************************************************** * List Roles ******************************************************************************* */ export declare const listRolesParams: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>; export declare const listRolesRequest: z.ZodObject<{ auth: z.ZodObject<{ email: z.ZodOptional; userId: z.ZodOptional; organizationId: z.ZodOptional; token: z.ZodOptional; }, "strip", z.ZodTypeAny, { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }, { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }>; params: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>; }, "strip", z.ZodTypeAny, { params: {}; auth: { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }; }, { params: {}; auth: { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }; }>; export declare const listRolesResponse: z.ZodObject<{ status: z.ZodEnum<[string, ...string[]]>; error: z.ZodOptional>; }, "strip", z.ZodTypeAny, { message: string; fields?: Record | undefined; }, { message: string; fields?: Record | undefined; }>>; user: z.ZodOptional; userEmail: z.ZodNullable; type: z.ZodEnum<["Owner", "Member"]>; acceptedAt: z.ZodNullable; meta: z.ZodObject<{ createdAt: z.ZodOptional; createdBy: z.ZodOptional; lastUpdatedAt: z.ZodOptional; lastUpdatedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }>; }, "strip", z.ZodTypeAny, { type: "Owner" | "Member"; userId: string | null; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; userEmail: string | null; acceptedAt: number | null; }, { type: "Owner" | "Member"; userId: string | null; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; userEmail: string | null; acceptedAt: number | null; }>, "many">>; organization: z.ZodOptional; userEmail: z.ZodNullable; type: z.ZodEnum<["Owner", "Member"]>; acceptedAt: z.ZodNullable; meta: z.ZodObject<{ createdAt: z.ZodOptional; createdBy: z.ZodOptional; lastUpdatedAt: z.ZodOptional; lastUpdatedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }>; }, "strip", z.ZodTypeAny, { type: "Owner" | "Member"; userId: string | null; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; userEmail: string | null; acceptedAt: number | null; }, { type: "Owner" | "Member"; userId: string | null; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; userEmail: string | null; acceptedAt: number | null; }>, "many">>; }, "strip", z.ZodTypeAny, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; user?: { type: "Owner" | "Member"; userId: string | null; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; userEmail: string | null; acceptedAt: number | null; }[] | undefined; organization?: { type: "Owner" | "Member"; userId: string | null; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; userEmail: string | null; acceptedAt: number | null; }[] | undefined; }, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; user?: { type: "Owner" | "Member"; userId: string | null; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; userEmail: string | null; acceptedAt: number | null; }[] | undefined; organization?: { type: "Owner" | "Member"; userId: string | null; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; userEmail: string | null; acceptedAt: number | null; }[] | undefined; }>; export type ListRolesParams = z.infer; export type ListRolesRequest = z.infer; export type ListRolesResponse = z.infer; /** ****************************************************************************** * Super Assign Owner Role ******************************************************************************* */ export declare const superAssignOwnerRoleParams: z.ZodObject<{ userId: z.ZodString; }, "strip", z.ZodTypeAny, { userId: string; }, { userId: string; }>; export declare const superAssignOwnerRoleRequest: z.ZodObject<{ auth: z.ZodObject<{ email: z.ZodOptional; userId: z.ZodOptional; organizationId: z.ZodOptional; token: z.ZodOptional; }, "strip", z.ZodTypeAny, { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }, { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }>; params: z.ZodObject<{ userId: z.ZodString; }, "strip", z.ZodTypeAny, { userId: string; }, { userId: string; }>; }, "strip", z.ZodTypeAny, { params: { userId: string; }; auth: { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }; }, { params: { userId: string; }; auth: { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }; }>; export declare const superAssignOwnerRoleResponse: z.ZodObject<{ status: z.ZodEnum<[string, ...string[]]>; error: z.ZodOptional>; }, "strip", z.ZodTypeAny, { message: string; fields?: Record | undefined; }, { message: string; fields?: Record | undefined; }>>; role: z.ZodOptional; userEmail: z.ZodNullable; type: z.ZodEnum<["Owner", "Member"]>; acceptedAt: z.ZodNullable; meta: z.ZodObject<{ createdAt: z.ZodOptional; createdBy: z.ZodOptional; lastUpdatedAt: z.ZodOptional; lastUpdatedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }>; }, "strip", z.ZodTypeAny, { type: "Owner" | "Member"; userId: string | null; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; userEmail: string | null; acceptedAt: number | null; }, { type: "Owner" | "Member"; userId: string | null; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; userEmail: string | null; acceptedAt: number | null; }>>; }, "strip", z.ZodTypeAny, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; role?: { type: "Owner" | "Member"; userId: string | null; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; userEmail: string | null; acceptedAt: number | null; } | undefined; }, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; role?: { type: "Owner" | "Member"; userId: string | null; organizationId: string; _id: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; userEmail: string | null; acceptedAt: number | null; } | undefined; }>; export type SuperAssignOwnerRoleParams = z.infer; export type SuperAssignOwnerRoleRequest = z.infer; export type SuperAssignOwnerRoleResponse = z.infer;