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

    Interface ProvisionEmailAddressInput

    Input for SudoEmailClient.provisionEmailAddress.

    ProvisionEmailAddressInput

    interface ProvisionEmailAddressInput {
        allowSymmetricKeyGeneration?: boolean;
        displayName?: string;
        emailAddress: string;
        keyId?: string;
        ownershipProofToken: string;
    }
    Index
    allowSymmetricKeyGeneration?: boolean

    (optional) If false and no symmetric key is found, a KeyNotFoundError will be thrown. Defaults to true.

    displayName?: string

    A display name for the email address.

    emailAddress: string

    The email address to provision, in the form ${localPart}@${domain}.

    keyId?: string

    (optional) Identifier of a key pair in the key store to provision the email address 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.

    ownershipProofToken: string

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