@uptime.app/contracts 1.0.2 → 1.0.3

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 (186) hide show
  1. package/dist/cjs/hack/extracted-subject.d.ts +4 -0
  2. package/dist/cjs/hack/extracted-subject.d.ts.map +1 -0
  3. package/dist/cjs/hack/extracted-subject.js +3 -0
  4. package/dist/cjs/hack/extracted-subject.js.map +1 -0
  5. package/dist/cjs/hack/hack-events.d.ts +18 -0
  6. package/dist/cjs/hack/hack-events.d.ts.map +1 -0
  7. package/dist/cjs/hack/hack-events.js +3 -0
  8. package/dist/cjs/hack/hack-events.js.map +1 -0
  9. package/dist/cjs/hack/hack-with-voice-events.d.ts +18 -0
  10. package/dist/cjs/hack/hack-with-voice-events.d.ts.map +1 -0
  11. package/dist/cjs/hack/hack-with-voice-events.js +3 -0
  12. package/dist/cjs/hack/hack-with-voice-events.js.map +1 -0
  13. package/dist/cjs/hack/hack-with-voice.d.ts +31 -0
  14. package/dist/cjs/hack/hack-with-voice.d.ts.map +1 -0
  15. package/dist/cjs/hack/hack-with-voice.js +3 -0
  16. package/dist/cjs/hack/hack-with-voice.js.map +1 -0
  17. package/dist/cjs/hack/hack.d.ts +101 -0
  18. package/dist/cjs/hack/hack.d.ts.map +1 -0
  19. package/dist/{esm → cjs/hack}/hack.js.map +1 -1
  20. package/dist/cjs/index.d.ts +19 -1
  21. package/dist/cjs/index.d.ts.map +1 -1
  22. package/dist/cjs/index.js +19 -1
  23. package/dist/cjs/index.js.map +1 -1
  24. package/dist/cjs/localisation/live-locales.d.ts +8 -0
  25. package/dist/cjs/localisation/live-locales.d.ts.map +1 -0
  26. package/dist/cjs/localisation/live-locales.js +37 -0
  27. package/dist/cjs/localisation/live-locales.js.map +1 -0
  28. package/dist/cjs/localisation/locale-language.d.ts +2 -0
  29. package/dist/cjs/localisation/locale-language.d.ts.map +1 -0
  30. package/dist/cjs/localisation/locale-language.js +10 -0
  31. package/dist/cjs/localisation/locale-language.js.map +1 -0
  32. package/dist/cjs/localisation/supported-languages.d.ts +4 -0
  33. package/dist/cjs/localisation/supported-languages.d.ts.map +1 -0
  34. package/dist/cjs/localisation/supported-languages.js +13 -0
  35. package/dist/cjs/localisation/supported-languages.js.map +1 -0
  36. package/dist/cjs/localisation/supported-locales.d.ts +38 -0
  37. package/dist/cjs/localisation/supported-locales.d.ts.map +1 -0
  38. package/dist/cjs/localisation/supported-locales.js +45 -0
  39. package/dist/cjs/localisation/supported-locales.js.map +1 -0
  40. package/dist/cjs/pending-hack/pending-hack-events.d.ts +18 -0
  41. package/dist/cjs/pending-hack/pending-hack-events.d.ts.map +1 -0
  42. package/dist/cjs/pending-hack/pending-hack-events.js +3 -0
  43. package/dist/cjs/pending-hack/pending-hack-events.js.map +1 -0
  44. package/dist/cjs/pending-hack/pending-hack-with-voice-events.d.ts +18 -0
  45. package/dist/cjs/pending-hack/pending-hack-with-voice-events.d.ts.map +1 -0
  46. package/dist/cjs/pending-hack/pending-hack-with-voice-events.js +3 -0
  47. package/dist/cjs/pending-hack/pending-hack-with-voice-events.js.map +1 -0
  48. package/dist/cjs/pending-hack/pending-hack-with-voice.d.ts +22 -0
  49. package/dist/cjs/pending-hack/pending-hack-with-voice.d.ts.map +1 -0
  50. package/dist/cjs/pending-hack/pending-hack-with-voice.js +3 -0
  51. package/dist/cjs/pending-hack/pending-hack-with-voice.js.map +1 -0
  52. package/dist/cjs/pending-hack/pending-hack.d.ts +70 -0
  53. package/dist/cjs/pending-hack/pending-hack.d.ts.map +1 -0
  54. package/dist/cjs/pending-hack/pending-hack.js +3 -0
  55. package/dist/cjs/pending-hack/pending-hack.js.map +1 -0
  56. package/dist/cjs/segment/segment-commands.d.ts +62 -0
  57. package/dist/cjs/segment/segment-commands.d.ts.map +1 -0
  58. package/dist/cjs/segment/segment-commands.js +3 -0
  59. package/dist/cjs/segment/segment-commands.js.map +1 -0
  60. package/dist/cjs/segment/segment-with-voice.d.ts +5 -0
  61. package/dist/cjs/segment/segment-with-voice.d.ts.map +1 -0
  62. package/dist/cjs/segment/segment-with-voice.js +3 -0
  63. package/dist/cjs/segment/segment-with-voice.js.map +1 -0
  64. package/dist/cjs/segment/segment.d.ts +70 -0
  65. package/dist/cjs/segment/segment.d.ts.map +1 -0
  66. package/dist/cjs/segment/segment.js +3 -0
  67. package/dist/cjs/segment/segment.js.map +1 -0
  68. package/dist/cjs/text-to-speech/create-speech-commands.d.ts +19 -0
  69. package/dist/cjs/text-to-speech/create-speech-commands.d.ts.map +1 -0
  70. package/dist/cjs/text-to-speech/create-speech-commands.js +3 -0
  71. package/dist/cjs/text-to-speech/create-speech-commands.js.map +1 -0
  72. package/dist/cjs/text-to-speech/speech-created-events.d.ts +11 -0
  73. package/dist/cjs/text-to-speech/speech-created-events.d.ts.map +1 -0
  74. package/dist/cjs/text-to-speech/speech-created-events.js +3 -0
  75. package/dist/cjs/text-to-speech/speech-created-events.js.map +1 -0
  76. package/dist/cjs/text-to-speech/text-segment.d.ts +25 -0
  77. package/dist/cjs/text-to-speech/text-segment.d.ts.map +1 -0
  78. package/dist/cjs/text-to-speech/text-segment.js +8 -0
  79. package/dist/cjs/text-to-speech/text-segment.js.map +1 -0
  80. package/dist/esm/hack/extracted-subject.d.ts +4 -0
  81. package/dist/esm/hack/extracted-subject.d.ts.map +1 -0
  82. package/dist/esm/hack/extracted-subject.js +2 -0
  83. package/dist/esm/hack/extracted-subject.js.map +1 -0
  84. package/dist/esm/hack/hack-events.d.ts +18 -0
  85. package/dist/esm/hack/hack-events.d.ts.map +1 -0
  86. package/dist/esm/hack/hack-events.js +2 -0
  87. package/dist/esm/hack/hack-events.js.map +1 -0
  88. package/dist/esm/hack/hack-with-voice-events.d.ts +18 -0
  89. package/dist/esm/hack/hack-with-voice-events.d.ts.map +1 -0
  90. package/dist/esm/hack/hack-with-voice-events.js +2 -0
  91. package/dist/esm/hack/hack-with-voice-events.js.map +1 -0
  92. package/dist/esm/hack/hack-with-voice.d.ts +31 -0
  93. package/dist/esm/hack/hack-with-voice.d.ts.map +1 -0
  94. package/dist/esm/hack/hack-with-voice.js +2 -0
  95. package/dist/esm/hack/hack-with-voice.js.map +1 -0
  96. package/dist/esm/hack/hack.d.ts +101 -0
  97. package/dist/esm/hack/hack.d.ts.map +1 -0
  98. package/dist/{cjs → esm/hack}/hack.js.map +1 -1
  99. package/dist/esm/index.d.ts +19 -1
  100. package/dist/esm/index.d.ts.map +1 -1
  101. package/dist/esm/index.js +19 -1
  102. package/dist/esm/index.js.map +1 -1
  103. package/dist/esm/localisation/live-locales.d.ts +8 -0
  104. package/dist/esm/localisation/live-locales.d.ts.map +1 -0
  105. package/dist/esm/localisation/live-locales.js +31 -0
  106. package/dist/esm/localisation/live-locales.js.map +1 -0
  107. package/dist/esm/localisation/locale-language.d.ts +2 -0
  108. package/dist/esm/localisation/locale-language.d.ts.map +1 -0
  109. package/dist/esm/localisation/locale-language.js +6 -0
  110. package/dist/esm/localisation/locale-language.js.map +1 -0
  111. package/dist/esm/localisation/supported-languages.d.ts +4 -0
  112. package/dist/esm/localisation/supported-languages.d.ts.map +1 -0
  113. package/dist/esm/localisation/supported-languages.js +9 -0
  114. package/dist/esm/localisation/supported-languages.js.map +1 -0
  115. package/dist/esm/localisation/supported-locales.d.ts +38 -0
  116. package/dist/esm/localisation/supported-locales.d.ts.map +1 -0
  117. package/dist/esm/localisation/supported-locales.js +41 -0
  118. package/dist/esm/localisation/supported-locales.js.map +1 -0
  119. package/dist/esm/pending-hack/pending-hack-events.d.ts +18 -0
  120. package/dist/esm/pending-hack/pending-hack-events.d.ts.map +1 -0
  121. package/dist/esm/pending-hack/pending-hack-events.js +2 -0
  122. package/dist/esm/pending-hack/pending-hack-events.js.map +1 -0
  123. package/dist/esm/pending-hack/pending-hack-with-voice-events.d.ts +18 -0
  124. package/dist/esm/pending-hack/pending-hack-with-voice-events.d.ts.map +1 -0
  125. package/dist/esm/pending-hack/pending-hack-with-voice-events.js +2 -0
  126. package/dist/esm/pending-hack/pending-hack-with-voice-events.js.map +1 -0
  127. package/dist/esm/pending-hack/pending-hack-with-voice.d.ts +22 -0
  128. package/dist/esm/pending-hack/pending-hack-with-voice.d.ts.map +1 -0
  129. package/dist/esm/pending-hack/pending-hack-with-voice.js +2 -0
  130. package/dist/esm/pending-hack/pending-hack-with-voice.js.map +1 -0
  131. package/dist/esm/pending-hack/pending-hack.d.ts +70 -0
  132. package/dist/esm/pending-hack/pending-hack.d.ts.map +1 -0
  133. package/dist/esm/pending-hack/pending-hack.js +2 -0
  134. package/dist/esm/pending-hack/pending-hack.js.map +1 -0
  135. package/dist/esm/segment/segment-commands.d.ts +62 -0
  136. package/dist/esm/segment/segment-commands.d.ts.map +1 -0
  137. package/dist/esm/segment/segment-commands.js +2 -0
  138. package/dist/esm/segment/segment-commands.js.map +1 -0
  139. package/dist/esm/segment/segment-with-voice.d.ts +5 -0
  140. package/dist/esm/segment/segment-with-voice.d.ts.map +1 -0
  141. package/dist/esm/segment/segment-with-voice.js +2 -0
  142. package/dist/esm/segment/segment-with-voice.js.map +1 -0
  143. package/dist/esm/segment/segment.d.ts +70 -0
  144. package/dist/esm/segment/segment.d.ts.map +1 -0
  145. package/dist/esm/segment/segment.js +2 -0
  146. package/dist/esm/segment/segment.js.map +1 -0
  147. package/dist/esm/text-to-speech/create-speech-commands.d.ts +19 -0
  148. package/dist/esm/text-to-speech/create-speech-commands.d.ts.map +1 -0
  149. package/dist/esm/text-to-speech/create-speech-commands.js +2 -0
  150. package/dist/esm/text-to-speech/create-speech-commands.js.map +1 -0
  151. package/dist/esm/text-to-speech/speech-created-events.d.ts +11 -0
  152. package/dist/esm/text-to-speech/speech-created-events.d.ts.map +1 -0
  153. package/dist/esm/text-to-speech/speech-created-events.js +2 -0
  154. package/dist/esm/text-to-speech/speech-created-events.js.map +1 -0
  155. package/dist/esm/text-to-speech/text-segment.d.ts +25 -0
  156. package/dist/esm/text-to-speech/text-segment.d.ts.map +1 -0
  157. package/dist/esm/text-to-speech/text-segment.js +5 -0
  158. package/dist/esm/text-to-speech/text-segment.js.map +1 -0
  159. package/package.json +2 -2
  160. package/src/hack/extracted-subject.ts +5 -0
  161. package/src/hack/hack-events.ts +21 -0
  162. package/src/hack/hack-with-voice-events.ts +21 -0
  163. package/src/hack/hack-with-voice.ts +33 -0
  164. package/src/hack/hack.ts +114 -0
  165. package/src/index.ts +23 -1
  166. package/src/localisation/live-locales.ts +33 -0
  167. package/src/localisation/locale-language.ts +4 -0
  168. package/src/localisation/supported-languages.ts +11 -0
  169. package/src/localisation/supported-locales.ts +42 -0
  170. package/src/pending-hack/pending-hack-events.ts +21 -0
  171. package/src/pending-hack/pending-hack-with-voice-events.ts +21 -0
  172. package/src/pending-hack/pending-hack-with-voice.ts +25 -0
  173. package/src/pending-hack/pending-hack.ts +75 -0
  174. package/src/segment/segment-commands.ts +70 -0
  175. package/src/segment/segment-with-voice.ts +8 -0
  176. package/src/segment/segment.ts +82 -0
  177. package/src/text-to-speech/create-speech-commands.ts +20 -0
  178. package/src/text-to-speech/speech-created-events.ts +11 -0
  179. package/src/text-to-speech/text-segment.ts +29 -0
  180. package/dist/cjs/hack.d.ts +0 -8
  181. package/dist/cjs/hack.d.ts.map +0 -1
  182. package/dist/esm/hack.d.ts +0 -8
  183. package/dist/esm/hack.d.ts.map +0 -1
  184. package/src/hack.ts +0 -7
  185. /package/dist/cjs/{hack.js → hack/hack.js} +0 -0
  186. /package/dist/esm/{hack.js → hack/hack.js} +0 -0
@@ -0,0 +1,20 @@
1
+ import { TextSegment, Voice } from './text-segment';
2
+
3
+ export interface CreateSpeechFromTextCommand {
4
+ id: string;
5
+ type: 'CreateSpeechFromText';
6
+ payload: {
7
+ locale: string;
8
+ textSegments: TextSegment[];
9
+ };
10
+ }
11
+
12
+ export interface CreateSpeechWithVoiceCommand {
13
+ id: string;
14
+ type: 'CreateSpeechWithVoice';
15
+ payload: {
16
+ locale: string;
17
+ textSegments: TextSegment[];
18
+ voice: Voice;
19
+ };
20
+ }
@@ -0,0 +1,11 @@
1
+ import { TextSegmentWithSpeech } from './text-segment';
2
+ import { SupportedLocale } from '../localisation/supported-locales';
3
+
4
+ export interface SpeechFromTextCreatedEvent {
5
+ id: string;
6
+ type: 'SpeechFromTextCreated';
7
+ payload: {
8
+ locale: SupportedLocale;
9
+ textSegments: TextSegmentWithSpeech[];
10
+ };
11
+ }
@@ -0,0 +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,8 +0,0 @@
1
- export interface Hack {
2
- id: string;
3
- v: number;
4
- createdAt: string;
5
- updatedAt: string;
6
- title: string;
7
- }
8
- //# sourceMappingURL=hack.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"hack.d.ts","sourceRoot":"","sources":["../../src/hack.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,IAAI;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,CAAC,EAAE,MAAM,CAAC;IACV,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;CACjB"}
@@ -1,8 +0,0 @@
1
- export interface Hack {
2
- id: string;
3
- v: number;
4
- createdAt: string;
5
- updatedAt: string;
6
- title: string;
7
- }
8
- //# sourceMappingURL=hack.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"hack.d.ts","sourceRoot":"","sources":["../../src/hack.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,IAAI;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,CAAC,EAAE,MAAM,CAAC;IACV,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;CACjB"}
package/src/hack.ts DELETED
@@ -1,7 +0,0 @@
1
- export interface Hack {
2
- id: string;
3
- v: number;
4
- createdAt: string;
5
- updatedAt: string;
6
- title: string;
7
- }
File without changes
File without changes