From fb382cd30c79318db5f52f167b7f3db157d629f0 Mon Sep 17 00:00:00 2001 From: Kenneth Shaw Date: Thu, 15 Feb 2024 06:24:18 +0700 Subject: [PATCH] Updating to 123.0.6301.3_12.3.188.1 definitions --- animation/easyjson.go | 370 ++++++++++++++++++++++++++++-------------- animation/types.go | 35 ++-- cdproto.go | 4 + dom/types.go | 45 +++++ network/types.go | 6 +- storage/easyjson.go | 7 + storage/types.go | 7 +- webauthn/easyjson.go | 293 ++++++++++++++++++++++----------- webauthn/types.go | 12 +- webauthn/webauthn.go | 43 +++++ 10 files changed, 584 insertions(+), 238 deletions(-) diff --git a/animation/easyjson.go b/animation/easyjson.go index a1f4593..bf13d09 100644 --- a/animation/easyjson.go +++ b/animation/easyjson.go @@ -18,7 +18,122 @@ var ( _ easyjson.Marshaler ) -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation(in *jlexer.Lexer, out *SetTimingParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation(in *jlexer.Lexer, out *ViewOrScrollTimeline) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "sourceNodeId": + (out.SourceNodeID).UnmarshalEasyJSON(in) + case "startOffset": + out.StartOffset = float64(in.Float64()) + case "endOffset": + out.EndOffset = float64(in.Float64()) + case "subjectNodeId": + (out.SubjectNodeID).UnmarshalEasyJSON(in) + case "axis": + (out.Axis).UnmarshalEasyJSON(in) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation(out *jwriter.Writer, in ViewOrScrollTimeline) { + out.RawByte('{') + first := true + _ = first + if in.SourceNodeID != 0 { + const prefix string = ",\"sourceNodeId\":" + first = false + out.RawString(prefix[1:]) + out.Int64(int64(in.SourceNodeID)) + } + if in.StartOffset != 0 { + const prefix string = ",\"startOffset\":" + if first { + first = false + out.RawString(prefix[1:]) + } else { + out.RawString(prefix) + } + out.Float64(float64(in.StartOffset)) + } + if in.EndOffset != 0 { + const prefix string = ",\"endOffset\":" + if first { + first = false + out.RawString(prefix[1:]) + } else { + out.RawString(prefix) + } + out.Float64(float64(in.EndOffset)) + } + if in.SubjectNodeID != 0 { + const prefix string = ",\"subjectNodeId\":" + if first { + first = false + out.RawString(prefix[1:]) + } else { + out.RawString(prefix) + } + out.Int64(int64(in.SubjectNodeID)) + } + { + const prefix string = ",\"axis\":" + if first { + first = false + out.RawString(prefix[1:]) + } else { + out.RawString(prefix) + } + (in.Axis).MarshalEasyJSON(out) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v ViewOrScrollTimeline) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v ViewOrScrollTimeline) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *ViewOrScrollTimeline) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *ViewOrScrollTimeline) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation(l, v) +} +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation1(in *jlexer.Lexer, out *SetTimingParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -53,7 +168,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation(out *jwriter.Writer, in SetTimingParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation1(out *jwriter.Writer, in SetTimingParams) { out.RawByte('{') first := true _ = first @@ -78,27 +193,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation(out *jwriter.Writer // MarshalJSON supports json.Marshaler interface func (v SetTimingParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation1(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v SetTimingParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation1(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *SetTimingParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation1(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *SetTimingParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation1(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation1(in *jlexer.Lexer, out *SetPlaybackRateParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation2(in *jlexer.Lexer, out *SetPlaybackRateParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -129,7 +244,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation1(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation1(out *jwriter.Writer, in SetPlaybackRateParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation2(out *jwriter.Writer, in SetPlaybackRateParams) { out.RawByte('{') first := true _ = first @@ -144,27 +259,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation1(out *jwriter.Write // MarshalJSON supports json.Marshaler interface func (v SetPlaybackRateParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation1(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation2(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v SetPlaybackRateParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation1(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation2(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *SetPlaybackRateParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation1(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation2(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *SetPlaybackRateParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation1(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation2(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation2(in *jlexer.Lexer, out *SetPausedParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation3(in *jlexer.Lexer, out *SetPausedParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -218,7 +333,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation2(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation2(out *jwriter.Writer, in SetPausedParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation3(out *jwriter.Writer, in SetPausedParams) { out.RawByte('{') first := true _ = first @@ -249,27 +364,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation2(out *jwriter.Write // MarshalJSON supports json.Marshaler interface func (v SetPausedParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation2(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation3(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v SetPausedParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation2(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation3(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *SetPausedParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation2(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation3(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *SetPausedParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation2(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation3(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation3(in *jlexer.Lexer, out *SeekAnimationsParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation4(in *jlexer.Lexer, out *SeekAnimationsParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -323,7 +438,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation3(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation3(out *jwriter.Writer, in SeekAnimationsParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation4(out *jwriter.Writer, in SeekAnimationsParams) { out.RawByte('{') first := true _ = first @@ -354,27 +469,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation3(out *jwriter.Write // MarshalJSON supports json.Marshaler interface func (v SeekAnimationsParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation3(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation4(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v SeekAnimationsParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation3(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation4(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *SeekAnimationsParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation3(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation4(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *SeekAnimationsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation3(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation4(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation4(in *jlexer.Lexer, out *ResolveAnimationReturns) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation5(in *jlexer.Lexer, out *ResolveAnimationReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -413,7 +528,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation4(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation4(out *jwriter.Writer, in ResolveAnimationReturns) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation5(out *jwriter.Writer, in ResolveAnimationReturns) { out.RawByte('{') first := true _ = first @@ -429,27 +544,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation4(out *jwriter.Write // MarshalJSON supports json.Marshaler interface func (v ResolveAnimationReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation4(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation5(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ResolveAnimationReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation4(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation5(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ResolveAnimationReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation4(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation5(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ResolveAnimationReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation4(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation5(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation5(in *jlexer.Lexer, out *ResolveAnimationParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation6(in *jlexer.Lexer, out *ResolveAnimationParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -480,7 +595,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation5(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation5(out *jwriter.Writer, in ResolveAnimationParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation6(out *jwriter.Writer, in ResolveAnimationParams) { out.RawByte('{') first := true _ = first @@ -495,27 +610,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation5(out *jwriter.Write // MarshalJSON supports json.Marshaler interface func (v ResolveAnimationParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation5(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation6(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ResolveAnimationParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation5(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation6(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ResolveAnimationParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation5(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation6(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ResolveAnimationParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation5(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation6(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation6(in *jlexer.Lexer, out *ReleaseAnimationsParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation7(in *jlexer.Lexer, out *ReleaseAnimationsParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -567,7 +682,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation6(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation6(out *jwriter.Writer, in ReleaseAnimationsParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation7(out *jwriter.Writer, in ReleaseAnimationsParams) { out.RawByte('{') first := true _ = first @@ -593,27 +708,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation6(out *jwriter.Write // MarshalJSON supports json.Marshaler interface func (v ReleaseAnimationsParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation6(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation7(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ReleaseAnimationsParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation6(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation7(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ReleaseAnimationsParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation6(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation7(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ReleaseAnimationsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation6(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation7(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation7(in *jlexer.Lexer, out *KeyframesRule) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation8(in *jlexer.Lexer, out *KeyframesRule) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -675,7 +790,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation7(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation7(out *jwriter.Writer, in KeyframesRule) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation8(out *jwriter.Writer, in KeyframesRule) { out.RawByte('{') first := true _ = first @@ -716,27 +831,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation7(out *jwriter.Write // MarshalJSON supports json.Marshaler interface func (v KeyframesRule) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation7(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation8(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v KeyframesRule) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation7(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation8(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *KeyframesRule) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation7(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation8(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *KeyframesRule) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation7(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation8(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation8(in *jlexer.Lexer, out *KeyframeStyle) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation9(in *jlexer.Lexer, out *KeyframeStyle) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -769,7 +884,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation8(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation8(out *jwriter.Writer, in KeyframeStyle) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation9(out *jwriter.Writer, in KeyframeStyle) { out.RawByte('{') first := true _ = first @@ -789,27 +904,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation8(out *jwriter.Write // MarshalJSON supports json.Marshaler interface func (v KeyframeStyle) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation8(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation9(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v KeyframeStyle) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation8(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation9(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *KeyframeStyle) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation8(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation9(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *KeyframeStyle) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation8(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation9(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation9(in *jlexer.Lexer, out *GetPlaybackRateReturns) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation10(in *jlexer.Lexer, out *GetPlaybackRateReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -840,7 +955,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation9(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation9(out *jwriter.Writer, in GetPlaybackRateReturns) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation10(out *jwriter.Writer, in GetPlaybackRateReturns) { out.RawByte('{') first := true _ = first @@ -856,27 +971,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation9(out *jwriter.Write // MarshalJSON supports json.Marshaler interface func (v GetPlaybackRateReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation9(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation10(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetPlaybackRateReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation9(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation10(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetPlaybackRateReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation9(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation10(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetPlaybackRateReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation9(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation10(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation10(in *jlexer.Lexer, out *GetPlaybackRateParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation11(in *jlexer.Lexer, out *GetPlaybackRateParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -905,7 +1020,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation10(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation10(out *jwriter.Writer, in GetPlaybackRateParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation11(out *jwriter.Writer, in GetPlaybackRateParams) { out.RawByte('{') first := true _ = first @@ -915,27 +1030,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation10(out *jwriter.Writ // MarshalJSON supports json.Marshaler interface func (v GetPlaybackRateParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation10(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation11(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetPlaybackRateParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation10(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation11(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetPlaybackRateParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation10(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation11(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetPlaybackRateParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation10(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation11(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation11(in *jlexer.Lexer, out *GetCurrentTimeReturns) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation12(in *jlexer.Lexer, out *GetCurrentTimeReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -966,7 +1081,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation11(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation11(out *jwriter.Writer, in GetCurrentTimeReturns) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation12(out *jwriter.Writer, in GetCurrentTimeReturns) { out.RawByte('{') first := true _ = first @@ -982,27 +1097,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation11(out *jwriter.Writ // MarshalJSON supports json.Marshaler interface func (v GetCurrentTimeReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation11(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation12(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetCurrentTimeReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation11(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation12(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetCurrentTimeReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation11(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation12(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetCurrentTimeReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation11(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation12(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation12(in *jlexer.Lexer, out *GetCurrentTimeParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation13(in *jlexer.Lexer, out *GetCurrentTimeParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1033,7 +1148,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation12(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation12(out *jwriter.Writer, in GetCurrentTimeParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation13(out *jwriter.Writer, in GetCurrentTimeParams) { out.RawByte('{') first := true _ = first @@ -1048,27 +1163,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation12(out *jwriter.Writ // MarshalJSON supports json.Marshaler interface func (v GetCurrentTimeParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation12(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation13(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetCurrentTimeParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation12(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation13(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetCurrentTimeParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation12(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation13(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetCurrentTimeParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation12(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation13(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation13(in *jlexer.Lexer, out *EventAnimationStarted) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation14(in *jlexer.Lexer, out *EventAnimationStarted) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1107,7 +1222,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation13(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation13(out *jwriter.Writer, in EventAnimationStarted) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation14(out *jwriter.Writer, in EventAnimationStarted) { out.RawByte('{') first := true _ = first @@ -1126,27 +1241,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation13(out *jwriter.Writ // MarshalJSON supports json.Marshaler interface func (v EventAnimationStarted) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation13(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation14(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventAnimationStarted) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation13(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation14(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventAnimationStarted) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation13(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation14(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventAnimationStarted) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation13(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation14(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation14(in *jlexer.Lexer, out *EventAnimationCreated) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation15(in *jlexer.Lexer, out *EventAnimationCreated) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1177,7 +1292,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation14(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation14(out *jwriter.Writer, in EventAnimationCreated) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation15(out *jwriter.Writer, in EventAnimationCreated) { out.RawByte('{') first := true _ = first @@ -1192,27 +1307,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation14(out *jwriter.Writ // MarshalJSON supports json.Marshaler interface func (v EventAnimationCreated) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation14(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation15(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventAnimationCreated) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation14(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation15(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventAnimationCreated) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation14(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation15(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventAnimationCreated) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation14(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation15(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation15(in *jlexer.Lexer, out *EventAnimationCanceled) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation16(in *jlexer.Lexer, out *EventAnimationCanceled) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1243,7 +1358,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation15(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation15(out *jwriter.Writer, in EventAnimationCanceled) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation16(out *jwriter.Writer, in EventAnimationCanceled) { out.RawByte('{') first := true _ = first @@ -1258,27 +1373,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation15(out *jwriter.Writ // MarshalJSON supports json.Marshaler interface func (v EventAnimationCanceled) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation15(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation16(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventAnimationCanceled) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation15(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation16(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventAnimationCanceled) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation15(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation16(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventAnimationCanceled) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation15(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation16(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation16(in *jlexer.Lexer, out *EnableParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation17(in *jlexer.Lexer, out *EnableParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1307,7 +1422,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation16(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation16(out *jwriter.Writer, in EnableParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation17(out *jwriter.Writer, in EnableParams) { out.RawByte('{') first := true _ = first @@ -1317,27 +1432,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation16(out *jwriter.Writ // MarshalJSON supports json.Marshaler interface func (v EnableParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation16(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation17(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation16(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation17(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EnableParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation16(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation17(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation16(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation17(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation17(in *jlexer.Lexer, out *Effect) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation18(in *jlexer.Lexer, out *Effect) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1394,7 +1509,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation17(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation17(out *jwriter.Writer, in Effect) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation18(out *jwriter.Writer, in Effect) { out.RawByte('{') first := true _ = first @@ -1454,27 +1569,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation17(out *jwriter.Writ // MarshalJSON supports json.Marshaler interface func (v Effect) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation17(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation18(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v Effect) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation17(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation18(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *Effect) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation17(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation18(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *Effect) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation17(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation18(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation18(in *jlexer.Lexer, out *DisableParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation19(in *jlexer.Lexer, out *DisableParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1503,7 +1618,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation18(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation18(out *jwriter.Writer, in DisableParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation19(out *jwriter.Writer, in DisableParams) { out.RawByte('{') first := true _ = first @@ -1513,27 +1628,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation18(out *jwriter.Writ // MarshalJSON supports json.Marshaler interface func (v DisableParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation18(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation19(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation18(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation19(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *DisableParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation18(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation19(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation18(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation19(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation19(in *jlexer.Lexer, out *Animation) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation20(in *jlexer.Lexer, out *Animation) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1580,6 +1695,16 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation19(in *jlexer.Lexer, } case "cssId": out.CSSID = string(in.String()) + case "viewOrScrollTimeline": + if in.IsNull() { + in.Skip() + out.ViewOrScrollTimeline = nil + } else { + if out.ViewOrScrollTimeline == nil { + out.ViewOrScrollTimeline = new(ViewOrScrollTimeline) + } + (*out.ViewOrScrollTimeline).UnmarshalEasyJSON(in) + } default: in.SkipRecursive() } @@ -1590,7 +1715,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation19(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation19(out *jwriter.Writer, in Animation) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation20(out *jwriter.Writer, in Animation) { out.RawByte('{') first := true _ = first @@ -1644,29 +1769,34 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation19(out *jwriter.Writ out.RawString(prefix) out.String(string(in.CSSID)) } + if in.ViewOrScrollTimeline != nil { + const prefix string = ",\"viewOrScrollTimeline\":" + out.RawString(prefix) + (*in.ViewOrScrollTimeline).MarshalEasyJSON(out) + } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface func (v Animation) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation19(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation20(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v Animation) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation19(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation20(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *Animation) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation19(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation20(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *Animation) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation19(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAnimation20(l, v) } diff --git a/animation/types.go b/animation/types.go index db15314..21070c8 100644 --- a/animation/types.go +++ b/animation/types.go @@ -6,6 +6,7 @@ import ( "fmt" "github.com/chromedp/cdproto/cdp" + "github.com/chromedp/cdproto/dom" "github.com/mailru/easyjson" "github.com/mailru/easyjson/jlexer" "github.com/mailru/easyjson/jwriter" @@ -15,16 +16,28 @@ import ( // // See: https://chromedevtools.github.io/devtools-protocol/tot/Animation#type-Animation type Animation struct { - ID string `json:"id"` // Animation's id. - Name string `json:"name"` // Animation's name. - PausedState bool `json:"pausedState"` // Animation's internal paused state. - PlayState string `json:"playState"` // Animation's play state. - PlaybackRate float64 `json:"playbackRate"` // Animation's playback rate. - StartTime float64 `json:"startTime"` // Animation's start time. - CurrentTime float64 `json:"currentTime"` // Animation's current time. - Type Type `json:"type"` // Animation type of Animation. - Source *Effect `json:"source,omitempty"` // Animation's source animation node. - CSSID string `json:"cssId,omitempty"` // A unique ID for Animation representing the sources that triggered this CSS animation/transition. + ID string `json:"id"` // Animation's id. + Name string `json:"name"` // Animation's name. + PausedState bool `json:"pausedState"` // Animation's internal paused state. + PlayState string `json:"playState"` // Animation's play state. + PlaybackRate float64 `json:"playbackRate"` // Animation's playback rate. + StartTime float64 `json:"startTime"` // Animation's start time. Milliseconds for time based animations and percentage [0 - 100] for scroll driven animations (i.e. when viewOrScrollTimeline exists). + CurrentTime float64 `json:"currentTime"` // Animation's current time. + Type Type `json:"type"` // Animation type of Animation. + Source *Effect `json:"source,omitempty"` // Animation's source animation node. + CSSID string `json:"cssId,omitempty"` // A unique ID for Animation representing the sources that triggered this CSS animation/transition. + ViewOrScrollTimeline *ViewOrScrollTimeline `json:"viewOrScrollTimeline,omitempty"` // View or scroll timeline +} + +// ViewOrScrollTimeline timeline instance. +// +// See: https://chromedevtools.github.io/devtools-protocol/tot/Animation#type-ViewOrScrollTimeline +type ViewOrScrollTimeline struct { + SourceNodeID cdp.BackendNodeID `json:"sourceNodeId,omitempty"` // Scroll container node + StartOffset float64 `json:"startOffset,omitempty"` // Represents the starting scroll position of the timeline as a length offset in pixels from scroll origin. + EndOffset float64 `json:"endOffset,omitempty"` // Represents the ending scroll position of the timeline as a length offset in pixels from scroll origin. + SubjectNodeID cdp.BackendNodeID `json:"subjectNodeId,omitempty"` // The element whose principal box's visibility in the scrollport defined the progress of the timeline. Does not exist for animations with ScrollTimeline + Axis dom.ScrollOrientation `json:"axis"` // Orientation of the scroll } // Effect animationEffect instance. @@ -35,7 +48,7 @@ type Effect struct { EndDelay float64 `json:"endDelay"` // AnimationEffect's end delay. IterationStart float64 `json:"iterationStart"` // AnimationEffect's iteration start. Iterations float64 `json:"iterations"` // AnimationEffect's iterations. - Duration float64 `json:"duration"` // AnimationEffect's iteration duration. + Duration float64 `json:"duration"` // AnimationEffect's iteration duration. Milliseconds for time based animations and percentage [0 - 100] for scroll driven animations (i.e. when viewOrScrollTimeline exists). Direction string `json:"direction"` // AnimationEffect's playback direction. Fill string `json:"fill"` // AnimationEffect's fill mode. BackendNodeID cdp.BackendNodeID `json:"backendNodeId,omitempty"` // AnimationEffect's target node. diff --git a/cdproto.go b/cdproto.go index 4ef1d57..49afb25 100644 --- a/cdproto.go +++ b/cdproto.go @@ -796,6 +796,7 @@ const ( CommandWebAuthnClearCredentials = webauthn.CommandClearCredentials CommandWebAuthnSetUserVerified = webauthn.CommandSetUserVerified CommandWebAuthnSetAutomaticPresenceSimulation = webauthn.CommandSetAutomaticPresenceSimulation + CommandWebAuthnSetCredentialProperties = webauthn.CommandSetCredentialProperties EventWebAuthnCredentialAdded = "WebAuthn.credentialAdded" EventWebAuthnCredentialAsserted = "WebAuthn.credentialAsserted" ) @@ -2978,6 +2979,9 @@ func UnmarshalMessage(msg *Message) (interface{}, error) { case CommandWebAuthnSetAutomaticPresenceSimulation: return emptyVal, nil + case CommandWebAuthnSetCredentialProperties: + return emptyVal, nil + case EventWebAuthnCredentialAdded: v = new(webauthn.EventCredentialAdded) diff --git a/dom/types.go b/dom/types.go index ebe6c10..ec9326c 100644 --- a/dom/types.go +++ b/dom/types.go @@ -106,6 +106,51 @@ func (t *LogicalAxes) UnmarshalJSON(buf []byte) error { return easyjson.Unmarshal(buf, t) } +// ScrollOrientation physical scroll orientation. +// +// See: https://chromedevtools.github.io/devtools-protocol/tot/DOM#type-ScrollOrientation +type ScrollOrientation string + +// String returns the ScrollOrientation as string value. +func (t ScrollOrientation) String() string { + return string(t) +} + +// ScrollOrientation values. +const ( + ScrollOrientationHorizontal ScrollOrientation = "horizontal" + ScrollOrientationVertical ScrollOrientation = "vertical" +) + +// MarshalEasyJSON satisfies easyjson.Marshaler. +func (t ScrollOrientation) MarshalEasyJSON(out *jwriter.Writer) { + out.String(string(t)) +} + +// MarshalJSON satisfies json.Marshaler. +func (t ScrollOrientation) MarshalJSON() ([]byte, error) { + return easyjson.Marshal(t) +} + +// UnmarshalEasyJSON satisfies easyjson.Unmarshaler. +func (t *ScrollOrientation) UnmarshalEasyJSON(in *jlexer.Lexer) { + v := in.String() + switch ScrollOrientation(v) { + case ScrollOrientationHorizontal: + *t = ScrollOrientationHorizontal + case ScrollOrientationVertical: + *t = ScrollOrientationVertical + + default: + in.AddError(fmt.Errorf("unknown ScrollOrientation value: %v", v)) + } +} + +// UnmarshalJSON satisfies json.Unmarshaler. +func (t *ScrollOrientation) UnmarshalJSON(buf []byte) error { + return easyjson.Unmarshal(buf, t) +} + // Quad an array of quad vertices, x immediately followed by y for each // point, points clock-wise. // diff --git a/network/types.go b/network/types.go index 1e6456f..1cb7640 100644 --- a/network/types.go +++ b/network/types.go @@ -1341,7 +1341,7 @@ const ( CookieExemptionReasonEnterprisePolicy CookieExemptionReason = "EnterprisePolicy" CookieExemptionReasonStorageAccess CookieExemptionReason = "StorageAccess" CookieExemptionReasonTopLevelStorageAccess CookieExemptionReason = "TopLevelStorageAccess" - CookieExemptionReasonBrowserHeuristics CookieExemptionReason = "BrowserHeuristics" + CookieExemptionReasonCorsOptIn CookieExemptionReason = "CorsOptIn" ) // MarshalEasyJSON satisfies easyjson.Marshaler. @@ -1374,8 +1374,8 @@ func (t *CookieExemptionReason) UnmarshalEasyJSON(in *jlexer.Lexer) { *t = CookieExemptionReasonStorageAccess case CookieExemptionReasonTopLevelStorageAccess: *t = CookieExemptionReasonTopLevelStorageAccess - case CookieExemptionReasonBrowserHeuristics: - *t = CookieExemptionReasonBrowserHeuristics + case CookieExemptionReasonCorsOptIn: + *t = CookieExemptionReasonCorsOptIn default: in.AddError(fmt.Errorf("unknown CookieExemptionReason value: %v", v)) diff --git a/storage/easyjson.go b/storage/easyjson.go index 01a950c..1c23d74 100644 --- a/storage/easyjson.go +++ b/storage/easyjson.go @@ -916,6 +916,8 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage12(in *jlexer.Lexer, o out.Length = int64(in.Int64()) case "remainingBudget": out.RemainingBudget = float64(in.Float64()) + case "bytesUsed": + out.BytesUsed = int64(in.Int64()) default: in.SkipRecursive() } @@ -949,6 +951,11 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage12(out *jwriter.Writer out.RawString(prefix) out.Float64(float64(in.RemainingBudget)) } + { + const prefix string = ",\"bytesUsed\":" + out.RawString(prefix) + out.Int64(int64(in.BytesUsed)) + } out.RawByte('}') } diff --git a/storage/types.go b/storage/types.go index b8a2382..ac1e2b1 100644 --- a/storage/types.go +++ b/storage/types.go @@ -427,9 +427,10 @@ type SharedStorageEntry struct { // // See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#type-SharedStorageMetadata type SharedStorageMetadata struct { - CreationTime *cdp.TimeSinceEpoch `json:"creationTime"` - Length int64 `json:"length"` - RemainingBudget float64 `json:"remainingBudget"` + CreationTime *cdp.TimeSinceEpoch `json:"creationTime"` // Time when the origin's shared storage was last created. + Length int64 `json:"length"` // Number of key-value pairs stored in origin's shared storage. + RemainingBudget float64 `json:"remainingBudget"` // Current amount of bits of entropy remaining in the navigation budget. + BytesUsed int64 `json:"bytesUsed"` // Total number of bytes stored as key-value pairs in origin's shared storage. } // SharedStorageReportingMetadata pair of reporting metadata details for a diff --git a/webauthn/easyjson.go b/webauthn/easyjson.go index 1b1c2a3..f95f22d 100644 --- a/webauthn/easyjson.go +++ b/webauthn/easyjson.go @@ -327,7 +327,94 @@ func (v *SetResponseOverrideBitsParams) UnmarshalJSON(data []byte) error { func (v *SetResponseOverrideBitsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn2(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn3(in *jlexer.Lexer, out *SetAutomaticPresenceSimulationParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn3(in *jlexer.Lexer, out *SetCredentialPropertiesParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "authenticatorId": + out.AuthenticatorID = AuthenticatorID(in.String()) + case "credentialId": + out.CredentialID = string(in.String()) + case "backupEligibility": + out.BackupEligibility = bool(in.Bool()) + case "backupState": + out.BackupState = bool(in.Bool()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn3(out *jwriter.Writer, in SetCredentialPropertiesParams) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"authenticatorId\":" + out.RawString(prefix[1:]) + out.String(string(in.AuthenticatorID)) + } + { + const prefix string = ",\"credentialId\":" + out.RawString(prefix) + out.String(string(in.CredentialID)) + } + if in.BackupEligibility { + const prefix string = ",\"backupEligibility\":" + out.RawString(prefix) + out.Bool(bool(in.BackupEligibility)) + } + if in.BackupState { + const prefix string = ",\"backupState\":" + out.RawString(prefix) + out.Bool(bool(in.BackupState)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v SetCredentialPropertiesParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn3(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetCredentialPropertiesParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn3(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetCredentialPropertiesParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn3(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetCredentialPropertiesParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn3(l, v) +} +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn4(in *jlexer.Lexer, out *SetAutomaticPresenceSimulationParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -360,7 +447,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn3(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn3(out *jwriter.Writer, in SetAutomaticPresenceSimulationParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn4(out *jwriter.Writer, in SetAutomaticPresenceSimulationParams) { out.RawByte('{') first := true _ = first @@ -380,27 +467,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn3(out *jwriter.Writer // MarshalJSON supports json.Marshaler interface func (v SetAutomaticPresenceSimulationParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn3(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn4(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v SetAutomaticPresenceSimulationParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn3(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn4(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *SetAutomaticPresenceSimulationParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn3(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn4(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *SetAutomaticPresenceSimulationParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn3(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn4(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn4(in *jlexer.Lexer, out *RemoveVirtualAuthenticatorParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn5(in *jlexer.Lexer, out *RemoveVirtualAuthenticatorParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -431,7 +518,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn4(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn4(out *jwriter.Writer, in RemoveVirtualAuthenticatorParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn5(out *jwriter.Writer, in RemoveVirtualAuthenticatorParams) { out.RawByte('{') first := true _ = first @@ -446,27 +533,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn4(out *jwriter.Writer // MarshalJSON supports json.Marshaler interface func (v RemoveVirtualAuthenticatorParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn4(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn5(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v RemoveVirtualAuthenticatorParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn4(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn5(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *RemoveVirtualAuthenticatorParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn4(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn5(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *RemoveVirtualAuthenticatorParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn4(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn5(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn5(in *jlexer.Lexer, out *RemoveCredentialParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn6(in *jlexer.Lexer, out *RemoveCredentialParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -499,7 +586,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn5(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn5(out *jwriter.Writer, in RemoveCredentialParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn6(out *jwriter.Writer, in RemoveCredentialParams) { out.RawByte('{') first := true _ = first @@ -519,27 +606,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn5(out *jwriter.Writer // MarshalJSON supports json.Marshaler interface func (v RemoveCredentialParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn5(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn6(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v RemoveCredentialParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn5(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn6(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *RemoveCredentialParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn5(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn6(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *RemoveCredentialParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn5(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn6(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn6(in *jlexer.Lexer, out *GetCredentialsReturns) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn7(in *jlexer.Lexer, out *GetCredentialsReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -599,7 +686,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn6(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn6(out *jwriter.Writer, in GetCredentialsReturns) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn7(out *jwriter.Writer, in GetCredentialsReturns) { out.RawByte('{') first := true _ = first @@ -628,27 +715,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn6(out *jwriter.Writer // MarshalJSON supports json.Marshaler interface func (v GetCredentialsReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn6(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn7(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetCredentialsReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn6(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn7(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetCredentialsReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn6(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn7(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetCredentialsReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn6(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn7(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn7(in *jlexer.Lexer, out *GetCredentialsParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn8(in *jlexer.Lexer, out *GetCredentialsParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -679,7 +766,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn7(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn7(out *jwriter.Writer, in GetCredentialsParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn8(out *jwriter.Writer, in GetCredentialsParams) { out.RawByte('{') first := true _ = first @@ -694,27 +781,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn7(out *jwriter.Writer // MarshalJSON supports json.Marshaler interface func (v GetCredentialsParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn7(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn8(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetCredentialsParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn7(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn8(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetCredentialsParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn7(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn8(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetCredentialsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn7(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn8(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn8(in *jlexer.Lexer, out *GetCredentialReturns) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn9(in *jlexer.Lexer, out *GetCredentialReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -753,7 +840,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn8(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn8(out *jwriter.Writer, in GetCredentialReturns) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn9(out *jwriter.Writer, in GetCredentialReturns) { out.RawByte('{') first := true _ = first @@ -769,27 +856,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn8(out *jwriter.Writer // MarshalJSON supports json.Marshaler interface func (v GetCredentialReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn8(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn9(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetCredentialReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn8(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn9(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetCredentialReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn8(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn9(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetCredentialReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn8(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn9(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn9(in *jlexer.Lexer, out *GetCredentialParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn10(in *jlexer.Lexer, out *GetCredentialParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -822,7 +909,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn9(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn9(out *jwriter.Writer, in GetCredentialParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn10(out *jwriter.Writer, in GetCredentialParams) { out.RawByte('{') first := true _ = first @@ -842,27 +929,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn9(out *jwriter.Writer // MarshalJSON supports json.Marshaler interface func (v GetCredentialParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn9(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn10(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetCredentialParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn9(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn10(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetCredentialParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn9(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn10(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetCredentialParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn9(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn10(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn10(in *jlexer.Lexer, out *EventCredentialAsserted) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn11(in *jlexer.Lexer, out *EventCredentialAsserted) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -903,7 +990,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn10(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn10(out *jwriter.Writer, in EventCredentialAsserted) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn11(out *jwriter.Writer, in EventCredentialAsserted) { out.RawByte('{') first := true _ = first @@ -927,27 +1014,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn10(out *jwriter.Write // MarshalJSON supports json.Marshaler interface func (v EventCredentialAsserted) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn10(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn11(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventCredentialAsserted) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn10(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn11(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventCredentialAsserted) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn10(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn11(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventCredentialAsserted) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn10(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn11(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn11(in *jlexer.Lexer, out *EventCredentialAdded) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn12(in *jlexer.Lexer, out *EventCredentialAdded) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -988,7 +1075,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn11(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn11(out *jwriter.Writer, in EventCredentialAdded) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn12(out *jwriter.Writer, in EventCredentialAdded) { out.RawByte('{') first := true _ = first @@ -1012,27 +1099,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn11(out *jwriter.Write // MarshalJSON supports json.Marshaler interface func (v EventCredentialAdded) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn11(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn12(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventCredentialAdded) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn11(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn12(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventCredentialAdded) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn11(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn12(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventCredentialAdded) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn11(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn12(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn12(in *jlexer.Lexer, out *EnableParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn13(in *jlexer.Lexer, out *EnableParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1063,7 +1150,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn12(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn12(out *jwriter.Writer, in EnableParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn13(out *jwriter.Writer, in EnableParams) { out.RawByte('{') first := true _ = first @@ -1079,27 +1166,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn12(out *jwriter.Write // MarshalJSON supports json.Marshaler interface func (v EnableParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn12(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn13(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn12(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn13(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EnableParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn12(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn13(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn12(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn13(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn13(in *jlexer.Lexer, out *DisableParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn14(in *jlexer.Lexer, out *DisableParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1128,7 +1215,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn13(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn13(out *jwriter.Writer, in DisableParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn14(out *jwriter.Writer, in DisableParams) { out.RawByte('{') first := true _ = first @@ -1138,27 +1225,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn13(out *jwriter.Write // MarshalJSON supports json.Marshaler interface func (v DisableParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn13(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn14(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn13(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn14(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *DisableParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn13(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn14(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn13(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn14(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn14(in *jlexer.Lexer, out *Credential) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn15(in *jlexer.Lexer, out *Credential) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1191,6 +1278,10 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn14(in *jlexer.Lexer, out.SignCount = int64(in.Int64()) case "largeBlob": out.LargeBlob = string(in.String()) + case "backupEligibility": + out.BackupEligibility = bool(in.Bool()) + case "backupState": + out.BackupState = bool(in.Bool()) default: in.SkipRecursive() } @@ -1201,7 +1292,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn14(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn14(out *jwriter.Writer, in Credential) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn15(out *jwriter.Writer, in Credential) { out.RawByte('{') first := true _ = first @@ -1240,33 +1331,43 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn14(out *jwriter.Write out.RawString(prefix) out.String(string(in.LargeBlob)) } + if in.BackupEligibility { + const prefix string = ",\"backupEligibility\":" + out.RawString(prefix) + out.Bool(bool(in.BackupEligibility)) + } + if in.BackupState { + const prefix string = ",\"backupState\":" + out.RawString(prefix) + out.Bool(bool(in.BackupState)) + } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface func (v Credential) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn14(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn15(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v Credential) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn14(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn15(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *Credential) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn14(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn15(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *Credential) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn14(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn15(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn15(in *jlexer.Lexer, out *ClearCredentialsParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn16(in *jlexer.Lexer, out *ClearCredentialsParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1297,7 +1398,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn15(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn15(out *jwriter.Writer, in ClearCredentialsParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn16(out *jwriter.Writer, in ClearCredentialsParams) { out.RawByte('{') first := true _ = first @@ -1312,27 +1413,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn15(out *jwriter.Write // MarshalJSON supports json.Marshaler interface func (v ClearCredentialsParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn15(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn16(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ClearCredentialsParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn15(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn16(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ClearCredentialsParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn15(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn16(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ClearCredentialsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn15(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn16(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn16(in *jlexer.Lexer, out *AddVirtualAuthenticatorReturns) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn17(in *jlexer.Lexer, out *AddVirtualAuthenticatorReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1363,7 +1464,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn16(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn16(out *jwriter.Writer, in AddVirtualAuthenticatorReturns) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn17(out *jwriter.Writer, in AddVirtualAuthenticatorReturns) { out.RawByte('{') first := true _ = first @@ -1379,27 +1480,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn16(out *jwriter.Write // MarshalJSON supports json.Marshaler interface func (v AddVirtualAuthenticatorReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn16(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn17(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v AddVirtualAuthenticatorReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn16(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn17(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *AddVirtualAuthenticatorReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn16(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn17(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *AddVirtualAuthenticatorReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn16(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn17(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn17(in *jlexer.Lexer, out *AddVirtualAuthenticatorParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn18(in *jlexer.Lexer, out *AddVirtualAuthenticatorParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1438,7 +1539,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn17(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn17(out *jwriter.Writer, in AddVirtualAuthenticatorParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn18(out *jwriter.Writer, in AddVirtualAuthenticatorParams) { out.RawByte('{') first := true _ = first @@ -1457,27 +1558,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn17(out *jwriter.Write // MarshalJSON supports json.Marshaler interface func (v AddVirtualAuthenticatorParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn17(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn18(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v AddVirtualAuthenticatorParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn17(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn18(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *AddVirtualAuthenticatorParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn17(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn18(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *AddVirtualAuthenticatorParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn17(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn18(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn18(in *jlexer.Lexer, out *AddCredentialParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn19(in *jlexer.Lexer, out *AddCredentialParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1518,7 +1619,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn18(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn18(out *jwriter.Writer, in AddCredentialParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn19(out *jwriter.Writer, in AddCredentialParams) { out.RawByte('{') first := true _ = first @@ -1542,23 +1643,23 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn18(out *jwriter.Write // MarshalJSON supports json.Marshaler interface func (v AddCredentialParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn18(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn19(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v AddCredentialParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn18(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebauthn19(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *AddCredentialParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn18(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn19(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *AddCredentialParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn18(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebauthn19(l, v) } diff --git a/webauthn/types.go b/webauthn/types.go index 1c15287..349c7bf 100644 --- a/webauthn/types.go +++ b/webauthn/types.go @@ -189,9 +189,11 @@ type VirtualAuthenticatorOptions struct { type Credential struct { CredentialID string `json:"credentialId"` IsResidentCredential bool `json:"isResidentCredential"` - RpID string `json:"rpId,omitempty"` // Relying Party ID the credential is scoped to. Must be set when adding a credential. - PrivateKey string `json:"privateKey"` // The ECDSA P-256 private key in PKCS#8 format. - UserHandle string `json:"userHandle,omitempty"` // An opaque byte sequence with a maximum size of 64 bytes mapping the credential to a specific user. - SignCount int64 `json:"signCount"` // Signature counter. This is incremented by one for each successful assertion. See https://w3c.github.io/webauthn/#signature-counter - LargeBlob string `json:"largeBlob,omitempty"` // The large blob associated with the credential. See https://w3c.github.io/webauthn/#sctn-large-blob-extension + RpID string `json:"rpId,omitempty"` // Relying Party ID the credential is scoped to. Must be set when adding a credential. + PrivateKey string `json:"privateKey"` // The ECDSA P-256 private key in PKCS#8 format. + UserHandle string `json:"userHandle,omitempty"` // An opaque byte sequence with a maximum size of 64 bytes mapping the credential to a specific user. + SignCount int64 `json:"signCount"` // Signature counter. This is incremented by one for each successful assertion. See https://w3c.github.io/webauthn/#signature-counter + LargeBlob string `json:"largeBlob,omitempty"` // The large blob associated with the credential. See https://w3c.github.io/webauthn/#sctn-large-blob-extension + BackupEligibility bool `json:"backupEligibility,omitempty"` // Assertions returned by this credential will have the backup eligibility (BE) flag set to this value. Defaults to the authenticator's defaultBackupEligibility value. + BackupState bool `json:"backupState,omitempty"` // Assertions returned by this credential will have the backup state (BS) flag set to this value. Defaults to the authenticator's defaultBackupState value. } diff --git a/webauthn/webauthn.go b/webauthn/webauthn.go index 1f3c23c..3b7f76f 100644 --- a/webauthn/webauthn.go +++ b/webauthn/webauthn.go @@ -390,6 +390,48 @@ func (p *SetAutomaticPresenceSimulationParams) Do(ctx context.Context) (err erro return cdp.Execute(ctx, CommandSetAutomaticPresenceSimulation, p, nil) } +// SetCredentialPropertiesParams allows setting credential properties. +// https://w3c.github.io/webauthn/#sctn-automation-set-credential-properties. +type SetCredentialPropertiesParams struct { + AuthenticatorID AuthenticatorID `json:"authenticatorId"` + CredentialID string `json:"credentialId"` + BackupEligibility bool `json:"backupEligibility,omitempty"` + BackupState bool `json:"backupState,omitempty"` +} + +// SetCredentialProperties allows setting credential properties. +// https://w3c.github.io/webauthn/#sctn-automation-set-credential-properties. +// +// See: https://chromedevtools.github.io/devtools-protocol/tot/WebAuthn#method-setCredentialProperties +// +// parameters: +// +// authenticatorID +// credentialID +func SetCredentialProperties(authenticatorID AuthenticatorID, credentialID string) *SetCredentialPropertiesParams { + return &SetCredentialPropertiesParams{ + AuthenticatorID: authenticatorID, + CredentialID: credentialID, + } +} + +// WithBackupEligibility [no description]. +func (p SetCredentialPropertiesParams) WithBackupEligibility(backupEligibility bool) *SetCredentialPropertiesParams { + p.BackupEligibility = backupEligibility + return &p +} + +// WithBackupState [no description]. +func (p SetCredentialPropertiesParams) WithBackupState(backupState bool) *SetCredentialPropertiesParams { + p.BackupState = backupState + return &p +} + +// Do executes WebAuthn.setCredentialProperties against the provided context. +func (p *SetCredentialPropertiesParams) Do(ctx context.Context) (err error) { + return cdp.Execute(ctx, CommandSetCredentialProperties, p, nil) +} + // Command names. const ( CommandEnable = "WebAuthn.enable" @@ -404,4 +446,5 @@ const ( CommandClearCredentials = "WebAuthn.clearCredentials" CommandSetUserVerified = "WebAuthn.setUserVerified" CommandSetAutomaticPresenceSimulation = "WebAuthn.setAutomaticPresenceSimulation" + CommandSetCredentialProperties = "WebAuthn.setCredentialProperties" )