File tree Expand file tree Collapse file tree 2 files changed +21
-7
lines changed Expand file tree Collapse file tree 2 files changed +21
-7
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,8 @@ const headers = {
77
77
Authorization : process . env . GH_TOKEN ? `token ${ process . env . GH_TOKEN } ` : undefined ,
78
78
} ;
79
79
80
- let commit = process . argv [ 2 ] ?? process . env . GH_COMMIT ;
80
+ // Defaulting to the branch for now to get the latest docs-only changes
81
+ let commit = process . argv [ 2 ] ?? process . env . GH_COMMIT ?? 'master' ;
81
82
if ( ! commit ) {
82
83
const { body : release } = await got ( 'https://api.github.com/repos/obsproject/obs-websocket/releases/latest' , {
83
84
headers,
@@ -104,7 +105,7 @@ protocol.enums.forEach(({enumType, enumIdentifiers}) => {
104
105
} ) ;
105
106
106
107
const source = `/**
107
- * This file is autogenerated by scripts/generate-obs-typings.js
108
+ * This file is autogenerated by scripts/build-types.ts
108
109
* To update this with latest changes do npm run generate:obs-types
109
110
*/
110
111
import {Merge, JsonArray, JsonObject, JsonValue} from 'type-fest';
Original file line number Diff line number Diff line change @@ -534,7 +534,7 @@ export interface OBSEventTypes {
534
534
*/
535
535
inputName : string ;
536
536
/**
537
- * New volume level in multimap
537
+ * New volume level multiplier
538
538
*/
539
539
inputVolumeMul : number ;
540
540
/**
@@ -852,6 +852,12 @@ export interface OBSEventTypes {
852
852
*/
853
853
eventData : JsonObject ;
854
854
} ;
855
+ CustomEvent : {
856
+ /**
857
+ * Custom event data
858
+ */
859
+ eventData : JsonObject ;
860
+ } ;
855
861
}
856
862
857
863
// Requests and Responses
@@ -1184,14 +1190,16 @@ export interface OBSRequestTypes {
1184
1190
* Number of milliseconds to sleep for (if `SERIAL_REALTIME` mode)
1185
1191
*
1186
1192
* @restrictions >= 0, <= 50000
1193
+ * @defaultValue Unknown
1187
1194
*/
1188
- sleepMillis : number ;
1195
+ sleepMillis ? : number ;
1189
1196
/**
1190
1197
* Number of frames to sleep for (if `SERIAL_FRAME` mode)
1191
1198
*
1192
1199
* @restrictions >= 0, <= 10000
1200
+ * @defaultValue Unknown
1193
1201
*/
1194
- sleepFrames : number ;
1202
+ sleepFrames ? : number ;
1195
1203
} ;
1196
1204
GetInputList : {
1197
1205
/**
@@ -2381,7 +2389,12 @@ export interface OBSResponseTypes {
2381
2389
*/
2382
2390
savedReplayPath : string ;
2383
2391
} ;
2384
- GetOutputList : undefined ;
2392
+ GetOutputList : {
2393
+ /**
2394
+ * Array of outputs
2395
+ */
2396
+ outputs : JsonObject [ ] ;
2397
+ } ;
2385
2398
GetOutputStatus : {
2386
2399
/**
2387
2400
* Whether the output is active
@@ -2439,7 +2452,7 @@ export interface OBSResponseTypes {
2439
2452
/**
2440
2453
* Whether the output is paused
2441
2454
*/
2442
- ouputPaused : boolean ;
2455
+ outputPaused : boolean ;
2443
2456
/**
2444
2457
* Current formatted timecode string for the output
2445
2458
*/
You can’t perform that action at this time.
0 commit comments