@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,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,37 @@
|
|
|
1
|
+
import {
|
|
2
|
+
bareHostedZoneId,
|
|
3
|
+
deleteResourceRecordSet,
|
|
4
|
+
findCnameConflicts,
|
|
5
|
+
findHostedZone,
|
|
6
|
+
formatValues,
|
|
7
|
+
getRecordSetsAtName,
|
|
8
|
+
getResourceRecordSet,
|
|
9
|
+
hostedZoneLabel,
|
|
10
|
+
listHostedZones,
|
|
11
|
+
normalizeRecordValue,
|
|
12
|
+
planRecordChange,
|
|
13
|
+
resolveRecordName,
|
|
14
|
+
upsertResourceRecordSet,
|
|
15
|
+
withTrailingDot,
|
|
16
|
+
withoutTrailingDot
|
|
17
|
+
} from "../../../../__chunks/33UYMUQD.js";
|
|
18
|
+
import "../../../../__chunks/IEOGAQYI.js";
|
|
19
|
+
import "../../../../__chunks/FNXUONAV.js";
|
|
20
|
+
import "../../../../__chunks/73BJG53F.js";
|
|
21
|
+
export {
|
|
22
|
+
bareHostedZoneId,
|
|
23
|
+
deleteResourceRecordSet,
|
|
24
|
+
findCnameConflicts,
|
|
25
|
+
findHostedZone,
|
|
26
|
+
formatValues,
|
|
27
|
+
getRecordSetsAtName,
|
|
28
|
+
getResourceRecordSet,
|
|
29
|
+
hostedZoneLabel,
|
|
30
|
+
listHostedZones,
|
|
31
|
+
normalizeRecordValue,
|
|
32
|
+
planRecordChange,
|
|
33
|
+
resolveRecordName,
|
|
34
|
+
upsertResourceRecordSet,
|
|
35
|
+
withTrailingDot,
|
|
36
|
+
withoutTrailingDot
|
|
37
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
removeRecordCommand
|
|
3
|
+
} from "../../../../__chunks/QKDDLIWD.js";
|
|
4
|
+
import "../../../../__chunks/IZFGBYGE.js";
|
|
5
|
+
import "../../../../__chunks/G4NJHFFU.js";
|
|
6
|
+
import "../../../../__chunks/33UYMUQD.js";
|
|
7
|
+
import "../../../../__chunks/IEOGAQYI.js";
|
|
8
|
+
import "../../../../__chunks/FNXUONAV.js";
|
|
9
|
+
import "../../../../__chunks/5GIUAFXL.js";
|
|
10
|
+
import "../../../../__chunks/73BJG53F.js";
|
|
11
|
+
import "../../../../__chunks/ZHKVJO2U.js";
|
|
12
|
+
export {
|
|
13
|
+
removeRecordCommand
|
|
14
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import "../../../../__chunks/7VF4Q43Q.js";
|
|
2
|
+
import {
|
|
3
|
+
removeRecordCommand
|
|
4
|
+
} from "../../../../__chunks/QKDDLIWD.js";
|
|
5
|
+
import {
|
|
6
|
+
removeRecordOptionsSchema
|
|
7
|
+
} from "../../../../__chunks/IZFGBYGE.js";
|
|
8
|
+
import "../../../../__chunks/G4NJHFFU.js";
|
|
9
|
+
import "../../../../__chunks/33UYMUQD.js";
|
|
10
|
+
import "../../../../__chunks/IEOGAQYI.js";
|
|
11
|
+
import "../../../../__chunks/FNXUONAV.js";
|
|
12
|
+
import "../../../../__chunks/5GIUAFXL.js";
|
|
13
|
+
import "../../../../__chunks/73BJG53F.js";
|
|
14
|
+
import "../../../../__chunks/ZHKVJO2U.js";
|
|
15
|
+
export {
|
|
16
|
+
removeRecordCommand,
|
|
17
|
+
removeRecordOptionsSchema
|
|
18
|
+
};
|
|
@@ -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,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
|
+
import {
|
|
2
|
+
sendEmailCommand
|
|
3
|
+
} from "../../../../__chunks/2FTTEFEK.js";
|
|
4
|
+
import "../../../../__chunks/UXWY7BYE.js";
|
|
5
|
+
import "../../../../__chunks/B2DVQ2UL.js";
|
|
6
|
+
import "../../../../__chunks/5GIUAFXL.js";
|
|
7
|
+
import "../../../../__chunks/3BKWTHLJ.js";
|
|
8
|
+
import "../../../../__chunks/73BJG53F.js";
|
|
9
|
+
import "../../../../__chunks/ZHKVJO2U.js";
|
|
10
|
+
export {
|
|
11
|
+
sendEmailCommand
|
|
12
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import "../../../../__chunks/TXKMEIDQ.js";
|
|
2
|
+
import {
|
|
3
|
+
sendEmailCommand
|
|
4
|
+
} from "../../../../__chunks/2FTTEFEK.js";
|
|
5
|
+
import {
|
|
6
|
+
defaultBody,
|
|
7
|
+
sendViaApi,
|
|
8
|
+
sendViaSmtp
|
|
9
|
+
} from "../../../../__chunks/UXWY7BYE.js";
|
|
10
|
+
import "../../../../__chunks/B2DVQ2UL.js";
|
|
11
|
+
import "../../../../__chunks/5GIUAFXL.js";
|
|
12
|
+
import {
|
|
13
|
+
sendEmailOptionsSchema
|
|
14
|
+
} from "../../../../__chunks/3BKWTHLJ.js";
|
|
15
|
+
import "../../../../__chunks/73BJG53F.js";
|
|
16
|
+
import "../../../../__chunks/ZHKVJO2U.js";
|
|
17
|
+
export {
|
|
18
|
+
defaultBody,
|
|
19
|
+
sendEmailCommand,
|
|
20
|
+
sendEmailOptionsSchema,
|
|
21
|
+
sendViaApi,
|
|
22
|
+
sendViaSmtp
|
|
23
|
+
};
|
|
@@ -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,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,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,79 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Extract the AWS service error code from a CLI stderr string.
|
|
3
|
+
* AWS prints codes in parentheses, e.g. "...(UnauthorizedOperation) when calling...".
|
|
4
|
+
* @param {string} stderr
|
|
5
|
+
* @returns {string | null}
|
|
6
|
+
*/
|
|
7
|
+
export function parseAwsErrorCode(stderr: string): string | null;
|
|
8
|
+
/**
|
|
9
|
+
* Verify that the given executables are available on PATH.
|
|
10
|
+
* @param {string[]} commands
|
|
11
|
+
* @throws {Error} If any command is missing
|
|
12
|
+
*/
|
|
13
|
+
export function requireCommands(commands: string[]): void;
|
|
14
|
+
/**
|
|
15
|
+
* Run an AWS CLI command using a credential profile.
|
|
16
|
+
* Uses an argument array (no shell) so JSON arguments need no escaping.
|
|
17
|
+
* @param {{
|
|
18
|
+
* profile?: string;
|
|
19
|
+
* region?: string;
|
|
20
|
+
* args: string[];
|
|
21
|
+
* expectJson?: boolean;
|
|
22
|
+
* verbose?: boolean;
|
|
23
|
+
* env?: Record<string, string>;
|
|
24
|
+
* }} params
|
|
25
|
+
* @returns {any} Parsed JSON when expectJson is true, otherwise trimmed stdout string
|
|
26
|
+
*/
|
|
27
|
+
export function runAws(params: {
|
|
28
|
+
profile?: string;
|
|
29
|
+
region?: string;
|
|
30
|
+
args: string[];
|
|
31
|
+
expectJson?: boolean;
|
|
32
|
+
verbose?: boolean;
|
|
33
|
+
env?: Record<string, string>;
|
|
34
|
+
}): any;
|
|
35
|
+
/**
|
|
36
|
+
* Run an AWS CLI command through `aws-vault exec` for profiles whose credentials
|
|
37
|
+
* are stored in the OS keychain rather than ~/.aws/credentials.
|
|
38
|
+
* @param {{
|
|
39
|
+
* profile: string;
|
|
40
|
+
* args: string[];
|
|
41
|
+
* duration?: string;
|
|
42
|
+
* expectJson?: boolean;
|
|
43
|
+
* verbose?: boolean;
|
|
44
|
+
* }} params
|
|
45
|
+
* @returns {any}
|
|
46
|
+
*/
|
|
47
|
+
export function runAwsVault(params: {
|
|
48
|
+
profile: string;
|
|
49
|
+
args: string[];
|
|
50
|
+
duration?: string;
|
|
51
|
+
expectJson?: boolean;
|
|
52
|
+
verbose?: boolean;
|
|
53
|
+
}): any;
|
|
54
|
+
/**
|
|
55
|
+
* Fetch the caller identity for a profile (account id and ARN).
|
|
56
|
+
* @param {{ profile?: string; region?: string; verbose?: boolean }} params
|
|
57
|
+
* @returns {{ Account: string; Arn: string; UserId: string }}
|
|
58
|
+
*/
|
|
59
|
+
export function getCallerIdentity(params: {
|
|
60
|
+
profile?: string;
|
|
61
|
+
region?: string;
|
|
62
|
+
verbose?: boolean;
|
|
63
|
+
}): {
|
|
64
|
+
Account: string;
|
|
65
|
+
Arn: string;
|
|
66
|
+
UserId: string;
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* Error raised when the AWS CLI (or aws-vault) exits non-zero.
|
|
70
|
+
* The `code` is the AWS service error code parsed from stderr (e.g. "UnauthorizedOperation").
|
|
71
|
+
*/
|
|
72
|
+
export class AwsCliError extends Error {
|
|
73
|
+
/**
|
|
74
|
+
* @param {string} message
|
|
75
|
+
* @param {string | null} [code]
|
|
76
|
+
*/
|
|
77
|
+
constructor(message: string, code?: string | null);
|
|
78
|
+
code: string | null;
|
|
79
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AwsCliError,
|
|
3
|
+
getCallerIdentity,
|
|
4
|
+
parseAwsErrorCode,
|
|
5
|
+
requireCommands,
|
|
6
|
+
runAws,
|
|
7
|
+
runAwsVault
|
|
8
|
+
} from "../../../__chunks/FNXUONAV.js";
|
|
9
|
+
export {
|
|
10
|
+
AwsCliError,
|
|
11
|
+
getCallerIdentity,
|
|
12
|
+
parseAwsErrorCode,
|
|
13
|
+
requireCommands,
|
|
14
|
+
runAws,
|
|
15
|
+
runAwsVault
|
|
16
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resolve the absolute path to a bundled IAM policy document.
|
|
3
|
+
* Policies live alongside the source in `iam/policies/`, and the CLI runs from
|
|
4
|
+
* source, so this path is valid at runtime.
|
|
5
|
+
* @param {string} fileName - Policy JSON file name (e.g. "user-admins-write-list.json")
|
|
6
|
+
* @returns {string}
|
|
7
|
+
*/
|
|
8
|
+
export function resolvePolicyPath(fileName: string): string;
|