diff --git a/CefSharp.Core/DevTools/DevToolsClient.Generated.cs b/CefSharp.Core/DevTools/DevToolsClient.Generated.cs index be2c347d9..b593ec37f 100644 --- a/CefSharp.Core/DevTools/DevToolsClient.Generated.cs +++ b/CefSharp.Core/DevTools/DevToolsClient.Generated.cs @@ -3,7 +3,7 @@ // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. // // **This code was generated by a tool, do not change directly** -// CHROMIUM VERSION 145.0.7632.76 +// CHROMIUM VERSION 146.0.7680.165 using System.Runtime.Serialization; namespace CefSharp.DevTools.Accessibility @@ -1522,16 +1522,6 @@ namespace CefSharp.DevTools.Audits [EnumMember(Value = ("ExcludeSameSiteStrict"))] ExcludeSameSiteStrict, /// - /// ExcludeInvalidSameParty - /// - [EnumMember(Value = ("ExcludeInvalidSameParty"))] - ExcludeInvalidSameParty, - /// - /// ExcludeSamePartyCrossPartyContext - /// - [EnumMember(Value = ("ExcludeSamePartyCrossPartyContext"))] - ExcludeSamePartyCrossPartyContext, - /// /// ExcludeDomainNonASCII /// [EnumMember(Value = ("ExcludeDomainNonASCII"))] @@ -3177,6 +3167,43 @@ namespace CefSharp.DevTools.Audits IncorrectDigestLength } + /// + /// ConnectionAllowlistError + /// + public enum ConnectionAllowlistError + { + /// + /// InvalidHeader + /// + [EnumMember(Value = ("InvalidHeader"))] + InvalidHeader, + /// + /// MoreThanOneList + /// + [EnumMember(Value = ("MoreThanOneList"))] + MoreThanOneList, + /// + /// ItemNotInnerList + /// + [EnumMember(Value = ("ItemNotInnerList"))] + ItemNotInnerList, + /// + /// InvalidAllowlistItemType + /// + [EnumMember(Value = ("InvalidAllowlistItemType"))] + InvalidAllowlistItemType, + /// + /// ReportingEndpointNotToken + /// + [EnumMember(Value = ("ReportingEndpointNotToken"))] + ReportingEndpointNotToken, + /// + /// InvalidUrlPattern + /// + [EnumMember(Value = ("InvalidUrlPattern"))] + InvalidUrlPattern + } + /// /// Details for issues around "Attribution Reporting API" usage. /// Explainer: https://github.com/WICG/attribution-reporting-api @@ -3476,6 +3503,49 @@ namespace CefSharp.DevTools.Audits } } + /// + /// ConnectionAllowlistIssueDetails + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class ConnectionAllowlistIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Error + /// + public CefSharp.DevTools.Audits.ConnectionAllowlistError Error + { + get + { + return (CefSharp.DevTools.Audits.ConnectionAllowlistError)(StringToEnum(typeof(CefSharp.DevTools.Audits.ConnectionAllowlistError), error)); + } + + set + { + this.error = (EnumToString(value)); + } + } + + /// + /// Error + /// + [DataMember(Name = ("error"), IsRequired = (true))] + internal string error + { + get; + set; + } + + /// + /// Request + /// + [DataMember(Name = ("request"), IsRequired = (true))] + public CefSharp.DevTools.Audits.AffectedRequest Request + { + get; + set; + } + } + /// /// GenericIssueErrorType /// @@ -4951,6 +5021,11 @@ namespace CefSharp.DevTools.Audits [EnumMember(Value = ("UnencodedDigestIssue"))] UnencodedDigestIssue, /// + /// ConnectionAllowlistIssue + /// + [EnumMember(Value = ("ConnectionAllowlistIssue"))] + ConnectionAllowlistIssue, + /// /// UserReidentificationIssue /// [EnumMember(Value = ("UserReidentificationIssue"))] @@ -5220,6 +5295,16 @@ namespace CefSharp.DevTools.Audits set; } + /// + /// ConnectionAllowlistIssueDetails + /// + [DataMember(Name = ("connectionAllowlistIssueDetails"), IsRequired = (false))] + public CefSharp.DevTools.Audits.ConnectionAllowlistIssueDetails ConnectionAllowlistIssueDetails + { + get; + set; + } + /// /// UserReidentificationIssueDetails /// @@ -18195,16 +18280,6 @@ namespace CefSharp.DevTools.Network [EnumMember(Value = ("PreflightInvalidAllowExternal"))] PreflightInvalidAllowExternal, /// - /// PreflightMissingAllowPrivateNetwork - /// - [EnumMember(Value = ("PreflightMissingAllowPrivateNetwork"))] - PreflightMissingAllowPrivateNetwork, - /// - /// PreflightInvalidAllowPrivateNetwork - /// - [EnumMember(Value = ("PreflightInvalidAllowPrivateNetwork"))] - PreflightInvalidAllowPrivateNetwork, - /// /// InvalidAllowMethodsPreflightResponse /// [EnumMember(Value = ("InvalidAllowMethodsPreflightResponse"))] @@ -18230,46 +18305,21 @@ namespace CefSharp.DevTools.Network [EnumMember(Value = ("RedirectContainsCredentials"))] RedirectContainsCredentials, /// - /// InsecurePrivateNetwork + /// InsecureLocalNetwork /// - [EnumMember(Value = ("InsecurePrivateNetwork"))] - InsecurePrivateNetwork, + [EnumMember(Value = ("InsecureLocalNetwork"))] + InsecureLocalNetwork, /// - /// InvalidPrivateNetworkAccess + /// InvalidLocalNetworkAccess /// - [EnumMember(Value = ("InvalidPrivateNetworkAccess"))] - InvalidPrivateNetworkAccess, - /// - /// UnexpectedPrivateNetworkAccess - /// - [EnumMember(Value = ("UnexpectedPrivateNetworkAccess"))] - UnexpectedPrivateNetworkAccess, + [EnumMember(Value = ("InvalidLocalNetworkAccess"))] + InvalidLocalNetworkAccess, /// /// NoCorsRedirectModeNotFollow /// [EnumMember(Value = ("NoCorsRedirectModeNotFollow"))] NoCorsRedirectModeNotFollow, /// - /// PreflightMissingPrivateNetworkAccessId - /// - [EnumMember(Value = ("PreflightMissingPrivateNetworkAccessId"))] - PreflightMissingPrivateNetworkAccessId, - /// - /// PreflightMissingPrivateNetworkAccessName - /// - [EnumMember(Value = ("PreflightMissingPrivateNetworkAccessName"))] - PreflightMissingPrivateNetworkAccessName, - /// - /// PrivateNetworkAccessPermissionUnavailable - /// - [EnumMember(Value = ("PrivateNetworkAccessPermissionUnavailable"))] - PrivateNetworkAccessPermissionUnavailable, - /// - /// PrivateNetworkAccessPermissionDenied - /// - [EnumMember(Value = ("PrivateNetworkAccessPermissionDenied"))] - PrivateNetworkAccessPermissionDenied, - /// /// LocalNetworkAccessPermissionDenied /// [EnumMember(Value = ("LocalNetworkAccessPermissionDenied"))] @@ -19433,16 +19483,6 @@ namespace CefSharp.DevTools.Network set; } - /// - /// True if cookie is SameParty. - /// - [DataMember(Name = ("sameParty"), IsRequired = (true))] - public bool SameParty - { - get; - set; - } - /// /// Cookie source scheme type. /// @@ -19593,16 +19633,6 @@ namespace CefSharp.DevTools.Network [EnumMember(Value = ("SchemefulSameSiteUnspecifiedTreatedAsLax"))] SchemefulSameSiteUnspecifiedTreatedAsLax, /// - /// SamePartyFromCrossPartyContext - /// - [EnumMember(Value = ("SamePartyFromCrossPartyContext"))] - SamePartyFromCrossPartyContext, - /// - /// SamePartyConflictsWithOtherAttributes - /// - [EnumMember(Value = ("SamePartyConflictsWithOtherAttributes"))] - SamePartyConflictsWithOtherAttributes, - /// /// NameValuePairExceedsMaxSize /// [EnumMember(Value = ("NameValuePairExceedsMaxSize"))] @@ -19695,11 +19725,6 @@ namespace CefSharp.DevTools.Network [EnumMember(Value = ("SchemefulSameSiteUnspecifiedTreatedAsLax"))] SchemefulSameSiteUnspecifiedTreatedAsLax, /// - /// SamePartyFromCrossPartyContext - /// - [EnumMember(Value = ("SamePartyFromCrossPartyContext"))] - SamePartyFromCrossPartyContext, - /// /// NameValuePairExceedsMaxSize /// [EnumMember(Value = ("NameValuePairExceedsMaxSize"))] @@ -20104,16 +20129,6 @@ namespace CefSharp.DevTools.Network set; } - /// - /// True if cookie is SameParty. - /// - [DataMember(Name = ("sameParty"), IsRequired = (false))] - public bool? SameParty - { - get; - set; - } - /// /// Cookie source scheme type. /// @@ -21131,9 +21146,9 @@ namespace CefSharp.DevTools.Network } /// - /// PrivateNetworkRequestPolicy + /// LocalNetworkAccessRequestPolicy /// - public enum PrivateNetworkRequestPolicy + public enum LocalNetworkAccessRequestPolicy { /// /// Allow @@ -21251,26 +21266,26 @@ namespace CefSharp.DevTools.Network } /// - /// PrivateNetworkRequestPolicy + /// LocalNetworkAccessRequestPolicy /// - public CefSharp.DevTools.Network.PrivateNetworkRequestPolicy PrivateNetworkRequestPolicy + public CefSharp.DevTools.Network.LocalNetworkAccessRequestPolicy LocalNetworkAccessRequestPolicy { get { - return (CefSharp.DevTools.Network.PrivateNetworkRequestPolicy)(StringToEnum(typeof(CefSharp.DevTools.Network.PrivateNetworkRequestPolicy), privateNetworkRequestPolicy)); + return (CefSharp.DevTools.Network.LocalNetworkAccessRequestPolicy)(StringToEnum(typeof(CefSharp.DevTools.Network.LocalNetworkAccessRequestPolicy), localNetworkAccessRequestPolicy)); } set { - this.privateNetworkRequestPolicy = (EnumToString(value)); + this.localNetworkAccessRequestPolicy = (EnumToString(value)); } } /// - /// PrivateNetworkRequestPolicy + /// LocalNetworkAccessRequestPolicy /// - [DataMember(Name = ("privateNetworkRequestPolicy"), IsRequired = (true))] - internal string privateNetworkRequestPolicy + [DataMember(Name = ("localNetworkAccessRequestPolicy"), IsRequired = (true))] + internal string localNetworkAccessRequestPolicy { get; set; @@ -21800,6 +21815,86 @@ namespace CefSharp.DevTools.Network } } + /// + /// How the session was used (or not used). + /// + public enum DeviceBoundSessionWithUsageUsage + { + /// + /// NotInScope + /// + [EnumMember(Value = ("NotInScope"))] + NotInScope, + /// + /// InScopeRefreshNotYetNeeded + /// + [EnumMember(Value = ("InScopeRefreshNotYetNeeded"))] + InScopeRefreshNotYetNeeded, + /// + /// InScopeRefreshNotAllowed + /// + [EnumMember(Value = ("InScopeRefreshNotAllowed"))] + InScopeRefreshNotAllowed, + /// + /// ProactiveRefreshNotPossible + /// + [EnumMember(Value = ("ProactiveRefreshNotPossible"))] + ProactiveRefreshNotPossible, + /// + /// ProactiveRefreshAttempted + /// + [EnumMember(Value = ("ProactiveRefreshAttempted"))] + ProactiveRefreshAttempted, + /// + /// Deferred + /// + [EnumMember(Value = ("Deferred"))] + Deferred + } + + /// + /// How a device bound session was used during a request. + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class DeviceBoundSessionWithUsage : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// The key for the session. + /// + [DataMember(Name = ("sessionKey"), IsRequired = (true))] + public CefSharp.DevTools.Network.DeviceBoundSessionKey SessionKey + { + get; + set; + } + + /// + /// How the session was used (or not used). + /// + public CefSharp.DevTools.Network.DeviceBoundSessionWithUsageUsage Usage + { + get + { + return (CefSharp.DevTools.Network.DeviceBoundSessionWithUsageUsage)(StringToEnum(typeof(CefSharp.DevTools.Network.DeviceBoundSessionWithUsageUsage), usage)); + } + + set + { + this.usage = (EnumToString(value)); + } + } + + /// + /// How the session was used (or not used). + /// + [DataMember(Name = ("usage"), IsRequired = (true))] + internal string usage + { + get; + set; + } + } + /// /// A device bound session's cookie craving. /// @@ -24607,6 +24702,16 @@ namespace CefSharp.DevTools.Network private set; } + /// + /// How the request site's device bound sessions were used during this request. + /// + [DataMember(Name = ("deviceBoundSessionUsages"), IsRequired = (false))] + public System.Collections.Generic.IList DeviceBoundSessionUsages + { + get; + private set; + } + /// /// The client security state set for the request. /// @@ -26221,6 +26326,33 @@ namespace CefSharp.DevTools.Overlay None } + /// + /// InspectedElementAnchorConfig + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class InspectedElementAnchorConfig : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Identifier of the node to highlight. + /// + [DataMember(Name = ("nodeId"), IsRequired = (false))] + public int? NodeId + { + get; + set; + } + + /// + /// Identifier of the backend node to highlight. + /// + [DataMember(Name = ("backendNodeId"), IsRequired = (false))] + public int? BackendNodeId + { + get; + set; + } + } + /// /// Fired when the node should be inspected. This happens after call to `setInspectMode` or when /// user manually inspects an element. @@ -26272,6 +26404,40 @@ namespace CefSharp.DevTools.Overlay private set; } } + + /// + /// Fired when user asks to show the Inspect panel. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class InspectPanelShowRequestedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Id of the node to show in the panel. + /// + [DataMember(Name = ("backendNodeId"), IsRequired = (true))] + public int BackendNodeId + { + get; + private set; + } + } + + /// + /// Fired when user asks to restore the Inspected Element floating window. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class InspectedElementWindowRestoredEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Id of the node to restore the floating window for. + /// + [DataMember(Name = ("backendNodeId"), IsRequired = (true))] + public int BackendNodeId + { + get; + private set; + } + } } namespace CefSharp.DevTools.PWA @@ -29861,6 +30027,11 @@ namespace CefSharp.DevTools.Page [EnumMember(Value = ("WebLocks"))] WebLocks, /// + /// WebLocksContention + /// + [EnumMember(Value = ("WebLocksContention"))] + WebLocksContention, + /// /// WebHID /// [EnumMember(Value = ("WebHID"))] @@ -34201,6 +34372,1154 @@ namespace CefSharp.DevTools.ServiceWorker } } +namespace CefSharp.DevTools.SmartCardEmulation +{ + /// + /// Indicates the PC/SC error code. + /// + /// This maps to: + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__ErrorCodes.html + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/secauthn/authentication-return-values + /// + public enum ResultCode + { + /// + /// success + /// + [EnumMember(Value = ("success"))] + Success, + /// + /// removed-card + /// + [EnumMember(Value = ("removed-card"))] + RemovedCard, + /// + /// reset-card + /// + [EnumMember(Value = ("reset-card"))] + ResetCard, + /// + /// unpowered-card + /// + [EnumMember(Value = ("unpowered-card"))] + UnpoweredCard, + /// + /// unresponsive-card + /// + [EnumMember(Value = ("unresponsive-card"))] + UnresponsiveCard, + /// + /// unsupported-card + /// + [EnumMember(Value = ("unsupported-card"))] + UnsupportedCard, + /// + /// reader-unavailable + /// + [EnumMember(Value = ("reader-unavailable"))] + ReaderUnavailable, + /// + /// sharing-violation + /// + [EnumMember(Value = ("sharing-violation"))] + SharingViolation, + /// + /// not-transacted + /// + [EnumMember(Value = ("not-transacted"))] + NotTransacted, + /// + /// no-smartcard + /// + [EnumMember(Value = ("no-smartcard"))] + NoSmartcard, + /// + /// proto-mismatch + /// + [EnumMember(Value = ("proto-mismatch"))] + ProtoMismatch, + /// + /// system-cancelled + /// + [EnumMember(Value = ("system-cancelled"))] + SystemCancelled, + /// + /// not-ready + /// + [EnumMember(Value = ("not-ready"))] + NotReady, + /// + /// cancelled + /// + [EnumMember(Value = ("cancelled"))] + Cancelled, + /// + /// insufficient-buffer + /// + [EnumMember(Value = ("insufficient-buffer"))] + InsufficientBuffer, + /// + /// invalid-handle + /// + [EnumMember(Value = ("invalid-handle"))] + InvalidHandle, + /// + /// invalid-parameter + /// + [EnumMember(Value = ("invalid-parameter"))] + InvalidParameter, + /// + /// invalid-value + /// + [EnumMember(Value = ("invalid-value"))] + InvalidValue, + /// + /// no-memory + /// + [EnumMember(Value = ("no-memory"))] + NoMemory, + /// + /// timeout + /// + [EnumMember(Value = ("timeout"))] + Timeout, + /// + /// unknown-reader + /// + [EnumMember(Value = ("unknown-reader"))] + UnknownReader, + /// + /// unsupported-feature + /// + [EnumMember(Value = ("unsupported-feature"))] + UnsupportedFeature, + /// + /// no-readers-available + /// + [EnumMember(Value = ("no-readers-available"))] + NoReadersAvailable, + /// + /// service-stopped + /// + [EnumMember(Value = ("service-stopped"))] + ServiceStopped, + /// + /// no-service + /// + [EnumMember(Value = ("no-service"))] + NoService, + /// + /// comm-error + /// + [EnumMember(Value = ("comm-error"))] + CommError, + /// + /// internal-error + /// + [EnumMember(Value = ("internal-error"))] + InternalError, + /// + /// server-too-busy + /// + [EnumMember(Value = ("server-too-busy"))] + ServerTooBusy, + /// + /// unexpected + /// + [EnumMember(Value = ("unexpected"))] + Unexpected, + /// + /// shutdown + /// + [EnumMember(Value = ("shutdown"))] + Shutdown, + /// + /// unknown-card + /// + [EnumMember(Value = ("unknown-card"))] + UnknownCard, + /// + /// unknown + /// + [EnumMember(Value = ("unknown"))] + Unknown + } + + /// + /// Maps to the |SCARD_SHARE_*| values. + /// + public enum ShareMode + { + /// + /// shared + /// + [EnumMember(Value = ("shared"))] + Shared, + /// + /// exclusive + /// + [EnumMember(Value = ("exclusive"))] + Exclusive, + /// + /// direct + /// + [EnumMember(Value = ("direct"))] + Direct + } + + /// + /// Indicates what the reader should do with the card. + /// + public enum Disposition + { + /// + /// leave-card + /// + [EnumMember(Value = ("leave-card"))] + LeaveCard, + /// + /// reset-card + /// + [EnumMember(Value = ("reset-card"))] + ResetCard, + /// + /// unpower-card + /// + [EnumMember(Value = ("unpower-card"))] + UnpowerCard, + /// + /// eject-card + /// + [EnumMember(Value = ("eject-card"))] + EjectCard + } + + /// + /// Maps to |SCARD_*| connection state values. + /// + public enum ConnectionState + { + /// + /// absent + /// + [EnumMember(Value = ("absent"))] + Absent, + /// + /// present + /// + [EnumMember(Value = ("present"))] + Present, + /// + /// swallowed + /// + [EnumMember(Value = ("swallowed"))] + Swallowed, + /// + /// powered + /// + [EnumMember(Value = ("powered"))] + Powered, + /// + /// negotiable + /// + [EnumMember(Value = ("negotiable"))] + Negotiable, + /// + /// specific + /// + [EnumMember(Value = ("specific"))] + Specific + } + + /// + /// Maps to the |SCARD_STATE_*| flags. + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class ReaderStateFlags : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Unaware + /// + [DataMember(Name = ("unaware"), IsRequired = (false))] + public bool? Unaware + { + get; + set; + } + + /// + /// Ignore + /// + [DataMember(Name = ("ignore"), IsRequired = (false))] + public bool? Ignore + { + get; + set; + } + + /// + /// Changed + /// + [DataMember(Name = ("changed"), IsRequired = (false))] + public bool? Changed + { + get; + set; + } + + /// + /// Unknown + /// + [DataMember(Name = ("unknown"), IsRequired = (false))] + public bool? Unknown + { + get; + set; + } + + /// + /// Unavailable + /// + [DataMember(Name = ("unavailable"), IsRequired = (false))] + public bool? Unavailable + { + get; + set; + } + + /// + /// Empty + /// + [DataMember(Name = ("empty"), IsRequired = (false))] + public bool? Empty + { + get; + set; + } + + /// + /// Present + /// + [DataMember(Name = ("present"), IsRequired = (false))] + public bool? Present + { + get; + set; + } + + /// + /// Exclusive + /// + [DataMember(Name = ("exclusive"), IsRequired = (false))] + public bool? Exclusive + { + get; + set; + } + + /// + /// Inuse + /// + [DataMember(Name = ("inuse"), IsRequired = (false))] + public bool? Inuse + { + get; + set; + } + + /// + /// Mute + /// + [DataMember(Name = ("mute"), IsRequired = (false))] + public bool? Mute + { + get; + set; + } + + /// + /// Unpowered + /// + [DataMember(Name = ("unpowered"), IsRequired = (false))] + public bool? Unpowered + { + get; + set; + } + } + + /// + /// Maps to the |SCARD_PROTOCOL_*| flags. + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class ProtocolSet : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// T0 + /// + [DataMember(Name = ("t0"), IsRequired = (false))] + public bool? T0 + { + get; + set; + } + + /// + /// T1 + /// + [DataMember(Name = ("t1"), IsRequired = (false))] + public bool? T1 + { + get; + set; + } + + /// + /// Raw + /// + [DataMember(Name = ("raw"), IsRequired = (false))] + public bool? Raw + { + get; + set; + } + } + + /// + /// Maps to the |SCARD_PROTOCOL_*| values. + /// + public enum Protocol + { + /// + /// t0 + /// + [EnumMember(Value = ("t0"))] + T0, + /// + /// t1 + /// + [EnumMember(Value = ("t1"))] + T1, + /// + /// raw + /// + [EnumMember(Value = ("raw"))] + Raw + } + + /// + /// ReaderStateIn + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class ReaderStateIn : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Reader + /// + [DataMember(Name = ("reader"), IsRequired = (true))] + public string Reader + { + get; + set; + } + + /// + /// CurrentState + /// + [DataMember(Name = ("currentState"), IsRequired = (true))] + public CefSharp.DevTools.SmartCardEmulation.ReaderStateFlags CurrentState + { + get; + set; + } + + /// + /// CurrentInsertionCount + /// + [DataMember(Name = ("currentInsertionCount"), IsRequired = (true))] + public int CurrentInsertionCount + { + get; + set; + } + } + + /// + /// ReaderStateOut + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class ReaderStateOut : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Reader + /// + [DataMember(Name = ("reader"), IsRequired = (true))] + public string Reader + { + get; + set; + } + + /// + /// EventState + /// + [DataMember(Name = ("eventState"), IsRequired = (true))] + public CefSharp.DevTools.SmartCardEmulation.ReaderStateFlags EventState + { + get; + set; + } + + /// + /// EventCount + /// + [DataMember(Name = ("eventCount"), IsRequired = (true))] + public int EventCount + { + get; + set; + } + + /// + /// Atr + /// + [DataMember(Name = ("atr"), IsRequired = (true))] + public byte[] Atr + { + get; + set; + } + } + + /// + /// Fired when |SCardEstablishContext| is called. + /// + /// This maps to: + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaa1b8970169fd4883a6dc4a8f43f19b67 + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardestablishcontext + /// + [System.Runtime.Serialization.DataContractAttribute] + public class EstablishContextRequestedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// RequestId + /// + [DataMember(Name = ("requestId"), IsRequired = (true))] + public string RequestId + { + get; + private set; + } + } + + /// + /// Fired when |SCardReleaseContext| is called. + /// + /// This maps to: + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga6aabcba7744c5c9419fdd6404f73a934 + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardreleasecontext + /// + [System.Runtime.Serialization.DataContractAttribute] + public class ReleaseContextRequestedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// RequestId + /// + [DataMember(Name = ("requestId"), IsRequired = (true))] + public string RequestId + { + get; + private set; + } + + /// + /// ContextId + /// + [DataMember(Name = ("contextId"), IsRequired = (true))] + public int ContextId + { + get; + private set; + } + } + + /// + /// Fired when |SCardListReaders| is called. + /// + /// This maps to: + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga93b07815789b3cf2629d439ecf20f0d9 + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardlistreadersa + /// + [System.Runtime.Serialization.DataContractAttribute] + public class ListReadersRequestedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// RequestId + /// + [DataMember(Name = ("requestId"), IsRequired = (true))] + public string RequestId + { + get; + private set; + } + + /// + /// ContextId + /// + [DataMember(Name = ("contextId"), IsRequired = (true))] + public int ContextId + { + get; + private set; + } + } + + /// + /// Fired when |SCardGetStatusChange| is called. Timeout is specified in milliseconds. + /// + /// This maps to: + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga33247d5d1257d59e55647c3bb717db24 + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardgetstatuschangea + /// + [System.Runtime.Serialization.DataContractAttribute] + public class GetStatusChangeRequestedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// RequestId + /// + [DataMember(Name = ("requestId"), IsRequired = (true))] + public string RequestId + { + get; + private set; + } + + /// + /// ContextId + /// + [DataMember(Name = ("contextId"), IsRequired = (true))] + public int ContextId + { + get; + private set; + } + + /// + /// ReaderStates + /// + [DataMember(Name = ("readerStates"), IsRequired = (true))] + public System.Collections.Generic.IList ReaderStates + { + get; + private set; + } + + /// + /// in milliseconds, if absent, it means "infinite" + /// + [DataMember(Name = ("timeout"), IsRequired = (false))] + public int? Timeout + { + get; + private set; + } + } + + /// + /// Fired when |SCardCancel| is called. + /// + /// This maps to: + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaacbbc0c6d6c0cbbeb4f4debf6fbeeee6 + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardcancel + /// + [System.Runtime.Serialization.DataContractAttribute] + public class CancelRequestedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// RequestId + /// + [DataMember(Name = ("requestId"), IsRequired = (true))] + public string RequestId + { + get; + private set; + } + + /// + /// ContextId + /// + [DataMember(Name = ("contextId"), IsRequired = (true))] + public int ContextId + { + get; + private set; + } + } + + /// + /// Fired when |SCardConnect| is called. + /// + /// This maps to: + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga4e515829752e0a8dbc4d630696a8d6a5 + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardconnecta + /// + [System.Runtime.Serialization.DataContractAttribute] + public class ConnectRequestedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// RequestId + /// + [DataMember(Name = ("requestId"), IsRequired = (true))] + public string RequestId + { + get; + private set; + } + + /// + /// ContextId + /// + [DataMember(Name = ("contextId"), IsRequired = (true))] + public int ContextId + { + get; + private set; + } + + /// + /// Reader + /// + [DataMember(Name = ("reader"), IsRequired = (true))] + public string Reader + { + get; + private set; + } + + /// + /// ShareMode + /// + public CefSharp.DevTools.SmartCardEmulation.ShareMode ShareMode + { + get + { + return (CefSharp.DevTools.SmartCardEmulation.ShareMode)(StringToEnum(typeof(CefSharp.DevTools.SmartCardEmulation.ShareMode), shareMode)); + } + + set + { + this.shareMode = (EnumToString(value)); + } + } + + /// + /// ShareMode + /// + [DataMember(Name = ("shareMode"), IsRequired = (true))] + internal string shareMode + { + get; + private set; + } + + /// + /// PreferredProtocols + /// + [DataMember(Name = ("preferredProtocols"), IsRequired = (true))] + public CefSharp.DevTools.SmartCardEmulation.ProtocolSet PreferredProtocols + { + get; + private set; + } + } + + /// + /// Fired when |SCardDisconnect| is called. + /// + /// This maps to: + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga4be198045c73ec0deb79e66c0ca1738a + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scarddisconnect + /// + [System.Runtime.Serialization.DataContractAttribute] + public class DisconnectRequestedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// RequestId + /// + [DataMember(Name = ("requestId"), IsRequired = (true))] + public string RequestId + { + get; + private set; + } + + /// + /// Handle + /// + [DataMember(Name = ("handle"), IsRequired = (true))] + public int Handle + { + get; + private set; + } + + /// + /// Disposition + /// + public CefSharp.DevTools.SmartCardEmulation.Disposition Disposition + { + get + { + return (CefSharp.DevTools.SmartCardEmulation.Disposition)(StringToEnum(typeof(CefSharp.DevTools.SmartCardEmulation.Disposition), disposition)); + } + + set + { + this.disposition = (EnumToString(value)); + } + } + + /// + /// Disposition + /// + [DataMember(Name = ("disposition"), IsRequired = (true))] + internal string disposition + { + get; + private set; + } + } + + /// + /// Fired when |SCardTransmit| is called. + /// + /// This maps to: + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga9a2d77242a271310269065e64633ab99 + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardtransmit + /// + [System.Runtime.Serialization.DataContractAttribute] + public class TransmitRequestedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// RequestId + /// + [DataMember(Name = ("requestId"), IsRequired = (true))] + public string RequestId + { + get; + private set; + } + + /// + /// Handle + /// + [DataMember(Name = ("handle"), IsRequired = (true))] + public int Handle + { + get; + private set; + } + + /// + /// Data + /// + [DataMember(Name = ("data"), IsRequired = (true))] + public byte[] Data + { + get; + private set; + } + + /// + /// Protocol + /// + public CefSharp.DevTools.SmartCardEmulation.Protocol? Protocol + { + get + { + return (CefSharp.DevTools.SmartCardEmulation.Protocol? )(StringToEnum(typeof(CefSharp.DevTools.SmartCardEmulation.Protocol? ), protocol)); + } + + set + { + this.protocol = (EnumToString(value)); + } + } + + /// + /// Protocol + /// + [DataMember(Name = ("protocol"), IsRequired = (false))] + internal string protocol + { + get; + private set; + } + } + + /// + /// Fired when |SCardControl| is called. + /// + /// This maps to: + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gac3454d4657110fd7f753b2d3d8f4e32f + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardcontrol + /// + [System.Runtime.Serialization.DataContractAttribute] + public class ControlRequestedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// RequestId + /// + [DataMember(Name = ("requestId"), IsRequired = (true))] + public string RequestId + { + get; + private set; + } + + /// + /// Handle + /// + [DataMember(Name = ("handle"), IsRequired = (true))] + public int Handle + { + get; + private set; + } + + /// + /// ControlCode + /// + [DataMember(Name = ("controlCode"), IsRequired = (true))] + public int ControlCode + { + get; + private set; + } + + /// + /// Data + /// + [DataMember(Name = ("data"), IsRequired = (true))] + public byte[] Data + { + get; + private set; + } + } + + /// + /// Fired when |SCardGetAttrib| is called. + /// + /// This maps to: + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaacfec51917255b7a25b94c5104961602 + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardgetattrib + /// + [System.Runtime.Serialization.DataContractAttribute] + public class GetAttribRequestedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// RequestId + /// + [DataMember(Name = ("requestId"), IsRequired = (true))] + public string RequestId + { + get; + private set; + } + + /// + /// Handle + /// + [DataMember(Name = ("handle"), IsRequired = (true))] + public int Handle + { + get; + private set; + } + + /// + /// AttribId + /// + [DataMember(Name = ("attribId"), IsRequired = (true))] + public int AttribId + { + get; + private set; + } + } + + /// + /// Fired when |SCardSetAttrib| is called. + /// + /// This maps to: + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga060f0038a4ddfd5dd2b8fadf3c3a2e4f + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardsetattrib + /// + [System.Runtime.Serialization.DataContractAttribute] + public class SetAttribRequestedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// RequestId + /// + [DataMember(Name = ("requestId"), IsRequired = (true))] + public string RequestId + { + get; + private set; + } + + /// + /// Handle + /// + [DataMember(Name = ("handle"), IsRequired = (true))] + public int Handle + { + get; + private set; + } + + /// + /// AttribId + /// + [DataMember(Name = ("attribId"), IsRequired = (true))] + public int AttribId + { + get; + private set; + } + + /// + /// Data + /// + [DataMember(Name = ("data"), IsRequired = (true))] + public byte[] Data + { + get; + private set; + } + } + + /// + /// Fired when |SCardStatus| is called. + /// + /// This maps to: + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gae49c3c894ad7ac12a5b896bde70d0382 + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardstatusa + /// + [System.Runtime.Serialization.DataContractAttribute] + public class StatusRequestedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// RequestId + /// + [DataMember(Name = ("requestId"), IsRequired = (true))] + public string RequestId + { + get; + private set; + } + + /// + /// Handle + /// + [DataMember(Name = ("handle"), IsRequired = (true))] + public int Handle + { + get; + private set; + } + } + + /// + /// Fired when |SCardBeginTransaction| is called. + /// + /// This maps to: + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaddb835dce01a0da1d6ca02d33ee7d861 + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardbegintransaction + /// + [System.Runtime.Serialization.DataContractAttribute] + public class BeginTransactionRequestedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// RequestId + /// + [DataMember(Name = ("requestId"), IsRequired = (true))] + public string RequestId + { + get; + private set; + } + + /// + /// Handle + /// + [DataMember(Name = ("handle"), IsRequired = (true))] + public int Handle + { + get; + private set; + } + } + + /// + /// Fired when |SCardEndTransaction| is called. + /// + /// This maps to: + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gae8742473b404363e5c587f570d7e2f3b + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardendtransaction + /// + [System.Runtime.Serialization.DataContractAttribute] + public class EndTransactionRequestedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// RequestId + /// + [DataMember(Name = ("requestId"), IsRequired = (true))] + public string RequestId + { + get; + private set; + } + + /// + /// Handle + /// + [DataMember(Name = ("handle"), IsRequired = (true))] + public int Handle + { + get; + private set; + } + + /// + /// Disposition + /// + public CefSharp.DevTools.SmartCardEmulation.Disposition Disposition + { + get + { + return (CefSharp.DevTools.SmartCardEmulation.Disposition)(StringToEnum(typeof(CefSharp.DevTools.SmartCardEmulation.Disposition), disposition)); + } + + set + { + this.disposition = (EnumToString(value)); + } + } + + /// + /// Disposition + /// + [DataMember(Name = ("disposition"), IsRequired = (true))] + internal string disposition + { + get; + private set; + } + } +} + namespace CefSharp.DevTools.Storage { /// @@ -47392,6 +48711,8 @@ namespace CefSharp.DevTools.CSS /// to the provided property syntax, the value is parsed using combined /// syntax as if null `propertyName` was provided. If the value cannot be /// resolved even then, return the provided value without any changes. + /// Note: this function currently does not resolve CSS random() function, + /// it returns unmodified random() function parts.` /// /// Cascade-dependent keywords (revert/revert-layer) do not work. /// Id of the node in whose context the expression is evaluated @@ -52390,7 +53711,25 @@ namespace CefSharp.DevTools.Extensions _client = (client); } - partial void ValidateLoadUnpacked(string path); + partial void ValidateTriggerAction(string id, string targetId); + /// + /// Runs an extension default action. + /// Available if the client is connected using the --remote-debugging-pipe + /// flag and the --enable-unsafe-extension-debugging flag is set. + /// + /// Extension id. + /// A tab target ID to trigger the default extension action on. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task TriggerActionAsync(string id, string targetId) + { + ValidateTriggerAction(id, targetId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("id", id); + dict.Add("targetId", targetId); + return _client.ExecuteDevToolsMethodAsync("Extensions.triggerAction", dict); + } + + partial void ValidateLoadUnpacked(string path, bool? enableInIncognito = null); /// /// Installs an unpacked extension from the filesystem similar to /// --load-extension CLI flags. Returns extension ID once the extension @@ -52399,12 +53738,18 @@ namespace CefSharp.DevTools.Extensions /// flag is set. /// /// Absolute file path. + /// Enable the extension in incognito /// returns System.Threading.Tasks.Task<LoadUnpackedResponse> - public System.Threading.Tasks.Task LoadUnpackedAsync(string path) + public System.Threading.Tasks.Task LoadUnpackedAsync(string path, bool? enableInIncognito = null) { - ValidateLoadUnpacked(path); + ValidateLoadUnpacked(path, enableInIncognito); var dict = new System.Collections.Generic.Dictionary(); dict.Add("path", path); + if (enableInIncognito.HasValue) + { + dict.Add("enableInIncognito", enableInIncognito.Value); + } + return _client.ExecuteDevToolsMethodAsync("Extensions.loadUnpacked", dict); } @@ -57105,7 +58450,7 @@ namespace CefSharp.DevTools.Network return _client.ExecuteDevToolsMethodAsync("Network.setCacheDisabled", dict); } - partial void ValidateSetCookie(string name, string value, string url = null, string domain = null, string path = null, bool? secure = null, bool? httpOnly = null, CefSharp.DevTools.Network.CookieSameSite? sameSite = null, double? expires = null, CefSharp.DevTools.Network.CookiePriority? priority = null, bool? sameParty = null, CefSharp.DevTools.Network.CookieSourceScheme? sourceScheme = null, int? sourcePort = null, CefSharp.DevTools.Network.CookiePartitionKey partitionKey = null); + partial void ValidateSetCookie(string name, string value, string url = null, string domain = null, string path = null, bool? secure = null, bool? httpOnly = null, CefSharp.DevTools.Network.CookieSameSite? sameSite = null, double? expires = null, CefSharp.DevTools.Network.CookiePriority? priority = null, CefSharp.DevTools.Network.CookieSourceScheme? sourceScheme = null, int? sourcePort = null, CefSharp.DevTools.Network.CookiePartitionKey partitionKey = null); /// /// Sets a cookie with the given cookie data; may overwrite equivalent cookies if they exist. /// @@ -57119,14 +58464,13 @@ namespace CefSharp.DevTools.Network /// Cookie SameSite type. /// Cookie expiration date, session cookie if not set /// Cookie Priority type. - /// True if cookie is SameParty. /// Cookie source scheme type. /// 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. /// Cookie partition key. If not set, the cookie will be set as not partitioned. /// returns System.Threading.Tasks.Task<SetCookieResponse> - public System.Threading.Tasks.Task SetCookieAsync(string name, string value, string url = null, string domain = null, string path = null, bool? secure = null, bool? httpOnly = null, CefSharp.DevTools.Network.CookieSameSite? sameSite = null, double? expires = null, CefSharp.DevTools.Network.CookiePriority? priority = null, bool? sameParty = null, CefSharp.DevTools.Network.CookieSourceScheme? sourceScheme = null, int? sourcePort = null, CefSharp.DevTools.Network.CookiePartitionKey partitionKey = null) + public System.Threading.Tasks.Task SetCookieAsync(string name, string value, string url = null, string domain = null, string path = null, bool? secure = null, bool? httpOnly = null, CefSharp.DevTools.Network.CookieSameSite? sameSite = null, double? expires = null, CefSharp.DevTools.Network.CookiePriority? priority = null, CefSharp.DevTools.Network.CookieSourceScheme? sourceScheme = null, int? sourcePort = null, CefSharp.DevTools.Network.CookiePartitionKey partitionKey = null) { - ValidateSetCookie(name, value, url, domain, path, secure, httpOnly, sameSite, expires, priority, sameParty, sourceScheme, sourcePort, partitionKey); + ValidateSetCookie(name, value, url, domain, path, secure, httpOnly, sameSite, expires, priority, sourceScheme, sourcePort, partitionKey); var dict = new System.Collections.Generic.Dictionary(); dict.Add("name", name); dict.Add("value", value); @@ -57170,11 +58514,6 @@ namespace CefSharp.DevTools.Network dict.Add("priority", EnumToString(priority)); } - if (sameParty.HasValue) - { - dict.Add("sameParty", sameParty.Value); - } - if (sourceScheme.HasValue) { dict.Add("sourceScheme", EnumToString(sourceScheme)); @@ -57538,6 +58877,38 @@ namespace CefSharp.DevTools.Overlay } } + /// + /// Fired when user asks to show the Inspect panel. + /// + public event System.EventHandler InspectPanelShowRequested + { + add + { + _client.AddEventHandler("Overlay.inspectPanelShowRequested", value); + } + + remove + { + _client.RemoveEventHandler("Overlay.inspectPanelShowRequested", value); + } + } + + /// + /// Fired when user asks to restore the Inspected Element floating window. + /// + public event System.EventHandler InspectedElementWindowRestored + { + add + { + _client.AddEventHandler("Overlay.inspectedElementWindowRestored", value); + } + + remove + { + _client.RemoveEventHandler("Overlay.inspectedElementWindowRestored", value); + } + } + /// /// Fired when user cancels the inspect mode. /// @@ -57920,6 +59291,20 @@ namespace CefSharp.DevTools.Overlay return _client.ExecuteDevToolsMethodAsync("Overlay.setShowContainerQueryOverlays", dict); } + partial void ValidateSetShowInspectedElementAnchor(CefSharp.DevTools.Overlay.InspectedElementAnchorConfig inspectedElementAnchorConfig); + /// + /// SetShowInspectedElementAnchor + /// + /// Node identifier for which to show an anchor for. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task SetShowInspectedElementAnchorAsync(CefSharp.DevTools.Overlay.InspectedElementAnchorConfig inspectedElementAnchorConfig) + { + ValidateSetShowInspectedElementAnchor(inspectedElementAnchorConfig); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("inspectedElementAnchorConfig", inspectedElementAnchorConfig.ToDictionary()); + return _client.ExecuteDevToolsMethodAsync("Overlay.setShowInspectedElementAnchor", dict); + } + partial void ValidateSetShowPaintRects(bool result); /// /// Requests that backend shows paint rectangles @@ -61268,6 +62653,560 @@ namespace CefSharp.DevTools.ServiceWorker } } +namespace CefSharp.DevTools.SmartCardEmulation +{ + using System.Linq; + + /// + /// SmartCardEmulation + /// + public partial class SmartCardEmulationClient : DevToolsDomainBase + { + private CefSharp.DevTools.IDevToolsClient _client; + /// + /// SmartCardEmulation + /// + /// DevToolsClient + public SmartCardEmulationClient(CefSharp.DevTools.IDevToolsClient client) + { + _client = (client); + } + + /// + /// Fired when |SCardEstablishContext| is called. + /// + /// This maps to: + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaa1b8970169fd4883a6dc4a8f43f19b67 + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardestablishcontext + /// + public event System.EventHandler EstablishContextRequested + { + add + { + _client.AddEventHandler("SmartCardEmulation.establishContextRequested", value); + } + + remove + { + _client.RemoveEventHandler("SmartCardEmulation.establishContextRequested", value); + } + } + + /// + /// Fired when |SCardReleaseContext| is called. + /// + /// This maps to: + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga6aabcba7744c5c9419fdd6404f73a934 + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardreleasecontext + /// + public event System.EventHandler ReleaseContextRequested + { + add + { + _client.AddEventHandler("SmartCardEmulation.releaseContextRequested", value); + } + + remove + { + _client.RemoveEventHandler("SmartCardEmulation.releaseContextRequested", value); + } + } + + /// + /// Fired when |SCardListReaders| is called. + /// + /// This maps to: + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga93b07815789b3cf2629d439ecf20f0d9 + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardlistreadersa + /// + public event System.EventHandler ListReadersRequested + { + add + { + _client.AddEventHandler("SmartCardEmulation.listReadersRequested", value); + } + + remove + { + _client.RemoveEventHandler("SmartCardEmulation.listReadersRequested", value); + } + } + + /// + /// Fired when |SCardGetStatusChange| is called. Timeout is specified in milliseconds. + /// + /// This maps to: + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga33247d5d1257d59e55647c3bb717db24 + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardgetstatuschangea + /// + public event System.EventHandler GetStatusChangeRequested + { + add + { + _client.AddEventHandler("SmartCardEmulation.getStatusChangeRequested", value); + } + + remove + { + _client.RemoveEventHandler("SmartCardEmulation.getStatusChangeRequested", value); + } + } + + /// + /// Fired when |SCardCancel| is called. + /// + /// This maps to: + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaacbbc0c6d6c0cbbeb4f4debf6fbeeee6 + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardcancel + /// + public event System.EventHandler CancelRequested + { + add + { + _client.AddEventHandler("SmartCardEmulation.cancelRequested", value); + } + + remove + { + _client.RemoveEventHandler("SmartCardEmulation.cancelRequested", value); + } + } + + /// + /// Fired when |SCardConnect| is called. + /// + /// This maps to: + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga4e515829752e0a8dbc4d630696a8d6a5 + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardconnecta + /// + public event System.EventHandler ConnectRequested + { + add + { + _client.AddEventHandler("SmartCardEmulation.connectRequested", value); + } + + remove + { + _client.RemoveEventHandler("SmartCardEmulation.connectRequested", value); + } + } + + /// + /// Fired when |SCardDisconnect| is called. + /// + /// This maps to: + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga4be198045c73ec0deb79e66c0ca1738a + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scarddisconnect + /// + public event System.EventHandler DisconnectRequested + { + add + { + _client.AddEventHandler("SmartCardEmulation.disconnectRequested", value); + } + + remove + { + _client.RemoveEventHandler("SmartCardEmulation.disconnectRequested", value); + } + } + + /// + /// Fired when |SCardTransmit| is called. + /// + /// This maps to: + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga9a2d77242a271310269065e64633ab99 + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardtransmit + /// + public event System.EventHandler TransmitRequested + { + add + { + _client.AddEventHandler("SmartCardEmulation.transmitRequested", value); + } + + remove + { + _client.RemoveEventHandler("SmartCardEmulation.transmitRequested", value); + } + } + + /// + /// Fired when |SCardControl| is called. + /// + /// This maps to: + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gac3454d4657110fd7f753b2d3d8f4e32f + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardcontrol + /// + public event System.EventHandler ControlRequested + { + add + { + _client.AddEventHandler("SmartCardEmulation.controlRequested", value); + } + + remove + { + _client.RemoveEventHandler("SmartCardEmulation.controlRequested", value); + } + } + + /// + /// Fired when |SCardGetAttrib| is called. + /// + /// This maps to: + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaacfec51917255b7a25b94c5104961602 + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardgetattrib + /// + public event System.EventHandler GetAttribRequested + { + add + { + _client.AddEventHandler("SmartCardEmulation.getAttribRequested", value); + } + + remove + { + _client.RemoveEventHandler("SmartCardEmulation.getAttribRequested", value); + } + } + + /// + /// Fired when |SCardSetAttrib| is called. + /// + /// This maps to: + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga060f0038a4ddfd5dd2b8fadf3c3a2e4f + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardsetattrib + /// + public event System.EventHandler SetAttribRequested + { + add + { + _client.AddEventHandler("SmartCardEmulation.setAttribRequested", value); + } + + remove + { + _client.RemoveEventHandler("SmartCardEmulation.setAttribRequested", value); + } + } + + /// + /// Fired when |SCardStatus| is called. + /// + /// This maps to: + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gae49c3c894ad7ac12a5b896bde70d0382 + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardstatusa + /// + public event System.EventHandler StatusRequested + { + add + { + _client.AddEventHandler("SmartCardEmulation.statusRequested", value); + } + + remove + { + _client.RemoveEventHandler("SmartCardEmulation.statusRequested", value); + } + } + + /// + /// Fired when |SCardBeginTransaction| is called. + /// + /// This maps to: + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaddb835dce01a0da1d6ca02d33ee7d861 + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardbegintransaction + /// + public event System.EventHandler BeginTransactionRequested + { + add + { + _client.AddEventHandler("SmartCardEmulation.beginTransactionRequested", value); + } + + remove + { + _client.RemoveEventHandler("SmartCardEmulation.beginTransactionRequested", value); + } + } + + /// + /// Fired when |SCardEndTransaction| is called. + /// + /// This maps to: + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gae8742473b404363e5c587f570d7e2f3b + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardendtransaction + /// + public event System.EventHandler EndTransactionRequested + { + add + { + _client.AddEventHandler("SmartCardEmulation.endTransactionRequested", value); + } + + remove + { + _client.RemoveEventHandler("SmartCardEmulation.endTransactionRequested", value); + } + } + + /// + /// Enables the |SmartCardEmulation| domain. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task EnableAsync() + { + System.Collections.Generic.Dictionary dict = null; + return _client.ExecuteDevToolsMethodAsync("SmartCardEmulation.enable", dict); + } + + /// + /// Disables the |SmartCardEmulation| domain. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task DisableAsync() + { + System.Collections.Generic.Dictionary dict = null; + return _client.ExecuteDevToolsMethodAsync("SmartCardEmulation.disable", dict); + } + + partial void ValidateReportEstablishContextResult(string requestId, int contextId); + /// + /// Reports the successful result of a |SCardEstablishContext| call. + /// + /// This maps to: + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaa1b8970169fd4883a6dc4a8f43f19b67 + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardestablishcontext + /// + /// requestId + /// contextId + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task ReportEstablishContextResultAsync(string requestId, int contextId) + { + ValidateReportEstablishContextResult(requestId, contextId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("requestId", requestId); + dict.Add("contextId", contextId); + return _client.ExecuteDevToolsMethodAsync("SmartCardEmulation.reportEstablishContextResult", dict); + } + + partial void ValidateReportReleaseContextResult(string requestId); + /// + /// Reports the successful result of a |SCardReleaseContext| call. + /// + /// This maps to: + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga6aabcba7744c5c9419fdd6404f73a934 + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardreleasecontext + /// + /// requestId + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task ReportReleaseContextResultAsync(string requestId) + { + ValidateReportReleaseContextResult(requestId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("requestId", requestId); + return _client.ExecuteDevToolsMethodAsync("SmartCardEmulation.reportReleaseContextResult", dict); + } + + partial void ValidateReportListReadersResult(string requestId, string[] readers); + /// + /// Reports the successful result of a |SCardListReaders| call. + /// + /// This maps to: + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga93b07815789b3cf2629d439ecf20f0d9 + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardlistreadersa + /// + /// requestId + /// readers + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task ReportListReadersResultAsync(string requestId, string[] readers) + { + ValidateReportListReadersResult(requestId, readers); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("requestId", requestId); + dict.Add("readers", readers); + return _client.ExecuteDevToolsMethodAsync("SmartCardEmulation.reportListReadersResult", dict); + } + + partial void ValidateReportGetStatusChangeResult(string requestId, System.Collections.Generic.IList readerStates); + /// + /// Reports the successful result of a |SCardGetStatusChange| call. + /// + /// This maps to: + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga33247d5d1257d59e55647c3bb717db24 + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardgetstatuschangea + /// + /// requestId + /// readerStates + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task ReportGetStatusChangeResultAsync(string requestId, System.Collections.Generic.IList readerStates) + { + ValidateReportGetStatusChangeResult(requestId, readerStates); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("requestId", requestId); + dict.Add("readerStates", readerStates.Select(x => x.ToDictionary())); + return _client.ExecuteDevToolsMethodAsync("SmartCardEmulation.reportGetStatusChangeResult", dict); + } + + partial void ValidateReportBeginTransactionResult(string requestId, int handle); + /// + /// Reports the result of a |SCardBeginTransaction| call. + /// On success, this creates a new transaction object. + /// + /// This maps to: + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaddb835dce01a0da1d6ca02d33ee7d861 + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardbegintransaction + /// + /// requestId + /// handle + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task ReportBeginTransactionResultAsync(string requestId, int handle) + { + ValidateReportBeginTransactionResult(requestId, handle); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("requestId", requestId); + dict.Add("handle", handle); + return _client.ExecuteDevToolsMethodAsync("SmartCardEmulation.reportBeginTransactionResult", dict); + } + + partial void ValidateReportPlainResult(string requestId); + /// + /// Reports the successful result of a call that returns only a result code. + /// Used for: |SCardCancel|, |SCardDisconnect|, |SCardSetAttrib|, |SCardEndTransaction|. + /// + /// This maps to: + /// 1. SCardCancel + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaacbbc0c6d6c0cbbeb4f4debf6fbeeee6 + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardcancel + /// + /// 2. SCardDisconnect + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga4be198045c73ec0deb79e66c0ca1738a + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scarddisconnect + /// + /// 3. SCardSetAttrib + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga060f0038a4ddfd5dd2b8fadf3c3a2e4f + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardsetattrib + /// + /// 4. SCardEndTransaction + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gae8742473b404363e5c587f570d7e2f3b + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardendtransaction + /// + /// requestId + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task ReportPlainResultAsync(string requestId) + { + ValidateReportPlainResult(requestId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("requestId", requestId); + return _client.ExecuteDevToolsMethodAsync("SmartCardEmulation.reportPlainResult", dict); + } + + partial void ValidateReportConnectResult(string requestId, int handle, CefSharp.DevTools.SmartCardEmulation.Protocol? activeProtocol = null); + /// + /// Reports the successful result of a |SCardConnect| call. + /// + /// This maps to: + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga4e515829752e0a8dbc4d630696a8d6a5 + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardconnecta + /// + /// requestId + /// handle + /// activeProtocol + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task ReportConnectResultAsync(string requestId, int handle, CefSharp.DevTools.SmartCardEmulation.Protocol? activeProtocol = null) + { + ValidateReportConnectResult(requestId, handle, activeProtocol); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("requestId", requestId); + dict.Add("handle", handle); + if (activeProtocol.HasValue) + { + dict.Add("activeProtocol", EnumToString(activeProtocol)); + } + + return _client.ExecuteDevToolsMethodAsync("SmartCardEmulation.reportConnectResult", dict); + } + + partial void ValidateReportDataResult(string requestId, byte[] data); + /// + /// Reports the successful result of a call that sends back data on success. + /// Used for |SCardTransmit|, |SCardControl|, and |SCardGetAttrib|. + /// + /// This maps to: + /// 1. SCardTransmit + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga9a2d77242a271310269065e64633ab99 + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardtransmit + /// + /// 2. SCardControl + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gac3454d4657110fd7f753b2d3d8f4e32f + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardcontrol + /// + /// 3. SCardGetAttrib + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaacfec51917255b7a25b94c5104961602 + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardgetattrib + /// + /// requestId + /// data + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task ReportDataResultAsync(string requestId, byte[] data) + { + ValidateReportDataResult(requestId, data); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("requestId", requestId); + dict.Add("data", ToBase64String(data)); + return _client.ExecuteDevToolsMethodAsync("SmartCardEmulation.reportDataResult", dict); + } + + partial void ValidateReportStatusResult(string requestId, string readerName, CefSharp.DevTools.SmartCardEmulation.ConnectionState state, byte[] atr, CefSharp.DevTools.SmartCardEmulation.Protocol? protocol = null); + /// + /// Reports the successful result of a |SCardStatus| call. + /// + /// This maps to: + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gae49c3c894ad7ac12a5b896bde70d0382 + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardstatusa + /// + /// requestId + /// readerName + /// state + /// atr + /// protocol + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task ReportStatusResultAsync(string requestId, string readerName, CefSharp.DevTools.SmartCardEmulation.ConnectionState state, byte[] atr, CefSharp.DevTools.SmartCardEmulation.Protocol? protocol = null) + { + ValidateReportStatusResult(requestId, readerName, state, atr, protocol); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("requestId", requestId); + dict.Add("readerName", readerName); + dict.Add("state", EnumToString(state)); + dict.Add("atr", ToBase64String(atr)); + if (protocol.HasValue) + { + dict.Add("protocol", EnumToString(protocol)); + } + + return _client.ExecuteDevToolsMethodAsync("SmartCardEmulation.reportStatusResult", dict); + } + + partial void ValidateReportError(string requestId, CefSharp.DevTools.SmartCardEmulation.ResultCode resultCode); + /// + /// Reports an error result for the given request. + /// + /// requestId + /// resultCode + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task ReportErrorAsync(string requestId, CefSharp.DevTools.SmartCardEmulation.ResultCode resultCode) + { + ValidateReportError(requestId, resultCode); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("requestId", requestId); + dict.Add("resultCode", EnumToString(resultCode)); + return _client.ExecuteDevToolsMethodAsync("SmartCardEmulation.reportError", dict); + } + } +} + namespace CefSharp.DevTools.Storage { /// @@ -63249,7 +65188,7 @@ namespace CefSharp.DevTools.Target return _client.ExecuteDevToolsMethodAsync("Target.getBrowserContexts", dict); } - partial void ValidateCreateTarget(string url, int? left = null, int? top = null, int? width = null, int? height = null, CefSharp.DevTools.Target.WindowState? windowState = null, string browserContextId = null, bool? enableBeginFrameControl = null, bool? newWindow = null, bool? background = null, bool? forTab = null, bool? hidden = null); + partial void ValidateCreateTarget(string url, int? left = null, int? top = null, int? width = null, int? height = null, CefSharp.DevTools.Target.WindowState? windowState = null, string browserContextId = null, bool? enableBeginFrameControl = null, bool? newWindow = null, bool? background = null, bool? forTab = null, bool? hidden = null, bool? focus = null); /// /// Creates a new page. /// @@ -63265,10 +65204,11 @@ namespace CefSharp.DevTools.Target /// Whether to create the target in background or foreground (false by default, not supportedby headless shell). /// Whether to create the target of type "tab". /// Whether to create a hidden target. The hidden target is observable via protocol, but notpresent in the tab UI strip. Cannot be created with `forTab: true`, `newWindow: true` or`background: false`. The life-time of the tab is limited to the life-time of the session. + /// If specified, the option is used to determine if the new target shouldbe focused or not. By default, the focus behavior depends on thevalue of the background field. For example, background=false and focus=falsewill result in the target tab being opened but the browser window remainunchanged (if it was in the background, it will remain in the background)and background=false with focus=undefined will result in the window being focused.Using background: true and focus: true is not supported and will result in an error. /// returns System.Threading.Tasks.Task<CreateTargetResponse> - public System.Threading.Tasks.Task CreateTargetAsync(string url, int? left = null, int? top = null, int? width = null, int? height = null, CefSharp.DevTools.Target.WindowState? windowState = null, string browserContextId = null, bool? enableBeginFrameControl = null, bool? newWindow = null, bool? background = null, bool? forTab = null, bool? hidden = null) + public System.Threading.Tasks.Task CreateTargetAsync(string url, int? left = null, int? top = null, int? width = null, int? height = null, CefSharp.DevTools.Target.WindowState? windowState = null, string browserContextId = null, bool? enableBeginFrameControl = null, bool? newWindow = null, bool? background = null, bool? forTab = null, bool? hidden = null, bool? focus = null) { - ValidateCreateTarget(url, left, top, width, height, windowState, browserContextId, enableBeginFrameControl, newWindow, background, forTab, hidden); + ValidateCreateTarget(url, left, top, width, height, windowState, browserContextId, enableBeginFrameControl, newWindow, background, forTab, hidden, focus); var dict = new System.Collections.Generic.Dictionary(); dict.Add("url", url); if (left.HasValue) @@ -63326,6 +65266,11 @@ namespace CefSharp.DevTools.Target dict.Add("hidden", hidden.Value); } + if (focus.HasValue) + { + dict.Add("focus", focus.Value); + } + return _client.ExecuteDevToolsMethodAsync("Target.createTarget", dict); } @@ -68767,6 +70712,23 @@ namespace CefSharp.DevTools } } + private CefSharp.DevTools.SmartCardEmulation.SmartCardEmulationClient _SmartCardEmulation; + /// + /// SmartCardEmulation + /// + public CefSharp.DevTools.SmartCardEmulation.SmartCardEmulationClient SmartCardEmulation + { + get + { + if ((_SmartCardEmulation) == (null)) + { + _SmartCardEmulation = (new CefSharp.DevTools.SmartCardEmulation.SmartCardEmulationClient(this)); + } + + return _SmartCardEmulation; + } + } + private CefSharp.DevTools.Storage.StorageClient _Storage; /// /// Storage diff --git a/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs b/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs index b03e698de..96d62b22a 100644 --- a/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs +++ b/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs @@ -3,7 +3,7 @@ // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. // // **This code was generated by a tool, do not change directly** -// CHROMIUM VERSION 145.0.7632.76 +// CHROMIUM VERSION 146.0.7680.165 using System.Text.Json.Serialization; namespace CefSharp.DevTools.Accessibility @@ -1435,16 +1435,6 @@ namespace CefSharp.DevTools.Audits [JsonPropertyName("ExcludeSameSiteStrict")] ExcludeSameSiteStrict, /// - /// ExcludeInvalidSameParty - /// - [JsonPropertyName("ExcludeInvalidSameParty")] - ExcludeInvalidSameParty, - /// - /// ExcludeSamePartyCrossPartyContext - /// - [JsonPropertyName("ExcludeSamePartyCrossPartyContext")] - ExcludeSamePartyCrossPartyContext, - /// /// ExcludeDomainNonASCII /// [JsonPropertyName("ExcludeDomainNonASCII")] @@ -2896,6 +2886,43 @@ namespace CefSharp.DevTools.Audits IncorrectDigestLength } + /// + /// ConnectionAllowlistError + /// + public enum ConnectionAllowlistError + { + /// + /// InvalidHeader + /// + [JsonPropertyName("InvalidHeader")] + InvalidHeader, + /// + /// MoreThanOneList + /// + [JsonPropertyName("MoreThanOneList")] + MoreThanOneList, + /// + /// ItemNotInnerList + /// + [JsonPropertyName("ItemNotInnerList")] + ItemNotInnerList, + /// + /// InvalidAllowlistItemType + /// + [JsonPropertyName("InvalidAllowlistItemType")] + InvalidAllowlistItemType, + /// + /// ReportingEndpointNotToken + /// + [JsonPropertyName("ReportingEndpointNotToken")] + ReportingEndpointNotToken, + /// + /// InvalidUrlPattern + /// + [JsonPropertyName("InvalidUrlPattern")] + InvalidUrlPattern + } + /// /// Details for issues around "Attribution Reporting API" usage. /// Explainer: https://github.com/WICG/attribution-reporting-api @@ -3134,6 +3161,33 @@ namespace CefSharp.DevTools.Audits } } + /// + /// ConnectionAllowlistIssueDetails + /// + public partial class ConnectionAllowlistIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Error + /// + [JsonPropertyName("error")] + public CefSharp.DevTools.Audits.ConnectionAllowlistError Error + { + get; + set; + } + + /// + /// Request + /// + [JsonPropertyName("request")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.Audits.AffectedRequest Request + { + get; + set; + } + } + /// /// GenericIssueErrorType /// @@ -4429,6 +4483,11 @@ namespace CefSharp.DevTools.Audits [JsonPropertyName("UnencodedDigestIssue")] UnencodedDigestIssue, /// + /// ConnectionAllowlistIssue + /// + [JsonPropertyName("ConnectionAllowlistIssue")] + ConnectionAllowlistIssue, + /// /// UserReidentificationIssue /// [JsonPropertyName("UserReidentificationIssue")] @@ -4697,6 +4756,16 @@ namespace CefSharp.DevTools.Audits set; } + /// + /// ConnectionAllowlistIssueDetails + /// + [JsonPropertyName("connectionAllowlistIssueDetails")] + public CefSharp.DevTools.Audits.ConnectionAllowlistIssueDetails ConnectionAllowlistIssueDetails + { + get; + set; + } + /// /// UserReidentificationIssueDetails /// @@ -16965,16 +17034,6 @@ namespace CefSharp.DevTools.Network [JsonPropertyName("PreflightInvalidAllowExternal")] PreflightInvalidAllowExternal, /// - /// PreflightMissingAllowPrivateNetwork - /// - [JsonPropertyName("PreflightMissingAllowPrivateNetwork")] - PreflightMissingAllowPrivateNetwork, - /// - /// PreflightInvalidAllowPrivateNetwork - /// - [JsonPropertyName("PreflightInvalidAllowPrivateNetwork")] - PreflightInvalidAllowPrivateNetwork, - /// /// InvalidAllowMethodsPreflightResponse /// [JsonPropertyName("InvalidAllowMethodsPreflightResponse")] @@ -17000,46 +17059,21 @@ namespace CefSharp.DevTools.Network [JsonPropertyName("RedirectContainsCredentials")] RedirectContainsCredentials, /// - /// InsecurePrivateNetwork + /// InsecureLocalNetwork /// - [JsonPropertyName("InsecurePrivateNetwork")] - InsecurePrivateNetwork, + [JsonPropertyName("InsecureLocalNetwork")] + InsecureLocalNetwork, /// - /// InvalidPrivateNetworkAccess + /// InvalidLocalNetworkAccess /// - [JsonPropertyName("InvalidPrivateNetworkAccess")] - InvalidPrivateNetworkAccess, - /// - /// UnexpectedPrivateNetworkAccess - /// - [JsonPropertyName("UnexpectedPrivateNetworkAccess")] - UnexpectedPrivateNetworkAccess, + [JsonPropertyName("InvalidLocalNetworkAccess")] + InvalidLocalNetworkAccess, /// /// NoCorsRedirectModeNotFollow /// [JsonPropertyName("NoCorsRedirectModeNotFollow")] NoCorsRedirectModeNotFollow, /// - /// PreflightMissingPrivateNetworkAccessId - /// - [JsonPropertyName("PreflightMissingPrivateNetworkAccessId")] - PreflightMissingPrivateNetworkAccessId, - /// - /// PreflightMissingPrivateNetworkAccessName - /// - [JsonPropertyName("PreflightMissingPrivateNetworkAccessName")] - PreflightMissingPrivateNetworkAccessName, - /// - /// PrivateNetworkAccessPermissionUnavailable - /// - [JsonPropertyName("PrivateNetworkAccessPermissionUnavailable")] - PrivateNetworkAccessPermissionUnavailable, - /// - /// PrivateNetworkAccessPermissionDenied - /// - [JsonPropertyName("PrivateNetworkAccessPermissionDenied")] - PrivateNetworkAccessPermissionDenied, - /// /// LocalNetworkAccessPermissionDenied /// [JsonPropertyName("LocalNetworkAccessPermissionDenied")] @@ -18014,16 +18048,6 @@ namespace CefSharp.DevTools.Network set; } - /// - /// True if cookie is SameParty. - /// - [JsonPropertyName("sameParty")] - public bool SameParty - { - get; - set; - } - /// /// Cookie source scheme type. /// @@ -18158,16 +18182,6 @@ namespace CefSharp.DevTools.Network [JsonPropertyName("SchemefulSameSiteUnspecifiedTreatedAsLax")] SchemefulSameSiteUnspecifiedTreatedAsLax, /// - /// SamePartyFromCrossPartyContext - /// - [JsonPropertyName("SamePartyFromCrossPartyContext")] - SamePartyFromCrossPartyContext, - /// - /// SamePartyConflictsWithOtherAttributes - /// - [JsonPropertyName("SamePartyConflictsWithOtherAttributes")] - SamePartyConflictsWithOtherAttributes, - /// /// NameValuePairExceedsMaxSize /// [JsonPropertyName("NameValuePairExceedsMaxSize")] @@ -18260,11 +18274,6 @@ namespace CefSharp.DevTools.Network [JsonPropertyName("SchemefulSameSiteUnspecifiedTreatedAsLax")] SchemefulSameSiteUnspecifiedTreatedAsLax, /// - /// SamePartyFromCrossPartyContext - /// - [JsonPropertyName("SamePartyFromCrossPartyContext")] - SamePartyFromCrossPartyContext, - /// /// NameValuePairExceedsMaxSize /// [JsonPropertyName("NameValuePairExceedsMaxSize")] @@ -18574,16 +18583,6 @@ namespace CefSharp.DevTools.Network set; } - /// - /// True if cookie is SameParty. - /// - [JsonPropertyName("sameParty")] - public bool? SameParty - { - get; - set; - } - /// /// Cookie source scheme type. /// @@ -19459,9 +19458,9 @@ namespace CefSharp.DevTools.Network } /// - /// PrivateNetworkRequestPolicy + /// LocalNetworkAccessRequestPolicy /// - public enum PrivateNetworkRequestPolicy + public enum LocalNetworkAccessRequestPolicy { /// /// Allow @@ -19561,10 +19560,10 @@ namespace CefSharp.DevTools.Network } /// - /// PrivateNetworkRequestPolicy + /// LocalNetworkAccessRequestPolicy /// - [JsonPropertyName("privateNetworkRequestPolicy")] - public CefSharp.DevTools.Network.PrivateNetworkRequestPolicy PrivateNetworkRequestPolicy + [JsonPropertyName("localNetworkAccessRequestPolicy")] + public CefSharp.DevTools.Network.LocalNetworkAccessRequestPolicy LocalNetworkAccessRequestPolicy { get; set; @@ -20001,6 +20000,70 @@ namespace CefSharp.DevTools.Network } } + /// + /// How the session was used (or not used). + /// + public enum DeviceBoundSessionWithUsageUsage + { + /// + /// NotInScope + /// + [JsonPropertyName("NotInScope")] + NotInScope, + /// + /// InScopeRefreshNotYetNeeded + /// + [JsonPropertyName("InScopeRefreshNotYetNeeded")] + InScopeRefreshNotYetNeeded, + /// + /// InScopeRefreshNotAllowed + /// + [JsonPropertyName("InScopeRefreshNotAllowed")] + InScopeRefreshNotAllowed, + /// + /// ProactiveRefreshNotPossible + /// + [JsonPropertyName("ProactiveRefreshNotPossible")] + ProactiveRefreshNotPossible, + /// + /// ProactiveRefreshAttempted + /// + [JsonPropertyName("ProactiveRefreshAttempted")] + ProactiveRefreshAttempted, + /// + /// Deferred + /// + [JsonPropertyName("Deferred")] + Deferred + } + + /// + /// How a device bound session was used during a request. + /// + public partial class DeviceBoundSessionWithUsage : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// The key for the session. + /// + [JsonPropertyName("sessionKey")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.Network.DeviceBoundSessionKey SessionKey + { + get; + set; + } + + /// + /// How the session was used (or not used). + /// + [JsonPropertyName("usage")] + public CefSharp.DevTools.Network.DeviceBoundSessionWithUsageUsage Usage + { + get; + set; + } + } + /// /// A device bound session's cookie craving. /// @@ -22745,6 +22808,17 @@ namespace CefSharp.DevTools.Network private set; } + /// + /// How the request site's device bound sessions were used during this request. + /// + [JsonInclude] + [JsonPropertyName("deviceBoundSessionUsages")] + public System.Collections.Generic.IList DeviceBoundSessionUsages + { + get; + private set; + } + /// /// The client security state set for the request. /// @@ -24290,6 +24364,32 @@ namespace CefSharp.DevTools.Overlay None } + /// + /// InspectedElementAnchorConfig + /// + public partial class InspectedElementAnchorConfig : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Identifier of the node to highlight. + /// + [JsonPropertyName("nodeId")] + public int? NodeId + { + get; + set; + } + + /// + /// Identifier of the backend node to highlight. + /// + [JsonPropertyName("backendNodeId")] + public int? BackendNodeId + { + get; + set; + } + } + /// /// Fired when the node should be inspected. This happens after call to `setInspectMode` or when /// user manually inspects an element. @@ -24342,6 +24442,40 @@ namespace CefSharp.DevTools.Overlay private set; } } + + /// + /// Fired when user asks to show the Inspect panel. + /// + public class InspectPanelShowRequestedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Id of the node to show in the panel. + /// + [JsonInclude] + [JsonPropertyName("backendNodeId")] + public int BackendNodeId + { + get; + private set; + } + } + + /// + /// Fired when user asks to restore the Inspected Element floating window. + /// + public class InspectedElementWindowRestoredEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Id of the node to restore the floating window for. + /// + [JsonInclude] + [JsonPropertyName("backendNodeId")] + public int BackendNodeId + { + get; + private set; + } + } } namespace CefSharp.DevTools.PWA @@ -27753,6 +27887,11 @@ namespace CefSharp.DevTools.Page [JsonPropertyName("WebLocks")] WebLocks, /// + /// WebLocksContention + /// + [JsonPropertyName("WebLocksContention")] + WebLocksContention, + /// /// WebHID /// [JsonPropertyName("WebHID")] @@ -31791,6 +31930,1138 @@ namespace CefSharp.DevTools.ServiceWorker } } +namespace CefSharp.DevTools.SmartCardEmulation +{ + /// + /// Indicates the PC/SC error code. + /// + /// This maps to: + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__ErrorCodes.html + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/secauthn/authentication-return-values + /// + public enum ResultCode + { + /// + /// success + /// + [JsonPropertyName("success")] + Success, + /// + /// removed-card + /// + [JsonPropertyName("removed-card")] + RemovedCard, + /// + /// reset-card + /// + [JsonPropertyName("reset-card")] + ResetCard, + /// + /// unpowered-card + /// + [JsonPropertyName("unpowered-card")] + UnpoweredCard, + /// + /// unresponsive-card + /// + [JsonPropertyName("unresponsive-card")] + UnresponsiveCard, + /// + /// unsupported-card + /// + [JsonPropertyName("unsupported-card")] + UnsupportedCard, + /// + /// reader-unavailable + /// + [JsonPropertyName("reader-unavailable")] + ReaderUnavailable, + /// + /// sharing-violation + /// + [JsonPropertyName("sharing-violation")] + SharingViolation, + /// + /// not-transacted + /// + [JsonPropertyName("not-transacted")] + NotTransacted, + /// + /// no-smartcard + /// + [JsonPropertyName("no-smartcard")] + NoSmartcard, + /// + /// proto-mismatch + /// + [JsonPropertyName("proto-mismatch")] + ProtoMismatch, + /// + /// system-cancelled + /// + [JsonPropertyName("system-cancelled")] + SystemCancelled, + /// + /// not-ready + /// + [JsonPropertyName("not-ready")] + NotReady, + /// + /// cancelled + /// + [JsonPropertyName("cancelled")] + Cancelled, + /// + /// insufficient-buffer + /// + [JsonPropertyName("insufficient-buffer")] + InsufficientBuffer, + /// + /// invalid-handle + /// + [JsonPropertyName("invalid-handle")] + InvalidHandle, + /// + /// invalid-parameter + /// + [JsonPropertyName("invalid-parameter")] + InvalidParameter, + /// + /// invalid-value + /// + [JsonPropertyName("invalid-value")] + InvalidValue, + /// + /// no-memory + /// + [JsonPropertyName("no-memory")] + NoMemory, + /// + /// timeout + /// + [JsonPropertyName("timeout")] + Timeout, + /// + /// unknown-reader + /// + [JsonPropertyName("unknown-reader")] + UnknownReader, + /// + /// unsupported-feature + /// + [JsonPropertyName("unsupported-feature")] + UnsupportedFeature, + /// + /// no-readers-available + /// + [JsonPropertyName("no-readers-available")] + NoReadersAvailable, + /// + /// service-stopped + /// + [JsonPropertyName("service-stopped")] + ServiceStopped, + /// + /// no-service + /// + [JsonPropertyName("no-service")] + NoService, + /// + /// comm-error + /// + [JsonPropertyName("comm-error")] + CommError, + /// + /// internal-error + /// + [JsonPropertyName("internal-error")] + InternalError, + /// + /// server-too-busy + /// + [JsonPropertyName("server-too-busy")] + ServerTooBusy, + /// + /// unexpected + /// + [JsonPropertyName("unexpected")] + Unexpected, + /// + /// shutdown + /// + [JsonPropertyName("shutdown")] + Shutdown, + /// + /// unknown-card + /// + [JsonPropertyName("unknown-card")] + UnknownCard, + /// + /// unknown + /// + [JsonPropertyName("unknown")] + Unknown + } + + /// + /// Maps to the |SCARD_SHARE_*| values. + /// + public enum ShareMode + { + /// + /// shared + /// + [JsonPropertyName("shared")] + Shared, + /// + /// exclusive + /// + [JsonPropertyName("exclusive")] + Exclusive, + /// + /// direct + /// + [JsonPropertyName("direct")] + Direct + } + + /// + /// Indicates what the reader should do with the card. + /// + public enum Disposition + { + /// + /// leave-card + /// + [JsonPropertyName("leave-card")] + LeaveCard, + /// + /// reset-card + /// + [JsonPropertyName("reset-card")] + ResetCard, + /// + /// unpower-card + /// + [JsonPropertyName("unpower-card")] + UnpowerCard, + /// + /// eject-card + /// + [JsonPropertyName("eject-card")] + EjectCard + } + + /// + /// Maps to |SCARD_*| connection state values. + /// + public enum ConnectionState + { + /// + /// absent + /// + [JsonPropertyName("absent")] + Absent, + /// + /// present + /// + [JsonPropertyName("present")] + Present, + /// + /// swallowed + /// + [JsonPropertyName("swallowed")] + Swallowed, + /// + /// powered + /// + [JsonPropertyName("powered")] + Powered, + /// + /// negotiable + /// + [JsonPropertyName("negotiable")] + Negotiable, + /// + /// specific + /// + [JsonPropertyName("specific")] + Specific + } + + /// + /// Maps to the |SCARD_STATE_*| flags. + /// + public partial class ReaderStateFlags : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Unaware + /// + [JsonPropertyName("unaware")] + public bool? Unaware + { + get; + set; + } + + /// + /// Ignore + /// + [JsonPropertyName("ignore")] + public bool? Ignore + { + get; + set; + } + + /// + /// Changed + /// + [JsonPropertyName("changed")] + public bool? Changed + { + get; + set; + } + + /// + /// Unknown + /// + [JsonPropertyName("unknown")] + public bool? Unknown + { + get; + set; + } + + /// + /// Unavailable + /// + [JsonPropertyName("unavailable")] + public bool? Unavailable + { + get; + set; + } + + /// + /// Empty + /// + [JsonPropertyName("empty")] + public bool? Empty + { + get; + set; + } + + /// + /// Present + /// + [JsonPropertyName("present")] + public bool? Present + { + get; + set; + } + + /// + /// Exclusive + /// + [JsonPropertyName("exclusive")] + public bool? Exclusive + { + get; + set; + } + + /// + /// Inuse + /// + [JsonPropertyName("inuse")] + public bool? Inuse + { + get; + set; + } + + /// + /// Mute + /// + [JsonPropertyName("mute")] + public bool? Mute + { + get; + set; + } + + /// + /// Unpowered + /// + [JsonPropertyName("unpowered")] + public bool? Unpowered + { + get; + set; + } + } + + /// + /// Maps to the |SCARD_PROTOCOL_*| flags. + /// + public partial class ProtocolSet : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// T0 + /// + [JsonPropertyName("t0")] + public bool? T0 + { + get; + set; + } + + /// + /// T1 + /// + [JsonPropertyName("t1")] + public bool? T1 + { + get; + set; + } + + /// + /// Raw + /// + [JsonPropertyName("raw")] + public bool? Raw + { + get; + set; + } + } + + /// + /// Maps to the |SCARD_PROTOCOL_*| values. + /// + public enum Protocol + { + /// + /// t0 + /// + [JsonPropertyName("t0")] + T0, + /// + /// t1 + /// + [JsonPropertyName("t1")] + T1, + /// + /// raw + /// + [JsonPropertyName("raw")] + Raw + } + + /// + /// ReaderStateIn + /// + public partial class ReaderStateIn : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Reader + /// + [JsonPropertyName("reader")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Reader + { + get; + set; + } + + /// + /// CurrentState + /// + [JsonPropertyName("currentState")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.SmartCardEmulation.ReaderStateFlags CurrentState + { + get; + set; + } + + /// + /// CurrentInsertionCount + /// + [JsonPropertyName("currentInsertionCount")] + public int CurrentInsertionCount + { + get; + set; + } + } + + /// + /// ReaderStateOut + /// + public partial class ReaderStateOut : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Reader + /// + [JsonPropertyName("reader")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Reader + { + get; + set; + } + + /// + /// EventState + /// + [JsonPropertyName("eventState")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.SmartCardEmulation.ReaderStateFlags EventState + { + get; + set; + } + + /// + /// EventCount + /// + [JsonPropertyName("eventCount")] + public int EventCount + { + get; + set; + } + + /// + /// Atr + /// + [JsonPropertyName("atr")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public byte[] Atr + { + get; + set; + } + } + + /// + /// Fired when |SCardEstablishContext| is called. + /// + /// This maps to: + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaa1b8970169fd4883a6dc4a8f43f19b67 + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardestablishcontext + /// + public class EstablishContextRequestedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// RequestId + /// + [JsonInclude] + [JsonPropertyName("requestId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string RequestId + { + get; + private set; + } + } + + /// + /// Fired when |SCardReleaseContext| is called. + /// + /// This maps to: + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga6aabcba7744c5c9419fdd6404f73a934 + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardreleasecontext + /// + public class ReleaseContextRequestedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// RequestId + /// + [JsonInclude] + [JsonPropertyName("requestId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string RequestId + { + get; + private set; + } + + /// + /// ContextId + /// + [JsonInclude] + [JsonPropertyName("contextId")] + public int ContextId + { + get; + private set; + } + } + + /// + /// Fired when |SCardListReaders| is called. + /// + /// This maps to: + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga93b07815789b3cf2629d439ecf20f0d9 + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardlistreadersa + /// + public class ListReadersRequestedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// RequestId + /// + [JsonInclude] + [JsonPropertyName("requestId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string RequestId + { + get; + private set; + } + + /// + /// ContextId + /// + [JsonInclude] + [JsonPropertyName("contextId")] + public int ContextId + { + get; + private set; + } + } + + /// + /// Fired when |SCardGetStatusChange| is called. Timeout is specified in milliseconds. + /// + /// This maps to: + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga33247d5d1257d59e55647c3bb717db24 + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardgetstatuschangea + /// + public class GetStatusChangeRequestedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// RequestId + /// + [JsonInclude] + [JsonPropertyName("requestId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string RequestId + { + get; + private set; + } + + /// + /// ContextId + /// + [JsonInclude] + [JsonPropertyName("contextId")] + public int ContextId + { + get; + private set; + } + + /// + /// ReaderStates + /// + [JsonInclude] + [JsonPropertyName("readerStates")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList ReaderStates + { + get; + private set; + } + + /// + /// in milliseconds, if absent, it means "infinite" + /// + [JsonInclude] + [JsonPropertyName("timeout")] + public int? Timeout + { + get; + private set; + } + } + + /// + /// Fired when |SCardCancel| is called. + /// + /// This maps to: + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaacbbc0c6d6c0cbbeb4f4debf6fbeeee6 + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardcancel + /// + public class CancelRequestedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// RequestId + /// + [JsonInclude] + [JsonPropertyName("requestId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string RequestId + { + get; + private set; + } + + /// + /// ContextId + /// + [JsonInclude] + [JsonPropertyName("contextId")] + public int ContextId + { + get; + private set; + } + } + + /// + /// Fired when |SCardConnect| is called. + /// + /// This maps to: + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga4e515829752e0a8dbc4d630696a8d6a5 + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardconnecta + /// + public class ConnectRequestedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// RequestId + /// + [JsonInclude] + [JsonPropertyName("requestId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string RequestId + { + get; + private set; + } + + /// + /// ContextId + /// + [JsonInclude] + [JsonPropertyName("contextId")] + public int ContextId + { + get; + private set; + } + + /// + /// Reader + /// + [JsonInclude] + [JsonPropertyName("reader")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Reader + { + get; + private set; + } + + /// + /// ShareMode + /// + [JsonInclude] + [JsonPropertyName("shareMode")] + public CefSharp.DevTools.SmartCardEmulation.ShareMode ShareMode + { + get; + private set; + } + + /// + /// PreferredProtocols + /// + [JsonInclude] + [JsonPropertyName("preferredProtocols")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.SmartCardEmulation.ProtocolSet PreferredProtocols + { + get; + private set; + } + } + + /// + /// Fired when |SCardDisconnect| is called. + /// + /// This maps to: + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga4be198045c73ec0deb79e66c0ca1738a + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scarddisconnect + /// + public class DisconnectRequestedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// RequestId + /// + [JsonInclude] + [JsonPropertyName("requestId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string RequestId + { + get; + private set; + } + + /// + /// Handle + /// + [JsonInclude] + [JsonPropertyName("handle")] + public int Handle + { + get; + private set; + } + + /// + /// Disposition + /// + [JsonInclude] + [JsonPropertyName("disposition")] + public CefSharp.DevTools.SmartCardEmulation.Disposition Disposition + { + get; + private set; + } + } + + /// + /// Fired when |SCardTransmit| is called. + /// + /// This maps to: + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga9a2d77242a271310269065e64633ab99 + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardtransmit + /// + public class TransmitRequestedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// RequestId + /// + [JsonInclude] + [JsonPropertyName("requestId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string RequestId + { + get; + private set; + } + + /// + /// Handle + /// + [JsonInclude] + [JsonPropertyName("handle")] + public int Handle + { + get; + private set; + } + + /// + /// Data + /// + [JsonInclude] + [JsonPropertyName("data")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public byte[] Data + { + get; + private set; + } + + /// + /// Protocol + /// + [JsonInclude] + [JsonPropertyName("protocol")] + public CefSharp.DevTools.SmartCardEmulation.Protocol? Protocol + { + get; + private set; + } + } + + /// + /// Fired when |SCardControl| is called. + /// + /// This maps to: + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gac3454d4657110fd7f753b2d3d8f4e32f + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardcontrol + /// + public class ControlRequestedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// RequestId + /// + [JsonInclude] + [JsonPropertyName("requestId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string RequestId + { + get; + private set; + } + + /// + /// Handle + /// + [JsonInclude] + [JsonPropertyName("handle")] + public int Handle + { + get; + private set; + } + + /// + /// ControlCode + /// + [JsonInclude] + [JsonPropertyName("controlCode")] + public int ControlCode + { + get; + private set; + } + + /// + /// Data + /// + [JsonInclude] + [JsonPropertyName("data")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public byte[] Data + { + get; + private set; + } + } + + /// + /// Fired when |SCardGetAttrib| is called. + /// + /// This maps to: + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaacfec51917255b7a25b94c5104961602 + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardgetattrib + /// + public class GetAttribRequestedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// RequestId + /// + [JsonInclude] + [JsonPropertyName("requestId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string RequestId + { + get; + private set; + } + + /// + /// Handle + /// + [JsonInclude] + [JsonPropertyName("handle")] + public int Handle + { + get; + private set; + } + + /// + /// AttribId + /// + [JsonInclude] + [JsonPropertyName("attribId")] + public int AttribId + { + get; + private set; + } + } + + /// + /// Fired when |SCardSetAttrib| is called. + /// + /// This maps to: + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga060f0038a4ddfd5dd2b8fadf3c3a2e4f + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardsetattrib + /// + public class SetAttribRequestedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// RequestId + /// + [JsonInclude] + [JsonPropertyName("requestId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string RequestId + { + get; + private set; + } + + /// + /// Handle + /// + [JsonInclude] + [JsonPropertyName("handle")] + public int Handle + { + get; + private set; + } + + /// + /// AttribId + /// + [JsonInclude] + [JsonPropertyName("attribId")] + public int AttribId + { + get; + private set; + } + + /// + /// Data + /// + [JsonInclude] + [JsonPropertyName("data")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public byte[] Data + { + get; + private set; + } + } + + /// + /// Fired when |SCardStatus| is called. + /// + /// This maps to: + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gae49c3c894ad7ac12a5b896bde70d0382 + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardstatusa + /// + public class StatusRequestedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// RequestId + /// + [JsonInclude] + [JsonPropertyName("requestId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string RequestId + { + get; + private set; + } + + /// + /// Handle + /// + [JsonInclude] + [JsonPropertyName("handle")] + public int Handle + { + get; + private set; + } + } + + /// + /// Fired when |SCardBeginTransaction| is called. + /// + /// This maps to: + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaddb835dce01a0da1d6ca02d33ee7d861 + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardbegintransaction + /// + public class BeginTransactionRequestedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// RequestId + /// + [JsonInclude] + [JsonPropertyName("requestId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string RequestId + { + get; + private set; + } + + /// + /// Handle + /// + [JsonInclude] + [JsonPropertyName("handle")] + public int Handle + { + get; + private set; + } + } + + /// + /// Fired when |SCardEndTransaction| is called. + /// + /// This maps to: + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gae8742473b404363e5c587f570d7e2f3b + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardendtransaction + /// + public class EndTransactionRequestedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// RequestId + /// + [JsonInclude] + [JsonPropertyName("requestId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string RequestId + { + get; + private set; + } + + /// + /// Handle + /// + [JsonInclude] + [JsonPropertyName("handle")] + public int Handle + { + get; + private set; + } + + /// + /// Disposition + /// + [JsonInclude] + [JsonPropertyName("disposition")] + public CefSharp.DevTools.SmartCardEmulation.Disposition Disposition + { + get; + private set; + } + } +} + namespace CefSharp.DevTools.Storage { /// @@ -44059,6 +45330,8 @@ namespace CefSharp.DevTools.CSS /// to the provided property syntax, the value is parsed using combined /// syntax as if null `propertyName` was provided. If the value cannot be /// resolved even then, return the provided value without any changes. + /// Note: this function currently does not resolve CSS random() function, + /// it returns unmodified random() function parts.` /// /// Cascade-dependent keywords (revert/revert-layer) do not work. /// Id of the node in whose context the expression is evaluated @@ -48671,7 +49944,25 @@ namespace CefSharp.DevTools.Extensions _client = (client); } - partial void ValidateLoadUnpacked(string path); + partial void ValidateTriggerAction(string id, string targetId); + /// + /// Runs an extension default action. + /// Available if the client is connected using the --remote-debugging-pipe + /// flag and the --enable-unsafe-extension-debugging flag is set. + /// + /// Extension id. + /// A tab target ID to trigger the default extension action on. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task TriggerActionAsync(string id, string targetId) + { + ValidateTriggerAction(id, targetId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("id", id); + dict.Add("targetId", targetId); + return _client.ExecuteDevToolsMethodAsync("Extensions.triggerAction", dict); + } + + partial void ValidateLoadUnpacked(string path, bool? enableInIncognito = null); /// /// Installs an unpacked extension from the filesystem similar to /// --load-extension CLI flags. Returns extension ID once the extension @@ -48680,12 +49971,18 @@ namespace CefSharp.DevTools.Extensions /// flag is set. /// /// Absolute file path. + /// Enable the extension in incognito /// returns System.Threading.Tasks.Task<LoadUnpackedResponse> - public System.Threading.Tasks.Task LoadUnpackedAsync(string path) + public System.Threading.Tasks.Task LoadUnpackedAsync(string path, bool? enableInIncognito = null) { - ValidateLoadUnpacked(path); + ValidateLoadUnpacked(path, enableInIncognito); var dict = new System.Collections.Generic.Dictionary(); dict.Add("path", path); + if (enableInIncognito.HasValue) + { + dict.Add("enableInIncognito", enableInIncognito.Value); + } + return _client.ExecuteDevToolsMethodAsync("Extensions.loadUnpacked", dict); } @@ -53030,7 +54327,7 @@ namespace CefSharp.DevTools.Network return _client.ExecuteDevToolsMethodAsync("Network.setCacheDisabled", dict); } - partial void ValidateSetCookie(string name, string value, string url = null, string domain = null, string path = null, bool? secure = null, bool? httpOnly = null, CefSharp.DevTools.Network.CookieSameSite? sameSite = null, double? expires = null, CefSharp.DevTools.Network.CookiePriority? priority = null, bool? sameParty = null, CefSharp.DevTools.Network.CookieSourceScheme? sourceScheme = null, int? sourcePort = null, CefSharp.DevTools.Network.CookiePartitionKey partitionKey = null); + partial void ValidateSetCookie(string name, string value, string url = null, string domain = null, string path = null, bool? secure = null, bool? httpOnly = null, CefSharp.DevTools.Network.CookieSameSite? sameSite = null, double? expires = null, CefSharp.DevTools.Network.CookiePriority? priority = null, CefSharp.DevTools.Network.CookieSourceScheme? sourceScheme = null, int? sourcePort = null, CefSharp.DevTools.Network.CookiePartitionKey partitionKey = null); /// /// Sets a cookie with the given cookie data; may overwrite equivalent cookies if they exist. /// @@ -53044,14 +54341,13 @@ namespace CefSharp.DevTools.Network /// Cookie SameSite type. /// Cookie expiration date, session cookie if not set /// Cookie Priority type. - /// True if cookie is SameParty. /// Cookie source scheme type. /// 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. /// Cookie partition key. If not set, the cookie will be set as not partitioned. /// returns System.Threading.Tasks.Task<SetCookieResponse> - public System.Threading.Tasks.Task SetCookieAsync(string name, string value, string url = null, string domain = null, string path = null, bool? secure = null, bool? httpOnly = null, CefSharp.DevTools.Network.CookieSameSite? sameSite = null, double? expires = null, CefSharp.DevTools.Network.CookiePriority? priority = null, bool? sameParty = null, CefSharp.DevTools.Network.CookieSourceScheme? sourceScheme = null, int? sourcePort = null, CefSharp.DevTools.Network.CookiePartitionKey partitionKey = null) + public System.Threading.Tasks.Task SetCookieAsync(string name, string value, string url = null, string domain = null, string path = null, bool? secure = null, bool? httpOnly = null, CefSharp.DevTools.Network.CookieSameSite? sameSite = null, double? expires = null, CefSharp.DevTools.Network.CookiePriority? priority = null, CefSharp.DevTools.Network.CookieSourceScheme? sourceScheme = null, int? sourcePort = null, CefSharp.DevTools.Network.CookiePartitionKey partitionKey = null) { - ValidateSetCookie(name, value, url, domain, path, secure, httpOnly, sameSite, expires, priority, sameParty, sourceScheme, sourcePort, partitionKey); + ValidateSetCookie(name, value, url, domain, path, secure, httpOnly, sameSite, expires, priority, sourceScheme, sourcePort, partitionKey); var dict = new System.Collections.Generic.Dictionary(); dict.Add("name", name); dict.Add("value", value); @@ -53095,11 +54391,6 @@ namespace CefSharp.DevTools.Network dict.Add("priority", EnumToString(priority)); } - if (sameParty.HasValue) - { - dict.Add("sameParty", sameParty.Value); - } - if (sourceScheme.HasValue) { dict.Add("sourceScheme", EnumToString(sourceScheme)); @@ -53439,6 +54730,38 @@ namespace CefSharp.DevTools.Overlay } } + /// + /// Fired when user asks to show the Inspect panel. + /// + public event System.EventHandler InspectPanelShowRequested + { + add + { + _client.AddEventHandler("Overlay.inspectPanelShowRequested", value); + } + + remove + { + _client.RemoveEventHandler("Overlay.inspectPanelShowRequested", value); + } + } + + /// + /// Fired when user asks to restore the Inspected Element floating window. + /// + public event System.EventHandler InspectedElementWindowRestored + { + add + { + _client.AddEventHandler("Overlay.inspectedElementWindowRestored", value); + } + + remove + { + _client.RemoveEventHandler("Overlay.inspectedElementWindowRestored", value); + } + } + /// /// Fired when user cancels the inspect mode. /// @@ -53821,6 +55144,20 @@ namespace CefSharp.DevTools.Overlay return _client.ExecuteDevToolsMethodAsync("Overlay.setShowContainerQueryOverlays", dict); } + partial void ValidateSetShowInspectedElementAnchor(CefSharp.DevTools.Overlay.InspectedElementAnchorConfig inspectedElementAnchorConfig); + /// + /// SetShowInspectedElementAnchor + /// + /// Node identifier for which to show an anchor for. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task SetShowInspectedElementAnchorAsync(CefSharp.DevTools.Overlay.InspectedElementAnchorConfig inspectedElementAnchorConfig) + { + ValidateSetShowInspectedElementAnchor(inspectedElementAnchorConfig); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("inspectedElementAnchorConfig", inspectedElementAnchorConfig.ToDictionary()); + return _client.ExecuteDevToolsMethodAsync("Overlay.setShowInspectedElementAnchor", dict); + } + partial void ValidateSetShowPaintRects(bool result); /// /// Requests that backend shows paint rectangles @@ -56866,6 +58203,560 @@ namespace CefSharp.DevTools.ServiceWorker } } +namespace CefSharp.DevTools.SmartCardEmulation +{ + using System.Linq; + + /// + /// SmartCardEmulation + /// + public partial class SmartCardEmulationClient : DevToolsDomainBase + { + private CefSharp.DevTools.IDevToolsClient _client; + /// + /// SmartCardEmulation + /// + /// DevToolsClient + public SmartCardEmulationClient(CefSharp.DevTools.IDevToolsClient client) + { + _client = (client); + } + + /// + /// Fired when |SCardEstablishContext| is called. + /// + /// This maps to: + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaa1b8970169fd4883a6dc4a8f43f19b67 + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardestablishcontext + /// + public event System.EventHandler EstablishContextRequested + { + add + { + _client.AddEventHandler("SmartCardEmulation.establishContextRequested", value); + } + + remove + { + _client.RemoveEventHandler("SmartCardEmulation.establishContextRequested", value); + } + } + + /// + /// Fired when |SCardReleaseContext| is called. + /// + /// This maps to: + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga6aabcba7744c5c9419fdd6404f73a934 + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardreleasecontext + /// + public event System.EventHandler ReleaseContextRequested + { + add + { + _client.AddEventHandler("SmartCardEmulation.releaseContextRequested", value); + } + + remove + { + _client.RemoveEventHandler("SmartCardEmulation.releaseContextRequested", value); + } + } + + /// + /// Fired when |SCardListReaders| is called. + /// + /// This maps to: + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga93b07815789b3cf2629d439ecf20f0d9 + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardlistreadersa + /// + public event System.EventHandler ListReadersRequested + { + add + { + _client.AddEventHandler("SmartCardEmulation.listReadersRequested", value); + } + + remove + { + _client.RemoveEventHandler("SmartCardEmulation.listReadersRequested", value); + } + } + + /// + /// Fired when |SCardGetStatusChange| is called. Timeout is specified in milliseconds. + /// + /// This maps to: + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga33247d5d1257d59e55647c3bb717db24 + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardgetstatuschangea + /// + public event System.EventHandler GetStatusChangeRequested + { + add + { + _client.AddEventHandler("SmartCardEmulation.getStatusChangeRequested", value); + } + + remove + { + _client.RemoveEventHandler("SmartCardEmulation.getStatusChangeRequested", value); + } + } + + /// + /// Fired when |SCardCancel| is called. + /// + /// This maps to: + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaacbbc0c6d6c0cbbeb4f4debf6fbeeee6 + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardcancel + /// + public event System.EventHandler CancelRequested + { + add + { + _client.AddEventHandler("SmartCardEmulation.cancelRequested", value); + } + + remove + { + _client.RemoveEventHandler("SmartCardEmulation.cancelRequested", value); + } + } + + /// + /// Fired when |SCardConnect| is called. + /// + /// This maps to: + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga4e515829752e0a8dbc4d630696a8d6a5 + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardconnecta + /// + public event System.EventHandler ConnectRequested + { + add + { + _client.AddEventHandler("SmartCardEmulation.connectRequested", value); + } + + remove + { + _client.RemoveEventHandler("SmartCardEmulation.connectRequested", value); + } + } + + /// + /// Fired when |SCardDisconnect| is called. + /// + /// This maps to: + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga4be198045c73ec0deb79e66c0ca1738a + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scarddisconnect + /// + public event System.EventHandler DisconnectRequested + { + add + { + _client.AddEventHandler("SmartCardEmulation.disconnectRequested", value); + } + + remove + { + _client.RemoveEventHandler("SmartCardEmulation.disconnectRequested", value); + } + } + + /// + /// Fired when |SCardTransmit| is called. + /// + /// This maps to: + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga9a2d77242a271310269065e64633ab99 + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardtransmit + /// + public event System.EventHandler TransmitRequested + { + add + { + _client.AddEventHandler("SmartCardEmulation.transmitRequested", value); + } + + remove + { + _client.RemoveEventHandler("SmartCardEmulation.transmitRequested", value); + } + } + + /// + /// Fired when |SCardControl| is called. + /// + /// This maps to: + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gac3454d4657110fd7f753b2d3d8f4e32f + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardcontrol + /// + public event System.EventHandler ControlRequested + { + add + { + _client.AddEventHandler("SmartCardEmulation.controlRequested", value); + } + + remove + { + _client.RemoveEventHandler("SmartCardEmulation.controlRequested", value); + } + } + + /// + /// Fired when |SCardGetAttrib| is called. + /// + /// This maps to: + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaacfec51917255b7a25b94c5104961602 + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardgetattrib + /// + public event System.EventHandler GetAttribRequested + { + add + { + _client.AddEventHandler("SmartCardEmulation.getAttribRequested", value); + } + + remove + { + _client.RemoveEventHandler("SmartCardEmulation.getAttribRequested", value); + } + } + + /// + /// Fired when |SCardSetAttrib| is called. + /// + /// This maps to: + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga060f0038a4ddfd5dd2b8fadf3c3a2e4f + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardsetattrib + /// + public event System.EventHandler SetAttribRequested + { + add + { + _client.AddEventHandler("SmartCardEmulation.setAttribRequested", value); + } + + remove + { + _client.RemoveEventHandler("SmartCardEmulation.setAttribRequested", value); + } + } + + /// + /// Fired when |SCardStatus| is called. + /// + /// This maps to: + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gae49c3c894ad7ac12a5b896bde70d0382 + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardstatusa + /// + public event System.EventHandler StatusRequested + { + add + { + _client.AddEventHandler("SmartCardEmulation.statusRequested", value); + } + + remove + { + _client.RemoveEventHandler("SmartCardEmulation.statusRequested", value); + } + } + + /// + /// Fired when |SCardBeginTransaction| is called. + /// + /// This maps to: + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaddb835dce01a0da1d6ca02d33ee7d861 + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardbegintransaction + /// + public event System.EventHandler BeginTransactionRequested + { + add + { + _client.AddEventHandler("SmartCardEmulation.beginTransactionRequested", value); + } + + remove + { + _client.RemoveEventHandler("SmartCardEmulation.beginTransactionRequested", value); + } + } + + /// + /// Fired when |SCardEndTransaction| is called. + /// + /// This maps to: + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gae8742473b404363e5c587f570d7e2f3b + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardendtransaction + /// + public event System.EventHandler EndTransactionRequested + { + add + { + _client.AddEventHandler("SmartCardEmulation.endTransactionRequested", value); + } + + remove + { + _client.RemoveEventHandler("SmartCardEmulation.endTransactionRequested", value); + } + } + + /// + /// Enables the |SmartCardEmulation| domain. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task EnableAsync() + { + System.Collections.Generic.Dictionary dict = null; + return _client.ExecuteDevToolsMethodAsync("SmartCardEmulation.enable", dict); + } + + /// + /// Disables the |SmartCardEmulation| domain. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task DisableAsync() + { + System.Collections.Generic.Dictionary dict = null; + return _client.ExecuteDevToolsMethodAsync("SmartCardEmulation.disable", dict); + } + + partial void ValidateReportEstablishContextResult(string requestId, int contextId); + /// + /// Reports the successful result of a |SCardEstablishContext| call. + /// + /// This maps to: + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaa1b8970169fd4883a6dc4a8f43f19b67 + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardestablishcontext + /// + /// requestId + /// contextId + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task ReportEstablishContextResultAsync(string requestId, int contextId) + { + ValidateReportEstablishContextResult(requestId, contextId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("requestId", requestId); + dict.Add("contextId", contextId); + return _client.ExecuteDevToolsMethodAsync("SmartCardEmulation.reportEstablishContextResult", dict); + } + + partial void ValidateReportReleaseContextResult(string requestId); + /// + /// Reports the successful result of a |SCardReleaseContext| call. + /// + /// This maps to: + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga6aabcba7744c5c9419fdd6404f73a934 + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardreleasecontext + /// + /// requestId + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task ReportReleaseContextResultAsync(string requestId) + { + ValidateReportReleaseContextResult(requestId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("requestId", requestId); + return _client.ExecuteDevToolsMethodAsync("SmartCardEmulation.reportReleaseContextResult", dict); + } + + partial void ValidateReportListReadersResult(string requestId, string[] readers); + /// + /// Reports the successful result of a |SCardListReaders| call. + /// + /// This maps to: + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga93b07815789b3cf2629d439ecf20f0d9 + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardlistreadersa + /// + /// requestId + /// readers + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task ReportListReadersResultAsync(string requestId, string[] readers) + { + ValidateReportListReadersResult(requestId, readers); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("requestId", requestId); + dict.Add("readers", readers); + return _client.ExecuteDevToolsMethodAsync("SmartCardEmulation.reportListReadersResult", dict); + } + + partial void ValidateReportGetStatusChangeResult(string requestId, System.Collections.Generic.IList readerStates); + /// + /// Reports the successful result of a |SCardGetStatusChange| call. + /// + /// This maps to: + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga33247d5d1257d59e55647c3bb717db24 + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardgetstatuschangea + /// + /// requestId + /// readerStates + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task ReportGetStatusChangeResultAsync(string requestId, System.Collections.Generic.IList readerStates) + { + ValidateReportGetStatusChangeResult(requestId, readerStates); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("requestId", requestId); + dict.Add("readerStates", readerStates.Select(x => x.ToDictionary())); + return _client.ExecuteDevToolsMethodAsync("SmartCardEmulation.reportGetStatusChangeResult", dict); + } + + partial void ValidateReportBeginTransactionResult(string requestId, int handle); + /// + /// Reports the result of a |SCardBeginTransaction| call. + /// On success, this creates a new transaction object. + /// + /// This maps to: + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaddb835dce01a0da1d6ca02d33ee7d861 + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardbegintransaction + /// + /// requestId + /// handle + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task ReportBeginTransactionResultAsync(string requestId, int handle) + { + ValidateReportBeginTransactionResult(requestId, handle); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("requestId", requestId); + dict.Add("handle", handle); + return _client.ExecuteDevToolsMethodAsync("SmartCardEmulation.reportBeginTransactionResult", dict); + } + + partial void ValidateReportPlainResult(string requestId); + /// + /// Reports the successful result of a call that returns only a result code. + /// Used for: |SCardCancel|, |SCardDisconnect|, |SCardSetAttrib|, |SCardEndTransaction|. + /// + /// This maps to: + /// 1. SCardCancel + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaacbbc0c6d6c0cbbeb4f4debf6fbeeee6 + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardcancel + /// + /// 2. SCardDisconnect + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga4be198045c73ec0deb79e66c0ca1738a + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scarddisconnect + /// + /// 3. SCardSetAttrib + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga060f0038a4ddfd5dd2b8fadf3c3a2e4f + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardsetattrib + /// + /// 4. SCardEndTransaction + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gae8742473b404363e5c587f570d7e2f3b + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardendtransaction + /// + /// requestId + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task ReportPlainResultAsync(string requestId) + { + ValidateReportPlainResult(requestId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("requestId", requestId); + return _client.ExecuteDevToolsMethodAsync("SmartCardEmulation.reportPlainResult", dict); + } + + partial void ValidateReportConnectResult(string requestId, int handle, CefSharp.DevTools.SmartCardEmulation.Protocol? activeProtocol = null); + /// + /// Reports the successful result of a |SCardConnect| call. + /// + /// This maps to: + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga4e515829752e0a8dbc4d630696a8d6a5 + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardconnecta + /// + /// requestId + /// handle + /// activeProtocol + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task ReportConnectResultAsync(string requestId, int handle, CefSharp.DevTools.SmartCardEmulation.Protocol? activeProtocol = null) + { + ValidateReportConnectResult(requestId, handle, activeProtocol); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("requestId", requestId); + dict.Add("handle", handle); + if (activeProtocol.HasValue) + { + dict.Add("activeProtocol", EnumToString(activeProtocol)); + } + + return _client.ExecuteDevToolsMethodAsync("SmartCardEmulation.reportConnectResult", dict); + } + + partial void ValidateReportDataResult(string requestId, byte[] data); + /// + /// Reports the successful result of a call that sends back data on success. + /// Used for |SCardTransmit|, |SCardControl|, and |SCardGetAttrib|. + /// + /// This maps to: + /// 1. SCardTransmit + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga9a2d77242a271310269065e64633ab99 + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardtransmit + /// + /// 2. SCardControl + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gac3454d4657110fd7f753b2d3d8f4e32f + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardcontrol + /// + /// 3. SCardGetAttrib + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaacfec51917255b7a25b94c5104961602 + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardgetattrib + /// + /// requestId + /// data + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task ReportDataResultAsync(string requestId, byte[] data) + { + ValidateReportDataResult(requestId, data); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("requestId", requestId); + dict.Add("data", ToBase64String(data)); + return _client.ExecuteDevToolsMethodAsync("SmartCardEmulation.reportDataResult", dict); + } + + partial void ValidateReportStatusResult(string requestId, string readerName, CefSharp.DevTools.SmartCardEmulation.ConnectionState state, byte[] atr, CefSharp.DevTools.SmartCardEmulation.Protocol? protocol = null); + /// + /// Reports the successful result of a |SCardStatus| call. + /// + /// This maps to: + /// PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gae49c3c894ad7ac12a5b896bde70d0382 + /// Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardstatusa + /// + /// requestId + /// readerName + /// state + /// atr + /// protocol + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task ReportStatusResultAsync(string requestId, string readerName, CefSharp.DevTools.SmartCardEmulation.ConnectionState state, byte[] atr, CefSharp.DevTools.SmartCardEmulation.Protocol? protocol = null) + { + ValidateReportStatusResult(requestId, readerName, state, atr, protocol); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("requestId", requestId); + dict.Add("readerName", readerName); + dict.Add("state", EnumToString(state)); + dict.Add("atr", ToBase64String(atr)); + if (protocol.HasValue) + { + dict.Add("protocol", EnumToString(protocol)); + } + + return _client.ExecuteDevToolsMethodAsync("SmartCardEmulation.reportStatusResult", dict); + } + + partial void ValidateReportError(string requestId, CefSharp.DevTools.SmartCardEmulation.ResultCode resultCode); + /// + /// Reports an error result for the given request. + /// + /// requestId + /// resultCode + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task ReportErrorAsync(string requestId, CefSharp.DevTools.SmartCardEmulation.ResultCode resultCode) + { + ValidateReportError(requestId, resultCode); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("requestId", requestId); + dict.Add("resultCode", EnumToString(resultCode)); + return _client.ExecuteDevToolsMethodAsync("SmartCardEmulation.reportError", dict); + } + } +} + namespace CefSharp.DevTools.Storage { /// @@ -58598,7 +60489,7 @@ namespace CefSharp.DevTools.Target return _client.ExecuteDevToolsMethodAsync("Target.getBrowserContexts", dict); } - partial void ValidateCreateTarget(string url, int? left = null, int? top = null, int? width = null, int? height = null, CefSharp.DevTools.Target.WindowState? windowState = null, string browserContextId = null, bool? enableBeginFrameControl = null, bool? newWindow = null, bool? background = null, bool? forTab = null, bool? hidden = null); + partial void ValidateCreateTarget(string url, int? left = null, int? top = null, int? width = null, int? height = null, CefSharp.DevTools.Target.WindowState? windowState = null, string browserContextId = null, bool? enableBeginFrameControl = null, bool? newWindow = null, bool? background = null, bool? forTab = null, bool? hidden = null, bool? focus = null); /// /// Creates a new page. /// @@ -58614,10 +60505,11 @@ namespace CefSharp.DevTools.Target /// Whether to create the target in background or foreground (false by default, not supportedby headless shell). /// Whether to create the target of type "tab". /// Whether to create a hidden target. The hidden target is observable via protocol, but notpresent in the tab UI strip. Cannot be created with `forTab: true`, `newWindow: true` or`background: false`. The life-time of the tab is limited to the life-time of the session. + /// If specified, the option is used to determine if the new target shouldbe focused or not. By default, the focus behavior depends on thevalue of the background field. For example, background=false and focus=falsewill result in the target tab being opened but the browser window remainunchanged (if it was in the background, it will remain in the background)and background=false with focus=undefined will result in the window being focused.Using background: true and focus: true is not supported and will result in an error. /// returns System.Threading.Tasks.Task<CreateTargetResponse> - public System.Threading.Tasks.Task CreateTargetAsync(string url, int? left = null, int? top = null, int? width = null, int? height = null, CefSharp.DevTools.Target.WindowState? windowState = null, string browserContextId = null, bool? enableBeginFrameControl = null, bool? newWindow = null, bool? background = null, bool? forTab = null, bool? hidden = null) + public System.Threading.Tasks.Task CreateTargetAsync(string url, int? left = null, int? top = null, int? width = null, int? height = null, CefSharp.DevTools.Target.WindowState? windowState = null, string browserContextId = null, bool? enableBeginFrameControl = null, bool? newWindow = null, bool? background = null, bool? forTab = null, bool? hidden = null, bool? focus = null) { - ValidateCreateTarget(url, left, top, width, height, windowState, browserContextId, enableBeginFrameControl, newWindow, background, forTab, hidden); + ValidateCreateTarget(url, left, top, width, height, windowState, browserContextId, enableBeginFrameControl, newWindow, background, forTab, hidden, focus); var dict = new System.Collections.Generic.Dictionary(); dict.Add("url", url); if (left.HasValue) @@ -58675,6 +60567,11 @@ namespace CefSharp.DevTools.Target dict.Add("hidden", hidden.Value); } + if (focus.HasValue) + { + dict.Add("focus", focus.Value); + } + return _client.ExecuteDevToolsMethodAsync("Target.createTarget", dict); } @@ -63607,6 +65504,23 @@ namespace CefSharp.DevTools } } + private CefSharp.DevTools.SmartCardEmulation.SmartCardEmulationClient _SmartCardEmulation; + /// + /// SmartCardEmulation + /// + public CefSharp.DevTools.SmartCardEmulation.SmartCardEmulationClient SmartCardEmulation + { + get + { + if ((_SmartCardEmulation) == (null)) + { + _SmartCardEmulation = (new CefSharp.DevTools.SmartCardEmulation.SmartCardEmulationClient(this)); + } + + return _SmartCardEmulation; + } + } + private CefSharp.DevTools.Storage.StorageClient _Storage; /// /// Storage