devtools-protocol 0.0.1120988 → 0.0.1121538
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 +136 -0
- package/package.json +1 -1
- package/pdl/browser_protocol.pdl +58 -0
- package/types/protocol-mapping.d.ts +24 -0
- package/types/protocol-proxy-api.d.ts +20 -0
- package/types/protocol.d.ts +53 -1
@@ -19084,6 +19084,7 @@
|
|
19084
19084
|
"cache_storage",
|
19085
19085
|
"interest_groups",
|
19086
19086
|
"shared_storage",
|
19087
|
+
"storage_buckets",
|
19087
19088
|
"all",
|
19088
19089
|
"other"
|
19089
19090
|
]
|
@@ -19362,6 +19363,53 @@
|
|
19362
19363
|
"type": "boolean"
|
19363
19364
|
}
|
19364
19365
|
]
|
19366
|
+
},
|
19367
|
+
{
|
19368
|
+
"id": "StorageBucketsDurability",
|
19369
|
+
"type": "string",
|
19370
|
+
"enum": [
|
19371
|
+
"relaxed",
|
19372
|
+
"strict"
|
19373
|
+
]
|
19374
|
+
},
|
19375
|
+
{
|
19376
|
+
"id": "StorageBucketInfo",
|
19377
|
+
"type": "object",
|
19378
|
+
"properties": [
|
19379
|
+
{
|
19380
|
+
"name": "storageKey",
|
19381
|
+
"$ref": "SerializedStorageKey"
|
19382
|
+
},
|
19383
|
+
{
|
19384
|
+
"name": "id",
|
19385
|
+
"type": "string"
|
19386
|
+
},
|
19387
|
+
{
|
19388
|
+
"name": "name",
|
19389
|
+
"type": "string"
|
19390
|
+
},
|
19391
|
+
{
|
19392
|
+
"name": "isDefault",
|
19393
|
+
"type": "boolean"
|
19394
|
+
},
|
19395
|
+
{
|
19396
|
+
"name": "expiration",
|
19397
|
+
"$ref": "Network.TimeSinceEpoch"
|
19398
|
+
},
|
19399
|
+
{
|
19400
|
+
"name": "quota",
|
19401
|
+
"description": "Storage quota (bytes).",
|
19402
|
+
"type": "number"
|
19403
|
+
},
|
19404
|
+
{
|
19405
|
+
"name": "persistent",
|
19406
|
+
"type": "boolean"
|
19407
|
+
},
|
19408
|
+
{
|
19409
|
+
"name": "durability",
|
19410
|
+
"$ref": "StorageBucketsDurability"
|
19411
|
+
}
|
19412
|
+
]
|
19365
19413
|
}
|
19366
19414
|
],
|
19367
19415
|
"commands": [
|
@@ -19782,6 +19830,36 @@
|
|
19782
19830
|
"type": "boolean"
|
19783
19831
|
}
|
19784
19832
|
]
|
19833
|
+
},
|
19834
|
+
{
|
19835
|
+
"name": "setStorageBucketTracking",
|
19836
|
+
"description": "Set tracking for a storage key's buckets.",
|
19837
|
+
"experimental": true,
|
19838
|
+
"parameters": [
|
19839
|
+
{
|
19840
|
+
"name": "storageKey",
|
19841
|
+
"type": "string"
|
19842
|
+
},
|
19843
|
+
{
|
19844
|
+
"name": "enable",
|
19845
|
+
"type": "boolean"
|
19846
|
+
}
|
19847
|
+
]
|
19848
|
+
},
|
19849
|
+
{
|
19850
|
+
"name": "deleteStorageBucket",
|
19851
|
+
"description": "Deletes the Storage Bucket with the given storage key and bucket name.",
|
19852
|
+
"experimental": true,
|
19853
|
+
"parameters": [
|
19854
|
+
{
|
19855
|
+
"name": "storageKey",
|
19856
|
+
"type": "string"
|
19857
|
+
},
|
19858
|
+
{
|
19859
|
+
"name": "bucketName",
|
19860
|
+
"type": "string"
|
19861
|
+
}
|
19862
|
+
]
|
19785
19863
|
}
|
19786
19864
|
],
|
19787
19865
|
"events": [
|
@@ -19916,6 +19994,24 @@
|
|
19916
19994
|
"$ref": "SharedStorageAccessParams"
|
19917
19995
|
}
|
19918
19996
|
]
|
19997
|
+
},
|
19998
|
+
{
|
19999
|
+
"name": "storageBucketCreatedOrUpdated",
|
20000
|
+
"parameters": [
|
20001
|
+
{
|
20002
|
+
"name": "bucket",
|
20003
|
+
"$ref": "StorageBucketInfo"
|
20004
|
+
}
|
20005
|
+
]
|
20006
|
+
},
|
20007
|
+
{
|
20008
|
+
"name": "storageBucketDeleted",
|
20009
|
+
"parameters": [
|
20010
|
+
{
|
20011
|
+
"name": "bucketId",
|
20012
|
+
"type": "string"
|
20013
|
+
}
|
20014
|
+
]
|
19919
20015
|
}
|
19920
20016
|
]
|
19921
20017
|
},
|
@@ -22802,9 +22898,30 @@
|
|
22802
22898
|
"name": "sourceText",
|
22803
22899
|
"description": "Source text of JSON representing the rule set. If it comes from\n<script> tag, it is the textContent of the node. Note that it is\na JSON for valid case.\n\nSee also:\n- https://wicg.github.io/nav-speculation/speculation-rules.html\n- https://github.com/WICG/nav-speculation/blob/main/triggers.md",
|
22804
22900
|
"type": "string"
|
22901
|
+
},
|
22902
|
+
{
|
22903
|
+
"name": "errorType",
|
22904
|
+
"description": "Error information\n`errorMessage` is null iff `errorType` is null.",
|
22905
|
+
"optional": true,
|
22906
|
+
"$ref": "RuleSetErrorType"
|
22907
|
+
},
|
22908
|
+
{
|
22909
|
+
"name": "errorMessage",
|
22910
|
+
"description": "TODO(https://crbug.com/1425354): Replace this property with structured error.",
|
22911
|
+
"deprecated": true,
|
22912
|
+
"optional": true,
|
22913
|
+
"type": "string"
|
22805
22914
|
}
|
22806
22915
|
]
|
22807
22916
|
},
|
22917
|
+
{
|
22918
|
+
"id": "RuleSetErrorType",
|
22919
|
+
"type": "string",
|
22920
|
+
"enum": [
|
22921
|
+
"SourceIsNotJsonObject",
|
22922
|
+
"InvalidRulesSkipped"
|
22923
|
+
]
|
22924
|
+
},
|
22808
22925
|
{
|
22809
22926
|
"id": "SpeculationAction",
|
22810
22927
|
"description": "The type of preloading attempted. It corresponds to\nmojom::SpeculationAction (although PrefetchWithSubresources is omitted as it\nisn't being used by clients).",
|
@@ -23152,6 +23269,16 @@
|
|
23152
23269
|
"items": {
|
23153
23270
|
"$ref": "Account"
|
23154
23271
|
}
|
23272
|
+
},
|
23273
|
+
{
|
23274
|
+
"name": "title",
|
23275
|
+
"description": "These exist primarily so that the caller can verify the\nRP context was used appropriately.",
|
23276
|
+
"type": "string"
|
23277
|
+
},
|
23278
|
+
{
|
23279
|
+
"name": "subtitle",
|
23280
|
+
"optional": true,
|
23281
|
+
"type": "string"
|
23155
23282
|
}
|
23156
23283
|
]
|
23157
23284
|
}
|
@@ -23190,8 +23317,17 @@
|
|
23190
23317
|
{
|
23191
23318
|
"name": "dialogId",
|
23192
23319
|
"type": "string"
|
23320
|
+
},
|
23321
|
+
{
|
23322
|
+
"name": "triggerCooldown",
|
23323
|
+
"optional": true,
|
23324
|
+
"type": "boolean"
|
23193
23325
|
}
|
23194
23326
|
]
|
23327
|
+
},
|
23328
|
+
{
|
23329
|
+
"name": "resetCooldown",
|
23330
|
+
"description": "Resets the cooldown time, if any, to allow the next FedCM call to show\na dialog even if one was recently dismissed by the user."
|
23195
23331
|
}
|
23196
23332
|
]
|
23197
23333
|
}
|
package/package.json
CHANGED
package/pdl/browser_protocol.pdl
CHANGED
@@ -8984,6 +8984,7 @@ experimental domain Storage
|
|
8984
8984
|
cache_storage
|
8985
8985
|
interest_groups
|
8986
8986
|
shared_storage
|
8987
|
+
storage_buckets
|
8987
8988
|
all
|
8988
8989
|
other
|
8989
8990
|
|
@@ -9119,6 +9120,23 @@ experimental domain Storage
|
|
9119
9120
|
# SharedStorageAccessType.workletSet.
|
9120
9121
|
optional boolean ignoreIfPresent
|
9121
9122
|
|
9123
|
+
type StorageBucketsDurability extends string
|
9124
|
+
enum
|
9125
|
+
relaxed
|
9126
|
+
strict
|
9127
|
+
|
9128
|
+
type StorageBucketInfo extends object
|
9129
|
+
properties
|
9130
|
+
SerializedStorageKey storageKey
|
9131
|
+
string id
|
9132
|
+
string name
|
9133
|
+
boolean isDefault
|
9134
|
+
Network.TimeSinceEpoch expiration
|
9135
|
+
# Storage quota (bytes).
|
9136
|
+
number quota
|
9137
|
+
boolean persistent
|
9138
|
+
StorageBucketsDurability durability
|
9139
|
+
|
9122
9140
|
# Returns a storage key given a frame id.
|
9123
9141
|
command getStorageKeyForFrame
|
9124
9142
|
parameters
|
@@ -9315,6 +9333,18 @@ experimental domain Storage
|
|
9315
9333
|
parameters
|
9316
9334
|
boolean enable
|
9317
9335
|
|
9336
|
+
# Set tracking for a storage key's buckets.
|
9337
|
+
experimental command setStorageBucketTracking
|
9338
|
+
parameters
|
9339
|
+
string storageKey
|
9340
|
+
boolean enable
|
9341
|
+
|
9342
|
+
# Deletes the Storage Bucket with the given storage key and bucket name.
|
9343
|
+
experimental command deleteStorageBucket
|
9344
|
+
parameters
|
9345
|
+
string storageKey
|
9346
|
+
string bucketName
|
9347
|
+
|
9318
9348
|
# A cache's contents have been modified.
|
9319
9349
|
event cacheStorageContentUpdated
|
9320
9350
|
parameters
|
@@ -9377,6 +9407,14 @@ experimental domain Storage
|
|
9377
9407
|
# presence/absence depends on `type`.
|
9378
9408
|
SharedStorageAccessParams params
|
9379
9409
|
|
9410
|
+
event storageBucketCreatedOrUpdated
|
9411
|
+
parameters
|
9412
|
+
StorageBucketInfo bucket
|
9413
|
+
|
9414
|
+
event storageBucketDeleted
|
9415
|
+
parameters
|
9416
|
+
string bucketId
|
9417
|
+
|
9380
9418
|
# The SystemInfo domain defines methods and events for querying low-level system information.
|
9381
9419
|
experimental domain SystemInfo
|
9382
9420
|
|
@@ -10748,6 +10786,16 @@ experimental domain Preload
|
|
10748
10786
|
# - https://wicg.github.io/nav-speculation/speculation-rules.html
|
10749
10787
|
# - https://github.com/WICG/nav-speculation/blob/main/triggers.md
|
10750
10788
|
string sourceText
|
10789
|
+
# Error information
|
10790
|
+
# `errorMessage` is null iff `errorType` is null.
|
10791
|
+
optional RuleSetErrorType errorType
|
10792
|
+
# TODO(https://crbug.com/1425354): Replace this property with structured error.
|
10793
|
+
deprecated optional string errorMessage
|
10794
|
+
|
10795
|
+
type RuleSetErrorType extends string
|
10796
|
+
enum
|
10797
|
+
SourceIsNotJsonObject
|
10798
|
+
InvalidRulesSkipped
|
10751
10799
|
|
10752
10800
|
# The type of preloading attempted. It corresponds to
|
10753
10801
|
# mojom::SpeculationAction (although PrefetchWithSubresources is omitted as it
|
@@ -10941,6 +10989,10 @@ experimental domain FedCm
|
|
10941
10989
|
parameters
|
10942
10990
|
string dialogId
|
10943
10991
|
array of Account accounts
|
10992
|
+
# These exist primarily so that the caller can verify the
|
10993
|
+
# RP context was used appropriately.
|
10994
|
+
string title
|
10995
|
+
optional string subtitle
|
10944
10996
|
|
10945
10997
|
command enable
|
10946
10998
|
parameters
|
@@ -10959,3 +11011,9 @@ experimental domain FedCm
|
|
10959
11011
|
command dismissDialog
|
10960
11012
|
parameters
|
10961
11013
|
string dialogId
|
11014
|
+
optional boolean triggerCooldown
|
11015
|
+
|
11016
|
+
# Resets the cooldown time, if any, to allow the next FedCM call to show
|
11017
|
+
# a dialog even if one was recently dismissed by the user.
|
11018
|
+
command resetCooldown
|
11019
|
+
|
@@ -556,6 +556,8 @@ export namespace ProtocolMapping {
|
|
556
556
|
* The following parameters are included in all events.
|
557
557
|
*/
|
558
558
|
'Storage.sharedStorageAccessed': [Protocol.Storage.SharedStorageAccessedEvent];
|
559
|
+
'Storage.storageBucketCreatedOrUpdated': [Protocol.Storage.StorageBucketCreatedOrUpdatedEvent];
|
560
|
+
'Storage.storageBucketDeleted': [Protocol.Storage.StorageBucketDeletedEvent];
|
559
561
|
/**
|
560
562
|
* Issued when attached to target because of auto-attach or `attachToTarget` command.
|
561
563
|
*/
|
@@ -4201,6 +4203,20 @@ export namespace ProtocolMapping {
|
|
4201
4203
|
paramsType: [Protocol.Storage.SetSharedStorageTrackingRequest];
|
4202
4204
|
returnType: void;
|
4203
4205
|
};
|
4206
|
+
/**
|
4207
|
+
* Set tracking for a storage key's buckets.
|
4208
|
+
*/
|
4209
|
+
'Storage.setStorageBucketTracking': {
|
4210
|
+
paramsType: [Protocol.Storage.SetStorageBucketTrackingRequest];
|
4211
|
+
returnType: void;
|
4212
|
+
};
|
4213
|
+
/**
|
4214
|
+
* Deletes the Storage Bucket with the given storage key and bucket name.
|
4215
|
+
*/
|
4216
|
+
'Storage.deleteStorageBucket': {
|
4217
|
+
paramsType: [Protocol.Storage.DeleteStorageBucketRequest];
|
4218
|
+
returnType: void;
|
4219
|
+
};
|
4204
4220
|
/**
|
4205
4221
|
* Returns information about the system.
|
4206
4222
|
*/
|
@@ -4666,6 +4682,14 @@ export namespace ProtocolMapping {
|
|
4666
4682
|
paramsType: [Protocol.FedCm.DismissDialogRequest];
|
4667
4683
|
returnType: void;
|
4668
4684
|
};
|
4685
|
+
/**
|
4686
|
+
* Resets the cooldown time, if any, to allow the next FedCM call to show
|
4687
|
+
* a dialog even if one was recently dismissed by the user.
|
4688
|
+
*/
|
4689
|
+
'FedCm.resetCooldown': {
|
4690
|
+
paramsType: [];
|
4691
|
+
returnType: void;
|
4692
|
+
};
|
4669
4693
|
}
|
4670
4694
|
}
|
4671
4695
|
|
@@ -3365,6 +3365,16 @@ export namespace ProtocolProxyApi {
|
|
3365
3365
|
*/
|
3366
3366
|
setSharedStorageTracking(params: Protocol.Storage.SetSharedStorageTrackingRequest): Promise<void>;
|
3367
3367
|
|
3368
|
+
/**
|
3369
|
+
* Set tracking for a storage key's buckets.
|
3370
|
+
*/
|
3371
|
+
setStorageBucketTracking(params: Protocol.Storage.SetStorageBucketTrackingRequest): Promise<void>;
|
3372
|
+
|
3373
|
+
/**
|
3374
|
+
* Deletes the Storage Bucket with the given storage key and bucket name.
|
3375
|
+
*/
|
3376
|
+
deleteStorageBucket(params: Protocol.Storage.DeleteStorageBucketRequest): Promise<void>;
|
3377
|
+
|
3368
3378
|
/**
|
3369
3379
|
* A cache's contents have been modified.
|
3370
3380
|
*/
|
@@ -3396,6 +3406,10 @@ export namespace ProtocolProxyApi {
|
|
3396
3406
|
*/
|
3397
3407
|
on(event: 'sharedStorageAccessed', listener: (params: Protocol.Storage.SharedStorageAccessedEvent) => void): void;
|
3398
3408
|
|
3409
|
+
on(event: 'storageBucketCreatedOrUpdated', listener: (params: Protocol.Storage.StorageBucketCreatedOrUpdatedEvent) => void): void;
|
3410
|
+
|
3411
|
+
on(event: 'storageBucketDeleted', listener: (params: Protocol.Storage.StorageBucketDeletedEvent) => void): void;
|
3412
|
+
|
3399
3413
|
}
|
3400
3414
|
|
3401
3415
|
export interface SystemInfoApi {
|
@@ -3978,6 +3992,12 @@ export namespace ProtocolProxyApi {
|
|
3978
3992
|
|
3979
3993
|
dismissDialog(params: Protocol.FedCm.DismissDialogRequest): Promise<void>;
|
3980
3994
|
|
3995
|
+
/**
|
3996
|
+
* Resets the cooldown time, if any, to allow the next FedCM call to show
|
3997
|
+
* a dialog even if one was recently dismissed by the user.
|
3998
|
+
*/
|
3999
|
+
resetCooldown(): Promise<void>;
|
4000
|
+
|
3981
4001
|
on(event: 'dialogShown', listener: (params: Protocol.FedCm.DialogShownEvent) => void): void;
|
3982
4002
|
|
3983
4003
|
}
|
package/types/protocol.d.ts
CHANGED
@@ -14568,7 +14568,7 @@ export namespace Protocol {
|
|
14568
14568
|
/**
|
14569
14569
|
* Enum of possible storage types.
|
14570
14570
|
*/
|
14571
|
-
export type StorageType = ('appcache' | 'cookies' | 'file_systems' | 'indexeddb' | 'local_storage' | 'shader_cache' | 'websql' | 'service_workers' | 'cache_storage' | 'interest_groups' | 'shared_storage' | 'all' | 'other');
|
14571
|
+
export type StorageType = ('appcache' | 'cookies' | 'file_systems' | 'indexeddb' | 'local_storage' | 'shader_cache' | 'websql' | 'service_workers' | 'cache_storage' | 'interest_groups' | 'shared_storage' | 'storage_buckets' | 'all' | 'other');
|
14572
14572
|
|
14573
14573
|
/**
|
14574
14574
|
* Usage for a storage type.
|
@@ -14722,6 +14722,22 @@ export namespace Protocol {
|
|
14722
14722
|
ignoreIfPresent?: boolean;
|
14723
14723
|
}
|
14724
14724
|
|
14725
|
+
export type StorageBucketsDurability = ('relaxed' | 'strict');
|
14726
|
+
|
14727
|
+
export interface StorageBucketInfo {
|
14728
|
+
storageKey: SerializedStorageKey;
|
14729
|
+
id: string;
|
14730
|
+
name: string;
|
14731
|
+
isDefault: boolean;
|
14732
|
+
expiration: Network.TimeSinceEpoch;
|
14733
|
+
/**
|
14734
|
+
* Storage quota (bytes).
|
14735
|
+
*/
|
14736
|
+
quota: number;
|
14737
|
+
persistent: boolean;
|
14738
|
+
durability: StorageBucketsDurability;
|
14739
|
+
}
|
14740
|
+
|
14725
14741
|
export interface GetStorageKeyForFrameRequest {
|
14726
14742
|
frameId: Page.FrameId;
|
14727
14743
|
}
|
@@ -14955,6 +14971,16 @@ export namespace Protocol {
|
|
14955
14971
|
enable: boolean;
|
14956
14972
|
}
|
14957
14973
|
|
14974
|
+
export interface SetStorageBucketTrackingRequest {
|
14975
|
+
storageKey: string;
|
14976
|
+
enable: boolean;
|
14977
|
+
}
|
14978
|
+
|
14979
|
+
export interface DeleteStorageBucketRequest {
|
14980
|
+
storageKey: string;
|
14981
|
+
bucketName: string;
|
14982
|
+
}
|
14983
|
+
|
14958
14984
|
/**
|
14959
14985
|
* A cache's contents have been modified.
|
14960
14986
|
*/
|
@@ -15060,6 +15086,14 @@ export namespace Protocol {
|
|
15060
15086
|
*/
|
15061
15087
|
params: SharedStorageAccessParams;
|
15062
15088
|
}
|
15089
|
+
|
15090
|
+
export interface StorageBucketCreatedOrUpdatedEvent {
|
15091
|
+
bucket: StorageBucketInfo;
|
15092
|
+
}
|
15093
|
+
|
15094
|
+
export interface StorageBucketDeletedEvent {
|
15095
|
+
bucketId: string;
|
15096
|
+
}
|
15063
15097
|
}
|
15064
15098
|
|
15065
15099
|
/**
|
@@ -16886,8 +16920,19 @@ export namespace Protocol {
|
|
16886
16920
|
* - https://github.com/WICG/nav-speculation/blob/main/triggers.md
|
16887
16921
|
*/
|
16888
16922
|
sourceText: string;
|
16923
|
+
/**
|
16924
|
+
* Error information
|
16925
|
+
* `errorMessage` is null iff `errorType` is null.
|
16926
|
+
*/
|
16927
|
+
errorType?: RuleSetErrorType;
|
16928
|
+
/**
|
16929
|
+
* TODO(https://crbug.com/1425354): Replace this property with structured error.
|
16930
|
+
*/
|
16931
|
+
errorMessage?: string;
|
16889
16932
|
}
|
16890
16933
|
|
16934
|
+
export type RuleSetErrorType = ('SourceIsNotJsonObject' | 'InvalidRulesSkipped');
|
16935
|
+
|
16891
16936
|
/**
|
16892
16937
|
* The type of preloading attempted. It corresponds to
|
16893
16938
|
* mojom::SpeculationAction (although PrefetchWithSubresources is omitted as it
|
@@ -17050,11 +17095,18 @@ export namespace Protocol {
|
|
17050
17095
|
|
17051
17096
|
export interface DismissDialogRequest {
|
17052
17097
|
dialogId: string;
|
17098
|
+
triggerCooldown?: boolean;
|
17053
17099
|
}
|
17054
17100
|
|
17055
17101
|
export interface DialogShownEvent {
|
17056
17102
|
dialogId: string;
|
17057
17103
|
accounts: Account[];
|
17104
|
+
/**
|
17105
|
+
* These exist primarily so that the caller can verify the
|
17106
|
+
* RP context was used appropriately.
|
17107
|
+
*/
|
17108
|
+
title: string;
|
17109
|
+
subtitle?: string;
|
17058
17110
|
}
|
17059
17111
|
}
|
17060
17112
|
}
|