Skip to content

Intercept

InterceptMessageId

InterceptMessageId = string & object

A unique intercept message identifier.

Type Declaration

__interceptMessageId?

optional __interceptMessageId: never


InterceptPageContext

InterceptPageContext = object

Intercept page context.

Properties

kind

kind: "Intercept"

requestSelection

requestSelection: Selection<InterceptMessageId>

responseSelection

responseSelection: Selection<InterceptMessageId>

websocketSelection

websocketSelection: Selection<InterceptMessageId>


InterceptSDK

InterceptSDK = object

Utilities to interact with the Intercept page.

Properties

addRequestViewMode()

addRequestViewMode: (options: RequestViewModeOptions) => void

Add a custom request view mode.

Parameters
ParameterTypeDescription
optionsRequestViewModeOptionsThe view mode options.
Returns

void

getScopeId()

getScopeId: () => ID | undefined

Get the current scope ID.

Returns

ID | undefined

The current scope ID.

setScope()

setScope: (id: ID | undefined) => void

Set the current scope.

Parameters
ParameterType
idID | undefined
Returns

void