devtools-protocol 0.0.1561482 → 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.
- package/json/browser_protocol.json +442 -0
- package/package.json +1 -1
- package/pdl/domains/Network.pdl +236 -0
- package/types/protocol-mapping.d.ts +27 -1
- package/types/protocol-proxy-api.d.ts +25 -1
- package/types/protocol-tests-proxy-api.d.ts +29 -1
- package/types/protocol.d.ts +296 -1
|
@@ -17157,6 +17157,353 @@
|
|
|
17157
17157
|
}
|
|
17158
17158
|
]
|
|
17159
17159
|
},
|
|
17160
|
+
{
|
|
17161
|
+
"id": "DeviceBoundSessionKey",
|
|
17162
|
+
"description": "Unique identifier for a device bound session.",
|
|
17163
|
+
"experimental": true,
|
|
17164
|
+
"type": "object",
|
|
17165
|
+
"properties": [
|
|
17166
|
+
{
|
|
17167
|
+
"name": "site",
|
|
17168
|
+
"description": "The site the session is set up for.",
|
|
17169
|
+
"type": "string"
|
|
17170
|
+
},
|
|
17171
|
+
{
|
|
17172
|
+
"name": "id",
|
|
17173
|
+
"description": "The id of the session.",
|
|
17174
|
+
"type": "string"
|
|
17175
|
+
}
|
|
17176
|
+
]
|
|
17177
|
+
},
|
|
17178
|
+
{
|
|
17179
|
+
"id": "DeviceBoundSessionCookieCraving",
|
|
17180
|
+
"description": "A device bound session's cookie craving.",
|
|
17181
|
+
"experimental": true,
|
|
17182
|
+
"type": "object",
|
|
17183
|
+
"properties": [
|
|
17184
|
+
{
|
|
17185
|
+
"name": "name",
|
|
17186
|
+
"description": "The name of the craving.",
|
|
17187
|
+
"type": "string"
|
|
17188
|
+
},
|
|
17189
|
+
{
|
|
17190
|
+
"name": "domain",
|
|
17191
|
+
"description": "The domain of the craving.",
|
|
17192
|
+
"type": "string"
|
|
17193
|
+
},
|
|
17194
|
+
{
|
|
17195
|
+
"name": "path",
|
|
17196
|
+
"description": "The path of the craving.",
|
|
17197
|
+
"type": "string"
|
|
17198
|
+
},
|
|
17199
|
+
{
|
|
17200
|
+
"name": "secure",
|
|
17201
|
+
"description": "The `Secure` attribute of the craving attributes.",
|
|
17202
|
+
"type": "boolean"
|
|
17203
|
+
},
|
|
17204
|
+
{
|
|
17205
|
+
"name": "httpOnly",
|
|
17206
|
+
"description": "The `HttpOnly` attribute of the craving attributes.",
|
|
17207
|
+
"type": "boolean"
|
|
17208
|
+
},
|
|
17209
|
+
{
|
|
17210
|
+
"name": "sameSite",
|
|
17211
|
+
"description": "The `SameSite` attribute of the craving attributes.",
|
|
17212
|
+
"optional": true,
|
|
17213
|
+
"$ref": "CookieSameSite"
|
|
17214
|
+
}
|
|
17215
|
+
]
|
|
17216
|
+
},
|
|
17217
|
+
{
|
|
17218
|
+
"id": "DeviceBoundSessionUrlRule",
|
|
17219
|
+
"description": "A device bound session's inclusion URL rule.",
|
|
17220
|
+
"experimental": true,
|
|
17221
|
+
"type": "object",
|
|
17222
|
+
"properties": [
|
|
17223
|
+
{
|
|
17224
|
+
"name": "ruleType",
|
|
17225
|
+
"description": "See comments on `net::device_bound_sessions::SessionInclusionRules::UrlRule::rule_type`.",
|
|
17226
|
+
"type": "string",
|
|
17227
|
+
"enum": [
|
|
17228
|
+
"Exclude",
|
|
17229
|
+
"Include"
|
|
17230
|
+
]
|
|
17231
|
+
},
|
|
17232
|
+
{
|
|
17233
|
+
"name": "hostPattern",
|
|
17234
|
+
"description": "See comments on `net::device_bound_sessions::SessionInclusionRules::UrlRule::host_pattern`.",
|
|
17235
|
+
"type": "string"
|
|
17236
|
+
},
|
|
17237
|
+
{
|
|
17238
|
+
"name": "pathPrefix",
|
|
17239
|
+
"description": "See comments on `net::device_bound_sessions::SessionInclusionRules::UrlRule::path_prefix`.",
|
|
17240
|
+
"type": "string"
|
|
17241
|
+
}
|
|
17242
|
+
]
|
|
17243
|
+
},
|
|
17244
|
+
{
|
|
17245
|
+
"id": "DeviceBoundSessionInclusionRules",
|
|
17246
|
+
"description": "A device bound session's inclusion rules.",
|
|
17247
|
+
"experimental": true,
|
|
17248
|
+
"type": "object",
|
|
17249
|
+
"properties": [
|
|
17250
|
+
{
|
|
17251
|
+
"name": "origin",
|
|
17252
|
+
"description": "See comments on `net::device_bound_sessions::SessionInclusionRules::origin_`.",
|
|
17253
|
+
"type": "string"
|
|
17254
|
+
},
|
|
17255
|
+
{
|
|
17256
|
+
"name": "includeSite",
|
|
17257
|
+
"description": "Whether the whole site is included. See comments on\n`net::device_bound_sessions::SessionInclusionRules::include_site_` for more\ndetails; this boolean is true if that value is populated.",
|
|
17258
|
+
"type": "boolean"
|
|
17259
|
+
},
|
|
17260
|
+
{
|
|
17261
|
+
"name": "urlRules",
|
|
17262
|
+
"description": "See comments on `net::device_bound_sessions::SessionInclusionRules::url_rules_`.",
|
|
17263
|
+
"type": "array",
|
|
17264
|
+
"items": {
|
|
17265
|
+
"$ref": "DeviceBoundSessionUrlRule"
|
|
17266
|
+
}
|
|
17267
|
+
}
|
|
17268
|
+
]
|
|
17269
|
+
},
|
|
17270
|
+
{
|
|
17271
|
+
"id": "DeviceBoundSession",
|
|
17272
|
+
"description": "A device bound session.",
|
|
17273
|
+
"experimental": true,
|
|
17274
|
+
"type": "object",
|
|
17275
|
+
"properties": [
|
|
17276
|
+
{
|
|
17277
|
+
"name": "key",
|
|
17278
|
+
"description": "The site and session ID of the session.",
|
|
17279
|
+
"$ref": "DeviceBoundSessionKey"
|
|
17280
|
+
},
|
|
17281
|
+
{
|
|
17282
|
+
"name": "refreshUrl",
|
|
17283
|
+
"description": "See comments on `net::device_bound_sessions::Session::refresh_url_`.",
|
|
17284
|
+
"type": "string"
|
|
17285
|
+
},
|
|
17286
|
+
{
|
|
17287
|
+
"name": "inclusionRules",
|
|
17288
|
+
"description": "See comments on `net::device_bound_sessions::Session::inclusion_rules_`.",
|
|
17289
|
+
"$ref": "DeviceBoundSessionInclusionRules"
|
|
17290
|
+
},
|
|
17291
|
+
{
|
|
17292
|
+
"name": "cookieCravings",
|
|
17293
|
+
"description": "See comments on `net::device_bound_sessions::Session::cookie_cravings_`.",
|
|
17294
|
+
"type": "array",
|
|
17295
|
+
"items": {
|
|
17296
|
+
"$ref": "DeviceBoundSessionCookieCraving"
|
|
17297
|
+
}
|
|
17298
|
+
},
|
|
17299
|
+
{
|
|
17300
|
+
"name": "expiryDate",
|
|
17301
|
+
"description": "See comments on `net::device_bound_sessions::Session::expiry_date_`.",
|
|
17302
|
+
"$ref": "Network.TimeSinceEpoch"
|
|
17303
|
+
},
|
|
17304
|
+
{
|
|
17305
|
+
"name": "cachedChallenge",
|
|
17306
|
+
"description": "See comments on `net::device_bound_sessions::Session::cached_challenge__`.",
|
|
17307
|
+
"optional": true,
|
|
17308
|
+
"type": "string"
|
|
17309
|
+
},
|
|
17310
|
+
{
|
|
17311
|
+
"name": "allowedRefreshInitiators",
|
|
17312
|
+
"description": "See comments on `net::device_bound_sessions::Session::allowed_refresh_initiators_`.",
|
|
17313
|
+
"type": "array",
|
|
17314
|
+
"items": {
|
|
17315
|
+
"type": "string"
|
|
17316
|
+
}
|
|
17317
|
+
}
|
|
17318
|
+
]
|
|
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
|
+
},
|
|
17160
17507
|
{
|
|
17161
17508
|
"id": "LoadNetworkResourcePageResult",
|
|
17162
17509
|
"description": "An object providing the result of a network resource load.",
|
|
@@ -18026,6 +18373,37 @@
|
|
|
18026
18373
|
}
|
|
18027
18374
|
]
|
|
18028
18375
|
},
|
|
18376
|
+
{
|
|
18377
|
+
"name": "enableDeviceBoundSessions",
|
|
18378
|
+
"description": "Sets up tracking device bound sessions and fetching of initial set of sessions.",
|
|
18379
|
+
"experimental": true,
|
|
18380
|
+
"parameters": [
|
|
18381
|
+
{
|
|
18382
|
+
"name": "enable",
|
|
18383
|
+
"description": "Whether to enable or disable events.",
|
|
18384
|
+
"type": "boolean"
|
|
18385
|
+
}
|
|
18386
|
+
]
|
|
18387
|
+
},
|
|
18388
|
+
{
|
|
18389
|
+
"name": "fetchSchemefulSite",
|
|
18390
|
+
"description": "Fetches the schemeful site for a specific origin.",
|
|
18391
|
+
"experimental": true,
|
|
18392
|
+
"parameters": [
|
|
18393
|
+
{
|
|
18394
|
+
"name": "origin",
|
|
18395
|
+
"description": "The URL origin.",
|
|
18396
|
+
"type": "string"
|
|
18397
|
+
}
|
|
18398
|
+
],
|
|
18399
|
+
"returns": [
|
|
18400
|
+
{
|
|
18401
|
+
"name": "schemefulSite",
|
|
18402
|
+
"description": "The corresponding schemeful site.",
|
|
18403
|
+
"type": "string"
|
|
18404
|
+
}
|
|
18405
|
+
]
|
|
18406
|
+
},
|
|
18029
18407
|
{
|
|
18030
18408
|
"name": "loadNetworkResource",
|
|
18031
18409
|
"description": "Fetches the resource and returns the content.",
|
|
@@ -19184,6 +19562,70 @@
|
|
|
19184
19562
|
}
|
|
19185
19563
|
}
|
|
19186
19564
|
]
|
|
19565
|
+
},
|
|
19566
|
+
{
|
|
19567
|
+
"name": "deviceBoundSessionsAdded",
|
|
19568
|
+
"description": "Triggered when the initial set of device bound sessions is added.",
|
|
19569
|
+
"experimental": true,
|
|
19570
|
+
"parameters": [
|
|
19571
|
+
{
|
|
19572
|
+
"name": "sessions",
|
|
19573
|
+
"description": "The device bound sessions.",
|
|
19574
|
+
"type": "array",
|
|
19575
|
+
"items": {
|
|
19576
|
+
"$ref": "DeviceBoundSession"
|
|
19577
|
+
}
|
|
19578
|
+
}
|
|
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
|
+
]
|
|
19187
19629
|
}
|
|
19188
19630
|
]
|
|
19189
19631
|
},
|
package/package.json
CHANGED
package/pdl/domains/Network.pdl
CHANGED
|
@@ -2057,6 +2057,242 @@ domain Network
|
|
|
2057
2057
|
string origin
|
|
2058
2058
|
array of ReportingApiEndpoint endpoints
|
|
2059
2059
|
|
|
2060
|
+
# Unique identifier for a device bound session.
|
|
2061
|
+
experimental type DeviceBoundSessionKey extends object
|
|
2062
|
+
properties
|
|
2063
|
+
# The site the session is set up for.
|
|
2064
|
+
string site
|
|
2065
|
+
# The id of the session.
|
|
2066
|
+
string id
|
|
2067
|
+
|
|
2068
|
+
# A device bound session's cookie craving.
|
|
2069
|
+
experimental type DeviceBoundSessionCookieCraving extends object
|
|
2070
|
+
properties
|
|
2071
|
+
# The name of the craving.
|
|
2072
|
+
string name
|
|
2073
|
+
# The domain of the craving.
|
|
2074
|
+
string domain
|
|
2075
|
+
# The path of the craving.
|
|
2076
|
+
string path
|
|
2077
|
+
# The `Secure` attribute of the craving attributes.
|
|
2078
|
+
boolean secure
|
|
2079
|
+
# The `HttpOnly` attribute of the craving attributes.
|
|
2080
|
+
boolean httpOnly
|
|
2081
|
+
# The `SameSite` attribute of the craving attributes.
|
|
2082
|
+
optional CookieSameSite sameSite
|
|
2083
|
+
|
|
2084
|
+
# A device bound session's inclusion URL rule.
|
|
2085
|
+
experimental type DeviceBoundSessionUrlRule extends object
|
|
2086
|
+
properties
|
|
2087
|
+
# See comments on `net::device_bound_sessions::SessionInclusionRules::UrlRule::rule_type`.
|
|
2088
|
+
enum ruleType
|
|
2089
|
+
Exclude
|
|
2090
|
+
Include
|
|
2091
|
+
# See comments on `net::device_bound_sessions::SessionInclusionRules::UrlRule::host_pattern`.
|
|
2092
|
+
string hostPattern
|
|
2093
|
+
# See comments on `net::device_bound_sessions::SessionInclusionRules::UrlRule::path_prefix`.
|
|
2094
|
+
string pathPrefix
|
|
2095
|
+
|
|
2096
|
+
# A device bound session's inclusion rules.
|
|
2097
|
+
experimental type DeviceBoundSessionInclusionRules extends object
|
|
2098
|
+
properties
|
|
2099
|
+
# See comments on `net::device_bound_sessions::SessionInclusionRules::origin_`.
|
|
2100
|
+
string origin
|
|
2101
|
+
# Whether the whole site is included. See comments on
|
|
2102
|
+
# `net::device_bound_sessions::SessionInclusionRules::include_site_` for more
|
|
2103
|
+
# details; this boolean is true if that value is populated.
|
|
2104
|
+
boolean includeSite
|
|
2105
|
+
# See comments on `net::device_bound_sessions::SessionInclusionRules::url_rules_`.
|
|
2106
|
+
array of DeviceBoundSessionUrlRule urlRules
|
|
2107
|
+
|
|
2108
|
+
# A device bound session.
|
|
2109
|
+
experimental type DeviceBoundSession extends object
|
|
2110
|
+
properties
|
|
2111
|
+
# The site and session ID of the session.
|
|
2112
|
+
DeviceBoundSessionKey key
|
|
2113
|
+
# See comments on `net::device_bound_sessions::Session::refresh_url_`.
|
|
2114
|
+
string refreshUrl
|
|
2115
|
+
# See comments on `net::device_bound_sessions::Session::inclusion_rules_`.
|
|
2116
|
+
DeviceBoundSessionInclusionRules inclusionRules
|
|
2117
|
+
# See comments on `net::device_bound_sessions::Session::cookie_cravings_`.
|
|
2118
|
+
array of DeviceBoundSessionCookieCraving cookieCravings
|
|
2119
|
+
# See comments on `net::device_bound_sessions::Session::expiry_date_`.
|
|
2120
|
+
Network.TimeSinceEpoch expiryDate
|
|
2121
|
+
# See comments on `net::device_bound_sessions::Session::cached_challenge__`.
|
|
2122
|
+
optional string cachedChallenge
|
|
2123
|
+
# See comments on `net::device_bound_sessions::Session::allowed_refresh_initiators_`.
|
|
2124
|
+
array of string allowedRefreshInitiators
|
|
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
|
+
|
|
2256
|
+
# Triggered when the initial set of device bound sessions is added.
|
|
2257
|
+
experimental event deviceBoundSessionsAdded
|
|
2258
|
+
parameters
|
|
2259
|
+
# The device bound sessions.
|
|
2260
|
+
array of DeviceBoundSession sessions
|
|
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
|
+
|
|
2281
|
+
# Sets up tracking device bound sessions and fetching of initial set of sessions.
|
|
2282
|
+
experimental command enableDeviceBoundSessions
|
|
2283
|
+
parameters
|
|
2284
|
+
# Whether to enable or disable events.
|
|
2285
|
+
boolean enable
|
|
2286
|
+
|
|
2287
|
+
# Fetches the schemeful site for a specific origin.
|
|
2288
|
+
experimental command fetchSchemefulSite
|
|
2289
|
+
parameters
|
|
2290
|
+
# The URL origin.
|
|
2291
|
+
string origin
|
|
2292
|
+
returns
|
|
2293
|
+
# The corresponding schemeful site.
|
|
2294
|
+
string schemefulSite
|
|
2295
|
+
|
|
2060
2296
|
# An object providing the result of a network resource load.
|
|
2061
2297
|
experimental type LoadNetworkResourcePageResult extends object
|
|
2062
2298
|
properties
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright (c)
|
|
1
|
+
// Copyright (c) 2026 The Chromium Authors. All rights reserved.
|
|
2
2
|
// Use of this source code is governed by a BSD-style license that can be
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
|
|
@@ -582,6 +582,16 @@ export namespace ProtocolMapping {
|
|
|
582
582
|
* @experimental
|
|
583
583
|
*/
|
|
584
584
|
'Network.reportingApiEndpointsChangedForOrigin': [Protocol.Network.ReportingApiEndpointsChangedForOriginEvent];
|
|
585
|
+
/**
|
|
586
|
+
* Triggered when the initial set of device bound sessions is added.
|
|
587
|
+
* @experimental
|
|
588
|
+
*/
|
|
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];
|
|
585
595
|
/**
|
|
586
596
|
* Fired when the node should be inspected. This happens after call to `setInspectMode` or when
|
|
587
597
|
* user manually inspects an element.
|
|
@@ -4359,6 +4369,22 @@ export namespace ProtocolMapping {
|
|
|
4359
4369
|
paramsType: [Protocol.Network.EnableReportingApiRequest];
|
|
4360
4370
|
returnType: void;
|
|
4361
4371
|
};
|
|
4372
|
+
/**
|
|
4373
|
+
* Sets up tracking device bound sessions and fetching of initial set of sessions.
|
|
4374
|
+
* @experimental
|
|
4375
|
+
*/
|
|
4376
|
+
'Network.enableDeviceBoundSessions': {
|
|
4377
|
+
paramsType: [Protocol.Network.EnableDeviceBoundSessionsRequest];
|
|
4378
|
+
returnType: void;
|
|
4379
|
+
};
|
|
4380
|
+
/**
|
|
4381
|
+
* Fetches the schemeful site for a specific origin.
|
|
4382
|
+
* @experimental
|
|
4383
|
+
*/
|
|
4384
|
+
'Network.fetchSchemefulSite': {
|
|
4385
|
+
paramsType: [Protocol.Network.FetchSchemefulSiteRequest];
|
|
4386
|
+
returnType: Protocol.Network.FetchSchemefulSiteResponse;
|
|
4387
|
+
};
|
|
4362
4388
|
/**
|
|
4363
4389
|
* Fetches the resource and returns the content.
|
|
4364
4390
|
* @experimental
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright (c)
|
|
1
|
+
// Copyright (c) 2026 The Chromium Authors. All rights reserved.
|
|
2
2
|
// Use of this source code is governed by a BSD-style license that can be
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
|
|
@@ -3193,6 +3193,18 @@ export namespace ProtocolProxyApi {
|
|
|
3193
3193
|
*/
|
|
3194
3194
|
enableReportingApi(params: Protocol.Network.EnableReportingApiRequest): Promise<void>;
|
|
3195
3195
|
|
|
3196
|
+
/**
|
|
3197
|
+
* Sets up tracking device bound sessions and fetching of initial set of sessions.
|
|
3198
|
+
* @experimental
|
|
3199
|
+
*/
|
|
3200
|
+
enableDeviceBoundSessions(params: Protocol.Network.EnableDeviceBoundSessionsRequest): Promise<void>;
|
|
3201
|
+
|
|
3202
|
+
/**
|
|
3203
|
+
* Fetches the schemeful site for a specific origin.
|
|
3204
|
+
* @experimental
|
|
3205
|
+
*/
|
|
3206
|
+
fetchSchemefulSite(params: Protocol.Network.FetchSchemefulSiteRequest): Promise<Protocol.Network.FetchSchemefulSiteResponse>;
|
|
3207
|
+
|
|
3196
3208
|
/**
|
|
3197
3209
|
* Fetches the resource and returns the content.
|
|
3198
3210
|
* @experimental
|
|
@@ -3451,6 +3463,18 @@ export namespace ProtocolProxyApi {
|
|
|
3451
3463
|
*/
|
|
3452
3464
|
on(event: 'reportingApiEndpointsChangedForOrigin', listener: (params: Protocol.Network.ReportingApiEndpointsChangedForOriginEvent) => void): void;
|
|
3453
3465
|
|
|
3466
|
+
/**
|
|
3467
|
+
* Triggered when the initial set of device bound sessions is added.
|
|
3468
|
+
* @experimental
|
|
3469
|
+
*/
|
|
3470
|
+
on(event: 'deviceBoundSessionsAdded', listener: (params: Protocol.Network.DeviceBoundSessionsAddedEvent) => void): void;
|
|
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
|
+
|
|
3454
3478
|
}
|
|
3455
3479
|
|
|
3456
3480
|
export interface OverlayApi {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright (c)
|
|
1
|
+
// Copyright (c) 2026 The Chromium Authors. All rights reserved.
|
|
2
2
|
// Use of this source code is governed by a BSD-style license that can be
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
|
|
@@ -3365,6 +3365,18 @@ export namespace ProtocolTestsProxyApi {
|
|
|
3365
3365
|
*/
|
|
3366
3366
|
enableReportingApi(params: Protocol.Network.EnableReportingApiRequest): Promise<{id: number, result: void, sessionId: string}>;
|
|
3367
3367
|
|
|
3368
|
+
/**
|
|
3369
|
+
* Sets up tracking device bound sessions and fetching of initial set of sessions.
|
|
3370
|
+
* @experimental
|
|
3371
|
+
*/
|
|
3372
|
+
enableDeviceBoundSessions(params: Protocol.Network.EnableDeviceBoundSessionsRequest): Promise<{id: number, result: void, sessionId: string}>;
|
|
3373
|
+
|
|
3374
|
+
/**
|
|
3375
|
+
* Fetches the schemeful site for a specific origin.
|
|
3376
|
+
* @experimental
|
|
3377
|
+
*/
|
|
3378
|
+
fetchSchemefulSite(params: Protocol.Network.FetchSchemefulSiteRequest): Promise<{id: number, result: Protocol.Network.FetchSchemefulSiteResponse, sessionId: string}>;
|
|
3379
|
+
|
|
3368
3380
|
/**
|
|
3369
3381
|
* Fetches the resource and returns the content.
|
|
3370
3382
|
* @experimental
|
|
@@ -3707,6 +3719,22 @@ export namespace ProtocolTestsProxyApi {
|
|
|
3707
3719
|
offReportingApiEndpointsChangedForOrigin(listener: (event: { params: Protocol.Network.ReportingApiEndpointsChangedForOriginEvent }) => void): void;
|
|
3708
3720
|
onceReportingApiEndpointsChangedForOrigin(eventMatcher?: (event: { params: Protocol.Network.ReportingApiEndpointsChangedForOriginEvent }) => boolean): Promise<{ params: Protocol.Network.ReportingApiEndpointsChangedForOriginEvent }>;
|
|
3709
3721
|
|
|
3722
|
+
/**
|
|
3723
|
+
* Triggered when the initial set of device bound sessions is added.
|
|
3724
|
+
* @experimental
|
|
3725
|
+
*/
|
|
3726
|
+
onDeviceBoundSessionsAdded(listener: (event: { params: Protocol.Network.DeviceBoundSessionsAddedEvent }) => void): void;
|
|
3727
|
+
offDeviceBoundSessionsAdded(listener: (event: { params: Protocol.Network.DeviceBoundSessionsAddedEvent }) => void): void;
|
|
3728
|
+
onceDeviceBoundSessionsAdded(eventMatcher?: (event: { params: Protocol.Network.DeviceBoundSessionsAddedEvent }) => boolean): Promise<{ params: Protocol.Network.DeviceBoundSessionsAddedEvent }>;
|
|
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
|
+
|
|
3710
3738
|
}
|
|
3711
3739
|
|
|
3712
3740
|
export interface OverlayApi {
|
package/types/protocol.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright (c)
|
|
1
|
+
// Copyright (c) 2026 The Chromium Authors. All rights reserved.
|
|
2
2
|
// Use of this source code is governed by a BSD-style license that can be
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
|
|
@@ -13540,6 +13540,238 @@ export namespace Protocol {
|
|
|
13540
13540
|
groupName: string;
|
|
13541
13541
|
}
|
|
13542
13542
|
|
|
13543
|
+
/**
|
|
13544
|
+
* Unique identifier for a device bound session.
|
|
13545
|
+
* @experimental
|
|
13546
|
+
*/
|
|
13547
|
+
export interface DeviceBoundSessionKey {
|
|
13548
|
+
/**
|
|
13549
|
+
* The site the session is set up for.
|
|
13550
|
+
*/
|
|
13551
|
+
site: string;
|
|
13552
|
+
/**
|
|
13553
|
+
* The id of the session.
|
|
13554
|
+
*/
|
|
13555
|
+
id: string;
|
|
13556
|
+
}
|
|
13557
|
+
|
|
13558
|
+
/**
|
|
13559
|
+
* A device bound session's cookie craving.
|
|
13560
|
+
* @experimental
|
|
13561
|
+
*/
|
|
13562
|
+
export interface DeviceBoundSessionCookieCraving {
|
|
13563
|
+
/**
|
|
13564
|
+
* The name of the craving.
|
|
13565
|
+
*/
|
|
13566
|
+
name: string;
|
|
13567
|
+
/**
|
|
13568
|
+
* The domain of the craving.
|
|
13569
|
+
*/
|
|
13570
|
+
domain: string;
|
|
13571
|
+
/**
|
|
13572
|
+
* The path of the craving.
|
|
13573
|
+
*/
|
|
13574
|
+
path: string;
|
|
13575
|
+
/**
|
|
13576
|
+
* The `Secure` attribute of the craving attributes.
|
|
13577
|
+
*/
|
|
13578
|
+
secure: boolean;
|
|
13579
|
+
/**
|
|
13580
|
+
* The `HttpOnly` attribute of the craving attributes.
|
|
13581
|
+
*/
|
|
13582
|
+
httpOnly: boolean;
|
|
13583
|
+
/**
|
|
13584
|
+
* The `SameSite` attribute of the craving attributes.
|
|
13585
|
+
*/
|
|
13586
|
+
sameSite?: CookieSameSite;
|
|
13587
|
+
}
|
|
13588
|
+
|
|
13589
|
+
export const enum DeviceBoundSessionUrlRuleRuleType {
|
|
13590
|
+
Exclude = 'Exclude',
|
|
13591
|
+
Include = 'Include',
|
|
13592
|
+
}
|
|
13593
|
+
|
|
13594
|
+
/**
|
|
13595
|
+
* A device bound session's inclusion URL rule.
|
|
13596
|
+
* @experimental
|
|
13597
|
+
*/
|
|
13598
|
+
export interface DeviceBoundSessionUrlRule {
|
|
13599
|
+
/**
|
|
13600
|
+
* See comments on `net::device_bound_sessions::SessionInclusionRules::UrlRule::rule_type`.
|
|
13601
|
+
*/
|
|
13602
|
+
ruleType: ('Exclude' | 'Include');
|
|
13603
|
+
/**
|
|
13604
|
+
* See comments on `net::device_bound_sessions::SessionInclusionRules::UrlRule::host_pattern`.
|
|
13605
|
+
*/
|
|
13606
|
+
hostPattern: string;
|
|
13607
|
+
/**
|
|
13608
|
+
* See comments on `net::device_bound_sessions::SessionInclusionRules::UrlRule::path_prefix`.
|
|
13609
|
+
*/
|
|
13610
|
+
pathPrefix: string;
|
|
13611
|
+
}
|
|
13612
|
+
|
|
13613
|
+
/**
|
|
13614
|
+
* A device bound session's inclusion rules.
|
|
13615
|
+
* @experimental
|
|
13616
|
+
*/
|
|
13617
|
+
export interface DeviceBoundSessionInclusionRules {
|
|
13618
|
+
/**
|
|
13619
|
+
* See comments on `net::device_bound_sessions::SessionInclusionRules::origin_`.
|
|
13620
|
+
*/
|
|
13621
|
+
origin: string;
|
|
13622
|
+
/**
|
|
13623
|
+
* Whether the whole site is included. See comments on
|
|
13624
|
+
* `net::device_bound_sessions::SessionInclusionRules::include_site_` for more
|
|
13625
|
+
* details; this boolean is true if that value is populated.
|
|
13626
|
+
*/
|
|
13627
|
+
includeSite: boolean;
|
|
13628
|
+
/**
|
|
13629
|
+
* See comments on `net::device_bound_sessions::SessionInclusionRules::url_rules_`.
|
|
13630
|
+
*/
|
|
13631
|
+
urlRules: DeviceBoundSessionUrlRule[];
|
|
13632
|
+
}
|
|
13633
|
+
|
|
13634
|
+
/**
|
|
13635
|
+
* A device bound session.
|
|
13636
|
+
* @experimental
|
|
13637
|
+
*/
|
|
13638
|
+
export interface DeviceBoundSession {
|
|
13639
|
+
/**
|
|
13640
|
+
* The site and session ID of the session.
|
|
13641
|
+
*/
|
|
13642
|
+
key: DeviceBoundSessionKey;
|
|
13643
|
+
/**
|
|
13644
|
+
* See comments on `net::device_bound_sessions::Session::refresh_url_`.
|
|
13645
|
+
*/
|
|
13646
|
+
refreshUrl: string;
|
|
13647
|
+
/**
|
|
13648
|
+
* See comments on `net::device_bound_sessions::Session::inclusion_rules_`.
|
|
13649
|
+
*/
|
|
13650
|
+
inclusionRules: DeviceBoundSessionInclusionRules;
|
|
13651
|
+
/**
|
|
13652
|
+
* See comments on `net::device_bound_sessions::Session::cookie_cravings_`.
|
|
13653
|
+
*/
|
|
13654
|
+
cookieCravings: DeviceBoundSessionCookieCraving[];
|
|
13655
|
+
/**
|
|
13656
|
+
* See comments on `net::device_bound_sessions::Session::expiry_date_`.
|
|
13657
|
+
*/
|
|
13658
|
+
expiryDate: Network.TimeSinceEpoch;
|
|
13659
|
+
/**
|
|
13660
|
+
* See comments on `net::device_bound_sessions::Session::cached_challenge__`.
|
|
13661
|
+
*/
|
|
13662
|
+
cachedChallenge?: string;
|
|
13663
|
+
/**
|
|
13664
|
+
* See comments on `net::device_bound_sessions::Session::allowed_refresh_initiators_`.
|
|
13665
|
+
*/
|
|
13666
|
+
allowedRefreshInitiators: string[];
|
|
13667
|
+
}
|
|
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
|
+
|
|
13543
13775
|
/**
|
|
13544
13776
|
* An object providing the result of a network resource load.
|
|
13545
13777
|
* @experimental
|
|
@@ -14096,6 +14328,27 @@ export namespace Protocol {
|
|
|
14096
14328
|
enable: boolean;
|
|
14097
14329
|
}
|
|
14098
14330
|
|
|
14331
|
+
export interface EnableDeviceBoundSessionsRequest {
|
|
14332
|
+
/**
|
|
14333
|
+
* Whether to enable or disable events.
|
|
14334
|
+
*/
|
|
14335
|
+
enable: boolean;
|
|
14336
|
+
}
|
|
14337
|
+
|
|
14338
|
+
export interface FetchSchemefulSiteRequest {
|
|
14339
|
+
/**
|
|
14340
|
+
* The URL origin.
|
|
14341
|
+
*/
|
|
14342
|
+
origin: string;
|
|
14343
|
+
}
|
|
14344
|
+
|
|
14345
|
+
export interface FetchSchemefulSiteResponse {
|
|
14346
|
+
/**
|
|
14347
|
+
* The corresponding schemeful site.
|
|
14348
|
+
*/
|
|
14349
|
+
schemefulSite: string;
|
|
14350
|
+
}
|
|
14351
|
+
|
|
14099
14352
|
export interface LoadNetworkResourceRequest {
|
|
14100
14353
|
/**
|
|
14101
14354
|
* Frame id to get the resource for. Mandatory for frame targets, and
|
|
@@ -14967,6 +15220,48 @@ export namespace Protocol {
|
|
|
14967
15220
|
origin: string;
|
|
14968
15221
|
endpoints: ReportingApiEndpoint[];
|
|
14969
15222
|
}
|
|
15223
|
+
|
|
15224
|
+
/**
|
|
15225
|
+
* Triggered when the initial set of device bound sessions is added.
|
|
15226
|
+
* @experimental
|
|
15227
|
+
*/
|
|
15228
|
+
export interface DeviceBoundSessionsAddedEvent {
|
|
15229
|
+
/**
|
|
15230
|
+
* The device bound sessions.
|
|
15231
|
+
*/
|
|
15232
|
+
sessions: DeviceBoundSession[];
|
|
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
|
+
}
|
|
14970
15265
|
}
|
|
14971
15266
|
|
|
14972
15267
|
/**
|