@@ -799,6 +799,118 @@ export namespace ProtocolMapping {
799799 'ServiceWorker.workerErrorReported' : [ Protocol . ServiceWorker . WorkerErrorReportedEvent ] ;
800800 'ServiceWorker.workerRegistrationUpdated' : [ Protocol . ServiceWorker . WorkerRegistrationUpdatedEvent ] ;
801801 'ServiceWorker.workerVersionUpdated' : [ Protocol . ServiceWorker . WorkerVersionUpdatedEvent ] ;
802+ /**
803+ * Fired when |SCardEstablishContext| is called.
804+ *
805+ * This maps to:
806+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaa1b8970169fd4883a6dc4a8f43f19b67
807+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardestablishcontext
808+ */
809+ 'SmartCardEmulation.establishContextRequested' : [ Protocol . SmartCardEmulation . EstablishContextRequestedEvent ] ;
810+ /**
811+ * Fired when |SCardReleaseContext| is called.
812+ *
813+ * This maps to:
814+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga6aabcba7744c5c9419fdd6404f73a934
815+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardreleasecontext
816+ */
817+ 'SmartCardEmulation.releaseContextRequested' : [ Protocol . SmartCardEmulation . ReleaseContextRequestedEvent ] ;
818+ /**
819+ * Fired when |SCardListReaders| is called.
820+ *
821+ * This maps to:
822+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga93b07815789b3cf2629d439ecf20f0d9
823+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardlistreadersa
824+ */
825+ 'SmartCardEmulation.listReadersRequested' : [ Protocol . SmartCardEmulation . ListReadersRequestedEvent ] ;
826+ /**
827+ * Fired when |SCardGetStatusChange| is called. Timeout is specified in milliseconds.
828+ *
829+ * This maps to:
830+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga33247d5d1257d59e55647c3bb717db24
831+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardgetstatuschangea
832+ */
833+ 'SmartCardEmulation.getStatusChangeRequested' : [ Protocol . SmartCardEmulation . GetStatusChangeRequestedEvent ] ;
834+ /**
835+ * Fired when |SCardCancel| is called.
836+ *
837+ * This maps to:
838+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaacbbc0c6d6c0cbbeb4f4debf6fbeeee6
839+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardcancel
840+ */
841+ 'SmartCardEmulation.cancelRequested' : [ Protocol . SmartCardEmulation . CancelRequestedEvent ] ;
842+ /**
843+ * Fired when |SCardConnect| is called.
844+ *
845+ * This maps to:
846+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga4e515829752e0a8dbc4d630696a8d6a5
847+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardconnecta
848+ */
849+ 'SmartCardEmulation.connectRequested' : [ Protocol . SmartCardEmulation . ConnectRequestedEvent ] ;
850+ /**
851+ * Fired when |SCardDisconnect| is called.
852+ *
853+ * This maps to:
854+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga4be198045c73ec0deb79e66c0ca1738a
855+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scarddisconnect
856+ */
857+ 'SmartCardEmulation.disconnectRequested' : [ Protocol . SmartCardEmulation . DisconnectRequestedEvent ] ;
858+ /**
859+ * Fired when |SCardTransmit| is called.
860+ *
861+ * This maps to:
862+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga9a2d77242a271310269065e64633ab99
863+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardtransmit
864+ */
865+ 'SmartCardEmulation.transmitRequested' : [ Protocol . SmartCardEmulation . TransmitRequestedEvent ] ;
866+ /**
867+ * Fired when |SCardControl| is called.
868+ *
869+ * This maps to:
870+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gac3454d4657110fd7f753b2d3d8f4e32f
871+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardcontrol
872+ */
873+ 'SmartCardEmulation.controlRequested' : [ Protocol . SmartCardEmulation . ControlRequestedEvent ] ;
874+ /**
875+ * Fired when |SCardGetAttrib| is called.
876+ *
877+ * This maps to:
878+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaacfec51917255b7a25b94c5104961602
879+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardgetattrib
880+ */
881+ 'SmartCardEmulation.getAttribRequested' : [ Protocol . SmartCardEmulation . GetAttribRequestedEvent ] ;
882+ /**
883+ * Fired when |SCardSetAttrib| is called.
884+ *
885+ * This maps to:
886+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga060f0038a4ddfd5dd2b8fadf3c3a2e4f
887+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardsetattrib
888+ */
889+ 'SmartCardEmulation.setAttribRequested' : [ Protocol . SmartCardEmulation . SetAttribRequestedEvent ] ;
890+ /**
891+ * Fired when |SCardStatus| is called.
892+ *
893+ * This maps to:
894+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gae49c3c894ad7ac12a5b896bde70d0382
895+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardstatusa
896+ */
897+ 'SmartCardEmulation.statusRequested' : [ Protocol . SmartCardEmulation . StatusRequestedEvent ] ;
898+ /**
899+ * Fired when |SCardBeginTransaction| is called.
900+ *
901+ * This maps to:
902+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaddb835dce01a0da1d6ca02d33ee7d861
903+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardbegintransaction
904+ */
905+ 'SmartCardEmulation.beginTransactionRequested' : [ Protocol . SmartCardEmulation . BeginTransactionRequestedEvent ] ;
906+ /**
907+ * Fired when |SCardEndTransaction| is called.
908+ *
909+ * This maps to:
910+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gae8742473b404363e5c587f570d7e2f3b
911+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardendtransaction
912+ */
913+ 'SmartCardEmulation.endTransactionRequested' : [ Protocol . SmartCardEmulation . EndTransactionRequestedEvent ] ;
802914 /**
803915 * A cache's contents have been modified.
804916 */
@@ -5340,6 +5452,151 @@ export namespace ProtocolMapping {
53405452 paramsType : [ Protocol . ServiceWorker . UpdateRegistrationRequest ] ;
53415453 returnType : void ;
53425454 } ;
5455+ /**
5456+ * Enables the |SmartCardEmulation| domain.
5457+ */
5458+ 'SmartCardEmulation.enable' : {
5459+ paramsType : [ ] ;
5460+ returnType : void ;
5461+ } ;
5462+ /**
5463+ * Disables the |SmartCardEmulation| domain.
5464+ */
5465+ 'SmartCardEmulation.disable' : {
5466+ paramsType : [ ] ;
5467+ returnType : void ;
5468+ } ;
5469+ /**
5470+ * Reports the successful result of a |SCardEstablishContext| call.
5471+ *
5472+ * This maps to:
5473+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaa1b8970169fd4883a6dc4a8f43f19b67
5474+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardestablishcontext
5475+ */
5476+ 'SmartCardEmulation.reportEstablishContextResult' : {
5477+ paramsType : [ Protocol . SmartCardEmulation . ReportEstablishContextResultRequest ] ;
5478+ returnType : void ;
5479+ } ;
5480+ /**
5481+ * Reports the successful result of a |SCardReleaseContext| call.
5482+ *
5483+ * This maps to:
5484+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga6aabcba7744c5c9419fdd6404f73a934
5485+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardreleasecontext
5486+ */
5487+ 'SmartCardEmulation.reportReleaseContextResult' : {
5488+ paramsType : [ Protocol . SmartCardEmulation . ReportReleaseContextResultRequest ] ;
5489+ returnType : void ;
5490+ } ;
5491+ /**
5492+ * Reports the successful result of a |SCardListReaders| call.
5493+ *
5494+ * This maps to:
5495+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga93b07815789b3cf2629d439ecf20f0d9
5496+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardlistreadersa
5497+ */
5498+ 'SmartCardEmulation.reportListReadersResult' : {
5499+ paramsType : [ Protocol . SmartCardEmulation . ReportListReadersResultRequest ] ;
5500+ returnType : void ;
5501+ } ;
5502+ /**
5503+ * Reports the successful result of a |SCardGetStatusChange| call.
5504+ *
5505+ * This maps to:
5506+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga33247d5d1257d59e55647c3bb717db24
5507+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardgetstatuschangea
5508+ */
5509+ 'SmartCardEmulation.reportGetStatusChangeResult' : {
5510+ paramsType : [ Protocol . SmartCardEmulation . ReportGetStatusChangeResultRequest ] ;
5511+ returnType : void ;
5512+ } ;
5513+ /**
5514+ * Reports the result of a |SCardBeginTransaction| call.
5515+ * On success, this creates a new transaction object.
5516+ *
5517+ * This maps to:
5518+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaddb835dce01a0da1d6ca02d33ee7d861
5519+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardbegintransaction
5520+ */
5521+ 'SmartCardEmulation.reportBeginTransactionResult' : {
5522+ paramsType : [ Protocol . SmartCardEmulation . ReportBeginTransactionResultRequest ] ;
5523+ returnType : void ;
5524+ } ;
5525+ /**
5526+ * Reports the successful result of a call that returns only a result code.
5527+ * Used for: |SCardCancel|, |SCardDisconnect|, |SCardSetAttrib|, |SCardEndTransaction|.
5528+ *
5529+ * This maps to:
5530+ * 1. SCardCancel
5531+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaacbbc0c6d6c0cbbeb4f4debf6fbeeee6
5532+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardcancel
5533+ *
5534+ * 2. SCardDisconnect
5535+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga4be198045c73ec0deb79e66c0ca1738a
5536+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scarddisconnect
5537+ *
5538+ * 3. SCardSetAttrib
5539+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga060f0038a4ddfd5dd2b8fadf3c3a2e4f
5540+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardsetattrib
5541+ *
5542+ * 4. SCardEndTransaction
5543+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gae8742473b404363e5c587f570d7e2f3b
5544+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardendtransaction
5545+ */
5546+ 'SmartCardEmulation.reportPlainResult' : {
5547+ paramsType : [ Protocol . SmartCardEmulation . ReportPlainResultRequest ] ;
5548+ returnType : void ;
5549+ } ;
5550+ /**
5551+ * Reports the successful result of a |SCardConnect| call.
5552+ *
5553+ * This maps to:
5554+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga4e515829752e0a8dbc4d630696a8d6a5
5555+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardconnecta
5556+ */
5557+ 'SmartCardEmulation.reportConnectResult' : {
5558+ paramsType : [ Protocol . SmartCardEmulation . ReportConnectResultRequest ] ;
5559+ returnType : void ;
5560+ } ;
5561+ /**
5562+ * Reports the successful result of a call that sends back data on success.
5563+ * Used for |SCardTransmit|, |SCardControl|, and |SCardGetAttrib|.
5564+ *
5565+ * This maps to:
5566+ * 1. SCardTransmit
5567+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga9a2d77242a271310269065e64633ab99
5568+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardtransmit
5569+ *
5570+ * 2. SCardControl
5571+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gac3454d4657110fd7f753b2d3d8f4e32f
5572+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardcontrol
5573+ *
5574+ * 3. SCardGetAttrib
5575+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaacfec51917255b7a25b94c5104961602
5576+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardgetattrib
5577+ */
5578+ 'SmartCardEmulation.reportDataResult' : {
5579+ paramsType : [ Protocol . SmartCardEmulation . ReportDataResultRequest ] ;
5580+ returnType : void ;
5581+ } ;
5582+ /**
5583+ * Reports the successful result of a |SCardStatus| call.
5584+ *
5585+ * This maps to:
5586+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gae49c3c894ad7ac12a5b896bde70d0382
5587+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardstatusa
5588+ */
5589+ 'SmartCardEmulation.reportStatusResult' : {
5590+ paramsType : [ Protocol . SmartCardEmulation . ReportStatusResultRequest ] ;
5591+ returnType : void ;
5592+ } ;
5593+ /**
5594+ * Reports an error result for the given request.
5595+ */
5596+ 'SmartCardEmulation.reportError' : {
5597+ paramsType : [ Protocol . SmartCardEmulation . ReportErrorRequest ] ;
5598+ returnType : void ;
5599+ } ;
53435600 /**
53445601 * Returns a storage key given a frame id.
53455602 * Deprecated. Please use Storage.getStorageKey instead.
0 commit comments