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.7.1'

# 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-SGEnforcedTls','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-SGEnforcedTls','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.7.1] - 2026-11-21

### Changed

- After a session has expired, the following commands say `The SendGrid session has expired. Run Connect-SendGrid -Force to reconnect.`, until `Connect-SendGrid` or `Disconnect-SendGrid` is run. A failed `Connect-SendGrid` also removes the session. Before, only the first command said so; the following commands said `You must call the Connect-SendGrid cmdlet before calling any other cmdlets.`, as if `Connect-SendGrid` had never been run.

### Fixed

- `Set-SGSuppressionGroup`, `Set-SGAuthenticatedDomain`, `Set-SGBrandedDomainLink` and `Set-SGAlert` refuse an update without fields: `Nothing to update for <what> <id>. Specify <parameters>.` and send no request. The first three refuse it also with `-WhatIf`. The refusal ends the pipeline at the first such object, so with `Set-SGAlert` the alerts after it are not updated. Before, each sent a PATCH request with an empty body `{}` for every id.
- In Windows PowerShell 5.1 an answer with a JSON content type and no character set is decoded as UTF-8, so letters such as the Swedish a with ring, the euro sign and emoji come back right. Before, such an answer was decoded as ISO-8859-1, and each of these characters came back as two to four wrong characters. A named character set is followed as before. Other types without one, such as `text/plain`, are still decoded as ISO-8859-1. PowerShell 7 is unchanged.
- Every request with a body is sent as UTF-8 with `Content-Type: application/json; charset=utf-8`, in both shells, so the euro sign and emoji reach SendGrid, for example in the subject, text and names of `Send-SGMailMessage`. Before, Windows PowerShell 5.1 sent the body as ISO-8859-1. The Swedish a with ring, a with diaeresis, o with diaeresis and e with acute went out as the single bytes `E5 E4 F6 E9`, which are not valid UTF-8, and the euro sign and emoji went out as `?`. Both shells sent `Content-Type: application/json` without a character set. Requests without a body are unchanged.
- `Remove-SGBlock`, `Remove-SGBounce`, `Remove-SGInvalidEmail` and `Remove-SGSpamReport` take a `[MailAddress]` from the pipeline and send only its address, as `Remove-SGGlobalSuppression` does. Before, they refused it with `Failed to convert InputObject to an email address.`
- `Send-SGMailMessage -Priority` is sent as the headers `X-Priority`, `Importance` and `Priority` (High `1`/`high`/`urgent`, Normal `3`/`normal`/`normal`, Low `5`/`low`/`non-urgent`). Before, it was sent as a top-level `priority` field, which SendGrid''s Mail Send API does not have, so it had no effect.
- `Get-SGTeammate` without `-Username` reads every page (50 at a time). Before, it read one page, which SendGrid limits to 500 teammates.
- `Add-SGEmailAddressToSuppressionGroup` with one address sends it as a list. Before, SendGrid refused one address with `invalid json` (HTTP 400).
- `Get-SGEmailActivity` sends a whole number for `-Property AsmGroupId` and `Clicks` without quotes, and for `-Property AsmGroupName` it sends the group id found for the name without quotes. Before, SendGrid refused these filters with `operator = is incompatible with NUMBER, STRING` for one value and `operator IN is incompatible with NUMBER, STRING, STRING` for two (HTTP 400).
- `Set-SGAlert` updates an alert of type `usage_limit`. Before, it said `The alert with ID <id> is an unknown type. Create an issue on GitHub.` and sent nothing.

'


        # 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 = ''

}