digitalcredentials

package
v0.157.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 3, 2026 License: MIT Imports: 5 Imported by: 0

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 cdproto-gen command.

Index

Constants

View Source
const (
	CommandSetVirtualWalletBehavior = "DigitalCredentials.setVirtualWalletBehavior"
)

Command names.

Variables

This section is empty.

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 jsontext.Value      `json:"response,omitempty,omitzero"`
	FrameID  cdp.FrameID         `json:"frameId,omitempty,omitzero"` // The frame to scope the virtual wallet behavior to.
}

SetVirtualWalletBehaviorParams sets the behavior of the virtual wallet for digital credential requests issued from this frame.

func SetVirtualWalletBehavior

func SetVirtualWalletBehavior(action VirtualWalletAction) *SetVirtualWalletBehaviorParams

SetVirtualWalletBehavior sets the behavior of the virtual wallet for digital credential requests issued from this frame.

See: https://chromedevtools.github.io/devtools-protocol/tot/DigitalCredentials#method-setVirtualWalletBehavior

parameters:

action - The action of the virtual wallet.

func (*SetVirtualWalletBehaviorParams) Do

Do executes DigitalCredentials.setVirtualWalletBehavior against the provided context.

func (SetVirtualWalletBehaviorParams) WithFrameID

WithFrameID the frame to scope the virtual wallet behavior to.

func (SetVirtualWalletBehaviorParams) WithProtocol

WithProtocol the protocol identifier (e.g. "openid4vp"). Required when |action| is "respond", forbidden otherwise.

func (SetVirtualWalletBehaviorParams) WithResponse

WithResponse the response data object returned by the wallet. Required when |action| is "respond", forbidden otherwise.

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.

func (*VirtualWalletAction) UnmarshalJSON

func (t *VirtualWalletAction) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies [json.Unmarshaler].

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL