From d2897ab4010a74e5fc98617785dfc9068c453c93 Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Fri, 25 Mar 2022 18:08:19 +0100 Subject: [PATCH] feat(NODE-4085): add typings for csfle shared library option support (#3179) --- src/deps.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/deps.ts b/src/deps.ts index 7b193a9d28..97cbd66376 100644 --- a/src/deps.ts +++ b/src/deps.ts @@ -295,6 +295,16 @@ export interface AutoEncryptionOptions { mongocryptdSpawnPath?: string; /** Command line arguments to use when auto-spawning a mongocryptd */ mongocryptdSpawnArgs?: string[]; + /** + * Full path to a CSFLE shared library to be used (instead of mongocryptd) + * @experimental + */ + csflePath?: string; + /** + * Search paths for a CSFLE shared library to be used (instead of mongocryptd) + * @experimental + */ + csfleSearchPaths?: string[]; }; proxyOptions?: ProxyOptions; /** The TLS options to use connecting to the KMS provider */ @@ -315,4 +325,5 @@ export interface AutoEncrypter { teardown(force: boolean, callback: Callback): void; encrypt(ns: string, cmd: Document, options: any, callback: Callback): void; decrypt(cmd: Document, options: any, callback: Callback): void; + readonly csfleVersionInfo: { version: bigint; versionStr: string } | null; }