devtools-protocol 0.0.1565416 → 0.0.1566079
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.",
|
|
@@ -19390,6 +19577,55 @@
|
|
|
19390
19577
|
}
|
|
19391
19578
|
}
|
|
19392
19579
|
]
|
|
19580
|
+
},
|
|
19581
|
+
{
|
|
19582
|
+
"name": "deviceBoundSessionEventOccurred",
|
|
19583
|
+
"description": "Triggered when a device bound session event occurs.",
|
|
19584
|
+
"experimental": true,
|
|
19585
|
+
"parameters": [
|
|
19586
|
+
{
|
|
19587
|
+
"name": "eventId",
|
|
19588
|
+
"description": "A unique identifier for this session event.",
|
|
19589
|
+
"$ref": "DeviceBoundSessionEventId"
|
|
19590
|
+
},
|
|
19591
|
+
{
|
|
19592
|
+
"name": "site",
|
|
19593
|
+
"description": "The site this session event is associated with.",
|
|
19594
|
+
"type": "string"
|
|
19595
|
+
},
|
|
19596
|
+
{
|
|
19597
|
+
"name": "succeeded",
|
|
19598
|
+
"description": "Whether this event was considered successful.",
|
|
19599
|
+
"type": "boolean"
|
|
19600
|
+
},
|
|
19601
|
+
{
|
|
19602
|
+
"name": "sessionId",
|
|
19603
|
+
"description": "The session ID this event is associated with. May not be populated for\nfailed events.",
|
|
19604
|
+
"optional": true,
|
|
19605
|
+
"type": "string"
|
|
19606
|
+
},
|
|
19607
|
+
{
|
|
19608
|
+
"name": "creationEventDetails",
|
|
19609
|
+
"description": "The below are the different session event type details. Exactly one is populated.",
|
|
19610
|
+
"optional": true,
|
|
19611
|
+
"$ref": "CreationEventDetails"
|
|
19612
|
+
},
|
|
19613
|
+
{
|
|
19614
|
+
"name": "refreshEventDetails",
|
|
19615
|
+
"optional": true,
|
|
19616
|
+
"$ref": "RefreshEventDetails"
|
|
19617
|
+
},
|
|
19618
|
+
{
|
|
19619
|
+
"name": "terminationEventDetails",
|
|
19620
|
+
"optional": true,
|
|
19621
|
+
"$ref": "TerminationEventDetails"
|
|
19622
|
+
},
|
|
19623
|
+
{
|
|
19624
|
+
"name": "challengeEventDetails",
|
|
19625
|
+
"optional": true,
|
|
19626
|
+
"$ref": "ChallengeEventDetails"
|
|
19627
|
+
}
|
|
19628
|
+
]
|
|
19393
19629
|
}
|
|
19394
19630
|
]
|
|
19395
19631
|
},
|
package/package.json
CHANGED
package/pdl/domains/Network.pdl
CHANGED
|
@@ -2123,12 +2123,161 @@ domain Network
|
|
|
2123
2123
|
# See comments on `net::device_bound_sessions::Session::allowed_refresh_initiators_`.
|
|
2124
2124
|
array of string allowedRefreshInitiators
|
|
2125
2125
|
|
|
2126
|
+
# A unique identifier for a device bound session event.
|
|
2127
|
+
experimental type DeviceBoundSessionEventId extends string
|
|
2128
|
+
|
|
2129
|
+
# A fetch result for a device bound session creation or refresh.
|
|
2130
|
+
experimental type DeviceBoundSessionFetchResult extends string
|
|
2131
|
+
enum
|
|
2132
|
+
Success
|
|
2133
|
+
KeyError
|
|
2134
|
+
SigningError
|
|
2135
|
+
ServerRequestedTermination
|
|
2136
|
+
InvalidSessionId
|
|
2137
|
+
InvalidChallenge
|
|
2138
|
+
TooManyChallenges
|
|
2139
|
+
InvalidFetcherUrl
|
|
2140
|
+
InvalidRefreshUrl
|
|
2141
|
+
TransientHttpError
|
|
2142
|
+
ScopeOriginSameSiteMismatch
|
|
2143
|
+
RefreshUrlSameSiteMismatch
|
|
2144
|
+
MismatchedSessionId
|
|
2145
|
+
MissingScope
|
|
2146
|
+
NoCredentials
|
|
2147
|
+
SubdomainRegistrationWellKnownUnavailable
|
|
2148
|
+
SubdomainRegistrationUnauthorized
|
|
2149
|
+
SubdomainRegistrationWellKnownMalformed
|
|
2150
|
+
SessionProviderWellKnownUnavailable
|
|
2151
|
+
RelyingPartyWellKnownUnavailable
|
|
2152
|
+
FederatedKeyThumbprintMismatch
|
|
2153
|
+
InvalidFederatedSessionUrl
|
|
2154
|
+
InvalidFederatedKey
|
|
2155
|
+
TooManyRelyingOriginLabels
|
|
2156
|
+
BoundCookieSetForbidden
|
|
2157
|
+
NetError
|
|
2158
|
+
ProxyError
|
|
2159
|
+
EmptySessionConfig
|
|
2160
|
+
InvalidCredentialsConfig
|
|
2161
|
+
InvalidCredentialsType
|
|
2162
|
+
InvalidCredentialsEmptyName
|
|
2163
|
+
InvalidCredentialsCookie
|
|
2164
|
+
PersistentHttpError
|
|
2165
|
+
RegistrationAttemptedChallenge
|
|
2166
|
+
InvalidScopeOrigin
|
|
2167
|
+
ScopeOriginContainsPath
|
|
2168
|
+
RefreshInitiatorNotString
|
|
2169
|
+
RefreshInitiatorInvalidHostPattern
|
|
2170
|
+
InvalidScopeSpecification
|
|
2171
|
+
MissingScopeSpecificationType
|
|
2172
|
+
EmptyScopeSpecificationDomain
|
|
2173
|
+
EmptyScopeSpecificationPath
|
|
2174
|
+
InvalidScopeSpecificationType
|
|
2175
|
+
InvalidScopeIncludeSite
|
|
2176
|
+
MissingScopeIncludeSite
|
|
2177
|
+
FederatedNotAuthorizedByProvider
|
|
2178
|
+
FederatedNotAuthorizedByRelyingParty
|
|
2179
|
+
SessionProviderWellKnownMalformed
|
|
2180
|
+
SessionProviderWellKnownHasProviderOrigin
|
|
2181
|
+
RelyingPartyWellKnownMalformed
|
|
2182
|
+
RelyingPartyWellKnownHasRelyingOrigins
|
|
2183
|
+
InvalidFederatedSessionProviderSessionMissing
|
|
2184
|
+
InvalidFederatedSessionWrongProviderOrigin
|
|
2185
|
+
InvalidCredentialsCookieCreationTime
|
|
2186
|
+
InvalidCredentialsCookieName
|
|
2187
|
+
InvalidCredentialsCookieParsing
|
|
2188
|
+
InvalidCredentialsCookieUnpermittedAttribute
|
|
2189
|
+
InvalidCredentialsCookieInvalidDomain
|
|
2190
|
+
InvalidCredentialsCookiePrefix
|
|
2191
|
+
InvalidScopeRulePath
|
|
2192
|
+
InvalidScopeRuleHostPattern
|
|
2193
|
+
ScopeRuleOriginScopedHostPatternMismatch
|
|
2194
|
+
ScopeRuleSiteScopedHostPatternMismatch
|
|
2195
|
+
SigningQuotaExceeded
|
|
2196
|
+
InvalidConfigJson
|
|
2197
|
+
InvalidFederatedSessionProviderFailedToRestoreKey
|
|
2198
|
+
FailedToUnwrapKey
|
|
2199
|
+
SessionDeletedDuringRefresh
|
|
2200
|
+
|
|
2201
|
+
# Session event details specific to creation.
|
|
2202
|
+
experimental type CreationEventDetails extends object
|
|
2203
|
+
properties
|
|
2204
|
+
# The result of the fetch attempt.
|
|
2205
|
+
DeviceBoundSessionFetchResult fetchResult
|
|
2206
|
+
# The session if there was a newly created session. This is populated for
|
|
2207
|
+
# all successful creation events.
|
|
2208
|
+
optional DeviceBoundSession newSession
|
|
2209
|
+
|
|
2210
|
+
# Session event details specific to refresh.
|
|
2211
|
+
experimental type RefreshEventDetails extends object
|
|
2212
|
+
properties
|
|
2213
|
+
# The result of a refresh.
|
|
2214
|
+
enum refreshResult
|
|
2215
|
+
Refreshed
|
|
2216
|
+
InitializedService
|
|
2217
|
+
Unreachable
|
|
2218
|
+
ServerError
|
|
2219
|
+
RefreshQuotaExceeded
|
|
2220
|
+
FatalError
|
|
2221
|
+
SigningQuotaExceeded
|
|
2222
|
+
# If there was a fetch attempt, the result of that.
|
|
2223
|
+
optional DeviceBoundSessionFetchResult fetchResult
|
|
2224
|
+
# The session display if there was a newly created session. This is populated
|
|
2225
|
+
# for any refresh event that modifies the session config.
|
|
2226
|
+
optional DeviceBoundSession newSession
|
|
2227
|
+
# See comments on `net::device_bound_sessions::RefreshEventResult::was_fully_proactive_refresh`.
|
|
2228
|
+
boolean wasFullyProactiveRefresh
|
|
2229
|
+
|
|
2230
|
+
# Session event details specific to termination.
|
|
2231
|
+
experimental type TerminationEventDetails extends object
|
|
2232
|
+
properties
|
|
2233
|
+
# The reason for a session being deleted.
|
|
2234
|
+
enum deletionReason
|
|
2235
|
+
Expired
|
|
2236
|
+
FailedToRestoreKey
|
|
2237
|
+
FailedToUnwrapKey
|
|
2238
|
+
StoragePartitionCleared
|
|
2239
|
+
ClearBrowsingData
|
|
2240
|
+
ServerRequested
|
|
2241
|
+
InvalidSessionParams
|
|
2242
|
+
RefreshFatalError
|
|
2243
|
+
|
|
2244
|
+
# Session event details specific to challenges.
|
|
2245
|
+
experimental type ChallengeEventDetails extends object
|
|
2246
|
+
properties
|
|
2247
|
+
# The result of a challenge.
|
|
2248
|
+
enum challengeResult
|
|
2249
|
+
Success
|
|
2250
|
+
NoSessionId
|
|
2251
|
+
NoSessionMatch
|
|
2252
|
+
CantSetBoundCookie
|
|
2253
|
+
# The challenge set.
|
|
2254
|
+
string challenge
|
|
2255
|
+
|
|
2126
2256
|
# Triggered when the initial set of device bound sessions is added.
|
|
2127
2257
|
experimental event deviceBoundSessionsAdded
|
|
2128
2258
|
parameters
|
|
2129
2259
|
# The device bound sessions.
|
|
2130
2260
|
array of DeviceBoundSession sessions
|
|
2131
2261
|
|
|
2262
|
+
# Triggered when a device bound session event occurs.
|
|
2263
|
+
experimental event deviceBoundSessionEventOccurred
|
|
2264
|
+
parameters
|
|
2265
|
+
# A unique identifier for this session event.
|
|
2266
|
+
DeviceBoundSessionEventId eventId
|
|
2267
|
+
# The site this session event is associated with.
|
|
2268
|
+
string site
|
|
2269
|
+
# Whether this event was considered successful.
|
|
2270
|
+
boolean succeeded
|
|
2271
|
+
# The session ID this event is associated with. May not be populated for
|
|
2272
|
+
# failed events.
|
|
2273
|
+
optional string sessionId
|
|
2274
|
+
|
|
2275
|
+
# The below are the different session event type details. Exactly one is populated.
|
|
2276
|
+
optional CreationEventDetails creationEventDetails
|
|
2277
|
+
optional RefreshEventDetails refreshEventDetails
|
|
2278
|
+
optional TerminationEventDetails terminationEventDetails
|
|
2279
|
+
optional ChallengeEventDetails challengeEventDetails
|
|
2280
|
+
|
|
2132
2281
|
# Sets up tracking device bound sessions and fetching of initial set of sessions.
|
|
2133
2282
|
experimental command enableDeviceBoundSessions
|
|
2134
2283
|
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 {
|
package/types/protocol.d.ts
CHANGED
|
@@ -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
|
|
@@ -15125,6 +15231,37 @@ export namespace Protocol {
|
|
|
15125
15231
|
*/
|
|
15126
15232
|
sessions: DeviceBoundSession[];
|
|
15127
15233
|
}
|
|
15234
|
+
|
|
15235
|
+
/**
|
|
15236
|
+
* Triggered when a device bound session event occurs.
|
|
15237
|
+
* @experimental
|
|
15238
|
+
*/
|
|
15239
|
+
export interface DeviceBoundSessionEventOccurredEvent {
|
|
15240
|
+
/**
|
|
15241
|
+
* A unique identifier for this session event.
|
|
15242
|
+
*/
|
|
15243
|
+
eventId: DeviceBoundSessionEventId;
|
|
15244
|
+
/**
|
|
15245
|
+
* The site this session event is associated with.
|
|
15246
|
+
*/
|
|
15247
|
+
site: string;
|
|
15248
|
+
/**
|
|
15249
|
+
* Whether this event was considered successful.
|
|
15250
|
+
*/
|
|
15251
|
+
succeeded: boolean;
|
|
15252
|
+
/**
|
|
15253
|
+
* The session ID this event is associated with. May not be populated for
|
|
15254
|
+
* failed events.
|
|
15255
|
+
*/
|
|
15256
|
+
sessionId?: string;
|
|
15257
|
+
/**
|
|
15258
|
+
* The below are the different session event type details. Exactly one is populated.
|
|
15259
|
+
*/
|
|
15260
|
+
creationEventDetails?: CreationEventDetails;
|
|
15261
|
+
refreshEventDetails?: RefreshEventDetails;
|
|
15262
|
+
terminationEventDetails?: TerminationEventDetails;
|
|
15263
|
+
challengeEventDetails?: ChallengeEventDetails;
|
|
15264
|
+
}
|
|
15128
15265
|
}
|
|
15129
15266
|
|
|
15130
15267
|
/**
|