@overwolf/ow-electron-packages-types 0.1.0-beta.9 → 0.2.0-beta.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.
@@ -122,12 +122,10 @@ Once the settings are ready to be applied, use the `build()` method to create th
122
122
 
123
123
 
124
124
  ### kSupportedEncodersTypes
125
+ jim_* are deprecated since obs 0.31.0. instead we use obs_nvenc_* encoders
125
126
  ```
126
127
  ffmpeg_svt_av1
127
128
  ffmpeg_aom_av1
128
- jim_nvenc
129
- jim_hevc_nvenc
130
- jim_av1_nvenc
131
129
  obs_x264
132
130
  h264_texture_amf
133
131
  h265_texture_amf
@@ -135,6 +133,9 @@ Once the settings are ready to be applied, use the `build()` method to create th
135
133
  obs_qsv11_v2
136
134
  obs_qsv11_hevc
137
135
  obs_qsv11_av1
136
+ obs_nvenc_h264_tex
137
+ obs_nvenc_hevc_tex
138
+ obs_nvenc_av1_tex
138
139
  ```
139
140
 
140
141
  ### AdapterInfo
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@overwolf/ow-electron-packages-types",
3
- "version": "0.1.0-beta.9",
3
+ "version": "0.2.0-beta.0",
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
@@ -4,6 +4,8 @@ BrowserWindow,
4
4
  BrowserWindowConstructorOptions,
5
5
  Size,
6
6
  WebContents,
7
+ Display,
8
+ Rectangle
7
9
  } from 'electron';
8
10
 
9
11
  import { EventEmitter } from 'events';
@@ -112,9 +114,23 @@ type ZOrderType = "default" | "topMost" | "bottomMost";
112
114
 
113
115
  /** Overlay ow-electron options */
114
116
  interface OverlayOptions {
117
+ /**
118
+ * Controls how input events are handled by the overlay window
119
+ * @default 'noPassThrough'
120
+ */
115
121
  passthrough?: PassthroughType;
116
122
 
123
+ /**
124
+ * Controls the Z-order (stacking order) of the overlay window relative to other window
125
+ * @default 'default'
126
+ */
117
127
  zOrder?: ZOrderType;
128
+
129
+ /**
130
+ * If true, the overlay will not intercept keyboard input.
131
+ * @default false
132
+ */
133
+ ignoreKeyboardInput?: boolean;
118
134
  }
119
135
 
120
136
  interface OverlayWindowOptions
@@ -168,10 +184,27 @@ interface InjectionError {
168
184
  }
169
185
 
170
186
  interface GameWindowInfo {
171
- size: Size;
172
- nativeHandle: number;
173
- focused: boolean;
174
- graphics: 'd3d9' | 'd3d12' | 'd3d11' | string | undefined;
187
+ /** The dimensions of the game window. */
188
+ readonly size: Size;
189
+
190
+ /** The native window handle (HWND) of the game window. */
191
+ readonly nativeHandle: number;
192
+
193
+ /** Indicates whether the game window is currently focused. */
194
+ readonly focused: boolean;
195
+
196
+ /** The graphics API used by the game (e.g., Direct3D 9, 11, 12, Vulkan). */
197
+ readonly graphics: 'd3d9' | 'd3d12' | 'd3d11' | 'vulkan' | string | undefined;
198
+
199
+ /** Display information for the screen on which the game window resides.
200
+ * Available since version 1.5.11.
201
+ */
202
+ readonly screen?: Display;
203
+
204
+ /** The bounding rectangle of the game window in screen coordinates.
205
+ * Available since version 1.5.11.
206
+ */
207
+ readonly bounds?: Rectangle;
175
208
  }
176
209
 
177
210
  interface GameInputInterception {
@@ -407,18 +440,19 @@ type Rect = { top: number; left: number; width: number; height: number };
407
440
  type AudioDeviceType = 'input' | 'output';
408
441
 
409
442
  type kSupportedEncodersTypes =
443
+ // jim_* are deprecated since obs 0.31.0. instead we use obs_nvenc_* encoders
410
444
  | 'ffmpeg_svt_av1'
411
445
  | 'ffmpeg_aom_av1'
412
- | 'jim_nvenc'
413
- | 'jim_hevc_nvenc'
414
- | 'jim_av1_nvenc'
415
446
  | 'obs_x264'
416
447
  | 'h264_texture_amf'
417
448
  | 'h265_texture_amf'
418
449
  | 'av1_texture_amf'
419
450
  | 'obs_qsv11_v2'
420
451
  | 'obs_qsv11_hevc'
421
- | 'obs_qsv11_av1';
452
+ | 'obs_qsv11_av1'
453
+ | 'obs_nvenc_h264_tex'
454
+ | 'obs_nvenc_hevc_tex'
455
+ | 'obs_nvenc_av1_tex';
422
456
 
423
457
  type kKnownAudioEncodersTypes =
424
458
  | 'ffmpeg_aac'
@@ -540,7 +574,8 @@ type kFileFormat =
540
574
  | 'mkv'
541
575
  | 'mov'
542
576
  | 'mpegts'
543
- | 'hls';
577
+ | 'hls'
578
+ | 'hybrid_mp4';
544
579
 
545
580
  type kVideoColorFormat =
546
581
  | 'NV12'
@@ -1564,6 +1599,16 @@ interface IOverwolfRecordingApi {
1564
1599
  */
1565
1600
  isActive(): Promise<boolean>;
1566
1601
 
1602
+ /**
1603
+ * Is recording active
1604
+ */
1605
+ isRecordingActive(): Promise<boolean>;
1606
+
1607
+ /**
1608
+ * Is replay active
1609
+ */
1610
+ isReplayActive(): Promise<boolean>;
1611
+
1567
1612
  /**
1568
1613
  * Query System information.
1569
1614
  *