SendGridTools.psd1
|
# # Module manifest for module 'SendGridTools' # # Generated by: Philip Haglund # # Generated on: 2023-06-21 # @{ # Script module or binary module file associated with this manifest. RootModule = 'SendGridTools.psm1' # Version number of this module. ModuleVersion = '0.4.8' # Supported PSEditions # CompatiblePSEditions = @() # ID used to uniquely identify this module GUID = 'c30e3731-0195-4b7f-bc99-c05a17965d28' # Author of this module Author = 'Philip Haglund' # Company or vendor of this module CompanyName = 'Omnicit' # Copyright statement for this module Copyright = '(c) Philip Haglund. All rights reserved.' # Description of the functionality provided by this module Description = 'Manage SendGrid using its API with PowerShell functions and wrappers.' # Minimum version of the PowerShell engine required by this module PowerShellVersion = '5.1' # Name of the PowerShell host required by this module # PowerShellHostName = '' # Minimum version of the PowerShell host required by this module # PowerShellHostVersion = '' # Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only. # DotNetFrameworkVersion = '' # Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only. # ClrVersion = '' # Processor architecture (None, X86, Amd64) required by this module # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module # RequiredModules = @() # Assemblies that must be loaded prior to importing this module # RequiredAssemblies = @() # Script files (.ps1) that are run in the caller's environment prior to importing this module. # ScriptsToProcess = @() # Type files (.ps1xml) to be loaded when importing this module # TypesToProcess = @() # Format files (.ps1xml) to be loaded when importing this module FormatsToProcess = @('SendGridTools.format.ps1xml') # Modules to import as nested modules of the module specified in RootModule/ModuleToProcess # NestedModules = @() # Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export. FunctionsToExport = @('Add-SGEmailAddressToSuppressionGroup','Add-SGGlobalSuppression','Confirm-SGAuthenticatedDomain','Confirm-SGBrandedDomainLink','Connect-SendGrid','Disable-SGSubuser','Disconnect-SendGrid','Enable-SGSubuser','Get-SGAddressWhitelistSetting','Get-SGAlert','Get-SGApiKey','Get-SGAuthenticatedDomain','Get-SGBlock','Get-SGBounce','Get-SGBounceByClassification','Get-SGBouncePurgeSetting','Get-SGBrandedDomainLink','Get-SGDesign','Get-SGEmailActivity','Get-SGForwardBounceSetting','Get-SGForwardSpamSetting','Get-SGGlobalSuppression','Get-SGInvalidEmail','Get-SGIPAddress','Get-SGMailSetting','Get-SGPermissionScopes','Get-SGSpamReport','Get-SGSubuser','Get-SGSuppression','Get-SGSuppressionGroup','Get-SGTeammate','Invoke-SGCommand','New-SGAlert','New-SGApiKey','New-SGAuthenticatedDomain','New-SGBrandedDomainLink','New-SGCombinedDomain','New-SGSubuser','New-SGSuppressionGroup','Remove-SGAlert','Remove-SGApiKey','Remove-SGAuthenticatedDomain','Remove-SGBlock','Remove-SGBounce','Remove-SGBrandedDomainLink','Remove-SGGlobalSuppression','Remove-SGInvalidEmail','Remove-SGSpamReport','Remove-SGSubuser','Remove-SGSuppressionGroup','Send-SGMailMessage','Set-SGAddressWhitelistSetting','Set-SGAlert','Set-SGApiKey','Set-SGAuthenticatedDomain','Set-SGAuthenticatedDomainToSubUser','Set-SGBouncePurgeSetting','Set-SGBrandedDomainLink','Set-SGForwardBounceSetting','Set-SGForwardSpamSetting','Set-SGSuppressionGroup') # Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export. CmdletsToExport = '*' # Variables to export from this module VariablesToExport = '*' # Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export. AliasesToExport = @('ConvertTo-NameTitle','Add-SGSuppression','Add-SGAddressToSuppression','Connect-SG','Disconnect-SG','Get-SGActivity','Send-SGMessage','Send-SGMail') # DSC resources to export from this module # DscResourcesToExport = @() # List of all modules packaged with this module # ModuleList = @() # List of all files packaged with this module # FileList = @() # Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell. PrivateData = @{ PSData = @{ Prerelease = '' # Tags applied to this module. These help with module discovery in online galleries. Tags = @('SendGrid', 'Mail', 'PSEdition_Core', 'PSEdition_Desktop') # A URL to the license for this module. LicenseUri = 'https://github.com/PhilipHaglund/SendGridTools/blob/main/LICENSE' # A URL to the main website for this project. ProjectUri = 'https://github.com/PhilipHaglund/SendGridTools/' # A URL to an icon representing this module. IconUri = 'https://raw.githubusercontent.com/PhilipHaglund/SendGridTools/main/SendGridTools.png' # ReleaseNotes of this module ReleaseNotes = '## [0.4.8] - 2026-11-18 ### Fixed - The module imports in a new Windows PowerShell 5.1 session; the internal session class named a type that 5.1 had not loaded when the module is parsed. `New-SGSubuser` now also works in 5.1; it used a parameter that 5.1 does not have. - `New-SGAuthenticatedDomain` sends the addresses given with `-IPAddress` (it sent an empty value) and asks for a custom SPF only when `-CustomSPF` is set, and `New-SGCombinedDomain` no longer asks for one when only `-DisableAutomaticSecurity` is given. - `New-SGAuthenticatedDomain`, `New-SGBrandedDomainLink` and `New-SGCombinedDomain` send the subdomain given with `-SendGridSubdomain` and none when none is given; before, they failed, sent an empty subdomain or dropped it. - `Set-SGAuthenticatedDomain`, `Remove-SGAlert`, `Remove-SGSuppressionGroup`, `Set-SGSuppressionGroup`, `Remove-SGGlobalSuppression` and `New-SGSubuser` act on each id, address or object given, also from the pipeline. `Set-SGAuthenticatedDomain` made no change before, and `Set-SGSuppressionGroup` sends only the values given. - An expired session raises an error that names `Connect-SendGrid -Force`; it returned a text as if it were data. - Help: `Connect-SendGrid` gives the real session lifetime of one hour (it said 12 hours); `New-SGAuthenticatedDomain`, `New-SGBrandedDomainLink` and `New-SGCombinedDomain` no longer document a `-Force` parameter they do not have; `Get-SGBounce`, `Get-SGBlock`, `Get-SGGlobalSuppression`, `Get-SGInvalidEmail` and `Get-SGSpamReport` no longer state a 500-item limit; the first `New-SGBrandedDomainLink` example names the link it asks for. ### Security - Verbose output names the keys and value types of a request body but not its values, so a subuser password no longer shows with `-Verbose`. - `New-SGSubuser` returns only the created subuser and no longer writes its internal request, with the password in plain text, to the output. `Set-SGForwardSpamSetting` no longer writes its request, with the forwarding addresses, to the output. ### Changed - The module is built and tested on Linux, Windows and macOS in PowerShell 7 and in Windows PowerShell 5.1, and published to the PowerShell Gallery from GitHub Actions: every merge to main publishes a preview, and a full release comes only from a version tag. - The build resolves its dependencies locally into `output/RequiredModules` at pinned versions, runs the tests on Pester 5, and imports only the four Sampler task files that build and test use, so the publish and tag tasks and the `pack` workflow alias are gone. - The build accepts a version tag on the tip of main: the changelog check now looks at the commit, not at the branch name, which on a tag run is named after the tag. A version tag on an older main commit still fails the check. - Unit tests with mocked HTTP cover the transport and the commands whose requests or output are fixed above, in both shells, and check that the API key and request body values never appear in output, errors, verbose or debug. Quality tests import the built module in a new PowerShell 7 process and, on Windows, a new Windows PowerShell process, and check that the exported functions match the files in `source/Public`. The code coverage threshold is raised from 0 to 21. - The README states the real requirements (Windows PowerShell 5.1 or PowerShell 7) and the install and build steps, `about_SendGridTools` has real content, and the changelog lists every released version. ### Removed - The Azure Pipelines definition is removed. ' # Prerelease string of this module # Prerelease = '' # Flag to indicate whether the module requires explicit user acceptance for install/update/save # RequireLicenseAcceptance = $false # External dependent modules of this module # ExternalModuleDependencies = @() } # End of PSData hashtable } # End of PrivateData hashtable # HelpInfo URI of this module # HelpInfoURI = '' # Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix. # DefaultCommandPrefix = '' } |