From f933b107c653594d09bb9fb4d16adf6b4d696c65 Mon Sep 17 00:00:00 2001 From: Kenneth Shaw Date: Thu, 27 Jun 2024 06:24:47 +0700 Subject: [PATCH] Updating to 128.0.6560.1_12.8.143 definitions --- accessibility/types.go | 3 + audits/types.go | 28 ++- browser/easyjson.go | 7 + browser/types.go | 1 + cdproto.go | 12 + network/easyjson.go | 502 +++++++++++++++++++++++++++-------------- network/events.go | 7 +- network/network.go | 24 +- network/types.go | 98 +++++--- page/types.go | 18 ++ pwa/easyjson.go | 254 ++++++++++++++++----- pwa/pwa.go | 147 +++++++++--- pwa/types.go | 53 +++++ storage/types.go | 29 +-- 14 files changed, 872 insertions(+), 311 deletions(-) diff --git a/accessibility/types.go b/accessibility/types.go index 0a88caf3..e1c439ea 100644 --- a/accessibility/types.go +++ b/accessibility/types.go @@ -336,6 +336,7 @@ const ( PropertyNameFlowto PropertyName = "flowto" PropertyNameLabelledby PropertyName = "labelledby" PropertyNameOwns PropertyName = "owns" + PropertyNameURL PropertyName = "url" ) // MarshalEasyJSON satisfies easyjson.Marshaler. @@ -430,6 +431,8 @@ func (t *PropertyName) UnmarshalEasyJSON(in *jlexer.Lexer) { *t = PropertyNameLabelledby case PropertyNameOwns: *t = PropertyNameOwns + case PropertyNameURL: + *t = PropertyNameURL default: in.AddError(fmt.Errorf("unknown PropertyName value: %v", v)) diff --git a/audits/types.go b/audits/types.go index 94b93c53..96001900 100644 --- a/audits/types.go +++ b/audits/types.go @@ -440,11 +440,13 @@ func (t BlockedByResponseReason) String() string { // BlockedByResponseReason values. const ( - BlockedByResponseReasonCoepFrameResourceNeedsCoepHeader BlockedByResponseReason = "CoepFrameResourceNeedsCoepHeader" - BlockedByResponseReasonCoopSandboxedIFrameCannotNavigateToCoopPage BlockedByResponseReason = "CoopSandboxedIFrameCannotNavigateToCoopPage" - BlockedByResponseReasonCorpNotSameOrigin BlockedByResponseReason = "CorpNotSameOrigin" - BlockedByResponseReasonCorpNotSameOriginAfterDefaultedToSameOriginByCoep BlockedByResponseReason = "CorpNotSameOriginAfterDefaultedToSameOriginByCoep" - BlockedByResponseReasonCorpNotSameSite BlockedByResponseReason = "CorpNotSameSite" + BlockedByResponseReasonCoepFrameResourceNeedsCoepHeader BlockedByResponseReason = "CoepFrameResourceNeedsCoepHeader" + BlockedByResponseReasonCoopSandboxedIFrameCannotNavigateToCoopPage BlockedByResponseReason = "CoopSandboxedIFrameCannotNavigateToCoopPage" + BlockedByResponseReasonCorpNotSameOrigin BlockedByResponseReason = "CorpNotSameOrigin" + BlockedByResponseReasonCorpNotSameOriginAfterDefaultedToSameOriginByCoep BlockedByResponseReason = "CorpNotSameOriginAfterDefaultedToSameOriginByCoep" + BlockedByResponseReasonCorpNotSameOriginAfterDefaultedToSameOriginByDip BlockedByResponseReason = "CorpNotSameOriginAfterDefaultedToSameOriginByDip" + BlockedByResponseReasonCorpNotSameOriginAfterDefaultedToSameOriginByCoepAndDip BlockedByResponseReason = "CorpNotSameOriginAfterDefaultedToSameOriginByCoepAndDip" + BlockedByResponseReasonCorpNotSameSite BlockedByResponseReason = "CorpNotSameSite" ) // MarshalEasyJSON satisfies easyjson.Marshaler. @@ -469,6 +471,10 @@ func (t *BlockedByResponseReason) UnmarshalEasyJSON(in *jlexer.Lexer) { *t = BlockedByResponseReasonCorpNotSameOrigin case BlockedByResponseReasonCorpNotSameOriginAfterDefaultedToSameOriginByCoep: *t = BlockedByResponseReasonCorpNotSameOriginAfterDefaultedToSameOriginByCoep + case BlockedByResponseReasonCorpNotSameOriginAfterDefaultedToSameOriginByDip: + *t = BlockedByResponseReasonCorpNotSameOriginAfterDefaultedToSameOriginByDip + case BlockedByResponseReasonCorpNotSameOriginAfterDefaultedToSameOriginByCoepAndDip: + *t = BlockedByResponseReasonCorpNotSameOriginAfterDefaultedToSameOriginByCoepAndDip case BlockedByResponseReasonCorpNotSameSite: *t = BlockedByResponseReasonCorpNotSameSite @@ -1207,7 +1213,9 @@ const ( FederatedAuthRequestIssueReasonClientMetadataNoResponse FederatedAuthRequestIssueReason = "ClientMetadataNoResponse" FederatedAuthRequestIssueReasonClientMetadataInvalidResponse FederatedAuthRequestIssueReason = "ClientMetadataInvalidResponse" FederatedAuthRequestIssueReasonClientMetadataInvalidContentType FederatedAuthRequestIssueReason = "ClientMetadataInvalidContentType" + FederatedAuthRequestIssueReasonIdpNotPotentiallyTrustworthy FederatedAuthRequestIssueReason = "IdpNotPotentiallyTrustworthy" FederatedAuthRequestIssueReasonDisabledInSettings FederatedAuthRequestIssueReason = "DisabledInSettings" + FederatedAuthRequestIssueReasonDisabledInFlags FederatedAuthRequestIssueReason = "DisabledInFlags" FederatedAuthRequestIssueReasonErrorFetchingSignin FederatedAuthRequestIssueReason = "ErrorFetchingSignin" FederatedAuthRequestIssueReasonInvalidSigninResponse FederatedAuthRequestIssueReason = "InvalidSigninResponse" FederatedAuthRequestIssueReasonAccountsHTTPNotFound FederatedAuthRequestIssueReason = "AccountsHttpNotFound" @@ -1230,7 +1238,9 @@ const ( FederatedAuthRequestIssueReasonNotSignedInWithIdp FederatedAuthRequestIssueReason = "NotSignedInWithIdp" FederatedAuthRequestIssueReasonMissingTransientUserActivation FederatedAuthRequestIssueReason = "MissingTransientUserActivation" FederatedAuthRequestIssueReasonReplacedByButtonMode FederatedAuthRequestIssueReason = "ReplacedByButtonMode" + FederatedAuthRequestIssueReasonInvalidFieldsSpecified FederatedAuthRequestIssueReason = "InvalidFieldsSpecified" FederatedAuthRequestIssueReasonRelyingPartyOriginIsOpaque FederatedAuthRequestIssueReason = "RelyingPartyOriginIsOpaque" + FederatedAuthRequestIssueReasonTypeNotMatching FederatedAuthRequestIssueReason = "TypeNotMatching" ) // MarshalEasyJSON satisfies easyjson.Marshaler. @@ -1281,8 +1291,12 @@ func (t *FederatedAuthRequestIssueReason) UnmarshalEasyJSON(in *jlexer.Lexer) { *t = FederatedAuthRequestIssueReasonClientMetadataInvalidResponse case FederatedAuthRequestIssueReasonClientMetadataInvalidContentType: *t = FederatedAuthRequestIssueReasonClientMetadataInvalidContentType + case FederatedAuthRequestIssueReasonIdpNotPotentiallyTrustworthy: + *t = FederatedAuthRequestIssueReasonIdpNotPotentiallyTrustworthy case FederatedAuthRequestIssueReasonDisabledInSettings: *t = FederatedAuthRequestIssueReasonDisabledInSettings + case FederatedAuthRequestIssueReasonDisabledInFlags: + *t = FederatedAuthRequestIssueReasonDisabledInFlags case FederatedAuthRequestIssueReasonErrorFetchingSignin: *t = FederatedAuthRequestIssueReasonErrorFetchingSignin case FederatedAuthRequestIssueReasonInvalidSigninResponse: @@ -1327,8 +1341,12 @@ func (t *FederatedAuthRequestIssueReason) UnmarshalEasyJSON(in *jlexer.Lexer) { *t = FederatedAuthRequestIssueReasonMissingTransientUserActivation case FederatedAuthRequestIssueReasonReplacedByButtonMode: *t = FederatedAuthRequestIssueReasonReplacedByButtonMode + case FederatedAuthRequestIssueReasonInvalidFieldsSpecified: + *t = FederatedAuthRequestIssueReasonInvalidFieldsSpecified case FederatedAuthRequestIssueReasonRelyingPartyOriginIsOpaque: *t = FederatedAuthRequestIssueReasonRelyingPartyOriginIsOpaque + case FederatedAuthRequestIssueReasonTypeNotMatching: + *t = FederatedAuthRequestIssueReasonTypeNotMatching default: in.AddError(fmt.Errorf("unknown FederatedAuthRequestIssueReason value: %v", v)) diff --git a/browser/easyjson.go b/browser/easyjson.go index 82374ec9..8e841b43 100644 --- a/browser/easyjson.go +++ b/browser/easyjson.go @@ -463,6 +463,8 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoBrowser5(in *jlexer.Lexer, ou out.UserVisibleOnly = bool(in.Bool()) case "allowWithoutSanitization": out.AllowWithoutSanitization = bool(in.Bool()) + case "allowWithoutGesture": + out.AllowWithoutGesture = bool(in.Bool()) case "panTiltZoom": out.PanTiltZoom = bool(in.Bool()) default: @@ -499,6 +501,11 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoBrowser5(out *jwriter.Writer, out.RawString(prefix) out.Bool(bool(in.AllowWithoutSanitization)) } + if in.AllowWithoutGesture { + const prefix string = ",\"allowWithoutGesture\":" + out.RawString(prefix) + out.Bool(bool(in.AllowWithoutGesture)) + } if in.PanTiltZoom { const prefix string = ",\"panTiltZoom\":" out.RawString(prefix) diff --git a/browser/types.go b/browser/types.go index 367af58a..02e08285 100644 --- a/browser/types.go +++ b/browser/types.go @@ -265,6 +265,7 @@ type PermissionDescriptor struct { Sysex bool `json:"sysex,omitempty"` // For "midi" permission, may also specify sysex control. UserVisibleOnly bool `json:"userVisibleOnly,omitempty"` // For "push" permission, may specify userVisibleOnly. Note that userVisibleOnly = true is the only currently supported type. AllowWithoutSanitization bool `json:"allowWithoutSanitization,omitempty"` // For "clipboard" permission, may specify allowWithoutSanitization. + AllowWithoutGesture bool `json:"allowWithoutGesture,omitempty"` // For "fullscreen" permission, must specify allowWithoutGesture:true. PanTiltZoom bool `json:"panTiltZoom,omitempty"` // For "camera" permission, may specify panTiltZoom. } diff --git a/cdproto.go b/cdproto.go index 3c6b90ac..606bd71e 100644 --- a/cdproto.go +++ b/cdproto.go @@ -511,6 +511,7 @@ const ( EventNetworkResponseReceivedExtraInfo = "Network.responseReceivedExtraInfo" EventNetworkResponseReceivedEarlyHints = "Network.responseReceivedEarlyHints" EventNetworkTrustTokenOperationDone = "Network.trustTokenOperationDone" + EventNetworkPolicyUpdated = "Network.policyUpdated" EventNetworkSubresourceWebBundleMetadataReceived = "Network.subresourceWebBundleMetadataReceived" EventNetworkSubresourceWebBundleMetadataError = "Network.subresourceWebBundleMetadataError" EventNetworkSubresourceWebBundleInnerResponseParsed = "Network.subresourceWebBundleInnerResponseParsed" @@ -554,6 +555,8 @@ const ( CommandPWAUninstall = pwa.CommandUninstall CommandPWALaunch = pwa.CommandLaunch CommandPWALaunchFilesInApp = pwa.CommandLaunchFilesInApp + CommandPWAOpenCurrentPageInApp = pwa.CommandOpenCurrentPageInApp + CommandPWAChangeAppUserSettings = pwa.CommandChangeAppUserSettings CommandPageAddScriptToEvaluateOnNewDocument = page.CommandAddScriptToEvaluateOnNewDocument CommandPageBringToFront = page.CommandBringToFront CommandPageCaptureScreenshot = page.CommandCaptureScreenshot @@ -2134,6 +2137,9 @@ func UnmarshalMessage(msg *Message) (interface{}, error) { case EventNetworkTrustTokenOperationDone: v = new(network.EventTrustTokenOperationDone) + case EventNetworkPolicyUpdated: + v = new(network.EventPolicyUpdated) + case EventNetworkSubresourceWebBundleMetadataReceived: v = new(network.EventSubresourceWebBundleMetadataReceived) @@ -2263,6 +2269,12 @@ func UnmarshalMessage(msg *Message) (interface{}, error) { case CommandPWALaunchFilesInApp: v = new(pwa.LaunchFilesInAppReturns) + case CommandPWAOpenCurrentPageInApp: + return emptyVal, nil + + case CommandPWAChangeAppUserSettings: + return emptyVal, nil + case CommandPageAddScriptToEvaluateOnNewDocument: v = new(page.AddScriptToEvaluateOnNewDocumentReturns) diff --git a/network/easyjson.go b/network/easyjson.go index dab16a25..22019259 100644 --- a/network/easyjson.go +++ b/network/easyjson.go @@ -1729,7 +1729,15 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork15(in *jlexer.Lexer, o case "sourcePort": out.SourcePort = int64(in.Int64()) case "partitionKey": - out.PartitionKey = string(in.String()) + if in.IsNull() { + in.Skip() + out.PartitionKey = nil + } else { + if out.PartitionKey == nil { + out.PartitionKey = new(CookiePartitionKey) + } + (*out.PartitionKey).UnmarshalEasyJSON(in) + } default: in.SkipRecursive() } @@ -1809,10 +1817,10 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork15(out *jwriter.Writer out.RawString(prefix) out.Int64(int64(in.SourcePort)) } - if in.PartitionKey != "" { + if in.PartitionKey != nil { const prefix string = ",\"partitionKey\":" out.RawString(prefix) - out.String(string(in.PartitionKey)) + (*in.PartitionKey).MarshalEasyJSON(out) } out.RawByte('}') } @@ -7273,7 +7281,15 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork68(in *jlexer.Lexer, o case "headersText": out.HeadersText = string(in.String()) case "cookiePartitionKey": - out.CookiePartitionKey = string(in.String()) + if in.IsNull() { + in.Skip() + out.CookiePartitionKey = nil + } else { + if out.CookiePartitionKey == nil { + out.CookiePartitionKey = new(CookiePartitionKey) + } + (*out.CookiePartitionKey).UnmarshalEasyJSON(in) + } case "cookiePartitionKeyOpaque": out.CookiePartitionKeyOpaque = bool(in.Bool()) case "exemptedCookies": @@ -7388,10 +7404,10 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork68(out *jwriter.Writer out.RawString(prefix) out.String(string(in.HeadersText)) } - if in.CookiePartitionKey != "" { + if in.CookiePartitionKey != nil { const prefix string = ",\"cookiePartitionKey\":" out.RawString(prefix) - out.String(string(in.CookiePartitionKey)) + (*in.CookiePartitionKey).MarshalEasyJSON(out) } if in.CookiePartitionKeyOpaque { const prefix string = ",\"cookiePartitionKeyOpaque\":" @@ -8526,7 +8542,66 @@ func (v *EventReportingAPIEndpointsChangedForOrigin) UnmarshalJSON(data []byte) func (v *EventReportingAPIEndpointsChangedForOrigin) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork77(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork78(in *jlexer.Lexer, out *EventLoadingFinished) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork78(in *jlexer.Lexer, out *EventPolicyUpdated) { + 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 { + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork78(out *jwriter.Writer, in EventPolicyUpdated) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventPolicyUpdated) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork78(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventPolicyUpdated) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork78(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventPolicyUpdated) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork78(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventPolicyUpdated) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork78(l, v) +} +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork79(in *jlexer.Lexer, out *EventLoadingFinished) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -8569,7 +8644,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork78(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork78(out *jwriter.Writer, in EventLoadingFinished) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork79(out *jwriter.Writer, in EventLoadingFinished) { out.RawByte('{') first := true _ = first @@ -8598,27 +8673,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork78(out *jwriter.Writer // MarshalJSON supports json.Marshaler interface func (v EventLoadingFinished) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork78(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork79(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventLoadingFinished) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork78(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork79(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventLoadingFinished) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork78(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork79(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventLoadingFinished) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork78(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork79(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork79(in *jlexer.Lexer, out *EventLoadingFailed) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork80(in *jlexer.Lexer, out *EventLoadingFailed) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -8677,7 +8752,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork79(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork79(out *jwriter.Writer, in EventLoadingFailed) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork80(out *jwriter.Writer, in EventLoadingFailed) { out.RawByte('{') first := true _ = first @@ -8726,27 +8801,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork79(out *jwriter.Writer // MarshalJSON supports json.Marshaler interface func (v EventLoadingFailed) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork79(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork80(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventLoadingFailed) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork79(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork80(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventLoadingFailed) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork79(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork80(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventLoadingFailed) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork79(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork80(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork80(in *jlexer.Lexer, out *EventEventSourceMessageReceived) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork81(in *jlexer.Lexer, out *EventEventSourceMessageReceived) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -8793,7 +8868,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork80(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork80(out *jwriter.Writer, in EventEventSourceMessageReceived) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork81(out *jwriter.Writer, in EventEventSourceMessageReceived) { out.RawByte('{') first := true _ = first @@ -8832,27 +8907,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork80(out *jwriter.Writer // MarshalJSON supports json.Marshaler interface func (v EventEventSourceMessageReceived) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork80(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork81(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventEventSourceMessageReceived) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork80(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork81(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventEventSourceMessageReceived) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork80(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork81(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventEventSourceMessageReceived) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork80(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork81(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork81(in *jlexer.Lexer, out *EventDataReceived) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork82(in *jlexer.Lexer, out *EventDataReceived) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -8899,7 +8974,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork81(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork81(out *jwriter.Writer, in EventDataReceived) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork82(out *jwriter.Writer, in EventDataReceived) { out.RawByte('{') first := true _ = first @@ -8938,27 +9013,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork81(out *jwriter.Writer // MarshalJSON supports json.Marshaler interface func (v EventDataReceived) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork81(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork82(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventDataReceived) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork81(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork82(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventDataReceived) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork81(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork82(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventDataReceived) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork81(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork82(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork82(in *jlexer.Lexer, out *EnableReportingAPIParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork83(in *jlexer.Lexer, out *EnableReportingAPIParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -8989,7 +9064,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork82(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork82(out *jwriter.Writer, in EnableReportingAPIParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork83(out *jwriter.Writer, in EnableReportingAPIParams) { out.RawByte('{') first := true _ = first @@ -9004,27 +9079,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork82(out *jwriter.Writer // MarshalJSON supports json.Marshaler interface func (v EnableReportingAPIParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork82(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork83(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EnableReportingAPIParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork82(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork83(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EnableReportingAPIParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork82(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork83(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EnableReportingAPIParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork82(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork83(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork83(in *jlexer.Lexer, out *EnableParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork84(in *jlexer.Lexer, out *EnableParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -9059,7 +9134,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork83(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork83(out *jwriter.Writer, in EnableParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork84(out *jwriter.Writer, in EnableParams) { out.RawByte('{') first := true _ = first @@ -9095,27 +9170,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork83(out *jwriter.Writer // MarshalJSON supports json.Marshaler interface func (v EnableParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork83(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork84(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork83(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork84(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EnableParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork83(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork84(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork83(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork84(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork84(in *jlexer.Lexer, out *EmulateNetworkConditionsParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork85(in *jlexer.Lexer, out *EmulateNetworkConditionsParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -9160,7 +9235,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork84(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork84(out *jwriter.Writer, in EmulateNetworkConditionsParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork85(out *jwriter.Writer, in EmulateNetworkConditionsParams) { out.RawByte('{') first := true _ = first @@ -9210,27 +9285,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork84(out *jwriter.Writer // MarshalJSON supports json.Marshaler interface func (v EmulateNetworkConditionsParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork84(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork85(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EmulateNetworkConditionsParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork84(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork85(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EmulateNetworkConditionsParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork84(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork85(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EmulateNetworkConditionsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork84(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork85(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork85(in *jlexer.Lexer, out *DisableParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork86(in *jlexer.Lexer, out *DisableParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -9259,7 +9334,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork85(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork85(out *jwriter.Writer, in DisableParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork86(out *jwriter.Writer, in DisableParams) { out.RawByte('{') first := true _ = first @@ -9269,27 +9344,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork85(out *jwriter.Writer // MarshalJSON supports json.Marshaler interface func (v DisableParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork85(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork86(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork85(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork86(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *DisableParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork85(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork86(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork85(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork86(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork86(in *jlexer.Lexer, out *DeleteCookiesParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork87(in *jlexer.Lexer, out *DeleteCookiesParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -9317,7 +9392,15 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork86(in *jlexer.Lexer, o case "path": out.Path = string(in.String()) case "partitionKey": - out.PartitionKey = string(in.String()) + if in.IsNull() { + in.Skip() + out.PartitionKey = nil + } else { + if out.PartitionKey == nil { + out.PartitionKey = new(CookiePartitionKey) + } + (*out.PartitionKey).UnmarshalEasyJSON(in) + } default: in.SkipRecursive() } @@ -9328,7 +9411,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork86(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork86(out *jwriter.Writer, in DeleteCookiesParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork87(out *jwriter.Writer, in DeleteCookiesParams) { out.RawByte('{') first := true _ = first @@ -9352,10 +9435,10 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork86(out *jwriter.Writer out.RawString(prefix) out.String(string(in.Path)) } - if in.PartitionKey != "" { + if in.PartitionKey != nil { const prefix string = ",\"partitionKey\":" out.RawString(prefix) - out.String(string(in.PartitionKey)) + (*in.PartitionKey).MarshalEasyJSON(out) } out.RawByte('}') } @@ -9363,27 +9446,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork86(out *jwriter.Writer // MarshalJSON supports json.Marshaler interface func (v DeleteCookiesParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork86(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork87(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v DeleteCookiesParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork86(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork87(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *DeleteCookiesParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork86(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork87(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *DeleteCookiesParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork86(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork87(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork87(in *jlexer.Lexer, out *CrossOriginOpenerPolicyStatus) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork88(in *jlexer.Lexer, out *CrossOriginOpenerPolicyStatus) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -9420,7 +9503,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork87(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork87(out *jwriter.Writer, in CrossOriginOpenerPolicyStatus) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork88(out *jwriter.Writer, in CrossOriginOpenerPolicyStatus) { out.RawByte('{') first := true _ = first @@ -9450,27 +9533,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork87(out *jwriter.Writer // MarshalJSON supports json.Marshaler interface func (v CrossOriginOpenerPolicyStatus) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork87(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork88(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CrossOriginOpenerPolicyStatus) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork87(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork88(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CrossOriginOpenerPolicyStatus) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork87(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork88(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CrossOriginOpenerPolicyStatus) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork87(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork88(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork88(in *jlexer.Lexer, out *CrossOriginEmbedderPolicyStatus) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork89(in *jlexer.Lexer, out *CrossOriginEmbedderPolicyStatus) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -9507,7 +9590,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork88(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork88(out *jwriter.Writer, in CrossOriginEmbedderPolicyStatus) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork89(out *jwriter.Writer, in CrossOriginEmbedderPolicyStatus) { out.RawByte('{') first := true _ = first @@ -9537,27 +9620,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork88(out *jwriter.Writer // MarshalJSON supports json.Marshaler interface func (v CrossOriginEmbedderPolicyStatus) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork88(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork89(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CrossOriginEmbedderPolicyStatus) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork88(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork89(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CrossOriginEmbedderPolicyStatus) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork88(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork89(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CrossOriginEmbedderPolicyStatus) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork88(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork89(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork89(in *jlexer.Lexer, out *CorsErrorStatus) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork90(in *jlexer.Lexer, out *CorsErrorStatus) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -9590,7 +9673,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork89(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork89(out *jwriter.Writer, in CorsErrorStatus) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork90(out *jwriter.Writer, in CorsErrorStatus) { out.RawByte('{') first := true _ = first @@ -9610,27 +9693,100 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork89(out *jwriter.Writer // MarshalJSON supports json.Marshaler interface func (v CorsErrorStatus) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork89(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork90(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CorsErrorStatus) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork89(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork90(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CorsErrorStatus) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork89(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork90(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CorsErrorStatus) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork89(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork90(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork90(in *jlexer.Lexer, out *CookieParam) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork91(in *jlexer.Lexer, out *CookiePartitionKey) { + 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 "topLevelSite": + out.TopLevelSite = string(in.String()) + case "hasCrossSiteAncestor": + out.HasCrossSiteAncestor = bool(in.Bool()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork91(out *jwriter.Writer, in CookiePartitionKey) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"topLevelSite\":" + out.RawString(prefix[1:]) + out.String(string(in.TopLevelSite)) + } + { + const prefix string = ",\"hasCrossSiteAncestor\":" + out.RawString(prefix) + out.Bool(bool(in.HasCrossSiteAncestor)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v CookiePartitionKey) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork91(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v CookiePartitionKey) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork91(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *CookiePartitionKey) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork91(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *CookiePartitionKey) OrigUnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork91(l, v) +} +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork92(in *jlexer.Lexer, out *CookieParam) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -9684,7 +9840,15 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork90(in *jlexer.Lexer, o case "sourcePort": out.SourcePort = int64(in.Int64()) case "partitionKey": - out.PartitionKey = string(in.String()) + if in.IsNull() { + in.Skip() + out.PartitionKey = nil + } else { + if out.PartitionKey == nil { + out.PartitionKey = new(CookiePartitionKey) + } + (*out.PartitionKey).UnmarshalEasyJSON(in) + } default: in.SkipRecursive() } @@ -9695,7 +9859,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork90(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork90(out *jwriter.Writer, in CookieParam) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork92(out *jwriter.Writer, in CookieParam) { out.RawByte('{') first := true _ = first @@ -9764,10 +9928,10 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork90(out *jwriter.Writer out.RawString(prefix) out.Int64(int64(in.SourcePort)) } - if in.PartitionKey != "" { + if in.PartitionKey != nil { const prefix string = ",\"partitionKey\":" out.RawString(prefix) - out.String(string(in.PartitionKey)) + (*in.PartitionKey).MarshalEasyJSON(out) } out.RawByte('}') } @@ -9775,27 +9939,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork90(out *jwriter.Writer // MarshalJSON supports json.Marshaler interface func (v CookieParam) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork90(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork92(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CookieParam) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork90(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork92(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CookieParam) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork90(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork92(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CookieParam) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork90(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork92(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork91(in *jlexer.Lexer, out *Cookie) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork93(in *jlexer.Lexer, out *Cookie) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -9841,7 +10005,15 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork91(in *jlexer.Lexer, o case "sourcePort": out.SourcePort = int64(in.Int64()) case "partitionKey": - out.PartitionKey = string(in.String()) + if in.IsNull() { + in.Skip() + out.PartitionKey = nil + } else { + if out.PartitionKey == nil { + out.PartitionKey = new(CookiePartitionKey) + } + (*out.PartitionKey).UnmarshalEasyJSON(in) + } case "partitionKeyOpaque": out.PartitionKeyOpaque = bool(in.Bool()) default: @@ -9854,7 +10026,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork91(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork91(out *jwriter.Writer, in Cookie) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork93(out *jwriter.Writer, in Cookie) { out.RawByte('{') first := true _ = first @@ -9923,10 +10095,10 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork91(out *jwriter.Writer out.RawString(prefix) out.Int64(int64(in.SourcePort)) } - if in.PartitionKey != "" { + if in.PartitionKey != nil { const prefix string = ",\"partitionKey\":" out.RawString(prefix) - out.String(string(in.PartitionKey)) + (*in.PartitionKey).MarshalEasyJSON(out) } if in.PartitionKeyOpaque { const prefix string = ",\"partitionKeyOpaque\":" @@ -9939,27 +10111,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork91(out *jwriter.Writer // MarshalJSON supports json.Marshaler interface func (v Cookie) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork91(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork93(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v Cookie) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork91(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork93(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *Cookie) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork91(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork93(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *Cookie) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork91(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork93(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork92(in *jlexer.Lexer, out *ContentSecurityPolicyStatus) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork94(in *jlexer.Lexer, out *ContentSecurityPolicyStatus) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -9994,7 +10166,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork92(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork92(out *jwriter.Writer, in ContentSecurityPolicyStatus) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork94(out *jwriter.Writer, in ContentSecurityPolicyStatus) { out.RawByte('{') first := true _ = first @@ -10019,27 +10191,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork92(out *jwriter.Writer // MarshalJSON supports json.Marshaler interface func (v ContentSecurityPolicyStatus) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork92(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork94(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ContentSecurityPolicyStatus) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork92(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork94(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ContentSecurityPolicyStatus) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork92(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork94(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ContentSecurityPolicyStatus) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork92(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork94(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork93(in *jlexer.Lexer, out *ConnectTiming) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork95(in *jlexer.Lexer, out *ConnectTiming) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -10070,7 +10242,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork93(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork93(out *jwriter.Writer, in ConnectTiming) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork95(out *jwriter.Writer, in ConnectTiming) { out.RawByte('{') first := true _ = first @@ -10085,27 +10257,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork93(out *jwriter.Writer // MarshalJSON supports json.Marshaler interface func (v ConnectTiming) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork93(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork95(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ConnectTiming) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork93(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork95(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ConnectTiming) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork93(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork95(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ConnectTiming) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork93(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork95(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork94(in *jlexer.Lexer, out *ClientSecurityState) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork96(in *jlexer.Lexer, out *ClientSecurityState) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -10140,7 +10312,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork94(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork94(out *jwriter.Writer, in ClientSecurityState) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork96(out *jwriter.Writer, in ClientSecurityState) { out.RawByte('{') first := true _ = first @@ -10165,27 +10337,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork94(out *jwriter.Writer // MarshalJSON supports json.Marshaler interface func (v ClientSecurityState) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork94(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork96(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ClientSecurityState) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork94(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork96(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ClientSecurityState) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork94(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork96(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ClientSecurityState) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork94(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork96(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork95(in *jlexer.Lexer, out *ClearBrowserCookiesParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork97(in *jlexer.Lexer, out *ClearBrowserCookiesParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -10214,7 +10386,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork95(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork95(out *jwriter.Writer, in ClearBrowserCookiesParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork97(out *jwriter.Writer, in ClearBrowserCookiesParams) { out.RawByte('{') first := true _ = first @@ -10224,27 +10396,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork95(out *jwriter.Writer // MarshalJSON supports json.Marshaler interface func (v ClearBrowserCookiesParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork95(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork97(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ClearBrowserCookiesParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork95(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork97(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ClearBrowserCookiesParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork95(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork97(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ClearBrowserCookiesParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork95(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork97(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork96(in *jlexer.Lexer, out *ClearBrowserCacheParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork98(in *jlexer.Lexer, out *ClearBrowserCacheParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -10273,7 +10445,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork96(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork96(out *jwriter.Writer, in ClearBrowserCacheParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork98(out *jwriter.Writer, in ClearBrowserCacheParams) { out.RawByte('{') first := true _ = first @@ -10283,27 +10455,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork96(out *jwriter.Writer // MarshalJSON supports json.Marshaler interface func (v ClearBrowserCacheParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork96(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork98(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ClearBrowserCacheParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork96(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork98(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ClearBrowserCacheParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork96(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork98(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ClearBrowserCacheParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork96(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork98(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork97(in *jlexer.Lexer, out *ClearAcceptedEncodingsOverrideParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork99(in *jlexer.Lexer, out *ClearAcceptedEncodingsOverrideParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -10332,7 +10504,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork97(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork97(out *jwriter.Writer, in ClearAcceptedEncodingsOverrideParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork99(out *jwriter.Writer, in ClearAcceptedEncodingsOverrideParams) { out.RawByte('{') first := true _ = first @@ -10342,27 +10514,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork97(out *jwriter.Writer // MarshalJSON supports json.Marshaler interface func (v ClearAcceptedEncodingsOverrideParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork97(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork99(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ClearAcceptedEncodingsOverrideParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork97(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork99(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ClearAcceptedEncodingsOverrideParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork97(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork99(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ClearAcceptedEncodingsOverrideParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork97(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork99(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork98(in *jlexer.Lexer, out *CachedResource) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork100(in *jlexer.Lexer, out *CachedResource) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -10407,7 +10579,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork98(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork98(out *jwriter.Writer, in CachedResource) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork100(out *jwriter.Writer, in CachedResource) { out.RawByte('{') first := true _ = first @@ -10437,27 +10609,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork98(out *jwriter.Writer // MarshalJSON supports json.Marshaler interface func (v CachedResource) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork98(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork100(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CachedResource) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork98(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork100(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CachedResource) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork98(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork100(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CachedResource) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork98(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork100(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork99(in *jlexer.Lexer, out *BlockedSetCookieWithReason) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork101(in *jlexer.Lexer, out *BlockedSetCookieWithReason) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -10521,7 +10693,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork99(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork99(out *jwriter.Writer, in BlockedSetCookieWithReason) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork101(out *jwriter.Writer, in BlockedSetCookieWithReason) { out.RawByte('{') first := true _ = first @@ -10557,27 +10729,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork99(out *jwriter.Writer // MarshalJSON supports json.Marshaler interface func (v BlockedSetCookieWithReason) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork99(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork101(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v BlockedSetCookieWithReason) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork99(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork101(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *BlockedSetCookieWithReason) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork99(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork101(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *BlockedSetCookieWithReason) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork99(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork101(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork100(in *jlexer.Lexer, out *AuthChallengeResponse) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork102(in *jlexer.Lexer, out *AuthChallengeResponse) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -10612,7 +10784,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork100(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork100(out *jwriter.Writer, in AuthChallengeResponse) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork102(out *jwriter.Writer, in AuthChallengeResponse) { out.RawByte('{') first := true _ = first @@ -10637,27 +10809,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork100(out *jwriter.Write // MarshalJSON supports json.Marshaler interface func (v AuthChallengeResponse) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork100(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork102(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v AuthChallengeResponse) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork100(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork102(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *AuthChallengeResponse) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork100(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork102(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *AuthChallengeResponse) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork100(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork102(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork101(in *jlexer.Lexer, out *AuthChallenge) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork103(in *jlexer.Lexer, out *AuthChallenge) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -10694,7 +10866,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork101(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork101(out *jwriter.Writer, in AuthChallenge) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork103(out *jwriter.Writer, in AuthChallenge) { out.RawByte('{') first := true _ = first @@ -10730,27 +10902,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork101(out *jwriter.Write // MarshalJSON supports json.Marshaler interface func (v AuthChallenge) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork101(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork103(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v AuthChallenge) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork101(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork103(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *AuthChallenge) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork101(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork103(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *AuthChallenge) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork101(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork103(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork102(in *jlexer.Lexer, out *AssociatedCookie) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork104(in *jlexer.Lexer, out *AssociatedCookie) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -10814,7 +10986,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork102(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork102(out *jwriter.Writer, in AssociatedCookie) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork104(out *jwriter.Writer, in AssociatedCookie) { out.RawByte('{') first := true _ = first @@ -10854,23 +11026,23 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork102(out *jwriter.Write // MarshalJSON supports json.Marshaler interface func (v AssociatedCookie) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork102(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork104(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v AssociatedCookie) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork102(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork104(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *AssociatedCookie) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork102(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork104(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *AssociatedCookie) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork102(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork104(l, v) } diff --git a/network/events.go b/network/events.go index ead8c538..111d3979 100644 --- a/network/events.go +++ b/network/events.go @@ -230,7 +230,7 @@ type EventResponseReceivedExtraInfo struct { ResourceIPAddressSpace IPAddressSpace `json:"resourceIPAddressSpace"` // The IP address space of the resource. The address space can only be determined once the transport established the connection, so we can't send it in requestWillBeSentExtraInfo. StatusCode int64 `json:"statusCode"` // The status code of the response. This is useful in cases the request failed and no responseReceived event is triggered, which is the case for, e.g., CORS errors. This is also the correct status code for cached requests, where the status in responseReceived is a 200 and this will be 304. HeadersText string `json:"headersText,omitempty"` // Raw response header text as it was received over the wire. The raw text may not always be available, such as in the case of HTTP/2 or QUIC. - CookiePartitionKey string `json:"cookiePartitionKey,omitempty"` // The cookie partition key that will be used to store partitioned cookies set in this response. Only sent when partitioned cookies are enabled. + CookiePartitionKey *CookiePartitionKey `json:"cookiePartitionKey,omitempty"` // The cookie partition key that will be used to store partitioned cookies set in this response. Only sent when partitioned cookies are enabled. CookiePartitionKeyOpaque bool `json:"cookiePartitionKeyOpaque,omitempty"` // True if partitioned cookies are enabled, but the partition key is not serializable to string. ExemptedCookies []*ExemptedSetCookieWithReason `json:"exemptedCookies,omitempty"` // A list of cookies which should have been blocked by 3PCD but are exempted and stored from the response with the corresponding reason. } @@ -261,6 +261,11 @@ type EventTrustTokenOperationDone struct { IssuedTokenCount int64 `json:"issuedTokenCount,omitempty"` // The number of obtained Trust Tokens on a successful "Issuance" operation. } +// EventPolicyUpdated fired once security policy has been updated. +// +// See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-policyUpdated +type EventPolicyUpdated struct{} + // EventSubresourceWebBundleMetadataReceived fired once when parsing the .wbn // file has succeeded. The event contains the information about the web bundle // contents. diff --git a/network/network.go b/network/network.go index 6fb11763..69cfeb1f 100644 --- a/network/network.go +++ b/network/network.go @@ -94,11 +94,11 @@ func (p *ClearBrowserCookiesParams) Do(ctx context.Context) (err error) { // DeleteCookiesParams deletes browser cookies with matching name and url or // domain/path/partitionKey pair. type DeleteCookiesParams struct { - Name string `json:"name"` // Name of the cookies to remove. - URL string `json:"url,omitempty"` // If specified, deletes all the cookies with the given name where domain and path match provided URL. - Domain string `json:"domain,omitempty"` // If specified, deletes only cookies with the exact domain. - Path string `json:"path,omitempty"` // If specified, deletes only cookies with the exact path. - PartitionKey string `json:"partitionKey,omitempty"` // If specified, deletes only cookies with the the given name and partitionKey where domain matches provided URL. + Name string `json:"name"` // Name of the cookies to remove. + URL string `json:"url,omitempty"` // If specified, deletes all the cookies with the given name where domain and path match provided URL. + Domain string `json:"domain,omitempty"` // If specified, deletes only cookies with the exact domain. + Path string `json:"path,omitempty"` // If specified, deletes only cookies with the exact path. + PartitionKey *CookiePartitionKey `json:"partitionKey,omitempty"` // If specified, deletes only cookies with the the given name and partitionKey where all partition key attributes match the cookie partition key attribute. } // DeleteCookies deletes browser cookies with matching name and url or @@ -135,8 +135,9 @@ func (p DeleteCookiesParams) WithPath(path string) *DeleteCookiesParams { } // WithPartitionKey if specified, deletes only cookies with the the given -// name and partitionKey where domain matches provided URL. -func (p DeleteCookiesParams) WithPartitionKey(partitionKey string) *DeleteCookiesParams { +// name and partitionKey where all partition key attributes match the cookie +// partition key attribute. +func (p DeleteCookiesParams) WithPartitionKey(partitionKey *CookiePartitionKey) *DeleteCookiesParams { p.PartitionKey = partitionKey return &p } @@ -719,7 +720,7 @@ type SetCookieParams struct { SameParty bool `json:"sameParty,omitempty"` // True if cookie is SameParty. SourceScheme CookieSourceScheme `json:"sourceScheme,omitempty"` // Cookie source scheme type. SourcePort int64 `json:"sourcePort,omitempty"` // Cookie source port. Valid values are {-1, [1, 65535]}, -1 indicates an unspecified port. An unspecified port value allows protocol clients to emulate legacy cookie scope for the port. This is a temporary ability and it will be removed in the future. - PartitionKey string `json:"partitionKey,omitempty"` // Cookie partition key. The site of the top-level URL the browser was visiting at the start of the request to the endpoint that set the cookie. If not set, the cookie will be set as not partitioned. + PartitionKey *CookiePartitionKey `json:"partitionKey,omitempty"` // Cookie partition key. If not set, the cookie will be set as not partitioned. } // SetCookie sets a cookie with the given cookie data; may overwrite @@ -809,10 +810,9 @@ func (p SetCookieParams) WithSourcePort(sourcePort int64) *SetCookieParams { return &p } -// WithPartitionKey cookie partition key. The site of the top-level URL the -// browser was visiting at the start of the request to the endpoint that set the -// cookie. If not set, the cookie will be set as not partitioned. -func (p SetCookieParams) WithPartitionKey(partitionKey string) *SetCookieParams { +// WithPartitionKey cookie partition key. If not set, the cookie will be set +// as not partitioned. +func (p SetCookieParams) WithPartitionKey(partitionKey *CookiePartitionKey) *SetCookieParams { p.PartitionKey = partitionKey return &p } diff --git a/network/types.go b/network/types.go index b27e3542..02245ec3 100644 --- a/network/types.go +++ b/network/types.go @@ -3,7 +3,10 @@ package network // Code generated by cdproto-gen. DO NOT EDIT. import ( + "bytes" + "encoding/json" "fmt" + "strconv" "github.com/chromedp/cdproto/cdp" "github.com/chromedp/cdproto/io" @@ -632,18 +635,20 @@ func (t BlockedReason) String() string { // BlockedReason values. const ( - BlockedReasonOther BlockedReason = "other" - BlockedReasonCsp BlockedReason = "csp" - BlockedReasonMixedContent BlockedReason = "mixed-content" - BlockedReasonOrigin BlockedReason = "origin" - BlockedReasonInspector BlockedReason = "inspector" - BlockedReasonSubresourceFilter BlockedReason = "subresource-filter" - BlockedReasonContentType BlockedReason = "content-type" - BlockedReasonCoepFrameResourceNeedsCoepHeader BlockedReason = "coep-frame-resource-needs-coep-header" - BlockedReasonCoopSandboxedIframeCannotNavigateToCoopPage BlockedReason = "coop-sandboxed-iframe-cannot-navigate-to-coop-page" - BlockedReasonCorpNotSameOrigin BlockedReason = "corp-not-same-origin" - BlockedReasonCorpNotSameOriginAfterDefaultedToSameOriginByCoep BlockedReason = "corp-not-same-origin-after-defaulted-to-same-origin-by-coep" - BlockedReasonCorpNotSameSite BlockedReason = "corp-not-same-site" + BlockedReasonOther BlockedReason = "other" + BlockedReasonCsp BlockedReason = "csp" + BlockedReasonMixedContent BlockedReason = "mixed-content" + BlockedReasonOrigin BlockedReason = "origin" + BlockedReasonInspector BlockedReason = "inspector" + BlockedReasonSubresourceFilter BlockedReason = "subresource-filter" + BlockedReasonContentType BlockedReason = "content-type" + BlockedReasonCoepFrameResourceNeedsCoepHeader BlockedReason = "coep-frame-resource-needs-coep-header" + BlockedReasonCoopSandboxedIframeCannotNavigateToCoopPage BlockedReason = "coop-sandboxed-iframe-cannot-navigate-to-coop-page" + BlockedReasonCorpNotSameOrigin BlockedReason = "corp-not-same-origin" + BlockedReasonCorpNotSameOriginAfterDefaultedToSameOriginByCoep BlockedReason = "corp-not-same-origin-after-defaulted-to-same-origin-by-coep" + BlockedReasonCorpNotSameOriginAfterDefaultedToSameOriginByDip BlockedReason = "corp-not-same-origin-after-defaulted-to-same-origin-by-dip" + BlockedReasonCorpNotSameOriginAfterDefaultedToSameOriginByCoepAndDip BlockedReason = "corp-not-same-origin-after-defaulted-to-same-origin-by-coep-and-dip" + BlockedReasonCorpNotSameSite BlockedReason = "corp-not-same-site" ) // MarshalEasyJSON satisfies easyjson.Marshaler. @@ -682,6 +687,10 @@ func (t *BlockedReason) UnmarshalEasyJSON(in *jlexer.Lexer) { *t = BlockedReasonCorpNotSameOrigin case BlockedReasonCorpNotSameOriginAfterDefaultedToSameOriginByCoep: *t = BlockedReasonCorpNotSameOriginAfterDefaultedToSameOriginByCoep + case BlockedReasonCorpNotSameOriginAfterDefaultedToSameOriginByDip: + *t = BlockedReasonCorpNotSameOriginAfterDefaultedToSameOriginByDip + case BlockedReasonCorpNotSameOriginAfterDefaultedToSameOriginByCoepAndDip: + *t = BlockedReasonCorpNotSameOriginAfterDefaultedToSameOriginByCoepAndDip case BlockedReasonCorpNotSameSite: *t = BlockedReasonCorpNotSameSite @@ -1160,25 +1169,58 @@ type Initiator struct { RequestID RequestID `json:"requestId,omitempty"` // Set if another request triggered this request (e.g. preflight). } +// CookiePartitionKey cookiePartitionKey object The representation of the +// components of the key that are created by the cookiePartitionKey class +// contained in net/cookies/cookie_partition_key.h. +// +// See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-CookiePartitionKey +type CookiePartitionKey struct { + TopLevelSite string `json:"topLevelSite"` // The site of the top-level URL the browser was visiting at the start of the request to the endpoint that set the cookie. + HasCrossSiteAncestor bool `json:"hasCrossSiteAncestor"` // Indicates if the cookie has any ancestors that are cross-site to the topLevelSite. +} + +// UnmarshalEasyJSON satisfies easyjson.Unmarshaler. +func (t *CookiePartitionKey) UnmarshalEasyJSON(in *jlexer.Lexer) { + buf := in.Raw() + if l := len(buf); l > 2 && buf[0] == '"' && buf[l-1] == '"' { + var err error + if t.TopLevelSite, err = strconv.Unquote(string(buf)); err != nil { + in.AddError(err) + } + return + } + dec := json.NewDecoder(bytes.NewReader(buf)) + dec.DisallowUnknownFields() + var v struct { + TopLevelSite string `json:"topLevelSite"` + HasCrossSiteAncestor bool `json:"hasCrossSiteAncestor"` + } + if err := dec.Decode(&v); err != nil { + in.AddError(err) + } else { + t.TopLevelSite, t.HasCrossSiteAncestor = v.TopLevelSite, v.HasCrossSiteAncestor + } +} + // Cookie cookie object. // // See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-Cookie type Cookie struct { - Name string `json:"name"` // Cookie name. - Value string `json:"value"` // Cookie value. - Domain string `json:"domain"` // Cookie domain. - Path string `json:"path"` // Cookie path. - Expires float64 `json:"expires"` // Cookie expiration date as the number of seconds since the UNIX epoch. - Size int64 `json:"size"` // Cookie size. - HTTPOnly bool `json:"httpOnly"` // True if cookie is http-only. - Secure bool `json:"secure"` // True if cookie is secure. - Session bool `json:"session"` // True in case of session cookie. - SameSite CookieSameSite `json:"sameSite,omitempty"` // Cookie SameSite type. - Priority CookiePriority `json:"priority"` // Cookie Priority - SourceScheme CookieSourceScheme `json:"sourceScheme"` // Cookie source scheme type. - SourcePort int64 `json:"sourcePort"` // Cookie source port. Valid values are {-1, [1, 65535]}, -1 indicates an unspecified port. An unspecified port value allows protocol clients to emulate legacy cookie scope for the port. This is a temporary ability and it will be removed in the future. - PartitionKey string `json:"partitionKey,omitempty"` // Cookie partition key. The site of the top-level URL the browser was visiting at the start of the request to the endpoint that set the cookie. - PartitionKeyOpaque bool `json:"partitionKeyOpaque,omitempty"` // True if cookie partition key is opaque. + Name string `json:"name"` // Cookie name. + Value string `json:"value"` // Cookie value. + Domain string `json:"domain"` // Cookie domain. + Path string `json:"path"` // Cookie path. + Expires float64 `json:"expires"` // Cookie expiration date as the number of seconds since the UNIX epoch. + Size int64 `json:"size"` // Cookie size. + HTTPOnly bool `json:"httpOnly"` // True if cookie is http-only. + Secure bool `json:"secure"` // True if cookie is secure. + Session bool `json:"session"` // True in case of session cookie. + SameSite CookieSameSite `json:"sameSite,omitempty"` // Cookie SameSite type. + Priority CookiePriority `json:"priority"` // Cookie Priority + SourceScheme CookieSourceScheme `json:"sourceScheme"` // Cookie source scheme type. + SourcePort int64 `json:"sourcePort"` // Cookie source port. Valid values are {-1, [1, 65535]}, -1 indicates an unspecified port. An unspecified port value allows protocol clients to emulate legacy cookie scope for the port. This is a temporary ability and it will be removed in the future. + PartitionKey *CookiePartitionKey `json:"partitionKey,omitempty"` // Cookie partition key. + PartitionKeyOpaque bool `json:"partitionKeyOpaque,omitempty"` // True if cookie partition key is opaque. } // SetCookieBlockedReason types of reasons why a cookie may not be stored @@ -1494,7 +1536,7 @@ type CookieParam struct { SameParty bool `json:"sameParty,omitempty"` // True if cookie is SameParty. SourceScheme CookieSourceScheme `json:"sourceScheme,omitempty"` // Cookie source scheme type. SourcePort int64 `json:"sourcePort,omitempty"` // Cookie source port. Valid values are {-1, [1, 65535]}, -1 indicates an unspecified port. An unspecified port value allows protocol clients to emulate legacy cookie scope for the port. This is a temporary ability and it will be removed in the future. - PartitionKey string `json:"partitionKey,omitempty"` // Cookie partition key. The site of the top-level URL the browser was visiting at the start of the request to the endpoint that set the cookie. If not set, the cookie will be set as not partitioned. + PartitionKey *CookiePartitionKey `json:"partitionKey,omitempty"` // Cookie partition key. If not set, the cookie will be set as not partitioned. } // AuthChallenge authorization challenge for HTTP status code 401 or 407. diff --git a/page/types.go b/page/types.go index dbb230b5..5339195a 100644 --- a/page/types.go +++ b/page/types.go @@ -71,6 +71,7 @@ const ( PermissionsPolicyFeatureClipboardWrite PermissionsPolicyFeature = "clipboard-write" PermissionsPolicyFeatureComputePressure PermissionsPolicyFeature = "compute-pressure" PermissionsPolicyFeatureCrossOriginIsolated PermissionsPolicyFeature = "cross-origin-isolated" + PermissionsPolicyFeatureDeferredFetch PermissionsPolicyFeature = "deferred-fetch" PermissionsPolicyFeatureDirectSockets PermissionsPolicyFeature = "direct-sockets" PermissionsPolicyFeatureDisplayCapture PermissionsPolicyFeature = "display-capture" PermissionsPolicyFeatureDocumentDomain PermissionsPolicyFeature = "document-domain" @@ -206,6 +207,8 @@ func (t *PermissionsPolicyFeature) UnmarshalEasyJSON(in *jlexer.Lexer) { *t = PermissionsPolicyFeatureComputePressure case PermissionsPolicyFeatureCrossOriginIsolated: *t = PermissionsPolicyFeatureCrossOriginIsolated + case PermissionsPolicyFeatureDeferredFetch: + *t = PermissionsPolicyFeatureDeferredFetch case PermissionsPolicyFeatureDirectSockets: *t = PermissionsPolicyFeatureDirectSockets case PermissionsPolicyFeatureDisplayCapture: @@ -1146,6 +1149,11 @@ const ( BackForwardCacheNotRestoredReasonHTTPAuthRequired BackForwardCacheNotRestoredReason = "HTTPAuthRequired" BackForwardCacheNotRestoredReasonCookieFlushed BackForwardCacheNotRestoredReason = "CookieFlushed" BackForwardCacheNotRestoredReasonBroadcastChannelOnMessage BackForwardCacheNotRestoredReason = "BroadcastChannelOnMessage" + BackForwardCacheNotRestoredReasonWebViewSettingsChanged BackForwardCacheNotRestoredReason = "WebViewSettingsChanged" + BackForwardCacheNotRestoredReasonWebViewJavaScriptObjectChanged BackForwardCacheNotRestoredReason = "WebViewJavaScriptObjectChanged" + BackForwardCacheNotRestoredReasonWebViewMessageListenerInjected BackForwardCacheNotRestoredReason = "WebViewMessageListenerInjected" + BackForwardCacheNotRestoredReasonWebViewSafeBrowsingAllowlistChanged BackForwardCacheNotRestoredReason = "WebViewSafeBrowsingAllowlistChanged" + BackForwardCacheNotRestoredReasonWebViewDocumentStartJavascriptChanged BackForwardCacheNotRestoredReason = "WebViewDocumentStartJavascriptChanged" BackForwardCacheNotRestoredReasonWebSocket BackForwardCacheNotRestoredReason = "WebSocket" BackForwardCacheNotRestoredReasonWebTransport BackForwardCacheNotRestoredReason = "WebTransport" BackForwardCacheNotRestoredReasonWebRTC BackForwardCacheNotRestoredReason = "WebRTC" @@ -1352,6 +1360,16 @@ func (t *BackForwardCacheNotRestoredReason) UnmarshalEasyJSON(in *jlexer.Lexer) *t = BackForwardCacheNotRestoredReasonCookieFlushed case BackForwardCacheNotRestoredReasonBroadcastChannelOnMessage: *t = BackForwardCacheNotRestoredReasonBroadcastChannelOnMessage + case BackForwardCacheNotRestoredReasonWebViewSettingsChanged: + *t = BackForwardCacheNotRestoredReasonWebViewSettingsChanged + case BackForwardCacheNotRestoredReasonWebViewJavaScriptObjectChanged: + *t = BackForwardCacheNotRestoredReasonWebViewJavaScriptObjectChanged + case BackForwardCacheNotRestoredReasonWebViewMessageListenerInjected: + *t = BackForwardCacheNotRestoredReasonWebViewMessageListenerInjected + case BackForwardCacheNotRestoredReasonWebViewSafeBrowsingAllowlistChanged: + *t = BackForwardCacheNotRestoredReasonWebViewSafeBrowsingAllowlistChanged + case BackForwardCacheNotRestoredReasonWebViewDocumentStartJavascriptChanged: + *t = BackForwardCacheNotRestoredReasonWebViewDocumentStartJavascriptChanged case BackForwardCacheNotRestoredReasonWebSocket: *t = BackForwardCacheNotRestoredReasonWebSocket case BackForwardCacheNotRestoredReasonWebTransport: diff --git a/pwa/easyjson.go b/pwa/easyjson.go index 54cad009..dc9830a3 100644 --- a/pwa/easyjson.go +++ b/pwa/easyjson.go @@ -84,7 +84,73 @@ func (v *UninstallParams) UnmarshalJSON(data []byte) error { func (v *UninstallParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComChromedpCdprotoPwa(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPwa1(in *jlexer.Lexer, out *LaunchReturns) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPwa1(in *jlexer.Lexer, out *OpenCurrentPageInAppParams) { + 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 "manifestId": + out.ManifestID = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPwa1(out *jwriter.Writer, in OpenCurrentPageInAppParams) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"manifestId\":" + out.RawString(prefix[1:]) + out.String(string(in.ManifestID)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v OpenCurrentPageInAppParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPwa1(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v OpenCurrentPageInAppParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPwa1(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *OpenCurrentPageInAppParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPwa1(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *OpenCurrentPageInAppParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPwa1(l, v) +} +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPwa2(in *jlexer.Lexer, out *LaunchReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -115,7 +181,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPwa1(in *jlexer.Lexer, out *L in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPwa1(out *jwriter.Writer, in LaunchReturns) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPwa2(out *jwriter.Writer, in LaunchReturns) { out.RawByte('{') first := true _ = first @@ -131,27 +197,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPwa1(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v LaunchReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPwa1(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPwa2(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v LaunchReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPwa1(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPwa2(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *LaunchReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPwa1(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPwa2(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *LaunchReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPwa1(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPwa2(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPwa2(in *jlexer.Lexer, out *LaunchParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPwa3(in *jlexer.Lexer, out *LaunchParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -184,7 +250,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPwa2(in *jlexer.Lexer, out *L in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPwa2(out *jwriter.Writer, in LaunchParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPwa3(out *jwriter.Writer, in LaunchParams) { out.RawByte('{') first := true _ = first @@ -204,27 +270,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPwa2(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v LaunchParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPwa2(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPwa3(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v LaunchParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPwa2(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPwa3(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *LaunchParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPwa2(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPwa3(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *LaunchParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPwa2(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPwa3(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPwa3(in *jlexer.Lexer, out *LaunchFilesInAppReturns) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPwa4(in *jlexer.Lexer, out *LaunchFilesInAppReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -276,7 +342,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPwa3(in *jlexer.Lexer, out *L in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPwa3(out *jwriter.Writer, in LaunchFilesInAppReturns) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPwa4(out *jwriter.Writer, in LaunchFilesInAppReturns) { out.RawByte('{') first := true _ = first @@ -301,27 +367,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPwa3(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v LaunchFilesInAppReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPwa3(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPwa4(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v LaunchFilesInAppReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPwa3(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPwa4(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *LaunchFilesInAppReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPwa3(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPwa4(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *LaunchFilesInAppReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPwa3(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPwa4(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPwa4(in *jlexer.Lexer, out *LaunchFilesInAppParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPwa5(in *jlexer.Lexer, out *LaunchFilesInAppParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -375,7 +441,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPwa4(in *jlexer.Lexer, out *L in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPwa4(out *jwriter.Writer, in LaunchFilesInAppParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPwa5(out *jwriter.Writer, in LaunchFilesInAppParams) { out.RawByte('{') first := true _ = first @@ -406,27 +472,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPwa4(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v LaunchFilesInAppParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPwa4(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPwa5(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v LaunchFilesInAppParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPwa4(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPwa5(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *LaunchFilesInAppParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPwa4(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPwa5(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *LaunchFilesInAppParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPwa4(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPwa5(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPwa5(in *jlexer.Lexer, out *InstallParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPwa6(in *jlexer.Lexer, out *InstallParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -459,7 +525,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPwa5(in *jlexer.Lexer, out *I in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPwa5(out *jwriter.Writer, in InstallParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPwa6(out *jwriter.Writer, in InstallParams) { out.RawByte('{') first := true _ = first @@ -479,27 +545,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPwa5(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v InstallParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPwa5(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPwa6(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v InstallParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPwa5(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPwa6(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *InstallParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPwa5(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPwa6(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *InstallParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPwa5(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPwa6(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPwa6(in *jlexer.Lexer, out *GetOsAppStateReturns) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPwa7(in *jlexer.Lexer, out *GetOsAppStateReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -561,7 +627,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPwa6(in *jlexer.Lexer, out *G in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPwa6(out *jwriter.Writer, in GetOsAppStateReturns) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPwa7(out *jwriter.Writer, in GetOsAppStateReturns) { out.RawByte('{') first := true _ = first @@ -600,27 +666,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPwa6(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v GetOsAppStateReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPwa6(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPwa7(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetOsAppStateReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPwa6(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPwa7(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetOsAppStateReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPwa6(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPwa7(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetOsAppStateReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPwa6(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPwa7(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPwa7(in *jlexer.Lexer, out *GetOsAppStateParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPwa8(in *jlexer.Lexer, out *GetOsAppStateParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -651,7 +717,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPwa7(in *jlexer.Lexer, out *G in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPwa7(out *jwriter.Writer, in GetOsAppStateParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPwa8(out *jwriter.Writer, in GetOsAppStateParams) { out.RawByte('{') first := true _ = first @@ -666,27 +732,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPwa7(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v GetOsAppStateParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPwa7(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPwa8(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetOsAppStateParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPwa7(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPwa8(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetOsAppStateParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPwa7(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPwa8(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetOsAppStateParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPwa7(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPwa8(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPwa8(in *jlexer.Lexer, out *FileHandlerAccept) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPwa9(in *jlexer.Lexer, out *FileHandlerAccept) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -740,7 +806,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPwa8(in *jlexer.Lexer, out *F in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPwa8(out *jwriter.Writer, in FileHandlerAccept) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPwa9(out *jwriter.Writer, in FileHandlerAccept) { out.RawByte('{') first := true _ = first @@ -771,27 +837,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPwa8(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v FileHandlerAccept) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPwa8(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPwa9(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v FileHandlerAccept) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPwa8(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPwa9(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *FileHandlerAccept) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPwa8(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPwa9(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *FileHandlerAccept) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPwa8(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPwa9(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPwa9(in *jlexer.Lexer, out *FileHandler) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPwa10(in *jlexer.Lexer, out *FileHandler) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -855,7 +921,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPwa9(in *jlexer.Lexer, out *F in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPwa9(out *jwriter.Writer, in FileHandler) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPwa10(out *jwriter.Writer, in FileHandler) { out.RawByte('{') first := true _ = first @@ -895,23 +961,103 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPwa9(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v FileHandler) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPwa9(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPwa10(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v FileHandler) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPwa9(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPwa10(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *FileHandler) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPwa9(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPwa10(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *FileHandler) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPwa9(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPwa10(l, v) +} +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPwa11(in *jlexer.Lexer, out *ChangeAppUserSettingsParams) { + 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 "manifestId": + out.ManifestID = string(in.String()) + case "linkCapturing": + out.LinkCapturing = bool(in.Bool()) + case "displayMode": + (out.DisplayMode).UnmarshalEasyJSON(in) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPwa11(out *jwriter.Writer, in ChangeAppUserSettingsParams) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"manifestId\":" + out.RawString(prefix[1:]) + out.String(string(in.ManifestID)) + } + if in.LinkCapturing { + const prefix string = ",\"linkCapturing\":" + out.RawString(prefix) + out.Bool(bool(in.LinkCapturing)) + } + if in.DisplayMode != "" { + const prefix string = ",\"displayMode\":" + out.RawString(prefix) + (in.DisplayMode).MarshalEasyJSON(out) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v ChangeAppUserSettingsParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPwa11(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v ChangeAppUserSettingsParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPwa11(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *ChangeAppUserSettingsParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPwa11(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *ChangeAppUserSettingsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPwa11(l, v) } diff --git a/pwa/pwa.go b/pwa/pwa.go index 5723cc47..814600f1 100644 --- a/pwa/pwa.go +++ b/pwa/pwa.go @@ -102,13 +102,13 @@ func (p *InstallParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandInstall, p, nil) } -// UninstallParams uninstals the given manifest_id and closes any opened app +// UninstallParams uninstalls the given manifest_id and closes any opened app // windows. type UninstallParams struct { ManifestID string `json:"manifestId"` } -// Uninstall uninstals the given manifest_id and closes any opened app +// Uninstall uninstalls the given manifest_id and closes any opened app // windows. // // See: https://chromedevtools.github.io/devtools-protocol/tot/PWA#method-uninstall @@ -128,18 +128,18 @@ func (p *UninstallParams) Do(ctx context.Context) (err error) { } // LaunchParams launches the installed web app, or an url in the same web app -// instead of the default start url if it is provided. Returns a tab / web -// contents based Target.TargetID which can be used to attach to via -// Target.attachToTarget or similar APIs. +// instead of the default start url if it is provided. Returns a page +// Target.TargetID which can be used to attach to via Target.attachToTarget or +// similar APIs. type LaunchParams struct { ManifestID string `json:"manifestId"` URL string `json:"url,omitempty"` } // Launch launches the installed web app, or an url in the same web app -// instead of the default start url if it is provided. Returns a tab / web -// contents based Target.TargetID which can be used to attach to via -// Target.attachToTarget or similar APIs. +// instead of the default start url if it is provided. Returns a page +// Target.TargetID which can be used to attach to via Target.attachToTarget or +// similar APIs. // // See: https://chromedevtools.github.io/devtools-protocol/tot/PWA#method-launch // @@ -181,16 +181,15 @@ func (p *LaunchParams) Do(ctx context.Context) (targetID target.ID, err error) { // LaunchFilesInAppParams opens one or more local files from an installed web // app identified by its manifestId. The web app needs to have file handlers -// registered to process the files. The API returns one or more tabs / web -// contents' based Target.TargetIDs which can be used to attach to via -// Target.attachToTarget or similar APIs. If some files in the parameters cannot -// be handled by the web app, they will be ignored. If none of the files can be -// handled, this API returns an error. If no files provided as the parameter, -// this API also returns an error. According to the definition of the file -// handlers in the manifest file, one Target.TargetID may represent a tab -// handling one or more files. The order of the returned Target.TargetIDs is -// also not guaranteed. TODO(crbug.com/339454034): Check the existences of the -// input files. +// registered to process the files. The API returns one or more page +// Target.TargetIDs which can be used to attach to via Target.attachToTarget or +// similar APIs. If some files in the parameters cannot be handled by the web +// app, they will be ignored. If none of the files can be handled, this API +// returns an error. If no files are provided as the parameter, this API also +// returns an error. According to the definition of the file handlers in the +// manifest file, one Target.TargetID may represent a page handling one or more +// files. The order of the returned Target.TargetIDs is not guaranteed. +// TODO(crbug.com/339454034): Check the existences of the input files. type LaunchFilesInAppParams struct { ManifestID string `json:"manifestId"` Files []string `json:"files"` @@ -198,16 +197,15 @@ type LaunchFilesInAppParams struct { // LaunchFilesInApp opens one or more local files from an installed web app // identified by its manifestId. The web app needs to have file handlers -// registered to process the files. The API returns one or more tabs / web -// contents' based Target.TargetIDs which can be used to attach to via -// Target.attachToTarget or similar APIs. If some files in the parameters cannot -// be handled by the web app, they will be ignored. If none of the files can be -// handled, this API returns an error. If no files provided as the parameter, -// this API also returns an error. According to the definition of the file -// handlers in the manifest file, one Target.TargetID may represent a tab -// handling one or more files. The order of the returned Target.TargetIDs is -// also not guaranteed. TODO(crbug.com/339454034): Check the existences of the -// input files. +// registered to process the files. The API returns one or more page +// Target.TargetIDs which can be used to attach to via Target.attachToTarget or +// similar APIs. If some files in the parameters cannot be handled by the web +// app, they will be ignored. If none of the files can be handled, this API +// returns an error. If no files are provided as the parameter, this API also +// returns an error. According to the definition of the file handlers in the +// manifest file, one Target.TargetID may represent a page handling one or more +// files. The order of the returned Target.TargetIDs is not guaranteed. +// TODO(crbug.com/339454034): Check the existences of the input files. // // See: https://chromedevtools.github.io/devtools-protocol/tot/PWA#method-launchFilesInApp // @@ -243,11 +241,94 @@ func (p *LaunchFilesInAppParams) Do(ctx context.Context) (targetIDs []target.ID, return res.TargetIDs, nil } +// OpenCurrentPageInAppParams opens the current page in its web app +// identified by the manifest id, needs to be called on a page target. This +// function returns immediately without waiting for the app to finish loading. +type OpenCurrentPageInAppParams struct { + ManifestID string `json:"manifestId"` +} + +// OpenCurrentPageInApp opens the current page in its web app identified by +// the manifest id, needs to be called on a page target. This function returns +// immediately without waiting for the app to finish loading. +// +// See: https://chromedevtools.github.io/devtools-protocol/tot/PWA#method-openCurrentPageInApp +// +// parameters: +// +// manifestID +func OpenCurrentPageInApp(manifestID string) *OpenCurrentPageInAppParams { + return &OpenCurrentPageInAppParams{ + ManifestID: manifestID, + } +} + +// Do executes PWA.openCurrentPageInApp against the provided context. +func (p *OpenCurrentPageInAppParams) Do(ctx context.Context) (err error) { + return cdp.Execute(ctx, CommandOpenCurrentPageInApp, p, nil) +} + +// ChangeAppUserSettingsParams changes user settings of the web app +// identified by its manifestId. If the app was not installed, this command +// returns an error. Unset parameters will be ignored; unrecognized values will +// cause an error. Unlike the ones defined in the manifest files of the web +// apps, these settings are provided by the browser and controlled by the users, +// they impact the way the browser handling the web apps. See the comment of +// each parameter. +type ChangeAppUserSettingsParams struct { + ManifestID string `json:"manifestId"` + LinkCapturing bool `json:"linkCapturing,omitempty"` // If user allows the links clicked on by the user in the app's scope, or extended scope if the manifest has scope extensions and the flags DesktopPWAsLinkCapturingWithScopeExtensions and WebAppEnableScopeExtensions are enabled. Note, the API does not support resetting the linkCapturing to the initial value, uninstalling and installing the web app again will reset it. TODO(crbug.com/339453269): Setting this value on ChromeOS is not supported yet. + DisplayMode DisplayMode `json:"displayMode,omitempty"` +} + +// ChangeAppUserSettings changes user settings of the web app identified by +// its manifestId. If the app was not installed, this command returns an error. +// Unset parameters will be ignored; unrecognized values will cause an error. +// Unlike the ones defined in the manifest files of the web apps, these settings +// are provided by the browser and controlled by the users, they impact the way +// the browser handling the web apps. See the comment of each parameter. +// +// See: https://chromedevtools.github.io/devtools-protocol/tot/PWA#method-changeAppUserSettings +// +// parameters: +// +// manifestID +func ChangeAppUserSettings(manifestID string) *ChangeAppUserSettingsParams { + return &ChangeAppUserSettingsParams{ + ManifestID: manifestID, + } +} + +// WithLinkCapturing if user allows the links clicked on by the user in the +// app's scope, or extended scope if the manifest has scope extensions and the +// flags DesktopPWAsLinkCapturingWithScopeExtensions and +// WebAppEnableScopeExtensions are enabled. Note, the API does not support +// resetting the linkCapturing to the initial value, uninstalling and installing +// the web app again will reset it. TODO(crbug.com/339453269): Setting this +// value on ChromeOS is not supported yet. +func (p ChangeAppUserSettingsParams) WithLinkCapturing(linkCapturing bool) *ChangeAppUserSettingsParams { + p.LinkCapturing = linkCapturing + return &p +} + +// WithDisplayMode [no description]. +func (p ChangeAppUserSettingsParams) WithDisplayMode(displayMode DisplayMode) *ChangeAppUserSettingsParams { + p.DisplayMode = displayMode + return &p +} + +// Do executes PWA.changeAppUserSettings against the provided context. +func (p *ChangeAppUserSettingsParams) Do(ctx context.Context) (err error) { + return cdp.Execute(ctx, CommandChangeAppUserSettings, p, nil) +} + // Command names. const ( - CommandGetOsAppState = "PWA.getOsAppState" - CommandInstall = "PWA.install" - CommandUninstall = "PWA.uninstall" - CommandLaunch = "PWA.launch" - CommandLaunchFilesInApp = "PWA.launchFilesInApp" + CommandGetOsAppState = "PWA.getOsAppState" + CommandInstall = "PWA.install" + CommandUninstall = "PWA.uninstall" + CommandLaunch = "PWA.launch" + CommandLaunchFilesInApp = "PWA.launchFilesInApp" + CommandOpenCurrentPageInApp = "PWA.openCurrentPageInApp" + CommandChangeAppUserSettings = "PWA.changeAppUserSettings" ) diff --git a/pwa/types.go b/pwa/types.go index 965e4b5c..e856d1cc 100644 --- a/pwa/types.go +++ b/pwa/types.go @@ -2,6 +2,14 @@ package pwa // Code generated by cdproto-gen. DO NOT EDIT. +import ( + "fmt" + + "github.com/mailru/easyjson" + "github.com/mailru/easyjson/jlexer" + "github.com/mailru/easyjson/jwriter" +) + // FileHandlerAccept the following types are the replica of // https://crsrc.org/c/chrome/browser/web_applications/proto/web_app_os_integration_state.proto;drc=9910d3be894c8f142c977ba1023f30a656bc13fc;l=67. // @@ -19,3 +27,48 @@ type FileHandler struct { Accepts []*FileHandlerAccept `json:"accepts"` DisplayName string `json:"displayName"` } + +// DisplayMode if user prefers opening the app in browser or an app window. +// +// See: https://chromedevtools.github.io/devtools-protocol/tot/PWA#type-DisplayMode +type DisplayMode string + +// String returns the DisplayMode as string value. +func (t DisplayMode) String() string { + return string(t) +} + +// DisplayMode values. +const ( + DisplayModeStandalone DisplayMode = "standalone" + DisplayModeBrowser DisplayMode = "browser" +) + +// MarshalEasyJSON satisfies easyjson.Marshaler. +func (t DisplayMode) MarshalEasyJSON(out *jwriter.Writer) { + out.String(string(t)) +} + +// MarshalJSON satisfies json.Marshaler. +func (t DisplayMode) MarshalJSON() ([]byte, error) { + return easyjson.Marshal(t) +} + +// UnmarshalEasyJSON satisfies easyjson.Unmarshaler. +func (t *DisplayMode) UnmarshalEasyJSON(in *jlexer.Lexer) { + v := in.String() + switch DisplayMode(v) { + case DisplayModeStandalone: + *t = DisplayModeStandalone + case DisplayModeBrowser: + *t = DisplayModeBrowser + + default: + in.AddError(fmt.Errorf("unknown DisplayMode value: %v", v)) + } +} + +// UnmarshalJSON satisfies json.Unmarshaler. +func (t *DisplayMode) UnmarshalJSON(buf []byte) error { + return easyjson.Unmarshal(buf, t) +} diff --git a/storage/types.go b/storage/types.go index db95488e..1dde7895 100644 --- a/storage/types.go +++ b/storage/types.go @@ -719,19 +719,20 @@ func (t AttributionReportingSourceRegistrationResult) String() string { // AttributionReportingSourceRegistrationResult values. const ( - AttributionReportingSourceRegistrationResultSuccess AttributionReportingSourceRegistrationResult = "success" - AttributionReportingSourceRegistrationResultInternalError AttributionReportingSourceRegistrationResult = "internalError" - AttributionReportingSourceRegistrationResultInsufficientSourceCapacity AttributionReportingSourceRegistrationResult = "insufficientSourceCapacity" - AttributionReportingSourceRegistrationResultInsufficientUniqueDestinationCapacity AttributionReportingSourceRegistrationResult = "insufficientUniqueDestinationCapacity" - AttributionReportingSourceRegistrationResultExcessiveReportingOrigins AttributionReportingSourceRegistrationResult = "excessiveReportingOrigins" - AttributionReportingSourceRegistrationResultProhibitedByBrowserPolicy AttributionReportingSourceRegistrationResult = "prohibitedByBrowserPolicy" - AttributionReportingSourceRegistrationResultSuccessNoised AttributionReportingSourceRegistrationResult = "successNoised" - AttributionReportingSourceRegistrationResultDestinationReportingLimitReached AttributionReportingSourceRegistrationResult = "destinationReportingLimitReached" - AttributionReportingSourceRegistrationResultDestinationGlobalLimitReached AttributionReportingSourceRegistrationResult = "destinationGlobalLimitReached" - AttributionReportingSourceRegistrationResultDestinationBothLimitsReached AttributionReportingSourceRegistrationResult = "destinationBothLimitsReached" - AttributionReportingSourceRegistrationResultReportingOriginsPerSiteLimitReached AttributionReportingSourceRegistrationResult = "reportingOriginsPerSiteLimitReached" - AttributionReportingSourceRegistrationResultExceedsMaxChannelCapacity AttributionReportingSourceRegistrationResult = "exceedsMaxChannelCapacity" - AttributionReportingSourceRegistrationResultExceedsMaxTriggerStateCardinality AttributionReportingSourceRegistrationResult = "exceedsMaxTriggerStateCardinality" + AttributionReportingSourceRegistrationResultSuccess AttributionReportingSourceRegistrationResult = "success" + AttributionReportingSourceRegistrationResultInternalError AttributionReportingSourceRegistrationResult = "internalError" + AttributionReportingSourceRegistrationResultInsufficientSourceCapacity AttributionReportingSourceRegistrationResult = "insufficientSourceCapacity" + AttributionReportingSourceRegistrationResultInsufficientUniqueDestinationCapacity AttributionReportingSourceRegistrationResult = "insufficientUniqueDestinationCapacity" + AttributionReportingSourceRegistrationResultExcessiveReportingOrigins AttributionReportingSourceRegistrationResult = "excessiveReportingOrigins" + AttributionReportingSourceRegistrationResultProhibitedByBrowserPolicy AttributionReportingSourceRegistrationResult = "prohibitedByBrowserPolicy" + AttributionReportingSourceRegistrationResultSuccessNoised AttributionReportingSourceRegistrationResult = "successNoised" + AttributionReportingSourceRegistrationResultDestinationReportingLimitReached AttributionReportingSourceRegistrationResult = "destinationReportingLimitReached" + AttributionReportingSourceRegistrationResultDestinationGlobalLimitReached AttributionReportingSourceRegistrationResult = "destinationGlobalLimitReached" + AttributionReportingSourceRegistrationResultDestinationBothLimitsReached AttributionReportingSourceRegistrationResult = "destinationBothLimitsReached" + AttributionReportingSourceRegistrationResultReportingOriginsPerSiteLimitReached AttributionReportingSourceRegistrationResult = "reportingOriginsPerSiteLimitReached" + AttributionReportingSourceRegistrationResultExceedsMaxChannelCapacity AttributionReportingSourceRegistrationResult = "exceedsMaxChannelCapacity" + AttributionReportingSourceRegistrationResultExceedsMaxTriggerStateCardinality AttributionReportingSourceRegistrationResult = "exceedsMaxTriggerStateCardinality" + AttributionReportingSourceRegistrationResultDestinationPerDayReportingLimitReached AttributionReportingSourceRegistrationResult = "destinationPerDayReportingLimitReached" ) // MarshalEasyJSON satisfies easyjson.Marshaler. @@ -774,6 +775,8 @@ func (t *AttributionReportingSourceRegistrationResult) UnmarshalEasyJSON(in *jle *t = AttributionReportingSourceRegistrationResultExceedsMaxChannelCapacity case AttributionReportingSourceRegistrationResultExceedsMaxTriggerStateCardinality: *t = AttributionReportingSourceRegistrationResultExceedsMaxTriggerStateCardinality + case AttributionReportingSourceRegistrationResultDestinationPerDayReportingLimitReached: + *t = AttributionReportingSourceRegistrationResultDestinationPerDayReportingLimitReached default: in.AddError(fmt.Errorf("unknown AttributionReportingSourceRegistrationResult value: %v", v))