@effect-uai/browser 0.12.0 → 0.13.0

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.
@@ -1,7 +1,5 @@
1
1
  import * as CoreBrowser from "@effect-uai/core/Browser";
2
2
  import { Context, Layer } from "effect";
3
-
4
- //#region src/Connect.d.ts
5
3
  declare namespace Connect_d_exports {
6
4
  export { CdpBrowser, CdpConnectConfig, layer };
7
5
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Connect.d.mts","names":[],"sources":["../src/Connect.ts"],"mappings":";;;;;;;KAyBY,gBAAA;;;;;;WAMD,QAAA;AAAA;AAAA,cACV,eAAA;;;AAMD;;cAAa,UAAA,SAAmB,eAAA;;AAuIhC;;;;;cAAa,KAAA,GAAS,MAAA,EAAQ,gBAAA,KAAmB,KAAA,CAAM,KAAA,CAAM,UAAA,GAAa,WAAA,CAAY,OAAA"}
1
+ {"version":3,"file":"Connect.d.mts","names":[],"sources":["../src/Connect.ts"],"mappings":";;;;;KAyBY;;;;;;WAMD;;;;;;;cAOE,mBAAmB;;;;;;;cAqInB,QAAK,QAAY,qBAAmB,MAAM,MAAM,aAAa,YAAY"}
package/dist/Connect.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { t as __exportAll } from "./chunk-CfYAbeIz.mjs";
1
+ import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.mjs";
2
2
  import { openCdp } from "./internal/cdp.mjs";
3
3
  import { isMethodMissing, makeSession } from "./internal/session.mjs";
4
4
  import * as CoreBrowser from "@effect-uai/core/Browser";
@@ -1 +1 @@
1
- {"version":3,"file":"Connect.mjs","names":[],"sources":["../src/Connect.ts"],"sourcesContent":["/**\n * Generic CDP connect provider.\n *\n * Point it at any browser-level CDP WebSocket endpoint and it registers\n * the core `Browser` capability over it. This is the shared floor for the\n * whole field: a locally launched Chromium (`--remote-debugging-port`),\n * obscura's partial CDP server, or a hosted vendor's `wss://` connect URL\n * pasted straight in. Vendor-specific packages (session-create REST call,\n * auth handshake) can layer on top and reuse this data plane.\n *\n * Sessions map to CDP targets: `create` opens a fresh target (tab),\n * `attach` re-attaches to an existing one by target id (finalizer detaches\n * without closing, for warm reuse), `destroy` closes the target from\n * anywhere. The `timeout` / `idleTimeout` knobs on the create request are\n * enforced locally by the session's reaper fibers; a plain CDP endpoint\n * has no server-side cap to mirror them to.\n */\nimport * as CoreBrowser from \"@effect-uai/core/Browser\"\nimport * as BrowserError from \"@effect-uai/core/BrowserError\"\nimport { Context, Effect, Layer } from \"effect\"\nimport { type Cdp, type CdpError, openCdp } from \"./internal/cdp.js\"\nimport { isMethodMissing, makeSession } from \"./internal/session.js\"\n\nconst PROVIDER = \"cdp\"\n\nexport type CdpConnectConfig = {\n /**\n * Browser-level CDP WebSocket endpoint, e.g.\n * `ws://127.0.0.1:9222/devtools/browser/<uuid>` for local Chromium or\n * obscura, or a hosted provider's connect URL (credentials in the URL).\n */\n readonly endpoint: string\n}\n\n/**\n * Provider tag. Identical surface to the core `Browser` service; both tags\n * are registered by {@link layer}.\n */\nexport class CdpBrowser extends Context.Service<CdpBrowser, CoreBrowser.BrowserService>()(\n \"@betalyra/effect-uai/providers/browser/CdpBrowser\",\n) {}\n\n// ---------------------------------------------------------------------------\n// Error mapping (control-plane operations; the session maps its own).\n// ---------------------------------------------------------------------------\n\nconst mapCreate = (e: CdpError): BrowserError.BrowserError =>\n new BrowserError.BrowserCreateFailed({\n provider: PROVIDER,\n ...(e.reason !== undefined ? { reason: e.reason } : {}),\n raw: e,\n })\n\nconst mapLookup =\n (id: string) =>\n (e: CdpError): BrowserError.BrowserError =>\n e.kind === \"reply\" && /no target|not found|invalid target|no session/i.test(e.reason ?? \"\")\n ? new BrowserError.BrowserSessionNotFound({ provider: PROVIDER, id })\n : mapCreate(e)\n\n// ---------------------------------------------------------------------------\n// Service\n// ---------------------------------------------------------------------------\n\n/**\n * Enable the domains the session verbs rely on. Partial CDP servers that\n * auto-enable (or don't know an `enable` method) are tolerated: a\n * method-missing reply is not an error.\n */\nconst enableDomains = (cdp: Cdp, sessionId: string) =>\n Effect.forEach([\"Page.enable\", \"Runtime.enable\", \"Network.enable\"] as const, (method) =>\n cdp.send(method, {}, sessionId).pipe(Effect.catchIf(isMethodMissing, () => Effect.succeed({}))),\n ).pipe(Effect.asVoid, Effect.mapError(mapCreate))\n\nconst applyViewport = (\n cdp: Cdp,\n sessionId: string,\n viewport: NonNullable<CoreBrowser.CommonSessionRequest[\"viewport\"]>,\n) =>\n cdp\n .send(\n \"Emulation.setDeviceMetricsOverride\",\n { width: viewport.width, height: viewport.height, deviceScaleFactor: 1, mobile: false },\n sessionId,\n )\n .pipe(\n // No Emulation domain: the engine's default viewport stands.\n Effect.catchIf(isMethodMissing, () => Effect.succeed({})),\n Effect.asVoid,\n Effect.mapError(mapCreate),\n )\n\nconst makeService = (config: CdpConnectConfig): CoreBrowser.BrowserService => ({\n create: (request) =>\n Effect.gen(function* () {\n const cdp = yield* openCdp(config.endpoint)\n const { targetId } = yield* cdp\n .send(\"Target.createTarget\", { url: \"about:blank\" })\n .pipe(Effect.mapError(mapCreate))\n const closeTarget = cdp.send(\"Target.closeTarget\", { targetId }).pipe(Effect.ignore)\n yield* Effect.addFinalizer(() => closeTarget)\n const { sessionId } = yield* cdp\n .send(\"Target.attachToTarget\", { targetId, flatten: true })\n .pipe(Effect.mapError(mapCreate))\n yield* enableDomains(cdp, sessionId)\n if (request.viewport !== undefined) {\n yield* applyViewport(cdp, sessionId, request.viewport)\n }\n return yield* makeSession({\n cdp,\n id: CoreBrowser.BrowserSessionId(targetId),\n sessionId,\n provider: PROVIDER,\n request,\n dispose: closeTarget,\n })\n }),\n\n attach: (id) =>\n Effect.gen(function* () {\n const cdp = yield* openCdp(config.endpoint)\n const { sessionId } = yield* cdp\n .send(\"Target.attachToTarget\", { targetId: id, flatten: true })\n .pipe(Effect.mapError(mapLookup(id)))\n // Detach on scope close; the target keeps running for warm reuse.\n yield* Effect.addFinalizer(() =>\n cdp.send(\"Target.detachFromTarget\", { sessionId }).pipe(Effect.ignore),\n )\n yield* enableDomains(cdp, sessionId)\n return yield* makeSession({\n cdp,\n id,\n sessionId,\n provider: PROVIDER,\n request: {},\n dispose: Effect.void,\n })\n }),\n\n list: Effect.scoped(\n Effect.gen(function* () {\n const cdp = yield* openCdp(config.endpoint)\n const { targetInfos } = yield* cdp.send(\"Target.getTargets\").pipe(Effect.mapError(mapCreate))\n return targetInfos\n .filter((target) => target.type === \"page\")\n .map(\n (target): CoreBrowser.BrowserSessionRef => ({\n id: CoreBrowser.BrowserSessionId(target.targetId),\n ...(target.url !== \"\" ? { url: target.url } : {}),\n }),\n )\n }),\n ),\n\n destroy: (id) =>\n Effect.scoped(\n Effect.gen(function* () {\n const cdp = yield* openCdp(config.endpoint)\n yield* cdp.send(\"Target.closeTarget\", { targetId: id }).pipe(Effect.mapError(mapLookup(id)))\n }),\n ),\n})\n\n// ---------------------------------------------------------------------------\n// Layer\n// ---------------------------------------------------------------------------\n\n/**\n * Registers the generic CDP adapter against both the provider tag\n * ({@link CdpBrowser}) and the core `Browser` tag. No capability markers:\n * proxy / stealth / recording are vendor features, not part of a bare CDP\n * endpoint.\n */\nexport const layer = (config: CdpConnectConfig): Layer.Layer<CdpBrowser | CoreBrowser.Browser> => {\n const service = makeService(config)\n return Layer.mergeAll(\n Layer.succeed(CdpBrowser, service),\n Layer.succeed(CoreBrowser.Browser, service),\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuBA,MAAM,WAAW;;;;;AAejB,IAAa,aAAb,cAAgC,QAAQ,SAAiD,CACvF,oDACD,CAAC;AAMF,MAAM,aAAa,MACjB,IAAI,aAAa,oBAAoB;CACnC,UAAU;CACV,GAAI,EAAE,WAAW,KAAA,IAAY,EAAE,QAAQ,EAAE,QAAQ,GAAG,EAAE;CACtD,KAAK;CACN,CAAC;AAEJ,MAAM,aACH,QACA,MACC,EAAE,SAAS,WAAW,iDAAiD,KAAK,EAAE,UAA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generic CDP connect provider.\n *\n * Point it at any browser-level CDP WebSocket endpoint and it registers\n * the core `Browser` capability over it. This is the shared floor for the\n * whole field: a locally launched Chromium (`--remote-debugging-port`),\n * obscura's partial CDP server, or a hosted vendor's `wss://` connect URL\n * pasted straight in. Vendor-specific packages (session-create REST call,\n * auth handshake) can layer on top and reuse this data plane.\n *\n * Sessions map to CDP targets: `create` opens a fresh target (tab),\n * `attach` re-attaches to an existing one by target id (finalizer detaches\n * without closing, for warm reuse), `destroy` closes the target from\n * anywhere. The `timeout` / `idleTimeout` knobs on the create request are\n * enforced locally by the session's reaper fibers; a plain CDP endpoint\n * has no server-side cap to mirror them to.\n */\nimport * as CoreBrowser from \"@effect-uai/core/Browser\"\nimport * as BrowserError from \"@effect-uai/core/BrowserError\"\nimport { Context, Effect, Layer } from \"effect\"\nimport { type Cdp, type CdpError, openCdp } from \"./internal/cdp.js\"\nimport { isMethodMissing, makeSession } from \"./internal/session.js\"\n\nconst PROVIDER = \"cdp\"\n\nexport type CdpConnectConfig = {\n /**\n * Browser-level CDP WebSocket endpoint, e.g.\n * `ws://127.0.0.1:9222/devtools/browser/<uuid>` for local Chromium or\n * obscura, or a hosted provider's connect URL (credentials in the URL).\n */\n readonly endpoint: string\n}\n\n/**\n * Provider tag. Identical surface to the core `Browser` service; both tags\n * are registered by {@link layer}.\n */\nexport class CdpBrowser extends Context.Service<CdpBrowser, CoreBrowser.BrowserService>()(\n \"@betalyra/effect-uai/providers/browser/CdpBrowser\",\n) {}\n\n// ---------------------------------------------------------------------------\n// Error mapping (control-plane operations; the session maps its own).\n// ---------------------------------------------------------------------------\n\nconst mapCreate = (e: CdpError): BrowserError.BrowserError =>\n new BrowserError.BrowserCreateFailed({\n provider: PROVIDER,\n ...(e.reason !== undefined ? { reason: e.reason } : {}),\n raw: e,\n })\n\nconst mapLookup =\n (id: string) =>\n (e: CdpError): BrowserError.BrowserError =>\n e.kind === \"reply\" && /no target|not found|invalid target|no session/i.test(e.reason ?? \"\")\n ? new BrowserError.BrowserSessionNotFound({ provider: PROVIDER, id })\n : mapCreate(e)\n\n// ---------------------------------------------------------------------------\n// Service\n// ---------------------------------------------------------------------------\n\n/**\n * Enable the domains the session verbs rely on. Partial CDP servers that\n * auto-enable (or don't know an `enable` method) are tolerated: a\n * method-missing reply is not an error.\n */\nconst enableDomains = (cdp: Cdp, sessionId: string) =>\n Effect.forEach([\"Page.enable\", \"Runtime.enable\", \"Network.enable\"] as const, (method) =>\n cdp.send(method, {}, sessionId).pipe(Effect.catchIf(isMethodMissing, () => Effect.succeed({}))),\n ).pipe(Effect.asVoid, Effect.mapError(mapCreate))\n\nconst applyViewport = (\n cdp: Cdp,\n sessionId: string,\n viewport: NonNullable<CoreBrowser.CommonSessionRequest[\"viewport\"]>,\n) =>\n cdp\n .send(\n \"Emulation.setDeviceMetricsOverride\",\n { width: viewport.width, height: viewport.height, deviceScaleFactor: 1, mobile: false },\n sessionId,\n )\n .pipe(\n // No Emulation domain: the engine's default viewport stands.\n Effect.catchIf(isMethodMissing, () => Effect.succeed({})),\n Effect.asVoid,\n Effect.mapError(mapCreate),\n )\n\nconst makeService = (config: CdpConnectConfig): CoreBrowser.BrowserService => ({\n create: (request) =>\n Effect.gen(function* () {\n const cdp = yield* openCdp(config.endpoint)\n const { targetId } = yield* cdp\n .send(\"Target.createTarget\", { url: \"about:blank\" })\n .pipe(Effect.mapError(mapCreate))\n const closeTarget = cdp.send(\"Target.closeTarget\", { targetId }).pipe(Effect.ignore)\n yield* Effect.addFinalizer(() => closeTarget)\n const { sessionId } = yield* cdp\n .send(\"Target.attachToTarget\", { targetId, flatten: true })\n .pipe(Effect.mapError(mapCreate))\n yield* enableDomains(cdp, sessionId)\n if (request.viewport !== undefined) {\n yield* applyViewport(cdp, sessionId, request.viewport)\n }\n return yield* makeSession({\n cdp,\n id: CoreBrowser.BrowserSessionId(targetId),\n sessionId,\n provider: PROVIDER,\n request,\n dispose: closeTarget,\n })\n }),\n\n attach: (id) =>\n Effect.gen(function* () {\n const cdp = yield* openCdp(config.endpoint)\n const { sessionId } = yield* cdp\n .send(\"Target.attachToTarget\", { targetId: id, flatten: true })\n .pipe(Effect.mapError(mapLookup(id)))\n // Detach on scope close; the target keeps running for warm reuse.\n yield* Effect.addFinalizer(() =>\n cdp.send(\"Target.detachFromTarget\", { sessionId }).pipe(Effect.ignore),\n )\n yield* enableDomains(cdp, sessionId)\n return yield* makeSession({\n cdp,\n id,\n sessionId,\n provider: PROVIDER,\n request: {},\n dispose: Effect.void,\n })\n }),\n\n list: Effect.scoped(\n Effect.gen(function* () {\n const cdp = yield* openCdp(config.endpoint)\n const { targetInfos } = yield* cdp.send(\"Target.getTargets\").pipe(Effect.mapError(mapCreate))\n return targetInfos\n .filter((target) => target.type === \"page\")\n .map((target): CoreBrowser.BrowserSessionRef => ({\n id: CoreBrowser.BrowserSessionId(target.targetId),\n ...(target.url !== \"\" ? { url: target.url } : {}),\n }))\n }),\n ),\n\n destroy: (id) =>\n Effect.scoped(\n Effect.gen(function* () {\n const cdp = yield* openCdp(config.endpoint)\n yield* cdp.send(\"Target.closeTarget\", { targetId: id }).pipe(Effect.mapError(mapLookup(id)))\n }),\n ),\n})\n\n// ---------------------------------------------------------------------------\n// Layer\n// ---------------------------------------------------------------------------\n\n/**\n * Registers the generic CDP adapter against both the provider tag\n * ({@link CdpBrowser}) and the core `Browser` tag. No capability markers:\n * proxy / stealth / recording are vendor features, not part of a bare CDP\n * endpoint.\n */\nexport const layer = (config: CdpConnectConfig): Layer.Layer<CdpBrowser | CoreBrowser.Browser> => {\n const service = makeService(config)\n return Layer.mergeAll(\n Layer.succeed(CdpBrowser, service),\n Layer.succeed(CoreBrowser.Browser, service),\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuBA,MAAM,WAAW;;;;;AAejB,IAAa,aAAb,cAAgC,QAAQ,QAAgD,CAAC,CACvF,mDACF,CAAC,CAAC,CAAC;AAMH,MAAM,aAAa,MACjB,IAAI,aAAa,oB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KAAK,OAAO,SAAS,UAAU,EAAE,CAAC,CAAC;CAC7F,CAAC,CACH;AACJ;;;;;;;AAYA,MAAa,SAAS,WAA4E;CAChG,MAAM,UAAU,YAAY,MAAM;CAClC,OAAO,MAAM,SACX,MAAM,QAAQ,YAAY,OAAO,GACjC,MAAM,QAAQ,YAAY,SAAS,OAAO,CAC5C;AACF"}
@@ -1,6 +1,4 @@
1
1
  import { Cause, Effect, PubSub, Scope as Scope$1 } from "effect";
2
- import * as _$effect_Types0 from "effect/Types";
3
-
4
2
  //#region ../../../node_modules/.pnpm/devtools-protocol@0.0.1651496/node_modules/devtools-protocol/types/protocol.d.ts
5
3
  // Copyright (c) 2026 The Chromium Authors. All rights reserved.
6
4
  // Use of this source code is governed by a BSD-style license that can be
@@ -15435,11 +15433,11 @@ declare namespace Protocol {
15435
15433
  * extended scope if the manifest has scope extensions and the flags
15436
15434
  * `DesktopPWAsLinkCapturingWithScopeExtensions` and
15437
15435
  * `WebAppEnableScopeExtensions` are enabled.
15438
- *
15436
+ *
15439
15437
  * Note, the API does not support resetting the linkCapturing to the
15440
15438
  * initial value, uninstalling and installing the web app again will reset
15441
15439
  * it.
15442
- *
15440
+ *
15443
15441
  * TODO(crbug.com/339453269): Setting this value on ChromeOS is not
15444
15442
  * supported yet.
15445
15443
  */
@@ -16615,7 +16613,7 @@ declare namespace Protocol {
16615
16613
  * - `url`: document location
16616
16614
  * - `pageNumber`: current page number
16617
16615
  * - `totalPages`: total pages in the document
16618
- *
16616
+ *
16619
16617
  * For example, `<span class=title></span>` would generate span containing the title.
16620
16618
  */
16621
16619
  headerTemplate?: string;
@@ -17581,7 +17579,7 @@ declare namespace Protocol {
17581
17579
  * Source text of JSON representing the rule set. If it comes from
17582
17580
  * `<script>` tag, it is the textContent of the node. Note that it is
17583
17581
  * a JSON for valid case.
17584
- *
17582
+ *
17585
17583
  * See also:
17586
17584
  * - https://wicg.github.io/nav-speculation/speculation-rules.html
17587
17585
  * - https://github.com/WICG/nav-speculation/blob/main/triggers.md
@@ -17594,7 +17592,7 @@ declare namespace Protocol {
17594
17592
  * the BackendNodeId of the relevant `<script>` tag. For the second
17595
17593
  * case, we include the external URL where the rule set was loaded
17596
17594
  * from, and also RequestId if Network domain is enabled.
17597
- *
17595
+ *
17598
17596
  * See also:
17599
17597
  * - https://wicg.github.io/nav-speculation/speculation-rules.html#speculation-rules-script
17600
17598
  * - https://wicg.github.io/nav-speculation/speculation-rules.html#speculation-rules-header
@@ -17632,7 +17630,7 @@ declare namespace Protocol {
17632
17630
  export type SpeculationTargetHint = ('Blank' | 'Self');
17633
17631
  /**
17634
17632
  * A key that identifies a preloading attempt.
17635
- *
17633
+ *
17636
17634
  * The url used is the url specified by the trigger (i.e. the initial URL), and
17637
17635
  * not the final url that is navigated to. For example, prerendering allows
17638
17636
  * same-origin main frame navigations during the attempt, but the attempt is
@@ -17662,7 +17660,7 @@ declare namespace Protocol {
17662
17660
  * concept of preloading pipeline. For example, if a site uses a
17663
17661
  * SpeculationRules for prerender, Chrome first starts a prefetch and
17664
17662
  * then upgrades it to prerender.
17665
- *
17663
+ *
17666
17664
  * CDP events for them are emitted separately but they share
17667
17665
  * `PreloadPipelineId`.
17668
17666
  */
@@ -18132,7 +18130,7 @@ declare namespace Protocol {
18132
18130
  export namespace SmartCardEmulation {
18133
18131
  /**
18134
18132
  * Indicates the PC/SC error code.
18135
- *
18133
+ *
18136
18134
  * This maps to:
18137
18135
  * PC/SC Lite: https://pcsclite.apdu.fr/api/group__ErrorCodes.html
18138
18136
  * Microsoft: https://learn.microsoft.com/en-us/windows/win32/secauthn/authentication-return-values
@@ -18233,7 +18231,7 @@ declare namespace Protocol {
18233
18231
  }
18234
18232
  /**
18235
18233
  * Fired when |SCardEstablishContext| is called.
18236
- *
18234
+ *
18237
18235
  * This maps to:
18238
18236
  * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaa1b8970169fd4883a6dc4a8f43f19b67
18239
18237
  * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardestablishcontext
@@ -18243,7 +18241,7 @@ declare namespace Protocol {
18243
18241
  }
18244
18242
  /**
18245
18243
  * Fired when |SCardReleaseContext| is called.
18246
- *
18244
+ *
18247
18245
  * This maps to:
18248
18246
  * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga6aabcba7744c5c9419fdd6404f73a934
18249
18247
  * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardreleasecontext
@@ -18254,7 +18252,7 @@ declare namespace Protocol {
18254
18252
  }
18255
18253
  /**
18256
18254
  * Fired when |SCardListReaders| is called.
18257
- *
18255
+ *
18258
18256
  * This maps to:
18259
18257
  * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga93b07815789b3cf2629d439ecf20f0d9
18260
18258
  * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardlistreadersa
@@ -18265,7 +18263,7 @@ declare namespace Protocol {
18265
18263
  }
18266
18264
  /**
18267
18265
  * Fired when |SCardGetStatusChange| is called. Timeout is specified in milliseconds.
18268
- *
18266
+ *
18269
18267
  * This maps to:
18270
18268
  * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga33247d5d1257d59e55647c3bb717db24
18271
18269
  * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardgetstatuschangea
@@ -18281,7 +18279,7 @@ declare namespace Protocol {
18281
18279
  }
18282
18280
  /**
18283
18281
  * Fired when |SCardCancel| is called.
18284
- *
18282
+ *
18285
18283
  * This maps to:
18286
18284
  * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaacbbc0c6d6c0cbbeb4f4debf6fbeeee6
18287
18285
  * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardcancel
@@ -18292,7 +18290,7 @@ declare namespace Protocol {
18292
18290
  }
18293
18291
  /**
18294
18292
  * Fired when |SCardConnect| is called.
18295
- *
18293
+ *
18296
18294
  * This maps to:
18297
18295
  * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga4e515829752e0a8dbc4d630696a8d6a5
18298
18296
  * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardconnecta
@@ -18306,7 +18304,7 @@ declare namespace Protocol {
18306
18304
  }
18307
18305
  /**
18308
18306
  * Fired when |SCardDisconnect| is called.
18309
- *
18307
+ *
18310
18308
  * This maps to:
18311
18309
  * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga4be198045c73ec0deb79e66c0ca1738a
18312
18310
  * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scarddisconnect
@@ -18318,7 +18316,7 @@ declare namespace Protocol {
18318
18316
  }
18319
18317
  /**
18320
18318
  * Fired when |SCardTransmit| is called.
18321
- *
18319
+ *
18322
18320
  * This maps to:
18323
18321
  * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga9a2d77242a271310269065e64633ab99
18324
18322
  * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardtransmit
@@ -18331,7 +18329,7 @@ declare namespace Protocol {
18331
18329
  }
18332
18330
  /**
18333
18331
  * Fired when |SCardControl| is called.
18334
- *
18332
+ *
18335
18333
  * This maps to:
18336
18334
  * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gac3454d4657110fd7f753b2d3d8f4e32f
18337
18335
  * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardcontrol
@@ -18344,7 +18342,7 @@ declare namespace Protocol {
18344
18342
  }
18345
18343
  /**
18346
18344
  * Fired when |SCardGetAttrib| is called.
18347
- *
18345
+ *
18348
18346
  * This maps to:
18349
18347
  * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaacfec51917255b7a25b94c5104961602
18350
18348
  * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardgetattrib
@@ -18356,7 +18354,7 @@ declare namespace Protocol {
18356
18354
  }
18357
18355
  /**
18358
18356
  * Fired when |SCardSetAttrib| is called.
18359
- *
18357
+ *
18360
18358
  * This maps to:
18361
18359
  * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga060f0038a4ddfd5dd2b8fadf3c3a2e4f
18362
18360
  * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardsetattrib
@@ -18369,7 +18367,7 @@ declare namespace Protocol {
18369
18367
  }
18370
18368
  /**
18371
18369
  * Fired when |SCardStatus| is called.
18372
- *
18370
+ *
18373
18371
  * This maps to:
18374
18372
  * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gae49c3c894ad7ac12a5b896bde70d0382
18375
18373
  * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardstatusa
@@ -18380,7 +18378,7 @@ declare namespace Protocol {
18380
18378
  }
18381
18379
  /**
18382
18380
  * Fired when |SCardBeginTransaction| is called.
18383
- *
18381
+ *
18384
18382
  * This maps to:
18385
18383
  * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaddb835dce01a0da1d6ca02d33ee7d861
18386
18384
  * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardbegintransaction
@@ -18391,7 +18389,7 @@ declare namespace Protocol {
18391
18389
  }
18392
18390
  /**
18393
18391
  * Fired when |SCardEndTransaction| is called.
18394
- *
18392
+ *
18395
18393
  * This maps to:
18396
18394
  * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gae8742473b404363e5c587f570d7e2f3b
18397
18395
  * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardendtransaction
@@ -21467,7 +21465,7 @@ declare namespace ProtocolMapping {
21467
21465
  'ServiceWorker.workerVersionUpdated': [Protocol.ServiceWorker.WorkerVersionUpdatedEvent];
21468
21466
  /**
21469
21467
  * Fired when |SCardEstablishContext| is called.
21470
- *
21468
+ *
21471
21469
  * This maps to:
21472
21470
  * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaa1b8970169fd4883a6dc4a8f43f19b67
21473
21471
  * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardestablishcontext
@@ -21475,7 +21473,7 @@ declare namespace ProtocolMapping {
21475
21473
  'SmartCardEmulation.establishContextRequested': [Protocol.SmartCardEmulation.EstablishContextRequestedEvent];
21476
21474
  /**
21477
21475
  * Fired when |SCardReleaseContext| is called.
21478
- *
21476
+ *
21479
21477
  * This maps to:
21480
21478
  * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga6aabcba7744c5c9419fdd6404f73a934
21481
21479
  * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardreleasecontext
@@ -21483,7 +21481,7 @@ declare namespace ProtocolMapping {
21483
21481
  'SmartCardEmulation.releaseContextRequested': [Protocol.SmartCardEmulation.ReleaseContextRequestedEvent];
21484
21482
  /**
21485
21483
  * Fired when |SCardListReaders| is called.
21486
- *
21484
+ *
21487
21485
  * This maps to:
21488
21486
  * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga93b07815789b3cf2629d439ecf20f0d9
21489
21487
  * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardlistreadersa
@@ -21491,7 +21489,7 @@ declare namespace ProtocolMapping {
21491
21489
  'SmartCardEmulation.listReadersRequested': [Protocol.SmartCardEmulation.ListReadersRequestedEvent];
21492
21490
  /**
21493
21491
  * Fired when |SCardGetStatusChange| is called. Timeout is specified in milliseconds.
21494
- *
21492
+ *
21495
21493
  * This maps to:
21496
21494
  * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga33247d5d1257d59e55647c3bb717db24
21497
21495
  * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardgetstatuschangea
@@ -21499,7 +21497,7 @@ declare namespace ProtocolMapping {
21499
21497
  'SmartCardEmulation.getStatusChangeRequested': [Protocol.SmartCardEmulation.GetStatusChangeRequestedEvent];
21500
21498
  /**
21501
21499
  * Fired when |SCardCancel| is called.
21502
- *
21500
+ *
21503
21501
  * This maps to:
21504
21502
  * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaacbbc0c6d6c0cbbeb4f4debf6fbeeee6
21505
21503
  * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardcancel
@@ -21507,7 +21505,7 @@ declare namespace ProtocolMapping {
21507
21505
  'SmartCardEmulation.cancelRequested': [Protocol.SmartCardEmulation.CancelRequestedEvent];
21508
21506
  /**
21509
21507
  * Fired when |SCardConnect| is called.
21510
- *
21508
+ *
21511
21509
  * This maps to:
21512
21510
  * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga4e515829752e0a8dbc4d630696a8d6a5
21513
21511
  * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardconnecta
@@ -21515,7 +21513,7 @@ declare namespace ProtocolMapping {
21515
21513
  'SmartCardEmulation.connectRequested': [Protocol.SmartCardEmulation.ConnectRequestedEvent];
21516
21514
  /**
21517
21515
  * Fired when |SCardDisconnect| is called.
21518
- *
21516
+ *
21519
21517
  * This maps to:
21520
21518
  * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga4be198045c73ec0deb79e66c0ca1738a
21521
21519
  * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scarddisconnect
@@ -21523,7 +21521,7 @@ declare namespace ProtocolMapping {
21523
21521
  'SmartCardEmulation.disconnectRequested': [Protocol.SmartCardEmulation.DisconnectRequestedEvent];
21524
21522
  /**
21525
21523
  * Fired when |SCardTransmit| is called.
21526
- *
21524
+ *
21527
21525
  * This maps to:
21528
21526
  * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga9a2d77242a271310269065e64633ab99
21529
21527
  * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardtransmit
@@ -21531,7 +21529,7 @@ declare namespace ProtocolMapping {
21531
21529
  'SmartCardEmulation.transmitRequested': [Protocol.SmartCardEmulation.TransmitRequestedEvent];
21532
21530
  /**
21533
21531
  * Fired when |SCardControl| is called.
21534
- *
21532
+ *
21535
21533
  * This maps to:
21536
21534
  * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gac3454d4657110fd7f753b2d3d8f4e32f
21537
21535
  * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardcontrol
@@ -21539,7 +21537,7 @@ declare namespace ProtocolMapping {
21539
21537
  'SmartCardEmulation.controlRequested': [Protocol.SmartCardEmulation.ControlRequestedEvent];
21540
21538
  /**
21541
21539
  * Fired when |SCardGetAttrib| is called.
21542
- *
21540
+ *
21543
21541
  * This maps to:
21544
21542
  * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaacfec51917255b7a25b94c5104961602
21545
21543
  * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardgetattrib
@@ -21547,7 +21545,7 @@ declare namespace ProtocolMapping {
21547
21545
  'SmartCardEmulation.getAttribRequested': [Protocol.SmartCardEmulation.GetAttribRequestedEvent];
21548
21546
  /**
21549
21547
  * Fired when |SCardSetAttrib| is called.
21550
- *
21548
+ *
21551
21549
  * This maps to:
21552
21550
  * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga060f0038a4ddfd5dd2b8fadf3c3a2e4f
21553
21551
  * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardsetattrib
@@ -21555,7 +21553,7 @@ declare namespace ProtocolMapping {
21555
21553
  'SmartCardEmulation.setAttribRequested': [Protocol.SmartCardEmulation.SetAttribRequestedEvent];
21556
21554
  /**
21557
21555
  * Fired when |SCardStatus| is called.
21558
- *
21556
+ *
21559
21557
  * This maps to:
21560
21558
  * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gae49c3c894ad7ac12a5b896bde70d0382
21561
21559
  * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardstatusa
@@ -21563,7 +21561,7 @@ declare namespace ProtocolMapping {
21563
21561
  'SmartCardEmulation.statusRequested': [Protocol.SmartCardEmulation.StatusRequestedEvent];
21564
21562
  /**
21565
21563
  * Fired when |SCardBeginTransaction| is called.
21566
- *
21564
+ *
21567
21565
  * This maps to:
21568
21566
  * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaddb835dce01a0da1d6ca02d33ee7d861
21569
21567
  * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardbegintransaction
@@ -21571,7 +21569,7 @@ declare namespace ProtocolMapping {
21571
21569
  'SmartCardEmulation.beginTransactionRequested': [Protocol.SmartCardEmulation.BeginTransactionRequestedEvent];
21572
21570
  /**
21573
21571
  * Fired when |SCardEndTransaction| is called.
21574
- *
21572
+ *
21575
21573
  * This maps to:
21576
21574
  * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gae8742473b404363e5c587f570d7e2f3b
21577
21575
  * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardendtransaction
@@ -21890,11 +21888,11 @@ declare namespace ProtocolMapping {
21890
21888
  * after a restart was scheduled. This can cause problems with restarting, so
21891
21889
  * we now continue execution immediatly after it has been scheduled until we
21892
21890
  * reach the beginning of the restarted frame.
21893
- *
21891
+ *
21894
21892
  * To stay back-wards compatible, `restartFrame` now expects a `mode`
21895
21893
  * parameter to be present. If the `mode` parameter is missing, `restartFrame`
21896
21894
  * errors out.
21897
- *
21895
+ *
21898
21896
  * The various return values are deprecated and `callFrames` is always empty.
21899
21897
  * Use the call frames from the `Debugger#paused` events instead, that fires
21900
21898
  * once V8 pauses at the beginning of the restarted function.
@@ -22014,7 +22012,7 @@ declare namespace ProtocolMapping {
22014
22012
  };
22015
22013
  /**
22016
22014
  * Edits JavaScript source live.
22017
- *
22015
+ *
22018
22016
  * In general, functions that are currently on the stack can not be edited with
22019
22017
  * a single exception: If the edited function is the top-most stack frame and
22020
22018
  * that is the only activation of that function on the stack. In this case
@@ -25454,29 +25452,29 @@ declare namespace ProtocolMapping {
25454
25452
  };
25455
25453
  /**
25456
25454
  * Installs the given manifest identity, optionally using the given installUrlOrBundleUrl
25457
- *
25455
+ *
25458
25456
  * IWA-specific install description:
25459
25457
  * manifestId corresponds to isolated-app:// + web_package::SignedWebBundleId
25460
- *
25458
+ *
25461
25459
  * File installation mode:
25462
25460
  * The installUrlOrBundleUrl can be either file:// or http(s):// pointing
25463
25461
  * to a signed web bundle (.swbn). In this case SignedWebBundleId must correspond to
25464
25462
  * The .swbn file's signing key.
25465
- *
25463
+ *
25466
25464
  * Dev proxy installation mode:
25467
25465
  * installUrlOrBundleUrl must be http(s):// that serves dev mode IWA.
25468
25466
  * web_package::SignedWebBundleId must be of type dev proxy.
25469
- *
25467
+ *
25470
25468
  * The advantage of dev proxy mode is that all changes to IWA
25471
25469
  * automatically will be reflected in the running app without
25472
25470
  * reinstallation.
25473
- *
25471
+ *
25474
25472
  * To generate bundle id for proxy mode:
25475
25473
  * 1. Generate 32 random bytes.
25476
25474
  * 2. Add a specific suffix at the end following the documentation
25477
25475
  * https://github.com/WICG/isolated-web-apps/blob/main/Scheme.md#suffix
25478
25476
  * 3. Encode the entire sequence using Base32 without padding.
25479
- *
25477
+ *
25480
25478
  * If Chrome is not in IWA dev
25481
25479
  * mode, the installation will fail, regardless of the state of the allowlist.
25482
25480
  */
@@ -25508,11 +25506,11 @@ declare namespace ProtocolMapping {
25508
25506
  * If some files in the parameters cannot be handled by the web app, they will
25509
25507
  * be ignored. If none of the files can be handled, this API returns an error.
25510
25508
  * If no files are provided as the parameter, this API also returns an error.
25511
- *
25509
+ *
25512
25510
  * According to the definition of the file handlers in the manifest file, one
25513
25511
  * Target.TargetID may represent a page handling one or more files. The order
25514
25512
  * of the returned Target.TargetIDs is not guaranteed.
25515
- *
25513
+ *
25516
25514
  * TODO(crbug.com/339454034): Check the existences of the input files.
25517
25515
  */
25518
25516
  'PWA.launchFilesInApp': {
@@ -25532,11 +25530,11 @@ declare namespace ProtocolMapping {
25532
25530
  * Changes user settings of the web app identified by its manifestId. If the
25533
25531
  * app was not installed, this command returns an error. Unset parameters will
25534
25532
  * be ignored; unrecognized values will cause an error.
25535
- *
25533
+ *
25536
25534
  * Unlike the ones defined in the manifest files of the web apps, these
25537
25535
  * settings are provided by the browser and controlled by the users, they
25538
25536
  * impact the way the browser handling the web apps.
25539
- *
25537
+ *
25540
25538
  * See the comment of each parameter.
25541
25539
  */
25542
25540
  'PWA.changeAppUserSettings': {
@@ -26023,11 +26021,11 @@ declare namespace ProtocolMapping {
26023
26021
  };
26024
26022
  /**
26025
26023
  * Enable/disable prerendering manually.
26026
- *
26024
+ *
26027
26025
  * This command is a short-term solution for https://crbug.com/1440085.
26028
26026
  * See https://docs.google.com/document/d/12HVmFxYj5Jc-eJr5OmWsa2bqTJsbgGLKI6ZIyx0_wpA
26029
26027
  * for more details.
26030
- *
26028
+ *
26031
26029
  * TODO(https://crbug.com/1440085): Remove this once Puppeteer supports tab targets.
26032
26030
  * @experimental
26033
26031
  */
@@ -26194,7 +26192,7 @@ declare namespace ProtocolMapping {
26194
26192
  };
26195
26193
  /**
26196
26194
  * Reports the successful result of a |SCardEstablishContext| call.
26197
- *
26195
+ *
26198
26196
  * This maps to:
26199
26197
  * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaa1b8970169fd4883a6dc4a8f43f19b67
26200
26198
  * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardestablishcontext
@@ -26205,7 +26203,7 @@ declare namespace ProtocolMapping {
26205
26203
  };
26206
26204
  /**
26207
26205
  * Reports the successful result of a |SCardReleaseContext| call.
26208
- *
26206
+ *
26209
26207
  * This maps to:
26210
26208
  * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga6aabcba7744c5c9419fdd6404f73a934
26211
26209
  * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardreleasecontext
@@ -26216,7 +26214,7 @@ declare namespace ProtocolMapping {
26216
26214
  };
26217
26215
  /**
26218
26216
  * Reports the successful result of a |SCardListReaders| call.
26219
- *
26217
+ *
26220
26218
  * This maps to:
26221
26219
  * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga93b07815789b3cf2629d439ecf20f0d9
26222
26220
  * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardlistreadersa
@@ -26227,7 +26225,7 @@ declare namespace ProtocolMapping {
26227
26225
  };
26228
26226
  /**
26229
26227
  * Reports the successful result of a |SCardGetStatusChange| call.
26230
- *
26228
+ *
26231
26229
  * This maps to:
26232
26230
  * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga33247d5d1257d59e55647c3bb717db24
26233
26231
  * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardgetstatuschangea
@@ -26239,7 +26237,7 @@ declare namespace ProtocolMapping {
26239
26237
  /**
26240
26238
  * Reports the result of a |SCardBeginTransaction| call.
26241
26239
  * On success, this creates a new transaction object.
26242
- *
26240
+ *
26243
26241
  * This maps to:
26244
26242
  * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaddb835dce01a0da1d6ca02d33ee7d861
26245
26243
  * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardbegintransaction
@@ -26251,20 +26249,20 @@ declare namespace ProtocolMapping {
26251
26249
  /**
26252
26250
  * Reports the successful result of a call that returns only a result code.
26253
26251
  * Used for: |SCardCancel|, |SCardDisconnect|, |SCardSetAttrib|, |SCardEndTransaction|.
26254
- *
26252
+ *
26255
26253
  * This maps to:
26256
26254
  * 1. SCardCancel
26257
26255
  * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaacbbc0c6d6c0cbbeb4f4debf6fbeeee6
26258
26256
  * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardcancel
26259
- *
26257
+ *
26260
26258
  * 2. SCardDisconnect
26261
26259
  * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga4be198045c73ec0deb79e66c0ca1738a
26262
26260
  * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scarddisconnect
26263
- *
26261
+ *
26264
26262
  * 3. SCardSetAttrib
26265
26263
  * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga060f0038a4ddfd5dd2b8fadf3c3a2e4f
26266
26264
  * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardsetattrib
26267
- *
26265
+ *
26268
26266
  * 4. SCardEndTransaction
26269
26267
  * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gae8742473b404363e5c587f570d7e2f3b
26270
26268
  * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardendtransaction
@@ -26275,7 +26273,7 @@ declare namespace ProtocolMapping {
26275
26273
  };
26276
26274
  /**
26277
26275
  * Reports the successful result of a |SCardConnect| call.
26278
- *
26276
+ *
26279
26277
  * This maps to:
26280
26278
  * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga4e515829752e0a8dbc4d630696a8d6a5
26281
26279
  * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardconnecta
@@ -26287,16 +26285,16 @@ declare namespace ProtocolMapping {
26287
26285
  /**
26288
26286
  * Reports the successful result of a call that sends back data on success.
26289
26287
  * Used for |SCardTransmit|, |SCardControl|, and |SCardGetAttrib|.
26290
- *
26288
+ *
26291
26289
  * This maps to:
26292
26290
  * 1. SCardTransmit
26293
26291
  * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga9a2d77242a271310269065e64633ab99
26294
26292
  * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardtransmit
26295
- *
26293
+ *
26296
26294
  * 2. SCardControl
26297
26295
  * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gac3454d4657110fd7f753b2d3d8f4e32f
26298
26296
  * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardcontrol
26299
- *
26297
+ *
26300
26298
  * 3. SCardGetAttrib
26301
26299
  * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaacfec51917255b7a25b94c5104961602
26302
26300
  * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardgetattrib
@@ -26307,7 +26305,7 @@ declare namespace ProtocolMapping {
26307
26305
  };
26308
26306
  /**
26309
26307
  * Reports the successful result of a |SCardStatus| call.
26310
- *
26308
+ *
26311
26309
  * This maps to:
26312
26310
  * PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gae49c3c894ad7ac12a5b896bde70d0382
26313
26311
  * Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardstatusa
@@ -26636,9 +26634,9 @@ declare namespace ProtocolMapping {
26636
26634
  /**
26637
26635
  * Inject object to the target's main frame that provides a communication
26638
26636
  * channel with browser target.
26639
- *
26637
+ *
26640
26638
  * Injected object will be available as `window[bindingName]`.
26641
- *
26639
+ *
26642
26640
  * The object has the following API:
26643
26641
  * - `binding.send(json)` - a method to send messages over the remote debugging protocol
26644
26642
  * - `binding.onmessage = json => handleMessage(json)` - a callback that will be called for the protocol notifications and command responses.
@@ -26984,7 +26982,7 @@ type Commands = ProtocolMapping.Commands;
26984
26982
  type CdpMethod = keyof Commands;
26985
26983
  type CdpParams<M extends CdpMethod> = Commands[M]["paramsType"][0];
26986
26984
  type CdpReturn<M extends CdpMethod> = Commands[M]["returnType"];
26987
- declare const CdpError_base: new <A extends Record<string, any> = {}>(args: _$effect_Types0.VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P] }>) => Cause.YieldableError & {
26985
+ declare const CdpError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => Cause.YieldableError & {
26988
26986
  readonly _tag: "CdpError";
26989
26987
  } & Readonly<A>;
26990
26988
  /**
@@ -27024,4 +27022,4 @@ type Cdp = {
27024
27022
  declare const openCdp: (endpoint: string) => Effect.Effect<Cdp, never, Scope$1.Scope>;
27025
27023
  //#endregion
27026
27024
  export { CdpParams as a, CdpMethod as i, CdpError as n, CdpReturn as o, CdpEvent as r, openCdp as s, Cdp as t };
27027
- //# sourceMappingURL=cdp-DZgualSC.d.mts.map
27025
+ //# sourceMappingURL=cdp-BjBngEpt.d.mts.map