quidproquo-core 0.0.263 → 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 (525) hide show
  1. package/lib/commonjs/actions/ai/AiMessage.d.ts +42 -3
  2. package/lib/commonjs/actions/ai/AiPromptActionRequester.d.ts +2 -0
  3. package/lib/commonjs/actions/ai/AiPromptActionRequester.js +1 -0
  4. package/lib/commonjs/actions/ai/AiPromptActionTypes.d.ts +2 -0
  5. package/lib/commonjs/actions/ai/AiPromptStreamActionTypes.d.ts +1 -1
  6. package/lib/commonjs/actions/ai/index.d.ts +1 -1
  7. package/lib/commonjs/actions/ai/index.js +1 -1
  8. package/lib/commonjs/actions/ai/types/AiStreamAbort.d.ts +11 -0
  9. package/lib/commonjs/actions/ai/types/AiStreamCustom.d.ts +11 -0
  10. package/lib/commonjs/actions/ai/types/AiStreamCustom.js +2 -0
  11. package/lib/commonjs/actions/ai/types/AiStreamError.d.ts +10 -0
  12. package/lib/commonjs/actions/ai/types/AiStreamError.js +2 -0
  13. package/lib/commonjs/actions/ai/types/AiStreamFile.d.ts +12 -0
  14. package/lib/commonjs/actions/ai/types/AiStreamFile.js +2 -0
  15. package/lib/commonjs/actions/ai/types/AiStreamFilePart.d.ts +9 -0
  16. package/lib/commonjs/actions/ai/types/AiStreamFilePart.js +2 -0
  17. package/lib/commonjs/actions/ai/types/AiStreamFinish.d.ts +13 -0
  18. package/lib/commonjs/actions/ai/types/AiStreamFinish.js +2 -0
  19. package/lib/commonjs/actions/ai/types/AiStreamFinishStep.d.ts +14 -0
  20. package/lib/commonjs/actions/ai/types/AiStreamFinishStep.js +2 -0
  21. package/lib/commonjs/actions/ai/types/AiStreamPart.d.ts +32 -0
  22. package/lib/commonjs/actions/ai/types/AiStreamPart.js +2 -0
  23. package/lib/commonjs/actions/ai/types/AiStreamPartType.d.ts +63 -0
  24. package/lib/commonjs/actions/ai/types/AiStreamPartType.js +67 -0
  25. package/lib/commonjs/actions/ai/types/AiStreamRaw.d.ts +9 -0
  26. package/lib/commonjs/actions/ai/types/AiStreamRaw.js +2 -0
  27. package/lib/commonjs/actions/ai/types/AiStreamReasoningDelta.d.ts +13 -0
  28. package/lib/commonjs/actions/ai/types/AiStreamReasoningDelta.js +2 -0
  29. package/lib/commonjs/actions/ai/types/AiStreamReasoningEnd.d.ts +9 -0
  30. package/lib/commonjs/actions/ai/types/AiStreamReasoningEnd.js +2 -0
  31. package/lib/commonjs/actions/ai/types/AiStreamReasoningFilePart.d.ts +9 -0
  32. package/lib/commonjs/actions/ai/types/AiStreamReasoningFilePart.js +2 -0
  33. package/lib/commonjs/actions/ai/types/AiStreamReasoningStart.d.ts +11 -0
  34. package/lib/commonjs/actions/ai/types/AiStreamReasoningStart.js +2 -0
  35. package/lib/commonjs/actions/ai/types/AiStreamSource.d.ts +20 -0
  36. package/lib/commonjs/actions/ai/types/AiStreamSource.js +2 -0
  37. package/lib/commonjs/actions/ai/types/AiStreamSourcePart.d.ts +9 -0
  38. package/lib/commonjs/actions/ai/types/AiStreamSourcePart.js +2 -0
  39. package/lib/commonjs/actions/ai/types/AiStreamStart.d.ts +7 -0
  40. package/lib/commonjs/actions/ai/types/AiStreamStart.js +2 -0
  41. package/lib/commonjs/actions/ai/types/AiStreamStartStep.d.ts +9 -0
  42. package/lib/commonjs/actions/ai/types/AiStreamStartStep.js +2 -0
  43. package/lib/commonjs/actions/ai/types/AiStreamTextDelta.d.ts +14 -0
  44. package/lib/commonjs/actions/ai/types/AiStreamTextDelta.js +2 -0
  45. package/lib/commonjs/actions/ai/types/AiStreamTextEnd.d.ts +9 -0
  46. package/lib/commonjs/actions/ai/types/AiStreamTextEnd.js +2 -0
  47. package/lib/commonjs/actions/ai/types/AiStreamTextStart.d.ts +12 -0
  48. package/lib/commonjs/actions/ai/types/AiStreamTextStart.js +2 -0
  49. package/lib/commonjs/actions/ai/types/AiStreamToolApprovalRequest.d.ts +18 -0
  50. package/lib/commonjs/actions/ai/types/AiStreamToolApprovalRequest.js +2 -0
  51. package/lib/commonjs/actions/ai/types/AiStreamToolApprovalResponse.d.ts +17 -0
  52. package/lib/commonjs/actions/ai/types/AiStreamToolApprovalResponse.js +2 -0
  53. package/lib/commonjs/actions/ai/types/AiStreamToolCall.d.ts +16 -0
  54. package/lib/commonjs/actions/ai/types/AiStreamToolCall.js +2 -0
  55. package/lib/commonjs/actions/ai/types/AiStreamToolError.d.ts +18 -0
  56. package/lib/commonjs/actions/ai/types/AiStreamToolError.js +2 -0
  57. package/lib/commonjs/actions/ai/types/AiStreamToolInputDelta.d.ts +14 -0
  58. package/lib/commonjs/actions/ai/types/AiStreamToolInputDelta.js +2 -0
  59. package/lib/commonjs/actions/ai/types/AiStreamToolInputEnd.d.ts +11 -0
  60. package/lib/commonjs/actions/ai/types/AiStreamToolInputEnd.js +2 -0
  61. package/lib/commonjs/actions/ai/types/AiStreamToolInputStart.d.ts +14 -0
  62. package/lib/commonjs/actions/ai/types/AiStreamToolInputStart.js +2 -0
  63. package/lib/commonjs/actions/ai/types/AiStreamToolOutputDenied.d.ts +13 -0
  64. package/lib/commonjs/actions/ai/types/AiStreamToolOutputDenied.js +2 -0
  65. package/lib/commonjs/actions/ai/types/AiStreamToolResult.d.ts +17 -0
  66. package/lib/commonjs/actions/ai/types/AiStreamToolResult.js +2 -0
  67. package/lib/commonjs/actions/ai/types/AiStreamUsage.d.ts +14 -0
  68. package/lib/commonjs/actions/ai/types/AiStreamUsage.js +2 -0
  69. package/lib/commonjs/actions/ai/types/index.d.ts +31 -0
  70. package/lib/commonjs/actions/ai/types/index.js +47 -0
  71. package/lib/commonjs/actions/claudeAi/ClaudeAiMessagesApiRequester.d.ts +8 -0
  72. package/lib/commonjs/actions/claudeAi/ClaudeAiMessagesApiRequester.js +10 -0
  73. package/lib/commonjs/actions/config/ConfigGetSecretActionRequester.d.ts +4 -0
  74. package/lib/commonjs/actions/config/ConfigGetSecretActionRequester.js +6 -0
  75. package/lib/commonjs/actions/config/ConfigSetParameterActionRequester.d.ts +4 -0
  76. package/lib/commonjs/actions/config/ConfigSetParameterActionRequester.js +6 -0
  77. package/lib/commonjs/actions/eventBus/EventBusSendMessageActionRequester.d.ts +5 -0
  78. package/lib/commonjs/actions/eventBus/EventBusSendMessageActionRequester.js +7 -0
  79. package/lib/commonjs/actions/file/FileDeleteActionRequester.d.ts +4 -0
  80. package/lib/commonjs/actions/file/FileDeleteActionRequester.js +6 -0
  81. package/lib/commonjs/actions/file/FileExistsActionRequester.d.ts +3 -0
  82. package/lib/commonjs/actions/file/FileExistsActionRequester.js +5 -0
  83. package/lib/commonjs/actions/file/FileGenerateTemporarySecureUrlActionRequester.d.ts +3 -0
  84. package/lib/commonjs/actions/file/FileGenerateTemporarySecureUrlActionRequester.js +5 -0
  85. package/lib/commonjs/actions/file/FileGenerateTemporaryUploadSecureUrlActionRequester.d.ts +3 -0
  86. package/lib/commonjs/actions/file/FileGenerateTemporaryUploadSecureUrlActionRequester.js +5 -0
  87. package/lib/commonjs/actions/file/FileIsColdStorageActionRequester.d.ts +5 -0
  88. package/lib/commonjs/actions/file/FileIsColdStorageActionRequester.js +7 -0
  89. package/lib/commonjs/actions/file/FileListDirectoryActionRequester.d.ts +6 -0
  90. package/lib/commonjs/actions/file/FileListDirectoryActionRequester.js +8 -0
  91. package/lib/commonjs/actions/file/FileReadBinaryContentsActionRequester.d.ts +4 -0
  92. package/lib/commonjs/actions/file/FileReadBinaryContentsActionRequester.js +6 -0
  93. package/lib/commonjs/actions/file/FileStreamOpenRequester.d.ts +4 -0
  94. package/lib/commonjs/actions/file/FileStreamOpenRequester.js +6 -0
  95. package/lib/commonjs/actions/file/FileWriteBinaryContentsActionRequester.d.ts +4 -0
  96. package/lib/commonjs/actions/file/FileWriteBinaryContentsActionRequester.js +6 -0
  97. package/lib/commonjs/actions/file/FileWriteObjectJsonActionRequester.d.ts +4 -0
  98. package/lib/commonjs/actions/file/FileWriteObjectJsonActionRequester.js +6 -0
  99. package/lib/commonjs/actions/file/FileWriteTextContentsActionRequester.d.ts +4 -0
  100. package/lib/commonjs/actions/file/FileWriteTextContentsActionRequester.js +6 -0
  101. package/lib/commonjs/actions/keyValueStore/KeyValueStoreDeleteActionRequester.d.ts +4 -0
  102. package/lib/commonjs/actions/keyValueStore/KeyValueStoreDeleteActionRequester.js +6 -0
  103. package/lib/commonjs/actions/keyValueStore/KeyValueStoreGetActionRequester.d.ts +4 -0
  104. package/lib/commonjs/actions/keyValueStore/KeyValueStoreGetActionRequester.js +6 -0
  105. package/lib/commonjs/actions/keyValueStore/KeyValueStoreGetAllActionRequester.d.ts +4 -0
  106. package/lib/commonjs/actions/keyValueStore/KeyValueStoreGetAllActionRequester.js +6 -0
  107. package/lib/commonjs/actions/keyValueStore/KeyValueStoreQueryActionRequester.d.ts +4 -0
  108. package/lib/commonjs/actions/keyValueStore/KeyValueStoreQueryActionRequester.js +6 -0
  109. package/lib/commonjs/actions/keyValueStore/KeyValueStoreScanActionRequester.d.ts +4 -0
  110. package/lib/commonjs/actions/keyValueStore/KeyValueStoreScanActionRequester.js +6 -0
  111. package/lib/commonjs/actions/keyValueStore/KeyValueStoreUpdateActionRequester.d.ts +4 -0
  112. package/lib/commonjs/actions/keyValueStore/KeyValueStoreUpdateActionRequester.js +6 -0
  113. package/lib/commonjs/actions/keyValueStore/KeyValueStoreUpsertActionRequester.d.ts +1 -1
  114. package/lib/commonjs/actions/network/NetworkRequestActionRequester.d.ts +3 -0
  115. package/lib/commonjs/actions/network/NetworkRequestActionRequester.js +5 -0
  116. package/lib/commonjs/actions/queue/QueueSendMessageActionRequester.d.ts +5 -0
  117. package/lib/commonjs/actions/queue/QueueSendMessageActionRequester.js +7 -0
  118. package/lib/commonjs/actions/system/SystemActionType.d.ts +2 -1
  119. package/lib/commonjs/actions/system/SystemActionType.js +1 -0
  120. package/lib/commonjs/actions/system/SystemGetRuntimeCorrelationActionRequester.d.ts +2 -0
  121. package/lib/commonjs/actions/system/SystemGetRuntimeCorrelationActionRequester.js +10 -0
  122. package/lib/commonjs/actions/system/SystemGetRuntimeCorrelationActionTypes.d.ts +8 -0
  123. package/lib/commonjs/actions/system/SystemGetRuntimeCorrelationActionTypes.js +2 -0
  124. package/lib/commonjs/actions/system/index.d.ts +2 -0
  125. package/lib/commonjs/actions/system/index.js +2 -0
  126. package/lib/commonjs/actions/userDirectory/UserDirectoryActionType.d.ts +1 -0
  127. package/lib/commonjs/actions/userDirectory/UserDirectoryActionType.js +1 -0
  128. package/lib/commonjs/actions/userDirectory/UserDirectoryAssociateSoftwareTokenActionRequester.d.ts +2 -0
  129. package/lib/commonjs/actions/userDirectory/UserDirectoryAssociateSoftwareTokenActionRequester.js +13 -0
  130. package/lib/commonjs/actions/userDirectory/UserDirectoryAssociateSoftwareTokenActionTypes.d.ts +16 -0
  131. package/lib/commonjs/actions/userDirectory/UserDirectoryAssociateSoftwareTokenActionTypes.js +2 -0
  132. package/lib/commonjs/actions/userDirectory/UserDirectoryChangePasswordActionRequester.d.ts +5 -0
  133. package/lib/commonjs/actions/userDirectory/UserDirectoryChangePasswordActionRequester.js +7 -0
  134. package/lib/commonjs/actions/userDirectory/UserDirectoryConfirmEmailVerificationActionRequester.d.ts +5 -0
  135. package/lib/commonjs/actions/userDirectory/UserDirectoryConfirmEmailVerificationActionRequester.js +7 -0
  136. package/lib/commonjs/actions/userDirectory/UserDirectoryConfirmForgotPasswordActionRequester.d.ts +6 -0
  137. package/lib/commonjs/actions/userDirectory/UserDirectoryConfirmForgotPasswordActionRequester.js +8 -0
  138. package/lib/commonjs/actions/userDirectory/UserDirectoryCreateUserActionRequester.d.ts +5 -0
  139. package/lib/commonjs/actions/userDirectory/UserDirectoryCreateUserActionRequester.js +7 -0
  140. package/lib/commonjs/actions/userDirectory/UserDirectoryDecodeAccessTokenActionRequester.d.ts +3 -0
  141. package/lib/commonjs/actions/userDirectory/UserDirectoryDecodeAccessTokenActionRequester.js +5 -0
  142. package/lib/commonjs/actions/userDirectory/UserDirectoryForgotPasswordActionRequester.d.ts +4 -0
  143. package/lib/commonjs/actions/userDirectory/UserDirectoryForgotPasswordActionRequester.js +6 -0
  144. package/lib/commonjs/actions/userDirectory/UserDirectoryGetUserAttributesByUserIdActionRequester.d.ts +3 -0
  145. package/lib/commonjs/actions/userDirectory/UserDirectoryGetUserAttributesByUserIdActionRequester.js +5 -0
  146. package/lib/commonjs/actions/userDirectory/UserDirectoryGetUsersActionRequester.d.ts +4 -0
  147. package/lib/commonjs/actions/userDirectory/UserDirectoryGetUsersActionRequester.js +6 -0
  148. package/lib/commonjs/actions/userDirectory/UserDirectoryGetUsersByAttributeActionRequester.d.ts +4 -0
  149. package/lib/commonjs/actions/userDirectory/UserDirectoryGetUsersByAttributeActionRequester.js +6 -0
  150. package/lib/commonjs/actions/userDirectory/UserDirectoryRefreshTokenActionRequester.d.ts +4 -0
  151. package/lib/commonjs/actions/userDirectory/UserDirectoryRefreshTokenActionRequester.js +6 -0
  152. package/lib/commonjs/actions/userDirectory/UserDirectoryRequestEmailVerificationActionRequester.d.ts +5 -0
  153. package/lib/commonjs/actions/userDirectory/UserDirectoryRequestEmailVerificationActionRequester.js +7 -0
  154. package/lib/commonjs/actions/userDirectory/UserDirectoryRespondToAuthChallengeActionRequester.d.ts +7 -0
  155. package/lib/commonjs/actions/userDirectory/UserDirectoryRespondToAuthChallengeActionRequester.js +9 -0
  156. package/lib/commonjs/actions/userDirectory/UserDirectorySetPasswordActionRequester.d.ts +5 -0
  157. package/lib/commonjs/actions/userDirectory/UserDirectorySetPasswordActionRequester.js +7 -0
  158. package/lib/commonjs/actions/userDirectory/UserDirectorySetUserAttributesActionRequester.d.ts +6 -0
  159. package/lib/commonjs/actions/userDirectory/UserDirectorySetUserAttributesActionRequester.js +8 -0
  160. package/lib/commonjs/actions/userDirectory/index.d.ts +2 -0
  161. package/lib/commonjs/actions/userDirectory/index.js +2 -0
  162. package/lib/commonjs/actions/userDirectory/types/AnyAuthChallenge.d.ts +2 -2
  163. package/lib/commonjs/actions/userDirectory/types/AuthChallenges/AuthenticateUserMfaSetupChallenge.d.ts +6 -0
  164. package/lib/commonjs/actions/userDirectory/types/AuthChallenges/AuthenticateUserMfaSetupChallenge.js +2 -0
  165. package/lib/commonjs/actions/userDirectory/types/AuthChallenges/AuthenticateUserSoftwareTokenMfaChallenge.d.ts +6 -0
  166. package/lib/commonjs/actions/userDirectory/types/AuthChallenges/AuthenticateUserSoftwareTokenMfaChallenge.js +2 -0
  167. package/lib/commonjs/actions/userDirectory/types/AuthChallenges/index.d.ts +2 -0
  168. package/lib/commonjs/actions/userDirectory/types/AuthChallenges/index.js +2 -0
  169. package/lib/commonjs/actions/userDirectory/types/AuthenticateUserChallenge.d.ts +3 -1
  170. package/lib/commonjs/actions/userDirectory/types/AuthenticateUserChallenge.js +6 -0
  171. package/lib/commonjs/config/QPQConfig.d.ts +1 -0
  172. package/lib/commonjs/config/QPQConfig.js +1 -0
  173. package/lib/commonjs/config/settings/environmentSettings.d.ts +2 -3
  174. package/lib/commonjs/config/settings/environmentSettings.js +3 -4
  175. package/lib/commonjs/config/settings/index.d.ts +1 -0
  176. package/lib/commonjs/config/settings/index.js +1 -0
  177. package/lib/commonjs/config/settings/keyValueStore.d.ts +4 -2
  178. package/lib/commonjs/config/settings/keyValueStore.js +3 -2
  179. package/lib/commonjs/config/settings/serviceSettings.d.ts +5 -0
  180. package/lib/commonjs/config/settings/serviceSettings.js +10 -0
  181. package/lib/commonjs/config/settings/storageDrive.d.ts +2 -0
  182. package/lib/commonjs/config/settings/storageDrive.js +2 -1
  183. package/lib/commonjs/config/settings/userDirectory.d.ts +14 -21
  184. package/lib/commonjs/config/settings/userDirectory.js +21 -12
  185. package/lib/commonjs/config/utils/crossModuleUtils.d.ts +6 -0
  186. package/lib/commonjs/config/utils/crossModuleUtils.js +8 -1
  187. package/lib/commonjs/config/utils/qpqFunctionRuntimeUtils.js +1 -1
  188. package/lib/commonjs/constants/index.d.ts +1 -0
  189. package/lib/commonjs/constants/index.js +1 -0
  190. package/lib/commonjs/constants/storageDrives.d.ts +2 -0
  191. package/lib/commonjs/constants/storageDrives.js +13 -0
  192. package/lib/commonjs/index.d.ts +2 -0
  193. package/lib/commonjs/index.js +2 -0
  194. package/lib/commonjs/logic/actionLogic.js +9 -5
  195. package/lib/commonjs/logic/context/createLocalContextIdentifier.d.ts +2 -0
  196. package/lib/commonjs/logic/context/createLocalContextIdentifier.js +11 -0
  197. package/lib/commonjs/logic/context/index.d.ts +2 -0
  198. package/lib/commonjs/logic/context/index.js +2 -0
  199. package/lib/commonjs/logic/context/toCrossServiceSession.d.ts +2 -0
  200. package/lib/commonjs/logic/context/toCrossServiceSession.js +27 -0
  201. package/lib/commonjs/logic/stateEffects/index.d.ts +1 -0
  202. package/lib/commonjs/logic/stateEffects/index.js +1 -0
  203. package/lib/commonjs/logic/stateEffects/replayEffects.d.ts +2 -0
  204. package/lib/commonjs/logic/stateEffects/replayEffects.js +13 -0
  205. package/lib/commonjs/logic/stream/createStreamRegistry.js +24 -12
  206. package/lib/commonjs/qpqCoreUtils.d.ts +1 -0
  207. package/lib/commonjs/qpqCoreUtils.js +31 -4
  208. package/lib/commonjs/qpqCoreUtilsLib.d.ts +2 -0
  209. package/lib/commonjs/runtime/processAction.js +1 -1
  210. package/lib/commonjs/runtime/resolveStory.js +3 -0
  211. package/lib/commonjs/runtime/resolveStoryWithLogs.js +1 -1
  212. package/lib/commonjs/stories/context/askContextProvideValue.js +12 -1
  213. package/lib/commonjs/stories/dateTime/askGetCurrentEpoch.js +3 -7
  214. package/lib/commonjs/stories/dateTime/askGetCurrentEpochMs.d.ts +2 -0
  215. package/lib/commonjs/stories/dateTime/askGetCurrentEpochMs.js +9 -0
  216. package/lib/commonjs/stories/dateTime/index.d.ts +1 -0
  217. package/lib/commonjs/stories/dateTime/index.js +1 -0
  218. package/lib/commonjs/stories/index.d.ts +2 -0
  219. package/lib/commonjs/stories/index.js +2 -0
  220. package/lib/commonjs/stories/state/askReduceState.d.ts +3 -0
  221. package/lib/commonjs/stories/state/askReduceState.js +37 -0
  222. package/lib/commonjs/stories/state/index.d.ts +1 -0
  223. package/lib/commonjs/stories/state/index.js +17 -0
  224. package/lib/commonjs/stories/stream/askStreamMap.d.ts +3 -0
  225. package/lib/commonjs/stories/stream/askStreamMap.js +24 -0
  226. package/lib/commonjs/stories/stream/askStreamProcess.d.ts +3 -0
  227. package/lib/commonjs/stories/stream/askStreamProcess.js +20 -0
  228. package/lib/commonjs/stories/stream/index.d.ts +2 -0
  229. package/lib/commonjs/stories/stream/index.js +18 -0
  230. package/lib/commonjs/stories/system/askOverrideActions.js +18 -12
  231. package/lib/commonjs/testing/configTesting.d.ts +10 -0
  232. package/lib/commonjs/testing/configTesting.js +11 -0
  233. package/lib/commonjs/testing/index.d.ts +4 -0
  234. package/lib/commonjs/testing/index.js +20 -0
  235. package/lib/commonjs/testing/requesterTesting.d.ts +6 -0
  236. package/lib/commonjs/testing/requesterTesting.js +17 -0
  237. package/lib/commonjs/testing/runtimeTesting.d.ts +11 -0
  238. package/lib/commonjs/testing/runtimeTesting.js +58 -0
  239. package/lib/commonjs/testing/storyTesting.d.ts +22 -0
  240. package/lib/commonjs/testing/storyTesting.js +97 -0
  241. package/lib/commonjs/types/Action.d.ts +1 -0
  242. package/lib/commonjs/types/QpqContextIdentifier.d.ts +1 -0
  243. package/lib/commonjs/types/QpqFunctionRuntime.d.ts +5 -4
  244. package/lib/commonjs/types/QpqLogger.d.ts +1 -1
  245. package/lib/commonjs/types/StorySession.d.ts +2 -0
  246. package/lib/commonjs/utils/index.d.ts +2 -0
  247. package/lib/commonjs/utils/index.js +2 -0
  248. package/lib/commonjs/utils/mimeTypes.d.ts +2 -0
  249. package/lib/commonjs/utils/mimeTypes.js +44 -0
  250. package/lib/commonjs/utils/path/getUniqueKeyFromQpqFunctionRuntime.js +2 -2
  251. package/lib/commonjs/utils/path/index.d.ts +1 -1
  252. package/lib/commonjs/utils/path/index.js +1 -1
  253. package/lib/commonjs/utils/path/isQpqFunctionRuntimeAdvanced.d.ts +2 -0
  254. package/lib/commonjs/utils/path/isQpqFunctionRuntimeAdvanced.js +6 -0
  255. package/lib/commonjs/utils/uuid/generateUuid.d.ts +12 -0
  256. package/lib/commonjs/utils/uuid/generateUuid.js +17 -0
  257. package/lib/commonjs/utils/uuid/index.d.ts +1 -0
  258. package/lib/commonjs/utils/uuid/index.js +17 -0
  259. package/lib/esm/actions/ai/AiMessage.d.ts +42 -3
  260. package/lib/esm/actions/ai/AiPromptActionRequester.d.ts +2 -0
  261. package/lib/esm/actions/ai/AiPromptActionRequester.js +1 -0
  262. package/lib/esm/actions/ai/AiPromptActionTypes.d.ts +2 -0
  263. package/lib/esm/actions/ai/AiPromptStreamActionTypes.d.ts +1 -1
  264. package/lib/esm/actions/ai/index.d.ts +1 -1
  265. package/lib/esm/actions/ai/index.js +1 -1
  266. package/lib/esm/actions/ai/types/AiStreamAbort.d.ts +11 -0
  267. package/lib/esm/actions/ai/types/AiStreamCustom.d.ts +11 -0
  268. package/lib/esm/actions/ai/types/AiStreamCustom.js +1 -0
  269. package/lib/esm/actions/ai/types/AiStreamError.d.ts +10 -0
  270. package/lib/esm/actions/ai/types/AiStreamError.js +1 -0
  271. package/lib/esm/actions/ai/types/AiStreamFile.d.ts +12 -0
  272. package/lib/esm/actions/ai/types/AiStreamFile.js +1 -0
  273. package/lib/esm/actions/ai/types/AiStreamFilePart.d.ts +9 -0
  274. package/lib/esm/actions/ai/types/AiStreamFilePart.js +1 -0
  275. package/lib/esm/actions/ai/types/AiStreamFinish.d.ts +13 -0
  276. package/lib/esm/actions/ai/types/AiStreamFinish.js +1 -0
  277. package/lib/esm/actions/ai/types/AiStreamFinishStep.d.ts +14 -0
  278. package/lib/esm/actions/ai/types/AiStreamFinishStep.js +1 -0
  279. package/lib/esm/actions/ai/types/AiStreamPart.d.ts +32 -0
  280. package/lib/esm/actions/ai/types/AiStreamPart.js +1 -0
  281. package/lib/esm/actions/ai/types/AiStreamPartType.d.ts +63 -0
  282. package/lib/esm/actions/ai/types/AiStreamPartType.js +64 -0
  283. package/lib/esm/actions/ai/types/AiStreamRaw.d.ts +9 -0
  284. package/lib/esm/actions/ai/types/AiStreamRaw.js +1 -0
  285. package/lib/esm/actions/ai/types/AiStreamReasoningDelta.d.ts +13 -0
  286. package/lib/esm/actions/ai/types/AiStreamReasoningDelta.js +1 -0
  287. package/lib/esm/actions/ai/types/AiStreamReasoningEnd.d.ts +9 -0
  288. package/lib/esm/actions/ai/types/AiStreamReasoningEnd.js +1 -0
  289. package/lib/esm/actions/ai/types/AiStreamReasoningFilePart.d.ts +9 -0
  290. package/lib/esm/actions/ai/types/AiStreamReasoningFilePart.js +1 -0
  291. package/lib/esm/actions/ai/types/AiStreamReasoningStart.d.ts +11 -0
  292. package/lib/esm/actions/ai/types/AiStreamReasoningStart.js +1 -0
  293. package/lib/esm/actions/ai/types/AiStreamSource.d.ts +20 -0
  294. package/lib/esm/actions/ai/types/AiStreamSource.js +1 -0
  295. package/lib/esm/actions/ai/types/AiStreamSourcePart.d.ts +9 -0
  296. package/lib/esm/actions/ai/types/AiStreamSourcePart.js +1 -0
  297. package/lib/esm/actions/ai/types/AiStreamStart.d.ts +7 -0
  298. package/lib/esm/actions/ai/types/AiStreamStart.js +1 -0
  299. package/lib/esm/actions/ai/types/AiStreamStartStep.d.ts +9 -0
  300. package/lib/esm/actions/ai/types/AiStreamStartStep.js +1 -0
  301. package/lib/esm/actions/ai/types/AiStreamTextDelta.d.ts +14 -0
  302. package/lib/esm/actions/ai/types/AiStreamTextDelta.js +1 -0
  303. package/lib/esm/actions/ai/types/AiStreamTextEnd.d.ts +9 -0
  304. package/lib/esm/actions/ai/types/AiStreamTextEnd.js +1 -0
  305. package/lib/esm/actions/ai/types/AiStreamTextStart.d.ts +12 -0
  306. package/lib/esm/actions/ai/types/AiStreamTextStart.js +1 -0
  307. package/lib/esm/actions/ai/types/AiStreamToolApprovalRequest.d.ts +18 -0
  308. package/lib/esm/actions/ai/types/AiStreamToolApprovalRequest.js +1 -0
  309. package/lib/esm/actions/ai/types/AiStreamToolApprovalResponse.d.ts +17 -0
  310. package/lib/esm/actions/ai/types/AiStreamToolApprovalResponse.js +1 -0
  311. package/lib/esm/actions/ai/types/AiStreamToolCall.d.ts +16 -0
  312. package/lib/esm/actions/ai/types/AiStreamToolCall.js +1 -0
  313. package/lib/esm/actions/ai/types/AiStreamToolError.d.ts +18 -0
  314. package/lib/esm/actions/ai/types/AiStreamToolError.js +1 -0
  315. package/lib/esm/actions/ai/types/AiStreamToolInputDelta.d.ts +14 -0
  316. package/lib/esm/actions/ai/types/AiStreamToolInputDelta.js +1 -0
  317. package/lib/esm/actions/ai/types/AiStreamToolInputEnd.d.ts +11 -0
  318. package/lib/esm/actions/ai/types/AiStreamToolInputEnd.js +1 -0
  319. package/lib/esm/actions/ai/types/AiStreamToolInputStart.d.ts +14 -0
  320. package/lib/esm/actions/ai/types/AiStreamToolInputStart.js +1 -0
  321. package/lib/esm/actions/ai/types/AiStreamToolOutputDenied.d.ts +13 -0
  322. package/lib/esm/actions/ai/types/AiStreamToolOutputDenied.js +1 -0
  323. package/lib/esm/actions/ai/types/AiStreamToolResult.d.ts +17 -0
  324. package/lib/esm/actions/ai/types/AiStreamToolResult.js +1 -0
  325. package/lib/esm/actions/ai/types/AiStreamUsage.d.ts +14 -0
  326. package/lib/esm/actions/ai/types/AiStreamUsage.js +1 -0
  327. package/lib/esm/actions/ai/types/index.d.ts +31 -0
  328. package/lib/esm/actions/ai/types/index.js +31 -0
  329. package/lib/esm/actions/claudeAi/ClaudeAiMessagesApiRequester.d.ts +8 -0
  330. package/lib/esm/actions/claudeAi/ClaudeAiMessagesApiRequester.js +9 -0
  331. package/lib/esm/actions/config/ConfigGetSecretActionRequester.d.ts +4 -0
  332. package/lib/esm/actions/config/ConfigGetSecretActionRequester.js +5 -0
  333. package/lib/esm/actions/config/ConfigSetParameterActionRequester.d.ts +4 -0
  334. package/lib/esm/actions/config/ConfigSetParameterActionRequester.js +5 -0
  335. package/lib/esm/actions/eventBus/EventBusSendMessageActionRequester.d.ts +5 -0
  336. package/lib/esm/actions/eventBus/EventBusSendMessageActionRequester.js +6 -0
  337. package/lib/esm/actions/file/FileDeleteActionRequester.d.ts +4 -0
  338. package/lib/esm/actions/file/FileDeleteActionRequester.js +5 -0
  339. package/lib/esm/actions/file/FileExistsActionRequester.d.ts +3 -0
  340. package/lib/esm/actions/file/FileExistsActionRequester.js +4 -0
  341. package/lib/esm/actions/file/FileGenerateTemporarySecureUrlActionRequester.d.ts +3 -0
  342. package/lib/esm/actions/file/FileGenerateTemporarySecureUrlActionRequester.js +4 -0
  343. package/lib/esm/actions/file/FileGenerateTemporaryUploadSecureUrlActionRequester.d.ts +3 -0
  344. package/lib/esm/actions/file/FileGenerateTemporaryUploadSecureUrlActionRequester.js +4 -0
  345. package/lib/esm/actions/file/FileIsColdStorageActionRequester.d.ts +5 -0
  346. package/lib/esm/actions/file/FileIsColdStorageActionRequester.js +6 -0
  347. package/lib/esm/actions/file/FileListDirectoryActionRequester.d.ts +6 -0
  348. package/lib/esm/actions/file/FileListDirectoryActionRequester.js +7 -0
  349. package/lib/esm/actions/file/FileReadBinaryContentsActionRequester.d.ts +4 -0
  350. package/lib/esm/actions/file/FileReadBinaryContentsActionRequester.js +5 -0
  351. package/lib/esm/actions/file/FileStreamOpenRequester.d.ts +4 -0
  352. package/lib/esm/actions/file/FileStreamOpenRequester.js +5 -0
  353. package/lib/esm/actions/file/FileWriteBinaryContentsActionRequester.d.ts +4 -0
  354. package/lib/esm/actions/file/FileWriteBinaryContentsActionRequester.js +5 -0
  355. package/lib/esm/actions/file/FileWriteObjectJsonActionRequester.d.ts +4 -0
  356. package/lib/esm/actions/file/FileWriteObjectJsonActionRequester.js +5 -0
  357. package/lib/esm/actions/file/FileWriteTextContentsActionRequester.d.ts +4 -0
  358. package/lib/esm/actions/file/FileWriteTextContentsActionRequester.js +5 -0
  359. package/lib/esm/actions/keyValueStore/KeyValueStoreDeleteActionRequester.d.ts +4 -0
  360. package/lib/esm/actions/keyValueStore/KeyValueStoreDeleteActionRequester.js +5 -0
  361. package/lib/esm/actions/keyValueStore/KeyValueStoreGetActionRequester.d.ts +4 -0
  362. package/lib/esm/actions/keyValueStore/KeyValueStoreGetActionRequester.js +5 -0
  363. package/lib/esm/actions/keyValueStore/KeyValueStoreGetAllActionRequester.d.ts +4 -0
  364. package/lib/esm/actions/keyValueStore/KeyValueStoreGetAllActionRequester.js +5 -0
  365. package/lib/esm/actions/keyValueStore/KeyValueStoreQueryActionRequester.d.ts +4 -0
  366. package/lib/esm/actions/keyValueStore/KeyValueStoreQueryActionRequester.js +5 -0
  367. package/lib/esm/actions/keyValueStore/KeyValueStoreScanActionRequester.d.ts +4 -0
  368. package/lib/esm/actions/keyValueStore/KeyValueStoreScanActionRequester.js +5 -0
  369. package/lib/esm/actions/keyValueStore/KeyValueStoreUpdateActionRequester.d.ts +4 -0
  370. package/lib/esm/actions/keyValueStore/KeyValueStoreUpdateActionRequester.js +5 -0
  371. package/lib/esm/actions/keyValueStore/KeyValueStoreUpsertActionRequester.d.ts +1 -1
  372. package/lib/esm/actions/network/NetworkRequestActionRequester.d.ts +3 -0
  373. package/lib/esm/actions/network/NetworkRequestActionRequester.js +4 -0
  374. package/lib/esm/actions/queue/QueueSendMessageActionRequester.d.ts +5 -0
  375. package/lib/esm/actions/queue/QueueSendMessageActionRequester.js +6 -0
  376. package/lib/esm/actions/system/SystemActionType.d.ts +2 -1
  377. package/lib/esm/actions/system/SystemActionType.js +1 -0
  378. package/lib/esm/actions/system/SystemGetRuntimeCorrelationActionRequester.d.ts +2 -0
  379. package/lib/esm/actions/system/SystemGetRuntimeCorrelationActionRequester.js +7 -0
  380. package/lib/esm/actions/system/SystemGetRuntimeCorrelationActionTypes.d.ts +8 -0
  381. package/lib/esm/actions/system/SystemGetRuntimeCorrelationActionTypes.js +1 -0
  382. package/lib/esm/actions/system/index.d.ts +2 -0
  383. package/lib/esm/actions/system/index.js +2 -0
  384. package/lib/esm/actions/userDirectory/UserDirectoryActionType.d.ts +1 -0
  385. package/lib/esm/actions/userDirectory/UserDirectoryActionType.js +1 -0
  386. package/lib/esm/actions/userDirectory/UserDirectoryAssociateSoftwareTokenActionRequester.d.ts +2 -0
  387. package/lib/esm/actions/userDirectory/UserDirectoryAssociateSoftwareTokenActionRequester.js +10 -0
  388. package/lib/esm/actions/userDirectory/UserDirectoryAssociateSoftwareTokenActionTypes.d.ts +16 -0
  389. package/lib/esm/actions/userDirectory/UserDirectoryAssociateSoftwareTokenActionTypes.js +1 -0
  390. package/lib/esm/actions/userDirectory/UserDirectoryChangePasswordActionRequester.d.ts +5 -0
  391. package/lib/esm/actions/userDirectory/UserDirectoryChangePasswordActionRequester.js +6 -0
  392. package/lib/esm/actions/userDirectory/UserDirectoryConfirmEmailVerificationActionRequester.d.ts +5 -0
  393. package/lib/esm/actions/userDirectory/UserDirectoryConfirmEmailVerificationActionRequester.js +6 -0
  394. package/lib/esm/actions/userDirectory/UserDirectoryConfirmForgotPasswordActionRequester.d.ts +6 -0
  395. package/lib/esm/actions/userDirectory/UserDirectoryConfirmForgotPasswordActionRequester.js +7 -0
  396. package/lib/esm/actions/userDirectory/UserDirectoryCreateUserActionRequester.d.ts +5 -0
  397. package/lib/esm/actions/userDirectory/UserDirectoryCreateUserActionRequester.js +6 -0
  398. package/lib/esm/actions/userDirectory/UserDirectoryDecodeAccessTokenActionRequester.d.ts +3 -0
  399. package/lib/esm/actions/userDirectory/UserDirectoryDecodeAccessTokenActionRequester.js +4 -0
  400. package/lib/esm/actions/userDirectory/UserDirectoryForgotPasswordActionRequester.d.ts +4 -0
  401. package/lib/esm/actions/userDirectory/UserDirectoryForgotPasswordActionRequester.js +5 -0
  402. package/lib/esm/actions/userDirectory/UserDirectoryGetUserAttributesByUserIdActionRequester.d.ts +3 -0
  403. package/lib/esm/actions/userDirectory/UserDirectoryGetUserAttributesByUserIdActionRequester.js +4 -0
  404. package/lib/esm/actions/userDirectory/UserDirectoryGetUsersActionRequester.d.ts +4 -0
  405. package/lib/esm/actions/userDirectory/UserDirectoryGetUsersActionRequester.js +5 -0
  406. package/lib/esm/actions/userDirectory/UserDirectoryGetUsersByAttributeActionRequester.d.ts +4 -0
  407. package/lib/esm/actions/userDirectory/UserDirectoryGetUsersByAttributeActionRequester.js +5 -0
  408. package/lib/esm/actions/userDirectory/UserDirectoryRefreshTokenActionRequester.d.ts +4 -0
  409. package/lib/esm/actions/userDirectory/UserDirectoryRefreshTokenActionRequester.js +5 -0
  410. package/lib/esm/actions/userDirectory/UserDirectoryRequestEmailVerificationActionRequester.d.ts +5 -0
  411. package/lib/esm/actions/userDirectory/UserDirectoryRequestEmailVerificationActionRequester.js +6 -0
  412. package/lib/esm/actions/userDirectory/UserDirectoryRespondToAuthChallengeActionRequester.d.ts +7 -0
  413. package/lib/esm/actions/userDirectory/UserDirectoryRespondToAuthChallengeActionRequester.js +8 -0
  414. package/lib/esm/actions/userDirectory/UserDirectorySetPasswordActionRequester.d.ts +5 -0
  415. package/lib/esm/actions/userDirectory/UserDirectorySetPasswordActionRequester.js +6 -0
  416. package/lib/esm/actions/userDirectory/UserDirectorySetUserAttributesActionRequester.d.ts +6 -0
  417. package/lib/esm/actions/userDirectory/UserDirectorySetUserAttributesActionRequester.js +7 -0
  418. package/lib/esm/actions/userDirectory/index.d.ts +2 -0
  419. package/lib/esm/actions/userDirectory/index.js +2 -0
  420. package/lib/esm/actions/userDirectory/types/AnyAuthChallenge.d.ts +2 -2
  421. package/lib/esm/actions/userDirectory/types/AuthChallenges/AuthenticateUserMfaSetupChallenge.d.ts +6 -0
  422. package/lib/esm/actions/userDirectory/types/AuthChallenges/AuthenticateUserMfaSetupChallenge.js +1 -0
  423. package/lib/esm/actions/userDirectory/types/AuthChallenges/AuthenticateUserSoftwareTokenMfaChallenge.d.ts +6 -0
  424. package/lib/esm/actions/userDirectory/types/AuthChallenges/AuthenticateUserSoftwareTokenMfaChallenge.js +1 -0
  425. package/lib/esm/actions/userDirectory/types/AuthChallenges/index.d.ts +2 -0
  426. package/lib/esm/actions/userDirectory/types/AuthChallenges/index.js +2 -0
  427. package/lib/esm/actions/userDirectory/types/AuthenticateUserChallenge.d.ts +3 -1
  428. package/lib/esm/actions/userDirectory/types/AuthenticateUserChallenge.js +6 -0
  429. package/lib/esm/config/QPQConfig.d.ts +1 -0
  430. package/lib/esm/config/QPQConfig.js +1 -0
  431. package/lib/esm/config/settings/environmentSettings.d.ts +2 -3
  432. package/lib/esm/config/settings/environmentSettings.js +3 -4
  433. package/lib/esm/config/settings/index.d.ts +1 -0
  434. package/lib/esm/config/settings/index.js +1 -0
  435. package/lib/esm/config/settings/keyValueStore.d.ts +4 -2
  436. package/lib/esm/config/settings/keyValueStore.js +2 -1
  437. package/lib/esm/config/settings/serviceSettings.d.ts +5 -0
  438. package/lib/esm/config/settings/serviceSettings.js +6 -0
  439. package/lib/esm/config/settings/storageDrive.d.ts +2 -0
  440. package/lib/esm/config/settings/storageDrive.js +1 -0
  441. package/lib/esm/config/settings/userDirectory.d.ts +14 -21
  442. package/lib/esm/config/settings/userDirectory.js +16 -7
  443. package/lib/esm/config/utils/crossModuleUtils.d.ts +6 -0
  444. package/lib/esm/config/utils/crossModuleUtils.js +6 -0
  445. package/lib/esm/config/utils/qpqFunctionRuntimeUtils.js +2 -2
  446. package/lib/esm/constants/index.d.ts +1 -0
  447. package/lib/esm/constants/index.js +1 -0
  448. package/lib/esm/constants/storageDrives.d.ts +2 -0
  449. package/lib/esm/constants/storageDrives.js +10 -0
  450. package/lib/esm/index.d.ts +2 -0
  451. package/lib/esm/index.js +2 -0
  452. package/lib/esm/logic/actionLogic.js +9 -5
  453. package/lib/esm/logic/context/createLocalContextIdentifier.d.ts +2 -0
  454. package/lib/esm/logic/context/createLocalContextIdentifier.js +10 -0
  455. package/lib/esm/logic/context/index.d.ts +2 -0
  456. package/lib/esm/logic/context/index.js +2 -0
  457. package/lib/esm/logic/context/toCrossServiceSession.d.ts +2 -0
  458. package/lib/esm/logic/context/toCrossServiceSession.js +12 -0
  459. package/lib/esm/logic/stateEffects/index.d.ts +1 -0
  460. package/lib/esm/logic/stateEffects/index.js +1 -0
  461. package/lib/esm/logic/stateEffects/replayEffects.d.ts +2 -0
  462. package/lib/esm/logic/stateEffects/replayEffects.js +9 -0
  463. package/lib/esm/logic/stream/createStreamRegistry.js +24 -12
  464. package/lib/esm/qpqCoreUtils.d.ts +1 -0
  465. package/lib/esm/qpqCoreUtils.js +28 -3
  466. package/lib/esm/qpqCoreUtilsLib.d.ts +2 -0
  467. package/lib/esm/runtime/processAction.js +5 -1
  468. package/lib/esm/runtime/resolveStory.js +3 -0
  469. package/lib/esm/runtime/resolveStoryWithLogs.js +1 -1
  470. package/lib/esm/stories/context/askContextProvideValue.js +14 -3
  471. package/lib/esm/stories/dateTime/askGetCurrentEpoch.js +3 -7
  472. package/lib/esm/stories/dateTime/askGetCurrentEpochMs.d.ts +2 -0
  473. package/lib/esm/stories/dateTime/askGetCurrentEpochMs.js +6 -0
  474. package/lib/esm/stories/dateTime/index.d.ts +1 -0
  475. package/lib/esm/stories/dateTime/index.js +1 -0
  476. package/lib/esm/stories/index.d.ts +2 -0
  477. package/lib/esm/stories/index.js +2 -0
  478. package/lib/esm/stories/state/askReduceState.d.ts +3 -0
  479. package/lib/esm/stories/state/askReduceState.js +34 -0
  480. package/lib/esm/stories/state/index.d.ts +1 -0
  481. package/lib/esm/stories/state/index.js +1 -0
  482. package/lib/esm/stories/stream/askStreamMap.d.ts +3 -0
  483. package/lib/esm/stories/stream/askStreamMap.js +21 -0
  484. package/lib/esm/stories/stream/askStreamProcess.d.ts +3 -0
  485. package/lib/esm/stories/stream/askStreamProcess.js +17 -0
  486. package/lib/esm/stories/stream/index.d.ts +2 -0
  487. package/lib/esm/stories/stream/index.js +2 -0
  488. package/lib/esm/stories/system/askOverrideActions.js +18 -12
  489. package/lib/esm/testing/configTesting.d.ts +10 -0
  490. package/lib/esm/testing/configTesting.js +7 -0
  491. package/lib/esm/testing/index.d.ts +4 -0
  492. package/lib/esm/testing/index.js +4 -0
  493. package/lib/esm/testing/requesterTesting.d.ts +6 -0
  494. package/lib/esm/testing/requesterTesting.js +14 -0
  495. package/lib/esm/testing/runtimeTesting.d.ts +11 -0
  496. package/lib/esm/testing/runtimeTesting.js +46 -0
  497. package/lib/esm/testing/storyTesting.d.ts +22 -0
  498. package/lib/esm/testing/storyTesting.js +90 -0
  499. package/lib/esm/types/Action.d.ts +1 -0
  500. package/lib/esm/types/QpqContextIdentifier.d.ts +1 -0
  501. package/lib/esm/types/QpqFunctionRuntime.d.ts +5 -4
  502. package/lib/esm/types/QpqLogger.d.ts +1 -1
  503. package/lib/esm/types/StorySession.d.ts +2 -0
  504. package/lib/esm/utils/index.d.ts +2 -0
  505. package/lib/esm/utils/index.js +2 -0
  506. package/lib/esm/utils/mimeTypes.d.ts +2 -0
  507. package/lib/esm/utils/mimeTypes.js +39 -0
  508. package/lib/esm/utils/path/getUniqueKeyFromQpqFunctionRuntime.js +2 -2
  509. package/lib/esm/utils/path/index.d.ts +1 -1
  510. package/lib/esm/utils/path/index.js +1 -1
  511. package/lib/esm/utils/path/isQpqFunctionRuntimeAdvanced.d.ts +2 -0
  512. package/lib/esm/utils/path/isQpqFunctionRuntimeAdvanced.js +3 -0
  513. package/lib/esm/utils/uuid/generateUuid.d.ts +12 -0
  514. package/lib/esm/utils/uuid/generateUuid.js +14 -0
  515. package/lib/esm/utils/uuid/index.d.ts +1 -0
  516. package/lib/esm/utils/uuid/index.js +1 -0
  517. package/package.json +2 -2
  518. package/lib/commonjs/actions/ai/AiStreamPart.d.ts +0 -15
  519. package/lib/commonjs/utils/path/isQpqFunctionRuntimeAbsolutePath.d.ts +0 -2
  520. package/lib/commonjs/utils/path/isQpqFunctionRuntimeAbsolutePath.js +0 -6
  521. package/lib/esm/actions/ai/AiStreamPart.d.ts +0 -15
  522. package/lib/esm/utils/path/isQpqFunctionRuntimeAbsolutePath.d.ts +0 -2
  523. package/lib/esm/utils/path/isQpqFunctionRuntimeAbsolutePath.js +0 -3
  524. /package/lib/commonjs/actions/ai/{AiStreamPart.js → types/AiStreamAbort.js} +0 -0
  525. /package/lib/esm/actions/ai/{AiStreamPart.js → types/AiStreamAbort.js} +0 -0
@@ -1,4 +1,43 @@
1
- export interface AiMessage {
2
- role: 'user' | 'assistant';
3
- content: string;
1
+ export interface AiTextPart {
2
+ type: 'text';
3
+ text: string;
4
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;
@@ -1,7 +1,9 @@
1
+ import { AiMessage } from './AiMessage';
1
2
  import { AiModel } from './AiModel';
2
3
  import { AiPromptActionRequester } from './AiPromptActionTypes';
3
4
  export interface AskAiPromptOptions {
4
5
  system?: string;
5
6
  aiName?: string;
7
+ messages?: AiMessage[];
6
8
  }
7
9
  export declare function askAiPrompt(model: AiModel, prompt: string, options?: AskAiPromptOptions): AiPromptActionRequester;
@@ -8,6 +8,7 @@ function* askAiPrompt(model, prompt, options) {
8
8
  payload: {
9
9
  model,
10
10
  prompt,
11
+ messages: options === null || options === void 0 ? void 0 : options.messages,
11
12
  system: options === null || options === void 0 ? void 0 : options.system,
12
13
  aiName: options === null || options === void 0 ? void 0 : options.aiName,
13
14
  },
@@ -1,9 +1,11 @@
1
1
  import { Action, ActionProcessor, ActionRequester } from '../../types/Action';
2
2
  import { AiActionType } from './AiActionType';
3
+ import { AiMessage } from './AiMessage';
3
4
  import { AiModel } from './AiModel';
4
5
  export interface AiPromptActionPayload {
5
6
  model: AiModel;
6
7
  prompt: string;
8
+ messages?: AiMessage[];
7
9
  system?: string;
8
10
  aiName?: string;
9
11
  }
@@ -3,7 +3,7 @@ import { StreamHandle } from '../../types/StreamRegistry';
3
3
  import { AiActionType } from './AiActionType';
4
4
  import { AiMessage } from './AiMessage';
5
5
  import { AiModel } from './AiModel';
6
- import { AiStreamPart } from './AiStreamPart';
6
+ import { AiStreamPart } from './types';
7
7
  export interface AiPromptStreamActionPayload {
8
8
  model: AiModel;
9
9
  prompt: string;
@@ -5,4 +5,4 @@ export * from './AiPromptActionRequester';
5
5
  export * from './AiPromptActionTypes';
6
6
  export * from './AiPromptStreamActionRequester';
7
7
  export * from './AiPromptStreamActionTypes';
8
- export * from './AiStreamPart';
8
+ export * from './types';
@@ -21,4 +21,4 @@ __exportStar(require("./AiPromptActionRequester"), exports);
21
21
  __exportStar(require("./AiPromptActionTypes"), exports);
22
22
  __exportStar(require("./AiPromptStreamActionRequester"), exports);
23
23
  __exportStar(require("./AiPromptStreamActionTypes"), exports);
24
- __exportStar(require("./AiStreamPart"), 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,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 });
@@ -0,0 +1,9 @@
1
+ import { AiStreamPartType } from './AiStreamPartType';
2
+ import { AiStreamSource } from './AiStreamSource';
3
+ /**
4
+ * The model cited a source while generating its response — emitted for grounded / RAG answers.
5
+ */
6
+ export interface AiStreamSourcePart {
7
+ type: AiStreamPartType.Source;
8
+ source: AiStreamSource;
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ import { AiStreamPartType } from './AiStreamPartType';
2
+ /**
3
+ * Emitted once, before any other part — marks the beginning of the overall response.
4
+ */
5
+ export interface AiStreamStart {
6
+ type: AiStreamPartType.Start;
7
+ }
@@ -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
+ * A single generation step (one model round-trip) has started.
4
+ *
5
+ * Multi-step responses occur when the model invokes tools — each tool round-trip is a step.
6
+ */
7
+ export interface AiStreamStartStep {
8
+ type: AiStreamPartType.StartStep;
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
1
+ import { AiStreamPartType } from './AiStreamPartType';
2
+ /**
3
+ * An incremental chunk of visible model text inside an open text block.
4
+ *
5
+ * Concatenate all deltas sharing the same `id` to reconstruct the block's full text.
6
+ * This is the part to render in a typewriter-style UI.
7
+ */
8
+ export interface AiStreamTextDelta {
9
+ type: AiStreamPartType.TextDelta;
10
+ /** Identifier of the text block this delta belongs to. */
11
+ id: string;
12
+ /** The new text fragment to append. */
13
+ text: string;
14
+ }
@@ -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 text block opened by a matching {@link AiStreamTextStart} (same `id`).
4
+ */
5
+ export interface AiStreamTextEnd {
6
+ type: AiStreamPartType.TextEnd;
7
+ /** Identifier of the text block being closed. */
8
+ id: string;
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ import { AiStreamPartType } from './AiStreamPartType';
2
+ /**
3
+ * Beginning of a contiguous block of visible model text.
4
+ *
5
+ * Pair with the matching {@link AiStreamTextEnd} (same `id`). Deltas for this block
6
+ * arrive as {@link AiStreamTextDelta} with the same `id` in between.
7
+ */
8
+ export interface AiStreamTextStart {
9
+ type: AiStreamPartType.TextStart;
10
+ /** Identifier shared by the matching `TextDelta` / `TextEnd` parts. */
11
+ id: string;
12
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,18 @@
1
+ import { AiStreamPartType } from './AiStreamPartType';
2
+ /**
3
+ * The model wants to execute a tool but the tool is configured to require approval.
4
+ *
5
+ * Respond with an approval message (or a `ToolOutputDenied`) keyed by `approvalId`
6
+ * before the model will proceed.
7
+ */
8
+ export interface AiStreamToolApprovalRequest {
9
+ type: AiStreamPartType.ToolApprovalRequest;
10
+ /** Identifier the approve/deny response must reference. */
11
+ approvalId: string;
12
+ /** Id of the underlying tool call awaiting approval. */
13
+ toolCallId: string;
14
+ /** Name of the tool awaiting approval. */
15
+ toolName: string;
16
+ /** Arguments the tool would be called with if approved. */
17
+ input: unknown;
18
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });