@deephaven-enterprise/jsapi-types 1.20250219.131-beta → 1.20250219.133-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 +1 -1
- package/types/Iris.d.ts +60 -6
package/package.json
CHANGED
package/types/Iris.d.ts
CHANGED
|
@@ -257,6 +257,8 @@ export interface ReplicaStatus {
|
|
|
257
257
|
objects: readonly DhType.ide.VariableDefinition[];
|
|
258
258
|
status: string | null;
|
|
259
259
|
fullStackTrace: string | null;
|
|
260
|
+
errorMessage: string | null;
|
|
261
|
+
shortCauses: string | null;
|
|
260
262
|
envoyPrefix: string | null;
|
|
261
263
|
grpcUrl: string;
|
|
262
264
|
jsApiUrl: string;
|
|
@@ -270,9 +272,12 @@ export interface ReplicaStatus {
|
|
|
270
272
|
websocketPort: number | null;
|
|
271
273
|
workerPort: number | null;
|
|
272
274
|
initStartTime: DhType.DateWrapper | null;
|
|
275
|
+
initEndTime: DhType.DateWrapper | null;
|
|
273
276
|
dispatcherHost: string | null;
|
|
274
277
|
dispatcherPort: number | null;
|
|
275
278
|
processInfoId: string | null;
|
|
279
|
+
lastModifiedByAuthenticated: string | null;
|
|
280
|
+
lastUpdateTime: DhType.DateWrapper | null;
|
|
276
281
|
createWorkspaceData(data: {
|
|
277
282
|
id?: string;
|
|
278
283
|
data: string;
|
|
@@ -349,13 +354,22 @@ export interface QueryInfo extends BaseQueryInfoReadonly {
|
|
|
349
354
|
* @deprecated Use `designated.initStartTime` instead
|
|
350
355
|
*/
|
|
351
356
|
initStartTime: DhType.DateWrapper | null;
|
|
357
|
+
/**
|
|
358
|
+
* @deprecated Use `designated.initEndType` instead
|
|
359
|
+
*/
|
|
352
360
|
initEndTime: DhType.DateWrapper | null;
|
|
361
|
+
/**
|
|
362
|
+
* @deprecated Use `designated.lastUpdateTime` instead
|
|
363
|
+
*/
|
|
353
364
|
lastUpdateTime: DhType.DateWrapper | null;
|
|
354
365
|
/**
|
|
355
366
|
* @deprecated Use `designated.processInfoId` instead
|
|
356
367
|
*/
|
|
357
368
|
processInfoId: string | null;
|
|
358
369
|
lastModifiedTime: DhType.DateWrapper | null;
|
|
370
|
+
/**
|
|
371
|
+
* @deprecated Use `designated.lastModifiedByAuthenticated` instead
|
|
372
|
+
*/
|
|
359
373
|
lastModifiedByAuthenticated: string | null;
|
|
360
374
|
schedulingStartTime: string | null;
|
|
361
375
|
schedulingEndTime: string | null;
|
|
@@ -439,6 +453,9 @@ export interface QuerySelectionPermissions {
|
|
|
439
453
|
readOnlyUser: boolean;
|
|
440
454
|
}
|
|
441
455
|
|
|
456
|
+
/**
|
|
457
|
+
* @deprecated use CustomEvent instead
|
|
458
|
+
*/
|
|
442
459
|
export interface ClientListenerEvent<TDetail = unknown> {
|
|
443
460
|
detail: TDetail;
|
|
444
461
|
}
|
|
@@ -465,6 +482,16 @@ export interface RefreshToken {
|
|
|
465
482
|
get authenticatedUser(): string;
|
|
466
483
|
}
|
|
467
484
|
|
|
485
|
+
export interface ServerStatus {
|
|
486
|
+
state: 'Unknown' | 'Connected' | 'Disconnected';
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
export type ClientConnectionState = {
|
|
490
|
+
'connection.json': ServerStatus;
|
|
491
|
+
'Authentication Server': ServerStatus;
|
|
492
|
+
'Controller Server': ServerStatus;
|
|
493
|
+
};
|
|
494
|
+
|
|
468
495
|
export interface EnterpriseClient {
|
|
469
496
|
/**
|
|
470
497
|
* Get available assignment policy types.
|
|
@@ -478,13 +505,13 @@ export interface EnterpriseClient {
|
|
|
478
505
|
): Promise<QuerySelectionPermissions>;
|
|
479
506
|
getEditableQuery(serialId: string): Promise<EditableQueryInfo>;
|
|
480
507
|
getKnownConfigs(): QueryInfo[];
|
|
481
|
-
addEventListener(
|
|
508
|
+
addEventListener<T>(
|
|
482
509
|
type: string,
|
|
483
|
-
listener: (event: CustomEvent) => void
|
|
510
|
+
listener: (event: CustomEvent<T>) => void
|
|
484
511
|
): () => void;
|
|
485
512
|
removeEventListener<T>(
|
|
486
513
|
type: string,
|
|
487
|
-
listener: (event:
|
|
514
|
+
listener: (event: CustomEvent<T>) => void
|
|
488
515
|
): void;
|
|
489
516
|
disconnect(fireEvents?: boolean): void;
|
|
490
517
|
saveQuery(query: PlainEditableQueryInfo, doRestart: boolean): Promise<void>;
|
|
@@ -551,13 +578,15 @@ export interface EnterpriseClient {
|
|
|
551
578
|
* algorithm used to generate the keypair.
|
|
552
579
|
* @param username Username to authenticate as.
|
|
553
580
|
* @param operateAs Optional username to operate as. Defaults to `username`.
|
|
581
|
+
* @param ipAddress IP address returned by `getChallengeNonce`.
|
|
554
582
|
* @returns null if successful. Throws if authentication fails.
|
|
555
583
|
*/
|
|
556
584
|
challengeResponse: (
|
|
557
585
|
base64SignedNonce: string,
|
|
558
586
|
publicKeyWithSentinel: string,
|
|
559
587
|
username: string,
|
|
560
|
-
operateAs: string
|
|
588
|
+
operateAs: string | null,
|
|
589
|
+
ipAddress: string
|
|
561
590
|
) => Promise<null>;
|
|
562
591
|
|
|
563
592
|
/** True if the client is currently connected */
|
|
@@ -568,11 +597,16 @@ export interface EnterpriseClient {
|
|
|
568
597
|
* `challengeResponse()` for private / public key authentication.
|
|
569
598
|
*/
|
|
570
599
|
getChallengeNonce(): Promise<ChallengeNonce>;
|
|
600
|
+
|
|
601
|
+
/**
|
|
602
|
+
* Get the current connection state to all servers.
|
|
603
|
+
*/
|
|
604
|
+
readonly connectionState: ClientConnectionState;
|
|
571
605
|
}
|
|
572
606
|
|
|
573
607
|
export interface ChallengeNonce {
|
|
574
|
-
algorithm: 'SHA256withDSA';
|
|
575
608
|
nonce: string;
|
|
609
|
+
ipAddress: string;
|
|
576
610
|
}
|
|
577
611
|
|
|
578
612
|
export interface LoginCredentials {
|
|
@@ -604,9 +638,22 @@ export type QueryConstants = {
|
|
|
604
638
|
};
|
|
605
639
|
|
|
606
640
|
export interface EnterpriseClientConstructor {
|
|
607
|
-
new (websocketUrl: string): EnterpriseClient;
|
|
641
|
+
new (websocketUrl: string, connectOptions?: ConnectOptions): EnterpriseClient;
|
|
608
642
|
}
|
|
609
643
|
|
|
644
|
+
export interface ConnectOptions {
|
|
645
|
+
/**
|
|
646
|
+
* The transport factory to use for creating gRPC streams.
|
|
647
|
+
* <p>
|
|
648
|
+
* Defaults to null, indicating that the JS API should determine the appropriate transport to use.
|
|
649
|
+
*/
|
|
650
|
+
transportFactory?: GrpcTransportFactory | null;
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
export type GrpcTransport = DhType.grpc.GrpcTransport;
|
|
654
|
+
export type GrpcTransportFactory = DhType.grpc.GrpcTransportFactory;
|
|
655
|
+
export type GrpcTransportOptions = DhType.grpc.GrpcTransportOptions;
|
|
656
|
+
|
|
610
657
|
export interface IdeConstructor {
|
|
611
658
|
new (client: EnterpriseClient): Ide;
|
|
612
659
|
}
|
|
@@ -634,7 +681,14 @@ export type QueryInfoStatic = {
|
|
|
634
681
|
|
|
635
682
|
export type EnterpriseClientStatic = {
|
|
636
683
|
EVENT_CONNECT: 'connect';
|
|
684
|
+
EVENT_CONNECTION_STATUS_CHANGED: 'connectionstatuschanged';
|
|
685
|
+
/**
|
|
686
|
+
* @deprecated use EVENT_CONNECTION_STATUS_CHANGED and the dh.Client.connectionStatus field instead
|
|
687
|
+
*/
|
|
637
688
|
EVENT_DISCONNECT: 'disconnect';
|
|
689
|
+
/**
|
|
690
|
+
* @deprecated use EVENT_CONNECTION_STATUS_CHANGED and the dh.Client.connectionStatus field instead
|
|
691
|
+
*/
|
|
638
692
|
EVENT_RECONNECT: 'reconnect';
|
|
639
693
|
EVENT_RECONNECT_AUTH_FAILED: 'reconnectauthfailed';
|
|
640
694
|
EVENT_CONFIG_ADDED: 'configadded';
|