@nxtedition/types 23.1.9 → 23.1.10
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 +9 -0
- package/dist/nxtpression.d.ts +71 -1
- package/dist/records/domains/event.d.ts +22 -0
- package/dist/records/domains/index.d.ts +3 -1
- package/dist/records/domains/index.js +1 -0
- package/dist/records/domains/media.d.ts +4 -0
- package/dist/records/domains/monitor.d.ts +13 -0
- package/dist/records/domains/story.d.ts +14 -0
- package/dist/records/domains/story.js +1 -0
- package/dist/records/validate/assert-guard.js +405 -38
- package/dist/records/validate/assert.js +409 -38
- package/dist/records/validate/is.js +29 -7
- package/dist/records/validate/schemas.js +307 -11
- package/dist/records/validate/stringify.js +34 -10
- package/dist/records/validate/utils.js +1 -1
- package/dist/records/validate/validate-equals.js +634 -44
- package/dist/records/validate/validate.js +398 -38
- package/dist/rpc.d.ts +1 -1
- package/dist/rpc.js +3 -3
- package/package.json +2 -2
|
@@ -125,6 +125,14 @@ export interface Settings {
|
|
|
125
125
|
rundown?: {
|
|
126
126
|
eventThumbnails?: boolean;
|
|
127
127
|
scriptEventFolding: "folded" | "unfoldedUntilFolded";
|
|
128
|
+
stickyHeaders?: boolean;
|
|
129
|
+
triggersColumn?: "triggers" | "title";
|
|
130
|
+
density?: "normal" | "compact" | "spacious";
|
|
131
|
+
showEvents?: boolean;
|
|
132
|
+
showTriggers?: boolean;
|
|
133
|
+
showReferenceDuration?: boolean;
|
|
134
|
+
showSettingsColumn?: boolean;
|
|
135
|
+
thumbnailColumnWidth?: number;
|
|
128
136
|
};
|
|
129
137
|
gallery?: {
|
|
130
138
|
dimOnBlur?: boolean;
|
|
@@ -353,6 +361,7 @@ export interface Settings {
|
|
|
353
361
|
multiplexWebSockets?: boolean;
|
|
354
362
|
systemHealth?: boolean;
|
|
355
363
|
systemHealthIgnore?: boolean;
|
|
364
|
+
systemHealthDebugLevel?: boolean;
|
|
356
365
|
};
|
|
357
366
|
notifications?: {
|
|
358
367
|
events?: {
|
package/dist/nxtpression.d.ts
CHANGED
|
@@ -674,7 +674,7 @@ declare interface DeviceDomainStatusRecord {
|
|
|
674
674
|
version?: string;
|
|
675
675
|
}
|
|
676
676
|
|
|
677
|
-
declare interface DomainRecords extends AssetDomainRecords, AuthDomainRecords, BundleDomainRecords, CalendarEventDomainRecords, CloneDomainRecords, CommentReactionDomainRecords, CommentReadMarkDomainRecords, CommentDomainRecords, ConditionDomainRecords, ConnectionDomainRecords, ContactDomainRecords, DeepstreamDomainRecords, DesignDomainRecords, DeviceDomainRecords, EditDomainRecords, EventDomainRecords, FileDomainRecords, FolderDomainRecords, GalleryDomainRecords, GeneralDomainRecords, HarvestDomainRecords, IngestclipDomainRecords, IngestScheduleDomainRecords, MediaDomainRecords, MonitorDomainRecords, NoteDomainRecords, PanelDomainRecords, PermissionDomainRecords, PipelinePresetDomainRecords, PipelineDomainRecords, PlanningDomainRecords, PrompterDomainRecords, PublishDomainRecords, PublishedDomainRecords, RenderPresetDomainRecords, RenderDomainRecords, RevsDomainRecords, RoleDomainRecords, SchemaDomainRecords, ScriptDomainRecords, SearchDomainRecords, SettingsDomainRecords, ShotboxDomainRecords, StorageDomainRecords, StoryboardDomainRecords, StreamDomainRecords, SubtitleStyleDomainRecords, SubtitleDomainRecords, TemplateDomainRecords, UserNotificationStatusDomainRecords, UserNotificationDomainRecords, UserDomainRecords, UsernameDomainRecords {
|
|
677
|
+
declare interface DomainRecords extends AssetDomainRecords, AuthDomainRecords, BundleDomainRecords, CalendarEventDomainRecords, CloneDomainRecords, CommentReactionDomainRecords, CommentReadMarkDomainRecords, CommentDomainRecords, ConditionDomainRecords, ConnectionDomainRecords, ContactDomainRecords, DeepstreamDomainRecords, DesignDomainRecords, DeviceDomainRecords, EditDomainRecords, EventDomainRecords, FileDomainRecords, FolderDomainRecords, GalleryDomainRecords, GeneralDomainRecords, HarvestDomainRecords, IngestclipDomainRecords, IngestScheduleDomainRecords, MediaDomainRecords, MonitorDomainRecords, NoteDomainRecords, PanelDomainRecords, PermissionDomainRecords, PipelinePresetDomainRecords, PipelineDomainRecords, PlanningDomainRecords, PrompterDomainRecords, PublishDomainRecords, PublishedDomainRecords, RenderPresetDomainRecords, RenderDomainRecords, RevsDomainRecords, RoleDomainRecords, SchemaDomainRecords, ScriptDomainRecords, SearchDomainRecords, SettingsDomainRecords, ShotboxDomainRecords, StorageDomainRecords, StoryDomainRecords, StoryboardDomainRecords, StreamDomainRecords, SubtitleStyleDomainRecords, SubtitleDomainRecords, TemplateDomainRecords, UserNotificationStatusDomainRecords, UserNotificationDomainRecords, UserDomainRecords, UsernameDomainRecords {
|
|
678
678
|
}
|
|
679
679
|
|
|
680
680
|
declare type Dynamic = false | string[];
|
|
@@ -798,6 +798,8 @@ declare interface EventDomainRecords {
|
|
|
798
798
|
":event.children?": EventChildrenRecord;
|
|
799
799
|
":event.props?": EventPropsRecord;
|
|
800
800
|
":event.stats?": EventStatsRecord;
|
|
801
|
+
":event.status?": EventStatusRecord;
|
|
802
|
+
":event.schedule?": EventScheduleRecord;
|
|
801
803
|
":event.readDuration?": EventReadDurationRecord;
|
|
802
804
|
":event.readRate?": EventReadRateRecord;
|
|
803
805
|
}
|
|
@@ -857,10 +859,32 @@ declare interface EventRecord {
|
|
|
857
859
|
styleOverrides?: SubtitleEventStyleOverrides;
|
|
858
860
|
}
|
|
859
861
|
|
|
862
|
+
declare interface EventScheduleRecord {
|
|
863
|
+
startTime?: number;
|
|
864
|
+
transition?: boolean;
|
|
865
|
+
transitionTime?: number;
|
|
866
|
+
transitionDuration?: number;
|
|
867
|
+
endTime?: number;
|
|
868
|
+
}
|
|
869
|
+
|
|
860
870
|
declare interface EventStatsRecord {
|
|
861
871
|
type?: string;
|
|
862
872
|
}
|
|
863
873
|
|
|
874
|
+
declare interface EventStatusRecord {
|
|
875
|
+
messages?: Array<{
|
|
876
|
+
id: string;
|
|
877
|
+
msg: string;
|
|
878
|
+
level: number;
|
|
879
|
+
code?: string;
|
|
880
|
+
expose?: boolean | null;
|
|
881
|
+
index?: number | null;
|
|
882
|
+
data?: {
|
|
883
|
+
progress?: number | null;
|
|
884
|
+
};
|
|
885
|
+
}>;
|
|
886
|
+
}
|
|
887
|
+
|
|
864
888
|
declare interface EventTemplateRecord {
|
|
865
889
|
mixin?: string[];
|
|
866
890
|
properties?: Record<string, TemplateProperty>;
|
|
@@ -1787,6 +1811,7 @@ declare interface MediaDomainConsolidateRecordProvided {
|
|
|
1787
1811
|
|
|
1788
1812
|
declare interface MediaDomainRecords {
|
|
1789
1813
|
":media.source": MediaSourceRecord;
|
|
1814
|
+
":media.placeholder": MediaPlaceholderRecord;
|
|
1790
1815
|
":media.consolidate": MediaDomainConsolidateRecord;
|
|
1791
1816
|
":media.consolidate?": MediaDomainConsolidateRecordProvided;
|
|
1792
1817
|
":media.renders?": MediaRendersRecord;
|
|
@@ -1820,6 +1845,10 @@ declare interface MediaFonts {
|
|
|
1820
1845
|
fontFamilyNames?: Array<FontFace["family"]>;
|
|
1821
1846
|
}
|
|
1822
1847
|
|
|
1848
|
+
declare interface MediaPlaceholderRecord {
|
|
1849
|
+
asset: string;
|
|
1850
|
+
}
|
|
1851
|
+
|
|
1823
1852
|
declare interface MediaProbeRecord {
|
|
1824
1853
|
duration?: number | null;
|
|
1825
1854
|
error: NxtError | null;
|
|
@@ -1990,6 +2019,20 @@ declare interface MonitorStatsBuddyInfo {
|
|
|
1990
2019
|
timestamp: number;
|
|
1991
2020
|
}
|
|
1992
2021
|
|
|
2022
|
+
declare interface MonitorStatsHostBridge {
|
|
2023
|
+
types: Record<string, string>;
|
|
2024
|
+
messages: MonitorStatsHostBridgeMessage[];
|
|
2025
|
+
timestamp: number;
|
|
2026
|
+
}
|
|
2027
|
+
|
|
2028
|
+
declare interface MonitorStatsHostBridgeMessage {
|
|
2029
|
+
type: string;
|
|
2030
|
+
id: string;
|
|
2031
|
+
level: number;
|
|
2032
|
+
title: string;
|
|
2033
|
+
msg: string;
|
|
2034
|
+
}
|
|
2035
|
+
|
|
1993
2036
|
declare interface MonitorStatsMemInfo {
|
|
1994
2037
|
[key: string]: string | number | boolean | null;
|
|
1995
2038
|
}
|
|
@@ -2069,6 +2112,7 @@ declare interface MonitorStatsRecord {
|
|
|
2069
2112
|
available: number;
|
|
2070
2113
|
timestamp: number;
|
|
2071
2114
|
};
|
|
2115
|
+
hostBridge: MonitorStatsHostBridge;
|
|
2072
2116
|
}
|
|
2073
2117
|
|
|
2074
2118
|
declare interface MoveOperation {
|
|
@@ -3713,6 +3757,14 @@ declare interface Settings {
|
|
|
3713
3757
|
rundown?: {
|
|
3714
3758
|
eventThumbnails?: boolean;
|
|
3715
3759
|
scriptEventFolding: "folded" | "unfoldedUntilFolded";
|
|
3760
|
+
stickyHeaders?: boolean;
|
|
3761
|
+
triggersColumn?: "triggers" | "title";
|
|
3762
|
+
density?: "normal" | "compact" | "spacious";
|
|
3763
|
+
showEvents?: boolean;
|
|
3764
|
+
showTriggers?: boolean;
|
|
3765
|
+
showReferenceDuration?: boolean;
|
|
3766
|
+
showSettingsColumn?: boolean;
|
|
3767
|
+
thumbnailColumnWidth?: number;
|
|
3716
3768
|
};
|
|
3717
3769
|
gallery?: {
|
|
3718
3770
|
dimOnBlur?: boolean;
|
|
@@ -3941,6 +3993,7 @@ declare interface Settings {
|
|
|
3941
3993
|
multiplexWebSockets?: boolean;
|
|
3942
3994
|
systemHealth?: boolean;
|
|
3943
3995
|
systemHealthIgnore?: boolean;
|
|
3996
|
+
systemHealthDebugLevel?: boolean;
|
|
3944
3997
|
};
|
|
3945
3998
|
notifications?: {
|
|
3946
3999
|
events?: {
|
|
@@ -4242,6 +4295,23 @@ declare interface StoryboardDomainRecords {
|
|
|
4242
4295
|
":storyboard.ancestors?": StoryboardAncestorsRecord;
|
|
4243
4296
|
}
|
|
4244
4297
|
|
|
4298
|
+
declare interface StoryDomainEditorRecord {
|
|
4299
|
+
value?: {
|
|
4300
|
+
object?: string;
|
|
4301
|
+
document?: StoryDomainEditorRecordNode;
|
|
4302
|
+
};
|
|
4303
|
+
}
|
|
4304
|
+
|
|
4305
|
+
declare interface StoryDomainEditorRecordNode {
|
|
4306
|
+
type?: string;
|
|
4307
|
+
data?: Record<string, unknown>;
|
|
4308
|
+
nodes?: StoryDomainEditorRecordNode[];
|
|
4309
|
+
}
|
|
4310
|
+
|
|
4311
|
+
declare interface StoryDomainRecords {
|
|
4312
|
+
":story.editor": StoryDomainEditorRecord;
|
|
4313
|
+
}
|
|
4314
|
+
|
|
4245
4315
|
declare interface StreamDomainIngestRecord {
|
|
4246
4316
|
server?: string;
|
|
4247
4317
|
enabled?: boolean;
|
|
@@ -12,6 +12,8 @@ export interface EventDomainRecords {
|
|
|
12
12
|
":event.children?": EventChildrenRecord;
|
|
13
13
|
":event.props?": EventPropsRecord;
|
|
14
14
|
":event.stats?": EventStatsRecord;
|
|
15
|
+
":event.status?": EventStatusRecord;
|
|
16
|
+
":event.schedule?": EventScheduleRecord;
|
|
15
17
|
":event.readDuration?": EventReadDurationRecord;
|
|
16
18
|
":event.readRate?": EventReadRateRecord;
|
|
17
19
|
}
|
|
@@ -54,6 +56,19 @@ export type EventPropsRecord = EventProps & Record<Exclude<string, keyof EventPr
|
|
|
54
56
|
export interface EventStatsRecord {
|
|
55
57
|
type?: string;
|
|
56
58
|
}
|
|
59
|
+
export interface EventStatusRecord {
|
|
60
|
+
messages?: Array<{
|
|
61
|
+
id: string;
|
|
62
|
+
msg: string;
|
|
63
|
+
level: number;
|
|
64
|
+
code?: string;
|
|
65
|
+
expose?: boolean | null;
|
|
66
|
+
index?: number | null;
|
|
67
|
+
data?: {
|
|
68
|
+
progress?: number | null;
|
|
69
|
+
};
|
|
70
|
+
}>;
|
|
71
|
+
}
|
|
57
72
|
export interface EventOverlayRecord {
|
|
58
73
|
[eventId: string]: {
|
|
59
74
|
data: EventPropsRecord;
|
|
@@ -87,4 +102,11 @@ export interface SubtitleEventStyleOverrides {
|
|
|
87
102
|
strikeOut?: string;
|
|
88
103
|
}
|
|
89
104
|
export type ReadType = "characters" | "words" | "wordsPerMinute";
|
|
105
|
+
export interface EventScheduleRecord {
|
|
106
|
+
startTime?: number;
|
|
107
|
+
transition?: boolean;
|
|
108
|
+
transitionTime?: number;
|
|
109
|
+
transitionDuration?: number;
|
|
110
|
+
endTime?: number;
|
|
111
|
+
}
|
|
90
112
|
export {};
|
|
@@ -42,6 +42,7 @@ import type { SearchDomainRecords } from './search.ts';
|
|
|
42
42
|
import type { SettingsDomainRecords } from './settings.ts';
|
|
43
43
|
import type { ShotboxDomainRecords } from './shotbox.ts';
|
|
44
44
|
import type { StorageDomainRecords } from './storage.ts';
|
|
45
|
+
import type { StoryDomainRecords } from './story.ts';
|
|
45
46
|
import type { StoryboardDomainRecords } from './storyboard.ts';
|
|
46
47
|
import type { StreamDomainRecords } from './stream.ts';
|
|
47
48
|
import type { SubtitleStyleDomainRecords } from './subtitle-style.ts';
|
|
@@ -95,6 +96,7 @@ export * from './search.ts';
|
|
|
95
96
|
export * from './settings.ts';
|
|
96
97
|
export * from './shotbox.ts';
|
|
97
98
|
export * from './storage.ts';
|
|
99
|
+
export * from './story.ts';
|
|
98
100
|
export * from './storyboard.ts';
|
|
99
101
|
export * from './stream.ts';
|
|
100
102
|
export * from './subtitle-style.ts';
|
|
@@ -104,5 +106,5 @@ export * from './user-notification-status.ts';
|
|
|
104
106
|
export * from './user-notification.ts';
|
|
105
107
|
export * from './user.ts';
|
|
106
108
|
export * from './username.ts';
|
|
107
|
-
export interface DomainRecords extends AssetDomainRecords, AuthDomainRecords, BundleDomainRecords, CalendarEventDomainRecords, CloneDomainRecords, CommentReactionDomainRecords, CommentReadMarkDomainRecords, CommentDomainRecords, ConditionDomainRecords, ConnectionDomainRecords, ContactDomainRecords, DeepstreamDomainRecords, DesignDomainRecords, DeviceDomainRecords, EditDomainRecords, EventDomainRecords, FileDomainRecords, FolderDomainRecords, GalleryDomainRecords, GeneralDomainRecords, HarvestDomainRecords, IngestclipDomainRecords, IngestScheduleDomainRecords, MediaDomainRecords, MonitorDomainRecords, NoteDomainRecords, PanelDomainRecords, PermissionDomainRecords, PipelinePresetDomainRecords, PipelineDomainRecords, PlanningDomainRecords, PrompterDomainRecords, PublishDomainRecords, PublishedDomainRecords, RenderPresetDomainRecords, RenderDomainRecords, RevsDomainRecords, RoleDomainRecords, SchemaDomainRecords, ScriptDomainRecords, SearchDomainRecords, SettingsDomainRecords, ShotboxDomainRecords, StorageDomainRecords, StoryboardDomainRecords, StreamDomainRecords, SubtitleStyleDomainRecords, SubtitleDomainRecords, TemplateDomainRecords, UserNotificationStatusDomainRecords, UserNotificationDomainRecords, UserDomainRecords, UsernameDomainRecords {
|
|
109
|
+
export interface DomainRecords extends AssetDomainRecords, AuthDomainRecords, BundleDomainRecords, CalendarEventDomainRecords, CloneDomainRecords, CommentReactionDomainRecords, CommentReadMarkDomainRecords, CommentDomainRecords, ConditionDomainRecords, ConnectionDomainRecords, ContactDomainRecords, DeepstreamDomainRecords, DesignDomainRecords, DeviceDomainRecords, EditDomainRecords, EventDomainRecords, FileDomainRecords, FolderDomainRecords, GalleryDomainRecords, GeneralDomainRecords, HarvestDomainRecords, IngestclipDomainRecords, IngestScheduleDomainRecords, MediaDomainRecords, MonitorDomainRecords, NoteDomainRecords, PanelDomainRecords, PermissionDomainRecords, PipelinePresetDomainRecords, PipelineDomainRecords, PlanningDomainRecords, PrompterDomainRecords, PublishDomainRecords, PublishedDomainRecords, RenderPresetDomainRecords, RenderDomainRecords, RevsDomainRecords, RoleDomainRecords, SchemaDomainRecords, ScriptDomainRecords, SearchDomainRecords, SettingsDomainRecords, ShotboxDomainRecords, StorageDomainRecords, StoryDomainRecords, StoryboardDomainRecords, StreamDomainRecords, SubtitleStyleDomainRecords, SubtitleDomainRecords, TemplateDomainRecords, UserNotificationStatusDomainRecords, UserNotificationDomainRecords, UserDomainRecords, UsernameDomainRecords {
|
|
108
110
|
}
|
|
@@ -42,6 +42,7 @@ export * from "./search.js";
|
|
|
42
42
|
export * from "./settings.js";
|
|
43
43
|
export * from "./shotbox.js";
|
|
44
44
|
export * from "./storage.js";
|
|
45
|
+
export * from "./story.js";
|
|
45
46
|
export * from "./storyboard.js";
|
|
46
47
|
export * from "./stream.js";
|
|
47
48
|
export * from "./subtitle-style.js";
|
|
@@ -2,6 +2,7 @@ import type { Operation } from 'rfc6902';
|
|
|
2
2
|
import type { NxtError, MediaType, RenderPreset, RenderSceneObject } from '../../common/index.ts';
|
|
3
3
|
export interface MediaDomainRecords {
|
|
4
4
|
":media.source": MediaSourceRecord;
|
|
5
|
+
":media.placeholder": MediaPlaceholderRecord;
|
|
5
6
|
":media.consolidate": MediaDomainConsolidateRecord;
|
|
6
7
|
":media.consolidate?": MediaDomainConsolidateRecordProvided;
|
|
7
8
|
":media.renders?": MediaRendersRecord;
|
|
@@ -14,6 +15,9 @@ export interface MediaDomainRecords {
|
|
|
14
15
|
":media.revisions": MediaDomainRevisionsRecord;
|
|
15
16
|
}
|
|
16
17
|
export type MediaSourceRecord = RenderSceneObject;
|
|
18
|
+
export interface MediaPlaceholderRecord {
|
|
19
|
+
asset: string;
|
|
20
|
+
}
|
|
17
21
|
export interface MediaDomainConsolidateRecord {
|
|
18
22
|
source?: unknown;
|
|
19
23
|
target?: unknown;
|
|
@@ -12,6 +12,19 @@ export interface MonitorStatsRecord {
|
|
|
12
12
|
available: number;
|
|
13
13
|
timestamp: number;
|
|
14
14
|
};
|
|
15
|
+
hostBridge: MonitorStatsHostBridge;
|
|
16
|
+
}
|
|
17
|
+
export interface MonitorStatsHostBridgeMessage {
|
|
18
|
+
type: string;
|
|
19
|
+
id: string;
|
|
20
|
+
level: number;
|
|
21
|
+
title: string;
|
|
22
|
+
msg: string;
|
|
23
|
+
}
|
|
24
|
+
export interface MonitorStatsHostBridge {
|
|
25
|
+
types: Record<string, string>;
|
|
26
|
+
messages: MonitorStatsHostBridgeMessage[];
|
|
27
|
+
timestamp: number;
|
|
15
28
|
}
|
|
16
29
|
export interface MonitorStatsProcInfoCpu {
|
|
17
30
|
[key: string]: string | number | boolean | null;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface StoryDomainRecords {
|
|
2
|
+
":story.editor": StoryDomainEditorRecord;
|
|
3
|
+
}
|
|
4
|
+
export interface StoryDomainEditorRecord {
|
|
5
|
+
value?: {
|
|
6
|
+
object?: string;
|
|
7
|
+
document?: StoryDomainEditorRecordNode;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export interface StoryDomainEditorRecordNode {
|
|
11
|
+
type?: string;
|
|
12
|
+
data?: Record<string, unknown>;
|
|
13
|
+
nodes?: StoryDomainEditorRecordNode[];
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|