import { z } from "zod"; /** * Shared organization member representation for admin-facing operations. */ export declare const OrganizationMemberSchema: z.ZodObject<{ membershipId: z.ZodString; userId: z.ZodString; name: z.ZodNullable; email: z.ZodString; imageUrl: z.ZodNullable; role: z.ZodEnum<{ admin: "admin"; member: "member"; }>; createdAt: z.ZodString; }, z.core.$strip>; /** * A pending organization invitation. */ export declare const OrganizationInvitationSchema: z.ZodObject<{ id: z.ZodString; email: z.ZodString; role: z.ZodEnum<{ admin: "admin"; member: "member"; }>; status: z.ZodString; createdAt: z.ZodString; expiresAt: z.ZodString; }, z.core.$strip>; /** * A member selector: either an opaque user ID, or a URL-encoded email address. * The server resolves an email to its user ID; a user ID never contains "@", * so the two cases are unambiguous. */ export declare const MemberSelectorSchema: z.ZodString; /** * Input schema for listing organization members. */ export declare const ListMembersInputSchema: z.ZodObject<{ organizationId: z.ZodOptional; }, z.core.$strip>; /** * Output schema for listing organization members. */ export declare const ListMembersOutputSchema: z.ZodObject<{ members: z.ZodArray; email: z.ZodString; imageUrl: z.ZodNullable; role: z.ZodEnum<{ admin: "admin"; member: "member"; }>; createdAt: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>; /** * Input schema for updating one member's role. */ export declare const UpdateMemberRoleInputSchema: z.ZodObject<{ organizationId: z.ZodOptional; member: z.ZodString; role: z.ZodEnum<{ admin: "admin"; member: "member"; }>; }, z.core.$strip>; /** * Output schema for updating one member's role. */ export declare const UpdateMemberRoleOutputSchema: z.ZodObject<{ member: z.ZodObject<{ membershipId: z.ZodString; userId: z.ZodString; name: z.ZodNullable; email: z.ZodString; imageUrl: z.ZodNullable; role: z.ZodEnum<{ admin: "admin"; member: "member"; }>; createdAt: z.ZodString; }, z.core.$strip>; }, z.core.$strip>; /** * Input schema for removing one member. */ export declare const RemoveMemberInputSchema: z.ZodPipe; query: z.ZodObject<{ organizationId: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodTransform<{ member: string; organizationId?: string | undefined; }, { params: { member: string; }; query: { organizationId?: string | undefined; }; }>>; /** * Output schema for removing one member. */ export declare const RemoveMemberOutputSchema: z.ZodObject<{ removedUserId: z.ZodString; }, z.core.$strip>; export declare const listMembers: import("../orpc-contracts/index.js").OperationDefinition; }, z.core.$strip>, z.ZodObject<{ members: z.ZodArray; email: z.ZodString; imageUrl: z.ZodNullable; role: z.ZodEnum<{ admin: "admin"; member: "member"; }>; createdAt: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>, "api">; /** * Contract-first members.updateRole operation. */ export declare const updateMemberRole: import("../orpc-contracts/index.js").OperationDefinition; member: z.ZodString; role: z.ZodEnum<{ admin: "admin"; member: "member"; }>; }, z.core.$strip>, z.ZodObject<{ member: z.ZodObject<{ membershipId: z.ZodString; userId: z.ZodString; name: z.ZodNullable; email: z.ZodString; imageUrl: z.ZodNullable; role: z.ZodEnum<{ admin: "admin"; member: "member"; }>; createdAt: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, "api">; /** * Contract-first members.remove operation. */ export declare const removeMember: import("../orpc-contracts/index.js").OperationDefinition; query: z.ZodObject<{ organizationId: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodTransform<{ member: string; organizationId?: string | undefined; }, { params: { member: string; }; query: { organizationId?: string | undefined; }; }>>, z.ZodObject<{ removedUserId: z.ZodString; }, z.core.$strip>, "api">; /** * Input schema for inviting a member by email. */ export declare const InviteMemberInputSchema: z.ZodObject<{ organizationId: z.ZodOptional; email: z.ZodString; role: z.ZodDefault>>; }, z.core.$strip>; /** * Output schema for inviting a member. */ export declare const InviteMemberOutputSchema: z.ZodObject<{ invitation: z.ZodObject<{ id: z.ZodString; email: z.ZodString; role: z.ZodEnum<{ admin: "admin"; member: "member"; }>; status: z.ZodString; createdAt: z.ZodString; expiresAt: z.ZodString; }, z.core.$strip>; }, z.core.$strip>; /** * Input schema for listing pending invitations. */ export declare const ListInvitationsInputSchema: z.ZodObject<{ organizationId: z.ZodOptional; }, z.core.$strip>; /** * Output schema for listing pending invitations. */ export declare const ListInvitationsOutputSchema: z.ZodObject<{ invitations: z.ZodArray; status: z.ZodString; createdAt: z.ZodString; expiresAt: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>; /** * Input schema for revoking a pending invitation. */ export declare const RevokeInvitationInputSchema: z.ZodPipe; query: z.ZodObject<{ organizationId: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodTransform<{ invitationId: string; organizationId?: string | undefined; }, { params: { invitationId: string; }; query: { organizationId?: string | undefined; }; }>>; /** * Output schema for revoking a pending invitation. */ export declare const RevokeInvitationOutputSchema: z.ZodObject<{ revokedInvitationId: z.ZodString; }, z.core.$strip>; export declare const inviteMember: import("../orpc-contracts/index.js").OperationDefinition; email: z.ZodString; role: z.ZodDefault>>; }, z.core.$strip>, z.ZodObject<{ invitation: z.ZodObject<{ id: z.ZodString; email: z.ZodString; role: z.ZodEnum<{ admin: "admin"; member: "member"; }>; status: z.ZodString; createdAt: z.ZodString; expiresAt: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, "api">; export declare const listInvitations: import("../orpc-contracts/index.js").OperationDefinition; }, z.core.$strip>, z.ZodObject<{ invitations: z.ZodArray; status: z.ZodString; createdAt: z.ZodString; expiresAt: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>, "api">; export declare const revokeInvitation: import("../orpc-contracts/index.js").OperationDefinition; query: z.ZodObject<{ organizationId: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodTransform<{ invitationId: string; organizationId?: string | undefined; }, { params: { invitationId: string; }; query: { organizationId?: string | undefined; }; }>>, z.ZodObject<{ revokedInvitationId: z.ZodString; }, z.core.$strip>, "api">; /** * Members contract tree. */ export declare const membersContract: { readonly list: import("@orpc/contract").ContractProcedure; }, z.core.$strip>, z.ZodObject<{ members: z.ZodArray; email: z.ZodString; imageUrl: z.ZodNullable; role: z.ZodEnum<{ admin: "admin"; member: "member"; }>; createdAt: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>, Record, import("../orpc-contracts/index.js").OperationContractMetadata<"api">>; readonly updateRole: import("@orpc/contract").ContractProcedure; member: z.ZodString; role: z.ZodEnum<{ admin: "admin"; member: "member"; }>; }, z.core.$strip>, z.ZodObject<{ member: z.ZodObject<{ membershipId: z.ZodString; userId: z.ZodString; name: z.ZodNullable; email: z.ZodString; imageUrl: z.ZodNullable; role: z.ZodEnum<{ admin: "admin"; member: "member"; }>; createdAt: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, Record, import("../orpc-contracts/index.js").OperationContractMetadata<"api">>; readonly remove: import("@orpc/contract").ContractProcedure; query: z.ZodObject<{ organizationId: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodTransform<{ member: string; organizationId?: string | undefined; }, { params: { member: string; }; query: { organizationId?: string | undefined; }; }>>, z.ZodObject<{ removedUserId: z.ZodString; }, z.core.$strip>, Record, import("../orpc-contracts/index.js").OperationContractMetadata<"api">>; readonly invite: import("@orpc/contract").ContractProcedure; email: z.ZodString; role: z.ZodDefault>>; }, z.core.$strip>, z.ZodObject<{ invitation: z.ZodObject<{ id: z.ZodString; email: z.ZodString; role: z.ZodEnum<{ admin: "admin"; member: "member"; }>; status: z.ZodString; createdAt: z.ZodString; expiresAt: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, Record, import("../orpc-contracts/index.js").OperationContractMetadata<"api">>; readonly listInvitations: import("@orpc/contract").ContractProcedure; }, z.core.$strip>, z.ZodObject<{ invitations: z.ZodArray; status: z.ZodString; createdAt: z.ZodString; expiresAt: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>, Record, import("../orpc-contracts/index.js").OperationContractMetadata<"api">>; readonly revokeInvitation: import("@orpc/contract").ContractProcedure; query: z.ZodObject<{ organizationId: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodTransform<{ invitationId: string; organizationId?: string | undefined; }, { params: { invitationId: string; }; query: { organizationId?: string | undefined; }; }>>, z.ZodObject<{ revokedInvitationId: z.ZodString; }, z.core.$strip>, Record, import("../orpc-contracts/index.js").OperationContractMetadata<"api">>; }; export type OrganizationMember = z.infer; export type OrganizationInvitation = z.infer; export type ListMembersInput = z.infer; export type ListMembersOutput = z.infer; export type UpdateMemberRoleInput = z.infer; export type UpdateMemberRoleOutput = z.infer; export type RemoveMemberInput = z.infer; export type RemoveMemberOutput = z.infer; export type InviteMemberInput = z.infer; export type InviteMemberOutput = z.infer; export type ListInvitationsInput = z.infer; export type ListInvitationsOutput = z.infer; export type RevokeInvitationInput = z.infer; export type RevokeInvitationOutput = z.infer;