@northflank/js-client 0.8.13-beta.2 → 0.8.13-beta.3

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.
@@ -427,7 +427,7 @@ type ExecConfig = {
427
427
  tty?: boolean;
428
428
  ttyRows?: number;
429
429
  ttyColumns?: number;
430
- execV2?: boolean;
430
+ execLocationHint?: ValidExecLocations | undefined;
431
431
  };
432
432
  declare class ExecCommandStandard extends EventEmitter implements ExecCommand {
433
433
  private readonly baseUrl;
@@ -456,6 +456,8 @@ declare class ExecCommandStandard extends EventEmitter implements ExecCommand {
456
456
  private reset;
457
457
  }
458
458
 
459
+ declare const VALID_EXEC_LOCATIONS: readonly ["us", "eu", "asia"];
460
+ type ValidExecLocations = (typeof VALID_EXEC_LOCATIONS)[number];
459
461
  type CommandResult = {
460
462
  exitCode: number;
461
463
  status: 'Success' | 'Failure' | 'Unknown';
@@ -468,7 +470,7 @@ type ExecCommandData = {
468
470
  shell?: string;
469
471
  user?: string | number;
470
472
  group?: string | number;
471
- execV2?: boolean;
473
+ execLocationHint?: ValidExecLocations | undefined;
472
474
  };
473
475
  type ExecCommandDataAddon = ExecCommandData & {
474
476
  instanceName: string;
@@ -488,9 +490,9 @@ type CommandInfo = {
488
490
  declare class NorthflankExecCommand {
489
491
  private readonly contextProvider;
490
492
  private readonly agent?;
491
- private session?;
492
- constructor(contextProvider: ApiClientContextProvider, agent?: any | undefined, session?: ClientHttp2Session | undefined);
493
- get http2Session(): ClientHttp2Session;
493
+ protected sessionRegistry: Partial<Record<ValidExecLocations, ClientHttp2Session>>;
494
+ constructor(contextProvider: ApiClientContextProvider, agent?: any | undefined);
495
+ protected http2Session(execLocationHint: ValidExecLocations): ClientHttp2Session;
494
496
  /**
495
497
  * Runs command on a Northflank service and waits for completion returning command result and
496
498
  * standard output and standard error emitted during commmand execution.