@@ -595,7 +595,7 @@ export class ClientEncryption {
595595 /**
596596 * Encrypts a Match Expression or Aggregate Expression to query a range index.
597597 *
598- * Only supported when queryType is "rangePreview " and algorithm is "RangePreview ".
598+ * Only supported when queryType is "range " and algorithm is "Range ".
599599 *
600600 * @experimental The Range algorithm is experimental only. It is not intended for production use. It is subject to breaking changes.
601601 *
@@ -737,7 +737,7 @@ export interface ClientEncryptionEncryptOptions {
737737 | 'AEAD_AES_256_CBC_HMAC_SHA_512-Random'
738738 | 'Indexed'
739739 | 'Unindexed'
740- | 'RangePreview ' ;
740+ | 'Range ' ;
741741
742742 /**
743743 * The id of the Binary dataKey to use for encryption
@@ -757,7 +757,7 @@ export interface ClientEncryptionEncryptOptions {
757757 *
758758 * @experimental Public Technical Preview: The queryType `rangePreview` is experimental.
759759 */
760- queryType ?: 'equality' | 'rangePreview ' ;
760+ queryType ?: 'equality' | 'range ' ;
761761
762762 /** @experimental Public Technical Preview: The index options for a Queryable Encryption field supporting "rangePreview" queries.*/
763763 rangeOptions ?: RangeOptions ;
@@ -957,42 +957,3 @@ export interface RangeOptions {
957957 sparsity : Long ;
958958 precision ?: number ;
959959}
960-
961- /**
962- * @public
963- * Options to provide when encrypting data.
964- */
965- export interface ClientEncryptionEncryptOptions {
966- /**
967- * The algorithm to use for encryption.
968- */
969- algorithm :
970- | 'AEAD_AES_256_CBC_HMAC_SHA_512-Deterministic'
971- | 'AEAD_AES_256_CBC_HMAC_SHA_512-Random'
972- | 'Indexed'
973- | 'Unindexed'
974- | 'RangePreview' ;
975-
976- /**
977- * The id of the Binary dataKey to use for encryption
978- */
979- keyId ?: Binary ;
980-
981- /**
982- * A unique string name corresponding to an already existing dataKey.
983- */
984- keyAltName ?: string ;
985-
986- /** The contention factor. */
987- contentionFactor ?: bigint | number ;
988-
989- /**
990- * The query type supported. Only the queryType `equality` is stable.
991- *
992- * @experimental Public Technical Preview: The queryType `rangePreview` is experimental.
993- */
994- queryType ?: 'equality' | 'rangePreview' ;
995-
996- /** @experimental Public Technical Preview: The index options for a Queryable Encryption field supporting "rangePreview" queries.*/
997- rangeOptions ?: RangeOptions ;
998- }
0 commit comments