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
|
@@ -799,6 +799,118 @@ export namespace ProtocolMapping {
|
|
|
799
799
|
'ServiceWorker.workerErrorReported': [Protocol.ServiceWorker.WorkerErrorReportedEvent];
|
|
800
800
|
'ServiceWorker.workerRegistrationUpdated': [Protocol.ServiceWorker.WorkerRegistrationUpdatedEvent];
|
|
801
801
|
'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];
|
|
802
914
|
/**
|
|
803
915
|
* A cache's contents have been modified.
|
|
804
916
|
*/
|
|
@@ -5340,6 +5452,151 @@ export namespace ProtocolMapping {
|
|
|
5340
5452
|
paramsType: [Protocol.ServiceWorker.UpdateRegistrationRequest];
|
|
5341
5453
|
returnType: void;
|
|
5342
5454
|
};
|
|
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
|
+
};
|
|
5343
5600
|
/**
|
|
5344
5601
|
* Returns a storage key given a frame id.
|
|
5345
5602
|
* Deprecated. Please use Storage.getStorageKey instead.
|
|
@@ -106,6 +106,8 @@ export namespace ProtocolProxyApi {
|
|
|
106
106
|
|
|
107
107
|
ServiceWorker: ServiceWorkerApi;
|
|
108
108
|
|
|
109
|
+
SmartCardEmulation: SmartCardEmulationApi;
|
|
110
|
+
|
|
109
111
|
Storage: StorageApi;
|
|
110
112
|
|
|
111
113
|
SystemInfo: SystemInfoApi;
|
|
@@ -4450,6 +4452,256 @@ export namespace ProtocolProxyApi {
|
|
|
4450
4452
|
|
|
4451
4453
|
}
|
|
4452
4454
|
|
|
4455
|
+
export interface SmartCardEmulationApi {
|
|
4456
|
+
/**
|
|
4457
|
+
* Enables the |SmartCardEmulation| domain.
|
|
4458
|
+
*/
|
|
4459
|
+
enable(): Promise<void>;
|
|
4460
|
+
|
|
4461
|
+
/**
|
|
4462
|
+
* Disables the |SmartCardEmulation| domain.
|
|
4463
|
+
*/
|
|
4464
|
+
disable(): Promise<void>;
|
|
4465
|
+
|
|
4466
|
+
/**
|
|
4467
|
+
* Reports the successful result of a |SCardEstablishContext| call.
|
|
4468
|
+
*
|
|
4469
|
+
* This maps to:
|
|
4470
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaa1b8970169fd4883a6dc4a8f43f19b67
|
|
4471
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardestablishcontext
|
|
4472
|
+
*/
|
|
4473
|
+
reportEstablishContextResult(params: Protocol.SmartCardEmulation.ReportEstablishContextResultRequest): Promise<void>;
|
|
4474
|
+
|
|
4475
|
+
/**
|
|
4476
|
+
* Reports the successful result of a |SCardReleaseContext| call.
|
|
4477
|
+
*
|
|
4478
|
+
* This maps to:
|
|
4479
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga6aabcba7744c5c9419fdd6404f73a934
|
|
4480
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardreleasecontext
|
|
4481
|
+
*/
|
|
4482
|
+
reportReleaseContextResult(params: Protocol.SmartCardEmulation.ReportReleaseContextResultRequest): Promise<void>;
|
|
4483
|
+
|
|
4484
|
+
/**
|
|
4485
|
+
* Reports the successful result of a |SCardListReaders| call.
|
|
4486
|
+
*
|
|
4487
|
+
* This maps to:
|
|
4488
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga93b07815789b3cf2629d439ecf20f0d9
|
|
4489
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardlistreadersa
|
|
4490
|
+
*/
|
|
4491
|
+
reportListReadersResult(params: Protocol.SmartCardEmulation.ReportListReadersResultRequest): Promise<void>;
|
|
4492
|
+
|
|
4493
|
+
/**
|
|
4494
|
+
* Reports the successful result of a |SCardGetStatusChange| call.
|
|
4495
|
+
*
|
|
4496
|
+
* This maps to:
|
|
4497
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga33247d5d1257d59e55647c3bb717db24
|
|
4498
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardgetstatuschangea
|
|
4499
|
+
*/
|
|
4500
|
+
reportGetStatusChangeResult(params: Protocol.SmartCardEmulation.ReportGetStatusChangeResultRequest): Promise<void>;
|
|
4501
|
+
|
|
4502
|
+
/**
|
|
4503
|
+
* Reports the result of a |SCardBeginTransaction| call.
|
|
4504
|
+
* On success, this creates a new transaction object.
|
|
4505
|
+
*
|
|
4506
|
+
* This maps to:
|
|
4507
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaddb835dce01a0da1d6ca02d33ee7d861
|
|
4508
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardbegintransaction
|
|
4509
|
+
*/
|
|
4510
|
+
reportBeginTransactionResult(params: Protocol.SmartCardEmulation.ReportBeginTransactionResultRequest): Promise<void>;
|
|
4511
|
+
|
|
4512
|
+
/**
|
|
4513
|
+
* Reports the successful result of a call that returns only a result code.
|
|
4514
|
+
* Used for: |SCardCancel|, |SCardDisconnect|, |SCardSetAttrib|, |SCardEndTransaction|.
|
|
4515
|
+
*
|
|
4516
|
+
* This maps to:
|
|
4517
|
+
* 1. SCardCancel
|
|
4518
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaacbbc0c6d6c0cbbeb4f4debf6fbeeee6
|
|
4519
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardcancel
|
|
4520
|
+
*
|
|
4521
|
+
* 2. SCardDisconnect
|
|
4522
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga4be198045c73ec0deb79e66c0ca1738a
|
|
4523
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scarddisconnect
|
|
4524
|
+
*
|
|
4525
|
+
* 3. SCardSetAttrib
|
|
4526
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga060f0038a4ddfd5dd2b8fadf3c3a2e4f
|
|
4527
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardsetattrib
|
|
4528
|
+
*
|
|
4529
|
+
* 4. SCardEndTransaction
|
|
4530
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gae8742473b404363e5c587f570d7e2f3b
|
|
4531
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardendtransaction
|
|
4532
|
+
*/
|
|
4533
|
+
reportPlainResult(params: Protocol.SmartCardEmulation.ReportPlainResultRequest): Promise<void>;
|
|
4534
|
+
|
|
4535
|
+
/**
|
|
4536
|
+
* Reports the successful result of a |SCardConnect| call.
|
|
4537
|
+
*
|
|
4538
|
+
* This maps to:
|
|
4539
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga4e515829752e0a8dbc4d630696a8d6a5
|
|
4540
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardconnecta
|
|
4541
|
+
*/
|
|
4542
|
+
reportConnectResult(params: Protocol.SmartCardEmulation.ReportConnectResultRequest): Promise<void>;
|
|
4543
|
+
|
|
4544
|
+
/**
|
|
4545
|
+
* Reports the successful result of a call that sends back data on success.
|
|
4546
|
+
* Used for |SCardTransmit|, |SCardControl|, and |SCardGetAttrib|.
|
|
4547
|
+
*
|
|
4548
|
+
* This maps to:
|
|
4549
|
+
* 1. SCardTransmit
|
|
4550
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga9a2d77242a271310269065e64633ab99
|
|
4551
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardtransmit
|
|
4552
|
+
*
|
|
4553
|
+
* 2. SCardControl
|
|
4554
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gac3454d4657110fd7f753b2d3d8f4e32f
|
|
4555
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardcontrol
|
|
4556
|
+
*
|
|
4557
|
+
* 3. SCardGetAttrib
|
|
4558
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaacfec51917255b7a25b94c5104961602
|
|
4559
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardgetattrib
|
|
4560
|
+
*/
|
|
4561
|
+
reportDataResult(params: Protocol.SmartCardEmulation.ReportDataResultRequest): Promise<void>;
|
|
4562
|
+
|
|
4563
|
+
/**
|
|
4564
|
+
* Reports the successful result of a |SCardStatus| call.
|
|
4565
|
+
*
|
|
4566
|
+
* This maps to:
|
|
4567
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gae49c3c894ad7ac12a5b896bde70d0382
|
|
4568
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardstatusa
|
|
4569
|
+
*/
|
|
4570
|
+
reportStatusResult(params: Protocol.SmartCardEmulation.ReportStatusResultRequest): Promise<void>;
|
|
4571
|
+
|
|
4572
|
+
/**
|
|
4573
|
+
* Reports an error result for the given request.
|
|
4574
|
+
*/
|
|
4575
|
+
reportError(params: Protocol.SmartCardEmulation.ReportErrorRequest): Promise<void>;
|
|
4576
|
+
|
|
4577
|
+
/**
|
|
4578
|
+
* Fired when |SCardEstablishContext| is called.
|
|
4579
|
+
*
|
|
4580
|
+
* This maps to:
|
|
4581
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaa1b8970169fd4883a6dc4a8f43f19b67
|
|
4582
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardestablishcontext
|
|
4583
|
+
*/
|
|
4584
|
+
on(event: 'establishContextRequested', listener: (params: Protocol.SmartCardEmulation.EstablishContextRequestedEvent) => void): void;
|
|
4585
|
+
|
|
4586
|
+
/**
|
|
4587
|
+
* Fired when |SCardReleaseContext| is called.
|
|
4588
|
+
*
|
|
4589
|
+
* This maps to:
|
|
4590
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga6aabcba7744c5c9419fdd6404f73a934
|
|
4591
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardreleasecontext
|
|
4592
|
+
*/
|
|
4593
|
+
on(event: 'releaseContextRequested', listener: (params: Protocol.SmartCardEmulation.ReleaseContextRequestedEvent) => void): void;
|
|
4594
|
+
|
|
4595
|
+
/**
|
|
4596
|
+
* Fired when |SCardListReaders| is called.
|
|
4597
|
+
*
|
|
4598
|
+
* This maps to:
|
|
4599
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga93b07815789b3cf2629d439ecf20f0d9
|
|
4600
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardlistreadersa
|
|
4601
|
+
*/
|
|
4602
|
+
on(event: 'listReadersRequested', listener: (params: Protocol.SmartCardEmulation.ListReadersRequestedEvent) => void): void;
|
|
4603
|
+
|
|
4604
|
+
/**
|
|
4605
|
+
* Fired when |SCardGetStatusChange| is called. Timeout is specified in milliseconds.
|
|
4606
|
+
*
|
|
4607
|
+
* This maps to:
|
|
4608
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga33247d5d1257d59e55647c3bb717db24
|
|
4609
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardgetstatuschangea
|
|
4610
|
+
*/
|
|
4611
|
+
on(event: 'getStatusChangeRequested', listener: (params: Protocol.SmartCardEmulation.GetStatusChangeRequestedEvent) => void): void;
|
|
4612
|
+
|
|
4613
|
+
/**
|
|
4614
|
+
* Fired when |SCardCancel| is called.
|
|
4615
|
+
*
|
|
4616
|
+
* This maps to:
|
|
4617
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaacbbc0c6d6c0cbbeb4f4debf6fbeeee6
|
|
4618
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardcancel
|
|
4619
|
+
*/
|
|
4620
|
+
on(event: 'cancelRequested', listener: (params: Protocol.SmartCardEmulation.CancelRequestedEvent) => void): void;
|
|
4621
|
+
|
|
4622
|
+
/**
|
|
4623
|
+
* Fired when |SCardConnect| is called.
|
|
4624
|
+
*
|
|
4625
|
+
* This maps to:
|
|
4626
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga4e515829752e0a8dbc4d630696a8d6a5
|
|
4627
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardconnecta
|
|
4628
|
+
*/
|
|
4629
|
+
on(event: 'connectRequested', listener: (params: Protocol.SmartCardEmulation.ConnectRequestedEvent) => void): void;
|
|
4630
|
+
|
|
4631
|
+
/**
|
|
4632
|
+
* Fired when |SCardDisconnect| is called.
|
|
4633
|
+
*
|
|
4634
|
+
* This maps to:
|
|
4635
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga4be198045c73ec0deb79e66c0ca1738a
|
|
4636
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scarddisconnect
|
|
4637
|
+
*/
|
|
4638
|
+
on(event: 'disconnectRequested', listener: (params: Protocol.SmartCardEmulation.DisconnectRequestedEvent) => void): void;
|
|
4639
|
+
|
|
4640
|
+
/**
|
|
4641
|
+
* Fired when |SCardTransmit| is called.
|
|
4642
|
+
*
|
|
4643
|
+
* This maps to:
|
|
4644
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga9a2d77242a271310269065e64633ab99
|
|
4645
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardtransmit
|
|
4646
|
+
*/
|
|
4647
|
+
on(event: 'transmitRequested', listener: (params: Protocol.SmartCardEmulation.TransmitRequestedEvent) => void): void;
|
|
4648
|
+
|
|
4649
|
+
/**
|
|
4650
|
+
* Fired when |SCardControl| is called.
|
|
4651
|
+
*
|
|
4652
|
+
* This maps to:
|
|
4653
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gac3454d4657110fd7f753b2d3d8f4e32f
|
|
4654
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardcontrol
|
|
4655
|
+
*/
|
|
4656
|
+
on(event: 'controlRequested', listener: (params: Protocol.SmartCardEmulation.ControlRequestedEvent) => void): void;
|
|
4657
|
+
|
|
4658
|
+
/**
|
|
4659
|
+
* Fired when |SCardGetAttrib| is called.
|
|
4660
|
+
*
|
|
4661
|
+
* This maps to:
|
|
4662
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaacfec51917255b7a25b94c5104961602
|
|
4663
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardgetattrib
|
|
4664
|
+
*/
|
|
4665
|
+
on(event: 'getAttribRequested', listener: (params: Protocol.SmartCardEmulation.GetAttribRequestedEvent) => void): void;
|
|
4666
|
+
|
|
4667
|
+
/**
|
|
4668
|
+
* Fired when |SCardSetAttrib| is called.
|
|
4669
|
+
*
|
|
4670
|
+
* This maps to:
|
|
4671
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga060f0038a4ddfd5dd2b8fadf3c3a2e4f
|
|
4672
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardsetattrib
|
|
4673
|
+
*/
|
|
4674
|
+
on(event: 'setAttribRequested', listener: (params: Protocol.SmartCardEmulation.SetAttribRequestedEvent) => void): void;
|
|
4675
|
+
|
|
4676
|
+
/**
|
|
4677
|
+
* Fired when |SCardStatus| is called.
|
|
4678
|
+
*
|
|
4679
|
+
* This maps to:
|
|
4680
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gae49c3c894ad7ac12a5b896bde70d0382
|
|
4681
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardstatusa
|
|
4682
|
+
*/
|
|
4683
|
+
on(event: 'statusRequested', listener: (params: Protocol.SmartCardEmulation.StatusRequestedEvent) => void): void;
|
|
4684
|
+
|
|
4685
|
+
/**
|
|
4686
|
+
* Fired when |SCardBeginTransaction| is called.
|
|
4687
|
+
*
|
|
4688
|
+
* This maps to:
|
|
4689
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaddb835dce01a0da1d6ca02d33ee7d861
|
|
4690
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardbegintransaction
|
|
4691
|
+
*/
|
|
4692
|
+
on(event: 'beginTransactionRequested', listener: (params: Protocol.SmartCardEmulation.BeginTransactionRequestedEvent) => void): void;
|
|
4693
|
+
|
|
4694
|
+
/**
|
|
4695
|
+
* Fired when |SCardEndTransaction| is called.
|
|
4696
|
+
*
|
|
4697
|
+
* This maps to:
|
|
4698
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gae8742473b404363e5c587f570d7e2f3b
|
|
4699
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardendtransaction
|
|
4700
|
+
*/
|
|
4701
|
+
on(event: 'endTransactionRequested', listener: (params: Protocol.SmartCardEmulation.EndTransactionRequestedEvent) => void): void;
|
|
4702
|
+
|
|
4703
|
+
}
|
|
4704
|
+
|
|
4453
4705
|
export interface StorageApi {
|
|
4454
4706
|
/**
|
|
4455
4707
|
* Returns a storage key given a frame id.
|