Edit: /tmp/tsx-0/17887-eee404d0b2f1a4bcd779f9517ae2af46261669ce (6966B)
{"code":"__filename=\"/opt/canhelp/node_modules/better-auth/dist/plugins/organization/error-codes.mjs\";(()=>{\nvar __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __hasOwnProp=Object.prototype.hasOwnProperty;var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:true})};var __copyProps=(to,from,except,desc)=>{if(from&&typeof from===\"object\"||typeof from===\"function\"){for(let key of __getOwnPropNames(from))if(!__hasOwnProp.call(to,key)&&key!==except)__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable})}return to};var __toCommonJS=mod=>__copyProps(__defProp({},\"__esModule\",{value:true}),mod);var error_codes_exports={};__export(error_codes_exports,{ORGANIZATION_ERROR_CODES:()=>ORGANIZATION_ERROR_CODES});module.exports=__toCommonJS(error_codes_exports);var import_error_codes=require(\"@better-auth/core/utils/error-codes\");const ORGANIZATION_ERROR_CODES=(0,import_error_codes.defineErrorCodes)({YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_ORGANIZATION:\"You are not allowed to create a new organization\",YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_ORGANIZATIONS:\"You have reached the maximum number of organizations\",ORGANIZATION_ALREADY_EXISTS:\"Organization already exists\",ORGANIZATION_SLUG_ALREADY_TAKEN:\"Organization slug already taken\",ORGANIZATION_NOT_FOUND:\"Organization not found\",USER_IS_NOT_A_MEMBER_OF_THE_ORGANIZATION:\"User is not a member of the organization\",YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_ORGANIZATION:\"You are not allowed to update this organization\",YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_ORGANIZATION:\"You are not allowed to delete this organization\",NO_ACTIVE_ORGANIZATION:\"No active organization\",USER_IS_ALREADY_A_MEMBER_OF_THIS_ORGANIZATION:\"User is already a member of this organization\",MEMBER_NOT_FOUND:\"Member not found\",ROLE_NOT_FOUND:\"Role not found\",YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_TEAM:\"You are not allowed to create a new team\",TEAM_ALREADY_EXISTS:\"Team already exists\",TEAM_NOT_FOUND:\"Team not found\",YOU_CANNOT_LEAVE_THE_ORGANIZATION_AS_THE_ONLY_OWNER:\"You cannot leave the organization as the only owner\",YOU_CANNOT_LEAVE_THE_ORGANIZATION_WITHOUT_AN_OWNER:\"You cannot leave the organization without an owner\",YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_MEMBER:\"You are not allowed to delete this member\",YOU_ARE_NOT_ALLOWED_TO_INVITE_USERS_TO_THIS_ORGANIZATION:\"You are not allowed to invite users to this organization\",USER_IS_ALREADY_INVITED_TO_THIS_ORGANIZATION:\"User is already invited to this organization\",INVITATION_NOT_FOUND:\"Invitation not found\",YOU_ARE_NOT_THE_RECIPIENT_OF_THE_INVITATION:\"You are not the recipient of the invitation\",EMAIL_VERIFICATION_REQUIRED_BEFORE_ACCEPTING_OR_REJECTING_INVITATION:\"Email verification required before accepting or rejecting invitation\",YOU_ARE_NOT_ALLOWED_TO_CANCEL_THIS_INVITATION:\"You are not allowed to cancel this invitation\",INVITER_IS_NO_LONGER_A_MEMBER_OF_THE_ORGANIZATION:\"Inviter is no longer a member of the organization\",YOU_ARE_NOT_ALLOWED_TO_INVITE_USER_WITH_THIS_ROLE:\"You are not allowed to invite a user with this role\",FAILED_TO_RETRIEVE_INVITATION:\"Failed to retrieve invitation\",YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_TEAMS:\"You have reached the maximum number of teams\",UNABLE_TO_REMOVE_LAST_TEAM:\"Unable to remove last team\",YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_MEMBER:\"You are not allowed to update this member\",ORGANIZATION_MEMBERSHIP_LIMIT_REACHED:\"Organization membership limit reached\",YOU_ARE_NOT_ALLOWED_TO_CREATE_TEAMS_IN_THIS_ORGANIZATION:\"You are not allowed to create teams in this organization\",YOU_ARE_NOT_ALLOWED_TO_DELETE_TEAMS_IN_THIS_ORGANIZATION:\"You are not allowed to delete teams in this organization\",YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_TEAM:\"You are not allowed to update this team\",YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_TEAM:\"You are not allowed to delete this team\",INVITATION_LIMIT_REACHED:\"Invitation limit reached\",TEAM_MEMBER_LIMIT_REACHED:\"Team member limit reached\",USER_IS_NOT_A_MEMBER_OF_THE_TEAM:\"User is not a member of the team\",YOU_CAN_NOT_ACCESS_THE_MEMBERS_OF_THIS_TEAM:\"You are not allowed to list the members of this team\",YOU_DO_NOT_HAVE_AN_ACTIVE_TEAM:\"You do not have an active team\",YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_TEAM_MEMBER:\"You are not allowed to create a new member\",YOU_ARE_NOT_ALLOWED_TO_REMOVE_A_TEAM_MEMBER:\"You are not allowed to remove a team member\",YOU_ARE_NOT_ALLOWED_TO_ACCESS_THIS_ORGANIZATION:\"You are not allowed to access this organization as an owner\",YOU_ARE_NOT_A_MEMBER_OF_THIS_ORGANIZATION:\"You are not a member of this organization\",MISSING_AC_INSTANCE:\"Dynamic Access Control requires a pre-defined ac instance on the server auth plugin. Read server logs for more information\",YOU_MUST_BE_IN_AN_ORGANIZATION_TO_CREATE_A_ROLE:\"You must be in an organization to create a role\",YOU_ARE_NOT_ALLOWED_TO_CREATE_A_ROLE:\"You are not allowed to create a role\",YOU_ARE_NOT_ALLOWED_TO_UPDATE_A_ROLE:\"You are not allowed to update a role\",YOU_ARE_NOT_ALLOWED_TO_DELETE_A_ROLE:\"You are not allowed to delete a role\",YOU_ARE_NOT_ALLOWED_TO_READ_A_ROLE:\"You are not allowed to read a role\",YOU_ARE_NOT_ALLOWED_TO_LIST_A_ROLE:\"You are not allowed to list a role\",YOU_ARE_NOT_ALLOWED_TO_GET_A_ROLE:\"You are not allowed to get a role\",TOO_MANY_ROLES:\"This organization has too many roles\",INVALID_RESOURCE:\"The provided permission includes an invalid resource\",ROLE_NAME_IS_ALREADY_TAKEN:\"That role name is already taken\",CANNOT_DELETE_A_PRE_DEFINED_ROLE:\"Cannot delete a pre-defined role\",ROLE_IS_ASSIGNED_TO_MEMBERS:\"Cannot delete a role that is assigned to members. Please reassign the members to a different role first\"});0&&(module.exports={ORGANIZATION_ERROR_CODES});\n})()\n","warnings":[],"map":{"version":3,"mappings":";wpBAAA,yLAAiC,+CAGjC,MAAM,4BAA2B,qCAAiB,CACjD,iDAAkD,mDAClD,qDAAsD,uDACtD,4BAA6B,8BAC7B,gCAAiC,kCACjC,uBAAwB,yBACxB,yCAA0C,2CAC1C,gDAAiD,kDACjD,gDAAiD,kDACjD,uBAAwB,yBACxB,8CAA+C,gDAC/C,iBAAkB,mBAClB,eAAgB,iBAChB,yCAA0C,2CAC1C,oBAAqB,sBACrB,eAAgB,iBAChB,oDAAqD,sDACrD,mDAAoD,qDACpD,0CAA2C,4CAC3C,yDAA0D,2DAC1D,6CAA8C,+CAC9C,qBAAsB,uBACtB,4CAA6C,8CAC7C,qEAAsE,uEACtE,8CAA+C,gDAC/C,kDAAmD,oDACnD,kDAAmD,sDACnD,8BAA+B,gCAC/B,6CAA8C,+CAC9C,2BAA4B,6BAC5B,0CAA2C,4CAC3C,sCAAuC,wCACvC,yDAA0D,2DAC1D,yDAA0D,2DAC1D,wCAAyC,0CACzC,wCAAyC,0CACzC,yBAA0B,2BAC1B,0BAA2B,4BAC3B,iCAAkC,mCAClC,4CAA6C,uDAC7C,+BAAgC,iCAChC,gDAAiD,6CACjD,4CAA6C,8CAC7C,gDAAiD,8DACjD,0CAA2C,4CAC3C,oBAAqB,6HACrB,gDAAiD,kDACjD,qCAAsC,uCACtC,qCAAsC,uCACtC,qCAAsC,uCACtC,mCAAoC,qCACpC,mCAAoC,qCACpC,kCAAmC,oCACnC,eAAgB,uCAChB,iBAAkB,uDAClB,2BAA4B,kCAC5B,iCAAkC,mCAClC,4BAA6B,yGAC9B,CAAC","names":[],"ignoreList":[],"sources":["/opt/canhelp/node_modules/better-auth/dist/plugins/organization/error-codes.mjs"],"sourcesContent":[null]}}