{"version":3,"file":"index.mjs","sources":["../src/index.ts"],"sourcesContent":["import { SESClient, SendEmailCommand } from '@aws-sdk/client-ses';\n\nimport {\n  buildSendEmailCommandInput,\n  getClientConfig,\n  type ProviderOptions,\n  type ProviderSettings,\n  type SendOptions,\n} from './utils';\n\nexport default {\n  init(providerOptions: ProviderOptions, settings: ProviderSettings) {\n    const client = new SESClient(getClientConfig(providerOptions));\n\n    return {\n      async send(options: SendOptions): Promise<void> {\n        await client.send(new SendEmailCommand(buildSendEmailCommandInput(options, settings)));\n      },\n    };\n  },\n};\n"],"names":["init","providerOptions","settings","client","SESClient","getClientConfig","send","options","SendEmailCommand","buildSendEmailCommandInput"],"mappings":";;;AAUA,YAAe;IACbA,IAAAA,CAAAA,CAAKC,eAAgC,EAAEC,QAA0B,EAAA;QAC/D,MAAMC,MAAAA,GAAS,IAAIC,SAAAA,CAAUC,eAAAA,CAAgBJ,eAAAA,CAAAA,CAAAA;QAE7C,OAAO;AACL,YAAA,MAAMK,MAAKC,OAAoB,EAAA;AAC7B,gBAAA,MAAMJ,OAAOG,IAAI,CAAC,IAAIE,gBAAAA,CAAiBC,2BAA2BF,OAAAA,EAASL,QAAAA,CAAAA,CAAAA,CAAAA;AAC7E,YAAA;AACF,SAAA;AACF,IAAA;AACF,CAAA;;;;"}