Skip to content

Commit e14b43e

Browse files
chore: update types to obs-websocket 5.6.3, remove old temp fix (#362)
* chore: update types to obs-websocket 5.6.3 * chore: remove old temp fix This is fixed upstream obsproject/obs-websocket@35e3e27
1 parent 9b6fde2 commit e14b43e

File tree

2 files changed

+74
-7
lines changed

2 files changed

+74
-7
lines changed

scripts/build-types.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,6 @@ const {body: protocol} = await got<GeneratedProtocol>(`https://raw.githubusercon
9494
responseType: 'json',
9595
});
9696

97-
// fix oopsie in protocol.json (5.0.1)
98-
protocol.requests.forEach(req => {
99-
if (req.requestType === 'GetGroupItemList') {
100-
req.requestType = 'GetGroupSceneItemList';
101-
}
102-
});
103-
10497
const ENUMS: Record<string, EnumIdentifier[]> = {};
10598
protocol.enums.forEach(({enumType, enumIdentifiers}) => {
10699
ENUMS[enumType] = enumIdentifiers;

src/types.ts

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,10 @@ export interface OBSEventTypes {
491491
* The unversioned kind of input (aka no `_v2` stuff)
492492
*/
493493
unversionedInputKind: string;
494+
/**
495+
* Bitflag value for the caps that an input supports. See obs_source_info.output_flags in the libobs docs
496+
*/
497+
inputKindCaps: number;
494498
/**
495499
* The settings configured to the input when it was created
496500
*/
@@ -1713,6 +1717,62 @@ export interface OBSRequestTypes {
17131717
*/
17141718
inputAudioTracks: JsonObject;
17151719
};
1720+
GetInputDeinterlaceMode: {
1721+
/**
1722+
* Name of the input
1723+
* @defaultValue Unknown
1724+
*/
1725+
inputName?: string;
1726+
/**
1727+
* UUID of the input
1728+
* @defaultValue Unknown
1729+
*/
1730+
inputUuid?: string;
1731+
};
1732+
SetInputDeinterlaceMode: {
1733+
/**
1734+
* Name of the input
1735+
* @defaultValue Unknown
1736+
*/
1737+
inputName?: string;
1738+
/**
1739+
* UUID of the input
1740+
* @defaultValue Unknown
1741+
*/
1742+
inputUuid?: string;
1743+
/**
1744+
* Deinterlace mode for the input
1745+
*/
1746+
inputDeinterlaceMode: string;
1747+
};
1748+
GetInputDeinterlaceFieldOrder: {
1749+
/**
1750+
* Name of the input
1751+
* @defaultValue Unknown
1752+
*/
1753+
inputName?: string;
1754+
/**
1755+
* UUID of the input
1756+
* @defaultValue Unknown
1757+
*/
1758+
inputUuid?: string;
1759+
};
1760+
SetInputDeinterlaceFieldOrder: {
1761+
/**
1762+
* Name of the input
1763+
* @defaultValue Unknown
1764+
*/
1765+
inputName?: string;
1766+
/**
1767+
* UUID of the input
1768+
* @defaultValue Unknown
1769+
*/
1770+
inputUuid?: string;
1771+
/**
1772+
* Deinterlace field order for the input
1773+
*/
1774+
inputDeinterlaceFieldOrder: string;
1775+
};
17161776
GetInputPropertiesListPropertyItems: {
17171777
/**
17181778
* Name of the input
@@ -2863,6 +2923,20 @@ export interface OBSResponseTypes {
28632923
inputAudioTracks: JsonObject;
28642924
};
28652925
SetInputAudioTracks: undefined;
2926+
GetInputDeinterlaceMode: {
2927+
/**
2928+
* Deinterlace mode of the input
2929+
*/
2930+
inputDeinterlaceMode: string;
2931+
};
2932+
SetInputDeinterlaceMode: undefined;
2933+
GetInputDeinterlaceFieldOrder: {
2934+
/**
2935+
* Deinterlace field order of the input
2936+
*/
2937+
inputDeinterlaceFieldOrder: string;
2938+
};
2939+
SetInputDeinterlaceFieldOrder: undefined;
28662940
GetInputPropertiesListPropertyItems: {
28672941
/**
28682942
* Array of items in the list property

0 commit comments

Comments
 (0)