chrome-types 0.1.315 → 0.1.316

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.
Files changed (3) hide show
  1. package/_all.d.ts +64 -2
  2. package/index.d.ts +64 -2
  3. package/package.json +2 -2
package/_all.d.ts CHANGED
@@ -14,8 +14,8 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- // Generated on Fri Nov 01 2024 22:31:05 GMT+0000 (Coordinated Universal Time)
18
- // Built at a5c2aaa7e5af3f4ceaea0a606c79e537a859cdae
17
+ // Generated on Tue Nov 05 2024 22:31:49 GMT+0000 (Coordinated Universal Time)
18
+ // Built at 9c84b9951e0eba949d6d90b1371b6ea18e01529d
19
19
 
20
20
  // Includes all types, including MV2 + Platform Apps APIs.
21
21
 
@@ -7027,6 +7027,29 @@ declare namespace chrome {
7027
7027
  partitionKey?: CookiePartitionKey;
7028
7028
  }
7029
7029
 
7030
+ /**
7031
+ * Details to identify the frame.
7032
+ *
7033
+ * @since Pending
7034
+ */
7035
+ export interface FrameDetails {
7036
+
7037
+ /**
7038
+ * The unique identifier for the tab containing the frame.
7039
+ */
7040
+ tabId?: number;
7041
+
7042
+ /**
7043
+ * The unique identifier for the frame within the tab.
7044
+ */
7045
+ frameId?: number;
7046
+
7047
+ /**
7048
+ * The unique identifier for the document. If the frameId and/or tabId are provided they will be validated to match the document found by provided document ID.
7049
+ */
7050
+ documentId?: string;
7051
+ }
7052
+
7030
7053
  /**
7031
7054
  * Fired when a cookie is set or removed. As a special case, note that updating a cookie's properties is implemented as a two step process: the cookie to be updated is first removed entirely, generating a notification with "cause" of "overwrite" . Afterwards, a new cookie is written with the updated values, generating a second notification with "cause" "explicit".
7032
7055
  */
@@ -7427,6 +7450,45 @@ declare namespace chrome {
7427
7450
  cookieStores: CookieStore[],
7428
7451
  ) => void,
7429
7452
  ): void;
7453
+
7454
+ /**
7455
+ * The partition key for the frame indicated.
7456
+ *
7457
+ * @since Pending
7458
+ */
7459
+ export function getPartitionKey(
7460
+
7461
+ details: FrameDetails,
7462
+ ): Promise<{
7463
+
7464
+ /**
7465
+ * The partition key for reading or modifying cookies with the Partitioned attribute.
7466
+ */
7467
+ partitionKey: CookiePartitionKey,
7468
+ }>;
7469
+
7470
+ /**
7471
+ * The partition key for the frame indicated.
7472
+ *
7473
+ * @since Pending
7474
+ */
7475
+ export function getPartitionKey(
7476
+
7477
+ details: FrameDetails,
7478
+
7479
+ /**
7480
+ * @param details Contains details about the partition key that's been retrieved.
7481
+ */
7482
+ callback?: (
7483
+ details: {
7484
+
7485
+ /**
7486
+ * The partition key for reading or modifying cookies with the Partitioned attribute.
7487
+ */
7488
+ partitionKey: CookiePartitionKey,
7489
+ },
7490
+ ) => void,
7491
+ ): void;
7430
7492
  }
7431
7493
 
7432
7494
  /**
package/index.d.ts CHANGED
@@ -14,8 +14,8 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- // Generated on Fri Nov 01 2024 22:31:01 GMT+0000 (Coordinated Universal Time)
18
- // Built at a5c2aaa7e5af3f4ceaea0a606c79e537a859cdae
17
+ // Generated on Tue Nov 05 2024 22:31:44 GMT+0000 (Coordinated Universal Time)
18
+ // Built at 9c84b9951e0eba949d6d90b1371b6ea18e01529d
19
19
 
20
20
  // Includes MV3+ APIs only.
21
21
 
@@ -3763,6 +3763,29 @@ declare namespace chrome {
3763
3763
  partitionKey?: CookiePartitionKey;
3764
3764
  }
3765
3765
 
3766
+ /**
3767
+ * Details to identify the frame.
3768
+ *
3769
+ * @since Pending
3770
+ */
3771
+ export interface FrameDetails {
3772
+
3773
+ /**
3774
+ * The unique identifier for the tab containing the frame.
3775
+ */
3776
+ tabId?: number;
3777
+
3778
+ /**
3779
+ * The unique identifier for the frame within the tab.
3780
+ */
3781
+ frameId?: number;
3782
+
3783
+ /**
3784
+ * The unique identifier for the document. If the frameId and/or tabId are provided they will be validated to match the document found by provided document ID.
3785
+ */
3786
+ documentId?: string;
3787
+ }
3788
+
3766
3789
  /**
3767
3790
  * Fired when a cookie is set or removed. As a special case, note that updating a cookie's properties is implemented as a two step process: the cookie to be updated is first removed entirely, generating a notification with "cause" of "overwrite" . Afterwards, a new cookie is written with the updated values, generating a second notification with "cause" "explicit".
3768
3791
  */
@@ -4163,6 +4186,45 @@ declare namespace chrome {
4163
4186
  cookieStores: CookieStore[],
4164
4187
  ) => void,
4165
4188
  ): void;
4189
+
4190
+ /**
4191
+ * The partition key for the frame indicated.
4192
+ *
4193
+ * @since Pending
4194
+ */
4195
+ export function getPartitionKey(
4196
+
4197
+ details: FrameDetails,
4198
+ ): Promise<{
4199
+
4200
+ /**
4201
+ * The partition key for reading or modifying cookies with the Partitioned attribute.
4202
+ */
4203
+ partitionKey: CookiePartitionKey,
4204
+ }>;
4205
+
4206
+ /**
4207
+ * The partition key for the frame indicated.
4208
+ *
4209
+ * @since Pending
4210
+ */
4211
+ export function getPartitionKey(
4212
+
4213
+ details: FrameDetails,
4214
+
4215
+ /**
4216
+ * @param details Contains details about the partition key that's been retrieved.
4217
+ */
4218
+ callback?: (
4219
+ details: {
4220
+
4221
+ /**
4222
+ * The partition key for reading or modifying cookies with the Partitioned attribute.
4223
+ */
4224
+ partitionKey: CookiePartitionKey,
4225
+ },
4226
+ ) => void,
4227
+ ): void;
4166
4228
  }
4167
4229
 
4168
4230
  /**
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "type": "module",
6
6
  "name": "chrome-types",
7
7
  "config": {
8
- "build-hash": "157f9e4b406d81b5"
8
+ "build-hash": "b740116632b338b8"
9
9
  },
10
10
  "repository": {
11
11
  "type": "git",
@@ -16,5 +16,5 @@
16
16
  "url": "https://github.com/GoogleChrome/chrome-types/issues"
17
17
  },
18
18
  "homepage": "https://github.com/GoogleChrome/chrome-types",
19
- "version": "0.1.315"
19
+ "version": "0.1.316"
20
20
  }