mongodb 6.7.0-dev.20240607.sha.aa429f8c → 6.7.0-dev.20240613.sha.c1af6adc

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -17,7 +17,7 @@ import { BufferPool, MongoDBCollectionNamespace, promiseWithResolvers } from '..
17
17
  import { type DataKey } from './client_encryption';
18
18
  import { MongoCryptError } from './errors';
19
19
  import { type MongocryptdManager } from './mongocryptd_manager';
20
- import { type ClientEncryptionDataKeyProvider, type KMSProviders } from './providers';
20
+ import { type KMSProviders } from './providers';
21
21
 
22
22
  let socks: SocksLib | null = null;
23
23
  function loadSocks(): SocksLib {
@@ -110,6 +110,8 @@ export type CSFLEKMSTlsOptions = {
110
110
  kmip?: ClientEncryptionTlsOptions;
111
111
  local?: ClientEncryptionTlsOptions;
112
112
  azure?: ClientEncryptionTlsOptions;
113
+
114
+ [key: string]: ClientEncryptionTlsOptions | undefined;
113
115
  };
114
116
 
115
117
  /**
@@ -319,7 +321,7 @@ export class StateMachine {
319
321
 
320
322
  const tlsOptions = this.options.tlsOptions;
321
323
  if (tlsOptions) {
322
- const kmsProvider = request.kmsProvider as ClientEncryptionDataKeyProvider;
324
+ const kmsProvider = request.kmsProvider;
323
325
  const providerTlsOptions = tlsOptions[kmsProvider];
324
326
  if (providerTlsOptions) {
325
327
  const error = this.validateTlsOptions(kmsProvider, providerTlsOptions);