diff --git a/audits/types.go b/audits/types.go index b38f80c..880cb05 100644 --- a/audits/types.go +++ b/audits/types.go @@ -1078,6 +1078,8 @@ const ( FederatedAuthRequestIssueReasonIDTokenHTTPNotFound FederatedAuthRequestIssueReason = "IdTokenHttpNotFound" FederatedAuthRequestIssueReasonIDTokenNoResponse FederatedAuthRequestIssueReason = "IdTokenNoResponse" FederatedAuthRequestIssueReasonIDTokenInvalidResponse FederatedAuthRequestIssueReason = "IdTokenInvalidResponse" + FederatedAuthRequestIssueReasonIDTokenIdpErrorResponse FederatedAuthRequestIssueReason = "IdTokenIdpErrorResponse" + FederatedAuthRequestIssueReasonIDTokenCrossSiteIdpErrorResponse FederatedAuthRequestIssueReason = "IdTokenCrossSiteIdpErrorResponse" FederatedAuthRequestIssueReasonIDTokenInvalidRequest FederatedAuthRequestIssueReason = "IdTokenInvalidRequest" FederatedAuthRequestIssueReasonIDTokenInvalidContentType FederatedAuthRequestIssueReason = "IdTokenInvalidContentType" FederatedAuthRequestIssueReasonErrorIDToken FederatedAuthRequestIssueReason = "ErrorIdToken" @@ -1158,6 +1160,10 @@ func (t *FederatedAuthRequestIssueReason) UnmarshalEasyJSON(in *jlexer.Lexer) { *t = FederatedAuthRequestIssueReasonIDTokenNoResponse case FederatedAuthRequestIssueReasonIDTokenInvalidResponse: *t = FederatedAuthRequestIssueReasonIDTokenInvalidResponse + case FederatedAuthRequestIssueReasonIDTokenIdpErrorResponse: + *t = FederatedAuthRequestIssueReasonIDTokenIdpErrorResponse + case FederatedAuthRequestIssueReasonIDTokenCrossSiteIdpErrorResponse: + *t = FederatedAuthRequestIssueReasonIDTokenCrossSiteIdpErrorResponse case FederatedAuthRequestIssueReasonIDTokenInvalidRequest: *t = FederatedAuthRequestIssueReasonIDTokenInvalidRequest case FederatedAuthRequestIssueReasonIDTokenInvalidContentType: diff --git a/browser/types.go b/browser/types.go index 597ba5d..85b6da7 100644 --- a/browser/types.go +++ b/browser/types.go @@ -251,8 +251,7 @@ func (t *PermissionSetting) UnmarshalJSON(buf []byte) error { } // PermissionDescriptor definition of PermissionDescriptor defined in the -// Permissions API: -// https://w3c.github.io/permissions/#dictdef-permissiondescriptor. +// Permissions API: https://w3c.github.io/permissions/#dom-permissiondescriptor. // // See: https://chromedevtools.github.io/devtools-protocol/tot/Browser#type-PermissionDescriptor type PermissionDescriptor struct { diff --git a/page/types.go b/page/types.go index c708fd0..aee7d9c 100644 --- a/page/types.go +++ b/page/types.go @@ -111,6 +111,7 @@ const ( PermissionsPolicyFeatureUnload PermissionsPolicyFeature = "unload" PermissionsPolicyFeatureUsb PermissionsPolicyFeature = "usb" PermissionsPolicyFeatureVerticalScroll PermissionsPolicyFeature = "vertical-scroll" + PermissionsPolicyFeatureWebPrinting PermissionsPolicyFeature = "web-printing" PermissionsPolicyFeatureWebShare PermissionsPolicyFeature = "web-share" PermissionsPolicyFeatureWindowManagement PermissionsPolicyFeature = "window-management" PermissionsPolicyFeatureWindowPlacement PermissionsPolicyFeature = "window-placement" @@ -281,6 +282,8 @@ func (t *PermissionsPolicyFeature) UnmarshalEasyJSON(in *jlexer.Lexer) { *t = PermissionsPolicyFeatureUsb case PermissionsPolicyFeatureVerticalScroll: *t = PermissionsPolicyFeatureVerticalScroll + case PermissionsPolicyFeatureWebPrinting: + *t = PermissionsPolicyFeatureWebPrinting case PermissionsPolicyFeatureWebShare: *t = PermissionsPolicyFeatureWebShare case PermissionsPolicyFeatureWindowManagement: diff --git a/storage/easyjson.go b/storage/easyjson.go index 541e829..feceb5b 100644 --- a/storage/easyjson.go +++ b/storage/easyjson.go @@ -5113,7 +5113,124 @@ func (v *Bucket) UnmarshalJSON(data []byte) error { func (v *Bucket) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage60(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage61(in *jlexer.Lexer, out *AttributionReportingSourceRegistration) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage61(in *jlexer.Lexer, out *AttributionReportingTriggerSpec) { + 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 "triggerData": + if in.IsNull() { + in.Skip() + out.TriggerData = nil + } else { + in.Delim('[') + if out.TriggerData == nil { + if !in.IsDelim(']') { + out.TriggerData = make([]float64, 0, 8) + } else { + out.TriggerData = []float64{} + } + } else { + out.TriggerData = (out.TriggerData)[:0] + } + for !in.IsDelim(']') { + var v34 float64 + v34 = float64(in.Float64()) + out.TriggerData = append(out.TriggerData, v34) + in.WantComma() + } + in.Delim(']') + } + case "eventReportWindows": + if in.IsNull() { + in.Skip() + out.EventReportWindows = nil + } else { + if out.EventReportWindows == nil { + out.EventReportWindows = new(AttributionReportingEventReportWindows) + } + (*out.EventReportWindows).UnmarshalEasyJSON(in) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage61(out *jwriter.Writer, in AttributionReportingTriggerSpec) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"triggerData\":" + out.RawString(prefix[1:]) + if in.TriggerData == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v35, v36 := range in.TriggerData { + if v35 > 0 { + out.RawByte(',') + } + out.Float64(float64(v36)) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"eventReportWindows\":" + out.RawString(prefix) + if in.EventReportWindows == nil { + out.RawString("null") + } else { + (*in.EventReportWindows).MarshalEasyJSON(out) + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v AttributionReportingTriggerSpec) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage61(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v AttributionReportingTriggerSpec) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage61(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *AttributionReportingTriggerSpec) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage61(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *AttributionReportingTriggerSpec) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage61(l, v) +} +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage62(in *jlexer.Lexer, out *AttributionReportingSourceRegistration) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5144,15 +5261,36 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage61(in *jlexer.Lexer, o } case "expiry": out.Expiry = int64(in.Int64()) - case "eventReportWindows": + case "triggerSpecs": if in.IsNull() { in.Skip() - out.EventReportWindows = nil + out.TriggerSpecs = nil } else { - if out.EventReportWindows == nil { - out.EventReportWindows = new(AttributionReportingEventReportWindows) + in.Delim('[') + if out.TriggerSpecs == nil { + if !in.IsDelim(']') { + out.TriggerSpecs = make([]*AttributionReportingTriggerSpec, 0, 8) + } else { + out.TriggerSpecs = []*AttributionReportingTriggerSpec{} + } + } else { + out.TriggerSpecs = (out.TriggerSpecs)[:0] } - (*out.EventReportWindows).UnmarshalEasyJSON(in) + for !in.IsDelim(']') { + var v37 *AttributionReportingTriggerSpec + if in.IsNull() { + in.Skip() + v37 = nil + } else { + if v37 == nil { + v37 = new(AttributionReportingTriggerSpec) + } + (*v37).UnmarshalEasyJSON(in) + } + out.TriggerSpecs = append(out.TriggerSpecs, v37) + in.WantComma() + } + in.Delim(']') } case "aggregatableReportWindow": out.AggregatableReportWindow = int64(in.Int64()) @@ -5178,9 +5316,9 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage61(in *jlexer.Lexer, o out.DestinationSites = (out.DestinationSites)[:0] } for !in.IsDelim(']') { - var v34 string - v34 = string(in.String()) - out.DestinationSites = append(out.DestinationSites, v34) + var v38 string + v38 = string(in.String()) + out.DestinationSites = append(out.DestinationSites, v38) in.WantComma() } in.Delim(']') @@ -5205,17 +5343,17 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage61(in *jlexer.Lexer, o out.FilterData = (out.FilterData)[:0] } for !in.IsDelim(']') { - var v35 *AttributionReportingFilterDataEntry + var v39 *AttributionReportingFilterDataEntry if in.IsNull() { in.Skip() - v35 = nil + v39 = nil } else { - if v35 == nil { - v35 = new(AttributionReportingFilterDataEntry) + if v39 == nil { + v39 = new(AttributionReportingFilterDataEntry) } - (*v35).UnmarshalEasyJSON(in) + (*v39).UnmarshalEasyJSON(in) } - out.FilterData = append(out.FilterData, v35) + out.FilterData = append(out.FilterData, v39) in.WantComma() } in.Delim(']') @@ -5236,17 +5374,17 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage61(in *jlexer.Lexer, o out.AggregationKeys = (out.AggregationKeys)[:0] } for !in.IsDelim(']') { - var v36 *AttributionReportingAggregationKeysEntry + var v40 *AttributionReportingAggregationKeysEntry if in.IsNull() { in.Skip() - v36 = nil + v40 = nil } else { - if v36 == nil { - v36 = new(AttributionReportingAggregationKeysEntry) + if v40 == nil { + v40 = new(AttributionReportingAggregationKeysEntry) } - (*v36).UnmarshalEasyJSON(in) + (*v40).UnmarshalEasyJSON(in) } - out.AggregationKeys = append(out.AggregationKeys, v36) + out.AggregationKeys = append(out.AggregationKeys, v40) in.WantComma() } in.Delim(']') @@ -5265,7 +5403,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage61(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage61(out *jwriter.Writer, in AttributionReportingSourceRegistration) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage62(out *jwriter.Writer, in AttributionReportingSourceRegistration) { out.RawByte('{') first := true _ = first @@ -5284,12 +5422,23 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage61(out *jwriter.Writer out.Int64(int64(in.Expiry)) } { - const prefix string = ",\"eventReportWindows\":" + const prefix string = ",\"triggerSpecs\":" out.RawString(prefix) - if in.EventReportWindows == nil { + if in.TriggerSpecs == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { out.RawString("null") } else { - (*in.EventReportWindows).MarshalEasyJSON(out) + out.RawByte('[') + for v41, v42 := range in.TriggerSpecs { + if v41 > 0 { + out.RawByte(',') + } + if v42 == nil { + out.RawString("null") + } else { + (*v42).MarshalEasyJSON(out) + } + } + out.RawByte(']') } } { @@ -5319,11 +5468,11 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage61(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v37, v38 := range in.DestinationSites { - if v37 > 0 { + for v43, v44 := range in.DestinationSites { + if v43 > 0 { out.RawByte(',') } - out.String(string(v38)) + out.String(string(v44)) } out.RawByte(']') } @@ -5345,14 +5494,14 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage61(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v39, v40 := range in.FilterData { - if v39 > 0 { + for v45, v46 := range in.FilterData { + if v45 > 0 { out.RawByte(',') } - if v40 == nil { + if v46 == nil { out.RawString("null") } else { - (*v40).MarshalEasyJSON(out) + (*v46).MarshalEasyJSON(out) } } out.RawByte(']') @@ -5365,14 +5514,14 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage61(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v41, v42 := range in.AggregationKeys { - if v41 > 0 { + for v47, v48 := range in.AggregationKeys { + if v47 > 0 { out.RawByte(',') } - if v42 == nil { + if v48 == nil { out.RawString("null") } else { - (*v42).MarshalEasyJSON(out) + (*v48).MarshalEasyJSON(out) } } out.RawByte(']') @@ -5394,27 +5543,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage61(out *jwriter.Writer // MarshalJSON supports json.Marshaler interface func (v AttributionReportingSourceRegistration) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage61(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage62(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v AttributionReportingSourceRegistration) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage61(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage62(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *AttributionReportingSourceRegistration) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage61(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage62(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *AttributionReportingSourceRegistration) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage61(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage62(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage62(in *jlexer.Lexer, out *AttributionReportingFilterDataEntry) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage63(in *jlexer.Lexer, out *AttributionReportingFilterDataEntry) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5451,9 +5600,9 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage62(in *jlexer.Lexer, o out.Values = (out.Values)[:0] } for !in.IsDelim(']') { - var v43 string - v43 = string(in.String()) - out.Values = append(out.Values, v43) + var v49 string + v49 = string(in.String()) + out.Values = append(out.Values, v49) in.WantComma() } in.Delim(']') @@ -5468,7 +5617,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage62(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage62(out *jwriter.Writer, in AttributionReportingFilterDataEntry) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage63(out *jwriter.Writer, in AttributionReportingFilterDataEntry) { out.RawByte('{') first := true _ = first @@ -5484,11 +5633,11 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage62(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v44, v45 := range in.Values { - if v44 > 0 { + for v50, v51 := range in.Values { + if v50 > 0 { out.RawByte(',') } - out.String(string(v45)) + out.String(string(v51)) } out.RawByte(']') } @@ -5499,27 +5648,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage62(out *jwriter.Writer // MarshalJSON supports json.Marshaler interface func (v AttributionReportingFilterDataEntry) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage62(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage63(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v AttributionReportingFilterDataEntry) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage62(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage63(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *AttributionReportingFilterDataEntry) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage62(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage63(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *AttributionReportingFilterDataEntry) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage62(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage63(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage63(in *jlexer.Lexer, out *AttributionReportingEventReportWindows) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage64(in *jlexer.Lexer, out *AttributionReportingEventReportWindows) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5556,9 +5705,9 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage63(in *jlexer.Lexer, o out.Ends = (out.Ends)[:0] } for !in.IsDelim(']') { - var v46 int64 - v46 = int64(in.Int64()) - out.Ends = append(out.Ends, v46) + var v52 int64 + v52 = int64(in.Int64()) + out.Ends = append(out.Ends, v52) in.WantComma() } in.Delim(']') @@ -5573,7 +5722,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage63(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage63(out *jwriter.Writer, in AttributionReportingEventReportWindows) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage64(out *jwriter.Writer, in AttributionReportingEventReportWindows) { out.RawByte('{') first := true _ = first @@ -5589,11 +5738,11 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage63(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v47, v48 := range in.Ends { - if v47 > 0 { + for v53, v54 := range in.Ends { + if v53 > 0 { out.RawByte(',') } - out.Int64(int64(v48)) + out.Int64(int64(v54)) } out.RawByte(']') } @@ -5604,27 +5753,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage63(out *jwriter.Writer // MarshalJSON supports json.Marshaler interface func (v AttributionReportingEventReportWindows) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage63(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage64(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v AttributionReportingEventReportWindows) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage63(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage64(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *AttributionReportingEventReportWindows) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage63(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage64(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *AttributionReportingEventReportWindows) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage63(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage64(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage64(in *jlexer.Lexer, out *AttributionReportingAggregationKeysEntry) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage65(in *jlexer.Lexer, out *AttributionReportingAggregationKeysEntry) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5657,7 +5806,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage64(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage64(out *jwriter.Writer, in AttributionReportingAggregationKeysEntry) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage65(out *jwriter.Writer, in AttributionReportingAggregationKeysEntry) { out.RawByte('{') first := true _ = first @@ -5677,23 +5826,23 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage64(out *jwriter.Writer // MarshalJSON supports json.Marshaler interface func (v AttributionReportingAggregationKeysEntry) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage64(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage65(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v AttributionReportingAggregationKeysEntry) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage64(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage65(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *AttributionReportingAggregationKeysEntry) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage64(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage65(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *AttributionReportingAggregationKeysEntry) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage64(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage65(l, v) } diff --git a/storage/types.go b/storage/types.go index fb56380..ef5622c 100644 --- a/storage/types.go +++ b/storage/types.go @@ -512,6 +512,14 @@ type AttributionReportingEventReportWindows struct { Ends []int64 `json:"ends"` // duration in seconds } +// AttributionReportingTriggerSpec [no description]. +// +// See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#type-AttributionReportingTriggerSpec +type AttributionReportingTriggerSpec struct { + TriggerData []float64 `json:"triggerData"` // number instead of integer because not all uint32 can be represented by int + EventReportWindows *AttributionReportingEventReportWindows `json:"eventReportWindows"` +} + // AttributionReportingTriggerDataMatching [no description]. // // See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#type-AttributionReportingTriggerDataMatching @@ -563,7 +571,7 @@ func (t *AttributionReportingTriggerDataMatching) UnmarshalJSON(buf []byte) erro type AttributionReportingSourceRegistration struct { Time *cdp.TimeSinceEpoch `json:"time"` Expiry int64 `json:"expiry"` // duration in seconds - EventReportWindows *AttributionReportingEventReportWindows `json:"eventReportWindows"` + TriggerSpecs []*AttributionReportingTriggerSpec `json:"triggerSpecs"` AggregatableReportWindow int64 `json:"aggregatableReportWindow"` // duration in seconds Type AttributionReportingSourceType `json:"type"` SourceOrigin string `json:"sourceOrigin"`