@deephaven-enterprise/jsapi-types 1.20240723.109-beta → 1.20240723.111-beta

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deephaven-enterprise/jsapi-types",
3
- "version": "1.20240723.109-beta",
3
+ "version": "1.20240723.111-beta",
4
4
  "description": "Deephaven Enterprise Jsapi Types",
5
5
  "author": "Deephaven Data Labs LLC",
6
6
  "license": "SEE LICENSE IN LICENSE.md",
@@ -22,5 +22,5 @@
22
22
  "publishConfig": {
23
23
  "access": "public"
24
24
  },
25
- "gitHead": "eaee97eda8384f0461eb34b2db379b822ba3882a"
25
+ "gitHead": "3e02abefa4b065e7e7f6fe2b7d5d4cb51f269e2a"
26
26
  }
@@ -3,7 +3,7 @@ import type {
3
3
  ConsoleServerAddress,
4
4
  QueryConfigurationType,
5
5
  QueryConstants,
6
- } from './Iris';
6
+ } from './Iris.js';
7
7
 
8
8
  /** Copied from @deephaven/redux to avoid the dependency */
9
9
  export interface UserPermissions {
package/types/Iris.d.ts CHANGED
@@ -6,8 +6,8 @@ import type { dh as DhType } from '@deephaven/jsapi-types';
6
6
  import {
7
7
  Parameterized,
8
8
  ParameterizedQueryVariableType,
9
- } from './parameterizedQueryTypes';
10
- import { ControllerQueryConstants, WorkerKind } from './CommonTypes';
9
+ } from './parameterizedQueryTypes.js';
10
+ import { ControllerQueryConstants, WorkerKind } from './CommonTypes.js';
11
11
 
12
12
  export type CancelablePromise<T> = Promise<T> & { cancel: () => undefined };
13
13
 
@@ -388,6 +388,35 @@ export interface EnterpriseClient {
388
388
  table: string,
389
389
  type: ImportSourceTypeOption
390
390
  ): Promise<string[]>;
391
+
392
+ /**
393
+ * Authenticate a user using a signed nonce + public key.
394
+ * @param base64SignedNonce Nonce returned by `getChallengeNonce` and signed
395
+ * with a private key.
396
+ * @param publicKeyWithSentinel Public key corresponding to the private key
397
+ * used to sign the nonce. Includes a sentinel prefix that identifies the
398
+ * algorithm used to generate the keypair.
399
+ * @param username Username to authenticate as.
400
+ * @param operateAs Optional username to operate as. Defaults to `username`.
401
+ * @returns null if successful. Throws if authentication fails.
402
+ */
403
+ challengeResponse: (
404
+ base64SignedNonce: string,
405
+ publicKeyWithSentinel: string,
406
+ username: string,
407
+ operateAs: string
408
+ ) => Promise<null>;
409
+
410
+ /**
411
+ * Get a Base64 encoded challenge nonce for that can be signed and passed to
412
+ * `challengeResponse()` for private / public key authentication.
413
+ */
414
+ getChallengeNonce(): Promise<ChallengeNonce>;
415
+ }
416
+
417
+ export interface ChallengeNonce {
418
+ algorithm: 'SHA256withDSA';
419
+ nonce: string;
391
420
  }
392
421
 
393
422
  export interface LoginCredentials {
package/types/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export * from './CommonTypes';
2
- export * from './parameterizedQueryTypes';
3
- export * from './CommonTypes';
4
- export * from './Iris';
1
+ export * from './CommonTypes.js';
2
+ export * from './parameterizedQueryTypes.js';
3
+ export * from './CommonTypes.js';
4
+ export * from './Iris.js';