@uptime.app/contracts 1.0.37 → 1.0.38-rc.1

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.
Files changed (100) hide show
  1. package/dist/cjs/index.d.ts +2 -0
  2. package/dist/cjs/index.d.ts.map +1 -1
  3. package/dist/cjs/index.js +2 -0
  4. package/dist/cjs/index.js.map +1 -1
  5. package/dist/cjs/translation/translation-events.d.ts +65 -0
  6. package/dist/cjs/translation/translation-events.d.ts.map +1 -0
  7. package/dist/cjs/translation/translation-events.js +3 -0
  8. package/dist/cjs/translation/translation-events.js.map +1 -0
  9. package/dist/cjs/translation/translation.d.ts +24 -0
  10. package/dist/cjs/translation/translation.d.ts.map +1 -0
  11. package/dist/cjs/translation/translation.js +3 -0
  12. package/dist/cjs/translation/translation.js.map +1 -0
  13. package/dist/esm/index.d.ts +2 -0
  14. package/dist/esm/index.d.ts.map +1 -1
  15. package/dist/esm/index.js +2 -0
  16. package/dist/esm/index.js.map +1 -1
  17. package/dist/esm/translation/translation-events.d.ts +65 -0
  18. package/dist/esm/translation/translation-events.d.ts.map +1 -0
  19. package/dist/esm/translation/translation-events.js +2 -0
  20. package/dist/esm/translation/translation-events.js.map +1 -0
  21. package/dist/esm/translation/translation.d.ts +24 -0
  22. package/dist/esm/translation/translation.d.ts.map +1 -0
  23. package/dist/esm/translation/translation.js +2 -0
  24. package/dist/esm/translation/translation.js.map +1 -0
  25. package/package.json +2 -2
  26. package/src/access-control/collection-access-control.ts +28 -28
  27. package/src/access-control/hack-access-control.ts +29 -29
  28. package/src/app-hack/app-full-hack.ts +9 -9
  29. package/src/app-hack/app-hack-metadata.ts +58 -58
  30. package/src/app-hack/app-restricted-hack.ts +22 -22
  31. package/src/b2b-organisation/b2b-organisation-events.ts +21 -21
  32. package/src/b2b-organisation/b2b-organisation-member-events.ts +21 -21
  33. package/src/b2b-organisation/b2b-organisation-member.ts +8 -8
  34. package/src/b2b-organisation/b2b-organisation.ts +14 -14
  35. package/src/brand/brand-events.ts +21 -21
  36. package/src/brand/brand.ts +19 -19
  37. package/src/collection/collection-events.ts +21 -21
  38. package/src/collection/collection.ts +58 -58
  39. package/src/collection/enriched-collection-events.ts +18 -18
  40. package/src/collection/enriched-collection.ts +64 -64
  41. package/src/distribution/collection-distribution.ts +17 -17
  42. package/src/distribution/distribution-events.ts +61 -61
  43. package/src/distribution/hack-distribution.ts +18 -18
  44. package/src/draft-hack/draft-hack-events.ts +21 -21
  45. package/src/draft-hack/draft-hack.ts +189 -189
  46. package/src/draft-hack-generation/draft-hack-generation-events.ts +42 -42
  47. package/src/draft-hack-generation/draft-hack-generation.ts +39 -39
  48. package/src/enriched-hack/enriched-hack-events.ts +21 -21
  49. package/src/enriched-hack/enriched-hack.ts +103 -103
  50. package/src/entitlement/user-entitlements-events.ts +20 -20
  51. package/src/entitlement/user-entitlements.ts +17 -17
  52. package/src/hack/extracted-subject.ts +31 -31
  53. package/src/hack/hack-events.ts +21 -21
  54. package/src/hack/hack-published.ts +21 -21
  55. package/src/hack/hack-with-voice-events.ts +20 -20
  56. package/src/hack/hack-with-voice.ts +33 -33
  57. package/src/hack/hack.ts +116 -116
  58. package/src/hack/publish-hack-command.ts +18 -18
  59. package/src/hack-metadata/hack-metadata-events.ts +21 -21
  60. package/src/hack-metadata/hack-metadata.ts +17 -17
  61. package/src/hack-of-the-day/hack-of-the-day-events.ts +21 -21
  62. package/src/hack-of-the-day/hack-of-the-day.ts +13 -13
  63. package/src/index.ts +98 -95
  64. package/src/knowledge-source/knowledge-source-events.ts +21 -21
  65. package/src/knowledge-source/knowledge-source.ts +43 -43
  66. package/src/localisation/live-locales.ts +37 -37
  67. package/src/localisation/locale-language.ts +4 -4
  68. package/src/localisation/supported-languages.ts +11 -11
  69. package/src/localisation/supported-locales.ts +61 -61
  70. package/src/moderation/hack-moderation-result-events.ts +18 -18
  71. package/src/moderation/hack-moderation-result.ts +27 -27
  72. package/src/pending-hack/pending-hack-events.ts +20 -20
  73. package/src/pending-hack/pending-hack-with-voice-events.ts +20 -20
  74. package/src/pending-hack/pending-hack-with-voice.ts +25 -25
  75. package/src/pending-hack/pending-hack.ts +77 -77
  76. package/src/profile/profile-events.ts +41 -41
  77. package/src/profile/profile.ts +27 -27
  78. package/src/profile/translated-profile.ts +13 -13
  79. package/src/segment/segment-commands.ts +70 -70
  80. package/src/segment/segment-events.ts +42 -42
  81. package/src/segment/segment-with-voice.ts +8 -8
  82. package/src/segment/segment.ts +82 -82
  83. package/src/skin/skin-events.ts +21 -21
  84. package/src/skin/skin.ts +6 -6
  85. package/src/text-to-speech/create-speech-commands.ts +20 -20
  86. package/src/text-to-speech/speech-created-events.ts +10 -10
  87. package/src/text-to-speech/supported-voices.ts +127 -127
  88. package/src/text-to-speech/text-segment.ts +29 -29
  89. package/src/theme/theme-events.ts +21 -21
  90. package/src/theme/theme.ts +68 -68
  91. package/src/translation/translation-events.ts +72 -0
  92. package/src/translation/translation.ts +25 -0
  93. package/src/trending/trending-events.ts +21 -21
  94. package/src/trending/trending-hacks.ts +8 -8
  95. package/src/user-context/user-context-events.ts +21 -21
  96. package/src/user-context/user-context.ts +16 -16
  97. package/src/user-notification-context/user-notification-context-events.ts +21 -21
  98. package/src/user-notification-context/user-notification-context.ts +9 -9
  99. package/tsconfig.cjs.json +7 -7
  100. package/tsconfig.npm.json +21 -21
@@ -1,77 +1,77 @@
1
- /* eslint-disable @typescript-eslint/ban-types */
2
- import { ExtractedSubject } from '../hack/extracted-subject';
3
- import { HackAffiliate, HackContributor, HackType, HackSourceData, HackTopic, HackExternalLink } from '../hack/hack';
4
- import { Segment } from '../segment/segment';
5
-
6
- export interface PendingHack {
7
- id: string;
8
- /** use @uptime.app/localisation-contracts */
9
- locale: string;
10
- baseLocaleHackId: string;
11
- v: number;
12
- createdAt: string;
13
- updatedAt: string;
14
- owner?: string;
15
- draftHackId: string;
16
- draftHackVersion: number;
17
- hackId: string;
18
- sourceId?: string;
19
- title: string;
20
- themeId: string;
21
- coverUrl?: string;
22
- /** Added in July 2024. This is the URL of the cover image that is free to use without any copyright. */
23
- copyrightFreeCoverUrl?: string;
24
- affiliate?: HackAffiliate;
25
- topics: HackTopic[];
26
- contributors: HackContributor[];
27
- type: HackType;
28
- sourceData?: HackSourceData;
29
- notifications?: {
30
- aiGeneratedText?: string;
31
- humanCuratedText?: string;
32
- };
33
- segments: {
34
- favouriteQuote: Segment | {};
35
- inANutshell: Segment | {};
36
- introduction: Segment | {};
37
- insights: [
38
- (Segment | {}),
39
- (Segment | {}),
40
- (Segment | {})
41
- ];
42
- conclusion: Segment | {};
43
- // composite segments
44
- overview: Segment | {};
45
- shareableOverview: Segment | {};
46
- hereAreTheInsights: Segment | {};
47
- putInAction?: Segment | {};
48
- };
49
- externalLink?: HackExternalLink;
50
- subjects?: ExtractedSubject[];
51
- }
52
-
53
- export interface CompletePendingHack extends PendingHack {
54
- segments: {
55
- favouriteQuote: Segment;
56
- inANutshell: Segment;
57
- introduction: Segment;
58
- insights: [
59
- Segment,
60
- Segment,
61
- Segment
62
- ];
63
- conclusion: Segment;
64
- // composite segments
65
- overview: Segment;
66
- shareableOverview: Segment;
67
- hereAreTheInsights: Segment;
68
- putInAction?: Segment;
69
- };
70
- subjects: ExtractedSubject[];
71
- }
72
-
73
- export type CompletePendingHackWithPutInAction = CompletePendingHack & {
74
- segments: {
75
- putInAction: Segment;
76
- }
77
- };
1
+ /* eslint-disable @typescript-eslint/ban-types */
2
+ import { ExtractedSubject } from '../hack/extracted-subject';
3
+ import { HackAffiliate, HackContributor, HackType, HackSourceData, HackTopic, HackExternalLink } from '../hack/hack';
4
+ import { Segment } from '../segment/segment';
5
+
6
+ export interface PendingHack {
7
+ id: string;
8
+ /** use @uptime.app/localisation-contracts */
9
+ locale: string;
10
+ baseLocaleHackId: string;
11
+ v: number;
12
+ createdAt: string;
13
+ updatedAt: string;
14
+ owner?: string;
15
+ draftHackId: string;
16
+ draftHackVersion: number;
17
+ hackId: string;
18
+ sourceId?: string;
19
+ title: string;
20
+ themeId: string;
21
+ coverUrl?: string;
22
+ /** Added in July 2024. This is the URL of the cover image that is free to use without any copyright. */
23
+ copyrightFreeCoverUrl?: string;
24
+ affiliate?: HackAffiliate;
25
+ topics: HackTopic[];
26
+ contributors: HackContributor[];
27
+ type: HackType;
28
+ sourceData?: HackSourceData;
29
+ notifications?: {
30
+ aiGeneratedText?: string;
31
+ humanCuratedText?: string;
32
+ };
33
+ segments: {
34
+ favouriteQuote: Segment | {};
35
+ inANutshell: Segment | {};
36
+ introduction: Segment | {};
37
+ insights: [
38
+ (Segment | {}),
39
+ (Segment | {}),
40
+ (Segment | {})
41
+ ];
42
+ conclusion: Segment | {};
43
+ // composite segments
44
+ overview: Segment | {};
45
+ shareableOverview: Segment | {};
46
+ hereAreTheInsights: Segment | {};
47
+ putInAction?: Segment | {};
48
+ };
49
+ externalLink?: HackExternalLink;
50
+ subjects?: ExtractedSubject[];
51
+ }
52
+
53
+ export interface CompletePendingHack extends PendingHack {
54
+ segments: {
55
+ favouriteQuote: Segment;
56
+ inANutshell: Segment;
57
+ introduction: Segment;
58
+ insights: [
59
+ Segment,
60
+ Segment,
61
+ Segment
62
+ ];
63
+ conclusion: Segment;
64
+ // composite segments
65
+ overview: Segment;
66
+ shareableOverview: Segment;
67
+ hereAreTheInsights: Segment;
68
+ putInAction?: Segment;
69
+ };
70
+ subjects: ExtractedSubject[];
71
+ }
72
+
73
+ export type CompletePendingHackWithPutInAction = CompletePendingHack & {
74
+ segments: {
75
+ putInAction: Segment;
76
+ }
77
+ };
@@ -1,41 +1,41 @@
1
- import { Profile } from './profile';
2
- import { TranslatedProfile } from './translated-profile';
3
-
4
- export interface ProfileCreatedEvent {
5
- id: string;
6
- type: 'ProfileCreated';
7
- payload: Profile;
8
- }
9
-
10
- export interface ProfileUpdatedEvent {
11
- id: string;
12
- type: 'ProfileUpdated';
13
- payload: Profile;
14
- }
15
-
16
- export interface ProfileDeletedEvent {
17
- id: string;
18
- type: 'ProfileDeleted';
19
- payload: Profile;
20
- }
21
-
22
- export interface TranslatedProfileCreatedEvent {
23
- id: string;
24
- type: 'TranslatedProfileCreated';
25
- payload: TranslatedProfile;
26
- }
27
-
28
- export interface TranslatedProfileUpdatedEvent {
29
- id: string;
30
- type: 'TranslatedProfileUpdated';
31
- payload: TranslatedProfile;
32
- }
33
-
34
- export interface TranslatedProfileDeletedEvent {
35
- id: string;
36
- type: 'TranslatedProfileDeleted';
37
- payload: TranslatedProfile;
38
- }
39
-
40
- export type ProfileChangedEvent = ProfileCreatedEvent | ProfileUpdatedEvent | ProfileDeletedEvent;
41
- export type TranslatedProfileChangedEvent = TranslatedProfileCreatedEvent | TranslatedProfileUpdatedEvent | TranslatedProfileDeletedEvent;
1
+ import { Profile } from './profile';
2
+ import { TranslatedProfile } from './translated-profile';
3
+
4
+ export interface ProfileCreatedEvent {
5
+ id: string;
6
+ type: 'ProfileCreated';
7
+ payload: Profile;
8
+ }
9
+
10
+ export interface ProfileUpdatedEvent {
11
+ id: string;
12
+ type: 'ProfileUpdated';
13
+ payload: Profile;
14
+ }
15
+
16
+ export interface ProfileDeletedEvent {
17
+ id: string;
18
+ type: 'ProfileDeleted';
19
+ payload: Profile;
20
+ }
21
+
22
+ export interface TranslatedProfileCreatedEvent {
23
+ id: string;
24
+ type: 'TranslatedProfileCreated';
25
+ payload: TranslatedProfile;
26
+ }
27
+
28
+ export interface TranslatedProfileUpdatedEvent {
29
+ id: string;
30
+ type: 'TranslatedProfileUpdated';
31
+ payload: TranslatedProfile;
32
+ }
33
+
34
+ export interface TranslatedProfileDeletedEvent {
35
+ id: string;
36
+ type: 'TranslatedProfileDeleted';
37
+ payload: TranslatedProfile;
38
+ }
39
+
40
+ export type ProfileChangedEvent = ProfileCreatedEvent | ProfileUpdatedEvent | ProfileDeletedEvent;
41
+ export type TranslatedProfileChangedEvent = TranslatedProfileCreatedEvent | TranslatedProfileUpdatedEvent | TranslatedProfileDeletedEvent;
@@ -1,27 +1,27 @@
1
- import { SupportedLocale } from '../localisation/supported-locales';
2
-
3
- export interface StoredProfile {
4
- id: string;
5
- v: number;
6
- createdAt: string;
7
- updatedAt: string;
8
- avatarUrl: string;
9
- name: string;
10
- owner: string;
11
- handle: string;
12
- _sanitisedHandle?: string; // use to determinate uniqueness for a handle, despite the case of it
13
- headerImageUrl?: string;
14
- tags?: string[];
15
- links?: ProfileLink[];
16
- tagline: string;
17
- description?: string;
18
- /** The locale (language and region) of the draft hack e.g. fr-FR. Mandatory property since 12/05/2023. */
19
- locale: SupportedLocale;
20
- }
21
-
22
- export type Profile = Omit<StoredProfile, '_sanitisedHandle'>;
23
-
24
- export interface ProfileLink {
25
- type: 'Other' | 'Twitter' | 'Facebook' | 'Youtube' | 'Medium' | 'Instagram' | 'Patreon' | 'TikTok' | 'LinkedIn' | 'LinkTree';
26
- url: string;
27
- }
1
+ import { SupportedLocale } from '../localisation/supported-locales';
2
+
3
+ export interface StoredProfile {
4
+ id: string;
5
+ v: number;
6
+ createdAt: string;
7
+ updatedAt: string;
8
+ avatarUrl: string;
9
+ name: string;
10
+ owner: string;
11
+ handle: string;
12
+ _sanitisedHandle?: string; // use to determinate uniqueness for a handle, despite the case of it
13
+ headerImageUrl?: string;
14
+ tags?: string[];
15
+ links?: ProfileLink[];
16
+ tagline: string;
17
+ description?: string;
18
+ /** The locale (language and region) of the draft hack e.g. fr-FR. Mandatory property since 12/05/2023. */
19
+ locale: SupportedLocale;
20
+ }
21
+
22
+ export type Profile = Omit<StoredProfile, '_sanitisedHandle'>;
23
+
24
+ export interface ProfileLink {
25
+ type: 'Other' | 'Twitter' | 'Facebook' | 'Youtube' | 'Medium' | 'Instagram' | 'Patreon' | 'TikTok' | 'LinkedIn' | 'LinkTree';
26
+ url: string;
27
+ }
@@ -1,13 +1,13 @@
1
- import { SupportedLocale } from '../localisation/supported-locales';
2
-
3
- export interface TranslatedProfile {
4
- id: string;
5
- v: number;
6
- createdAt: string;
7
- updatedAt: string;
8
- profileId: string;
9
- locale: SupportedLocale;
10
- tagline: string;
11
- description?: string;
12
- tags?: string[];
13
- }
1
+ import { SupportedLocale } from '../localisation/supported-locales';
2
+
3
+ export interface TranslatedProfile {
4
+ id: string;
5
+ v: number;
6
+ createdAt: string;
7
+ updatedAt: string;
8
+ profileId: string;
9
+ locale: SupportedLocale;
10
+ tagline: string;
11
+ description?: string;
12
+ tags?: string[];
13
+ }
@@ -1,70 +1,70 @@
1
- import { SupportedLocale } from '../localisation/supported-locales';
2
- import { SegmentType } from './segment';
3
-
4
- export interface StandaloneSegmentCard {
5
- markdown: string;
6
- }
7
-
8
- export interface StandaloneSegmentAction {
9
- title: string;
10
- cards: StandaloneSegmentCard[];
11
- }
12
-
13
- export interface StandaloneSegmentSection {
14
- heading?: string;
15
- cards: StandaloneSegmentCard[];
16
- }
17
-
18
- export interface CommandSegment {
19
- type: SegmentType;
20
- // @deprecated use hackTitle, hackType and hackContributors
21
- source?: {
22
- id: string;
23
- type: string;
24
- contributors: {
25
- name: string;
26
- }[];
27
- title: string;
28
- };
29
- hackCoverUrl?: string;
30
- hackId: string;
31
- hackTitle: string;
32
- hackType: 'book' | 'course' | 'documentary' | 'podcast' | 'original';
33
- hackContributors: {
34
- name: string;
35
- }[];
36
- locale: SupportedLocale;
37
- }
38
- export interface StandaloneSegment extends CommandSegment {
39
- title?: string;
40
- keywords?: string[];
41
- sections: StandaloneSegmentSection[];
42
- actions?: StandaloneSegmentAction[];
43
- textSummary?: string;
44
- }
45
-
46
- export interface CompositeSegment extends CommandSegment {
47
- subSegments: StandaloneSegment[];
48
- }
49
-
50
- export interface CreateSegmentCommand {
51
- id: string;
52
- type: 'CreateSegment';
53
- payload: (CompositeSegment | StandaloneSegment);
54
- }
55
-
56
- export interface UpdateSegmentCommand {
57
- id: string;
58
- type: 'UpdateSegment';
59
- payload: (CompositeSegment | StandaloneSegment) & {
60
- segmentId: string;
61
- };
62
- }
63
-
64
- export interface DeleteSegmentCommand {
65
- id: string;
66
- type: 'DeleteSegment';
67
- payload: {
68
- segmentId: string;
69
- };
70
- }
1
+ import { SupportedLocale } from '../localisation/supported-locales';
2
+ import { SegmentType } from './segment';
3
+
4
+ export interface StandaloneSegmentCard {
5
+ markdown: string;
6
+ }
7
+
8
+ export interface StandaloneSegmentAction {
9
+ title: string;
10
+ cards: StandaloneSegmentCard[];
11
+ }
12
+
13
+ export interface StandaloneSegmentSection {
14
+ heading?: string;
15
+ cards: StandaloneSegmentCard[];
16
+ }
17
+
18
+ export interface CommandSegment {
19
+ type: SegmentType;
20
+ // @deprecated use hackTitle, hackType and hackContributors
21
+ source?: {
22
+ id: string;
23
+ type: string;
24
+ contributors: {
25
+ name: string;
26
+ }[];
27
+ title: string;
28
+ };
29
+ hackCoverUrl?: string;
30
+ hackId: string;
31
+ hackTitle: string;
32
+ hackType: 'book' | 'course' | 'documentary' | 'podcast' | 'original';
33
+ hackContributors: {
34
+ name: string;
35
+ }[];
36
+ locale: SupportedLocale;
37
+ }
38
+ export interface StandaloneSegment extends CommandSegment {
39
+ title?: string;
40
+ keywords?: string[];
41
+ sections: StandaloneSegmentSection[];
42
+ actions?: StandaloneSegmentAction[];
43
+ textSummary?: string;
44
+ }
45
+
46
+ export interface CompositeSegment extends CommandSegment {
47
+ subSegments: StandaloneSegment[];
48
+ }
49
+
50
+ export interface CreateSegmentCommand {
51
+ id: string;
52
+ type: 'CreateSegment';
53
+ payload: (CompositeSegment | StandaloneSegment);
54
+ }
55
+
56
+ export interface UpdateSegmentCommand {
57
+ id: string;
58
+ type: 'UpdateSegment';
59
+ payload: (CompositeSegment | StandaloneSegment) & {
60
+ segmentId: string;
61
+ };
62
+ }
63
+
64
+ export interface DeleteSegmentCommand {
65
+ id: string;
66
+ type: 'DeleteSegment';
67
+ payload: {
68
+ segmentId: string;
69
+ };
70
+ }
@@ -1,42 +1,42 @@
1
- import { Segment } from './segment';
2
- import { SegmentWithVoice } from './segment-with-voice';
3
-
4
- export interface SegmentCreatedEvent {
5
- id: string;
6
- type: 'SegmentCreated';
7
- payload: Segment;
8
- }
9
-
10
- export interface SegmentUpdatedEvent {
11
- id: string;
12
- type: 'SegmentUpdated';
13
- payload: Segment;
14
- }
15
-
16
- export interface SegmentDeletedEvent {
17
- id: string;
18
- type: 'SegmentDeleted';
19
- payload: Segment;
20
- }
21
-
22
- export type SegmentChangedEvent = SegmentCreatedEvent | SegmentUpdatedEvent | SegmentDeletedEvent;
23
-
24
- export interface SegmentWithVoiceCreatedEvent {
25
- id: string;
26
- type: 'SegmentWithVoiceCreated';
27
- payload: SegmentWithVoice;
28
- }
29
-
30
- export interface SegmentWithVoiceUpdatedEvent {
31
- id: string;
32
- type: 'SegmentWithVoiceUpdated';
33
- payload: SegmentWithVoice;
34
- }
35
-
36
- export interface SegmentWithVoiceDeletedEvent {
37
- id: string;
38
- type: 'SegmentWithVoiceDeleted';
39
- payload: SegmentWithVoice;
40
- }
41
-
42
- export type SegmentWithVoiceChangedEvent = SegmentWithVoiceCreatedEvent | SegmentWithVoiceUpdatedEvent | SegmentWithVoiceDeletedEvent;
1
+ import { Segment } from './segment';
2
+ import { SegmentWithVoice } from './segment-with-voice';
3
+
4
+ export interface SegmentCreatedEvent {
5
+ id: string;
6
+ type: 'SegmentCreated';
7
+ payload: Segment;
8
+ }
9
+
10
+ export interface SegmentUpdatedEvent {
11
+ id: string;
12
+ type: 'SegmentUpdated';
13
+ payload: Segment;
14
+ }
15
+
16
+ export interface SegmentDeletedEvent {
17
+ id: string;
18
+ type: 'SegmentDeleted';
19
+ payload: Segment;
20
+ }
21
+
22
+ export type SegmentChangedEvent = SegmentCreatedEvent | SegmentUpdatedEvent | SegmentDeletedEvent;
23
+
24
+ export interface SegmentWithVoiceCreatedEvent {
25
+ id: string;
26
+ type: 'SegmentWithVoiceCreated';
27
+ payload: SegmentWithVoice;
28
+ }
29
+
30
+ export interface SegmentWithVoiceUpdatedEvent {
31
+ id: string;
32
+ type: 'SegmentWithVoiceUpdated';
33
+ payload: SegmentWithVoice;
34
+ }
35
+
36
+ export interface SegmentWithVoiceDeletedEvent {
37
+ id: string;
38
+ type: 'SegmentWithVoiceDeleted';
39
+ payload: SegmentWithVoice;
40
+ }
41
+
42
+ export type SegmentWithVoiceChangedEvent = SegmentWithVoiceCreatedEvent | SegmentWithVoiceUpdatedEvent | SegmentWithVoiceDeletedEvent;
@@ -1,8 +1,8 @@
1
- import { Segment } from './segment';
2
-
3
- // a segment with audio in a single voice, because having all voices in one segment would make the entity very large
4
- // the only difference is that it includes a voiceIdAndLanguage field, which can be used as a range key to find the segment for a specific voice
5
- // segmentsWithVoice may point to default or non-default voices
6
- export interface SegmentWithVoice extends Segment {
7
- voiceIdAndLanguage: string;
8
- }
1
+ import { Segment } from './segment';
2
+
3
+ // a segment with audio in a single voice, because having all voices in one segment would make the entity very large
4
+ // the only difference is that it includes a voiceIdAndLanguage field, which can be used as a range key to find the segment for a specific voice
5
+ // segmentsWithVoice may point to default or non-default voices
6
+ export interface SegmentWithVoice extends Segment {
7
+ voiceIdAndLanguage: string;
8
+ }