@overwolf/ow-electron-packages-types 1.1.6 → 1.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/types.d.ts +50 -23
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@overwolf/ow-electron-packages-types",
3
- "version": "1.1.6",
3
+ "version": "1.1.8",
4
4
  "description": "Type definition file for autocompletion and documentation purposes for ow-electron packages",
5
5
  "license": "MIT",
6
6
  "types": "types.d.ts",
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 \{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.
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
- * * @example
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
- * * @example
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
- * * @example
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
- * * @example
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
- * * @example
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
- * * @example
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
- * * @example
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
- * * @example
2093
+ *
2094
+ * @example
2087
2095
  * ```typescript
2088
2096
  * const aiDenoise: AudioNoiseSuppressFilterV2 = {
2089
2097
  * id: 'noise_suppress_filter_v2',
@@ -3910,6 +3918,7 @@ type ErrorCode =
3910
3918
  | -999 // Missing binaries required for recording. 'MissingBinaries'
3911
3919
  | -998 // Failed to connect to the OBS process. 'ConnectionOBSError'
3912
3920
  | -997 // Operation attempted while recording is already running. 'AlreadyRunning'
3921
+ | -996 // Elevated game capture requested while the High Elevation Helper isn't installed. 'ElevationHelperMissing'
3913
3922
  | -12 // Attempted to split recording when split recording is disabled. 'SplitRecordingDisabled'
3914
3923
  | -11 // One or more required parameters are missing or invalid. 'MissingOrInvalidParameters'
3915
3924
  | -10 // No active recording session found. 'NoActiveRecording'
@@ -4034,6 +4043,10 @@ interface ReplayOptions extends RecordingBaseOptions {
4034
4043
  * This determines how much time will be retained in memory
4035
4044
  * before being written to disk on replay save.
4036
4045
  *
4046
+ * Must be at least `1`. A shorter buffer can not hold a playable segment,
4047
+ * and is rejected with a {@link RecorderError} carrying the
4048
+ * `MissingOrInvalidParameters` (-11) code.
4049
+ *
4037
4050
  * Example: `30` will capture the last 30 seconds before the save.
4038
4051
  */
4039
4052
  bufferSecond: number;
@@ -5006,7 +5019,7 @@ type ZOrderType = "default" | "topMost" | "bottomMost";
5006
5019
  *
5007
5020
  * @see {@link IOverwolfOverlayApi.setGpuPreference}.
5008
5021
  *
5009
- * @since 2.1.0
5022
+ * @since 2.0.5
5010
5023
  */
5011
5024
  type GpuPreference = "default" | "highPerformance";
5012
5025
 
@@ -5023,15 +5036,18 @@ type GpuPreference = "default" | "highPerformance";
5023
5036
  * received in-game. The overlay retried, then fell back to the CPU copy path.
5024
5037
  * {@link IOverwolfOverlayApi.setGpuPreference} may help when the root cause is
5025
5038
  * adapter-related.
5039
+ * - `handleTransportBlocked`—The GPU textures could not be shared with the game
5040
+ * process.
5026
5041
  *
5027
5042
  * @see {@link IOverwolfOverlayApi.on} `shared-texture-unavailable`.
5028
5043
  *
5029
- * @since 2.1.0
5044
+ * @since 2.0.5
5030
5045
  */
5031
5046
  type SharedTextureUnavailableReason =
5032
5047
  | "unsupportedGraphicsApi"
5033
5048
  | "gpuAdapterMismatch"
5034
- | "copyFailure";
5049
+ | "copyFailure"
5050
+ | "handleTransportBlocked";
5035
5051
 
5036
5052
 
5037
5053
 
@@ -5120,6 +5136,8 @@ interface OverlayWindowOptions
5120
5136
  *
5121
5137
  * @default false
5122
5138
  *
5139
+ * @see {@link https://www.electronjs.org/docs/latest/tutorial/offscreen-rendering#software-output-device | Software output device}
5140
+ *
5123
5141
  * @since 1.13.20
5124
5142
  */
5125
5143
  disableHardwareAcceleration?: boolean;
@@ -5148,6 +5166,8 @@ interface OverlayWindowOptions
5148
5166
  *
5149
5167
  * @default false
5150
5168
  *
5169
+ * @see {@link https://dev.overwolf.com/ow-electron/reference/examples/overlay | Overlay examples}
5170
+ *
5151
5171
  * @since 2.0.2
5152
5172
  */
5153
5173
  useSharedTexture?: boolean;
@@ -5532,7 +5552,9 @@ interface GameWindowInfo {
5532
5552
  *
5533
5553
  * `undefined` until the game is injected and its graphics API is detected.
5534
5554
  *
5535
- * @since 2.1.0
5555
+ * @see {@link https://dev.overwolf.com/ow-electron/reference/examples/overlay | Overlay examples}
5556
+ *
5557
+ * @since 2.0.5
5536
5558
  */
5537
5559
  readonly isSharedTextureAvailable?: boolean;
5538
5560
  }
@@ -5875,7 +5897,7 @@ interface IOverwolfOverlayApi extends EventEmitter {
5875
5897
  * Allows injection into high elevation games.
5876
5898
  * No-ops if files are already present.
5877
5899
  *
5878
- * @throws \{HelperInstallError\}
5900
+ * @throws `HelperInstallError`
5879
5901
  * - `exitCode 1223` — user cancelled the UAC prompt (ERROR_CANCELLED)
5880
5902
  * - `err.exitCode !== 1223` — the installer process failed. Log `err.exitCode` and investigate.
5881
5903
  * - any other non-zero exitCode — installation failed.
@@ -6023,6 +6045,7 @@ interface IOverwolfOverlayApi extends EventEmitter {
6023
6045
  * @returns A promise that resolves once the preference has been recorded.
6024
6046
  * @throws If the registry cannot be written, or on a non-Windows platform.
6025
6047
  * @see {@link GpuPreference}.
6048
+ * @see {@link https://dev.overwolf.com/ow-electron/reference/examples/overlay | Overlay examples}
6026
6049
  *
6027
6050
  * @example
6028
6051
  * ```ts
@@ -6034,7 +6057,7 @@ interface IOverwolfOverlayApi extends EventEmitter {
6034
6057
  * });
6035
6058
  * ```
6036
6059
  *
6037
- * @since 2.1.0
6060
+ * @since 2.0.5
6038
6061
  */
6039
6062
  setGpuPreference(preference: GpuPreference): Promise<void>;
6040
6063
 
@@ -6049,7 +6072,7 @@ interface IOverwolfOverlayApi extends EventEmitter {
6049
6072
  * @see {@link IOverwolfOverlayApi.setGpuPreference}.
6050
6073
  * @see {@link GpuPreference}.
6051
6074
  *
6052
- * @since 2.1.0
6075
+ * @since 2.0.5
6053
6076
  */
6054
6077
  getGpuPreference(): Promise<GpuPreference>;
6055
6078
 
@@ -6189,17 +6212,21 @@ interface IOverwolfOverlayApi extends EventEmitter {
6189
6212
  * received in-game**. The overlay retried, then abandoned the path for this game.
6190
6213
  * {@link IOverwolfOverlayApi.setGpuPreference} may help when the root cause is
6191
6214
  * adapter-related; details are in the overlay log.
6215
+ * - `handleTransportBlocked`&mdash;the GPU textures **could not be shared with the game
6216
+ * process**.
6192
6217
  *
6193
6218
  * Fires at most **once per injected game**. The first two reasons are detected when the
6194
- * game's graphics are detected, before any frame is sent; `copyFailure` is reached only
6195
- * after frames were sent and repeatedly failed to draw. Either way, the affected overlay
6196
- * windows have already been switched to the CPU copy path by the time the event fires, so
6197
- * they stay visible and interactive, and
6219
+ * game's graphics are detected, before any frame is sent; `copyFailure` and
6220
+ * `handleTransportBlocked` are reached only after frames were sent and repeatedly failed to
6221
+ * arrive or draw. Either way, the affected overlay windows have already been switched to the
6222
+ * CPU copy path by the time the event fires, so they stay visible and interactive, and
6198
6223
  * {@link GameWindowInfo.isSharedTextureAvailable} reports `false` for the game.
6199
6224
  *
6200
6225
  * @param eventName - `shared-texture-unavailable`
6201
6226
  * @param listener - Callback invoked once for the current game with the reason.
6202
6227
  *
6228
+ * @see {@link https://dev.overwolf.com/ow-electron/reference/examples/overlay | Overlay examples}
6229
+ *
6203
6230
  * @example
6204
6231
  * ```ts
6205
6232
  * overlay.on('shared-texture-unavailable', async (reason) => {
@@ -6210,7 +6237,7 @@ interface IOverwolfOverlayApi extends EventEmitter {
6210
6237
  * });
6211
6238
  * ```
6212
6239
  *
6213
- * @since 2.1.0
6240
+ * @since 2.0.5
6214
6241
  */
6215
6242
  on(
6216
6243
  eventName: 'shared-texture-unavailable',