@uptime.app/contracts 1.0.3 → 1.0.4-rc.0
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/package.json +2 -2
- package/src/hack/extracted-subject.ts +4 -4
- package/src/hack/hack-events.ts +21 -21
- package/src/hack/hack-with-voice-events.ts +20 -20
- package/src/hack/hack-with-voice.ts +33 -33
- package/src/hack/hack.ts +114 -114
- package/src/hack-metadata/hack-metadata.ts +17 -0
- package/src/index.ts +23 -23
- package/src/localisation/live-locales.ts +32 -32
- package/src/localisation/locale-language.ts +4 -4
- package/src/localisation/supported-languages.ts +11 -11
- package/src/localisation/supported-locales.ts +42 -42
- package/src/pending-hack/pending-hack-events.ts +20 -20
- package/src/pending-hack/pending-hack-with-voice-events.ts +20 -20
- package/src/pending-hack/pending-hack-with-voice.ts +25 -25
- package/src/pending-hack/pending-hack.ts +75 -75
- package/src/segment/segment-commands.ts +70 -70
- package/src/segment/segment-with-voice.ts +8 -8
- package/src/segment/segment.ts +82 -82
- package/src/text-to-speech/create-speech-commands.ts +20 -20
- package/src/text-to-speech/speech-created-events.ts +11 -11
- package/src/text-to-speech/text-segment.ts +29 -29
- package/tsconfig.cjs.json +7 -7
- package/tsconfig.npm.json +21 -21
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
export interface TextSegment {
|
|
2
|
-
parentId: string;
|
|
3
|
-
textSegmentId: string;
|
|
4
|
-
content: string;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export interface TextSegmentWithSpeech extends TextSegment {
|
|
8
|
-
speech: Speech[];
|
|
9
|
-
/* The speech-friendly version of the "content" field. Trimmed, enrichment links removed, words replaced based on custom dictionary, etc. */
|
|
10
|
-
spokenContent: string;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export interface Speech {
|
|
14
|
-
voice: Voice;
|
|
15
|
-
url: string;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export interface Voice {
|
|
19
|
-
id: string;
|
|
20
|
-
language: string;
|
|
21
|
-
name: string;
|
|
22
|
-
countryCode: string;
|
|
23
|
-
/** use SupportedSpeechProvider */
|
|
24
|
-
speechProvider: string;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export enum SupportedSpeechProvider {
|
|
28
|
-
MicrosoftAzure = 'microsoft-azure'
|
|
29
|
-
}
|
|
1
|
+
export interface TextSegment {
|
|
2
|
+
parentId: string;
|
|
3
|
+
textSegmentId: string;
|
|
4
|
+
content: string;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export interface TextSegmentWithSpeech extends TextSegment {
|
|
8
|
+
speech: Speech[];
|
|
9
|
+
/* The speech-friendly version of the "content" field. Trimmed, enrichment links removed, words replaced based on custom dictionary, etc. */
|
|
10
|
+
spokenContent: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface Speech {
|
|
14
|
+
voice: Voice;
|
|
15
|
+
url: string;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface Voice {
|
|
19
|
+
id: string;
|
|
20
|
+
language: string;
|
|
21
|
+
name: string;
|
|
22
|
+
countryCode: string;
|
|
23
|
+
/** use SupportedSpeechProvider */
|
|
24
|
+
speechProvider: string;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export enum SupportedSpeechProvider {
|
|
28
|
+
MicrosoftAzure = 'microsoft-azure'
|
|
29
|
+
}
|
package/tsconfig.cjs.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "./tsconfig.npm.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"module": "CommonJS",
|
|
5
|
-
"outDir": "./dist/cjs"
|
|
6
|
-
},
|
|
7
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"extends": "./tsconfig.npm.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"module": "CommonJS",
|
|
5
|
+
"outDir": "./dist/cjs"
|
|
6
|
+
},
|
|
7
|
+
}
|
package/tsconfig.npm.json
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"build": true,
|
|
4
|
-
"target": "ES2020",
|
|
5
|
-
"module": "ES2020",
|
|
6
|
-
"declaration": true,
|
|
7
|
-
"emitDeclarationOnly": false,
|
|
8
|
-
"declarationMap": true,
|
|
9
|
-
"sourceMap": true,
|
|
10
|
-
"outDir": "./dist/esm",
|
|
11
|
-
"noEmit": false,
|
|
12
|
-
"strict": true,
|
|
13
|
-
"noImplicitAny": true,
|
|
14
|
-
"strictNullChecks": true,
|
|
15
|
-
"esModuleInterop": true,
|
|
16
|
-
"moduleResolution": "node",
|
|
17
|
-
},
|
|
18
|
-
"files": [
|
|
19
|
-
"src/index.ts"
|
|
20
|
-
]
|
|
21
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"build": true,
|
|
4
|
+
"target": "ES2020",
|
|
5
|
+
"module": "ES2020",
|
|
6
|
+
"declaration": true,
|
|
7
|
+
"emitDeclarationOnly": false,
|
|
8
|
+
"declarationMap": true,
|
|
9
|
+
"sourceMap": true,
|
|
10
|
+
"outDir": "./dist/esm",
|
|
11
|
+
"noEmit": false,
|
|
12
|
+
"strict": true,
|
|
13
|
+
"noImplicitAny": true,
|
|
14
|
+
"strictNullChecks": true,
|
|
15
|
+
"esModuleInterop": true,
|
|
16
|
+
"moduleResolution": "node",
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"src/index.ts"
|
|
20
|
+
]
|
|
21
|
+
}
|