devtools-protocol 0.0.1574117 → 0.0.1577676
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 +657 -0
- package/package.json +1 -1
- package/pdl/browser_protocol.pdl +1 -0
- package/pdl/domains/Extensions.pdl +13 -0
- package/types/protocol-mapping.d.ts +266 -0
- package/types/protocol-proxy-api.d.ts +259 -0
- package/types/protocol-tests-proxy-api.d.ts +287 -0
- package/types/protocol.d.ts +325 -0
package/package.json
CHANGED
package/pdl/browser_protocol.pdl
CHANGED
|
@@ -48,6 +48,7 @@ include domains/PerformanceTimeline.pdl
|
|
|
48
48
|
include domains/Preload.pdl
|
|
49
49
|
include domains/Security.pdl
|
|
50
50
|
include domains/ServiceWorker.pdl
|
|
51
|
+
include domains/SmartCardEmulation.pdl
|
|
51
52
|
include domains/Storage.pdl
|
|
52
53
|
include domains/SystemInfo.pdl
|
|
53
54
|
include domains/Target.pdl
|
|
@@ -13,6 +13,17 @@ experimental domain Extensions
|
|
|
13
13
|
local
|
|
14
14
|
sync
|
|
15
15
|
managed
|
|
16
|
+
|
|
17
|
+
# Runs an extension default action.
|
|
18
|
+
# Available if the client is connected using the --remote-debugging-pipe
|
|
19
|
+
# flag and the --enable-unsafe-extension-debugging flag is set.
|
|
20
|
+
command triggerAction
|
|
21
|
+
parameters
|
|
22
|
+
# Extension id.
|
|
23
|
+
string id
|
|
24
|
+
# A tab target ID to trigger the default extension action on.
|
|
25
|
+
string targetId
|
|
26
|
+
|
|
16
27
|
# Installs an unpacked extension from the filesystem similar to
|
|
17
28
|
# --load-extension CLI flags. Returns extension ID once the extension
|
|
18
29
|
# has been installed. Available if the client is connected using the
|
|
@@ -22,6 +33,8 @@ experimental domain Extensions
|
|
|
22
33
|
parameters
|
|
23
34
|
# Absolute file path.
|
|
24
35
|
string path
|
|
36
|
+
# Enable the extension in incognito
|
|
37
|
+
optional boolean enableInIncognito
|
|
25
38
|
returns
|
|
26
39
|
# Extension id.
|
|
27
40
|
string id
|
|
@@ -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
|
*/
|
|
@@ -3486,6 +3598,15 @@ export namespace ProtocolMapping {
|
|
|
3486
3598
|
paramsType: [];
|
|
3487
3599
|
returnType: void;
|
|
3488
3600
|
};
|
|
3601
|
+
/**
|
|
3602
|
+
* Runs an extension default action.
|
|
3603
|
+
* Available if the client is connected using the --remote-debugging-pipe
|
|
3604
|
+
* flag and the --enable-unsafe-extension-debugging flag is set.
|
|
3605
|
+
*/
|
|
3606
|
+
'Extensions.triggerAction': {
|
|
3607
|
+
paramsType: [Protocol.Extensions.TriggerActionRequest];
|
|
3608
|
+
returnType: void;
|
|
3609
|
+
};
|
|
3489
3610
|
/**
|
|
3490
3611
|
* Installs an unpacked extension from the filesystem similar to
|
|
3491
3612
|
* --load-extension CLI flags. Returns extension ID once the extension
|
|
@@ -5340,6 +5461,151 @@ export namespace ProtocolMapping {
|
|
|
5340
5461
|
paramsType: [Protocol.ServiceWorker.UpdateRegistrationRequest];
|
|
5341
5462
|
returnType: void;
|
|
5342
5463
|
};
|
|
5464
|
+
/**
|
|
5465
|
+
* Enables the |SmartCardEmulation| domain.
|
|
5466
|
+
*/
|
|
5467
|
+
'SmartCardEmulation.enable': {
|
|
5468
|
+
paramsType: [];
|
|
5469
|
+
returnType: void;
|
|
5470
|
+
};
|
|
5471
|
+
/**
|
|
5472
|
+
* Disables the |SmartCardEmulation| domain.
|
|
5473
|
+
*/
|
|
5474
|
+
'SmartCardEmulation.disable': {
|
|
5475
|
+
paramsType: [];
|
|
5476
|
+
returnType: void;
|
|
5477
|
+
};
|
|
5478
|
+
/**
|
|
5479
|
+
* Reports the successful result of a |SCardEstablishContext| call.
|
|
5480
|
+
*
|
|
5481
|
+
* This maps to:
|
|
5482
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaa1b8970169fd4883a6dc4a8f43f19b67
|
|
5483
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardestablishcontext
|
|
5484
|
+
*/
|
|
5485
|
+
'SmartCardEmulation.reportEstablishContextResult': {
|
|
5486
|
+
paramsType: [Protocol.SmartCardEmulation.ReportEstablishContextResultRequest];
|
|
5487
|
+
returnType: void;
|
|
5488
|
+
};
|
|
5489
|
+
/**
|
|
5490
|
+
* Reports the successful result of a |SCardReleaseContext| call.
|
|
5491
|
+
*
|
|
5492
|
+
* This maps to:
|
|
5493
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga6aabcba7744c5c9419fdd6404f73a934
|
|
5494
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardreleasecontext
|
|
5495
|
+
*/
|
|
5496
|
+
'SmartCardEmulation.reportReleaseContextResult': {
|
|
5497
|
+
paramsType: [Protocol.SmartCardEmulation.ReportReleaseContextResultRequest];
|
|
5498
|
+
returnType: void;
|
|
5499
|
+
};
|
|
5500
|
+
/**
|
|
5501
|
+
* Reports the successful result of a |SCardListReaders| call.
|
|
5502
|
+
*
|
|
5503
|
+
* This maps to:
|
|
5504
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga93b07815789b3cf2629d439ecf20f0d9
|
|
5505
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardlistreadersa
|
|
5506
|
+
*/
|
|
5507
|
+
'SmartCardEmulation.reportListReadersResult': {
|
|
5508
|
+
paramsType: [Protocol.SmartCardEmulation.ReportListReadersResultRequest];
|
|
5509
|
+
returnType: void;
|
|
5510
|
+
};
|
|
5511
|
+
/**
|
|
5512
|
+
* Reports the successful result of a |SCardGetStatusChange| call.
|
|
5513
|
+
*
|
|
5514
|
+
* This maps to:
|
|
5515
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga33247d5d1257d59e55647c3bb717db24
|
|
5516
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardgetstatuschangea
|
|
5517
|
+
*/
|
|
5518
|
+
'SmartCardEmulation.reportGetStatusChangeResult': {
|
|
5519
|
+
paramsType: [Protocol.SmartCardEmulation.ReportGetStatusChangeResultRequest];
|
|
5520
|
+
returnType: void;
|
|
5521
|
+
};
|
|
5522
|
+
/**
|
|
5523
|
+
* Reports the result of a |SCardBeginTransaction| call.
|
|
5524
|
+
* On success, this creates a new transaction object.
|
|
5525
|
+
*
|
|
5526
|
+
* This maps to:
|
|
5527
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaddb835dce01a0da1d6ca02d33ee7d861
|
|
5528
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardbegintransaction
|
|
5529
|
+
*/
|
|
5530
|
+
'SmartCardEmulation.reportBeginTransactionResult': {
|
|
5531
|
+
paramsType: [Protocol.SmartCardEmulation.ReportBeginTransactionResultRequest];
|
|
5532
|
+
returnType: void;
|
|
5533
|
+
};
|
|
5534
|
+
/**
|
|
5535
|
+
* Reports the successful result of a call that returns only a result code.
|
|
5536
|
+
* Used for: |SCardCancel|, |SCardDisconnect|, |SCardSetAttrib|, |SCardEndTransaction|.
|
|
5537
|
+
*
|
|
5538
|
+
* This maps to:
|
|
5539
|
+
* 1. SCardCancel
|
|
5540
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaacbbc0c6d6c0cbbeb4f4debf6fbeeee6
|
|
5541
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardcancel
|
|
5542
|
+
*
|
|
5543
|
+
* 2. SCardDisconnect
|
|
5544
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga4be198045c73ec0deb79e66c0ca1738a
|
|
5545
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scarddisconnect
|
|
5546
|
+
*
|
|
5547
|
+
* 3. SCardSetAttrib
|
|
5548
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga060f0038a4ddfd5dd2b8fadf3c3a2e4f
|
|
5549
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardsetattrib
|
|
5550
|
+
*
|
|
5551
|
+
* 4. SCardEndTransaction
|
|
5552
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gae8742473b404363e5c587f570d7e2f3b
|
|
5553
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardendtransaction
|
|
5554
|
+
*/
|
|
5555
|
+
'SmartCardEmulation.reportPlainResult': {
|
|
5556
|
+
paramsType: [Protocol.SmartCardEmulation.ReportPlainResultRequest];
|
|
5557
|
+
returnType: void;
|
|
5558
|
+
};
|
|
5559
|
+
/**
|
|
5560
|
+
* Reports the successful result of a |SCardConnect| call.
|
|
5561
|
+
*
|
|
5562
|
+
* This maps to:
|
|
5563
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga4e515829752e0a8dbc4d630696a8d6a5
|
|
5564
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardconnecta
|
|
5565
|
+
*/
|
|
5566
|
+
'SmartCardEmulation.reportConnectResult': {
|
|
5567
|
+
paramsType: [Protocol.SmartCardEmulation.ReportConnectResultRequest];
|
|
5568
|
+
returnType: void;
|
|
5569
|
+
};
|
|
5570
|
+
/**
|
|
5571
|
+
* Reports the successful result of a call that sends back data on success.
|
|
5572
|
+
* Used for |SCardTransmit|, |SCardControl|, and |SCardGetAttrib|.
|
|
5573
|
+
*
|
|
5574
|
+
* This maps to:
|
|
5575
|
+
* 1. SCardTransmit
|
|
5576
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga9a2d77242a271310269065e64633ab99
|
|
5577
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardtransmit
|
|
5578
|
+
*
|
|
5579
|
+
* 2. SCardControl
|
|
5580
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gac3454d4657110fd7f753b2d3d8f4e32f
|
|
5581
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardcontrol
|
|
5582
|
+
*
|
|
5583
|
+
* 3. SCardGetAttrib
|
|
5584
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaacfec51917255b7a25b94c5104961602
|
|
5585
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardgetattrib
|
|
5586
|
+
*/
|
|
5587
|
+
'SmartCardEmulation.reportDataResult': {
|
|
5588
|
+
paramsType: [Protocol.SmartCardEmulation.ReportDataResultRequest];
|
|
5589
|
+
returnType: void;
|
|
5590
|
+
};
|
|
5591
|
+
/**
|
|
5592
|
+
* Reports the successful result of a |SCardStatus| call.
|
|
5593
|
+
*
|
|
5594
|
+
* This maps to:
|
|
5595
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gae49c3c894ad7ac12a5b896bde70d0382
|
|
5596
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardstatusa
|
|
5597
|
+
*/
|
|
5598
|
+
'SmartCardEmulation.reportStatusResult': {
|
|
5599
|
+
paramsType: [Protocol.SmartCardEmulation.ReportStatusResultRequest];
|
|
5600
|
+
returnType: void;
|
|
5601
|
+
};
|
|
5602
|
+
/**
|
|
5603
|
+
* Reports an error result for the given request.
|
|
5604
|
+
*/
|
|
5605
|
+
'SmartCardEmulation.reportError': {
|
|
5606
|
+
paramsType: [Protocol.SmartCardEmulation.ReportErrorRequest];
|
|
5607
|
+
returnType: void;
|
|
5608
|
+
};
|
|
5343
5609
|
/**
|
|
5344
5610
|
* Returns a storage key given a frame id.
|
|
5345
5611
|
* 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;
|
|
@@ -2408,6 +2410,13 @@ export namespace ProtocolProxyApi {
|
|
|
2408
2410
|
}
|
|
2409
2411
|
|
|
2410
2412
|
export interface ExtensionsApi {
|
|
2413
|
+
/**
|
|
2414
|
+
* Runs an extension default action.
|
|
2415
|
+
* Available if the client is connected using the --remote-debugging-pipe
|
|
2416
|
+
* flag and the --enable-unsafe-extension-debugging flag is set.
|
|
2417
|
+
*/
|
|
2418
|
+
triggerAction(params: Protocol.Extensions.TriggerActionRequest): Promise<void>;
|
|
2419
|
+
|
|
2411
2420
|
/**
|
|
2412
2421
|
* Installs an unpacked extension from the filesystem similar to
|
|
2413
2422
|
* --load-extension CLI flags. Returns extension ID once the extension
|
|
@@ -4450,6 +4459,256 @@ export namespace ProtocolProxyApi {
|
|
|
4450
4459
|
|
|
4451
4460
|
}
|
|
4452
4461
|
|
|
4462
|
+
export interface SmartCardEmulationApi {
|
|
4463
|
+
/**
|
|
4464
|
+
* Enables the |SmartCardEmulation| domain.
|
|
4465
|
+
*/
|
|
4466
|
+
enable(): Promise<void>;
|
|
4467
|
+
|
|
4468
|
+
/**
|
|
4469
|
+
* Disables the |SmartCardEmulation| domain.
|
|
4470
|
+
*/
|
|
4471
|
+
disable(): Promise<void>;
|
|
4472
|
+
|
|
4473
|
+
/**
|
|
4474
|
+
* Reports the successful result of a |SCardEstablishContext| call.
|
|
4475
|
+
*
|
|
4476
|
+
* This maps to:
|
|
4477
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaa1b8970169fd4883a6dc4a8f43f19b67
|
|
4478
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardestablishcontext
|
|
4479
|
+
*/
|
|
4480
|
+
reportEstablishContextResult(params: Protocol.SmartCardEmulation.ReportEstablishContextResultRequest): Promise<void>;
|
|
4481
|
+
|
|
4482
|
+
/**
|
|
4483
|
+
* Reports the successful result of a |SCardReleaseContext| call.
|
|
4484
|
+
*
|
|
4485
|
+
* This maps to:
|
|
4486
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga6aabcba7744c5c9419fdd6404f73a934
|
|
4487
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardreleasecontext
|
|
4488
|
+
*/
|
|
4489
|
+
reportReleaseContextResult(params: Protocol.SmartCardEmulation.ReportReleaseContextResultRequest): Promise<void>;
|
|
4490
|
+
|
|
4491
|
+
/**
|
|
4492
|
+
* Reports the successful result of a |SCardListReaders| call.
|
|
4493
|
+
*
|
|
4494
|
+
* This maps to:
|
|
4495
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga93b07815789b3cf2629d439ecf20f0d9
|
|
4496
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardlistreadersa
|
|
4497
|
+
*/
|
|
4498
|
+
reportListReadersResult(params: Protocol.SmartCardEmulation.ReportListReadersResultRequest): Promise<void>;
|
|
4499
|
+
|
|
4500
|
+
/**
|
|
4501
|
+
* Reports the successful result of a |SCardGetStatusChange| call.
|
|
4502
|
+
*
|
|
4503
|
+
* This maps to:
|
|
4504
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga33247d5d1257d59e55647c3bb717db24
|
|
4505
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardgetstatuschangea
|
|
4506
|
+
*/
|
|
4507
|
+
reportGetStatusChangeResult(params: Protocol.SmartCardEmulation.ReportGetStatusChangeResultRequest): Promise<void>;
|
|
4508
|
+
|
|
4509
|
+
/**
|
|
4510
|
+
* Reports the result of a |SCardBeginTransaction| call.
|
|
4511
|
+
* On success, this creates a new transaction object.
|
|
4512
|
+
*
|
|
4513
|
+
* This maps to:
|
|
4514
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaddb835dce01a0da1d6ca02d33ee7d861
|
|
4515
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardbegintransaction
|
|
4516
|
+
*/
|
|
4517
|
+
reportBeginTransactionResult(params: Protocol.SmartCardEmulation.ReportBeginTransactionResultRequest): Promise<void>;
|
|
4518
|
+
|
|
4519
|
+
/**
|
|
4520
|
+
* Reports the successful result of a call that returns only a result code.
|
|
4521
|
+
* Used for: |SCardCancel|, |SCardDisconnect|, |SCardSetAttrib|, |SCardEndTransaction|.
|
|
4522
|
+
*
|
|
4523
|
+
* This maps to:
|
|
4524
|
+
* 1. SCardCancel
|
|
4525
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaacbbc0c6d6c0cbbeb4f4debf6fbeeee6
|
|
4526
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardcancel
|
|
4527
|
+
*
|
|
4528
|
+
* 2. SCardDisconnect
|
|
4529
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga4be198045c73ec0deb79e66c0ca1738a
|
|
4530
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scarddisconnect
|
|
4531
|
+
*
|
|
4532
|
+
* 3. SCardSetAttrib
|
|
4533
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga060f0038a4ddfd5dd2b8fadf3c3a2e4f
|
|
4534
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardsetattrib
|
|
4535
|
+
*
|
|
4536
|
+
* 4. SCardEndTransaction
|
|
4537
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gae8742473b404363e5c587f570d7e2f3b
|
|
4538
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardendtransaction
|
|
4539
|
+
*/
|
|
4540
|
+
reportPlainResult(params: Protocol.SmartCardEmulation.ReportPlainResultRequest): Promise<void>;
|
|
4541
|
+
|
|
4542
|
+
/**
|
|
4543
|
+
* Reports the successful result of a |SCardConnect| call.
|
|
4544
|
+
*
|
|
4545
|
+
* This maps to:
|
|
4546
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga4e515829752e0a8dbc4d630696a8d6a5
|
|
4547
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardconnecta
|
|
4548
|
+
*/
|
|
4549
|
+
reportConnectResult(params: Protocol.SmartCardEmulation.ReportConnectResultRequest): Promise<void>;
|
|
4550
|
+
|
|
4551
|
+
/**
|
|
4552
|
+
* Reports the successful result of a call that sends back data on success.
|
|
4553
|
+
* Used for |SCardTransmit|, |SCardControl|, and |SCardGetAttrib|.
|
|
4554
|
+
*
|
|
4555
|
+
* This maps to:
|
|
4556
|
+
* 1. SCardTransmit
|
|
4557
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga9a2d77242a271310269065e64633ab99
|
|
4558
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardtransmit
|
|
4559
|
+
*
|
|
4560
|
+
* 2. SCardControl
|
|
4561
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gac3454d4657110fd7f753b2d3d8f4e32f
|
|
4562
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardcontrol
|
|
4563
|
+
*
|
|
4564
|
+
* 3. SCardGetAttrib
|
|
4565
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaacfec51917255b7a25b94c5104961602
|
|
4566
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardgetattrib
|
|
4567
|
+
*/
|
|
4568
|
+
reportDataResult(params: Protocol.SmartCardEmulation.ReportDataResultRequest): Promise<void>;
|
|
4569
|
+
|
|
4570
|
+
/**
|
|
4571
|
+
* Reports the successful result of a |SCardStatus| call.
|
|
4572
|
+
*
|
|
4573
|
+
* This maps to:
|
|
4574
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gae49c3c894ad7ac12a5b896bde70d0382
|
|
4575
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardstatusa
|
|
4576
|
+
*/
|
|
4577
|
+
reportStatusResult(params: Protocol.SmartCardEmulation.ReportStatusResultRequest): Promise<void>;
|
|
4578
|
+
|
|
4579
|
+
/**
|
|
4580
|
+
* Reports an error result for the given request.
|
|
4581
|
+
*/
|
|
4582
|
+
reportError(params: Protocol.SmartCardEmulation.ReportErrorRequest): Promise<void>;
|
|
4583
|
+
|
|
4584
|
+
/**
|
|
4585
|
+
* Fired when |SCardEstablishContext| is called.
|
|
4586
|
+
*
|
|
4587
|
+
* This maps to:
|
|
4588
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaa1b8970169fd4883a6dc4a8f43f19b67
|
|
4589
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardestablishcontext
|
|
4590
|
+
*/
|
|
4591
|
+
on(event: 'establishContextRequested', listener: (params: Protocol.SmartCardEmulation.EstablishContextRequestedEvent) => void): void;
|
|
4592
|
+
|
|
4593
|
+
/**
|
|
4594
|
+
* Fired when |SCardReleaseContext| is called.
|
|
4595
|
+
*
|
|
4596
|
+
* This maps to:
|
|
4597
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga6aabcba7744c5c9419fdd6404f73a934
|
|
4598
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardreleasecontext
|
|
4599
|
+
*/
|
|
4600
|
+
on(event: 'releaseContextRequested', listener: (params: Protocol.SmartCardEmulation.ReleaseContextRequestedEvent) => void): void;
|
|
4601
|
+
|
|
4602
|
+
/**
|
|
4603
|
+
* Fired when |SCardListReaders| is called.
|
|
4604
|
+
*
|
|
4605
|
+
* This maps to:
|
|
4606
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga93b07815789b3cf2629d439ecf20f0d9
|
|
4607
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardlistreadersa
|
|
4608
|
+
*/
|
|
4609
|
+
on(event: 'listReadersRequested', listener: (params: Protocol.SmartCardEmulation.ListReadersRequestedEvent) => void): void;
|
|
4610
|
+
|
|
4611
|
+
/**
|
|
4612
|
+
* Fired when |SCardGetStatusChange| is called. Timeout is specified in milliseconds.
|
|
4613
|
+
*
|
|
4614
|
+
* This maps to:
|
|
4615
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga33247d5d1257d59e55647c3bb717db24
|
|
4616
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardgetstatuschangea
|
|
4617
|
+
*/
|
|
4618
|
+
on(event: 'getStatusChangeRequested', listener: (params: Protocol.SmartCardEmulation.GetStatusChangeRequestedEvent) => void): void;
|
|
4619
|
+
|
|
4620
|
+
/**
|
|
4621
|
+
* Fired when |SCardCancel| is called.
|
|
4622
|
+
*
|
|
4623
|
+
* This maps to:
|
|
4624
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaacbbc0c6d6c0cbbeb4f4debf6fbeeee6
|
|
4625
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardcancel
|
|
4626
|
+
*/
|
|
4627
|
+
on(event: 'cancelRequested', listener: (params: Protocol.SmartCardEmulation.CancelRequestedEvent) => void): void;
|
|
4628
|
+
|
|
4629
|
+
/**
|
|
4630
|
+
* Fired when |SCardConnect| is called.
|
|
4631
|
+
*
|
|
4632
|
+
* This maps to:
|
|
4633
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga4e515829752e0a8dbc4d630696a8d6a5
|
|
4634
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardconnecta
|
|
4635
|
+
*/
|
|
4636
|
+
on(event: 'connectRequested', listener: (params: Protocol.SmartCardEmulation.ConnectRequestedEvent) => void): void;
|
|
4637
|
+
|
|
4638
|
+
/**
|
|
4639
|
+
* Fired when |SCardDisconnect| is called.
|
|
4640
|
+
*
|
|
4641
|
+
* This maps to:
|
|
4642
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga4be198045c73ec0deb79e66c0ca1738a
|
|
4643
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scarddisconnect
|
|
4644
|
+
*/
|
|
4645
|
+
on(event: 'disconnectRequested', listener: (params: Protocol.SmartCardEmulation.DisconnectRequestedEvent) => void): void;
|
|
4646
|
+
|
|
4647
|
+
/**
|
|
4648
|
+
* Fired when |SCardTransmit| is called.
|
|
4649
|
+
*
|
|
4650
|
+
* This maps to:
|
|
4651
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga9a2d77242a271310269065e64633ab99
|
|
4652
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardtransmit
|
|
4653
|
+
*/
|
|
4654
|
+
on(event: 'transmitRequested', listener: (params: Protocol.SmartCardEmulation.TransmitRequestedEvent) => void): void;
|
|
4655
|
+
|
|
4656
|
+
/**
|
|
4657
|
+
* Fired when |SCardControl| is called.
|
|
4658
|
+
*
|
|
4659
|
+
* This maps to:
|
|
4660
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gac3454d4657110fd7f753b2d3d8f4e32f
|
|
4661
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardcontrol
|
|
4662
|
+
*/
|
|
4663
|
+
on(event: 'controlRequested', listener: (params: Protocol.SmartCardEmulation.ControlRequestedEvent) => void): void;
|
|
4664
|
+
|
|
4665
|
+
/**
|
|
4666
|
+
* Fired when |SCardGetAttrib| is called.
|
|
4667
|
+
*
|
|
4668
|
+
* This maps to:
|
|
4669
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaacfec51917255b7a25b94c5104961602
|
|
4670
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardgetattrib
|
|
4671
|
+
*/
|
|
4672
|
+
on(event: 'getAttribRequested', listener: (params: Protocol.SmartCardEmulation.GetAttribRequestedEvent) => void): void;
|
|
4673
|
+
|
|
4674
|
+
/**
|
|
4675
|
+
* Fired when |SCardSetAttrib| is called.
|
|
4676
|
+
*
|
|
4677
|
+
* This maps to:
|
|
4678
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga060f0038a4ddfd5dd2b8fadf3c3a2e4f
|
|
4679
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardsetattrib
|
|
4680
|
+
*/
|
|
4681
|
+
on(event: 'setAttribRequested', listener: (params: Protocol.SmartCardEmulation.SetAttribRequestedEvent) => void): void;
|
|
4682
|
+
|
|
4683
|
+
/**
|
|
4684
|
+
* Fired when |SCardStatus| is called.
|
|
4685
|
+
*
|
|
4686
|
+
* This maps to:
|
|
4687
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gae49c3c894ad7ac12a5b896bde70d0382
|
|
4688
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardstatusa
|
|
4689
|
+
*/
|
|
4690
|
+
on(event: 'statusRequested', listener: (params: Protocol.SmartCardEmulation.StatusRequestedEvent) => void): void;
|
|
4691
|
+
|
|
4692
|
+
/**
|
|
4693
|
+
* Fired when |SCardBeginTransaction| is called.
|
|
4694
|
+
*
|
|
4695
|
+
* This maps to:
|
|
4696
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaddb835dce01a0da1d6ca02d33ee7d861
|
|
4697
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardbegintransaction
|
|
4698
|
+
*/
|
|
4699
|
+
on(event: 'beginTransactionRequested', listener: (params: Protocol.SmartCardEmulation.BeginTransactionRequestedEvent) => void): void;
|
|
4700
|
+
|
|
4701
|
+
/**
|
|
4702
|
+
* Fired when |SCardEndTransaction| is called.
|
|
4703
|
+
*
|
|
4704
|
+
* This maps to:
|
|
4705
|
+
* PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gae8742473b404363e5c587f570d7e2f3b
|
|
4706
|
+
* Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardendtransaction
|
|
4707
|
+
*/
|
|
4708
|
+
on(event: 'endTransactionRequested', listener: (params: Protocol.SmartCardEmulation.EndTransactionRequestedEvent) => void): void;
|
|
4709
|
+
|
|
4710
|
+
}
|
|
4711
|
+
|
|
4453
4712
|
export interface StorageApi {
|
|
4454
4713
|
/**
|
|
4455
4714
|
* Returns a storage key given a frame id.
|