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

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.
@@ -11196,6 +11198,8 @@ type CreateAddonResult = {
11196
11198
  'redisSentinelEnabled'?: boolean;
11197
11199
  /** PostgreSQL only: Configure wal_level setting. */
11198
11200
  'postgresqlWalLevel'?: 'replica' | 'logical';
11201
+ /** PostgreSQL only: Enable Supabase mode. */
11202
+ 'postgresqlSupabaseMode'?: boolean;
11199
11203
  /** PostgreSQL only: Run connection pooler in front of postgres instance. */
11200
11204
  'postgresqlConnectionPoolerEnabled'?: boolean;
11201
11205
  /** PostgreSQL only: Number of connection pooler replicas in case connection pooler is enabled. */
@@ -11204,6 +11208,8 @@ type CreateAddonResult = {
11204
11208
  'postgresqlReadConnectionPoolerEnabled'?: boolean;
11205
11209
  /** PostgreSQL only: Number of read-only connection pooler replicas in case read-only connection pooler is enabled. */
11206
11210
  'postgresqlReadConnectionPoolerReplicas'?: number;
11211
+ /** PostgreSQL only: Configure PostgreSQL for higher import speed. Not recommended for production workloads. */
11212
+ 'postgresqlImportMode'?: boolean;
11207
11213
  /** MySQL only: Run MySQL in HA configuration with auto-failover and connection poolers. */
11208
11214
  'mysqlHaModeEnabled'?: boolean;
11209
11215
  /** MysqlHA only: Number of connection router replicas in case connection router is enabled. */
@@ -11379,6 +11385,8 @@ type CreateAddonData = {
11379
11385
  'redisSentinelEnabled'?: boolean;
11380
11386
  /** PostgreSQL only: Configure wal_level setting. */
11381
11387
  'postgresqlWalLevel'?: 'replica' | 'logical';
11388
+ /** PostgreSQL only: Enable Supabase mode. */
11389
+ 'postgresqlSupabaseMode'?: boolean;
11382
11390
  /** PostgreSQL only: Run connection pooler in front of postgres instance. */
11383
11391
  'postgresqlConnectionPoolerEnabled'?: boolean;
11384
11392
  /** PostgreSQL only: Number of connection pooler replicas in case connection pooler is enabled. */
@@ -11387,6 +11395,8 @@ type CreateAddonData = {
11387
11395
  'postgresqlReadConnectionPoolerEnabled'?: boolean;
11388
11396
  /** PostgreSQL only: Number of read-only connection pooler replicas in case read-only connection pooler is enabled. */
11389
11397
  'postgresqlReadConnectionPoolerReplicas'?: number;
11398
+ /** PostgreSQL only: Configure PostgreSQL for higher import speed. Not recommended for production workloads. */
11399
+ 'postgresqlImportMode'?: boolean;
11390
11400
  /** MySQL only: Run MySQL in HA configuration with auto-failover and connection poolers. */
11391
11401
  'mysqlHaModeEnabled'?: boolean;
11392
11402
  /** MysqlHA only: Number of connection router replicas in case connection router is enabled. */
@@ -11520,6 +11530,8 @@ type PutAddonResult = {
11520
11530
  'redisSentinelEnabled'?: boolean;
11521
11531
  /** PostgreSQL only: Configure wal_level setting. */
11522
11532
  'postgresqlWalLevel'?: 'replica' | 'logical';
11533
+ /** PostgreSQL only: Enable Supabase mode. */
11534
+ 'postgresqlSupabaseMode'?: boolean;
11523
11535
  /** PostgreSQL only: Run connection pooler in front of postgres instance. */
11524
11536
  'postgresqlConnectionPoolerEnabled'?: boolean;
11525
11537
  /** PostgreSQL only: Number of connection pooler replicas in case connection pooler is enabled. */
@@ -11528,6 +11540,8 @@ type PutAddonResult = {
11528
11540
  'postgresqlReadConnectionPoolerEnabled'?: boolean;
11529
11541
  /** PostgreSQL only: Number of read-only connection pooler replicas in case read-only connection pooler is enabled. */
11530
11542
  'postgresqlReadConnectionPoolerReplicas'?: number;
11543
+ /** PostgreSQL only: Configure PostgreSQL for higher import speed. Not recommended for production workloads. */
11544
+ 'postgresqlImportMode'?: boolean;
11531
11545
  /** MySQL only: Run MySQL in HA configuration with auto-failover and connection poolers. */
11532
11546
  'mysqlHaModeEnabled'?: boolean;
11533
11547
  /** MysqlHA only: Number of connection router replicas in case connection router is enabled. */
@@ -11703,6 +11717,8 @@ type PutAddonData = {
11703
11717
  'redisSentinelEnabled'?: boolean;
11704
11718
  /** PostgreSQL only: Configure wal_level setting. */
11705
11719
  'postgresqlWalLevel'?: 'replica' | 'logical';
11720
+ /** PostgreSQL only: Enable Supabase mode. */
11721
+ 'postgresqlSupabaseMode'?: boolean;
11706
11722
  /** PostgreSQL only: Run connection pooler in front of postgres instance. */
11707
11723
  'postgresqlConnectionPoolerEnabled'?: boolean;
11708
11724
  /** PostgreSQL only: Number of connection pooler instances in case connection pooler is enabled. */
@@ -11711,6 +11727,8 @@ type PutAddonData = {
11711
11727
  'postgresqlReadConnectionPoolerEnabled'?: boolean;
11712
11728
  /** PostgreSQL only: Number of read-only connection pooler replicas in case read-only connection pooler is enabled. */
11713
11729
  'postgresqlReadConnectionPoolerReplicas'?: number;
11730
+ /** PostgreSQL only: Configure PostgreSQL for higher import speed. Not recommended for production workloads. */
11731
+ 'postgresqlImportMode'?: boolean;
11714
11732
  /** MySQL only: Run MySQL in HA configuration with auto-failover and connection poolers. */
11715
11733
  'mysqlHaModeEnabled'?: boolean;
11716
11734
  /** MysqlHA only: Number of connection router replicas in case connection router is enabled. */
@@ -11932,6 +11950,8 @@ type PatchAddonResult = {
11932
11950
  'redisSentinelEnabled'?: boolean;
11933
11951
  /** PostgreSQL only: Configure wal_level setting. */
11934
11952
  'postgresqlWalLevel'?: 'replica' | 'logical';
11953
+ /** PostgreSQL only: Enable Supabase mode. */
11954
+ 'postgresqlSupabaseMode'?: boolean;
11935
11955
  /** PostgreSQL only: Run connection pooler in front of postgres instance. */
11936
11956
  'postgresqlConnectionPoolerEnabled'?: boolean;
11937
11957
  /** PostgreSQL only: Number of connection pooler replicas in case connection pooler is enabled. */
@@ -11940,6 +11960,8 @@ type PatchAddonResult = {
11940
11960
  'postgresqlReadConnectionPoolerEnabled'?: boolean;
11941
11961
  /** PostgreSQL only: Number of read-only connection pooler replicas in case read-only connection pooler is enabled. */
11942
11962
  'postgresqlReadConnectionPoolerReplicas'?: number;
11963
+ /** PostgreSQL only: Configure PostgreSQL for higher import speed. Not recommended for production workloads. */
11964
+ 'postgresqlImportMode'?: boolean;
11943
11965
  /** MySQL only: Run MySQL in HA configuration with auto-failover and connection poolers. */
11944
11966
  'mysqlHaModeEnabled'?: boolean;
11945
11967
  /** MysqlHA only: Number of connection router replicas in case connection router is enabled. */
@@ -12090,6 +12112,8 @@ type PatchAddonData = {
12090
12112
  'redisSentinelEnabled'?: boolean;
12091
12113
  /** PostgreSQL only: Configure wal_level setting. */
12092
12114
  'postgresqlWalLevel'?: 'replica' | 'logical';
12115
+ /** PostgreSQL only: Enable Supabase mode. */
12116
+ 'postgresqlSupabaseMode'?: boolean;
12093
12117
  /** PostgreSQL only: Run connection pooler in front of postgres instance. */
12094
12118
  'postgresqlConnectionPoolerEnabled'?: boolean;
12095
12119
  /** PostgreSQL only: Number of connection pooler instances in case connection pooler is enabled. */
@@ -12098,6 +12122,8 @@ type PatchAddonData = {
12098
12122
  'postgresqlReadConnectionPoolerEnabled'?: boolean;
12099
12123
  /** PostgreSQL only: Number of read-only connection pooler replicas in case read-only connection pooler is enabled. */
12100
12124
  'postgresqlReadConnectionPoolerReplicas'?: number;
12125
+ /** PostgreSQL only: Configure PostgreSQL for higher import speed. Not recommended for production workloads. */
12126
+ 'postgresqlImportMode'?: boolean;
12101
12127
  /** MySQL only: Run MySQL in HA configuration with auto-failover and connection poolers. */
12102
12128
  'mysqlHaModeEnabled'?: boolean;
12103
12129
  /** MysqlHA only: Number of connection router replicas in case connection router is enabled. */
@@ -12816,17 +12842,19 @@ type ImportAddonBackupData = {
12816
12842
  'name'?: string;
12817
12843
  /** A database connection string. Example: "mongodb://mongodb0.example.com:27017" */
12818
12844
  'connectionString': string;
12845
+ /** Detect and import all databases. If false, attempts to import only the database specified in the connection string */
12846
+ 'importAllDatabases'?: boolean;
12819
12847
  /** The compression algorithm for storing the imported file. Defaults to `gz`. Example: "gz" */
12820
12848
  'compressionType'?: 'gz' | 'zstd';
12821
12849
  /** Custom destination to store the imported backup in. If not specified, backup is stored in Northflank-managed destination. */
12822
- 'customDestinationId': string;
12850
+ 'customDestinationId'?: string;
12823
12851
  } | {
12824
12852
  /** The name of the backup. If not provided, a default name will be generated containing the current date. Example: "Example Backup" */
12825
12853
  'name'?: string;
12826
12854
  /** A url pointing to an existing backup stored as a GNU zip (.gz) file. Example: "https://example.com/backup.db.gz" */
12827
12855
  'importUrl': string;
12828
12856
  /** Custom destination to store the imported backup in. If not specified, backup is stored in Northflank-managed destination. */
12829
- 'customDestinationId': string;
12857
+ 'customDestinationId'?: string;
12830
12858
  };
12831
12859
  /** Imports a database from an external archive or existing live database. */
12832
12860
  declare class ImportAddonBackupEndpoint extends PostApiEndpoint<ImportAddonBackupRequest, ImportAddonBackupResult> {