@mtndev/cli 0.0.0-dev-20260626045221 → 0.0.0-dev-20260914234436
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +84 -3
- package/cjs/__chunks/2FSYDFUV.cjs +146 -0
- package/cjs/__chunks/3A5ZYU5M.cjs +105 -0
- package/cjs/__chunks/3NOHGUCF.cjs +9 -0
- package/cjs/__chunks/3T2LXW7J.cjs +387 -0
- package/cjs/__chunks/4XT5JEAS.cjs +1 -0
- package/cjs/__chunks/AZEB4H4I.cjs +208 -0
- package/cjs/__chunks/B5ENMOCD.cjs +288 -0
- package/cjs/__chunks/B6XM5KSF.cjs +338 -0
- package/cjs/__chunks/BDU2UCE5.cjs +1 -0
- package/cjs/__chunks/BLMSMR5E.cjs +46 -0
- package/cjs/__chunks/CMUD7LLN.cjs +47 -0
- package/cjs/__chunks/DTQ2LB3I.cjs +49 -0
- package/cjs/__chunks/FM5MVRQF.cjs +23 -0
- package/cjs/__chunks/FRHST54J.cjs +135 -0
- package/cjs/__chunks/FU4VP2LN.cjs +1 -0
- package/cjs/__chunks/G5K4PVIL.cjs +26 -0
- package/cjs/__chunks/{IEGW3TSF.cjs → GU3R54MK.cjs} +45 -18
- package/cjs/__chunks/GUL36IFZ.cjs +61 -0
- package/cjs/__chunks/GZMTNK5N.cjs +1 -0
- package/cjs/__chunks/H74JSDBU.cjs +30 -0
- package/cjs/__chunks/{EMMC33QA.cjs → JB7T7PKQ.cjs} +170 -33
- package/cjs/__chunks/JSL2JDMW.cjs +1 -0
- package/cjs/__chunks/K4QNHRTP.cjs +163 -0
- package/cjs/__chunks/KU76LC42.cjs +192 -0
- package/cjs/__chunks/LFDSHANP.cjs +34 -0
- package/cjs/__chunks/LHE24ECK.cjs +192 -0
- package/cjs/__chunks/LIKQ3SI4.cjs +1 -0
- package/cjs/__chunks/LXDF5QVZ.cjs +313 -0
- package/cjs/__chunks/LXOOJR2R.cjs +74 -0
- package/cjs/__chunks/N5MXFOQZ.cjs +167 -0
- package/cjs/__chunks/N7D56LPP.cjs +25 -0
- package/cjs/__chunks/NFXQNOQH.cjs +393 -0
- package/cjs/__chunks/NLKJIUEX.cjs +126 -0
- package/cjs/__chunks/NT2XXAI6.cjs +89 -0
- package/cjs/__chunks/NWZGFHKH.cjs +121 -0
- package/cjs/__chunks/R3GUC7O7.cjs +110 -0
- package/cjs/__chunks/RPVAXPJ4.cjs +1 -0
- package/cjs/__chunks/S3LVCWPN.cjs +23 -0
- package/cjs/__chunks/SBBNW2BF.cjs +249 -0
- package/cjs/__chunks/T2A7TN4F.cjs +81 -0
- package/cjs/__chunks/TKNNDDIB.cjs +97 -0
- package/cjs/__chunks/TNSRDJPR.cjs +1 -0
- package/cjs/__chunks/UWHPE2GI.cjs +20 -0
- package/cjs/__chunks/W6K7BV74.cjs +1 -0
- package/cjs/__chunks/WBOQ6AUN.cjs +320 -0
- package/cjs/__chunks/WHGN5PZI.cjs +299 -0
- package/cjs/__chunks/WOYF2L6T.cjs +11 -0
- package/cjs/__chunks/X26XY2N6.cjs +18 -0
- package/cjs/__chunks/XMKOKRXZ.cjs +16 -0
- package/cjs/__chunks/XTJPQ3EX.cjs +1 -0
- package/cjs/__chunks/YRHFKTW2.cjs +63 -0
- package/cjs/commands/aws/ec2/allow-ip/handler.cjs +12 -0
- package/cjs/commands/aws/ec2/allow-ip/handler.d.ts +6 -0
- package/cjs/commands/aws/ec2/allow-ip/index.cjs +55 -0
- package/cjs/commands/aws/ec2/allow-ip/index.d.ts +3 -0
- package/cjs/commands/aws/ec2/allow-ip/schema.cjs +13 -0
- package/cjs/commands/aws/ec2/allow-ip/schema.d.ts +33 -0
- package/cjs/commands/aws/ec2/allow-ip/utils.cjs +39 -0
- package/cjs/commands/aws/ec2/allow-ip/utils.d.ts +189 -0
- package/cjs/commands/aws/iam/admin-group.cjs +15 -0
- package/cjs/commands/aws/iam/admin-group.d.ts +55 -0
- package/cjs/commands/aws/iam/break-glass/handler.cjs +12 -0
- package/cjs/commands/aws/iam/break-glass/handler.d.ts +7 -0
- package/cjs/commands/aws/iam/break-glass/index.cjs +19 -0
- package/cjs/commands/aws/iam/break-glass/index.d.ts +2 -0
- package/cjs/commands/aws/iam/break-glass/schema.cjs +12 -0
- package/cjs/commands/aws/iam/break-glass/schema.d.ts +25 -0
- package/cjs/commands/aws/iam/check-admin/handler.cjs +10 -0
- package/cjs/commands/aws/iam/check-admin/handler.d.ts +5 -0
- package/cjs/commands/aws/iam/check-admin/index.cjs +17 -0
- package/cjs/commands/aws/iam/check-admin/index.d.ts +2 -0
- package/cjs/commands/aws/iam/check-admin/schema.cjs +12 -0
- package/cjs/commands/aws/iam/check-admin/schema.d.ts +19 -0
- package/cjs/commands/aws/iam/policies/s3-restrictions-deny-non-s3-services.cjs +28 -0
- package/cjs/commands/aws/iam/policies/sts-federation.cjs +19 -0
- package/cjs/commands/aws/iam/policies/user-admins-deny-list.cjs +183 -0
- package/cjs/commands/aws/iam/policies/user-admins-deny-regions-list.cjs +49 -0
- package/cjs/commands/aws/iam/policies/user-admins-self-service-iam.cjs +64 -0
- package/cjs/commands/aws/iam/policies/user-admins-write-list.cjs +125 -0
- package/cjs/commands/aws/iam/remove-admin/handler.cjs +11 -0
- package/cjs/commands/aws/iam/remove-admin/handler.d.ts +6 -0
- package/cjs/commands/aws/iam/remove-admin/index.cjs +18 -0
- package/cjs/commands/aws/iam/remove-admin/index.d.ts +2 -0
- package/cjs/commands/aws/iam/remove-admin/schema.cjs +12 -0
- package/cjs/commands/aws/iam/remove-admin/schema.d.ts +28 -0
- package/cjs/commands/aws/iam/setup-acl/handler.cjs +14 -0
- package/cjs/commands/aws/iam/setup-acl/handler.d.ts +6 -0
- package/cjs/commands/aws/iam/setup-acl/index.cjs +33 -0
- package/cjs/commands/aws/iam/setup-acl/index.d.ts +3 -0
- package/cjs/commands/aws/iam/setup-acl/schema.cjs +7 -0
- package/cjs/commands/aws/iam/setup-acl/schema.d.ts +24 -0
- package/cjs/commands/aws/iam/setup-acl/utils.cjs +20 -0
- package/cjs/commands/aws/iam/setup-acl/utils.d.ts +61 -0
- package/cjs/commands/aws/iam/users/handler.cjs +12 -0
- package/cjs/commands/aws/iam/users/handler.d.ts +5 -0
- package/cjs/commands/aws/iam/users/index.cjs +41 -0
- package/cjs/commands/aws/iam/users/index.d.ts +3 -0
- package/cjs/commands/aws/iam/users/schema.cjs +7 -0
- package/cjs/commands/aws/iam/users/schema.d.ts +18 -0
- package/cjs/commands/aws/iam/users/utils.cjs +30 -0
- package/cjs/commands/aws/iam/users/utils.d.ts +119 -0
- package/cjs/commands/aws/index.cjs +229 -0
- package/cjs/commands/aws/index.d.ts +14 -0
- package/cjs/commands/aws/route53/add-record/handler.cjs +18 -0
- package/cjs/commands/aws/route53/add-record/handler.d.ts +36 -0
- package/cjs/commands/aws/route53/add-record/index.cjs +57 -0
- package/cjs/commands/aws/route53/add-record/index.d.ts +3 -0
- package/cjs/commands/aws/route53/add-record/schema.cjs +11 -0
- package/cjs/commands/aws/route53/add-record/schema.d.ts +45 -0
- package/cjs/commands/aws/route53/add-record/utils.cjs +37 -0
- package/cjs/commands/aws/route53/add-record/utils.d.ts +216 -0
- package/cjs/commands/aws/route53/remove-record/handler.cjs +14 -0
- package/cjs/commands/aws/route53/remove-record/handler.d.ts +6 -0
- package/cjs/commands/aws/route53/remove-record/index.cjs +18 -0
- package/cjs/commands/aws/route53/remove-record/index.d.ts +2 -0
- package/cjs/commands/aws/route53/remove-record/schema.cjs +8 -0
- package/cjs/commands/aws/route53/remove-record/schema.d.ts +30 -0
- package/cjs/commands/aws/schema.cjs +10 -0
- package/cjs/commands/aws/schema.d.ts +13 -0
- package/cjs/commands/aws/ses/send-email/handler.cjs +12 -0
- package/cjs/commands/aws/ses/send-email/handler.d.ts +5 -0
- package/cjs/commands/aws/ses/send-email/index.cjs +23 -0
- package/cjs/commands/aws/ses/send-email/index.d.ts +3 -0
- package/cjs/commands/aws/ses/send-email/schema.cjs +7 -0
- package/cjs/commands/aws/ses/send-email/schema.d.ts +39 -0
- package/cjs/commands/aws/ses/send-email/utils.cjs +11 -0
- package/cjs/commands/aws/ses/send-email/utils.d.ts +47 -0
- package/cjs/commands/aws/ses/smtp-password.cjs +10 -0
- package/cjs/commands/aws/ses/smtp-password.d.ts +21 -0
- package/cjs/commands/aws/utils/exec-aws.cjs +16 -0
- package/cjs/commands/aws/utils/exec-aws.d.ts +79 -0
- package/cjs/commands/aws/utils/resolve-policy-path.cjs +6 -0
- package/cjs/commands/aws/utils/resolve-policy-path.d.ts +8 -0
- package/cjs/commands/aws/utils/resolve-profile.cjs +11 -0
- package/cjs/commands/aws/utils/resolve-profile.d.ts +28 -0
- package/cjs/commands/aws/utils/tty.cjs +10 -0
- package/cjs/commands/aws/utils/tty.d.ts +24 -0
- package/cjs/commands/db/create-readonly-user/handler.cjs +11 -0
- package/cjs/commands/db/create-readonly-user/handler.d.ts +5 -0
- package/cjs/commands/db/create-readonly-user/index.cjs +40 -0
- package/cjs/commands/db/create-readonly-user/index.d.ts +3 -0
- package/cjs/commands/db/create-readonly-user/mysql.cjs +9 -0
- package/cjs/commands/db/create-readonly-user/mysql.d.ts +33 -0
- package/cjs/commands/db/create-readonly-user/postgres.cjs +9 -0
- package/cjs/commands/db/create-readonly-user/postgres.d.ts +31 -0
- package/cjs/commands/db/create-readonly-user/schema.cjs +12 -0
- package/cjs/commands/db/create-readonly-user/schema.d.ts +55 -0
- package/cjs/commands/db/create-readonly-user/utils.cjs +22 -0
- package/cjs/commands/db/create-readonly-user/utils.d.ts +112 -0
- package/cjs/commands/db/index.cjs +44 -0
- package/cjs/commands/db/index.d.ts +6 -0
- package/cjs/commands/doppler/handler.cjs +6 -4
- package/cjs/commands/doppler/index.cjs +32 -5
- package/cjs/commands/doppler/index.d.ts +1 -0
- package/cjs/commands/doppler/schema.cjs +10 -2
- package/cjs/commands/doppler/schema.d.ts +233 -17
- package/cjs/commands/doppler/set-secret.cjs +19 -0
- package/cjs/commands/doppler/set-secret.d.ts +113 -0
- package/cjs/commands/doppler/utils.cjs +6 -2
- package/cjs/commands/doppler/utils.d.ts +32 -8
- package/cjs/commands/icons/schema.d.ts +1 -1
- package/cjs/commands/index.cjs +91 -12
- package/esm/__chunks/2FTTEFEK.js +97 -0
- package/esm/__chunks/33UYMUQD.js +338 -0
- package/esm/__chunks/3BKWTHLJ.js +25 -0
- package/esm/__chunks/3HE4BEJX.js +105 -0
- package/esm/__chunks/3QLI5BDL.js +387 -0
- package/esm/__chunks/5GIUAFXL.js +89 -0
- package/esm/__chunks/73BJG53F.js +11 -0
- package/esm/__chunks/7VF4Q43Q.js +0 -0
- package/esm/__chunks/AEDEAYF5.js +0 -0
- package/esm/__chunks/AZCP3SFJ.js +0 -0
- package/esm/__chunks/B2DVQ2UL.js +61 -0
- package/esm/__chunks/CVQVHLW5.js +0 -0
- package/esm/__chunks/D62SPZXC.js +0 -0
- package/esm/__chunks/DLEJ25GZ.js +121 -0
- package/esm/__chunks/DMYFNF54.js +192 -0
- package/esm/__chunks/DNFTUMGD.js +23 -0
- package/esm/__chunks/DVKD6YSR.js +49 -0
- package/esm/__chunks/EMSH4P76.js +20 -0
- package/esm/__chunks/FFKFVMIE.js +167 -0
- package/esm/__chunks/FNXUONAV.js +110 -0
- package/esm/__chunks/G4NJHFFU.js +320 -0
- package/esm/__chunks/IEOGAQYI.js +46 -0
- package/esm/__chunks/IZFGBYGE.js +34 -0
- package/esm/__chunks/J34UVKLA.js +26 -0
- package/esm/__chunks/JZPBBBIG.js +74 -0
- package/esm/__chunks/KWUJP5MG.js +135 -0
- package/esm/__chunks/M35URMT4.js +313 -0
- package/esm/__chunks/NF3M2L6C.js +81 -0
- package/esm/__chunks/PNPPDYKC.js +299 -0
- package/esm/__chunks/QFXN4EHM.js +393 -0
- package/esm/__chunks/QKDDLIWD.js +146 -0
- package/esm/__chunks/QSE66AKY.js +208 -0
- package/esm/__chunks/QUF7PS4R.js +18 -0
- package/esm/__chunks/S7IJPJ4R.js +126 -0
- package/esm/__chunks/SD3E3EPH.js +163 -0
- package/esm/__chunks/T3TTUHTW.js +30 -0
- package/esm/__chunks/TIOVE6HR.js +0 -0
- package/esm/__chunks/TXKMEIDQ.js +0 -0
- package/esm/__chunks/U7HAE2RF.js +288 -0
- package/esm/__chunks/UXWY7BYE.js +63 -0
- package/esm/__chunks/VKAKISRG.js +192 -0
- package/esm/__chunks/WD2YR6I7.js +0 -0
- package/esm/__chunks/WOZFZKFY.js +0 -0
- package/esm/__chunks/XI7GZDE2.js +0 -0
- package/esm/__chunks/XOUWDB3T.js +249 -0
- package/esm/__chunks/XQN2TA4S.js +23 -0
- package/esm/__chunks/XXK32TIM.js +16 -0
- package/esm/__chunks/{O262GK4B.js → YGWTVPZE.js} +164 -27
- package/esm/__chunks/{XK7EMDSU.js → YRG7PT33.js} +44 -17
- package/esm/__chunks/ZHKVJO2U.js +47 -0
- package/esm/__chunks/ZO55YUSY.js +9 -0
- package/esm/commands/aws/ec2/allow-ip/handler.d.ts +6 -0
- package/esm/commands/aws/ec2/allow-ip/handler.js +12 -0
- package/esm/commands/aws/ec2/allow-ip/index.d.ts +3 -0
- package/esm/commands/aws/ec2/allow-ip/index.js +55 -0
- package/esm/commands/aws/ec2/allow-ip/schema.d.ts +33 -0
- package/esm/commands/aws/ec2/allow-ip/schema.js +13 -0
- package/esm/commands/aws/ec2/allow-ip/utils.d.ts +189 -0
- package/esm/commands/aws/ec2/allow-ip/utils.js +39 -0
- package/esm/commands/aws/iam/admin-group.d.ts +55 -0
- package/esm/commands/aws/iam/admin-group.js +15 -0
- package/esm/commands/aws/iam/break-glass/handler.d.ts +7 -0
- package/esm/commands/aws/iam/break-glass/handler.js +12 -0
- package/esm/commands/aws/iam/break-glass/index.d.ts +2 -0
- package/esm/commands/aws/iam/break-glass/index.js +19 -0
- package/esm/commands/aws/iam/break-glass/schema.d.ts +25 -0
- package/esm/commands/aws/iam/break-glass/schema.js +12 -0
- package/esm/commands/aws/iam/check-admin/handler.d.ts +5 -0
- package/esm/commands/aws/iam/check-admin/handler.js +10 -0
- package/esm/commands/aws/iam/check-admin/index.d.ts +2 -0
- package/esm/commands/aws/iam/check-admin/index.js +17 -0
- package/esm/commands/aws/iam/check-admin/schema.d.ts +19 -0
- package/esm/commands/aws/iam/check-admin/schema.js +12 -0
- package/esm/commands/aws/iam/policies/s3-restrictions-deny-non-s3-services.js +28 -0
- package/esm/commands/aws/iam/policies/sts-federation.js +19 -0
- package/esm/commands/aws/iam/policies/user-admins-deny-list.js +183 -0
- package/esm/commands/aws/iam/policies/user-admins-deny-regions-list.js +49 -0
- package/esm/commands/aws/iam/policies/user-admins-self-service-iam.js +64 -0
- package/esm/commands/aws/iam/policies/user-admins-write-list.js +125 -0
- package/esm/commands/aws/iam/remove-admin/handler.d.ts +6 -0
- package/esm/commands/aws/iam/remove-admin/handler.js +11 -0
- package/esm/commands/aws/iam/remove-admin/index.d.ts +2 -0
- package/esm/commands/aws/iam/remove-admin/index.js +18 -0
- package/esm/commands/aws/iam/remove-admin/schema.d.ts +28 -0
- package/esm/commands/aws/iam/remove-admin/schema.js +12 -0
- package/esm/commands/aws/iam/setup-acl/handler.d.ts +6 -0
- package/esm/commands/aws/iam/setup-acl/handler.js +14 -0
- package/esm/commands/aws/iam/setup-acl/index.d.ts +3 -0
- package/esm/commands/aws/iam/setup-acl/index.js +33 -0
- package/esm/commands/aws/iam/setup-acl/schema.d.ts +24 -0
- package/esm/commands/aws/iam/setup-acl/schema.js +7 -0
- package/esm/commands/aws/iam/setup-acl/utils.d.ts +61 -0
- package/esm/commands/aws/iam/setup-acl/utils.js +20 -0
- package/esm/commands/aws/iam/users/handler.d.ts +5 -0
- package/esm/commands/aws/iam/users/handler.js +12 -0
- package/esm/commands/aws/iam/users/index.d.ts +3 -0
- package/esm/commands/aws/iam/users/index.js +41 -0
- package/esm/commands/aws/iam/users/schema.d.ts +18 -0
- package/esm/commands/aws/iam/users/schema.js +7 -0
- package/esm/commands/aws/iam/users/utils.d.ts +119 -0
- package/esm/commands/aws/iam/users/utils.js +30 -0
- package/esm/commands/aws/index.d.ts +14 -0
- package/esm/commands/aws/index.js +229 -0
- package/esm/commands/aws/route53/add-record/handler.d.ts +36 -0
- package/esm/commands/aws/route53/add-record/handler.js +18 -0
- package/esm/commands/aws/route53/add-record/index.d.ts +3 -0
- package/esm/commands/aws/route53/add-record/index.js +57 -0
- package/esm/commands/aws/route53/add-record/schema.d.ts +45 -0
- package/esm/commands/aws/route53/add-record/schema.js +11 -0
- package/esm/commands/aws/route53/add-record/utils.d.ts +216 -0
- package/esm/commands/aws/route53/add-record/utils.js +37 -0
- package/esm/commands/aws/route53/remove-record/handler.d.ts +6 -0
- package/esm/commands/aws/route53/remove-record/handler.js +14 -0
- package/esm/commands/aws/route53/remove-record/index.d.ts +2 -0
- package/esm/commands/aws/route53/remove-record/index.js +18 -0
- package/esm/commands/aws/route53/remove-record/schema.d.ts +30 -0
- package/esm/commands/aws/route53/remove-record/schema.js +8 -0
- package/esm/commands/aws/schema.d.ts +13 -0
- package/esm/commands/aws/schema.js +10 -0
- package/esm/commands/aws/ses/send-email/handler.d.ts +5 -0
- package/esm/commands/aws/ses/send-email/handler.js +12 -0
- package/esm/commands/aws/ses/send-email/index.d.ts +3 -0
- package/esm/commands/aws/ses/send-email/index.js +23 -0
- package/esm/commands/aws/ses/send-email/schema.d.ts +39 -0
- package/esm/commands/aws/ses/send-email/schema.js +7 -0
- package/esm/commands/aws/ses/send-email/utils.d.ts +47 -0
- package/esm/commands/aws/ses/send-email/utils.js +11 -0
- package/esm/commands/aws/ses/smtp-password.d.ts +21 -0
- package/esm/commands/aws/ses/smtp-password.js +10 -0
- package/esm/commands/aws/utils/exec-aws.d.ts +79 -0
- package/esm/commands/aws/utils/exec-aws.js +16 -0
- package/esm/commands/aws/utils/resolve-policy-path.d.ts +8 -0
- package/esm/commands/aws/utils/resolve-policy-path.js +6 -0
- package/esm/commands/aws/utils/resolve-profile.d.ts +28 -0
- package/esm/commands/aws/utils/resolve-profile.js +11 -0
- package/esm/commands/aws/utils/tty.d.ts +24 -0
- package/esm/commands/aws/utils/tty.js +10 -0
- package/esm/commands/db/create-readonly-user/handler.d.ts +5 -0
- package/esm/commands/db/create-readonly-user/handler.js +11 -0
- package/esm/commands/db/create-readonly-user/index.d.ts +3 -0
- package/esm/commands/db/create-readonly-user/index.js +40 -0
- package/esm/commands/db/create-readonly-user/mysql.d.ts +33 -0
- package/esm/commands/db/create-readonly-user/mysql.js +9 -0
- package/esm/commands/db/create-readonly-user/postgres.d.ts +31 -0
- package/esm/commands/db/create-readonly-user/postgres.js +9 -0
- package/esm/commands/db/create-readonly-user/schema.d.ts +55 -0
- package/esm/commands/db/create-readonly-user/schema.js +12 -0
- package/esm/commands/db/create-readonly-user/utils.d.ts +112 -0
- package/esm/commands/db/create-readonly-user/utils.js +22 -0
- package/esm/commands/db/index.d.ts +6 -0
- package/esm/commands/db/index.js +44 -0
- package/esm/commands/doppler/handler.js +5 -3
- package/esm/commands/doppler/index.d.ts +1 -0
- package/esm/commands/doppler/index.js +32 -5
- package/esm/commands/doppler/schema.d.ts +233 -17
- package/esm/commands/doppler/schema.js +11 -3
- package/esm/commands/doppler/set-secret.d.ts +113 -0
- package/esm/commands/doppler/set-secret.js +19 -0
- package/esm/commands/doppler/utils.d.ts +32 -8
- package/esm/commands/doppler/utils.js +5 -1
- package/esm/commands/icons/schema.d.ts +1 -1
- package/esm/commands/index.js +86 -7
- package/package.json +12 -2
- package/vitest.config.ts +11 -0
- package/cjs/__chunks/MFAORPG6.cjs +0 -52
- package/esm/__chunks/3KUXVWUE.js +0 -52
- /package/cjs/__chunks/{WNJ3ZYLI.cjs → 3BY5Y4W7.cjs} +0 -0
- /package/esm/__chunks/{46HGXFME.js → 5ZBVGSOK.js} +0 -0
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Common Route53 record types offered in the interactive picker.
|
|
3
|
+
* Alias records are not supported by this command.
|
|
4
|
+
*/
|
|
5
|
+
export const RECORD_TYPES: string[];
|
|
6
|
+
/**
|
|
7
|
+
* Default TTL (seconds) when creating or replacing a record set.
|
|
8
|
+
*/
|
|
9
|
+
export const DEFAULT_TTL: 300;
|
|
10
|
+
/**
|
|
11
|
+
* Zod schema for `aws route53 add-record` options.
|
|
12
|
+
*/
|
|
13
|
+
export const addRecordOptionsSchema: z.ZodObject<{
|
|
14
|
+
profile: z.ZodOptional<z.ZodString>;
|
|
15
|
+
zone: z.ZodOptional<z.ZodString>;
|
|
16
|
+
type: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, string | undefined>, string | undefined, string | undefined>;
|
|
17
|
+
name: z.ZodOptional<z.ZodString>;
|
|
18
|
+
value: z.ZodOptional<z.ZodString>;
|
|
19
|
+
ttl: z.ZodOptional<z.ZodNumber>;
|
|
20
|
+
yes: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
21
|
+
dryRun: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
22
|
+
verbose: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
23
|
+
}, "strip", z.ZodTypeAny, {
|
|
24
|
+
verbose: boolean;
|
|
25
|
+
yes: boolean;
|
|
26
|
+
dryRun: boolean;
|
|
27
|
+
profile?: string | undefined;
|
|
28
|
+
value?: string | undefined;
|
|
29
|
+
type?: string | undefined;
|
|
30
|
+
name?: string | undefined;
|
|
31
|
+
zone?: string | undefined;
|
|
32
|
+
ttl?: number | undefined;
|
|
33
|
+
}, {
|
|
34
|
+
profile?: string | undefined;
|
|
35
|
+
verbose?: boolean | undefined;
|
|
36
|
+
yes?: boolean | undefined;
|
|
37
|
+
value?: string | undefined;
|
|
38
|
+
type?: string | undefined;
|
|
39
|
+
dryRun?: boolean | undefined;
|
|
40
|
+
name?: string | undefined;
|
|
41
|
+
zone?: string | undefined;
|
|
42
|
+
ttl?: number | undefined;
|
|
43
|
+
}>;
|
|
44
|
+
export type AddRecordOptions = z.infer<typeof addRecordOptionsSchema>;
|
|
45
|
+
import { z } from "zod";
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
var _B6XM5KSFcjs = require('../../../../__chunks/B6XM5KSF.cjs');
|
|
18
|
+
require('../../../../__chunks/BLMSMR5E.cjs');
|
|
19
|
+
require('../../../../__chunks/R3GUC7O7.cjs');
|
|
20
|
+
require('../../../../__chunks/WOYF2L6T.cjs');
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
exports.bareHostedZoneId = _B6XM5KSFcjs.bareHostedZoneId; exports.deleteResourceRecordSet = _B6XM5KSFcjs.deleteResourceRecordSet; exports.findCnameConflicts = _B6XM5KSFcjs.findCnameConflicts; exports.findHostedZone = _B6XM5KSFcjs.findHostedZone; exports.formatValues = _B6XM5KSFcjs.formatValues; exports.getRecordSetsAtName = _B6XM5KSFcjs.getRecordSetsAtName; exports.getResourceRecordSet = _B6XM5KSFcjs.getResourceRecordSet; exports.hostedZoneLabel = _B6XM5KSFcjs.hostedZoneLabel; exports.listHostedZones = _B6XM5KSFcjs.listHostedZones; exports.normalizeRecordValue = _B6XM5KSFcjs.normalizeRecordValue; exports.planRecordChange = _B6XM5KSFcjs.planRecordChange; exports.resolveRecordName = _B6XM5KSFcjs.resolveRecordName; exports.upsertResourceRecordSet = _B6XM5KSFcjs.upsertResourceRecordSet; exports.withTrailingDot = _B6XM5KSFcjs.withTrailingDot; exports.withoutTrailingDot = _B6XM5KSFcjs.withoutTrailingDot;
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @typedef {Object} HostedZone
|
|
3
|
+
* @property {string} id - Bare hosted zone ID (without /hostedzone/ prefix)
|
|
4
|
+
* @property {string} name - Zone name with trailing dot (e.g. mountaindev.com.)
|
|
5
|
+
* @property {boolean} privateZone
|
|
6
|
+
* @property {number} recordCount
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @typedef {Object} ResourceRecordSet
|
|
10
|
+
* @property {string} name
|
|
11
|
+
* @property {string} type
|
|
12
|
+
* @property {number | undefined} ttl
|
|
13
|
+
* @property {string[]} values
|
|
14
|
+
* @property {boolean} isAlias
|
|
15
|
+
* @property {any} [aliasTarget] - Raw AliasTarget block (present when isAlias)
|
|
16
|
+
*/
|
|
17
|
+
/**
|
|
18
|
+
* Strip the `/hostedzone/` prefix from a Route53 hosted zone Id.
|
|
19
|
+
* @param {string} rawId
|
|
20
|
+
* @returns {string}
|
|
21
|
+
*/
|
|
22
|
+
export function bareHostedZoneId(rawId: string): string;
|
|
23
|
+
/**
|
|
24
|
+
* Ensure a DNS name ends with a trailing dot (Route53 FQDN form).
|
|
25
|
+
* @param {string} name
|
|
26
|
+
* @returns {string}
|
|
27
|
+
*/
|
|
28
|
+
export function withTrailingDot(name: string): string;
|
|
29
|
+
/**
|
|
30
|
+
* Strip a trailing dot for display.
|
|
31
|
+
* @param {string} name
|
|
32
|
+
* @returns {string}
|
|
33
|
+
*/
|
|
34
|
+
export function withoutTrailingDot(name: string): string;
|
|
35
|
+
/**
|
|
36
|
+
* List hosted zones for the profile.
|
|
37
|
+
* @param {{ profile?: string; verbose?: boolean }} params
|
|
38
|
+
* @returns {HostedZone[]}
|
|
39
|
+
*/
|
|
40
|
+
export function listHostedZones(params: {
|
|
41
|
+
profile?: string;
|
|
42
|
+
verbose?: boolean;
|
|
43
|
+
}): HostedZone[];
|
|
44
|
+
/**
|
|
45
|
+
* Resolve a hosted zone from a name (mountaindev.com) or bare/prefixed ID.
|
|
46
|
+
* @param {{ zones: HostedZone[]; zoneInput: string }} params
|
|
47
|
+
* @returns {HostedZone | null}
|
|
48
|
+
*/
|
|
49
|
+
export function findHostedZone(params: {
|
|
50
|
+
zones: HostedZone[];
|
|
51
|
+
zoneInput: string;
|
|
52
|
+
}): HostedZone | null;
|
|
53
|
+
/**
|
|
54
|
+
* Build a display label for a hosted zone in the picker.
|
|
55
|
+
* @param {HostedZone} zone
|
|
56
|
+
* @returns {string}
|
|
57
|
+
*/
|
|
58
|
+
export function hostedZoneLabel(zone: HostedZone): string;
|
|
59
|
+
/**
|
|
60
|
+
* Turn a relative or absolute name into a Route53 FQDN under the zone.
|
|
61
|
+
* Apex / "@" / empty → the zone apex.
|
|
62
|
+
* @param {{ nameInput: string; zoneName: string }} params
|
|
63
|
+
* @returns {string} FQDN with trailing dot
|
|
64
|
+
*/
|
|
65
|
+
export function resolveRecordName(params: {
|
|
66
|
+
nameInput: string;
|
|
67
|
+
zoneName: string;
|
|
68
|
+
}): string;
|
|
69
|
+
/**
|
|
70
|
+
* Fetch every resource record set at an exact name, across all types.
|
|
71
|
+
* Paginates when needed; Route53 list is ordered by name then type.
|
|
72
|
+
* @param {{
|
|
73
|
+
* profile?: string;
|
|
74
|
+
* hostedZoneId: string;
|
|
75
|
+
* name: string;
|
|
76
|
+
* verbose?: boolean;
|
|
77
|
+
* }} params
|
|
78
|
+
* @returns {ResourceRecordSet[]}
|
|
79
|
+
*/
|
|
80
|
+
export function getRecordSetsAtName(params: {
|
|
81
|
+
profile?: string;
|
|
82
|
+
hostedZoneId: string;
|
|
83
|
+
name: string;
|
|
84
|
+
verbose?: boolean;
|
|
85
|
+
}): ResourceRecordSet[];
|
|
86
|
+
/**
|
|
87
|
+
* Fetch a single resource record set by exact name + type, if it exists.
|
|
88
|
+
* @param {{
|
|
89
|
+
* profile?: string;
|
|
90
|
+
* hostedZoneId: string;
|
|
91
|
+
* name: string;
|
|
92
|
+
* type: string;
|
|
93
|
+
* verbose?: boolean;
|
|
94
|
+
* }} params
|
|
95
|
+
* @returns {ResourceRecordSet | null}
|
|
96
|
+
*/
|
|
97
|
+
export function getResourceRecordSet(params: {
|
|
98
|
+
profile?: string;
|
|
99
|
+
hostedZoneId: string;
|
|
100
|
+
name: string;
|
|
101
|
+
type: string;
|
|
102
|
+
verbose?: boolean;
|
|
103
|
+
}): ResourceRecordSet | null;
|
|
104
|
+
/**
|
|
105
|
+
* Route53 forbids a CNAME from coexisting with any other record type at the
|
|
106
|
+
* same name. Given the type about to be written and the record sets already at
|
|
107
|
+
* that name, return the sets that would conflict (empty when there is none).
|
|
108
|
+
* A same-type set is an overwrite, not a conflict.
|
|
109
|
+
* @param {{ existingSets: ResourceRecordSet[]; type: string }} params
|
|
110
|
+
* @returns {ResourceRecordSet[]}
|
|
111
|
+
*/
|
|
112
|
+
export function findCnameConflicts(params: {
|
|
113
|
+
existingSets: ResourceRecordSet[];
|
|
114
|
+
type: string;
|
|
115
|
+
}): ResourceRecordSet[];
|
|
116
|
+
/**
|
|
117
|
+
* Format existing values for console display.
|
|
118
|
+
* @param {string[]} values
|
|
119
|
+
* @returns {string}
|
|
120
|
+
*/
|
|
121
|
+
export function formatValues(values: string[]): string;
|
|
122
|
+
/**
|
|
123
|
+
* Normalize a single record value for a given type (trailing dots, TXT quotes).
|
|
124
|
+
* @param {{ type: string; value: string }} params
|
|
125
|
+
* @returns {string}
|
|
126
|
+
*/
|
|
127
|
+
export function normalizeRecordValue(params: {
|
|
128
|
+
type: string;
|
|
129
|
+
value: string;
|
|
130
|
+
}): string;
|
|
131
|
+
/**
|
|
132
|
+
* Decide how the new value relates to an existing RRSet.
|
|
133
|
+
* @param {{
|
|
134
|
+
* existing: ResourceRecordSet | null;
|
|
135
|
+
* newValue: string;
|
|
136
|
+
* mode?: "replace" | "append";
|
|
137
|
+
* }} params
|
|
138
|
+
* @returns {{
|
|
139
|
+
* action: "create" | "overwrite" | "append" | "noop";
|
|
140
|
+
* finalValues: string[];
|
|
141
|
+
* summary: string;
|
|
142
|
+
* }}
|
|
143
|
+
*/
|
|
144
|
+
export function planRecordChange(params: {
|
|
145
|
+
existing: ResourceRecordSet | null;
|
|
146
|
+
newValue: string;
|
|
147
|
+
mode?: "replace" | "append";
|
|
148
|
+
}): {
|
|
149
|
+
action: "create" | "overwrite" | "append" | "noop";
|
|
150
|
+
finalValues: string[];
|
|
151
|
+
summary: string;
|
|
152
|
+
};
|
|
153
|
+
/**
|
|
154
|
+
* Submit a Route53 UPSERT for a simple (non-alias) resource record set.
|
|
155
|
+
* @param {{
|
|
156
|
+
* profile?: string;
|
|
157
|
+
* hostedZoneId: string;
|
|
158
|
+
* name: string;
|
|
159
|
+
* type: string;
|
|
160
|
+
* ttl: number;
|
|
161
|
+
* values: string[];
|
|
162
|
+
* verbose?: boolean;
|
|
163
|
+
* }} params
|
|
164
|
+
* @returns {any} ChangeInfo from Route53
|
|
165
|
+
*/
|
|
166
|
+
export function upsertResourceRecordSet(params: {
|
|
167
|
+
profile?: string;
|
|
168
|
+
hostedZoneId: string;
|
|
169
|
+
name: string;
|
|
170
|
+
type: string;
|
|
171
|
+
ttl: number;
|
|
172
|
+
values: string[];
|
|
173
|
+
verbose?: boolean;
|
|
174
|
+
}): any;
|
|
175
|
+
/**
|
|
176
|
+
* Submit a Route53 DELETE for an existing resource record set. Route53 requires
|
|
177
|
+
* the record's exact current definition, so this is driven by the record set
|
|
178
|
+
* returned from {@link getResourceRecordSet} — alias records reuse their
|
|
179
|
+
* AliasTarget; standard records reuse their TTL + values.
|
|
180
|
+
* @param {{
|
|
181
|
+
* profile?: string;
|
|
182
|
+
* hostedZoneId: string;
|
|
183
|
+
* record: ResourceRecordSet;
|
|
184
|
+
* verbose?: boolean;
|
|
185
|
+
* }} params
|
|
186
|
+
* @returns {any} ChangeInfo from Route53
|
|
187
|
+
*/
|
|
188
|
+
export function deleteResourceRecordSet(params: {
|
|
189
|
+
profile?: string;
|
|
190
|
+
hostedZoneId: string;
|
|
191
|
+
record: ResourceRecordSet;
|
|
192
|
+
verbose?: boolean;
|
|
193
|
+
}): any;
|
|
194
|
+
export type HostedZone = {
|
|
195
|
+
/**
|
|
196
|
+
* - Bare hosted zone ID (without /hostedzone/ prefix)
|
|
197
|
+
*/
|
|
198
|
+
id: string;
|
|
199
|
+
/**
|
|
200
|
+
* - Zone name with trailing dot (e.g. mountaindev.com.)
|
|
201
|
+
*/
|
|
202
|
+
name: string;
|
|
203
|
+
privateZone: boolean;
|
|
204
|
+
recordCount: number;
|
|
205
|
+
};
|
|
206
|
+
export type ResourceRecordSet = {
|
|
207
|
+
name: string;
|
|
208
|
+
type: string;
|
|
209
|
+
ttl: number | undefined;
|
|
210
|
+
values: string[];
|
|
211
|
+
isAlias: boolean;
|
|
212
|
+
/**
|
|
213
|
+
* - Raw AliasTarget block (present when isAlias)
|
|
214
|
+
*/
|
|
215
|
+
aliasTarget?: any;
|
|
216
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _2FSYDFUVcjs = require('../../../../__chunks/2FSYDFUV.cjs');
|
|
4
|
+
require('../../../../__chunks/LFDSHANP.cjs');
|
|
5
|
+
require('../../../../__chunks/WBOQ6AUN.cjs');
|
|
6
|
+
require('../../../../__chunks/B6XM5KSF.cjs');
|
|
7
|
+
require('../../../../__chunks/BLMSMR5E.cjs');
|
|
8
|
+
require('../../../../__chunks/R3GUC7O7.cjs');
|
|
9
|
+
require('../../../../__chunks/NT2XXAI6.cjs');
|
|
10
|
+
require('../../../../__chunks/WOYF2L6T.cjs');
|
|
11
|
+
require('../../../../__chunks/CMUD7LLN.cjs');
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
exports.removeRecordCommand = _2FSYDFUVcjs.removeRecordCommand;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../../../__chunks/JSL2JDMW.cjs');
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _2FSYDFUVcjs = require('../../../../__chunks/2FSYDFUV.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
var _LFDSHANPcjs = require('../../../../__chunks/LFDSHANP.cjs');
|
|
8
|
+
require('../../../../__chunks/WBOQ6AUN.cjs');
|
|
9
|
+
require('../../../../__chunks/B6XM5KSF.cjs');
|
|
10
|
+
require('../../../../__chunks/BLMSMR5E.cjs');
|
|
11
|
+
require('../../../../__chunks/R3GUC7O7.cjs');
|
|
12
|
+
require('../../../../__chunks/NT2XXAI6.cjs');
|
|
13
|
+
require('../../../../__chunks/WOYF2L6T.cjs');
|
|
14
|
+
require('../../../../__chunks/CMUD7LLN.cjs');
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
exports.removeRecordCommand = _2FSYDFUVcjs.removeRecordCommand; exports.removeRecordOptionsSchema = _LFDSHANPcjs.removeRecordOptionsSchema;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _LFDSHANPcjs = require('../../../../__chunks/LFDSHANP.cjs');
|
|
4
|
+
require('../../../../__chunks/BLMSMR5E.cjs');
|
|
5
|
+
require('../../../../__chunks/WOYF2L6T.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
exports.removeRecordOptionsSchema = _LFDSHANPcjs.removeRecordOptionsSchema;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Zod schema for `aws route53 remove-record` options.
|
|
3
|
+
*/
|
|
4
|
+
export const removeRecordOptionsSchema: z.ZodObject<{
|
|
5
|
+
profile: z.ZodOptional<z.ZodString>;
|
|
6
|
+
zone: z.ZodOptional<z.ZodString>;
|
|
7
|
+
type: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, string | undefined>, string | undefined, string | undefined>;
|
|
8
|
+
name: z.ZodOptional<z.ZodString>;
|
|
9
|
+
yes: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
10
|
+
dryRun: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
11
|
+
verbose: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
verbose: boolean;
|
|
14
|
+
yes: boolean;
|
|
15
|
+
dryRun: boolean;
|
|
16
|
+
profile?: string | undefined;
|
|
17
|
+
type?: string | undefined;
|
|
18
|
+
name?: string | undefined;
|
|
19
|
+
zone?: string | undefined;
|
|
20
|
+
}, {
|
|
21
|
+
profile?: string | undefined;
|
|
22
|
+
verbose?: boolean | undefined;
|
|
23
|
+
yes?: boolean | undefined;
|
|
24
|
+
type?: string | undefined;
|
|
25
|
+
dryRun?: boolean | undefined;
|
|
26
|
+
name?: string | undefined;
|
|
27
|
+
zone?: string | undefined;
|
|
28
|
+
}>;
|
|
29
|
+
export type RemoveRecordOptions = z.infer<typeof removeRecordOptionsSchema>;
|
|
30
|
+
import { z } from "zod";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
var _WOYF2L6Tcjs = require('../../__chunks/WOYF2L6T.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
exports.profileField = _WOYF2L6Tcjs.profileField; exports.regionField = _WOYF2L6Tcjs.regionField; exports.verboseField = _WOYF2L6Tcjs.verboseField;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared Zod field for the AWS profile option.
|
|
3
|
+
*/
|
|
4
|
+
export const profileField: z.ZodOptional<z.ZodString>;
|
|
5
|
+
/**
|
|
6
|
+
* Shared Zod field for the AWS region option.
|
|
7
|
+
*/
|
|
8
|
+
export const regionField: z.ZodOptional<z.ZodString>;
|
|
9
|
+
/**
|
|
10
|
+
* Shared Zod field for verbose logging.
|
|
11
|
+
*/
|
|
12
|
+
export const verboseField: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
13
|
+
import { z } from "zod";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _TKNNDDIBcjs = require('../../../../__chunks/TKNNDDIB.cjs');
|
|
4
|
+
require('../../../../__chunks/YRHFKTW2.cjs');
|
|
5
|
+
require('../../../../__chunks/GUL36IFZ.cjs');
|
|
6
|
+
require('../../../../__chunks/NT2XXAI6.cjs');
|
|
7
|
+
require('../../../../__chunks/N7D56LPP.cjs');
|
|
8
|
+
require('../../../../__chunks/WOYF2L6T.cjs');
|
|
9
|
+
require('../../../../__chunks/CMUD7LLN.cjs');
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
exports.sendEmailCommand = _TKNNDDIBcjs.sendEmailCommand;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../../../__chunks/XTJPQ3EX.cjs');
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _TKNNDDIBcjs = require('../../../../__chunks/TKNNDDIB.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
var _YRHFKTW2cjs = require('../../../../__chunks/YRHFKTW2.cjs');
|
|
10
|
+
require('../../../../__chunks/GUL36IFZ.cjs');
|
|
11
|
+
require('../../../../__chunks/NT2XXAI6.cjs');
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
var _N7D56LPPcjs = require('../../../../__chunks/N7D56LPP.cjs');
|
|
15
|
+
require('../../../../__chunks/WOYF2L6T.cjs');
|
|
16
|
+
require('../../../../__chunks/CMUD7LLN.cjs');
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
exports.defaultBody = _YRHFKTW2cjs.defaultBody; exports.sendEmailCommand = _TKNNDDIBcjs.sendEmailCommand; exports.sendEmailOptionsSchema = _N7D56LPPcjs.sendEmailOptionsSchema; exports.sendViaApi = _YRHFKTW2cjs.sendViaApi; exports.sendViaSmtp = _YRHFKTW2cjs.sendViaSmtp;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Zod schema for `aws ses send-email` options.
|
|
3
|
+
*/
|
|
4
|
+
export const sendEmailOptionsSchema: z.ZodObject<{
|
|
5
|
+
to: z.ZodString;
|
|
6
|
+
from: z.ZodString;
|
|
7
|
+
subject: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
8
|
+
body: z.ZodOptional<z.ZodString>;
|
|
9
|
+
transport: z.ZodDefault<z.ZodOptional<z.ZodEnum<["api", "smtp"]>>>;
|
|
10
|
+
region: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
11
|
+
profile: z.ZodOptional<z.ZodString>;
|
|
12
|
+
accessKeyId: z.ZodOptional<z.ZodString>;
|
|
13
|
+
dryRun: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
14
|
+
verbose: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
15
|
+
}, "strip", z.ZodTypeAny, {
|
|
16
|
+
region: string;
|
|
17
|
+
verbose: boolean;
|
|
18
|
+
dryRun: boolean;
|
|
19
|
+
to: string;
|
|
20
|
+
from: string;
|
|
21
|
+
subject: string;
|
|
22
|
+
transport: "api" | "smtp";
|
|
23
|
+
profile?: string | undefined;
|
|
24
|
+
accessKeyId?: string | undefined;
|
|
25
|
+
body?: string | undefined;
|
|
26
|
+
}, {
|
|
27
|
+
to: string;
|
|
28
|
+
from: string;
|
|
29
|
+
profile?: string | undefined;
|
|
30
|
+
region?: string | undefined;
|
|
31
|
+
verbose?: boolean | undefined;
|
|
32
|
+
dryRun?: boolean | undefined;
|
|
33
|
+
accessKeyId?: string | undefined;
|
|
34
|
+
subject?: string | undefined;
|
|
35
|
+
body?: string | undefined;
|
|
36
|
+
transport?: "api" | "smtp" | undefined;
|
|
37
|
+
}>;
|
|
38
|
+
export type SendEmailOptions = z.infer<typeof sendEmailOptionsSchema>;
|
|
39
|
+
import { z } from "zod";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
var _YRHFKTW2cjs = require('../../../../__chunks/YRHFKTW2.cjs');
|
|
6
|
+
require('../../../../__chunks/GUL36IFZ.cjs');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
exports.defaultBody = _YRHFKTW2cjs.defaultBody; exports.sendViaApi = _YRHFKTW2cjs.sendViaApi; exports.sendViaSmtp = _YRHFKTW2cjs.sendViaSmtp;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Build a default test-email body with a timestamp and random token.
|
|
3
|
+
* @returns {string}
|
|
4
|
+
*/
|
|
5
|
+
export function defaultBody(): string;
|
|
6
|
+
/**
|
|
7
|
+
* Send an email through the SES API using the AWS SDK.
|
|
8
|
+
* @param {{
|
|
9
|
+
* to: string;
|
|
10
|
+
* from: string;
|
|
11
|
+
* subject: string;
|
|
12
|
+
* body: string;
|
|
13
|
+
* region: string;
|
|
14
|
+
* profile?: string;
|
|
15
|
+
* }} params
|
|
16
|
+
* @returns {Promise<string | undefined>} The SES message id
|
|
17
|
+
*/
|
|
18
|
+
export function sendViaApi(params: {
|
|
19
|
+
to: string;
|
|
20
|
+
from: string;
|
|
21
|
+
subject: string;
|
|
22
|
+
body: string;
|
|
23
|
+
region: string;
|
|
24
|
+
profile?: string;
|
|
25
|
+
}): Promise<string | undefined>;
|
|
26
|
+
/**
|
|
27
|
+
* Send an email through the SES SMTP endpoint using nodemailer.
|
|
28
|
+
* Credentials come from SES_SMTP_USER/SES_SMTP_PASSWORD, or the password is
|
|
29
|
+
* derived from AWS_SECRET_ACCESS_KEY when only that is available.
|
|
30
|
+
* @param {{
|
|
31
|
+
* to: string;
|
|
32
|
+
* from: string;
|
|
33
|
+
* subject: string;
|
|
34
|
+
* body: string;
|
|
35
|
+
* region: string;
|
|
36
|
+
* accessKeyId?: string;
|
|
37
|
+
* }} params
|
|
38
|
+
* @returns {Promise<string | undefined>} The SMTP message id
|
|
39
|
+
*/
|
|
40
|
+
export function sendViaSmtp(params: {
|
|
41
|
+
to: string;
|
|
42
|
+
from: string;
|
|
43
|
+
subject: string;
|
|
44
|
+
body: string;
|
|
45
|
+
region: string;
|
|
46
|
+
accessKeyId?: string;
|
|
47
|
+
}): Promise<string | undefined>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
var _GUL36IFZcjs = require('../../../__chunks/GUL36IFZ.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
exports.SMTP_REGIONS = _GUL36IFZcjs.SMTP_REGIONS; exports.calculateSmtpPassword = _GUL36IFZcjs.calculateSmtpPassword; exports.smtpEndpoint = _GUL36IFZcjs.smtpEndpoint;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Derive an SES SMTP password from an IAM secret access key, following the
|
|
3
|
+
* AWS Signature V4 algorithm with SES-specific constants.
|
|
4
|
+
* @see https://docs.aws.amazon.com/ses/latest/dg/smtp-credentials.html#smtp-credentials-convert
|
|
5
|
+
* @param {{ secretAccessKey: string; region: string }} params
|
|
6
|
+
* @returns {string}
|
|
7
|
+
*/
|
|
8
|
+
export function calculateSmtpPassword(params: {
|
|
9
|
+
secretAccessKey: string;
|
|
10
|
+
region: string;
|
|
11
|
+
}): string;
|
|
12
|
+
/**
|
|
13
|
+
* SES SMTP endpoint host for a region.
|
|
14
|
+
* @param {string} region
|
|
15
|
+
* @returns {string}
|
|
16
|
+
*/
|
|
17
|
+
export function smtpEndpoint(region: string): string;
|
|
18
|
+
/**
|
|
19
|
+
* AWS regions that expose an SES SMTP endpoint.
|
|
20
|
+
*/
|
|
21
|
+
export const SMTP_REGIONS: Set<string>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
var _R3GUC7O7cjs = require('../../../__chunks/R3GUC7O7.cjs');
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
exports.AwsCliError = _R3GUC7O7cjs.AwsCliError; exports.getCallerIdentity = _R3GUC7O7cjs.getCallerIdentity; exports.parseAwsErrorCode = _R3GUC7O7cjs.parseAwsErrorCode; exports.requireCommands = _R3GUC7O7cjs.requireCommands; exports.runAws = _R3GUC7O7cjs.runAws; exports.runAwsVault = _R3GUC7O7cjs.runAwsVault;
|