botframework-webchat-core 4.18.1 → 4.19.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.
Files changed (547) hide show
  1. package/LICENSE +21 -0
  2. package/activity.js +3 -0
  3. package/boot/deprecated/activity.js +7 -0
  4. package/boot/deprecated/activity.mjs +5 -0
  5. package/boot/deprecated/graph.js +7 -0
  6. package/boot/deprecated/graph.mjs +5 -0
  7. package/boot/deprecated/internal.js +7 -0
  8. package/boot/deprecated/internal.mjs +5 -0
  9. package/dist/WebChatActivity-CYqxBG_4.d.mts +271 -0
  10. package/dist/WebChatActivity-CYqxBG_4.d.ts +271 -0
  11. package/dist/_dtsroll-chunks/B7Whm73Q-tagged.d.ts +71 -0
  12. package/dist/_dtsroll-chunks/C-MxR98A-botframework-webchat-core-debug-api.d.ts +135 -0
  13. package/dist/_dtsroll-chunks/CAquHfZK-botframework-webchat-base.utils.d.ts +17 -0
  14. package/dist/_dtsroll-chunks/CDVed0Q--botframework-webchat-core.org-schema.d.ts +601 -0
  15. package/dist/_dtsroll-chunks/vlDgTKWF-botframework-webchat-core-graph.d.ts +239 -0
  16. package/dist/botframework-webchat-core.activity.d.mts +23 -0
  17. package/dist/botframework-webchat-core.activity.d.ts +23 -0
  18. package/dist/botframework-webchat-core.activity.js +2 -0
  19. package/dist/botframework-webchat-core.activity.js.map +1 -0
  20. package/dist/botframework-webchat-core.activity.mjs +2 -0
  21. package/dist/botframework-webchat-core.activity.mjs.map +1 -0
  22. package/dist/botframework-webchat-core.d.mts +267 -662
  23. package/dist/botframework-webchat-core.d.ts +556 -0
  24. package/dist/botframework-webchat-core.graph.d.mts +9 -0
  25. package/dist/botframework-webchat-core.graph.d.ts +9 -0
  26. package/dist/botframework-webchat-core.graph.js +2 -0
  27. package/dist/botframework-webchat-core.graph.js.map +1 -0
  28. package/dist/botframework-webchat-core.graph.mjs +2 -0
  29. package/dist/botframework-webchat-core.graph.mjs.map +1 -0
  30. package/dist/botframework-webchat-core.internal.d.mts +61 -0
  31. package/dist/botframework-webchat-core.internal.d.ts +61 -0
  32. package/dist/botframework-webchat-core.internal.js +2 -0
  33. package/dist/botframework-webchat-core.internal.js.map +1 -0
  34. package/dist/botframework-webchat-core.internal.mjs +2 -0
  35. package/dist/botframework-webchat-core.internal.mjs.map +1 -0
  36. package/dist/botframework-webchat-core.js +2 -0
  37. package/dist/botframework-webchat-core.js.map +1 -0
  38. package/dist/botframework-webchat-core.json-ld.d.mts +2 -0
  39. package/dist/botframework-webchat-core.json-ld.d.ts +2 -0
  40. package/dist/botframework-webchat-core.json-ld.js +2 -0
  41. package/dist/botframework-webchat-core.json-ld.js.map +1 -0
  42. package/dist/botframework-webchat-core.json-ld.mjs +2 -0
  43. package/dist/botframework-webchat-core.json-ld.mjs.map +1 -0
  44. package/dist/botframework-webchat-core.mjs +1 -2
  45. package/dist/botframework-webchat-core.mjs.map +1 -1
  46. package/dist/botframework-webchat-core.org-schema.d.mts +2 -0
  47. package/dist/botframework-webchat-core.org-schema.d.ts +2 -0
  48. package/dist/botframework-webchat-core.org-schema.js +2 -0
  49. package/dist/botframework-webchat-core.org-schema.js.map +1 -0
  50. package/dist/botframework-webchat-core.org-schema.mjs +2 -0
  51. package/dist/botframework-webchat-core.org-schema.mjs.map +1 -0
  52. package/dist/chunk-A4GEFYZJ.mjs +2 -0
  53. package/dist/chunk-A4GEFYZJ.mjs.map +1 -0
  54. package/dist/chunk-HZWWJL43.mjs +2 -0
  55. package/dist/chunk-HZWWJL43.mjs.map +1 -0
  56. package/dist/chunk-ICNZKQJW.mjs +2 -0
  57. package/dist/chunk-ICNZKQJW.mjs.map +1 -0
  58. package/dist/chunk-K6E6QQMQ.js +2 -0
  59. package/dist/chunk-K6E6QQMQ.js.map +1 -0
  60. package/dist/chunk-KPT5FBH2.mjs +2 -0
  61. package/dist/chunk-KPT5FBH2.mjs.map +1 -0
  62. package/dist/chunk-LO5BZSVE.js +2 -0
  63. package/dist/chunk-LO5BZSVE.js.map +1 -0
  64. package/dist/chunk-LP2X2JTR.js +2 -0
  65. package/dist/chunk-LP2X2JTR.js.map +1 -0
  66. package/dist/chunk-RUERYYZO.js +2 -0
  67. package/dist/chunk-RUERYYZO.js.map +1 -0
  68. package/dist/chunk-XOE3AOSM.js +2 -0
  69. package/dist/chunk-XOE3AOSM.js.map +1 -0
  70. package/dist/chunk-Y6ZDNVRT.mjs +2 -0
  71. package/dist/chunk-Y6ZDNVRT.mjs.map +1 -0
  72. package/{lib/createStore.d.ts → dist/createStore-CcvouBrW.d.mts} +29 -7
  73. package/dist/createStore-CcvouBrW.d.ts +65 -0
  74. package/dist/metafile-cjs.json +1 -0
  75. package/dist/metafile-esm.json +1 -1
  76. package/graph.js +3 -0
  77. package/internal.js +3 -0
  78. package/json-ld.js +3 -0
  79. package/org-schema.js +3 -0
  80. package/package.json +147 -73
  81. package/src/__tests__/activityFromBot.spec.js +2 -0
  82. package/src/__tests__/addMetaTag.spec.js +8 -0
  83. package/src/__tests__/addMetaTag.spec.mjs +8 -0
  84. package/src/__tests__/connectSaga.spec.js +2 -0
  85. package/src/__tests__/deleteKey.spec.js +2 -0
  86. package/src/__tests__/detectSlowConnectionSaga.spec.js +3 -1
  87. package/src/__tests__/observeOnce.spec.js +2 -0
  88. package/src/__tests__/speakableActivity.spec.js +2 -0
  89. package/src/__tests__/uniqueID.spec.js +2 -0
  90. package/src/actions/clearSuggestedActions.ts +20 -0
  91. package/src/actions/{connect.js → connect.ts} +9 -1
  92. package/src/actions/muteVoiceRecording.ts +17 -0
  93. package/src/actions/postVoiceActivity.ts +21 -0
  94. package/src/actions/registerActionSink.ts +29 -0
  95. package/src/actions/registerVoiceHandler.ts +24 -0
  96. package/src/actions/{sendEvent.js → sendEvent.ts} +1 -1
  97. package/src/actions/{sendMessageBack.js → sendMessageBack.ts} +1 -1
  98. package/src/actions/{sendPostBack.js → sendPostBack.ts} +1 -1
  99. package/src/actions/{setDictateInterims.js → setDictateInterims.ts} +1 -1
  100. package/src/actions/{setDictateState.js → setDictateState.ts} +1 -1
  101. package/src/actions/{setLanguage.js → setLanguage.ts} +1 -1
  102. package/src/actions/{setSendBox.js → setSendBox.ts} +1 -1
  103. package/src/actions/{setSendTimeout.js → setSendTimeout.ts} +1 -1
  104. package/src/actions/setSendTypingIndicator.ts +1 -1
  105. package/src/actions/setSuggestedActions.ts +35 -0
  106. package/src/actions/setVoiceState.ts +21 -0
  107. package/src/actions/startVoiceRecording.ts +17 -0
  108. package/src/actions/stopVoiceRecording.ts +17 -0
  109. package/src/actions/{submitSendBox.js → submitSendBox.ts} +1 -1
  110. package/src/actions/unmuteVoiceRecording.ts +17 -0
  111. package/src/actions/unregisterActionSink.ts +29 -0
  112. package/src/actions/unregisterVoiceHandler.ts +19 -0
  113. package/src/boot/activity.ts +19 -0
  114. package/src/boot/graph.ts +18 -0
  115. package/src/boot/internal.ts +11 -0
  116. package/src/boot/json-ld.ts +6 -0
  117. package/src/boot/org-schema.ts +29 -0
  118. package/src/buildInfo.ts +9 -0
  119. package/src/constants/{ActivityClientState.js → ActivityClientState.ts} +3 -3
  120. package/src/constants/DictateState.ts +10 -0
  121. package/src/createPromiseQueue.js +8 -6
  122. package/src/createReducer.ts +28 -20
  123. package/src/createSagas.ts +6 -3
  124. package/src/createStore.ts +26 -10
  125. package/src/env.d.ts +12 -0
  126. package/src/graph/createGraphFromStore.ts +121 -0
  127. package/src/index.ts +62 -45
  128. package/src/internal/StoreDebugAPIRegistry.ts +4 -0
  129. package/src/internal/actions/setRawState.ts +48 -0
  130. package/src/internal/types/suggestedActions.ts +11 -0
  131. package/src/internal/types/suggestedActionsOriginActivity.ts +16 -0
  132. package/src/reducers/activities/combineActivitiesReducer.ts +58 -0
  133. package/src/reducers/activities/createGroupedActivitiesReducer.ts +297 -0
  134. package/src/reducers/activities/patchActivity.ts +37 -0
  135. package/src/reducers/activities/sort/deleteActivityByLocalId.activity.spec.ts +144 -0
  136. package/src/reducers/activities/sort/deleteActivityByLocalId.howTo.spec.ts +148 -0
  137. package/src/reducers/activities/sort/deleteActivityByLocalId.howToWithLivestream.spec.ts +248 -0
  138. package/src/reducers/activities/sort/deleteActivityByLocalId.livestream.spec.ts +156 -0
  139. package/src/reducers/activities/sort/deleteActivityByLocalId.ts +177 -0
  140. package/src/reducers/activities/sort/private/computePartListTimestamp.ts +9 -0
  141. package/src/reducers/activities/sort/private/computeSortedActivities.ts +51 -0
  142. package/src/reducers/activities/sort/private/getLogicalTimestamp.spec.ts +49 -0
  143. package/src/reducers/activities/sort/private/getLogicalTimestamp.ts +33 -0
  144. package/src/reducers/activities/sort/private/getPartGroupingMetadataMap.spec.ts +92 -0
  145. package/src/reducers/activities/sort/private/getPartGroupingMetadataMap.ts +37 -0
  146. package/src/reducers/activities/sort/private/insertSorted.spec.ts +106 -0
  147. package/src/reducers/activities/sort/private/insertSorted.ts +18 -0
  148. package/src/reducers/activities/sort/property/LocalId.ts +60 -0
  149. package/src/reducers/activities/sort/property/Position.ts +39 -0
  150. package/src/reducers/activities/sort/property/ReceivedAt.ts +45 -0
  151. package/src/reducers/activities/sort/property/SendStatus.ts +51 -0
  152. package/src/reducers/activities/sort/queryLocalIdByActivityId.ts +6 -0
  153. package/src/reducers/activities/sort/queryLocalIdByClientActivityId.ts +6 -0
  154. package/src/reducers/activities/sort/types.ts +80 -0
  155. package/src/reducers/activities/sort/updateActivityChannelData.ts +101 -0
  156. package/src/reducers/activities/sort/updateSendState.ts +22 -0
  157. package/src/reducers/activities/sort/upsert.activity.spec.ts +500 -0
  158. package/src/reducers/activities/sort/upsert.howTo.spec.ts +368 -0
  159. package/src/reducers/activities/sort/upsert.howToWithLivestream.spec.ts +384 -0
  160. package/src/reducers/activities/sort/upsert.livestream.spec.ts +418 -0
  161. package/src/reducers/activities/sort/upsert.ts +498 -0
  162. package/src/reducers/activities/tsconfig.json +4 -0
  163. package/src/reducers/createNotificationsReducer.ts +4 -4
  164. package/src/reducers/suggestedActions.ts +21 -0
  165. package/src/reducers/suggestedActionsOriginActivity.ts +24 -0
  166. package/src/reducers/voiceActivity.ts +102 -0
  167. package/src/sagas/actionSinkSaga.ts +39 -0
  168. package/src/sagas/observeActivitySaga.ts +51 -1
  169. package/src/sagas/postActivitySaga.ts +17 -10
  170. package/src/sagas/postVoiceActivitySaga.ts +76 -0
  171. package/src/sagas/queueIncomingActivitySaga.ts +10 -4
  172. package/src/sagas/sendMessageToPostActivitySaga.ts +4 -1
  173. package/src/sagas/speakActivityAndStartDictateOnIncomingActivityFromOthersSaga.js +10 -4
  174. package/src/sagas/startDictateOnSpeakCompleteSaga.js +3 -3
  175. package/src/sagas/startSpeakActivityOnPostActivitySaga.js +15 -5
  176. package/src/sagas/stopDictateOnCardActionSaga.js +11 -3
  177. package/src/sagas/stopSpeakingActivityOnInputSaga.js +22 -4
  178. package/src/selectors/combineSelectors.ts +1 -1
  179. package/src/tsconfig.json +3 -15
  180. package/src/types/StoreDebugAPI.ts +25 -0
  181. package/src/types/WebChatActivity.ts +31 -14
  182. package/src/types/external/DirectLineActivity.ts +1 -1
  183. package/src/types/external/Observable.ts +4 -1
  184. package/src/types/internal/GlobalScopeClock.ts +10 -10
  185. package/src/types/internal/ReduxState.ts +2 -0
  186. package/src/types/internal/WebChatOutgoingActivity.ts +1 -1
  187. package/src/utils/dateToLocaleISOString.chatham.spec.js +1 -2
  188. package/src/utils/dateToLocaleISOString.japan.spec.js +1 -2
  189. package/src/utils/dateToLocaleISOString.newfoundland.spec.js +1 -2
  190. package/src/utils/dateToLocaleISOString.pacific.spec.js +1 -2
  191. package/src/utils/dateToLocaleISOString.utc.spec.js +1 -3
  192. package/src/utils/deleteKey.ts +1 -1
  193. package/src/utils/getActivityLivestreamingMetadata.spec.ts +297 -0
  194. package/src/utils/getActivityLivestreamingMetadata.ts +197 -0
  195. package/src/utils/getOrgSchemaMessage.spec.ts +4 -1
  196. package/src/utils/getOrgSchemaMessage.ts +16 -16
  197. package/src/utils/onErrorResumeNext.ts +1 -1
  198. package/src/utils/voiceActivity/getVoiceActivityRole.spec.ts +150 -0
  199. package/src/utils/voiceActivity/getVoiceActivityRole.ts +16 -0
  200. package/src/utils/voiceActivity/getVoiceActivityText.spec.ts +100 -0
  201. package/src/utils/voiceActivity/getVoiceActivityText.ts +11 -0
  202. package/src/utils/voiceActivity/isVoiceActivity.spec.ts +202 -0
  203. package/src/utils/voiceActivity/isVoiceActivity.ts +21 -0
  204. package/src/utils/voiceActivity/isVoiceTranscriptActivity.spec.ts +224 -0
  205. package/src/utils/voiceActivity/isVoiceTranscriptActivity.ts +24 -0
  206. package/dist/botframework-webchat-core.mjs.LEGAL.txt +0 -0
  207. package/lib/actions/clearSuggestedActions.js +0 -15
  208. package/lib/actions/connect.js +0 -33
  209. package/lib/actions/connectionStatusUpdate.js +0 -20
  210. package/lib/actions/deleteActivity.d.ts +0 -13
  211. package/lib/actions/deleteActivity.d.ts.map +0 -1
  212. package/lib/actions/deleteActivity.js +0 -19
  213. package/lib/actions/disconnect.js +0 -21
  214. package/lib/actions/dismissNotification.d.ts +0 -12
  215. package/lib/actions/dismissNotification.d.ts.map +0 -1
  216. package/lib/actions/dismissNotification.js +0 -19
  217. package/lib/actions/emitTypingIndicator.js +0 -15
  218. package/lib/actions/incomingActivity.d.ts +0 -14
  219. package/lib/actions/incomingActivity.d.ts.map +0 -1
  220. package/lib/actions/incomingActivity.js +0 -19
  221. package/lib/actions/markActivity.d.ts +0 -17
  222. package/lib/actions/markActivity.d.ts.map +0 -1
  223. package/lib/actions/markActivity.js +0 -22
  224. package/lib/actions/postActivity.d.ts +0 -64
  225. package/lib/actions/postActivity.d.ts.map +0 -1
  226. package/lib/actions/postActivity.js +0 -31
  227. package/lib/actions/queueIncomingActivity.js +0 -18
  228. package/lib/actions/reconnect.js +0 -17
  229. package/lib/actions/sagaError.d.ts +0 -8
  230. package/lib/actions/sagaError.d.ts.map +0 -1
  231. package/lib/actions/sagaError.js +0 -15
  232. package/lib/actions/sendEvent.js +0 -19
  233. package/lib/actions/sendFiles.d.ts +0 -19
  234. package/lib/actions/sendFiles.d.ts.map +0 -1
  235. package/lib/actions/sendFiles.js +0 -20
  236. package/lib/actions/sendMessage.d.ts +0 -19
  237. package/lib/actions/sendMessage.d.ts.map +0 -1
  238. package/lib/actions/sendMessage.js +0 -24
  239. package/lib/actions/sendMessageBack.js +0 -20
  240. package/lib/actions/sendPostBack.js +0 -18
  241. package/lib/actions/setClockSkewAdjustment.js +0 -12
  242. package/lib/actions/setDictateInterims.js +0 -18
  243. package/lib/actions/setDictateState.js +0 -18
  244. package/lib/actions/setLanguage.js +0 -18
  245. package/lib/actions/setNotification.d.ts +0 -10
  246. package/lib/actions/setNotification.d.ts.map +0 -1
  247. package/lib/actions/setNotification.js +0 -37
  248. package/lib/actions/setReferenceGrammarID.js +0 -18
  249. package/lib/actions/setSendBox.js +0 -18
  250. package/lib/actions/setSendBoxAttachments.d.ts +0 -13
  251. package/lib/actions/setSendBoxAttachments.d.ts.map +0 -1
  252. package/lib/actions/setSendBoxAttachments.js +0 -18
  253. package/lib/actions/setSendTimeout.js +0 -18
  254. package/lib/actions/setSendTypingIndicator.d.ts +0 -11
  255. package/lib/actions/setSendTypingIndicator.d.ts.map +0 -1
  256. package/lib/actions/setSendTypingIndicator.js +0 -18
  257. package/lib/actions/setSuggestedActions.js +0 -20
  258. package/lib/actions/startDictate.js +0 -15
  259. package/lib/actions/startSpeakingActivity.js +0 -15
  260. package/lib/actions/stopDictate.js +0 -15
  261. package/lib/actions/stopSpeakingActivity.js +0 -15
  262. package/lib/actions/submitSendBox.js +0 -22
  263. package/lib/actions/updateConnectionStatus.js +0 -18
  264. package/lib/constants/ActivityClientState.js +0 -16
  265. package/lib/constants/DictateState.js +0 -17
  266. package/lib/createPromiseQueue.js +0 -30
  267. package/lib/createReducer.d.ts +0 -60
  268. package/lib/createReducer.d.ts.map +0 -1
  269. package/lib/createReducer.js +0 -45
  270. package/lib/createSagas.d.ts +0 -8
  271. package/lib/createSagas.d.ts.map +0 -1
  272. package/lib/createSagas.js +0 -112
  273. package/lib/createStore.d.ts.map +0 -1
  274. package/lib/createStore.js +0 -131
  275. package/lib/definitions/activityFromBot.js +0 -11
  276. package/lib/definitions/speakableActivity.js +0 -10
  277. package/lib/definitions/speakingActivity.js +0 -13
  278. package/lib/index.d.ts +0 -76
  279. package/lib/index.d.ts.map +0 -1
  280. package/lib/index.js +0 -309
  281. package/lib/reducers/connectivityStatus.js +0 -49
  282. package/lib/reducers/createActivitiesReducer.d.ts +0 -12
  283. package/lib/reducers/createActivitiesReducer.d.ts.map +0 -1
  284. package/lib/reducers/createActivitiesReducer.js +0 -267
  285. package/lib/reducers/createInternalReducer.d.ts +0 -10
  286. package/lib/reducers/createInternalReducer.d.ts.map +0 -1
  287. package/lib/reducers/createInternalReducer.js +0 -19
  288. package/lib/reducers/createNotificationsReducer.d.ts +0 -11
  289. package/lib/reducers/createNotificationsReducer.d.ts.map +0 -1
  290. package/lib/reducers/createNotificationsReducer.js +0 -55
  291. package/lib/reducers/createTypingReducer.d.ts +0 -14
  292. package/lib/reducers/createTypingReducer.d.ts.map +0 -1
  293. package/lib/reducers/createTypingReducer.js +0 -50
  294. package/lib/reducers/dictateInterims.js +0 -23
  295. package/lib/reducers/dictateState.js +0 -38
  296. package/lib/reducers/language.js +0 -23
  297. package/lib/reducers/private/findBeforeAfter.d.ts +0 -4
  298. package/lib/reducers/private/findBeforeAfter.d.ts.map +0 -1
  299. package/lib/reducers/private/findBeforeAfter.js +0 -24
  300. package/lib/reducers/readyState.js +0 -23
  301. package/lib/reducers/referenceGrammarID.js +0 -23
  302. package/lib/reducers/sendBoxAttachments.d.ts +0 -9
  303. package/lib/reducers/sendBoxAttachments.d.ts.map +0 -1
  304. package/lib/reducers/sendBoxAttachments.js +0 -23
  305. package/lib/reducers/sendBoxValue.js +0 -23
  306. package/lib/reducers/sendTimeout.js +0 -23
  307. package/lib/reducers/sendTypingIndicator.js +0 -23
  308. package/lib/reducers/shouldSpeakIncomingActivity.js +0 -25
  309. package/lib/reducers/suggestedActions.js +0 -32
  310. package/lib/sagas/clearSuggestedActionsOnPostActivitySaga.js +0 -62
  311. package/lib/sagas/connectSaga.js +0 -445
  312. package/lib/sagas/connectionStatusToNotificationSaga.js +0 -107
  313. package/lib/sagas/connectionStatusUpdateSaga.js +0 -63
  314. package/lib/sagas/detectSlowConnectionSaga.d.ts +0 -5
  315. package/lib/sagas/detectSlowConnectionSaga.d.ts.map +0 -1
  316. package/lib/sagas/detectSlowConnectionSaga.js +0 -50
  317. package/lib/sagas/effects/forever.js +0 -19
  318. package/lib/sagas/effects/forkPut.js +0 -51
  319. package/lib/sagas/effects/observeEach.js +0 -45
  320. package/lib/sagas/effects/observeOnce.d.ts +0 -3
  321. package/lib/sagas/effects/observeOnce.d.ts.map +0 -1
  322. package/lib/sagas/effects/observeOnce.js +0 -42
  323. package/lib/sagas/effects/whileConnected.d.ts +0 -7
  324. package/lib/sagas/effects/whileConnected.d.ts.map +0 -1
  325. package/lib/sagas/effects/whileConnected.js +0 -55
  326. package/lib/sagas/emitTypingIndicatorToPostActivitySaga.js +0 -63
  327. package/lib/sagas/markAllAsSpokenOnStopSpeakActivitySaga.js +0 -78
  328. package/lib/sagas/observeActivitySaga.d.ts +0 -2
  329. package/lib/sagas/observeActivitySaga.d.ts.map +0 -1
  330. package/lib/sagas/observeActivitySaga.js +0 -117
  331. package/lib/sagas/postActivitySaga.d.ts +0 -3
  332. package/lib/sagas/postActivitySaga.d.ts.map +0 -1
  333. package/lib/sagas/postActivitySaga.js +0 -264
  334. package/lib/sagas/queueIncomingActivitySaga.d.ts +0 -3
  335. package/lib/sagas/queueIncomingActivitySaga.d.ts.map +0 -1
  336. package/lib/sagas/queueIncomingActivitySaga.js +0 -197
  337. package/lib/sagas/sendEventToPostActivitySaga.js +0 -68
  338. package/lib/sagas/sendFilesToPostActivitySaga.js +0 -85
  339. package/lib/sagas/sendMessageBackToPostActivitySaga.js +0 -70
  340. package/lib/sagas/sendMessageToPostActivitySaga.d.ts +0 -2
  341. package/lib/sagas/sendMessageToPostActivitySaga.d.ts.map +0 -1
  342. package/lib/sagas/sendMessageToPostActivitySaga.js +0 -91
  343. package/lib/sagas/sendPostBackToPostActivitySaga.js +0 -69
  344. package/lib/sagas/sendTypingIndicatorOnSetSendBoxSaga.d.ts +0 -3
  345. package/lib/sagas/sendTypingIndicatorOnSetSendBoxSaga.d.ts.map +0 -1
  346. package/lib/sagas/sendTypingIndicatorOnSetSendBoxSaga.js +0 -145
  347. package/lib/sagas/speakActivityAndStartDictateOnIncomingActivityFromOthersSaga.js +0 -106
  348. package/lib/sagas/startDictateOnSpeakCompleteSaga.js +0 -65
  349. package/lib/sagas/startSpeakActivityOnPostActivitySaga.js +0 -62
  350. package/lib/sagas/stopDictateOnCardActionSaga.js +0 -65
  351. package/lib/sagas/stopSpeakingActivityOnInputSaga.js +0 -68
  352. package/lib/sagas/submitSendBoxSaga.js +0 -84
  353. package/lib/selectors/activities.d.ts +0 -9
  354. package/lib/selectors/activities.d.ts.map +0 -1
  355. package/lib/selectors/activities.js +0 -33
  356. package/lib/selectors/combineSelectors.js +0 -31
  357. package/lib/selectors/dictateState.js +0 -12
  358. package/lib/selectors/language.d.ts +0 -4
  359. package/lib/selectors/language.d.ts.map +0 -1
  360. package/lib/selectors/language.js +0 -12
  361. package/lib/selectors/notifications.js +0 -13
  362. package/lib/selectors/sendBoxAttachments.js +0 -11
  363. package/lib/selectors/sendBoxValue.js +0 -12
  364. package/lib/selectors/sendTimeout.d.ts +0 -4
  365. package/lib/selectors/sendTimeout.d.ts.map +0 -1
  366. package/lib/selectors/sendTimeout.js +0 -12
  367. package/lib/selectors/sendTypingIndicator.d.ts +0 -4
  368. package/lib/selectors/sendTypingIndicator.d.ts.map +0 -1
  369. package/lib/selectors/sendTypingIndicator.js +0 -12
  370. package/lib/selectors/shouldSpeakIncomingActivity.js +0 -12
  371. package/lib/types/AnyAnd.d.ts +0 -2
  372. package/lib/types/AnyAnd.d.ts.map +0 -1
  373. package/lib/types/AnyAnd.js +0 -6
  374. package/lib/types/GlobalScopePonyfill.d.ts +0 -8
  375. package/lib/types/GlobalScopePonyfill.d.ts.map +0 -1
  376. package/lib/types/GlobalScopePonyfill.js +0 -6
  377. package/lib/types/OneOrMany.d.ts +0 -3
  378. package/lib/types/OneOrMany.d.ts.map +0 -1
  379. package/lib/types/OneOrMany.js +0 -6
  380. package/lib/types/SendBoxAttachment.d.ts +0 -5
  381. package/lib/types/SendBoxAttachment.d.ts.map +0 -1
  382. package/lib/types/SendBoxAttachment.js +0 -6
  383. package/lib/types/WebChatActivity.d.ts +0 -128
  384. package/lib/types/WebChatActivity.d.ts.map +0 -1
  385. package/lib/types/WebChatActivity.js +0 -6
  386. package/lib/types/external/DirectLineActivity.d.ts +0 -3
  387. package/lib/types/external/DirectLineActivity.d.ts.map +0 -1
  388. package/lib/types/external/DirectLineActivity.js +0 -6
  389. package/lib/types/external/DirectLineAnimationCard.d.ts +0 -6
  390. package/lib/types/external/DirectLineAnimationCard.d.ts.map +0 -1
  391. package/lib/types/external/DirectLineAnimationCard.js +0 -6
  392. package/lib/types/external/DirectLineAttachment.d.ts +0 -9
  393. package/lib/types/external/DirectLineAttachment.d.ts.map +0 -1
  394. package/lib/types/external/DirectLineAttachment.js +0 -6
  395. package/lib/types/external/DirectLineAudioCard.d.ts +0 -6
  396. package/lib/types/external/DirectLineAudioCard.d.ts.map +0 -1
  397. package/lib/types/external/DirectLineAudioCard.js +0 -6
  398. package/lib/types/external/DirectLineBasicCardEssence.d.ts +0 -12
  399. package/lib/types/external/DirectLineBasicCardEssence.d.ts.map +0 -1
  400. package/lib/types/external/DirectLineBasicCardEssence.js +0 -6
  401. package/lib/types/external/DirectLineCardAction.d.ts +0 -110
  402. package/lib/types/external/DirectLineCardAction.d.ts.map +0 -1
  403. package/lib/types/external/DirectLineCardAction.js +0 -6
  404. package/lib/types/external/DirectLineCardImage.d.ts +0 -8
  405. package/lib/types/external/DirectLineCardImage.d.ts.map +0 -1
  406. package/lib/types/external/DirectLineCardImage.js +0 -6
  407. package/lib/types/external/DirectLineHeroCard.d.ts +0 -6
  408. package/lib/types/external/DirectLineHeroCard.d.ts.map +0 -1
  409. package/lib/types/external/DirectLineHeroCard.js +0 -6
  410. package/lib/types/external/DirectLineJSBotConnection.d.ts +0 -3
  411. package/lib/types/external/DirectLineJSBotConnection.d.ts.map +0 -1
  412. package/lib/types/external/DirectLineJSBotConnection.js +0 -6
  413. package/lib/types/external/DirectLineMediaCardEssence.d.ts +0 -21
  414. package/lib/types/external/DirectLineMediaCardEssence.d.ts.map +0 -1
  415. package/lib/types/external/DirectLineMediaCardEssence.js +0 -6
  416. package/lib/types/external/DirectLineOAuthCard.d.ts +0 -8
  417. package/lib/types/external/DirectLineOAuthCard.d.ts.map +0 -1
  418. package/lib/types/external/DirectLineOAuthCard.js +0 -6
  419. package/lib/types/external/DirectLineReceiptCard.d.ts +0 -28
  420. package/lib/types/external/DirectLineReceiptCard.d.ts.map +0 -1
  421. package/lib/types/external/DirectLineReceiptCard.js +0 -6
  422. package/lib/types/external/DirectLineSignInCard.d.ts +0 -8
  423. package/lib/types/external/DirectLineSignInCard.d.ts.map +0 -1
  424. package/lib/types/external/DirectLineSignInCard.js +0 -6
  425. package/lib/types/external/DirectLineSuggestedAction.d.ts +0 -7
  426. package/lib/types/external/DirectLineSuggestedAction.d.ts.map +0 -1
  427. package/lib/types/external/DirectLineSuggestedAction.js +0 -6
  428. package/lib/types/external/DirectLineThumbnailCard.d.ts +0 -6
  429. package/lib/types/external/DirectLineThumbnailCard.d.ts.map +0 -1
  430. package/lib/types/external/DirectLineThumbnailCard.js +0 -6
  431. package/lib/types/external/DirectLineVideoCard.d.ts +0 -6
  432. package/lib/types/external/DirectLineVideoCard.d.ts.map +0 -1
  433. package/lib/types/external/DirectLineVideoCard.js +0 -6
  434. package/lib/types/external/Observable.d.ts +0 -49
  435. package/lib/types/external/Observable.d.ts.map +0 -1
  436. package/lib/types/external/Observable.js +0 -6
  437. package/lib/types/external/OrgSchema/Action.d.ts +0 -29
  438. package/lib/types/external/OrgSchema/Action.d.ts.map +0 -1
  439. package/lib/types/external/OrgSchema/Action.js +0 -38
  440. package/lib/types/external/OrgSchema/Claim.d.ts +0 -35
  441. package/lib/types/external/OrgSchema/Claim.d.ts.map +0 -1
  442. package/lib/types/external/OrgSchema/Claim.js +0 -41
  443. package/lib/types/external/OrgSchema/CreativeWork.d.ts +0 -57
  444. package/lib/types/external/OrgSchema/CreativeWork.d.ts.map +0 -1
  445. package/lib/types/external/OrgSchema/CreativeWork.js +0 -52
  446. package/lib/types/external/OrgSchema/DefinedTerm.d.ts +0 -26
  447. package/lib/types/external/OrgSchema/DefinedTerm.d.ts.map +0 -1
  448. package/lib/types/external/OrgSchema/DefinedTerm.js +0 -33
  449. package/lib/types/external/OrgSchema/Project.d.ts +0 -20
  450. package/lib/types/external/OrgSchema/Project.d.ts.map +0 -1
  451. package/lib/types/external/OrgSchema/Project.js +0 -32
  452. package/lib/types/external/OrgSchema/Thing.d.ts +0 -53
  453. package/lib/types/external/OrgSchema/Thing.d.ts.map +0 -1
  454. package/lib/types/external/OrgSchema/Thing.js +0 -54
  455. package/lib/types/external/OrgSchema/VoteAction.d.ts +0 -22
  456. package/lib/types/external/OrgSchema/VoteAction.d.ts.map +0 -1
  457. package/lib/types/external/OrgSchema/VoteAction.js +0 -34
  458. package/lib/types/external/OrgSchema/private/orgSchemaProperties.d.ts +0 -3
  459. package/lib/types/external/OrgSchema/private/orgSchemaProperties.d.ts.map +0 -1
  460. package/lib/types/external/OrgSchema/private/orgSchemaProperties.js +0 -22
  461. package/lib/types/external/OrgSchema/private/orgSchemaProperty.d.ts +0 -4
  462. package/lib/types/external/OrgSchema/private/orgSchemaProperty.d.ts.map +0 -1
  463. package/lib/types/external/OrgSchema/private/orgSchemaProperty.js +0 -15
  464. package/lib/types/internal/GlobalScopeClock.d.ts +0 -15
  465. package/lib/types/internal/GlobalScopeClock.d.ts.map +0 -1
  466. package/lib/types/internal/GlobalScopeClock.js +0 -6
  467. package/lib/types/internal/Notification.d.ts +0 -10
  468. package/lib/types/internal/Notification.d.ts.map +0 -1
  469. package/lib/types/internal/Notification.js +0 -6
  470. package/lib/types/internal/ReduxState.d.ts +0 -19
  471. package/lib/types/internal/ReduxState.d.ts.map +0 -1
  472. package/lib/types/internal/ReduxState.js +0 -6
  473. package/lib/types/internal/SendStatus.d.ts +0 -7
  474. package/lib/types/internal/SendStatus.d.ts.map +0 -1
  475. package/lib/types/internal/SendStatus.js +0 -19
  476. package/lib/types/internal/WebChatOutgoingActivity.d.ts +0 -49
  477. package/lib/types/internal/WebChatOutgoingActivity.d.ts.map +0 -1
  478. package/lib/types/internal/WebChatOutgoingActivity.js +0 -6
  479. package/lib/utils/dateToLocaleISOString.d.ts +0 -2
  480. package/lib/utils/dateToLocaleISOString.d.ts.map +0 -1
  481. package/lib/utils/dateToLocaleISOString.js +0 -52
  482. package/lib/utils/deleteKey.d.ts +0 -2
  483. package/lib/utils/deleteKey.d.ts.map +0 -1
  484. package/lib/utils/deleteKey.js +0 -30
  485. package/lib/utils/getOrgSchemaMessage.d.ts +0 -4
  486. package/lib/utils/getOrgSchemaMessage.d.ts.map +0 -1
  487. package/lib/utils/getOrgSchemaMessage.js +0 -21
  488. package/lib/utils/isForbiddenPropertyName.d.ts +0 -2
  489. package/lib/utils/isForbiddenPropertyName.d.ts.map +0 -1
  490. package/lib/utils/isForbiddenPropertyName.js +0 -16
  491. package/lib/utils/onErrorResumeNext.d.ts +0 -3
  492. package/lib/utils/onErrorResumeNext.d.ts.map +0 -1
  493. package/lib/utils/onErrorResumeNext.js +0 -19
  494. package/lib/utils/once.d.ts +0 -2
  495. package/lib/utils/once.d.ts.map +0 -1
  496. package/lib/utils/once.js +0 -16
  497. package/lib/utils/singleToArray.d.ts +0 -2
  498. package/lib/utils/singleToArray.d.ts.map +0 -1
  499. package/lib/utils/singleToArray.js +0 -10
  500. package/lib/utils/sleep.d.ts +0 -3
  501. package/lib/utils/sleep.d.ts.map +0 -1
  502. package/lib/utils/sleep.js +0 -12
  503. package/lib/utils/uniqueID.d.ts +0 -2
  504. package/lib/utils/uniqueID.d.ts.map +0 -1
  505. package/lib/utils/uniqueID.js +0 -14
  506. package/lib/utils/warnOnce.d.ts +0 -2
  507. package/lib/utils/warnOnce.d.ts.map +0 -1
  508. package/lib/utils/warnOnce.js +0 -14
  509. package/src/actions/clearSuggestedActions.js +0 -9
  510. package/src/actions/setSuggestedActions.js +0 -12
  511. package/src/constants/DictateState.js +0 -7
  512. package/src/reducers/createActivitiesReducer.ts +0 -304
  513. package/src/reducers/private/findBeforeAfter.spec.ts +0 -90
  514. package/src/reducers/private/findBeforeAfter.ts +0 -30
  515. package/src/reducers/suggestedActions.js +0 -23
  516. package/src/types/OneOrMany.ts +0 -3
  517. package/src/types/external/OrgSchema/Action.spec.ts +0 -35
  518. package/src/types/external/OrgSchema/Action.ts +0 -52
  519. package/src/types/external/OrgSchema/Claim.spec.ts +0 -45
  520. package/src/types/external/OrgSchema/Claim.ts +0 -48
  521. package/src/types/external/OrgSchema/CreativeWork.parseCreativeWork.spec.ts +0 -51
  522. package/src/types/external/OrgSchema/CreativeWork.ts +0 -83
  523. package/src/types/external/OrgSchema/DefinedTerm.ts +0 -37
  524. package/src/types/external/OrgSchema/Project.parseProject.spec.ts +0 -17
  525. package/src/types/external/OrgSchema/Project.ts +0 -29
  526. package/src/types/external/OrgSchema/Thing.parseThing.spec.ts +0 -54
  527. package/src/types/external/OrgSchema/Thing.ts +0 -94
  528. package/src/types/external/OrgSchema/VoteAction.spec.ts +0 -35
  529. package/src/types/external/OrgSchema/VoteAction.ts +0 -31
  530. package/src/types/external/OrgSchema/private/orgSchemaProperties.spec.ts +0 -41
  531. package/src/types/external/OrgSchema/private/orgSchemaProperties.ts +0 -23
  532. package/src/types/external/OrgSchema/private/orgSchemaProperty.spec.ts +0 -21
  533. package/src/types/external/OrgSchema/private/orgSchemaProperty.ts +0 -6
  534. package/src/utils/isForbiddenPropertyName.spec.js +0 -6
  535. package/src/utils/isForbiddenPropertyName.ts +0 -33
  536. package/src/utils/singleToArray.ts +0 -3
  537. package/src/utils/warnOnce.ts +0 -5
  538. /package/src/actions/{connectionStatusUpdate.js → connectionStatusUpdate.ts} +0 -0
  539. /package/src/actions/{disconnect.js → disconnect.ts} +0 -0
  540. /package/src/actions/{emitTypingIndicator.js → emitTypingIndicator.ts} +0 -0
  541. /package/src/actions/{queueIncomingActivity.js → queueIncomingActivity.ts} +0 -0
  542. /package/src/actions/{reconnect.js → reconnect.ts} +0 -0
  543. /package/src/actions/{startDictate.js → startDictate.ts} +0 -0
  544. /package/src/actions/{startSpeakingActivity.js → startSpeakingActivity.ts} +0 -0
  545. /package/src/actions/{stopDictate.js → stopDictate.ts} +0 -0
  546. /package/src/actions/{stopSpeakingActivity.js → stopSpeakingActivity.ts} +0 -0
  547. /package/src/actions/{updateConnectionStatus.js → updateConnectionStatus.ts} +0 -0
@@ -0,0 +1,601 @@
1
+ import * as valibot from 'valibot';
2
+ import { InferOutput, GenericSchema, InferInput } from 'valibot';
3
+
4
+ declare const actionStatusSchema: valibot.PicklistSchema<["ActiveActionStatus", "CompletedActionStatus", "FailedActionStatus", "PotentialActionStatus"], undefined>;
5
+ type ActionStatusInput = InferInput<typeof actionStatusSchema>;
6
+ type ActionStatusOutput = InferOutput<typeof actionStatusSchema>;
7
+
8
+ type JSONLinkedDataInput = {
9
+ readonly '@context'?: 'https://schema.org' | undefined;
10
+ readonly '@id'?: string | readonly string[] | undefined;
11
+ readonly '@type'?: string | readonly string[] | undefined;
12
+ };
13
+ type JSONLinkedDataOutput = {
14
+ readonly '@context'?: 'https://schema.org' | undefined;
15
+ readonly '@id'?: string | undefined;
16
+ readonly '@type': readonly string[];
17
+ };
18
+ declare const jsonLinkedDataSchema: GenericSchema<JSONLinkedDataInput, JSONLinkedDataOutput>;
19
+
20
+ /**
21
+ * The most generic type of item.
22
+ *
23
+ * This is partial implementation of https://schema.org/Thing.
24
+ *
25
+ * @see https://schema.org/Thing
26
+ */
27
+ type ThingInput = JSONLinkedDataInput & {
28
+ /**
29
+ * An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. Typically the value is a URI-identified RDF class, and in this case corresponds to the use of rdf:type in RDF. Text values can be used sparingly, for cases where useful information can be added without their being an appropriate schema to reference. In the case of text values, the class label should follow the schema.org [style guide](https://schema.org/docs/styleguide.html).
30
+ *
31
+ * @see https://schema.org/additionalType
32
+ */
33
+ readonly additionalType?: string | readonly string[] | undefined;
34
+ /**
35
+ * An alias for the item.
36
+ *
37
+ * @see https://schema.org/alternateName
38
+ */
39
+ readonly alternateName?: string | readonly string[] | undefined;
40
+ /**
41
+ * A description of the item.
42
+ *
43
+ * @see https://schema.org/description
44
+ */
45
+ readonly description?: string | readonly string[] | undefined;
46
+ /**
47
+ * The name of the item.
48
+ *
49
+ * @see https://schema.org/name
50
+ */
51
+ readonly name?: string | readonly string[] | undefined;
52
+ /**
53
+ * Indicates a potential Action, which describes an idealized action in which this thing would play an 'object' role.
54
+ *
55
+ * @see https://schema.org/potentialAction
56
+ */
57
+ readonly potentialAction?: ActionInput | readonly ActionInput[] | undefined;
58
+ /**
59
+ * URL of the item.
60
+ *
61
+ * @see https://schema.org/url
62
+ */
63
+ readonly url?: string | readonly string[] | undefined;
64
+ };
65
+ /**
66
+ * The most generic type of item.
67
+ *
68
+ * This is partial implementation of https://schema.org/Thing.
69
+ *
70
+ * @see https://schema.org/Thing
71
+ */
72
+ type ThingOutput = JSONLinkedDataOutput & {
73
+ /**
74
+ * An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. Typically the value is a URI-identified RDF class, and in this case corresponds to the use of rdf:type in RDF. Text values can be used sparingly, for cases where useful information can be added without their being an appropriate schema to reference. In the case of text values, the class label should follow the schema.org [style guide](https://schema.org/docs/styleguide.html).
75
+ *
76
+ * @see https://schema.org/additionalType
77
+ */
78
+ readonly additionalType: readonly string[];
79
+ /**
80
+ * An alias for the item.
81
+ *
82
+ * @see https://schema.org/alternateName
83
+ */
84
+ readonly alternateName: readonly string[];
85
+ /**
86
+ * A description of the item.
87
+ *
88
+ * @see https://schema.org/description
89
+ */
90
+ readonly description: readonly string[];
91
+ /**
92
+ * The name of the item.
93
+ *
94
+ * @see https://schema.org/name
95
+ */
96
+ readonly name: readonly string[];
97
+ /**
98
+ * Indicates a potential Action, which describes an idealized action in which this thing would play an 'object' role.
99
+ *
100
+ * @see https://schema.org/potentialAction
101
+ */
102
+ readonly potentialAction: readonly ActionOutput[];
103
+ /**
104
+ * URL of the item.
105
+ *
106
+ * @see https://schema.org/url
107
+ */
108
+ readonly url: readonly string[];
109
+ };
110
+ declare const thingSchema: GenericSchema<ThingInput, ThingOutput>;
111
+ /** @deprecated Use Valibot.parse(thingSchema) instead. Will be removed on or after 2028-04-23. */
112
+ declare const parseThing: (thing: ThingInput) => ThingOutput;
113
+
114
+ /**
115
+ * An enterprise (potentially individual but typically collaborative), planned to achieve a particular aim. Use properties from [Organization](https://schema.org/Organization), [subOrganization](https://schema.org/subOrganization)/[parentOrganization](https://schema.org/parentOrganization) to indicate project sub-structures.
116
+ *
117
+ * This is partial implementation of https://schema.org/Project.
118
+ *
119
+ * @see https://schema.org/Project
120
+ */
121
+ type ProjectInput = ThingInput & {
122
+ /**
123
+ * A slogan or motto associated with the item.
124
+ *
125
+ * @see https://schema.org/slogan
126
+ */
127
+ readonly slogan?: string | readonly string[] | undefined;
128
+ };
129
+ /**
130
+ * An enterprise (potentially individual but typically collaborative), planned to achieve a particular aim. Use properties from [Organization](https://schema.org/Organization), [subOrganization](https://schema.org/subOrganization)/[parentOrganization](https://schema.org/parentOrganization) to indicate project sub-structures.
131
+ *
132
+ * This is partial implementation of https://schema.org/Project.
133
+ *
134
+ * @see https://schema.org/Project
135
+ */
136
+ type ProjectOutput = ThingOutput & {
137
+ /**
138
+ * A slogan or motto associated with the item.
139
+ *
140
+ * @see https://schema.org/slogan
141
+ */
142
+ readonly slogan: readonly string[];
143
+ };
144
+ declare const projectSchema: GenericSchema<ProjectInput, ProjectOutput>;
145
+ /** @deprecated Use Valibot.parse(projectSchema) instead. Will be removed on or after 2028-04-23. */
146
+ declare const parseProject: (project: ProjectInput) => ProjectOutput;
147
+
148
+ /**
149
+ * A review created by an end-user (e.g. consumer, purchaser, attendee etc.), in contrast with [`CriticReview`](https://schema.org/CriticReview).
150
+ *
151
+ * This is partial implementation of https://schema.org/UserReview.
152
+ *
153
+ * @see https://schema.org/UserReview
154
+ */
155
+ type UserReviewInput = ThingInput & {
156
+ /**
157
+ * This Review or Rating is relevant to this part or facet of the itemReviewed.
158
+ */
159
+ readonly reviewAspect?: string | readonly string[] | undefined;
160
+ };
161
+ /**
162
+ * A review created by an end-user (e.g. consumer, purchaser, attendee etc.), in contrast with [`CriticReview`](https://schema.org/CriticReview).
163
+ *
164
+ * This is partial implementation of https://schema.org/UserReview.
165
+ *
166
+ * @see https://schema.org/UserReview
167
+ */
168
+ type UserReviewOutput = ThingOutput & {
169
+ /**
170
+ * This Review or Rating is relevant to this part or facet of the itemReviewed.
171
+ */
172
+ readonly reviewAspect: readonly string[];
173
+ };
174
+ declare const userReviewSchema: GenericSchema<UserReviewInput, UserReviewOutput>;
175
+
176
+ /**
177
+ * An action performed by a direct agent and indirect participants upon a direct object. Optionally happens at a location with the help of an inanimate instrument. The execution of the action may produce a result. Specific action sub-type documentation specifies the exact expectation of each argument/role.
178
+ *
179
+ * See also [blog post](http://blog.schema.org/2014/04/announcing-schemaorg-actions.html) and [Actions overview document](https://schema.org/docs/actions.html).
180
+ *
181
+ * This is partial implementation of https://schema.org/Action.
182
+ *
183
+ * @see https://schema.org/Action
184
+ */
185
+ type ActionInput = ThingInput & {
186
+ /**
187
+ * A sub property of object. The options subject to this action. Supersedes [`option`](https://schema.org/option).
188
+ */
189
+ readonly actionOption?: string | ThingInput | readonly (string | ThingInput)[] | undefined;
190
+ /**
191
+ * Indicates the current disposition of the Action.
192
+ *
193
+ * @see https://schema.org/actionStatus
194
+ */
195
+ readonly actionStatus?: ActionStatusInput | readonly ActionStatusInput[] | undefined;
196
+ /**
197
+ * The service provider, service operator, or service performer; the goods producer. Another party (a seller) may offer those services or goods on behalf of the provider. A provider may also serve as the seller. Supersedes [carrier](https://schema.org/carrier).
198
+ *
199
+ * @see https://schema.org/provider
200
+ */
201
+ readonly provider?: ProjectInput | readonly ProjectInput[] | undefined;
202
+ /**
203
+ * The result produced in the action. E.g. John wrote *a book*.
204
+ */
205
+ readonly result?: ThingInput | UserReviewInput | readonly (ThingInput | UserReviewInput)[] | undefined;
206
+ };
207
+ /**
208
+ * An action performed by a direct agent and indirect participants upon a direct object. Optionally happens at a location with the help of an inanimate instrument. The execution of the action may produce a result. Specific action sub-type documentation specifies the exact expectation of each argument/role.
209
+ *
210
+ * See also [blog post](http://blog.schema.org/2014/04/announcing-schemaorg-actions.html) and [Actions overview document](https://schema.org/docs/actions.html).
211
+ *
212
+ * This is partial implementation of https://schema.org/Action.
213
+ *
214
+ * @see https://schema.org/Action
215
+ */
216
+ type ActionOutput = ThingOutput & {
217
+ /**
218
+ * A sub property of object. The options subject to this action. Supersedes [`option`](https://schema.org/option).
219
+ */
220
+ readonly actionOption: readonly (string | ThingOutput)[];
221
+ /**
222
+ * Indicates the current disposition of the Action.
223
+ *
224
+ * @see https://schema.org/actionStatus
225
+ */
226
+ readonly actionStatus: readonly ActionStatusOutput[];
227
+ /**
228
+ * The service provider, service operator, or service performer; the goods producer. Another party (a seller) may offer those services or goods on behalf of the provider. A provider may also serve as the seller. Supersedes [carrier](https://schema.org/carrier).
229
+ *
230
+ * @see https://schema.org/provider
231
+ */
232
+ readonly provider: readonly ProjectOutput[];
233
+ /**
234
+ * The result produced in the action. E.g. John wrote *a book*.
235
+ */
236
+ readonly result: readonly (ThingOutput | UserReviewOutput)[];
237
+ };
238
+ declare const actionSchema: GenericSchema<ActionInput, ActionOutput>;
239
+ /** @deprecated Use Valibot.parse(actionSchema) instead. Will be removed on or after 2028-04-23. */
240
+ declare const parseAction: (action: ActionInput) => ActionOutput;
241
+
242
+ declare const creativeWorkStatusSchema: valibot.PicklistSchema<["Incomplete", "Published"], undefined>;
243
+ type CreativeWorkStatusInput = InferInput<typeof creativeWorkStatusSchema>;
244
+ type CreativeWorkStatusOutput = InferOutput<typeof creativeWorkStatusSchema>;
245
+
246
+ /**
247
+ * A word, name, acronym, phrase, etc. with a formal definition. Often used in the context of category or subject classification, glossaries or dictionaries, product or creative work types, etc. Use the name property for the term being defined, use termCode if the term has an alpha-numeric code allocated, use description to provide the definition of the term.
248
+ *
249
+ * This is partial implementation of https://schema.org/DefinedTerm.
250
+ *
251
+ * @see https://schema.org/DefinedTerm
252
+ */
253
+ type DefinedTermInput = ThingInput & {
254
+ /**
255
+ * A [DefinedTermSet](https://schema.org/DefinedTermSet) that contains this term.
256
+ *
257
+ * @see https://schema.org/inDefinedTermSet
258
+ */
259
+ readonly inDefinedTermSet?: string | readonly string[] | undefined;
260
+ /**
261
+ * A code that identifies this [DefinedTerm](https://schema.org/DefinedTerm) within a [DefinedTermSet](https://schema.org/DefinedTermSet).
262
+ *
263
+ * @see https://schema.org/termCode
264
+ */
265
+ readonly termCode?: string | readonly string[] | undefined;
266
+ };
267
+ /**
268
+ * A word, name, acronym, phrase, etc. with a formal definition. Often used in the context of category or subject classification, glossaries or dictionaries, product or creative work types, etc. Use the name property for the term being defined, use termCode if the term has an alpha-numeric code allocated, use description to provide the definition of the term.
269
+ *
270
+ * This is partial implementation of https://schema.org/DefinedTerm.
271
+ *
272
+ * @see https://schema.org/DefinedTerm
273
+ */
274
+ type DefinedTermOutput = ThingOutput & {
275
+ /**
276
+ * A [DefinedTermSet](https://schema.org/DefinedTermSet) that contains this term.
277
+ *
278
+ * @see https://schema.org/inDefinedTermSet
279
+ */
280
+ readonly inDefinedTermSet: readonly string[];
281
+ /**
282
+ * A code that identifies this [DefinedTerm](https://schema.org/DefinedTerm) within a [DefinedTermSet](https://schema.org/DefinedTermSet).
283
+ *
284
+ * @see https://schema.org/termCode
285
+ */
286
+ readonly termCode: readonly string[];
287
+ };
288
+ declare const definedTermSchema: GenericSchema<DefinedTermInput, DefinedTermOutput>;
289
+ /** @deprecated Use Valibot.parse(definedTermSchema) instead. Will be removed on or after 2028-04-23. */
290
+ declare const parseDefinedTerm: (definedTerm: DefinedTermInput) => DefinedTermOutput;
291
+
292
+ /**
293
+ * A person (alive, dead, undead, or fictional).
294
+ *
295
+ * This is partial implementation of https://schema.org/Person.
296
+ *
297
+ * @see https://schema.org/Person
298
+ */
299
+ type PersonInput = ThingInput & {
300
+ /**
301
+ * An image of the item. This can be a [URL](https://schema.org/URL) or a fully described [ImageObject](https://schema.org/ImageObject).
302
+ *
303
+ * Note: `ImageObject` is not supported.
304
+ *
305
+ * @see https://schema.org/image
306
+ */
307
+ readonly image?: string | readonly string[] | undefined;
308
+ };
309
+ /**
310
+ * A person (alive, dead, undead, or fictional).
311
+ *
312
+ * This is partial implementation of https://schema.org/Person.
313
+ *
314
+ * @see https://schema.org/Person
315
+ */
316
+ type PersonOutput = ThingOutput & {
317
+ /**
318
+ * An image of the item. This can be a [URL](https://schema.org/URL) or a fully described [ImageObject](https://schema.org/ImageObject).
319
+ *
320
+ * Note: `ImageObject` is not supported.
321
+ *
322
+ * @see https://schema.org/image
323
+ */
324
+ readonly image: readonly string[];
325
+ };
326
+ declare const personSchema: GenericSchema<PersonInput, PersonOutput>;
327
+
328
+ /**
329
+ * Computer programming source code. Example: Full (compile ready) solutions, code snippet samples, scripts, templates.
330
+ *
331
+ * This is partial implementation of https://schema.org/SoftwareSourceCode.
332
+ *
333
+ * @see https://schema.org/SoftwareSourceCode
334
+ */
335
+ type SoftwareSourceCodeInput = CreativeWorkInput & {
336
+ /**
337
+ * The computer programming language.
338
+ *
339
+ * @see https://schema.org/programmingLanguage
340
+ */
341
+ readonly programmingLanguage?: string | readonly string[] | undefined;
342
+ };
343
+ /**
344
+ * Computer programming source code. Example: Full (compile ready) solutions, code snippet samples, scripts, templates.
345
+ *
346
+ * This is partial implementation of https://schema.org/SoftwareSourceCode.
347
+ *
348
+ * @see https://schema.org/SoftwareSourceCode
349
+ */
350
+ type SoftwareSourceCodeOutput = CreativeWorkOutput & {
351
+ /**
352
+ * The computer programming language.
353
+ *
354
+ * @see https://schema.org/programmingLanguage
355
+ */
356
+ readonly programmingLanguage: readonly string[];
357
+ };
358
+ declare const softwareSourceCodeSchema: GenericSchema<SoftwareSourceCodeInput, SoftwareSourceCodeOutput>;
359
+
360
+ /**
361
+ * The most generic kind of creative work, including books, movies, photographs, software programs, etc.
362
+ *
363
+ * This is partial implementation of https://schema.org/CreativeWork.
364
+ *
365
+ * @see https://schema.org/CreativeWork
366
+ */
367
+ type CreativeWorkInput = ThingInput & {
368
+ /**
369
+ * An abstract is a short description that summarizes a [CreativeWork](https://schema.org/CreativeWork).
370
+ *
371
+ * @see https://schema.org/abstract
372
+ */
373
+ readonly abstract?: string | readonly string[] | undefined;
374
+ /**
375
+ * The author of this content or rating. Please note that author is special in that HTML 5 provides a special mechanism for indicating authorship via the rel tag. That is equivalent to this and may be used interchangeably.
376
+ *
377
+ * @see https://schema.org/author
378
+ */
379
+ readonly author?: PersonInput | string | readonly (PersonInput | string)[] | undefined;
380
+ /**
381
+ * A citation or reference to another creative work, such as another publication, web page, scholarly article, etc.
382
+ *
383
+ * @see https://schema.org/citation
384
+ */
385
+ readonly citation?: CreativeWorkInput | readonly CreativeWorkInput[] | undefined;
386
+ /**
387
+ * The status of the creative work, such as whether it is incomplete or published.
388
+ *
389
+ * @see https://schema.org/creativeWorkStatus
390
+ */
391
+ readonly creativeWorkStatus?: CreativeWorkStatusInput | readonly CreativeWorkStatusInput[] | undefined;
392
+ /**
393
+ * The schema.org [isBasedOn](https://schema.org/isBasedOn) property provides a resource from which this work is derived or from which it is a modification or adaptation.
394
+ */
395
+ readonly isBasedOn?: SoftwareSourceCodeInput | readonly SoftwareSourceCodeInput[] | undefined;
396
+ /**
397
+ * Indicates an item or CreativeWork that this item, or CreativeWork (in some sense), is part of.
398
+ *
399
+ * @see https://schema.org/isPartOf
400
+ */
401
+ readonly isPartOf?: CreativeWorkInput | readonly CreativeWorkInput[] | undefined;
402
+ /**
403
+ * Keywords or tags used to describe some item. Multiple textual entries in a keywords list are typically delimited by commas, or by repeating the property.
404
+ *
405
+ * @see https://schema.org/keywords
406
+ */
407
+ readonly keywords?: DefinedTermInput | string | readonly (DefinedTermInput | string)[] | undefined;
408
+ /**
409
+ * A pattern that something has, for example 'polka dot', 'striped', 'Canadian flag'. Values are typically expressed as text, although links to controlled value schemes are also supported.
410
+ *
411
+ * @see https://schema.org/pattern
412
+ */
413
+ readonly pattern?: DefinedTermInput | readonly DefinedTermInput[] | undefined;
414
+ /**
415
+ * The position of an item in a series or sequence of items.
416
+ *
417
+ * @see https://schema.org/position
418
+ */
419
+ readonly position?: number | string | readonly (number | string)[] | undefined;
420
+ /**
421
+ * The textual content of this CreativeWork.
422
+ *
423
+ * @see https://schema.org/text
424
+ */
425
+ readonly text?: string | readonly string[] | undefined;
426
+ /**
427
+ * The schema.org [usageInfo](https://schema.org/usageInfo) property indicates further information about a [CreativeWork](https://schema.org/CreativeWork). This property is applicable both to works that are freely available and to those that require payment or other transactions. It can reference additional information, e.g. community expectations on preferred linking and citation conventions, as well as purchasing details. For something that can be commercially licensed, usageInfo can provide detailed, resource-specific information about licensing options.
428
+ *
429
+ * This property can be used alongside the license property which indicates license(s) applicable to some piece of content. The usageInfo property can provide information about other licensing options, e.g. acquiring commercial usage rights for an image that is also available under non-commercial creative commons licenses.
430
+ */
431
+ readonly usageInfo?: CreativeWorkInput | readonly CreativeWorkInput[] | undefined;
432
+ };
433
+ /**
434
+ * The most generic kind of creative work, including books, movies, photographs, software programs, etc.
435
+ *
436
+ * This is partial implementation of https://schema.org/CreativeWork.
437
+ *
438
+ * @see https://schema.org/CreativeWork
439
+ */
440
+ type CreativeWorkOutput = ThingOutput & {
441
+ /**
442
+ * An abstract is a short description that summarizes a [CreativeWork](https://schema.org/CreativeWork).
443
+ *
444
+ * @see https://schema.org/abstract
445
+ */
446
+ readonly abstract: readonly string[];
447
+ /**
448
+ * The author of this content or rating. Please note that author is special in that HTML 5 provides a special mechanism for indicating authorship via the rel tag. That is equivalent to this and may be used interchangeably.
449
+ *
450
+ * @see https://schema.org/author
451
+ */
452
+ readonly author: readonly (PersonOutput | string)[];
453
+ /**
454
+ * A citation or reference to another creative work, such as another publication, web page, scholarly article, etc.
455
+ *
456
+ * @see https://schema.org/citation
457
+ */
458
+ readonly citation: readonly CreativeWorkOutput[];
459
+ /**
460
+ * The status of the creative work, such as whether it is incomplete or published.
461
+ *
462
+ * @see https://schema.org/creativeWorkStatus
463
+ */
464
+ readonly creativeWorkStatus: readonly CreativeWorkStatusOutput[];
465
+ /**
466
+ * The schema.org [isBasedOn](https://schema.org/isBasedOn) property provides a resource from which this work is derived or from which it is a modification or adaptation.
467
+ */
468
+ readonly isBasedOn: readonly SoftwareSourceCodeOutput[];
469
+ /**
470
+ * Indicates an item or CreativeWork that this item, or CreativeWork (in some sense), is part of.
471
+ *
472
+ * @see https://schema.org/isPartOf
473
+ */
474
+ readonly isPartOf: readonly CreativeWorkOutput[];
475
+ /**
476
+ * Keywords or tags used to describe some item. Multiple textual entries in a keywords list are typically delimited by commas, or by repeating the property.
477
+ *
478
+ * @see https://schema.org/keywords
479
+ */
480
+ readonly keywords: readonly (DefinedTermOutput | string)[];
481
+ /**
482
+ * A pattern that something has, for example 'polka dot', 'striped', 'Canadian flag'. Values are typically expressed as text, although links to controlled value schemes are also supported.
483
+ *
484
+ * @see https://schema.org/pattern
485
+ */
486
+ readonly pattern: readonly DefinedTermOutput[];
487
+ /**
488
+ * The position of an item in a series or sequence of items.
489
+ *
490
+ * @see https://schema.org/position
491
+ */
492
+ readonly position: readonly (number | string)[];
493
+ /**
494
+ * The textual content of this CreativeWork.
495
+ *
496
+ * @see https://schema.org/text
497
+ */
498
+ readonly text: readonly string[];
499
+ /**
500
+ * The schema.org [usageInfo](https://schema.org/usageInfo) property indicates further information about a [CreativeWork](https://schema.org/CreativeWork). This property is applicable both to works that are freely available and to those that require payment or other transactions. It can reference additional information, e.g. community expectations on preferred linking and citation conventions, as well as purchasing details. For something that can be commercially licensed, usageInfo can provide detailed, resource-specific information about licensing options.
501
+ *
502
+ * This property can be used alongside the license property which indicates license(s) applicable to some piece of content. The usageInfo property can provide information about other licensing options, e.g. acquiring commercial usage rights for an image that is also available under non-commercial creative commons licenses.
503
+ */
504
+ readonly usageInfo: readonly CreativeWorkOutput[];
505
+ };
506
+ declare const creativeWorkSchema: GenericSchema<CreativeWorkInput, CreativeWorkOutput>;
507
+ /** @deprecated Use Valibot.parse(creativeWorkSchema) instead. Will be removed on or after 2028-04-23. */
508
+ declare const parseCreativeWork: (creativeWork: CreativeWorkInput) => CreativeWorkOutput;
509
+
510
+ /**
511
+ * A [Claim](https://schema.org/Claim) in Schema.org represents a specific, factually-oriented claim that could be the [itemReviewed](https://schema.org/itemReviewed) in a [ClaimReview](https://schema.org/ClaimReview). The content of a claim can be summarized with the [text](https://schema.org/text) property. Variations on well known claims can have their common identity indicated via [sameAs](https://schema.org/sameAs) links, and summarized with a name. Ideally, a [Claim](https://schema.org/Claim) description includes enough contextual information to minimize the risk of ambiguity or inclarity. In practice, many claims are better understood in the context in which they appear or the interpretations provided by claim reviews.
512
+ *
513
+ * Beyond [ClaimReview](https://schema.org/ClaimReview), the Claim type can be associated with related creative works - for example a [ScholarlyArticle](https://schema.org/ScholarlyArticle) or [Question](https://schema.org/Question) might be about some [Claim](https://schema.org/Claim).
514
+ *
515
+ * This is partial implementation of https://schema.org/Claim.
516
+ *
517
+ * @see https://schema.org/Claim.
518
+ */
519
+ type ClaimInput = CreativeWorkInput & {
520
+ /**
521
+ * Indicates an occurrence of a [Claim](https://schema.org/Claim) in some [CreativeWork](https://schema.org/CreativeWork).
522
+ *
523
+ * @see https://schema.org/appearance.
524
+ */
525
+ readonly appearance?: CreativeWorkInput | readonly CreativeWorkInput[] | undefined;
526
+ /**
527
+ * For a [Claim](https://schema.org/Claim) interpreted from [MediaObject](https://schema.org/MediaObject) content sed to indicate a claim contained, implied or refined from the content of a [MediaObject](https://schema.org/MediaObject).
528
+ *
529
+ * @see https://schema.org/claimInterpreter.
530
+ */
531
+ readonly claimInterpreter?: ProjectInput | readonly ProjectInput[] | undefined;
532
+ };
533
+ /**
534
+ * A [Claim](https://schema.org/Claim) in Schema.org represents a specific, factually-oriented claim that could be the [itemReviewed](https://schema.org/itemReviewed) in a [ClaimReview](https://schema.org/ClaimReview). The content of a claim can be summarized with the [text](https://schema.org/text) property. Variations on well known claims can have their common identity indicated via [sameAs](https://schema.org/sameAs) links, and summarized with a name. Ideally, a [Claim](https://schema.org/Claim) description includes enough contextual information to minimize the risk of ambiguity or inclarity. In practice, many claims are better understood in the context in which they appear or the interpretations provided by claim reviews.
535
+ *
536
+ * Beyond [ClaimReview](https://schema.org/ClaimReview), the Claim type can be associated with related creative works - for example a [ScholarlyArticle](https://schema.org/ScholarlyArticle) or [Question](https://schema.org/Question) might be about some [Claim](https://schema.org/Claim).
537
+ *
538
+ * This is partial implementation of https://schema.org/Claim.
539
+ *
540
+ * @see https://schema.org/Claim.
541
+ */
542
+ type ClaimOutput = CreativeWorkOutput & {
543
+ /**
544
+ * Indicates an occurrence of a [Claim](https://schema.org/Claim) in some [CreativeWork](https://schema.org/CreativeWork).
545
+ *
546
+ * @see https://schema.org/appearance.
547
+ */
548
+ readonly appearance: readonly CreativeWorkOutput[];
549
+ /**
550
+ * For a [Claim](https://schema.org/Claim) interpreted from [MediaObject](https://schema.org/MediaObject) content sed to indicate a claim contained, implied or refined from the content of a [MediaObject](https://schema.org/MediaObject).
551
+ *
552
+ * @see https://schema.org/claimInterpreter.
553
+ */
554
+ readonly claimInterpreter: readonly ProjectOutput[];
555
+ };
556
+ declare const claimSchema: GenericSchema<ClaimInput, ClaimOutput>;
557
+ /** @deprecated Use Valibot.parse(claimSchema) instead. Will be removed on or after 2028-04-23. */
558
+ declare const parseClaim: (claim: ClaimInput) => ClaimOutput;
559
+
560
+ /**
561
+ * An action performed by a direct agent and indirect participants upon a direct object. Optionally happens at a location with the help of an inanimate instrument. The execution of the action may produce a result. Specific action sub-type documentation specifies the exact expectation of each argument/role.
562
+ *
563
+ * See also [blog post](http://blog.schema.org/2014/04/announcing-schemaorg-actions.html) and [Actions overview document](https://schema.org/docs/actions.html).
564
+ *
565
+ * This is partial implementation of https://schema.org/Action.
566
+ *
567
+ * @see https://schema.org/Action
568
+ */
569
+ type VoteActionInput = ActionInput & {
570
+ /**
571
+ * A sub property of object. The options subject to this action. Supersedes [option](https://schema.org/option).
572
+ *
573
+ * @see https://schema.org/VoteAction
574
+ */
575
+ readonly actionOption?: string | readonly string[] | undefined;
576
+ };
577
+ /**
578
+ * An action performed by a direct agent and indirect participants upon a direct object. Optionally happens at a location with the help of an inanimate instrument. The execution of the action may produce a result. Specific action sub-type documentation specifies the exact expectation of each argument/role.
579
+ *
580
+ * See also [blog post](http://blog.schema.org/2014/04/announcing-schemaorg-actions.html) and [Actions overview document](https://schema.org/docs/actions.html).
581
+ *
582
+ * This is partial implementation of https://schema.org/Action.
583
+ *
584
+ * @see https://schema.org/Action
585
+ */
586
+ type VoteActionOutput = ActionOutput & {
587
+ /**
588
+ * A sub property of object. The options subject to this action. Supersedes [option](https://schema.org/option).
589
+ *
590
+ * @see https://schema.org/VoteAction
591
+ */
592
+ readonly actionOption: readonly string[];
593
+ };
594
+ declare const voteActionSchema: GenericSchema<VoteActionInput, VoteActionOutput>;
595
+ /** @deprecated Use Valibot.parse(voteActionSchema) instead. Will be removed on or after 2028-04-23. */
596
+ declare const parseVoteAction: (voteAction: VoteActionInput) => VoteActionOutput;
597
+
598
+ declare function isOfType(type: string, thing: JSONLinkedDataOutput): boolean;
599
+
600
+ export { actionSchema as d, claimSchema as e, creativeWorkSchema as f, definedTermSchema as g, projectSchema as h, isOfType as i, jsonLinkedDataSchema as j, parseAction as k, parseClaim as l, parseCreativeWork as m, parseDefinedTerm as n, parseProject as o, personSchema as p, parseThing as q, parseVoteAction as r, softwareSourceCodeSchema as s, thingSchema as t, userReviewSchema as u, voteActionSchema as v };
601
+ export type { ActionOutput as A, CreativeWorkOutput as C, DefinedTermOutput as D, JSONLinkedDataInput as J, PersonOutput as P, SoftwareSourceCodeOutput as S, ThingOutput as T, UserReviewOutput as U, VoteActionOutput as V, JSONLinkedDataOutput as a, ClaimOutput as b, ProjectOutput as c };