@keystrokehq/spoki 0.1.0 → 0.1.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 (423) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/add-contact-operator.cjs.map +1 -1
  4. package/dist/actions/add-contact-operator.d.cts +9 -3
  5. package/dist/actions/add-contact-operator.d.cts.map +1 -1
  6. package/dist/actions/add-contact-operator.d.mts +9 -3
  7. package/dist/actions/add-contact-operator.d.mts.map +1 -1
  8. package/dist/actions/add-contact-operator.mjs.map +1 -1
  9. package/dist/actions/add-service-user.cjs +3 -3
  10. package/dist/actions/add-service-user.cjs.map +1 -1
  11. package/dist/actions/add-service-user.d.cts +13 -3
  12. package/dist/actions/add-service-user.d.cts.map +1 -1
  13. package/dist/actions/add-service-user.d.mts +13 -3
  14. package/dist/actions/add-service-user.d.mts.map +1 -1
  15. package/dist/actions/add-service-user.mjs +3 -3
  16. package/dist/actions/add-service-user.mjs.map +1 -1
  17. package/dist/actions/check-role-private-key.cjs +1 -1
  18. package/dist/actions/check-role-private-key.cjs.map +1 -1
  19. package/dist/actions/check-role-private-key.d.cts +9 -3
  20. package/dist/actions/check-role-private-key.d.cts.map +1 -1
  21. package/dist/actions/check-role-private-key.d.mts +9 -3
  22. package/dist/actions/check-role-private-key.d.mts.map +1 -1
  23. package/dist/actions/check-role-private-key.mjs +1 -1
  24. package/dist/actions/check-role-private-key.mjs.map +1 -1
  25. package/dist/actions/clone-template.cjs +12 -12
  26. package/dist/actions/clone-template.cjs.map +1 -1
  27. package/dist/actions/clone-template.d.cts +48 -3
  28. package/dist/actions/clone-template.d.cts.map +1 -1
  29. package/dist/actions/clone-template.d.mts +48 -3
  30. package/dist/actions/clone-template.d.mts.map +1 -1
  31. package/dist/actions/clone-template.mjs +12 -12
  32. package/dist/actions/clone-template.mjs.map +1 -1
  33. package/dist/actions/create-account-onboarding-link.cjs +3 -3
  34. package/dist/actions/create-account-onboarding-link.cjs.map +1 -1
  35. package/dist/actions/create-account-onboarding-link.d.cts +11 -3
  36. package/dist/actions/create-account-onboarding-link.d.cts.map +1 -1
  37. package/dist/actions/create-account-onboarding-link.d.mts +11 -3
  38. package/dist/actions/create-account-onboarding-link.d.mts.map +1 -1
  39. package/dist/actions/create-account-onboarding-link.mjs +3 -3
  40. package/dist/actions/create-account-onboarding-link.mjs.map +1 -1
  41. package/dist/actions/create-custom-field.cjs +6 -6
  42. package/dist/actions/create-custom-field.cjs.map +1 -1
  43. package/dist/actions/create-custom-field.d.cts +20 -3
  44. package/dist/actions/create-custom-field.d.cts.map +1 -1
  45. package/dist/actions/create-custom-field.d.mts +20 -3
  46. package/dist/actions/create-custom-field.d.mts.map +1 -1
  47. package/dist/actions/create-custom-field.mjs +6 -6
  48. package/dist/actions/create-custom-field.mjs.map +1 -1
  49. package/dist/actions/create-list.cjs +4 -4
  50. package/dist/actions/create-list.cjs.map +1 -1
  51. package/dist/actions/create-list.d.cts +13 -3
  52. package/dist/actions/create-list.d.cts.map +1 -1
  53. package/dist/actions/create-list.d.mts +13 -3
  54. package/dist/actions/create-list.d.mts.map +1 -1
  55. package/dist/actions/create-list.mjs +4 -4
  56. package/dist/actions/create-list.mjs.map +1 -1
  57. package/dist/actions/create-media.cjs.map +1 -1
  58. package/dist/actions/create-media.d.cts +19 -3
  59. package/dist/actions/create-media.d.cts.map +1 -1
  60. package/dist/actions/create-media.d.mts +19 -3
  61. package/dist/actions/create-media.d.mts.map +1 -1
  62. package/dist/actions/create-media.mjs.map +1 -1
  63. package/dist/actions/create-or-update-contact.cjs +8 -8
  64. package/dist/actions/create-or-update-contact.cjs.map +1 -1
  65. package/dist/actions/create-or-update-contact.d.cts +30 -3
  66. package/dist/actions/create-or-update-contact.d.cts.map +1 -1
  67. package/dist/actions/create-or-update-contact.d.mts +30 -3
  68. package/dist/actions/create-or-update-contact.d.mts.map +1 -1
  69. package/dist/actions/create-or-update-contact.mjs +8 -8
  70. package/dist/actions/create-or-update-contact.mjs.map +1 -1
  71. package/dist/actions/create-template.cjs +9 -9
  72. package/dist/actions/create-template.cjs.map +1 -1
  73. package/dist/actions/create-template.d.cts +93 -3
  74. package/dist/actions/create-template.d.cts.map +1 -1
  75. package/dist/actions/create-template.d.mts +93 -3
  76. package/dist/actions/create-template.d.mts.map +1 -1
  77. package/dist/actions/create-template.mjs +9 -9
  78. package/dist/actions/create-template.mjs.map +1 -1
  79. package/dist/actions/create-ticket.cjs +21 -21
  80. package/dist/actions/create-ticket.cjs.map +1 -1
  81. package/dist/actions/create-ticket.d.cts +65 -3
  82. package/dist/actions/create-ticket.d.cts.map +1 -1
  83. package/dist/actions/create-ticket.d.mts +65 -3
  84. package/dist/actions/create-ticket.d.mts.map +1 -1
  85. package/dist/actions/create-ticket.mjs +21 -21
  86. package/dist/actions/create-ticket.mjs.map +1 -1
  87. package/dist/actions/delete-contact.cjs.map +1 -1
  88. package/dist/actions/delete-contact.d.cts +7 -3
  89. package/dist/actions/delete-contact.d.cts.map +1 -1
  90. package/dist/actions/delete-contact.d.mts +7 -3
  91. package/dist/actions/delete-contact.d.mts.map +1 -1
  92. package/dist/actions/delete-contact.mjs.map +1 -1
  93. package/dist/actions/delete-custom-field.cjs.map +1 -1
  94. package/dist/actions/delete-custom-field.d.cts +7 -3
  95. package/dist/actions/delete-custom-field.d.cts.map +1 -1
  96. package/dist/actions/delete-custom-field.d.mts +7 -3
  97. package/dist/actions/delete-custom-field.d.mts.map +1 -1
  98. package/dist/actions/delete-custom-field.mjs.map +1 -1
  99. package/dist/actions/delete-list.cjs.map +1 -1
  100. package/dist/actions/delete-list.d.cts +7 -3
  101. package/dist/actions/delete-list.d.cts.map +1 -1
  102. package/dist/actions/delete-list.d.mts +7 -3
  103. package/dist/actions/delete-list.d.mts.map +1 -1
  104. package/dist/actions/delete-list.mjs.map +1 -1
  105. package/dist/actions/delete-media.cjs.map +1 -1
  106. package/dist/actions/delete-media.d.cts +7 -3
  107. package/dist/actions/delete-media.d.cts.map +1 -1
  108. package/dist/actions/delete-media.d.mts +7 -3
  109. package/dist/actions/delete-media.d.mts.map +1 -1
  110. package/dist/actions/delete-media.mjs.map +1 -1
  111. package/dist/actions/delete-role.cjs.map +1 -1
  112. package/dist/actions/delete-role.d.cts +7 -3
  113. package/dist/actions/delete-role.d.cts.map +1 -1
  114. package/dist/actions/delete-role.d.mts +7 -3
  115. package/dist/actions/delete-role.d.mts.map +1 -1
  116. package/dist/actions/delete-role.mjs.map +1 -1
  117. package/dist/actions/delete-template.cjs.map +1 -1
  118. package/dist/actions/delete-template.d.cts +11 -3
  119. package/dist/actions/delete-template.d.cts.map +1 -1
  120. package/dist/actions/delete-template.d.mts +11 -3
  121. package/dist/actions/delete-template.d.mts.map +1 -1
  122. package/dist/actions/delete-template.mjs.map +1 -1
  123. package/dist/actions/delete-ticket.cjs.map +1 -1
  124. package/dist/actions/delete-ticket.d.cts +7 -3
  125. package/dist/actions/delete-ticket.d.cts.map +1 -1
  126. package/dist/actions/delete-ticket.d.mts +7 -3
  127. package/dist/actions/delete-ticket.d.mts.map +1 -1
  128. package/dist/actions/delete-ticket.mjs.map +1 -1
  129. package/dist/actions/generate-role-private-key.cjs +1 -1
  130. package/dist/actions/generate-role-private-key.cjs.map +1 -1
  131. package/dist/actions/generate-role-private-key.d.cts +9 -3
  132. package/dist/actions/generate-role-private-key.d.cts.map +1 -1
  133. package/dist/actions/generate-role-private-key.d.mts +9 -3
  134. package/dist/actions/generate-role-private-key.d.mts.map +1 -1
  135. package/dist/actions/generate-role-private-key.mjs +1 -1
  136. package/dist/actions/generate-role-private-key.mjs.map +1 -1
  137. package/dist/actions/get-account-current-report.cjs.map +1 -1
  138. package/dist/actions/get-account-current-report.d.cts +22 -3
  139. package/dist/actions/get-account-current-report.d.cts.map +1 -1
  140. package/dist/actions/get-account-current-report.d.mts +22 -3
  141. package/dist/actions/get-account-current-report.d.mts.map +1 -1
  142. package/dist/actions/get-account-current-report.mjs.map +1 -1
  143. package/dist/actions/list-accounts.cjs +23 -23
  144. package/dist/actions/list-accounts.cjs.map +1 -1
  145. package/dist/actions/list-accounts.d.cts +42 -3
  146. package/dist/actions/list-accounts.d.cts.map +1 -1
  147. package/dist/actions/list-accounts.d.mts +42 -3
  148. package/dist/actions/list-accounts.d.mts.map +1 -1
  149. package/dist/actions/list-accounts.mjs +23 -23
  150. package/dist/actions/list-accounts.mjs.map +1 -1
  151. package/dist/actions/list-agencies.cjs.map +1 -1
  152. package/dist/actions/list-agencies.d.cts +3 -3
  153. package/dist/actions/list-agencies.d.cts.map +1 -1
  154. package/dist/actions/list-agencies.d.mts +3 -3
  155. package/dist/actions/list-agencies.d.mts.map +1 -1
  156. package/dist/actions/list-agencies.mjs.map +1 -1
  157. package/dist/actions/list-automations.cjs +11 -11
  158. package/dist/actions/list-automations.cjs.map +1 -1
  159. package/dist/actions/list-automations.d.cts +52 -3
  160. package/dist/actions/list-automations.d.cts.map +1 -1
  161. package/dist/actions/list-automations.d.mts +52 -3
  162. package/dist/actions/list-automations.d.mts.map +1 -1
  163. package/dist/actions/list-automations.mjs +11 -11
  164. package/dist/actions/list-automations.mjs.map +1 -1
  165. package/dist/actions/list-campaigns.cjs +22 -22
  166. package/dist/actions/list-campaigns.cjs.map +1 -1
  167. package/dist/actions/list-campaigns.d.cts +46 -3
  168. package/dist/actions/list-campaigns.d.cts.map +1 -1
  169. package/dist/actions/list-campaigns.d.mts +46 -3
  170. package/dist/actions/list-campaigns.d.mts.map +1 -1
  171. package/dist/actions/list-campaigns.mjs +22 -22
  172. package/dist/actions/list-campaigns.mjs.map +1 -1
  173. package/dist/actions/list-contacts.cjs +18 -18
  174. package/dist/actions/list-contacts.cjs.map +1 -1
  175. package/dist/actions/list-contacts.d.cts +60 -3
  176. package/dist/actions/list-contacts.d.cts.map +1 -1
  177. package/dist/actions/list-contacts.d.mts +60 -3
  178. package/dist/actions/list-contacts.d.mts.map +1 -1
  179. package/dist/actions/list-contacts.mjs +18 -18
  180. package/dist/actions/list-contacts.mjs.map +1 -1
  181. package/dist/actions/list-custom-fields.cjs +5 -5
  182. package/dist/actions/list-custom-fields.cjs.map +1 -1
  183. package/dist/actions/list-custom-fields.d.cts +18 -3
  184. package/dist/actions/list-custom-fields.d.cts.map +1 -1
  185. package/dist/actions/list-custom-fields.d.mts +18 -3
  186. package/dist/actions/list-custom-fields.d.mts.map +1 -1
  187. package/dist/actions/list-custom-fields.mjs +5 -5
  188. package/dist/actions/list-custom-fields.mjs.map +1 -1
  189. package/dist/actions/list-lists.cjs +5 -5
  190. package/dist/actions/list-lists.cjs.map +1 -1
  191. package/dist/actions/list-lists.d.cts +22 -3
  192. package/dist/actions/list-lists.d.cts.map +1 -1
  193. package/dist/actions/list-lists.d.mts +22 -3
  194. package/dist/actions/list-lists.d.mts.map +1 -1
  195. package/dist/actions/list-lists.mjs +5 -5
  196. package/dist/actions/list-lists.mjs.map +1 -1
  197. package/dist/actions/list-media.cjs +7 -7
  198. package/dist/actions/list-media.cjs.map +1 -1
  199. package/dist/actions/list-media.d.cts +23 -3
  200. package/dist/actions/list-media.d.cts.map +1 -1
  201. package/dist/actions/list-media.d.mts +23 -3
  202. package/dist/actions/list-media.d.mts.map +1 -1
  203. package/dist/actions/list-media.mjs +7 -7
  204. package/dist/actions/list-media.mjs.map +1 -1
  205. package/dist/actions/list-partners.cjs.map +1 -1
  206. package/dist/actions/list-partners.d.cts +3 -3
  207. package/dist/actions/list-partners.d.cts.map +1 -1
  208. package/dist/actions/list-partners.d.mts +3 -3
  209. package/dist/actions/list-partners.d.mts.map +1 -1
  210. package/dist/actions/list-partners.mjs.map +1 -1
  211. package/dist/actions/list-reports.cjs +1 -1
  212. package/dist/actions/list-reports.cjs.map +1 -1
  213. package/dist/actions/list-reports.d.cts +35 -3
  214. package/dist/actions/list-reports.d.cts.map +1 -1
  215. package/dist/actions/list-reports.d.mts +35 -3
  216. package/dist/actions/list-reports.d.mts.map +1 -1
  217. package/dist/actions/list-reports.mjs +1 -1
  218. package/dist/actions/list-reports.mjs.map +1 -1
  219. package/dist/actions/list-roles.cjs +12 -12
  220. package/dist/actions/list-roles.cjs.map +1 -1
  221. package/dist/actions/list-roles.d.cts +23 -3
  222. package/dist/actions/list-roles.d.cts.map +1 -1
  223. package/dist/actions/list-roles.d.mts +23 -3
  224. package/dist/actions/list-roles.d.mts.map +1 -1
  225. package/dist/actions/list-roles.mjs +12 -12
  226. package/dist/actions/list-roles.mjs.map +1 -1
  227. package/dist/actions/list-tags.cjs +5 -5
  228. package/dist/actions/list-tags.cjs.map +1 -1
  229. package/dist/actions/list-tags.d.cts +13 -3
  230. package/dist/actions/list-tags.d.cts.map +1 -1
  231. package/dist/actions/list-tags.d.mts +13 -3
  232. package/dist/actions/list-tags.d.mts.map +1 -1
  233. package/dist/actions/list-tags.mjs +5 -5
  234. package/dist/actions/list-tags.mjs.map +1 -1
  235. package/dist/actions/list-templates.cjs +15 -15
  236. package/dist/actions/list-templates.cjs.map +1 -1
  237. package/dist/actions/list-templates.d.cts +51 -3
  238. package/dist/actions/list-templates.d.cts.map +1 -1
  239. package/dist/actions/list-templates.d.mts +51 -3
  240. package/dist/actions/list-templates.d.mts.map +1 -1
  241. package/dist/actions/list-templates.mjs +15 -15
  242. package/dist/actions/list-templates.mjs.map +1 -1
  243. package/dist/actions/list-tickets.cjs +22 -22
  244. package/dist/actions/list-tickets.cjs.map +1 -1
  245. package/dist/actions/list-tickets.d.cts +63 -3
  246. package/dist/actions/list-tickets.d.cts.map +1 -1
  247. package/dist/actions/list-tickets.d.mts +63 -3
  248. package/dist/actions/list-tickets.d.mts.map +1 -1
  249. package/dist/actions/list-tickets.mjs +22 -22
  250. package/dist/actions/list-tickets.mjs.map +1 -1
  251. package/dist/actions/remove-all-list-contacts.cjs.map +1 -1
  252. package/dist/actions/remove-all-list-contacts.d.cts +9 -3
  253. package/dist/actions/remove-all-list-contacts.d.cts.map +1 -1
  254. package/dist/actions/remove-all-list-contacts.d.mts +9 -3
  255. package/dist/actions/remove-all-list-contacts.d.mts.map +1 -1
  256. package/dist/actions/remove-all-list-contacts.mjs.map +1 -1
  257. package/dist/actions/remove-contact-operator.cjs.map +1 -1
  258. package/dist/actions/remove-contact-operator.d.cts +11 -3
  259. package/dist/actions/remove-contact-operator.d.cts.map +1 -1
  260. package/dist/actions/remove-contact-operator.d.mts +11 -3
  261. package/dist/actions/remove-contact-operator.d.mts.map +1 -1
  262. package/dist/actions/remove-contact-operator.mjs.map +1 -1
  263. package/dist/actions/remove-list-contacts.cjs.map +1 -1
  264. package/dist/actions/remove-list-contacts.d.cts +11 -3
  265. package/dist/actions/remove-list-contacts.d.cts.map +1 -1
  266. package/dist/actions/remove-list-contacts.d.mts +11 -3
  267. package/dist/actions/remove-list-contacts.d.mts.map +1 -1
  268. package/dist/actions/remove-list-contacts.mjs.map +1 -1
  269. package/dist/actions/resend-invitation.cjs.map +1 -1
  270. package/dist/actions/resend-invitation.d.cts +10 -3
  271. package/dist/actions/resend-invitation.d.cts.map +1 -1
  272. package/dist/actions/resend-invitation.d.mts +10 -3
  273. package/dist/actions/resend-invitation.d.mts.map +1 -1
  274. package/dist/actions/resend-invitation.mjs.map +1 -1
  275. package/dist/actions/retrieve-account.cjs +22 -22
  276. package/dist/actions/retrieve-account.cjs.map +1 -1
  277. package/dist/actions/retrieve-account.d.cts +35 -3
  278. package/dist/actions/retrieve-account.d.cts.map +1 -1
  279. package/dist/actions/retrieve-account.d.mts +35 -3
  280. package/dist/actions/retrieve-account.d.mts.map +1 -1
  281. package/dist/actions/retrieve-account.mjs +22 -22
  282. package/dist/actions/retrieve-account.mjs.map +1 -1
  283. package/dist/actions/retrieve-automation.cjs +10 -10
  284. package/dist/actions/retrieve-automation.cjs.map +1 -1
  285. package/dist/actions/retrieve-automation.d.cts +23 -3
  286. package/dist/actions/retrieve-automation.d.cts.map +1 -1
  287. package/dist/actions/retrieve-automation.d.mts +23 -3
  288. package/dist/actions/retrieve-automation.d.mts.map +1 -1
  289. package/dist/actions/retrieve-automation.mjs +10 -10
  290. package/dist/actions/retrieve-automation.mjs.map +1 -1
  291. package/dist/actions/retrieve-contact.cjs +23 -23
  292. package/dist/actions/retrieve-contact.cjs.map +1 -1
  293. package/dist/actions/retrieve-contact.d.cts +45 -3
  294. package/dist/actions/retrieve-contact.d.cts.map +1 -1
  295. package/dist/actions/retrieve-contact.d.mts +45 -3
  296. package/dist/actions/retrieve-contact.d.mts.map +1 -1
  297. package/dist/actions/retrieve-contact.mjs +23 -23
  298. package/dist/actions/retrieve-contact.mjs.map +1 -1
  299. package/dist/actions/retrieve-custom-field.cjs +5 -5
  300. package/dist/actions/retrieve-custom-field.cjs.map +1 -1
  301. package/dist/actions/retrieve-custom-field.d.cts +14 -3
  302. package/dist/actions/retrieve-custom-field.d.cts.map +1 -1
  303. package/dist/actions/retrieve-custom-field.d.mts +14 -3
  304. package/dist/actions/retrieve-custom-field.d.mts.map +1 -1
  305. package/dist/actions/retrieve-custom-field.mjs +5 -5
  306. package/dist/actions/retrieve-custom-field.mjs.map +1 -1
  307. package/dist/actions/retrieve-list.cjs +4 -4
  308. package/dist/actions/retrieve-list.cjs.map +1 -1
  309. package/dist/actions/retrieve-list.d.cts +13 -3
  310. package/dist/actions/retrieve-list.d.cts.map +1 -1
  311. package/dist/actions/retrieve-list.d.mts +13 -3
  312. package/dist/actions/retrieve-list.d.mts.map +1 -1
  313. package/dist/actions/retrieve-list.mjs +4 -4
  314. package/dist/actions/retrieve-list.mjs.map +1 -1
  315. package/dist/actions/retrieve-media.cjs.map +1 -1
  316. package/dist/actions/retrieve-media.d.cts +16 -3
  317. package/dist/actions/retrieve-media.d.cts.map +1 -1
  318. package/dist/actions/retrieve-media.d.mts +16 -3
  319. package/dist/actions/retrieve-media.d.mts.map +1 -1
  320. package/dist/actions/retrieve-media.mjs.map +1 -1
  321. package/dist/actions/retrieve-role.cjs.map +1 -1
  322. package/dist/actions/retrieve-role.d.cts +22 -3
  323. package/dist/actions/retrieve-role.d.cts.map +1 -1
  324. package/dist/actions/retrieve-role.d.mts +22 -3
  325. package/dist/actions/retrieve-role.d.mts.map +1 -1
  326. package/dist/actions/retrieve-role.mjs.map +1 -1
  327. package/dist/actions/retrieve-tag.cjs.map +1 -1
  328. package/dist/actions/retrieve-tag.d.cts +12 -3
  329. package/dist/actions/retrieve-tag.d.cts.map +1 -1
  330. package/dist/actions/retrieve-tag.d.mts +12 -3
  331. package/dist/actions/retrieve-tag.d.mts.map +1 -1
  332. package/dist/actions/retrieve-tag.mjs.map +1 -1
  333. package/dist/actions/retrieve-template.cjs +14 -14
  334. package/dist/actions/retrieve-template.cjs.map +1 -1
  335. package/dist/actions/retrieve-template.d.cts +45 -3
  336. package/dist/actions/retrieve-template.d.cts.map +1 -1
  337. package/dist/actions/retrieve-template.d.mts +45 -3
  338. package/dist/actions/retrieve-template.d.mts.map +1 -1
  339. package/dist/actions/retrieve-template.mjs +14 -14
  340. package/dist/actions/retrieve-template.mjs.map +1 -1
  341. package/dist/actions/revert-template-to-draft.cjs +1 -1
  342. package/dist/actions/revert-template-to-draft.cjs.map +1 -1
  343. package/dist/actions/revert-template-to-draft.d.cts +9 -3
  344. package/dist/actions/revert-template-to-draft.d.cts.map +1 -1
  345. package/dist/actions/revert-template-to-draft.d.mts +9 -3
  346. package/dist/actions/revert-template-to-draft.d.mts.map +1 -1
  347. package/dist/actions/revert-template-to-draft.mjs +1 -1
  348. package/dist/actions/revert-template-to-draft.mjs.map +1 -1
  349. package/dist/actions/sync-contacts-bulk.cjs +8 -8
  350. package/dist/actions/sync-contacts-bulk.cjs.map +1 -1
  351. package/dist/actions/sync-contacts-bulk.d.cts +40 -3
  352. package/dist/actions/sync-contacts-bulk.d.cts.map +1 -1
  353. package/dist/actions/sync-contacts-bulk.d.mts +40 -3
  354. package/dist/actions/sync-contacts-bulk.d.mts.map +1 -1
  355. package/dist/actions/sync-contacts-bulk.mjs +8 -8
  356. package/dist/actions/sync-contacts-bulk.mjs.map +1 -1
  357. package/dist/actions/sync-list-contacts.cjs.map +1 -1
  358. package/dist/actions/sync-list-contacts.d.cts +25 -3
  359. package/dist/actions/sync-list-contacts.d.cts.map +1 -1
  360. package/dist/actions/sync-list-contacts.d.mts +25 -3
  361. package/dist/actions/sync-list-contacts.d.mts.map +1 -1
  362. package/dist/actions/sync-list-contacts.mjs.map +1 -1
  363. package/dist/actions/update-campaign.cjs +5 -5
  364. package/dist/actions/update-campaign.cjs.map +1 -1
  365. package/dist/actions/update-campaign.d.cts +22 -3
  366. package/dist/actions/update-campaign.d.cts.map +1 -1
  367. package/dist/actions/update-campaign.d.mts +22 -3
  368. package/dist/actions/update-campaign.d.mts.map +1 -1
  369. package/dist/actions/update-campaign.mjs +5 -5
  370. package/dist/actions/update-campaign.mjs.map +1 -1
  371. package/dist/actions/update-contact.cjs +5 -5
  372. package/dist/actions/update-contact.cjs.map +1 -1
  373. package/dist/actions/update-contact.d.cts +32 -3
  374. package/dist/actions/update-contact.d.cts.map +1 -1
  375. package/dist/actions/update-contact.d.mts +32 -3
  376. package/dist/actions/update-contact.d.mts.map +1 -1
  377. package/dist/actions/update-contact.mjs +5 -5
  378. package/dist/actions/update-contact.mjs.map +1 -1
  379. package/dist/actions/update-custom-field.cjs +5 -5
  380. package/dist/actions/update-custom-field.cjs.map +1 -1
  381. package/dist/actions/update-custom-field.d.cts +16 -3
  382. package/dist/actions/update-custom-field.d.cts.map +1 -1
  383. package/dist/actions/update-custom-field.d.mts +16 -3
  384. package/dist/actions/update-custom-field.d.mts.map +1 -1
  385. package/dist/actions/update-custom-field.mjs +5 -5
  386. package/dist/actions/update-custom-field.mjs.map +1 -1
  387. package/dist/actions/update-invitation-role.cjs.map +1 -1
  388. package/dist/actions/update-invitation-role.d.cts +14 -3
  389. package/dist/actions/update-invitation-role.d.cts.map +1 -1
  390. package/dist/actions/update-invitation-role.d.mts +14 -3
  391. package/dist/actions/update-invitation-role.d.mts.map +1 -1
  392. package/dist/actions/update-invitation-role.mjs.map +1 -1
  393. package/dist/actions/update-media.cjs +2 -2
  394. package/dist/actions/update-media.cjs.map +1 -1
  395. package/dist/actions/update-media.d.cts +18 -3
  396. package/dist/actions/update-media.d.cts.map +1 -1
  397. package/dist/actions/update-media.d.mts +18 -3
  398. package/dist/actions/update-media.d.mts.map +1 -1
  399. package/dist/actions/update-media.mjs +2 -2
  400. package/dist/actions/update-media.mjs.map +1 -1
  401. package/dist/actions/update-role.cjs +2 -2
  402. package/dist/actions/update-role.cjs.map +1 -1
  403. package/dist/actions/update-role.d.cts +13 -3
  404. package/dist/actions/update-role.d.cts.map +1 -1
  405. package/dist/actions/update-role.d.mts +13 -3
  406. package/dist/actions/update-role.d.mts.map +1 -1
  407. package/dist/actions/update-role.mjs +2 -2
  408. package/dist/actions/update-role.mjs.map +1 -1
  409. package/dist/actions/update-template.cjs +5 -5
  410. package/dist/actions/update-template.cjs.map +1 -1
  411. package/dist/actions/update-template.d.cts +81 -3
  412. package/dist/actions/update-template.d.cts.map +1 -1
  413. package/dist/actions/update-template.d.mts +81 -3
  414. package/dist/actions/update-template.d.mts.map +1 -1
  415. package/dist/actions/update-template.mjs +5 -5
  416. package/dist/actions/update-template.mjs.map +1 -1
  417. package/dist/catalog.cjs +7 -1
  418. package/dist/catalog.cjs.map +1 -1
  419. package/dist/catalog.d.cts +8 -0
  420. package/dist/catalog.d.mts +8 -0
  421. package/dist/catalog.mjs +7 -1
  422. package/dist/catalog.mjs.map +1 -1
  423. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"retrieve-role.mjs","names":[],"sources":["../../src/actions/retrieve-role.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiRetrieveRoleInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"ID of the role to retrieve\"),\n}).describe(\"Request model for retrieving a specific role by ID.\");\nconst SpokiRetrieveRole_UserSummarySchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the user\").nullable().optional(),\n uid: z.string().describe(\"Unique user identifier (UID)\").nullable().optional(),\n email: z.string().describe(\"Email address of the user\").nullable().optional(),\n image: z.string().describe(\"URL of the user profile image\").nullable().optional(),\n surname: z.string().describe(\"Surname of the user\").nullable().optional(),\n firstname: z.string().describe(\"First name of the user\").nullable().optional(),\n is_service: z.boolean().describe(\"Indicates if the user is a service user\").nullable().optional(),\n}).describe(\"Represents a user associated with a role.\");\nexport const SpokiRetrieveRoleOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the role\").nullable().optional(),\n role: z.string().describe(\"Role name (e.g., Owner, Chat Operator Manager)\").nullable().optional(),\n user: SpokiRetrieveRole_UserSummarySchema.nullable().optional(),\n is_active: z.boolean().describe(\"Indicates if the role is currently active\").nullable().optional(),\n created_datetime: z.string().describe(\"Timestamp when the role was created (ISO 8601)\").nullable().optional(),\n updated_datetime: z.string().describe(\"Timestamp when the role was last updated (ISO 8601)\").nullable().optional(),\n}).describe(\"Response model containing details of a role.\");\n\nexport const spokiRetrieveRole = action(\"SPOKI_RETRIEVE_ROLE\", {\n slug: \"spoki-retrieve-role\",\n name: \"Retrieve Role\",\n description: \"Tool to retrieve details of a specific role by ID. Use when you need role information for a given role ID. Rate limit: 5 requests per minute.\",\n input: SpokiRetrieveRoleInput,\n output: SpokiRetrieveRoleOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAuC,EAAE,OAAO,EAC3D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,EACtD,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAM,sCAAoD,EAAE,OAAO;CACjE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,YAAY,EAAE,QAAQ,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAUvD,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdmD,EAAE,OAAO;EAC5D,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChG,MAAM,oCAAoC,SAAS,CAAC,CAAC,SAAS;EAC9D,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjG,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5G,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,CAAC,CAAC,CAAC,SAAS,8CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"retrieve-role.mjs","names":[],"sources":["../../src/actions/retrieve-role.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiRetrieveRoleInput = z.object({\n id: z.string().describe(\"ID of the role to retrieve\"),\n}).describe(\"Request model for retrieving a specific role by ID.\");\nconst SpokiRetrieveRole_UserSummarySchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the user\").nullable().optional(),\n uid: z.string().describe(\"Unique user identifier (UID)\").nullable().optional(),\n email: z.string().describe(\"Email address of the user\").nullable().optional(),\n image: z.string().describe(\"URL of the user profile image\").nullable().optional(),\n surname: z.string().describe(\"Surname of the user\").nullable().optional(),\n firstname: z.string().describe(\"First name of the user\").nullable().optional(),\n is_service: z.boolean().describe(\"Indicates if the user is a service user\").nullable().optional(),\n}).describe(\"Represents a user associated with a role.\");\nexport const SpokiRetrieveRoleOutput = z.object({\n id: z.number().int().describe(\"Unique identifier of the role\").nullable().optional(),\n role: z.string().describe(\"Role name (e.g., Owner, Chat Operator Manager)\").nullable().optional(),\n user: SpokiRetrieveRole_UserSummarySchema.nullable().optional(),\n is_active: z.boolean().describe(\"Indicates if the role is currently active\").nullable().optional(),\n created_datetime: z.string().describe(\"Timestamp when the role was created (ISO 8601)\").nullable().optional(),\n updated_datetime: z.string().describe(\"Timestamp when the role was last updated (ISO 8601)\").nullable().optional(),\n}).describe(\"Response model containing details of a role.\");\n\nexport const spokiRetrieveRole = action(\"SPOKI_RETRIEVE_ROLE\", {\n slug: \"spoki-retrieve-role\",\n name: \"Retrieve Role\",\n description: \"Tool to retrieve details of a specific role by ID. Use when you need role information for a given role ID. Rate limit: 5 requests per minute.\",\n input: SpokiRetrieveRoleInput,\n output: SpokiRetrieveRoleOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyB,EAAE,OAAO,EAC7C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,EACtD,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAM,sCAAsC,EAAE,OAAO;CACnD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,KAAK,EAAE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,"file":"retrieve-tag.cjs","names":["z","action"],"sources":["../../src/actions/retrieve-tag.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiRetrieveTagInput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"ID of the tag to retrieve\"),\n}).describe(\"Request model for retrieving a specific tag by ID.\");\nexport const SpokiRetrieveTagOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the tag\").nullable().optional(),\n name: z.string().describe(\"Name of the tag\").nullable().optional(),\n color: z.string().describe(\"Hex color code of the tag\").nullable().optional(),\n order: z.number().int().describe(\"Display order of the tag\").nullable().optional(),\n}).describe(\"Response model for details of a tag.\");\n\nexport const spokiRetrieveTag = action(\"SPOKI_RETRIEVE_TAG\", {\n slug: \"spoki-retrieve-tag\",\n name: \"Retrieve Tag\",\n description: \"Tool to retrieve details of a specific tag. Use when you need tag metadata by ID.\",\n input: SpokiRetrieveTagInput,\n output: SpokiRetrieveTagOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAsCA,IAAAA,EAAE,OAAO,EAC1D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,EAC3D,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAa,yBAAuCA,IAAAA,EAAE,OAAO;CAC3D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnF,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAElD,MAAa,mBAAmBC,eAAAA,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"retrieve-tag.cjs","names":["z","action"],"sources":["../../src/actions/retrieve-tag.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiRetrieveTagInput = z.object({\n id: z.number().int().describe(\"ID of the tag to retrieve\"),\n}).describe(\"Request model for retrieving a specific tag by ID.\");\nexport const SpokiRetrieveTagOutput = z.object({\n id: z.number().int().describe(\"Unique identifier of the tag\").nullable().optional(),\n name: z.string().describe(\"Name of the tag\").nullable().optional(),\n color: z.string().describe(\"Hex color code of the tag\").nullable().optional(),\n order: z.number().int().describe(\"Display order of the tag\").nullable().optional(),\n}).describe(\"Response model for details of a tag.\");\n\nexport const spokiRetrieveTag = action(\"SPOKI_RETRIEVE_TAG\", {\n slug: \"spoki-retrieve-tag\",\n name: \"Retrieve Tag\",\n description: \"Tool to retrieve details of a specific tag. Use when you need tag metadata by ID.\",\n input: SpokiRetrieveTagInput,\n output: SpokiRetrieveTagOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwBA,IAAAA,EAAE,OAAO,EAC5C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,EAC3D,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnF,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAElD,MAAa,mBAAmBC,eAAAA,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,18 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/retrieve-tag.d.ts
4
- declare const SpokiRetrieveTagInput: z.ZodTypeAny;
5
- declare const SpokiRetrieveTagOutput: z.ZodTypeAny;
6
- declare const spokiRetrieveTag: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SpokiRetrieveTagInput: z.ZodObject<{
5
+ id: z.ZodNumber;
6
+ }, z.core.$strip>;
7
+ declare const SpokiRetrieveTagOutput: z.ZodObject<{
8
+ id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
9
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ order: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
12
+ }, z.core.$strip>;
13
+ declare const spokiRetrieveTag: import("@keystrokehq/action").WorkflowActionDefinition<{
14
+ id: number;
15
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
16
  //#endregion
8
17
  export { spokiRetrieveTag };
9
18
  //# sourceMappingURL=retrieve-tag.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"retrieve-tag.d.cts","names":[],"sources":["../../src/actions/retrieve-tag.ts"],"mappings":";;;cAIa,qBAAA,EAAuB,CAAA,CAAE,UAE2B;AAAA,cACpD,sBAAA,EAAwB,CAAA,CAAE,UAKY;AAAA,cAEtC,gBAAA,gCAAgB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"retrieve-tag.d.cts","names":[],"sources":["../../src/actions/retrieve-tag.ts"],"mappings":";;;cAIa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;cAGrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;cAOtB,gBAAA,gCAAgB,wBAAA"}
@@ -1,9 +1,18 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/retrieve-tag.d.ts
4
- declare const SpokiRetrieveTagInput: z.ZodTypeAny;
5
- declare const SpokiRetrieveTagOutput: z.ZodTypeAny;
6
- declare const spokiRetrieveTag: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SpokiRetrieveTagInput: z.ZodObject<{
5
+ id: z.ZodNumber;
6
+ }, z.core.$strip>;
7
+ declare const SpokiRetrieveTagOutput: z.ZodObject<{
8
+ id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
9
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ order: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
12
+ }, z.core.$strip>;
13
+ declare const spokiRetrieveTag: import("@keystrokehq/action").WorkflowActionDefinition<{
14
+ id: number;
15
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
16
  //#endregion
8
17
  export { spokiRetrieveTag };
9
18
  //# sourceMappingURL=retrieve-tag.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"retrieve-tag.d.mts","names":[],"sources":["../../src/actions/retrieve-tag.ts"],"mappings":";;;cAIa,qBAAA,EAAuB,CAAA,CAAE,UAE2B;AAAA,cACpD,sBAAA,EAAwB,CAAA,CAAE,UAKY;AAAA,cAEtC,gBAAA,gCAAgB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"retrieve-tag.d.mts","names":[],"sources":["../../src/actions/retrieve-tag.ts"],"mappings":";;;cAIa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;cAGrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;cAOtB,gBAAA,gCAAgB,wBAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"retrieve-tag.mjs","names":[],"sources":["../../src/actions/retrieve-tag.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiRetrieveTagInput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"ID of the tag to retrieve\"),\n}).describe(\"Request model for retrieving a specific tag by ID.\");\nexport const SpokiRetrieveTagOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the tag\").nullable().optional(),\n name: z.string().describe(\"Name of the tag\").nullable().optional(),\n color: z.string().describe(\"Hex color code of the tag\").nullable().optional(),\n order: z.number().int().describe(\"Display order of the tag\").nullable().optional(),\n}).describe(\"Response model for details of a tag.\");\n\nexport const spokiRetrieveTag = action(\"SPOKI_RETRIEVE_TAG\", {\n slug: \"spoki-retrieve-tag\",\n name: \"Retrieve Tag\",\n description: \"Tool to retrieve details of a specific tag. Use when you need tag metadata by ID.\",\n input: SpokiRetrieveTagInput,\n output: SpokiRetrieveTagOutput,\n});\n"],"mappings":";;AAcA,MAAa,mBAAmB,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdiD,EAAE,OAAO,EAC1D,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,EAC3D,CAAC,CAAC,CAAC,SAAS,oDAYH;CACP,QAZkD,EAAE,OAAO;EAC3D,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5E,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,CAAC,CAAC,CAAC,SAAS,sCAOF;AACV,CAAC"}
1
+ {"version":3,"file":"retrieve-tag.mjs","names":[],"sources":["../../src/actions/retrieve-tag.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiRetrieveTagInput = z.object({\n id: z.number().int().describe(\"ID of the tag to retrieve\"),\n}).describe(\"Request model for retrieving a specific tag by ID.\");\nexport const SpokiRetrieveTagOutput = z.object({\n id: z.number().int().describe(\"Unique identifier of the tag\").nullable().optional(),\n name: z.string().describe(\"Name of the tag\").nullable().optional(),\n color: z.string().describe(\"Hex color code of the tag\").nullable().optional(),\n order: z.number().int().describe(\"Display order of the tag\").nullable().optional(),\n}).describe(\"Response model for details of a tag.\");\n\nexport const spokiRetrieveTag = action(\"SPOKI_RETRIEVE_TAG\", {\n slug: \"spoki-retrieve-tag\",\n name: \"Retrieve Tag\",\n description: \"Tool to retrieve details of a specific tag. Use when you need tag metadata by ID.\",\n input: SpokiRetrieveTagInput,\n output: SpokiRetrieveTagOutput,\n});\n"],"mappings":";;AAcA,MAAa,mBAAmB,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdmC,EAAE,OAAO,EAC5C,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,EAC3D,CAAC,CAAC,CAAC,SAAS,oDAYH;CACP,QAZoC,EAAE,OAAO;EAC7C,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5E,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,CAAC,CAAC,CAAC,SAAS,sCAOF;AACV,CAAC"}
@@ -3,37 +3,37 @@ let zod = require("zod");
3
3
  //#region src/actions/retrieve-template.ts
4
4
  const SpokiRetrieveTemplateInput = zod.z.object({ template_id: zod.z.number().int().describe("Unique identifier of the template to retrieve") }).describe("Request model for retrieving a specific template.");
5
5
  const SpokiRetrieveTemplate_TemplateComponentSchema = zod.z.object({
6
- text: zod.z.string().describe("Text content of the component"),
6
+ text: zod.z.string().describe("Text content of the component").nullable(),
7
7
  format: zod.z.string().describe("Format of the component, e.g., 'text'").nullable().optional(),
8
- component_type: zod.z.string().describe("Type of the component, e.g., 'body'")
8
+ component_type: zod.z.string().describe("Type of the component, e.g., 'body'").nullable()
9
9
  }).describe("Component for template parts such as header, body, footer.");
10
10
  const SpokiRetrieveTemplate_TemplateButtonSchema = zod.z.object({
11
11
  url: zod.z.string().describe("URL for link button, if applicable").nullable().optional(),
12
- text: zod.z.string().describe("Text displayed on the button"),
13
- order: zod.z.number().int().describe("Order index of the button"),
14
- button_type: zod.z.string().describe("Type of button, e.g., 'quick_reply'"),
12
+ text: zod.z.string().describe("Text displayed on the button").nullable(),
13
+ order: zod.z.number().int().describe("Order index of the button").nullable(),
14
+ button_type: zod.z.string().describe("Type of button, e.g., 'quick_reply'").nullable(),
15
15
  phone_number: zod.z.string().describe("Phone number for call button, if applicable").nullable().optional()
16
16
  }).describe("Button definition within a template localization.");
17
17
  const SpokiRetrieveTemplate_MediaSchema = zod.z.object({
18
- url: zod.z.string().describe("Media URL resource"),
19
- filename: zod.z.string().describe("Filename of the media resource")
18
+ url: zod.z.string().describe("Media URL resource").nullable(),
19
+ filename: zod.z.string().describe("Filename of the media resource").nullable()
20
20
  }).describe("Media information for dynamic headers.");
21
21
  const SpokiRetrieveTemplate_TemplateLocalizationSchema = zod.z.object({
22
22
  body: SpokiRetrieveTemplate_TemplateComponentSchema.nullable(),
23
23
  footer: SpokiRetrieveTemplate_TemplateComponentSchema.nullable().optional(),
24
24
  header: SpokiRetrieveTemplate_TemplateComponentSchema.nullable().optional(),
25
- status: zod.z.string().describe("Approval status of this localization"),
26
- language: zod.z.string().describe("Language code of this localization, e.g., 'it'"),
25
+ status: zod.z.string().describe("Approval status of this localization").nullable(),
26
+ language: zod.z.string().describe("Language code of this localization, e.g., 'it'").nullable(),
27
27
  button_set: zod.z.array(SpokiRetrieveTemplate_TemplateButtonSchema).describe("List of buttons defined for this localization"),
28
28
  rejection_reason: zod.z.string().describe("Reason for rejection, if any").nullable().optional(),
29
29
  default_header_media: SpokiRetrieveTemplate_MediaSchema.nullable().optional()
30
30
  }).describe("Localization details for a template.");
31
31
  const SpokiRetrieveTemplateOutput = zod.z.object({
32
- id: zod.z.number().int().describe("Template unique identifier"),
33
- name: zod.z.string().describe("Template name"),
34
- category: zod.z.string().describe("Template category, e.g., 'ACCOUNT_UPDATE'"),
35
- is_approved: zod.z.boolean().describe("Whether the template is approved"),
36
- is_favorite: zod.z.boolean().describe("Whether the template is marked as favorite"),
32
+ id: zod.z.number().int().describe("Template unique identifier").nullable(),
33
+ name: zod.z.string().describe("Template name").nullable(),
34
+ category: zod.z.string().describe("Template category, e.g., 'ACCOUNT_UPDATE'").nullable(),
35
+ is_approved: zod.z.boolean().describe("Whether the template is approved").nullable(),
36
+ is_favorite: zod.z.boolean().describe("Whether the template is marked as favorite").nullable(),
37
37
  customfield_set: zod.z.array(zod.z.string()).describe("List of dynamic field codes used in the template"),
38
38
  templatelocalization_set: zod.z.array(SpokiRetrieveTemplate_TemplateLocalizationSchema).describe("Localizations available for this template")
39
39
  }).describe("Full representation of a template returned by Spoki.");
@@ -1 +1 @@
1
- {"version":3,"file":"retrieve-template.cjs","names":["z","action"],"sources":["../../src/actions/retrieve-template.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiRetrieveTemplateInput: z.ZodTypeAny = z.object({\n template_id: z.number().int().describe(\"Unique identifier of the template to retrieve\"),\n}).describe(\"Request model for retrieving a specific template.\");\nconst SpokiRetrieveTemplate_TemplateComponentSchema: z.ZodTypeAny = z.object({\n text: z.string().describe(\"Text content of the component\"),\n format: z.string().describe(\"Format of the component, e.g., 'text'\").nullable().optional(),\n component_type: z.string().describe(\"Type of the component, e.g., 'body'\"),\n}).describe(\"Component for template parts such as header, body, footer.\");\nconst SpokiRetrieveTemplate_TemplateButtonSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL for link button, if applicable\").nullable().optional(),\n text: z.string().describe(\"Text displayed on the button\"),\n order: z.number().int().describe(\"Order index of the button\"),\n button_type: z.string().describe(\"Type of button, e.g., 'quick_reply'\"),\n phone_number: z.string().describe(\"Phone number for call button, if applicable\").nullable().optional(),\n}).describe(\"Button definition within a template localization.\");\nconst SpokiRetrieveTemplate_MediaSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"Media URL resource\"),\n filename: z.string().describe(\"Filename of the media resource\"),\n}).describe(\"Media information for dynamic headers.\");\nconst SpokiRetrieveTemplate_TemplateLocalizationSchema: z.ZodTypeAny = z.object({\n body: SpokiRetrieveTemplate_TemplateComponentSchema.nullable(),\n footer: SpokiRetrieveTemplate_TemplateComponentSchema.nullable().optional(),\n header: SpokiRetrieveTemplate_TemplateComponentSchema.nullable().optional(),\n status: z.string().describe(\"Approval status of this localization\"),\n language: z.string().describe(\"Language code of this localization, e.g., 'it'\"),\n button_set: z.array(SpokiRetrieveTemplate_TemplateButtonSchema).describe(\"List of buttons defined for this localization\"),\n rejection_reason: z.string().describe(\"Reason for rejection, if any\").nullable().optional(),\n default_header_media: SpokiRetrieveTemplate_MediaSchema.nullable().optional(),\n}).describe(\"Localization details for a template.\");\nexport const SpokiRetrieveTemplateOutput: 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, e.g., 'ACCOUNT_UPDATE'\"),\n is_approved: z.boolean().describe(\"Whether the template is approved\"),\n is_favorite: z.boolean().describe(\"Whether the template is marked as favorite\"),\n customfield_set: z.array(z.string()).describe(\"List of dynamic field codes used in the template\"),\n templatelocalization_set: z.array(SpokiRetrieveTemplate_TemplateLocalizationSchema).describe(\"Localizations available for this template\"),\n}).describe(\"Full representation of a template returned by Spoki.\");\n\nexport const spokiRetrieveTemplate = action(\"SPOKI_RETRIEVE_TEMPLATE\", {\n slug: \"spoki-retrieve-template\",\n name: \"Retrieve Template\",\n description: \"Tool to retrieve details of a specific template. Use after obtaining a template ID.\",\n input: SpokiRetrieveTemplateInput,\n output: SpokiRetrieveTemplateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2CA,IAAAA,EAAE,OAAO,EAC/D,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,EACxF,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,gDAA8DA,IAAAA,EAAE,OAAO;CAC3E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CACzD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC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1F,sBAAsB,kCAAkC,SAAS,CAAC,CAAC,SAAS;AAC9E,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAClD,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,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,2CAA2C;CACzE,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kCAAkC;CACpE,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4CAA4C;CAC9E,iBAAiBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kDAAkD;CAChG,0BAA0BA,IAAAA,EAAE,MAAM,gDAAgD,CAAC,CAAC,SAAS,2CAA2C;AAC1I,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAElE,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"retrieve-template.cjs","names":["z","action"],"sources":["../../src/actions/retrieve-template.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiRetrieveTemplateInput = z.object({\n template_id: z.number().int().describe(\"Unique identifier of the template to retrieve\"),\n}).describe(\"Request model for retrieving a specific template.\");\nconst SpokiRetrieveTemplate_TemplateComponentSchema = z.object({\n text: z.string().describe(\"Text content of the component\").nullable(),\n format: z.string().describe(\"Format of the component, e.g., 'text'\").nullable().optional(),\n component_type: z.string().describe(\"Type of the component, e.g., 'body'\").nullable(),\n}).describe(\"Component for template parts such as header, body, footer.\");\nconst SpokiRetrieveTemplate_TemplateButtonSchema = z.object({\n url: z.string().describe(\"URL for link button, if applicable\").nullable().optional(),\n text: z.string().describe(\"Text displayed on the button\").nullable(),\n order: z.number().int().describe(\"Order index of the button\").nullable(),\n button_type: z.string().describe(\"Type of button, e.g., 'quick_reply'\").nullable(),\n phone_number: z.string().describe(\"Phone number for call button, if applicable\").nullable().optional(),\n}).describe(\"Button definition within a template localization.\");\nconst SpokiRetrieveTemplate_MediaSchema = z.object({\n url: z.string().describe(\"Media URL resource\").nullable(),\n filename: z.string().describe(\"Filename of the media resource\").nullable(),\n}).describe(\"Media information for dynamic headers.\");\nconst SpokiRetrieveTemplate_TemplateLocalizationSchema = z.object({\n body: SpokiRetrieveTemplate_TemplateComponentSchema.nullable(),\n footer: SpokiRetrieveTemplate_TemplateComponentSchema.nullable().optional(),\n header: SpokiRetrieveTemplate_TemplateComponentSchema.nullable().optional(),\n status: z.string().describe(\"Approval status of this localization\").nullable(),\n language: z.string().describe(\"Language code of this localization, e.g., 'it'\").nullable(),\n button_set: z.array(SpokiRetrieveTemplate_TemplateButtonSchema).describe(\"List of buttons defined for this localization\"),\n rejection_reason: z.string().describe(\"Reason for rejection, if any\").nullable().optional(),\n default_header_media: SpokiRetrieveTemplate_MediaSchema.nullable().optional(),\n}).describe(\"Localization details for a template.\");\nexport const SpokiRetrieveTemplateOutput = z.object({\n id: z.number().int().describe(\"Template unique identifier\").nullable(),\n name: z.string().describe(\"Template name\").nullable(),\n category: z.string().describe(\"Template category, e.g., 'ACCOUNT_UPDATE'\").nullable(),\n is_approved: z.boolean().describe(\"Whether the template is approved\").nullable(),\n is_favorite: z.boolean().describe(\"Whether the template is marked as favorite\").nullable(),\n customfield_set: z.array(z.string()).describe(\"List of dynamic field codes used in the template\"),\n templatelocalization_set: z.array(SpokiRetrieveTemplate_TemplateLocalizationSchema).describe(\"Localizations available for this template\"),\n}).describe(\"Full representation of a template returned by Spoki.\");\n\nexport const spokiRetrieveTemplate = action(\"SPOKI_RETRIEVE_TEMPLATE\", {\n slug: \"spoki-retrieve-template\",\n name: \"Retrieve Template\",\n description: \"Tool to retrieve details of a specific template. Use after obtaining a template ID.\",\n input: SpokiRetrieveTemplateInput,\n output: SpokiRetrieveTemplateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,EACxF,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,gDAAgDA,IAAAA,EAAE,OAAO;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACpE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;AACtF,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACnE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACvE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACjF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,oCAAoCA,IAAAA,EAAE,OAAO;CACjD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CACxD,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AAA,EAAE,MAAM,gDAAgD,CAAC,CAAC,SAAS,2CAA2C;AAC1I,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAElE,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,51 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/retrieve-template.d.ts
4
- declare const SpokiRetrieveTemplateInput: z.ZodTypeAny;
5
- declare const SpokiRetrieveTemplateOutput: z.ZodTypeAny;
6
- declare const spokiRetrieveTemplate: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SpokiRetrieveTemplateInput: z.ZodObject<{
5
+ template_id: z.ZodNumber;
6
+ }, z.core.$strip>;
7
+ declare const SpokiRetrieveTemplateOutput: z.ZodObject<{
8
+ id: z.ZodNullable<z.ZodNumber>;
9
+ name: z.ZodNullable<z.ZodString>;
10
+ category: z.ZodNullable<z.ZodString>;
11
+ is_approved: z.ZodNullable<z.ZodBoolean>;
12
+ is_favorite: z.ZodNullable<z.ZodBoolean>;
13
+ customfield_set: z.ZodArray<z.ZodString>;
14
+ templatelocalization_set: z.ZodArray<z.ZodObject<{
15
+ body: z.ZodNullable<z.ZodObject<{
16
+ text: z.ZodNullable<z.ZodString>;
17
+ format: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ component_type: z.ZodNullable<z.ZodString>;
19
+ }, z.core.$strip>>;
20
+ footer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
21
+ text: z.ZodNullable<z.ZodString>;
22
+ format: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ component_type: z.ZodNullable<z.ZodString>;
24
+ }, z.core.$strip>>>;
25
+ header: z.ZodOptional<z.ZodNullable<z.ZodObject<{
26
+ text: z.ZodNullable<z.ZodString>;
27
+ format: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ component_type: z.ZodNullable<z.ZodString>;
29
+ }, z.core.$strip>>>;
30
+ status: z.ZodNullable<z.ZodString>;
31
+ language: z.ZodNullable<z.ZodString>;
32
+ button_set: z.ZodArray<z.ZodObject<{
33
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
+ text: z.ZodNullable<z.ZodString>;
35
+ order: z.ZodNullable<z.ZodNumber>;
36
+ button_type: z.ZodNullable<z.ZodString>;
37
+ phone_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
+ }, z.core.$strip>>;
39
+ rejection_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
+ default_header_media: z.ZodOptional<z.ZodNullable<z.ZodObject<{
41
+ url: z.ZodNullable<z.ZodString>;
42
+ filename: z.ZodNullable<z.ZodString>;
43
+ }, z.core.$strip>>>;
44
+ }, z.core.$strip>>;
45
+ }, z.core.$strip>;
46
+ declare const spokiRetrieveTemplate: import("@keystrokehq/action").WorkflowActionDefinition<{
47
+ template_id: number;
48
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
49
  //#endregion
8
50
  export { spokiRetrieveTemplate };
9
51
  //# sourceMappingURL=retrieve-template.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"retrieve-template.d.cts","names":[],"sources":["../../src/actions/retrieve-template.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAEqB;AAAA,cA2BnD,2BAAA,EAA6B,CAAA,CAAE,UAQuB;AAAA,cAEtD,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"retrieve-template.d.cts","names":[],"sources":["../../src/actions/retrieve-template.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cA6B1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAU3B,qBAAA,gCAAqB,wBAAA"}
@@ -1,9 +1,51 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/retrieve-template.d.ts
4
- declare const SpokiRetrieveTemplateInput: z.ZodTypeAny;
5
- declare const SpokiRetrieveTemplateOutput: z.ZodTypeAny;
6
- declare const spokiRetrieveTemplate: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SpokiRetrieveTemplateInput: z.ZodObject<{
5
+ template_id: z.ZodNumber;
6
+ }, z.core.$strip>;
7
+ declare const SpokiRetrieveTemplateOutput: z.ZodObject<{
8
+ id: z.ZodNullable<z.ZodNumber>;
9
+ name: z.ZodNullable<z.ZodString>;
10
+ category: z.ZodNullable<z.ZodString>;
11
+ is_approved: z.ZodNullable<z.ZodBoolean>;
12
+ is_favorite: z.ZodNullable<z.ZodBoolean>;
13
+ customfield_set: z.ZodArray<z.ZodString>;
14
+ templatelocalization_set: z.ZodArray<z.ZodObject<{
15
+ body: z.ZodNullable<z.ZodObject<{
16
+ text: z.ZodNullable<z.ZodString>;
17
+ format: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ component_type: z.ZodNullable<z.ZodString>;
19
+ }, z.core.$strip>>;
20
+ footer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
21
+ text: z.ZodNullable<z.ZodString>;
22
+ format: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ component_type: z.ZodNullable<z.ZodString>;
24
+ }, z.core.$strip>>>;
25
+ header: z.ZodOptional<z.ZodNullable<z.ZodObject<{
26
+ text: z.ZodNullable<z.ZodString>;
27
+ format: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ component_type: z.ZodNullable<z.ZodString>;
29
+ }, z.core.$strip>>>;
30
+ status: z.ZodNullable<z.ZodString>;
31
+ language: z.ZodNullable<z.ZodString>;
32
+ button_set: z.ZodArray<z.ZodObject<{
33
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
+ text: z.ZodNullable<z.ZodString>;
35
+ order: z.ZodNullable<z.ZodNumber>;
36
+ button_type: z.ZodNullable<z.ZodString>;
37
+ phone_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
+ }, z.core.$strip>>;
39
+ rejection_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
+ default_header_media: z.ZodOptional<z.ZodNullable<z.ZodObject<{
41
+ url: z.ZodNullable<z.ZodString>;
42
+ filename: z.ZodNullable<z.ZodString>;
43
+ }, z.core.$strip>>>;
44
+ }, z.core.$strip>>;
45
+ }, z.core.$strip>;
46
+ declare const spokiRetrieveTemplate: import("@keystrokehq/action").WorkflowActionDefinition<{
47
+ template_id: number;
48
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
49
  //#endregion
8
50
  export { spokiRetrieveTemplate };
9
51
  //# sourceMappingURL=retrieve-template.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"retrieve-template.d.mts","names":[],"sources":["../../src/actions/retrieve-template.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAEqB;AAAA,cA2BnD,2BAAA,EAA6B,CAAA,CAAE,UAQuB;AAAA,cAEtD,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"retrieve-template.d.mts","names":[],"sources":["../../src/actions/retrieve-template.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cA6B1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAU3B,qBAAA,gCAAqB,wBAAA"}
@@ -3,27 +3,27 @@ import { z } from "zod";
3
3
  //#region src/actions/retrieve-template.ts
4
4
  const SpokiRetrieveTemplateInput = z.object({ template_id: z.number().int().describe("Unique identifier of the template to retrieve") }).describe("Request model for retrieving a specific template.");
5
5
  const SpokiRetrieveTemplate_TemplateComponentSchema = z.object({
6
- text: z.string().describe("Text content of the component"),
6
+ text: z.string().describe("Text content of the component").nullable(),
7
7
  format: z.string().describe("Format of the component, e.g., 'text'").nullable().optional(),
8
- component_type: z.string().describe("Type of the component, e.g., 'body'")
8
+ component_type: z.string().describe("Type of the component, e.g., 'body'").nullable()
9
9
  }).describe("Component for template parts such as header, body, footer.");
10
10
  const SpokiRetrieveTemplate_TemplateButtonSchema = z.object({
11
11
  url: z.string().describe("URL for link button, if applicable").nullable().optional(),
12
- text: z.string().describe("Text displayed on the button"),
13
- order: z.number().int().describe("Order index of the button"),
14
- button_type: z.string().describe("Type of button, e.g., 'quick_reply'"),
12
+ text: z.string().describe("Text displayed on the button").nullable(),
13
+ order: z.number().int().describe("Order index of the button").nullable(),
14
+ button_type: z.string().describe("Type of button, e.g., 'quick_reply'").nullable(),
15
15
  phone_number: z.string().describe("Phone number for call button, if applicable").nullable().optional()
16
16
  }).describe("Button definition within a template localization.");
17
17
  const SpokiRetrieveTemplate_MediaSchema = z.object({
18
- url: z.string().describe("Media URL resource"),
19
- filename: z.string().describe("Filename of the media resource")
18
+ url: z.string().describe("Media URL resource").nullable(),
19
+ filename: z.string().describe("Filename of the media resource").nullable()
20
20
  }).describe("Media information for dynamic headers.");
21
21
  const SpokiRetrieveTemplate_TemplateLocalizationSchema = z.object({
22
22
  body: SpokiRetrieveTemplate_TemplateComponentSchema.nullable(),
23
23
  footer: SpokiRetrieveTemplate_TemplateComponentSchema.nullable().optional(),
24
24
  header: SpokiRetrieveTemplate_TemplateComponentSchema.nullable().optional(),
25
- status: z.string().describe("Approval status of this localization"),
26
- language: z.string().describe("Language code of this localization, e.g., 'it'"),
25
+ status: z.string().describe("Approval status of this localization").nullable(),
26
+ language: z.string().describe("Language code of this localization, e.g., 'it'").nullable(),
27
27
  button_set: z.array(SpokiRetrieveTemplate_TemplateButtonSchema).describe("List of buttons defined for this localization"),
28
28
  rejection_reason: z.string().describe("Reason for rejection, if any").nullable().optional(),
29
29
  default_header_media: SpokiRetrieveTemplate_MediaSchema.nullable().optional()
@@ -34,11 +34,11 @@ const spokiRetrieveTemplate = action("SPOKI_RETRIEVE_TEMPLATE", {
34
34
  description: "Tool to retrieve details of a specific template. Use after obtaining a template ID.",
35
35
  input: SpokiRetrieveTemplateInput,
36
36
  output: z.object({
37
- id: z.number().int().describe("Template unique identifier"),
38
- name: z.string().describe("Template name"),
39
- category: z.string().describe("Template category, e.g., 'ACCOUNT_UPDATE'"),
40
- is_approved: z.boolean().describe("Whether the template is approved"),
41
- is_favorite: z.boolean().describe("Whether the template is marked as favorite"),
37
+ id: z.number().int().describe("Template unique identifier").nullable(),
38
+ name: z.string().describe("Template name").nullable(),
39
+ category: z.string().describe("Template category, e.g., 'ACCOUNT_UPDATE'").nullable(),
40
+ is_approved: z.boolean().describe("Whether the template is approved").nullable(),
41
+ is_favorite: z.boolean().describe("Whether the template is marked as favorite").nullable(),
42
42
  customfield_set: z.array(z.string()).describe("List of dynamic field codes used in the template"),
43
43
  templatelocalization_set: z.array(SpokiRetrieveTemplate_TemplateLocalizationSchema).describe("Localizations available for this template")
44
44
  }).describe("Full representation of a template returned by Spoki.")
@@ -1 +1 @@
1
- {"version":3,"file":"retrieve-template.mjs","names":[],"sources":["../../src/actions/retrieve-template.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiRetrieveTemplateInput: z.ZodTypeAny = z.object({\n template_id: z.number().int().describe(\"Unique identifier of the template to retrieve\"),\n}).describe(\"Request model for retrieving a specific template.\");\nconst SpokiRetrieveTemplate_TemplateComponentSchema: z.ZodTypeAny = z.object({\n text: z.string().describe(\"Text content of the component\"),\n format: z.string().describe(\"Format of the component, e.g., 'text'\").nullable().optional(),\n component_type: z.string().describe(\"Type of the component, e.g., 'body'\"),\n}).describe(\"Component for template parts such as header, body, footer.\");\nconst SpokiRetrieveTemplate_TemplateButtonSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL for link button, if applicable\").nullable().optional(),\n text: z.string().describe(\"Text displayed on the button\"),\n order: z.number().int().describe(\"Order index of the button\"),\n button_type: z.string().describe(\"Type of button, e.g., 'quick_reply'\"),\n phone_number: z.string().describe(\"Phone number for call button, if applicable\").nullable().optional(),\n}).describe(\"Button definition within a template localization.\");\nconst SpokiRetrieveTemplate_MediaSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"Media URL resource\"),\n filename: z.string().describe(\"Filename of the media resource\"),\n}).describe(\"Media information for dynamic headers.\");\nconst SpokiRetrieveTemplate_TemplateLocalizationSchema: z.ZodTypeAny = z.object({\n body: SpokiRetrieveTemplate_TemplateComponentSchema.nullable(),\n footer: SpokiRetrieveTemplate_TemplateComponentSchema.nullable().optional(),\n header: SpokiRetrieveTemplate_TemplateComponentSchema.nullable().optional(),\n status: z.string().describe(\"Approval status of this localization\"),\n language: z.string().describe(\"Language code of this localization, e.g., 'it'\"),\n button_set: z.array(SpokiRetrieveTemplate_TemplateButtonSchema).describe(\"List of buttons defined for this localization\"),\n rejection_reason: z.string().describe(\"Reason for rejection, if any\").nullable().optional(),\n default_header_media: SpokiRetrieveTemplate_MediaSchema.nullable().optional(),\n}).describe(\"Localization details for a template.\");\nexport const SpokiRetrieveTemplateOutput: 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, e.g., 'ACCOUNT_UPDATE'\"),\n is_approved: z.boolean().describe(\"Whether the template is approved\"),\n is_favorite: z.boolean().describe(\"Whether the template is marked as favorite\"),\n customfield_set: z.array(z.string()).describe(\"List of dynamic field codes used in the template\"),\n templatelocalization_set: z.array(SpokiRetrieveTemplate_TemplateLocalizationSchema).describe(\"Localizations available for this template\"),\n}).describe(\"Full representation of a template returned by Spoki.\");\n\nexport const spokiRetrieveTemplate = action(\"SPOKI_RETRIEVE_TEMPLATE\", {\n slug: \"spoki-retrieve-template\",\n name: \"Retrieve Template\",\n description: \"Tool to retrieve details of a specific template. Use after obtaining a template ID.\",\n input: SpokiRetrieveTemplateInput,\n output: SpokiRetrieveTemplateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2C,EAAE,OAAO,EAC/D,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,EACxF,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,gDAA8D,EAAE,OAAO;CAC3E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CACzD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;AAC3E,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,6CAA2D,EAAE,OAAO;CACxE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CACxD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B;CAC5D,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CACtE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,oCAAkD,EAAE,OAAO;CAC/D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;CAC7C,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;AAChE,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAM,mDAAiE,EAAE,OAAO;CAC9E,MAAM,8CAA8C,SAAS;CAC7D,QAAQ,8CAA8C,SAAS,CAAC,CAAC,SAAS;CAC1E,QAAQ,8CAA8C,SAAS,CAAC,CAAC,SAAS;CAC1E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CAClE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CAC9E,YAAY,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,+CAA+C;CACxH,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,sBAAsB,kCAAkC,SAAS,CAAC,CAAC,SAAS;AAC9E,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAWlD,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAfuD,EAAE,OAAO;EAChE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B;EAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe;EACzC,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;EACzE,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,kCAAkC;EACpE,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,4CAA4C;EAC9E,iBAAiB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kDAAkD;EAChG,0BAA0B,EAAE,MAAM,gDAAgD,CAAC,CAAC,SAAS,2CAA2C;CAC1I,CAAC,CAAC,CAAC,SAAS,sDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"retrieve-template.mjs","names":[],"sources":["../../src/actions/retrieve-template.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiRetrieveTemplateInput = z.object({\n template_id: z.number().int().describe(\"Unique identifier of the template to retrieve\"),\n}).describe(\"Request model for retrieving a specific template.\");\nconst SpokiRetrieveTemplate_TemplateComponentSchema = z.object({\n text: z.string().describe(\"Text content of the component\").nullable(),\n format: z.string().describe(\"Format of the component, e.g., 'text'\").nullable().optional(),\n component_type: z.string().describe(\"Type of the component, e.g., 'body'\").nullable(),\n}).describe(\"Component for template parts such as header, body, footer.\");\nconst SpokiRetrieveTemplate_TemplateButtonSchema = z.object({\n url: z.string().describe(\"URL for link button, if applicable\").nullable().optional(),\n text: z.string().describe(\"Text displayed on the button\").nullable(),\n order: z.number().int().describe(\"Order index of the button\").nullable(),\n button_type: z.string().describe(\"Type of button, e.g., 'quick_reply'\").nullable(),\n phone_number: z.string().describe(\"Phone number for call button, if applicable\").nullable().optional(),\n}).describe(\"Button definition within a template localization.\");\nconst SpokiRetrieveTemplate_MediaSchema = z.object({\n url: z.string().describe(\"Media URL resource\").nullable(),\n filename: z.string().describe(\"Filename of the media resource\").nullable(),\n}).describe(\"Media information for dynamic headers.\");\nconst SpokiRetrieveTemplate_TemplateLocalizationSchema = z.object({\n body: SpokiRetrieveTemplate_TemplateComponentSchema.nullable(),\n footer: SpokiRetrieveTemplate_TemplateComponentSchema.nullable().optional(),\n header: SpokiRetrieveTemplate_TemplateComponentSchema.nullable().optional(),\n status: z.string().describe(\"Approval status of this localization\").nullable(),\n language: z.string().describe(\"Language code of this localization, e.g., 'it'\").nullable(),\n button_set: z.array(SpokiRetrieveTemplate_TemplateButtonSchema).describe(\"List of buttons defined for this localization\"),\n rejection_reason: z.string().describe(\"Reason for rejection, if any\").nullable().optional(),\n default_header_media: SpokiRetrieveTemplate_MediaSchema.nullable().optional(),\n}).describe(\"Localization details for a template.\");\nexport const SpokiRetrieveTemplateOutput = z.object({\n id: z.number().int().describe(\"Template unique identifier\").nullable(),\n name: z.string().describe(\"Template name\").nullable(),\n category: z.string().describe(\"Template category, e.g., 'ACCOUNT_UPDATE'\").nullable(),\n is_approved: z.boolean().describe(\"Whether the template is approved\").nullable(),\n is_favorite: z.boolean().describe(\"Whether the template is marked as favorite\").nullable(),\n customfield_set: z.array(z.string()).describe(\"List of dynamic field codes used in the template\"),\n templatelocalization_set: z.array(SpokiRetrieveTemplate_TemplateLocalizationSchema).describe(\"Localizations available for this template\"),\n}).describe(\"Full representation of a template returned by Spoki.\");\n\nexport const spokiRetrieveTemplate = action(\"SPOKI_RETRIEVE_TEMPLATE\", {\n slug: \"spoki-retrieve-template\",\n name: \"Retrieve Template\",\n description: \"Tool to retrieve details of a specific template. Use after obtaining a template ID.\",\n input: SpokiRetrieveTemplateInput,\n output: SpokiRetrieveTemplateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO,EACjD,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,EACxF,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,gDAAgD,EAAE,OAAO;CAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACpE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;AACtF,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,6CAA6C,EAAE,OAAO;CAC1D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACnE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACvE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACjF,cAAc,EAAE,O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AC,SAAS;EAC/E,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EACzF,iBAAiB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kDAAkD;EAChG,0BAA0B,EAAE,MAAM,gDAAgD,CAAC,CAAC,SAAS,2CAA2C;CAC1I,CAAC,CAAC,CAAC,SAAS,sDAOF;AACV,CAAC"}
@@ -2,7 +2,7 @@ const require_action = require("../action.cjs");
2
2
  let zod = require("zod");
3
3
  //#region src/actions/revert-template-to-draft.ts
4
4
  const SpokiRevertTemplateToDraftInput = zod.z.object({ template_id: zod.z.number().int().describe("Unique identifier of the template to revert to DRAFT status") }).describe("Request model for reverting a template back to DRAFT status.");
5
- const SpokiRevertTemplateToDraftOutput = zod.z.object({ status: zod.z.string().describe("Status of the operation, typically 'ok'") }).describe("Response model for revert template to draft operation.");
5
+ const SpokiRevertTemplateToDraftOutput = zod.z.object({ status: zod.z.string().describe("Status of the operation, typically 'ok'").nullable() }).describe("Response model for revert template to draft operation.");
6
6
  const spokiRevertTemplateToDraft = require_action.action("SPOKI_REVERT_TEMPLATE_TO_DRAFT", {
7
7
  slug: "spoki-revert-template-to-draft",
8
8
  name: "Revert Template to Draft",
@@ -1 +1 @@
1
- {"version":3,"file":"revert-template-to-draft.cjs","names":["z","action"],"sources":["../../src/actions/revert-template-to-draft.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiRevertTemplateToDraftInput: z.ZodTypeAny = z.object({\n template_id: z.number().int().describe(\"Unique identifier of the template to revert to DRAFT status\"),\n}).describe(\"Request model for reverting a template back to DRAFT status.\");\nexport const SpokiRevertTemplateToDraftOutput: z.ZodTypeAny = z.object({\n status: z.string().describe(\"Status of the operation, typically 'ok'\"),\n}).describe(\"Response model for revert template to draft operation.\");\n\nexport const spokiRevertTemplateToDraft = action(\"SPOKI_REVERT_TEMPLATE_TO_DRAFT\", {\n slug: \"spoki-revert-template-to-draft\",\n name: \"Revert Template to Draft\",\n description: \"Tool to revert a WhatsApp template back to DRAFT status, removing it from WhatsApp. Use when you need to unpublish a template and return it to draft mode for editing.\",\n input: SpokiRevertTemplateToDraftInput,\n output: SpokiRevertTemplateToDraftOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAgDA,IAAAA,EAAE,OAAO,EACpE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6DAA6D,EACtG,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAa,mCAAiDA,IAAAA,EAAE,OAAO,EACrE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,EACvE,CAAC,CAAC,CAAC,SAAS,wDAAwD;AAEpE,MAAa,6BAA6BC,eAAAA,OAAO,kCAAkC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"revert-template-to-draft.cjs","names":["z","action"],"sources":["../../src/actions/revert-template-to-draft.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiRevertTemplateToDraftInput = z.object({\n template_id: z.number().int().describe(\"Unique identifier of the template to revert to DRAFT status\"),\n}).describe(\"Request model for reverting a template back to DRAFT status.\");\nexport const SpokiRevertTemplateToDraftOutput = z.object({\n status: z.string().describe(\"Status of the operation, typically 'ok'\").nullable(),\n}).describe(\"Response model for revert template to draft operation.\");\n\nexport const spokiRevertTemplateToDraft = action(\"SPOKI_REVERT_TEMPLATE_TO_DRAFT\", {\n slug: \"spoki-revert-template-to-draft\",\n name: \"Revert Template to Draft\",\n description: \"Tool to revert a WhatsApp template back to DRAFT status, removing it from WhatsApp. Use when you need to unpublish a template and return it to draft mode for editing.\",\n input: SpokiRevertTemplateToDraftInput,\n output: SpokiRevertTemplateToDraftOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO,EACtD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6DAA6D,EACtG,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAa,mCAAmCA,IAAAA,EAAE,OAAO,EACvD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,EAClF,CAAC,CAAC,CAAC,SAAS,wDAAwD;AAEpE,MAAa,6BAA6BC,eAAAA,OAAO,kCAAkC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,15 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/revert-template-to-draft.d.ts
4
- declare const SpokiRevertTemplateToDraftInput: z.ZodTypeAny;
5
- declare const SpokiRevertTemplateToDraftOutput: z.ZodTypeAny;
6
- declare const spokiRevertTemplateToDraft: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SpokiRevertTemplateToDraftInput: z.ZodObject<{
5
+ template_id: z.ZodNumber;
6
+ }, z.core.$strip>;
7
+ declare const SpokiRevertTemplateToDraftOutput: z.ZodObject<{
8
+ status: z.ZodNullable<z.ZodString>;
9
+ }, z.core.$strip>;
10
+ declare const spokiRevertTemplateToDraft: import("@keystrokehq/action").WorkflowActionDefinition<{
11
+ template_id: number;
12
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
13
  //#endregion
8
14
  export { spokiRevertTemplateToDraft };
9
15
  //# sourceMappingURL=revert-template-to-draft.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"revert-template-to-draft.d.cts","names":[],"sources":["../../src/actions/revert-template-to-draft.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAE2B;AAAA,cAC9D,gCAAA,EAAkC,CAAA,CAAE,UAEoB;AAAA,cAExD,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"revert-template-to-draft.d.cts","names":[],"sources":["../../src/actions/revert-template-to-draft.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;cAG/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;cAIhC,0BAAA,gCAA0B,wBAAA"}
@@ -1,9 +1,15 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/revert-template-to-draft.d.ts
4
- declare const SpokiRevertTemplateToDraftInput: z.ZodTypeAny;
5
- declare const SpokiRevertTemplateToDraftOutput: z.ZodTypeAny;
6
- declare const spokiRevertTemplateToDraft: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SpokiRevertTemplateToDraftInput: z.ZodObject<{
5
+ template_id: z.ZodNumber;
6
+ }, z.core.$strip>;
7
+ declare const SpokiRevertTemplateToDraftOutput: z.ZodObject<{
8
+ status: z.ZodNullable<z.ZodString>;
9
+ }, z.core.$strip>;
10
+ declare const spokiRevertTemplateToDraft: import("@keystrokehq/action").WorkflowActionDefinition<{
11
+ template_id: number;
12
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
13
  //#endregion
8
14
  export { spokiRevertTemplateToDraft };
9
15
  //# sourceMappingURL=revert-template-to-draft.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"revert-template-to-draft.d.mts","names":[],"sources":["../../src/actions/revert-template-to-draft.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAE2B;AAAA,cAC9D,gCAAA,EAAkC,CAAA,CAAE,UAEoB;AAAA,cAExD,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"revert-template-to-draft.d.mts","names":[],"sources":["../../src/actions/revert-template-to-draft.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;cAG/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;cAIhC,0BAAA,gCAA0B,wBAAA"}
@@ -5,7 +5,7 @@ const spokiRevertTemplateToDraft = action("SPOKI_REVERT_TEMPLATE_TO_DRAFT", {
5
5
  name: "Revert Template to Draft",
6
6
  description: "Tool to revert a WhatsApp template back to DRAFT status, removing it from WhatsApp. Use when you need to unpublish a template and return it to draft mode for editing.",
7
7
  input: z.object({ template_id: z.number().int().describe("Unique identifier of the template to revert to DRAFT status") }).describe("Request model for reverting a template back to DRAFT status."),
8
- output: z.object({ status: z.string().describe("Status of the operation, typically 'ok'") }).describe("Response model for revert template to draft operation.")
8
+ output: z.object({ status: z.string().describe("Status of the operation, typically 'ok'").nullable() }).describe("Response model for revert template to draft operation.")
9
9
  });
10
10
  //#endregion
11
11
  export { spokiRevertTemplateToDraft };
@@ -1 +1 @@
1
- {"version":3,"file":"revert-template-to-draft.mjs","names":[],"sources":["../../src/actions/revert-template-to-draft.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiRevertTemplateToDraftInput: z.ZodTypeAny = z.object({\n template_id: z.number().int().describe(\"Unique identifier of the template to revert to DRAFT status\"),\n}).describe(\"Request model for reverting a template back to DRAFT status.\");\nexport const SpokiRevertTemplateToDraftOutput: z.ZodTypeAny = z.object({\n status: z.string().describe(\"Status of the operation, typically 'ok'\"),\n}).describe(\"Response model for revert template to draft operation.\");\n\nexport const spokiRevertTemplateToDraft = action(\"SPOKI_REVERT_TEMPLATE_TO_DRAFT\", {\n slug: \"spoki-revert-template-to-draft\",\n name: \"Revert Template to Draft\",\n description: \"Tool to revert a WhatsApp template back to DRAFT status, removing it from WhatsApp. Use when you need to unpublish a template and return it to draft mode for editing.\",\n input: SpokiRevertTemplateToDraftInput,\n output: SpokiRevertTemplateToDraftOutput,\n});\n"],"mappings":";;AAWA,MAAa,6BAA6B,OAAO,kCAAkC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAX2D,EAAE,OAAO,EACpE,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6DAA6D,EACtG,CAAC,CAAC,CAAC,SAAS,8DASH;CACP,QAT4D,EAAE,OAAO,EACrE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,EACvE,CAAC,CAAC,CAAC,SAAS,wDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"revert-template-to-draft.mjs","names":[],"sources":["../../src/actions/revert-template-to-draft.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiRevertTemplateToDraftInput = z.object({\n template_id: z.number().int().describe(\"Unique identifier of the template to revert to DRAFT status\"),\n}).describe(\"Request model for reverting a template back to DRAFT status.\");\nexport const SpokiRevertTemplateToDraftOutput = z.object({\n status: z.string().describe(\"Status of the operation, typically 'ok'\").nullable(),\n}).describe(\"Response model for revert template to draft operation.\");\n\nexport const spokiRevertTemplateToDraft = action(\"SPOKI_REVERT_TEMPLATE_TO_DRAFT\", {\n slug: \"spoki-revert-template-to-draft\",\n name: \"Revert Template to Draft\",\n description: \"Tool to revert a WhatsApp template back to DRAFT status, removing it from WhatsApp. Use when you need to unpublish a template and return it to draft mode for editing.\",\n input: SpokiRevertTemplateToDraftInput,\n output: SpokiRevertTemplateToDraftOutput,\n});\n"],"mappings":";;AAWA,MAAa,6BAA6B,OAAO,kCAAkC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAX6C,EAAE,OAAO,EACtD,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6DAA6D,EACtG,CAAC,CAAC,CAAC,SAAS,8DASH;CACP,QAT8C,EAAE,OAAO,EACvD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,EAClF,CAAC,CAAC,CAAC,SAAS,wDAOF;AACV,CAAC"}
@@ -14,18 +14,18 @@ const SpokiSyncContactsBulk_ErrorDetailSchema = zod.z.object({
14
14
  phone: zod.z.string().describe("Phone number that caused the error").nullable().optional()
15
15
  }).describe("Error details for failed contact sync.");
16
16
  const SpokiSyncContactsBulk_SyncedContactSchema = zod.z.object({
17
- id: zod.z.number().int().describe("Unique ID of the contact"),
17
+ id: zod.z.number().int().describe("Unique ID of the contact").nullable(),
18
18
  email: zod.z.string().describe("Email address of the contact").nullable().optional(),
19
- phone: zod.z.string().describe("Contact phone number in E.164 format"),
20
- language: zod.z.string().describe("Language code of the contact (e.g., 'en', 'it', 'es')"),
19
+ phone: zod.z.string().describe("Contact phone number in E.164 format").nullable(),
20
+ language: zod.z.string().describe("Language code of the contact (e.g., 'en', 'it', 'es')").nullable(),
21
21
  role_set: zod.z.array(zod.z.string()).describe("List of roles assigned to the contact").nullable().optional(),
22
- chat_link: zod.z.string().describe("Direct link to chat with this contact on Spoki platform"),
22
+ chat_link: zod.z.string().describe("Direct link to chat with this contact on Spoki platform").nullable(),
23
23
  last_name: zod.z.string().describe("Last name of the contact").nullable().optional(),
24
24
  first_name: zod.z.string().describe("First name of the contact").nullable().optional(),
25
- is_blocked: zod.z.boolean().describe("Whether the contact is blocked"),
26
- is_restricted: zod.z.boolean().describe("Whether the contact is restricted"),
27
- has_invalid_phone: zod.z.boolean().describe("Whether the phone number is invalid"),
28
- is_first_message_sent: zod.z.boolean().describe("Whether the first message has been sent to this contact")
25
+ is_blocked: zod.z.boolean().describe("Whether the contact is blocked").nullable(),
26
+ is_restricted: zod.z.boolean().describe("Whether the contact is restricted").nullable(),
27
+ has_invalid_phone: zod.z.boolean().describe("Whether the phone number is invalid").nullable(),
28
+ is_first_message_sent: zod.z.boolean().describe("Whether the first message has been sent to this contact").nullable()
29
29
  }).describe("Contact object returned after successful sync.");
30
30
  const SpokiSyncContactsBulkOutput = zod.z.object({
31
31
  errors: zod.z.array(SpokiSyncContactsBulk_ErrorDetailSchema).describe("List of errors that occurred during sync. Each error contains details about which contact failed and why").nullable().optional(),
@@ -1 +1 @@
1
- {"version":3,"file":"sync-contacts-bulk.cjs","names":["z","action"],"sources":["../../src/actions/sync-contacts-bulk.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiSyncContactsBulkInput: z.ZodTypeAny = z.object({\n contacts: z.array(z.object({\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)\"),\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). Defaults to 'en' if not specified\").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}).describe(\"Single contact object for bulk sync operation.\")).describe(\"List of contact objects to sync. Each contact will be created if new or updated if the phone number already exists. Maximum recommended: 100 contacts per request due to rate limits\"),\n}).describe(\"Request to bulk sync (create or update) multiple contacts.\");\nconst SpokiSyncContactsBulk_ErrorDetailSchema: z.ZodTypeAny = z.object({\n error: z.string().describe(\"Error message\").nullable().optional(),\n phone: z.string().describe(\"Phone number that caused the error\").nullable().optional(),\n}).describe(\"Error details for failed contact sync.\");\nconst SpokiSyncContactsBulk_SyncedContactSchema: 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\"),\n has_invalid_phone: z.boolean().describe(\"Whether the phone number is invalid\"),\n is_first_message_sent: z.boolean().describe(\"Whether the first message has been sent to this contact\"),\n}).describe(\"Contact object returned after successful sync.\");\nexport const SpokiSyncContactsBulkOutput: z.ZodTypeAny = z.object({\n errors: z.array(SpokiSyncContactsBulk_ErrorDetailSchema).describe(\"List of errors that occurred during sync. Each error contains details about which contact failed and why\").nullable().optional(),\n contacts: z.array(SpokiSyncContactsBulk_SyncedContactSchema).describe(\"List of successfully synced contacts with their details\").nullable().optional(),\n}).describe(\"Response from bulk sync operation.\");\n\nexport const spokiSyncContactsBulk = action(\"SPOKI_SYNC_CONTACTS_BULK\", {\n slug: \"spoki-sync-contacts-bulk\",\n name: \"Bulk Sync Contacts\",\n description: \"Tool to bulk sync (create or update) multiple contacts in a single request. Rate limit: 1 request per minute. This action performs bulk \\\"upsert\\\" operations: - If a contact with the provided phone number exists, it will be updated with the new information - If no contact exists with that phone number, a new contact will be created Use when you need to: - Import multiple contacts from external systems - Synchronize contact lists in bulk - Efficiently create or update many contacts at once IMPORTANT: Do not use this action to update contacts before initiating an automation. The strict rate limit (1/min) makes it unsuitable for automation workflows.\",\n input: SpokiSyncContactsBulkInput,\n output: SpokiSyncContactsBulk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ACjE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CACrF,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CACxF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,YAAYA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gCAAgC;CACjE,eAAeA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC;CACvE,mBAAmBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC;CAC7E,uBAAuBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,yDAAyD;AACvG,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,QAAQA,IAAAA,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClM,UAAUA,IAAAA,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvJ,CAAC,CAAC,CAAC,SAAS,oCAAoC;AAEhD,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"sync-contacts-bulk.cjs","names":["z","action"],"sources":["../../src/actions/sync-contacts-bulk.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiSyncContactsBulkInput = z.object({\n contacts: z.array(z.object({\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)\"),\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). Defaults to 'en' if not specified\").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}).describe(\"Single contact object for bulk sync operation.\")).describe(\"List of contact objects to sync. Each contact will be created if new or updated if the phone number already exists. Maximum recommended: 100 contacts per request due to rate limits\"),\n}).describe(\"Request to bulk sync (create or update) multiple contacts.\");\nconst SpokiSyncContactsBulk_ErrorDetailSchema = z.object({\n error: z.string().describe(\"Error message\").nullable().optional(),\n phone: z.string().describe(\"Phone number that caused the error\").nullable().optional(),\n}).describe(\"Error details for failed contact sync.\");\nconst SpokiSyncContactsBulk_SyncedContactSchema = z.object({\n id: z.number().int().describe(\"Unique ID of the contact\").nullable(),\n email: z.string().describe(\"Email address of the contact\").nullable().optional(),\n phone: z.string().describe(\"Contact phone number in E.164 format\").nullable(),\n language: z.string().describe(\"Language code of the contact (e.g., 'en', 'it', 'es')\").nullable(),\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\").nullable(),\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\").nullable(),\n is_restricted: z.boolean().describe(\"Whether the contact is restricted\").nullable(),\n has_invalid_phone: z.boolean().describe(\"Whether the phone number is invalid\").nullable(),\n is_first_message_sent: z.boolean().describe(\"Whether the first message has been sent to this contact\").nullable(),\n}).describe(\"Contact object returned after successful sync.\");\nexport const SpokiSyncContactsBulkOutput = z.object({\n errors: z.array(SpokiSyncContactsBulk_ErrorDetailSchema).describe(\"List of errors that occurred during sync. Each error contains details about which contact failed and why\").nullable().optional(),\n contacts: z.array(SpokiSyncContactsBulk_SyncedContactSchema).describe(\"List of successfully synced contacts with their details\").nullable().optional(),\n}).describe(\"Response from bulk sync operation.\");\n\nexport const spokiSyncContactsBulk = action(\"SPOKI_SYNC_CONTACTS_BULK\", {\n slug: \"spoki-sync-contacts-bulk\",\n name: \"Bulk Sync Contacts\",\n description: \"Tool to bulk sync (create or update) multiple contacts in a single request. Rate limit: 1 request per minute. This action performs bulk \\\"upsert\\\" operations: - If a contact with the provided phone number exists, it will be updated with the new information - If no contact exists with that phone number, a new contact will be created Use when you need to: - Import multiple contacts from external systems - Synchronize contact lists in bulk - Efficiently create or update many contacts at once IMPORTANT: Do not use this action to update contacts before initiating an automation. The strict rate limit (1/min) makes it unsuitable for automation workflows.\",\n input: SpokiSyncContactsBulkInput,\n output: SpokiSyncContactsBulkOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;CAC3B,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CAClG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6KAA6K;CACxM,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4NAA4N,CAAC,CAAC,SAAS;CACrQ,WAAWA,IAAAA,EAAE,OAAO,CA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