import { RpcAuthorNameParamSchema, RpcCidParamSchema, RpcFetchCidParamSchema, RpcCommentRepliesPageParamSchema, RpcEditCommunityParamSchema, RpcPublishChallengeAnswersParamSchema, RpcCommunityIdentifierParamSchema, RpcCommunityPageParamSchema, RpcUnsubscribeParamSchema, RpcResolveAuthorNameResultSchema, RpcFetchCidResultSchema, RpcSuccessResultSchema, RpcSubscriptionIdResultSchema, RpcExportCommunityParamSchema, RpcCancelExportParamSchema, RpcExportCommunityResultSchema, RpcExportschangeResultSchema, RpcExportCommunityModLogsParamSchema, RpcExportCommunityModLogsResultSchema } from "./schema.js";
// Param parsers — all use .loose() so newer clients can send extra fields
export const parseRpcCidParam = (params) => RpcCidParamSchema.loose().parse(params);
export const parseRpcFetchCidParam = (params) => RpcFetchCidParamSchema.loose().parse(params);
export const parseRpcCommunityIdentifierParam = (params) => RpcCommunityIdentifierParamSchema.loose().parse(params);
export const parseRpcAuthorNameParam = (params) => RpcAuthorNameParamSchema.loose().parse(params);
export const parseRpcCommunityPageParam = (params) => RpcCommunityPageParamSchema.loose().parse(params);
export const parseRpcCommentRepliesPageParam = (params) => RpcCommentRepliesPageParamSchema.loose().parse(params);
export const parseRpcEditCommunityParam = (params) => RpcEditCommunityParamSchema.loose().parse(params);
export const parseRpcPublishChallengeAnswersParam = (params) => RpcPublishChallengeAnswersParamSchema.loose().parse(params);
export const parseRpcUnsubscribeParam = (params) => RpcUnsubscribeParamSchema.loose().parse(params);
// Result parsers — all use .loose() so newer servers can send extra fields
export const parseRpcResolveAuthorNameResult = (result) => RpcResolveAuthorNameResultSchema.loose().parse(result);
export const parseRpcFetchCidResult = (result) => RpcFetchCidResultSchema.loose().parse(result);
export const parseRpcSuccessResult = (result) => RpcSuccessResultSchema.loose().parse(result);
export const parseRpcSubscriptionIdResult = (result) => RpcSubscriptionIdResultSchema.loose().parse(result);
// community.export() — wire param/result parsers
export const parseRpcExportCommunityParam = (params) => RpcExportCommunityParamSchema.loose().parse(params);
export const parseRpcCancelExportParam = (params) => RpcCancelExportParamSchema.loose().parse(params);
export const parseRpcExportCommunityResult = (result) => RpcExportCommunityResultSchema.loose().parse(result);
export const parseRpcExportschangeResult = (result) => RpcExportschangeResultSchema.loose().parse(result);
// community.exportCommunityModLogs() — wire param/result parsers
export const parseRpcExportCommunityModLogsParam = (params) => RpcExportCommunityModLogsParamSchema.loose().parse(params);
export const parseRpcExportCommunityModLogsResult = (result) => RpcExportCommunityModLogsResultSchema.loose().parse(result);
//# sourceMappingURL=rpc-schema-util.js.map