@pikku/addon-twist 0.0.2

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 (307) hide show
  1. package/README.md +12 -0
  2. package/dist/.pikku/addon/pikku-addon-types.gen.d.ts +67 -0
  3. package/dist/.pikku/addon/pikku-addon-types.gen.d.ts.map +1 -0
  4. package/dist/.pikku/addon/pikku-addon-types.gen.js +78 -0
  5. package/dist/.pikku/addon/pikku-addon-types.gen.js.map +1 -0
  6. package/dist/.pikku/addon/pikku-addon-types.gen.ts +106 -0
  7. package/dist/.pikku/addon/pikku-package.gen.d.ts +2 -0
  8. package/dist/.pikku/addon/pikku-package.gen.d.ts.map +1 -0
  9. package/dist/.pikku/addon/pikku-package.gen.js +11 -0
  10. package/dist/.pikku/addon/pikku-package.gen.js.map +1 -0
  11. package/dist/.pikku/addon/pikku-package.gen.ts +13 -0
  12. package/dist/.pikku/agent/pikku-agent-map.gen.d.ts +4 -0
  13. package/dist/.pikku/agent/pikku-agent-types.gen.d.ts +47 -0
  14. package/dist/.pikku/agent/pikku-agent-types.gen.d.ts.map +1 -0
  15. package/dist/.pikku/agent/pikku-agent-types.gen.js +18 -0
  16. package/dist/.pikku/agent/pikku-agent-types.gen.js.map +1 -0
  17. package/dist/.pikku/agent/pikku-agent-types.gen.ts +82 -0
  18. package/dist/.pikku/channel/pikku-channel-types.gen.d.ts +112 -0
  19. package/dist/.pikku/channel/pikku-channel-types.gen.d.ts.map +1 -0
  20. package/dist/.pikku/channel/pikku-channel-types.gen.js +60 -0
  21. package/dist/.pikku/channel/pikku-channel-types.gen.js.map +1 -0
  22. package/dist/.pikku/channel/pikku-channel-types.gen.ts +177 -0
  23. package/dist/.pikku/console/pikku-addon-meta.gen.json +14 -0
  24. package/dist/.pikku/console/pikku-node-types.gen.d.ts +7 -0
  25. package/dist/.pikku/console/pikku-node-types.gen.d.ts.map +1 -0
  26. package/dist/.pikku/console/pikku-node-types.gen.js +2 -0
  27. package/dist/.pikku/console/pikku-node-types.gen.js.map +1 -0
  28. package/dist/.pikku/console/pikku-node-types.gen.ts +8 -0
  29. package/dist/.pikku/credentials/pikku-credentials-meta.gen.json +20 -0
  30. package/dist/.pikku/credentials/pikku-credentials.gen.d.ts +15 -0
  31. package/dist/.pikku/credentials/pikku-credentials.gen.d.ts.map +1 -0
  32. package/dist/.pikku/credentials/pikku-credentials.gen.js +13 -0
  33. package/dist/.pikku/credentials/pikku-credentials.gen.js.map +1 -0
  34. package/dist/.pikku/credentials/pikku-credentials.gen.ts +23 -0
  35. package/dist/.pikku/function/pikku-function-types.gen.d.ts +490 -0
  36. package/dist/.pikku/function/pikku-function-types.gen.d.ts.map +1 -0
  37. package/dist/.pikku/function/pikku-function-types.gen.js +334 -0
  38. package/dist/.pikku/function/pikku-function-types.gen.js.map +1 -0
  39. package/dist/.pikku/function/pikku-function-types.gen.ts +754 -0
  40. package/dist/.pikku/function/pikku-functions-meta-verbose.gen.json +640 -0
  41. package/dist/.pikku/function/pikku-functions-meta.gen.d.ts +2 -0
  42. package/dist/.pikku/function/pikku-functions-meta.gen.d.ts.map +1 -0
  43. package/dist/.pikku/function/pikku-functions-meta.gen.js +7 -0
  44. package/dist/.pikku/function/pikku-functions-meta.gen.js.map +1 -0
  45. package/dist/.pikku/function/pikku-functions-meta.gen.json +420 -0
  46. package/dist/.pikku/function/pikku-functions-meta.gen.ts +7 -0
  47. package/dist/.pikku/function/pikku-functions.gen.d.ts +2 -0
  48. package/dist/.pikku/function/pikku-functions.gen.d.ts.map +1 -0
  49. package/dist/.pikku/function/pikku-functions.gen.js +50 -0
  50. package/dist/.pikku/function/pikku-functions.gen.js.map +1 -0
  51. package/dist/.pikku/function/pikku-functions.gen.ts +50 -0
  52. package/dist/.pikku/http/pikku-http-types.gen.d.ts +120 -0
  53. package/dist/.pikku/http/pikku-http-types.gen.d.ts.map +1 -0
  54. package/dist/.pikku/http/pikku-http-types.gen.js +72 -0
  55. package/dist/.pikku/http/pikku-http-types.gen.js.map +1 -0
  56. package/dist/.pikku/http/pikku-http-types.gen.ts +147 -0
  57. package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts +131 -0
  58. package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts.map +1 -0
  59. package/dist/.pikku/mcp/pikku-mcp-types.gen.js +38 -0
  60. package/dist/.pikku/mcp/pikku-mcp-types.gen.js.map +1 -0
  61. package/dist/.pikku/mcp/pikku-mcp-types.gen.ts +183 -0
  62. package/dist/.pikku/pikku-bootstrap.gen.d.ts +9 -0
  63. package/dist/.pikku/pikku-bootstrap.gen.d.ts.map +1 -0
  64. package/dist/.pikku/pikku-bootstrap.gen.js +9 -0
  65. package/dist/.pikku/pikku-bootstrap.gen.js.map +1 -0
  66. package/dist/.pikku/pikku-bootstrap.gen.ts +8 -0
  67. package/dist/.pikku/pikku-meta-service.gen.d.ts +8 -0
  68. package/dist/.pikku/pikku-meta-service.gen.d.ts.map +1 -0
  69. package/dist/.pikku/pikku-meta-service.gen.js +10 -0
  70. package/dist/.pikku/pikku-meta-service.gen.js.map +1 -0
  71. package/dist/.pikku/pikku-meta-service.gen.ts +10 -0
  72. package/dist/.pikku/pikku-services.gen.d.ts +36 -0
  73. package/dist/.pikku/pikku-services.gen.d.ts.map +1 -0
  74. package/dist/.pikku/pikku-services.gen.js +32 -0
  75. package/dist/.pikku/pikku-services.gen.js.map +1 -0
  76. package/dist/.pikku/pikku-services.gen.ts +45 -0
  77. package/dist/.pikku/pikku-types.gen.d.ts +12 -0
  78. package/dist/.pikku/pikku-types.gen.d.ts.map +1 -0
  79. package/dist/.pikku/pikku-types.gen.js +17 -0
  80. package/dist/.pikku/pikku-types.gen.js.map +1 -0
  81. package/dist/.pikku/pikku-types.gen.ts +21 -0
  82. package/dist/.pikku/queue/pikku-queue-types.gen.d.ts +24 -0
  83. package/dist/.pikku/queue/pikku-queue-types.gen.d.ts.map +1 -0
  84. package/dist/.pikku/queue/pikku-queue-types.gen.js +17 -0
  85. package/dist/.pikku/queue/pikku-queue-types.gen.js.map +1 -0
  86. package/dist/.pikku/queue/pikku-queue-types.gen.ts +27 -0
  87. package/dist/.pikku/rpc/pikku-rpc-wirings-map.gen.d.ts +248 -0
  88. package/dist/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +270 -0
  89. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.d.ts +2 -0
  90. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.d.ts.map +1 -0
  91. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js +7 -0
  92. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js.map +1 -0
  93. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.json +24 -0
  94. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.ts +6 -0
  95. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts +22 -0
  96. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts.map +1 -0
  97. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js +17 -0
  98. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js.map +1 -0
  99. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.ts +25 -0
  100. package/dist/.pikku/schemas/register.gen.d.ts +2 -0
  101. package/dist/.pikku/schemas/register.gen.d.ts.map +1 -0
  102. package/dist/.pikku/schemas/register.gen.js +99 -0
  103. package/dist/.pikku/schemas/register.gen.js.map +1 -0
  104. package/dist/.pikku/schemas/register.gen.ts +191 -0
  105. package/dist/.pikku/schemas/schemas/ChannelArchiveInput.schema.json +1 -0
  106. package/dist/.pikku/schemas/schemas/ChannelArchiveOutput.schema.json +1 -0
  107. package/dist/.pikku/schemas/schemas/ChannelCreateInput.schema.json +1 -0
  108. package/dist/.pikku/schemas/schemas/ChannelCreateOutput.schema.json +1 -0
  109. package/dist/.pikku/schemas/schemas/ChannelDeleteInput.schema.json +1 -0
  110. package/dist/.pikku/schemas/schemas/ChannelDeleteOutput.schema.json +1 -0
  111. package/dist/.pikku/schemas/schemas/ChannelGetAllInput.schema.json +1 -0
  112. package/dist/.pikku/schemas/schemas/ChannelGetAllOutput.schema.json +1 -0
  113. package/dist/.pikku/schemas/schemas/ChannelGetInput.schema.json +1 -0
  114. package/dist/.pikku/schemas/schemas/ChannelGetOutput.schema.json +1 -0
  115. package/dist/.pikku/schemas/schemas/ChannelUnarchiveInput.schema.json +1 -0
  116. package/dist/.pikku/schemas/schemas/ChannelUnarchiveOutput.schema.json +1 -0
  117. package/dist/.pikku/schemas/schemas/ChannelUpdateInput.schema.json +1 -0
  118. package/dist/.pikku/schemas/schemas/ChannelUpdateOutput.schema.json +1 -0
  119. package/dist/.pikku/schemas/schemas/CommentCreateInput.schema.json +1 -0
  120. package/dist/.pikku/schemas/schemas/CommentCreateOutput.schema.json +1 -0
  121. package/dist/.pikku/schemas/schemas/CommentDeleteInput.schema.json +1 -0
  122. package/dist/.pikku/schemas/schemas/CommentDeleteOutput.schema.json +1 -0
  123. package/dist/.pikku/schemas/schemas/CommentGetAllInput.schema.json +1 -0
  124. package/dist/.pikku/schemas/schemas/CommentGetAllOutput.schema.json +1 -0
  125. package/dist/.pikku/schemas/schemas/CommentGetInput.schema.json +1 -0
  126. package/dist/.pikku/schemas/schemas/CommentGetOutput.schema.json +1 -0
  127. package/dist/.pikku/schemas/schemas/CommentUpdateInput.schema.json +1 -0
  128. package/dist/.pikku/schemas/schemas/CommentUpdateOutput.schema.json +1 -0
  129. package/dist/.pikku/schemas/schemas/CredentialSchema_twist.schema.json +1 -0
  130. package/dist/.pikku/schemas/schemas/MessageCreateInput.schema.json +1 -0
  131. package/dist/.pikku/schemas/schemas/MessageCreateOutput.schema.json +1 -0
  132. package/dist/.pikku/schemas/schemas/MessageDeleteInput.schema.json +1 -0
  133. package/dist/.pikku/schemas/schemas/MessageDeleteOutput.schema.json +1 -0
  134. package/dist/.pikku/schemas/schemas/MessageGetAllInput.schema.json +1 -0
  135. package/dist/.pikku/schemas/schemas/MessageGetAllOutput.schema.json +1 -0
  136. package/dist/.pikku/schemas/schemas/MessageGetInput.schema.json +1 -0
  137. package/dist/.pikku/schemas/schemas/MessageGetOutput.schema.json +1 -0
  138. package/dist/.pikku/schemas/schemas/MessageUpdateInput.schema.json +1 -0
  139. package/dist/.pikku/schemas/schemas/MessageUpdateOutput.schema.json +1 -0
  140. package/dist/.pikku/schemas/schemas/SecretSchema_twistOAuthApp.schema.json +1 -0
  141. package/dist/.pikku/schemas/schemas/ThreadCreateInput.schema.json +1 -0
  142. package/dist/.pikku/schemas/schemas/ThreadCreateOutput.schema.json +1 -0
  143. package/dist/.pikku/schemas/schemas/ThreadDeleteInput.schema.json +1 -0
  144. package/dist/.pikku/schemas/schemas/ThreadDeleteOutput.schema.json +1 -0
  145. package/dist/.pikku/schemas/schemas/ThreadGetAllInput.schema.json +1 -0
  146. package/dist/.pikku/schemas/schemas/ThreadGetAllOutput.schema.json +1 -0
  147. package/dist/.pikku/schemas/schemas/ThreadGetInput.schema.json +1 -0
  148. package/dist/.pikku/schemas/schemas/ThreadGetOutput.schema.json +1 -0
  149. package/dist/.pikku/schemas/schemas/ThreadUpdateInput.schema.json +1 -0
  150. package/dist/.pikku/schemas/schemas/ThreadUpdateOutput.schema.json +1 -0
  151. package/dist/.pikku/schemas/schemas/VariableSchema_TWIST_BASE_URL.schema.json +1 -0
  152. package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts +6 -0
  153. package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts.map +1 -0
  154. package/dist/.pikku/secrets/pikku-secret-types.gen.js +5 -0
  155. package/dist/.pikku/secrets/pikku-secret-types.gen.js.map +1 -0
  156. package/dist/.pikku/secrets/pikku-secret-types.gen.ts +5 -0
  157. package/dist/.pikku/secrets/pikku-secrets-meta.gen.json +10 -0
  158. package/dist/.pikku/secrets/pikku-secrets.gen.d.ts +15 -0
  159. package/dist/.pikku/secrets/pikku-secrets.gen.d.ts.map +1 -0
  160. package/dist/.pikku/secrets/pikku-secrets.gen.js +13 -0
  161. package/dist/.pikku/secrets/pikku-secrets.gen.js.map +1 -0
  162. package/dist/.pikku/secrets/pikku-secrets.gen.ts +23 -0
  163. package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts +114 -0
  164. package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts.map +1 -0
  165. package/dist/.pikku/trigger/pikku-trigger-types.gen.js +34 -0
  166. package/dist/.pikku/trigger/pikku-trigger-types.gen.js.map +1 -0
  167. package/dist/.pikku/trigger/pikku-trigger-types.gen.ts +160 -0
  168. package/dist/.pikku/variables/pikku-variable-types.gen.d.ts +6 -0
  169. package/dist/.pikku/variables/pikku-variable-types.gen.d.ts.map +1 -0
  170. package/dist/.pikku/variables/pikku-variable-types.gen.js +5 -0
  171. package/dist/.pikku/variables/pikku-variable-types.gen.js.map +1 -0
  172. package/dist/.pikku/variables/pikku-variable-types.gen.ts +5 -0
  173. package/dist/.pikku/variables/pikku-variables-meta.gen.json +10 -0
  174. package/dist/.pikku/variables/pikku-variables.gen.d.ts +15 -0
  175. package/dist/.pikku/variables/pikku-variables.gen.d.ts.map +1 -0
  176. package/dist/.pikku/variables/pikku-variables.gen.js +13 -0
  177. package/dist/.pikku/variables/pikku-variables.gen.js.map +1 -0
  178. package/dist/.pikku/variables/pikku-variables.gen.ts +23 -0
  179. package/dist/.pikku/workflow/pikku-workflow-map.gen.d.ts +38 -0
  180. package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts +90 -0
  181. package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts.map +1 -0
  182. package/dist/.pikku/workflow/pikku-workflow-types.gen.js +18 -0
  183. package/dist/.pikku/workflow/pikku-workflow-types.gen.js.map +1 -0
  184. package/dist/.pikku/workflow/pikku-workflow-types.gen.ts +167 -0
  185. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.d.ts +2 -0
  186. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.d.ts.map +1 -0
  187. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js +7 -0
  188. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js.map +1 -0
  189. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.ts +9 -0
  190. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.d.ts +5 -0
  191. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.d.ts.map +1 -0
  192. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js +5 -0
  193. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js.map +1 -0
  194. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.ts +3 -0
  195. package/dist/src/functions/channelArchive.function.d.ts +13 -0
  196. package/dist/src/functions/channelArchive.function.d.ts.map +1 -0
  197. package/dist/src/functions/channelArchive.function.js +15 -0
  198. package/dist/src/functions/channelArchive.function.js.map +1 -0
  199. package/dist/src/functions/channelCreate.function.d.ts +17 -0
  200. package/dist/src/functions/channelCreate.function.d.ts.map +1 -0
  201. package/dist/src/functions/channelCreate.function.js +16 -0
  202. package/dist/src/functions/channelCreate.function.js.map +1 -0
  203. package/dist/src/functions/channelDelete.function.d.ts +13 -0
  204. package/dist/src/functions/channelDelete.function.d.ts.map +1 -0
  205. package/dist/src/functions/channelDelete.function.js +15 -0
  206. package/dist/src/functions/channelDelete.function.js.map +1 -0
  207. package/dist/src/functions/channelGet.function.d.ts +13 -0
  208. package/dist/src/functions/channelGet.function.d.ts.map +1 -0
  209. package/dist/src/functions/channelGet.function.js +15 -0
  210. package/dist/src/functions/channelGet.function.js.map +1 -0
  211. package/dist/src/functions/channelGetAll.function.d.ts +13 -0
  212. package/dist/src/functions/channelGetAll.function.d.ts.map +1 -0
  213. package/dist/src/functions/channelGetAll.function.js +15 -0
  214. package/dist/src/functions/channelGetAll.function.js.map +1 -0
  215. package/dist/src/functions/channelUnarchive.function.d.ts +13 -0
  216. package/dist/src/functions/channelUnarchive.function.d.ts.map +1 -0
  217. package/dist/src/functions/channelUnarchive.function.js +15 -0
  218. package/dist/src/functions/channelUnarchive.function.js.map +1 -0
  219. package/dist/src/functions/channelUpdate.function.d.ts +17 -0
  220. package/dist/src/functions/channelUpdate.function.d.ts.map +1 -0
  221. package/dist/src/functions/channelUpdate.function.js +16 -0
  222. package/dist/src/functions/channelUpdate.function.js.map +1 -0
  223. package/dist/src/functions/commentCreate.function.d.ts +17 -0
  224. package/dist/src/functions/commentCreate.function.d.ts.map +1 -0
  225. package/dist/src/functions/commentCreate.function.js +16 -0
  226. package/dist/src/functions/commentCreate.function.js.map +1 -0
  227. package/dist/src/functions/commentDelete.function.d.ts +13 -0
  228. package/dist/src/functions/commentDelete.function.d.ts.map +1 -0
  229. package/dist/src/functions/commentDelete.function.js +15 -0
  230. package/dist/src/functions/commentDelete.function.js.map +1 -0
  231. package/dist/src/functions/commentGet.function.d.ts +13 -0
  232. package/dist/src/functions/commentGet.function.d.ts.map +1 -0
  233. package/dist/src/functions/commentGet.function.js +15 -0
  234. package/dist/src/functions/commentGet.function.js.map +1 -0
  235. package/dist/src/functions/commentGetAll.function.d.ts +13 -0
  236. package/dist/src/functions/commentGetAll.function.d.ts.map +1 -0
  237. package/dist/src/functions/commentGetAll.function.js +15 -0
  238. package/dist/src/functions/commentGetAll.function.js.map +1 -0
  239. package/dist/src/functions/commentUpdate.function.d.ts +17 -0
  240. package/dist/src/functions/commentUpdate.function.d.ts.map +1 -0
  241. package/dist/src/functions/commentUpdate.function.js +16 -0
  242. package/dist/src/functions/commentUpdate.function.js.map +1 -0
  243. package/dist/src/functions/messageCreate.function.d.ts +21 -0
  244. package/dist/src/functions/messageCreate.function.d.ts.map +1 -0
  245. package/dist/src/functions/messageCreate.function.js +17 -0
  246. package/dist/src/functions/messageCreate.function.js.map +1 -0
  247. package/dist/src/functions/messageDelete.function.d.ts +13 -0
  248. package/dist/src/functions/messageDelete.function.d.ts.map +1 -0
  249. package/dist/src/functions/messageDelete.function.js +15 -0
  250. package/dist/src/functions/messageDelete.function.js.map +1 -0
  251. package/dist/src/functions/messageGet.function.d.ts +13 -0
  252. package/dist/src/functions/messageGet.function.d.ts.map +1 -0
  253. package/dist/src/functions/messageGet.function.js +15 -0
  254. package/dist/src/functions/messageGet.function.js.map +1 -0
  255. package/dist/src/functions/messageGetAll.function.d.ts +13 -0
  256. package/dist/src/functions/messageGetAll.function.d.ts.map +1 -0
  257. package/dist/src/functions/messageGetAll.function.js +15 -0
  258. package/dist/src/functions/messageGetAll.function.js.map +1 -0
  259. package/dist/src/functions/messageUpdate.function.d.ts +17 -0
  260. package/dist/src/functions/messageUpdate.function.d.ts.map +1 -0
  261. package/dist/src/functions/messageUpdate.function.js +16 -0
  262. package/dist/src/functions/messageUpdate.function.js.map +1 -0
  263. package/dist/src/functions/threadCreate.function.d.ts +21 -0
  264. package/dist/src/functions/threadCreate.function.d.ts.map +1 -0
  265. package/dist/src/functions/threadCreate.function.js +17 -0
  266. package/dist/src/functions/threadCreate.function.js.map +1 -0
  267. package/dist/src/functions/threadDelete.function.d.ts +13 -0
  268. package/dist/src/functions/threadDelete.function.d.ts.map +1 -0
  269. package/dist/src/functions/threadDelete.function.js +15 -0
  270. package/dist/src/functions/threadDelete.function.js.map +1 -0
  271. package/dist/src/functions/threadGet.function.d.ts +13 -0
  272. package/dist/src/functions/threadGet.function.d.ts.map +1 -0
  273. package/dist/src/functions/threadGet.function.js +15 -0
  274. package/dist/src/functions/threadGet.function.js.map +1 -0
  275. package/dist/src/functions/threadGetAll.function.d.ts +13 -0
  276. package/dist/src/functions/threadGetAll.function.d.ts.map +1 -0
  277. package/dist/src/functions/threadGetAll.function.js +15 -0
  278. package/dist/src/functions/threadGetAll.function.js.map +1 -0
  279. package/dist/src/functions/threadUpdate.function.d.ts +21 -0
  280. package/dist/src/functions/threadUpdate.function.d.ts.map +1 -0
  281. package/dist/src/functions/threadUpdate.function.js +17 -0
  282. package/dist/src/functions/threadUpdate.function.js.map +1 -0
  283. package/dist/src/index.d.ts +23 -0
  284. package/dist/src/index.d.ts.map +1 -0
  285. package/dist/src/index.js +23 -0
  286. package/dist/src/index.js.map +1 -0
  287. package/dist/src/services.d.ts +2 -0
  288. package/dist/src/services.d.ts.map +1 -0
  289. package/dist/src/services.js +7 -0
  290. package/dist/src/services.js.map +1 -0
  291. package/dist/src/twist-api.service.d.ts +15 -0
  292. package/dist/src/twist-api.service.d.ts.map +1 -0
  293. package/dist/src/twist-api.service.js +219 -0
  294. package/dist/src/twist-api.service.js.map +1 -0
  295. package/dist/src/twist.credential.d.ts +10 -0
  296. package/dist/src/twist.credential.d.ts.map +1 -0
  297. package/dist/src/twist.credential.js +33 -0
  298. package/dist/src/twist.credential.js.map +1 -0
  299. package/dist/src/twist.types.d.ts +7 -0
  300. package/dist/src/twist.types.d.ts.map +1 -0
  301. package/dist/src/twist.types.js +8 -0
  302. package/dist/src/twist.types.js.map +1 -0
  303. package/dist/src/twist.variable.d.ts +5 -0
  304. package/dist/src/twist.variable.d.ts.map +1 -0
  305. package/dist/src/twist.variable.js +11 -0
  306. package/dist/src/twist.variable.js.map +1 -0
  307. package/package.json +39 -0
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.54
3
+ */
4
+ import { LocalMetaService } from '@pikku/core/services/local-meta'
5
+
6
+ export class PikkuMetaService extends LocalMetaService {
7
+ constructor() {
8
+ super('/home/runner/work/addons/addons/packages/communication/twist/.pikku')
9
+ }
10
+ }
@@ -0,0 +1,36 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.54
3
+ */
4
+ import type { SingletonServices } from '../types/application-types.d.js';
5
+ import type { Services } from '../types/application-types.d.js';
6
+ export declare const requiredSingletonServices: {
7
+ readonly agentRunService: false;
8
+ readonly aiAgentRunner: false;
9
+ readonly aiRunState: false;
10
+ readonly aiStorage: false;
11
+ readonly audit: false;
12
+ readonly auditLog: false;
13
+ readonly config: true;
14
+ readonly content: false;
15
+ readonly credentialService: false;
16
+ readonly deploymentService: false;
17
+ readonly emailService: false;
18
+ readonly eventHub: false;
19
+ readonly jwt: false;
20
+ readonly logger: true;
21
+ readonly metaService: false;
22
+ readonly queueService: false;
23
+ readonly schedulerService: false;
24
+ readonly schema: true;
25
+ readonly secrets: true;
26
+ readonly sessionStore: false;
27
+ readonly twist: false;
28
+ readonly variables: true;
29
+ readonly workflowRunService: false;
30
+ readonly workflowService: false;
31
+ };
32
+ export declare const requiredWireServices: {};
33
+ export type RequiredSingletonServices = Required<Pick<SingletonServices, 'config' | 'logger' | 'schema' | 'secrets' | 'variables'>> & Partial<Omit<SingletonServices, 'config' | 'logger' | 'schema' | 'secrets' | 'variables'>>;
34
+ export type RequiredWireServices = Partial<Services>;
35
+ export declare const requiredParentServices: readonly ["secrets", "variables"];
36
+ //# sourceMappingURL=pikku-services.gen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pikku-services.gen.d.ts","sourceRoot":"","sources":["../../.pikku/pikku-services.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;AACxE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAA;AAG/D,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;CAyB5B,CAAA;AAGV,eAAO,MAAM,oBAAoB,IACvB,CAAA;AAGV,MAAM,MAAM,yBAAyB,GAAG,QAAQ,CAAC,IAAI,CAAC,iBAAiB,EAAE,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,WAAW,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAE,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,WAAW,CAAC,CAAC,CAAA;AAEhO,MAAM,MAAM,oBAAoB,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAA;AAGpD,eAAO,MAAM,sBAAsB,mCAAmC,CAAA"}
@@ -0,0 +1,32 @@
1
+ // Singleton services map: true if required, false if available but unused
2
+ export const requiredSingletonServices = {
3
+ 'agentRunService': false,
4
+ 'aiAgentRunner': false,
5
+ 'aiRunState': false,
6
+ 'aiStorage': false,
7
+ 'audit': false,
8
+ 'auditLog': false,
9
+ 'config': true,
10
+ 'content': false,
11
+ 'credentialService': false,
12
+ 'deploymentService': false,
13
+ 'emailService': false,
14
+ 'eventHub': false,
15
+ 'jwt': false,
16
+ 'logger': true,
17
+ 'metaService': false,
18
+ 'queueService': false,
19
+ 'schedulerService': false,
20
+ 'schema': true,
21
+ 'secrets': true,
22
+ 'sessionStore': false,
23
+ 'twist': false,
24
+ 'variables': true,
25
+ 'workflowRunService': false,
26
+ 'workflowService': false,
27
+ };
28
+ // Wire services map: true if required, false if available but unused
29
+ export const requiredWireServices = {};
30
+ // Services this addon needs from the parent project
31
+ export const requiredParentServices = ["secrets", "variables"];
32
+ //# sourceMappingURL=pikku-services.gen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pikku-services.gen.js","sourceRoot":"","sources":["../../.pikku/pikku-services.gen.ts"],"names":[],"mappings":"AAMA,0EAA0E;AAC1E,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,iBAAiB,EAAE,KAAK;IACxB,eAAe,EAAE,KAAK;IACtB,YAAY,EAAE,KAAK;IACnB,WAAW,EAAE,KAAK;IAClB,OAAO,EAAE,KAAK;IACd,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,IAAI;IACd,SAAS,EAAE,KAAK;IAChB,mBAAmB,EAAE,KAAK;IAC1B,mBAAmB,EAAE,KAAK;IAC1B,cAAc,EAAE,KAAK;IACrB,UAAU,EAAE,KAAK;IACjB,KAAK,EAAE,KAAK;IACZ,QAAQ,EAAE,IAAI;IACd,aAAa,EAAE,KAAK;IACpB,cAAc,EAAE,KAAK;IACrB,kBAAkB,EAAE,KAAK;IACzB,QAAQ,EAAE,IAAI;IACd,SAAS,EAAE,IAAI;IACf,cAAc,EAAE,KAAK;IACrB,OAAO,EAAE,KAAK;IACd,WAAW,EAAE,IAAI;IACjB,oBAAoB,EAAE,KAAK;IAC3B,iBAAiB,EAAE,KAAK;CAChB,CAAA;AAEV,qEAAqE;AACrE,MAAM,CAAC,MAAM,oBAAoB,GAAG,EAC1B,CAAA;AAOV,oDAAoD;AACpD,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,SAAS,EAAC,WAAW,CAAU,CAAA"}
@@ -0,0 +1,45 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.54
3
+ */
4
+ import type { SingletonServices } from '../types/application-types.d.js'
5
+ import type { Services } from '../types/application-types.d.js'
6
+
7
+ // Singleton services map: true if required, false if available but unused
8
+ export const requiredSingletonServices = {
9
+ 'agentRunService': false,
10
+ 'aiAgentRunner': false,
11
+ 'aiRunState': false,
12
+ 'aiStorage': false,
13
+ 'audit': false,
14
+ 'auditLog': false,
15
+ 'config': true,
16
+ 'content': false,
17
+ 'credentialService': false,
18
+ 'deploymentService': false,
19
+ 'emailService': false,
20
+ 'eventHub': false,
21
+ 'jwt': false,
22
+ 'logger': true,
23
+ 'metaService': false,
24
+ 'queueService': false,
25
+ 'schedulerService': false,
26
+ 'schema': true,
27
+ 'secrets': true,
28
+ 'sessionStore': false,
29
+ 'twist': false,
30
+ 'variables': true,
31
+ 'workflowRunService': false,
32
+ 'workflowService': false,
33
+ } as const
34
+
35
+ // Wire services map: true if required, false if available but unused
36
+ export const requiredWireServices = {
37
+ } as const
38
+
39
+ // Type exports
40
+ export type RequiredSingletonServices = Required<Pick<SingletonServices, 'config' | 'logger' | 'schema' | 'secrets' | 'variables'>> & Partial<Omit<SingletonServices, 'config' | 'logger' | 'schema' | 'secrets' | 'variables'>>
41
+
42
+ export type RequiredWireServices = Partial<Services>
43
+
44
+ // Services this addon needs from the parent project
45
+ export const requiredParentServices = ["secrets","variables"] as const
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.54
3
+ */
4
+ /**
5
+ * Main type export hub - re-exports all wiring-specific types
6
+ */
7
+ export * from './function/pikku-function-types.gen.js';
8
+ export * from './trigger/pikku-trigger-types.gen.js';
9
+ export * from './console/pikku-node-types.gen.js';
10
+ export * from './secrets/pikku-secret-types.gen.js';
11
+ export * from './addon/pikku-addon-types.gen.js';
12
+ //# sourceMappingURL=pikku-types.gen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pikku-types.gen.d.ts","sourceRoot":"","sources":["../../.pikku/pikku-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAGH,cAAc,wCAAwC,CAAA;AAGtD,cAAc,sCAAsC,CAAA;AAGpD,cAAc,mCAAmC,CAAA;AAGjD,cAAc,qCAAqC,CAAA;AAGnD,cAAc,kCAAkC,CAAA"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.54
3
+ */
4
+ /**
5
+ * Main type export hub - re-exports all wiring-specific types
6
+ */
7
+ // Core function, middleware, and permission types
8
+ export * from './function/pikku-function-types.gen.js';
9
+ // Trigger wiring types
10
+ export * from './trigger/pikku-trigger-types.gen.js';
11
+ // Node wiring types
12
+ export * from './console/pikku-node-types.gen.js';
13
+ // Secret definition types
14
+ export * from './secrets/pikku-secret-types.gen.js';
15
+ // Addon types
16
+ export * from './addon/pikku-addon-types.gen.js';
17
+ //# sourceMappingURL=pikku-types.gen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pikku-types.gen.js","sourceRoot":"","sources":["../../.pikku/pikku-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,kDAAkD;AAClD,cAAc,wCAAwC,CAAA;AAEtD,uBAAuB;AACvB,cAAc,sCAAsC,CAAA;AAEpD,oBAAoB;AACpB,cAAc,mCAAmC,CAAA;AAEjD,0BAA0B;AAC1B,cAAc,qCAAqC,CAAA;AAEnD,cAAc;AACd,cAAc,kCAAkC,CAAA"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.54
3
+ */
4
+ /**
5
+ * Main type export hub - re-exports all wiring-specific types
6
+ */
7
+
8
+ // Core function, middleware, and permission types
9
+ export * from './function/pikku-function-types.gen.js'
10
+
11
+ // Trigger wiring types
12
+ export * from './trigger/pikku-trigger-types.gen.js'
13
+
14
+ // Node wiring types
15
+ export * from './console/pikku-node-types.gen.js'
16
+
17
+ // Secret definition types
18
+ export * from './secrets/pikku-secret-types.gen.js'
19
+
20
+ // Addon types
21
+ export * from './addon/pikku-addon-types.gen.js'
@@ -0,0 +1,24 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.54
3
+ */
4
+ /**
5
+ * Queue-specific type definitions for tree-shaking optimization
6
+ */
7
+ import { CoreQueueWorker } from '@pikku/core/queue';
8
+ import type { PikkuFunctionConfig } from '../function/pikku-function-types.gen.js';
9
+ /**
10
+ * Type definition for queue workers that process background jobs.
11
+ *
12
+ * @template In - Input type for the queue job
13
+ * @template Out - Output type for the queue job
14
+ */
15
+ type QueueWiring<In, Out> = CoreQueueWorker<PikkuFunctionConfig<In, Out, 'session' | 'rpc'>>;
16
+ /**
17
+ * Registers a queue worker with the Pikku framework.
18
+ * Workers process background jobs from queues.
19
+ *
20
+ * @param queueWorker - Queue worker definition with job handler
21
+ */
22
+ export declare const wireQueueWorker: (queueWorker: QueueWiring<any, any>) => void;
23
+ export {};
24
+ //# sourceMappingURL=pikku-queue-types.gen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pikku-queue-types.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/queue/pikku-queue-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,OAAO,EAAE,eAAe,EAA0C,MAAM,mBAAmB,CAAA;AAC3F,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAA;AAElF;;;;;GAKG;AACH,KAAK,WAAW,CAAC,EAAE,EAAE,GAAG,IAAI,eAAe,CAAC,mBAAmB,CAAC,EAAE,EAAE,GAAG,EAAE,SAAS,GAAG,KAAK,CAAC,CAAC,CAAA;AAE5F;;;;;GAKG;AACH,eAAO,MAAM,eAAe,GAAI,aAAa,WAAW,CAAC,GAAG,EAAE,GAAG,CAAC,SAEjE,CAAA"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.54
3
+ */
4
+ /**
5
+ * Queue-specific type definitions for tree-shaking optimization
6
+ */
7
+ import { wireQueueWorker as wireQueueWorkerCore } from '@pikku/core/queue';
8
+ /**
9
+ * Registers a queue worker with the Pikku framework.
10
+ * Workers process background jobs from queues.
11
+ *
12
+ * @param queueWorker - Queue worker definition with job handler
13
+ */
14
+ export const wireQueueWorker = (queueWorker) => {
15
+ wireQueueWorkerCore(queueWorker);
16
+ };
17
+ //# sourceMappingURL=pikku-queue-types.gen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pikku-queue-types.gen.js","sourceRoot":"","sources":["../../../.pikku/queue/pikku-queue-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,OAAO,EAAmB,eAAe,IAAI,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAW3F;;;;;GAKG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,WAAkC,EAAE,EAAE;IACpE,mBAAmB,CAAC,WAAkB,CAAC,CAAA;AACzC,CAAC,CAAA"}
@@ -0,0 +1,27 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.54
3
+ */
4
+ /**
5
+ * Queue-specific type definitions for tree-shaking optimization
6
+ */
7
+
8
+ import { CoreQueueWorker, wireQueueWorker as wireQueueWorkerCore } from '@pikku/core/queue'
9
+ import type { PikkuFunctionConfig } from '../function/pikku-function-types.gen.js'
10
+
11
+ /**
12
+ * Type definition for queue workers that process background jobs.
13
+ *
14
+ * @template In - Input type for the queue job
15
+ * @template Out - Output type for the queue job
16
+ */
17
+ type QueueWiring<In, Out> = CoreQueueWorker<PikkuFunctionConfig<In, Out, 'session' | 'rpc'>>
18
+
19
+ /**
20
+ * Registers a queue worker with the Pikku framework.
21
+ * Workers process background jobs from queues.
22
+ *
23
+ * @param queueWorker - Queue worker definition with job handler
24
+ */
25
+ export const wireQueueWorker = (queueWorker: QueueWiring<any, any>) => {
26
+ wireQueueWorkerCore(queueWorker as any)
27
+ }
@@ -0,0 +1,248 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.54
3
+ */
4
+ /**
5
+ * This provides the structure needed for typescript to be aware of RPCs and their return types
6
+ */
7
+
8
+
9
+
10
+
11
+
12
+ export type ChannelArchiveInput = {
13
+ id: string;
14
+ }
15
+ export type ChannelArchiveOutput = {
16
+ [key: string]: unknown;
17
+ }
18
+ export type ChannelCreateInput = {
19
+ workspace_id?: string | undefined;
20
+ name?: string | undefined;
21
+ }
22
+ export type ChannelCreateOutput = {
23
+ [key: string]: unknown;
24
+ }
25
+ export type ChannelDeleteInput = {
26
+ id: string;
27
+ }
28
+ export type ChannelDeleteOutput = {
29
+ [key: string]: unknown;
30
+ }
31
+ export type ChannelGetAllInput = {
32
+ workspace_id: string;
33
+ }
34
+ export type ChannelGetAllOutput = {
35
+ [key: string]: unknown;
36
+ }
37
+ export type ChannelGetInput = {
38
+ id: string;
39
+ }
40
+ export type ChannelGetOutput = {
41
+ [key: string]: unknown;
42
+ }
43
+ export type ChannelUnarchiveInput = {
44
+ id: string;
45
+ }
46
+ export type ChannelUnarchiveOutput = {
47
+ [key: string]: unknown;
48
+ }
49
+ export type ChannelUpdateInput = {
50
+ id?: string | undefined;
51
+ name?: string | undefined;
52
+ }
53
+ export type ChannelUpdateOutput = {
54
+ [key: string]: unknown;
55
+ }
56
+ export type CommentCreateInput = {
57
+ thread_id?: string | undefined;
58
+ content?: string | undefined;
59
+ }
60
+ export type CommentCreateOutput = {
61
+ [key: string]: unknown;
62
+ }
63
+ export type CommentDeleteInput = {
64
+ id: string;
65
+ }
66
+ export type CommentDeleteOutput = {
67
+ [key: string]: unknown;
68
+ }
69
+ export type CommentGetAllInput = {
70
+ thread_id: string;
71
+ }
72
+ export type CommentGetAllOutput = {
73
+ [key: string]: unknown;
74
+ }
75
+ export type CommentGetInput = {
76
+ id: string;
77
+ }
78
+ export type CommentGetOutput = {
79
+ [key: string]: unknown;
80
+ }
81
+ export type CommentUpdateInput = {
82
+ id?: string | undefined;
83
+ content?: string | undefined;
84
+ }
85
+ export type CommentUpdateOutput = {
86
+ [key: string]: unknown;
87
+ }
88
+ export type CredentialSchema_twist = {
89
+ accessToken: string;
90
+ refreshToken?: string | undefined;
91
+ }
92
+ export type MessageCreateInput = {
93
+ conversation_id?: string | undefined;
94
+ workspace_id?: string | undefined;
95
+ content?: string | undefined;
96
+ }
97
+ export type MessageCreateOutput = {
98
+ [key: string]: unknown;
99
+ }
100
+ export type MessageDeleteInput = {
101
+ id: string;
102
+ }
103
+ export type MessageDeleteOutput = {
104
+ [key: string]: unknown;
105
+ }
106
+ export type MessageGetAllInput = {
107
+ conversation_id: string;
108
+ }
109
+ export type MessageGetAllOutput = {
110
+ [key: string]: unknown;
111
+ }
112
+ export type MessageGetInput = {
113
+ id: string;
114
+ }
115
+ export type MessageGetOutput = {
116
+ [key: string]: unknown;
117
+ }
118
+ export type MessageUpdateInput = {
119
+ id?: string | undefined;
120
+ content?: string | undefined;
121
+ }
122
+ export type MessageUpdateOutput = {
123
+ [key: string]: unknown;
124
+ }
125
+ export type SecretSchema_twistOAuthApp = {
126
+ /** OAuth2 app client ID */
127
+ clientId: string;
128
+ /** OAuth2 app client secret */
129
+ clientSecret: string;
130
+ }
131
+ export type ThreadCreateInput = {
132
+ channel_id?: string | undefined;
133
+ title?: string | undefined;
134
+ content?: string | undefined;
135
+ }
136
+ export type ThreadCreateOutput = {
137
+ [key: string]: unknown;
138
+ }
139
+ export type ThreadDeleteInput = {
140
+ id: string;
141
+ }
142
+ export type ThreadDeleteOutput = {
143
+ [key: string]: unknown;
144
+ }
145
+ export type ThreadGetAllInput = {
146
+ channel_id: string;
147
+ }
148
+ export type ThreadGetAllOutput = {
149
+ [key: string]: unknown;
150
+ }
151
+ export type ThreadGetInput = {
152
+ id: string;
153
+ }
154
+ export type ThreadGetOutput = {
155
+ [key: string]: unknown;
156
+ }
157
+ export type ThreadUpdateInput = {
158
+ id?: string | undefined;
159
+ title?: string | undefined;
160
+ content?: string | undefined;
161
+ }
162
+ export type ThreadUpdateOutput = {
163
+ [key: string]: unknown;
164
+ }
165
+ export type VariableSchema_TWIST_BASE_URL = "https://api.twist.com/api/v3"
166
+
167
+ interface RPCHandler<I, O> {
168
+ input: I;
169
+ output: O;
170
+ }
171
+
172
+ export type RPCMap = {
173
+ };
174
+
175
+
176
+
177
+ // No addon packages, use RPCMap directly
178
+ export type FlattenedRPCMap = RPCMap
179
+
180
+ type IsAny<T> = 0 extends (1 & T) ? true : false
181
+ type IsVoidishInput<T> = IsAny<T> extends true
182
+ ? false
183
+ : [T] extends [void | null | undefined]
184
+ ? true
185
+ : false
186
+
187
+
188
+ export type RPCInvoke = <Name extends keyof FlattenedRPCMap>(
189
+ ...args: IsVoidishInput<FlattenedRPCMap[Name]['input']> extends true
190
+ ? [name: Name]
191
+ : [name: Name, data: FlattenedRPCMap[Name]['input']]
192
+ ) => Promise<FlattenedRPCMap[Name]['output']>
193
+
194
+ export type RPCRemote = <Name extends keyof FlattenedRPCMap>(
195
+ ...args: IsVoidishInput<FlattenedRPCMap[Name]['input']> extends true
196
+ ? [name: Name]
197
+ : [name: Name, data: FlattenedRPCMap[Name]['input']]
198
+ ) => Promise<FlattenedRPCMap[Name]['output']>
199
+
200
+ import type { FlattenedWorkflowMap } from '../workflow/pikku-workflow-map.gen.d.js'
201
+
202
+ import type { AgentMap } from '../agent/pikku-agent-map.gen.d.js'
203
+
204
+
205
+ type FlattenedAgentMap = AgentMap
206
+
207
+
208
+ import type { PikkuRPC } from '@pikku/core/rpc'
209
+
210
+ interface AIAgentInput {
211
+ message: string
212
+ threadId: string
213
+ resourceId: string
214
+ }
215
+
216
+ export type TypedStartWorkflow = <Name extends keyof FlattenedWorkflowMap>(
217
+ name: Name,
218
+ input: FlattenedWorkflowMap[Name]['input'],
219
+ options?: { startNode?: string }
220
+ ) => Promise<{ runId: string }>
221
+
222
+ export type TypedRunWorkflow = <Name extends keyof FlattenedWorkflowMap>(
223
+ name: Name,
224
+ input: FlattenedWorkflowMap[Name]['input']
225
+ ) => Promise<FlattenedWorkflowMap[Name]['output']>
226
+
227
+ export type TypedWorkflowStatus = (
228
+ workflowName: string,
229
+ runId: string
230
+ ) => Promise<{ id: string; status: 'running' | 'suspended' | 'completed' | 'failed' | 'cancelled'; output?: unknown; error?: { message?: string } }>
231
+
232
+ type TypedAgentRun = [keyof FlattenedAgentMap] extends [never]
233
+ ? (name: string, input: AIAgentInput) => Promise<any>
234
+ : <Name extends keyof FlattenedAgentMap>(
235
+ name: Name,
236
+ input: AIAgentInput
237
+ ) => Promise<{ runId: string; result: FlattenedAgentMap[Name]['output']; usage: { inputTokens: number; outputTokens: number } }>
238
+
239
+ type TypedAgentStream = [keyof FlattenedAgentMap] extends [never]
240
+ ? (name: string, input: AIAgentInput, options?: { requiresToolApproval?: 'all' | 'explicit' | false }) => Promise<void>
241
+ : <Name extends keyof FlattenedAgentMap>(
242
+ name: Name,
243
+ input: AIAgentInput,
244
+ options?: { requiresToolApproval?: 'all' | 'explicit' | false }
245
+ ) => Promise<void>
246
+
247
+ export type TypedPikkuRPC = PikkuRPC<RPCInvoke, RPCRemote, TypedStartWorkflow, TypedAgentRun, TypedAgentStream>
248
+