Public/System/Get-SIAModuleConfiguration.ps1

function Get-SIAModuleConfiguration {
    <#
    .SYNOPSIS
        Returns psSIA's current module-wide configuration.
    .DESCRIPTION
        Returns the request timeout, retry behavior, auto-pagination, and log
        level that govern how Invoke-SIARequest behaves. These are client-side
        settings; they have no corresponding CyberArk API.
    .EXAMPLE
        Get-SIAModuleConfiguration

        Shows the current defaults.
    .INPUTS
        None.
    .OUTPUTS
        psSIA.ModuleConfiguration
    #>

    [CmdletBinding()]
    [OutputType('psSIA.ModuleConfiguration')]
    param()

    $config = $script:SIAModuleConfig.PSObject.Copy()
    $config.PSObject.TypeNames.Insert(0, 'psSIA.ModuleConfiguration')
    $config
}