@keystrokehq/spoki 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (490) hide show
  1. package/README.md +17 -0
  2. package/dist/action.cjs +21 -0
  3. package/dist/action.cjs.map +1 -0
  4. package/dist/action.mjs +21 -0
  5. package/dist/action.mjs.map +1 -0
  6. package/dist/actions/add-contact-operator.cjs +19 -0
  7. package/dist/actions/add-contact-operator.cjs.map +1 -0
  8. package/dist/actions/add-contact-operator.d.cts +9 -0
  9. package/dist/actions/add-contact-operator.d.cts.map +1 -0
  10. package/dist/actions/add-contact-operator.d.mts +9 -0
  11. package/dist/actions/add-contact-operator.d.mts.map +1 -0
  12. package/dist/actions/add-contact-operator.mjs +16 -0
  13. package/dist/actions/add-contact-operator.mjs.map +1 -0
  14. package/dist/actions/add-service-user.cjs +23 -0
  15. package/dist/actions/add-service-user.cjs.map +1 -0
  16. package/dist/actions/add-service-user.d.cts +9 -0
  17. package/dist/actions/add-service-user.d.cts.map +1 -0
  18. package/dist/actions/add-service-user.d.mts +9 -0
  19. package/dist/actions/add-service-user.d.mts.map +1 -0
  20. package/dist/actions/add-service-user.mjs +20 -0
  21. package/dist/actions/add-service-user.mjs.map +1 -0
  22. package/dist/actions/check-role-private-key.cjs +16 -0
  23. package/dist/actions/check-role-private-key.cjs.map +1 -0
  24. package/dist/actions/check-role-private-key.d.cts +9 -0
  25. package/dist/actions/check-role-private-key.d.cts.map +1 -0
  26. package/dist/actions/check-role-private-key.d.mts +9 -0
  27. package/dist/actions/check-role-private-key.d.mts.map +1 -0
  28. package/dist/actions/check-role-private-key.mjs +13 -0
  29. package/dist/actions/check-role-private-key.mjs.map +1 -0
  30. package/dist/actions/clone-template.cjs +52 -0
  31. package/dist/actions/clone-template.cjs.map +1 -0
  32. package/dist/actions/clone-template.d.cts +9 -0
  33. package/dist/actions/clone-template.d.cts.map +1 -0
  34. package/dist/actions/clone-template.d.mts +9 -0
  35. package/dist/actions/clone-template.d.mts.map +1 -0
  36. package/dist/actions/clone-template.mjs +51 -0
  37. package/dist/actions/clone-template.mjs.map +1 -0
  38. package/dist/actions/create-account-onboarding-link.cjs +20 -0
  39. package/dist/actions/create-account-onboarding-link.cjs.map +1 -0
  40. package/dist/actions/create-account-onboarding-link.d.cts +9 -0
  41. package/dist/actions/create-account-onboarding-link.d.cts.map +1 -0
  42. package/dist/actions/create-account-onboarding-link.d.mts +9 -0
  43. package/dist/actions/create-account-onboarding-link.d.mts.map +1 -0
  44. package/dist/actions/create-account-onboarding-link.mjs +17 -0
  45. package/dist/actions/create-account-onboarding-link.mjs.map +1 -0
  46. package/dist/actions/create-custom-field.cjs +32 -0
  47. package/dist/actions/create-custom-field.cjs.map +1 -0
  48. package/dist/actions/create-custom-field.d.cts +9 -0
  49. package/dist/actions/create-custom-field.d.cts.map +1 -0
  50. package/dist/actions/create-custom-field.d.mts +9 -0
  51. package/dist/actions/create-custom-field.d.mts.map +1 -0
  52. package/dist/actions/create-custom-field.mjs +29 -0
  53. package/dist/actions/create-custom-field.mjs.map +1 -0
  54. package/dist/actions/create-list.cjs +22 -0
  55. package/dist/actions/create-list.cjs.map +1 -0
  56. package/dist/actions/create-list.d.cts +9 -0
  57. package/dist/actions/create-list.d.cts.map +1 -0
  58. package/dist/actions/create-list.d.mts +9 -0
  59. package/dist/actions/create-list.d.mts.map +1 -0
  60. package/dist/actions/create-list.mjs +19 -0
  61. package/dist/actions/create-list.mjs.map +1 -0
  62. package/dist/actions/create-media.cjs +27 -0
  63. package/dist/actions/create-media.cjs.map +1 -0
  64. package/dist/actions/create-media.d.cts +9 -0
  65. package/dist/actions/create-media.d.cts.map +1 -0
  66. package/dist/actions/create-media.d.mts +9 -0
  67. package/dist/actions/create-media.d.mts.map +1 -0
  68. package/dist/actions/create-media.mjs +24 -0
  69. package/dist/actions/create-media.mjs.map +1 -0
  70. package/dist/actions/create-or-update-contact.cjs +36 -0
  71. package/dist/actions/create-or-update-contact.cjs.map +1 -0
  72. package/dist/actions/create-or-update-contact.d.cts +9 -0
  73. package/dist/actions/create-or-update-contact.d.cts.map +1 -0
  74. package/dist/actions/create-or-update-contact.d.mts +9 -0
  75. package/dist/actions/create-or-update-contact.d.mts.map +1 -0
  76. package/dist/actions/create-or-update-contact.mjs +33 -0
  77. package/dist/actions/create-or-update-contact.mjs.map +1 -0
  78. package/dist/actions/create-template.cjs +84 -0
  79. package/dist/actions/create-template.cjs.map +1 -0
  80. package/dist/actions/create-template.d.cts +9 -0
  81. package/dist/actions/create-template.d.cts.map +1 -0
  82. package/dist/actions/create-template.d.mts +9 -0
  83. package/dist/actions/create-template.d.mts.map +1 -0
  84. package/dist/actions/create-template.mjs +83 -0
  85. package/dist/actions/create-template.mjs.map +1 -0
  86. package/dist/actions/create-ticket.cjs +66 -0
  87. package/dist/actions/create-ticket.cjs.map +1 -0
  88. package/dist/actions/create-ticket.d.cts +9 -0
  89. package/dist/actions/create-ticket.d.cts.map +1 -0
  90. package/dist/actions/create-ticket.d.mts +9 -0
  91. package/dist/actions/create-ticket.d.mts.map +1 -0
  92. package/dist/actions/create-ticket.mjs +65 -0
  93. package/dist/actions/create-ticket.mjs.map +1 -0
  94. package/dist/actions/delete-contact.cjs +16 -0
  95. package/dist/actions/delete-contact.cjs.map +1 -0
  96. package/dist/actions/delete-contact.d.cts +9 -0
  97. package/dist/actions/delete-contact.d.cts.map +1 -0
  98. package/dist/actions/delete-contact.d.mts +9 -0
  99. package/dist/actions/delete-contact.d.mts.map +1 -0
  100. package/dist/actions/delete-contact.mjs +13 -0
  101. package/dist/actions/delete-contact.mjs.map +1 -0
  102. package/dist/actions/delete-custom-field.cjs +16 -0
  103. package/dist/actions/delete-custom-field.cjs.map +1 -0
  104. package/dist/actions/delete-custom-field.d.cts +9 -0
  105. package/dist/actions/delete-custom-field.d.cts.map +1 -0
  106. package/dist/actions/delete-custom-field.d.mts +9 -0
  107. package/dist/actions/delete-custom-field.d.mts.map +1 -0
  108. package/dist/actions/delete-custom-field.mjs +13 -0
  109. package/dist/actions/delete-custom-field.mjs.map +1 -0
  110. package/dist/actions/delete-list.cjs +16 -0
  111. package/dist/actions/delete-list.cjs.map +1 -0
  112. package/dist/actions/delete-list.d.cts +9 -0
  113. package/dist/actions/delete-list.d.cts.map +1 -0
  114. package/dist/actions/delete-list.d.mts +9 -0
  115. package/dist/actions/delete-list.d.mts.map +1 -0
  116. package/dist/actions/delete-list.mjs +13 -0
  117. package/dist/actions/delete-list.mjs.map +1 -0
  118. package/dist/actions/delete-media.cjs +16 -0
  119. package/dist/actions/delete-media.cjs.map +1 -0
  120. package/dist/actions/delete-media.d.cts +9 -0
  121. package/dist/actions/delete-media.d.cts.map +1 -0
  122. package/dist/actions/delete-media.d.mts +9 -0
  123. package/dist/actions/delete-media.d.mts.map +1 -0
  124. package/dist/actions/delete-media.mjs +13 -0
  125. package/dist/actions/delete-media.mjs.map +1 -0
  126. package/dist/actions/delete-role.cjs +16 -0
  127. package/dist/actions/delete-role.cjs.map +1 -0
  128. package/dist/actions/delete-role.d.cts +9 -0
  129. package/dist/actions/delete-role.d.cts.map +1 -0
  130. package/dist/actions/delete-role.d.mts +9 -0
  131. package/dist/actions/delete-role.d.mts.map +1 -0
  132. package/dist/actions/delete-role.mjs +13 -0
  133. package/dist/actions/delete-role.mjs.map +1 -0
  134. package/dist/actions/delete-template.cjs +19 -0
  135. package/dist/actions/delete-template.cjs.map +1 -0
  136. package/dist/actions/delete-template.d.cts +9 -0
  137. package/dist/actions/delete-template.d.cts.map +1 -0
  138. package/dist/actions/delete-template.d.mts +9 -0
  139. package/dist/actions/delete-template.d.mts.map +1 -0
  140. package/dist/actions/delete-template.mjs +16 -0
  141. package/dist/actions/delete-template.mjs.map +1 -0
  142. package/dist/actions/delete-ticket.cjs +16 -0
  143. package/dist/actions/delete-ticket.cjs.map +1 -0
  144. package/dist/actions/delete-ticket.d.cts +9 -0
  145. package/dist/actions/delete-ticket.d.cts.map +1 -0
  146. package/dist/actions/delete-ticket.d.mts +9 -0
  147. package/dist/actions/delete-ticket.d.mts.map +1 -0
  148. package/dist/actions/delete-ticket.mjs +13 -0
  149. package/dist/actions/delete-ticket.mjs.map +1 -0
  150. package/dist/actions/generate-role-private-key.cjs +16 -0
  151. package/dist/actions/generate-role-private-key.cjs.map +1 -0
  152. package/dist/actions/generate-role-private-key.d.cts +9 -0
  153. package/dist/actions/generate-role-private-key.d.cts.map +1 -0
  154. package/dist/actions/generate-role-private-key.d.mts +9 -0
  155. package/dist/actions/generate-role-private-key.d.mts.map +1 -0
  156. package/dist/actions/generate-role-private-key.mjs +13 -0
  157. package/dist/actions/generate-role-private-key.mjs.map +1 -0
  158. package/dist/actions/get-account-current-report.cjs +31 -0
  159. package/dist/actions/get-account-current-report.cjs.map +1 -0
  160. package/dist/actions/get-account-current-report.d.cts +9 -0
  161. package/dist/actions/get-account-current-report.d.cts.map +1 -0
  162. package/dist/actions/get-account-current-report.d.mts +9 -0
  163. package/dist/actions/get-account-current-report.d.mts.map +1 -0
  164. package/dist/actions/get-account-current-report.mjs +28 -0
  165. package/dist/actions/get-account-current-report.mjs.map +1 -0
  166. package/dist/actions/index.cjs +115 -0
  167. package/dist/actions/index.d.cts +58 -0
  168. package/dist/actions/index.d.mts +58 -0
  169. package/dist/actions/index.mjs +58 -0
  170. package/dist/actions/list-accounts.cjs +53 -0
  171. package/dist/actions/list-accounts.cjs.map +1 -0
  172. package/dist/actions/list-accounts.d.cts +9 -0
  173. package/dist/actions/list-accounts.d.cts.map +1 -0
  174. package/dist/actions/list-accounts.d.mts +9 -0
  175. package/dist/actions/list-accounts.d.mts.map +1 -0
  176. package/dist/actions/list-accounts.mjs +52 -0
  177. package/dist/actions/list-accounts.mjs.map +1 -0
  178. package/dist/actions/list-agencies.cjs +16 -0
  179. package/dist/actions/list-agencies.cjs.map +1 -0
  180. package/dist/actions/list-agencies.d.cts +9 -0
  181. package/dist/actions/list-agencies.d.cts.map +1 -0
  182. package/dist/actions/list-agencies.d.mts +9 -0
  183. package/dist/actions/list-agencies.d.mts.map +1 -0
  184. package/dist/actions/list-agencies.mjs +13 -0
  185. package/dist/actions/list-agencies.mjs.map +1 -0
  186. package/dist/actions/list-automations.cjs +63 -0
  187. package/dist/actions/list-automations.cjs.map +1 -0
  188. package/dist/actions/list-automations.d.cts +9 -0
  189. package/dist/actions/list-automations.d.cts.map +1 -0
  190. package/dist/actions/list-automations.d.mts +9 -0
  191. package/dist/actions/list-automations.d.mts.map +1 -0
  192. package/dist/actions/list-automations.mjs +62 -0
  193. package/dist/actions/list-automations.mjs.map +1 -0
  194. package/dist/actions/list-campaigns.cjs +57 -0
  195. package/dist/actions/list-campaigns.cjs.map +1 -0
  196. package/dist/actions/list-campaigns.d.cts +9 -0
  197. package/dist/actions/list-campaigns.d.cts.map +1 -0
  198. package/dist/actions/list-campaigns.d.mts +9 -0
  199. package/dist/actions/list-campaigns.d.mts.map +1 -0
  200. package/dist/actions/list-campaigns.mjs +56 -0
  201. package/dist/actions/list-campaigns.mjs.map +1 -0
  202. package/dist/actions/list-contacts.cjs +66 -0
  203. package/dist/actions/list-contacts.cjs.map +1 -0
  204. package/dist/actions/list-contacts.d.cts +9 -0
  205. package/dist/actions/list-contacts.d.cts.map +1 -0
  206. package/dist/actions/list-contacts.d.mts +9 -0
  207. package/dist/actions/list-contacts.d.mts.map +1 -0
  208. package/dist/actions/list-contacts.mjs +65 -0
  209. package/dist/actions/list-contacts.mjs.map +1 -0
  210. package/dist/actions/list-custom-fields.cjs +27 -0
  211. package/dist/actions/list-custom-fields.cjs.map +1 -0
  212. package/dist/actions/list-custom-fields.d.cts +9 -0
  213. package/dist/actions/list-custom-fields.d.cts.map +1 -0
  214. package/dist/actions/list-custom-fields.d.mts +9 -0
  215. package/dist/actions/list-custom-fields.d.mts.map +1 -0
  216. package/dist/actions/list-custom-fields.mjs +26 -0
  217. package/dist/actions/list-custom-fields.mjs.map +1 -0
  218. package/dist/actions/list-lists.cjs +32 -0
  219. package/dist/actions/list-lists.cjs.map +1 -0
  220. package/dist/actions/list-lists.d.cts +9 -0
  221. package/dist/actions/list-lists.d.cts.map +1 -0
  222. package/dist/actions/list-lists.d.mts +9 -0
  223. package/dist/actions/list-lists.d.mts.map +1 -0
  224. package/dist/actions/list-lists.mjs +31 -0
  225. package/dist/actions/list-lists.mjs.map +1 -0
  226. package/dist/actions/list-media.cjs +34 -0
  227. package/dist/actions/list-media.cjs.map +1 -0
  228. package/dist/actions/list-media.d.cts +9 -0
  229. package/dist/actions/list-media.d.cts.map +1 -0
  230. package/dist/actions/list-media.d.mts +9 -0
  231. package/dist/actions/list-media.d.mts.map +1 -0
  232. package/dist/actions/list-media.mjs +33 -0
  233. package/dist/actions/list-media.mjs.map +1 -0
  234. package/dist/actions/list-partners.cjs +16 -0
  235. package/dist/actions/list-partners.cjs.map +1 -0
  236. package/dist/actions/list-partners.d.cts +9 -0
  237. package/dist/actions/list-partners.d.cts.map +1 -0
  238. package/dist/actions/list-partners.d.mts +9 -0
  239. package/dist/actions/list-partners.d.mts.map +1 -0
  240. package/dist/actions/list-partners.mjs +13 -0
  241. package/dist/actions/list-partners.mjs.map +1 -0
  242. package/dist/actions/list-reports.cjs +43 -0
  243. package/dist/actions/list-reports.cjs.map +1 -0
  244. package/dist/actions/list-reports.d.cts +9 -0
  245. package/dist/actions/list-reports.d.cts.map +1 -0
  246. package/dist/actions/list-reports.d.mts +9 -0
  247. package/dist/actions/list-reports.d.mts.map +1 -0
  248. package/dist/actions/list-reports.mjs +42 -0
  249. package/dist/actions/list-reports.mjs.map +1 -0
  250. package/dist/actions/list-roles.cjs +38 -0
  251. package/dist/actions/list-roles.cjs.map +1 -0
  252. package/dist/actions/list-roles.d.cts +9 -0
  253. package/dist/actions/list-roles.d.cts.map +1 -0
  254. package/dist/actions/list-roles.d.mts +9 -0
  255. package/dist/actions/list-roles.d.mts.map +1 -0
  256. package/dist/actions/list-roles.mjs +37 -0
  257. package/dist/actions/list-roles.mjs.map +1 -0
  258. package/dist/actions/list-tags.cjs +27 -0
  259. package/dist/actions/list-tags.cjs.map +1 -0
  260. package/dist/actions/list-tags.d.cts +9 -0
  261. package/dist/actions/list-tags.d.cts.map +1 -0
  262. package/dist/actions/list-tags.d.mts +9 -0
  263. package/dist/actions/list-tags.d.mts.map +1 -0
  264. package/dist/actions/list-tags.mjs +26 -0
  265. package/dist/actions/list-tags.mjs.map +1 -0
  266. package/dist/actions/list-templates.cjs +57 -0
  267. package/dist/actions/list-templates.cjs.map +1 -0
  268. package/dist/actions/list-templates.d.cts +9 -0
  269. package/dist/actions/list-templates.d.cts.map +1 -0
  270. package/dist/actions/list-templates.d.mts +9 -0
  271. package/dist/actions/list-templates.d.mts.map +1 -0
  272. package/dist/actions/list-templates.mjs +56 -0
  273. package/dist/actions/list-templates.mjs.map +1 -0
  274. package/dist/actions/list-tickets.cjs +64 -0
  275. package/dist/actions/list-tickets.cjs.map +1 -0
  276. package/dist/actions/list-tickets.d.cts +9 -0
  277. package/dist/actions/list-tickets.d.cts.map +1 -0
  278. package/dist/actions/list-tickets.d.mts +9 -0
  279. package/dist/actions/list-tickets.d.mts.map +1 -0
  280. package/dist/actions/list-tickets.mjs +63 -0
  281. package/dist/actions/list-tickets.mjs.map +1 -0
  282. package/dist/actions/remove-all-list-contacts.cjs +16 -0
  283. package/dist/actions/remove-all-list-contacts.cjs.map +1 -0
  284. package/dist/actions/remove-all-list-contacts.d.cts +9 -0
  285. package/dist/actions/remove-all-list-contacts.d.cts.map +1 -0
  286. package/dist/actions/remove-all-list-contacts.d.mts +9 -0
  287. package/dist/actions/remove-all-list-contacts.d.mts.map +1 -0
  288. package/dist/actions/remove-all-list-contacts.mjs +13 -0
  289. package/dist/actions/remove-all-list-contacts.mjs.map +1 -0
  290. package/dist/actions/remove-contact-operator.cjs +19 -0
  291. package/dist/actions/remove-contact-operator.cjs.map +1 -0
  292. package/dist/actions/remove-contact-operator.d.cts +9 -0
  293. package/dist/actions/remove-contact-operator.d.cts.map +1 -0
  294. package/dist/actions/remove-contact-operator.d.mts +9 -0
  295. package/dist/actions/remove-contact-operator.d.mts.map +1 -0
  296. package/dist/actions/remove-contact-operator.mjs +16 -0
  297. package/dist/actions/remove-contact-operator.mjs.map +1 -0
  298. package/dist/actions/remove-list-contacts.cjs +19 -0
  299. package/dist/actions/remove-list-contacts.cjs.map +1 -0
  300. package/dist/actions/remove-list-contacts.d.cts +9 -0
  301. package/dist/actions/remove-list-contacts.d.cts.map +1 -0
  302. package/dist/actions/remove-list-contacts.d.mts +9 -0
  303. package/dist/actions/remove-list-contacts.d.mts.map +1 -0
  304. package/dist/actions/remove-list-contacts.mjs +16 -0
  305. package/dist/actions/remove-list-contacts.mjs.map +1 -0
  306. package/dist/actions/resend-invitation.cjs +19 -0
  307. package/dist/actions/resend-invitation.cjs.map +1 -0
  308. package/dist/actions/resend-invitation.d.cts +9 -0
  309. package/dist/actions/resend-invitation.d.cts.map +1 -0
  310. package/dist/actions/resend-invitation.d.mts +9 -0
  311. package/dist/actions/resend-invitation.d.mts.map +1 -0
  312. package/dist/actions/resend-invitation.mjs +16 -0
  313. package/dist/actions/resend-invitation.mjs.map +1 -0
  314. package/dist/actions/retrieve-account.cjs +44 -0
  315. package/dist/actions/retrieve-account.cjs.map +1 -0
  316. package/dist/actions/retrieve-account.d.cts +9 -0
  317. package/dist/actions/retrieve-account.d.cts.map +1 -0
  318. package/dist/actions/retrieve-account.d.mts +9 -0
  319. package/dist/actions/retrieve-account.d.mts.map +1 -0
  320. package/dist/actions/retrieve-account.mjs +41 -0
  321. package/dist/actions/retrieve-account.mjs.map +1 -0
  322. package/dist/actions/retrieve-automation.cjs +33 -0
  323. package/dist/actions/retrieve-automation.cjs.map +1 -0
  324. package/dist/actions/retrieve-automation.d.cts +9 -0
  325. package/dist/actions/retrieve-automation.d.cts.map +1 -0
  326. package/dist/actions/retrieve-automation.d.mts +9 -0
  327. package/dist/actions/retrieve-automation.d.mts.map +1 -0
  328. package/dist/actions/retrieve-automation.mjs +32 -0
  329. package/dist/actions/retrieve-automation.mjs.map +1 -0
  330. package/dist/actions/retrieve-contact.cjs +58 -0
  331. package/dist/actions/retrieve-contact.cjs.map +1 -0
  332. package/dist/actions/retrieve-contact.d.cts +9 -0
  333. package/dist/actions/retrieve-contact.d.cts.map +1 -0
  334. package/dist/actions/retrieve-contact.d.mts +9 -0
  335. package/dist/actions/retrieve-contact.d.mts.map +1 -0
  336. package/dist/actions/retrieve-contact.mjs +57 -0
  337. package/dist/actions/retrieve-contact.mjs.map +1 -0
  338. package/dist/actions/retrieve-custom-field.cjs +27 -0
  339. package/dist/actions/retrieve-custom-field.cjs.map +1 -0
  340. package/dist/actions/retrieve-custom-field.d.cts +9 -0
  341. package/dist/actions/retrieve-custom-field.d.cts.map +1 -0
  342. package/dist/actions/retrieve-custom-field.d.mts +9 -0
  343. package/dist/actions/retrieve-custom-field.d.mts.map +1 -0
  344. package/dist/actions/retrieve-custom-field.mjs +24 -0
  345. package/dist/actions/retrieve-custom-field.mjs.map +1 -0
  346. package/dist/actions/retrieve-list.cjs +22 -0
  347. package/dist/actions/retrieve-list.cjs.map +1 -0
  348. package/dist/actions/retrieve-list.d.cts +9 -0
  349. package/dist/actions/retrieve-list.d.cts.map +1 -0
  350. package/dist/actions/retrieve-list.d.mts +9 -0
  351. package/dist/actions/retrieve-list.d.mts.map +1 -0
  352. package/dist/actions/retrieve-list.mjs +19 -0
  353. package/dist/actions/retrieve-list.mjs.map +1 -0
  354. package/dist/actions/retrieve-media.cjs +25 -0
  355. package/dist/actions/retrieve-media.cjs.map +1 -0
  356. package/dist/actions/retrieve-media.d.cts +9 -0
  357. package/dist/actions/retrieve-media.d.cts.map +1 -0
  358. package/dist/actions/retrieve-media.d.mts +9 -0
  359. package/dist/actions/retrieve-media.d.mts.map +1 -0
  360. package/dist/actions/retrieve-media.mjs +22 -0
  361. package/dist/actions/retrieve-media.mjs.map +1 -0
  362. package/dist/actions/retrieve-role.cjs +32 -0
  363. package/dist/actions/retrieve-role.cjs.map +1 -0
  364. package/dist/actions/retrieve-role.d.cts +9 -0
  365. package/dist/actions/retrieve-role.d.cts.map +1 -0
  366. package/dist/actions/retrieve-role.d.mts +9 -0
  367. package/dist/actions/retrieve-role.d.mts.map +1 -0
  368. package/dist/actions/retrieve-role.mjs +31 -0
  369. package/dist/actions/retrieve-role.mjs.map +1 -0
  370. package/dist/actions/retrieve-tag.cjs +21 -0
  371. package/dist/actions/retrieve-tag.cjs.map +1 -0
  372. package/dist/actions/retrieve-tag.d.cts +9 -0
  373. package/dist/actions/retrieve-tag.d.cts.map +1 -0
  374. package/dist/actions/retrieve-tag.d.mts +9 -0
  375. package/dist/actions/retrieve-tag.d.mts.map +1 -0
  376. package/dist/actions/retrieve-tag.mjs +18 -0
  377. package/dist/actions/retrieve-tag.mjs.map +1 -0
  378. package/dist/actions/retrieve-template.cjs +50 -0
  379. package/dist/actions/retrieve-template.cjs.map +1 -0
  380. package/dist/actions/retrieve-template.d.cts +9 -0
  381. package/dist/actions/retrieve-template.d.cts.map +1 -0
  382. package/dist/actions/retrieve-template.d.mts +9 -0
  383. package/dist/actions/retrieve-template.d.mts.map +1 -0
  384. package/dist/actions/retrieve-template.mjs +49 -0
  385. package/dist/actions/retrieve-template.mjs.map +1 -0
  386. package/dist/actions/revert-template-to-draft.cjs +16 -0
  387. package/dist/actions/revert-template-to-draft.cjs.map +1 -0
  388. package/dist/actions/revert-template-to-draft.d.cts +9 -0
  389. package/dist/actions/revert-template-to-draft.d.cts.map +1 -0
  390. package/dist/actions/revert-template-to-draft.d.mts +9 -0
  391. package/dist/actions/revert-template-to-draft.d.mts.map +1 -0
  392. package/dist/actions/revert-template-to-draft.mjs +13 -0
  393. package/dist/actions/revert-template-to-draft.mjs.map +1 -0
  394. package/dist/actions/sync-contacts-bulk.cjs +44 -0
  395. package/dist/actions/sync-contacts-bulk.cjs.map +1 -0
  396. package/dist/actions/sync-contacts-bulk.d.cts +9 -0
  397. package/dist/actions/sync-contacts-bulk.d.cts.map +1 -0
  398. package/dist/actions/sync-contacts-bulk.d.mts +9 -0
  399. package/dist/actions/sync-contacts-bulk.d.mts.map +1 -0
  400. package/dist/actions/sync-contacts-bulk.mjs +43 -0
  401. package/dist/actions/sync-contacts-bulk.mjs.map +1 -0
  402. package/dist/actions/sync-list-contacts.cjs +26 -0
  403. package/dist/actions/sync-list-contacts.cjs.map +1 -0
  404. package/dist/actions/sync-list-contacts.d.cts +9 -0
  405. package/dist/actions/sync-list-contacts.d.cts.map +1 -0
  406. package/dist/actions/sync-list-contacts.d.mts +9 -0
  407. package/dist/actions/sync-list-contacts.d.mts.map +1 -0
  408. package/dist/actions/sync-list-contacts.mjs +23 -0
  409. package/dist/actions/sync-list-contacts.mjs.map +1 -0
  410. package/dist/actions/update-campaign.cjs +27 -0
  411. package/dist/actions/update-campaign.cjs.map +1 -0
  412. package/dist/actions/update-campaign.d.cts +9 -0
  413. package/dist/actions/update-campaign.d.cts.map +1 -0
  414. package/dist/actions/update-campaign.d.mts +9 -0
  415. package/dist/actions/update-campaign.d.mts.map +1 -0
  416. package/dist/actions/update-campaign.mjs +24 -0
  417. package/dist/actions/update-campaign.mjs.map +1 -0
  418. package/dist/actions/update-contact.cjs +37 -0
  419. package/dist/actions/update-contact.cjs.map +1 -0
  420. package/dist/actions/update-contact.d.cts +9 -0
  421. package/dist/actions/update-contact.d.cts.map +1 -0
  422. package/dist/actions/update-contact.d.mts +9 -0
  423. package/dist/actions/update-contact.d.mts.map +1 -0
  424. package/dist/actions/update-contact.mjs +34 -0
  425. package/dist/actions/update-contact.mjs.map +1 -0
  426. package/dist/actions/update-custom-field.cjs +30 -0
  427. package/dist/actions/update-custom-field.cjs.map +1 -0
  428. package/dist/actions/update-custom-field.d.cts +9 -0
  429. package/dist/actions/update-custom-field.d.cts.map +1 -0
  430. package/dist/actions/update-custom-field.d.mts +9 -0
  431. package/dist/actions/update-custom-field.d.mts.map +1 -0
  432. package/dist/actions/update-custom-field.mjs +27 -0
  433. package/dist/actions/update-custom-field.mjs.map +1 -0
  434. package/dist/actions/update-invitation-role.cjs +24 -0
  435. package/dist/actions/update-invitation-role.cjs.map +1 -0
  436. package/dist/actions/update-invitation-role.d.cts +9 -0
  437. package/dist/actions/update-invitation-role.d.cts.map +1 -0
  438. package/dist/actions/update-invitation-role.d.mts +9 -0
  439. package/dist/actions/update-invitation-role.d.mts.map +1 -0
  440. package/dist/actions/update-invitation-role.mjs +21 -0
  441. package/dist/actions/update-invitation-role.mjs.map +1 -0
  442. package/dist/actions/update-media.cjs +28 -0
  443. package/dist/actions/update-media.cjs.map +1 -0
  444. package/dist/actions/update-media.d.cts +9 -0
  445. package/dist/actions/update-media.d.cts.map +1 -0
  446. package/dist/actions/update-media.d.mts +9 -0
  447. package/dist/actions/update-media.d.mts.map +1 -0
  448. package/dist/actions/update-media.mjs +25 -0
  449. package/dist/actions/update-media.mjs.map +1 -0
  450. package/dist/actions/update-role.cjs +23 -0
  451. package/dist/actions/update-role.cjs.map +1 -0
  452. package/dist/actions/update-role.d.cts +9 -0
  453. package/dist/actions/update-role.d.cts.map +1 -0
  454. package/dist/actions/update-role.d.mts +9 -0
  455. package/dist/actions/update-role.d.mts.map +1 -0
  456. package/dist/actions/update-role.mjs +20 -0
  457. package/dist/actions/update-role.mjs.map +1 -0
  458. package/dist/actions/update-template.cjs +64 -0
  459. package/dist/actions/update-template.cjs.map +1 -0
  460. package/dist/actions/update-template.d.cts +9 -0
  461. package/dist/actions/update-template.d.cts.map +1 -0
  462. package/dist/actions/update-template.d.mts +9 -0
  463. package/dist/actions/update-template.d.mts.map +1 -0
  464. package/dist/actions/update-template.mjs +63 -0
  465. package/dist/actions/update-template.mjs.map +1 -0
  466. package/dist/app.cjs +9 -0
  467. package/dist/app.cjs.map +1 -0
  468. package/dist/app.d.cts +5 -0
  469. package/dist/app.d.cts.map +1 -0
  470. package/dist/app.d.mts +5 -0
  471. package/dist/app.d.mts.map +1 -0
  472. package/dist/app.mjs +10 -0
  473. package/dist/app.mjs.map +1 -0
  474. package/dist/catalog.cjs +15 -0
  475. package/dist/catalog.cjs.map +1 -0
  476. package/dist/catalog.d.cts +14 -0
  477. package/dist/catalog.d.cts.map +1 -0
  478. package/dist/catalog.d.mts +14 -0
  479. package/dist/catalog.d.mts.map +1 -0
  480. package/dist/catalog.mjs +15 -0
  481. package/dist/catalog.mjs.map +1 -0
  482. package/dist/execute.cjs +18 -0
  483. package/dist/execute.cjs.map +1 -0
  484. package/dist/execute.mjs +18 -0
  485. package/dist/execute.mjs.map +1 -0
  486. package/dist/index.cjs +120 -0
  487. package/dist/index.d.cts +60 -0
  488. package/dist/index.d.mts +60 -0
  489. package/dist/index.mjs +61 -0
  490. package/package.json +49 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-contact.mjs","names":[],"sources":["../../src/actions/update-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiUpdateContactInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the contact to update. This is the contact ID returned when creating or listing contacts\"),\n email: z.string().describe(\"Email address of the contact. Must be a valid email format\").optional(),\n phone: z.string().describe(\"Contact phone number in E.164 international format (must include country code with + prefix). Examples: '+393331234567' (Italy), '+14155552671' (USA), '+447700900123' (UK)\").optional(),\n language: z.string().describe(\"ISO 639-1 two-letter language code for the contact's preferred language. Common values: 'en' (English), 'it' (Italian), 'es' (Spanish), 'de' (German), 'pt' (Portuguese), 'fr' (French)\").optional(),\n last_name: z.string().describe(\"Last name of the contact. Supports Unicode characters and special characters like hyphens and apostrophes (e.g., 'O'Brien-Müller')\").optional(),\n first_name: z.string().describe(\"First name of the contact. Supports Unicode characters for international names (e.g., 'François', 'María', 'João')\").optional(),\n custom_fields: z.object({}).describe(\"Dictionary of custom field names and their values. Use this to store additional contact information beyond standard fields (e.g., {'company': 'Acme Corp', 'employee_id': 'EMP-12345'})\").optional(),\n});\nexport const SpokiUpdateContactOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique ID of the contact\"),\n email: z.string().describe(\"Email address of the contact\").nullable().optional(),\n phone: z.string().describe(\"Contact phone number in E.164 format\"),\n language: z.string().describe(\"Language code of the contact (e.g., 'en', 'it', 'es')\"),\n role_set: z.array(z.string()).describe(\"List of roles assigned to the contact\").nullable().optional(),\n chat_link: z.string().describe(\"Direct link to chat with this contact on Spoki platform\"),\n last_name: z.string().describe(\"Last name of the contact\").nullable().optional(),\n first_name: z.string().describe(\"First name of the contact\").nullable().optional(),\n is_blocked: z.boolean().describe(\"Whether the contact is blocked\"),\n is_restricted: z.boolean().describe(\"Whether the contact is restricted\").nullable().optional(),\n has_invalid_phone: z.boolean().describe(\"Whether the phone number is invalid\").nullable().optional(),\n is_first_message_sent: z.boolean().describe(\"Whether the first message has been sent to this contact\").nullable().optional(),\n});\n\nexport const spokiUpdateContact = action(\"SPOKI_UPDATE_CONTACT\", {\n slug: \"spoki-update-contact\",\n name: \"Update Contact\",\n description: \"Tool to update an existing contact in Spoki. Use when you need to modify contact information for a specific contact ID. Only the fields provided will be updated; other fields remain unchanged.\",\n input: SpokiUpdateContactInput,\n output: SpokiUpdateContactOutput,\n});\n"],"mappings":";;AA4BA,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA5BmD,EAAE,OAAO;EAC5D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+GAA+G;EACvI,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;EAClG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6KAA6K,CAAC,CAAC,SAAS;EACnN,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yLAAyL,CAAC,CAAC,SAAS;EAClO,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS;EAC9K,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS;EAC/J,eAAe,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yLAAyL,CAAC,CAAC,SAAS;CAC3O,CAoBS;CACP,QApBoD,EAAE,OAAO;EAC7D,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B;EACxD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;EACjE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;EACrF,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;EACxF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjF,YAAY,EAAE,QAAQ,CAAC,CAAC,SAAS,gCAAgC;EACjE,eAAe,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7F,mBAAmB,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnG,uBAAuB,EAAE,QAAQ,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7H,CAOU;AACV,CAAC"}
@@ -0,0 +1,30 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/update-custom-field.ts
4
+ const SpokiUpdateCustomFieldInput = zod.z.object({
5
+ label: zod.z.string().describe("New display label of the custom field"),
6
+ custom_field_id: zod.z.number().int().describe("Unique identifier of the custom field to update")
7
+ }).describe("Request model for updating a specific custom field.");
8
+ const SpokiUpdateCustomFieldOutput = zod.z.object({
9
+ id: zod.z.number().int().describe("Unique identifier of the custom field"),
10
+ code: zod.z.string().describe("Programmatic code used to reference the custom field"),
11
+ label: zod.z.string().describe("Human-readable label of the custom field"),
12
+ example: zod.z.string().describe("Example or default value for the custom field").nullable().optional(),
13
+ is_linked: zod.z.boolean().describe("Whether the custom field is linked/associated with contacts"),
14
+ field_type: zod.z.union([
15
+ zod.z.literal(1),
16
+ zod.z.literal(2),
17
+ zod.z.literal(3)
18
+ ]).describe("Type of the custom field: 1=TEXT, 2=DATE, 3=DATETIME")
19
+ }).describe("Response model containing details of the updated custom field.");
20
+ const spokiUpdateCustomField = require_action.action("SPOKI_UPDATE_CUSTOM_FIELD", {
21
+ slug: "spoki-update-custom-field",
22
+ name: "Update Custom Field",
23
+ description: "Tool to update a specific custom field. Use after retrieving a field to change its label.",
24
+ input: SpokiUpdateCustomFieldInput,
25
+ output: SpokiUpdateCustomFieldOutput
26
+ });
27
+ //#endregion
28
+ exports.spokiUpdateCustomField = spokiUpdateCustomField;
29
+
30
+ //# sourceMappingURL=update-custom-field.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-custom-field.cjs","names":["z","action"],"sources":["../../src/actions/update-custom-field.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiUpdateCustomFieldInput: z.ZodTypeAny = z.object({\n label: z.string().describe(\"New display label of the custom field\"),\n custom_field_id: z.number().int().describe(\"Unique identifier of the custom field to update\"),\n}).describe(\"Request model for updating a specific custom field.\");\nexport const SpokiUpdateCustomFieldOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the custom field\"),\n code: z.string().describe(\"Programmatic code used to reference the custom field\"),\n label: z.string().describe(\"Human-readable label of the custom field\"),\n example: z.string().describe(\"Example or default value for the custom field\").nullable().optional(),\n is_linked: z.boolean().describe(\"Whether the custom field is linked/associated with contacts\"),\n field_type: z.union([z.literal(1), z.literal(2), z.literal(3)]).describe(\"Type of the custom field: 1=TEXT, 2=DATE, 3=DATETIME\"),\n}).describe(\"Response model containing details of the updated custom field.\");\n\nexport const spokiUpdateCustomField = action(\"SPOKI_UPDATE_CUSTOM_FIELD\", {\n slug: \"spoki-update-custom-field\",\n name: \"Update Custom Field\",\n description: \"Tool to update a specific custom field. Use after retrieving a field to change its label.\",\n input: SpokiUpdateCustomFieldInput,\n output: SpokiUpdateCustomFieldOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAClE,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD;AAC9F,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAa,+BAA6CA,IAAAA,EAAE,OAAO;CACjE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC;CACrE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CAChF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CACrE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,6DAA6D;CAC7F,YAAYA,IAAAA,EAAE,MAAM;EAACA,IAAAA,EAAE,QAAQ,CAAC;EAAGA,IAAAA,EAAE,QAAQ,CAAC;EAAGA,IAAAA,EAAE,QAAQ,CAAC;CAAC,CAAC,CAAC,CAAC,SAAS,sDAAsD;AACjI,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAE5E,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/update-custom-field.d.ts
4
+ declare const SpokiUpdateCustomFieldInput: z.ZodTypeAny;
5
+ declare const SpokiUpdateCustomFieldOutput: z.ZodTypeAny;
6
+ declare const spokiUpdateCustomField: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { spokiUpdateCustomField };
9
+ //# sourceMappingURL=update-custom-field.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-custom-field.d.cts","names":[],"sources":["../../src/actions/update-custom-field.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAGsB;AAAA,cACrD,4BAAA,EAA8B,CAAA,CAAE,UAOgC;AAAA,cAEhE,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/update-custom-field.d.ts
4
+ declare const SpokiUpdateCustomFieldInput: z.ZodTypeAny;
5
+ declare const SpokiUpdateCustomFieldOutput: z.ZodTypeAny;
6
+ declare const spokiUpdateCustomField: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { spokiUpdateCustomField };
9
+ //# sourceMappingURL=update-custom-field.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-custom-field.d.mts","names":[],"sources":["../../src/actions/update-custom-field.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAGsB;AAAA,cACrD,4BAAA,EAA8B,CAAA,CAAE,UAOgC;AAAA,cAEhE,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,27 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const spokiUpdateCustomField = action("SPOKI_UPDATE_CUSTOM_FIELD", {
4
+ slug: "spoki-update-custom-field",
5
+ name: "Update Custom Field",
6
+ description: "Tool to update a specific custom field. Use after retrieving a field to change its label.",
7
+ input: z.object({
8
+ label: z.string().describe("New display label of the custom field"),
9
+ custom_field_id: z.number().int().describe("Unique identifier of the custom field to update")
10
+ }).describe("Request model for updating a specific custom field."),
11
+ output: z.object({
12
+ id: z.number().int().describe("Unique identifier of the custom field"),
13
+ code: z.string().describe("Programmatic code used to reference the custom field"),
14
+ label: z.string().describe("Human-readable label of the custom field"),
15
+ example: z.string().describe("Example or default value for the custom field").nullable().optional(),
16
+ is_linked: z.boolean().describe("Whether the custom field is linked/associated with contacts"),
17
+ field_type: z.union([
18
+ z.literal(1),
19
+ z.literal(2),
20
+ z.literal(3)
21
+ ]).describe("Type of the custom field: 1=TEXT, 2=DATE, 3=DATETIME")
22
+ }).describe("Response model containing details of the updated custom field.")
23
+ });
24
+ //#endregion
25
+ export { spokiUpdateCustomField };
26
+
27
+ //# sourceMappingURL=update-custom-field.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-custom-field.mjs","names":[],"sources":["../../src/actions/update-custom-field.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiUpdateCustomFieldInput: z.ZodTypeAny = z.object({\n label: z.string().describe(\"New display label of the custom field\"),\n custom_field_id: z.number().int().describe(\"Unique identifier of the custom field to update\"),\n}).describe(\"Request model for updating a specific custom field.\");\nexport const SpokiUpdateCustomFieldOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the custom field\"),\n code: z.string().describe(\"Programmatic code used to reference the custom field\"),\n label: z.string().describe(\"Human-readable label of the custom field\"),\n example: z.string().describe(\"Example or default value for the custom field\").nullable().optional(),\n is_linked: z.boolean().describe(\"Whether the custom field is linked/associated with contacts\"),\n field_type: z.union([z.literal(1), z.literal(2), z.literal(3)]).describe(\"Type of the custom field: 1=TEXT, 2=DATE, 3=DATETIME\"),\n}).describe(\"Response model containing details of the updated custom field.\");\n\nexport const spokiUpdateCustomField = action(\"SPOKI_UPDATE_CUSTOM_FIELD\", {\n slug: \"spoki-update-custom-field\",\n name: \"Update Custom Field\",\n description: \"Tool to update a specific custom field. Use after retrieving a field to change its label.\",\n input: SpokiUpdateCustomFieldInput,\n output: SpokiUpdateCustomFieldOutput,\n});\n"],"mappings":";;AAiBA,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjBuD,EAAE,OAAO;EAChE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;EAClE,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD;CAC9F,CAAC,CAAC,CAAC,SAAS,qDAcH;CACP,QAdwD,EAAE,OAAO;EACjE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC;EACrE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;EAChF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;EACrE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClG,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,6DAA6D;EAC7F,YAAY,EAAE,MAAM;GAAC,EAAE,QAAQ,CAAC;GAAG,EAAE,QAAQ,CAAC;GAAG,EAAE,QAAQ,CAAC;EAAC,CAAC,CAAC,CAAC,SAAS,sDAAsD;CACjI,CAAC,CAAC,CAAC,SAAS,gEAOF;AACV,CAAC"}
@@ -0,0 +1,24 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/update-invitation-role.ts
4
+ const SpokiUpdateInvitationRoleInput = zod.z.object({
5
+ id: zod.z.string().describe("The invitation ID to update the role for"),
6
+ role: zod.z.string().describe("New role to assign to the invitation. Common roles include 'Administrator', 'Chat Operator', 'Admin', 'Agent', etc.")
7
+ }).describe("Request parameters for updating an invitation role.");
8
+ const SpokiUpdateInvitationRoleOutput = zod.z.object({
9
+ id: zod.z.number().int().describe("The invitation ID").nullable().optional(),
10
+ role: zod.z.string().describe("The updated role for the invitation").nullable().optional(),
11
+ message: zod.z.string().describe("Message from the API about the update operation").nullable().optional(),
12
+ success: zod.z.boolean().describe("Indicates whether the role update was successful").nullable().optional()
13
+ }).describe("Response from updating an invitation role.");
14
+ const spokiUpdateInvitationRole = require_action.action("SPOKI_UPDATE_INVITATION_ROLE", {
15
+ slug: "spoki-update-invitation-role",
16
+ name: "Update Invitation Role",
17
+ description: "Tool to update the role of a pending invitation. Use when you need to change the role assigned to an existing invitation. Rate limit: 5 requests per minute.",
18
+ input: SpokiUpdateInvitationRoleInput,
19
+ output: SpokiUpdateInvitationRoleOutput
20
+ });
21
+ //#endregion
22
+ exports.spokiUpdateInvitationRole = spokiUpdateInvitationRole;
23
+
24
+ //# sourceMappingURL=update-invitation-role.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-invitation-role.cjs","names":["z","action"],"sources":["../../src/actions/update-invitation-role.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiUpdateInvitationRoleInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The invitation ID to update the role for\"),\n role: z.string().describe(\"New role to assign to the invitation. Common roles include 'Administrator', 'Chat Operator', 'Admin', 'Agent', etc.\"),\n}).describe(\"Request parameters for updating an invitation role.\");\nexport const SpokiUpdateInvitationRoleOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"The invitation ID\").nullable().optional(),\n role: z.string().describe(\"The updated role for the invitation\").nullable().optional(),\n message: z.string().describe(\"Message from the API about the update operation\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the role update was successful\").nullable().optional(),\n}).describe(\"Response from updating an invitation role.\");\n\nexport const spokiUpdateInvitationRole = action(\"SPOKI_UPDATE_INVITATION_ROLE\", {\n slug: \"spoki-update-invitation-role\",\n name: \"Update Invitation Role\",\n description: \"Tool to update the role of a pending invitation. Use when you need to change the role assigned to an existing invitation. Rate limit: 5 requests per minute.\",\n input: SpokiUpdateInvitationRoleInput,\n output: SpokiUpdateInvitationRoleOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAA+CA,IAAAA,EAAE,OAAO;CACnE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qHAAqH;AACjJ,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAa,kCAAgDA,IAAAA,EAAE,OAAO;CACpE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxG,CAAC,CAAC,CAAC,SAAS,4CAA4C;AAExD,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/update-invitation-role.d.ts
4
+ declare const SpokiUpdateInvitationRoleInput: z.ZodTypeAny;
5
+ declare const SpokiUpdateInvitationRoleOutput: z.ZodTypeAny;
6
+ declare const spokiUpdateInvitationRole: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { spokiUpdateInvitationRole };
9
+ //# sourceMappingURL=update-invitation-role.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-invitation-role.d.cts","names":[],"sources":["../../src/actions/update-invitation-role.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAGmB;AAAA,cACrD,+BAAA,EAAiC,CAAA,CAAE,UAKS;AAAA,cAE5C,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/update-invitation-role.d.ts
4
+ declare const SpokiUpdateInvitationRoleInput: z.ZodTypeAny;
5
+ declare const SpokiUpdateInvitationRoleOutput: z.ZodTypeAny;
6
+ declare const spokiUpdateInvitationRole: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { spokiUpdateInvitationRole };
9
+ //# sourceMappingURL=update-invitation-role.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-invitation-role.d.mts","names":[],"sources":["../../src/actions/update-invitation-role.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAGmB;AAAA,cACrD,+BAAA,EAAiC,CAAA,CAAE,UAKS;AAAA,cAE5C,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,21 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const spokiUpdateInvitationRole = action("SPOKI_UPDATE_INVITATION_ROLE", {
4
+ slug: "spoki-update-invitation-role",
5
+ name: "Update Invitation Role",
6
+ description: "Tool to update the role of a pending invitation. Use when you need to change the role assigned to an existing invitation. Rate limit: 5 requests per minute.",
7
+ input: z.object({
8
+ id: z.string().describe("The invitation ID to update the role for"),
9
+ role: z.string().describe("New role to assign to the invitation. Common roles include 'Administrator', 'Chat Operator', 'Admin', 'Agent', etc.")
10
+ }).describe("Request parameters for updating an invitation role."),
11
+ output: z.object({
12
+ id: z.number().int().describe("The invitation ID").nullable().optional(),
13
+ role: z.string().describe("The updated role for the invitation").nullable().optional(),
14
+ message: z.string().describe("Message from the API about the update operation").nullable().optional(),
15
+ success: z.boolean().describe("Indicates whether the role update was successful").nullable().optional()
16
+ }).describe("Response from updating an invitation role.")
17
+ });
18
+ //#endregion
19
+ export { spokiUpdateInvitationRole };
20
+
21
+ //# sourceMappingURL=update-invitation-role.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-invitation-role.mjs","names":[],"sources":["../../src/actions/update-invitation-role.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiUpdateInvitationRoleInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The invitation ID to update the role for\"),\n role: z.string().describe(\"New role to assign to the invitation. Common roles include 'Administrator', 'Chat Operator', 'Admin', 'Agent', etc.\"),\n}).describe(\"Request parameters for updating an invitation role.\");\nexport const SpokiUpdateInvitationRoleOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"The invitation ID\").nullable().optional(),\n role: z.string().describe(\"The updated role for the invitation\").nullable().optional(),\n message: z.string().describe(\"Message from the API about the update operation\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the role update was successful\").nullable().optional(),\n}).describe(\"Response from updating an invitation role.\");\n\nexport const spokiUpdateInvitationRole = action(\"SPOKI_UPDATE_INVITATION_ROLE\", {\n slug: \"spoki-update-invitation-role\",\n name: \"Update Invitation Role\",\n description: \"Tool to update the role of a pending invitation. Use when you need to change the role assigned to an existing invitation. Rate limit: 5 requests per minute.\",\n input: SpokiUpdateInvitationRoleInput,\n output: SpokiUpdateInvitationRoleOutput,\n});\n"],"mappings":";;AAeA,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAf0D,EAAE,OAAO;EACnE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;EAClE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qHAAqH;CACjJ,CAAC,CAAC,CAAC,SAAS,qDAYH;CACP,QAZ2D,EAAE,OAAO;EACpE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpG,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,CAAC,CAAC,CAAC,SAAS,4CAOF;AACV,CAAC"}
@@ -0,0 +1,28 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/update-media.ts
4
+ const SpokiUpdateMediaInput = zod.z.object({
5
+ id: zod.z.number().int().describe("Unique identifier of the media file to update"),
6
+ title: zod.z.string().describe("New title for the media file")
7
+ }).describe("Request model for updating a media file.");
8
+ const SpokiUpdateMediaOutput = zod.z.object({
9
+ id: zod.z.number().int().describe("Unique identifier of the media file"),
10
+ url: zod.z.string().describe("URL where the media file is accessible").nullable().optional(),
11
+ title: zod.z.string().describe("Title of the media file"),
12
+ file_name: zod.z.string().describe("Name of the media file").nullable().optional(),
13
+ file_size: zod.z.number().int().describe("Size of the file in bytes").nullable().optional(),
14
+ mime_type: zod.z.string().describe("MIME type of the media file").nullable().optional(),
15
+ created_datetime: zod.z.string().describe("Timestamp when the media was created, ISO 8601 format").nullable().optional(),
16
+ updated_datetime: zod.z.string().describe("Timestamp when the media was last updated, ISO 8601 format").nullable().optional()
17
+ }).describe("Response model containing details of the updated media file.");
18
+ const spokiUpdateMedia = require_action.action("SPOKI_UPDATE_MEDIA", {
19
+ slug: "spoki-update-media",
20
+ name: "Update Media",
21
+ description: "Tool to update an existing media file in Spoki. Use when you need to modify media file details like title. Rate limit: 120 requests per minute.",
22
+ input: SpokiUpdateMediaInput,
23
+ output: SpokiUpdateMediaOutput
24
+ });
25
+ //#endregion
26
+ exports.spokiUpdateMedia = spokiUpdateMedia;
27
+
28
+ //# sourceMappingURL=update-media.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-media.cjs","names":["z","action"],"sources":["../../src/actions/update-media.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiUpdateMediaInput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the media file to update\"),\n title: z.string().describe(\"New title for the media file\"),\n}).describe(\"Request model for updating a media file.\");\nexport const SpokiUpdateMediaOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the media file\"),\n url: z.string().describe(\"URL where the media file is accessible\").nullable().optional(),\n title: z.string().describe(\"Title of the media file\"),\n file_name: z.string().describe(\"Name of the media file\").nullable().optional(),\n file_size: z.number().int().describe(\"Size of the file in bytes\").nullable().optional(),\n mime_type: z.string().describe(\"MIME type of the media file\").nullable().optional(),\n created_datetime: z.string().describe(\"Timestamp when the media was created, ISO 8601 format\").nullable().optional(),\n updated_datetime: z.string().describe(\"Timestamp when the media was last updated, ISO 8601 format\").nullable().optional(),\n}).describe(\"Response model containing details of the updated media file.\");\n\nexport const spokiUpdateMedia = action(\"SPOKI_UPDATE_MEDIA\", {\n slug: \"spoki-update-media\",\n name: \"Update Media\",\n description: \"Tool to update an existing media file in Spoki. Use when you need to modify media file details like title. Rate limit: 120 requests per minute.\",\n input: SpokiUpdateMediaInput,\n output: SpokiUpdateMediaOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAsCA,IAAAA,EAAE,OAAO;CAC1D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C;CAC7E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;AAC3D,CAAC,CAAC,CAAC,SAAS,0CAA0C;AACtD,MAAa,yBAAuCA,IAAAA,EAAE,OAAO;CAC3D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC;CACnE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACpD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1H,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAE1E,MAAa,mBAAmBC,eAAAA,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/update-media.d.ts
4
+ declare const SpokiUpdateMediaInput: z.ZodTypeAny;
5
+ declare const SpokiUpdateMediaOutput: z.ZodTypeAny;
6
+ declare const spokiUpdateMedia: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { spokiUpdateMedia };
9
+ //# sourceMappingURL=update-media.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-media.d.cts","names":[],"sources":["../../src/actions/update-media.ts"],"mappings":";;;cAIa,qBAAA,EAAuB,CAAA,CAAE,UAGiB;AAAA,cAC1C,sBAAA,EAAwB,CAAA,CAAE,UASoC;AAAA,cAE9D,gBAAA,gCAAgB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/update-media.d.ts
4
+ declare const SpokiUpdateMediaInput: z.ZodTypeAny;
5
+ declare const SpokiUpdateMediaOutput: z.ZodTypeAny;
6
+ declare const spokiUpdateMedia: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { spokiUpdateMedia };
9
+ //# sourceMappingURL=update-media.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-media.d.mts","names":[],"sources":["../../src/actions/update-media.ts"],"mappings":";;;cAIa,qBAAA,EAAuB,CAAA,CAAE,UAGiB;AAAA,cAC1C,sBAAA,EAAwB,CAAA,CAAE,UASoC;AAAA,cAE9D,gBAAA,gCAAgB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,25 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const spokiUpdateMedia = action("SPOKI_UPDATE_MEDIA", {
4
+ slug: "spoki-update-media",
5
+ name: "Update Media",
6
+ description: "Tool to update an existing media file in Spoki. Use when you need to modify media file details like title. Rate limit: 120 requests per minute.",
7
+ input: z.object({
8
+ id: z.number().int().describe("Unique identifier of the media file to update"),
9
+ title: z.string().describe("New title for the media file")
10
+ }).describe("Request model for updating a media file."),
11
+ output: z.object({
12
+ id: z.number().int().describe("Unique identifier of the media file"),
13
+ url: z.string().describe("URL where the media file is accessible").nullable().optional(),
14
+ title: z.string().describe("Title of the media file"),
15
+ file_name: z.string().describe("Name of the media file").nullable().optional(),
16
+ file_size: z.number().int().describe("Size of the file in bytes").nullable().optional(),
17
+ mime_type: z.string().describe("MIME type of the media file").nullable().optional(),
18
+ created_datetime: z.string().describe("Timestamp when the media was created, ISO 8601 format").nullable().optional(),
19
+ updated_datetime: z.string().describe("Timestamp when the media was last updated, ISO 8601 format").nullable().optional()
20
+ }).describe("Response model containing details of the updated media file.")
21
+ });
22
+ //#endregion
23
+ export { spokiUpdateMedia };
24
+
25
+ //# sourceMappingURL=update-media.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-media.mjs","names":[],"sources":["../../src/actions/update-media.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiUpdateMediaInput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the media file to update\"),\n title: z.string().describe(\"New title for the media file\"),\n}).describe(\"Request model for updating a media file.\");\nexport const SpokiUpdateMediaOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the media file\"),\n url: z.string().describe(\"URL where the media file is accessible\").nullable().optional(),\n title: z.string().describe(\"Title of the media file\"),\n file_name: z.string().describe(\"Name of the media file\").nullable().optional(),\n file_size: z.number().int().describe(\"Size of the file in bytes\").nullable().optional(),\n mime_type: z.string().describe(\"MIME type of the media file\").nullable().optional(),\n created_datetime: z.string().describe(\"Timestamp when the media was created, ISO 8601 format\").nullable().optional(),\n updated_datetime: z.string().describe(\"Timestamp when the media was last updated, ISO 8601 format\").nullable().optional(),\n}).describe(\"Response model containing details of the updated media file.\");\n\nexport const spokiUpdateMedia = action(\"SPOKI_UPDATE_MEDIA\", {\n slug: \"spoki-update-media\",\n name: \"Update Media\",\n description: \"Tool to update an existing media file in Spoki. Use when you need to modify media file details like title. Rate limit: 120 requests per minute.\",\n input: SpokiUpdateMediaInput,\n output: SpokiUpdateMediaOutput,\n});\n"],"mappings":";;AAmBA,MAAa,mBAAmB,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnBiD,EAAE,OAAO;EAC1D,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C;EAC7E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CAC3D,CAAC,CAAC,CAAC,SAAS,0CAgBH;CACP,QAhBkD,EAAE,OAAO;EAC3D,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC;EACnE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;EACpD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7E,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClF,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnH,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1H,CAAC,CAAC,CAAC,SAAS,8DAOF;AACV,CAAC"}
@@ -0,0 +1,23 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/update-role.ts
4
+ const SpokiUpdateRoleInput = zod.z.object({
5
+ id: zod.z.string().describe("The role ID to update"),
6
+ role: zod.z.string().describe("New role name to assign to the user")
7
+ }).describe("Request parameters for updating a user's role. Provide the role ID and the new role name.");
8
+ const SpokiUpdateRoleOutput = zod.z.object({
9
+ id: zod.z.number().int().describe("Unique identifier of the role"),
10
+ name: zod.z.string().describe("Name of the role"),
11
+ permission_set: zod.z.array(zod.z.string()).describe("List of permissions assigned to this role").nullable().optional()
12
+ }).describe("Response containing details of the updated role.");
13
+ const spokiUpdateRole = require_action.action("SPOKI_UPDATE_ROLE", {
14
+ slug: "spoki-update-role",
15
+ name: "Update Role",
16
+ description: "Tool to update a user's role. Use when you need to change a user's role assignment. Rate limit: 10 requests per minute.",
17
+ input: SpokiUpdateRoleInput,
18
+ output: SpokiUpdateRoleOutput
19
+ });
20
+ //#endregion
21
+ exports.spokiUpdateRole = spokiUpdateRole;
22
+
23
+ //# sourceMappingURL=update-role.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-role.cjs","names":["z","action"],"sources":["../../src/actions/update-role.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiUpdateRoleInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The role ID to update\"),\n role: z.string().describe(\"New role name to assign to the user\"),\n}).describe(\"Request parameters for updating a user's role. Provide the role ID and the new role name.\");\nexport const SpokiUpdateRoleOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the role\"),\n name: z.string().describe(\"Name of the role\"),\n permission_set: z.array(z.string()).describe(\"List of permissions assigned to this role\").nullable().optional(),\n}).describe(\"Response containing details of the updated role.\");\n\nexport const spokiUpdateRole = action(\"SPOKI_UPDATE_ROLE\", {\n slug: \"spoki-update-role\",\n name: \"Update Role\",\n description: \"Tool to update a user's role. Use when you need to change a user's role assignment. Rate limit: 10 requests per minute.\",\n input: SpokiUpdateRoleInput,\n output: SpokiUpdateRoleOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAqCA,IAAAA,EAAE,OAAO;CACzD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CAC/C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;AACjE,CAAC,CAAC,CAAC,SAAS,2FAA2F;AACvG,MAAa,wBAAsCA,IAAAA,EAAE,OAAO;CAC1D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;CAC5C,gBAAgBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAE9D,MAAa,kBAAkBC,eAAAA,OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/update-role.d.ts
4
+ declare const SpokiUpdateRoleInput: z.ZodTypeAny;
5
+ declare const SpokiUpdateRoleOutput: z.ZodTypeAny;
6
+ declare const spokiUpdateRole: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { spokiUpdateRole };
9
+ //# sourceMappingURL=update-role.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-role.d.cts","names":[],"sources":["../../src/actions/update-role.ts"],"mappings":";;;cAIa,oBAAA,EAAsB,CAAA,CAAE,UAGmE;AAAA,cAC3F,qBAAA,EAAuB,CAAA,CAAE,UAIyB;AAAA,cAElD,eAAA,gCAAe,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/update-role.d.ts
4
+ declare const SpokiUpdateRoleInput: z.ZodTypeAny;
5
+ declare const SpokiUpdateRoleOutput: z.ZodTypeAny;
6
+ declare const spokiUpdateRole: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { spokiUpdateRole };
9
+ //# sourceMappingURL=update-role.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-role.d.mts","names":[],"sources":["../../src/actions/update-role.ts"],"mappings":";;;cAIa,oBAAA,EAAsB,CAAA,CAAE,UAGmE;AAAA,cAC3F,qBAAA,EAAuB,CAAA,CAAE,UAIyB;AAAA,cAElD,eAAA,gCAAe,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,20 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const spokiUpdateRole = action("SPOKI_UPDATE_ROLE", {
4
+ slug: "spoki-update-role",
5
+ name: "Update Role",
6
+ description: "Tool to update a user's role. Use when you need to change a user's role assignment. Rate limit: 10 requests per minute.",
7
+ input: z.object({
8
+ id: z.string().describe("The role ID to update"),
9
+ role: z.string().describe("New role name to assign to the user")
10
+ }).describe("Request parameters for updating a user's role. Provide the role ID and the new role name."),
11
+ output: z.object({
12
+ id: z.number().int().describe("Unique identifier of the role"),
13
+ name: z.string().describe("Name of the role"),
14
+ permission_set: z.array(z.string()).describe("List of permissions assigned to this role").nullable().optional()
15
+ }).describe("Response containing details of the updated role.")
16
+ });
17
+ //#endregion
18
+ export { spokiUpdateRole };
19
+
20
+ //# sourceMappingURL=update-role.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-role.mjs","names":[],"sources":["../../src/actions/update-role.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiUpdateRoleInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The role ID to update\"),\n role: z.string().describe(\"New role name to assign to the user\"),\n}).describe(\"Request parameters for updating a user's role. Provide the role ID and the new role name.\");\nexport const SpokiUpdateRoleOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the role\"),\n name: z.string().describe(\"Name of the role\"),\n permission_set: z.array(z.string()).describe(\"List of permissions assigned to this role\").nullable().optional(),\n}).describe(\"Response containing details of the updated role.\");\n\nexport const spokiUpdateRole = action(\"SPOKI_UPDATE_ROLE\", {\n slug: \"spoki-update-role\",\n name: \"Update Role\",\n description: \"Tool to update a user's role. Use when you need to change a user's role assignment. Rate limit: 10 requests per minute.\",\n input: SpokiUpdateRoleInput,\n output: SpokiUpdateRoleOutput,\n});\n"],"mappings":";;AAcA,MAAa,kBAAkB,OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdgD,EAAE,OAAO;EACzD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;EAC/C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CACjE,CAAC,CAAC,CAAC,SAAS,2FAWH;CACP,QAXiD,EAAE,OAAO;EAC1D,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B;EAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;EAC5C,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,CAAC,CAAC,CAAC,SAAS,kDAOF;AACV,CAAC"}
@@ -0,0 +1,64 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/update-template.ts
4
+ const SpokiUpdateTemplateInput = zod.z.object({
5
+ id: zod.z.number().int().describe("Unique identifier of the template to update"),
6
+ name: zod.z.string().describe("New name for the template").optional(),
7
+ category: zod.z.string().describe("Template category (e.g., 'ACCOUNT_UPDATE', 'MARKETING', 'UTILITY')").optional(),
8
+ subcategory: zod.z.string().describe("Template subcategory for further classification").optional(),
9
+ templatelocalization_set: zod.z.array(zod.z.object({
10
+ body: zod.z.object({
11
+ text: zod.z.string().describe("Text content of the component").optional(),
12
+ format: zod.z.string().describe("Format of the component, e.g., 'text'").optional(),
13
+ component_type: zod.z.string().describe("Type of the component, e.g., 'body', 'header', 'footer'").optional()
14
+ }).describe("Component for template parts such as header, body, footer.").optional(),
15
+ footer: zod.z.object({
16
+ text: zod.z.string().describe("Text content of the component").optional(),
17
+ format: zod.z.string().describe("Format of the component, e.g., 'text'").optional(),
18
+ component_type: zod.z.string().describe("Type of the component, e.g., 'body', 'header', 'footer'").optional()
19
+ }).describe("Component for template parts such as header, body, footer.").optional(),
20
+ header: zod.z.object({
21
+ text: zod.z.string().describe("Text content of the component").optional(),
22
+ format: zod.z.string().describe("Format of the component, e.g., 'text'").optional(),
23
+ component_type: zod.z.string().describe("Type of the component, e.g., 'body', 'header', 'footer'").optional()
24
+ }).describe("Component for template parts such as header, body, footer.").optional(),
25
+ status: zod.z.string().describe("Approval status of this localization").optional(),
26
+ language: zod.z.string().describe("Language code of this localization, e.g., 'it', 'en'").optional(),
27
+ button_set: zod.z.array(zod.z.object({
28
+ url: zod.z.string().describe("URL for link button, if applicable").optional(),
29
+ text: zod.z.string().describe("Text displayed on the button").optional(),
30
+ order: zod.z.number().int().describe("Order index of the button").optional(),
31
+ button_type: zod.z.string().describe("Type of button, e.g., 'quick_reply'").optional(),
32
+ phone_number: zod.z.string().describe("Phone number for call button, if applicable").optional()
33
+ }).describe("Button definition within a template localization.")).describe("List of buttons defined for this localization").optional()
34
+ }).describe("Localization details for updating a template.")).describe("Array of localizations to update for this template").optional()
35
+ }).describe("Request model for updating an existing WhatsApp template.");
36
+ const SpokiUpdateTemplate_TemplateLocalizationResponseSchema = zod.z.object({
37
+ body: zod.z.object({}).describe("Body component of the template").nullable().optional(),
38
+ footer: zod.z.object({}).describe("Footer component of the template").nullable().optional(),
39
+ header: zod.z.object({}).describe("Header component of the template").nullable().optional(),
40
+ status: zod.z.string().describe("Approval status of this localization"),
41
+ language: zod.z.string().describe("Language code of this localization"),
42
+ button_set: zod.z.array(zod.z.object({})).describe("List of buttons defined for this localization").nullable().optional(),
43
+ rejection_reason: zod.z.string().describe("Reason for rejection, if any").nullable().optional()
44
+ }).describe("Localization details in the response.");
45
+ const SpokiUpdateTemplateOutput = zod.z.object({
46
+ id: zod.z.number().int().describe("Template unique identifier"),
47
+ name: zod.z.string().describe("Template name"),
48
+ category: zod.z.string().describe("Template category"),
49
+ is_approved: zod.z.boolean().describe("Whether the template is approved").nullable().optional(),
50
+ is_favorite: zod.z.boolean().describe("Whether the template is marked as favorite").nullable().optional(),
51
+ customfield_set: zod.z.array(zod.z.string()).describe("List of dynamic field codes used in the template").nullable().optional(),
52
+ templatelocalization_set: zod.z.array(SpokiUpdateTemplate_TemplateLocalizationResponseSchema).describe("Localizations available for this template").nullable().optional()
53
+ }).describe("Response model containing details of the updated template.");
54
+ const spokiUpdateTemplate = require_action.action("SPOKI_UPDATE_TEMPLATE", {
55
+ slug: "spoki-update-template",
56
+ name: "Update Template",
57
+ description: "Tool to update an existing WhatsApp template in Spoki. Use when you need to modify template name, category, subcategory, or localization details. Rate limit: 10 requests per minute.",
58
+ input: SpokiUpdateTemplateInput,
59
+ output: SpokiUpdateTemplateOutput
60
+ });
61
+ //#endregion
62
+ exports.spokiUpdateTemplate = spokiUpdateTemplate;
63
+
64
+ //# sourceMappingURL=update-template.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-template.cjs","names":["z","action"],"sources":["../../src/actions/update-template.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiUpdateTemplateInput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the template to update\"),\n name: z.string().describe(\"New name for the template\").optional(),\n category: z.string().describe(\"Template category (e.g., 'ACCOUNT_UPDATE', 'MARKETING', 'UTILITY')\").optional(),\n subcategory: z.string().describe(\"Template subcategory for further classification\").optional(),\n templatelocalization_set: z.array(z.object({\n body: z.object({\n text: z.string().describe(\"Text content of the component\").optional(),\n format: z.string().describe(\"Format of the component, e.g., 'text'\").optional(),\n component_type: z.string().describe(\"Type of the component, e.g., 'body', 'header', 'footer'\").optional(),\n}).describe(\"Component for template parts such as header, body, footer.\").optional(),\n footer: z.object({\n text: z.string().describe(\"Text content of the component\").optional(),\n format: z.string().describe(\"Format of the component, e.g., 'text'\").optional(),\n component_type: z.string().describe(\"Type of the component, e.g., 'body', 'header', 'footer'\").optional(),\n}).describe(\"Component for template parts such as header, body, footer.\").optional(),\n header: z.object({\n text: z.string().describe(\"Text content of the component\").optional(),\n format: z.string().describe(\"Format of the component, e.g., 'text'\").optional(),\n component_type: z.string().describe(\"Type of the component, e.g., 'body', 'header', 'footer'\").optional(),\n}).describe(\"Component for template parts such as header, body, footer.\").optional(),\n status: z.string().describe(\"Approval status of this localization\").optional(),\n language: z.string().describe(\"Language code of this localization, e.g., 'it', 'en'\").optional(),\n button_set: z.array(z.object({\n url: z.string().describe(\"URL for link button, if applicable\").optional(),\n text: z.string().describe(\"Text displayed on the button\").optional(),\n order: z.number().int().describe(\"Order index of the button\").optional(),\n button_type: z.string().describe(\"Type of button, e.g., 'quick_reply'\").optional(),\n phone_number: z.string().describe(\"Phone number for call button, if applicable\").optional(),\n}).describe(\"Button definition within a template localization.\")).describe(\"List of buttons defined for this localization\").optional(),\n}).describe(\"Localization details for updating a template.\")).describe(\"Array of localizations to update for this template\").optional(),\n}).describe(\"Request model for updating an existing WhatsApp template.\");\nconst SpokiUpdateTemplate_TemplateLocalizationResponseSchema: z.ZodTypeAny = z.object({\n body: z.object({}).describe(\"Body component of the template\").nullable().optional(),\n footer: z.object({}).describe(\"Footer component of the template\").nullable().optional(),\n header: z.object({}).describe(\"Header component of the template\").nullable().optional(),\n status: z.string().describe(\"Approval status of this localization\"),\n language: z.string().describe(\"Language code of this localization\"),\n button_set: z.array(z.object({})).describe(\"List of buttons defined for this localization\").nullable().optional(),\n rejection_reason: z.string().describe(\"Reason for rejection, if any\").nullable().optional(),\n}).describe(\"Localization details in the response.\");\nexport const SpokiUpdateTemplateOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Template unique identifier\"),\n name: z.string().describe(\"Template name\"),\n category: z.string().describe(\"Template category\"),\n is_approved: z.boolean().describe(\"Whether the template is approved\").nullable().optional(),\n is_favorite: z.boolean().describe(\"Whether the template is marked as favorite\").nullable().optional(),\n customfield_set: z.array(z.string()).describe(\"List of dynamic field codes used in the template\").nullable().optional(),\n templatelocalization_set: z.array(SpokiUpdateTemplate_TemplateLocalizationResponseSchema).describe(\"Localizations available for this template\").nullable().optional(),\n}).describe(\"Response model containing details of the updated template.\");\n\nexport const spokiUpdateTemplate = action(\"SPOKI_UPDATE_TEMPLATE\", {\n slug: \"spoki-update-template\",\n name: \"Update Template\",\n description: \"Tool to update an existing WhatsApp template in Spoki. Use when you need to modify template name, category, subcategory, or localization details. Rate limit: 10 requests per minute.\",\n input: SpokiUpdateTemplateInput,\n output: SpokiUpdateTemplateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C;CAC3E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CAC7G,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC7F,0BAA0BA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC3C,MAAMA,IAAAA,EAAE,OAAO;GACf,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;GACpE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;GAC9E,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;EAC1G,CAAC,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;EACjF,QAAQA,IAAAA,EAAE,OAAO;GACjB,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;GACpE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;GAC9E,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;EAC1G,CAAC,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;EACjF,QAAQA,IAAAA,EAAE,OAAO;GACjB,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;GACpE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;GAC9E,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;EAC1G,CAAC,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;EACjF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EAC7E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;EAC/F,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;GAC7B,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;GACxE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;GACnE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;GACvE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;GACjF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EAC5F,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACrI,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;AACtI,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,yDAAuEA,IAAAA,EAAE,OAAO;CACpF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CAClE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CAClE,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe;CACzC,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB;CACjD,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,iBAAiBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,0BAA0BA,IAAAA,EAAE,MAAM,sDAAsD,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtK,CAAC,CAAC,CAAC,SAAS,4DAA4D;AAExE,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/update-template.d.ts
4
+ declare const SpokiUpdateTemplateInput: z.ZodTypeAny;
5
+ declare const SpokiUpdateTemplateOutput: z.ZodTypeAny;
6
+ declare const spokiUpdateTemplate: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { spokiUpdateTemplate };
9
+ //# sourceMappingURL=update-template.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-template.d.cts","names":[],"sources":["../../src/actions/update-template.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UA+B+B;AAAA,cAU3D,yBAAA,EAA2B,CAAA,CAAE,UAQ+B;AAAA,cAE5D,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/update-template.d.ts
4
+ declare const SpokiUpdateTemplateInput: z.ZodTypeAny;
5
+ declare const SpokiUpdateTemplateOutput: z.ZodTypeAny;
6
+ declare const spokiUpdateTemplate: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { spokiUpdateTemplate };
9
+ //# sourceMappingURL=update-template.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-template.d.mts","names":[],"sources":["../../src/actions/update-template.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UA+B+B;AAAA,cAU3D,yBAAA,EAA2B,CAAA,CAAE,UAQ+B;AAAA,cAE5D,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,63 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/update-template.ts
4
+ const SpokiUpdateTemplateInput = z.object({
5
+ id: z.number().int().describe("Unique identifier of the template to update"),
6
+ name: z.string().describe("New name for the template").optional(),
7
+ category: z.string().describe("Template category (e.g., 'ACCOUNT_UPDATE', 'MARKETING', 'UTILITY')").optional(),
8
+ subcategory: z.string().describe("Template subcategory for further classification").optional(),
9
+ templatelocalization_set: z.array(z.object({
10
+ body: z.object({
11
+ text: z.string().describe("Text content of the component").optional(),
12
+ format: z.string().describe("Format of the component, e.g., 'text'").optional(),
13
+ component_type: z.string().describe("Type of the component, e.g., 'body', 'header', 'footer'").optional()
14
+ }).describe("Component for template parts such as header, body, footer.").optional(),
15
+ footer: z.object({
16
+ text: z.string().describe("Text content of the component").optional(),
17
+ format: z.string().describe("Format of the component, e.g., 'text'").optional(),
18
+ component_type: z.string().describe("Type of the component, e.g., 'body', 'header', 'footer'").optional()
19
+ }).describe("Component for template parts such as header, body, footer.").optional(),
20
+ header: z.object({
21
+ text: z.string().describe("Text content of the component").optional(),
22
+ format: z.string().describe("Format of the component, e.g., 'text'").optional(),
23
+ component_type: z.string().describe("Type of the component, e.g., 'body', 'header', 'footer'").optional()
24
+ }).describe("Component for template parts such as header, body, footer.").optional(),
25
+ status: z.string().describe("Approval status of this localization").optional(),
26
+ language: z.string().describe("Language code of this localization, e.g., 'it', 'en'").optional(),
27
+ button_set: z.array(z.object({
28
+ url: z.string().describe("URL for link button, if applicable").optional(),
29
+ text: z.string().describe("Text displayed on the button").optional(),
30
+ order: z.number().int().describe("Order index of the button").optional(),
31
+ button_type: z.string().describe("Type of button, e.g., 'quick_reply'").optional(),
32
+ phone_number: z.string().describe("Phone number for call button, if applicable").optional()
33
+ }).describe("Button definition within a template localization.")).describe("List of buttons defined for this localization").optional()
34
+ }).describe("Localization details for updating a template.")).describe("Array of localizations to update for this template").optional()
35
+ }).describe("Request model for updating an existing WhatsApp template.");
36
+ const SpokiUpdateTemplate_TemplateLocalizationResponseSchema = z.object({
37
+ body: z.object({}).describe("Body component of the template").nullable().optional(),
38
+ footer: z.object({}).describe("Footer component of the template").nullable().optional(),
39
+ header: z.object({}).describe("Header component of the template").nullable().optional(),
40
+ status: z.string().describe("Approval status of this localization"),
41
+ language: z.string().describe("Language code of this localization"),
42
+ button_set: z.array(z.object({})).describe("List of buttons defined for this localization").nullable().optional(),
43
+ rejection_reason: z.string().describe("Reason for rejection, if any").nullable().optional()
44
+ }).describe("Localization details in the response.");
45
+ const spokiUpdateTemplate = action("SPOKI_UPDATE_TEMPLATE", {
46
+ slug: "spoki-update-template",
47
+ name: "Update Template",
48
+ description: "Tool to update an existing WhatsApp template in Spoki. Use when you need to modify template name, category, subcategory, or localization details. Rate limit: 10 requests per minute.",
49
+ input: SpokiUpdateTemplateInput,
50
+ output: z.object({
51
+ id: z.number().int().describe("Template unique identifier"),
52
+ name: z.string().describe("Template name"),
53
+ category: z.string().describe("Template category"),
54
+ is_approved: z.boolean().describe("Whether the template is approved").nullable().optional(),
55
+ is_favorite: z.boolean().describe("Whether the template is marked as favorite").nullable().optional(),
56
+ customfield_set: z.array(z.string()).describe("List of dynamic field codes used in the template").nullable().optional(),
57
+ templatelocalization_set: z.array(SpokiUpdateTemplate_TemplateLocalizationResponseSchema).describe("Localizations available for this template").nullable().optional()
58
+ }).describe("Response model containing details of the updated template.")
59
+ });
60
+ //#endregion
61
+ export { spokiUpdateTemplate };
62
+
63
+ //# sourceMappingURL=update-template.mjs.map