@deephaven-enterprise/jsapi-types 1.20240723.536-alpha-npm-publish.23386 → 1.20250801.196-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 +3 -3
- package/types/CommonTypes.d.ts +2 -2
- package/types/Iris.d.ts +64 -29
- package/types/index.d.ts +4 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deephaven-enterprise/jsapi-types",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.20250801.196-beta",
|
|
4
4
|
"description": "Deephaven Enterprise Jsapi Types",
|
|
5
5
|
"author": "Deephaven Data Labs LLC",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
],
|
|
18
18
|
"sideEffects": false,
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@deephaven/jsapi-types": "^1.0.0-dev0.
|
|
20
|
+
"@deephaven/jsapi-types": "^1.0.0-dev0.36.1"
|
|
21
21
|
},
|
|
22
22
|
"publishConfig": {
|
|
23
23
|
"access": "public"
|
|
24
24
|
},
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "14f4afc7fd893e4e15485f7041f204500b80f4a2"
|
|
26
26
|
}
|
package/types/CommonTypes.d.ts
CHANGED
|
@@ -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 {
|
|
@@ -80,7 +80,7 @@ export type QueryVariableDescriptor = dh.ide.VariableDescriptor & {
|
|
|
80
80
|
*/
|
|
81
81
|
export type LegacyQueryVariableDescriptor = {
|
|
82
82
|
querySerial: string;
|
|
83
|
-
query
|
|
83
|
+
query?: string;
|
|
84
84
|
};
|
|
85
85
|
|
|
86
86
|
/** In some cases such as a console panel, we may not have a descriptor but still want to fetch the deferred API. */
|
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
|
|
|
@@ -85,6 +85,9 @@ export type BaseQueryInfoReadonly = Readonly<
|
|
|
85
85
|
*/
|
|
86
86
|
runningVersion: string;
|
|
87
87
|
serial: string;
|
|
88
|
+
/**
|
|
89
|
+
* @deprecated use `designated.status` instead
|
|
90
|
+
*/
|
|
88
91
|
status: string;
|
|
89
92
|
workerKind: string;
|
|
90
93
|
}
|
|
@@ -129,8 +132,19 @@ export interface ReplicaStatus {
|
|
|
129
132
|
websocketPort: number | null;
|
|
130
133
|
workerPort: number | null;
|
|
131
134
|
initStartTime: DhType.DateWrapper | null;
|
|
135
|
+
dispatcherHost: string | null;
|
|
136
|
+
dispatcherPort: number | null;
|
|
132
137
|
processInfoId: string | null;
|
|
133
|
-
createWorkspaceData(data: {
|
|
138
|
+
createWorkspaceData(data: {
|
|
139
|
+
id?: string;
|
|
140
|
+
data: string;
|
|
141
|
+
version?: number;
|
|
142
|
+
}): Promise<string>;
|
|
143
|
+
saveWorkspaceData(data: {
|
|
144
|
+
id?: string;
|
|
145
|
+
data: string;
|
|
146
|
+
version?: number;
|
|
147
|
+
}): Promise<void>;
|
|
134
148
|
getObject(
|
|
135
149
|
object: DhType.ide.VariableDescriptor
|
|
136
150
|
): Promise<DhType.ide.VariableDefinition>;
|
|
@@ -318,16 +332,11 @@ export interface EnterpriseClient {
|
|
|
318
332
|
type: string,
|
|
319
333
|
listener: (event: CustomEvent) => void
|
|
320
334
|
): () => void;
|
|
321
|
-
removeEventListener(
|
|
335
|
+
removeEventListener<T>(
|
|
322
336
|
type: string,
|
|
323
|
-
listener: (event: ClientListenerEvent) => void
|
|
337
|
+
listener: (event: ClientListenerEvent<T>) => void
|
|
324
338
|
): void;
|
|
325
339
|
disconnect(): void;
|
|
326
|
-
getDispatcher(
|
|
327
|
-
serverGroup: string,
|
|
328
|
-
heapSizeMB: number,
|
|
329
|
-
engine: string
|
|
330
|
-
): Promise<ConsoleServerAddress>;
|
|
331
340
|
saveQuery(query: EditableQueryInfo, doRestart: boolean): Promise<void>;
|
|
332
341
|
createQuery(query: EditableQueryInfo): Promise<string>;
|
|
333
342
|
createAuthToken(key: string): Promise<string>;
|
|
@@ -379,6 +388,35 @@ export interface EnterpriseClient {
|
|
|
379
388
|
table: string,
|
|
380
389
|
type: ImportSourceTypeOption
|
|
381
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;
|
|
382
420
|
}
|
|
383
421
|
|
|
384
422
|
export interface LoginCredentials {
|
|
@@ -413,27 +451,17 @@ export interface EnterpriseClientConstructor {
|
|
|
413
451
|
new (websocketUrl: string): EnterpriseClient;
|
|
414
452
|
}
|
|
415
453
|
|
|
454
|
+
/**
|
|
455
|
+
* @deprecated should be replaced with `EditableQueryInfo`
|
|
456
|
+
*/
|
|
416
457
|
export interface ConsoleConfigConstructor {
|
|
417
458
|
new (): ConsoleConfig;
|
|
418
459
|
}
|
|
419
460
|
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
readonly jsApiUrl: string;
|
|
425
|
-
readonly serviceId: string;
|
|
426
|
-
readonly processInfoId: string;
|
|
427
|
-
readonly workerName: string;
|
|
428
|
-
|
|
429
|
-
close(): void;
|
|
430
|
-
addEventListener: (
|
|
431
|
-
name: string,
|
|
432
|
-
callback: (event: CustomEvent) => void
|
|
433
|
-
) => () => void;
|
|
434
|
-
removeEventListener(type: string, listener: () => void): void;
|
|
435
|
-
}
|
|
436
|
-
|
|
461
|
+
/**
|
|
462
|
+
* @deprecated use the `EditableQueryInfo` going forward, which can be used to represent the PersistentQuery backing a
|
|
463
|
+
* Code Studio without an intermediate stage
|
|
464
|
+
*/
|
|
437
465
|
export interface ConsoleConfig {
|
|
438
466
|
dispatcherHost?: string;
|
|
439
467
|
dispatcherPort?: number;
|
|
@@ -455,8 +483,7 @@ export interface IdeConstructor {
|
|
|
455
483
|
}
|
|
456
484
|
|
|
457
485
|
export interface Ide {
|
|
458
|
-
|
|
459
|
-
startWorker(config: ConsoleConfig): CancelablePromise<DhcConnectionDetails>;
|
|
486
|
+
getQueryConnection(queryInfo: QueryInfo): Promise<IdeConnection>;
|
|
460
487
|
}
|
|
461
488
|
|
|
462
489
|
export type ConsoleServerAddressType = {
|
|
@@ -536,6 +563,11 @@ export interface ServerConfigValues {
|
|
|
536
563
|
kubernetes: boolean;
|
|
537
564
|
webgl: boolean;
|
|
538
565
|
webglEditable: boolean;
|
|
566
|
+
gridDensity: 'compact' | 'regular' | 'spacious';
|
|
567
|
+
gridDensityEditable: boolean;
|
|
568
|
+
ruffSettings: Record<string, unknown> | null;
|
|
569
|
+
ruffEnabled: boolean;
|
|
570
|
+
ruffEditable: boolean;
|
|
539
571
|
}
|
|
540
572
|
|
|
541
573
|
export interface ApplyParametersResult {
|
|
@@ -583,6 +615,9 @@ export type EnterpriseDhType = typeof DhType & {
|
|
|
583
615
|
VariableType: typeof VariableType;
|
|
584
616
|
ConsoleServerAddress: ConsoleServerAddress;
|
|
585
617
|
Ide: IdeConstructor;
|
|
618
|
+
/**
|
|
619
|
+
* @deprecated instead of washing the Code Studio configuration through an old object, directly use an `EditableQueryInfo`
|
|
620
|
+
*/
|
|
586
621
|
ConsoleConfig: ConsoleConfigConstructor;
|
|
587
622
|
QueryInfo: QueryInfoStatic;
|
|
588
623
|
ImportSourceType: typeof ImportSourceType;
|
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';
|