devtools-protocol 0.0.1574117 → 0.0.1575685
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/json/browser_protocol.json +631 -0
- package/package.json +1 -1
- package/pdl/browser_protocol.pdl +1 -0
- package/types/protocol-mapping.d.ts +257 -0
- package/types/protocol-proxy-api.d.ts +252 -0
- package/types/protocol-tests-proxy-api.d.ts +280 -0
- package/types/protocol.d.ts +309 -0
|
@@ -106,6 +106,8 @@ export namespace ProtocolTestsProxyApi {
|
|
|
106
106
|
|
|
107
107
|
ServiceWorker: ServiceWorkerApi;
|
|
108
108
|
|
|
109
|
+
SmartCardEmulation: SmartCardEmulationApi;
|
|
110
|
+
|
|
109
111
|
Storage: StorageApi;
|
|
110
112
|
|
|
111
113
|
SystemInfo: SystemInfoApi;
|
|
@@ -4802,6 +4804,284 @@ export namespace ProtocolTestsProxyApi {
|
|
|
4802
4804
|
|
|
4803
4805
|
}
|
|
4804
4806
|
|
|
4807
|
+
export interface SmartCardEmulationApi {
|
|
4808
|
+
/**
|
|
4809
|
+
* Enables the |SmartCardEmulation| domain.
|
|
4810
|
+
*/
|
|
4811
|
+
enable(): Promise<{id: number, result: void, sessionId: string}>;
|
|
4812
|
+
|
|
4813
|
+
/**
|
|
4814
|
+
* Disables the |SmartCardEmulation| domain.
|
|
4815
|
+
*/
|
|
4816
|
+
disable(): Promise<{id: number, result: void, sessionId: string}>;
|
|
4817
|
+
|
|
4818
|
+
/**
|
|
4819
|
+
* Reports the successful result of a |SCardEstablishContext| call.
|
|
4820
|
+
*
|
|
4821
|
+
* This maps to:
|
|
4822
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaa1b8970169fd4883a6dc4a8f43f19b67
|
|
4823
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardestablishcontext
|
|
4824
|
+
*/
|
|
4825
|
+
reportEstablishContextResult(params: Protocol.SmartCardEmulation.ReportEstablishContextResultRequest): Promise<{id: number, result: void, sessionId: string}>;
|
|
4826
|
+
|
|
4827
|
+
/**
|
|
4828
|
+
* Reports the successful result of a |SCardReleaseContext| call.
|
|
4829
|
+
*
|
|
4830
|
+
* This maps to:
|
|
4831
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga6aabcba7744c5c9419fdd6404f73a934
|
|
4832
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardreleasecontext
|
|
4833
|
+
*/
|
|
4834
|
+
reportReleaseContextResult(params: Protocol.SmartCardEmulation.ReportReleaseContextResultRequest): Promise<{id: number, result: void, sessionId: string}>;
|
|
4835
|
+
|
|
4836
|
+
/**
|
|
4837
|
+
* Reports the successful result of a |SCardListReaders| call.
|
|
4838
|
+
*
|
|
4839
|
+
* This maps to:
|
|
4840
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga93b07815789b3cf2629d439ecf20f0d9
|
|
4841
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardlistreadersa
|
|
4842
|
+
*/
|
|
4843
|
+
reportListReadersResult(params: Protocol.SmartCardEmulation.ReportListReadersResultRequest): Promise<{id: number, result: void, sessionId: string}>;
|
|
4844
|
+
|
|
4845
|
+
/**
|
|
4846
|
+
* Reports the successful result of a |SCardGetStatusChange| call.
|
|
4847
|
+
*
|
|
4848
|
+
* This maps to:
|
|
4849
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga33247d5d1257d59e55647c3bb717db24
|
|
4850
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardgetstatuschangea
|
|
4851
|
+
*/
|
|
4852
|
+
reportGetStatusChangeResult(params: Protocol.SmartCardEmulation.ReportGetStatusChangeResultRequest): Promise<{id: number, result: void, sessionId: string}>;
|
|
4853
|
+
|
|
4854
|
+
/**
|
|
4855
|
+
* Reports the result of a |SCardBeginTransaction| call.
|
|
4856
|
+
* On success, this creates a new transaction object.
|
|
4857
|
+
*
|
|
4858
|
+
* This maps to:
|
|
4859
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaddb835dce01a0da1d6ca02d33ee7d861
|
|
4860
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardbegintransaction
|
|
4861
|
+
*/
|
|
4862
|
+
reportBeginTransactionResult(params: Protocol.SmartCardEmulation.ReportBeginTransactionResultRequest): Promise<{id: number, result: void, sessionId: string}>;
|
|
4863
|
+
|
|
4864
|
+
/**
|
|
4865
|
+
* Reports the successful result of a call that returns only a result code.
|
|
4866
|
+
* Used for: |SCardCancel|, |SCardDisconnect|, |SCardSetAttrib|, |SCardEndTransaction|.
|
|
4867
|
+
*
|
|
4868
|
+
* This maps to:
|
|
4869
|
+
* 1. SCardCancel
|
|
4870
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaacbbc0c6d6c0cbbeb4f4debf6fbeeee6
|
|
4871
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardcancel
|
|
4872
|
+
*
|
|
4873
|
+
* 2. SCardDisconnect
|
|
4874
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga4be198045c73ec0deb79e66c0ca1738a
|
|
4875
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scarddisconnect
|
|
4876
|
+
*
|
|
4877
|
+
* 3. SCardSetAttrib
|
|
4878
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga060f0038a4ddfd5dd2b8fadf3c3a2e4f
|
|
4879
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardsetattrib
|
|
4880
|
+
*
|
|
4881
|
+
* 4. SCardEndTransaction
|
|
4882
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gae8742473b404363e5c587f570d7e2f3b
|
|
4883
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardendtransaction
|
|
4884
|
+
*/
|
|
4885
|
+
reportPlainResult(params: Protocol.SmartCardEmulation.ReportPlainResultRequest): Promise<{id: number, result: void, sessionId: string}>;
|
|
4886
|
+
|
|
4887
|
+
/**
|
|
4888
|
+
* Reports the successful result of a |SCardConnect| call.
|
|
4889
|
+
*
|
|
4890
|
+
* This maps to:
|
|
4891
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga4e515829752e0a8dbc4d630696a8d6a5
|
|
4892
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardconnecta
|
|
4893
|
+
*/
|
|
4894
|
+
reportConnectResult(params: Protocol.SmartCardEmulation.ReportConnectResultRequest): Promise<{id: number, result: void, sessionId: string}>;
|
|
4895
|
+
|
|
4896
|
+
/**
|
|
4897
|
+
* Reports the successful result of a call that sends back data on success.
|
|
4898
|
+
* Used for |SCardTransmit|, |SCardControl|, and |SCardGetAttrib|.
|
|
4899
|
+
*
|
|
4900
|
+
* This maps to:
|
|
4901
|
+
* 1. SCardTransmit
|
|
4902
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga9a2d77242a271310269065e64633ab99
|
|
4903
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardtransmit
|
|
4904
|
+
*
|
|
4905
|
+
* 2. SCardControl
|
|
4906
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gac3454d4657110fd7f753b2d3d8f4e32f
|
|
4907
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardcontrol
|
|
4908
|
+
*
|
|
4909
|
+
* 3. SCardGetAttrib
|
|
4910
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaacfec51917255b7a25b94c5104961602
|
|
4911
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardgetattrib
|
|
4912
|
+
*/
|
|
4913
|
+
reportDataResult(params: Protocol.SmartCardEmulation.ReportDataResultRequest): Promise<{id: number, result: void, sessionId: string}>;
|
|
4914
|
+
|
|
4915
|
+
/**
|
|
4916
|
+
* Reports the successful result of a |SCardStatus| call.
|
|
4917
|
+
*
|
|
4918
|
+
* This maps to:
|
|
4919
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gae49c3c894ad7ac12a5b896bde70d0382
|
|
4920
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardstatusa
|
|
4921
|
+
*/
|
|
4922
|
+
reportStatusResult(params: Protocol.SmartCardEmulation.ReportStatusResultRequest): Promise<{id: number, result: void, sessionId: string}>;
|
|
4923
|
+
|
|
4924
|
+
/**
|
|
4925
|
+
* Reports an error result for the given request.
|
|
4926
|
+
*/
|
|
4927
|
+
reportError(params: Protocol.SmartCardEmulation.ReportErrorRequest): Promise<{id: number, result: void, sessionId: string}>;
|
|
4928
|
+
|
|
4929
|
+
/**
|
|
4930
|
+
* Fired when |SCardEstablishContext| is called.
|
|
4931
|
+
*
|
|
4932
|
+
* This maps to:
|
|
4933
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaa1b8970169fd4883a6dc4a8f43f19b67
|
|
4934
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardestablishcontext
|
|
4935
|
+
*/
|
|
4936
|
+
onEstablishContextRequested(listener: (event: { params: Protocol.SmartCardEmulation.EstablishContextRequestedEvent }) => void): void;
|
|
4937
|
+
offEstablishContextRequested(listener: (event: { params: Protocol.SmartCardEmulation.EstablishContextRequestedEvent }) => void): void;
|
|
4938
|
+
onceEstablishContextRequested(eventMatcher?: (event: { params: Protocol.SmartCardEmulation.EstablishContextRequestedEvent }) => boolean): Promise<{ params: Protocol.SmartCardEmulation.EstablishContextRequestedEvent }>;
|
|
4939
|
+
|
|
4940
|
+
/**
|
|
4941
|
+
* Fired when |SCardReleaseContext| is called.
|
|
4942
|
+
*
|
|
4943
|
+
* This maps to:
|
|
4944
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga6aabcba7744c5c9419fdd6404f73a934
|
|
4945
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardreleasecontext
|
|
4946
|
+
*/
|
|
4947
|
+
onReleaseContextRequested(listener: (event: { params: Protocol.SmartCardEmulation.ReleaseContextRequestedEvent }) => void): void;
|
|
4948
|
+
offReleaseContextRequested(listener: (event: { params: Protocol.SmartCardEmulation.ReleaseContextRequestedEvent }) => void): void;
|
|
4949
|
+
onceReleaseContextRequested(eventMatcher?: (event: { params: Protocol.SmartCardEmulation.ReleaseContextRequestedEvent }) => boolean): Promise<{ params: Protocol.SmartCardEmulation.ReleaseContextRequestedEvent }>;
|
|
4950
|
+
|
|
4951
|
+
/**
|
|
4952
|
+
* Fired when |SCardListReaders| is called.
|
|
4953
|
+
*
|
|
4954
|
+
* This maps to:
|
|
4955
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga93b07815789b3cf2629d439ecf20f0d9
|
|
4956
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardlistreadersa
|
|
4957
|
+
*/
|
|
4958
|
+
onListReadersRequested(listener: (event: { params: Protocol.SmartCardEmulation.ListReadersRequestedEvent }) => void): void;
|
|
4959
|
+
offListReadersRequested(listener: (event: { params: Protocol.SmartCardEmulation.ListReadersRequestedEvent }) => void): void;
|
|
4960
|
+
onceListReadersRequested(eventMatcher?: (event: { params: Protocol.SmartCardEmulation.ListReadersRequestedEvent }) => boolean): Promise<{ params: Protocol.SmartCardEmulation.ListReadersRequestedEvent }>;
|
|
4961
|
+
|
|
4962
|
+
/**
|
|
4963
|
+
* Fired when |SCardGetStatusChange| is called. Timeout is specified in milliseconds.
|
|
4964
|
+
*
|
|
4965
|
+
* This maps to:
|
|
4966
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga33247d5d1257d59e55647c3bb717db24
|
|
4967
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardgetstatuschangea
|
|
4968
|
+
*/
|
|
4969
|
+
onGetStatusChangeRequested(listener: (event: { params: Protocol.SmartCardEmulation.GetStatusChangeRequestedEvent }) => void): void;
|
|
4970
|
+
offGetStatusChangeRequested(listener: (event: { params: Protocol.SmartCardEmulation.GetStatusChangeRequestedEvent }) => void): void;
|
|
4971
|
+
onceGetStatusChangeRequested(eventMatcher?: (event: { params: Protocol.SmartCardEmulation.GetStatusChangeRequestedEvent }) => boolean): Promise<{ params: Protocol.SmartCardEmulation.GetStatusChangeRequestedEvent }>;
|
|
4972
|
+
|
|
4973
|
+
/**
|
|
4974
|
+
* Fired when |SCardCancel| is called.
|
|
4975
|
+
*
|
|
4976
|
+
* This maps to:
|
|
4977
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaacbbc0c6d6c0cbbeb4f4debf6fbeeee6
|
|
4978
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardcancel
|
|
4979
|
+
*/
|
|
4980
|
+
onCancelRequested(listener: (event: { params: Protocol.SmartCardEmulation.CancelRequestedEvent }) => void): void;
|
|
4981
|
+
offCancelRequested(listener: (event: { params: Protocol.SmartCardEmulation.CancelRequestedEvent }) => void): void;
|
|
4982
|
+
onceCancelRequested(eventMatcher?: (event: { params: Protocol.SmartCardEmulation.CancelRequestedEvent }) => boolean): Promise<{ params: Protocol.SmartCardEmulation.CancelRequestedEvent }>;
|
|
4983
|
+
|
|
4984
|
+
/**
|
|
4985
|
+
* Fired when |SCardConnect| is called.
|
|
4986
|
+
*
|
|
4987
|
+
* This maps to:
|
|
4988
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga4e515829752e0a8dbc4d630696a8d6a5
|
|
4989
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardconnecta
|
|
4990
|
+
*/
|
|
4991
|
+
onConnectRequested(listener: (event: { params: Protocol.SmartCardEmulation.ConnectRequestedEvent }) => void): void;
|
|
4992
|
+
offConnectRequested(listener: (event: { params: Protocol.SmartCardEmulation.ConnectRequestedEvent }) => void): void;
|
|
4993
|
+
onceConnectRequested(eventMatcher?: (event: { params: Protocol.SmartCardEmulation.ConnectRequestedEvent }) => boolean): Promise<{ params: Protocol.SmartCardEmulation.ConnectRequestedEvent }>;
|
|
4994
|
+
|
|
4995
|
+
/**
|
|
4996
|
+
* Fired when |SCardDisconnect| is called.
|
|
4997
|
+
*
|
|
4998
|
+
* This maps to:
|
|
4999
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga4be198045c73ec0deb79e66c0ca1738a
|
|
5000
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scarddisconnect
|
|
5001
|
+
*/
|
|
5002
|
+
onDisconnectRequested(listener: (event: { params: Protocol.SmartCardEmulation.DisconnectRequestedEvent }) => void): void;
|
|
5003
|
+
offDisconnectRequested(listener: (event: { params: Protocol.SmartCardEmulation.DisconnectRequestedEvent }) => void): void;
|
|
5004
|
+
onceDisconnectRequested(eventMatcher?: (event: { params: Protocol.SmartCardEmulation.DisconnectRequestedEvent }) => boolean): Promise<{ params: Protocol.SmartCardEmulation.DisconnectRequestedEvent }>;
|
|
5005
|
+
|
|
5006
|
+
/**
|
|
5007
|
+
* Fired when |SCardTransmit| is called.
|
|
5008
|
+
*
|
|
5009
|
+
* This maps to:
|
|
5010
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga9a2d77242a271310269065e64633ab99
|
|
5011
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardtransmit
|
|
5012
|
+
*/
|
|
5013
|
+
onTransmitRequested(listener: (event: { params: Protocol.SmartCardEmulation.TransmitRequestedEvent }) => void): void;
|
|
5014
|
+
offTransmitRequested(listener: (event: { params: Protocol.SmartCardEmulation.TransmitRequestedEvent }) => void): void;
|
|
5015
|
+
onceTransmitRequested(eventMatcher?: (event: { params: Protocol.SmartCardEmulation.TransmitRequestedEvent }) => boolean): Promise<{ params: Protocol.SmartCardEmulation.TransmitRequestedEvent }>;
|
|
5016
|
+
|
|
5017
|
+
/**
|
|
5018
|
+
* Fired when |SCardControl| is called.
|
|
5019
|
+
*
|
|
5020
|
+
* This maps to:
|
|
5021
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gac3454d4657110fd7f753b2d3d8f4e32f
|
|
5022
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardcontrol
|
|
5023
|
+
*/
|
|
5024
|
+
onControlRequested(listener: (event: { params: Protocol.SmartCardEmulation.ControlRequestedEvent }) => void): void;
|
|
5025
|
+
offControlRequested(listener: (event: { params: Protocol.SmartCardEmulation.ControlRequestedEvent }) => void): void;
|
|
5026
|
+
onceControlRequested(eventMatcher?: (event: { params: Protocol.SmartCardEmulation.ControlRequestedEvent }) => boolean): Promise<{ params: Protocol.SmartCardEmulation.ControlRequestedEvent }>;
|
|
5027
|
+
|
|
5028
|
+
/**
|
|
5029
|
+
* Fired when |SCardGetAttrib| is called.
|
|
5030
|
+
*
|
|
5031
|
+
* This maps to:
|
|
5032
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaacfec51917255b7a25b94c5104961602
|
|
5033
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardgetattrib
|
|
5034
|
+
*/
|
|
5035
|
+
onGetAttribRequested(listener: (event: { params: Protocol.SmartCardEmulation.GetAttribRequestedEvent }) => void): void;
|
|
5036
|
+
offGetAttribRequested(listener: (event: { params: Protocol.SmartCardEmulation.GetAttribRequestedEvent }) => void): void;
|
|
5037
|
+
onceGetAttribRequested(eventMatcher?: (event: { params: Protocol.SmartCardEmulation.GetAttribRequestedEvent }) => boolean): Promise<{ params: Protocol.SmartCardEmulation.GetAttribRequestedEvent }>;
|
|
5038
|
+
|
|
5039
|
+
/**
|
|
5040
|
+
* Fired when |SCardSetAttrib| is called.
|
|
5041
|
+
*
|
|
5042
|
+
* This maps to:
|
|
5043
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga060f0038a4ddfd5dd2b8fadf3c3a2e4f
|
|
5044
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardsetattrib
|
|
5045
|
+
*/
|
|
5046
|
+
onSetAttribRequested(listener: (event: { params: Protocol.SmartCardEmulation.SetAttribRequestedEvent }) => void): void;
|
|
5047
|
+
offSetAttribRequested(listener: (event: { params: Protocol.SmartCardEmulation.SetAttribRequestedEvent }) => void): void;
|
|
5048
|
+
onceSetAttribRequested(eventMatcher?: (event: { params: Protocol.SmartCardEmulation.SetAttribRequestedEvent }) => boolean): Promise<{ params: Protocol.SmartCardEmulation.SetAttribRequestedEvent }>;
|
|
5049
|
+
|
|
5050
|
+
/**
|
|
5051
|
+
* Fired when |SCardStatus| is called.
|
|
5052
|
+
*
|
|
5053
|
+
* This maps to:
|
|
5054
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gae49c3c894ad7ac12a5b896bde70d0382
|
|
5055
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardstatusa
|
|
5056
|
+
*/
|
|
5057
|
+
onStatusRequested(listener: (event: { params: Protocol.SmartCardEmulation.StatusRequestedEvent }) => void): void;
|
|
5058
|
+
offStatusRequested(listener: (event: { params: Protocol.SmartCardEmulation.StatusRequestedEvent }) => void): void;
|
|
5059
|
+
onceStatusRequested(eventMatcher?: (event: { params: Protocol.SmartCardEmulation.StatusRequestedEvent }) => boolean): Promise<{ params: Protocol.SmartCardEmulation.StatusRequestedEvent }>;
|
|
5060
|
+
|
|
5061
|
+
/**
|
|
5062
|
+
* Fired when |SCardBeginTransaction| is called.
|
|
5063
|
+
*
|
|
5064
|
+
* This maps to:
|
|
5065
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaddb835dce01a0da1d6ca02d33ee7d861
|
|
5066
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardbegintransaction
|
|
5067
|
+
*/
|
|
5068
|
+
onBeginTransactionRequested(listener: (event: { params: Protocol.SmartCardEmulation.BeginTransactionRequestedEvent }) => void): void;
|
|
5069
|
+
offBeginTransactionRequested(listener: (event: { params: Protocol.SmartCardEmulation.BeginTransactionRequestedEvent }) => void): void;
|
|
5070
|
+
onceBeginTransactionRequested(eventMatcher?: (event: { params: Protocol.SmartCardEmulation.BeginTransactionRequestedEvent }) => boolean): Promise<{ params: Protocol.SmartCardEmulation.BeginTransactionRequestedEvent }>;
|
|
5071
|
+
|
|
5072
|
+
/**
|
|
5073
|
+
* Fired when |SCardEndTransaction| is called.
|
|
5074
|
+
*
|
|
5075
|
+
* This maps to:
|
|
5076
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gae8742473b404363e5c587f570d7e2f3b
|
|
5077
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardendtransaction
|
|
5078
|
+
*/
|
|
5079
|
+
onEndTransactionRequested(listener: (event: { params: Protocol.SmartCardEmulation.EndTransactionRequestedEvent }) => void): void;
|
|
5080
|
+
offEndTransactionRequested(listener: (event: { params: Protocol.SmartCardEmulation.EndTransactionRequestedEvent }) => void): void;
|
|
5081
|
+
onceEndTransactionRequested(eventMatcher?: (event: { params: Protocol.SmartCardEmulation.EndTransactionRequestedEvent }) => boolean): Promise<{ params: Protocol.SmartCardEmulation.EndTransactionRequestedEvent }>;
|
|
5082
|
+
|
|
5083
|
+
}
|
|
5084
|
+
|
|
4805
5085
|
export interface StorageApi {
|
|
4806
5086
|
/**
|
|
4807
5087
|
* Returns a storage key given a frame id.
|
package/types/protocol.d.ts
CHANGED
|
@@ -19071,6 +19071,315 @@ export namespace Protocol {
|
|
|
19071
19071
|
}
|
|
19072
19072
|
}
|
|
19073
19073
|
|
|
19074
|
+
/**
|
|
19075
|
+
* @experimental
|
|
19076
|
+
*/
|
|
19077
|
+
export namespace SmartCardEmulation {
|
|
19078
|
+
|
|
19079
|
+
/**
|
|
19080
|
+
* Indicates the PC/SC error code.
|
|
19081
|
+
*
|
|
19082
|
+
* This maps to:
|
|
19083
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__ErrorCodes.html
|
|
19084
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/secauthn/authentication-return-values
|
|
19085
|
+
*/
|
|
19086
|
+
export type ResultCode = ('success' | 'removed-card' | 'reset-card' | 'unpowered-card' | 'unresponsive-card' | 'unsupported-card' | 'reader-unavailable' | 'sharing-violation' | 'not-transacted' | 'no-smartcard' | 'proto-mismatch' | 'system-cancelled' | 'not-ready' | 'cancelled' | 'insufficient-buffer' | 'invalid-handle' | 'invalid-parameter' | 'invalid-value' | 'no-memory' | 'timeout' | 'unknown-reader' | 'unsupported-feature' | 'no-readers-available' | 'service-stopped' | 'no-service' | 'comm-error' | 'internal-error' | 'server-too-busy' | 'unexpected' | 'shutdown' | 'unknown-card' | 'unknown');
|
|
19087
|
+
|
|
19088
|
+
/**
|
|
19089
|
+
* Maps to the |SCARD_SHARE_*| values.
|
|
19090
|
+
*/
|
|
19091
|
+
export type ShareMode = ('shared' | 'exclusive' | 'direct');
|
|
19092
|
+
|
|
19093
|
+
/**
|
|
19094
|
+
* Indicates what the reader should do with the card.
|
|
19095
|
+
*/
|
|
19096
|
+
export type Disposition = ('leave-card' | 'reset-card' | 'unpower-card' | 'eject-card');
|
|
19097
|
+
|
|
19098
|
+
/**
|
|
19099
|
+
* Maps to |SCARD_*| connection state values.
|
|
19100
|
+
*/
|
|
19101
|
+
export type ConnectionState = ('absent' | 'present' | 'swallowed' | 'powered' | 'negotiable' | 'specific');
|
|
19102
|
+
|
|
19103
|
+
/**
|
|
19104
|
+
* Maps to the |SCARD_STATE_*| flags.
|
|
19105
|
+
*/
|
|
19106
|
+
export interface ReaderStateFlags {
|
|
19107
|
+
unaware?: boolean;
|
|
19108
|
+
ignore?: boolean;
|
|
19109
|
+
changed?: boolean;
|
|
19110
|
+
unknown?: boolean;
|
|
19111
|
+
unavailable?: boolean;
|
|
19112
|
+
empty?: boolean;
|
|
19113
|
+
present?: boolean;
|
|
19114
|
+
exclusive?: boolean;
|
|
19115
|
+
inuse?: boolean;
|
|
19116
|
+
mute?: boolean;
|
|
19117
|
+
unpowered?: boolean;
|
|
19118
|
+
}
|
|
19119
|
+
|
|
19120
|
+
/**
|
|
19121
|
+
* Maps to the |SCARD_PROTOCOL_*| flags.
|
|
19122
|
+
*/
|
|
19123
|
+
export interface ProtocolSet {
|
|
19124
|
+
t0?: boolean;
|
|
19125
|
+
t1?: boolean;
|
|
19126
|
+
raw?: boolean;
|
|
19127
|
+
}
|
|
19128
|
+
|
|
19129
|
+
/**
|
|
19130
|
+
* Maps to the |SCARD_PROTOCOL_*| values.
|
|
19131
|
+
*/
|
|
19132
|
+
export type Protocol = ('t0' | 't1' | 'raw');
|
|
19133
|
+
|
|
19134
|
+
export interface ReaderStateIn {
|
|
19135
|
+
reader: string;
|
|
19136
|
+
currentState: ReaderStateFlags;
|
|
19137
|
+
currentInsertionCount: integer;
|
|
19138
|
+
}
|
|
19139
|
+
|
|
19140
|
+
export interface ReaderStateOut {
|
|
19141
|
+
reader: string;
|
|
19142
|
+
eventState: ReaderStateFlags;
|
|
19143
|
+
eventCount: integer;
|
|
19144
|
+
atr: string;
|
|
19145
|
+
}
|
|
19146
|
+
|
|
19147
|
+
export interface ReportEstablishContextResultRequest {
|
|
19148
|
+
requestId: string;
|
|
19149
|
+
contextId: integer;
|
|
19150
|
+
}
|
|
19151
|
+
|
|
19152
|
+
export interface ReportReleaseContextResultRequest {
|
|
19153
|
+
requestId: string;
|
|
19154
|
+
}
|
|
19155
|
+
|
|
19156
|
+
export interface ReportListReadersResultRequest {
|
|
19157
|
+
requestId: string;
|
|
19158
|
+
readers: string[];
|
|
19159
|
+
}
|
|
19160
|
+
|
|
19161
|
+
export interface ReportGetStatusChangeResultRequest {
|
|
19162
|
+
requestId: string;
|
|
19163
|
+
readerStates: ReaderStateOut[];
|
|
19164
|
+
}
|
|
19165
|
+
|
|
19166
|
+
export interface ReportBeginTransactionResultRequest {
|
|
19167
|
+
requestId: string;
|
|
19168
|
+
}
|
|
19169
|
+
|
|
19170
|
+
export interface ReportPlainResultRequest {
|
|
19171
|
+
requestId: string;
|
|
19172
|
+
}
|
|
19173
|
+
|
|
19174
|
+
export interface ReportConnectResultRequest {
|
|
19175
|
+
requestId: string;
|
|
19176
|
+
handle: integer;
|
|
19177
|
+
activeProtocol?: Protocol;
|
|
19178
|
+
}
|
|
19179
|
+
|
|
19180
|
+
export interface ReportDataResultRequest {
|
|
19181
|
+
requestId: string;
|
|
19182
|
+
data: string;
|
|
19183
|
+
}
|
|
19184
|
+
|
|
19185
|
+
export interface ReportStatusResultRequest {
|
|
19186
|
+
requestId: string;
|
|
19187
|
+
readerName: string;
|
|
19188
|
+
state: ConnectionState;
|
|
19189
|
+
atr: string;
|
|
19190
|
+
protocol?: Protocol;
|
|
19191
|
+
}
|
|
19192
|
+
|
|
19193
|
+
export interface ReportErrorRequest {
|
|
19194
|
+
requestId: string;
|
|
19195
|
+
resultCode: ResultCode;
|
|
19196
|
+
}
|
|
19197
|
+
|
|
19198
|
+
/**
|
|
19199
|
+
* Fired when |SCardEstablishContext| is called.
|
|
19200
|
+
*
|
|
19201
|
+
* This maps to:
|
|
19202
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaa1b8970169fd4883a6dc4a8f43f19b67
|
|
19203
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardestablishcontext
|
|
19204
|
+
*/
|
|
19205
|
+
export interface EstablishContextRequestedEvent {
|
|
19206
|
+
requestId: string;
|
|
19207
|
+
}
|
|
19208
|
+
|
|
19209
|
+
/**
|
|
19210
|
+
* Fired when |SCardReleaseContext| is called.
|
|
19211
|
+
*
|
|
19212
|
+
* This maps to:
|
|
19213
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga6aabcba7744c5c9419fdd6404f73a934
|
|
19214
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardreleasecontext
|
|
19215
|
+
*/
|
|
19216
|
+
export interface ReleaseContextRequestedEvent {
|
|
19217
|
+
requestId: string;
|
|
19218
|
+
contextId: integer;
|
|
19219
|
+
}
|
|
19220
|
+
|
|
19221
|
+
/**
|
|
19222
|
+
* Fired when |SCardListReaders| is called.
|
|
19223
|
+
*
|
|
19224
|
+
* This maps to:
|
|
19225
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga93b07815789b3cf2629d439ecf20f0d9
|
|
19226
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardlistreadersa
|
|
19227
|
+
*/
|
|
19228
|
+
export interface ListReadersRequestedEvent {
|
|
19229
|
+
requestId: string;
|
|
19230
|
+
contextId: integer;
|
|
19231
|
+
}
|
|
19232
|
+
|
|
19233
|
+
/**
|
|
19234
|
+
* Fired when |SCardGetStatusChange| is called. Timeout is specified in milliseconds.
|
|
19235
|
+
*
|
|
19236
|
+
* This maps to:
|
|
19237
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga33247d5d1257d59e55647c3bb717db24
|
|
19238
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardgetstatuschangea
|
|
19239
|
+
*/
|
|
19240
|
+
export interface GetStatusChangeRequestedEvent {
|
|
19241
|
+
requestId: string;
|
|
19242
|
+
contextId: integer;
|
|
19243
|
+
readerStates: ReaderStateIn[];
|
|
19244
|
+
/**
|
|
19245
|
+
* in milliseconds, if absent, it means "infinite"
|
|
19246
|
+
*/
|
|
19247
|
+
timeout?: integer;
|
|
19248
|
+
}
|
|
19249
|
+
|
|
19250
|
+
/**
|
|
19251
|
+
* Fired when |SCardCancel| is called.
|
|
19252
|
+
*
|
|
19253
|
+
* This maps to:
|
|
19254
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaacbbc0c6d6c0cbbeb4f4debf6fbeeee6
|
|
19255
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardcancel
|
|
19256
|
+
*/
|
|
19257
|
+
export interface CancelRequestedEvent {
|
|
19258
|
+
requestId: string;
|
|
19259
|
+
contextId: integer;
|
|
19260
|
+
}
|
|
19261
|
+
|
|
19262
|
+
/**
|
|
19263
|
+
* Fired when |SCardConnect| is called.
|
|
19264
|
+
*
|
|
19265
|
+
* This maps to:
|
|
19266
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga4e515829752e0a8dbc4d630696a8d6a5
|
|
19267
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardconnecta
|
|
19268
|
+
*/
|
|
19269
|
+
export interface ConnectRequestedEvent {
|
|
19270
|
+
requestId: string;
|
|
19271
|
+
contextId: integer;
|
|
19272
|
+
reader: string;
|
|
19273
|
+
shareMode: ShareMode;
|
|
19274
|
+
preferredProtocols: ProtocolSet;
|
|
19275
|
+
}
|
|
19276
|
+
|
|
19277
|
+
/**
|
|
19278
|
+
* Fired when |SCardDisconnect| is called.
|
|
19279
|
+
*
|
|
19280
|
+
* This maps to:
|
|
19281
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga4be198045c73ec0deb79e66c0ca1738a
|
|
19282
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scarddisconnect
|
|
19283
|
+
*/
|
|
19284
|
+
export interface DisconnectRequestedEvent {
|
|
19285
|
+
requestId: string;
|
|
19286
|
+
handle: integer;
|
|
19287
|
+
disposition: Disposition;
|
|
19288
|
+
}
|
|
19289
|
+
|
|
19290
|
+
/**
|
|
19291
|
+
* Fired when |SCardTransmit| is called.
|
|
19292
|
+
*
|
|
19293
|
+
* This maps to:
|
|
19294
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga9a2d77242a271310269065e64633ab99
|
|
19295
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardtransmit
|
|
19296
|
+
*/
|
|
19297
|
+
export interface TransmitRequestedEvent {
|
|
19298
|
+
requestId: string;
|
|
19299
|
+
handle: integer;
|
|
19300
|
+
data: string;
|
|
19301
|
+
protocol?: Protocol;
|
|
19302
|
+
}
|
|
19303
|
+
|
|
19304
|
+
/**
|
|
19305
|
+
* Fired when |SCardControl| is called.
|
|
19306
|
+
*
|
|
19307
|
+
* This maps to:
|
|
19308
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gac3454d4657110fd7f753b2d3d8f4e32f
|
|
19309
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardcontrol
|
|
19310
|
+
*/
|
|
19311
|
+
export interface ControlRequestedEvent {
|
|
19312
|
+
requestId: string;
|
|
19313
|
+
handle: integer;
|
|
19314
|
+
controlCode: integer;
|
|
19315
|
+
data: string;
|
|
19316
|
+
}
|
|
19317
|
+
|
|
19318
|
+
/**
|
|
19319
|
+
* Fired when |SCardGetAttrib| is called.
|
|
19320
|
+
*
|
|
19321
|
+
* This maps to:
|
|
19322
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaacfec51917255b7a25b94c5104961602
|
|
19323
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardgetattrib
|
|
19324
|
+
*/
|
|
19325
|
+
export interface GetAttribRequestedEvent {
|
|
19326
|
+
requestId: string;
|
|
19327
|
+
handle: integer;
|
|
19328
|
+
attribId: integer;
|
|
19329
|
+
}
|
|
19330
|
+
|
|
19331
|
+
/**
|
|
19332
|
+
* Fired when |SCardSetAttrib| is called.
|
|
19333
|
+
*
|
|
19334
|
+
* This maps to:
|
|
19335
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga060f0038a4ddfd5dd2b8fadf3c3a2e4f
|
|
19336
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardsetattrib
|
|
19337
|
+
*/
|
|
19338
|
+
export interface SetAttribRequestedEvent {
|
|
19339
|
+
requestId: string;
|
|
19340
|
+
handle: integer;
|
|
19341
|
+
attribId: integer;
|
|
19342
|
+
data: string;
|
|
19343
|
+
}
|
|
19344
|
+
|
|
19345
|
+
/**
|
|
19346
|
+
* Fired when |SCardStatus| is called.
|
|
19347
|
+
*
|
|
19348
|
+
* This maps to:
|
|
19349
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gae49c3c894ad7ac12a5b896bde70d0382
|
|
19350
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardstatusa
|
|
19351
|
+
*/
|
|
19352
|
+
export interface StatusRequestedEvent {
|
|
19353
|
+
requestId: string;
|
|
19354
|
+
handle: integer;
|
|
19355
|
+
}
|
|
19356
|
+
|
|
19357
|
+
/**
|
|
19358
|
+
* Fired when |SCardBeginTransaction| is called.
|
|
19359
|
+
*
|
|
19360
|
+
* This maps to:
|
|
19361
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaddb835dce01a0da1d6ca02d33ee7d861
|
|
19362
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardbegintransaction
|
|
19363
|
+
*/
|
|
19364
|
+
export interface BeginTransactionRequestedEvent {
|
|
19365
|
+
requestId: string;
|
|
19366
|
+
handle: integer;
|
|
19367
|
+
}
|
|
19368
|
+
|
|
19369
|
+
/**
|
|
19370
|
+
* Fired when |SCardEndTransaction| is called.
|
|
19371
|
+
*
|
|
19372
|
+
* This maps to:
|
|
19373
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gae8742473b404363e5c587f570d7e2f3b
|
|
19374
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardendtransaction
|
|
19375
|
+
*/
|
|
19376
|
+
export interface EndTransactionRequestedEvent {
|
|
19377
|
+
requestId: string;
|
|
19378
|
+
handle: integer;
|
|
19379
|
+
disposition: Disposition;
|
|
19380
|
+
}
|
|
19381
|
+
}
|
|
19382
|
+
|
|
19074
19383
|
/**
|
|
19075
19384
|
* @experimental
|
|
19076
19385
|
*/
|