@sudoplatform/sudo-email
    Preparing search index...

    Interface ProvisionEmailAliasInput

    Input for SudoEmailClient.provisionEmailAlias

    ProvisionEmailAliasInput

    interface ProvisionEmailAliasInput {
        aliasAddress: string;
        expiresAt?: Date;
        keyId?: string;
        metadata?: Record<string, any>;
        ownershipProofToken: string;
        realAddress: string;
    }
    Index
    aliasAddress: string

    The email alias address to be provisioned in the [local-part]@[domain] format.

    expiresAt?: Date

    Optional expiration date for the email alias. If not provided, the alias will not expire.

    keyId?: string

    Optional identifier of a key pair in the key store to provision the email alias with, instead of a generated key pair or the singleton key pair. Requires SudoEmailClientConfig.allowCallerManagedKeys (the default); otherwise InvalidArgumentError is thrown. KeyNotFoundError is thrown if the key pair isn't in the key store.

    metadata?: Record<string, any>

    Optional metadata to associate with the email alias.

    ownershipProofToken: string

    The signed ownership proof of the Sudo to be associated with the provisioned email alias. The ownership proof must contain an audience of "sudoplatform".

    realAddress: string

    The real email address that the alias will forward to in the [local-part]@[domain] format.