@pikku/addon-admin 0.12.14 → 0.12.16

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 (521) hide show
  1. package/README.md +2 -1
  2. package/dist/.pikku/addon/agent/index.d.ts +1 -1
  3. package/dist/.pikku/addon/agent/index.d.ts.map +1 -1
  4. package/dist/.pikku/addon/agent/index.js +1 -1
  5. package/dist/.pikku/addon/agent/index.js.map +1 -1
  6. package/dist/.pikku/addon/agent/pikku-agent-map.gen.d.ts +1 -1
  7. package/dist/.pikku/addon/agent/pikku-agent-types.gen.d.ts +7 -2
  8. package/dist/.pikku/addon/agent/pikku-agent-types.gen.d.ts.map +1 -1
  9. package/dist/.pikku/addon/agent/pikku-agent-types.gen.js +5 -0
  10. package/dist/.pikku/addon/agent/pikku-agent-types.gen.js.map +1 -1
  11. package/dist/.pikku/addon/agent/pikku-model-aliases.gen.d.ts.map +1 -1
  12. package/dist/.pikku/addon/agent/pikku-model-aliases.gen.js +1 -1
  13. package/dist/.pikku/addon/agent/pikku-model-aliases.gen.js.map +1 -1
  14. package/dist/.pikku/addon/agent/pikku-scorer-names.gen.d.ts +1 -1
  15. package/dist/.pikku/addon/analytics/index.d.ts +1 -1
  16. package/dist/.pikku/addon/analytics/index.d.ts.map +1 -1
  17. package/dist/.pikku/addon/analytics/index.js +1 -1
  18. package/dist/.pikku/addon/analytics/index.js.map +1 -1
  19. package/dist/.pikku/addon/analytics/pikku-analytics-types.gen.d.ts +1 -1
  20. package/dist/.pikku/addon/analytics/pikku-analytics-types.gen.d.ts.map +1 -1
  21. package/dist/.pikku/addon/analytics/pikku-analytics-types.gen.js +1 -1
  22. package/dist/.pikku/addon/analytics/pikku-analytics-types.gen.js.map +1 -1
  23. package/dist/.pikku/addon/auth/index.d.ts +1 -1
  24. package/dist/.pikku/addon/auth/index.d.ts.map +1 -1
  25. package/dist/.pikku/addon/auth/index.js +1 -1
  26. package/dist/.pikku/addon/auth/index.js.map +1 -1
  27. package/dist/.pikku/addon/auth/pikku-auth-types.gen.d.ts +31 -12
  28. package/dist/.pikku/addon/auth/pikku-auth-types.gen.d.ts.map +1 -1
  29. package/dist/.pikku/addon/auth/pikku-auth-types.gen.js +19 -12
  30. package/dist/.pikku/addon/auth/pikku-auth-types.gen.js.map +1 -1
  31. package/dist/.pikku/addon/channel/index.d.ts +1 -1
  32. package/dist/.pikku/addon/channel/index.d.ts.map +1 -1
  33. package/dist/.pikku/addon/channel/index.js +1 -1
  34. package/dist/.pikku/addon/channel/index.js.map +1 -1
  35. package/dist/.pikku/addon/channel/pikku-channel-types.gen.d.ts +1 -1
  36. package/dist/.pikku/addon/channel/pikku-channel-types.gen.d.ts.map +1 -1
  37. package/dist/.pikku/addon/channel/pikku-channel-types.gen.js +1 -1
  38. package/dist/.pikku/addon/channel/pikku-channel-types.gen.js.map +1 -1
  39. package/dist/.pikku/addon/cli/index.d.ts +1 -1
  40. package/dist/.pikku/addon/cli/index.d.ts.map +1 -1
  41. package/dist/.pikku/addon/cli/index.js +1 -1
  42. package/dist/.pikku/addon/cli/index.js.map +1 -1
  43. package/dist/.pikku/addon/cli/pikku-cli-types.gen.d.ts +1 -1
  44. package/dist/.pikku/addon/cli/pikku-cli-types.gen.d.ts.map +1 -1
  45. package/dist/.pikku/addon/cli/pikku-cli-types.gen.js +1 -1
  46. package/dist/.pikku/addon/cli/pikku-cli-types.gen.js.map +1 -1
  47. package/dist/.pikku/addon/error/index.d.ts +1 -1
  48. package/dist/.pikku/addon/error/index.d.ts.map +1 -1
  49. package/dist/.pikku/addon/error/index.js +1 -1
  50. package/dist/.pikku/addon/error/index.js.map +1 -1
  51. package/dist/.pikku/addon/error/pikku-error-types.gen.d.ts +1 -1
  52. package/dist/.pikku/addon/error/pikku-error-types.gen.d.ts.map +1 -1
  53. package/dist/.pikku/addon/error/pikku-error-types.gen.js +1 -1
  54. package/dist/.pikku/addon/error/pikku-error-types.gen.js.map +1 -1
  55. package/dist/.pikku/addon/function/index.d.ts +1 -1
  56. package/dist/.pikku/addon/function/index.d.ts.map +1 -1
  57. package/dist/.pikku/addon/function/index.js +1 -1
  58. package/dist/.pikku/addon/function/index.js.map +1 -1
  59. package/dist/.pikku/addon/function/pikku-function-types.gen.d.ts +43 -5
  60. package/dist/.pikku/addon/function/pikku-function-types.gen.d.ts.map +1 -1
  61. package/dist/.pikku/addon/function/pikku-function-types.gen.js +20 -2
  62. package/dist/.pikku/addon/function/pikku-function-types.gen.js.map +1 -1
  63. package/dist/.pikku/addon/function/pikku-functions-meta-verbose.gen.json +696 -0
  64. package/dist/.pikku/addon/function/pikku-functions-meta.gen.d.ts.map +1 -1
  65. package/dist/.pikku/addon/function/pikku-functions-meta.gen.js +1 -1
  66. package/dist/.pikku/addon/function/pikku-functions-meta.gen.js.map +1 -1
  67. package/dist/.pikku/addon/function/pikku-functions-meta.gen.json +546 -0
  68. package/dist/.pikku/addon/function/pikku-functions.gen.d.ts.map +1 -1
  69. package/dist/.pikku/addon/function/pikku-functions.gen.js +37 -1
  70. package/dist/.pikku/addon/function/pikku-functions.gen.js.map +1 -1
  71. package/dist/.pikku/addon/http/index.d.ts +1 -1
  72. package/dist/.pikku/addon/http/index.d.ts.map +1 -1
  73. package/dist/.pikku/addon/http/index.js +1 -1
  74. package/dist/.pikku/addon/http/index.js.map +1 -1
  75. package/dist/.pikku/addon/http/pikku-http-types.gen.d.ts +1 -1
  76. package/dist/.pikku/addon/http/pikku-http-types.gen.d.ts.map +1 -1
  77. package/dist/.pikku/addon/http/pikku-http-types.gen.js +1 -1
  78. package/dist/.pikku/addon/http/pikku-http-types.gen.js.map +1 -1
  79. package/dist/.pikku/addon/mcp/index.d.ts +1 -1
  80. package/dist/.pikku/addon/mcp/index.d.ts.map +1 -1
  81. package/dist/.pikku/addon/mcp/index.js +1 -1
  82. package/dist/.pikku/addon/mcp/index.js.map +1 -1
  83. package/dist/.pikku/addon/mcp/pikku-mcp-types.gen.d.ts +1 -1
  84. package/dist/.pikku/addon/mcp/pikku-mcp-types.gen.d.ts.map +1 -1
  85. package/dist/.pikku/addon/mcp/pikku-mcp-types.gen.js +1 -1
  86. package/dist/.pikku/addon/mcp/pikku-mcp-types.gen.js.map +1 -1
  87. package/dist/.pikku/addon/middleware/index.d.ts +1 -1
  88. package/dist/.pikku/addon/middleware/index.d.ts.map +1 -1
  89. package/dist/.pikku/addon/middleware/index.js +1 -1
  90. package/dist/.pikku/addon/middleware/index.js.map +1 -1
  91. package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.d.ts +1 -1
  92. package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.d.ts.map +1 -1
  93. package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.js +1 -1
  94. package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.js.map +1 -1
  95. package/dist/.pikku/addon/permissions/pikku-permissions.gen.d.ts +5 -0
  96. package/dist/.pikku/addon/permissions/pikku-permissions.gen.d.ts.map +1 -0
  97. package/dist/.pikku/addon/permissions/pikku-permissions.gen.js +5 -0
  98. package/dist/.pikku/addon/permissions/pikku-permissions.gen.js.map +1 -0
  99. package/dist/.pikku/addon/pikku-bootstrap-scenarios.gen.d.ts +1 -1
  100. package/dist/.pikku/addon/pikku-bootstrap-scenarios.gen.d.ts.map +1 -1
  101. package/dist/.pikku/addon/pikku-bootstrap-scenarios.gen.js +1 -1
  102. package/dist/.pikku/addon/pikku-bootstrap-scenarios.gen.js.map +1 -1
  103. package/dist/.pikku/addon/pikku-bootstrap.gen.d.ts +2 -1
  104. package/dist/.pikku/addon/pikku-bootstrap.gen.d.ts.map +1 -1
  105. package/dist/.pikku/addon/pikku-bootstrap.gen.js +2 -1
  106. package/dist/.pikku/addon/pikku-bootstrap.gen.js.map +1 -1
  107. package/dist/.pikku/addon/pikku-local-services.gen.d.ts.map +1 -1
  108. package/dist/.pikku/addon/pikku-local-services.gen.js +1 -1
  109. package/dist/.pikku/addon/pikku-local-services.gen.js.map +1 -1
  110. package/dist/.pikku/addon/pikku-package.gen.d.ts.map +1 -1
  111. package/dist/.pikku/addon/pikku-package.gen.js +2 -2
  112. package/dist/.pikku/addon/pikku-package.gen.js.map +1 -1
  113. package/dist/.pikku/addon/pikku-services.gen.d.ts +9 -9
  114. package/dist/.pikku/addon/pikku-services.gen.d.ts.map +1 -1
  115. package/dist/.pikku/addon/pikku-services.gen.js +7 -7
  116. package/dist/.pikku/addon/pikku-services.gen.js.map +1 -1
  117. package/dist/.pikku/addon/rpc/pikku-rpc-wirings-map.gen.d.ts +105 -19
  118. package/dist/.pikku/addon/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +106 -19
  119. package/dist/.pikku/addon/rpc/pikku-rpc-wirings-map.remote.gen.d.ts +86 -19
  120. package/dist/.pikku/addon/rpc/pikku-rpc-wirings-meta.internal.gen.d.ts.map +1 -1
  121. package/dist/.pikku/addon/rpc/pikku-rpc-wirings-meta.internal.gen.js +1 -1
  122. package/dist/.pikku/addon/rpc/pikku-rpc-wirings-meta.internal.gen.js.map +1 -1
  123. package/dist/.pikku/addon/rpc/pikku-rpc-wirings-meta.internal.gen.json +18 -0
  124. package/dist/.pikku/addon/scenarios/index.d.ts +1 -1
  125. package/dist/.pikku/addon/scenarios/index.d.ts.map +1 -1
  126. package/dist/.pikku/addon/scenarios/index.js +1 -1
  127. package/dist/.pikku/addon/scenarios/index.js.map +1 -1
  128. package/dist/.pikku/addon/scenarios/pikku-scenario-functions-meta.gen.d.ts.map +1 -1
  129. package/dist/.pikku/addon/scenarios/pikku-scenario-functions-meta.gen.js +1 -1
  130. package/dist/.pikku/addon/scenarios/pikku-scenario-functions-meta.gen.js.map +1 -1
  131. package/dist/.pikku/addon/scenarios/pikku-scenario-functions.gen.d.ts +1 -1
  132. package/dist/.pikku/addon/scenarios/pikku-scenario-functions.gen.d.ts.map +1 -1
  133. package/dist/.pikku/addon/scenarios/pikku-scenario-functions.gen.js.map +1 -1
  134. package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.d.ts +9 -2
  135. package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.d.ts.map +1 -1
  136. package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.js.map +1 -1
  137. package/dist/.pikku/addon/scenarios/pikku-scenario-wirings-meta.gen.d.ts.map +1 -1
  138. package/dist/.pikku/addon/scenarios/pikku-scenario-wirings-meta.gen.js +1 -1
  139. package/dist/.pikku/addon/scenarios/pikku-scenario-wirings-meta.gen.js.map +1 -1
  140. package/dist/.pikku/addon/scenarios/pikku-scenario-wirings.gen.d.ts +1 -1
  141. package/dist/.pikku/addon/scenarios/pikku-scenario-wirings.gen.d.ts.map +1 -1
  142. package/dist/.pikku/addon/scenarios/pikku-scenario-wirings.gen.js.map +1 -1
  143. package/dist/.pikku/addon/scenarios/pikku-virtual-users.gen.d.ts.map +1 -1
  144. package/dist/.pikku/addon/scenarios/pikku-virtual-users.gen.js +1 -1
  145. package/dist/.pikku/addon/scenarios/pikku-virtual-users.gen.js.map +1 -1
  146. package/dist/.pikku/addon/scenarios/schemas/register.gen.d.ts +1 -1
  147. package/dist/.pikku/addon/scenarios/schemas/register.gen.d.ts.map +1 -1
  148. package/dist/.pikku/addon/scenarios/schemas/register.gen.js +1 -1
  149. package/dist/.pikku/addon/scenarios/schemas/register.gen.js.map +1 -1
  150. package/dist/.pikku/addon/schemas/register.gen.d.ts.map +1 -1
  151. package/dist/.pikku/addon/schemas/register.gen.js +69 -1
  152. package/dist/.pikku/addon/schemas/register.gen.js.map +1 -1
  153. package/dist/.pikku/addon/schemas/schemas/AddonFilter.schema.json +1 -0
  154. package/dist/.pikku/addon/schemas/schemas/DeleteAgentThreadInput.schema.json +1 -0
  155. package/dist/.pikku/addon/schemas/schemas/DeleteAgentThreadOutput.schema.json +1 -0
  156. package/dist/.pikku/addon/schemas/schemas/DeleteWorkflowRunInput.schema.json +1 -0
  157. package/dist/.pikku/addon/schemas/schemas/DeleteWorkflowRunOutput.schema.json +1 -0
  158. package/dist/.pikku/addon/schemas/schemas/GetAgentRunScoresInput.schema.json +1 -0
  159. package/dist/.pikku/addon/schemas/schemas/GetAgentRunScoresOutput.schema.json +1 -0
  160. package/dist/.pikku/addon/schemas/schemas/GetAgentThreadMessagesInput.schema.json +1 -0
  161. package/dist/.pikku/addon/schemas/schemas/GetAgentThreadMessagesOutput.schema.json +1 -0
  162. package/dist/.pikku/addon/schemas/schemas/GetAgentThreadRunsInput.schema.json +1 -0
  163. package/dist/.pikku/addon/schemas/schemas/GetAgentThreadRunsOutput.schema.json +1 -0
  164. package/dist/.pikku/addon/schemas/schemas/GetAgentThreadsInput.schema.json +1 -0
  165. package/dist/.pikku/addon/schemas/schemas/GetAgentThreadsOutput.schema.json +1 -0
  166. package/dist/.pikku/addon/schemas/schemas/GetVirtualUserRunStepsInput.schema.json +1 -0
  167. package/dist/.pikku/addon/schemas/schemas/GetVirtualUserRunStepsOutput.schema.json +1 -0
  168. package/dist/.pikku/addon/schemas/schemas/GetVirtualUserRunsInput.schema.json +1 -0
  169. package/dist/.pikku/addon/schemas/schemas/GetVirtualUserRunsOutput.schema.json +1 -0
  170. package/dist/.pikku/addon/schemas/schemas/GetVirtualUserSchedulesOutput.schema.json +1 -0
  171. package/dist/.pikku/addon/schemas/schemas/GetWebhookDeliveryInput.schema.json +1 -0
  172. package/dist/.pikku/addon/schemas/schemas/GetWorkflowRunHistoryInput.schema.json +1 -0
  173. package/dist/.pikku/addon/schemas/schemas/GetWorkflowRunHistoryOutput.schema.json +1 -0
  174. package/dist/.pikku/addon/schemas/schemas/GetWorkflowRunInput.schema.json +1 -0
  175. package/dist/.pikku/addon/schemas/schemas/GetWorkflowRunNamesOutput.schema.json +1 -0
  176. package/dist/.pikku/addon/schemas/schemas/GetWorkflowRunOutput.schema.json +1 -0
  177. package/dist/.pikku/addon/schemas/schemas/GetWorkflowRunStepsInput.schema.json +1 -0
  178. package/dist/.pikku/addon/schemas/schemas/GetWorkflowRunStepsOutput.schema.json +1 -0
  179. package/dist/.pikku/addon/schemas/schemas/GetWorkflowRunsInput.schema.json +1 -0
  180. package/dist/.pikku/addon/schemas/schemas/GetWorkflowRunsOutput.schema.json +1 -0
  181. package/dist/.pikku/addon/schemas/schemas/GetWorkflowVersionInput.schema.json +1 -0
  182. package/dist/.pikku/addon/schemas/schemas/GetWorkflowVersionOutput.schema.json +1 -0
  183. package/dist/.pikku/addon/schemas/schemas/ListWebhookDeliveriesInput.schema.json +1 -0
  184. package/dist/.pikku/addon/schemas/schemas/ListWebhookDeliveriesOutput.schema.json +1 -0
  185. package/dist/.pikku/addon/schemas/schemas/StreamWorkflowRunInput.schema.json +1 -0
  186. package/dist/.pikku/addon/schemas/schemas/WebhookDeliveryWithAttempts.schema.json +1 -0
  187. package/dist/.pikku/addon/scopes/index.d.ts +2 -1
  188. package/dist/.pikku/addon/scopes/index.d.ts.map +1 -1
  189. package/dist/.pikku/addon/scopes/index.js +2 -1
  190. package/dist/.pikku/addon/scopes/index.js.map +1 -1
  191. package/dist/.pikku/addon/scopes/pikku-flags-manifest.gen.d.ts +2 -2
  192. package/dist/.pikku/addon/scopes/pikku-flags-manifest.gen.d.ts.map +1 -1
  193. package/dist/.pikku/addon/scopes/pikku-flags-manifest.gen.js +1 -1
  194. package/dist/.pikku/addon/scopes/pikku-flags-manifest.gen.js.map +1 -1
  195. package/dist/.pikku/addon/scopes/pikku-flags.gen.d.ts +1 -1
  196. package/dist/.pikku/addon/scopes/pikku-flags.gen.d.ts.map +1 -1
  197. package/dist/.pikku/addon/scopes/pikku-flags.gen.js.map +1 -1
  198. package/dist/.pikku/addon/scopes/pikku-roles.gen.d.ts +1 -1
  199. package/dist/.pikku/addon/scopes/pikku-roles.gen.d.ts.map +1 -1
  200. package/dist/.pikku/addon/scopes/pikku-roles.gen.js.map +1 -1
  201. package/dist/.pikku/addon/scopes/pikku-scope-types.gen.d.ts +3 -2
  202. package/dist/.pikku/addon/scopes/pikku-scope-types.gen.d.ts.map +1 -1
  203. package/dist/.pikku/addon/scopes/pikku-scope-types.gen.js +2 -2
  204. package/dist/.pikku/addon/scopes/pikku-scope-types.gen.js.map +1 -1
  205. package/dist/.pikku/addon/scopes/pikku-scopes-meta.gen.json +33 -0
  206. package/dist/.pikku/addon/scopes/pikku-scopes.gen.d.ts +2 -2
  207. package/dist/.pikku/addon/scopes/pikku-scopes.gen.d.ts.map +1 -1
  208. package/dist/.pikku/addon/scopes/pikku-scopes.gen.js.map +1 -1
  209. package/dist/.pikku/addon/scopes/pikku-virtual-users.gen.d.ts +3 -0
  210. package/dist/.pikku/addon/scopes/pikku-virtual-users.gen.d.ts.map +1 -1
  211. package/dist/.pikku/addon/scopes/pikku-virtual-users.gen.js +4 -1
  212. package/dist/.pikku/addon/scopes/pikku-virtual-users.gen.js.map +1 -1
  213. package/dist/.pikku/addon/secrets/index.d.ts +1 -1
  214. package/dist/.pikku/addon/secrets/index.d.ts.map +1 -1
  215. package/dist/.pikku/addon/secrets/index.js +1 -1
  216. package/dist/.pikku/addon/secrets/index.js.map +1 -1
  217. package/dist/.pikku/addon/secrets/pikku-secret-types.gen.d.ts +1 -1
  218. package/dist/.pikku/addon/secrets/pikku-secret-types.gen.d.ts.map +1 -1
  219. package/dist/.pikku/addon/secrets/pikku-secret-types.gen.js +1 -1
  220. package/dist/.pikku/addon/secrets/pikku-secret-types.gen.js.map +1 -1
  221. package/dist/.pikku/addon/secrets/pikku-secrets.gen.d.ts +2 -2
  222. package/dist/.pikku/addon/secrets/pikku-secrets.gen.d.ts.map +1 -1
  223. package/dist/.pikku/addon/secrets/pikku-secrets.gen.js +1 -1
  224. package/dist/.pikku/addon/secrets/pikku-secrets.gen.js.map +1 -1
  225. package/dist/.pikku/addon/services/pikku-meta-service.gen.d.ts +1 -1
  226. package/dist/.pikku/addon/services/pikku-meta-service.gen.d.ts.map +1 -1
  227. package/dist/.pikku/addon/services/pikku-meta-service.gen.js +1 -1
  228. package/dist/.pikku/addon/services/pikku-meta-service.gen.js.map +1 -1
  229. package/dist/.pikku/addon/setup/index.d.ts +1 -1
  230. package/dist/.pikku/addon/setup/index.d.ts.map +1 -1
  231. package/dist/.pikku/addon/setup/index.js +1 -1
  232. package/dist/.pikku/addon/setup/index.js.map +1 -1
  233. package/dist/.pikku/addon/setup/pikku-addon-setup-types.gen.d.ts +3 -1
  234. package/dist/.pikku/addon/setup/pikku-addon-setup-types.gen.d.ts.map +1 -1
  235. package/dist/.pikku/addon/setup/pikku-addon-setup-types.gen.js +3 -1
  236. package/dist/.pikku/addon/setup/pikku-addon-setup-types.gen.js.map +1 -1
  237. package/dist/.pikku/addon/setup/pikku-setup-types.gen.d.ts +1 -1
  238. package/dist/.pikku/addon/setup/pikku-setup-types.gen.d.ts.map +1 -1
  239. package/dist/.pikku/addon/setup/pikku-setup-types.gen.js +1 -1
  240. package/dist/.pikku/addon/setup/pikku-setup-types.gen.js.map +1 -1
  241. package/dist/.pikku/addon/trigger/index.d.ts +1 -1
  242. package/dist/.pikku/addon/trigger/index.d.ts.map +1 -1
  243. package/dist/.pikku/addon/trigger/index.js +1 -1
  244. package/dist/.pikku/addon/trigger/index.js.map +1 -1
  245. package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.d.ts +1 -1
  246. package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.d.ts.map +1 -1
  247. package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.js +1 -1
  248. package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.js.map +1 -1
  249. package/dist/.pikku/addon/utils/index.d.ts +1 -1
  250. package/dist/.pikku/addon/utils/index.d.ts.map +1 -1
  251. package/dist/.pikku/addon/utils/index.js +1 -1
  252. package/dist/.pikku/addon/utils/index.js.map +1 -1
  253. package/dist/.pikku/addon/utils/pikku-utils-types.gen.d.ts +1 -1
  254. package/dist/.pikku/addon/utils/pikku-utils-types.gen.d.ts.map +1 -1
  255. package/dist/.pikku/addon/utils/pikku-utils-types.gen.js +1 -1
  256. package/dist/.pikku/addon/utils/pikku-utils-types.gen.js.map +1 -1
  257. package/dist/.pikku/addon/variables/index.d.ts +1 -1
  258. package/dist/.pikku/addon/variables/index.d.ts.map +1 -1
  259. package/dist/.pikku/addon/variables/index.js +1 -1
  260. package/dist/.pikku/addon/variables/index.js.map +1 -1
  261. package/dist/.pikku/addon/variables/pikku-variable-types.gen.d.ts +1 -1
  262. package/dist/.pikku/addon/variables/pikku-variable-types.gen.d.ts.map +1 -1
  263. package/dist/.pikku/addon/variables/pikku-variable-types.gen.js +1 -1
  264. package/dist/.pikku/addon/variables/pikku-variable-types.gen.js.map +1 -1
  265. package/dist/.pikku/addon/variables/pikku-variables.gen.d.ts +2 -2
  266. package/dist/.pikku/addon/variables/pikku-variables.gen.d.ts.map +1 -1
  267. package/dist/.pikku/addon/variables/pikku-variables.gen.js +1 -1
  268. package/dist/.pikku/addon/variables/pikku-variables.gen.js.map +1 -1
  269. package/dist/.pikku/addon/webhooks/pikku-outgoing-webhooks.gen.d.ts +2 -2
  270. package/dist/.pikku/addon/webhooks/pikku-outgoing-webhooks.gen.d.ts.map +1 -1
  271. package/dist/.pikku/addon/webhooks/pikku-outgoing-webhooks.gen.js.map +1 -1
  272. package/dist/.pikku/addon/workflow/index.d.ts +1 -1
  273. package/dist/.pikku/addon/workflow/index.d.ts.map +1 -1
  274. package/dist/.pikku/addon/workflow/index.js +1 -1
  275. package/dist/.pikku/addon/workflow/index.js.map +1 -1
  276. package/dist/.pikku/addon/workflow/pikku-scenario-step-map.gen.d.ts +1 -1
  277. package/dist/.pikku/addon/workflow/pikku-workflow-map.gen.d.ts +1 -1
  278. package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.d.ts +31 -6
  279. package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.d.ts.map +1 -1
  280. package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.js +1 -1
  281. package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.js.map +1 -1
  282. package/dist/.pikku/addon/workflow/pikku-workflow-wirings-meta.gen.d.ts.map +1 -1
  283. package/dist/.pikku/addon/workflow/pikku-workflow-wirings-meta.gen.js +1 -1
  284. package/dist/.pikku/addon/workflow/pikku-workflow-wirings-meta.gen.js.map +1 -1
  285. package/dist/.pikku/addon/workflow/pikku-workflow-wirings.gen.d.ts +1 -1
  286. package/dist/.pikku/addon/workflow/pikku-workflow-wirings.gen.d.ts.map +1 -1
  287. package/dist/.pikku/addon/workflow/pikku-workflow-wirings.gen.js +1 -1
  288. package/dist/.pikku/addon/workflow/pikku-workflow-wirings.gen.js.map +1 -1
  289. package/dist/src/functions/addon-filter.function.test.d.ts +2 -0
  290. package/dist/src/functions/addon-filter.function.test.d.ts.map +1 -0
  291. package/dist/src/functions/addon-filter.function.test.js +131 -0
  292. package/dist/src/functions/addon-filter.function.test.js.map +1 -0
  293. package/dist/src/functions/create-user.function.d.ts.map +1 -1
  294. package/dist/src/functions/create-user.function.js.map +1 -1
  295. package/dist/src/functions/credential-delete.function.d.ts.map +1 -1
  296. package/dist/src/functions/credential-delete.function.js.map +1 -1
  297. package/dist/src/functions/credential-get.function.d.ts.map +1 -1
  298. package/dist/src/functions/credential-get.function.js.map +1 -1
  299. package/dist/src/functions/credential-list-users.function.d.ts.map +1 -1
  300. package/dist/src/functions/credential-list-users.function.js.map +1 -1
  301. package/dist/src/functions/credential-set.function.d.ts.map +1 -1
  302. package/dist/src/functions/credential-set.function.js.map +1 -1
  303. package/dist/src/functions/credential-status.function.d.ts.map +1 -1
  304. package/dist/src/functions/credential-status.function.js.map +1 -1
  305. package/dist/src/functions/credential-users.function.d.ts.map +1 -1
  306. package/dist/src/functions/credential-users.function.js.map +1 -1
  307. package/dist/src/functions/delete-agent-thread.function.d.ts +14 -0
  308. package/dist/src/functions/delete-agent-thread.function.d.ts.map +1 -0
  309. package/dist/src/functions/delete-agent-thread.function.js +14 -0
  310. package/dist/src/functions/delete-agent-thread.function.js.map +1 -0
  311. package/dist/src/functions/delete-agent-thread.function.test.d.ts +2 -0
  312. package/dist/src/functions/delete-agent-thread.function.test.d.ts.map +1 -0
  313. package/dist/src/functions/delete-agent-thread.function.test.js +8 -0
  314. package/dist/src/functions/delete-agent-thread.function.test.js.map +1 -0
  315. package/dist/src/functions/delete-workflow-run.function.d.ts +14 -0
  316. package/dist/src/functions/delete-workflow-run.function.d.ts.map +1 -0
  317. package/dist/src/functions/delete-workflow-run.function.js +12 -0
  318. package/dist/src/functions/delete-workflow-run.function.js.map +1 -0
  319. package/dist/src/functions/flag-clear-override.function.d.ts.map +1 -1
  320. package/dist/src/functions/flag-clear-override.function.js.map +1 -1
  321. package/dist/src/functions/flag-list.function.d.ts.map +1 -1
  322. package/dist/src/functions/flag-list.function.js.map +1 -1
  323. package/dist/src/functions/flag-overrides.function.d.ts.map +1 -1
  324. package/dist/src/functions/flag-overrides.function.js.map +1 -1
  325. package/dist/src/functions/flag-prune.function.d.ts.map +1 -1
  326. package/dist/src/functions/flag-prune.function.js.map +1 -1
  327. package/dist/src/functions/flag-set-enabled.function.d.ts.map +1 -1
  328. package/dist/src/functions/flag-set-enabled.function.js.map +1 -1
  329. package/dist/src/functions/flag-set-override.function.d.ts.map +1 -1
  330. package/dist/src/functions/flag-set-override.function.js.map +1 -1
  331. package/dist/src/functions/flag-set-rollout.function.d.ts.map +1 -1
  332. package/dist/src/functions/flag-set-rollout.function.js.map +1 -1
  333. package/dist/src/functions/flag-sync.function.d.ts.map +1 -1
  334. package/dist/src/functions/flag-sync.function.js.map +1 -1
  335. package/dist/src/functions/get-agent-run-scores.function.d.ts +8 -0
  336. package/dist/src/functions/get-agent-run-scores.function.d.ts.map +1 -0
  337. package/dist/src/functions/get-agent-run-scores.function.js +25 -0
  338. package/dist/src/functions/get-agent-run-scores.function.js.map +1 -0
  339. package/dist/src/functions/get-agent-run-scores.function.test.d.ts +2 -0
  340. package/dist/src/functions/get-agent-run-scores.function.test.d.ts.map +1 -0
  341. package/dist/src/functions/get-agent-run-scores.function.test.js +34 -0
  342. package/dist/src/functions/get-agent-run-scores.function.test.js.map +1 -0
  343. package/dist/src/functions/get-agent-thread-messages.function.d.ts +8 -0
  344. package/dist/src/functions/get-agent-thread-messages.function.d.ts.map +1 -0
  345. package/dist/src/functions/get-agent-thread-messages.function.js +13 -0
  346. package/dist/src/functions/get-agent-thread-messages.function.js.map +1 -0
  347. package/dist/src/functions/get-agent-thread-messages.function.test.d.ts +2 -0
  348. package/dist/src/functions/get-agent-thread-messages.function.test.d.ts.map +1 -0
  349. package/dist/src/functions/get-agent-thread-messages.function.test.js +8 -0
  350. package/dist/src/functions/get-agent-thread-messages.function.test.js.map +1 -0
  351. package/dist/src/functions/get-agent-thread-runs.function.d.ts +8 -0
  352. package/dist/src/functions/get-agent-thread-runs.function.d.ts.map +1 -0
  353. package/dist/src/functions/get-agent-thread-runs.function.js +22 -0
  354. package/dist/src/functions/get-agent-thread-runs.function.js.map +1 -0
  355. package/dist/src/functions/get-agent-thread-runs.function.test.d.ts +2 -0
  356. package/dist/src/functions/get-agent-thread-runs.function.test.d.ts.map +1 -0
  357. package/dist/src/functions/get-agent-thread-runs.function.test.js +27 -0
  358. package/dist/src/functions/get-agent-thread-runs.function.test.js.map +1 -0
  359. package/dist/src/functions/get-agent-threads.function.d.ts +18 -0
  360. package/dist/src/functions/get-agent-threads.function.d.ts.map +1 -0
  361. package/dist/src/functions/get-agent-threads.function.js +34 -0
  362. package/dist/src/functions/get-agent-threads.function.js.map +1 -0
  363. package/dist/src/functions/get-agent-threads.function.test.d.ts +2 -0
  364. package/dist/src/functions/get-agent-threads.function.test.d.ts.map +1 -0
  365. package/dist/src/functions/get-agent-threads.function.test.js +60 -0
  366. package/dist/src/functions/get-agent-threads.function.test.js.map +1 -0
  367. package/dist/src/functions/get-audit-filters.function.d.ts.map +1 -1
  368. package/dist/src/functions/get-audit-filters.function.js.map +1 -1
  369. package/dist/src/functions/get-audits.function.d.ts.map +1 -1
  370. package/dist/src/functions/get-audits.function.js.map +1 -1
  371. package/dist/src/functions/get-incoming-webhook-receipt.function.d.ts.map +1 -1
  372. package/dist/src/functions/get-incoming-webhook-receipt.function.js.map +1 -1
  373. package/dist/src/functions/get-queue-history.function.d.ts.map +1 -1
  374. package/dist/src/functions/get-queue-history.function.js.map +1 -1
  375. package/dist/src/functions/get-queue-history.function.test.d.ts.map +1 -1
  376. package/dist/src/functions/get-queue-history.function.test.js.map +1 -1
  377. package/dist/src/functions/get-scheduler-history.function.d.ts.map +1 -1
  378. package/dist/src/functions/get-scheduler-history.function.js.map +1 -1
  379. package/dist/src/functions/get-scheduler-history.function.test.d.ts.map +1 -1
  380. package/dist/src/functions/get-scheduler-history.function.test.js.map +1 -1
  381. package/dist/src/functions/get-virtual-user-run-steps.function.d.ts +14 -0
  382. package/dist/src/functions/get-virtual-user-run-steps.function.d.ts.map +1 -0
  383. package/dist/src/functions/get-virtual-user-run-steps.function.js +31 -0
  384. package/dist/src/functions/get-virtual-user-run-steps.function.js.map +1 -0
  385. package/dist/src/functions/get-virtual-user-runs.function.d.ts +14 -0
  386. package/dist/src/functions/get-virtual-user-runs.function.d.ts.map +1 -0
  387. package/dist/src/functions/get-virtual-user-runs.function.js +39 -0
  388. package/dist/src/functions/get-virtual-user-runs.function.js.map +1 -0
  389. package/dist/src/functions/get-virtual-user-schedules.function.d.ts +16 -0
  390. package/dist/src/functions/get-virtual-user-schedules.function.d.ts.map +1 -0
  391. package/dist/src/functions/get-virtual-user-schedules.function.js +33 -0
  392. package/dist/src/functions/get-virtual-user-schedules.function.js.map +1 -0
  393. package/dist/src/functions/get-webhook-delivery.function.d.ts +9 -0
  394. package/dist/src/functions/get-webhook-delivery.function.d.ts.map +1 -0
  395. package/dist/src/functions/get-webhook-delivery.function.js +14 -0
  396. package/dist/src/functions/get-webhook-delivery.function.js.map +1 -0
  397. package/dist/src/functions/get-workflow-run-history.function.d.ts +8 -0
  398. package/dist/src/functions/get-workflow-run-history.function.d.ts.map +1 -0
  399. package/dist/src/functions/get-workflow-run-history.function.js +11 -0
  400. package/dist/src/functions/get-workflow-run-history.function.js.map +1 -0
  401. package/dist/src/functions/get-workflow-run-names.function.d.ts +3 -0
  402. package/dist/src/functions/get-workflow-run-names.function.d.ts.map +1 -0
  403. package/dist/src/functions/get-workflow-run-names.function.js +12 -0
  404. package/dist/src/functions/get-workflow-run-names.function.js.map +1 -0
  405. package/dist/src/functions/get-workflow-run-steps.function.d.ts +8 -0
  406. package/dist/src/functions/get-workflow-run-steps.function.d.ts.map +1 -0
  407. package/dist/src/functions/get-workflow-run-steps.function.js +11 -0
  408. package/dist/src/functions/get-workflow-run-steps.function.js.map +1 -0
  409. package/dist/src/functions/get-workflow-run.function.d.ts +8 -0
  410. package/dist/src/functions/get-workflow-run.function.d.ts.map +1 -0
  411. package/dist/src/functions/get-workflow-run.function.js +15 -0
  412. package/dist/src/functions/get-workflow-run.function.js.map +1 -0
  413. package/dist/src/functions/get-workflow-runs.function.d.ts +18 -0
  414. package/dist/src/functions/get-workflow-runs.function.d.ts.map +1 -0
  415. package/dist/src/functions/get-workflow-runs.function.js +27 -0
  416. package/dist/src/functions/get-workflow-runs.function.js.map +1 -0
  417. package/dist/src/functions/get-workflow-version.function.d.ts +20 -0
  418. package/dist/src/functions/get-workflow-version.function.d.ts.map +1 -0
  419. package/dist/src/functions/get-workflow-version.function.js +11 -0
  420. package/dist/src/functions/get-workflow-version.function.js.map +1 -0
  421. package/dist/src/functions/incoming-webhook-receipts.function.test.d.ts.map +1 -1
  422. package/dist/src/functions/incoming-webhook-receipts.function.test.js.map +1 -1
  423. package/dist/src/functions/is-thread-owner.permission.d.ts +13 -0
  424. package/dist/src/functions/is-thread-owner.permission.d.ts.map +1 -0
  425. package/dist/src/functions/is-thread-owner.permission.js +23 -0
  426. package/dist/src/functions/is-thread-owner.permission.js.map +1 -0
  427. package/dist/src/functions/is-thread-owner.permission.test.d.ts +2 -0
  428. package/dist/src/functions/is-thread-owner.permission.test.d.ts.map +1 -0
  429. package/dist/src/functions/is-thread-owner.permission.test.js +25 -0
  430. package/dist/src/functions/is-thread-owner.permission.test.js.map +1 -0
  431. package/dist/src/functions/list-incoming-webhook-receipts.function.d.ts.map +1 -1
  432. package/dist/src/functions/list-incoming-webhook-receipts.function.js.map +1 -1
  433. package/dist/src/functions/list-users.function.d.ts.map +1 -1
  434. package/dist/src/functions/list-users.function.js.map +1 -1
  435. package/dist/src/functions/list-users.function.test.d.ts.map +1 -1
  436. package/dist/src/functions/list-users.function.test.js.map +1 -1
  437. package/dist/src/functions/list-webhook-deliveries.function.d.ts +22 -0
  438. package/dist/src/functions/list-webhook-deliveries.function.d.ts.map +1 -0
  439. package/dist/src/functions/list-webhook-deliveries.function.js +24 -0
  440. package/dist/src/functions/list-webhook-deliveries.function.js.map +1 -0
  441. package/dist/src/functions/ping.function.d.ts.map +1 -1
  442. package/dist/src/functions/ping.function.js.map +1 -1
  443. package/dist/src/functions/remove-user.function.d.ts.map +1 -1
  444. package/dist/src/functions/remove-user.function.js.map +1 -1
  445. package/dist/src/functions/revoke-user-sessions.function.d.ts.map +1 -1
  446. package/dist/src/functions/revoke-user-sessions.function.js.map +1 -1
  447. package/dist/src/functions/scope-add-scope-to-user.function.d.ts.map +1 -1
  448. package/dist/src/functions/scope-add-scope-to-user.function.js.map +1 -1
  449. package/dist/src/functions/scope-add-user-to-role.function.d.ts.map +1 -1
  450. package/dist/src/functions/scope-add-user-to-role.function.js.map +1 -1
  451. package/dist/src/functions/scope-create-role.function.d.ts.map +1 -1
  452. package/dist/src/functions/scope-create-role.function.js.map +1 -1
  453. package/dist/src/functions/scope-delete-role.function.d.ts.map +1 -1
  454. package/dist/src/functions/scope-delete-role.function.js.map +1 -1
  455. package/dist/src/functions/scope-list-declared.function.d.ts.map +1 -1
  456. package/dist/src/functions/scope-list-declared.function.js.map +1 -1
  457. package/dist/src/functions/scope-list-roles.function.d.ts.map +1 -1
  458. package/dist/src/functions/scope-list-roles.function.js.map +1 -1
  459. package/dist/src/functions/scope-list-user-roles.function.d.ts.map +1 -1
  460. package/dist/src/functions/scope-list-user-roles.function.js.map +1 -1
  461. package/dist/src/functions/scope-remove-scope-from-user.function.d.ts.map +1 -1
  462. package/dist/src/functions/scope-remove-scope-from-user.function.js.map +1 -1
  463. package/dist/src/functions/scope-remove-user-from-role.function.d.ts.map +1 -1
  464. package/dist/src/functions/scope-remove-user-from-role.function.js.map +1 -1
  465. package/dist/src/functions/scope-set-role-scopes.function.d.ts.map +1 -1
  466. package/dist/src/functions/scope-set-role-scopes.function.js.map +1 -1
  467. package/dist/src/functions/send-sign-in-link.function.d.ts.map +1 -1
  468. package/dist/src/functions/send-sign-in-link.function.js.map +1 -1
  469. package/dist/src/functions/set-user-banned.function.d.ts.map +1 -1
  470. package/dist/src/functions/set-user-banned.function.js.map +1 -1
  471. package/dist/src/functions/set-user-password.function.d.ts.map +1 -1
  472. package/dist/src/functions/set-user-password.function.js.map +1 -1
  473. package/dist/src/functions/stream-workflow-run.function.d.ts +8 -0
  474. package/dist/src/functions/stream-workflow-run.function.d.ts.map +1 -0
  475. package/dist/src/functions/stream-workflow-run.function.js +57 -0
  476. package/dist/src/functions/stream-workflow-run.function.js.map +1 -0
  477. package/dist/src/functions/trigger-source-disable.function.d.ts.map +1 -1
  478. package/dist/src/functions/trigger-source-disable.function.js.map +1 -1
  479. package/dist/src/functions/trigger-source-enable.function.d.ts.map +1 -1
  480. package/dist/src/functions/trigger-source-enable.function.js.map +1 -1
  481. package/dist/src/functions/trigger-source-forget.function.d.ts.map +1 -1
  482. package/dist/src/functions/trigger-source-forget.function.js.map +1 -1
  483. package/dist/src/functions/trigger-source-list.function.d.ts.map +1 -1
  484. package/dist/src/functions/trigger-source-list.function.js.map +1 -1
  485. package/dist/src/functions/trigger-source-reconcile.function.d.ts.map +1 -1
  486. package/dist/src/functions/trigger-source-reconcile.function.js.map +1 -1
  487. package/dist/src/functions/trigger-source-teardown.function.d.ts.map +1 -1
  488. package/dist/src/functions/trigger-source-teardown.function.js.map +1 -1
  489. package/dist/src/functions/webhook-deliveries.function.test.d.ts +2 -0
  490. package/dist/src/functions/webhook-deliveries.function.test.d.ts.map +1 -0
  491. package/dist/src/functions/webhook-deliveries.function.test.js +24 -0
  492. package/dist/src/functions/webhook-deliveries.function.test.js.map +1 -0
  493. package/dist/src/lib/addon-scope.d.ts +13 -0
  494. package/dist/src/lib/addon-scope.d.ts.map +1 -0
  495. package/dist/src/lib/addon-scope.js +19 -0
  496. package/dist/src/lib/addon-scope.js.map +1 -0
  497. package/dist/src/lib/flag-rows.d.ts.map +1 -1
  498. package/dist/src/lib/flag-rows.js.map +1 -1
  499. package/dist/src/lib/flag-rows.test.d.ts.map +1 -1
  500. package/dist/src/lib/flag-rows.test.js.map +1 -1
  501. package/dist/src/lib/flag-store.d.ts.map +1 -1
  502. package/dist/src/lib/flag-store.js.map +1 -1
  503. package/dist/src/lib/is-person.d.ts.map +1 -1
  504. package/dist/src/lib/is-person.js.map +1 -1
  505. package/dist/src/lib/require-flag-store.d.ts.map +1 -1
  506. package/dist/src/lib/require-flag-store.js.map +1 -1
  507. package/dist/src/lib/require-trigger-source-store.d.ts.map +1 -1
  508. package/dist/src/lib/require-trigger-source-store.js.map +1 -1
  509. package/dist/src/lib/resolve-audit-users.d.ts.map +1 -1
  510. package/dist/src/lib/resolve-audit-users.js.map +1 -1
  511. package/dist/src/lib/resolve-audit-users.test.d.ts.map +1 -1
  512. package/dist/src/lib/resolve-audit-users.test.js.map +1 -1
  513. package/dist/src/lib/user.schemas.d.ts.map +1 -1
  514. package/dist/src/lib/user.schemas.js.map +1 -1
  515. package/dist/src/scopes.d.ts.map +1 -1
  516. package/dist/src/scopes.js +29 -0
  517. package/dist/src/scopes.js.map +1 -1
  518. package/dist/src/services.d.ts.map +1 -1
  519. package/dist/src/services.js +7 -1
  520. package/dist/src/services.js.map +1 -1
  521. package/package.json +5 -5
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.192
2
+ * This file was generated by @pikku/cli@0.12.208
3
3
  */
4
4
  /**
5
5
  * This provides the structure needed for typescript to be aware of RPCs and their return types
@@ -9,6 +9,8 @@
9
9
  import type { GetAuditFiltersOutput } from '../../../src/functions/get-audit-filters.function.js'
10
10
  import type { GetAuditsInput, GetAuditsOutput } from '../../../src/functions/get-audits.function.js'
11
11
  import type { IncomingWebhookReceiptRecord } from '@pikku/core/services'
12
+ import type { WebhookDeliveryWithAttempts } from '@pikku/core/services'
13
+ import type { AddonFilter } from '../../../src/lib/addon-scope.js'
12
14
  import type * as __PikkuCustomTypes from '../pikku-custom-types.gen.d.js'
13
15
  export type CreateUserInput = __PikkuCustomTypes.CreateUserInput
14
16
  export type CreateUserOutput = __PikkuCustomTypes.CreateUserOutput
@@ -23,6 +25,10 @@ export type CredentialStatusInput = __PikkuCustomTypes.CredentialStatusInput
23
25
  export type CredentialStatusOutput = __PikkuCustomTypes.CredentialStatusOutput
24
26
  export type CredentialUsersInput = __PikkuCustomTypes.CredentialUsersInput
25
27
  export type CredentialUsersOutput = __PikkuCustomTypes.CredentialUsersOutput
28
+ export type DeleteAgentThreadInput = __PikkuCustomTypes.DeleteAgentThreadInput
29
+ export type DeleteAgentThreadOutput = __PikkuCustomTypes.DeleteAgentThreadOutput
30
+ export type DeleteWorkflowRunInput = __PikkuCustomTypes.DeleteWorkflowRunInput
31
+ export type DeleteWorkflowRunOutput = __PikkuCustomTypes.DeleteWorkflowRunOutput
26
32
  export type FlagClearOverrideInput = __PikkuCustomTypes.FlagClearOverrideInput
27
33
  export type FlagClearOverrideOutput = __PikkuCustomTypes.FlagClearOverrideOutput
28
34
  export type FlagListOutput = __PikkuCustomTypes.FlagListOutput
@@ -36,14 +42,41 @@ export type FlagSetOverrideOutput = __PikkuCustomTypes.FlagSetOverrideOutput
36
42
  export type FlagSetRolloutInput = __PikkuCustomTypes.FlagSetRolloutInput
37
43
  export type FlagSetRolloutOutput = __PikkuCustomTypes.FlagSetRolloutOutput
38
44
  export type FlagSyncOutput = __PikkuCustomTypes.FlagSyncOutput
45
+ export type GetAgentRunScoresInput = __PikkuCustomTypes.GetAgentRunScoresInput
46
+ export type GetAgentRunScoresOutput = __PikkuCustomTypes.GetAgentRunScoresOutput
47
+ export type GetAgentThreadMessagesInput = __PikkuCustomTypes.GetAgentThreadMessagesInput
48
+ export type GetAgentThreadMessagesOutput = __PikkuCustomTypes.GetAgentThreadMessagesOutput
49
+ export type GetAgentThreadRunsInput = __PikkuCustomTypes.GetAgentThreadRunsInput
50
+ export type GetAgentThreadRunsOutput = __PikkuCustomTypes.GetAgentThreadRunsOutput
51
+ export type GetAgentThreadsInput = __PikkuCustomTypes.GetAgentThreadsInput
52
+ export type GetAgentThreadsOutput = __PikkuCustomTypes.GetAgentThreadsOutput
39
53
  export type GetIncomingWebhookReceiptInput = __PikkuCustomTypes.GetIncomingWebhookReceiptInput
40
54
  export type GetQueueHistoryInput = __PikkuCustomTypes.GetQueueHistoryInput
41
55
  export type GetQueueHistoryOutput = __PikkuCustomTypes.GetQueueHistoryOutput
42
56
  export type GetSchedulerHistoryOutput = __PikkuCustomTypes.GetSchedulerHistoryOutput
57
+ export type GetVirtualUserRunsInput = __PikkuCustomTypes.GetVirtualUserRunsInput
58
+ export type GetVirtualUserRunsOutput = __PikkuCustomTypes.GetVirtualUserRunsOutput
59
+ export type GetVirtualUserRunStepsInput = __PikkuCustomTypes.GetVirtualUserRunStepsInput
60
+ export type GetVirtualUserRunStepsOutput = __PikkuCustomTypes.GetVirtualUserRunStepsOutput
61
+ export type GetVirtualUserSchedulesOutput = __PikkuCustomTypes.GetVirtualUserSchedulesOutput
62
+ export type GetWebhookDeliveryInput = __PikkuCustomTypes.GetWebhookDeliveryInput
63
+ export type GetWorkflowRunHistoryInput = __PikkuCustomTypes.GetWorkflowRunHistoryInput
64
+ export type GetWorkflowRunHistoryOutput = __PikkuCustomTypes.GetWorkflowRunHistoryOutput
65
+ export type GetWorkflowRunInput = __PikkuCustomTypes.GetWorkflowRunInput
66
+ export type GetWorkflowRunNamesOutput = __PikkuCustomTypes.GetWorkflowRunNamesOutput
67
+ export type GetWorkflowRunOutput = __PikkuCustomTypes.GetWorkflowRunOutput
68
+ export type GetWorkflowRunsInput = __PikkuCustomTypes.GetWorkflowRunsInput
69
+ export type GetWorkflowRunsOutput = __PikkuCustomTypes.GetWorkflowRunsOutput
70
+ export type GetWorkflowRunStepsInput = __PikkuCustomTypes.GetWorkflowRunStepsInput
71
+ export type GetWorkflowRunStepsOutput = __PikkuCustomTypes.GetWorkflowRunStepsOutput
72
+ export type GetWorkflowVersionInput = __PikkuCustomTypes.GetWorkflowVersionInput
73
+ export type GetWorkflowVersionOutput = __PikkuCustomTypes.GetWorkflowVersionOutput
43
74
  export type ListIncomingWebhookReceiptsInput = __PikkuCustomTypes.ListIncomingWebhookReceiptsInput
44
75
  export type ListIncomingWebhookReceiptsOutput = __PikkuCustomTypes.ListIncomingWebhookReceiptsOutput
45
76
  export type ListUsersInput = __PikkuCustomTypes.ListUsersInput
46
77
  export type ListUsersOutput = __PikkuCustomTypes.ListUsersOutput
78
+ export type ListWebhookDeliveriesInput = __PikkuCustomTypes.ListWebhookDeliveriesInput
79
+ export type ListWebhookDeliveriesOutput = __PikkuCustomTypes.ListWebhookDeliveriesOutput
47
80
  export type PingOutput = __PikkuCustomTypes.PingOutput
48
81
  export type RemoveUserInput = __PikkuCustomTypes.RemoveUserInput
49
82
  export type RemoveUserOutput = __PikkuCustomTypes.RemoveUserOutput
@@ -73,6 +106,7 @@ export type SetUserBannedInput = __PikkuCustomTypes.SetUserBannedInput
73
106
  export type SetUserBannedOutput = __PikkuCustomTypes.SetUserBannedOutput
74
107
  export type SetUserPasswordInput = __PikkuCustomTypes.SetUserPasswordInput
75
108
  export type SetUserPasswordOutput = __PikkuCustomTypes.SetUserPasswordOutput
109
+ export type StreamWorkflowRunInput = __PikkuCustomTypes.StreamWorkflowRunInput
76
110
  export type TriggerSourceDisableInput = __PikkuCustomTypes.TriggerSourceDisableInput
77
111
  export type TriggerSourceDisableOutput = __PikkuCustomTypes.TriggerSourceDisableOutput
78
112
  export type TriggerSourceEnableInput = __PikkuCustomTypes.TriggerSourceEnableInput
@@ -98,6 +132,8 @@ export type RPCMap = {
98
132
  readonly 'credentialSet': RPCHandler<CredentialSetInput, CredentialSetOutput>,
99
133
  readonly 'credentialStatus': RPCHandler<CredentialStatusInput, CredentialStatusOutput>,
100
134
  readonly 'credentialUsers': RPCHandler<CredentialUsersInput, CredentialUsersOutput>,
135
+ readonly 'deleteAgentThread': RPCHandler<DeleteAgentThreadInput, DeleteAgentThreadOutput>,
136
+ readonly 'deleteWorkflowRun': RPCHandler<DeleteWorkflowRunInput, DeleteWorkflowRunOutput>,
101
137
  readonly 'flagClearOverride': RPCHandler<FlagClearOverrideInput, FlagClearOverrideOutput>,
102
138
  readonly 'flagList': RPCHandler<null, FlagListOutput>,
103
139
  readonly 'flagOverrides': RPCHandler<FlagOverridesInput, FlagOverridesOutput>,
@@ -106,13 +142,28 @@ export type RPCMap = {
106
142
  readonly 'flagSetOverride': RPCHandler<FlagSetOverrideInput, FlagSetOverrideOutput>,
107
143
  readonly 'flagSetRollout': RPCHandler<FlagSetRolloutInput, FlagSetRolloutOutput>,
108
144
  readonly 'flagSync': RPCHandler<null, FlagSyncOutput>,
145
+ readonly 'getAgentRunScores': RPCHandler<GetAgentRunScoresInput, GetAgentRunScoresOutput>,
146
+ readonly 'getAgentThreadMessages': RPCHandler<GetAgentThreadMessagesInput, GetAgentThreadMessagesOutput>,
147
+ readonly 'getAgentThreadRuns': RPCHandler<GetAgentThreadRunsInput, GetAgentThreadRunsOutput>,
148
+ readonly 'getAgentThreads': RPCHandler<GetAgentThreadsInput, GetAgentThreadsOutput>,
109
149
  readonly 'getAuditFilters': RPCHandler<null, GetAuditFiltersOutput>,
110
150
  readonly 'getAudits': RPCHandler<GetAuditsInput, GetAuditsOutput>,
111
151
  readonly 'getIncomingWebhookReceipt': RPCHandler<GetIncomingWebhookReceiptInput, IncomingWebhookReceiptRecord>,
112
152
  readonly 'getQueueHistory': RPCHandler<GetQueueHistoryInput, GetQueueHistoryOutput>,
113
153
  readonly 'getSchedulerHistory': RPCHandler<null, GetSchedulerHistoryOutput>,
154
+ readonly 'getVirtualUserRunSteps': RPCHandler<GetVirtualUserRunStepsInput, GetVirtualUserRunStepsOutput>,
155
+ readonly 'getVirtualUserRuns': RPCHandler<GetVirtualUserRunsInput, GetVirtualUserRunsOutput>,
156
+ readonly 'getVirtualUserSchedules': RPCHandler<null, GetVirtualUserSchedulesOutput>,
157
+ readonly 'getWebhookDelivery': RPCHandler<GetWebhookDeliveryInput, WebhookDeliveryWithAttempts>,
158
+ readonly 'getWorkflowRunHistory': RPCHandler<GetWorkflowRunHistoryInput, GetWorkflowRunHistoryOutput>,
159
+ readonly 'getWorkflowRunNames': RPCHandler<AddonFilter, GetWorkflowRunNamesOutput>,
160
+ readonly 'getWorkflowRunSteps': RPCHandler<GetWorkflowRunStepsInput, GetWorkflowRunStepsOutput>,
161
+ readonly 'getWorkflowRun': RPCHandler<GetWorkflowRunInput, GetWorkflowRunOutput>,
162
+ readonly 'getWorkflowRuns': RPCHandler<GetWorkflowRunsInput, GetWorkflowRunsOutput>,
163
+ readonly 'getWorkflowVersion': RPCHandler<GetWorkflowVersionInput, GetWorkflowVersionOutput>,
114
164
  readonly 'listIncomingWebhookReceipts': RPCHandler<ListIncomingWebhookReceiptsInput, ListIncomingWebhookReceiptsOutput>,
115
165
  readonly 'listUsers': RPCHandler<ListUsersInput, ListUsersOutput>,
166
+ readonly 'listWebhookDeliveries': RPCHandler<ListWebhookDeliveriesInput, ListWebhookDeliveriesOutput>,
116
167
  readonly 'ping': RPCHandler<null, PingOutput>,
117
168
  readonly 'removeUser': RPCHandler<RemoveUserInput, RemoveUserOutput>,
118
169
  readonly 'revokeUserSessions': RPCHandler<RevokeUserSessionsInput, RevokeUserSessionsOutput>,
@@ -156,7 +207,7 @@ export type RPCInvoke = <Name extends keyof FlattenedRPCMap>(
156
207
  : [name: Name, data: FlattenedRPCMap[Name]['input']]
157
208
  ) => Promise<FlattenedRPCMap[Name]['output']>
158
209
 
159
- export type RPCRemote = <Name extends keyof FlattenedRPCMap>(
210
+ export type RPCMesh = <Name extends keyof FlattenedRPCMap>(
160
211
  ...args: IsVoidishInput<FlattenedRPCMap[Name]['input']> extends true
161
212
  ? [name: Name]
162
213
  : [name: Name, data: FlattenedRPCMap[Name]['input']]
@@ -172,11 +223,12 @@ type FlattenedAgentMap = AgentMap
172
223
 
173
224
  import type { PikkuRPC } from '@pikku/core/rpc'
174
225
  import type { AgentInput } from '@pikku/core/agent'
226
+ import type { WorkflowRunWire } from '@pikku/core/workflow'
175
227
 
176
228
  export type TypedStartWorkflow = <Name extends keyof FlattenedWorkflowMap>(
177
229
  name: Name,
178
230
  input: FlattenedWorkflowMap[Name]['input'],
179
- options?: { startNode?: string }
231
+ options?: { startNode?: string; wire?: WorkflowRunWire }
180
232
  ) => Promise<{ runId: string }>
181
233
 
182
234
  export type TypedRunWorkflow = <Name extends keyof FlattenedWorkflowMap>(
@@ -189,20 +241,54 @@ export type TypedWorkflowStatus = (
189
241
  runId: string
190
242
  ) => Promise<{ id: string; status: 'running' | 'suspended' | 'completed' | 'failed' | 'cancelled' | 'compensating' | 'compensated' | 'compensation_failed'; output?: unknown; error?: { message?: string } }>
191
243
 
192
- type TypedAgentRun = [keyof FlattenedAgentMap] extends [never]
193
- ? (name: string, input: AgentInput) => Promise<any>
194
- : <Name extends keyof FlattenedAgentMap>(
195
- name: Name,
196
- input: AgentInput
197
- ) => Promise<{ runId: string; result: FlattenedAgentMap[Name]['output']; usage: { inputTokens: number; outputTokens: number } }>
198
-
199
- type TypedAgentStream = [keyof FlattenedAgentMap] extends [never]
200
- ? (name: string, input: AgentInput, options?: { requiresToolApproval?: 'all' | 'explicit' | false }) => Promise<void>
201
- : <Name extends keyof FlattenedAgentMap>(
202
- name: Name,
203
- input: AgentInput,
204
- options?: { requiresToolApproval?: 'all' | 'explicit' | false }
205
- ) => Promise<void>
206
-
207
- export type TypedPikkuRPC = PikkuRPC<RPCInvoke, RPCRemote, TypedStartWorkflow, TypedAgentRun, TypedAgentStream>
244
+ /** A tool call waiting for the user's approval, as `run` and `approve` return it. */
245
+ export type AgentPendingApproval = {
246
+ toolCallId: string
247
+ toolName: string
248
+ args: unknown
249
+ reason?: string
250
+ runId: string
251
+ }
252
+
253
+ /**
254
+ * What `agent.run` and `agent.approve` resolve to. A run that stopped for approval has
255
+ * `status: 'suspended'` and the calls waiting in `pendingApprovals`; answer them with
256
+ * `approve` and the same `runId`.
257
+ */
258
+ export type AgentRunResult<Output = unknown> = {
259
+ runId: string
260
+ result: Output
261
+ usage: { inputTokens: number; outputTokens: number }
262
+ } & (
263
+ | { status?: undefined; pendingApprovals?: undefined }
264
+ | { status: 'suspended'; pendingApprovals: AgentPendingApproval[] }
265
+ )
266
+
267
+ /** The body `agent.approve` sends: one decision per pending tool call of the run. */
268
+ export type AgentApproveInput = {
269
+ runId: string
270
+ approvals: { toolCallId: string; approved: boolean }[]
271
+ }
272
+
273
+ export type AgentName = [keyof FlattenedAgentMap] extends [never] ? string : keyof FlattenedAgentMap & string
274
+
275
+ export type AgentOutputOf<Name> = Name extends keyof FlattenedAgentMap ? FlattenedAgentMap[Name]['output'] : unknown
276
+
277
+ export type TypedAgentRun = <Name extends AgentName>(
278
+ name: Name,
279
+ input: AgentInput
280
+ ) => Promise<AgentRunResult<AgentOutputOf<Name>>>
281
+
282
+ export type TypedAgentApprove = <Name extends AgentName>(
283
+ name: Name,
284
+ input: AgentApproveInput
285
+ ) => Promise<AgentRunResult<AgentOutputOf<Name>>>
286
+
287
+ type TypedAgentStream = <Name extends AgentName>(
288
+ name: Name,
289
+ input: AgentInput,
290
+ options?: { requiresToolApproval?: 'all' | 'explicit' | false }
291
+ ) => Promise<void>
292
+
293
+ export type TypedPikkuRPC = PikkuRPC<RPCInvoke, RPCMesh, TypedStartWorkflow, TypedAgentRun, TypedAgentStream>
208
294
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.192
2
+ * This file was generated by @pikku/cli@0.12.208
3
3
  */
4
4
  /**
5
5
  * This provides the structure needed for typescript to be aware of RPCs and their return types
@@ -9,6 +9,8 @@
9
9
  import type { GetAuditFiltersOutput } from '../../../src/functions/get-audit-filters.function.js'
10
10
  import type { GetAuditsInput, GetAuditsOutput } from '../../../src/functions/get-audits.function.js'
11
11
  import type { IncomingWebhookReceiptRecord } from '@pikku/core/services'
12
+ import type { WebhookDeliveryWithAttempts } from '@pikku/core/services'
13
+ import type { AddonFilter } from '../../../src/lib/addon-scope.js'
12
14
  import type * as __PikkuCustomTypes from '../pikku-custom-types.gen.d.js'
13
15
  export type CreateUserInput = __PikkuCustomTypes.CreateUserInput
14
16
  export type CreateUserOutput = __PikkuCustomTypes.CreateUserOutput
@@ -23,6 +25,10 @@ export type CredentialStatusInput = __PikkuCustomTypes.CredentialStatusInput
23
25
  export type CredentialStatusOutput = __PikkuCustomTypes.CredentialStatusOutput
24
26
  export type CredentialUsersInput = __PikkuCustomTypes.CredentialUsersInput
25
27
  export type CredentialUsersOutput = __PikkuCustomTypes.CredentialUsersOutput
28
+ export type DeleteAgentThreadInput = __PikkuCustomTypes.DeleteAgentThreadInput
29
+ export type DeleteAgentThreadOutput = __PikkuCustomTypes.DeleteAgentThreadOutput
30
+ export type DeleteWorkflowRunInput = __PikkuCustomTypes.DeleteWorkflowRunInput
31
+ export type DeleteWorkflowRunOutput = __PikkuCustomTypes.DeleteWorkflowRunOutput
26
32
  export type FlagClearOverrideInput = __PikkuCustomTypes.FlagClearOverrideInput
27
33
  export type FlagClearOverrideOutput = __PikkuCustomTypes.FlagClearOverrideOutput
28
34
  export type FlagListOutput = __PikkuCustomTypes.FlagListOutput
@@ -36,14 +42,41 @@ export type FlagSetOverrideOutput = __PikkuCustomTypes.FlagSetOverrideOutput
36
42
  export type FlagSetRolloutInput = __PikkuCustomTypes.FlagSetRolloutInput
37
43
  export type FlagSetRolloutOutput = __PikkuCustomTypes.FlagSetRolloutOutput
38
44
  export type FlagSyncOutput = __PikkuCustomTypes.FlagSyncOutput
45
+ export type GetAgentRunScoresInput = __PikkuCustomTypes.GetAgentRunScoresInput
46
+ export type GetAgentRunScoresOutput = __PikkuCustomTypes.GetAgentRunScoresOutput
47
+ export type GetAgentThreadMessagesInput = __PikkuCustomTypes.GetAgentThreadMessagesInput
48
+ export type GetAgentThreadMessagesOutput = __PikkuCustomTypes.GetAgentThreadMessagesOutput
49
+ export type GetAgentThreadRunsInput = __PikkuCustomTypes.GetAgentThreadRunsInput
50
+ export type GetAgentThreadRunsOutput = __PikkuCustomTypes.GetAgentThreadRunsOutput
51
+ export type GetAgentThreadsInput = __PikkuCustomTypes.GetAgentThreadsInput
52
+ export type GetAgentThreadsOutput = __PikkuCustomTypes.GetAgentThreadsOutput
39
53
  export type GetIncomingWebhookReceiptInput = __PikkuCustomTypes.GetIncomingWebhookReceiptInput
40
54
  export type GetQueueHistoryInput = __PikkuCustomTypes.GetQueueHistoryInput
41
55
  export type GetQueueHistoryOutput = __PikkuCustomTypes.GetQueueHistoryOutput
42
56
  export type GetSchedulerHistoryOutput = __PikkuCustomTypes.GetSchedulerHistoryOutput
57
+ export type GetVirtualUserRunsInput = __PikkuCustomTypes.GetVirtualUserRunsInput
58
+ export type GetVirtualUserRunsOutput = __PikkuCustomTypes.GetVirtualUserRunsOutput
59
+ export type GetVirtualUserRunStepsInput = __PikkuCustomTypes.GetVirtualUserRunStepsInput
60
+ export type GetVirtualUserRunStepsOutput = __PikkuCustomTypes.GetVirtualUserRunStepsOutput
61
+ export type GetVirtualUserSchedulesOutput = __PikkuCustomTypes.GetVirtualUserSchedulesOutput
62
+ export type GetWebhookDeliveryInput = __PikkuCustomTypes.GetWebhookDeliveryInput
63
+ export type GetWorkflowRunHistoryInput = __PikkuCustomTypes.GetWorkflowRunHistoryInput
64
+ export type GetWorkflowRunHistoryOutput = __PikkuCustomTypes.GetWorkflowRunHistoryOutput
65
+ export type GetWorkflowRunInput = __PikkuCustomTypes.GetWorkflowRunInput
66
+ export type GetWorkflowRunNamesOutput = __PikkuCustomTypes.GetWorkflowRunNamesOutput
67
+ export type GetWorkflowRunOutput = __PikkuCustomTypes.GetWorkflowRunOutput
68
+ export type GetWorkflowRunsInput = __PikkuCustomTypes.GetWorkflowRunsInput
69
+ export type GetWorkflowRunsOutput = __PikkuCustomTypes.GetWorkflowRunsOutput
70
+ export type GetWorkflowRunStepsInput = __PikkuCustomTypes.GetWorkflowRunStepsInput
71
+ export type GetWorkflowRunStepsOutput = __PikkuCustomTypes.GetWorkflowRunStepsOutput
72
+ export type GetWorkflowVersionInput = __PikkuCustomTypes.GetWorkflowVersionInput
73
+ export type GetWorkflowVersionOutput = __PikkuCustomTypes.GetWorkflowVersionOutput
43
74
  export type ListIncomingWebhookReceiptsInput = __PikkuCustomTypes.ListIncomingWebhookReceiptsInput
44
75
  export type ListIncomingWebhookReceiptsOutput = __PikkuCustomTypes.ListIncomingWebhookReceiptsOutput
45
76
  export type ListUsersInput = __PikkuCustomTypes.ListUsersInput
46
77
  export type ListUsersOutput = __PikkuCustomTypes.ListUsersOutput
78
+ export type ListWebhookDeliveriesInput = __PikkuCustomTypes.ListWebhookDeliveriesInput
79
+ export type ListWebhookDeliveriesOutput = __PikkuCustomTypes.ListWebhookDeliveriesOutput
47
80
  export type PingOutput = __PikkuCustomTypes.PingOutput
48
81
  export type RemoveUserInput = __PikkuCustomTypes.RemoveUserInput
49
82
  export type RemoveUserOutput = __PikkuCustomTypes.RemoveUserOutput
@@ -73,6 +106,7 @@ export type SetUserBannedInput = __PikkuCustomTypes.SetUserBannedInput
73
106
  export type SetUserBannedOutput = __PikkuCustomTypes.SetUserBannedOutput
74
107
  export type SetUserPasswordInput = __PikkuCustomTypes.SetUserPasswordInput
75
108
  export type SetUserPasswordOutput = __PikkuCustomTypes.SetUserPasswordOutput
109
+ export type StreamWorkflowRunInput = __PikkuCustomTypes.StreamWorkflowRunInput
76
110
  export type TriggerSourceDisableInput = __PikkuCustomTypes.TriggerSourceDisableInput
77
111
  export type TriggerSourceDisableOutput = __PikkuCustomTypes.TriggerSourceDisableOutput
78
112
  export type TriggerSourceEnableInput = __PikkuCustomTypes.TriggerSourceEnableInput
@@ -98,6 +132,8 @@ export type RPCMap = {
98
132
  readonly 'credentialSet': RPCHandler<CredentialSetInput, CredentialSetOutput>,
99
133
  readonly 'credentialStatus': RPCHandler<CredentialStatusInput, CredentialStatusOutput>,
100
134
  readonly 'credentialUsers': RPCHandler<CredentialUsersInput, CredentialUsersOutput>,
135
+ readonly 'deleteAgentThread': RPCHandler<DeleteAgentThreadInput, DeleteAgentThreadOutput>,
136
+ readonly 'deleteWorkflowRun': RPCHandler<DeleteWorkflowRunInput, DeleteWorkflowRunOutput>,
101
137
  readonly 'flagClearOverride': RPCHandler<FlagClearOverrideInput, FlagClearOverrideOutput>,
102
138
  readonly 'flagList': RPCHandler<null, FlagListOutput>,
103
139
  readonly 'flagOverrides': RPCHandler<FlagOverridesInput, FlagOverridesOutput>,
@@ -106,13 +142,28 @@ export type RPCMap = {
106
142
  readonly 'flagSetOverride': RPCHandler<FlagSetOverrideInput, FlagSetOverrideOutput>,
107
143
  readonly 'flagSetRollout': RPCHandler<FlagSetRolloutInput, FlagSetRolloutOutput>,
108
144
  readonly 'flagSync': RPCHandler<null, FlagSyncOutput>,
145
+ readonly 'getAgentRunScores': RPCHandler<GetAgentRunScoresInput, GetAgentRunScoresOutput>,
146
+ readonly 'getAgentThreadMessages': RPCHandler<GetAgentThreadMessagesInput, GetAgentThreadMessagesOutput>,
147
+ readonly 'getAgentThreadRuns': RPCHandler<GetAgentThreadRunsInput, GetAgentThreadRunsOutput>,
148
+ readonly 'getAgentThreads': RPCHandler<GetAgentThreadsInput, GetAgentThreadsOutput>,
109
149
  readonly 'getAuditFilters': RPCHandler<null, GetAuditFiltersOutput>,
110
150
  readonly 'getAudits': RPCHandler<GetAuditsInput, GetAuditsOutput>,
111
151
  readonly 'getIncomingWebhookReceipt': RPCHandler<GetIncomingWebhookReceiptInput, IncomingWebhookReceiptRecord>,
112
152
  readonly 'getQueueHistory': RPCHandler<GetQueueHistoryInput, GetQueueHistoryOutput>,
113
153
  readonly 'getSchedulerHistory': RPCHandler<null, GetSchedulerHistoryOutput>,
154
+ readonly 'getVirtualUserRunSteps': RPCHandler<GetVirtualUserRunStepsInput, GetVirtualUserRunStepsOutput>,
155
+ readonly 'getVirtualUserRuns': RPCHandler<GetVirtualUserRunsInput, GetVirtualUserRunsOutput>,
156
+ readonly 'getVirtualUserSchedules': RPCHandler<null, GetVirtualUserSchedulesOutput>,
157
+ readonly 'getWebhookDelivery': RPCHandler<GetWebhookDeliveryInput, WebhookDeliveryWithAttempts>,
158
+ readonly 'getWorkflowRunHistory': RPCHandler<GetWorkflowRunHistoryInput, GetWorkflowRunHistoryOutput>,
159
+ readonly 'getWorkflowRunNames': RPCHandler<AddonFilter, GetWorkflowRunNamesOutput>,
160
+ readonly 'getWorkflowRunSteps': RPCHandler<GetWorkflowRunStepsInput, GetWorkflowRunStepsOutput>,
161
+ readonly 'getWorkflowRun': RPCHandler<GetWorkflowRunInput, GetWorkflowRunOutput>,
162
+ readonly 'getWorkflowRuns': RPCHandler<GetWorkflowRunsInput, GetWorkflowRunsOutput>,
163
+ readonly 'getWorkflowVersion': RPCHandler<GetWorkflowVersionInput, GetWorkflowVersionOutput>,
114
164
  readonly 'listIncomingWebhookReceipts': RPCHandler<ListIncomingWebhookReceiptsInput, ListIncomingWebhookReceiptsOutput>,
115
165
  readonly 'listUsers': RPCHandler<ListUsersInput, ListUsersOutput>,
166
+ readonly 'listWebhookDeliveries': RPCHandler<ListWebhookDeliveriesInput, ListWebhookDeliveriesOutput>,
116
167
  readonly 'ping': RPCHandler<null, PingOutput>,
117
168
  readonly 'removeUser': RPCHandler<RemoveUserInput, RemoveUserOutput>,
118
169
  readonly 'revokeUserSessions': RPCHandler<RevokeUserSessionsInput, RevokeUserSessionsOutput>,
@@ -129,6 +180,7 @@ export type RPCMap = {
129
180
  readonly 'sendSignInLink': RPCHandler<SendSignInLinkInput, SendSignInLinkOutput>,
130
181
  readonly 'setUserBanned': RPCHandler<SetUserBannedInput, SetUserBannedOutput>,
131
182
  readonly 'setUserPassword': RPCHandler<SetUserPasswordInput, SetUserPasswordOutput>,
183
+ readonly 'streamWorkflowRun': RPCHandler<StreamWorkflowRunInput, null>,
132
184
  readonly 'triggerSourceDisable': RPCHandler<TriggerSourceDisableInput, TriggerSourceDisableOutput>,
133
185
  readonly 'triggerSourceEnable': RPCHandler<TriggerSourceEnableInput, TriggerSourceEnableOutput>,
134
186
  readonly 'triggerSourceForget': RPCHandler<TriggerSourceForgetInput, TriggerSourceForgetOutput>,
@@ -156,7 +208,7 @@ export type RPCInvoke = <Name extends keyof FlattenedRPCMap>(
156
208
  : [name: Name, data: FlattenedRPCMap[Name]['input']]
157
209
  ) => Promise<FlattenedRPCMap[Name]['output']>
158
210
 
159
- export type RPCRemote = <Name extends keyof FlattenedRPCMap>(
211
+ export type RPCMesh = <Name extends keyof FlattenedRPCMap>(
160
212
  ...args: IsVoidishInput<FlattenedRPCMap[Name]['input']> extends true
161
213
  ? [name: Name]
162
214
  : [name: Name, data: FlattenedRPCMap[Name]['input']]
@@ -172,11 +224,12 @@ type FlattenedAgentMap = AgentMap
172
224
 
173
225
  import type { PikkuRPC } from '@pikku/core/rpc'
174
226
  import type { AgentInput } from '@pikku/core/agent'
227
+ import type { WorkflowRunWire } from '@pikku/core/workflow'
175
228
 
176
229
  export type TypedStartWorkflow = <Name extends keyof FlattenedWorkflowMap>(
177
230
  name: Name,
178
231
  input: FlattenedWorkflowMap[Name]['input'],
179
- options?: { startNode?: string }
232
+ options?: { startNode?: string; wire?: WorkflowRunWire }
180
233
  ) => Promise<{ runId: string }>
181
234
 
182
235
  export type TypedRunWorkflow = <Name extends keyof FlattenedWorkflowMap>(
@@ -189,20 +242,54 @@ export type TypedWorkflowStatus = (
189
242
  runId: string
190
243
  ) => Promise<{ id: string; status: 'running' | 'suspended' | 'completed' | 'failed' | 'cancelled' | 'compensating' | 'compensated' | 'compensation_failed'; output?: unknown; error?: { message?: string } }>
191
244
 
192
- type TypedAgentRun = [keyof FlattenedAgentMap] extends [never]
193
- ? (name: string, input: AgentInput) => Promise<any>
194
- : <Name extends keyof FlattenedAgentMap>(
195
- name: Name,
196
- input: AgentInput
197
- ) => Promise<{ runId: string; result: FlattenedAgentMap[Name]['output']; usage: { inputTokens: number; outputTokens: number } }>
198
-
199
- type TypedAgentStream = [keyof FlattenedAgentMap] extends [never]
200
- ? (name: string, input: AgentInput, options?: { requiresToolApproval?: 'all' | 'explicit' | false }) => Promise<void>
201
- : <Name extends keyof FlattenedAgentMap>(
202
- name: Name,
203
- input: AgentInput,
204
- options?: { requiresToolApproval?: 'all' | 'explicit' | false }
205
- ) => Promise<void>
206
-
207
- export type TypedPikkuRPC = PikkuRPC<RPCInvoke, RPCRemote, TypedStartWorkflow, TypedAgentRun, TypedAgentStream>
245
+ /** A tool call waiting for the user's approval, as `run` and `approve` return it. */
246
+ export type AgentPendingApproval = {
247
+ toolCallId: string
248
+ toolName: string
249
+ args: unknown
250
+ reason?: string
251
+ runId: string
252
+ }
253
+
254
+ /**
255
+ * What `agent.run` and `agent.approve` resolve to. A run that stopped for approval has
256
+ * `status: 'suspended'` and the calls waiting in `pendingApprovals`; answer them with
257
+ * `approve` and the same `runId`.
258
+ */
259
+ export type AgentRunResult<Output = unknown> = {
260
+ runId: string
261
+ result: Output
262
+ usage: { inputTokens: number; outputTokens: number }
263
+ } & (
264
+ | { status?: undefined; pendingApprovals?: undefined }
265
+ | { status: 'suspended'; pendingApprovals: AgentPendingApproval[] }
266
+ )
267
+
268
+ /** The body `agent.approve` sends: one decision per pending tool call of the run. */
269
+ export type AgentApproveInput = {
270
+ runId: string
271
+ approvals: { toolCallId: string; approved: boolean }[]
272
+ }
273
+
274
+ export type AgentName = [keyof FlattenedAgentMap] extends [never] ? string : keyof FlattenedAgentMap & string
275
+
276
+ export type AgentOutputOf<Name> = Name extends keyof FlattenedAgentMap ? FlattenedAgentMap[Name]['output'] : unknown
277
+
278
+ export type TypedAgentRun = <Name extends AgentName>(
279
+ name: Name,
280
+ input: AgentInput
281
+ ) => Promise<AgentRunResult<AgentOutputOf<Name>>>
282
+
283
+ export type TypedAgentApprove = <Name extends AgentName>(
284
+ name: Name,
285
+ input: AgentApproveInput
286
+ ) => Promise<AgentRunResult<AgentOutputOf<Name>>>
287
+
288
+ type TypedAgentStream = <Name extends AgentName>(
289
+ name: Name,
290
+ input: AgentInput,
291
+ options?: { requiresToolApproval?: 'all' | 'explicit' | false }
292
+ ) => Promise<void>
293
+
294
+ export type TypedPikkuRPC = PikkuRPC<RPCInvoke, RPCMesh, TypedStartWorkflow, TypedAgentRun, TypedAgentStream>
208
295
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.192
2
+ * This file was generated by @pikku/cli@0.12.208
3
3
  */
4
4
  /**
5
5
  * This provides the structure needed for typescript to be aware of RPCs and their return types
@@ -21,6 +21,10 @@ export type CredentialStatusInput = __PikkuCustomTypes.CredentialStatusInput
21
21
  export type CredentialStatusOutput = __PikkuCustomTypes.CredentialStatusOutput
22
22
  export type CredentialUsersInput = __PikkuCustomTypes.CredentialUsersInput
23
23
  export type CredentialUsersOutput = __PikkuCustomTypes.CredentialUsersOutput
24
+ export type DeleteAgentThreadInput = __PikkuCustomTypes.DeleteAgentThreadInput
25
+ export type DeleteAgentThreadOutput = __PikkuCustomTypes.DeleteAgentThreadOutput
26
+ export type DeleteWorkflowRunInput = __PikkuCustomTypes.DeleteWorkflowRunInput
27
+ export type DeleteWorkflowRunOutput = __PikkuCustomTypes.DeleteWorkflowRunOutput
24
28
  export type FlagClearOverrideInput = __PikkuCustomTypes.FlagClearOverrideInput
25
29
  export type FlagClearOverrideOutput = __PikkuCustomTypes.FlagClearOverrideOutput
26
30
  export type FlagListOutput = __PikkuCustomTypes.FlagListOutput
@@ -34,14 +38,41 @@ export type FlagSetOverrideOutput = __PikkuCustomTypes.FlagSetOverrideOutput
34
38
  export type FlagSetRolloutInput = __PikkuCustomTypes.FlagSetRolloutInput
35
39
  export type FlagSetRolloutOutput = __PikkuCustomTypes.FlagSetRolloutOutput
36
40
  export type FlagSyncOutput = __PikkuCustomTypes.FlagSyncOutput
41
+ export type GetAgentRunScoresInput = __PikkuCustomTypes.GetAgentRunScoresInput
42
+ export type GetAgentRunScoresOutput = __PikkuCustomTypes.GetAgentRunScoresOutput
43
+ export type GetAgentThreadMessagesInput = __PikkuCustomTypes.GetAgentThreadMessagesInput
44
+ export type GetAgentThreadMessagesOutput = __PikkuCustomTypes.GetAgentThreadMessagesOutput
45
+ export type GetAgentThreadRunsInput = __PikkuCustomTypes.GetAgentThreadRunsInput
46
+ export type GetAgentThreadRunsOutput = __PikkuCustomTypes.GetAgentThreadRunsOutput
47
+ export type GetAgentThreadsInput = __PikkuCustomTypes.GetAgentThreadsInput
48
+ export type GetAgentThreadsOutput = __PikkuCustomTypes.GetAgentThreadsOutput
37
49
  export type GetIncomingWebhookReceiptInput = __PikkuCustomTypes.GetIncomingWebhookReceiptInput
38
50
  export type GetQueueHistoryInput = __PikkuCustomTypes.GetQueueHistoryInput
39
51
  export type GetQueueHistoryOutput = __PikkuCustomTypes.GetQueueHistoryOutput
40
52
  export type GetSchedulerHistoryOutput = __PikkuCustomTypes.GetSchedulerHistoryOutput
53
+ export type GetVirtualUserRunsInput = __PikkuCustomTypes.GetVirtualUserRunsInput
54
+ export type GetVirtualUserRunsOutput = __PikkuCustomTypes.GetVirtualUserRunsOutput
55
+ export type GetVirtualUserRunStepsInput = __PikkuCustomTypes.GetVirtualUserRunStepsInput
56
+ export type GetVirtualUserRunStepsOutput = __PikkuCustomTypes.GetVirtualUserRunStepsOutput
57
+ export type GetVirtualUserSchedulesOutput = __PikkuCustomTypes.GetVirtualUserSchedulesOutput
58
+ export type GetWebhookDeliveryInput = __PikkuCustomTypes.GetWebhookDeliveryInput
59
+ export type GetWorkflowRunHistoryInput = __PikkuCustomTypes.GetWorkflowRunHistoryInput
60
+ export type GetWorkflowRunHistoryOutput = __PikkuCustomTypes.GetWorkflowRunHistoryOutput
61
+ export type GetWorkflowRunInput = __PikkuCustomTypes.GetWorkflowRunInput
62
+ export type GetWorkflowRunNamesOutput = __PikkuCustomTypes.GetWorkflowRunNamesOutput
63
+ export type GetWorkflowRunOutput = __PikkuCustomTypes.GetWorkflowRunOutput
64
+ export type GetWorkflowRunsInput = __PikkuCustomTypes.GetWorkflowRunsInput
65
+ export type GetWorkflowRunsOutput = __PikkuCustomTypes.GetWorkflowRunsOutput
66
+ export type GetWorkflowRunStepsInput = __PikkuCustomTypes.GetWorkflowRunStepsInput
67
+ export type GetWorkflowRunStepsOutput = __PikkuCustomTypes.GetWorkflowRunStepsOutput
68
+ export type GetWorkflowVersionInput = __PikkuCustomTypes.GetWorkflowVersionInput
69
+ export type GetWorkflowVersionOutput = __PikkuCustomTypes.GetWorkflowVersionOutput
41
70
  export type ListIncomingWebhookReceiptsInput = __PikkuCustomTypes.ListIncomingWebhookReceiptsInput
42
71
  export type ListIncomingWebhookReceiptsOutput = __PikkuCustomTypes.ListIncomingWebhookReceiptsOutput
43
72
  export type ListUsersInput = __PikkuCustomTypes.ListUsersInput
44
73
  export type ListUsersOutput = __PikkuCustomTypes.ListUsersOutput
74
+ export type ListWebhookDeliveriesInput = __PikkuCustomTypes.ListWebhookDeliveriesInput
75
+ export type ListWebhookDeliveriesOutput = __PikkuCustomTypes.ListWebhookDeliveriesOutput
45
76
  export type PingOutput = __PikkuCustomTypes.PingOutput
46
77
  export type RemoveUserInput = __PikkuCustomTypes.RemoveUserInput
47
78
  export type RemoveUserOutput = __PikkuCustomTypes.RemoveUserOutput
@@ -71,6 +102,7 @@ export type SetUserBannedInput = __PikkuCustomTypes.SetUserBannedInput
71
102
  export type SetUserBannedOutput = __PikkuCustomTypes.SetUserBannedOutput
72
103
  export type SetUserPasswordInput = __PikkuCustomTypes.SetUserPasswordInput
73
104
  export type SetUserPasswordOutput = __PikkuCustomTypes.SetUserPasswordOutput
105
+ export type StreamWorkflowRunInput = __PikkuCustomTypes.StreamWorkflowRunInput
74
106
  export type TriggerSourceDisableInput = __PikkuCustomTypes.TriggerSourceDisableInput
75
107
  export type TriggerSourceDisableOutput = __PikkuCustomTypes.TriggerSourceDisableOutput
76
108
  export type TriggerSourceEnableInput = __PikkuCustomTypes.TriggerSourceEnableInput
@@ -110,7 +142,7 @@ export type RPCInvoke = <Name extends keyof FlattenedRPCMap>(
110
142
  : [name: Name, data: FlattenedRPCMap[Name]['input']]
111
143
  ) => Promise<FlattenedRPCMap[Name]['output']>
112
144
 
113
- export type RPCRemote = <Name extends keyof FlattenedRPCMap>(
145
+ export type RPCMesh = <Name extends keyof FlattenedRPCMap>(
114
146
  ...args: IsVoidishInput<FlattenedRPCMap[Name]['input']> extends true
115
147
  ? [name: Name]
116
148
  : [name: Name, data: FlattenedRPCMap[Name]['input']]
@@ -126,11 +158,12 @@ type FlattenedAgentMap = AgentMap
126
158
 
127
159
  import type { PikkuRPC } from '@pikku/core/rpc'
128
160
  import type { AgentInput } from '@pikku/core/agent'
161
+ import type { WorkflowRunWire } from '@pikku/core/workflow'
129
162
 
130
163
  export type TypedStartWorkflow = <Name extends keyof FlattenedWorkflowMap>(
131
164
  name: Name,
132
165
  input: FlattenedWorkflowMap[Name]['input'],
133
- options?: { startNode?: string }
166
+ options?: { startNode?: string; wire?: WorkflowRunWire }
134
167
  ) => Promise<{ runId: string }>
135
168
 
136
169
  export type TypedRunWorkflow = <Name extends keyof FlattenedWorkflowMap>(
@@ -143,20 +176,54 @@ export type TypedWorkflowStatus = (
143
176
  runId: string
144
177
  ) => Promise<{ id: string; status: 'running' | 'suspended' | 'completed' | 'failed' | 'cancelled' | 'compensating' | 'compensated' | 'compensation_failed'; output?: unknown; error?: { message?: string } }>
145
178
 
146
- type TypedAgentRun = [keyof FlattenedAgentMap] extends [never]
147
- ? (name: string, input: AgentInput) => Promise<any>
148
- : <Name extends keyof FlattenedAgentMap>(
149
- name: Name,
150
- input: AgentInput
151
- ) => Promise<{ runId: string; result: FlattenedAgentMap[Name]['output']; usage: { inputTokens: number; outputTokens: number } }>
152
-
153
- type TypedAgentStream = [keyof FlattenedAgentMap] extends [never]
154
- ? (name: string, input: AgentInput, options?: { requiresToolApproval?: 'all' | 'explicit' | false }) => Promise<void>
155
- : <Name extends keyof FlattenedAgentMap>(
156
- name: Name,
157
- input: AgentInput,
158
- options?: { requiresToolApproval?: 'all' | 'explicit' | false }
159
- ) => Promise<void>
160
-
161
- export type TypedPikkuRPC = PikkuRPC<RPCInvoke, RPCRemote, TypedStartWorkflow, TypedAgentRun, TypedAgentStream>
179
+ /** A tool call waiting for the user's approval, as `run` and `approve` return it. */
180
+ export type AgentPendingApproval = {
181
+ toolCallId: string
182
+ toolName: string
183
+ args: unknown
184
+ reason?: string
185
+ runId: string
186
+ }
187
+
188
+ /**
189
+ * What `agent.run` and `agent.approve` resolve to. A run that stopped for approval has
190
+ * `status: 'suspended'` and the calls waiting in `pendingApprovals`; answer them with
191
+ * `approve` and the same `runId`.
192
+ */
193
+ export type AgentRunResult<Output = unknown> = {
194
+ runId: string
195
+ result: Output
196
+ usage: { inputTokens: number; outputTokens: number }
197
+ } & (
198
+ | { status?: undefined; pendingApprovals?: undefined }
199
+ | { status: 'suspended'; pendingApprovals: AgentPendingApproval[] }
200
+ )
201
+
202
+ /** The body `agent.approve` sends: one decision per pending tool call of the run. */
203
+ export type AgentApproveInput = {
204
+ runId: string
205
+ approvals: { toolCallId: string; approved: boolean }[]
206
+ }
207
+
208
+ export type AgentName = [keyof FlattenedAgentMap] extends [never] ? string : keyof FlattenedAgentMap & string
209
+
210
+ export type AgentOutputOf<Name> = Name extends keyof FlattenedAgentMap ? FlattenedAgentMap[Name]['output'] : unknown
211
+
212
+ export type TypedAgentRun = <Name extends AgentName>(
213
+ name: Name,
214
+ input: AgentInput
215
+ ) => Promise<AgentRunResult<AgentOutputOf<Name>>>
216
+
217
+ export type TypedAgentApprove = <Name extends AgentName>(
218
+ name: Name,
219
+ input: AgentApproveInput
220
+ ) => Promise<AgentRunResult<AgentOutputOf<Name>>>
221
+
222
+ type TypedAgentStream = <Name extends AgentName>(
223
+ name: Name,
224
+ input: AgentInput,
225
+ options?: { requiresToolApproval?: 'all' | 'explicit' | false }
226
+ ) => Promise<void>
227
+
228
+ export type TypedPikkuRPC = PikkuRPC<RPCInvoke, RPCMesh, TypedStartWorkflow, TypedAgentRun, TypedAgentStream>
162
229
 
@@ -1 +1 @@
1
- {"version":3,"file":"pikku-rpc-wirings-meta.internal.gen.d.ts","sourceRoot":"","sources":["../../../../.pikku/addon/rpc/pikku-rpc-wirings-meta.internal.gen.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"pikku-rpc-wirings-meta.internal.gen.d.ts","sources":["../../../../.pikku/addon/rpc/pikku-rpc-wirings-meta.internal.gen.ts"],"names":[],"mappings":""}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.192
2
+ * This file was generated by @pikku/cli@0.12.208
3
3
  */
4
4
  import { pikkuState } from '@pikku/core/state';
5
5
  import metaData from './pikku-rpc-wirings-meta.internal.gen.json' with { type: 'json' };
@@ -1 +1 @@
1
- {"version":3,"file":"pikku-rpc-wirings-meta.internal.gen.js","sourceRoot":"","sources":["../../../../.pikku/addon/rpc/pikku-rpc-wirings-meta.internal.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAC9C,OAAO,QAAQ,MAAM,4CAA4C,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AACvF,UAAU,CAAC,oBAAoB,EAAE,KAAK,EAAE,MAAM,EAAE,QAAkC,CAAC,CAAA"}
1
+ {"version":3,"file":"pikku-rpc-wirings-meta.internal.gen.js","sources":["../../../../.pikku/addon/rpc/pikku-rpc-wirings-meta.internal.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAC9C,OAAO,QAAQ,MAAM,4CAA4C,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AACvF,UAAU,CAAC,oBAAoB,EAAE,KAAK,EAAE,MAAM,EAAE,QAAkC,CAAC,CAAA"}