@nxtedition/types 23.1.0 → 23.1.2
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/dist/common/settings.d.ts +18 -0
- package/dist/nxtpression.d.ts +44 -10
- package/dist/records/domains/media.d.ts +6 -0
- package/dist/records/domains/publish/facebook.d.ts +1 -2
- package/dist/records/exact/media.d.ts +2 -0
- package/dist/records/exact/monitor.d.ts +14 -8
- package/dist/records/validate/assert-guard.js +548 -377
- package/dist/records/validate/assert.js +549 -377
- package/dist/records/validate/is.js +22 -21
- package/dist/records/validate/schemas.js +172 -62
- package/dist/records/validate/stringify.js +46 -35
- package/dist/records/validate/utils.js +1 -1
- package/dist/records/validate/validate-equals.js +705 -486
- package/dist/records/validate/validate.js +519 -367
- package/package.json +1 -1
|
@@ -239,6 +239,9 @@ export interface Settings {
|
|
|
239
239
|
};
|
|
240
240
|
edit?: {
|
|
241
241
|
thumbnailView?: "filmStrip" | "thumbnail" | "none";
|
|
242
|
+
audioMapping?: {
|
|
243
|
+
presets?: Array<AudioMappingPreset>;
|
|
244
|
+
};
|
|
242
245
|
normalize?: {
|
|
243
246
|
presets?: Array<{
|
|
244
247
|
id: string;
|
|
@@ -332,6 +335,7 @@ export interface Settings {
|
|
|
332
335
|
devWarnings?: boolean;
|
|
333
336
|
multiplexWebSockets?: boolean;
|
|
334
337
|
systemHealth?: boolean;
|
|
338
|
+
systemHealthIgnore?: boolean;
|
|
335
339
|
};
|
|
336
340
|
notifications?: {
|
|
337
341
|
events?: {
|
|
@@ -371,6 +375,10 @@ export interface Settings {
|
|
|
371
375
|
shotbox?: {
|
|
372
376
|
layout?: string;
|
|
373
377
|
};
|
|
378
|
+
performance?: {
|
|
379
|
+
/** List of message identifiers to ignore in overall health aggregation (format: "serviceName:messageText") */
|
|
380
|
+
ignoredMessages?: string[];
|
|
381
|
+
};
|
|
374
382
|
}
|
|
375
383
|
export type SettingsPaths = Paths<Settings>;
|
|
376
384
|
interface ModuleTabs {
|
|
@@ -389,4 +397,14 @@ interface KeymapSetting {
|
|
|
389
397
|
title?: string;
|
|
390
398
|
sequence?: string;
|
|
391
399
|
}
|
|
400
|
+
export interface AudioMappingPreset {
|
|
401
|
+
id: string;
|
|
402
|
+
title: string;
|
|
403
|
+
mapping?: number[][];
|
|
404
|
+
mute?: boolean[];
|
|
405
|
+
minInChannels?: number;
|
|
406
|
+
maxInChannels?: number;
|
|
407
|
+
minOutChannels?: number;
|
|
408
|
+
maxOutChannels?: number;
|
|
409
|
+
}
|
|
392
410
|
export {};
|
package/dist/nxtpression.d.ts
CHANGED
|
@@ -379,6 +379,17 @@ declare interface AssetTypesRecord {
|
|
|
379
379
|
};
|
|
380
380
|
}
|
|
381
381
|
|
|
382
|
+
declare interface AudioMappingPreset {
|
|
383
|
+
id: string;
|
|
384
|
+
title: string;
|
|
385
|
+
mapping?: number[][];
|
|
386
|
+
mute?: boolean[];
|
|
387
|
+
minInChannels?: number;
|
|
388
|
+
maxInChannels?: number;
|
|
389
|
+
minOutChannels?: number;
|
|
390
|
+
maxOutChannels?: number;
|
|
391
|
+
}
|
|
392
|
+
|
|
382
393
|
declare interface AuthDomainRecord {
|
|
383
394
|
/** hash of a user's password, or null if not set */
|
|
384
395
|
hash?: string | null;
|
|
@@ -815,8 +826,7 @@ declare interface FacebookPublishRecord extends PublishRecordBase {
|
|
|
815
826
|
pageId?: string;
|
|
816
827
|
}
|
|
817
828
|
|
|
818
|
-
declare
|
|
819
|
-
}
|
|
829
|
+
declare type FacebookPublishStatsRecord = PublishStatsRecordBase;
|
|
820
830
|
|
|
821
831
|
declare interface File_2 {
|
|
822
832
|
id: string & Pattern<'^[0-9A-Za-z~][0-9A-Za-z~._: -]*$'>;
|
|
@@ -1596,9 +1606,16 @@ declare interface MediaDomainConsolidateRecord {
|
|
|
1596
1606
|
error?: unknown;
|
|
1597
1607
|
}
|
|
1598
1608
|
|
|
1609
|
+
declare interface MediaDomainConsolidateRecordProvided {
|
|
1610
|
+
status: "idle" | "pending" | "completed" | "error" | "source_mismatch";
|
|
1611
|
+
progress?: number;
|
|
1612
|
+
error?: unknown;
|
|
1613
|
+
}
|
|
1614
|
+
|
|
1599
1615
|
declare interface MediaDomainRecords {
|
|
1600
1616
|
":media.source": MediaSourceRecord;
|
|
1601
1617
|
":media.consolidate": MediaDomainConsolidateRecord;
|
|
1618
|
+
":media.consolidate?": MediaDomainConsolidateRecordProvided;
|
|
1602
1619
|
":media.renders?": MediaRendersRecord;
|
|
1603
1620
|
":media.transcriptChanges": MediaTranscriptChangesRecord;
|
|
1604
1621
|
":media.font": MediaFontRecord;
|
|
@@ -1670,11 +1687,13 @@ declare interface MediaRestrictionsRecord {
|
|
|
1670
1687
|
declare type MediaSourceRecord = RenderSceneObject;
|
|
1671
1688
|
|
|
1672
1689
|
declare interface MediaSubtitlesProvidedRecord {
|
|
1690
|
+
defaultLanguage?: string;
|
|
1673
1691
|
languages?: Record<string, string>;
|
|
1674
1692
|
fontFaces?: SubtitleFontFace[];
|
|
1675
1693
|
}
|
|
1676
1694
|
|
|
1677
1695
|
declare interface MediaSubtitlesRecord {
|
|
1696
|
+
defaultLanguage?: string;
|
|
1678
1697
|
languages?: Record<string, string>;
|
|
1679
1698
|
fontFaces?: SubtitleFontFace[];
|
|
1680
1699
|
}
|
|
@@ -1980,6 +1999,18 @@ export declare interface NxtpressionNxt {
|
|
|
1980
1999
|
hash(value: unknown): string;
|
|
1981
2000
|
}
|
|
1982
2001
|
|
|
2002
|
+
declare interface NxtStatusMessage {
|
|
2003
|
+
id: string;
|
|
2004
|
+
msg: string;
|
|
2005
|
+
level: number;
|
|
2006
|
+
ignored?: boolean;
|
|
2007
|
+
title?: string;
|
|
2008
|
+
url?: string | {
|
|
2009
|
+
title: string;
|
|
2010
|
+
url: string;
|
|
2011
|
+
};
|
|
2012
|
+
}
|
|
2013
|
+
|
|
1983
2014
|
declare interface NxtStatusNode extends NxtStatusObject {
|
|
1984
2015
|
state?: string;
|
|
1985
2016
|
role?: string;
|
|
@@ -1992,10 +2023,7 @@ declare interface NxtStatusNode extends NxtStatusObject {
|
|
|
1992
2023
|
declare interface NxtStatusObject {
|
|
1993
2024
|
level: number;
|
|
1994
2025
|
status: string;
|
|
1995
|
-
messages:
|
|
1996
|
-
msg: string;
|
|
1997
|
-
level: number;
|
|
1998
|
-
}>;
|
|
2026
|
+
messages: NxtStatusMessage[];
|
|
1999
2027
|
}
|
|
2000
2028
|
|
|
2001
2029
|
declare interface NxtStatusRecord {
|
|
@@ -2014,16 +2042,14 @@ declare interface NxtStatusService extends NxtStatusObject {
|
|
|
2014
2042
|
running?: number;
|
|
2015
2043
|
mode?: string;
|
|
2016
2044
|
total?: number;
|
|
2045
|
+
ignored?: boolean;
|
|
2017
2046
|
tasks?: Array<{
|
|
2018
2047
|
id: string;
|
|
2019
2048
|
node: string;
|
|
2020
2049
|
container: string;
|
|
2021
2050
|
level?: number;
|
|
2022
2051
|
status?: string;
|
|
2023
|
-
messages:
|
|
2024
|
-
msg: string;
|
|
2025
|
-
level: number;
|
|
2026
|
-
}>;
|
|
2052
|
+
messages: NxtStatusMessage[];
|
|
2027
2053
|
}>;
|
|
2028
2054
|
}
|
|
2029
2055
|
|
|
@@ -3212,6 +3238,9 @@ declare interface Settings {
|
|
|
3212
3238
|
};
|
|
3213
3239
|
edit?: {
|
|
3214
3240
|
thumbnailView?: "filmStrip" | "thumbnail" | "none";
|
|
3241
|
+
audioMapping?: {
|
|
3242
|
+
presets?: Array<AudioMappingPreset>;
|
|
3243
|
+
};
|
|
3215
3244
|
normalize?: {
|
|
3216
3245
|
presets?: Array<{
|
|
3217
3246
|
id: string;
|
|
@@ -3305,6 +3334,7 @@ declare interface Settings {
|
|
|
3305
3334
|
devWarnings?: boolean;
|
|
3306
3335
|
multiplexWebSockets?: boolean;
|
|
3307
3336
|
systemHealth?: boolean;
|
|
3337
|
+
systemHealthIgnore?: boolean;
|
|
3308
3338
|
};
|
|
3309
3339
|
notifications?: {
|
|
3310
3340
|
events?: {
|
|
@@ -3344,6 +3374,10 @@ declare interface Settings {
|
|
|
3344
3374
|
shotbox?: {
|
|
3345
3375
|
layout?: string;
|
|
3346
3376
|
};
|
|
3377
|
+
performance?: {
|
|
3378
|
+
/** List of message identifiers to ignore in overall health aggregation (format: "serviceName:messageText") */
|
|
3379
|
+
ignoredMessages?: string[];
|
|
3380
|
+
};
|
|
3347
3381
|
}
|
|
3348
3382
|
|
|
3349
3383
|
declare interface SettingsDomainRecords {
|
|
@@ -3,6 +3,7 @@ import type { NxtError, MediaType, RenderPreset, RenderSceneObject } from '../..
|
|
|
3
3
|
export interface MediaDomainRecords {
|
|
4
4
|
":media.source": MediaSourceRecord;
|
|
5
5
|
":media.consolidate": MediaDomainConsolidateRecord;
|
|
6
|
+
":media.consolidate?": MediaDomainConsolidateRecordProvided;
|
|
6
7
|
":media.renders?": MediaRendersRecord;
|
|
7
8
|
":media.transcriptChanges": MediaTranscriptChangesRecord;
|
|
8
9
|
":media.font": MediaFontRecord;
|
|
@@ -18,6 +19,11 @@ export interface MediaDomainConsolidateRecord {
|
|
|
18
19
|
preset?: RenderPreset;
|
|
19
20
|
error?: unknown;
|
|
20
21
|
}
|
|
22
|
+
export interface MediaDomainConsolidateRecordProvided {
|
|
23
|
+
status: "idle" | "pending" | "completed" | "error" | "source_mismatch";
|
|
24
|
+
progress?: number;
|
|
25
|
+
error?: unknown;
|
|
26
|
+
}
|
|
21
27
|
export interface MediaRendersRecord {
|
|
22
28
|
children: MediaRenderRecordValue[];
|
|
23
29
|
}
|
|
@@ -8,10 +8,12 @@ export interface MediaRecords {
|
|
|
8
8
|
"media.consolidate": MediaConsolidateRecord;
|
|
9
9
|
}
|
|
10
10
|
export interface MediaSubtitlesRecord {
|
|
11
|
+
defaultLanguage?: string;
|
|
11
12
|
languages?: Record<string, string>;
|
|
12
13
|
fontFaces?: SubtitleFontFace[];
|
|
13
14
|
}
|
|
14
15
|
export interface MediaSubtitlesProvidedRecord {
|
|
16
|
+
defaultLanguage?: string;
|
|
15
17
|
languages?: Record<string, string>;
|
|
16
18
|
fontFaces?: SubtitleFontFace[];
|
|
17
19
|
}
|
|
@@ -11,13 +11,21 @@ export interface NxtStatusRecord {
|
|
|
11
11
|
level: number;
|
|
12
12
|
status: string;
|
|
13
13
|
}
|
|
14
|
+
export interface NxtStatusMessage {
|
|
15
|
+
id: string;
|
|
16
|
+
msg: string;
|
|
17
|
+
level: number;
|
|
18
|
+
ignored?: boolean;
|
|
19
|
+
title?: string;
|
|
20
|
+
url?: string | {
|
|
21
|
+
title: string;
|
|
22
|
+
url: string;
|
|
23
|
+
};
|
|
24
|
+
}
|
|
14
25
|
export interface NxtStatusObject {
|
|
15
26
|
level: number;
|
|
16
27
|
status: string;
|
|
17
|
-
messages:
|
|
18
|
-
msg: string;
|
|
19
|
-
level: number;
|
|
20
|
-
}>;
|
|
28
|
+
messages: NxtStatusMessage[];
|
|
21
29
|
}
|
|
22
30
|
export interface NxtStatusNode extends NxtStatusObject {
|
|
23
31
|
state?: string;
|
|
@@ -32,15 +40,13 @@ export interface NxtStatusService extends NxtStatusObject {
|
|
|
32
40
|
running?: number;
|
|
33
41
|
mode?: string;
|
|
34
42
|
total?: number;
|
|
43
|
+
ignored?: boolean;
|
|
35
44
|
tasks?: Array<{
|
|
36
45
|
id: string;
|
|
37
46
|
node: string;
|
|
38
47
|
container: string;
|
|
39
48
|
level?: number;
|
|
40
49
|
status?: string;
|
|
41
|
-
messages:
|
|
42
|
-
msg: string;
|
|
43
|
-
level: number;
|
|
44
|
-
}>;
|
|
50
|
+
messages: NxtStatusMessage[];
|
|
45
51
|
}>;
|
|
46
52
|
}
|