quidproquo-core 0.0.262 → 0.1.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 (657) hide show
  1. package/lib/commonjs/actions/ai/AiActionType.d.ts +4 -0
  2. package/lib/commonjs/actions/ai/AiActionType.js +8 -0
  3. package/lib/commonjs/actions/ai/AiMessage.d.ts +43 -0
  4. package/lib/commonjs/actions/ai/AiMessage.js +2 -0
  5. package/lib/commonjs/actions/ai/AiModel.d.ts +11 -0
  6. package/lib/commonjs/actions/ai/AiModel.js +15 -0
  7. package/lib/commonjs/actions/ai/AiPromptActionRequester.d.ts +9 -0
  8. package/lib/commonjs/actions/ai/AiPromptActionRequester.js +16 -0
  9. package/lib/commonjs/actions/ai/AiPromptActionTypes.d.ts +20 -0
  10. package/lib/commonjs/actions/ai/AiPromptActionTypes.js +2 -0
  11. package/lib/commonjs/actions/ai/AiPromptStreamActionRequester.d.ts +9 -0
  12. package/lib/commonjs/actions/ai/AiPromptStreamActionRequester.js +16 -0
  13. package/lib/commonjs/actions/ai/AiPromptStreamActionTypes.d.ts +19 -0
  14. package/lib/commonjs/actions/ai/AiPromptStreamActionTypes.js +2 -0
  15. package/lib/commonjs/actions/ai/index.d.ts +8 -0
  16. package/lib/commonjs/actions/ai/index.js +24 -0
  17. package/lib/commonjs/actions/ai/types/AiStreamAbort.d.ts +11 -0
  18. package/lib/commonjs/actions/ai/types/AiStreamAbort.js +2 -0
  19. package/lib/commonjs/actions/ai/types/AiStreamCustom.d.ts +11 -0
  20. package/lib/commonjs/actions/ai/types/AiStreamCustom.js +2 -0
  21. package/lib/commonjs/actions/ai/types/AiStreamError.d.ts +10 -0
  22. package/lib/commonjs/actions/ai/types/AiStreamError.js +2 -0
  23. package/lib/commonjs/actions/ai/types/AiStreamFile.d.ts +12 -0
  24. package/lib/commonjs/actions/ai/types/AiStreamFile.js +2 -0
  25. package/lib/commonjs/actions/ai/types/AiStreamFilePart.d.ts +9 -0
  26. package/lib/commonjs/actions/ai/types/AiStreamFilePart.js +2 -0
  27. package/lib/commonjs/actions/ai/types/AiStreamFinish.d.ts +13 -0
  28. package/lib/commonjs/actions/ai/types/AiStreamFinish.js +2 -0
  29. package/lib/commonjs/actions/ai/types/AiStreamFinishStep.d.ts +14 -0
  30. package/lib/commonjs/actions/ai/types/AiStreamFinishStep.js +2 -0
  31. package/lib/commonjs/actions/ai/types/AiStreamPart.d.ts +32 -0
  32. package/lib/commonjs/actions/ai/types/AiStreamPart.js +2 -0
  33. package/lib/commonjs/actions/ai/types/AiStreamPartType.d.ts +63 -0
  34. package/lib/commonjs/actions/ai/types/AiStreamPartType.js +67 -0
  35. package/lib/commonjs/actions/ai/types/AiStreamRaw.d.ts +9 -0
  36. package/lib/commonjs/actions/ai/types/AiStreamRaw.js +2 -0
  37. package/lib/commonjs/actions/ai/types/AiStreamReasoningDelta.d.ts +13 -0
  38. package/lib/commonjs/actions/ai/types/AiStreamReasoningDelta.js +2 -0
  39. package/lib/commonjs/actions/ai/types/AiStreamReasoningEnd.d.ts +9 -0
  40. package/lib/commonjs/actions/ai/types/AiStreamReasoningEnd.js +2 -0
  41. package/lib/commonjs/actions/ai/types/AiStreamReasoningFilePart.d.ts +9 -0
  42. package/lib/commonjs/actions/ai/types/AiStreamReasoningFilePart.js +2 -0
  43. package/lib/commonjs/actions/ai/types/AiStreamReasoningStart.d.ts +11 -0
  44. package/lib/commonjs/actions/ai/types/AiStreamReasoningStart.js +2 -0
  45. package/lib/commonjs/actions/ai/types/AiStreamSource.d.ts +20 -0
  46. package/lib/commonjs/actions/ai/types/AiStreamSource.js +2 -0
  47. package/lib/commonjs/actions/ai/types/AiStreamSourcePart.d.ts +9 -0
  48. package/lib/commonjs/actions/ai/types/AiStreamSourcePart.js +2 -0
  49. package/lib/commonjs/actions/ai/types/AiStreamStart.d.ts +7 -0
  50. package/lib/commonjs/actions/ai/types/AiStreamStart.js +2 -0
  51. package/lib/commonjs/actions/ai/types/AiStreamStartStep.d.ts +9 -0
  52. package/lib/commonjs/actions/ai/types/AiStreamStartStep.js +2 -0
  53. package/lib/commonjs/actions/ai/types/AiStreamTextDelta.d.ts +14 -0
  54. package/lib/commonjs/actions/ai/types/AiStreamTextDelta.js +2 -0
  55. package/lib/commonjs/actions/ai/types/AiStreamTextEnd.d.ts +9 -0
  56. package/lib/commonjs/actions/ai/types/AiStreamTextEnd.js +2 -0
  57. package/lib/commonjs/actions/ai/types/AiStreamTextStart.d.ts +12 -0
  58. package/lib/commonjs/actions/ai/types/AiStreamTextStart.js +2 -0
  59. package/lib/commonjs/actions/ai/types/AiStreamToolApprovalRequest.d.ts +18 -0
  60. package/lib/commonjs/actions/ai/types/AiStreamToolApprovalRequest.js +2 -0
  61. package/lib/commonjs/actions/ai/types/AiStreamToolApprovalResponse.d.ts +17 -0
  62. package/lib/commonjs/actions/ai/types/AiStreamToolApprovalResponse.js +2 -0
  63. package/lib/commonjs/actions/ai/types/AiStreamToolCall.d.ts +16 -0
  64. package/lib/commonjs/actions/ai/types/AiStreamToolCall.js +2 -0
  65. package/lib/commonjs/actions/ai/types/AiStreamToolError.d.ts +18 -0
  66. package/lib/commonjs/actions/ai/types/AiStreamToolError.js +2 -0
  67. package/lib/commonjs/actions/ai/types/AiStreamToolInputDelta.d.ts +14 -0
  68. package/lib/commonjs/actions/ai/types/AiStreamToolInputDelta.js +2 -0
  69. package/lib/commonjs/actions/ai/types/AiStreamToolInputEnd.d.ts +11 -0
  70. package/lib/commonjs/actions/ai/types/AiStreamToolInputEnd.js +2 -0
  71. package/lib/commonjs/actions/ai/types/AiStreamToolInputStart.d.ts +14 -0
  72. package/lib/commonjs/actions/ai/types/AiStreamToolInputStart.js +2 -0
  73. package/lib/commonjs/actions/ai/types/AiStreamToolOutputDenied.d.ts +13 -0
  74. package/lib/commonjs/actions/ai/types/AiStreamToolOutputDenied.js +2 -0
  75. package/lib/commonjs/actions/ai/types/AiStreamToolResult.d.ts +17 -0
  76. package/lib/commonjs/actions/ai/types/AiStreamToolResult.js +2 -0
  77. package/lib/commonjs/actions/ai/types/AiStreamUsage.d.ts +14 -0
  78. package/lib/commonjs/actions/ai/types/AiStreamUsage.js +2 -0
  79. package/lib/commonjs/actions/ai/types/index.d.ts +31 -0
  80. package/lib/commonjs/actions/ai/types/index.js +47 -0
  81. package/lib/commonjs/actions/claudeAi/ClaudeAiMessagesApiRequester.d.ts +8 -0
  82. package/lib/commonjs/actions/claudeAi/ClaudeAiMessagesApiRequester.js +10 -0
  83. package/lib/commonjs/actions/config/ConfigGetSecretActionRequester.d.ts +4 -0
  84. package/lib/commonjs/actions/config/ConfigGetSecretActionRequester.js +6 -0
  85. package/lib/commonjs/actions/config/ConfigSetParameterActionRequester.d.ts +4 -0
  86. package/lib/commonjs/actions/config/ConfigSetParameterActionRequester.js +6 -0
  87. package/lib/commonjs/actions/eventBus/EventBusSendMessageActionRequester.d.ts +5 -0
  88. package/lib/commonjs/actions/eventBus/EventBusSendMessageActionRequester.js +8 -6
  89. package/lib/commonjs/actions/eventBus/EventBusSendMessageActionTypes.d.ts +2 -4
  90. package/lib/commonjs/actions/file/FileActionType.d.ts +2 -1
  91. package/lib/commonjs/actions/file/FileActionType.js +1 -0
  92. package/lib/commonjs/actions/file/FileDeleteActionRequester.d.ts +4 -0
  93. package/lib/commonjs/actions/file/FileDeleteActionRequester.js +6 -0
  94. package/lib/commonjs/actions/file/FileExistsActionRequester.d.ts +3 -0
  95. package/lib/commonjs/actions/file/FileExistsActionRequester.js +5 -0
  96. package/lib/commonjs/actions/file/FileGenerateTemporarySecureUrlActionRequester.d.ts +3 -0
  97. package/lib/commonjs/actions/file/FileGenerateTemporarySecureUrlActionRequester.js +5 -0
  98. package/lib/commonjs/actions/file/FileGenerateTemporaryUploadSecureUrlActionRequester.d.ts +3 -0
  99. package/lib/commonjs/actions/file/FileGenerateTemporaryUploadSecureUrlActionRequester.js +5 -0
  100. package/lib/commonjs/actions/file/FileIsColdStorageActionRequester.d.ts +5 -0
  101. package/lib/commonjs/actions/file/FileIsColdStorageActionRequester.js +7 -0
  102. package/lib/commonjs/actions/file/FileListDirectoryActionRequester.d.ts +6 -0
  103. package/lib/commonjs/actions/file/FileListDirectoryActionRequester.js +8 -0
  104. package/lib/commonjs/actions/file/FileReadBinaryContentsActionRequester.d.ts +4 -0
  105. package/lib/commonjs/actions/file/FileReadBinaryContentsActionRequester.js +6 -0
  106. package/lib/commonjs/actions/file/FileStreamOpenActionTypes.d.ts +15 -0
  107. package/lib/commonjs/actions/file/FileStreamOpenActionTypes.js +2 -0
  108. package/lib/commonjs/actions/file/FileStreamOpenRequester.d.ts +7 -0
  109. package/lib/commonjs/actions/file/FileStreamOpenRequester.js +21 -0
  110. package/lib/commonjs/actions/file/FileWriteBinaryContentsActionRequester.d.ts +4 -0
  111. package/lib/commonjs/actions/file/FileWriteBinaryContentsActionRequester.js +6 -0
  112. package/lib/commonjs/actions/file/FileWriteObjectJsonActionRequester.d.ts +4 -0
  113. package/lib/commonjs/actions/file/FileWriteObjectJsonActionRequester.js +6 -0
  114. package/lib/commonjs/actions/file/FileWriteTextContentsActionRequester.d.ts +4 -0
  115. package/lib/commonjs/actions/file/FileWriteTextContentsActionRequester.js +6 -0
  116. package/lib/commonjs/actions/file/index.d.ts +2 -0
  117. package/lib/commonjs/actions/file/index.js +2 -0
  118. package/lib/commonjs/actions/index.d.ts +3 -0
  119. package/lib/commonjs/actions/index.js +3 -0
  120. package/lib/commonjs/actions/inlineFunction/InlineFunctionActionType.d.ts +3 -0
  121. package/lib/commonjs/actions/inlineFunction/InlineFunctionActionType.js +7 -0
  122. package/lib/commonjs/actions/inlineFunction/InlineFunctionExecuteActionRequester.d.ts +2 -0
  123. package/lib/commonjs/actions/inlineFunction/InlineFunctionExecuteActionRequester.js +13 -0
  124. package/lib/commonjs/actions/inlineFunction/InlineFunctionExecuteActionTypes.d.ts +12 -0
  125. package/lib/commonjs/actions/inlineFunction/InlineFunctionExecuteActionTypes.js +2 -0
  126. package/lib/commonjs/actions/inlineFunction/index.d.ts +3 -0
  127. package/lib/commonjs/actions/inlineFunction/index.js +19 -0
  128. package/lib/commonjs/actions/keyValueStore/KeyValueStoreDeleteActionRequester.d.ts +4 -0
  129. package/lib/commonjs/actions/keyValueStore/KeyValueStoreDeleteActionRequester.js +6 -0
  130. package/lib/commonjs/actions/keyValueStore/KeyValueStoreGetActionRequester.d.ts +4 -0
  131. package/lib/commonjs/actions/keyValueStore/KeyValueStoreGetActionRequester.js +6 -0
  132. package/lib/commonjs/actions/keyValueStore/KeyValueStoreGetAllActionRequester.d.ts +4 -0
  133. package/lib/commonjs/actions/keyValueStore/KeyValueStoreGetAllActionRequester.js +6 -0
  134. package/lib/commonjs/actions/keyValueStore/KeyValueStoreQueryActionRequester.d.ts +4 -0
  135. package/lib/commonjs/actions/keyValueStore/KeyValueStoreQueryActionRequester.js +6 -0
  136. package/lib/commonjs/actions/keyValueStore/KeyValueStoreScanActionRequester.d.ts +4 -0
  137. package/lib/commonjs/actions/keyValueStore/KeyValueStoreScanActionRequester.js +6 -0
  138. package/lib/commonjs/actions/keyValueStore/KeyValueStoreUpdateActionRequester.d.ts +4 -0
  139. package/lib/commonjs/actions/keyValueStore/KeyValueStoreUpdateActionRequester.js +6 -0
  140. package/lib/commonjs/actions/keyValueStore/KeyValueStoreUpsertActionRequester.d.ts +1 -1
  141. package/lib/commonjs/actions/network/NetworkActionType.d.ts +1 -1
  142. package/lib/commonjs/actions/network/NetworkRequestActionRequester.d.ts +3 -0
  143. package/lib/commonjs/actions/network/NetworkRequestActionRequester.js +5 -0
  144. package/lib/commonjs/actions/queue/QueueSendMessageActionRequester.d.ts +5 -0
  145. package/lib/commonjs/actions/queue/QueueSendMessageActionRequester.js +7 -6
  146. package/lib/commonjs/actions/queue/QueueSendMessageActionTypes.d.ts +2 -4
  147. package/lib/commonjs/actions/stream/StreamActionType.d.ts +4 -0
  148. package/lib/commonjs/actions/stream/StreamActionType.js +8 -0
  149. package/lib/commonjs/actions/stream/StreamCloseActionTypes.d.ts +11 -0
  150. package/lib/commonjs/actions/stream/StreamCloseActionTypes.js +2 -0
  151. package/lib/commonjs/actions/stream/StreamCloseRequester.d.ts +3 -0
  152. package/lib/commonjs/actions/stream/StreamCloseRequester.js +12 -0
  153. package/lib/commonjs/actions/stream/StreamReadActionTypes.d.ts +13 -0
  154. package/lib/commonjs/actions/stream/StreamReadActionTypes.js +2 -0
  155. package/lib/commonjs/actions/stream/StreamReadRequester.d.ts +3 -0
  156. package/lib/commonjs/actions/stream/StreamReadRequester.js +31 -0
  157. package/lib/commonjs/actions/stream/index.d.ts +5 -0
  158. package/lib/commonjs/actions/stream/index.js +21 -0
  159. package/lib/commonjs/actions/system/SystemActionType.d.ts +2 -1
  160. package/lib/commonjs/actions/system/SystemActionType.js +1 -0
  161. package/lib/commonjs/actions/system/SystemGetRuntimeCorrelationActionRequester.d.ts +2 -0
  162. package/lib/commonjs/actions/system/SystemGetRuntimeCorrelationActionRequester.js +10 -0
  163. package/lib/commonjs/actions/system/SystemGetRuntimeCorrelationActionTypes.d.ts +8 -0
  164. package/lib/commonjs/actions/system/SystemGetRuntimeCorrelationActionTypes.js +2 -0
  165. package/lib/commonjs/actions/system/index.d.ts +2 -0
  166. package/lib/commonjs/actions/system/index.js +2 -0
  167. package/lib/commonjs/actions/userDirectory/UserDirectoryActionType.d.ts +1 -0
  168. package/lib/commonjs/actions/userDirectory/UserDirectoryActionType.js +1 -0
  169. package/lib/commonjs/actions/userDirectory/UserDirectoryAssociateSoftwareTokenActionRequester.d.ts +2 -0
  170. package/lib/commonjs/actions/userDirectory/UserDirectoryAssociateSoftwareTokenActionRequester.js +13 -0
  171. package/lib/commonjs/actions/userDirectory/UserDirectoryAssociateSoftwareTokenActionTypes.d.ts +16 -0
  172. package/lib/commonjs/actions/userDirectory/UserDirectoryAssociateSoftwareTokenActionTypes.js +2 -0
  173. package/lib/commonjs/actions/userDirectory/UserDirectoryChangePasswordActionRequester.d.ts +5 -0
  174. package/lib/commonjs/actions/userDirectory/UserDirectoryChangePasswordActionRequester.js +7 -0
  175. package/lib/commonjs/actions/userDirectory/UserDirectoryConfirmEmailVerificationActionRequester.d.ts +5 -0
  176. package/lib/commonjs/actions/userDirectory/UserDirectoryConfirmEmailVerificationActionRequester.js +7 -0
  177. package/lib/commonjs/actions/userDirectory/UserDirectoryConfirmForgotPasswordActionRequester.d.ts +6 -0
  178. package/lib/commonjs/actions/userDirectory/UserDirectoryConfirmForgotPasswordActionRequester.js +8 -0
  179. package/lib/commonjs/actions/userDirectory/UserDirectoryCreateUserActionRequester.d.ts +5 -0
  180. package/lib/commonjs/actions/userDirectory/UserDirectoryCreateUserActionRequester.js +7 -0
  181. package/lib/commonjs/actions/userDirectory/UserDirectoryDecodeAccessTokenActionRequester.d.ts +3 -0
  182. package/lib/commonjs/actions/userDirectory/UserDirectoryDecodeAccessTokenActionRequester.js +5 -0
  183. package/lib/commonjs/actions/userDirectory/UserDirectoryForgotPasswordActionRequester.d.ts +4 -0
  184. package/lib/commonjs/actions/userDirectory/UserDirectoryForgotPasswordActionRequester.js +6 -0
  185. package/lib/commonjs/actions/userDirectory/UserDirectoryGetUserAttributesByUserIdActionRequester.d.ts +3 -0
  186. package/lib/commonjs/actions/userDirectory/UserDirectoryGetUserAttributesByUserIdActionRequester.js +5 -0
  187. package/lib/commonjs/actions/userDirectory/UserDirectoryGetUsersActionRequester.d.ts +4 -0
  188. package/lib/commonjs/actions/userDirectory/UserDirectoryGetUsersActionRequester.js +6 -0
  189. package/lib/commonjs/actions/userDirectory/UserDirectoryGetUsersByAttributeActionRequester.d.ts +4 -0
  190. package/lib/commonjs/actions/userDirectory/UserDirectoryGetUsersByAttributeActionRequester.js +6 -0
  191. package/lib/commonjs/actions/userDirectory/UserDirectoryRefreshTokenActionRequester.d.ts +4 -0
  192. package/lib/commonjs/actions/userDirectory/UserDirectoryRefreshTokenActionRequester.js +6 -0
  193. package/lib/commonjs/actions/userDirectory/UserDirectoryRequestEmailVerificationActionRequester.d.ts +5 -0
  194. package/lib/commonjs/actions/userDirectory/UserDirectoryRequestEmailVerificationActionRequester.js +7 -0
  195. package/lib/commonjs/actions/userDirectory/UserDirectoryRespondToAuthChallengeActionRequester.d.ts +7 -0
  196. package/lib/commonjs/actions/userDirectory/UserDirectoryRespondToAuthChallengeActionRequester.js +9 -0
  197. package/lib/commonjs/actions/userDirectory/UserDirectorySetPasswordActionRequester.d.ts +5 -0
  198. package/lib/commonjs/actions/userDirectory/UserDirectorySetPasswordActionRequester.js +7 -0
  199. package/lib/commonjs/actions/userDirectory/UserDirectorySetUserAttributesActionRequester.d.ts +6 -0
  200. package/lib/commonjs/actions/userDirectory/UserDirectorySetUserAttributesActionRequester.js +8 -0
  201. package/lib/commonjs/actions/userDirectory/index.d.ts +2 -0
  202. package/lib/commonjs/actions/userDirectory/index.js +2 -0
  203. package/lib/commonjs/actions/userDirectory/types/AnyAuthChallenge.d.ts +2 -2
  204. package/lib/commonjs/actions/userDirectory/types/AuthChallenges/AuthenticateUserMfaSetupChallenge.d.ts +6 -0
  205. package/lib/commonjs/actions/userDirectory/types/AuthChallenges/AuthenticateUserMfaSetupChallenge.js +2 -0
  206. package/lib/commonjs/actions/userDirectory/types/AuthChallenges/AuthenticateUserSoftwareTokenMfaChallenge.d.ts +6 -0
  207. package/lib/commonjs/actions/userDirectory/types/AuthChallenges/AuthenticateUserSoftwareTokenMfaChallenge.js +2 -0
  208. package/lib/commonjs/actions/userDirectory/types/AuthChallenges/index.d.ts +2 -0
  209. package/lib/commonjs/actions/userDirectory/types/AuthChallenges/index.js +2 -0
  210. package/lib/commonjs/actions/userDirectory/types/AuthenticateUserChallenge.d.ts +3 -1
  211. package/lib/commonjs/actions/userDirectory/types/AuthenticateUserChallenge.js +6 -0
  212. package/lib/commonjs/config/QPQConfig.d.ts +4 -1
  213. package/lib/commonjs/config/QPQConfig.js +3 -0
  214. package/lib/commonjs/config/settings/ai.d.ts +17 -0
  215. package/lib/commonjs/config/settings/ai.js +13 -0
  216. package/lib/commonjs/config/settings/environmentSettings.d.ts +2 -3
  217. package/lib/commonjs/config/settings/environmentSettings.js +3 -4
  218. package/lib/commonjs/config/settings/index.d.ts +3 -0
  219. package/lib/commonjs/config/settings/index.js +3 -0
  220. package/lib/commonjs/config/settings/inlineFunction.d.ts +11 -0
  221. package/lib/commonjs/config/settings/inlineFunction.js +17 -0
  222. package/lib/commonjs/config/settings/keyValueStore.d.ts +4 -2
  223. package/lib/commonjs/config/settings/keyValueStore.js +3 -2
  224. package/lib/commonjs/config/settings/serviceSettings.d.ts +5 -0
  225. package/lib/commonjs/config/settings/serviceSettings.js +10 -0
  226. package/lib/commonjs/config/settings/storageDrive.d.ts +2 -0
  227. package/lib/commonjs/config/settings/storageDrive.js +2 -1
  228. package/lib/commonjs/config/settings/userDirectory.d.ts +14 -21
  229. package/lib/commonjs/config/settings/userDirectory.js +21 -12
  230. package/lib/commonjs/config/utils/crossModuleUtils.d.ts +6 -0
  231. package/lib/commonjs/config/utils/crossModuleUtils.js +8 -1
  232. package/lib/commonjs/config/utils/qpqFunctionRuntimeUtils.js +1 -1
  233. package/lib/commonjs/constants/index.d.ts +1 -0
  234. package/lib/commonjs/constants/index.js +1 -0
  235. package/lib/commonjs/constants/storageDrives.d.ts +2 -0
  236. package/lib/commonjs/constants/storageDrives.js +13 -0
  237. package/lib/commonjs/createImplementationRuntime.d.ts +2 -2
  238. package/lib/commonjs/createImplementationRuntime.js +4 -4
  239. package/lib/commonjs/index.d.ts +2 -0
  240. package/lib/commonjs/index.js +2 -0
  241. package/lib/commonjs/logic/actionLogic.js +9 -5
  242. package/lib/commonjs/logic/context/createLocalContextIdentifier.d.ts +2 -0
  243. package/lib/commonjs/logic/context/createLocalContextIdentifier.js +11 -0
  244. package/lib/commonjs/logic/context/index.d.ts +2 -0
  245. package/lib/commonjs/logic/context/index.js +2 -0
  246. package/lib/commonjs/logic/context/toCrossServiceSession.d.ts +2 -0
  247. package/lib/commonjs/logic/context/toCrossServiceSession.js +27 -0
  248. package/lib/commonjs/logic/index.d.ts +1 -0
  249. package/lib/commonjs/logic/index.js +1 -0
  250. package/lib/commonjs/logic/stateEffects/index.d.ts +1 -0
  251. package/lib/commonjs/logic/stateEffects/index.js +1 -0
  252. package/lib/commonjs/logic/stateEffects/replayEffects.d.ts +2 -0
  253. package/lib/commonjs/logic/stateEffects/replayEffects.js +13 -0
  254. package/lib/commonjs/logic/stream/createStreamRegistry.d.ts +2 -0
  255. package/lib/commonjs/logic/stream/createStreamRegistry.js +81 -0
  256. package/lib/commonjs/logic/stream/index.d.ts +1 -0
  257. package/lib/commonjs/logic/stream/index.js +17 -0
  258. package/lib/commonjs/proiseify/getSystemExecuteStoryActionProcessor.js +4 -4
  259. package/lib/commonjs/qpqCoreUtils.d.ts +5 -1
  260. package/lib/commonjs/qpqCoreUtils.js +44 -4
  261. package/lib/commonjs/qpqCoreUtilsLib.d.ts +5 -0
  262. package/lib/commonjs/runtime/createRuntime.d.ts +2 -2
  263. package/lib/commonjs/runtime/createRuntime.js +2 -2
  264. package/lib/commonjs/runtime/processAction.d.ts +2 -2
  265. package/lib/commonjs/runtime/processAction.js +6 -2
  266. package/lib/commonjs/runtime/resolveStory.d.ts +2 -2
  267. package/lib/commonjs/runtime/resolveStory.js +7 -2
  268. package/lib/commonjs/runtime/resolveStoryWithLogs.d.ts +2 -2
  269. package/lib/commonjs/runtime/resolveStoryWithLogs.js +3 -3
  270. package/lib/commonjs/stories/context/askContextProvideValue.js +30 -99
  271. package/lib/commonjs/stories/context/index.d.ts +0 -1
  272. package/lib/commonjs/stories/context/index.js +0 -1
  273. package/lib/commonjs/stories/dateTime/askGetCurrentEpoch.js +3 -7
  274. package/lib/commonjs/stories/dateTime/askGetCurrentEpochMs.d.ts +2 -0
  275. package/lib/commonjs/stories/dateTime/askGetCurrentEpochMs.js +9 -0
  276. package/lib/commonjs/stories/dateTime/index.d.ts +1 -0
  277. package/lib/commonjs/stories/dateTime/index.js +1 -0
  278. package/lib/commonjs/stories/index.d.ts +2 -0
  279. package/lib/commonjs/stories/index.js +2 -0
  280. package/lib/commonjs/stories/state/askReduceState.d.ts +3 -0
  281. package/lib/commonjs/stories/state/askReduceState.js +37 -0
  282. package/lib/commonjs/stories/state/index.d.ts +1 -0
  283. package/lib/commonjs/stories/state/index.js +17 -0
  284. package/lib/commonjs/stories/stream/askStreamMap.d.ts +3 -0
  285. package/lib/commonjs/stories/stream/askStreamMap.js +24 -0
  286. package/lib/commonjs/stories/stream/askStreamProcess.d.ts +3 -0
  287. package/lib/commonjs/stories/stream/askStreamProcess.js +20 -0
  288. package/lib/commonjs/stories/stream/index.d.ts +2 -0
  289. package/lib/commonjs/stories/stream/index.js +18 -0
  290. package/lib/commonjs/stories/system/askCatch.d.ts +1 -1
  291. package/lib/commonjs/stories/system/askCatch.js +6 -1
  292. package/lib/commonjs/stories/system/askOverrideActions.js +21 -15
  293. package/lib/commonjs/testing/configTesting.d.ts +10 -0
  294. package/lib/commonjs/testing/configTesting.js +11 -0
  295. package/lib/commonjs/testing/index.d.ts +4 -0
  296. package/lib/commonjs/testing/index.js +20 -0
  297. package/lib/commonjs/testing/requesterTesting.d.ts +6 -0
  298. package/lib/commonjs/testing/requesterTesting.js +17 -0
  299. package/lib/commonjs/testing/runtimeTesting.d.ts +11 -0
  300. package/lib/commonjs/testing/runtimeTesting.js +58 -0
  301. package/lib/commonjs/testing/storyTesting.d.ts +22 -0
  302. package/lib/commonjs/testing/storyTesting.js +97 -0
  303. package/lib/commonjs/types/Action.d.ts +5 -1
  304. package/lib/commonjs/types/QpqContextIdentifier.d.ts +1 -0
  305. package/lib/commonjs/types/QpqFunctionRuntime.d.ts +5 -4
  306. package/lib/commonjs/types/QpqLogger.d.ts +1 -1
  307. package/lib/commonjs/types/StorySession.d.ts +2 -0
  308. package/lib/commonjs/types/StreamRegistry.d.ts +17 -0
  309. package/lib/commonjs/types/StreamRegistry.js +2 -0
  310. package/lib/commonjs/types/index.d.ts +1 -0
  311. package/lib/commonjs/types/index.js +1 -0
  312. package/lib/commonjs/utils/index.d.ts +2 -0
  313. package/lib/commonjs/utils/index.js +2 -0
  314. package/lib/commonjs/utils/mimeTypes.d.ts +2 -0
  315. package/lib/commonjs/utils/mimeTypes.js +44 -0
  316. package/lib/commonjs/utils/path/getUniqueKeyFromQpqFunctionRuntime.js +2 -2
  317. package/lib/commonjs/utils/path/index.d.ts +1 -1
  318. package/lib/commonjs/utils/path/index.js +1 -1
  319. package/lib/commonjs/utils/path/isQpqFunctionRuntimeAdvanced.d.ts +2 -0
  320. package/lib/commonjs/utils/path/isQpqFunctionRuntimeAdvanced.js +6 -0
  321. package/lib/commonjs/utils/uuid/generateUuid.d.ts +12 -0
  322. package/lib/commonjs/utils/uuid/generateUuid.js +17 -0
  323. package/lib/commonjs/utils/uuid/index.d.ts +1 -0
  324. package/lib/commonjs/utils/uuid/index.js +17 -0
  325. package/lib/esm/actions/ai/AiActionType.d.ts +4 -0
  326. package/lib/esm/actions/ai/AiActionType.js +5 -0
  327. package/lib/esm/actions/ai/AiMessage.d.ts +43 -0
  328. package/lib/esm/actions/ai/AiMessage.js +1 -0
  329. package/lib/esm/actions/ai/AiModel.d.ts +11 -0
  330. package/lib/esm/actions/ai/AiModel.js +12 -0
  331. package/lib/esm/actions/ai/AiPromptActionRequester.d.ts +9 -0
  332. package/lib/esm/actions/ai/AiPromptActionRequester.js +13 -0
  333. package/lib/esm/actions/ai/AiPromptActionTypes.d.ts +20 -0
  334. package/lib/esm/actions/ai/AiPromptActionTypes.js +1 -0
  335. package/lib/esm/actions/ai/AiPromptStreamActionRequester.d.ts +9 -0
  336. package/lib/esm/actions/ai/AiPromptStreamActionRequester.js +13 -0
  337. package/lib/esm/actions/ai/AiPromptStreamActionTypes.d.ts +19 -0
  338. package/lib/esm/actions/ai/AiPromptStreamActionTypes.js +1 -0
  339. package/lib/esm/actions/ai/index.d.ts +8 -0
  340. package/lib/esm/actions/ai/index.js +8 -0
  341. package/lib/esm/actions/ai/types/AiStreamAbort.d.ts +11 -0
  342. package/lib/esm/actions/ai/types/AiStreamAbort.js +1 -0
  343. package/lib/esm/actions/ai/types/AiStreamCustom.d.ts +11 -0
  344. package/lib/esm/actions/ai/types/AiStreamCustom.js +1 -0
  345. package/lib/esm/actions/ai/types/AiStreamError.d.ts +10 -0
  346. package/lib/esm/actions/ai/types/AiStreamError.js +1 -0
  347. package/lib/esm/actions/ai/types/AiStreamFile.d.ts +12 -0
  348. package/lib/esm/actions/ai/types/AiStreamFile.js +1 -0
  349. package/lib/esm/actions/ai/types/AiStreamFilePart.d.ts +9 -0
  350. package/lib/esm/actions/ai/types/AiStreamFilePart.js +1 -0
  351. package/lib/esm/actions/ai/types/AiStreamFinish.d.ts +13 -0
  352. package/lib/esm/actions/ai/types/AiStreamFinish.js +1 -0
  353. package/lib/esm/actions/ai/types/AiStreamFinishStep.d.ts +14 -0
  354. package/lib/esm/actions/ai/types/AiStreamFinishStep.js +1 -0
  355. package/lib/esm/actions/ai/types/AiStreamPart.d.ts +32 -0
  356. package/lib/esm/actions/ai/types/AiStreamPart.js +1 -0
  357. package/lib/esm/actions/ai/types/AiStreamPartType.d.ts +63 -0
  358. package/lib/esm/actions/ai/types/AiStreamPartType.js +64 -0
  359. package/lib/esm/actions/ai/types/AiStreamRaw.d.ts +9 -0
  360. package/lib/esm/actions/ai/types/AiStreamRaw.js +1 -0
  361. package/lib/esm/actions/ai/types/AiStreamReasoningDelta.d.ts +13 -0
  362. package/lib/esm/actions/ai/types/AiStreamReasoningDelta.js +1 -0
  363. package/lib/esm/actions/ai/types/AiStreamReasoningEnd.d.ts +9 -0
  364. package/lib/esm/actions/ai/types/AiStreamReasoningEnd.js +1 -0
  365. package/lib/esm/actions/ai/types/AiStreamReasoningFilePart.d.ts +9 -0
  366. package/lib/esm/actions/ai/types/AiStreamReasoningFilePart.js +1 -0
  367. package/lib/esm/actions/ai/types/AiStreamReasoningStart.d.ts +11 -0
  368. package/lib/esm/actions/ai/types/AiStreamReasoningStart.js +1 -0
  369. package/lib/esm/actions/ai/types/AiStreamSource.d.ts +20 -0
  370. package/lib/esm/actions/ai/types/AiStreamSource.js +1 -0
  371. package/lib/esm/actions/ai/types/AiStreamSourcePart.d.ts +9 -0
  372. package/lib/esm/actions/ai/types/AiStreamSourcePart.js +1 -0
  373. package/lib/esm/actions/ai/types/AiStreamStart.d.ts +7 -0
  374. package/lib/esm/actions/ai/types/AiStreamStart.js +1 -0
  375. package/lib/esm/actions/ai/types/AiStreamStartStep.d.ts +9 -0
  376. package/lib/esm/actions/ai/types/AiStreamStartStep.js +1 -0
  377. package/lib/esm/actions/ai/types/AiStreamTextDelta.d.ts +14 -0
  378. package/lib/esm/actions/ai/types/AiStreamTextDelta.js +1 -0
  379. package/lib/esm/actions/ai/types/AiStreamTextEnd.d.ts +9 -0
  380. package/lib/esm/actions/ai/types/AiStreamTextEnd.js +1 -0
  381. package/lib/esm/actions/ai/types/AiStreamTextStart.d.ts +12 -0
  382. package/lib/esm/actions/ai/types/AiStreamTextStart.js +1 -0
  383. package/lib/esm/actions/ai/types/AiStreamToolApprovalRequest.d.ts +18 -0
  384. package/lib/esm/actions/ai/types/AiStreamToolApprovalRequest.js +1 -0
  385. package/lib/esm/actions/ai/types/AiStreamToolApprovalResponse.d.ts +17 -0
  386. package/lib/esm/actions/ai/types/AiStreamToolApprovalResponse.js +1 -0
  387. package/lib/esm/actions/ai/types/AiStreamToolCall.d.ts +16 -0
  388. package/lib/esm/actions/ai/types/AiStreamToolCall.js +1 -0
  389. package/lib/esm/actions/ai/types/AiStreamToolError.d.ts +18 -0
  390. package/lib/esm/actions/ai/types/AiStreamToolError.js +1 -0
  391. package/lib/esm/actions/ai/types/AiStreamToolInputDelta.d.ts +14 -0
  392. package/lib/esm/actions/ai/types/AiStreamToolInputDelta.js +1 -0
  393. package/lib/esm/actions/ai/types/AiStreamToolInputEnd.d.ts +11 -0
  394. package/lib/esm/actions/ai/types/AiStreamToolInputEnd.js +1 -0
  395. package/lib/esm/actions/ai/types/AiStreamToolInputStart.d.ts +14 -0
  396. package/lib/esm/actions/ai/types/AiStreamToolInputStart.js +1 -0
  397. package/lib/esm/actions/ai/types/AiStreamToolOutputDenied.d.ts +13 -0
  398. package/lib/esm/actions/ai/types/AiStreamToolOutputDenied.js +1 -0
  399. package/lib/esm/actions/ai/types/AiStreamToolResult.d.ts +17 -0
  400. package/lib/esm/actions/ai/types/AiStreamToolResult.js +1 -0
  401. package/lib/esm/actions/ai/types/AiStreamUsage.d.ts +14 -0
  402. package/lib/esm/actions/ai/types/AiStreamUsage.js +1 -0
  403. package/lib/esm/actions/ai/types/index.d.ts +31 -0
  404. package/lib/esm/actions/ai/types/index.js +31 -0
  405. package/lib/esm/actions/claudeAi/ClaudeAiMessagesApiRequester.d.ts +8 -0
  406. package/lib/esm/actions/claudeAi/ClaudeAiMessagesApiRequester.js +9 -0
  407. package/lib/esm/actions/config/ConfigGetSecretActionRequester.d.ts +4 -0
  408. package/lib/esm/actions/config/ConfigGetSecretActionRequester.js +5 -0
  409. package/lib/esm/actions/config/ConfigSetParameterActionRequester.d.ts +4 -0
  410. package/lib/esm/actions/config/ConfigSetParameterActionRequester.js +5 -0
  411. package/lib/esm/actions/eventBus/EventBusSendMessageActionRequester.d.ts +5 -0
  412. package/lib/esm/actions/eventBus/EventBusSendMessageActionRequester.js +7 -9
  413. package/lib/esm/actions/eventBus/EventBusSendMessageActionTypes.d.ts +2 -4
  414. package/lib/esm/actions/file/FileActionType.d.ts +2 -1
  415. package/lib/esm/actions/file/FileActionType.js +1 -0
  416. package/lib/esm/actions/file/FileDeleteActionRequester.d.ts +4 -0
  417. package/lib/esm/actions/file/FileDeleteActionRequester.js +5 -0
  418. package/lib/esm/actions/file/FileExistsActionRequester.d.ts +3 -0
  419. package/lib/esm/actions/file/FileExistsActionRequester.js +4 -0
  420. package/lib/esm/actions/file/FileGenerateTemporarySecureUrlActionRequester.d.ts +3 -0
  421. package/lib/esm/actions/file/FileGenerateTemporarySecureUrlActionRequester.js +4 -0
  422. package/lib/esm/actions/file/FileGenerateTemporaryUploadSecureUrlActionRequester.d.ts +3 -0
  423. package/lib/esm/actions/file/FileGenerateTemporaryUploadSecureUrlActionRequester.js +4 -0
  424. package/lib/esm/actions/file/FileIsColdStorageActionRequester.d.ts +5 -0
  425. package/lib/esm/actions/file/FileIsColdStorageActionRequester.js +6 -0
  426. package/lib/esm/actions/file/FileListDirectoryActionRequester.d.ts +6 -0
  427. package/lib/esm/actions/file/FileListDirectoryActionRequester.js +7 -0
  428. package/lib/esm/actions/file/FileReadBinaryContentsActionRequester.d.ts +4 -0
  429. package/lib/esm/actions/file/FileReadBinaryContentsActionRequester.js +5 -0
  430. package/lib/esm/actions/file/FileStreamOpenActionTypes.d.ts +15 -0
  431. package/lib/esm/actions/file/FileStreamOpenActionTypes.js +1 -0
  432. package/lib/esm/actions/file/FileStreamOpenRequester.d.ts +7 -0
  433. package/lib/esm/actions/file/FileStreamOpenRequester.js +17 -0
  434. package/lib/esm/actions/file/FileWriteBinaryContentsActionRequester.d.ts +4 -0
  435. package/lib/esm/actions/file/FileWriteBinaryContentsActionRequester.js +5 -0
  436. package/lib/esm/actions/file/FileWriteObjectJsonActionRequester.d.ts +4 -0
  437. package/lib/esm/actions/file/FileWriteObjectJsonActionRequester.js +5 -0
  438. package/lib/esm/actions/file/FileWriteTextContentsActionRequester.d.ts +4 -0
  439. package/lib/esm/actions/file/FileWriteTextContentsActionRequester.js +5 -0
  440. package/lib/esm/actions/file/index.d.ts +2 -0
  441. package/lib/esm/actions/file/index.js +2 -0
  442. package/lib/esm/actions/index.d.ts +3 -0
  443. package/lib/esm/actions/index.js +3 -0
  444. package/lib/esm/actions/inlineFunction/InlineFunctionActionType.d.ts +3 -0
  445. package/lib/esm/actions/inlineFunction/InlineFunctionActionType.js +4 -0
  446. package/lib/esm/actions/inlineFunction/InlineFunctionExecuteActionRequester.d.ts +2 -0
  447. package/lib/esm/actions/inlineFunction/InlineFunctionExecuteActionRequester.js +10 -0
  448. package/lib/esm/actions/inlineFunction/InlineFunctionExecuteActionTypes.d.ts +12 -0
  449. package/lib/esm/actions/inlineFunction/InlineFunctionExecuteActionTypes.js +1 -0
  450. package/lib/esm/actions/inlineFunction/index.d.ts +3 -0
  451. package/lib/esm/actions/inlineFunction/index.js +3 -0
  452. package/lib/esm/actions/keyValueStore/KeyValueStoreDeleteActionRequester.d.ts +4 -0
  453. package/lib/esm/actions/keyValueStore/KeyValueStoreDeleteActionRequester.js +5 -0
  454. package/lib/esm/actions/keyValueStore/KeyValueStoreGetActionRequester.d.ts +4 -0
  455. package/lib/esm/actions/keyValueStore/KeyValueStoreGetActionRequester.js +5 -0
  456. package/lib/esm/actions/keyValueStore/KeyValueStoreGetAllActionRequester.d.ts +4 -0
  457. package/lib/esm/actions/keyValueStore/KeyValueStoreGetAllActionRequester.js +5 -0
  458. package/lib/esm/actions/keyValueStore/KeyValueStoreQueryActionRequester.d.ts +4 -0
  459. package/lib/esm/actions/keyValueStore/KeyValueStoreQueryActionRequester.js +5 -0
  460. package/lib/esm/actions/keyValueStore/KeyValueStoreScanActionRequester.d.ts +4 -0
  461. package/lib/esm/actions/keyValueStore/KeyValueStoreScanActionRequester.js +5 -0
  462. package/lib/esm/actions/keyValueStore/KeyValueStoreUpdateActionRequester.d.ts +4 -0
  463. package/lib/esm/actions/keyValueStore/KeyValueStoreUpdateActionRequester.js +5 -0
  464. package/lib/esm/actions/keyValueStore/KeyValueStoreUpsertActionRequester.d.ts +1 -1
  465. package/lib/esm/actions/network/NetworkActionType.d.ts +1 -1
  466. package/lib/esm/actions/network/NetworkRequestActionRequester.d.ts +3 -0
  467. package/lib/esm/actions/network/NetworkRequestActionRequester.js +4 -0
  468. package/lib/esm/actions/queue/QueueSendMessageActionRequester.d.ts +5 -0
  469. package/lib/esm/actions/queue/QueueSendMessageActionRequester.js +6 -6
  470. package/lib/esm/actions/queue/QueueSendMessageActionTypes.d.ts +2 -4
  471. package/lib/esm/actions/stream/StreamActionType.d.ts +4 -0
  472. package/lib/esm/actions/stream/StreamActionType.js +5 -0
  473. package/lib/esm/actions/stream/StreamCloseActionTypes.d.ts +11 -0
  474. package/lib/esm/actions/stream/StreamCloseActionTypes.js +1 -0
  475. package/lib/esm/actions/stream/StreamCloseRequester.d.ts +3 -0
  476. package/lib/esm/actions/stream/StreamCloseRequester.js +9 -0
  477. package/lib/esm/actions/stream/StreamReadActionTypes.d.ts +13 -0
  478. package/lib/esm/actions/stream/StreamReadActionTypes.js +1 -0
  479. package/lib/esm/actions/stream/StreamReadRequester.d.ts +3 -0
  480. package/lib/esm/actions/stream/StreamReadRequester.js +28 -0
  481. package/lib/esm/actions/stream/index.d.ts +5 -0
  482. package/lib/esm/actions/stream/index.js +5 -0
  483. package/lib/esm/actions/system/SystemActionType.d.ts +2 -1
  484. package/lib/esm/actions/system/SystemActionType.js +1 -0
  485. package/lib/esm/actions/system/SystemGetRuntimeCorrelationActionRequester.d.ts +2 -0
  486. package/lib/esm/actions/system/SystemGetRuntimeCorrelationActionRequester.js +7 -0
  487. package/lib/esm/actions/system/SystemGetRuntimeCorrelationActionTypes.d.ts +8 -0
  488. package/lib/esm/actions/system/SystemGetRuntimeCorrelationActionTypes.js +1 -0
  489. package/lib/esm/actions/system/index.d.ts +2 -0
  490. package/lib/esm/actions/system/index.js +2 -0
  491. package/lib/esm/actions/userDirectory/UserDirectoryActionType.d.ts +1 -0
  492. package/lib/esm/actions/userDirectory/UserDirectoryActionType.js +1 -0
  493. package/lib/esm/actions/userDirectory/UserDirectoryAssociateSoftwareTokenActionRequester.d.ts +2 -0
  494. package/lib/esm/actions/userDirectory/UserDirectoryAssociateSoftwareTokenActionRequester.js +10 -0
  495. package/lib/esm/actions/userDirectory/UserDirectoryAssociateSoftwareTokenActionTypes.d.ts +16 -0
  496. package/lib/esm/actions/userDirectory/UserDirectoryAssociateSoftwareTokenActionTypes.js +1 -0
  497. package/lib/esm/actions/userDirectory/UserDirectoryChangePasswordActionRequester.d.ts +5 -0
  498. package/lib/esm/actions/userDirectory/UserDirectoryChangePasswordActionRequester.js +6 -0
  499. package/lib/esm/actions/userDirectory/UserDirectoryConfirmEmailVerificationActionRequester.d.ts +5 -0
  500. package/lib/esm/actions/userDirectory/UserDirectoryConfirmEmailVerificationActionRequester.js +6 -0
  501. package/lib/esm/actions/userDirectory/UserDirectoryConfirmForgotPasswordActionRequester.d.ts +6 -0
  502. package/lib/esm/actions/userDirectory/UserDirectoryConfirmForgotPasswordActionRequester.js +7 -0
  503. package/lib/esm/actions/userDirectory/UserDirectoryCreateUserActionRequester.d.ts +5 -0
  504. package/lib/esm/actions/userDirectory/UserDirectoryCreateUserActionRequester.js +6 -0
  505. package/lib/esm/actions/userDirectory/UserDirectoryDecodeAccessTokenActionRequester.d.ts +3 -0
  506. package/lib/esm/actions/userDirectory/UserDirectoryDecodeAccessTokenActionRequester.js +4 -0
  507. package/lib/esm/actions/userDirectory/UserDirectoryForgotPasswordActionRequester.d.ts +4 -0
  508. package/lib/esm/actions/userDirectory/UserDirectoryForgotPasswordActionRequester.js +5 -0
  509. package/lib/esm/actions/userDirectory/UserDirectoryGetUserAttributesByUserIdActionRequester.d.ts +3 -0
  510. package/lib/esm/actions/userDirectory/UserDirectoryGetUserAttributesByUserIdActionRequester.js +4 -0
  511. package/lib/esm/actions/userDirectory/UserDirectoryGetUsersActionRequester.d.ts +4 -0
  512. package/lib/esm/actions/userDirectory/UserDirectoryGetUsersActionRequester.js +5 -0
  513. package/lib/esm/actions/userDirectory/UserDirectoryGetUsersByAttributeActionRequester.d.ts +4 -0
  514. package/lib/esm/actions/userDirectory/UserDirectoryGetUsersByAttributeActionRequester.js +5 -0
  515. package/lib/esm/actions/userDirectory/UserDirectoryRefreshTokenActionRequester.d.ts +4 -0
  516. package/lib/esm/actions/userDirectory/UserDirectoryRefreshTokenActionRequester.js +5 -0
  517. package/lib/esm/actions/userDirectory/UserDirectoryRequestEmailVerificationActionRequester.d.ts +5 -0
  518. package/lib/esm/actions/userDirectory/UserDirectoryRequestEmailVerificationActionRequester.js +6 -0
  519. package/lib/esm/actions/userDirectory/UserDirectoryRespondToAuthChallengeActionRequester.d.ts +7 -0
  520. package/lib/esm/actions/userDirectory/UserDirectoryRespondToAuthChallengeActionRequester.js +8 -0
  521. package/lib/esm/actions/userDirectory/UserDirectorySetPasswordActionRequester.d.ts +5 -0
  522. package/lib/esm/actions/userDirectory/UserDirectorySetPasswordActionRequester.js +6 -0
  523. package/lib/esm/actions/userDirectory/UserDirectorySetUserAttributesActionRequester.d.ts +6 -0
  524. package/lib/esm/actions/userDirectory/UserDirectorySetUserAttributesActionRequester.js +7 -0
  525. package/lib/esm/actions/userDirectory/index.d.ts +2 -0
  526. package/lib/esm/actions/userDirectory/index.js +2 -0
  527. package/lib/esm/actions/userDirectory/types/AnyAuthChallenge.d.ts +2 -2
  528. package/lib/esm/actions/userDirectory/types/AuthChallenges/AuthenticateUserMfaSetupChallenge.d.ts +6 -0
  529. package/lib/esm/actions/userDirectory/types/AuthChallenges/AuthenticateUserMfaSetupChallenge.js +1 -0
  530. package/lib/esm/actions/userDirectory/types/AuthChallenges/AuthenticateUserSoftwareTokenMfaChallenge.d.ts +6 -0
  531. package/lib/esm/actions/userDirectory/types/AuthChallenges/AuthenticateUserSoftwareTokenMfaChallenge.js +1 -0
  532. package/lib/esm/actions/userDirectory/types/AuthChallenges/index.d.ts +2 -0
  533. package/lib/esm/actions/userDirectory/types/AuthChallenges/index.js +2 -0
  534. package/lib/esm/actions/userDirectory/types/AuthenticateUserChallenge.d.ts +3 -1
  535. package/lib/esm/actions/userDirectory/types/AuthenticateUserChallenge.js +6 -0
  536. package/lib/esm/config/QPQConfig.d.ts +4 -1
  537. package/lib/esm/config/QPQConfig.js +3 -0
  538. package/lib/esm/config/settings/ai.d.ts +17 -0
  539. package/lib/esm/config/settings/ai.js +9 -0
  540. package/lib/esm/config/settings/environmentSettings.d.ts +2 -3
  541. package/lib/esm/config/settings/environmentSettings.js +3 -4
  542. package/lib/esm/config/settings/index.d.ts +3 -0
  543. package/lib/esm/config/settings/index.js +3 -0
  544. package/lib/esm/config/settings/inlineFunction.d.ts +11 -0
  545. package/lib/esm/config/settings/inlineFunction.js +13 -0
  546. package/lib/esm/config/settings/keyValueStore.d.ts +4 -2
  547. package/lib/esm/config/settings/keyValueStore.js +2 -1
  548. package/lib/esm/config/settings/serviceSettings.d.ts +5 -0
  549. package/lib/esm/config/settings/serviceSettings.js +6 -0
  550. package/lib/esm/config/settings/storageDrive.d.ts +2 -0
  551. package/lib/esm/config/settings/storageDrive.js +1 -0
  552. package/lib/esm/config/settings/userDirectory.d.ts +14 -21
  553. package/lib/esm/config/settings/userDirectory.js +16 -7
  554. package/lib/esm/config/utils/crossModuleUtils.d.ts +6 -0
  555. package/lib/esm/config/utils/crossModuleUtils.js +6 -0
  556. package/lib/esm/config/utils/qpqFunctionRuntimeUtils.js +2 -2
  557. package/lib/esm/constants/index.d.ts +1 -0
  558. package/lib/esm/constants/index.js +1 -0
  559. package/lib/esm/constants/storageDrives.d.ts +2 -0
  560. package/lib/esm/constants/storageDrives.js +10 -0
  561. package/lib/esm/createImplementationRuntime.d.ts +2 -2
  562. package/lib/esm/createImplementationRuntime.js +4 -4
  563. package/lib/esm/index.d.ts +2 -0
  564. package/lib/esm/index.js +2 -0
  565. package/lib/esm/logic/actionLogic.js +9 -5
  566. package/lib/esm/logic/context/createLocalContextIdentifier.d.ts +2 -0
  567. package/lib/esm/logic/context/createLocalContextIdentifier.js +10 -0
  568. package/lib/esm/logic/context/index.d.ts +2 -0
  569. package/lib/esm/logic/context/index.js +2 -0
  570. package/lib/esm/logic/context/toCrossServiceSession.d.ts +2 -0
  571. package/lib/esm/logic/context/toCrossServiceSession.js +12 -0
  572. package/lib/esm/logic/index.d.ts +1 -0
  573. package/lib/esm/logic/index.js +1 -0
  574. package/lib/esm/logic/stateEffects/index.d.ts +1 -0
  575. package/lib/esm/logic/stateEffects/index.js +1 -0
  576. package/lib/esm/logic/stateEffects/replayEffects.d.ts +2 -0
  577. package/lib/esm/logic/stateEffects/replayEffects.js +9 -0
  578. package/lib/esm/logic/stream/createStreamRegistry.d.ts +2 -0
  579. package/lib/esm/logic/stream/createStreamRegistry.js +65 -0
  580. package/lib/esm/logic/stream/index.d.ts +1 -0
  581. package/lib/esm/logic/stream/index.js +1 -0
  582. package/lib/esm/proiseify/getSystemExecuteStoryActionProcessor.js +4 -4
  583. package/lib/esm/qpqCoreUtils.d.ts +5 -1
  584. package/lib/esm/qpqCoreUtils.js +38 -3
  585. package/lib/esm/qpqCoreUtilsLib.d.ts +5 -0
  586. package/lib/esm/runtime/createRuntime.d.ts +2 -2
  587. package/lib/esm/runtime/createRuntime.js +2 -2
  588. package/lib/esm/runtime/processAction.d.ts +2 -2
  589. package/lib/esm/runtime/processAction.js +10 -2
  590. package/lib/esm/runtime/resolveStory.d.ts +2 -2
  591. package/lib/esm/runtime/resolveStory.js +7 -2
  592. package/lib/esm/runtime/resolveStoryWithLogs.d.ts +2 -2
  593. package/lib/esm/runtime/resolveStoryWithLogs.js +3 -3
  594. package/lib/esm/stories/context/askContextProvideValue.js +36 -102
  595. package/lib/esm/stories/context/index.d.ts +0 -1
  596. package/lib/esm/stories/context/index.js +0 -1
  597. package/lib/esm/stories/dateTime/askGetCurrentEpoch.js +3 -7
  598. package/lib/esm/stories/dateTime/askGetCurrentEpochMs.d.ts +2 -0
  599. package/lib/esm/stories/dateTime/askGetCurrentEpochMs.js +6 -0
  600. package/lib/esm/stories/dateTime/index.d.ts +1 -0
  601. package/lib/esm/stories/dateTime/index.js +1 -0
  602. package/lib/esm/stories/index.d.ts +2 -0
  603. package/lib/esm/stories/index.js +2 -0
  604. package/lib/esm/stories/state/askReduceState.d.ts +3 -0
  605. package/lib/esm/stories/state/askReduceState.js +34 -0
  606. package/lib/esm/stories/state/index.d.ts +1 -0
  607. package/lib/esm/stories/state/index.js +1 -0
  608. package/lib/esm/stories/stream/askStreamMap.d.ts +3 -0
  609. package/lib/esm/stories/stream/askStreamMap.js +21 -0
  610. package/lib/esm/stories/stream/askStreamProcess.d.ts +3 -0
  611. package/lib/esm/stories/stream/askStreamProcess.js +17 -0
  612. package/lib/esm/stories/stream/index.d.ts +2 -0
  613. package/lib/esm/stories/stream/index.js +2 -0
  614. package/lib/esm/stories/system/askCatch.d.ts +1 -1
  615. package/lib/esm/stories/system/askCatch.js +6 -1
  616. package/lib/esm/stories/system/askOverrideActions.js +21 -15
  617. package/lib/esm/testing/configTesting.d.ts +10 -0
  618. package/lib/esm/testing/configTesting.js +7 -0
  619. package/lib/esm/testing/index.d.ts +4 -0
  620. package/lib/esm/testing/index.js +4 -0
  621. package/lib/esm/testing/requesterTesting.d.ts +6 -0
  622. package/lib/esm/testing/requesterTesting.js +14 -0
  623. package/lib/esm/testing/runtimeTesting.d.ts +11 -0
  624. package/lib/esm/testing/runtimeTesting.js +46 -0
  625. package/lib/esm/testing/storyTesting.d.ts +22 -0
  626. package/lib/esm/testing/storyTesting.js +90 -0
  627. package/lib/esm/types/Action.d.ts +5 -1
  628. package/lib/esm/types/QpqContextIdentifier.d.ts +1 -0
  629. package/lib/esm/types/QpqFunctionRuntime.d.ts +5 -4
  630. package/lib/esm/types/QpqLogger.d.ts +1 -1
  631. package/lib/esm/types/StorySession.d.ts +2 -0
  632. package/lib/esm/types/StreamRegistry.d.ts +17 -0
  633. package/lib/esm/types/StreamRegistry.js +1 -0
  634. package/lib/esm/types/index.d.ts +1 -0
  635. package/lib/esm/types/index.js +1 -0
  636. package/lib/esm/utils/index.d.ts +2 -0
  637. package/lib/esm/utils/index.js +2 -0
  638. package/lib/esm/utils/mimeTypes.d.ts +2 -0
  639. package/lib/esm/utils/mimeTypes.js +39 -0
  640. package/lib/esm/utils/path/getUniqueKeyFromQpqFunctionRuntime.js +2 -2
  641. package/lib/esm/utils/path/index.d.ts +1 -1
  642. package/lib/esm/utils/path/index.js +1 -1
  643. package/lib/esm/utils/path/isQpqFunctionRuntimeAdvanced.d.ts +2 -0
  644. package/lib/esm/utils/path/isQpqFunctionRuntimeAdvanced.js +3 -0
  645. package/lib/esm/utils/uuid/generateUuid.d.ts +12 -0
  646. package/lib/esm/utils/uuid/generateUuid.js +14 -0
  647. package/lib/esm/utils/uuid/index.d.ts +1 -0
  648. package/lib/esm/utils/uuid/index.js +1 -0
  649. package/package.json +2 -2
  650. package/lib/commonjs/stories/context/askContextProvideValueV2.d.ts +0 -2
  651. package/lib/commonjs/stories/context/askContextProvideValueV2.js +0 -27
  652. package/lib/commonjs/utils/path/isQpqFunctionRuntimeAbsolutePath.d.ts +0 -2
  653. package/lib/commonjs/utils/path/isQpqFunctionRuntimeAbsolutePath.js +0 -6
  654. package/lib/esm/stories/context/askContextProvideValueV2.d.ts +0 -2
  655. package/lib/esm/stories/context/askContextProvideValueV2.js +0 -27
  656. package/lib/esm/utils/path/isQpqFunctionRuntimeAbsolutePath.d.ts +0 -2
  657. package/lib/esm/utils/path/isQpqFunctionRuntimeAbsolutePath.js +0 -3
@@ -0,0 +1,4 @@
1
+ export declare enum AiActionType {
2
+ Prompt = "@quidproquo-core/Ai/Prompt",
3
+ PromptStream = "@quidproquo-core/Ai/PromptStream"
4
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AiActionType = void 0;
4
+ var AiActionType;
5
+ (function (AiActionType) {
6
+ AiActionType["Prompt"] = "@quidproquo-core/Ai/Prompt";
7
+ AiActionType["PromptStream"] = "@quidproquo-core/Ai/PromptStream";
8
+ })(AiActionType || (exports.AiActionType = AiActionType = {}));
@@ -0,0 +1,43 @@
1
+ export interface AiTextPart {
2
+ type: 'text';
3
+ text: string;
4
+ }
5
+ export interface AiFilePart {
6
+ type: 'file';
7
+ url: string;
8
+ mediaType: string;
9
+ filename?: string;
10
+ }
11
+ export interface AiToolCallPart {
12
+ type: 'tool-call';
13
+ toolCallId: string;
14
+ toolName: string;
15
+ input: unknown;
16
+ }
17
+ export interface AiReasoningPart {
18
+ type: 'reasoning';
19
+ text: string;
20
+ providerOptions?: Record<string, Record<string, unknown>>;
21
+ }
22
+ export interface AiToolResultPart {
23
+ type: 'tool-result';
24
+ toolCallId: string;
25
+ toolName: string;
26
+ output: unknown;
27
+ isError?: boolean;
28
+ }
29
+ export type AiUserMessagePart = AiTextPart | AiFilePart;
30
+ export type AiAssistantMessagePart = AiTextPart | AiFilePart | AiToolCallPart | AiReasoningPart;
31
+ export type AiUserMessage = {
32
+ role: 'user';
33
+ content: string | AiUserMessagePart[];
34
+ };
35
+ export type AiAssistantMessage = {
36
+ role: 'assistant';
37
+ content: string | AiAssistantMessagePart[];
38
+ };
39
+ export type AiToolMessage = {
40
+ role: 'tool';
41
+ content: AiToolResultPart[];
42
+ };
43
+ export type AiMessage = AiUserMessage | AiAssistantMessage | AiToolMessage;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ export declare enum AiModel {
2
+ ClaudeHaiku35 = "claude-3-5-haiku",
3
+ ClaudeSonnet35 = "claude-3-5-sonnet",
4
+ ClaudeSonnet4 = "claude-sonnet-4",
5
+ ClaudeOpus4 = "claude-opus-4",
6
+ ClaudeHaiku45 = "claude-haiku-4-5",
7
+ ClaudeSonnet45 = "claude-sonnet-4-5",
8
+ ClaudeOpus45 = "claude-opus-4-5",
9
+ ClaudeSonnet46 = "claude-sonnet-4-6",
10
+ ClaudeOpus46 = "claude-opus-4-6"
11
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AiModel = void 0;
4
+ var AiModel;
5
+ (function (AiModel) {
6
+ AiModel["ClaudeHaiku35"] = "claude-3-5-haiku";
7
+ AiModel["ClaudeSonnet35"] = "claude-3-5-sonnet";
8
+ AiModel["ClaudeSonnet4"] = "claude-sonnet-4";
9
+ AiModel["ClaudeOpus4"] = "claude-opus-4";
10
+ AiModel["ClaudeHaiku45"] = "claude-haiku-4-5";
11
+ AiModel["ClaudeSonnet45"] = "claude-sonnet-4-5";
12
+ AiModel["ClaudeOpus45"] = "claude-opus-4-5";
13
+ AiModel["ClaudeSonnet46"] = "claude-sonnet-4-6";
14
+ AiModel["ClaudeOpus46"] = "claude-opus-4-6";
15
+ })(AiModel || (exports.AiModel = AiModel = {}));
@@ -0,0 +1,9 @@
1
+ import { AiMessage } from './AiMessage';
2
+ import { AiModel } from './AiModel';
3
+ import { AiPromptActionRequester } from './AiPromptActionTypes';
4
+ export interface AskAiPromptOptions {
5
+ system?: string;
6
+ aiName?: string;
7
+ messages?: AiMessage[];
8
+ }
9
+ export declare function askAiPrompt(model: AiModel, prompt: string, options?: AskAiPromptOptions): AiPromptActionRequester;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.askAiPrompt = askAiPrompt;
4
+ const AiActionType_1 = require("./AiActionType");
5
+ function* askAiPrompt(model, prompt, options) {
6
+ return yield {
7
+ type: AiActionType_1.AiActionType.Prompt,
8
+ payload: {
9
+ model,
10
+ prompt,
11
+ messages: options === null || options === void 0 ? void 0 : options.messages,
12
+ system: options === null || options === void 0 ? void 0 : options.system,
13
+ aiName: options === null || options === void 0 ? void 0 : options.aiName,
14
+ },
15
+ };
16
+ }
@@ -0,0 +1,20 @@
1
+ import { Action, ActionProcessor, ActionRequester } from '../../types/Action';
2
+ import { AiActionType } from './AiActionType';
3
+ import { AiMessage } from './AiMessage';
4
+ import { AiModel } from './AiModel';
5
+ export interface AiPromptActionPayload {
6
+ model: AiModel;
7
+ prompt: string;
8
+ messages?: AiMessage[];
9
+ system?: string;
10
+ aiName?: string;
11
+ }
12
+ export interface AiPromptActionResult {
13
+ text: string;
14
+ }
15
+ export interface AiPromptAction extends Action<AiPromptActionPayload> {
16
+ type: AiActionType.Prompt;
17
+ payload: AiPromptActionPayload;
18
+ }
19
+ export type AiPromptActionProcessor = ActionProcessor<AiPromptAction, AiPromptActionResult>;
20
+ export type AiPromptActionRequester = ActionRequester<AiPromptAction, AiPromptActionResult>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ import { AiMessage } from './AiMessage';
2
+ import { AiModel } from './AiModel';
3
+ import { AiPromptStreamActionRequester } from './AiPromptStreamActionTypes';
4
+ export interface AskAiPromptStreamOptions {
5
+ system?: string;
6
+ aiName?: string;
7
+ messages?: AiMessage[];
8
+ }
9
+ export declare function askAiPromptStream(model: AiModel, prompt: string, options?: AskAiPromptStreamOptions): AiPromptStreamActionRequester;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.askAiPromptStream = askAiPromptStream;
4
+ const AiActionType_1 = require("./AiActionType");
5
+ function* askAiPromptStream(model, prompt, options) {
6
+ return yield {
7
+ type: AiActionType_1.AiActionType.PromptStream,
8
+ payload: {
9
+ model,
10
+ prompt,
11
+ messages: options === null || options === void 0 ? void 0 : options.messages,
12
+ system: options === null || options === void 0 ? void 0 : options.system,
13
+ aiName: options === null || options === void 0 ? void 0 : options.aiName,
14
+ },
15
+ };
16
+ }
@@ -0,0 +1,19 @@
1
+ import { Action, ActionProcessor, ActionRequester } from '../../types/Action';
2
+ import { StreamHandle } from '../../types/StreamRegistry';
3
+ import { AiActionType } from './AiActionType';
4
+ import { AiMessage } from './AiMessage';
5
+ import { AiModel } from './AiModel';
6
+ import { AiStreamPart } from './types';
7
+ export interface AiPromptStreamActionPayload {
8
+ model: AiModel;
9
+ prompt: string;
10
+ messages?: AiMessage[];
11
+ system?: string;
12
+ aiName?: string;
13
+ }
14
+ export interface AiPromptStreamAction extends Action<AiPromptStreamActionPayload> {
15
+ type: AiActionType.PromptStream;
16
+ payload: AiPromptStreamActionPayload;
17
+ }
18
+ export type AiPromptStreamActionProcessor = ActionProcessor<AiPromptStreamAction, StreamHandle<'json'>>;
19
+ export type AiPromptStreamActionRequester = ActionRequester<AiPromptStreamAction, StreamHandle<'json', AiStreamPart>>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ export * from './AiActionType';
2
+ export * from './AiMessage';
3
+ export * from './AiModel';
4
+ export * from './AiPromptActionRequester';
5
+ export * from './AiPromptActionTypes';
6
+ export * from './AiPromptStreamActionRequester';
7
+ export * from './AiPromptStreamActionTypes';
8
+ export * from './types';
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./AiActionType"), exports);
18
+ __exportStar(require("./AiMessage"), exports);
19
+ __exportStar(require("./AiModel"), exports);
20
+ __exportStar(require("./AiPromptActionRequester"), exports);
21
+ __exportStar(require("./AiPromptActionTypes"), exports);
22
+ __exportStar(require("./AiPromptStreamActionRequester"), exports);
23
+ __exportStar(require("./AiPromptStreamActionTypes"), exports);
24
+ __exportStar(require("./types"), exports);
@@ -0,0 +1,11 @@
1
+ import { AiStreamPartType } from './AiStreamPartType';
2
+ /**
3
+ * The stream was aborted before completion — e.g. an abort signal fired or the client disconnected.
4
+ *
5
+ * No `Finish` part will follow an `Abort`.
6
+ */
7
+ export interface AiStreamAbort {
8
+ type: AiStreamPartType.Abort;
9
+ /** Optional human-readable reason for the abort. */
10
+ reason?: string;
11
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ import { AiStreamPartType } from './AiStreamPartType';
2
+ /**
3
+ * A provider-specific custom event that didn't map to any higher-level part.
4
+ *
5
+ * The payload is not forwarded — `kind` identifies the event for debugging or custom handling.
6
+ */
7
+ export interface AiStreamCustom {
8
+ type: AiStreamPartType.Custom;
9
+ /** Provider-defined identifier for the custom event (e.g. `provider.eventName`). */
10
+ kind: string;
11
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ import { AiStreamPartType } from './AiStreamPartType';
2
+ /**
3
+ * A non-fatal error during streaming. The underlying SDK swallows errors by default
4
+ * to keep the connection alive; this part surfaces them to the consumer.
5
+ */
6
+ export interface AiStreamError {
7
+ type: AiStreamPartType.Error;
8
+ /** Stringified error message. */
9
+ message: string;
10
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ /**
2
+ * A file artifact produced by the model (e.g. a generated image).
3
+ *
4
+ * The binary payload is delivered as base64 so the part can travel across
5
+ * the JSON-encoded stream. Decode with `mediaType` to interpret the bytes.
6
+ */
7
+ export interface AiStreamFile {
8
+ /** File contents, base64-encoded. */
9
+ base64: string;
10
+ /** IANA media type — e.g. `'image/png'`. */
11
+ mediaType: string;
12
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ import { AiStreamFile } from './AiStreamFile';
2
+ import { AiStreamPartType } from './AiStreamPartType';
3
+ /**
4
+ * The model produced a file artifact (e.g. an image from a multi-modal model).
5
+ */
6
+ export interface AiStreamFilePart {
7
+ type: AiStreamPartType.File;
8
+ file: AiStreamFile;
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ import { AiStreamPartType } from './AiStreamPartType';
2
+ import { AiStreamUsage } from './AiStreamUsage';
3
+ /**
4
+ * Emitted once at the very end of the response with the aggregate finish reason and total usage
5
+ * across every step. Use this (not `FinishStep`) for end-of-response accounting.
6
+ */
7
+ export interface AiStreamFinish {
8
+ type: AiStreamPartType.Finish;
9
+ /** Why the model stopped — e.g. `'stop'`, `'length'`, `'tool-calls'`. */
10
+ finishReason: string;
11
+ /** Aggregate token usage across all steps. */
12
+ usage: AiStreamUsage;
13
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
1
+ import { AiStreamPartType } from './AiStreamPartType';
2
+ import { AiStreamUsage } from './AiStreamUsage';
3
+ /**
4
+ * The current generation step ended.
5
+ *
6
+ * For total-response accounting use {@link AiStreamFinish}; this carries the per-step slice only.
7
+ */
8
+ export interface AiStreamFinishStep {
9
+ type: AiStreamPartType.FinishStep;
10
+ /** Why this step stopped — e.g. `'tool-calls'` between steps, `'stop'` on the final step. */
11
+ finishReason: string;
12
+ /** Token usage for this step only. */
13
+ usage: AiStreamUsage;
14
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,32 @@
1
+ import { AiStreamAbort } from './AiStreamAbort';
2
+ import { AiStreamCustom } from './AiStreamCustom';
3
+ import { AiStreamError } from './AiStreamError';
4
+ import { AiStreamFilePart } from './AiStreamFilePart';
5
+ import { AiStreamFinish } from './AiStreamFinish';
6
+ import { AiStreamFinishStep } from './AiStreamFinishStep';
7
+ import { AiStreamRaw } from './AiStreamRaw';
8
+ import { AiStreamReasoningDelta } from './AiStreamReasoningDelta';
9
+ import { AiStreamReasoningEnd } from './AiStreamReasoningEnd';
10
+ import { AiStreamReasoningFilePart } from './AiStreamReasoningFilePart';
11
+ import { AiStreamReasoningStart } from './AiStreamReasoningStart';
12
+ import { AiStreamSourcePart } from './AiStreamSourcePart';
13
+ import { AiStreamStart } from './AiStreamStart';
14
+ import { AiStreamStartStep } from './AiStreamStartStep';
15
+ import { AiStreamTextDelta } from './AiStreamTextDelta';
16
+ import { AiStreamTextEnd } from './AiStreamTextEnd';
17
+ import { AiStreamTextStart } from './AiStreamTextStart';
18
+ import { AiStreamToolApprovalRequest } from './AiStreamToolApprovalRequest';
19
+ import { AiStreamToolApprovalResponse } from './AiStreamToolApprovalResponse';
20
+ import { AiStreamToolCall } from './AiStreamToolCall';
21
+ import { AiStreamToolError } from './AiStreamToolError';
22
+ import { AiStreamToolInputDelta } from './AiStreamToolInputDelta';
23
+ import { AiStreamToolInputEnd } from './AiStreamToolInputEnd';
24
+ import { AiStreamToolInputStart } from './AiStreamToolInputStart';
25
+ import { AiStreamToolOutputDenied } from './AiStreamToolOutputDenied';
26
+ import { AiStreamToolResult } from './AiStreamToolResult';
27
+ /**
28
+ * Discriminated union of every event that can be emitted from an AI prompt stream.
29
+ *
30
+ * Narrow on `type` (an {@link AiStreamPartType} value) to access the per-variant fields.
31
+ */
32
+ export type AiStreamPart = AiStreamStart | AiStreamFinish | AiStreamStartStep | AiStreamFinishStep | AiStreamAbort | AiStreamError | AiStreamRaw | AiStreamSourcePart | AiStreamFilePart | AiStreamReasoningFilePart | AiStreamCustom | AiStreamTextStart | AiStreamTextEnd | AiStreamTextDelta | AiStreamReasoningStart | AiStreamReasoningEnd | AiStreamReasoningDelta | AiStreamToolInputStart | AiStreamToolInputEnd | AiStreamToolInputDelta | AiStreamToolCall | AiStreamToolResult | AiStreamToolError | AiStreamToolOutputDenied | AiStreamToolApprovalRequest | AiStreamToolApprovalResponse;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,63 @@
1
+ /**
2
+ * Discriminator for every part that can appear in an AI prompt stream.
3
+ *
4
+ * Lifecycle order, broadly:
5
+ * Start → (StartStep → step events → FinishStep)+ → Finish
6
+ *
7
+ * Within a step, text / reasoning / tool-input events come in matched
8
+ * start → delta… → end triples sharing the same `id`.
9
+ */
10
+ export declare enum AiStreamPartType {
11
+ /** Emitted once before any other parts — the overall response is starting. */
12
+ Start = "start",
13
+ /** Emitted once at the very end — overall response is complete, with aggregate usage. */
14
+ Finish = "finish",
15
+ /** A single generation step (one round-trip to the model) has started. */
16
+ StartStep = "start-step",
17
+ /** The current generation step ended, with the step's finish reason and usage. */
18
+ FinishStep = "finish-step",
19
+ /** The stream was aborted (e.g. abort signal, client disconnect). */
20
+ Abort = "abort",
21
+ /** A non-fatal streaming error. `streamText` swallows errors by default; this surfaces them. */
22
+ Error = "error",
23
+ /** A provider-specific raw chunk — passed through for debugging or custom handling. */
24
+ Raw = "raw",
25
+ /** The model cited a source (URL or document) — used for grounded / RAG-style responses. */
26
+ Source = "source",
27
+ /** The model produced a file artifact (e.g. generated image). */
28
+ File = "file",
29
+ /** The model produced a reasoning file artifact (e.g. an encrypted reasoning trace). */
30
+ ReasoningFile = "reasoning-file",
31
+ /** A provider-specific custom event — identified by `kind`, with no higher-level mapping. */
32
+ Custom = "custom",
33
+ /** Beginning of a contiguous text block. Pair with `TextEnd` via shared `id`. */
34
+ TextStart = "text-start",
35
+ /** End of the text block opened by a matching `TextStart`. */
36
+ TextEnd = "text-end",
37
+ /** An incremental chunk of text inside the currently open text block. */
38
+ TextDelta = "text-delta",
39
+ /** Beginning of a model reasoning / "thinking" block (extended-thinking models). */
40
+ ReasoningStart = "reasoning-start",
41
+ /** End of the reasoning block opened by a matching `ReasoningStart`. */
42
+ ReasoningEnd = "reasoning-end",
43
+ /** An incremental chunk of reasoning text inside the currently open reasoning block. */
44
+ ReasoningDelta = "reasoning-delta",
45
+ /** The model has begun streaming arguments for a tool call. */
46
+ ToolInputStart = "tool-input-start",
47
+ /** The model has finished streaming arguments for the tool call. */
48
+ ToolInputEnd = "tool-input-end",
49
+ /** An incremental chunk of the (JSON) tool-call arguments. */
50
+ ToolInputDelta = "tool-input-delta",
51
+ /** A fully-assembled tool call — arguments are complete and parsed. */
52
+ ToolCall = "tool-call",
53
+ /** A tool finished executing successfully. Includes the original `input` and the `output`. */
54
+ ToolResult = "tool-result",
55
+ /** A tool threw while executing. `message` carries the stringified error. */
56
+ ToolError = "tool-error",
57
+ /** The caller denied executing the tool after an approval request. */
58
+ ToolOutputDenied = "tool-output-denied",
59
+ /** The model is requesting permission to execute a tool — awaiting approve/deny. */
60
+ ToolApprovalRequest = "tool-approval-request",
61
+ /** The approve/deny decision for a prior {@link ToolApprovalRequest}. */
62
+ ToolApprovalResponse = "tool-approval-response"
63
+ }
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AiStreamPartType = void 0;
4
+ /**
5
+ * Discriminator for every part that can appear in an AI prompt stream.
6
+ *
7
+ * Lifecycle order, broadly:
8
+ * Start → (StartStep → step events → FinishStep)+ → Finish
9
+ *
10
+ * Within a step, text / reasoning / tool-input events come in matched
11
+ * start → delta… → end triples sharing the same `id`.
12
+ */
13
+ var AiStreamPartType;
14
+ (function (AiStreamPartType) {
15
+ /** Emitted once before any other parts — the overall response is starting. */
16
+ AiStreamPartType["Start"] = "start";
17
+ /** Emitted once at the very end — overall response is complete, with aggregate usage. */
18
+ AiStreamPartType["Finish"] = "finish";
19
+ /** A single generation step (one round-trip to the model) has started. */
20
+ AiStreamPartType["StartStep"] = "start-step";
21
+ /** The current generation step ended, with the step's finish reason and usage. */
22
+ AiStreamPartType["FinishStep"] = "finish-step";
23
+ /** The stream was aborted (e.g. abort signal, client disconnect). */
24
+ AiStreamPartType["Abort"] = "abort";
25
+ /** A non-fatal streaming error. `streamText` swallows errors by default; this surfaces them. */
26
+ AiStreamPartType["Error"] = "error";
27
+ /** A provider-specific raw chunk — passed through for debugging or custom handling. */
28
+ AiStreamPartType["Raw"] = "raw";
29
+ /** The model cited a source (URL or document) — used for grounded / RAG-style responses. */
30
+ AiStreamPartType["Source"] = "source";
31
+ /** The model produced a file artifact (e.g. generated image). */
32
+ AiStreamPartType["File"] = "file";
33
+ /** The model produced a reasoning file artifact (e.g. an encrypted reasoning trace). */
34
+ AiStreamPartType["ReasoningFile"] = "reasoning-file";
35
+ /** A provider-specific custom event — identified by `kind`, with no higher-level mapping. */
36
+ AiStreamPartType["Custom"] = "custom";
37
+ /** Beginning of a contiguous text block. Pair with `TextEnd` via shared `id`. */
38
+ AiStreamPartType["TextStart"] = "text-start";
39
+ /** End of the text block opened by a matching `TextStart`. */
40
+ AiStreamPartType["TextEnd"] = "text-end";
41
+ /** An incremental chunk of text inside the currently open text block. */
42
+ AiStreamPartType["TextDelta"] = "text-delta";
43
+ /** Beginning of a model reasoning / "thinking" block (extended-thinking models). */
44
+ AiStreamPartType["ReasoningStart"] = "reasoning-start";
45
+ /** End of the reasoning block opened by a matching `ReasoningStart`. */
46
+ AiStreamPartType["ReasoningEnd"] = "reasoning-end";
47
+ /** An incremental chunk of reasoning text inside the currently open reasoning block. */
48
+ AiStreamPartType["ReasoningDelta"] = "reasoning-delta";
49
+ /** The model has begun streaming arguments for a tool call. */
50
+ AiStreamPartType["ToolInputStart"] = "tool-input-start";
51
+ /** The model has finished streaming arguments for the tool call. */
52
+ AiStreamPartType["ToolInputEnd"] = "tool-input-end";
53
+ /** An incremental chunk of the (JSON) tool-call arguments. */
54
+ AiStreamPartType["ToolInputDelta"] = "tool-input-delta";
55
+ /** A fully-assembled tool call — arguments are complete and parsed. */
56
+ AiStreamPartType["ToolCall"] = "tool-call";
57
+ /** A tool finished executing successfully. Includes the original `input` and the `output`. */
58
+ AiStreamPartType["ToolResult"] = "tool-result";
59
+ /** A tool threw while executing. `message` carries the stringified error. */
60
+ AiStreamPartType["ToolError"] = "tool-error";
61
+ /** The caller denied executing the tool after an approval request. */
62
+ AiStreamPartType["ToolOutputDenied"] = "tool-output-denied";
63
+ /** The model is requesting permission to execute a tool — awaiting approve/deny. */
64
+ AiStreamPartType["ToolApprovalRequest"] = "tool-approval-request";
65
+ /** The approve/deny decision for a prior {@link ToolApprovalRequest}. */
66
+ AiStreamPartType["ToolApprovalResponse"] = "tool-approval-response";
67
+ })(AiStreamPartType || (exports.AiStreamPartType = AiStreamPartType = {}));
@@ -0,0 +1,9 @@
1
+ import { AiStreamPartType } from './AiStreamPartType';
2
+ /**
3
+ * A provider-specific raw chunk that didn't map to any higher-level part.
4
+ *
5
+ * The raw payload is not forwarded — this part exists as a marker for debugging or telemetry.
6
+ */
7
+ export interface AiStreamRaw {
8
+ type: AiStreamPartType.Raw;
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ import { AiStreamPartType } from './AiStreamPartType';
2
+ /**
3
+ * An incremental chunk of reasoning text inside an open reasoning block.
4
+ *
5
+ * Concatenate all deltas sharing the same `id` to reconstruct the block's full reasoning.
6
+ */
7
+ export interface AiStreamReasoningDelta {
8
+ type: AiStreamPartType.ReasoningDelta;
9
+ /** Identifier of the reasoning block this delta belongs to. */
10
+ id: string;
11
+ /** The new reasoning fragment to append. */
12
+ text: string;
13
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ import { AiStreamPartType } from './AiStreamPartType';
2
+ /**
3
+ * End of the reasoning block opened by a matching {@link AiStreamReasoningStart} (same `id`).
4
+ */
5
+ export interface AiStreamReasoningEnd {
6
+ type: AiStreamPartType.ReasoningEnd;
7
+ /** Identifier of the reasoning block being closed. */
8
+ id: string;
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ import { AiStreamFile } from './AiStreamFile';
2
+ import { AiStreamPartType } from './AiStreamPartType';
3
+ /**
4
+ * The model produced a reasoning file artifact (e.g. an encrypted reasoning trace).
5
+ */
6
+ export interface AiStreamReasoningFilePart {
7
+ type: AiStreamPartType.ReasoningFile;
8
+ file: AiStreamFile;
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ import { AiStreamPartType } from './AiStreamPartType';
2
+ /**
3
+ * Beginning of a reasoning ("thinking") block — emitted by extended-thinking models.
4
+ *
5
+ * Reasoning text is the model's internal scratchpad; render it separately from visible text.
6
+ */
7
+ export interface AiStreamReasoningStart {
8
+ type: AiStreamPartType.ReasoningStart;
9
+ /** Identifier shared by the matching `ReasoningDelta` / `ReasoningEnd` parts. */
10
+ id: string;
11
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,20 @@
1
+ /**
2
+ * A source the model cited while generating its response — used for grounded / RAG-style answers.
3
+ *
4
+ * `sourceType` is `'url'` for web sources and `'document'` for files/documents.
5
+ * URL sources populate `url` (and optionally `title`); document sources populate `mediaType`.
6
+ */
7
+ export interface AiStreamSource {
8
+ /** Kind of source — typically `'url'` or `'document'`. */
9
+ sourceType: string;
10
+ /** Stable identifier for this source within the response. */
11
+ id: string;
12
+ /** URL of the source — present for `sourceType === 'url'`. */
13
+ url?: string;
14
+ /** Human-readable title for the source. */
15
+ title?: string;
16
+ /** IANA media type — present for `sourceType === 'document'`. */
17
+ mediaType?: string;
18
+ /** Optional filename — only set on document sources. */
19
+ filename?: string;
20
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });