chrome-devtools-frontend 1.0.1575174 → 1.0.1575635

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.
Files changed (89) hide show
  1. package/.stylelintrc.json +1 -1
  2. package/front_end/core/host/InspectorFrontendHostAPI.ts +2 -0
  3. package/front_end/core/sdk/CSSMatchedStyles.ts +27 -0
  4. package/front_end/entrypoints/main/MainImpl.ts +13 -7
  5. package/front_end/entrypoints/node_app/app/NodeConnectionsPanel.ts +3 -2
  6. package/front_end/generated/InspectorBackendCommands.ts +37 -0
  7. package/front_end/generated/protocol-mapping.d.ts +257 -0
  8. package/front_end/generated/protocol-proxy-api.d.ts +256 -0
  9. package/front_end/generated/protocol.ts +359 -0
  10. package/front_end/models/ai_assistance/AiConversation.ts +31 -10
  11. package/front_end/models/ai_assistance/AiHistoryStorage.ts +1 -0
  12. package/front_end/models/ai_assistance/agents/AiAgent.ts +29 -5
  13. package/front_end/models/ai_assistance/agents/ContextSelectionAgent.snapshot.txt +73 -0
  14. package/front_end/models/ai_assistance/agents/ContextSelectionAgent.ts +141 -0
  15. package/front_end/models/ai_assistance/ai_assistance.ts +2 -0
  16. package/front_end/models/javascript_metadata/NativeFunctions.js +5 -0
  17. package/front_end/models/live-metrics/LiveMetrics.ts +31 -51
  18. package/front_end/models/stack_trace/StackTrace.ts +2 -1
  19. package/front_end/panels/ai_assistance/AiAssistancePanel.ts +72 -6
  20. package/front_end/panels/ai_assistance/ai_assistance-meta.ts +1 -0
  21. package/front_end/panels/ai_assistance/components/ChatMessage.ts +6 -4
  22. package/front_end/panels/ai_assistance/components/ChatView.ts +5 -6
  23. package/front_end/panels/ai_assistance/components/chatView.css +10 -0
  24. package/front_end/panels/application/StorageView.ts +3 -3
  25. package/front_end/panels/application/preloading/components/preloadingDisabledInfobar.css +1 -1
  26. package/front_end/panels/common/aiCodeCompletionSummaryToolbar.css +1 -1
  27. package/front_end/panels/console/ConsoleContextSelector.ts +4 -3
  28. package/front_end/panels/elements/ElementsTreeElement.ts +2 -2
  29. package/front_end/panels/elements/StylePropertyTreeElement.ts +63 -0
  30. package/front_end/panels/elements/StylesSidebarPane.ts +17 -2
  31. package/front_end/panels/elements/stylePropertiesTreeOutline.css +4 -0
  32. package/front_end/panels/issues/AffectedMetadataAllowedSitesView.ts +3 -3
  33. package/front_end/panels/layer_viewer/Layers3DView.ts +2 -1
  34. package/front_end/panels/lighthouse/LighthouseStartView.ts +7 -6
  35. package/front_end/panels/linear_memory_inspector/LinearMemoryInspectorPane.ts +3 -2
  36. package/front_end/panels/network/RequestConditionsDrawer.ts +2 -3
  37. package/front_end/panels/network/SignedExchangeInfoView.ts +3 -4
  38. package/front_end/panels/network/components/HeaderSectionRow.css +1 -1
  39. package/front_end/panels/recorder/components/RecordingView.ts +2 -2
  40. package/front_end/panels/recorder/components/recordingView.css +5 -0
  41. package/front_end/panels/security/SecurityPanelSidebar.ts +10 -9
  42. package/front_end/panels/settings/AISettingsTab.ts +2 -1
  43. package/front_end/panels/settings/KeybindsSettingsTab.ts +3 -5
  44. package/front_end/panels/settings/SettingsScreen.ts +2 -3
  45. package/front_end/panels/sources/CallStackSidebarPane.ts +10 -0
  46. package/front_end/panels/sources/DebuggerPlugin.ts +18 -12
  47. package/front_end/panels/sources/ScopeChainSidebarPane.ts +4 -3
  48. package/front_end/panels/sources/SourcesNavigator.ts +2 -2
  49. package/front_end/panels/sources/SourcesPanel.ts +6 -3
  50. package/front_end/panels/sources/TabbedEditorContainer.ts +2 -2
  51. package/front_end/panels/sources/sources-meta.ts +2 -1
  52. package/front_end/panels/timeline/TimelinePanel.ts +2 -1
  53. package/front_end/panels/timeline/TimelineUIUtils.ts +2 -2
  54. package/front_end/panels/timeline/components/DetailsView.ts +7 -7
  55. package/front_end/panels/timeline/components/insights/BaseInsightComponent.ts +2 -2
  56. package/front_end/panels/timeline/overlays/components/EntryLabelOverlay.ts +4 -4
  57. package/front_end/panels/whats_new/releaseNoteView.css +1 -1
  58. package/front_end/third_party/chromium/README.chromium +1 -1
  59. package/front_end/third_party/puppeteer/README.chromium +2 -2
  60. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/TargetManager.d.ts.map +1 -1
  61. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/TargetManager.js +30 -25
  62. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/TargetManager.js.map +1 -1
  63. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/injected.d.ts +1 -1
  64. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/Mutex.d.ts +2 -2
  65. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/version.d.ts +1 -1
  66. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/version.js +1 -1
  67. package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.js +30 -21
  68. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/TargetManager.d.ts.map +1 -1
  69. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/TargetManager.js +31 -26
  70. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/TargetManager.js.map +1 -1
  71. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/version.d.ts +1 -1
  72. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/version.js +1 -1
  73. package/front_end/third_party/puppeteer/package/package.json +3 -3
  74. package/front_end/third_party/puppeteer/package/src/cdp/TargetManager.ts +45 -44
  75. package/front_end/third_party/puppeteer/package/src/util/version.ts +1 -1
  76. package/front_end/ui/components/buttons/Button.ts +2 -2
  77. package/front_end/ui/components/panel_feedback/PreviewToggle.ts +1 -1
  78. package/front_end/ui/components/panel_feedback/panelFeedback.css +1 -1
  79. package/front_end/ui/kit/link/Link.ts +31 -0
  80. package/front_end/ui/legacy/LinkContextMenuProvider.ts +3 -5
  81. package/front_end/ui/legacy/components/object_ui/ObjectPopoverHelper.ts +2 -2
  82. package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +336 -250
  83. package/front_end/ui/legacy/inspectorCommon.css +0 -1
  84. package/front_end/ui/legacy/legacy.ts +0 -4
  85. package/front_end/ui/visual_logging/KnownContextValues.ts +4 -0
  86. package/front_end/ui/visual_logging/LoggingDriver.ts +10 -6
  87. package/package.json +1 -1
  88. package/front_end/ui/legacy/XElement.ts +0 -41
  89. package/front_end/ui/legacy/XLink.ts +0 -128
@@ -98,6 +98,8 @@ declare namespace ProtocolProxyApi {
98
98
 
99
99
  ServiceWorker: ServiceWorkerApi;
100
100
 
101
+ SmartCardEmulation: SmartCardEmulationApi;
102
+
101
103
  Storage: StorageApi;
102
104
 
103
105
  SystemInfo: SystemInfoApi;
@@ -205,6 +207,8 @@ declare namespace ProtocolProxyApi {
205
207
 
206
208
  ServiceWorker: ServiceWorkerDispatcher;
207
209
 
210
+ SmartCardEmulation: SmartCardEmulationDispatcher;
211
+
208
212
  Storage: StorageDispatcher;
209
213
 
210
214
  SystemInfo: SystemInfoDispatcher;
@@ -3841,6 +3845,258 @@ declare namespace ProtocolProxyApi {
3841
3845
 
3842
3846
  }
3843
3847
 
3848
+ export interface SmartCardEmulationApi {
3849
+ /**
3850
+ * Enables the |SmartCardEmulation| domain.
3851
+ */
3852
+ invoke_enable(): Promise<Protocol.ProtocolResponseWithError>;
3853
+
3854
+ /**
3855
+ * Disables the |SmartCardEmulation| domain.
3856
+ */
3857
+ invoke_disable(): Promise<Protocol.ProtocolResponseWithError>;
3858
+
3859
+ /**
3860
+ * Reports the successful result of a |SCardEstablishContext| call.
3861
+ *
3862
+ * This maps to:
3863
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaa1b8970169fd4883a6dc4a8f43f19b67
3864
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardestablishcontext
3865
+ */
3866
+ invoke_reportEstablishContextResult(params: Protocol.SmartCardEmulation.ReportEstablishContextResultRequest): Promise<Protocol.ProtocolResponseWithError>;
3867
+
3868
+ /**
3869
+ * Reports the successful result of a |SCardReleaseContext| call.
3870
+ *
3871
+ * This maps to:
3872
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga6aabcba7744c5c9419fdd6404f73a934
3873
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardreleasecontext
3874
+ */
3875
+ invoke_reportReleaseContextResult(params: Protocol.SmartCardEmulation.ReportReleaseContextResultRequest): Promise<Protocol.ProtocolResponseWithError>;
3876
+
3877
+ /**
3878
+ * Reports the successful result of a |SCardListReaders| call.
3879
+ *
3880
+ * This maps to:
3881
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga93b07815789b3cf2629d439ecf20f0d9
3882
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardlistreadersa
3883
+ */
3884
+ invoke_reportListReadersResult(params: Protocol.SmartCardEmulation.ReportListReadersResultRequest): Promise<Protocol.ProtocolResponseWithError>;
3885
+
3886
+ /**
3887
+ * Reports the successful result of a |SCardGetStatusChange| call.
3888
+ *
3889
+ * This maps to:
3890
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga33247d5d1257d59e55647c3bb717db24
3891
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardgetstatuschangea
3892
+ */
3893
+ invoke_reportGetStatusChangeResult(params: Protocol.SmartCardEmulation.ReportGetStatusChangeResultRequest): Promise<Protocol.ProtocolResponseWithError>;
3894
+
3895
+ /**
3896
+ * Reports the result of a |SCardBeginTransaction| call.
3897
+ * On success, this creates a new transaction object.
3898
+ *
3899
+ * This maps to:
3900
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaddb835dce01a0da1d6ca02d33ee7d861
3901
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardbegintransaction
3902
+ */
3903
+ invoke_reportBeginTransactionResult(params: Protocol.SmartCardEmulation.ReportBeginTransactionResultRequest): Promise<Protocol.ProtocolResponseWithError>;
3904
+
3905
+ /**
3906
+ * Reports the successful result of a call that returns only a result code.
3907
+ * Used for: |SCardCancel|, |SCardDisconnect|, |SCardSetAttrib|, |SCardEndTransaction|.
3908
+ *
3909
+ * This maps to:
3910
+ * 1. SCardCancel
3911
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaacbbc0c6d6c0cbbeb4f4debf6fbeeee6
3912
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardcancel
3913
+ *
3914
+ * 2. SCardDisconnect
3915
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga4be198045c73ec0deb79e66c0ca1738a
3916
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scarddisconnect
3917
+ *
3918
+ * 3. SCardSetAttrib
3919
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga060f0038a4ddfd5dd2b8fadf3c3a2e4f
3920
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardsetattrib
3921
+ *
3922
+ * 4. SCardEndTransaction
3923
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gae8742473b404363e5c587f570d7e2f3b
3924
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardendtransaction
3925
+ */
3926
+ invoke_reportPlainResult(params: Protocol.SmartCardEmulation.ReportPlainResultRequest): Promise<Protocol.ProtocolResponseWithError>;
3927
+
3928
+ /**
3929
+ * Reports the successful result of a |SCardConnect| call.
3930
+ *
3931
+ * This maps to:
3932
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga4e515829752e0a8dbc4d630696a8d6a5
3933
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardconnecta
3934
+ */
3935
+ invoke_reportConnectResult(params: Protocol.SmartCardEmulation.ReportConnectResultRequest): Promise<Protocol.ProtocolResponseWithError>;
3936
+
3937
+ /**
3938
+ * Reports the successful result of a call that sends back data on success.
3939
+ * Used for |SCardTransmit|, |SCardControl|, and |SCardGetAttrib|.
3940
+ *
3941
+ * This maps to:
3942
+ * 1. SCardTransmit
3943
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga9a2d77242a271310269065e64633ab99
3944
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardtransmit
3945
+ *
3946
+ * 2. SCardControl
3947
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gac3454d4657110fd7f753b2d3d8f4e32f
3948
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardcontrol
3949
+ *
3950
+ * 3. SCardGetAttrib
3951
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaacfec51917255b7a25b94c5104961602
3952
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardgetattrib
3953
+ */
3954
+ invoke_reportDataResult(params: Protocol.SmartCardEmulation.ReportDataResultRequest): Promise<Protocol.ProtocolResponseWithError>;
3955
+
3956
+ /**
3957
+ * Reports the successful result of a |SCardStatus| call.
3958
+ *
3959
+ * This maps to:
3960
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gae49c3c894ad7ac12a5b896bde70d0382
3961
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardstatusa
3962
+ */
3963
+ invoke_reportStatusResult(params: Protocol.SmartCardEmulation.ReportStatusResultRequest): Promise<Protocol.ProtocolResponseWithError>;
3964
+
3965
+ /**
3966
+ * Reports an error result for the given request.
3967
+ */
3968
+ invoke_reportError(params: Protocol.SmartCardEmulation.ReportErrorRequest): Promise<Protocol.ProtocolResponseWithError>;
3969
+
3970
+ }
3971
+ export interface SmartCardEmulationDispatcher {
3972
+ /**
3973
+ * Fired when |SCardEstablishContext| is called.
3974
+ *
3975
+ * This maps to:
3976
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaa1b8970169fd4883a6dc4a8f43f19b67
3977
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardestablishcontext
3978
+ */
3979
+ establishContextRequested(params: Protocol.SmartCardEmulation.EstablishContextRequestedEvent): void;
3980
+
3981
+ /**
3982
+ * Fired when |SCardReleaseContext| is called.
3983
+ *
3984
+ * This maps to:
3985
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga6aabcba7744c5c9419fdd6404f73a934
3986
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardreleasecontext
3987
+ */
3988
+ releaseContextRequested(params: Protocol.SmartCardEmulation.ReleaseContextRequestedEvent): void;
3989
+
3990
+ /**
3991
+ * Fired when |SCardListReaders| is called.
3992
+ *
3993
+ * This maps to:
3994
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga93b07815789b3cf2629d439ecf20f0d9
3995
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardlistreadersa
3996
+ */
3997
+ listReadersRequested(params: Protocol.SmartCardEmulation.ListReadersRequestedEvent): void;
3998
+
3999
+ /**
4000
+ * Fired when |SCardGetStatusChange| is called. Timeout is specified in milliseconds.
4001
+ *
4002
+ * This maps to:
4003
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga33247d5d1257d59e55647c3bb717db24
4004
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardgetstatuschangea
4005
+ */
4006
+ getStatusChangeRequested(params: Protocol.SmartCardEmulation.GetStatusChangeRequestedEvent): void;
4007
+
4008
+ /**
4009
+ * Fired when |SCardCancel| is called.
4010
+ *
4011
+ * This maps to:
4012
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaacbbc0c6d6c0cbbeb4f4debf6fbeeee6
4013
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardcancel
4014
+ */
4015
+ cancelRequested(params: Protocol.SmartCardEmulation.CancelRequestedEvent): void;
4016
+
4017
+ /**
4018
+ * Fired when |SCardConnect| is called.
4019
+ *
4020
+ * This maps to:
4021
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga4e515829752e0a8dbc4d630696a8d6a5
4022
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardconnecta
4023
+ */
4024
+ connectRequested(params: Protocol.SmartCardEmulation.ConnectRequestedEvent): void;
4025
+
4026
+ /**
4027
+ * Fired when |SCardDisconnect| is called.
4028
+ *
4029
+ * This maps to:
4030
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga4be198045c73ec0deb79e66c0ca1738a
4031
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scarddisconnect
4032
+ */
4033
+ disconnectRequested(params: Protocol.SmartCardEmulation.DisconnectRequestedEvent): void;
4034
+
4035
+ /**
4036
+ * Fired when |SCardTransmit| is called.
4037
+ *
4038
+ * This maps to:
4039
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga9a2d77242a271310269065e64633ab99
4040
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardtransmit
4041
+ */
4042
+ transmitRequested(params: Protocol.SmartCardEmulation.TransmitRequestedEvent): void;
4043
+
4044
+ /**
4045
+ * Fired when |SCardControl| is called.
4046
+ *
4047
+ * This maps to:
4048
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gac3454d4657110fd7f753b2d3d8f4e32f
4049
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardcontrol
4050
+ */
4051
+ controlRequested(params: Protocol.SmartCardEmulation.ControlRequestedEvent): void;
4052
+
4053
+ /**
4054
+ * Fired when |SCardGetAttrib| is called.
4055
+ *
4056
+ * This maps to:
4057
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaacfec51917255b7a25b94c5104961602
4058
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardgetattrib
4059
+ */
4060
+ getAttribRequested(params: Protocol.SmartCardEmulation.GetAttribRequestedEvent): void;
4061
+
4062
+ /**
4063
+ * Fired when |SCardSetAttrib| is called.
4064
+ *
4065
+ * This maps to:
4066
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga060f0038a4ddfd5dd2b8fadf3c3a2e4f
4067
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardsetattrib
4068
+ */
4069
+ setAttribRequested(params: Protocol.SmartCardEmulation.SetAttribRequestedEvent): void;
4070
+
4071
+ /**
4072
+ * Fired when |SCardStatus| is called.
4073
+ *
4074
+ * This maps to:
4075
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gae49c3c894ad7ac12a5b896bde70d0382
4076
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardstatusa
4077
+ */
4078
+ statusRequested(params: Protocol.SmartCardEmulation.StatusRequestedEvent): void;
4079
+
4080
+ /**
4081
+ * Fired when |SCardBeginTransaction| is called.
4082
+ *
4083
+ * This maps to:
4084
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaddb835dce01a0da1d6ca02d33ee7d861
4085
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardbegintransaction
4086
+ */
4087
+ beginTransactionRequested(params: Protocol.SmartCardEmulation.BeginTransactionRequestedEvent): void;
4088
+
4089
+ /**
4090
+ * Fired when |SCardEndTransaction| is called.
4091
+ *
4092
+ * This maps to:
4093
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gae8742473b404363e5c587f570d7e2f3b
4094
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardendtransaction
4095
+ */
4096
+ endTransactionRequested(params: Protocol.SmartCardEmulation.EndTransactionRequestedEvent): void;
4097
+
4098
+ }
4099
+
3844
4100
  export interface StorageApi {
3845
4101
  /**
3846
4102
  * Returns a storage key given a frame id.
@@ -17251,6 +17251,365 @@ export namespace ServiceWorker {
17251
17251
  }
17252
17252
  }
17253
17253
 
17254
+ export namespace SmartCardEmulation {
17255
+
17256
+ /**
17257
+ * Indicates the PC/SC error code.
17258
+ *
17259
+ * This maps to:
17260
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__ErrorCodes.html
17261
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/secauthn/authentication-return-values
17262
+ */
17263
+ export const enum ResultCode {
17264
+ Success = 'success',
17265
+ RemovedCard = 'removed-card',
17266
+ ResetCard = 'reset-card',
17267
+ UnpoweredCard = 'unpowered-card',
17268
+ UnresponsiveCard = 'unresponsive-card',
17269
+ UnsupportedCard = 'unsupported-card',
17270
+ ReaderUnavailable = 'reader-unavailable',
17271
+ SharingViolation = 'sharing-violation',
17272
+ NotTransacted = 'not-transacted',
17273
+ NoSmartcard = 'no-smartcard',
17274
+ ProtoMismatch = 'proto-mismatch',
17275
+ SystemCancelled = 'system-cancelled',
17276
+ NotReady = 'not-ready',
17277
+ Cancelled = 'cancelled',
17278
+ InsufficientBuffer = 'insufficient-buffer',
17279
+ InvalidHandle = 'invalid-handle',
17280
+ InvalidParameter = 'invalid-parameter',
17281
+ InvalidValue = 'invalid-value',
17282
+ NoMemory = 'no-memory',
17283
+ Timeout = 'timeout',
17284
+ UnknownReader = 'unknown-reader',
17285
+ UnsupportedFeature = 'unsupported-feature',
17286
+ NoReadersAvailable = 'no-readers-available',
17287
+ ServiceStopped = 'service-stopped',
17288
+ NoService = 'no-service',
17289
+ CommError = 'comm-error',
17290
+ InternalError = 'internal-error',
17291
+ ServerTooBusy = 'server-too-busy',
17292
+ Unexpected = 'unexpected',
17293
+ Shutdown = 'shutdown',
17294
+ UnknownCard = 'unknown-card',
17295
+ Unknown = 'unknown',
17296
+ }
17297
+
17298
+ /**
17299
+ * Maps to the |SCARD_SHARE_*| values.
17300
+ */
17301
+ export const enum ShareMode {
17302
+ Shared = 'shared',
17303
+ Exclusive = 'exclusive',
17304
+ Direct = 'direct',
17305
+ }
17306
+
17307
+ /**
17308
+ * Indicates what the reader should do with the card.
17309
+ */
17310
+ export const enum Disposition {
17311
+ LeaveCard = 'leave-card',
17312
+ ResetCard = 'reset-card',
17313
+ UnpowerCard = 'unpower-card',
17314
+ EjectCard = 'eject-card',
17315
+ }
17316
+
17317
+ /**
17318
+ * Maps to |SCARD_*| connection state values.
17319
+ */
17320
+ export const enum ConnectionState {
17321
+ Absent = 'absent',
17322
+ Present = 'present',
17323
+ Swallowed = 'swallowed',
17324
+ Powered = 'powered',
17325
+ Negotiable = 'negotiable',
17326
+ Specific = 'specific',
17327
+ }
17328
+
17329
+ /**
17330
+ * Maps to the |SCARD_STATE_*| flags.
17331
+ */
17332
+ export interface ReaderStateFlags {
17333
+ unaware?: boolean;
17334
+ ignore?: boolean;
17335
+ changed?: boolean;
17336
+ unknown?: boolean;
17337
+ unavailable?: boolean;
17338
+ empty?: boolean;
17339
+ present?: boolean;
17340
+ exclusive?: boolean;
17341
+ inuse?: boolean;
17342
+ mute?: boolean;
17343
+ unpowered?: boolean;
17344
+ }
17345
+
17346
+ /**
17347
+ * Maps to the |SCARD_PROTOCOL_*| flags.
17348
+ */
17349
+ export interface ProtocolSet {
17350
+ t0?: boolean;
17351
+ t1?: boolean;
17352
+ raw?: boolean;
17353
+ }
17354
+
17355
+ /**
17356
+ * Maps to the |SCARD_PROTOCOL_*| values.
17357
+ */
17358
+ export const enum Protocol {
17359
+ T0 = 't0',
17360
+ T1 = 't1',
17361
+ Raw = 'raw',
17362
+ }
17363
+
17364
+ export interface ReaderStateIn {
17365
+ reader: string;
17366
+ currentState: ReaderStateFlags;
17367
+ currentInsertionCount: integer;
17368
+ }
17369
+
17370
+ export interface ReaderStateOut {
17371
+ reader: string;
17372
+ eventState: ReaderStateFlags;
17373
+ eventCount: integer;
17374
+ atr: binary;
17375
+ }
17376
+
17377
+ export interface ReportEstablishContextResultRequest {
17378
+ requestId: string;
17379
+ contextId: integer;
17380
+ }
17381
+
17382
+ export interface ReportReleaseContextResultRequest {
17383
+ requestId: string;
17384
+ }
17385
+
17386
+ export interface ReportListReadersResultRequest {
17387
+ requestId: string;
17388
+ readers: string[];
17389
+ }
17390
+
17391
+ export interface ReportGetStatusChangeResultRequest {
17392
+ requestId: string;
17393
+ readerStates: ReaderStateOut[];
17394
+ }
17395
+
17396
+ export interface ReportBeginTransactionResultRequest {
17397
+ requestId: string;
17398
+ }
17399
+
17400
+ export interface ReportPlainResultRequest {
17401
+ requestId: string;
17402
+ }
17403
+
17404
+ export interface ReportConnectResultRequest {
17405
+ requestId: string;
17406
+ handle: integer;
17407
+ activeProtocol?: Protocol;
17408
+ }
17409
+
17410
+ export interface ReportDataResultRequest {
17411
+ requestId: string;
17412
+ data: binary;
17413
+ }
17414
+
17415
+ export interface ReportStatusResultRequest {
17416
+ requestId: string;
17417
+ readerName: string;
17418
+ state: ConnectionState;
17419
+ atr: binary;
17420
+ protocol?: Protocol;
17421
+ }
17422
+
17423
+ export interface ReportErrorRequest {
17424
+ requestId: string;
17425
+ resultCode: ResultCode;
17426
+ }
17427
+
17428
+ /**
17429
+ * Fired when |SCardEstablishContext| is called.
17430
+ *
17431
+ * This maps to:
17432
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaa1b8970169fd4883a6dc4a8f43f19b67
17433
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardestablishcontext
17434
+ */
17435
+ export interface EstablishContextRequestedEvent {
17436
+ requestId: string;
17437
+ }
17438
+
17439
+ /**
17440
+ * Fired when |SCardReleaseContext| is called.
17441
+ *
17442
+ * This maps to:
17443
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga6aabcba7744c5c9419fdd6404f73a934
17444
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardreleasecontext
17445
+ */
17446
+ export interface ReleaseContextRequestedEvent {
17447
+ requestId: string;
17448
+ contextId: integer;
17449
+ }
17450
+
17451
+ /**
17452
+ * Fired when |SCardListReaders| is called.
17453
+ *
17454
+ * This maps to:
17455
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga93b07815789b3cf2629d439ecf20f0d9
17456
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardlistreadersa
17457
+ */
17458
+ export interface ListReadersRequestedEvent {
17459
+ requestId: string;
17460
+ contextId: integer;
17461
+ }
17462
+
17463
+ /**
17464
+ * Fired when |SCardGetStatusChange| is called. Timeout is specified in milliseconds.
17465
+ *
17466
+ * This maps to:
17467
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga33247d5d1257d59e55647c3bb717db24
17468
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardgetstatuschangea
17469
+ */
17470
+ export interface GetStatusChangeRequestedEvent {
17471
+ requestId: string;
17472
+ contextId: integer;
17473
+ readerStates: ReaderStateIn[];
17474
+ /**
17475
+ * in milliseconds, if absent, it means "infinite"
17476
+ */
17477
+ timeout?: integer;
17478
+ }
17479
+
17480
+ /**
17481
+ * Fired when |SCardCancel| is called.
17482
+ *
17483
+ * This maps to:
17484
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaacbbc0c6d6c0cbbeb4f4debf6fbeeee6
17485
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardcancel
17486
+ */
17487
+ export interface CancelRequestedEvent {
17488
+ requestId: string;
17489
+ contextId: integer;
17490
+ }
17491
+
17492
+ /**
17493
+ * Fired when |SCardConnect| is called.
17494
+ *
17495
+ * This maps to:
17496
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga4e515829752e0a8dbc4d630696a8d6a5
17497
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardconnecta
17498
+ */
17499
+ export interface ConnectRequestedEvent {
17500
+ requestId: string;
17501
+ contextId: integer;
17502
+ reader: string;
17503
+ shareMode: ShareMode;
17504
+ preferredProtocols: ProtocolSet;
17505
+ }
17506
+
17507
+ /**
17508
+ * Fired when |SCardDisconnect| is called.
17509
+ *
17510
+ * This maps to:
17511
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga4be198045c73ec0deb79e66c0ca1738a
17512
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scarddisconnect
17513
+ */
17514
+ export interface DisconnectRequestedEvent {
17515
+ requestId: string;
17516
+ handle: integer;
17517
+ disposition: Disposition;
17518
+ }
17519
+
17520
+ /**
17521
+ * Fired when |SCardTransmit| is called.
17522
+ *
17523
+ * This maps to:
17524
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga9a2d77242a271310269065e64633ab99
17525
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardtransmit
17526
+ */
17527
+ export interface TransmitRequestedEvent {
17528
+ requestId: string;
17529
+ handle: integer;
17530
+ data: binary;
17531
+ protocol?: Protocol;
17532
+ }
17533
+
17534
+ /**
17535
+ * Fired when |SCardControl| is called.
17536
+ *
17537
+ * This maps to:
17538
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gac3454d4657110fd7f753b2d3d8f4e32f
17539
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardcontrol
17540
+ */
17541
+ export interface ControlRequestedEvent {
17542
+ requestId: string;
17543
+ handle: integer;
17544
+ controlCode: integer;
17545
+ data: binary;
17546
+ }
17547
+
17548
+ /**
17549
+ * Fired when |SCardGetAttrib| is called.
17550
+ *
17551
+ * This maps to:
17552
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaacfec51917255b7a25b94c5104961602
17553
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardgetattrib
17554
+ */
17555
+ export interface GetAttribRequestedEvent {
17556
+ requestId: string;
17557
+ handle: integer;
17558
+ attribId: integer;
17559
+ }
17560
+
17561
+ /**
17562
+ * Fired when |SCardSetAttrib| is called.
17563
+ *
17564
+ * This maps to:
17565
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga060f0038a4ddfd5dd2b8fadf3c3a2e4f
17566
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardsetattrib
17567
+ */
17568
+ export interface SetAttribRequestedEvent {
17569
+ requestId: string;
17570
+ handle: integer;
17571
+ attribId: integer;
17572
+ data: binary;
17573
+ }
17574
+
17575
+ /**
17576
+ * Fired when |SCardStatus| is called.
17577
+ *
17578
+ * This maps to:
17579
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gae49c3c894ad7ac12a5b896bde70d0382
17580
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardstatusa
17581
+ */
17582
+ export interface StatusRequestedEvent {
17583
+ requestId: string;
17584
+ handle: integer;
17585
+ }
17586
+
17587
+ /**
17588
+ * Fired when |SCardBeginTransaction| is called.
17589
+ *
17590
+ * This maps to:
17591
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaddb835dce01a0da1d6ca02d33ee7d861
17592
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardbegintransaction
17593
+ */
17594
+ export interface BeginTransactionRequestedEvent {
17595
+ requestId: string;
17596
+ handle: integer;
17597
+ }
17598
+
17599
+ /**
17600
+ * Fired when |SCardEndTransaction| is called.
17601
+ *
17602
+ * This maps to:
17603
+ * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gae8742473b404363e5c587f570d7e2f3b
17604
+ * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardendtransaction
17605
+ */
17606
+ export interface EndTransactionRequestedEvent {
17607
+ requestId: string;
17608
+ handle: integer;
17609
+ disposition: Disposition;
17610
+ }
17611
+ }
17612
+
17254
17613
  export namespace Storage {
17255
17614
 
17256
17615
  export type SerializedStorageKey = string;