{"version":3,"file":"password-request.cjs","names":[],"sources":["../../../../src/rest/commands/auth/password-request.ts"],"sourcesContent":["import type { RestCommand } from '../../types.js';\n\n/**\n * Request a password reset email to be sent to the given user.\n *\n * @param email Email address of the user you're requesting a password reset for.\n * @param reset_url Provide a custom reset url which the link in the email will lead to. The reset token will be passed as a parameter.\n *\n * @returns Empty body.\n */\nexport const passwordRequest =\n\t<Schema>(email: string, reset_url?: string): RestCommand<void, Schema> =>\n\t() => ({\n\t\tpath: '/auth/password/request',\n\t\tmethod: 'POST',\n\t\tbody: JSON.stringify({ email, ...(reset_url ? { reset_url } : {}) }),\n\t});\n"],"mappings":"AAUA,MAAa,GACH,EAAe,SACjB,CACN,KAAM,yBACN,OAAQ,OACR,KAAM,KAAK,UAAU,CAAE,QAAO,GAAI,EAAY,CAAE,YAAW,CAAG,EAAE,CAAG,CAAC,CACpE"}