Documentation
¶
Overview ¶
Package digitalcredentials provides the Chrome DevTools Protocol commands, types, and events for the DigitalCredentials domain.
This domain allows interacting with the Digital Credentials API for automation.
Generated by the pdlgen command.
Index ¶
Constants ¶
const (
CommandSetVirtualWalletBehavior = "DigitalCredentials.setVirtualWalletBehavior"
)
Command names.
Variables ¶
var SetVirtualWalletBehavior = cdp.Command[SetVirtualWalletBehaviorParams, cdp.Empty]{Method: CommandSetVirtualWalletBehavior}
SetVirtualWalletBehavior sets the behavior of the virtual wallet for digital credential requests issued from this frame.
Functions ¶
This section is empty.
Types ¶
type SetVirtualWalletBehaviorParams ¶
type SetVirtualWalletBehaviorParams struct {
Action VirtualWalletAction `json:"action"` // The action of the virtual wallet.
Protocol string `json:"protocol,omitempty,omitzero"` // The protocol identifier (e.g. "openid4vp"). Required when |action| is "respond", forbidden otherwise.
Response jsonv2.Value `json:"response,omitempty,omitzero"`
FrameID cdp.FrameID `json:"frameId,omitempty,omitzero"` // The frame to scope the virtual wallet behavior to.
}
SetVirtualWalletBehaviorParams are the parameters of the command DigitalCredentials.setVirtualWalletBehavior.
type VirtualWalletAction ¶
type VirtualWalletAction string
VirtualWalletAction the type of virtual wallet action.
See: https://chromedevtools.github.io/devtools-protocol/tot/DigitalCredentials#type-VirtualWalletAction
const ( VirtualWalletActionRespond VirtualWalletAction = "respond" VirtualWalletActionDecline VirtualWalletAction = "decline" VirtualWalletActionWait VirtualWalletAction = "wait" VirtualWalletActionClear VirtualWalletAction = "clear" )
VirtualWalletAction values.
func (VirtualWalletAction) String ¶
func (t VirtualWalletAction) String() string
String returns the VirtualWalletAction as string value.