devtools-protocol 0.0.1565416 → 0.0.1568225

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.
@@ -17317,6 +17317,193 @@
17317
17317
  }
17318
17318
  ]
17319
17319
  },
17320
+ {
17321
+ "id": "DeviceBoundSessionEventId",
17322
+ "description": "A unique identifier for a device bound session event.",
17323
+ "experimental": true,
17324
+ "type": "string"
17325
+ },
17326
+ {
17327
+ "id": "DeviceBoundSessionFetchResult",
17328
+ "description": "A fetch result for a device bound session creation or refresh.",
17329
+ "experimental": true,
17330
+ "type": "string",
17331
+ "enum": [
17332
+ "Success",
17333
+ "KeyError",
17334
+ "SigningError",
17335
+ "ServerRequestedTermination",
17336
+ "InvalidSessionId",
17337
+ "InvalidChallenge",
17338
+ "TooManyChallenges",
17339
+ "InvalidFetcherUrl",
17340
+ "InvalidRefreshUrl",
17341
+ "TransientHttpError",
17342
+ "ScopeOriginSameSiteMismatch",
17343
+ "RefreshUrlSameSiteMismatch",
17344
+ "MismatchedSessionId",
17345
+ "MissingScope",
17346
+ "NoCredentials",
17347
+ "SubdomainRegistrationWellKnownUnavailable",
17348
+ "SubdomainRegistrationUnauthorized",
17349
+ "SubdomainRegistrationWellKnownMalformed",
17350
+ "SessionProviderWellKnownUnavailable",
17351
+ "RelyingPartyWellKnownUnavailable",
17352
+ "FederatedKeyThumbprintMismatch",
17353
+ "InvalidFederatedSessionUrl",
17354
+ "InvalidFederatedKey",
17355
+ "TooManyRelyingOriginLabels",
17356
+ "BoundCookieSetForbidden",
17357
+ "NetError",
17358
+ "ProxyError",
17359
+ "EmptySessionConfig",
17360
+ "InvalidCredentialsConfig",
17361
+ "InvalidCredentialsType",
17362
+ "InvalidCredentialsEmptyName",
17363
+ "InvalidCredentialsCookie",
17364
+ "PersistentHttpError",
17365
+ "RegistrationAttemptedChallenge",
17366
+ "InvalidScopeOrigin",
17367
+ "ScopeOriginContainsPath",
17368
+ "RefreshInitiatorNotString",
17369
+ "RefreshInitiatorInvalidHostPattern",
17370
+ "InvalidScopeSpecification",
17371
+ "MissingScopeSpecificationType",
17372
+ "EmptyScopeSpecificationDomain",
17373
+ "EmptyScopeSpecificationPath",
17374
+ "InvalidScopeSpecificationType",
17375
+ "InvalidScopeIncludeSite",
17376
+ "MissingScopeIncludeSite",
17377
+ "FederatedNotAuthorizedByProvider",
17378
+ "FederatedNotAuthorizedByRelyingParty",
17379
+ "SessionProviderWellKnownMalformed",
17380
+ "SessionProviderWellKnownHasProviderOrigin",
17381
+ "RelyingPartyWellKnownMalformed",
17382
+ "RelyingPartyWellKnownHasRelyingOrigins",
17383
+ "InvalidFederatedSessionProviderSessionMissing",
17384
+ "InvalidFederatedSessionWrongProviderOrigin",
17385
+ "InvalidCredentialsCookieCreationTime",
17386
+ "InvalidCredentialsCookieName",
17387
+ "InvalidCredentialsCookieParsing",
17388
+ "InvalidCredentialsCookieUnpermittedAttribute",
17389
+ "InvalidCredentialsCookieInvalidDomain",
17390
+ "InvalidCredentialsCookiePrefix",
17391
+ "InvalidScopeRulePath",
17392
+ "InvalidScopeRuleHostPattern",
17393
+ "ScopeRuleOriginScopedHostPatternMismatch",
17394
+ "ScopeRuleSiteScopedHostPatternMismatch",
17395
+ "SigningQuotaExceeded",
17396
+ "InvalidConfigJson",
17397
+ "InvalidFederatedSessionProviderFailedToRestoreKey",
17398
+ "FailedToUnwrapKey",
17399
+ "SessionDeletedDuringRefresh"
17400
+ ]
17401
+ },
17402
+ {
17403
+ "id": "CreationEventDetails",
17404
+ "description": "Session event details specific to creation.",
17405
+ "experimental": true,
17406
+ "type": "object",
17407
+ "properties": [
17408
+ {
17409
+ "name": "fetchResult",
17410
+ "description": "The result of the fetch attempt.",
17411
+ "$ref": "DeviceBoundSessionFetchResult"
17412
+ },
17413
+ {
17414
+ "name": "newSession",
17415
+ "description": "The session if there was a newly created session. This is populated for\nall successful creation events.",
17416
+ "optional": true,
17417
+ "$ref": "DeviceBoundSession"
17418
+ }
17419
+ ]
17420
+ },
17421
+ {
17422
+ "id": "RefreshEventDetails",
17423
+ "description": "Session event details specific to refresh.",
17424
+ "experimental": true,
17425
+ "type": "object",
17426
+ "properties": [
17427
+ {
17428
+ "name": "refreshResult",
17429
+ "description": "The result of a refresh.",
17430
+ "type": "string",
17431
+ "enum": [
17432
+ "Refreshed",
17433
+ "InitializedService",
17434
+ "Unreachable",
17435
+ "ServerError",
17436
+ "RefreshQuotaExceeded",
17437
+ "FatalError",
17438
+ "SigningQuotaExceeded"
17439
+ ]
17440
+ },
17441
+ {
17442
+ "name": "fetchResult",
17443
+ "description": "If there was a fetch attempt, the result of that.",
17444
+ "optional": true,
17445
+ "$ref": "DeviceBoundSessionFetchResult"
17446
+ },
17447
+ {
17448
+ "name": "newSession",
17449
+ "description": "The session display if there was a newly created session. This is populated\nfor any refresh event that modifies the session config.",
17450
+ "optional": true,
17451
+ "$ref": "DeviceBoundSession"
17452
+ },
17453
+ {
17454
+ "name": "wasFullyProactiveRefresh",
17455
+ "description": "See comments on `net::device_bound_sessions::RefreshEventResult::was_fully_proactive_refresh`.",
17456
+ "type": "boolean"
17457
+ }
17458
+ ]
17459
+ },
17460
+ {
17461
+ "id": "TerminationEventDetails",
17462
+ "description": "Session event details specific to termination.",
17463
+ "experimental": true,
17464
+ "type": "object",
17465
+ "properties": [
17466
+ {
17467
+ "name": "deletionReason",
17468
+ "description": "The reason for a session being deleted.",
17469
+ "type": "string",
17470
+ "enum": [
17471
+ "Expired",
17472
+ "FailedToRestoreKey",
17473
+ "FailedToUnwrapKey",
17474
+ "StoragePartitionCleared",
17475
+ "ClearBrowsingData",
17476
+ "ServerRequested",
17477
+ "InvalidSessionParams",
17478
+ "RefreshFatalError"
17479
+ ]
17480
+ }
17481
+ ]
17482
+ },
17483
+ {
17484
+ "id": "ChallengeEventDetails",
17485
+ "description": "Session event details specific to challenges.",
17486
+ "experimental": true,
17487
+ "type": "object",
17488
+ "properties": [
17489
+ {
17490
+ "name": "challengeResult",
17491
+ "description": "The result of a challenge.",
17492
+ "type": "string",
17493
+ "enum": [
17494
+ "Success",
17495
+ "NoSessionId",
17496
+ "NoSessionMatch",
17497
+ "CantSetBoundCookie"
17498
+ ]
17499
+ },
17500
+ {
17501
+ "name": "challenge",
17502
+ "description": "The challenge set.",
17503
+ "type": "string"
17504
+ }
17505
+ ]
17506
+ },
17320
17507
  {
17321
17508
  "id": "LoadNetworkResourcePageResult",
17322
17509
  "description": "An object providing the result of a network resource load.",
@@ -17808,6 +17995,11 @@
17808
17995
  "name": "postData",
17809
17996
  "description": "Request body string, omitting files from multipart requests",
17810
17997
  "type": "string"
17998
+ },
17999
+ {
18000
+ "name": "base64Encoded",
18001
+ "description": "True, if content was sent as base64.",
18002
+ "type": "boolean"
17811
18003
  }
17812
18004
  ]
17813
18005
  },
@@ -19390,6 +19582,55 @@
19390
19582
  }
19391
19583
  }
19392
19584
  ]
19585
+ },
19586
+ {
19587
+ "name": "deviceBoundSessionEventOccurred",
19588
+ "description": "Triggered when a device bound session event occurs.",
19589
+ "experimental": true,
19590
+ "parameters": [
19591
+ {
19592
+ "name": "eventId",
19593
+ "description": "A unique identifier for this session event.",
19594
+ "$ref": "DeviceBoundSessionEventId"
19595
+ },
19596
+ {
19597
+ "name": "site",
19598
+ "description": "The site this session event is associated with.",
19599
+ "type": "string"
19600
+ },
19601
+ {
19602
+ "name": "succeeded",
19603
+ "description": "Whether this event was considered successful.",
19604
+ "type": "boolean"
19605
+ },
19606
+ {
19607
+ "name": "sessionId",
19608
+ "description": "The session ID this event is associated with. May not be populated for\nfailed events.",
19609
+ "optional": true,
19610
+ "type": "string"
19611
+ },
19612
+ {
19613
+ "name": "creationEventDetails",
19614
+ "description": "The below are the different session event type details. Exactly one is populated.",
19615
+ "optional": true,
19616
+ "$ref": "CreationEventDetails"
19617
+ },
19618
+ {
19619
+ "name": "refreshEventDetails",
19620
+ "optional": true,
19621
+ "$ref": "RefreshEventDetails"
19622
+ },
19623
+ {
19624
+ "name": "terminationEventDetails",
19625
+ "optional": true,
19626
+ "$ref": "TerminationEventDetails"
19627
+ },
19628
+ {
19629
+ "name": "challengeEventDetails",
19630
+ "optional": true,
19631
+ "$ref": "ChallengeEventDetails"
19632
+ }
19633
+ ]
19393
19634
  }
19394
19635
  ]
19395
19636
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1565416",
3
+ "version": "0.0.1568225",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -1216,6 +1216,8 @@ domain Network
1216
1216
  returns
1217
1217
  # Request body string, omitting files from multipart requests
1218
1218
  string postData
1219
+ # True, if content was sent as base64.
1220
+ boolean base64Encoded
1219
1221
 
1220
1222
  # Returns content served for the given currently intercepted request.
1221
1223
  experimental command getResponseBodyForInterception
@@ -2123,12 +2125,161 @@ domain Network
2123
2125
  # See comments on `net::device_bound_sessions::Session::allowed_refresh_initiators_`.
2124
2126
  array of string allowedRefreshInitiators
2125
2127
 
2128
+ # A unique identifier for a device bound session event.
2129
+ experimental type DeviceBoundSessionEventId extends string
2130
+
2131
+ # A fetch result for a device bound session creation or refresh.
2132
+ experimental type DeviceBoundSessionFetchResult extends string
2133
+ enum
2134
+ Success
2135
+ KeyError
2136
+ SigningError
2137
+ ServerRequestedTermination
2138
+ InvalidSessionId
2139
+ InvalidChallenge
2140
+ TooManyChallenges
2141
+ InvalidFetcherUrl
2142
+ InvalidRefreshUrl
2143
+ TransientHttpError
2144
+ ScopeOriginSameSiteMismatch
2145
+ RefreshUrlSameSiteMismatch
2146
+ MismatchedSessionId
2147
+ MissingScope
2148
+ NoCredentials
2149
+ SubdomainRegistrationWellKnownUnavailable
2150
+ SubdomainRegistrationUnauthorized
2151
+ SubdomainRegistrationWellKnownMalformed
2152
+ SessionProviderWellKnownUnavailable
2153
+ RelyingPartyWellKnownUnavailable
2154
+ FederatedKeyThumbprintMismatch
2155
+ InvalidFederatedSessionUrl
2156
+ InvalidFederatedKey
2157
+ TooManyRelyingOriginLabels
2158
+ BoundCookieSetForbidden
2159
+ NetError
2160
+ ProxyError
2161
+ EmptySessionConfig
2162
+ InvalidCredentialsConfig
2163
+ InvalidCredentialsType
2164
+ InvalidCredentialsEmptyName
2165
+ InvalidCredentialsCookie
2166
+ PersistentHttpError
2167
+ RegistrationAttemptedChallenge
2168
+ InvalidScopeOrigin
2169
+ ScopeOriginContainsPath
2170
+ RefreshInitiatorNotString
2171
+ RefreshInitiatorInvalidHostPattern
2172
+ InvalidScopeSpecification
2173
+ MissingScopeSpecificationType
2174
+ EmptyScopeSpecificationDomain
2175
+ EmptyScopeSpecificationPath
2176
+ InvalidScopeSpecificationType
2177
+ InvalidScopeIncludeSite
2178
+ MissingScopeIncludeSite
2179
+ FederatedNotAuthorizedByProvider
2180
+ FederatedNotAuthorizedByRelyingParty
2181
+ SessionProviderWellKnownMalformed
2182
+ SessionProviderWellKnownHasProviderOrigin
2183
+ RelyingPartyWellKnownMalformed
2184
+ RelyingPartyWellKnownHasRelyingOrigins
2185
+ InvalidFederatedSessionProviderSessionMissing
2186
+ InvalidFederatedSessionWrongProviderOrigin
2187
+ InvalidCredentialsCookieCreationTime
2188
+ InvalidCredentialsCookieName
2189
+ InvalidCredentialsCookieParsing
2190
+ InvalidCredentialsCookieUnpermittedAttribute
2191
+ InvalidCredentialsCookieInvalidDomain
2192
+ InvalidCredentialsCookiePrefix
2193
+ InvalidScopeRulePath
2194
+ InvalidScopeRuleHostPattern
2195
+ ScopeRuleOriginScopedHostPatternMismatch
2196
+ ScopeRuleSiteScopedHostPatternMismatch
2197
+ SigningQuotaExceeded
2198
+ InvalidConfigJson
2199
+ InvalidFederatedSessionProviderFailedToRestoreKey
2200
+ FailedToUnwrapKey
2201
+ SessionDeletedDuringRefresh
2202
+
2203
+ # Session event details specific to creation.
2204
+ experimental type CreationEventDetails extends object
2205
+ properties
2206
+ # The result of the fetch attempt.
2207
+ DeviceBoundSessionFetchResult fetchResult
2208
+ # The session if there was a newly created session. This is populated for
2209
+ # all successful creation events.
2210
+ optional DeviceBoundSession newSession
2211
+
2212
+ # Session event details specific to refresh.
2213
+ experimental type RefreshEventDetails extends object
2214
+ properties
2215
+ # The result of a refresh.
2216
+ enum refreshResult
2217
+ Refreshed
2218
+ InitializedService
2219
+ Unreachable
2220
+ ServerError
2221
+ RefreshQuotaExceeded
2222
+ FatalError
2223
+ SigningQuotaExceeded
2224
+ # If there was a fetch attempt, the result of that.
2225
+ optional DeviceBoundSessionFetchResult fetchResult
2226
+ # The session display if there was a newly created session. This is populated
2227
+ # for any refresh event that modifies the session config.
2228
+ optional DeviceBoundSession newSession
2229
+ # See comments on `net::device_bound_sessions::RefreshEventResult::was_fully_proactive_refresh`.
2230
+ boolean wasFullyProactiveRefresh
2231
+
2232
+ # Session event details specific to termination.
2233
+ experimental type TerminationEventDetails extends object
2234
+ properties
2235
+ # The reason for a session being deleted.
2236
+ enum deletionReason
2237
+ Expired
2238
+ FailedToRestoreKey
2239
+ FailedToUnwrapKey
2240
+ StoragePartitionCleared
2241
+ ClearBrowsingData
2242
+ ServerRequested
2243
+ InvalidSessionParams
2244
+ RefreshFatalError
2245
+
2246
+ # Session event details specific to challenges.
2247
+ experimental type ChallengeEventDetails extends object
2248
+ properties
2249
+ # The result of a challenge.
2250
+ enum challengeResult
2251
+ Success
2252
+ NoSessionId
2253
+ NoSessionMatch
2254
+ CantSetBoundCookie
2255
+ # The challenge set.
2256
+ string challenge
2257
+
2126
2258
  # Triggered when the initial set of device bound sessions is added.
2127
2259
  experimental event deviceBoundSessionsAdded
2128
2260
  parameters
2129
2261
  # The device bound sessions.
2130
2262
  array of DeviceBoundSession sessions
2131
2263
 
2264
+ # Triggered when a device bound session event occurs.
2265
+ experimental event deviceBoundSessionEventOccurred
2266
+ parameters
2267
+ # A unique identifier for this session event.
2268
+ DeviceBoundSessionEventId eventId
2269
+ # The site this session event is associated with.
2270
+ string site
2271
+ # Whether this event was considered successful.
2272
+ boolean succeeded
2273
+ # The session ID this event is associated with. May not be populated for
2274
+ # failed events.
2275
+ optional string sessionId
2276
+
2277
+ # The below are the different session event type details. Exactly one is populated.
2278
+ optional CreationEventDetails creationEventDetails
2279
+ optional RefreshEventDetails refreshEventDetails
2280
+ optional TerminationEventDetails terminationEventDetails
2281
+ optional ChallengeEventDetails challengeEventDetails
2282
+
2132
2283
  # Sets up tracking device bound sessions and fetching of initial set of sessions.
2133
2284
  experimental command enableDeviceBoundSessions
2134
2285
  parameters
@@ -587,6 +587,11 @@ export namespace ProtocolMapping {
587
587
  * @experimental
588
588
  */
589
589
  'Network.deviceBoundSessionsAdded': [Protocol.Network.DeviceBoundSessionsAddedEvent];
590
+ /**
591
+ * Triggered when a device bound session event occurs.
592
+ * @experimental
593
+ */
594
+ 'Network.deviceBoundSessionEventOccurred': [Protocol.Network.DeviceBoundSessionEventOccurredEvent];
590
595
  /**
591
596
  * Fired when the node should be inspected. This happens after call to `setInspectMode` or when
592
597
  * user manually inspects an element.
@@ -3469,6 +3469,12 @@ export namespace ProtocolProxyApi {
3469
3469
  */
3470
3470
  on(event: 'deviceBoundSessionsAdded', listener: (params: Protocol.Network.DeviceBoundSessionsAddedEvent) => void): void;
3471
3471
 
3472
+ /**
3473
+ * Triggered when a device bound session event occurs.
3474
+ * @experimental
3475
+ */
3476
+ on(event: 'deviceBoundSessionEventOccurred', listener: (params: Protocol.Network.DeviceBoundSessionEventOccurredEvent) => void): void;
3477
+
3472
3478
  }
3473
3479
 
3474
3480
  export interface OverlayApi {
@@ -3727,6 +3727,14 @@ export namespace ProtocolTestsProxyApi {
3727
3727
  offDeviceBoundSessionsAdded(listener: (event: { params: Protocol.Network.DeviceBoundSessionsAddedEvent }) => void): void;
3728
3728
  onceDeviceBoundSessionsAdded(eventMatcher?: (event: { params: Protocol.Network.DeviceBoundSessionsAddedEvent }) => boolean): Promise<{ params: Protocol.Network.DeviceBoundSessionsAddedEvent }>;
3729
3729
 
3730
+ /**
3731
+ * Triggered when a device bound session event occurs.
3732
+ * @experimental
3733
+ */
3734
+ onDeviceBoundSessionEventOccurred(listener: (event: { params: Protocol.Network.DeviceBoundSessionEventOccurredEvent }) => void): void;
3735
+ offDeviceBoundSessionEventOccurred(listener: (event: { params: Protocol.Network.DeviceBoundSessionEventOccurredEvent }) => void): void;
3736
+ onceDeviceBoundSessionEventOccurred(eventMatcher?: (event: { params: Protocol.Network.DeviceBoundSessionEventOccurredEvent }) => boolean): Promise<{ params: Protocol.Network.DeviceBoundSessionEventOccurredEvent }>;
3737
+
3730
3738
  }
3731
3739
 
3732
3740
  export interface OverlayApi {
@@ -13666,6 +13666,112 @@ export namespace Protocol {
13666
13666
  allowedRefreshInitiators: string[];
13667
13667
  }
13668
13668
 
13669
+ /**
13670
+ * A unique identifier for a device bound session event.
13671
+ * @experimental
13672
+ */
13673
+ export type DeviceBoundSessionEventId = string;
13674
+
13675
+ /**
13676
+ * A fetch result for a device bound session creation or refresh.
13677
+ * @experimental
13678
+ */
13679
+ export type DeviceBoundSessionFetchResult = ('Success' | 'KeyError' | 'SigningError' | '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');
13680
+
13681
+ /**
13682
+ * Session event details specific to creation.
13683
+ * @experimental
13684
+ */
13685
+ export interface CreationEventDetails {
13686
+ /**
13687
+ * The result of the fetch attempt.
13688
+ */
13689
+ fetchResult: DeviceBoundSessionFetchResult;
13690
+ /**
13691
+ * The session if there was a newly created session. This is populated for
13692
+ * all successful creation events.
13693
+ */
13694
+ newSession?: DeviceBoundSession;
13695
+ }
13696
+
13697
+ export const enum RefreshEventDetailsRefreshResult {
13698
+ Refreshed = 'Refreshed',
13699
+ InitializedService = 'InitializedService',
13700
+ Unreachable = 'Unreachable',
13701
+ ServerError = 'ServerError',
13702
+ RefreshQuotaExceeded = 'RefreshQuotaExceeded',
13703
+ FatalError = 'FatalError',
13704
+ SigningQuotaExceeded = 'SigningQuotaExceeded',
13705
+ }
13706
+
13707
+ /**
13708
+ * Session event details specific to refresh.
13709
+ * @experimental
13710
+ */
13711
+ export interface RefreshEventDetails {
13712
+ /**
13713
+ * The result of a refresh.
13714
+ */
13715
+ refreshResult: ('Refreshed' | 'InitializedService' | 'Unreachable' | 'ServerError' | 'RefreshQuotaExceeded' | 'FatalError' | 'SigningQuotaExceeded');
13716
+ /**
13717
+ * If there was a fetch attempt, the result of that.
13718
+ */
13719
+ fetchResult?: DeviceBoundSessionFetchResult;
13720
+ /**
13721
+ * The session display if there was a newly created session. This is populated
13722
+ * for any refresh event that modifies the session config.
13723
+ */
13724
+ newSession?: DeviceBoundSession;
13725
+ /**
13726
+ * See comments on `net::device_bound_sessions::RefreshEventResult::was_fully_proactive_refresh`.
13727
+ */
13728
+ wasFullyProactiveRefresh: boolean;
13729
+ }
13730
+
13731
+ export const enum TerminationEventDetailsDeletionReason {
13732
+ Expired = 'Expired',
13733
+ FailedToRestoreKey = 'FailedToRestoreKey',
13734
+ FailedToUnwrapKey = 'FailedToUnwrapKey',
13735
+ StoragePartitionCleared = 'StoragePartitionCleared',
13736
+ ClearBrowsingData = 'ClearBrowsingData',
13737
+ ServerRequested = 'ServerRequested',
13738
+ InvalidSessionParams = 'InvalidSessionParams',
13739
+ RefreshFatalError = 'RefreshFatalError',
13740
+ }
13741
+
13742
+ /**
13743
+ * Session event details specific to termination.
13744
+ * @experimental
13745
+ */
13746
+ export interface TerminationEventDetails {
13747
+ /**
13748
+ * The reason for a session being deleted.
13749
+ */
13750
+ deletionReason: ('Expired' | 'FailedToRestoreKey' | 'FailedToUnwrapKey' | 'StoragePartitionCleared' | 'ClearBrowsingData' | 'ServerRequested' | 'InvalidSessionParams' | 'RefreshFatalError');
13751
+ }
13752
+
13753
+ export const enum ChallengeEventDetailsChallengeResult {
13754
+ Success = 'Success',
13755
+ NoSessionId = 'NoSessionId',
13756
+ NoSessionMatch = 'NoSessionMatch',
13757
+ CantSetBoundCookie = 'CantSetBoundCookie',
13758
+ }
13759
+
13760
+ /**
13761
+ * Session event details specific to challenges.
13762
+ * @experimental
13763
+ */
13764
+ export interface ChallengeEventDetails {
13765
+ /**
13766
+ * The result of a challenge.
13767
+ */
13768
+ challengeResult: ('Success' | 'NoSessionId' | 'NoSessionMatch' | 'CantSetBoundCookie');
13769
+ /**
13770
+ * The challenge set.
13771
+ */
13772
+ challenge: string;
13773
+ }
13774
+
13669
13775
  /**
13670
13776
  * An object providing the result of a network resource load.
13671
13777
  * @experimental
@@ -13978,6 +14084,10 @@ export namespace Protocol {
13978
14084
  * Request body string, omitting files from multipart requests
13979
14085
  */
13980
14086
  postData: string;
14087
+ /**
14088
+ * True, if content was sent as base64.
14089
+ */
14090
+ base64Encoded: boolean;
13981
14091
  }
13982
14092
 
13983
14093
  export interface GetResponseBodyForInterceptionRequest {
@@ -15125,6 +15235,37 @@ export namespace Protocol {
15125
15235
  */
15126
15236
  sessions: DeviceBoundSession[];
15127
15237
  }
15238
+
15239
+ /**
15240
+ * Triggered when a device bound session event occurs.
15241
+ * @experimental
15242
+ */
15243
+ export interface DeviceBoundSessionEventOccurredEvent {
15244
+ /**
15245
+ * A unique identifier for this session event.
15246
+ */
15247
+ eventId: DeviceBoundSessionEventId;
15248
+ /**
15249
+ * The site this session event is associated with.
15250
+ */
15251
+ site: string;
15252
+ /**
15253
+ * Whether this event was considered successful.
15254
+ */
15255
+ succeeded: boolean;
15256
+ /**
15257
+ * The session ID this event is associated with. May not be populated for
15258
+ * failed events.
15259
+ */
15260
+ sessionId?: string;
15261
+ /**
15262
+ * The below are the different session event type details. Exactly one is populated.
15263
+ */
15264
+ creationEventDetails?: CreationEventDetails;
15265
+ refreshEventDetails?: RefreshEventDetails;
15266
+ terminationEventDetails?: TerminationEventDetails;
15267
+ challengeEventDetails?: ChallengeEventDetails;
15268
+ }
15128
15269
  }
15129
15270
 
15130
15271
  /**