diff --git a/types/gremlin/gremlin-tests.ts b/types/gremlin/gremlin-tests.ts index e1590c9b39..c3523133a8 100644 --- a/types/gremlin/gremlin-tests.ts +++ b/types/gremlin/gremlin-tests.ts @@ -5,14 +5,13 @@ import { } from "gremlin"; const { - RemoteConnection, - RemoteStrategy, - RemoteTraversal, - DriverRemoteConnection, - Client, - ResultSet, - Authenticator, - PlainTextSaslAuthenticator, + RemoteConnection, + RemoteStrategy, + RemoteTraversal, + DriverRemoteConnection, + Client, + ResultSet, + auth: { Authenticator, PlainTextSaslAuthenticator }, } = driver; const { diff --git a/types/gremlin/index.d.ts b/types/gremlin/index.d.ts index 947b9d1201..8eae34aafe 100644 --- a/types/gremlin/index.d.ts +++ b/types/gremlin/index.d.ts @@ -46,14 +46,16 @@ declare namespace driver { first(): any; } - class Authenticator { - constructor(options?: any); - evaluateChallenge(challenge: string): any; - } + namespace auth { + class Authenticator { + constructor(options?: any); + evaluateChallenge(challenge: string): any; + } - class PlainTextSaslAuthenticator extends Authenticator { - constructor(username: string, password: string, authzid?: string); - evaluateChallenge(challenge: string): Promise; + class PlainTextSaslAuthenticator extends Authenticator { + constructor(username: string, password: string, authzid?: string); + evaluateChallenge(challenge: string): Promise; + } } }