electron-types 44.0.0 → 45.0.0-alpha.2
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/README.md +3 -3
- package/dist/electron.d.ts +479 -20
- package/dist/version.json +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -14,11 +14,11 @@ The official `electron` package is ~200MB because it includes the Electron binar
|
|
|
14
14
|
Since this package only provides TypeScript types, install it as a dev dependency. **Install the version that matches your Electron version** (see [Version Matching](#version-matching)):
|
|
15
15
|
|
|
16
16
|
```bash
|
|
17
|
-
npm install -D electron-types@
|
|
17
|
+
npm install -D electron-types@45.0.0-alpha.2
|
|
18
18
|
# or
|
|
19
|
-
yarn add -D electron-types@
|
|
19
|
+
yarn add -D electron-types@45.0.0-alpha.2
|
|
20
20
|
# or
|
|
21
|
-
pnpm add -D electron-types@
|
|
21
|
+
pnpm add -D electron-types@45.0.0-alpha.2
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
## Usage
|
package/dist/electron.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for Electron
|
|
1
|
+
// Type definitions for Electron 45.0.0-alpha.2
|
|
2
2
|
// Project: http://electronjs.org/
|
|
3
3
|
// Definitions by: The Electron Team <https://github.com/electron/electron>
|
|
4
4
|
// Definitions: https://github.com/electron/typescript-definitions
|
|
@@ -518,27 +518,27 @@ declare namespace Electron {
|
|
|
518
518
|
* page.
|
|
519
519
|
*/
|
|
520
520
|
on(event: 'login', listener: (event: Event,
|
|
521
|
-
webContents: WebContents,
|
|
521
|
+
webContents: (WebContents) | (null),
|
|
522
522
|
authenticationResponseDetails: AuthenticationResponseDetails,
|
|
523
523
|
authInfo: AuthInfo,
|
|
524
524
|
callback: (username?: string, password?: string) => void) => void): this;
|
|
525
525
|
off(event: 'login', listener: (event: Event,
|
|
526
|
-
webContents: WebContents,
|
|
526
|
+
webContents: (WebContents) | (null),
|
|
527
527
|
authenticationResponseDetails: AuthenticationResponseDetails,
|
|
528
528
|
authInfo: AuthInfo,
|
|
529
529
|
callback: (username?: string, password?: string) => void) => void): this;
|
|
530
530
|
once(event: 'login', listener: (event: Event,
|
|
531
|
-
webContents: WebContents,
|
|
531
|
+
webContents: (WebContents) | (null),
|
|
532
532
|
authenticationResponseDetails: AuthenticationResponseDetails,
|
|
533
533
|
authInfo: AuthInfo,
|
|
534
534
|
callback: (username?: string, password?: string) => void) => void): this;
|
|
535
535
|
addListener(event: 'login', listener: (event: Event,
|
|
536
|
-
webContents: WebContents,
|
|
536
|
+
webContents: (WebContents) | (null),
|
|
537
537
|
authenticationResponseDetails: AuthenticationResponseDetails,
|
|
538
538
|
authInfo: AuthInfo,
|
|
539
539
|
callback: (username?: string, password?: string) => void) => void): this;
|
|
540
540
|
removeListener(event: 'login', listener: (event: Event,
|
|
541
|
-
webContents: WebContents,
|
|
541
|
+
webContents: (WebContents) | (null),
|
|
542
542
|
authenticationResponseDetails: AuthenticationResponseDetails,
|
|
543
543
|
authInfo: AuthInfo,
|
|
544
544
|
callback: (username?: string, password?: string) => void) => void): this;
|
|
@@ -815,27 +815,27 @@ declare namespace Electron {
|
|
|
815
815
|
* event is not emitted.
|
|
816
816
|
*/
|
|
817
817
|
on(event: 'select-client-certificate', listener: (event: Event,
|
|
818
|
-
webContents: WebContents,
|
|
818
|
+
webContents: (WebContents) | (null),
|
|
819
819
|
url: string,
|
|
820
820
|
certificateList: Certificate[],
|
|
821
821
|
callback: (certificate?: Certificate) => void) => void): this;
|
|
822
822
|
off(event: 'select-client-certificate', listener: (event: Event,
|
|
823
|
-
webContents: WebContents,
|
|
823
|
+
webContents: (WebContents) | (null),
|
|
824
824
|
url: string,
|
|
825
825
|
certificateList: Certificate[],
|
|
826
826
|
callback: (certificate?: Certificate) => void) => void): this;
|
|
827
827
|
once(event: 'select-client-certificate', listener: (event: Event,
|
|
828
|
-
webContents: WebContents,
|
|
828
|
+
webContents: (WebContents) | (null),
|
|
829
829
|
url: string,
|
|
830
830
|
certificateList: Certificate[],
|
|
831
831
|
callback: (certificate?: Certificate) => void) => void): this;
|
|
832
832
|
addListener(event: 'select-client-certificate', listener: (event: Event,
|
|
833
|
-
webContents: WebContents,
|
|
833
|
+
webContents: (WebContents) | (null),
|
|
834
834
|
url: string,
|
|
835
835
|
certificateList: Certificate[],
|
|
836
836
|
callback: (certificate?: Certificate) => void) => void): this;
|
|
837
837
|
removeListener(event: 'select-client-certificate', listener: (event: Event,
|
|
838
|
-
webContents: WebContents,
|
|
838
|
+
webContents: (WebContents) | (null),
|
|
839
839
|
url: string,
|
|
840
840
|
certificateList: Certificate[],
|
|
841
841
|
callback: (certificate?: Certificate) => void) => void): this;
|
|
@@ -1060,7 +1060,71 @@ declare namespace Electron {
|
|
|
1060
1060
|
* generates and persists a per-`session` metadata secret so that credentials
|
|
1061
1061
|
* created in one partition are not visible to another.
|
|
1062
1062
|
*
|
|
1063
|
-
*
|
|
1063
|
+
* When `platformPasskeys` is `true`, passkey operations use Apple's
|
|
1064
|
+
* `ASAuthorizationController` which delegates to the system's configured
|
|
1065
|
+
* Credential Provider Extensions. This enables the same passkey experience as
|
|
1066
|
+
* Safari — credentials are available across all devices signed into the same
|
|
1067
|
+
* account. Unlike Touch ID credentials, platform passkeys are stored by the
|
|
1068
|
+
* credential provider and scoped to the relying party, not to Electron: they are
|
|
1069
|
+
* shared across all `session` partitions and with any other app or browser
|
|
1070
|
+
* associated with the same domain. Platform passkeys cannot serve cross-origin
|
|
1071
|
+
* (iframe) requests; those requests are left to the other available authenticators
|
|
1072
|
+
* (Touch ID supports iframes) and a warning is logged to the DevTools console. The
|
|
1073
|
+
* `prf` and `largeBlob` WebAuthn extensions are not currently supported by this
|
|
1074
|
+
* authenticator — `prf` inputs are ignored, and a `create()` call with `largeBlob:
|
|
1075
|
+
* { support: 'required' }` fails.
|
|
1076
|
+
*
|
|
1077
|
+
* With the matching entitlements in your app's `entitlements.plist`:
|
|
1078
|
+
*
|
|
1079
|
+
* For platform passkeys, your app needs the Associated Domains entitlement plus an
|
|
1080
|
+
* application identifier, both in the same `entitlements.plist`:
|
|
1081
|
+
*
|
|
1082
|
+
* Listing these entitlements is **not** sufficient on its own — unlike most
|
|
1083
|
+
* entitlements, `com.apple.developer.associated-domains` is _provisioning-profile
|
|
1084
|
+
* backed_. For platform passkeys to work, **all** of the following must hold:
|
|
1085
|
+
*
|
|
1086
|
+
* * In the Apple Developer portal, your App ID (`com.example.app`) has the
|
|
1087
|
+
* **Associated Domains** capability enabled, and you have created a provisioning
|
|
1088
|
+
* profile for that App ID.
|
|
1089
|
+
* * That provisioning profile is **embedded in the built app bundle** at
|
|
1090
|
+
* `Contents/embedded.provisionprofile`. This is what authorizes the
|
|
1091
|
+
* associated-domains entitlement at runtime; without an embedded profile macOS
|
|
1092
|
+
* silently ignores the `webcredentials` association and the request fails. (Xcode
|
|
1093
|
+
* and `@electron/osx-sign` embed the profile for you; if you sign manually, copy
|
|
1094
|
+
* it into the bundle before signing.)
|
|
1095
|
+
* * The app is signed (ad-hoc / unsigned builds do not qualify). Both distribution
|
|
1096
|
+
* and development signing work — for development builds, use the developer-mode
|
|
1097
|
+
* path described below.
|
|
1098
|
+
* * `com.apple.application-identifier` matches the profile's App ID. Without it,
|
|
1099
|
+
* `ASAuthorizationController` fails with "The calling process does not have an
|
|
1100
|
+
* application identifier" — this is `ASAuthorizationError` code 1004.
|
|
1101
|
+
* * The relying party's domain (`example.com` above) serves a valid
|
|
1102
|
+
* `apple-app-site-association` file over HTTPS at
|
|
1103
|
+
* `/.well-known/apple-app-site-association` containing a `webcredentials` entry
|
|
1104
|
+
* whose `apps` array lists this app's `<TEAM_ID>.<BUNDLE_ID>`.
|
|
1105
|
+
* * The relying party ID of each request matches that associated domain.
|
|
1106
|
+
*
|
|
1107
|
+
* If these aren't satisfied, `ASAuthorizationController` fails before it can
|
|
1108
|
+
* present the passkey sheet. The request surfaces to the page as a bare
|
|
1109
|
+
* `NotAllowedError` with no further detail (Electron logs an explanatory message
|
|
1110
|
+
* to the DevTools console on this path). Because the association is domain-based,
|
|
1111
|
+
* platform passkeys always require a real associated domain and its AASA file —
|
|
1112
|
+
* there is no `localhost` rpId escape hatch as there is in browsers.
|
|
1113
|
+
*
|
|
1114
|
+
* To test against your domain with a development-signed build (before shipping a
|
|
1115
|
+
* distribution profile), append `?mode=developer` to the entitlement value and
|
|
1116
|
+
* enable developer mode on the machine with `swcutil developer-mode -e true`. This
|
|
1117
|
+
* makes macOS fetch the AASA directly from the domain — bypassing Apple's CDN
|
|
1118
|
+
* cache — and honor the association for a development-signed app. You still need
|
|
1119
|
+
* the embedded development provisioning profile described above:
|
|
1120
|
+
*
|
|
1121
|
+
* > [!NOTE] Because the request is fulfilled by the system credential provider
|
|
1122
|
+
* (not a browser), the `clientDataJSON` returned to the page reports `origin:
|
|
1123
|
+
* "https://<rpId>"` — the associated domain — rather than the page's own origin.
|
|
1124
|
+
* Relying-party servers that enforce a strict `expectedOrigin` allowlist must
|
|
1125
|
+
* include `https://<rpId>` for verification to succeed. This also means the
|
|
1126
|
+
* relying party cannot distinguish which subdomain of the associated domain
|
|
1127
|
+
* initiated the ceremony.
|
|
1064
1128
|
*
|
|
1065
1129
|
* > [!NOTE] Touch ID WebAuthn credentials are device-bound and are not synced via
|
|
1066
1130
|
* iCloud Keychain. They are only available on Macs with a Secure Enclave (Apple
|
|
@@ -9452,12 +9516,184 @@ declare namespace Electron {
|
|
|
9452
9516
|
type: ('rawKeyDown' | 'keyDown' | 'keyUp' | 'char');
|
|
9453
9517
|
}
|
|
9454
9518
|
|
|
9519
|
+
interface LanguageModelAppendOptions {
|
|
9520
|
+
|
|
9521
|
+
// Docs: https://electronjs.org/docs/api/structures/language-model-append-options
|
|
9522
|
+
|
|
9523
|
+
signal: AbortSignal;
|
|
9524
|
+
}
|
|
9525
|
+
|
|
9526
|
+
interface LanguageModelCloneOptions {
|
|
9527
|
+
|
|
9528
|
+
// Docs: https://electronjs.org/docs/api/structures/language-model-clone-options
|
|
9529
|
+
|
|
9530
|
+
signal: AbortSignal;
|
|
9531
|
+
}
|
|
9532
|
+
|
|
9533
|
+
interface LanguageModelCreateCoreOptions {
|
|
9534
|
+
|
|
9535
|
+
// Docs: https://electronjs.org/docs/api/structures/language-model-create-core-options
|
|
9536
|
+
|
|
9537
|
+
expectedInputs?: LanguageModelExpected[];
|
|
9538
|
+
expectedOutputs?: LanguageModelExpected[];
|
|
9539
|
+
}
|
|
9540
|
+
|
|
9541
|
+
interface LanguageModelCreateOptions extends LanguageModelCreateCoreOptions {
|
|
9542
|
+
|
|
9543
|
+
// Docs: https://electronjs.org/docs/api/structures/language-model-create-options
|
|
9544
|
+
|
|
9545
|
+
initialPrompts?: LanguageModelMessage[];
|
|
9546
|
+
signal: AbortSignal;
|
|
9547
|
+
}
|
|
9548
|
+
|
|
9549
|
+
interface LanguageModelExpected {
|
|
9550
|
+
|
|
9551
|
+
// Docs: https://electronjs.org/docs/api/structures/language-model-expected
|
|
9552
|
+
|
|
9553
|
+
languages?: string[];
|
|
9554
|
+
/**
|
|
9555
|
+
* Can be one of the following values:
|
|
9556
|
+
*/
|
|
9557
|
+
type: ('text' | 'image' | 'audio');
|
|
9558
|
+
}
|
|
9559
|
+
|
|
9560
|
+
interface LanguageModelMessage {
|
|
9561
|
+
|
|
9562
|
+
// Docs: https://electronjs.org/docs/api/structures/language-model-message
|
|
9563
|
+
|
|
9564
|
+
content: LanguageModelMessageContent[];
|
|
9565
|
+
prefix?: boolean;
|
|
9566
|
+
/**
|
|
9567
|
+
* Can be one of the following values:
|
|
9568
|
+
*/
|
|
9569
|
+
role: ('system' | 'user' | 'assistant');
|
|
9570
|
+
}
|
|
9571
|
+
|
|
9572
|
+
interface LanguageModelMessageContent {
|
|
9573
|
+
|
|
9574
|
+
// Docs: https://electronjs.org/docs/api/structures/language-model-message-content
|
|
9575
|
+
|
|
9576
|
+
/**
|
|
9577
|
+
* Can be one of the following values:
|
|
9578
|
+
*/
|
|
9579
|
+
type: ('text' | 'image' | 'audio');
|
|
9580
|
+
value: (ArrayBuffer) | (string);
|
|
9581
|
+
}
|
|
9582
|
+
|
|
9583
|
+
interface LanguageModelPromptOptions {
|
|
9584
|
+
|
|
9585
|
+
// Docs: https://electronjs.org/docs/api/structures/language-model-prompt-options
|
|
9586
|
+
|
|
9587
|
+
/**
|
|
9588
|
+
* a JSON schema object or a `RegExp` used to constrain the response to match the
|
|
9589
|
+
* specified restraints.
|
|
9590
|
+
*/
|
|
9591
|
+
responseConstraint?: (ResponseConstraint) | (RegExp);
|
|
9592
|
+
signal: AbortSignal;
|
|
9593
|
+
}
|
|
9594
|
+
|
|
9595
|
+
class LanguageModelUtility {
|
|
9596
|
+
|
|
9597
|
+
// Docs: https://electronjs.org/docs/api/language-model-utility
|
|
9598
|
+
|
|
9599
|
+
/**
|
|
9600
|
+
* LanguageModelUtility
|
|
9601
|
+
*/
|
|
9602
|
+
constructor(initialState: InitialState);
|
|
9603
|
+
/**
|
|
9604
|
+
* Determines the availability of the language model and returns one of the
|
|
9605
|
+
* following strings:
|
|
9606
|
+
*
|
|
9607
|
+
* * `available`
|
|
9608
|
+
* * `downloadable`
|
|
9609
|
+
* * `downloading`
|
|
9610
|
+
* * `unavailable`
|
|
9611
|
+
*
|
|
9612
|
+
* @experimental
|
|
9613
|
+
*/
|
|
9614
|
+
static availability(options?: LanguageModelCreateCoreOptions): Promise<string>;
|
|
9615
|
+
/**
|
|
9616
|
+
* Creates a new `LanguageModelUtility` with the provided `options`.
|
|
9617
|
+
*
|
|
9618
|
+
* @experimental
|
|
9619
|
+
*/
|
|
9620
|
+
static create(options: LanguageModelCreateOptions): Promise<Electron.LanguageModelUtility>;
|
|
9621
|
+
/**
|
|
9622
|
+
* Append a message without prompting for a response.
|
|
9623
|
+
*
|
|
9624
|
+
* @experimental
|
|
9625
|
+
*/
|
|
9626
|
+
append(input: LanguageModelMessage[], options: LanguageModelAppendOptions): Promise<undefined>;
|
|
9627
|
+
/**
|
|
9628
|
+
* Clones the `LanguageModelUtility` such that the context and initial prompt
|
|
9629
|
+
* should be preserved.
|
|
9630
|
+
*
|
|
9631
|
+
* @experimental
|
|
9632
|
+
*/
|
|
9633
|
+
clone(options: LanguageModelCloneOptions): Promise<Electron.LanguageModelUtility>;
|
|
9634
|
+
/**
|
|
9635
|
+
* Destroys the model, and any ongoing executions are aborted.
|
|
9636
|
+
*
|
|
9637
|
+
* @experimental
|
|
9638
|
+
*/
|
|
9639
|
+
destroy(): void;
|
|
9640
|
+
/**
|
|
9641
|
+
* Measure how many tokens the input would use.
|
|
9642
|
+
*
|
|
9643
|
+
* @experimental
|
|
9644
|
+
*/
|
|
9645
|
+
measureContextUsage(input: LanguageModelMessage[], options: LanguageModelPromptOptions): Promise<number>;
|
|
9646
|
+
/**
|
|
9647
|
+
* Prompt the model for a response.
|
|
9648
|
+
*
|
|
9649
|
+
* @experimental
|
|
9650
|
+
*/
|
|
9651
|
+
prompt(input: LanguageModelMessage[], options: LanguageModelPromptOptions): (Promise<string>) | (Promise<import('stream/web').ReadableStream<string>>);
|
|
9652
|
+
/**
|
|
9653
|
+
* A `number` representing how many tokens are currently in the context window.
|
|
9654
|
+
*
|
|
9655
|
+
* @experimental
|
|
9656
|
+
*/
|
|
9657
|
+
contextUsage: number;
|
|
9658
|
+
/**
|
|
9659
|
+
* A `number` representing the size of the context window, in tokens.
|
|
9660
|
+
*
|
|
9661
|
+
* @experimental
|
|
9662
|
+
*/
|
|
9663
|
+
contextWindow: number;
|
|
9664
|
+
}
|
|
9665
|
+
|
|
9666
|
+
interface LocalAIHandler {
|
|
9667
|
+
|
|
9668
|
+
// Docs: https://electronjs.org/docs/api/local-ai-handler
|
|
9669
|
+
|
|
9670
|
+
/**
|
|
9671
|
+
* Sets the handler for new Prompt API binding requests from the renderer process.
|
|
9672
|
+
* This happens once per pair of `webContentsId` and `securityOrigin`. Returning
|
|
9673
|
+
* `null` from the handler will reject the creation of a new Prompt API session in
|
|
9674
|
+
* the renderer. If you want to invalidate existing Prompt API sessions, clear the
|
|
9675
|
+
* local AI handler for the session using `ses.registerLocalAIHandler(null)`.
|
|
9676
|
+
*
|
|
9677
|
+
* > [!NOTE] If a renderer calls the Prompt API before `setPromptAPIHandler()` has
|
|
9678
|
+
* been called, the request is queued. Once the handler is set, all queued requests
|
|
9679
|
+
* are flushed. If too many requests are queued, the oldest pending request is
|
|
9680
|
+
* dropped and pending promises in the renderer will be rejected. To avoid this, be
|
|
9681
|
+
* sure to call `setPromptAPIHandler()` as early as possible.
|
|
9682
|
+
*
|
|
9683
|
+
* @experimental
|
|
9684
|
+
*/
|
|
9685
|
+
setPromptAPIHandler(promptAPIHandler: (details: PromptAPIHandlerDetails) => (typeof LanguageModelUtility) | (null)): void;
|
|
9686
|
+
}
|
|
9687
|
+
|
|
9455
9688
|
interface MediaAccessPermissionRequest extends PermissionRequest {
|
|
9456
9689
|
|
|
9457
9690
|
// Docs: https://electronjs.org/docs/api/structures/media-access-permission-request
|
|
9458
9691
|
|
|
9459
9692
|
/**
|
|
9460
9693
|
* The types of media access being requested - elements can be `video` or `audio`.
|
|
9694
|
+
* For a `media` permission request these are the camera and microphone
|
|
9695
|
+
* respectively; for a `display-capture` permission request they are the screen,
|
|
9696
|
+
* window or tab video and its audio.
|
|
9461
9697
|
*/
|
|
9462
9698
|
mediaTypes?: Array<'video' | 'audio'>;
|
|
9463
9699
|
/**
|
|
@@ -9687,6 +9923,8 @@ declare namespace Electron {
|
|
|
9687
9923
|
* or just displayed.
|
|
9688
9924
|
*
|
|
9689
9925
|
* This property can be dynamically changed.
|
|
9926
|
+
*
|
|
9927
|
+
* @platform linux,win32
|
|
9690
9928
|
*/
|
|
9691
9929
|
registerAccelerator: boolean;
|
|
9692
9930
|
/**
|
|
@@ -12732,11 +12970,18 @@ declare namespace Electron {
|
|
|
12732
12970
|
* discoverable WebAuthn credentials and the user must choose one. `callback`
|
|
12733
12971
|
* should be called with the `credentialId` of the selected account; passing no
|
|
12734
12972
|
* arguments — or a `credentialId` that does not match one of the provided accounts
|
|
12735
|
-
* — will cancel the request and the page will receive a `NotAllowedError`.
|
|
12736
|
-
*
|
|
12737
|
-
*
|
|
12738
|
-
* callback
|
|
12739
|
-
*
|
|
12973
|
+
* — will cancel the request and the page will receive a `NotAllowedError`. The
|
|
12974
|
+
* credential request remains pending until the listener invokes the callback, so
|
|
12975
|
+
* always invoke it exactly once — typically from a `try { … } finally {
|
|
12976
|
+
* callback(…) }` block.
|
|
12977
|
+
*
|
|
12978
|
+
* > [!NOTE] If no listener is registered for this event,
|
|
12979
|
+
* `navigator.credentials.get()` calls that resolve discoverable Touch ID
|
|
12980
|
+
* credentials are cancelled with a `NotAllowedError` — even when only a single
|
|
12981
|
+
* credential matches. Register a listener if your app supports
|
|
12982
|
+
* discoverable-credential (passkey) sign-in. Assertions fulfilled by
|
|
12983
|
+
* `platformPasskeys` select the account in the system sheet and do not use this
|
|
12984
|
+
* event.
|
|
12740
12985
|
*
|
|
12741
12986
|
* On macOS, the Touch ID platform authenticator surfaces accounts via this event
|
|
12742
12987
|
* once it has been configured with `app.configureWebAuthn`. The event may also
|
|
@@ -12758,6 +13003,43 @@ declare namespace Electron {
|
|
|
12758
13003
|
removeListener(event: 'select-webauthn-account', listener: (event: Event,
|
|
12759
13004
|
details: SelectWebauthnAccountDetails,
|
|
12760
13005
|
callback: (credentialId?: (string) | (null)) => void) => void): this;
|
|
13006
|
+
/**
|
|
13007
|
+
* Emitted when both `touchID` and `platformPasskeys` are configured via
|
|
13008
|
+
* `app.configureWebAuthn` and a WebAuthn request needs to choose which platform
|
|
13009
|
+
* authenticator to use. `callback` should be called with one of the names from
|
|
13010
|
+
* `event.authenticators`; passing no arguments or a name that does not match will
|
|
13011
|
+
* cancel the request and the page will receive a `NotAllowedError`. The request
|
|
13012
|
+
* remains pending until the listener invokes the callback, so always invoke it
|
|
13013
|
+
* exactly once — typically from a `try { … } finally { callback(…) }` block. If no
|
|
13014
|
+
* listener is registered, `platformPasskeys` is used by default; a listener that
|
|
13015
|
+
* throws before invoking the callback is treated as unhandled and the default
|
|
13016
|
+
* applies. If only one authenticator is available for the request, this event is
|
|
13017
|
+
* not emitted and that authenticator is used automatically.
|
|
13018
|
+
*
|
|
13019
|
+
* @platform darwin
|
|
13020
|
+
*/
|
|
13021
|
+
on(event: 'select-webauthn-authenticator', listener: (event: Event<SessionSelectWebauthnAuthenticatorEventParams>,
|
|
13022
|
+
callback: (authenticatorName?: (string) | (null)) => void) => void): this;
|
|
13023
|
+
/**
|
|
13024
|
+
* @platform darwin
|
|
13025
|
+
*/
|
|
13026
|
+
off(event: 'select-webauthn-authenticator', listener: (event: Event<SessionSelectWebauthnAuthenticatorEventParams>,
|
|
13027
|
+
callback: (authenticatorName?: (string) | (null)) => void) => void): this;
|
|
13028
|
+
/**
|
|
13029
|
+
* @platform darwin
|
|
13030
|
+
*/
|
|
13031
|
+
once(event: 'select-webauthn-authenticator', listener: (event: Event<SessionSelectWebauthnAuthenticatorEventParams>,
|
|
13032
|
+
callback: (authenticatorName?: (string) | (null)) => void) => void): this;
|
|
13033
|
+
/**
|
|
13034
|
+
* @platform darwin
|
|
13035
|
+
*/
|
|
13036
|
+
addListener(event: 'select-webauthn-authenticator', listener: (event: Event<SessionSelectWebauthnAuthenticatorEventParams>,
|
|
13037
|
+
callback: (authenticatorName?: (string) | (null)) => void) => void): this;
|
|
13038
|
+
/**
|
|
13039
|
+
* @platform darwin
|
|
13040
|
+
*/
|
|
13041
|
+
removeListener(event: 'select-webauthn-authenticator', listener: (event: Event<SessionSelectWebauthnAuthenticatorEventParams>,
|
|
13042
|
+
callback: (authenticatorName?: (string) | (null)) => void) => void): this;
|
|
12761
13043
|
/**
|
|
12762
13044
|
* Emitted after `navigator.serial.requestPort` has been called and
|
|
12763
13045
|
* `select-serial-port` has fired if a new serial port becomes available before the
|
|
@@ -13283,6 +13565,14 @@ declare namespace Electron {
|
|
|
13283
13565
|
* Preconnects the given number of sockets to an origin.
|
|
13284
13566
|
*/
|
|
13285
13567
|
preconnect(options: PreconnectOptions): void;
|
|
13568
|
+
/**
|
|
13569
|
+
* Registers a local AI handler `UtilityProcess`. To clear the handler, call
|
|
13570
|
+
* `registerLocalAIHandler(null)`, which will disconnect any existing Prompt API
|
|
13571
|
+
* sessions and destroy any `LanguageModelUtility` instances.
|
|
13572
|
+
*
|
|
13573
|
+
* @experimental
|
|
13574
|
+
*/
|
|
13575
|
+
registerLocalAIHandler(handler: (UtilityProcess) | (null)): void;
|
|
13286
13576
|
/**
|
|
13287
13577
|
* Registers preload script that will be executed in its associated context type in
|
|
13288
13578
|
* this session. For `frame` contexts, this will run prior to any preload defined
|
|
@@ -13403,7 +13693,7 @@ declare namespace Electron {
|
|
|
13403
13693
|
* > [!NOTE] `isMainFrame` will always be `false` for a `fileSystem` request as a
|
|
13404
13694
|
* result of Chromium limitations.
|
|
13405
13695
|
*/
|
|
13406
|
-
setPermissionCheckHandler(handler: ((webContents: (WebContents) | (null), permission: 'clipboard-read' | 'clipboard-sanitized-write' | '
|
|
13696
|
+
setPermissionCheckHandler(handler: ((webContents: (WebContents) | (null), permission: 'ar' | 'automatic-fullscreen' | 'background-fetch' | 'background-sync' | 'captured-surface-control' | 'clipboard-read' | 'clipboard-sanitized-write' | 'deprecated-sync-clipboard-read' | 'display-capture' | 'fileSystem' | 'fullscreen' | 'geolocation' | 'geolocation-approximate' | 'hand-tracking' | 'hid' | 'idle-detection' | 'keyboardLock' | 'local-fonts' | 'local-network' | 'local-network-access' | 'loopback-network' | 'media' | 'mediaKeySystem' | 'midi' | 'midiSysex' | 'nfc' | 'notifications' | 'openExternal' | 'payment-handler' | 'periodic-background-sync' | 'persistent-storage' | 'pointerLock' | 'screen-wake-lock' | 'sensors' | 'serial' | 'smart-card' | 'speaker-selection' | 'storage-access' | 'system-wake-lock' | 'top-level-storage-access' | 'usb' | 'vr' | 'web-app-installation' | 'web-printing' | 'window-management' | 'unknown', requestingOrigin: string, details: PermissionCheckHandlerHandlerDetails) => boolean) | (null)): void;
|
|
13407
13697
|
/**
|
|
13408
13698
|
* Sets the handler which can be used to respond to permission requests for the
|
|
13409
13699
|
* `session`. Calling `callback(true)` will allow the permission and
|
|
@@ -13411,8 +13701,16 @@ declare namespace Electron {
|
|
|
13411
13701
|
* `setPermissionRequestHandler(null)`. Please note that you must also implement
|
|
13412
13702
|
* `setPermissionCheckHandler` to get complete permission handling. Most web APIs
|
|
13413
13703
|
* do a permission check and then make a permission request if the check is denied.
|
|
13704
|
+
*
|
|
13705
|
+
* Both `media` and `display-capture` requests carry a MediaAccessPermissionRequest
|
|
13706
|
+
* as `details`. A `media` request is for camera and/or microphone devices, while a
|
|
13707
|
+
* `display-capture` request is for the screen, a window or a tab (whether made
|
|
13708
|
+
* through `getDisplayMedia` or through `getUserMedia` with `chromeMediaSource`
|
|
13709
|
+
* constraints). Applications that allow camera and microphone access but want to
|
|
13710
|
+
* control screen sharing separately should handle the two permissions
|
|
13711
|
+
* individually:
|
|
13414
13712
|
*/
|
|
13415
|
-
setPermissionRequestHandler(handler: ((webContents: WebContents, permission: 'clipboard-read' | 'clipboard-sanitized-write' | 'display-capture' | 'fullscreen' | 'geolocation' | 'idle-detection' | 'media' | 'mediaKeySystem' | 'midi' | 'midiSysex' | 'notifications' | 'pointerLock' | '
|
|
13713
|
+
setPermissionRequestHandler(handler: ((webContents: WebContents, permission: 'ar' | 'automatic-fullscreen' | 'background-fetch' | 'background-sync' | 'captured-surface-control' | 'clipboard-read' | 'clipboard-sanitized-write' | 'deprecated-sync-clipboard-read' | 'display-capture' | 'fileSystem' | 'fullscreen' | 'geolocation' | 'geolocation-approximate' | 'hand-tracking' | 'hid' | 'idle-detection' | 'keyboardLock' | 'local-fonts' | 'local-network' | 'local-network-access' | 'loopback-network' | 'media' | 'mediaKeySystem' | 'midi' | 'midiSysex' | 'nfc' | 'notifications' | 'openExternal' | 'payment-handler' | 'periodic-background-sync' | 'persistent-storage' | 'pointerLock' | 'screen-wake-lock' | 'sensors' | 'serial' | 'smart-card' | 'speaker-selection' | 'storage-access' | 'system-wake-lock' | 'top-level-storage-access' | 'usb' | 'vr' | 'web-app-installation' | 'web-printing' | 'window-management' | 'unknown', callback: (permissionGranted: boolean) => void, details: (PermissionRequest) | (FilesystemPermissionRequest) | (MediaAccessPermissionRequest) | (OpenExternalPermissionRequest)) => void) | (null)): void;
|
|
13416
13714
|
/**
|
|
13417
13715
|
* Adds scripts that will be executed on ALL web contents that are associated with
|
|
13418
13716
|
* this session just before normal `preload` scripts run.
|
|
@@ -18873,10 +19171,39 @@ declare namespace Electron {
|
|
|
18873
19171
|
readonly webContents: WebContents;
|
|
18874
19172
|
}
|
|
18875
19173
|
|
|
18876
|
-
interface WebFrame {
|
|
19174
|
+
interface WebFrame extends NodeJS.EventEmitter {
|
|
18877
19175
|
|
|
18878
19176
|
// Docs: https://electronjs.org/docs/api/web-frame
|
|
18879
19177
|
|
|
19178
|
+
/**
|
|
19179
|
+
* Emitted when a new isolated world is created for `webFrame`. This event does not
|
|
19180
|
+
* fire for the main world (ID `0`) or Electron's preload world (ID `999`).
|
|
19181
|
+
*/
|
|
19182
|
+
on(event: 'isolated-world-created', listener: (
|
|
19183
|
+
/**
|
|
19184
|
+
* The ID of the isolated world that was just created.
|
|
19185
|
+
*/
|
|
19186
|
+
worldId: number) => void): this;
|
|
19187
|
+
off(event: 'isolated-world-created', listener: (
|
|
19188
|
+
/**
|
|
19189
|
+
* The ID of the isolated world that was just created.
|
|
19190
|
+
*/
|
|
19191
|
+
worldId: number) => void): this;
|
|
19192
|
+
once(event: 'isolated-world-created', listener: (
|
|
19193
|
+
/**
|
|
19194
|
+
* The ID of the isolated world that was just created.
|
|
19195
|
+
*/
|
|
19196
|
+
worldId: number) => void): this;
|
|
19197
|
+
addListener(event: 'isolated-world-created', listener: (
|
|
19198
|
+
/**
|
|
19199
|
+
* The ID of the isolated world that was just created.
|
|
19200
|
+
*/
|
|
19201
|
+
worldId: number) => void): this;
|
|
19202
|
+
removeListener(event: 'isolated-world-created', listener: (
|
|
19203
|
+
/**
|
|
19204
|
+
* The ID of the isolated world that was just created.
|
|
19205
|
+
*/
|
|
19206
|
+
worldId: number) => void): this;
|
|
18880
19207
|
/**
|
|
18881
19208
|
* Attempts to free memory that is no longer being used (like images from a
|
|
18882
19209
|
* previous navigation).
|
|
@@ -18933,6 +19260,15 @@ declare namespace Electron {
|
|
|
18933
19260
|
* current renderer process.
|
|
18934
19261
|
*/
|
|
18935
19262
|
getFrameForSelector(selector: string): (WebFrame) | (null);
|
|
19263
|
+
/**
|
|
19264
|
+
* The IDs of isolated worlds that currently exist for this frame. This does not
|
|
19265
|
+
* include the main world (ID `0`) or Electron's preload world (ID `999`).
|
|
19266
|
+
*
|
|
19267
|
+
* This can be used to discover existing isolated worlds before calling APIs such
|
|
19268
|
+
* as `webFrame.executeJavaScriptInIsolatedWorld(...)` or
|
|
19269
|
+
* `contextBridge.exposeInIsolatedWorld(...)`.
|
|
19270
|
+
*/
|
|
19271
|
+
getIsolatedWorlds(): number[];
|
|
18936
19272
|
/**
|
|
18937
19273
|
* * `images` MemoryUsageDetails
|
|
18938
19274
|
* * `scripts` MemoryUsageDetails
|
|
@@ -19391,6 +19727,10 @@ declare namespace Electron {
|
|
|
19391
19727
|
* Default is `false`.
|
|
19392
19728
|
*/
|
|
19393
19729
|
disableHtmlFullscreenWindowResize?: boolean;
|
|
19730
|
+
/**
|
|
19731
|
+
* Whether to disable the wake locks of the WebContents. Default is `false`.
|
|
19732
|
+
*/
|
|
19733
|
+
disableWakeLocks?: boolean;
|
|
19394
19734
|
/**
|
|
19395
19735
|
* A list of feature strings separated by `,`, like `CSSVariables,KeyboardEventKey`
|
|
19396
19736
|
* to enable. The full list of supported feature strings can be found in the
|
|
@@ -21156,6 +21496,14 @@ declare namespace Electron {
|
|
|
21156
21496
|
* Authentication requests.
|
|
21157
21497
|
*/
|
|
21158
21498
|
touchID?: TouchId;
|
|
21499
|
+
/**
|
|
21500
|
+
* Enables passkeys via Apple's `ASAuthorizationController`. When enabled, passkey
|
|
21501
|
+
* operations present the system credential provider sheet (iCloud Keychain,
|
|
21502
|
+
* 1Password, Bitwarden, etc.) and credentials sync across the user's devices.
|
|
21503
|
+
* Defaults to `false`. Passing `null`/`undefined` (or omitting the key) leaves the
|
|
21504
|
+
* previous setting unchanged.
|
|
21505
|
+
*/
|
|
21506
|
+
platformPasskeys?: boolean;
|
|
21159
21507
|
}
|
|
21160
21508
|
|
|
21161
21509
|
interface ConsoleMessageEvent extends DOMEvent {
|
|
@@ -22122,6 +22470,11 @@ declare namespace Electron {
|
|
|
22122
22470
|
name?: string;
|
|
22123
22471
|
}
|
|
22124
22472
|
|
|
22473
|
+
interface InitialState {
|
|
22474
|
+
contextUsage: number;
|
|
22475
|
+
contextWindow: number;
|
|
22476
|
+
}
|
|
22477
|
+
|
|
22125
22478
|
interface Input {
|
|
22126
22479
|
/**
|
|
22127
22480
|
* Either `keyUp` or `keyDown`.
|
|
@@ -23373,6 +23726,25 @@ declare namespace Electron {
|
|
|
23373
23726
|
mode: ('none' | 'normal' | 'indeterminate' | 'error' | 'paused');
|
|
23374
23727
|
}
|
|
23375
23728
|
|
|
23729
|
+
interface PromptAPIHandlerDetails {
|
|
23730
|
+
/**
|
|
23731
|
+
* The unique id of the WebContents calling the Prompt API.
|
|
23732
|
+
*/
|
|
23733
|
+
webContentsId: number;
|
|
23734
|
+
/**
|
|
23735
|
+
* Origin of the page calling the Prompt API.
|
|
23736
|
+
*/
|
|
23737
|
+
securityOrigin: string;
|
|
23738
|
+
/**
|
|
23739
|
+
* The frame token of the frame calling the Prompt API.
|
|
23740
|
+
*/
|
|
23741
|
+
frameToken: string;
|
|
23742
|
+
/**
|
|
23743
|
+
* The process id of the renderer process hosting the frame calling the Prompt API.
|
|
23744
|
+
*/
|
|
23745
|
+
renderProcessId: number;
|
|
23746
|
+
}
|
|
23747
|
+
|
|
23376
23748
|
interface Provider {
|
|
23377
23749
|
spellCheck: (words: string[], callback: (misspeltWords: string[]) => void) => void;
|
|
23378
23750
|
}
|
|
@@ -23503,6 +23875,9 @@ declare namespace Electron {
|
|
|
23503
23875
|
pin?: (string) | (null);
|
|
23504
23876
|
}
|
|
23505
23877
|
|
|
23878
|
+
interface ResponseConstraint {
|
|
23879
|
+
}
|
|
23880
|
+
|
|
23506
23881
|
interface RestoreOptions {
|
|
23507
23882
|
/**
|
|
23508
23883
|
* Result of a prior `getAllEntries()` call
|
|
@@ -23714,6 +24089,23 @@ declare namespace Electron {
|
|
|
23714
24089
|
runningStatus: ('starting' | 'running' | 'stopping' | 'stopped');
|
|
23715
24090
|
}
|
|
23716
24091
|
|
|
24092
|
+
interface SessionSelectWebauthnAuthenticatorEventParams {
|
|
24093
|
+
/**
|
|
24094
|
+
* The relying party identifier from the WebAuthn request.
|
|
24095
|
+
*/
|
|
24096
|
+
relyingPartyId: string;
|
|
24097
|
+
/**
|
|
24098
|
+
* The available authenticator names. Possible values are `'touchID'` and
|
|
24099
|
+
* `'platformPasskeys'`.
|
|
24100
|
+
*/
|
|
24101
|
+
authenticators: string[];
|
|
24102
|
+
/**
|
|
24103
|
+
* The frame initiating this event. May be `null` if accessed after the frame has
|
|
24104
|
+
* either navigated or been destroyed.
|
|
24105
|
+
*/
|
|
24106
|
+
frame: (WebFrameMain) | (null);
|
|
24107
|
+
}
|
|
24108
|
+
|
|
23717
24109
|
interface Settings {
|
|
23718
24110
|
/**
|
|
23719
24111
|
* `true` to open the app at login, `false` to remove the app as a login item.
|
|
@@ -25200,6 +25592,7 @@ declare namespace Electron {
|
|
|
25200
25592
|
type ImportCertificateOptions = Electron.ImportCertificateOptions;
|
|
25201
25593
|
type ImportSharedTextureOptions = Electron.ImportSharedTextureOptions;
|
|
25202
25594
|
type Info = Electron.Info;
|
|
25595
|
+
type InitialState = Electron.InitialState;
|
|
25203
25596
|
type Input = Electron.Input;
|
|
25204
25597
|
type InsertCSSOptions = Electron.InsertCSSOptions;
|
|
25205
25598
|
type IpcMessageEvent = Electron.IpcMessageEvent;
|
|
@@ -25250,6 +25643,7 @@ declare namespace Electron {
|
|
|
25250
25643
|
type PreconnectOptions = Electron.PreconnectOptions;
|
|
25251
25644
|
type Privileges = Electron.Privileges;
|
|
25252
25645
|
type ProgressBarOptions = Electron.ProgressBarOptions;
|
|
25646
|
+
type PromptAPIHandlerDetails = Electron.PromptAPIHandlerDetails;
|
|
25253
25647
|
type Provider = Electron.Provider;
|
|
25254
25648
|
type PurchaseProductOpts = Electron.PurchaseProductOpts;
|
|
25255
25649
|
type ReceivedSharedTextureData = Electron.ReceivedSharedTextureData;
|
|
@@ -25261,6 +25655,7 @@ declare namespace Electron {
|
|
|
25261
25655
|
type ResolveHostOptions = Electron.ResolveHostOptions;
|
|
25262
25656
|
type ResourceUsage = Electron.ResourceUsage;
|
|
25263
25657
|
type Response = Electron.Response;
|
|
25658
|
+
type ResponseConstraint = Electron.ResponseConstraint;
|
|
25264
25659
|
type RestoreOptions = Electron.RestoreOptions;
|
|
25265
25660
|
type Result = Electron.Result;
|
|
25266
25661
|
type SaveDialogOptions = Electron.SaveDialogOptions;
|
|
@@ -25272,6 +25667,7 @@ declare namespace Electron {
|
|
|
25272
25667
|
type SendSharedTextureOptions = Electron.SendSharedTextureOptions;
|
|
25273
25668
|
type SerialPortRevokedDetails = Electron.SerialPortRevokedDetails;
|
|
25274
25669
|
type ServiceWorkersRunningStatusChangedEventParams = Electron.ServiceWorkersRunningStatusChangedEventParams;
|
|
25670
|
+
type SessionSelectWebauthnAuthenticatorEventParams = Electron.SessionSelectWebauthnAuthenticatorEventParams;
|
|
25275
25671
|
type Settings = Electron.Settings;
|
|
25276
25672
|
type SharedDictionaryInfoOptions = Electron.SharedDictionaryInfoOptions;
|
|
25277
25673
|
type SourcesOptions = Electron.SourcesOptions;
|
|
@@ -25372,6 +25768,14 @@ declare namespace Electron {
|
|
|
25372
25768
|
type JumpListItem = Electron.JumpListItem;
|
|
25373
25769
|
type KeyboardEvent = Electron.KeyboardEvent;
|
|
25374
25770
|
type KeyboardInputEvent = Electron.KeyboardInputEvent;
|
|
25771
|
+
type LanguageModelAppendOptions = Electron.LanguageModelAppendOptions;
|
|
25772
|
+
type LanguageModelCloneOptions = Electron.LanguageModelCloneOptions;
|
|
25773
|
+
type LanguageModelCreateCoreOptions = Electron.LanguageModelCreateCoreOptions;
|
|
25774
|
+
type LanguageModelCreateOptions = Electron.LanguageModelCreateOptions;
|
|
25775
|
+
type LanguageModelExpected = Electron.LanguageModelExpected;
|
|
25776
|
+
type LanguageModelMessage = Electron.LanguageModelMessage;
|
|
25777
|
+
type LanguageModelMessageContent = Electron.LanguageModelMessageContent;
|
|
25778
|
+
type LanguageModelPromptOptions = Electron.LanguageModelPromptOptions;
|
|
25375
25779
|
type MediaAccessPermissionRequest = Electron.MediaAccessPermissionRequest;
|
|
25376
25780
|
type MemoryInfo = Electron.MemoryInfo;
|
|
25377
25781
|
type MemoryUsageDetails = Electron.MemoryUsageDetails;
|
|
@@ -25613,6 +26017,7 @@ declare namespace Electron {
|
|
|
25613
26017
|
type ImportCertificateOptions = Electron.ImportCertificateOptions;
|
|
25614
26018
|
type ImportSharedTextureOptions = Electron.ImportSharedTextureOptions;
|
|
25615
26019
|
type Info = Electron.Info;
|
|
26020
|
+
type InitialState = Electron.InitialState;
|
|
25616
26021
|
type Input = Electron.Input;
|
|
25617
26022
|
type InsertCSSOptions = Electron.InsertCSSOptions;
|
|
25618
26023
|
type IpcMessageEvent = Electron.IpcMessageEvent;
|
|
@@ -25663,6 +26068,7 @@ declare namespace Electron {
|
|
|
25663
26068
|
type PreconnectOptions = Electron.PreconnectOptions;
|
|
25664
26069
|
type Privileges = Electron.Privileges;
|
|
25665
26070
|
type ProgressBarOptions = Electron.ProgressBarOptions;
|
|
26071
|
+
type PromptAPIHandlerDetails = Electron.PromptAPIHandlerDetails;
|
|
25666
26072
|
type Provider = Electron.Provider;
|
|
25667
26073
|
type PurchaseProductOpts = Electron.PurchaseProductOpts;
|
|
25668
26074
|
type ReceivedSharedTextureData = Electron.ReceivedSharedTextureData;
|
|
@@ -25674,6 +26080,7 @@ declare namespace Electron {
|
|
|
25674
26080
|
type ResolveHostOptions = Electron.ResolveHostOptions;
|
|
25675
26081
|
type ResourceUsage = Electron.ResourceUsage;
|
|
25676
26082
|
type Response = Electron.Response;
|
|
26083
|
+
type ResponseConstraint = Electron.ResponseConstraint;
|
|
25677
26084
|
type RestoreOptions = Electron.RestoreOptions;
|
|
25678
26085
|
type Result = Electron.Result;
|
|
25679
26086
|
type SaveDialogOptions = Electron.SaveDialogOptions;
|
|
@@ -25685,6 +26092,7 @@ declare namespace Electron {
|
|
|
25685
26092
|
type SendSharedTextureOptions = Electron.SendSharedTextureOptions;
|
|
25686
26093
|
type SerialPortRevokedDetails = Electron.SerialPortRevokedDetails;
|
|
25687
26094
|
type ServiceWorkersRunningStatusChangedEventParams = Electron.ServiceWorkersRunningStatusChangedEventParams;
|
|
26095
|
+
type SessionSelectWebauthnAuthenticatorEventParams = Electron.SessionSelectWebauthnAuthenticatorEventParams;
|
|
25688
26096
|
type Settings = Electron.Settings;
|
|
25689
26097
|
type SharedDictionaryInfoOptions = Electron.SharedDictionaryInfoOptions;
|
|
25690
26098
|
type SourcesOptions = Electron.SourcesOptions;
|
|
@@ -25785,6 +26193,14 @@ declare namespace Electron {
|
|
|
25785
26193
|
type JumpListItem = Electron.JumpListItem;
|
|
25786
26194
|
type KeyboardEvent = Electron.KeyboardEvent;
|
|
25787
26195
|
type KeyboardInputEvent = Electron.KeyboardInputEvent;
|
|
26196
|
+
type LanguageModelAppendOptions = Electron.LanguageModelAppendOptions;
|
|
26197
|
+
type LanguageModelCloneOptions = Electron.LanguageModelCloneOptions;
|
|
26198
|
+
type LanguageModelCreateCoreOptions = Electron.LanguageModelCreateCoreOptions;
|
|
26199
|
+
type LanguageModelCreateOptions = Electron.LanguageModelCreateOptions;
|
|
26200
|
+
type LanguageModelExpected = Electron.LanguageModelExpected;
|
|
26201
|
+
type LanguageModelMessage = Electron.LanguageModelMessage;
|
|
26202
|
+
type LanguageModelMessageContent = Electron.LanguageModelMessageContent;
|
|
26203
|
+
type LanguageModelPromptOptions = Electron.LanguageModelPromptOptions;
|
|
25788
26204
|
type MediaAccessPermissionRequest = Electron.MediaAccessPermissionRequest;
|
|
25789
26205
|
type MemoryInfo = Electron.MemoryInfo;
|
|
25790
26206
|
type MemoryUsageDetails = Electron.MemoryUsageDetails;
|
|
@@ -25950,6 +26366,7 @@ declare namespace Electron {
|
|
|
25950
26366
|
type ImportCertificateOptions = Electron.ImportCertificateOptions;
|
|
25951
26367
|
type ImportSharedTextureOptions = Electron.ImportSharedTextureOptions;
|
|
25952
26368
|
type Info = Electron.Info;
|
|
26369
|
+
type InitialState = Electron.InitialState;
|
|
25953
26370
|
type Input = Electron.Input;
|
|
25954
26371
|
type InsertCSSOptions = Electron.InsertCSSOptions;
|
|
25955
26372
|
type IpcMessageEvent = Electron.IpcMessageEvent;
|
|
@@ -26000,6 +26417,7 @@ declare namespace Electron {
|
|
|
26000
26417
|
type PreconnectOptions = Electron.PreconnectOptions;
|
|
26001
26418
|
type Privileges = Electron.Privileges;
|
|
26002
26419
|
type ProgressBarOptions = Electron.ProgressBarOptions;
|
|
26420
|
+
type PromptAPIHandlerDetails = Electron.PromptAPIHandlerDetails;
|
|
26003
26421
|
type Provider = Electron.Provider;
|
|
26004
26422
|
type PurchaseProductOpts = Electron.PurchaseProductOpts;
|
|
26005
26423
|
type ReceivedSharedTextureData = Electron.ReceivedSharedTextureData;
|
|
@@ -26011,6 +26429,7 @@ declare namespace Electron {
|
|
|
26011
26429
|
type ResolveHostOptions = Electron.ResolveHostOptions;
|
|
26012
26430
|
type ResourceUsage = Electron.ResourceUsage;
|
|
26013
26431
|
type Response = Electron.Response;
|
|
26432
|
+
type ResponseConstraint = Electron.ResponseConstraint;
|
|
26014
26433
|
type RestoreOptions = Electron.RestoreOptions;
|
|
26015
26434
|
type Result = Electron.Result;
|
|
26016
26435
|
type SaveDialogOptions = Electron.SaveDialogOptions;
|
|
@@ -26022,6 +26441,7 @@ declare namespace Electron {
|
|
|
26022
26441
|
type SendSharedTextureOptions = Electron.SendSharedTextureOptions;
|
|
26023
26442
|
type SerialPortRevokedDetails = Electron.SerialPortRevokedDetails;
|
|
26024
26443
|
type ServiceWorkersRunningStatusChangedEventParams = Electron.ServiceWorkersRunningStatusChangedEventParams;
|
|
26444
|
+
type SessionSelectWebauthnAuthenticatorEventParams = Electron.SessionSelectWebauthnAuthenticatorEventParams;
|
|
26025
26445
|
type Settings = Electron.Settings;
|
|
26026
26446
|
type SharedDictionaryInfoOptions = Electron.SharedDictionaryInfoOptions;
|
|
26027
26447
|
type SourcesOptions = Electron.SourcesOptions;
|
|
@@ -26122,6 +26542,14 @@ declare namespace Electron {
|
|
|
26122
26542
|
type JumpListItem = Electron.JumpListItem;
|
|
26123
26543
|
type KeyboardEvent = Electron.KeyboardEvent;
|
|
26124
26544
|
type KeyboardInputEvent = Electron.KeyboardInputEvent;
|
|
26545
|
+
type LanguageModelAppendOptions = Electron.LanguageModelAppendOptions;
|
|
26546
|
+
type LanguageModelCloneOptions = Electron.LanguageModelCloneOptions;
|
|
26547
|
+
type LanguageModelCreateCoreOptions = Electron.LanguageModelCreateCoreOptions;
|
|
26548
|
+
type LanguageModelCreateOptions = Electron.LanguageModelCreateOptions;
|
|
26549
|
+
type LanguageModelExpected = Electron.LanguageModelExpected;
|
|
26550
|
+
type LanguageModelMessage = Electron.LanguageModelMessage;
|
|
26551
|
+
type LanguageModelMessageContent = Electron.LanguageModelMessageContent;
|
|
26552
|
+
type LanguageModelPromptOptions = Electron.LanguageModelPromptOptions;
|
|
26125
26553
|
type MediaAccessPermissionRequest = Electron.MediaAccessPermissionRequest;
|
|
26126
26554
|
type MemoryInfo = Electron.MemoryInfo;
|
|
26127
26555
|
type MemoryUsageDetails = Electron.MemoryUsageDetails;
|
|
@@ -26198,6 +26626,9 @@ declare namespace Electron {
|
|
|
26198
26626
|
type Event<Params extends object = {}> = Electron.Event<Params>;
|
|
26199
26627
|
type ClientRequest = Electron.ClientRequest;
|
|
26200
26628
|
type IncomingMessage = Electron.IncomingMessage;
|
|
26629
|
+
class LanguageModelUtility extends Electron.LanguageModelUtility {}
|
|
26630
|
+
const localAIHandler: LocalAIHandler;
|
|
26631
|
+
type LocalAIHandler = Electron.LocalAIHandler;
|
|
26201
26632
|
const net: Net;
|
|
26202
26633
|
type Net = Electron.Net;
|
|
26203
26634
|
const parentPort: ParentPort;
|
|
@@ -26286,6 +26717,7 @@ declare namespace Electron {
|
|
|
26286
26717
|
type ImportCertificateOptions = Electron.ImportCertificateOptions;
|
|
26287
26718
|
type ImportSharedTextureOptions = Electron.ImportSharedTextureOptions;
|
|
26288
26719
|
type Info = Electron.Info;
|
|
26720
|
+
type InitialState = Electron.InitialState;
|
|
26289
26721
|
type Input = Electron.Input;
|
|
26290
26722
|
type InsertCSSOptions = Electron.InsertCSSOptions;
|
|
26291
26723
|
type IpcMessageEvent = Electron.IpcMessageEvent;
|
|
@@ -26336,6 +26768,7 @@ declare namespace Electron {
|
|
|
26336
26768
|
type PreconnectOptions = Electron.PreconnectOptions;
|
|
26337
26769
|
type Privileges = Electron.Privileges;
|
|
26338
26770
|
type ProgressBarOptions = Electron.ProgressBarOptions;
|
|
26771
|
+
type PromptAPIHandlerDetails = Electron.PromptAPIHandlerDetails;
|
|
26339
26772
|
type Provider = Electron.Provider;
|
|
26340
26773
|
type PurchaseProductOpts = Electron.PurchaseProductOpts;
|
|
26341
26774
|
type ReceivedSharedTextureData = Electron.ReceivedSharedTextureData;
|
|
@@ -26347,6 +26780,7 @@ declare namespace Electron {
|
|
|
26347
26780
|
type ResolveHostOptions = Electron.ResolveHostOptions;
|
|
26348
26781
|
type ResourceUsage = Electron.ResourceUsage;
|
|
26349
26782
|
type Response = Electron.Response;
|
|
26783
|
+
type ResponseConstraint = Electron.ResponseConstraint;
|
|
26350
26784
|
type RestoreOptions = Electron.RestoreOptions;
|
|
26351
26785
|
type Result = Electron.Result;
|
|
26352
26786
|
type SaveDialogOptions = Electron.SaveDialogOptions;
|
|
@@ -26358,6 +26792,7 @@ declare namespace Electron {
|
|
|
26358
26792
|
type SendSharedTextureOptions = Electron.SendSharedTextureOptions;
|
|
26359
26793
|
type SerialPortRevokedDetails = Electron.SerialPortRevokedDetails;
|
|
26360
26794
|
type ServiceWorkersRunningStatusChangedEventParams = Electron.ServiceWorkersRunningStatusChangedEventParams;
|
|
26795
|
+
type SessionSelectWebauthnAuthenticatorEventParams = Electron.SessionSelectWebauthnAuthenticatorEventParams;
|
|
26361
26796
|
type Settings = Electron.Settings;
|
|
26362
26797
|
type SharedDictionaryInfoOptions = Electron.SharedDictionaryInfoOptions;
|
|
26363
26798
|
type SourcesOptions = Electron.SourcesOptions;
|
|
@@ -26458,6 +26893,14 @@ declare namespace Electron {
|
|
|
26458
26893
|
type JumpListItem = Electron.JumpListItem;
|
|
26459
26894
|
type KeyboardEvent = Electron.KeyboardEvent;
|
|
26460
26895
|
type KeyboardInputEvent = Electron.KeyboardInputEvent;
|
|
26896
|
+
type LanguageModelAppendOptions = Electron.LanguageModelAppendOptions;
|
|
26897
|
+
type LanguageModelCloneOptions = Electron.LanguageModelCloneOptions;
|
|
26898
|
+
type LanguageModelCreateCoreOptions = Electron.LanguageModelCreateCoreOptions;
|
|
26899
|
+
type LanguageModelCreateOptions = Electron.LanguageModelCreateOptions;
|
|
26900
|
+
type LanguageModelExpected = Electron.LanguageModelExpected;
|
|
26901
|
+
type LanguageModelMessage = Electron.LanguageModelMessage;
|
|
26902
|
+
type LanguageModelMessageContent = Electron.LanguageModelMessageContent;
|
|
26903
|
+
type LanguageModelPromptOptions = Electron.LanguageModelPromptOptions;
|
|
26461
26904
|
type MediaAccessPermissionRequest = Electron.MediaAccessPermissionRequest;
|
|
26462
26905
|
type MemoryInfo = Electron.MemoryInfo;
|
|
26463
26906
|
type MemoryUsageDetails = Electron.MemoryUsageDetails;
|
|
@@ -26570,6 +27013,9 @@ declare namespace Electron {
|
|
|
26570
27013
|
class IpcMainServiceWorker extends Electron.IpcMainServiceWorker {}
|
|
26571
27014
|
const ipcRenderer: IpcRenderer;
|
|
26572
27015
|
type IpcRenderer = Electron.IpcRenderer;
|
|
27016
|
+
class LanguageModelUtility extends Electron.LanguageModelUtility {}
|
|
27017
|
+
const localAIHandler: LocalAIHandler;
|
|
27018
|
+
type LocalAIHandler = Electron.LocalAIHandler;
|
|
26573
27019
|
class Menu extends Electron.Menu {}
|
|
26574
27020
|
class MenuItem extends Electron.MenuItem {}
|
|
26575
27021
|
class MessageChannelMain extends Electron.MessageChannelMain {}
|
|
@@ -26718,6 +27164,7 @@ declare namespace Electron {
|
|
|
26718
27164
|
type ImportCertificateOptions = Electron.ImportCertificateOptions;
|
|
26719
27165
|
type ImportSharedTextureOptions = Electron.ImportSharedTextureOptions;
|
|
26720
27166
|
type Info = Electron.Info;
|
|
27167
|
+
type InitialState = Electron.InitialState;
|
|
26721
27168
|
type Input = Electron.Input;
|
|
26722
27169
|
type InsertCSSOptions = Electron.InsertCSSOptions;
|
|
26723
27170
|
type IpcMessageEvent = Electron.IpcMessageEvent;
|
|
@@ -26768,6 +27215,7 @@ declare namespace Electron {
|
|
|
26768
27215
|
type PreconnectOptions = Electron.PreconnectOptions;
|
|
26769
27216
|
type Privileges = Electron.Privileges;
|
|
26770
27217
|
type ProgressBarOptions = Electron.ProgressBarOptions;
|
|
27218
|
+
type PromptAPIHandlerDetails = Electron.PromptAPIHandlerDetails;
|
|
26771
27219
|
type Provider = Electron.Provider;
|
|
26772
27220
|
type PurchaseProductOpts = Electron.PurchaseProductOpts;
|
|
26773
27221
|
type ReceivedSharedTextureData = Electron.ReceivedSharedTextureData;
|
|
@@ -26779,6 +27227,7 @@ declare namespace Electron {
|
|
|
26779
27227
|
type ResolveHostOptions = Electron.ResolveHostOptions;
|
|
26780
27228
|
type ResourceUsage = Electron.ResourceUsage;
|
|
26781
27229
|
type Response = Electron.Response;
|
|
27230
|
+
type ResponseConstraint = Electron.ResponseConstraint;
|
|
26782
27231
|
type RestoreOptions = Electron.RestoreOptions;
|
|
26783
27232
|
type Result = Electron.Result;
|
|
26784
27233
|
type SaveDialogOptions = Electron.SaveDialogOptions;
|
|
@@ -26790,6 +27239,7 @@ declare namespace Electron {
|
|
|
26790
27239
|
type SendSharedTextureOptions = Electron.SendSharedTextureOptions;
|
|
26791
27240
|
type SerialPortRevokedDetails = Electron.SerialPortRevokedDetails;
|
|
26792
27241
|
type ServiceWorkersRunningStatusChangedEventParams = Electron.ServiceWorkersRunningStatusChangedEventParams;
|
|
27242
|
+
type SessionSelectWebauthnAuthenticatorEventParams = Electron.SessionSelectWebauthnAuthenticatorEventParams;
|
|
26793
27243
|
type Settings = Electron.Settings;
|
|
26794
27244
|
type SharedDictionaryInfoOptions = Electron.SharedDictionaryInfoOptions;
|
|
26795
27245
|
type SourcesOptions = Electron.SourcesOptions;
|
|
@@ -26890,6 +27340,14 @@ declare namespace Electron {
|
|
|
26890
27340
|
type JumpListItem = Electron.JumpListItem;
|
|
26891
27341
|
type KeyboardEvent = Electron.KeyboardEvent;
|
|
26892
27342
|
type KeyboardInputEvent = Electron.KeyboardInputEvent;
|
|
27343
|
+
type LanguageModelAppendOptions = Electron.LanguageModelAppendOptions;
|
|
27344
|
+
type LanguageModelCloneOptions = Electron.LanguageModelCloneOptions;
|
|
27345
|
+
type LanguageModelCreateCoreOptions = Electron.LanguageModelCreateCoreOptions;
|
|
27346
|
+
type LanguageModelCreateOptions = Electron.LanguageModelCreateOptions;
|
|
27347
|
+
type LanguageModelExpected = Electron.LanguageModelExpected;
|
|
27348
|
+
type LanguageModelMessage = Electron.LanguageModelMessage;
|
|
27349
|
+
type LanguageModelMessageContent = Electron.LanguageModelMessageContent;
|
|
27350
|
+
type LanguageModelPromptOptions = Electron.LanguageModelPromptOptions;
|
|
26893
27351
|
type MediaAccessPermissionRequest = Electron.MediaAccessPermissionRequest;
|
|
26894
27352
|
type MemoryInfo = Electron.MemoryInfo;
|
|
26895
27353
|
type MemoryUsageDetails = Electron.MemoryUsageDetails;
|
|
@@ -26974,6 +27432,7 @@ declare namespace Electron {
|
|
|
26974
27432
|
const inAppPurchase: InAppPurchase;
|
|
26975
27433
|
const ipcMain: IpcMain;
|
|
26976
27434
|
const ipcRenderer: IpcRenderer;
|
|
27435
|
+
const localAIHandler: LocalAIHandler;
|
|
26977
27436
|
const nativeImage: typeof NativeImage;
|
|
26978
27437
|
const nativeTheme: NativeTheme;
|
|
26979
27438
|
const net: Net;
|
package/dist/version.json
CHANGED