devtools-protocol 0.0.1654583 → 0.0.1655900

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.
@@ -10671,6 +10671,49 @@
10671
10671
  }
10672
10672
  ]
10673
10673
  },
10674
+ {
10675
+ "domain": "DigitalCredentials",
10676
+ "description": "This domain allows interacting with the Digital Credentials API for automation.",
10677
+ "experimental": true,
10678
+ "types": [
10679
+ {
10680
+ "id": "VirtualWalletBehavior",
10681
+ "description": "The type of virtual wallet action.",
10682
+ "type": "string",
10683
+ "enum": [
10684
+ "respond",
10685
+ "decline",
10686
+ "wait",
10687
+ "clear"
10688
+ ]
10689
+ }
10690
+ ],
10691
+ "commands": [
10692
+ {
10693
+ "name": "setVirtualWalletBehavior",
10694
+ "description": "Sets the behavior of the virtual wallet for digital credential requests\nissued from this frame.",
10695
+ "parameters": [
10696
+ {
10697
+ "name": "behavior",
10698
+ "description": "The behavior of the virtual wallet.",
10699
+ "$ref": "VirtualWalletBehavior"
10700
+ },
10701
+ {
10702
+ "name": "protocol",
10703
+ "description": "The protocol identifier (e.g. \"openid4vp\"). Required when |behavior| is\n\"respond\", forbidden otherwise.",
10704
+ "optional": true,
10705
+ "type": "string"
10706
+ },
10707
+ {
10708
+ "name": "response",
10709
+ "description": "The response data object returned by the wallet.\nRequired when |behavior| is \"respond\", forbidden otherwise.",
10710
+ "optional": true,
10711
+ "type": "object"
10712
+ }
10713
+ ]
10714
+ }
10715
+ ]
10716
+ },
10674
10717
  {
10675
10718
  "domain": "Emulation",
10676
10719
  "description": "This domain emulates different environments for the page.",
@@ -18028,12 +18071,13 @@
18028
18071
  },
18029
18072
  {
18030
18073
  "id": "DeviceBoundSessionFetchResult",
18031
- "description": "A fetch result for a device bound session creation or refresh.",
18074
+ "description": "A fetch result for a device bound session creation or refresh.\nLINT.IfChange(DeviceBoundSessionFetchResult)",
18032
18075
  "experimental": true,
18033
18076
  "type": "string",
18034
18077
  "enum": [
18035
18078
  "Success",
18036
- "KeyError",
18079
+ "SigningKeyGenerationError",
18080
+ "AttestationKeyGenerationError",
18037
18081
  "SigningError",
18038
18082
  "TransientSigningError",
18039
18083
  "ServerRequestedTermination",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1654583",
3
+ "version": "0.0.1655900",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -26,6 +26,7 @@ include domains/DOMSnapshot.pdl
26
26
  include domains/DOMStorage.pdl
27
27
  include domains/DeviceAccess.pdl
28
28
  include domains/DeviceOrientation.pdl
29
+ include domains/DigitalCredentials.pdl
29
30
  include domains/Emulation.pdl
30
31
  include domains/EventBreakpoints.pdl
31
32
  include domains/Extensions.pdl
@@ -0,0 +1,28 @@
1
+ # Copyright 2026 The Chromium Authors
2
+ # Use of this source code is governed by a BSD-style license that can be
3
+ # found in the LICENSE file.
4
+ #
5
+ # Contributing to Chrome DevTools Protocol: https://goo.gle/devtools-contribution-guide-cdp
6
+
7
+ # This domain allows interacting with the Digital Credentials API for automation.
8
+ experimental domain DigitalCredentials
9
+ # The type of virtual wallet action.
10
+ type VirtualWalletBehavior extends string
11
+ enum
12
+ respond
13
+ decline
14
+ wait
15
+ clear
16
+
17
+ # Sets the behavior of the virtual wallet for digital credential requests
18
+ # issued from this frame.
19
+ command setVirtualWalletBehavior
20
+ parameters
21
+ # The behavior of the virtual wallet.
22
+ VirtualWalletBehavior behavior
23
+ # The protocol identifier (e.g. "openid4vp"). Required when |behavior| is
24
+ # "respond", forbidden otherwise.
25
+ optional string protocol
26
+ # The response data object returned by the wallet.
27
+ # Required when |behavior| is "respond", forbidden otherwise.
28
+ optional object response
@@ -2149,10 +2149,12 @@ domain Network
2149
2149
  experimental type DeviceBoundSessionEventId extends string
2150
2150
 
2151
2151
  # A fetch result for a device bound session creation or refresh.
2152
+ # LINT.IfChange(DeviceBoundSessionFetchResult)
2152
2153
  experimental type DeviceBoundSessionFetchResult extends string
2153
2154
  enum
2154
2155
  Success
2155
- KeyError
2156
+ SigningKeyGenerationError
2157
+ AttestationKeyGenerationError
2156
2158
  SigningError
2157
2159
  TransientSigningError
2158
2160
  ServerRequestedTermination
@@ -2221,6 +2223,7 @@ domain Network
2221
2223
  FailedToUnwrapKey
2222
2224
  SessionDeletedDuringRefresh
2223
2225
  CrossOriginRegistrationSiteNotIncluded
2226
+ # LINT.ThenChange(//content/browser/devtools/protocol/network_handler.cc:DeviceBoundSessionFetchResult)
2224
2227
 
2225
2228
  # Details about a failed device bound session network request.
2226
2229
  experimental type DeviceBoundSessionFailedRequest extends object
@@ -3240,6 +3240,14 @@ export namespace ProtocolMapping {
3240
3240
  paramsType: [Protocol.DeviceOrientation.SetDeviceOrientationOverrideRequest];
3241
3241
  returnType: void;
3242
3242
  };
3243
+ /**
3244
+ * Sets the behavior of the virtual wallet for digital credential requests
3245
+ * issued from this frame.
3246
+ */
3247
+ 'DigitalCredentials.setVirtualWalletBehavior': {
3248
+ paramsType: [Protocol.DigitalCredentials.SetVirtualWalletBehaviorRequest];
3249
+ returnType: void;
3250
+ };
3243
3251
  /**
3244
3252
  * Tells whether emulation is supported.
3245
3253
  * @deprecated
@@ -62,6 +62,8 @@ export namespace ProtocolProxyApi {
62
62
 
63
63
  DeviceOrientation: DeviceOrientationApi;
64
64
 
65
+ DigitalCredentials: DigitalCredentialsApi;
66
+
65
67
  Emulation: EmulationApi;
66
68
 
67
69
  EventBreakpoints: EventBreakpointsApi;
@@ -2129,6 +2131,15 @@ export namespace ProtocolProxyApi {
2129
2131
 
2130
2132
  }
2131
2133
 
2134
+ export interface DigitalCredentialsApi {
2135
+ /**
2136
+ * Sets the behavior of the virtual wallet for digital credential requests
2137
+ * issued from this frame.
2138
+ */
2139
+ setVirtualWalletBehavior(params: Protocol.DigitalCredentials.SetVirtualWalletBehaviorRequest): Promise<void>;
2140
+
2141
+ }
2142
+
2132
2143
  export interface EmulationApi {
2133
2144
  /**
2134
2145
  * Tells whether emulation is supported.
@@ -62,6 +62,8 @@ export namespace ProtocolTestsProxyApi {
62
62
 
63
63
  DeviceOrientation: DeviceOrientationApi;
64
64
 
65
+ DigitalCredentials: DigitalCredentialsApi;
66
+
65
67
  Emulation: EmulationApi;
66
68
 
67
69
  EventBreakpoints: EventBreakpointsApi;
@@ -2267,6 +2269,15 @@ export namespace ProtocolTestsProxyApi {
2267
2269
 
2268
2270
  }
2269
2271
 
2272
+ export interface DigitalCredentialsApi {
2273
+ /**
2274
+ * Sets the behavior of the virtual wallet for digital credential requests
2275
+ * issued from this frame.
2276
+ */
2277
+ setVirtualWalletBehavior(params: Protocol.DigitalCredentials.SetVirtualWalletBehaviorRequest): Promise<{id: number, result: void, sessionId: string}>;
2278
+
2279
+ }
2280
+
2270
2281
  export interface EmulationApi {
2271
2282
  /**
2272
2283
  * Tells whether emulation is supported.
@@ -9233,6 +9233,35 @@ export namespace Protocol {
9233
9233
  }
9234
9234
  }
9235
9235
 
9236
+ /**
9237
+ * This domain allows interacting with the Digital Credentials API for automation.
9238
+ * @experimental
9239
+ */
9240
+ export namespace DigitalCredentials {
9241
+
9242
+ /**
9243
+ * The type of virtual wallet action.
9244
+ */
9245
+ export type VirtualWalletBehavior = ('respond' | 'decline' | 'wait' | 'clear');
9246
+
9247
+ export interface SetVirtualWalletBehaviorRequest {
9248
+ /**
9249
+ * The behavior of the virtual wallet.
9250
+ */
9251
+ behavior: VirtualWalletBehavior;
9252
+ /**
9253
+ * The protocol identifier (e.g. "openid4vp"). Required when |behavior| is
9254
+ * "respond", forbidden otherwise.
9255
+ */
9256
+ protocol?: string;
9257
+ /**
9258
+ * The response data object returned by the wallet.
9259
+ * Required when |behavior| is "respond", forbidden otherwise.
9260
+ */
9261
+ response?: any;
9262
+ }
9263
+ }
9264
+
9236
9265
  /**
9237
9266
  * This domain emulates different environments for the page.
9238
9267
  */
@@ -14144,7 +14173,7 @@ export namespace Protocol {
14144
14173
  * A fetch result for a device bound session creation or refresh.
14145
14174
  * @experimental
14146
14175
  */
14147
- export type DeviceBoundSessionFetchResult = ('Success' | 'KeyError' | 'SigningError' | 'TransientSigningError' | 'ServerRequestedTermination' | 'InvalidSessionId' | 'InvalidChallenge' | 'TooManyChallenges' | 'InvalidFetcherUrl' | 'InvalidRefreshUrl' | 'TransientHttpError' | 'ScopeOriginSameSiteMismatch' | 'RefreshUrlSameSiteMismatch' | 'MismatchedSessionId' | 'MissingScope' | 'NoCredentials' | 'SubdomainRegistrationWellKnownUnavailable' | 'SubdomainRegistrationUnauthorized' | 'SubdomainRegistrationWellKnownMalformed' | 'SessionProviderWellKnownUnavailable' | 'RelyingPartyWellKnownUnavailable' | 'FederatedKeyThumbprintMismatch' | 'InvalidFederatedSessionUrl' | 'InvalidFederatedKey' | 'TooManyRelyingOriginLabels' | 'BoundCookieSetForbidden' | 'NetError' | 'ProxyError' | 'EmptySessionConfig' | 'InvalidCredentialsConfig' | 'InvalidCredentialsType' | 'InvalidCredentialsEmptyName' | 'InvalidCredentialsCookie' | 'PersistentHttpError' | 'RegistrationAttemptedChallenge' | 'InvalidScopeOrigin' | 'ScopeOriginContainsPath' | 'RefreshInitiatorNotString' | 'RefreshInitiatorInvalidHostPattern' | 'InvalidScopeSpecification' | 'MissingScopeSpecificationType' | 'EmptyScopeSpecificationDomain' | 'EmptyScopeSpecificationPath' | 'InvalidScopeSpecificationType' | 'InvalidScopeIncludeSite' | 'MissingScopeIncludeSite' | 'FederatedNotAuthorizedByProvider' | 'FederatedNotAuthorizedByRelyingParty' | 'SessionProviderWellKnownMalformed' | 'SessionProviderWellKnownHasProviderOrigin' | 'RelyingPartyWellKnownMalformed' | 'RelyingPartyWellKnownHasRelyingOrigins' | 'InvalidFederatedSessionProviderSessionMissing' | 'InvalidFederatedSessionWrongProviderOrigin' | 'InvalidCredentialsCookieCreationTime' | 'InvalidCredentialsCookieName' | 'InvalidCredentialsCookieParsing' | 'InvalidCredentialsCookieUnpermittedAttribute' | 'InvalidCredentialsCookieInvalidDomain' | 'InvalidCredentialsCookiePrefix' | 'InvalidScopeRulePath' | 'InvalidScopeRuleHostPattern' | 'ScopeRuleOriginScopedHostPatternMismatch' | 'ScopeRuleSiteScopedHostPatternMismatch' | 'SigningQuotaExceeded' | 'InvalidConfigJson' | 'InvalidFederatedSessionProviderFailedToRestoreKey' | 'FailedToUnwrapKey' | 'SessionDeletedDuringRefresh' | 'CrossOriginRegistrationSiteNotIncluded');
14176
+ export type DeviceBoundSessionFetchResult = ('Success' | 'SigningKeyGenerationError' | 'AttestationKeyGenerationError' | 'SigningError' | 'TransientSigningError' | 'ServerRequestedTermination' | 'InvalidSessionId' | 'InvalidChallenge' | 'TooManyChallenges' | 'InvalidFetcherUrl' | 'InvalidRefreshUrl' | 'TransientHttpError' | 'ScopeOriginSameSiteMismatch' | 'RefreshUrlSameSiteMismatch' | 'MismatchedSessionId' | 'MissingScope' | 'NoCredentials' | 'SubdomainRegistrationWellKnownUnavailable' | 'SubdomainRegistrationUnauthorized' | 'SubdomainRegistrationWellKnownMalformed' | 'SessionProviderWellKnownUnavailable' | 'RelyingPartyWellKnownUnavailable' | 'FederatedKeyThumbprintMismatch' | 'InvalidFederatedSessionUrl' | 'InvalidFederatedKey' | 'TooManyRelyingOriginLabels' | 'BoundCookieSetForbidden' | 'NetError' | 'ProxyError' | 'EmptySessionConfig' | 'InvalidCredentialsConfig' | 'InvalidCredentialsType' | 'InvalidCredentialsEmptyName' | 'InvalidCredentialsCookie' | 'PersistentHttpError' | 'RegistrationAttemptedChallenge' | 'InvalidScopeOrigin' | 'ScopeOriginContainsPath' | 'RefreshInitiatorNotString' | 'RefreshInitiatorInvalidHostPattern' | 'InvalidScopeSpecification' | 'MissingScopeSpecificationType' | 'EmptyScopeSpecificationDomain' | 'EmptyScopeSpecificationPath' | 'InvalidScopeSpecificationType' | 'InvalidScopeIncludeSite' | 'MissingScopeIncludeSite' | 'FederatedNotAuthorizedByProvider' | 'FederatedNotAuthorizedByRelyingParty' | 'SessionProviderWellKnownMalformed' | 'SessionProviderWellKnownHasProviderOrigin' | 'RelyingPartyWellKnownMalformed' | 'RelyingPartyWellKnownHasRelyingOrigins' | 'InvalidFederatedSessionProviderSessionMissing' | 'InvalidFederatedSessionWrongProviderOrigin' | 'InvalidCredentialsCookieCreationTime' | 'InvalidCredentialsCookieName' | 'InvalidCredentialsCookieParsing' | 'InvalidCredentialsCookieUnpermittedAttribute' | 'InvalidCredentialsCookieInvalidDomain' | 'InvalidCredentialsCookiePrefix' | 'InvalidScopeRulePath' | 'InvalidScopeRuleHostPattern' | 'ScopeRuleOriginScopedHostPatternMismatch' | 'ScopeRuleSiteScopedHostPatternMismatch' | 'SigningQuotaExceeded' | 'InvalidConfigJson' | 'InvalidFederatedSessionProviderFailedToRestoreKey' | 'FailedToUnwrapKey' | 'SessionDeletedDuringRefresh' | 'CrossOriginRegistrationSiteNotIncluded');
14148
14177
 
14149
14178
  /**
14150
14179
  * Details about a failed device bound session network request.