diff --git a/src/client-side-encryption/client_encryption.ts b/src/client-side-encryption/client_encryption.ts index 10058969ea0..884a9ed0bd1 100644 --- a/src/client-side-encryption/client_encryption.ts +++ b/src/client-side-encryption/client_encryption.ts @@ -294,7 +294,7 @@ export class ClientEncryption { async rewrapManyDataKey( filter: Filter, options?: ClientEncryptionRewrapManyDataKeyProviderOptions - ): Promise<{ bulkWriteResult?: BulkWriteResult }> { + ): Promise { let keyEncryptionKeyBson = undefined; if (options) { const keyEncryptionKey = Object.assign({ provider: options.provider }, options.masterKey); @@ -927,7 +927,7 @@ export type TextQueryOptions = StringQueryOptions; /** * @public - * @experimental + * Options interface for `rewrapManyDataKey`; selects the new KMS provider/masterKey for bulk key rotation. */ export interface ClientEncryptionRewrapManyDataKeyProviderOptions { provider: ClientEncryptionDataKeyProvider; @@ -988,7 +988,6 @@ export interface ClientEncryptionOptions { /** * @experimental - * * The timeout setting to be used for all the operations on ClientEncryption. * * When provided, `timeoutMS` is used as the timeout for each operation executed on @@ -1144,7 +1143,7 @@ export interface ClientEncryptionCreateDataKeyProviderOptions { */ keyAltNames?: string[] | undefined; - /** @experimental */ + /** Optional 96-byte custom key material used when creating a data key instead of libmongocrypt’s random material. **/ keyMaterial?: Buffer | Binary; /** @internal */ @@ -1153,7 +1152,7 @@ export interface ClientEncryptionCreateDataKeyProviderOptions { /** * @public - * @experimental + * Public result shape describing the `bulkWriteResult` produced by `rewrapManyDataKey`. */ export interface ClientEncryptionRewrapManyDataKeyResult { /** The result of rewrapping data keys. If unset, no keys matched the filter. */ diff --git a/src/operations/create_collection.ts b/src/operations/create_collection.ts index 15733c91176..c861190e167 100644 --- a/src/operations/create_collection.ts +++ b/src/operations/create_collection.ts @@ -95,7 +95,7 @@ export interface CreateCollectionOptions extends Omit { - /** @experimental */ + /** Queryable Encryption field schema used during collection drop so associated state collections are dropped too. **/ encryptedFields?: Document; } diff --git a/test/types/client-side-encryption.test-d.ts b/test/types/client-side-encryption.test-d.ts index 9437413450d..ecb4781f62b 100644 --- a/test/types/client-side-encryption.test-d.ts +++ b/test/types/client-side-encryption.test-d.ts @@ -6,6 +6,7 @@ import type { AzureEncryptionKeyOptions, ClientEncryption, ClientEncryptionEncryptOptions, + ClientEncryptionRewrapManyDataKeyResult, GCPEncryptionKeyOptions, KMSProviders, RangeOptions @@ -160,6 +161,8 @@ expectAssignable({ declare const clientEncryption: ClientEncryption; { - await clientEncryption.rewrapManyDataKey({}); - await clientEncryption.rewrapManyDataKey({}, { provider: 'aws' }); + expectType(await clientEncryption.rewrapManyDataKey({})); + expectType( + await clientEncryption.rewrapManyDataKey({}, { provider: 'aws' }) + ); }