@overwolf/ow-electron-packages-types 1.1.6 → 1.1.7
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/package.json +1 -1
- package/types.d.ts +39 -18
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -70,9 +70,9 @@ interface IOverwolfUtilityApi {
|
|
|
70
70
|
* Allows injection into high elevation games.
|
|
71
71
|
* No-ops if files are already present.
|
|
72
72
|
*
|
|
73
|
-
* @throws
|
|
74
|
-
* @throws
|
|
75
|
-
* @throws
|
|
73
|
+
* @throws `HelperInstallError` `exitCode 1223` — user cancelled the UAC prompt (ERROR_CANCELLED)
|
|
74
|
+
* @throws `HelperInstallError` `err.exitCode !== 1223` — the installer process failed. Log `err.exitCode` and investigate.
|
|
75
|
+
* @throws `HelperInstallError` any other non-zero exitCode — installation failed.
|
|
76
76
|
*
|
|
77
77
|
* @remarks
|
|
78
78
|
* The helper binaries are installed to:
|
|
@@ -1782,7 +1782,8 @@ type VideoRecordingSplitType =
|
|
|
1782
1782
|
*
|
|
1783
1783
|
* This interface serves as a blueprint for all audio filters within the system,
|
|
1784
1784
|
* ensuring they have a unique identifier and a flexible container for settings.
|
|
1785
|
-
*
|
|
1785
|
+
*
|
|
1786
|
+
* @example
|
|
1786
1787
|
* ```typescript
|
|
1787
1788
|
* const lowPass: AudioFilterBase = {
|
|
1788
1789
|
* id: 'low-pass-001',
|
|
@@ -1808,7 +1809,8 @@ export interface AudioFilterBase {
|
|
|
1808
1809
|
|
|
1809
1810
|
/**
|
|
1810
1811
|
* A specialized filter for dynamic range compression.
|
|
1811
|
-
*
|
|
1812
|
+
*
|
|
1813
|
+
* @example
|
|
1812
1814
|
* ```typescript
|
|
1813
1815
|
* const vocalComp: AudioCompressorFilter = {
|
|
1814
1816
|
* id: 'compressor_filter',
|
|
@@ -1863,7 +1865,8 @@ export interface AudioCompressorFilter extends AudioFilterBase {
|
|
|
1863
1865
|
|
|
1864
1866
|
/**
|
|
1865
1867
|
* A specialized filter for dynamic range expansion or noise gating.
|
|
1866
|
-
*
|
|
1868
|
+
*
|
|
1869
|
+
* @example
|
|
1867
1870
|
* ```typescript
|
|
1868
1871
|
* const noiseGate: AudioExpanderFilter = {
|
|
1869
1872
|
* id: 'expander_filter',
|
|
@@ -1932,7 +1935,8 @@ export interface AudioExpanderFilter extends AudioFilterBase {
|
|
|
1932
1935
|
|
|
1933
1936
|
/**
|
|
1934
1937
|
* A simple filter used to adjust the volume or amplitude of an audio signal.
|
|
1935
|
-
*
|
|
1938
|
+
*
|
|
1939
|
+
* @example
|
|
1936
1940
|
* ```typescript
|
|
1937
1941
|
* const boost: AudioGainFilter = {
|
|
1938
1942
|
* id: 'gain_filter',
|
|
@@ -1963,7 +1967,8 @@ export interface AudioGainFilter extends AudioFilterBase {
|
|
|
1963
1967
|
|
|
1964
1968
|
/**
|
|
1965
1969
|
* A utility filter that flips the phase of the audio signal by 180 degrees.
|
|
1966
|
-
*
|
|
1970
|
+
*
|
|
1971
|
+
* @example
|
|
1967
1972
|
* ```typescript
|
|
1968
1973
|
* const phaseFlip: AudioInvertPolarityFilter = {
|
|
1969
1974
|
* id: 'invert_polarity_filter',
|
|
@@ -1985,7 +1990,8 @@ export interface AudioInvertPolarityFilter extends AudioFilterBase {
|
|
|
1985
1990
|
|
|
1986
1991
|
/**
|
|
1987
1992
|
* A specialized dynamics processor used to prevent an audio signal from exceeding a specific decibel level.
|
|
1988
|
-
*
|
|
1993
|
+
*
|
|
1994
|
+
* @example
|
|
1989
1995
|
* ```typescript
|
|
1990
1996
|
* const masterLimiter: AudioLimiterFilter = {
|
|
1991
1997
|
* id: 'limiter_filter',
|
|
@@ -2025,7 +2031,8 @@ export interface AudioLimiterFilter extends AudioFilterBase {
|
|
|
2025
2031
|
/**
|
|
2026
2032
|
* A noise gate filter used to attenuate signals that fall below a certain threshold.
|
|
2027
2033
|
* It is primarily used to remove background noise during silent passages.
|
|
2028
|
-
*
|
|
2034
|
+
*
|
|
2035
|
+
* @example
|
|
2029
2036
|
* ```typescript
|
|
2030
2037
|
* const gate: AudioNoiseGateFilter = {
|
|
2031
2038
|
* id: 'noise_gate_filter',
|
|
@@ -2083,7 +2090,8 @@ export interface AudioNoiseGateFilter extends AudioFilterBase {
|
|
|
2083
2090
|
|
|
2084
2091
|
/**
|
|
2085
2092
|
* An advanced noise suppression filter utilizing machine learning or digital signal processing algorithms.
|
|
2086
|
-
*
|
|
2093
|
+
*
|
|
2094
|
+
* @example
|
|
2087
2095
|
* ```typescript
|
|
2088
2096
|
* const aiDenoise: AudioNoiseSuppressFilterV2 = {
|
|
2089
2097
|
* id: 'noise_suppress_filter_v2',
|
|
@@ -4034,6 +4042,10 @@ interface ReplayOptions extends RecordingBaseOptions {
|
|
|
4034
4042
|
* This determines how much time will be retained in memory
|
|
4035
4043
|
* before being written to disk on replay save.
|
|
4036
4044
|
*
|
|
4045
|
+
* Must be at least `1`. A shorter buffer can not hold a playable segment,
|
|
4046
|
+
* and is rejected with a {@link RecorderError} carrying the
|
|
4047
|
+
* `MissingOrInvalidParameters` (-11) code.
|
|
4048
|
+
*
|
|
4037
4049
|
* Example: `30` will capture the last 30 seconds before the save.
|
|
4038
4050
|
*/
|
|
4039
4051
|
bufferSecond: number;
|
|
@@ -5006,7 +5018,7 @@ type ZOrderType = "default" | "topMost" | "bottomMost";
|
|
|
5006
5018
|
*
|
|
5007
5019
|
* @see {@link IOverwolfOverlayApi.setGpuPreference}.
|
|
5008
5020
|
*
|
|
5009
|
-
* @since 2.
|
|
5021
|
+
* @since 2.0.5
|
|
5010
5022
|
*/
|
|
5011
5023
|
type GpuPreference = "default" | "highPerformance";
|
|
5012
5024
|
|
|
@@ -5026,7 +5038,7 @@ type GpuPreference = "default" | "highPerformance";
|
|
|
5026
5038
|
*
|
|
5027
5039
|
* @see {@link IOverwolfOverlayApi.on} `shared-texture-unavailable`.
|
|
5028
5040
|
*
|
|
5029
|
-
* @since 2.
|
|
5041
|
+
* @since 2.0.5
|
|
5030
5042
|
*/
|
|
5031
5043
|
type SharedTextureUnavailableReason =
|
|
5032
5044
|
| "unsupportedGraphicsApi"
|
|
@@ -5120,6 +5132,8 @@ interface OverlayWindowOptions
|
|
|
5120
5132
|
*
|
|
5121
5133
|
* @default false
|
|
5122
5134
|
*
|
|
5135
|
+
* @see {@link https://www.electronjs.org/docs/latest/tutorial/offscreen-rendering#software-output-device | Software output device}
|
|
5136
|
+
*
|
|
5123
5137
|
* @since 1.13.20
|
|
5124
5138
|
*/
|
|
5125
5139
|
disableHardwareAcceleration?: boolean;
|
|
@@ -5148,6 +5162,8 @@ interface OverlayWindowOptions
|
|
|
5148
5162
|
*
|
|
5149
5163
|
* @default false
|
|
5150
5164
|
*
|
|
5165
|
+
* @see {@link https://dev.overwolf.com/ow-electron/reference/examples/overlay | Overlay examples}
|
|
5166
|
+
*
|
|
5151
5167
|
* @since 2.0.2
|
|
5152
5168
|
*/
|
|
5153
5169
|
useSharedTexture?: boolean;
|
|
@@ -5532,7 +5548,9 @@ interface GameWindowInfo {
|
|
|
5532
5548
|
*
|
|
5533
5549
|
* `undefined` until the game is injected and its graphics API is detected.
|
|
5534
5550
|
*
|
|
5535
|
-
* @
|
|
5551
|
+
* @see {@link https://dev.overwolf.com/ow-electron/reference/examples/overlay | Overlay examples}
|
|
5552
|
+
*
|
|
5553
|
+
* @since 2.0.5
|
|
5536
5554
|
*/
|
|
5537
5555
|
readonly isSharedTextureAvailable?: boolean;
|
|
5538
5556
|
}
|
|
@@ -5875,7 +5893,7 @@ interface IOverwolfOverlayApi extends EventEmitter {
|
|
|
5875
5893
|
* Allows injection into high elevation games.
|
|
5876
5894
|
* No-ops if files are already present.
|
|
5877
5895
|
*
|
|
5878
|
-
* @throws
|
|
5896
|
+
* @throws `HelperInstallError`
|
|
5879
5897
|
* - `exitCode 1223` — user cancelled the UAC prompt (ERROR_CANCELLED)
|
|
5880
5898
|
* - `err.exitCode !== 1223` — the installer process failed. Log `err.exitCode` and investigate.
|
|
5881
5899
|
* - any other non-zero exitCode — installation failed.
|
|
@@ -6023,6 +6041,7 @@ interface IOverwolfOverlayApi extends EventEmitter {
|
|
|
6023
6041
|
* @returns A promise that resolves once the preference has been recorded.
|
|
6024
6042
|
* @throws If the registry cannot be written, or on a non-Windows platform.
|
|
6025
6043
|
* @see {@link GpuPreference}.
|
|
6044
|
+
* @see {@link https://dev.overwolf.com/ow-electron/reference/examples/overlay | Overlay examples}
|
|
6026
6045
|
*
|
|
6027
6046
|
* @example
|
|
6028
6047
|
* ```ts
|
|
@@ -6034,7 +6053,7 @@ interface IOverwolfOverlayApi extends EventEmitter {
|
|
|
6034
6053
|
* });
|
|
6035
6054
|
* ```
|
|
6036
6055
|
*
|
|
6037
|
-
* @since 2.
|
|
6056
|
+
* @since 2.0.5
|
|
6038
6057
|
*/
|
|
6039
6058
|
setGpuPreference(preference: GpuPreference): Promise<void>;
|
|
6040
6059
|
|
|
@@ -6049,7 +6068,7 @@ interface IOverwolfOverlayApi extends EventEmitter {
|
|
|
6049
6068
|
* @see {@link IOverwolfOverlayApi.setGpuPreference}.
|
|
6050
6069
|
* @see {@link GpuPreference}.
|
|
6051
6070
|
*
|
|
6052
|
-
* @since 2.
|
|
6071
|
+
* @since 2.0.5
|
|
6053
6072
|
*/
|
|
6054
6073
|
getGpuPreference(): Promise<GpuPreference>;
|
|
6055
6074
|
|
|
@@ -6200,6 +6219,8 @@ interface IOverwolfOverlayApi extends EventEmitter {
|
|
|
6200
6219
|
* @param eventName - `shared-texture-unavailable`
|
|
6201
6220
|
* @param listener - Callback invoked once for the current game with the reason.
|
|
6202
6221
|
*
|
|
6222
|
+
* @see {@link https://dev.overwolf.com/ow-electron/reference/examples/overlay | Overlay examples}
|
|
6223
|
+
*
|
|
6203
6224
|
* @example
|
|
6204
6225
|
* ```ts
|
|
6205
6226
|
* overlay.on('shared-texture-unavailable', async (reason) => {
|
|
@@ -6210,7 +6231,7 @@ interface IOverwolfOverlayApi extends EventEmitter {
|
|
|
6210
6231
|
* });
|
|
6211
6232
|
* ```
|
|
6212
6233
|
*
|
|
6213
|
-
* @since 2.
|
|
6234
|
+
* @since 2.0.5
|
|
6214
6235
|
*/
|
|
6215
6236
|
on(
|
|
6216
6237
|
eventName: 'shared-texture-unavailable',
|