@nxtedition/types 23.0.62 → 23.0.65
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/render-profile.d.ts +15 -0
- package/dist/common/settings.d.ts +16 -0
- package/dist/common/subtitle-style.d.ts +1 -0
- package/dist/nxtpression.d.ts +67 -17
- package/dist/records/domains/event.d.ts +2 -0
- package/dist/records/domains/media.d.ts +6 -0
- package/dist/records/domains/publish/facebook.d.ts +1 -2
- package/dist/records/domains/script.d.ts +8 -3
- package/dist/records/domains/shotbox.d.ts +1 -0
- package/dist/records/exact/monitor.d.ts +9 -8
- package/dist/records/validate/assert-guard.js +1214 -740
- package/dist/records/validate/assert.js +1215 -740
- package/dist/records/validate/is.js +83 -73
- package/dist/records/validate/schemas.js +404 -85
- package/dist/records/validate/stringify.js +175 -132
- package/dist/records/validate/utils.js +1 -1
- package/dist/records/validate/validate-equals.js +1707 -943
- package/dist/records/validate/validate.js +1135 -737
- package/package.json +3 -3
|
@@ -26,4 +26,19 @@ export interface SubtitleProfile {
|
|
|
26
26
|
* Will pick styling from the corresponding `${style}:subtitle-style` asset.
|
|
27
27
|
*/
|
|
28
28
|
style?: string;
|
|
29
|
+
ccconverter?: {
|
|
30
|
+
/**
|
|
31
|
+
* This is an ID, which will be used to find a matching `${preset}:ccconverter-preset` record,
|
|
32
|
+
* with settings to pass to ccconverter. If not set, `lang` will be used as a preset ID.
|
|
33
|
+
*/
|
|
34
|
+
preset?: string;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Options to pass to encodeASS when generating subtitles for burn-in.
|
|
38
|
+
*/
|
|
39
|
+
ass?: {
|
|
40
|
+
futureWordWrapping?: boolean;
|
|
41
|
+
scaledBorderAndShadow?: boolean;
|
|
42
|
+
enableUnsafeLineSpacingHack?: boolean;
|
|
43
|
+
};
|
|
29
44
|
}
|
|
@@ -95,6 +95,10 @@ export interface Settings {
|
|
|
95
95
|
children?: boolean;
|
|
96
96
|
};
|
|
97
97
|
};
|
|
98
|
+
colorHistory?: Array<{
|
|
99
|
+
color: string | null;
|
|
100
|
+
backgroundColor: string | null;
|
|
101
|
+
}>;
|
|
98
102
|
};
|
|
99
103
|
events?: {
|
|
100
104
|
graphicBaseTemplate?: string;
|
|
@@ -185,6 +189,7 @@ export interface Settings {
|
|
|
185
189
|
color?: string | null;
|
|
186
190
|
}>;
|
|
187
191
|
overridableProperties?: Array<keyof SubtitleStyle | null>;
|
|
192
|
+
previewResolutionScale?: number;
|
|
188
193
|
};
|
|
189
194
|
subtitleTemplateId?: string;
|
|
190
195
|
initialVolume?: string;
|
|
@@ -326,6 +331,10 @@ export interface Settings {
|
|
|
326
331
|
};
|
|
327
332
|
suppressDeleteAlert?: boolean;
|
|
328
333
|
clone?: {
|
|
334
|
+
create?: {
|
|
335
|
+
titlePrefix?: string;
|
|
336
|
+
titleSuffix?: string;
|
|
337
|
+
};
|
|
329
338
|
duplicate?: {
|
|
330
339
|
titlePrefix?: string;
|
|
331
340
|
titleSuffix?: string;
|
|
@@ -345,6 +354,13 @@ export interface Settings {
|
|
|
345
354
|
bookmarks?: {
|
|
346
355
|
refreshInterval?: number;
|
|
347
356
|
};
|
|
357
|
+
shotbox?: {
|
|
358
|
+
layout?: string;
|
|
359
|
+
};
|
|
360
|
+
performance?: {
|
|
361
|
+
/** List of message identifiers to ignore in overall health aggregation (format: "serviceName:messageText") */
|
|
362
|
+
ignoredMessages?: string[];
|
|
363
|
+
};
|
|
348
364
|
}
|
|
349
365
|
export type SettingsPaths = Paths<Settings>;
|
|
350
366
|
interface ModuleTabs {
|
package/dist/nxtpression.d.ts
CHANGED
|
@@ -757,7 +757,7 @@ declare interface EventNodeContent {
|
|
|
757
757
|
type: "event";
|
|
758
758
|
id: string;
|
|
759
759
|
mixin: string;
|
|
760
|
-
children
|
|
760
|
+
children?: EventNodeContent[];
|
|
761
761
|
}
|
|
762
762
|
|
|
763
763
|
declare interface EventOverlayRecord {
|
|
@@ -770,6 +770,8 @@ declare type EventProps = {
|
|
|
770
770
|
source?: string;
|
|
771
771
|
cueCard?: boolean | string;
|
|
772
772
|
startTime?: number;
|
|
773
|
+
shotboxGroup?: string | string[];
|
|
774
|
+
shotboxVisible?: boolean;
|
|
773
775
|
};
|
|
774
776
|
|
|
775
777
|
declare type EventPropsRecord = EventProps & Record<Exclude<string, keyof EventProps>, JsonValue>;
|
|
@@ -813,8 +815,7 @@ declare interface FacebookPublishRecord extends PublishRecordBase {
|
|
|
813
815
|
pageId?: string;
|
|
814
816
|
}
|
|
815
817
|
|
|
816
|
-
declare
|
|
817
|
-
}
|
|
818
|
+
declare type FacebookPublishStatsRecord = PublishStatsRecordBase;
|
|
818
819
|
|
|
819
820
|
declare interface File_2 {
|
|
820
821
|
id: string & Pattern<'^[0-9A-Za-z~][0-9A-Za-z~._: -]*$'>;
|
|
@@ -1112,6 +1113,13 @@ declare interface FontFace_2 {
|
|
|
1112
1113
|
ranges: Range_2[];
|
|
1113
1114
|
}
|
|
1114
1115
|
|
|
1116
|
+
declare interface FormattedTextNodeContent {
|
|
1117
|
+
type: "text";
|
|
1118
|
+
text: string;
|
|
1119
|
+
style?: string;
|
|
1120
|
+
format?: number;
|
|
1121
|
+
}
|
|
1122
|
+
|
|
1115
1123
|
declare interface GeneralAssetRecord {
|
|
1116
1124
|
title?: string;
|
|
1117
1125
|
tags?: string;
|
|
@@ -1522,6 +1530,11 @@ declare interface KeymapSetting {
|
|
|
1522
1530
|
|
|
1523
1531
|
declare type LayoutWidget = WidgetType | WidgetItem;
|
|
1524
1532
|
|
|
1533
|
+
declare interface LinkNodeContent {
|
|
1534
|
+
type: "link" | "autolink";
|
|
1535
|
+
children: FormattedTextNodeContent[];
|
|
1536
|
+
}
|
|
1537
|
+
|
|
1525
1538
|
declare interface ListItemNodeContent {
|
|
1526
1539
|
type: "listitem";
|
|
1527
1540
|
value: number;
|
|
@@ -1582,9 +1595,16 @@ declare interface MediaDomainConsolidateRecord {
|
|
|
1582
1595
|
error?: unknown;
|
|
1583
1596
|
}
|
|
1584
1597
|
|
|
1598
|
+
declare interface MediaDomainConsolidateRecordProvided {
|
|
1599
|
+
status: "idle" | "pending" | "completed" | "error" | "source_mismatch";
|
|
1600
|
+
progress?: number;
|
|
1601
|
+
error?: unknown;
|
|
1602
|
+
}
|
|
1603
|
+
|
|
1585
1604
|
declare interface MediaDomainRecords {
|
|
1586
1605
|
":media.source": MediaSourceRecord;
|
|
1587
1606
|
":media.consolidate": MediaDomainConsolidateRecord;
|
|
1607
|
+
":media.consolidate?": MediaDomainConsolidateRecordProvided;
|
|
1588
1608
|
":media.renders?": MediaRendersRecord;
|
|
1589
1609
|
":media.transcriptChanges": MediaTranscriptChangesRecord;
|
|
1590
1610
|
":media.font": MediaFontRecord;
|
|
@@ -1966,6 +1986,13 @@ export declare interface NxtpressionNxt {
|
|
|
1966
1986
|
hash(value: unknown): string;
|
|
1967
1987
|
}
|
|
1968
1988
|
|
|
1989
|
+
declare interface NxtStatusMessage {
|
|
1990
|
+
id: string;
|
|
1991
|
+
msg: string;
|
|
1992
|
+
level: number;
|
|
1993
|
+
ignored?: boolean;
|
|
1994
|
+
}
|
|
1995
|
+
|
|
1969
1996
|
declare interface NxtStatusNode extends NxtStatusObject {
|
|
1970
1997
|
state?: string;
|
|
1971
1998
|
role?: string;
|
|
@@ -1978,10 +2005,7 @@ declare interface NxtStatusNode extends NxtStatusObject {
|
|
|
1978
2005
|
declare interface NxtStatusObject {
|
|
1979
2006
|
level: number;
|
|
1980
2007
|
status: string;
|
|
1981
|
-
messages:
|
|
1982
|
-
msg: string;
|
|
1983
|
-
level: number;
|
|
1984
|
-
}>;
|
|
2008
|
+
messages: NxtStatusMessage[];
|
|
1985
2009
|
}
|
|
1986
2010
|
|
|
1987
2011
|
declare interface NxtStatusRecord {
|
|
@@ -2000,16 +2024,14 @@ declare interface NxtStatusService extends NxtStatusObject {
|
|
|
2000
2024
|
running?: number;
|
|
2001
2025
|
mode?: string;
|
|
2002
2026
|
total?: number;
|
|
2027
|
+
ignored?: boolean;
|
|
2003
2028
|
tasks?: Array<{
|
|
2004
2029
|
id: string;
|
|
2005
2030
|
node: string;
|
|
2006
2031
|
container: string;
|
|
2007
2032
|
level?: number;
|
|
2008
2033
|
status?: string;
|
|
2009
|
-
messages:
|
|
2010
|
-
msg: string;
|
|
2011
|
-
level: number;
|
|
2012
|
-
}>;
|
|
2034
|
+
messages: NxtStatusMessage[];
|
|
2013
2035
|
}>;
|
|
2014
2036
|
}
|
|
2015
2037
|
|
|
@@ -3054,6 +3076,10 @@ declare interface Settings {
|
|
|
3054
3076
|
children?: boolean;
|
|
3055
3077
|
};
|
|
3056
3078
|
};
|
|
3079
|
+
colorHistory?: Array<{
|
|
3080
|
+
color: string | null;
|
|
3081
|
+
backgroundColor: string | null;
|
|
3082
|
+
}>;
|
|
3057
3083
|
};
|
|
3058
3084
|
events?: {
|
|
3059
3085
|
graphicBaseTemplate?: string;
|
|
@@ -3144,6 +3170,7 @@ declare interface Settings {
|
|
|
3144
3170
|
color?: string | null;
|
|
3145
3171
|
}>;
|
|
3146
3172
|
overridableProperties?: Array<keyof SubtitleStyle | null>;
|
|
3173
|
+
previewResolutionScale?: number;
|
|
3147
3174
|
};
|
|
3148
3175
|
subtitleTemplateId?: string;
|
|
3149
3176
|
initialVolume?: string;
|
|
@@ -3285,6 +3312,10 @@ declare interface Settings {
|
|
|
3285
3312
|
};
|
|
3286
3313
|
suppressDeleteAlert?: boolean;
|
|
3287
3314
|
clone?: {
|
|
3315
|
+
create?: {
|
|
3316
|
+
titlePrefix?: string;
|
|
3317
|
+
titleSuffix?: string;
|
|
3318
|
+
};
|
|
3288
3319
|
duplicate?: {
|
|
3289
3320
|
titlePrefix?: string;
|
|
3290
3321
|
titleSuffix?: string;
|
|
@@ -3304,6 +3335,13 @@ declare interface Settings {
|
|
|
3304
3335
|
bookmarks?: {
|
|
3305
3336
|
refreshInterval?: number;
|
|
3306
3337
|
};
|
|
3338
|
+
shotbox?: {
|
|
3339
|
+
layout?: string;
|
|
3340
|
+
};
|
|
3341
|
+
performance?: {
|
|
3342
|
+
/** List of message identifiers to ignore in overall health aggregation (format: "serviceName:messageText") */
|
|
3343
|
+
ignoredMessages?: string[];
|
|
3344
|
+
};
|
|
3307
3345
|
}
|
|
3308
3346
|
|
|
3309
3347
|
declare interface SettingsDomainRecords {
|
|
@@ -3351,6 +3389,7 @@ declare type ShotboxGroup = ShotboxEventGroup | ShotboxStreamGroup;
|
|
|
3351
3389
|
declare interface ShotboxPage {
|
|
3352
3390
|
stickyTopRow?: boolean;
|
|
3353
3391
|
inferGroups?: boolean;
|
|
3392
|
+
excludeFromInferredGroups?: string[];
|
|
3354
3393
|
layout?: Array<ShotboxGroup[] | ShotboxGroup>;
|
|
3355
3394
|
}
|
|
3356
3395
|
|
|
@@ -3666,6 +3705,21 @@ declare interface SubtitleProfile {
|
|
|
3666
3705
|
* Will pick styling from the corresponding `${style}:subtitle-style` asset.
|
|
3667
3706
|
*/
|
|
3668
3707
|
style?: string;
|
|
3708
|
+
ccconverter?: {
|
|
3709
|
+
/**
|
|
3710
|
+
* This is an ID, which will be used to find a matching `${preset}:ccconverter-preset` record,
|
|
3711
|
+
* with settings to pass to ccconverter. If not set, `lang` will be used as a preset ID.
|
|
3712
|
+
*/
|
|
3713
|
+
preset?: string;
|
|
3714
|
+
};
|
|
3715
|
+
/**
|
|
3716
|
+
* Options to pass to encodeASS when generating subtitles for burn-in.
|
|
3717
|
+
*/
|
|
3718
|
+
ass?: {
|
|
3719
|
+
futureWordWrapping?: boolean;
|
|
3720
|
+
scaledBorderAndShadow?: boolean;
|
|
3721
|
+
enableUnsafeLineSpacingHack?: boolean;
|
|
3722
|
+
};
|
|
3669
3723
|
}
|
|
3670
3724
|
|
|
3671
3725
|
declare interface SubtitleStyle {
|
|
@@ -3683,6 +3737,7 @@ declare interface SubtitleStyle {
|
|
|
3683
3737
|
scaleX?: string;
|
|
3684
3738
|
scaleY?: string;
|
|
3685
3739
|
spacing?: string;
|
|
3740
|
+
lineSpacing?: string;
|
|
3686
3741
|
angle?: string;
|
|
3687
3742
|
borderStyle?: string;
|
|
3688
3743
|
outline?: string;
|
|
@@ -3818,12 +3873,7 @@ declare interface TestOperation {
|
|
|
3818
3873
|
value: any;
|
|
3819
3874
|
}
|
|
3820
3875
|
|
|
3821
|
-
declare
|
|
3822
|
-
type: "text" | "link" | "autolink";
|
|
3823
|
-
text: string;
|
|
3824
|
-
style?: string;
|
|
3825
|
-
format?: number;
|
|
3826
|
-
}
|
|
3876
|
+
declare type TextNodeContent = FormattedTextNodeContent | LinkNodeContent;
|
|
3827
3877
|
|
|
3828
3878
|
declare interface TranscribeForEachWordReplacer {
|
|
3829
3879
|
type: "items";
|
|
@@ -40,6 +40,8 @@ type EventProps = {
|
|
|
40
40
|
source?: string;
|
|
41
41
|
cueCard?: boolean | string;
|
|
42
42
|
startTime?: number;
|
|
43
|
+
shotboxGroup?: string | string[];
|
|
44
|
+
shotboxVisible?: boolean;
|
|
43
45
|
};
|
|
44
46
|
export type EventPropsRecord = EventProps & Record<Exclude<string, keyof EventProps>, JsonValue>;
|
|
45
47
|
export interface EventOverlayRecord {
|
|
@@ -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
|
}
|
|
@@ -48,14 +48,19 @@ export interface EventNodeContent {
|
|
|
48
48
|
type: "event";
|
|
49
49
|
id: string;
|
|
50
50
|
mixin: string;
|
|
51
|
-
children
|
|
51
|
+
children?: EventNodeContent[];
|
|
52
52
|
}
|
|
53
|
-
export interface
|
|
54
|
-
type: "text"
|
|
53
|
+
export interface FormattedTextNodeContent {
|
|
54
|
+
type: "text";
|
|
55
55
|
text: string;
|
|
56
56
|
style?: string;
|
|
57
57
|
format?: number;
|
|
58
58
|
}
|
|
59
|
+
export interface LinkNodeContent {
|
|
60
|
+
type: "link" | "autolink";
|
|
61
|
+
children: FormattedTextNodeContent[];
|
|
62
|
+
}
|
|
63
|
+
export type TextNodeContent = FormattedTextNodeContent | LinkNodeContent;
|
|
59
64
|
export interface ElementNodeContent {
|
|
60
65
|
type: SerializedLexicalNode["type"];
|
|
61
66
|
children: TextNodeContent[];
|
|
@@ -7,6 +7,7 @@ export interface ShotboxDomainRecord {
|
|
|
7
7
|
export interface ShotboxPage {
|
|
8
8
|
stickyTopRow?: boolean;
|
|
9
9
|
inferGroups?: boolean;
|
|
10
|
+
excludeFromInferredGroups?: string[];
|
|
10
11
|
layout?: Array<ShotboxGroup[] | ShotboxGroup>;
|
|
11
12
|
}
|
|
12
13
|
export type ShotboxGroup = ShotboxEventGroup | ShotboxStreamGroup;
|
|
@@ -11,13 +11,16 @@ 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
|
+
}
|
|
14
20
|
export interface NxtStatusObject {
|
|
15
21
|
level: number;
|
|
16
22
|
status: string;
|
|
17
|
-
messages:
|
|
18
|
-
msg: string;
|
|
19
|
-
level: number;
|
|
20
|
-
}>;
|
|
23
|
+
messages: NxtStatusMessage[];
|
|
21
24
|
}
|
|
22
25
|
export interface NxtStatusNode extends NxtStatusObject {
|
|
23
26
|
state?: string;
|
|
@@ -32,15 +35,13 @@ export interface NxtStatusService extends NxtStatusObject {
|
|
|
32
35
|
running?: number;
|
|
33
36
|
mode?: string;
|
|
34
37
|
total?: number;
|
|
38
|
+
ignored?: boolean;
|
|
35
39
|
tasks?: Array<{
|
|
36
40
|
id: string;
|
|
37
41
|
node: string;
|
|
38
42
|
container: string;
|
|
39
43
|
level?: number;
|
|
40
44
|
status?: string;
|
|
41
|
-
messages:
|
|
42
|
-
msg: string;
|
|
43
|
-
level: number;
|
|
44
|
-
}>;
|
|
45
|
+
messages: NxtStatusMessage[];
|
|
45
46
|
}>;
|
|
46
47
|
}
|