@nxtedition/types 23.1.8 → 23.1.9

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.
@@ -196,6 +196,7 @@ export interface Settings {
196
196
  defaultExitOption?: "update" | "leave" | "none";
197
197
  };
198
198
  transcribe?: {
199
+ showSpeakers?: boolean;
199
200
  subtitleDisclaimer?: {
200
201
  isUserConfigurable?: boolean;
201
202
  defaultValue?: {
@@ -863,7 +863,7 @@ declare interface EventStatsRecord {
863
863
 
864
864
  declare interface EventTemplateRecord {
865
865
  mixin?: string[];
866
- properties?: object;
866
+ properties?: Record<string, TemplateProperty>;
867
867
  layout?: {
868
868
  title?: string;
869
869
  };
@@ -1900,6 +1900,14 @@ declare type MediaTranscriptChangesRecord = {
1900
1900
 
1901
1901
  declare interface MediaTranscriptChangesRecordValue {
1902
1902
  patch?: Operation[];
1903
+ /** Labels for speakers */
1904
+ speakerLabels?: {
1905
+ [speakerId: string]: string;
1906
+ };
1907
+ /** Override speaker IDs for specific paragraphs */
1908
+ speakerRemaps?: {
1909
+ [paragraphId: string]: string;
1910
+ };
1903
1911
  }
1904
1912
 
1905
1913
  declare type MediaType = "audio" | "video" | "image";
@@ -3776,6 +3784,7 @@ declare interface Settings {
3776
3784
  defaultExitOption?: "update" | "leave" | "none";
3777
3785
  };
3778
3786
  transcribe?: {
3787
+ showSpeakers?: boolean;
3779
3788
  subtitleDisclaimer?: {
3780
3789
  isUserConfigurable?: boolean;
3781
3790
  defaultValue?: {
@@ -4593,18 +4602,8 @@ declare interface TemplateDomainRecords {
4593
4602
  ":template": TemplateRecord;
4594
4603
  }
4595
4604
 
4596
- declare interface TemplateProperty {
4605
+ declare interface TemplateProperty extends SchemaProperty {
4597
4606
  path?: string;
4598
- type?: string;
4599
- label?: string;
4600
- defaultValue?: string;
4601
- widget?: {
4602
- type: string;
4603
- };
4604
- properties?: object;
4605
- items?: {
4606
- properties?: Record<string, TemplatePropertySchema>;
4607
- };
4608
4607
  render?: {
4609
4608
  type: "image";
4610
4609
  profile?: {
@@ -4618,18 +4617,6 @@ declare interface TemplateProperty {
4618
4617
  };
4619
4618
  }
4620
4619
 
4621
- declare interface TemplatePropertySchema {
4622
- path?: string;
4623
- type?: string;
4624
- label?: string;
4625
- defaultValue?: string;
4626
- widget?: {
4627
- type: string;
4628
- };
4629
- items?: TemplatePropertySchema;
4630
- properties?: Record<string, TemplatePropertySchema>;
4631
- }
4632
-
4633
4620
  declare interface TemplateRecord {
4634
4621
  source?: string;
4635
4622
  controller?: string;
@@ -1,3 +1,4 @@
1
+ import type { TemplateProperty } from './template.ts';
1
2
  export type JsonPrimitive = string | number | boolean | null;
2
3
  export type JsonValue = JsonPrimitive | JsonValue[] | {
3
4
  [key: string]: JsonValue;
@@ -26,7 +27,7 @@ export interface EventRecord {
26
27
  }
27
28
  export interface EventTemplateRecord {
28
29
  mixin?: string[];
29
- properties?: object;
30
+ properties?: Record<string, TemplateProperty>;
30
31
  layout?: {
31
32
  title?: string;
32
33
  };
@@ -38,6 +38,14 @@ export type MediaTranscriptChangesRecord = {
38
38
  };
39
39
  export interface MediaTranscriptChangesRecordValue {
40
40
  patch?: Operation[];
41
+ /** Labels for speakers */
42
+ speakerLabels?: {
43
+ [speakerId: string]: string;
44
+ };
45
+ /** Override speaker IDs for specific paragraphs */
46
+ speakerRemaps?: {
47
+ [paragraphId: string]: string;
48
+ };
41
49
  }
42
50
  export interface MediaFontRecord {
43
51
  sampleText?: string;
@@ -1,3 +1,4 @@
1
+ import type { SchemaProperty } from '../../common/schema-property.ts';
1
2
  export interface TemplateDomainRecords {
2
3
  ":template": TemplateRecord;
3
4
  }
@@ -8,18 +9,8 @@ export interface TemplateRecord {
8
9
  mixin?: string[];
9
10
  properties?: Record<string, TemplateProperty>;
10
11
  }
11
- export interface TemplateProperty {
12
+ export interface TemplateProperty extends SchemaProperty {
12
13
  path?: string;
13
- type?: string;
14
- label?: string;
15
- defaultValue?: string;
16
- widget?: {
17
- type: string;
18
- };
19
- properties?: object;
20
- items?: {
21
- properties?: Record<string, TemplatePropertySchema>;
22
- };
23
14
  render?: {
24
15
  type: "image";
25
16
  profile?: {
@@ -32,14 +23,3 @@ export interface TemplateProperty {
32
23
  };
33
24
  };
34
25
  }
35
- export interface TemplatePropertySchema {
36
- path?: string;
37
- type?: string;
38
- label?: string;
39
- defaultValue?: string;
40
- widget?: {
41
- type: string;
42
- };
43
- items?: TemplatePropertySchema;
44
- properties?: Record<string, TemplatePropertySchema>;
45
- }