Skip to content

@mndw/sdk / @mndw/sdk

@mndw/sdk ​

Classes ​

BackendBadGateway ​

Defined in: frontend/sdk/src/backend-client.ts:256

Extends ​

Constructors ​

Constructor ​

new BackendBadGateway(id): BackendBadGateway

Defined in: frontend/sdk/src/backend-client.ts:259

Parameters ​
id ​

string

Returns ​

BackendBadGateway

Overrides ​

BackendError.constructor

Properties ​

cause? ​

optional cause?: unknown

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.error.d.ts:26

Inherited from ​

BackendError.cause

code ​

readonly code: "BAD_GATEWAY" = 'BAD_GATEWAY'

Defined in: frontend/sdk/src/backend-client.ts:257

Overrides ​

BackendError.code

id ​

readonly id: string | undefined

Defined in: frontend/sdk/src/backend-client.ts:160

Inherited from ​

BackendError.id

message ​

message: string

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1077

Inherited from ​

BackendError.message

name ​

name: string

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1076

Inherited from ​

BackendError.name

originalStack? ​

optional originalStack?: string

Defined in: node_modules/.pnpm/zone.js@0.15.1/node_modules/zone.js/lib/zone.d.ts:38

Original stack trace with no modifications

Inherited from ​

BackendError.originalStack

stack? ​

optional stack?: string

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1078

Inherited from ​

BackendError.stack

zoneAwareStack? ​

optional zoneAwareStack?: string

Defined in: node_modules/.pnpm/zone.js@0.15.1/node_modules/zone.js/lib/zone.d.ts:34

Stack trace where extra frames have been removed and zone names added.

Inherited from ​

BackendError.zoneAwareStack

stackTraceLimit ​

static stackTraceLimit: number

Defined in: node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/globals.d.ts:68

The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)).

The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed.

If set to a non-number value, or set to a negative number, stack traces will not capture any frames.

Inherited from ​

BackendError.stackTraceLimit

Methods ​

captureStackTrace() ​

static captureStackTrace(targetObject, constructorOpt?): void

Defined in: node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/globals.d.ts:52

Creates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.

js
const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack;  // Similar to `new Error().stack`

The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.

The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.

The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:

js
function a() {
  b();
}

function b() {
  c();
}

function c() {
  // Create an error without stack trace to avoid calculating the stack trace twice.
  const { stackTraceLimit } = Error;
  Error.stackTraceLimit = 0;
  const error = new Error();
  Error.stackTraceLimit = stackTraceLimit;

  // Capture the stack trace above function b
  Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
  throw error;
}

a();
Parameters ​
targetObject ​

object

constructorOpt? ​

Function

Returns ​

void

Inherited from ​

BackendError.captureStackTrace

prepareStackTrace() ​

static prepareStackTrace(err, stackTraces): any

Defined in: node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/globals.d.ts:56

Parameters ​
err ​

Error

stackTraces ​

CallSite[]

Returns ​

any

See ​

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

Inherited from ​

BackendError.prepareStackTrace


BackendBlocked ​

Defined in: frontend/sdk/src/backend-client.ts:243

Extends ​

Constructors ​

Constructor ​

new BackendBlocked(id, blockers, retryAfterSeconds): BackendBlocked

Defined in: frontend/sdk/src/backend-client.ts:246

Parameters ​
id ​

string

blockers ​

object[]

retryAfterSeconds ​

number | null

Returns ​

BackendBlocked

Overrides ​

BackendError.constructor

Properties ​

blockers ​

readonly blockers: object[]

Defined in: frontend/sdk/src/backend-client.ts:248

permission ​

permission: "persistent-rci-session:read" | "persistent-rci-session:write" = persistentRciPermissionSchema

prerequisite? ​

optional prerequisite?: string

reason ​

reason: string

cause? ​

optional cause?: unknown

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.error.d.ts:26

Inherited from ​

BackendError.cause

code ​

readonly code: "BACKEND_BLOCKED" = 'BACKEND_BLOCKED'

Defined in: frontend/sdk/src/backend-client.ts:244

Overrides ​

BackendError.code

id ​

readonly id: string | undefined

Defined in: frontend/sdk/src/backend-client.ts:160

Inherited from ​

BackendError.id

message ​

message: string

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1077

Inherited from ​

BackendError.message

name ​

name: string

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1076

Inherited from ​

BackendError.name

originalStack? ​

optional originalStack?: string

Defined in: node_modules/.pnpm/zone.js@0.15.1/node_modules/zone.js/lib/zone.d.ts:38

Original stack trace with no modifications

Inherited from ​

BackendError.originalStack

retryAfterSeconds ​

readonly retryAfterSeconds: number | null

Defined in: frontend/sdk/src/backend-client.ts:249

stack? ​

optional stack?: string

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1078

Inherited from ​

BackendError.stack

zoneAwareStack? ​

optional zoneAwareStack?: string

Defined in: node_modules/.pnpm/zone.js@0.15.1/node_modules/zone.js/lib/zone.d.ts:34

Stack trace where extra frames have been removed and zone names added.

Inherited from ​

BackendError.zoneAwareStack

stackTraceLimit ​

static stackTraceLimit: number

Defined in: node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/globals.d.ts:68

The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)).

The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed.

If set to a non-number value, or set to a negative number, stack traces will not capture any frames.

Inherited from ​

BackendError.stackTraceLimit

Methods ​

captureStackTrace() ​

static captureStackTrace(targetObject, constructorOpt?): void

Defined in: node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/globals.d.ts:52

Creates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.

js
const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack;  // Similar to `new Error().stack`

The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.

The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.

The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:

js
function a() {
  b();
}

function b() {
  c();
}

function c() {
  // Create an error without stack trace to avoid calculating the stack trace twice.
  const { stackTraceLimit } = Error;
  Error.stackTraceLimit = 0;
  const error = new Error();
  Error.stackTraceLimit = stackTraceLimit;

  // Capture the stack trace above function b
  Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
  throw error;
}

a();
Parameters ​
targetObject ​

object

constructorOpt? ​

Function

Returns ​

void

Inherited from ​

BackendError.captureStackTrace

prepareStackTrace() ​

static prepareStackTrace(err, stackTraces): any

Defined in: node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/globals.d.ts:56

Parameters ​
err ​

Error

stackTraces ​

CallSite[]

Returns ​

any

See ​

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

Inherited from ​

BackendError.prepareStackTrace


BackendDisabled ​

Defined in: frontend/sdk/src/backend-client.ts:189

Extends ​

Constructors ​

Constructor ​

new BackendDisabled(id): BackendDisabled

Defined in: frontend/sdk/src/backend-client.ts:192

Parameters ​
id ​

string

Returns ​

BackendDisabled

Overrides ​

BackendError.constructor

Properties ​

cause? ​

optional cause?: unknown

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.error.d.ts:26

Inherited from ​

BackendError.cause

code ​

readonly code: "DISABLED" = 'DISABLED'

Defined in: frontend/sdk/src/backend-client.ts:190

Overrides ​

BackendError.code

id ​

readonly id: string | undefined

Defined in: frontend/sdk/src/backend-client.ts:160

Inherited from ​

BackendError.id

message ​

message: string

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1077

Inherited from ​

BackendError.message

name ​

name: string

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1076

Inherited from ​

BackendError.name

originalStack? ​

optional originalStack?: string

Defined in: node_modules/.pnpm/zone.js@0.15.1/node_modules/zone.js/lib/zone.d.ts:38

Original stack trace with no modifications

Inherited from ​

BackendError.originalStack

stack? ​

optional stack?: string

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1078

Inherited from ​

BackendError.stack

zoneAwareStack? ​

optional zoneAwareStack?: string

Defined in: node_modules/.pnpm/zone.js@0.15.1/node_modules/zone.js/lib/zone.d.ts:34

Stack trace where extra frames have been removed and zone names added.

Inherited from ​

BackendError.zoneAwareStack

stackTraceLimit ​

static stackTraceLimit: number

Defined in: node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/globals.d.ts:68

The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)).

The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed.

If set to a non-number value, or set to a negative number, stack traces will not capture any frames.

Inherited from ​

BackendError.stackTraceLimit

Methods ​

captureStackTrace() ​

static captureStackTrace(targetObject, constructorOpt?): void

Defined in: node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/globals.d.ts:52

Creates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.

js
const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack;  // Similar to `new Error().stack`

The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.

The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.

The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:

js
function a() {
  b();
}

function b() {
  c();
}

function c() {
  // Create an error without stack trace to avoid calculating the stack trace twice.
  const { stackTraceLimit } = Error;
  Error.stackTraceLimit = 0;
  const error = new Error();
  Error.stackTraceLimit = stackTraceLimit;

  // Capture the stack trace above function b
  Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
  throw error;
}

a();
Parameters ​
targetObject ​

object

constructorOpt? ​

Function

Returns ​

void

Inherited from ​

BackendError.captureStackTrace

prepareStackTrace() ​

static prepareStackTrace(err, stackTraces): any

Defined in: node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/globals.d.ts:56

Parameters ​
err ​

Error

stackTraces ​

CallSite[]

Returns ​

any

See ​

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

Inherited from ​

BackendError.prepareStackTrace


BackendError ​

Defined in: frontend/sdk/src/backend-client.ts:159

Extends ​

  • Error

Extended by ​

Constructors ​

Constructor ​

new BackendError(message, code, id?): BackendError

Defined in: frontend/sdk/src/backend-client.ts:163

Parameters ​
message ​

string

code ​

BackendErrorCode

id? ​

string

Returns ​

BackendError

Overrides ​

Error.constructor

Properties ​

cause? ​

optional cause?: unknown

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.error.d.ts:26

Inherited from ​

Error.cause

code ​

readonly code: BackendErrorCode

Defined in: frontend/sdk/src/backend-client.ts:161

id ​

readonly id: string | undefined

Defined in: frontend/sdk/src/backend-client.ts:160

message ​

message: string

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1077

Inherited from ​

Error.message

name ​

name: string

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1076

Inherited from ​

Error.name

originalStack? ​

optional originalStack?: string

Defined in: node_modules/.pnpm/zone.js@0.15.1/node_modules/zone.js/lib/zone.d.ts:38

Original stack trace with no modifications

Inherited from ​

Error.originalStack

stack? ​

optional stack?: string

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1078

Inherited from ​

Error.stack

zoneAwareStack? ​

optional zoneAwareStack?: string

Defined in: node_modules/.pnpm/zone.js@0.15.1/node_modules/zone.js/lib/zone.d.ts:34

Stack trace where extra frames have been removed and zone names added.

Inherited from ​

Error.zoneAwareStack

stackTraceLimit ​

static stackTraceLimit: number

Defined in: node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/globals.d.ts:68

The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)).

The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed.

If set to a non-number value, or set to a negative number, stack traces will not capture any frames.

Inherited from ​

Error.stackTraceLimit

Methods ​

captureStackTrace() ​

static captureStackTrace(targetObject, constructorOpt?): void

Defined in: node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/globals.d.ts:52

Creates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.

js
const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack;  // Similar to `new Error().stack`

The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.

The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.

The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:

js
function a() {
  b();
}

function b() {
  c();
}

function c() {
  // Create an error without stack trace to avoid calculating the stack trace twice.
  const { stackTraceLimit } = Error;
  Error.stackTraceLimit = 0;
  const error = new Error();
  Error.stackTraceLimit = stackTraceLimit;

  // Capture the stack trace above function b
  Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
  throw error;
}

a();
Parameters ​
targetObject ​

object

constructorOpt? ​

Function

Returns ​

void

Inherited from ​

Error.captureStackTrace

prepareStackTrace() ​

static prepareStackTrace(err, stackTraces): any

Defined in: node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/globals.d.ts:56

Parameters ​
err ​

Error

stackTraces ​

CallSite[]

Returns ​

any

See ​

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

Inherited from ​

Error.prepareStackTrace


BackendIncompatible ​

Defined in: frontend/sdk/src/backend-client.ts:225

Extends ​

Constructors ​

Constructor ​

new BackendIncompatible(id): BackendIncompatible

Defined in: frontend/sdk/src/backend-client.ts:228

Parameters ​
id ​

string

Returns ​

BackendIncompatible

Overrides ​

BackendError.constructor

Properties ​

cause? ​

optional cause?: unknown

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.error.d.ts:26

Inherited from ​

BackendError.cause

code ​

readonly code: "BACKEND_INCOMPATIBLE" = 'BACKEND_INCOMPATIBLE'

Defined in: frontend/sdk/src/backend-client.ts:226

Overrides ​

BackendError.code

id ​

readonly id: string | undefined

Defined in: frontend/sdk/src/backend-client.ts:160

Inherited from ​

BackendError.id

message ​

message: string

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1077

Inherited from ​

BackendError.message

name ​

name: string

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1076

Inherited from ​

BackendError.name

originalStack? ​

optional originalStack?: string

Defined in: node_modules/.pnpm/zone.js@0.15.1/node_modules/zone.js/lib/zone.d.ts:38

Original stack trace with no modifications

Inherited from ​

BackendError.originalStack

stack? ​

optional stack?: string

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1078

Inherited from ​

BackendError.stack

zoneAwareStack? ​

optional zoneAwareStack?: string

Defined in: node_modules/.pnpm/zone.js@0.15.1/node_modules/zone.js/lib/zone.d.ts:34

Stack trace where extra frames have been removed and zone names added.

Inherited from ​

BackendError.zoneAwareStack

stackTraceLimit ​

static stackTraceLimit: number

Defined in: node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/globals.d.ts:68

The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)).

The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed.

If set to a non-number value, or set to a negative number, stack traces will not capture any frames.

Inherited from ​

BackendError.stackTraceLimit

Methods ​

captureStackTrace() ​

static captureStackTrace(targetObject, constructorOpt?): void

Defined in: node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/globals.d.ts:52

Creates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.

js
const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack;  // Similar to `new Error().stack`

The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.

The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.

The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:

js
function a() {
  b();
}

function b() {
  c();
}

function c() {
  // Create an error without stack trace to avoid calculating the stack trace twice.
  const { stackTraceLimit } = Error;
  Error.stackTraceLimit = 0;
  const error = new Error();
  Error.stackTraceLimit = stackTraceLimit;

  // Capture the stack trace above function b
  Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
  throw error;
}

a();
Parameters ​
targetObject ​

object

constructorOpt? ​

Function

Returns ​

void

Inherited from ​

BackendError.captureStackTrace

prepareStackTrace() ​

static prepareStackTrace(err, stackTraces): any

Defined in: node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/globals.d.ts:56

Parameters ​
err ​

Error

stackTraces ​

CallSite[]

Returns ​

any

See ​

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

Inherited from ​

BackendError.prepareStackTrace


BackendMaintenance ​

Defined in: frontend/sdk/src/backend-client.ts:234

Extends ​

Constructors ​

Constructor ​

new BackendMaintenance(id, retryAfterSeconds): BackendMaintenance

Defined in: frontend/sdk/src/backend-client.ts:237

Parameters ​
id ​

string

retryAfterSeconds ​

number | null

Returns ​

BackendMaintenance

Overrides ​

BackendError.constructor

Properties ​

cause? ​

optional cause?: unknown

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.error.d.ts:26

Inherited from ​

BackendError.cause

code ​

readonly code: "BACKEND_MAINTENANCE" = 'BACKEND_MAINTENANCE'

Defined in: frontend/sdk/src/backend-client.ts:235

Overrides ​

BackendError.code

id ​

readonly id: string | undefined

Defined in: frontend/sdk/src/backend-client.ts:160

Inherited from ​

BackendError.id

message ​

message: string

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1077

Inherited from ​

BackendError.message

name ​

name: string

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1076

Inherited from ​

BackendError.name

originalStack? ​

optional originalStack?: string

Defined in: node_modules/.pnpm/zone.js@0.15.1/node_modules/zone.js/lib/zone.d.ts:38

Original stack trace with no modifications

Inherited from ​

BackendError.originalStack

retryAfterSeconds ​

readonly retryAfterSeconds: number | null

Defined in: frontend/sdk/src/backend-client.ts:237

stack? ​

optional stack?: string

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1078

Inherited from ​

BackendError.stack

zoneAwareStack? ​

optional zoneAwareStack?: string

Defined in: node_modules/.pnpm/zone.js@0.15.1/node_modules/zone.js/lib/zone.d.ts:34

Stack trace where extra frames have been removed and zone names added.

Inherited from ​

BackendError.zoneAwareStack

stackTraceLimit ​

static stackTraceLimit: number

Defined in: node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/globals.d.ts:68

The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)).

The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed.

If set to a non-number value, or set to a negative number, stack traces will not capture any frames.

Inherited from ​

BackendError.stackTraceLimit

Methods ​

captureStackTrace() ​

static captureStackTrace(targetObject, constructorOpt?): void

Defined in: node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/globals.d.ts:52

Creates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.

js
const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack;  // Similar to `new Error().stack`

The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.

The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.

The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:

js
function a() {
  b();
}

function b() {
  c();
}

function c() {
  // Create an error without stack trace to avoid calculating the stack trace twice.
  const { stackTraceLimit } = Error;
  Error.stackTraceLimit = 0;
  const error = new Error();
  Error.stackTraceLimit = stackTraceLimit;

  // Capture the stack trace above function b
  Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
  throw error;
}

a();
Parameters ​
targetObject ​

object

constructorOpt? ​

Function

Returns ​

void

Inherited from ​

BackendError.captureStackTrace

prepareStackTrace() ​

static prepareStackTrace(err, stackTraces): any

Defined in: node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/globals.d.ts:56

Parameters ​
err ​

Error

stackTraces ​

CallSite[]

Returns ​

any

See ​

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

Inherited from ​

BackendError.prepareStackTrace


BackendNotApproved ​

Defined in: frontend/sdk/src/backend-client.ts:180

Extends ​

Constructors ​

Constructor ​

new BackendNotApproved(id): BackendNotApproved

Defined in: frontend/sdk/src/backend-client.ts:183

Parameters ​
id ​

string

Returns ​

BackendNotApproved

Overrides ​

BackendError.constructor

Properties ​

cause? ​

optional cause?: unknown

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.error.d.ts:26

Inherited from ​

BackendError.cause

code ​

readonly code: "NOT_APPROVED" = 'NOT_APPROVED'

Defined in: frontend/sdk/src/backend-client.ts:181

Overrides ​

BackendError.code

id ​

readonly id: string | undefined

Defined in: frontend/sdk/src/backend-client.ts:160

Inherited from ​

BackendError.id

message ​

message: string

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1077

Inherited from ​

BackendError.message

name ​

name: string

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1076

Inherited from ​

BackendError.name

originalStack? ​

optional originalStack?: string

Defined in: node_modules/.pnpm/zone.js@0.15.1/node_modules/zone.js/lib/zone.d.ts:38

Original stack trace with no modifications

Inherited from ​

BackendError.originalStack

stack? ​

optional stack?: string

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1078

Inherited from ​

BackendError.stack

zoneAwareStack? ​

optional zoneAwareStack?: string

Defined in: node_modules/.pnpm/zone.js@0.15.1/node_modules/zone.js/lib/zone.d.ts:34

Stack trace where extra frames have been removed and zone names added.

Inherited from ​

BackendError.zoneAwareStack

stackTraceLimit ​

static stackTraceLimit: number

Defined in: node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/globals.d.ts:68

The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)).

The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed.

If set to a non-number value, or set to a negative number, stack traces will not capture any frames.

Inherited from ​

BackendError.stackTraceLimit

Methods ​

captureStackTrace() ​

static captureStackTrace(targetObject, constructorOpt?): void

Defined in: node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/globals.d.ts:52

Creates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.

js
const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack;  // Similar to `new Error().stack`

The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.

The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.

The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:

js
function a() {
  b();
}

function b() {
  c();
}

function c() {
  // Create an error without stack trace to avoid calculating the stack trace twice.
  const { stackTraceLimit } = Error;
  Error.stackTraceLimit = 0;
  const error = new Error();
  Error.stackTraceLimit = stackTraceLimit;

  // Capture the stack trace above function b
  Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
  throw error;
}

a();
Parameters ​
targetObject ​

object

constructorOpt? ​

Function

Returns ​

void

Inherited from ​

BackendError.captureStackTrace

prepareStackTrace() ​

static prepareStackTrace(err, stackTraces): any

Defined in: node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/globals.d.ts:56

Parameters ​
err ​

Error

stackTraces ​

CallSite[]

Returns ​

any

See ​

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

Inherited from ​

BackendError.prepareStackTrace


BackendStarting ​

Defined in: frontend/sdk/src/backend-client.ts:207

Extends ​

Constructors ​

Constructor ​

new BackendStarting(id, retryAfterSeconds): BackendStarting

Defined in: frontend/sdk/src/backend-client.ts:210

Parameters ​
id ​

string

retryAfterSeconds ​

number | null

Returns ​

BackendStarting

Overrides ​

BackendError.constructor

Properties ​

cause? ​

optional cause?: unknown

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.error.d.ts:26

Inherited from ​

BackendError.cause

code ​

readonly code: "BACKEND_STARTING" = 'BACKEND_STARTING'

Defined in: frontend/sdk/src/backend-client.ts:208

Overrides ​

BackendError.code

id ​

readonly id: string | undefined

Defined in: frontend/sdk/src/backend-client.ts:160

Inherited from ​

BackendError.id

message ​

message: string

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1077

Inherited from ​

BackendError.message

name ​

name: string

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1076

Inherited from ​

BackendError.name

originalStack? ​

optional originalStack?: string

Defined in: node_modules/.pnpm/zone.js@0.15.1/node_modules/zone.js/lib/zone.d.ts:38

Original stack trace with no modifications

Inherited from ​

BackendError.originalStack

retryAfterSeconds ​

readonly retryAfterSeconds: number | null

Defined in: frontend/sdk/src/backend-client.ts:210

stack? ​

optional stack?: string

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1078

Inherited from ​

BackendError.stack

zoneAwareStack? ​

optional zoneAwareStack?: string

Defined in: node_modules/.pnpm/zone.js@0.15.1/node_modules/zone.js/lib/zone.d.ts:34

Stack trace where extra frames have been removed and zone names added.

Inherited from ​

BackendError.zoneAwareStack

stackTraceLimit ​

static stackTraceLimit: number

Defined in: node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/globals.d.ts:68

The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)).

The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed.

If set to a non-number value, or set to a negative number, stack traces will not capture any frames.

Inherited from ​

BackendError.stackTraceLimit

Methods ​

captureStackTrace() ​

static captureStackTrace(targetObject, constructorOpt?): void

Defined in: node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/globals.d.ts:52

Creates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.

js
const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack;  // Similar to `new Error().stack`

The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.

The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.

The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:

js
function a() {
  b();
}

function b() {
  c();
}

function c() {
  // Create an error without stack trace to avoid calculating the stack trace twice.
  const { stackTraceLimit } = Error;
  Error.stackTraceLimit = 0;
  const error = new Error();
  Error.stackTraceLimit = stackTraceLimit;

  // Capture the stack trace above function b
  Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
  throw error;
}

a();
Parameters ​
targetObject ​

object

constructorOpt? ​

Function

Returns ​

void

Inherited from ​

BackendError.captureStackTrace

prepareStackTrace() ​

static prepareStackTrace(err, stackTraces): any

Defined in: node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/globals.d.ts:56

Parameters ​
err ​

Error

stackTraces ​

CallSite[]

Returns ​

any

See ​

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

Inherited from ​

BackendError.prepareStackTrace


BackendStatusQueryError ​

Defined in: frontend/sdk/src/backend-client.ts:265

Extends ​

Constructors ​

Constructor ​

new BackendStatusQueryError(httpStatus, message): BackendStatusQueryError

Defined in: frontend/sdk/src/backend-client.ts:268

Parameters ​
httpStatus ​

number | null

message ​

string

Returns ​

BackendStatusQueryError

Overrides ​

BackendError.constructor

Properties ​

cause? ​

optional cause?: unknown

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.error.d.ts:26

Inherited from ​

BackendError.cause

code ​

readonly code: "STATUS_QUERY_FAILED" = 'STATUS_QUERY_FAILED'

Defined in: frontend/sdk/src/backend-client.ts:266

Overrides ​

BackendError.code

httpStatus ​

readonly httpStatus: number | null

Defined in: frontend/sdk/src/backend-client.ts:268

id ​

readonly id: string | undefined

Defined in: frontend/sdk/src/backend-client.ts:160

Inherited from ​

BackendError.id

message ​

message: string

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1077

Inherited from ​

BackendError.message

name ​

name: string

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1076

Inherited from ​

BackendError.name

originalStack? ​

optional originalStack?: string

Defined in: node_modules/.pnpm/zone.js@0.15.1/node_modules/zone.js/lib/zone.d.ts:38

Original stack trace with no modifications

Inherited from ​

BackendError.originalStack

stack? ​

optional stack?: string

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1078

Inherited from ​

BackendError.stack

zoneAwareStack? ​

optional zoneAwareStack?: string

Defined in: node_modules/.pnpm/zone.js@0.15.1/node_modules/zone.js/lib/zone.d.ts:34

Stack trace where extra frames have been removed and zone names added.

Inherited from ​

BackendError.zoneAwareStack

stackTraceLimit ​

static stackTraceLimit: number

Defined in: node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/globals.d.ts:68

The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)).

The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed.

If set to a non-number value, or set to a negative number, stack traces will not capture any frames.

Inherited from ​

BackendError.stackTraceLimit

Methods ​

captureStackTrace() ​

static captureStackTrace(targetObject, constructorOpt?): void

Defined in: node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/globals.d.ts:52

Creates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.

js
const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack;  // Similar to `new Error().stack`

The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.

The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.

The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:

js
function a() {
  b();
}

function b() {
  c();
}

function c() {
  // Create an error without stack trace to avoid calculating the stack trace twice.
  const { stackTraceLimit } = Error;
  Error.stackTraceLimit = 0;
  const error = new Error();
  Error.stackTraceLimit = stackTraceLimit;

  // Capture the stack trace above function b
  Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
  throw error;
}

a();
Parameters ​
targetObject ​

object

constructorOpt? ​

Function

Returns ​

void

Inherited from ​

BackendError.captureStackTrace

prepareStackTrace() ​

static prepareStackTrace(err, stackTraces): any

Defined in: node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/globals.d.ts:56

Parameters ​
err ​

Error

stackTraces ​

CallSite[]

Returns ​

any

See ​

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

Inherited from ​

BackendError.prepareStackTrace


BackendTransportMismatch ​

Defined in: frontend/sdk/src/backend-client.ts:198

Extends ​

Constructors ​

Constructor ​

new BackendTransportMismatch(id, expected): BackendTransportMismatch

Defined in: frontend/sdk/src/backend-client.ts:201

Parameters ​
id ​

string

expected ​

BackendRouteTransport

Returns ​

BackendTransportMismatch

Overrides ​

BackendError.constructor

Properties ​

cause? ​

optional cause?: unknown

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.error.d.ts:26

Inherited from ​

BackendError.cause

code ​

readonly code: "TRANSPORT_MISMATCH" = 'TRANSPORT_MISMATCH'

Defined in: frontend/sdk/src/backend-client.ts:199

Overrides ​

BackendError.code

expected ​

readonly expected: BackendRouteTransport

Defined in: frontend/sdk/src/backend-client.ts:201

id ​

readonly id: string | undefined

Defined in: frontend/sdk/src/backend-client.ts:160

Inherited from ​

BackendError.id

message ​

message: string

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1077

Inherited from ​

BackendError.message

name ​

name: string

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1076

Inherited from ​

BackendError.name

originalStack? ​

optional originalStack?: string

Defined in: node_modules/.pnpm/zone.js@0.15.1/node_modules/zone.js/lib/zone.d.ts:38

Original stack trace with no modifications

Inherited from ​

BackendError.originalStack

stack? ​

optional stack?: string

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1078

Inherited from ​

BackendError.stack

zoneAwareStack? ​

optional zoneAwareStack?: string

Defined in: node_modules/.pnpm/zone.js@0.15.1/node_modules/zone.js/lib/zone.d.ts:34

Stack trace where extra frames have been removed and zone names added.

Inherited from ​

BackendError.zoneAwareStack

stackTraceLimit ​

static stackTraceLimit: number

Defined in: node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/globals.d.ts:68

The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)).

The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed.

If set to a non-number value, or set to a negative number, stack traces will not capture any frames.

Inherited from ​

BackendError.stackTraceLimit

Methods ​

captureStackTrace() ​

static captureStackTrace(targetObject, constructorOpt?): void

Defined in: node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/globals.d.ts:52

Creates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.

js
const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack;  // Similar to `new Error().stack`

The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.

The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.

The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:

js
function a() {
  b();
}

function b() {
  c();
}

function c() {
  // Create an error without stack trace to avoid calculating the stack trace twice.
  const { stackTraceLimit } = Error;
  Error.stackTraceLimit = 0;
  const error = new Error();
  Error.stackTraceLimit = stackTraceLimit;

  // Capture the stack trace above function b
  Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
  throw error;
}

a();
Parameters ​
targetObject ​

object

constructorOpt? ​

Function

Returns ​

void

Inherited from ​

BackendError.captureStackTrace

prepareStackTrace() ​

static prepareStackTrace(err, stackTraces): any

Defined in: node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/globals.d.ts:56

Parameters ​
err ​

Error

stackTraces ​

CallSite[]

Returns ​

any

See ​

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

Inherited from ​

BackendError.prepareStackTrace


BackendUnavailable ​

Defined in: frontend/sdk/src/backend-client.ts:216

Extends ​

Constructors ​

Constructor ​

new BackendUnavailable(id): BackendUnavailable

Defined in: frontend/sdk/src/backend-client.ts:219

Parameters ​
id ​

string

Returns ​

BackendUnavailable

Overrides ​

BackendError.constructor

Properties ​

cause? ​

optional cause?: unknown

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.error.d.ts:26

Inherited from ​

BackendError.cause

code ​

readonly code: "BACKEND_UNAVAILABLE" = 'BACKEND_UNAVAILABLE'

Defined in: frontend/sdk/src/backend-client.ts:217

Overrides ​

BackendError.code

id ​

readonly id: string | undefined

Defined in: frontend/sdk/src/backend-client.ts:160

Inherited from ​

BackendError.id

message ​

message: string

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1077

Inherited from ​

BackendError.message

name ​

name: string

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1076

Inherited from ​

BackendError.name

originalStack? ​

optional originalStack?: string

Defined in: node_modules/.pnpm/zone.js@0.15.1/node_modules/zone.js/lib/zone.d.ts:38

Original stack trace with no modifications

Inherited from ​

BackendError.originalStack

stack? ​

optional stack?: string

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1078

Inherited from ​

BackendError.stack

zoneAwareStack? ​

optional zoneAwareStack?: string

Defined in: node_modules/.pnpm/zone.js@0.15.1/node_modules/zone.js/lib/zone.d.ts:34

Stack trace where extra frames have been removed and zone names added.

Inherited from ​

BackendError.zoneAwareStack

stackTraceLimit ​

static stackTraceLimit: number

Defined in: node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/globals.d.ts:68

The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)).

The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed.

If set to a non-number value, or set to a negative number, stack traces will not capture any frames.

Inherited from ​

BackendError.stackTraceLimit

Methods ​

captureStackTrace() ​

static captureStackTrace(targetObject, constructorOpt?): void

Defined in: node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/globals.d.ts:52

Creates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.

js
const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack;  // Similar to `new Error().stack`

The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.

The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.

The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:

js
function a() {
  b();
}

function b() {
  c();
}

function c() {
  // Create an error without stack trace to avoid calculating the stack trace twice.
  const { stackTraceLimit } = Error;
  Error.stackTraceLimit = 0;
  const error = new Error();
  Error.stackTraceLimit = stackTraceLimit;

  // Capture the stack trace above function b
  Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
  throw error;
}

a();
Parameters ​
targetObject ​

object

constructorOpt? ​

Function

Returns ​

void

Inherited from ​

BackendError.captureStackTrace

prepareStackTrace() ​

static prepareStackTrace(err, stackTraces): any

Defined in: node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/globals.d.ts:56

Parameters ​
err ​

Error

stackTraces ​

CallSite[]

Returns ​

any

See ​

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

Inherited from ​

BackendError.prepareStackTrace


BackendUnknownId ​

Defined in: frontend/sdk/src/backend-client.ts:171

Extends ​

Constructors ​

Constructor ​

new BackendUnknownId(id): BackendUnknownId

Defined in: frontend/sdk/src/backend-client.ts:174

Parameters ​
id ​

string

Returns ​

BackendUnknownId

Overrides ​

BackendError.constructor

Properties ​

cause? ​

optional cause?: unknown

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.error.d.ts:26

Inherited from ​

BackendError.cause

code ​

readonly code: "UNKNOWN_ID" = 'UNKNOWN_ID'

Defined in: frontend/sdk/src/backend-client.ts:172

Overrides ​

BackendError.code

id ​

readonly id: string | undefined

Defined in: frontend/sdk/src/backend-client.ts:160

Inherited from ​

BackendError.id

message ​

message: string

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1077

Inherited from ​

BackendError.message

name ​

name: string

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1076

Inherited from ​

BackendError.name

originalStack? ​

optional originalStack?: string

Defined in: node_modules/.pnpm/zone.js@0.15.1/node_modules/zone.js/lib/zone.d.ts:38

Original stack trace with no modifications

Inherited from ​

BackendError.originalStack

stack? ​

optional stack?: string

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1078

Inherited from ​

BackendError.stack

zoneAwareStack? ​

optional zoneAwareStack?: string

Defined in: node_modules/.pnpm/zone.js@0.15.1/node_modules/zone.js/lib/zone.d.ts:34

Stack trace where extra frames have been removed and zone names added.

Inherited from ​

BackendError.zoneAwareStack

stackTraceLimit ​

static stackTraceLimit: number

Defined in: node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/globals.d.ts:68

The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)).

The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed.

If set to a non-number value, or set to a negative number, stack traces will not capture any frames.

Inherited from ​

BackendError.stackTraceLimit

Methods ​

captureStackTrace() ​

static captureStackTrace(targetObject, constructorOpt?): void

Defined in: node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/globals.d.ts:52

Creates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.

js
const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack;  // Similar to `new Error().stack`

The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.

The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.

The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:

js
function a() {
  b();
}

function b() {
  c();
}

function c() {
  // Create an error without stack trace to avoid calculating the stack trace twice.
  const { stackTraceLimit } = Error;
  Error.stackTraceLimit = 0;
  const error = new Error();
  Error.stackTraceLimit = stackTraceLimit;

  // Capture the stack trace above function b
  Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
  throw error;
}

a();
Parameters ​
targetObject ​

object

constructorOpt? ​

Function

Returns ​

void

Inherited from ​

BackendError.captureStackTrace

prepareStackTrace() ​

static prepareStackTrace(err, stackTraces): any

Defined in: node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/globals.d.ts:56

Parameters ​
err ​

Error

stackTraces ​

CallSite[]

Returns ​

any

See ​

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

Inherited from ​

BackendError.prepareStackTrace


PageRouteError ​

Defined in: frontend/sdk/src/context.ts:37

Extends ​

  • Error

Constructors ​

Constructor ​

new PageRouteError(code, message, options?): PageRouteError

Defined in: frontend/sdk/src/context.ts:40

Parameters ​
code ​

PageRouteErrorCode

message ​

string

options? ​

ErrorOptions

Returns ​

PageRouteError

Overrides ​

Error.constructor

Properties ​

cause? ​

optional cause?: unknown

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.error.d.ts:26

Inherited from ​

Error.cause

code ​

readonly code: PageRouteErrorCode

Defined in: frontend/sdk/src/context.ts:38

message ​

message: string

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1077

Inherited from ​

Error.message

name ​

name: string

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1076

Inherited from ​

Error.name

originalStack? ​

optional originalStack?: string

Defined in: node_modules/.pnpm/zone.js@0.15.1/node_modules/zone.js/lib/zone.d.ts:38

Original stack trace with no modifications

Inherited from ​

Error.originalStack

stack? ​

optional stack?: string

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1078

Inherited from ​

Error.stack

zoneAwareStack? ​

optional zoneAwareStack?: string

Defined in: node_modules/.pnpm/zone.js@0.15.1/node_modules/zone.js/lib/zone.d.ts:34

Stack trace where extra frames have been removed and zone names added.

Inherited from ​

Error.zoneAwareStack

stackTraceLimit ​

static stackTraceLimit: number

Defined in: node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/globals.d.ts:68

The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)).

The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed.

If set to a non-number value, or set to a negative number, stack traces will not capture any frames.

Inherited from ​

Error.stackTraceLimit

Methods ​

captureStackTrace() ​

static captureStackTrace(targetObject, constructorOpt?): void

Defined in: node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/globals.d.ts:52

Creates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.

js
const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack;  // Similar to `new Error().stack`

The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.

The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.

The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:

js
function a() {
  b();
}

function b() {
  c();
}

function c() {
  // Create an error without stack trace to avoid calculating the stack trace twice.
  const { stackTraceLimit } = Error;
  Error.stackTraceLimit = 0;
  const error = new Error();
  Error.stackTraceLimit = stackTraceLimit;

  // Capture the stack trace above function b
  Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
  throw error;
}

a();
Parameters ​
targetObject ​

object

constructorOpt? ​

Function

Returns ​

void

Inherited from ​

Error.captureStackTrace

prepareStackTrace() ​

static prepareStackTrace(err, stackTraces): any

Defined in: node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/globals.d.ts:56

Parameters ​
err ​

Error

stackTraces ​

CallSite[]

Returns ​

any

See ​

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

Inherited from ​

Error.prepareStackTrace


TelemetryError ​

Defined in: frontend/sdk/src/telemetry-client.ts:81

Extends ​

  • Error

Constructors ​

Constructor ​

new TelemetryError(status, message): TelemetryError

Defined in: frontend/sdk/src/telemetry-client.ts:84

Parameters ​
status ​

number

message ​

string

Returns ​

TelemetryError

Overrides ​

Error.constructor

Properties ​

cause? ​

optional cause?: unknown

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.error.d.ts:26

Inherited from ​

Error.cause

message ​

message: string

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1077

Inherited from ​

Error.message

name ​

name: string

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1076

Inherited from ​

Error.name

originalStack? ​

optional originalStack?: string

Defined in: node_modules/.pnpm/zone.js@0.15.1/node_modules/zone.js/lib/zone.d.ts:38

Original stack trace with no modifications

Inherited from ​

Error.originalStack

stack? ​

optional stack?: string

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1078

Inherited from ​

Error.stack

status ​

readonly status: number

Defined in: frontend/sdk/src/telemetry-client.ts:82

zoneAwareStack? ​

optional zoneAwareStack?: string

Defined in: node_modules/.pnpm/zone.js@0.15.1/node_modules/zone.js/lib/zone.d.ts:34

Stack trace where extra frames have been removed and zone names added.

Inherited from ​

Error.zoneAwareStack

stackTraceLimit ​

static stackTraceLimit: number

Defined in: node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/globals.d.ts:68

The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)).

The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed.

If set to a non-number value, or set to a negative number, stack traces will not capture any frames.

Inherited from ​

Error.stackTraceLimit

Methods ​

captureStackTrace() ​

static captureStackTrace(targetObject, constructorOpt?): void

Defined in: node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/globals.d.ts:52

Creates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.

js
const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack;  // Similar to `new Error().stack`

The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.

The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.

The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:

js
function a() {
  b();
}

function b() {
  c();
}

function c() {
  // Create an error without stack trace to avoid calculating the stack trace twice.
  const { stackTraceLimit } = Error;
  Error.stackTraceLimit = 0;
  const error = new Error();
  Error.stackTraceLimit = stackTraceLimit;

  // Capture the stack trace above function b
  Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
  throw error;
}

a();
Parameters ​
targetObject ​

object

constructorOpt? ​

Function

Returns ​

void

Inherited from ​

Error.captureStackTrace

prepareStackTrace() ​

static prepareStackTrace(err, stackTraces): any

Defined in: node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/globals.d.ts:56

Parameters ​
err ​

Error

stackTraces ​

CallSite[]

Returns ​

any

See ​

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

Inherited from ​

Error.prepareStackTrace

Interfaces ​

BackendClient ​

Defined in: frontend/sdk/src/backend-client.ts:127

Methods ​

fetch() ​

fetch(id, options?): Promise<Response>

Defined in: frontend/sdk/src/backend-client.ts:129

Resolve id to its URL + method and issue the request. Throws BackendUnknownId synchronously.

Parameters ​
id ​

string

options? ​

BackendFetchOptions

Returns ​

Promise<Response>

socket() ​

socket(id, options?): WebSocket

Defined in: frontend/sdk/src/backend-client.ts:131

Open a websocket to the declared target. Throws synchronously on a bad/blocked id.

Parameters ​
id ​

string

options? ​

BackendSocketOptions

Returns ​

WebSocket

status() ​

status(options?): Promise<{ blockers: object[]; kind: "exec" | "service"; retryAfterSeconds: number | null; state: "blocked"; } | { kind: "exec" | "service"; requiredProtocol: number; retryAfterSeconds: number | null; state: "incompatible"; supportedProtocols: number[]; } | { kind: "exec" | "service"; retryAfterSeconds: number | null; state: "ready" | "starting" | "unavailable" | "maintenance" | "disabled" | "not-approved"; }>

Defined in: frontend/sdk/src/backend-client.ts:133

Query live daemon-owned backend availability without executing a backend route.

Parameters ​
options? ​

BackendStatusOptions

Returns ​

Promise<{ blockers: object[]; kind: "exec" | "service"; retryAfterSeconds: number | null; state: "blocked"; } | { kind: "exec" | "service"; requiredProtocol: number; retryAfterSeconds: number | null; state: "incompatible"; supportedProtocols: number[]; } | { kind: "exec" | "service"; retryAfterSeconds: number | null; state: "ready" | "starting" | "unavailable" | "maintenance" | "disabled" | "not-approved"; }>


BackendFetchOptions ​

Defined in: frontend/sdk/src/backend-client.ts:116

Properties ​

body? ​

optional body?: Record<string, unknown> | unknown[] | BodyInit | null

Defined in: frontend/sdk/src/backend-client.ts:118

headers? ​

optional headers?: HeadersInit

Defined in: frontend/sdk/src/backend-client.ts:119

query? ​

optional query?: Record<string, string | number | boolean>

Defined in: frontend/sdk/src/backend-client.ts:117

signal? ​

optional signal?: AbortSignal

Defined in: frontend/sdk/src/backend-client.ts:120


BackendSocketOptions ​

Defined in: frontend/sdk/src/backend-client.ts:123

Properties ​

protocols? ​

optional protocols?: string[]

Defined in: frontend/sdk/src/backend-client.ts:124


BackendStatusOptions ​

Defined in: frontend/sdk/src/backend-client.ts:112

Properties ​

signal? ​

optional signal?: AbortSignal

Defined in: frontend/sdk/src/backend-client.ts:113


DeviceInfo ​

Defined in: frontend/sdk/src/context.ts:98

Plugin-facing device data with helpers bound to one context snapshot.

Extends ​

Properties ​

architecture? ​

readonly optional architecture?: string

Defined in: frontend/sdk/src/context.ts:90

show.version.arch; absent when host information was unavailable.

Inherited from ​

DeviceInfoData.architecture

components ​

readonly components: readonly string[]

Defined in: frontend/sdk/src/context.ts:92

Inherited from ​

DeviceInfoData.components

deviceName ​

readonly deviceName: string

Defined in: frontend/sdk/src/context.ts:76

Inherited from ​

DeviceInfoData.deviceName

features ​

readonly features: readonly string[]

Defined in: frontend/sdk/src/context.ts:91

Inherited from ​

DeviceInfoData.features

firmwareRelease ​

readonly firmwareRelease: string

Defined in: frontend/sdk/src/context.ts:88

show.version.release.

Inherited from ​

DeviceInfoData.firmwareRelease

firmwareVersion ​

readonly firmwareVersion: string

Defined in: frontend/sdk/src/context.ts:86

show.version.title.

Inherited from ​

DeviceInfoData.firmwareVersion

hwId ​

readonly hwId: string

Defined in: frontend/sdk/src/context.ts:82

Inherited from ​

DeviceInfoData.hwId

hwType? ​

readonly optional hwType?: string

Defined in: frontend/sdk/src/context.ts:84

Inherited from ​

DeviceInfoData.hwType

hwVersion ​

readonly hwVersion: string

Defined in: frontend/sdk/src/context.ts:83

Inherited from ​

DeviceInfoData.hwVersion

manufacturer ​

readonly manufacturer: string

Defined in: frontend/sdk/src/context.ts:78

Inherited from ​

DeviceInfoData.manufacturer

model ​

readonly model: string

Defined in: frontend/sdk/src/context.ts:79

Inherited from ​

DeviceInfoData.model

region ​

readonly region: string

Defined in: frontend/sdk/src/context.ts:81

Inherited from ​

DeviceInfoData.region

series ​

readonly series: string

Defined in: frontend/sdk/src/context.ts:80

Inherited from ​

DeviceInfoData.series

switchports ​

readonly switchports: Switchports

Defined in: frontend/sdk/src/context.ts:93

Inherited from ​

DeviceInfoData.switchports

usb ​

readonly usb: DeviceUsb

Defined in: frontend/sdk/src/context.ts:94

Inherited from ​

DeviceInfoData.usb

vendor ​

readonly vendor: string

Defined in: frontend/sdk/src/context.ts:77

Inherited from ​

DeviceInfoData.vendor

Methods ​

hasComponent() ​

hasComponent(name): boolean

Defined in: frontend/sdk/src/context.ts:100

Parameters ​
name ​

string

Returns ​

boolean

hasFeature() ​

hasFeature(name): boolean

Defined in: frontend/sdk/src/context.ts:99

Parameters ​
name ​

string

Returns ​

boolean


DeviceInfoData ​

Defined in: frontend/sdk/src/context.ts:75

Plain, serializable device data without context-bound helper methods.

Extended by ​

Properties ​

architecture? ​

readonly optional architecture?: string

Defined in: frontend/sdk/src/context.ts:90

show.version.arch; absent when host information was unavailable.

components ​

readonly components: readonly string[]

Defined in: frontend/sdk/src/context.ts:92

deviceName ​

readonly deviceName: string

Defined in: frontend/sdk/src/context.ts:76

features ​

readonly features: readonly string[]

Defined in: frontend/sdk/src/context.ts:91

firmwareRelease ​

readonly firmwareRelease: string

Defined in: frontend/sdk/src/context.ts:88

show.version.release.

firmwareVersion ​

readonly firmwareVersion: string

Defined in: frontend/sdk/src/context.ts:86

show.version.title.

hwId ​

readonly hwId: string

Defined in: frontend/sdk/src/context.ts:82

hwType? ​

readonly optional hwType?: string

Defined in: frontend/sdk/src/context.ts:84

hwVersion ​

readonly hwVersion: string

Defined in: frontend/sdk/src/context.ts:83

manufacturer ​

readonly manufacturer: string

Defined in: frontend/sdk/src/context.ts:78

model ​

readonly model: string

Defined in: frontend/sdk/src/context.ts:79

region ​

readonly region: string

Defined in: frontend/sdk/src/context.ts:81

series ​

readonly series: string

Defined in: frontend/sdk/src/context.ts:80

switchports ​

readonly switchports: Switchports

Defined in: frontend/sdk/src/context.ts:93

usb ​

readonly usb: DeviceUsb

Defined in: frontend/sdk/src/context.ts:94

vendor ​

readonly vendor: string

Defined in: frontend/sdk/src/context.ts:77


DeviceUsb ​

Defined in: frontend/sdk/src/context.ts:69

Properties ​

ports ​

readonly ports: readonly ("usb2" | "usb3")[]

Defined in: frontend/sdk/src/context.ts:71

USB version per physical port, ordered by physical position. Empty when the device has no USB.


HostNavigation ​

Defined in: frontend/sdk/src/context.ts:32

Methods ​

href() ​

href(target): string | undefined

Defined in: frontend/sdk/src/context.ts:33

Parameters ​
target ​

HostTarget

Returns ​

string | undefined

navigate(target): boolean

Defined in: frontend/sdk/src/context.ts:34

Parameters ​
target ​

HostTarget

Returns ​

boolean


MndwPlugin ​

Defined in: frontend/sdk/src/plugin.ts:15

Methods ​

createInstance() ​

createInstance(container, context): PluginInstance | Promise<PluginInstance>

Defined in: frontend/sdk/src/plugin.ts:16

Parameters ​
container ​

HTMLElement

context ​

PluginContext

Returns ​

PluginInstance | Promise<PluginInstance>


OverlayAnchor ​

Defined in: frontend/sdk/src/overlay.ts:39

Properties ​

element ​

element: HTMLElement

Defined in: frontend/sdk/src/overlay.ts:40


OverlayCloseEvent ​

Defined in: frontend/sdk/src/overlay.ts:43

Type Parameters ​

Result ​

Result = unknown

Properties ​

reason ​

reason: OverlayCloseReason

Defined in: frontend/sdk/src/overlay.ts:44

result? ​

optional result?: Result

Defined in: frontend/sdk/src/overlay.ts:45


OverlayLayer ​

Defined in: frontend/sdk/src/overlay.ts:65

Extended by ​

Type Parameters ​

Result ​

Result = unknown

Properties ​

closed ​

readonly closed: Promise<OverlayCloseEvent<Result>>

Defined in: frontend/sdk/src/overlay.ts:72

contentElement ​

readonly contentElement: HTMLElement

Defined in: frontend/sdk/src/overlay.ts:68

Plugin mount target. For open() this is the shell body slot.

hostElement ​

readonly hostElement: HTMLElement

Defined in: frontend/sdk/src/overlay.ts:66

isOpen ​

readonly isOpen: boolean

Defined in: frontend/sdk/src/overlay.ts:70

Convenience: true while state is 'opening' or 'open'.

signal ​

readonly signal: AbortSignal

Defined in: frontend/sdk/src/overlay.ts:74

Aborts when closing starts. Same object is passed to the open() mount callback.

state ​

readonly state: "opening" | "open" | "closing" | "closed"

Defined in: frontend/sdk/src/overlay.ts:71

Methods ​

close() ​

close(result?, reason?): void

Defined in: frontend/sdk/src/overlay.ts:77

Idempotent; valid in any state except closed. reason defaults to 'api'.

Parameters ​
result? ​

Result

reason? ​

"api" | "action"

Returns ​

void

markReady() ​

markReady(): void

Defined in: frontend/sdk/src/overlay.ts:81

Signal the layer is safe for interaction; moves state to open.

Returns ​

void

onClose() ​

onClose(listener): () => void

Defined in: frontend/sdk/src/overlay.ts:90

Parameters ​
listener ​

(event) => void

Returns ​

() => void

setCleanup() ​

setCleanup(cleanup): void

Defined in: frontend/sdk/src/overlay.ts:79

Register teardown as part of setup. Last call before closing wins.

Parameters ​
cleanup ​

Promise<() => void | Promise<void>> | (() => void | Promise<void>)

Returns ​

void

update() ​

update(options): void

Defined in: frontend/sdk/src/overlay.ts:82

Parameters ​
options ​

Partial<Pick<OverlayLayerOptions, "placement" | "anchor" | "className" | "width" | "height" | "maxWidth" | "maxHeight">>

Returns ​

void


OverlayLayerOptions ​

Defined in: frontend/sdk/src/overlay.ts:48

Properties ​

anchor? ​

optional anchor?: OverlayAnchor

Defined in: frontend/sdk/src/overlay.ts:50

className? ​

optional className?: string

Defined in: frontend/sdk/src/overlay.ts:62

Applied to hostElement only. Host-owned shell internals stay host-controlled.

closeOnEscape? ​

optional closeOnEscape?: boolean

Defined in: frontend/sdk/src/overlay.ts:56

closeOnOutsideClick? ​

optional closeOnOutsideClick?: boolean

Defined in: frontend/sdk/src/overlay.ts:57

height? ​

optional height?: string | number

Defined in: frontend/sdk/src/overlay.ts:53

kind ​

kind: OverlayKind

Defined in: frontend/sdk/src/overlay.ts:49

lockScroll? ​

optional lockScroll?: boolean

Defined in: frontend/sdk/src/overlay.ts:60

maxHeight? ​

optional maxHeight?: string | number

Defined in: frontend/sdk/src/overlay.ts:55

maxWidth? ​

optional maxWidth?: string | number

Defined in: frontend/sdk/src/overlay.ts:54

placement? ​

optional placement?: OverlayPlacement

Defined in: frontend/sdk/src/overlay.ts:51

restoreFocus? ​

optional restoreFocus?: boolean

Defined in: frontend/sdk/src/overlay.ts:59

trapFocus? ​

optional trapFocus?: boolean

Defined in: frontend/sdk/src/overlay.ts:58

width? ​

optional width?: string | number

Defined in: frontend/sdk/src/overlay.ts:52


OverlayOpenOptions ​

Defined in: frontend/sdk/src/overlay.ts:99

Extends ​

Type Parameters ​

Result ​

Result = unknown

Properties ​

className? ​

optional className?: string

Defined in: frontend/sdk/src/overlay.ts:62

Applied to hostElement only. Host-owned shell internals stay host-controlled.

Inherited from ​

OverlayLayerOptions.className

closeOnEscape? ​

optional closeOnEscape?: boolean

Defined in: frontend/sdk/src/overlay.ts:56

Inherited from ​

OverlayLayerOptions.closeOnEscape

closeOnOutsideClick? ​

optional closeOnOutsideClick?: boolean

Defined in: frontend/sdk/src/overlay.ts:57

Inherited from ​

OverlayLayerOptions.closeOnOutsideClick

description? ​

optional description?: string

Defined in: frontend/sdk/src/overlay.ts:102

height? ​

optional height?: string | number

Defined in: frontend/sdk/src/overlay.ts:53

Inherited from ​

OverlayLayerOptions.height

kind ​

kind: "modal" | "drawer"

Defined in: frontend/sdk/src/overlay.ts:100

lockScroll? ​

optional lockScroll?: boolean

Defined in: frontend/sdk/src/overlay.ts:60

Inherited from ​

OverlayLayerOptions.lockScroll

maxHeight? ​

optional maxHeight?: string | number

Defined in: frontend/sdk/src/overlay.ts:55

Inherited from ​

OverlayLayerOptions.maxHeight

maxWidth? ​

optional maxWidth?: string | number

Defined in: frontend/sdk/src/overlay.ts:54

Inherited from ​

OverlayLayerOptions.maxWidth

mount ​

mount: OverlayMount<Result>

Defined in: frontend/sdk/src/overlay.ts:104

placement? ​

optional placement?: OverlayPlacement

Defined in: frontend/sdk/src/overlay.ts:51

Inherited from ​

OverlayLayerOptions.placement

restoreFocus? ​

optional restoreFocus?: boolean

Defined in: frontend/sdk/src/overlay.ts:59

Inherited from ​

OverlayLayerOptions.restoreFocus

showCloseButton? ​

optional showCloseButton?: boolean

Defined in: frontend/sdk/src/overlay.ts:103

title? ​

optional title?: string

Defined in: frontend/sdk/src/overlay.ts:101

trapFocus? ​

optional trapFocus?: boolean

Defined in: frontend/sdk/src/overlay.ts:58

Inherited from ​

OverlayLayerOptions.trapFocus

width? ​

optional width?: string | number

Defined in: frontend/sdk/src/overlay.ts:52

Inherited from ​

OverlayLayerOptions.width


OverlayService ​

Defined in: frontend/sdk/src/overlay.ts:126

Methods ​

closeAll() ​

closeAll(): void

Defined in: frontend/sdk/src/overlay.ts:130

Closes all overlays opened by this plugin instance with reason 'api'.

Returns ​

void

createLayer() ​

createLayer<Result>(options): OverlayLayer<Result>

Defined in: frontend/sdk/src/overlay.ts:127

Type Parameters ​
Result ​

Result = unknown

Parameters ​
options ​

OverlayLayerOptions

Returns ​

OverlayLayer<Result>

open() ​

open<Result>(options): OverlaySession<Result>

Defined in: frontend/sdk/src/overlay.ts:128

Type Parameters ​
Result ​

Result = unknown

Parameters ​
options ​

OverlayOpenOptions<Result>

Returns ​

OverlaySession<Result>


OverlaySession ​

Defined in: frontend/sdk/src/overlay.ts:107

Extends ​

Type Parameters ​

Result ​

Result = unknown

Properties ​

closed ​

readonly closed: Promise<OverlayCloseEvent<Result>>

Defined in: frontend/sdk/src/overlay.ts:72

Inherited from ​

OverlayLayer.closed

contentElement ​

readonly contentElement: HTMLElement

Defined in: frontend/sdk/src/overlay.ts:68

Plugin mount target. For open() this is the shell body slot.

Inherited from ​

OverlayLayer.contentElement

hostElement ​

readonly hostElement: HTMLElement

Defined in: frontend/sdk/src/overlay.ts:66

Inherited from ​

OverlayLayer.hostElement

isOpen ​

readonly isOpen: boolean

Defined in: frontend/sdk/src/overlay.ts:70

Convenience: true while state is 'opening' or 'open'.

Inherited from ​

OverlayLayer.isOpen

signal ​

readonly signal: AbortSignal

Defined in: frontend/sdk/src/overlay.ts:74

Aborts when closing starts. Same object is passed to the open() mount callback.

Inherited from ​

OverlayLayer.signal

state ​

readonly state: "opening" | "open" | "closing" | "closed"

Defined in: frontend/sdk/src/overlay.ts:71

Inherited from ​

OverlayLayer.state

Methods ​

close() ​

close(result?, reason?): void

Defined in: frontend/sdk/src/overlay.ts:77

Idempotent; valid in any state except closed. reason defaults to 'api'.

Parameters ​
result? ​

Result

reason? ​

"api" | "action"

Returns ​

void

Inherited from ​

OverlayLayer.close

markReady() ​

markReady(): void

Defined in: frontend/sdk/src/overlay.ts:81

Signal the layer is safe for interaction; moves state to open.

Returns ​

void

Inherited from ​

OverlayLayer.markReady

onClose() ​

onClose(listener): () => void

Defined in: frontend/sdk/src/overlay.ts:90

Parameters ​
listener ​

(event) => void

Returns ​

() => void

Inherited from ​

OverlayLayer.onClose

setCleanup() ​

setCleanup(cleanup): void

Defined in: frontend/sdk/src/overlay.ts:79

Register teardown as part of setup. Last call before closing wins.

Parameters ​
cleanup ​

Promise<() => void | Promise<void>> | (() => void | Promise<void>)

Returns ​

void

Inherited from ​

OverlayLayer.setCleanup

update() ​

update(options): void

Defined in: frontend/sdk/src/overlay.ts:108

Parameters ​
options ​

Partial<Pick<OverlayOpenOptions<Result>, "title" | "description" | "showCloseButton" | "width" | "height" | "maxWidth" | "maxHeight" | "placement" | "className">>

Returns ​

void

Overrides ​

OverlayLayer.update


PagePluginContext ​

Defined in: frontend/sdk/src/context.ts:144

Extends ​

  • PluginContextBase

Properties ​

backend? ​

optional backend?: BackendClient

Defined in: frontend/sdk/src/context.ts:129

Typed backend client. Present only when the plugin declares a backend; ids resolve locally from the daemon's descriptor snapshot. See BackendClient.

Inherited from ​

PluginContextBase.backend

deviceInfo ​

deviceInfo: DeviceInfo

Defined in: frontend/sdk/src/context.ts:110

Inherited from ​

PluginContextBase.deviceInfo

events? ​

optional events?: PluginEventFacade

Defined in: frontend/sdk/src/context.ts:106

Inherited from ​

PluginContextBase.events

i18n ​

i18n: PluginI18n

Defined in: frontend/sdk/src/context.ts:111

Inherited from ​

PluginContextBase.i18n

instanceId ​

instanceId: string

Defined in: frontend/sdk/src/context.ts:112

Inherited from ​

PluginContextBase.instanceId

kind ​

readonly kind: "page"

Defined in: frontend/sdk/src/context.ts:145

locale ​

readonly locale: string

Defined in: frontend/sdk/src/context.ts:118

Current host locale. This getter follows changes while the plugin is mounted.

Inherited from ​

PluginContextBase.locale

locale$ ​

readonly locale$: Observable<string>

Defined in: frontend/sdk/src/context.ts:120

Emits the current locale on subscribe and completes when the plugin unmounts.

Inherited from ​

PluginContextBase.locale$

readonly navigation: HostNavigation

Defined in: frontend/sdk/src/context.ts:104

Inherited from ​

PluginContextBase.navigation

overlay ​

overlay: OverlayService

Defined in: frontend/sdk/src/context.ts:131

Framework-agnostic top-layer UI (modal, drawer, popover, custom).

Inherited from ​

PluginContextBase.overlay

pageRoute ​

readonly pageRoute: PageRoute

Defined in: frontend/sdk/src/context.ts:147

Navigate within the plugin's page route.

palette ​

readonly palette: PaletteTokenMap

Defined in: frontend/sdk/src/context.ts:122

Current applied palette, including a device override when present.

Inherited from ​

PluginContextBase.palette

palette$ ​

readonly palette$: Observable<PaletteTokenMap>

Defined in: frontend/sdk/src/context.ts:124

Emits the current palette on subscribe and completes when the plugin unmounts.

Inherited from ​

PluginContextBase.palette$

rciManager ​

rciManager: PluginRciManager

Defined in: frontend/sdk/src/context.ts:107

Inherited from ​

PluginContextBase.rciManager

setTileTitle? ​

readonly optional setTileTitle?: undefined

Defined in: frontend/sdk/src/context.ts:149

Page plugins do not receive a dashboard tile title setter.

sharedStorage ​

sharedStorage: PluginStorage

Defined in: frontend/sdk/src/context.ts:109

Inherited from ​

PluginContextBase.sharedStorage

storage ​

storage: PluginStorage

Defined in: frontend/sdk/src/context.ts:108

Inherited from ​

PluginContextBase.storage

telemetry ​

readonly telemetry: PluginTelemetry

Defined in: frontend/sdk/src/context.ts:105

Inherited from ​

PluginContextBase.telemetry

theme ​

readonly theme: "light" | "dark"

Defined in: frontend/sdk/src/context.ts:114

Current host theme. This getter follows changes while the plugin is mounted.

Inherited from ​

PluginContextBase.theme

theme$ ​

readonly theme$: Observable<"light" | "dark">

Defined in: frontend/sdk/src/context.ts:116

Emits the current theme on subscribe and completes when the plugin unmounts.

Inherited from ​

PluginContextBase.theme$

Methods ​

createTicker() ​

createTicker(): Ticker

Defined in: frontend/sdk/src/context.ts:133

Creates a host-managed ticker destroyed when this plugin context ends.

Returns ​

Ticker

Inherited from ​

PluginContextBase.createTicker


PageRoute ​

Defined in: frontend/sdk/src/context.ts:13

Properties ​

childPath$ ​

readonly childPath$: Observable<string>

Defined in: frontend/sdk/src/context.ts:14

Methods ​

navigate(childPath, options?): Promise<void>

Defined in: frontend/sdk/src/context.ts:15

Parameters ​
childPath ​

string

options? ​
replace? ​

boolean

scrollToTop? ​

boolean

Returns ​

Promise<void>


PluginEventFacade ​

Defined in: frontend/sdk/src/event-schema.ts:224

Properties ​

resync$ ​

readonly resync$: Observable<void>

Defined in: frontend/sdk/src/event-schema.ts:226

Methods ​

select$() ​

select$(topics): Observable<{ id: string; payload: Record<string, unknown>; source: unknown; topic: "wan.connected"; ts: number; } | { id: string; payload: Record<string, unknown>; source: unknown; topic: "wan.disconnected"; ts: number; } | { id: string; payload: { address: string; connected: boolean; link: string; mask: string; }; source: unknown; topic: "net.ip_changed"; ts: number; } | { id: string; payload: Record<string, unknown>; source: unknown; topic: "net.dhcp_lease"; ts: number; } | { id: string; payload: { resolvers: string[]; }; source: unknown; topic: "net.dns_changed"; ts: number; } | { id: string; payload: Record<string, unknown>; source: unknown; topic: "wifi.client_join"; ts: number; } | { id: string; payload: Record<string, unknown>; source: unknown; topic: "wifi.client_leave"; ts: number; } | { id: string; payload: Record<string, unknown>; source: unknown; topic: "firewall.rebuilt"; ts: number; } | { id: string; payload: Record<string, unknown>; source: unknown; topic: "usb.attached"; ts: number; } | { id: string; payload: Record<string, unknown>; source: unknown; topic: "usb.detached"; ts: number; } | { id: string; payload: Record<string, unknown>; source: unknown; topic: "fs.mounted"; ts: number; } | { id: string; payload: Record<string, unknown>; source: unknown; topic: "fs.unmounted"; ts: number; } | { id: string; payload: { offset_ms?: number; }; source: unknown; topic: "clock.synced"; ts: number; } | { id: string; payload: { action: string; elapsed: number; name: string; }; source: unknown; topic: "schedule.fired"; ts: number; } | { id: string; payload: Record<string, unknown>; source: unknown; topic: "button.pressed"; ts: number; } | { id: string; payload: { ip: string; success: boolean; user: string; }; source: unknown; topic: "auth.login"; ts: number; } | { id: string; payload: Record<string, unknown>; source: unknown; topic: "firmware.available"; ts: number; } | { id: string; payload: Record<string, unknown>; source: unknown; topic: "plugin.installed"; ts: number; } | { id: string; payload: Record<string, unknown>; source: unknown; topic: "plugin.removed"; ts: number; } | { id: string; payload: Record<string, unknown>; source: unknown; topic: "plugin.approved"; ts: number; } | { id: string; payload: Record<string, unknown>; source: unknown; topic: "plugin.started"; ts: number; } | { id: string; payload: { name: string; reason: string; }; source: unknown; topic: "plugin.stopped"; ts: number; } | { id: string; payload: { uptime_ms: number; version: string; }; source: unknown; topic: "daemon.started"; ts: number; } | { id: string; payload: Record<string, unknown>; source: unknown; topic: "daemon.stopping"; ts: number; } | { id: string; payload: Record<string, unknown>; source: unknown; topic: "daemon.updated"; ts: number; } | { id: string; payload: { available_bytes: number; path: "/opt"; threshold_bytes: number; }; source: unknown; topic: "storage.low"; ts: number; } | { id: string; payload: { enabled: boolean; }; source: unknown; topic: "telemetry.gathering_changed"; ts: number; }>

Defined in: frontend/sdk/src/event-schema.ts:225

Parameters ​
topics ​

string | readonly string[]

Returns ​

Observable<{ id: string; payload: Record<string, unknown>; source: unknown; topic: "wan.connected"; ts: number; } | { id: string; payload: Record<string, unknown>; source: unknown; topic: "wan.disconnected"; ts: number; } | { id: string; payload: { address: string; connected: boolean; link: string; mask: string; }; source: unknown; topic: "net.ip_changed"; ts: number; } | { id: string; payload: Record<string, unknown>; source: unknown; topic: "net.dhcp_lease"; ts: number; } | { id: string; payload: { resolvers: string[]; }; source: unknown; topic: "net.dns_changed"; ts: number; } | { id: string; payload: Record<string, unknown>; source: unknown; topic: "wifi.client_join"; ts: number; } | { id: string; payload: Record<string, unknown>; source: unknown; topic: "wifi.client_leave"; ts: number; } | { id: string; payload: Record<string, unknown>; source: unknown; topic: "firewall.rebuilt"; ts: number; } | { id: string; payload: Record<string, unknown>; source: unknown; topic: "usb.attached"; ts: number; } | { id: string; payload: Record<string, unknown>; source: unknown; topic: "usb.detached"; ts: number; } | { id: string; payload: Record<string, unknown>; source: unknown; topic: "fs.mounted"; ts: number; } | { id: string; payload: Record<string, unknown>; source: unknown; topic: "fs.unmounted"; ts: number; } | { id: string; payload: { offset_ms?: number; }; source: unknown; topic: "clock.synced"; ts: number; } | { id: string; payload: { action: string; elapsed: number; name: string; }; source: unknown; topic: "schedule.fired"; ts: number; } | { id: string; payload: Record<string, unknown>; source: unknown; topic: "button.pressed"; ts: number; } | { id: string; payload: { ip: string; success: boolean; user: string; }; source: unknown; topic: "auth.login"; ts: number; } | { id: string; payload: Record<string, unknown>; source: unknown; topic: "firmware.available"; ts: number; } | { id: string; payload: Record<string, unknown>; source: unknown; topic: "plugin.installed"; ts: number; } | { id: string; payload: Record<string, unknown>; source: unknown; topic: "plugin.removed"; ts: number; } | { id: string; payload: Record<string, unknown>; source: unknown; topic: "plugin.approved"; ts: number; } | { id: string; payload: Record<string, unknown>; source: unknown; topic: "plugin.started"; ts: number; } | { id: string; payload: { name: string; reason: string; }; source: unknown; topic: "plugin.stopped"; ts: number; } | { id: string; payload: { uptime_ms: number; version: string; }; source: unknown; topic: "daemon.started"; ts: number; } | { id: string; payload: Record<string, unknown>; source: unknown; topic: "daemon.stopping"; ts: number; } | { id: string; payload: Record<string, unknown>; source: unknown; topic: "daemon.updated"; ts: number; } | { id: string; payload: { available_bytes: number; path: "/opt"; threshold_bytes: number; }; source: unknown; topic: "storage.low"; ts: number; } | { id: string; payload: { enabled: boolean; }; source: unknown; topic: "telemetry.gathering_changed"; ts: number; }>


PluginI18n ​

Defined in: frontend/sdk/src/i18n.ts:8

Extended by ​

Properties ​

change$ ​

readonly change$: Observable<void>

Defined in: frontend/sdk/src/i18n.ts:14

direction ​

readonly direction: "ltr"

Defined in: frontend/sdk/src/i18n.ts:10

locale ​

readonly locale: string

Defined in: frontend/sdk/src/i18n.ts:9

Methods ​

formatDate() ​

formatDate(value, options?): string

Defined in: frontend/sdk/src/i18n.ts:13

Parameters ​
value ​

Date

options? ​

DateTimeFormatOptions

Returns ​

string

formatNumber() ​

formatNumber(value, options?): string

Defined in: frontend/sdk/src/i18n.ts:12

Parameters ​
value ​

number

options? ​

NumberFormatOptions

Returns ​

string

t() ​

t(key, values?): string

Defined in: frontend/sdk/src/i18n.ts:11

Parameters ​
key ​

string

values? ​

Record<string, unknown>

Returns ​

string


PluginInstance ​

Defined in: frontend/sdk/src/plugin.ts:9

Methods ​

onResize()? ​

optional onResize(size): void

Defined in: frontend/sdk/src/plugin.ts:12

Called on tile resize with the new size in grid units. Widgets only.

Parameters ​
size ​

PluginResizeSize

Returns ​

void

unmount() ​

unmount(): void | Promise<void>

Defined in: frontend/sdk/src/plugin.ts:10

Returns ​

void | Promise<void>


PluginResizeSize ​

Defined in: frontend/sdk/src/plugin.ts:4

Widget tile size in grid units, passed to onResize.

Properties ​

h ​

h: number

Defined in: frontend/sdk/src/plugin.ts:6

w ​

w: number

Defined in: frontend/sdk/src/plugin.ts:5


PluginStorage ​

Defined in: frontend/sdk/src/storage.ts:1

Methods ​

delete() ​

delete(key): Promise<void>

Defined in: frontend/sdk/src/storage.ts:4

Parameters ​
key ​

string

Returns ​

Promise<void>

get() ​

get(key): Promise<string | null>

Defined in: frontend/sdk/src/storage.ts:2

Parameters ​
key ​

string

Returns ​

Promise<string | null>

keys() ​

keys(): Promise<string[]>

Defined in: frontend/sdk/src/storage.ts:5

Returns ​

Promise<string[]>

set() ​

set(key, value): Promise<void>

Defined in: frontend/sdk/src/storage.ts:3

Parameters ​
key ​

string

value ​

string

Returns ​

Promise<void>


PluginTelemetry ​

Defined in: frontend/sdk/src/telemetry-client.ts:76

Extends ​

Properties ​

gathering$ ​

readonly gathering$: Observable<TelemetryGathering>

Defined in: frontend/sdk/src/telemetry-client.ts:78

Emits the current gathering state once it is known, then every change; completes on unmount.

Methods ​

fetchProjected() ​

fetchProjected(range, options?): Promise<ProjectedSnapshot>

Defined in: frontend/sdk/src/telemetry-client.ts:69

Parameters ​
range ​

ProjectRange

options? ​
signal? ​

AbortSignal

Returns ​

Promise<ProjectedSnapshot>

Inherited from ​

TelemetryClient.fetchProjected


ProjectedBand ​

Defined in: frontend/sdk/src/telemetry-client.ts:31

Properties ​

color ​

readonly color: ProjectedChartColor

Defined in: frontend/sdk/src/telemetry-client.ts:34

data ​

readonly data: readonly ProjectedBandPoint[]

Defined in: frontend/sdk/src/telemetry-client.ts:33

id ​

readonly id: string

Defined in: frontend/sdk/src/telemetry-client.ts:32


ProjectedBandPoint ​

Defined in: frontend/sdk/src/telemetry-client.ts:25

Properties ​

max ​

readonly max: number

Defined in: frontend/sdk/src/telemetry-client.ts:28

min ​

readonly min: number

Defined in: frontend/sdk/src/telemetry-client.ts:27

time ​

readonly time: number

Defined in: frontend/sdk/src/telemetry-client.ts:26


ProjectedPoint ​

Defined in: frontend/sdk/src/telemetry-client.ts:14

Properties ​

time ​

readonly time: number

Defined in: frontend/sdk/src/telemetry-client.ts:15

value ​

readonly value: number

Defined in: frontend/sdk/src/telemetry-client.ts:16


ProjectedSegment ​

Defined in: frontend/sdk/src/telemetry-client.ts:21

Properties ​

data ​

readonly data: readonly ProjectedPoint[]

Defined in: frontend/sdk/src/telemetry-client.ts:22


ProjectedSeries ​

Defined in: frontend/sdk/src/telemetry-client.ts:51

Properties ​

bands ​

readonly bands: readonly ProjectedBand[]

Defined in: frontend/sdk/src/telemetry-client.ts:57

label? ​

readonly optional label?: string

Defined in: frontend/sdk/src/telemetry-client.ts:52

points ​

readonly points: readonly ProjectedPoint[]

Defined in: frontend/sdk/src/telemetry-client.ts:55

segments ​

readonly segments: readonly ProjectedSegment[]

Defined in: frontend/sdk/src/telemetry-client.ts:56

supported ​

readonly supported: boolean

Defined in: frontend/sdk/src/telemetry-client.ts:53

unit ​

readonly unit: TelemetryUnit

Defined in: frontend/sdk/src/telemetry-client.ts:54

valueDomain? ​

readonly optional valueDomain?: ProjectedValueDomain

Defined in: frontend/sdk/src/telemetry-client.ts:58


ProjectedSnapshot ​

Defined in: frontend/sdk/src/telemetry-client.ts:61

Properties ​

clock? ​

readonly optional clock?: TelemetryClock

Defined in: frontend/sdk/src/telemetry-client.ts:64

gathering ​

readonly gathering: object

Defined in: frontend/sdk/src/telemetry-client.ts:63

enabled ​

readonly enabled: boolean

keys ​

readonly keys: Readonly<Record<string, ProjectedSeries>>

Defined in: frontend/sdk/src/telemetry-client.ts:62

sessionConfigured ​

readonly sessionConfigured: boolean

Defined in: frontend/sdk/src/telemetry-client.ts:65


ProjectedValueDomain ​

Defined in: frontend/sdk/src/telemetry-client.ts:37

Properties ​

max ​

readonly max: number

Defined in: frontend/sdk/src/telemetry-client.ts:39

min ​

readonly min: number

Defined in: frontend/sdk/src/telemetry-client.ts:38


Switchport ​

Defined in: frontend/sdk/src/context.ts:47

Properties ​

color ​

readonly color: string

Defined in: frontend/sdk/src/context.ts:57

group ​

readonly group: string

Defined in: frontend/sdk/src/context.ts:56

Port group, e.g. "WAN" or "LAN".

id ​

readonly id: string

Defined in: frontend/sdk/src/context.ts:49

Stable port key, e.g. "WAN", "LAN1".

index ​

readonly index: number

Defined in: frontend/sdk/src/context.ts:52

interfaceId ​

readonly interfaceId: string

Defined in: frontend/sdk/src/context.ts:58

label ​

readonly label: string

Defined in: frontend/sdk/src/context.ts:51

Physical label printed on the case, e.g. "0".."3".

type ​

readonly type: string

Defined in: frontend/sdk/src/context.ts:54

Port medium, e.g. "ethernet".


Switchports ​

Defined in: frontend/sdk/src/context.ts:61

Properties ​

hasPortStats ​

readonly hasPortStats: boolean

Defined in: frontend/sdk/src/context.ts:66

layout ​

readonly layout: readonly (readonly string[])[]

Defined in: frontend/sdk/src/context.ts:65

Physical rows of switchport labels for drawing the device body.

list ​

readonly list: readonly Switchport[]

Defined in: frontend/sdk/src/context.ts:63

Ordered by index.


TelemetryClient ​

Defined in: frontend/sdk/src/telemetry-client.ts:68

Extended by ​

Methods ​

fetchProjected() ​

fetchProjected(range, options?): Promise<ProjectedSnapshot>

Defined in: frontend/sdk/src/telemetry-client.ts:69

Parameters ​
range ​

ProjectRange

options? ​
signal? ​

AbortSignal

Returns ​

Promise<ProjectedSnapshot>


TelemetryClock ​

Defined in: frontend/sdk/src/telemetry-client.ts:5

Properties ​

historyCurrent ​

readonly historyCurrent: boolean

Defined in: frontend/sdk/src/telemetry-client.ts:8

historyEndMs ​

readonly historyEndMs: number | null

Defined in: frontend/sdk/src/telemetry-client.ts:7

replayPending ​

readonly replayPending: boolean

Defined in: frontend/sdk/src/telemetry-client.ts:9

state ​

readonly state: TelemetryClockState

Defined in: frontend/sdk/src/telemetry-client.ts:6


TelemetryGathering ​

Defined in: frontend/sdk/src/telemetry-client.ts:72

Properties ​

enabled ​

readonly enabled: boolean

Defined in: frontend/sdk/src/telemetry-client.ts:73


Ticker ​

Defined in: frontend/sdk/src/ticker.ts:9

Host-managed periodic updates bound to one plugin context lifetime.

Properties ​

tick$ ​

readonly tick$: Observable<TickerTick>

Defined in: frontend/sdk/src/ticker.ts:13

Methods ​

destroy() ​

destroy(): void

Defined in: frontend/sdk/src/ticker.ts:14

Returns ​

void

setInterval() ​

setInterval(intervalMs): void

Defined in: frontend/sdk/src/ticker.ts:11

Parameters ​
intervalMs ​

number

Returns ​

void

start() ​

start(intervalMs): void

Defined in: frontend/sdk/src/ticker.ts:10

Parameters ​
intervalMs ​

number

Returns ​

void

stop() ​

stop(): void

Defined in: frontend/sdk/src/ticker.ts:12

Returns ​

void


TickerTick ​

Defined in: frontend/sdk/src/ticker.ts:3

Properties ​

drift ​

readonly drift: number

Defined in: frontend/sdk/src/ticker.ts:5

timestamp ​

readonly timestamp: number

Defined in: frontend/sdk/src/ticker.ts:4


Translator ​

Defined in: frontend/sdk/src/translator.ts:1

Properties ​

direction ​

readonly direction: "ltr"

Defined in: frontend/sdk/src/translator.ts:7

Reserved forward-compatibility field; RTL is out of scope and value is always 'ltr'.

locale ​

readonly locale: string

Defined in: frontend/sdk/src/translator.ts:5

Methods ​

formatDate() ​

formatDate(value, options?): string

Defined in: frontend/sdk/src/translator.ts:4

Parameters ​
value ​

Date

options? ​

DateTimeFormatOptions

Returns ​

string

formatNumber() ​

formatNumber(value, options?): string

Defined in: frontend/sdk/src/translator.ts:3

Parameters ​
value ​

number

options? ​

NumberFormatOptions

Returns ​

string

t() ​

t(key, values?): string

Defined in: frontend/sdk/src/translator.ts:2

Parameters ​
key ​

string

values? ​

Record<string, unknown>

Returns ​

string


WidgetPluginContext ​

Defined in: frontend/sdk/src/context.ts:136

Extends ​

  • PluginContextBase

Properties ​

backend? ​

optional backend?: BackendClient

Defined in: frontend/sdk/src/context.ts:129

Typed backend client. Present only when the plugin declares a backend; ids resolve locally from the daemon's descriptor snapshot. See BackendClient.

Inherited from ​

PluginContextBase.backend

deviceInfo ​

deviceInfo: DeviceInfo

Defined in: frontend/sdk/src/context.ts:110

Inherited from ​

PluginContextBase.deviceInfo

events? ​

optional events?: PluginEventFacade

Defined in: frontend/sdk/src/context.ts:106

Inherited from ​

PluginContextBase.events

i18n ​

i18n: PluginI18n

Defined in: frontend/sdk/src/context.ts:111

Inherited from ​

PluginContextBase.i18n

instanceId ​

instanceId: string

Defined in: frontend/sdk/src/context.ts:112

Inherited from ​

PluginContextBase.instanceId

kind ​

readonly kind: "widget"

Defined in: frontend/sdk/src/context.ts:137

locale ​

readonly locale: string

Defined in: frontend/sdk/src/context.ts:118

Current host locale. This getter follows changes while the plugin is mounted.

Inherited from ​

PluginContextBase.locale

locale$ ​

readonly locale$: Observable<string>

Defined in: frontend/sdk/src/context.ts:120

Emits the current locale on subscribe and completes when the plugin unmounts.

Inherited from ​

PluginContextBase.locale$

readonly navigation: HostNavigation

Defined in: frontend/sdk/src/context.ts:104

Inherited from ​

PluginContextBase.navigation

overlay ​

overlay: OverlayService

Defined in: frontend/sdk/src/context.ts:131

Framework-agnostic top-layer UI (modal, drawer, popover, custom).

Inherited from ​

PluginContextBase.overlay

pageRoute? ​

readonly optional pageRoute?: undefined

Defined in: frontend/sdk/src/context.ts:139

Widgets do not receive page navigation.

palette ​

readonly palette: PaletteTokenMap

Defined in: frontend/sdk/src/context.ts:122

Current applied palette, including a device override when present.

Inherited from ​

PluginContextBase.palette

palette$ ​

readonly palette$: Observable<PaletteTokenMap>

Defined in: frontend/sdk/src/context.ts:124

Emits the current palette on subscribe and completes when the plugin unmounts.

Inherited from ​

PluginContextBase.palette$

rciManager ​

rciManager: PluginRciManager

Defined in: frontend/sdk/src/context.ts:107

Inherited from ​

PluginContextBase.rciManager

setTileTitle? ​

readonly optional setTileTitle?: (title) => void

Defined in: frontend/sdk/src/context.ts:141

Set the host tile title.

Parameters ​
title ​

string

Returns ​

void

sharedStorage ​

sharedStorage: PluginStorage

Defined in: frontend/sdk/src/context.ts:109

Inherited from ​

PluginContextBase.sharedStorage

storage ​

storage: PluginStorage

Defined in: frontend/sdk/src/context.ts:108

Inherited from ​

PluginContextBase.storage

telemetry ​

readonly telemetry: PluginTelemetry

Defined in: frontend/sdk/src/context.ts:105

Inherited from ​

PluginContextBase.telemetry

theme ​

readonly theme: "light" | "dark"

Defined in: frontend/sdk/src/context.ts:114

Current host theme. This getter follows changes while the plugin is mounted.

Inherited from ​

PluginContextBase.theme

theme$ ​

readonly theme$: Observable<"light" | "dark">

Defined in: frontend/sdk/src/context.ts:116

Emits the current theme on subscribe and completes when the plugin unmounts.

Inherited from ​

PluginContextBase.theme$

Methods ​

createTicker() ​

createTicker(): Ticker

Defined in: frontend/sdk/src/context.ts:133

Creates a host-managed ticker destroyed when this plugin context ends.

Returns ​

Ticker

Inherited from ​

PluginContextBase.createTicker

Type Aliases ​

BackendApprovalStatus ​

BackendApprovalStatus = "approved" | "pending" | "denied"

Defined in: frontend/sdk/src/backend-client.ts:23

Typed backend client handed to plugins as context.backend. It resolves HTTP and WebSocket route ids from the daemon's capability snapshot and applies the same approval and enabled checks before issuing a request.

Ids resolve locally from a descriptor snapshot taken from GET /api/mgmt/list, no per-call lookup. Two error layers:

  • client-side pre-check from the snapshot - a typo (BackendUnknownId) throws synchronously; a known-unapproved / disabled binding rejects fast (BackendNotApproved / BackendDisabled);
  • the daemon is authoritative - its structured error envelope codes NOT_APPROVED, DISABLED, ROUTE_NOT_FOUND, BACKEND_STARTING, BACKEND_UNAVAILABLE, BACKEND_INCOMPATIBLE, BACKEND_MAINTENANCE, BACKEND_BLOCKED, and BAD_GATEWAY map onto the same typed errors when state changed after load.

Plugins handle one error family either way. status() is separate: it is a live, passive, bound-plugin query and is not a readiness probe.


BackendBlocker ​

BackendBlocker = z.infer<typeof backendBlockerSchema>

Defined in: frontend/sdk/src/backend-client.ts:88


BackendErrorCode ​

BackendErrorCode = "UNKNOWN_ID" | "NOT_APPROVED" | "DISABLED" | "TRANSPORT_MISMATCH" | "BACKEND_STARTING" | "BACKEND_UNAVAILABLE" | "BACKEND_INCOMPATIBLE" | "BACKEND_MAINTENANCE" | "BACKEND_BLOCKED" | "BAD_GATEWAY" | "STATUS_QUERY_FAILED"

Defined in: frontend/sdk/src/backend-client.ts:146


BackendStatus ​

BackendStatus = z.infer<typeof backendStatusSchema>

Defined in: frontend/sdk/src/backend-client.ts:89


BackendStatusState ​

BackendStatusState = BackendStatus["state"]

Defined in: frontend/sdk/src/backend-client.ts:90


EventSource ​

EventSource = z.infer<typeof eventSourceSchema>

Defined in: frontend/sdk/src/event-schema.ts:221


EventTopic ​

EventTopic = MndwEvent["topic"]

Defined in: frontend/sdk/src/event-schema.ts:222


HistoryStatus ​

HistoryStatus = "current" | "catching-up" | "historical" | "empty" | "legacy"

Defined in: frontend/sdk/src/telemetry-client.ts:349


HostTarget ​

HostTarget = { kind: "dashboard"; } | { kind: "packages"; } | { kind: "settings"; tab?: "general" | "diagnostics" | "plugins" | "self-update"; } | { kind: "plugin-page"; path?: string; plugin: string; }

Defined in: frontend/sdk/src/context.ts:26


KnownTelemetryUnit ​

KnownTelemetryUnit = "percent" | "celsius"

Defined in: frontend/sdk/src/telemetry-client.ts:42


LoadState ​

LoadState<T, E> = { status: "idle"; } | { status: "loading"; } | { data: T; status: "success"; } | { data: T; status: "refreshing"; } | { data?: T; error: E; status: "error"; } | { reason: string; status: "unsupported"; }

Defined in: frontend/sdk/src/load-state.ts:1

Type Parameters ​

T ​

T

E ​

E = unknown


MndwEvent ​

MndwEvent = z.infer<typeof eventSchema>

Defined in: frontend/sdk/src/event-schema.ts:220


OverlayCloseReason ​

OverlayCloseReason = "api" | "action" | "escape" | "outside-click" | "host-navigation" | "plugin-unmount" | "replaced" | "anchor-lost" | "mount-failed"

Defined in: frontend/sdk/src/overlay.ts:28

Only api and action are plugin-assignable via close(). All other reasons are host-assigned (navigation, unmount, replacement, anchor loss, mount failure).


OverlayKind ​

OverlayKind = "modal" | "drawer" | "popover" | "custom"

Defined in: frontend/sdk/src/overlay.ts:7

Framework-agnostic overlay SDK. Host owns stacking, focus, dismissal, backdrop, scroll lock, and cleanup; plugins mount their own content into host-provided targets and register teardown. Host never re-parents already-rendered plugin DOM.


OverlayMount ​

OverlayMount<Result> = (target, layer, signal) => void | Promise<void>

Defined in: frontend/sdk/src/overlay.ts:93

Type Parameters ​

Result ​

Result = unknown

Parameters ​

target ​

HTMLElement

layer ​

OverlayLayer<Result>

signal ​

AbortSignal

Returns ​

void | Promise<void>


OverlayPlacement ​

OverlayPlacement = "center" | "top" | "right" | "bottom" | "left" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end"

Defined in: frontend/sdk/src/overlay.ts:9


PageRouteErrorCode ​

PageRouteErrorCode = "INVALID_PATH" | "COMPLETED" | "NAVIGATION_FAILED"

Defined in: frontend/sdk/src/context.ts:24


PaletteTokenMap ​

PaletteTokenMap = Record<ThemeName, Record<TokenName, string>>

Defined in: tooling/palette-core/src/metadata.ts:27


PluginContext ​

PluginContext = WidgetPluginContext | PagePluginContext

Defined in: frontend/sdk/src/context.ts:153

Compatibility alias for plugins that consume both widget and page contexts.


PluginRciManager ​

PluginRciManager = Pick<RciManager, PluginRciManagerMethod>

Defined in: frontend/sdk/src/rci.ts:12


PluginRciManagerMethod ​

PluginRciManagerMethod = typeof PLUGIN_RCI_MANAGER_METHODS[number]

Defined in: frontend/sdk/src/rci.ts:10


ProjectedChartColor ​

ProjectedChartColor = "accent" | "success" | "warning" | "muted"

Defined in: frontend/sdk/src/telemetry-client.ts:19


ProjectRange ​

ProjectRange = "1h" | "3h" | "1d" | "7d" | "30d"

Defined in: frontend/sdk/src/telemetry-client.ts:12


TelemetryClockState ​

TelemetryClockState = "unanchored" | "anchored" | "suspect"

Defined in: frontend/sdk/src/telemetry-client.ts:3


TelemetryUnit ​

TelemetryUnit = KnownTelemetryUnit | string & object

Defined in: frontend/sdk/src/telemetry-client.ts:43


ThemeName ​

ThemeName = "light" | "dark"

Defined in: tooling/palette-core/src/metadata.ts:1


TokenName ​

TokenName = "bg" | "surface" | "surfaceRaised" | "border" | "textSubtle" | "textMuted" | "text" | "accent" | "accentHover" | "accentContrast" | "danger" | "dangerBg" | "success" | "successBg" | "warning" | "warningBg" | "info" | "infoBg" | "focusRing" | "surfaceHover" | "controlHover" | "shadowColor"

Defined in: tooling/palette-core/src/metadata.ts:3

Variables ​

KNOWN_TELEMETRY_UNITS ​

const KNOWN_TELEMETRY_UNITS: readonly KnownTelemetryUnit[]

Defined in: frontend/sdk/src/telemetry-client.ts:45


PLUGIN_RCI_MANAGER_METHODS ​

const PLUGIN_RCI_MANAGER_METHODS: readonly ["execute", "queue", "initBackgroundProcess", "queueBackgroundProcess"]

Defined in: frontend/sdk/src/rci.ts:3


SDK_VERSION ​

const SDK_VERSION: "0.1.6" = '0.1.6'

Defined in: frontend/sdk/src/version.ts:2

The @mndw/sdk package version, pinned to package.json by version.test.ts.

Functions ​

historyStatus() ​

historyStatus(clock): HistoryStatus

Defined in: frontend/sdk/src/telemetry-client.ts:351

Parameters ​

clock ​

TelemetryClock | undefined

Returns ​

HistoryStatus


isBackendMaintenanceClose() ​

isBackendMaintenanceClose(event): boolean

Defined in: frontend/sdk/src/backend-client.ts:138

Returns true for an intentional daemon maintenance close; callers must show an explicit reconnect affordance and never silently recreate the socket.

Parameters ​

event ​

Pick<CloseEvent, "code" | "reason">

Returns ​

boolean


isKnownTelemetryUnit() ​

isKnownTelemetryUnit(unit): unit is KnownTelemetryUnit

Defined in: frontend/sdk/src/telemetry-client.ts:47

Parameters ​

unit ​

string

Returns ​

unit is KnownTelemetryUnit

References ​

MNDW_SCALE ​

Re-exports MNDW_SCALE


MNDW_TOKENS ​

Re-exports MNDW_TOKENS


MndwThemeName ​

Re-exports MndwThemeName

Built from the mndw repository documentation.