@nxtedition/types 23.0.61 → 23.0.62
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/index.d.ts +1 -0
- package/dist/common/index.js +1 -0
- package/dist/common/settings.d.ts +10 -0
- package/dist/common/subtitle.d.ts +4 -0
- package/dist/common/subtitle.js +1 -0
- package/dist/nxtpression.d.ts +69 -2
- package/dist/records/domains/asset.d.ts +1 -1
- package/dist/records/domains/folder.d.ts +6 -0
- package/dist/records/domains/folder.js +1 -0
- package/dist/records/domains/index.d.ts +3 -1
- package/dist/records/domains/index.js +1 -0
- package/dist/records/domains/settings.d.ts +5 -0
- package/dist/records/exact/media.d.ts +40 -1
- package/dist/records/validate/assert-guard.js +911 -219
- package/dist/records/validate/assert.js +914 -219
- package/dist/records/validate/is.js +50 -7
- package/dist/records/validate/schemas.js +505 -2
- package/dist/records/validate/stringify.js +183 -11
- package/dist/records/validate/utils.js +2 -2
- package/dist/records/validate/validate-equals.js +1320 -246
- package/dist/records/validate/validate.js +806 -192
- package/dist/rpc.d.ts +3 -2
- package/package.json +1 -1
package/dist/common/index.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ export * from './schema-property.ts';
|
|
|
19
19
|
export * from './search.ts';
|
|
20
20
|
export * from './settings.ts';
|
|
21
21
|
export * from './subtitle-style.ts';
|
|
22
|
+
export * from './subtitle.ts';
|
|
22
23
|
export * from './error.ts';
|
|
23
24
|
export * from './user-notification.ts';
|
|
24
25
|
export interface Message {
|
package/dist/common/index.js
CHANGED
|
@@ -106,6 +106,7 @@ export interface Settings {
|
|
|
106
106
|
};
|
|
107
107
|
rundown?: {
|
|
108
108
|
eventThumbnails?: boolean;
|
|
109
|
+
scriptEventFolding: "folded" | "unfoldedUntilFolded";
|
|
109
110
|
};
|
|
110
111
|
gallery?: {
|
|
111
112
|
dimOnBlur?: boolean;
|
|
@@ -220,6 +221,15 @@ export interface Settings {
|
|
|
220
221
|
};
|
|
221
222
|
edit?: {
|
|
222
223
|
thumbnailView?: "filmStrip" | "thumbnail" | "none";
|
|
224
|
+
normalize?: {
|
|
225
|
+
presets?: Array<{
|
|
226
|
+
id: string;
|
|
227
|
+
title: string;
|
|
228
|
+
i: number;
|
|
229
|
+
tp: number;
|
|
230
|
+
}>;
|
|
231
|
+
defaultPresetId?: string;
|
|
232
|
+
};
|
|
223
233
|
voiceOver?: {
|
|
224
234
|
inputDevice?: string;
|
|
225
235
|
inputGainDb?: number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/nxtpression.d.ts
CHANGED
|
@@ -357,7 +357,7 @@ declare interface AssetTagsRecord {
|
|
|
357
357
|
}
|
|
358
358
|
|
|
359
359
|
declare interface AssetTitleProvidedRecord {
|
|
360
|
-
value?: string;
|
|
360
|
+
value?: string | null;
|
|
361
361
|
}
|
|
362
362
|
|
|
363
363
|
declare interface AssetTitleRecord {
|
|
@@ -637,7 +637,7 @@ declare interface DeviceDomainStatusRecord {
|
|
|
637
637
|
version?: string;
|
|
638
638
|
}
|
|
639
639
|
|
|
640
|
-
declare interface DomainRecords extends AssetDomainRecords, AuthDomainRecords, BundleDomainRecords, CalendarEventDomainRecords, CloneDomainRecords, CommentReactionDomainRecords, CommentReadMarkDomainRecords, CommentDomainRecords, ConditionDomainRecords, ConnectionDomainRecords, ContactDomainRecords, DeepstreamDomainRecords, DesignDomainRecords, DeviceDomainRecords, EditDomainRecords, EventDomainRecords, FileDomainRecords, GeneralDomainRecords, HarvestDomainRecords, IngestclipDomainRecords, IngestScheduleDomainRecords, MediaDomainRecords, MonitorDomainRecords, NoteDomainRecords, PanelDomainRecords, PermissionDomainRecords, PipelinePresetDomainRecords, PipelineDomainRecords, PlanningDomainRecords, PrompterDomainRecords, PublishDomainRecords, PublishedDomainRecords, RenderPresetDomainRecords, RenderDomainRecords, RevsDomainRecords, RoleDomainRecords, ScriptDomainRecords, SearchDomainRecords, SettingsDomainRecords, ShotboxDomainRecords, StoryboardDomainRecords, SubtitleStyleDomainRecords, SubtitleDomainRecords, TemplateDomainRecords, UserNotificationStatusDomainRecords, UserNotificationDomainRecords, UserDomainRecords, UsernameDomainRecords {
|
|
640
|
+
declare interface DomainRecords extends AssetDomainRecords, AuthDomainRecords, BundleDomainRecords, CalendarEventDomainRecords, CloneDomainRecords, CommentReactionDomainRecords, CommentReadMarkDomainRecords, CommentDomainRecords, ConditionDomainRecords, ConnectionDomainRecords, ContactDomainRecords, DeepstreamDomainRecords, DesignDomainRecords, DeviceDomainRecords, EditDomainRecords, EventDomainRecords, FileDomainRecords, FolderDomainRecords, GeneralDomainRecords, HarvestDomainRecords, IngestclipDomainRecords, IngestScheduleDomainRecords, MediaDomainRecords, MonitorDomainRecords, NoteDomainRecords, PanelDomainRecords, PermissionDomainRecords, PipelinePresetDomainRecords, PipelineDomainRecords, PlanningDomainRecords, PrompterDomainRecords, PublishDomainRecords, PublishedDomainRecords, RenderPresetDomainRecords, RenderDomainRecords, RevsDomainRecords, RoleDomainRecords, ScriptDomainRecords, SearchDomainRecords, SettingsDomainRecords, ShotboxDomainRecords, StoryboardDomainRecords, SubtitleStyleDomainRecords, SubtitleDomainRecords, TemplateDomainRecords, UserNotificationStatusDomainRecords, UserNotificationDomainRecords, UserDomainRecords, UsernameDomainRecords {
|
|
641
641
|
}
|
|
642
642
|
|
|
643
643
|
declare type Dynamic = false | string[];
|
|
@@ -1094,6 +1094,14 @@ declare interface FileStats extends File_2 {
|
|
|
1094
1094
|
complete: boolean;
|
|
1095
1095
|
}
|
|
1096
1096
|
|
|
1097
|
+
declare interface FolderDomainRecords {
|
|
1098
|
+
":folder.items": FolderItemsDomainRecord;
|
|
1099
|
+
}
|
|
1100
|
+
|
|
1101
|
+
declare interface FolderItemsDomainRecord {
|
|
1102
|
+
value: string[];
|
|
1103
|
+
}
|
|
1104
|
+
|
|
1097
1105
|
declare interface FontFace_2 {
|
|
1098
1106
|
name: string;
|
|
1099
1107
|
family: string;
|
|
@@ -1617,6 +1625,7 @@ declare interface MediaProbeRecord {
|
|
|
1617
1625
|
declare interface MediaRecords {
|
|
1618
1626
|
"media.subtitles": MediaSubtitlesRecord;
|
|
1619
1627
|
"media.subtitles?": MediaSubtitlesProvidedRecord;
|
|
1628
|
+
"media.transcribe": MediaTranscribeRecord;
|
|
1620
1629
|
"media.transcribe?": MediaTranscribeProvidedRecord;
|
|
1621
1630
|
"media.fonts?": MediaFonts;
|
|
1622
1631
|
"media.consolidate": MediaConsolidateRecord;
|
|
@@ -1662,6 +1671,16 @@ declare interface MediaTranscribeProvidedRecord {
|
|
|
1662
1671
|
translate?: {
|
|
1663
1672
|
languages: Record<string, string>;
|
|
1664
1673
|
};
|
|
1674
|
+
replacers?: Record<string, TranscribeReplacer | TranscribeReplacer[]>;
|
|
1675
|
+
}
|
|
1676
|
+
|
|
1677
|
+
declare interface MediaTranscribeRecord {
|
|
1678
|
+
engines: Record<string, string>;
|
|
1679
|
+
languages: Record<string, string>;
|
|
1680
|
+
translate?: {
|
|
1681
|
+
languages: Record<string, string>;
|
|
1682
|
+
};
|
|
1683
|
+
replacers?: Record<string, TranscribeReplacer | TranscribeReplacer[]>;
|
|
1665
1684
|
}
|
|
1666
1685
|
|
|
1667
1686
|
declare type MediaTranscriptChangesRecord = {
|
|
@@ -3046,6 +3065,7 @@ declare interface Settings {
|
|
|
3046
3065
|
};
|
|
3047
3066
|
rundown?: {
|
|
3048
3067
|
eventThumbnails?: boolean;
|
|
3068
|
+
scriptEventFolding: "folded" | "unfoldedUntilFolded";
|
|
3049
3069
|
};
|
|
3050
3070
|
gallery?: {
|
|
3051
3071
|
dimOnBlur?: boolean;
|
|
@@ -3160,6 +3180,15 @@ declare interface Settings {
|
|
|
3160
3180
|
};
|
|
3161
3181
|
edit?: {
|
|
3162
3182
|
thumbnailView?: "filmStrip" | "thumbnail" | "none";
|
|
3183
|
+
normalize?: {
|
|
3184
|
+
presets?: Array<{
|
|
3185
|
+
id: string;
|
|
3186
|
+
title: string;
|
|
3187
|
+
i: number;
|
|
3188
|
+
tp: number;
|
|
3189
|
+
}>;
|
|
3190
|
+
defaultPresetId?: string;
|
|
3191
|
+
};
|
|
3163
3192
|
voiceOver?: {
|
|
3164
3193
|
inputDevice?: string;
|
|
3165
3194
|
inputGainDb?: number;
|
|
@@ -3279,8 +3308,14 @@ declare interface Settings {
|
|
|
3279
3308
|
|
|
3280
3309
|
declare interface SettingsDomainRecords {
|
|
3281
3310
|
":settings": SettingsRecord;
|
|
3311
|
+
":settings.node": SettingsNodeRecord;
|
|
3282
3312
|
}
|
|
3283
3313
|
|
|
3314
|
+
declare type SettingsNodeRecord = Record<string, {
|
|
3315
|
+
collapsed: boolean;
|
|
3316
|
+
hidden: boolean;
|
|
3317
|
+
}>;
|
|
3318
|
+
|
|
3284
3319
|
declare interface SettingsPanelStoreTab extends ModuleTabsSettingsValue {
|
|
3285
3320
|
activeSectionIndex?: number;
|
|
3286
3321
|
}
|
|
@@ -3790,6 +3825,38 @@ declare interface TextNodeContent {
|
|
|
3790
3825
|
format?: number;
|
|
3791
3826
|
}
|
|
3792
3827
|
|
|
3828
|
+
declare interface TranscribeForEachWordReplacer {
|
|
3829
|
+
type: "items";
|
|
3830
|
+
items: string[];
|
|
3831
|
+
_comment?: string;
|
|
3832
|
+
replacers: Array<{
|
|
3833
|
+
/** Expression that should return RegExp or string arg to new RegExp */
|
|
3834
|
+
pattern: Nxtpression<unknown, {
|
|
3835
|
+
item: string;
|
|
3836
|
+
}>;
|
|
3837
|
+
replacement: Nxtpression<string | ((...args: unknown[]) => string), {
|
|
3838
|
+
item: string;
|
|
3839
|
+
}>;
|
|
3840
|
+
flags?: string;
|
|
3841
|
+
_comment?: string;
|
|
3842
|
+
}>;
|
|
3843
|
+
}
|
|
3844
|
+
|
|
3845
|
+
declare type TranscribeReplacer = TranscribeReplaceReplacer | TranscribeForEachWordReplacer;
|
|
3846
|
+
|
|
3847
|
+
declare interface TranscribeReplaceReplacer {
|
|
3848
|
+
type?: "replace";
|
|
3849
|
+
/** Expression that should return RegExp or string arg to new RegExp */
|
|
3850
|
+
pattern: Nxtpression<unknown, {
|
|
3851
|
+
item: string;
|
|
3852
|
+
}>;
|
|
3853
|
+
replacement: Nxtpression<string | ((...args: unknown[]) => string), {
|
|
3854
|
+
item: string;
|
|
3855
|
+
}>;
|
|
3856
|
+
flags?: string;
|
|
3857
|
+
_comment?: string;
|
|
3858
|
+
}
|
|
3859
|
+
|
|
3793
3860
|
/**
|
|
3794
3861
|
* Type tag for specifying numeric bit-width representations.
|
|
3795
3862
|
*
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -15,6 +15,7 @@ import type { DeviceDomainRecords } from './device.ts';
|
|
|
15
15
|
import type { EditDomainRecords } from './edit.ts';
|
|
16
16
|
import type { EventDomainRecords } from './event.ts';
|
|
17
17
|
import type { FileDomainRecords } from './file.ts';
|
|
18
|
+
import type { FolderDomainRecords } from './folder.ts';
|
|
18
19
|
import type { GeneralDomainRecords } from './general.ts';
|
|
19
20
|
import type { HarvestDomainRecords } from './harvest.ts';
|
|
20
21
|
import type { IngestclipDomainRecords } from './ingestclip.ts';
|
|
@@ -63,6 +64,7 @@ export * from './device.ts';
|
|
|
63
64
|
export * from './edit.ts';
|
|
64
65
|
export * from './event.ts';
|
|
65
66
|
export * from './file.ts';
|
|
67
|
+
export * from './folder.ts';
|
|
66
68
|
export * from './general.ts';
|
|
67
69
|
export * from './harvest.ts';
|
|
68
70
|
export * from './ingestclip.ts';
|
|
@@ -94,5 +96,5 @@ export * from './user-notification-status.ts';
|
|
|
94
96
|
export * from './user-notification.ts';
|
|
95
97
|
export * from './user.ts';
|
|
96
98
|
export * from './username.ts';
|
|
97
|
-
export interface DomainRecords extends AssetDomainRecords, AuthDomainRecords, BundleDomainRecords, CalendarEventDomainRecords, CloneDomainRecords, CommentReactionDomainRecords, CommentReadMarkDomainRecords, CommentDomainRecords, ConditionDomainRecords, ConnectionDomainRecords, ContactDomainRecords, DeepstreamDomainRecords, DesignDomainRecords, DeviceDomainRecords, EditDomainRecords, EventDomainRecords, FileDomainRecords, GeneralDomainRecords, HarvestDomainRecords, IngestclipDomainRecords, IngestScheduleDomainRecords, MediaDomainRecords, MonitorDomainRecords, NoteDomainRecords, PanelDomainRecords, PermissionDomainRecords, PipelinePresetDomainRecords, PipelineDomainRecords, PlanningDomainRecords, PrompterDomainRecords, PublishDomainRecords, PublishedDomainRecords, RenderPresetDomainRecords, RenderDomainRecords, RevsDomainRecords, RoleDomainRecords, ScriptDomainRecords, SearchDomainRecords, SettingsDomainRecords, ShotboxDomainRecords, StoryboardDomainRecords, SubtitleStyleDomainRecords, SubtitleDomainRecords, TemplateDomainRecords, UserNotificationStatusDomainRecords, UserNotificationDomainRecords, UserDomainRecords, UsernameDomainRecords {
|
|
99
|
+
export interface DomainRecords extends AssetDomainRecords, AuthDomainRecords, BundleDomainRecords, CalendarEventDomainRecords, CloneDomainRecords, CommentReactionDomainRecords, CommentReadMarkDomainRecords, CommentDomainRecords, ConditionDomainRecords, ConnectionDomainRecords, ContactDomainRecords, DeepstreamDomainRecords, DesignDomainRecords, DeviceDomainRecords, EditDomainRecords, EventDomainRecords, FileDomainRecords, FolderDomainRecords, GeneralDomainRecords, HarvestDomainRecords, IngestclipDomainRecords, IngestScheduleDomainRecords, MediaDomainRecords, MonitorDomainRecords, NoteDomainRecords, PanelDomainRecords, PermissionDomainRecords, PipelinePresetDomainRecords, PipelineDomainRecords, PlanningDomainRecords, PrompterDomainRecords, PublishDomainRecords, PublishedDomainRecords, RenderPresetDomainRecords, RenderDomainRecords, RevsDomainRecords, RoleDomainRecords, ScriptDomainRecords, SearchDomainRecords, SettingsDomainRecords, ShotboxDomainRecords, StoryboardDomainRecords, SubtitleStyleDomainRecords, SubtitleDomainRecords, TemplateDomainRecords, UserNotificationStatusDomainRecords, UserNotificationDomainRecords, UserDomainRecords, UsernameDomainRecords {
|
|
98
100
|
}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import type { Settings } from '../../common/index.ts';
|
|
2
2
|
export interface SettingsDomainRecords {
|
|
3
3
|
":settings": SettingsRecord;
|
|
4
|
+
":settings.node": SettingsNodeRecord;
|
|
4
5
|
}
|
|
5
6
|
export type SettingsRecord = Settings;
|
|
7
|
+
export type SettingsNodeRecord = Record<string, {
|
|
8
|
+
collapsed: boolean;
|
|
9
|
+
hidden: boolean;
|
|
10
|
+
}>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import type { MediaType, RenderPreset } from '../../common/index.ts';
|
|
1
|
+
import type { MediaType, Nxtpression, RenderPreset } from '../../common/index.ts';
|
|
2
2
|
export interface MediaRecords {
|
|
3
3
|
"media.subtitles": MediaSubtitlesRecord;
|
|
4
4
|
"media.subtitles?": MediaSubtitlesProvidedRecord;
|
|
5
|
+
"media.transcribe": MediaTranscribeRecord;
|
|
5
6
|
"media.transcribe?": MediaTranscribeProvidedRecord;
|
|
6
7
|
"media.fonts?": MediaFonts;
|
|
7
8
|
"media.consolidate": MediaConsolidateRecord;
|
|
@@ -14,12 +15,50 @@ export interface MediaSubtitlesProvidedRecord {
|
|
|
14
15
|
languages?: Record<string, string>;
|
|
15
16
|
fontFaces?: SubtitleFontFace[];
|
|
16
17
|
}
|
|
18
|
+
export interface MediaTranscribeRecord {
|
|
19
|
+
engines: Record<string, string>;
|
|
20
|
+
languages: Record<string, string>;
|
|
21
|
+
translate?: {
|
|
22
|
+
languages: Record<string, string>;
|
|
23
|
+
};
|
|
24
|
+
replacers?: Record<string, TranscribeReplacer | TranscribeReplacer[]>;
|
|
25
|
+
}
|
|
17
26
|
export interface MediaTranscribeProvidedRecord {
|
|
18
27
|
engines: Record<string, string>;
|
|
19
28
|
languages: Record<string, string>;
|
|
20
29
|
translate?: {
|
|
21
30
|
languages: Record<string, string>;
|
|
22
31
|
};
|
|
32
|
+
replacers?: Record<string, TranscribeReplacer | TranscribeReplacer[]>;
|
|
33
|
+
}
|
|
34
|
+
export type TranscribeReplacer = TranscribeReplaceReplacer | TranscribeForEachWordReplacer;
|
|
35
|
+
export interface TranscribeReplaceReplacer {
|
|
36
|
+
type?: "replace";
|
|
37
|
+
/** Expression that should return RegExp or string arg to new RegExp */
|
|
38
|
+
pattern: Nxtpression<unknown, {
|
|
39
|
+
item: string;
|
|
40
|
+
}>;
|
|
41
|
+
replacement: Nxtpression<string | ((...args: unknown[]) => string), {
|
|
42
|
+
item: string;
|
|
43
|
+
}>;
|
|
44
|
+
flags?: string;
|
|
45
|
+
_comment?: string;
|
|
46
|
+
}
|
|
47
|
+
export interface TranscribeForEachWordReplacer {
|
|
48
|
+
type: "items";
|
|
49
|
+
items: string[];
|
|
50
|
+
_comment?: string;
|
|
51
|
+
replacers: Array<{
|
|
52
|
+
/** Expression that should return RegExp or string arg to new RegExp */
|
|
53
|
+
pattern: Nxtpression<unknown, {
|
|
54
|
+
item: string;
|
|
55
|
+
}>;
|
|
56
|
+
replacement: Nxtpression<string | ((...args: unknown[]) => string), {
|
|
57
|
+
item: string;
|
|
58
|
+
}>;
|
|
59
|
+
flags?: string;
|
|
60
|
+
_comment?: string;
|
|
61
|
+
}>;
|
|
23
62
|
}
|
|
24
63
|
export interface MediaConsolidateRecord {
|
|
25
64
|
presets?: {
|