@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,9 +1,46 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/sync-contacts-bulk.d.ts
4
- declare const SpokiSyncContactsBulkInput: z.ZodTypeAny;
5
- declare const SpokiSyncContactsBulkOutput: z.ZodTypeAny;
6
- declare const spokiSyncContactsBulk: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SpokiSyncContactsBulkInput: z.ZodObject<{
5
+ contacts: z.ZodArray<z.ZodObject<{
6
+ email: z.ZodOptional<z.ZodString>;
7
+ phone: z.ZodString;
8
+ language: z.ZodOptional<z.ZodString>;
9
+ last_name: z.ZodOptional<z.ZodString>;
10
+ first_name: z.ZodOptional<z.ZodString>;
11
+ custom_fields: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
12
+ }, z.core.$strip>>;
13
+ }, z.core.$strip>;
14
+ declare const SpokiSyncContactsBulkOutput: z.ZodObject<{
15
+ errors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
16
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ }, z.core.$strip>>>>;
19
+ contacts: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
20
+ id: z.ZodNullable<z.ZodNumber>;
21
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ phone: z.ZodNullable<z.ZodString>;
23
+ language: z.ZodNullable<z.ZodString>;
24
+ role_set: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
25
+ chat_link: z.ZodNullable<z.ZodString>;
26
+ last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ is_blocked: z.ZodNullable<z.ZodBoolean>;
29
+ is_restricted: z.ZodNullable<z.ZodBoolean>;
30
+ has_invalid_phone: z.ZodNullable<z.ZodBoolean>;
31
+ is_first_message_sent: z.ZodNullable<z.ZodBoolean>;
32
+ }, z.core.$strip>>>>;
33
+ }, z.core.$strip>;
34
+ declare const spokiSyncContactsBulk: import("@keystrokehq/action").WorkflowActionDefinition<{
35
+ contacts: {
36
+ phone: string;
37
+ email?: string | undefined;
38
+ language?: string | undefined;
39
+ last_name?: string | undefined;
40
+ first_name?: string | undefined;
41
+ custom_fields?: Record<string, never> | undefined;
42
+ }[];
43
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
44
  //#endregion
8
45
  export { spokiSyncContactsBulk };
9
46
  //# sourceMappingURL=sync-contacts-bulk.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sync-contacts-bulk.d.cts","names":[],"sources":["../../src/actions/sync-contacts-bulk.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAS8B;AAAA,cAmB5D,2BAAA,EAA6B,CAAA,CAAE,UAGK;AAAA,cAEpC,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"sync-contacts-bulk.d.cts","names":[],"sources":["../../src/actions/sync-contacts-bulk.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;cA4B1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAK3B,qBAAA,gCAAqB,wBAAA;;;;;;;oBAMhC,MAAA;EAAA;AAAA"}
@@ -1,9 +1,46 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/sync-contacts-bulk.d.ts
4
- declare const SpokiSyncContactsBulkInput: z.ZodTypeAny;
5
- declare const SpokiSyncContactsBulkOutput: z.ZodTypeAny;
6
- declare const spokiSyncContactsBulk: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SpokiSyncContactsBulkInput: z.ZodObject<{
5
+ contacts: z.ZodArray<z.ZodObject<{
6
+ email: z.ZodOptional<z.ZodString>;
7
+ phone: z.ZodString;
8
+ language: z.ZodOptional<z.ZodString>;
9
+ last_name: z.ZodOptional<z.ZodString>;
10
+ first_name: z.ZodOptional<z.ZodString>;
11
+ custom_fields: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
12
+ }, z.core.$strip>>;
13
+ }, z.core.$strip>;
14
+ declare const SpokiSyncContactsBulkOutput: z.ZodObject<{
15
+ errors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
16
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ }, z.core.$strip>>>>;
19
+ contacts: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
20
+ id: z.ZodNullable<z.ZodNumber>;
21
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ phone: z.ZodNullable<z.ZodString>;
23
+ language: z.ZodNullable<z.ZodString>;
24
+ role_set: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
25
+ chat_link: z.ZodNullable<z.ZodString>;
26
+ last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ is_blocked: z.ZodNullable<z.ZodBoolean>;
29
+ is_restricted: z.ZodNullable<z.ZodBoolean>;
30
+ has_invalid_phone: z.ZodNullable<z.ZodBoolean>;
31
+ is_first_message_sent: z.ZodNullable<z.ZodBoolean>;
32
+ }, z.core.$strip>>>>;
33
+ }, z.core.$strip>;
34
+ declare const spokiSyncContactsBulk: import("@keystrokehq/action").WorkflowActionDefinition<{
35
+ contacts: {
36
+ phone: string;
37
+ email?: string | undefined;
38
+ language?: string | undefined;
39
+ last_name?: string | undefined;
40
+ first_name?: string | undefined;
41
+ custom_fields?: Record<string, never> | undefined;
42
+ }[];
43
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
44
  //#endregion
8
45
  export { spokiSyncContactsBulk };
9
46
  //# sourceMappingURL=sync-contacts-bulk.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sync-contacts-bulk.d.mts","names":[],"sources":["../../src/actions/sync-contacts-bulk.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAS8B;AAAA,cAmB5D,2BAAA,EAA6B,CAAA,CAAE,UAGK;AAAA,cAEpC,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"sync-contacts-bulk.d.mts","names":[],"sources":["../../src/actions/sync-contacts-bulk.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;cA4B1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAK3B,qBAAA,gCAAqB,wBAAA;;;;;;;oBAMhC,MAAA;EAAA;AAAA"}
@@ -14,18 +14,18 @@ const SpokiSyncContactsBulk_ErrorDetailSchema = z.object({
14
14
  phone: 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 = z.object({
17
- id: z.number().int().describe("Unique ID of the contact"),
17
+ id: z.number().int().describe("Unique ID of the contact").nullable(),
18
18
  email: z.string().describe("Email address of the contact").nullable().optional(),
19
- phone: z.string().describe("Contact phone number in E.164 format"),
20
- language: z.string().describe("Language code of the contact (e.g., 'en', 'it', 'es')"),
19
+ phone: z.string().describe("Contact phone number in E.164 format").nullable(),
20
+ language: z.string().describe("Language code of the contact (e.g., 'en', 'it', 'es')").nullable(),
21
21
  role_set: z.array(z.string()).describe("List of roles assigned to the contact").nullable().optional(),
22
- chat_link: z.string().describe("Direct link to chat with this contact on Spoki platform"),
22
+ chat_link: z.string().describe("Direct link to chat with this contact on Spoki platform").nullable(),
23
23
  last_name: z.string().describe("Last name of the contact").nullable().optional(),
24
24
  first_name: z.string().describe("First name of the contact").nullable().optional(),
25
- is_blocked: z.boolean().describe("Whether the contact is blocked"),
26
- is_restricted: z.boolean().describe("Whether the contact is restricted"),
27
- has_invalid_phone: z.boolean().describe("Whether the phone number is invalid"),
28
- is_first_message_sent: z.boolean().describe("Whether the first message has been sent to this contact")
25
+ is_blocked: z.boolean().describe("Whether the contact is blocked").nullable(),
26
+ is_restricted: z.boolean().describe("Whether the contact is restricted").nullable(),
27
+ has_invalid_phone: z.boolean().describe("Whether the phone number is invalid").nullable(),
28
+ is_first_message_sent: 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 spokiSyncContactsBulk = action("SPOKI_SYNC_CONTACTS_BULK", {
31
31
  slug: "spoki-sync-contacts-bulk",
@@ -1 +1 @@
1
- {"version":3,"file":"sync-contacts-bulk.mjs","names":[],"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: SpokiSyncContactsBulkOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2C,EAAE,OAAO,EAC/D,UAAU,EAAE,MAAM,EAAE,OAAO;CAC3B,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CAClG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6KAA6K;CACxM,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4NAA4N,CAAC,CAAC,SAAS;CACrQ,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS;CAC9K,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS;CAC/J,eAAe,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yLAAyL,CAAC,CAAC,SAAS;AAC3O,CAAC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,CAAC,SAAS,sLAAsL,EAC9P,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,0CAAwD,EAAE,OAAO;CACrE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAM,4CAA0D,EAAE,OAAO;CACvE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B;CACxD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACjE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CACrF,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CACxF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,YAAY,EAAE,QAAQ,CAAC,CAAC,SAAS,gCAAgC;CACjE,eAAe,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC;CACvE,mBAAmB,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC;CAC7E,uBAAuB,EAAE,QAAQ,CAAC,CAAC,SAAS,yDAAyD;AACvG,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAM5D,MAAa,wBAAwB,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVuD,EAAE,OAAO;EAChE,QAAQ,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClM,UAAU,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvJ,CAAC,CAAC,CAAC,SAAS,oCAOF;AACV,CAAC"}
1
+ {"version":3,"file":"sync-contacts-bulk.mjs","names":[],"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,6BAA6B,EAAE,OAAO,EACjD,UAAU,EAAE,MAAM,EAAE,OAAO;CAC3B,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CAClG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6KAA6K;CACxM,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4NAA4N,CAAC,CAAC,SAAS;CACrQ,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS;CAC9K,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS;CAC/J,eAAe,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yLAAyL,CAAC,CAAC,SAAS;AAC3O,CAAC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,CAAC,SAAS,sLAAsL,EAC9P,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,0CAA0C,EAAE,OAAO;CACvD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAM,4CAA4C,EAAE,OAAO;CACzD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACnE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC5E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAChG,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACnG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,YAAY,EAAE,QAAQ,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CAC5E,eAAe,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAClF,mBAAmB,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACxF,uBAAuB,EAAE,QAAQ,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;AAClH,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAM5D,MAAa,wBAAwB,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVyC,EAAE,OAAO;EAClD,QAAQ,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClM,UAAU,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvJ,CAAC,CAAC,CAAC,SAAS,oCAOF;AACV,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"sync-list-contacts.cjs","names":["z","action"],"sources":["../../src/actions/sync-list-contacts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiSyncListContactsInput: z.ZodTypeAny = z.object({\n list_id: z.string().describe(\"The unique identifier of the list to sync contacts to. Contacts will be created or updated and then added to this list\"),\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 list sync operation.\")).describe(\"List of contact objects to sync to the list. Each contact will be created if new or updated if the phone number already exists, then added to the specified list. Maximum: 500 contacts per request\"),\n}).describe(\"Request to sync contacts to a specific list.\");\nexport const SpokiSyncListContactsOutput: z.ZodTypeAny = z.object({\n errors: z.array(z.object({})).describe(\"List of errors that occurred during sync. Each error contains details about which contact failed and why. Empty list indicates all contacts were synced successfully\").nullable().optional(),\n}).describe(\"Response from list sync operation.\");\n\nexport const spokiSyncListContacts = action(\"SPOKI_SYNC_LIST_CONTACTS\", {\n slug: \"spoki-sync-list-contacts\",\n name: \"Sync Contacts to List\",\n description: \"Tool to create or update contacts and add them to a specific list in Spoki. Rate limit: 1 request per minute. This action performs bulk \\\"upsert\\\" operations and list assignment: - 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 - All synced contacts are automatically added to the specified list Use when you need to: - Add multiple contacts to a specific list - Import contacts from external systems directly into a list - Synchronize contact lists with list membership Maximum 500 contacts per request. Phone numbers must be in E.164 format (international format with country code).\",\n input: SpokiSyncListContactsInput,\n output: SpokiSyncListContactsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wHAAwH;CACrJ,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC3B,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;EAClG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6KAA6K;EACxM,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4NAA4N,CAAC,CAAC,SAAS;EACrQ,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS;EAC9K,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS;EAC/J,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yLAAyL,CAAC,CAAC,SAAS;CAC3O,CAAC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,CAAC,SAAS,qMAAqM;AAC7Q,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAa,8BAA4CA,IAAAA,EAAE,OAAO,EAChE,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,sKAAsK,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACrO,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-list-contacts.cjs","names":["z","action"],"sources":["../../src/actions/sync-list-contacts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiSyncListContactsInput = z.object({\n list_id: z.string().describe(\"The unique identifier of the list to sync contacts to. Contacts will be created or updated and then added to this list\"),\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 list sync operation.\")).describe(\"List of contact objects to sync to the list. Each contact will be created if new or updated if the phone number already exists, then added to the specified list. Maximum: 500 contacts per request\"),\n}).describe(\"Request to sync contacts to a specific list.\");\nexport const SpokiSyncListContactsOutput = z.object({\n errors: z.array(z.object({})).describe(\"List of errors that occurred during sync. Each error contains details about which contact failed and why. Empty list indicates all contacts were synced successfully\").nullable().optional(),\n}).describe(\"Response from list sync operation.\");\n\nexport const spokiSyncListContacts = action(\"SPOKI_SYNC_LIST_CONTACTS\", {\n slug: \"spoki-sync-list-contacts\",\n name: \"Sync Contacts to List\",\n description: \"Tool to create or update contacts and add them to a specific list in Spoki. Rate limit: 1 request per minute. This action performs bulk \\\"upsert\\\" operations and list assignment: - 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 - All synced contacts are automatically added to the specified list Use when you need to: - Add multiple contacts to a specific list - Import contacts from external systems directly into a list - Synchronize contact lists with list membership Maximum 500 contacts per request. Phone numbers must be in E.164 format (international format with country code).\",\n input: SpokiSyncListContactsInput,\n output: SpokiSyncListContactsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wHAAwH;CACrJ,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC3B,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;EAClG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6KAA6K;EACxM,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4NAA4N,CAAC,CAAC,SAAS;EACrQ,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS;EAC9K,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS;EAC/J,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yLAAyL,CAAC,CAAC,SAAS;CAC3O,CAAC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,CAAC,SAAS,qMAAqM;AAC7Q,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,sKAAsK,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACrO,CAAC,CAAC,CAAC,SAAS,oCAAoC;AAEhD,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,31 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/sync-list-contacts.d.ts
4
- declare const SpokiSyncListContactsInput: z.ZodTypeAny;
5
- declare const SpokiSyncListContactsOutput: z.ZodTypeAny;
6
- declare const spokiSyncListContacts: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SpokiSyncListContactsInput: z.ZodObject<{
5
+ list_id: z.ZodString;
6
+ contacts: z.ZodArray<z.ZodObject<{
7
+ email: z.ZodOptional<z.ZodString>;
8
+ phone: z.ZodString;
9
+ language: z.ZodOptional<z.ZodString>;
10
+ last_name: z.ZodOptional<z.ZodString>;
11
+ first_name: z.ZodOptional<z.ZodString>;
12
+ custom_fields: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
13
+ }, z.core.$strip>>;
14
+ }, z.core.$strip>;
15
+ declare const SpokiSyncListContactsOutput: z.ZodObject<{
16
+ errors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{}, z.core.$strip>>>>;
17
+ }, z.core.$strip>;
18
+ declare const spokiSyncListContacts: import("@keystrokehq/action").WorkflowActionDefinition<{
19
+ list_id: string;
20
+ contacts: {
21
+ phone: string;
22
+ email?: string | undefined;
23
+ language?: string | undefined;
24
+ last_name?: string | undefined;
25
+ first_name?: string | undefined;
26
+ custom_fields?: Record<string, never> | undefined;
27
+ }[];
28
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
29
  //#endregion
8
30
  export { spokiSyncListContacts };
9
31
  //# sourceMappingURL=sync-list-contacts.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sync-list-contacts.d.cts","names":[],"sources":["../../src/actions/sync-list-contacts.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAUgB;AAAA,cAC9C,2BAAA,EAA6B,CAAA,CAAE,UAEK;AAAA,cAEpC,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"sync-list-contacts.d.cts","names":[],"sources":["../../src/actions/sync-list-contacts.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;cAW1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAI3B,qBAAA,gCAAqB,wBAAA;;;;;;;;oBAMhC,MAAA;EAAA;AAAA"}
@@ -1,9 +1,31 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/sync-list-contacts.d.ts
4
- declare const SpokiSyncListContactsInput: z.ZodTypeAny;
5
- declare const SpokiSyncListContactsOutput: z.ZodTypeAny;
6
- declare const spokiSyncListContacts: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SpokiSyncListContactsInput: z.ZodObject<{
5
+ list_id: z.ZodString;
6
+ contacts: z.ZodArray<z.ZodObject<{
7
+ email: z.ZodOptional<z.ZodString>;
8
+ phone: z.ZodString;
9
+ language: z.ZodOptional<z.ZodString>;
10
+ last_name: z.ZodOptional<z.ZodString>;
11
+ first_name: z.ZodOptional<z.ZodString>;
12
+ custom_fields: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
13
+ }, z.core.$strip>>;
14
+ }, z.core.$strip>;
15
+ declare const SpokiSyncListContactsOutput: z.ZodObject<{
16
+ errors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{}, z.core.$strip>>>>;
17
+ }, z.core.$strip>;
18
+ declare const spokiSyncListContacts: import("@keystrokehq/action").WorkflowActionDefinition<{
19
+ list_id: string;
20
+ contacts: {
21
+ phone: string;
22
+ email?: string | undefined;
23
+ language?: string | undefined;
24
+ last_name?: string | undefined;
25
+ first_name?: string | undefined;
26
+ custom_fields?: Record<string, never> | undefined;
27
+ }[];
28
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
29
  //#endregion
8
30
  export { spokiSyncListContacts };
9
31
  //# sourceMappingURL=sync-list-contacts.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sync-list-contacts.d.mts","names":[],"sources":["../../src/actions/sync-list-contacts.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAUgB;AAAA,cAC9C,2BAAA,EAA6B,CAAA,CAAE,UAEK;AAAA,cAEpC,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"sync-list-contacts.d.mts","names":[],"sources":["../../src/actions/sync-list-contacts.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;cAW1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAI3B,qBAAA,gCAAqB,wBAAA;;;;;;;;oBAMhC,MAAA;EAAA;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"sync-list-contacts.mjs","names":[],"sources":["../../src/actions/sync-list-contacts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiSyncListContactsInput: z.ZodTypeAny = z.object({\n list_id: z.string().describe(\"The unique identifier of the list to sync contacts to. Contacts will be created or updated and then added to this list\"),\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 list sync operation.\")).describe(\"List of contact objects to sync to the list. Each contact will be created if new or updated if the phone number already exists, then added to the specified list. Maximum: 500 contacts per request\"),\n}).describe(\"Request to sync contacts to a specific list.\");\nexport const SpokiSyncListContactsOutput: z.ZodTypeAny = z.object({\n errors: z.array(z.object({})).describe(\"List of errors that occurred during sync. Each error contains details about which contact failed and why. Empty list indicates all contacts were synced successfully\").nullable().optional(),\n}).describe(\"Response from list sync operation.\");\n\nexport const spokiSyncListContacts = action(\"SPOKI_SYNC_LIST_CONTACTS\", {\n slug: \"spoki-sync-list-contacts\",\n name: \"Sync Contacts to List\",\n description: \"Tool to create or update contacts and add them to a specific list in Spoki. Rate limit: 1 request per minute. This action performs bulk \\\"upsert\\\" operations and list assignment: - 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 - All synced contacts are automatically added to the specified list Use when you need to: - Add multiple contacts to a specific list - Import contacts from external systems directly into a list - Synchronize contact lists with list membership Maximum 500 contacts per request. Phone numbers must be in E.164 format (international format with country code).\",\n input: SpokiSyncListContactsInput,\n output: SpokiSyncListContactsOutput,\n});\n"],"mappings":";;AAmBA,MAAa,wBAAwB,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnBsD,EAAE,OAAO;EAC/D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wHAAwH;EACrJ,UAAU,EAAE,MAAM,EAAE,OAAO;GAC3B,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;GAClG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6KAA6K;GACxM,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4NAA4N,CAAC,CAAC,SAAS;GACrQ,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS;GAC9K,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS;GAC/J,eAAe,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yLAAyL,CAAC,CAAC,SAAS;EAC3O,CAAC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,CAAC,SAAS,qMAAqM;CAC7Q,CAAC,CAAC,CAAC,SAAS,8CASH;CACP,QATuD,EAAE,OAAO,EAChE,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,sKAAsK,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACrO,CAAC,CAAC,CAAC,SAAS,oCAOF;AACV,CAAC"}
1
+ {"version":3,"file":"sync-list-contacts.mjs","names":[],"sources":["../../src/actions/sync-list-contacts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiSyncListContactsInput = z.object({\n list_id: z.string().describe(\"The unique identifier of the list to sync contacts to. Contacts will be created or updated and then added to this list\"),\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 list sync operation.\")).describe(\"List of contact objects to sync to the list. Each contact will be created if new or updated if the phone number already exists, then added to the specified list. Maximum: 500 contacts per request\"),\n}).describe(\"Request to sync contacts to a specific list.\");\nexport const SpokiSyncListContactsOutput = z.object({\n errors: z.array(z.object({})).describe(\"List of errors that occurred during sync. Each error contains details about which contact failed and why. Empty list indicates all contacts were synced successfully\").nullable().optional(),\n}).describe(\"Response from list sync operation.\");\n\nexport const spokiSyncListContacts = action(\"SPOKI_SYNC_LIST_CONTACTS\", {\n slug: \"spoki-sync-list-contacts\",\n name: \"Sync Contacts to List\",\n description: \"Tool to create or update contacts and add them to a specific list in Spoki. Rate limit: 1 request per minute. This action performs bulk \\\"upsert\\\" operations and list assignment: - 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 - All synced contacts are automatically added to the specified list Use when you need to: - Add multiple contacts to a specific list - Import contacts from external systems directly into a list - Synchronize contact lists with list membership Maximum 500 contacts per request. Phone numbers must be in E.164 format (international format with country code).\",\n input: SpokiSyncListContactsInput,\n output: SpokiSyncListContactsOutput,\n});\n"],"mappings":";;AAmBA,MAAa,wBAAwB,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnBwC,EAAE,OAAO;EACjD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wHAAwH;EACrJ,UAAU,EAAE,MAAM,EAAE,OAAO;GAC3B,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;GAClG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6KAA6K;GACxM,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4NAA4N,CAAC,CAAC,SAAS;GACrQ,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS;GAC9K,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS;GAC/J,eAAe,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yLAAyL,CAAC,CAAC,SAAS;EAC3O,CAAC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,CAAC,SAAS,qMAAqM;CAC7Q,CAAC,CAAC,CAAC,SAAS,8CASH;CACP,QATyC,EAAE,OAAO,EAClD,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,sKAAsK,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACrO,CAAC,CAAC,CAAC,SAAS,oCAOF;AACV,CAAC"}
@@ -8,11 +8,11 @@ const SpokiUpdateCampaignInput = zod.z.object({
8
8
  scheduled_datetime: zod.z.string().describe("Scheduled start time in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.sssZ). Required when status is 'Scheduled'").optional()
9
9
  }).describe("Request model for updating an existing campaign.\nAll body fields are optional - only provided fields will be updated.");
10
10
  const SpokiUpdateCampaignOutput = zod.z.object({
11
- id: zod.z.number().int().describe("Unique identifier of the campaign"),
12
- name: zod.z.string().describe("Campaign name"),
13
- status: zod.z.string().describe("Campaign status (Draft, Scheduled, Processing, or Completed)"),
14
- created_datetime: zod.z.string().describe("When this campaign was created (ISO 8601)"),
15
- scheduled_datetime: zod.z.string().describe("When the campaign is scheduled to run (ISO 8601)")
11
+ id: zod.z.number().int().describe("Unique identifier of the campaign").nullable(),
12
+ name: zod.z.string().describe("Campaign name").nullable(),
13
+ status: zod.z.string().describe("Campaign status (Draft, Scheduled, Processing, or Completed)").nullable(),
14
+ created_datetime: zod.z.string().describe("When this campaign was created (ISO 8601)").nullable(),
15
+ scheduled_datetime: zod.z.string().describe("When the campaign is scheduled to run (ISO 8601)").nullable()
16
16
  }).describe("Response model containing details of the updated campaign.");
17
17
  const spokiUpdateCampaign = require_action.action("SPOKI_UPDATE_CAMPAIGN", {
18
18
  slug: "spoki-update-campaign",
@@ -1 +1 @@
1
- {"version":3,"file":"update-campaign.cjs","names":["z","action"],"sources":["../../src/actions/update-campaign.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiUpdateCampaignInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the campaign to update\"),\n name: z.string().describe(\"New name for the campaign\").optional(),\n status: z.enum([\"Draft\", \"Scheduled\"]).describe(\"Allowed campaign status values.\").optional(),\n scheduled_datetime: z.string().describe(\"Scheduled start time in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.sssZ). Required when status is 'Scheduled'\").optional(),\n}).describe(\"Request model for updating an existing campaign.\\nAll body fields are optional - only provided fields will be updated.\");\nexport const SpokiUpdateCampaignOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the campaign\"),\n name: z.string().describe(\"Campaign name\"),\n status: z.string().describe(\"Campaign status (Draft, Scheduled, Processing, or Completed)\"),\n created_datetime: z.string().describe(\"When this campaign was created (ISO 8601)\"),\n scheduled_datetime: z.string().describe(\"When the campaign is scheduled to run (ISO 8601)\"),\n}).describe(\"Response model containing details of the updated campaign.\");\n\nexport const spokiUpdateCampaign = action(\"SPOKI_UPDATE_CAMPAIGN\", {\n slug: \"spoki-update-campaign\",\n name: \"Update Campaign\",\n description: \"Tool to update an existing campaign's name, status, or scheduled time. Use when you need to modify campaign details after creation. Rate limited to 5 requests per minute.\",\n input: SpokiUpdateCampaignInput,\n output: SpokiUpdateCampaignOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CACzE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChE,QAAQA,IAAAA,EAAE,KAAK,CAAC,SAAS,WAAW,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC5F,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS;AAC9J,CAAC,CAAC,CAAC,SAAS,wHAAwH;AACpI,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC;CACjE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe;CACzC,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;CAC1F,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;CACjF,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;AAC5F,CAAC,CAAC,CAAC,SAAS,4DAA4D;AAExE,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"update-campaign.cjs","names":["z","action"],"sources":["../../src/actions/update-campaign.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiUpdateCampaignInput = z.object({\n id: z.string().describe(\"The unique identifier of the campaign to update\"),\n name: z.string().describe(\"New name for the campaign\").optional(),\n status: z.enum([\"Draft\", \"Scheduled\"]).describe(\"Allowed campaign status values.\").optional(),\n scheduled_datetime: z.string().describe(\"Scheduled start time in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.sssZ). Required when status is 'Scheduled'\").optional(),\n}).describe(\"Request model for updating an existing campaign.\\nAll body fields are optional - only provided fields will be updated.\");\nexport const SpokiUpdateCampaignOutput = z.object({\n id: z.number().int().describe(\"Unique identifier of the campaign\").nullable(),\n name: z.string().describe(\"Campaign name\").nullable(),\n status: z.string().describe(\"Campaign status (Draft, Scheduled, Processing, or Completed)\").nullable(),\n created_datetime: z.string().describe(\"When this campaign was created (ISO 8601)\").nullable(),\n scheduled_datetime: z.string().describe(\"When the campaign is scheduled to run (ISO 8601)\").nullable(),\n}).describe(\"Response model containing details of the updated campaign.\");\n\nexport const spokiUpdateCampaign = action(\"SPOKI_UPDATE_CAMPAIGN\", {\n slug: \"spoki-update-campaign\",\n name: \"Update Campaign\",\n description: \"Tool to update an existing campaign's name, status, or scheduled time. Use when you need to modify campaign details after creation. Rate limited to 5 requests per minute.\",\n input: SpokiUpdateCampaignInput,\n output: SpokiUpdateCampaignOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CACzE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChE,QAAQA,IAAAA,EAAE,KAAK,CAAC,SAAS,WAAW,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC5F,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS;AAC9J,CAAC,CAAC,CAAC,SAAS,wHAAwH;AACpI,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC5E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;CACpD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACrG,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAC5F,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,SAAS,4DAA4D;AAExE,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,28 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/update-campaign.d.ts
4
- declare const SpokiUpdateCampaignInput: z.ZodTypeAny;
5
- declare const SpokiUpdateCampaignOutput: z.ZodTypeAny;
6
- declare const spokiUpdateCampaign: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SpokiUpdateCampaignInput: z.ZodObject<{
5
+ id: z.ZodString;
6
+ name: z.ZodOptional<z.ZodString>;
7
+ status: z.ZodOptional<z.ZodEnum<{
8
+ Draft: "Draft";
9
+ Scheduled: "Scheduled";
10
+ }>>;
11
+ scheduled_datetime: z.ZodOptional<z.ZodString>;
12
+ }, z.core.$strip>;
13
+ declare const SpokiUpdateCampaignOutput: z.ZodObject<{
14
+ id: z.ZodNullable<z.ZodNumber>;
15
+ name: z.ZodNullable<z.ZodString>;
16
+ status: z.ZodNullable<z.ZodString>;
17
+ created_datetime: z.ZodNullable<z.ZodString>;
18
+ scheduled_datetime: z.ZodNullable<z.ZodString>;
19
+ }, z.core.$strip>;
20
+ declare const spokiUpdateCampaign: import("@keystrokehq/action").WorkflowActionDefinition<{
21
+ id: string;
22
+ name?: string | undefined;
23
+ status?: "Draft" | "Scheduled" | undefined;
24
+ scheduled_datetime?: string | undefined;
25
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
26
  //#endregion
8
27
  export { spokiUpdateCampaign };
9
28
  //# sourceMappingURL=update-campaign.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-campaign.d.cts","names":[],"sources":["../../src/actions/update-campaign.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAK4F;AAAA,cACxH,yBAAA,EAA2B,CAAA,CAAE,UAM+B;AAAA,cAE5D,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"update-campaign.d.cts","names":[],"sources":["../../src/actions/update-campaign.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;cAMxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;cAQzB,mBAAA,gCAAmB,wBAAA"}
@@ -1,9 +1,28 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/update-campaign.d.ts
4
- declare const SpokiUpdateCampaignInput: z.ZodTypeAny;
5
- declare const SpokiUpdateCampaignOutput: z.ZodTypeAny;
6
- declare const spokiUpdateCampaign: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SpokiUpdateCampaignInput: z.ZodObject<{
5
+ id: z.ZodString;
6
+ name: z.ZodOptional<z.ZodString>;
7
+ status: z.ZodOptional<z.ZodEnum<{
8
+ Draft: "Draft";
9
+ Scheduled: "Scheduled";
10
+ }>>;
11
+ scheduled_datetime: z.ZodOptional<z.ZodString>;
12
+ }, z.core.$strip>;
13
+ declare const SpokiUpdateCampaignOutput: z.ZodObject<{
14
+ id: z.ZodNullable<z.ZodNumber>;
15
+ name: z.ZodNullable<z.ZodString>;
16
+ status: z.ZodNullable<z.ZodString>;
17
+ created_datetime: z.ZodNullable<z.ZodString>;
18
+ scheduled_datetime: z.ZodNullable<z.ZodString>;
19
+ }, z.core.$strip>;
20
+ declare const spokiUpdateCampaign: import("@keystrokehq/action").WorkflowActionDefinition<{
21
+ id: string;
22
+ name?: string | undefined;
23
+ status?: "Draft" | "Scheduled" | undefined;
24
+ scheduled_datetime?: string | undefined;
25
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
26
  //#endregion
8
27
  export { spokiUpdateCampaign };
9
28
  //# sourceMappingURL=update-campaign.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-campaign.d.mts","names":[],"sources":["../../src/actions/update-campaign.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAK4F;AAAA,cACxH,yBAAA,EAA2B,CAAA,CAAE,UAM+B;AAAA,cAE5D,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"update-campaign.d.mts","names":[],"sources":["../../src/actions/update-campaign.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;cAMxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;cAQzB,mBAAA,gCAAmB,wBAAA"}
@@ -11,11 +11,11 @@ const spokiUpdateCampaign = action("SPOKI_UPDATE_CAMPAIGN", {
11
11
  scheduled_datetime: z.string().describe("Scheduled start time in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.sssZ). Required when status is 'Scheduled'").optional()
12
12
  }).describe("Request model for updating an existing campaign.\nAll body fields are optional - only provided fields will be updated."),
13
13
  output: z.object({
14
- id: z.number().int().describe("Unique identifier of the campaign"),
15
- name: z.string().describe("Campaign name"),
16
- status: z.string().describe("Campaign status (Draft, Scheduled, Processing, or Completed)"),
17
- created_datetime: z.string().describe("When this campaign was created (ISO 8601)"),
18
- scheduled_datetime: z.string().describe("When the campaign is scheduled to run (ISO 8601)")
14
+ id: z.number().int().describe("Unique identifier of the campaign").nullable(),
15
+ name: z.string().describe("Campaign name").nullable(),
16
+ status: z.string().describe("Campaign status (Draft, Scheduled, Processing, or Completed)").nullable(),
17
+ created_datetime: z.string().describe("When this campaign was created (ISO 8601)").nullable(),
18
+ scheduled_datetime: z.string().describe("When the campaign is scheduled to run (ISO 8601)").nullable()
19
19
  }).describe("Response model containing details of the updated campaign.")
20
20
  });
21
21
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"update-campaign.mjs","names":[],"sources":["../../src/actions/update-campaign.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiUpdateCampaignInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the campaign to update\"),\n name: z.string().describe(\"New name for the campaign\").optional(),\n status: z.enum([\"Draft\", \"Scheduled\"]).describe(\"Allowed campaign status values.\").optional(),\n scheduled_datetime: z.string().describe(\"Scheduled start time in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.sssZ). Required when status is 'Scheduled'\").optional(),\n}).describe(\"Request model for updating an existing campaign.\\nAll body fields are optional - only provided fields will be updated.\");\nexport const SpokiUpdateCampaignOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the campaign\"),\n name: z.string().describe(\"Campaign name\"),\n status: z.string().describe(\"Campaign status (Draft, Scheduled, Processing, or Completed)\"),\n created_datetime: z.string().describe(\"When this campaign was created (ISO 8601)\"),\n scheduled_datetime: z.string().describe(\"When the campaign is scheduled to run (ISO 8601)\"),\n}).describe(\"Response model containing details of the updated campaign.\");\n\nexport const spokiUpdateCampaign = action(\"SPOKI_UPDATE_CAMPAIGN\", {\n slug: \"spoki-update-campaign\",\n name: \"Update Campaign\",\n description: \"Tool to update an existing campaign's name, status, or scheduled time. Use when you need to modify campaign details after creation. Rate limited to 5 requests per minute.\",\n input: SpokiUpdateCampaignInput,\n output: SpokiUpdateCampaignOutput,\n});\n"],"mappings":";;AAkBA,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlBoD,EAAE,OAAO;EAC7D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;EACzE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EAChE,QAAQ,EAAE,KAAK,CAAC,SAAS,WAAW,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EAC5F,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS;CAC9J,CAAC,CAAC,CAAC,SAAS,wHAaH;CACP,QAbqD,EAAE,OAAO;EAC9D,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC;EACjE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe;EACzC,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;EAC1F,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;EACjF,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;CAC5F,CAAC,CAAC,CAAC,SAAS,4DAOF;AACV,CAAC"}
1
+ {"version":3,"file":"update-campaign.mjs","names":[],"sources":["../../src/actions/update-campaign.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiUpdateCampaignInput = z.object({\n id: z.string().describe(\"The unique identifier of the campaign to update\"),\n name: z.string().describe(\"New name for the campaign\").optional(),\n status: z.enum([\"Draft\", \"Scheduled\"]).describe(\"Allowed campaign status values.\").optional(),\n scheduled_datetime: z.string().describe(\"Scheduled start time in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.sssZ). Required when status is 'Scheduled'\").optional(),\n}).describe(\"Request model for updating an existing campaign.\\nAll body fields are optional - only provided fields will be updated.\");\nexport const SpokiUpdateCampaignOutput = z.object({\n id: z.number().int().describe(\"Unique identifier of the campaign\").nullable(),\n name: z.string().describe(\"Campaign name\").nullable(),\n status: z.string().describe(\"Campaign status (Draft, Scheduled, Processing, or Completed)\").nullable(),\n created_datetime: z.string().describe(\"When this campaign was created (ISO 8601)\").nullable(),\n scheduled_datetime: z.string().describe(\"When the campaign is scheduled to run (ISO 8601)\").nullable(),\n}).describe(\"Response model containing details of the updated campaign.\");\n\nexport const spokiUpdateCampaign = action(\"SPOKI_UPDATE_CAMPAIGN\", {\n slug: \"spoki-update-campaign\",\n name: \"Update Campaign\",\n description: \"Tool to update an existing campaign's name, status, or scheduled time. Use when you need to modify campaign details after creation. Rate limited to 5 requests per minute.\",\n input: SpokiUpdateCampaignInput,\n output: SpokiUpdateCampaignOutput,\n});\n"],"mappings":";;AAkBA,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlBsC,EAAE,OAAO;EAC/C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;EACzE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EAChE,QAAQ,EAAE,KAAK,CAAC,SAAS,WAAW,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EAC5F,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS;CAC9J,CAAC,CAAC,CAAC,SAAS,wHAaH;CACP,QAbuC,EAAE,OAAO;EAChD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAC5E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;EACpD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;EACrG,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EAC5F,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACvG,CAAC,CAAC,CAAC,SAAS,4DAOF;AACV,CAAC"}
@@ -11,15 +11,15 @@ const SpokiUpdateContactInput = zod.z.object({
11
11
  custom_fields: zod.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()
12
12
  });
13
13
  const SpokiUpdateContactOutput = zod.z.object({
14
- id: zod.z.number().int().describe("Unique ID of the contact"),
14
+ id: zod.z.number().int().describe("Unique ID of the contact").nullable(),
15
15
  email: zod.z.string().describe("Email address of the contact").nullable().optional(),
16
- phone: zod.z.string().describe("Contact phone number in E.164 format"),
17
- language: zod.z.string().describe("Language code of the contact (e.g., 'en', 'it', 'es')"),
16
+ phone: zod.z.string().describe("Contact phone number in E.164 format").nullable(),
17
+ language: zod.z.string().describe("Language code of the contact (e.g., 'en', 'it', 'es')").nullable(),
18
18
  role_set: zod.z.array(zod.z.string()).describe("List of roles assigned to the contact").nullable().optional(),
19
- chat_link: zod.z.string().describe("Direct link to chat with this contact on Spoki platform"),
19
+ chat_link: zod.z.string().describe("Direct link to chat with this contact on Spoki platform").nullable(),
20
20
  last_name: zod.z.string().describe("Last name of the contact").nullable().optional(),
21
21
  first_name: zod.z.string().describe("First name of the contact").nullable().optional(),
22
- is_blocked: zod.z.boolean().describe("Whether the contact is blocked"),
22
+ is_blocked: zod.z.boolean().describe("Whether the contact is blocked").nullable(),
23
23
  is_restricted: zod.z.boolean().describe("Whether the contact is restricted").nullable().optional(),
24
24
  has_invalid_phone: zod.z.boolean().describe("Whether the phone number is invalid").nullable().optional(),
25
25
  is_first_message_sent: zod.z.boolean().describe("Whether the first message has been sent to this contact").nullable().optional()
@@ -1 +1 @@
1
- {"version":3,"file":"update-contact.cjs","names":["z","action"],"sources":["../../src/actions/update-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiUpdateContactInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the contact to update. This is the contact ID returned when creating or listing contacts\"),\n email: z.string().describe(\"Email address of the contact. Must be a valid email format\").optional(),\n phone: z.string().describe(\"Contact phone number in E.164 international format (must include country code with + prefix). Examples: '+393331234567' (Italy), '+14155552671' (USA), '+447700900123' (UK)\").optional(),\n language: z.string().describe(\"ISO 639-1 two-letter language code for the contact's preferred language. Common values: 'en' (English), 'it' (Italian), 'es' (Spanish), 'de' (German), 'pt' (Portuguese), 'fr' (French)\").optional(),\n last_name: z.string().describe(\"Last name of the contact. Supports Unicode characters and special characters like hyphens and apostrophes (e.g., 'O'Brien-Müller')\").optional(),\n first_name: z.string().describe(\"First name of the contact. Supports Unicode characters for international names (e.g., 'François', 'María', 'João')\").optional(),\n custom_fields: z.object({}).describe(\"Dictionary of custom field names and their values. Use this to store additional contact information beyond standard fields (e.g., {'company': 'Acme Corp', 'employee_id': 'EMP-12345'})\").optional(),\n});\nexport const SpokiUpdateContactOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique ID of the contact\"),\n email: z.string().describe(\"Email address of the contact\").nullable().optional(),\n phone: z.string().describe(\"Contact phone number in E.164 format\"),\n language: z.string().describe(\"Language code of the contact (e.g., 'en', 'it', 'es')\"),\n role_set: z.array(z.string()).describe(\"List of roles assigned to the contact\").nullable().optional(),\n chat_link: z.string().describe(\"Direct link to chat with this contact on Spoki platform\"),\n last_name: z.string().describe(\"Last name of the contact\").nullable().optional(),\n first_name: z.string().describe(\"First name of the contact\").nullable().optional(),\n is_blocked: z.boolean().describe(\"Whether the contact is blocked\"),\n is_restricted: z.boolean().describe(\"Whether the contact is restricted\").nullable().optional(),\n has_invalid_phone: z.boolean().describe(\"Whether the phone number is invalid\").nullable().optional(),\n is_first_message_sent: z.boolean().describe(\"Whether the first message has been sent to this contact\").nullable().optional(),\n});\n\nexport const spokiUpdateContact = action(\"SPOKI_UPDATE_CONTACT\", {\n slug: \"spoki-update-contact\",\n name: \"Update Contact\",\n description: \"Tool to update an existing contact in Spoki. Use when you need to modify contact information for a specific contact ID. Only the fields provided will be updated; other fields remain unchanged.\",\n input: SpokiUpdateContactInput,\n output: SpokiUpdateContactOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwCA,IAAAA,EAAE,OAAO;CAC5D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+GAA+G;CACvI,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CAClG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6KAA6K,CAAC,CAAC,SAAS;CACnN,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yLAAyL,CAAC,CAAC,SAAS;CAClO,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS;CAC9K,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS;CAC/J,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yLAAyL,CAAC,CAAC,SAAS;AAC3O,CAAC;AACD,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B;CACxD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACjE,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,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,mBAAmBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,uBAAuBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7H,CAAC;AAED,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"update-contact.cjs","names":["z","action"],"sources":["../../src/actions/update-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiUpdateContactInput = z.object({\n id: z.string().describe(\"Unique identifier of the contact to update. This is the contact ID returned when creating or listing contacts\"),\n email: z.string().describe(\"Email address of the contact. Must be a valid email format\").optional(),\n phone: z.string().describe(\"Contact phone number in E.164 international format (must include country code with + prefix). Examples: '+393331234567' (Italy), '+14155552671' (USA), '+447700900123' (UK)\").optional(),\n language: z.string().describe(\"ISO 639-1 two-letter language code for the contact's preferred language. Common values: 'en' (English), 'it' (Italian), 'es' (Spanish), 'de' (German), 'pt' (Portuguese), 'fr' (French)\").optional(),\n last_name: z.string().describe(\"Last name of the contact. Supports Unicode characters and special characters like hyphens and apostrophes (e.g., 'O'Brien-Müller')\").optional(),\n first_name: z.string().describe(\"First name of the contact. Supports Unicode characters for international names (e.g., 'François', 'María', 'João')\").optional(),\n custom_fields: z.object({}).describe(\"Dictionary of custom field names and their values. Use this to store additional contact information beyond standard fields (e.g., {'company': 'Acme Corp', 'employee_id': 'EMP-12345'})\").optional(),\n});\nexport const SpokiUpdateContactOutput = z.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().optional(),\n has_invalid_phone: z.boolean().describe(\"Whether the phone number is invalid\").nullable().optional(),\n is_first_message_sent: z.boolean().describe(\"Whether the first message has been sent to this contact\").nullable().optional(),\n});\n\nexport const spokiUpdateContact = action(\"SPOKI_UPDATE_CONTACT\", {\n slug: \"spoki-update-contact\",\n name: \"Update Contact\",\n description: \"Tool to update an existing contact in Spoki. Use when you need to modify contact information for a specific contact ID. Only the fields provided will be updated; other fields remain unchanged.\",\n input: SpokiUpdateContactInput,\n output: SpokiUpdateContactOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+GAA+G;CACvI,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CAClG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6KAA6K,CAAC,CAAC,SAAS;CACnN,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yLAAyL,CAAC,CAAC,SAAS;CAClO,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS;CAC9K,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS;CAC/J,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yLAAyL,CAAC,CAAC,SAAS;AAC3O,CAAC;AACD,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACnE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC5E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAChG,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,CAAC,CAAC,SAAS;CACnG,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,CAAC,CAAC,SAAS;CAC5E,eAAeA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,mBAAmBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,uBAAuBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7H,CAAC;AAED,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,38 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/update-contact.d.ts
4
- declare const SpokiUpdateContactInput: z.ZodTypeAny;
5
- declare const SpokiUpdateContactOutput: z.ZodTypeAny;
6
- declare const spokiUpdateContact: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SpokiUpdateContactInput: z.ZodObject<{
5
+ id: z.ZodString;
6
+ email: z.ZodOptional<z.ZodString>;
7
+ phone: z.ZodOptional<z.ZodString>;
8
+ language: z.ZodOptional<z.ZodString>;
9
+ last_name: z.ZodOptional<z.ZodString>;
10
+ first_name: z.ZodOptional<z.ZodString>;
11
+ custom_fields: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
12
+ }, z.core.$strip>;
13
+ declare const SpokiUpdateContactOutput: z.ZodObject<{
14
+ id: z.ZodNullable<z.ZodNumber>;
15
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ phone: z.ZodNullable<z.ZodString>;
17
+ language: z.ZodNullable<z.ZodString>;
18
+ role_set: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
19
+ chat_link: z.ZodNullable<z.ZodString>;
20
+ last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ is_blocked: z.ZodNullable<z.ZodBoolean>;
23
+ is_restricted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
24
+ has_invalid_phone: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
25
+ is_first_message_sent: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
26
+ }, z.core.$strip>;
27
+ declare const spokiUpdateContact: import("@keystrokehq/action").WorkflowActionDefinition<{
28
+ id: string;
29
+ email?: string | undefined;
30
+ phone?: string | undefined;
31
+ language?: string | undefined;
32
+ last_name?: string | undefined;
33
+ first_name?: string | undefined;
34
+ custom_fields?: Record<string, never> | undefined;
35
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
36
  //#endregion
8
37
  export { spokiUpdateContact };
9
38
  //# sourceMappingURL=update-contact.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-contact.d.cts","names":[],"sources":["../../src/actions/update-contact.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAQtC;AAAA,cACW,wBAAA,EAA0B,CAAA,CAAE,UAavC;AAAA,cAEW,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"update-contact.d.cts","names":[],"sources":["../../src/actions/update-contact.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;cASvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAexB,kBAAA,gCAAkB,wBAAA;;;;;;;kBAM7B,MAAA;AAAA"}
@@ -1,9 +1,38 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/update-contact.d.ts
4
- declare const SpokiUpdateContactInput: z.ZodTypeAny;
5
- declare const SpokiUpdateContactOutput: z.ZodTypeAny;
6
- declare const spokiUpdateContact: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SpokiUpdateContactInput: z.ZodObject<{
5
+ id: z.ZodString;
6
+ email: z.ZodOptional<z.ZodString>;
7
+ phone: z.ZodOptional<z.ZodString>;
8
+ language: z.ZodOptional<z.ZodString>;
9
+ last_name: z.ZodOptional<z.ZodString>;
10
+ first_name: z.ZodOptional<z.ZodString>;
11
+ custom_fields: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
12
+ }, z.core.$strip>;
13
+ declare const SpokiUpdateContactOutput: z.ZodObject<{
14
+ id: z.ZodNullable<z.ZodNumber>;
15
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ phone: z.ZodNullable<z.ZodString>;
17
+ language: z.ZodNullable<z.ZodString>;
18
+ role_set: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
19
+ chat_link: z.ZodNullable<z.ZodString>;
20
+ last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ is_blocked: z.ZodNullable<z.ZodBoolean>;
23
+ is_restricted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
24
+ has_invalid_phone: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
25
+ is_first_message_sent: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
26
+ }, z.core.$strip>;
27
+ declare const spokiUpdateContact: import("@keystrokehq/action").WorkflowActionDefinition<{
28
+ id: string;
29
+ email?: string | undefined;
30
+ phone?: string | undefined;
31
+ language?: string | undefined;
32
+ last_name?: string | undefined;
33
+ first_name?: string | undefined;
34
+ custom_fields?: Record<string, never> | undefined;
35
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
36
  //#endregion
8
37
  export { spokiUpdateContact };
9
38
  //# sourceMappingURL=update-contact.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-contact.d.mts","names":[],"sources":["../../src/actions/update-contact.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAQtC;AAAA,cACW,wBAAA,EAA0B,CAAA,CAAE,UAavC;AAAA,cAEW,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"update-contact.d.mts","names":[],"sources":["../../src/actions/update-contact.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;cASvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAexB,kBAAA,gCAAkB,wBAAA;;;;;;;kBAM7B,MAAA;AAAA"}