chrome-types 0.1.95 → 0.1.98

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 +32 -3
  2. package/index.d.ts +32 -3
  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 Tue Mar 22 2022 22:29:06 GMT+0000 (Coordinated Universal Time)
18
- // Built at ab924fb35a3eaa31d3b91243a24a0040c270b0d1
17
+ // Generated on Tue Apr 05 2022 22:30:08 GMT+0000 (Coordinated Universal Time)
18
+ // Built at df646d7d2beb4af0bd2741b5369056056afd9670
19
19
 
20
20
  // Includes all types, including MV2 + Platform Apps APIs.
21
21
 
@@ -20799,7 +20799,7 @@ declare namespace chrome {
20799
20799
  suggestion: DefaultSuggestResult,
20800
20800
 
20801
20801
  /**
20802
- * @since Pending
20802
+ * @since Chrome 100
20803
20803
  */
20804
20804
  callback?: () => void,
20805
20805
  ): void;
@@ -23212,6 +23212,13 @@ declare namespace chrome {
23212
23212
  * @since Chrome 95
23213
23213
  */
23214
23214
  world?: ExecutionWorld;
23215
+
23216
+ /**
23217
+ * Whether the injection should be triggered in the target as soon as possible. Note that this is not a guarantee that injection will occur prior to page load, as the page may have already loaded by the time the script reaches the target.
23218
+ *
23219
+ * @since Pending
23220
+ */
23221
+ injectImmediately?: boolean;
23215
23222
  }
23216
23223
 
23217
23224
  export interface CSSInjection {
@@ -31713,6 +31720,9 @@ declare namespace chrome {
31713
31720
  * @chrome-permission webAuthenticationProxy
31714
31721
  * @chrome-channel trunk
31715
31722
  * @chrome-min-manifest MV3
31723
+ * @chrome-platform win
31724
+ * @chrome-platform linux
31725
+ * @chrome-platform mac
31716
31726
  */
31717
31727
  export namespace webAuthenticationProxy {
31718
31728
 
@@ -31808,6 +31818,17 @@ declare namespace chrome {
31808
31818
  isUvpaa: boolean;
31809
31819
  }
31810
31820
 
31821
+ /**
31822
+ * A native application associated with this extension can cause this event to be fired by writing to a file with a name equal to the extension's ID in a directory named `WebAuthenticationProxyRemoteSessionStateChange` inside the \[default user data directory\](https://chromium.googlesource.com/chromium/src/+/master/docs/user\_data\_dir.md#default-location).
31823
+ *
31824
+ * The contents of the file should be empty. I.e., it is not necessary to change the contents of the file in order to trigger this event.
31825
+ *
31826
+ * The native host application may use this event mechanism to signal a possible remote session state change (i.e. from detached to attached, or vice versa) while the extension service worker is possibly suspended. In the handler for this event, the extension can call the \`attach()\` or \`detach()\` API methods accordingly.
31827
+ *
31828
+ * The event listener must be registered synchronously at load time.
31829
+ */
31830
+ export const onRemoteSessionStateChange: events.Event<() => void>;
31831
+
31811
31832
  /**
31812
31833
  * Fires when a WebAuthn navigator.credentials.create() call occurs. The extension must supply a response by calling completeCreateRequest() with the given requestId.
31813
31834
  */
@@ -31898,6 +31919,8 @@ declare namespace chrome {
31898
31919
  * This method fails with an error if a different extension is already attached or if the extension has not subscribed to all of the events defined in this API.
31899
31920
  *
31900
31921
  * The attached extension must call \`detach()\` once the remote desktop session has ended in order to resume regular WebAuthn request processing. Extensions automatically become detached if they are unloaded.
31922
+ *
31923
+ * Refer to the `onRemoteSessionStateChange` event for signaling a change of remote session attachment from a native application to to the (possibly suspended) extension.
31901
31924
  */
31902
31925
  export function attach(): Promise<string | undefined>;
31903
31926
 
@@ -31909,6 +31932,8 @@ declare namespace chrome {
31909
31932
  * This method fails with an error if a different extension is already attached or if the extension has not subscribed to all of the events defined in this API.
31910
31933
  *
31911
31934
  * The attached extension must call \`detach()\` once the remote desktop session has ended in order to resume regular WebAuthn request processing. Extensions automatically become detached if they are unloaded.
31935
+ *
31936
+ * Refer to the `onRemoteSessionStateChange` event for signaling a change of remote session attachment from a native application to to the (possibly suspended) extension.
31912
31937
  */
31913
31938
  export function attach(
31914
31939
 
@@ -31921,6 +31946,8 @@ declare namespace chrome {
31921
31946
  * Removes this extension from being the active Web Authentication API request proxy.
31922
31947
  *
31923
31948
  * This method is typically called when the extension detects that a remote desktop session was terminated. Once this method returns without error, regular processing of WebAuthn requests continues.
31949
+ *
31950
+ * Refer to the `onRemoteSessionStateChange` event for signaling a change of remote session attachment from a native application to to the (possibly suspended) extension.
31924
31951
  */
31925
31952
  export function detach(): Promise<string | undefined>;
31926
31953
 
@@ -31928,6 +31955,8 @@ declare namespace chrome {
31928
31955
  * Removes this extension from being the active Web Authentication API request proxy.
31929
31956
  *
31930
31957
  * This method is typically called when the extension detects that a remote desktop session was terminated. Once this method returns without error, regular processing of WebAuthn requests continues.
31958
+ *
31959
+ * Refer to the `onRemoteSessionStateChange` event for signaling a change of remote session attachment from a native application to to the (possibly suspended) extension.
31931
31960
  */
31932
31961
  export function detach(
31933
31962
 
package/index.d.ts CHANGED
@@ -14,8 +14,8 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- // Generated on Tue Mar 22 2022 22:29:00 GMT+0000 (Coordinated Universal Time)
18
- // Built at ab924fb35a3eaa31d3b91243a24a0040c270b0d1
17
+ // Generated on Tue Apr 05 2022 22:30:01 GMT+0000 (Coordinated Universal Time)
18
+ // Built at df646d7d2beb4af0bd2741b5369056056afd9670
19
19
 
20
20
  // Includes MV3+ APIs only.
21
21
 
@@ -15983,7 +15983,7 @@ declare namespace chrome {
15983
15983
  suggestion: DefaultSuggestResult,
15984
15984
 
15985
15985
  /**
15986
- * @since Pending
15986
+ * @since Chrome 100
15987
15987
  */
15988
15988
  callback?: () => void,
15989
15989
  ): void;
@@ -18105,6 +18105,13 @@ declare namespace chrome {
18105
18105
  * @since Chrome 95
18106
18106
  */
18107
18107
  world?: ExecutionWorld;
18108
+
18109
+ /**
18110
+ * Whether the injection should be triggered in the target as soon as possible. Note that this is not a guarantee that injection will occur prior to page load, as the page may have already loaded by the time the script reaches the target.
18111
+ *
18112
+ * @since Pending
18113
+ */
18114
+ injectImmediately?: boolean;
18108
18115
  }
18109
18116
 
18110
18117
  export interface CSSInjection {
@@ -24959,6 +24966,9 @@ declare namespace chrome {
24959
24966
  * @chrome-permission webAuthenticationProxy
24960
24967
  * @chrome-channel trunk
24961
24968
  * @chrome-min-manifest MV3
24969
+ * @chrome-platform win
24970
+ * @chrome-platform linux
24971
+ * @chrome-platform mac
24962
24972
  */
24963
24973
  export namespace webAuthenticationProxy {
24964
24974
 
@@ -25054,6 +25064,17 @@ declare namespace chrome {
25054
25064
  isUvpaa: boolean;
25055
25065
  }
25056
25066
 
25067
+ /**
25068
+ * A native application associated with this extension can cause this event to be fired by writing to a file with a name equal to the extension's ID in a directory named `WebAuthenticationProxyRemoteSessionStateChange` inside the \[default user data directory\](https://chromium.googlesource.com/chromium/src/+/master/docs/user\_data\_dir.md#default-location).
25069
+ *
25070
+ * The contents of the file should be empty. I.e., it is not necessary to change the contents of the file in order to trigger this event.
25071
+ *
25072
+ * The native host application may use this event mechanism to signal a possible remote session state change (i.e. from detached to attached, or vice versa) while the extension service worker is possibly suspended. In the handler for this event, the extension can call the \`attach()\` or \`detach()\` API methods accordingly.
25073
+ *
25074
+ * The event listener must be registered synchronously at load time.
25075
+ */
25076
+ export const onRemoteSessionStateChange: events.Event<() => void>;
25077
+
25057
25078
  /**
25058
25079
  * Fires when a WebAuthn navigator.credentials.create() call occurs. The extension must supply a response by calling completeCreateRequest() with the given requestId.
25059
25080
  */
@@ -25144,6 +25165,8 @@ declare namespace chrome {
25144
25165
  * This method fails with an error if a different extension is already attached or if the extension has not subscribed to all of the events defined in this API.
25145
25166
  *
25146
25167
  * The attached extension must call \`detach()\` once the remote desktop session has ended in order to resume regular WebAuthn request processing. Extensions automatically become detached if they are unloaded.
25168
+ *
25169
+ * Refer to the `onRemoteSessionStateChange` event for signaling a change of remote session attachment from a native application to to the (possibly suspended) extension.
25147
25170
  */
25148
25171
  export function attach(): Promise<string | undefined>;
25149
25172
 
@@ -25155,6 +25178,8 @@ declare namespace chrome {
25155
25178
  * This method fails with an error if a different extension is already attached or if the extension has not subscribed to all of the events defined in this API.
25156
25179
  *
25157
25180
  * The attached extension must call \`detach()\` once the remote desktop session has ended in order to resume regular WebAuthn request processing. Extensions automatically become detached if they are unloaded.
25181
+ *
25182
+ * Refer to the `onRemoteSessionStateChange` event for signaling a change of remote session attachment from a native application to to the (possibly suspended) extension.
25158
25183
  */
25159
25184
  export function attach(
25160
25185
 
@@ -25167,6 +25192,8 @@ declare namespace chrome {
25167
25192
  * Removes this extension from being the active Web Authentication API request proxy.
25168
25193
  *
25169
25194
  * This method is typically called when the extension detects that a remote desktop session was terminated. Once this method returns without error, regular processing of WebAuthn requests continues.
25195
+ *
25196
+ * Refer to the `onRemoteSessionStateChange` event for signaling a change of remote session attachment from a native application to to the (possibly suspended) extension.
25170
25197
  */
25171
25198
  export function detach(): Promise<string | undefined>;
25172
25199
 
@@ -25174,6 +25201,8 @@ declare namespace chrome {
25174
25201
  * Removes this extension from being the active Web Authentication API request proxy.
25175
25202
  *
25176
25203
  * This method is typically called when the extension detects that a remote desktop session was terminated. Once this method returns without error, regular processing of WebAuthn requests continues.
25204
+ *
25205
+ * Refer to the `onRemoteSessionStateChange` event for signaling a change of remote session attachment from a native application to to the (possibly suspended) extension.
25177
25206
  */
25178
25207
  export function detach(
25179
25208
 
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "type": "module",
6
6
  "name": "chrome-types",
7
7
  "config": {
8
- "build-hash": "a01a7a0a46ae7476"
8
+ "build-hash": "ae23024158d1056f"
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.95"
19
+ "version": "0.1.98"
20
20
  }