{"version":3,"file":"devPortalConfigs.cjs","sources":["../../../../src/auth/devPortalConfigs.ts"],"sourcesContent":["import { authRequest } from \"./utils\";\n\ninterface DevPortalConfigsResponse {\n  openPay: {\n    priceIds: {\n      Monthly: Record<string, string>;\n      Yearly: Record<string, string>;\n    };\n  };\n}\n\nexport async function fetchOpenPayPriceIds(\n  jwt: string,\n  userAgent?: string\n): Promise<{\n  Monthly: Record<string, string>;\n  Yearly: Record<string, string>;\n}> {\n  const configs = await authRequest<DevPortalConfigsResponse>(\n    \"/dev-portal/configs\",\n    {\n      method: \"GET\",\n      headers: { Authorization: `Bearer ${jwt}` },\n    },\n    userAgent\n  );\n  return configs.openPay.priceIds;\n}\n"],"names":["authRequest"],"mappings":";;;;AAWO,eAAe,oBAAoB,CACxC,GAAW,EACX,SAAkB,EAAA;AAKlB,IAAA,MAAM,OAAO,GAAG,MAAMA,iBAAW,CAC/B,qBAAqB,EACrB;AACE,QAAA,MAAM,EAAE,KAAK;AACb,QAAA,OAAO,EAAE,EAAE,aAAa,EAAE,CAAA,OAAA,EAAU,GAAG,EAAE,EAAE;KAC5C,EACD,SAAS,CACV;AACD,IAAA,OAAO,OAAO,CAAC,OAAO,CAAC,QAAQ;AACjC;;;;"}