Commands/Lexicons/com/atproto/server/Remove-AtProtoServerSession.ps1

function Remove-AtProtoServerSession  {
<#
.Synopsis
    com.atproto.server.deleteSession
.Description
    com.atproto.server.deleteSession
.Link
    https://github.com/bluesky-social/atproto/tree/main/lexicons/com/atproto/server/deleteSession.json
#>

[Alias('Remove-AtProtocolServerSession','atproto.server.deleteSession','com.atproto.server.deleteSession')]
[CmdletBinding(SupportsShouldProcess)]
param(

)

begin {
$NamespaceID = 'com.atproto.server.deleteSession'
$httpMethod  = 'POST'
$InvokeAtSplat = [Ordered]@{Method=$httpMethod}
$InvokeAtSplat["PSTypeName"] = $NamespaceID
$parameterAliases = [Ordered]@{}
$AsByte = $false


    $parameterQueue = [Collections.Queue]::new()

}
process {

$parameterQueue.Enqueue([Ordered]@{} + $PSBoundParameters)            
        
}
end {

            $parameterQueue.ToArray() |
                Invoke-AtProtocol -Method $httpMethod -NamespaceID $NamespaceID -Parameter {
                    $_
                } -ParameterAlias $parameterAliases @InvokeAtSplat -ContentType $(
                    if ($ContentType) {
                        $ContentType
                    } else {
                        "application/json"   
                    }
                ) -AsByte:$AsByte -Property {
                    $_
                } -Cache:$(
                    if ($cache) {$cache} else { $false }
                )
        
}
}